(self.webpackChunk=self.webpackChunk||[]).push([[7460],{89489:function(mt,Ke,te){"use strict";te.d(Ke,{Z:function(){return de}});var ee=te(54476),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"},pe=be,Se=te(7657),fe=function(me,ae){return ge.createElement(Se.Z,(0,ee.Z)({},me,{ref:ae,icon:pe}))},oe=ge.forwardRef(fe),de=oe},59477:function(mt,Ke,te){"use strict";te.d(Ke,{Z:function(){return de}});var ee=te(54476),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"},pe=be,Se=te(7657),fe=function(me,ae){return ge.createElement(Se.Z,(0,ee.Z)({},me,{ref:ae,icon:pe}))},oe=ge.forwardRef(fe),de=oe},81953:function(mt,Ke,te){"use strict";te.d(Ke,{Z:function(){return de}});var ee=te(54476),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"},pe=be,Se=te(7657),fe=function(me,ae){return ge.createElement(Se.Z,(0,ee.Z)({},me,{ref:ae,icon:pe}))},oe=ge.forwardRef(fe),de=oe},49198:function(mt,Ke,te){"use strict";te.d(Ke,{Z:function(){return de}});var ee=te(54476),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"},pe=be,Se=te(7657),fe=function(me,ae){return ge.createElement(Se.Z,(0,ee.Z)({},me,{ref:ae,icon:pe}))},oe=ge.forwardRef(fe),de=oe},87169:function(mt,Ke,te){"use strict";te.d(Ke,{Z:function(){return de}});var ee=te(54476),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"},pe=be,Se=te(7657),fe=function(me,ae){return ge.createElement(Se.Z,(0,ee.Z)({},me,{ref:ae,icon:pe}))},oe=ge.forwardRef(fe),de=oe},52671:function(mt,Ke,te){"use strict";te.d(Ke,{Z:function(){return de}});var ee=te(54476),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"},pe=be,Se=te(7657),fe=function(me,ae){return ge.createElement(Se.Z,(0,ee.Z)({},me,{ref:ae,icon:pe}))},oe=ge.forwardRef(fe),de=oe},8657:function(mt,Ke,te){"use strict";te.d(Ke,{Z:function(){return de}});var ee=te(54476),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"},pe=be,Se=te(7657),fe=function(me,ae){return ge.createElement(Se.Z,(0,ee.Z)({},me,{ref:ae,icon:pe}))},oe=ge.forwardRef(fe),de=oe},10906:function(mt,Ke,te){"use strict";te.d(Ke,{Z:function(){return de}});var ee=te(54476),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"},pe=be,Se=te(7657),fe=function(me,ae){return ge.createElement(Se.Z,(0,ee.Z)({},me,{ref:ae,icon:pe}))},oe=ge.forwardRef(fe),de=oe},56082:function(mt,Ke,te){"use strict";te.d(Ke,{Z:function(){return de}});var ee=te(54476),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"},pe=be,Se=te(7657),fe=function(me,ae){return ge.createElement(Se.Z,(0,ee.Z)({},me,{ref:ae,icon:pe}))},oe=ge.forwardRef(fe),de=oe},33853:function(mt,Ke,te){"use strict";te.d(Ke,{Z:function(){return de}});var ee=te(54476),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"},pe=be,Se=te(7657),fe=function(me,ae){return ge.createElement(Se.Z,(0,ee.Z)({},me,{ref:ae,icon:pe}))},oe=ge.forwardRef(fe),de=oe},15075:function(mt,Ke,te){"use strict";te.d(Ke,{Z:function(){return de}});var ee=te(54476),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"},pe=be,Se=te(7657),fe=function(me,ae){return ge.createElement(Se.Z,(0,ee.Z)({},me,{ref:ae,icon:pe}))},oe=ge.forwardRef(fe),de=oe},43531:function(mt,Ke,te){"use strict";te.d(Ke,{Z:function(){return de}});var ee=te(54476),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"},pe=be,Se=te(7657),fe=function(me,ae){return ge.createElement(Se.Z,(0,ee.Z)({},me,{ref:ae,icon:pe}))},oe=ge.forwardRef(fe),de=oe},76618:function(mt,Ke,te){"use strict";te.d(Ke,{Z:function(){return de}});var ee=te(54476),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"},pe=be,Se=te(7657),fe=function(me,ae){return ge.createElement(Se.Z,(0,ee.Z)({},me,{ref:ae,icon:pe}))},oe=ge.forwardRef(fe),de=oe},38819:function(mt,Ke,te){"use strict";te.d(Ke,{Z:function(){return de}});var ee=te(54476),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"},pe=be,Se=te(7657),fe=function(me,ae){return ge.createElement(Se.Z,(0,ee.Z)({},me,{ref:ae,icon:pe}))},oe=ge.forwardRef(fe),de=oe},27431:function(mt,Ke){"use strict";Ke.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},31790:function(mt,Ke){"use strict";Ke.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"}},70122:function(){"use strict"},62595:function(mt,Ke,te){"use strict";var ee=te(59301),ge=Object.defineProperty,be=Object.getOwnPropertySymbols,pe=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,oe=(le,me)=>{for(var ae in me||(me={}))pe.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 de=le=>React.createElement("svg",oe({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"})));Ke.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBmaWxsLW9wYWNpdHk9Ii4wMSIgZmlsbD0iI0ZGRiIgZD0iTTAgMGgzMHYzMEgweiIvPjxwYXRoIGQ9Ik02Ljg2NiAyNi45MjhoLTEuMjhhMi41NjEgMi41NjEgMCAwIDEtMi41NjItMi41NjFWNS41ODVhMi41NjEgMi41NjEgMCAwIDEgMi41NjEtMi41NmgxLjI4djQuMjY4YTIuNTYxIDIuNTYxIDAgMCAwIDIuNTYyIDIuNTZoMy44NDJhMi41NjEgMi41NjEgMCAwIDAgMi41Ni0yLjU2VjMuMDI0aDIuOTE1bDguMTg0IDguMTg0djEzLjE1OWEyLjU2MSAyLjU2MSAwIDAgMS0yLjU2MSAyLjU2MWgtMS4yOHYtNS45NzZjMC0uOTQzLS43NjUtMS43MDctMS43MDgtMS43MDdIOC41NzNjLS45NDMgMC0xLjcwNy43NjQtMS43MDcgMS43MDd2NS45NzZaIiBmaWxsPSIjQjZEMEZDIi8+PHBhdGggZD0iTTguNTczIDMuMDI0aDUuNTV2NC4yNjlhLjg1NC44NTQgMCAwIDEtLjg1NC44NTNIOS40MjdhLjg1NC44NTQgMCAwIDEtLjg1NC0uODUzVjMuMDI0Wk04LjU3MyAyNi45Mjh2LTUuOTc2SDIxLjM4djUuOTc2eiIgZmlsbD0iIzE4OTBGRiIvPjwvZz48L3N2Zz4="},14699:function(mt,Ke,te){"use strict";var ee=te(59301),ge=Object.defineProperty,be=Object.getOwnPropertySymbols,pe=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,oe=(le,me)=>{for(var ae in me||(me={}))pe.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 de=le=>React.createElement("svg",oe({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"})));Ke.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNMzAgMTVjMCA4LjI4NC02LjcxNiAxNS0xNSAxNS04LjI4NCAwLTE1LTYuNzE2LTE1LTE1QzAgNi43MTYgNi43MTYgMCAxNSAwYzguMjg0IDAgMTUgNi43MTYgMTUgMTVaIiBmaWxsPSIjQkFGRkYwIi8+PHBhdGggZD0iTTI1LjUgMTVjMCA1LjgtNC43IDEwLjUtMTAuNSAxMC41UzQuNSAyMC44IDQuNSAxNSA5LjIgNC41IDE1IDQuNSAyNS41IDkuMiAyNS41IDE1WiIgZmlsbD0iIzQ0RDdCNiIvPjxwYXRoIGQ9Ik0xMy41IDlhMS41IDEuNSAwIDAgMSAxLjUgMS41djQuMzc5bDMuNTYgMy41NmExLjUgMS41IDAgMCAxLTIuMTIgMi4xMjJsLTQtNEExLjUgMS41IDAgMCAxIDEyIDE1LjV2LTVBMS41IDEuNSAwIDAgMSAxMy41IDlaIiBmaWxsPSIjRkZGIi8+PC9nPjwvc3ZnPg=="},87851:function(){"use strict";function mt(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(mt.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(mt.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(mt.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(mt.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 mt))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+y);if(y.defaultValuey.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 Ke=[];function te(ne,a){var y=Ke.pop();return y===void 0?new go.Point(ne,a):(y.x=ne,y.y=a,y)}function ee(){var ne=Ke.pop();return ne===void 0?new go.Point:ne}function ge(ne){Ke.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,ht=a-Le*ne;ye=b,De=Le*ye+ht}else{var Le=(a-E)/ce,Ee=(x-re)/_e,ht=a-Le*ne,je=x-Ee*b;ye=(je-ht)/(Le-Ee),De=Le*ye+ht}return se.x=ye,se.y=De,se}function pe(ne,a,y,E,b,x,z,re,se,ce,_e,ye,De,Ee){var je=1-se,Le=se,ht=ne*je+y*Le,Ye=a*je+E*Le,vt=y*je+b*Le,we=E*je+x*Le,Fe=b*je+z*Le,He=x*je+re*Le,at=ht*je+vt*Le,We=Ye*je+we*Le,pt=vt*je+Fe*Le,Pt=we*je+He*Le,At=at*je+pt*Le,Bt=We*je+Pt*Le;ce.x=ht,ce.y=Ye,_e.x=at,_e.y=We,ye.x=At,ye.y=Bt,De.x=pt,De.y=Pt,Ee.x=Fe,Ee.y=He}var Se=new go.Spot(.156,.156),fe=new go.Spot(.844,.844),oe=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new mt("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*oe,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,oe*a,0,a,(1-oe)*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,oe*y,(1-oe)*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,oe*y,oe*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-oe)*a,0,0,(1-oe)*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 mt("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())),ba&&(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.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())),ba&&(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())),ba&&(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())),b0&&(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 mt("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new mt("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=oe/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 mt("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 mt("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 mt("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 mt("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 mt("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 mt("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,oe*a,0,a,(.5-oe/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+oe/2)*y,oe*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*oe;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*oe,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*oe,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=oe*.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=oe*.4;var ce=ee(),_e=ee(),ye=ee(),De=ee();pe(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();pe(z,re-x,z+b,re-x,z+x,re-b,z+x,re,.58,De,De,Le,Ee,je);var ht=ee(),Ye=ee(),vt=ee();pe(z,re+x,z-b,re+x,z-x,re+b,z-x,re,.42,ht,Ye,vt,De,De);var we=ee(),Fe=ee(),He=ee();return pe(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,vt.x*a,vt.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,vt.x*a,vt.y*y,ht.x*a,ht.y*y,Ye.x*a,Ye.y*y).close()),ge(ce),ge(_e),ge(ye),ge(De),ge(Ee),ge(je),ge(Le),ge(ht),ge(Ye),ge(vt),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 mt("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=oe*.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)),pe(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);pe(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=oe*.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 ht=new go.PathFigure((z-x)*a,re*y,!1);return E.add(ht),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*oe,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*oe;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 mt("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new mt("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 mt("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new mt("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 mt("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 mt("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new mt("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 mt("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 mt("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new mt("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 mt("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 mt("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 mt("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 mt("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 mt("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=oe*.5,x=oe*.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=oe*.5,z=new go.PathFigure(0,E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,oe*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,E,(.5+x)*a,0,1*a,oe*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-oe*E,(.5+x)*a,1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,1*y,0,y-oe*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-oe*E,(.5+x)*a,2*E)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,E,(.5-x)*a,2*E,0,2*E-oe*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=oe*.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,oe*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E,(.5+x)*a,0,a,oe*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-oe*E,(.5+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,y,0,y-oe*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-oe*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-oe*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=oe*.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-oe*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-oe*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,oe*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,oe*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+oe*E,0,2*E,(.5-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,E,y,2*E,(.5+x)*y,E+oe*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=oe*.5,z=new go.PathFigure(a-E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-oe*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-oe*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,oe*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,oe*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-oe*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-oe*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=oe*b,re=oe*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=oe*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=oe*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=oe*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=oe*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=oe*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 mt("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=oe*.5,x=oe*.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=oe*.5,x=oe*.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=oe*.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=oe*.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=oe*.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=oe*.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=oe*.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=oe*.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=oe*.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=oe*.5,x=oe*.4,z=oe*.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=oe*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=oe*.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=oe*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=oe*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=oe*.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=oe*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=oe*.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=oe*.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=oe*.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=oe*.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=oe*.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=oe*.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=oe*.8,re=.8,se=1,ce=.5;var ht=new go.PathFigure(se*a+_e,(ce-re)*y+ye,!0);return E.add(ht),ht.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)),ht.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)),ht.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)),ht.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=oe*.4,x=.4,z=.5,re=.5,se=ee(),ce=ee(),_e=ee(),ye=ee();pe(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)),pe(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=oe*.3,x=.3,pe(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)),pe(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*oe,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 ht=new go.PathFigure(.2*a,y,!1);E.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var Ye=new go.PathFigure(.8*a,y,!1);return E.add(Ye),Ye.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=oe*.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=oe*.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=oe*.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=oe*.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=oe*.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=oe*.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=oe*.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=oe*.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=oe*.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=oe*.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=oe*.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=oe*.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=oe*.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=oe*.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*oe,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*oe,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*oe,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")},63089: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 mt={},Ke="5.0",te={},ee=null,ge=!1,be=!1,pe=null,Se=!1,fe=null,oe=null,de=0;de4?parseFloat(rt):5};mt.setHTML5Codebase=function(rt,Xe){oe=rt,Pt(rt,Xe)},mt.setJavaCodebase=mt.setJavaCodebaseVersion=mt.isCompiledInstalled=mt.setPreCompiledScriptPath=mt.setPreCompiledResourcePath=function(){},mt.setHTML5CodebaseVersion=function(rt,Xe){var Ct=parseFloat(rt);if(Ct!==NaN&&Ct<5){console.log("The GeoGebra HTML5 codebase version "+Ct+" is deprecated. Using version latest instead.");return}fe=rt,pt(rt,Xe)},mt.getHTML5CodebaseVersion=function(){return ne},mt.getParameters=function(){return te},mt.setFontsCSSURL=function(rt){z=rt},mt.setGiacJSURL=function(rt){},mt.setJNLPFile=function(rt){me=rt},mt.setJNLPBaseDir=function(rt){},mt.inject=function(){function rt(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Xe="auto",Ct=te.id,zt,Et=!1,an=0;an=5)return!0;var rt=mt.getAppletObject();return rt&&typeof rt.recalculateEnvironments=="function"?(rt.recalculateEnvironments(),!0):!1},mt.startAnimation=function(){var rt=mt.getAppletObject();return rt&&typeof rt.startAnimation=="function"?(rt.startAnimation(),!0):!1},mt.stopAnimation=function(){var rt=mt.getAppletObject();return rt&&typeof rt.stopAnimation=="function"?(rt.stopAnimation(),!0):!1},mt.getAppletObject=function(){var rt=te.id!==void 0?te.id:"ggbApplet";return window[rt]},mt.resize=function(){};var je=function(rt,Xe,Ct){var zt=document.createElement("param");zt.setAttribute("name",Xe),zt.setAttribute("value",Ct),rt.appendChild(zt)},Le=function(rt){return rt&&rt!=="false"},ht=function(rt,Xe,Ct){se(ne)<=4.2&&(Ct=!0);var zt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ne||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(zt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Et=document.createElement("div");Et.classList.add("appletParameters","notranslate");var an=Xe.width,$e=Xe.height;if(Xe.disableAutoScale=Xe.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Xe.disableAutoScale,Xe.width!==void 0)if(se(ne)<=4.4)Le(Xe.showToolBar)&&(Xe.height-=7),Le(Xe.showAlgebraInput)&&(Xe.height-=37),Xe.width<605&&Le(Xe.showToolBar)&&(Xe.width=605,an=605);else{var yt=100;(Le(Xe.showToolBar)||Le(Xe.showMenuBar))&&(Xe.hasOwnProperty("customToolBar")&&(Xe.customToolbar=Xe.customToolBar),yt=Le(Xe.showMenuBar)?245:155),an=5?(Xe.appletOnLoad=function(ze){var it=rt.querySelector(".ggb_preview");it&&it.parentNode.removeChild(it),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner($t),window.GGBT_wsf_view&&$(window).trigger("resize"),on(ze)},st||$t.appendChild(lt)):Et.appendChild(lt),$t.appendChild(Et),st||rt.appendChild($t),setTimeout(function(){mt.resize()},1)}else{var Ge=document.createElement("div");Ge.className="applet_scaler",Ge.style.position="relative",Ge.style.display="block",Ge.appendChild(Et),rt.appendChild(Ge),Xe.appletOnLoad=function(ze){mt.resize(),on(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 et(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 xt=0;xt0?(Lt.remove(),$t.attr("id","fullscreencontent").show(),jQuery(on).append($t),window.dispatchEvent(new Event("resize"))):ht(Lt,Xe,!1),window.GGBT_wsf_view.launchFullScreen(on)}else ie=zt,ht(rt,Xe,!1);if(!window.GGBT_wsf_view)for($e=0;$ert/4*3&&(Lt=rt/4*3),on=Lt/5.8,yt.setAttribute("src",b),yt.setAttribute("width",Lt),yt.setAttribute("height",on);var $t=(rt-Lt)/2,st=(Xe-on)/2;yt.style.left=$t+"px",yt.style.top=st+"px",Et.appendChild(yt)}}return Et.appendChild($e),Et},at=function(rt){return rt=rt.toLowerCase(),rt==="html5"||rt==="screenshot"?rt:"html5"},We=["web","webSimple","web3d","tablet","tablet3d","phone"],pt=function(rt,Xe){if(ne=rt,Xe){Pt(ne,!0);return}var Ct=!ge;if(Ct){var zt=se(ne);!isNaN(zt)&&zt<4.4&&(Ct=!1)}var Et,an;window.location.protocol.substr(0,4)==="http"?Et=window.location.protocol:Et="http:";var $e=ne.indexOf("//");$e>0?an=ne:$e===0?an=Et+ne:an="https://www.geogebra.org/apps/5.2.814.0/";for(var yt in We)if(ne.slice(We[yt].length*-1)===We[yt]||ne.slice((We[yt].length+1)*-1)===We[yt]+"/"){Pt(an,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Ct&&!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")?an+="webSimple/":an+="web3d/",Pt(an,!1)},Pt=function(rt,Xe){if(rt.requirejs){ae=rt;return}rt.slice(-1)!=="/"&&(rt+="/"),ae=rt,Xe===null&&(Xe=rt.indexOf("http")===-1),he=Xe,a="web.nocache.js",y=!1;var Ct=ae.split("/");Ct.length>1&&(!Xe&&Ct[Ct.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):We.indexOf(Ct[Ct.length-2])>=0&&(a=Ct[Ct.length-2]+".nocache.js")),Ct=rt.split("/"),ne=Ct[Ct.length-3],ne.substr(0,4)==="test"?ne=ne.substr(4,1)+"."+ne.substr(5,1):(ne.substr(0,3)==="war"||ne.substr(0,4)==="beta")&&(ne="5.0");var 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."),pt("5.0",Xe))},At=function(rt,Xe){window.console&&window.console.log&&(!Xe||typeof Xe.showLogging=="undefined"||Xe.showLogging&&Xe.showLogging!=="false")&&console.log(rt)};te.material_id!==void 0?ye(Bt):Bt();function Bt(){var rt=Ke;fe!==null?rt=fe:parseFloat(rt)<5&&(rt="5.0"),pt(rt,!1),oe!==null&&Pt(oe,he),Se=!0}return mt},GGBAppletUtils=function(){"use strict";function mt(){return window.GGBT_wsf_edit!==void 0}function Ke(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,oe,de,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 ie=0,ne=0,a=0,y=0,E=0,b=0,x=0;if(ae)ie=ae.offsetWidth,ne=Math.max(de?ae.offsetWidth:0,ae.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(ie=Math.min(window.innerWidth,document.documentElement.clientWidth),ne=Math.min(window.innerHeight,document.documentElement.clientHeight),a=ie):(ie=window.innerWidth,ne=window.innerHeight,a=window.innerWidth),Se){var z=Se.getBoundingClientRect();z.left>0&&z.left<=ie&&(le===void 0||!le)&&(document.dir==="rtl"?(E=ie-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&&((oe===void 0||!oe)&&fe>0&&fe+y1&&(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,oe,Se.scaleContainerClass);else return de;return me&&(!Se.hasOwnProperty("scale")||de===1)?le:Math.min(de,le)}function be(Se){var fe=Math.min(window.innerWidth,document.documentElement.clientWidth),oe=Math.min(window.innerHeight,document.documentElement.clientHeight),de=Se.getBoundingClientRect(),le=(fe-de.width)/2,me=(oe-de.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 pe(Se,fe){var oe=Se.querySelector(".appletParameters");if(oe){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(fe.id!==oe.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Se)}if(oe.parentElement&&/fullscreen/.test(oe.parentElement.className))return;var de=ge(fe,Se);mt()&&oe.setAttribute("data-param-scale",de);for(var le=null,me=0;me=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(mt){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(mt){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(mt){var Ke=c[mt];return Ke==null?null:Ke},r=d,webModule.__errFn=e}function B(){function mt(Se){var fe=Se.lastIndexOf(rb);fe==-1&&(fe=Se.length);var oe=Se.indexOf(sb);oe==-1&&(oe=Se.length);var de=Se.lastIndexOf(tb,Math.min(oe,fe));return de>=O?Se.substring(O,de+P):W}function Ke(Se){if(!Se.match(/^\w+:\/\//)){var fe=o.createElement(ub);fe.src=Se+vb,Se=mt(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;feO?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 pe=te();return pe==W&&(pe=ee()),pe==W&&(pe=ge()),pe==W&&be()&&(pe=mt(o.location.href)),pe=Ke(pe),pe}function C(mt){return mt.match(/^\//)||mt.match(/^[a-zA-Z]+:\/\//)?mt:webModule.__moduleBase+mt}function D(){var mt=[],Ke=O,te=[],ee=[];function ge(Se){var fe=ee[Se](),oe=te[Se];if(fe in oe)return fe;var de=[];for(var le in oe)de[oe[le]]=le;throw r&&r(Se,de,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 pe=be.indexOf(Db);pe!=-1&&(Ke=parseInt(be.substring(pe+P),$),be=be.substring(O,pe))}catch(Se){}return webModule.__softPermutationId=Ke,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})()},88457:function(mt,Ke,te){"use strict";te.d(Ke,{Ax:function(){return pe},Ds:function(){return Se},KI:function(){return oe},SI:function(){return be},f1:function(){return ge}});var ee=te(78323);function ge(de){let le=!0;if(de.length>0){for(let me=0;mez in x?oe(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)&&ie(x,re,z[re]);if(me)for(var re of me(z))he.call(z,re)&&ie(x,re,z[re]);return x},a=(x,z)=>de(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:ht={},concurrency:Ye=4},vt)=>{let[we,Fe]=(0,ee.useState)("ready");const[He,at]=(0,ee.useState)(0),[We,pt]=(0,ee.useState)(""),[Pt,At]=(0,ee.useState)(null),Bt=(0,ee.useRef)(null),rt=(0,ee.useRef)((0,be.Z)()),Xe=(0,ee.useRef)(!1);(0,ee.useImperativeHandle)(vt,()=>({cancel:Et,file:Pt,uploadStatus:we}));const Ct=()=>{const $e=document.getElementById(rt.current);$e&&($e.value="")},zt=$e=>y(void 0,null,function*(){var yt;if(we==="uploading")return;De&&De($e);const Lt=$e.size,on=Math.ceil(Lt/x);Xe.current=!1,Fe("uploading"),at(0),pt("");try{const $t=yield(0,ge.ZP)("/api/attachments/multipart_upload_start",{method:"POST",body:ne({fileName:$e.name,chunkCount:on},z)});if(Xe.current||($t==null?void 0:$t.status)!==0)throw new Error;const{upload_id:st}=$t;Bt.current=new AbortController;const lt=[];let Ge=0;for(let Ie=0;Ie(0,ge.ZP)("/api/attachments/multipart_upload",{method:"POST",body:ze,signal:Bt.current.signal},!0).then(it=>{console.log(it,444),Ge++;const It=Math.round(Ge/on*100);at(It),_e&&_e(a(ne({},it),{file:$e,percent:It}))}))}let Ne=0,et=Ye;for(console.log(lt,"promises");NeRe());if(Ie.length>0){const Re=yield Promise.all(Ie);Ne+=et}}const xt=yield(0,ge.ZP)("/api/attachments/multipart_upload_end",{method:"POST",body:ne({fileName:$e.name,chunkCount:on,uploadId:st},z)});xt.object?(Fe("success"),Ct(),se&&se(a(ne({},xt),{file:$e,percent:100}))):(Fe("error"),pt("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5"),Ct(),ce&&ce($e.name))}catch($t){Fe("error"),pt("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5"),Ct(),ce&&ce($e.name)}}),Et=(0,ee.useCallback)(()=>{Xe.current=!0,Bt.current&&(Bt.current.abort(),re&&re())},[re]),an=$e=>{var yt,Lt;const on=(Lt=(yt=$e==null?void 0:$e.target)==null?void 0:yt.files)==null?void 0:Lt[0];if(At(on),we="ready",!!on){if(ye){ye(on)||zt(on),Ct();return}zt(on)}};return ee.createElement(ee.Fragment,null,ee.createElement("input",{type:"file",id:rt.current,style:{display:"none"},onChange:an,accept:je}),ee.createElement("label",{className:Se()(fe.upload,Le),htmlFor:rt.current,style:ht},Ee))};var b=(0,ee.forwardRef)(E)},86197:function(mt,Ke,te){"use strict";te.d(Ke,{Z:function(){return ae}});var ee=te(59301),ge={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},be=te(92310),pe=te.n(be),Se=te(71418),fe=te(2859),oe=te(57193),de=te(63949),le=(he,ie,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,ie)).next())}),ae=({data:he,className:ie,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,de.ZJ)(he==null?void 0:he.src);z.current.src="",z.current.src=we,z.current.onload=function(){vt()},ye(!1),Ee("")}),Le=()=>{document.body.removeAttribute("data-custom"),se.current.innerHTML=" ",y()},ht=we=>le(void 0,null,function*(){ye(!0),Ee("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Fe=yield(0,oe.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:he.title,file:we.dataUrl}});Fe!=null&&Fe.id&&!x?(yield(0,oe.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("")}),Ye=()=>{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 at=document.querySelector(He.name);at&&at.setAttribute("title",He.title)})},vt=()=>{re.current=new fe.hP(z.current),re.current.targetRoot=ce.current,re.current.addEventListener("render",ht),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),Ye()},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:pe()(ge.imageDimensions,ie,ne?ge.fullWidth:""),style:a},ee.createElement("img",{className:ge.img,ref:z}))))}},24638:function(mt,Ke,te){"use strict";var ee=te(59301),ge=te(95237),be=te(43604),pe=te(99313),Se=te(3113),fe=te(76818),oe=te(27431),de=te(48136),le=te(59301);const me=(0,ee.forwardRef)(({callback:ae,showSaveButton:he,value:ie=""},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:oe.Z.lists,gutter:[10,10]},y.map((re,se)=>le.createElement(be.Z,{flex:"110px",className:oe.Z.item},le.createElement("div",null,le.createElement(fe.Z,{value:`$$${re.value}$$`}),re.name),le.createElement("div",{className:oe.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:oe.Z.diamond},le.createElement(fe.Z,{value:"`$$"+ye.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:le.createElement(ge.Z,{className:oe.Z.lists,gutter:[10,10]},E.map((re,se)=>le.createElement(be.Z,{flex:"110px",className:oe.Z.item},le.createElement("div",null,le.createElement(fe.Z,{value:"`$$"+re.value+"$$`"}),re.name),le.createElement("div",{className:oe.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:oe.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:oe.Z.mathWrap},le.createElement(pe.default,{defaultActiveKey:"1",items:x}),le.createElement("math-field",{locale:"zh_cn",className:oe.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:a,style:{width:800,marginTop:30,fontSize:18}},ie||""),he&&le.createElement("div",{className:oe.Z.button},le.createElement(Se.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Ke.Z=me},35191:function(mt,Ke,te){"use strict";te.d(Ke,{Z:function(){return pe}});var ee=te(95392),ge={ldsRing:"ldsRing___mpBZC",idsRingWrapper:"idsRingWrapper___Of9_n",ldsring:"ldsring___o0w2t"},be=te(59301),pe=({message:Se,className:fe,children:oe,style:de={}})=>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:de},Se):null,oe,be.createElement(ee.Outlet,null))},67786:function(mt,Ke,te){"use strict";te.d(Ke,{Z:function(){return pe}});var ee=te(59301),ge=te(27035),be=te(59301),pe=({defaultX:Se="40%",leftChild:fe,rightChild:oe,className:de,hideResize:le=!1})=>{const[me,ae]=(0,ee.useState)(Se),he=(0,ee.useRef)();function ie(){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 ${de}`},be.createElement("section",{style:{width:ne,display:me===.01?"none":""}},fe),be.createElement("section",{className:"resize-x-bar",onMouseDown:ie},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}},oe))}},7181:function(mt,Ke,te){"use strict";te.d(Ke,{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),pe=te.n(be),fe=({className:oe,style:de={},leftNode:le,leftTitle:me="\u81EA\u6D4B\u8F93\u5165",rightNode:ae,rightTitle:he="\u8FD0\u884C\u7ED3\u679C"})=>ee.createElement("div",{className:pe()(ge.result,oe),style:de},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)))},7605:function(mt,Ke,te){"use strict";var ee=te(59301);const ge=pe=>String(pe).length===1?`0${pe}`:pe,be=({className:pe="",onChange:Se,defaultValue:fe=0})=>{const[oe,de]=(0,ee.useState)(fe);(0,ee.useEffect)(()=>{const he=setTimeout(()=>{de(oe+1e3)},1e3);return Se(oe+1e3),()=>{clearInterval(he)}},[oe]);const le=parseInt(oe/(60*6e4))||"00",me=parseInt(oe%(60*6e4)/6e4)||"00",ae=parseInt(oe%6e4/1e3)||"00";return ee.createElement("div",{className:pe},ge(le),":",ge(me),":",ge(ae))};Ke.Z=be},59533:function(mt,Ke,te){"use strict";te.d(Ke,{Z:function(){return a}});var ee=te(59301),ge=te(8591),be=te(38854),pe=te(94855),Se=te(80360),fe=te(81779),oe=te(56102),de=te(91415),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 ie(y){y.sort(he);let E=0;for(let b=0;b{},handlePlay:_e=()=>{},handlePlayEnded:ye=()=>{},autoPlay:De=!1,onPlayEnded:Ee=()=>{},isShowWaterMark:je=!0},Le)=>{var ht;const vt=((ht=E==null?void 0:E.split("."))==null?void 0:ht.pop())==="flv",we=(0,ee.useRef)(),Fe=(0,ee.useRef)(),He=(0,ee.useRef)(),at=(0,ee.useRef)(),We=(0,ee.useRef)(),pt=(0,ee.useRef)(),Pt=(0,ee.useRef)(),At=(0,ee.useRef)(),Bt=(0,ee.useRef)(),rt=(0,ee.useRef)(),Xe=(0,ee.useRef)(),Ct=(0,ee.useRef)(),zt=(0,ee.useRef)(),Et=(0,ee.useRef)(),an=navigator.userAgent.toLowerCase().match(ne),$e=an?an[0]:"pc",yt=(0,ee.useRef)(!1),Lt=(0,fe.eY)();let on=0,$t=0,st=0,lt=null,Ge=!1,Ne=20,et=1,xt=!1,Ie=!1,Re=[];(0,ee.useImperativeHandle)(Le,()=>({getLastUpdatedTime:()=>we.current.currentTime,getDuration:()=>we.current.duration})),ge.ZP.config({maxCount:1,getContainer:()=>He.current});const Ze=(0,ee.useCallback)((Dt,Ht=!1)=>{let bt={point:we.current.currentTime};lt?(bt.log_id=lt,bt.watch_duration=ie(Re),bt.total_duration=$t):(re?(bt.video_id=parseInt(x,10),bt.course_id=re):bt.video_id=x,bt.duration=on,bt.device=$e),Ht&&(bt.ed="1");function fn(){return me(this,null,function*(){xt=!0,lt=yield z==null?void 0:z(bt),xt=!1,Dt&&Dt()})}fn()},[x,re]);(0,ee.useEffect)(()=>{we.current&&(at.current.style.display="none",We.current.style.display="block"),ge.ZP.destroy();let Dt=null;return pe.Z.isSupported&&vt&&E&&(E==null?void 0:E.indexOf(".m3u8"))<0?(Dt=pe.Z.createPlayer({type:"flv",volume:.8,cors:!0,url:E,muted:!1}),we.current&&(Dt.attachMediaElement(we.current),Dt.load())):we.current.setAttribute("src",E),ze(),()=>{Dt&&(Dt.unload(),Dt.pause(),Dt.destroy(),Dt=null)}},[we,vt,E]);function Be(){we.current.paused?(at.current.style.display="none",We.current.style.display="block"):(at.current.style.display="block",We.current.style.display="none")}function ze(){Xe.current.style.display="none",zt.current.style.display="none",Ct.current.style.display="none",we.current.muted||we.current.volume===0?Xe.current.style.display="block":we.current.volume>0&&we.current.volume<=.5?zt.current.style.display="block":Ct.current.style.display="block"}(0,ee.useEffect)(()=>{const Dt=document.getElementById("play"),Ht=document.querySelectorAll(".playback-icons use");function bt(){_e(),se&&!yt.current&&(we.current.currentTime=se),yt.current=!0,Re.push(we.current.currentTime),Ge||(Ge=!0,b&&Ze())}function fn(){return me(this,null,function*(){Be(),Re.push(we.current.currentTime),b&&Ze(()=>{lt=null,st=0,Ge=!1,xt=!1,Ie=!1,Re=[],$t=0,et=1},!0),Ee()})}function cn(){pt.current.value=Math.round(we.current.currentTime),Pt.current.value=Math.round(we.current.currentTime)}function wt(){const sn=ae(Math.round(we.current.currentTime));Bt.current.innerText=`${sn.hour>0?sn.hour+":":""}${sn.minutes}:${sn.seconds}`,Bt.current.setAttribute("datetime",`${sn.hour>0?" "+sn.hour+" ":""}${sn.minutes}m ${sn.seconds}s`)}function yn(){var sn,Yn,or,Zn,ar,Dr,Mr;const Er=Math.round((sn=we.current)==null?void 0:sn.duration);(or=(Yn=pt.current)==null?void 0:Yn.setAttribute)==null||or.call(Yn,"max",Er),(ar=(Zn=Pt.current)==null?void 0:Zn.setAttribute)==null||ar.call(Zn,"max",Er);const Br=ae(Er);At.current&&(At.current.innerText=`${Br.hour>0?Br.hour+":":""}${Br.minutes}:${Br.seconds}`,(Mr=(Dr=At.current).setAttribute)==null||Mr.call(Dr,"datetime",`${Br.hour>0?" "+Br.hour+" ":""}${Br.minutes}m ${Br.seconds}s`))}function vn(){try{const sn=Math.round(we.current.duration);pt.current.setAttribute("max",sn),Pt.current.setAttribute("max",sn);const Yn=ae(sn);At.current.innerText=`${Yn.hour>0?Yn.hour+":":""}${Yn.minutes}:${Yn.seconds}`,At.current.setAttribute("datetime",`${Yn.hour>0?" "+Yn.hour+" ":""}${Yn.minutes}m ${Yn.seconds}s`),cn(),wt();const{width:or,height:Zn,x:ar,y:Dr}=Fe.current.getBoundingClientRect();if(ar<0||Dr<0||!or)return;if(!Ie){let Mr=we.current.currentTime,Er=Mr-st;Math.abs(Er)<10?($t+=Math.abs(Er),st=Mr,xt||$t-et*Ne>=0&&(et++,Re.push(st),b&&Ze())):(st=Mr,b&&Ze())}}catch(sn){console.log(sn)}}function zn(){Ie=!0}function wn(){we.current.playing&&Re.push(we.current.currentTime,st),st=we.current.currentTime,Ie=!1}function Wn(){on=we.current.duration,on<=20&&(Ne=on/3),we.current.addEventListener("play",bt)}function qn(sn){sn.preventDefault(),(0,de.vp)()?(we.current.style.width="100%",we.current.style.height="100%"):we.current.style.cssText=""}function Kn(){ce()}function Vn(sn){if(!y){ge.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");return}const Yn=sn.target.dataset.seek?sn.target.dataset.seek:sn.target.value;we.current.currentTime=Yn,Pt.current.value=Yn,pt.current.value=Yn}function vr(sn){const Yn=Math.round(sn.offsetX/sn.target.clientWidth*parseInt(sn.target.getAttribute("max"),10));pt.current.setAttribute("data-seek",Yn);const or=ae(Yn);rt.current.textContent=`${or.hour>0?or.hour+":":""}${or.minutes}:${or.seconds}`;const Zn=we.current.getBoundingClientRect();rt.current.style.left=`${sn.pageX-Zn.left}px`}function lr(sn){switch(sn.code){case"Space":sn.preventDefault(),Mt();break;case"ArrowRight":if(sn.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,cn();break;case"ArrowLeft":if(sn.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,cn();break;case"ArrowUp":sn.preventDefault(),we.current.volume<1&&(we.current.volume=(parseInt(we.current.volume*10)+1)/10);break;case"ArrowDown":sn.preventDefault(),we.current.volume>0&&(we.current.volume=(parseInt(we.current.volume*10)-1)/10);break}}return He.current.addEventListener((0,de.gH)(),qn),we.current.addEventListener("canplay",Wn),we.current.addEventListener("ended",fn),we.current.addEventListener("seeking",zn),we.current.addEventListener("seeked",wn),we.current.addEventListener("loadedmetadata",yn),pt.current.addEventListener("mousemove",vr),pt.current.addEventListener("input",Vn),we.current.addEventListener("timeupdate",vn),we.current.addEventListener("pause",Kn),we.current.addEventListener("volumechange",ze),document.addEventListener("keydown",lr),()=>{var sn,Yn,or,Zn,ar,Dr,Mr,Er,Br,sr,Kr,Ut;(sn=we.current)==null||sn.removeEventListener("canplay",Wn),(Yn=we.current)==null||Yn.removeEventListener("play",bt),(or=we.current)==null||or.removeEventListener("ended",fn),(Zn=we.current)==null||Zn.removeEventListener("seeking",zn),(ar=we.current)==null||ar.removeEventListener("seeked",wn),(Dr=pt.current)==null||Dr.removeEventListener("mousemove",vr),(Mr=pt.current)==null||Mr.removeEventListener("input",Vn),(Er=we.current)==null||Er.removeEventListener("timeupdate",vn),(Br=we.current)==null||Br.removeEventListener("pause",Kn),(sr=we.current)==null||sr.removeEventListener("loadedmetadata",yn),(Kr=we.current)==null||Kr.removeEventListener("volumechange",ze),document.removeEventListener("keydown",lr),(Ut=we.current)!=null&&Ut.playing&&(Re.push(st,we.current.currentTime),b&&Ze())}},[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 Dt=new Se.ZP;Dt.loadSource(E),Dt.attachMedia(we.current)}}},[E]);const[it,It]=(0,ee.useState)(1),Mt=()=>{we.current.paused||we.current.ended?we.current.play():we.current.pause(),Be()};function jt(){we.current.muted=!we.current.muted,we.current.muted?(Et.current.setAttribute("data-volume",volume.value),Et.current.value=0):Et.current.value=Et.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&&Lt?Lt.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:Mt},ee.createElement("svg",{className:le["playback-icons"]},ee.createElement("use",{ref:We,href:"#play-icon"}),ee.createElement("use",{ref:at,style:{display:"none"},href:"#pause"}))),ee.createElement("div",{className:le.time},ee.createElement("time",{id:"time-elapsed",ref:Bt},"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:Dt=>Dt.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(oe.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:Xe,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:Ct,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:Et,style:{display:"none"},onClick:ze})),ee.createElement("button",{"data-title":"\u5168\u5C4F/\u9000\u51FA\u5168\u5C4F",className:le["fullscreen-button"],onClick:()=>{(0,de.vp)()?(0,de.BU)():(0,de.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:Pt,value:"0",min:"0"}),ee.createElement("input",{className:le.seek,ref:pt,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"})))))})},48775:function(mt,Ke,te){"use strict";te.d(Ke,{Z:function(){return pe}});var ee=te(59301),ge=te(27035),be=te(11611),pe=()=>{const[Se,fe]=(0,ee.useState)(""),[oe,de]=(0,ee.useState)(0);let[le,me]=(0,ee.useState)(),[ae,he]=(0,ee.useState)();const[ie,ne]=(0,ee.useState)(!1),a=(0,ee.useRef)("");(0,ee.useEffect)(()=>ge.Z.subscribe("preview-image",De=>{fe(De),console.log(ce.current),document.body.style.overflow="hidden"}),[]),(0,ee.useEffect)(()=>(document.addEventListener("keydown",y),()=>{document.removeEventListener("keydown",y)}),[]),(0,ee.useEffect)(()=>{a.current=Se},[Se]);function y(ye){ye.keyCode==27&&a.current&&E()}function E(){document.body.style.overflow="auto",me(void 0),he(void 0),de(0),fe("")}function b(){de(oe+90)}function x(){le=ce.current.width*1.1,ae=ce.current.height*1.1,he(ae),me(le)}function z(){le=ce.current.width/1.1,ae=ce.current.height/1.1,he(ae),me(le)}const re=(0,ee.useRef)(),se=(0,ee.useRef)(),ce=(0,ee.useRef)(),_e=ye=>{(ye.nativeEvent.target===re.current||ye.nativeEvent.target===se.current)&&E()};return ee.createElement(ee.Fragment,null,Se?ee.createElement("div",null,ee.createElement("div",{className:"preview-wrp-group",ref:se},ee.createElement(be.Z,{className:"image-preview",src:Se,style:{display:"none"},preview:{visible:!0,src:Se,movable:!1,onVisibleChange:ye=>{fe("")}},alt:"\u9884\u89C8\u5927\u56FE"}))):null)}},63347:function(mt,Ke,te){"use strict";te.d(Ke,{h:function(){return re}});var ee=te(59301),ge=te(57809),be=te(78241),pe=te(3113),Se=te(89780),fe=te.n(Se),oe=te(4887),de=te(37068),le=Object.defineProperty,me=Object.defineProperties,ae=Object.getOwnPropertyDescriptors,he=Object.getOwnPropertySymbols,ie=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={}))ie.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"]};Ke.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(pe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ee.createElement(pe.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(ht){const Ye=ht.getValue();ce&&ce(Ye)};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}))}},88871:function(mt,Ke,te){"use strict";te.d(Ke,{Z:function(){return ue}});var ee=te(59301),ge=te(89780),be=te.n(ge),pe=te(76374),Se=te(4887),fe=te(6313),oe=te(25717),de=te(99498),le=te(25419),me=te(67549),ae=te(76818),he=({value:ve="",className:Pe,showTextOnly:xe,showLines:ke,style:tt={}})=>{const dt=(0,ee.useMemo)(()=>"",[ve]);return ee.createElement(ee.Fragment,null,ee.createElement("div",{dangerouslySetInnerHTML:{__html:dt}}))},ie=te(59301),ne=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,z=(ve,Pe,xe)=>Pe in ve?ne(ve,Pe,{enumerable:!0,configurable:!0,writable:!0,value:xe}):ve[Pe]=xe,re=(ve,Pe)=>{for(var xe in Pe||(Pe={}))b.call(Pe,xe)&&z(ve,xe,Pe[xe]);if(E)for(var xe of E(Pe))x.call(Pe,xe)&&z(ve,xe,Pe[xe]);return ve},se=(ve,Pe)=>a(ve,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:ve,title:Pe,icon:xe,actionName:ke,className:tt="",children:dt}){function tn(){ve(ke)}return ie.createElement("a",{title:Pe,className:tt,onClick:tn},ie.createElement("i",{className:`${xe}`}),dt)}var ye=({watch:ve,showNullButton:Pe,showNullProgramButton:xe,onActionCallback:ke,fullScreen:tt,insertTemp:dt,hidetoolBar:tn,extraUse:Kt})=>{const _t=[...ce,{title:`${ve?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${ve?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return ie.createElement("ul",{className:"markdown-toolbar-container"},!tn&&_t.map((ft,Ft)=>ie.createElement("li",{key:Ft},ft.actionName?ie.createElement(_e,se(re({},ft),{onActionCallback:ke})):ie.createElement("span",{className:"v-line"}))),Pe?ie.createElement("li",null,ie.createElement(_e,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:ke},ie.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,xe?ie.createElement(ie.Fragment,null,ie.createElement("li",null,ie.createElement(_e,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:ke},ie.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),ie.createElement("li",null,ie.createElement(_e,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:ke},ie.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,dt&&ie.createElement("li",null,ie.createElement(_e,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${dt}`,onActionCallback:ke},ie.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Kt&&ie.createElement("li",null,Kt),ie.createElement("li",{className:"btn-full-screen"},ie.createElement(_e,{icon:`${tt?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:tt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:ke})))},De=te(81123),Ee=te(78241),je=te(92832),Le=te(3113),ht=Object.defineProperty,Ye=Object.defineProperties,vt=Object.getOwnPropertyDescriptors,we=Object.getOwnPropertySymbols,Fe=Object.prototype.hasOwnProperty,He=Object.prototype.propertyIsEnumerable,at=(ve,Pe,xe)=>Pe in ve?ht(ve,Pe,{enumerable:!0,configurable:!0,writable:!0,value:xe}):ve[Pe]=xe,We=(ve,Pe)=>{for(var xe in Pe||(Pe={}))Fe.call(Pe,xe)&&at(ve,xe,Pe[xe]);if(we)for(var xe of we(Pe))He.call(Pe,xe)&&at(ve,xe,Pe[xe]);return ve},pt=(ve,Pe)=>Ye(ve,vt(Pe));const Pt={labelCol:{span:4},wrapperCol:{span:20}};var At=({callback:ve,onCancel:Pe})=>{function xe(ke){ve(ke)}return ee.createElement(Ee.default,pt(We({},Pt),{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")))},Bt=te(63347),rt=te(90443),Xe=te(43418),Ct=te(95237),zt=te(86197),Et=te(59301),an=({callback:ve,onCancel:Pe})=>{const xe=document.createElement("canvas"),ke=xe.getContext("2d");xe.width=1e3,xe.height=800,ke.fillStyle="#ffffff",ke.fillRect(0,0,xe.width,xe.height);const tt=xe.toDataURL("image/png");return Et.createElement(Xe.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Et.createElement(Ct.Z,{style:{height:"100vh"}},Et.createElement(zt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:tt,visible:!0,title:String(Date.now())},onOk:dt=>{ve({src:dt.url})},onClose:Pe})))},$e=te(12378);function yt(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(yt,go.CommandHandler),yt.prototype.canAlignSelection=function(){var ve=this.diagram;return!(ve===null||ve.isReadOnly||ve.isModelReadOnly||ve.selection.count<2)},yt.prototype.alignLeft=function(){var ve=this.diagram;ve.startTransaction("aligning left");var Pe=1/0;ve.selection.each(function(xe){xe instanceof go.Link||(Pe=Math.min(xe.position.x,Pe))}),ve.selection.each(function(xe){xe instanceof go.Link||xe.move(new go.Point(Pe,xe.position.y))}),ve.commitTransaction("aligning left")},yt.prototype.alignRight=function(){var ve=this.diagram;ve.startTransaction("aligning right");var Pe=-1/0;ve.selection.each(function(xe){if(!(xe instanceof go.Link)){var ke=xe.actualBounds.x+xe.actualBounds.width;Pe=Math.max(ke,Pe)}}),ve.selection.each(function(xe){xe instanceof go.Link||xe.move(new go.Point(Pe-xe.actualBounds.width,xe.position.y))}),ve.commitTransaction("aligning right")},yt.prototype.alignTop=function(){var ve=this.diagram;ve.startTransaction("alignTop");var Pe=1/0;ve.selection.each(function(xe){xe instanceof go.Link||(Pe=Math.min(xe.position.y,Pe))}),ve.selection.each(function(xe){xe instanceof go.Link||xe.move(new go.Point(xe.position.x,Pe))}),ve.commitTransaction("alignTop")},yt.prototype.alignBottom=function(){var ve=this.diagram;ve.startTransaction("aligning bottom");var Pe=-1/0;ve.selection.each(function(xe){if(!(xe instanceof go.Link)){var ke=xe.actualBounds.y+xe.actualBounds.height;Pe=Math.max(ke,Pe)}}),ve.selection.each(function(xe){xe instanceof go.Link||xe.move(new go.Point(xe.actualBounds.x,Pe-xe.actualBounds.height))}),ve.commitTransaction("aligning bottom")},yt.prototype.alignCenterX=function(){var ve=this.diagram,Pe=ve.selection.first();if(Pe){ve.startTransaction("aligning Center X");var xe=Pe.actualBounds.x+Pe.actualBounds.width/2;ve.selection.each(function(ke){ke instanceof go.Link||ke.move(new go.Point(xe-ke.actualBounds.width/2,ke.actualBounds.y))}),ve.commitTransaction("aligning Center X")}},yt.prototype.alignCenterY=function(){var ve=this.diagram,Pe=ve.selection.first();if(Pe){ve.startTransaction("aligning Center Y");var xe=Pe.actualBounds.y+Pe.actualBounds.height/2;ve.selection.each(function(ke){ke instanceof go.Link||ke.move(new go.Point(ke.actualBounds.x,xe-ke.actualBounds.height/2))}),ve.commitTransaction("aligning Center Y")}},yt.prototype.alignColumn=function(ve){var Pe=this.diagram;Pe.startTransaction("align Column"),ve===void 0&&(ve=0),ve=parseFloat(ve);var xe=new Array;Pe.selection.each(function(Kt){Kt instanceof go.Link||xe.push(Kt)});for(var ke=0;ke0){for(var Kt=dt.elt(tn-1);Kt!==null&&Kt.isTreeExpanded&&!Kt.isTreeLeaf;){var _t=this._sortTreeChildrenByY(Kt);Kt=_t.last()}Kt!==null&&ve.select(Kt)}else ve.select(tt)}}else if(xe.key==="Down")if(Pe.isTreeExpanded&&!Pe.isTreeLeaf){var ke=this._sortTreeChildrenByY(Pe).first();ke!==null&&ve.select(ke)}else for(;Pe!==null;){var tt=Pe.findTreeParentNode();if(tt===null)break;var dt=this._sortTreeChildrenByY(tt),tn=dt.indexOf(Pe);if(tndt.y?1:tt.xdt.x?1:0}),Pe},yt.prototype.copyToClipboard=function(ve){go.CommandHandler.prototype.copyToClipboard.call(this,ve),this._lastPasteOffset.set(this.pasteOffset)},yt.prototype.pasteFromClipboard=function(){var ve=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(ve,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),ve},Object.defineProperty(yt.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(ve){if(ve!=="move"&&ve!=="select"&&ve!=="scroll"&&ve!=="tree"&&ve!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+ve);this._arrowKeyBehavior=ve}}),Object.defineProperty(yt.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(ve){if(!(ve instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+ve);this._pasteOffset.set(ve)}});var Lt=yt,on=te(87851),$t=te(43604),st=te(57193),lt={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Ge=te(59301),Ne=(ve,Pe,xe)=>new Promise((ke,tt)=>{var dt=_t=>{try{Kt(xe.next(_t))}catch(ft){tt(ft)}},tn=_t=>{try{Kt(xe.throw(_t))}catch(ft){tt(ft)}},Kt=_t=>_t.done?ke(_t.value):Promise.resolve(_t.value).then(dt,tn);Kt((xe=xe.apply(ve,Pe)).next())});function et({onCancel:ve,callback:Pe}){let xe=(0,ee.useRef)(),ke=(0,ee.useRef)(),tt=(0,ee.useRef)(),dt=(0,ee.useRef)(!1);const tn=(0,ee.useRef)(!1),[Kt,_t]=(0,ee.useState)(0);function ft(){const gt=$e.bx.make,Gt={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 $e.S0(ke.current,{padding:20,grid:gt($e.s_,"Grid",gt($e.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),gt($e.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:un=>{var Sn=un.diagram.commandHandler.addTopLevelParts(un.diagram.selection,!0);Sn||un.diagram.currentTool.doCancel()},commandHandler:gt(Lt),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:un=>{var Sn=un.subject;Sn.location=Sn.location.copy().snapToGridPoint(un.diagram.grid.gridOrigin,un.diagram.grid.gridCellSize),setTimeout(()=>{un.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:un=>{var Sn=un.subject;setTimeout(()=>{un.diagram.commandHandler.editTextBlock()})},LinkRelinked:un=>{var Sn=un.parameter.part;Sn.invalidateConnectedLinks();var Nn=un.subject;un.diagram.toolManager.linkingTool.isForwards?Nn.toNode.invalidateConnectedLinks():Nn.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),xe.current.nodeTemplate=gt($e.NB,"Auto",{locationSpot:$e.z6.Center,locationObjectName:"SHAPE",desiredSize:new $e.$u(120,60),minSize:new $e.$u(40,40),resizable:!0,resizeCellSize:new $e.$u(10,10),rotatable:!0},new $e.KX("location","loc",$e.E9.parse).makeTwoWay($e.E9.stringify),new $e.KX("desiredSize","size",$e.$u.parse).makeTwoWay($e.$u.stringify),gt($e.bn,{name:"SHAPE",fill:Gt.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:$e.z6.AllSides,toSpot:$e.z6.AllSides},new $e.KX("figure"),new $e.KX("fill"),new $e.KX("stroke","borderColor"),new $e.KX("strokeWidth","thickness"),new $e.KX("strokeDashArray","dash")),gt($e.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),gt($e.al,{margin:1,textAlign:"center",overflow:$e.al.OverflowEllipsis,editable:!0},new $e.KX("text").makeTwoWay(),new $e.KX("stroke","color"))),xe.current.nodeTemplate.toolTip=gt("ToolTip",gt($e.s_,"Vertical",{maxSize:new $e.$u(200,NaN)},gt($e.al,{font:"bold 10pt sans-serif",textAlign:"center"},new $e.KX("text")),gt($e.al,{font:"10pt sans-serif",textAlign:"center"},new $e.KX("text","details"))));function Zt(un,Sn){var Nn=(pn,cr)=>{pn.handled=!0,pn.diagram.model.commit(fr=>{var Ar=cr.part.adornedPart,Ur=new $e.E9().setRectSpot(Ar.actualBounds,un);Ur.subtract(Ar.location),Ur.scale(2,2),Ur.x+=Math.sign(Ur.x)*130,Ur.y+=Math.sign(Ur.y)*130,Ur.add(Ar.location),Ur.snapToGridPoint(pn.diagram.grid.gridOrigin,pn.diagram.grid.gridCellSize);var ti=fr.copyNodeData(Ar.data);fr.setGroupKeyForNodeData(ti,fr.getGroupKeyForNodeData(Ar.data)),fr.addNodeData(ti);var vi={from:Ar.key,to:fr.getKeyForNodeData(ti)};fr.addLinkData(vi);var gi=pn.diagram.findNodeForData(ti);gi.location=Ur,pn.diagram.select(gi),setTimeout(()=>{pn.diagram.commandHandler.editTextBlock()},20)})};return gt($e.bn,{figure:Sn,alignment:un,alignmentFocus:un.opposite(),width:un.equals($e.z6.Top)||un.equals($e.z6.Bottom)?25:18,height:un.equals($e.z6.Top)||un.equals($e.z6.Bottom)?18:25,fill:"orange",stroke:Gt.white,strokeWidth:4,mouseEnter:(pn,cr)=>cr.fill="dodgerblue",mouseLeave:(pn,cr)=>cr.fill="orange",isActionable:!0,click:Nn,contextClick:Nn})}function Tt(un){return gt($e.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:(Sn,Nn)=>Nn.fill="dodgerblue",mouseLeave:(Sn,Nn)=>Nn.fill="orange",click:(Sn,Nn)=>{Sn.diagram.commandHandler.showContextMenu(Nn.part.adornedPart)}},un||{})}xe.current.nodeTemplate.selectionAdornmentTemplate=gt($e.uz,"Spot",gt($e.Vm,{padding:10}),Zt($e.z6.Top,"TriangleUp"),Zt($e.z6.Left,"TriangleLeft"),Zt($e.z6.Right,"TriangleRight"),Zt($e.z6.Bottom,"TriangleDown"),Tt({alignment:new $e.z6(.75,0)}));function kt(un,Sn){return(Nn,pn)=>{Nn.handled=!0,Nn.diagram.model.commit(cr=>{cr.set(pn.part.adornedPart.data,un,Sn)})}}function Xt(un,Sn){return Sn||(Sn="color"),gt($e.bn,{width:16,height:16,stroke:"lightgray",fill:un,margin:1,background:"transparent",mouseEnter:(Nn,pn)=>pn.stroke="dodgerblue",mouseLeave:(Nn,pn)=>pn.stroke="lightgray",click:kt(Sn,un),contextClick:kt(Sn,un)})}function dn(){return[gt("ContextMenuButton",gt($e.s_,"Horizontal",Xt(Gt.white,"fill"),Xt(Gt.beige,"fill"),Xt(Gt.extralightblue,"fill"),Xt(Gt.extralightred,"fill"))),gt("ContextMenuButton",gt($e.s_,"Horizontal",Xt(Gt.lightgray,"fill"),Xt(Gt.lightgreen,"fill"),Xt(Gt.lightblue,"fill"),Xt(Gt.lightred,"fill")))]}function xn(){return[gt("ContextMenuButton",gt($e.s_,"Horizontal",Xt(Gt.black),Xt(Gt.green),Xt(Gt.blue),Xt(Gt.red))),gt("ContextMenuButton",gt($e.s_,"Horizontal",Xt(Gt.white),Xt(Gt.magenta),Xt(Gt.purple),Xt(Gt.orange)))]}function Fn(un,Sn){return Sn||(Sn="thickness"),gt($e.bn,"LineH",{width:16,height:16,strokeWidth:un,margin:1,background:"transparent",mouseEnter:(Nn,pn)=>pn.background="dodgerblue",mouseLeave:(Nn,pn)=>pn.background="transparent",click:kt(Sn,un),contextClick:kt(Sn,un)})}function Qn(un,Sn){return Sn||(Sn="dash"),gt($e.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:un,margin:1,background:"transparent",mouseEnter:(Nn,pn)=>pn.background="dodgerblue",mouseLeave:(Nn,pn)=>pn.background="transparent",click:kt(Sn,un),contextClick:kt(Sn,un)})}function mn(){return[gt("ContextMenuButton",gt($e.s_,"Horizontal",Fn(1),Fn(2),Fn(3),Fn(4))),gt("ContextMenuButton",gt($e.s_,"Horizontal",Qn(null),Qn([2,4]),Qn([4,4])))]}function An(un,Sn){return Sn||(Sn="figure"),gt($e.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:un,margin:1,background:"transparent",mouseEnter:(Nn,pn)=>pn.fill="dodgerblue",mouseLeave:(Nn,pn)=>pn.fill="lightgray",click:kt(Sn,un),contextClick:kt(Sn,un)})}xe.current.nodeTemplate.contextMenu=gt("ContextMenu",gt("ContextMenuButton",gt($e.s_,"Horizontal",An("Rectangle"),An("RoundedRectangle"),An("Ellipse"),An("Diamond"))),gt("ContextMenuButton",gt($e.s_,"Horizontal",An("Parallelogram2"),An("ManualOperation"),An("Procedure"),An("Cylinder1"))),gt("ContextMenuButton",gt($e.s_,"Horizontal",An("Terminator"),An("CreateRequest"),An("Document"),An("TriangleDown"))),dn(),xn(),mn()),xe.current.groupTemplate=gt($e.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:$e.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(un,Sn)=>{var Nn=Sn.addMembers(Sn.diagram.selection,!0);Nn||Sn.diagram.currentTool.doCancel()},avoidable:!1},new $e.KX("location","loc",$e.E9.parse).makeTwoWay($e.E9.stringify),gt($e.s_,"Auto",{name:"BODY"},gt($e.bn,{parameter1:10,fill:Gt.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:$e.z6.AllSides,toSpot:$e.z6.AllSides},new $e.KX("fill"),new $e.KX("stroke","color"),new $e.KX("strokeWidth","thickness"),new $e.KX("strokeDashArray","dash")),gt($e.Vm,{background:"transparent",margin:20})),gt($e.al,{alignment:$e.z6.Top,alignmentFocus:$e.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new $e.KX("text"),new $e.KX("stroke","color"))),xe.current.groupTemplate.selectionAdornmentTemplate=gt($e.uz,"Spot",gt($e.s_,"Auto",gt($e.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),gt($e.Vm,{margin:1.5})),Tt({alignment:$e.z6.TopRight,alignmentFocus:$e.z6.BottomRight})),xe.current.groupTemplate.contextMenu=gt("ContextMenu",dn(),xn(),mn()),xe.current.linkTemplate=gt($e.rU,{layerName:"Foreground",routing:$e.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new $e.KX("fromSpot","fromSpot",$e.z6.parse),new $e.KX("toSpot","toSpot",$e.z6.parse),new $e.KX("fromShortLength","dir",un=>un>=1?10:0),new $e.KX("toShortLength","dir",un=>un>=1?10:0),new $e.KX("points").makeTwoWay(),gt($e.bn,{strokeWidth:2},new $e.KX("stroke","color"),new $e.KX("strokeWidth","thickness"),new $e.KX("strokeDashArray","dash")),gt($e.bn,{segmentIndex:0,segmentOffset:new $e.E9(15,0),segmentOrientation:$e.rU.OrientAlong,alignmentFocus:$e.z6.Right,figure:"circle",width:10,strokeWidth:0},new $e.KX("fill","color"),new $e.KX("visible","dir",un=>un===1)),gt($e.bn,{segmentIndex:-1,segmentOffset:new $e.E9(-10,6),segmentOrientation:$e.rU.OrientPlus90,alignmentFocus:$e.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new $e.KX("fill","color"),new $e.KX("visible","dir",un=>un>=1),new $e.KX("width","thickness",un=>7+3*un),new $e.KX("height","thickness",un=>7+3*un),new $e.KX("segmentOffset","thickness",un=>new $e.E9(-15,4+1.5*un))),gt($e.bn,{segmentIndex:0,segmentOffset:new $e.E9(15,-6),segmentOrientation:$e.rU.OrientMinus90,alignmentFocus:$e.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new $e.KX("fill","color"),new $e.KX("visible","dir",un=>un===2),new $e.KX("width","thickness",un=>7+3*un),new $e.KX("height","thickness",un=>7+3*un),new $e.KX("segmentOffset","thickness",un=>new $e.E9(-15,4+1.5*un))),gt($e.al,{alignmentFocus:new $e.z6(0,1,-4,0),editable:!0},new $e.KX("text").makeTwoWay(),new $e.KX("stroke","color"))),xe.current.linkTemplate.selectionAdornmentTemplate=gt($e.uz,gt($e.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:ur(2)},new $e.KX("pathPattern","thickness",ur)),Tt({alignmentFocus:new $e.z6(0,0,-6,-4)}));function ur(un){return gt($e.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(un+4).toString()+" H3"})}function rr(un){var Sn="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return un===0?Sn="M0 0 M16 16 M0 8 L16 8":un===2&&(Sn="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),gt($e.bn,{geometryString:Sn,margin:2,background:"transparent",mouseEnter:(Nn,pn)=>pn.background="dodgerblue",mouseLeave:(Nn,pn)=>pn.background="transparent",click:kt("dir",un),contextClick:kt("dir",un)})}function ir(un){var Sn=(Nn,pn)=>{Nn.handled=!0,Nn.diagram.model.commit(cr=>{var fr=pn.part.adornedPart;cr.set(fr.data,un?"toSpot":"fromSpot",$e.z6.stringify($e.z6.AllSides)),(un?fr.toNode:fr.fromNode).invalidateConnectedLinks()})};return gt($e.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Nn,pn)=>pn.background="dodgerblue",mouseLeave:(Nn,pn)=>pn.background="transparent",click:Sn,contextClick:Sn})}function Wt(un,Sn){var Nn=0,pn=$e.z6.RightSide;un.equals($e.z6.Top)?(Nn=270,pn=$e.z6.TopSide):un.equals($e.z6.Left)?(Nn=180,pn=$e.z6.LeftSide):un.equals($e.z6.Bottom)&&(Nn=90,pn=$e.z6.BottomSide),Sn||(Nn-=180);var cr=(fr,Ar)=>{fr.handled=!0,fr.diagram.model.commit(Ur=>{var ti=Ar.part.adornedPart;Ur.set(ti.data,Sn?"toSpot":"fromSpot",$e.z6.stringify(pn)),(Sn?ti.toNode:ti.fromNode).invalidateConnectedLinks()})};return gt($e.bn,{alignment:un,alignmentFocus:un.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Nn,background:"transparent",mouseEnter:(fr,Ar)=>Ar.background="dodgerblue",mouseLeave:(fr,Ar)=>Ar.background="transparent",click:cr,contextClick:cr})}xe.current.linkTemplate.contextMenu=gt("ContextMenu",xn(),mn(),gt("ContextMenuButton",gt($e.s_,"Horizontal",rr(0),rr(1),rr(2))),gt("ContextMenuButton",gt($e.s_,"Horizontal",gt($e.s_,"Spot",ir(!1),Wt($e.z6.Top,!1),Wt($e.z6.Left,!1),Wt($e.z6.Right,!1),Wt($e.z6.Bottom,!1)),gt($e.s_,"Spot",{margin:new $e.Zt(0,0,0,2)},ir(!0),Wt($e.z6.Top,!0),Wt($e.z6.Left,!0),Wt($e.z6.Right,!0),Wt($e.z6.Bottom,!0)))));const oi=`{ "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 wr=["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 Tr(un){return console.log("shapeName:",un),wr.indexOf(un)>=0}var kr=new $e.YI(tt.current,{maxSelectionCount:1,linkTemplate:gt($e.rU,{locationSpot:$e.z6.Center,selectionAdornmentTemplate:gt($e.uz,"Link",{locationSpot:$e.z6.Center},gt($e.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),gt($e.bn,{toArrow:"Standard",stroke:null}))},{routing:$e.rU.AvoidsNodes,curve:$e.rU.JumpOver,corner:5,toShortLength:4},new $e.KX("points"),gt($e.bn,{isPanelMain:!0,strokeWidth:2}),gt($e.bn,{toArrow:"Standard",stroke:null})),model:new $e.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...$e.bn.getFigureGenerators().toArray().map(un=>({text:"\u672A\u547D\u540D",size:"100 100",figure:un.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return xe.current.addDiagramListener("TextEdited",function(un){var Sn;const Nn=un.subject.part;var pn=(Sn=document.activeElement)==null?void 0:Sn.value;typeof pn=="string"&&pn.trim()===""&&xe.current.model.commit(function(cr){cr.set(Nn.data,"text","\u672A\u547D\u540D"),xe.current.commandHandler.stopCommand()},"increment")}),kr.nodeTemplate=gt($e.NB,"Auto",{locationSpot:$e.z6.Center},new $e.KX("location","location",$e.E9.parse).makeTwoWay($e.E9.stringify),gt($e.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 $e.KX("stroke").makeTwoWay(),new $e.KX("fill").makeTwoWay(),new $e.KX("figure")),gt($e.al,{margin:new $e.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new $e.$u(16,16),maxSize:new $e.$u(10,NaN),textAlign:"center",editable:!0},new $e.KX("key").makeTwoWay())),setTimeout(()=>{xe.current.grid=gt($e.s_,"Grid",gt($e.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),gt($e.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 Ft=()=>Ne(this,null,function*(){var gt=xe.current.makeImage();const Gt=yield(0,st.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:gt.src}});Pe({src:Gt.url})});return(0,ee.useEffect)(()=>(setTimeout(()=>{ft()},500),_t(Kt+1),()=>{xe.current=null}),[]),Ge.createElement("div",{ref:tn,className:dt.current?`${lt.maxH60} body-overflow-initial`:"body-overflow-initial"},Ge.createElement(Xe.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Kt,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Ge.createElement(Ct.Z,null,Ge.createElement($t.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Ge.createElement($t.Z,{onClick:()=>{var gt,Gt,Zt=xe.current.selection.first();if(dt.current=!dt.current,document.activeElement&&Zt){let Tt=(Gt=(gt=document.activeElement)==null?void 0:gt.value)==null?void 0:Gt.trim();typeof Tt=="string"&&xe.current.model.commit(function(kt){kt.set(Zt.data,"text",Tt||"\u672A\u547D\u540D"),xe.current.commandHandler.stopCommand()},"increment")}_t(Kt+1)}},Ge.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:ve},Ge.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:lt.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:lt.myPaletteDiv,ref:tt})),Ge.createElement("div",{style:{flex:1,position:"relative"}},Ge.createElement("div",{ref:ke,style:{height:"80vh"}}))),Ge.createElement("div",{className:"tr"},Ge.createElement(Le.ZP,{size:"large",onClick:Ft,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var xt=et,Ie=te(5112),Re=te(5871);const Ze=Ie.ZP.Group,Be={margin:"0 8px"};var ze=({callback:ve,onCancel:Pe})=>{function xe(ke){ve(ke)}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:Be},"\u5355\u5143\u683C\u6570\uFF1A"),ee.createElement("span",{style:Be},"\u884C\u6570"),ee.createElement(Ee.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ee.createElement(Re.Z,null)),ee.createElement("span",{style:Be},"\u5217\u6570"),ee.createElement(Ee.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ee.createElement(Re.Z,null))),ee.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ee.createElement("span",{style:Be},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ee.createElement(Ee.default.Item,{name:"align"},ee.createElement(Ze,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(78673),It=te(63089),Mt=te.n(It),Dt=(0,ee.forwardRef)(({use3d:ve,width:Pe,height:xe,callback:ke,showSaveButton:tt},dt)=>{const tn=(0,ee.useRef)(),Kt=(0,ee.useRef)(),[_t,ft]=(0,ee.useState)(!1),Ft=(0,ee.useRef)({id:tn,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)(()=>{Kt.current=new(Mt())(Ft.current,!0),window.onload=function(){Kt.current.inject("applet_container")}},[]);const gt=()=>{var Gt=window.ggbApplet.getPNGBase64(1,!0,72);return ke&&ke(Gt),Gt};return(0,ee.useEffect)(()=>{Ft.current.appName=_t?"3D":"graphing",Kt.current.inject("applet_container")},[_t]),(0,ee.useEffect)(()=>{ft(ve)},[ve]),(0,ee.useImperativeHandle)(dt,()=>({getImgData:gt})),ee.createElement(ee.Fragment,null,ee.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:tn}),ee.createElement(Ct.Z,{align:"middle"},ee.createElement($t.Z,{flex:1},ee.createElement(it.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:_t,onChange:Gt=>ft(Gt)})),ee.createElement($t.Z,null,ee.createElement(Le.ZP,{size:"large",onClick:gt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Ht=te(24638),bt=te(1012),fn=te(8591);const cn="link",wt="upload-image",yn="add-flowchart",vn="draw-image",zn="add-flowchart",wn="code-block",Wn="add-table",qn="------------",Kn={default:qn,left:`:${qn}`,center:`:${qn}:`,right:`${qn}:`};var Vn=te(66991),vr=(ve,Pe,xe)=>new Promise((ke,tt)=>{var dt=_t=>{try{Kt(xe.next(_t))}catch(ft){tt(ft)}},tn=_t=>{try{Kt(xe.throw(_t))}catch(ft){tt(ft)}},Kt=_t=>_t.done?ke(_t.value):Promise.resolve(_t.value).then(dt,tn);Kt((xe=xe.apply(ve,Pe)).next())});function lr(){}let sn=0;const Yn=1e4,or="\u2581",Zn="@\u2581\u2581@",ar="@\u2581@",Dr=` **\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`,Mr=["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(ve){return/^\d+$/.test(ve)?`${ve}px`:ve}const sr=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Kr={[sr+"-B"]:"bold",[sr+"-I"]:"italic"},Ut={[cn]:"\u6DFB\u52A0\u94FE\u63A5",[wn]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[wt]:"\u6DFB\u52A0\u56FE\u7247",[vn]:"\u6DFB\u52A0\u753B\u56FE",[yn]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Wn]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var ue=({defaultValue:ve="",onChange:Pe,width:xe="100%",height:ke=400,miniToolbar:tt=!1,isFocus:dt=!1,watch:tn,insertTemp:Kt,mode:_t="markdown",id:ft="markdown-editor-id",showResizeBar:Ft=!1,noStorage:gt=!1,showNullButton:Gt=!1,showNullProgramButton:Zt=!1,hidetoolBar:Tt=!1,fullScreen:kt=!1,onBlur:Xt,onCMBeforeChange:dn,onFullScreen:xn,className:Fn="",disablePaste:Qn=!1,disabled:mn=!1,disabledFill:An=!1,placeholder:ur="",values:rr="",extraUse:ir})=>{const[Wt,oi]=(0,ee.useState)(null),[wr,Tr]=(0,ee.useState)(ve),[kr,un]=(0,ee.useState)(tn),[Sn,Nn]=(0,ee.useState)(kt),[pn,cr]=(0,ee.useState)(""),[fr,Ar]=(0,ee.useState)(0),[Ur,ti]=(0,ee.useState)(ke),[vi,gi]=(0,ee.useState)(!1),Si=(0,ee.useRef)((0,bt.Z)()),Mi=(0,ee.useRef)(!1),yi=(0,ee.useRef)(),[wi,xi]=(0,ee.useState)(0),[Oi,ai]=(0,ee.useState)(0),jr=(0,ee.useRef)(),$r=(0,ee.useRef)(),ni=(0,ee.useRef)(),di=(0,ee.useRef)(),Ri=()=>vr(void 0,null,function*(){var $n;const En=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Si.current}});($n=En==null?void 0:En.attachments)!=null&&$n.length&&(console.log("cm:",Wt,jr),En.attachments.map(In=>{In.content_type.indexOf("image")>-1?Wt.replaceSelection(`![,](/api/attachments/${In.id}?type=${In.content_type})`):In.content_type.indexOf("video")>-1?Wt.replaceSelection(``):In.content_type.indexOf("pdf")>-1?Wt.replaceSelection(`${In.name}`):Wt.replaceSelection(`[${In.name}](${ENV.API_SERVER}/api/attachments/${In.id}?type=${In.content_type})`)}))});(0,ee.useEffect)(()=>{const $n=window.scrollY||window.pageYOffset;Tr(rr),Wt==null||Wt.setValue(rr),window.scrollTo(0,$n)},[rr]),(0,ee.useEffect)(()=>{xn==null||xn(Sn)},[Sn]),(0,ee.useEffect)(()=>{if(jr.current){let $n=function(In,Bn){var gr;if(Qn){Bn.preventDefault();return}const Ir=Bn.clipboardData;if(Ir){const Xr=Ir.types.toString(),Qr=Ir.items;if(Xr==="Files"||Ir.types.indexOf("Files")>-1){if(Bn.preventDefault(),_t=="stex")return;try{let ui=Qr[1];((gr=Qr[0])==null?void 0:gr.kind)==="file"&&(ui=Qr[0]);const li=ui.getAsFile(),ji=li.name.split(".").pop();(0,rt.I)(li,Ei=>{var lo,eo,Jr;Ei.id?((lo=li==null?void 0:li.type)==null?void 0:lo.indexOf("image"))>-1?En.replaceSelection(``):((eo=li==null?void 0:li.type)==null?void 0:eo.indexOf("video"))>-1?En.replaceSelection(``):((Jr=li==null?void 0:li.type)==null?void 0:Jr.indexOf("pdf"))>-1?En.replaceSelection(`${li.name}`):Mr.includes(ji)?En.replaceSelection(`${li.name}`):En.replaceSelection(`[${li.name}](/api/attachments/${Ei.id}?type=${Ei.content_type})`):(Ei==null?void 0:Ei.status)===401&&(fn.ZP.warning((Ei==null?void 0:Ei.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(ui){fn.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const En=be().fromTextArea(jr.current,{mode:_t,lineNumbers:!tt,lineWrapping:!0,value:ve,autoCloseTags:!Zt,autoCloseBrackets:!0});return En.on("keyup",function(In,Bn){Bn.keyCode===8&&(In.getValue()==""?En.setOption("placeholder",ur):En.setOption("placeholder",null))}),En.on("keydown",function(In,Bn){if(Bn.keyCode===8){var gr=Hi(In);gr&&Bn.preventDefault()}}),dt&&En.focus(),En.on("paste",$n),En.on("dragleave",function(In,Bn){$r.current.classList.remove("mouse-hover-md")}),mn&&En.on("beforeChange",function(In,Bn){(Bn.origin==="paste"||Bn.origin==="+input")&&Bn.cancel()}),oi(En),()=>{En.off("paste",$n)}}},[]);const zr=(0,ee.useCallback)(()=>{if($r.current)try{}catch($n){console.log($n,"---- to set md editor body height")}},[Ur,$r,Sn]);(0,ee.useEffect)(()=>{function $n(){let En=new pe.Z(In=>{for(let Bn of In)(Bn.target.offsetHeight>0||Bn.target.offsetWidth>0)&&(zr(),Wt.setSize("100%","100%"),Wt.refresh())});return En.observe(jr.current.parentElement),En}if(Wt){const En=$n();return()=>{var In,Bn;(In=jr.current)!=null&&In.parentElement&&En.unobserve((Bn=jr.current)==null?void 0:Bn.parentElement)}}},[Wt,zr]),(0,ee.useEffect)(()=>{if(Wt){let $n=[];for(const[En,In]of Object.entries(Kr)){let Bn={[En]:()=>{Pi(In)}};$n.push(Bn),Wt.addKeyMap(Bn)}return yi.current=setInterval(()=>{Mi.current&&Ri()},4e3),()=>{clearInterval(yi.current);for(let En of $n)Wt.removeKeyMap(En)}}},[Wt]),(0,ee.useEffect)(()=>{kt!==Sn&&Nn(kt)},[kt]),(0,Vn.Z)(()=>{if(!gt&&fr>0){let $n=new Date().getTime(),En=window.sessionStorage.getItem(ft);$n>=fr+Yn&&(!En||En!==wr)&&(window.sessionStorage.setItem(ft,wr),gi(!0))}},Yn),(0,ee.useEffect)(()=>{un(tn)},[Wt,tn]),(0,ee.useEffect)(()=>{Wt&&dt&&Wt.focus()},[Wt,dt]),(0,ee.useEffect)(()=>{if(kr&&Wt){let $n=function(In){let Bn=In.target;if(di.current){let gr=Bn.scrollTop/Bn.scrollHeight;di.current.scrollTop=di.current.scrollHeight*gr}};const En=Wt.getScrollerElement();return En.addEventListener("scroll",$n),()=>{En.removeEventListener("scroll",$n)}}},[Wt,kr]),(0,ee.useEffect)(()=>{if(Wt&&dn){let $n=function(En,In){dn(En,In)};return Wt.on("beforeChange",$n),()=>{Wt.off("beforeChange",$n)}}},[Wt,dn]),(0,ee.useEffect)(()=>{if(Wt&&Xt){let $n=function(){Xt(Wt.getValue())};return Wt.on("blur",$n),()=>{Wt.off("blur",$n)}}},[Wt,Xt]);function Hi($n,En){var In=$n.getDoc(),Bn=In.getCursor(),gr=In.getLine(Bn.line),Ir=gr.charAt(Bn.ch-1),Xr=gr.lastIndexOf("@\u2581@",Bn.ch),Qr=gr.lastIndexOf("@\u2581\u2581@",Bn.ch),ui=Xr>Qr?Xr:Qr,li=Xr>Qr?3:4;if(Zn.indexOf(Ir)===-1)return null;if(console.log("change1:",En,$n,gr,Bn,ui,Xr,Qr,Ir),ui>=0&&Bn.ch-ui<5){var ji=ui+li;return In.replaceRange("",{line:Bn.line,ch:ui},{line:Bn.line,ch:ji}),{line:Bn.line,ch:ji}}return null}(0,ee.useEffect)(()=>{if(Wt){let $n=function(En,In){const Bn=En.getValue();Tr(Bn),Ar(new Date().getTime()),En.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Pe&&(Zt?Pe(Bn,Gi(Bn)):Pe(Bn))};return Wt.on("change",$n),()=>{Wt.off("change",$n)}}},[Wt,Pe]),(0,ee.useEffect)(()=>{if(Wt)if(ve==null)Wt.setValue(""),Tr("");else{const $n=window.scrollY||window.pageYOffset;ve!==Wt.getValue()&&(Wt.setValue(ve),Tr(ve),Wt.setCursor(mn?1:Wt.lineCount(),0),window.scrollTo(0,$n))}},[Wt,ve]);const Pi=(0,ee.useCallback)($n=>{const En=Wt.getCursor(),In=Wt.getSelection();let Bn=In.split(` `);switch($n){case"bold":return Wt.replaceSelection("**"+In+"**"),In===""&&Wt.setCursor(En.line,En.ch+2),Wt.focus();case"italic":return Wt.replaceSelection("*"+In+"*"),In===""&&Wt.setCursor(En.line,En.ch+1),Wt.focus();case"code":return Wt.replaceSelection("`"+In+"`"),In===""&&Wt.setCursor(En.line,En.ch+1),Wt.focus();case"inline-latex":return cr("inline-latex"),Wt.focus();case"latex":return Wt.replaceSelection("```latex\n"+In+"\n```"),Wt.setCursor(En.line+1,In.length+1),Wt.focus();case"line-break":return Wt.replaceSelection(`
`),Wt.focus();case"list-ul":return In===""?Wt.replaceSelection("- "+In):Wt.replaceSelection(Bn.map(gr=>gr===""?"":`- ${gr}`).join(` `)),Wt.focus();case"list-ol":return In===""?Wt.replaceSelection("1. "+In):Wt.replaceSelection(Bn.map((gr,Ir)=>gr===""?"":`${Ir+1}. ${gr}`).join(` `)),Wt.focus();case"add-null-ch":return In===""&&Wt.setCursor(En.line,En.ch),Wt.replaceSelection(or),Wt.focus();case"add-signal":return In===""&&Wt.setCursor(En.line,En.ch),Wt.replaceSelection(ar),Wt.focus();case"add-multiple":return In===""&&Wt.setCursor(En.line,En.ch),Wt.replaceSelection(Zn),Wt.focus();case"inster-template-1":return In===""&&Wt.setCursor(En.line,En.ch),Wt.replaceSelection(Dr),Wt.focus();case"eraser":return Wt.setValue(""),Wt.focus();case"trigger-watch":return un(!kr),Wt.focus();case"trigger-full-screen":return Nn(!Sn),Wt.focus();case cn:cr(cn);return;case wn:cr(wn);return;case wt:cr(wt);return;case vn:cr(vn);return;case"maths-latex":cr("maths-latex");return;case yn:cr(yn);return;case Wn:cr(Wn);return;default:throw new Error}},[Wt,kr,Sn]),fi=(0,ee.useCallback)(($n,En)=>{var In,Bn,gr,Ir,Xr,Qr;switch(cr(""),pn){case cn:const{title:lo,link:eo}=$n;return Wt.replaceSelection(`[${lo}](${eo})`),Wt.focus();case wn:const{language:Jr,content:pr}=$n;return Wt.replaceSelection(["```"+Jr,pr,"```"].join(` `)),Wt.focus();case"maths-latex":for(var ui=atob($n),li=new Uint8Array(ui.length),ji=0;ji{Ni.id?Wt.replaceSelection(`![,](/api/attachments/${Ni.id}?type=${Ni.content_type})`):(Ni==null?void 0:Ni.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Wt.replaceSelection("`$$"+$n+"$$`");break;case wt:case vn:case zn:const{src:Li,alt:Ui}=$n,Or=En,si=(gr=(Bn=(In=Or==null?void 0:Or.name)==null?void 0:In.split("."))==null?void 0:Bn.pop)==null?void 0:gr.call(Bn);return((Ir=Or==null?void 0:Or.type)==null?void 0:Ir.indexOf("image"))>-1||!(Or!=null&&Or.type)?Or.align||Or.width?Wt.replaceSelection(`

${Ui||

`):Wt.replaceSelection(`${Ui||`):((Xr=Or==null?void 0:Or.type)==null?void 0:Xr.indexOf("video"))>-1?Wt.replaceSelection(``):((Qr=Or==null?void 0:Or.type)==null?void 0:Qr.indexOf("pdf"))>-1?Wt.replaceSelection(`${Or.name}`):Mr.includes(si)?Wt.replaceSelection(`${Or.name}`):Wt.replaceSelection(`[${Or.name}](${Li})`),Wt.focus();case Wn:const{row:to,col:qi,align:vo}=$n;let So=` `;for(let Ni=0;Ni{switch(pn){case cn:return ee.createElement(At,{callback:fi,onCancel:bi});case wn:return ee.createElement(Bt.Z,{callback:fi,onCancel:bi});case wt:return ee.createElement(rt.Z,{callback:fi,onCancel:bi});case yn:return ee.createElement(xt,{callback:fi,onCancel:bi});case Wn:return ee.createElement(ze,{callback:fi,onCancel:bi});case"maths-latex":return ee.createElement(Dt,{showSaveButton:!0,callback:fi});case"inline-latex":return ee.createElement(Ht.Z,{showSaveButton:!0,callback:fi});default:return null}},[pn]);function bi(){cr("")}(0,ee.useEffect)(()=>{if(ni.current){let $n=function(Xr){gr=!0,Ir=Xr.pageY},En=function(){gr=!1},In=function(Xr){if(gr){let Qr=Xr.pageY-Ir;Qr<0&&(Qr=0),Qr>300&&(Qr=300);let ui=ke+Qr+"px";ti(ui)}},Bn=ni.current,gr=!1,Ir=0;return Bn.addEventListener("mousedown",$n),document.addEventListener("mousemove",In),document.addEventListener("mouseup",En),()=>{Bn.removeEventListener("mousedown",$n),document.removeEventListener("mousemove",In),document.removeEventListener("mouseup",En)}}},[Wt,ni]),(0,ee.useEffect)(()=>{ti(ke)},[ke]);const Vi=Er(xe),Ti=Er(Ur),Ci={width:Vi,height:Ti},hi=(0,ee.useMemo)(()=>{if(fr){let $n=new Date(fr),En=$n.getHours(),In=$n.getMinutes(),Bn=$n.getSeconds();return En=En<10?"0"+En:En,In=In<10?"0"+In:In,Bn=Bn<10?"0"+Bn:Bn,`${En}:${In}:${Bn}`}return 0},[fr]),Gi=$n=>{const En=[];if(Zt){let In=-1;$n=$n.replace(/(@▁▁@|@▁@)/g,function(Bn,gr,Ir){En.push({multiLine:Bn!==ar})})}return En};function Qi(){window.sessionStorage.removeItem(ft),gi(!1),Ar(0)}function bo(){gi(!1),Ar(0),Wt.setValue(window.sessionStorage.getItem(ft))}(0,ee.useEffect)(()=>{Ut[pn]&&pn!==vn&&pn!==yn&&setTimeout(()=>{const $n=document.getElementsByClassName("markdown-popup-form")[0],En=window.innerWidth/2-$n.offsetWidth/2,In=window.innerHeight/2-$n.offsetHeight/2;xi(En),ai(In)},0)},[pn]);const po=$n=>{$n.preventDefault();const En=$n.clientX-wi,In=$n.clientY-Oi;document.body.onmousemove=Bn=>{let gr=Bn.clientX-En,Ir=Bn.clientY-In;const Xr=document.getElementsByClassName("markdown-popup-form")[0],Qr=window.innerWidth-Xr.offsetWidth,ui=window.innerHeight-Xr.offsetHeight;gr=Math.max(0,Math.min(gr,Qr)),Ir=Math.max(0,Math.min(Ir,ui)),Ji(Bn.clientX,Bn.clientY,En,In)&&(xi(gr),ai(Ir))},document.body.onmouseup=function(){document.body.onmousemove=null}},Ji=($n,En,In,Bn)=>{const gr=document.body.clientHeight,Ir=document.body.clientWidth;return $n<20&&In>$n||$n>Ir-20&&In<$n||En<20&&Bn>En||En>gr-20&&Bnje 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)=>ie(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 ht=(0,le.useRef)();function Ye(Fe){ht.current.width=Le.getFieldValue("width"),ht.current.align=Le.getFieldValue("align"),Ee(Fe,ht.current)}function vt(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];ht.current=He,De(He,vt)}return ae.createElement(ee.default,z(x({form:Le},ce),{className:"upload-image-panel",onFinish:Ye,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(pe.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(oe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(oe.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 ht=new window.XMLHttpRequest;ht.withCredentials=!0,ht.addEventListener("load",function(Ye){je(JSON.parse(Ye.target.responseText),Ee)},!1),ht.addEventListener("error",function(Ye){console.error(Ye)},!1),ht.open("POST",`${de.KI}/api/attachments.json`),ht.send(Le)}},81123:function(mt,Ke,te){"use strict";te.d(Ke,{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)}}},11979:function(mt,Ke,te){"use strict";var ee=te(70122),ge=te(57809),be=te(78673),pe=te(59301);const Se=ge.default.Option;Ke.Z=({isTheoretical:fe,onFontSizeChange:oe,cmFontSize:de,cmCodeMode:le,autoFormat:me,onCodeModeChange:ae,onTabToSpace:he,onAutoFormat:ie,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 pe.createElement("div",{className:`tpi-code-setting ${a}`},pe.createElement("h3",null,"\u4EE3\u7801\u683C\u5F0F"),pe.createElement("section",null,pe.createElement("div",{className:"file-item"},pe.createElement("b",null,"\u663E\u793A\u6A21\u5F0F"),pe.createElement(ge.default,{bordered:!1,size:"small",value:le,onChange:ae},pe.createElement(Se,{value:"vs"},"\u767D\u8272\u80CC\u666F"),pe.createElement(Se,{value:"vs-dark"},"\u9ED1\u8272\u80CC\u666F"))),!fe&&pe.createElement(pe.Fragment,null,pe.createElement("div",{className:"file-item"},pe.createElement("b",null,"\u5B57\u4F53\u5927\u5C0F"),pe.createElement(ge.default,{bordered:!1,size:"small",value:de,onChange:oe},pe.createElement(Se,{value:12},"12px"),pe.createElement(Se,{value:14},"14px"),pe.createElement(Se,{value:16},"16px"),pe.createElement(Se,{value:18},"18px"),pe.createElement(Se,{value:20},"20px"),pe.createElement(Se,{value:22},"22px"))),pe.createElement("div",{className:"file-item"},pe.createElement("b",null,"Tab\u8F6C\u6362"),pe.createElement(be.Z,{checked:y,onChange:he})),pe.createElement("div",{className:"file-item",onClick:ne},pe.createElement("b",{style:{cursor:"pointer"}},"\u683C\u5F0F\u5316\u4EE3\u7801")))),!fe&&pe.createElement(pe.Fragment,null,pe.createElement("h3",null,"\u5FEB\u6377\u952E"),pe.createElement("section",null,pe.createElement("div",{className:"file-item"},pe.createElement("b",null,"\u4FDD\u5B58\u4EE3\u7801"),pe.createElement("span",null,"Ctrl + S")),pe.createElement("div",{className:"file-item"},pe.createElement("b",null,"\u5524\u51FA\u5FEB\u6377\u952E\u5217\u8868"),pe.createElement("span",null,"F1 / Alt + F1")),pe.createElement("div",{className:"file-item"},pe.createElement("b",null,"\u5DE6\u53F3\u7F29\u8FDB"),pe.createElement("span",null,"Ctrl + ]/[")),pe.createElement("div",{className:"file-item"},pe.createElement("b",null,"\u8DF3\u5230\u5339\u914D\u7684\u62EC\u53F7"),pe.createElement("span",null,"Ctrl + Shift + \\")),pe.createElement("div",{className:"file-item"},pe.createElement("b",null,"\u8F6C\u5230\u884C\u9996"),pe.createElement("span",null,"Home")),pe.createElement("div",{className:"file-item"},pe.createElement("b",null,"\u8F6C\u5230\u884C\u5C3E"),pe.createElement("span",null,"End"))),E),!fe&&pe.createElement(pe.Fragment,null,pe.createElement("h3",null,"\u5FEB\u6377\u952E"),pe.createElement("section",null,_e&&pe.createElement("div",{className:"file-item"},pe.createElement("b",null,"\u7F16\u7A0B\u8BED\u8A00"),pe.createElement("span",null,_e)),pe.createElement("div",{className:"file-item"},pe.createElement("b",null,"\u5B9E\u8BAD\u96BE\u6613\u5EA6"),pe.createElement("span",null,ce[x==null?void 0:x.difficulty])),pe.createElement("div",{className:"file-item"},pe.createElement("b",null,"\u5B9E\u9A8C\u73AF\u5883"),pe.createElement("span",null,b==null?void 0:b.name)),pe.createElement("div",{className:"file-item"},pe.createElement("b",null,"\u5B9E\u9A8C\u5BB9\u5668\u7F51\u7EDC"),pe.createElement("span",null,b!=null&&b.close_internet?"\u5173\u95ED\u5916\u7F51":"\u5F00\u542F\u5916\u7F51")))))}},66991:function(mt,Ke,te){"use strict";te.d(Ke,{Z:function(){return ge}});var ee=te(59301);function ge(be,pe){const Se=(0,ee.useRef)();(0,ee.useEffect)(()=>{Se.current=be}),(0,ee.useEffect)(()=>{function fe(){Se.current()}if(pe!==null){let oe=setInterval(fe,pe);return()=>clearInterval(oe)}},[pe])}},62998:function(mt,Ke,te){"use strict";te.d(Ke,{Im:function(){return Ee},ZP:function(){return we},gZ:function(){return Ye}});var ee=te(59301),ge=te(92832),be=te(3113),pe=te(84105),Se=te(87395),fe=te(99268),oe=te(24334),de=te(35191),le=te(76818),me=te(63949),ae=te(7181),he=te(34376),ie=te(92310),ne=te.n(ie),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,at)=>He in Fe?y(Fe,He,{enumerable:!0,configurable:!0,writable:!0,value:at}):Fe[He]=at,ce=(Fe,He)=>{for(var at in He||(He={}))z.call(He,at)&&se(Fe,at,He[at]);if(x)for(var at of x(He))re.call(He,at)&&se(Fe,at,He[at]);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 ht({value:Fe,className:He}){const[at,We]=(0,ee.useState)(!1),pt=(0,ee.useRef)(),Pt=(0,ee.useRef)();return(0,ee.useEffect)(()=>{at&&(Pt.current.reset(),Pt.current.write((0,me.pp)(Fe||"")))},[Fe,at]),(0,ee.useEffect)(()=>{var At,Bt,rt,Xe;if(pt.current){Pt.current=new he.Terminal({fontSize:14,disableStdin:!0}),Pt.current.open(pt.current);const Ct=pt.current.offsetWidth-14,zt=((Xe=(rt=(Bt=(At=Pt.current)==null?void 0:At._core)==null?void 0:Bt._renderService)==null?void 0:rt.dimensions)==null?void 0:Xe.actualCellWidth)||9.5,Et=Math.ceil(Ct/zt);Pt.current.resize(Et,8),We(!0)}},[]),a.createElement("div",{ref:pt,className:ne()("XtermText-valueRef",He)})}function Ye(Fe){const{status:He,error_msg:at,output:We,input:pt,expected_output:Pt,is_file:At,input_file_url:Bt,output_file_url:rt,expected_output_file_url:Xe}=Fe;let Ct=null;const zt={minHeight:150,marginBottom:10,paddingLeft:24,background:"#070f19",color:"#fff"};switch(He){case fe.h.NOMATCH:Ct=a.createElement(a.Fragment,null,a.createElement("p",{className:"c-red"},"\u5B9E\u9645\u8F93\u5165\uFF1A"),!At&&a.createElement(ht,{className:"mb10",value:pt}),At&&a.createElement("div",{style:zt},a.createElement("a",{onClick:()=>(0,me.LR)(Bt,pt)},pt)),a.createElement("p",{className:"c-red"},"\u5B9E\u9645\u8F93\u51FA\uFF1A"),!At&&a.createElement(ht,{className:"mb10",value:We&&oe.Base64.decode(We)||""}),At&&a.createElement("div",{style:zt},a.createElement("a",{onClick:()=>(0,me.LR)(rt,We)},We)),a.createElement("p",{className:"c-red"},"\u9884\u671F\u8F93\u51FA\uFF1A"),!At&&a.createElement(ht,{className:"mb10",value:Pt&&oe.Base64.decode(Pt)||""}),At&&a.createElement("div",{style:zt},a.createElement("a",{onClick:()=>(0,me.LR)(Xe,Pt)},Pt)));break;case fe.h.EXECUTEFAILURE:Ct=a.createElement(a.Fragment,null,a.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A"),!At&&a.createElement(le.Z,{value:pt,style:zt}),At&&a.createElement("div",{style:zt},a.createElement("a",{onClick:()=>(0,me.LR)(Bt,pt)},pt)),a.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),a.createElement("pre",{className:"error"},oe.Base64.decode(at)));break;case fe.h.COMPILEFAILURE:Ct=a.createElement(a.Fragment,null,a.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A"),!At&&a.createElement(le.Z,{value:pt,style:zt}),At&&a.createElement("div",{style:zt},a.createElement("a",{onClick:()=>(0,me.LR)(Bt,pt)},pt)),a.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),a.createElement("pre",{className:"error"},oe.Base64.decode(at)));break;case fe.h.PODFAILURE:Ct=a.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case fe.h.TIMEOUT:Ct=a.createElement("p",null,"\u8BC4\u6D4B\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break}return a.createElement(a.Fragment,null," ",Ct," ")}function vt(Fe){const{status:He,error_msg:at,execute_time:We,output:pt,input:Pt,expected_output:At,is_file:Bt,input_file_url:rt,output_file_url:Xe,expected_output_file_url:Ct}=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",We,"\u79D2"),a.createElement("p",null,"\u6267\u884C\u7ED3\u679C\uFF1A"),a.createElement("pre",null,oe.Base64.decode(pt)));break;case fe.h.NOMATCH:zt=a.createElement(a.Fragment,null,a.createElement("p",null,"\u8F93\u5165\uFF1A",a.createElement("pre",null,Pt)),a.createElement("p",null,"\u8F93\u51FA\uFF1A",pt&&oe.Base64.decode(pt)),a.createElement("p",null,"\u9884\u671F\u8F93\u51FA\uFF1A",At&&oe.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,Pt)),a.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),a.createElement("pre",{className:"error"},oe.Base64.decode(at)));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,Pt)),a.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),a.createElement("pre",{className:"error"},oe.Base64.decode(at)));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:at,debuging:We,submitting:pt,executingMessage:Pt,debugResult:At,onChangeInput:Bt,onDebugCode:rt,onSubmitCode:Xe})=>{const[Ct,zt]=(0,ee.useReducer)(Le,De),{visible:Et,tabIndex:an}=Ct;(0,ee.useEffect)(()=>{zt({type:0,payload:!1})},[Fe]);function $e($t){let st=$t.target.id;zt({type:1,payload:st})}function yt(){zt({type:0,payload:!Et})}const Lt=(0,ee.useMemo)(()=>{if(At){const{status:$t}=At;return a.createElement(a.Fragment,null,vt(At))}return null},[At]);function on(){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 ${Et?"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?"":at,onChange:Bt}),rightNode:We?a.createElement(de.Z,{message:"\u4EE3\u7801\u6267\u884C\u4E2D..."}):At?Lt: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 ${Et?"up":""}`,onClick:yt},Et?a.createElement(pe.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:We,onClick:on},"\u8C03\u8BD5\u4EE3\u7801"),a.createElement(be.ZP,{type:"primary",className:"custom-ant-disabled",loading:pt,disabled:pt,onClick:()=>{zt({type:0,payload:!1}),Xe()}},"\u8BC4\u6D4B\u5E76\u63D0\u4EA4"))))}},94471:function(mt,Ke,te){"use strict";te.r(Ke),te.d(Ke,{default:function(){return Ue}});var ee=te(59301),ge=te(10906),be=te(76618),pe=te(95392),Se=te(31797),fe=te(8591),oe=te(43418),de=te(71418),le=te(57809),me=te(78633),ae=te(67786),he=te(78323),ie=te(87169),ne=te(43428),a=te(95440),y=te(81123),E=te(83090),b=te(11979),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,Oe)=>Me in Ce?z(Ce,Me,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Ce[Me]=Oe,Ee=(Ce,Me)=>{for(var Oe in Me||(Me={}))_e.call(Me,Oe)&&De(Ce,Oe,Me[Oe]);if(ce)for(var Oe of ce(Me))ye.call(Me,Oe)&&De(Ce,Oe,Me[Oe]);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 ht=(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))(ht||{});function Ye(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 vt=({isLoading:Ce,value:Me,onChange:Oe,language:Qe,onUpdateCode:Je,ActionBarRender:nt=qe=>x.createElement(we,{onShowCodeSetting:qe})})=>{const[qe,ct]=(0,ee.useReducer)(Ye,Le),{theme:ut,fontSize:St,showEditorSetting:Vt,tabToSpace:Nt}=qe,Yt=(0,ee.useRef)(),Ot=(0,ee.useRef)(),Qt={onFontSizeChange:_n=>{ct({type:0,payload:_n}),(0,E.t)("cmFontSize",_n)},tabToSpace:Nt,cmFontSize:St,className:"oj",cmCodeMode:ut,onTabToSpace:_n=>{ct({type:2,payload:_n}),(0,E.t)("cmTabToSpace",_n)},onCodeModeChange:_n=>{ct({type:1,payload:_n}),(0,E.t)("cmCodeMode",_n)}};function Jt(){ct({type:3,payload:!1})}function Pn(){ct({type:3,payload:!0})}const rn={value:Me,language:Qe,theme:ut,height:"calc(100% - 56px)",options:{fontSize:St,insertSpaces:Nt},onChange:_n=>{Oe(_n),Ot.current=_n,clearTimeout(Yt.current),Yt.current=setTimeout(()=>{Je(Ot.current)},1e4)},onEditBlur:_n=>{Ot.current&&Je(Ot.current)}};return x.createElement(ee.Fragment,null,x.createElement("div",{className:"code-panel-container"},nt(Pn),!Ce&&x.createElement(a.ZP,Ee({},rn))),x.createElement(y.Z,null,x.createElement(ne.Z,{rootClassName:"oj",title:null,placement:"right",closable:!1,open:Vt,onClose:Jt},x.createElement(b.Z,Ee({},Qt)))))};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(31790),at=te(62998),We=te(92832),pt=te(78241),Pt=te(3113);const{TextArea:At}=We.default,Bt=5e3;var rt=({callback:Ce,onCancel:Me,notes:Oe})=>{function Qe(Je){Ce(Je)}return ee.createElement(pt.default,{className:"note-form-panel",onFinish:Qe,initialValues:{notes:Oe}},ee.createElement(pt.default.Item,{name:"notes",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u7B14\u8BB0\u5185\u5BB9"},{max:Bt,message:`\u7B14\u8BB0\u6700\u5927\u5B57\u6570\u4E3A${Bt}`}]},ee.createElement(At,{placeholder:"\u8BF7\u8F93\u5165\u7B14\u8BB0\u5185\u5BB9",rows:5})),ee.createElement(pt.default.Item,{style:{textAlign:"right"}},ee.createElement(Pt.ZP,{type:"ghost",onClick:Me,style:{marginRight:10}}," \u53D6\u6D88 "),ee.createElement(Pt.ZP,{type:"primary",htmlType:"submit"}," \u63D0\u4EA4 ")))},Xe={"left-panel":"left-panel___fP6Y3","tab-panel-body":"tab-panel-body___aLOJQ",b1:"b1___ELpwD","oj-mr":"oj-mr___SIQSw","oj-width-input":"oj-width-input___tR_Si","s-navs":"s-navs___iVrSH","bg-white":"bg-white___S0kiU",active:"active___D332c"},Ct={pagination:"pagination___npPu7",info:"info___aRH6C"},zt=te(1710),Et=te(58421),an=te(58617),$e=te(81953),yt=te(99268),Lt=te(63949),on=te(56656),$t=te.n(on);const{Column:st}=zt.default;var lt=({submitResult:Ce,submitting:Me,submitRecords:Oe,page:Qe,onPageChange:Je,topicId:nt})=>{const{status:qe,id:ct,input:ut,output:St,expected_output:Vt,is_file:Nt,input_file_url:Yt,output_file_url:Ot,expected_output_file_url:Qt,error_msg:Jt}=Ce||{},{records:Pn,records_count:rn}=Oe||{},_n=(0,pe.useParams)();function On(){Nt?(0,Lt.vQ)(Fe.Base64.decode(Jt)).then(()=>{fe.ZP.success("\u590D\u5236\u9519\u8BEF\u4FE1\u606F\u6210\u529F")}):(0,Lt.vQ)(Fe.Base64.decode(St)).then(()=>{fe.ZP.success("\u590D\u5236\u9519\u8BEF\u4FE1\u606F\u6210\u529F")})}return ee.createElement(de.Z,{spinning:Me,tip:"\u8BC4\u6D4B\u4E2D...",indicator:ee.createElement(an.Z,{style:{fontSize:24},spin:!0})},ct?ee.createElement(ee.Fragment,null,ee.createElement("ul",{className:Ct.info},ee.createElement("li",null,"\u6267\u884C\u7ED3\u679C\uFF1A",ee.createElement("span",{className:qe===yt.h.OK?"c-green":"c-red"},at.Im[qe])),ee.createElement("li",{className:Ct.error},ee.createElement("a",{onClick:On},"\u590D\u5236\u9519\u8BEF\u4FE1\u606F ",ee.createElement($e.Z,null)," ")),ee.createElement("li",null,ee.createElement(pe.Link,{to:`/problems/${nt}/record-detail/${ct}?backId=${_n==null?void 0:_n.save_identifier}`},"\u663E\u793A\u8BE6\u60C5 > "))),qe!==yt.h.OK?ee.createElement(ee.Fragment,null,ee.createElement("p",{className:"c-red"},"\u5B9E\u9645\u8F93\u5165\uFF1A"),ee.createElement("pre",null,!Nt&&ut,Nt&&ee.createElement("a",{style:{fontSize:"16px"},onClick:()=>(0,Lt.LR)(Yt,ut)},ut)),ee.createElement("p",{className:"c-red"},"\u5B9E\u9645\u8F93\u51FA\uFF1A"),ee.createElement("pre",null,(qe===4||qe===5)&&Fe.Base64.decode(Jt),qe!=4&&qe!=5&&(Nt?ee.createElement("a",{style:{fontSize:"16px"},onClick:()=>(0,Lt.LR)(Ot,St)},St):Fe.Base64.decode(St))),ee.createElement("p",{className:"c-red"},"\u9884\u671F\u8F93\u51FA\uFF1A"),ee.createElement("pre",null,!Nt&&Fe.Base64.decode(Vt),Nt&&ee.createElement("a",{style:{fontSize:"16px"},onClick:()=>(0,Lt.LR)(Qt,Vt)},Vt))):null):null,(Pn==null?void 0:Pn.length)>0?ee.createElement(zt.default,{dataSource:Pn,rowKey:"id",pagination:!1},ee.createElement(st,{title:"\u63D0\u4EA4\u65F6\u95F4",dataIndex:"created_at",key:"created_at",render:(qt,hn)=>ee.createElement("span",null," ",$t()(qt).format("YYYY-MM-DD HH:mm:ss"))}),ee.createElement(st,{title:"\u63D0\u4EA4\u7ED3\u679C",dataIndex:"status",key:"status",render:(qt,hn)=>{var Rt;return ee.createElement(pe.Link,{className:qt===0?"c-green":"c-red",to:`/problems/${nt}/record-detail/${hn.id}?backId=${_n==null?void 0:_n.save_identifier}`},(Rt=at.Im[qt])==null?void 0:Rt.replace("\u8C03\u8BD5","\u8BC4\u6D4B"))}}),ee.createElement(st,{title:"\u6267\u884C\u7528\u65F6 (S)",dataIndex:"execute_time",key:"execute_time"}),ee.createElement(st,{title:"\u5185\u5B58\u6D88\u8017\uFF08MB\uFF09",dataIndex:"execute_memory",key:"execute_memory"}),ee.createElement(st,{title:"\u8BED\u8A00",dataIndex:"language",key:"language"})):null,rn>15?ee.createElement(Et.Z,{className:Ct.pagination,current:Qe,pageSize:15,total:rn,onChange:Je}):null)},Ge=te(13922),Ne=te(12563),et=te(81327),xt={desc:"desc___X8_hx",info:"info___C1DPv","commit-info":"commit-info____9yQm"},Ie=te(76818),Re=te(59301);const Ze={1:{name:"\u7B80\u5355",color:"#52c41a"},2:{name:"\u9002\u4E2D",color:"#faad14"},3:{name:"\u56F0\u96BE",color:"#f5222d"}};var Be=({hack:Ce,onTriggerPraise:Me,toDiscuss:Oe})=>{const{language:Qe,difficulty:Je,time_limit:nt,username:qe,user_path:ct,user_praise:ut,comments_count:St,praises_count:Vt,description:Nt,pass_count:Yt,submit_count:Ot}=Ce,Qt=(0,pe.useLocation)();console.log(Ce.language,"language");const Jt=Ze[Je];return Re.createElement(Re.Fragment,null,Re.createElement("ul",{className:xt.info},Re.createElement("li",null,"\u96BE\u5EA6\uFF1A",Re.createElement(Ne.default,{color:Jt==null?void 0:Jt.color},Jt==null?void 0:Jt.name)),Re.createElement("li",null,"\u5355\u4E2A\u6D4B\u8BD5\u96C6\u8BC4\u6D4B\u65F6\u957F\u9650\u5236\uFF1A",Re.createElement("b",null,nt,"\u79D2"))),Re.createElement(Ie.Z,{value:Nt,className:xt.desc}),Re.createElement("ul",{className:xt["commit-info"]},Re.createElement("li",null,Re.createElement(et.Z,{size:4},Re.createElement("span",null,"\u901A\u8FC7\u6B21\u6570")," ",Re.createElement("b",null,Yt))),Re.createElement("li",null,Re.createElement(et.Z,{size:4},Re.createElement("span",null,"\u63D0\u4EA4\u6B21\u6570")," ",Re.createElement("b",null,Ot))," "),Re.createElement("li",{style:{flex:"1 0 0"}}),Re.createElement("li",null,Re.createElement(et.Z,{size:4},Re.createElement("i",{className:"iconfont icon-huifu1",onClick:Oe})," ",Re.createElement("b",null,St))," ")))},ze=te(27035),it=Object.defineProperty,It=Object.getOwnPropertySymbols,Mt=Object.prototype.hasOwnProperty,jt=Object.prototype.propertyIsEnumerable,Dt=(Ce,Me,Oe)=>Me in Ce?it(Ce,Me,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Ce[Me]=Oe,Ht=(Ce,Me)=>{for(var Oe in Me||(Me={}))Mt.call(Me,Oe)&&Dt(Ce,Oe,Me[Oe]);if(It)for(var Oe of It(Me))jt.call(Me,Oe)&&Dt(Ce,Oe,Me[Oe]);return Ce};const bt=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=",cn=te(57193);function wt(Ce){return(0,cn.U2)("comments.json",Ce)}function yn(Ce){return(0,cn.v_)(`/discusses/${Ce}/plus.json`,{container_type:"Discuss",type:1})}function vn(Ce){return(0,cn.v_)("comments/reply.json",Ce)}function zn(Ce){return(0,cn.v_)("comments.json",Ce)}function wn(Ce){return(0,cn.v_)(`comments/${Ce==null?void 0:Ce.id}/hidden.json`,Ce)}function Wn(Ce){return(0,cn.IV)(`comments/${Ce==null?void 0:Ce.id}.json`)}var qn=te(63386),Kn=te(81779);function Vn({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 vr({data:Ce,index:Me,parentDiscussIndex:Oe,user:Qe,onSetActionType:Je}){const{author:nt,can_delete:qe,content:ct,id:ut,time:St}=Ce;function Vt(){Je({id:ut,index:Me,type:"delete-discuss",parentDiscussIndex:Oe,message:"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417"})}const Nt=Qe.admin||qe||nt.user_id===Qe.user_id;return ee.createElement("div",{className:"discuss-item-container second-discuss "},ee.createElement(Vn,{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"},St),ee.createElement("div",{className:"btn-group",style:{marginBottom:0}},Nt?ee.createElement("a",{onClick:Vt,title:"\u5220\u9664"},ee.createElement("i",{className:"iconfont icon-shanchu"})):null)),ee.createElement(Ie.Z,{className:"discuss-content",value:ct})))}var lr=({user:Ce,data:Me,index:Oe,onPlusDiscuss:Qe,onSetActionType:Je,activeDiscussIndex:nt,onReplyDiscuss:qe,onSetActiveDiscussIndex:ct})=>{const{content:ut,children:St,hidden:Vt,id:Nt,praise_count:Yt,time:Ot,user_praise:Qt,can_delete:Jt,author:Pn}=Me;console.log(Jt&&(!St||St.length==0),"children22");function rn(){ct(Nt)}function _n(){Qe(Nt,!Qt,Oe)}function On(){Je({id:Nt,index:Oe,type:"delete-discuss",message:"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417"})}function qt(){Je({id:Nt,index:Oe,params:{hidden:Vt?"0":"1"},type:"hidden-discuss",message:Vt?"\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===Pn.user_id;return ee.createElement("div",{className:"discuss-item-container",key:Nt},ee.createElement(Vn,{author:Pn}),ee.createElement("section",null,ee.createElement("div",{className:"discuss-info"},ee.createElement("a",{href:`/users/${Pn.login}`,target:"_blank"}," ",Pn.name," "),ee.createElement("span",{className:"grey"},Ot)),ee.createElement(Ie.Z,{className:"discuss-content",value:ut}),St&&St.length>0?ee.createElement("div",{className:"reply-discuss-container"},St.map((Rt,nn)=>ee.createElement(vr,{key:Rt.id,data:Rt,index:nn,user:Ce,onSetActionType:Je,parentDiscussIndex:Oe}))):null,ee.createElement("div",{className:"btn-group"},(0,Kn.Ny)()?ee.createElement("a",{onClick:qt,title:Vt?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF\u8BC4\u8BBA"},ee.createElement("i",{className:Vt?"iconfont icon-yincangbiyan":"fa fa-eye"})):null,Jt&&(!St||St.length==0)?ee.createElement("a",{onClick:On,title:"\u5220\u9664"},ee.createElement("i",{className:"iconfont icon-shanchu"})):null,ee.createElement("a",{onClick:rn,title:"\u56DE\u590D"}," ",ee.createElement("i",{className:"iconfont icon-huifu1"})," "),ee.createElement("a",{onClick:_n,className:Qt?"c-orange":""},ee.createElement("i",{className:Qt?"iconfont icon-dianzan mr3":"iconfont icon-dianzan-xian mr3 "}),ee.createElement("span",null,Yt||""))),ee.createElement(qn.Z,{id:Nt,activeDiscussIndex:nt,onReplyDiscuss:qe})))},sn=te(48775),Yn=te(88871),or=(Ce,Me,Oe)=>new Promise((Qe,Je)=>{var nt=ut=>{try{ct(Oe.next(ut))}catch(St){Je(St)}},qe=ut=>{try{ct(Oe.throw(ut))}catch(St){Je(St)}},ct=ut=>ut.done?Qe(ut.value):Promise.resolve(ut.value).then(nt,qe);ct((Oe=Oe.apply(Ce,Me)).next())}),Zn=({user_praise:Ce,praise_count:Me,praisePlus:Oe,onCreateDiscuss:Qe,discuss_count:Je})=>{const[nt,qe]=(0,ee.useState)(!1),[ct,ut]=(0,ee.useState)("");function St(Ot){ut(Ot)}function Vt(){qe(!0)}function Nt(){qe(!1)}function Yt(){return or(this,null,function*(){Qe(ct),ut(""),qe(!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:Vt}),ee.createElement("a",{style:{alignItems:"center"}}," ",ee.createElement("i",{className:"iconfont icon-huifu1"})," \xA0 \xA0",Je," "),ee.createElement("a",{className:"c-light-black",onClick:Oe,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(Yn.Z,{id:"discuss-input-editor",miniToolbar:!0,watch:!1,noStorage:!0,defaultValue:ct,height:240,onChange:St}),ee.createElement("div",{className:"tip-container",onClick:Nt},ee.createElement("a",{className:"btn-send",onClick:Yt}," \u53D1\u9001 "))))},ar=Object.defineProperty,Dr=Object.defineProperties,Mr=Object.getOwnPropertyDescriptors,Er=Object.getOwnPropertySymbols,Br=Object.prototype.hasOwnProperty,sr=Object.prototype.propertyIsEnumerable,Kr=(Ce,Me,Oe)=>Me in Ce?ar(Ce,Me,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Ce[Me]=Oe,Ut=(Ce,Me)=>{for(var Oe in Me||(Me={}))Br.call(Me,Oe)&&Kr(Ce,Oe,Me[Oe]);if(Er)for(var Oe of Er(Me))sr.call(Me,Oe)&&Kr(Ce,Oe,Me[Oe]);return Ce},ue=(Ce,Me)=>Dr(Ce,Mr(Me)),ve=(Ce,Me,Oe)=>new Promise((Qe,Je)=>{var nt=ut=>{try{ct(Oe.next(ut))}catch(St){Je(St)}},qe=ut=>{try{ct(Oe.throw(ut))}catch(St){Je(St)}},ct=ut=>ut.done?Qe(ut.value):Promise.resolve(ut.value).then(nt,qe);ct((Oe=Oe.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 ke(Ce,Me){switch(Me.type){case 6:return ue(Ut({},Ce),{loading:!0});case 0:return Ut(Ut({},Ce),Me.payload);case 1:return Ut(Ut({},Ce),Me.payload);case 4:return Ut(Ut({},Ce),Me.payload);case 3:return Ut(Ut({},Ce),Me.payload);case 5:return Ut(Ut({},Ce),Me.payload);case 2:return Ut(Ut({},Ce),Me.payload);default:throw new Error}}var tt=({user:Ce,identifier:Me,hack:Oe,onTriggerPraise:Qe,setDiscussTotal:Je})=>{const[nt,qe]=(0,ee.useReducer)(ke,Pe),{loading:ct,page:ut,data:St,count:Vt,actionType:Nt,activeDiscussIndex:Yt}=nt;console.log("---",nt);const Ot=(0,ee.useCallback)(()=>ve(void 0,null,function*(){qe({type:6});const Rt=yield wt({container_type:"Practice",container_identifier:Me,limit:10,page:ut}),{comments:nn,disscuss_count:ln}=Rt;qe({type:0,payload:{data:nn,count:ln,loading:!1}}),Je(ln)}),[ut,Me]);(0,ee.useEffect)(()=>{Ot()},[Me,ut]);function Qt(Rt){qe({type:5,payload:{page:Rt}})}function Jt(Rt){qe({type:4,payload:{actionType:Rt}})}function Pn(Rt){qe(Yt===Rt?{type:2,payload:{activeDiscussIndex:null}}:{type:2,payload:{activeDiscussIndex:Rt}})}function rn(Rt,nn,ln){return ve(this,null,function*(){try{const Ln=yield yn(Rt);St[ln].user_praise=nn,St[ln].praise_count=Ln.praise_count,qe({type:3,payload:{data:[...St]}})}catch(Ln){console.log(Ln)}})}function _n(){return ve(this,null,function*(){const{id:Rt,params:nn,type:ln,index:Ln,parentDiscussIndex:Jn}=Nt;ln==="hidden-discuss"&&(console.log(nn,"params"),yield wn(Ut({id:Rt,container_type:"Practice",container_identifier:Me},nn)),Jn?St[Jn].children[Ln].hidden=nn.hidden==1:St[Ln].hidden=nn.hidden==1,qe({type:4,payload:{actionType:null,data:[...St]}})),ln==="delete-discuss"&&(yield Wn({id:Rt,container_type:"Practice",container_identifier:Me}),qe({type:4,payload:{actionType:null}}),yield Ot())})}function On(){qe({type:4,payload:{actionType:null}})}function qt(Rt,nn){return ve(this,null,function*(){try{yield vn({container_type:"Practice",container_identifier:Me,comments:{content:nn,parent_id:Rt}}),Ot()}catch(ln){console.log(ln)}})}function hn(Rt){return ve(this,null,function*(){qe({type:6}),yield zn({comments:{content:Rt},container_type:"Practice",container_identifier:Me}),Ot()})}return ee.createElement(ee.Fragment,null,ee.createElement("div",{className:"discuss-panel"},St.length===0?ee.createElement(Ge.Z,null):ee.createElement(de.Z,{spinning:ct},St.map((Rt,nn)=>ee.createElement(lr,{onReplyDiscuss:qt,onPlusDiscuss:rn,onSetActiveDiscussIndex:Pn,onSetActionType:Jt,data:Rt,index:nn,user:Ce,activeDiscussIndex:Yt}))),Vt>10?ee.createElement("div",{className:"pagination-container mt10 mb10"},ee.createElement(Et.Z,{showQuickJumper:!0,onChange:Qt,current:ut,total:Vt,showTotal:Rt=>ee.createElement("span",{style:{color:"#656F87"}},"\u5171",ee.createElement("span",{className:"c-light-primary"},Rt),"\u6761\u6570\u636E")})):null),ee.createElement(Zn,{user_praise:Oe.user_praise,praise_count:Oe.praises_count,praisePlus:Qe,discuss_count:Oe.comments_count,onCreateDiscuss:hn}),ee.createElement(y.Z,null,ee.createElement(oe.default,{centered:!0,title:"\u63D0\u793A",open:!!Nt,onOk:_n,onCancel:On},ee.createElement("p",null,Nt?Nt.message:"")),ee.createElement(sn.Z,null)))},dt={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"},tn={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"},Kt=Object.defineProperty,_t=Object.getOwnPropertySymbols,ft=Object.prototype.hasOwnProperty,Ft=Object.prototype.propertyIsEnumerable,gt=(Ce,Me,Oe)=>Me in Ce?Kt(Ce,Me,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Ce[Me]=Oe,Gt=(Ce,Me)=>{for(var Oe in Me||(Me={}))ft.call(Me,Oe)&>(Ce,Oe,Me[Oe]);if(_t)for(var Oe of _t(Me))Ft.call(Me,Oe)&>(Ce,Oe,Me[Oe]);return Ce};const Zt=Ce=>React.createElement("svg",Gt({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 Tt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTExIDBhMSAxIDAgMCAxIDEgMXY4YTEgMSAwIDAgMS0xIDFIMWExIDEgMCAwIDEtMS0xVjFhMSAxIDAgMCAxIDEtMWgxMFpNNC40IDIuNGEuNC40IDAgMCAwLS40LjR2NC40YS40LjQgMCAwIDAgLjY0LjMybDIuNzItMi4wNGEuNi42IDAgMCAwIDAtLjk2TDQuNjQgMi40OGEuNC40IDAgMCAwLS4yNC0uMDhaIiBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=",kt=Object.defineProperty,Xt=Object.getOwnPropertySymbols,dn=Object.prototype.hasOwnProperty,xn=Object.prototype.propertyIsEnumerable,Fn=(Ce,Me,Oe)=>Me in Ce?kt(Ce,Me,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Ce[Me]=Oe,Qn=(Ce,Me)=>{for(var Oe in Me||(Me={}))dn.call(Me,Oe)&&Fn(Ce,Oe,Me[Oe]);if(Xt)for(var Oe of Xt(Me))xn.call(Me,Oe)&&Fn(Ce,Oe,Me[Oe]);return Ce};const mn=Ce=>React.createElement("svg",Qn({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 An="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNMi41OTMgMTMuMzU2VjUuNjk0YzAtLjMxLS4yMzEtLjU2MS0uNTE2LS41NjFILjk3NmMtLjUzMiAwLS45NjIuNDY4LS45NjIgMS4wNDd2Ni42OWMwIC41NzkuNDMgMS4wNDcuOTYyIDEuMDQ3aDEuMTAxYy4yODUgMCAuNTE2LS4yNTEuNTE2LS41NjFaIiBmaWxsPSIjOTk5Ii8+PHBhdGggZD0iTTMuMzM1IDEzLjUxMlY1LjUzYzAtLjE4NC4xMzYtLjM0Ni4zMzMtLjM5MS42OTUtLjE2IDIuMjg5LS43MzUgMi45NjctMi42OTRDNy4wNDguNzMgNy40OTUtLjA4IDguODIzLjAxN2MxLjMyOC4wOTcgMS40MTcgMS4yNjMgMS40MTcgMS42MTh2Mi43NTJzLS4xMDcuNDIuMzQuNDUzYy40NS4wMzMgMy45NDcgMCAzLjk0NyAwczEuOTE5LS4wMjkgMS4zMDkgMi4xMjJjLS41MyAxLjg3MS0xLjU4IDQuODgyLTEuODQ2IDUuNjM1YTEuNjA2IDEuNjA2IDAgMCAxLS4yMzUuNDM4Yy0uMjU3LjMzOC0uNzk2Ljg4LTEuNjIuODhIMy43ODJjLS4yNDcuMDAyLS40NDctLjE3OS0uNDQ3LS40MDNaIiBmaWxsPSIjQ0NDIi8+PC9nPjwvc3ZnPg==",ur=Object.defineProperty,rr=Object.getOwnPropertySymbols,ir=Object.prototype.hasOwnProperty,Wt=Object.prototype.propertyIsEnumerable,oi=(Ce,Me,Oe)=>Me in Ce?ur(Ce,Me,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Ce[Me]=Oe,wr=(Ce,Me)=>{for(var Oe in Me||(Me={}))ir.call(Me,Oe)&&oi(Ce,Oe,Me[Oe]);if(rr)for(var Oe of rr(Me))Wt.call(Me,Oe)&&oi(Ce,Oe,Me[Oe]);return Ce};const Tr=Ce=>React.createElement("svg",wr({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 kr="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNMi41OTMgMTMuMzU2VjUuNjk0YzAtLjMxLS4yMzEtLjU2MS0uNTE2LS41NjFILjk3NmMtLjUzMiAwLS45NjIuNDY4LS45NjIgMS4wNDd2Ni42OWMwIC41NzkuNDMgMS4wNDcuOTYyIDEuMDQ3aDEuMTAxYy4yODUgMCAuNTE2LS4yNTEuNTE2LS41NjFaIiBmaWxsPSIjMDE1MmQ5Ii8+PHBhdGggZD0iTTMuMzM1IDEzLjUxMlY1LjUzYzAtLjE4NC4xMzYtLjM0Ni4zMzMtLjM5MS42OTUtLjE2IDIuMjg5LS43MzUgMi45NjctMi42OTRDNy4wNDguNzMgNy40OTUtLjA4IDguODIzLjAxN2MxLjMyOC4wOTcgMS40MTcgMS4yNjMgMS40MTcgMS42MTh2Mi43NTJzLS4xMDcuNDIuMzQuNDUzYy40NS4wMzMgMy45NDcgMCAzLjk0NyAwczEuOTE5LS4wMjkgMS4zMDkgMi4xMjJjLS41MyAxLjg3MS0xLjU4IDQuODgyLTEuODQ2IDUuNjM1YTEuNjA2IDEuNjA2IDAgMCAxLS4yMzUuNDM4Yy0uMjU3LjMzOC0uNzk2Ljg4LTEuNjIuODhIMy43ODJjLS4yNDcuMDAyLS40NDctLjE3OS0uNDQ3LS40MDNaIiBmaWxsPSIjQjZEMEZDIi8+PC9nPjwvc3ZnPg==",un=Object.defineProperty,Sn=Object.getOwnPropertySymbols,Nn=Object.prototype.hasOwnProperty,pn=Object.prototype.propertyIsEnumerable,cr=(Ce,Me,Oe)=>Me in Ce?un(Ce,Me,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Ce[Me]=Oe,fr=(Ce,Me)=>{for(var Oe in Me||(Me={}))Nn.call(Me,Oe)&&cr(Ce,Oe,Me[Oe]);if(Sn)for(var Oe of Sn(Me))pn.call(Me,Oe)&&cr(Ce,Oe,Me[Oe]);return Ce};const Ar=Ce=>React.createElement("svg",fr({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 Ur="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNNC43MTcuMDFoOC44NGMxLjU3MSAwIDIuMzU3Ljc3NyAyLjM1NyAyLjMzMnY1LjI1YzAgMS41NTYtLjc4NiAyLjMzNC0yLjM1NyAyLjMzNGgtOC44NGMtMS41NzIgMC0yLjM1Ny0uNzc4LTIuMzU3LTIuMzM0di01LjI1QzIuMzYuNzg3IDMuMTQ1LjAxIDQuNzE3LjAxWiIgZmlsbD0iIzk5OSIvPjxwYXRoIGQ9Ik0yLjM2IDIuMzQyaDguODRhMi4zNyAyLjM3IDAgMCAxIDEuNjY2LjY4NGMuNDQyLjQzNy42OSAxLjAzLjY5IDEuNjV2NS4yNWMwIDEuMjg4LTEuMDU1IDIuMzMzLTIuMzU3IDIuMzMzSDcuOTRsLTEuMTYgMS4xNTMtMS4xNjctMS4xNTNIMi4zNmEyLjM3IDIuMzcgMCAwIDEtMS42NjctLjY4MyAyLjMyMSAyLjMyMSAwIDAgMS0uNjktMS42NXYtNS4yNWMwLS42Mi4yNDgtMS4yMTMuNjktMS42NWEyLjM3IDIuMzcgMCAwIDEgMS42NjctLjY4NFoiIGZpbGw9IiNCNkQwRkMiLz48cGF0aCBkPSJNMi4zNiAyLjkyNmg4Ljg0YzEuMzAxIDAgMi4zNTcgMS4wNDQgMi4zNTcgMi4zMzN2NS4yNWMwIC42MTktLjI0OSAxLjIxMi0uNjkgMS42NWEyLjM3IDIuMzcgMCAwIDEtMS42NjguNjgzSDcuOTRsLTEuMTYgMS4xNTQtMS4xNjctMS4xNTRIMi4zNmEyLjM3IDIuMzcgMCAwIDEtMS42NjctLjY4MyAyLjMyMSAyLjMyMSAwIDAgMS0uNjktMS42NVY1LjI2YzAtLjYxOS4yNDgtMS4yMTIuNjktMS42NWEyLjM3IDIuMzcgMCAwIDEgMS42NjctLjY4M1oiIGZpbGw9IiNDQ0MiLz48cGF0aCBkPSJNMy41MzggNS44NDJoNi40ODNjLjM5MyAwIC41ODkuMTk1LjU4OS41ODQgMCAuMzg5LS4xOTYuNTgzLS41OS41ODNIMy41MzljLS4zOTMgMC0uNTktLjE5NC0uNTktLjU4MyAwLS4zOS4xOTctLjU4NC41OS0uNTg0Wk0zLjUzOCA4Ljc2aDQuNzE1Yy4zOTMgMCAuNTkuMTk0LjU5LjU4MiAwIC4zOS0uMTk3LjU4NC0uNTkuNTg0SDMuNTM4Yy0uMzkzIDAtLjU5LS4xOTUtLjU5LS41ODQgMC0uMzg4LjE5Ny0uNTgzLjU5LS41ODNaIiBmaWxsPSIjRkZGIi8+PC9nPjwvc3ZnPg==",ti=Object.defineProperty,vi=Object.getOwnPropertySymbols,gi=Object.prototype.hasOwnProperty,Si=Object.prototype.propertyIsEnumerable,Mi=(Ce,Me,Oe)=>Me in Ce?ti(Ce,Me,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Ce[Me]=Oe,yi=(Ce,Me)=>{for(var Oe in Me||(Me={}))gi.call(Me,Oe)&&Mi(Ce,Oe,Me[Oe]);if(vi)for(var Oe of vi(Me))Si.call(Me,Oe)&&Mi(Ce,Oe,Me[Oe]);return Ce};const wi=Ce=>React.createElement("svg",yi({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 xi="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNNy45NjUgMTEuOTYxQzIuNTkzIDExLjk2MSAwIDYuOTI2IDAgNS45ODEgMCA1LjAzNSAyLjYyMyAwIDcuOTY1IDBzNy45NjUgNC45ODQgNy45NjUgNS45OGMwIC45OTctMi41OTMgNS45ODEtNy45NjUgNS45ODFabTAtMi4yMDhjMS4yOTYgMCAyLjQ5NC0uNzIgMy4xNDItMS44ODZhMy45MDIgMy45MDIgMCAwIDAgMC0zLjc3M2MtLjY0OC0xLjE2Ny0xLjg0Ni0xLjg4Ni0zLjE0Mi0xLjg4Ni0yLjAwNCAwLTMuNjI5IDEuNjktMy42MjkgMy43NzNzMS42MjUgMy43NzIgMy42MjkgMy43NzJaIiBmaWxsPSIjQ0NDIi8+PHBhdGggZD0iTTcuOTY1IDguMjhjLTEuMjIyIDAtMi4yMTMtMS4wMjktMi4yMTMtMi4zIDAtMS4yNy45OTEtMi4zIDIuMjEzLTIuM3MyLjIxMiAxLjAzIDIuMjEyIDIuM2MwIDEuMjcxLS45OSAyLjMtMi4yMTIgMi4zWiIgZmlsbD0iIzk5OSIvPjwvZz48L3N2Zz4=",ai=({style:Ce={},onClick:Me,onAssist:Oe,onHide:Qe,data:Je,active:nt,showLine:qe})=>ee.createElement(ee.Fragment,null,ee.createElement("div",{className:nt===(Je==null?void 0:Je.id)?`${tn.list} ${tn.active}`:tn.list,style:Ce,onClick:()=>Me(Je)},(Je==null?void 0:Je.video)&&ee.createElement("div",{className:tn.left},ee.createElement("img",{src:Je==null?void 0:Je.video_cover}),ee.createElement("div",null,ee.createElement("img",{src:Tt}),ee.createElement("span",null,Je==null?void 0:Je.video_duration)),ee.createElement("div",{className:tn.mask})),ee.createElement("div",{className:tn.right},ee.createElement("div",{className:tn.name},ee.createElement("img",{src:he.Z.IMG_SERVER+"/images/"+(Je==null?void 0:Je.image_url),width:30,height:30}),ee.createElement("div",{title:Je==null?void 0:Je.name,className:tn.title},Je==null?void 0:Je.name),(Je==null?void 0:Je.is_authority)&&ee.createElement("div",{className:tn.b},"\u5B98\u65B9"),(Je==null?void 0:Je.is_excellent)&&ee.createElement("div",{className:tn.a},"\u7CBE\u9009")),ee.createElement("div",{className:tn.des},ee.createElement(Ie.Z,{showLines:2,showTextOnly:!0,value:(Je==null?void 0:Je.content)||"\u6682\u65E0\u5185\u5BB9"})),ee.createElement("div",{className:tn.tag},ee.createElement("span",{className:"current",onClick:ct=>{ct.stopPropagation(),Oe(Je)}},ee.createElement("img",{src:Je!=null&&Je.user_liker?kr:An}),ee.createElement("span",{style:{color:Je!=null&&Je.user_liker?"#0152d9":"#656f87"}},Je==null?void 0:Je.praises_count)),ee.createElement("span",null,ee.createElement("img",{src:Ur}),ee.createElement("span",null,Je==null?void 0:Je.discusses_count)),ee.createElement("span",null,ee.createElement("img",{src:xi}),ee.createElement("span",null,Je==null?void 0:Je.viewed_count)),(0,Kn.Ny)()&&ee.createElement("span",{className:"current",style:{color:"#0152d9",marginRight:0,userSelect:"none"},onClick:ct=>{ct.stopPropagation(),Qe(Je)}},Je!=null&&Je.is_hidden?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF")))),qe&&ee.createElement("div",{className:tn.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"},$r=te(6848),ni=Object.defineProperty,di=Object.getOwnPropertySymbols,Ri=Object.prototype.hasOwnProperty,zr=Object.prototype.propertyIsEnumerable,Hi=(Ce,Me,Oe)=>Me in Ce?ni(Ce,Me,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Ce[Me]=Oe,Pi=(Ce,Me)=>{for(var Oe in Me||(Me={}))Ri.call(Me,Oe)&&Hi(Ce,Oe,Me[Oe]);if(di)for(var Oe of di(Me))zr.call(Me,Oe)&&Hi(Ce,Oe,Me[Oe]);return Ce};const fi=Ce=>React.createElement("svg",Pi({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 oo="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEuNiAwQzEuMTc1IDAgLjc2OC4xNy40NjguNDc0QTEuNjMgMS42MyAwIDAgMCAwIDEuNjIydjMuMjQzaDMuMjM3TDcuMzc4IDBIMS42Wm03Ljg3NiAwTDUuMzM4IDQuODY1aDUuOUwxNS4zNzEgMEg5LjQ3NlptNy45OTggMC00LjEzNyA0Ljg2NWg1Ljg5NkwyMy4zNzIgMGgtNS44OThabTggMC00LjEzOCA0Ljg2NWg2LjY2VjEuNjIyYTEuNjI5IDEuNjI5IDAgMCAwLS40NjctMS4xNDhBMS41ODUgMS41ODUgMCAwIDAgMjYuMzk3IDBoLS45MjRaTTAgNi40ODd2MTcuODM3YzAgLjQzLjE2Ny44NDQuNDY4IDEuMTQ4LjMuMzA1LjcwNy40NzUgMS4xMzIuNDc0aDE4LjYxYTYuNTE1IDYuNTE1IDAgMCAxIDEuNjUyLTYuMjE4IDYuMzEgNi4zMSAwIDAgMSA2LjEzNC0xLjY3NVY2LjQ4N0gwWm0xMS45OTggNS42NzUgNi40IDQuMDU2LTYuNCA0LjA1NXYtOC4xMVptMTQuMzk5IDYuNDg3Yy0zLjA5Mi4wMDItNS41OTcgMi41NDQtNS41OTUgNS42NzguMDAxIDMuMTM0IDIuNTA4IDUuNjc0IDUuNiA1LjY3M0MyOS40OTQgMzAgMzIgMjcuNDU4IDMyIDI0LjMyNGMwLTEuNTA2LS41OS0yLjk1LTEuNjQxLTQuMDE0YTUuNTYxIDUuNTYxIDAgMCAwLTMuOTYyLTEuNjYxWm0wIDIuMDI3Yy4yMi4wMDMuNDI4LjEuNTc0LjI2Ni42NjMuNiAxLjMyNyAxLjM1MiAxLjk5IDIuMDAyYS44LjggMCAwIDEgMCAxLjE0Ljc4OC43ODggMCAwIDEtMS4xMjUgMGwtLjYzOC0uNjQ2djMuNzI0YS44MTQuODE0IDAgMCAxLS4zOTIuNzI0Ljc5Ljc5IDAgMCAxLS44MTUgMCAuODE0LjgxNCAwIDAgMS0uMzkyLS43MjR2LTMuNzI0bC0uNjM3LjY0NmEuNzkuNzkgMCAwIDEtLjc3My4yMTUuODAzLjgwMyAwIDAgMS0uNTY3LS41NzUuODE2LjgxNiAwIDAgMSAuMjEyLS43ODNjLjY1MS0uNjY0IDEuMzMzLTEuMzg4IDEuOTktMi4wMDJhLjc3OC43NzggMCAwIDEgLjU3NS0uMjY2bC0uMDAyLjAwM1oiIGZpbGw9IiMwMTUyZDkiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPg==",bi=Object.defineProperty,Vi=Object.getOwnPropertySymbols,Ti=Object.prototype.hasOwnProperty,Ci=Object.prototype.propertyIsEnumerable,hi=(Ce,Me,Oe)=>Me in Ce?bi(Ce,Me,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Ce[Me]=Oe,Gi=(Ce,Me)=>{for(var Oe in Me||(Me={}))Ti.call(Me,Oe)&&hi(Ce,Oe,Me[Oe]);if(Vi)for(var Oe of Vi(Me))Ci.call(Me,Oe)&&hi(Ce,Oe,Me[Oe]);return Ce};const Qi=Ce=>React.createElement("svg",Gi({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 bo="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE1IDBjOC4yODUgMCAxNSA2LjcxNyAxNSAxNSAwIDguMjg1LTYuNzE1IDE1LTE1IDE1LTguMjgzIDAtMTUtNi43MTUtMTUtMTVDMCA2LjcxNyA2LjcxNyAwIDE1IDBabTEwLjA0MSA3LjV2LjAxYTQ3LjkzNCA0Ny45MzQgMCAwIDAtMTEuMjMyIDkuMzg2bC00LjM3Mi0zLjN2LS4wMDJMNy41IDE1LjA4bDcuNTUzIDcuNDJBNDQuNjI1IDQ0LjYyNSAwIDAgMSAyNS41IDguNTVsLS40NTktMS4wNVoiIGZpbGw9IiM0NEQ3QjYiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPg==",po=Object.defineProperty,Ji=Object.getOwnPropertySymbols,$n=Object.prototype.hasOwnProperty,En=Object.prototype.propertyIsEnumerable,In=(Ce,Me,Oe)=>Me in Ce?po(Ce,Me,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Ce[Me]=Oe,Bn=(Ce,Me)=>{for(var Oe in Me||(Me={}))$n.call(Me,Oe)&&In(Ce,Oe,Me[Oe]);if(Ji)for(var Oe of Ji(Me))En.call(Me,Oe)&&In(Ce,Oe,Me[Oe]);return Ce};const gr=Ce=>React.createElement("svg",Bn({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 Ir="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+PHBhdGggZmlsbD0iI0FGQkFDQiIgZD0iTTkuOTkuMDJDNC40ODIuMDIuMDIgNC40ODIuMDIgOS45OWMwIDUuNTA2IDQuNDYzIDkuOTcgOS45NyA5Ljk3IDUuNTA2IDAgOS45Ny00LjQ2NCA5Ljk3LTkuOTcgMC01LjUwNy00LjQ2NC05Ljk3LTkuOTctOS45N1ptMS42MzYgMTMuNjljLS43NDQgMS4xOS0xLjQ4OCAyLjA4My0yLjgyNyAyLjA4My0uODkzLS4xNDktMS4xOS0uNzQ0LTEuMDQyLTEuNDg4bDEuNjM3LTUuNTA2YzAtLjE0OSAwLS4yOTgtLjE0OS0uMjk4LS4xNDggMC0uNDQ2IDAtLjU5NS4yOThsLTEuMDQyIDEuMTl2LS43NDRjLjc0NS0xLjE5IDEuOTM1LTIuMDgzIDIuODI4LTIuMDgzLjc0NC4xNDkgMS4xOS43NDQgMS4wNDIgMS40ODhMOS44NCAxNC4zMDVjMCAuMTQ5IDAgLjI5OC4xNDguMjk4LjE1IDAgLjQ0Ny0uMTUuNTk2LS4yOThsMS4wNDEtMS4zNHYuNzQ1Wm0tLjI5Ny03LjI5MmMtLjU5NiAwLTEuMTktLjQ0Ni0xLjE5LTEuMTkgMC0uNzQ1LjQ0Ni0xLjE5MSAxLjE5LTEuMTkxLjU5NSAwIDEuMTkuNDQ2IDEuMTkgMS4xOSAwIC43NDUtLjU5NSAxLjE5MS0xLjE5IDEuMTkxWiIvPjwvc3ZnPg==",Xr=te(37582),Qr=Object.defineProperty,ui=Object.defineProperties,li=Object.getOwnPropertyDescriptors,ji=Object.getOwnPropertySymbols,Ei=Object.prototype.hasOwnProperty,lo=Object.prototype.propertyIsEnumerable,eo=(Ce,Me,Oe)=>Me in Ce?Qr(Ce,Me,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Ce[Me]=Oe,Jr=(Ce,Me)=>{for(var Oe in Me||(Me={}))Ei.call(Me,Oe)&&eo(Ce,Oe,Me[Oe]);if(ji)for(var Oe of ji(Me))lo.call(Me,Oe)&&eo(Ce,Oe,Me[Oe]);return Ce},pr=(Ce,Me)=>ui(Ce,li(Me)),Li=(Ce,Me,Oe)=>new Promise((Qe,Je)=>{var nt=ut=>{try{ct(Oe.next(ut))}catch(St){Je(St)}},qe=ut=>{try{ct(Oe.throw(ut))}catch(St){Je(St)}},ct=ut=>ut.done?Qe(ut.value):Promise.resolve(ut.value).then(nt,qe);ct((Oe=Oe.apply(Ce,Me)).next())}),Or=({onClose:Ce,onOk:Me,identifier:Oe,active:Qe})=>{var Je,nt;const[qe]=pt.default.useForm(),[ct,ut]=(0,ee.useState)({}),[St,Vt]=(0,ee.useState)(!1),[Nt,Yt]=(0,ee.useState)(!1),[Ot,Qt]=(0,ee.useState)([]),Jt=(0,Kn.eY)(),Pn=(0,pe.useParams)(),rn=(0,ee.useRef)();(0,ee.useEffect)(()=>{Qe&&_n()},[Qe]);const _n=()=>Li(void 0,null,function*(){var gn,Tn,jn,Xn,Hr,er,Wr,Sr,Lr,Nr;const Hn=yield(0,me.M3)(Oe,{active:Qe});if((Hn==null?void 0:Hn.status)===0){const Cn={name:(gn=Hn==null?void 0:Hn.data)==null?void 0:gn.name,content:(Tn=Hn==null?void 0:Hn.data)==null?void 0:Tn.content};qe.setFieldsValue(Cn),ut(Cn),(Xn=(jn=Hn==null?void 0:Hn.data)==null?void 0:jn.videos)!=null&&Xn[0]&&Qt([{video_id:(Wr=(er=(Hr=Hn==null?void 0:Hn.data)==null?void 0:Hr.videos)==null?void 0:er[0])==null?void 0:Wr.video_id,name:(Nr=(Lr=(Sr=Hn==null?void 0:Hn.data)==null?void 0:Sr.videos)==null?void 0:Lr[0])==null?void 0:Nr.title,loaded:100}])}}),On=(gn,Tn)=>{ut(Jr({},Tn))},qt=gn=>Li(void 0,null,function*(){const Tn={videos:Ot,articles:gn};Yt(!0);let jn;Qe?(Tn.active=Qe,jn=yield(0,me.gu)(Oe,Tn)):jn=yield(0,me.bx)(Oe,Tn),(jn==null?void 0:jn.status)===0&&(console.log(Qe||(jn==null?void 0:jn.id),44),Me(Qe||(jn==null?void 0:jn.id))),Yt(!1)}),hn=(gn,Tn)=>{oe.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?Qt([]):(rn.current.cancel(),Qt([]))}})},Rt=()=>ee.createElement(Xr.Z,pr(Jr({},bn),{ref:rn}),ee.createElement("div",{className:jr.main},ee.createElement("img",{src:oo,alt:""}),ee.createElement("span",null,"\u4E0A\u4F20\u89C6\u9891"))),nn=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($r.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:Ir,alt:""})))),ln=gn=>ee.createElement("div",{className:jr.mainSucceed},ee.createElement("img",{src:bo,alt:""}),ee.createElement("span",null,"\u4E0A\u4F20\u6210\u529F"),ee.createElement("div",{className:jr.tip},ee.createElement($r.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:Ir,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")),Ln=()=>ee.createElement(ee.Fragment,null,Ot==null?void 0:Ot.map((gn,Tn)=>ee.createElement(ee.Fragment,{key:Tn},gn.loaded==100?ln(gn):nn(gn.loaded)))),Jn=()=>{oe.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})},bn={accept:".mkv, .flv, .f4v, .rmvb, .swf, video/mp4,video/x-m4v,video/flv,video/f4v,video/rmvb,video/swf,video/*",onBefore:gn=>{const jn=gn.name.toLowerCase();return jn&&jn.indexOf(".avi")==-1&&jn.indexOf(".flv")==-1&&jn.indexOf(".f4v")==-1&&jn.indexOf(".m4v")==-1&&jn.indexOf(".mov")==-1&&jn.indexOf(".mp4")==-1&&jn.indexOf(".rmvb")==-1&&jn.indexOf(".swf")==-1&&jn.indexOf(".webm")==-1&&jn.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(Xn=>Xn.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=>{Qt([{name:gn.filename,loaded:0}])},onComplete:gn=>{Qt([{name:gn.filename,loaded:gn.percent,video_id:gn.id}])},onError:()=>{Qt([])},onProgress:gn=>{Qt([{name:gn.filename,loaded:gn.percent}])},chunkSize:1024*1024*2,options:{user_id:(Je=Jt==null?void 0:Jt.userInfo)==null?void 0:Je.user_id}},Dn=Ot==null?void 0:Ot.length;return ee.createElement("div",{className:jr.listForm},ee.createElement("header",null,Qe?"\u7F16\u8F91":"\u53D1\u5E03","\u9898\u89E3"),ee.createElement("section",{className:jr.scroll,id:"sss"},ee.createElement("div",{className:jr.formWrap}," ",ee.createElement(pt.default,{form:qe,scrollToFirstError:!0,layout:"vertical",onValuesChange:On,onFinish:qt},ee.createElement(pt.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(We.default,{bordered:!1,placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26",suffix:`${((nt=ct.name)==null?void 0:nt.length)||0}/60`})),ee.createElement(pt.default.Item,{name:"content",label:"\u5185\u5BB9:"},ee.createElement(Yn.Z,{defaultValue:ct.content||"",watch:!0})))),ee.createElement("div",{className:jr.upload},Dn?Ln():Rt())),ee.createElement("div",{className:jr.btns},ee.createElement(Pt.ZP,{onClick:Jn,type:"primary",ghost:!0},"\u5173\u95ED"),ee.createElement(Pt.ZP,{loading:Nt,disabled:St,onClick:()=>qe.submit(),type:"primary"},"\u53D1\u5E03\u9898\u89E3")))},si={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"},to=te(61621),qi=Object.defineProperty,vo=Object.getOwnPropertySymbols,So=Object.prototype.hasOwnProperty,Ni=Object.prototype.propertyIsEnumerable,co=(Ce,Me,Oe)=>Me in Ce?qi(Ce,Me,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Ce[Me]=Oe,Ro=(Ce,Me)=>{for(var Oe in Me||(Me={}))So.call(Me,Oe)&&co(Ce,Oe,Me[Oe]);if(vo)for(var Oe of vo(Me))Ni.call(Me,Oe)&&co(Ce,Oe,Me[Oe]);return Ce};const To=Ce=>React.createElement("svg",Ro({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,Co=Object.prototype.propertyIsEnumerable,na=(Ce,Me,Oe)=>Me in Ce?wa(Ce,Me,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Ce[Me]=Oe,ra=(Ce,Me)=>{for(var Oe in Me||(Me={}))La.call(Me,Oe)&&na(Ce,Oe,Me[Oe]);if(xa)for(var Oe of xa(Me))Co.call(Me,Oe)&&na(Ce,Oe,Me[Oe]);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,No=Object.getOwnPropertySymbols,ia=Object.prototype.hasOwnProperty,oa=Object.prototype.propertyIsEnumerable,Zo=(Ce,Me,Oe)=>Me in Ce?Aa(Ce,Me,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Ce[Me]=Oe,aa=(Ce,Me)=>{for(var Oe in Me||(Me={}))ia.call(Me,Oe)&&Zo(Ce,Oe,Me[Oe]);if(No)for(var Oe of No(Me))oa.call(Me,Oe)&&Zo(Ce,Oe,Me[Oe]);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=",Wo={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),Bo=te(43604),no={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,Oe)=>new Promise((Qe,Je)=>{var nt=ut=>{try{ct(Oe.next(ut))}catch(St){Je(St)}},qe=ut=>{try{ct(Oe.throw(ut))}catch(St){Je(St)}},ct=ut=>ut.done?Qe(ut.value):Promise.resolve(ut.value).then(nt,qe);ct((Oe=Oe.apply(Ce,Me)).next())});const ca=({id:Ce,cb:Me})=>{const[Oe,Qe]=(0,ee.useState)("");return ee.createElement("aside",{className:"mt10"},ee.createElement(Yn.Z,{defaultValue:Oe,id:"writeForumsReviewId",onChange:Je=>{Qe(Je)},placeholder:"\u6211\u8981\u56DE\u590D...",height:240}),ee.createElement(la.Z,null,ee.createElement(Bo.Z,{flex:"1"}),ee.createElement(Bo.Z,null,ee.createElement(Pt.ZP,{type:"primary",size:"middle",onClick:()=>Ia(void 0,null,function*(){Oe===""?fe.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9"):Me(Ce,Oe)})},"\u53D1\u9001"))))},Oa=({data:Ce})=>{var Me;return ee.createElement("div",{className:no.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:Oe,setThirdlyReply:Qe})=>{var Je,nt,qe,ct;const ut=(0,Kn.eY)();return console.log(ut,"user"),ee.createElement("div",{className:no.list},ee.createElement("img",{src:he.Z.IMG_SERVER+"/images/"+((Je=Ce==null?void 0:Ce.author)==null?void 0:Je.image_url)}),ee.createElement("div",{className:no.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),(ut==null?void 0:ut.login)!==((qe=Ce==null?void 0:Ce.author)==null?void 0:qe.login)&&ee.createElement("span",{onClick:()=>Qe(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}),(ct=Ce==null?void 0:Ce.children)==null?void 0:ct.map(St=>ee.createElement(Oa,{key:St.id,data:St})),Oe===(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:()=>Qe(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:no.line})))};var Ko=({data:Ce,onReplyDiscuss:Me,secondReply:Oe,setSecondReply:Qe,thirdlyReply:Je,setThirdlyReply:nt,onPlusDiscuss:qe})=>{var ct,ut,St,Vt;const[Nt,Yt]=(0,ee.useState)(!1);return ee.createElement("div",{className:no.discussItem},ee.createElement("div",{className:no.list},ee.createElement("img",{src:he.Z.IMG_SERVER+"/images/"+((ct=Ce==null?void 0:Ce.author)==null?void 0:ct.image_url)}),ee.createElement("div",{className:no.wrap},ee.createElement("div",{className:"font14",style:{marginBottom:6}},ee.createElement("span",{className:"c-grey-333 mr30"},(ut=Ce==null?void 0:Ce.author)==null?void 0:ut.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:no.btns},ee.createElement("div",{onClick:()=>qe(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&&(Qe(null),Yt(!Nt))},style:{color:Nt?"#0152d9":"#999999"}},ee.createElement("i",{className:"iconfont icon-xiaopinglun2 mr3"}),ee.createElement("span",null,Nt?"\u6536\u8D77\u8BC4\u8BBA":(St=Ce==null?void 0:Ce.children)==null?void 0:St.length)),ee.createElement("div",{onClick:()=>{Yt(!1),Qe(Oe===(Ce==null?void 0:Ce.id)?null:Ce==null?void 0:Ce.id)},style:{color:Oe===(Ce==null?void 0:Ce.id)?"#0152d9":"#999999"}},ee.createElement("i",{className:"iconfont icon-huifu3 mr3"}),ee.createElement("span",null,Oe===(Ce==null?void 0:Ce.id)?"\u6536\u8D77\u56DE\u590D":"\u56DE\u590D"))),Oe===(Ce==null?void 0:Ce.id)&&ee.createElement(ca,{id:Ce==null?void 0:Ce.id,cb:(Ot,Qt)=>{Me(Ot,Qt),Yt(!0)}}),Nt&&ee.createElement("div",{className:no.secondLevelDiscuss},(Vt=Ce==null?void 0:Ce.children)==null?void 0:Vt.map(Ot=>ee.createElement(Ra,{thirdlyReply:Je,setThirdlyReply:nt,key:Ot.id,data:Ot,onReplyDiscuss:Me}))))))},ko=(Ce,Me,Oe)=>new Promise((Qe,Je)=>{var nt=ut=>{try{ct(Oe.next(ut))}catch(St){Je(St)}},qe=ut=>{try{ct(Oe.throw(ut))}catch(St){Je(St)}},ct=ut=>ut.done?Qe(ut.value):Promise.resolve(ut.value).then(nt,qe);ct((Oe=Oe.apply(Ce,Me)).next())}),uo=({identifier:Ce,active:Me,onOk:Oe})=>{const[Qe,Je]=(0,ee.useState)(""),[nt,qe]=(0,ee.useState)(1),[ct,ut]=(0,ee.useState)([]),[St,Vt]=(0,ee.useState)(0),[Nt,Yt]=(0,ee.useState)(null),[Ot,Qt]=(0,ee.useState)(null);(0,ee.useEffect)(()=>{Jt(1),qe(1)},[Me]);const Jt=qt=>ko(void 0,null,function*(){const hn=yield wt({container_type:"QuestionSolutionArticle",container_identifier:Me,limit:5,page:qt});hn!=null&&hn.comments&&(ut((hn==null?void 0:hn.comments)||[]),qe(qt),Vt(hn==null?void 0:hn.disscuss_count))}),Pn=()=>ko(void 0,null,function*(){if(Qe===""){fe.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9");return}const qt=yield zn({comments:{content:Qe},container_type:"QuestionSolutionArticle",container_identifier:Me});qt!=null&&qt.discuss&&(Je(""),Jt(nt),Oe())}),rn=(qt,hn,Rt)=>ko(void 0,null,function*(){const nn=yield vn({container_type:"QuestionSolutionArticle",container_identifier:Me,comments:{content:hn,parent_id:qt}});Yt(null),Qt(null),Jt(nt)}),_n=qt=>ko(void 0,null,function*(){const hn=yield yn(qt);Jt(nt)}),On=qt=>{qe(qt),Jt(qt)};return ee.createElement("div",{className:Wo.discuss},ee.createElement("aside",{className:Wo.reply,style:{borderWidth:St?1:0}},ee.createElement(Yn.Z,{defaultValue:Qe,id:"writeForumsReviewId",onChange:qt=>{Je(qt)},placeholder:"\u6211\u8981\u56DE\u590D...",height:240}),ee.createElement(la.Z,null,ee.createElement(Bo.Z,{flex:"1"}),ee.createElement(Bo.Z,null,ee.createElement(Pt.ZP,{type:"primary",size:"middle",onClick:()=>Pn()},"\u53D1\u9001")))),ct==null?void 0:ct.map(qt=>ee.createElement(Ko,{secondReply:Nt,setSecondReply:Yt,thirdlyReply:Ot,setThirdlyReply:Qt,key:qt.id,data:qt,onReplyDiscuss:rn,onPlusDiscuss:_n})),ee.createElement(Et.Z,{className:Wo.pagination,showTotal:qt=>ee.createElement("span",{style:{color:"#656F87"}},"\u5171",ee.createElement("span",{className:"c-light-primary"},qt),"\u6761\u6570\u636E"),current:nt,onChange:On,total:St,showSizeChanger:!1,showQuickJumper:!0,hideOnSinglePage:!0,pageSize:5}))},Vo=te(59533),Yo=Object.defineProperty,Fo=Object.getOwnPropertySymbols,da=Object.prototype.hasOwnProperty,ua=Object.prototype.propertyIsEnumerable,Na=(Ce,Me,Oe)=>Me in Ce?Yo(Ce,Me,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Ce[Me]=Oe,Ba=(Ce,Me)=>{for(var Oe in Me||(Me={}))da.call(Me,Oe)&&Na(Ce,Oe,Me[Oe]);if(Fo)for(var Oe of Fo(Me))ua.call(Me,Oe)&&Na(Ce,Oe,Me[Oe]);return Ce},Xo=(Ce,Me,Oe)=>new Promise((Qe,Je)=>{var nt=ut=>{try{ct(Oe.next(ut))}catch(St){Je(St)}},qe=ut=>{try{ct(Oe.throw(ut))}catch(St){Je(St)}},ct=ut=>ut.done?Qe(ut.value):Promise.resolve(ut.value).then(nt,qe);ct((Oe=Oe.apply(Ce,Me)).next())}),ka=({active:Ce,identifier:Me,onAssist:Oe,onEdit:Qe,onArticlesSkip:Je,onClose:nt,onOk:qe,onDelete:ct,detailsIndex:ut,btnShowStatus:St})=>{var Vt,Nt,Yt,Ot,Qt,Jt,Pn,rn,_n,On;const[qt,hn]=(0,ee.useState)(!0),[Rt,nn]=(0,ee.useState)({});(0,ee.useEffect)(()=>{Ce&&ln()},[Ce,ut]);const ln=(Dn=!0)=>Xo(void 0,null,function*(){Dn&&hn(!0);const gn=yield(0,me.wO)(Me,{active:Ce});(gn==null?void 0:gn.status)===0&&nn((gn==null?void 0:gn.data)||{}),hn(!1)}),Ln=Dn=>Xo(void 0,null,function*(){const gn=yield(0,me.qe)(Me,Ba({active:Ce},Dn));(gn==null?void 0:gn.status)===0&&(ln(!1),qe())}),Jn=Dn=>Xo(void 0,null,function*(){(yield(0,me.Rg)(Me,{active:Dn==null?void 0:Dn.id})).status===0&&(ln(!1),qe())}),en=Dn=>{oe.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:()=>ct(Dn)})},bn=()=>{ln(!1),qe()};return ee.createElement("div",{className:si.listDetails},ee.createElement(to.Z,{className:"pt20 pl20 pr20",loading:qt,active:!0,paragraph:{rows:5}},ee.createElement("div",{className:si.head},ee.createElement("div",{className:si.name},ee.createElement("div",{title:Rt==null?void 0:Rt.name,className:si.title},Rt==null?void 0:Rt.name),(Rt==null?void 0:Rt.is_authority)&&ee.createElement("div",{className:si.b},"\u5B98\u65B9"),(Rt==null?void 0:Rt.is_excellent)&&ee.createElement("div",{className:si.a},"\u7CBE\u9009")),ee.createElement("div",{className:si.tag},ee.createElement("img",{src:he.Z.IMG_SERVER+"/images/"+(Rt==null?void 0:Rt.image_url)}),ee.createElement("div",{className:"c-grey-333 ml5 mr20 font14"},Rt==null?void 0:Rt.username),ee.createElement("div",{style:{display:"inline-block",marginBottom:-2},className:"c-grey-999 mr20 font12"},"\u53D1\u5E03\u4E8E",$t()(Rt==null?void 0:Rt.created_at).format("YYYY-MM-DD")),ee.createElement("span",null,ee.createElement("img",{src:An}),ee.createElement("span",null,Rt==null?void 0:Rt.praises_count)),ee.createElement("span",null,ee.createElement("img",{src:Ur}),ee.createElement("span",null,Rt==null?void 0:Rt.discusses_count)),ee.createElement("span",null,ee.createElement("img",{src:xi}),ee.createElement("span",null,Rt==null?void 0:Rt.viewed_count)),ee.createElement("div",{className:si.btn},((0,Kn.Ny)()||(Rt==null?void 0:Rt.is_self))&&ee.createElement(ee.Fragment,null,ee.createElement(Pt.ZP,{onClick:()=>en(Rt),type:"primary",ghost:!0},"\u5220\u9664"),ee.createElement(Pt.ZP,{onClick:()=>Qe(Rt),type:"primary",ghost:!0},"\u7F16\u8F91")),(0,Kn.Ny)()&&ee.createElement(Pt.ZP,{onClick:()=>Ln({is_authority:!(Rt!=null&&Rt.is_authority)}),type:"primary"},ee.createElement("img",{src:Ma}),Rt!=null&&Rt.is_authority?"\u53D6\u6D88":"\u8BBE\u4E3A","\u5B98\u65B9"),(0,Kn.Ny)()&&ee.createElement(Pt.ZP,{onClick:()=>Ln({is_excellent:!(Rt!=null&&Rt.is_excellent)}),type:"primary"},ee.createElement("img",{src:ta}),Rt!=null&&Rt.is_excellent?"\u53D6\u6D88":"\u8BBE\u4E3A","\u7CBE\u9009")))),ee.createElement("div",{className:si.scroll},((Nt=(Vt=Rt==null?void 0:Rt.videos)==null?void 0:Vt[0])==null?void 0:Nt.id)&&ee.createElement("div",{className:si.video},ee.createElement(de.Z,{tip:"\u6B63\u5728\u8F6C\u7801\uFF0C\u8BF7\u7A0D\u7B49...",spinning:!((Ot=(Yt=Rt==null?void 0:Rt.videos)==null?void 0:Yt[0])!=null&&Ot.transcoded)},ee.createElement(Vo.Z,{poster:(Jt=(Qt=Rt==null?void 0:Rt.videos)==null?void 0:Qt[0])==null?void 0:Jt.cover_url,src:((rn=(Pn=Rt==null?void 0:Rt.videos)==null?void 0:Pn[0])==null?void 0:rn.play_url)||"",videoId:(On=(_n=Rt==null?void 0:Rt.videos)==null?void 0:_n[0])==null?void 0:On.id,logWatchHistory:()=>{}}))),ee.createElement(Ie.Z,{className:si.html,value:(Rt==null?void 0:Rt.content)||""}),ee.createElement("div",{onClick:()=>Jn(Rt),className:si.g},ee.createElement("img",{className:"mr10",src:(Rt!=null&&Rt.user_liker,sa)}),ee.createElement("span",null,Rt==null?void 0:Rt.praises_count)),ee.createElement(uo,{onOk:bn,active:Ce,identifier:Me})),ee.createElement("div",{className:si.btns},ee.createElement(Pt.ZP,{onClick:()=>nt(),type:"primary",ghost:!0},"\u5173\u95ED"),St[0]&&ee.createElement(Pt.ZP,{onClick:Dn=>Je(Dn,"prev"),style:{marginLeft:20},type:"primary"},"\u4E0A\u4E00\u9898\u89E3"),St[1]&&ee.createElement(Pt.ZP,{onClick:Dn=>Je(Dn,"next"),style:{marginLeft:20},type:"primary"},"\u4E0B\u4E00\u9898\u89E3"))))},jo=Object.defineProperty,zo=Object.getOwnPropertySymbols,Ho=Object.prototype.hasOwnProperty,ga=Object.prototype.propertyIsEnumerable,fa=(Ce,Me,Oe)=>Me in Ce?jo(Ce,Me,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Ce[Me]=Oe,Qo=(Ce,Me)=>{for(var Oe in Me||(Me={}))Ho.call(Me,Oe)&&fa(Ce,Oe,Me[Oe]);if(zo)for(var Oe of zo(Me))ga.call(Me,Oe)&&fa(Ce,Oe,Me[Oe]);return Ce};const Fa=Ce=>React.createElement("svg",Qo({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),Jo=te(89489),ja=Object.defineProperty,pa=Object.defineProperties,za=Object.getOwnPropertyDescriptors,va=Object.getOwnPropertySymbols,Ha=Object.prototype.hasOwnProperty,Do=Object.prototype.propertyIsEnumerable,Mo=(Ce,Me,Oe)=>Me in Ce?ja(Ce,Me,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Ce[Me]=Oe,Yi=(Ce,Me)=>{for(var Oe in Me||(Me={}))Ha.call(Me,Oe)&&Mo(Ce,Oe,Me[Oe]);if(va)for(var Oe of va(Me))Do.call(Me,Oe)&&Mo(Ce,Oe,Me[Oe]);return Ce},Ga=(Ce,Me)=>pa(Ce,za(Me)),Ao=(Ce,Me,Oe)=>new Promise((Qe,Je)=>{var nt=ut=>{try{ct(Oe.next(ut))}catch(St){Je(St)}},qe=ut=>{try{ct(Oe.throw(ut))}catch(St){Je(St)}},ct=ut=>ut.done?Qe(ut.value):Promise.resolve(ut.value).then(nt,qe);ct((Oe=Oe.apply(Ce,Me)).next())}),hs=({identifier:Ce,tabStatus:Me,setFilterListTotal:Oe,setListStatus:Qe})=>{const Je={page:1,limit:10,total:0,search:"",save_search:"",sort_by:"updated_at",sort_direction:null};let[nt,qe]=(0,ee.useState)(Yi({},Je));const[ct,ut]=(0,ee.useState)(!1),[St,Vt]=(0,ee.useState)(0),[Nt,Yt]=(0,ee.useState)(1),[Ot,Qt]=(0,ee.useState)(null),[Jt,Pn]=(0,ee.useState)([]),[rn,_n]=(0,ee.useState)([!0,!0]),[On,qt]=(0,ee.useState)(0),hn=(0,ee.useRef)(null);(0,ee.useEffect)(()=>{Tn()},[Me]),(0,ee.useEffect)(()=>{Rt()},[Ot]),(0,ee.useEffect)(()=>{ln(Yi({},Je)),Tn()},[Ce]),(0,ee.useEffect)(()=>(window.addEventListener("resize",nn),Qe(On),()=>{window.removeEventListener("resize",nn)}),[On]);const Rt=()=>Ao(void 0,null,function*(){if(!Ot){_n([!0,!0]);return}const Hn=[!0,!0],Cn=Jt==null?void 0:Jt.findIndex(kn=>kn.id===Ot);Cn===0&&nt.page===1&&(Hn[0]=!1),(nt.page-1)*nt.limit+(Cn+1)===nt.total&&(Hn[1]=!1),_n(Hn)}),nn=()=>{var Hn;if(On){const Cn=window.innerWidth-((Hn=hn.current)==null?void 0:Hn.clientWidth);Vt(Cn)}},ln=Hn=>Ao(void 0,null,function*(){var Cn,kn,Un;ut(!0);const Mn=yield(0,me.WH)(Ce,Hn);return(Mn==null?void 0:Mn.status)===0&&(Pn(((Cn=Mn==null?void 0:Mn.data)==null?void 0:Cn.articles)||[]),qe(Ga(Yi({},Hn),{total:(kn=Mn==null?void 0:Mn.data)==null?void 0:kn.articles_count})),Oe((Un=Mn==null?void 0:Mn.data)==null?void 0:Un.articles_count)),ut(!1),Mn}),Ln=()=>{(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(),qe(Yi({},nt)),ln(nt)},Jn=()=>{nt.page=1,nt.search=nt==null?void 0:nt.save_search,Tn(),qe(Yi({},nt)),ln(nt)},en=()=>{var Hn;const Cn=document.getElementsByClassName("btn-resize");Cn[0].style.visibility="hidden";const kn=window.innerWidth-((Hn=hn.current)==null?void 0:Hn.clientWidth);Vt(kn)},bn=()=>{en(),qt(1)},Dn=Hn=>{en(),Qt(Hn==null?void 0:Hn.id),qt(3)},gn=Hn=>{en(),Qt(Hn==null?void 0:Hn.id),qt(2)},Tn=()=>{const Hn=document.getElementsByClassName("btn-resize");Hn[0].style.visibility="visible",Vt(0),qt(0),Qt(null)},jn=Hn=>{qt(3),Qt(Hn),nt.page=1,qe(Yi({},nt)),ln(nt)},Xn=Hn=>{qt(3),Qt(Hn),qe(Yi({},nt)),ln(nt)},Hr=Hn=>{qe(Yi({},nt)),ln(nt)},er=Hn=>Ao(void 0,null,function*(){(yield(0,me.Rg)(Ce,{active:Hn==null?void 0:Hn.id})).status===0&&(ln(nt),Yt(Nt+1))}),Wr=Hn=>Ao(void 0,null,function*(){(yield(0,me.rL)(Ce,{active:Hn==null?void 0:Hn.id})).status===0&&(ln(nt),Yt(Nt+1))}),Sr=Hn=>Ao(void 0,null,function*(){(yield(0,me.de)(Ce,{active:Hn==null?void 0:Hn.id})).status===0&&(Tn(),ln(nt))}),Lr=Hn=>{nt.page=Hn,qe(Yi({},nt)),ln(nt)},Nr=(Hn,Cn)=>Ao(void 0,null,function*(){var kn,Un,Mn,yr;const Rn=Jt==null?void 0:Jt.findIndex(Gn=>Gn.id===Ot);if(console.log(Rn,Cn,22),Cn==="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,qe(Yi({},nt));const Gn=yield ln(nt);if((Gn==null?void 0:Gn.status)===0){const hr=(Mn=Gn==null?void 0:Gn.data)==null?void 0:Mn.articles[((Un=(kn=Gn==null?void 0:Gn.data)==null?void 0:kn.articles)==null?void 0:Un.length)-1];Qt(hr==null?void 0:hr.id),console.log(Hn.target,555)}}}else{const Gn=Jt[Rn-1];Qt(Gn==null?void 0:Gn.id)}}if(Cn==="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,qe(Yi({},nt));const Gn=yield ln(nt);if((Gn==null?void 0:Gn.status)===0){const hr=(yr=Gn==null?void 0:Gn.data)==null?void 0:yr.articles[0];Qt(hr==null?void 0:hr.id)}}else{const Gn=Jt[Rn+1];Qt(Gn==null?void 0:Gn.id)}}});return ee.createElement("div",{className:dt.wrap,ref:hn},ee.createElement("div",{className:dt.head},ee.createElement("div",{className:dt.sort,onClick:Ln},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(Jo.Z,{style:{color:(nt==null?void 0:nt.sort_direction)==="desc"?"#0152d9":"#bfbfbf"}}))),ee.createElement(We.default.Search,{value:nt.save_search,className:dt["oj-width-input"],placeholder:"\u641C\u7D22\u9898\u89E3",onChange:Hn=>{nt.save_search=Hn.target.value,qe(Yi({},nt))},onSearch:Jn}),ee.createElement("div",{onClick:bn,className:dt.btn},ee.createElement("img",{src:ha}),"\u5199\u9898\u89E3")),ee.createElement("div",{className:dt.listWarp},ee.createElement(de.Z,{spinning:ct,className:"mt20"},Jt==null?void 0:Jt.map((Hn,Cn)=>{let kn=!0;return Cn+1===Jt.length&&Cn!==0&&(kn=!1),ee.createElement(ai,{active:Ot,key:Hn.id,data:Hn,showLine:kn,onClick:Dn,onAssist:er,onHide:Wr})}),(Jt==null?void 0:Jt.length)===0&&ee.createElement(Ge.Z,{customText:"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"}))),ee.createElement(Et.Z,{className:dt.pagination,showTotal:Hn=>ee.createElement("span",{style:{color:"#656F87"}},"\u5171",ee.createElement("span",{className:"c-light-primary"},Hn),"\u6761\u6570\u636E"),total:nt.total,showSizeChanger:!1,current:nt==null?void 0:nt.page,onChange:Lr,hideOnSinglePage:!0,showQuickJumper:!0}),On>0&&ee.createElement("div",{className:dt.fixedRight,style:{width:St}},On===1&&ee.createElement(Or,{identifier:Ce,onClose:Tn,onOk:jn}),On===2&&ee.createElement(Or,{active:Ot,identifier:Ce,onClose:Tn,onOk:Xn}),On===3&&ee.createElement(ka,{btnShowStatus:rn,onArticlesSkip:Nr,detailsIndex:Nt,active:Ot,identifier:Ce,onClose:Tn,onOk:Hr,onEdit:gn,onAssist:er,onDelete:Sr})))},Eo={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,Oe)=>Me in Ce?ms(Ce,Me,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Ce[Me]=Oe,_o=(Ce,Me)=>{for(var Oe in Me||(Me={}))Wa.call(Me,Oe)&&Sa(Ce,Oe,Me[Oe]);if(Za)for(var Oe of Za(Me))ps.call(Me,Oe)&&Sa(Ce,Oe,Me[Oe]);return Ce},qo=(Ce,Me)=>Ua(Ce,$a(Me)),Go=(Ce,Me,Oe)=>new Promise((Qe,Je)=>{var nt=ut=>{try{ct(Oe.next(ut))}catch(St){Je(St)}},qe=ut=>{try{ct(Oe.throw(ut))}catch(St){Je(St)}},ct=ut=>ut.done?Qe(ut.value):Promise.resolve(ut.value).then(nt,qe);ct((Oe=Oe.apply(Ce,Me)).next())}),Ss=({visible:Ce,onVisible:Me,value:Oe,onChange:Qe,setIndex:Je})=>{var nt;const qe={page:1,per_page:30,total:0,tag_discipline_id:[],search:"",save_search:"",difficulty:null};let[ct,ut]=(0,ee.useState)(qe);const[St,Vt]=(0,ee.useState)([]),[Nt,Yt]=(0,ee.useState)([]),[Ot,Qt]=(0,ee.useState)(!1),Jt=(0,ee.useRef)([]),Pn=(0,ee.useRef)(null),rn=(0,pe.useParams)();(0,ee.useEffect)(()=>(rn!=null&&rn.id&&(Pn.current=setInterval(()=>{_n(30)},3e4)),()=>{clearInterval(Pn.current)}),[]);const _n=en=>Go(void 0,null,function*(){const bn=yield(0,me.uc)(rn==null?void 0:rn.id,{practice_time:en})});(0,ee.useEffect)(()=>{ln(ct),Rt()},[]),(0,ee.useEffect)(()=>(window.addEventListener("click",qt),()=>{window.removeEventListener("click",qt)}),[rn==null?void 0:rn.save_identifier,Ce]),(0,ee.useEffect)(()=>{const en=Jt.current.findIndex(jn=>jn.identifier===(rn==null?void 0:rn.save_identifier)),bn=Jt.current[en-1],Dn=Jt.current[en+1],gn=document.getElementById("oj-prev"),Tn=document.getElementById("oj-next");bn?gn.style.display="block":gn.style.display="none",Dn?Tn.style.display="block":Tn.style.display="none"},[rn==null?void 0:rn.save_identifier,Jt.current]);const On=(en,bn)=>{if(en.id===bn)return en;for(let Dn=0,gn=en;gn=gn.parentNode;Dn++){if(gn.id===bn)return gn;if(gn==document.documentElement)return!1}},qt=en=>Go(void 0,null,function*(){!On(en.target,"oj-drawer")&&Ce&&Me(!1);const bn=Jt.current.findIndex(Tn=>Tn.identifier===(rn==null?void 0:rn.save_identifier)),Dn=Jt.current[bn-1],gn=Jt.current[bn+1];if(en.target.id==="oj-prev"){if(!Dn||bn===-1){fe.ZP.warning("\u4E0A\u4E00\u9898\u4E0D\u5B58\u5728");return}en.target.style.pointerEvents="none",en.target.style.cursor="not-allowed",yield Ln(Dn==null?void 0:Dn.identifier),Je("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||bn===-1){fe.ZP.warning("\u4E0B\u4E00\u9898\u4E0D\u5B58\u5728");return}en.target.style.pointerEvents="none",en.target.style.cursor="not-allowed",yield Ln(gn==null?void 0:gn.identifier),Je("0"),setTimeout(()=>{en.target.style.pointerEvents="auto",en.target.style.cursor="pointer"},400)}});(0,ee.useEffect)(()=>{Qe(rn==null?void 0:rn.save_identifier);const en=Nt.findIndex(bn=>bn.some(Dn=>Dn.identifier===(rn==null?void 0:rn.save_identifier)));ut(en===-1?qo(_o({},ct),{page:1}):qo(_o({},ct),{page:en+1}))},[rn==null?void 0:rn.save_identifier,Nt]);const hn=en=>{ct.page=1,ct.tag_discipline_id=en,ut(_o({},ct)),ln(ct)},Rt=()=>Go(void 0,null,function*(){const en=yield(0,cn.ZP)("/api/tag_disciplines.json",{method:"get",params:{target:"practice",position:"index"}});Vt(en.tag_disciplines||[])}),nn=en=>{ct.page=1,ct.difficulty=typeof en=="number"?en:null,ut(_o({},ct)),ln(ct)},ln=en=>Go(void 0,null,function*(){var bn,Dn;Qt(!0);const gn=yield(0,me.KC)(en);if(gn!=null&&gn.practices_list){for(var Tn=(bn=gn==null?void 0:gn.practices_list)==null?void 0:bn.length,jn=[],Xn=0;XnGo(void 0,null,function*(){const Dn=yield(0,cn.ZP)(`/api/practices/${en}/start`,{method:"get"});(Dn==null?void 0:Dn.status)===0&&pe.history.push(`/problems/${Dn==null?void 0:Dn.identifier}/oj/${en}`)}),Jn=en=>{ct.page=en,ut(_o({},ct))};return ee.createElement("div",{className:Eo.wrap,id:"oj-drawer",style:{left:Ce?0:-700}},ee.createElement("div",{className:Eo.head},ee.createElement("div",{className:Eo.title},"\u9898\u76EE\u5217\u8868"),ee.createElement(We.default.Search,{value:ct==null?void 0:ct.save_search,placeholder:"\u8BF7\u8F93\u5165\u9898\u76EE\u540D\u79F0\u641C\u7D22",style:{width:180,marginLeft:"auto",marginRight:10},onChange:en=>{ct.save_search=en.target.value,ut(_o({},ct))},onSearch:()=>{ct.page=1,ct.search=ct.save_search,ut(_o({},ct)),ln(ct)}}),ee.createElement(le.default,{value:ct==null?void 0:ct.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},St.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:ct==null?void 0:ct.difficulty,onChange:nn},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:Eo.content},ee.createElement(de.Z,{spinning:Ot},(nt=Nt==null?void 0:Nt[ct.page-1])==null?void 0:nt.map(en=>ee.createElement("div",{key:en.identifier,className:Eo.list,onClick:bn=>Ln(en.identifier,bn)},ee.createElement("i",{style:{visibility:Oe===en.identifier?"visible":"hidden"},className:"iconfont icon-wancheng1 c-green-29b"}),ee.createElement("span",{style:{fontWeight:Oe===en.identifier?"bold":400,color:Oe===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:Eo.footer},ee.createElement(Et.Z,{showTotal:en=>ee.createElement("span",{style:{color:"#656F87"}},"\u5171",ee.createElement("span",{className:"c-light-primary"},en),"\u6761\u6570\u636E"),total:ct.total,pageSize:ct==null?void 0:ct.per_page,current:ct==null?void 0:ct.page,showSizeChanger:!1,onChange:Jn,showQuickJumper:!0,hideOnSinglePage:!0})))},Ka=({hack:Ce,onTriggerPraise:Me,topicId:Oe,page:Qe,onPageChange:Je,user:nt,submitRecords:qe,submitting:ct,submitResult:ut})=>{const[St]=(0,pe.useSearchParams)(),Vt=(0,pe.useLocation)(),[Nt,Yt]=(0,ee.useState)(St.get("tab")||"0"),[Ot,Qt]=(0,ee.useState)(0),[Jt,Pn]=(0,ee.useState)(0),[rn,_n]=(0,ee.useState)(0),[On,qt]=(0,ee.useState)(),[hn,Rt]=(0,ee.useState)(!1);function nn(Ln){const Jn=Ln.target.id;if(Nt==="3"&&Jn!==Nt&&(Jt===1||Jt===2)){oe.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:()=>{Yt(Jn)}});return}Yt(Jn)}(0,ee.useEffect)(()=>ze.Z.subscribe("to-commit-info",()=>{Yt("1")}),[]);function ln(){Yt("2")}return ee.createElement("div",{className:Xe["left-panel"]},ee.createElement("ul",{className:`${Xe["s-navs"]} ${Xe["bg-white"]} ${Xe.b1}`},ee.createElement("li",{className:"mr40 current"},ee.createElement("img",{onClick:()=>Rt(!0),src:fn})),ee.createElement("li",{className:Xe["oj-mr"]},ee.createElement("a",{className:Nt==="0"?Xe.active:"",id:"0",onClick:nn},"\u4EFB\u52A1\u63CF\u8FF0")),ee.createElement("li",{className:Xe["oj-mr"]},ee.createElement("a",{className:Nt==="3"?Xe.active:"",id:"3",onClick:nn},"\u9898\u89E3",rn?`(${rn})`:"")),ee.createElement("li",{className:Xe["oj-mr"]},ee.createElement("a",{className:Nt==="2"?Xe.active:"",id:"2",onClick:nn},"\u8BC4\u8BBA",Ot?`(${Ot})`:"")),ee.createElement("li",null,ee.createElement("a",{className:Nt==="1"?Xe.active:"",id:"1",onClick:nn},"\u63D0\u4EA4\u8BB0\u5F55"))),ee.createElement("div",{className:`${Xe["tab-panel-body"]} ${Nt==="0"?"":"hide"}`,style:{padding:"0 0 0 16px"}},ee.createElement(Be,{hack:Ce,onTriggerPraise:Me,toDiscuss:ln})),ee.createElement("div",{className:`${Xe["tab-panel-body"]} ${Nt==="1"?"":"hide"}`},qe!=null&&qe.records_count?ee.createElement(lt,{page:Qe,onPageChange:Je,topicId:Oe,submitting:ct,submitRecords:qe,submitResult:ut}):ee.createElement(Ge.Z,null)),ee.createElement("div",{className:`${Xe["tab-panel-body"]} ${Nt==="2"?"":"hide"}`,style:{padding:0}},ee.createElement(tt,{setDiscussTotal:Qt,user:nt,identifier:Ce.identifier,hack:Ce,onTriggerPraise:Me})),ee.createElement("div",{className:`${Xe["tab-panel-body"]} ${Nt==="3"?"":"hide"}`,style:{padding:0}},ee.createElement(hs,{setListStatus:Pn,setFilterListTotal:_n,tabStatus:Nt,identifier:Ce.identifier})),ee.createElement(Ss,{visible:hn,setIndex:Yt,onVisible:Ln=>Rt(Ln),value:On,onChange:Ln=>qt(Ln)}))},_s=te(7605),Va=te(62522),ys=te(62595),Ya=te(14699),Ps=te(89392),Xa=te.n(Ps),bs=te(56102),nr=te(59301),Cs=Object.defineProperty,Qa=Object.defineProperties,Es=Object.getOwnPropertyDescriptors,Io=Object.getOwnPropertySymbols,Ja=Object.prototype.hasOwnProperty,_a=Object.prototype.propertyIsEnumerable,ya=(Ce,Me,Oe)=>Me in Ce?Cs(Ce,Me,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Ce[Me]=Oe,Zr=(Ce,Me)=>{for(var Oe in Me||(Me={}))Ja.call(Me,Oe)&&ya(Ce,Oe,Me[Oe]);if(Io)for(var Oe of Io(Me))_a.call(Me,Oe)&&ya(Ce,Oe,Me[Oe]);return Ce},mi=(Ce,Me)=>Qa(Ce,Es(Me)),qa=(Ce,Me)=>{var Oe={};for(var Qe in Ce)Ja.call(Ce,Qe)&&Me.indexOf(Qe)<0&&(Oe[Qe]=Ce[Qe]);if(Ce!=null&&Io)for(var Qe of Io(Ce))Me.indexOf(Qe)<0&&_a.call(Ce,Qe)&&(Oe[Qe]=Ce[Qe]);return Oe},$i=(Ce,Me,Oe)=>new Promise((Qe,Je)=>{var nt=ut=>{try{ct(Oe.next(ut))}catch(St){Je(St)}},qe=ut=>{try{ct(Oe.throw(ut))}catch(St){Je(St)}},ct=ut=>ut.done?Qe(ut.value):Promise.resolve(ut.value).then(nt,qe);ct((Oe=Oe.apply(Ce,Me)).next())});const{Countdown:ws}=Se.default,ao={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 Uo(){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 Zr(Zr({},Ce),Me.payload);case 3:return mi(Zr({},Ce),{data:Me.payload});case 0:return mi(Zr({},Ce),{loading:Me.payload});case 11:return mi(Zr({},Ce),{languageList:Me.payload});case 12:return mi(Zr({},Ce),{drawerData:Me.payload});case 9:return mi(Zr({},Ce),{showNote:Me.payload});case 4:return mi(Zr({},Ce),{debuging:Me.payload});case 5:return mi(Zr({},Ce),{submitting:Me.payload});case 2:return mi(Zr({},Ce),{submitRecords:Me.payload});case 10:return mi(Zr({},Ce),{submitRecordPage:Me.payload});case 6:return mi(Zr({},Ce),{executingMessage:Me.payload});case 7:return Zr(Zr({},Ce),Me.payload);case 8:return Zr(Zr({},Ce),Me.payload);default:throw new Error}}var Ue=({children:Ce})=>{var Me,Oe,Qe,Je;const[nt,qe]=(0,ee.useReducer)(Te,Ae),{id:ct}=(0,pe.useParams)(),ut=(0,pe.useLocation)(),[St]=(0,pe.useSearchParams)(),{languageValue:Vt,languageList:Nt,loading:Yt,data:Ot,debugResult:Qt,submitResult:Jt,submitRecords:Pn,submitRecordPage:rn,showNote:_n,debuging:On,submitting:qt,executingMessage:hn}=nt,[Rt,nn]=(0,ee.useState)("#FFF"),[ln,Ln]=(0,ee.useState)(null),[Jn,en]=(0,ee.useState)({}),[bn,Dn]=(0,ee.useState)(!1),gn=(0,ee.useRef)(null),Tn=(0,ee.useRef)(null),jn=Ot==null?void 0:Ot.user,Xn=Ot==null?void 0:Ot.hack;(0,ee.useEffect)(()=>((0,pe.getDvaApp)()._store.dispatch({type:"globalSetting/headerFooterToggle",payload:!1}),(0,pe.getDvaApp)()._store.dispatch({type:"globalSetting/onlyShowBackTopToggle",payload:!0}),()=>{(0,pe.getDvaApp)()._store.dispatch({type:"globalSetting/headerFooterToggle",payload:!0}),(0,pe.getDvaApp)()._store.dispatch({type:"globalSetting/onlyShowBackTopToggle",payload:!1})}),[]),(0,ee.useEffect)(()=>{setTimeout(()=>{document.title="\u5728\u7EBF\u5237\u9898"},400)}),(0,ee.useEffect)(()=>{var tr;if(bn){const mr=document.getElementById("oj-next"),qr=document.getElementById("oj-modal-next");((tr=mr==null?void 0:mr.style)==null?void 0:tr.display)==="none"?qr.style.display="none":qr.style.display="block"}},[bn]),(0,ee.useEffect)(()=>{function tr(){return $i(this,null,function*(){var mr,qr,Rr;const br=yield(0,me.fu)(ct);if(br.status===401)document.location.href="/user/login";else{br.hack=br.practice,br.hack.code=Fe.Base64.decode((mr=br==null?void 0:br.hack)==null?void 0:mr.code);const Bi=`${jn==null?void 0:jn.login}-language`;localStorage.getItem(Bi)&&(br.hack.language=localStorage.getItem(Bi)),Tn.current=Xa().cloneDeep(br),Tn.current.language=(qr=br==null?void 0:br.hack)==null?void 0:qr.language,qe({type:1,payload:{loading:!1,data:br}}),qe({type:8,payload:{languageValue:(Rr=br==null?void 0:br.hack)==null?void 0:Rr.language}})}})}ct&&tr()},[ct]),(0,ee.useEffect)(()=>{qe({type:8,payload:{debugResult:void 0}}),Wr(),Dn(!1)},[ct]),(0,ee.useEffect)(()=>{clearTimeout(gn.current)},[ct]),(0,ee.useEffect)(()=>{er()},[ct,rn]);const Hr=()=>{window.parent.postMessage("backExercise","*")};function er(){return $i(this,null,function*(){try{const tr=yield(0,me.zO)(ct,{limit:15,page:rn});qe({type:2,payload:tr})}catch(tr){console.log(tr)}})}function Wr(){return $i(this,null,function*(){try{const tr=yield(0,me.dd)(ct);qe({type:11,payload:tr==null?void 0:tr.data})}catch(tr){console.log(tr)}})}function Sr(tr){qe({type:10,payload:tr})}function Lr(tr){return $i(this,null,function*(){var mr,qr,Rr;const br=((Rr=(qr=(mr=window==null?void 0:window.location)==null?void 0:mr.pathname)==null?void 0:qr.split("/"))==null?void 0:Rr[2])||ct;return yield(0,me.n4)(br,tr||{code:Fe.Base64.encode(Xn.code),language:Vt})})}function Nr(){return $i(this,null,function*(){var tr;if(!Xn.code||((tr=Xn.code)==null?void 0:tr.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(!qt){qe({type:5,payload:!0});try{if(ze.Z.publish("to-commit-info"),(yield Lr()).status===0){let Cr=function(){return $i(this,null,function*(){const{status:Gr,data:Vr}=yield(0,me.rX)(ct,"submit"),dr=Uo()-Pr>(br*Bi+3)*1e3;if(Gr!==0&&!dr&&setTimeout(Cr,1e3),dr){oe.default.error({centered:!0,okText:"\u77E5\u9053\u5566",title:"\u8BC4\u6D4B\u4EE3\u7801\u8D85\u65F6"}),qe({type:5,payload:!1});return}if(Gr===0){Vr.status===2&&oe.default.error({centered:!0,okText:"\u77E5\u9053\u5566",title:"\u8BC4\u6D4B\u4EE3\u7801\u8D85\u65F6"});const Ai=yield(0,me.zO)(ct,{limit:15,page:rn});qe({type:8,payload:mi(Zr({},nt),{submitResult:Vr,submitting:!1,submitRecords:Ai})}),(Vr==null?void 0:Vr.status)===0&&Dn(!0)}})},qr={};const Rr=yield(0,me.bM)(ct,qr);if(Rr.status===-1&&St.get("exercisesId")){window.parent.location.href=`/classrooms/${St.get("coursesId")}/exercise/${St.get("exercisesId")}/detail`;return}const{time_limit:br,test_case_size:Bi}=Xn,Pr=Uo();(Rr==null?void 0:Rr.status)>-1?Cr():qe({type:4,payload:!1})}}catch(mr){qe({type:5,payload:!1})}}})}function Hn(){return $i(this,null,function*(){var tr;if(!Xn.code||((tr=Xn.code)==null?void 0:tr.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,qe({type:4,payload:!0});try{if((yield Lr()).status===0){let Pr=function(){return $i(this,null,function*(){const{status:Cr,message:Gr,data:Vr}=yield(0,me.rX)(ct,"debug"),dr=Uo()-Bi>(qr+3)*1e3;if(Cr!==0&&!dr&&(qe({type:6,payload:Gr}),setTimeout(Pr,1e3)),dr){oe.default.error({centered:!0,okText:"\u77E5\u9053\u5566",title:"\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"}),qe({type:4,payload:!1});return}Cr===0&&(qe({type:4,payload:!1}),Vr.status===2&&oe.default.error({centered:!0,okText:"\u77E5\u9053\u5566",title:"\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"}),qe({type:7,payload:mi(Zr({},nt),{debugResult:Vr,debuging:!1})}))})};const{time_limit:qr}=Xn;let Rr={input:encodeURIComponent(Ot.test_case.input)};const br=yield(0,me.MU)(ct,Rr);if(br.status===-1&&St.get("exercisesId")){window.parent.location.href=`/classrooms/${St.get("coursesId")}/exercise/${St.get("exercisesId")}/detail`;return}const Bi=Uo();(br==null?void 0:br.status)>-1?Pr():qe({type:4,payload:!1})}else qe({type:4,payload:!1})}catch(mr){console.log(mr)}finally{}})}function Cn(tr){var mr;clearTimeout(gn.current),gn.current=setTimeout(()=>{var qr;Lr({code:Fe.Base64.encode(tr),language:(qr=Tn==null?void 0:Tn.current)==null?void 0:qr.language})},2e3),qe({type:3,payload:mi(Zr({},Tn==null?void 0:Tn.current),{hack:mi(Zr({},(mr=Tn==null?void 0:Tn.current)==null?void 0:mr.hack),{code:tr})})})}function kn(tr){let mr=tr.target.value;qe({type:3,payload:mi(Zr({},Ot),{test_case:{input:mr}})})}const Un=tr=>$i(void 0,null,function*(){var mr;if(qe({type:0,payload:!0}),(yield Lr()).status===0){qe({type:8,payload:{languageValue:tr}}),Tn.current.language=tr;const Rr=`${jn==null?void 0:jn.login}-language`;localStorage.setItem(Rr,tr);const br=yield(0,me.dd)(ct);if(br.status===0){const Bi=(mr=br==null?void 0:br.data)==null?void 0:mr.find(Pr=>Pr.language===tr);Cn(Fe.Base64.decode(Bi.code))}setTimeout(()=>{qe({type:0,payload:!1})},300)}});function Mn(){return $i(this,null,function*(){try{const tr=yield(0,me.H7)(ct,{language:Vt});tr.status===401?pe.history.replace("/login",{from:ut.pathname}):(Cn(Fe.Base64.decode(tr.code)),Wr())}catch(tr){console.log(tr)}})}function yr(){oe.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:nr.createElement("p",null,"\u521D\u59CB\u4EE3\u7801\u6709\u4FEE\u6539\uFF0C\u66F4\u65B0\u540E\u5C06\u8986\u76D6\u73B0\u6709\u4EE3\u7801\u54E6~ ",nr.createElement("br",null),"\u8BF7\u5C06\u60A8\u7F16\u8F91\u7684\u4EE3\u7801\u4FDD\u5B58\u81F3\u672C\u5730\uFF0C\u4EE5\u9632\u4E22\u5931"),onOk(){return $i(this,null,function*(){const tr=yield(0,me.fi)(ct,{language:Vt});tr.status===401?pe.history.replace("/login",{from:ut.pathname}):Cn(Fe.Base64.decode(tr.code))})}})}function Rn(){qe({type:9,payload:!0})}function Gn(){qe({type:9,payload:!1})}function hr(tr){return $i(this,null,function*(){yield(0,me.MK)(ct,tr),qe({type:1,payload:{showNote:!1,data:mi(Zr({},Ot),{hack:mi(Zr({},Xn),{notes:tr.notes})})}})})}const _r={input:(Me=Ot==null?void 0:Ot.test_case)==null?void 0:Me.input,is_file:(Oe=Ot==null?void 0:Ot.test_case)==null?void 0:Oe.is_file,language:((Qe=Tn.current)==null?void 0:Qe.language)||(Xn==null?void 0:Xn.language),code:Xn==null?void 0:Xn.code,title:"main."+ao[Xn==null?void 0:Xn.language],modify_code:Xn==null?void 0:Xn.modify_code,notes:Xn==null?void 0:Xn.notes,debugResult:Qt,debuging:On,submitting:qt,executingMessage:hn,id:ct,languageValue:Vt,languageList:Nt,onChangeLanguage:Un,onCancelNote:Gn,onAddNote:hr,showNote:_n,onShowNote:Rn,onSubmitCode:Nr,onChangeCode:Cn,onChangeInput:kn,onDebugCode:Hn,onResetCode:Mn,onSyncCode:yr,onUpdateCode:Lr};function Di(){return $i(this,null,function*(){const{praise_count:tr}=yield(0,me.vl)(Xn.id,{container_type:"Hack",type:1});let mr=mi(Zr({},Ot),{hack:mi(Zr({},Xn),{praises_count:tr,user_praise:!Xn.user_praise})});qe({type:3,payload:mr})})}const _i={topicId:ct,submitResult:Jt,submitRecords:Pn,submitting:qt,page:rn,onPageChange:Sr,hack:Xn,user:Ot==null?void 0:Ot.user,onTriggerPraise:Di};return console.log(Ot,Tn==null?void 0:Tn.current,"data--------"),nr.createElement(nr.Fragment,null,nr.createElement(de.Z,{className:"oj-custom-large-spin",size:"large",spinning:Yt},Ot?nr.createElement("div",{className:"oj-custom-warp"},nr.createElement("header",{className:He.Z.header,style:{minWidth:1200}},nr.createElement("div",null,nr.createElement("img",{src:`${he.Z.IMG_SERVER}/images/${jn.image_url}`,alt:"user",width:30}),nr.createElement("span",null,jn.name)),nr.createElement("h2",{className:"flex-wrp flex_box_column flex_box_center"},nr.createElement("div",null,Xn.name),nr.createElement(_s.Z,{onChange:tr=>{},className:"font12 c-grey-999"})),nr.createElement(bs.CopyToClipboard,{text:`${(Je=window.location)==null?void 0:Je.origin}/problems/${Xn.identifier}/share`,onCopy:()=>fe.ZP.success("\u590D\u5236\u9898\u76EE\u94FE\u63A5\u6210\u529F")},nr.createElement("span",{className:He.Z.btn_back,style:{marginRight:10,cursor:"pointer"}}," ",nr.createElement("i",{className:"iconfont icon-fenxiang1 font14 mr5"}),"\u5206\u4EAB\u9898\u76EE")),Xn.edit_privilege?nr.createElement(pe.Link,{className:He.Z.btn_back,to:`/problems/${Xn.identifier}/ojedit`,style:{marginRight:10}}," ",nr.createElement(ge.Z,null)," \u7F16\u8F91"):null,nr.createElement(pe.Link,{className:He.Z.btn_back,onClick:()=>{},to:"/problems"}," ",nr.createElement(be.Z,null),"\u9000\u51FA")),nr.createElement(ae.Z,{hideResize:!0,className:"my-problems oj-problems",leftChild:nr.createElement(Ka,Zr({},_i)),rightChild:nr.createElement(ot,Zr({},_r))})):null),nr.createElement(oe.default,{centered:!0,closable:!1,width:680,footer:null,open:bn,className:"oj-modal"},nr.createElement("section",{className:"oj-modal-content"},nr.createElement("div",{className:"oj-modal-head"},nr.createElement("img",{src:Va,alt:""}),nr.createElement("i",{onClick:()=>Dn(!1),className:"iconfont icon-guanbi1"})),nr.createElement("aside",null,nr.createElement("img",{className:"mr30",src:Ya.Z}),"\u8FD0\u884C\u65F6\u95F4:\xA0",nr.createElement("span",{style:{color:"#75d6ba",marginRight:100}},Jt==null?void 0:Jt.execute_time,"s"),"\u4F18\u4E8E",nr.createElement("span",{style:{color:"#f3b087",margin:"0 5px"}},(Jt==null?void 0:Jt.time_better_than)||100,"%"),"\u7684\u7528\u6237"),nr.createElement("aside",{className:"mb50"},nr.createElement("img",{src:ys.Z,className:"mr30"}),nr.createElement("span",{className:"oj-modal-tt"},nr.createElement("span",null,nr.createElement("span",null,"\u5360\u7528\u5185\u5B58:\xA0"),nr.createElement("span",{className:"c-light-primary"},Jt==null?void 0:Jt.execute_memory,"mb")),nr.createElement("span",null,nr.createElement("span",null))),"\u4F18\u4E8E",nr.createElement("span",{style:{color:"#f3b087",margin:"0 5px"}},(Jt==null?void 0:Jt.memory_better_than)||100,"%"),"\u7684\u7528\u6237"),nr.createElement("div",{id:"oj-modal-next",className:"oj-modal-btn"},"\u8FDB\u5165\u4E0B\u4E00\u9898"))))};function Ve({languageValue:Ce,languageList:Me,onChangeLanguage:Oe,title:Qe,modify_code:Je,onSyncCode:nt,onShowCodeSetting:qe,onResetCode:ct}){const ut=(0,pe.useLocation)(),St=()=>{oe.default.confirm({title:"\u6062\u590D\u521D\u59CB\u4EE3\u7801",icon:nr.createElement(ie.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:ct})};return nr.createElement("div",{className:"action-bar"},nr.createElement(le.default,{className:"oj-select",value:Ce,style:{width:100},placeholder:"\u9009\u62E9\u8BED\u8A00",onChange:Oe},Me==null?void 0:Me.map(Vt=>nr.createElement(le.default.Option,{key:Vt.language,value:Vt.language},Vt.language))),nr.createElement("span",null),nr.createElement("a",{title:"\u6062\u590D\u521D\u59CB\u4EE3\u7801",onClick:St},nr.createElement("i",{className:"iconfont icon-zhongzhi font-20 "})),nr.createElement("a",{onClick:qe},nr.createElement("i",{className:"iconfont icon-shezhi"})))}function ot(Ce){var Me=Ce,{id:Oe,input:Qe,is_file:Je,showNote:nt,onShowNote:qe,notes:ct,onCancelNote:ut,onAddNote:St,debugResult:Vt,language:Nt,debuging:Yt,submitting:Ot,executingMessage:Qt,code:Jt,onSubmitCode:Pn,onDebugCode:rn,onChangeCode:_n,onChangeInput:On,onUpdateCode:qt}=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 Rt(ln){return nr.createElement(Ve,mi(Zr({},hn),{onShowCodeSetting:ln}))}const nn={id:Oe,input:Qe,debugResult:Vt,debuging:Yt,is_file:Je,submitting:Ot,executingMessage:Qt,onDebugCode:rn,onChangeCode:_n,onSubmitCode:Pn,onChangeInput:On};return nr.createElement("div",{className:"right-panel"},nr.createElement(vt,{onUpdateCode:()=>{},language:Nt,value:Jt,onChange:_n,ActionBarRender:Rt}),nr.createElement("div",{className:`note-form-area ${nt?"active":""}`},nr.createElement(rt,{onCancel:ut,notes:ct,callback:St})),nr.createElement(at.ZP,Zr({},nn)))}},99268:function(mt,Ke,te){"use strict";te.d(Ke,{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||{})},78633:function(mt,Ke,te){"use strict";te.d(Ke,{H7:function(){return le},KC:function(){return ne},M3:function(){return b},MK:function(){return de},MU:function(){return pe},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 oe},uc:function(){return _e},vl:function(){return ie},wO:function(){return x},zO:function(){return Se}});var ee=te(57193);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 pe(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 oe(ye,De){return(0,ee.U2)(`mypractices/${ye}/result.json`,{mode:De})}function de(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 ie(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)}},63386:function(mt,Ke,te){"use strict";te.d(Ke,{Z:function(){return ie}});var ee=te(59301),ge=te(8591),be=te(6848),pe=te(71418),Se=te(95237),fe=te(43604),oe=te(58421),de=te(3113),le=te(88871),me=te(57193),ae=te(76818),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())}),ie=({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(pe.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(oe.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(de.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")))))}},91415:function(mt,Ke,te){"use strict";te.d(Ke,{BU:function(){return ge},Dj:function(){return ee},gH:function(){return be},vp:function(){return pe}});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 pe(){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}},83090:function(mt,Ke,te){"use strict";te.d(Ke,{G:function(){return Se},t:function(){return pe}});var ee=te(7062),ge=te.n(ee);const be=null;function pe(fe,oe){let de=ge().get("__ec");de||(de={}),de[fe]=oe,ge().set("__ec",de)}function Se(fe,oe){let de=ge().get("__ec");return de?de[fe]===void 0?oe:de[fe]:oe}},94855:function(mt,Ke,te){"use strict";te.d(Ke,{Z:function(){return Kr}});class ee{static install(){Object.setPrototypeOf=Object.setPrototypeOf||function(ue,ve){return ue.__proto__=ve,ue},Object.assign=Object.assign||function(ue){if(ue==null)throw new TypeError("Cannot convert undefined or null to object");let ve=Object(ue);for(let Pe=1;Pe ${ve}`;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(ue,ve){(!ue||Se.FORCE_GLOBAL_TAG)&&(ue=Se.GLOBAL_TAG);let Pe=`[${ue}] > ${ve}`;Se.ENABLE_CALLBACK&&Se.emitter.emit("log","info",Pe),Se.ENABLE_INFO&&(console.info?console.info(Pe):console.log(Pe))}static w(ue,ve){(!ue||Se.FORCE_GLOBAL_TAG)&&(ue=Se.GLOBAL_TAG);let Pe=`[${ue}] > ${ve}`;Se.ENABLE_CALLBACK&&Se.emitter.emit("log","warn",Pe),Se.ENABLE_WARN&&(console.warn?console.warn(Pe):console.log(Pe))}static d(ue,ve){(!ue||Se.FORCE_GLOBAL_TAG)&&(ue=Se.GLOBAL_TAG);let Pe=`[${ue}] > ${ve}`;Se.ENABLE_CALLBACK&&Se.emitter.emit("log","debug",Pe),Se.ENABLE_DEBUG&&(console.debug?console.debug(Pe):console.log(Pe))}static v(ue,ve){(!ue||Se.FORCE_GLOBAL_TAG)&&(ue=Se.GLOBAL_TAG);let Pe=`[${ue}] > ${ve}`;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(pe());var fe=Se;class oe{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(ue){this._firstCheckpoint===0?(this._firstCheckpoint=this._now(),this._lastCheckpoint=this._firstCheckpoint,this._intervalBytes+=ue,this._totalBytes+=ue):this._now()-this._lastCheckpoint<1e3?(this._intervalBytes+=ue,this._totalBytes+=ue):(this._lastSecondBytes=this._intervalBytes,this._intervalBytes=ue,this._totalBytes+=ue,this._lastCheckpoint=this._now())}get currentKBps(){this.addBytes(0);let ue=(this._now()-this._lastCheckpoint)/1e3;return ue==0&&(ue=1),this._intervalBytes/ue/1024}get lastSecondKBps(){return this.addBytes(0),this._lastSecondBytes!==0?this._lastSecondBytes/1024:this._now()-this._lastCheckpoint>=500?this.currentKBps:0}get averageKBps(){let ue=(this._now()-this._firstCheckpoint)/1e3;return this._totalBytes/ue/1024}}var de=oe;class le{constructor(ue){this._message=ue}get name(){return"RuntimeException"}get message(){return this._message}toString(){return this.name+": "+this.message}}class me extends le{constructor(ue){super(ue)}get name(){return"IllegalStateException"}}class ae extends le{constructor(ue){super(ue)}get name(){return"InvalidArgumentException"}}class he extends le{constructor(ue){super(ue)}get name(){return"NotImplementedException"}}const ie={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(ue){this._type=ue||"undefined",this._status=ie.kIdle,this._needStash=!1,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}destroy(){this._status=ie.kIdle,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}isWorking(){return this._status===ie.kConnecting||this._status===ie.kBuffering}get type(){return this._type}get status(){return this._status}get needStashBuffer(){return this._needStash}get onContentLengthKnown(){return this._onContentLengthKnown}set onContentLengthKnown(ue){this._onContentLengthKnown=ue}get onURLRedirect(){return this._onURLRedirect}set onURLRedirect(ue){this._onURLRedirect=ue}get onDataArrival(){return this._onDataArrival}set onDataArrival(ue){this._onDataArrival=ue}get onError(){return this._onError}set onError(ue){this._onError=ue}get onComplete(){return this._onComplete}set onComplete(ue){this._onComplete=ue}open(ue,ve){throw new he("Unimplemented abstract function!")}abort(){throw new he("Unimplemented abstract function!")}}let y={};function E(){let Ut=self.navigator.userAgent.toLowerCase(),ue=/(edge)\/([\w.]+)/.exec(Ut)||/(opr)[\/]([\w.]+)/.exec(Ut)||/(chrome)[ \/]([\w.]+)/.exec(Ut)||/(iemobile)[\/]([\w.]+)/.exec(Ut)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(Ut)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(Ut)||/(webkit)[ \/]([\w.]+)/.exec(Ut)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(Ut)||/(msie) ([\w.]+)/.exec(Ut)||Ut.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(Ut)||Ut.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec(Ut)||[],ve=/(ipad)/.exec(Ut)||/(ipod)/.exec(Ut)||/(windows phone)/.exec(Ut)||/(iphone)/.exec(Ut)||/(kindle)/.exec(Ut)||/(android)/.exec(Ut)||/(windows)/.exec(Ut)||/(mac)/.exec(Ut)||/(linux)/.exec(Ut)||/(cros)/.exec(Ut)||[],Pe={browser:ue[5]||ue[3]||ue[1]||"",version:ue[2]||ue[4]||"0",majorVersion:ue[4]||ue[2]||"0",platform:ve[0]||""},xe={};if(Pe.browser){xe[Pe.browser]=!0;let ke=Pe.majorVersion.split(".");xe.version={major:parseInt(Pe.majorVersion,10),string:Pe.version},ke.length>1&&(xe.version.minor=parseInt(ke[1],10)),ke.length>2&&(xe.version.build=parseInt(ke[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 ke="msie";Pe.browser=ke,xe[ke]=!0}if(xe.edge){delete xe.edge;let ke="msedge";Pe.browser=ke,xe[ke]=!0}if(xe.opr){let ke="opera";Pe.browser=ke,xe[ke]=!0}if(xe.safari&&xe.android){let ke="android";Pe.browser=ke,xe[ke]=!0}xe.name=Pe.browser,xe.platform=Pe.platform;for(let ke in y)y.hasOwnProperty(ke)&&delete y[ke];Object.assign(y,xe)}E();var b=y;class x extends a{static isSupported(){try{let ue=b.msedge&&b.version.minor>=15048,ve=b.msedge?ue:!0;return self.fetch&&self.ReadableStream&&ve}catch(ue){return!1}}constructor(ue,ve){super("fetch-stream-loader"),this.TAG="FetchStreamLoader",this._seekHandler=ue,this._config=ve,this._needStash=!0,this._requestAbort=!1,this._contentLength=null,this._receivedLength=0}destroy(){this.isWorking()&&this.abort(),super.destroy()}open(ue,ve){this._dataSource=ue,this._range=ve;let Pe=ue.url;this._config.reuseRedirectedURL&&ue.redirectedURL!=null&&(Pe=ue.redirectedURL);let xe=this._seekHandler.getConfig(Pe,ve),ke=new self.Headers;if(typeof xe.headers=="object"){let dt=xe.headers;for(let tn in dt)dt.hasOwnProperty(tn)&&ke.append(tn,dt[tn])}let tt={method:"GET",headers:ke,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if(typeof this._config.headers=="object")for(let dt in this._config.headers)ke.append(dt,this._config.headers[dt]);ue.cors===!1&&(tt.mode="same-origin"),ue.withCredentials&&(tt.credentials="include"),ue.referrerPolicy&&(tt.referrerPolicy=ue.referrerPolicy),this._status=ie.kConnecting,self.fetch(xe.url,tt).then(dt=>{if(this._requestAbort){this._requestAbort=!1,this._status=ie.kIdle;return}if(dt.ok&&dt.status>=200&&dt.status<=299){if(dt.url!==xe.url&&this._onURLRedirect){let Kt=this._seekHandler.removeURLParameters(dt.url);this._onURLRedirect(Kt)}let tn=dt.headers.get("Content-Length");return tn!=null&&(this._contentLength=parseInt(tn),this._contentLength!==0&&this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)),this._pump.call(this,dt.body.getReader())}else if(this._status=ie.kError,this._onError)this._onError(ne.HTTP_STATUS_CODE_INVALID,{code:dt.status,msg:dt.statusText});else throw new le("FetchStreamLoader: Http code invalid, "+dt.status+" "+dt.statusText)}).catch(dt=>{if(this._status=ie.kError,this._onError)this._onError(ne.EXCEPTION,{code:-1,msg:dt.message});else throw dt})}abort(){this._requestAbort=!0}_pump(ue){return ue.read().then(ve=>{if(ve.done)if(this._contentLength!==null&&this._receivedLength{if(ve.code===11&&b.msedge)return;this._status=ie.kError;let Pe=0,xe=null;if((ve.code===19||ve.message==="network error")&&(this._contentLength===null||this._contentLength!==null&&this._receivedLength299))if(this._status=ie.kError,this._onError)this._onError(ne.HTTP_STATUS_CODE_INVALID,{code:ve.status,msg:ve.statusText});else throw new le("MozChunkedLoader: Http code invalid, "+ve.status+" "+ve.statusText);else this._status=ie.kBuffering}}_onProgress(ue){if(this._status===ie.kError)return;this._contentLength===null&&ue.total!==null&&ue.total!==0&&(this._contentLength=ue.total,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength));let ve=ue.target.response,Pe=this._range.from+this._receivedLength;this._receivedLength+=ve.byteLength,this._onDataArrival&&this._onDataArrival(ve,Pe,this._receivedLength)}_onLoadEnd(ue){if(this._requestAbort===!0){this._requestAbort=!1;return}else if(this._status===ie.kError)return;this._status=ie.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1)}_onXhrError(ue){this._status=ie.kError;let ve=0,Pe=null;if(this._contentLength&&ue.loaded=200&&ve.status<=299){if(this._status=LoaderStatus.kBuffering,ve.responseURL!=null){let xe=this._seekHandler.removeURLParameters(ve.responseURL);ve.responseURL!==this._currentRequestURL&&xe!==this._currentRedirectedURL&&(this._currentRedirectedURL=xe,this._onURLRedirect&&this._onURLRedirect(xe))}let Pe=ve.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:ve.status,msg:ve.statusText});else throw new RuntimeException("MSStreamLoader: Http code invalid, "+ve.status+" "+ve.statusText);else if(ve.readyState===3&&ve.status>=200&&ve.status<=299){this._status=LoaderStatus.kBuffering;let Pe=ve.response;this._reader.readAsArrayBuffer(Pe)}}_xhrOnError(ue){this._status=LoaderStatus.kError;let ve=LoaderErrors.EXCEPTION,Pe={code:-1,msg:ue.constructor.name+" "+ue.type};if(this._onError)this._onError(ve,Pe);else throw new RuntimeException(Pe.msg)}_msrOnProgress(ue){let Pe=ue.target.result;if(Pe==null){this._doReconnectIfNeeded();return}let xe=Pe.slice(this._lastTimeBufferSize);this._lastTimeBufferSize=Pe.byteLength;let ke=this._totalRange.from+this._receivedLength;this._receivedLength+=xe.byteLength,this._onDataArrival&&this._onDataArrival(xe,ke,this._receivedLength),Pe.byteLength>=this._bufferLimit&&(Log.v(this.TAG,`MSStream buffer exceeded max size near ${ke+xe.byteLength}, reconnecting...`),this._doReconnectIfNeeded())}_doReconnectIfNeeded(){if(this._contentLength==null||this._receivedLength=this._contentLength&&(Pe=this._range.from+this._contentLength-1),this._currentRequestRange={from:ve,to:Pe},this._internalOpen(this._dataSource,this._currentRequestRange)}_internalOpen(ue,ve){this._lastTimeLoaded=0;let Pe=ue.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?Pe=this._currentRedirectedURL:ue.redirectedURL!=null&&(Pe=ue.redirectedURL));let xe=this._seekHandler.getConfig(Pe,ve);this._currentRequestURL=xe.url;let ke=this._xhr=new XMLHttpRequest;if(ke.open("GET",xe.url,!0),ke.responseType="arraybuffer",ke.onreadystatechange=this._onReadyStateChange.bind(this),ke.onprogress=this._onProgress.bind(this),ke.onload=this._onLoad.bind(this),ke.onerror=this._onXhrError.bind(this),ue.withCredentials&&(ke.withCredentials=!0),typeof xe.headers=="object"){let tt=xe.headers;for(let dt in tt)tt.hasOwnProperty(dt)&&ke.setRequestHeader(dt,tt[dt])}if(typeof this._config.headers=="object"){let tt=this._config.headers;for(let dt in tt)tt.hasOwnProperty(dt)&&ke.setRequestHeader(dt,tt[dt])}ke.send()}abort(){this._requestAbort=!0,this._internalAbort(),this._status=ie.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(ue){let ve=ue.target;if(ve.readyState===2){if(ve.responseURL!=null){let Pe=this._seekHandler.removeURLParameters(ve.responseURL);ve.responseURL!==this._currentRequestURL&&Pe!==this._currentRedirectedURL&&(this._currentRedirectedURL=Pe,this._onURLRedirect&&this._onURLRedirect(Pe))}if(ve.status>=200&&ve.status<=299){if(this._waitForTotalLength)return;this._status=ie.kBuffering}else if(this._status=ie.kError,this._onError)this._onError(ne.HTTP_STATUS_CODE_INVALID,{code:ve.status,msg:ve.statusText});else throw new le("RangeLoader: Http code invalid, "+ve.status+" "+ve.statusText)}}_onProgress(ue){if(this._status===ie.kError)return;if(this._contentLength===null){let Pe=!1;if(this._waitForTotalLength){this._waitForTotalLength=!1,this._totalLengthReceived=!0,Pe=!0;let xe=ue.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 ve=ue.loaded-this._lastTimeLoaded;this._lastTimeLoaded=ue.loaded,this._speedSampler.addBytes(ve)}_normalizeSpeed(ue){let ve=this._chunkSizeKBList,Pe=ve.length-1,xe=0,ke=0,tt=Pe;if(ue=ve[xe]&&ue=3&&(ve=this._speedSampler.currentKBps)),ve!==0){let tt=this._normalizeSpeed(ve);this._currentSpeedNormalized!==tt&&(this._currentSpeedNormalized=tt,this._currentChunkSizeKB=tt)}let Pe=ue.target.response,xe=this._range.from+this._receivedLength;this._receivedLength+=Pe.byteLength;let ke=!1;this._contentLength!=null&&this._receivedLength0&&this._receivedLength{this._dispatchArrayBuffer(ve.result)},ve.readAsArrayBuffer(ue.data)}else{this._status=ie.kError;let ve={code:-1,msg:"Unsupported WebSocket message type: "+ue.data.constructor.name};if(this._onError)this._onError(ne.EXCEPTION,ve);else throw new le(ve.msg)}}_dispatchArrayBuffer(ue){let ve=ue,Pe=this._receivedLength;this._receivedLength+=ve.byteLength,this._onDataArrival&&this._onDataArrival(ve,Pe,this._receivedLength)}_onWebSocketError(ue){this._status=ie.kError;let ve={code:ue.code,msg:ue.message};if(this._onError)this._onError(ne.EXCEPTION,ve);else throw new le(ve.msg)}}var je=Ee;class Le{constructor(ue){this._zeroStart=ue||!1}getConfig(ue,ve){let Pe={};if(ve.from!==0||ve.to!==-1){let xe;ve.to!==-1?xe=`bytes=${ve.from.toString()}-${ve.to.toString()}`:xe=`bytes=${ve.from.toString()}-`,Pe.Range=xe}else this._zeroStart&&(Pe.Range="bytes=0-");return{url:ue,headers:Pe}}removeURLParameters(ue){return ue}}var ht=Le;class Ye{constructor(ue,ve){this._startName=ue,this._endName=ve}getConfig(ue,ve){let Pe=ue;if(ve.from!==0||ve.to!==-1){let xe=!0;Pe.indexOf("?")===-1&&(Pe+="?",xe=!1),xe&&(Pe+="&"),Pe+=`${this._startName}=${ve.from.toString()}`,ve.to!==-1&&(Pe+=`&${this._endName}=${ve.to.toString()}`)}return{url:Pe,headers:{}}}removeURLParameters(ue){let ve=ue.split("?")[0],Pe,xe=ue.indexOf("?");xe!==-1&&(Pe=ue.substring(xe+1));let ke="";if(Pe!=null&&Pe.length>0){let tt=Pe.split("&");for(let dt=0;dt0;tn[0]!==this._startName&&tn[0]!==this._endName&&(Kt&&(ke+="&"),ke+=tt[dt])}}return ke.length===0?ve:ve+"?"+ke}}var vt=Ye;class we{constructor(ue,ve,Pe){this.TAG="IOController",this._config=ve,this._extraData=Pe,this._stashInitialSize=1024*384,ve.stashInitialSize!=null&&ve.stashInitialSize>0&&(this._stashInitialSize=ve.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,ve.enableStashBuffer===!1&&(this._enableStash=!1),this._loader=null,this._loaderClass=null,this._seekHandler=null,this._dataSource=ue,this._isWebSocketURL=/wss?:\/\/(.+?)/.test(ue.url),this._refTotalLength=ue.filesize?ue.filesize:null,this._totalLength=this._refTotalLength,this._fullRequestFlag=!1,this._currentRange=null,this._redirectedURL=null,this._speedNormalized=0,this._speedSampler=new de,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(ue){this._extraData=ue}get onDataArrival(){return this._onDataArrival}set onDataArrival(ue){this._onDataArrival=ue}get onSeeked(){return this._onSeeked}set onSeeked(ue){this._onSeeked=ue}get onError(){return this._onError}set onError(ue){this._onError=ue}get onComplete(){return this._onComplete}set onComplete(ue){this._onComplete=ue}get onRedirect(){return this._onRedirect}set onRedirect(ue){this._onRedirect=ue}get onRecoveredEarlyEof(){return this._onRecoveredEarlyEof}set onRecoveredEarlyEof(ue){this._onRecoveredEarlyEof=ue}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 ue=this._config;if(ue.seekType==="range")this._seekHandler=new ht(this._config.rangeLoadZeroStart);else if(ue.seekType==="param"){let ve=ue.seekParamStart||"bstart",Pe=ue.seekParamEnd||"bend";this._seekHandler=new vt(ve,Pe)}else if(ue.seekType==="custom"){if(typeof ue.customSeekHandler!="function")throw new ae("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new ue.customSeekHandler}else throw new ae(`Invalid seekType in config: ${ue.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(ue){this._currentRange={from:0,to:-1},ue&&(this._currentRange.from=ue),this._speedSampler.reset(),ue||(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 ue=this._resumeFrom;this._resumeFrom=0,this._internalSeek(ue,!0)}}seek(ue){this._paused=!1,this._stashUsed=0,this._stashByteStart=0,this._internalSeek(ue,!0)}_internalSeek(ue,ve){this._loader.isWorking()&&this._loader.abort(),this._flushStashBuffer(ve),this._loader.destroy(),this._loader=null;let Pe={from:ue,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(ue){if(!ue||typeof ue!="string"||ue.length===0)throw new ae("Url must be a non-empty string!");this._dataSource.url=ue}_expandBuffer(ue){let ve=this._stashSize;for(;ve+1024*1024*10){let xe=new Uint8Array(this._stashBuffer,0,this._stashUsed);new Uint8Array(Pe,0,ve).set(xe,0)}this._stashBuffer=Pe,this._bufferSize=ve}_normalizeSpeed(ue){let ve=this._speedNormalizeList,Pe=ve.length-1,xe=0,ke=0,tt=Pe;if(ue=ve[xe]&&ue=512&&ue<=1024?ve=Math.floor(ue*1.5):ve=ue*2,ve>8192&&(ve=8192);let Pe=ve*1024+1024*1024*1;this._bufferSize0){let tt=this._stashBuffer.slice(0,this._stashUsed),dt=this._dispatchChunks(tt,this._stashByteStart);if(dt0){let tn=new Uint8Array(tt,dt);ke.set(tn,0),this._stashUsed=tn.byteLength,this._stashByteStart+=dt}}else this._stashUsed=0,this._stashByteStart+=dt;this._stashUsed+ue.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+ue.byteLength),ke=new Uint8Array(this._stashBuffer,0,this._bufferSize)),ke.set(new Uint8Array(ue),this._stashUsed),this._stashUsed+=ue.byteLength}else{let tt=this._dispatchChunks(ue,ve);if(ttthis._bufferSize&&(this._expandBuffer(dt),ke=new Uint8Array(this._stashBuffer,0,this._bufferSize)),ke.set(new Uint8Array(ue,tt),0),this._stashUsed+=dt,this._stashByteStart=ve+tt}}}else if(this._stashUsed===0){let ke=this._dispatchChunks(ue,ve);if(kethis._bufferSize&&this._expandBuffer(tt),new Uint8Array(this._stashBuffer,0,this._bufferSize).set(new Uint8Array(ue,ke),0),this._stashUsed+=tt,this._stashByteStart=ve+ke}}else{this._stashUsed+ue.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+ue.byteLength);let ke=new Uint8Array(this._stashBuffer,0,this._bufferSize);ke.set(new Uint8Array(ue),this._stashUsed),this._stashUsed+=ue.byteLength;let tt=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart);if(tt0){let dt=new Uint8Array(this._stashBuffer,tt);ke.set(dt,0)}this._stashUsed-=tt,this._stashByteStart+=tt}}_flushStashBuffer(ue){if(this._stashUsed>0){let ve=this._stashBuffer.slice(0,this._stashUsed),Pe=this._dispatchChunks(ve,this._stashByteStart),xe=ve.byteLength-Pe;if(Pe0){let ke=new Uint8Array(this._stashBuffer,0,this._bufferSize),tt=new Uint8Array(ve,Pe);ke.set(tt,0),this._stashUsed=tt.byteLength,this._stashByteStart+=Pe}return 0}return this._stashUsed=0,this._stashByteStart=0,xe}return 0}_onLoaderComplete(ue,ve){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)}_onLoaderError(ue,ve){switch(fe.e(this.TAG,`Loader error, code = ${ve.code}, msg = ${ve.msg}`),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,ue=ne.UNRECOVERABLE_EARLY_EOF),ue){case ne.EARLY_EOF:{if(!this._config.isLive&&this._totalLength){let Pe=this._currentRange.to+1;Pe0){let ve=Bt.getConfig();ue.emit("change",ve)}}static registerListener(ue){Bt.emitter.addListener("change",ue)}static removeListener(ue){Bt.emitter.removeListener("change",ue)}static addLogListener(ue){fe.emitter.addListener("log",ue),fe.emitter.listenerCount("log")>0&&(fe.ENABLE_CALLBACK=!0,Bt._notifyChange())}static removeLogListener(ue){fe.emitter.removeListener("log",ue),fe.emitter.listenerCount("log")===0&&(fe.ENABLE_CALLBACK=!1,Bt._notifyChange())}}Bt.emitter=new(pe());var rt=Bt;class Xe{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 ue=this.hasAudio===!1||this.hasAudio===!0&&this.audioCodec!=null&&this.audioSampleRate!=null&&this.audioChannelCount!=null,ve=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&&ue&&ve}isSeekable(){return this.hasKeyframesIndex===!0}getNearestKeyframe(ue){if(this.keyframesIndex==null)return null;let ve=this.keyframesIndex,Pe=this._search(ve.times,ue);return{index:Pe,milliseconds:ve.times[Pe],fileposition:ve.filepositions[Pe]}}_search(ue,ve){let Pe=0,xe=ue.length-1,ke=0,tt=0,dt=xe;for(ve=ue[ke]&&ve=128){ue.push(String.fromCharCode(ke&65535)),Pe+=2;continue}}}else if(ve[Pe]<240){if(zt(ve,Pe,2)){let ke=(ve[Pe]&15)<<12|(ve[Pe+1]&63)<<6|ve[Pe+2]&63;if(ke>=2048&&(ke&63488)!==55296){ue.push(String.fromCharCode(ke&65535)),Pe+=3;continue}}}else if(ve[Pe]<248&&zt(ve,Pe,3)){let ke=(ve[Pe]&7)<<18|(ve[Pe+1]&63)<<12|(ve[Pe+2]&63)<<6|ve[Pe+3]&63;if(ke>65536&&ke<1114112){ke-=65536,ue.push(String.fromCharCode(ke>>>10|55296)),ue.push(String.fromCharCode(ke&1023|56320)),Pe+=4;continue}}}ue.push("\uFFFD"),++Pe}return ue.join("")}var an=Et;let $e=function(){let Ut=new ArrayBuffer(2);return new DataView(Ut).setInt16(0,256,!0),new Int16Array(Ut)[0]===256}();class yt{static parseScriptData(ue,ve,Pe){let xe={};try{let ke=yt.parseValue(ue,ve,Pe),tt=yt.parseValue(ue,ve+ke.size,Pe-ke.size);xe[ke.data]=tt.data}catch(ke){fe.e("AMF",ke.toString())}return xe}static parseObject(ue,ve,Pe){if(Pe<3)throw new me("Data not enough when parse ScriptDataObject");let xe=yt.parseString(ue,ve,Pe),ke=yt.parseValue(ue,ve+xe.size,Pe-xe.size),tt=ke.objectEnd;return{data:{name:xe.data,value:ke.data},size:xe.size+ke.size,objectEnd:tt}}static parseVariable(ue,ve,Pe){return yt.parseObject(ue,ve,Pe)}static parseString(ue,ve,Pe){if(Pe<2)throw new me("Data not enough when parse String");let ke=new DataView(ue,ve,Pe).getUint16(0,!$e),tt;return ke>0?tt=an(new Uint8Array(ue,ve+2,ke)):tt="",{data:tt,size:2+ke}}static parseLongString(ue,ve,Pe){if(Pe<4)throw new me("Data not enough when parse LongString");let ke=new DataView(ue,ve,Pe).getUint32(0,!$e),tt;return ke>0?tt=an(new Uint8Array(ue,ve+4,ke)):tt="",{data:tt,size:4+ke}}static parseDate(ue,ve,Pe){if(Pe<10)throw new me("Data size invalid when parse Date");let xe=new DataView(ue,ve,Pe),ke=xe.getFloat64(0,!$e),tt=xe.getInt16(8,!$e);return ke+=tt*60*1e3,{data:new Date(ke),size:10}}static parseValue(ue,ve,Pe){if(Pe<1)throw new me("Data not enough when parse Value");let xe=new DataView(ue,ve,Pe),ke=1,tt=xe.getUint8(0),dt,tn=!1;try{switch(tt){case 0:dt=xe.getFloat64(1,!$e),ke+=8;break;case 1:{dt=!!xe.getUint8(1),ke+=1;break}case 2:{let Kt=yt.parseString(ue,ve+1,Pe-1);dt=Kt.data,ke+=Kt.size;break}case 3:{dt={};let Kt=0;for((xe.getUint32(Pe-4,!$e)&16777215)===9&&(Kt=3);ke32)throw new ae("ExpGolomb: readBits() bits exceeded max 32bits!");if(ue<=this._current_word_bits_left){let tt=this._current_word>>>32-ue;return this._current_word<<=ue,this._current_word_bits_left-=ue,tt}let ve=this._current_word_bits_left?this._current_word:0;ve=ve>>>32-this._current_word_bits_left;let Pe=ue-this._current_word_bits_left;this._fillCurrentWord();let xe=Math.min(Pe,this._current_word_bits_left),ke=this._current_word>>>32-xe;return this._current_word<<=xe,this._current_word_bits_left-=xe,ve=ve<>>ue)return this._current_word<<=ue,this._current_word_bits_left-=ue,ue;return this._fillCurrentWord(),ue+this._skipLeadingZero()}readUEG(){let ue=this._skipLeadingZero();return this.readBits(ue+1)-1}readSEG(){let ue=this.readUEG();return ue&1?ue+1>>>1:-1*(ue>>>1)}}var $t=on;class st{static _ebsp2rbsp(ue){let ve=ue,Pe=ve.byteLength,xe=new Uint8Array(Pe),ke=0;for(let tt=0;tt=2&&ve[tt]===3&&ve[tt-1]===0&&ve[tt-2]===0||(xe[ke]=ve[tt],ke++);return new Uint8Array(xe.buffer,0,ke)}static parseSPS(ue){let ve=st._ebsp2rbsp(ue),Pe=new $t(ve);Pe.readByte();let xe=Pe.readByte();Pe.readByte();let ke=Pe.readByte();Pe.readUEG();let tt=st.getProfileString(xe),dt=st.getLevelString(ke),tn=1,Kt=420,_t=[0,420,422,444],ft=8;if((xe===100||xe===110||xe===122||xe===244||xe===44||xe===83||xe===86||xe===118||xe===128||xe===138||xe===144)&&(tn=Pe.readUEG(),tn===3&&Pe.readBits(1),tn<=3&&(Kt=_t[tn]),ft=Pe.readUEG()+8,Pe.readUEG(),Pe.readBits(1),Pe.readBool())){let Nn=tn!==3?8:12;for(let pn=0;pn0&&Nn<16?(Qn=pn[Nn-1],mn=cr[Nn-1]):Nn===255&&(Qn=Pe.readByte()<<8|Pe.readByte(),mn=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 Nn=Pe.readBits(32),pn=Pe.readBits(32);ur=Pe.readBool(),rr=pn,ir=Nn*2,An=rr/ir}}let oi=1;(Qn!==1||mn!==1)&&(oi=Qn/mn);let wr=0,Tr=0;if(tn===0)wr=1,Tr=2-Tt;else{let Nn=tn===3?1:2,pn=tn===1?2:1;wr=Nn,Tr=pn*(2-Tt)}let kr=(Gt+1)*16,un=(2-Tt)*((Zt+1)*16);kr-=(kt+Xt)*wr,un-=(dn+xn)*Tr;let Sn=Math.ceil(kr*oi);return Pe.destroy(),Pe=null,{profile_string:tt,level_string:dt,bit_depth:ft,ref_frames:gt,chroma_format:Kt,chroma_format_string:st.getChromaFormatString(Kt),frame_rate:{fixed:ur,fps:An,fps_den:ir,fps_num:rr},sar_ratio:{width:Qn,height:mn},codec_size:{width:kr,height:un},present_size:{width:Sn,height:un}}}static _skipScalingList(ue,ve){let Pe=8,xe=8,ke=0;for(let tt=0;tt>>8&255|(Ut&255)<<8}function xt(Ut){return(Ut&4278190080)>>>24|(Ut&16711680)>>>8|(Ut&65280)<<8|(Ut&255)<<24}function Ie(Ut,ue){return Ut[ue]<<24|Ut[ue+1]<<16|Ut[ue+2]<<8|Ut[ue+3]}class Re{constructor(ue,ve){this.TAG="FLVDemuxer",this._config=ve,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null,this._dataOffset=ue.dataOffset,this._firstParse=!0,this._dispatch=!1,this._hasAudio=ue.hasAudioTrack,this._hasVideo=ue.hasVideoTrack,this._hasAudioFlagOverrided=!1,this._hasVideoFlagOverrided=!1,this._audioInitialMetadataDispatched=!1,this._videoInitialMetadataDispatched=!1,this._mediaInfo=new Ct,this._mediaInfo.hasAudio=this._hasAudio,this._mediaInfo.hasVideo=this._hasVideo,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._naluLengthSize=4,this._timestampBase=0,this._timescale=1e3,this._duration=0,this._durationOverrided=!1,this._referenceFrameRate={fixed:!0,fps:23.976,fps_num:23976,fps_den:1e3},this._flvSoundRateTable=[5500,11025,22050,44100,48e3],this._mpegSamplingRates=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],this._mpegAudioV10SampleRateTable=[44100,48e3,32e3,0],this._mpegAudioV20SampleRateTable=[22050,24e3,16e3,0],this._mpegAudioV25SampleRateTable=[11025,12e3,8e3,0],this._mpegAudioL1BitRateTable=[0,32,64,96,128,160,192,224,256,288,320,352,384,416,448,-1],this._mpegAudioL2BitRateTable=[0,32,48,56,64,80,96,112,128,160,192,224,256,320,384,-1],this._mpegAudioL3BitRateTable=[0,32,40,48,56,64,80,96,112,128,160,192,224,256,320,-1],this._videoTrack={type:"video",id:1,sequenceNumber:0,samples:[],length:0},this._audioTrack={type:"audio",id:2,sequenceNumber:0,samples:[],length:0},this._littleEndian=function(){let Pe=new ArrayBuffer(2);return new DataView(Pe).setInt16(0,256,!0),new Int16Array(Pe)[0]===256}()}destroy(){this._mediaInfo=null,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._videoTrack=null,this._audioTrack=null,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null}static probe(ue){let ve=new Uint8Array(ue),Pe={match:!1};if(ve[0]!==70||ve[1]!==76||ve[2]!==86||ve[3]!==1)return Pe;let xe=(ve[4]&4)>>>2!==0,ke=(ve[4]&1)!==0,tt=Ie(ve,5);return tt<9?Pe:{match:!0,consumed:tt,dataOffset:tt,hasAudioTrack:xe,hasVideoTrack:ke}}bindDataSource(ue){return ue.onDataArrival=this.parseChunks.bind(this),this}get onTrackMetadata(){return this._onTrackMetadata}set onTrackMetadata(ue){this._onTrackMetadata=ue}get onMediaInfo(){return this._onMediaInfo}set onMediaInfo(ue){this._onMediaInfo=ue}get onMetaDataArrived(){return this._onMetaDataArrived}set onMetaDataArrived(ue){this._onMetaDataArrived=ue}get onScriptDataArrived(){return this._onScriptDataArrived}set onScriptDataArrived(ue){this._onScriptDataArrived=ue}get onError(){return this._onError}set onError(ue){this._onError=ue}get onDataAvailable(){return this._onDataAvailable}set onDataAvailable(ue){this._onDataAvailable=ue}get timestampBase(){return this._timestampBase}set timestampBase(ue){this._timestampBase=ue}get overridedDuration(){return this._duration}set overridedDuration(ue){this._durationOverrided=!0,this._duration=ue,this._mediaInfo.duration=ue}set overridedHasAudio(ue){this._hasAudioFlagOverrided=!0,this._hasAudio=ue,this._mediaInfo.hasAudio=ue}set overridedHasVideo(ue){this._hasVideoFlagOverrided=!0,this._hasVideo=ue,this._mediaInfo.hasVideo=ue}resetMediaInfo(){this._mediaInfo=new Ct}_isInitialMetadataDispatched(){return this._hasAudio&&this._hasVideo?this._audioInitialMetadataDispatched&&this._videoInitialMetadataDispatched:this._hasAudio&&!this._hasVideo?this._audioInitialMetadataDispatched:!this._hasAudio&&this._hasVideo?this._videoInitialMetadataDispatched:!1}parseChunks(ue,ve){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(ve===0)if(ue.byteLength>13)Pe=Re.probe(ue).dataOffset;else return 0;for(this._firstParse&&(this._firstParse=!1,ve+Pe!==this._dataOffset&&fe.w(this.TAG,"First time parsing but chunk byteStart invalid!"),new DataView(ue,Pe).getUint32(0,!xe)!==0&&fe.w(this.TAG,"PrevTagSize0 !== 0 !!!"),Pe+=4);Peue.byteLength)break;let tt=ke.getUint8(0),dt=ke.getUint32(0,!xe)&16777215;if(Pe+11+dt+4>ue.byteLength)break;if(tt!==8&&tt!==9&&tt!==18){fe.w(this.TAG,`Unsupported tag type ${tt}, skipped`),Pe+=11+dt+4;continue}let tn=ke.getUint8(4),Kt=ke.getUint8(5),_t=ke.getUint8(6),ft=ke.getUint8(7),Ft=_t|Kt<<8|tn<<16|ft<<24;(ke.getUint32(7,!xe)&16777215)!==0&&fe.w(this.TAG,"Meet tag which has StreamID != 0!");let Gt=Pe+11;switch(tt){case 8:this._parseAudioData(ue,Gt,dt,Ft);break;case 9:this._parseVideoData(ue,Gt,dt,Ft,ve+Pe);break;case 18:this._parseScriptData(ue,Gt,dt);break}let Zt=ke.getUint32(11+dt,!xe);Zt!==11+dt&&fe.w(this.TAG,`Invalid PrevTagSize ${Zt}`),Pe+=11+dt+4}return this._isInitialMetadataDispatched()&&this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack),Pe}_parseScriptData(ue,ve,Pe){let xe=Lt.parseScriptData(ue,ve,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 ke=this._metadata.onMetaData;if(this._onMetaDataArrived&&this._onMetaDataArrived(Object.assign({},ke)),typeof ke.hasAudio=="boolean"&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=ke.hasAudio,this._mediaInfo.hasAudio=this._hasAudio),typeof ke.hasVideo=="boolean"&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=ke.hasVideo,this._mediaInfo.hasVideo=this._hasVideo),typeof ke.audiodatarate=="number"&&(this._mediaInfo.audioDataRate=ke.audiodatarate),typeof ke.videodatarate=="number"&&(this._mediaInfo.videoDataRate=ke.videodatarate),typeof ke.width=="number"&&(this._mediaInfo.width=ke.width),typeof ke.height=="number"&&(this._mediaInfo.height=ke.height),typeof ke.duration=="number"){if(!this._durationOverrided){let tt=Math.floor(ke.duration*this._timescale);this._duration=tt,this._mediaInfo.duration=tt}}else this._mediaInfo.duration=0;if(typeof ke.framerate=="number"){let tt=Math.floor(ke.framerate*1e3);if(tt>0){let dt=tt/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=dt,this._referenceFrameRate.fps_num=tt,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=dt}}if(typeof ke.keyframes=="object"){this._mediaInfo.hasKeyframesIndex=!0;let tt=ke.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(tt),ke.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=ke,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(ue){let ve=[],Pe=[];for(let xe=1;xe>>4;if(tn!==2&&tn!==10){this._onError(Ne.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+tn);return}let Kt=0,_t=(dt&12)>>>2;if(_t>=0&&_t<=4)Kt=this._flvSoundRateTable[_t];else{this._onError(Ne.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+_t);return}let ft=(dt&2)>>>1,Ft=dt&1,gt=this._audioMetadata,Gt=this._audioTrack;if(gt||(this._hasAudio===!1&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),gt=this._audioMetadata={},gt.type="audio",gt.id=Gt.id,gt.timescale=this._timescale,gt.duration=this._duration,gt.audioSampleRate=Kt,gt.channelCount=Ft===0?1:2),tn===10){let Zt=this._parseAACAudioData(ue,ve+1,Pe-1);if(Zt==null)return;if(Zt.packetType===0){gt.config&&fe.w(this.TAG,"Found another AudioSpecificConfig!");let Tt=Zt.data;gt.audioSampleRate=Tt.samplingRate,gt.channelCount=Tt.channelCount,gt.codec=Tt.codec,gt.originalCodec=Tt.originalCodec,gt.config=Tt.config,gt.refSampleDuration=1024/gt.audioSampleRate*gt.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",gt);let kt=this._mediaInfo;kt.audioCodec=gt.originalCodec,kt.audioSampleRate=gt.audioSampleRate,kt.audioChannelCount=gt.channelCount,kt.hasVideo?kt.videoCodec!=null&&(kt.mimeType='video/x-flv; codecs="'+kt.videoCodec+","+kt.audioCodec+'"'):kt.mimeType='video/x-flv; codecs="'+kt.audioCodec+'"',kt.isComplete()&&this._onMediaInfo(kt)}else if(Zt.packetType===1){let Tt=this._timestampBase+xe,kt={unit:Zt.data,length:Zt.data.byteLength,dts:Tt,pts:Tt};Gt.samples.push(kt),Gt.length+=Zt.data.length}else fe.e(this.TAG,`Flv: Unsupported AAC data type ${Zt.packetType}`)}else if(tn===2){if(!gt.codec){let Xt=this._parseMP3AudioData(ue,ve+1,Pe-1,!0);if(Xt==null)return;gt.audioSampleRate=Xt.samplingRate,gt.channelCount=Xt.channelCount,gt.codec=Xt.codec,gt.originalCodec=Xt.originalCodec,gt.refSampleDuration=1152/gt.audioSampleRate*gt.timescale,fe.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",gt);let dn=this._mediaInfo;dn.audioCodec=gt.codec,dn.audioSampleRate=gt.audioSampleRate,dn.audioChannelCount=gt.channelCount,dn.audioDataRate=Xt.bitRate,dn.hasVideo?dn.videoCodec!=null&&(dn.mimeType='video/x-flv; codecs="'+dn.videoCodec+","+dn.audioCodec+'"'):dn.mimeType='video/x-flv; codecs="'+dn.audioCodec+'"',dn.isComplete()&&this._onMediaInfo(dn)}let Zt=this._parseMP3AudioData(ue,ve+1,Pe-1,!1);if(Zt==null)return;let Tt=this._timestampBase+xe,kt={unit:Zt,length:Zt.byteLength,dts:Tt,pts:Tt};Gt.samples.push(kt),Gt.length+=Zt.length}}_parseAACAudioData(ue,ve,Pe){if(Pe<=1){fe.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!");return}let xe={},ke=new Uint8Array(ue,ve,Pe);return xe.packetType=ke[0],ke[0]===0?xe.data=this._parseAACAudioSpecificConfig(ue,ve+1,Pe-1):xe.data=ke.subarray(1),xe}_parseAACAudioSpecificConfig(ue,ve,Pe){let xe=new Uint8Array(ue,ve,Pe),ke=null,tt=0,dt=0,tn=null,Kt=0,_t=null;if(tt=dt=xe[0]>>>3,Kt=(xe[0]&7)<<1|xe[1]>>>7,Kt<0||Kt>=this._mpegSamplingRates.length){this._onError(Ne.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");return}let ft=this._mpegSamplingRates[Kt],Ft=(xe[1]&120)>>>3;if(Ft<0||Ft>=8){this._onError(Ne.FORMAT_ERROR,"Flv: AAC invalid channel configuration");return}tt===5&&(_t=(xe[1]&7)<<1|xe[2]>>>7,tn=(xe[2]&124)>>>2);let gt=self.navigator.userAgent.toLowerCase();return gt.indexOf("firefox")!==-1?Kt>=6?(tt=5,ke=new Array(4),_t=Kt-3):(tt=2,ke=new Array(2),_t=Kt):gt.indexOf("android")!==-1?(tt=2,ke=new Array(2),_t=Kt):(tt=5,_t=Kt,ke=new Array(4),Kt>=6?_t=Kt-3:Ft===1&&(tt=2,ke=new Array(2),_t=Kt)),ke[0]=tt<<3,ke[0]|=(Kt&15)>>>1,ke[1]=(Kt&15)<<7,ke[1]|=(Ft&15)<<3,tt===5&&(ke[1]|=(_t&15)>>>1,ke[2]=(_t&1)<<7,ke[2]|=8,ke[3]=0),{config:ke,samplingRate:ft,channelCount:Ft,codec:"mp4a.40."+tt,originalCodec:"mp4a.40."+dt}}_parseMP3AudioData(ue,ve,Pe,xe){if(Pe<4){fe.w(this.TAG,"Flv: Invalid MP3 packet, header missing!");return}let ke=this._littleEndian,tt=new Uint8Array(ue,ve,Pe),dt=null;if(xe){if(tt[0]!==255)return;let tn=tt[1]>>>3&3,Kt=(tt[1]&6)>>1,_t=(tt[2]&240)>>>4,ft=(tt[2]&12)>>>2,gt=(tt[3]>>>6&3)!==3?2:1,Gt=0,Zt=0,Tt=34,kt="mp3";switch(tn){case 0:Gt=this._mpegAudioV25SampleRateTable[ft];break;case 2:Gt=this._mpegAudioV20SampleRateTable[ft];break;case 3:Gt=this._mpegAudioV10SampleRateTable[ft];break}switch(Kt){case 1:Tt=34,_t>>4,tn=tt&15;if(tn!==7){this._onError(Ne.CODEC_UNSUPPORTED,`Flv: Unsupported codec in video frame: ${tn}`);return}this._parseAVCVideoPacket(ue,ve+1,Pe-1,xe,ke,dt)}_parseAVCVideoPacket(ue,ve,Pe,xe,ke,tt){if(Pe<4){fe.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");return}let dt=this._littleEndian,tn=new DataView(ue,ve,Pe),Kt=tn.getUint8(0),ft=(tn.getUint32(0,!dt)&16777215)<<8>>8;if(Kt===0)this._parseAVCDecoderConfigurationRecord(ue,ve+4,Pe-4);else if(Kt===1)this._parseAVCVideoData(ue,ve+4,Pe-4,xe,ke,tt,ft);else if(Kt!==2){this._onError(Ne.FORMAT_ERROR,`Flv: Invalid video packet type ${Kt}`);return}}_parseAVCDecoderConfigurationRecord(ue,ve,Pe){if(Pe<7){fe.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");return}let xe=this._videoMetadata,ke=this._videoTrack,tt=this._littleEndian,dt=new DataView(ue,ve,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=ke.id,xe.timescale=this._timescale,xe.duration=this._duration);let tn=dt.getUint8(0),Kt=dt.getUint8(1),_t=dt.getUint8(2),ft=dt.getUint8(3);if(tn!==1||Kt===0){this._onError(Ne.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord");return}if(this._naluLengthSize=(dt.getUint8(4)&3)+1,this._naluLengthSize!==3&&this._naluLengthSize!==4){this._onError(Ne.FORMAT_ERROR,`Flv: Strange NaluLengthSizeMinusOne: ${this._naluLengthSize-1}`);return}let Ft=dt.getUint8(5)&31;if(Ft===0){this._onError(Ne.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS");return}else Ft>1&&fe.w(this.TAG,`Flv: Strange AVCDecoderConfigurationRecord: SPS Count = ${Ft}`);let gt=6;for(let Zt=0;Zt1&&fe.w(this.TAG,`Flv: Strange AVCDecoderConfigurationRecord: PPS Count = ${Gt}`);gt++;for(let Zt=0;Zt=Pe){fe.w(this.TAG,`Malformed Nalu near timestamp ${Gt}, offset = ${Ft}, dataSize = ${Pe}`);break}let Tt=Kt.getUint32(Ft,!tn);if(gt===3&&(Tt>>>=8),Tt>Pe-gt){fe.w(this.TAG,`Malformed Nalus near timestamp ${Gt}, NaluSize > DataSize!`);return}let kt=Kt.getUint8(Ft+gt)&31;kt===5&&(Zt=!0);let Xt=new Uint8Array(ue,ve+Ft,gt+Tt),dn={type:kt,data:Xt};_t.push(dn),ft+=Xt.byteLength,Ft+=gt+Tt}if(_t.length){let Tt=this._videoTrack,kt={units:_t,length:ft,isKeyframe:Zt,dts:Gt,cts:dt,pts:Gt+dt};Zt&&(kt.fileposition=ke),Tt.samples.push(kt),Tt.length+=ft}}}var Ze=Re;class Be{static init(){Be.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 ve in Be.types)Be.types.hasOwnProperty(ve)&&(Be.types[ve]=[ve.charCodeAt(0),ve.charCodeAt(1),ve.charCodeAt(2),ve.charCodeAt(3)]);let ue=Be.constants={};ue.FTYP=new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]),ue.STSD_PREFIX=new Uint8Array([0,0,0,0,0,0,0,1]),ue.STTS=new Uint8Array([0,0,0,0,0,0,0,0]),ue.STSC=ue.STCO=ue.STTS,ue.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),ue.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]),ue.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]),ue.DREF=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),ue.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),ue.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}static box(ue){let ve=8,Pe=null,xe=Array.prototype.slice.call(arguments,1),ke=xe.length;for(let dt=0;dt>>24&255,Pe[1]=ve>>>16&255,Pe[2]=ve>>>8&255,Pe[3]=ve&255,Pe.set(ue,4);let tt=8;for(let dt=0;dt>>24&255,ue>>>16&255,ue>>>8&255,ue&255,ve>>>24&255,ve>>>16&255,ve>>>8&255,ve&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(ue){return Be.box(Be.types.trak,Be.tkhd(ue),Be.mdia(ue))}static tkhd(ue){let ve=ue.id,Pe=ue.duration,xe=ue.presentWidth,ke=ue.presentHeight;return Be.box(Be.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,ve>>>24&255,ve>>>16&255,ve>>>8&255,ve&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,ke>>>8&255,ke&255,0,0]))}static mdia(ue){return Be.box(Be.types.mdia,Be.mdhd(ue),Be.hdlr(ue),Be.minf(ue))}static mdhd(ue){let ve=ue.timescale,Pe=ue.duration;return Be.box(Be.types.mdhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,ve>>>24&255,ve>>>16&255,ve>>>8&255,ve&255,Pe>>>24&255,Pe>>>16&255,Pe>>>8&255,Pe&255,85,196,0,0]))}static hdlr(ue){let ve=null;return ue.type==="audio"?ve=Be.constants.HDLR_AUDIO:ve=Be.constants.HDLR_VIDEO,Be.box(Be.types.hdlr,ve)}static minf(ue){let ve=null;return ue.type==="audio"?ve=Be.box(Be.types.smhd,Be.constants.SMHD):ve=Be.box(Be.types.vmhd,Be.constants.VMHD),Be.box(Be.types.minf,ve,Be.dinf(),Be.stbl(ue))}static dinf(){return Be.box(Be.types.dinf,Be.box(Be.types.dref,Be.constants.DREF))}static stbl(ue){return Be.box(Be.types.stbl,Be.stsd(ue),Be.box(Be.types.stts,Be.constants.STTS),Be.box(Be.types.stsc,Be.constants.STSC),Be.box(Be.types.stsz,Be.constants.STSZ),Be.box(Be.types.stco,Be.constants.STCO))}static stsd(ue){return ue.type==="audio"?ue.codec==="mp3"?Be.box(Be.types.stsd,Be.constants.STSD_PREFIX,Be.mp3(ue)):Be.box(Be.types.stsd,Be.constants.STSD_PREFIX,Be.mp4a(ue)):Be.box(Be.types.stsd,Be.constants.STSD_PREFIX,Be.avc1(ue))}static mp3(ue){let ve=ue.channelCount,Pe=ue.audioSampleRate,xe=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,ve,0,16,0,0,0,0,Pe>>>8&255,Pe&255,0,0]);return Be.box(Be.types[".mp3"],xe)}static mp4a(ue){let ve=ue.channelCount,Pe=ue.audioSampleRate,xe=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,ve,0,16,0,0,0,0,Pe>>>8&255,Pe&255,0,0]);return Be.box(Be.types.mp4a,xe,Be.esds(ue))}static esds(ue){let ve=ue.config||[],Pe=ve.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(ve).concat([6,1,2]));return Be.box(Be.types.esds,xe)}static avc1(ue){let ve=ue.avcc,Pe=ue.codecWidth,xe=ue.codecHeight,ke=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 Be.box(Be.types.avc1,ke,Be.box(Be.types.avcC,ve))}static mvex(ue){return Be.box(Be.types.mvex,Be.trex(ue))}static trex(ue){let ve=ue.id,Pe=new Uint8Array([0,0,0,0,ve>>>24&255,ve>>>16&255,ve>>>8&255,ve&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return Be.box(Be.types.trex,Pe)}static moof(ue,ve){return Be.box(Be.types.moof,Be.mfhd(ue.sequenceNumber),Be.traf(ue,ve))}static mfhd(ue){let ve=new Uint8Array([0,0,0,0,ue>>>24&255,ue>>>16&255,ue>>>8&255,ue&255]);return Be.box(Be.types.mfhd,ve)}static traf(ue,ve){let Pe=ue.id,xe=Be.box(Be.types.tfhd,new Uint8Array([0,0,0,0,Pe>>>24&255,Pe>>>16&255,Pe>>>8&255,Pe&255])),ke=Be.box(Be.types.tfdt,new Uint8Array([0,0,0,0,ve>>>24&255,ve>>>16&255,ve>>>8&255,ve&255])),tt=Be.sdtp(ue),dt=Be.trun(ue,tt.byteLength+16+16+8+16+8+8);return Be.box(Be.types.traf,xe,ke,dt,tt)}static sdtp(ue){let ve=ue.samples||[],Pe=ve.length,xe=new Uint8Array(4+Pe);for(let ke=0;ke>>24&255,xe>>>16&255,xe>>>8&255,xe&255,ve>>>24&255,ve>>>16&255,ve>>>8&255,ve&255],0);for(let dt=0;dt>>24&255,tn>>>16&255,tn>>>8&255,tn&255,Kt>>>24&255,Kt>>>16&255,Kt>>>8&255,Kt&255,_t.isLeading<<2|_t.dependsOn,_t.isDependedOn<<6|_t.hasRedundancy<<4|_t.isNonSync,0,0,ft>>>24&255,ft>>>16&255,ft>>>8&255,ft&255],12+16*dt)}return Be.box(Be.types.trun,tt)}static mdat(ue){return Be.box(Be.types.mdat,ue)}}Be.init();var ze=Be;class it{static getSilentFrame(ue,ve){if(ue==="mp4a.40.2"){if(ve===1)return new Uint8Array([0,200,0,128,35,128]);if(ve===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(ve===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(ve===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(ve===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(ve===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(ve===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(ve===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(ve===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 Mt{constructor(ue,ve,Pe,xe,ke){this.dts=ue,this.pts=ve,this.duration=Pe,this.originalDts=xe,this.isSyncPoint=ke,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(ue){ue.isSyncPoint=!0,this.syncPoints.push(ue)}}class Dt{constructor(){this._list=[]}clear(){this._list=[]}appendArray(ue){let ve=this._list;ue.length!==0&&(ve.length>0&&ue[0].originalDts=ve[ke].dts&&ueve[xe].lastSample.originalDts&&ue=ve[xe].lastSample.originalDts&&(xe===ve.length-1||xe0&&(ke=this._searchNearestSegmentBefore(Pe.originalBeginDts)+1),this._lastAppendLocation=ke,this._list.splice(ke,0,Pe)}getLastSegmentBefore(ue){let ve=this._searchNearestSegmentBefore(ue);return ve>=0?this._list[ve]:null}getLastSampleBefore(ue){let ve=this.getLastSegmentBefore(ue);return ve!=null?ve.lastSample:null}getLastSyncPointBefore(ue){let ve=this._searchNearestSegmentBefore(ue),Pe=this._list[ve].syncPoints;for(;Pe.length===0&&ve>0;)ve--,Pe=this._list[ve].syncPoints;return Pe.length>0?Pe[Pe.length-1]:null}}class bt{constructor(ue){this.TAG="MP4Remuxer",this._config=ue,this._isLive=ue.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(ue){return ue.onDataAvailable=this.remux.bind(this),ue.onTrackMetadata=this._onTrackMetadataReceived.bind(this),this}get onInitSegment(){return this._onInitSegment}set onInitSegment(ue){this._onInitSegment=ue}get onMediaSegment(){return this._onMediaSegment}set onMediaSegment(ue){this._onMediaSegment=ue}insertDiscontinuity(){this._audioNextDts=this._videoNextDts=void 0}seek(ue){this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._videoSegmentInfoList.clear(),this._audioSegmentInfoList.clear()}remux(ue,ve){if(!this._onMediaSegment)throw new me("MP4Remuxer: onMediaSegment callback must be specificed!");this._dtsBaseInited||this._calculateDtsBase(ue,ve),this._remuxVideo(ve),this._remuxAudio(ue)}_onTrackMetadataReceived(ue,ve){let Pe=null,xe="mp4",ke=ve.codec;if(ue==="audio")this._audioMeta=ve,ve.codec==="mp3"&&this._mp3UseMpegAudio?(xe="mpeg",ke="",Pe=new Uint8Array):Pe=ze.generateInitSegment(ve);else if(ue==="video")this._videoMeta=ve,Pe=ze.generateInitSegment(ve);else return;if(!this._onInitSegment)throw new me("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(ue,{type:ue,data:Pe.buffer,codec:ke,container:`${ue}/${xe}`,mediaDuration:ve.duration})}_calculateDtsBase(ue,ve){this._dtsBaseInited||(ue.samples&&ue.samples.length&&(this._audioDtsBase=ue.samples[0].dts),ve.samples&&ve.samples.length&&(this._videoDtsBase=ve.samples[0].dts),this._dtsBase=Math.min(this._audioDtsBase,this._videoDtsBase),this._dtsBaseInited=!0)}flushStashedSamples(){let ue=this._videoStashedLastSample,ve=this._audioStashedLastSample,Pe={type:"video",id:1,sequenceNumber:0,samples:[],length:0};ue!=null&&(Pe.samples.push(ue),Pe.length=ue.length);let xe={type:"audio",id:2,sequenceNumber:0,samples:[],length:0};ve!=null&&(xe.samples.push(ve),xe.length=ve.length),this._videoStashedLastSample=null,this._audioStashedLastSample=null,this._remuxVideo(Pe,!0),this._remuxAudio(xe,!0)}_remuxAudio(ue,ve){if(this._audioMeta==null)return;let Pe=ue,xe=Pe.samples,ke,tt=-1,dt=-1,tn=-1,Kt=this._audioMeta.refSampleDuration,_t=this._audioMeta.codec==="mp3"&&this._mp3UseMpegAudio,ft=this._dtsBaseInited&&this._audioNextDts===void 0,Ft=!1;if(!xe||xe.length===0||xe.length===1&&!ve)return;let gt=0,Gt=null,Zt=0;_t?(gt=0,Zt=Pe.length):(gt=8,Zt=8+Pe.length);let Tt=null;if(xe.length>1&&(Tt=xe.pop(),Zt-=Tt.length),this._audioStashedLastSample!=null){let mn=this._audioStashedLastSample;this._audioStashedLastSample=null,xe.unshift(mn),Zt+=mn.length}Tt!=null&&(this._audioStashedLastSample=Tt);let kt=xe[0].dts-this._dtsBase;if(this._audioNextDts)ke=kt-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())ke=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&this._audioMeta.originalCodec!=="mp3"&&(Ft=!0);else{let mn=this._audioSegmentInfoList.getLastSampleBefore(kt);if(mn!=null){let An=kt-(mn.originalDts+mn.duration);An<=3&&(An=0);let ur=mn.dts+mn.duration+An;ke=kt-ur}else ke=0}if(Ft){let mn=kt-ke,An=this._videoSegmentInfoList.getLastSegmentBefore(kt);if(An!=null&&An.beginDts=1?Wt=Xt[Xt.length-1].duration:Wt=Math.floor(Kt);let oi=!1,wr=null;if(Wt>Kt*1.5&&this._audioMeta.codec!=="mp3"&&this._fillAudioTimestampGap&&!b.safari){oi=!0;let Tr=Math.abs(Wt-Kt),kr=Math.ceil(Tr/Kt),un=ir+Kt;fe.w(this.TAG,`Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync. dts: ${ir+Wt} ms, expected: ${ir+Math.round(Kt)} ms, delta: ${Math.round(Tr)} ms, generate: ${kr} frames`);let Sn=It.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);Sn==null&&(fe.w(this.TAG,`Unable to generate silent frame for ${this._audioMeta.originalCodec} with ${this._audioMeta.channelCount} channels, repeat last frame`),Sn=ur),wr=[];for(let pn=0;pn0){let Ar=wr[wr.length-1];Ar.duration=cr-Ar.dts}let fr={dts:cr,pts:cr,cts:0,unit:Sn,size:Sn.byteLength,duration:0,originalDts:rr,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}};wr.push(fr),Zt+=fr.size,un+=Kt}let Nn=wr[wr.length-1];Nn.duration=ir+Wt-Nn.dts,Wt=Math.round(Kt)}Xt.push({dts:ir,pts:ir,cts:0,unit:An.unit,size:An.unit.byteLength,duration:Wt,originalDts:rr,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),oi&&Xt.push.apply(Xt,wr)}_t?Gt=new Uint8Array(Zt):(Gt=new Uint8Array(Zt),Gt[0]=Zt>>>24&255,Gt[1]=Zt>>>16&255,Gt[2]=Zt>>>8&255,Gt[3]=Zt&255,Gt.set(ze.types.mdat,4));for(let mn=0;mn1&&(gt=xe.pop(),Ft-=gt.length),this._videoStashedLastSample!=null){let dn=this._videoStashedLastSample;this._videoStashedLastSample=null,xe.unshift(dn),Ft+=dn.length}gt!=null&&(this._videoStashedLastSample=gt);let Gt=xe[0].dts-this._dtsBase;if(this._videoNextDts)ke=Gt-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())ke=0;else{let dn=this._videoSegmentInfoList.getLastSampleBefore(Gt);if(dn!=null){let xn=Gt-(dn.originalDts+dn.duration);xn<=3&&(xn=0);let Fn=dn.dts+dn.duration+xn;ke=Gt-Fn}else ke=0}let Zt=new jt,Tt=[];for(let dn=0;dn=1?rr=Tt[Tt.length-1].duration:rr=Math.floor(this._videoMeta.refSampleDuration),Qn){let ir=new Mt(mn,ur,rr,xn.dts,!0);ir.fileposition=xn.fileposition,Zt.appendSyncPoint(ir)}Tt.push({dts:mn,pts:ur,cts:An,units:xn.units,size:xn.length,isKeyframe:Qn,duration:rr,originalDts:Fn,flags:{isLeading:0,dependsOn:Qn?2:1,isDependedOn:Qn?1:0,hasRedundancy:0,isNonSync:Qn?0:1}})}ft=new Uint8Array(Ft),ft[0]=Ft>>>24&255,ft[1]=Ft>>>16&255,ft[2]=Ft>>>8&255,ft[3]=Ft&255,ft.set(ze.types.mdat,4);for(let dn=0;dn{xe.timestampBase=Pe,Pe+=xe.duration,xe.cors=ue.cors,xe.withCredentials=ue.withCredentials,ve.referrerPolicy&&(xe.referrerPolicy=ve.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(ue,ve){this._emitter.addListener(ue,ve)}off(ue,ve){this._emitter.removeListener(ue,ve)}start(){this._loadSegment(0),this._enableStatisticsReporter()}_loadSegment(ue,ve){this._currentSegmentIndex=ue;let Pe=this._mediaDataSource.segments[ue],xe=this._ioctl=new Fe(Pe,this._config,ue);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),ve?this._demuxer.bindDataSource(this._ioctl):xe.onDataArrival=this._onInitChunkArrival.bind(this),xe.open(ve)}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(ue){if(this._mediaInfo==null||!this._mediaInfo.isSeekable())return;let ve=this._searchSegmentIndexContains(ue);if(ve===this._currentSegmentIndex){let Pe=this._mediaInfo.segments[ve];if(Pe==null)this._pendingSeekTime=ue;else{let xe=Pe.getNearestKeyframe(ue);this._remuxer.seek(xe.milliseconds),this._ioctl.seek(xe.fileposition),this._pendingResolveSeekPoint=xe.milliseconds}}else{let Pe=this._mediaInfo.segments[ve];if(Pe==null)this._pendingSeekTime=ue,this._internalAbort(),this._remuxer.seek(),this._remuxer.insertDiscontinuity(),this._loadSegment(ve);else{let xe=Pe.getNearestKeyframe(ue);this._internalAbort(),this._remuxer.seek(ue),this._remuxer.insertDiscontinuity(),this._demuxer.resetMediaInfo(),this._demuxer.timestampBase=this._mediaDataSource.segments[ve].timestampBase,this._loadSegment(ve,xe.fileposition),this._pendingResolveSeekPoint=xe.milliseconds,this._reportSegmentMediaInfo(ve)}}this._enableStatisticsReporter()}_searchSegmentIndexContains(ue){let ve=this._mediaDataSource.segments,Pe=ve.length-1;for(let xe=0;xe0)this._demuxer.bindDataSource(this._ioctl),this._demuxer.timestampBase=this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase,xe=this._demuxer.parseChunks(ue,ve);else if((Pe=Ze.probe(ue)).match){this._demuxer=new Ze(Pe,this._config),this._remuxer||(this._remuxer=new fn(this._config));let ke=this._mediaDataSource;ke.duration!=null&&!isNaN(ke.duration)&&(this._demuxer.overridedDuration=ke.duration),typeof ke.hasAudio=="boolean"&&(this._demuxer.overridedHasAudio=ke.hasAudio),typeof ke.hasVideo=="boolean"&&(this._demuxer.overridedHasVideo=ke.hasVideo),this._demuxer.timestampBase=ke.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(ue,ve)}else Pe=null,fe.e(this.TAG,"Non-FLV, Unsupported media type!"),Promise.resolve().then(()=>{this._internalAbort()}),this._emitter.emit(wt.DEMUX_ERROR,Ne.FORMAT_UNSUPPORTED,"Non-FLV, Unsupported media type"),xe=0;return xe}_onMediaInfo(ue){this._mediaInfo==null&&(this._mediaInfo=Object.assign({},ue),this._mediaInfo.keyframesIndex=null,this._mediaInfo.segments=[],this._mediaInfo.segmentCount=this._mediaDataSource.segments.length,Object.setPrototypeOf(this._mediaInfo,Ct.prototype));let ve=Object.assign({},ue);Object.setPrototypeOf(ve,Ct.prototype),this._mediaInfo.segments[this._currentSegmentIndex]=ve,this._reportSegmentMediaInfo(this._currentSegmentIndex),this._pendingSeekTime!=null&&Promise.resolve().then(()=>{let Pe=this._pendingSeekTime;this._pendingSeekTime=null,this.seek(Pe)})}_onMetaDataArrived(ue){this._emitter.emit(wt.METADATA_ARRIVED,ue)}_onScriptDataArrived(ue){this._emitter.emit(wt.SCRIPTDATA_ARRIVED,ue)}_onIOSeeked(){this._remuxer.insertDiscontinuity()}_onIOComplete(ue){let Pe=ue+1;Pe0&&Pe[0].originalDts===xe&&(xe=Pe[0].pts),this._emitter.emit(wt.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(ue){let ve=this._mediaInfo.segments[ue],Pe=Object.assign({},ve);Pe.duration=this._mediaInfo.duration,Pe.segmentCount=this._mediaInfo.segmentCount,delete Pe.segments,delete Pe.keyframesIndex,this._emitter.emit(wt.MEDIA_INFO,Pe)}_reportStatisticsInfo(){let ue={};ue.url=this._ioctl.currentURL,ue.hasRedirect=this._ioctl.hasRedirect,ue.hasRedirect&&(ue.redirectedURL=this._ioctl.currentRedirectedURL),ue.speed=this._ioctl.currentSpeed,ue.loaderType=this._ioctl.loaderType,ue.currentSegmentIndex=this._currentSegmentIndex,ue.totalSegmentCount=this._mediaDataSource.segments.length,this._emitter.emit(wt.STATISTICS_INFO,ue)}}var vn=yn,wn=function(Ut){let ue="TransmuxingWorker",ve=null,Pe=Zt.bind(this);ge.install(),Ut.addEventListener("message",function(Tt){switch(Tt.data.cmd){case"init":ve=new vn(Tt.data.param[0],Tt.data.param[1]),ve.on(wt.IO_ERROR,Ft.bind(this)),ve.on(wt.DEMUX_ERROR,gt.bind(this)),ve.on(wt.INIT_SEGMENT,xe.bind(this)),ve.on(wt.MEDIA_SEGMENT,ke.bind(this)),ve.on(wt.LOADING_COMPLETE,tt.bind(this)),ve.on(wt.RECOVERED_EARLY_EOF,dt.bind(this)),ve.on(wt.MEDIA_INFO,tn.bind(this)),ve.on(wt.METADATA_ARRIVED,Kt.bind(this)),ve.on(wt.SCRIPTDATA_ARRIVED,_t.bind(this)),ve.on(wt.STATISTICS_INFO,ft.bind(this)),ve.on(wt.RECOMMEND_SEEKPOINT,Gt.bind(this));break;case"destroy":ve&&(ve.destroy(),ve=null),Ut.postMessage({msg:"destroyed"});break;case"start":ve.start();break;case"stop":ve.stop();break;case"seek":ve.seek(Tt.data.param);break;case"pause":ve.pause();break;case"resume":ve.resume();break;case"logging_config":{let kt=Tt.data.param;rt.applyConfig(kt),kt.enableCallback===!0?rt.addLogListener(Pe):rt.removeLogListener(Pe);break}}});function xe(Tt,kt){let Xt={msg:wt.INIT_SEGMENT,data:{type:Tt,data:kt}};Ut.postMessage(Xt,[kt.data])}function ke(Tt,kt){let Xt={msg:wt.MEDIA_SEGMENT,data:{type:Tt,data:kt}};Ut.postMessage(Xt,[kt.data])}function tt(){let Tt={msg:wt.LOADING_COMPLETE};Ut.postMessage(Tt)}function dt(){let Tt={msg:wt.RECOVERED_EARLY_EOF};Ut.postMessage(Tt)}function tn(Tt){let kt={msg:wt.MEDIA_INFO,data:Tt};Ut.postMessage(kt)}function Kt(Tt){let kt={msg:wt.METADATA_ARRIVED,data:Tt};Ut.postMessage(kt)}function _t(Tt){let kt={msg:wt.SCRIPTDATA_ARRIVED,data:Tt};Ut.postMessage(kt)}function ft(Tt){let kt={msg:wt.STATISTICS_INFO,data:Tt};Ut.postMessage(kt)}function Ft(Tt,kt){Ut.postMessage({msg:wt.IO_ERROR,data:{type:Tt,info:kt}})}function gt(Tt,kt){Ut.postMessage({msg:wt.DEMUX_ERROR,data:{type:Tt,info:kt}})}function Gt(Tt){Ut.postMessage({msg:wt.RECOMMEND_SEEKPOINT,data:Tt})}function Zt(Tt,kt){Ut.postMessage({msg:"logcat_callback",data:{type:Tt,logcat:kt}})}};class Wn{constructor(ue,ve){if(this.TAG="Transmuxer",this._emitter=new(pe()),ve.enableWorker&&typeof Worker!="undefined")try{let Pe=te(82059);this._worker=Pe(wn),this._workerDestroying=!1,this._worker.addEventListener("message",this._onWorkerMessage.bind(this)),this._worker.postMessage({cmd:"init",param:[ue,ve]}),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 vn(ue,ve)}else this._controller=new vn(ue,ve);if(this._controller){let Pe=this._controller;Pe.on(wt.IO_ERROR,this._onIOError.bind(this)),Pe.on(wt.DEMUX_ERROR,this._onDemuxError.bind(this)),Pe.on(wt.INIT_SEGMENT,this._onInitSegment.bind(this)),Pe.on(wt.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),Pe.on(wt.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),Pe.on(wt.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),Pe.on(wt.MEDIA_INFO,this._onMediaInfo.bind(this)),Pe.on(wt.METADATA_ARRIVED,this._onMetaDataArrived.bind(this)),Pe.on(wt.SCRIPTDATA_ARRIVED,this._onScriptDataArrived.bind(this)),Pe.on(wt.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),Pe.on(wt.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(ue,ve){this._emitter.addListener(ue,ve)}off(ue,ve){this._emitter.removeListener(ue,ve)}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(ue){this._worker?this._worker.postMessage({cmd:"seek",param:ue}):this._controller.seek(ue)}pause(){this._worker?this._worker.postMessage({cmd:"pause"}):this._controller.pause()}resume(){this._worker?this._worker.postMessage({cmd:"resume"}):this._controller.resume()}_onInitSegment(ue,ve){Promise.resolve().then(()=>{this._emitter.emit(wt.INIT_SEGMENT,ue,ve)})}_onMediaSegment(ue,ve){Promise.resolve().then(()=>{this._emitter.emit(wt.MEDIA_SEGMENT,ue,ve)})}_onLoadingComplete(){Promise.resolve().then(()=>{this._emitter.emit(wt.LOADING_COMPLETE)})}_onRecoveredEarlyEof(){Promise.resolve().then(()=>{this._emitter.emit(wt.RECOVERED_EARLY_EOF)})}_onMediaInfo(ue){Promise.resolve().then(()=>{this._emitter.emit(wt.MEDIA_INFO,ue)})}_onMetaDataArrived(ue){Promise.resolve().then(()=>{this._emitter.emit(wt.METADATA_ARRIVED,ue)})}_onScriptDataArrived(ue){Promise.resolve().then(()=>{this._emitter.emit(wt.SCRIPTDATA_ARRIVED,ue)})}_onStatisticsInfo(ue){Promise.resolve().then(()=>{this._emitter.emit(wt.STATISTICS_INFO,ue)})}_onIOError(ue,ve){Promise.resolve().then(()=>{this._emitter.emit(wt.IO_ERROR,ue,ve)})}_onDemuxError(ue,ve){Promise.resolve().then(()=>{this._emitter.emit(wt.DEMUX_ERROR,ue,ve)})}_onRecommendSeekpoint(ue){Promise.resolve().then(()=>{this._emitter.emit(wt.RECOMMEND_SEEKPOINT,ue)})}_onLoggingConfigChanged(ue){this._worker&&this._worker.postMessage({cmd:"logging_config",param:ue})}_onWorkerMessage(ue){let ve=ue.data,Pe=ve.data;if(ve.msg==="destroyed"||this._workerDestroying){this._workerDestroying=!1,this._worker.terminate(),this._worker=null;return}switch(ve.msg){case wt.INIT_SEGMENT:case wt.MEDIA_SEGMENT:this._emitter.emit(ve.msg,Pe.type,Pe.data);break;case wt.LOADING_COMPLETE:case wt.RECOVERED_EARLY_EOF:this._emitter.emit(ve.msg);break;case wt.MEDIA_INFO:Object.setPrototypeOf(Pe,Ct.prototype),this._emitter.emit(ve.msg,Pe);break;case wt.METADATA_ARRIVED:case wt.SCRIPTDATA_ARRIVED:case wt.STATISTICS_INFO:this._emitter.emit(ve.msg,Pe);break;case wt.IO_ERROR:case wt.DEMUX_ERROR:this._emitter.emit(ve.msg,Pe.type,Pe.info);break;case wt.RECOMMEND_SEEKPOINT:this._emitter.emit(ve.msg,Pe);break;case"logcat_callback":fe.emitter.emit("log",Pe.type,Pe.logcat);break;default:break}}}var qn=Wn,Vn={ERROR:"error",SOURCE_OPEN:"source_open",UPDATE_END:"update_end",BUFFER_FULL:"buffer_full"};class vr{constructor(ue){this.TAG="MSEController",this._config=ue,this._emitter=new(pe()),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 Dt}destroy(){(this._mediaElement||this._mediaSource)&&this.detachMediaElement(),this.e=null,this._emitter.removeAllListeners(),this._emitter=null}on(ue,ve){this._emitter.addListener(ue,ve)}off(ue,ve){this._emitter.removeListener(ue,ve)}attachMediaElement(ue){if(this._mediaSource)throw new me("MediaSource has been attached to an HTMLMediaElement!");let ve=this._mediaSource=new window.MediaSource;ve.addEventListener("sourceopen",this.e.onSourceOpen),ve.addEventListener("sourceended",this.e.onSourceEnded),ve.addEventListener("sourceclose",this.e.onSourceClose),this._mediaElement=ue,this._mediaSourceObjectURL=window.URL.createObjectURL(this._mediaSource),ue.src=this._mediaSourceObjectURL}detachMediaElement(){if(this._mediaSource){let ue=this._mediaSource;for(let ve in this._sourceBuffers){let Pe=this._pendingSegments[ve];Pe.splice(0,Pe.length),this._pendingSegments[ve]=null,this._pendingRemoveRanges[ve]=null,this._lastInitSegments[ve]=null;let xe=this._sourceBuffers[ve];if(xe){if(ue.readyState!=="closed"){try{ue.removeSourceBuffer(xe)}catch(ke){fe.e(this.TAG,ke.message)}xe.removeEventListener("error",this.e.onSourceBufferError),xe.removeEventListener("updateend",this.e.onSourceBufferUpdateEnd)}this._mimeTypes[ve]=null,this._sourceBuffers[ve]=null}}if(ue.readyState==="open")try{ue.endOfStream()}catch(ve){fe.e(this.TAG,ve.message)}ue.removeEventListener("sourceopen",this.e.onSourceOpen),ue.removeEventListener("sourceended",this.e.onSourceEnded),ue.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(ue,ve){if(!this._mediaSource||this._mediaSource.readyState!=="open"){this._pendingSourceBufferInit.push(ue),this._pendingSegments[ue.type].push(ue);return}let Pe=ue,xe=`${Pe.container}`;Pe.codec&&Pe.codec.length>0&&(xe+=`;codecs=${Pe.codec}`);let ke=!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{ke=!0;try{let tt=this._sourceBuffers[Pe.type]=this._mediaSource.addSourceBuffer(xe);tt.addEventListener("error",this.e.onSourceBufferError),tt.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(tt){fe.e(this.TAG,tt.message),this._emitter.emit(Vn.ERROR,{code:tt.code,msg:tt.message});return}}this._mimeTypes[Pe.type]=xe}ve||this._pendingSegments[Pe.type].push(Pe),ke||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(ue){let ve=ue;this._pendingSegments[ve.type].push(ve),this._config.autoCleanupSourceBuffer&&this._needCleanupSourceBuffer()&&this._doCleanupSourceBuffer();let Pe=this._sourceBuffers[ve.type];Pe&&!Pe.updating&&!this._hasPendingRemoveRanges()&&this._doAppendSegments()}seek(ue){for(let ve in this._sourceBuffers){if(!this._sourceBuffers[ve])continue;let Pe=this._sourceBuffers[ve];if(this._mediaSource.readyState==="open")try{Pe.abort()}catch(ke){fe.e(this.TAG,ke.message)}this._idrList.clear();let xe=this._pendingSegments[ve];if(xe.splice(0,xe.length),this._mediaSource.readyState!=="closed"){for(let ke=0;ke=1&&ue-xe.start(0)>=this._config.autoCleanupMaxBackwardDuration)return!0}}return!1}_doCleanupSourceBuffer(){let ue=this._mediaElement.currentTime;for(let ve in this._sourceBuffers){let Pe=this._sourceBuffers[ve];if(Pe){let xe=Pe.buffered,ke=!1;for(let tt=0;tt=this._config.autoCleanupMaxBackwardDuration){ke=!0;let Kt=ue-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[ve].push({start:dt,end:Kt})}}else tn0&&(isNaN(ve)||Pe>ve)&&(fe.v(this.TAG,`Update MediaSource duration from ${ve} to ${Pe}`),this._mediaSource.duration=Pe),this._requireSetMediaDuration=!1,this._pendingMediaDuration=0}_doRemoveRanges(){for(let ue in this._pendingRemoveRanges){if(!this._sourceBuffers[ue]||this._sourceBuffers[ue].updating)continue;let ve=this._sourceBuffers[ue],Pe=this._pendingRemoveRanges[ue];for(;Pe.length&&!ve.updating;){let xe=Pe.shift();ve.remove(xe.start,xe.end)}}}_doAppendSegments(){let ue=this._pendingSegments;for(let ve in ue)if(!(!this._sourceBuffers[ve]||this._sourceBuffers[ve].updating)&&ue[ve].length>0){let Pe=ue[ve].shift();if(Pe.timestampOffset){let xe=this._sourceBuffers[ve].timestampOffset,ke=Pe.timestampOffset/1e3;Math.abs(xe-ke)>.1&&(fe.v(this.TAG,`Update MPEG audio timestampOffset from ${xe} to ${ke}`),this._sourceBuffers[ve].timestampOffset=ke),delete Pe.timestampOffset}if(!Pe.data||Pe.data.byteLength===0)continue;try{this._sourceBuffers[ve].appendBuffer(Pe.data),this._isBufferFull=!1,ve==="video"&&Pe.hasOwnProperty("info")&&this._idrList.appendArray(Pe.info.syncPoints)}catch(xe){this._pendingSegments[ve].unshift(Pe),xe.code===22?(this._isBufferFull||this._emitter.emit(Vn.BUFFER_FULL),this._isBufferFull=!0):(fe.e(this.TAG,xe.message),this._emitter.emit(Vn.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 ue=this._pendingSourceBufferInit;for(;ue.length;){let ve=ue.shift();this.appendInitSegment(ve,!0)}}this._hasPendingSegments()&&this._doAppendSegments(),this._emitter.emit(Vn.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 ue=this._pendingSegments;return ue.video.length>0||ue.audio.length>0}_hasPendingRemoveRanges(){let ue=this._pendingRemoveRanges;return ue.video.length>0||ue.audio.length>0}_onSourceBufferUpdateEnd(){this._requireSetMediaDuration?this._updateMediaSourceDuration():this._hasPendingRemoveRanges()?this._doRemoveRanges():this._hasPendingSegments()?this._doAppendSegments():this._hasPendingEos&&this.endOfStream(),this._emitter.emit(Vn.UPDATE_END)}_onSourceBufferError(ue){fe.e(this.TAG,`SourceBuffer Error: ${ue}`)}}var lr=vr;const sn={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},Yn={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 or{constructor(ue,ve){if(this.TAG="FlvPlayer",this._type="FlvPlayer",this._emitter=new(pe()),this._config=at(),typeof ve=="object"&&Object.assign(this._config,ve),ue.type.toLowerCase()!=="flv")throw new ae("FlvPlayer requires an flv MediaDataSource input!");ue.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=ue,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(ue,ve){ue===At.MEDIA_INFO?this._mediaInfo!=null&&Promise.resolve().then(()=>{this._emitter.emit(At.MEDIA_INFO,this.mediaInfo)}):ue===At.STATISTICS_INFO&&this._statisticsInfo!=null&&Promise.resolve().then(()=>{this._emitter.emit(At.STATISTICS_INFO,this.statisticsInfo)}),this._emitter.addListener(ue,ve)}off(ue,ve){this._emitter.removeListener(ue,ve)}attachMediaElement(ue){if(this._mediaElement=ue,ue.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),ue.addEventListener("seeking",this.e.onvSeeking),ue.addEventListener("canplay",this.e.onvCanPlay),ue.addEventListener("stalled",this.e.onvStalled),ue.addEventListener("progress",this.e.onvProgress),this._msectl=new lr(this._config),this._msectl.on(Vn.UPDATE_END,this._onmseUpdateEnd.bind(this)),this._msectl.on(Vn.BUFFER_FULL,this._onmseBufferFull.bind(this)),this._msectl.on(Vn.SOURCE_OPEN,()=>{this._mseSourceOpened=!0,this._hasPendingLoad&&(this._hasPendingLoad=!1,this.load())}),this._msectl.on(Vn.ERROR,ve=>{this._emitter.emit(At.ERROR,sn.MEDIA_ERROR,Yn.MEDIA_MSE_ERROR,ve)}),this._msectl.attachMediaElement(ue),this._pendingSeekTime!=null)try{ue.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(ve){}}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 qn(this._mediaDataSource,this._config),this._transmuxer.on(wt.INIT_SEGMENT,(ue,ve)=>{this._msectl.appendInitSegment(ve)}),this._transmuxer.on(wt.MEDIA_SEGMENT,(ue,ve)=>{if(this._msectl.appendMediaSegment(ve),this._config.lazyLoad&&!this._config.isLive){let Pe=this._mediaElement.currentTime;ve.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(wt.LOADING_COMPLETE,()=>{this._msectl.endOfStream(),this._emitter.emit(At.LOADING_COMPLETE)}),this._transmuxer.on(wt.RECOVERED_EARLY_EOF,()=>{this._emitter.emit(At.RECOVERED_EARLY_EOF)}),this._transmuxer.on(wt.IO_ERROR,(ue,ve)=>{this._emitter.emit(At.ERROR,sn.NETWORK_ERROR,ue,ve)}),this._transmuxer.on(wt.DEMUX_ERROR,(ue,ve)=>{this._emitter.emit(At.ERROR,sn.MEDIA_ERROR,ue,{code:-1,msg:ve})}),this._transmuxer.on(wt.MEDIA_INFO,ue=>{this._mediaInfo=ue,this._emitter.emit(At.MEDIA_INFO,Object.assign({},ue))}),this._transmuxer.on(wt.METADATA_ARRIVED,ue=>{this._emitter.emit(At.METADATA_ARRIVED,ue)}),this._transmuxer.on(wt.SCRIPTDATA_ARRIVED,ue=>{this._emitter.emit(At.SCRIPTDATA_ARRIVED,ue)}),this._transmuxer.on(wt.STATISTICS_INFO,ue=>{this._statisticsInfo=this._fillStatisticsInfo(ue),this._emitter.emit(At.STATISTICS_INFO,Object.assign({},this._statisticsInfo))}),this._transmuxer.on(wt.RECOMMEND_SEEKPOINT,ue=>{this._mediaElement&&!this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=ue/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(ue){this._mediaElement.volume=ue}get muted(){return this._mediaElement.muted}set muted(ue){this._mediaElement.muted=ue}get currentTime(){return this._mediaElement?this._mediaElement.currentTime:0}set currentTime(ue){this._mediaElement?this._internalSeek(ue):this._pendingSeekTime=ue}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(ue){if(ue.playerType=this._type,!(this._mediaElement instanceof HTMLVideoElement))return ue;let ve=!0,Pe=0,xe=0;if(this._mediaElement.getVideoPlaybackQuality){let ke=this._mediaElement.getVideoPlaybackQuality();Pe=ke.totalVideoFrames,xe=ke.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(Pe=this._mediaElement.webkitDecodedFrameCount,xe=this._mediaElement.webkitDroppedFrameCount):ve=!1;return ve&&(ue.decodedFrames=Pe,ue.droppedFrames=xe),ue}_onmseUpdateEnd(){if(!this._config.lazyLoad||this._config.isLive)return;let ue=this._mediaElement.buffered,ve=this._mediaElement.currentTime,Pe=0,xe=0;for(let ke=0;ke=ve+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 ue=this._mediaElement.currentTime,ve=this._mediaElement.buffered,Pe=!1;for(let xe=0;xe=ke&&ue=tt-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(ue){let ve=this._mediaElement.buffered;for(let Pe=0;Pe=xe&&ue0){let ke=this._mediaElement.buffered.start(0);(ke<1&&ue0&&ve.currentTime0){let xe=Pe.start(0);if(xe<1&&ve{this._emitter.emit(At.MEDIA_INFO,this.mediaInfo)}):ue===At.STATISTICS_INFO&&this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(()=>{this._emitter.emit(At.STATISTICS_INFO,this.statisticsInfo)}),this._emitter.addListener(ue,ve)}off(ue,ve){this._emitter.removeListener(ue,ve)}attachMediaElement(ue){if(this._mediaElement=ue,ue.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._pendingSeekTime!=null)try{ue.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(ve){}}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(ue){this._mediaElement.volume=ue}get muted(){return this._mediaElement.muted}set muted(ue){this._mediaElement.muted=ue}get currentTime(){return this._mediaElement?this._mediaElement.currentTime:0}set currentTime(ue){this._mediaElement?this._mediaElement.currentTime=ue:this._pendingSeekTime=ue}get mediaInfo(){let ve={mimeType:(this._mediaElement instanceof HTMLAudioElement?"audio/":"video/")+this._mediaDataSource.type};return this._mediaElement&&(ve.duration=Math.floor(this._mediaElement.duration*1e3),this._mediaElement instanceof HTMLVideoElement&&(ve.width=this._mediaElement.videoWidth,ve.height=this._mediaElement.videoHeight)),ve}get statisticsInfo(){let ue={playerType:this._type,url:this._mediaDataSource.url};if(!(this._mediaElement instanceof HTMLVideoElement))return ue;let ve=!0,Pe=0,xe=0;if(this._mediaElement.getVideoPlaybackQuality){let ke=this._mediaElement.getVideoPlaybackQuality();Pe=ke.totalVideoFrames,xe=ke.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(Pe=this._mediaElement.webkitDecodedFrameCount,xe=this._mediaElement.webkitDroppedFrameCount):ve=!1;return ve&&(ue.decodedFrames=Pe,ue.droppedFrames=xe),ue}_onvLoadedMetadata(ue){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 Dr=ar;ge.install();function Mr(Ut,ue){let ve=Ut;if(ve==null||typeof ve!="object")throw new ae("MediaDataSource must be an javascript object!");if(!ve.hasOwnProperty("type"))throw new ae("MediaDataSource must has type field to indicate video file type!");switch(ve.type){case"flv":return new Zn(ve,ue);default:return new Dr(ve,ue)}}function Er(){return pt.supportMSEH264Playback()}function Br(){return pt.getFeatureList()}let sr={};sr.createPlayer=Mr,sr.isSupported=Er,sr.getFeatureList=Br,sr.BaseLoader=a,sr.LoaderStatus=ie,sr.LoaderErrors=ne,sr.Events=At,sr.ErrorTypes=sn,sr.ErrorDetails=Yn,sr.FlvPlayer=Zn,sr.NativePlayer=Dr,sr.LoggingControl=rt,Object.defineProperty(sr,"version",{enumerable:!0,get:function(){return"__VERSION__"}});var Kr=sr},50371:function(mt,Ke){"use strict";function te(){const ee=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let ge=1;ge{const Se=be[pe];Se!==void 0&&(ee[pe]=Se)})}return ee}Ke.Z=te},13845:function(mt,Ke,te){"use strict";te.d(Ke,{F:function(){return ee},Z:function(){return ge}});function ee(be){return be!=null&&be===be.window}function ge(be,pe){var Se,fe;if(typeof window=="undefined")return 0;const oe=pe?"scrollTop":"scrollLeft";let de=0;return ee(be)?de=be[pe?"pageYOffset":"pageXOffset"]:be instanceof Document?de=be.documentElement[oe]:(be instanceof HTMLElement||be)&&(de=be[oe]),be&&!ee(be)&&typeof de!="number"&&(de=(fe=((Se=be.ownerDocument)!==null&&Se!==void 0?Se:be).documentElement)===null||fe===void 0?void 0:fe[oe]),de}},56762:function(mt,Ke,te){"use strict";te.d(Ke,{Z:function(){return ge}});var ee=te(59301);function ge(){const[,be]=ee.useReducer(pe=>pe+1,0);return be}},68031:function(mt,Ke,te){"use strict";te.d(Ke,{Z:function(){return pe}});var ee=te(16089);function ge(Se,fe,oe,de){const le=oe-fe;return Se/=de/2,Se<1?le/2*Se*Se*Se+fe:le/2*((Se-=2)*Se*Se+2)+fe}var be=te(13845);function pe(Se){let fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:oe=()=>window,callback:de,duration:le=450}=fe,me=oe(),ae=(0,be.Z)(me,!0),he=Date.now(),ie=()=>{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{var Ee;const{prefixCls:je,className:Le,rootClassName:ht,children:Ye,indeterminate:vt=!1,style:we,onMouseEnter:Fe,onMouseLeave:He,skipGroup:at=!1,disabled:We}=ye,pt=ie(ye,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:Pt,direction:At,checkbox:Bt}=pe.useContext(Se.E_),rt=pe.useContext(le),{isFormItemInput:Xe}=pe.useContext(oe.aM),Ct=pe.useContext(fe.Z),zt=(Ee=(rt==null?void 0:rt.disabled)||We)!==null&&Ee!==void 0?Ee:Ct,Et=pe.useRef(pt.value);pe.useEffect(()=>{rt==null||rt.registerValue(pt.value)},[]),pe.useEffect(()=>{if(!at)return pt.value!==Et.current&&(rt==null||rt.cancelValue(Et.current),rt==null||rt.registerValue(pt.value),Et.current=pt.value),()=>rt==null?void 0:rt.cancelValue(pt.value)},[pt.value]);const an=Pt("checkbox",je),[$e,yt]=(0,me.ZP)(an),Lt=Object.assign({},pt);rt&&!at&&(Lt.onChange=function(){pt.onChange&&pt.onChange.apply(pt,arguments),rt.toggleOption&&rt.toggleOption({label:Ye,value:pt.value})},Lt.name=rt.name,Lt.checked=rt.value.includes(pt.value));const on=ge()(`${an}-wrapper`,{[`${an}-rtl`]:At==="rtl",[`${an}-wrapper-checked`]:Lt.checked,[`${an}-wrapper-disabled`]:zt,[`${an}-wrapper-in-form-item`]:Xe},Bt==null?void 0:Bt.className,Le,ht,yt),$t=ge()({[`${an}-indeterminate`]:vt},he.A,yt),st=vt?"mixed":void 0;return $e(pe.createElement(ae.Z,{component:"Checkbox",disabled:zt},pe.createElement("label",{className:on,style:Object.assign(Object.assign({},Bt==null?void 0:Bt.style),we),onMouseEnter:Fe,onMouseLeave:He},pe.createElement(be.Z,Object.assign({"aria-checked":st},Lt,{prefixCls:an,className:$t,disabled:zt,ref:De})),Ye!==void 0&&pe.createElement("span",null,Ye))))};var y=pe.forwardRef(ne),E=te(94480),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{const{defaultValue:Ee,children:je,options:Le=[],prefixCls:ht,className:Ye,rootClassName:vt,style:we,onChange:Fe}=ye,He=x(ye,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:at,direction:We}=pe.useContext(Se.E_),[pt,Pt]=pe.useState(He.value||Ee||[]),[At,Bt]=pe.useState([]);pe.useEffect(()=>{"value"in He&&Pt(He.value||[])},[He.value]);const rt=pe.useMemo(()=>Le.map(lt=>typeof lt=="string"||typeof lt=="number"?{label:lt,value:lt}:lt),[Le]),Xe=lt=>{Bt(Ge=>Ge.filter(Ne=>Ne!==lt))},Ct=lt=>{Bt(Ge=>[].concat((0,E.Z)(Ge),[lt]))},zt=lt=>{const Ge=pt.indexOf(lt.value),Ne=(0,E.Z)(pt);Ge===-1?Ne.push(lt.value):Ne.splice(Ge,1),"value"in He||Pt(Ne),Fe==null||Fe(Ne.filter(et=>At.includes(et)).sort((et,xt)=>{const Ie=rt.findIndex(Ze=>Ze.value===et),Re=rt.findIndex(Ze=>Ze.value===xt);return Ie-Re}))},Et=at("checkbox",ht),an=`${Et}-group`,[$e,yt]=(0,me.ZP)(Et),Lt=(0,b.Z)(He,["value","disabled"]),on=Le.length?rt.map(lt=>pe.createElement(y,{prefixCls:Et,key:lt.value.toString(),disabled:"disabled"in lt?lt.disabled:He.disabled,value:lt.value,checked:pt.includes(lt.value),onChange:lt.onChange,className:`${an}-item`,style:lt.style,title:lt.title},lt.label)):je,$t={toggleOption:zt,value:pt,disabled:He.disabled,name:He.name,registerValue:Ct,cancelValue:Xe},st=ge()(an,{[`${an}-rtl`]:We==="rtl"},Ye,vt,yt);return $e(pe.createElement("div",Object.assign({className:st,style:we},Lt,{ref:De}),pe.createElement(le.Provider,{value:$t},on)))},re=pe.forwardRef(z);var se=pe.memo(re);const ce=y;ce.Group=se,ce.__ANT_CHECKBOX=!0;var _e=ce},98447:function(mt,Ke,te){"use strict";te.d(Ke,{C2:function(){return Se}});var ee=te(17313),ge=te(37613),be=te(83116);const pe=fe=>{const{checkboxCls:oe}=fe,de=`${oe}-wrapper`;return[{[`${oe}-group`]:Object.assign(Object.assign({},(0,ee.Wf)(fe)),{display:"inline-flex",flexWrap:"wrap",columnGap:fe.marginXS,[`> ${fe.antCls}-row`]:{flex:1}}),[de]: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'"},[`& + ${de}`]:{marginInlineStart:0},[`&${de}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[oe]:Object.assign(Object.assign({},(0,ee.Wf)(fe)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:fe.borderRadiusSM,alignSelf:"center",[`${oe}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${oe}-inner`]:Object.assign({},(0,ee.oN)(fe))},[`${oe}-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}})},{[` ${de}:not(${de}-disabled), ${oe}:not(${oe}-disabled) `]:{[`&:hover ${oe}-inner`]:{borderColor:fe.colorPrimary}},[`${de}:not(${de}-disabled)`]:{[`&:hover ${oe}-checked:not(${oe}-disabled) ${oe}-inner`]:{backgroundColor:fe.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${oe}-checked:not(${oe}-disabled):after`]:{borderColor:fe.colorPrimaryHover}}},{[`${oe}-checked`]:{[`${oe}-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}`}}},[` ${de}-checked:not(${de}-disabled), ${oe}-checked:not(${oe}-disabled) `]:{[`&:hover ${oe}-inner`]:{backgroundColor:fe.colorPrimaryHover,borderColor:"transparent"}}},{[oe]:{"&-indeterminate":{[`${oe}-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:'""'}}}}},{[`${de}-disabled`]:{cursor:"not-allowed"},[`${oe}-disabled`]:{[`&, ${oe}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${oe}-inner`]:{background:fe.colorBgContainerDisabled,borderColor:fe.colorBorder,"&:after":{borderColor:fe.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:fe.colorTextDisabled},[`&${oe}-indeterminate ${oe}-inner::after`]:{background:fe.colorTextDisabled}}}]};function Se(fe,oe){const de=(0,ge.TS)(oe,{checkboxCls:`.${fe}`,checkboxSize:oe.controlInteractiveSize});return[pe(de)]}Ke.ZP=(0,be.Z)("Checkbox",(fe,oe)=>{let{prefixCls:de}=oe;return[Se(de,fe)]})},43428:function(mt,Ke,te){"use strict";te.d(Ke,{Z:function(){return $e}});var ee=te(92310),ge=te.n(ee),be=te(33885),pe=te(42978),Se=te(43403),fe=te(34280),oe=te(59301),de=oe.createContext(null),le=oe.createContext({}),me=de,ae=te(20068),he=te(54476),ie=te(77900),ne=te(10228),a=te(26112),y=te(70425),E=function(Lt){var on=Lt.prefixCls,$t=Lt.className,st=Lt.style,lt=Lt.children,Ge=Lt.containerRef,Ne=Lt.id,et=Lt.onMouseEnter,xt=Lt.onMouseOver,Ie=Lt.onMouseLeave,Re=Lt.onClick,Ze=Lt.onKeyDown,Be=Lt.onKeyUp,ze={onMouseEnter:et,onMouseOver:xt,onMouseLeave:Ie,onClick:Re,onKeyDown:Ze,onKeyUp:Be},it=oe.useContext(le),It=it.panel,Mt=(0,y.useComposeRef)(It,Ge);return oe.createElement(oe.Fragment,null,oe.createElement("div",(0,he.Z)({id:Ne,className:ge()("".concat(on,"-content"),$t),style:(0,be.Z)({},st),"aria-modal":"true",role:"dialog",ref:Mt},ze),lt))},b=E,x=te(48736);function z(yt){return typeof yt=="string"&&String(Number(yt))===yt?((0,x.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(yt)):yt}function re(yt){warning(!("wrapperClassName"in yt),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!yt.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(yt,Lt){var on,$t,st,lt,Ge=yt.prefixCls,Ne=yt.open,et=yt.placement,xt=yt.inline,Ie=yt.push,Re=yt.forceRender,Ze=yt.autoFocus,Be=yt.keyboard,ze=yt.rootClassName,it=yt.rootStyle,It=yt.zIndex,Mt=yt.className,jt=yt.id,Dt=yt.style,Ht=yt.motion,bt=yt.width,fn=yt.height,cn=yt.children,wt=yt.contentWrapperStyle,yn=yt.mask,vn=yt.maskClosable,zn=yt.maskMotion,wn=yt.maskClassName,Wn=yt.maskStyle,qn=yt.afterOpenChange,Kn=yt.onClose,Vn=yt.onMouseEnter,vr=yt.onMouseOver,lr=yt.onMouseLeave,sn=yt.onClick,Yn=yt.onKeyDown,or=yt.onKeyUp,Zn=oe.useRef(),ar=oe.useRef(),Dr=oe.useRef();oe.useImperativeHandle(Lt,function(){return Zn.current});var Mr=function(ft){var Ft=ft.keyCode,gt=ft.shiftKey;switch(Ft){case ne.Z.TAB:{if(Ft===ne.Z.TAB){if(!gt&&document.activeElement===Dr.current){var Gt;(Gt=ar.current)===null||Gt===void 0||Gt.focus({preventScroll:!0})}else if(gt&&document.activeElement===ar.current){var Zt;(Zt=Dr.current)===null||Zt===void 0||Zt.focus({preventScroll:!0})}}break}case ne.Z.ESC:{Kn&&Be&&(ft.stopPropagation(),Kn(ft));break}}};oe.useEffect(function(){if(Ne&&Ze){var _t;(_t=Zn.current)===null||_t===void 0||_t.focus({preventScroll:!0})}},[Ne]);var Er=oe.useState(!1),Br=(0,pe.Z)(Er,2),sr=Br[0],Kr=Br[1],Ut=oe.useContext(me),ue;Ie===!1?ue={distance:0}:Ie===!0?ue={}:ue=Ie||{};var ve=(on=($t=(st=ue)===null||st===void 0?void 0:st.distance)!==null&&$t!==void 0?$t:Ut==null?void 0:Ut.pushDistance)!==null&&on!==void 0?on:180,Pe=oe.useMemo(function(){return{pushDistance:ve,push:function(){Kr(!0)},pull:function(){Kr(!1)}}},[ve]);oe.useEffect(function(){if(Ne){var _t;Ut==null||(_t=Ut.push)===null||_t===void 0||_t.call(Ut)}else{var ft;Ut==null||(ft=Ut.pull)===null||ft===void 0||ft.call(Ut)}},[Ne]),oe.useEffect(function(){return function(){var _t;Ut==null||(_t=Ut.pull)===null||_t===void 0||_t.call(Ut)}},[]);var xe=yn&&oe.createElement(ie.default,(0,he.Z)({key:"mask"},zn,{visible:Ne}),function(_t,ft){var Ft=_t.className,gt=_t.style;return oe.createElement("div",{className:ge()("".concat(Ge,"-mask"),Ft,wn),style:(0,be.Z)((0,be.Z)({},gt),Wn),onClick:vn&&Ne?Kn:void 0,ref:ft})}),ke=typeof Ht=="function"?Ht(et):Ht,tt={};if(sr&&ve)switch(et){case"top":tt.transform="translateY(".concat(ve,"px)");break;case"bottom":tt.transform="translateY(".concat(-ve,"px)");break;case"left":tt.transform="translateX(".concat(ve,"px)");break;default:tt.transform="translateX(".concat(-ve,"px)");break}et==="left"||et==="right"?tt.width=z(bt):tt.height=z(fn);var dt={onMouseEnter:Vn,onMouseOver:vr,onMouseLeave:lr,onClick:sn,onKeyDown:Yn,onKeyUp:or},tn=oe.createElement(ie.default,(0,he.Z)({key:"panel"},ke,{visible:Ne,forceRender:Re,onVisibleChanged:function(ft){qn==null||qn(ft)},removeOnLeave:!1,leavedClassName:"".concat(Ge,"-content-wrapper-hidden")}),function(_t,ft){var Ft=_t.className,gt=_t.style;return oe.createElement("div",(0,he.Z)({className:ge()("".concat(Ge,"-content-wrapper"),Ft),style:(0,be.Z)((0,be.Z)((0,be.Z)({},tt),gt),wt)},(0,a.Z)(yt,{data:!0})),oe.createElement(b,(0,he.Z)({id:jt,containerRef:ft,prefixCls:Ge,className:Mt,style:Dt},dt),cn))}),Kt=(0,be.Z)({},it);return It&&(Kt.zIndex=It),oe.createElement(me.Provider,{value:Pe},oe.createElement("div",{className:ge()(Ge,"".concat(Ge,"-").concat(et),ze,(lt={},(0,ae.Z)(lt,"".concat(Ge,"-open"),Ne),(0,ae.Z)(lt,"".concat(Ge,"-inline"),xt),lt)),style:Kt,tabIndex:-1,ref:Zn,onKeyDown:Mr},xe,oe.createElement("div",{tabIndex:0,ref:ar,style:se,"aria-hidden":"true","data-sentinel":"start"}),tn,oe.createElement("div",{tabIndex:0,ref:Dr,style:se,"aria-hidden":"true","data-sentinel":"end"})))}var _e=oe.forwardRef(ce),ye=_e,De=function(Lt){var on=Lt.open,$t=on===void 0?!1:on,st=Lt.prefixCls,lt=st===void 0?"rc-drawer":st,Ge=Lt.placement,Ne=Ge===void 0?"right":Ge,et=Lt.autoFocus,xt=et===void 0?!0:et,Ie=Lt.keyboard,Re=Ie===void 0?!0:Ie,Ze=Lt.width,Be=Ze===void 0?378:Ze,ze=Lt.mask,it=ze===void 0?!0:ze,It=Lt.maskClosable,Mt=It===void 0?!0:It,jt=Lt.getContainer,Dt=Lt.forceRender,Ht=Lt.afterOpenChange,bt=Lt.destroyOnClose,fn=Lt.onMouseEnter,cn=Lt.onMouseOver,wt=Lt.onMouseLeave,yn=Lt.onClick,vn=Lt.onKeyDown,zn=Lt.onKeyUp,wn=Lt.panelRef,Wn=oe.useState(!1),qn=(0,pe.Z)(Wn,2),Kn=qn[0],Vn=qn[1],vr=oe.useState(!1),lr=(0,pe.Z)(vr,2),sn=lr[0],Yn=lr[1];(0,fe.Z)(function(){Yn(!0)},[]);var or=sn?$t:!1,Zn=oe.useRef(),ar=oe.useRef();(0,fe.Z)(function(){or&&(ar.current=document.activeElement)},[or]);var Dr=function(Kr){var Ut;if(Vn(Kr),Ht==null||Ht(Kr),!Kr&&ar.current&&!((Ut=Zn.current)!==null&&Ut!==void 0&&Ut.contains(ar.current))){var ue;(ue=ar.current)===null||ue===void 0||ue.focus({preventScroll:!0})}},Mr=oe.useMemo(function(){return{panel:wn}},[wn]);if(!Dt&&!Kn&&!or&&bt)return null;var Er={onMouseEnter:fn,onMouseOver:cn,onMouseLeave:wt,onClick:yn,onKeyDown:vn,onKeyUp:zn},Br=(0,be.Z)((0,be.Z)({},Lt),{},{open:or,prefixCls:lt,placement:Ne,autoFocus:xt,keyboard:Re,width:Be,mask:it,maskClosable:Mt,inline:jt===!1,afterOpenChange:Dr,ref:Zn},Er);return oe.createElement(le.Provider,{value:Mr},oe.createElement(Se.Z,{open:or||Dt||Kn,autoDestroy:!1,getContainer:jt,autoLock:it&&(or||Kn)},oe.createElement(ye,Br)))},Ee=De,je=Ee,Le=te(62892),ht=te(36355),Ye=te(32441),vt=te(47729),Fe=yt=>{const{prefixCls:Lt,title:on,footer:$t,extra:st,closeIcon:lt,closable:Ge,onClose:Ne,headerStyle:et,drawerStyle:xt,bodyStyle:Ie,footerStyle:Re,children:Ze}=yt,Be=oe.useCallback(jt=>oe.createElement("button",{type:"button",onClick:Ne,"aria-label":"Close",className:`${Lt}-close`},jt),[Ne]),[ze,it]=(0,vt.Z)(Ge,lt,Be,void 0,!0),It=oe.useMemo(()=>!on&&!ze?null:oe.createElement("div",{style:et,className:ge()(`${Lt}-header`,{[`${Lt}-header-close-only`]:ze&&!on&&!st})},oe.createElement("div",{className:`${Lt}-header-title`},it,on&&oe.createElement("div",{className:`${Lt}-title`},on)),st&&oe.createElement("div",{className:`${Lt}-extra`},st)),[ze,it,st,et,Lt,on]),Mt=oe.useMemo(()=>{if(!$t)return null;const jt=`${Lt}-footer`;return oe.createElement("div",{className:jt,style:Re},$t)},[$t,Re,Lt]);return oe.createElement("div",{className:`${Lt}-wrapper-body`,style:xt},It,oe.createElement("div",{className:`${Lt}-body`,style:Ie},Ze),Mt)},He=te(33234),at=te(83116),We=te(37613),Pt=yt=>{const{componentCls:Lt,motionDurationSlow:on}=yt,$t={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${on}`}}};return{[Lt]:{[`${Lt}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${on}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${Lt}-panel-motion`]:{"&-left":[$t,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[$t,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[$t,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[$t,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}};const At=yt=>{const{componentCls:Lt,zIndexPopup:on,colorBgMask:$t,colorBgElevated:st,motionDurationSlow:lt,motionDurationMid:Ge,padding:Ne,paddingLG:et,fontSizeLG:xt,lineHeightLG:Ie,lineWidth:Re,lineType:Ze,colorSplit:Be,marginSM:ze,colorIcon:it,colorIconHover:It,colorText:Mt,fontWeightStrong:jt,footerPaddingBlock:Dt,footerPaddingInline:Ht}=yt,bt=`${Lt}-content-wrapper`;return{[Lt]:{position:"fixed",inset:0,zIndex:on,pointerEvents:"none","&-pure":{position:"relative",background:st,[`&${Lt}-left`]:{boxShadow:yt.boxShadowDrawerLeft},[`&${Lt}-right`]:{boxShadow:yt.boxShadowDrawerRight},[`&${Lt}-top`]:{boxShadow:yt.boxShadowDrawerUp},[`&${Lt}-bottom`]:{boxShadow:yt.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${Lt}-mask`]:{position:"absolute",inset:0,zIndex:on,background:$t,pointerEvents:"auto"},[bt]:{position:"absolute",zIndex:on,maxWidth:"100vw",transition:`all ${lt}`,"&-hidden":{display:"none"}},[`&-left > ${bt}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:yt.boxShadowDrawerLeft},[`&-right > ${bt}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:yt.boxShadowDrawerRight},[`&-top > ${bt}`]:{top:0,insetInline:0,boxShadow:yt.boxShadowDrawerUp},[`&-bottom > ${bt}`]:{bottom:0,insetInline:0,boxShadow:yt.boxShadowDrawerDown},[`${Lt}-content`]:{width:"100%",height:"100%",overflow:"auto",background:st,pointerEvents:"auto"},[`${Lt}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${Lt}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${Ne}px ${et}px`,fontSize:xt,lineHeight:Ie,borderBottom:`${Re}px ${Ze} ${Be}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${Lt}-extra`]:{flex:"none"},[`${Lt}-close`]:{display:"inline-block",marginInlineEnd:ze,color:it,fontWeight:jt,fontSize:xt,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"}},[`${Lt}-title`]:{flex:1,margin:0,color:Mt,fontWeight:yt.fontWeightStrong,fontSize:xt,lineHeight:Ie},[`${Lt}-body`]:{flex:1,minWidth:0,minHeight:0,padding:et,overflow:"auto"},[`${Lt}-footer`]:{flexShrink:0,padding:`${Dt}px ${Ht}px`,borderTop:`${Re}px ${Ze} ${Be}`},"&-rtl":{direction:"rtl"}}}};var Bt=(0,at.Z)("Drawer",yt=>{const Lt=(0,We.TS)(yt,{});return[At(Lt),Pt(Lt)]},yt=>({zIndexPopup:yt.zIndexPopupBase,footerPaddingBlock:yt.paddingXS,footerPaddingInline:yt.padding})),rt=te(11575),Xe=function(yt,Lt){var on={};for(var $t in yt)Object.prototype.hasOwnProperty.call(yt,$t)&&Lt.indexOf($t)<0&&(on[$t]=yt[$t]);if(yt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var st=0,$t=Object.getOwnPropertySymbols(yt);st<$t.length;st++)Lt.indexOf($t[st])<0&&Object.prototype.propertyIsEnumerable.call(yt,$t[st])&&(on[$t[st]]=yt[$t[st]]);return on};const Ct=null,zt={distance:180},Et=yt=>{var Lt;const{rootClassName:on,width:$t,height:st,size:lt="default",mask:Ge=!0,push:Ne=zt,open:et,afterOpenChange:xt,onClose:Ie,prefixCls:Re,getContainer:Ze,style:Be,className:ze,visible:it,afterVisibleChange:It}=yt,Mt=Xe(yt,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:jt,getPrefixCls:Dt,direction:Ht,drawer:bt}=oe.useContext(ht.E_),fn=Dt("drawer",Re),[cn,wt]=Bt(fn),yn=Ze===void 0&&jt?()=>jt(document.body):Ze,vn=ge()({"no-mask":!Ge,[`${fn}-rtl`]:Ht==="rtl"},on,wt),zn=oe.useMemo(()=>$t!=null?$t:lt==="large"?736:378,[$t,lt]),wn=oe.useMemo(()=>st!=null?st:lt==="large"?736:378,[st,lt]),Wn={motionName:(0,Le.m)(fn,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},qn=Vn=>({motionName:(0,Le.m)(fn,`panel-motion-${Vn}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),Kn=(0,rt.H)();return cn(oe.createElement(He.BR,null,oe.createElement(Ye.Ux,{status:!0,override:!0},oe.createElement(je,Object.assign({prefixCls:fn,onClose:Ie,maskMotion:Wn,motion:qn},Mt,{open:et!=null?et:it,mask:Ge,push:Ne,width:zn,height:wn,style:Object.assign(Object.assign({},bt==null?void 0:bt.style),Be),className:ge()(bt==null?void 0:bt.className,ze),rootClassName:vn,getContainer:yn,afterOpenChange:xt!=null?xt:It,panelRef:Kn}),oe.createElement(Fe,Object.assign({prefixCls:fn},Mt,{onClose:Ie}))))))},an=yt=>{const{prefixCls:Lt,style:on,className:$t,placement:st="right"}=yt,lt=Xe(yt,["prefixCls","style","className","placement"]),{getPrefixCls:Ge}=oe.useContext(ht.E_),Ne=Ge("drawer",Lt),[et,xt]=Bt(Ne),Ie=ge()(Ne,`${Ne}-pure`,`${Ne}-${st}`,xt,$t);return et(oe.createElement("div",{className:Ie,style:on},oe.createElement(Fe,Object.assign({prefixCls:Ne},lt))))};Et._InternalPanelDoNotUseOrYouWillBeFired=an;var $e=Et},91857:function(mt,Ke,te){"use strict";var ee=te(59301),ge=te(38819),be=te(92310),pe=te.n(be),Se=te(31561),fe=te(70425),oe=te(18929),de=te(2738),le=te(79676),me=te(53487),ae=te(92343),he=te(36355),ie=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:ht,overlayClassName:Ye,rootClassName:vt,open:we,onOpenChange:Fe,visible:He,onVisibleChange:at,mouseEnterDelay:We=.15,mouseLeaveDelay:pt=.1,autoAdjustOverflow:Pt=!0,placement:At="",overlay:Bt,transitionName:rt}=se,{getPopupContainer:Xe,getPrefixCls:Ct,direction:zt}=ee.useContext(he.E_),Et=ee.useMemo(()=>{const ze=Ct();return rt!==void 0?rt:At.includes("top")?`${ze}-slide-down`:`${ze}-slide-up`},[Ct,At,rt]),an=ee.useMemo(()=>At?At.includes("Center")?At.slice(0,At.indexOf("Center")):At:zt==="rtl"?"bottomRight":"bottomLeft",[At,zt]),$e=Ct("dropdown",ye),[yt,Lt]=(0,y.Z)($e),[,on]=(0,a.Z)(),$t=ee.Children.only(De),st=(0,ae.Tm)($t,{className:pe()(`${$e}-trigger`,{[`${$e}-rtl`]:zt==="rtl"},$t.props.className),disabled:je}),lt=je?[]:Ee;let Ge;lt&<.includes("contextMenu")&&(Ge=!0);const[Ne,et]=(0,oe.Z)(!1,{value:we!=null?we:He}),xt=(0,fe.useEvent)(ze=>{Fe==null||Fe(ze),at==null||at(ze),et(ze)}),Ie=pe()(Ye,vt,Lt,{[`${$e}-rtl`]:zt==="rtl"}),Re=(0,le.Z)({arrowPointAtCenter:typeof _e=="object"&&_e.pointAtCenter,autoAdjustOverflow:Pt,offset:on.marginXXS,arrowWidth:_e?on.sizePopupArrow:0,borderRadius:on.borderRadius}),Ze=ee.useCallback(()=>{et(!1)},[]),Be=()=>{let ze;return ce!=null&&ce.items?ze=ee.createElement(ie.default,Object.assign({},ce)):typeof Bt=="function"?ze=Bt():ze=Bt,Le&&(ze=Le(ze)),ze=ee.Children.only(typeof ze=="string"?ee.createElement("span",null,ze):ze),ee.createElement(ne.J,{prefixCls:`${$e}-menu`,expandIcon:ee.createElement("span",{className:`${$e}-menu-submenu-arrow`},ee.createElement(ge.Z,{className:`${$e}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Ze,validator:it=>{let{mode:It}=it}},ze)};return yt(ee.createElement(Se.Z,Object.assign({alignPoint:Ge},(0,de.Z)(se,["rootClassName"]),{mouseEnterDelay:We,mouseLeaveDelay:pt,visible:Ne,builtinPlacements:Re,arrow:!!_e,overlayClassName:Ie,prefixCls:$e,getPopupContainer:ht||Xe,transitionName:Et,trigger:lt,overlay:Be,placement:an,onVisibleChange:xt}),st))};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,Ke.Z=b},38854:function(mt,Ke,te){"use strict";te.d(Ke,{Z:function(){return a}});var ee=te(91857),ge=te(92310),be=te.n(ge),pe=te(59301),Se=te(18785),fe=te(3113),oe=te(36355),de=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{const{getPopupContainer:E,getPrefixCls:b,direction:x}=pe.useContext(oe.E_),{prefixCls:z,type:re="default",danger:se,disabled:ce,loading:_e,onClick:ye,htmlType:De,children:Ee,className:je,menu:Le,arrow:ht,autoFocus:Ye,overlay:vt,trigger:we,align:Fe,open:He,onOpenChange:at,placement:We,getPopupContainer:pt,href:Pt,icon:At=pe.createElement(Se.Z,null),title:Bt,buttonsRender:rt=Be=>Be,mouseEnterDelay:Xe,mouseLeaveDelay:Ct,overlayClassName:zt,overlayStyle:Et,destroyPopupOnHide:an,dropdownRender:$e}=y,yt=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"]),Lt=b("dropdown",z),on=`${Lt}-button`,[$t,st]=(0,me.Z)(Lt),lt={menu:Le,arrow:ht,autoFocus:Ye,align:Fe,disabled:ce,trigger:ce?[]:we,onOpenChange:at,getPopupContainer:pt||E,mouseEnterDelay:Xe,mouseLeaveDelay:Ct,overlayClassName:zt,overlayStyle:Et,destroyPopupOnHide:an,dropdownRender:$e},{compactSize:Ge,compactItemClassnames:Ne}=(0,le.ri)(Lt,x),et=be()(on,Ne,je,st);"overlay"in y&&(lt.overlay=vt),"open"in y&&(lt.open=He),"placement"in y?lt.placement=We:lt.placement=x==="rtl"?"bottomLeft":"bottomRight";const xt=pe.createElement(fe.ZP,{type:re,danger:se,disabled:ce,loading:_e,onClick:ye,htmlType:De,href:Pt,title:Bt},Ee),Ie=pe.createElement(fe.ZP,{type:re,danger:se,icon:At}),[Re,Ze]=rt([xt,Ie]);return $t(pe.createElement(de.Z.Compact,Object.assign({className:et,size:Ge,block:!0},yt),Re,pe.createElement(ee.Z,Object.assign({},lt),Ze)))};he.__ANT_BUTTON=!0;var ie=he;const ne=ee.Z;ne.Button=ie;var a=ne},47211:function(mt,Ke,te){"use strict";te.d(Ke,{Z:function(){return ae}});var ee=te(17313),ge=te(13826),be=te(92899),pe=te(29878),Se=te(19447),fe=te(83116),oe=te(37613),le=he=>{const{componentCls:ie,menuCls:ne,colorError:a,colorTextLightSolid:y}=he,E=`${ne}-item`;return{[`${ie}, ${ie}-menu-submenu`]:{[`${ne} ${E}`]:{[`&${E}-danger:not(${E}-disabled)`]:{color:a,"&:hover":{color:y,backgroundColor:a}}}}}};const me=he=>{const{componentCls:ie,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[{[ie]: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}},[`${ie}-wrap`]:{position:"relative",[`${b}-btn > ${x}-down`]:{fontSize:ye},[`${x}-down::before`]:{transition:`transform ${z}`}},[`${ie}-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${ie}-placement-bottomLeft, &${b}-slide-down-appear${b}-slide-down-appear-active${ie}-placement-bottomLeft, &${b}-slide-down-enter${b}-slide-down-enter-active${ie}-placement-bottom, &${b}-slide-down-appear${b}-slide-down-appear-active${ie}-placement-bottom, &${b}-slide-down-enter${b}-slide-down-enter-active${ie}-placement-bottomRight, &${b}-slide-down-appear${b}-slide-down-appear-active${ie}-placement-bottomRight`]:{animationName:ge.fJ},[`&${b}-slide-up-enter${b}-slide-up-enter-active${ie}-placement-topLeft, &${b}-slide-up-appear${b}-slide-up-appear-active${ie}-placement-topLeft, &${b}-slide-up-enter${b}-slide-up-enter-active${ie}-placement-top, &${b}-slide-up-appear${b}-slide-up-appear-active${ie}-placement-top, &${b}-slide-up-enter${b}-slide-up-enter-active${ie}-placement-topRight, &${b}-slide-up-appear${b}-slide-up-appear-active${ie}-placement-topRight`]:{animationName:ge.Qt},[`&${b}-slide-down-leave${b}-slide-down-leave-active${ie}-placement-bottomLeft, &${b}-slide-down-leave${b}-slide-down-leave-active${ie}-placement-bottom, &${b}-slide-down-leave${b}-slide-down-leave-active${ie}-placement-bottomRight`]:{animationName:ge.Uw},[`&${b}-slide-up-leave${b}-slide-up-leave-active${ie}-placement-topLeft, &${b}-slide-up-leave${b}-slide-up-leave-active${ie}-placement-top, &${b}-slide-up-leave${b}-slide-up-leave-active${ie}-placement-topRight`]:{animationName:ge.ly}})},(0,Se.ZP)(he,{colorBg:Ee,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${ie} ${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}},[`${ie}, ${ie}-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},[`${ie}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:he.paddingXS,[`${ie}-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 ${ie}-menu-submenu-title`]:{[`&, ${ie}-menu-submenu-arrow-icon`]:{color:_e,backgroundColor:Ee,cursor:"not-allowed"}},[`${ne}-submenu-selected ${ie}-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,pe._y)(he,"zoom-big")]]};var ae=(0,fe.Z)("Dropdown",(he,ie)=>{let{rootPrefixCls:ne}=ie;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,oe.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(mt,Ke,te){"use strict";var ee=te(59301),ge=te(34280),be=te(56762),pe=te(69507);function Se(){let fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const oe=(0,ee.useRef)({}),de=(0,be.Z)(),le=(0,pe.ZP)();return(0,ge.Z)(()=>{const me=le.subscribe(ae=>{oe.current=ae,fe&&de()});return()=>le.unsubscribe(me)},[]),oe.current}Ke.Z=Se},11611:function(mt,Ke,te){"use strict";te.d(Ke,{Z:function(){return Kt}});var ee=te(59301),ge=te(15277),be=te(92310),pe=te.n(be),Se=te(54476),fe=te(33885),oe=te(20068),de=te(42978),le=te(76190),me=te(75931),ae=te(55468),he=te(18929),ie=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"],ne=ee.createContext(null),a=0;function y(_t,ft){var Ft=ee.useState(function(){return a+=1,String(a)}),gt=(0,de.Z)(Ft,1),Gt=gt[0],Zt=ee.useContext(ne),Tt={data:ft,canPreview:_t};return ee.useEffect(function(){if(Zt)return Zt.register(Gt,Tt)},[]),ee.useEffect(function(){Zt&&Zt.register(Gt,Tt)},[_t,ft]),Gt}function E(_t){return new Promise(function(ft){var Ft=document.createElement("img");Ft.onerror=function(){return ft(!1)},Ft.onload=function(){return ft(!0)},Ft.src=_t})}function b(_t){var ft=_t.src,Ft=_t.isCustomPlaceholder,gt=_t.fallback,Gt=(0,ee.useState)(Ft?"loading":"normal"),Zt=(0,de.Z)(Gt,2),Tt=Zt[0],kt=Zt[1],Xt=(0,ee.useRef)(!1),dn=Tt==="error";(0,ee.useEffect)(function(){E(ft).then(function(mn){mn||kt("error")})},[ft]),(0,ee.useEffect)(function(){Ft&&!Xt.current?kt("loading"):dn&&kt("normal")},[ft]);var xn=function(){kt("normal")},Fn=function(An){Xt.current=!1,Tt==="loading"&&An!=null&&An.complete&&(An.naturalWidth||An.naturalHeight)&&(Xt.current=!0,xn())},Qn=dn&>?{src:gt}:{onLoad:xn,src:ft};return[Fn,Qn,Tt]}var x=te(86923),z=te(8224),re=te(10228),se=te(48736);function ce(_t,ft,Ft,gt){var Gt=ft+Ft,Zt=(Ft-gt)/2;if(Ft>gt){if(ft>0)return(0,oe.Z)({},_t,Zt);if(ft<0&&Gtgt)return(0,oe.Z)({},_t,ft<0?Zt:-Zt);return{}}function _e(_t,ft,Ft,gt){var Gt=(0,ae.g1)(),Zt=Gt.width,Tt=Gt.height,kt=null;return _t<=Zt&&ft<=Tt?kt={x:0,y:0}:(_t>Zt||ft>Tt)&&(kt=(0,fe.Z)((0,fe.Z)({},ce("x",Ft,_t,Zt)),ce("y",gt,ft,Tt))),kt}var ye=te(13697),De=te(16089),Ee={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function je(_t,ft,Ft,gt){var Gt=(0,ee.useRef)(null),Zt=(0,ee.useRef)([]),Tt=(0,ee.useState)(Ee),kt=(0,de.Z)(Tt,2),Xt=kt[0],dn=kt[1],xn=function(An){dn(Ee),gt&&!(0,ye.Z)(Ee,Xt)&>({transform:Ee,action:An})},Fn=function(An,ur){Gt.current===null&&(Zt.current=[],Gt.current=(0,De.Z)(function(){dn(function(rr){var ir=rr;return Zt.current.forEach(function(Wt){ir=(0,fe.Z)((0,fe.Z)({},ir),Wt)}),Gt.current=null,gt==null||gt({transform:ir,action:ur}),ir})})),Zt.current.push((0,fe.Z)((0,fe.Z)({},Xt),An))},Qn=function(An,ur,rr,ir){var Wt=_t.current,oi=Wt.width,wr=Wt.height,Tr=Wt.offsetWidth,kr=Wt.offsetHeight,un=Wt.offsetLeft,Sn=Wt.offsetTop,Nn=An,pn=Xt.scale*An;pn>Ft?(Nn=Ft/Xt.scale,pn=Ft):pn1,di=$r&&Wt>=1,Ri=je(yi,un,Nn,gi),zr=Ri.transform,Hi=Ri.resetTransform,Pi=Ri.updateTransform,fi=Ri.dispatchZoomChange,oo=(0,ee.useState)(!0),bi=(0,de.Z)(oo,2),Vi=bi[0],Ti=bi[1],Ci=zr.rotate,hi=zr.scale,Gi=zr.x,Qi=zr.y,bo=pe()((0,oe.Z)({},"".concat(Ft,"-moving"),ai));(0,ee.useEffect)(function(){Vi||Ti(!0)},[Vi]);var po=function(){Hi("close")},Ji=function(){fi(we+Tr,"zoomIn")},$n=function(){fi(we/(we+Tr),"zoomOut")},En=function(){Pi({rotate:Ci+90},"rotateRight")},In=function(){Pi({rotate:Ci-90},"rotateLeft")},Bn=function(){Pi({flipX:!zr.flipX},"flipX")},gr=function(){Pi({flipY:!zr.flipY},"flipY")},Ir=function(pr){pr==null||pr.preventDefault(),pr==null||pr.stopPropagation(),rr>0&&(Ti(!1),Hi("prev"),Si==null||Si(rr-1,rr))},Xr=function(pr){pr==null||pr.preventDefault(),pr==null||pr.stopPropagation(),rr0&&(Or=we/Or),fi(Or,"wheel",pr.clientX,pr.clientY)}},Ei=function(pr){!dn||!ni||(pr.keyCode===re.Z.LEFT?Ir():pr.keyCode===re.Z.RIGHT&&Xr())},lo=function(pr){dn&&(hi!==1?Pi({x:0,y:0,scale:1},"doubleClick"):fi(we+Tr,"doubleClick",pr.clientX,pr.clientY))};(0,ee.useEffect)(function(){var Jr,pr,Li,Ui;if(kt){Li=(0,z.Z)(window,"mouseup",Qr,!1),Ui=(0,z.Z)(window,"mousemove",li,!1);try{window.top!==window.self&&(Jr=(0,z.Z)(window.top,"mouseup",Qr,!1),pr=(0,z.Z)(window.top,"mousemove",li,!1))}catch(Or){(0,se.Kp)(!1,"[rc-image] ".concat(Or))}}return function(){var Or,si,to,qi;(Or=Li)===null||Or===void 0||Or.remove(),(si=Ui)===null||si===void 0||si.remove(),(to=Jr)===null||to===void 0||to.remove(),(qi=pr)===null||qi===void 0||qi.remove()}},[dn,ai,Gi,Qi,Ci,kt]),(0,ee.useEffect)(function(){var Jr=(0,z.Z)(window,"keydown",Ei,!1);return function(){Jr.remove()}},[dn,ni,rr]);var eo=ee.createElement(We,(0,Se.Z)({},ti,{width:ft.width,height:ft.height,imgRef:yi,className:"".concat(Ft,"-img"),alt:Gt,style:{transform:"translate3d(".concat(zr.x,"px, ").concat(zr.y,"px, 0) scale3d(").concat(zr.flipX?"-":"").concat(hi,", ").concat(zr.flipY?"-":"").concat(hi,", 1) rotate(").concat(Ci,"deg)"),transitionDuration:!Vi&&"0s"},fallback:Zt,src:gt,onWheel:ji,onMouseDown:ui,onDoubleClick:lo}));return ee.createElement(ee.Fragment,null,ee.createElement(x.Z,(0,Se.Z)({transitionName:cr,maskTransitionName:Ar,closable:!1,keyboard:!0,prefixCls:Ft,onClose:Xt,visible:dn,wrapClassName:bo,rootClassName:Qn,getContainer:An},Mi,{afterClose:po}),ee.createElement("div",{className:"".concat(Ft,"-img-wrapper")},Ur?Ur(eo,(0,fe.Z)({transform:zr},$r?{current:rr}:{})):eo)),ee.createElement(vt,{visible:dn,transform:zr,maskTransitionName:Ar,closeIcon:mn,getContainer:An,prefixCls:Ft,rootClassName:Qn,icons:Fn,countRender:oi,showSwitch:ni,showProgress:di,current:rr,count:Wt,scale:hi,minScale:un,maxScale:Nn,toolbarRender:vi,onSwitchLeft:Ir,onSwitchRight:Xr,onZoomIn:Ji,onZoomOut:$n,onRotateRight:En,onRotateLeft:In,onFlipX:Bn,onFlipY:gr,onClose:Xt}))},Pt=pt,At=te(94480);function Bt(_t){var ft=ee.useState({}),Ft=(0,de.Z)(ft,2),gt=Ft[0],Gt=Ft[1],Zt=ee.useCallback(function(kt,Xt){return Gt(function(dn){return(0,fe.Z)((0,fe.Z)({},dn),{},(0,oe.Z)({},kt,Xt))}),function(){Gt(function(dn){var xn=(0,fe.Z)({},dn);return delete xn[kt],xn})}},[]),Tt=ee.useMemo(function(){return _t?_t.map(function(kt){if(typeof kt=="string")return{data:{src:kt}};var Xt={};return Object.keys(kt).forEach(function(dn){["src"].concat((0,At.Z)(ie)).includes(dn)&&(Xt[dn]=kt[dn])}),{data:Xt}}):Object.keys(gt).reduce(function(kt,Xt){var dn=gt[Xt],xn=dn.canPreview,Fn=dn.data;return xn&&kt.push({data:Fn,id:Xt}),kt},[])},[_t,gt]);return[Tt,Zt]}var rt=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],Xe=["src"],Ct=function(ft){var Ft,gt=ft.previewPrefixCls,Gt=gt===void 0?"rc-image-preview":gt,Zt=ft.children,Tt=ft.icons,kt=Tt===void 0?{}:Tt,Xt=ft.items,dn=ft.preview,xn=ft.fallback,Fn=(0,le.Z)(dn)==="object"?dn:{},Qn=Fn.visible,mn=Fn.onVisibleChange,An=Fn.getContainer,ur=Fn.current,rr=Fn.movable,ir=Fn.minScale,Wt=Fn.maxScale,oi=Fn.countRender,wr=Fn.closeIcon,Tr=Fn.onChange,kr=Fn.onTransform,un=Fn.toolbarRender,Sn=Fn.imageRender,Nn=(0,me.Z)(Fn,rt),pn=Bt(Xt),cr=(0,de.Z)(pn,2),fr=cr[0],Ar=cr[1],Ur=(0,he.Z)(0,{value:ur}),ti=(0,de.Z)(Ur,2),vi=ti[0],gi=ti[1],Si=(0,ee.useState)(!1),Mi=(0,de.Z)(Si,2),yi=Mi[0],wi=Mi[1],xi=((Ft=fr[vi])===null||Ft===void 0?void 0:Ft.data)||{},Oi=xi.src,ai=(0,me.Z)(xi,Xe),jr=(0,he.Z)(!!Qn,{value:Qn,onChange:function(Ci,hi){mn==null||mn(Ci,hi,vi)}}),$r=(0,de.Z)(jr,2),ni=$r[0],di=$r[1],Ri=(0,ee.useState)(null),zr=(0,de.Z)(Ri,2),Hi=zr[0],Pi=zr[1],fi=ee.useCallback(function(Ti,Ci,hi){var Gi=fr.findIndex(function(Qi){return Qi.id===Ti});di(!0),Pi({x:Ci,y:hi}),gi(Gi<0?0:Gi),wi(!0)},[fr]);ee.useEffect(function(){ni?yi||gi(0):wi(!1)},[ni]);var oo=function(Ci,hi){gi(Ci),Tr==null||Tr(Ci,hi)},bi=function(){di(!1),Pi(null)},Vi=ee.useMemo(function(){return{register:Ar,onPreview:fi}},[Ar,fi]);return ee.createElement(ne.Provider,{value:Vi},Zt,ee.createElement(Pt,(0,Se.Z)({"aria-hidden":!ni,movable:rr,visible:ni,prefixCls:Gt,closeIcon:wr,onClose:bi,mousePosition:Hi,imgCommonProps:ai,src:Oi,fallback:xn,icons:kt,minScale:ir,maxScale:Wt,getContainer:An,current:vi,count:fr.length,countRender:oi,onTransform:kr,toolbarRender:un,imageRender:Sn,onChange:oo},Nn)))},zt=Ct,Et=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],an=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],$e=function(ft){var Ft=ft.src,gt=ft.alt,Gt=ft.onPreviewClose,Zt=ft.prefixCls,Tt=Zt===void 0?"rc-image":Zt,kt=ft.previewPrefixCls,Xt=kt===void 0?"".concat(Tt,"-preview"):kt,dn=ft.placeholder,xn=ft.fallback,Fn=ft.width,Qn=ft.height,mn=ft.style,An=ft.preview,ur=An===void 0?!0:An,rr=ft.className,ir=ft.onClick,Wt=ft.onError,oi=ft.wrapperClassName,wr=ft.wrapperStyle,Tr=ft.rootClassName,kr=(0,me.Z)(ft,Et),un=dn&&dn!==!0,Sn=(0,le.Z)(ur)==="object"?ur:{},Nn=Sn.src,pn=Sn.visible,cr=pn===void 0?void 0:pn,fr=Sn.onVisibleChange,Ar=fr===void 0?Gt:fr,Ur=Sn.getContainer,ti=Ur===void 0?void 0:Ur,vi=Sn.mask,gi=Sn.maskClassName,Si=Sn.movable,Mi=Sn.icons,yi=Sn.scaleStep,wi=Sn.minScale,xi=Sn.maxScale,Oi=Sn.imageRender,ai=Sn.toolbarRender,jr=(0,me.Z)(Sn,an),$r=Nn!=null?Nn:Ft,ni=(0,he.Z)(!!cr,{value:cr,onChange:Ar}),di=(0,de.Z)(ni,2),Ri=di[0],zr=di[1],Hi=b({src:Ft,isCustomPlaceholder:un,fallback:xn}),Pi=(0,de.Z)(Hi,3),fi=Pi[0],oo=Pi[1],bi=Pi[2],Vi=(0,ee.useState)(null),Ti=(0,de.Z)(Vi,2),Ci=Ti[0],hi=Ti[1],Gi=(0,ee.useContext)(ne),Qi=!!ur,bo=function(){zr(!1),hi(null)},po=pe()(Tt,oi,Tr,(0,oe.Z)({},"".concat(Tt,"-error"),bi==="error")),Ji=(0,ee.useMemo)(function(){var Bn={};return ie.forEach(function(gr){ft[gr]!==void 0&&(Bn[gr]=ft[gr])}),Bn},ie.map(function(Bn){return ft[Bn]})),$n=(0,ee.useMemo)(function(){return(0,fe.Z)((0,fe.Z)({},Ji),{},{src:$r})},[$r,Ji]),En=y(Qi,$n),In=function(gr){var Ir=(0,ae.os)(gr.target),Xr=Ir.left,Qr=Ir.top;Gi?Gi.onPreview(En,Xr,Qr):(hi({x:Xr,y:Qr}),zr(!0)),ir==null||ir(gr)};return ee.createElement(ee.Fragment,null,ee.createElement("div",(0,Se.Z)({},kr,{className:po,onClick:Qi?In:ir,style:(0,fe.Z)({width:Fn,height:Qn},wr)}),ee.createElement("img",(0,Se.Z)({},Ji,{className:pe()("".concat(Tt,"-img"),(0,oe.Z)({},"".concat(Tt,"-img-placeholder"),dn===!0),rr),style:(0,fe.Z)({height:Qn},mn),ref:fi},oo,{width:Fn,height:Qn,onError:Wt})),bi==="loading"&&ee.createElement("div",{"aria-hidden":"true",className:"".concat(Tt,"-placeholder")},dn),vi&&Qi&&ee.createElement("div",{className:pe()("".concat(Tt,"-mask"),gi),style:{display:(mn==null?void 0:mn.display)==="none"?"none":void 0}},vi)),!Gi&&Qi&&ee.createElement(Pt,(0,Se.Z)({"aria-hidden":!Ri,visible:Ri,prefixCls:Xt,onClose:bo,mousePosition:Ci,src:$r,alt:gt,fallback:xn,getContainer:ti,icons:Mi,movable:Si,scaleStep:yi,minScale:wi,maxScale:xi,rootClassName:Tr,imageRender:Oi,imgCommonProps:Ji,toolbarRender:ai},jr)))};$e.PreviewGroup=zt,$e.displayName="Image";var yt=$e,Lt=yt,on=te(62892),$t=te(36355),st=te(31724),lt=te(99267),Ge=te(33853),Ne=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"},xt=et,Ie=te(7657),Re=function(ft,Ft){return ee.createElement(Ie.Z,(0,Se.Z)({},ft,{ref:Ft,icon:xt}))},Ze=ee.forwardRef(Re),Be=Ze,ze={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=ze,It=function(ft,Ft){return ee.createElement(Ie.Z,(0,Se.Z)({},ft,{ref:Ft,icon:it}))},Mt=ee.forwardRef(It),jt=Mt,Dt={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"},Ht=Dt,bt=function(ft,Ft){return ee.createElement(Ie.Z,(0,Se.Z)({},ft,{ref:Ft,icon:Ht}))},fn=ee.forwardRef(bt),cn=fn,wt={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"},yn=wt,vn=function(ft,Ft){return ee.createElement(Ie.Z,(0,Se.Z)({},ft,{ref:Ft,icon:yn}))},zn=ee.forwardRef(vn),wn=zn,Wn={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"},qn=Wn,Kn=function(ft,Ft){return ee.createElement(Ie.Z,(0,Se.Z)({},ft,{ref:Ft,icon:qn}))},Vn=ee.forwardRef(Kn),vr=Vn,lr=te(64993),sn=te(73819),Yn=te(17313),or=te(29878),Zn=te(1950),ar=te(83116),Dr=te(37613);const Mr=_t=>({position:_t||"absolute",inset:0}),Er=_t=>{const{iconCls:ft,motionDurationSlow:Ft,paddingXXS:gt,marginXXS:Gt,prefixCls:Zt,colorTextLightSolid:Tt}=_t;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:Tt,background:new lr.C("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${Ft}`,[`.${Zt}-mask-info`]:Object.assign(Object.assign({},Yn.vS),{padding:`0 ${gt}px`,[ft]:{marginInlineEnd:Gt,svg:{verticalAlign:"baseline"}}})}},Br=_t=>{const{previewCls:ft,modalMaskBg:Ft,paddingSM:gt,marginXL:Gt,margin:Zt,paddingLG:Tt,previewOperationColorDisabled:kt,previewOperationHoverColor:Xt,motionDurationSlow:dn,iconCls:xn,colorTextLightSolid:Fn}=_t,Qn=new lr.C(Ft).setAlpha(.1),mn=Qn.clone().setAlpha(.2);return{[`${ft}-footer`]:{position:"fixed",bottom:Gt,left:{_skip_check_:!0,value:0},width:"100%",display:"flex",flexDirection:"column",alignItems:"center",color:_t.previewOperationColor},[`${ft}-progress`]:{marginBottom:Zt},[`${ft}-close`]:{position:"fixed",top:Gt,right:{_skip_check_:!0,value:Gt},display:"flex",color:Fn,backgroundColor:Qn.toRgbString(),borderRadius:"50%",padding:gt,outline:0,border:0,cursor:"pointer",transition:`all ${dn}`,"&:hover":{backgroundColor:mn.toRgbString()},[`& > ${xn}`]:{fontSize:_t.previewOperationSize}},[`${ft}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${Tt}px`,backgroundColor:Qn.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:gt,padding:gt,cursor:"pointer",transition:`all ${dn}`,userSelect:"none",[`&:not(${ft}-operations-operation-disabled):hover > ${xn}`]:{color:Xt},"&-disabled":{color:kt,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${xn}`]:{fontSize:_t.previewOperationSize}}}}},sr=_t=>{const{modalMaskBg:ft,iconCls:Ft,previewOperationColorDisabled:gt,previewCls:Gt,zIndexPopup:Zt,motionDurationSlow:Tt}=_t,kt=new lr.C(ft).setAlpha(.1),Xt=kt.clone().setAlpha(.2);return{[`${Gt}-switch-left, ${Gt}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:Zt+1,display:"flex",alignItems:"center",justifyContent:"center",width:_t.imagePreviewSwitchSize,height:_t.imagePreviewSwitchSize,marginTop:-_t.imagePreviewSwitchSize/2,color:_t.previewOperationColor,background:kt.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${Tt}`,userSelect:"none","&:hover":{background:Xt.toRgbString()},"&-disabled":{"&, &:hover":{color:gt,background:"transparent",cursor:"not-allowed",[`> ${Ft}`]:{cursor:"not-allowed"}}},[`> ${Ft}`]:{fontSize:_t.previewOperationSize}},[`${Gt}-switch-left`]:{insetInlineStart:_t.marginSM},[`${Gt}-switch-right`]:{insetInlineEnd:_t.marginSM}}},Kr=_t=>{const{motionEaseOut:ft,previewCls:Ft,motionDurationSlow:gt,componentCls:Gt}=_t;return[{[`${Gt}-preview-root`]:{[Ft]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${Ft}-body`]:Object.assign(Object.assign({},Mr()),{overflow:"hidden"}),[`${Ft}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${gt} ${ft} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},Mr()),{transition:`transform ${gt} ${ft} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${Ft}-moving`]:{[`${Ft}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${Gt}-preview-root`]:{[`${Ft}-wrap`]:{zIndex:_t.zIndexPopup}}},{[`${Gt}-preview-operations-wrapper`]:{position:"fixed",zIndex:_t.zIndexPopup+1},"&":[Br(_t),sr(_t)]}]},Ut=_t=>{const{componentCls:ft}=_t;return{[ft]:{position:"relative",display:"inline-block",[`${ft}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${ft}-img-placeholder`]:{backgroundColor:_t.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${ft}-mask`]:Object.assign({},Er(_t)),[`${ft}-mask:hover`]:{opacity:1},[`${ft}-placeholder`]:Object.assign({},Mr())}}},ue=_t=>{const{previewCls:ft}=_t;return{[`${ft}-root`]:(0,or._y)(_t,"zoom"),"&":(0,Zn.J$)(_t,!0)}};var ve=(0,ar.Z)("Image",_t=>{const ft=`${_t.componentCls}-preview`,Ft=(0,Dr.TS)(_t,{previewCls:ft,modalMaskBg:new lr.C("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:_t.controlHeightLG});return[Ut(Ft),Kr(Ft),(0,sn.QA)((0,Dr.TS)(Ft,{componentCls:ft})),ue(Ft)]},_t=>({zIndexPopup:_t.zIndexPopupBase+80,previewOperationColor:new lr.C(_t.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new lr.C(_t.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new lr.C(_t.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:_t.fontSizeIcon*1.5})),Pe=function(_t,ft){var Ft={};for(var gt in _t)Object.prototype.hasOwnProperty.call(_t,gt)&&ft.indexOf(gt)<0&&(Ft[gt]=_t[gt]);if(_t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Gt=0,gt=Object.getOwnPropertySymbols(_t);Gt{var{previewPrefixCls:ft,preview:Ft}=_t,gt=Pe(_t,["previewPrefixCls","preview"]);const{getPrefixCls:Gt}=ee.useContext($t.E_),Zt=Gt("image",ft),Tt=`${Zt}-preview`,kt=Gt(),[Xt,dn]=ve(Zt),xn=ee.useMemo(()=>{var Fn;if(Ft===!1)return Ft;const Qn=typeof Ft=="object"?Ft:{},mn=pe()(dn,(Fn=Qn.rootClassName)!==null&&Fn!==void 0?Fn:"");return Object.assign(Object.assign({},Qn),{transitionName:(0,on.m)(kt,"zoom",Qn.transitionName),maskTransitionName:(0,on.m)(kt,"fade",Qn.maskTransitionName),rootClassName:mn})},[Ft]);return Xt(ee.createElement(Lt.PreviewGroup,Object.assign({preview:xn,previewPrefixCls:Tt,icons:xe},gt)))},dt=function(_t,ft){var Ft={};for(var gt in _t)Object.prototype.hasOwnProperty.call(_t,gt)&&ft.indexOf(gt)<0&&(Ft[gt]=_t[gt]);if(_t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Gt=0,gt=Object.getOwnPropertySymbols(_t);Gt{const{prefixCls:ft,preview:Ft,className:gt,rootClassName:Gt,style:Zt}=_t,Tt=dt(_t,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:kt,locale:Xt=st.Z,getPopupContainer:dn,image:xn}=ee.useContext($t.E_),Fn=kt("image",ft),Qn=kt(),mn=Xt.Image||st.Z.Image,[An,ur]=ve(Fn),rr=pe()(Gt,ur),ir=pe()(gt,ur,xn==null?void 0:xn.className),Wt=ee.useMemo(()=>{if(Ft===!1)return Ft;const wr=typeof Ft=="object"?Ft:{},{getContainer:Tr}=wr,kr=dt(wr,["getContainer"]);return Object.assign(Object.assign({mask:ee.createElement("div",{className:`${Fn}-mask-info`},ee.createElement(ge.Z,null),mn==null?void 0:mn.preview),icons:xe},kr),{getContainer:Tr||dn,transitionName:(0,on.m)(Qn,"zoom",wr.transitionName),maskTransitionName:(0,on.m)(Qn,"fade",wr.maskTransitionName)})},[Ft,mn]),oi=Object.assign(Object.assign({},xn==null?void 0:xn.style),Zt);return An(ee.createElement(Lt,Object.assign({prefixCls:Fn,preview:Wt,rootClassName:rr,className:ir,style:oi},Tt)))};tn.PreviewGroup=tt;var Kt=tn},45818:function(mt,Ke,te){"use strict";te.d(Ke,{D:function(){return z},Z:function(){return ce}});var ee=te(54476),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"},pe=be,Se=te(7657),fe=function(ye,De){return ge.createElement(Se.Z,(0,ee.Z)({},ye,{ref:De,icon:pe}))},oe=ge.forwardRef(fe),de=oe,le=te(33853),me=te(38819),ae=te(92310),he=te.n(ae),ie=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{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:ht=!1,theme:Ye="dark",style:vt={},collapsible:we=!1,reverseArrow:Fe=!1,width:He=200,collapsedWidth:at=80,zeroWidthTriggerStyle:We,breakpoint:pt,onCollapse:Pt,onBreakpoint:At}=_e,Bt=b(_e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:rt}=(0,ge.useContext)(E.Gs),[Xe,Ct]=(0,ge.useState)("collapsed"in _e?_e.collapsed:ht),[zt,Et]=(0,ge.useState)(!1);(0,ge.useEffect)(()=>{"collapsed"in _e&&Ct(_e.collapsed)},[_e.collapsed]);const an=(st,lt)=>{"collapsed"in _e||Ct(st),Pt==null||Pt(st,lt)},$e=(0,ge.useRef)();$e.current=st=>{Et(st.matches),At==null||At(st.matches),Xe!==st.matches&&an(st.matches,"responsive")},(0,ge.useEffect)(()=>{function st(Ge){return $e.current(Ge)}let lt;if(typeof window!="undefined"){const{matchMedia:Ge}=window;if(Ge&&pt&&pt in x){lt=Ge(`(max-width: ${x[pt]})`);try{lt.addEventListener("change",st)}catch(Ne){lt.addListener(st)}st(lt)}}return()=>{try{lt==null||lt.removeEventListener("change",st)}catch(Ge){lt==null||lt.removeListener(st)}}},[pt]),(0,ge.useEffect)(()=>{const st=re("ant-sider-");return rt.addSider(st),()=>rt.removeSider(st)},[]);const yt=()=>{an(!Xe,"clickTrigger")},{getPrefixCls:Lt}=(0,ge.useContext)(y.E_),on=()=>{const st=Lt("layout-sider",De),lt=(0,ie.Z)(Bt,["collapsed"]),Ge=Xe?at:He,Ne=a(Ge)?`${Ge}px`:String(Ge),et=parseFloat(String(at||0))===0?ge.createElement("span",{onClick:yt,className:he()(`${st}-zero-width-trigger`,`${st}-zero-width-trigger-${Fe?"right":"left"}`),style:We},je||ge.createElement(de,null)):null,Re={expanded:Fe?ge.createElement(me.Z,null):ge.createElement(le.Z,null),collapsed:Fe?ge.createElement(le.Z,null):ge.createElement(me.Z,null)}[Xe?"collapsed":"expanded"],Ze=je!==null?et||ge.createElement("div",{className:`${st}-trigger`,onClick:yt,style:{width:Ne}},je||Re):null,Be=Object.assign(Object.assign({},vt),{flex:`0 0 ${Ne}`,maxWidth:Ne,minWidth:Ne,width:Ne}),ze=he()(st,`${st}-${Ye}`,{[`${st}-collapsed`]:!!Xe,[`${st}-has-trigger`]:we&&je!==null&&!et,[`${st}-below`]:!!zt,[`${st}-zero-width`]:parseFloat(Ne)===0},Ee);return ge.createElement("aside",Object.assign({className:ze},lt,{style:Be,ref:ye}),ge.createElement("div",{className:`${st}-children`},Le),we||zt&&et?Ze:null)},$t=ge.useMemo(()=>({siderCollapsed:Xe}),[Xe]);return ge.createElement(z.Provider,{value:$t},on())})},84966:function(mt,Ke,te){"use strict";te.d(Ke,{VY:function(){return z},$_:function(){return x},h4:function(){return b},Gs:function(){return ie},ZP:function(){return re}});var ee=te(94480),ge=te(92310),be=te.n(ge),pe=te(2738),Se=te(59301),fe=te(36355),oe=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:ht,headerColor:Ye,footerPadding:vt,triggerHeight:we,zeroTriggerHeight:Fe,zeroTriggerWidth:He,motionDurationMid:at,motionDurationSlow:We,fontSize:pt,borderRadius:Pt,bodyBg:At,headerBg:Bt,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 ${at}, 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 ${at}`},"&-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:Pt,borderEndEndRadius:Pt,borderEndStartRadius:0,cursor:"pointer",transition:`background ${We} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${We}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-He,borderStartStartRadius:Pt,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Pt}}}}},le(se)),{"&-rtl":{direction:"rtl"}}),[`${_e}-header`]:{height:Le,padding:ht,color:Ye,lineHeight:`${Le}px`,background:Bt,[`${ce}-menu`]:{lineHeight:"inherit"}},[`${_e}-footer`]:{padding:vt,color:ye,fontSize:pt,background:Ee},[`${_e}-content`]:{flex:"auto",minHeight:0}}};var ae=(0,oe.Z)("Layout",se=>[me(se)],se=>{const{colorBgLayout:ce,controlHeight:_e,controlHeightLG:ye,colorText:De,controlHeightSM:Ee,marginXXS:je,colorTextLightSolid:Le,colorBgContainer:ht}=se,Ye=ye*1.25;return{colorBgHeader:"#001529",colorBgBody:ce,colorBgTrigger:"#002140",bodyBg:ce,headerBg:"#001529",headerHeight:_e*2,headerPadding:`0 ${Ye}px`,headerColor:De,footerPadding:`${Ee}px ${Ye}px`,footerBg:ce,siderBg:"#001529",triggerHeight:ye+je*2,triggerBg:"#002140",triggerColor:Le,zeroTriggerWidth:ye,zeroTriggerHeight:ye,lightSiderBg:ht,lightTriggerBg:ht,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);Denull,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_),ht=Le("layout",_e),[Ye,vt]=ae(ht),we=ye?`${ht}-${ye}`:ht;return Ye(Se.createElement(Ee,Object.assign({className:be()(_e||we,De,vt),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:ht,hasSider:Ye,tagName:vt,style:we}=se,Fe=he(se,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),He=(0,pe.Z)(Fe,["suffixCls"]),{getPrefixCls:at,layout:We}=Se.useContext(fe.E_),pt=at("layout",Ee),[Pt,At]=ae(pt),Bt=be()(pt,{[`${pt}-has-sider`]:typeof Ye=="boolean"?Ye:ye.length>0,[`${pt}-rtl`]:_e==="rtl"},We==null?void 0:We.className,je,Le,At),rt=Se.useMemo(()=>({siderHook:{addSider:Xe=>{De(Ct=>[].concat((0,ee.Z)(Ct),[Xe]))},removeSider:Xe=>{De(Ct=>Ct.filter(zt=>zt!==Xe))}}}),[]);return Pt(Se.createElement(ie.Provider,{value:rt},Se.createElement(vt,Object.assign({ref:ce,className:Bt,style:Object.assign(Object.assign({},We==null?void 0:We.style),we)},He),ht)))}),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(mt,Ke,te){"use strict";te.d(Ke,{J:function(){return fe}});var ee=te(59301),ge=te(33234),be=te(70425),pe=function(oe,de){var le={};for(var me in oe)Object.prototype.hasOwnProperty.call(oe,me)&&de.indexOf(me)<0&&(le[me]=oe[me]);if(oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ae=0,me=Object.getOwnPropertySymbols(oe);ae{const{children:le}=oe,me=pe(oe,["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:de}):le))});Ke.Z=Se},20834:function(mt,Ke,te){"use strict";te.d(Ke,{default:function(){return $t}});var ee=te(15285),ge=te(59301),be=te(45818),pe=te(92310),Se=te.n(pe),fe=te(36355),oe=function(st,lt){var Ge={};for(var Ne in st)Object.prototype.hasOwnProperty.call(st,Ne)&<.indexOf(Ne)<0&&(Ge[Ne]=st[Ne]);if(st!=null&&typeof Object.getOwnPropertySymbols=="function")for(var et=0,Ne=Object.getOwnPropertySymbols(st);et{const{prefixCls:lt,className:Ge,dashed:Ne}=st,et=oe(st,["prefixCls","className","dashed"]),{getPrefixCls:xt}=ge.useContext(fe.E_),Ie=xt("menu",lt),Re=Se()({[`${Ie}-item-divider-dashed`]:!!Ne},Ge);return ge.createElement(ee.iz,Object.assign({className:Re},et))},me=te(11592),ae=te(2738),he=te(6848),ie=te(92343),a=(0,ge.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),E=st=>{var lt;const{className:Ge,children:Ne,icon:et,title:xt,danger:Ie}=st,{prefixCls:Re,firstLevel:Ze,direction:Be,disableMenuItemTitleTooltip:ze,inlineCollapsed:it}=ge.useContext(a),It=fn=>{const cn=ge.createElement("span",{className:`${Re}-title-content`},Ne);return(!et||(0,ie.l$)(Ne)&&Ne.type==="span")&&Ne&&fn&&Ze&&typeof Ne=="string"?ge.createElement("div",{className:`${Re}-inline-collapsed-noicon`},Ne.charAt(0)):cn},{siderCollapsed:Mt}=ge.useContext(be.D);let jt=xt;typeof xt=="undefined"?jt=Ze?Ne:"":xt===!1&&(jt="");const Dt={title:jt};!Mt&&!it&&(Dt.title=null,Dt.open=!1);const Ht=(0,me.Z)(Ne).length;let bt=ge.createElement(ee.ck,Object.assign({},(0,ae.Z)(st,["title","icon","danger"]),{className:Se()({[`${Re}-item-danger`]:Ie,[`${Re}-item-only-child`]:(et?Ht+1:Ht)===1},Ge),title:typeof xt=="string"?xt:void 0}),(0,ie.Tm)(et,{className:Se()((0,ie.l$)(et)?(lt=et.props)===null||lt===void 0?void 0:lt.className:"",`${Re}-item-icon`)}),It(it));return ze||(bt=ge.createElement(he.Z,Object.assign({},Dt,{placement:Be==="rtl"?"left":"right",overlayClassName:`${Re}-inline-collapsed-tooltip`}),bt)),bt},x=st=>{var lt;const{popupClassName:Ge,icon:Ne,title:et,theme:xt}=st,Ie=ge.useContext(a),{prefixCls:Re,inlineCollapsed:Ze,theme:Be}=Ie,ze=(0,ee.Xl)();let it;if(!Ne)it=Ze&&!ze.length&&et&&typeof et=="string"?ge.createElement("div",{className:`${Re}-inline-collapsed-noicon`},et.charAt(0)):ge.createElement("span",{className:`${Re}-title-content`},et);else{const Mt=(0,ie.l$)(et)&&et.type==="span";it=ge.createElement(ge.Fragment,null,(0,ie.Tm)(Ne,{className:Se()((0,ie.l$)(Ne)?(lt=Ne.props)===null||lt===void 0?void 0:lt.className:"",`${Re}-item-icon`)}),Mt?et:ge.createElement("span",{className:`${Re}-title-content`},et))}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)(st,["icon"]),{title:it,popupClassName:Se()(Re,Ge,`${Re}-${xt||Be}`)})))},z=te(18785),re=te(70425),se=te(62892),ce=te(40875),_e=function(st,lt){var Ge={};for(var Ne in st)Object.prototype.hasOwnProperty.call(st,Ne)&<.indexOf(Ne)<0&&(Ge[Ne]=st[Ne]);if(st!=null&&typeof Object.getOwnPropertySymbols=="function")for(var et=0,Ne=Object.getOwnPropertySymbols(st);et{if(lt&&typeof lt=="object"){const Ne=lt,{label:et,children:xt,key:Ie,type:Re}=Ne,Ze=_e(Ne,["label","children","key","type"]),Be=Ie!=null?Ie:`tmp-${Ge}`;return xt||Re==="group"?Re==="group"?ge.createElement(ee.BW,Object.assign({key:Be},Ze,{title:et}),ye(xt)):ge.createElement(x,Object.assign({key:Be},Ze,{title:et}),ye(xt)):Re==="divider"?ge.createElement(le,Object.assign({key:Be},Ze)):ge.createElement(E,Object.assign({key:Be},Ze),et)}return null}).filter(lt=>lt)}function De(st){return ge.useMemo(()=>st&&ye(st),[st])}var Ee=te(64993),je=te(17313),Le=te(8378),ht=te(13826),Ye=te(29878),vt=te(83116),we=te(37613),He=st=>{const{componentCls:lt,motionDurationSlow:Ge,horizontalLineHeight:Ne,colorSplit:et,lineWidth:xt,lineType:Ie,itemPaddingInline:Re}=st;return{[`${lt}-horizontal`]:{lineHeight:Ne,border:0,borderBottom:`${xt}px ${Ie} ${et}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${lt}-item, ${lt}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Re},[`> ${lt}-item:hover, > ${lt}-item-active, > ${lt}-submenu ${lt}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${lt}-item, ${lt}-submenu-title`]:{transition:[`border-color ${Ge}`,`background ${Ge}`].join(",")},[`${lt}-submenu-arrow`]:{display:"none"}}}},We=st=>{let{componentCls:lt,menuArrowOffset:Ge}=st;return{[`${lt}-rtl`]:{direction:"rtl"},[`${lt}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${lt}-rtl${lt}-vertical, ${lt}-submenu-rtl ${lt}-vertical`]:{[`${lt}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${Ge})`},"&::after":{transform:`rotate(45deg) translateY(${Ge})`}}}}};const pt=st=>Object.assign({},(0,je.oN)(st));var At=(st,lt)=>{const{componentCls:Ge,itemColor:Ne,itemSelectedColor:et,groupTitleColor:xt,itemBg:Ie,subMenuItemBg:Re,itemSelectedBg:Ze,activeBarHeight:Be,activeBarWidth:ze,activeBarBorderWidth:it,motionDurationSlow:It,motionEaseInOut:Mt,motionEaseOut:jt,itemPaddingInline:Dt,motionDurationMid:Ht,itemHoverColor:bt,lineType:fn,colorSplit:cn,itemDisabledColor:wt,dangerItemColor:yn,dangerItemHoverColor:vn,dangerItemSelectedColor:zn,dangerItemActiveBg:wn,dangerItemSelectedBg:Wn,itemHoverBg:qn,itemActiveBg:Kn,menuSubMenuBg:Vn,horizontalItemSelectedColor:vr,horizontalItemSelectedBg:lr,horizontalItemBorderRadius:sn,horizontalItemHoverBg:Yn,popupBg:or}=st;return{[`${Ge}-${lt}, ${Ge}-${lt} > ${Ge}`]:{color:Ne,background:Ie,[`&${Ge}-root:focus-visible`]:Object.assign({},pt(st)),[`${Ge}-item-group-title`]:{color:xt},[`${Ge}-submenu-selected`]:{[`> ${Ge}-submenu-title`]:{color:et}},[`${Ge}-item-disabled, ${Ge}-submenu-disabled`]:{color:`${wt} !important`},[`${Ge}-item:not(${Ge}-item-selected):not(${Ge}-submenu-selected)`]:{[`&:hover, > ${Ge}-submenu-title:hover`]:{color:bt}},[`&:not(${Ge}-horizontal)`]:{[`${Ge}-item:not(${Ge}-item-selected)`]:{"&:hover":{backgroundColor:qn},"&:active":{backgroundColor:Kn}},[`${Ge}-submenu-title`]:{"&:hover":{backgroundColor:qn},"&:active":{backgroundColor:Kn}}},[`${Ge}-item-danger`]:{color:yn,[`&${Ge}-item:hover`]:{[`&:not(${Ge}-item-selected):not(${Ge}-submenu-selected)`]:{color:vn}},[`&${Ge}-item:active`]:{background:wn}},[`${Ge}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Ge}-item-selected`]:{color:et,[`&${Ge}-item-danger`]:{color:zn},"a, a:hover":{color:"inherit"}},[`& ${Ge}-item-selected`]:{backgroundColor:Ze,[`&${Ge}-item-danger`]:{backgroundColor:Wn}},[`${Ge}-item, ${Ge}-submenu-title`]:{[`&:not(${Ge}-item-disabled):focus-visible`]:Object.assign({},pt(st))},[`&${Ge}-submenu > ${Ge}`]:{backgroundColor:Vn},[`&${Ge}-popup > ${Ge}`]:{backgroundColor:or},[`&${Ge}-horizontal`]:Object.assign(Object.assign({},lt==="dark"?{borderBottom:0}:{}),{[`> ${Ge}-item, > ${Ge}-submenu`]:{top:it,marginTop:-it,marginBottom:0,borderRadius:sn,"&::after":{position:"absolute",insetInline:Dt,bottom:0,borderBottom:`${Be}px solid transparent`,transition:`border-color ${It} ${Mt}`,content:'""'},"&:hover, &-active, &-open":{background:Yn,"&::after":{borderBottomWidth:Be,borderBottomColor:vr}},"&-selected":{color:vr,backgroundColor:lr,"&:hover":{backgroundColor:lr},"&::after":{borderBottomWidth:Be,borderBottomColor:vr}}}}),[`&${Ge}-root`]:{[`&${Ge}-inline, &${Ge}-vertical`]:{borderInlineEnd:`${it}px ${fn} ${cn}`}},[`&${Ge}-inline`]:{[`${Ge}-sub${Ge}-inline`]:{background:Re},[`${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 ${et}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Ht} ${jt}`,`opacity ${Ht} ${jt}`].join(","),content:'""'},[`&${Ge}-item-danger`]:{"&::after":{borderInlineEndColor:zn}}},[`${Ge}-selected, ${Ge}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Ht} ${Mt}`,`opacity ${Ht} ${Mt}`].join(",")}}}}}};const Bt=st=>{const{componentCls:lt,itemHeight:Ge,itemMarginInline:Ne,padding:et,menuArrowSize:xt,marginXS:Ie,itemMarginBlock:Re}=st,Ze=et+xt+Ie;return{[`${lt}-item`]:{position:"relative",overflow:"hidden"},[`${lt}-item, ${lt}-submenu-title`]:{height:Ge,lineHeight:`${Ge}px`,paddingInline:et,overflow:"hidden",textOverflow:"ellipsis",marginInline:Ne,marginBlock:Re,width:`calc(100% - ${Ne*2}px)`},[`> ${lt}-item, > ${lt}-submenu > ${lt}-submenu-title`]:{height:Ge,lineHeight:`${Ge}px`},[`${lt}-item-group-list ${lt}-submenu-title, ${lt}-submenu-title`]:{paddingInlineEnd:Ze}}};var Xe=st=>{const{componentCls:lt,iconCls:Ge,itemHeight:Ne,colorTextLightSolid:et,dropdownWidth:xt,controlHeightLG:Ie,motionDurationMid:Re,motionEaseOut:Ze,paddingXL:Be,itemMarginInline:ze,fontSizeLG:it,motionDurationSlow:It,paddingXS:Mt,boxShadowSecondary:jt,collapsedWidth:Dt,collapsedIconSize:Ht}=st,bt={height:Ne,lineHeight:`${Ne}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[lt]:{"&-inline, &-vertical":Object.assign({[`&${lt}-root`]:{boxShadow:"none"}},Bt(st))},[`${lt}-submenu-popup`]:{[`${lt}-vertical`]:Object.assign(Object.assign({},Bt(st)),{boxShadow:jt})}},{[`${lt}-submenu-popup ${lt}-vertical${lt}-sub`]:{minWidth:xt,maxHeight:`calc(100vh - ${Ie*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${lt}-inline`]:{width:"100%",[`&${lt}-root`]:{[`${lt}-item, ${lt}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${It}`,`background ${It}`,`padding ${Re} ${Ze}`].join(","),[`> ${lt}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${lt}-sub${lt}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${lt}-submenu > ${lt}-submenu-title`]:bt,[`& ${lt}-item-group-title`]:{paddingInlineStart:Be}},[`${lt}-item`]:bt}},{[`${lt}-inline-collapsed`]:{width:Dt,[`&${lt}-root`]:{[`${lt}-item, ${lt}-submenu ${lt}-submenu-title`]:{[`> ${lt}-inline-collapsed-noicon`]:{fontSize:it,textAlign:"center"}}},[`> ${lt}-item, > ${lt}-item-group > ${lt}-item-group-list > ${lt}-item, > ${lt}-item-group > ${lt}-item-group-list > ${lt}-submenu > ${lt}-submenu-title, > ${lt}-submenu > ${lt}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${it/2}px - ${ze}px)`,textOverflow:"clip",[` ${lt}-submenu-arrow, ${lt}-submenu-expand-icon `]:{opacity:0},[`${lt}-item-icon, ${Ge}`]:{margin:0,fontSize:Ht,lineHeight:`${Ne}px`,"+ span":{display:"inline-block",opacity:0}}},[`${lt}-item-icon, ${Ge}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${lt}-item-icon, ${Ge}`]:{display:"none"},"a, a:hover":{color:et}},[`${lt}-item-group-title`]:Object.assign(Object.assign({},je.vS),{paddingInline:Mt})}}]};const Ct=st=>{const{componentCls:lt,motionDurationSlow:Ge,motionDurationMid:Ne,motionEaseInOut:et,motionEaseOut:xt,iconCls:Ie,iconSize:Re,iconMarginInlineEnd:Ze}=st;return{[`${lt}-item, ${lt}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Ge}`,`background ${Ge}`,`padding ${Ge} ${et}`].join(","),[`${lt}-item-icon, ${Ie}`]:{minWidth:Re,fontSize:Re,transition:[`font-size ${Ne} ${xt}`,`margin ${Ge} ${et}`,`color ${Ge}`].join(","),"+ span":{marginInlineStart:Ze,opacity:1,transition:[`opacity ${Ge} ${et}`,`margin ${Ge}`,`color ${Ge}`].join(",")}},[`${lt}-item-icon`]:Object.assign({},(0,je.Ro)()),[`&${lt}-item-only-child`]:{[`> ${Ie}, > ${lt}-item-icon`]:{marginInlineEnd:0}}},[`${lt}-item-disabled, ${lt}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${lt}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},zt=st=>{const{componentCls:lt,motionDurationSlow:Ge,motionEaseInOut:Ne,borderRadius:et,menuArrowSize:xt,menuArrowOffset:Ie}=st;return{[`${lt}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:st.margin,width:xt,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Ge} ${Ne}, opacity ${Ge}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:xt*.6,height:xt*.15,backgroundColor:"currentcolor",borderRadius:et,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})`}}}}},Et=st=>{const{antCls:lt,componentCls:Ge,fontSize:Ne,motionDurationSlow:et,motionDurationMid:xt,motionEaseInOut:Ie,paddingXS:Re,padding:Ze,colorSplit:Be,lineWidth:ze,zIndexPopup:it,borderRadiusLG:It,subMenuItemBorderRadius:Mt,menuArrowSize:jt,menuArrowOffset:Dt,lineType:Ht,menuPanelMaskInset:bt,groupTitleLineHeight:fn,groupTitleFontSize:cn}=st;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)(st)),(0,je.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:Ne,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${et} 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:st.itemBorderRadius},[`${Ge}-item-group-title`]:{padding:`${Re}px ${Ze}px`,fontSize:cn,lineHeight:fn,transition:`all ${et}`},[`&-horizontal ${Ge}-submenu`]:{transition:[`border-color ${et} ${Ie}`,`background ${et} ${Ie}`].join(",")},[`${Ge}-submenu, ${Ge}-submenu-inline`]:{transition:[`border-color ${et} ${Ie}`,`background ${et} ${Ie}`,`padding ${xt} ${Ie}`].join(",")},[`${Ge}-submenu ${Ge}-sub`]:{cursor:"initial",transition:[`background ${et} ${Ie}`,`padding ${et} ${Ie}`].join(",")},[`${Ge}-title-content`]:{transition:`color ${et}`},[`${Ge}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Ge}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Be,borderStyle:Ht,borderWidth:0,borderTopWidth:ze,marginBlock:ze,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Ct(st)),{[`${Ge}-item-group`]:{[`${Ge}-item-group-list`]:{margin:0,padding:0,[`${Ge}-item, ${Ge}-submenu-title`]:{paddingInline:`${Ne*2}px ${Ze}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:it,borderRadius:It,boxShadow:"none",transformOrigin:"0 0",[`&${Ge}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${bt}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:bt},"\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:st.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:st.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:st.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:st.paddingXS},[`> ${Ge}`]:Object.assign(Object.assign(Object.assign({borderRadius:It},Ct(st)),zt(st)),{[`${Ge}-item, ${Ge}-submenu > ${Ge}-submenu-title`]:{borderRadius:Mt},[`${Ge}-submenu-title::after`]:{transition:`transform ${et} ${Ie}`}})}}),zt(st)),{[`&-inline-collapsed ${Ge}-submenu-arrow, &-inline ${Ge}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Dt})`},"&::after":{transform:`rotate(45deg) translateX(-${Dt})`}},[`${Ge}-submenu-open${Ge}-submenu-inline > ${Ge}-submenu-title > ${Ge}-submenu-arrow`]:{transform:`translateY(-${jt*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Dt})`},"&::before":{transform:`rotate(45deg) translateX(${Dt})`}}})},{[`${lt}-layout-header`]:{[Ge]:{lineHeight:"inherit"}}}]};var an=(st,lt)=>(0,vt.Z)("Menu",Ne=>{if(lt===!1)return[];const{colorBgElevated:et,colorPrimary:xt,colorTextLightSolid:Ie,controlHeightLG:Re,fontSize:Ze,darkItemColor:Be,darkDangerItemColor:ze,darkItemBg:it,darkSubMenuItemBg:It,darkItemSelectedColor:Mt,darkItemSelectedBg:jt,darkDangerItemSelectedBg:Dt,darkItemHoverBg:Ht,darkGroupTitleColor:bt,darkItemHoverColor:fn,darkItemDisabledColor:cn,darkDangerItemHoverColor:wt,darkDangerItemSelectedColor:yn,darkDangerItemActiveBg:vn}=Ne,zn=Ze/7*5,wn=(0,we.TS)(Ne,{menuArrowSize:zn,menuHorizontalHeight:Re*1.15,menuArrowOffset:`${zn*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:et}),Wn=(0,we.TS)(wn,{itemColor:Be,itemHoverColor:fn,groupTitleColor:bt,itemSelectedColor:Mt,itemBg:it,popupBg:it,subMenuItemBg:It,itemActiveBg:"transparent",itemSelectedBg:jt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Ht,itemDisabledColor:cn,dangerItemColor:ze,dangerItemHoverColor:wt,dangerItemSelectedColor:yn,dangerItemActiveBg:vn,dangerItemSelectedBg:Dt,menuSubMenuBg:It,horizontalItemSelectedColor:Ie,horizontalItemSelectedBg:xt});return[Et(wn),He(wn),Xe(wn),At(wn,"light"),At(Wn,"dark"),We(wn),(0,Le.Z)(wn),(0,ht.oN)(wn,"slide-up"),(0,ht.oN)(wn,"slide-down"),(0,Ye._y)(wn,"zoom-big")]},Ne=>{const{colorPrimary:et,colorError:xt,colorTextDisabled:Ie,colorErrorBg:Re,colorText:Ze,colorTextDescription:Be,colorBgContainer:ze,colorFillAlter:it,colorFillContent:It,lineWidth:Mt,lineWidthBold:jt,controlItemBgActive:Dt,colorBgTextHover:Ht,controlHeightLG:bt,lineHeight:fn,colorBgElevated:cn,marginXXS:wt,padding:yn,fontSize:vn,controlHeightSM:zn,fontSizeLG:wn,colorTextLightSolid:Wn,colorErrorHover:qn}=Ne,Kn=new Ee.C(Wn).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:Ne.zIndexPopupBase+50,radiusItem:Ne.borderRadiusLG,itemBorderRadius:Ne.borderRadiusLG,radiusSubMenuItem:Ne.borderRadiusSM,subMenuItemBorderRadius:Ne.borderRadiusSM,colorItemText:Ze,itemColor:Ze,colorItemTextHover:Ze,itemHoverColor:Ze,colorItemTextHoverHorizontal:et,horizontalItemHoverColor:et,colorGroupTitle:Be,groupTitleColor:Be,colorItemTextSelected:et,itemSelectedColor:et,colorItemTextSelectedHorizontal:et,horizontalItemSelectedColor:et,colorItemBg:ze,itemBg:ze,colorItemBgHover:Ht,itemHoverBg:Ht,colorItemBgActive:It,itemActiveBg:Dt,colorSubItemBg:it,subMenuItemBg:it,colorItemBgSelected:Dt,itemSelectedBg:Dt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:jt,activeBarHeight:jt,colorActiveBarBorderSize:Mt,activeBarBorderWidth:Mt,colorItemTextDisabled:Ie,itemDisabledColor:Ie,colorDangerItemText:xt,dangerItemColor:xt,colorDangerItemTextHover:xt,dangerItemHoverColor:xt,colorDangerItemTextSelected:xt,dangerItemSelectedColor:xt,colorDangerItemBgActive:Re,dangerItemActiveBg:Re,colorDangerItemBgSelected:Re,dangerItemSelectedBg:Re,itemMarginInline:Ne.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:bt,groupTitleLineHeight:fn,collapsedWidth:bt*2,popupBg:cn,itemMarginBlock:wt,itemPaddingInline:yn,horizontalLineHeight:`${bt*1.15}px`,iconSize:vn,iconMarginInlineEnd:zn-vn,collapsedIconSize:wn,groupTitleFontSize:vn,darkItemDisabledColor:new Ee.C(Wn).setAlpha(.25).toRgbString(),darkItemColor:Kn,darkDangerItemColor:xt,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Wn,darkItemSelectedBg:et,darkDangerItemSelectedBg:xt,darkItemHoverBg:"transparent",darkGroupTitleColor:Kn,darkItemHoverColor:Wn,darkDangerItemHoverColor:qn,darkDangerItemSelectedColor:Wn,darkDangerItemActiveBg:xt}},{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"]]})(st),$e=function(st,lt){var Ge={};for(var Ne in st)Object.prototype.hasOwnProperty.call(st,Ne)&<.indexOf(Ne)<0&&(Ge[Ne]=st[Ne]);if(st!=null&&typeof Object.getOwnPropertySymbols=="function")for(var et=0,Ne=Object.getOwnPropertySymbols(st);et{var Ge,Ne;const et=ge.useContext(ce.Z),xt=et||{},{getPrefixCls:Ie,getPopupContainer:Re,direction:Ze,menu:Be}=ge.useContext(fe.E_),ze=Ie(),{prefixCls:it,className:It,style:Mt,theme:jt="light",expandIcon:Dt,_internalDisableMenuItemTitleTooltip:Ht,inlineCollapsed:bt,siderCollapsed:fn,items:cn,children:wt,rootClassName:yn,mode:vn,selectable:zn,onClick:wn,overflowedIndicatorPopupClassName:Wn}=st,qn=$e(st,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Kn=(0,ae.Z)(qn,["collapsedWidth"]),Vn=De(cn)||wt;(Ge=xt.validator)===null||Ge===void 0||Ge.call(xt,{mode:vn});const vr=(0,re.useEvent)(function(){var sr;wn==null||wn.apply(void 0,arguments),(sr=xt.onClick)===null||sr===void 0||sr.call(xt)}),lr=xt.mode||vn,sn=zn!=null?zn:xt.selectable,Yn=ge.useMemo(()=>fn!==void 0?fn:bt,[bt,fn]),or={horizontal:{motionName:`${ze}-slide-up`},inline:(0,se.Z)(ze),other:{motionName:`${ze}-zoom-big`}},Zn=Ie("menu",it||xt.prefixCls),[ar,Dr]=an(Zn,!et),Mr=Se()(`${Zn}-${jt}`,Be==null?void 0:Be.className,It);let Er;if(typeof Dt=="function")Er=Dt;else if(Dt===null||Dt===!1)Er=null;else if(xt.expandIcon===null||xt.expandIcon===!1)Er=null;else{const sr=Dt!=null?Dt:xt.expandIcon;Er=(0,ie.Tm)(sr,{className:Se()(`${Zn}-submenu-expand-icon`,(0,ie.l$)(sr)?(Ne=sr.props)===null||Ne===void 0?void 0:Ne.className:"")})}const Br=ge.useMemo(()=>({prefixCls:Zn,inlineCollapsed:Yn||!1,direction:Ze,firstLevel:!0,theme:jt,mode:lr,disableMenuItemTitleTooltip:Ht}),[Zn,Yn,Ze,Ht,jt]);return ar(ge.createElement(ce.Z.Provider,{value:null},ge.createElement(a.Provider,{value:Br},ge.createElement(ee.ZP,Object.assign({getPopupContainer:Re,overflowedIndicator:ge.createElement(z.Z,null),overflowedIndicatorPopupClassName:Se()(Zn,`${Zn}-${jt}`,Wn),mode:lr,selectable:sn,onClick:vr},Kn,{inlineCollapsed:Yn,style:Object.assign(Object.assign({},Be==null?void 0:Be.style),Mt),className:Mr,prefixCls:Zn,direction:Ze,defaultMotions:or,expandIcon:Er,ref:lt,rootClassName:Se()(yn,Dr)}),Vn))))});const on=(0,ge.forwardRef)((st,lt)=>{const Ge=(0,ge.useRef)(null),Ne=ge.useContext(be.D);return(0,ge.useImperativeHandle)(lt,()=>({menu:Ge.current,focus:et=>{var xt;(xt=Ge.current)===null||xt===void 0||xt.focus(et)}})),ge.createElement(Lt,Object.assign({ref:Ge},st,Ne))});on.Item=E,on.SubMenu=x,on.Divider=le,on.ItemGroup=ee.BW;var $t=on},58421:function(mt,Ke,te){"use strict";te.d(Ke,{Z:function(){return xt}});var ee=te(54476),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"},pe=be,Se=te(7657),fe=function(Re,Ze){return ge.createElement(Se.Z,(0,ee.Z)({},Re,{ref:Ze,icon:pe}))},oe=ge.forwardRef(fe),de=oe,le=te(49198),me=te(33853),ae=te(38819),he=te(92310),ie=te.n(he),ne=te(20068),a=te(33885),y=te(67732),E=te(83652),b=te(42403),x=te(158),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)(Ze,Ie);var Re=(0,x.Z)(Ze);function Ze(){var Be;(0,y.Z)(this,Ze);for(var ze=arguments.length,it=new Array(ze),It=0;It=0||Mt.relatedTarget.className.indexOf("".concat(bt,"-item"))>=0))&&Ht(Be.getValidValue()))},Be.go=function(Mt){var jt=Be.state.goInputText;jt!==""&&(Mt.keyCode===se.ENTER||Mt.type==="click")&&(Be.setState({goInputText:""}),Be.props.quickGo(Be.getValidValue()))},Be}return(0,E.Z)(Ze,[{key:"getPageSizeOptions",value:function(){var ze=this.props,it=ze.pageSize,It=ze.pageSizeOptions;return It.some(function(Mt){return Mt.toString()===it.toString()})?It:It.concat([it.toString()]).sort(function(Mt,jt){var Dt=Number.isNaN(Number(Mt))?0:Number(Mt),Ht=Number.isNaN(Number(jt))?0:Number(jt);return Dt-Ht})}},{key:"render",value:function(){var ze=this,it=this.props,It=it.pageSize,Mt=it.locale,jt=it.rootPrefixCls,Dt=it.changeSize,Ht=it.quickGo,bt=it.goButton,fn=it.selectComponentClass,cn=it.buildOptionText,wt=it.selectPrefixCls,yn=it.disabled,vn=this.state.goInputText,zn="".concat(jt,"-options"),wn=fn,Wn=null,qn=null,Kn=null;if(!Dt&&!Ht)return null;var Vn=this.getPageSizeOptions();if(Dt&&wn){var vr=Vn.map(function(lr,sn){return ge.createElement(wn.Option,{key:sn,value:lr.toString()},(cn||ze.buildOptionText)(lr))});Wn=ge.createElement(wn,{disabled:yn,prefixCls:wt,showSearch:!1,className:"".concat(zn,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(It||Vn[0]).toString(),onChange:this.changeSize,getPopupContainer:function(sn){return sn.parentNode},"aria-label":Mt.page_size,defaultOpen:!1},vr)}return Ht&&(bt&&(Kn=typeof bt=="boolean"?ge.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:yn,className:"".concat(zn,"-quick-jumper-button")},Mt.jump_to_confirm):ge.createElement("span",{onClick:this.go,onKeyUp:this.go},bt)),qn=ge.createElement("div",{className:"".concat(zn,"-quick-jumper")},Mt.jump_to,ge.createElement("input",{disabled:yn,type:"text",value:vn,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":Mt.page}),Mt.page,Kn)),ge.createElement("li",{className:"".concat(zn)},Wn,qn)}}]),Ze}(ge.Component);_e.defaultProps={pageSizeOptions:["10","20","50","100"]};var ye=_e,De=function(Re){var Ze,Be=Re.rootPrefixCls,ze=Re.page,it=Re.active,It=Re.className,Mt=Re.showTitle,jt=Re.onClick,Dt=Re.onKeyPress,Ht=Re.itemRender,bt="".concat(Be,"-item"),fn=ie()(bt,"".concat(bt,"-").concat(ze),(Ze={},(0,ne.Z)(Ze,"".concat(bt,"-active"),it),(0,ne.Z)(Ze,"".concat(bt,"-disabled"),!ze),(0,ne.Z)(Ze,Re.className,It),Ze)),cn=function(){jt(ze)},wt=function(zn){Dt(zn,jt,ze)},yn=Ht(ze,"page",ge.createElement("a",{rel:"nofollow"},ze));return yn?ge.createElement("li",{title:Mt?ze.toString():null,className:fn,onClick:cn,onKeyPress:wt,tabIndex:0},yn):null},Ee=De;function je(){}function Le(Ie){var Re=Number(Ie);return typeof Re=="number"&&!Number.isNaN(Re)&&isFinite(Re)&&Math.floor(Re)===Re}var ht=function(Re,Ze,Be){return Be};function Ye(Ie,Re,Ze){var Be=typeof Ie=="undefined"?Re.pageSize:Ie;return Math.floor((Ze.total-1)/Be)+1}var vt=function(Ie){(0,b.Z)(Ze,Ie);var Re=(0,x.Z)(Ze);function Ze(Be){var ze;(0,y.Z)(this,Ze),ze=Re.call(this,Be),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(Ye(void 0,ze.state,ze.props),ze.state.current+(ze.props.showLessItems?3:5))},ze.getItemIcon=function(Dt,Ht){var bt=ze.props.prefixCls,fn=Dt||ge.createElement("button",{type:"button","aria-label":Ht,className:"".concat(bt,"-item-link")});return typeof Dt=="function"&&(fn=ge.createElement(Dt,(0,a.Z)({},ze.props))),fn},ze.isValid=function(Dt){var Ht=ze.props.total;return Le(Dt)&&Dt!==ze.state.current&&Le(Ht)&&Ht>0},ze.shouldDisplayQuickJumper=function(){var Dt=ze.props,Ht=Dt.showQuickJumper,bt=Dt.total,fn=ze.state.pageSize;return bt<=fn?!1:Ht},ze.handleKeyDown=function(Dt){(Dt.keyCode===se.ARROW_UP||Dt.keyCode===se.ARROW_DOWN)&&Dt.preventDefault()},ze.handleKeyUp=function(Dt){var Ht=ze.getValidValue(Dt),bt=ze.state.currentInputValue;Ht!==bt&&ze.setState({currentInputValue:Ht}),Dt.keyCode===se.ENTER?ze.handleChange(Ht):Dt.keyCode===se.ARROW_UP?ze.handleChange(Ht-1):Dt.keyCode===se.ARROW_DOWN&&ze.handleChange(Ht+1)},ze.handleBlur=function(Dt){var Ht=ze.getValidValue(Dt);ze.handleChange(Ht)},ze.changePageSize=function(Dt){var Ht=ze.state.current,bt=Ye(Dt,ze.state,ze.props);Ht=Ht>bt?bt:Ht,bt===0&&(Ht=ze.state.current),typeof Dt=="number"&&("pageSize"in ze.props||ze.setState({pageSize:Dt}),"current"in ze.props||ze.setState({current:Ht,currentInputValue:Ht})),ze.props.onShowSizeChange(Ht,Dt),"onChange"in ze.props&&ze.props.onChange&&ze.props.onChange(Ht,Dt)},ze.handleChange=function(Dt){var Ht=ze.props,bt=Ht.disabled,fn=Ht.onChange,cn=ze.state,wt=cn.pageSize,yn=cn.current,vn=cn.currentInputValue;if(ze.isValid(Dt)&&!bt){var zn=Ye(void 0,ze.state,ze.props),wn=Dt;return Dt>zn?wn=zn:Dt<1&&(wn=1),"current"in ze.props||ze.setState({current:wn}),wn!==vn&&ze.setState({currentInputValue:wn}),fn(wn,wt),wn}return yn},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.current2?bt-2:0),cn=2;cn=It?jt=It:jt=Number(it),jt}},{key:"getShowSizeChanger",value:function(){var ze=this.props,it=ze.showSizeChanger,It=ze.total,Mt=ze.totalBoundaryShowSizeChanger;return typeof it!="undefined"?it:It>Mt}},{key:"render",value:function(){var ze=this.props,it=ze.prefixCls,It=ze.className,Mt=ze.style,jt=ze.disabled,Dt=ze.hideOnSinglePage,Ht=ze.total,bt=ze.locale,fn=ze.showQuickJumper,cn=ze.showLessItems,wt=ze.showTitle,yn=ze.showTotal,vn=ze.simple,zn=ze.itemRender,wn=ze.showPrevNextJumpers,Wn=ze.jumpPrevIcon,qn=ze.jumpNextIcon,Kn=ze.selectComponentClass,Vn=ze.selectPrefixCls,vr=ze.pageSizeOptions,lr=this.state,sn=lr.current,Yn=lr.pageSize,or=lr.currentInputValue;if(Dt===!0&&Ht<=Yn)return null;var Zn=Ye(void 0,this.state,this.props),ar=[],Dr=null,Mr=null,Er=null,Br=null,sr=null,Kr=fn&&fn.goButton,Ut=cn?1:2,ue=sn-1>0?sn-1:0,ve=sn+1Ht?Ht:sn*Yn]));if(vn){Kr&&(typeof Kr=="boolean"?sr=ge.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},bt.jump_to_confirm):sr=ge.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Kr),sr=ge.createElement("li",{title:wt?"".concat(bt.jump_to).concat(sn,"/").concat(Zn):null,className:"".concat(it,"-simple-pager")},sr));var ke=this.renderPrev(ue);return ge.createElement("ul",(0,ee.Z)({className:ie()(it,"".concat(it,"-simple"),(0,ne.Z)({},"".concat(it,"-disabled"),jt),It),style:Mt,ref:this.paginationNode},Pe),xe,ke?ge.createElement("li",{title:wt?bt.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:ie()("".concat(it,"-prev"),(0,ne.Z)({},"".concat(it,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},ke):null,ge.createElement("li",{title:wt?"".concat(sn,"/").concat(Zn):null,className:"".concat(it,"-simple-pager")},ge.createElement("input",{type:"text",value:or,disabled:jt,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),ge.createElement("span",{className:"".concat(it,"-slash")},"/"),Zn),ge.createElement("li",{title:wt?bt.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:ie()("".concat(it,"-next"),(0,ne.Z)({},"".concat(it,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(ve)),sr)}if(Zn<=3+Ut*2){var tt={locale:bt,rootPrefixCls:it,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:wt,itemRender:zn};Zn||ar.push(ge.createElement(Ee,(0,ee.Z)({},tt,{key:"noPager",page:1,className:"".concat(it,"-item-disabled")})));for(var dt=1;dt<=Zn;dt+=1){var tn=sn===dt;ar.push(ge.createElement(Ee,(0,ee.Z)({},tt,{key:dt,page:dt,active:tn})))}}else{var Kt=cn?bt.prev_3:bt.prev_5,_t=cn?bt.next_3:bt.next_5,ft=zn(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(Wn,"prev page")),Ft=zn(this.getJumpNextPage(),"jump-next",this.getItemIcon(qn,"next page"));wn&&(Dr=ft?ge.createElement("li",{title:wt?Kt:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:ie()("".concat(it,"-jump-prev"),(0,ne.Z)({},"".concat(it,"-jump-prev-custom-icon"),!!Wn))},ft):null,Mr=Ft?ge.createElement("li",{title:wt?_t:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:ie()("".concat(it,"-jump-next"),(0,ne.Z)({},"".concat(it,"-jump-next-custom-icon"),!!qn))},Ft):null),Br=ge.createElement(Ee,{locale:bt,last:!0,rootPrefixCls:it,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Zn,page:Zn,active:!1,showTitle:wt,itemRender:zn}),Er=ge.createElement(Ee,{locale:bt,rootPrefixCls:it,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:wt,itemRender:zn});var gt=Math.max(1,sn-Ut),Gt=Math.min(sn+Ut,Zn);sn-1<=Ut&&(Gt=1+Ut*2),Zn-sn<=Ut&&(gt=Zn-Ut*2);for(var Zt=gt;Zt<=Gt;Zt+=1){var Tt=sn===Zt;ar.push(ge.createElement(Ee,{locale:bt,rootPrefixCls:it,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Zt,page:Zt,active:Tt,showTitle:wt,itemRender:zn}))}sn-1>=Ut*2&&sn!==3&&(ar[0]=(0,ge.cloneElement)(ar[0],{className:"".concat(it,"-item-after-jump-prev")}),ar.unshift(Dr)),Zn-sn>=Ut*2&&sn!==Zn-2&&(ar[ar.length-1]=(0,ge.cloneElement)(ar[ar.length-1],{className:"".concat(it,"-item-before-jump-next")}),ar.push(Mr)),gt!==1&&ar.unshift(Er),Gt!==Zn&&ar.push(Br)}var kt=!this.hasPrev()||!Zn,Xt=!this.hasNext()||!Zn,dn=this.renderPrev(ue),xn=this.renderNext(ve);return ge.createElement("ul",(0,ee.Z)({className:ie()(it,It,(0,ne.Z)({},"".concat(it,"-disabled"),jt)),style:Mt,ref:this.paginationNode},Pe),xe,dn?ge.createElement("li",{title:wt?bt.prev_page:null,onClick:this.prev,tabIndex:kt?null:0,onKeyPress:this.runIfEnterPrev,className:ie()("".concat(it,"-prev"),(0,ne.Z)({},"".concat(it,"-disabled"),kt)),"aria-disabled":kt},dn):null,ar,xn?ge.createElement("li",{title:wt?bt.next_page:null,onClick:this.next,tabIndex:Xt?null:0,onKeyPress:this.runIfEnterNext,className:ie()("".concat(it,"-next"),(0,ne.Z)({},"".concat(it,"-disabled"),Xt)),"aria-disabled":Xt},xn):null,ge.createElement(ye,{disabled:jt,locale:bt,rootPrefixCls:it,selectComponentClass:Kn,selectPrefixCls:Vn,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:sn,pageSize:Yn,pageSizeOptions:vr,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Kr}))}}],[{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 Mt=it.current,jt=Ye(ze.pageSize,it,ze);Mt=Mt>jt?jt:Mt,"current"in ze||(It.current=Mt,It.currentInputValue=Mt),It.pageSize=ze.pageSize}return It}}]),Ze}(ge.Component);vt.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:ht,totalBoundaryShowSizeChanger:50};var we=vt,Fe=te(22075),He=te(36355),at=te(19716),We=te(8628),pt=te(9763),Pt=te(57809);const At=Ie=>ge.createElement(Pt.default,Object.assign({},Ie,{showSearch:!0,size:"small"})),Bt=Ie=>ge.createElement(Pt.default,Object.assign({},Ie,{showSearch:!0,size:"middle"}));At.Option=Pt.default.Option,Bt.Option=Pt.default.Option;var rt=te(9937),Xe=te(17313),Ct=te(83116),zt=te(37613);const Et=Ie=>{const{componentCls:Re}=Ie;return{[`${Re}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${Re}-item-link`]:{color:Ie.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${Re}-item-link`]:{color:Ie.colorTextDisabled,cursor:"not-allowed"}}},[`&${Re}-disabled`]:{cursor:"not-allowed",[`${Re}-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}}},[`${Re}-item-link`]:{color:Ie.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${Re}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${Re}-simple-pager`]:{color:Ie.colorTextDisabled},[`${Re}-jump-prev, ${Re}-jump-next`]:{[`${Re}-item-link-icon`]:{opacity:0},[`${Re}-item-ellipsis`]:{opacity:1}}},[`&${Re}-simple`]:{[`${Re}-prev, ${Re}-next`]:{[`&${Re}-disabled ${Re}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},an=Ie=>{const{componentCls:Re}=Ie;return{[`&${Re}-mini ${Re}-total-text, &${Re}-mini ${Re}-simple-pager`]:{height:Ie.itemSizeSM,lineHeight:`${Ie.itemSizeSM}px`},[`&${Re}-mini ${Re}-item`]:{minWidth:Ie.itemSizeSM,height:Ie.itemSizeSM,margin:0,lineHeight:`${Ie.itemSizeSM-2}px`},[`&${Re}-mini:not(${Re}-disabled) ${Re}-item:not(${Re}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:Ie.colorBgTextHover},"&:active":{backgroundColor:Ie.colorBgTextActive}},[`&${Re}-mini ${Re}-prev, &${Re}-mini ${Re}-next`]:{minWidth:Ie.itemSizeSM,height:Ie.itemSizeSM,margin:0,lineHeight:`${Ie.itemSizeSM}px`},[`&${Re}-mini:not(${Re}-disabled)`]:{[`${Re}-prev, ${Re}-next`]:{[`&:hover ${Re}-item-link`]:{backgroundColor:Ie.colorBgTextHover},[`&:active ${Re}-item-link`]:{backgroundColor:Ie.colorBgTextActive},[`&${Re}-disabled:hover ${Re}-item-link`]:{backgroundColor:"transparent"}}},[` &${Re}-mini ${Re}-prev ${Re}-item-link, &${Re}-mini ${Re}-next ${Re}-item-link `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:Ie.itemSizeSM,lineHeight:`${Ie.itemSizeSM}px`}},[`&${Re}-mini ${Re}-jump-prev, &${Re}-mini ${Re}-jump-next`]:{height:Ie.itemSizeSM,marginInlineEnd:0,lineHeight:`${Ie.itemSizeSM}px`},[`&${Re}-mini ${Re}-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})}}}},$e=Ie=>{const{componentCls:Re}=Ie;return{[` &${Re}-simple ${Re}-prev, &${Re}-simple ${Re}-next `]:{height:Ie.itemSizeSM,lineHeight:`${Ie.itemSizeSM}px`,verticalAlign:"top",[`${Re}-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`}}},[`&${Re}-simple ${Re}-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"}}}}},yt=Ie=>{const{componentCls:Re}=Ie;return{[`${Re}-jump-prev, ${Re}-jump-next`]:{outline:0,[`${Re}-item-container`]:{position:"relative",[`${Re}-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"}},[`${Re}-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":{[`${Re}-item-link-icon`]:{opacity:1},[`${Re}-item-ellipsis`]:{opacity:0}}},[` ${Re}-prev, ${Re}-jump-prev, ${Re}-jump-next `]:{marginInlineEnd:Ie.marginXS},[` ${Re}-prev, ${Re}-next, ${Re}-jump-prev, ${Re}-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}`},[`${Re}-prev, ${Re}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:Ie.colorText,cursor:"pointer",userSelect:"none"},[`${Re}-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 ${Re}-item-link`]:{backgroundColor:Ie.colorBgTextHover},[`&:active ${Re}-item-link`]:{backgroundColor:Ie.colorBgTextActive},[`&${Re}-disabled:hover`]:{[`${Re}-item-link`]:{backgroundColor:"transparent"}}},[`${Re}-slash`]:{marginInlineEnd:Ie.paginationSlashMarginInlineEnd,marginInlineStart:Ie.paginationSlashMarginInlineStart},[`${Re}-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})}}}},Lt=Ie=>{const{componentCls:Re}=Ie;return{[`${Re}-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(${Re}-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}}}}},on=Ie=>{const{componentCls:Re}=Ie;return{[Re]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Xe.Wf)(Ie)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${Re}-total-text`]:{display:"inline-block",height:Ie.itemSize,marginInlineEnd:Ie.marginXS,lineHeight:`${Ie.itemSize-2}px`,verticalAlign:"middle"}}),Lt(Ie)),yt(Ie)),$e(Ie)),an(Ie)),Et(Ie)),{[`@media only screen and (max-width: ${Ie.screenLG}px)`]:{[`${Re}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${Ie.screenSM}px)`]:{[`${Re}-options`]:{display:"none"}}}),[`&${Ie.componentCls}-rtl`]:{direction:"rtl"}}},$t=Ie=>{const{componentCls:Re}=Ie;return{[`${Re}${Re}-disabled:not(${Re}-mini)`]:{"&, &:hover":{[`${Re}-item-link`]:{borderColor:Ie.colorBorder}},"&:focus-visible":{[`${Re}-item-link`]:{borderColor:Ie.colorBorder}},[`${Re}-item, ${Re}-item-link`]:{backgroundColor:Ie.colorBgContainerDisabled,borderColor:Ie.colorBorder,[`&:hover:not(${Re}-item-active)`]:{backgroundColor:Ie.colorBgContainerDisabled,borderColor:Ie.colorBorder,a:{color:Ie.colorTextDisabled}},[`&${Re}-item-active`]:{backgroundColor:Ie.itemActiveBgDisabled}},[`${Re}-prev, ${Re}-next`]:{"&:hover button":{backgroundColor:Ie.colorBgContainerDisabled,borderColor:Ie.colorBorder,color:Ie.colorTextDisabled},[`${Re}-item-link`]:{backgroundColor:Ie.colorBgContainerDisabled,borderColor:Ie.colorBorder}}},[`${Re}:not(${Re}-mini)`]:{[`${Re}-prev, ${Re}-next`]:{"&:hover button":{borderColor:Ie.colorPrimaryHover,backgroundColor:Ie.itemBg},[`${Re}-item-link`]:{backgroundColor:Ie.itemLinkBg,borderColor:Ie.colorBorder},[`&:hover ${Re}-item-link`]:{borderColor:Ie.colorPrimary,backgroundColor:Ie.itemBg,color:Ie.colorPrimary},[`&${Re}-disabled`]:{[`${Re}-item-link`]:{borderColor:Ie.colorBorder,color:Ie.colorTextDisabled}}},[`${Re}-item`]:{backgroundColor:Ie.itemBg,border:`${Ie.lineWidth}px ${Ie.lineType} ${Ie.colorBorder}`,[`&:hover:not(${Re}-item-active)`]:{borderColor:Ie.colorPrimary,backgroundColor:Ie.itemBg,a:{color:Ie.colorPrimary}},"&-active":{borderColor:Ie.colorPrimary}}}}},st=Ie=>{const{componentCls:Re}=Ie;return{[`${Re}:not(${Re}-disabled)`]:{[`${Re}-item`]:Object.assign({},(0,Xe.Qy)(Ie)),[`${Re}-jump-prev, ${Re}-jump-next`]:{"&:focus-visible":Object.assign({[`${Re}-item-link-icon`]:{opacity:1},[`${Re}-item-ellipsis`]:{opacity:0}},(0,Xe.oN)(Ie))},[`${Re}-prev, ${Re}-next`]:{[`&:focus-visible ${Re}-item-link`]:Object.assign({},(0,Xe.oN)(Ie))}}}};var lt=(0,Ct.Z)("Pagination",Ie=>{const Re=(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[on(Re),st(Re),Ie.wireframe&&$t(Re)]},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,Re){var Ze={};for(var Be in Ie)Object.prototype.hasOwnProperty.call(Ie,Be)&&Re.indexOf(Be)<0&&(Ze[Be]=Ie[Be]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ze=0,Be=Object.getOwnPropertySymbols(Ie);ze{const{prefixCls:Re,selectPrefixCls:Ze,className:Be,rootClassName:ze,style:it,size:It,locale:Mt,selectComponentClass:jt,responsive:Dt,showSizeChanger:Ht}=Ie,bt=Ge(Ie,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:fn}=(0,We.Z)(Dt),{getPrefixCls:cn,direction:wt,pagination:yn={}}=ge.useContext(He.E_),vn=cn("pagination",Re),[zn,wn]=lt(vn),Wn=Ht!=null?Ht:yn.showSizeChanger,qn=ge.useMemo(()=>{const Zn=ge.createElement("span",{className:`${vn}-item-ellipsis`},"\u2022\u2022\u2022"),ar=ge.createElement("button",{className:`${vn}-item-link`,type:"button",tabIndex:-1},wt==="rtl"?ge.createElement(ae.Z,null):ge.createElement(me.Z,null)),Dr=ge.createElement("button",{className:`${vn}-item-link`,type:"button",tabIndex:-1},wt==="rtl"?ge.createElement(me.Z,null):ge.createElement(ae.Z,null)),Mr=ge.createElement("a",{className:`${vn}-item-link`},ge.createElement("div",{className:`${vn}-item-container`},wt==="rtl"?ge.createElement(le.Z,{className:`${vn}-item-link-icon`}):ge.createElement(de,{className:`${vn}-item-link-icon`}),Zn)),Er=ge.createElement("a",{className:`${vn}-item-link`},ge.createElement("div",{className:`${vn}-item-container`},wt==="rtl"?ge.createElement(de,{className:`${vn}-item-link-icon`}):ge.createElement(le.Z,{className:`${vn}-item-link-icon`}),Zn));return{prevIcon:ar,nextIcon:Dr,jumpPrevIcon:Mr,jumpNextIcon:Er}},[wt,vn]),[Kn]=(0,pt.Z)("Pagination",Fe.Z),Vn=Object.assign(Object.assign({},Kn),Mt),vr=(0,at.Z)(It),lr=vr==="small"||!!(fn&&!vr&&Dt),sn=cn("select",Ze),Yn=ie()({[`${vn}-mini`]:lr,[`${vn}-rtl`]:wt==="rtl"},yn==null?void 0:yn.className,Be,ze,wn),or=Object.assign(Object.assign({},yn==null?void 0:yn.style),it);return zn(ge.createElement(we,Object.assign({},qn,bt,{style:or,prefixCls:vn,selectPrefixCls:sn,className:Yn,selectComponentClass:jt||(lr?At:Bt),locale:Vn,showSizeChanger:Wn})))},xt=et},61621:function(mt,Ke,te){"use strict";te.d(Ke,{Z:function(){return lt}});var ee=te(92310),ge=te.n(ee),be=te(59301),pe=te(36355),Se=te(2738),oe=Ge=>{const{prefixCls:Ne,className:et,style:xt,size:Ie,shape:Re}=Ge,Ze=ge()({[`${Ne}-lg`]:Ie==="large",[`${Ne}-sm`]:Ie==="small"}),Be=ge()({[`${Ne}-circle`]:Re==="circle",[`${Ne}-square`]:Re==="square",[`${Ne}-round`]:Re==="round"}),ze=be.useMemo(()=>typeof Ie=="number"?{width:Ie,height:Ie,lineHeight:`${Ie}px`}:{},[Ie]);return be.createElement("span",{className:ge()(Ne,Ze,Be,et),style:Object.assign(Object.assign({},ze),xt)})},de=te(36237),le=te(83116),me=te(37613);const ae=new de.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),he=Ge=>({height:Ge,lineHeight:`${Ge}px`}),ie=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:et,controlHeight:xt,controlHeightLG:Ie,controlHeightSM:Re}=Ge;return{[`${Ne}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:et},ie(xt)),[`${Ne}${Ne}-circle`]:{borderRadius:"50%"},[`${Ne}${Ne}-lg`]:Object.assign({},ie(Ie)),[`${Ne}${Ne}-sm`]:Object.assign({},ie(Re))}},E=Ge=>{const{controlHeight:Ne,borderRadiusSM:et,skeletonInputCls:xt,controlHeightLG:Ie,controlHeightSM:Re,gradientFromColor:Ze}=Ge;return{[`${xt}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Ze,borderRadius:et},a(Ne)),[`${xt}-lg`]:Object.assign({},a(Ie)),[`${xt}-sm`]:Object.assign({},a(Re))}},b=Ge=>Object.assign({width:Ge},he(Ge)),x=Ge=>{const{skeletonImageCls:Ne,imageSizeBase:et,gradientFromColor:xt,borderRadiusSM:Ie}=Ge;return{[`${Ne}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:xt,borderRadius:Ie},b(et*2)),{[`${Ne}-path`]:{fill:"#bfbfbf"},[`${Ne}-svg`]:Object.assign(Object.assign({},b(et)),{maxWidth:et*4,maxHeight:et*4}),[`${Ne}-svg${Ne}-svg-circle`]:{borderRadius:"50%"}}),[`${Ne}${Ne}-circle`]:{borderRadius:"50%"}}},z=(Ge,Ne,et)=>{const{skeletonButtonCls:xt}=Ge;return{[`${et}${xt}-circle`]:{width:Ne,minWidth:Ne,borderRadius:"50%"},[`${et}${xt}-round`]:{borderRadius:Ne}}},re=Ge=>Object.assign({width:Ge*2,minWidth:Ge*2},he(Ge)),se=Ge=>{const{borderRadiusSM:Ne,skeletonButtonCls:et,controlHeight:xt,controlHeightLG:Ie,controlHeightSM:Re,gradientFromColor:Ze}=Ge;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${et}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Ze,borderRadius:Ne,width:xt*2,minWidth:xt*2},re(xt))},z(Ge,xt,et)),{[`${et}-lg`]:Object.assign({},re(Ie))}),z(Ge,Ie,`${et}-lg`)),{[`${et}-sm`]:Object.assign({},re(Re))}),z(Ge,Re,`${et}-sm`))},ce=Ge=>{const{componentCls:Ne,skeletonAvatarCls:et,skeletonTitleCls:xt,skeletonParagraphCls:Ie,skeletonButtonCls:Re,skeletonInputCls:Ze,skeletonImageCls:Be,controlHeight:ze,controlHeightLG:it,controlHeightSM:It,gradientFromColor:Mt,padding:jt,marginSM:Dt,borderRadius:Ht,titleHeight:bt,blockRadius:fn,paragraphLiHeight:cn,controlHeightXS:wt,paragraphMarginTop:yn}=Ge;return{[`${Ne}`]:{display:"table",width:"100%",[`${Ne}-header`]:{display:"table-cell",paddingInlineEnd:jt,verticalAlign:"top",[`${et}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Mt},ie(ze)),[`${et}-circle`]:{borderRadius:"50%"},[`${et}-lg`]:Object.assign({},ie(it)),[`${et}-sm`]:Object.assign({},ie(It))},[`${Ne}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${xt}`]:{width:"100%",height:bt,background:Mt,borderRadius:fn,[`+ ${Ie}`]:{marginBlockStart:It}},[`${Ie}`]:{padding:0,"> li":{width:"100%",height:cn,listStyle:"none",background:Mt,borderRadius:fn,"+ li":{marginBlockStart:wt}}},[`${Ie}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${Ne}-content`]:{[`${xt}, ${Ie} > li`]:{borderRadius:Ht}}},[`${Ne}-with-avatar ${Ne}-content`]:{[`${xt}`]:{marginBlockStart:Dt,[`+ ${Ie}`]:{marginBlockStart:yn}}},[`${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%",[`${Re}`]:{width:"100%"},[`${Ze}`]:{width:"100%"}},[`${Ne}${Ne}-active`]:{[` ${xt}, ${Ie} > li, ${et}, ${Re}, ${Ze}, ${Be} `]:Object.assign({},ne(Ge))}}};var _e=(0,le.Z)("Skeleton",Ge=>{const{componentCls:Ne}=Ge,et=(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(et)]},Ge=>{const{colorFillContent:Ne,colorFill:et}=Ge,xt=Ne,Ie=et;return{color:xt,colorGradientEnd:Ie,gradientFromColor:xt,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:et,rootClassName:xt,active:Ie,shape:Re="circle",size:Ze="default"}=Ge,{getPrefixCls:Be}=be.useContext(pe.E_),ze=Be("skeleton",Ne),[it,It]=_e(ze),Mt=(0,Se.Z)(Ge,["prefixCls","className"]),jt=ge()(ze,`${ze}-element`,{[`${ze}-active`]:Ie},et,xt,It);return it(be.createElement("div",{className:jt},be.createElement(oe,Object.assign({prefixCls:`${ze}-avatar`,shape:Re,size:Ze},Mt))))},je=Ge=>{const{prefixCls:Ne,className:et,rootClassName:xt,active:Ie,block:Re=!1,size:Ze="default"}=Ge,{getPrefixCls:Be}=be.useContext(pe.E_),ze=Be("skeleton",Ne),[it,It]=_e(ze),Mt=(0,Se.Z)(Ge,["prefixCls"]),jt=ge()(ze,`${ze}-element`,{[`${ze}-active`]:Ie,[`${ze}-block`]:Re},et,xt,It);return it(be.createElement("div",{className:jt},be.createElement(oe,Object.assign({prefixCls:`${ze}-button`,size:Ze},Mt))))};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 Ye=Ge=>{const{prefixCls:Ne,className:et,rootClassName:xt,style:Ie,active:Re}=Ge,{getPrefixCls:Ze}=be.useContext(pe.E_),Be=Ze("skeleton",Ne),[ze,it]=_e(Be),It=ge()(Be,`${Be}-element`,{[`${Be}-active`]:Re},et,xt,it);return ze(be.createElement("div",{className:It},be.createElement("div",{className:ge()(`${Be}-image`,et),style:Ie},be.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${Be}-image-svg`},be.createElement("path",{d:Le,className:`${Be}-image-path`})))))},we=Ge=>{const{prefixCls:Ne,className:et,rootClassName:xt,active:Ie,block:Re,size:Ze="default"}=Ge,{getPrefixCls:Be}=be.useContext(pe.E_),ze=Be("skeleton",Ne),[it,It]=_e(ze),Mt=(0,Se.Z)(Ge,["prefixCls"]),jt=ge()(ze,`${ze}-element`,{[`${ze}-active`]:Ie,[`${ze}-block`]:Re},et,xt,It);return it(be.createElement("div",{className:jt},be.createElement(oe,Object.assign({prefixCls:`${ze}-input`,size:Ze},Mt))))},Fe=te(54476),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"},at=He,We=te(7657),pt=function(Ne,et){return be.createElement(We.Z,(0,Fe.Z)({},Ne,{ref:et,icon:at}))},Pt=be.forwardRef(pt),At=Pt,rt=Ge=>{const{prefixCls:Ne,className:et,rootClassName:xt,style:Ie,active:Re,children:Ze}=Ge,{getPrefixCls:Be}=be.useContext(pe.E_),ze=Be("skeleton",Ne),[it,It]=_e(ze),Mt=ge()(ze,`${ze}-element`,{[`${ze}-active`]:Re},It,et,xt),jt=Ze!=null?Ze:be.createElement(At,null);return it(be.createElement("div",{className:Mt},be.createElement("div",{className:ge()(`${ze}-image`,et),style:Ie},jt)))},Xe=te(94480),zt=Ge=>{const Ne=Be=>{const{width:ze,rows:it=2}=Ge;if(Array.isArray(ze))return ze[Be];if(it-1===Be)return ze},{prefixCls:et,className:xt,style:Ie,rows:Re}=Ge,Ze=(0,Xe.Z)(Array(Re)).map((Be,ze)=>be.createElement("li",{key:ze,style:{width:Ne(ze)}}));return be.createElement("ul",{className:ge()(et,xt),style:Ie},Ze)},an=Ge=>{let{prefixCls:Ne,className:et,width:xt,style:Ie}=Ge;return be.createElement("h3",{className:ge()(Ne,et),style:Object.assign({width:xt},Ie)})};function $e(Ge){return Ge&&typeof Ge=="object"?Ge:{}}function yt(Ge,Ne){return Ge&&!Ne?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Lt(Ge,Ne){return!Ge&&Ne?{width:"38%"}:Ge&&Ne?{width:"50%"}:{}}function on(Ge,Ne){const et={};return(!Ge||!Ne)&&(et.width="61%"),!Ge&&Ne?et.rows=3:et.rows=2,et}const $t=Ge=>{const{prefixCls:Ne,loading:et,className:xt,rootClassName:Ie,style:Re,children:Ze,avatar:Be=!1,title:ze=!0,paragraph:it=!0,active:It,round:Mt}=Ge,{getPrefixCls:jt,direction:Dt,skeleton:Ht}=be.useContext(pe.E_),bt=jt("skeleton",Ne),[fn,cn]=_e(bt);if(et||!("loading"in Ge)){const wt=!!Be,yn=!!ze,vn=!!it;let zn;if(wt){const qn=Object.assign(Object.assign({prefixCls:`${bt}-avatar`},yt(yn,vn)),$e(Be));zn=be.createElement("div",{className:`${bt}-header`},be.createElement(oe,Object.assign({},qn)))}let wn;if(yn||vn){let qn;if(yn){const Vn=Object.assign(Object.assign({prefixCls:`${bt}-title`},Lt(wt,vn)),$e(ze));qn=be.createElement(an,Object.assign({},Vn))}let Kn;if(vn){const Vn=Object.assign(Object.assign({prefixCls:`${bt}-paragraph`},on(wt,yn)),$e(it));Kn=be.createElement(zt,Object.assign({},Vn))}wn=be.createElement("div",{className:`${bt}-content`},qn,Kn)}const Wn=ge()(bt,{[`${bt}-with-avatar`]:wt,[`${bt}-active`]:It,[`${bt}-rtl`]:Dt==="rtl",[`${bt}-round`]:Mt},Ht==null?void 0:Ht.className,xt,Ie,cn);return fn(be.createElement("div",{className:Wn,style:Object.assign(Object.assign({},Ht==null?void 0:Ht.style),Re)},zn,wn))}return typeof Ze!="undefined"?Ze:null};$t.Button=je,$t.Avatar=De,$t.Input=we,$t.Image=Ye,$t.Node=rt;var st=$t,lt=st},31797:function(mt,Ke,te){"use strict";te.d(Ke,{default:function(){return _e}});var ee=te(59301),ge=te(56762),be=te(92343),pe=te(92310),Se=te.n(pe),fe=te(36355),oe=te(61621),le=ye=>{const{value:De,formatter:Ee,precision:je,decimalSeparator:Le,groupSeparator:ht="",prefixCls:Ye}=ye;let vt;if(typeof Ee=="function")vt=Ee(De);else{const we=String(De),Fe=we.match(/^(-?)(\d*)(\.(\d+))?$/);if(!Fe||we==="-")vt=we;else{const He=Fe[1];let at=Fe[2]||"0",We=Fe[4]||"";at=at.replace(/\B(?=(\d{3})+(?!\d))/g,ht),typeof je=="number"&&(We=We.padEnd(je,"0").slice(0,je>0?je:0)),We&&(We=`${Le}${We}`),vt=[ee.createElement("span",{key:"int",className:`${Ye}-content-value-int`},He,at),We&&ee.createElement("span",{key:"decimal",className:`${Ye}-content-value-decimal`},We)]}}return ee.createElement("span",{className:`${Ye}-content-value`},vt)},me=te(17313),ae=te(83116),he=te(37613);const ie=ye=>{const{componentCls:De,marginXXS:Ee,padding:je,colorTextDescription:Le,titleFontSize:ht,colorTextHeading:Ye,contentFontSize:vt,fontFamily:we}=ye;return{[`${De}`]:Object.assign(Object.assign({},(0,me.Wf)(ye)),{[`${De}-title`]:{marginBottom:Ee,color:Le,fontSize:ht},[`${De}-skeleton`]:{paddingTop:je},[`${De}-content`]:{color:Ye,fontSize:vt,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[ie(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:ht,value:Ye=0,title:vt,valueRender:we,prefix:Fe,suffix:He,loading:at=!1,onMouseEnter:We,onMouseLeave:pt,decimalSeparator:Pt=".",groupSeparator:At=","}=ye,{getPrefixCls:Bt,direction:rt,statistic:Xe}=ee.useContext(fe.E_),Ct=Bt("statistic",De),[zt,Et]=ne(Ct),an=ee.createElement(le,Object.assign({decimalSeparator:Pt,groupSeparator:At,prefixCls:Ct},ye,{value:Ye})),$e=Se()(Ct,{[`${Ct}-rtl`]:rt==="rtl"},Xe==null?void 0:Xe.className,Ee,je,Et);return zt(ee.createElement("div",{className:$e,style:Object.assign(Object.assign({},Xe==null?void 0:Xe.style),Le),onMouseEnter:We,onMouseLeave:pt},vt&&ee.createElement("div",{className:`${Ct}-title`},vt),ee.createElement(oe.Z,{paragraph:!1,loading:at,className:`${Ct}-skeleton`},ee.createElement("div",{style:ht,className:`${Ct}-content`},Fe&&ee.createElement("span",{className:`${Ct}-content-prefix`},Fe),we?we(an):an,He&&ee.createElement("span",{className:`${Ct}-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)),ht=De.replace(je,"[]"),Ye=E.reduce((we,Fe)=>{let[He,at]=Fe;if(we.includes(He)){const We=Math.floor(Ee/at);return Ee-=We*at,we.replace(new RegExp(`${He}+`,"g"),pt=>{const Pt=pt.length;return We.toString().padStart(Pt,"0")})}return we},ht);let vt=0;return Ye.replace(je,()=>{const we=Le[vt];return vt+=1,we})}function x(ye,De){const{format:Ee=""}=De,je=new Date(ye).getTime(),Le=Date.now(),ht=Math.max(je-Le,0);return b(ht,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,ht=(0,ge.Z)(),Ye=ee.useRef(null),vt=()=>{Le==null||Le(),Ye.current&&(clearInterval(Ye.current),Ye.current=null)},we=()=>{const at=re(De);at>=Date.now()&&(Ye.current=setInterval(()=>{ht(),je==null||je(at-Date.now()),at(we(),()=>{Ye.current&&(clearInterval(Ye.current),Ye.current=null)}),[De]);const Fe=(at,We)=>x(at,Object.assign(Object.assign({},We),{format:Ee})),He=at=>(0,be.Tm)(at,{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(mt,Ke,te){"use strict";te.d(Ke,{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(mt,Ke,te){"use strict";te.d(Ke,{default:function(){return Uo}});var ee={},ge="rc-table-internal-hook",be=te(42978),pe=te(6089),Se=te(34280),fe=te(13697),oe=te(59301),de=te(4676);function le(Ae){var Te=oe.createContext(void 0),Ue=function(ot){var Ce=ot.value,Me=ot.children,Oe=oe.useRef(Ce);Oe.current=Ce;var Qe=oe.useState(function(){return{getValue:function(){return Oe.current},listeners:new Set}}),Je=(0,be.Z)(Qe,1),nt=Je[0];return(0,Se.Z)(function(){(0,de.unstable_batchedUpdates)(function(){nt.listeners.forEach(function(qe){qe(Ce)})})},[Ce]),oe.createElement(Te.Provider,{value:nt},Me)};return{Context:Te,Provider:Ue,defaultValue:Ae}}function me(Ae,Te){var Ue=(0,pe.Z)(typeof Te=="function"?Te:function(qe){if(Te===void 0)return qe;if(!Array.isArray(Te))return qe[Te];var ct={};return Te.forEach(function(ut){ct[ut]=qe[ut]}),ct}),Ve=oe.useContext(Ae==null?void 0:Ae.Context),ot=Ve||{},Ce=ot.listeners,Me=ot.getValue,Oe=oe.useRef();Oe.current=Ue(Ve?Me():Ae==null?void 0:Ae.defaultValue);var Qe=oe.useState({}),Je=(0,be.Z)(Qe,2),nt=Je[1];return(0,Se.Z)(function(){if(!Ve)return;function qe(ct){var ut=Ue(ct);(0,fe.Z)(Oe.current,ut,!0)||nt({})}return Ce.add(qe),function(){Ce.delete(qe)}},[Ve]),Oe.current}var ae=te(54476),he=te(8654);function ie(){var Ae=oe.createContext(null);function Te(){return oe.useContext(Ae)}function Ue(ot,Ce){var Me=(0,he.Yr)(ot),Oe=function(Je,nt){var qe=Me?{ref:nt}:{},ct=oe.useRef(0),ut=oe.useRef(Je),St=Te();return St!==null?oe.createElement(ot,(0,ae.Z)({},Je,qe)):((!Ce||Ce(ut.current,Je))&&(ct.current+=1),ut.current=Je,oe.createElement(Ae.Provider,{value:ct.current},oe.createElement(ot,(0,ae.Z)({},Je,qe))))};return Me?oe.forwardRef(Oe):Oe}function Ve(ot,Ce){var Me=(0,he.Yr)(ot),Oe=function(Je,nt){var qe=Me?{ref:nt}:{};return Te(),oe.createElement(ot,(0,ae.Z)({},Je,qe))};return Me?oe.memo(oe.forwardRef(Oe),Ce):oe.memo(Oe,Ce)}return{makeImmutable:Ue,responseImmutable:Ve,useImmutableMark:Te}}var ne=ie(),a=ne.makeImmutable,y=ne.responseImmutable,E=ne.useImmutableMark,b=ie(),x=b.makeImmutable,z=b.responseImmutable,re=b.useImmutableMark,se=le(),ce=se;function _e(Ae,Te){var Ue=oe.useRef(0);Ue.current+=1;var Ve=oe.useRef(Ae),ot=[];Object.keys(Ae||{}).map(function(Me){var Oe;(Ae==null?void 0:Ae[Me])!==((Oe=Ve.current)===null||Oe===void 0?void 0:Oe[Me])&&ot.push(Me)}),Ve.current=Ae;var Ce=oe.useRef([]);return ot.length&&(Ce.current=ot),oe.useDebugValue(Ue.current),oe.useDebugValue(Ce.current.join(", ")),Te&&console.log("".concat(Te,":"),Ue.current,Ce.current),Ue.current}var ye=null,De=oe.memo(function(){var Ae=_e();return oe.createElement("h1",null,"Render Times: ",Ae)});De.displayName="RenderBlock";var Ee=te(76190),je=te(33885),Le=te(20068),ht=te(92310),Ye=te.n(ht),vt=te(80547),we=te(97938),Fe=te(48736),He=oe.createContext({renderWithProps:!1}),at=He,We="RC_TABLE_KEY";function pt(Ae){return Ae==null?[]:Array.isArray(Ae)?Ae:[Ae]}function Pt(Ae){var Te=[],Ue={};return Ae.forEach(function(Ve){for(var ot=Ve||{},Ce=ot.key,Me=ot.dataIndex,Oe=Ce||pt(Me).join("-")||We;Ue[Oe];)Oe="".concat(Oe,"_next");Ue[Oe]=!0,Te.push(Oe)}),Te}function At(Ae){return Ae!=null}function Bt(Ae){return Ae&&(0,Ee.Z)(Ae)==="object"&&!Array.isArray(Ae)&&!oe.isValidElement(Ae)}function rt(Ae,Te,Ue,Ve,ot,Ce){var Me=oe.useContext(at),Oe=re(),Qe=(0,vt.Z)(function(){if(At(Ve))return[Ve];var Je=Te==null||Te===""?[]:Array.isArray(Te)?Te:[Te],nt=(0,we.Z)(Ae,Je),qe=nt,ct=void 0;if(ot){var ut=ot(nt,Ae,Ue);Bt(ut)?(qe=ut.children,ct=ut.props,Me.renderWithProps=!0):qe=ut}return[qe,ct]},[Oe,Ae,Ve,Te,ot,Ue],function(Je,nt){if(Ce){var qe=(0,be.Z)(Je,2),ct=qe[1],ut=(0,be.Z)(nt,2),St=ut[1];return Ce(St,ct)}return Me.renderWithProps?!0:!(0,fe.Z)(Je,nt,!0)});return Qe}function Xe(Ae,Te,Ue,Ve){var ot=Ae+Te-1;return Ae<=Ve&&ot>=Ue}function Ct(Ae,Te){return me(ce,function(Ue){var Ve=Xe(Ae,Te||1,Ue.hoverStartRow,Ue.hoverEndRow);return[Ve,Ue.onHover]})}var zt=function(Te){var Ue=Te.ellipsis,Ve=Te.rowType,ot=Te.children,Ce,Me=Ue===!0?{showTitle:!0}:Ue;return Me&&(Me.showTitle||Ve==="header")&&(typeof ot=="string"||typeof ot=="number"?Ce=ot.toString():oe.isValidElement(ot)&&typeof ot.props.children=="string"&&(Ce=ot.props.children)),Ce};function Et(Ae){var Te,Ue,Ve,ot,Ce,Me,Oe,Qe,Je=Ae.component,nt=Ae.children,qe=Ae.ellipsis,ct=Ae.scope,ut=Ae.prefixCls,St=Ae.className,Vt=Ae.align,Nt=Ae.record,Yt=Ae.render,Ot=Ae.dataIndex,Qt=Ae.renderIndex,Jt=Ae.shouldCellUpdate,Pn=Ae.index,rn=Ae.rowType,_n=Ae.colSpan,On=Ae.rowSpan,qt=Ae.fixLeft,hn=Ae.fixRight,Rt=Ae.firstFixLeft,nn=Ae.lastFixLeft,ln=Ae.firstFixRight,Ln=Ae.lastFixRight,Jn=Ae.appendNode,en=Ae.additionalProps,bn=en===void 0?{}:en,Dn=Ae.isSticky,gn="".concat(ut,"-cell"),Tn=me(ce,["supportSticky","allColumnsFixedLeft"]),jn=Tn.supportSticky,Xn=Tn.allColumnsFixedLeft,Hr=rt(Nt,Ot,Qt,nt,Yt,Jt),er=(0,be.Z)(Hr,2),Wr=er[0],Sr=er[1],Lr={},Nr=typeof qt=="number"&&jn,Hn=typeof hn=="number"&&jn;Nr&&(Lr.position="sticky",Lr.left=qt),Hn&&(Lr.position="sticky",Lr.right=hn);var Cn=(Te=(Ue=(Ve=Sr==null?void 0:Sr.colSpan)!==null&&Ve!==void 0?Ve:bn.colSpan)!==null&&Ue!==void 0?Ue:_n)!==null&&Te!==void 0?Te:1,kn=(ot=(Ce=(Me=Sr==null?void 0:Sr.rowSpan)!==null&&Me!==void 0?Me:bn.rowSpan)!==null&&Ce!==void 0?Ce:On)!==null&&ot!==void 0?ot:1,Un=Ct(Pn,kn),Mn=(0,be.Z)(Un,2),yr=Mn[0],Rn=Mn[1],Gn=function(Rr){var br;Nt&&Rn(Pn,Pn+kn-1),bn==null||(br=bn.onMouseEnter)===null||br===void 0||br.call(bn,Rr)},hr=function(Rr){var br;Nt&&Rn(-1,-1),bn==null||(br=bn.onMouseLeave)===null||br===void 0||br.call(bn,Rr)};if(Cn===0||kn===0)return null;var _r=(Oe=bn.title)!==null&&Oe!==void 0?Oe:zt({rowType:rn,ellipsis:qe,children:Wr}),Di=Ye()(gn,St,(Qe={},(0,Le.Z)(Qe,"".concat(gn,"-fix-left"),Nr&&jn),(0,Le.Z)(Qe,"".concat(gn,"-fix-left-first"),Rt&&jn),(0,Le.Z)(Qe,"".concat(gn,"-fix-left-last"),nn&&jn),(0,Le.Z)(Qe,"".concat(gn,"-fix-left-all"),nn&&Xn&&jn),(0,Le.Z)(Qe,"".concat(gn,"-fix-right"),Hn&&jn),(0,Le.Z)(Qe,"".concat(gn,"-fix-right-first"),ln&&jn),(0,Le.Z)(Qe,"".concat(gn,"-fix-right-last"),Ln&&jn),(0,Le.Z)(Qe,"".concat(gn,"-ellipsis"),qe),(0,Le.Z)(Qe,"".concat(gn,"-with-append"),Jn),(0,Le.Z)(Qe,"".concat(gn,"-fix-sticky"),(Nr||Hn)&&Dn&&jn),(0,Le.Z)(Qe,"".concat(gn,"-row-hover"),!Sr&&yr),Qe),bn.className,Sr==null?void 0:Sr.className),_i={};Vt&&(_i.textAlign=Vt);var tr=(0,je.Z)((0,je.Z)((0,je.Z)((0,je.Z)({},Lr),bn.style),_i),Sr==null?void 0:Sr.style),mr=Wr;return(0,Ee.Z)(mr)==="object"&&!Array.isArray(mr)&&!oe.isValidElement(mr)&&(mr=null),qe&&(nn||ln)&&(mr=oe.createElement("span",{className:"".concat(gn,"-content")},mr)),oe.createElement(Je,(0,ae.Z)({},Sr,bn,{className:Di,style:tr,title:_r,scope:ct,onMouseEnter:Gn,onMouseLeave:hr,colSpan:Cn!==1?Cn:null,rowSpan:kn!==1?kn:null}),Jn,mr)}var an=oe.memo(Et);function $e(Ae,Te,Ue,Ve,ot,Ce){var Me=Ue[Ae]||{},Oe=Ue[Te]||{},Qe,Je;Me.fixed==="left"?Qe=Ve.left[ot==="rtl"?Te:Ae]:Oe.fixed==="right"&&(Je=Ve.right[ot==="rtl"?Ae:Te]);var nt=!1,qe=!1,ct=!1,ut=!1,St=Ue[Te+1],Vt=Ue[Ae-1],Nt=!(Ce!=null&&Ce.children);if(ot==="rtl"){if(Qe!==void 0){var Yt=Vt&&Vt.fixed==="left";ut=!Yt&&Nt}else if(Je!==void 0){var Ot=St&&St.fixed==="right";ct=!Ot&&Nt}}else if(Qe!==void 0){var Qt=St&&St.fixed==="left";nt=!Qt&&Nt}else if(Je!==void 0){var Jt=Vt&&Vt.fixed==="right";qe=!Jt&&Nt}return{fixLeft:Qe,fixRight:Je,lastFixLeft:nt,firstFixRight:qe,lastFixRight:ct,firstFixLeft:ut,isSticky:Ve.isSticky}}var yt=oe.createContext({}),Lt=yt;function on(Ae){var Te=Ae.className,Ue=Ae.index,Ve=Ae.children,ot=Ae.colSpan,Ce=ot===void 0?1:ot,Me=Ae.rowSpan,Oe=Ae.align,Qe=me(ce,["prefixCls","direction"]),Je=Qe.prefixCls,nt=Qe.direction,qe=oe.useContext(Lt),ct=qe.scrollColumnIndex,ut=qe.stickyOffsets,St=qe.flattenColumns,Vt=qe.columns,Nt=Ue+Ce-1,Yt=Nt+1===ct?Ce+1:Ce,Ot=$e(Ue,Ue+Yt-1,St,ut,nt,Vt==null?void 0:Vt[Ue]);return oe.createElement(an,(0,ae.Z)({className:Te,index:Ue,component:"td",prefixCls:Je,record:null,dataIndex:null,align:Oe,colSpan:Yt,rowSpan:Me,render:function(){return Ve}},Ot))}var $t=te(75931),st=["children"];function lt(Ae){var Te=Ae.children,Ue=(0,$t.Z)(Ae,st);return oe.createElement("tr",Ue,Te)}function Ge(Ae){var Te=Ae.children;return Te}Ge.Row=lt,Ge.Cell=on;var Ne=Ge;function et(Ae){var Te=Ae.children,Ue=Ae.stickyOffsets,Ve=Ae.flattenColumns,ot=Ae.columns,Ce=me(ce,"prefixCls"),Me=Ve.length-1,Oe=Ve[Me],Qe=oe.useMemo(function(){return{stickyOffsets:Ue,flattenColumns:Ve,scrollColumnIndex:Oe!=null&&Oe.scrollbar?Me:null,columns:ot}},[Oe,Ve,Me,Ue,ot]);return oe.createElement(Lt.Provider,{value:Qe},oe.createElement("tfoot",{className:"".concat(Ce,"-summary")},Te))}var xt=z(et),Ie=Ne,Re=te(70425),Ze=te(29301),Be=te(29194),ze=te(24514),it=te(75152),It=te(26112);function Mt(Ae,Te,Ue,Ve,ot,Ce,Me){Ae.push({record:Te,indent:Ue,index:Me});var Oe=Ce(Te),Qe=ot==null?void 0:ot.has(Oe);if(Te&&Array.isArray(Te[Ve])&&Qe)for(var Je=0;Je1?Rt-1:0),ln=1;ln=0;Oe-=1){var Qe=Te[Oe],Je=Ue&&Ue[Oe],nt=Je&&Je[qn];if(Qe||nt||Me){var qe=nt||{},ct=qe.columnType,ut=(0,$t.Z)(qe,Vn);ot.unshift(oe.createElement("col",(0,ae.Z)({key:Oe,style:{width:Qe}},ut))),Me=!0}}return oe.createElement("colgroup",null,ot)}var lr=vr,sn=te(94480),Yn=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function or(Ae,Te){return(0,oe.useMemo)(function(){for(var Ue=[],Ve=0;Ve1?"colgroup":"col":null,ellipsis:Nt.ellipsis,align:Nt.align,component:Nt.title?Ce:Me,prefixCls:nt,key:ut[Vt]},Yt,{additionalProps:Ot,rowType:"header"}))}))}Dr.displayName="HeaderRow";var Mr=Dr;function Er(Ae){var Te=[];function Ue(Me,Oe){var Qe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Te[Qe]=Te[Qe]||[];var Je=Oe,nt=Me.filter(Boolean).map(function(qe){var ct={key:qe.key,className:qe.className||"",children:qe.title,column:qe,colStart:Je},ut=1,St=qe.children;return St&&St.length>0&&(ut=Ue(St,Je,Qe+1).reduce(function(Vt,Nt){return Vt+Nt},0),ct.hasSubColumns=!0),"colSpan"in qe&&(ut=qe.colSpan),"rowSpan"in qe&&(ct.rowSpan=qe.rowSpan),ct.colSpan=ut,ct.colEnd=ct.colStart+ut-1,Te[Qe].push(ct),Je+=ut,ut});return nt}Ue(Ae,0);for(var Ve=Te.length,ot=function(Oe){Te[Oe].forEach(function(Qe){!("rowSpan"in Qe)&&!Qe.hasSubColumns&&(Qe.rowSpan=Ve-Oe)})},Ce=0;Ce1&&arguments[1]!==void 0?arguments[1]:"";return typeof Te=="number"?Te:Te.endsWith("%")?Ae*parseFloat(Te)/100:null}function ue(Ae,Te){return oe.useMemo(function(){if(Te&&Te>0){var Ue=0,Ve=0;Ae.forEach(function(Je){var nt=Ut(Te,Je.width);nt?Ue+=nt:Ve+=1});var ot=Te-Ue,Ce=Ve,Me=ot/Ve,Oe=0,Qe=Ae.map(function(Je){var nt=(0,je.Z)({},Je),qe=Ut(Te,nt.width);if(qe)nt.width=qe;else{var ct=Math.floor(Me);nt.width=Ce===1?ot:ct,ot-=ct,Ce-=1}return Oe+=nt.width,nt});return[Qe,Oe]}return[Ae,Te]},[Ae,Te])}var ve=["children"],Pe=["fixed"];function xe(Ae){return(0,Kr.Z)(Ae).filter(function(Te){return oe.isValidElement(Te)}).map(function(Te){var Ue=Te.key,Ve=Te.props,ot=Ve.children,Ce=(0,$t.Z)(Ve,ve),Me=(0,je.Z)({key:Ue},Ce);return ot&&(Me.children=xe(ot)),Me})}function ke(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,Ve,ot){var Ce=Ve.fixed,Me=Ce===!0?"left":Ce,Oe="".concat(Te,"-").concat(ot),Qe=Ve.children;return Qe&&Qe.length>0?[].concat((0,sn.Z)(Ue),(0,sn.Z)(ke(Qe,Oe).map(function(Je){return(0,je.Z)({fixed:Me},Je)}))):[].concat((0,sn.Z)(Ue),[(0,je.Z)((0,je.Z)({key:Oe},Ve),{},{fixed:Me})])},[])}function tt(Ae){for(var Te=!0,Ue=0;Ue=0;Ce-=1){var Me=Ae[Ce];if(ot&&Me.fixed!=="right")ot=!1;else if(!ot&&Me.fixed==="right"){warning(!1,"Index ".concat(Ce+1," of `columns` missing `fixed='right'` prop."));break}}}function dt(Ae){return Ae.map(function(Te){var Ue=Te.fixed,Ve=(0,$t.Z)(Te,Pe),ot=Ue;return Ue==="left"?ot="right":Ue==="right"&&(ot="left"),(0,je.Z)({fixed:ot},Ve)})}function tn(Ae,Te){var Ue=Ae.prefixCls,Ve=Ae.columns,ot=Ae.children,Ce=Ae.expandable,Me=Ae.expandedKeys,Oe=Ae.columnTitle,Qe=Ae.getRowKey,Je=Ae.onTriggerExpand,nt=Ae.expandIcon,qe=Ae.rowExpandable,ct=Ae.expandIconColumnIndex,ut=Ae.direction,St=Ae.expandRowByClick,Vt=Ae.columnWidth,Nt=Ae.fixed,Yt=Ae.scrollWidth,Ot=oe.useMemo(function(){return Ve||xe(ot)},[Ve,ot]),Qt=oe.useMemo(function(){if(Ce){var hn,Rt=Ot.slice();if(!Rt.includes(ee)){var nn=ct||0;nn>=0&&Rt.splice(nn,0,ee)}var ln=Rt.indexOf(ee);Rt=Rt.filter(function(bn,Dn){return bn!==ee||Dn===ln});var Ln=Ot[ln],Jn;(Nt==="left"||Nt)&&!ct?Jn="left":(Nt==="right"||Nt)&&ct===Ot.length?Jn="right":Jn=Ln?Ln.fixed:null;var en=(hn={},(0,Le.Z)(hn,qn,{className:"".concat(Ue,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,Le.Z)(hn,"title",Oe),(0,Le.Z)(hn,"fixed",Jn),(0,Le.Z)(hn,"className","".concat(Ue,"-row-expand-icon-cell")),(0,Le.Z)(hn,"width",Vt),(0,Le.Z)(hn,"render",function(Dn,gn,Tn){var jn=Qe(gn,Tn),Xn=Me.has(jn),Hr=qe?qe(gn):!0,er=nt({prefixCls:Ue,expanded:Xn,expandable:Hr,record:gn,onExpand:Je});return St?oe.createElement("span",{onClick:function(Sr){return Sr.stopPropagation()}},er):er}),hn);return Rt.map(function(bn){return bn===ee?en:bn})}return Ot.filter(function(bn){return bn!==ee})},[Ce,Ot,Qe,Me,nt,ut]),Jt=oe.useMemo(function(){var hn=Qt;return Te&&(hn=Te(hn)),hn.length||(hn=[{render:function(){return null}}]),hn},[Te,Qt,ut]),Pn=oe.useMemo(function(){return ut==="rtl"?dt(ke(Jt)):ke(Jt)},[Jt,ut,Yt]),rn=ue(Pn,Yt),_n=(0,be.Z)(rn,2),On=_n[0],qt=_n[1];return[Jt,On,qt]}var Kt=tn;function _t(Ae){var Te,Ue=Ae.prefixCls,Ve=Ae.record,ot=Ae.onExpand,Ce=Ae.expanded,Me=Ae.expandable,Oe="".concat(Ue,"-row-expand-icon");if(!Me)return oe.createElement("span",{className:Ye()(Oe,"".concat(Ue,"-row-spaced"))});var Qe=function(nt){ot(Ve,nt),nt.stopPropagation()};return oe.createElement("span",{className:Ye()(Oe,(Te={},(0,Le.Z)(Te,"".concat(Ue,"-row-expanded"),Ce),(0,Le.Z)(Te,"".concat(Ue,"-row-collapsed"),!Ce),Te)),onClick:Qe})}function ft(Ae,Te,Ue){var Ve=[];function ot(Ce){(Ce||[]).forEach(function(Me,Oe){Ve.push(Te(Me,Oe)),ot(Me[Ue])})}return ot(Ae),Ve}function Ft(Ae,Te,Ue){var Ve=Kn(Ae),ot=Ve.expandIcon,Ce=Ve.expandedRowKeys,Me=Ve.defaultExpandedRowKeys,Oe=Ve.defaultExpandAllRows,Qe=Ve.expandedRowRender,Je=Ve.onExpand,nt=Ve.onExpandedRowsChange,qe=Ve.childrenColumnName,ct=ot||_t,ut=qe||"children",St=oe.useMemo(function(){return Qe?"row":Ae.expandable&&Ae.internalHooks===ge&&Ae.expandable.__PARENT_RENDER_ICON__||Te.some(function(Pn){return Pn&&(0,Ee.Z)(Pn)==="object"&&Pn[ut]})?"nest":!1},[!!Qe,Te]),Vt=oe.useState(function(){return Me||(Oe?ft(Te,Ue,ut):[])}),Nt=(0,be.Z)(Vt,2),Yt=Nt[0],Ot=Nt[1],Qt=oe.useMemo(function(){return new Set(Ce||Yt||[])},[Ce,Yt]),Jt=oe.useCallback(function(Pn){var rn=Ue(Pn,Te.indexOf(Pn)),_n,On=Qt.has(rn);On?(Qt.delete(rn),_n=(0,sn.Z)(Qt)):_n=[].concat((0,sn.Z)(Qt),[rn]),Ot(_n),Je&&Je(!On,Pn),nt&&nt(_n)},[Ue,Qt,Te,Je,nt]);return[Ve,St,Qt,ct,ut,Jt]}function gt(Ae,Te,Ue,Ve){var ot=Ae.map(function(Ce,Me){return $e(Me,Me,Ae,Te,Ue,Ve==null?void 0:Ve[Me])});return(0,vt.Z)(function(){return ot},[ot],function(Ce,Me){return!(0,fe.Z)(Ce,Me)})}function Gt(Ae){var Te=(0,oe.useRef)(Ae),Ue=(0,oe.useState)({}),Ve=(0,be.Z)(Ue,2),ot=Ve[1],Ce=(0,oe.useRef)(null),Me=(0,oe.useRef)([]);function Oe(Qe){Me.current.push(Qe);var Je=Promise.resolve();Ce.current=Je,Je.then(function(){if(Ce.current===Je){var nt=Me.current,qe=Te.current;Me.current=[],nt.forEach(function(ct){Te.current=ct(Te.current)}),Ce.current=null,qe!==Te.current&&ot({})}})}return(0,oe.useEffect)(function(){return function(){Ce.current=null}},[]),[Te.current,Oe]}function Zt(Ae){var Te=(0,oe.useRef)(Ae||null),Ue=(0,oe.useRef)();function Ve(){window.clearTimeout(Ue.current)}function ot(Me){Te.current=Me,Ve(),Ue.current=window.setTimeout(function(){Te.current=null,Ue.current=void 0},100)}function Ce(){return Te.current}return(0,oe.useEffect)(function(){return Ve},[]),[ot,Ce]}function Tt(){var Ae=oe.useState(-1),Te=(0,be.Z)(Ae,2),Ue=Te[0],Ve=Te[1],ot=oe.useState(-1),Ce=(0,be.Z)(ot,2),Me=Ce[0],Oe=Ce[1],Qe=oe.useCallback(function(Je,nt){Ve(Je),Oe(nt)},[]);return[Ue,Me,Qe]}var kt=te(47273),Xt=(0,kt.Z)()?window:null;function dn(Ae,Te){var Ue=(0,Ee.Z)(Ae)==="object"?Ae:{},Ve=Ue.offsetHeader,ot=Ve===void 0?0:Ve,Ce=Ue.offsetSummary,Me=Ce===void 0?0:Ce,Oe=Ue.offsetScroll,Qe=Oe===void 0?0:Oe,Je=Ue.getContainer,nt=Je===void 0?function(){return Xt}:Je,qe=nt()||Xt;return oe.useMemo(function(){var ct=!!Ae;return{isSticky:ct,stickyClassName:ct?"".concat(Te,"-sticky-holder"):"",offsetHeader:ot,offsetSummary:Me,offsetScroll:Qe,container:qe}},[Qe,ot,Me,Te,qe])}function xn(Ae,Te,Ue){var Ve=(0,oe.useMemo)(function(){for(var ot=[],Ce=[],Me=0,Oe=0,Qe=0;Qe=qe&&(bn=qe-ct),Me({scrollLeft:bn/qe*(nt+2)}),Ot.current.x=ln.pageX},hn=function(){if(Ce.current){var ln=(0,ur.os)(Ce.current).top,Ln=ln+Ce.current.offsetHeight,Jn=Qe===window?document.documentElement.scrollTop+window.innerHeight:(0,ur.os)(Qe).top+Qe.clientHeight;Ln-(0,it.Z)()<=Jn||ln>=Jn-Oe?Yt(function(en){return(0,je.Z)((0,je.Z)({},en),{},{isHiddenScrollBar:!0})}):Yt(function(en){return(0,je.Z)((0,je.Z)({},en),{},{isHiddenScrollBar:!1})})}},Rt=function(ln){Yt(function(Ln){return(0,je.Z)((0,je.Z)({},Ln),{},{scrollLeft:ln/nt*qe||0})})};return oe.useImperativeHandle(Ue,function(){return{setScrollLeft:Rt}}),oe.useEffect(function(){var nn=(0,An.Z)(document.body,"mouseup",_n,!1),ln=(0,An.Z)(document.body,"mousemove",qt,!1);return hn(),function(){nn.remove(),ln.remove()}},[ct,Pn]),oe.useEffect(function(){var nn=(0,An.Z)(Qe,"scroll",hn,!1),ln=(0,An.Z)(window,"resize",hn,!1);return function(){nn.remove(),ln.remove()}},[Qe]),oe.useEffect(function(){Nt.isHiddenScrollBar||Yt(function(nn){var ln=Ce.current;return ln?(0,je.Z)((0,je.Z)({},nn),{},{scrollLeft:ln.scrollLeft/ln.scrollWidth*ln.clientWidth}):nn})},[Nt.isHiddenScrollBar]),nt<=qe||!ct||Nt.isHiddenScrollBar?null:oe.createElement("div",{style:{height:(0,it.Z)(),width:qe,bottom:Oe},className:"".concat(Je,"-sticky-scroll")},oe.createElement("div",{onMouseDown:On,ref:ut,className:Ye()("".concat(Je,"-sticky-scroll-bar"),(0,Le.Z)({},"".concat(Je,"-sticky-scroll-bar-active"),Pn)),style:{width:"".concat(ct,"px"),transform:"translate3d(".concat(Nt.scrollLeft,"px, 0, 0)")}}))},ir=oe.forwardRef(rr);function Wt(Ae){return null}var oi=Wt;function wr(Ae){return null}var Tr=wr,kr="rc-table",un=[],Sn={};function Nn(){return"No Data"}function pn(Ae){var Te,Ue=(0,je.Z)({rowKey:"key",prefixCls:kr,emptyText:Nn},Ae),Ve=Ue.prefixCls,ot=Ue.className,Ce=Ue.rowClassName,Me=Ue.style,Oe=Ue.data,Qe=Ue.rowKey,Je=Ue.scroll,nt=Ue.tableLayout,qe=Ue.direction,ct=Ue.title,ut=Ue.footer,St=Ue.summary,Vt=Ue.caption,Nt=Ue.id,Yt=Ue.showHeader,Ot=Ue.components,Qt=Ue.emptyText,Jt=Ue.onRow,Pn=Ue.onHeaderRow,rn=Ue.internalHooks,_n=Ue.transformColumns,On=Ue.internalRefs,qt=Ue.tailor,hn=Ue.sticky,Rt=Oe||un,nn=!!Rt.length,ln=rn===ge,Ln=oe.useCallback(function(Fr,ei){return(0,we.Z)(Ot,Fr)||ei},[Ot]),Jn=oe.useMemo(function(){return typeof Qe=="function"?Qe:function(Fr){var ei=Fr&&Fr[Qe];return ei}},[Qe]),en=Ln(["body"]),bn=Tt(),Dn=(0,be.Z)(bn,3),gn=Dn[0],Tn=Dn[1],jn=Dn[2],Xn=Ft(Ue,Rt,Jn),Hr=(0,be.Z)(Xn,6),er=Hr[0],Wr=Hr[1],Sr=Hr[2],Lr=Hr[3],Nr=Hr[4],Hn=Hr[5],Cn=Je==null?void 0:Je.x,kn=oe.useState(0),Un=(0,be.Z)(kn,2),Mn=Un[0],yr=Un[1],Rn=Kt((0,je.Z)((0,je.Z)((0,je.Z)({},Ue),er),{},{expandable:!!er.expandedRowRender,columnTitle:er.columnTitle,expandedKeys:Sr,getRowKey:Jn,onTriggerExpand:Hn,expandIcon:Lr,expandIconColumnIndex:er.expandIconColumnIndex,direction:qe,scrollWidth:ln&&qt&&typeof Cn=="number"?Cn:null}),ln?_n:null),Gn=(0,be.Z)(Rn,3),hr=Gn[0],_r=Gn[1],Di=Gn[2],_i=Di!=null?Di:Cn,tr=oe.useMemo(function(){return{columns:hr,flattenColumns:_r}},[hr,_r]),mr=oe.useRef(),qr=oe.useRef(),Rr=oe.useRef(),br=oe.useRef(),Bi=oe.useRef(),Pr=oe.useState(!1),Cr=(0,be.Z)(Pr,2),Gr=Cr[0],Vr=Cr[1],ci=oe.useState(!1),dr=(0,be.Z)(ci,2),Ai=dr[0],ki=dr[1],Xi=Gt(new Map),fo=(0,be.Z)(Xi,2),so=fo[0],ea=fo[1],yo=Pt(_r),ro=yo.map(function(Fr){return so.get(Fr)}),Zi=oe.useMemo(function(){return ro},[ro.join("_")]),zi=Fn(Zi,_r.length,qe),pi=Je&&At(Je.y),ri=Je&&At(_i)||!!er.fixed,ho=ri&&_r.some(function(Fr){var ei=Fr.fixed;return ei}),Oo=oe.useRef(),wo=dn(hn,Ve),mo=wo.isSticky,Pa=wo.offsetHeader,ts=wo.offsetSummary,xr=wo.offsetScroll,Yr=wo.stickyClassName,Ii=wo.container,ii=oe.useMemo(function(){return St==null?void 0:St(Rt)},[St,Rt]),Fi=(pi||mo)&&oe.isValidElement(ii)&&ii.type===Ne&&ii.props.fixed,Wi,Ki,Po;pi&&(Ki={overflowY:"scroll",maxHeight:Je.y}),ri&&(Wi={overflowX:"auto"},pi||(Ki={overflowY:"hidden"}),Po={width:_i===!0?"auto":_i,minWidth:"100%"});var xs=oe.useCallback(function(Fr,ei){(0,Be.Z)(mr.current)&&ea(function(io){if(io.get(Fr)!==ei){var xo=new Map(io);return xo.set(Fr,ei),xo}return io})},[]),$s=Zt(null),Ls=(0,be.Z)($s,2),Zs=Ls[0],Ds=Ls[1];function ba(Fr,ei){ei&&(typeof ei=="function"?ei(Fr):ei.scrollLeft!==Fr&&(ei.scrollLeft=Fr,ei.scrollLeft!==Fr&&setTimeout(function(){ei.scrollLeft=Fr},0)))}var $o=(0,pe.Z)(function(Fr){var ei=Fr.currentTarget,io=Fr.scrollLeft,xo=qe==="rtl",Lo=typeof io=="number"?io:ei.scrollLeft,Us=ei||Sn;if(!Ds()||Ds()===Us){var as;Zs(Us),ba(Lo,qr.current),ba(Lo,Rr.current),ba(Lo,Bi.current),ba(Lo,(as=Oo.current)===null||as===void 0?void 0:as.setScrollLeft)}var ss=ei||qr.current;if(ss){var ls=ss.scrollWidth,cs=ss.clientWidth;if(ls===cs){Vr(!1),ki(!1);return}xo?(Vr(-Lo0)):(Vr(Lo>0),ki(Lo1?Vt-ln:0,Jn=(0,je.Z)((0,je.Z)((0,je.Z)({},_n),Qe),{},{flex:"0 0 ".concat(ln,"px"),width:"".concat(ln,"px"),marginRight:Ln,pointerEvents:"auto"}),en=oe.useMemo(function(){return nt?Rt<=1:qt===0||Rt===0||Rt>1},[Rt,qt,nt]);en?Jn.visibility="hidden":nt&&(Jn.height=qe==null?void 0:qe(Rt));var bn=en?function(){return null}:ct,Dn={};return(Rt===0||qt===0)&&(Dn.rowSpan=1,Dn.colSpan=1),oe.createElement(an,(0,ae.Z)({className:Ye()(St,Je),ellipsis:Ue.ellipsis,align:Ue.align,scope:Ue.rowScope,component:"div",prefixCls:Te.prefixCls,key:Qt,record:Oe,index:Ce,renderIndex:Me,dataIndex:ut,render:bn,shouldCellUpdate:Ue.shouldCellUpdate},Jt,{appendNode:Pn,additionalProps:(0,je.Z)((0,je.Z)({},rn),{},{style:Jn},Dn)}))}var Mi=Si,yi=["data","index","className","rowKey","style","extra","getHeight"],wi=oe.forwardRef(function(Ae,Te){var Ue=Ae.data,Ve=Ae.index,ot=Ae.className,Ce=Ae.rowKey,Me=Ae.style,Oe=Ae.extra,Qe=Ae.getHeight,Je=(0,$t.Z)(Ae,yi),nt=Ue.record,qe=Ue.indent,ct=Ue.index,ut=me(ce,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),St=ut.scrollX,Vt=ut.flattenColumns,Nt=ut.prefixCls,Yt=ut.fixColumn,Ot=ut.componentWidth,Qt=bt(nt,Ce,Ve,qe),Jt=Qt.rowSupportExpand,Pn=Qt.expanded,rn=Qt.rowProps,_n=Qt.expandedRowRender,On=Qt.expandedRowClassName,qt;if(Jt&&Pn){var hn=_n(nt,Ve,qe+1,Pn),Rt=On==null?void 0:On(nt,Ve,qe),nn={};Yt&&(nn={style:(0,Le.Z)({},"--virtual-width","".concat(Ot,"px"))});var ln="".concat(Nt,"-expanded-row-cell");qt=oe.createElement("div",{className:Ye()("".concat(Nt,"-expanded-row"),"".concat(Nt,"-expanded-row-level-").concat(qe+1),Rt)},oe.createElement(an,{component:"div",prefixCls:Nt,className:Ye()(ln,(0,Le.Z)({},"".concat(ln,"-fixed"),Yt)),additionalProps:nn},hn))}var Ln=(0,je.Z)((0,je.Z)({},Me),{},{width:St});Oe&&(Ln.position="absolute",Ln.pointerEvents="none");var Jn=oe.createElement("div",(0,ae.Z)({},rn,Je,{ref:Jt?null:Te,className:Ye()(ot,"".concat(Nt,"-row"),rn==null?void 0:rn.className,(0,Le.Z)({},"".concat(Nt,"-row-extra"),Oe)),style:(0,je.Z)((0,je.Z)({},Ln),rn==null?void 0:rn.style)}),Vt.map(function(en,bn){return oe.createElement(Mi,{key:bn,rowInfo:Qt,column:en,colIndex:bn,indent:qe,index:Ve,renderIndex:ct,record:nt,inverse:Oe,getHeight:Qe})}));return Jt?oe.createElement("div",{ref:Te},Jn,qt):Jn}),xi=z(wi),Oi=xi,ai=oe.forwardRef(function(Ae,Te){var Ue=Ae.data,Ve=Ae.onScroll,ot=me(ce,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),Ce=ot.flattenColumns,Me=ot.onColumnResize,Oe=ot.getRowKey,Qe=ot.expandedKeys,Je=ot.prefixCls,nt=ot.childrenColumnName,qe=ot.emptyNode,ct=ot.scrollX,ut=me(ti),St=ut.scrollY,Vt=ut.listItemHeight,Nt=oe.useRef(),Yt=jt(Ue,nt,Qe,Oe),Ot=oe.useMemo(function(){var qt=0;return Ce.map(function(hn){var Rt=hn.width,nn=hn.key;return qt+=Rt,[nn,Rt,qt]})},[Ce]),Qt=oe.useMemo(function(){return Ot.map(function(qt){return qt[2]})},[Ot]);oe.useEffect(function(){Ot.forEach(function(qt){var hn=(0,be.Z)(qt,2),Rt=hn[0],nn=hn[1];Me(Rt,nn)})},[Ot]),oe.useImperativeHandle(Te,function(){var qt={};return Object.defineProperty(qt,"scrollLeft",{get:function(){var Rt;return((Rt=Nt.current)===null||Rt===void 0?void 0:Rt.getScrollInfo().x)||0},set:function(Rt){var nn;(nn=Nt.current)===null||nn===void 0||nn.scrollTo({left:Rt})}}),qt});var Jt=function(hn,Rt){var nn,ln=(nn=Yt[Rt])===null||nn===void 0?void 0:nn.record,Ln=hn.onCell;if(Ln){var Jn,en=Ln(ln,Rt);return(Jn=en==null?void 0:en.rowSpan)!==null&&Jn!==void 0?Jn:1}return 1},Pn=function(hn){var Rt=hn.start,nn=hn.end,ln=hn.getSize,Ln=hn.offsetY;if(nn<0)return null;for(var Jn=Ce.filter(function(Cn){return Jt(Cn,Rt)===0}),en=Rt,bn=function(kn){if(Jn=Jn.filter(function(Un){return Jt(Un,kn)===0}),!Jn.length)return en=kn,"break"},Dn=Rt;Dn>=0;Dn-=1){var gn=bn(Dn);if(gn==="break")break}for(var Tn=Ce.filter(function(Cn){return Jt(Cn,nn)!==1}),jn=nn,Xn=function(kn){if(Tn=Tn.filter(function(Un){return Jt(Un,kn)!==1}),!Tn.length)return jn=Math.max(kn-1,nn),"break"},Hr=nn;Hr1})&&Wr.push(kn)},Lr=en;Lr<=jn;Lr+=1)var Nr=Sr(Lr);var Hn=Wr.map(function(Cn){var kn=Yt[Cn],Un=Oe(kn.record,Cn),Mn=function(Gn){var hr=Cn+Gn-1,_r=Oe(Yt[hr].record,hr),Di=ln(Un,_r);return Di.bottom-Di.top},yr=ln(Un);return oe.createElement(Oi,{key:Cn,data:kn,rowKey:Un,index:Cn,style:{top:-Ln+yr.top},extra:!0,getHeight:Mn})});return Hn},rn=oe.useMemo(function(){return{columnsOffset:Qt}},[Qt]),_n="".concat(Je,"-tbody"),On;return Yt.length?On=oe.createElement(Ur.Z,{fullHeight:!1,ref:Nt,className:Ye()(_n,"".concat(_n,"-virtual")),height:St,itemHeight:Vt||24,data:Yt,itemKey:function(hn){return Oe(hn.record)},scrollWidth:ct,onVirtualScroll:function(hn){var Rt=hn.x;Ve({scrollLeft:Rt})},extraRender:Pn},function(qt,hn,Rt){var nn=Oe(qt.record,hn);return oe.createElement(Oi,(0,ae.Z)({data:qt,rowKey:nn,index:hn},Rt))}):On=oe.createElement("div",{className:Ye()("".concat(Je,"-placeholder"))},oe.createElement(an,{component:"div",prefixCls:Je},qe)),oe.createElement(vi.Provider,{value:rn},On)}),jr=z(ai),$r=jr,ni=function(Te,Ue){var Ve=Ue.ref,ot=Ue.onScroll;return oe.createElement($r,{ref:Ve,data:Te,onScroll:ot})},di=100;function Ri(Ae){var Te=Ae.columns,Ue=Ae.scroll,Ve=Ae.prefixCls,ot=Ve===void 0?kr:Ve,Ce=Ae.className,Me=Ae.listItemHeight,Oe=Ue||{},Qe=Oe.x,Je=Oe.y;typeof Qe!="number"&&(Qe=((Te||[]).length+1)*di),typeof Je!="number"&&(Je=500);var nt=oe.useMemo(function(){return{scrollY:Je,listItemHeight:Me}},[Je,Me]);return oe.createElement(ti.Provider,{value:nt},oe.createElement(Ar,(0,ae.Z)({},Ae,{className:Ye()(Ce,"".concat(ot,"-virtual")),scroll:(0,je.Z)((0,je.Z)({},Ue),{},{x:Qe}),components:{body:ni},columns:Te,internalHooks:ge,tailor:!0})))}function zr(Ae){return x(Ri,Ae)}var Hi=zr(),Pi=null;function fi(Ae){return null}var oo=fi;function bi(Ae){return null}var Vi=bi,Ti=te(2738),Ci=te(68031),hi=te(36355),Gi=te(93891),Qi=te(19716),bo=te(8628),po=te(31724),Ji=te(58421),$n=te(71418),En=te(88088);function In(Ae){return function(Ue){let{prefixCls:Ve,onExpand:ot,record:Ce,expanded:Me,expandable:Oe}=Ue;const Qe=`${Ve}-row-expand-icon`;return oe.createElement("button",{type:"button",onClick:Je=>{ot(Ce,Je),Je.stopPropagation()},className:Ye()(Qe,{[`${Qe}-spaced`]:!Oe,[`${Qe}-expanded`]:Oe&&Me,[`${Qe}-collapsed`]:Oe&&!Me}),"aria-label":Me?Ae.collapse:Ae.expand,"aria-expanded":Me})}}var Bn=In;function gr(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 Ir(Ae,Te){return Te?`${Te}-${Ae}`:`${Ae}`}function Xr(Ae,Te){return typeof Ae=="function"?Ae(Te):Ae}function Qr(Ae,Te){const Ue=Xr(Ae,Te);return Object.prototype.toString.call(Ue)==="[object Object]"?"":Ue}var ui={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"},li=ui,ji=te(7657),Ei=function(Te,Ue){return oe.createElement(ji.Z,(0,ae.Z)({},Te,{ref:Ue,icon:li}))},lo=oe.forwardRef(Ei),eo=lo,Jr=te(56762);function pr(Ae){const Te=oe.useRef(Ae),Ue=(0,Jr.Z)();return[()=>Te.current,Ve=>{Te.current=Ve,Ue()}]}var Li=te(3113),Ui=te(24905),Or=te(38854),si=te(64165),to=te(20834),qi=te(40875),vo=te(5112),So=te(17574),Ni=te(47472),co=te(92832);function Ro(Ae){let{value:Te,onChange:Ue,filterSearch:Ve,tablePrefixCls:ot,locale:Ce}=Ae;return Ve?oe.createElement("div",{className:`${ot}-filter-dropdown-search`},oe.createElement(co.default,{prefix:oe.createElement(Ni.Z,null),placeholder:Ce.filterSearchPlaceholder,onChange:Ue,value:Te,htmlSize:1,className:`${ot}-filter-dropdown-search-input`})):null}var To=Ro,ta=te(10228);const wa=Ae=>{const{keyCode:Te}=Ae;Te===ta.Z.ENTER&&Ae.stopPropagation()};var La=oe.forwardRef((Ae,Te)=>oe.createElement("div",{className:Ae.className,onClick:Ue=>Ue.stopPropagation(),onKeyDown:wa,ref:Te},Ae.children));function Co(Ae){let Te=[];return(Ae||[]).forEach(Ue=>{let{value:Ve,children:ot}=Ue;Te.push(Ve),ot&&(Te=[].concat((0,sn.Z)(Te),(0,sn.Z)(Co(ot))))}),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:Ve,filterMultiple:ot,searchValue:Ce,filterSearch:Me}=Ae;return Te.map((Oe,Qe)=>{const Je=String(Oe.value);if(Oe.children)return{key:Je||Qe,label:Oe.text,popupClassName:`${Ue}-dropdown-submenu`,children:Da({filters:Oe.children,prefixCls:Ue,filteredKeys:Ve,filterMultiple:ot,searchValue:Ce,filterSearch:Me})};const nt=ot?Ui.default:vo.ZP,qe={key:Oe.value!==void 0?Je:Qe,label:oe.createElement(oe.Fragment,null,oe.createElement(nt,{checked:Ve.includes(Je)}),oe.createElement("span",null,Oe.text))};return Ce.trim()?typeof Me=="function"?Me(Ce,Oe)?qe:null:ra(Ce,Oe.text)?qe:null:qe})}function Ma(Ae){var Te,Ue;const{tablePrefixCls:Ve,prefixCls:ot,column:Ce,dropdownPrefixCls:Me,columnKey:Oe,filterMultiple:Qe,filterMode:Je="menu",filterSearch:nt=!1,filterState:qe,triggerFilter:ct,locale:ut,children:St,getPopupContainer:Vt}=Ae,{filterDropdownOpen:Nt,onFilterDropdownOpenChange:Yt,filterResetToDefaultFilteredValue:Ot,defaultFilteredValue:Qt,filterDropdownVisible:Jt,onFilterDropdownVisibleChange:Pn}=Ce,[rn,_n]=oe.useState(!1),On=!!(qe&&(!((Te=qe.filteredKeys)===null||Te===void 0)&&Te.length||qe.forceFiltered)),qt=Rn=>{_n(Rn),Yt==null||Yt(Rn),Pn==null||Pn(Rn)},hn=(Ue=Nt!=null?Nt:Jt)!==null&&Ue!==void 0?Ue:rn,Rt=qe==null?void 0:qe.filteredKeys,[nn,ln]=pr(Rt||[]),Ln=Rn=>{let{selectedKeys:Gn}=Rn;ln(Gn)},Jn=(Rn,Gn)=>{let{node:hr,checked:_r}=Gn;Ln(Qe?{selectedKeys:Rn}:{selectedKeys:_r&&hr.key?[hr.key]:[]})};oe.useEffect(()=>{rn&&Ln({selectedKeys:Rt||[]})},[Rt]);const[en,bn]=oe.useState([]),Dn=Rn=>{bn(Rn)},[gn,Tn]=oe.useState(""),jn=Rn=>{const{value:Gn}=Rn.target;Tn(Gn)};oe.useEffect(()=>{rn||Tn("")},[rn]);const Xn=Rn=>{const Gn=Rn&&Rn.length?Rn:null;if(Gn===null&&(!qe||!qe.filteredKeys)||(0,fe.Z)(Gn,qe==null?void 0:qe.filteredKeys,!0))return null;ct({column:Ce,key:Oe,filteredKeys:Gn})},Hr=()=>{qt(!1),Xn(nn())},er=function(){let{confirm:Rn,closeDropdown:Gn}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};Rn&&Xn([]),Gn&&qt(!1),Tn(""),ln(Ot?(Qt||[]).map(hr=>String(hr)):[])},Wr=function(){let{closeDropdown:Rn}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};Rn&&qt(!1),Xn(nn())},Sr=Rn=>{Rn&&Rt!==void 0&&ln(Rt||[]),qt(Rn),!Rn&&!Ce.filterDropdown&&Hr()},Lr=Ye()({[`${Me}-menu-without-submenu`]:!na(Ce.filters||[])}),Nr=Rn=>{if(Rn.target.checked){const Gn=Co(Ce==null?void 0:Ce.filters).map(hr=>String(hr));ln(Gn)}else ln([])},Hn=Rn=>{let{filters:Gn}=Rn;return(Gn||[]).map((hr,_r)=>{const Di=String(hr.value),_i={title:hr.text,key:hr.value!==void 0?Di:_r};return hr.children&&(_i.children=Hn({filters:hr.children})),_i})},Cn=Rn=>{var Gn;return Object.assign(Object.assign({},Rn),{text:Rn.title,value:Rn.key,children:((Gn=Rn.children)===null||Gn===void 0?void 0:Gn.map(hr=>Cn(hr)))||[]})};let kn;if(typeof Ce.filterDropdown=="function")kn=Ce.filterDropdown({prefixCls:`${Me}-custom`,setSelectedKeys:Rn=>Ln({selectedKeys:Rn}),selectedKeys:nn(),confirm:Wr,clearFilters:er,filters:Ce.filters,visible:hn,close:()=>{qt(!1)}});else if(Ce.filterDropdown)kn=Ce.filterDropdown;else{const Rn=nn()||[],Gn=()=>(Ce.filters||[]).length===0?oe.createElement(si.Z,{image:si.Z.PRESENTED_IMAGE_SIMPLE,description:ut.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):Je==="tree"?oe.createElement(oe.Fragment,null,oe.createElement(To,{filterSearch:nt,value:gn,onChange:jn,tablePrefixCls:Ve,locale:ut}),oe.createElement("div",{className:`${Ve}-filter-dropdown-tree`},Qe?oe.createElement(Ui.default,{checked:Rn.length===Co(Ce.filters).length,indeterminate:Rn.length>0&&Rn.lengthtypeof nt=="function"?nt(gn,Cn(_r)):ra(gn,_r.title):void 0}))):oe.createElement(oe.Fragment,null,oe.createElement(To,{filterSearch:nt,value:gn,onChange:jn,tablePrefixCls:Ve,locale:ut}),oe.createElement(to.default,{selectable:!0,multiple:Qe,prefixCls:`${Me}-menu`,className:Lr,onSelect:Ln,onDeselect:Ln,selectedKeys:Rn,getPopupContainer:Vt,openKeys:en,onOpenChange:Dn,items:Da({filters:Ce.filters||[],filterSearch:nt,prefixCls:ot,filteredKeys:nn(),filterMultiple:Qe,searchValue:gn})})),hr=()=>Ot?(0,fe.Z)((Qt||[]).map(_r=>String(_r)),Rn,!0):Rn.length===0;kn=oe.createElement(oe.Fragment,null,Gn(),oe.createElement("div",{className:`${ot}-dropdown-btns`},oe.createElement(Li.ZP,{type:"link",size:"small",disabled:hr(),onClick:()=>er()},ut.filterReset),oe.createElement(Li.ZP,{type:"primary",size:"small",onClick:Hr},ut.filterConfirm)))}Ce.filterDropdown&&(kn=oe.createElement(qi.J,{selectable:void 0},kn));const Un=()=>oe.createElement(La,{className:`${ot}-dropdown`},kn);let Mn;typeof Ce.filterIcon=="function"?Mn=Ce.filterIcon(On):Ce.filterIcon?Mn=Ce.filterIcon:Mn=oe.createElement(eo,null);const{direction:yr}=oe.useContext(hi.E_);return oe.createElement("div",{className:`${ot}-column`},oe.createElement("span",{className:`${Ve}-column-title`},St),oe.createElement(Or.Z,{dropdownRender:Un,trigger:["click"],open:hn,onOpenChange:Sr,getPopupContainer:Vt,placement:yr==="rtl"?"bottomLeft":"bottomRight"},oe.createElement("span",{role:"button",tabIndex:-1,className:Ye()(`${ot}-trigger`,{active:On}),onClick:Rn=>{Rn.stopPropagation()}},Mn)))}var Aa=Ma;function No(Ae,Te,Ue){let Ve=[];return(Ae||[]).forEach((ot,Ce)=>{var Me;const Oe=Ir(Ce,Ue);if(ot.filters||"filterDropdown"in ot||"onFilter"in ot)if("filteredValue"in ot){let Qe=ot.filteredValue;"filterDropdown"in ot||(Qe=(Me=Qe==null?void 0:Qe.map(String))!==null&&Me!==void 0?Me:Qe),Ve.push({column:ot,key:gr(ot,Oe),filteredKeys:Qe,forceFiltered:ot.filtered})}else Ve.push({column:ot,key:gr(ot,Oe),filteredKeys:Te&&ot.defaultFilteredValue?ot.defaultFilteredValue:void 0,forceFiltered:ot.filtered});"children"in ot&&(Ve=[].concat((0,sn.Z)(Ve),(0,sn.Z)(No(ot.children,Te,Oe))))}),Ve}function ia(Ae,Te,Ue,Ve,ot,Ce,Me,Oe){return Ue.map((Qe,Je)=>{const nt=Ir(Je,Oe),{filterMultiple:qe=!0,filterMode:ct,filterSearch:ut}=Qe;let St=Qe;if(St.filters||St.filterDropdown){const Vt=gr(St,nt),Nt=Ve.find(Yt=>{let{key:Ot}=Yt;return Vt===Ot});St=Object.assign(Object.assign({},St),{title:Yt=>oe.createElement(Aa,{tablePrefixCls:Ae,prefixCls:`${Ae}-filter`,dropdownPrefixCls:Te,column:St,columnKey:Vt,filterState:Nt,filterMultiple:qe,filterMode:ct,filterSearch:ut,triggerFilter:Ce,locale:ot,getPopupContainer:Me},Xr(Qe.title,Yt))})}return"children"in St&&(St=Object.assign(Object.assign({},St),{children:ia(Ae,Te,St.children,Ve,ot,Ce,Me,nt)})),St})}function oa(Ae){const Te={};return Ae.forEach(Ue=>{let{key:Ve,filteredKeys:ot,column:Ce}=Ue;const{filters:Me,filterDropdown:Oe}=Ce;if(Oe)Te[Ve]=ot||null;else if(Array.isArray(ot)){const Qe=Co(Me);Te[Ve]=Qe.filter(Je=>ot.includes(String(Je)))}else Te[Ve]=null}),Te}function Zo(Ae,Te){return Te.reduce((Ue,Ve)=>{const{column:{onFilter:ot,filters:Ce},filteredKeys:Me}=Ve;return ot&&Me&&Me.length?Ue.filter(Oe=>Me.some(Qe=>{const Je=Co(Ce),nt=Je.findIndex(ct=>String(ct)===String(Qe)),qe=nt!==-1?Je[nt]:Qe;return ot(qe,Oe)})):Ue},Ae)}const aa=Ae=>Ae.flatMap(Te=>"children"in Te?[Te].concat((0,sn.Z)(aa(Te.children||[]))):[Te]);function ds(Ae){let{prefixCls:Te,dropdownPrefixCls:Ue,mergedColumns:Ve,onFilterChange:ot,getPopupContainer:Ce,locale:Me}=Ae;const Oe=oe.useMemo(()=>aa(Ve||[]),[Ve]),[Qe,Je]=oe.useState(()=>No(Oe,!0)),nt=oe.useMemo(()=>{const St=No(Oe,!1);if(St.length===0)return St;let Vt=!0,Nt=!0;if(St.forEach(Yt=>{let{filteredKeys:Ot}=Yt;Ot!==void 0?Vt=!1:Nt=!1}),Vt){const Yt=(Oe||[]).map((Ot,Qt)=>gr(Ot,Ir(Qt)));return Qe.filter(Ot=>{let{key:Qt}=Ot;return Yt.includes(Qt)}).map(Ot=>{const Qt=Oe[Yt.findIndex(Jt=>Jt===Ot.key)];return Object.assign(Object.assign({},Ot),{column:Object.assign(Object.assign({},Ot.column),Qt),forceFiltered:Qt.filtered})})}return St},[Oe,Qe]),qe=oe.useMemo(()=>oa(nt),[nt]),ct=St=>{const Vt=nt.filter(Nt=>{let{key:Yt}=Nt;return Yt!==St.key});Vt.push(St),Je(Vt),ot(oa(Vt),Vt)};return[St=>ia(Te,Ue,St,nt,Me,ct,Ce),nt,qe]}var sa=ds;function Wo(Ae,Te,Ue){const Ve=oe.useRef({});function ot(Ce){if(!Ve.current||Ve.current.data!==Ae||Ve.current.childrenColumnName!==Te||Ve.current.getRowKey!==Ue){let Oe=function(Qe){Qe.forEach((Je,nt)=>{const qe=Ue(Je,nt);Me.set(qe,Je),Je&&typeof Je=="object"&&Te in Je&&Oe(Je[Te]||[])})};const Me=new Map;Oe(Ae),Ve.current={data:Ae,childrenColumnName:Te,kvMap:Me,getRowKey:Ue}}return Ve.current.kvMap.get(Ce)}return[ot]}var la=te(50371),Bo=function(Ae,Te){var Ue={};for(var Ve in Ae)Object.prototype.hasOwnProperty.call(Ae,Ve)&&Te.indexOf(Ve)<0&&(Ue[Ve]=Ae[Ve]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ot=0,Ve=Object.getOwnPropertySymbols(Ae);ot{const Ce=Ae[ot];typeof Ce!="function"&&(Ue[ot]=Ce)}),Ue}function ca(Ae,Te,Ue){const Ve=Ue&&typeof Ue=="object"?Ue:{},{total:ot=0}=Ve,Ce=Bo(Ve,["total"]),[Me,Oe]=(0,oe.useState)(()=>({current:"defaultCurrent"in Ce?Ce.defaultCurrent:1,pageSize:"defaultPageSize"in Ce?Ce.defaultPageSize:no})),Qe=(0,la.Z)(Me,Ce,{total:ot>0?ot:Ae}),Je=Math.ceil((ot||Ae)/Qe.pageSize);Qe.current>Je&&(Qe.current=Je||1);const nt=(ct,ut)=>{Oe({current:ct!=null?ct:1,pageSize:ut||Qe.pageSize})},qe=(ct,ut)=>{var St;Ue&&((St=Ue.onChange)===null||St===void 0||St.call(Ue,ct,ut)),nt(ct,ut),Te(ct,ut||(Qe==null?void 0:Qe.pageSize))};return Ue===!1?[{},()=>{}]:[Object.assign(Object.assign({},Qe),{onChange:qe}),nt]}var Oa=ca,Ra=te(84105),Ta=te(35654),Ko=te(90782),ko=te(71430),us=te(18929);const uo={},Vo="SELECT_ALL",Yo="SELECT_INVERT",Fo="SELECT_NONE",da=[],ua=(Ae,Te)=>{let Ue=[];return(Te||[]).forEach(Ve=>{Ue.push(Ve),Ve&&typeof Ve=="object"&&Ae in Ve&&(Ue=[].concat((0,sn.Z)(Ue),(0,sn.Z)(ua(Ae,Ve[Ae]))))}),Ue};var Ba=(Ae,Te)=>{const{preserveSelectedRowKeys:Ue,selectedRowKeys:Ve,defaultSelectedRowKeys:ot,getCheckboxProps:Ce,onChange:Me,onSelect:Oe,onSelectAll:Qe,onSelectInvert:Je,onSelectNone:nt,onSelectMultiple:qe,columnWidth:ct,type:ut,selections:St,fixed:Vt,renderCell:Nt,hideSelectAll:Yt,checkStrictly:Ot=!0}=Te||{},{prefixCls:Qt,data:Jt,pageData:Pn,getRecordByKey:rn,getRowKey:_n,expandType:On,childrenColumnName:qt,locale:hn,getPopupContainer:Rt}=Ae,[nn,ln]=(0,us.Z)(Ve||ot||da,{value:Ve}),Ln=oe.useRef(new Map),Jn=(0,oe.useCallback)(Cn=>{if(Ue){const kn=new Map;Cn.forEach(Un=>{let Mn=rn(Un);!Mn&&Ln.current.has(Un)&&(Mn=Ln.current.get(Un)),kn.set(Un,Mn)}),Ln.current=kn}},[rn,Ue]);oe.useEffect(()=>{Jn(nn)},[nn]);const{keyEntities:en}=(0,oe.useMemo)(()=>{if(Ot)return{keyEntities:null};let Cn=Jt;if(Ue){const kn=new Set(Jt.map((Mn,yr)=>_n(Mn,yr))),Un=Array.from(Ln.current).reduce((Mn,yr)=>{let[Rn,Gn]=yr;return kn.has(Rn)?Mn:Mn.concat(Gn)},[]);Cn=[].concat((0,sn.Z)(Cn),(0,sn.Z)(Un))}return(0,ko.I8)(Cn,{externalGetKey:_n,childrenPropName:qt})},[Jt,_n,Ot,qt,Ue]),bn=(0,oe.useMemo)(()=>ua(qt,Pn),[qt,Pn]),Dn=(0,oe.useMemo)(()=>{const Cn=new Map;return bn.forEach((kn,Un)=>{const Mn=_n(kn,Un),yr=(Ce?Ce(kn):null)||{};Cn.set(Mn,yr)}),Cn},[bn,_n,Ce]),gn=(0,oe.useCallback)(Cn=>{var kn;return!!(!((kn=Dn.get(_n(Cn)))===null||kn===void 0)&&kn.disabled)},[Dn,_n]),[Tn,jn]=(0,oe.useMemo)(()=>{if(Ot)return[nn||[],[]];const{checkedKeys:Cn,halfCheckedKeys:kn}=(0,Ko.S)(nn,!0,en,gn);return[Cn||[],kn]},[nn,Ot,en,gn]),Xn=(0,oe.useMemo)(()=>{const Cn=ut==="radio"?Tn.slice(0,1):Tn;return new Set(Cn)},[Tn,ut]),Hr=(0,oe.useMemo)(()=>ut==="radio"?new Set:new Set(jn),[jn,ut]),[er,Wr]=(0,oe.useState)(null);oe.useEffect(()=>{Te||ln(da)},[!!Te]);const Sr=(0,oe.useCallback)((Cn,kn)=>{let Un,Mn;Jn(Cn),Ue?(Un=Cn,Mn=Cn.map(yr=>Ln.current.get(yr))):(Un=[],Mn=[],Cn.forEach(yr=>{const Rn=rn(yr);Rn!==void 0&&(Un.push(yr),Mn.push(Rn))})),ln(Un),Me==null||Me(Un,Mn,{type:kn})},[ln,rn,Me,Ue]),Lr=(0,oe.useCallback)((Cn,kn,Un,Mn)=>{if(Oe){const yr=Un.map(Rn=>rn(Rn));Oe(rn(Cn),kn,yr,Mn)}Sr(Un,"single")},[Oe,rn,Sr]),Nr=(0,oe.useMemo)(()=>!St||Yt?null:(St===!0?[Vo,Yo,Fo]:St).map(kn=>kn===Vo?{key:"all",text:hn.selectionAll,onSelect(){Sr(Jt.map((Un,Mn)=>_n(Un,Mn)).filter(Un=>{const Mn=Dn.get(Un);return!(Mn!=null&&Mn.disabled)||Xn.has(Un)}),"all")}}:kn===Yo?{key:"invert",text:hn.selectInvert,onSelect(){const Un=new Set(Xn);Pn.forEach((yr,Rn)=>{const Gn=_n(yr,Rn),hr=Dn.get(Gn);hr!=null&&hr.disabled||(Un.has(Gn)?Un.delete(Gn):Un.add(Gn))});const Mn=Array.from(Un);Je&&Je(Mn),Sr(Mn,"invert")}}:kn===Fo?{key:"none",text:hn.selectNone,onSelect(){nt==null||nt(),Sr(Array.from(Xn).filter(Un=>{const Mn=Dn.get(Un);return Mn==null?void 0:Mn.disabled}),"none")}}:kn).map(kn=>Object.assign(Object.assign({},kn),{onSelect:function(){for(var Un,Mn,yr=arguments.length,Rn=new Array(yr),Gn=0;Gn{var kn;if(!Te)return Cn.filter(Pr=>Pr!==uo);let Un=(0,sn.Z)(Cn);const Mn=new Set(Xn),yr=bn.map(_n).filter(Pr=>!Dn.get(Pr).disabled),Rn=yr.every(Pr=>Mn.has(Pr)),Gn=yr.some(Pr=>Mn.has(Pr)),hr=()=>{const Pr=[];Rn?yr.forEach(Gr=>{Mn.delete(Gr),Pr.push(Gr)}):yr.forEach(Gr=>{Mn.has(Gr)||(Mn.add(Gr),Pr.push(Gr))});const Cr=Array.from(Mn);Qe==null||Qe(!Rn,Cr.map(Gr=>rn(Gr)),Pr.map(Gr=>rn(Gr))),Sr(Cr,"all"),Wr(null)};let _r;if(ut!=="radio"){let Pr;if(Nr){const dr={getPopupContainer:Rt,items:Nr.map((Ai,ki)=>{const{key:Xi,text:fo,onSelect:so}=Ai;return{key:Xi!=null?Xi:ki,onClick:()=>{so==null||so(yr)},label:fo}})};Pr=oe.createElement("div",{className:`${Qt}-selection-extra`},oe.createElement(Or.Z,{menu:dr,getPopupContainer:Rt},oe.createElement("span",null,oe.createElement(Ra.Z,null))))}const Cr=bn.map((dr,Ai)=>{const ki=_n(dr,Ai),Xi=Dn.get(ki)||{};return Object.assign({checked:Mn.has(ki)},Xi)}).filter(dr=>{let{disabled:Ai}=dr;return Ai}),Gr=!!Cr.length&&Cr.length===bn.length,Vr=Gr&&Cr.every(dr=>{let{checked:Ai}=dr;return Ai}),ci=Gr&&Cr.some(dr=>{let{checked:Ai}=dr;return Ai});_r=!Yt&&oe.createElement("div",{className:`${Qt}-selection`},oe.createElement(Ui.default,{checked:Gr?Vr:!!bn.length&&Rn,indeterminate:Gr?!Vr&&ci:!Rn&&Gn,onChange:hr,disabled:bn.length===0||Gr,"aria-label":Pr?"Custom selection":"Select all",skipGroup:!0}),Pr)}let Di;ut==="radio"?Di=(Pr,Cr,Gr)=>{const Vr=_n(Cr,Gr),ci=Mn.has(Vr);return{node:oe.createElement(vo.ZP,Object.assign({},Dn.get(Vr),{checked:ci,onClick:dr=>dr.stopPropagation(),onChange:dr=>{Mn.has(Vr)||Lr(Vr,!0,[Vr],dr.nativeEvent)}})),checked:ci}}:Di=(Pr,Cr,Gr)=>{var Vr;const ci=_n(Cr,Gr),dr=Mn.has(ci),Ai=Hr.has(ci),ki=Dn.get(ci);let Xi;return On==="nest"?Xi=Ai:Xi=(Vr=ki==null?void 0:ki.indeterminate)!==null&&Vr!==void 0?Vr:Ai,{node:oe.createElement(Ui.default,Object.assign({},ki,{indeterminate:Xi,checked:dr,skipGroup:!0,onClick:fo=>fo.stopPropagation(),onChange:fo=>{let{nativeEvent:so}=fo;const{shiftKey:ea}=so;let yo=-1,ro=-1;if(ea&&Ot){const Zi=new Set([er,ci]);yr.some((zi,pi)=>{if(Zi.has(zi))if(yo===-1)yo=pi;else return ro=pi,!0;return!1})}if(ro!==-1&&yo!==ro&&Ot){const Zi=yr.slice(yo,ro+1),zi=[];dr?Zi.forEach(ri=>{Mn.has(ri)&&(zi.push(ri),Mn.delete(ri))}):Zi.forEach(ri=>{Mn.has(ri)||(zi.push(ri),Mn.add(ri))});const pi=Array.from(Mn);qe==null||qe(!dr,pi.map(ri=>rn(ri)),zi.map(ri=>rn(ri))),Sr(pi,"multiple")}else{const Zi=Tn;if(Ot){const zi=dr?(0,Ta._5)(Zi,ci):(0,Ta.L0)(Zi,ci);Lr(ci,!dr,zi,so)}else{const zi=(0,Ko.S)([].concat((0,sn.Z)(Zi),[ci]),!0,en,gn),{checkedKeys:pi,halfCheckedKeys:ri}=zi;let ho=pi;if(dr){const Oo=new Set(pi);Oo.delete(ci),ho=(0,Ko.S)(Array.from(Oo),{checked:!1,halfCheckedKeys:ri},en,gn).checkedKeys}Lr(ci,!dr,ho,so)}}Wr(dr?null:ci)}})),checked:dr}};const _i=(Pr,Cr,Gr)=>{const{node:Vr,checked:ci}=Di(Pr,Cr,Gr);return Nt?Nt(ci,Cr,Gr,Vr):Vr};if(!Un.includes(uo))if(Un.findIndex(Pr=>{var Cr;return((Cr=Pr[qn])===null||Cr===void 0?void 0:Cr.columnType)==="EXPAND_COLUMN"})===0){const[Pr,...Cr]=Un;Un=[Pr,uo].concat((0,sn.Z)(Cr))}else Un=[uo].concat((0,sn.Z)(Un));const tr=Un.indexOf(uo);Un=Un.filter((Pr,Cr)=>Pr!==uo||Cr===tr);const mr=Un[tr-1],qr=Un[tr+1];let Rr=Vt;Rr===void 0&&((qr==null?void 0:qr.fixed)!==void 0?Rr=qr.fixed:(mr==null?void 0:mr.fixed)!==void 0&&(Rr=mr.fixed)),Rr&&mr&&((kn=mr[qn])===null||kn===void 0?void 0:kn.columnType)==="EXPAND_COLUMN"&&mr.fixed===void 0&&(mr.fixed=Rr);const br=Ye()(`${Qt}-selection-col`,{[`${Qt}-selection-col-with-dropdown`]:St&&ut==="checkbox"}),Bi={fixed:Rr,width:ct,className:`${Qt}-selection-column`,title:Te.columnTitle||_r,render:_i,onCell:Te.onCell,[qn]:{className:br}};return Un.map(Pr=>Pr===uo?Bi:Pr)},[_n,bn,Te,Tn,Xn,Hr,ct,Nr,On,er,Dn,qe,Lr,gn]),Xn]},Xo=te(89489),gs=te(59477),ka=te(6848);const jo="ascend",zo="descend";function Ho(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 Qo(Ae,Te,Ue){let Ve=[];function ot(Ce,Me){Ve.push({column:Ce,key:gr(Ce,Me),multiplePriority:Ho(Ce),sortOrder:Ce.sortOrder})}return(Ae||[]).forEach((Ce,Me)=>{const Oe=Ir(Me,Ue);Ce.children?("sortOrder"in Ce&&ot(Ce,Oe),Ve=[].concat((0,sn.Z)(Ve),(0,sn.Z)(Qo(Ce.children,Te,Oe)))):Ce.sorter&&("sortOrder"in Ce?ot(Ce,Oe):Te&&Ce.defaultSortOrder&&Ve.push({column:Ce,key:gr(Ce,Oe),multiplePriority:Ho(Ce),sortOrder:Ce.defaultSortOrder}))}),Ve}function Fa(Ae,Te,Ue,Ve,ot,Ce,Me,Oe){return(Te||[]).map((Qe,Je)=>{const nt=Ir(Je,Oe);let qe=Qe;if(qe.sorter){const ct=qe.sortDirections||ot,ut=qe.showSorterTooltip===void 0?Me:qe.showSorterTooltip,St=gr(qe,nt),Vt=Ue.find(On=>{let{key:qt}=On;return qt===St}),Nt=Vt?Vt.sortOrder:null,Yt=fa(ct,Nt);let Ot;if(Qe.sortIcon)Ot=Qe.sortIcon({sortOrder:Nt});else{const On=ct.includes(jo)&&oe.createElement(gs.Z,{className:Ye()(`${Ae}-column-sorter-up`,{active:Nt===jo})}),qt=ct.includes(zo)&&oe.createElement(Xo.Z,{className:Ye()(`${Ae}-column-sorter-down`,{active:Nt===zo})});Ot=oe.createElement("span",{className:Ye()(`${Ae}-column-sorter`,{[`${Ae}-column-sorter-full`]:!!(On&&qt)})},oe.createElement("span",{className:`${Ae}-column-sorter-inner`,"aria-hidden":"true"},On,qt))}const{cancelSort:Qt,triggerAsc:Jt,triggerDesc:Pn}=Ce||{};let rn=Qt;Yt===zo?rn=Pn:Yt===jo&&(rn=Jt);const _n=typeof ut=="object"?ut:{title:rn};qe=Object.assign(Object.assign({},qe),{className:Ye()(qe.className,{[`${Ae}-column-sort`]:Nt}),title:On=>{const qt=oe.createElement("div",{className:`${Ae}-column-sorters`},oe.createElement("span",{className:`${Ae}-column-title`},Xr(Qe.title,On)),Ot);return ut?oe.createElement(ka.Z,Object.assign({},_n),qt):qt},onHeaderCell:On=>{const qt=Qe.onHeaderCell&&Qe.onHeaderCell(On)||{},hn=qt.onClick,Rt=qt.onKeyDown;qt.onClick=Ln=>{Ve({column:Qe,key:St,sortOrder:Yt,multiplePriority:Ho(Qe)}),hn==null||hn(Ln)},qt.onKeyDown=Ln=>{Ln.keyCode===ta.Z.ENTER&&(Ve({column:Qe,key:St,sortOrder:Yt,multiplePriority:Ho(Qe)}),Rt==null||Rt(Ln))};const nn=Qr(Qe.title,{}),ln=nn==null?void 0:nn.toString();return Nt?qt["aria-sort"]=Nt==="ascend"?"ascending":"descending":qt["aria-label"]=ln||"",qt.className=Ye()(qt.className,`${Ae}-column-has-sorters`),qt.tabIndex=0,Qe.ellipsis&&(qt.title=(nn!=null?nn:"").toString()),qt}})}return"children"in qe&&(qe=Object.assign(Object.assign({},qe),{children:Fa(Ae,qe.children,Ue,Ve,ot,Ce,Me,nt)})),qe})}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:Ve}=Ue;return Ve}).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 Jo(Ae,Te,Ue){const Ve=Te.slice().sort((Me,Oe)=>Oe.multiplePriority-Me.multiplePriority),ot=Ae.slice(),Ce=Ve.filter(Me=>{let{column:{sorter:Oe},sortOrder:Qe}=Me;return ga(Oe)&&Qe});return Ce.length?ot.sort((Me,Oe)=>{for(let Qe=0;Qe{const Oe=Me[Ue];return Oe?Object.assign(Object.assign({},Me),{[Ue]:Jo(Oe,Te,Ue)}):Me}):ot}function ja(Ae){let{prefixCls:Te,mergedColumns:Ue,onSorterChange:Ve,sortDirections:ot,tableLocale:Ce,showSorterTooltip:Me}=Ae;const[Oe,Qe]=oe.useState(Qo(Ue,!0)),Je=oe.useMemo(()=>{let St=!0;const Vt=Qo(Ue,!1);if(!Vt.length)return Oe;const Nt=[];function Yt(Qt){St?Nt.push(Qt):Nt.push(Object.assign(Object.assign({},Qt),{sortOrder:null}))}let Ot=null;return Vt.forEach(Qt=>{Ot===null?(Yt(Qt),Qt.sortOrder&&(Qt.multiplePriority===!1?St=!1:Ot=!0)):(Ot&&Qt.multiplePriority!==!1||(St=!1),Yt(Qt))}),Nt},[Ue,Oe]),nt=oe.useMemo(()=>{const St=Je.map(Vt=>{let{column:Nt,sortOrder:Yt}=Vt;return{column:Nt,order:Yt}});return{sortColumns:St,sortColumn:St[0]&&St[0].column,sortOrder:St[0]&&St[0].order}},[Je]);function qe(St){let Vt;St.multiplePriority===!1||!Je.length||Je[0].multiplePriority===!1?Vt=[St]:Vt=[].concat((0,sn.Z)(Je.filter(Nt=>{let{key:Yt}=Nt;return Yt!==St.key})),[St]),Qe(Vt),Ve(ma(Vt),Vt)}return[St=>Fa(Te,St,Je,qe,ot,Ce,Me),Je,nt,()=>ma(Je)]}function pa(Ae,Te){return Ae.map(Ue=>{const Ve=Object.assign({},Ue);return Ve.title=Xr(Ue.title,Te),"children"in Ve&&(Ve.children=pa(Ve.children,Te)),Ve})}function za(Ae){return[oe.useCallback(Ue=>pa(Ue,Ae),[Ae])]}var va=cr((Ae,Te)=>{const{_renderTimes:Ue}=Ae,{_renderTimes:Ve}=Te;return Ue!==Ve}),Ha=zr((Ae,Te)=>{const{_renderTimes:Ue}=Ae,{_renderTimes:Ve}=Te;return Ue!==Ve}),Do=te(64993),Mo=te(17313),Yi=te(83116),Ga=te(37613),fs=Ae=>{const{componentCls:Te}=Ae,Ue=`${Ae.lineWidth}px ${Ae.lineType} ${Ae.tableBorderColor}`,Ve=(ot,Ce,Me)=>({[`&${Te}-${ot}`]:{[`> ${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}}}}}},Ve("middle",Ae.tablePaddingVerticalMiddle,Ae.tablePaddingHorizontalMiddle)),Ve("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}}}},Eo=Ae=>{const{componentCls:Te}=Ae;return{[`${Te}-wrapper`]:{[`${Te}-cell-ellipsis`]:Object.assign(Object.assign({},Mo.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:Ve,motionDurationSlow:ot,lineWidth:Ce,paddingXS:Me,lineType:Oe,tableBorderColor:Qe,tableExpandIconBg:Je,tableExpandColumnWidth:nt,borderRadius:qe,fontSize:ct,fontSizeSM:ut,lineHeight:St,tablePaddingVertical:Vt,tablePaddingHorizontal:Nt,tableExpandedRowBg:Yt,paddingXXS:Ot}=Ae,Qt=Ve/2-Ce,Jt=Qt*2+Ce*3,Pn=`${Ce}px ${Oe} ${Qe}`,rn=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:Jt,height:Jt,padding:0,color:"inherit",lineHeight:`${Jt}px`,background:Je,border:Pn,borderRadius:qe,transform:`scale(${Ve/Jt})`,transition:`all ${ot}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${ot} ease-out`,content:'""'},"&::before":{top:Qt,insetInlineEnd:rn,insetInlineStart:rn,height:Ce},"&::after":{top:rn,bottom:rn,insetInlineStart:Qt,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:(ct*St-Ce*3)/2-Math.ceil((ut*1.4-Ce*3)/2),marginInlineEnd:Me},[`tr${Te}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:Yt}},[`${Ue}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${Te}-expanded-row-fixed`]:{position:"relative",margin:`-${Vt}px -${Nt}px`,padding:`${Vt}px ${Nt}px`}}}},Sa=Ae=>{const{componentCls:Te,antCls:Ue,iconCls:Ve,tableFilterDropdownWidth:ot,tableFilterDropdownSearchWidth:Ce,paddingXXS:Me,paddingXS:Oe,colorText:Qe,lineWidth:Je,lineType:nt,tableBorderColor:qe,tableHeaderIconColor:ct,fontSizeSM:ut,tablePaddingHorizontal:St,borderRadius:Vt,motionDurationSlow:Nt,colorTextDescription:Yt,colorPrimary:Ot,tableHeaderFilterActiveBg:Qt,colorTextDisabled:Jt,tableFilterDropdownBg:Pn,tableFilterDropdownHeight:rn,controlItemBgHover:_n,controlItemBgActive:On,boxShadowSecondary:qt,filterDropdownMenuBg:hn}=Ae,Rt=`${Ue}-dropdown`,nn=`${Te}-filter-dropdown`,ln=`${Ue}-tree`,Ln=`${Je}px ${nt} ${qe}`;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 ${-St/2}px`,padding:`0 ${Me}px`,color:ct,fontSize:ut,borderRadius:Vt,cursor:"pointer",transition:`all ${Nt}`,"&:hover":{color:Yt,background:Qt},"&.active":{color:Ot}}}},{[`${Ue}-dropdown`]:{[nn]:Object.assign(Object.assign({},(0,Mo.Wf)(Ae)),{minWidth:ot,backgroundColor:Pn,borderRadius:Vt,boxShadow:qt,overflow:"hidden",[`${Rt}-menu`]:{maxHeight:rn,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:hn,"&:empty::after":{display:"block",padding:`${Oe}px 0`,color:Jt,fontSize:ut,textAlign:"center",content:'"Not Found"'}},[`${nn}-tree`]:{paddingBlock:`${Oe}px 0`,paddingInline:Oe,[ln]:{padding:0},[`${ln}-treenode ${ln}-node-content-wrapper:hover`]:{backgroundColor:_n},[`${ln}-treenode-checkbox-checked ${ln}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:On}}},[`${nn}-search`]:{padding:Oe,borderBottom:Ln,"&-input":{input:{minWidth:Ce},[Ve]:{color:Jt}}},[`${nn}-checkall`]:{width:"100%",marginBottom:Me,marginInlineStart:Me},[`${nn}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${Oe-Je}px ${Oe}px`,overflow:"hidden",borderTop:Ln}})}},{[`${Ue}-dropdown ${nn}, ${nn}-submenu`]:{[`${Ue}-checkbox-wrapper + span`]:{paddingInlineStart:Oe,color:Qe},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},qo=Ae=>{const{componentCls:Te,lineWidth:Ue,colorSplit:Ve,motionDurationSlow:ot,zIndexTableFixed:Ce,tableBg:Me,zIndexTableSticky:Oe}=Ae,Qe=Ve;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 ${ot}`,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 ${ot}`,content:'""',pointerEvents:"none"},[`${Te}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:Oe+1,width:30,transition:`box-shadow ${ot}`,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 ${Qe}`}},[` ${Te}-cell-fix-left-first::after, ${Te}-cell-fix-left-last::after `]:{boxShadow:`inset 10px 0 8px -8px ${Qe}`},[`${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 ${Qe}`}},[` ${Te}-cell-fix-right-first::after, ${Te}-cell-fix-right-last::after `]:{boxShadow:`inset -10px 0 8px -8px ${Qe}`}}}}},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:Ve,fontSizeIcon:ot,padding:Ce,paddingXS:Me,tableHeaderIconColor:Oe,tableHeaderIconColorHover:Qe,tableSelectionColumnWidth:Je}=Ae;return{[`${Te}-wrapper`]:{[`${Te}-selection-col`]:{width:Je,[`&${Te}-selection-col-with-dropdown`]:{width:Je+ot+Ce/4}},[`${Te}-bordered ${Te}-selection-col`]:{width:Je+Me*2,[`&${Te}-selection-col-with-dropdown`]:{width:Je+ot+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`,[Ve]:{color:Oe,fontSize:ot,verticalAlign:"baseline","&:hover":{color:Qe}}}}}},Xa=Ae=>{const{componentCls:Te}=Ae,Ue=(Ve,ot,Ce,Me)=>({[`${Te}${Te}-${Ve}`]:{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:`${ot}px ${Ce}px`},[`${Te}-filter-trigger`]:{marginInlineEnd:`-${Ce/2}px`},[`${Te}-expanded-row-fixed`]:{margin:`-${ot}px -${Ce}px`},[`${Te}-tbody`]:{[`${Te}-wrapper:only-child ${Te}`]:{marginBlock:`-${ot}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))}},nr=Ae=>{const{componentCls:Te,marginXXS:Ue,fontSizeIcon:Ve,tableHeaderIconColor:ot,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:ot,fontSize:0,transition:`color ${Ae.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:Ve,"&.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:Ve,tableScrollThumbBgHover:ot,tableScrollThumbSize:Ce,tableScrollBg:Me,zIndexTableSticky:Oe,stickyScrollBarBorderRadius:Qe}=Ae,Je=`${Ae.lineWidth}px ${Ae.lineType} ${Ae.tableBorderColor}`;return{[`${Te}-wrapper`]:{[`${Te}-sticky`]:{"&-holder":{position:"sticky",zIndex:Oe,background:Ae.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${Ce}px !important`,zIndex:Oe,display:"flex",alignItems:"center",background:Me,borderTop:Je,opacity:Ue,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:Ce,backgroundColor:Ve,borderRadius:Qe,transition:`all ${Ae.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:ot}}}}}}},Io=Ae=>{const{componentCls:Te,lineWidth:Ue,tableBorderColor:Ve}=Ae,ot=`${Ue}px ${Ae.lineType} ${Ve}`;return{[`${Te}-wrapper`]:{[`${Te}-summary`]:{position:"relative",zIndex:Ae.zIndexTableFixed,background:Ae.tableBg,"> tr":{"> th, > td":{borderBottom:ot}}},[`div${Te}-summary`]:{boxShadow:`0 -${Ue}px 0 ${Ve}`}}}},_a=Ae=>{const{componentCls:Te}=Ae,Ue=`${Ae.lineWidth}px ${Ae.lineType} ${Ae.tableBorderColor}`,Ve=`${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`]:{[`${Ve}${Ve}-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:Ve,tablePaddingHorizontal:ot,lineWidth:Ce,lineType:Me,tableBorderColor:Oe,tableFontSize:Qe,tableBg:Je,tableRadius:nt,tableHeaderTextColor:qe,motionDurationMid:ct,tableHeaderBg:ut,tableHeaderCellSplitColor:St,tableRowHoverBg:Vt,tableSelectedRowBg:Nt,tableSelectedRowHoverBg:Yt,tableFooterTextColor:Ot,tableFooterBg:Qt,paddingContentVerticalLG:Jt}=Ae,Pn=`${Ce}px ${Me} ${Oe}`;return{[`${Te}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,Mo.dF)()),{[Te]:Object.assign(Object.assign({},(0,Mo.Wf)(Ae)),{fontSize:Qe,background:Je,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:`${Jt}px ${ot}px`,overflowWrap:"break-word"},[`${Te}-title`]:{padding:`${Ve}px ${ot}px`},[`${Te}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:qe,fontWeight:Ue,textAlign:"start",background:ut,borderBottom:Pn,transition:`background ${ct} 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:St,transform:"translateY(-50%)",transition:`background-color ${ct}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${Te}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${ct}, border-color ${ct}`,borderBottom:Pn,[` > ${Te}-wrapper:only-child, > ${Te}-expanded-row-fixed > ${Te}-wrapper:only-child `]:{[Te]:{marginBlock:`-${Ve}px`,marginInline:`${Ae.tableExpandColumnWidth-ot}px -${ot}px`,[`${Te}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:qe,fontWeight:Ue,textAlign:"start",background:ut,borderBottom:Pn,transition:`background ${ct} ease`},[` &${Te}-row:hover > th, &${Te}-row:hover > td, > th${Te}-cell-row-hover, > td${Te}-cell-row-hover `]:{background:Vt},[`&${Te}-row-selected`]:{"> th, > td":{background:Nt},"&:hover > th, &:hover > td":{background:Yt}}}},[`${Te}-footer`]:{padding:`${Ve}px ${ot}px`,color:Ot,background:Qt}})}};var Zr=(0,Yi.Z)("Table",Ae=>{const{colorTextHeading:Te,colorSplit:Ue,colorIcon:Ve,colorIconHover:ot,opacityLoading:Ce,colorBgContainer:Me,controlInteractiveSize:Oe,headerBg:Qe,headerColor:Je,headerSortActiveBg:nt,headerSortHoverBg:qe,bodySortBg:ct,rowHoverBg:ut,rowSelectedBg:St,rowSelectedHoverBg:Vt,rowExpandedBg:Nt,cellPaddingBlock:Yt,cellPaddingInline:Ot,cellPaddingBlockMD:Qt,cellPaddingInlineMD:Jt,cellPaddingBlockSM:Pn,cellPaddingInlineSM:rn,borderColor:_n,footerBg:On,footerColor:qt,headerBorderRadius:hn,cellFontSize:Rt,cellFontSizeMD:nn,cellFontSizeSM:ln,headerSplitColor:Ln,fixedHeaderSortActiveBg:Jn,headerFilterHoverBg:en,filterDropdownBg:bn,expandIconBg:Dn,selectionColumnWidth:gn,stickyScrollBarBg:Tn}=Ae,jn=new Do.C(Ve),Xn=new Do.C(ot),Hr=2,er=(0,Ga.TS)(Ae,{tableFontSize:Rt,tableBg:Me,tableRadius:hn,tablePaddingVertical:Yt,tablePaddingHorizontal:Ot,tablePaddingVerticalMiddle:Qt,tablePaddingHorizontalMiddle:Jt,tablePaddingVerticalSmall:Pn,tablePaddingHorizontalSmall:rn,tableBorderColor:_n,tableHeaderTextColor:Je,tableHeaderBg:Qe,tableFooterTextColor:qt,tableFooterBg:On,tableHeaderCellSplitColor:Ln,tableHeaderSortBg:nt,tableHeaderSortHoverBg:qe,tableHeaderIconColor:jn.clone().setAlpha(jn.getAlpha()*Ce).toRgbString(),tableHeaderIconColorHover:Xn.clone().setAlpha(Xn.getAlpha()*Ce).toRgbString(),tableBodySortBg:ct,tableFixedHeaderSortActiveBg:Jn,tableHeaderFilterActiveBg:en,tableFilterDropdownBg:bn,tableRowHoverBg:ut,tableSelectedRowBg:St,tableSelectedRowHoverBg:Vt,zIndexTableFixed:Hr,zIndexTableSticky:Hr+1,tableFontSizeMiddle:nn,tableFontSizeSmall:ln,tableSelectionColumnWidth:gn,tableExpandIconBg:Dn,tableExpandColumnWidth:Oe+2*Ae.padding,tableExpandedRowBg:Nt,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:Tn,tableScrollThumbBgHover:Te,tableScrollBg:Ue});return[ya(er),vs(er),Io(er),nr(er),Sa(er),fs(er),Ka(er),Wa(er),Io(er),Ua(er),Ya(er),qo(er),Qa(er),Eo(er),Xa(er),Va(er),_a(er)]},Ae=>{const{colorFillAlter:Te,colorBgContainer:Ue,colorTextHeading:Ve,colorFillSecondary:ot,colorFillContent:Ce,controlItemBgActive:Me,controlItemBgActiveHover:Oe,padding:Qe,paddingSM:Je,paddingXS:nt,colorBorderSecondary:qe,borderRadiusLG:ct,fontSize:ut,controlHeight:St,colorTextPlaceholder:Vt}=Ae,Nt=new Do.C(ot).onBackground(Ue).toHexShortString(),Yt=new Do.C(Ce).onBackground(Ue).toHexShortString(),Ot=new Do.C(Te).onBackground(Ue).toHexShortString();return{headerBg:Ot,headerColor:Ve,headerSortActiveBg:Nt,headerSortHoverBg:Yt,bodySortBg:Ot,rowHoverBg:Ot,rowSelectedBg:Me,rowSelectedHoverBg:Oe,rowExpandedBg:Te,cellPaddingBlock:Qe,cellPaddingInline:Qe,cellPaddingBlockMD:Je,cellPaddingInlineMD:nt,cellPaddingBlockSM:nt,cellPaddingInlineSM:nt,borderColor:qe,headerBorderRadius:ct,footerBg:Ot,footerColor:Ve,cellFontSize:ut,cellFontSizeMD:ut,cellFontSizeSM:ut,headerSplitColor:qe,fixedHeaderSortActiveBg:Nt,headerFilterHoverBg:Ce,filterDropdownMenuBg:Ue,filterDropdownBg:Ue,expandIconBg:Ue,selectionColumnWidth:St,stickyScrollBarBg:Vt,stickyScrollBarBorderRadius:100}});const mi=[],qa=(Ae,Te)=>{const{prefixCls:Ue,className:Ve,rootClassName:ot,style:Ce,size:Me,bordered:Oe,dropdownPrefixCls:Qe,dataSource:Je,pagination:nt,rowSelection:qe,rowKey:ct="key",rowClassName:ut,columns:St,children:Vt,childrenColumnName:Nt,onChange:Yt,getPopupContainer:Ot,loading:Qt,expandIcon:Jt,expandable:Pn,expandedRowRender:rn,expandIconColumnIndex:_n,indentSize:On,scroll:qt,sortDirections:hn,locale:Rt,showSorterTooltip:nn=!0,virtual:ln}=Ae,Ln=oe.useMemo(()=>St||xe(Vt),[St,Vt]),Jn=oe.useMemo(()=>Ln.some(xr=>xr.responsive),[Ln]),en=(0,bo.Z)(Jn),bn=oe.useMemo(()=>{const xr=new Set(Object.keys(en).filter(Yr=>en[Yr]));return Ln.filter(Yr=>!Yr.responsive||Yr.responsive.some(Ii=>xr.has(Ii)))},[Ln,en]),Dn=(0,Ti.Z)(Ae,["className","style","columns"]),{locale:gn=po.Z,direction:Tn,table:jn,renderEmpty:Xn,getPrefixCls:Hr,getPopupContainer:er}=oe.useContext(hi.E_),Wr=(0,Qi.Z)(Me),Sr=Object.assign(Object.assign({},gn.Table),Rt),Lr=Je||mi,Nr=Hr("table",Ue),Hn=Hr("dropdown",Qe),Cn=Object.assign({childrenColumnName:Nt,expandIconColumnIndex:_n},Pn),{childrenColumnName:kn="children"}=Cn,Un=oe.useMemo(()=>Lr.some(xr=>xr==null?void 0:xr[kn])?"nest":rn||Pn&&Pn.expandedRowRender?"row":null,[Lr]),Mn={body:oe.useRef()},yr=oe.useMemo(()=>typeof ct=="function"?ct:xr=>xr==null?void 0:xr[ct],[ct]),[Rn]=Wo(Lr,kn,yr),Gn={},hr=function(xr,Yr){let Ii=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var ii,Fi,Wi;const Ki=Object.assign(Object.assign({},Gn),xr);Ii&&((ii=Gn.resetPagination)===null||ii===void 0||ii.call(Gn),!((Fi=Ki.pagination)===null||Fi===void 0)&&Fi.current&&(Ki.pagination.current=1),nt&&nt.onChange&&nt.onChange(1,(Wi=Ki.pagination)===null||Wi===void 0?void 0:Wi.pageSize)),qt&&qt.scrollToFirstRowOnChange!==!1&&Mn.body.current&&(0,Ci.Z)(0,{getContainer:()=>Mn.body.current}),Yt==null||Yt(Ki.pagination,Ki.filters,Ki.sorter,{currentDataSource:Zo(Jo(Lr,Ki.sorterStates,kn),Ki.filterStates),action:Yr})},_r=(xr,Yr)=>{hr({sorter:xr,sorterStates:Yr},"sort",!1)},[Di,_i,tr,mr]=ja({prefixCls:Nr,mergedColumns:bn,onSorterChange:_r,sortDirections:hn||["ascend","descend"],tableLocale:Sr,showSorterTooltip:nn}),qr=oe.useMemo(()=>Jo(Lr,_i,kn),[Lr,_i]);Gn.sorter=mr(),Gn.sorterStates=_i;const Rr=(xr,Yr)=>{hr({filters:xr,filterStates:Yr},"filter",!0)},[br,Bi,Pr]=sa({prefixCls:Nr,locale:Sr,dropdownPrefixCls:Hn,mergedColumns:bn,onFilterChange:Rr,getPopupContainer:Ot||er}),Cr=Zo(qr,Bi);Gn.filters=Pr,Gn.filterStates=Bi;const Gr=oe.useMemo(()=>{const xr={};return Object.keys(Pr).forEach(Yr=>{Pr[Yr]!==null&&(xr[Yr]=Pr[Yr])}),Object.assign(Object.assign({},tr),{filters:xr})},[tr,Pr]),[Vr]=za(Gr),ci=(xr,Yr)=>{hr({pagination:Object.assign(Object.assign({},Gn.pagination),{current:xr,pageSize:Yr})},"paginate")},[dr,Ai]=Oa(Cr.length,ci,nt);Gn.pagination=nt===!1?{}:Ia(dr,nt),Gn.resetPagination=Ai;const ki=oe.useMemo(()=>{if(nt===!1||!dr.pageSize)return Cr;const{current:xr=1,total:Yr,pageSize:Ii=no}=dr;return Cr.lengthIi?Cr.slice((xr-1)*Ii,xr*Ii):Cr:Cr.slice((xr-1)*Ii,xr*Ii)},[!!nt,Cr,dr&&dr.current,dr&&dr.pageSize,dr&&dr.total]),[Xi,fo]=Ba({prefixCls:Nr,data:Cr,pageData:ki,getRowKey:yr,getRecordByKey:Rn,expandType:Un,childrenColumnName:kn,locale:Sr,getPopupContainer:Ot||er},qe),so=(xr,Yr,Ii)=>{let ii;return typeof ut=="function"?ii=Ye()(ut(xr,Yr,Ii)):ii=Ye()(ut),Ye()({[`${Nr}-row-selected`]:fo.has(yr(xr,Yr))},ii)};Cn.__PARENT_RENDER_ICON__=Cn.expandIcon,Cn.expandIcon=Cn.expandIcon||Jt||Bn(Sr),Un==="nest"&&Cn.expandIconColumnIndex===void 0?Cn.expandIconColumnIndex=qe?1:0:Cn.expandIconColumnIndex>0&&qe&&(Cn.expandIconColumnIndex-=1),typeof Cn.indentSize!="number"&&(Cn.indentSize=typeof On=="number"?On:15);const ea=oe.useCallback(xr=>Vr(Xi(br(Di(xr)))),[Di,br,Xi]);let yo,ro;if(nt!==!1&&(dr!=null&&dr.total)){let xr;dr.size?xr=dr.size:xr=Wr==="small"||Wr==="middle"?"small":void 0;const Yr=Fi=>oe.createElement(Ji.Z,Object.assign({},dr,{className:Ye()(`${Nr}-pagination ${Nr}-pagination-${Fi}`,dr.className),size:xr})),Ii=Tn==="rtl"?"left":"right",{position:ii}=dr;if(ii!==null&&Array.isArray(ii)){const Fi=ii.find(Po=>Po.includes("top")),Wi=ii.find(Po=>Po.includes("bottom")),Ki=ii.every(Po=>`${Po}`=="none");!Fi&&!Wi&&!Ki&&(ro=Yr(Ii)),Fi&&(yo=Yr(Fi.toLowerCase().replace("top",""))),Wi&&(ro=Yr(Wi.toLowerCase().replace("bottom","")))}else ro=Yr(Ii)}let Zi;typeof Qt=="boolean"?Zi={spinning:Qt}:typeof Qt=="object"&&(Zi=Object.assign({spinning:!0},Qt));const[zi,pi]=Zr(Nr),[,ri]=(0,En.Z)(),ho=Ye()(`${Nr}-wrapper`,jn==null?void 0:jn.className,{[`${Nr}-wrapper-rtl`]:Tn==="rtl"},Ve,ot,pi),Oo=Object.assign(Object.assign({},jn==null?void 0:jn.style),Ce),wo=Rt&&Rt.emptyText||(Xn==null?void 0:Xn("Table"))||oe.createElement(Gi.Z,{componentName:"Table"}),mo=ln?Ha:va,Pa={},ts=oe.useMemo(()=>{const{fontSize:xr,lineHeight:Yr,padding:Ii,paddingXS:ii,paddingSM:Fi}=ri,Wi=Math.floor(xr*Yr);switch(Wr){case"large":return Ii*2+Wi;case"small":return ii*2+Wi;default:return Fi*2+Wi}},[ri,Wr]);return ln&&(Pa.listItemHeight=ts),zi(oe.createElement("div",{ref:Te,className:ho,style:Oo},oe.createElement($n.Z,Object.assign({spinning:!1},Zi),yo,oe.createElement(mo,Object.assign({},Pa,Dn,{columns:bn,direction:Tn,expandable:Cn,prefixCls:Nr,className:Ye()({[`${Nr}-middle`]:Wr==="middle",[`${Nr}-small`]:Wr==="small",[`${Nr}-bordered`]:Oe,[`${Nr}-empty`]:Lr.length===0}),data:ki,rowKey:yr,rowClassName:so,emptyText:wo,internalHooks:ge,internalRefs:Mn,transformColumns:ea})),ro)))};var $i=oe.forwardRef(qa);const ws=(Ae,Te)=>{const Ue=oe.useRef(0);return Ue.current+=1,oe.createElement($i,Object.assign({},Ae,{ref:Te,_renderTimes:Ue.current}))},ao=oe.forwardRef(ws);ao.SELECTION_COLUMN=uo,ao.EXPAND_COLUMN=ee,ao.SELECTION_ALL=Vo,ao.SELECTION_INVERT=Yo,ao.SELECTION_NONE=Fo,ao.Column=oo,ao.ColumnGroup=Vi,ao.Summary=Ie;var es=ao,Uo=es},12563:function(mt,Ke,te){"use strict";te.d(Ke,{default:function(){return je}});var ee=te(59301),ge=te(99267),be=te(92310),pe=te.n(be),Se=te(36785),fe=te(47729),oe=te(14088),de=te(36355),le=te(17313),me=te(37613),ae=te(83116);const he=Le=>{const{paddingXXS:ht,lineWidth:Ye,tagPaddingHorizontal:vt,componentCls:we}=Le,Fe=vt-Ye,He=ht-Ye;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}}},ie=Le=>{const{lineWidth:ht,fontSizeIcon:Ye}=Le,vt=Le.fontSizeSM,we=`${Le.lineHeightSM*vt}px`;return(0,me.TS)(Le,{tagFontSize:vt,tagLineHeight:we,tagIconSize:Ye-2*ht,tagPaddingHorizontal:8,tagBorderlessBg:Le.colorFillTertiary})},ne=Le=>({defaultBg:Le.colorFillQuaternary,defaultColor:Le.colorText});var a=(0,ae.Z)("Tag",Le=>{const ht=ie(Le);return he(ht)},ne),y=function(Le,ht){var Ye={};for(var vt in Le)Object.prototype.hasOwnProperty.call(Le,vt)&&ht.indexOf(vt)<0&&(Ye[vt]=Le[vt]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var we=0,vt=Object.getOwnPropertySymbols(Le);we{const{prefixCls:ht,style:Ye,className:vt,checked:we,onChange:Fe,onClick:He}=Le,at=y(Le,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:We,tag:pt}=ee.useContext(de.E_),Pt=Ct=>{Fe==null||Fe(!we),He==null||He(Ct)},At=We("tag",ht),[Bt,rt]=a(At),Xe=pe()(At,`${At}-checkable`,{[`${At}-checkable-checked`]:we},pt==null?void 0:pt.className,vt,rt);return Bt(ee.createElement("span",Object.assign({},at,{style:Object.assign(Object.assign({},Ye),pt==null?void 0:pt.style),className:Xe,onClick:Pt})))},x=te(45157);const z=Le=>(0,x.Z)(Le,(ht,Ye)=>{let{textColor:vt,lightBorderColor:we,lightColor:Fe,darkColor:He}=Ye;return{[`${Le.componentCls}-${ht}`]:{color:vt,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 ht=ie(Le);return z(ht)},ne);function se(Le){return typeof Le!="string"?Le:Le.charAt(0).toUpperCase()+Le.slice(1)}const ce=(Le,ht,Ye)=>{const vt=se(Ye);return{[`${Le.componentCls}-${ht}`]:{color:Le[`color${Ye}`],background:Le[`color${vt}Bg`],borderColor:Le[`color${vt}Border`],[`&${Le.componentCls}-borderless`]:{borderColor:"transparent"}}}};var _e=(0,ae.b)(["Tag","status"],Le=>{const ht=ie(Le);return[ce(ht,"success","Success"),ce(ht,"processing","Info"),ce(ht,"error","Error"),ce(ht,"warning","Warning")]},ne),ye=function(Le,ht){var Ye={};for(var vt in Le)Object.prototype.hasOwnProperty.call(Le,vt)&&ht.indexOf(vt)<0&&(Ye[vt]=Le[vt]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var we=0,vt=Object.getOwnPropertySymbols(Le);we{const{prefixCls:Ye,className:vt,rootClassName:we,style:Fe,children:He,icon:at,color:We,onClose:pt,closeIcon:Pt,closable:At,bordered:Bt=!0}=Le,rt=ye(Le,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:Xe,direction:Ct,tag:zt}=ee.useContext(de.E_),[Et,an]=ee.useState(!0);ee.useEffect(()=>{"visible"in rt&&an(rt.visible)},[rt.visible]);const $e=(0,Se.o2)(We),yt=(0,Se.yT)(We),Lt=$e||yt,on=Object.assign(Object.assign({backgroundColor:We&&!Lt?We:void 0},zt==null?void 0:zt.style),Fe),$t=Xe("tag",Ye),[st,lt]=a($t),Ge=pe()($t,zt==null?void 0:zt.className,{[`${$t}-${We}`]:Lt,[`${$t}-has-color`]:We&&!Lt,[`${$t}-hidden`]:!Et,[`${$t}-rtl`]:Ct==="rtl",[`${$t}-borderless`]:!Bt},vt,we,lt),Ne=Be=>{Be.stopPropagation(),pt==null||pt(Be),!Be.defaultPrevented&&an(!1)},[,et]=(0,fe.Z)(At,Pt,Be=>Be===null?ee.createElement(ge.Z,{className:`${$t}-close-icon`,onClick:Ne}):ee.createElement("span",{className:`${$t}-close-icon`,onClick:Ne},Be),null,!1),xt=typeof rt.onClick=="function"||He&&He.type==="a",Ie=at||null,Re=Ie?ee.createElement(ee.Fragment,null,Ie,He&&ee.createElement("span",null,He)):He,Ze=ee.createElement("span",Object.assign({},rt,{ref:ht,className:Ge,style:on}),Re,et,$e&&ee.createElement(re,{key:"preset",prefixCls:$t}),yt&&ee.createElement(_e,{key:"status",prefixCls:$t}));return st(xt?ee.createElement(oe.Z,{component:"Tag"},Ze):Ze)},Ee=ee.forwardRef(De);Ee.CheckableTag=b;var je=Ee},17574:function(mt,Ke,te){"use strict";te.d(Ke,{default:function(){return We}});var ee=te(60091),ge=te(94480),be=te(52671),pe=te(8657),Se=te(54476),fe=te(59301),oe={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"},de=oe,le=te(7657),me=function(Pt,At){return fe.createElement(le.Z,(0,Se.Z)({},Pt,{ref:At,icon:de}))},ae=fe.forwardRef(me),he=ae,ie=te(92310),ne=te.n(ie),a=te(35654),y=te(71430),E=te(36355),b=te(56082),x=te(62892),z=te(20648);const re=4;function se(pt){const{dropPosition:Pt,dropLevelOffset:At,prefixCls:Bt,indent:rt,direction:Xe="ltr"}=pt,Ct=Xe==="ltr"?"left":"right",zt=Xe==="ltr"?"right":"left",Et={[Ct]:-At*rt+re,[zt]:0};switch(Pt){case-1:Et.top=-3;break;case 1:Et.bottom=-3;break;default:Et.bottom=-3,Et[Ct]=rt+re;break}return fe.createElement("div",{style:Et,className:`${Bt}-drop-indicator`})}var ce=te(71997),ye=fe.forwardRef((pt,Pt)=>{const{getPrefixCls:At,direction:Bt,virtual:rt,tree:Xe}=fe.useContext(E.E_),{prefixCls:Ct,className:zt,showIcon:Et=!1,showLine:an,switcherIcon:$e,blockNode:yt=!1,children:Lt,checkable:on=!1,selectable:$t=!0,draggable:st,motion:lt,style:Ge}=pt,Ne=At("tree",Ct),et=At(),xt=lt!=null?lt:Object.assign(Object.assign({},(0,x.Z)(et)),{motionAppear:!1}),Ie=Object.assign(Object.assign({},pt),{checkable:on,selectable:$t,showIcon:Et,motion:xt,blockNode:yt,showLine:!!an,dropIndicatorRender:se}),[Re,Ze]=(0,z.ZP)(Ne),Be=fe.useMemo(()=>{if(!st)return!1;let it={};switch(typeof st){case"function":it.nodeDraggable=st;break;case"object":it=Object.assign({},st);break;default:break}return it.icon!==!1&&(it.icon=it.icon||fe.createElement(b.Z,null)),it},[st]),ze=it=>fe.createElement(ce.Z,{prefixCls:Ne,switcherIcon:$e,treeNodeProps:it,showLine:an});return Re(fe.createElement(ee.Z,Object.assign({itemHeight:20,ref:Pt,virtual:rt},Ie,{style:Object.assign(Object.assign({},Xe==null?void 0:Xe.style),Ge),prefixCls:Ne,className:ne()({[`${Ne}-icon-hide`]:!Et,[`${Ne}-block-node`]:yt,[`${Ne}-unselectable`]:!$t,[`${Ne}-rtl`]:Bt==="rtl"},Xe==null?void 0:Xe.className,zt,Ze),direction:Bt,checkable:on&&fe.createElement("span",{className:`${Ne}-checkbox-inner`}),selectable:$t,switcherIcon:ze,draggable:Be}),Lt))}),De;(function(pt){pt[pt.None=0]="None",pt[pt.Start=1]="Start",pt[pt.End=2]="End"})(De||(De={}));function Ee(pt,Pt){function At(Bt){const{key:rt,children:Xe}=Bt;Pt(rt,Bt)!==!1&&Ee(Xe||[],Pt)}pt.forEach(At)}function je(pt){let{treeData:Pt,expandedKeys:At,startKey:Bt,endKey:rt}=pt;const Xe=[];let Ct=De.None;if(Bt&&Bt===rt)return[Bt];if(!Bt||!rt)return[];function zt(Et){return Et===Bt||Et===rt}return Ee(Pt,Et=>{if(Ct===De.End)return!1;if(zt(Et)){if(Xe.push(Et),Ct===De.None)Ct=De.Start;else if(Ct===De.Start)return Ct=De.End,!1}else Ct===De.Start&&Xe.push(Et);return At.includes(Et)}),Xe}function Le(pt,Pt){const At=(0,ge.Z)(Pt),Bt=[];return Ee(pt,(rt,Xe)=>{const Ct=At.indexOf(rt);return Ct!==-1&&(Bt.push(Xe),At.splice(Ct,1)),!!At.length}),Bt}var ht=function(pt,Pt){var At={};for(var Bt in pt)Object.prototype.hasOwnProperty.call(pt,Bt)&&Pt.indexOf(Bt)<0&&(At[Bt]=pt[Bt]);if(pt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,Bt=Object.getOwnPropertySymbols(pt);rt{var{defaultExpandAll:At,defaultExpandParent:Bt,defaultExpandedKeys:rt}=pt,Xe=ht(pt,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const Ct=fe.useRef(),zt=fe.useRef(),Et=()=>{const{keyEntities:Be}=(0,y.I8)(vt(Xe));let ze;return At?ze=Object.keys(Be):Bt?ze=(0,a.r7)(Xe.expandedKeys||rt||[],Be):ze=Xe.expandedKeys||rt,ze},[an,$e]=fe.useState(Xe.selectedKeys||Xe.defaultSelectedKeys||[]),[yt,Lt]=fe.useState(()=>Et());fe.useEffect(()=>{"selectedKeys"in Xe&&$e(Xe.selectedKeys)},[Xe.selectedKeys]),fe.useEffect(()=>{"expandedKeys"in Xe&&Lt(Xe.expandedKeys)},[Xe.expandedKeys]);const on=(Be,ze)=>{var it;return"expandedKeys"in Xe||Lt(Be),(it=Xe.onExpand)===null||it===void 0?void 0:it.call(Xe,Be,ze)},$t=(Be,ze)=>{var it;const{multiple:It}=Xe,{node:Mt,nativeEvent:jt}=ze,{key:Dt=""}=Mt,Ht=vt(Xe),bt=Object.assign(Object.assign({},ze),{selected:!0}),fn=(jt==null?void 0:jt.ctrlKey)||(jt==null?void 0:jt.metaKey),cn=jt==null?void 0:jt.shiftKey;let wt;It&&fn?(wt=Be,Ct.current=Dt,zt.current=wt,bt.selectedNodes=Le(Ht,wt)):It&&cn?(wt=Array.from(new Set([].concat((0,ge.Z)(zt.current||[]),(0,ge.Z)(je({treeData:Ht,expandedKeys:yt,startKey:Dt,endKey:Ct.current}))))),bt.selectedNodes=Le(Ht,wt)):(wt=[Dt],Ct.current=Dt,zt.current=wt,bt.selectedNodes=Le(Ht,wt)),(it=Xe.onSelect)===null||it===void 0||it.call(Xe,wt,bt),"selectedKeys"in Xe||$e(wt)},{getPrefixCls:st,direction:lt}=fe.useContext(E.E_),{prefixCls:Ge,className:Ne,showIcon:et=!0,expandAction:xt="click"}=Xe,Ie=ht(Xe,["prefixCls","className","showIcon","expandAction"]),Re=st("tree",Ge),Ze=ne()(`${Re}-directory`,{[`${Re}-directory-rtl`]:lt==="rtl"},Ne);return fe.createElement(ye,Object.assign({icon:Ye,ref:Pt,blockNode:!0},Ie,{showIcon:et,expandAction:xt,prefixCls:Re,className:Ze,expandedKeys:yt,selectedKeys:an,onSelect:$t,onExpand:on}))};var He=fe.forwardRef(we);const at=ye;at.DirectoryTree=He,at.TreeNode=ee.O;var We=at},20648:function(mt,Ke,te){"use strict";te.d(Ke,{TM:function(){return ie},Yk:function(){return he}});var ee=te(36237),ge=te(98447),be=te(17313),pe=te(8378),Se=te(37613),fe=te(83116);const oe=new ee.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),de=(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:oe,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({},de(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)]},ie=ne=>{const{controlHeightSM:a}=ne;return{titleHeight:a,nodeHoverBg:ne.controlItemBgHover,nodeSelectedBg:ne.controlItemBgActive}};Ke.ZP=(0,fe.Z)("Tree",(ne,a)=>{let{prefixCls:y}=a;return[{[ne.componentCls]:(0,ge.C2)(`${y}-checkbox`,ne)},he(y,ne),(0,pe.Z)(ne)]},ne=>{const{colorTextLightSolid:a,colorPrimary:y}=ne;return Object.assign(Object.assign({},ie(ne)),{directoryNodeSelectedColor:a,directoryNodeSelectedBg:y})})},71997:function(mt,Ke,te){"use strict";te.d(Ke,{Z:function(){return E}});var ee=te(54476),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"},pe=be,Se=te(7657),fe=function(x,z){return ge.createElement(Se.Z,(0,ee.Z)({},x,{ref:z,icon:pe}))},oe=ge.forwardRef(fe),de=oe,le=te(52671),me=te(58617),ae=te(15075),he=te(43531),ie=te(92310),ne=te.n(ie),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,ht=`${x}-switcher-line-custom-icon`;return(0,a.l$)(Le)?(0,a.Tm)(Le,{className:ne()(Le.props.className||"",ht)}):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(de,{className:Ee})}},3867:function(mt,Ke,te){var ee=te(97671);(function(ge,be){mt.exports=be()})(this,function(){"use strict";function ge(Ie){var Re=typeof Ie;return Ie!==null&&(Re==="object"||Re==="function")}function be(Ie){return typeof Ie=="function"}var pe=void 0;Array.isArray?pe=Array.isArray:pe=function(Ie){return Object.prototype.toString.call(Ie)==="[object Array]"};var Se=pe,fe=0,oe=void 0,de=void 0,le=function(Re,Ze){se[fe]=Re,se[fe+1]=Ze,fe+=2,fe===2&&(de?de(ce):ye())};function me(Ie){de=Ie}function ae(Ie){le=Ie}var he=typeof window!="undefined"?window:void 0,ie=he||{},ne=ie.MutationObserver||ie.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 oe!="undefined"?function(){oe(ce)}:re()}function x(){var Ie=0,Re=new ne(ce),Ze=document.createTextNode("");return Re.observe(Ze,{characterData:!0}),function(){Ze.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;Ie0&&(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=ie(Ee,je),se=0;se0&&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}pe.prototype.addListener=function(z,re){return de(this,z,re,!1)},pe.prototype.on=pe.prototype.addListener,pe.prototype.prependListener=function(z,re){return de(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}pe.prototype.once=function(z,re){return fe(re),this.on(z,me(this,z,re)),this},pe.prototype.prependOnceListener=function(z,re){return fe(re),this.prependListener(z,me(this,z,re)),this},pe.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},pe.prototype.off=pe.prototype.removeListener,pe.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):ie(ce,ce.length)}pe.prototype.listeners=function(z){return ae(this,z,!0)},pe.prototype.rawListeners=function(z){return ae(this,z,!1)},pe.listenerCount=function(x,z){return typeof x.listenerCount=="function"?x.listenerCount(z):he.call(x,z)},pe.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}pe.prototype.eventNames=function(){return this._eventsCount>0?ee(this._events):[]};function ie(x,z){for(var re=new Array(z),se=0;se>>6)+de(128|vt&63):de(224|vt>>>12&15)+de(128|vt>>>6&63)+de(128|vt&63)}else{var vt=65536+(Ye.charCodeAt(0)-55296)*1024+(Ye.charCodeAt(1)-56320);return de(240|vt>>>18&7)+de(128|vt>>>12&63)+de(128|vt>>>6&63)+de(128|vt&63)}},me=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,ae=function(Ye){return Ye.replace(me,le)},he=function(Ye){var vt=[0,2,1][Ye.length%3],we=Ye.charCodeAt(0)<<16|(Ye.length>1?Ye.charCodeAt(1):0)<<8|(Ye.length>2?Ye.charCodeAt(2):0),Fe=[fe.charAt(we>>>18),fe.charAt(we>>>12&63),vt>=2?"=":fe.charAt(we>>>6&63),vt>=1?"=":fe.charAt(we&63)];return Fe.join("")},ie=be.btoa&&typeof be.btoa=="function"?function(Ye){return be.btoa(Ye)}:function(Ye){if(Ye.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return Ye.replace(/[\s\S]{1,3}/g,he)},ne=function(Ye){return ie(ae(String(Ye)))},a=function(Ye){return Ye.replace(/[+\/]/g,function(vt){return vt=="+"?"-":"_"}).replace(/=/g,"")},y=function(Ye,vt){return vt?a(ne(Ye)):ne(Ye)},E=function(Ye){return y(Ye,!0)},b;be.Uint8Array&&(b=function(Ye,vt){for(var we="",Fe=0,He=Ye.length;Fe>>18)+fe.charAt(Pt>>>12&63)+(typeof We!="undefined"?fe.charAt(Pt>>>6&63):"=")+(typeof pt!="undefined"?fe.charAt(Pt&63):"=")}return vt?a(we):we});var x=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,z=function(Ye){switch(Ye.length){case 4:var vt=(7&Ye.charCodeAt(0))<<18|(63&Ye.charCodeAt(1))<<12|(63&Ye.charCodeAt(2))<<6|63&Ye.charCodeAt(3),we=vt-65536;return de((we>>>10)+55296)+de((we&1023)+56320);case 3:return de((15&Ye.charCodeAt(0))<<12|(63&Ye.charCodeAt(1))<<6|63&Ye.charCodeAt(2));default:return de((31&Ye.charCodeAt(0))<<6|63&Ye.charCodeAt(1))}},re=function(Ye){return Ye.replace(x,z)},se=function(Ye){var vt=Ye.length,we=vt%4,Fe=(vt>0?oe[Ye.charAt(0)]<<18:0)|(vt>1?oe[Ye.charAt(1)]<<12:0)|(vt>2?oe[Ye.charAt(2)]<<6:0)|(vt>3?oe[Ye.charAt(3)]:0),He=[de(Fe>>>16),de(Fe>>>8&255),de(Fe&255)];return He.length-=[0,0,2,1][we],He.join("")},ce=be.atob&&typeof be.atob=="function"?function(Ye){return be.atob(Ye)}:function(Ye){return Ye.replace(/\S{1,4}/g,se)},_e=function(Ye){return ce(String(Ye).replace(/[^A-Za-z0-9\+\/]/g,""))},ye=function(Ye){return re(ce(Ye))},De=function(Ye){return String(Ye).replace(/[-_]/g,function(vt){return vt=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},Ee=function(Ye){return ye(De(Ye))},je;be.Uint8Array&&(je=function(Ye){return Uint8Array.from(_e(De(Ye)),function(vt){return vt.charCodeAt(0)})});var Le=function(){var Ye=be.Base64;return be.Base64=pe,Ye};if(be.Base64={VERSION:Se,atob:_e,btoa:ie,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 ht=function(Ye){return{value:Ye,enumerable:!1,writable:!0,configurable:!0}};be.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",ht(function(){return Ee(this)})),Object.defineProperty(String.prototype,"toBase64",ht(function(Ye){return y(this,Ye)})),Object.defineProperty(String.prototype,"toBase64URI",ht(function(){return y(this,!0)}))}}return be.Meteor&&(Base64=be.Base64),mt.exports?mt.exports.Base64=be.Base64:(ee=[],ge=function(){return be.Base64}.apply(Ke,ee),ge!==void 0&&(mt.exports=ge)),{Base64:be.Base64}})},39417:function(mt,Ke,te){"use strict";te.d(Ke,{Z:function(){return ye}});var ee=te(54476),ge=te(20068),be=te(75931),pe=te(33885),Se=te(67732),fe=te(83652),oe=te(31226),de=te(42403),le=te(158),me=te(92310),ae=te.n(me),he=te(26112),ie=te(59301),ne=te(39378),a=function(Ee){for(var je=Ee.prefixCls,Le=Ee.level,ht=Ee.isStart,Ye=Ee.isEnd,vt="".concat(je,"-indent-unit"),we=[],Fe=0;Fe0&&arguments[0]!==void 0?arguments[0]:[],lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Ge=st.length,Ne=lt.length;if(Math.abs(Ge-Ne)!==1)return{add:!1,key:null};function et(xt,Ie){var Re=new Map;xt.forEach(function(Be){Re.set(Be,!0)});var Ze=Ie.filter(function(Be){return!Re.has(Be)});return Ze.length===1?Ze[0]:null}return Ge ").concat(lt);return lt}var Ct=y.forwardRef(function(st,lt){var Ge=st.prefixCls,Ne=st.data,et=st.selectable,xt=st.checkable,Ie=st.expandedKeys,Re=st.selectedKeys,Ze=st.checkedKeys,Be=st.loadedKeys,ze=st.loadingKeys,it=st.halfCheckedKeys,It=st.keyEntities,Mt=st.disabled,jt=st.dragging,Dt=st.dragOverNodeKey,Ht=st.dropPosition,bt=st.motion,fn=st.height,cn=st.itemHeight,wt=st.virtual,yn=st.focusable,vn=st.activeItem,zn=st.focused,wn=st.tabIndex,Wn=st.onKeyDown,qn=st.onFocus,Kn=st.onBlur,Vn=st.onActiveChange,vr=st.onListChangeStart,lr=st.onListChangeEnd,sn=(0,re.Z)(st,Fe),Yn=y.useRef(null),or=y.useRef(null);y.useImperativeHandle(lt,function(){return{scrollTo:function(kt){Yn.current.scrollTo(kt)},getIndentWidth:function(){return or.current.offsetWidth}}});var Zn=y.useState(Ie),ar=(0,z.Z)(Zn,2),Dr=ar[0],Mr=ar[1],Er=y.useState(Ne),Br=(0,z.Z)(Er,2),sr=Br[0],Kr=Br[1],Ut=y.useState(Ne),ue=(0,z.Z)(Ut,2),ve=ue[0],Pe=ue[1],xe=y.useState([]),ke=(0,z.Z)(xe,2),tt=ke[0],dt=ke[1],tn=y.useState(null),Kt=(0,z.Z)(tn,2),_t=Kt[0],ft=Kt[1],Ft=y.useRef(Ne);Ft.current=Ne;function gt(){var Tt=Ft.current;Kr(Tt),Pe(Tt),dt([]),ft(null),lr()}(0,se.Z)(function(){Mr(Ie);var Tt=vt(Dr,Ie);if(Tt.key!==null)if(Tt.add){var kt=sr.findIndex(function(mn){var An=mn.key;return An===Tt.key}),Xt=Bt(we(sr,Ne,Tt.key),wt,fn,cn),dn=sr.slice();dn.splice(kt+1,0,At),Pe(dn),dt(Xt),ft("show")}else{var xn=Ne.findIndex(function(mn){var An=mn.key;return An===Tt.key}),Fn=Bt(we(Ne,sr,Tt.key),wt,fn,cn),Qn=Ne.slice();Qn.splice(xn+1,0,At),Pe(Qn),dt(Fn),ft("hide")}else sr!==Ne&&(Kr(Ne),Pe(Ne))},[Ie,Ne]),y.useEffect(function(){jt||gt()},[jt]);var Gt=bt?ve:Ne,Zt={expandedKeys:Ie,selectedKeys:Re,loadedKeys:Be,loadingKeys:ze,checkedKeys:Ze,halfCheckedKeys:it,dragOverNodeKey:Dt,dropPosition:Ht,keyEntities:It};return y.createElement(y.Fragment,null,zn&&vn&&y.createElement("span",{style:He,"aria-live":"assertive"},Xe(vn)),y.createElement("div",null,y.createElement("input",{style:He,disabled:yn===!1||Mt,tabIndex:yn!==!1?wn:null,onKeyDown:Wn,onFocus:qn,onBlur:Kn,value:"",onChange:at,"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:or,className:"".concat(Ge,"-indent-unit")}))),y.createElement(ce.Z,(0,ee.Z)({},sn,{data:Gt,itemKey:rt,height:fn,fullHeight:!1,virtual:wt,itemHeight:cn,prefixCls:"".concat(Ge,"-list"),ref:Yn,onVisibleChange:function(kt,Xt){var dn=new Set(kt),xn=Xt.filter(function(Fn){return!dn.has(Fn)});xn.some(function(Fn){return rt(Fn)===We})&>()}}),function(Tt){var kt=Tt.pos,Xt=(0,ee.Z)({},(x(Tt.data),Tt.data)),dn=Tt.title,xn=Tt.key,Fn=Tt.isStart,Qn=Tt.isEnd,mn=(0,Ee.km)(xn,kt);delete Xt.key,delete Xt.children;var An=(0,Ee.H8)(mn,Zt);return y.createElement(Ye,(0,ee.Z)({},Xt,An,{title:dn,active:!!vn&&xn===vn.key,pos:kt,data:Tt.data,isStart:Fn,isEnd:Qn,motion:bt,motionNodes:xn===We?tt:null,motionType:_t,onMotionStart:vr,onMotionEnd:gt,treeNodeRequiredProps:Zt,onMouseMove:function(){Vn(null)}}))}))});Ct.displayName="NodeList";var zt=Ct,Et=te(35654),an=te(90782),$e=te(67841),yt=10,Lt=function(st){(0,le.Z)(Ge,st);var lt=(0,me.Z)(Ge);function Ge(){var Ne;(0,fe.Z)(this,Ge);for(var et=arguments.length,xt=new Array(et),Ie=0;Ie2&&arguments[2]!==void 0?arguments[2]:!1,it=Ne.state,It=it.dragChildrenKeys,Mt=it.dropPosition,jt=it.dropTargetKey,Dt=it.dropTargetPos,Ht=it.dropAllowed;if(Ht){var bt=Ne.props.onDrop;if(Ne.setState({dragOverNodeKey:null}),Ne.cleanDragState(),jt!==null){var fn=(0,pe.Z)((0,pe.Z)({},(0,Ee.H8)(jt,Ne.getTreeNodeRequiredProps())),{},{active:((Be=Ne.getActiveItem())===null||Be===void 0?void 0:Be.key)===jt,data:(0,$e.Z)(Ne.state.keyEntities,jt).node}),cn=It.indexOf(jt)!==-1;(0,a.ZP)(!cn,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var wt=(0,Et.yx)(Dt),yn={event:Re,node:(0,Ee.F)(fn),dragNode:Ne.dragNode?(0,Ee.F)(Ne.dragNode.props):null,dragNodesKeys:[Ne.dragNode.props.eventKey].concat(It),dropToGap:Mt!==0,dropPosition:Mt+Number(wt[wt.length-1])};ze||bt==null||bt(yn),Ne.dragNode=null}}},Ne.cleanDragState=function(){var Re=Ne.state.draggingNodeKey;Re!==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(Re,Ze){var Be=Ne.state,ze=Be.expandedKeys,it=Be.flattenNodes,It=Ze.expanded,Mt=Ze.key,jt=Ze.isLeaf;if(!(jt||Re.shiftKey||Re.metaKey||Re.ctrlKey)){var Dt=it.filter(function(bt){return bt.key===Mt})[0],Ht=(0,Ee.F)((0,pe.Z)((0,pe.Z)({},(0,Ee.H8)(Mt,Ne.getTreeNodeRequiredProps())),{},{data:Dt.data}));Ne.setExpandedKeys(It?(0,Et._5)(ze,Mt):(0,Et.L0)(ze,Mt)),Ne.onNodeExpand(Re,Ht)}},Ne.onNodeClick=function(Re,Ze){var Be=Ne.props,ze=Be.onClick,it=Be.expandAction;it==="click"&&Ne.triggerExpandActionExpand(Re,Ze),ze==null||ze(Re,Ze)},Ne.onNodeDoubleClick=function(Re,Ze){var Be=Ne.props,ze=Be.onDoubleClick,it=Be.expandAction;it==="doubleClick"&&Ne.triggerExpandActionExpand(Re,Ze),ze==null||ze(Re,Ze)},Ne.onNodeSelect=function(Re,Ze){var Be=Ne.state.selectedKeys,ze=Ne.state,it=ze.keyEntities,It=ze.fieldNames,Mt=Ne.props,jt=Mt.onSelect,Dt=Mt.multiple,Ht=Ze.selected,bt=Ze[It.key],fn=!Ht;fn?Dt?Be=(0,Et.L0)(Be,bt):Be=[bt]:Be=(0,Et._5)(Be,bt);var cn=Be.map(function(wt){var yn=(0,$e.Z)(it,wt);return yn?yn.node:null}).filter(function(wt){return wt});Ne.setUncontrolledState({selectedKeys:Be}),jt==null||jt(Be,{event:"select",selected:fn,node:Ze,selectedNodes:cn,nativeEvent:Re.nativeEvent})},Ne.onNodeCheck=function(Re,Ze,Be){var ze=Ne.state,it=ze.keyEntities,It=ze.checkedKeys,Mt=ze.halfCheckedKeys,jt=Ne.props,Dt=jt.checkStrictly,Ht=jt.onCheck,bt=Ze.key,fn,cn={event:"check",node:Ze,checked:Be,nativeEvent:Re.nativeEvent};if(Dt){var wt=Be?(0,Et.L0)(It,bt):(0,Et._5)(It,bt),yn=(0,Et._5)(Mt,bt);fn={checked:wt,halfChecked:yn},cn.checkedNodes=wt.map(function(Kn){return(0,$e.Z)(it,Kn)}).filter(function(Kn){return Kn}).map(function(Kn){return Kn.node}),Ne.setUncontrolledState({checkedKeys:wt})}else{var vn=(0,an.S)([].concat((0,Se.Z)(It),[bt]),!0,it),zn=vn.checkedKeys,wn=vn.halfCheckedKeys;if(!Be){var Wn=new Set(zn);Wn.delete(bt);var qn=(0,an.S)(Array.from(Wn),{checked:!1,halfCheckedKeys:wn},it);zn=qn.checkedKeys,wn=qn.halfCheckedKeys}fn=zn,cn.checkedNodes=[],cn.checkedNodesPositions=[],cn.halfCheckedKeys=wn,zn.forEach(function(Kn){var Vn=(0,$e.Z)(it,Kn);if(Vn){var vr=Vn.node,lr=Vn.pos;cn.checkedNodes.push(vr),cn.checkedNodesPositions.push({node:vr,pos:lr})}}),Ne.setUncontrolledState({checkedKeys:zn},!1,{halfCheckedKeys:wn})}Ht==null||Ht(fn,cn)},Ne.onNodeLoad=function(Re){var Ze=Re.key,Be=new Promise(function(ze,it){Ne.setState(function(It){var Mt=It.loadedKeys,jt=Mt===void 0?[]:Mt,Dt=It.loadingKeys,Ht=Dt===void 0?[]:Dt,bt=Ne.props,fn=bt.loadData,cn=bt.onLoad;if(!fn||jt.indexOf(Ze)!==-1||Ht.indexOf(Ze)!==-1)return null;var wt=fn(Re);return wt.then(function(){var yn=Ne.state.loadedKeys,vn=(0,Et.L0)(yn,Ze);cn==null||cn(vn,{event:"load",node:Re}),Ne.setUncontrolledState({loadedKeys:vn}),Ne.setState(function(zn){return{loadingKeys:(0,Et._5)(zn.loadingKeys,Ze)}}),ze()}).catch(function(yn){if(Ne.setState(function(zn){return{loadingKeys:(0,Et._5)(zn.loadingKeys,Ze)}}),Ne.loadingRetryTimes[Ze]=(Ne.loadingRetryTimes[Ze]||0)+1,Ne.loadingRetryTimes[Ze]>=yt){var vn=Ne.state.loadedKeys;(0,a.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),Ne.setUncontrolledState({loadedKeys:(0,Et.L0)(vn,Ze)}),ze()}it(yn)}),{loadingKeys:(0,Et.L0)(Ht,Ze)}})});return Be.catch(function(){}),Be},Ne.onNodeMouseEnter=function(Re,Ze){var Be=Ne.props.onMouseEnter;Be==null||Be({event:Re,node:Ze})},Ne.onNodeMouseLeave=function(Re,Ze){var Be=Ne.props.onMouseLeave;Be==null||Be({event:Re,node:Ze})},Ne.onNodeContextMenu=function(Re,Ze){var Be=Ne.props.onRightClick;Be&&(Re.preventDefault(),Be({event:Re,node:Ze}))},Ne.onFocus=function(){var Re=Ne.props.onFocus;Ne.setState({focused:!0});for(var Ze=arguments.length,Be=new Array(Ze),ze=0;ze1&&arguments[1]!==void 0?arguments[1]:!1,Be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!Ne.destroyed){var ze=!1,it=!0,It={};Object.keys(Re).forEach(function(Mt){if(Mt in Ne.props){it=!1;return}ze=!0,It[Mt]=Re[Mt]}),ze&&(!Ze||it)&&Ne.setState((0,pe.Z)((0,pe.Z)({},It),Be))}},Ne.scrollTo=function(Re){Ne.listRef.current.scrollTo(Re)},Ne}return(0,oe.Z)(Ge,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var et=this.props.activeKey;et!==void 0&&et!==this.state.activeKey&&(this.setState({activeKey:et}),et!==null&&this.scrollTo({key:et}))}},{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 et,xt=this.state,Ie=xt.focused,Re=xt.flattenNodes,Ze=xt.keyEntities,Be=xt.draggingNodeKey,ze=xt.activeKey,it=xt.dropLevelOffset,It=xt.dropContainerKey,Mt=xt.dropTargetKey,jt=xt.dropPosition,Dt=xt.dragOverNodeKey,Ht=xt.indent,bt=this.props,fn=bt.prefixCls,cn=bt.className,wt=bt.style,yn=bt.showLine,vn=bt.focusable,zn=bt.tabIndex,wn=zn===void 0?0:zn,Wn=bt.selectable,qn=bt.showIcon,Kn=bt.icon,Vn=bt.switcherIcon,vr=bt.draggable,lr=bt.checkable,sn=bt.checkStrictly,Yn=bt.disabled,or=bt.motion,Zn=bt.loadData,ar=bt.filterTreeNode,Dr=bt.height,Mr=bt.itemHeight,Er=bt.virtual,Br=bt.titleRender,sr=bt.dropIndicatorRender,Kr=bt.onContextMenu,Ut=bt.onScroll,ue=bt.direction,ve=bt.rootClassName,Pe=bt.rootStyle,xe=(0,ne.Z)(this.props,{aria:!0,data:!0}),ke;return vr&&((0,be.Z)(vr)==="object"?ke=vr:typeof vr=="function"?ke={nodeDraggable:vr}:ke={}),y.createElement(E.k.Provider,{value:{prefixCls:fn,selectable:Wn,showIcon:qn,icon:Kn,switcherIcon:Vn,draggable:ke,draggingNodeKey:Be,checkable:lr,checkStrictly:sn,disabled:Yn,keyEntities:Ze,dropLevelOffset:it,dropContainerKey:It,dropTargetKey:Mt,dropPosition:jt,dragOverNodeKey:Dt,indent:Ht,direction:ue,dropIndicatorRender:sr,loadData:Zn,filterTreeNode:ar,titleRender:Br,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,cn,ve,(et={},(0,ge.Z)(et,"".concat(fn,"-show-line"),yn),(0,ge.Z)(et,"".concat(fn,"-focused"),Ie),(0,ge.Z)(et,"".concat(fn,"-active-focused"),ze!==null),et)),style:Pe},y.createElement(zt,(0,ee.Z)({ref:this.listRef,prefixCls:fn,style:wt,data:Re,disabled:Yn,selectable:Wn,checkable:!!lr,motion:or,dragging:Be!==null,height:Dr,itemHeight:Mr,virtual:Er,focusable:vn,focused:Ie,tabIndex:wn,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Kr,onScroll:Ut},this.getTreeNodeRequiredProps(),xe))))}}],[{key:"getDerivedStateFromProps",value:function(et,xt){var Ie=xt.prevProps,Re={prevProps:et};function Ze(vn){return!Ie&&vn in et||Ie&&Ie[vn]!==et[vn]}var Be,ze=xt.fieldNames;if(Ze("fieldNames")&&(ze=(0,Ee.w$)(et.fieldNames),Re.fieldNames=ze),Ze("treeData")?Be=et.treeData:Ze("children")&&((0,a.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),Be=(0,Ee.zn)(et.children)),Be){Re.treeData=Be;var it=(0,Ee.I8)(Be,{fieldNames:ze});Re.keyEntities=(0,pe.Z)((0,ge.Z)({},We,Pt),it.keyEntities)}var It=Re.keyEntities||xt.keyEntities;if(Ze("expandedKeys")||Ie&&Ze("autoExpandParent"))Re.expandedKeys=et.autoExpandParent||!Ie&&et.defaultExpandParent?(0,Et.r7)(et.expandedKeys,It):et.expandedKeys;else if(!Ie&&et.defaultExpandAll){var Mt=(0,pe.Z)({},It);delete Mt[We],Re.expandedKeys=Object.keys(Mt).map(function(vn){return Mt[vn].key})}else!Ie&&et.defaultExpandedKeys&&(Re.expandedKeys=et.autoExpandParent||et.defaultExpandParent?(0,Et.r7)(et.defaultExpandedKeys,It):et.defaultExpandedKeys);if(Re.expandedKeys||delete Re.expandedKeys,Be||Re.expandedKeys){var jt=(0,Ee.oH)(Be||xt.treeData,Re.expandedKeys||xt.expandedKeys,ze);Re.flattenNodes=jt}if(et.selectable&&(Ze("selectedKeys")?Re.selectedKeys=(0,Et.BT)(et.selectedKeys,et):!Ie&&et.defaultSelectedKeys&&(Re.selectedKeys=(0,Et.BT)(et.defaultSelectedKeys,et))),et.checkable){var Dt;if(Ze("checkedKeys")?Dt=(0,Et.E6)(et.checkedKeys)||{}:!Ie&&et.defaultCheckedKeys?Dt=(0,Et.E6)(et.defaultCheckedKeys)||{}:Be&&(Dt=(0,Et.E6)(et.checkedKeys)||{checkedKeys:xt.checkedKeys,halfCheckedKeys:xt.halfCheckedKeys}),Dt){var Ht=Dt,bt=Ht.checkedKeys,fn=bt===void 0?[]:bt,cn=Ht.halfCheckedKeys,wt=cn===void 0?[]:cn;if(!et.checkStrictly){var yn=(0,an.S)(fn,!0,It);fn=yn.checkedKeys,wt=yn.halfCheckedKeys}Re.checkedKeys=fn,Re.halfCheckedKeys=wt}}return Ze("loadedKeys")&&(Re.loadedKeys=et.loadedKeys),Re}}]),Ge}(y.Component);Lt.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},Lt.TreeNode=ye.Z;var on=Lt,$t=on},35654:function(mt,Ke,te){"use strict";te.d(Ke,{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(94480),ge=te(76190),be=te(48736),pe=te(59301),Se=te(39417),fe=te(67841),oe=te(71430),de=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 ie(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,ht){var Ye,vt=re.clientX,we=re.clientY,Fe=re.target.getBoundingClientRect(),He=Fe.top,at=Fe.height,We=(ht==="rtl"?-1:1)*(((ye==null?void 0:ye.x)||0)-vt),pt=(We-12)/_e,Pt=(0,fe.Z)(je,ce.props.eventKey);if(we-1.5?De({dragNode:yt,dropNode:Lt,dropPosition:1})?Et=1:on=!1:De({dragNode:yt,dropNode:Lt,dropPosition:0})?Et=0:De({dragNode:yt,dropNode:Lt,dropPosition:1})?Et=1:on=!1:De({dragNode:yt,dropNode:Lt,dropPosition:1})?Et=1:on=!1,{dropPosition:Et,dropLevelOffset:an,dropTargetKey:Pt.key,dropTargetPos:Pt.pos,dragOverNodeKey:zt,dropContainerKey:Et===0?null:((Ye=Pt.parent)===null||Ye===void 0?void 0:Ye.key)||null,dropAllowed:on}}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,de),ht=b(je,se);return React.createElement(TreeNode,_extends({key:Le.key},ye(Le)),ht)})}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(mt,Ke,te){"use strict";te.d(Ke,{S:function(){return oe}});var ee=te(48736),ge=te(67841);function be(de,le){var me=new Set;return de.forEach(function(ae){le.has(ae)||me.add(ae)}),me}function pe(de){var le=de||{},me=le.disabled,ae=le.disableCheckbox,he=le.checkable;return!!(me||ae)||he===!1}function Se(de,le,me,ae){for(var he=new Set(de),ie=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||ie.has(ye))&&(ce=!0)}),se&&he.add(z.key),ce&&ie.add(z.key),y.add(z.key)}})}return{checkedKeys:Array.from(he),halfCheckedKeys:Array.from(be(ie,he))}}function fe(de,le,me,ae,he){for(var ie=new Set(de),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;!ie.has(re)&&!ne.has(re)&&!he(se)&&_e.filter(function(ye){return!he(ye.node)}).forEach(function(ye){ie.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=ie.has(De);ce&&!Ee&&(ce=!1),!_e&&(Ee||ne.has(De))&&(_e=!0)}),ce||ie.delete(re.key),_e&&ne.add(re.key),E.add(re.key)}})}return{checkedKeys:Array.from(ie),halfCheckedKeys:Array.from(be(ne,ie))}}function oe(de,le,me,ae){var he=[],ie;ae?ie=ae:ie=pe;var ne=new Set(de.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,ie):E=fe(ne,le.halfCheckedKeys,a,y,ie),E}},67841:function(mt,Ke,te){"use strict";te.d(Ke,{Z:function(){return ee}});function ee(ge,be){return ge[be]}},71430:function(mt,Ke,te){"use strict";te.d(Ke,{F:function(){return z},H8:function(){return x},I8:function(){return b},km:function(){return he},oH:function(){return y},w$:function(){return ie},zn:function(){return a}});var ee=te(76190),ge=te(94480),be=te(33885),pe=te(75931),Se=te(11592),fe=te(2738),oe=te(48736),de=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 ie(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 ht=String(je);warning(!ce.has(ht)||je===null||je===void 0,"Same 'key' exist in the Tree: ".concat(ht)),ce.set(ht,!0),_e(Le,"".concat(De).concat(ht," > "))})}_e(re)}function a(re){function se(ce){var _e=(0,Se.Z)(ce);return _e.map(function(ye){if(!ae(ye))return(0,oe.ZP)(!ye,"Tree/TreeNode can only accept TreeNode as children."),null;var De=ye.key,Ee=ye.props,je=Ee.children,Le=(0,pe.Z)(Ee,le),ht=(0,be.Z)({key:De},Le),Ye=se(je);return Ye.length&&(ht.children=Ye),ht}).filter(function(ye){return ye})}return se(re)}function y(re,se,ce){var _e=ie(ce),ye=_e._title,De=_e.key,Ee=_e.children,je=new Set(se===!0?[]:se),Le=[];function ht(Ye){var vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Ye.map(function(we,Fe){for(var He=me(vt?vt.pos:"0",Fe),at=he(we[De],He),We,pt=0;pt1&&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,ht=De||Le,Ye={},vt={},we={posEntities:Ye,keyEntities:vt};return ce&&(we=ce(we)||we),E(re,function(Fe){var He=Fe.node,at=Fe.index,We=Fe.pos,pt=Fe.key,Pt=Fe.parentPos,At=Fe.level,Bt=Fe.nodes,rt={node:He,nodes:Bt,index:at,key:pt,pos:We,level:At},Xe=he(pt,We);Ye[We]=rt,vt[Xe]=rt,rt.parent=Ye[Pt],rt.parent&&(rt.parent.children=rt.parent.children||[],rt.parent.children.push(rt)),_e&&_e(rt,we)},{externalGetKey:ht,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,ht=se.dropPosition,Ye=se.keyEntities,vt=(0,de.Z)(Ye,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(vt?vt.pos:""),dragOver:Le===re&&ht===0,dragOverGapTop:Le===re&&ht===-1,dragOverGapBottom:Le===re&&ht===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,ht=re.dragOverGapTop,Ye=re.dragOverGapBottom,vt=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:ht,dragOverGapBottom:Ye,pos:vt,active:we,key:Fe});return"props"in He||Object.defineProperty(He,"props",{get:function(){return(0,oe.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(mt,Ke,te){"use strict";te.d(Ke,{Z:function(){return ge}});var ee=te(4676);function ge(be,pe,Se,fe){var oe=ee.unstable_batchedUpdates?function(le){ee.unstable_batchedUpdates(Se,le)}:Se;return be!=null&&be.addEventListener&&be.addEventListener(pe,oe,fe),{remove:function(){be!=null&&be.removeEventListener&&be.removeEventListener(pe,oe,fe)}}}},55468:function(mt,Ke,te){"use strict";te.d(Ke,{g1:function(){return ae},os:function(){return ie}});var ee=/margin|padding|width|height|max|min|offset/,ge={left:!0,top:!0},be={cssFloat:1,styleFloat:1,float:1};function pe(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=pe(ne);return a=be[a]?"cssFloat"in ne.style?"cssFloat":"styleFloat":a,y===1?E:Se(ne,a,E[a]||ne.style[a])}function oe(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)&&oe(ne,b,a[b]);return pe(ne)}function de(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 ie(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(mt,Ke,te){"use strict";te.d(Ke,{G:function(){return pe}});var ee=te(47273),ge=function(fe){if((0,ee.Z)()&&window.document.documentElement){var oe=Array.isArray(fe)?fe:[fe],de=window.document.documentElement;return oe.some(function(le){return le in de.style})}return!1},be=function(fe,oe){if(!ge(fe))return!1;var de=document.createElement("div"),le=de.style[fe];return de.style[fe]=oe,de.style[fe]!==le};function pe(Se,fe){return!Array.isArray(Se)&&fe!==void 0?be(Se,fe):ge(Se)}},7062:function(mt,Ke,te){var ee=te(19637),ge=te(97573),be=[te(96627)];mt.exports=ee.createStore(ge,be)},96627:function(mt,Ke,te){mt.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(mt){return mt<10?"0"+mt:mt}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(mt){return rx_escapable.lastIndex=0,rx_escapable.test(mt)?'"'+mt.replace(rx_escapable,function(Ke){var te=meta[Ke];return typeof te=="string"?te:"\\u"+("0000"+Ke.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+mt+'"'}function str(mt,Ke){var te,ee,ge,be,pe=gap,Se,fe=Ke[mt];switch(fe&&typeof fe=="object"&&typeof fe.toJSON=="function"&&(fe=fe.toJSON(mt)),typeof rep=="function"&&(fe=rep.call(Ke,mt,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=0;ie--)if(be(he[ie])){var ne=he[ie].split("="),a=unescape(ne[0]),y=unescape(ne[1]);ae(y,a)}}function oe(ae,he){ae&&(pe.cookie=escape(ae)+"="+escape(he)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/")}function de(ae){!ae||!me(ae)||(pe.cookie=escape(ae)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function le(){fe(function(ae,he){de(he)})}function me(ae){return new RegExp("(?:^|;\\s*)"+escape(ae).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(pe.cookie)}},52496:function(mt,Ke,te){var ee=te(67039),ge=ee.Global;mt.exports={name:"localStorage",read:pe,write:Se,each:fe,remove:oe,clearAll:de};function be(){return ge.localStorage}function pe(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(pe(ae),ae)}}function oe(le){return be().removeItem(le)}function de(){return be().clear()}},65300:function(mt){mt.exports={name:"memoryStorage",read:te,write:ee,each:ge,remove:be,clearAll:pe};var Ke={};function te(Se){return Ke[Se]}function ee(Se,fe){Ke[Se]=fe}function ge(Se){for(var fe in Ke)Ke.hasOwnProperty(fe)&&Se(Ke[fe],fe)}function be(Se){delete Ke[Se]}function pe(Se){Ke={}}},16436:function(mt,Ke,te){var ee=te(67039),ge=ee.Global;mt.exports={name:"oldFF-globalStorage",read:pe,write:Se,each:fe,remove:oe,clearAll:de};var be=ge.globalStorage;function pe(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 oe(le){return be.removeItem(le)}function de(){fe(function(le,me){delete be[le]})}},76673:function(mt,Ke,te){var ee=te(67039),ge=ee.Global;mt.exports={name:"oldIE-userDataStorage",write:oe,read:de,each:le,remove:me,clearAll:ae};var be="storejs",pe=ge.document,Se=ne(),fe=(ge.navigator?ge.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function oe(a,y){if(!fe){var E=ie(a);Se(function(b){b.setAttribute(E,y),b.save(be)})}}function de(a){if(!fe){var y=ie(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=ie(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 ie(a){return a.replace(/^\d/,"___$&").replace(he,"___")}function ne(){if(!pe||!pe.documentElement||!pe.documentElement.addBehavior)return null;var a="script",y,E,b;try{E=new ActiveXObject("htmlfile"),E.open(),E.write("<"+a+">document.w=window'),E.close(),y=E.w.frames[0].document,b=y.createElement("div")}catch(x){b=pe.createElement("div"),y=pe.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(mt,Ke,te){var ee=te(67039),ge=ee.Global;mt.exports={name:"sessionStorage",read:pe,write:Se,each:fe,remove:oe,clearAll:de};function be(){return ge.sessionStorage}function pe(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(pe(ae),ae)}}function oe(le){return be().removeItem(le)}function de(){return be().clear()}},82059:function(mt){var Ke=arguments[3],te=arguments[4],ee=arguments[5],ge=JSON.stringify;mt.exports=function(be,pe){for(var Se,fe=Object.keys(ee),oe=0,de=fe.length;oe>22},le.prototype.getChars=function(){return 2097152&this.content?this.combinedData:2097151&this.content?pe.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 ie=me[Se.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=ie&&ie<=57343?this.content=1024*(he-55296)+ie-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=oe},function(Ke,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(Ke,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.ExtendedAttrs=te.AttributeData=void 0;var ge=function(){function pe(){this.fg=0,this.bg=0,this.extended=new be}return pe.toColorRGB=function(Se){return[Se>>>16&255,Se>>>8&255,255&Se]},pe.fromColorRGB=function(Se){return(255&Se[0])<<16|(255&Se[1])<<8|255&Se[2]},pe.prototype.clone=function(){var Se=new pe;return Se.fg=this.fg,Se.bg=this.bg,Se.extended=this.extended.clone(),Se},pe.prototype.isInverse=function(){return 67108864&this.fg},pe.prototype.isBold=function(){return 134217728&this.fg},pe.prototype.isUnderline=function(){return 268435456&this.fg},pe.prototype.isBlink=function(){return 536870912&this.fg},pe.prototype.isInvisible=function(){return 1073741824&this.fg},pe.prototype.isItalic=function(){return 67108864&this.bg},pe.prototype.isDim=function(){return 134217728&this.bg},pe.prototype.getFgColorMode=function(){return 50331648&this.fg},pe.prototype.getBgColorMode=function(){return 50331648&this.bg},pe.prototype.isFgRGB=function(){return(50331648&this.fg)==50331648},pe.prototype.isBgRGB=function(){return(50331648&this.bg)==50331648},pe.prototype.isFgPalette=function(){return(50331648&this.fg)==16777216||(50331648&this.fg)==33554432},pe.prototype.isBgPalette=function(){return(50331648&this.bg)==16777216||(50331648&this.bg)==33554432},pe.prototype.isFgDefault=function(){return(50331648&this.fg)==0},pe.prototype.isBgDefault=function(){return(50331648&this.bg)==0},pe.prototype.isAttributeDefault=function(){return this.fg===0&&this.bg===0},pe.prototype.getFgColor=function(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}},pe.prototype.getBgColor=function(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}},pe.prototype.hasExtendedAttrs=function(){return 268435456&this.bg},pe.prototype.updateExtended=function(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456},pe.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()},pe.prototype.getUnderlineColorMode=function(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()},pe.prototype.isUnderlineColorRGB=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==50331648:this.isFgRGB()},pe.prototype.isUnderlineColorPalette=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==16777216||(50331648&this.extended.underlineColor)==33554432:this.isFgPalette()},pe.prototype.isUnderlineColorDefault=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==0:this.isFgDefault()},pe.prototype.getUnderlineStyle=function(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0},pe}();te.AttributeData=ge;var be=function(){function pe(Se,fe){Se===void 0&&(Se=0),fe===void 0&&(fe=-1),this.underlineStyle=Se,this.underlineColor=fe}return pe.prototype.clone=function(){return new pe(this.underlineStyle,this.underlineColor)},pe.prototype.isEmpty=function(){return this.underlineStyle===0},pe}();te.ExtendedAttrs=be},function(Ke,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.addDisposableDomListener=void 0,te.addDisposableDomListener=function(ge,be,pe,Se){ge.addEventListener(be,pe,Se);var fe=!1;return{dispose:function(){fe||(fe=!0,ge.removeEventListener(be,pe,Se))}}}},function(Ke,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.Utf8ToUtf32=te.StringToUtf32=te.utf32ToString=te.stringFromCodePoint=void 0,te.stringFromCodePoint=function(pe){return pe>65535?(pe-=65536,String.fromCharCode(55296+(pe>>10))+String.fromCharCode(pe%1024+56320)):String.fromCharCode(pe)},te.utf32ToString=function(pe,Se,fe){Se===void 0&&(Se=0),fe===void 0&&(fe=pe.length);for(var oe="",de=Se;de65535?(le-=65536,oe+=String.fromCharCode(55296+(le>>10))+String.fromCharCode(le%1024+56320)):oe+=String.fromCharCode(le)}return oe};var ge=function(){function pe(){this._interim=0}return pe.prototype.clear=function(){this._interim=0},pe.prototype.decode=function(Se,fe){var oe=Se.length;if(!oe)return 0;var de=0,le=0;this._interim&&(56320<=(he=Se.charCodeAt(le++))&&he<=57343?fe[de++]=1024*(this._interim-55296)+he-56320+65536:(fe[de++]=this._interim,fe[de++]=he),this._interim=0);for(var me=le;me=oe)return this._interim=ae,de;var he;56320<=(he=Se.charCodeAt(me))&&he<=57343?fe[de++]=1024*(ae-55296)+he-56320+65536:(fe[de++]=ae,fe[de++]=he)}else fe[de++]=ae}return de},pe}();te.StringToUtf32=ge;var be=function(){function pe(){this.interim=new Uint8Array(3)}return pe.prototype.clear=function(){this.interim.fill(0)},pe.prototype.decode=function(Se,fe){var oe=Se.length;if(!oe)return 0;var de,le,me,ae,he=0,ie=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=oe)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=oe-4,se=ne;se=oe)return this.interim[0]=de,he;if((192&(le=Se[se++]))!=128){se--;continue}if((ie=(31&de)<<6|63&le)<128){se--;continue}fe[he++]=ie}else if((240&de)==224){if(se>=oe)return this.interim[0]=de,he;if((192&(le=Se[se++]))!=128){se--;continue}if(se>=oe)return this.interim[0]=de,this.interim[1]=le,he;if((192&(me=Se[se++]))!=128){se--;continue}if((ie=(15&de)<<12|(63&le)<<6|63&me)<2048||ie>=55296&&ie<=57343)continue;fe[he++]=ie}else if((248&de)==240){if(se>=oe)return this.interim[0]=de,he;if((192&(le=Se[se++]))!=128){se--;continue}if(se>=oe)return this.interim[0]=de,this.interim[1]=le,he;if((192&(me=Se[se++]))!=128){se--;continue}if(se>=oe)return this.interim[0]=de,this.interim[1]=le,this.interim[2]=me,he;if((192&(ae=Se[se++]))!=128){se--;continue}if((ie=(7&de)<<18|(63&le)<<12|(63&me)<<6|63&ae)<65536||ie>1114111)continue;fe[he++]=ie}}return he},pe}();te.Utf8ToUtf32=be},function(Ke,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(Ke,te,ee){"use strict";var ge,be,pe,Se;function fe(de){var le=de.toString(16);return le.length<2?"0"+le:le}function oe(de,le){return de>>0}}(ge=te.channels||(te.channels={})),(be=te.color||(te.color={})).blend=function(de,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,ie=le.rgba>>8&255,ne=de.rgba>>24&255,a=de.rgba>>16&255,y=de.rgba>>8&255,E=ne+Math.round((ae-ne)*me),b=a+Math.round((he-a)*me),x=y+Math.round((ie-y)*me);return{css:ge.toCss(E,b,x),rgba:ge.toRgba(E,b,x)}},be.isOpaque=function(de){return(255&de.rgba)==255},be.ensureContrastRatio=function(de,le,me){var ae=Se.ensureContrastRatio(de.rgba,le.rgba,me);if(ae)return Se.toColor(ae>>24&255,ae>>16&255,ae>>8&255)},be.opaque=function(de){var le=(255|de.rgba)>>>0,me=Se.toChannels(le),ae=me[0],he=me[1],ie=me[2];return{css:ge.toCss(ae,he,ie),rgba:le}},be.opacity=function(de,le){var me=Math.round(255*le),ae=Se.toChannels(de.rgba),he=ae[0],ie=ae[1],ne=ae[2];return{css:ge.toCss(he,ie,ne,me),rgba:ge.toRgba(he,ie,ne,me)}},(te.css||(te.css={})).toColor=function(de){switch(de.length){case 7:return{css:de,rgba:(parseInt(de.slice(1),16)<<8|255)>>>0};case 9:return{css:de,rgba:parseInt(de.slice(1),16)>>>0}}throw new Error("css.toColor: Unsupported css format")},function(de){function le(me,ae,he){var ie=me/255,ne=ae/255,a=he/255;return .2126*(ie<=.03928?ie/12.92:Math.pow((ie+.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))}de.relativeLuminance=function(me){return le(me>>16&255,me>>8&255,255&me)},de.relativeLuminance2=le}(pe=te.rgb||(te.rgb={})),function(de){function le(ae,he,ie){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=oe(pe.relativeLuminance2(E,x,b),pe.relativeLuminance2(ne,a,y));z0||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=oe(pe.relativeLuminance2(E,x,b),pe.relativeLuminance2(ne,a,y));return(E<<24|b<<16|x<<8|255)>>>0}function me(ae,he,ie){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=oe(pe.relativeLuminance2(E,x,b),pe.relativeLuminance2(ne,a,y));z>>0}de.ensureContrastRatio=function(ae,he,ie){var ne=pe.relativeLuminance(ae>>8),a=pe.relativeLuminance(he>>8);if(oe(ne,a)>24&255,ae>>16&255,ae>>8&255,255&ae]},de.toColor=function(ae,he,ie){return{css:ge.toCss(ae,he,ie),rgba:ge.toRgba(ae,he,ie)}}}(Se=te.rgba||(te.rgba={})),te.toPaddedHex=fe,te.contrastRatio=oe},function(Ke,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,pe=ge?"node":navigator.platform;function Se(fe,oe){return fe.indexOf(oe)>=0}te.isFirefox=!!~be.indexOf("Firefox"),te.isSafari=/^((?!chrome|android).)*safari/i.test(be),te.isMac=Se(["Macintosh","MacIntel","MacPPC","Mac68K"],pe),te.isIpad=pe==="iPad",te.isIphone=pe==="iPhone",te.isWindows=Se(["Windows","Win16","Win32","WinCE"],pe),te.isLinux=pe.indexOf("Linux")>=0},function(Ke,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(Ke,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.BaseRenderLayer=void 0;var ge=ee(3),be=ee(9),pe=ee(25),Se=ee(6),fe=ee(28),oe=ee(10),de=ee(17),le=function(){function me(ae,he,ie,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=ie.toString(),this._initCanvas(),this._container.appendChild(this._canvas)}return me.prototype.dispose=function(){var ae;de.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,ie){ie===void 0&&(ie=!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=pe.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,ie,ne){this._ctx.fillRect(ae*this._scaledCellWidth,he*this._scaledCellHeight,ie*this._scaledCellWidth,ne*this._scaledCellHeight)},me.prototype._fillBottomLineAtCells=function(ae,he,ie){ie===void 0&&(ie=1),this._ctx.fillRect(ae*this._scaledCellWidth,(he+1)*this._scaledCellHeight-window.devicePixelRatio-1,ie*this._scaledCellWidth,window.devicePixelRatio)},me.prototype._fillLeftLineAtCell=function(ae,he,ie){this._ctx.fillRect(ae*this._scaledCellWidth,he*this._scaledCellHeight,window.devicePixelRatio*ie,this._scaledCellHeight)},me.prototype._strokeRectAtCell=function(ae,he,ie,ne){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(ae*this._scaledCellWidth+window.devicePixelRatio/2,he*this._scaledCellHeight+window.devicePixelRatio/2,ie*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,ie,ne){this._alpha?this._ctx.clearRect(ae*this._scaledCellWidth,he*this._scaledCellHeight,ie*this._scaledCellWidth,ne*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(ae*this._scaledCellWidth,he*this._scaledCellHeight,ie*this._scaledCellWidth,ne*this._scaledCellHeight))},me.prototype._fillCharTrueColor=function(ae,he,ie){this._ctx.font=this._getFont(!1,!1),this._ctx.textBaseline="middle",this._clipRow(ie),this._ctx.fillText(ae.getChars(),he*this._scaledCellWidth+this._scaledCharLeft,ie*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2)},me.prototype._drawChars=function(ae,he,ie){var ne,a,y=this._getContrastColor(ae);y||ae.isFgRGB()||ae.isBgRGB()?this._drawUncachedChars(ae,he,ie,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,ie*this._scaledCellHeight+this._scaledCharTop)||this._drawUncachedChars(ae,he,ie))},me.prototype._drawUncachedChars=function(ae,he,ie,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=oe.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(ie),ae.isDim()&&(this._ctx.globalAlpha=be.DIM_OPACITY),this._ctx.fillText(ae.getChars(),he*this._scaledCellWidth+this._scaledCharLeft,ie*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 ie=ae.getFgColor(),ne=ae.getFgColorMode(),a=ae.getBgColor(),y=ae.getBgColorMode(),E=!!ae.isInverse(),b=!!ae.isInverse();if(E){var x=ie;ie=a,a=x;var z=ne;ne=y,y=z}var re=this._resolveBackgroundRgba(y,a,E),se=this._resolveForegroundRgba(ne,ie,E,b),ce=oe.rgba.ensureContrastRatio(re,se,this._optionsService.options.minimumContrastRatio);if(ce){var _e={css:oe.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,ie){switch(ae){case 16777216:case 33554432:return this._colors.ansi[he].rgba;case 50331648:return he<<8;case 0:default:return ie?this._colors.foreground.rgba:this._colors.background.rgba}},me.prototype._resolveForegroundRgba=function(ae,he,ie,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 ie?this._colors.background.rgba:this._colors.foreground.rgba}},me}();te.BaseRenderLayer=le},function(Ke,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.createDecorator=te.getServiceDependencies=te.serviceRegistry=void 0;function ge(be,pe,Se){pe.di$target===pe?pe.di$dependencies.push({id:be,index:Se}):(pe.di$dependencies=[{id:be,index:Se}],pe.di$target=pe)}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 pe=function(Se,fe,oe){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");ge(pe,Se,oe)};return pe.toString=function(){return be},te.serviceRegistry.set(be,pe),pe}},function(Ke,te,ee){"use strict";function ge(be,pe,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 oe=Se;oe>22,2097152&le?this._combined[de].charCodeAt(this._combined[de].length-1):me]},oe.prototype.set=function(de,le){this._data[3*de+1]=le[be.CHAR_DATA_ATTR_INDEX],le[be.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[de]=le[1],this._data[3*de+0]=2097152|de|le[be.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*de+0]=le[be.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|le[be.CHAR_DATA_WIDTH_INDEX]<<22},oe.prototype.getWidth=function(de){return this._data[3*de+0]>>22},oe.prototype.hasWidth=function(de){return 12582912&this._data[3*de+0]},oe.prototype.getFg=function(de){return this._data[3*de+1]},oe.prototype.getBg=function(de){return this._data[3*de+2]},oe.prototype.hasContent=function(de){return 4194303&this._data[3*de+0]},oe.prototype.getCodePoint=function(de){var le=this._data[3*de+0];return 2097152&le?this._combined[de].charCodeAt(this._combined[de].length-1):2097151&le},oe.prototype.isCombined=function(de){return 2097152&this._data[3*de+0]},oe.prototype.getString=function(de){var le=this._data[3*de+0];return 2097152&le?this._combined[de]:2097151&le?ge.stringFromCodePoint(2097151&le):""},oe.prototype.loadCell=function(de,le){var me=3*de;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[de]),268435456&le.bg&&(le.extended=this._extendedAttrs[de]),le},oe.prototype.setCell=function(de,le){2097152&le.content&&(this._combined[de]=le.combinedData),268435456&le.bg&&(this._extendedAttrs[de]=le.extended),this._data[3*de+0]=le.content,this._data[3*de+1]=le.fg,this._data[3*de+2]=le.bg},oe.prototype.setCellFromCodePoint=function(de,le,me,ae,he,ie){268435456&he&&(this._extendedAttrs[de]=ie),this._data[3*de+0]=le|me<<22,this._data[3*de+1]=ae,this._data[3*de+2]=he},oe.prototype.addCodepointToCell=function(de,le){var me=this._data[3*de+0];2097152&me?this._combined[de]+=ge.stringFromCodePoint(le):(2097151&me?(this._combined[de]=ge.stringFromCodePoint(2097151&me)+ge.stringFromCodePoint(le),me&=-2097152,me|=2097152):me=le|1<<22,this._data[3*de+0]=me)},oe.prototype.insertCells=function(de,le,me,ae){if((de%=this.length)&&this.getWidth(de-1)===2&&this.setCellFromCodePoint(de-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=0;--ie)this.setCell(de+le+ie,this.loadCell(de+ie,he));for(ie=0;iethis.length){var me=new Uint32Array(3*de);this.length&&(3*de=de&&delete this._combined[ie]}}else this._data=new Uint32Array(0),this._combined={};this.length=de}},oe.prototype.fill=function(de){this._combined={},this._extendedAttrs={};for(var le=0;le=0;--de)if(4194303&this._data[3*de+0])return de+(this._data[3*de+0]>>22);return 0},oe.prototype.copyCellsFrom=function(de,le,me,ae,he){var ie=de._data;if(he)for(var ne=ae-1;ne>=0;ne--)for(var a=0;a<3;a++)this._data[3*(me+ne)+a]=ie[3*(le+ne)+a];else for(ne=0;ne=le&&(this._combined[E-le+me]=de._combined[E])}},oe.prototype.translateToString=function(de,le,me){de===void 0&&(de=!1),le===void 0&&(le=0),me===void 0&&(me=this.length),de&&(me=Math.min(me,this.getTrimmedLength()));for(var ae="";le>22||1}return ae},oe}();te.BufferLine=fe},function(Ke,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.removeElementFromParent=void 0,te.removeElementFromParent=function(){for(var ge,be=[],pe=0;pe24)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"})(pe=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,ht,Ye,vt){vt===void 0&&(vt=new oe.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=ht,we._unicodeService=Ye,we._parser=vt,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(We,pt){we._logService.debug("Unknown CSI code: ",{identifier:we._parser.identToString(We),params:pt.toArray()})}),we._parser.setEscHandlerFallback(function(We){we._logService.debug("Unknown ESC code: ",{identifier:we._parser.identToString(We)})}),we._parser.setExecuteHandlerFallback(function(We){we._logService.debug("Unknown EXECUTE code: ",{code:We})}),we._parser.setOscHandlerFallback(function(We,pt,Pt){we._logService.debug("Unknown OSC code: ",{identifier:We,action:pt,data:Pt})}),we._parser.setDcsHandlerFallback(function(We,pt,Pt){pt==="HOOK"&&(Pt=Pt.toArray()),we._logService.debug("Unknown DCS code: ",{identifier:we._parser.identToString(We),action:pt,payload:Pt})}),we._parser.setPrintHandler(function(We,pt,Pt){return we.print(We,pt,Pt)}),we._parser.setCsiHandler({final:"@"},function(We){return we.insertChars(We)}),we._parser.setCsiHandler({intermediates:" ",final:"@"},function(We){return we.scrollLeft(We)}),we._parser.setCsiHandler({final:"A"},function(We){return we.cursorUp(We)}),we._parser.setCsiHandler({intermediates:" ",final:"A"},function(We){return we.scrollRight(We)}),we._parser.setCsiHandler({final:"B"},function(We){return we.cursorDown(We)}),we._parser.setCsiHandler({final:"C"},function(We){return we.cursorForward(We)}),we._parser.setCsiHandler({final:"D"},function(We){return we.cursorBackward(We)}),we._parser.setCsiHandler({final:"E"},function(We){return we.cursorNextLine(We)}),we._parser.setCsiHandler({final:"F"},function(We){return we.cursorPrecedingLine(We)}),we._parser.setCsiHandler({final:"G"},function(We){return we.cursorCharAbsolute(We)}),we._parser.setCsiHandler({final:"H"},function(We){return we.cursorPosition(We)}),we._parser.setCsiHandler({final:"I"},function(We){return we.cursorForwardTab(We)}),we._parser.setCsiHandler({final:"J"},function(We){return we.eraseInDisplay(We)}),we._parser.setCsiHandler({prefix:"?",final:"J"},function(We){return we.eraseInDisplay(We)}),we._parser.setCsiHandler({final:"K"},function(We){return we.eraseInLine(We)}),we._parser.setCsiHandler({prefix:"?",final:"K"},function(We){return we.eraseInLine(We)}),we._parser.setCsiHandler({final:"L"},function(We){return we.insertLines(We)}),we._parser.setCsiHandler({final:"M"},function(We){return we.deleteLines(We)}),we._parser.setCsiHandler({final:"P"},function(We){return we.deleteChars(We)}),we._parser.setCsiHandler({final:"S"},function(We){return we.scrollUp(We)}),we._parser.setCsiHandler({final:"T"},function(We){return we.scrollDown(We)}),we._parser.setCsiHandler({final:"X"},function(We){return we.eraseChars(We)}),we._parser.setCsiHandler({final:"Z"},function(We){return we.cursorBackwardTab(We)}),we._parser.setCsiHandler({final:"`"},function(We){return we.charPosAbsolute(We)}),we._parser.setCsiHandler({final:"a"},function(We){return we.hPositionRelative(We)}),we._parser.setCsiHandler({final:"b"},function(We){return we.repeatPrecedingCharacter(We)}),we._parser.setCsiHandler({final:"c"},function(We){return we.sendDeviceAttributesPrimary(We)}),we._parser.setCsiHandler({prefix:">",final:"c"},function(We){return we.sendDeviceAttributesSecondary(We)}),we._parser.setCsiHandler({final:"d"},function(We){return we.linePosAbsolute(We)}),we._parser.setCsiHandler({final:"e"},function(We){return we.vPositionRelative(We)}),we._parser.setCsiHandler({final:"f"},function(We){return we.hVPosition(We)}),we._parser.setCsiHandler({final:"g"},function(We){return we.tabClear(We)}),we._parser.setCsiHandler({final:"h"},function(We){return we.setMode(We)}),we._parser.setCsiHandler({prefix:"?",final:"h"},function(We){return we.setModePrivate(We)}),we._parser.setCsiHandler({final:"l"},function(We){return we.resetMode(We)}),we._parser.setCsiHandler({prefix:"?",final:"l"},function(We){return we.resetModePrivate(We)}),we._parser.setCsiHandler({final:"m"},function(We){return we.charAttributes(We)}),we._parser.setCsiHandler({final:"n"},function(We){return we.deviceStatus(We)}),we._parser.setCsiHandler({prefix:"?",final:"n"},function(We){return we.deviceStatusPrivate(We)}),we._parser.setCsiHandler({intermediates:"!",final:"p"},function(We){return we.softReset(We)}),we._parser.setCsiHandler({intermediates:" ",final:"q"},function(We){return we.setCursorStyle(We)}),we._parser.setCsiHandler({final:"r"},function(We){return we.setScrollRegion(We)}),we._parser.setCsiHandler({final:"s"},function(We){return we.saveCursor(We)}),we._parser.setCsiHandler({final:"t"},function(We){return we.windowOptions(We)}),we._parser.setCsiHandler({final:"u"},function(We){return we.restoreCursor(We)}),we._parser.setCsiHandler({intermediates:"'",final:"}"},function(We){return we.insertColumns(We)}),we._parser.setCsiHandler({intermediates:"'",final:"~"},function(We){return we.deleteColumns(We)}),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(We){we.setTitle(We),we.setIconName(We)})),we._parser.setOscHandler(1,new y.OscHandler(function(We){return we.setIconName(We)})),we._parser.setOscHandler(2,new y.OscHandler(function(We){return we.setTitle(We)})),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(We){He._parser.setEscHandler({intermediates:"(",final:We},function(){return we.selectCharset("("+We)}),He._parser.setEscHandler({intermediates:")",final:We},function(){return we.selectCharset(")"+We)}),He._parser.setEscHandler({intermediates:"*",final:We},function(){return we.selectCharset("*"+We)}),He._parser.setEscHandler({intermediates:"+",final:We},function(){return we.selectCharset("+"+We)}),He._parser.setEscHandler({intermediates:"-",final:We},function(){return we.selectCharset("-"+We)}),He._parser.setEscHandler({intermediates:".",final:We},function(){return we.selectCharset("."+We)}),He._parser.setEscHandler({intermediates:"/",final:We},function(){return we.selectCharset("/"+We)})},He=this;for(var at in fe.CHARSETS)Fe(at);return we._parser.setEscHandler({intermediates:"#",final:"8"},function(){return we.screenAlignmentPattern()}),we._parser.setErrorHandler(function(We){return we._logService.error("Parsing error: ",We),We}),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,ht=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,ht)}else ht=typeof _e=="string"?this._stringDecoder.decode(_e,this._parseBuffer):this._utf8Decoder.decode(_e,this._parseBuffer),this._parser.parse(this._parseBuffer,ht);(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,ht=this._charsetService.charset,Ye=this._optionsService.options.screenReaderMode,vt=this._bufferService.cols,we=this._coreService.decPrivateModes.wraparound,Fe=this._coreService.modes.insertMode,He=this._curAttrData,at=Le.lines.get(Le.ybase+Le.y);this._dirtyRowService.markDirty(Le.y),Le.x&&De-ye>0&&at.getWidth(Le.x-1)===2&&at.setCellFromCodePoint(Le.x-1,0,1,He.fg,He.bg,He.extended);for(var We=ye;We=vt){if(we){for(;Le.x=this._bufferService.rows&&(Le.y=this._bufferService.rows-1),Le.lines.get(Le.ybase+Le.y).isWrapped=!0),at=Le.lines.get(Le.ybase+Le.y)}else if(Le.x=vt-1,je===2)continue}if(Fe&&(at.insertCells(Le.x,je,Le.getNullCell(He),He),at.getWidth(vt-1)===2&&at.setCellFromCodePoint(vt-1,ie.NULL_CELL_CODE,ie.NULL_CELL_WIDTH,He.fg,He.bg,He.extended)),at.setCellFromCodePoint(Le.x++,Ee,je,He.fg,He.bg,He.extended),je>0)for(;--je;)at.setCellFromCodePoint(Le.x++,0,0,He.fg,He.bg,He.extended)}else at.getWidth(Le.x-1)?at.addCodepointToCell(Le.x-1,Ee):at.addCodepointToCell(Le.x-2,Ee)}De-ye>0&&(at.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.x0&&at.getWidth(Le.x)===0&&!at.hasContent(Le.x)&&at.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.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.yDe.scrollBottom||De.yye.scrollBottom||ye.yye.scrollBottom||ye.yye.scrollBottom||ye.yye.scrollBottom||ye.y0||(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 ht=_e.getSubParams(ye+Le),Ye=0;do Ee[1]===5&&(je=1),Ee[Le+Ye+1+je]=ht[Ye];while(++Ye=2||Ee[1]===2&&Le+je>=5)break;Ee[1]&&(je=1)}while(++Le+ye<_e.length&&Le+je5)&&(_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=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(pe.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(pe.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;De256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(pe),this.length=0,this._subParams=new Int32Array(Se),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(pe),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}return be.fromArray=function(pe){var Se=new be;if(!pe.length)return Se;for(var fe=pe[0]instanceof Array?1:0;fe>8,oe=255&this._subParamsIdx[Se];oe-fe>0&&pe.push(Array.prototype.slice.call(this._subParams,fe,oe))}return pe},be.prototype.reset=function(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1},be.prototype.addParam=function(pe){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(pe<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=pe>2147483647?2147483647:pe}},be.prototype.addSubParam=function(pe){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(pe<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=pe>2147483647?2147483647:pe,this._subParamsIdx[this.length-1]++}},be.prototype.hasSubParams=function(pe){return(255&this._subParamsIdx[pe])-(this._subParamsIdx[pe]>>8)>0},be.prototype.getSubParams=function(pe){var Se=this._subParamsIdx[pe]>>8,fe=255&this._subParamsIdx[pe];return fe-Se>0?this._subParams.subarray(Se,fe):null},be.prototype.getSubParamsAll=function(){for(var pe={},Se=0;Se>8,oe=255&this._subParamsIdx[Se];oe-fe>0&&(pe[Se]=this._subParams.slice(fe,oe))}return pe},be.prototype.addDigit=function(pe){var Se;if(!(this._rejectDigits||!(Se=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)){var fe=this._digitIsSub?this._subParams:this.params,oe=fe[Se-1];fe[Se-1]=~oe?Math.min(10*oe+pe,2147483647):pe}},be}();te.Params=ge},function(Ke,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.OscHandler=te.OscParser=void 0;var ge=ee(23),be=ee(8),pe=function(){function fe(){this._state=0,this._id=-1,this._handlers=Object.create(null),this._handlerFb=function(){}}return fe.prototype.addHandler=function(oe,de){this._handlers[oe]===void 0&&(this._handlers[oe]=[]);var le=this._handlers[oe];return le.push(de),{dispose:function(){var me=le.indexOf(de);me!==-1&&le.splice(me,1)}}},fe.prototype.setHandler=function(oe,de){this._handlers[oe]=[de]},fe.prototype.clearHandler=function(oe){this._handlers[oe]&&delete this._handlers[oe]},fe.prototype.setHandlerFallback=function(oe){this._handlerFb=oe},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 oe=this._handlers[this._id];if(oe)for(var de=oe.length-1;de>=0;de--)oe[de].start();else this._handlerFb(this._id,"START")},fe.prototype._put=function(oe,de,le){var me=this._handlers[this._id];if(me)for(var ae=me.length-1;ae>=0;ae--)me[ae].put(oe,de,le);else this._handlerFb(this._id,"PUT",be.utf32ToString(oe,de,le))},fe.prototype._end=function(oe){var de=this._handlers[this._id];if(de){for(var le=de.length-1;le>=0&&de[le].end(oe)===!1;le--);for(le--;le>=0;le--)de[le].end(!1)}else this._handlerFb(this._id,"END",oe)},fe.prototype.start=function(){this.reset(),this._id=-1,this._state=1},fe.prototype.put=function(oe,de,le){if(this._state!==3){if(this._state===1)for(;de0&&this._put(oe,de,le)}},fe.prototype.end=function(oe){this._state!==0&&(this._state!==3&&(this._state===1&&this._start(),this._end(oe)),this._id=-1,this._state=0)},fe}();te.OscParser=pe;var Se=function(){function fe(oe){this._handler=oe,this._data="",this._hitLimit=!1}return fe.prototype.start=function(){this._data="",this._hitLimit=!1},fe.prototype.put=function(oe,de,le){this._hitLimit||(this._data+=be.utf32ToString(oe,de,le),this._data.length>ge.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},fe.prototype.end=function(oe){var de;return this._hitLimit?de=!1:oe&&(de=this._handler(this._data)),this._data="",this._hitLimit=!1,de},fe}();te.OscHandler=Se},function(Ke,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.PAYLOAD_LIMIT=void 0,te.PAYLOAD_LIMIT=1e7},function(Ke,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.DcsHandler=te.DcsParser=void 0;var ge=ee(8),be=ee(21),pe=ee(23),Se=[],fe=function(){function de(){this._handlers=Object.create(null),this._active=Se,this._ident=0,this._handlerFb=function(){}}return de.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},de.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)}}},de.prototype.setHandler=function(le,me){this._handlers[le]=[me]},de.prototype.clearHandler=function(le){this._handlers[le]&&delete this._handlers[le]},de.prototype.setHandlerFallback=function(le){this._handlerFb=le},de.prototype.reset=function(){this._active.length&&this.unhook(!1),this._active=Se,this._ident=0},de.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)},de.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))},de.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},de}();te.DcsParser=fe;var oe=function(){function de(le){this._handler=le,this._data="",this._hitLimit=!1}return de.prototype.hook=function(le){this._params=le.clone(),this._data="",this._hitLimit=!1},de.prototype.put=function(le,me,ae){this._hitLimit||(this._data+=ge.utf32ToString(le,me,ae),this._data.length>pe.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},de.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},de}();te.DcsHandler=oe},function(Ke,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.removeTerminalFromCache=te.acquireCharAtlas=void 0;var ge=ee(26),be=ee(43),pe=[];te.acquireCharAtlas=function(Se,fe,oe,de,le){for(var me=ge.generateConfig(de,le,Se,oe),ae=0;ae=0){if(ge.configEquals(ie.config,me))return ie.atlas;ie.ownedBy.length===1?(ie.atlas.dispose(),pe.splice(ae,1)):ie.ownedBy.splice(he,1);break}}for(ae=0;ae1)for(var z=this._getJoinedRanges(ie,y,a,ae,ne),re=0;re1)for(z=this._getJoinedRanges(ie,y,a,ae,ne),re=0;re=this._line.length))return a?(this._line.loadCell(ne,a),a):this._line.loadCell(ne,new ge.CellData)},ie.prototype.translateToString=function(ne,a,y){return this._line.translateToString(ne,a,y)},ie}(),ae=function(){function ie(ne){this._core=ne}return ie.prototype.registerCsiHandler=function(ne,a){return this._core.addCsiHandler(ne,function(y){return a(y.toArray())})},ie.prototype.addCsiHandler=function(ne,a){return this.registerCsiHandler(ne,a)},ie.prototype.registerDcsHandler=function(ne,a){return this._core.addDcsHandler(ne,function(y,E){return a(y,E.toArray())})},ie.prototype.addDcsHandler=function(ne,a){return this.registerDcsHandler(ne,a)},ie.prototype.registerEscHandler=function(ne,a){return this._core.addEscHandler(ne,a)},ie.prototype.addEscHandler=function(ne,a){return this.registerEscHandler(ne,a)},ie.prototype.registerOscHandler=function(ne,a){return this._core.addOscHandler(ne,a)},ie.prototype.addOscHandler=function(ne,a){return this.registerOscHandler(ne,a)},ie}(),he=function(){function ie(ne){this._core=ne}return ie.prototype.register=function(ne){this._core.unicodeService.register(ne)},Object.defineProperty(ie.prototype,"versions",{get:function(){return this._core.unicodeService.versions},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"activeVersion",{get:function(){return this._core.unicodeService.activeVersion},set:function(ne){this._core.unicodeService.activeVersion=ne},enumerable:!1,configurable:!0}),ie}()},function(Ke,te,ee){"use strict";var ge,be=this&&this.__extends||(ge=function(vt,we){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Fe,He){Fe.__proto__=He}||function(Fe,He){for(var at in He)He.hasOwnProperty(at)&&(Fe[at]=He[at])})(vt,we)},function(vt,we){function Fe(){this.constructor=vt}ge(vt,we),vt.prototype=we===null?Object.create(we):(Fe.prototype=we.prototype,new Fe)});Object.defineProperty(te,"__esModule",{value:!0}),te.Terminal=void 0;var pe=ee(36),Se=ee(37),fe=ee(38),oe=ee(12),de=ee(19),le=ee(40),me=ee(50),ae=ee(51),he=ee(11),ie=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),ht=typeof window!="undefined"?window.document:null,Ye=function(vt){function we(Fe){Fe===void 0&&(Fe={});var He=vt.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(at,We){return He.refresh(at,We)})),He.register(He._inputHandler.onRequestReset(function(){return He.reset()})),He.register(He._inputHandler.onRequestScroll(function(at,We){return He.scroll(at,We||void 0)})),He.register(He._inputHandler.onRequestWindowsOptionsReport(function(at){return He._reportWindowsOptions(at)})),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(at){return He._afterResize(at.cols,at.rows)})),He}return be(we,vt),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,at;this._isDisposed||(vt.prototype.dispose.call(this),(Fe=this._renderService)===null||Fe===void 0||Fe.dispose(),this._customKeyEventHandler=void 0,this.write=function(){},(at=(He=this.element)===null||He===void 0?void 0:He.parentNode)===null||at===void 0||at.removeChild(this.element))},we.prototype._setup=function(){vt.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,at,We,pt;switch(vt.prototype._updateOptions.call(this,Fe),Fe){case"fontFamily":case"fontSize":(He=this._renderService)===null||He===void 0||He.clear(),(at=this._charSizeService)===null||at===void 0||at.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":(We=this.viewport)===null||We===void 0||We.syncScrollArea();break;case"screenReaderMode":this.optionsService.options.screenReaderMode?!this._accessibilityManager&&this._renderService&&(this._accessibilityManager=new E.AccessibilityManager(this,this._renderService)):((pt=this._accessibilityManager)===null||pt===void 0||pt.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(oe.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(oe.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,at=this._bufferService.buffer.x*this._charSizeService.width;this.textarea.style.left=at+"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(ie.addDisposableDomListener(this.element,"copy",function(at){Fe.hasSelection()&&fe.copyHandler(at,Fe._selectionService)}));var He=function(at){return fe.handlePasteEvent(at,Fe.textarea,Fe._coreService)};this.register(ie.addDisposableDomListener(this.textarea,"paste",He)),this.register(ie.addDisposableDomListener(this.element,"paste",He)),he.isFirefox?this.register(ie.addDisposableDomListener(this.element,"mousedown",function(at){at.button===2&&fe.rightClickHandler(at,Fe.textarea,Fe.screenElement,Fe._selectionService,Fe.options.rightClickSelectsWord)})):this.register(ie.addDisposableDomListener(this.element,"contextmenu",function(at){fe.rightClickHandler(at,Fe.textarea,Fe.screenElement,Fe._selectionService,Fe.options.rightClickSelectsWord)})),he.isLinux&&this.register(ie.addDisposableDomListener(this.element,"auxclick",function(at){at.button===1&&fe.moveTextAreaUnderMouseCursor(at,Fe.textarea,Fe.screenElement)}))},we.prototype._bindKeys=function(){var Fe=this;this.register(ie.addDisposableDomListener(this.textarea,"keyup",function(He){return Fe._keyUp(He)},!0)),this.register(ie.addDisposableDomListener(this.textarea,"keydown",function(He){return Fe._keyDown(He)},!0)),this.register(ie.addDisposableDomListener(this.textarea,"keypress",function(He){return Fe._keyPress(He)},!0)),this.register(ie.addDisposableDomListener(this.textarea,"compositionstart",function(){return Fe._compositionHelper.compositionstart()})),this.register(ie.addDisposableDomListener(this.textarea,"compositionupdate",function(He){return Fe._compositionHelper.compositionupdate(He)})),this.register(ie.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.");ht.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 at=ht.createDocumentFragment();this._viewportElement=ht.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),at.appendChild(this._viewportElement),this._viewportScrollArea=ht.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=ht.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=ht.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),at.appendChild(this.screenElement),this.textarea=ht.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(ie.addDisposableDomListener(this.textarea,"focus",function(Pt){return He._onTextAreaFocus(Pt)})),this.register(ie.addDisposableDomListener(this.textarea,"blur",function(){return He._onTextAreaBlur()})),this._helperContainer.appendChild(this.textarea);var We=this._instantiationService.createInstance(je.CoreBrowserService,this.textarea);this._instantiationService.setService(_e.ICoreBrowserService,We),this._charSizeService=this._instantiationService.createInstance(ye.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(_e.ICharSizeService,this._charSizeService),this._compositionView=ht.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(pe.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this.element.appendChild(at),this._theme=this.options.theme||this._theme,this._colorManager=new se.ColorManager(ht,this.options.allowTransparency),this.register(this.optionsService.onOptionChange(function(Pt){return He._colorManager.onOptionsChange(Pt)})),this._colorManager.setTheme(this._theme);var pt=this._createRenderer();this._renderService=this.register(this._instantiationService.createInstance(ce.RenderService,pt,this.rows,this.screenElement)),this._instantiationService.setService(_e.IRenderService,this._renderService),this.register(this._renderService.onRenderedBufferChange(function(Pt){return He._onRender.fire(Pt)})),this.onResize(function(Pt){return He._renderService.resize(Pt.cols,Pt.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(Pt,At){return He.scrollLines(Pt,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(Pt){return He.scrollLines(Pt.amount,Pt.suppressScrollEvent)})),this.register(this._selectionService.onSelectionChange(function(){return He._onSelectionChange.fire()})),this.register(this._selectionService.onRequestRedraw(function(Pt){return He._renderService.onSelectionChanged(Pt.start,Pt.end,Pt.columnSelectMode)})),this.register(this._selectionService.onLinuxMouseSelection(function(Pt){He.textarea.value=Pt,He.textarea.focus(),He.textarea.select()})),this.register(this.onScroll(function(){He.viewport.syncScrollArea(),He._selectionService.refresh()})),this.register(ie.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(ie.addDisposableDomListener(this.element,"mousedown",function(Pt){return He._selectionService.onMouseDown(Pt)})),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,at,We;this._theme=Fe,(He=this._colorManager)===null||He===void 0||He.setTheme(Fe),(at=this._renderService)===null||at===void 0||at.setColors(this._colorManager.colors),(We=this.viewport)===null||We===void 0||We.onThemeChange(this._colorManager.colors)},we.prototype.bindMouse=function(){var Fe=this,He=this,at=this.element;function We(Xe){var Ct,zt,Et=He._mouseService.getRawByteCoords(Xe,He.screenElement,He.cols,He.rows);if(!Et)return!1;switch(Xe.overrideType||Xe.type){case"mousemove":zt=32,Xe.buttons===void 0?(Ct=3,Xe.button!==void 0&&(Ct=Xe.button<3?Xe.button:3)):Ct=1&Xe.buttons?0:4&Xe.buttons?1:2&Xe.buttons?2:3;break;case"mouseup":zt=0,Ct=Xe.button<3?Xe.button:3;break;case"mousedown":zt=1,Ct=Xe.button<3?Xe.button:3;break;case"wheel":Xe.deltaY!==0&&(zt=Xe.deltaY<0?0:1),Ct=4;break;default:return!1}return!(zt===void 0||Ct===void 0||Ct>4)&&He._coreMouseService.triggerMouseEvent({col:Et.x-33,row:Et.y-33,button:Ct,action:zt,ctrl:Xe.ctrlKey,alt:Xe.altKey,shift:Xe.shiftKey})}var pt={mouseup:null,wheel:null,mousedrag:null,mousemove:null},Pt=function(Xe){return We(Xe),Xe.buttons||(Fe._document.removeEventListener("mouseup",pt.mouseup),pt.mousedrag&&Fe._document.removeEventListener("mousemove",pt.mousedrag)),Fe.cancel(Xe)},At=function(Xe){return We(Xe),Xe.preventDefault(),Fe.cancel(Xe)},Bt=function(Xe){Xe.buttons&&We(Xe)},rt=function(Xe){Xe.buttons||We(Xe)};this.register(this._coreMouseService.onProtocolChange(function(Xe){Xe?(Fe.optionsService.options.logLevel==="debug"&&Fe._logService.debug("Binding to mouse events:",Fe._coreMouseService.explainEvents(Xe)),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&Xe?pt.mousemove||(at.addEventListener("mousemove",rt),pt.mousemove=rt):(at.removeEventListener("mousemove",pt.mousemove),pt.mousemove=null),16&Xe?pt.wheel||(at.addEventListener("wheel",At,{passive:!1}),pt.wheel=At):(at.removeEventListener("wheel",pt.wheel),pt.wheel=null),2&Xe?pt.mouseup||(pt.mouseup=Pt):(Fe._document.removeEventListener("mouseup",pt.mouseup),pt.mouseup=null),4&Xe?pt.mousedrag||(pt.mousedrag=Bt):(Fe._document.removeEventListener("mousemove",pt.mousedrag),pt.mousedrag=null)})),this._coreMouseService.activeProtocol=this._coreMouseService.activeProtocol,this.register(ie.addDisposableDomListener(at,"mousedown",function(Xe){if(Xe.preventDefault(),Fe.focus(),Fe._coreMouseService.areMouseEventsActive&&!Fe._selectionService.shouldForceSelection(Xe))return We(Xe),pt.mouseup&&Fe._document.addEventListener("mouseup",pt.mouseup),pt.mousedrag&&Fe._document.addEventListener("mousemove",pt.mousedrag),Fe.cancel(Xe)})),this.register(ie.addDisposableDomListener(at,"wheel",function(Xe){if(!pt.wheel){if(!Fe.buffer.hasScrollback){var Ct=Fe.viewport.getLinesScrolled(Xe);if(Ct===0)return;for(var zt=oe.C0.ESC+(Fe._coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(Xe.deltaY<0?"A":"B"),Et="",an=0;an47)},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?vt.prototype.resize.call(this,Fe,He):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()},we.prototype._afterResize=function(Fe,He){var at,We;(at=this._charSizeService)===null||at===void 0||at.measure(),(We=this.viewport)===null||We===void 0||We.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=0;ne--)(ae=oe[ne])&&(ie=(he<3?ae(ie):he>3?ae(de,le,ie):ae(de,le))||ie);return he>3&&ie&&Object.defineProperty(de,le,ie),ie},be=this&&this.__param||function(oe,de){return function(le,me){de(le,me,oe)}};Object.defineProperty(te,"__esModule",{value:!0}),te.CompositionHelper=void 0;var pe=ee(5),Se=ee(1),fe=function(){function oe(de,le,me,ae,he,ie){this._textarea=de,this._compositionView=le,this._bufferService=me,this._optionsService=ae,this._charSizeService=he,this._coreService=ie,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0}}return Object.defineProperty(oe.prototype,"isComposing",{get:function(){return this._isComposing},enumerable:!1,configurable:!0}),oe.prototype.compositionstart=function(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._compositionView.classList.add("active")},oe.prototype.compositionupdate=function(de){var le=this;this._compositionView.textContent=de.data,this.updateCompositionElements(),setTimeout(function(){le._compositionPosition.end=le._textarea.value.length},0)},oe.prototype.compositionend=function(){this._finalizeComposition(!0)},oe.prototype.keydown=function(de){if(this._isComposing||this._isSendingComposition){if(de.keyCode===229||de.keyCode===16||de.keyCode===17||de.keyCode===18)return!1;this._finalizeComposition(!1)}return de.keyCode!==229||(this._handleAnyTextareaChanges(),!1)},oe.prototype._finalizeComposition=function(de){var le=this;if(this._compositionView.classList.remove("active"),this._isComposing=!1,de){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)}},oe.prototype._handleAnyTextareaChanges=function(){var de=this,le=this._textarea.value;setTimeout(function(){if(!de._isComposing){var me=de._textarea.value.replace(le,"");me.length>0&&de._coreService.triggerDataEvent(me,!0)}},0)},oe.prototype.updateCompositionElements=function(de){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 ie=this._compositionView.getBoundingClientRect();this._textarea.style.left=he+"px",this._textarea.style.top=ae+"px",this._textarea.style.width=ie.width+"px",this._textarea.style.height=ie.height+"px",this._textarea.style.lineHeight=ie.height+"px"}de||setTimeout(function(){return le.updateCompositionElements(!0)},0)}},oe=ge([be(2,Se.IBufferService),be(3,Se.IOptionsService),be(4,pe.ICharSizeService),be(5,Se.ICoreService)],oe)}();te.CompositionHelper=fe},function(Ke,te,ee){"use strict";var ge,be=this&&this.__extends||(ge=function(ae,he){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ie,ne){ie.__proto__=ne}||function(ie,ne){for(var a in ne)ne.hasOwnProperty(a)&&(ie[a]=ne[a])})(ae,he)},function(ae,he){function ie(){this.constructor=ae}ge(ae,he),ae.prototype=he===null?Object.create(he):(ie.prototype=he.prototype,new ie)}),pe=this&&this.__decorate||function(ae,he,ie,ne){var a,y=arguments.length,E=y<3?he:ne===null?ne=Object.getOwnPropertyDescriptor(he,ie):ne;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(ae,he,ie,ne);else for(var b=ae.length-1;b>=0;b--)(a=ae[b])&&(E=(y<3?a(E):y>3?a(he,ie,E):a(he,ie))||E);return y>3&&E&&Object.defineProperty(he,ie,E),E},Se=this&&this.__param||function(ae,he){return function(ie,ne){he(ie,ne,ae)}};Object.defineProperty(te,"__esModule",{value:!0}),te.Viewport=void 0;var fe=ee(2),oe=ee(7),de=ee(5),le=ee(1),me=function(ae){function he(ie,ne,a,y,E,b,x){var z=ae.call(this)||this;return z._scrollLines=ie,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(oe.addDisposableDomListener(z._viewportElement,"scroll",z._onScroll.bind(z))),setTimeout(function(){return z.syncScrollArea()},0),z}return be(he,ae),he.prototype.onThemeChange=function(ie){this._viewportElement.style.backgroundColor=ie.background.css},he.prototype._refresh=function(ie){var ne=this;if(ie)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 ie=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.canvasHeight);this._lastRecordedBufferHeight!==ie&&(this._lastRecordedBufferHeight=ie,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(ie){if(ie===void 0&&(ie=!1),this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(ie);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(ie)}else this._refresh(ie)},he.prototype._onScroll=function(ie){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(ie,ne){var a=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(ne<0&&this._viewportElement.scrollTop!==0||ne>0&&a0?1:-1),this._wheelPartialScroll%=1):ie.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(ne*=this._bufferService.rows),ne},he.prototype._applyScrollModifier=function(ie,ne){var a=this._optionsService.options.fastScrollModifier;return a==="alt"&&ne.altKey||a==="ctrl"&&ne.ctrlKey||a==="shift"&&ne.shiftKey?ie*this._optionsService.options.fastScrollSensitivity*this._optionsService.options.scrollSensitivity:ie*this._optionsService.options.scrollSensitivity},he.prototype.onTouchStart=function(ie){this._lastTouchY=ie.touches[0].pageY},he.prototype.onTouchMove=function(ie){var ne=this._lastTouchY-ie.touches[0].pageY;return this._lastTouchY=ie.touches[0].pageY,ne!==0&&(this._viewportElement.scrollTop+=ne,this._bubbleScroll(ie,ne))},he=pe([Se(3,le.IBufferService),Se(4,le.IOptionsService),Se(5,de.ICharSizeService),Se(6,de.IRenderService)],he)}(fe.Disposable);te.Viewport=me},function(Ke,te,ee){"use strict";function ge(fe){return fe.replace(/\r?\n/g,"\r")}function be(fe,oe){return oe?"\x1B[200~"+fe+"\x1B[201~":fe}function pe(fe,oe,de){fe=be(fe=ge(fe),de.decPrivateModes.bracketedPasteMode),de.triggerDataEvent(fe,!0),oe.value=""}function Se(fe,oe,de){var le=de.getBoundingClientRect(),me=fe.clientX-le.left-10,ae=fe.clientY-le.top-10;oe.style.width="20px",oe.style.height="20px",oe.style.left=me+"px",oe.style.top=ae+"px",oe.style.zIndex="1000",oe.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,oe){fe.clipboardData&&fe.clipboardData.setData("text/plain",oe.selectionText),fe.preventDefault()},te.handlePasteEvent=function(fe,oe,de){fe.stopPropagation(),fe.clipboardData&&pe(fe.clipboardData.getData("text/plain"),oe,de)},te.paste=pe,te.moveTextAreaUnderMouseCursor=Se,te.rightClickHandler=function(fe,oe,de,le,me){Se(fe,oe,de),me&&!le.isClickInSelection(fe)&&le.selectWordAtCursor(fe),oe.value=le.selectionText,oe.select()}},function(Ke,te,ee){"use strict";var ge,be=this&&this.__extends||(ge=function(ae,he){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ie,ne){ie.__proto__=ne}||function(ie,ne){for(var a in ne)ne.hasOwnProperty(a)&&(ie[a]=ne[a])})(ae,he)},function(ae,he){function ie(){this.constructor=ae}ge(ae,he),ae.prototype=he===null?Object.create(he):(ie.prototype=he.prototype,new ie)});Object.defineProperty(te,"__esModule",{value:!0}),te.EscapeSequenceParser=te.VT500_TRANSITION_TABLE=te.TransitionTable=void 0;var pe=ee(2),Se=ee(15),fe=ee(21),oe=ee(22),de=ee(24),le=function(){function ae(he){this.table=new Uint8Array(he)}return ae.prototype.setDefault=function(he,ie){Se.fill(this.table,he<<4|ie)},ae.prototype.add=function(he,ie,ne,a){this.table[ie<<8|he]=ne<<4|a},ae.prototype.addMany=function(he,ie,ne,a){for(var y=0;y1)throw new Error("only one byte as prefix supported");if((a=ie.prefix.charCodeAt(0))&&60>a||a>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(ie.intermediates){if(ie.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(var y=0;yE||E>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");a<<=8,a|=E}}if(ie.final.length!==1)throw new Error("final must be a single byte");var b=ie.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(ie){for(var ne=[];ie;)ne.push(String.fromCharCode(255&ie)),ie>>=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(ie){this._printHandler=ie},he.prototype.clearPrintHandler=function(){this._printHandler=this._printHandlerFb},he.prototype.addEscHandler=function(ie,ne){var a=this._identifier(ie,[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(ie,ne){this._escHandlers[this._identifier(ie,[48,126])]=[ne]},he.prototype.clearEscHandler=function(ie){this._escHandlers[this._identifier(ie,[48,126])]&&delete this._escHandlers[this._identifier(ie,[48,126])]},he.prototype.setEscHandlerFallback=function(ie){this._escHandlerFb=ie},he.prototype.setExecuteHandler=function(ie,ne){this._executeHandlers[ie.charCodeAt(0)]=ne},he.prototype.clearExecuteHandler=function(ie){this._executeHandlers[ie.charCodeAt(0)]&&delete this._executeHandlers[ie.charCodeAt(0)]},he.prototype.setExecuteHandlerFallback=function(ie){this._executeHandlerFb=ie},he.prototype.addCsiHandler=function(ie,ne){var a=this._identifier(ie);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(ie,ne){this._csiHandlers[this._identifier(ie)]=[ne]},he.prototype.clearCsiHandler=function(ie){this._csiHandlers[this._identifier(ie)]&&delete this._csiHandlers[this._identifier(ie)]},he.prototype.setCsiHandlerFallback=function(ie){this._csiHandlerFb=ie},he.prototype.addDcsHandler=function(ie,ne){return this._dcsParser.addHandler(this._identifier(ie),ne)},he.prototype.setDcsHandler=function(ie,ne){this._dcsParser.setHandler(this._identifier(ie),ne)},he.prototype.clearDcsHandler=function(ie){this._dcsParser.clearHandler(this._identifier(ie))},he.prototype.setDcsHandlerFallback=function(ie){this._dcsParser.setHandlerFallback(ie)},he.prototype.addOscHandler=function(ie,ne){return this._oscParser.addHandler(ie,ne)},he.prototype.setOscHandler=function(ie,ne){this._oscParser.setHandler(ie,ne)},he.prototype.clearOscHandler=function(ie){this._oscParser.clearHandler(ie)},he.prototype.setOscHandlerFallback=function(ie){this._oscParser.setHandlerFallback(ie)},he.prototype.setErrorHandler=function(ie){this._errorHandler=ie},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(ie,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>4){case 2:for(var _e=ce+1;;++_e){if(_e>=ne||(a=ie[_e])<32||a>126&&a<160){this._printHandler(ie,ce,_e),ce=_e-1;break}if(++_e>=ne||(a=ie[_e])<32||a>126&&a<160){this._printHandler(ie,ce,_e),ce=_e-1;break}if(++_e>=ne||(a=ie[_e])<32||a>126&&a<160){this._printHandler(ie,ce,_e),ce=_e-1;break}if(++_e>=ne||(a=ie[_e])<32||a>126&&a<160){this._printHandler(ie,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(++ce47&&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=ie[Le])===24||a===26||a===27||a>127&&a<160){x.put(ie,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 ht=ce+1;;ht++)if(ht>=ne||(a=ie[ht])<32||a>127&&a<=159){b.put(ie,ce,ht),ce=ht-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}(pe.Disposable);te.EscapeSequenceParser=me},function(Ke,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)}),pe=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),oe=ee(47),de=ee(48),le=ee(49),me=ee(29),ae=ee(2),he=ee(5),ie=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 ht=Le._optionsService.options.allowTransparency;return Le._characterJoinerRegistry=new me.CharacterJoinerRegistry(Le._bufferService),Le._renderLayers=[new fe.TextRenderLayer(Le._screenElement,0,Le._colors,Le._characterJoinerRegistry,ht,Le._id,Le._bufferService,De),new oe.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 de.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;z0&&re===z[0][0]){ce=!0;var ye=z.shift();se=new de.JoinedCellData(this._workCell,x.translateToString(!0,ye[0],ye[1]),ye[1]-ye[0]),_e=ye[1]-1}!ce&&this._isOverlapping(se)&&_ethis._characterWidth;return this._ctx.restore(),this._characterOverlapCache[ne]=a,a},he}(Se.BaseRenderLayer);te.TextRenderLayer=me},function(Ke,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(pe,Se){for(var fe=0;fe>>24,Ye=je.rgba>>>16&255,vt=je.rgba>>>8&255,we=0;we=this.capacity)fe=this._head,this._unlinkNode(fe),delete this._map[fe.key],fe.key=pe,fe.value=Se,this._map[pe]=fe;else{var oe=this._nodePool;oe.length>0?((fe=oe.pop()).key=pe,fe.value=Se):fe={prev:null,next:null,key:pe,value:Se},this._map[pe]=fe,this.size++}this._appendNode(fe)},be}();te.LRUMap=ge},function(Ke,te,ee){"use strict";var ge,be=this&&this.__extends||(ge=function(Se,fe){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(oe,de){oe.__proto__=de}||function(oe,de){for(var le in de)de.hasOwnProperty(le)&&(oe[le]=de[le])})(Se,fe)},function(Se,fe){function oe(){this.constructor=Se}ge(Se,fe),Se.prototype=fe===null?Object.create(fe):(oe.prototype=fe.prototype,new oe)});Object.defineProperty(te,"__esModule",{value:!0}),te.SelectionRenderLayer=void 0;var pe=function(Se){function fe(oe,de,le,me,ae,he){var ie=Se.call(this,oe,"selection",de,!0,le,me,ae,he)||this;return ie._clearState(),ie}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(oe){Se.prototype.resize.call(this,oe),this._clearState()},fe.prototype.reset=function(){this._state.start&&this._state.end&&(this._clearState(),this._clearAll())},fe.prototype.onSelectionChanged=function(oe,de,le){if(this._didStateChange(oe,de,le,this._bufferService.buffer.ydisp))if(this._clearAll(),oe&&de){var me=oe[1]-this._bufferService.buffer.ydisp,ae=de[1]-this._bufferService.buffer.ydisp,he=Math.max(me,0),ie=Math.min(ae,this._bufferService.rows-1);if(!(he>=this._bufferService.rows||ie<0)){if(this._ctx.fillStyle=this._colors.selectionTransparent.css,le){var ne=oe[0],a=de[0]-ne,y=ie-he+1;this._fillCells(ne,he,a,y)}else{ne=me===he?oe[0]:0;var E=he===ie?de[0]:this._bufferService.cols;this._fillCells(ne,he,E-ne,1);var b=Math.max(ie-he-1,0);if(this._fillCells(0,he+1,this._bufferService.cols,b),he!==ie){var x=ae===ie?de[0]:this._bufferService.cols;this._fillCells(0,ie,x,1)}}this._state.start=[oe[0],oe[1]],this._state.end=[de[0],de[1]],this._state.columnSelectMode=le,this._state.ydisp=this._bufferService.buffer.ydisp}}else this._clearState()},fe.prototype._didStateChange=function(oe,de,le,me){return!this._areCoordinatesEqual(oe,this._state.start)||!this._areCoordinatesEqual(de,this._state.end)||le!==this._state.columnSelectMode||me!==this._state.ydisp},fe.prototype._areCoordinatesEqual=function(oe,de){return!(!oe||!de)&&oe[0]===de[0]&&oe[1]===de[1]},fe}(ee(13).BaseRenderLayer);te.SelectionRenderLayer=pe},function(Ke,te,ee){"use strict";var ge,be=this&&this.__extends||(ge=function(de,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])})(de,le)},function(de,le){function me(){this.constructor=de}ge(de,le),de.prototype=le===null?Object.create(le):(me.prototype=le.prototype,new me)});Object.defineProperty(te,"__esModule",{value:!0}),te.CursorRenderLayer=void 0;var pe=ee(13),Se=ee(4),fe=function(de){function le(me,ae,he,ie,ne,a,y,E,b){var x=de.call(this,me,"cursor",ae,!0,he,ie,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,de),le.prototype.resize=function(me){de.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 oe(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 ie=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1);if(this._bufferService.buffer.lines.get(ae).loadCell(ie,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](ie,he,this._cell):this._renderBlurCursor(ie,he,this._cell),this._ctx.restore(),this._state.x=ie,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===ie&&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"](ie,he,this._cell),this._ctx.restore(),this._state.x=ie,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}(pe.BaseRenderLayer);te.CursorRenderLayer=fe;var oe=function(){function de(le,me){this._renderCallback=me,this.isCursorVisible=!0,le&&this._restartInterval()}return Object.defineProperty(de.prototype,"isPaused",{get:function(){return!(this._blinkStartTimeout||this._blinkInterval)},enumerable:!1,configurable:!0}),de.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)},de.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})))},de.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)},de.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)},de.prototype.resume=function(){this.pause(),this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()},de}()},function(Ke,te,ee){"use strict";var ge,be=this&&this.__extends||(ge=function(de,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])})(de,le)},function(de,le){function me(){this.constructor=de}ge(de,le),de.prototype=le===null?Object.create(le):(me.prototype=le.prototype,new me)});Object.defineProperty(te,"__esModule",{value:!0}),te.LinkRenderLayer=void 0;var pe=ee(13),Se=ee(9),fe=ee(26),oe=function(de){function le(me,ae,he,ie,ne,a,y,E){var b=de.call(this,me,"link",ae,!0,he,ie,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,de),le.prototype.resize=function(me){de.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=0;a--)(he=de[a])&&(ne=(ie<3?he(ne):ie>3?he(le,me,ne):he(le,me))||ne);return ie>3&&ne&&Object.defineProperty(le,me,ne),ne},be=this&&this.__param||function(de,le){return function(me,ae){le(me,ae,de)}};Object.defineProperty(te,"__esModule",{value:!0}),te.MouseZone=te.Linkifier=void 0;var pe=ee(0),Se=ee(1),fe=function(){function de(le,me,ae){this._bufferService=le,this._logService=me,this._unicodeService=ae,this._linkMatchers=[],this._nextLinkMatcherId=0,this._onShowLinkUnderline=new pe.EventEmitter,this._onHideLinkUnderline=new pe.EventEmitter,this._onLinkTooltip=new pe.EventEmitter,this._rowsToLinkify={start:void 0,end:void 0}}return Object.defineProperty(de.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onLinkTooltip",{get:function(){return this._onLinkTooltip.event},enumerable:!1,configurable:!0}),de.prototype.attachToDom=function(le,me){this._element=le,this._mouseZoneManager=me},de.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()},de._timeBeforeLatency))},de.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),ie=this._bufferService.buffer.iterator(!1,me,ae,he,he);ie.hasNext();)for(var ne=ie.next(),a=0;a=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)},de.prototype.deregisterLinkMatcher=function(le){for(var me=0;me>9&511:void 0;ae.validationCallback?ae.validationCallback(b,function(ce){ie._rowsTimeoutId||ce&&ie._addLink(x[1],x[0]-ie._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";);},de.prototype._addLink=function(le,me,ae,he,ie){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 oe(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,ie)),ne._element.classList.add("xterm-cursor-pointer")},function(z){ne._onLinkTooltip.fire(ne._createLinkHoverEvent(y,E,b,x,ie)),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,ie)),ne._element.classList.remove("xterm-cursor-pointer"),he.hoverLeaveCallback&&he.hoverLeaveCallback()},function(z){return!he.willLinkActivate||he.willLinkActivate(z,ae)}))}},de.prototype._createLinkHoverEvent=function(le,me,ae,he,ie){return{x1:le,y1:me,x2:ae,y2:he,cols:this._bufferService.cols,fg:ie}},de._timeBeforeLatency=200,de=ge([be(0,Se.IBufferService),be(1,Se.ILogService),be(2,Se.IUnicodeService)],de)}();te.Linkifier=fe;var oe=function(de,le,me,ae,he,ie,ne,a,y){this.x1=de,this.y1=le,this.x2=me,this.y2=ae,this.clickCallback=he,this.hoverCallback=ie,this.tooltipCallback=ne,this.leaveCallback=a,this.willLinkActivate=y};te.MouseZone=oe},function(Ke,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)}),pe=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),oe=ee(52),de=ee(4),le=ee(0),me=ee(5),ae=ee(1),he=ee(30),ie=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 de.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 oe.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]=re[0]&&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]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]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=ie.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,ht=0,Ye=0,vt=0,we=0;if(De.charAt(Ee)===" "){for(;Ee>0&&De.charAt(Ee-1)===" ";)Ee--;for(;je1&&(we+=at-1,je+=at-1);Fe>0&&Ee>0&&!this._isCharWordSeparator(ye.loadCell(Fe-1,this._workCell));){ye.loadCell(Fe-1,this._workCell);var We=this._workCell.getChars().length;this._workCell.getWidth()===0?(ht++,Fe--):We>1&&(vt+=We-1,Ee-=We-1),Ee--,Fe--}for(;He1&&(we+=pt-1,je+=pt-1),je++,He++}}je++;var Pt=Ee+Le-ht+vt,At=Math.min(this._bufferService.cols,je-Ee+ht+Ye-vt-we);if(re||De.slice(Ee,je).trim()!==""){if(se&&Pt===0&&ye.getCodePoint(0)!==32){var Bt=_e.lines.get(z[1]-1);if(Bt&&ye.isWrapped&&Bt.getCodePoint(this._bufferService.cols-1)!==32){var rt=this._getWordAt([this._bufferService.cols-1,z[1]-1],!1,!0,!1);if(rt){var Xe=this._bufferService.cols-rt.start;Pt-=Xe,At+=Xe}}}if(ce&&Pt+At===this._bufferService.cols&&ye.getCodePoint(this._bufferService.cols-1)!==32){var Ct=_e.lines.get(z[1]+1);if(Ct&&Ct.isWrapped&&Ct.getCodePoint(0)!==32){var zt=this._getWordAt([0,z[1]+1],!1,!1,!0);zt&&(At+=zt.length)}}return{start:Pt,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=pe([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(Ke,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.SelectionModel=void 0;var ge=function(){function be(pe){this._bufferService=pe,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 pe=this.selectionStart[0]+this.selectionStartLength;return pe>this._bufferService.cols?[pe%this._bufferService.cols,this.selectionStart[1]+Math.floor(pe/this._bufferService.cols)]:[pe,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 pe=this.selectionStart,Se=this.selectionEnd;return!(!pe||!Se)&&(pe[1]>Se[1]||pe[1]===Se[1]&&pe[0]>Se[0])},be.prototype.onTrim=function(pe){return this.selectionStart&&(this.selectionStart[1]-=pe),this.selectionEnd&&(this.selectionEnd[1]-=pe),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(Ke,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 ie=le-pe(ae,le),ne=me-pe(ae,me);return de(Math.abs(ie-ne)-function(a,y,E){for(var b=0,x=a-pe(E,a),z=y-pe(E,y),re=0;re=0&&meme?"A":"B"}function fe(le,me,ae,he,ie,ne){for(var a=le,y=me,E="";a!==ae||y!==he;)a+=ie?1:-1,ie&&a>ne.cols-1?(E+=ne.buffer.translateBufferLineToString(y,!1,le,a),a=0,le=0,y++):!ie&&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 oe(le,me){var ae=me?"O":"[";return ge.C0.ESC+ae+le}function de(le,me){le=Math.floor(le);for(var ae="",he=0;he0?z-pe(re,z):b;var _e=z,ye=function(De,Ee,je,Le,ht,Ye){var vt;return vt=be(je,Le,ht,Ye).length>0?Le-pe(ht,Le):Ee,De=je&&vtle?"D":"C",de(Math.abs(ne-le),oe(ie,he));ie=a>me?"D":"C";var y=Math.abs(a-me);return de(function(E,b){return b.cols-E}(a>me?le:ne,ae)+(y-1)*ae.cols+1+((a>me?ne:le)-1),oe(ie,he))}},function(Ke,te,ee){"use strict";var ge=this&&this.__decorate||function(fe,oe,de,le){var me,ae=arguments.length,he=ae<3?oe:le===null?le=Object.getOwnPropertyDescriptor(oe,de):le;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")he=Reflect.decorate(fe,oe,de,le);else for(var ie=fe.length-1;ie>=0;ie--)(me=fe[ie])&&(he=(ae<3?me(he):ae>3?me(oe,de,he):me(oe,de))||he);return ae>3&&he&&Object.defineProperty(oe,de,he),he},be=this&&this.__param||function(fe,oe){return function(de,le){oe(de,le,fe)}};Object.defineProperty(te,"__esModule",{value:!0}),te.SoundService=void 0;var pe=ee(1),Se=function(){function fe(oe){this._optionsService=oe}return Object.defineProperty(fe,"audioContext",{get:function(){if(!fe._audioContext){var oe=window.AudioContext||window.webkitAudioContext;if(!oe)return console.warn("Web Audio API is not supported by this browser. Consider upgrading to the latest version"),null;fe._audioContext=new oe}return fe._audioContext},enumerable:!1,configurable:!0}),fe.prototype.playBellSound=function(){var oe=fe.audioContext;if(oe){var de=oe.createBufferSource();oe.decodeAudioData(this._base64ToArrayBuffer(this._removeMimeType(this._optionsService.options.bellSound)),function(le){de.buffer=le,de.connect(oe.destination),de.start(0)})}},fe.prototype._base64ToArrayBuffer=function(oe){for(var de=window.atob(oe),le=de.length,me=new Uint8Array(le),ae=0;ae=0;b--)(a=ae[b])&&(E=(y<3?a(E):y>3?a(he,ie,E):a(he,ie))||E);return y>3&&E&&Object.defineProperty(he,ie,E),E},Se=this&&this.__param||function(ae,he){return function(ie,ne){he(ie,ne,ae)}};Object.defineProperty(te,"__esModule",{value:!0}),te.MouseZoneManager=void 0;var fe=ee(2),oe=ee(7),de=ee(5),le=ee(1),me=function(ae){function he(ie,ne,a,y,E,b){var x=ae.call(this)||this;return x._element=ie,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(oe.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(ie){this._zones.push(ie),this._zones.length===1&&this._activate()},he.prototype.clearAll=function(ie,ne){if(this._zones.length!==0){ie&&ne||(ie=0,ne=this._bufferService.rows-1);for(var a=0;aie&&y.y1<=ne+1||y.y2>ie&&y.y2<=ne+1||y.y1ne+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(ie){this._lastHoverCoords[0]===ie.pageX&&this._lastHoverCoords[1]===ie.pageY||(this._onHover(ie),this._lastHoverCoords=[ie.pageX,ie.pageY])},he.prototype._onHover=function(ie){var ne=this,a=this._findZoneEventAt(ie);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(ie),this._tooltipTimeout=window.setTimeout(function(){return ne._onTooltip(ie)},this._optionsService.options.linkTooltipHoverDuration)))},he.prototype._onTooltip=function(ie){this._tooltipTimeout=void 0;var ne=this._findZoneEventAt(ie);ne&&ne.tooltipCallback&&ne.tooltipCallback(ie)},he.prototype._onMouseDown=function(ie){if(this._initialSelectionLength=this._getSelectionLength(),this._areZonesActive){var ne=this._findZoneEventAt(ie);ne!=null&&ne.willLinkActivate(ie)&&(ie.preventDefault(),ie.stopImmediatePropagation())}},he.prototype._onMouseLeave=function(ie){this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout))},he.prototype._onClick=function(ie){var ne=this._findZoneEventAt(ie),a=this._getSelectionLength();ne&&a===this._initialSelectionLength&&(ne.clickCallback(ie),ie.preventDefault(),ie.stopImmediatePropagation())},he.prototype._getSelectionLength=function(){var ie=this._selectionService.selectionText;return ie?ie.length:0},he.prototype._findZoneEventAt=function(ie){var ne=this._mouseService.getCoords(ie,this._screenElement,this._bufferService.cols,this._bufferService.rows);if(ne)for(var a=ne[0],y=ne[1],E=0;E=b.x1&&a=b.x1||y===b.y2&&ab.y1&&yne;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()},ie.prototype._createAccessibilityTreeNode=function(){var ne=document.createElement("div");return ne.setAttribute("role","listitem"),ne.tabIndex=-1,this._refreshRowDimensions(ne),ne},ie.prototype._onTab=function(ne){for(var a=0;a0?this._charsToConsume.shift()!==ne&&(this._charsToAnnounce+=ne):this._charsToAnnounce+=ne,ne===` `&&(this._liveRegionLineCount++,this._liveRegionLineCount===21&&(this._liveRegion.textContent+=pe.tooMuchOutput)),Se.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(function(){a._accessibilityTreeRoot.appendChild(a._liveRegion)},0))},ie.prototype._clearLiveRegion=function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,Se.isMac&&me.removeElementFromParent(this._liveRegion)},ie.prototype._onKey=function(ne){this._clearLiveRegion(),this._charsToConsume.push(ne)},ie.prototype._refreshRows=function(ne,a){this._renderRowsDebouncer.refresh(ne,a,this._terminal.rows)},ie.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=" ":re.textContent=x,re.setAttribute("aria-posinset",z),re.setAttribute("aria-setsize",E))}this._announceCharacters()},ie.prototype._refreshRowsDimensions=function(){if(this._renderService.dimensions.actualCellHeight){this._rowElements.length!==this._terminal.rows&&this._onResize(this._terminal.rows);for(var ne=0;ne=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),oe=ee(9),de=ee(2),le=ee(5),me=ee(1),ae=ee(0),he=ee(10),ie=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),ie.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;bx;)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=se&&(b=0,z++)}},E=pe([Se(6,le.ICharSizeService),Se(7,me.IOptionsService),Se(8,me.IBufferService)],E)}(de.Disposable);te.DomRenderer=a},function(Ke,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),pe=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 de(le,me,ae){this._document=le,this._optionsService=me,this._colors=ae,this._workCell=new pe.CellData}return de.prototype.setColors=function(le){this._colors=le},de.prototype.createRow=function(le,me,ae,he,ie,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;b1&&(z.style.width=ne*x+"px"),me&&b===he)switch(z.classList.add(te.CURSOR_CLASS),ie&&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:#"+oe(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:#"+oe(ce.toString(16),"0",6));break;case 0:default:ye&&z.classList.add("xterm-bg-"+ge.INVERTED_DEFAULT_COLOR)}y.appendChild(z)}}return y},de.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)},de.prototype._addStyle=function(le,me){le.setAttribute("style",""+(le.getAttribute("style")||"")+me+";")},de}();function oe(de,le,me){for(;de.length"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};te.evaluateKeyboardEvent=function(pe,Se,fe,oe){var de={type:0,cancel:!1,key:void 0},le=(pe.shiftKey?1:0)|(pe.altKey?2:0)|(pe.ctrlKey?4:0)|(pe.metaKey?8:0);switch(pe.keyCode){case 0:pe.key==="UIKeyInputUpArrow"?de.key=Se?ge.C0.ESC+"OA":ge.C0.ESC+"[A":pe.key==="UIKeyInputLeftArrow"?de.key=Se?ge.C0.ESC+"OD":ge.C0.ESC+"[D":pe.key==="UIKeyInputRightArrow"?de.key=Se?ge.C0.ESC+"OC":ge.C0.ESC+"[C":pe.key==="UIKeyInputDownArrow"&&(de.key=Se?ge.C0.ESC+"OB":ge.C0.ESC+"[B");break;case 8:if(pe.shiftKey){de.key=ge.C0.BS;break}if(pe.altKey){de.key=ge.C0.ESC+ge.C0.DEL;break}de.key=ge.C0.DEL;break;case 9:if(pe.shiftKey){de.key=ge.C0.ESC+"[Z";break}de.key=ge.C0.HT,de.cancel=!0;break;case 13:de.key=pe.altKey?ge.C0.ESC+ge.C0.CR:ge.C0.CR,de.cancel=!0;break;case 27:de.key=ge.C0.ESC,pe.altKey&&(de.key=ge.C0.ESC+ge.C0.ESC),de.cancel=!0;break;case 37:if(pe.metaKey)break;le?(de.key=ge.C0.ESC+"[1;"+(le+1)+"D",de.key===ge.C0.ESC+"[1;3D"&&(de.key=ge.C0.ESC+(fe?"b":"[1;5D"))):de.key=Se?ge.C0.ESC+"OD":ge.C0.ESC+"[D";break;case 39:if(pe.metaKey)break;le?(de.key=ge.C0.ESC+"[1;"+(le+1)+"C",de.key===ge.C0.ESC+"[1;3C"&&(de.key=ge.C0.ESC+(fe?"f":"[1;5C"))):de.key=Se?ge.C0.ESC+"OC":ge.C0.ESC+"[C";break;case 38:if(pe.metaKey)break;le?(de.key=ge.C0.ESC+"[1;"+(le+1)+"A",fe||de.key!==ge.C0.ESC+"[1;3A"||(de.key=ge.C0.ESC+"[1;5A")):de.key=Se?ge.C0.ESC+"OA":ge.C0.ESC+"[A";break;case 40:if(pe.metaKey)break;le?(de.key=ge.C0.ESC+"[1;"+(le+1)+"B",fe||de.key!==ge.C0.ESC+"[1;3B"||(de.key=ge.C0.ESC+"[1;5B")):de.key=Se?ge.C0.ESC+"OB":ge.C0.ESC+"[B";break;case 45:pe.shiftKey||pe.ctrlKey||(de.key=ge.C0.ESC+"[2~");break;case 46:de.key=le?ge.C0.ESC+"[3;"+(le+1)+"~":ge.C0.ESC+"[3~";break;case 36:de.key=le?ge.C0.ESC+"[1;"+(le+1)+"H":Se?ge.C0.ESC+"OH":ge.C0.ESC+"[H";break;case 35:de.key=le?ge.C0.ESC+"[1;"+(le+1)+"F":Se?ge.C0.ESC+"OF":ge.C0.ESC+"[F";break;case 33:pe.shiftKey?de.type=2:de.key=ge.C0.ESC+"[5~";break;case 34:pe.shiftKey?de.type=3:de.key=ge.C0.ESC+"[6~";break;case 112:de.key=le?ge.C0.ESC+"[1;"+(le+1)+"P":ge.C0.ESC+"OP";break;case 113:de.key=le?ge.C0.ESC+"[1;"+(le+1)+"Q":ge.C0.ESC+"OQ";break;case 114:de.key=le?ge.C0.ESC+"[1;"+(le+1)+"R":ge.C0.ESC+"OR";break;case 115:de.key=le?ge.C0.ESC+"[1;"+(le+1)+"S":ge.C0.ESC+"OS";break;case 116:de.key=le?ge.C0.ESC+"[15;"+(le+1)+"~":ge.C0.ESC+"[15~";break;case 117:de.key=le?ge.C0.ESC+"[17;"+(le+1)+"~":ge.C0.ESC+"[17~";break;case 118:de.key=le?ge.C0.ESC+"[18;"+(le+1)+"~":ge.C0.ESC+"[18~";break;case 119:de.key=le?ge.C0.ESC+"[19;"+(le+1)+"~":ge.C0.ESC+"[19~";break;case 120:de.key=le?ge.C0.ESC+"[20;"+(le+1)+"~":ge.C0.ESC+"[20~";break;case 121:de.key=le?ge.C0.ESC+"[21;"+(le+1)+"~":ge.C0.ESC+"[21~";break;case 122:de.key=le?ge.C0.ESC+"[23;"+(le+1)+"~":ge.C0.ESC+"[23~";break;case 123:de.key=le?ge.C0.ESC+"[24;"+(le+1)+"~":ge.C0.ESC+"[24~";break;default:if(!pe.ctrlKey||pe.shiftKey||pe.altKey||pe.metaKey)if(fe&&!oe||!pe.altKey||pe.metaKey)fe&&!pe.altKey&&!pe.ctrlKey&&pe.metaKey?pe.keyCode===65&&(de.type=1):pe.key&&!pe.ctrlKey&&!pe.altKey&&!pe.metaKey&&pe.keyCode>=48&&pe.key.length===1?de.key=pe.key:pe.key&&pe.ctrlKey&&pe.key==="_"&&(de.key=ge.C0.US);else{var me=be[pe.keyCode],ae=me&&me[pe.shiftKey?1:0];if(ae)de.key=ge.C0.ESC+ae;else if(pe.keyCode>=65&&pe.keyCode<=90){var he=pe.ctrlKey?pe.keyCode-64:pe.keyCode+32;de.key=ge.C0.ESC+String.fromCharCode(he)}}else pe.keyCode>=65&&pe.keyCode<=90?de.key=String.fromCharCode(pe.keyCode-64):pe.keyCode===32?de.key=ge.C0.NUL:pe.keyCode>=51&&pe.keyCode<=55?de.key=String.fromCharCode(pe.keyCode-51+27):pe.keyCode===56?de.key=ge.C0.DEL:pe.keyCode===219?de.key=ge.C0.ESC:pe.keyCode===220?de.key=ge.C0.FS:pe.keyCode===221&&(de.key=ge.C0.GS)}return de}},function(Ke,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)}),pe=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),oe=ee(0),de=ee(2),le=ee(32),me=ee(7),ae=ee(1),he=ee(5),ie=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 oe.EventEmitter,se._onRender=new oe.EventEmitter,se._onRefreshRequest=new oe.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=pe([Se(3,ae.IOptionsService),Se(4,he.ICharSizeService),Se(5,ae.IBufferService)],a)}(de.Disposable);te.RenderService=ie},function(Ke,te,ee){"use strict";var ge=this&&this.__decorate||function(de,le,me,ae){var he,ie=arguments.length,ne=ie<3?le:ae===null?ae=Object.getOwnPropertyDescriptor(le,me):ae;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ne=Reflect.decorate(de,le,me,ae);else for(var a=de.length-1;a>=0;a--)(he=de[a])&&(ne=(ie<3?he(ne):ie>3?he(le,me,ne):he(le,me))||ne);return ie>3&&ne&&Object.defineProperty(le,me,ne),ne},be=this&&this.__param||function(de,le){return function(me,ae){le(me,ae,de)}};Object.defineProperty(te,"__esModule",{value:!0}),te.CharSizeService=void 0;var pe=ee(1),Se=ee(0),fe=function(){function de(le,me,ae){this._optionsService=ae,this.width=0,this.height=0,this._onCharSizeChange=new Se.EventEmitter,this._measureStrategy=new oe(le,me,this._optionsService)}return Object.defineProperty(de.prototype,"hasValidSize",{get:function(){return this.width>0&&this.height>0},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onCharSizeChange",{get:function(){return this._onCharSizeChange.event},enumerable:!1,configurable:!0}),de.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())},de=ge([be(2,pe.IOptionsService)],de)}();te.CharSizeService=fe;var oe=function(){function de(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 de.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},de}()},function(Ke,te,ee){"use strict";var ge=this&&this.__decorate||function(oe,de,le,me){var ae,he=arguments.length,ie=he<3?de:me===null?me=Object.getOwnPropertyDescriptor(de,le):me;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ie=Reflect.decorate(oe,de,le,me);else for(var ne=oe.length-1;ne>=0;ne--)(ae=oe[ne])&&(ie=(he<3?ae(ie):he>3?ae(de,le,ie):ae(de,le))||ie);return he>3&&ie&&Object.defineProperty(de,le,ie),ie},be=this&&this.__param||function(oe,de){return function(le,me){de(le,me,oe)}};Object.defineProperty(te,"__esModule",{value:!0}),te.MouseService=void 0;var pe=ee(5),Se=ee(30),fe=function(){function oe(de,le){this._renderService=de,this._charSizeService=le}return oe.prototype.getCoords=function(de,le,me,ae,he){return Se.getCoords(de,le,me,ae,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,he)},oe.prototype.getRawByteCoords=function(de,le,me,ae){var he=this.getCoords(de,le,me,ae);return Se.getRawByteCoords(he)},oe=ge([be(0,pe.IRenderService),be(1,pe.ICharSizeService)],oe)}();te.MouseService=fe},function(Ke,te,ee){"use strict";var ge,be=this&&this.__extends||(ge=function(ae,he){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ie,ne){ie.__proto__=ne}||function(ie,ne){for(var a in ne)ne.hasOwnProperty(a)&&(ie[a]=ne[a])})(ae,he)},function(ae,he){function ie(){this.constructor=ae}ge(ae,he),ae.prototype=he===null?Object.create(he):(ie.prototype=he.prototype,new ie)}),pe=this&&this.__decorate||function(ae,he,ie,ne){var a,y=arguments.length,E=y<3?he:ne===null?ne=Object.getOwnPropertyDescriptor(he,ie):ne;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(ae,he,ie,ne);else for(var b=ae.length-1;b>=0;b--)(a=ae[b])&&(E=(y<3?a(E):y>3?a(he,ie,E):a(he,ie))||E);return y>3&&E&&Object.defineProperty(he,ie,E),E},Se=this&&this.__param||function(ae,he){return function(ie,ne){he(ie,ne,ae)}};Object.defineProperty(te,"__esModule",{value:!0}),te.Linkifier2=void 0;var fe=ee(1),oe=ee(0),de=ee(2),le=ee(7),me=function(ae){function he(ie){var ne=ae.call(this)||this;return ne._bufferService=ie,ne._linkProviders=[],ne._linkCacheDisposables=[],ne._isMouseOut=!0,ne._activeLine=-1,ne._onShowLinkUnderline=ne.register(new oe.EventEmitter),ne._onHideLinkUnderline=ne.register(new oe.EventEmitter),ne.register(de.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(ie){var ne=this;return this._linkProviders.push(ie),{dispose:function(){var a=ne._linkProviders.indexOf(ie);a!==-1&&ne._linkProviders.splice(a,1)}}},he.prototype.attachToDom=function(ie,ne,a){var y=this;this._element=ie,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(ie){if(this._lastMouseEvent=ie,this._element&&this._mouseService){var ne=this._positionFromMouseEvent(ie,this._element,this._mouseService);if(ne){this._isMouseOut=!1;for(var a=ie.composedPath(),y=0;yie?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(ie,ne,a){var y,E=this;if(!this._activeProviderReplies)return a;for(var b=this._activeProviderReplies.get(ie),x=!1,z=0;z=ie&&this._currentLink.link.range.end.y<=ne)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,de.disposeArray(this._linkCacheDisposables))},he.prototype._handleNewLink=function(ie){var ne=this;if(this._element&&this._lastMouseEvent&&this._mouseService){var a=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);a&&this._linkAtPosition(ie.link,a)&&(this._currentLink=ie,this._currentLink.state={decorations:{underline:ie.link.decorations===void 0||ie.link.decorations.underline,pointerCursor:ie.link.decorations===void 0||ie.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,ie.link,this._lastMouseEvent),ie.link.decorations={},Object.defineProperties(ie.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(ie.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(ie,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&&ie.classList.add("xterm-cursor-pointer")),ne.hover&&ne.hover(a,ne.text)},he.prototype._fireUnderlineEvent=function(ie,ne){var a=ie.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(ie,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&&ie.classList.remove("xterm-cursor-pointer")),ne.leave&&ne.leave(a,ne.text)},he.prototype._linkAtPosition=function(ie,ne){var a=ie.range.start.y===ie.range.end.y,y=ie.range.start.yne.y;return(a&&ie.range.start.x<=ne.x&&ie.range.end.x>=ne.x||y&&ie.range.end.x>=ne.x||E&&ie.range.start.x<=ne.x||y&&E)&&ie.range.start.y<=ne.y&&ie.range.end.y>=ne.y},he.prototype._positionFromMouseEvent=function(ie,ne,a){var y=a.getCoords(ie,ne,this._bufferService.cols,this._bufferService.rows);if(y)return{x:y[0],y:y[1]+this._bufferService.buffer.ydisp}},he.prototype._createLinkUnderlineEvent=function(ie,ne,a,y,E){return{x1:ie,y1:ne,x2:a,y2:y,cols:this._bufferService.cols,fg:E}},he=pe([Se(0,fe.IBufferService)],he)}(de.Disposable);te.Linkifier2=me},function(Ke,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.CoreBrowserService=void 0;var ge=function(){function be(pe){this._textarea=pe}return Object.defineProperty(be.prototype,"isFocused",{get:function(){return document.activeElement===this._textarea&&document.hasFocus()},enumerable:!1,configurable:!0}),be}();te.CoreBrowserService=ge},function(Ke,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 pe=ee(2),Se=ee(1),fe=ee(66),oe=ee(67),de=ee(68),le=ee(74),me=ee(75),ae=ee(0),he=ee(76),ie=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(de.BufferService)),ce._instantiationService.setService(Se.IBufferService,ce._bufferService),ce._logService=ce._instantiationService.createInstance(oe.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(ie.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,de.MINIMUM_COLS),ce=Math.max(ce,de.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;_e0?ae[0].index:le.length;if(le.length!==E)throw new Error("[createInstance] First service dependency of "+de.name+" at position "+(E+1)+" conflicts with "+le.length+" static arguments");return new(de.bind.apply(de,ge([void 0],ge(le,he))))},oe}();te.InstantiationService=fe},function(Ke,te,ee){"use strict";var ge=this&&this.__decorate||function(le,me,ae,he){var ie,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--)(ie=le[y])&&(a=(ne<3?ie(a):ne>3?ie(me,ae,a):ie(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)}},pe=this&&this.__spreadArrays||function(){for(var le=0,me=0,ae=arguments.length;me=0;b--)(a=ae[b])&&(E=(y<3?a(E):y>3?a(he,ie,E):a(he,ie))||E);return y>3&&E&&Object.defineProperty(he,ie,E),E},Se=this&&this.__param||function(ae,he){return function(ie,ne){he(ie,ne,ae)}};Object.defineProperty(te,"__esModule",{value:!0}),te.BufferService=te.MINIMUM_ROWS=te.MINIMUM_COLS=void 0;var fe=ee(1),oe=ee(69),de=ee(0),le=ee(2);te.MINIMUM_COLS=2,te.MINIMUM_ROWS=1;var me=function(ae){function he(ie){var ne=ae.call(this)||this;return ne._optionsService=ie,ne.isUserScrolling=!1,ne._onResize=new de.EventEmitter,ne.cols=Math.max(ie.options.cols,te.MINIMUM_COLS),ne.rows=Math.max(ie.options.rows,te.MINIMUM_ROWS),ne.buffers=new oe.BufferSet(ie,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(ie,ne){this.cols=ie,this.rows=ne,this.buffers.resize(ie,ne),this.buffers.setupTabStops(this.cols),this._onResize.fire({cols:ie,rows:ne})},he.prototype.reset=function(){this.buffers.dispose(),this.buffers=new oe.BufferSet(this._optionsService,this),this.isUserScrolling=!1},he=pe([Se(0,fe.IOptionsService)],he)}(le.Disposable);te.BufferService=me},function(Ke,te,ee){"use strict";var ge,be=this&&this.__extends||(ge=function(oe,de){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])})(oe,de)},function(oe,de){function le(){this.constructor=oe}ge(oe,de),oe.prototype=de===null?Object.create(de):(le.prototype=de.prototype,new le)});Object.defineProperty(te,"__esModule",{value:!0}),te.BufferSet=void 0;var pe=ee(70),Se=ee(0),fe=function(oe){function de(le,me){var ae=oe.call(this)||this;return ae._onBufferActivate=ae.register(new Se.EventEmitter),ae._normal=new pe.Buffer(!0,le,me),ae._normal.fillViewportRows(),ae._alt=new pe.Buffer(!1,le,me),ae._activeBuffer=ae._normal,ae.setupTabStops(),ae}return be(de,oe),Object.defineProperty(de.prototype,"onBufferActivate",{get:function(){return this._onBufferActivate.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"alt",{get:function(){return this._alt},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"active",{get:function(){return this._activeBuffer},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"normal",{get:function(){return this._normal},enumerable:!1,configurable:!0}),de.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}))},de.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}))},de.prototype.resize=function(le,me){this._normal.resize(le,me),this._alt.resize(le,me)},de.prototype.setupTabStops=function(le){this._normal.setupTabStops(le),this._alt.setupTabStops(le)},de}(ee(2).Disposable);te.BufferSet=fe},function(Ke,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),pe=ee(4),Se=ee(3),fe=ee(72),oe=ee(73),de=ee(20),le=ee(6);te.MAX_BUFFER_SIZE=4294967295;var me=function(){function he(ie,ne,a){this._hasScrollback=ie,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=de.DEFAULT_CHARSET,this.markers=[],this._nullCell=pe.CellData.fromCharData([0,Se.NULL_CELL_CHAR,Se.NULL_CELL_WIDTH,Se.NULL_CELL_CODE]),this._whitespaceCell=pe.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(ie){return ie?(this._nullCell.fg=ie.fg,this._nullCell.bg=ie.bg,this._nullCell.extended=ie.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new le.ExtendedAttrs),this._nullCell},he.prototype.getWhitespaceCell=function(ie){return ie?(this._whitespaceCell.fg=ie.fg,this._whitespaceCell.bg=ie.bg,this._whitespaceCell.extended=ie.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new le.ExtendedAttrs),this._whitespaceCell},he.prototype.getBlankLine=function(ie,ne){return new be.BufferLine(this._bufferService.cols,this.getNullCell(ie),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 ie=this.ybase+this.y-this.ydisp;return ie>=0&&iete.MAX_BUFFER_SIZE?te.MAX_BUFFER_SIZE:ne},he.prototype.fillViewportRows=function(ie){if(this.lines.length===0){ie===void 0&&(ie=be.DEFAULT_ATTR_DATA);for(var ne=this._rows;ne--;)this.lines.push(this.getBlankLine(ie))}},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(ie,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._cols0&&this.lines.length<=this.ybase+this.y+b+1?(this.ybase--,b++,this.ydisp>0&&this.ydisp--):this.lines.push(new be.BufferLine(ie,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(y0&&(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,ie-1),this.y=Math.min(this.y,ne-1),b&&(this.y+=b),this.savedX=Math.min(this.savedX,ie-1),this.scrollTop=0}if(this.scrollBottom=ne-1,this._isReflowEnabled&&(this._reflow(ie,ne),this._cols>ie))for(E=0;Ethis._cols?this._reflowLarger(ie,ne):this._reflowSmaller(ie,ne))},he.prototype._reflowLarger=function(ie,ne){var a=fe.reflowLargerGetLinesToRemove(this.lines,this._cols,ie,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(ie,ne,y.countRemoved)}},he.prototype._reflowLargerAdjustViewport=function(ie,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=0;b--){var x=this.lines.get(b);if(!(!x||!x.isWrapped&&x.getTrimmedLength()<=ie)){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&&re0&&(y.push({start:b+z.length+E,newLines:De}),E+=De.length),z.push.apply(z,De);var Le=ce.length-1,ht=ce[Le];ht===0&&(ht=ce[--Le]);for(var Ye=z.length-_e-1,vt=se;Ye>=0;){var we=Math.min(vt,ht);if(z[Le].copyCellsFrom(z[Ye],vt-we,ht-we,we,!0),(ht-=we)===0&&(ht=ce[--Le]),(vt-=we)===0){Ye--;var Fe=Math.max(Ye,0);vt=fe.getWrappedLineTrimmedLength(z,Fe,this._cols)}}for(Ee=0;Ee0;)this.ybase===0?this.y0){var at=[],We=[];for(Ee=0;Ee=0;Ee--)if(Bt&&Bt.start>Pt+rt){for(var Xe=Bt.newLines.length-1;Xe>=0;Xe--)this.lines.set(Ee--,Bt.newLines[Xe]);Ee++,at.push({index:Pt+1,amount:Bt.newLines.length}),rt+=Bt.newLines.length,Bt=y[++At]}else this.lines.set(Ee,We[Pt--]);var Ct=0;for(Ee=at.length-1;Ee>=0;Ee--)at[Ee].index+=Ct,this.lines.onInsertEmitter.fire(at[Ee]),Ct+=at[Ee].amount;var zt=Math.max(0,pt+E-this.lines.maxLength);zt>0&&this.lines.onTrimEmitter.fire(zt)}},he.prototype.stringIndexToBufferIndex=function(ie,ne,a){for(a===void 0&&(a=!1);ne;){var y=this.lines.get(ie);if(!y)return[-1,-1];for(var E=a?y.getTrimmedLength():y.length,b=0;b0&&this.lines.get(ne).isWrapped;)ne--;for(;a+10;);return ie>=this._cols?this._cols-1:ie<0?0:ie},he.prototype.nextStop=function(ie){for(ie==null&&(ie=this.x);!this.tabs[++ie]&&ie=this._cols?this._cols-1:ie<0?0:ie},he.prototype.addMarker=function(ie){var ne=this,a=new oe.Marker(ie);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.liney.index&&(a.line-=y.amount)})),a.register(a.onDispose(function(){return ne._removeMarker(a)})),a},he.prototype._removeMarker=function(ie){this.markers.splice(this.markers.indexOf(ie),1)},he.prototype.iterator=function(ie,ne,a,y,E){return new ae(this,ie,ne,a,y,E)},he}();te.Buffer=me;var ae=function(){function he(ie,ne,a,y,E,b){a===void 0&&(a=0),y===void 0&&(y=ie.lines.length),E===void 0&&(E=0),b===void 0&&(b=0),this._buffer=ie,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._currentthis._endIndex+this._endOverscan&&(ie.last=this._endIndex+this._endOverscan),ie.first=Math.max(ie.first,0),ie.last=Math.min(ie.last,this._buffer.lines.length);for(var ne="",a=ie.first;a<=ie.last;++a)ne+=this._buffer.translateBufferLineToString(a,this._trimRight);return this._current=ie.last+1,{range:ie,content:ne}},he}();te.BufferStringIterator=ae},function(Ke,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.CircularList=void 0;var ge=ee(0),be=function(){function pe(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(pe.prototype,"onDelete",{get:function(){return this.onDeleteEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"onInsert",{get:function(){return this.onInsertEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"onTrim",{get:function(){return this.onTrimEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"maxLength",{get:function(){return this._maxLength},set:function(Se){if(this._maxLength!==Se){for(var fe=new Array(Se),oe=0;oethis._length)for(var fe=this._length;fe=Se;le--)this._array[this._getCyclicIndex(le+oe.length)]=this._array[this._getCyclicIndex(le)];for(le=0;lethis._maxLength){var me=this._length+oe.length-this._maxLength;this._startIndex+=me,this._length=this._maxLength,this.onTrimEmitter.fire(me)}else this._length+=oe.length},pe.prototype.trimStart=function(Se){Se>this._length&&(Se=this._length),this._startIndex+=Se,this._length-=Se,this.onTrimEmitter.fire(Se)},pe.prototype.shiftElements=function(Se,fe,oe){if(!(fe<=0)){if(Se<0||Se>=this._length)throw new Error("start argument out of range");if(Se+oe<0)throw new Error("Cannot shift elements in list beyond index 0");if(oe>0){for(var de=fe-1;de>=0;de--)this.set(Se+de+oe,this.get(Se+de));var le=Se+fe+oe-this._length;if(le>0)for(this._length+=le;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(de=0;de=le&&fe0&&(se>ie||he[se].getTrimmedLength()===0);se--)re++;re>0&&(de.push(le+he.length-re),de.push(re)),le+=he.length-1}}}return de},te.reflowLargerCreateNewLayout=function(be,pe){for(var Se=[],fe=0,oe=pe[fe],de=0,le=0;leae&&(de-=ae,le++);var he=be[le].getWidth(de-1)===2;he&&de--;var ie=he?Se-1:Se;fe.push(ie),me+=ie}return fe},te.getWrappedLineTrimmedLength=ge},function(Ke,te,ee){"use strict";var ge,be=this&&this.__extends||(ge=function(fe,oe){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(de,le){de.__proto__=le}||function(de,le){for(var me in le)le.hasOwnProperty(me)&&(de[me]=le[me])})(fe,oe)},function(fe,oe){function de(){this.constructor=fe}ge(fe,oe),fe.prototype=oe===null?Object.create(oe):(de.prototype=oe.prototype,new de)});Object.defineProperty(te,"__esModule",{value:!0}),te.Marker=void 0;var pe=ee(0),Se=function(fe){function oe(de){var le=fe.call(this)||this;return le.line=de,le._id=oe._nextId++,le.isDisposed=!1,le._onDispose=new pe.EventEmitter,le}return be(oe,fe),Object.defineProperty(oe.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"onDispose",{get:function(){return this._onDispose.event},enumerable:!1,configurable:!0}),oe.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire())},oe._nextId=1,oe}(ee(2).Disposable);te.Marker=Se},function(Ke,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),pe=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 oe(de){this._onOptionChange=new ge.EventEmitter,this.options=pe.clone(te.DEFAULT_OPTIONS);for(var le=0,me=Object.keys(de);le=0;z--)(E=ie[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(ie,ne){return function(a,y){ne(a,y,ie)}};Object.defineProperty(te,"__esModule",{value:!0}),te.CoreService=void 0;var fe=ee(1),oe=ee(0),de=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(ie){function ne(a,y,E,b){var x=ie.call(this)||this;return x._bufferService=y,x._logService=E,x._optionsService=b,x.isCursorInitialized=!1,x.isCursorHidden=!1,x._onData=x.register(new oe.EventEmitter),x._onUserInput=x.register(new oe.EventEmitter),x._onBinary=x.register(new oe.EventEmitter),x._scrollToBottom=a,x.register({dispose:function(){return x._scrollToBottom=void 0}}),x.modes=de.clone(me),x.decPrivateModes=de.clone(ae),x}return be(ne,ie),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=de.clone(me),this.decPrivateModes=de.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=pe([Se(1,fe.IBufferService),Se(2,fe.ILogService),Se(3,fe.IOptionsService)],ne)}(le.Disposable);te.CoreService=he},function(Ke,te,ee){"use strict";var ge=this&&this.__decorate||function(ae,he,ie,ne){var a,y=arguments.length,E=y<3?he:ne===null?ne=Object.getOwnPropertyDescriptor(he,ie):ne;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(ae,he,ie,ne);else for(var b=ae.length-1;b>=0;b--)(a=ae[b])&&(E=(y<3?a(E):y>3?a(he,ie,E):a(he,ie))||E);return y>3&&E&&Object.defineProperty(he,ie,E),E},be=this&&this.__param||function(ae,he){return function(ie,ne){he(ie,ne,ae)}};Object.defineProperty(te,"__esModule",{value:!0}),te.CoreMouseService=void 0;var pe=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 oe(ae,he){var ie=(ae.ctrl?16:0)|(ae.shift?4:0)|(ae.alt?8:0);return ae.button===4?(ie|=64,ie|=ae.action):(ie|=3&ae.button,4&ae.button&&(ie|=64),8&ae.button&&(ie|=128),ae.action===32?ie|=32:ae.action!==0||he||(ie|=3)),ie}var de=String.fromCharCode,le={DEFAULT:function(ae){var he=[oe(ae,!1)+32,ae.col+32,ae.row+32];return he[0]>255||he[1]>255||he[2]>255?"":"\x1B[M"+de(he[0])+de(he[1])+de(he[2])},SGR:function(ae){var he=ae.action===0&&ae.button!==4?"m":"M";return"\x1B[<"+oe(ae,!0)+";"+ae.col+";"+ae.row+he}},me=function(){function ae(he,ie){this._bufferService=he,this._coreService=ie,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=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 ie=this._encodings[this._activeEncoding](he);return ie&&(this._activeEncoding==="DEFAULT"?this._coreService.triggerBinaryEvent(ie):this._coreService.triggerDataEvent(ie,!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,ie){return he.col===ie.col&&he.row===ie.row&&he.button===ie.button&&he.action===ie.action&&he.ctrl===ie.ctrl&&he.alt===ie.alt&&he.shift===ie.shift},ae=ge([be(0,pe.IBufferService),be(1,pe.ICoreService)],ae)}();te.CoreMouseService=me},function(Ke,te,ee){"use strict";var ge=this&&this.__decorate||function(fe,oe,de,le){var me,ae=arguments.length,he=ae<3?oe:le===null?le=Object.getOwnPropertyDescriptor(oe,de):le;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")he=Reflect.decorate(fe,oe,de,le);else for(var ie=fe.length-1;ie>=0;ie--)(me=fe[ie])&&(he=(ae<3?me(he):ae>3?me(oe,de,he):me(oe,de))||he);return ae>3&&he&&Object.defineProperty(oe,de,he),he},be=this&&this.__param||function(fe,oe){return function(de,le){oe(de,le,fe)}};Object.defineProperty(te,"__esModule",{value:!0}),te.DirtyRowService=void 0;var pe=ee(1),Se=function(){function fe(oe){this._bufferService=oe,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(oe){oethis._end&&(this._end=oe)},fe.prototype.markRangeDirty=function(oe,de){if(oe>de){var le=oe;oe=de,de=le}oethis._end&&(this._end=de)},fe.prototype.markAllDirty=function(){this.markRangeDirty(0,this._bufferService.rows-1)},fe=ge([be(0,pe.IBufferService)],fe)}();te.DirtyRowService=Se},function(Ke,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.UnicodeService=void 0;var ge=ee(0),be=ee(79),pe=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 oe=0,de=fe.length,le=0;le=de)return oe+this.wcwidth(me);var ae=fe.charCodeAt(le);56320<=ae&&ae<=57343?me=1024*(me-55296)+ae-56320+65536:oe+=this.wcwidth(ae)}oe+=this.wcwidth(me)}return oe},Se}();te.UnicodeService=pe},function(Ke,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.UnicodeV6=void 0;var ge,be=ee(15),pe=[[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 oe(){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 de=0;deme[ie][1])return!1;for(;ie>=he;)if(le>me[ae=he+ie>>1][1])he=ae+1;else{if(!(le=131072&&de<=196605||de>=196608&&de<=262141?2:1},oe}();te.UnicodeV6=fe},function(Ke,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(pe){this.glevel=pe,this.charset=this._charsets[pe]},be.prototype.setgCharset=function(pe,Se){this._charsets[pe]=Se,this.glevel===pe&&(this.charset=Se)},be}();te.CharsetService=ge},function(Ke,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.updateWindowsModeWrappedState=void 0;var ge=ee(3);te.updateWindowsModeWrappedState=function(be){var pe=be.buffer.lines.get(be.buffer.ybase+be.buffer.y-1),Se=pe==null?void 0:pe.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(Ke,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.WriteBuffer=void 0;var ge=function(){function be(pe){this._action=pe,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0}return be.prototype.writeSync=function(pe){if(this._writeBuffer.length){for(var Se=this._bufferOffset;Se5e7)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+=pe.length,this._writeBuffer.push(pe),this._callbacks.push(Se)},be.prototype._innerWrite=function(){for(var pe=this,Se=Date.now();this._writeBuffer.length>this._bufferOffset;){var fe=this._writeBuffer[this._bufferOffset],oe=this._callbacks[this._bufferOffset];if(this._bufferOffset++,this._action(fe),this._pendingData-=fe.length,oe&&oe(),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 pe._innerWrite()},0)):(this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0)},be}();te.WriteBuffer=ge},function(Ke,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 pe=this._addons.length-1;pe>=0;pe--)this._addons[pe].instance.dispose()},be.prototype.loadAddon=function(pe,Se){var fe=this,oe={instance:Se,dispose:Se.dispose,isDisposed:!1};this._addons.push(oe),Se.dispose=function(){return fe._wrappedAddonDispose(oe)},Se.activate(pe)},be.prototype._wrappedAddonDispose=function(pe){if(!pe.isDisposed){for(var Se=-1,fe=0;fe