(self.webpackChunk=self.webpackChunk||[]).push([[6270],{89489:function(Et,dt,ve){"use strict";ve.d(dt,{Z:function(){return ie}});var be=ve(54476),_e=ve(59301),E={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=E,de=ve(7657),se=function(ue,ae){return _e.createElement(de.Z,(0,be.Z)({},ue,{ref:ae,icon:pe}))},ne=_e.forwardRef(se),ie=ne},59477:function(Et,dt,ve){"use strict";ve.d(dt,{Z:function(){return ie}});var be=ve(54476),_e=ve(59301),E={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=E,de=ve(7657),se=function(ue,ae){return _e.createElement(de.Z,(0,be.Z)({},ue,{ref:ae,icon:pe}))},ne=_e.forwardRef(se),ie=ne},26227:function(Et,dt,ve){"use strict";ve.d(dt,{Z:function(){return ie}});var be=ve(54476),_e=ve(59301),E={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},pe=E,de=ve(7657),se=function(ue,ae){return _e.createElement(de.Z,(0,be.Z)({},ue,{ref:ae,icon:pe}))},ne=_e.forwardRef(se),ie=ne},49198:function(Et,dt,ve){"use strict";ve.d(dt,{Z:function(){return ie}});var be=ve(54476),_e=ve(59301),E={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=E,de=ve(7657),se=function(ue,ae){return _e.createElement(de.Z,(0,be.Z)({},ue,{ref:ae,icon:pe}))},ne=_e.forwardRef(se),ie=ne},41464:function(Et,dt,ve){"use strict";ve.d(dt,{Z:function(){return ie}});var be=ve(54476),_e=ve(59301),E={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},pe=E,de=ve(7657),se=function(ue,ae){return _e.createElement(de.Z,(0,be.Z)({},ue,{ref:ae,icon:pe}))},ne=_e.forwardRef(se),ie=ne},87169:function(Et,dt,ve){"use strict";ve.d(dt,{Z:function(){return ie}});var be=ve(54476),_e=ve(59301),E={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=E,de=ve(7657),se=function(ue,ae){return _e.createElement(de.Z,(0,be.Z)({},ue,{ref:ae,icon:pe}))},ne=_e.forwardRef(se),ie=ne},52671:function(Et,dt,ve){"use strict";ve.d(dt,{Z:function(){return ie}});var be=ve(54476),_e=ve(59301),E={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=E,de=ve(7657),se=function(ue,ae){return _e.createElement(de.Z,(0,be.Z)({},ue,{ref:ae,icon:pe}))},ne=_e.forwardRef(se),ie=ne},8657:function(Et,dt,ve){"use strict";ve.d(dt,{Z:function(){return ie}});var be=ve(54476),_e=ve(59301),E={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=E,de=ve(7657),se=function(ue,ae){return _e.createElement(de.Z,(0,be.Z)({},ue,{ref:ae,icon:pe}))},ne=_e.forwardRef(se),ie=ne},56082:function(Et,dt,ve){"use strict";ve.d(dt,{Z:function(){return ie}});var be=ve(54476),_e=ve(59301),E={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=E,de=ve(7657),se=function(ue,ae){return _e.createElement(de.Z,(0,be.Z)({},ue,{ref:ae,icon:pe}))},ne=_e.forwardRef(se),ie=ne},33853:function(Et,dt,ve){"use strict";ve.d(dt,{Z:function(){return ie}});var be=ve(54476),_e=ve(59301),E={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=E,de=ve(7657),se=function(ue,ae){return _e.createElement(de.Z,(0,be.Z)({},ue,{ref:ae,icon:pe}))},ne=_e.forwardRef(se),ie=ne},15075:function(Et,dt,ve){"use strict";ve.d(dt,{Z:function(){return ie}});var be=ve(54476),_e=ve(59301),E={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=E,de=ve(7657),se=function(ue,ae){return _e.createElement(de.Z,(0,be.Z)({},ue,{ref:ae,icon:pe}))},ne=_e.forwardRef(se),ie=ne},43531:function(Et,dt,ve){"use strict";ve.d(dt,{Z:function(){return ie}});var be=ve(54476),_e=ve(59301),E={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=E,de=ve(7657),se=function(ue,ae){return _e.createElement(de.Z,(0,be.Z)({},ue,{ref:ae,icon:pe}))},ne=_e.forwardRef(se),ie=ne},38819:function(Et,dt,ve){"use strict";ve.d(dt,{Z:function(){return ie}});var be=ve(54476),_e=ve(59301),E={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=E,de=ve(7657),se=function(ue,ae){return _e.createElement(de.Z,(0,be.Z)({},ue,{ref:ae,icon:pe}))},ne=_e.forwardRef(se),ie=ne},96408:function(Et,dt){"use strict";dt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},25492:function(Et,dt){"use strict";dt.Z={footer:"footer___bruwa",whiteFooter:"whiteFooter___mR7kn",error:"error___KO0Jg",case:"case___L0pNc","resize-y-bar":"resize-y-bar___NK0gI",unfoldBtn:"unfoldBtn___aMmZw",caseHead:"caseHead___EuMPr",dot:"dot___Iky9k",text:"text___lMSx6",pass:"pass___XjijC",noPass:"noPass___JxpWk",btns:"btns___FPIaK",result:"result___oRj1h",title:"title___IhMSa",left:"left___XlC98",leftNode:"leftNode___NGHgx",right:"right____fIu_",node:"node___MwdH7",elseNode:"elseNode___WjFIg",nameWrap:"nameWrap___bEdbD",scroll:"scroll___ylWYt",scrollBox:"scrollBox___hWkc9",action:"action___xBwDi",whiteCase:"whiteCase___AZiDR",disabled:"disabled___lWQU2",codeHead:"codeHead___l8q5R",navWrap:"navWrap___xdWQe",nav:"nav___JKPVX",active:"active___DTAtT",whiteCodeHead:"whiteCodeHead___wDOny",header:"header___VjNh9",timepiece:"timepiece___yuqJC",btn_edit:"btn_edit___ozzux",whiteHeader:"whiteHeader___REV3m",djs:"djs___v0Ru7",myProblems:"myProblems___DKSbs",whiteMyProblems:"whiteMyProblems___k0QS3",fullMask:"fullMask___QZH1M"}},829:function(){"use strict"},81747:function(Et,dt,ve){"use strict";var be=ve(59301),_e=Object.defineProperty,E=Object.getOwnPropertySymbols,pe=Object.prototype.hasOwnProperty,de=Object.prototype.propertyIsEnumerable,se=(ce,ue,ae)=>ue in ce?_e(ce,ue,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[ue]=ae,ne=(ce,ue)=>{for(var ae in ue||(ue={}))pe.call(ue,ae)&&se(ce,ae,ue[ae]);if(E)for(var ae of E(ue))de.call(ue,ae)&&se(ce,ae,ue[ae]);return ce};const ie=ce=>React.createElement("svg",ne({width:30,height:30,xmlns:"http://www.w3.org/2000/svg"},ce),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"})));dt.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBmaWxsLW9wYWNpdHk9Ii4wMSIgZmlsbD0iI0ZGRiIgZD0iTTAgMGgzMHYzMEgweiIvPjxwYXRoIGQ9Ik02Ljg2NiAyNi45MjhoLTEuMjhhMi41NjEgMi41NjEgMCAwIDEtMi41NjItMi41NjFWNS41ODVhMi41NjEgMi41NjEgMCAwIDEgMi41NjEtMi41NmgxLjI4djQuMjY4YTIuNTYxIDIuNTYxIDAgMCAwIDIuNTYyIDIuNTZoMy44NDJhMi41NjEgMi41NjEgMCAwIDAgMi41Ni0yLjU2VjMuMDI0aDIuOTE1bDguMTg0IDguMTg0djEzLjE1OWEyLjU2MSAyLjU2MSAwIDAgMS0yLjU2MSAyLjU2MWgtMS4yOHYtNS45NzZjMC0uOTQzLS43NjUtMS43MDctMS43MDgtMS43MDdIOC41NzNjLS45NDMgMC0xLjcwNy43NjQtMS43MDcgMS43MDd2NS45NzZaIiBmaWxsPSIjQjZEMEZDIi8+PHBhdGggZD0iTTguNTczIDMuMDI0aDUuNTV2NC4yNjlhLjg1NC44NTQgMCAwIDEtLjg1NC44NTNIOS40MjdhLjg1NC44NTQgMCAwIDEtLjg1NC0uODUzVjMuMDI0Wk04LjU3MyAyNi45Mjh2LTUuOTc2SDIxLjM4djUuOTc2eiIgZmlsbD0iIzE4OTBGRiIvPjwvZz48L3N2Zz4="},51976:function(Et,dt,ve){"use strict";var be=ve(59301),_e=Object.defineProperty,E=Object.getOwnPropertySymbols,pe=Object.prototype.hasOwnProperty,de=Object.prototype.propertyIsEnumerable,se=(ce,ue,ae)=>ue in ce?_e(ce,ue,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ce[ue]=ae,ne=(ce,ue)=>{for(var ae in ue||(ue={}))pe.call(ue,ae)&&se(ce,ae,ue[ae]);if(E)for(var ae of E(ue))de.call(ue,ae)&&se(ce,ae,ue[ae]);return ce};const ie=ce=>React.createElement("svg",ne({width:30,height:30,xmlns:"http://www.w3.org/2000/svg"},ce),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"})));dt.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNMzAgMTVjMCA4LjI4NC02LjcxNiAxNS0xNSAxNS04LjI4NCAwLTE1LTYuNzE2LTE1LTE1QzAgNi43MTYgNi43MTYgMCAxNSAwYzguMjg0IDAgMTUgNi43MTYgMTUgMTVaIiBmaWxsPSIjQkFGRkYwIi8+PHBhdGggZD0iTTI1LjUgMTVjMCA1LjgtNC43IDEwLjUtMTAuNSAxMC41UzQuNSAyMC44IDQuNSAxNSA5LjIgNC41IDE1IDQuNSAyNS41IDkuMiAyNS41IDE1WiIgZmlsbD0iIzQ0RDdCNiIvPjxwYXRoIGQ9Ik0xMy41IDlhMS41IDEuNSAwIDAgMSAxLjUgMS41djQuMzc5bDMuNTYgMy41NmExLjUgMS41IDAgMCAxLTIuMTIgMi4xMjJsLTQtNEExLjUgMS41IDAgMCAxIDEyIDE1LjV2LTVBMS41IDEuNSAwIDAgMSAxMy41IDlaIiBmaWxsPSIjRkZGIi8+PC9nPjwvc3ZnPg=="},25863:function(){"use strict";function Et(ee,a,y,x){y===void 0&&(y=0),x===void 0&&(x=1/0),this._name=ee,this._defaultValue=a,this._minimum=y,this._maximum=x}Object.defineProperty(Et.prototype,"name",{get:function(){return this._name},set:function(ee){if(typeof ee!="string"||ee==="")throw new Error("Shape name must be a valid string.");this._name=ee}}),Object.defineProperty(Et.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(ee){if(typeof ee!="number"||isNaN(ee))throw new Error("The default value must be a real number, not: "+ee);this._defaultValue=ee}}),Object.defineProperty(Et.prototype,"minimum",{get:function(){return this._minimum},set:function(ee){if(typeof ee!="number"||isNaN(ee))throw new Error("Minimum must be a real number, not: "+ee);this._minimum=ee}}),Object.defineProperty(Et.prototype,"maximum",{get:function(){return this._maximum},set:function(ee){if(typeof ee!="number"||isNaN(ee))throw new Error("Maximum must be a real number, not: "+ee);this._maximum=ee}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(ee,a){var y=go.Shape._FigureParameters[ee];return y?y[a]:null},go.Shape.setFigureParameter=function(ee,a,y){if(!(y instanceof Et))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 x=go.Shape._FigureParameters[ee];x||(x=[],go.Shape._FigureParameters[ee]=x),x[a]=y};var dt=[];function ve(ee,a){var y=dt.pop();return y===void 0?new go.Point(ee,a):(y.x=ee,y.y=a,y)}function be(){var ee=dt.pop();return ee===void 0?new go.Point:ee}function _e(ee){dt.push(ee)}function E(ee,a,y,x,b,z,te,le,fe){fe||(fe=new go.Point);var ge=ee-y,me=b-te,he=NaN,Se=NaN;if(ge===0)if(me===0)ee===y&&(he=ee,Se=a);else{var ye=(z-le)/me,Pe=z-ye*b;he=ee,Se=ye*he+Pe}else if(me===0){var we=(a-x)/ge,De=a-we*ee;he=b,Se=we*he+De}else{var we=(a-x)/ge,ye=(z-le)/me,De=a-we*ee,Pe=z-ye*b;he=(Pe-De)/(we-ye),Se=we*he+De}return fe.x=he,fe.y=Se,fe}function pe(ee,a,y,x,b,z,te,le,fe,ge,me,he,Se,ye){var Pe=1-fe,we=fe,De=ee*Pe+y*we,Ee=a*Pe+x*we,Ae=y*Pe+b*we,Ce=x*Pe+z*we,je=b*Pe+te*we,Me=z*Pe+le*we,Ge=De*Pe+Ae*we,Fe=Ee*Pe+Ce*we,Je=Ae*Pe+je*we,qe=Ce*Pe+Me*we,Xe=Ge*Pe+Je*we,Ve=Fe*Pe+qe*we;ge.x=De,ge.y=Ee,me.x=Ge,me.y=Fe,he.x=Xe,he.y=Ve,Se.x=Je,Se.y=qe,ye.x=je,ye.y=Me}var de=new go.Spot(.156,.156),se=new go.Spot(.844,.844),ne=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Et("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(ee,a,y){var x=ee?ee.parameter1:NaN;(isNaN(x)||x<0)&&(x=5),x=Math.min(x,a/3),x=Math.min(x,y/3);var b=x*ne,z=new go.Geometry().add(new go.PathFigure(x,0,!0).add(new go.PathSegment(go.PathSegment.Line,a-x,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,x,a-b,0,a,b)).add(new go.PathSegment(go.PathSegment.Line,a,y-x)).add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a,y-b,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,x,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y-x,b,y,0,y-b)).add(new go.PathSegment(go.PathSegment.Line,0,x)).add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,b,b,0).close()));return b>1&&(z.spot1=new go.Spot(0,0,b,b),z.spot2=new go.Spot(1,1,-b,-b)),z}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(ee,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(ee,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(ee,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(ee,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(ee,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(ee,a,y){var x=new go.Geometry(go.Geometry.Line);return x.startX=0,x.startY=y/2,x.endX=a,x.endY=y/2,x}),go.Shape.defineFigureGenerator("LineV",function(ee,a,y){var x=new go.Geometry(go.Geometry.Line);return x.startX=a/2,x.startY=0,x.endX=a/2,x.endY=y,x}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(ee,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(ee,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(ee,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(ee,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(ee,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(ee,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(ee,a,y){var x=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(x*a,(1-x)*y,!1).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,x*y)).add(new go.PathSegment(go.PathSegment.Move,x*a,x*y)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,(1-x)*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(ee,a,y){var x=a/2,b=new go.Geometry().add(new go.PathFigure(a,a/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,x,x,x,x).close()));return b.spot1=de,b.spot2=se,b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Line1",function(ee,a,y){var x=new go.Geometry(go.Geometry.Line);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}),go.Shape.defineFigureGenerator("Line2",function(ee,a,y){var x=new go.Geometry(go.Geometry.Line);return x.startX=a,x.startY=0,x.endX=0,x.endY=y,x}),go.Shape.defineFigureGenerator("Curve1",function(ee,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,ne*a,0,a,(1-ne)*y)))}),go.Shape.defineFigureGenerator("Curve2",function(ee,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,0,ne*y,(1-ne)*a,y)))}),go.Shape.defineFigureGenerator("Curve3",function(ee,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,ne*y,ne*a,y)))}),go.Shape.defineFigureGenerator("Curve4",function(ee,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,(1-ne)*a,0,0,(1-ne)*y)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(ee,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(ee,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(ee,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(ee,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 Et("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(ee,a,y){var x=ee?ee.parameter1:NaN;isNaN(x)?x=.1:x<-1?x=-1:x>1&&(x=1);var b=Math.abs(x)*a;if(x===0){var z=new go.Geometry(go.Geometry.Rectangle);return z.startX=0,z.startY=0,z.endX=a,z.endY=y,z}else{var z=new go.Geometry;return x>0?z.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())):z.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&&(x=a);var b=Math.abs(x);if(x===0){var z=new go.Geometry(go.Geometry.Rectangle);return z.startX=0,z.startY=0,z.endX=a,z.endY=y,z}else{var z=new go.Geometry;return x>0?z.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())):z.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&&(x=.5);var b=Math.abs(x)*a;if(x===0){var z=new go.Geometry(go.Geometry.Rectangle);return z.startX=0,z.startY=0,z.endX=a,z.endY=y,z}else{var z=new go.Geometry;return x>0?z.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())):z.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&&(x=a/2);var b=Math.abs(x);if(x===0){var z=new go.Geometry(go.Geometry.Rectangle);return z.startX=0,z.startY=0,z.endX=a,z.endY=y,z}else{var z=new go.Geometry;return x>0?z.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())):z.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&&(x=a/2);var b=Math.abs(x);if(x===0){var z=new go.Geometry(go.Geometry.Rectangle);return z.startX=0,z.startY=0,z.endX=a,z.endY=y,z}else{var z=new go.Geometry;return x>0?z.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())):z.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&&(te.add(new go.PathSegment(go.PathSegment.Move,a/2+le,a/2)),te.add(new go.PathSegment(go.PathSegment.Arc,0,-360,b,b,le,le).close())),z.spot1=de,z.spot2=se,z.defaultStretch=go.GraphObject.Uniform,z}),go.Shape.defineFigureGenerator("Cloud",function(ee,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(ee,a,y){var x=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(x*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,x*y)).add(new go.PathSegment(go.PathSegment.Line,a,(1-x)*y)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)).add(new go.PathSegment(go.PathSegment.Line,x*a,y)).add(new go.PathSegment(go.PathSegment.Line,0,(1-x)*y)).add(new go.PathSegment(go.PathSegment.Line,0,x*y).close())).setSpots(x/2,x/2,1-x/2,1-x/2)}),go.Shape.setFigureParameter("Pie",0,new Et("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Et("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(ee,a,y){var x=ee?ee.parameter1:NaN,b=ee?ee.parameter2:NaN;isNaN(x)&&(x=0),isNaN(b)&&(b=315);var z=x%360;z<0&&(z+=360);var te=b%360,le=Math.min(a,y)/2;return new go.Geometry().add(new go.PathFigure(le,le).add(new go.PathSegment(go.PathSegment.Arc,z,te,le,le,le,le).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(ee,a,y){var x=ne/Math.SQRT2*.5,b=Math.SQRT2/2,z=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,b*a,z*y,a,(1-x)*y,(b+x)*a,(z+x)*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()))}),go.Shape.setFigureParameter("ThickCross",0,new Et("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(ee,a,y){var x=ee?ee.parameter1:NaN;(isNaN(x)||x<0)&&(x=30);var b=Math.min(x,a)/2,z=a/2,te=y/2;return new go.Geometry().add(new go.PathFigure(z-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,z+b,0)).add(new go.PathSegment(go.PathSegment.Line,z+b,te-b)).add(new go.PathSegment(go.PathSegment.Line,a,te-b)).add(new go.PathSegment(go.PathSegment.Line,a,te+b)).add(new go.PathSegment(go.PathSegment.Line,z+b,te+b)).add(new go.PathSegment(go.PathSegment.Line,z+b,y)).add(new go.PathSegment(go.PathSegment.Line,z-b,y)).add(new go.PathSegment(go.PathSegment.Line,z-b,te+b)).add(new go.PathSegment(go.PathSegment.Line,0,te+b)).add(new go.PathSegment(go.PathSegment.Line,0,te-b)).add(new go.PathSegment(go.PathSegment.Line,z-b,te-b).close()))}),go.Shape.setFigureParameter("ThinCross",0,new Et("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(ee,a,y){var x=ee?ee.parameter1:NaN;(isNaN(x)||x<0)&&(x=10);var b=Math.min(x,a)/2,z=a/2,te=y/2;return new go.Geometry().add(new go.PathFigure(z-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,z+b,0)).add(new go.PathSegment(go.PathSegment.Line,z+b,te-b)).add(new go.PathSegment(go.PathSegment.Line,a,te-b)).add(new go.PathSegment(go.PathSegment.Line,a,te+b)).add(new go.PathSegment(go.PathSegment.Line,z+b,te+b)).add(new go.PathSegment(go.PathSegment.Line,z+b,y)).add(new go.PathSegment(go.PathSegment.Line,z-b,y)).add(new go.PathSegment(go.PathSegment.Line,z-b,te+b)).add(new go.PathSegment(go.PathSegment.Line,0,te+b)).add(new go.PathSegment(go.PathSegment.Line,0,te-b)).add(new go.PathSegment(go.PathSegment.Line,z-b,te-b).close()))}),go.Shape.setFigureParameter("ThickX",0,new Et("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(ee,a,y){var x=ee?ee.parameter1:NaN;if((isNaN(x)||x<0)&&(x=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 z=a/2,te=y/2,le=Math.atan2(y,a),fe=x-Math.min(Math.cos(le)*x/2,z),ge=x-Math.min(Math.sin(le)*x/2,te),b=new go.Geometry,me=new go.PathFigure(fe,0,!0);return b.add(me),me.add(new go.PathSegment(go.PathSegment.Line,z,.2*y)),me.add(new go.PathSegment(go.PathSegment.Line,a-fe,0)),me.add(new go.PathSegment(go.PathSegment.Line,a,ge)),me.add(new go.PathSegment(go.PathSegment.Line,.8*a,te)),me.add(new go.PathSegment(go.PathSegment.Line,a,y-ge)),me.add(new go.PathSegment(go.PathSegment.Line,a-fe,y)),me.add(new go.PathSegment(go.PathSegment.Line,z,.8*y)),me.add(new go.PathSegment(go.PathSegment.Line,fe,y)),me.add(new go.PathSegment(go.PathSegment.Line,0,y-ge)),me.add(new go.PathSegment(go.PathSegment.Line,.2*a,te)),me.add(new go.PathSegment(go.PathSegment.Line,0,ge).close()),b}}),go.Shape.setFigureParameter("ThinX",0,new Et("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(ee,a,y){var x=ee?ee.parameter1:NaN;(isNaN(x)||x<0)&&(x=10);var b=new go.Geometry,z=new go.PathFigure(.1*a,0,!0);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.1*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y).close()),b}),go.Shape.setFigureParameter("SquareIBeam",0,new Et("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(ee,a,y){var x=ee?ee.parameter1:NaN;isNaN(x)&&(x=.2);var b=new go.Geometry,z=new go.PathFigure(0,0,!0);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,x*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+x/2)*a,x*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+x/2)*a,(1-x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,(1-x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.5-x/2)*a,(1-x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.5-x/2)*a,x*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,x*y).close()),b}),go.Shape.setFigureParameter("RoundedIBeam",0,new Et("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(ee,a,y){var x=ee?ee.parameter1:NaN;isNaN(x)&&(x=.5);var b=new go.Geometry,z=new go.PathFigure(0,0,!0);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,y,Math.abs(1-x)*a,.25*y,Math.abs(1-x)*a,.75*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,0,x*a,.75*y,x*a,.25*y).close()),b}),go.Shape.defineFigureGenerator("HalfEllipse",function(ee,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,ne*a,0,a,(.5-ne/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+ne/2)*y,ne*a,y).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(ee,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(ee,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(ee,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(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(.4*a,.6*y,!0);x.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 z=.2,te=.3,le=0,fe=z*ne;return b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+te)*a,(.5+z+le)*y,(.5-z+te)*a,(.5+fe+le)*y,(.5-fe+te)*a,(.5+z+le)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+z+te)*a,(.5+le)*y,(.5+fe+te)*a,(.5+z+le)*y,(.5+z+te)*a,(.5+fe+le)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+te)*a,(.5-z+le)*y,(1-.5+z+te)*a,(.5-fe+le)*y,(.5+fe+te)*a,(.5-z+le)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.65*a,.36771243*y,(.5-fe+te)*a,(.5-z+le)*y,(.5-z+te+.05)*a,(.5-fe+le-.02)*y)),z=.2,te=0,le=-.3,fe=z*ne,b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+z+te)*a,(.5+le)*y,(.5+fe+te)*a,(.5+z+le)*y,(.5+z+te)*a,(.5+fe+le)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+te)*a,(.5-z+le)*y,(1-.5+z+te)*a,(.5-fe+le)*y,(.5+fe+te)*a,(.5-z+le)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-z+te)*a,(.5+le)*y,(.5-fe+te)*a,(.5-z+le)*y,(.5-z+te)*a,(.5-fe+le)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-fe+te)*a,(.5+z+le)*y,(.5-z+te)*a,(.5+fe+le)*y,(.5-fe+te)*a,(.5+z+le)*y)),z=.2,te=-.3,le=0,fe=z*ne,b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+te)*a,(.5-z+le)*y,(1-.5+z+te-.05)*a,(.5-fe+le-.02)*y,(.5+fe+te)*a,(.5-z+le)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-z+te)*a,(.5+le)*y,(.5-fe+te)*a,(.5-z+le)*y,(.5-z+te)*a,(.5-fe+le)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+te)*a,(.5+z+le)*y,(.5-z+te)*a,(.5+fe+le)*y,(.5-fe+te)*a,(.5+z+le)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.6*y,(.5+fe+te)*a,(.5+z+le)*y,(.5+z+te)*a,(.5+fe+le)*y).close()),x.setSpots(.06,.33,.93,.68),x}),go.Shape.defineFigureGenerator("YinYang",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(a*.5,0,!0);x.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 z=.1,te=.5,le=.25;return b.add(new go.PathSegment(go.PathSegment.Move,(te+z)*a,le*y)),b.add(new go.PathSegment(go.PathSegment.Arc,0,-360,a*te,y*le,z*a,z*a).close()),b=new go.PathFigure(a*.5,0,!1),x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*.5,a*.5,a*.5,a*.5)),le=.75,b=new go.PathFigure((te+z)*a,le*y,!0),x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,0,360,a*te,y*le,z*a,z*a).close()),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Peace",function(ee,a,y){var x=.8535533905932737,b=.5*a,z=.5*y;return new go.Geometry().add(new go.PathFigure(b,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,b,z,b,z)).add(new go.PathSegment(go.PathSegment.Line,b,y)).add(new go.PathSegment(go.PathSegment.Move,b,z)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,x*y)).add(new go.PathSegment(go.PathSegment.Move,b,z)).add(new go.PathSegment(go.PathSegment.Line,x*a,x*y)))}),go.Shape.defineFigureGenerator("NotAllowed",function(ee,a,y){var x=new go.Geometry,b=ne*.5,z=.5,te=.5,le=.5,fe=new go.PathFigure(te*a,(le-z)*y);x.add(fe),fe.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,le*y,(te-b)*a,(le-z)*y,(te-z)*a,(le-b)*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(le+z)*y,(te-z)*a,(le+b)*y,(te-b)*a,(le+z)*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,le*y,(te+b)*a,(le+z)*y,(te+z)*a,(le+b)*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(le-z)*y,(te+z)*a,(le-b)*y,(te+b)*a,(le-z)*y)),z=.4,b=ne*.4;var ge=be(),me=be(),he=be(),Se=be();pe(te,le-z,te+b,le-z,te+z,le-b,te+z,le,.42,ge,me,he,Se,Se);var ye=be(),Pe=be(),we=be();pe(te,le-z,te+b,le-z,te+z,le-b,te+z,le,.58,Se,Se,we,ye,Pe);var De=be(),Ee=be(),Ae=be();pe(te,le+z,te-b,le+z,te-z,le+b,te-z,le,.42,De,Ee,Ae,Se,Se);var Ce=be(),je=be(),Me=be();return pe(te,le+z,te-b,le+z,te-z,le+b,te-z,le,.58,Se,Se,Me,Ce,je),fe.add(new go.PathSegment(go.PathSegment.Move,Me.x*a,Me.y*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,le*y,Ce.x*a,Ce.y*y,je.x*a,je.y*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(le-z)*y,(te-z)*a,(le-b)*y,(te-b)*a,(le-z)*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,he.x*a,he.y*y,ge.x*a,ge.y*y,me.x*a,me.y*y)),fe.add(new go.PathSegment(go.PathSegment.Line,Me.x*a,Me.y*y).close()),fe.add(new go.PathSegment(go.PathSegment.Move,Ae.x*a,Ae.y*y)),fe.add(new go.PathSegment(go.PathSegment.Line,we.x*a,we.y*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,le*y,ye.x*a,ye.y*y,Pe.x*a,Pe.y*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(le+z)*y,(te+z)*a,(le+b)*y,(te+b)*a,(le+z)*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,Ae.x*a,Ae.y*y,De.x*a,De.y*y,Ee.x*a,Ee.y*y).close()),_e(ge),_e(me),_e(he),_e(Se),_e(ye),_e(Pe),_e(we),_e(De),_e(Ee),_e(Ae),_e(Ce),_e(je),_e(Me),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Fragile",function(ee,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 Et("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(ee,a,y){var x=ee?ee.parameter1:NaN;(isNaN(x)||x<0)&&(x=30),x>a&&(x=a);var b=(a-x)/2,z=b+x;return new go.Geometry().add(new go.PathFigure(z,.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(ee,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(ee,a,y){var x=new go.Geometry,b=ne*.4,z=.4,te=.5,le=.5,fe=be(),ge=be(),me=be(),he=be(),Se=new go.PathFigure((te-z)*a,le*y,!1);x.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(le-z)*y,(te-z)*a,(le-b)*y,(te-b)*a,(le-z)*y)),pe(te,le-z,te+b,le-z,te+z,le-b,te+z,le,.44,me,he,ge,fe,fe),Se.add(new go.PathSegment(go.PathSegment.Bezier,ge.x*a,ge.y*y,me.x*a,me.y*y,he.x*a,he.y*y));var ye=ve(ge.x,ge.y);pe(te,le-z,te+b,le-z,te+z,le-b,te+z,le,.56,fe,fe,ge,me,he);var Pe=ve(ge.x,ge.y);Se.add(new go.PathSegment(go.PathSegment.Line,(ye.x*.1+.95*.9)*a,ye.y*.1*y)),Se.add(new go.PathSegment(go.PathSegment.Line,.85*a,ye.y*.1*y)),Se.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),Se.add(new go.PathSegment(go.PathSegment.Line,a,0)),Se.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),Se.add(new go.PathSegment(go.PathSegment.Line,(Pe.x*.1+.9)*a,.15*y)),Se.add(new go.PathSegment(go.PathSegment.Line,(Pe.x*.1+.9)*a,(Pe.y*.1+.05*.9)*y)),Se.add(new go.PathSegment(go.PathSegment.Line,Pe.x*a,Pe.y*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,le*y,me.x*a,me.y*y,he.x*a,he.y*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(le+z)*y,(te+z)*a,(le+b)*y,(te+b)*a,(le+z)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,le*y,(te-b)*a,(le+z)*y,(te-z)*a,(le+b)*y)),z=.35,b=ne*.35;var we=new go.PathFigure(te*a,(le-z)*y,!1);x.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,le*y,(te-b)*a,(le-z)*y,(te-z)*a,(le-b)*y)),we.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(le+z)*y,(te-z)*a,(le+b)*y,(te-b)*a,(le+z)*y)),we.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,le*y,(te+b)*a,(le+z)*y,(te+z)*a,(le+b)*y)),we.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(le-z)*y,(te+z)*a,(le-b)*y,(te+b)*a,(le-z)*y));var De=new go.PathFigure((te-z)*a,le*y,!1);return x.add(De),_e(fe),_e(ge),_e(me),_e(he),_e(ye),_e(Pe),x.spot1=new go.Spot(.202,.257),x.spot2=new go.Spot(.792,.739),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("GenderFemale",function(ee,a,y){var x=new go.Geometry,b=.375,z=0,te=-.125,le=b*ne,fe=new go.PathFigure((.525+z)*a,(.5+b+te)*y,!1);x.add(fe),fe.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+z)*a,(.5+te)*y,(.5+le+z)*a,(.5+b+te)*y,(.5+b+z)*a,(.5+le+te)*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-b+te)*y,(1-.5+b+z)*a,(.5-le+te)*y,(.5+le+z)*a,(.5-b+te)*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+z)*a,(.5+te)*y,(.5-le+z)*a,(.5-b+te)*y,(.5-b+z)*a,(.5-le+te)*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(.475+z)*a,(.5+b+te)*y,(.5-b+z)*a,(.5+le+te)*y,(.5-le+z)*a,(.5+b+te)*y)),fe.add(new go.PathSegment(go.PathSegment.Line,.475*a,.85*y)),fe.add(new go.PathSegment(go.PathSegment.Line,.425*a,.85*y)),fe.add(new go.PathSegment(go.PathSegment.Line,.425*a,.9*y)),fe.add(new go.PathSegment(go.PathSegment.Line,.475*a,.9*y)),fe.add(new go.PathSegment(go.PathSegment.Line,.475*a,y)),fe.add(new go.PathSegment(go.PathSegment.Line,.525*a,y)),fe.add(new go.PathSegment(go.PathSegment.Line,.525*a,.9*y)),fe.add(new go.PathSegment(go.PathSegment.Line,.575*a,.9*y)),fe.add(new go.PathSegment(go.PathSegment.Line,.575*a,.85*y)),fe.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y).close()),b=.325,z=0,te=-.125,le=b*ne;var fe=new go.PathFigure((1-.5+b+z)*a,(.5+te)*y,!1);x.add(fe),fe.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+b+te)*y,(.5+b+z)*a,(.5+le+te)*y,(.5+le+z)*a,(.5+b+te)*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+z)*a,(.5+te)*y,(.5-le+z)*a,(.5+b+te)*y,(.5-b+z)*a,(.5+le+te)*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-b+te)*y,(.5-b+z)*a,(.5-le+te)*y,(.5-le+z)*a,(.5-b+te)*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+z)*a,(.5+te)*y,(.5+le+z)*a,(.5-b+te)*y,(1-.5+b+z)*a,(.5-le+te)*y));var fe=new go.PathFigure((.525+z)*a,(.5+b+te)*y,!1);return x.add(fe),x.spot1=new go.Spot(.232,.136),x.spot2=new go.Spot(.682,.611),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("LogicImplies",function(ee,a,y){var x=ee?ee.parameter1:NaN;return isNaN(x)&&(x=.2),new go.Geometry().add(new go.PathFigure((1-x)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*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(ee,a,y){var x=ee?ee.parameter1:NaN;return isNaN(x)&&(x=.2),new go.Geometry().add(new go.PathFigure((1-x)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*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,x*a,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,x*a,y))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(ee,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(ee,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(ee,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(ee,a,y){var x=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 x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("LogicTruth",function(ee,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(ee,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(ee,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(ee,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(ee,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(ee,a,y){var x=.5;return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,0,x*y)).add(new go.PathSegment(go.PathSegment.Arc,180,180,x*a,x*y,x*a,x*y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(ee,a,y){var x=.5;return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,x*y)).add(new go.PathSegment(go.PathSegment.Arc,0,180,x*a,x*y,x*a,x*y)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new Et("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Et("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(ee,a,y){var x=ee?ee.parameter1:NaN;isNaN(x)&&(x=.3);var b=ee?ee.parameter2:NaN;isNaN(b)&&(b=.3);var z=(1-x)*a,te=(.5-b/2)*y,le=(.5+b/2)*y,fe=new go.Geometry,ge=new go.PathFigure(0,te,!0);fe.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,z,te)),ge.add(new go.PathSegment(go.PathSegment.Line,z,0)),ge.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),ge.add(new go.PathSegment(go.PathSegment.Line,z,y)),ge.add(new go.PathSegment(go.PathSegment.Line,z,le)),ge.add(new go.PathSegment(go.PathSegment.Line,0,le).close()),fe.spot1=new go.Spot(0,te/y);var me=E(0,le/y,1,le/y,z/a,1,1,.5,be());return fe.spot2=new go.Spot(me.x,me.y),_e(me),fe}),go.Shape.setFigureParameter("Arrow2",0,new Et("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Et("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(ee,a,y){var x=ee?ee.parameter1:NaN;isNaN(x)&&(x=30),x>a&&(x=a);var b=ee?ee.parameter2:NaN;isNaN(b)&&(b=30),b=Math.min(b,y/2);var z=a-x,te=(y-b)/2,le=te+b,fe=new go.Geometry,ge=new go.PathFigure(0,te,!0);fe.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,z,te)),ge.add(new go.PathSegment(go.PathSegment.Line,z,0)),ge.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),ge.add(new go.PathSegment(go.PathSegment.Line,z,y)),ge.add(new go.PathSegment(go.PathSegment.Line,z,le)),ge.add(new go.PathSegment(go.PathSegment.Line,0,le).close()),fe.spot1=new go.Spot(0,te/y);var me=E(0,le/y,1,le/y,z/a,1,1,.5,be());return fe.spot2=new go.Spot(me.x,me.y),_e(me),fe}),go.Shape.defineFigureGenerator("Chevron",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.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()),x}),go.Shape.defineFigureGenerator("DoubleArrow",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.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()),x}),go.Shape.setFigureParameter("DoubleEndArrow",0,new Et("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(ee,a,y){var x=ee?ee.parameter1:NaN;isNaN(x)&&(x=.3);var b=(.5-x/2)*y,z=(.5+x/2)*y,te=new go.Geometry,le=new go.PathFigure(a,.5*y,!0);te.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),le.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),le.add(new go.PathSegment(go.PathSegment.Line,.3*a,z)),le.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),le.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),le.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),le.add(new go.PathSegment(go.PathSegment.Line,.3*a,b)),le.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),le.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close());var fe=E(0,.5,.3,0,0,b/y,.1,b/y,be());return te.spot1=new go.Spot(fe.x,fe.y),fe=E(.7,1,1,.5,0,z/y,1,z/y,fe),te.spot2=new go.Spot(fe.x,fe.y),_e(fe),te}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Et("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Et("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(ee,a,y){var x=ee?ee.parameter1:NaN;isNaN(x)&&(x=40);var b=ee?ee.parameter2:NaN;isNaN(b)&&(b=100);var z=(y-x)/2,te=z+x,le=(y-b)/2,fe=le+b;(x>y||b>y)&&(b>x?(x=x*y/b,z=(y-x)/2,te=z+x,le=0,fe=y):(z=0,te=y,le=0,fe=y));var ge=new go.Geometry,me=new go.PathFigure(a,.5*y,!0);ge.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.7*a,fe)),me.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),me.add(new go.PathSegment(go.PathSegment.Line,.3*a,te)),me.add(new go.PathSegment(go.PathSegment.Line,.3*a,fe)),me.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),me.add(new go.PathSegment(go.PathSegment.Line,.3*a,le)),me.add(new go.PathSegment(go.PathSegment.Line,.3*a,z)),me.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),me.add(new go.PathSegment(go.PathSegment.Line,.7*a,le).close());var he=E(0,.5,.3,le/y,0,z/y,1,z/y,be());return ge.spot1=new go.Spot(he.x,he.y),he=E(.7,fe/y,1,.5,0,te/y,1,te/y,he),ge.spot2=new go.Spot(he.x,he.y),_e(he),ge}),go.Shape.setFigureParameter("IBeamArrow",0,new Et("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(ee,a,y){var x=ee?ee.parameter1:NaN;isNaN(x)&&(x=.3);var b=(.5-x/2)*y,z=(.5+x/2)*y,te=new go.Geometry,le=new go.PathFigure(a,.5*y,!0);te.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),le.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),le.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),le.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),le.add(new go.PathSegment(go.PathSegment.Line,0,y)),le.add(new go.PathSegment(go.PathSegment.Line,0,0)),le.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),le.add(new go.PathSegment(go.PathSegment.Line,.2*a,b)),le.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),le.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),te.spot1=new go.Spot(0,b/y);var fe=E(.7,1,1,.5,0,z/y,1,z/y,be());return te.spot2=new go.Spot(fe.x,fe.y),_e(fe),te}),go.Shape.setFigureParameter("IBeamArrow2",0,new Et("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Et("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(ee,a,y){var x=ee?ee.parameter1:NaN;isNaN(x)&&(x=40);var b=ee?ee.parameter2:NaN;isNaN(b)&&(b=100);var z=(y-x)/2,te=z+x,le=(y-b)/2,fe=le+b;(x>y||b>y)&&(b>x?(x=x*y/b,z=(y-x)/2,te=z+x,le=0,fe=y):(z=0,te=y,le=0,fe=y));var ge=new go.Geometry,me=new go.PathFigure(a,.5*y,!0);ge.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.7*a,fe)),me.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),me.add(new go.PathSegment(go.PathSegment.Line,.2*a,te)),me.add(new go.PathSegment(go.PathSegment.Line,.2*a,fe)),me.add(new go.PathSegment(go.PathSegment.Line,0,fe)),me.add(new go.PathSegment(go.PathSegment.Line,0,le)),me.add(new go.PathSegment(go.PathSegment.Line,.2*a,le)),me.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),me.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),me.add(new go.PathSegment(go.PathSegment.Line,.7*a,le).close()),ge.spot1=new go.Spot(0,z/y);var he=E(.7,fe/y,1,.5,0,te/y,1,te/y,be());return ge.spot2=new go.Spot(he.x,he.y),_e(he),ge}),go.Shape.setFigureParameter("Pointer",0,new Et("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(ee,a,y){var x=ee?ee.parameter1:NaN;isNaN(x)&&(x=.1);var b=new go.Geometry,z=new go.PathFigure(a,.5*y,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,y)),z.add(new go.PathSegment(go.PathSegment.Line,x*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),b.spot1=new go.Spot(x,.35);var te=E(.2,.65,1,.65,0,1,1,.5,be());return b.spot2=new go.Spot(te.x,te.y),_e(te),b}),go.Shape.setFigureParameter("RoundedPointer",0,new Et("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(ee,a,y){var x=ee?ee.parameter1:NaN;isNaN(x)&&(x=.3);var b=new go.Geometry,z=new go.PathFigure(a,.5*y,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,0,x*a,.75*y,x*a,.25*y).close()),b.spot1=new go.Spot(x,.35);var te=E(0,.65,1,.65,0,1,1,.5,be());return b.spot2=new go.Spot(te.x,te.y),_e(te),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new Et("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(ee,a,y){var x=ee?ee.parameter1:NaN;isNaN(x)&&(x=.4);var b=(.5-x/2)*y,z=(.5+x/2)*y,te=new go.Geometry,le=new go.PathFigure(a,.5*y,!0);te.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),le.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),le.add(new go.PathSegment(go.PathSegment.Line,0,z)),le.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),le.add(new go.PathSegment(go.PathSegment.Line,0,b)),le.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),le.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),te.spot1=new go.Spot(.2,.3);var fe=E(.7,1,1,.5,0,z/y,1,z/y,be());return te.spot2=new go.Spot(fe.x,fe.y),_e(fe),te}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Et("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(ee,a,y){var x=ee?ee.parameter1:NaN;isNaN(x)&&(x=50);var b=(y-x)/2,z=b+x;x>y&&(b=0,z=y);var te=new go.Geometry,le=new go.PathFigure(a,.5*y,!0);te.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),le.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),le.add(new go.PathSegment(go.PathSegment.Line,0,z)),le.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),le.add(new go.PathSegment(go.PathSegment.Line,0,b)),le.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),le.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),te.spot1=new go.Spot(.2,b/y);var fe=E(.7,1,1,.5,0,z/y,1,z/y,be());return te.spot2=new go.Spot(fe.x,fe.y),_e(fe),te}),go.Shape.setFigureParameter("SquareArrow",0,new Et("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(ee,a,y){var x=ee?ee.parameter1:NaN;isNaN(x)&&(x=.7);var b=new go.Geometry,z=new go.PathFigure(a,.5*y,!0);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,x*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,0)),z.add(new go.PathSegment(go.PathSegment.Line,x*a,0).close()),b.spot1=go.Spot.TopLeft,b.spot2=new go.Spot(x,1),b}),go.Shape.defineFigureGenerator("Cone1",function(ee,a,y){var x=new go.Geometry,b=ne*.5,z=ne*.1,te=new go.PathFigure(0,.9*y,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),te.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+z)*y,(.5+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+z)*y).close()),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.97),x}),go.Shape.defineFigureGenerator("Cone2",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.9*y,!0);x.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 z=new go.PathFigure(0,.9*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,.8*y,.85/.9*a,.8*y)),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.82),x}),go.Shape.defineFigureGenerator("Cube1",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,y,!0);x.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 z=new go.PathFigure(.5*a,y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),z.add(new go.PathSegment(go.PathSegment.Move,.5*a,.3*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(.5,.85),x}),go.Shape.defineFigureGenerator("Cube2",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.3*y,!0);x.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 z=new go.PathFigure(0,.3*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.7*a,.3*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Move,.7*a,.3*y)),z.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(.7,1),x}),go.Shape.defineFigureGenerator("Cylinder1",function(ee,a,y){var x=ee?ee.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,y/3);var b=new go.Geometry,z=ne*.5,te=new go.PathFigure(0,x,!0);b.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,ne*x,(.5-z)*a,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,1*a,x,(.5+z)*a,0,1*a,ne*x)),te.add(new go.PathSegment(go.PathSegment.Line,a,y-x)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,1*y,1*a,y-ne*x,(.5+z)*a,1*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y-x,(.5-z)*a,1*y,0,y-ne*x)),te.add(new go.PathSegment(go.PathSegment.Line,0,x));var le=new go.PathFigure(a,x,!1);return b.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,2*x,1*a,2*x-ne*x,(.5+z)*a,2*x)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,x,(.5-z)*a,2*x,0,2*x-ne*x)),b.spot1=new go.Spot(0,0,0,2*x),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder2",function(ee,a,y){var x=ee?ee.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,y/3);var b=new go.Geometry,z=ne*.5,te=new go.PathFigure(0,y-x,!0);b.add(te),te.add(new go.PathSegment(go.PathSegment.Line,0,x)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,ne*x,(.5-z)*a,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,x,(.5+z)*a,0,a,ne*x)),te.add(new go.PathSegment(go.PathSegment.Line,a,y-x)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,y-ne*x,(.5+z)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y-x,(.5-z)*a,y,0,y-ne*x));var le=new go.PathFigure(0,y-x,!1);return b.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y-2*x,0,y-x-ne*x,(.5-z)*a,y-2*x)),le.add(new go.PathSegment(go.PathSegment.Bezier,a,y-x,(.5+z)*a,y-2*x,a,y-x-ne*x)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,0,-2*x),b}),go.Shape.defineFigureGenerator("Cylinder3",function(ee,a,y){var x=ee?ee.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,a/3);var b=new go.Geometry,z=ne*.5,te=new go.PathFigure(x,0,!0);b.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a-x,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-ne*x,0,a,(.5-z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a,(.5+z)*y,a-ne*x,y)),te.add(new go.PathSegment(go.PathSegment.Line,x,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,ne*x,y,0,(.5+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-z)*y,ne*x,0));var le=new go.PathFigure(x,0,!1);return b.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,2*x,.5*y,x+ne*x,0,2*x,(.5-z)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,x,y,2*x,(.5+z)*y,x+ne*x,y)),b.spot1=new go.Spot(0,0,2*x,0),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder4",function(ee,a,y){var x=ee?ee.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,a/3);var b=new go.Geometry,z=ne*.5,te=new go.PathFigure(a-x,0,!0);b.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-ne*x,0,a,(.5-z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a,(.5+z)*y,a-ne*x,y)),te.add(new go.PathSegment(go.PathSegment.Line,x,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,ne*x,y,0,(.5+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-z)*y,ne*x,0)),te.add(new go.PathSegment(go.PathSegment.Line,a-x,0));var le=new go.PathFigure(a-x,0,!1);return b.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,a-2*x,.5*y,a-x-ne*x,0,a-2*x,(.5-z)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a-2*x,(.5+z)*y,a-x-ne*x,y)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,-2*x,0),b}),go.Shape.defineFigureGenerator("Prism1",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(.25*a,.25*y,!0);x.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 z=new go.PathFigure(.25*a,.25*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),x.spot1=new go.Spot(.408,.172),x.spot2=new go.Spot(.833,.662),x}),go.Shape.defineFigureGenerator("Prism2",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.25*y,!0);x.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 z=new go.PathFigure(0,y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),z.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),z.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("Pyramid1",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);x.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 z=new go.PathFigure(.5*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),x.spot1=new go.Spot(.25,.367),x.spot2=new go.Spot(.75,.875),x}),go.Shape.defineFigureGenerator("Pyramid2",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);x.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 z=new go.PathFigure(.5*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.85*y)),z.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),x.spot1=new go.Spot(.25,.367),x.spot2=new go.Spot(.75,.875),x}),go.Shape.defineFigureGenerator("Actor",function(ee,a,y){var x=new go.Geometry,b=.2,z=.1,te=ne*b,le=ne*z,fe=.5,ge=.1,me=new go.PathFigure(fe*a,(ge+z)*y,!0);x.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,(fe-b)*a,ge*y,(fe-te)*a,(ge+z)*y,(fe-b)*a,(ge+le)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,fe*a,(ge-z)*y,(fe-b)*a,(ge-le)*y,(fe-te)*a,(ge-z)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(fe+b)*a,ge*y,(fe+te)*a,(ge-z)*y,(fe+b)*a,(ge-le)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,fe*a,(ge+z)*y,(fe+b)*a,(ge+le)*y,(fe+te)*a,(ge+z)*y));var he=.05,Se=ne*he;fe=.05,ge=.25;var ye=new go.PathFigure(.5*a,.2*y,!0);return x.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*y)),fe=.95,ge=.25,ye.add(new go.PathSegment(go.PathSegment.Bezier,(fe+he)*a,ge*y,(fe+Se)*a,(ge-he)*y,(fe+he)*a,(ge-Se)*y)),ye.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),ye.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),ye.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*y)),he=.025,Se=ne*he,fe=.825,ge=.35,ye.add(new go.PathSegment(go.PathSegment.Bezier,fe*a,(ge-he)*y,(fe+he)*a,(ge-Se)*y,(fe+Se)*a,(ge-he)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(fe-he)*a,ge*y,(fe-Se)*a,(ge-he)*y,(fe-he)*a,(ge-Se)*y)),ye.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),ye.add(new go.PathSegment(go.PathSegment.Line,.55*a,y)),ye.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y)),he=.05,Se=ne*he,fe=.5,ge=.7,ye.add(new go.PathSegment(go.PathSegment.Bezier,fe*a,(ge-he)*y,(fe+he)*a,(ge-Se)*y,(fe+Se)*a,(ge-he)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(fe-he)*a,ge*y,(fe-Se)*a,(ge-he)*y,(fe-he)*a,(ge-Se)*y)),ye.add(new go.PathSegment(go.PathSegment.Line,.45*a,y)),ye.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),ye.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*y)),he=.025,Se=ne*he,fe=.175,ge=.35,ye.add(new go.PathSegment(go.PathSegment.Bezier,fe*a,(ge-he)*y,(fe+he)*a,(ge-Se)*y,(fe+Se)*a,(ge-he)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(fe-he)*a,ge*y,(fe-Se)*a,(ge-he)*y,(fe-he)*a,(ge-Se)*y)),ye.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),ye.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),ye.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),he=.05,Se=ne*he,fe=.05,ge=.25,ye.add(new go.PathSegment(go.PathSegment.Bezier,fe*a,(ge-he)*y,(fe-he)*a,(ge-Se)*y,(fe-Se)*a,(ge-he)*y)),ye.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),x.spot1=new go.Spot(.2,.2),x.spot2=new go.Spot(.8,.65),x}),go.Shape.setFigureParameter("Card",0,new Et("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(ee,a,y){var x=ee?ee.parameter1:NaN;isNaN(x)&&(x=.2);var b=new go.Geometry,z=new go.PathFigure(a,0,!0);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,x*y)),z.add(new go.PathSegment(go.PathSegment.Line,x*a,0).close()),b.spot1=new go.Spot(0,x),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("Collate",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,.5*y,!0);x.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 z=new go.PathFigure(.5*a,.5*y,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),x.spot1=new go.Spot(.25,0),x.spot2=new go.Spot(.75,.25),x}),go.Shape.defineFigureGenerator("CreateRequest",function(ee,a,y){var x=new go.Geometry,b=ee?ee.parameter1:NaN;isNaN(b)&&(b=.1);var z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var te=new go.PathFigure(0,b*y,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),te.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),te.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),x}),go.Shape.defineFigureGenerator("Database",function(ee,a,y){var x=new go.Geometry,b=ne*.5,z=ne*.1,te=new go.PathFigure(a,.1*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+z)*y,(.5+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+z)*y)),te.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-z)*y,(.5-b)*a,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-z)*y));var le=new go.PathFigure(a,.1*y,!1);return x.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+z)*y,(.5+b)*a,.2*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+z)*y)),le.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+z)*y,(.5+b)*a,.3*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+z)*y)),le.add(new go.PathSegment(go.PathSegment.Move,a,.3*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.4*y,a,(.3+z)*y,(.5+b)*a,.4*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,(.5-b)*a,.4*y,0,(.3+z)*y)),x.spot1=new go.Spot(0,.4),x.spot2=new go.Spot(1,.9),x}),go.Shape.defineFigureGenerator("DataStorage",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.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()),x.spot1=new go.Spot(.226,0),x.spot2=new go.Spot(.81,1),x}),go.Shape.defineFigureGenerator("DiskStorage",function(ee,a,y){var x=new go.Geometry,b=ne*.5,z=ne*.1,te=new go.PathFigure(a,.1*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+z)*y,(.5+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+z)*y)),te.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-z)*y,(.5-b)*a,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-z)*y));var le=new go.PathFigure(a,.1*y,!1);return x.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+z)*y,(.5+b)*a,.2*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+z)*y)),le.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+z)*y,(.5+b)*a,.3*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+z)*y)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(1,.9),x}),go.Shape.defineFigureGenerator("Display",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return x.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()),x.spot1=new go.Spot(.25,0),x.spot2=new go.Spot(.75,1),x}),go.Shape.defineFigureGenerator("DividedEvent",function(ee,a,y){var x=new go.Geometry,b=ee?ee.parameter1:NaN;isNaN(b)?b=.2:b<.15&&(b=.15);var z=ne*.2,te=new go.PathFigure(0,.2*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,0,(.2-z)*y,(.2-z)*a,0)),te.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,.2*y,(.8+z)*a,0,a,(.2-z)*y)),te.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,y,a,(.8+z)*y,(.8+z)*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*y,(.2-z)*a,y,0,(.8+z)*y)),te.add(new go.PathSegment(go.PathSegment.Line,0,.2*y));var le=new go.PathFigure(0,b*y,!1);return x.add(le),le.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),x}),go.Shape.defineFigureGenerator("DividedProcess",function(ee,a,y){var x=new go.Geometry,b=ee?ee.parameter1:NaN;(isNaN(b)||b<.1)&&(b=.1);var z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var te=new go.PathFigure(0,b*y,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),x}),go.Shape.defineFigureGenerator("Document",function(ee,a,y){var x=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return x.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()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(1,.6),x}),go.Shape.defineFigureGenerator("ExternalOrganization",function(ee,a,y){var x=new go.Geometry,b=ee?ee.parameter1:NaN;(isNaN(b)||b<.2)&&(b=.2);var z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var te=new go.PathFigure(b*a,0,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,0,b*y)),te.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),te.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,0)),te.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),te.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),te.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),x}),go.Shape.defineFigureGenerator("ExternalProcess",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);x.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 z=new go.PathFigure(.1*a,.4*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Move,.9*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),z.add(new go.PathSegment(go.PathSegment.Move,.6*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Move,.4*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,.9*y)),x.spot1=new go.Spot(.25,.25),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("File",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.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 z=new go.PathFigure(.75*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("Interrupt",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(a,.5*y,!0);x.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 z=new go.PathFigure(a,.5*y,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,y));var te=new go.PathFigure(a,.5*y,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("InternalStorage",function(ee,a,y){var x=new go.Geometry,b=ee?ee.parameter1:NaN,z=ee?ee.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(z)&&(z=.1);var te=new go.PathFigure(0,0,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a,0)),te.add(new go.PathSegment(go.PathSegment.Line,a,y)),te.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var le=new go.PathFigure(b*a,0,!1);return x.add(le),le.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),le.add(new go.PathSegment(go.PathSegment.Move,0,z*y)),le.add(new go.PathSegment(go.PathSegment.Line,a,z*y)),x}),go.Shape.defineFigureGenerator("Junction",function(ee,a,y){var x=new go.Geometry,b=1/Math.SQRT2,z=(1-1/Math.SQRT2)/2,te=ne*.5,le=.5,fe=new go.PathFigure(a,le*y,!0);x.add(fe),fe.add(new go.PathSegment(go.PathSegment.Bezier,le*a,y,a,(le+te)*y,(le+te)*a,y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,0,le*y,(le-te)*a,y,0,(le+te)*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,le*a,0,0,(le-te)*y,(le-te)*a,0)),fe.add(new go.PathSegment(go.PathSegment.Bezier,a,le*y,(le+te)*a,0,a,(le-te)*y));var ge=new go.PathFigure((z+b)*a,(z+b)*y,!1);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,z*a,z*y)),ge.add(new go.PathSegment(go.PathSegment.Move,z*a,(z+b)*y)),ge.add(new go.PathSegment(go.PathSegment.Line,(z+b)*a,z*y)),x}),go.Shape.defineFigureGenerator("LinedDocument",function(ee,a,y){var x=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);x.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 z=new go.PathFigure(.1*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.1*a,.75*y)),x.spot1=new go.Spot(.1,0),x.spot2=new go.Spot(1,.6),x}),go.Shape.defineFigureGenerator("LoopLimit",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);return x.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()),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("MagneticTape",function(ee,a,y){var x=new go.Geometry,b=ne*.5,z=.5,te=new go.PathFigure(.5*a,y,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,0,z*y,(z-b)*a,y,0,(z+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,0,0,(z-b)*y,(z-b)*a,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,z*y,(z+b)*a,0,a,(z-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+.1)*a,.9*y,a,(z+b)*y,(z+b)*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),x.spot1=new go.Spot(.15,.15),x.spot2=new go.Spot(.85,.8),x}),go.Shape.defineFigureGenerator("ManualInput",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(a,0,!0);return x.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()),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("MessageFromUser",function(ee,a,y){var x=new go.Geometry,b=ee?ee.parameter1:NaN;isNaN(b)&&(b=.7);var z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=go.Spot.TopLeft,x}),go.Shape.defineFigureGenerator("MicroformProcessing",function(ee,a,y){var x=new go.Geometry,b=ee?ee.parameter1:NaN;isNaN(b)&&(b=.25);var z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,b*y)),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,.5*a,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x}),go.Shape.defineFigureGenerator("MicroformRecording",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.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()),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(1,.75),x}),go.Shape.defineFigureGenerator("MultiDocument",function(ee,a,y){var x=new go.Geometry;y=y/.8;var b=new go.PathFigure(a,0,!0);x.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 z=new go.PathFigure(.1*a,.2*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,.54*y)),z.add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.44*y)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.8,.77),x}),go.Shape.defineFigureGenerator("MultiProcess",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(.1*a,.1*y,!0);x.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 z=new go.PathFigure(.2*a,.1*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Move,.1*a,.2*y)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),x.spot1=new go.Spot(0,.2),x.spot2=new go.Spot(.8,1),x}),go.Shape.defineFigureGenerator("OfflineStorage",function(ee,a,y){var x=new go.Geometry,b=ee?ee.parameter1:NaN;isNaN(b)&&(b=.1);var z=1-b,te=new go.PathFigure(0,0,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a,0)),te.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close());var le=new go.PathFigure(.5*b*a,b*y,!1);return x.add(le),le.add(new go.PathSegment(go.PathSegment.Line,(1-.5*b)*a,b*y)),x}),go.Shape.defineFigureGenerator("OffPageConnector",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.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()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(.75,1),x}),go.Shape.defineFigureGenerator("Or",function(ee,a,y){var x=new go.Geometry,b=ne*.5,z=.5,te=new go.PathFigure(a,z*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,a,(z+b)*y,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,z*y,(z-b)*a,y,0,(z+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,0,0,(z-b)*y,(z-b)*a,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,z*y,(z+b)*a,0,a,(z-b)*y));var le=new go.PathFigure(a,.5*y,!1);return x.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),le.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),le.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),x}),go.Shape.defineFigureGenerator("PaperTape",function(ee,a,y){var x=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return x.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()),x.spot1=new go.Spot(0,.49),x.spot2=new go.Spot(1,.75),x}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(ee,a,y){var x=new go.Geometry,b=ee?ee.parameter1:NaN,z=ee?ee.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(z)&&(z=.3);var te=new go.PathFigure(0,0,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a,0)),te.add(new go.PathSegment(go.PathSegment.Line,(1-z)*a,.5*y)),te.add(new go.PathSegment(go.PathSegment.Line,a,y)),te.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(ee,a,y){var x=new go.Geometry,b=ee?ee.parameter1:NaN,z=ee?ee.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(z)&&(z=.3);var te=new go.PathFigure(0,0,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,(1-z)*a,0)),te.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),te.add(new go.PathSegment(go.PathSegment.Line,(1-z)*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x}),go.Shape.defineFigureGenerator("Procedure",function(ee,a,y){var x=new go.Geometry,b=ee?ee.parameter1:NaN;isNaN(b)&&(b=.1);var z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var te=new go.PathFigure((1-b)*a,0,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Move,b*a,0)),te.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),x}),go.Shape.defineFigureGenerator("Process",function(ee,a,y){var x=new go.Geometry,b=ee?ee.parameter1:NaN;isNaN(b)&&(b=.1);var z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var te=new go.PathFigure(b*a,0,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("Sort",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);x.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 z=new go.PathFigure(0,.5*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),x.spot1=new go.Spot(.25,.25),x.spot2=new go.Spot(.75,.5),x}),go.Shape.defineFigureGenerator("Start",function(ee,a,y){var x=new go.Geometry,b=ee?ee.parameter1:NaN;isNaN(b)&&(b=.25);var z=new go.PathFigure(b*a,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y));var te=new go.PathFigure(b*a,0,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),te.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,0)),te.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),x.spot1=new go.Spot(b,0),x.spot2=new go.Spot(1-b,1),x}),go.Shape.defineFigureGenerator("Terminator",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return x.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)),x.spot1=new go.Spot(.23,0),x.spot2=new go.Spot(.77,1),x}),go.Shape.defineFigureGenerator("TransmittalTape",function(ee,a,y){var x=new go.Geometry,b=ee?ee.parameter1:NaN;isNaN(b)&&(b=.1);var z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.75*a,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,(1-b)*y).close()),x.spot1=go.Spot.TopLeft,x}),go.Shape.defineFigureGenerator("AndGate",function(ee,a,y){var x=new go.Geometry,b=ne*.5,z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(.5+b)*a,0,a,(.5-b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.5+b)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(.55,1),x}),go.Shape.defineFigureGenerator("Buffer",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("Clock",function(ee,a,y){var x=new go.Geometry,b=ne*.5,z=.5,te=new go.PathFigure(a,z*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,a,(z+b)*y,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,z*y,(z-b)*a,y,0,(z+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,0,0,(z-b)*y,(z-b)*a,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,z*y,(z+b)*a,0,a,(z-b)*y));var le=new go.PathFigure(a,z*y,!1);x.add(le),le.add(new go.PathSegment(go.PathSegment.Line,a,z*y));var fe=new go.PathFigure(.8*a,.75*y,!1);return x.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.8*a,.25*y)),fe.add(new go.PathSegment(go.PathSegment.Line,.6*a,.25*y)),fe.add(new go.PathSegment(go.PathSegment.Line,.6*a,.75*y)),fe.add(new go.PathSegment(go.PathSegment.Line,.4*a,.75*y)),fe.add(new go.PathSegment(go.PathSegment.Line,.4*a,.25*y)),fe.add(new go.PathSegment(go.PathSegment.Line,.2*a,.25*y)),fe.add(new go.PathSegment(go.PathSegment.Line,.2*a,.75*y)),x}),go.Shape.defineFigureGenerator("Ground",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return x.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)),x}),go.Shape.defineFigureGenerator("Inverter",function(ee,a,y){var x=new go.Geometry,b=ne*.1,z=.1,te=.9,le=.5,fe=new go.PathFigure(.8*a,.5*y,!0);x.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,0,y)),fe.add(new go.PathSegment(go.PathSegment.Line,0,0)),fe.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y));var ge=new go.PathFigure((te+z)*a,le*y,!0);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(le+z)*y,(te+z)*a,(le+b)*y,(te+b)*a,(le+z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,le*y,(te-b)*a,(le+z)*y,(te-z)*a,(le+b)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(le-z)*y,(te-z)*a,(le-b)*y,(te-b)*a,(le-z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,le*y,(te+b)*a,(le-z)*y,(te+z)*a,(le-b)*y)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.4,.75),x}),go.Shape.defineFigureGenerator("NandGate",function(ee,a,y){var x=new go.Geometry,b=ne*.5,z=ne*.4,te=ne*.1,le=.1,fe=.9,ge=.5,me=new go.PathFigure(.8*a,.5*y,!0);x.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,.8*a,(.5+z)*y,(.4+b)*a,y)),me.add(new go.PathSegment(go.PathSegment.Line,0,y)),me.add(new go.PathSegment(go.PathSegment.Line,0,0)),me.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(.4+b)*a,0,.8*a,(.5-z)*y));var he=new go.PathFigure((fe+le)*a,ge*y,!0);return x.add(he),he.add(new go.PathSegment(go.PathSegment.Bezier,fe*a,(ge+le)*y,(fe+le)*a,(ge+te)*y,(fe+te)*a,(ge+le)*y)),he.add(new go.PathSegment(go.PathSegment.Bezier,(fe-le)*a,ge*y,(fe-te)*a,(ge+le)*y,(fe-le)*a,(ge+te)*y)),he.add(new go.PathSegment(go.PathSegment.Bezier,fe*a,(ge-le)*y,(fe-le)*a,(ge-te)*y,(fe-te)*a,(ge-le)*y)),he.add(new go.PathSegment(go.PathSegment.Bezier,(fe+le)*a,ge*y,(fe+te)*a,(ge-le)*y,(fe+le)*a,(ge-te)*y)),x.spot1=new go.Spot(0,.05),x.spot2=new go.Spot(.55,.95),x}),go.Shape.defineFigureGenerator("NorGate",function(ee,a,y){var x=new go.Geometry,b=.5,z=ne*b,te=0,le=.5,fe=new go.PathFigure(.8*a,.5*y,!0);x.add(fe),fe.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.7*a,(le+z)*y,(te+z)*a,(le+b)*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(te+z)*a,(le-b)*y,.7*a,(le-z)*y)),b=.1,z=ne*.1,te=.9,le=.5;var ge=new go.PathFigure((te-b)*a,le*y,!0);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(le-b)*y,(te-b)*a,(le-z)*y,(te-z)*a,(le-b)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te+b)*a,le*y,(te+z)*a,(le-b)*y,(te+b)*a,(le-z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(le+b)*y,(te+b)*a,(le+z)*y,(te+z)*a,(le+b)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te-b)*a,le*y,(te-z)*a,(le+b)*y,(te-b)*a,(le+z)*y)),x.spot1=new go.Spot(.2,.25),x.spot2=new go.Spot(.6,.75),x}),go.Shape.defineFigureGenerator("OrGate",function(ee,a,y){var x=new go.Geometry,b=.5,z=ne*b,te=0,le=.5,fe=new go.PathFigure(0,0,!0);return x.add(fe),fe.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(te+z+z)*a,(le-b)*y,.8*a,(le-z)*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.8*a,(le+z)*y,(te+z+z)*a,(le+b)*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y).close()),x.spot1=new go.Spot(.2,.25),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("XnorGate",function(ee,a,y){var x=new go.Geometry,b=.5,z=ne*b,te=.2,le=.5,fe=new go.PathFigure(.1*a,0,!1);x.add(fe),fe.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var ge=new go.PathFigure(.8*a,.5*y,!0);x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.7*a,(le+z)*y,(te+z)*a,(le+b)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(te+z)*a,(le-b)*y,.7*a,(le-z)*y)),b=.1,z=ne*.1,te=.9,le=.5;var me=new go.PathFigure((te-b)*a,le*y,!0);return x.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(le-b)*y,(te-b)*a,(le-z)*y,(te-z)*a,(le-b)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(te+b)*a,le*y,(te+z)*a,(le-b)*y,(te+b)*a,(le-z)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(le+b)*y,(te+b)*a,(le+z)*y,(te+z)*a,(le+b)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(te-b)*a,le*y,(te-z)*a,(le+b)*y,(te-b)*a,(le+z)*y)),x.spot1=new go.Spot(.4,.25),x.spot2=new go.Spot(.65,.75),x}),go.Shape.defineFigureGenerator("XorGate",function(ee,a,y){var x=new go.Geometry,b=.5,z=ne*b,te=.2,le=.5,fe=new go.PathFigure(.1*a,0,!1);x.add(fe),fe.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var ge=new go.PathFigure(.2*a,0,!0);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(te+z)*a,(le-b)*y,.9*a,(le-z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.9*a,(le+z)*y,(te+z)*a,(le+b)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y).close()),x.spot1=new go.Spot(.4,.25),x.spot2=new go.Spot(.8,.75),x}),go.Shape.defineFigureGenerator("Capacitor",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.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)),x}),go.Shape.defineFigureGenerator("Resistor",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!1);return x.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)),x}),go.Shape.defineFigureGenerator("Inductor",function(ee,a,y){var x=new go.Geometry,b=ne*.1,z=.1,te=.1,le=.5,fe=new go.PathFigure((te-b*.5)*a,y,!1);return x.add(fe),fe.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,0,(te-b)*a,y,(te-z)*a,0)),te=.3,fe.add(new go.PathSegment(go.PathSegment.Bezier,te*a,y,(te+z)*a,0,(te+b)*a,y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,0,(te-b)*a,y,(te-z)*a,0)),te=.5,fe.add(new go.PathSegment(go.PathSegment.Bezier,te*a,y,(te+z)*a,0,(te+b)*a,y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,0,(te-b)*a,y,(te-z)*a,0)),te=.7,fe.add(new go.PathSegment(go.PathSegment.Bezier,te*a,y,(te+z)*a,0,(te+b)*a,y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,0,(te-b)*a,y,(te-z)*a,0)),te=.9,fe.add(new go.PathSegment(go.PathSegment.Bezier,(te+b*.5)*a,y,(te+z)*a,0,(te+b)*a,y)),x}),go.Shape.defineFigureGenerator("ACvoltageSource",function(ee,a,y){var x=new go.Geometry,b=ne*.5,z=.5,te=.5,le=.5,fe=new go.PathFigure((te-z)*a,le*y,!1);return x.add(fe),fe.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(le-z)*y,(te-z)*a,(le-b)*y,(te-b)*a,(le-z)*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,le*y,(te+b)*a,(le-z)*y,(te+z)*a,(le-b)*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(le+z)*y,(te+z)*a,(le+b)*y,(te+b)*a,(le+z)*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,le*y,(te-b)*a,(le+z)*y,(te-z)*a,(le+b)*y)),fe.add(new go.PathSegment(go.PathSegment.Move,(te-z+.1)*a,le*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(te+z-.1)*a,le*y,te*a,(le-z)*y,te*a,(le+z)*y)),x}),go.Shape.defineFigureGenerator("DCvoltageSource",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return x.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)),x}),go.Shape.defineFigureGenerator("Diode",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(a,0,!1);return x.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)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("Wifi",function(ee,a,y){var x=new go.Geometry,b=a,z=y;a=a*.38,y=y*.6;var te=ne*.8,le=.8,fe=0,ge=.5,me=(b-a)/2,he=(z-y)/2,Se=new go.PathFigure(fe*a+me,(ge+le)*y+he,!0);x.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,(fe-le)*a+me,ge*y+he,(fe-te)*a+me,(ge+le)*y+he,(fe-le)*a+me,(ge+te)*y+he)),Se.add(new go.PathSegment(go.PathSegment.Bezier,fe*a+me,(ge-le)*y+he,(fe-le)*a+me,(ge-te)*y+he,(fe-te)*a+me,(ge-le)*y+he)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(fe-le+te*.5)*a+me,ge*y+he,fe*a+me,(ge-le)*y+he,(fe-le+te*.5)*a+me,(ge-te)*y+he)),Se.add(new go.PathSegment(go.PathSegment.Bezier,fe*a+me,(ge+le)*y+he,(fe-le+te*.5)*a+me,(ge+te)*y+he,fe*a+me,(ge+le)*y+he).close()),te=ne*.4,le=.4,fe=.2,ge=.5;var ye=new go.PathFigure(fe*a+me,(ge+le)*y+he,!0);x.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,(fe-le)*a+me,ge*y+he,(fe-te)*a+me,(ge+le)*y+he,(fe-le)*a+me,(ge+te)*y+he)),ye.add(new go.PathSegment(go.PathSegment.Bezier,fe*a+me,(ge-le)*y+he,(fe-le)*a+me,(ge-te)*y+he,(fe-te)*a+me,(ge-le)*y+he)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(fe-le+te*.5)*a+me,ge*y+he,fe*a+me,(ge-le)*y+he,(fe-le+te*.5)*a+me,(ge-te)*y+he)),ye.add(new go.PathSegment(go.PathSegment.Bezier,fe*a+me,(ge+le)*y+he,(fe-le+te*.5)*a+me,(ge+te)*y+he,fe*a+me,(ge+le)*y+he).close()),te=ne*.2,le=.2,fe=.5,ge=.5;var Pe=new go.PathFigure((fe-le)*a+me,ge*y+he,!0);x.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,fe*a+me,(ge-le)*y+he,(fe-le)*a+me,(ge-te)*y+he,(fe-te)*a+me,(ge-le)*y+he)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(fe+le)*a+me,ge*y+he,(fe+te)*a+me,(ge-le)*y+he,(fe+le)*a+me,(ge-te)*y+he)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,fe*a+me,(ge+le)*y+he,(fe+le)*a+me,(ge+te)*y+he,(fe+te)*a+me,(ge+le)*y+he)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(fe-le)*a+me,ge*y+he,(fe-te)*a+me,(ge+le)*y+he,(fe-le)*a+me,(ge+te)*y+he)),te=ne*.4,le=.4,fe=.8,ge=.5;var we=new go.PathFigure(fe*a+me,(ge-le)*y+he,!0);x.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,(fe+le)*a+me,ge*y+he,(fe+te)*a+me,(ge-le)*y+he,(fe+le)*a+me,(ge-te)*y+he)),we.add(new go.PathSegment(go.PathSegment.Bezier,fe*a+me,(ge+le)*y+he,(fe+le)*a+me,(ge+te)*y+he,(fe+te)*a+me,(ge+le)*y+he)),we.add(new go.PathSegment(go.PathSegment.Bezier,(fe+le-te*.5)*a+me,ge*y+he,fe*a+me,(ge+le)*y+he,(fe+le-te*.5)*a+me,(ge+te)*y+he)),we.add(new go.PathSegment(go.PathSegment.Bezier,fe*a+me,(ge-le)*y+he,(fe+le-te*.5)*a+me,(ge-te)*y+he,fe*a+me,(ge-le)*y+he).close()),te=ne*.8,le=.8,fe=1,ge=.5;var De=new go.PathFigure(fe*a+me,(ge-le)*y+he,!0);return x.add(De),De.add(new go.PathSegment(go.PathSegment.Bezier,(fe+le)*a+me,ge*y+he,(fe+te)*a+me,(ge-le)*y+he,(fe+le)*a+me,(ge-te)*y+he)),De.add(new go.PathSegment(go.PathSegment.Bezier,fe*a+me,(ge+le)*y+he,(fe+le)*a+me,(ge+te)*y+he,(fe+te)*a+me,(ge+le)*y+he)),De.add(new go.PathSegment(go.PathSegment.Bezier,(fe+le-te*.5)*a+me,ge*y+he,fe*a+me,(ge+le)*y+he,(fe+le-te*.5)*a+me,(ge+te)*y+he)),De.add(new go.PathSegment(go.PathSegment.Bezier,fe*a+me,(ge-le)*y+he,(fe+le-te*.5)*a+me,(ge-te)*y+he,fe*a+me,(ge-le)*y+he).close()),x}),go.Shape.defineFigureGenerator("Email",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.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 z=new go.PathFigure(0,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Move,0,y)),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.54*y)),z.add(new go.PathSegment(go.PathSegment.Move,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.54*y)),x}),go.Shape.defineFigureGenerator("Ethernet",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(.35*a,0,!0);x.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 z=new go.PathFigure(.1*a,y,!0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var te=new go.PathFigure(.6*a,y,!0,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,.6*y)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,y).close());var le=new go.PathFigure(0,.5*y,!1);return x.add(le),le.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),le.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),le.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),le.add(new go.PathSegment(go.PathSegment.Move,.75*a,.5*y)),le.add(new go.PathSegment(go.PathSegment.Line,.75*a,.6*y)),le.add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)),le.add(new go.PathSegment(go.PathSegment.Line,.25*a,.6*y)),x}),go.Shape.defineFigureGenerator("Power",function(ee,a,y){var x=new go.Geometry,b=ne*.4,z=.4,te=.5,le=.5,fe=be(),ge=be(),me=be(),he=be();pe(te,le-z,te+b,le-z,te+z,le-b,te+z,le,.5,fe,fe,ge,me,he);var Se=ve(ge.x,ge.y),ye=new go.PathFigure(ge.x*a,ge.y*y,!0);x.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,le*y,me.x*a,me.y*y,he.x*a,he.y*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(le+z)*y,(te+z)*a,(le+b)*y,(te+b)*a,(le+z)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,le*y,(te-b)*a,(le+z)*y,(te-z)*a,(le+b)*y)),pe(te-z,le,te-z,le-b,te-b,le-z,te,le-z,.5,me,he,ge,fe,fe),ye.add(new go.PathSegment(go.PathSegment.Bezier,ge.x*a,ge.y*y,me.x*a,me.y*y,he.x*a,he.y*y)),b=ne*.3,z=.3,pe(te-z,le,te-z,le-b,te-b,le-z,te,le-z,.5,me,he,ge,fe,fe),ye.add(new go.PathSegment(go.PathSegment.Line,ge.x*a,ge.y*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,le*y,he.x*a,he.y*y,me.x*a,me.y*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(le+z)*y,(te-z)*a,(le+b)*y,(te-b)*a,(le+z)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,le*y,(te+b)*a,(le+z)*y,(te+z)*a,(le+b)*y)),pe(te,le-z,te+b,le-z,te+z,le-b,te+z,le,.5,fe,fe,ge,me,he),ye.add(new go.PathSegment(go.PathSegment.Bezier,ge.x*a,ge.y*y,he.x*a,he.y*y,me.x*a,me.y*y).close());var ye=new go.PathFigure(.45*a,0,!0);return x.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),ye.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),ye.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),_e(fe),_e(ge),_e(me),_e(he),_e(Se),x.spot1=new go.Spot(.25,.45),x.spot2=new go.Spot(.75,.8),x}),go.Shape.defineFigureGenerator("Fallout",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y/2,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,180,360,a/2,y/2,a/2,y/2));function z(te,le,fe){te.add(new go.PathSegment(go.PathSegment.Move,(.3+le)*a,(.8+fe)*y)),te.add(new go.PathSegment(go.PathSegment.Line,(.5+le)*a,(.5+fe)*y)),te.add(new go.PathSegment(go.PathSegment.Line,(.1+le)*a,(.5+fe)*y)),te.add(new go.PathSegment(go.PathSegment.Line,(.3+le)*a,(.8+fe)*y).close())}return z(b,0,0),z(b,.4,0),z(b,.2,-.3),x}),go.Shape.defineFigureGenerator("IrritationHazard",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(.2*a,0,!0);return x.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()),x.spot1=new go.Spot(.3,.3),x.spot2=new go.Spot(.7,.7),x}),go.Shape.defineFigureGenerator("ElectricalHazard",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(.37*a,0,!0);return x.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()),x}),go.Shape.defineFigureGenerator("FireHazard",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(.1*a,y,!0);return x.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()),x.spot1=new go.Spot(.07,.445),x.spot2=new go.Spot(.884,.958),x}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(ee,a,y){var x=new go.Geometry,b=.5,z=0,te=0,le=b*ne,fe=.4*Math.SQRT2/2+.5,ge=.5-.5*Math.SQRT2/2,me=1,he=.5,Se=.5,ye=0,Pe=new go.PathFigure(fe*a,(1-ge)*y,!1);return x.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,me*a,he*y,me*a,.7*y,me*a,he*y)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(Se+z)*a,(ye+z)*y,(.5+b+z)*a,(.5-le+z)*y,(.5+le+z)*a,(.5-b+z)*y)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+z)*a,(.5+te)*y,(.5-le+z)*a,(.5-b+te)*y,(.5-b+z)*a,(.5-le+te)*y)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(.35+z)*a,.9*y,(.5-b+z)*a,(.5+le+te)*y,(.5-le+z)*a,.9*y)),Pe.add(new go.PathSegment(go.PathSegment.Move,(.25+z)*a,.8*y)),Pe.add(new go.PathSegment(go.PathSegment.Line,(.35+z)*a,.9*y)),Pe.add(new go.PathSegment(go.PathSegment.Line,(.2+z)*a,.95*y)),x}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.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)),x}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.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)),x}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b);var z=new go.PathFigure(a,y,!1);x.add(z);var te=new go.PathFigure(0,.5*y,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.2*a,.35*y,.3*a,.35*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.7*a,.65*y,.8*a,.65*y)),x}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return x.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()),x}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);x.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 x.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)),x}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(.7*a,y,!0);x.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 z=new go.PathFigure(.45*a,.73*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.7*a,.73*y)),z.add(new go.PathSegment(go.PathSegment.Move,.38*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.63*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Move,.31*a,.27*y)),z.add(new go.PathSegment(go.PathSegment.Line,.56*a,.27*y)),x}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b);var z=new go.PathFigure(.335*a,(1-.555)*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.68*y,(1-.12)*a,.46*y,(1-.02)*a,.54*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.68*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.335*a,(1-.555)*y,.02*a,.54*y,.12*a,.46*y)),z.add(new go.PathSegment(go.PathSegment.Line,.365*a,(1-.595)*y));var te=.5-.285,le=.5,fe=te,ge=Math.PI/4,me=4*(1-Math.cos(ge))/(3*Math.sin(ge)),he=me*.5,Se=te,ye=te,Pe=me*Se,we=me*ye;z.add(new go.PathSegment(go.PathSegment.Bezier,(le-Se)*a,fe*y,(le-(Pe+Se)/2)*a,(fe+(ye+we)/2)*y,(le-Se)*a,(fe+we)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,le*a,(fe-ye)*y,(le-Se)*a,(fe-we)*y,(le-Pe)*a,(fe-ye)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,(le+Se)*a,fe*y,(le+Pe)*a,(fe-ye)*y,(le+Se)*a,(fe-we)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(le+Se)*a,(fe+we)*y,(le+(Pe+Se)/2)*a,(fe+(ye+we)/2)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*a,(1-.595)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),z.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y));var De=new go.PathFigure(.2*a,y,!1);x.add(De),De.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var Ee=new go.PathFigure(.8*a,y,!1);return x.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),x}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(.1*a,0,!0);x.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 z=new go.PathFigure(.2*a,.2*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),z.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),z.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Move,.2*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),x}),go.Shape.defineFigureGenerator("BpmnEventError",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);return x.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()),x}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b);var z=new go.PathFigure(a,y,!1);x.add(z);var te=new go.PathFigure(.1*a,y,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),te.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),x}),go.Shape.defineFigureGenerator("Caution",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(.05*a,y,!0);x.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 z=.05;return b.add(new go.PathSegment(go.PathSegment.Move,(.5-z)*a,.875*y)),b.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*a,.875*y,z*a,z*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)),x}),go.Shape.defineFigureGenerator("Recycle",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(.45*a,.95*y,!1);x.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 z=new go.PathFigure(.475*a,.2*y,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,.4*y)),z.add(new go.PathSegment(go.PathSegment.Line,.225*a,.3*y)),z.add(new go.PathSegment(go.PathSegment.Line,.275*a,.175*y)),z.add(new go.PathSegment(go.PathSegment.Line,.325*a,.05*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.05*y,.35*a,0,.375*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.575*a,.375*y)),z.add(new go.PathSegment(go.PathSegment.Line,.525*a,.4*y)),z.add(new go.PathSegment(go.PathSegment.Line,.75*a,.475*y)),z.add(new go.PathSegment(go.PathSegment.Line,.85*a,.315*y)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,.32*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.05*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,0,.65*a,.05*y,.625*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.38*a,.0105*y));var te=new go.PathFigure(.675*a,.575*y,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.875*a,.525*y)),te.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,.85*a,.95*y,a,.8*y,a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.65*a,.95*y)),te.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.55*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.65*a,.725*y)),te.add(new go.PathSegment(go.PathSegment.Line,.65*a,.775*y)),te.add(new go.PathSegment(go.PathSegment.Line,.7*a,.775*y)),te.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),te.add(new go.PathSegment(go.PathSegment.Move,.675*a,.575*y)),te.add(new go.PathSegment(go.PathSegment.Line,.775*a,.775*y)),x}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(ee,a,y){var x=new go.Geometry,b=.5,z=ne*.5,te=new go.PathFigure(a,b*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,b*a,y,a,(b+z)*y,(b+z)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,b*y,(b-z)*a,y,0,(b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,b*a,0,0,(b-z)*y,(b-z)*a,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,b*y,(b+z)*a,0,a,(b-z)*y));var le=new go.PathFigure(b*a,0,!1);return x.add(le),le.add(new go.PathSegment(go.PathSegment.Line,b*a,.15*y)),le.add(new go.PathSegment(go.PathSegment.Move,b*a,y)),le.add(new go.PathSegment(go.PathSegment.Line,b*a,.85*y)),le.add(new go.PathSegment(go.PathSegment.Move,0,b*y)),le.add(new go.PathSegment(go.PathSegment.Line,.15*a,b*y)),le.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),le.add(new go.PathSegment(go.PathSegment.Line,.85*a,b*y)),le.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),le.add(new go.PathSegment(go.PathSegment.Line,.58*a,.1*y)),le.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),le.add(new go.PathSegment(go.PathSegment.Line,.78*a,.54*y)),x}),go.Shape.defineFigureGenerator("Package",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.15*y,!0);x.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 z=new go.PathFigure(0,.15*y,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,0)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.15*y).close()),x.spot1=new go.Spot(0,.1),x.spot2=new go.Spot(1,1),x}),go.Shape.defineFigureGenerator("Class",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.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 z=new go.PathFigure(0,.2*y,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var te=new go.PathFigure(0,.5*y,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close()),x}),go.Shape.defineFigureGenerator("Component",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(a,y,!0);x.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 z=new go.PathFigure(0,.2*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.2*y)),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.4*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close());var te=new go.PathFigure(0,.6*y,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.45*a,.6*y)),te.add(new go.PathSegment(go.PathSegment.Line,.45*a,.8*y)),te.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),te.add(new go.PathSegment(go.PathSegment.Line,0,.6*y).close()),x}),go.Shape.defineFigureGenerator("Boat Shipment",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(.15*a,.6*y,!0);x.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 z=new go.PathFigure(.15*a,.6*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),x}),go.Shape.defineFigureGenerator("Customer/Supplier",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(a,y,!0);return x.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()),x}),go.Shape.defineFigureGenerator("Workcell",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);return x.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()),x}),go.Shape.defineFigureGenerator("Supermarket",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.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)),x}),go.Shape.defineFigureGenerator("TruckShipment",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.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 z=new go.PathFigure(a,.8*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,.4*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.8*y).close());var te=.1,le=ne*.1,fe=.2,ge=.9,me=new go.PathFigure((fe-te)*a,ge*y,!0);x.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,fe*a,(ge-te)*y,(fe-te)*a,(ge-le)*y,(fe-le)*a,(ge-te)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(fe+te)*a,ge*y,(fe+le)*a,(ge-te)*y,(fe+te)*a,(ge-le)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,fe*a,(ge+te)*y,(fe+te)*a,(ge+le)*y,(fe+le)*a,(ge+te)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(fe-te)*a,ge*y,(fe-le)*a,(ge+te)*y,(fe-te)*a,(ge+le)*y).close()),te=.1,le=ne*.1,fe=.8,ge=.9;var he=new go.PathFigure((fe-te)*a,ge*y,!0);return x.add(he),he.add(new go.PathSegment(go.PathSegment.Bezier,fe*a,(ge-te)*y,(fe-te)*a,(ge-le)*y,(fe-le)*a,(ge-te)*y)),he.add(new go.PathSegment(go.PathSegment.Bezier,(fe+te)*a,ge*y,(fe+le)*a,(ge-te)*y,(fe+te)*a,(ge-le)*y)),he.add(new go.PathSegment(go.PathSegment.Bezier,fe*a,(ge+te)*y,(fe+te)*a,(ge+le)*y,(fe+le)*a,(ge+te)*y)),he.add(new go.PathSegment(go.PathSegment.Bezier,(fe-te)*a,ge*y,(fe-le)*a,(ge+te)*y,(fe-te)*a,(ge+le)*y).close()),x}),go.Shape.defineFigureGenerator("KanbanPost",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(.2*a,0,!1);return x.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)),x}),go.Shape.defineFigureGenerator("Forklift",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.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 z=new go.PathFigure(0,.5*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var te=new go.PathFigure(.5*a,.8*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.5*a,.1*y)),te.add(new go.PathSegment(go.PathSegment.Line,.55*a,.1*y)),te.add(new go.PathSegment(go.PathSegment.Line,.55*a,.8*y)),te.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y));var le=new go.PathFigure(.5*a,.7*y,!1);x.add(le),le.add(new go.PathSegment(go.PathSegment.Line,a,.7*y));var fe=.1,ge=ne*.1,me=.1,he=.9,Se=new go.PathFigure((me-fe)*a,he*y,!0);x.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(he-fe)*y,(me-fe)*a,(he-ge)*y,(me-ge)*a,(he-fe)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(me+fe)*a,he*y,(me+ge)*a,(he-fe)*y,(me+fe)*a,(he-ge)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(he+fe)*y,(me+fe)*a,(he+ge)*y,(me+ge)*a,(he+fe)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(me-fe)*a,he*y,(me-ge)*a,(he+fe)*y,(me-fe)*a,(he+ge)*y)),fe=.1,ge=ne*.1,me=.4,he=.9;var ye=new go.PathFigure((me-fe)*a,he*y,!0);return x.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(he-fe)*y,(me-fe)*a,(he-ge)*y,(me-ge)*a,(he-fe)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(me+fe)*a,he*y,(me+ge)*a,(he-fe)*y,(me+fe)*a,(he-ge)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(he+fe)*y,(me+fe)*a,(he+ge)*y,(me+ge)*a,(he+fe)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(me-fe)*a,he*y,(me-ge)*a,(he+fe)*y,(me-fe)*a,(he+ge)*y)),x}),go.Shape.defineFigureGenerator("RailShipment",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(.1*a,.4*y,!0);x.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 z=new go.PathFigure(.45*a,.7*y,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y));var te=new go.PathFigure(.55*a,.4*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),te.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.55*a,.4*y).close());var me=.05,he=ne*.05,Se=.175,ye=.95,le=new go.PathFigure((Se-me)*a,ye*y,!0);x.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(ye-me)*y,(Se-me)*a,(ye-he)*y,(Se-he)*a,(ye-me)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(Se+me)*a,ye*y,(Se+he)*a,(ye-me)*y,(Se+me)*a,(ye-he)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(ye+me)*y,(Se+me)*a,(ye+he)*y,(Se+he)*a,(ye+me)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(Se-me)*a,ye*y,(Se-he)*a,(ye+me)*y,(Se-me)*a,(ye+he)*y));var me=.05,he=ne*.05,Se=.375,ye=.95,fe=new go.PathFigure((Se-me)*a,ye*y,!0);x.add(fe),fe.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(ye-me)*y,(Se-me)*a,(ye-he)*y,(Se-he)*a,(ye-me)*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(Se+me)*a,ye*y,(Se+he)*a,(ye-me)*y,(Se+me)*a,(ye-he)*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(ye+me)*y,(Se+me)*a,(ye+he)*y,(Se+he)*a,(ye+me)*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(Se-me)*a,ye*y,(Se-he)*a,(ye+me)*y,(Se-me)*a,(ye+he)*y));var me=.05,he=ne*.05,Se=.625,ye=.95,ge=new go.PathFigure((Se-me)*a,ye*y,!0);x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(ye-me)*y,(Se-me)*a,(ye-he)*y,(Se-he)*a,(ye-me)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(Se+me)*a,ye*y,(Se+he)*a,(ye-me)*y,(Se+me)*a,(ye-he)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(ye+me)*y,(Se+me)*a,(ye+he)*y,(Se+he)*a,(ye+me)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(Se-me)*a,ye*y,(Se-he)*a,(ye+me)*y,(Se-me)*a,(ye+he)*y));var me=.05,he=ne*.05,Se=.825,ye=.95,Pe=new go.PathFigure((Se-me)*a,ye*y,!0);x.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(ye-me)*y,(Se-me)*a,(ye-he)*y,(Se-he)*a,(ye-me)*y)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(Se+me)*a,ye*y,(Se+he)*a,(ye-me)*y,(Se+me)*a,(ye-he)*y)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(ye+me)*y,(Se+me)*a,(ye+he)*y,(Se+he)*a,(ye+me)*y)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(Se-me)*a,ye*y,(Se-he)*a,(ye+me)*y,(Se-me)*a,(ye+he)*y).close());var we=new go.PathFigure(0,y,!1);return x.add(we),we.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),x}),go.Shape.defineFigureGenerator("Warehouse",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.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 z=new go.PathFigure(0,.2*y,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var te=new go.PathFigure(.15*a,y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.15*a,.5*y)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.15*a,y).close());var le=.05,fe=ne*.05,ge=.35,me=.775,he=new go.PathFigure((ge-le)*a,me*y,!0);return x.add(he),he.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(me-le)*y,(ge-le)*a,(me-fe)*y,(ge-fe)*a,(me-le)*y)),he.add(new go.PathSegment(go.PathSegment.Bezier,(ge+le)*a,me*y,(ge+fe)*a,(me-le)*y,(ge+le)*a,(me-fe)*y)),he.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(me+le)*y,(ge+le)*a,(me+fe)*y,(ge+fe)*a,(me+le)*y)),he.add(new go.PathSegment(go.PathSegment.Bezier,(ge-le)*a,me*y,(ge-fe)*a,(me+le)*y,(ge-le)*a,(me+fe)*y).close()),x}),go.Shape.defineFigureGenerator("ControlCenter",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);return x.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()),x}),go.Shape.defineFigureGenerator("Bluetooth",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return x.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)),x}),go.Shape.defineFigureGenerator("Bookmark",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.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)),x}),go.Shape.defineFigureGenerator("Bookmark",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.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)),x}),go.Shape.defineFigureGenerator("Globe",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return x.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)),x}),go.Shape.defineFigureGenerator("Wave",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.25*y,!1);return x.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)),x}),go.Shape.defineFigureGenerator("Operator",function(ee,a,y){var x=new go.Geometry,b=.3,z=ne*.3,te=.5,le=.7,fe=new go.PathFigure((te-b)*a,le*y,!0);x.add(fe),fe.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(le-b)*y,(te-b)*a,(le-z)*y,(te-z)*a,(le-b)*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(te+b)*a,le*y,(te+z)*a,(le-b)*y,(te+b)*a,(le-z)*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(le+b)*y,(te+b)*a,(le+z)*y,(te+z)*a,(le+b)*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(te-b)*a,le*y,(te-z)*a,(le+b)*y,(te-b)*a,(le+z)*y));var ge=new go.PathFigure(0,.7*y,!1);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,a,.7*y,0,0,a,0)),x}),go.Shape.defineFigureGenerator("TripleFanBlades",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);return x.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)),x}),go.Shape.defineFigureGenerator("CentrifugalPump",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(a,0,!0);return x.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)),x}),go.Shape.defineFigureGenerator("Battery",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);x.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 z=new go.PathFigure(0,.6*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Move,0,.4*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),x}),go.Shape.defineFigureGenerator("Delete",function(ee,a,y){var x=new go.Geometry,b=.5,z=ne*.5,te=.5,le=.5,fe=new go.PathFigure((te-b)*a,le*y,!0);x.add(fe),fe.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(le-b)*y,(te-b)*a,(le-z)*y,(te-z)*a,(le-b)*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(te+b)*a,le*y,(te+z)*a,(le-b)*y,(te+b)*a,(le-z)*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(le+b)*y,(te+b)*a,(le+z)*y,(te+z)*a,(le+b)*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(te-b)*a,le*y,(te-z)*a,(le+b)*y,(te-b)*a,(le+z)*y));var ge=new go.PathFigure(.15*a,.5*y,!1);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.85*a,.5*y)),x}),go.Shape.defineFigureGenerator("Flag",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.1*y,!0);return x.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()),x}),go.Shape.defineFigureGenerator("Help",function(ee,a,y){var x=new go.Geometry,b=.5,z=ne*.5,te=.5,le=.5,fe=new go.PathFigure((te-b)*a,le*y,!1);x.add(fe),fe.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(le-b)*y,(te-b)*a,(le-z)*y,(te-z)*a,(le-b)*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(te+b)*a,le*y,(te+z)*a,(le-b)*y,(te+b)*a,(le-z)*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(le+b)*y,(te+b)*a,(le+z)*y,(te+z)*a,(le+b)*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(te-b)*a,le*y,(te-z)*a,(le+b)*y,(te-b)*a,(le+z)*y).close()),b=.05,z=ne*.05,te=.5,le=.8;var ge=new go.PathFigure((te-b)*a,le*y,!1);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(le-b)*y,(te-b)*a,(le-z)*y,(te-z)*a,(le-b)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te+b)*a,le*y,(te+z)*a,(le-b)*y,(te+b)*a,(le-z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(le+b)*y,(te+b)*a,(le+z)*y,(te+z)*a,(le+b)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te-b)*a,le*y,(te-z)*a,(le+b)*y,(te-b)*a,(le+z)*y).close()),ge.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),ge.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,.75*a,.475*y,.75*a,.225*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.35*y,.4*a,.2*y,.3*a,.25*y)),x}),go.Shape.defineFigureGenerator("Location",function(ee,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(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);x.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 z=new go.PathFigure(.2*a,.5*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,.3*y)),x}),go.Shape.defineFigureGenerator("Unlocked",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);x.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 z=new go.PathFigure(.2*a,.5*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,.35*y)),x}),go.Shape.defineFigureGenerator("Gear",function(ee,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(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return x.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()),x}),go.Shape.defineFigureGenerator("Map",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);return x.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)),x}),go.Shape.defineFigureGenerator("Eject",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);x.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 z=new go.PathFigure(0,y*.6,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close()),x}),go.Shape.defineFigureGenerator("Pencil",function(ee,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(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(a*1,y*1,!1);x.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 z=new go.PathFigure(.126*a,.85*y,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.126*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.322*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.322*a,.85*y).close());var te=new go.PathFigure(.402*a,.85*y,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.402*a,.45*y)),te.add(new go.PathSegment(go.PathSegment.Line,.598*a,.45*y)),te.add(new go.PathSegment(go.PathSegment.Line,.598*a,.85*y).close());var le=new go.PathFigure(.678*a,.85*y,!1);x.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.678*a,.45*y)),le.add(new go.PathSegment(go.PathSegment.Line,.874*a,.45*y)),le.add(new go.PathSegment(go.PathSegment.Line,.874*a,.85*y).close());var fe=new go.PathFigure(.5*a,.1*y,!1);return x.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*a,.3*y)),fe.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*a,.3*y).close()),x}),go.Shape.defineFigureGenerator("Staircase",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y*1,!0);return x.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()),x}),go.Shape.defineFigureGenerator("5Bars",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y*1,!0);x.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 z=new go.PathFigure(a*.204,y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.204,y*(1-.184))),z.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*(1-.184*2))),z.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*1).close());var te=new go.PathFigure(a*.408,y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.408,y*(1-.184*2))),te.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*(1-.184*3))),te.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*1).close());var le=new go.PathFigure(a*.612,y,!0);x.add(le),le.add(new go.PathSegment(go.PathSegment.Line,a*.612,y*(1-.184*3))),le.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*(1-.184*4))),le.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*1).close());var fe=new go.PathFigure(a*.816,y,!0);return x.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,a*.816,y*(1-.184*4))),fe.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-.184*5))),fe.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1).close()),x}),go.Shape.defineFigureGenerator("PC",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.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 z=new go.PathFigure(a*.055,.07*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.07)),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.1)),z.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.1).close());var te=new go.PathFigure(a*.055,.13*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.13)),te.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.16)),te.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.16).close());var le=new go.PathFigure(a*.055,.18*y,!0);x.add(le),le.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.18)),le.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.21)),le.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.21).close());var fe=new go.PathFigure(a*1,0,!0);return x.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,a*.4,0)),fe.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.65)),fe.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.65).close()),x}),go.Shape.defineFigureGenerator("Plane",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(.55*a,y,!0);return x.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()),x}),go.Shape.defineFigureGenerator("Key",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(a*1,y*.5,!0);return x.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()),x}),go.Shape.defineFigureGenerator("FilmTape",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.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 z=new go.PathFigure(0,0,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*1,y*0)),z.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*1,a*.3,a*.055)),z.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var te=new go.PathFigure(a*.11,y*.1,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.1)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.8)),te.add(new go.PathSegment(go.PathSegment.Line,a*.11,y*.8).close());var le=new go.PathFigure(a*(.11+.24133333*1+.028*1),y*.1,!1);x.add(le),le.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.1)),le.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.8)),le.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*1),y*.8).close());var fe=new go.PathFigure(a*(.11+.24133333*2+.028*2),y*.1,!1);return x.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.1)),fe.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.8)),fe.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*2),y*.8).close()),x}),go.Shape.defineFigureGenerator("FloppyDisk",function(ee,a,y){var x=new go.Geometry,b=8,z=b*ne,te=new go.PathFigure(b,0,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.86,0)),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.14)),te.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),te.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-z,a-z,y)),te.add(new go.PathSegment(go.PathSegment.Line,b,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,z,y,0,y-z)),te.add(new go.PathSegment(go.PathSegment.Line,0,b)),te.add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,z,z,0).close());var le=new go.PathFigure(a*.83,0,!1);x.add(le),le.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.3)),le.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.3)),le.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*0).close());var fe=new go.PathFigure(a*.83,y*1,!1);x.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.5)),fe.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.5)),fe.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*1).close());var ge=new go.PathFigure(a*.78,y*.05,!1);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.05)),ge.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.25)),ge.add(new go.PathSegment(go.PathSegment.Line,a*.78,y*.25).close()),x}),go.Shape.defineFigureGenerator("SpeechBubble",function(ee,a,y){var x=ee?ee.parameter1:NaN;(isNaN(x)||x<0)&&(x=15),x=Math.min(x,a/3),x=Math.min(x,y/3);var b=x*ne,z=y*.8,te=new go.Geometry,le=new go.PathFigure(x,0,!0);return te.add(le),le.add(new go.PathSegment(go.PathSegment.Line,a-x,0)),le.add(new go.PathSegment(go.PathSegment.Bezier,a,x,a-b,0,a,b)),le.add(new go.PathSegment(go.PathSegment.Line,a,z-x)),le.add(new go.PathSegment(go.PathSegment.Bezier,a-x,z,a,z-b,a-b,z)),le.add(new go.PathSegment(go.PathSegment.Line,a*.7,z)),le.add(new go.PathSegment(go.PathSegment.Line,a*.7,y)),le.add(new go.PathSegment(go.PathSegment.Line,a*.55,z)),le.add(new go.PathSegment(go.PathSegment.Line,x,z)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,z-x,b,z,0,z-b)),le.add(new go.PathSegment(go.PathSegment.Line,0,x)),le.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,b,b,0).close()),b>1?(te.spot1=new go.Spot(0,0,b,b),te.spot2=new go.Spot(1,.8,-b,-b)):(te.spot1=go.Spot.TopLeft,te.spot2=new go.Spot(1,.8)),te}),go.Shape.defineFigureGenerator("Repeat",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*.45,!0);x.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 z=new go.PathFigure(a*1,y*.55,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*1)),z.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.55)),z.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.55)),z.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.1)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.1)),z.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.55).close()),x}),go.Shape.defineFigureGenerator("Windows",function(ee,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(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*.1,!1);x.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 z=new go.PathFigure(a*.1,y*.2,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.22,y*.285)),z.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.32)),z.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.37)),z.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.32)),z.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.25).close());var te=new go.PathFigure(a*.28,y*.37,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.37)),te.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.41)),te.add(new go.PathSegment(go.PathSegment.Line,a*.28,y*.41).close()),x}),go.Shape.defineFigureGenerator("Beaker",function(ee,a,y){var x=new go.Geometry,b=15,z=b*ne,te=new go.PathFigure(a*.62,y*.475,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),te.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-z,a-z,y)),te.add(new go.PathSegment(go.PathSegment.Line,b,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,z,y,0,y-z)),te.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.475)),te.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.03)),te.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*0)),te.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*0)),te.add(new go.PathSegment(go.PathSegment.Line,a*.62,y*.03).close()),z>1?(x.spot1=new go.Spot(0,0,z,z),x.spot2=new go.Spot(1,1,-z,-z)):(x.spot1=go.Spot.TopLeft,x.spot2=go.Spot.BottomRight),x}),go.Shape.defineFigureGenerator("Download",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);x.add(b);var z=.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-z))),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-z))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-z))),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-z))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-z))),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-z)).close());var te=new go.PathFigure(a*.4,y*0,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.44)),te.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.44)),te.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.66)),te.add(new go.PathSegment(go.PathSegment.Line,a*(1-.26),y*.44)),te.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.44)),te.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*0).close()),x}),go.Shape.defineFigureGenerator("Bin",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);x.add(b);var z=.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-z))),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-z))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-z))),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-z))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-z))),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-z)).close()),x}),go.Shape.defineFigureGenerator("Upload",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);x.add(b);var z=.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-z))),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-z))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-z))),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-z))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-z))),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-z)).close());var te=new go.PathFigure(a*.5,y*0,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.25)),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.25)),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.63)),te.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.63)),te.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.25)),te.add(new go.PathSegment(go.PathSegment.Line,a*.74,y*.25).close()),x}),go.Shape.defineFigureGenerator("EmptyDrink",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);return x.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()),x}),go.Shape.defineFigureGenerator("Drink",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);x.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 z=new go.PathFigure(a*.235,y*.28,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.765,y*.28)),z.add(new go.PathSegment(go.PathSegment.Line,a*.655,y*.97)),z.add(new go.PathSegment(go.PathSegment.Line,a*.345,y*.97).close()),x}),go.Shape.defineFigureGenerator("4Arrows",function(ee,a,y){var x=new go.Geometry,b=new go.PathFigure(a*.5,y*0,!0);return x.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()),x}),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")},93510: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 Et={},dt="5.0",ve={},be=null,_e=!1,E=!1,pe=null,de=!1,se=null,ne=null,ie=0;ie4?parseFloat(We):5};Et.setHTML5Codebase=function(We,ze){ne=We,qe(We,ze)},Et.setJavaCodebase=Et.setJavaCodebaseVersion=Et.isCompiledInstalled=Et.setPreCompiledScriptPath=Et.setPreCompiledResourcePath=function(){},Et.setHTML5CodebaseVersion=function(We,ze){var Ue=parseFloat(We);if(Ue!==NaN&&Ue<5){console.log("The GeoGebra HTML5 codebase version "+Ue+" is deprecated. Using version latest instead.");return}se=We,Je(We,ze)},Et.getHTML5CodebaseVersion=function(){return ee},Et.getParameters=function(){return ve},Et.setFontsCSSURL=function(We){te=We},Et.setGiacJSURL=function(We){},Et.setJNLPFile=function(We){ue=We},Et.setJNLPBaseDir=function(We){},Et.inject=function(){function We(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var ze="auto",Ue=ve.id,ot,Qe=!1,ut=0;ut=5)return!0;var We=Et.getAppletObject();return We&&typeof We.recalculateEnvironments=="function"?(We.recalculateEnvironments(),!0):!1},Et.startAnimation=function(){var We=Et.getAppletObject();return We&&typeof We.startAnimation=="function"?(We.startAnimation(),!0):!1},Et.stopAnimation=function(){var We=Et.getAppletObject();return We&&typeof We.stopAnimation=="function"?(We.stopAnimation(),!0):!1},Et.getAppletObject=function(){var We=ve.id!==void 0?ve.id:"ggbApplet";return window[We]},Et.resize=function(){};var Pe=function(We,ze,Ue){var ot=document.createElement("param");ot.setAttribute("name",ze),ot.setAttribute("value",Ue),We.appendChild(ot)},we=function(We){return We&&We!=="false"},De=function(We,ze,Ue){fe(ee)<=4.2&&(Ue=!0);var ot=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ee||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(ot=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Qe=document.createElement("div");Qe.classList.add("appletParameters","notranslate");var ut=ze.width,Ye=ze.height;if(ze.disableAutoScale=ze.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():ze.disableAutoScale,ze.width!==void 0)if(fe(ee)<=4.4)we(ze.showToolBar)&&(ze.height-=7),we(ze.showAlgebraInput)&&(ze.height-=37),ze.width<605&&we(ze.showToolBar)&&(ze.width=605,ut=605);else{var He=100;(we(ze.showToolBar)||we(ze.showMenuBar))&&(ze.hasOwnProperty("customToolBar")&&(ze.customToolbar=ze.customToolBar),He=we(ze.showMenuBar)?245:155),ut=5?(ze.appletOnLoad=function(ke){var tt=We.querySelector(".ggb_preview");tt&&tt.parentNode.removeChild(tt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Le),window.GGBT_wsf_view&&$(window).trigger("resize"),$e(ke)},Ne||Le.appendChild(et)):Qe.appendChild(et),Le.appendChild(Qe),Ne||We.appendChild(Le),setTimeout(function(){Et.resize()},1)}else{var Ze=document.createElement("div");Ze.className="applet_scaler",Ze.style.position="relative",Ze.style.display="block",Ze.appendChild(Qe),We.appendChild(Ze),ze.appletOnLoad=function(ke){Et.resize(),$e(ke)}}function Be(ke,tt){tt&&typeof tt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(ke,tt.appletOnLoad):renderGGBElement(ke),Xe("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",tt)}function Oe(ke,tt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:ke,params:tt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(mt){Be(mt.article,mt.params)}),html5AppletsToProcess=null)},fe(ee)<5&&(ke.className+=" geogebraweb")):Be(ke,tt)}if(ot){scriptLoadStarted=!0;for(var Te=0;Te0?(Re.remove(),Le.attr("id","fullscreencontent").show(),jQuery($e).append(Le),window.dispatchEvent(new Event("resize"))):De(Re,ze,!1),window.GGBT_wsf_view.launchFullScreen($e)}else re=ot,De(We,ze,!1);if(!window.GGBT_wsf_view)for(Ye=0;YeWe/4*3&&(Re=We/4*3),$e=Re/5.8,He.setAttribute("src",b),He.setAttribute("width",Re),He.setAttribute("height",$e);var Le=(We-Re)/2,Ne=(ze-$e)/2;He.style.left=Le+"px",He.style.top=Ne+"px",Qe.appendChild(He)}}return Qe.appendChild(Ye),Qe},Ge=function(We){return We=We.toLowerCase(),We==="html5"||We==="screenshot"?We:"html5"},Fe=["web","webSimple","web3d","tablet","tablet3d","phone"],Je=function(We,ze){if(ee=We,ze){qe(ee,!0);return}var Ue=!_e;if(Ue){var ot=fe(ee);!isNaN(ot)&&ot<4.4&&(Ue=!1)}var Qe,ut;window.location.protocol.substr(0,4)==="http"?Qe=window.location.protocol:Qe="http:";var Ye=ee.indexOf("//");Ye>0?ut=ee:Ye===0?ut=Qe+ee:ut="https://www.geogebra.org/apps/5.2.814.0/";for(var He in Fe)if(ee.slice(Fe[He].length*-1)===Fe[He]||ee.slice((Fe[He].length+1)*-1)===Fe[He]+"/"){qe(ut,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Ue&&!be.is3D&&!be.AV&&!be.SV&&!be.CV&&!be.EV2&&!be.CP&&!be.PC&&!be.DA&&!be.FI&&!be.PV&&!we(ve.showToolBar)&&!we(ve.showMenuBar)&&!we(ve.showAlgebraInput)&&!we(ve.enableRightClick)&&(!ve.appName||ve.appName=="classic")?ut+="webSimple/":ut+="web3d/",qe(ut,!1)},qe=function(We,ze){if(We.requirejs){ae=We;return}We.slice(-1)!=="/"&&(We+="/"),ae=We,ze===null&&(ze=We.indexOf("http")===-1),oe=ze,a="web.nocache.js",y=!1;var Ue=ae.split("/");Ue.length>1&&(!ze&&Ue[Ue.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):Fe.indexOf(Ue[Ue.length-2])>=0&&(a=Ue[Ue.length-2]+".nocache.js")),Ue=We.split("/"),ee=Ue[Ue.length-3],ee.substr(0,4)==="test"?ee=ee.substr(4,1)+"."+ee.substr(5,1):(ee.substr(0,3)==="war"||ee.substr(0,4)==="beta")&&(ee="5.0");var ot=parseFloat(ee);ot!==NaN&&ot<5&&We.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+ot+" is deprecated. Using version latest instead."),Je("5.0",ze))},Xe=function(We,ze){window.console&&window.console.log&&(!ze||typeof ze.showLogging=="undefined"||ze.showLogging&&ze.showLogging!=="false")&&console.log(We)};ve.material_id!==void 0?he(Ve):Ve();function Ve(){var We=dt;se!==null?We=se:parseFloat(We)<5&&(We="5.0"),Je(We,!1),ne!==null&&qe(ne,oe),de=!0}return Et},GGBAppletUtils=function(){"use strict";function Et(){return window.GGBT_wsf_edit!==void 0}function dt(de,se){se!=1?(de.style.transformOrigin="0% 0% 0px",de.style.webkitTransformOrigin="0% 0% 0px",de.style.transform="scale("+se+","+se+")",de.style.webkitTransform="scale("+se+","+se+")",de.style.maxWidth="initial",de.querySelector(".ggb_preview")!==null&&(de.querySelector(".ggb_preview").style.maxWidth="initial"),de.querySelectorAll(".ggb_preview img")[0]!==void 0&&(de.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),de.querySelectorAll(".ggb_preview img")[1]!==void 0&&(de.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(de.style.transform="none",de.style.webkitTransform="none")}function ve(de,se,ne,ie,ce,ue){var ae=null;if(ue!=null&&ue!="")for(var oe=de.parentNode;oe!=null;)if((" "+oe.className+" ").indexOf(" "+ue+" ")>-1){ae=oe;break}else oe=oe.parentNode;var re=0,ee=0,a=0,y=0,x=0,b=0,z=0;if(ae)re=ae.offsetWidth,ee=Math.max(ie?ae.offsetWidth:0,ae.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(re=Math.min(window.innerWidth,document.documentElement.clientWidth),ee=Math.min(window.innerHeight,document.documentElement.clientHeight),a=re):(re=window.innerWidth,ee=window.innerHeight,a=window.innerWidth),de){var te=de.getBoundingClientRect();te.left>0&&te.left<=re&&(ce===void 0||!ce)&&(document.dir==="rtl"?(x=re-te.width-te.left,b=a<=480?10:30):(b=te.left,x=a<=480?10:30),y=b+x)}if(de&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var le=de.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,z=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,z=40)}}return de&&((ne===void 0||!ne)&&se>0&&se+y1&&(ue=!0)),se&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ue=!0),!(de.hasOwnProperty("disableAutoScale")&&de.disableAutoScale))ce=be(de,se,ue,ne,de.scaleContainerClass);else return ie;return ue&&(!de.hasOwnProperty("scale")||ie===1)?ce:Math.min(ie,ce)}function E(de){var se=Math.min(window.innerWidth,document.documentElement.clientWidth),ne=Math.min(window.innerHeight,document.documentElement.clientHeight),ie=de.getBoundingClientRect(),ce=(se-ie.width)/2,ue=(ne-ie.height)/2;ue<0&&(ue=0),de.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ce<40?de.style.left="40px":de.style.left=ce+"px",de.style.top=ue+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ue<40?de.style.top="40px":de.style.top=ue+"px",de.style.left=ce+"px")}function pe(de,se){var ne=de.querySelector(".appletParameters");if(ne){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(se.id!==ne.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(de)}if(ne.parentElement&&/fullscreen/.test(ne.parentElement.className))return;var ie=_e(se,de);Et()&&ne.setAttribute("data-param-scale",ie);for(var ce=null,ue=0;ue=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(Et){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Et){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Et){var dt=c[Et];return dt==null?null:dt},r=d,webModule.__errFn=e}function B(){function Et(de){var se=de.lastIndexOf(rb);se==-1&&(se=de.length);var ne=de.indexOf(sb);ne==-1&&(ne=de.length);var ie=de.lastIndexOf(tb,Math.min(ne,se));return ie>=O?de.substring(O,ie+P):W}function dt(de){if(!de.match(/^\w+:\/\//)){var se=o.createElement(ub);se.src=de+vb,de=Et(se.src)}return de}function ve(){var de=__gwt_getMetaProperty(wb);return de!=null?de:W}function be(){for(var de=o.getElementsByTagName(_),se=O;seO?de[de.length-P].href:W}function E(){var de=o.location;return de.href==de.protocol+zb+de.host+de.pathname+de.search+de.hash}var pe=ve();return pe==W&&(pe=be()),pe==W&&(pe=_e()),pe==W&&E()&&(pe=Et(o.location.href)),pe=dt(pe),pe}function C(Et){return Et.match(/^\//)||Et.match(/^[a-zA-Z]+:\/\//)?Et:webModule.__moduleBase+Et}function D(){var Et=[],dt=O,ve=[],be=[];function _e(de){var se=be[de](),ne=ve[de];if(se in ne)return se;var ie=[];for(var ce in ne)ie[ne[ce]]=ce;throw r&&r(de,ie,se),null}if(__gwt_isKnownPropertyValue=function(de,se){return se in ve[de]},webModule.__getPropMap=function(){var de={};for(var se in ve)ve.hasOwnProperty(se)&&(de[se]=_e(se));return de},webModule.__computePropValue=_e,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var E;try{E=Cb;var pe=E.indexOf(Db);pe!=-1&&(dt=parseInt(E.substring(pe+P),$),E=E.substring(O,pe))}catch(de){}return webModule.__softPermutationId=dt,C(E+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})()},28735:function(Et,dt,ve){"use strict";ve.d(dt,{Ax:function(){return pe},Ds:function(){return de},KI:function(){return ne},SI:function(){return E},f1:function(){return _e}});var be=ve(74128);function _e(ie){let ce=!0;if(ie.length>0){for(let ue=0;ueEe in De?y(De,Ee,{enumerable:!0,configurable:!0,writable:!0,value:Ae}):De[Ee]=Ae,ge=(De,Ee)=>{for(var Ae in Ee||(Ee={}))te.call(Ee,Ae)&&fe(De,Ae,Ee[Ae]);if(z)for(var Ae of z(Ee))le.call(Ee,Ae)&&fe(De,Ae,Ee[Ae]);return De},me=(De,Ee)=>x(De,b(Ee)),he=(De,Ee,Ae)=>new Promise((Ce,je)=>{var Me=Je=>{try{Fe(Ae.next(Je))}catch(qe){je(qe)}},Ge=Je=>{try{Fe(Ae.throw(Je))}catch(qe){je(qe)}},Fe=Je=>Je.done?Ce(Je.value):Promise.resolve(Je.value).then(Me,Ge);Fe((Ae=Ae.apply(De,Ee)).next())});const Se=["fullscreenchange","msfullscreenchange","webkitfullscreenchange","mozfullscreenchange"],{Countdown:ye}=_e.default,Pe=({exercise:De,socket:Ee,dispatch:Ae,onStartScreenshot:Ce,onCloseScreenshot:je,handleToDetail:Me})=>{const[Ge,Fe]=E.default.useModal(),Je=(0,be.useRef)(),[qe,Xe]=(0,be.useState)(!0),Ve=(0,be.useRef)(!1),We=(0,re.useParams)();(0,be.useEffect)(()=>{var xe,Ie,Ke;if(document.addEventListener((0,de.gH)(),Oe,!1),window.addEventListener("blur",Ze,!1),(xe=De.exerciseUserInfo)!=null&&xe.screen_open&&(0,de.vp)()&&Xe(!1),(Ie=De.exerciseUserInfo)!=null&&Ie.screen_open&&!(0,de.vp)()){(0,oe.RG)(" ",!0);const rt=document.domain==="kepukehuan.educoder.net"?30:localStorage.getItem("Refresh")==="1"?De.exerciseUserInfo.screen_sec+3:De.exerciseUserInfo.screen_sec+10+1;Je.current=E.default.info({icon:null,centered:!0,width:444,title:(0,ee._V)(ee.CP.recordScreen1),keyboard:!1,content:a.createElement("div",null,(0,ee._V)(ee.CP.recordScreen2),a.createElement("span",{style:{color:"#FF9849"}},De.exerciseUserInfo.screen_num-De.exerciseUserInfo.used_screen_num),(0,ee._V)(ee.CP.recordScreen3)),okText:a.createElement("span",null,(0,ee._V)(ee.CP.recordScreen4),"\uFF08",a.createElement("span",{style:{display:"inline-block"}},a.createElement(ye,{onFinish:()=>he(void 0,null,function*(){var ke;const tt=yield Be();(ke=Je.current)==null||ke.destroy(),tt.used_screen_num&&Le(tt.used_screen_num+1)}),valueStyle:{fontSize:14,lineHeight:1.4,color:"#FFF",display:"inline-block"},format:"ss",value:Date.now()+rt*1e3})),"S\uFF09"),onOk:()=>{var ke;(0,oe.RG)(" ",!0),(ke=Je.current)==null||ke.destroy(),Xe(!1),(0,de.Dj)(document.body),document.getElementById("root").addEventListener("click",Ue,!1)}})}return(Ke=De.exerciseUserInfo)!=null&&Ke.screen_open&&!(0,de.vp)()||document.getElementById("root").addEventListener("click",Ue,!1),()=>{document.getElementById("root").removeEventListener("click",Ue,!1),document.removeEventListener((0,de.gH)(),Oe,!1),window.removeEventListener("blur",Ze,!1)}},[]),(0,be.useEffect)(()=>{setTimeout(()=>{De.actionTabs.removeEventListenerExitScreen&&(document.getElementById("root").removeEventListener("click",Ue,!1),document.removeEventListener((0,de.gH)(),Oe,!1))},500),ot()},[De.actionTabs]),(0,be.useEffect)(()=>{setTimeout(()=>{De.exerciseUserInfo.used_screen_num>De.exerciseUserInfo.screen_num&&Ne()},500)},[De.exerciseUserInfo]);const ze=()=>he(void 0,null,function*(){const xe=yield Be();setTimeout(()=>{var Ie,Ke;(Ie=Je.current)==null||Ie.destroy(),Je.current=E.default.info({okText:a.createElement("span",null,"\u56DE\u5230\u8003\u8BD5"),content:a.createElement("div",null,"\u60A8\u5DF2\u5207\u5C4F",a.createElement("span",{className:"c-red"},xe.used_screen_num),"\u6B21\uFF0C\u5207\u5C4F\u8D85\u8FC7",a.createElement("span",{className:"c-red"},(Ke=De.exerciseUserInfo)==null?void 0:Ke.screen_num),"\u6B21\u5C06\u5F3A\u5236\u4EA4\u5377"),onOk:()=>he(void 0,null,function*(){(0,de.Dj)(document.body)})})},1e3)}),Ue=xe=>{!(0,de.vp)()&&xe.target.nodeName!=="A"&&xe.target.nodeName!=="BUTTON"&&xe.target.innerHTML!=="\u786E \u5B9A"&&(0,de.Dj)(document.body)},ot=()=>he(void 0,null,function*(){const xe=yield Ae({type:"exercise/getExerciseUserInfo",payload:ge({},We)});return xe==null?void 0:xe.data}),Qe=xe=>he(void 0,null,function*(){var Ie;if((Ie=De.exerciseUserInfo)!=null&&Ie.screen_at){const rt=yield(0,se.ck)(me(ge({},We),{reset:!0}));if((rt==null?void 0:rt.status)===-6)return}const Ke=yield(0,se.oy)({id:We.categoryId});if(Ke!=null&&Ke.is_commit){E.default.destroyAll(),yield ut(),et(!0);return}else Le(xe+1)}),ut=()=>he(void 0,null,function*(){var xe;const Ie=ie()(),Ke=De.exerciseUserInfo.screen_sec;if(Re.current.length>0){const rt=Ie.format("YYYY-MM-DD HH:mm:ss");let ke=Math.floor(Ie.diff(ie()(Re.current[0].start))/1e3);const tt=Re.current.length;ke/Ke>>0>tt&&(ke=(tt+1)*Ke-1),yield(0,se.P8)(We.categoryId,{exercise_user_id:(xe=De.exerciseUserInfo)==null?void 0:xe.exercise_user_id,time:rt,time_long:ke,count:tt})}Re.current=[]}),Ye=(0,be.useRef)(0),He=(0,be.useRef)(0),Re=(0,be.useRef)([]),$e=(0,be.useRef)(!1),Le=xe=>he(void 0,null,function*(){var Ie;Ve.current||(Ce(),E.default.destroyAll(),Ye.current=ie()().valueOf(),$e.current=!0,Je.current=E.default.info({icon:null,maskClosable:!1,width:1080,keyboard:!1,centered:!0,className:ce.exitFullScreenModalWrapper,okText:a.createElement("span",null,(0,ee._V)(ee.CP.recordScreen8)),content:a.createElement("div",{className:ce.exitFullScreenModal},a.createElement("img",{src:ue,alt:"",className:ce.warningIcon}),a.createElement("div",{className:ce.warningText,style:{marginBottom:50,fontWeight:500}},(0,ee._V)(ee.CP.recordScreen9)),a.createElement("div",{style:{marginBottom:40}},(0,ee._V)(ee.CP.recordScreen10)),a.createElement("div",{style:{marginBottom:40}},(0,ee._V)(ee.CP.recordScreen11),a.createElement("span",{className:ce.warningText},((Ie=De.exerciseUserInfo)==null?void 0:Ie.screen_num)+1),(0,ee._V)(ee.CP.recordScreen12),a.createElement("span",{className:ce.warningText,style:{fontWeight:600}},(0,ee._V)(ee.CP.recordScreen13)),",",(0,ee._V)(ee.CP.recordScreen14),a.createElement("span",{className:ce.warningText},xe-1),(0,ee._V)(ee.CP.recordScreen15)),a.createElement("div",null,a.createElement("span",null,a.createElement(ye,{className:ce.countdownWrapper,onFinish:()=>{He.current=ie()().valueOf(),Re.current.push({start:Ye.current,end:He.current}),Qe(xe)},valueStyle:{fontSize:30,color:"#165DFF"},format:"ss",value:Date.now()+(De.exerciseUserInfo.screen_sec+1)*1e3}),(0,ee._V)(ee.CP.recordScreen25)),(0,ee._V)(ee.CP.recordScreen16))),onOk:()=>{(0,oe.RG)(" ",!0),ut(),(0,de.Dj)(document.body),je(),Je.current.destroy(),$e.current=!1}}))}),Ne=()=>he(void 0,null,function*(){E.default.destroyAll(),(yield(0,se.VL)({categoryId:We.categoryId,commit_method:1}))&&et()}),et=(xe=!1)=>he(void 0,null,function*(){var Ie,Ke;if(document.removeEventListener((0,de.gH)(),Oe,!1),(0,de.BU)(),E.default.destroyAll(),Ve.current=!0,xe){const rt=yield(0,se.Yu)(We.categoryId,{exercise_user_id:(Ie=De.exerciseUserInfo)==null?void 0:Ie.exercise_user_id});Ge.confirm({icon:null,closable:!1,maskClosable:!1,okText:"\u7533\u8BF7\u7EE7\u7EED\u8003\u8BD5",cancelText:"\u8FD4\u56DE",width:616,className:ce.forcedModalWrapper,centered:!0,content:a.createElement("div",{className:ce.forcedModalContent},a.createElement("img",{src:ae,alt:""}),a.createElement("div",{className:ce.forcedText},(0,ee._V)(ee.CP.recordScreen17)),a.createElement("div",{className:ce.screenNumText},(0,ee._V)(ee.CP.recordScreen18),(Ke=De.exerciseUserInfo)==null?void 0:Ke.screen_num,(0,ee._V)(ee.CP.recordScreen19)),a.createElement(pe.default,{dataSource:rt==null?void 0:rt.data,pagination:!1,rowKey:"time",bordered:!0,columns:[{title:(0,ee._V)(ee.CP.recordScreen20),align:"center",dataIndex:"time"},{title:(0,ee._V)(ee.CP.recordScreen21),align:"center",dataIndex:"time_long"},{title:(0,ee._V)(ee.CP.recordScreen22),align:"center",dataIndex:"count"}]})),onCancel:()=>{je(),Me()},onOk:()=>{re.history.push(`/classrooms/${We.coursesId}/exercisenotice/${We.categoryId}/users/${We.login}?isShowApply=true`)}})}else Ge.info({content:a.createElement("div",{className:"tc font16"},(0,ee._V)(ee.CP.recordScreen23),a.createElement("br",null),(0,ee._V)(ee.CP.recordScreen24)),onOk:()=>{Me()}})}),Ze=xe=>{(0,de.vp)()&&document.getElementById("iframeShixuns").style.display=="none"&&!$e.current&&(0,de.BU)()},Be=()=>he(void 0,null,function*(){var xe;if((xe=De.exerciseUserInfo)!=null&&xe.screen_at){const rt=yield(0,se.ck)(me(ge({},We),{reset:!0}));if((rt==null?void 0:rt.status)===-6)return}const Ie=yield(0,se.oy)({id:We.categoryId});if(Ie!=null&&Ie.is_commit){et();return}return yield ot()}),Oe=()=>he(void 0,null,function*(){var xe;if((0,oe.RG)(" ",!0),(0,de.vp)()){if((xe=De.exerciseUserInfo)!=null&&xe.screen_at){var Ie=yield(0,se.ck)(me(ge({},We),{reset:!0}));if((Ie==null?void 0:Ie.status)===-6)return}}else if(!$e.current){var Ie=yield(0,se.ck)(ge({},We));if((Ie==null?void 0:Ie.status)===-6)return;const rt=yield ot();Le(rt.used_screen_num+1),window.frames.length!=parent.frames.length&&window.parent.postMessage("backExercise","*")}}),Te=()=>he(void 0,null,function*(){(0,se.ck)(ge({},We));const xe=yield ot();Le(xe.used_screen_num+1),window.frames.length!=parent.frames.length&&window.parent.postMessage("backExercise","*")});return a.createElement("div",null,Fe)};var we=(0,re.connect)(({exercise:De,globalSetting:Ee})=>({globalSetting:Ee,exercise:De}))(Pe)},42217:function(Et,dt,ve){"use strict";ve.d(dt,{X:function(){return pe},y:function(){return E}});var be=ve(59301),_e=ve(8591);const E=de=>{(0,be.useEffect)(()=>{if(de){const se=ie=>{ie.key==="F12"&&(ie.preventDefault(),console.log("F12\u88AB\u7981\u7528"))},ne=ie=>{ie.preventDefault()};return document.addEventListener("keydown",se),document.addEventListener("contextmenu",ne),()=>{document.removeEventListener("keydown",se),document.removeEventListener("contextmenu",ne)}}},[de])},pe=()=>{const[de,se]=(0,be.useState)(!1),ne=ie=>{const{keyCode:ce,ctrlKey:ue,metaKey:ae,type:oe}=ie;(oe==="paste"||(ce===67||ce===86)&&(ae||ue))&&(_e.ZP.warning("\u8001\u5E08\u5DF2\u8BBE\u7F6E\u7B54\u9898\u65F6\u4E0D\u5141\u8BB8\u8FDB\u884C\u590D\u5236\u7C98\u8D34"),ie.preventDefault(),ie.stopPropagation())};return(0,be.useEffect)(()=>(de&&(window.addEventListener("keydown",ne,!0),window.addEventListener("paste",ne,!0)),()=>{window.removeEventListener("keydown",ne,!0),window.removeEventListener("paste",ne,!0)}),[de]),{setOpenDisableCopyAndPaste:se,disableCopyAndPaste:de}}},16750:function(Et,dt,ve){"use strict";ve.d(dt,{Z:function(){return ae}});var be=ve(59301),_e={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},E=ve(92310),pe=ve.n(E),de=ve(71418),se=ve(2859),ne=ve(38147),ie=ve(65862),ce=(oe,re,ee)=>new Promise((a,y)=>{var x=te=>{try{z(ee.next(te))}catch(le){y(le)}},b=te=>{try{z(ee.throw(te))}catch(le){y(le)}},z=te=>te.done?a(te.value):Promise.resolve(te.value).then(x,b);z((ee=ee.apply(oe,re)).next())}),ae=({data:oe,className:re,fullWidth:ee,style:a={},onClose:y,onOk:x,showFullTools:b,noAssociationId:z})=>{const te=(0,be.useRef)(null),le=(0,be.useRef)(null),fe=(0,be.useRef)(null),ge=(0,be.useRef)(null),[me,he]=(0,be.useState)(!1),[Se,ye]=(0,be.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,be.useEffect)(()=>{fe.current||(fe.current=document.createElement("style"),document.head.appendChild(fe.current)),oe!=null&&oe.visible?(document.body.setAttribute("data-custom","y-hidden"),fe.current.innerHTML=" html { overflow-y: hidden; }",oe!=null&&oe.src&&Pe()):(document.body.removeAttribute("data-custom"),fe.current&&(document.head.removeChild(fe.current),fe.current=null))},[oe==null?void 0:oe.visible]);const Pe=()=>ce(void 0,null,function*(){he(!0),ye("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Ce=yield(0,ie.ZJ)(oe==null?void 0:oe.src);te.current.src="",te.current.src=Ce,te.current.onload=function(){Ae()},he(!1),ye("")}),we=()=>{document.body.removeAttribute("data-custom"),fe.current.innerHTML=" ",y()},De=Ce=>ce(void 0,null,function*(){he(!0),ye("\u6B63\u5728\u4FDD\u5B58\u4E2D");const je=yield(0,ne.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:oe.title,file:Ce.dataUrl}});je!=null&&je.id&&!z?(yield(0,ne.ZP)(`/api/attachments/${oe.id}/add_subitem.json`,{method:"post",body:{subitem_id:je==null?void 0:je.id,settings:JSON.stringify(Ce.state)}})).status===0&&x():je!=null&&je.id&&x(je),document.body.removeAttribute("data-custom"),fe.current.innerHTML=" ",he(!1),ye("")}),Ee=()=>{const Ce=document.querySelector('a[href="https://markerjs.com/"]');Ce&&Ce.parentNode&&(Ce.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(Me=>{const Ge=document.querySelector(Me.name);Ge&&Ge.setAttribute("title",Me.title)})},Ae=()=>{le.current=new se.hP(te.current),le.current.targetRoot=ge.current,le.current.addEventListener("render",De),le.current.addEventListener("beforeclose",we),b&&(le.current.availableMarkerTypes=le.current.ALL_MARKER_TYPES,le.current.uiStyleSettings.redoButtonVisible=!0,le.current.uiStyleSettings.notesButtonVisible=!0,le.current.uiStyleSettings.zoomButtonVisible=!0,le.current.uiStyleSettings.zoomOutButtonVisible=!0,le.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=le.current.uiStyleSettings,le.current.show(),oe!=null&&oe.snapshotData&&le.current.restoreState(oe.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Ee()},300)};return be.createElement(be.Fragment,null,(oe==null?void 0:oe.visible)&&be.createElement(de.Z,{spinning:me,tip:Se,style:{position:"absolute"}},be.createElement("div",{ref:ge,className:pe()(_e.imageDimensions,re,ee?_e.fullWidth:""),style:a},be.createElement("img",{className:_e.img,ref:te}))))}},99298:function(Et,dt,ve){"use strict";var be=ve(59301),_e=ve(95237),E=ve(43604),pe=ve(99313),de=ve(3113),se=ve(6339),ne=ve(96408),ie=ve(48136),ce=ve(59301);const ue=(0,be.forwardRef)(({callback:ae,showSaveButton:oe,value:re=""},ee)=>{const a=(0,be.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 "}]}]}],x=[{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=le=>{a.current.setValue(a.current.getValue()+" "+le.value+" ")},z=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:ce.createElement(_e.Z,{className:ne.Z.lists,gutter:[10,10]},y.map((le,fe)=>ce.createElement(E.Z,{flex:"110px",className:ne.Z.item},ce.createElement("div",null,ce.createElement(se.Z,{value:`$$${le.value}$$`}),le.name),ce.createElement("div",{className:ne.Z.children},le.children.map((ge,me)=>ce.createElement("div",{key:me},ce.createElement("h1",null,ge.name),ce.createElement(_e.Z,{gutter:[10,10]},ge.data.map((he,Se)=>ce.createElement(E.Z,{key:Se,onClick:()=>b(he),className:ne.Z.diamond},ce.createElement(se.Z,{value:"`$$"+he.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:ce.createElement(_e.Z,{className:ne.Z.lists,gutter:[10,10]},x.map((le,fe)=>ce.createElement(E.Z,{flex:"110px",className:ne.Z.item},ce.createElement("div",null,ce.createElement(se.Z,{value:"`$$"+le.value+"$$`"}),le.name),ce.createElement("div",{className:ne.Z.children},le.children.map((ge,me)=>ce.createElement("div",{key:me},ge.name&&ce.createElement("h1",null,ge.name),ce.createElement(_e.Z,{gutter:[10,10]},ge.data.map((he,Se)=>ce.createElement(E.Z,{key:Se,onClick:()=>b(he),className:ne.Z.diamond},ce.createElement(se.Z,{value:"`$$"+he.value+"$$`"}))))))))))}],te=()=>{var le=document.createElement("div");le.innerHTML=a.current.getValue();var fe=le.innerText;return ae&&ae(fe),fe};return(0,be.useImperativeHandle)(ee,()=>({getData:te})),ce.createElement("div",{className:ne.Z.mathWrap},ce.createElement(pe.default,{defaultActiveKey:"1",items:z}),ce.createElement("math-field",{locale:"zh_cn",className:ne.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:a,style:{width:800,marginTop:30,fontSize:18}},re||""),oe&&ce.createElement("div",{className:ne.Z.button},ce.createElement(de.ZP,{size:"large",onClick:te,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});dt.Z=ue},42678:function(Et,dt,ve){"use strict";ve.d(dt,{Z:function(){return pe}});var be=ve(65582),_e={ldsRing:"ldsRing___mpBZC",idsRingWrapper:"idsRingWrapper___Of9_n",ldsring:"ldsring___o0w2t"},E=ve(59301),pe=({message:de,className:se,children:ne,style:ie={}})=>E.createElement("div",{className:`custom-spinner ${_e.idsRingWrapper} ${se}`},E.createElement("div",{className:_e.ldsRing},E.createElement("div",null),E.createElement("div",null),E.createElement("div",null),E.createElement("div",null)),de?E.createElement("p",{style:ie},de):null,ne,E.createElement(be.Outlet,null))},29584:function(Et,dt,ve){"use strict";ve.d(dt,{Z:function(){return pe}});var be=ve(59301),_e=ve(77254),E=ve(59301),pe=({defaultX:de="40%",leftChild:se,rightChild:ne,className:ie,hideResize:ce=!1})=>{const[ue,ae]=(0,be.useState)(de),oe=(0,be.useRef)();function re(){oe.current=!0}(0,be.useEffect)(()=>{function y(b){oe.current&&(_e.Z.publish("resize-move-bar",b),ae(b.pageX))}function x(){oe.current=!1}return window.addEventListener("mousemove",y),window.addEventListener("mouseup",x),()=>{window.removeEventListener("mousemove",y),window.removeEventListener("mouseup",x)}},[]);const ee=typeof ue=="number"&&ue!==.01?`${ue}px`:de,a=`calc(100% - ${ce?"0px":"4px"} - ${ee})`;return E.createElement("div",{className:`split-panel-container ${ie}`},E.createElement("section",{style:{width:ee,display:ue===.01?"none":""}},se),E.createElement("section",{className:"resize-x-bar",onMouseDown:re},E.createElement("a",{className:"btn-resize"},E.createElement("svg",{width:"16",height:"13",viewBox:"0 0 16 13"},E.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"})))),E.createElement("section",{style:{width:a}},ne))}},51908:function(Et,dt,ve){"use strict";ve.d(dt,{Z:function(){return se}});var be=ve(59301),_e={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_"},E=ve(92310),pe=ve.n(E),se=({className:ne,style:ie={},leftNode:ce,leftTitle:ue="\u81EA\u6D4B\u8F93\u5165",rightNode:ae,rightTitle:oe="\u8FD0\u884C\u7ED3\u679C"})=>be.createElement("div",{className:pe()(_e.result,ne),style:ie},be.createElement("div",{className:_e.left},be.createElement("div",{className:_e.title},be.createElement("i",{style:{color:"#08CF76"},className:"iconfont iconfont icon-zidingyiceshiyongli font14 mr5"}),be.createElement("span",null,ue)),be.createElement("div",{className:_e.leftNode},ce)),be.createElement("div",{className:_e.right},be.createElement("div",{className:_e.title},be.createElement("i",{style:{color:"#00DFFF"},className:"iconfont iconfont icon-daimazhihangjieguo font14 mr5"}),be.createElement("span",null,oe)),be.createElement("div",{className:_e.rightNode},ae)))},22744:function(Et,dt,ve){"use strict";var be=ve(59301);const _e=pe=>String(pe).length===1?`0${pe}`:pe,E=({className:pe="",onChange:de,defaultValue:se=0})=>{const[ne,ie]=(0,be.useState)(se);(0,be.useEffect)(()=>{const oe=setTimeout(()=>{ie(ne+1e3)},1e3);return de(ne+1e3),()=>{clearInterval(oe)}},[ne]);const ce=parseInt(ne/(60*6e4))||"00",ue=parseInt(ne%(60*6e4)/6e4)||"00",ae=parseInt(ne%6e4/1e3)||"00";return be.createElement("div",{className:pe},_e(ce),":",_e(ue),":",_e(ae))};dt.Z=E},30214:function(Et,dt,ve){"use strict";ve.d(dt,{Z:function(){return pe}});var be=ve(59301),_e=ve(77254),E=ve(11611),pe=()=>{const[de,se]=(0,be.useState)(""),[ne,ie]=(0,be.useState)(0);let[ce,ue]=(0,be.useState)(),[ae,oe]=(0,be.useState)();const[re,ee]=(0,be.useState)(!1),a=(0,be.useRef)("");(0,be.useEffect)(()=>_e.Z.subscribe("preview-image",Se=>{se(Se),console.log(ge.current),document.body.style.overflow="hidden"}),[]),(0,be.useEffect)(()=>(document.addEventListener("keydown",y),()=>{document.removeEventListener("keydown",y)}),[]),(0,be.useEffect)(()=>{a.current=de},[de]);function y(he){he.keyCode==27&&a.current&&x()}function x(){document.body.style.overflow="auto",ue(void 0),oe(void 0),ie(0),se("")}function b(){ie(ne+90)}function z(){ce=ge.current.width*1.1,ae=ge.current.height*1.1,oe(ae),ue(ce)}function te(){ce=ge.current.width/1.1,ae=ge.current.height/1.1,oe(ae),ue(ce)}const le=(0,be.useRef)(),fe=(0,be.useRef)(),ge=(0,be.useRef)(),me=he=>{(he.nativeEvent.target===le.current||he.nativeEvent.target===fe.current)&&x()};return be.createElement(be.Fragment,null,de?be.createElement("div",null,be.createElement("div",{className:"preview-wrp-group",ref:fe},be.createElement(E.Z,{className:"image-preview",src:de,style:{display:"none"},preview:{visible:!0,src:de,movable:!1,onVisibleChange:he=>{se("")}},alt:"\u9884\u89C8\u5927\u56FE"}))):null)}},85533:function(Et,dt,ve){"use strict";ve.d(dt,{h:function(){return le}});var be=ve(59301),_e=ve(57809),E=ve(78241),pe=ve(3113),de=ve(89780),se=ve.n(de),ne=ve(45559),ie=ve(42313),ce=Object.defineProperty,ue=Object.defineProperties,ae=Object.getOwnPropertyDescriptors,oe=Object.getOwnPropertySymbols,re=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,a=(fe,ge,me)=>ge in fe?ce(fe,ge,{enumerable:!0,configurable:!0,writable:!0,value:me}):fe[ge]=me,y=(fe,ge)=>{for(var me in ge||(ge={}))re.call(ge,me)&&a(fe,me,ge[me]);if(oe)for(var me of oe(ge))ee.call(ge,me)&&a(fe,me,ge[me]);return fe},x=(fe,ge)=>ue(fe,ae(ge));const b=_e.default.Option,z={labelCol:{span:4},wrapperCol:{span:20}},te={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"]};dt.Z=({callback:fe,onCancel:ge})=>{const[me,he]=(0,be.useState)("python");function Se(Pe){he(te[Pe][1])}function ye(Pe){fe(Pe)}return be.createElement(E.default,x(y({},z),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:ye,style:{width:500}}),be.createElement(E.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},be.createElement(_e.default,{getPopupContainer:Pe=>Pe.parentNode,onChange:Se},Object.keys(te).map(Pe=>be.createElement(b,{key:Pe,value:Pe},te[Pe][0])))),be.createElement(E.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},be.createElement(le,{mode:me})),be.createElement("div",{className:"flex-container flex-end"},be.createElement(pe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),be.createElement(pe.ZP,{type:"ghost",onClick:ge},"\u53D6\u6D88")))};function le({value:fe,onChange:ge,mode:me,options:he={}}){const Se=(0,be.useRef)(),[ye,Pe]=(0,be.useState)();return(0,be.useEffect)(()=>{if(ye){let we=function(De){const Ee=De.getValue();ge&&ge(Ee)};return ye.on("change",we),()=>{ye.off("change",we)}}},[ye,ge]),(0,be.useEffect)(()=>{ye&&ye.setOption("mode",me)},[ye,me]),(0,be.useEffect)(()=>{ye&&(fe!==ye.getValue()||fe==="")&&setTimeout(()=>{ye.setValue(fe||"")},300)},[ye,fe]),(0,be.useEffect)(()=>{if(Se.current&&!ye){const we=se().fromTextArea(Se.current,y({mode:me,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},he));Pe(we)}},[Se.current,ye]),be.createElement("div",{className:"my-codemirror-container"},be.createElement("textarea",{ref:Se}))}},96565:function(Et,dt,ve){"use strict";ve.d(dt,{Z:function(){return gr}});var be=ve(59301),_e=ve(89780),E=ve.n(_e),pe=ve(76374),de=ve(45559),se=ve(6313),ne=ve(25717),ie=ve(99498),ce=ve(25419),ue=ve(67549),ae=ve(6339),oe=({value:Ot="",className:jt,showTextOnly:_t,showLines:tn,style:Bn={}})=>{const Cn=(0,be.useMemo)(()=>"",[Ot]);return be.createElement(be.Fragment,null,be.createElement("div",{dangerouslySetInnerHTML:{__html:Cn}}))},re=ve(59301),ee=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,te=(Ot,jt,_t)=>jt in Ot?ee(Ot,jt,{enumerable:!0,configurable:!0,writable:!0,value:_t}):Ot[jt]=_t,le=(Ot,jt)=>{for(var _t in jt||(jt={}))b.call(jt,_t)&&te(Ot,_t,jt[_t]);if(x)for(var _t of x(jt))z.call(jt,_t)&&te(Ot,_t,jt[_t]);return Ot},fe=(Ot,jt)=>a(Ot,y(jt));let ge=[{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 me({onActionCallback:Ot,title:jt,icon:_t,actionName:tn,className:Bn="",children:Cn}){function Fr(){Ot(tn)}return re.createElement("a",{title:jt,className:Bn,onClick:Fr},re.createElement("i",{className:`${_t}`}),Cn)}var he=({watch:Ot,showNullButton:jt,showNullProgramButton:_t,onActionCallback:tn,fullScreen:Bn,insertTemp:Cn,hidetoolBar:Fr,extraUse:rr})=>{const Ht=[...ge,{title:`${Ot?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Ot?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return re.createElement("ul",{className:"markdown-toolbar-container"},!Fr&&Ht.map((Lt,rn)=>re.createElement("li",{key:rn},Lt.actionName?re.createElement(me,fe(le({},Lt),{onActionCallback:tn})):re.createElement("span",{className:"v-line"}))),jt?re.createElement("li",null,re.createElement(me,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:tn},re.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,_t?re.createElement(re.Fragment,null,re.createElement("li",null,re.createElement(me,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:tn},re.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),re.createElement("li",null,re.createElement(me,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:tn},re.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,Cn&&re.createElement("li",null,re.createElement(me,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Cn}`,onActionCallback:tn},re.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),rr&&re.createElement("li",null,rr),re.createElement("li",{className:"btn-full-screen"},re.createElement(me,{icon:`${Bn?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Bn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:tn})))},Se=ve(57261),ye=ve(78241),Pe=ve(92832),we=ve(3113),De=Object.defineProperty,Ee=Object.defineProperties,Ae=Object.getOwnPropertyDescriptors,Ce=Object.getOwnPropertySymbols,je=Object.prototype.hasOwnProperty,Me=Object.prototype.propertyIsEnumerable,Ge=(Ot,jt,_t)=>jt in Ot?De(Ot,jt,{enumerable:!0,configurable:!0,writable:!0,value:_t}):Ot[jt]=_t,Fe=(Ot,jt)=>{for(var _t in jt||(jt={}))je.call(jt,_t)&&Ge(Ot,_t,jt[_t]);if(Ce)for(var _t of Ce(jt))Me.call(jt,_t)&&Ge(Ot,_t,jt[_t]);return Ot},Je=(Ot,jt)=>Ee(Ot,Ae(jt));const qe={labelCol:{span:4},wrapperCol:{span:20}};var Xe=({callback:Ot,onCancel:jt})=>{function _t(tn){Ot(tn)}return be.createElement(ye.default,Je(Fe({},qe),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:_t,style:{width:500}}),be.createElement(ye.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},be.createElement(Pe.default,null)),be.createElement(ye.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},be.createElement(Pe.default,null)),be.createElement("div",{className:"flex-container flex-end"},be.createElement(we.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),be.createElement(we.ZP,{type:"ghost",onClick:jt},"\u53D6\u6D88")))},Ve=ve(85533),We=ve(45053),ze=ve(43418),Ue=ve(95237),ot=ve(16750),Qe=ve(59301),ut=({callback:Ot,onCancel:jt})=>{const _t=document.createElement("canvas"),tn=_t.getContext("2d");_t.width=1e3,_t.height=800,tn.fillStyle="#ffffff",tn.fillRect(0,0,_t.width,_t.height);const Bn=_t.toDataURL("image/png");return Qe.createElement(ze.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Qe.createElement(Ue.Z,{style:{height:"100vh"}},Qe.createElement(ot.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Bn,visible:!0,title:String(Date.now())},onOk:Cn=>{Ot({src:Cn.url})},onClose:jt})))},Ye=ve(12378);function He(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(He,go.CommandHandler),He.prototype.canAlignSelection=function(){var Ot=this.diagram;return!(Ot===null||Ot.isReadOnly||Ot.isModelReadOnly||Ot.selection.count<2)},He.prototype.alignLeft=function(){var Ot=this.diagram;Ot.startTransaction("aligning left");var jt=1/0;Ot.selection.each(function(_t){_t instanceof go.Link||(jt=Math.min(_t.position.x,jt))}),Ot.selection.each(function(_t){_t instanceof go.Link||_t.move(new go.Point(jt,_t.position.y))}),Ot.commitTransaction("aligning left")},He.prototype.alignRight=function(){var Ot=this.diagram;Ot.startTransaction("aligning right");var jt=-1/0;Ot.selection.each(function(_t){if(!(_t instanceof go.Link)){var tn=_t.actualBounds.x+_t.actualBounds.width;jt=Math.max(tn,jt)}}),Ot.selection.each(function(_t){_t instanceof go.Link||_t.move(new go.Point(jt-_t.actualBounds.width,_t.position.y))}),Ot.commitTransaction("aligning right")},He.prototype.alignTop=function(){var Ot=this.diagram;Ot.startTransaction("alignTop");var jt=1/0;Ot.selection.each(function(_t){_t instanceof go.Link||(jt=Math.min(_t.position.y,jt))}),Ot.selection.each(function(_t){_t instanceof go.Link||_t.move(new go.Point(_t.position.x,jt))}),Ot.commitTransaction("alignTop")},He.prototype.alignBottom=function(){var Ot=this.diagram;Ot.startTransaction("aligning bottom");var jt=-1/0;Ot.selection.each(function(_t){if(!(_t instanceof go.Link)){var tn=_t.actualBounds.y+_t.actualBounds.height;jt=Math.max(tn,jt)}}),Ot.selection.each(function(_t){_t instanceof go.Link||_t.move(new go.Point(_t.actualBounds.x,jt-_t.actualBounds.height))}),Ot.commitTransaction("aligning bottom")},He.prototype.alignCenterX=function(){var Ot=this.diagram,jt=Ot.selection.first();if(jt){Ot.startTransaction("aligning Center X");var _t=jt.actualBounds.x+jt.actualBounds.width/2;Ot.selection.each(function(tn){tn instanceof go.Link||tn.move(new go.Point(_t-tn.actualBounds.width/2,tn.actualBounds.y))}),Ot.commitTransaction("aligning Center X")}},He.prototype.alignCenterY=function(){var Ot=this.diagram,jt=Ot.selection.first();if(jt){Ot.startTransaction("aligning Center Y");var _t=jt.actualBounds.y+jt.actualBounds.height/2;Ot.selection.each(function(tn){tn instanceof go.Link||tn.move(new go.Point(tn.actualBounds.x,_t-tn.actualBounds.height/2))}),Ot.commitTransaction("aligning Center Y")}},He.prototype.alignColumn=function(Ot){var jt=this.diagram;jt.startTransaction("align Column"),Ot===void 0&&(Ot=0),Ot=parseFloat(Ot);var _t=new Array;jt.selection.each(function(rr){rr instanceof go.Link||_t.push(rr)});for(var tn=0;tn<_t.length-1;tn++){var Bn=_t[tn],Cn=Bn.actualBounds.y+Bn.actualBounds.height+Ot,Fr=_t[tn+1];Fr.move(new go.Point(Bn.actualBounds.x,Cn))}jt.commitTransaction("align Column")},He.prototype.alignRow=function(Ot){Ot===void 0&&(Ot=0),Ot=parseFloat(Ot);var jt=this.diagram;jt.startTransaction("align Row");var _t=new Array;jt.selection.each(function(rr){rr instanceof go.Link||_t.push(rr)});for(var tn=0;tn<_t.length-1;tn++){var Bn=_t[tn],Cn=Bn.actualBounds.x+Bn.actualBounds.width+Ot,Fr=_t[tn+1];Fr.move(new go.Point(Cn,Bn.actualBounds.y))}jt.commitTransaction("align Row")},He.prototype.canRotate=function(Ot){var jt=this.diagram;return!(jt===null||jt.isReadOnly||jt.isModelReadOnly||jt.selection.count<1)},He.prototype.rotate=function(Ot){Ot===void 0&&(Ot=90);var jt=this.diagram;jt.startTransaction("rotate "+Ot.toString());var jt=this.diagram;jt.selection.each(function(_t){_t instanceof go.Link||_t instanceof go.Group||(_t.angle+=Ot)}),jt.commitTransaction("rotate "+Ot.toString())},He.prototype.pullToFront=function(){var Ot=this.diagram;Ot.startTransaction("pullToFront");var jt=new go.Map;Ot.selection.each(function(_t){jt.set(_t.layer,0)}),jt.iteratorKeys.each(function(_t){var tn=0;_t.parts.each(function(Bn){if(!Bn.isSelected){var Cn=Bn.zOrder;isNaN(Cn)?Bn.zOrder=0:tn=Math.max(tn,Cn)}}),jt.set(_t,tn)}),Ot.selection.each(function(_t){He._assignZOrder(_t,jt.get(_t.layer)+1)}),Ot.commitTransaction("pullToFront")},He.prototype.pushToBack=function(){var Ot=this.diagram;Ot.startTransaction("pushToBack");var jt=new go.Map;Ot.selection.each(function(_t){jt.set(_t.layer,0)}),jt.iteratorKeys.each(function(_t){var tn=0;_t.parts.each(function(Bn){if(!Bn.isSelected){var Cn=Bn.zOrder;isNaN(Cn)?Bn.zOrder=0:tn=Math.min(tn,Cn)}}),jt.set(_t,tn)}),Ot.selection.each(function(_t){He._assignZOrder(_t,jt.get(_t.layer)-1-He._findGroupDepth(_t))}),Ot.commitTransaction("pushToBack")},He._assignZOrder=function(Ot,jt,_t){_t===void 0&&(_t=Ot),Ot.layer===_t.layer&&(Ot.zOrder=jt),Ot instanceof go.Group&&Ot.memberParts.each(function(tn){He._assignZOrder(tn,jt+1,_t)})},He._findGroupDepth=function(Ot){if(Ot instanceof go.Group){var jt=0;return Ot.memberParts.each(function(_t){jt=Math.max(jt,He._findGroupDepth(_t))}),jt+1}else return 0},He.prototype.doKeyDown=function(){var Ot=this.diagram;if(Ot!==null){var jt=Ot.lastInput;if(jt.key==="Up"||jt.key==="Down"||jt.key==="Left"||jt.key==="Right"){var _t=this.arrowKeyBehavior;if(_t==="none")return;if(_t==="select"){this._arrowKeySelect();return}else if(_t==="move"){this._arrowKeyMove();return}else if(_t==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},He.prototype._getAllParts=function(){var Ot=new Array;return this.diagram.nodes.each(function(jt){Ot.push(jt)}),this.diagram.parts.each(function(jt){Ot.push(jt)}),Ot},He.prototype._arrowKeyMove=function(){var Ot=this.diagram,jt=Ot.lastInput,_t=0,tn=0;if(jt.control||jt.meta)_t=1,tn=1;else if(Ot.grid!==null){var Bn=Ot.grid.gridCellSize;tn=Bn.width,_t=Bn.height}Ot.startTransaction("arrowKeyMove"),Ot.selection.each(function(Cn){jt.key==="Up"?Cn.move(new go.Point(Cn.actualBounds.x,Cn.actualBounds.y-_t)):jt.key==="Down"?Cn.move(new go.Point(Cn.actualBounds.x,Cn.actualBounds.y+_t)):jt.key==="Left"?Cn.move(new go.Point(Cn.actualBounds.x-tn,Cn.actualBounds.y)):jt.key==="Right"&&Cn.move(new go.Point(Cn.actualBounds.x+tn,Cn.actualBounds.y))}),Ot.commitTransaction("arrowKeyMove")},He.prototype._arrowKeySelect=function(){var Ot=this.diagram,jt=Ot.lastInput,_t=null;jt.key==="Up"?_t=this._findNearestPartTowards(270):jt.key==="Down"?_t=this._findNearestPartTowards(90):jt.key==="Left"?_t=this._findNearestPartTowards(180):jt.key==="Right"&&(_t=this._findNearestPartTowards(0)),_t!==null&&(jt.shift?_t.isSelected=!0:jt.control||jt.meta?_t.isSelected=!_t.isSelected:Ot.select(_t))},He.prototype._findNearestPartTowards=function(Ot){var jt=this.diagram.selection.first();if(jt===null)return null;for(var _t=jt.actualBounds.center,tn=this._getAllParts(),Bn=1/0,Cn=jt,Fr=0;Fr0){for(var rr=Cn.elt(Fr-1);rr!==null&&rr.isTreeExpanded&&!rr.isTreeLeaf;){var Ht=this._sortTreeChildrenByY(rr);rr=Ht.last()}rr!==null&&Ot.select(rr)}else Ot.select(Bn)}}else if(_t.key==="Down")if(jt.isTreeExpanded&&!jt.isTreeLeaf){var tn=this._sortTreeChildrenByY(jt).first();tn!==null&&Ot.select(tn)}else for(;jt!==null;){var Bn=jt.findTreeParentNode();if(Bn===null)break;var Cn=this._sortTreeChildrenByY(Bn),Fr=Cn.indexOf(jt);if(FrCn.y?1:Bn.xCn.x?1:0}),jt},He.prototype.copyToClipboard=function(Ot){go.CommandHandler.prototype.copyToClipboard.call(this,Ot),this._lastPasteOffset.set(this.pasteOffset)},He.prototype.pasteFromClipboard=function(){var Ot=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(Ot,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),Ot},Object.defineProperty(He.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(Ot){if(Ot!=="move"&&Ot!=="select"&&Ot!=="scroll"&&Ot!=="tree"&&Ot!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+Ot);this._arrowKeyBehavior=Ot}}),Object.defineProperty(He.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(Ot){if(!(Ot instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+Ot);this._pasteOffset.set(Ot)}});var Re=He,$e=ve(25863),Le=ve(43604),Ne=ve(38147),et={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Ze=ve(59301),Be=(Ot,jt,_t)=>new Promise((tn,Bn)=>{var Cn=Ht=>{try{rr(_t.next(Ht))}catch(Lt){Bn(Lt)}},Fr=Ht=>{try{rr(_t.throw(Ht))}catch(Lt){Bn(Lt)}},rr=Ht=>Ht.done?tn(Ht.value):Promise.resolve(Ht.value).then(Cn,Fr);rr((_t=_t.apply(Ot,jt)).next())});function Oe({onCancel:Ot,callback:jt}){let _t=(0,be.useRef)(),tn=(0,be.useRef)(),Bn=(0,be.useRef)(),Cn=(0,be.useRef)(!1);const Fr=(0,be.useRef)(!1),[rr,Ht]=(0,be.useState)(0);function Lt(){const Dt=Ye.bx.make,un={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"};_t.current=new Ye.S0(tn.current,{padding:20,grid:Dt(Ye.s_,"Grid",Dt(Ye.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Dt(Ye.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:gn=>{var vn=gn.diagram.commandHandler.addTopLevelParts(gn.diagram.selection,!0);vn||gn.diagram.currentTool.doCancel()},commandHandler:Dt(Re),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:gn=>{var vn=gn.subject;vn.location=vn.location.copy().snapToGridPoint(gn.diagram.grid.gridOrigin,gn.diagram.grid.gridCellSize),setTimeout(()=>{gn.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:gn=>{var vn=gn.subject;setTimeout(()=>{gn.diagram.commandHandler.editTextBlock()})},LinkRelinked:gn=>{var vn=gn.parameter.part;vn.invalidateConnectedLinks();var Wn=gn.subject;gn.diagram.toolManager.linkingTool.isForwards?Wn.toNode.invalidateConnectedLinks():Wn.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),_t.current.nodeTemplate=Dt(Ye.NB,"Auto",{locationSpot:Ye.z6.Center,locationObjectName:"SHAPE",desiredSize:new Ye.$u(120,60),minSize:new Ye.$u(40,40),resizable:!0,resizeCellSize:new Ye.$u(10,10),rotatable:!0},new Ye.KX("location","loc",Ye.E9.parse).makeTwoWay(Ye.E9.stringify),new Ye.KX("desiredSize","size",Ye.$u.parse).makeTwoWay(Ye.$u.stringify),Dt(Ye.bn,{name:"SHAPE",fill:un.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Ye.z6.AllSides,toSpot:Ye.z6.AllSides},new Ye.KX("figure"),new Ye.KX("fill"),new Ye.KX("stroke","borderColor"),new Ye.KX("strokeWidth","thickness"),new Ye.KX("strokeDashArray","dash")),Dt(Ye.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),Dt(Ye.al,{margin:1,textAlign:"center",overflow:Ye.al.OverflowEllipsis,editable:!0},new Ye.KX("text").makeTwoWay(),new Ye.KX("stroke","color"))),_t.current.nodeTemplate.toolTip=Dt("ToolTip",Dt(Ye.s_,"Vertical",{maxSize:new Ye.$u(200,NaN)},Dt(Ye.al,{font:"bold 10pt sans-serif",textAlign:"center"},new Ye.KX("text")),Dt(Ye.al,{font:"10pt sans-serif",textAlign:"center"},new Ye.KX("text","details"))));function En(gn,vn){var Wn=(Pn,yr)=>{Pn.handled=!0,Pn.diagram.model.commit(ur=>{var Yn=yr.part.adornedPart,kr=new Ye.E9().setRectSpot(Yn.actualBounds,gn);kr.subtract(Yn.location),kr.scale(2,2),kr.x+=Math.sign(kr.x)*130,kr.y+=Math.sign(kr.y)*130,kr.add(Yn.location),kr.snapToGridPoint(Pn.diagram.grid.gridOrigin,Pn.diagram.grid.gridCellSize);var Cr=ur.copyNodeData(Yn.data);ur.setGroupKeyForNodeData(Cr,ur.getGroupKeyForNodeData(Yn.data)),ur.addNodeData(Cr);var Po={from:Yn.key,to:ur.getKeyForNodeData(Cr)};ur.addLinkData(Po);var po=Pn.diagram.findNodeForData(Cr);po.location=kr,Pn.diagram.select(po),setTimeout(()=>{Pn.diagram.commandHandler.editTextBlock()},20)})};return Dt(Ye.bn,{figure:vn,alignment:gn,alignmentFocus:gn.opposite(),width:gn.equals(Ye.z6.Top)||gn.equals(Ye.z6.Bottom)?25:18,height:gn.equals(Ye.z6.Top)||gn.equals(Ye.z6.Bottom)?18:25,fill:"orange",stroke:un.white,strokeWidth:4,mouseEnter:(Pn,yr)=>yr.fill="dodgerblue",mouseLeave:(Pn,yr)=>yr.fill="orange",isActionable:!0,click:Wn,contextClick:Wn})}function In(gn){return Dt(Ye.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:(vn,Wn)=>Wn.fill="dodgerblue",mouseLeave:(vn,Wn)=>Wn.fill="orange",click:(vn,Wn)=>{vn.diagram.commandHandler.showContextMenu(Wn.part.adornedPart)}},gn||{})}_t.current.nodeTemplate.selectionAdornmentTemplate=Dt(Ye.uz,"Spot",Dt(Ye.Vm,{padding:10}),En(Ye.z6.Top,"TriangleUp"),En(Ye.z6.Left,"TriangleLeft"),En(Ye.z6.Right,"TriangleRight"),En(Ye.z6.Bottom,"TriangleDown"),In({alignment:new Ye.z6(.75,0)}));function Sn(gn,vn){return(Wn,Pn)=>{Wn.handled=!0,Wn.diagram.model.commit(yr=>{yr.set(Pn.part.adornedPart.data,gn,vn)})}}function bt(gn,vn){return vn||(vn="color"),Dt(Ye.bn,{width:16,height:16,stroke:"lightgray",fill:gn,margin:1,background:"transparent",mouseEnter:(Wn,Pn)=>Pn.stroke="dodgerblue",mouseLeave:(Wn,Pn)=>Pn.stroke="lightgray",click:Sn(vn,gn),contextClick:Sn(vn,gn)})}function Mt(){return[Dt("ContextMenuButton",Dt(Ye.s_,"Horizontal",bt(un.white,"fill"),bt(un.beige,"fill"),bt(un.extralightblue,"fill"),bt(un.extralightred,"fill"))),Dt("ContextMenuButton",Dt(Ye.s_,"Horizontal",bt(un.lightgray,"fill"),bt(un.lightgreen,"fill"),bt(un.lightblue,"fill"),bt(un.lightred,"fill")))]}function Bt(){return[Dt("ContextMenuButton",Dt(Ye.s_,"Horizontal",bt(un.black),bt(un.green),bt(un.blue),bt(un.red))),Dt("ContextMenuButton",Dt(Ye.s_,"Horizontal",bt(un.white),bt(un.magenta),bt(un.purple),bt(un.orange)))]}function Ct(gn,vn){return vn||(vn="thickness"),Dt(Ye.bn,"LineH",{width:16,height:16,strokeWidth:gn,margin:1,background:"transparent",mouseEnter:(Wn,Pn)=>Pn.background="dodgerblue",mouseLeave:(Wn,Pn)=>Pn.background="transparent",click:Sn(vn,gn),contextClick:Sn(vn,gn)})}function Vt(gn,vn){return vn||(vn="dash"),Dt(Ye.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:gn,margin:1,background:"transparent",mouseEnter:(Wn,Pn)=>Pn.background="dodgerblue",mouseLeave:(Wn,Pn)=>Pn.background="transparent",click:Sn(vn,gn),contextClick:Sn(vn,gn)})}function $t(){return[Dt("ContextMenuButton",Dt(Ye.s_,"Horizontal",Ct(1),Ct(2),Ct(3),Ct(4))),Dt("ContextMenuButton",Dt(Ye.s_,"Horizontal",Vt(null),Vt([2,4]),Vt([4,4])))]}function Wt(gn,vn){return vn||(vn="figure"),Dt(Ye.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:gn,margin:1,background:"transparent",mouseEnter:(Wn,Pn)=>Pn.fill="dodgerblue",mouseLeave:(Wn,Pn)=>Pn.fill="lightgray",click:Sn(vn,gn),contextClick:Sn(vn,gn)})}_t.current.nodeTemplate.contextMenu=Dt("ContextMenu",Dt("ContextMenuButton",Dt(Ye.s_,"Horizontal",Wt("Rectangle"),Wt("RoundedRectangle"),Wt("Ellipse"),Wt("Diamond"))),Dt("ContextMenuButton",Dt(Ye.s_,"Horizontal",Wt("Parallelogram2"),Wt("ManualOperation"),Wt("Procedure"),Wt("Cylinder1"))),Dt("ContextMenuButton",Dt(Ye.s_,"Horizontal",Wt("Terminator"),Wt("CreateRequest"),Wt("Document"),Wt("TriangleDown"))),Mt(),Bt(),$t()),_t.current.groupTemplate=Dt(Ye.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:Ye.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(gn,vn)=>{var Wn=vn.addMembers(vn.diagram.selection,!0);Wn||vn.diagram.currentTool.doCancel()},avoidable:!1},new Ye.KX("location","loc",Ye.E9.parse).makeTwoWay(Ye.E9.stringify),Dt(Ye.s_,"Auto",{name:"BODY"},Dt(Ye.bn,{parameter1:10,fill:un.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Ye.z6.AllSides,toSpot:Ye.z6.AllSides},new Ye.KX("fill"),new Ye.KX("stroke","color"),new Ye.KX("strokeWidth","thickness"),new Ye.KX("strokeDashArray","dash")),Dt(Ye.Vm,{background:"transparent",margin:20})),Dt(Ye.al,{alignment:Ye.z6.Top,alignmentFocus:Ye.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new Ye.KX("text"),new Ye.KX("stroke","color"))),_t.current.groupTemplate.selectionAdornmentTemplate=Dt(Ye.uz,"Spot",Dt(Ye.s_,"Auto",Dt(Ye.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),Dt(Ye.Vm,{margin:1.5})),In({alignment:Ye.z6.TopRight,alignmentFocus:Ye.z6.BottomRight})),_t.current.groupTemplate.contextMenu=Dt("ContextMenu",Mt(),Bt(),$t()),_t.current.linkTemplate=Dt(Ye.rU,{layerName:"Foreground",routing:Ye.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new Ye.KX("fromSpot","fromSpot",Ye.z6.parse),new Ye.KX("toSpot","toSpot",Ye.z6.parse),new Ye.KX("fromShortLength","dir",gn=>gn>=1?10:0),new Ye.KX("toShortLength","dir",gn=>gn>=1?10:0),new Ye.KX("points").makeTwoWay(),Dt(Ye.bn,{strokeWidth:2},new Ye.KX("stroke","color"),new Ye.KX("strokeWidth","thickness"),new Ye.KX("strokeDashArray","dash")),Dt(Ye.bn,{segmentIndex:0,segmentOffset:new Ye.E9(15,0),segmentOrientation:Ye.rU.OrientAlong,alignmentFocus:Ye.z6.Right,figure:"circle",width:10,strokeWidth:0},new Ye.KX("fill","color"),new Ye.KX("visible","dir",gn=>gn===1)),Dt(Ye.bn,{segmentIndex:-1,segmentOffset:new Ye.E9(-10,6),segmentOrientation:Ye.rU.OrientPlus90,alignmentFocus:Ye.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Ye.KX("fill","color"),new Ye.KX("visible","dir",gn=>gn>=1),new Ye.KX("width","thickness",gn=>7+3*gn),new Ye.KX("height","thickness",gn=>7+3*gn),new Ye.KX("segmentOffset","thickness",gn=>new Ye.E9(-15,4+1.5*gn))),Dt(Ye.bn,{segmentIndex:0,segmentOffset:new Ye.E9(15,-6),segmentOrientation:Ye.rU.OrientMinus90,alignmentFocus:Ye.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Ye.KX("fill","color"),new Ye.KX("visible","dir",gn=>gn===2),new Ye.KX("width","thickness",gn=>7+3*gn),new Ye.KX("height","thickness",gn=>7+3*gn),new Ye.KX("segmentOffset","thickness",gn=>new Ye.E9(-15,4+1.5*gn))),Dt(Ye.al,{alignmentFocus:new Ye.z6(0,1,-4,0),editable:!0},new Ye.KX("text").makeTwoWay(),new Ye.KX("stroke","color"))),_t.current.linkTemplate.selectionAdornmentTemplate=Dt(Ye.uz,Dt(Ye.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Kt(2)},new Ye.KX("pathPattern","thickness",Kt)),In({alignmentFocus:new Ye.z6(0,0,-6,-4)}));function Kt(gn){return Dt(Ye.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(gn+4).toString()+" H3"})}function Rn(gn){var vn="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return gn===0?vn="M0 0 M16 16 M0 8 L16 8":gn===2&&(vn="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),Dt(Ye.bn,{geometryString:vn,margin:2,background:"transparent",mouseEnter:(Wn,Pn)=>Pn.background="dodgerblue",mouseLeave:(Wn,Pn)=>Pn.background="transparent",click:Sn("dir",gn),contextClick:Sn("dir",gn)})}function Mn(gn){var vn=(Wn,Pn)=>{Wn.handled=!0,Wn.diagram.model.commit(yr=>{var ur=Pn.part.adornedPart;yr.set(ur.data,gn?"toSpot":"fromSpot",Ye.z6.stringify(Ye.z6.AllSides)),(gn?ur.toNode:ur.fromNode).invalidateConnectedLinks()})};return Dt(Ye.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Wn,Pn)=>Pn.background="dodgerblue",mouseLeave:(Wn,Pn)=>Pn.background="transparent",click:vn,contextClick:vn})}function kt(gn,vn){var Wn=0,Pn=Ye.z6.RightSide;gn.equals(Ye.z6.Top)?(Wn=270,Pn=Ye.z6.TopSide):gn.equals(Ye.z6.Left)?(Wn=180,Pn=Ye.z6.LeftSide):gn.equals(Ye.z6.Bottom)&&(Wn=90,Pn=Ye.z6.BottomSide),vn||(Wn-=180);var yr=(ur,Yn)=>{ur.handled=!0,ur.diagram.model.commit(kr=>{var Cr=Yn.part.adornedPart;kr.set(Cr.data,vn?"toSpot":"fromSpot",Ye.z6.stringify(Pn)),(vn?Cr.toNode:Cr.fromNode).invalidateConnectedLinks()})};return Dt(Ye.bn,{alignment:gn,alignmentFocus:gn.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Wn,background:"transparent",mouseEnter:(ur,Yn)=>Yn.background="dodgerblue",mouseLeave:(ur,Yn)=>Yn.background="transparent",click:yr,contextClick:yr})}_t.current.linkTemplate.contextMenu=Dt("ContextMenu",Bt(),$t(),Dt("ContextMenuButton",Dt(Ye.s_,"Horizontal",Rn(0),Rn(1),Rn(2))),Dt("ContextMenuButton",Dt(Ye.s_,"Horizontal",Dt(Ye.s_,"Spot",Mn(!1),kt(Ye.z6.Top,!1),kt(Ye.z6.Left,!1),kt(Ye.z6.Right,!1),kt(Ye.z6.Bottom,!1)),Dt(Ye.s_,"Spot",{margin:new Ye.Zt(0,0,0,2)},Mn(!0),kt(Ye.z6.Top,!0),kt(Ye.z6.Left,!0),kt(Ye.z6.Right,!0),kt(Ye.z6.Bottom,!0)))));const vr=`{ "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 tr=["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 nr(gn){return console.log("shapeName:",gn),tr.indexOf(gn)>=0}var Kr=new Ye.YI(Bn.current,{maxSelectionCount:1,linkTemplate:Dt(Ye.rU,{locationSpot:Ye.z6.Center,selectionAdornmentTemplate:Dt(Ye.uz,"Link",{locationSpot:Ye.z6.Center},Dt(Ye.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),Dt(Ye.bn,{toArrow:"Standard",stroke:null}))},{routing:Ye.rU.AvoidsNodes,curve:Ye.rU.JumpOver,corner:5,toShortLength:4},new Ye.KX("points"),Dt(Ye.bn,{isPanelMain:!0,strokeWidth:2}),Dt(Ye.bn,{toArrow:"Standard",stroke:null})),model:new Ye.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...Ye.bn.getFigureGenerators().toArray().map(gn=>({text:"\u672A\u547D\u540D",size:"100 100",figure:gn.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return _t.current.addDiagramListener("TextEdited",function(gn){var vn;const Wn=gn.subject.part;var Pn=(vn=document.activeElement)==null?void 0:vn.value;typeof Pn=="string"&&Pn.trim()===""&&_t.current.model.commit(function(yr){yr.set(Wn.data,"text","\u672A\u547D\u540D"),_t.current.commandHandler.stopCommand()},"increment")}),Kr.nodeTemplate=Dt(Ye.NB,"Auto",{locationSpot:Ye.z6.Center},new Ye.KX("location","location",Ye.E9.parse).makeTwoWay(Ye.E9.stringify),Dt(Ye.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 Ye.KX("stroke").makeTwoWay(),new Ye.KX("fill").makeTwoWay(),new Ye.KX("figure")),Dt(Ye.al,{margin:new Ye.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new Ye.$u(16,16),maxSize:new Ye.$u(10,NaN),textAlign:"center",editable:!0},new Ye.KX("key").makeTwoWay())),setTimeout(()=>{_t.current.grid=Dt(Ye.s_,"Grid",Dt(Ye.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Dt(Ye.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),_t.current.grid.visible=!0,_t.current.grid.gridCellStroke="darkgray",_t.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=_t.current,_t.current}const rn=()=>Be(this,null,function*(){var Dt=_t.current.makeImage();const un=yield(0,Ne.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:Dt.src}});jt({src:un.url})});return(0,be.useEffect)(()=>(setTimeout(()=>{Lt()},500),Ht(rr+1),()=>{_t.current=null}),[]),Ze.createElement("div",{ref:Fr,className:Cn.current?`${et.maxH60} body-overflow-initial`:"body-overflow-initial"},Ze.createElement(ze.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!rr,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Ze.createElement(Ue.Z,null,Ze.createElement(Le.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Ze.createElement(Le.Z,{onClick:()=>{var Dt,un,En=_t.current.selection.first();if(Cn.current=!Cn.current,document.activeElement&&En){let In=(un=(Dt=document.activeElement)==null?void 0:Dt.value)==null?void 0:un.trim();typeof In=="string"&&_t.current.model.commit(function(Sn){Sn.set(En.data,"text",In||"\u672A\u547D\u540D"),_t.current.commandHandler.stopCommand()},"increment")}Ht(rr+1)}},Ze.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:Ot},Ze.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:et.flowChartWrp},Ze.createElement("div",{style:{display:"flex",height:"100%"}},Ze.createElement("div",{style:{width:"300px",height:"100%"}},Ze.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Ze.createElement("div",{style:{height:"calc(100% - 50px)"},className:et.myPaletteDiv,ref:Bn})),Ze.createElement("div",{style:{flex:1,position:"relative"}},Ze.createElement("div",{ref:tn,style:{height:"80vh"}}))),Ze.createElement("div",{className:"tr"},Ze.createElement(we.ZP,{size:"large",onClick:rn,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var Te=Oe,xe=ve(5112),Ie=ve(5871);const Ke=xe.ZP.Group,rt={margin:"0 8px"};var ke=({callback:Ot,onCancel:jt})=>{function _t(tn){Ot(tn)}return be.createElement(ye.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:_t},be.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},be.createElement("span",{style:rt},"\u5355\u5143\u683C\u6570\uFF1A"),be.createElement("span",{style:rt},"\u884C\u6570"),be.createElement(ye.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},be.createElement(Ie.Z,null)),be.createElement("span",{style:rt},"\u5217\u6570"),be.createElement(ye.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},be.createElement(Ie.Z,null))),be.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},be.createElement("span",{style:rt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),be.createElement(ye.default.Item,{name:"align"},be.createElement(Ke,null,be.createElement(xe.ZP,{value:"default"},be.createElement("i",{className:"fa fa-align-justify"})),be.createElement(xe.ZP,{value:"left"},be.createElement("i",{className:"fa fa-align-left"})),be.createElement(xe.ZP,{value:"center"},be.createElement("i",{className:"fa fa-align-center"})),be.createElement(xe.ZP,{value:"right"},be.createElement("i",{className:"fa fa-align-right"}))))),be.createElement("div",{className:"flex-container flex-end"},be.createElement(we.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),be.createElement(we.ZP,{type:"ghost",onClick:jt},"\u53D6\u6D88")))},tt=ve(78673),mt=ve(93510),ct=ve.n(mt),lt=(0,be.forwardRef)(({use3d:Ot,width:jt,height:_t,callback:tn,showSaveButton:Bn},Cn)=>{const Fr=(0,be.useRef)(),rr=(0,be.useRef)(),[Ht,Lt]=(0,be.useState)(!1),rn=(0,be.useRef)({id:Fr,appName:"graphing",width:jt||1e3,height:_t||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,be.useEffect)(()=>{rr.current=new(ct())(rn.current,!0),window.onload=function(){rr.current.inject("applet_container")}},[]);const Dt=()=>{var un=window.ggbApplet.getPNGBase64(1,!0,72);return tn&&tn(un),un};return(0,be.useEffect)(()=>{rn.current.appName=Ht?"3D":"graphing",rr.current.inject("applet_container")},[Ht]),(0,be.useEffect)(()=>{Lt(Ot)},[Ot]),(0,be.useImperativeHandle)(Cn,()=>({getImgData:Dt})),be.createElement(be.Fragment,null,be.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Fr}),be.createElement(Ue.Z,{align:"middle"},be.createElement(Le.Z,{flex:1},be.createElement(tt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Ht,onChange:un=>Lt(un)})),be.createElement(Le.Z,null,be.createElement(we.ZP,{size:"large",onClick:Dt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),pt=ve(99298),at=ve(1012),st=ve(8591);const ft="link",vt="upload-image",St="add-flowchart",xt="draw-image",Ft="add-flowchart",Nt="code-block",Xt="add-table",dn="------------",en={default:dn,left:`:${dn}`,center:`:${dn}:`,right:`${dn}:`};var Jt=ve(31103),wn=(Ot,jt,_t)=>new Promise((tn,Bn)=>{var Cn=Ht=>{try{rr(_t.next(Ht))}catch(Lt){Bn(Lt)}},Fr=Ht=>{try{rr(_t.throw(Ht))}catch(Lt){Bn(Lt)}},rr=Ht=>Ht.done?tn(Ht.value):Promise.resolve(Ht.value).then(Cn,Fr);rr((_t=_t.apply(Ot,jt)).next())});function Ln(){}let fn=0;const zn=1e4,Un="\u2581",Nn="@\u2581\u2581@",On="@\u2581@",Tn=` **\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`,Zn=["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 Pr(Ot){return/^\d+$/.test(Ot)?`${Ot}px`:Ot}const qn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",jr={[qn+"-B"]:"bold",[qn+"-I"]:"italic"},ir={[ft]:"\u6DFB\u52A0\u94FE\u63A5",[Nt]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[vt]:"\u6DFB\u52A0\u56FE\u7247",[xt]:"\u6DFB\u52A0\u753B\u56FE",[St]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Xt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var gr=({defaultValue:Ot="",onChange:jt,width:_t="100%",height:tn=400,miniToolbar:Bn=!1,isFocus:Cn=!1,watch:Fr,insertTemp:rr,mode:Ht="markdown",id:Lt="markdown-editor-id",showResizeBar:rn=!1,noStorage:Dt=!1,showNullButton:un=!1,showNullProgramButton:En=!1,hidetoolBar:In=!1,fullScreen:Sn=!1,onBlur:bt,onCMBeforeChange:Mt,onFullScreen:Bt,className:Ct="",disablePaste:Vt=!1,disabled:$t=!1,disabledFill:Wt=!1,placeholder:Kt="",values:Rn="",extraUse:Mn})=>{const[kt,vr]=(0,be.useState)(null),[tr,nr]=(0,be.useState)(Ot),[Kr,gn]=(0,be.useState)(Fr),[vn,Wn]=(0,be.useState)(Sn),[Pn,yr]=(0,be.useState)(""),[ur,Yn]=(0,be.useState)(0),[kr,Cr]=(0,be.useState)(tn),[Po,po]=(0,be.useState)(!1),io=(0,be.useRef)((0,at.Z)()),ko=(0,be.useRef)(!1),Io=(0,be.useRef)(),[pn,Ro]=(0,be.useState)(0),[mo,zr]=(0,be.useState)(0),bo=(0,be.useRef)(),to=(0,be.useRef)(),lo=(0,be.useRef)(),vo=(0,be.useRef)(),dr=()=>wn(void 0,null,function*(){var ln;const Qt=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:io.current}});(ln=Qt==null?void 0:Qt.attachments)!=null&&ln.length&&(console.log("cm:",kt,bo),Qt.attachments.map(Yt=>{Yt.content_type.indexOf("image")>-1?kt.replaceSelection(`![,](/api/attachments/${Yt.id}?type=${Yt.content_type})`):Yt.content_type.indexOf("video")>-1?kt.replaceSelection(``):Yt.content_type.indexOf("pdf")>-1?kt.replaceSelection(`${Yt.name}`):kt.replaceSelection(`[${Yt.name}](${ENV.API_SERVER}/api/attachments/${Yt.id}?type=${Yt.content_type})`)}))});(0,be.useEffect)(()=>{const ln=window.scrollY||window.pageYOffset;nr(Rn),kt==null||kt.setValue(Rn),window.scrollTo(0,ln)},[Rn]),(0,be.useEffect)(()=>{Bt==null||Bt(vn)},[vn]),(0,be.useEffect)(()=>{if(bo.current){let ln=function(Yt,qt){var an;if(Vt){qt.preventDefault();return}const hn=qt.clipboardData;if(hn){const An=hn.types.toString(),mn=hn.items;if(An==="Files"||hn.types.indexOf("Files")>-1){if(qt.preventDefault(),Ht=="stex")return;try{let _r=mn[1];((an=mn[0])==null?void 0:an.kind)==="file"&&(_r=mn[0]);const Kn=_r.getAsFile(),Jr=Kn.name.split(".").pop();(0,We.I)(Kn,sr=>{var kn,hr,Sr;sr.id?((kn=Kn==null?void 0:Kn.type)==null?void 0:kn.indexOf("image"))>-1?Qt.replaceSelection(``):((hr=Kn==null?void 0:Kn.type)==null?void 0:hr.indexOf("video"))>-1?Qt.replaceSelection(``):((Sr=Kn==null?void 0:Kn.type)==null?void 0:Sr.indexOf("pdf"))>-1?Qt.replaceSelection(`${Kn.name}`):Zn.includes(Jr)?Qt.replaceSelection(`${Kn.name}`):Qt.replaceSelection(`[${Kn.name}](/api/attachments/${sr.id}?type=${sr.content_type})`):(sr==null?void 0:sr.status)===401&&(st.ZP.warning((sr==null?void 0:sr.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(_r){st.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Qt=E().fromTextArea(bo.current,{mode:Ht,lineNumbers:!Bn,lineWrapping:!0,value:Ot,autoCloseTags:!En,autoCloseBrackets:!0});return Qt.on("keyup",function(Yt,qt){qt.keyCode===8&&(Yt.getValue()==""?Qt.setOption("placeholder",Kt):Qt.setOption("placeholder",null))}),Qt.on("keydown",function(Yt,qt){if(qt.keyCode===8){var an=Er(Yt);an&&qt.preventDefault()}}),Cn&&Qt.focus(),Qt.on("paste",ln),Qt.on("dragleave",function(Yt,qt){to.current.classList.remove("mouse-hover-md")}),$t&&Qt.on("beforeChange",function(Yt,qt){(qt.origin==="paste"||qt.origin==="+input")&&qt.cancel()}),vr(Qt),()=>{Qt.off("paste",ln)}}},[]);const wr=(0,be.useCallback)(()=>{if(to.current)try{}catch(ln){console.log(ln,"---- to set md editor body height")}},[kr,to,vn]);(0,be.useEffect)(()=>{function ln(){let Qt=new pe.Z(Yt=>{for(let qt of Yt)(qt.target.offsetHeight>0||qt.target.offsetWidth>0)&&(wr(),kt.setSize("100%","100%"),kt.refresh())});return Qt.observe(bo.current.parentElement),Qt}if(kt){const Qt=ln();return()=>{var Yt,qt;(Yt=bo.current)!=null&&Yt.parentElement&&Qt.unobserve((qt=bo.current)==null?void 0:qt.parentElement)}}},[kt,wr]),(0,be.useEffect)(()=>{if(kt){let ln=[];for(const[Qt,Yt]of Object.entries(jr)){let qt={[Qt]:()=>{xr(Yt)}};ln.push(qt),kt.addKeyMap(qt)}return Io.current=setInterval(()=>{ko.current&&dr()},4e3),()=>{clearInterval(Io.current);for(let Qt of ln)kt.removeKeyMap(Qt)}}},[kt]),(0,be.useEffect)(()=>{Sn!==vn&&Wn(Sn)},[Sn]),(0,Jt.Z)(()=>{if(!Dt&&ur>0){let ln=new Date().getTime(),Qt=window.sessionStorage.getItem(Lt);ln>=ur+zn&&(!Qt||Qt!==tr)&&(window.sessionStorage.setItem(Lt,tr),po(!0))}},zn),(0,be.useEffect)(()=>{gn(Fr)},[kt,Fr]),(0,be.useEffect)(()=>{kt&&Cn&&kt.focus()},[kt,Cn]),(0,be.useEffect)(()=>{if(Kr&&kt){let ln=function(Yt){let qt=Yt.target;if(vo.current){let an=qt.scrollTop/qt.scrollHeight;vo.current.scrollTop=vo.current.scrollHeight*an}};const Qt=kt.getScrollerElement();return Qt.addEventListener("scroll",ln),()=>{Qt.removeEventListener("scroll",ln)}}},[kt,Kr]),(0,be.useEffect)(()=>{if(kt&&Mt){let ln=function(Qt,Yt){Mt(Qt,Yt)};return kt.on("beforeChange",ln),()=>{kt.off("beforeChange",ln)}}},[kt,Mt]),(0,be.useEffect)(()=>{if(kt&&bt){let ln=function(){bt(kt.getValue())};return kt.on("blur",ln),()=>{kt.off("blur",ln)}}},[kt,bt]);function Er(ln,Qt){var Yt=ln.getDoc(),qt=Yt.getCursor(),an=Yt.getLine(qt.line),hn=an.charAt(qt.ch-1),An=an.lastIndexOf("@\u2581@",qt.ch),mn=an.lastIndexOf("@\u2581\u2581@",qt.ch),_r=An>mn?An:mn,Kn=An>mn?3:4;if(Nn.indexOf(hn)===-1)return null;if(console.log("change1:",Qt,ln,an,qt,_r,An,mn,hn),_r>=0&&qt.ch-_r<5){var Jr=_r+Kn;return Yt.replaceRange("",{line:qt.line,ch:_r},{line:qt.line,ch:Jr}),{line:qt.line,ch:Jr}}return null}(0,be.useEffect)(()=>{if(kt){let ln=function(Qt,Yt){const qt=Qt.getValue();nr(qt),Yn(new Date().getTime()),Qt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),jt&&(En?jt(qt,no(qt)):jt(qt))};return kt.on("change",ln),()=>{kt.off("change",ln)}}},[kt,jt]),(0,be.useEffect)(()=>{if(kt)if(Ot==null)kt.setValue(""),nr("");else{const ln=window.scrollY||window.pageYOffset;Ot!==kt.getValue()&&(kt.setValue(Ot),nr(Ot),kt.setCursor($t?1:kt.lineCount(),0),window.scrollTo(0,ln))}},[kt,Ot]);const xr=(0,be.useCallback)(ln=>{const Qt=kt.getCursor(),Yt=kt.getSelection();let qt=Yt.split(` `);switch(ln){case"bold":return kt.replaceSelection("**"+Yt+"**"),Yt===""&&kt.setCursor(Qt.line,Qt.ch+2),kt.focus();case"italic":return kt.replaceSelection("*"+Yt+"*"),Yt===""&&kt.setCursor(Qt.line,Qt.ch+1),kt.focus();case"code":return kt.replaceSelection("`"+Yt+"`"),Yt===""&&kt.setCursor(Qt.line,Qt.ch+1),kt.focus();case"inline-latex":return yr("inline-latex"),kt.focus();case"latex":return kt.replaceSelection("```latex\n"+Yt+"\n```"),kt.setCursor(Qt.line+1,Yt.length+1),kt.focus();case"line-break":return kt.replaceSelection(`
`),kt.focus();case"list-ul":return Yt===""?kt.replaceSelection("- "+Yt):kt.replaceSelection(qt.map(an=>an===""?"":`- ${an}`).join(` `)),kt.focus();case"list-ol":return Yt===""?kt.replaceSelection("1. "+Yt):kt.replaceSelection(qt.map((an,hn)=>an===""?"":`${hn+1}. ${an}`).join(` `)),kt.focus();case"add-null-ch":return Yt===""&&kt.setCursor(Qt.line,Qt.ch),kt.replaceSelection(Un),kt.focus();case"add-signal":return Yt===""&&kt.setCursor(Qt.line,Qt.ch),kt.replaceSelection(On),kt.focus();case"add-multiple":return Yt===""&&kt.setCursor(Qt.line,Qt.ch),kt.replaceSelection(Nn),kt.focus();case"inster-template-1":return Yt===""&&kt.setCursor(Qt.line,Qt.ch),kt.replaceSelection(Tn),kt.focus();case"eraser":return kt.setValue(""),kt.focus();case"trigger-watch":return gn(!Kr),kt.focus();case"trigger-full-screen":return Wn(!vn),kt.focus();case ft:yr(ft);return;case Nt:yr(Nt);return;case vt:yr(vt);return;case xt:yr(xt);return;case"maths-latex":yr("maths-latex");return;case St:yr(St);return;case Xt:yr(Xt);return;default:throw new Error}},[kt,Kr,vn]),ao=(0,be.useCallback)((ln,Qt)=>{var Yt,qt,an,hn,An,mn;switch(yr(""),Pn){case ft:const{title:kn,link:hr}=ln;return kt.replaceSelection(`[${kn}](${hr})`),kt.focus();case Nt:const{language:Sr,content:Dn}=ln;return kt.replaceSelection(["```"+Sr,Dn,"```"].join(` `)),kt.focus();case"maths-latex":for(var _r=atob(ln),Kn=new Uint8Array(_r.length),Jr=0;Jr<_r.length;Jr++)Kn[Jr]=_r.charCodeAt(Jr);var sr=new Blob([Kn],{type:"image/png"});(0,We.I)(sr,yo=>{yo.id?kt.replaceSelection(`![,](/api/attachments/${yo.id}?type=${yo.content_type})`):(yo==null?void 0:yo.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":kt.replaceSelection("`$$"+ln+"$$`");break;case vt:case xt:case Ft:const{src:Or,alt:Gr}=ln,Tr=Qt,pr=(an=(qt=(Yt=Tr==null?void 0:Tr.name)==null?void 0:Yt.split("."))==null?void 0:qt.pop)==null?void 0:an.call(qt);return((hn=Tr==null?void 0:Tr.type)==null?void 0:hn.indexOf("image"))>-1||!(Tr!=null&&Tr.type)?Tr.align||Tr.width?kt.replaceSelection(`

${Gr||

`):kt.replaceSelection(`${Gr||`):((An=Tr==null?void 0:Tr.type)==null?void 0:An.indexOf("video"))>-1?kt.replaceSelection(``):((mn=Tr==null?void 0:Tr.type)==null?void 0:mn.indexOf("pdf"))>-1?kt.replaceSelection(`${Tr.name}`):Zn.includes(pr)?kt.replaceSelection(`${Tr.name}`):kt.replaceSelection(`[${Tr.name}](${Or})`),kt.focus();case Xt:const{row:Br,col:co,align:ho}=ln;let Uo=` `;for(let yo=0;yo{switch(Pn){case ft:return be.createElement(Xe,{callback:ao,onCancel:wo});case Nt:return be.createElement(Ve.Z,{callback:ao,onCancel:wo});case vt:return be.createElement(We.Z,{callback:ao,onCancel:wo});case St:return be.createElement(Te,{callback:ao,onCancel:wo});case Xt:return be.createElement(ke,{callback:ao,onCancel:wo});case"maths-latex":return be.createElement(lt,{showSaveButton:!0,callback:ao});case"inline-latex":return be.createElement(pt.Z,{showSaveButton:!0,callback:ao});default:return null}},[Pn]);function wo(){yr("")}(0,be.useEffect)(()=>{if(lo.current){let ln=function(An){an=!0,hn=An.pageY},Qt=function(){an=!1},Yt=function(An){if(an){let mn=An.pageY-hn;mn<0&&(mn=0),mn>300&&(mn=300);let _r=tn+mn+"px";Cr(_r)}},qt=lo.current,an=!1,hn=0;return qt.addEventListener("mousedown",ln),document.addEventListener("mousemove",Yt),document.addEventListener("mouseup",Qt),()=>{qt.removeEventListener("mousedown",ln),document.removeEventListener("mousemove",Yt),document.removeEventListener("mouseup",Qt)}}},[kt,lo]),(0,be.useEffect)(()=>{Cr(tn)},[tn]);const Lo=Pr(_t),Yo=Pr(kr),Mo={width:Lo,height:Yo},$r=(0,be.useMemo)(()=>{if(ur){let ln=new Date(ur),Qt=ln.getHours(),Yt=ln.getMinutes(),qt=ln.getSeconds();return Qt=Qt<10?"0"+Qt:Qt,Yt=Yt<10?"0"+Yt:Yt,qt=qt<10?"0"+qt:qt,`${Qt}:${Yt}:${qt}`}return 0},[ur]),no=ln=>{const Qt=[];if(En){let Yt=-1;ln=ln.replace(/(@▁▁@|@▁@)/g,function(qt,an,hn){Qt.push({multiLine:qt!==On})})}return Qt};function zo(){window.sessionStorage.removeItem(Lt),po(!1),Yn(0)}function Tt(){po(!1),Yn(0),kt.setValue(window.sessionStorage.getItem(Lt))}(0,be.useEffect)(()=>{ir[Pn]&&Pn!==xt&&Pn!==St&&setTimeout(()=>{const ln=document.getElementsByClassName("markdown-popup-form")[0],Qt=window.innerWidth/2-ln.offsetWidth/2,Yt=window.innerHeight/2-ln.offsetHeight/2;Ro(Qt),zr(Yt)},0)},[Pn]);const Gt=ln=>{ln.preventDefault();const Qt=ln.clientX-pn,Yt=ln.clientY-mo;document.body.onmousemove=qt=>{let an=qt.clientX-Qt,hn=qt.clientY-Yt;const An=document.getElementsByClassName("markdown-popup-form")[0],mn=window.innerWidth-An.offsetWidth,_r=window.innerHeight-An.offsetHeight;an=Math.max(0,Math.min(an,mn)),hn=Math.max(0,Math.min(hn,_r)),on(qt.clientX,qt.clientY,Qt,Yt)&&(Ro(an),zr(hn))},document.body.onmouseup=function(){document.body.onmousemove=null}},on=(ln,Qt,Yt,qt)=>{const an=document.body.clientHeight,hn=document.body.clientWidth;return ln<20&&Yt>ln||ln>hn-20&&YtQt||Qt>an-20&&qtPe in ye?oe(ye,Pe,{enumerable:!0,configurable:!0,writable:!0,value:we}):ye[Pe]=we,z=(ye,Pe)=>{for(var we in Pe||(Pe={}))y.call(Pe,we)&&b(ye,we,Pe[we]);if(a)for(var we of a(Pe))x.call(Pe,we)&&b(ye,we,Pe[we]);return ye},te=(ye,Pe)=>re(ye,ee(Pe));const{useForm:le}=be.default,fe={width:280,marginRight:10},ge={labelCol:{span:5},wrapperCol:{span:19}};var me=({callback:ye,onCancel:Pe})=>{const[we]=le();let De=(0,ce.useRef)();function Ee(je){De.current.width=we.getFieldValue("width"),De.current.align=we.getFieldValue("align"),ye(je,De.current)}function Ae(je,Me){if(je.status===-1){_e.ZP.error(je.message);return}we.setFieldsValue({src:`/api/attachments/${je.id}`,type:Me.type})}function Ce(je){let Me=je.target.files[0];De.current=Me,Se(Me,Ae)}return ae.createElement(be.default,te(z({form:we},ge),{className:"upload-image-panel",onFinish:Ee,style:{width:470,overflow:"hidden"}}),ae.createElement(be.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},ae.createElement("div",{className:"flex-container"},ae.createElement(be.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},ae.createElement(E.default,{style:fe})),ae.createElement(he,{onFileChange:Ce}))),ae.createElement(be.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},ae.createElement(E.default,{style:{width:264}})),ae.createElement(be.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},ae.createElement(pe.Z,null,ae.createElement(be.default.Item,{name:"width",style:{margin:0}},ae.createElement(de.Z,{style:{width:264}})),ae.createElement("span",{className:"ml8"},"%"))),ae.createElement(be.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},ae.createElement(se.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(be.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},ae.createElement(ne.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(ne.ZP,{type:"default",onClick:Pe},"\u53D6\u6D88"))))};function he({onFileChange:ye}){return ae.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",ae.createElement("input",{type:"file",onChange:ye}))}function Se(ye,Pe){if(!ye)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,ue.bg)())throw _e.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let we=new FormData;we.append("editormd-image-file",ye),we.append("file_param_name","editormd-image-file"),we.append("byxhr","true");var De=new window.XMLHttpRequest;De.withCredentials=!0,De.addEventListener("load",function(Ee){Pe(JSON.parse(Ee.target.responseText),ye)},!1),De.addEventListener("error",function(Ee){console.error(Ee)},!1),De.open("POST",`${ie.KI}/api/attachments.json`),De.send(we)}},57261:function(Et,dt,ve){"use strict";ve.d(dt,{Z:function(){return E}});var be=ve(59301),_e=ve(4676);class E extends be.Component{constructor(de){super(de);const se=window.document;this.node=se.createElement("div"),se.body.appendChild(this.node)}render(){const{children:de}=this.props;return(0,_e.createPortal)(de,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},77825:function(Et,dt,ve){"use strict";var be=ve(829),_e=ve(57809),E=ve(78673),pe=ve(59301);const de=_e.default.Option;dt.Z=({isTheoretical:se,onFontSizeChange:ne,cmFontSize:ie,cmCodeMode:ce,autoFormat:ue,onCodeModeChange:ae,onTabToSpace:oe,onAutoFormat:re,formatDocument:ee,className:a="",tabToSpace:y,children:x,code_editor:b,challenge:z,shixun_environment_id:te,shixun_environments:le})=>{var fe;const ge={1:"\u7B80\u5355",2:"\u4E2D\u7B49",3:"\u56F0\u96BE"},me=(fe=le==null?void 0:le.find(he=>he.shixun_environment_id===te))==null?void 0:fe.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(_e.default,{bordered:!1,size:"small",value:ce,onChange:ae},pe.createElement(de,{value:"vs"},"\u767D\u8272\u80CC\u666F"),pe.createElement(de,{value:"vs-dark"},"\u9ED1\u8272\u80CC\u666F"))),!se&&pe.createElement(pe.Fragment,null,pe.createElement("div",{className:"file-item"},pe.createElement("b",null,"\u5B57\u4F53\u5927\u5C0F"),pe.createElement(_e.default,{bordered:!1,size:"small",value:ie,onChange:ne},pe.createElement(de,{value:12},"12px"),pe.createElement(de,{value:14},"14px"),pe.createElement(de,{value:16},"16px"),pe.createElement(de,{value:18},"18px"),pe.createElement(de,{value:20},"20px"),pe.createElement(de,{value:22},"22px"))),pe.createElement("div",{className:"file-item"},pe.createElement("b",null,"Tab\u8F6C\u6362"),pe.createElement(E.Z,{checked:y,onChange:oe})),pe.createElement("div",{className:"file-item",onClick:ee},pe.createElement("b",{style:{cursor:"pointer"}},"\u683C\u5F0F\u5316\u4EE3\u7801")))),!se&&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"))),x),!se&&pe.createElement(pe.Fragment,null,pe.createElement("h3",null,"\u5FEB\u6377\u952E"),pe.createElement("section",null,me&&pe.createElement("div",{className:"file-item"},pe.createElement("b",null,"\u7F16\u7A0B\u8BED\u8A00"),pe.createElement("span",null,me)),pe.createElement("div",{className:"file-item"},pe.createElement("b",null,"\u5B9E\u8BAD\u96BE\u6613\u5EA6"),pe.createElement("span",null,ge[z==null?void 0:z.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")))))}},31103:function(Et,dt,ve){"use strict";ve.d(dt,{Z:function(){return _e}});var be=ve(59301);function _e(E,pe){const de=(0,be.useRef)();(0,be.useEffect)(()=>{de.current=E}),(0,be.useEffect)(()=>{function se(){de.current()}if(pe!==null){let ne=setInterval(se,pe);return()=>clearInterval(ne)}},[pe])}},21390:function(Et,dt,ve){"use strict";var be=ve(59301),_e=ve(31797),E=ve(5871),pe=ve(78241),de=ve(43418),se=ve(71418),ne=ve(1710),ie=ve(92832),ce=ve(95237),ue=ve(43604),ae=ve(3113),oe=ve(87513),re=ve(56656),ee=ve.n(re),a=ve(65582),y=ve(65862),x=ve(27158),b=ve(41867),z=ve(61527),te=ve(59301),le=(he,Se,ye)=>new Promise((Pe,we)=>{var De=Ce=>{try{Ae(ye.next(Ce))}catch(je){we(je)}},Ee=Ce=>{try{Ae(ye.throw(Ce))}catch(je){we(je)}},Ae=Ce=>Ce.done?Pe(Ce.value):Promise.resolve(Ce.value).then(De,Ee);Ae((ye=ye.apply(he,Se)).next())});const{Countdown:fe}=_e.default,ge=({value:he,onChange:Se,MaxMinutes:ye})=>te.createElement(te.Fragment,null,te.createElement("div",{className:"p10 mb20",style:{background:"#F6F7F9"}},"1.\u53EA\u6709\u5F53\u8003\u8BD5\u622A\u6B62\u65F6\u95F4\u665A\u4E8E\u5B66\u751F\u7684\u4EA4\u5377\u622A\u6B62\u65F6\u95F4\u65F6\uFF0C\u624D\u652F\u6301\u5BF9\u5B66\u751F\u8FDB\u884C\u5EF6\u65F6\u64CD\u4F5C\uFF1B",te.createElement("br",null),"2.\u6BCF\u4E2A\u5B66\u751F\u7684\u6700\u5927\u53EF\u5EF6\u65F6\u65F6\u95F4=\u8003\u8BD5\u622A\u6B62\u65F6\u95F4-\u5B66\u751F\u5F53\u524D\u7684\u4EA4\u5377\u622A\u6B62\u65F6\u95F4\u3002",te.createElement("br",null)),te.createElement(E.Z,{value:he,onChange:Se,min:0,precision:0,max:ye,style:{width:"100%"},placeholder:`\u6700\u5927\u53EF\u5EF6\u957F\u65F6\u95F4\u4E3A${ye}\u5206\u949F\uFF0C\u5728\u5B66\u751F\u5269\u4F59\u65F6\u95F4\u57FA\u7840\u4E0A\u5EF6\u65F6`,addonAfter:"\u5206\u949F"})),me=({exercise:he,successCb:Se,dispatch:ye})=>{var Pe,we,De,Ee;const Ae=(0,a.useParams)(),[Ce]=pe.default.useForm(),je=pe.default.useWatch("time",Ce),[Me,Ge]=(0,be.useState)(!1),Fe=(0,be.useRef)(),{actionTabs:Je}=he,[qe,Xe]=(0,be.useState)(),[,Ve,We,ze]=(0,z.U)(oe.n7,{id:Ae.categoryId}),[,Ue,ot]=(0,z.U)(oe.Cd,{});(0,be.useEffect)(()=>{he.actionTabs.key==="student-unlock"&&(Ge(!1),Ce.resetFields())},[he.actionTabs.key]);const Qe=()=>new Promise(Ze=>le(void 0,null,function*(){var Be,Oe;return Fe.current=yield(0,x.y)({ip_limit:(Be=Je==null?void 0:Je.exerciseParams)==null?void 0:Be.ip_limit,ip_bind:(Oe=Je==null?void 0:Je.exerciseParams)==null?void 0:Oe.ip_bind_type}),Ze()})),ut=()=>le(void 0,null,function*(){var Ze,Be,Oe,Te,xe;yield Ce.validateFields();const Ie=Ce.getFieldsValue();if(Ge(!0),(((Ze=Je==null?void 0:Je.exerciseParams)==null?void 0:Ze.ip_limit)!=="no"||(Be=Je==null?void 0:Je.exerciseParams)!=null&&Be.ip_bind_type)&&(yield Qe()),(yield(0,oe.ZD)((Oe=Je==null?void 0:Je.exerciseParams)==null?void 0:Oe.id,{exercise_user_id:(Te=Je==null?void 0:Je.exerciseParams)==null?void 0:Te.exercise_user_id,unlock_key:Ie.unlock_key,time:Ie.time,ip:Fe.current})).status===0){if(Se){ye({type:"exercise/setActionTabs",payload:{}}),Se();return}const rt=Je==null?void 0:Je.exerciseParams;(0,y.nr)({inner_ip:rt.inner_ip,public_ip:rt.public_ip,open_camera:rt.open_camera,ip_limit:rt.ip_limit,ip_bind:rt.ip_bind,ip_bind_type:rt.ip_bind_type,exercise_tips:rt.exercise_tips,exerciseId:rt.id,screen_open:rt.screen_open,screen_num:rt.screen_num,screen_sec:rt.screen_sec,coursesId:Ae.coursesId,login:(xe=(0,b.eY)())==null?void 0:xe.login,history,identity_verify:rt.identity_verify,open_phone_video_recording:rt.open_phone_video_recording,current_status:rt.current_status}),ye({type:"exercise/setActionTabs",payload:{}})}Ge(!1)}),Ye=[{title:"IP\u5730\u5740",dataIndex:"ip",key:"ip",render:Ze=>te.createElement("span",{className:Ze.indexOf("\u5F02\u5E38")>-1?"c-red":"c-green"},Ze)},{title:"\u6D4F\u89C8\u5668",dataIndex:"browser",key:"browser",render:Ze=>te.createElement("span",{className:Ze.indexOf("\u5F02\u5E38")>-1?"c-red":"c-green"},Ze)},{title:"\u4E0A\u6B21\u767B\u5F55\u65F6\u95F4",dataIndex:"last_login_time",key:"last_login_time"}],He=((Pe=Je==null?void 0:Je.exerciseParams)==null?void 0:Pe.errorMessage)&&typeof((we=Je==null?void 0:Je.exerciseParams)==null?void 0:we.errorMessage)=="object";(0,be.useEffect)(()=>{he.actionTabs.key==="student-unlock"&&le(void 0,null,function*(){const Ze=yield ot(Ae);yield We({}),Ze.status||Xe(Ze)})},[he.actionTabs.key]);const{time:Re,end_time:$e}=(qe==null?void 0:qe.exercise)||{},Le=ze!=null&&ze.user_end_time?ee()(ze==null?void 0:ze.user_end_time).add(1,"minutes"):ee()(),Ne=ee()(ze==null?void 0:ze.user_total_end_time)>Le?Math.round(ee().duration(ee()(ze==null?void 0:ze.user_total_end_time).diff(Le.startOf("minute"))).asMinutes()):0,et=((ze==null?void 0:ze.student_left_minutes)||0)+(je||0);return te.createElement(te.Fragment,null,te.createElement(de.default,{width:514,centered:!0,closable:!!((De=Je==null?void 0:Je.exerciseParams)!=null&&De.unlockClose),maskClosable:!1,keyboard:!1,maskStyle:{background:"#000"},title:"\u63D0\u793A",open:he.actionTabs.key==="student-unlock",footer:null,onCancel:()=>{ye({type:"exercise/setActionTabs",payload:{}})}},te.createElement(se.Z,{spinning:Ve||Ue},He&&te.createElement("div",{style:{marginBottom:16}},"\u8BE5\u8D26\u53F7\u5DF2\u7ECF\u5B58\u5728\u5F02\u5E38\u60C5\u51B5\uFF0C\u82E5\u975E\u672C\u4EBA\u64CD\u4F5C\uFF0C\u8BF7\u8054\u7CFB\u76D1\u8003\u8001\u5E08\u8BF4\u660E\u60C5\u51B5\u3002 "),!He&&te.createElement("div",{style:{marginBottom:16}},"\u7CFB\u7EDF\u68C0\u6D4B\u5230\u60A8\u5728\u8003\u8BD5\u65F6\u4E2D\u9014\u9000\u51FA\uFF0C\u73B0\u5DF2\u5C06\u8003\u8BD5\u9501\u5B9A\u3002\u5982\u9700\u7EE7\u7EED\u8FDB\u884C\u8003\u8BD5\uFF0C \u8BF7\u5C3D\u5FEB\u8054\u7CFB\u8BFE\u5802\u8001\u5E08\u8FDB\u884C\u89E3\u9501\uFF01"),He&&te.createElement(ne.default,{className:"mb20",pagination:{hideOnSinglePage:!0},dataSource:[((Ee=Je==null?void 0:Je.exerciseParams)==null?void 0:Ee.errorMessage)||{}],columns:Ye}),te.createElement("div",{className:""},te.createElement(pe.default,{form:Ce,layout:"vertical",autoComplete:"off"},te.createElement(pe.default.Item,{label:"\u8003\u8BD5\u89E3\u9501\u7801",name:"unlock_key",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8003\u8BD5\u89E3\u9501\u7801"}]},te.createElement(ie.default.Password,{autoComplete:"off",placeholder:"\u8BF7\u8F93\u5165\u8003\u8BD5\u89E3\u9501\u7801",visibilityToggle:!1})),Re!==-1?te.createElement(te.Fragment,null,te.createElement(pe.default.Item,{name:"time",label:te.createElement("span",null,"\u5EF6\u957F\u65F6\u95F4\uFF08",te.createElement("span",{style:{color:"#9096A3"}},"\u5F53\u524D\u8003\u8BD5\u622A\u6B62\u65F6\u95F4",ee()(ze==null?void 0:ze.user_total_end_time).format("YYYY-MM-DD HH:mm")),"\uFF09")},te.createElement(ge,{MaxMinutes:Ne})),te.createElement("div",{className:"mb20",style:{color:"#FA6400"}},"\u8BE5\u5B66\u751F\u5269\u4F59\u8003\u8BD5\u65F6\u95F4\uFF1A",te.createElement("span",{className:"ml5"},Ve||Ue?"--":et),"\u5206\u949F",et!==0&&(ze==null?void 0:ze.user_end_time)&&te.createElement("span",null,"\uFF0C\u4EA4\u5377\u622A\u6B62\u65F6\u95F4\uFF1A",te.createElement("span",{className:"ml5"},ee()(ze==null?void 0:ze.user_end_time).add(je||0,"m").format("YYYY-MM-DD HH:mm:ss"))))):te.createElement("span",{style:{color:"#F6A53B"}}," \u5F53\u524D\u8003\u8BD5\u672A\u9650\u5236\u8003\u751F\u7B54\u9898\u65F6\u957F\uFF0C\u8003\u8BD5\u622A\u6B62\u65F6\u95F4\u4E3A ",ee()($e).format("YYYY-MM-DD HH:mm")))),te.createElement(ce.Z,{justify:"space-between",align:"middle"},te.createElement(ue.Z,null),te.createElement(ue.Z,null,te.createElement(ae.ZP,{loading:Me,onClick:ut},"\u8FDB\u5165\u8003\u8BD5"))))))};dt.Z=(0,a.connect)(({exercise:he})=>({exercise:he}))(me)},17933:function(Et,dt,ve){"use strict";ve.d(dt,{Z:function(){return a}});var be=ve(59301),_e=ve(65582),E=ve(43418),pe=ve(3113),de=ve(71418),se=ve(67172),ne=ve(80443),ie=ve(50258),ce=ve(24334),ue=ve(56656),ae=ve.n(ue),oe=ve(17124),re=ve(59301),ee=(y,x,b)=>new Promise((z,te)=>{var le=me=>{try{ge(b.next(me))}catch(he){te(he)}},fe=me=>{try{ge(b.throw(me))}catch(he){te(he)}},ge=me=>me.done?z(me.value):Promise.resolve(me.value).then(le,fe);ge((b=b.apply(y,x)).next())}),a=({open:y,onClose:x})=>{const[b,z]=(0,be.useState)(void 0);console.log((0,_e.useLocation)(),33);const te=(0,_e.useLocation)();(0,be.useEffect)(()=>{y&&function(){return ee(this,null,function*(){const Xe=yield(0,se.X6)(y);z(Xe.data)})}()},[y]);const{status:le,created_at:fe,code:ge,name:me,language:he,pass_sets_count:Se,set_count:ye,error_msg:Pe,output:we,input:De,expected_output:Ee,execute_memory:Ae,user:Ce,execute_time:je,input_file_url:Me,output_file_url:Ge,is_file:Fe,expected_output_file_url:Je}=b||{};return re.createElement(E.default,{open:y,width:1e3,onCancel:()=>x(!1),footer:re.createElement(pe.ZP,{type:"primary",onClick:()=>x(!1)},"\u5173\u95ED"),centered:!0},re.createElement(de.Z,{spinning:!b,delay:500},re.createElement("div",{className:"record-detail-info"},b?re.createElement(re.Fragment,null,re.createElement("div",{className:"record-detail-body"},re.createElement("h2",null," \u63D0\u4EA4\u8BB0\u5F55 "),re.createElement("ul",{className:"record-info"},re.createElement("li",null," \u8BC4\u6D4B\u7ED3\u679C\uFF1A",re.createElement("span",{className:le===0?"c-green":"c-red"},ne.Im[le])," "),re.createElement("li",null," \u63D0\u4EA4\u65F6\u95F4\uFF1A",re.createElement("span",null,ae()(fe).format("YYYY-MM-DD HH:mm:ss"))," "),re.createElement("li",null," \u8BED\u8A00\uFF1A",re.createElement("span",null,he)," "),re.createElement("li",null," \u6267\u884C\u7528\u65F6\uFF1A",re.createElement("span",null,je*1e3,"ms")," "),re.createElement("li",null," ",`${le===oe.h.HIDE_COMPILE_STATUS?"--":Se} / ${ye} \u4E2A\u901A\u8FC7\u7684\u6D4B\u8BD5\u7528\u4F8B`," ")),(0,ne.gZ)({status:le,error_msg:Pe,execute_time:je,output:we,input:De,expected_output:Ee,input_file_url:Me,output_file_url:Ge,is_file:Fe,expected_output_file_url:Je}),re.createElement("h2",null," \u63D0\u4EA4\u7684\u5185\u5BB9 "),re.createElement(ie.ZP,{height:"200px",width:"100%",language:he==null?void 0:he.toLocaleLowerCase(),value:ce.Base64.decode(ge),options:{readOnly:!0}}))):null)))}},88125:function(Et,dt,ve){"use strict";ve.d(dt,{Im:function(){return ye},Y4:function(){return we}});var be=ve(59301),_e=ve(92832),E=ve(8591),pe=ve(3113),de=ve(10129),se=ve(24334),ne=ve.n(se),ie=ve(25492),ce=ve(42678),ue=ve(6339),ae=ve(65862),oe=ve(34376),re=ve.n(oe),ee=ve(38147),a=ve(65582),y=ve(17933),x=ve(77254),b=ve(67172),z=ve(56918),te=ve(21185),le=ve(92310),fe=ve.n(le),ge=ve(84056),me=ve(59301),he=(Ae,Ce,je)=>new Promise((Me,Ge)=>{var Fe=Xe=>{try{qe(je.next(Xe))}catch(Ve){Ge(Ve)}},Je=Xe=>{try{qe(je.throw(Xe))}catch(Ve){Ge(Ve)}},qe=Xe=>Xe.done?Me(Xe.value):Promise.resolve(Xe.value).then(Fe,Je);qe((je=je.apply(Ae,Ce)).next())});const{TextArea:Se}=_e.default,ye={[de.h.HIDE_COMPILE_STATUS]:"\u6682\u4E0D\u652F\u6301\u67E5\u770B",[de.h.NOMATCH]:"\u6D4B\u8BD5\u7528\u4F8B\u7ED3\u679C\u4E0D\u5339\u914D",[de.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 Pe=(Ae=>(Ae[Ae.SET_VISIBLE=0]="SET_VISIBLE",Ae[Ae.SET_TABINDEX=1]="SET_TABINDEX",Ae))(Pe||{});function we(Ae){const{status:Ce,error_msg:je,output:Me,input:Ge,expected_output:Fe,is_file:Je,input_file_url:qe,output_file_url:Xe,expected_output_file_url:Ve,setMonacoValue:We,setData:ze}=Ae,Ue=(0,be.useRef)(),ot=(0,be.useRef)(),Qe=(0,be.useRef)();let ut=null;const Ye={minHeight:150,marginBottom:10,paddingLeft:24,background:"#070f19",color:"#fff"};switch((0,be.useEffect)(()=>{if(Me&&!Je&&Ue.current){const He=new oe.Terminal({fontSize:14,letterSpacing:1,cols:83,rows:10});He.open(Ue.current);const Re=(0,ae.pp)(se.Base64.decode(Me));He.write(Re),He.setOption("theme",{background:"#1e1e1e"}),setTimeout(()=>{try{He.scrollToTop()}catch($e){}},100)}if(Ge&&!Je&&ot.current){const He=new oe.Terminal({fontSize:14,letterSpacing:1,cols:83,rows:10});He.open(ot.current),He.write((0,ae.pp)(Ge)),He.setOption("theme",{background:"#1e1e1e"}),setTimeout(()=>{try{He.scrollToTop()}catch(Re){}},100)}if(Fe&&!Je&&Qe.current){const He=new oe.Terminal({fontSize:14,letterSpacing:1,cols:83,rows:10});He.open(Qe.current),He.write((0,ae.pp)(se.Base64.decode(Fe))),He.setOption("theme",{background:"#1e1e1e"}),setTimeout(()=>{try{He.scrollToTop()}catch(Re){}},100)}},[Me]),Ce){case de.h.NOMATCH:ut=me.createElement(me.Fragment,null,me.createElement("p",{className:"c-red"},"\u5B9E\u9645\u8F93\u51FA\uFF1A"),!Je&&me.createElement("div",{ref:Ue}),Je&&me.createElement("div",{style:Ye},me.createElement("a",{style:{fontSize:"16px"},onClick:()=>he(this,null,function*(){const He=yield(0,ee.ZP)(Xe,{method:"Get",headers:{"Content-Type":"application/xml",Accept:"*/*"}});We(He),setTimeout(()=>{ze(Xe)},200)})},Me)),me.createElement("p",{className:"c-red"},"\u9884\u671F\u8F93\u51FA\uFF1A"),!Je&&me.createElement("div",{ref:Qe}),Je&&me.createElement("div",{style:Ye},me.createElement("a",{style:{fontSize:"16px"},onClick:()=>he(this,null,function*(){const He=yield fetch(Ve,{method:"Get",headers:{"Content-Type":"application/octet-stream",Accept:"*/*"}});We(yield He.text()),setTimeout(()=>{ze(Ve)},200)})},Fe)));break;case de.h.EXECUTEFAILURE:ut=me.createElement(me.Fragment,null,me.createElement("div",{style:{border:"1px #F6F7F9 solid"}},me.createElement("p",{style:{width:"100%",height:40,background:"#F6F7F9",lineHeight:"40px",color:"#666666",paddingLeft:"12px"}},"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A"),!Je&&me.createElement(ue.Z,{value:Ge,style:Ye}),Je&&me.createElement("div",{style:Ye},me.createElement("a",{onClick:()=>(0,ae.LR)(qe,Ge)},Ge))),me.createElement("div",{style:{border:"1px #F6F7F9 solid",marginTop:"10px"}},me.createElement("p",{style:{width:"100%",height:40,background:"#F6F7F9",lineHeight:"40px",color:"#666666",paddingLeft:"12px"}},"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),me.createElement("pre",{className:ie.Z.error,style:{color:"#E30000",padding:"0 10px"}},se.Base64.decode(je),"111")));break;case de.h.COMPILEFAILURE:ut=me.createElement(me.Fragment,null,me.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),me.createElement("pre",{className:ie.Z.error},se.Base64.decode(je)));break;case de.h.PODFAILURE:ut=me.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case de.h.TIMEOUT:ut=me.createElement("p",null,"\u8BC4\u6D4B\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break}return me.createElement(me.Fragment,null," ",ut," ")}function De(Ae){const{status:Ce,error_msg:je,execute_time:Me,output:Ge,input:Fe,expected_output:Je,is_file:qe,input_file_url:Xe,output_file_url:Ve,expected_output_file_url:We}=Ae;let ze=null;switch(Ce){case de.h.OK:case de.h.NOMATCH:case de.h.EXECUTEFAILURE:case de.h.COMPILEFAILURE:ze=me.createElement("div",{id:"outputResultRef",className:"h100"});break;case de.h.PODFAILURE:ze=me.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case de.h.TIMEOUT:ze=me.createElement("p",null,"\u8BC4\u6D4B\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break}return me.createElement(me.Fragment,null," ",ze," ")}function Ee({value:Ae,className:Ce}){return me.createElement("span",{className:Ce},Ae)}dt.ZP=({input:Ae,is_file:Ce,debuging:je,submitting:Me,executingMessage:Ge,debugResult:Fe,onChangeInput:Je,onDebugCode:qe,onSubmitCode:Xe,hack:Ve,user:We,submitResult:ze,isWhiteTheme:Ue,topDispatch:ot})=>{const[Qe]=(0,a.useSearchParams)(),ut=(0,a.useParams)(),[Ye,He]=(0,be.useState)(!1),[Re,$e]=(0,be.useState)(!1),[Le,Ne]=(0,be.useState)(1),[et,Ze]=(0,be.useState)(!1),[Be,Oe]=(0,be.useState)(0),[Te,xe]=(0,be.useState)(!1),[Ie,Ke]=(0,be.useState)(""),[rt,ke]=(0,be.useState)(""),tt=(0,be.useRef)(),mt=(0,be.useRef)(),ct=(0,be.useRef)(null),ht=(0,be.useRef)(null),lt=(0,be.useRef)(null);console.log(ze,"submitResult",ut);const{status:pt,id:at,input:st,output:ft,expected_output:vt,is_file:St,input_file_url:xt,output_file_url:Ft,expected_output_file_url:Nt,error_msg:Xt,hack_sets:dn}=ze||{};(0,be.useEffect)(()=>{pt===0&&(Ne(1),Oe(0))},[pt,at]),(0,be.useEffect)(()=>{he(void 0,null,function*(){var Tn;const Zn=yield(0,b.rX)(ut==null?void 0:ut.id,"submit");(Zn==null?void 0:Zn.status)===0&&(Zn!=null&&Zn.data&&((Tn=Zn==null?void 0:Zn.data)==null?void 0:Tn.status)!==0?(ot({type:z.Types.SET_SUBMIT_RESULT,payload:{submitResult:Zn==null?void 0:Zn.data}}),Ne(2),Oe(320)):(Ne(1),Oe(0)))})},[ut==null?void 0:ut.id]),(0,be.useEffect)(()=>{if(tt.current){let On=function(gr){Nr=Pr.offsetHeight,qn=!0,jr=gr.pageY,lt.current.style.display="block"},Tn=function(){qn=!1,lt.current.style.display="none"},Zn=function(gr){if(qn){en();let Ot=jr-gr.pageY,jt=Nr+Ot;if(jt<0&&(jt=0),jt>window.innerHeight-150&&(jt=window.innerHeight-150),Le===1){jt<=34?Oe(0):Oe(jt);return}console.log(jt,"resizeH"),Oe(jt)}};const Pr=ct.current;let Nr=0,qn=!1,jr=0;const ir=document.getElementById("case-y-bar");return ir==null||ir.addEventListener("mousedown",On),document.addEventListener("mousemove",Zn),document.addEventListener("mouseup",Tn),()=>{const gr=document.getElementById("case-y-bar");gr==null||gr.removeEventListener("mousedown",On),document.removeEventListener("mousemove",Zn),document.removeEventListener("mouseup",Tn)}}},[tt,Le]),(0,be.useEffect)(()=>{const On=x.Z.subscribe("resize-move-bar",en);if(Qe.get("type")!=="exercises")return document.addEventListener((0,ge.gH)(),Ln),()=>{document.removeEventListener((0,ge.gH)(),Ln),On()}},[]),(0,be.useEffect)(()=>{});function en(){var On,Tn,Zn,Pr;const Nr=document.getElementById("outputResultRef");if(Nr){let qn=Nr.dataset.text;mt.current.reset(),mt.current.writeln(qn);const jr=document.getElementById("outputResultRef").offsetWidth-20,ir=((Pr=(Zn=(Tn=(On=mt.current)==null?void 0:On._core)==null?void 0:Tn._renderService)==null?void 0:Zn.dimensions)==null?void 0:Pr.actualCellWidth)||10,gr=Math.ceil(jr/ir);mt.current.resize(gr,Math.ceil(Nr.clientHeight/16))}}function Jt(){He(!Ye),setTimeout(()=>{en()},300),Oe(Ye?320:window.innerHeight-150)}function wn(){Re?($e(!1),(0,ge.BU)()):($e(!0),(0,ge.Dj)(ht.current))}const Ln=On=>{(0,ge.vp)()||$e(!1)},fn=(0,be.useMemo)(()=>{if(Fe){const{status:On,output:Tn,error_msg:Zn}=Fe;return setTimeout(()=>{let Pr="",Nr=document.getElementById("outputResultRef");Tn?Pr=se.Base64.decode(Tn):Zn&&(Pr=se.Base64.decode(Zn)),mt.current=new oe.Terminal({fontSize:14,theme:{background:"#181e2e",cursor:"transparent"},rendererType:"dom"}),mt.current.open(Nr),mt.current.onKey(function(qn){var jr;if(qn.domEvent.key.toLocaleUpperCase()==="C"&&qn.domEvent.ctrlKey){qn.domEvent.preventDefault();let ir=(jr=mt.current)==null?void 0:jr.getSelection();navigator.clipboard.writeText(ir).then(()=>{})}}),Nr.dataset.text=Pr,mt.current.setOption("convertEol",!0),en()},300),me.createElement(me.Fragment,null,De(Fe))}return null},[Fe]);function zn(){var On,Tn;if(!(Ve!=null&&Ve.code)||((On=Ve==null?void 0:Ve.code)==null?void 0:On.trim().length)===0){(Tn=E.ZP)==null||Tn.warning("\u4EE3\u7801\u4E0D\u80FD\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7F16\u5199\u4EE3\u7801\u540E\uFF0C\u518D\u8FDB\u884C\u8BC4\u6D4B\uFF01");return}Ne(1),Oe(320),qe()}const Un=On=>he(void 0,null,function*(){let Tn=yield(0,ee.ZP)(`/api/problems/${On}/start.json`,{method:"get",params:{hack_user_id:We==null?void 0:We.user_id}});Tn&&(window.location.href=`/myproblems/${Tn==null?void 0:Tn.identifier}${window.location.search}`)});function Nn(){St?navigator.clipboard.writeText(se.Base64.decode(Xt)).then(()=>{E.ZP.success("\u590D\u5236\u9519\u8BEF\u4FE1\u606F\u6210\u529F")}):navigator.clipboard.writeText(se.Base64.decode(ft)).then(()=>{E.ZP.success("\u590D\u5236\u9519\u8BEF\u4FE1\u606F\u6210\u529F")})}return me.createElement(be.Fragment,null,me.createElement("div",{className:fe()(ie.Z.case,Ue&&ie.Z.whiteCase),style:{height:Be},ref:ct},me.createElement("div",{className:ie.Z.fullMask,ref:lt}),me.createElement("div",{className:ie.Z["resize-y-bar"],id:"case-y-bar",ref:tt,draggable:!1},Le===2&&me.createElement("i",{className:"iconfont icon-guangbiao",draggable:!1})),Le===1&&(Be<=34?me.createElement("div",{onClick:()=>{Oe(320)},className:ie.Z.unfoldBtn},"\u63A7\u5236\u53F0",me.createElement("i",{className:"iconfont icon-zhankai9 ml10 font12"})):me.createElement("div",{onClick:()=>{Oe(0)},className:ie.Z.unfoldBtn,style:{borderRadius:"0px 0px 8px 8px",top:0}},"\u63A7\u5236\u53F0",me.createElement("i",{className:"iconfont icon-shouqi8 ml10 font12"}))),me.createElement("div",null,me.createElement("div",{className:ie.Z.caseHead},me.createElement("div",{className:ie.Z.dot}),me.createElement("div",{className:ie.Z.text},Le===1?"\u8C03\u8BD5\u4EE3\u7801\u7ED3\u679C":"\u8BC4\u6D4B\u7ED3\u679C"),Le===2&&!Me&&typeof pt=="number"&&me.createElement(me.Fragment,null,pt===de.h.OK?me.createElement("div",{className:ie.Z.pass},me.createElement("i",{className:"iconfont icon-tongguo font14 mr5"}),"\u8BC4\u6D4B\u901A\u8FC7"):me.createElement("div",{className:ie.Z.noPass},me.createElement("i",{className:"iconfont icon-jinggao-3 font14 mr5"}),ye[pt])),me.createElement("div",{className:ie.Z.btns},Le===2&&!Me&&me.createElement(me.Fragment,null,pt!==de.h.OK&&me.createElement("div",{onClick:Nn},me.createElement("i",{className:"iconfont icon-fuzhi8"}),"\u590D\u5236\u9519\u8BEF\u4FE1\u606F"),me.createElement("div",{onClick:()=>{xe(at)}},me.createElement("i",{className:"iconfont icon-danceng-xinjianwenjian"}),"\u663E\u793A\u8BE6\u60C5")),Qe.get("type")!=="exercises"&&me.createElement("div",{title:"\u5C55\u5F00/\u6536\u7F29",onClick:()=>Jt()},me.createElement("i",{className:`iconfont icon-${Ye?"suoxiao1":"fangda"}`})))),me.createElement("div",{style:{display:Le===1?"block":"none"}},je?me.createElement(ce.Z,{style:{color:"#1976d2"},message:"\u670D\u52A1\u542F\u52A8\u4E2D..."}):me.createElement("div",{style:{height:Be-34}},me.createElement("div",{className:ie.Z.result},me.createElement("div",{className:ie.Z.left},me.createElement("div",{className:ie.Z.title},me.createElement("i",{style:{color:"#00FA95"},className:"iconfont iconfont icon-zidingyiceshiyongli font14 mr5"}),me.createElement("span",null,"\u81EA\u5B9A\u4E49\u6D4B\u8BD5\u7528\u4F8B")),me.createElement("div",{className:ie.Z.leftNode},me.createElement(Se,{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:Ce?"":Ae,onChange:Je}))),me.createElement("div",{className:ie.Z.right},me.createElement("div",{className:ie.Z.title},me.createElement("i",{style:{color:"#00DFFF"},className:"iconfont iconfont icon-daimazhihangjieguo font14 mr5"}),me.createElement("span",null,"\u4EE3\u7801\u6267\u884C\u7ED3\u679C")),me.createElement("div",{className:ie.Z.node},Fe?fn:me.createElement("p",{style:{color:"#8F96B1"}},"\u8BF7\u5728\u5DE6\u4FA7\u8F93\u5165\u81EA\u5B9A\u4E49\u6D4B\u8BD5\u7528\u4F8B\u7684\u8F93\u5165\u503C\uFF0C\u70B9\u51FB\u201C\u8C03\u8BD5\u4EE3\u7801\u201D\uFF0C\u5373\u53EF\u751F\u6210\u4EE3\u7801\u6267\u884C\u7ED3\u679C")))))),me.createElement("div",{style:{display:Le===2?"block":"none"}},Me?me.createElement(ce.Z,{style:{color:"#1976d2"},message:"\u670D\u52A1\u542F\u52A8\u4E2D..."}):me.createElement("div",{style:{height:Be-34,display:"flex",flexDirection:"column",overflow:"hidden"}},me.createElement("div",{ref:ht,className:ie.Z.elseNode},me.createElement("div",{className:ie.Z.nameWrap},me.createElement("i",{style:{color:"#00DFFF"},className:"iconfont iconfont icon-zidingyiceshiyongli font14 mr5"}),me.createElement("span",null,"\u5B9E\u9645\u8F93\u5165")),me.createElement("div",{className:ie.Z.scroll},me.createElement("pre",{className:ie.Z.scrollBox,style:et?{height:Re?"calc(100vh - 20px)":200}:{height:24,overflow:"hidden"}},!St&&me.createElement(Ee,{value:st}),St&&me.createElement("a",{style:{fontSize:"16px"},onClick:()=>he(void 0,null,function*(){const On=yield fetch(xt,{method:"Get",headers:{"Content-Type":"application/octet-stream",Accept:"*/*"}});ke(yield On.text()),setTimeout(()=>{Ke(xt)},200)})},st)),st&&me.createElement("div",{className:ie.Z.action},me.createElement("span",{onClick:()=>Ze(!et)},et?"\u6536\u8D77":"\u5C55\u5F00"),Qe.get("type")!=="exercises"&&me.createElement("i",{title:"\u5168\u5C4F/\u9000\u51FA\u5168\u5C4F",onClick:()=>wn(),className:`iconfont icon-${Re?"suoxiao1":"fangda"}`})))),me.createElement("div",{className:ie.Z.result,style:{flex:1,overflow:"hidden"}},me.createElement("div",{className:ie.Z.left},me.createElement("div",{className:ie.Z.title},me.createElement("i",{style:{color:"#00FA95"},className:"iconfont iconfont icon-zidingyiceshiyongli font14 mr5"}),me.createElement("span",null,"\u9884\u671F\u8F93\u51FA")),me.createElement("div",{className:ie.Z.node,style:{background:"#1B2333",color:"#2ABD8C"}},me.createElement("pre",null,!St&&me.createElement(Ee,{className:"mb10",value:vt&&se.Base64.decode(vt)||""}),St&&me.createElement("a",{style:{fontSize:"16px"},onClick:()=>he(void 0,null,function*(){const On=yield fetch(Nt,{method:"Get",headers:{"Content-Type":"application/octet-stream",Accept:"*/*"}});ke(yield On.text()),setTimeout(()=>{Ke(Nt)},200)})},vt)))),me.createElement("div",{className:ie.Z.right},me.createElement("div",{className:ie.Z.title},me.createElement("i",{style:{color:"#00DFFF"},className:"iconfont iconfont icon-daimazhihangjieguo font14 mr5"}),me.createElement("span",null,"\u5B9E\u9645\u8F93\u51FA")),me.createElement("div",{className:ie.Z.node,style:{color:pt===de.h.OK?"#2ABD8C":"#FF2C29"}},me.createElement("pre",null,(pt===4||pt===5)&&me.createElement(Ee,{className:"mb10",value:Xt&&se.Base64.decode(Xt)||""}),pt!=4&&pt!=5&&(St?me.createElement("a",{style:{fontSize:"16px"},onClick:()=>he(void 0,null,function*(){const On=yield(0,ee.ZP)(Ft,{method:"Get",headers:{"Content-Type":"application/xml",Accept:"*/*"}});try{ke(On)}catch(Tn){ke("")}setTimeout(()=>{Ke(Ft)},200)})},ft):me.createElement(Ee,{className:"mb10",value:ft&&se.Base64.decode(ft)||""})))))))))),me.createElement("div",{className:fe()(ie.Z.footer,Ue&&ie.Z.whiteFooter),style:{zIndex:100}},(Ve==null?void 0:Ve.is_program)&&(Ve==null?void 0:Ve.above_question)&&me.createElement(pe.ZP,{className:"mr10",type:"primary",onClick:()=>Un(Ve==null?void 0:Ve.above_question),id:"oj-prev",ghost:!0},"\u4E0A\u4E00\u9898"),(Ve==null?void 0:Ve.is_program)&&(Ve==null?void 0:Ve.under_question)&&me.createElement(pe.ZP,{className:"mr10",type:"primary",onClick:()=>Un(Ve==null?void 0:Ve.under_question),id:"oj-next",ghost:!0},"\u4E0B\u4E00\u9898"),me.createElement(pe.ZP,{style:{border:"1px solid #2ABD8C",color:"#2ABD8C"},ghost:!0,disabled:je||Me,loading:je,color:"#2ABD8C",className:"mr10",onClick:zn},"\u8C03\u8BD5\u4EE3\u7801"),Qe.get("qtype")!=="8"&&me.createElement(pe.ZP,{className:ie.Z.disabled,type:"primary",icon:me.createElement("i",{className:"iconfont icon-bofang1"}),loading:Me,disabled:je||Me,onClick:()=>{var On,Tn;if(!(Ve!=null&&Ve.code)||((On=Ve==null?void 0:Ve.code)==null?void 0:On.trim().length)===0){(Tn=E.ZP)==null||Tn.warning("\u4EE3\u7801\u4E0D\u80FD\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7F16\u5199\u4EE3\u7801\u540E\uFF0C\u518D\u8FDB\u884C\u8BC4\u6D4B\uFF01");return}Ne(2),Oe(320),Xe()}},"\u8BC4\u6D4B\u5E76\u63D0\u4EA4")),me.createElement(y.Z,{onClose:xe,open:Te}),me.createElement(te.Z,{close:!0,data:Ie,type:Ie.length?"txt":"",onClose:()=>Ke(""),monacoEditor:{value:rt,language:"txt",onChange:()=>{},options:{fontSize:14,readOnly:!0,minimap:{enabled:!1}}}}))}},56918:function(Et,dt,ve){"use strict";ve.r(dt),ve.d(dt,{Types:function(){return wo},default:function(){return $r}});var be=ve(59301),_e=ve(65582),E=ve(31797),pe=ve(43418),de=ve(71418),se=ve(3113),ne=ve(6848),ie=ve(95237),ce=ve(67172),ue=ve(87513),ae=ve(84056),oe=ve(29584),re=ve(74128),ee=ve(87169),a=ve(43428),y=ve(50258),x=ve(57261),b=ve(42926),z=ve(77825),te=ve(8591),le={list:"list___IRN6i",copy:"copy___qCn9B"},fe=ve(56102),ge=ve(38147),me=(Tt,Gt,on)=>new Promise((ln,Qt)=>{var Yt=hn=>{try{an(on.next(hn))}catch(An){Qt(An)}},qt=hn=>{try{an(on.throw(hn))}catch(An){Qt(An)}},an=hn=>hn.done?ln(hn.value):Promise.resolve(hn.value).then(Yt,qt);an((on=on.apply(Tt,Gt)).next())}),Se=({showResourceCentre:Tt,identifier:Gt})=>{const on=(0,_e.useParams)(),[ln,Qt]=(0,be.useState)(null);(0,be.useEffect)(()=>{Tt&&Yt()},[Tt]);const Yt=()=>me(void 0,null,function*(){const qt=yield(0,ge.ZP)(`/api/problems/${Gt}/attachment_list.json`,{method:"get"});(qt==null?void 0:qt.status)==0&&Qt(qt.data||[])});return be.createElement("div",{className:"tpi-code-setting"},be.createElement("h3",null,"\u8D44\u6E90\u4E2D\u5FC3"),!(ln!=null&&ln.length)&&be.createElement("div",{className:"tc mt50 c-grey-999"},"\u6682\u65E0\u8D44\u6E90\u6570\u636E"),ln==null?void 0:ln.map((qt,an)=>be.createElement("dl",{className:le.list,key:an},be.createElement(ne.Z,{title:qt.title},be.createElement("dt",null,be.createElement("i",{className:"icon-wenjian4 mr5"}),qt.title)),be.createElement("dd",null,be.createElement(fe.CopyToClipboard,{text:qt.saved_file_path,onCopy:()=>te.ZP.success("\u590D\u5236\u6210\u529F")},be.createElement("span",{className:`${le.copy} current`},"\u70B9\u51FB\u590D\u5236"))))))},ye=ve(59301),Pe=Object.defineProperty,we=Object.defineProperties,De=Object.getOwnPropertyDescriptors,Ee=Object.getOwnPropertySymbols,Ae=Object.prototype.hasOwnProperty,Ce=Object.prototype.propertyIsEnumerable,je=(Tt,Gt,on)=>Gt in Tt?Pe(Tt,Gt,{enumerable:!0,configurable:!0,writable:!0,value:on}):Tt[Gt]=on,Me=(Tt,Gt)=>{for(var on in Gt||(Gt={}))Ae.call(Gt,on)&&je(Tt,on,Gt[on]);if(Ee)for(var on of Ee(Gt))Ce.call(Gt,on)&&je(Tt,on,Gt[on]);return Tt},Ge=(Tt,Gt)=>we(Tt,De(Gt));const Fe={theme:(0,b.G)("ProgrammingCodeMode","vs-dark"),fontSize:(0,b.G)("cmFontSize",14),showEditorSetting:!1,tabToSpace:(0,b.G)("cmTabToSpace",!0),showResourceCentre:!1};var Je=(Tt=>(Tt[Tt.set_font_size=0]="set_font_size",Tt[Tt.set_theme=1]="set_theme",Tt[Tt.on_tab_to_space=2]="on_tab_to_space",Tt[Tt.set_show_editor_setting=3]="set_show_editor_setting",Tt[Tt.set_show_respurce_center=4]="set_show_respurce_center",Tt))(Je||{});function qe(Tt,Gt){switch(Gt.type){case 3:return Ge(Me({},Tt),{showEditorSetting:Gt.payload});case 1:return Ge(Me({},Tt),{theme:Gt.payload});case 0:return Ge(Me({},Tt),{fontSize:Gt.payload});case 2:return Ge(Me({},Tt),{tabToSpace:Gt.payload});case 4:return Ge(Me({},Tt),{showResourceCentre:Gt.payload});default:throw new Error}}var Xe=({isLoading:Tt,value:Gt,onChange:on,language:ln,onUpdateCode:Qt,ActionBarRender:Yt,setIsWhiteTheme:qt,identifier:an})=>{const[hn,An]=(0,be.useReducer)(qe,Fe),{theme:mn,fontSize:_r,showEditorSetting:Kn,tabToSpace:Jr,showResourceCentre:sr}=hn,kn=(0,be.useRef)(),hr=(0,be.useRef)();(0,be.useEffect)(()=>{qt(mn==="vs")},[mn]);const Sr={onFontSizeChange:Br=>{An({type:0,payload:Br}),(0,b.t)("cmFontSize",Br)},tabToSpace:Jr,cmFontSize:_r,className:"oj",cmCodeMode:mn,onTabToSpace:Br=>{An({type:2,payload:Br}),(0,b.t)("cmTabToSpace",Br)},onCodeModeChange:Br=>{An({type:1,payload:Br}),(0,b.t)("ProgrammingCodeMode",Br)}};function Dn(){An({type:3,payload:!1})}function Or(){An({type:3,payload:!0})}function Gr(){An({type:4,payload:!1})}function Tr(){An({type:4,payload:!0})}const pr={value:Gt,language:ln,theme:mn,options:{fontSize:_r,insertSpaces:Jr},onChange:Br=>{on(Br),hr.current=Br,clearTimeout(kn.current),kn.current=setTimeout(()=>{Qt(hr.current)},1e4)},onEditBlur:Br=>{hr.current&&Qt(hr.current)}};return ye.createElement(be.Fragment,null,Yt(Or,Tr),ye.createElement("div",{style:{flex:1,overflow:"hidden"}},!Tt&&ye.createElement(y.ZP,Me({},pr))),ye.createElement(x.Z,null,ye.createElement(a.Z,{rootClassName:"oj",title:null,placement:"right",closable:!1,open:Kn,onClose:Dn},ye.createElement(z.Z,Me({},Sr)))),ye.createElement(x.Z,null,ye.createElement(a.Z,{rootClassName:"oj",title:null,placement:"right",closable:!1,open:sr,onClose:Gr},ye.createElement(Se,{showResourceCentre:sr,identifier:an}))))},Ve=ve(60141),We=ve(24334),ze=ve(88125),Ue={flex_box_center:"flex_box_center___rM3g8",flex_space_between:"flex_space_between___Oc7SE",flex_box_vertical_center:"flex_box_vertical_center___MnmYE",flex_box_center_end:"flex_box_center_end___QQh83",flex_box_column:"flex_box_column___ZRFbL","left-panel":"left-panel___SKGyd","tab-panel-body":"tab-panel-body___gABdv",b1:"b1___QpbmK","oj-width-input":"oj-width-input___eJQWT","oj-mr":"oj-mr___AxILO","s-navs":"s-navs___FXwOi","bg-white":"bg-white___kbZ6r",active:"active___QGOnZ",list:"list___PXTsq",btns:"btns___F8yZK",drawer:"drawer___xdGaT",tour:"tour___oMkVh"},ot={pagination:"pagination___yDAjZ",info:"info___ATmsa",wrap:"wrap____KX19"},Qe=ve(1710),ut=ve(58421),Ye=ve(58617),He=ve(17933),Re=ve(56656),$e=ve.n(Re),Le=ve(59301);const{Column:Ne}=Qe.default;var et=({submitResult:Tt,submitting:Gt,submitRecords:on,page:ln,onPageChange:Qt,topicId:Yt})=>{const[qt]=(0,_e.useSearchParams)(),{records:an,records_count:hn}=on||{},[An,mn]=(0,be.useState)(!1),_r=qt.get("type")==="1";return Le.createElement(de.Z,{spinning:Gt,tip:"\u8BC4\u6D4B\u4E2D...",indicator:Le.createElement(Ye.Z,{style:{fontSize:24},spin:!0})},(an==null?void 0:an.length)>0?Le.createElement(Qe.default,{dataSource:an,rowKey:"id",pagination:!1},Le.createElement(Ne,{title:"\u63D0\u4EA4\u65F6\u95F4",dataIndex:"created_at",key:"created_at",render:(Kn,Jr)=>Le.createElement("span",null," ",$e()(Kn).format("YYYY-MM-DD HH:mm:ss"))}),Le.createElement(Ne,{title:"\u8BC4\u6D4B\u7ED3\u679C",dataIndex:"status",key:"status",render:(Kn,Jr)=>{var sr;return Le.createElement("span",{className:`${Kn===0?"c-green":"c-red"} current`,onClick:()=>{mn(Jr.id)}},(sr=ze.Im[Kn])==null?void 0:sr.replace("\u8C03\u8BD5","\u8BC4\u6D4B"))}}),Le.createElement(Ne,{title:`\u6267\u884C\u7528\u65F6 (${_r?"MS":"S"})`,dataIndex:"execute_time",key:"execute_time",render:Kn=>Kn?_r?Kn:Kn/1e3:""}),Le.createElement(Ne,{title:`\u5185\u5B58\u6D88\u8017\uFF08${_r?"KB":"MB"}\uFF09`,dataIndex:"execute_memory",key:"execute_memory",render:Kn=>Kn?_r?Kn:parseFloat((Kn/1024).toFixed(2)):""}),Le.createElement(Ne,{title:"\u8BED\u8A00",dataIndex:"language",key:"language"}),Le.createElement(Ne,{title:"\u64CD\u4F5C",dataIndex:"status",key:"status",render:(Kn,Jr)=>Le.createElement("span",{className:"c-light-primary current",onClick:()=>{mn(Jr.id)}},"\u67E5\u770B")})):Le.createElement("div",{style:{height:300,width:"100%"}}),Le.createElement(He.Z,{onClose:mn,open:An}),hn>15?Le.createElement(ut.Z,{className:ot.pagination,current:ln,pageSize:15,total:hn,onChange:Qt}):null)},Ze=ve(2524),Be=ve(12563),Oe={desc:"desc___iOAgd",info:"info___GPALq",info_tag:"info_tag___CFEn8"},Te=ve(6339),xe=ve(59301);const Ie={1:{name:"\u7B80\u5355",color:"#52c41a"},2:{name:"\u4E2D\u7B49",color:"#faad14"},3:{name:"\u56F0\u96BE",color:"#f5222d"}};var Ke=({hack:Tt})=>{const{language:Gt,difficult:on,time_limit:ln,description:Qt}=Tt,[Yt]=(0,_e.useSearchParams)(),qt=Ie[on];return xe.createElement(xe.Fragment,null,xe.createElement("ul",{className:Oe.info},xe.createElement("li",null,"\u7F16\u7A0B\u8BED\u8A00\xA0\xA0",xe.createElement("b",{className:Oe.info_tag},Gt)),xe.createElement("li",null,xe.createElement("span",{className:"ml20"},"\u96BE\u5EA6"),"\xA0\xA0",xe.createElement(Be.Z,{color:qt==null?void 0:qt.color},qt==null?void 0:qt.name)),xe.createElement("li",null,xe.createElement("span",{className:"ml20"},"\u5355\u4E2A\u6D4B\u8BD5\u96C6\u8BC4\u6D4B\u65F6\u957F\u9650\u5236"),"\xA0\xA0",xe.createElement("span",{style:{color:"#333333"}},ln,"\u79D2"))),Yt.get("qtype")==="8"?xe.createElement(Te.Z,{value:Qt,showProgramFill:!0,className:Oe.desc}):xe.createElement(Te.Z,{value:Qt,className:Oe.desc}))},rt={},ke=ve(59301),tt=({hack:Tt,current_user:Gt})=>ke.createElement("div",{className:rt.answer},Tt!=null&&Tt.answer_text?ke.createElement(Te.Z,{style:{padding:"13px 0"},value:(Tt==null?void 0:Tt.answer_text)||""}):ke.createElement(Ze.Z,{customText:"\u6682\u672A\u8BBE\u7F6E\u53C2\u8003\u7B54\u6848~"})),mt=ve(77254);function ct(Tt,Gt){return(0,ge.U2)(`/problems/${Tt}/comments.json`,{page:Gt,limit:10})}function ht(Tt){return(0,ge.v_)(`/discusses/${Tt}/plus.json`,{container_type:"Discuss",type:1})}function lt(Tt,Gt,on){return(0,ge.v_)(`/problems/${Tt}/comments/reply.json`,{comments:{content:on,parent_id:Gt}})}function pt(Tt,Gt){return(0,ge.v_)(`/problems/${Tt}/comments.json`,{comments:{content:Gt}})}function at(Tt,Gt,on){return(0,ge.v_)(`/problems/${Tt}/comments/${Gt}/hidden.json`,on)}function st(Tt,Gt){return(0,ge.IV)(`/problems/${Tt}/comments/${Gt}`)}var ft=ve(83554);function vt({author:Tt}){return be.createElement("a",{href:`/users/${Tt.login}`,target:"_blank"},be.createElement("img",{alt:"\u7528\u6237\u5934\u50CF",height:"50",style:{borderRadius:"50%"},src:`${re.Z.IMG_SERVER}/images/${Tt.image_url}`,width:"50"}))}function St({data:Tt,index:Gt,parentDiscussIndex:on,user:ln,onSetActionType:Qt}){const{author:Yt,can_delete:qt,content:an,id:hn,time:An}=Tt;function mn(){Qt({id:hn,index:Gt,type:"delete-discuss",parentDiscussIndex:on,message:"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417"})}const _r=ln.admin||qt||Yt.user_id===ln.user_id;return be.createElement("div",{className:"discuss-item-container second-discuss "},be.createElement(vt,{author:Yt}),be.createElement("section",null,be.createElement("div",{className:"discuss-info"},be.createElement("a",{href:`/users/${Yt.login}`,target:"_blank"},Yt.name),be.createElement("span",{className:"grey"},An),be.createElement("div",{className:"btn-group",style:{marginBottom:0}},_r?be.createElement("a",{onClick:mn,title:"\u5220\u9664"},be.createElement("i",{className:"iconfont icon-shanchu"})):null)),be.createElement(Te.Z,{className:"discuss-content",value:an})))}var xt=({user:Tt,data:Gt,index:on,onPlusDiscuss:ln,onSetActionType:Qt,activeDiscussIndex:Yt,onReplyDiscuss:qt,onSetActiveDiscussIndex:an})=>{const{content:hn,children:An,hidden:mn,id:_r,praise_count:Kn,time:Jr,user_praise:sr,can_delete:kn,author:hr}=Gt;function Sr(){an(_r)}function Dn(){ln(_r,!sr,on)}function Or(){Qt({id:_r,index:on,type:"delete-discuss",message:"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417"})}function Gr(){Qt({id:_r,index:on,params:{hidden:mn?"0":"1"},type:"hidden-discuss",message:mn?"\u786E\u5B9A\u8981\u53D6\u6D88\u9690\u85CF\u8BE5\u6761\u56DE\u590D\u5417":"\u786E\u5B9A\u8981\u9690\u85CF\u8BE5\u6761\u56DE\u590D\u5417"})}const Tr=Tt.admin||Tt.user_id===hr.user_id;return be.createElement("div",{className:"discuss-item-container",key:_r},be.createElement(vt,{author:hr}),be.createElement("section",null,be.createElement("div",{className:"discuss-info"},be.createElement("a",{href:`/users/${hr.login}`,target:"_blank"}," ",hr.name," "),be.createElement("span",{className:"grey"},Jr)),be.createElement(Te.Z,{className:"discuss-content",value:hn}),An&&An.length>0?be.createElement("div",{className:"reply-discuss-container"},An.map((pr,Br)=>be.createElement(St,{key:pr.id,data:pr,index:Br,user:Tt,onSetActionType:Qt,parentDiscussIndex:on}))):null,be.createElement("div",{className:"btn-group"},Tr?be.createElement("a",{onClick:Gr,title:mn?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF\u8BC4\u8BBA"},be.createElement("i",{className:mn?"iconfont icon-yincangbiyan":"fa fa-eye"})):null,kn&&(!An||An.length==0)?be.createElement("a",{onClick:Or,title:"\u5220\u9664"},be.createElement("i",{className:"iconfont icon-shanchu"})):null,be.createElement("a",{onClick:Sr,title:"\u56DE\u590D"}," ",be.createElement("i",{className:"iconfont icon-huifu1"})," "),be.createElement("a",{onClick:Dn,className:sr?"c-orange":""},be.createElement("i",{className:sr?"iconfont icon-dianzan mr3":"iconfont icon-dianzan-xian mr3 "}),be.createElement("span",null,Kn||""))),be.createElement(ft.Z,{id:_r,activeDiscussIndex:Yt,onReplyDiscuss:qt})))},Ft=ve(30214),Nt={"dis-input-editor-container":"dis-input-editor-container___nKGxx",active:"active___tmt7T","input-mask":"input-mask___epEle","text-area":"text-area___Vry8W","tip-container":"tip-container___plpA3",hide:"hide___kPfyC","md-container":"md-container___u85aq","btn-send":"btn-send___deQ5v"},Xt=ve(96565),dn=(Tt,Gt,on)=>new Promise((ln,Qt)=>{var Yt=hn=>{try{an(on.next(hn))}catch(An){Qt(An)}},qt=hn=>{try{an(on.throw(hn))}catch(An){Qt(An)}},an=hn=>hn.done?ln(hn.value):Promise.resolve(hn.value).then(Yt,qt);an((on=on.apply(Tt,Gt)).next())}),en=({user_praise:Tt,praise_count:Gt,praisePlus:on,onCreateDiscuss:ln,discuss_count:Qt})=>{const[Yt,qt]=(0,be.useState)(!1),[an,hn]=(0,be.useState)("");function An(Jr){hn(Jr)}function mn(){qt(!0)}function _r(){qt(!1)}function Kn(){return dn(this,null,function*(){ln(an),hn(""),qt(!1)})}return be.createElement("div",{className:`${Nt["dis-input-editor-container"]} ${Yt?Nt.active:""} `},be.createElement("div",{className:Yt?`hide ${Nt["text-area"]}`:Nt["text-area"]},be.createElement("input",{placeholder:"\u8BF4\u70B9\u4EC0\u4E48",onClick:mn}),be.createElement("a",null," ",be.createElement("i",{className:"iconfont icon-huifu1"})," \xA0 \xA0",Qt," "),be.createElement("a",{className:"c-light-black",onClick:on,title:Tt?"\u53D6\u6D88\u70B9\u8D5E":"\u70B9\u8D5E"},be.createElement("i",{className:`mr3 ${Tt?"iconfont icon-dianzan c-orange":"iconfont icon-dianzan-xian"} `}),Gt?be.createElement("span",null,Gt):"")),Yt?be.createElement("div",{className:Nt["input-mask"],onClick:_r}):null,be.createElement("div",{className:Yt?Nt["md-container"]:`${Nt["md-container"]} hide`},be.createElement(Xt.Z,{id:"discuss-input-editor",miniToolbar:!0,watch:!1,noStorage:!0,defaultValue:an,height:240,onChange:An}),be.createElement("div",{className:Nt["tip-container"],onClick:_r},be.createElement("a",{className:Nt["btn-send"],onClick:Kn}," \u53D1\u9001 "))))},Jt=ve(59301),wn=Object.defineProperty,Ln=Object.defineProperties,fn=Object.getOwnPropertyDescriptors,zn=Object.getOwnPropertySymbols,Un=Object.prototype.hasOwnProperty,Nn=Object.prototype.propertyIsEnumerable,On=(Tt,Gt,on)=>Gt in Tt?wn(Tt,Gt,{enumerable:!0,configurable:!0,writable:!0,value:on}):Tt[Gt]=on,Tn=(Tt,Gt)=>{for(var on in Gt||(Gt={}))Un.call(Gt,on)&&On(Tt,on,Gt[on]);if(zn)for(var on of zn(Gt))Nn.call(Gt,on)&&On(Tt,on,Gt[on]);return Tt},Zn=(Tt,Gt)=>Ln(Tt,fn(Gt)),Pr=(Tt,Gt,on)=>new Promise((ln,Qt)=>{var Yt=hn=>{try{an(on.next(hn))}catch(An){Qt(An)}},qt=hn=>{try{an(on.throw(hn))}catch(An){Qt(An)}},an=hn=>hn.done?ln(hn.value):Promise.resolve(hn.value).then(Yt,qt);an((on=on.apply(Tt,Gt)).next())});const Nr={loading:!1,page:1,data:[],count:0,actionType:null,activeDiscussIndex:null};var qn=(Tt=>(Tt[Tt.GET_DISCUSSES=0]="GET_DISCUSSES",Tt[Tt.TOP_OR_DOWN_DISCUSS=1]="TOP_OR_DOWN_DISCUSS",Tt[Tt.ACTIVE_DISCUSS_INDEX=2]="ACTIVE_DISCUSS_INDEX",Tt[Tt.PLUS_DISCUSS=3]="PLUS_DISCUSS",Tt[Tt.SET_ACTION_TYPE=4]="SET_ACTION_TYPE",Tt[Tt.SET_PAGE=5]="SET_PAGE",Tt[Tt.SHOW_DISCUSSES_LOADING=6]="SHOW_DISCUSSES_LOADING",Tt))(qn||{});function jr(Tt,Gt){switch(Gt.type){case 6:return Zn(Tn({},Tt),{loading:!0});case 0:return Tn(Tn({},Tt),Gt.payload);case 1:return Tn(Tn({},Tt),Gt.payload);case 4:return Tn(Tn({},Tt),Gt.payload);case 3:return Tn(Tn({},Tt),Gt.payload);case 5:return Zn(Tn({},Tt),{page:Gt.payload});case 2:return Tn(Tn({},Tt),Gt.payload);default:throw new Error}}var ir=({user:Tt,identifier:Gt,hack:on,onTriggerPraise:ln,activeIndex:Qt})=>{const[Yt,qt]=(0,be.useReducer)(jr,Nr),{loading:an,page:hn,data:An,count:mn,actionType:_r,activeDiscussIndex:Kn}=Yt,Jr=(0,be.useCallback)(()=>Pr(void 0,null,function*(){qt({type:6});const pr=yield ct(Gt,hn),{comments:Br,disscuss_count:co}=pr;qt({type:0,payload:{data:Br,count:co,loading:!1}})}),[hn,Gt]);(0,be.useEffect)(()=>{Qt==="2"&&Jr()},[Gt,hn,Qt]);function sr(pr){qt({type:5,payload:pr})}function kn(pr){qt({type:4,payload:{actionType:pr}})}function hr(pr){qt(Kn===pr?{type:2,payload:{activeDiscussIndex:null}}:{type:2,payload:{activeDiscussIndex:pr}})}function Sr(pr,Br,co){return Pr(this,null,function*(){try{const ho=yield ht(pr);An[co].user_praise=Br,An[co].praise_count=ho.praise_count,qt({type:3,payload:{data:[...An]}})}catch(ho){console.log(ho)}})}function Dn(){return Pr(this,null,function*(){const{id:pr,params:Br,type:co,index:ho,parentDiscussIndex:Uo}=_r;if(co==="hidden-discuss"&&(yield at(Gt,pr,Br),Uo?An[Uo].children[ho].hidden=Br.hidden==1:An[ho].hidden=Br.hidden==1,qt({type:4,payload:{actionType:null,data:[...An]}})),co==="delete-discuss"){if(yield st(Gt,pr),Uo||Uo===0){let yo=An[Uo].children;for(let Ho=yo.length-1;Ho>=0;Ho--)if(yo[Ho].id===pr){yo.splice(Ho,1);break}An[Uo].children=yo}else for(let yo=An.length-1;yo>=0;yo--)if(An[yo].id===pr){An.splice(yo,1);break}qt({type:4,payload:{actionType:null,data:[...An]}})}})}function Or(){qt({type:4,payload:{actionType:null}})}function Gr(pr,Br){return Pr(this,null,function*(){try{yield lt(Gt,pr,Br),Jr()}catch(co){console.log(co)}})}function Tr(pr){return Pr(this,null,function*(){qt({type:6}),yield pt(Gt,pr),Jr()})}return Jt.createElement(Jt.Fragment,null,Jt.createElement("div",{className:"discuss-panel"},An.length===0?Jt.createElement(Ze.Z,null):An.map((pr,Br)=>Jt.createElement(xt,{onReplyDiscuss:Gr,onPlusDiscuss:Sr,onSetActiveDiscussIndex:hr,onSetActionType:kn,data:pr,index:Br,user:Tt,activeDiscussIndex:Kn})),mn>10?Jt.createElement("div",{className:"pagination-container"},Jt.createElement(ut.Z,{showQuickJumper:!0,onChange:sr,current:hn,total:mn})):null),Jt.createElement(en,{user_praise:on.user_praise,praise_count:on.praises_count,praisePlus:ln,discuss_count:on.comments_count,onCreateDiscuss:Tr}),Jt.createElement(x.Z,null,Jt.createElement(pe.default,{centered:!0,title:"\u63D0\u793A",open:!!_r,onOk:Dn,onCancel:Or},Jt.createElement("p",null,_r?_r.message:"")),Jt.createElement(Ft.Z,null)))},gr=ve(57809),Ot=ve(92832),jt=ve(65615),_t={},tn=ve(59301),Bn=({hack:Tt,current_user:Gt})=>tn.createElement("div",{className:_t.answer},Tt!=null&&Tt.analysis?tn.createElement(Te.Z,{style:{padding:"13px 0"},value:(Tt==null?void 0:Tt.analysis)||""}):tn.createElement(Ze.Z,{customText:"\u6682\u672A\u8BBE\u7F6E\u9898\u76EE\u89E3\u6790~"})),Cn={hackSets:"hackSets___tw75g",collapseWrapper:"collapseWrapper___TteKi",panelHeader:"panelHeader___Y_Xjq",rateInput:"rateInput___y1qUi",open:"open___xrixP",close:"close___jb6D2",uploadTableWrapper:"uploadTableWrapper___U9Tz_"},Fr=ve(36381),rr=ve(43604),Ht=ve(78241),Lt=ve(5871),rn=ve(12088),Dt=ve(59301);const{TextArea:un}=Ot.default,{Panel:En}=Fr.default;var In=({data:Tt,hack:Gt})=>(console.log(Tt,Gt,"data"),Gt!=null&&Gt.is_file?Dt.createElement(rn.Y2,{disabled:!0,className:Cn.uploadTableWrapper,showScore:!Gt.test_set_score,data:Tt,isProgramHomework:!0}):Dt.createElement("div",{className:Cn.hackSets},Tt==null?void 0:Tt.map((on,ln)=>Dt.createElement(Fr.default,{accordion:!0,bordered:!1,key:ln,defaultActiveKey:ln===0&&on.id,className:Cn.collapseWrapper,expandIcon:({isActive:Qt})=>Dt.createElement("i",{className:`iconfont icon-weizhankai ${Qt?Cn.open:Cn.close}`,style:{fontSize:14,transition:"all .2s"}})},Dt.createElement(En,{key:on.id,header:Dt.createElement(ie.Z,{align:"middle",justify:"space-between",wrap:!1},Dt.createElement(rr.Z,{className:Cn.panelHeader},Dt.createElement("span",null,"\u6D4B\u8BD5\u7528\u4F8B",ln+1)),Dt.createElement(rr.Z,{flex:1},Dt.createElement(ie.Z,{align:"middle",justify:"end",wrap:!1},!(Gt!=null&&Gt.test_set_score)&&Dt.createElement(rr.Z,{className:Cn.rateInput},Dt.createElement("span",{className:"mr20"},"\u8BC4\u5206\u5360\u6BD4"),Dt.createElement("div",null,Dt.createElement(Ht.default.Item,{noStyle:!0},Dt.createElement(Lt.Z,{value:on==null?void 0:on.score,className:Cn.baseFormItem,min:0,max:100,disabled:!0}))),Dt.createElement("span",{className:"ml10"},"%")))))},Dt.createElement(Ht.default.Item,{label:"\u8F93\u5165",labelCol:{span:24}},Dt.createElement(un,{readOnly:!0,value:on==null?void 0:on.input,rows:4})),Dt.createElement(Ht.default.Item,{label:"\u8F93\u51FA",labelCol:{span:24}},Dt.createElement(un,{readOnly:!0,value:on==null?void 0:on.output,rows:4}))))))),Sn={tabs:"tabs___p2jIb",tabWarp:"tabWarp___mt05L",tab:"tab___IYGdQ",active:"active___fQMlP",content:"content___GWVJY"},bt=ve(59301),Bt=(0,be.forwardRef)(({data:Tt=[]},Gt)=>{var on;const[ln,Qt]=(0,be.useState)(),Yt=Tt.filter(an=>an.show);(0,be.useEffect)(()=>{Yt.length&&Qt(Yt[0].id)},[Tt==null?void 0:Tt.length]);const qt=((on=Yt.find(an=>an.id===ln))==null?void 0:on.element)||null;return(0,be.useImperativeHandle)(Gt,()=>({setActiveTab:an=>Qt(an)})),bt.createElement("div",{className:Sn.tabs},bt.createElement("div",{className:Sn.tabWarp},Yt.map(an=>bt.createElement("div",{onClick:()=>Qt(an.id),className:`${Sn.tab} ${an.id===ln?Sn.active:""}`,key:an.id},an.name))),bt.createElement("div",{className:Sn.content},qt))}),Ct=ve(59301),Vt=Object.defineProperty,$t=Object.defineProperties,Wt=Object.getOwnPropertyDescriptors,Kt=Object.getOwnPropertySymbols,Rn=Object.prototype.hasOwnProperty,Mn=Object.prototype.propertyIsEnumerable,kt=(Tt,Gt,on)=>Gt in Tt?Vt(Tt,Gt,{enumerable:!0,configurable:!0,writable:!0,value:on}):Tt[Gt]=on,vr=(Tt,Gt)=>{for(var on in Gt||(Gt={}))Rn.call(Gt,on)&&kt(Tt,on,Gt[on]);if(Kt)for(var on of Kt(Gt))Mn.call(Gt,on)&&kt(Tt,on,Gt[on]);return Tt},tr=(Tt,Gt)=>$t(Tt,Wt(Gt)),nr=(Tt,Gt,on)=>new Promise((ln,Qt)=>{var Yt=hn=>{try{an(on.next(hn))}catch(An){Qt(An)}},qt=hn=>{try{an(on.throw(hn))}catch(An){Qt(An)}},an=hn=>hn.done?ln(hn.value):Promise.resolve(hn.value).then(Yt,qt);an((on=on.apply(Tt,Gt)).next())});const Kr={1:"\u7B80\u5355",2:"\u9002\u4E2D",3:"\u56F0\u96BE"},gn={1:"#2fa34f",2:"#0152d9",3:"#fa6400"};var vn=({hack:Tt,onTriggerPraise:Gt,topicId:on,page:ln,onPageChange:Qt,user:Yt,current_user:qt,submitRecords:an,submitting:hn,submitResult:An,setActiveIndex:mn,hack_sets:_r})=>{var Kn,Jr;const[sr]=(0,_e.useSearchParams)(),[kn,hr]=(0,be.useState)("0"),Sr=(0,_e.useLocation)(),[Dn,Or]=(0,be.useState)(!1),[Gr,Tr]=(0,be.useState)(null),[pr,Br]=(0,be.useState)([]),[co,ho]=(0,be.useState)([]),[Uo,yo]=(0,be.useState)({page:1,limit:10}),Ho=(0,be.useRef)(null),sa=(0,be.useRef)(null);console.log(Yt,"user");let[xo,ja]=(0,be.useState)(tr(vr({},(0,_e.useParams)()),{page:1,per_page:20,name:""}));(0,be.useEffect)(()=>{sa.current&&(Tt==null?void 0:Tt.is_close_tips)===!1&&Gr===null&&Tr(!0)},[sa.current,Tt==null?void 0:Tt.is_close_tips,Gr]);function Fa(){return nr(this,null,function*(){yield(0,ge.ZP)("/api/users/close_tips.json",{method:"post"})})}(0,be.useEffect)(()=>{mn(kn)},[kn]);function wa(Wr){return nr(this,null,function*(){let Jo=Wr.target.id;if(Jo==="1"){let oa=yield(0,ge.ZP)(`/api/myproblems/${xo.id}/redo_logs.json`,{method:"get",params:vr({},Uo)});(oa==null?void 0:oa.status)===0&&ho(oa==null?void 0:oa.data)}hr(Jo)})}(0,be.useEffect)(()=>mt.Z.subscribe("to-commit-info",()=>{hr("1"),Ho.current&&Ho.current.setActiveTab("1")}),[]),(0,be.useEffect)(()=>mt.Z.subscribe("to-reset-info",()=>{wa({target:{id:"1"}}),Ho.current&&Ho.current.setActiveTab("2")}),[]);function Na(){hr("2")}function No(){return nr(this,null,function*(){let Wr=yield(0,ge.ZP)("/api/problems/my_hack_list.json",{method:"get",params:vr({identifier:xo==null?void 0:xo.id},xo)});Br(Wr)})}const Ar=[{title:null,description:Ct.createElement("div",null,Ct.createElement("b",{onClick:()=>{Tr(!1),Fa(),Or(!0),No()},className:"c-light-primary font16 current"},"\u67E5\u770B\u9898\u76EE\u5217\u8868\u5165\u53E3"),Ct.createElement("div",{className:"c-grey-333 mt10 mb20"},"\u672C\u6B21\u4F5C\u4E1A\u6240\u9700\u5B8C\u6210\u7684\u8BD5\u9898\u90FD\u53EF\u4EE5\u5728\u8FD9\u91CC\u627E\u5230\uFF0C\u5E76\u652F\u6301\u70B9\u51FB\u8BD5\u9898\u8C03\u6574\u5230\u505A\u9898\u9875"),Ct.createElement(se.ZP,{onClick:()=>{Tr(!1),Fa()},style:{padding:"2px 29px",height:30,float:"right"},type:"primary"},"\u77E5\u9053\u4E86")),target:()=>sa.current}];return Ct.createElement("div",{className:Ue["left-panel"]},Ct.createElement("ul",{className:`${Ue["s-navs"]} ${Ue["bg-white"]} ${Ue.b1}`},(Tt==null?void 0:Tt.is_program)&&!sr.get("pageId")&&Ct.createElement(ne.Z,{title:"\u9898\u76EE\u5217\u8868"},Ct.createElement("div",{onClick:()=>{No(),Or(!0)},className:Ue.btns,ref:sa,style:Gr?{pointerEvents:"none"}:{}},Ct.createElement("i",{className:"iconfont icon-yidongdaomulu1 font14 c-white"}))),Ct.createElement("li",{style:{marginLeft:20}},Ct.createElement("a",{className:kn==="0"?Ue.active:"",id:"0",onClick:wa},"\u9898\u76EE\u63CF\u8FF0")),Ct.createElement("li",null,Ct.createElement("a",{className:kn==="1"?Ue.active:"",id:"1",onClick:wa},"\u64CD\u4F5C\u8BB0\u5F55")),(sr.get("type")!=="exercises"&&(Tt==null?void 0:Tt.answer_text_show)||sr.get("type")!=="exercises"&&(Tt==null?void 0:Tt.analysis_show))&&Ct.createElement("li",null,Ct.createElement("a",{className:kn==="4"?Ue.active:"",id:"4",onClick:wa},"\u89E3\u7B54\u53C2\u8003")),sr.get("type")!=="exercises"&&Ct.createElement("li",null,Ct.createElement("a",{className:kn==="2"?Ue.active:"",id:"2",onClick:wa},"\u8BC4\u8BBA")),!!(_r!=null&&_r.length)&&sr.get("type")!=="exercises"&&sr.get("type")!=="1"&&Ct.createElement("li",null,Ct.createElement("a",{className:kn==="5"?Ue.active:"",id:"5",onClick:wa},"\u6D4B\u8BD5\u7528\u4F8B"))),Ct.createElement("div",{className:`${Ue["tab-panel-body"]} ${kn==="0"?"":"hide"}`,style:{borderRight:"1px #dddddd solid",padding:0}},Ct.createElement(Ke,{hack:Tt,onTriggerPraise:Gt,toDiscuss:Na})),Ct.createElement("div",{style:{padding:"12px"},className:`${Ue["tab-panel-body"]} ${kn==="1"?"":"hide"}`},Ct.createElement(Bt,{ref:Ho,data:[{id:"1",show:sr.get("qtype")!=="8",name:"\u63D0\u4EA4\u8BB0\u5F55",element:Ct.createElement(Ct.Fragment,null,an!=null&&an.records_count||hn?Ct.createElement(et,{page:ln,onPageChange:Qt,topicId:on,submitting:hn,key:(An==null?void 0:An.id)||1,submitRecords:an,submitResult:An}):Ct.createElement(Ze.Z,null))},{id:"2",show:sr.get("type")==="exercises"||(Tt==null?void 0:Tt.homework_common_id),name:"\u91CD\u7F6E\u8BB0\u5F55",element:Ct.createElement(Ct.Fragment,null,Ct.createElement(Qe.default,{pagination:!1,dataSource:co==null?void 0:co.list,columns:[{title:"\u6062\u590D\u521D\u59CB\u4EE3\u7801\u65F6\u95F4",dataIndex:"created_at",render:(Wr,Jo,oa)=>$e()(Wr).format("YYYY-MM-DD HH:mm:ss")},{title:"\u64CD\u4F5C",dataIndex:"redo_type",render:(Wr,Jo,oa)=>{var ka;return(ka=[{id:1,name:"\u6253\u56DE\u91CD\u505A"},{id:2,name:"\u6062\u590D\u521D\u59CB\u4EE3\u7801"},{id:3,name:"\u91CD\u7F6E\u4EE3\u7801\u4ED3\u5E93"}].find(za=>za.id===Wr))==null?void 0:ka.name}}]}),Ct.createElement(ut.Z,{style:{marginTop:10},current:Uo.page,total:co==null?void 0:co.count,hideOnSinglePage:!0,onChange:Wr=>nr(void 0,null,function*(){Uo.page=Wr,yo(Uo);let Jo=yield(0,ge.ZP)(`/api/myproblems/${xo.id}/redo_logs.json`,{method:"get",params:tr(vr({},Uo),{courseId:xo.courseId})});(Jo==null?void 0:Jo.status)===0&&ho(Jo==null?void 0:Jo.data)})}))}]})),Ct.createElement("div",{style:{padding:"12px"},className:`${Ue["tab-panel-body"]} ${kn==="4"?"":"hide"}`},Ct.createElement(Bt,{data:[{id:"1",show:sr.get("type")!=="exercises"&&(Tt==null?void 0:Tt.answer_text_show),name:"\u7B54\u6848",element:Ct.createElement(Ct.Fragment,null,Ct.createElement(tt,{hack:Tt,current_user:qt}))},{id:"2",show:sr.get("type")!=="exercises"&&(Tt==null?void 0:Tt.analysis_show),name:"\u89E3\u6790",element:Ct.createElement(Ct.Fragment,null,Ct.createElement(Bn,{hack:Tt,current_user:qt}))}]})),Ct.createElement("div",{className:`${Ue["tab-panel-body"]} ${kn==="2"?"":"hide"}`,style:{padding:0}},Ct.createElement(ir,{user:Yt,activeIndex:kn,identifier:Tt.identifier,hack:Tt,onTriggerPraise:Gt})),Ct.createElement("div",{className:`${Ue["tab-panel-body"]} ${kn==="5"?"":"hide"}`,style:{padding:12}},Ct.createElement(In,{data:_r||[],hack:Tt})),Ct.createElement(a.Z,{rootClassName:Ue.drawer,closable:!1,title:null,bodyStyle:{background:"#1B2333",padding:25,display:"flex",flexDirection:"column"},footer:null,width:500,placement:"left",onClose:()=>Or(!1),open:Dn},Ct.createElement(ie.Z,null,Ct.createElement("b",{style:{color:"#008CFF",fontWeight:500,lineHeight:"19px"},className:"font16"},"\u9898\u76EE\u5217\u8868"),Ct.createElement("span",{style:{color:"#FA8D30",fontWeight:500},className:"font12 ml10"},"\u5171",pr==null?void 0:pr.total_count,"\u9898\xA0[\xA0",pr==null?void 0:pr.total_score,"\u5206\xA0]\xA0"),!(Yt!=null&&Yt.hack_manager)&&Ct.createElement("span",{style:{color:"#FA8D30",fontWeight:500,marginLeft:"auto"},className:"font12"},"\u6211\u7684\u5F97\u5206\xA0:\xA0",pr==null?void 0:pr.work_score,"\u5206")),Ct.createElement("div",{style:{height:1,background:"#1C313F",marginTop:12}}),Ct.createElement(ie.Z,{align:"middle",className:"mt10 mb10"},!(Yt!=null&&Yt.hack_manager)&&Ct.createElement(gr.default,{size:"large",className:"mr10",style:{width:104},placeholder:"\u901A\u8FC7\u60C5\u51B5",onChange:Wr=>{xo.page=1,xo.finish_status=Wr,ja(vr({},xo)),No()}},Ct.createElement(gr.default.Option,{value:""},"\u5168\u90E8"),Ct.createElement(gr.default.Option,{value:0},"\u672A\u5F00\u59CB"),Ct.createElement(gr.default.Option,{value:1},"\u8FDB\u884C\u4E2D"),Ct.createElement(gr.default.Option,{value:2},"\u5DF2\u5B8C\u6210")),Ct.createElement(gr.default,{size:"large",className:"mr10",style:{width:104},placeholder:"\u9898\u76EE\u96BE\u5EA6",onChange:Wr=>{xo.page=1,xo.difficult=Wr||null,ja(vr({},xo)),No()}},Ct.createElement(gr.default.Option,{value:0},"\u5168\u90E8"),Ct.createElement(gr.default.Option,{value:1},"\u7B80\u5355"),Ct.createElement(gr.default.Option,{value:2},"\u9002\u4E2D"),Ct.createElement(gr.default.Option,{value:3},"\u56F0\u96BE")),Ct.createElement(Ot.default.Search,{size:"large",onSearch:Wr=>{xo.name=Wr,xo.page=1,ja(vr({},xo)),No()},style:{flex:1},placeholder:"\u8BF7\u8F93\u5165\u9898\u76EE\u540D\u79F0\u8FDB\u884C\u641C\u7D22"})),Ct.createElement("div",{className:Ue.list,style:{height:36,background:"#3D445C"}},!(Yt!=null&&Yt.hack_manager)&&Ct.createElement("span",null,"\u72B6\u6001"),Ct.createElement("span",null,"\u5E8F\u53F7"),Ct.createElement("span",{style:{flex:1}},"\u9898\u76EE\u540D\u79F0"),Ct.createElement("span",{style:{flexBasis:48,paddingRight:0}},"\u96BE\u5EA6")),Ct.createElement("div",{style:{overflow:"auto",flex:1}},(Kn=pr==null?void 0:pr.data)!=null&&Kn.length?(Jr=pr==null?void 0:pr.data)==null?void 0:Jr.map((Wr,Jo)=>Ct.createElement("div",{onClick:()=>nr(void 0,null,function*(){let oa=yield(0,ge.ZP)(`/api/problems/${Wr==null?void 0:Wr.identifier}/start.json`,{method:"get",params:{hack_user_id:Yt==null?void 0:Yt.user_id}});oa&&(window.location.href=`/myproblems/${oa==null?void 0:oa.identifier}${window.location.search}`)}),className:`${Ue.list} ${Wr!=null&&Wr.checked?Ue.active:""}`},!(Yt!=null&&Yt.hack_manager)&&Ct.createElement(Ct.Fragment,null,!(Wr!=null&&Wr.opened)&&Ct.createElement("span",{style:{color:"#E02020"}},"\u672A\u5F00\u59CB"),(Wr==null?void 0:Wr.opened)&&!(Wr!=null&&Wr.passed)&&Ct.createElement("span",{style:{color:"#FA6400"}},"\u8FDB\u884C\u4E2D"),(Wr==null?void 0:Wr.opened)&&(Wr==null?void 0:Wr.passed)&&Ct.createElement("span",{style:{color:"#24C074"}},"\u5DF2\u5B8C\u6210")),Ct.createElement("span",null,(xo.page-1)*20+(Jo+1)),Ct.createElement("span",{style:{flex:1},title:Wr.name},`[${Wr==null?void 0:Wr.score}\u5206]`,"\xA0",Wr.name),Ct.createElement("span",{style:{flexBasis:48,paddingRight:0}},Kr[Wr.difficult]))):Ct.createElement(Ze.Z,null)),Ct.createElement(ut.Z,{current:xo.page,className:"mt20",hideOnSinglePage:!0,total:pr==null?void 0:pr.count,pageSize:xo.per_page,onChange:(Wr,Jo)=>{xo.page=Wr,xo.per_page=Jo,No()}})),Ct.createElement(jt.Z,{rootClassName:Ue.tour,closeIcon:!1,open:!!Gr,steps:Ar,gap:{offset:3,radius:2}}))},Wn=ve(62522),Pn=ve(27158),yr=ve(22744),ur=ve(21390),Yn=ve(72530),kr=ve(35195),Cr=ve(25492),Po=ve(92310),po=ve.n(Po),io=ve(42217),ko=ve(81747),Io=ve(51976),pn=ve(59301),Ro=Object.defineProperty,mo=Object.defineProperties,zr=Object.getOwnPropertyDescriptors,bo=Object.getOwnPropertySymbols,to=Object.prototype.hasOwnProperty,lo=Object.prototype.propertyIsEnumerable,vo=(Tt,Gt,on)=>Gt in Tt?Ro(Tt,Gt,{enumerable:!0,configurable:!0,writable:!0,value:on}):Tt[Gt]=on,dr=(Tt,Gt)=>{for(var on in Gt||(Gt={}))to.call(Gt,on)&&vo(Tt,on,Gt[on]);if(bo)for(var on of bo(Gt))lo.call(Gt,on)&&vo(Tt,on,Gt[on]);return Tt},wr=(Tt,Gt)=>mo(Tt,zr(Gt)),Er=(Tt,Gt)=>{var on={};for(var ln in Tt)to.call(Tt,ln)&&Gt.indexOf(ln)<0&&(on[ln]=Tt[ln]);if(Tt!=null&&bo)for(var ln of bo(Tt))Gt.indexOf(ln)<0&&lo.call(Tt,ln)&&(on[ln]=Tt[ln]);return on},xr=(Tt,Gt,on)=>new Promise((ln,Qt)=>{var Yt=hn=>{try{an(on.next(hn))}catch(An){Qt(An)}},qt=hn=>{try{an(on.throw(hn))}catch(An){Qt(An)}},an=hn=>hn.done?ln(hn.value):Promise.resolve(hn.value).then(Yt,qt);an((on=on.apply(Tt,Gt)).next())});const{Countdown:ao}=E.default,To={Java:"java",C:"c",Python:"py","C++":"c"};var wo=(Tt=>(Tt[Tt.SET_LOADING=0]="SET_LOADING",Tt[Tt.GET_DATA=1]="GET_DATA",Tt[Tt.GET_SUBMIT_RECORDS=2]="GET_SUBMIT_RECORDS",Tt[Tt.SET_DATA=3]="SET_DATA",Tt[Tt.SET_DEBUGING=4]="SET_DEBUGING",Tt[Tt.SET_SUBMITING=5]="SET_SUBMITING",Tt[Tt.SET_EXECUTE_MESSAGE=6]="SET_EXECUTE_MESSAGE",Tt[Tt.SET_EXECUTE_RESULT=7]="SET_EXECUTE_RESULT",Tt[Tt.SET_SUBMIT_RESULT=8]="SET_SUBMIT_RESULT",Tt[Tt.SET_SHOW_NOTE=9]="SET_SHOW_NOTE",Tt[Tt.SET_PAGE=10]="SET_PAGE",Tt))(wo||{});function Lo(){return new Date().getTime()}const Yo={loading:!0,data:void 0,showNote:!1,debugResult:void 0,submitResult:void 0,debuging:!1,submitting:!1,submitRecords:void 0,submitRecordPage:1,executingMessage:""};function Mo(Tt,Gt){switch(Gt.type){case 1:return dr(dr({},Tt),Gt.payload);case 3:return wr(dr({},Tt),{data:Gt.payload});case 0:return wr(dr({},Tt),{loading:Gt.payload});case 9:return wr(dr({},Tt),{showNote:Gt.payload});case 4:return wr(dr({},Tt),{debuging:Gt.payload});case 5:return wr(dr({},Tt),{submitting:Gt.payload});case 2:return wr(dr({},Tt),{submitRecords:Gt.payload});case 10:return wr(dr({},Tt),{submitRecordPage:Gt.payload});case 6:return wr(dr({},Tt),{executingMessage:Gt.payload});case 7:return dr(dr({},Tt),Gt.payload);case 8:return dr(dr({},Tt),Gt.payload);default:throw new Error}}var $r=({children:Tt})=>{var Gt,on,ln,Qt,Yt;const[qt,an]=(0,be.useReducer)(Mo,Yo),{id:hn}=(0,_e.useParams)(),An=(0,_e.useLocation)(),[mn]=(0,_e.useSearchParams)(),{loading:_r,data:Kn,debugResult:Jr,submitResult:sr,submitRecords:kn,submitRecordPage:hr,showNote:Sr,debuging:Dn,submitting:Or,executingMessage:Gr}=qt,[Tr,pr]=(0,be.useState)("#37AD83"),[Br,co]=(0,be.useState)(null),[ho,Uo]=(0,be.useState)({}),[yo,Ho]=(0,be.useState)(!0),[sa,xo]=(0,be.useState)(!1),[ja,Fa]=(0,be.useState)(!1),wa=(0,be.useRef)(null),Na=(0,be.useRef)(0),No=Kn==null?void 0:Kn.user,Ar=Kn==null?void 0:Kn.hack,[Wr,Jo]=(0,be.useState)(!1),oa=(0,be.useRef)(1),ka=(0,be.useRef)(!1);(0,io.y)(mn.get("type")==="exercises");const{setOpenDisableCopyAndPaste:za}=(0,io.X)(),[Ka,ti]=(0,be.useState)(""),ni=(0,Yn._)(ho);(0,be.useEffect)(()=>{function ar(){return xr(this,null,function*(){var Zr,ea,ga,Ia,Ta;Ho(!0);const ha=yield(0,ce.fu)(hn,{exercise_id:mn.get("exercisesId")});if(setTimeout(()=>{Ho(!1)},800),ha.status!==401){try{ha.hack.code=We.Base64.decode(ha.hack.code)}catch(Go){console.log(Go)}ha.hack=wr(dr({},ha.hack),{is_program:mn.get("type")==="1"}),an({type:1,payload:{loading:!1,data:ha}})}if(mn.get("type")==="exercises"){if(window.self===window.top){window.top.location.href="/";return}let Go;mn.get("coursesId")=="coursesId"?Go=yield(0,ue._F)({categoryId:mn.get("exercisesId"),login:mn.get("login")}):Go=yield(0,ue._B)({categoryId:mn.get("exercisesId"),login:mn.get("login")}),Uo(dr({},Go)),za((Zr=Go==null?void 0:Go.exercise)==null?void 0:Zr.forbid_copy),typeof((ea=Go==null?void 0:Go.exercise)==null?void 0:ea.left_time)=="number"&&(co(Date.now()+((ga=Go==null?void 0:Go.exercise)==null?void 0:ga.left_time)*1e3),setTimeout(()=>{pr("red")},(((Ia=Go==null?void 0:Go.exercise)==null?void 0:Ia.left_time)-300>0?((Ta=Go==null?void 0:Go.exercise)==null?void 0:Ta.left_time)-300:0)*1e3))}})}hn&&ar()},[hn]),(0,be.useEffect)(()=>{var ar;return mn.get("type")==="exercises"&&((ar=ho==null?void 0:ho.exercise)!=null&&ar.screen_open)&&(window.removeEventListener("blur",Ua,!1),kr.U.forEach((Zr,ea)=>{window.addEventListener(Zr,Ua,!1)}),window.addEventListener("blur",Ua,!1),window.focus()),()=>{document.removeEventListener((0,ae.gH)(),Ua)}},[ho]),(0,be.useEffect)(()=>{Ka==="1"&&hn&&Ar!=null&&Ar.language&&fi()},[hn,hr,Ar==null?void 0:Ar.language,Ka]),(0,be.useEffect)(()=>(Ar!=null&&Ar.is_program&&(Na.current=0,wa.current=setInterval(()=>{ri()},15e3)),()=>{clearInterval(wa.current)}),[Ar==null?void 0:Ar.is_program]);const ri=()=>xr(void 0,null,function*(){let ar=yield(0,ge.ZP)(`/api/myproblems/${hn}/save_long_time.json`,{method:"get",params:{answer_long_time:Na.current}})}),Ua=()=>{ka.current||(0,ae.BU)(),window.parent.postMessage("backExercise","*")};function fi(){return xr(this,null,function*(){try{const ar=yield(0,ce.zO)(hn,{limit:15,page:hr,language:Ar==null?void 0:Ar.language});an({type:2,payload:ar})}catch(ar){console.log(ar)}})}function gi(ar){an({type:10,payload:ar})}function Ha(ar){return xr(this,null,function*(){var Zr;let ea;(mn.get("ip_limit")==="inner"||mn.get("ip_bind_type")==="true")&&(ea=yield(0,Pn.y)({ip_limit:mn.get("ip_limit"),ip_bind:mn.get("ip_bind_type")==="true"}));const ga=yield(0,ce.n4)(hn,{code:We.Base64.encode(ar||Ar.code),language:Ar==null?void 0:Ar.language,exercise_id:mn.get("exercisesId"),question_id:mn.get("questionId"),ip:ea});return ga.status===-5&&(0,_e.getDvaApp)()._store.dispatch({type:"exercise/setActionTabs",payload:{key:"student-unlock",exerciseParams:wr(dr({errorMessage:ga==null?void 0:ga.message},(ho==null?void 0:ho.exercise)||{}),{exercise_user_id:(Zr=ho==null?void 0:ho.exercise)==null?void 0:Zr.exercise_user_id,id:mn.get("exercisesId")})}}),ga})}function oi(){return xr(this,null,function*(){if(oa.current=2,!Or){an({type:5,payload:!0});try{mt.Z.publish("to-commit-info");const ar=yield Ha();if(console.log(ar,1),ar.status===0){let ha=function(){return xr(this,null,function*(){const{status:Go,data:ma}=yield(0,ce.rX)(hn,"submit"),Ea=Lo()-Ta>(ga*Ia+30)*1e3;if(Go!==0&&!Ea&&setTimeout(ha,1e3),Ea&&Go!==0){pe.default.error({centered:!0,okText:"\u77E5\u9053\u5566",title:"\u8BC4\u6D4B\u4EE3\u7801\u8D85\u65F6"}),an({type:5,payload:!1});return}if(Go===0){ma.status===2&&pe.default.error({centered:!0,okText:"\u77E5\u9053\u5566",title:"\u8BC4\u6D4B\u4EE3\u7801\u8D85\u65F6"}),(ma==null?void 0:ma.status)===0&&mn.get("type")==="1"&&Fa(!0);const ii=yield(0,ce.zO)(hn,{limit:15,page:hr,language:Ar==null?void 0:Ar.language});an({type:8,payload:wr(dr({},qt),{submitResult:ma,submitting:!1,submitRecords:ii})})}})},Zr={};mn.get("type")==="exercises"&&(Zr.extras={exercise_id:mn.get("exercisesId"),question_id:mn.get("questionId")},(mn.get("ip_limit")==="inner"||mn.get("ip_bind_type")==="true")&&(Zr.extras.ip=yield(0,Pn.y)({ip_limit:mn.get("ip_limit"),ip_bind:mn.get("ip_bind_type")==="true"})));const ea=yield(0,ce.bM)(hn,Zr);if(ea.status===-1&&mn.get("exercisesId")){window.parent.location.href=`/classrooms/${mn.get("coursesId")}/exercise/${mn.get("exercisesId")}/detail`;return}const{time_limit:ga,test_case_size:Ia}=Ar,Ta=Lo();ea.status>-1?ha():an({type:5,payload:!1})}else an({type:5,payload:!1})}catch(ar){console.log(ar),an({type:5,payload:!1})}Jo(!1)}})}function $a(){return xr(this,null,function*(){oa.current=1,qt.debuging=!0,an({type:4,payload:!0});try{if((yield Ha()).status===0){let Ta=function(){return xr(this,null,function*(){const{status:ha,message:Go,data:ma}=yield(0,ce.rX)(hn,"debug"),Ea=Lo()-Ia>(Zr+30)*1e3;if(ha!==0&&!Ea&&(an({type:6,payload:Go}),setTimeout(Ta,1e3)),Ea){pe.default.error({title:"\u63D0\u793A",centered:!0,okText:"\u77E5\u9053\u5566",title:"\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"}),an({type:4,payload:!1}),an({type:7,payload:wr(dr({},qt),{debugResult:{status:2},debuging:!1})});return}ha===0&&(ma.status===2&&pe.default.error({title:"\u63D0\u793A",centered:!0,okText:"\u77E5\u9053\u5566",content:"\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"}),an({type:4,payload:!1}),an({type:7,payload:wr(dr({},qt),{debugResult:ma,debuging:!1})}))})};const{time_limit:Zr}=Ar;let ea={input:encodeURIComponent(Kn.test_case.input)};mn.get("type")==="exercises"&&(ea.exercise_id=mn.get("exercisesId"));const ga=yield(0,ce.MU)(hn,ea);if(ga.status===-1&&mn.get("exercisesId")){window.parent.location.href=`/classrooms/${mn.get("coursesId")}/exercise/${mn.get("exercisesId")}/detail`;return}const Ia=Lo();(ga==null?void 0:ga.status)>-1?Ta():an({type:4,payload:!1})}else an({type:4,payload:!1})}catch(ar){console.log(ar)}finally{}})}function Va(ar,Zr){const ea=Zr?{modify_code:!1}:{};an({type:3,payload:wr(dr({},Kn),{hack:dr(wr(dr({},Ar),{code:ar}),ea)})}),Jo(!0)}const hi=ar=>xr(void 0,null,function*(){let Zr=yield(0,ge.ZP)(`/api/problems/${Ar==null?void 0:Ar.identifier}/start.json`,{method:"get",params:{language:ar==="C++"||ar==="c++"?encodeURIComponent(ar):ar,hack_user_id:No==null?void 0:No.user_id}});Zr.status!==-1&&_e.history.replace(`/myproblems/${Zr==null?void 0:Zr.identifier}${window.location.search}`)});function pi(ar){let Zr=ar.target.value;an({type:3,payload:wr(dr({},Kn),{test_case:{input:Zr}})})}function mi(){return xr(this,null,function*(){try{let ar={};mn.get("type")==="exercises"?ar.exercise_id=mn.get("exercisesId"):Ar!=null&&Ar.homework_common_id&&(ar.homework_common_id=Ar==null?void 0:Ar.homework_common_id);const Zr=yield(0,ce.H7)(hn,dr({},ar));Zr.status===401||(Va(We.Base64.decode(Zr.code)),(mn.get("type")==="exercises"||Ar!=null&&Ar.homework_common_id)&&mt.Z.publish("to-reset-info"))}catch(ar){console.log(ar)}})}function ai(){pe.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:pn.createElement("p",null,"\u521D\u59CB\u4EE3\u7801\u6709\u4FEE\u6539\uFF0C\u66F4\u65B0\u540E\u5C06\u8986\u76D6\u73B0\u6709\u4EE3\u7801\u54E6~ ",pn.createElement("br",null),"\u8BF7\u5C06\u60A8\u7F16\u8F91\u7684\u4EE3\u7801\u4FDD\u5B58\u81F3\u672C\u5730\uFF0C\u4EE5\u9632\u4E22\u5931"),onOk(){return xr(this,null,function*(){const ar=yield(0,ce.fi)(hn);ar.status===401||Va(We.Base64.decode(ar.code),!0)})}})}function Xa(){an({type:9,payload:!0})}function vi(){an({type:9,payload:!1})}function yi(ar){return xr(this,null,function*(){yield(0,ce.MK)(hn,ar),an({type:1,payload:{showNote:!1,data:wr(dr({},Kn),{hack:wr(dr({},Ar),{notes:ar.notes})})}})})}const Ca={hack:Ar,isLoading:yo,input:(Gt=Kn==null?void 0:Kn.test_case)==null?void 0:Gt.input,is_file:(on=Kn==null?void 0:Kn.test_case)==null?void 0:on.is_file,identifier:Ar==null?void 0:Ar.identifier,attachments_count:Kn==null?void 0:Kn.attachments_count,language:Ar==null?void 0:Ar.language,code:Ar==null?void 0:Ar.code,title:"main."+To[Ar==null?void 0:Ar.language],modify_code:Ar==null?void 0:Ar.modify_code,notes:Ar==null?void 0:Ar.notes,debugResult:Jr,debuging:Dn,submitting:Or,submitResult:sr,executingMessage:Gr,onCancelNote:vi,onAddNote:yi,showNote:Sr,user:No,onShowNote:Xa,onSubmitCode:oi,onChangeCode:Va,onChangeInput:pi,onDebugCode:$a,onResetCode:mi,onSyncCode:ai,onUpdateCode:Ha,onChangeLanguage:hi,isWhiteTheme:sa,setIsWhiteTheme:xo,topDispatch:an};function Ya(){return xr(this,null,function*(){const{praise_count:ar}=yield(0,ce.vl)(Ar.id,{container_type:"Hack",type:1});let Zr=wr(dr({},Kn),{hack:wr(dr({},Ar),{praises_count:ar,user_praise:!Ar.user_praise})});an({type:3,payload:Zr})})}const Ja={topicId:hn,submitResult:sr,submitRecords:kn,submitting:Or,page:hr,onPageChange:gi,hack:Ar,user:Kn==null?void 0:Kn.user,hack_sets:Kn==null?void 0:Kn.hack_sets,current_user:Kn==null?void 0:Kn.current_user,onTriggerPraise:Ya,setActiveIndex:ti};return console.log(ho),pn.createElement(pn.Fragment,null,pn.createElement(de.Z,{spinning:_r,delay:500},Kn?pn.createElement(pn.Fragment,null,pn.createElement("header",{className:po()(Cr.Z.header,sa&&Cr.Z.whiteHeader)},mn.get("type")!=="exercises"&&pn.createElement("div",null,pn.createElement("img",{src:`${re.Z.IMG_SERVER}/images/${No==null?void 0:No.image_url}`,alt:"user",width:36}),pn.createElement("span",{style:{color:sa?"#333":"#B2BACB",fontSize:16}},No==null?void 0:No.name)),mn.get("type")==="exercises"&&pn.createElement("div",null,pn.createElement("div",{className:"exercise_user_info"},"\u59D3\u540D",pn.createElement("span",{className:"ml10"},(ln=ho==null?void 0:ho.exercise)==null?void 0:ln.user_name)),pn.createElement("div",{className:"exercise_user_info ml30"},"\u5B66\u53F7",pn.createElement("span",{className:"ml10"},(Qt=ho==null?void 0:ho.exercise)==null?void 0:Qt.student_id))),pn.createElement("h2",{className:"flex-wrp flex_box_column flex_box_center"},pn.createElement("div",null,Ar.name)),(Ar==null?void 0:Ar.is_program)&&pn.createElement(yr.Z,{defaultValue:Ar==null?void 0:Ar.answer_long_time,onChange:ar=>{Na.current=ar},className:Cr.Z.timepiece}),No!=null&&No.hack_manager?pn.createElement(_e.Link,{className:Cr.Z.btn_edit,to:mn.get("type")==="1"?mn.get("pageId")?`/problems/newedit/${Ar.identifier}?type=1&pageId=${mn.get("pageId")}&backUrl=${mn.get("backUrl")}`:`/problems/newedit/${Ar.identifier}?type=1`:`/problems/newedit/${Ar.identifier}`}," ",pn.createElement("i",{className:"iconfont icon-bianji13 font14 mr5"})," \u7F16\u8F91"):null,!!((Yt=ho==null?void 0:ho.exercise)!=null&&Yt.left_time)&&pn.createElement(pn.Fragment,null,pn.createElement("span",{style:{color:Tr,marginRight:6},className:`iconfont icon-daojishi ${Cr.Z.djs}`}),pn.createElement("span",{className:"c-white mr20"},pn.createElement(ao,{valueStyle:{color:Tr,fontSize:20,fontWeight:500},title:pn.createElement("span",{style:{color:Tr,fontSize:14,marginRight:10},className:"time"},"\u5269\u4F59\u7B54\u9898\u65F6\u957F"),value:Br,onFinish:()=>xr(void 0,null,function*(){const ar=yield(0,ue.VL)({categoryId:mn.get("exercisesId"),commit_method:2});if((ar==null?void 0:ar.status)===0&&(Ha(),pe.default.info({width:530,title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",content:pn.createElement("div",{className:"tc font16"},"\u7B54\u9898\u7ED3\u675F\u4E86\uFF0C\u7CFB\u7EDF\u5DF2\u81EA\u52A8\u63D0\u4EA4\u8BD5\u5377",pn.createElement("br",null),"\u4E0D\u80FD\u518D\u4FEE\u6539\u7B54\u9898"),onOk:()=>xr(void 0,null,function*(){window.parent.location.href=`/classrooms/${mn.get("coursesId")}/exercise/${mn.get("exercisesId")}/detail`})})),(ar==null?void 0:ar.status)===-3){const Zr=parseInt(ar==null?void 0:ar.message);co(Date.now()+Zr*1e3)}})}))),mn.get("type")==="exercises"?pn.createElement(se.ZP,{type:"primary",onClick:()=>{const ar=()=>xr(void 0,null,function*(){yield Ha(),Jo(!1),ni(),ka.current=!0,Ua()});if(!(kn!=null&&kn.records_count)||Wr){pe.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",icon:null,title:"\u63D0\u793A",content:pn.createElement("div",{style:{color:"#FF0000"}},"\u8BF7\u786E\u8BA4\u4F60\u7684\u7B54\u9898\u5185\u5BB9\u662F\u5426\u8FDB\u884C\u8BC4\u6D4B\u5E76\u63D0\u4EA4\uFF0C\u672A\u8BC4\u6D4B\u5219\u4F1A\u5BFC\u81F4\u8BE5\u9898\u65E0\u6CD5\u83B7\u5F97\u5206\u6570"),onOk:ar});return}ar()}},pn.createElement("span",{className:"iconfont icon-yiguanbi mr5 font14"})," \u8FD4\u56DE\u8BD5\u5377"):pn.createElement("span",{onClick:()=>{var ar;if(mn.get("backUrl"))_e.history.push(mn.get("backUrl"));else if(mn.get("type")==="1"){let Zr=(ar=localStorage.getItem("program_homework"))==null?void 0:ar.split(",");_e.history.push(`/classrooms/${Zr==null?void 0:Zr[0]}/program_homework/${Zr==null?void 0:Zr[1]}/detail`)}else _e.history.push("/problemset")}},pn.createElement(ne.Z,{title:"\u5173\u95ED"},pn.createElement("i",{style:{color:sa?"#8D929F":"#fff"},className:"iconfont icon-fanhuishijuan font16 "})))),pn.createElement(de.Z,{size:"large",spinning:yo},pn.createElement(oe.Z,{className:po()(Cr.Z.myProblems,sa&&Cr.Z.whiteMyProblems),leftChild:pn.createElement(vn,dr({},Ja)),rightChild:pn.createElement(zo,dr({},Ca))}))):null,pn.createElement(pe.default,{centered:!0,closable:!1,width:680,footer:null,open:ja,className:"oj-modal"},pn.createElement("section",{className:"oj-modal-content"},pn.createElement("div",{className:"oj-modal-head"},pn.createElement("img",{src:Wn,alt:""}),pn.createElement("i",{onClick:()=>Fa(!1),className:"iconfont icon-guanbi1"})),pn.createElement("aside",null,pn.createElement("img",{className:"mr30",src:Io.Z}),"\u8FD0\u884C\u65F6\u95F4:\xA0",pn.createElement("span",{style:{color:"#75d6ba",marginRight:100}},sr==null?void 0:sr.execute_time,"ms"),"\u4F18\u4E8E",pn.createElement("span",{style:{color:"#f3b087",margin:"0 5px"}},(sr==null?void 0:sr.time_better_than)||100,"%"),"\u7684\u7528\u6237"),pn.createElement("aside",{className:"mb50"},pn.createElement("img",{src:ko.Z,className:"mr30"}),pn.createElement("span",{className:"oj-modal-tt"},pn.createElement("span",null,pn.createElement("span",null,"\u5360\u7528\u5185\u5B58:\xA0"),pn.createElement("span",{className:"c-light-primary"},sr==null?void 0:sr.execute_memory,"kb")),pn.createElement("span",null,pn.createElement("span",null))),"\u4F18\u4E8E",pn.createElement("span",{style:{color:"#f3b087",margin:"0 5px"}},(sr==null?void 0:sr.memory_better_than)||100,"%"),"\u7684\u7528\u6237"),pn.createElement("div",{id:"oj-modal-next",onClick:()=>xr(void 0,null,function*(){var ar;if(sr!=null&&sr.next_identifier){let Zr=yield(0,ge.ZP)(`/api/problems/${sr==null?void 0:sr.next_identifier}/start.json`,{method:"get",params:{hack_user_id:No==null?void 0:No.user_id}});Zr&&(window.location.href=`/myproblems/${Zr==null?void 0:Zr.identifier}${window.location.search}`)}else{let Zr=(ar=localStorage.getItem("program_homework"))==null?void 0:ar.split(",");_e.history.push(`/classrooms/${Zr==null?void 0:Zr[0]}/program_homework/${Zr==null?void 0:Zr[1]}/detail`)}}),className:"oj-modal-btn"},sr!=null&&sr.next_identifier?"\u8FDB\u5165\u4E0B\u4E00\u9898":"\u56DE\u5230\u4F5C\u4E1A\u8BE6\u60C5\u9875")))),pn.createElement(ur.Z,{successCb:()=>{oa.current===1?$a():oi()}}))};function no({title:Tt,modify_code:Gt,onSyncCode:on,onShowCodeSetting:ln,onResetCode:Qt,hack:Yt,onChangeLanguage:qt,isWhiteTheme:an,onShowResourceCentre:hn,attachments_count:An}){var mn;const _r=()=>{pe.default.confirm({title:"\u6062\u590D\u521D\u59CB\u4EE3\u7801",icon:pn.createElement(ee.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:Qt})},[Kn]=(0,_e.useSearchParams)(),Jr=Kn.get("language"),sr=kn=>kn==="1"?"c++":kn==="2"?"C++":kn;return(0,be.useEffect)(()=>{Jr&&qt(sr(Jr))},[]),(0,be.useEffect)(()=>{Yt!=null&&Yt.tpm_code_modified&&pe.default.confirm({title:"\u66F4\u65B0\u521D\u59CB\u4EE3\u7801",icon:pn.createElement(ee.Z,null),content:pn.createElement("div",null,pn.createElement("div",null,"\u7F16\u7A0B\u9898\u7684\u521D\u59CB\u4EE3\u7801\u5185\u5BB9\u6709\u66F4\u65B0,"),pn.createElement("div",null,"\u66F4\u65B0\u64CD\u4F5C\u5C06\u4FDD\u7559\u5DF2\u5B8C\u6210\u7684\u8BC4\u6D4B\u8BB0\u5F55\u548C\u6210\u7EE9,"),pn.createElement("div",null,"\u8FD8\u672A\u5B8C\u6210\u8BC4\u6D4B\u7684\u4EFB\u52A1\u4EFB\u52A1\u4EE3\u7801\uFF0C\u8BF7\u81EA\u884C\u4FDD\u5B58\uFF01")),centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>Qt()})},[Yt==null?void 0:Yt.language]),console.log(Yt,an,"hack"),pn.createElement("div",{className:`${Cr.Z.codeHead} ${an?Cr.Z.whiteCodeHead:""}`},pn.createElement("div",{className:Cr.Z.navWrap},(mn=Yt==null?void 0:Yt.all_language)==null?void 0:mn.map(kn=>pn.createElement("div",{className:`${Cr.Z.nav} ${kn===(Yt==null?void 0:Yt.language)?Cr.Z.active:""}`,key:kn,onClick:()=>qt(kn)},pn.createElement(ne.Z,{title:"\u7F16\u7A0B\u8BED\u8A00"},pn.createElement("i",{className:"iconfont icon-bianchengyuyan1"})),pn.createElement("span",null,kn)))),pn.createElement(ie.Z,{align:"middle",style:{marginLeft:"auto"}},Gt?pn.createElement("a",{title:"\u66F4\u65B0\u901A\u77E5",onClick:on},pn.createElement("img",{src:Ve,alt:"notice",style:{height:13,transform:"translateY(-2px)"}})):null,An>0&&pn.createElement("a",{onClick:hn},pn.createElement(ne.Z,{title:"\u8D44\u6E90\u4E2D\u5FC3"},pn.createElement("i",{style:{color:"#8D929F"},className:"iconfont icon-ziyuanzhongxin mr15"}))),pn.createElement("a",{onClick:_r},pn.createElement(ne.Z,{title:"\u6062\u590D\u521D\u59CB\u4EE3\u7801"},pn.createElement("i",{style:{color:"#8D929F"},className:"iconfont icon-huifuchushihuashezhi mr15"}))),pn.createElement("a",{onClick:ln},pn.createElement(ne.Z,{title:"\u8BBE\u7F6E"},pn.createElement("i",{style:{color:"#8D929F"},className:"iconfont icon-shezhi8 font14 mr15"})))))}function zo(Tt){var Gt=Tt,{input:on,is_file:ln,identifier:Qt,showNote:Yt,onShowNote:qt,notes:an,onCancelNote:hn,onAddNote:An,debugResult:mn,language:_r,debuging:Kn,submitting:Jr,executingMessage:sr,code:kn,onSubmitCode:hr,onDebugCode:Sr,onChangeCode:Dn,onChangeInput:Or,onUpdateCode:Gr,user:Tr,isLoading:pr,submitResult:Br}=Gt,co=Er(Gt,["input","is_file","identifier","showNote","onShowNote","notes","onCancelNote","onAddNote","debugResult","language","debuging","submitting","executingMessage","code","onSubmitCode","onDebugCode","onChangeCode","onChangeInput","onUpdateCode","user","isLoading","submitResult"]);function ho(yo,Ho){return pn.createElement(no,wr(dr({},co),{onShowCodeSetting:yo,onShowResourceCentre:Ho}))}const Uo=dr({input:on,is_file:ln,debugResult:mn,debuging:Kn,submitting:Jr,executingMessage:sr,onDebugCode:Sr,onChangeCode:Dn,onSubmitCode:hr,onChangeInput:Or,user:Tr,submitResult:Br},co);return pn.createElement("div",{style:{display:"flex",flexDirection:"column",height:"100%",background:"#1B2333"}},pn.createElement(Xe,{setIsWhiteTheme:co==null?void 0:co.setIsWhiteTheme,isLoading:pr,language:_r,value:kn,identifier:Qt,onChange:Dn,onUpdateCode:Gr,ActionBarRender:ho}),pn.createElement(ze.ZP,dr({},Uo)))}},10129:function(Et,dt,ve){"use strict";ve.d(dt,{h:function(){return be}});var be=(_e=>(_e[_e.NOMATCH=-1]="NOMATCH",_e[_e.OK=0]="OK",_e[_e.TIMEOUT=2]="TIMEOUT",_e[_e.PODFAILURE=3]="PODFAILURE",_e[_e.COMPILEFAILURE=4]="COMPILEFAILURE",_e[_e.EXECUTEFAILURE=5]="EXECUTEFAILURE",_e[_e.HIDE_COMPILE_STATUS=11]="HIDE_COMPILE_STATUS",_e))(be||{})},67172:function(Et,dt,ve){"use strict";ve.d(dt,{H7:function(){return a},MK:function(){return ee},MU:function(){return ue},X6:function(){return oe},bM:function(){return ce},fi:function(){return y},fu:function(){return ie},n4:function(){return x},rX:function(){return re},vl:function(){return b},zO:function(){return ae}});var be=ve(38147),_e=Object.defineProperty,E=Object.getOwnPropertySymbols,pe=Object.prototype.hasOwnProperty,de=Object.prototype.propertyIsEnumerable,se=(z,te,le)=>te in z?_e(z,te,{enumerable:!0,configurable:!0,writable:!0,value:le}):z[te]=le,ne=(z,te)=>{for(var le in te||(te={}))pe.call(te,le)&&se(z,le,te[le]);if(E)for(var le of E(te))de.call(te,le)&&se(z,le,te[le]);return z};function ie(z,te){return(0,be.U2)(`myproblems/${z}.json`,ne({hidePopLogin:!0},te||{}))}function ce(z,te){return(0,be.v_)(`myproblems/${z}/code_submit.json`,te)}function ue(z,te){return(0,be.v_)(`myproblems/${z}/code_debug.json`,te)}function ae(z,te){return te.language&&(te.language=encodeURIComponent(te.language)),(0,be.U2)(`myproblems/${z}/submit_records.json`,te)}function oe(z){return(0,be.U2)("myproblems/record_detail.json",{id:z})}function re(z,te){return(0,be.U2)(`myproblems/${z}/result.json`,{mode:te})}function ee(z,te){return(0,be.v_)(`myproblems/${z}/add_notes.json`,te)}function a(z,te){return(0,be.v_)(`myproblems/${z}/restore_initial_code.json`,te)}function y(z){return(0,be.v_)(`myproblems/${z}/sync_code.json`)}function x(z,te){return(0,be.v_)(`myproblems/${z}/update_code.json`,te)}function b(z,te){return(0,be.v_)(`discusses/${z}/plus.json`,te)}},80443:function(Et,dt,ve){"use strict";ve.d(dt,{Im:function(){return ye},ZP:function(){return Ce},gZ:function(){return Ee}});var be=ve(59301),_e=ve(92832),E=ve(3113),pe=ve(84105),de=ve(87395),se=ve(17124),ne=ve(24334),ie=ve(42678),ce=ve(6339),ue=ve(65862),ae=ve(51908),oe=ve(34376),re=ve(92310),ee=ve.n(re),a=ve(59301),y=Object.defineProperty,x=Object.defineProperties,b=Object.getOwnPropertyDescriptors,z=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable,fe=(je,Me,Ge)=>Me in je?y(je,Me,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):je[Me]=Ge,ge=(je,Me)=>{for(var Ge in Me||(Me={}))te.call(Me,Ge)&&fe(je,Ge,Me[Ge]);if(z)for(var Ge of z(Me))le.call(Me,Ge)&&fe(je,Ge,Me[Ge]);return je},me=(je,Me)=>x(je,b(Me));const{TextArea:he}=_e.default,Se={visible:!1,tabIndex:"0"},ye={[se.h.HIDE_COMPILE_STATUS]:"\u6682\u4E0D\u652F\u6301\u67E5\u770B",[se.h.NOMATCH]:"\u6D4B\u8BD5\u7528\u4F8B\u7ED3\u679C\u4E0D\u5339\u914D",[se.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 Pe=(je=>(je[je.SET_VISIBLE=0]="SET_VISIBLE",je[je.SET_TABINDEX=1]="SET_TABINDEX",je))(Pe||{});function we(je,Me){switch(Me.type){case 0:return me(ge({},je),{visible:Me.payload});case 1:return me(ge({},je),{tabIndex:Me.payload});default:throw new Error}}function De({value:je,className:Me}){const[Ge,Fe]=(0,be.useState)(!1),Je=(0,be.useRef)(),qe=(0,be.useRef)();return(0,be.useEffect)(()=>{Ge&&(qe.current.reset(),qe.current.write((0,ue.pp)(je||"")))},[je,Ge]),(0,be.useEffect)(()=>{var Xe,Ve,We,ze;if(Je.current){qe.current=new oe.Terminal({fontSize:14,disableStdin:!0}),qe.current.open(Je.current);const Ue=Je.current.offsetWidth-14,ot=((ze=(We=(Ve=(Xe=qe.current)==null?void 0:Xe._core)==null?void 0:Ve._renderService)==null?void 0:We.dimensions)==null?void 0:ze.actualCellWidth)||9.5,Qe=Math.ceil(Ue/ot);qe.current.resize(Qe,8),Fe(!0)}},[]),a.createElement("div",{ref:Je,className:ee()("XtermText-valueRef",Me)})}function Ee(je){const{status:Me,error_msg:Ge,output:Fe,input:Je,expected_output:qe,is_file:Xe,input_file_url:Ve,output_file_url:We,expected_output_file_url:ze}=je;let Ue=null;const ot={minHeight:150,marginBottom:10,paddingLeft:24,background:"#070f19",color:"#fff"};switch(Me){case se.h.NOMATCH:Ue=a.createElement(a.Fragment,null,a.createElement("p",{className:"c-red"},"\u5B9E\u9645\u8F93\u5165\uFF1A"),!Xe&&a.createElement(De,{className:"mb10",value:Je}),Xe&&a.createElement("div",{style:ot},a.createElement("a",{onClick:()=>(0,ue.LR)(Ve,Je)},Je)),a.createElement("p",{className:"c-red"},"\u5B9E\u9645\u8F93\u51FA\uFF1A"),!Xe&&a.createElement(De,{className:"mb10",value:Fe&&ne.Base64.decode(Fe)||""}),Xe&&a.createElement("div",{style:ot},a.createElement("a",{onClick:()=>(0,ue.LR)(We,Fe)},Fe)),a.createElement("p",{className:"c-red"},"\u9884\u671F\u8F93\u51FA\uFF1A"),!Xe&&a.createElement(De,{className:"mb10",value:qe&&ne.Base64.decode(qe)||""}),Xe&&a.createElement("div",{style:ot},a.createElement("a",{onClick:()=>(0,ue.LR)(ze,qe)},qe)));break;case se.h.EXECUTEFAILURE:Ue=a.createElement(a.Fragment,null,a.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A"),!Xe&&a.createElement(ce.Z,{value:Je,style:ot}),Xe&&a.createElement("div",{style:ot},a.createElement("a",{onClick:()=>(0,ue.LR)(Ve,Je)},Je)),a.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),a.createElement("pre",{className:"error"},ne.Base64.decode(Ge)));break;case se.h.COMPILEFAILURE:Ue=a.createElement(a.Fragment,null,a.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A"),!Xe&&a.createElement(ce.Z,{value:Je,style:ot}),Xe&&a.createElement("div",{style:ot},a.createElement("a",{onClick:()=>(0,ue.LR)(Ve,Je)},Je)),a.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),a.createElement("pre",{className:"error"},ne.Base64.decode(Ge)));break;case se.h.PODFAILURE:Ue=a.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case se.h.TIMEOUT:Ue=a.createElement("p",null,"\u8BC4\u6D4B\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break}return a.createElement(a.Fragment,null," ",Ue," ")}function Ae(je){const{status:Me,error_msg:Ge,execute_time:Fe,output:Je,input:qe,expected_output:Xe,is_file:Ve,input_file_url:We,output_file_url:ze,expected_output_file_url:Ue}=je;let ot=null;switch(Me){case se.h.OK:ot=a.createElement(a.Fragment,null,a.createElement("p",null,"\u6267\u884C\u7528\u65F6\uFF1A",Fe,"\u79D2"),a.createElement("p",null,"\u6267\u884C\u7ED3\u679C\uFF1A"),a.createElement("pre",null,ne.Base64.decode(Je)));break;case se.h.NOMATCH:ot=a.createElement(a.Fragment,null,a.createElement("p",null,"\u8F93\u5165\uFF1A",a.createElement("pre",null,qe)),a.createElement("p",null,"\u8F93\u51FA\uFF1A",Je&&ne.Base64.decode(Je)),a.createElement("p",null,"\u9884\u671F\u8F93\u51FA\uFF1A",Xe&&ne.Base64.decode(Xe)));break;case se.h.EXECUTEFAILURE:ot=a.createElement(a.Fragment,null,a.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",a.createElement("pre",null,qe)),a.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),a.createElement("pre",{className:"error"},ne.Base64.decode(Ge)));break;case se.h.COMPILEFAILURE:ot=a.createElement(a.Fragment,null,a.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",a.createElement("pre",null,qe)),a.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),a.createElement("pre",{className:"error"},ne.Base64.decode(Ge)));break;case se.h.PODFAILURE:ot=a.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case se.h.TIMEOUT:ot=a.createElement("p",null,"\u8BC4\u6D4B\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break}return a.createElement(a.Fragment,null," ",ot," ")}var Ce=({id:je,is_file:Me,input:Ge,debuging:Fe,submitting:Je,executingMessage:qe,debugResult:Xe,onChangeInput:Ve,onDebugCode:We,onSubmitCode:ze})=>{const[Ue,ot]=(0,be.useReducer)(we,Se),{visible:Qe,tabIndex:ut}=Ue;(0,be.useEffect)(()=>{ot({type:0,payload:!1})},[je]);function Ye(Le){let Ne=Le.target.id;ot({type:1,payload:Ne})}function He(){ot({type:0,payload:!Qe})}const Re=(0,be.useMemo)(()=>{if(Xe){const{status:Le}=Xe;return a.createElement(a.Fragment,null,Ae(Xe))}return null},[Xe]);function $e(){ot({type:0,payload:!0}),ot({type:1,payload:"1"}),We()}return a.createElement("div",{className:"test-case-panel"},a.createElement("div",{className:`test-case-panel-body ${Qe?"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(he,{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:Me?"":Ge,onChange:Ve}),rightNode:Fe?a.createElement(ie.Z,{message:"\u4EE3\u7801\u6267\u884C\u4E2D..."}):Xe?Re: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 ${Qe?"up":""}`,onClick:He},Qe?a.createElement(pe.Z,null):a.createElement(de.Z,null)),a.createElement("footer",{className:"footer"},a.createElement("span",{style:{visibility:"hidden"}},"\u63A7\u5236\u53F0"),a.createElement("div",{className:"flex-container"},a.createElement(E.ZP,{id:"oj-prev",className:"btn-blue",type:"ghost"},"\u4E0A\u4E00\u9898"),a.createElement(E.ZP,{id:"oj-next",className:"btn-blue",type:"ghost"},"\u4E0B\u4E00\u9898"),a.createElement(E.ZP,{className:"btn-green",type:"ghost",loading:Fe,onClick:$e},"\u8C03\u8BD5\u4EE3\u7801"),a.createElement(E.ZP,{type:"primary",className:"custom-ant-disabled",loading:Je,disabled:Je,onClick:()=>{ot({type:0,payload:!1}),ze()}},"\u8BC4\u6D4B\u5E76\u63D0\u4EA4"))))}},17124:function(Et,dt,ve){"use strict";ve.d(dt,{h:function(){return be}});var be=(_e=>(_e[_e.NOMATCH=-1]="NOMATCH",_e[_e.OK=0]="OK",_e[_e.TIMEOUT=2]="TIMEOUT",_e[_e.PODFAILURE=3]="PODFAILURE",_e[_e.COMPILEFAILURE=4]="COMPILEFAILURE",_e[_e.EXECUTEFAILURE=5]="EXECUTEFAILURE",_e[_e.HIDE_COMPILE_STATUS=11]="HIDE_COMPILE_STATUS",_e))(be||{})},12088:function(Et,dt,ve){"use strict";ve.d(dt,{Y2:function(){return Ce},ZP:function(){return je}});var be=ve(59301),_e=ve(54580),E=ve(8591),pe=ve(43418),de=ve(95237),se=ve(5112),ne=ve(3113),ie=ve(24905),ce=ve(6848),ue=ve(92832),ae={wrap:"wrap___MkYbQ",colorBlue:"colorBlue___onjbP",repeatedName:"repeatedName___nbqnE",text:"text___xvutp",greyText:"greyText___dihvZ",noData:"noData___LxOJA",dragger:"dragger___y7F4A",uploadText:"uploadText___Et3KS",btnS:"btnS___k1e6j",testCaseRadio:"testCaseRadio___q1wXT",head:"head___s4Eix",operation:"operation___JCAVh",headProgram:"headProgram___uWA_M",listWrapper:"listWrapper___xW3b4",list:"list___dCbd6",del:"del___abNho",info:"info___J1Wmf"},oe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAATEAAADICAYAAACAj9YNAAAAAXNSR0IArs4c6QAAD59JREFUeF7tnet527gShsFUZFeQpJN1GkncyG46iVJBVFG4D6mLKYmSMLgQM4NXf855NrgMvm/8egBC9BD4oIBhBV7++fPlHP6n8PH/p/84Dp8XS7v8txB2N8sext/h7+G/73++3v67YZ08hz54Xhxr86fAy7c/P+ZVHQB1DaYaCz7AbBzfgVsNefPHBGL5GjJCRQUW0PpecRrp0DugJpWsXnsgVk9bRk5QQCm0nq1khhpb0Gcy1fl3IFZHV0YVKDCfa03nWeOgqdoSrODc9Lz1BGgp8qX1AWJputGrgAJz1bXd2VaBiEVDUJ2J5EpvDMTStaNnogJHeFmvuiSrB2gStYRtgZhQMJqnKWD0rCttsfd7AbPSioYQgFgFURnyQwHnW8ZUq4FZqnIr/YBYQTEZ6lKBDreNshQYxvf9v6+He298khUAYsnS0fGeAsBLmBvj+JWnmULNFs2BWLp29LxSYL4qMczXJLa4Se9Nf7aYiY4CsUTh6MbWsUoOsMUUywrExJLRYakAW8cq+UBVJpAViAnEoinV16Y5QFUWJTcQi5KJRtcKUIFtlBOA7KnQQOypRDS42D5yeN8iIdhePlAdiLVISaNzUn01No6rGKsGALHGeWllegCmxCm2lzdGADEluak5DACmzB1AdmEIEFOWn9rCAWDaHDnGA8jOxgAxpTmqIayXt/0vbt9rcOJODIBsFgaIKc7RlqFRgbVUXzA3IANignTppikAM2Z15yCjEjOWr7XDBWC1Fa40fscgA2KVcsrisADMomuLmDsFGRAznrelwj++Rmc6yOdjWYEOL8QCMcsJWyh2AFZISCXD7P976ernuqvFKskxVWEAMFV2lAmms20lECuTNmZH4S6YWeseB94RyICY0xyOWRYH+TEqGW7TCciAmOEczQmdbWSOenb69nA+BsTs5GPRSNlGFpVT72AdVGNATG/6VYuMbWQ1aXUO7BxkQExn2lWN6uVtP1adgMHVKeB5WwnE1KVb3YDYRtbVV+3ojqsxIKY268oHxmF+eU0tjei1GgNilrIwM1a2kZkCWu/utBoDYtYTMzJ+tpGRQnlv5hBkQMx70h7XRxXWidHPl7nb//fy9XkzOy2AmB2vkiPlSkWydD47OqvGgJjPNL1YFVVYByZLlgjEJGrRtrUCPJFs7YDS+R2BjEpMSY7NsDl+9j9fd6XC4kC/lJLOxgFizgzdYDnzudTpMw6fj//3DK4HIRyANoy/w9+wkwCOKmwDYy1P4QRkVGIVk/AMrnH4XniaXQzUqMIKq+5tOCDmzdH89cyVz6fwJRwqrZgqK3/SEFaBRhVWQlr/Y3i4xU8lVihPlVxj2IVxfJ+2nFRhhYz1PoyDagyIZSapEnhdr2I6R9uqEsxUkO5NFQBiTeVvOrlSeDXVhMltKmB9S0klJsw74CUUjOb6FTBejQExQYoBMIFYNLWkgOnvUwKxyFTjoDxSKJqZVMDylhKIPUk5riqY/JkkaKkChreUQOyB2WwfpT8JtDerABAza93dwAGYP09Z0WMFrG4pqcRWfGULyY97jwoAMSeuAzAnRrIMuQJGt5RUYldW8xRSnvv0cKIAELNvJACz7yEryFLA5H0xKrGj5xzkZyU/nZ0oYPFcDIiFEDgHc/ITyDKyFQBi2RK2GYBtZBvdmVWhAuP4VfL2YA0r6L4SYxupIQ2JQY0CBg/3gdjbflSTQASCAq0VAGKtHZDNTxUm04vWHSgAxOyYzGG+Ha+IdFMFzF2z6HY7yWH+pj8YTGZHASBmwSuqMAsuEWMjBYBYI+FF0wIxkVw07kwBa3fFutxOspXs7KeS5YoUAGIiudo0fuFaRRvhmdWEAkBMuU1sJZUbRHjNFQBizS14HABbSeUGEV5zBYBYcwueQowb+so9Iry2CgCxtvo/nJ2tpGJzCE2NAkBMjRW3gQAxxeYQmhoFgJgaK1Yg9u3PjzAO3xWHSGgo0FoBLru2duDR/HzhW7M7xKZEASCmxIjVMHgyqdkdYlOiABBTYgQQ02wEsWlWAIhpdodKTLM7xKZCAd4npsKGu0HwdSPd/hCdAgV4x35bE+YrFNPnUzj87/IzDp9DWPnvbUNmdhTQpQAQ286P+Unj9DnAafrcgmu7cJgJBVwoYO2O2CS6mVfxXEELYLn4kWERShXYhXF8t/Kn21RDbAEuLqgqzXbCcq+AeqCpgxjgcv9DwQLtKqASaGogxm16u5lN5B0qoOgqRnOIAa8OfwBYshcFVFRmzSAGvLzkMetAgdAUZptD7Agv7myR+SjgT4EmMNsUYlRf/rKWFaHAigKbwmwTiAEvEh0FOlRgo8P/6hADYB0mL0tGgZMCG4CsGsSOr4KeLqlyu56URoG+Fai6vawCMaqvvjOW1aPAqgKVqrLiEANgJDAKoMBdBSqArCjEABjJiwIoEKFA0bfHFoMYAIuwjiYogAInBYqBrAjEeO0zmYkCKJCgQBGQZUMMgCVYRxcUQIFiFVkWxNhCkokogALZCmQe9idDDIBlW8cAKIACJwUyQJYEMQBG7qEAChRXIBFkYogdb+L/Kr4ABkQBFECBBJDJIfa2H1EaBVAABaopIASZCGI8iaxmGwOjAAosFJD86bhoiHEORo6hAApspoCgGouCGOdgm1nHRCiAAsInlnEQe9tPB/m8Uof0kiswjO/hb9jNHYeBVzPJFey6R8y28inE2EZ2nUM5i1/9Sgn5lCNph30jtpUPIcY2ssOkKbTkR79BAVkhkXsZ5gnIHkOMbWQvaVJ2neP4df/z9bCFvPMBZGUl9z7ao1+KdyFGFeY9LSqtLwJgp5m5slPJA4/DPqjG7kOMKsxjKtRdU8T5xXUAL1yeruuJo9HvVWOrEKMKc+T8VktJANgUGrm2lUEO5rmTY+sQowpz4PiGS0gE2Hlb+c+fL2EY+D7uhpaZnCoWYvxmNGlvu6AzAXYG2bc/P8I43yPjgwL3FVjJt5tKjMNWMkigQJHXCwMygeK9N42EGG+p6D1R4tZfFGCALE50WoVwfcB/UYmxlSRFohUQXKWIHvPYkDtkUsU6a39VjV1CjAP9zrIhcbkVAXauyMjFRHP66Lasxq4hxlayjxxIX+UGAANk6fZ003ORh2eIsZXsxv70hRZ6EikJgMuwErU6arvIxQ+IUb53lAEJS20AsClKfrkmeNVHl/ODpSXE2Er2Yb58lY0AxhNLuVU99Tidi80Q47ddT9aL11rlKoU0Cp5YShXroP3xlysQ68DrjCWqABgVWYaDnrteQIzzMM9Wp65NFcAAWaqNrvvNOXqoxICYa6eTFrfhVQppfGwtpYr5bT+di50gxqG+X5/lK1MMsHNFxi9eua8eewzj+8ChvkdnM9bU+EmkJHJ2EBK1nLYFYk6NTV2WIYDNxyC8hyzVaT/9ZojxHic/huasxBjAzttKQJbjuv2+M8Q4W7BvZO4KjAKMJ5a5xrvovwNiLnzMWoTKqxTSFbGjkCrmpj0Qc2Nl2kJcAIyKLM18L72oxLw4mbIOA1cppMuiIpMqZr/9BDHuiNn3Ub4ChwCjIpOngYceQMyDi9I1OAbYGWQ8sJJmhdn2QMysdYmBG38SKVk1uwyJWnbbAjG73skj7whgkzhchpWniMUeQMyiaykxdwaw87aSy7Ap2WKqD08nTdmVHKyrqxRSFXhiKVXMVnsgZsuvlGi7BhhPLFNSxlYfIGbLL2m0AGyhGBWZNH1stAdiNnxKi7KDqxRSYQCZVDH97XmLhX6P0iIEYHd146UHaSmltNcOiCl1JissAPZUPkD2VCIrDXa82dWKVbFxdnqVIlaeZTsuw6aopqzP9D6xKSTMVGZMajgATKQcl2FFculsPI7nv3bEl8B1WiSJiieRErWObTnoTxBNU5cFxH6FEL5oio1YhApwDiYU7KM5IEuWrnnHjz/Zxnv2m5uRGQBVWIaAQCxDvLZdF388l++XtbWiwOzTb6QCw3Q5BBAzavvxDPic+BzuGzXyFDbbyWQDuW6RLF3bjsecX0KMc7G2luTPDsjEGlKFiSVT0+G0+/iAGOdiaszJDGSX1X8c3/c/X/PGyAogrvMMn+kzDp/jeqy24mFWhniNu57PgT8gxrlYY09UTa/6QQHVk6pcaRPMYtdxcRjM2UAbP1TOqvTiLBdUVWbL5kEtH2RdQowt5eZmqJ0QiKm1hsDCxU7h5rE8TylJkaMCKreUVGLkZ7h6gHULMaoxsuSgABAjE1QqcH0nEoiptElFUEBMhQ0EcaXATV6u3vJmS0niUImRAyoVWLkLuQ4xtpQq/ds4KCqxjQVnuqcKrObk3e/bUY09FdR7AyDm3WFr67vzjZT7EKMas2Zx6XiBWGlFGS9Hgbv5+PDNB1RjOZqb7wvEzFvoaAEPvhf8GGJUY46yQLwUICaWjA5VFHhy8frpO6j4nloVWywMCsQsuOQ/xqd5+BRik0ZsK/1nysoKnyZPC1W4sd9C9YZzRrxeKg5ibCsbuthsaiDWTHomPioQlYNREJurMUDWW2ZFJdDWolCJba14u/liX7keDTG2le3MbDQzEGskPNNOL7scv8a+nFMGMaqxnvILiPXktqa1Cl8DJYIY20pNTlePBYhVl5gJSjxQEkMMkHWTeECsG6v1LDT2HGwZcRLEjudj/HUkPd7XiASI1VCVMe8rIDgHKwIxQOY+G4GYe4sVLTARYNMKkiuxGWL8hSRFWVA8FCBWXFIGXFVAeJB/PUYWxACZ66QEYq7tVbK4TIBlV2InGajIlCRE2TCAWFk9Ge2mhBrf9/++Hv4IcsYnuxK7Atn3EAJ/VTnDEEVdgZgiM9yFUqACO2lSDGJnmL3teWrpI+OAmA8f9a0i4xB/bTHFITafkwEyfYkjjwiIyTWjx2MFdmEc32O/ThQrZhWIzSDjK0qxHmhtB8S0OmMxroLbx5ujtZp6HA/8OSerKXK9sYFYPW37GrkiwCYhq1ViS5fYXprMWSBm0jZVQVfZPm5aiV2A7HAxlqpMVY49DAaI2fFKX6SVq6/lgjepxC5gxlmZvoRbjwiIWXFKU5wbwuu07M0hNh/6U5VpSrt7sQAxCy5pirEBwDY7E7unMzDTlIE3sQAx1fYoCq4RvJpWYtfyAzNFCfkRChBTaYuioBrDSxXETsEAM0UJGgIQU2WHkmCG8X2KpMR3HkutqMmZWEzwAC1GpaptgFhVeU0NvgvD+FsTuJbqqYXYMkiA1iThgVgT2dVMqhpc5iB2A7T5kcR852z68NaMOnkPxOroqnXUGVrhb9iV/m5j7QWbqMSeiTBXatPnU/gSxuHzSntA90zE238HYnLNWvTYXU26lusfbSZQnT4GgbUm8P/6C+VmwqlgeQAAAABJRU5ErkJggg==",re=ve(47257),ee=ve.n(re),a=ve(38147),y=ve(1012),x=ve(65862),b=ve(21185),z=ve(59301),te=Object.defineProperty,le=Object.defineProperties,fe=Object.getOwnPropertyDescriptors,ge=Object.getOwnPropertySymbols,me=Object.prototype.hasOwnProperty,he=Object.prototype.propertyIsEnumerable,Se=(Me,Ge,Fe)=>Ge in Me?te(Me,Ge,{enumerable:!0,configurable:!0,writable:!0,value:Fe}):Me[Ge]=Fe,ye=(Me,Ge)=>{for(var Fe in Ge||(Ge={}))me.call(Ge,Fe)&&Se(Me,Fe,Ge[Fe]);if(ge)for(var Fe of ge(Ge))he.call(Ge,Fe)&&Se(Me,Fe,Ge[Fe]);return Me},Pe=(Me,Ge)=>le(Me,fe(Ge)),we=(Me,Ge,Fe)=>new Promise((Je,qe)=>{var Xe=ze=>{try{We(Fe.next(ze))}catch(Ue){qe(Ue)}},Ve=ze=>{try{We(Fe.throw(ze))}catch(Ue){qe(Ue)}},We=ze=>ze.done?Je(ze.value):Promise.resolve(ze.value).then(Xe,Ve);We((Fe=Fe.apply(Me,Ge)).next())});const{Dragger:De}=_e.default,Ee=Me=>{const Ge=Ue=>Ue&&Ue.substring(0,Ue.lastIndexOf("."));for(var Fe=[...Me],Je=0,qe=[],Xe=0;Xe{if(Ue.forEach(ot=>{let Qe=ot.name.split(/\.(?=[^\.]+$)/);ot.name=`${Qe[0]}.${Qe[1].toLowerCase()}`}),Ue[0].name.includes(".in"))return Ue.length===2?Ue:[Ue[0],{}];if(Ue[0].name.includes(".out"))return Ue.length===2?Ue.reverse():[{},Ue[0]]})},Ae=({onClose:Me,onOK:Ge,visible:Fe,wrapClassName:Je,rootIdentifier:qe,multiple:Xe=!1,defaultMultipleValue:Ve=!0})=>{const[We,ze]=(0,be.useState)([]),[Ue,ot]=(0,be.useState)({}),[Qe,ut]=(0,be.useState)(!1),[Ye,He]=(0,be.useState)(!0),[Re,$e]=(0,be.useState)(null),Le=(0,be.useRef)([]),Ne=(0,be.useRef)(0),et=()=>{Me()};(0,be.useEffect)(()=>{Ze()},[]),(0,be.useEffect)(()=>{Fe&&(Le.current=[],Ne.current=0,ze([]),He(Ve))},[Fe]);const Ze=()=>we(void 0,null,function*(){try{$e(!0)}catch(ke){}}),Be=ke=>ke&&ke.substring(0,ke.lastIndexOf(".")),Oe=ke=>{var tt,mt;const ct=Be((tt=ke[0])==null?void 0:tt.name)||Be((mt=ke[1])==null?void 0:mt.name),ht=We.filter(lt=>Be(lt.name)!==ct);Le.current=[...ht],ze([...ht])},Te=ke=>{if(!Ye){const pt=new FormData;pt.append("file",ke.file),(0,a.ZP)("/api/attachments/get_file_content.json",{method:"post",body:pt},!0).then(st=>{if(st.status===0){Ne.current=Ne.current+1;const ft=Le.current.map(vt=>{var St;if(vt.name===ke.name){const xt=ye({},vt);return(St=ke==null?void 0:ke.name)!=null&&St.includes(".in")?xt.input=st==null?void 0:st.content:xt.output=st==null?void 0:st.content,xt}return vt});if(Le.current=[...ft],ze([...ft]),Ne.current>0&&Ne.current===We.length){ut(!1);let vt=Ee(ft);vt=vt.filter(St=>{var xt,Ft;return!!((xt=St[0])!=null&&xt.name&&((Ft=St[1])!=null&&Ft.name))}),vt=vt.map(St=>Pe(ye(ye({},St[0]),St[1]),{is_file:!1})),Ge(vt),Me()}}else ut(!1),Me()});return}if(Re){const pt=new FormData;pt.append("file",ke.file),qe===null?pt.append("identifier","testsets"):pt.append("identifier",qe),(0,a.ZP)("/api/attachments.json",{method:"post",body:pt},!0).then(st=>{if(st.filename){Ne.current=Ne.current+1;const ft=Le.current.map(vt=>{var St;if(vt.name===(st==null?void 0:st.filename)){const xt=Pe(ye({},vt),{is_oss:!Re});return(St=st==null?void 0:st.filename)!=null&&St.includes(".in")?(xt.in_object_key=st==null?void 0:st.object,xt.in_object_size=st==null?void 0:st.size,xt.input=st==null?void 0:st.filename,xt.in_file=ke):(xt.out_object_key=st==null?void 0:st.object,xt.out_object_size=st==null?void 0:st.size,xt.output=st==null?void 0:st.filename,xt.out_file=ke),xt}return vt});if(Le.current=[...ft],ze([...ft]),Ne.current>0&&Ne.current===We.length){ut(!1);let vt=Ee(ft);vt=vt.filter(St=>{var xt,Ft;return!!((xt=St[0])!=null&&xt.name&&((Ft=St[1])!=null&&Ft.name))}),vt=vt.map(St=>Pe(ye(ye({},St[0]),St[1]),{is_file:!0})),Ge(vt),Me()}}else ut(!1),Me()});return}const tt=new(ee())({endpoint:Ue.end_point,region:Ue.region,accessKeyId:Ue.access_key_id,accessKeySecret:Ue.access_key_secret,bucket:Ue.bucket,stsToken:Ue.security_token}),mt=ke.name,ct={container_type:"TestSet",file_name:mt},ht=(0,y.Z)();let lt=`testsets/${qe}/${ht}${mt.indexOf(".")>-1?"."+mt.split(".").pop():""}`;qe===null&&(lt=`testsets/${ht}${mt.indexOf(".")>-1?"."+mt.split(".").pop():""}`),tt.multipartUpload(lt,new Blob([ke.file],{type:ke.file.type}),{timeout:3600*1e3,partSize:1002400,callback:{customValue:{id:mt+""},url:Ue==null?void 0:Ue.callback_url,host:Ue==null?void 0:Ue.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,a.rz)(ct)}}).then(function(pt){if(pt.data.status===0){Ne.current=Ne.current+1;const at=Le.current.map(st=>{var ft,vt,St,xt,Ft,Nt,Xt,dn,en,Jt,wn,Ln,fn,zn,Un,Nn,On;if(st.name===((vt=(ft=pt.data)==null?void 0:ft.data)==null?void 0:vt.file_name)){const Tn=Pe(ye({},st),{is_oss:!Re});return(Ft=(xt=(St=pt.data)==null?void 0:St.data)==null?void 0:xt.file_name)!=null&&Ft.includes(".in")?(Tn.in_object_key=(Xt=(Nt=pt.data)==null?void 0:Nt.data)==null?void 0:Xt.object,Tn.in_object_size=(en=(dn=pt.data)==null?void 0:dn.data)==null?void 0:en.size,Tn.input=(wn=(Jt=pt.data)==null?void 0:Jt.data)==null?void 0:wn.file_name,Tn.in_file=ke):(Tn.out_object_key=(fn=(Ln=pt.data)==null?void 0:Ln.data)==null?void 0:fn.object,Tn.out_object_size=(Un=(zn=pt.data)==null?void 0:zn.data)==null?void 0:Un.size,Tn.output=(On=(Nn=pt.data)==null?void 0:Nn.data)==null?void 0:On.file_name,Tn.out_file=ke),Tn}return st});if(Le.current=[...at],ze([...at]),Ne.current>0&&Ne.current===We.length){ut(!1);let st=Ee(at);st=st.filter(ft=>{var vt,St;return!!((vt=ft[0])!=null&&vt.name&&((St=ft[1])!=null&&St.name))}),st=st.map(ft=>Pe(ye(ye({},ft[0]),ft[1]),{is_file:!0})),Ge(st),Me()}}})},xe=ke=>new Promise((tt,mt)=>{let ct=0,ht=[];for(let lt=0;lt{ct++,ct===ke.length&&(ht.length?(E.ZP.warning(`${ht.join("\uFF0C")}\u6587\u4EF6\u5DF2\u635F\u574F\u6216\u5DF2\u88AB\u4FEE\u6539\uFF0C\u8BF7\u5220\u9664\u540E\u91CD\u65B0\u4E0A\u4F20\uFF01`),mt()):tt(ke))}).catch(pt=>{console.log("\u9519\u8BEF\u4FE1\u606F\uFF1A",pt),ct++,ht.push(ke[lt].name),ct===ke.length&&(ht.length?(E.ZP.warning(`${ht.join("\uFF0C")}\u6587\u4EF6\u5DF2\u635F\u574F\u6216\u5DF2\u88AB\u4FEE\u6539\uFF0C\u8BF7\u5220\u9664\u540E\u91CD\u65B0\u4E0A\u4F20\uFF01`),mt()):tt(ke))})}),Ie=()=>we(void 0,null,function*(){if(We.length===0){E.ZP.warning("\u8BF7\u9009\u62E9\u4E0A\u4F20\u6587\u4EF6");return}if(yield xe(We),ut(!0),Ee(We).some(tt=>{var mt,ct;return!((mt=tt[0])!=null&&mt.name&&((ct=tt[1])!=null&&ct.name))})){pe.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u4E0A\u4F20\u7684\u6D4B\u8BD5\u7528\u4F8B\u4E2D\u5B58\u5728\u672A\u914D\u5BF9\u7684\u6587\u4EF6\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u4EC5\u4FDD\u5B58\u5DF2\u914D\u5BF9\u7684\u6D4B\u8BD5\u7528\u4F8B\uFF1F",onOk:()=>we(void 0,null,function*(){We.map(tt=>we(void 0,null,function*(){Te(tt)}))}),onCancel:()=>{ut(!1)}});return}We.map(tt=>we(void 0,null,function*(){Te(tt)}))}),Ke={name:"file",fileList:We,multiple:!0,accept:".in, .out",showUploadList:!1,beforeUpload:ke=>{if(We!=null&&We.some(mt=>mt.name===ke.name))return E.ZP.info(`${ke.name}\u6587\u4EF6\u5DF2\u5B58\u5728`),!1;if(ke.size/1024/1024>100)return E.ZP.info("\u6587\u4EF6\u8D85\u8FC7100M\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42"),!1;if(!/\.(in|out|IN|OUT)$/.test(ke.name))return E.ZP.warning("\u8F93\u5165\u6587\u4EF6\u53EA\u80FD\u4E0A\u4F20.in\u548C.out\u7C7B\u578B\u7684\u6587\u672C\u6587\u4EF6"),!1;const tt={name:ke.name,uid:ke.uid,file:ke,percent:0};return We.push(tt),Le.current=[...We],ze([...We]),!1}},rt=Ee(We);return console.log(We,rt,"fileList"),z.createElement(pe.default,{open:Fe,wrapClassName:Je,onOk:Ie,centered:!0,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",okButtonProps:{loading:Qe},onCancel:et,width:730,title:"\u6279\u91CF\u4E0A\u4F20\u6D4B\u8BD5\u7528\u4F8B"},z.createElement("div",{className:ae.wrap},We.length?z.createElement("div",null,z.createElement(de.Z,{justify:"space-between",align:"middle",style:{marginBottom:40}},z.createElement("div",{style:{visibility:Xe?"visible":"hidden"}},z.createElement("span",{className:ae.greyText},"\u7528\u4F8B\u7C7B\u578B"),z.createElement(se.ZP.Group,{className:`ml20 ${ae.testCaseRadio}`,optionType:"button",value:Ye,onChange:ke=>He(ke.target.value)},z.createElement(se.ZP,{value:!1},"\u6587\u672C"),z.createElement(se.ZP,{value:!0},"\u6587\u4EF6"))),z.createElement(_e.default,ye({},Ke),z.createElement(ne.ZP,{type:"primary",className:ae.btnS},z.createElement("i",{className:"iconfont icon-shangchuan2"}),"\u4E0A\u4F20\u6587\u4EF6"))),z.createElement(Ce,{data:rt,onRemove:Oe})):z.createElement("div",{className:`${ae.noData} mb30`},z.createElement(_e.default.Dragger,Pe(ye({},Ke),{className:ae.dragger}),z.createElement("img",{src:oe,alt:"",className:"mb20"}),z.createElement("div",null,z.createElement("span",null,"\u62D6\u62FD\u6587\u4EF6\u6216"),z.createElement("span",{className:ae.uploadText},"\u70B9\u51FB\u6B64\u5904\u4E0A\u4F20")))),z.createElement("div",{className:ae.text},z.createElement("span",{style:{color:"#FA6400"}},"\u63D0\u793A"),z.createElement("br",null),"1\u3001\u6587\u4EF6\u5FC5\u987B\u4E0A\u4F20.in\u548C.out\u7C7B\u578B\u7684\u6587\u672C\u6587\u4EF6\u3002",z.createElement("br",null),"2\u3001\u4E0A\u4F20\u7684\u6587\u4EF6\u7F16\u7801\u4EC5\u652F\u6301UTF-8\uFF0C\u5426\u5219\u53EF\u80FD\u4F1A\u51FA\u73B0\u6587\u672C\u4E71\u7801\u3002",z.createElement("br",null),"3\u3001\u8F93\u5165\u8F93\u51FA\u6587\u4EF6\u9700\u6587\u4EF6\u540D\u79F0\u4E00\u4E00\u5BF9\u5E94\uFF0C\u672A\u5BF9\u5E94\u65F6\uFF0C\u5C06\u65E0\u6CD5\u4E0A\u4F20\u3002",z.createElement("br",null),"4\u3001\u5355\u4E2A\u4E0A\u4F20\u6587\u4EF6\u4E0D\u80FD\u8D85\u8FC7100MB\uFF0C\u8D85\u8FC7\u65F6\u53EF\u4EE5\u5206\u6279\u6B21\u4E0A\u4F20\u3002",z.createElement("br",null))))},Ce=({data:Me=[],onRemove:Ge,width:Fe="auto",showScore:Je=!1,disabled:qe=!1,inputChange:Xe,onEvaluatingChange:Ve,onSelectAll:We,checkAll1:ze,checkAll2:Ue,checkAll3:ot,checkAll4:Qe,checkAll5:ut,showEvaluatingSetting:Ye=!1,className:He="",isProgramHomework:Re=!1})=>{const $e={value:"",filename:"",dataUrl:""},[Le,Ne]=(0,be.useState)(ye({},$e)),et=Oe=>{let Te=document.createElement("a");document.body.appendChild(Te);let xe=URL.createObjectURL(Oe.file);Te.href=xe,Te.download=Oe.name,Te.click(),URL.revokeObjectURL(xe),document.body.removeChild(Te)},Ze=(Oe,Te)=>{(0,x.LR)(Oe,Te)},Be=(Oe,Te)=>{pe.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:z.createElement("div",{className:"tc font16"},"\u8BF7\u786E\u8BA4\u662F\u5426\u5220\u9664\u8BE5\u6D4B\u8BD5\u7528\u4F8B?"),onOk:()=>{Ge(Oe,Te)},onCancel:()=>{}})};return Me.length?z.createElement("div",{className:He,style:{width:Fe}},z.createElement("div",{className:`${Re?ae.headProgram:ae.head}`},Ye&&z.createElement("div",{style:{width:"15%",display:"flex",alignItems:"center"}},z.createElement(ie.default,{checked:ze,onChange:Oe=>{We(Oe.target.checked,"hidden")}}),z.createElement(ce.Z,{title:'\u9690\u85CF\u6D4B\u8BD5\u96C6\u53EF\u4EE5\u9632\u6B62\u5B66\u751F\u901A\u8FC7"print"\u7B49\u624B\u6BB5\u76F4\u63A5\u901A\u5173'},z.createElement("span",{style:{marginLeft:"8px"}},"\u9690\u85CF"),z.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),z.createElement("div",{style:{width:Re?"25%":"15%"}},"\u7528\u4F8B"),z.createElement("div",{style:{width:Je?Re?"20%":"15%":"25%",padding:"0 12px"}},"\u8F93\u5165"),z.createElement("div",{style:{width:Je?Re?"20%":"15%":"25%",padding:"0 12px"}},"\u8F93\u51FA"),Je&&z.createElement("div",{style:{width:"20%"}},"\u5F97\u5206\u6BD4\u4F8B"),Ye&&z.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},z.createElement(ie.default,{checked:Qe,onChange:Oe=>{We(Oe.target.checked,"input_visible")}}),z.createElement(ce.Z,{title:"\u52FE\u9009\u540E\uFF0C\u8F93\u5165\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"},z.createElement("span",{style:{marginLeft:"8px"}},"\u8F93\u5165"),z.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),Ye&&z.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},z.createElement(ie.default,{checked:Ue,onChange:Oe=>{We(Oe.target.checked,"is_invisible")}}),z.createElement(ce.Z,{title:"\u52FE\u9009\u540E\uFF0C\u9884\u671F\u8F93\u51FA\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"},z.createElement("span",{style:{marginLeft:"8px"}},"\u9884\u671F\u8F93\u51FA"),z.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),Ye&&z.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},z.createElement(ie.default,{checked:ut,onChange:Oe=>{We(Oe.target.checked,"actual_output_visible")}}),z.createElement(ce.Z,{title:"\u52FE\u9009\u540E\uFF0C\u5B9E\u9645\u8F93\u51FA\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"},z.createElement("span",{style:{marginLeft:"8px"}},"\u5B9E\u9645\u8F93\u51FA"),z.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),Ye&&z.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},z.createElement(ie.default,{checked:ot,onChange:Oe=>{We(Oe.target.checked,"last_match_rule")}}),z.createElement(ce.Z,{title:"\u52FE\u9009\u540E\uFF0C\u5B9E\u9645\u8F93\u51FA\u4E0E\u9884\u671F\u8F93\u51FA\u6700\u540E\u4E00\u884C\u76F8\u540C\u5373\u53EF\u901A\u5173"},z.createElement("span",{style:{marginLeft:"8px"}},"\u7279\u6B8A\u5224\u5B9A"),z.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),z.createElement("div",{className:ae.operation,style:Re?{flex:1,textAlign:"right"}:{width:"10%"}},"\u64CD\u4F5C")),z.createElement("div",{className:ae.listWrapper,style:{boxShadow:Re?"0px 2px 4px 0px #EAEEF4":"unset"}},Me.map((Oe,Te)=>{var xe,Ie,Ke,rt;return z.createElement("div",{key:Te,className:ae.list,style:Re?{marginBottom:"0px",height:"66px",borderBottom:"1px solid #F6F7F8"}:{}},Ye&&z.createElement("div",{style:{width:"15%"}},z.createElement(ie.default,{checked:!!Oe.hidden,onChange:ke=>{Ve(ke.target.checked,Te,"hidden")}})),z.createElement("div",{style:{width:Re?"25%":"15%",paddingLeft:Re?"5px":"0px",paddingRight:Re?"5px":"0px"}},"\u6D4B\u8BD5\u7528\u4F8B",Te+1),z.createElement("div",{className:ae.info,style:{width:Je?Re?"20%":"15%":"25%"}},z.createElement("span",{title:Oe.input||((xe=Oe[0])==null?void 0:xe.name),onClick:()=>we(void 0,null,function*(){let ke;Oe.input?Oe.input_file_url?ke=Oe.input_file_url:ke=Oe.in_file:ke=Oe[0];let tt;typeof ke=="string"?(tt=yield fetch(ke,{method:"Get",headers:{"Content-Type":"application/octet-stream",Accept:"*/*"}}),Ne({value:yield tt.text(),filename:"",dataUrl:ke})):(tt=yield(0,x.db)(ke.file),Ne({value:tt.text,filename:ke.name,dataUrl:tt.link}))})},Oe.input||((Ie=Oe[0])==null?void 0:Ie.name))),z.createElement("div",{className:ae.info,style:{width:Je?Re?"20%":"15%":"25%"}},z.createElement("span",{title:Oe.output||((Ke=Oe[1])==null?void 0:Ke.name),onClick:()=>we(void 0,null,function*(){let ke;Oe.input?Oe.output_file_url?ke=Oe.output_file_url:ke=Oe.out_file:ke=Oe[1];let tt;typeof ke=="string"?(tt=yield fetch(ke,{method:"Get",headers:{"Content-Type":"application/octet-stream",Accept:"*/*"}}),Ne({value:yield tt.text(),filename:"",dataUrl:ke})):(tt=yield(0,x.db)(ke.file),Ne({value:tt.text,filename:ke.name,dataUrl:tt.link}))})},Oe.output||((rt=Oe[1])==null?void 0:rt.name))),Je&&z.createElement("div",{style:{width:"20%"}},z.createElement(ue.default,{size:"large",addonAfter:Re?"%":null,disabled:qe,style:{width:"80%"},onChange:ke=>Xe(ke,Te),value:Oe.score}),!Re&&z.createElement("span",null,"\xA0%")),Ye&&z.createElement("div",{style:{width:"20%"}},z.createElement(ie.default,{checked:Oe.input_visible||!1,onChange:ke=>{Ve(ke.target.checked,Te,"input_visible")},className:"font14"},"\u5BF9\u5B66\u5458\u4E0D\u53EF\u89C1")),Ye&&z.createElement("div",{style:{width:"20%"}},z.createElement(ie.default,{checked:Oe.is_invisible||!1,onChange:ke=>{Ve(ke.target.checked,Te,"is_invisible")},className:"font14"},"\u5BF9\u5B66\u5458\u4E0D\u53EF\u89C1")),Ye&&z.createElement("div",{style:{width:"20%"}},z.createElement(ie.default,{checked:Oe.actual_output_visible||!1,onChange:ke=>{Ve(ke.target.checked,Te,"actual_output_visible")},className:"font14"},"\u5BF9\u5B66\u5458\u4E0D\u53EF\u89C1")),Ye&&z.createElement("div",{style:{width:"20%"}},z.createElement(ie.default,{checked:Oe.last_match_rule||!1,onChange:ke=>{Ve(ke.target.checked,Te,"last_match_rule")},className:"font14"},"\u672B\u5C3E\u5339\u914D")),z.createElement("div",{onClick:()=>Be(Oe,Te),style:Re?{flex:1,textAlign:"right",paddingLeft:"5px",paddingRight:"5px"}:{width:"10%",textAlign:"center"}},z.createElement("span",{className:ae.del},"\u5220\u9664")))})),z.createElement(b.Z,{close:!0,data:Le.dataUrl,filename:Le.filename,type:Le.dataUrl.length?"txt":"",onClose:()=>Ne(ye({},$e)),monacoEditor:{value:Le.value,language:"txt",onChange:()=>{},options:{fontSize:14,readOnly:!0,minimap:{enabled:!1}}}})):z.createElement(z.Fragment,null)};var je=Ae},83554:function(Et,dt,ve){"use strict";ve.d(dt,{Z:function(){return re}});var be=ve(59301),_e=ve(8591),E=ve(6848),pe=ve(71418),de=ve(95237),se=ve(43604),ne=ve(58421),ie=ve(3113),ce=ve(96565),ue=ve(38147),ae=ve(6339),oe=(a,y,x)=>new Promise((b,z)=>{var te=ge=>{try{fe(x.next(ge))}catch(me){z(me)}},le=ge=>{try{fe(x.throw(ge))}catch(me){z(me)}},fe=ge=>ge.done?b(ge.value):Promise.resolve(ge.value).then(te,le);fe((x=x.apply(a,y)).next())}),re=({id:a,activeDiscussIndex:y,onReplyDiscuss:x,adminOrOperator:b})=>{const[z,te]=(0,be.useState)(""),[le,fe]=(0,be.useState)(!1);function ge(he){te(he)}function me(){if(!z){_e.ZP.info("\u56DE\u590D\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A!");return}x(a,z),te("")}return(0,be.useEffect)(()=>{y!=a&&fe(!1)},[y]),be.createElement("div",{key:a,className:"discuss-item-editor",style:{display:y===a?"block":"none",width:"100%"}},be.createElement(ce.Z,{miniToolbar:!0,startInit:y===a,defaultValue:z,id:a,noStorage:!0,watch:!1,height:155,placeholder:"\u6211\u8981\u56DE\u590D",showResizeBar:!0,onChange:ge,extraUse:b&&be.createElement(E.Z,{color:"#fff",open:le,destroyTooltipOnHide:!0,title:ee({id:a,isOpen:le,activeDiscussIndex:y,onChange:ge,setIsOpen:fe}),overlayStyle:{maxWidth:600}},be.createElement("a",{title:le?"\u5173\u95ED\u63A8\u8350":"\u6253\u5F00\u63A8\u8350",onClick:()=>fe(!le)},be.createElement("i",{className:"iconfont icon-dianzan11"})))}),be.createElement("a",{onClick:me,className:"btn-send"},"\u53D1\u9001"))};const ee=a=>{const[y,x]=(0,be.useState)(!1),[b,z]=(0,be.useState)([]),[te,le]=(0,be.useState)(1);(0,be.useEffect)(()=>{a!=null&&a.isOpen?fe():(le(1),z([]))},[a==null?void 0:a.isOpen]);const fe=()=>oe(void 0,null,function*(){x(!0);const ge=yield(0,ue.ZP)(`/api/discusses/${a==null?void 0:a.id}/recommend_answer.json`,{method:"get"});(ge==null?void 0:ge.status)==0&&z(ge==null?void 0:ge.answer),x(!1)});return be.createElement(pe.Z,{spinning:y},be.createElement("div",{style:{color:"#000"}},be.createElement(ae.Z,{className:"font14",style:{maxHeight:500,overflow:"auto"},value:(b==null?void 0:b[te-1])||""}),be.createElement(de.Z,{justify:"end",align:"middle"},be.createElement(se.Z,null,be.createElement(ne.Z,{simple:!0,current:te,pageSize:1,total:(b==null?void 0:b.length)||0,onChange:ge=>{le(ge)}})),be.createElement(se.Z,null,be.createElement(ie.ZP,{onClick:()=>oe(void 0,null,function*(){a==null||a.onChange(b==null?void 0:b[te-1]),a==null||a.setIsOpen(!1)})},"\u586B\u5165\u6587\u672C\u6846")))))}},65808:function(Et,dt,ve){"use strict";ve.d(dt,{CP:function(){return E},_V:function(){return se}});var be=ve(28209),_e=ve.n(be);const E={secret:be.enc.Utf8.parse("0a18e199b87f1a8d"),iv:be.enc.Utf8.parse("6e7b11a2d8475a3c"),recordScreen1:"8Cl7udD6KTt8HPYOZOopZQ==",recordScreen2:"2OizCBkuJOsBhw8rNenXhYCv3XTIsgM5YB4rOmXz7tSksBaXYYyAirzxs7TSR1vRsyWPVAt4owje5yiTfFsxAA==",recordScreen3:"neJjLaAaeW/dFCOx/cRGopZHNvjZTB0x8p9/TcYCsAGn0mWINwybT7VQlqzmJ55DjVgOrmi/iclg/G6uBGjm/Q==",recordScreen4:"SGYXWA9MzSO+02aOU0lf0g==",recordScreen5:"oCICX8dGCYMnb+4d1CTCTQ==",recordScreen6:"5MlFeP+Uwb/T5ADmGmB6NpaUgOJy3MlJ4WpA38wds8U=",recordScreen7:"TEQF1ezPIxvVVMQNJ08HIiHpj1mXdcVt5qmr6+ALw8Y=",recordScreen8:"9a9QOkgLXlgDq14d3ZEWzA==",recordScreen9:"O0prHhH+rDoUVnpw8acqwRQvRL7fh32v1bLyv4qv71U=",recordScreen10:"nfkbhFR34HkBQLpjlbNkk3FgEdBomIsnFLVgHA1RZVBeN/H3vWJpt0re6w4cjtaKmIkNgpJhxaFgyEkcJ7Z99GCAgC0CgxaaXNQNiDmz2MygiesZVZ9laQvHFQhZehEEaFKUozvNVQMkRw0MV0eoPg==",recordScreen11:"jarJWElZmu7HFZnjOTPwNx44FImKQVf8Bx2Jrm74G44=",recordScreen12:"e7Q/zr1KcI3oVpnQ3JeDgA==",recordScreen13:"pm38jjAC3l2p/JR8E3kDWg==",recordScreen14:"/mTQurqh9htD7+PNrTooMJgdPOE914grpIKomFnikk8=",recordScreen15:"bEPsKA+wwGyQEDShAMuQmQ==",recordScreen16:"uitMDSXWhi/tOOfbtHNmyNh8e9PCLJ0naA02kzBCOD/mdg+1g9ScswIEDpdHuE1l",recordScreen17:"4+bY5u3lx+VxRA/PjP/r3Tl9C0SmKM8CRtCpmkAJq+M=",recordScreen18:"L3Tz5XdvbIAqzHw/XxJnmrx8R+v3cPrYaho0/yDug6M=",recordScreen19:"bo+SiWR7f4uhJXP1wk3oQxBEFmQdbpZPV1in12O3jaj14CuNU2kP2g2MKMTFmRqE12Di4jS3RKzRI14yWpi6Zw==",recordScreen20:"9zp6SENXwO+8GNr4+g+xIzt6s/Gf38ukabRJjhQhQoY=",recordScreen21:"9zp6SENXwO+8GNr4+g+xIy36f4lSwnfFtW0weuO6Gj8=",recordScreen22:"JrbzlyV7pBS7Yw/W1geouw==",recordScreen23:"HBRPVLqnAH9kbzQ7clr8JsTgjT3nCOaP6D+q1lrMX0T6z7vU1Nh5XljgB+Qw/Hs8",recordScreen24:"bq3vruZCtCaGLs7egAWDrgXjmyW8iQX5L+nEwqCeguM=",recordScreen25:"CjveXk9FHEWiBbhwyVRzPQ==",recordScreen26:"FxZnr4aTDDJTcRMUEb3SfA==",answer1:"YXOzThjf+mcj1OALSFqA8A==",answer2:"iyOS4uLz85NAsAWdMjWs6A==",answer3:"cnZErv6FfE02OBkLzlWAeDAW3+ysEYfgoPhcC707e9kJN3PHMP7E05NC7nRf5ESWhemykQ0Y+JYQAd1PGsIJVIZFsA7OlceUwyOfid7oTeg=",answer4:"xXjNeCMbPG5xznAfVbSmjvHn/2xVBArzvsRXJZVk7yY=",answer5:"8Cl7udD6KTt8HPYOZOopZQ==",answer6:"r4qWdIzOZoUDAHIC6Rkiz3KJVZoKCNj9MmeR76VANv90Zyj57hrKtRcOipt3SZUPfZlt17GKyBf504lj5ROxVg==",answer7:"t1d0b8j3bdsJoH9adhzqOQ==",answer8:"0TBptfONacS/9JDvt/q9BO9S0+Jv0m1glMCiAQweO4E=",answer9:"2DA7p8Fws9TWo+O5djurjrORgQjZjMrKtuIbjfCoAI8ZpLy4+sq9PFZuua40lLxjTVb7vhKqm6exT5/R19YdjnUTh6Kyt+6Px8xr6JnEHVw=",answer10:"xcjM1HNI8s6ckETto63Gq83vw68ATty2i534hkfjKAa+izWStVVH5fvCEpQxd8rYYki3IW9Qy0NU8cLJsHQXWOsYtYD70yB44qG5j3fnlDahQUcsDWEBXzx2NlAp6x5R",answer11:"0/t7yKZD1CFg6kerAPJksqJATDsJMtkB06datFVfwac=",answer12:"SJ4yd9DEs9YHnGhybPplEg=="},pe={exam:E};function de(ne="",ie="exam"){const{secret:ce,iv:ue}=pe[ie];return AES.encrypt(ne,ce,{iv:ue,mode:CryptoJS.mode.CBC,padding:CryptoJS.pad.Pkcs7}).toString()}function se(ne="",ie="exam"){const{secret:ce,iv:ue}=pe[ie];return be.AES.decrypt(ne,ce,{iv:ue,mode:_e().mode.CBC,padding:_e().pad.Pkcs7}).toString(be.enc.Utf8)}},84056:function(Et,dt,ve){"use strict";ve.d(dt,{BU:function(){return _e},Dj:function(){return be},gH:function(){return E},vp:function(){return pe}});function be(de){try{de.mozRequestFullScreen?de.mozRequestFullScreen():de.webkitRequestFullScreen&&de.webkitRequestFullScreen()}catch(se){console.log(se,":e")}}function _e(){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 E=()=>{if(document.webkitExitFullscreen)return"webkitfullscreenchange";if(document.exitFullscreen)return"fullscreenchange";if(document.msExitFullscreen)return"msfullscreenchange";if(document.mozCancelFullScreen)return"mozfullscreenchange"};function pe(){var de=window.top.document.fullscreenElement||window.top.document.mozFullscreenElement||window.top.document.webkitFullscreenElement,se=document.fullscreenEnabled||document.mozFullscreenEnabled||document.webkitFullscreenEnabled;return console.log("fullscreenElement",de),window.isFullScreen?window.isFullScreen:de!=null}},61527:function(Et,dt,ve){"use strict";ve.d(dt,{U:function(){return ce}});var be=ve(59301),_e=Object.defineProperty,E=Object.getOwnPropertySymbols,pe=Object.prototype.hasOwnProperty,de=Object.prototype.propertyIsEnumerable,se=(ue,ae,oe)=>ae in ue?_e(ue,ae,{enumerable:!0,configurable:!0,writable:!0,value:oe}):ue[ae]=oe,ne=(ue,ae)=>{for(var oe in ae||(ae={}))pe.call(ae,oe)&&se(ue,oe,ae[oe]);if(E)for(var oe of E(ae))de.call(ae,oe)&&se(ue,oe,ae[oe]);return ue},ie=(ue,ae,oe)=>new Promise((re,ee)=>{var a=b=>{try{x(oe.next(b))}catch(z){ee(z)}},y=b=>{try{x(oe.throw(b))}catch(z){ee(z)}},x=b=>b.done?re(b.value):Promise.resolve(b.value).then(a,y);x((oe=oe.apply(ue,ae)).next())});function ce(ue,ae){const[oe,re]=(0,be.useState)(ae),[ee,a]=(0,be.useState)(!1),[y,x]=(0,be.useState)();return[oe,ee,(z,te=!1)=>ie(this,null,function*(){const le=te?ae:ne(ne({},oe),z);a(!0),re(le);const fe=yield ue(le);return a(!1),x(fe),fe}),y]}},72530:function(Et,dt,ve){"use strict";ve.d(dt,{_:function(){return E}});var be=ve(59301),_e=ve(43418);const E=pe=>{var de,se;const ne=(0,be.useRef)([]),ie=()=>{for(const ce of ne.current)clearTimeout(ce);ne.current=[]};return(0,be.useEffect)(()=>{var ce,ue,ae,oe,re,ee;if(ie(),(ce=pe==null?void 0:pe.exercise)!=null&&ce.left_time&&((ae=(ue=pe==null?void 0:pe.exercise)==null?void 0:ue.exercise_events)==null?void 0:ae.length)>0){for(const a of(oe=pe==null?void 0:pe.exercise)==null?void 0:oe.exercise_events)if(((re=pe==null?void 0:pe.exercise)==null?void 0:re.left_time)>(a==null?void 0:a.reminder_time)*60){let y=(((ee=pe==null?void 0:pe.exercise)==null?void 0:ee.left_time)-(a==null?void 0:a.reminder_time)*60)*1e3;y=y>2147483647?2147483647:y;const x=setTimeout(()=>{_e.default.info({content:`${a==null?void 0:a.reminder_content}`,icon:null,title:"\u63D0\u793A",centered:!0,okText:"\u77E5\u9053\u4E86"})},y);ne.current.push(x)}}},[(de=pe==null?void 0:pe.exercise)==null?void 0:de.left_time,(se=pe==null?void 0:pe.exercise)==null?void 0:se.exercise_events]),ie}},42926:function(Et,dt,ve){"use strict";ve.d(dt,{G:function(){return de},t:function(){return pe}});var be=ve(7062),_e=ve.n(be);const E=null;function pe(se,ne){let ie=_e().get("__ec");ie||(ie={}),ie[se]=ne,_e().set("__ec",ie)}function de(se,ne){let ie=_e().get("__ec");return ie?ie[se]===void 0?ne:ie[se]:ne}},47257:function(Et){(function(dt){(function(ve){if(1)Et.exports=ve();else var be})(function(){var ve,be,_e;return function(){function E(pe,de,se){function ne(ue,ae){if(!de[ue]){if(!pe[ue]){var oe=void 0;if(!ae&&oe)return require(ue,!0);if(ie)return ie(ue,!0);var re=new Error("Cannot find module '"+ue+"'");throw re.code="MODULE_NOT_FOUND",re}var ee=de[ue]={exports:{}};pe[ue][0].call(ee.exports,function(a){var y=pe[ue][1][a];return ne(y||a)},ee,ee.exports,E,pe,de,se)}return de[ue].exports}for(var ie=void 0,ce=0;ce `.concat(b,` `),z&&(fe+="".concat(z,` `)),fe+=` `,le.content=fe,le.mime="xml",le.successStatuses=[200],he.next=9,this.request(le);case 9:return ge=he.sent,he.abrupt("return",{res:ge.res});case 11:case"end":return he.stop()}},x,this)}));function y(x,b,z){return a.apply(this,arguments)}return y}(),oe.getBucketLogging=function(){var a=(0,ie.default)(ne.default.mark(function x(b,z){var te,le,fe;return ne.default.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:return te=this._bucketRequestParams("GET",b,"logging",z),te.successStatuses=[200],te.xmlResponse=!0,me.next=5,this.request(te);case 5:return le=me.sent,fe=le.data.LoggingEnabled,me.abrupt("return",{enable:!!fe,prefix:fe&&fe.TargetPrefix||null,res:le.res});case 8:case"end":return me.stop()}},x,this)}));function y(x,b){return a.apply(this,arguments)}return y}(),oe.deleteBucketLogging=function(){var a=(0,ie.default)(ne.default.mark(function x(b,z){var te,le;return ne.default.wrap(function(ge){for(;;)switch(ge.prev=ge.next){case 0:return te=this._bucketRequestParams("DELETE",b,"logging",z),te.successStatuses=[204,200],ge.next=4,this.request(te);case 4:return le=ge.sent,ge.abrupt("return",{res:le.res});case 6:case"end":return ge.stop()}},x,this)}));function y(x,b){return a.apply(this,arguments)}return y}(),oe.putBucketCORS=function(){var a=(0,ie.default)(ne.default.mark(function x(b,z,te){var le,fe,ge,me,he,Se,ye,Pe,we,De;return ne.default.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:for(z=z||[],ce(z.length,"rules is required"),z.forEach(function(Ce){ce(Ce.allowedOrigin,"allowedOrigin is required"),ce(Ce.allowedMethod,"allowedMethod is required")}),le=this._bucketRequestParams("PUT",b,"cors",te),fe=` `,ge=function(je){fe+="".concat(je,"")},me=function(je){fe+="".concat(je,"")},he=function(je){fe+="".concat(je,"")},Se=function(je){fe+="".concat(je,"")},ye=0,Pe=z.length;ye",ee(we.allowedOrigin).forEach(ge),ee(we.allowedMethod).forEach(me),ee(we.allowedHeader).forEach(he),ee(we.exposeHeader).forEach(Se),we.maxAgeSeconds&&(fe+="".concat(we.maxAgeSeconds,"")),fe+="";return fe+="",le.content=fe,le.mime="xml",le.successStatuses=[200],Ae.next=16,this.request(le);case 16:return De=Ae.sent,Ae.abrupt("return",{res:De.res});case 18:case"end":return Ae.stop()}},x,this)}));function y(x,b,z){return a.apply(this,arguments)}return y}(),oe.getBucketCORS=function(){var a=(0,ie.default)(ne.default.mark(function x(b,z){var te,le,fe,ge;return ne.default.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return te=this._bucketRequestParams("GET",b,"cors",z),te.successStatuses=[200],te.xmlResponse=!0,he.next=5,this.request(te);case 5:return le=he.sent,fe=[],le.data&&le.data.CORSRule&&(ge=le.data.CORSRule,re(ge)||(ge=[ge]),ge.forEach(function(Se){var ye={};Object.keys(Se).forEach(function(Pe){ye[Pe.slice(0,1).toLowerCase()+Pe.slice(1,Pe.length)]=Se[Pe]}),fe.push(ye)})),he.abrupt("return",{rules:fe,res:le.res});case 9:case"end":return he.stop()}},x,this)}));function y(x,b){return a.apply(this,arguments)}return y}(),oe.deleteBucketCORS=function(){var a=(0,ie.default)(ne.default.mark(function x(b,z){var te,le;return ne.default.wrap(function(ge){for(;;)switch(ge.prev=ge.next){case 0:return te=this._bucketRequestParams("DELETE",b,"cors",z),te.successStatuses=[204],ge.next=4,this.request(te);case 4:return le=ge.sent,ge.abrupt("return",{res:le.res});case 6:case"end":return ge.stop()}},x,this)}));function y(x,b){return a.apply(this,arguments)}return y}(),oe.putBucketReferer=function(){var a=(0,ie.default)(ne.default.mark(function x(b,z,te,le){var fe,ge,me,he;return ne.default.wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:if(fe=this._bucketRequestParams("PUT",b,"referer",le),ge=` `,ge+=" ".concat(z?"true":"false",` `),te&&te.length>0){for(ge+=` `,me=0;me".concat(te[me],` `);ge+=` `}else ge+=` `;return ge+="",fe.content=ge,fe.mime="xml",fe.successStatuses=[200],ye.next=10,this.request(fe);case 10:return he=ye.sent,ye.abrupt("return",{res:he.res});case 12:case"end":return ye.stop()}},x,this)}));function y(x,b,z,te){return a.apply(this,arguments)}return y}(),oe.getBucketReferer=function(){var a=(0,ie.default)(ne.default.mark(function x(b,z){var te,le,fe;return ne.default.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:return te=this._bucketRequestParams("GET",b,"referer",z),te.successStatuses=[200],te.xmlResponse=!0,me.next=5,this.request(te);case 5:return le=me.sent,fe=le.data.RefererList.Referer||null,fe&&(re(fe)||(fe=[fe])),me.abrupt("return",{allowEmpty:le.data.AllowEmptyReferer==="true",referers:fe,res:le.res});case 9:case"end":return me.stop()}},x,this)}));function y(x,b){return a.apply(this,arguments)}return y}(),oe.deleteBucketReferer=function(){var a=(0,ie.default)(ne.default.mark(function x(b,z){return ne.default.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:return le.next=2,this.putBucketReferer(b,!0,null,z);case 2:return le.abrupt("return",le.sent);case 3:case"end":return le.stop()}},x,this)}));function y(x,b){return a.apply(this,arguments)}return y}(),oe._bucketRequestParams=function(y,x,b,z){return{method:y,bucket:x,subres:b,timeout:z&&z.timeout,ctx:z&&z.ctx}}},{"../common/utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,assert:82,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],3:[function(E,pe,de){(function(se,ne){(function(){"use strict";var ie=E("@babel/runtime/helpers/interopRequireDefault"),ce=ie(E("@babel/runtime/regenerator")),ue=ie(E("@babel/runtime/helpers/asyncToGenerator"));E("core-js/modules/es.function.name.js"),E("core-js/modules/es.regexp.exec.js"),E("core-js/modules/es.string.split.js"),E("core-js/modules/es.object.assign.js"),E("core-js/modules/es.array.includes.js"),E("core-js/modules/es.string.replace.js"),E("core-js/modules/es.array.concat.js"),E("core-js/modules/es.symbol.js"),E("core-js/modules/es.symbol.description.js"),E("core-js/modules/es.array.slice.js"),E("core-js/modules/es.object.to-string.js"),E("core-js/modules/es.promise.js"),E("core-js/modules/es.regexp.to-string.js");var ae=E("debug")("ali-oss"),oe=E("xml2js"),re=E("agentkeepalive"),ee=E("merge-descriptors"),a=E("platform"),y=E("utility"),x=E("urllib"),b=E("./version"),z=E("bowser"),te=E("../common/signUtils"),le=E("../common/client/initOptions"),fe=E("../common/utils/createRequest"),ge=fe.createRequest,me=E("../common/utils/encoder"),he=me.encoder,Se=E("../common/client/getReqUrl"),ye=Se.getReqUrl,Pe=E("../common/utils/setSTSToken"),we=Pe.setSTSToken,De=E("../common/utils/retry"),Ee=De.retry,Ae=E("../common/utils/isFunction"),Ce=Ae.isFunction,je=new re;function Me(){var Ve=a.name,We=a.version;Ve&&Ve.toLowerCase&&Ve.toLowerCase()==="ie"&&We.split(".")[0]<10&&console.warn("ali-oss does not support the current browser")}function Ge(){return location&&location.protocol==="https:"}function Fe(Ve,We){if(Me(),!(this instanceof Fe))return new Fe(Ve,We);Ve&&Ve.inited?this.options=Ve:this.options=Fe.initOptions(Ve),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=x,this.agent=this.options.agent||je),this.ctx=We,this.userAgent=this._getUserAgent(),this.stsTokenFreshTime=new Date,this.options.amendTimeSkewed=0}pe.exports=Fe,Fe.initOptions=function(We){We.stsToken||console.warn("Please use STS Token for safety, see more details at https://help.aliyun.com/document_detail/32077.html");var ze=Object.assign({secure:Ge(),useFetch:!1},We);return le(ze)};var Je=Fe.prototype;Je.debug=ae,ee(Je,E("./object")),ee(Je,E("./bucket")),ee(Je,E("../common/bucket/getBucketWebsite")),ee(Je,E("../common/bucket/putBucketWebsite")),ee(Je,E("../common/bucket/deleteBucketWebsite")),ee(Je,E("../common/bucket/getBucketLifecycle")),ee(Je,E("../common/bucket/putBucketLifecycle")),ee(Je,E("../common/bucket/deleteBucketLifecycle")),ee(Je,E("../common/bucket/putBucketVersioning")),ee(Je,E("../common/bucket/getBucketVersioning")),ee(Je,E("../common/bucket/getBucketInventory")),ee(Je,E("../common/bucket/deleteBucketInventory")),ee(Je,E("../common/bucket/listBucketInventory")),ee(Je,E("../common/bucket/putBucketInventory")),ee(Je,E("../common/bucket/abortBucketWorm")),ee(Je,E("../common/bucket/completeBucketWorm")),ee(Je,E("../common/bucket/extendBucketWorm")),ee(Je,E("../common/bucket/getBucketWorm")),ee(Je,E("../common/bucket/initiateBucketWorm")),ee(Je,E("./managed-upload")),ee(Je,E("../common/multipart-copy")),ee(Je,E("../common/multipart")),ee(Je,E("../common/parallel")),Je.signature=function(We){return this.debug("authorization stringToSign: %s",We,"info"),te.computeSignature(this.options.accessKeySecret,We,this.options.headerEncoding)},Je._getReqUrl=ye,Je.authorization=function(We,ze,Ue,ot){var Qe=te.buildCanonicalString(We.toUpperCase(),ze,{headers:ot,parameters:Ue});return te.authorization(this.options.accessKeyId,this.options.accessKeySecret,Qe,this.options.headerEncoding)},Je.request=function(){var Ve=(0,ue.default)(ce.default.mark(function We(ze){var Ue=this;return ce.default.wrap(function(Qe){for(;;)switch(Qe.prev=Qe.next){case 0:if(!this.options.retryMax){Qe.next=6;break}return Qe.next=3,Ee(qe.bind(this),this.options.retryMax,{errorHandler:function(Ye){var He=function($e){if(ze.stream)return!1;var Le=[-1,-2].includes($e.status),Ne=Ue.options.requestErrorRetryHandle||function(){return!0};return Le&&Ne($e)};return!!He(Ye)}})(ze);case 3:return Qe.abrupt("return",Qe.sent);case 6:return Qe.abrupt("return",qe.call(this,ze));case 7:case"end":return Qe.stop()}},We,this)}));return function(We){return Ve.apply(this,arguments)}}();function qe(Ve){return Xe.apply(this,arguments)}function Xe(){return Xe=(0,ue.default)(ce.default.mark(function Ve(We){var ze,Ue,ot,Qe,ut,Ye;return ce.default.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:if(!(this.options.stsToken&&Ce(this.options.refreshSTSToken))){Re.next=3;break}return Re.next=3,we.call(this);case 3:return ze=ge.call(this,We),this.options.useFetch||(ze.params.mode="disable-fetch"),Qe=!!We.stream,Re.prev=6,Re.next=9,this.urllib.request(ze.url,ze.params);case 9:Ue=Re.sent,this.debug("response %s %s, got %s, headers: %j",We.method,ze.url,Ue.status,Ue.headers,"info"),Re.next=16;break;case 13:Re.prev=13,Re.t0=Re.catch(6),ot=Re.t0;case 16:if(!(Ue&&We.successStatuses&&We.successStatuses.indexOf(Ue.status)===-1)){Re.next=28;break}return Re.next=19,this.requestError(Ue);case 19:if(ut=Re.sent,!(ut.code==="RequestTimeTooSkewed"&&!Qe)){Re.next=25;break}return this.options.amendTimeSkewed=+new Date(ut.serverTime)-new Date,Re.next=24,this.request(We);case 24:return Re.abrupt("return",Re.sent);case 25:ut.params=We,Re.next=32;break;case 28:if(!ot){Re.next=32;break}return Re.next=31,this.requestError(ot);case 31:ut=Re.sent;case 32:if(!ut){Re.next=34;break}throw ut;case 34:if(!We.xmlResponse){Re.next=39;break}return Re.next=37,this.parseXML(Ue.data);case 37:Ye=Re.sent,Ue.data=Ye;case 39:return Re.abrupt("return",Ue);case 40:case"end":return Re.stop()}},Ve,this,[[6,13]])})),Xe.apply(this,arguments)}Je._getResource=function(We){var ze="/";return We.bucket&&(ze+="".concat(We.bucket,"/")),We.object&&(ze+=he(We.object,this.options.headerEncoding)),ze},Je._escape=function(We){return y.encodeURIComponent(We).replace(/%2F/g,"/")},Je._getUserAgent=function(){var We=ne&&ne.browser?"js":"nodejs",ze="aliyun-sdk-".concat(We,"/").concat(b.version),Ue=a.description;return!Ue&&ne&&(Ue="Node.js ".concat(ne.version.slice(1)," on ").concat(ne.platform," ").concat(ne.arch)),this._checkUserAgent("".concat(ze," ").concat(Ue))},Je._checkUserAgent=function(We){var ze=We.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta");return ze},Je.checkBrowserAndVersion=function(We,ze){return z.name===We&&z.version.split(".")[0]===ze},Je.parseXML=function(We){return new Promise(function(ze,Ue){se.isBuffer(We)&&(We=We.toString()),oe.parseString(We,{explicitRoot:!1,explicitArray:!1},function(ot,Qe){ot?Ue(ot):ze(Qe)})})},Je.requestError=function(){var Ve=(0,ue.default)(ce.default.mark(function ze(Ue){var ot,Qe,ut,Ye;return ce.default.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:if(ot=null,!(!Ue.data||!Ue.data.length)){Re.next=5;break}Ue.status===-1||Ue.status===-2?(ot=new Error(Ue.message),ot.name=Ue.name,ot.status=Ue.status,ot.code=Ue.name):(Ue.status===404?(ot=new Error("Object not exists"),ot.name="NoSuchKeyError",ot.status=404,ot.code="NoSuchKey"):Ue.status===412?(ot=new Error("Pre condition failed"),ot.name="PreconditionFailedError",ot.status=412,ot.code="PreconditionFailed"):(ot=new Error("Unknow error, status: ".concat(Ue.status)),ot.name="UnknownError",ot.status=Ue.status),ot.requestId=Ue.headers["x-oss-request-id"],ot.host=""),Re.next=32;break;case 5:return Qe=String(Ue.data),this.debug("request response error data: %s",Qe,"error"),Re.prev=7,Re.next=10,this.parseXML(Qe);case 10:if(Re.t0=Re.sent,Re.t0){Re.next=13;break}Re.t0={};case 13:ut=Re.t0,Re.next=23;break;case 16:return Re.prev=16,Re.t1=Re.catch(7),this.debug(Qe,"error"),Re.t1.message+=` raw xml: `.concat(Qe),Re.t1.status=Ue.status,Re.t1.requestId=Ue.headers["x-oss-request-id"],Re.abrupt("return",Re.t1);case 23:Ye=ut.Message||"unknow request error, status: ".concat(Ue.status),ut.Condition&&(Ye+=" (condition: ".concat(ut.Condition,")")),ot=new Error(Ye),ot.name=ut.Code?"".concat(ut.Code,"Error"):"UnknownError",ot.status=Ue.status,ot.code=ut.Code,ot.requestId=ut.RequestId,ot.hostId=ut.HostId,ot.serverTime=ut.ServerTime;case 32:return this.debug("generate error %j",ot,"error"),Re.abrupt("return",ot);case 34:case"end":return Re.stop()}},ze,this,[[7,16]])}));function We(ze){return Ve.apply(this,arguments)}return We}()}).call(this)}).call(this,{isBuffer:E("../../node_modules/is-buffer/index.js")},E("_process"))},{"../../node_modules/is-buffer/index.js":366,"../common/bucket/abortBucketWorm":7,"../common/bucket/completeBucketWorm":8,"../common/bucket/deleteBucketInventory":9,"../common/bucket/deleteBucketLifecycle":10,"../common/bucket/deleteBucketWebsite":11,"../common/bucket/extendBucketWorm":12,"../common/bucket/getBucketInventory":13,"../common/bucket/getBucketLifecycle":14,"../common/bucket/getBucketVersioning":15,"../common/bucket/getBucketWebsite":16,"../common/bucket/getBucketWorm":17,"../common/bucket/initiateBucketWorm":18,"../common/bucket/listBucketInventory":19,"../common/bucket/putBucketInventory":20,"../common/bucket/putBucketLifecycle":21,"../common/bucket/putBucketVersioning":22,"../common/bucket/putBucketWebsite":23,"../common/client/getReqUrl":25,"../common/client/initOptions":26,"../common/multipart":30,"../common/multipart-copy":29,"../common/parallel":49,"../common/signUtils":50,"../common/utils/createRequest":56,"../common/utils/encoder":59,"../common/utils/isFunction":68,"../common/utils/retry":74,"../common/utils/setSTSToken":76,"./bucket":2,"./managed-upload":4,"./object":5,"./version":6,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,_process:467,agentkeepalive:81,bowser:88,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.replace.js":305,"core-js/modules/es.string.split.js":307,"core-js/modules/es.symbol.description.js":310,"core-js/modules/es.symbol.js":313,debug:465,"merge-descriptors":372,platform:379,urllib:475,utility:474,xml2js:426}],4:[function(E,pe,de){(function(se){(function(){"use strict";var ne=E("@babel/runtime/helpers/interopRequireDefault"),ie=ne(E("@babel/runtime/regenerator"));E("core-js/modules/es.function.name.js"),E("core-js/modules/es.object.to-string.js"),E("core-js/modules/es.promise.js"),E("core-js/modules/es.array.from.js"),E("core-js/modules/es.string.iterator.js"),E("core-js/modules/es.array.map.js"),E("core-js/modules/es.array.filter.js"),E("core-js/modules/es.array.find.js"),E("core-js/modules/es.array.concat.js"),E("core-js/modules/es.regexp.to-string.js"),E("core-js/modules/es.array.slice.js"),E("core-js/modules/es.array.iterator.js"),E("core-js/modules/es.array-buffer.slice.js"),E("core-js/modules/es.typed-array.uint8-array.js"),E("core-js/modules/es.typed-array.copy-within.js"),E("core-js/modules/es.typed-array.every.js"),E("core-js/modules/es.typed-array.fill.js"),E("core-js/modules/es.typed-array.filter.js"),E("core-js/modules/es.typed-array.find.js"),E("core-js/modules/es.typed-array.find-index.js"),E("core-js/modules/es.typed-array.for-each.js"),E("core-js/modules/es.typed-array.includes.js"),E("core-js/modules/es.typed-array.index-of.js"),E("core-js/modules/es.typed-array.iterator.js"),E("core-js/modules/es.typed-array.join.js"),E("core-js/modules/es.typed-array.last-index-of.js"),E("core-js/modules/es.typed-array.map.js"),E("core-js/modules/es.typed-array.reduce.js"),E("core-js/modules/es.typed-array.reduce-right.js"),E("core-js/modules/es.typed-array.reverse.js"),E("core-js/modules/es.typed-array.set.js"),E("core-js/modules/es.typed-array.slice.js"),E("core-js/modules/es.typed-array.some.js"),E("core-js/modules/es.typed-array.sort.js"),E("core-js/modules/es.typed-array.subarray.js"),E("core-js/modules/es.typed-array.to-locale-string.js"),E("core-js/modules/es.typed-array.to-string.js");var ce=ne(E("@babel/runtime/helpers/asyncToGenerator")),ue=E("util"),ae=E("path"),oe=E("mime"),re=E("copy-to"),ee=E("../common/utils/isBlob"),a=ee.isBlob,y=E("../common/utils/isFile"),x=y.isFile,b=E("../common/utils/isBuffer"),z=b.isBuffer,te=de;te.multipartUpload=function(){var he=(0,ce.default)(ie.default.mark(function ye(Pe,we){var De,Ee,Ae,Ce,je,Me,Ge,Fe,Je,qe=arguments;return ie.default.wrap(function(Ve){for(;;)switch(Ve.prev=Ve.next){case 0:if(De=qe.length>2&&qe[2]!==void 0?qe[2]:{},this.resetCancelFlag(),De.disabledMD5=De.disabledMD5===void 0?!0:!!De.disabledMD5,!(De.checkpoint&&De.checkpoint.uploadId)){Ve.next=8;break}return we&&x(we)&&(De.checkpoint.file=we),Ve.next=7,this._resumeMultipart(De.checkpoint,De);case 7:return Ve.abrupt("return",Ve.sent);case 8:return Ee=102400,De.mime||(x(we)?De.mime=oe.getType(ae.extname(we.name)):a(we)?De.mime=we.type:z(we)?De.mime="":De.mime=oe.getType(ae.extname(we))),De.headers=De.headers||{},this._convertMetaToHeaders(De.meta,De.headers),Ve.next=14,this._getFileSize(we);case 14:if(Ae=Ve.sent,!(Ae0&&re(Me).to(Fe),Je=this._divideParts(Ae,Ce),qe=Je.length,Xe=!1,Ve=function(Le,Ne){return new Promise(function(){var et=(0,ce.default)(ie.default.mark(function Ze(Be,Oe){var Te,xe,Ie,Ke,rt;return ie.default.wrap(function(tt){for(;;)switch(tt.prev=tt.next){case 0:if(tt.prev=0,Le.isCancel()){tt.next=29;break}return Te=Je[Ne-1],tt.next=5,Le._createBuffer(Ee,Te.start,Te.end);case 5:return xe=tt.sent,Ie={content:xe,size:Te.end-Te.start},tt.prev=7,tt.next=10,Le._uploadPart(Ge,je,Ne,Ie,we);case 10:Ke=tt.sent,tt.next=18;break;case 13:if(tt.prev=13,tt.t0=tt.catch(7),tt.t0.status!==404){tt.next=17;break}throw Le._makeAbortEvent();case 17:throw tt.t0;case 18:if(!(!Le.isCancel()&&!Xe)){tt.next=26;break}if(Pe.doneParts.push({number:Ne,etag:Ke.res.headers.etag}),!we.progress){tt.next=23;break}return tt.next=23,we.progress(Me.length/(qe+1),Pe,Ke.res);case 23:Be({number:Ne,etag:Ke.res.headers.etag}),tt.next=27;break;case 26:Be();case 27:tt.next=30;break;case 29:Be();case 30:tt.next=41;break;case 32:tt.prev=32,tt.t1=tt.catch(0),rt=new Error,rt.name=tt.t1.name,rt.message=tt.t1.message,rt.stack=tt.t1.stack,rt.partNum=Ne,re(tt.t1).to(rt),Oe(rt);case 41:case"end":return tt.stop()}},Ze,null,[[0,32],[7,13]])}));return function(Ze,Be){return et.apply(this,arguments)}}())},We=Array.from(new Array(qe),function($e,Le){return Le+1}),ze=Fe.map(function($e){return $e.number}),Ue=We.filter(function($e){return ze.indexOf($e)<0}),ot=5,Qe=we.parallel||ot,Re.next=17,this._parallel(Ue,Qe,function($e){return new Promise(function(Le,Ne){Ve(De,$e).then(function(et){et&&Fe.push(et),Le()}).catch(function(et){Ne(et)})})});case 17:if(ut=Re.sent,Xe=!0,Ye=ut.find(function($e){return $e.name==="abort"}),!Ye){Re.next=22;break}throw Ye;case 22:if(!this.isCancel()){Re.next=25;break}throw Ve=null,this._makeCancelEvent();case 25:if(!(ut&&ut.length>0)){Re.next=28;break}throw ut[0].message="Failed to upload some parts with error: ".concat(ut[0].toString()," part_num: ").concat(ut[0].partNum),ut[0];case 28:return Re.next=30,this.completeMultipartUpload(Ge,je,Fe,we);case 30:return Re.abrupt("return",Re.sent);case 31:case"end":return Re.stop()}},ye,this)}));function Se(ye,Pe){return he.apply(this,arguments)}return Se}(),te._getFileSize=function(){var he=(0,ce.default)(ie.default.mark(function ye(Pe){return ie.default.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:if(!z(Pe)){De.next=4;break}return De.abrupt("return",Pe.length);case 4:if(!(a(Pe)||x(Pe))){De.next=6;break}return De.abrupt("return",Pe.size);case 6:throw new Error("_getFileSize requires Buffer/File/Blob.");case 7:case"end":return De.stop()}},ye)}));function Se(ye){return he.apply(this,arguments)}return Se}();var le=E("stream"),fe=le.Readable;function ge(he,Se){if(!(this instanceof ge))return new ge(he,Se);fe.call(this,Se),this.file=he,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}ue.inherits(ge,fe),ge.prototype.readFileAndPush=function(Se){if(this.fileBuffer)for(var ye=!0;ye&&this.fileBuffer&&this.startthis.fileBuffer.length?this.fileBuffer.length:we,this.start=we,ye=this.push(this.fileBuffer.slice(Pe,we))}},ge.prototype._read=function(Se){if(this.file&&this.start>=this.file.size||this.fileBuffer&&this.start>=this.fileBuffer.length||this.finish||this.start===0&&!this.file){this.finish||(this.fileBuffer=null,this.finish=!0),this.push(null);return}var ye=16*1024;Se=Se||ye;var Pe=this;this.reader.onload=function(De){Pe.fileBuffer=se.from(new Uint8Array(De.target.result)),Pe.file=null,Pe.readFileAndPush(Se)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(Se)};function me(he){return he.arrayBuffer?he.arrayBuffer():new Promise(function(Se,ye){var Pe=new FileReader;Pe.onload=function(we){Se(we.target.result)},Pe.onerror=function(we){ye(we)},Pe.readAsArrayBuffer(he)})}te._createBuffer=function(){var he=(0,ce.default)(ie.default.mark(function ye(Pe,we,De){var Ee,Ae;return ie.default.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:if(!(a(Pe)||x(Pe))){je.next=8;break}return Ee=Pe.slice(we,De),je.next=4,me(Ee);case 4:return Ae=je.sent,je.abrupt("return",se.from(Ae));case 8:if(!z(Pe)){je.next=12;break}return je.abrupt("return",Pe.subarray(we,De));case 12:throw new Error("_createBuffer requires File/Blob/Buffer.");case 13:case"end":return je.stop()}},ye)}));function Se(ye,Pe,we){return he.apply(this,arguments)}return Se}(),te._getPartSize=function(Se,ye){var Pe=1e4,we=1*1024*1024;ye||(ye=we);var De=Math.ceil(Se/Pe);return ye1&&Me[1]!==void 0?Me[1]:{},we=ye["continuation-token"]||ye.continuationToken,we&&(Pe.subres=Object.assign({"continuation-token":we},Pe.subres)),De=this._objectRequestParams("GET","",Pe),De.query=Object.assign({"list-type":2},ye),delete De.query["continuation-token"],delete De.query.continuationToken,De.xmlResponse=!0,De.successStatuses=[200],Fe.next=11,this.request(De);case 11:return Ee=Fe.sent,Ae=Ee.data.Contents||[],Ce=this,Ae&&(Array.isArray(Ae)||(Ae=[Ae]),Ae=Ae.map(function(Je){var qe=null;return Je.Owner&&(qe={id:Je.Owner.ID,displayName:Je.Owner.DisplayName}),{name:Je.Key,url:Ce._objectUrl(Je.Key),lastModified:Je.LastModified,etag:Je.ETag,type:Je.Type,size:Number(Je.Size),storageClass:Je.StorageClass,owner:qe}})),je=Ee.data.CommonPrefixes||null,je&&(Array.isArray(je)||(je=[je]),je=je.map(function(Je){return Je.Prefix})),Fe.abrupt("return",{res:Ee.res,objects:Ae,prefixes:je,isTruncated:Ee.data.IsTruncated==="true",keyCount:+Ee.data.KeyCount,continuationToken:Ee.data.ContinuationToken||null,nextContinuationToken:Ee.data.NextContinuationToken||null});case 18:case"end":return Fe.stop()}},Se,this)}));function he(Se){return me.apply(this,arguments)}return he}(),ge.restore=function(){var me=(0,ie.default)(ne.default.mark(function Se(ye){var Pe,we,De,Ee,Ae=arguments;return ne.default.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:return Pe=Ae.length>1&&Ae[1]!==void 0?Ae[1]:{type:"Archive"},Pe=Pe||{},Pe.subres=Object.assign({restore:""},Pe.subres),Pe.versionId&&(Pe.subres.versionId=Pe.versionId),we=this._objectRequestParams("POST",ye,Pe),Pe.type==="ColdArchive"&&(De={RestoreRequest:{Days:Pe.Days?Pe.Days:2,JobParameters:{Tier:Pe.JobParameters?Pe.JobParameters:"Standard"}}},we.content=fe(De,{headers:!0}),we.mime="xml"),we.successStatuses=[202],je.next=9,this.request(we);case 9:return Ee=je.sent,je.abrupt("return",{res:Ee.res});case 11:case"end":return je.stop()}},Se,this)}));function he(Se){return me.apply(this,arguments)}return he}(),ge._objectUrl=function(he){return this._getReqUrl({bucket:this.options.bucket,object:he})},ge._objectRequestParams=function(he,Se,ye){if(!this.options.bucket&&!this.options.cname)throw new Error("Please create a bucket first");ye=ye||{},Se=this._objectName(Se);var Pe={object:Se,bucket:this.options.bucket,method:he,subres:ye&&ye.subres,timeout:ye&&ye.timeout,ctx:ye&&ye.ctx};return ye.headers&&(Pe.headers={},ue(ye.headers).to(Pe.headers)),Pe},ge._objectName=function(he){return he.replace(/^\/+/,"")},ge._convertMetaToHeaders=function(he,Se){he&&Object.keys(he).forEach(function(ye){Se["x-oss-meta-".concat(ye)]=he[ye]})},ge._deleteFileSafe=function(he){var Se=this;return new Promise(function(ye){ce.exists(he,function(Pe){Pe?ce.unlink(he,function(we){we&&Se.debug("unlink %j error: %s",he,we,"error"),ye()}):ye()})})}},{"../common/callback":24,"../common/image":27,"../common/object/asyncSignatureUrl":31,"../common/object/copyObject":32,"../common/object/delete":33,"../common/object/deleteMulti":34,"../common/object/deleteObjectTagging":35,"../common/object/generateObjectUrl":36,"../common/object/get":37,"../common/object/getACL":38,"../common/object/getBucketVersions":39,"../common/object/getObjectMeta":40,"../common/object/getObjectTagging":41,"../common/object/getObjectUrl":42,"../common/object/getSymlink":43,"../common/object/head":44,"../common/object/putACL":45,"../common/object/putObjectTagging":46,"../common/object/putSymlink":47,"../common/object/signatureUrl":48,"../common/utils/isBlob":64,"../common/utils/isBuffer":65,"../common/utils/isFile":67,"../common/utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"copy-to":94,"core-js/modules/es.array.map.js":280,"core-js/modules/es.function.name.js":284,"core-js/modules/es.number.constructor.js":286,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339,fs:89,"merge-descriptors":372,mime:374,path:378}],6:[function(E,pe,de){"use strict";de.version="6.18.1"},{}],7:[function(E,pe,de){"use strict";var se=E("@babel/runtime/helpers/interopRequireDefault"),ne=se(E("@babel/runtime/regenerator")),ie=se(E("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(de,"__esModule",{value:!0}),de.abortBucketWorm=void 0;var ce=E("../utils/checkBucketName");function ue(oe,re){return ae.apply(this,arguments)}function ae(){return ae=(0,ie.default)(ne.default.mark(function oe(re,ee){var a,y;return ne.default.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return ce.checkBucketName(re),a=this._bucketRequestParams("DELETE",re,"worm",ee),b.next=4,this.request(a);case 4:return y=b.sent,b.abrupt("return",{res:y.res,status:y.status});case 6:case"end":return b.stop()}},oe,this)})),ae.apply(this,arguments)}de.abortBucketWorm=ue},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],8:[function(E,pe,de){"use strict";var se=E("@babel/runtime/helpers/interopRequireDefault"),ne=se(E("@babel/runtime/regenerator")),ie=se(E("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(de,"__esModule",{value:!0}),de.completeBucketWorm=void 0;var ce=E("../utils/checkBucketName");function ue(oe,re,ee){return ae.apply(this,arguments)}function ae(){return ae=(0,ie.default)(ne.default.mark(function oe(re,ee,a){var y,x;return ne.default.wrap(function(z){for(;;)switch(z.prev=z.next){case 0:return ce.checkBucketName(re),y=this._bucketRequestParams("POST",re,{wormId:ee},a),z.next=4,this.request(y);case 4:return x=z.sent,z.abrupt("return",{res:x.res,status:x.status});case 6:case"end":return z.stop()}},oe,this)})),ae.apply(this,arguments)}de.completeBucketWorm=ue},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],9:[function(E,pe,de){"use strict";var se=E("@babel/runtime/helpers/interopRequireDefault"),ne=se(E("@babel/runtime/regenerator"));E("core-js/modules/es.object.assign.js");var ie=se(E("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(de,"__esModule",{value:!0}),de.deleteBucketInventory=void 0;var ce=E("../utils/checkBucketName");function ue(oe,re){return ae.apply(this,arguments)}function ae(){return ae=(0,ie.default)(ne.default.mark(function oe(re,ee){var a,y,x,b,z=arguments;return ne.default.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:return a=z.length>2&&z[2]!==void 0?z[2]:{},y=Object.assign({inventory:"",inventoryId:ee},a.subres),ce.checkBucketName(re),x=this._bucketRequestParams("DELETE",re,y,a),x.successStatuses=[204],le.next=7,this.request(x);case 7:return b=le.sent,le.abrupt("return",{status:b.status,res:b.res});case 9:case"end":return le.stop()}},oe,this)})),ae.apply(this,arguments)}de.deleteBucketInventory=ue},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],10:[function(E,pe,de){"use strict";var se=E("@babel/runtime/helpers/interopRequireDefault"),ne=se(E("@babel/runtime/regenerator")),ie=se(E("@babel/runtime/helpers/asyncToGenerator")),ce=E("../utils/checkBucketName"),ue=ce.checkBucketName,ae=de;ae.deleteBucketLifecycle=function(){var oe=(0,ie.default)(ne.default.mark(function ee(a,y){var x,b;return ne.default.wrap(function(te){for(;;)switch(te.prev=te.next){case 0:return ue(a),x=this._bucketRequestParams("DELETE",a,"lifecycle",y),x.successStatuses=[204],te.next=5,this.request(x);case 5:return b=te.sent,te.abrupt("return",{res:b.res});case 7:case"end":return te.stop()}},ee,this)}));function re(ee,a){return oe.apply(this,arguments)}return re}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],11:[function(E,pe,de){"use strict";var se=E("@babel/runtime/helpers/interopRequireDefault"),ne=se(E("@babel/runtime/regenerator")),ie=se(E("@babel/runtime/helpers/asyncToGenerator")),ce=E("../utils/checkBucketName"),ue=ce.checkBucketName,ae=de;ae.deleteBucketWebsite=function(){var oe=(0,ie.default)(ne.default.mark(function ee(a,y){var x,b;return ne.default.wrap(function(te){for(;;)switch(te.prev=te.next){case 0:return ue(a),x=this._bucketRequestParams("DELETE",a,"website",y),x.successStatuses=[204],te.next=5,this.request(x);case 5:return b=te.sent,te.abrupt("return",{res:b.res});case 7:case"end":return te.stop()}},ee,this)}));function re(ee,a){return oe.apply(this,arguments)}return re}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],12:[function(E,pe,de){"use strict";var se=E("@babel/runtime/helpers/interopRequireDefault"),ne=se(E("@babel/runtime/regenerator")),ie=se(E("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(de,"__esModule",{value:!0}),de.extendBucketWorm=void 0;var ce=E("../utils/checkBucketName"),ue=E("../utils/obj2xml");function ae(re,ee,a,y){return oe.apply(this,arguments)}function oe(){return oe=(0,ie.default)(ne.default.mark(function re(ee,a,y,x){var b,z,te;return ne.default.wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:return ce.checkBucketName(ee),b=this._bucketRequestParams("POST",ee,{wormExtend:"",wormId:a},x),z={ExtendWormConfiguration:{RetentionPeriodInDays:y}},b.mime="xml",b.content=ue.obj2xml(z,{headers:!0}),b.successStatuses=[200],fe.next=8,this.request(b);case 8:return te=fe.sent,fe.abrupt("return",{res:te.res,status:te.status});case 10:case"end":return fe.stop()}},re,this)})),oe.apply(this,arguments)}de.extendBucketWorm=ae},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],13:[function(E,pe,de){"use strict";var se=E("@babel/runtime/helpers/interopRequireDefault"),ne=se(E("@babel/runtime/regenerator"));E("core-js/modules/es.object.assign.js");var ie=se(E("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(de,"__esModule",{value:!0}),de.getBucketInventory=void 0;var ce=E("../utils/checkBucketName"),ue=E("../utils/formatInventoryConfig");function ae(re,ee){return oe.apply(this,arguments)}function oe(){return oe=(0,ie.default)(ne.default.mark(function re(ee,a){var y,x,b,z,te=arguments;return ne.default.wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:return y=te.length>2&&te[2]!==void 0?te[2]:{},x=Object.assign({inventory:"",inventoryId:a},y.subres),ce.checkBucketName(ee),b=this._bucketRequestParams("GET",ee,x,y),b.successStatuses=[200],b.xmlResponse=!0,fe.next=8,this.request(b);case 8:return z=fe.sent,fe.abrupt("return",{status:z.status,res:z.res,inventory:ue.formatInventoryConfig(z.data)});case 10:case"end":return fe.stop()}},re,this)})),oe.apply(this,arguments)}de.getBucketInventory=ae},{"../utils/checkBucketName":51,"../utils/formatInventoryConfig":60,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],14:[function(E,pe,de){"use strict";var se=E("@babel/runtime/helpers/interopRequireDefault"),ne=se(E("@babel/runtime/regenerator"));E("core-js/modules/es.array.map.js");var ie=se(E("@babel/runtime/helpers/asyncToGenerator")),ce=E("../utils/checkBucketName"),ue=ce.checkBucketName,ae=E("../utils/isArray"),oe=ae.isArray,re=E("../utils/formatObjKey"),ee=re.formatObjKey,a=de;a.getBucketLifecycle=function(){var y=(0,ie.default)(ne.default.mark(function b(z,te){var le,fe,ge;return ne.default.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return ue(z),le=this._bucketRequestParams("GET",z,"lifecycle",te),le.successStatuses=[200],le.xmlResponse=!0,he.next=6,this.request(le);case 6:return fe=he.sent,ge=fe.data.Rule||null,ge&&(oe(ge)||(ge=[ge]),ge=ge.map(function(Se){return Se.ID&&(Se.id=Se.ID,delete Se.ID),Se.Tag&&!oe(Se.Tag)&&(Se.Tag=[Se.Tag]),ee(Se,"firstLowerCase")})),he.abrupt("return",{rules:ge,res:fe.res});case 10:case"end":return he.stop()}},b,this)}));function x(b,z){return y.apply(this,arguments)}return x}()},{"../utils/checkBucketName":51,"../utils/formatObjKey":61,"../utils/isArray":63,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.map.js":280}],15:[function(E,pe,de){"use strict";var se=E("@babel/runtime/helpers/interopRequireDefault"),ne=se(E("@babel/runtime/regenerator")),ie=se(E("@babel/runtime/helpers/asyncToGenerator")),ce=E("../utils/checkBucketName"),ue=ce.checkBucketName,ae=de;ae.getBucketVersioning=function(){var oe=(0,ie.default)(ne.default.mark(function ee(a,y){var x,b,z;return ne.default.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:return ue(a),x=this._bucketRequestParams("GET",a,"versioning",y),x.xmlResponse=!0,x.successStatuses=[200],le.next=6,this.request(x);case 6:return b=le.sent,z=b.data.Status,le.abrupt("return",{status:b.status,versionStatus:z,res:b.res});case 9:case"end":return le.stop()}},ee,this)}));function re(ee,a){return oe.apply(this,arguments)}return re}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],16:[function(E,pe,de){"use strict";var se=E("@babel/runtime/helpers/interopRequireDefault"),ne=se(E("@babel/runtime/regenerator")),ie=se(E("@babel/runtime/helpers/asyncToGenerator")),ce=E("../utils/checkBucketName"),ue=ce.checkBucketName,ae=E("../utils/isObject"),oe=ae.isObject,re=de;re.getBucketWebsite=function(){var ee=(0,ie.default)(ne.default.mark(function y(x,b){var z,te,le;return ne.default.wrap(function(ge){for(;;)switch(ge.prev=ge.next){case 0:return ue(x),z=this._bucketRequestParams("GET",x,"website",b),z.successStatuses=[200],z.xmlResponse=!0,ge.next=6,this.request(z);case 6:return te=ge.sent,le=[],te.data.RoutingRules&&te.data.RoutingRules.RoutingRule&&(oe(te.data.RoutingRules.RoutingRule)?le=[te.data.RoutingRules.RoutingRule]:le=te.data.RoutingRules.RoutingRule),ge.abrupt("return",{index:te.data.IndexDocument&&te.data.IndexDocument.Suffix||"",supportSubDir:te.data.IndexDocument&&te.data.IndexDocument.SupportSubDir||"false",type:te.data.IndexDocument&&te.data.IndexDocument.Type,routingRules:le,error:te.data.ErrorDocument&&te.data.ErrorDocument.Key||null,res:te.res});case 10:case"end":return ge.stop()}},y,this)}));function a(y,x){return ee.apply(this,arguments)}return a}()},{"../utils/checkBucketName":51,"../utils/isObject":70,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],17:[function(E,pe,de){"use strict";var se=E("@babel/runtime/helpers/interopRequireDefault"),ne=se(E("@babel/runtime/regenerator"));E("core-js/modules/es.object.assign.js");var ie=se(E("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(de,"__esModule",{value:!0}),de.getBucketWorm=void 0;var ce=E("../utils/checkBucketName"),ue=E("../utils/dataFix");function ae(re,ee){return oe.apply(this,arguments)}function oe(){return oe=(0,ie.default)(ne.default.mark(function re(ee,a){var y,x;return ne.default.wrap(function(z){for(;;)switch(z.prev=z.next){case 0:return ce.checkBucketName(ee),y=this._bucketRequestParams("GET",ee,"worm",a),y.successStatuses=[200],y.xmlResponse=!0,z.next=6,this.request(y);case 6:return x=z.sent,ue.dataFix(x.data,{lowerFirst:!0,rename:{RetentionPeriodInDays:"days"}}),z.abrupt("return",Object.assign(Object.assign({},x.data),{res:x.res,status:x.status}));case 9:case"end":return z.stop()}},re,this)})),oe.apply(this,arguments)}de.getBucketWorm=ae},{"../utils/checkBucketName":51,"../utils/dataFix":57,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],18:[function(E,pe,de){"use strict";var se=E("@babel/runtime/helpers/interopRequireDefault"),ne=se(E("@babel/runtime/regenerator")),ie=se(E("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(de,"__esModule",{value:!0}),de.initiateBucketWorm=void 0;var ce=E("../utils/obj2xml"),ue=E("../utils/checkBucketName");function ae(re,ee,a){return oe.apply(this,arguments)}function oe(){return oe=(0,ie.default)(ne.default.mark(function re(ee,a,y){var x,b,z;return ne.default.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:return ue.checkBucketName(ee),x=this._bucketRequestParams("POST",ee,"worm",y),b={InitiateWormConfiguration:{RetentionPeriodInDays:a}},x.mime="xml",x.content=ce.obj2xml(b,{headers:!0}),x.successStatuses=[200],le.next=8,this.request(x);case 8:return z=le.sent,le.abrupt("return",{res:z.res,wormId:z.res.headers["x-oss-worm-id"],status:z.status});case 10:case"end":return le.stop()}},re,this)})),oe.apply(this,arguments)}de.initiateBucketWorm=ae},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],19:[function(E,pe,de){"use strict";var se=E("@babel/runtime/helpers/interopRequireDefault"),ne=se(E("@babel/runtime/regenerator"));E("core-js/modules/es.object.assign.js");var ie=se(E("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(de,"__esModule",{value:!0}),de.listBucketInventory=void 0;var ce=E("../utils/checkBucketName"),ue=E("../utils/formatInventoryConfig");function ae(re){return oe.apply(this,arguments)}function oe(){return oe=(0,ie.default)(ne.default.mark(function re(ee){var a,y,x,b,z,te,le,fe,ge=arguments;return ne.default.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return a=ge.length>1&&ge[1]!==void 0?ge[1]:{},y=a.continuationToken,x=Object.assign({inventory:""},y&&{"continuation-token":y},a.subres),ce.checkBucketName(ee),b=this._bucketRequestParams("GET",ee,x,a),b.successStatuses=[200],b.xmlResponse=!0,he.next=9,this.request(b);case 9:return z=he.sent,te=z.data,le=z.res,fe=z.status,he.abrupt("return",{isTruncated:te.IsTruncated==="true",nextContinuationToken:te.NextContinuationToken,inventoryList:ue.formatInventoryConfig(te.InventoryConfiguration,!0),status:fe,res:le});case 12:case"end":return he.stop()}},re,this)})),oe.apply(this,arguments)}de.listBucketInventory=ae},{"../utils/checkBucketName":51,"../utils/formatInventoryConfig":60,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],20:[function(E,pe,de){"use strict";var se=E("@babel/runtime/helpers/interopRequireDefault"),ne=se(E("@babel/runtime/regenerator"));E("core-js/modules/es.object.assign.js"),E("core-js/modules/es.array.concat.js");var ie=se(E("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(de,"__esModule",{value:!0}),de.putBucketInventory=void 0;var ce=E("../utils/checkBucketName"),ue=E("../utils/obj2xml");function ae(re,ee){return oe.apply(this,arguments)}function oe(){return oe=(0,ie.default)(ne.default.mark(function re(ee,a){var y,x,b,z,te,le,fe,ge,me,he,Se,ye=arguments;return ne.default.wrap(function(we){for(;;)switch(we.prev=we.next){case 0:return y=ye.length>2&&ye[2]!==void 0?ye[2]:{},x=Object.assign({inventory:"",inventoryId:a.id},y.subres),ce.checkBucketName(ee),b=a.OSSBucketDestination,z=a.optionalFields,te=a.includedObjectVersions,le="acs:oss:::",fe="acs:ram::".concat(b.accountId,":role/"),ge={InventoryConfiguration:{Id:a.id,IsEnabled:a.isEnabled,Filter:{Prefix:a.prefix||""},Destination:{OSSBucketDestination:{Format:b.format,AccountId:b.accountId,RoleArn:"".concat(fe).concat(b.rolename),Bucket:"".concat(le).concat(b.bucket),Prefix:b.prefix||"",Encryption:b.encryption||""}},Schedule:{Frequency:a.frequency},IncludedObjectVersions:te,OptionalFields:{Field:(z==null?void 0:z.field)||[]}}},me=ue.obj2xml(ge,{headers:!0,firstUpperCase:!0}),he=this._bucketRequestParams("PUT",ee,x,y),he.successStatuses=[200],he.mime="xml",he.content=me,we.next=14,this.request(he);case 14:return Se=we.sent,we.abrupt("return",{status:Se.status,res:Se.res});case 16:case"end":return we.stop()}},re,this)})),oe.apply(this,arguments)}de.putBucketInventory=ae},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.object.assign.js":287}],21:[function(E,pe,de){"use strict";var se=E("@babel/runtime/helpers/interopRequireDefault"),ne=se(E("@babel/runtime/regenerator"));E("core-js/modules/es.object.to-string.js"),E("core-js/modules/web.dom-collections.for-each.js"),E("core-js/modules/es.regexp.exec.js"),E("core-js/modules/es.array.includes.js");var ie=se(E("@babel/runtime/helpers/asyncToGenerator")),ce=E("../utils/checkBucketName"),ue=ce.checkBucketName,ae=E("../utils/isArray"),oe=ae.isArray,re=E("../utils/deepCopy"),ee=re.deepCopy,a=E("../utils/isObject"),y=a.isObject,x=E("../utils/obj2xml"),b=x.obj2xml,z=E("../utils/checkObjectTag"),te=z.checkObjectTag,le=E("../utils/getStrBytesCount"),fe=le.getStrBytesCount,ge=de;ge.putBucketLifecycle=function(){var Pe=(0,ie.default)(ne.default.mark(function De(Ee,Ae,Ce){var je,Me,Ge,Fe,Je;return ne.default.wrap(function(Xe){for(;;)switch(Xe.prev=Xe.next){case 0:if(ue(Ee),oe(Ae)){Xe.next=3;break}throw new Error("rules must be Array");case 3:return je=this._bucketRequestParams("PUT",Ee,"lifecycle",Ce),Me=[],Ge={LifecycleConfiguration:{Rule:Me}},Ae.forEach(function(Ve){me(Ve),ye(Ve),Ve.id&&(Ve.ID=Ve.id,delete Ve.id),Me.push(Ve)}),Fe=b(Ge,{headers:!0,firstUpperCase:!0}),je.content=Fe,je.mime="xml",je.successStatuses=[200],Xe.next=13,this.request(je);case 13:return Je=Xe.sent,Xe.abrupt("return",{res:Je.res});case 15:case"end":return Xe.stop()}},De,this)}));function we(De,Ee,Ae){return Pe.apply(this,arguments)}return we}();function me(Pe){Pe.days&&(Pe.expiration={days:Pe.days}),Pe.date&&(Pe.expiration={createdBeforeDate:Pe.date})}function he(Pe,we){var De=Pe.days,Ee=Pe.createdBeforeDate;if(!De&&!Ee)throw new Error("".concat(we," must includes days or createdBeforeDate"));if(De&&!/^[1-9][0-9]*$/.test(De))throw new Error("days must be a positive integer");if(Ee&&!/\d{4}-\d{2}-\d{2}T00:00:00.000Z/.test(Ee))throw new Error("createdBeforeDate must be date and conform to iso8601 format")}function Se(Pe){if(!oe(Pe)&&!y(Pe))throw new Error("tag must be Object or Array");Pe=y(Pe)?[Pe]:Pe;var we={},De=ee(Pe);De.forEach(function(Ee){we[Ee.key]=Ee.value}),te(we)}function ye(Pe){if(Pe.id&&fe(Pe.id)>255)throw new Error("ID is composed of 255 bytes at most");if(Pe.prefix===void 0)throw new Error("Rule must includes prefix");if(!["Enabled","Disabled"].includes(Pe.status))throw new Error("Status must be Enabled or Disabled");if(Pe.transition){if(!["IA","Archive"].includes(Pe.transition.storageClass))throw new Error("StorageClass must be IA or Archive");he(Pe.transition,"Transition")}if(Pe.expiration){if(!Pe.expiration.expiredObjectDeleteMarker)he(Pe.expiration,"Expiration");else if(Pe.expiration.days||Pe.expiration.createdBeforeDate)throw new Error("expiredObjectDeleteMarker cannot be used with days or createdBeforeDate")}if(Pe.abortMultipartUpload&&he(Pe.abortMultipartUpload,"AbortMultipartUpload"),!Pe.expiration&&!Pe.abortMultipartUpload&&!Pe.transition&&!Pe.noncurrentVersionTransition)throw new Error("Rule must includes expiration or abortMultipartUpload or transition or noncurrentVersionTransition");if(Pe.tag){if(Pe.abortMultipartUpload)throw new Error("Tag cannot be used with abortMultipartUpload");Se(Pe.tag)}}},{"../utils/checkBucketName":51,"../utils/checkObjectTag":54,"../utils/deepCopy":58,"../utils/getStrBytesCount":62,"../utils/isArray":63,"../utils/isObject":70,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/web.dom-collections.for-each.js":339}],22:[function(E,pe,de){"use strict";var se=E("@babel/runtime/helpers/interopRequireDefault"),ne=se(E("@babel/runtime/regenerator"));E("core-js/modules/es.array.includes.js");var ie=se(E("@babel/runtime/helpers/asyncToGenerator")),ce=E("../utils/checkBucketName"),ue=ce.checkBucketName,ae=E("../utils/obj2xml"),oe=ae.obj2xml,re=de;re.putBucketVersioning=function(){var ee=(0,ie.default)(ne.default.mark(function y(x,b){var z,te,le,fe,ge=arguments;return ne.default.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:if(z=ge.length>2&&ge[2]!==void 0?ge[2]:{},ue(x),["Enabled","Suspended"].includes(b)){he.next=4;break}throw new Error("status must be Enabled or Suspended");case 4:return te=this._bucketRequestParams("PUT",x,"versioning",z),le={VersioningConfiguration:{Status:b}},te.mime="xml",te.content=oe(le,{headers:!0}),he.next=10,this.request(te);case 10:return fe=he.sent,he.abrupt("return",{res:fe.res,status:fe.status});case 12:case"end":return he.stop()}},y,this)}));function a(y,x){return ee.apply(this,arguments)}return a}()},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.includes.js":277}],23:[function(E,pe,de){"use strict";var se=E("@babel/runtime/helpers/interopRequireDefault"),ne=se(E("@babel/runtime/regenerator")),ie=se(E("@babel/runtime/helpers/asyncToGenerator")),ce=E("../utils/checkBucketName"),ue=ce.checkBucketName,ae=E("../utils/obj2xml"),oe=ae.obj2xml,re=E("../utils/isArray"),ee=re.isArray,a=de;a.putBucketWebsite=function(){var y=(0,ie.default)(ne.default.mark(function b(z){var te,le,fe,ge,me,he,Se,ye=arguments;return ne.default.wrap(function(we){for(;;)switch(we.prev=we.next){case 0:if(te=ye.length>1&&ye[1]!==void 0?ye[1]:{},le=ye.length>2?ye[2]:void 0,ue(z),fe=this._bucketRequestParams("PUT",z,"website",le),ge={Suffix:te.index||"index.html"},me={IndexDocument:ge},he={WebsiteConfiguration:me},te.supportSubDir&&(ge.SupportSubDir=te.supportSubDir),te.type&&(ge.Type=te.type),te.error&&(me.ErrorDocument={Key:te.error}),te.routingRules===void 0){we.next=14;break}if(ee(te.routingRules)){we.next=13;break}throw new Error("RoutingRules must be Array");case 13:me.RoutingRules={RoutingRule:te.routingRules};case 14:return he=oe(he),fe.content=he,fe.mime="xml",fe.successStatuses=[200],we.next=20,this.request(fe);case 20:return Se=we.sent,we.abrupt("return",{res:Se.res});case 22:case"end":return we.stop()}},b,this)}));function x(b){return y.apply(this,arguments)}return x}()},{"../utils/checkBucketName":51,"../utils/isArray":63,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],24:[function(E,pe,de){(function(se){(function(){"use strict";E("core-js/modules/es.object.to-string.js"),E("core-js/modules/es.regexp.to-string.js"),E("core-js/modules/web.dom-collections.for-each.js"),E("core-js/modules/es.object.keys.js"),de.encodeCallback=function(ie,ce){if(ie.headers=ie.headers||{},!Object.prototype.hasOwnProperty.call(ie.headers,"x-oss-callback")&&ce.callback){var ue={callbackUrl:encodeURI(ce.callback.url),callbackBody:ce.callback.body};ce.callback.host&&(ue.callbackHost=ce.callback.host),ce.callback.contentType&&(ue.callbackBodyType=ce.callback.contentType);var ae=se.from(JSON.stringify(ue)).toString("base64");if(ie.headers["x-oss-callback"]=ae,ce.callback.customValue){var oe={};Object.keys(ce.callback.customValue).forEach(function(re){oe["x:".concat(re)]=ce.callback.customValue[re].toString()}),ie.headers["x-oss-callback-var"]=se.from(JSON.stringify(oe)).toString("base64")}}}}).call(this)}).call(this,E("buffer").Buffer)},{buffer:90,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/web.dom-collections.for-each.js":339}],25:[function(E,pe,de){"use strict";E("core-js/modules/es.array.concat.js"),E("core-js/modules/es.regexp.exec.js"),E("core-js/modules/es.string.replace.js"),E("core-js/modules/es.object.to-string.js"),E("core-js/modules/web.dom-collections.for-each.js");var se=function(ee){return ee&&ee.__esModule?ee:{default:ee}};Object.defineProperty(de,"__esModule",{value:!0}),de.getReqUrl=void 0;var ne=se(E("copy-to")),ie=se(E("url")),ce=se(E("merge-descriptors")),ue=se(E("is-type-of")),ae=E("../utils/isIP"),oe=E("../utils/checkConfigValid");function re(ee){var a={},y=this.options.cname;oe.checkConfigValid(this.options.endpoint,"endpoint"),ne.default(this.options.endpoint,!1).to(a),ee.bucket&&!y&&!ae.isIP(a.hostname)&&!this.options.sldEnable&&(a.host="".concat(ee.bucket,".").concat(a.host));var x="/";ee.bucket&&this.options.sldEnable&&(x+="".concat(ee.bucket,"/")),ee.object&&(x+=this._escape(ee.object).replace(/\+/g,"%2B")),a.pathname=x;var b={};if(ee.query&&ce.default(b,ee.query),ee.subres){var z={};ue.default.string(ee.subres)?z[ee.subres]="":ue.default.array(ee.subres)?ee.subres.forEach(function(te){z[te]=""}):z=ee.subres,ce.default(b,z)}return a.query=b,ie.default.format(a)}de.getReqUrl=re},{"../utils/checkConfigValid":52,"../utils/isIP":69,"copy-to":94,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339,"is-type-of":466,"merge-descriptors":372,url:472}],26:[function(E,pe,de){"use strict";E("core-js/modules/es.array.concat.js"),E("core-js/modules/es.object.assign.js"),E("core-js/modules/es.string.trim.js");var se=E("humanize-ms"),ne=E("url"),ie=E("../utils/checkBucketName"),ce=ie.checkBucketName,ue=E("../utils/setRegion"),ae=ue.setRegion,oe=E("../utils/checkConfigValid"),re=oe.checkConfigValid;function ee(a,y){re(a,"endpoint");var x=ne.parse(a);if(x.protocol||(x=ne.parse("http".concat(y?"s":"","://").concat(a))),x.protocol!=="http:"&&x.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return x}pe.exports=function(a){if(!a||!a.accessKeyId||!a.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");a.stsToken&&!a.refreshSTSToken&&!a.refreshSTSTokenInterval&&console.warn("It's recommended to set 'refreshSTSToken' and 'refreshSTSTokenInterval' to refresh stsToken\u3001accessKeyId\u3001accessKeySecret automatically when sts token has expired"),a.bucket&&ce(a.bucket);var y=Object.assign({region:"oss-cn-hangzhou",internal:!1,secure:!1,timeout:6e4,bucket:null,endpoint:null,cname:!1,isRequestPay:!1,sldEnable:!1,headerEncoding:"utf-8",refreshSTSToken:null,refreshSTSTokenInterval:6e4*5,retryMax:0},a);if(y.accessKeyId=y.accessKeyId.trim(),y.accessKeySecret=y.accessKeySecret.trim(),y.timeout&&(y.timeout=se(y.timeout)),y.endpoint)y.endpoint=ee(y.endpoint,y.secure);else if(y.region)y.endpoint=ae(y.region,y.internal,y.secure);else throw new Error("require options.endpoint or options.region");return y.inited=!0,y}},{"../utils/checkBucketName":51,"../utils/checkConfigValid":52,"../utils/setRegion":75,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.string.trim.js":308,"humanize-ms":356,url:472}],27:[function(E,pe,de){"use strict";var se=E("merge-descriptors"),ne=de;se(ne,E("./processObjectSave"))},{"./processObjectSave":28,"merge-descriptors":372}],28:[function(E,pe,de){"use strict";var se=E("@babel/runtime/helpers/interopRequireDefault"),ne=se(E("@babel/runtime/regenerator"));E("core-js/modules/es.array.concat.js");var ie=se(E("@babel/runtime/helpers/asyncToGenerator")),ce=E("../utils/checkBucketName"),ue=ce.checkBucketName,ae=E("querystring"),oe=E("js-base64"),re=oe.Base64.encode,ee=de;ee.processObjectSave=function(){var y=(0,ie.default)(ne.default.mark(function b(z,te,le,fe){var ge,me,he,Se;return ne.default.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:return a(z,"sourceObject"),a(te,"targetObject"),a(le,"process"),te=this._objectName(te),fe&&ue(fe),ge=this._objectRequestParams("POST",z,{subres:"x-oss-process"}),me=fe?",b_".concat(re(fe)):"",te=re(te),he={"x-oss-process":"".concat(le,"|sys/saveas,o_").concat(te).concat(me)},ge.content=ae.stringify(he),Pe.next=12,this.request(ge);case 12:return Se=Pe.sent,Pe.abrupt("return",{res:Se.res,status:Se.res.status});case 14:case"end":return Pe.stop()}},b,this)}));function x(b,z,te,le){return y.apply(this,arguments)}return x}();function a(y,x){if(!y)throw new Error("".concat(x," is required"));if(typeof y!="string")throw new Error("".concat(x," must be String"))}},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.concat.js":272,"js-base64":371,querystring:385}],29:[function(E,pe,de){"use strict";var se=E("@babel/runtime/helpers/interopRequireDefault"),ne=se(E("@babel/runtime/regenerator"));E("core-js/modules/es.array.concat.js"),E("core-js/modules/es.function.name.js"),E("core-js/modules/es.object.to-string.js"),E("core-js/modules/es.promise.js"),E("core-js/modules/es.array.from.js"),E("core-js/modules/es.string.iterator.js"),E("core-js/modules/es.array.map.js"),E("core-js/modules/es.array.filter.js"),E("core-js/modules/es.array.find.js"),E("core-js/modules/es.regexp.to-string.js");var ie=se(E("@babel/runtime/helpers/asyncToGenerator")),ce=E("debug")("ali-oss:multipart-copy"),ue=E("copy-to"),ae=de;ae.uploadPartCopy=function(){var oe=(0,ie.default)(ne.default.mark(function ee(a,y,x,b,z){var te,le,fe,ge,me,he=arguments;return ne.default.wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:return te=he.length>5&&he[5]!==void 0?he[5]:{},te.headers=te.headers||{},le=te.versionId||te.subres&&te.subres.versionId||null,le?fe="/".concat(z.sourceBucketName,"/").concat(encodeURIComponent(z.sourceKey),"?versionId=").concat(le):fe="/".concat(z.sourceBucketName,"/").concat(encodeURIComponent(z.sourceKey)),te.headers["x-oss-copy-source"]=fe,b&&(te.headers["x-oss-copy-source-range"]="bytes=".concat(b)),te.subres={partNumber:x,uploadId:y},ge=this._objectRequestParams("PUT",a,te),ge.mime=te.mime,ge.successStatuses=[200],ye.next=12,this.request(ge);case 12:return me=ye.sent,ye.abrupt("return",{name:a,etag:me.res.headers.etag,res:me.res});case 14:case"end":return ye.stop()}},ee,this)}));function re(ee,a,y,x,b){return oe.apply(this,arguments)}return re}(),ae.multipartUploadCopy=function(){var oe=(0,ie.default)(ne.default.mark(function ee(a,y){var x,b,z,te,le,fe,ge,me,he,Se,ye,Pe,we=arguments;return ne.default.wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:return x=we.length>2&&we[2]!==void 0?we[2]:{},this.resetCancelFlag(),b=x.versionId,z=b===void 0?null:b,te={versionId:z},Ee.next=6,this._getObjectMeta(y.sourceBucketName,y.sourceKey,te);case 6:if(le=Ee.sent,fe=le.res.headers["content-length"],y.startOffset=y.startOffset||0,y.endOffset=y.endOffset||fe,!(x.checkpoint&&x.checkpoint.uploadId)){Ee.next=14;break}return Ee.next=13,this._resumeMultipartCopy(x.checkpoint,y,x);case 13:return Ee.abrupt("return",Ee.sent);case 14:if(ge=102400,me=y.endOffset-y.startOffset,!(me0)){Xe.next=40;break}throw Je=Ge[0],Je.message="Failed to copy some parts with error: ".concat(Je.toString()," part_num: ").concat(Je.partNum),Je;case 40:return Xe.next=42,this.completeMultipartUpload(he,ge,me,x);case 42:return Xe.abrupt("return",Xe.sent);case 43:case"end":return Xe.stop()}},ee,this)}));function re(ee,a,y){return oe.apply(this,arguments)}return re}(),ae._divideMultipartCopyParts=function(re,ee,a){for(var y=Math.ceil(re/ee),x=[],b=0;b `,Pe=0;Pe `,ye+="".concat(we.number,` `),ye+="".concat(we.etag,` `),ye+=` `;return ye+="",he=he||{},De={},De=re(he,function(Ge){if(a(Ge))return null}),De.subres={uploadId:ge},De.headers=x(De.headers,["x-oss-server-side-encryption","x-oss-storage-class"]),Ee=this._objectRequestParams("POST",fe,De),ae.encodeCallback(Ee,De),Ee.mime="xml",Ee.content=ye,Ee.headers&&Ee.headers["x-oss-callback"]||(Ee.xmlResponse=!0),Ee.successStatuses=[200],Me.next=17,this.request(Ee);case 17:if(Ae=Me.sent,!he.progress){Me.next=21;break}return Me.next=21,he.progress(1,null,Ae.res);case 21:return Ce={res:Ae.res,bucket:Ee.bucket,name:fe,etag:Ae.res.headers.etag},Ee.headers&&Ee.headers["x-oss-callback"]&&(Ce.data=JSON.parse(Ae.data.toString())),Me.abrupt("return",Ce);case 24:case"end":return Me.stop()}},le,this)}));function te(le,fe,ge,me){return z.apply(this,arguments)}return te}(),b._uploadPart=function(){var z=(0,ce.default)(ie.default.mark(function le(fe,ge,me,he,Se){var ye,Pe,we,De;return ie.default.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return Se=Se||{},ye={},ue(Se).to(ye),ye.headers=ye.headers||{},ye.headers["Content-Length"]=he.size,ye.headers=x(ye.headers,["x-oss-server-side-encryption"]),ye.subres={partNumber:me,uploadId:ge},Pe=this._objectRequestParams("PUT",fe,ye),Pe.mime=ye.mime,we=se&&se.browser,we?Pe.content=he.content:Pe.stream=he.stream,Pe.successStatuses=[200],Pe.disabledMD5=Se.disabledMD5,Ae.next=15,this.request(Pe);case 15:if(De=Ae.sent,De.res.headers.etag){Ae.next=18;break}throw new Error(`Please set the etag of expose-headers in OSS https://help.aliyun.com/document_detail/32069.html`);case 18:return he.stream&&(he.stream=null,Pe.stream=null),Ae.abrupt("return",{name:fe,etag:De.res.headers.etag,res:De.res});case 20:case"end":return Ae.stop()}},le,this)}));function te(le,fe,ge,me,he){return z.apply(this,arguments)}return te}()}).call(this)}).call(this,E("_process"))},{"./callback":24,"./utils/deepCopy":58,"./utils/isBuffer":65,"./utils/omit":73,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,_process:467,"copy-to":94,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.filter.js":274,"core-js/modules/es.array.map.js":280,"core-js/modules/es.array.sort.js":282,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301}],31:[function(E,pe,de){"use strict";var se=E("@babel/runtime/helpers/interopRequireDefault"),ne=se(E("@babel/runtime/regenerator")),ie=se(E("@babel/runtime/helpers/asyncToGenerator")),ce=E("url"),ue=E("utility"),ae=E("copy-to"),oe=E("../../common/signUtils"),re=E("../utils/isIP"),ee=re.isIP,a=E("../utils/setSTSToken"),y=a.setSTSToken,x=E("../utils/isFunction"),b=x.isFunction,z=de;z.asyncSignatureUrl=function(){var te=(0,ie.default)(ne.default.mark(function fe(ge,me){var he,Se,ye,Pe,we;return ne.default.wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:if(!ee(this.options.endpoint.hostname)){Ee.next=2;break}throw new Error("can not get the object URL when endpoint is IP");case 2:if(me=me||{},ge=this._objectName(ge),me.method=me.method||"GET",he=ue.timestamp()+(me.expires||1800),Se={bucket:this.options.bucket,object:ge},ye=this._getResource(Se),!(this.options.stsToken&&b(this.options.refreshSTSToken))){Ee.next=11;break}return Ee.next=11,y.call(this);case 11:return this.options.stsToken&&(me["security-token"]=this.options.stsToken),Pe=oe._signatureForURL(this.options.accessKeySecret,me,ye,he),we=ce.parse(this._getReqUrl(Se)),we.query={OSSAccessKeyId:this.options.accessKeyId,Expires:he,Signature:Pe.Signature},ae(Pe.subResource).to(we.query),Ee.abrupt("return",we.format());case 17:case"end":return Ee.stop()}},fe,this)}));function le(fe,ge){return te.apply(this,arguments)}return le}()},{"../../common/signUtils":50,"../utils/isFunction":68,"../utils/isIP":69,"../utils/setSTSToken":76,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"copy-to":94,url:472,utility:474}],32:[function(E,pe,de){"use strict";var se=E("@babel/runtime/helpers/interopRequireDefault"),ne=se(E("@babel/runtime/regenerator"));E("core-js/modules/es.object.to-string.js"),E("core-js/modules/web.dom-collections.for-each.js"),E("core-js/modules/es.object.keys.js"),E("core-js/modules/es.array.find.js"),E("core-js/modules/es.array.includes.js"),E("core-js/modules/es.array.concat.js"),E("core-js/modules/es.regexp.exec.js"),E("core-js/modules/es.string.replace.js");var ie=se(E("@babel/runtime/helpers/typeof")),ce=se(E("@babel/runtime/helpers/asyncToGenerator")),ue=E("../utils/checkBucketName"),ae=ue.checkBucketName,oe=de,re=["content-type","content-encoding","content-language","content-disposition","cache-control","expires"];oe.copy=function(){var ee=(0,ce.default)(ne.default.mark(function y(x,b,z,te){var le,fe,ge;return ne.default.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return(0,ie.default)(z)==="object"&&(te=z),te=te||{},te.headers=te.headers||{},Object.keys(te.headers).forEach(function(Se){te.headers["x-oss-copy-source-".concat(Se.toLowerCase())]=te.headers[Se]}),(te.meta||Object.keys(te.headers).find(function(Se){return re.includes(Se.toLowerCase())}))&&(te.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(te.meta,te.headers),b=this._getSourceName(b,z),te.versionId&&(b="".concat(b,"?versionId=").concat(te.versionId)),te.headers["x-oss-copy-source"]=b,le=this._objectRequestParams("PUT",x,te),le.xmlResponse=!0,le.successStatuses=[200,304],he.next=14,this.request(le);case 14:return fe=he.sent,ge=fe.data,ge&&(ge={etag:ge.ETag,lastModified:ge.LastModified}),he.abrupt("return",{data:ge,res:fe.res});case 18:case"end":return he.stop()}},y,this)}));function a(y,x,b,z){return ee.apply(this,arguments)}return a}(),oe._getSourceName=function(a,y){return typeof y=="string"?a=this._objectName(a):a[0]!=="/"?y=this.options.bucket:(y=a.replace(/\/(.+?)(\/.*)/,"$1"),a=a.replace(/(\/.+?\/)(.*)/,"$2")),ae(y),a=encodeURIComponent(a),a="/".concat(y,"/").concat(a),a}},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,"@babel/runtime/regenerator":80,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.find.js":275,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],33:[function(E,pe,de){"use strict";var se=E("@babel/runtime/helpers/interopRequireDefault"),ne=se(E("@babel/runtime/regenerator"));E("core-js/modules/es.object.assign.js");var ie=se(E("@babel/runtime/helpers/asyncToGenerator")),ce=de;ce.delete=function(){var ue=(0,ie.default)(ne.default.mark(function oe(re){var ee,a,y,x=arguments;return ne.default.wrap(function(z){for(;;)switch(z.prev=z.next){case 0:return ee=x.length>1&&x[1]!==void 0?x[1]:{},ee.subres=Object.assign({},ee.subres),ee.versionId&&(ee.subres.versionId=ee.versionId),a=this._objectRequestParams("DELETE",re,ee),a.successStatuses=[204],z.next=7,this.request(a);case 7:return y=z.sent,z.abrupt("return",{res:y.res});case 9:case"end":return z.stop()}},oe,this)}));function ae(oe){return ue.apply(this,arguments)}return ae}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],34:[function(E,pe,de){"use strict";var se=E("@babel/runtime/helpers/interopRequireDefault"),ne=se(E("@babel/runtime/regenerator"));E("core-js/modules/es.object.assign.js");var ie=se(E("@babel/runtime/helpers/asyncToGenerator")),ce=E("utility"),ue=E("../utils/obj2xml"),ae=ue.obj2xml,oe=de;oe.deleteMulti=function(){var re=(0,ie.default)(ne.default.mark(function a(y){var x,b,z,te,le,fe,ge,me,he,Se,ye,Pe,we,De=arguments;return ne.default.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:if(x=De.length>1&&De[1]!==void 0?De[1]:{},b=[],!(!y||!y.length)){Ae.next=4;break}throw new Error("names is required");case 4:for(z=0;z1&&x[1]!==void 0?x[1]:{},ee.subres=Object.assign({tagging:""},ee.subres),ee.versionId&&(ee.subres.versionId=ee.versionId),re=this._objectName(re),a=this._objectRequestParams("DELETE",re,ee),a.successStatuses=[204],z.next=8,this.request(a);case 8:return y=z.sent,z.abrupt("return",{status:y.status,res:y.res});case 10:case"end":return z.stop()}},oe,this)}));function ae(oe){return ue.apply(this,arguments)}return ae}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],36:[function(E,pe,de){"use strict";E("core-js/modules/es.array.concat.js");var se=E("url"),ne=E("../utils/isIP"),ie=ne.isIP,ce=de;ce.generateObjectUrl=function(ae,oe){if(ie(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");if(oe)oe[oe.length-1]!=="/"&&(oe+="/");else{oe=this.options.endpoint.format();var re=se.parse(oe),ee=this.options.bucket;re.hostname="".concat(ee,".").concat(re.hostname),re.host="".concat(ee,".").concat(re.host),oe=re.format()}return oe+this._escape(this._objectName(ae))}},{"../utils/isIP":69,"core-js/modules/es.array.concat.js":272,url:472}],37:[function(E,pe,de){(function(se){(function(){"use strict";var ne=E("@babel/runtime/helpers/interopRequireDefault"),ie=ne(E("@babel/runtime/regenerator"));E("core-js/modules/es.object.assign.js");var ce=ne(E("@babel/runtime/helpers/asyncToGenerator")),ue=E("fs"),ae=E("is-type-of"),oe=de;oe.get=function(){var re=(0,ce.default)(ie.default.mark(function a(y,x){var b,z,te,le,fe,ge,me,he,Se=arguments;return ie.default.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:return b=Se.length>2&&Se[2]!==void 0?Se[2]:{},z=null,te=!1,ae.writableStream(x)?z=x:ae.string(x)?(z=ue.createWriteStream(x),te=!0):b=x,b=b||{},le=se&&se.browser,fe=b.responseCacheControl===null?"":"no-cache",ge=le&&fe?{"response-cache-control":fe}:{},b.subres=Object.assign(ge,b.subres),b.versionId&&(b.subres.versionId=b.versionId),b.process&&(b.subres["x-oss-process"]=b.process),Pe.prev=11,he=this._objectRequestParams("GET",y,b),he.writeStream=z,he.successStatuses=[200,206,304],Pe.next=17,this.request(he);case 17:me=Pe.sent,te&&z.destroy(),Pe.next=28;break;case 21:if(Pe.prev=21,Pe.t0=Pe.catch(11),!te){Pe.next=27;break}return z.destroy(),Pe.next=27,this._deleteFileSafe(x);case 27:throw Pe.t0;case 28:return Pe.abrupt("return",{res:me.res,content:me.data});case 29:case"end":return Pe.stop()}},a,this,[[11,21]])}));function ee(a,y){return re.apply(this,arguments)}return ee}()}).call(this)}).call(this,E("_process"))},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,_process:467,"core-js/modules/es.object.assign.js":287,fs:89,"is-type-of":466}],38:[function(E,pe,de){"use strict";var se=E("@babel/runtime/helpers/interopRequireDefault"),ne=se(E("@babel/runtime/regenerator"));E("core-js/modules/es.object.assign.js");var ie=se(E("@babel/runtime/helpers/asyncToGenerator")),ce=de;ce.getACL=function(){var ue=(0,ie.default)(ne.default.mark(function oe(re){var ee,a,y,x=arguments;return ne.default.wrap(function(z){for(;;)switch(z.prev=z.next){case 0:return ee=x.length>1&&x[1]!==void 0?x[1]:{},ee.subres=Object.assign({acl:""},ee.subres),ee.versionId&&(ee.subres.versionId=ee.versionId),re=this._objectName(re),a=this._objectRequestParams("GET",re,ee),a.successStatuses=[200],a.xmlResponse=!0,z.next=9,this.request(a);case 9:return y=z.sent,z.abrupt("return",{acl:y.data.AccessControlList.Grant,owner:{id:y.data.Owner.ID,displayName:y.data.Owner.DisplayName},res:y.res});case 11:case"end":return z.stop()}},oe,this)}));function ae(oe){return ue.apply(this,arguments)}return ae}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],39:[function(E,pe,de){"use strict";var se=E("@babel/runtime/helpers/interopRequireDefault"),ne=se(E("@babel/runtime/regenerator"));E("core-js/modules/es.regexp.exec.js"),E("core-js/modules/es.string.replace.js"),E("core-js/modules/es.object.to-string.js"),E("core-js/modules/web.dom-collections.for-each.js"),E("core-js/modules/es.object.keys.js"),E("core-js/modules/es.object.assign.js"),E("core-js/modules/es.array.map.js"),E("core-js/modules/es.number.constructor.js");var ie=se(E("@babel/runtime/helpers/asyncToGenerator")),ce=de,ue=E("../utils/isObject"),ae=ue.isObject,oe=E("../utils/isArray"),re=oe.isArray;ce.getBucketVersions=ee,ce.listObjectVersions=ee;function ee(){return a.apply(this,arguments)}function a(){return a=(0,ie.default)(ne.default.mark(function b(){var z,te,le,fe,ge,me,he,Se,ye=arguments;return ne.default.wrap(function(we){for(;;)switch(we.prev=we.next){case 0:if(z=ye.length>0&&ye[0]!==void 0?ye[0]:{},te=ye.length>1&&ye[1]!==void 0?ye[1]:{},!(z.versionIdMarker&&z.keyMarker===void 0)){we.next=4;break}throw new Error("A version-id marker cannot be specified without a key marker");case 4:return te.subres=Object.assign({versions:""},te.subres),te.versionId&&(te.subres.versionId=te.versionId),le=this._objectRequestParams("GET","",te),le.xmlResponse=!0,le.successStatuses=[200],le.query=x(z),we.next=12,this.request(le);case 12:return fe=we.sent,ge=fe.data.Version||[],me=fe.data.DeleteMarker||[],he=this,ge&&(Array.isArray(ge)||(ge=[ge]),ge=ge.map(function(De){return{name:De.Key,url:he._objectUrl(De.Key),lastModified:De.LastModified,isLatest:De.IsLatest==="true",versionId:De.VersionId,etag:De.ETag,type:De.Type,size:Number(De.Size),storageClass:De.StorageClass,owner:{id:De.Owner.ID,displayName:De.Owner.DisplayName}}})),me&&(re(me)||(me=[me]),me=me.map(function(De){return{name:De.Key,lastModified:De.LastModified,versionId:De.VersionId,owner:{id:De.Owner.ID,displayName:De.Owner.DisplayName}}})),Se=fe.data.CommonPrefixes||null,Se&&(re(Se)||(Se=[Se]),Se=Se.map(function(De){return De.Prefix})),we.abrupt("return",{res:fe.res,objects:ge,deleteMarker:me,prefixes:Se,nextMarker:fe.data.NextKeyMarker||null,NextVersionIdMarker:fe.data.NextVersionIdMarker||null,nextKeyMarker:fe.data.NextKeyMarker||null,nextVersionIdMarker:fe.data.NextVersionIdMarker||null,isTruncated:fe.data.IsTruncated==="true"});case 21:case"end":return we.stop()}},b,this)})),a.apply(this,arguments)}function y(b){return b.replace(/([A-Z])/g,"-$1").toLowerCase()}function x(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},z={};return ae(b)&&Object.keys(b).forEach(function(te){z[y(te)]=b[te]}),z}},{"../utils/isArray":63,"../utils/isObject":70,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.map.js":280,"core-js/modules/es.number.constructor.js":286,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],40:[function(E,pe,de){"use strict";var se=E("@babel/runtime/helpers/interopRequireDefault"),ne=se(E("@babel/runtime/regenerator"));E("core-js/modules/es.object.assign.js");var ie=se(E("@babel/runtime/helpers/asyncToGenerator")),ce=de;ce.getObjectMeta=function(){var ue=(0,ie.default)(ne.default.mark(function oe(re,ee){var a,y;return ne.default.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return ee=ee||{},re=this._objectName(re),ee.subres=Object.assign({objectMeta:""},ee.subres),ee.versionId&&(ee.subres.versionId=ee.versionId),a=this._objectRequestParams("HEAD",re,ee),a.successStatuses=[200],b.next=8,this.request(a);case 8:return y=b.sent,b.abrupt("return",{status:y.status,res:y.res});case 10:case"end":return b.stop()}},oe,this)}));function ae(oe,re){return ue.apply(this,arguments)}return ae}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],41:[function(E,pe,de){"use strict";var se=E("@babel/runtime/helpers/interopRequireDefault"),ne=se(E("@babel/runtime/regenerator"));E("core-js/modules/es.object.assign.js"),E("core-js/modules/es.object.to-string.js"),E("core-js/modules/web.dom-collections.for-each.js");var ie=se(E("@babel/runtime/helpers/asyncToGenerator")),ce=de,ue=E("../utils/isObject"),ae=ue.isObject;ce.getObjectTagging=function(){var oe=(0,ie.default)(ne.default.mark(function ee(a){var y,x,b,z,te,le,fe=arguments;return ne.default.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:return y=fe.length>1&&fe[1]!==void 0?fe[1]:{},y.subres=Object.assign({tagging:""},y.subres),y.versionId&&(y.subres.versionId=y.versionId),a=this._objectName(a),x=this._objectRequestParams("GET",a,y),x.successStatuses=[200],me.next=8,this.request(x);case 8:return b=me.sent,me.next=11,this.parseXML(b.data);case 11:return z=me.sent,te=z.TagSet.Tag,te=te&&ae(te)?[te]:te||[],le={},te.forEach(function(he){le[he.Key]=he.Value}),me.abrupt("return",{status:b.status,res:b.res,tag:le});case 17:case"end":return me.stop()}},ee,this)}));function re(ee){return oe.apply(this,arguments)}return re}()},{"../utils/isObject":70,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],42:[function(E,pe,de){"use strict";var se=E("../utils/isIP"),ne=se.isIP,ie=de;ie.getObjectUrl=function(ue,ae){if(ne(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");return ae?ae[ae.length-1]!=="/"&&(ae+="/"):ae=this.options.endpoint.format(),ae+this._escape(this._objectName(ue))}},{"../utils/isIP":69}],43:[function(E,pe,de){"use strict";var se=E("@babel/runtime/helpers/interopRequireDefault"),ne=se(E("@babel/runtime/regenerator"));E("core-js/modules/es.object.assign.js");var ie=se(E("@babel/runtime/helpers/asyncToGenerator")),ce=de;ce.getSymlink=function(){var ue=(0,ie.default)(ne.default.mark(function oe(re){var ee,a,y,x,b=arguments;return ne.default.wrap(function(te){for(;;)switch(te.prev=te.next){case 0:return ee=b.length>1&&b[1]!==void 0?b[1]:{},ee.subres=Object.assign({symlink:""},ee.subres),ee.versionId&&(ee.subres.versionId=ee.versionId),re=this._objectName(re),a=this._objectRequestParams("GET",re,ee),a.successStatuses=[200],te.next=8,this.request(a);case 8:return y=te.sent,x=y.res.headers["x-oss-symlink-target"],te.abrupt("return",{targetName:decodeURIComponent(x),res:y.res});case 11:case"end":return te.stop()}},oe,this)}));function ae(oe){return ue.apply(this,arguments)}return ae}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],44:[function(E,pe,de){"use strict";var se=E("@babel/runtime/helpers/interopRequireDefault"),ne=se(E("@babel/runtime/regenerator"));E("core-js/modules/es.object.assign.js"),E("core-js/modules/es.object.to-string.js"),E("core-js/modules/web.dom-collections.for-each.js"),E("core-js/modules/es.object.keys.js");var ie=se(E("@babel/runtime/helpers/asyncToGenerator")),ce=E("../utils/checkEnv"),ue=ce.checkEnv,ae=de;ae.head=function(){var oe=(0,ie.default)(ne.default.mark(function ee(a){var y,x,b,z,te=arguments;return ne.default.wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:return y=te.length>1&&te[1]!==void 0?te[1]:{},ue("Because HeadObject has gzip enabled, head cannot get the file size correctly. If you need to get the file size, please use getObjectMeta"),y.subres=Object.assign({},y.subres),y.versionId&&(y.subres.versionId=y.versionId),x=this._objectRequestParams("HEAD",a,y),x.successStatuses=[200,304],fe.next=8,this.request(x);case 8:return b=fe.sent,z={meta:null,res:b.res,status:b.status},b.status===200&&Object.keys(b.headers).forEach(function(ge){ge.indexOf("x-oss-meta-")===0&&(z.meta||(z.meta={}),z.meta[ge.substring(11)]=b.headers[ge])}),fe.abrupt("return",z);case 12:case"end":return fe.stop()}},ee,this)}));function re(ee){return oe.apply(this,arguments)}return re}()},{"../utils/checkEnv":53,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],45:[function(E,pe,de){"use strict";var se=E("@babel/runtime/helpers/interopRequireDefault"),ne=se(E("@babel/runtime/regenerator"));E("core-js/modules/es.object.assign.js");var ie=se(E("@babel/runtime/helpers/asyncToGenerator")),ce=de;ce.putACL=function(){var ue=(0,ie.default)(ne.default.mark(function oe(re,ee,a){var y,x;return ne.default.wrap(function(z){for(;;)switch(z.prev=z.next){case 0:return a=a||{},a.subres=Object.assign({acl:""},a.subres),a.versionId&&(a.subres.versionId=a.versionId),a.headers=a.headers||{},a.headers["x-oss-object-acl"]=ee,re=this._objectName(re),y=this._objectRequestParams("PUT",re,a),y.successStatuses=[200],z.next=10,this.request(y);case 10:return x=z.sent,z.abrupt("return",{res:x.res});case 12:case"end":return z.stop()}},oe,this)}));function ae(oe,re,ee){return ue.apply(this,arguments)}return ae}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],46:[function(E,pe,de){"use strict";var se=E("@babel/runtime/helpers/interopRequireDefault"),ne=se(E("@babel/runtime/regenerator"));E("core-js/modules/es.object.assign.js"),E("core-js/modules/es.array.map.js"),E("core-js/modules/es.object.keys.js");var ie=se(E("@babel/runtime/helpers/asyncToGenerator")),ce=E("../utils/obj2xml"),ue=ce.obj2xml,ae=E("../utils/checkObjectTag"),oe=ae.checkObjectTag,re=de;re.putObjectTagging=function(){var ee=(0,ie.default)(ne.default.mark(function y(x,b){var z,te,le,fe,ge=arguments;return ne.default.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return z=ge.length>2&&ge[2]!==void 0?ge[2]:{},oe(b),z.subres=Object.assign({tagging:""},z.subres),z.versionId&&(z.subres.versionId=z.versionId),x=this._objectName(x),te=this._objectRequestParams("PUT",x,z),te.successStatuses=[200],b=Object.keys(b).map(function(Se){return{Key:Se,Value:b[Se]}}),le={Tagging:{TagSet:{Tag:b}}},te.mime="xml",te.content=ue(le),he.next=13,this.request(te);case 13:return fe=he.sent,he.abrupt("return",{res:fe.res,status:fe.status});case 15:case"end":return he.stop()}},y,this)}));function a(y,x){return ee.apply(this,arguments)}return a}()},{"../utils/checkObjectTag":54,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.map.js":280,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290}],47:[function(E,pe,de){"use strict";var se=E("@babel/runtime/helpers/interopRequireDefault"),ne=se(E("@babel/runtime/regenerator"));E("core-js/modules/es.object.assign.js");var ie=se(E("@babel/runtime/helpers/asyncToGenerator")),ce=de;ce.putSymlink=function(){var ue=(0,ie.default)(ne.default.mark(function oe(re,ee,a){var y,x;return ne.default.wrap(function(z){for(;;)switch(z.prev=z.next){case 0:return a=a||{},a.headers=a.headers||{},ee=this._escape(this._objectName(ee)),this._convertMetaToHeaders(a.meta,a.headers),a.headers["x-oss-symlink-target"]=ee,a.subres=Object.assign({symlink:""},a.subres),a.versionId&&(a.subres.versionId=a.versionId),a.storageClass&&(a.headers["x-oss-storage-class"]=a.storageClass),re=this._objectName(re),y=this._objectRequestParams("PUT",re,a),y.successStatuses=[200],z.next=13,this.request(y);case 13:return x=z.sent,z.abrupt("return",{res:x.res});case 15:case"end":return z.stop()}},oe,this)}));function ae(oe,re,ee){return ue.apply(this,arguments)}return ae}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],48:[function(E,pe,de){"use strict";var se=E("url"),ne=E("utility"),ie=E("copy-to"),ce=E("../../common/signUtils"),ue=E("../utils/isIP"),ae=ue.isIP,oe=de;oe.signatureUrl=function(ee,a){if(ae(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");a=a||{},ee=this._objectName(ee),a.method=a.method||"GET";var y=ne.timestamp()+(a.expires||1800),x={bucket:this.options.bucket,object:ee},b=this._getResource(x);this.options.stsToken&&(a["security-token"]=this.options.stsToken);var z=ce._signatureForURL(this.options.accessKeySecret,a,b,y),te=se.parse(this._getReqUrl(x));return te.query={OSSAccessKeyId:this.options.accessKeyId,Expires:y,Signature:z.Signature},ie(z.subResource).to(te.query),te.format()}},{"../../common/signUtils":50,"../utils/isIP":69,"copy-to":94,url:472,utility:474}],49:[function(E,pe,de){"use strict";var se=E("@babel/runtime/helpers/interopRequireDefault"),ne=se(E("@babel/runtime/regenerator"));E("core-js/modules/es.array.iterator.js"),E("core-js/modules/es.object.to-string.js"),E("core-js/modules/es.promise.js"),E("core-js/modules/es.string.iterator.js"),E("core-js/modules/web.dom-collections.iterator.js"),E("core-js/modules/web.dom-collections.for-each.js"),E("core-js/modules/es.function.name.js");var ie=se(E("@babel/runtime/helpers/asyncToGenerator")),ce=E("./utils/isArray"),ue=ce.isArray,ae=de;ae._parallelNode=function(){var oe=(0,ie.default)(ne.default.mark(function ee(a,y,x,b){var z,te,le,fe,ge,me,he,Se;return ne.default.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:z=this,te=[],le=[],fe=a.length/y,ge=a.length%y,me=ge===0?fe:(a.length-ge)/y+1,he=1,Se=0;case 8:if(!(Se0){fe=!0,ge<=0&&x(b);return}ge+=1,Se(Pe.value,z(he))}me=!1}ye()})},ae.cancel=function(re){this.options.cancelFlag=!0,ue(this.multipartUploadStreams)&&this.multipartUploadStreams.forEach(function(ee){if(ee.destroyed===!1){var a={name:"cancel",message:"cancel"};ee.destroy(a)}}),this.multipartUploadStreams=[],re&&this.abortMultipartUpload(re.name,re.uploadId,re.options)},ae.isCancel=function(){return this.options.cancelFlag},ae.resetCancelFlag=function(){this.options.cancelFlag=!1},ae._stop=function(){this.options.cancelFlag=!0},ae._makeCancelEvent=function(){var re={status:0,name:"cancel"};return re},ae._makeAbortEvent=function(){var re={status:0,name:"abort",message:"upload task has been abort"};return re}},{"./utils/isArray":63,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.iterator.js":278,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.string.iterator.js":303,"core-js/modules/web.dom-collections.for-each.js":339,"core-js/modules/web.dom-collections.iterator.js":340}],50:[function(E,pe,de){(function(se){(function(){"use strict";E("core-js/modules/es.string.trim.js"),E("core-js/modules/es.array.sort.js"),E("core-js/modules/es.array.join.js"),E("core-js/modules/es.object.to-string.js"),E("core-js/modules/web.dom-collections.for-each.js"),E("core-js/modules/es.object.keys.js"),E("core-js/modules/es.array.concat.js"),E("core-js/modules/es.regexp.to-string.js");var ne=E("./../../shims/crypto/crypto.js"),ie=E("is-type-of"),ce=E("./utils/lowercaseKeyHeader"),ue=ce.lowercaseKeyHeader;de.buildCanonicalizedResource=function(oe,re){var ee="".concat(oe),a="?";if(ie.string(re)&&re.trim()!=="")ee+=a+re;else if(ie.array(re))re.sort(),ee+=a+re.join("&");else if(re){var y=function(z,te){return z[0]>te[0]?1:z[0]2&&arguments[2]!==void 0?arguments[2]:"utf-8",a=ne.createHmac("sha1",oe);return a.update(se.from(re,ee)).digest("base64")},de.authorization=function(oe,re,ee,a){return"OSS ".concat(oe,":").concat(this.computeSignature(re,ee,a))},de._signatureForURL=function(oe){var re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ee=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,y=arguments.length>4?arguments[4]:void 0,x={},b=re.subResource,z=b===void 0?{}:b;if(re.process){var te="x-oss-process";z[te]=re.process}if(re.trafficLimit){var le="x-oss-traffic-limit";z[le]=re.trafficLimit}if(re.response&&Object.keys(re.response).forEach(function(he){var Se="response-".concat(he.toLowerCase());z[Se]=re.response[he]}),Object.keys(re).forEach(function(he){var Se=he.toLowerCase(),ye=re[he];Se.indexOf("x-oss-")===0?x[Se]=ye:(Se.indexOf("content-md5")===0||Se.indexOf("content-type")===0)&&(x[he]=ye)}),Object.prototype.hasOwnProperty.call(re,"security-token")&&(z["security-token"]=re["security-token"]),Object.prototype.hasOwnProperty.call(re,"callback")){var fe={callbackUrl:encodeURI(re.callback.url),callbackBody:re.callback.body};if(re.callback.host&&(fe.callbackHost=re.callback.host),re.callback.contentType&&(fe.callbackBodyType=re.callback.contentType),z.callback=se.from(JSON.stringify(fe)).toString("base64"),re.callback.customValue){var ge={};Object.keys(re.callback.customValue).forEach(function(he){ge["x:".concat(he)]=re.callback.customValue[he]}),z["callback-var"]=se.from(JSON.stringify(ge)).toString("base64")}}var me=this.buildCanonicalString(re.method,ee,{headers:x,parameters:z},a.toString());return{Signature:this.computeSignature(oe,me,y),subResource:z}}}).call(this)}).call(this,E("buffer").Buffer)},{"./../../shims/crypto/crypto.js":461,"./utils/lowercaseKeyHeader":71,buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.join.js":279,"core-js/modules/es.array.sort.js":282,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.trim.js":308,"core-js/modules/web.dom-collections.for-each.js":339,"is-type-of":466}],51:[function(E,pe,de){"use strict";E("core-js/modules/es.regexp.exec.js"),Object.defineProperty(de,"__esModule",{value:!0}),de.checkBucketName=void 0,de.checkBucketName=function(se){var ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ie=ne?/^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$/:/^[a-z0-9_][a-z0-9-_]{1,61}[a-z0-9_]$/;if(!ie.test(se))throw new Error("The bucket must be conform to the specifications")}},{"core-js/modules/es.regexp.exec.js":300}],52:[function(E,pe,de){"use strict";E("core-js/modules/es.regexp.exec.js"),Object.defineProperty(de,"__esModule",{value:!0}),de.checkConfigValid=void 0;var se={endpoint:ne,region:/^[a-zA-Z0-9\-_]+$/};function ne(ie){return typeof ie=="string"?/^[a-zA-Z0-9._:/-]+$/.test(ie):ie.host?/^[a-zA-Z0-9._:/-]+$/.test(ie.host):!1}de.checkConfigValid=function(ie,ce){if(se[ce]){var ue=!0;if(se[ce]instanceof Function?ue=se[ce](ie):ue=se[ce].test(ie),!ue)throw new Error("The ".concat(ce," must be conform to the specifications"))}}},{"core-js/modules/es.regexp.exec.js":300}],53:[function(E,pe,de){(function(se){(function(){"use strict";Object.defineProperty(de,"__esModule",{value:!0}),de.checkEnv=void 0;function ne(ie){se.browser&&console.warn(ie)}de.checkEnv=ne}).call(this)}).call(this,E("_process"))},{_process:467}],54:[function(E,pe,de){"use strict";E("core-js/modules/es.array.concat.js"),E("core-js/modules/es.object.entries.js"),E("core-js/modules/es.object.to-string.js"),E("core-js/modules/web.dom-collections.for-each.js"),Object.defineProperty(de,"__esModule",{value:!0}),de.checkObjectTag=void 0;var se=E("./checkValid"),ne=se.checkValid,ie=E("./isObject"),ce=ie.isObject,ue=[{validator:function(ee){if(typeof ee!="string")throw new Error("the key and value of the tag must be String")}},{pattern:/^[a-zA-Z0-9 +-=._:/]+$/,msg:"tag can contain letters, numbers, spaces, and the following symbols: plus sign (+), hyphen (-), equal sign (=), period (.), underscore (_), colon (:), and forward slash (/)"}],ae={key:[].concat(ue,[{pattern:/^.{1,128}$/,msg:"tag key can be a maximum of 128 bytes in length"}]),value:[].concat(ue,[{pattern:/^.{0,256}$/,msg:"tag value can be a maximum of 256 bytes in length"}])};function oe(re){if(!ce(re))throw new Error("tag must be Object");var ee=Object.entries(re);if(ee.length>10)throw new Error("maximum of 10 tags for a object");var a=["key","value"];ee.forEach(function(y){y.forEach(function(x,b){ne(x,ae[a[b]])})})}de.checkObjectTag=oe},{"./checkValid":55,"./isObject":70,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.object.entries.js":288,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],55:[function(E,pe,de){"use strict";E("core-js/modules/es.object.to-string.js"),E("core-js/modules/web.dom-collections.for-each.js"),E("core-js/modules/es.regexp.exec.js"),Object.defineProperty(de,"__esModule",{value:!0}),de.checkValid=void 0;function se(ne,ie){ie.forEach(function(ce){if(ce.validator)ce.validator(ne);else if(ce.pattern&&!ce.pattern.test(ne))throw new Error(ce.msg)})}de.checkValid=se},{"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/web.dom-collections.for-each.js":339}],56:[function(E,pe,de){(function(se){(function(){"use strict";E("core-js/modules/es.array.includes.js"),E("core-js/modules/es.string.includes.js"),E("core-js/modules/es.object.assign.js"),E("core-js/modules/es.array.concat.js"),Object.defineProperty(de,"__esModule",{value:!0}),de.createRequest=void 0;var ne=E("./../../../shims/crypto/crypto.js"),ie=E("debug")("ali-oss"),ce=E("mime"),ue=E("dateformat"),ae=E("copy-to"),oe=E("path"),re=E("./encoder"),ee=re.encoder,a=E("./isIP"),y=a.isIP,x=E("./setRegion"),b=x.setRegion,z=E("../client/getReqUrl"),te=z.getReqUrl,le=E("./isDingTalk"),fe=le.isDingTalk;function ge(Se,ye){return Se[ye]||Se[ye.toLowerCase()]}function me(Se,ye){delete Se[ye],delete Se[ye.toLowerCase()]}function he(Se){var ye=new Date;this.options.amendTimeSkewed&&(ye=+new Date+this.options.amendTimeSkewed);var Pe={"x-oss-date":ue(ye,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'")};typeof window!="undefined"&&(Pe["x-oss-user-agent"]=this.userAgent),this.userAgent.includes("nodejs")&&(Pe["User-Agent"]=this.userAgent),this.options.isRequestPay&&Object.assign(Pe,{"x-oss-request-payer":"requester"}),this.options.stsToken&&(Pe["x-oss-security-token"]=this.options.stsToken),ae(Se.headers).to(Pe),ge(Pe,"Content-Type")||(Se.mime&&Se.mime.indexOf("/")>0?Pe["Content-Type"]=Se.mime:fe()?Pe["Content-Type"]="application/octet-stream":Pe["Content-Type"]=ce.getType(Se.mime||oe.extname(Se.object||""))),ge(Pe,"Content-Type")||me(Pe,"Content-Type"),Se.content&&(Se.disabledMD5||(!Se.headers||!Se.headers["Content-MD5"]?Pe["Content-MD5"]=ne.createHash("md5").update(se.from(Se.content,"utf8")).digest("base64"):Pe["Content-MD5"]=Se.headers["Content-MD5"]),Pe["Content-Length"]||(Pe["Content-Length"]=Se.content.length));var we=Object.prototype.hasOwnProperty;for(var De in Pe)Pe[De]&&we.call(Pe,De)&&(Pe[De]=ee(String(Pe[De]),this.options.headerEncoding));var Ee=this._getResource(Se);if(Pe.authorization=this.authorization(Se.method,Ee,Se.subres,Pe,this.options.headerEncoding),y(this.options.endpoint.hostname)){var Ae=this.options,Ce=Ae.region,je=Ae.internal,Me=Ae.secure,Ge=b(Ce,je,Me);Pe.host="".concat(Se.bucket,".").concat(Ge.host)}var Fe=te.bind(this)(Se);ie("request %s %s, with headers %j, !!stream: %s",Se.method,Fe,Pe,!!Se.stream);var Je=Se.timeout||this.options.timeout,qe={method:Se.method,content:Se.content,stream:Se.stream,headers:Pe,timeout:Je,writeStream:Se.writeStream,customResponse:Se.customResponse,ctx:Se.ctx||this.ctx};return this.agent&&(qe.agent=this.agent),this.httpsAgent&&(qe.httpsAgent=this.httpsAgent),qe.enableProxy=!!this.options.enableProxy,qe.proxy=this.options.proxy?this.options.proxy:null,{url:Fe,params:qe}}de.createRequest=he}).call(this)}).call(this,E("buffer").Buffer)},{"../client/getReqUrl":25,"./../../../shims/crypto/crypto.js":461,"./encoder":59,"./isDingTalk":66,"./isIP":69,"./setRegion":75,buffer:90,"copy-to":94,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.string.includes.js":302,dateformat:342,debug:465,mime:374,path:378}],57:[function(E,pe,de){"use strict";E("core-js/modules/es.object.to-string.js"),E("core-js/modules/web.dom-collections.for-each.js"),E("core-js/modules/es.object.entries.js"),E("core-js/modules/es.regexp.exec.js"),E("core-js/modules/es.string.replace.js"),E("core-js/modules/es.array.includes.js"),E("core-js/modules/es.object.keys.js"),Object.defineProperty(de,"__esModule",{value:!0}),de.dataFix=void 0;var se=E("./isObject"),ne=["true","TRUE","1",1],ie=["false","FALSE","0",0];function ce(oe,re,ee){if(se.isObject(oe)){var a=re.remove,y=a===void 0?[]:a,x=re.rename,b=x===void 0?{}:x,z=re.camel,te=z===void 0?[]:z,le=re.bool,fe=le===void 0?[]:le,ge=re.lowerFirst,me=ge===void 0?!1:ge;return y.forEach(function(he){return delete oe[he]}),Object.entries(b).forEach(function(he){oe[he[0]]&&(oe[he[1]]||(oe[he[1]]=oe[he[0]],delete oe[he[0]]))}),te.forEach(function(he){if(oe[he]){var Se=he.replace(/^(.)/,function(ye){return ye.toLowerCase()}).replace(/-(\w)/g,function(ye,Pe){return Pe.toUpperCase()});oe[Se]||(oe[Se]=oe[he])}}),fe.forEach(function(he){oe[he]=ue(oe[he])}),typeof ee=="function"&&ee(oe),ae(oe,me),ce}}de.dataFix=ce;function ue(oe){return oe?ne.includes(oe)?!0:ie.includes(oe)?!1:oe:!1}function ae(oe,re){re&&Object.keys(oe).forEach(function(ee){var a=ee.replace(/^\w/,function(y){return y.toLowerCase()});typeof oe[a]=="undefined"&&(oe[a]=oe[ee],delete oe[ee])})}},{"./isObject":70,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.entries.js":288,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],58:[function(E,pe,de){"use strict";var se=E("@babel/runtime/helpers/interopRequireDefault");E("core-js/modules/es.array.slice.js"),E("core-js/modules/es.object.to-string.js"),E("core-js/modules/web.dom-collections.for-each.js"),E("core-js/modules/es.object.keys.js");var ne=se(E("@babel/runtime/helpers/typeof"));Object.defineProperty(de,"__esModule",{value:!0}),de.deepCopyWith=de.deepCopy=void 0;var ie=E("./isBuffer");de.deepCopy=function(ce){if(ce===null||(0,ne.default)(ce)!=="object")return ce;if(ie.isBuffer(ce))return ce.slice();var ue=Array.isArray(ce)?[]:{};return Object.keys(ce).forEach(function(ae){ue[ae]=de.deepCopy(ce[ae])}),ue},de.deepCopyWith=function(ce,ue){function ae(oe,re,ee){var a=ue(oe,re,ee);if(a!==void 0)return a;if(oe===null||(0,ne.default)(oe)!=="object")return oe;if(ie.isBuffer(oe))return oe.slice();var y=Array.isArray(oe)?[]:{};return Object.keys(oe).forEach(function(x){y[x]=ae(oe[x],x,oe)}),y}return ue?ae(ce,"",null):de.deepCopy(ce)}},{"./isBuffer":65,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],59:[function(E,pe,de){(function(se){(function(){"use strict";E("core-js/modules/es.object.to-string.js"),E("core-js/modules/es.regexp.to-string.js"),Object.defineProperty(de,"__esModule",{value:!0}),de.encoder=void 0;function ne(ie){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"utf-8";return ce==="utf-8"?ie:se.from(ie).toString("latin1")}de.encoder=ne}).call(this)}).call(this,E("buffer").Buffer)},{buffer:90,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301}],60:[function(E,pe,de){"use strict";E("core-js/modules/es.array.map.js"),E("core-js/modules/es.regexp.exec.js"),E("core-js/modules/es.string.replace.js"),Object.defineProperty(de,"__esModule",{value:!0}),de.formatInventoryConfig=void 0;var se=E("../utils/dataFix"),ne=E("../utils/isObject"),ie=E("../utils/isArray"),ce=E("../utils/formatObjKey");function ue(oe){var re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return re&&ne.isObject(oe)&&(oe=[oe]),ie.isArray(oe)?oe=oe.map(ae):oe=ae(oe),oe}de.formatInventoryConfig=ue;function ae(oe){return se.dataFix(oe,{bool:["IsEnabled"]},function(re){var ee,a;re.prefix=re.Filter.Prefix,delete re.Filter,re.OSSBucketDestination=re.Destination.OSSBucketDestination,re.OSSBucketDestination.rolename=re.OSSBucketDestination.RoleArn.replace(/.*\//,""),delete re.OSSBucketDestination.RoleArn,re.OSSBucketDestination.bucket=re.OSSBucketDestination.Bucket.replace(/.*:::/,""),delete re.OSSBucketDestination.Bucket,delete re.Destination,re.frequency=re.Schedule.Frequency,delete re.Schedule.Frequency,!((ee=re==null?void 0:re.OptionalFields)===null||ee===void 0)&&ee.Field&&!ie.isArray((a=re.OptionalFields)===null||a===void 0?void 0:a.Field)&&(re.OptionalFields.Field=[re.OptionalFields.Field])}),oe=ce.formatObjKey(oe,"firstLowerCase",{exclude:["OSSBucketDestination","SSE-OSS","SSE-KMS"]}),oe}},{"../utils/dataFix":57,"../utils/formatObjKey":61,"../utils/isArray":63,"../utils/isObject":70,"core-js/modules/es.array.map.js":280,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305}],61:[function(E,pe,de){"use strict";var se=E("@babel/runtime/helpers/interopRequireDefault");E("core-js/modules/es.object.to-string.js"),E("core-js/modules/web.dom-collections.for-each.js"),E("core-js/modules/es.object.keys.js"),E("core-js/modules/es.array.includes.js"),E("core-js/modules/es.string.includes.js"),E("core-js/modules/es.regexp.exec.js"),E("core-js/modules/es.string.replace.js");var ne=se(E("@babel/runtime/helpers/typeof"));Object.defineProperty(de,"__esModule",{value:!0}),de.formatObjKey=void 0;function ie(ue,ae,oe){if(ue===null||(0,ne.default)(ue)!=="object")return ue;var re;if(Array.isArray(ue)){re=[];for(var ee=0;ee `),ue&&ue.firstUpperCase&&(ce=se.formatObjKey(ce,"firstUpperCase")),ne(ce)==="object"?Object.keys(ce).forEach(function(oe){ne(ce[oe])!=="undefined"&&ne(ce[oe])!=="null"&&(ne(ce[oe])==="string"||ne(ce[oe])==="number"?ae+="<".concat(oe,">").concat(ce[oe],""):ne(ce[oe])==="object"?ae+="<".concat(oe,">").concat(ie(ce[oe]),""):ne(ce[oe])==="array"?ae+=ce[oe].map(function(re){return"<".concat(oe,">").concat(ie(re),"")}).join(""):ae+="<".concat(oe,">").concat(ce[oe].toString(),""))}):ae+=ce.toString(),ae}de.obj2xml=ie},{"./formatObjKey":61,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.join.js":279,"core-js/modules/es.array.map.js":280,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],73:[function(E,pe,de){"use strict";E("core-js/modules/es.array.slice.js"),E("core-js/modules/es.object.to-string.js"),E("core-js/modules/es.function.name.js"),E("core-js/modules/es.array.from.js"),E("core-js/modules/es.string.iterator.js"),E("core-js/modules/es.regexp.exec.js"),E("core-js/modules/es.symbol.js"),E("core-js/modules/es.symbol.description.js"),E("core-js/modules/es.symbol.iterator.js"),E("core-js/modules/es.array.iterator.js"),E("core-js/modules/web.dom-collections.iterator.js"),E("core-js/modules/es.object.assign.js");function se(ue,ae){var oe=typeof Symbol!="undefined"&&ue[Symbol.iterator]||ue["@@iterator"];if(!oe){if(Array.isArray(ue)||(oe=ne(ue))||ae&&ue&&typeof ue.length=="number"){oe&&(ue=oe);var re=0,ee=function(){};return{s:ee,n:function(){return re>=ue.length?{done:!0}:{done:!1,value:ue[re++]}},e:function(z){throw z},f:ee}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,y=!1,x;return{s:function(){oe=oe.call(ue)},n:function(){var z=oe.next();return a=z.done,z},e:function(z){y=!0,x=z},f:function(){try{!a&&oe.return!=null&&oe.return()}finally{if(y)throw x}}}}function ne(ue,ae){if(ue){if(typeof ue=="string")return ie(ue,ae);var oe=Object.prototype.toString.call(ue).slice(8,-1);if(oe==="Object"&&ue.constructor&&(oe=ue.constructor.name),oe==="Map"||oe==="Set")return Array.from(ue);if(oe==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(oe))return ie(ue,ae)}}function ie(ue,ae){(ae==null||ae>ue.length)&&(ae=ue.length);for(var oe=0,re=new Array(ae);oe2&&arguments[2]!==void 0?arguments[2]:{},ue=0,ae=ce.retryDelay,oe=ae===void 0?500:ae,re=ce.errorHandler,ee=re===void 0?function(){return!0}:re,a=function y(){for(var x=arguments.length,b=new Array(x),z=0;z1&&arguments[1]!==void 0?arguments[1]:!1,oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;ie.checkConfigValid(ue,"region");var re=oe?"https://":"http://",ee=ae?"-internal.aliyuncs.com":".aliyuncs.com",a="vpc100-oss-cn-";return ue.substr(0,a.length)===a&&(ee=".aliyuncs.com"),ne.default.parse(re+ue+ee)}de.setRegion=ce},{"./checkConfigValid":52,url:472}],76:[function(E,pe,de){"use strict";var se=E("@babel/runtime/helpers/interopRequireDefault"),ne=se(E("@babel/runtime/regenerator"));E("core-js/modules/es.object.keys.js"),E("core-js/modules/es.object.to-string.js"),E("core-js/modules/es.array.find.js"),E("core-js/modules/es.object.assign.js");var ie=se(E("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(de,"__esModule",{value:!0}),de.checkCredentials=de.setSTSToken=void 0;var ce=E("./formatObjKey");function ue(){return ae.apply(this,arguments)}function ae(){return ae=(0,ie.default)(ne.default.mark(function re(){var ee,a;return ne.default.wrap(function(x){for(;;)switch(x.prev=x.next){case 0:if(this.options||(this.options={}),ee=new Date,!this.stsTokenFreshTime){x.next=14;break}if(!(+ee-this.stsTokenFreshTime>=this.options.refreshSTSTokenInterval)){x.next=12;break}return this.stsTokenFreshTime=ee,x.next=7,this.options.refreshSTSToken();case 7:a=x.sent,a=ce.formatObjKey(a,"firstLowerCase"),a.securityToken&&(a.stsToken=a.securityToken),oe(a),Object.assign(this.options,a);case 12:x.next=15;break;case 14:this.stsTokenFreshTime=ee;case 15:return x.abrupt("return",null);case 16:case"end":return x.stop()}},re,this)})),ae.apply(this,arguments)}de.setSTSToken=ue;function oe(re){var ee=["accessKeySecret","accessKeyId","stsToken"],a=Object.keys(re);ee.forEach(function(y){if(!a.find(function(x){return x===y}))throw Error("refreshSTSToken must return contains ".concat(y))})}de.checkCredentials=oe},{"./formatObjKey":61,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.find.js":275,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291}],77:[function(E,pe,de){function se(ie,ce,ue,ae,oe,re,ee){try{var a=ie[re](ee),y=a.value}catch(x){ue(x);return}a.done?ce(y):Promise.resolve(y).then(ae,oe)}function ne(ie){return function(){var ce=this,ue=arguments;return new Promise(function(ae,oe){var re=ie.apply(ce,ue);function ee(y){se(re,ae,oe,ee,a,"next",y)}function a(y){se(re,ae,oe,ee,a,"throw",y)}ee(void 0)})}}pe.exports=ne,pe.exports.__esModule=!0,pe.exports.default=pe.exports},{}],78:[function(E,pe,de){function se(ne){return ne&&ne.__esModule?ne:{default:ne}}pe.exports=se,pe.exports.__esModule=!0,pe.exports.default=pe.exports},{}],79:[function(E,pe,de){function se(ne){"@babel/helpers - typeof";return pe.exports=se=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ie){return typeof ie}:function(ie){return ie&&typeof Symbol=="function"&&ie.constructor===Symbol&&ie!==Symbol.prototype?"symbol":typeof ie},pe.exports.__esModule=!0,pe.exports.default=pe.exports,se(ne)}pe.exports=se,pe.exports.__esModule=!0,pe.exports.default=pe.exports},{}],80:[function(E,pe,de){pe.exports=E("regenerator-runtime")},{"regenerator-runtime":395}],81:[function(E,pe,de){pe.exports=se,pe.exports.HttpsAgent=se;function se(){}},{}],82:[function(E,pe,de){(function(se){(function(){"use strict";var ne=E("object-assign");function ie(Ce,je){if(Ce===je)return 0;for(var Me=Ce.length,Ge=je.length,Fe=0,Je=Math.min(Me,Ge);Fe=0){var Xe=Fe.indexOf(` `,qe+1);Fe=Fe.substring(Xe+1)}this.stack=Fe}}},ue.inherits(y.AssertionError,Error);function z(Ce,je){return typeof Ce=="string"?Ce.length=0;We--)if(qe[We]!==Xe[We])return!1;for(We=qe.length-1;We>=0;We--)if(Ve=qe[We],!me(Ce[Ve],je[Ve],Me,Ge))return!1;return!0}y.notDeepEqual=function(je,Me,Ge){me(je,Me,!1)&&fe(je,Me,Ge,"notDeepEqual",y.notDeepEqual)},y.notDeepStrictEqual=ye;function ye(Ce,je,Me){me(Ce,je,!0)&&fe(Ce,je,Me,"notDeepStrictEqual",ye)}y.strictEqual=function(je,Me,Ge){je!==Me&&fe(je,Me,Ge,"===",y.strictEqual)},y.notStrictEqual=function(je,Me,Ge){je===Me&&fe(je,Me,Ge,"!==",y.notStrictEqual)};function Pe(Ce,je){if(!Ce||!je)return!1;if(Object.prototype.toString.call(je)=="[object RegExp]")return je.test(Ce);try{if(Ce instanceof je)return!0}catch(Me){}return Error.isPrototypeOf(je)?!1:je.call({},Ce)===!0}function we(Ce){var je;try{Ce()}catch(Me){je=Me}return je}function De(Ce,je,Me,Ge){var Fe;if(typeof je!="function")throw new TypeError('"block" argument must be a function');typeof Me=="string"&&(Ge=Me,Me=null),Fe=we(je),Ge=(Me&&Me.name?" ("+Me.name+").":".")+(Ge?" "+Ge:"."),Ce&&!Fe&&fe(Fe,Me,"Missing expected exception"+Ge);var Je=typeof Ge=="string",qe=!Ce&&ue.isError(Fe),Xe=!Ce&&Fe&&!Me;if((qe&&Je&&Pe(Fe,Me)||Xe)&&fe(Fe,Me,"Got unwanted exception"+Ge),Ce&&Fe&&Me&&!Pe(Fe,Me)||!Ce&&Fe)throw Fe}y.throws=function(Ce,je,Me){De(!0,Ce,je,Me)},y.doesNotThrow=function(Ce,je,Me){De(!1,Ce,je,Me)},y.ifError=function(Ce){if(Ce)throw Ce};function Ee(Ce,je){Ce||fe(Ce,!0,je,"==",Ee)}y.strict=ne(Ee,y,{equal:y.strictEqual,deepEqual:y.deepStrictEqual,notEqual:y.notStrictEqual,notDeepEqual:y.notDeepStrictEqual}),y.strict.strict=y.strict;var Ae=Object.keys||function(Ce){var je=[];for(var Me in Ce)ae.call(Ce,Me)&&je.push(Me);return je}}).call(this)}).call(this,typeof dt!="undefined"?dt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"object-assign":377,"util/":85}],83:[function(E,pe,de){typeof Object.create=="function"?pe.exports=function(ne,ie){ne.super_=ie,ne.prototype=Object.create(ie.prototype,{constructor:{value:ne,enumerable:!1,writable:!0,configurable:!0}})}:pe.exports=function(ne,ie){ne.super_=ie;var ce=function(){};ce.prototype=ie.prototype,ne.prototype=new ce,ne.prototype.constructor=ne}},{}],84:[function(E,pe,de){pe.exports=function(ne){return ne&&typeof ne=="object"&&typeof ne.copy=="function"&&typeof ne.fill=="function"&&typeof ne.readUInt8=="function"}},{}],85:[function(E,pe,de){(function(se,ne){(function(){var ie=/%[sdj%]/g;de.format=function(Xe){if(!Se(Xe)){for(var Ve=[],We=0;We=Ue)return ut;switch(ut){case"%s":return String(ze[We++]);case"%d":return Number(ze[We++]);case"%j":try{return JSON.stringify(ze[We++])}catch(Ye){return"[Circular]"}default:return ut}}),Qe=ze[We];We=3&&(We.depth=arguments[2]),arguments.length>=4&&(We.colors=arguments[3]),fe(Ve)?We.showHidden=Ve:Ve&&de._extend(We,Ve),Pe(We.showHidden)&&(We.showHidden=!1),Pe(We.depth)&&(We.depth=2),Pe(We.colors)&&(We.colors=!1),Pe(We.customInspect)&&(We.customInspect=!0),We.colors&&(We.stylize=oe),a(We,Xe,We.depth)}de.inspect=ae,ae.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},ae.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function oe(Xe,Ve){var We=ae.styles[Ve];return We?"\x1B["+ae.colors[We][0]+"m"+Xe+"\x1B["+ae.colors[We][1]+"m":Xe}function re(Xe,Ve){return Xe}function ee(Xe){var Ve={};return Xe.forEach(function(We,ze){Ve[We]=!0}),Ve}function a(Xe,Ve,We){if(Xe.customInspect&&Ve&&Ce(Ve.inspect)&&Ve.inspect!==de.inspect&&!(Ve.constructor&&Ve.constructor.prototype===Ve)){var ze=Ve.inspect(We,Xe);return Se(ze)||(ze=a(Xe,ze,We)),ze}var Ue=y(Xe,Ve);if(Ue)return Ue;var ot=Object.keys(Ve),Qe=ee(ot);if(Xe.showHidden&&(ot=Object.getOwnPropertyNames(Ve)),Ae(Ve)&&(ot.indexOf("message")>=0||ot.indexOf("description")>=0))return x(Ve);if(ot.length===0){if(Ce(Ve)){var ut=Ve.name?": "+Ve.name:"";return Xe.stylize("[Function"+ut+"]","special")}if(we(Ve))return Xe.stylize(RegExp.prototype.toString.call(Ve),"regexp");if(Ee(Ve))return Xe.stylize(Date.prototype.toString.call(Ve),"date");if(Ae(Ve))return x(Ve)}var Ye="",He=!1,Re=["{","}"];if(le(Ve)&&(He=!0,Re=["[","]"]),Ce(Ve)){var $e=Ve.name?": "+Ve.name:"";Ye=" [Function"+$e+"]"}if(we(Ve)&&(Ye=" "+RegExp.prototype.toString.call(Ve)),Ee(Ve)&&(Ye=" "+Date.prototype.toUTCString.call(Ve)),Ae(Ve)&&(Ye=" "+x(Ve)),ot.length===0&&(!He||Ve.length==0))return Re[0]+Ye+Re[1];if(We<0)return we(Ve)?Xe.stylize(RegExp.prototype.toString.call(Ve),"regexp"):Xe.stylize("[Object]","special");Xe.seen.push(Ve);var Le;return He?Le=b(Xe,Ve,We,Qe,ot):Le=ot.map(function(Ne){return z(Xe,Ve,We,Qe,Ne,He)}),Xe.seen.pop(),te(Le,Ye,Re)}function y(Xe,Ve){if(Pe(Ve))return Xe.stylize("undefined","undefined");if(Se(Ve)){var We="'"+JSON.stringify(Ve).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return Xe.stylize(We,"string")}if(he(Ve))return Xe.stylize(""+Ve,"number");if(fe(Ve))return Xe.stylize(""+Ve,"boolean");if(ge(Ve))return Xe.stylize("null","null")}function x(Xe){return"["+Error.prototype.toString.call(Xe)+"]"}function b(Xe,Ve,We,ze,Ue){for(var ot=[],Qe=0,ut=Ve.length;Qe-1&&(ot?ut=ut.split(` `).map(function(He){return" "+He}).join(` `).substr(2):ut=` `+ut.split(` `).map(function(He){return" "+He}).join(` `))):ut=Xe.stylize("[Circular]","special")),Pe(Qe)){if(ot&&Ue.match(/^\d+$/))return ut;Qe=JSON.stringify(""+Ue),Qe.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Qe=Qe.substr(1,Qe.length-2),Qe=Xe.stylize(Qe,"name")):(Qe=Qe.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Qe=Xe.stylize(Qe,"string"))}return Qe+": "+ut}function te(Xe,Ve,We){var ze=0,Ue=Xe.reduce(function(ot,Qe){return ze++,Qe.indexOf(` `)>=0&&ze++,ot+Qe.replace(/\u001b\[\d\d?m/g,"").length+1},0);return Ue>60?We[0]+(Ve===""?"":Ve+` `)+" "+Xe.join(`, `)+" "+We[1]:We[0]+Ve+" "+Xe.join(", ")+" "+We[1]}function le(Xe){return Array.isArray(Xe)}de.isArray=le;function fe(Xe){return typeof Xe=="boolean"}de.isBoolean=fe;function ge(Xe){return Xe===null}de.isNull=ge;function me(Xe){return Xe==null}de.isNullOrUndefined=me;function he(Xe){return typeof Xe=="number"}de.isNumber=he;function Se(Xe){return typeof Xe=="string"}de.isString=Se;function ye(Xe){return typeof Xe=="symbol"}de.isSymbol=ye;function Pe(Xe){return Xe===void 0}de.isUndefined=Pe;function we(Xe){return De(Xe)&&Me(Xe)==="[object RegExp]"}de.isRegExp=we;function De(Xe){return typeof Xe=="object"&&Xe!==null}de.isObject=De;function Ee(Xe){return De(Xe)&&Me(Xe)==="[object Date]"}de.isDate=Ee;function Ae(Xe){return De(Xe)&&(Me(Xe)==="[object Error]"||Xe instanceof Error)}de.isError=Ae;function Ce(Xe){return typeof Xe=="function"}de.isFunction=Ce;function je(Xe){return Xe===null||typeof Xe=="boolean"||typeof Xe=="number"||typeof Xe=="string"||typeof Xe=="symbol"||typeof Xe=="undefined"}de.isPrimitive=je,de.isBuffer=E("./support/isBuffer");function Me(Xe){return Object.prototype.toString.call(Xe)}function Ge(Xe){return Xe<10?"0"+Xe.toString(10):Xe.toString(10)}var Fe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Je(){var Xe=new Date,Ve=[Ge(Xe.getHours()),Ge(Xe.getMinutes()),Ge(Xe.getSeconds())].join(":");return[Xe.getDate(),Fe[Xe.getMonth()],Ve].join(" ")}de.log=function(){console.log("%s - %s",Je(),de.format.apply(de,arguments))},de.inherits=E("inherits"),de._extend=function(Xe,Ve){if(!Ve||!De(Ve))return Xe;for(var We=Object.keys(Ve),ze=We.length;ze--;)Xe[We[ze]]=Ve[We[ze]];return Xe};function qe(Xe,Ve){return Object.prototype.hasOwnProperty.call(Xe,Ve)}}).call(this)}).call(this,E("_process"),typeof dt!="undefined"?dt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":84,_process:467,inherits:83}],86:[function(E,pe,de){(function(se){(function(){"use strict";var ne=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],ie=typeof globalThis=="undefined"?se:globalThis;pe.exports=function(){for(var ue=[],ae=0;ae0)throw new Error("Invalid string. Length must be a multiple of 4");var le=z.indexOf("=");le===-1&&(le=te);var fe=le===te?0:4-le%4;return[le,fe]}function re(z){var te=oe(z),le=te[0],fe=te[1];return(le+fe)*3/4-fe}function ee(z,te,le){return(te+le)*3/4-le}function a(z){var te,le=oe(z),fe=le[0],ge=le[1],me=new ie(ee(z,fe,ge)),he=0,Se=ge>0?fe-4:fe,ye;for(ye=0;ye>16&255,me[he++]=te>>8&255,me[he++]=te&255;return ge===2&&(te=ne[z.charCodeAt(ye)]<<2|ne[z.charCodeAt(ye+1)]>>4,me[he++]=te&255),ge===1&&(te=ne[z.charCodeAt(ye)]<<10|ne[z.charCodeAt(ye+1)]<<4|ne[z.charCodeAt(ye+2)]>>2,me[he++]=te>>8&255,me[he++]=te&255),me}function y(z){return se[z>>18&63]+se[z>>12&63]+se[z>>6&63]+se[z&63]}function x(z,te,le){for(var fe,ge=[],me=te;meSe?Se:he+me));return fe===1?(te=z[le-1],ge.push(se[te>>2]+se[te<<4&63]+"==")):fe===2&&(te=(z[le-2]<<8)+z[le-1],ge.push(se[te>>10]+se[te>>4&63]+se[te<<2&63]+"=")),ge.join("")}},{}],88:[function(E,pe,de){(function(se,ne,ie){typeof pe!="undefined"&&pe.exports?pe.exports=ie():typeof ve=="function"&&ve.amd?ve(ne,ie):se[ne]=ie()})(this,"bowser",function(){var se=!0;function ne(ee){function a(Ve){var We=ee.match(Ve);return We&&We.length>1&&We[1]||""}function y(Ve){var We=ee.match(Ve);return We&&We.length>1&&We[2]||""}var x=a(/(ipod|iphone|ipad)/i).toLowerCase(),b=/like android/i.test(ee),z=!b&&/android/i.test(ee),te=/nexus\s*[0-6]\s*/i.test(ee),le=!te&&/nexus\s*[0-9]+/i.test(ee),fe=/CrOS/.test(ee),ge=/silk/i.test(ee),me=/sailfish/i.test(ee),he=/tizen/i.test(ee),Se=/(web|hpw)(o|0)s/i.test(ee),ye=/windows phone/i.test(ee),Pe=/SamsungBrowser/i.test(ee),we=!ye&&/windows/i.test(ee),De=!x&&!ge&&/macintosh/i.test(ee),Ee=!z&&!me&&!he&&!Se&&/linux/i.test(ee),Ae=y(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),Ce=a(/version\/(\d+(\.\d+)?)/i),je=/tablet/i.test(ee)&&!/tablet pc/i.test(ee),Me=!je&&/[^-]mobi/i.test(ee),Ge=/xbox/i.test(ee),Fe;/opera/i.test(ee)?Fe={name:"Opera",opera:se,version:Ce||a(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(ee)?Fe={name:"Opera",opera:se,version:a(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||Ce}:/SamsungBrowser/i.test(ee)?Fe={name:"Samsung Internet for Android",samsungBrowser:se,version:Ce||a(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(ee)?Fe={name:"NAVER Whale browser",whale:se,version:a(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(ee)?Fe={name:"MZ Browser",mzbrowser:se,version:a(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(ee)?Fe={name:"Opera Coast",coast:se,version:Ce||a(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(ee)?Fe={name:"Focus",focus:se,version:a(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(ee)?Fe={name:"Yandex Browser",yandexbrowser:se,version:Ce||a(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(ee)?Fe={name:"UC Browser",ucbrowser:se,version:a(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(ee)?Fe={name:"Maxthon",maxthon:se,version:a(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(ee)?Fe={name:"Epiphany",epiphany:se,version:a(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(ee)?Fe={name:"Puffin",puffin:se,version:a(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(ee)?Fe={name:"Sleipnir",sleipnir:se,version:a(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(ee)?Fe={name:"K-Meleon",kMeleon:se,version:a(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:ye?(Fe={name:"Windows Phone",osname:"Windows Phone",windowsphone:se},Ae?(Fe.msedge=se,Fe.version=Ae):(Fe.msie=se,Fe.version=a(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(ee)?Fe={name:"Internet Explorer",msie:se,version:a(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:fe?Fe={name:"Chrome",osname:"Chrome OS",chromeos:se,chromeBook:se,chrome:se,version:a(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(ee)?Fe={name:"Microsoft Edge",msedge:se,version:Ae}:/vivaldi/i.test(ee)?Fe={name:"Vivaldi",vivaldi:se,version:a(/vivaldi\/(\d+(\.\d+)?)/i)||Ce}:me?Fe={name:"Sailfish",osname:"Sailfish OS",sailfish:se,version:a(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(ee)?Fe={name:"SeaMonkey",seamonkey:se,version:a(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(ee)?(Fe={name:"Firefox",firefox:se,version:a(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(ee)&&(Fe.firefoxos=se,Fe.osname="Firefox OS")):ge?Fe={name:"Amazon Silk",silk:se,version:a(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(ee)?Fe={name:"PhantomJS",phantom:se,version:a(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(ee)?Fe={name:"SlimerJS",slimer:se,version:a(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(ee)||/rim\stablet/i.test(ee)?Fe={name:"BlackBerry",osname:"BlackBerry OS",blackberry:se,version:Ce||a(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:Se?(Fe={name:"WebOS",osname:"WebOS",webos:se,version:Ce||a(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(ee)&&(Fe.touchpad=se)):/bada/i.test(ee)?Fe={name:"Bada",osname:"Bada",bada:se,version:a(/dolfin\/(\d+(\.\d+)?)/i)}:he?Fe={name:"Tizen",osname:"Tizen",tizen:se,version:a(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||Ce}:/qupzilla/i.test(ee)?Fe={name:"QupZilla",qupzilla:se,version:a(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||Ce}:/chromium/i.test(ee)?Fe={name:"Chromium",chromium:se,version:a(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||Ce}:/chrome|crios|crmo/i.test(ee)?Fe={name:"Chrome",chrome:se,version:a(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:z?Fe={name:"Android",version:Ce}:/safari|applewebkit/i.test(ee)?(Fe={name:"Safari",safari:se},Ce&&(Fe.version=Ce)):x?(Fe={name:x=="iphone"?"iPhone":x=="ipad"?"iPad":"iPod"},Ce&&(Fe.version=Ce)):/googlebot/i.test(ee)?Fe={name:"Googlebot",googlebot:se,version:a(/googlebot\/(\d+(\.\d+))/i)||Ce}:Fe={name:a(/^(.*)\/(.*) /),version:y(/^(.*)\/(.*) /)},!Fe.msedge&&/(apple)?webkit/i.test(ee)?(/(apple)?webkit\/537\.36/i.test(ee)?(Fe.name=Fe.name||"Blink",Fe.blink=se):(Fe.name=Fe.name||"Webkit",Fe.webkit=se),!Fe.version&&Ce&&(Fe.version=Ce)):!Fe.opera&&/gecko\//i.test(ee)&&(Fe.name=Fe.name||"Gecko",Fe.gecko=se,Fe.version=Fe.version||a(/gecko\/(\d+(\.\d+)?)/i)),!Fe.windowsphone&&(z||Fe.silk)?(Fe.android=se,Fe.osname="Android"):!Fe.windowsphone&&x?(Fe[x]=se,Fe.ios=se,Fe.osname="iOS"):De?(Fe.mac=se,Fe.osname="macOS"):Ge?(Fe.xbox=se,Fe.osname="Xbox"):we?(Fe.windows=se,Fe.osname="Windows"):Ee&&(Fe.linux=se,Fe.osname="Linux");function Je(Ve){switch(Ve){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}var qe="";Fe.windows?qe=Je(a(/Windows ((NT|XP)( \d\d?.\d)?)/i)):Fe.windowsphone?qe=a(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):Fe.mac?(qe=a(/Mac OS X (\d+([_\.\s]\d+)*)/i),qe=qe.replace(/[_\s]/g,".")):x?(qe=a(/os (\d+([_\s]\d+)*) like mac os x/i),qe=qe.replace(/[_\s]/g,".")):z?qe=a(/android[ \/-](\d+(\.\d+)*)/i):Fe.webos?qe=a(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):Fe.blackberry?qe=a(/rim\stablet\sos\s(\d+(\.\d+)*)/i):Fe.bada?qe=a(/bada\/(\d+(\.\d+)*)/i):Fe.tizen&&(qe=a(/tizen[\/\s](\d+(\.\d+)*)/i)),qe&&(Fe.osversion=qe);var Xe=!Fe.windows&&qe.split(".")[0];return je||le||x=="ipad"||z&&(Xe==3||Xe>=4&&!Me)||Fe.silk?Fe.tablet=se:(Me||x=="iphone"||x=="ipod"||z||te||Fe.blackberry||Fe.webos||Fe.bada)&&(Fe.mobile=se),Fe.msedge||Fe.msie&&Fe.version>=10||Fe.yandexbrowser&&Fe.version>=15||Fe.vivaldi&&Fe.version>=1||Fe.chrome&&Fe.version>=20||Fe.samsungBrowser&&Fe.version>=4||Fe.whale&&ae([Fe.version,"1.0"])===1||Fe.mzbrowser&&ae([Fe.version,"6.0"])===1||Fe.focus&&ae([Fe.version,"1.0"])===1||Fe.firefox&&Fe.version>=20||Fe.safari&&Fe.version>=6||Fe.opera&&Fe.version>=10||Fe.ios&&Fe.osversion&&Fe.osversion.split(".")[0]>=6||Fe.blackberry&&Fe.version>=10.1||Fe.chromium&&Fe.version>=20?Fe.a=se:Fe.msie&&Fe.version<10||Fe.chrome&&Fe.version<20||Fe.firefox&&Fe.version<20||Fe.safari&&Fe.version<6||Fe.opera&&Fe.version<10||Fe.ios&&Fe.osversion&&Fe.osversion.split(".")[0]<6||Fe.chromium&&Fe.version<20?Fe.c=se:Fe.x=se,Fe}var ie=ne(typeof navigator!="undefined"&&navigator.userAgent||"");ie.test=function(ee){for(var a=0;a=0;){if(y[0][a]>y[1][a])return 1;if(y[0][a]===y[1][a]){if(a===0)return 0}else return-1}}function oe(ee,a,y){var x=ie;typeof a=="string"&&(y=a,a=void 0),a===void 0&&(a=!1),y&&(x=ne(y));var b=""+x.version;for(var z in ee)if(ee.hasOwnProperty(z)&&x[z]){if(typeof ee[z]!="string")throw new Error("Browser version in the minVersion map should be a string: "+z+": "+String(ee));return ae([b,ee[z]])<0}return a}function re(ee,a,y){return!oe(ee,a,y)}return ie.isUnsupportedBrowser=oe,ie.compareVersions=ae,ie.check=re,ie._detect=ne,ie.detect=ne,ie})},{}],89:[function(E,pe,de){},{}],90:[function(E,pe,de){(function(se){(function(){"use strict";var ne=E("base64-js"),ie=E("ieee754");de.Buffer=oe,de.SlowBuffer=fe,de.INSPECT_MAX_BYTES=50;var ce=2147483647;de.kMaxLength=ce,oe.TYPED_ARRAY_SUPPORT=ue(),!oe.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function ue(){try{var Oe=new Uint8Array(1);return Oe.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},Oe.foo()===42}catch(Te){return!1}}Object.defineProperty(oe.prototype,"parent",{enumerable:!0,get:function(){if(oe.isBuffer(this))return this.buffer}}),Object.defineProperty(oe.prototype,"offset",{enumerable:!0,get:function(){if(oe.isBuffer(this))return this.byteOffset}});function ae(Oe){if(Oe>ce)throw new RangeError('The value "'+Oe+'" is invalid for option "size"');var Te=new Uint8Array(Oe);return Te.__proto__=oe.prototype,Te}function oe(Oe,Te,xe){if(typeof Oe=="number"){if(typeof Te=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return y(Oe)}return re(Oe,Te,xe)}typeof Symbol!="undefined"&&Symbol.species!=null&&oe[Symbol.species]===oe&&Object.defineProperty(oe,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),oe.poolSize=8192;function re(Oe,Te,xe){if(typeof Oe=="string")return x(Oe,Te);if(ArrayBuffer.isView(Oe))return b(Oe);if(Oe==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Oe);if(Ze(Oe,ArrayBuffer)||Oe&&Ze(Oe.buffer,ArrayBuffer))return z(Oe,Te,xe);if(typeof Oe=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var Ie=Oe.valueOf&&Oe.valueOf();if(Ie!=null&&Ie!==Oe)return oe.from(Ie,Te,xe);var Ke=te(Oe);if(Ke)return Ke;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof Oe[Symbol.toPrimitive]=="function")return oe.from(Oe[Symbol.toPrimitive]("string"),Te,xe);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Oe)}oe.from=function(Oe,Te,xe){return re(Oe,Te,xe)},oe.prototype.__proto__=Uint8Array.prototype,oe.__proto__=Uint8Array;function ee(Oe){if(typeof Oe!="number")throw new TypeError('"size" argument must be of type number');if(Oe<0)throw new RangeError('The value "'+Oe+'" is invalid for option "size"')}function a(Oe,Te,xe){return ee(Oe),Oe<=0?ae(Oe):Te!==void 0?typeof xe=="string"?ae(Oe).fill(Te,xe):ae(Oe).fill(Te):ae(Oe)}oe.alloc=function(Oe,Te,xe){return a(Oe,Te,xe)};function y(Oe){return ee(Oe),ae(Oe<0?0:le(Oe)|0)}oe.allocUnsafe=function(Oe){return y(Oe)},oe.allocUnsafeSlow=function(Oe){return y(Oe)};function x(Oe,Te){if((typeof Te!="string"||Te==="")&&(Te="utf8"),!oe.isEncoding(Te))throw new TypeError("Unknown encoding: "+Te);var xe=ge(Oe,Te)|0,Ie=ae(xe),Ke=Ie.write(Oe,Te);return Ke!==xe&&(Ie=Ie.slice(0,Ke)),Ie}function b(Oe){for(var Te=Oe.length<0?0:le(Oe.length)|0,xe=ae(Te),Ie=0;Ie=ce)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ce.toString(16)+" bytes");return Oe|0}function fe(Oe){return+Oe!=Oe&&(Oe=0),oe.alloc(+Oe)}oe.isBuffer=function(Te){return Te!=null&&Te._isBuffer===!0&&Te!==oe.prototype},oe.compare=function(Te,xe){if(Ze(Te,Uint8Array)&&(Te=oe.from(Te,Te.offset,Te.byteLength)),Ze(xe,Uint8Array)&&(xe=oe.from(xe,xe.offset,xe.byteLength)),!oe.isBuffer(Te)||!oe.isBuffer(xe))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Te===xe)return 0;for(var Ie=Te.length,Ke=xe.length,rt=0,ke=Math.min(Ie,Ke);rt2&&arguments[2]===!0;if(!Ie&&xe===0)return 0;for(var Ke=!1;;)switch(Te){case"ascii":case"latin1":case"binary":return xe;case"utf8":case"utf-8":return Re(Oe).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return xe*2;case"hex":return xe>>>1;case"base64":return Ne(Oe).length;default:if(Ke)return Ie?-1:Re(Oe).length;Te=(""+Te).toLowerCase(),Ke=!0}}oe.byteLength=ge;function me(Oe,Te,xe){var Ie=!1;if((Te===void 0||Te<0)&&(Te=0),Te>this.length||((xe===void 0||xe>this.length)&&(xe=this.length),xe<=0)||(xe>>>=0,Te>>>=0,xe<=Te))return"";for(Oe||(Oe="utf8");;)switch(Oe){case"hex":return Xe(this,Te,xe);case"utf8":case"utf-8":return Me(this,Te,xe);case"ascii":return Je(this,Te,xe);case"latin1":case"binary":return qe(this,Te,xe);case"base64":return je(this,Te,xe);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ve(this,Te,xe);default:if(Ie)throw new TypeError("Unknown encoding: "+Oe);Oe=(Oe+"").toLowerCase(),Ie=!0}}oe.prototype._isBuffer=!0;function he(Oe,Te,xe){var Ie=Oe[Te];Oe[Te]=Oe[xe],Oe[xe]=Ie}oe.prototype.swap16=function(){var Te=this.length;if(Te%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var xe=0;xexe&&(Te+=" ... "),""},oe.prototype.compare=function(Te,xe,Ie,Ke,rt){if(Ze(Te,Uint8Array)&&(Te=oe.from(Te,Te.offset,Te.byteLength)),!oe.isBuffer(Te))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Te);if(xe===void 0&&(xe=0),Ie===void 0&&(Ie=Te?Te.length:0),Ke===void 0&&(Ke=0),rt===void 0&&(rt=this.length),xe<0||Ie>Te.length||Ke<0||rt>this.length)throw new RangeError("out of range index");if(Ke>=rt&&xe>=Ie)return 0;if(Ke>=rt)return-1;if(xe>=Ie)return 1;if(xe>>>=0,Ie>>>=0,Ke>>>=0,rt>>>=0,this===Te)return 0;for(var ke=rt-Ke,tt=Ie-xe,mt=Math.min(ke,tt),ct=this.slice(Ke,rt),ht=Te.slice(xe,Ie),lt=0;lt2147483647?xe=2147483647:xe<-2147483648&&(xe=-2147483648),xe=+xe,Be(xe)&&(xe=Ke?0:Oe.length-1),xe<0&&(xe=Oe.length+xe),xe>=Oe.length){if(Ke)return-1;xe=Oe.length-1}else if(xe<0)if(Ke)xe=0;else return-1;if(typeof Te=="string"&&(Te=oe.from(Te,Ie)),oe.isBuffer(Te))return Te.length===0?-1:ye(Oe,Te,xe,Ie,Ke);if(typeof Te=="number")return Te=Te&255,typeof Uint8Array.prototype.indexOf=="function"?Ke?Uint8Array.prototype.indexOf.call(Oe,Te,xe):Uint8Array.prototype.lastIndexOf.call(Oe,Te,xe):ye(Oe,[Te],xe,Ie,Ke);throw new TypeError("val must be string, number or Buffer")}function ye(Oe,Te,xe,Ie,Ke){var rt=1,ke=Oe.length,tt=Te.length;if(Ie!==void 0&&(Ie=String(Ie).toLowerCase(),Ie==="ucs2"||Ie==="ucs-2"||Ie==="utf16le"||Ie==="utf-16le")){if(Oe.length<2||Te.length<2)return-1;rt=2,ke/=2,tt/=2,xe/=2}function mt(at,st){return rt===1?at[st]:at.readUInt16BE(st*rt)}var ct;if(Ke){var ht=-1;for(ct=xe;ctke&&(xe=ke-tt),ct=xe;ct>=0;ct--){for(var lt=!0,pt=0;ptKe&&(Ie=Ke)):Ie=Ke;var rt=Te.length;Ie>rt/2&&(Ie=rt/2);for(var ke=0;ke>>0,isFinite(Ie)?(Ie=Ie>>>0,Ke===void 0&&(Ke="utf8")):(Ke=Ie,Ie=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var rt=this.length-xe;if((Ie===void 0||Ie>rt)&&(Ie=rt),Te.length>0&&(Ie<0||xe<0)||xe>this.length)throw new RangeError("Attempt to write outside buffer bounds");Ke||(Ke="utf8");for(var ke=!1;;)switch(Ke){case"hex":return Pe(this,Te,xe,Ie);case"utf8":case"utf-8":return we(this,Te,xe,Ie);case"ascii":return De(this,Te,xe,Ie);case"latin1":case"binary":return Ee(this,Te,xe,Ie);case"base64":return Ae(this,Te,xe,Ie);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ce(this,Te,xe,Ie);default:if(ke)throw new TypeError("Unknown encoding: "+Ke);Ke=(""+Ke).toLowerCase(),ke=!0}},oe.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function je(Oe,Te,xe){return Te===0&&xe===Oe.length?ne.fromByteArray(Oe):ne.fromByteArray(Oe.slice(Te,xe))}function Me(Oe,Te,xe){xe=Math.min(Oe.length,xe);for(var Ie=[],Ke=Te;Ke239?4:rt>223?3:rt>191?2:1;if(Ke+tt<=xe){var mt,ct,ht,lt;switch(tt){case 1:rt<128&&(ke=rt);break;case 2:mt=Oe[Ke+1],(mt&192)===128&&(lt=(rt&31)<<6|mt&63,lt>127&&(ke=lt));break;case 3:mt=Oe[Ke+1],ct=Oe[Ke+2],(mt&192)===128&&(ct&192)===128&&(lt=(rt&15)<<12|(mt&63)<<6|ct&63,lt>2047&&(lt<55296||lt>57343)&&(ke=lt));break;case 4:mt=Oe[Ke+1],ct=Oe[Ke+2],ht=Oe[Ke+3],(mt&192)===128&&(ct&192)===128&&(ht&192)===128&&(lt=(rt&15)<<18|(mt&63)<<12|(ct&63)<<6|ht&63,lt>65535&<<1114112&&(ke=lt))}}ke===null?(ke=65533,tt=1):ke>65535&&(ke-=65536,Ie.push(ke>>>10&1023|55296),ke=56320|ke&1023),Ie.push(ke),Ke+=tt}return Fe(Ie)}var Ge=4096;function Fe(Oe){var Te=Oe.length;if(Te<=Ge)return String.fromCharCode.apply(String,Oe);for(var xe="",Ie=0;IeIe)&&(xe=Ie);for(var Ke="",rt=Te;rtIe&&(Te=Ie),xe<0?(xe+=Ie,xe<0&&(xe=0)):xe>Ie&&(xe=Ie),xexe)throw new RangeError("Trying to access beyond buffer length")}oe.prototype.readUIntLE=function(Te,xe,Ie){Te=Te>>>0,xe=xe>>>0,Ie||We(Te,xe,this.length);for(var Ke=this[Te],rt=1,ke=0;++ke>>0,xe=xe>>>0,Ie||We(Te,xe,this.length);for(var Ke=this[Te+--xe],rt=1;xe>0&&(rt*=256);)Ke+=this[Te+--xe]*rt;return Ke},oe.prototype.readUInt8=function(Te,xe){return Te=Te>>>0,xe||We(Te,1,this.length),this[Te]},oe.prototype.readUInt16LE=function(Te,xe){return Te=Te>>>0,xe||We(Te,2,this.length),this[Te]|this[Te+1]<<8},oe.prototype.readUInt16BE=function(Te,xe){return Te=Te>>>0,xe||We(Te,2,this.length),this[Te]<<8|this[Te+1]},oe.prototype.readUInt32LE=function(Te,xe){return Te=Te>>>0,xe||We(Te,4,this.length),(this[Te]|this[Te+1]<<8|this[Te+2]<<16)+this[Te+3]*16777216},oe.prototype.readUInt32BE=function(Te,xe){return Te=Te>>>0,xe||We(Te,4,this.length),this[Te]*16777216+(this[Te+1]<<16|this[Te+2]<<8|this[Te+3])},oe.prototype.readIntLE=function(Te,xe,Ie){Te=Te>>>0,xe=xe>>>0,Ie||We(Te,xe,this.length);for(var Ke=this[Te],rt=1,ke=0;++ke=rt&&(Ke-=Math.pow(2,8*xe)),Ke},oe.prototype.readIntBE=function(Te,xe,Ie){Te=Te>>>0,xe=xe>>>0,Ie||We(Te,xe,this.length);for(var Ke=xe,rt=1,ke=this[Te+--Ke];Ke>0&&(rt*=256);)ke+=this[Te+--Ke]*rt;return rt*=128,ke>=rt&&(ke-=Math.pow(2,8*xe)),ke},oe.prototype.readInt8=function(Te,xe){return Te=Te>>>0,xe||We(Te,1,this.length),this[Te]&128?(255-this[Te]+1)*-1:this[Te]},oe.prototype.readInt16LE=function(Te,xe){Te=Te>>>0,xe||We(Te,2,this.length);var Ie=this[Te]|this[Te+1]<<8;return Ie&32768?Ie|4294901760:Ie},oe.prototype.readInt16BE=function(Te,xe){Te=Te>>>0,xe||We(Te,2,this.length);var Ie=this[Te+1]|this[Te]<<8;return Ie&32768?Ie|4294901760:Ie},oe.prototype.readInt32LE=function(Te,xe){return Te=Te>>>0,xe||We(Te,4,this.length),this[Te]|this[Te+1]<<8|this[Te+2]<<16|this[Te+3]<<24},oe.prototype.readInt32BE=function(Te,xe){return Te=Te>>>0,xe||We(Te,4,this.length),this[Te]<<24|this[Te+1]<<16|this[Te+2]<<8|this[Te+3]},oe.prototype.readFloatLE=function(Te,xe){return Te=Te>>>0,xe||We(Te,4,this.length),ie.read(this,Te,!0,23,4)},oe.prototype.readFloatBE=function(Te,xe){return Te=Te>>>0,xe||We(Te,4,this.length),ie.read(this,Te,!1,23,4)},oe.prototype.readDoubleLE=function(Te,xe){return Te=Te>>>0,xe||We(Te,8,this.length),ie.read(this,Te,!0,52,8)},oe.prototype.readDoubleBE=function(Te,xe){return Te=Te>>>0,xe||We(Te,8,this.length),ie.read(this,Te,!1,52,8)};function ze(Oe,Te,xe,Ie,Ke,rt){if(!oe.isBuffer(Oe))throw new TypeError('"buffer" argument must be a Buffer instance');if(Te>Ke||TeOe.length)throw new RangeError("Index out of range")}oe.prototype.writeUIntLE=function(Te,xe,Ie,Ke){if(Te=+Te,xe=xe>>>0,Ie=Ie>>>0,!Ke){var rt=Math.pow(2,8*Ie)-1;ze(this,Te,xe,Ie,rt,0)}var ke=1,tt=0;for(this[xe]=Te&255;++tt>>0,Ie=Ie>>>0,!Ke){var rt=Math.pow(2,8*Ie)-1;ze(this,Te,xe,Ie,rt,0)}var ke=Ie-1,tt=1;for(this[xe+ke]=Te&255;--ke>=0&&(tt*=256);)this[xe+ke]=Te/tt&255;return xe+Ie},oe.prototype.writeUInt8=function(Te,xe,Ie){return Te=+Te,xe=xe>>>0,Ie||ze(this,Te,xe,1,255,0),this[xe]=Te&255,xe+1},oe.prototype.writeUInt16LE=function(Te,xe,Ie){return Te=+Te,xe=xe>>>0,Ie||ze(this,Te,xe,2,65535,0),this[xe]=Te&255,this[xe+1]=Te>>>8,xe+2},oe.prototype.writeUInt16BE=function(Te,xe,Ie){return Te=+Te,xe=xe>>>0,Ie||ze(this,Te,xe,2,65535,0),this[xe]=Te>>>8,this[xe+1]=Te&255,xe+2},oe.prototype.writeUInt32LE=function(Te,xe,Ie){return Te=+Te,xe=xe>>>0,Ie||ze(this,Te,xe,4,4294967295,0),this[xe+3]=Te>>>24,this[xe+2]=Te>>>16,this[xe+1]=Te>>>8,this[xe]=Te&255,xe+4},oe.prototype.writeUInt32BE=function(Te,xe,Ie){return Te=+Te,xe=xe>>>0,Ie||ze(this,Te,xe,4,4294967295,0),this[xe]=Te>>>24,this[xe+1]=Te>>>16,this[xe+2]=Te>>>8,this[xe+3]=Te&255,xe+4},oe.prototype.writeIntLE=function(Te,xe,Ie,Ke){if(Te=+Te,xe=xe>>>0,!Ke){var rt=Math.pow(2,8*Ie-1);ze(this,Te,xe,Ie,rt-1,-rt)}var ke=0,tt=1,mt=0;for(this[xe]=Te&255;++ke>0)-mt&255;return xe+Ie},oe.prototype.writeIntBE=function(Te,xe,Ie,Ke){if(Te=+Te,xe=xe>>>0,!Ke){var rt=Math.pow(2,8*Ie-1);ze(this,Te,xe,Ie,rt-1,-rt)}var ke=Ie-1,tt=1,mt=0;for(this[xe+ke]=Te&255;--ke>=0&&(tt*=256);)Te<0&&mt===0&&this[xe+ke+1]!==0&&(mt=1),this[xe+ke]=(Te/tt>>0)-mt&255;return xe+Ie},oe.prototype.writeInt8=function(Te,xe,Ie){return Te=+Te,xe=xe>>>0,Ie||ze(this,Te,xe,1,127,-128),Te<0&&(Te=255+Te+1),this[xe]=Te&255,xe+1},oe.prototype.writeInt16LE=function(Te,xe,Ie){return Te=+Te,xe=xe>>>0,Ie||ze(this,Te,xe,2,32767,-32768),this[xe]=Te&255,this[xe+1]=Te>>>8,xe+2},oe.prototype.writeInt16BE=function(Te,xe,Ie){return Te=+Te,xe=xe>>>0,Ie||ze(this,Te,xe,2,32767,-32768),this[xe]=Te>>>8,this[xe+1]=Te&255,xe+2},oe.prototype.writeInt32LE=function(Te,xe,Ie){return Te=+Te,xe=xe>>>0,Ie||ze(this,Te,xe,4,2147483647,-2147483648),this[xe]=Te&255,this[xe+1]=Te>>>8,this[xe+2]=Te>>>16,this[xe+3]=Te>>>24,xe+4},oe.prototype.writeInt32BE=function(Te,xe,Ie){return Te=+Te,xe=xe>>>0,Ie||ze(this,Te,xe,4,2147483647,-2147483648),Te<0&&(Te=4294967295+Te+1),this[xe]=Te>>>24,this[xe+1]=Te>>>16,this[xe+2]=Te>>>8,this[xe+3]=Te&255,xe+4};function Ue(Oe,Te,xe,Ie,Ke,rt){if(xe+Ie>Oe.length)throw new RangeError("Index out of range");if(xe<0)throw new RangeError("Index out of range")}function ot(Oe,Te,xe,Ie,Ke){return Te=+Te,xe=xe>>>0,Ke||Ue(Oe,Te,xe,4,34028234663852886e22,-34028234663852886e22),ie.write(Oe,Te,xe,Ie,23,4),xe+4}oe.prototype.writeFloatLE=function(Te,xe,Ie){return ot(this,Te,xe,!0,Ie)},oe.prototype.writeFloatBE=function(Te,xe,Ie){return ot(this,Te,xe,!1,Ie)};function Qe(Oe,Te,xe,Ie,Ke){return Te=+Te,xe=xe>>>0,Ke||Ue(Oe,Te,xe,8,17976931348623157e292,-17976931348623157e292),ie.write(Oe,Te,xe,Ie,52,8),xe+8}oe.prototype.writeDoubleLE=function(Te,xe,Ie){return Qe(this,Te,xe,!0,Ie)},oe.prototype.writeDoubleBE=function(Te,xe,Ie){return Qe(this,Te,xe,!1,Ie)},oe.prototype.copy=function(Te,xe,Ie,Ke){if(!oe.isBuffer(Te))throw new TypeError("argument should be a Buffer");if(Ie||(Ie=0),!Ke&&Ke!==0&&(Ke=this.length),xe>=Te.length&&(xe=Te.length),xe||(xe=0),Ke>0&&Ke=this.length)throw new RangeError("Index out of range");if(Ke<0)throw new RangeError("sourceEnd out of bounds");Ke>this.length&&(Ke=this.length),Te.length-xe=0;--ke)Te[ke+xe]=this[ke+Ie];else Uint8Array.prototype.set.call(Te,this.subarray(Ie,Ke),xe);return rt},oe.prototype.fill=function(Te,xe,Ie,Ke){if(typeof Te=="string"){if(typeof xe=="string"?(Ke=xe,xe=0,Ie=this.length):typeof Ie=="string"&&(Ke=Ie,Ie=this.length),Ke!==void 0&&typeof Ke!="string")throw new TypeError("encoding must be a string");if(typeof Ke=="string"&&!oe.isEncoding(Ke))throw new TypeError("Unknown encoding: "+Ke);if(Te.length===1){var rt=Te.charCodeAt(0);(Ke==="utf8"&&rt<128||Ke==="latin1")&&(Te=rt)}}else typeof Te=="number"&&(Te=Te&255);if(xe<0||this.length>>0,Ie=Ie===void 0?this.length:Ie>>>0,Te||(Te=0);var ke;if(typeof Te=="number")for(ke=xe;ke55295&&xe<57344){if(!Ke){if(xe>56319){(Te-=3)>-1&&rt.push(239,191,189);continue}else if(ke+1===Ie){(Te-=3)>-1&&rt.push(239,191,189);continue}Ke=xe;continue}if(xe<56320){(Te-=3)>-1&&rt.push(239,191,189),Ke=xe;continue}xe=(Ke-55296<<10|xe-56320)+65536}else Ke&&(Te-=3)>-1&&rt.push(239,191,189);if(Ke=null,xe<128){if((Te-=1)<0)break;rt.push(xe)}else if(xe<2048){if((Te-=2)<0)break;rt.push(xe>>6|192,xe&63|128)}else if(xe<65536){if((Te-=3)<0)break;rt.push(xe>>12|224,xe>>6&63|128,xe&63|128)}else if(xe<1114112){if((Te-=4)<0)break;rt.push(xe>>18|240,xe>>12&63|128,xe>>6&63|128,xe&63|128)}else throw new Error("Invalid code point")}return rt}function $e(Oe){for(var Te=[],xe=0;xe>8,Ke=xe%256,rt.push(Ke),rt.push(Ie);return rt}function Ne(Oe){return ne.toByteArray(Ye(Oe))}function et(Oe,Te,xe,Ie){for(var Ke=0;Ke=Te.length||Ke>=Oe.length);++Ke)Te[Ke+xe]=Oe[Ke];return Ke}function Ze(Oe,Te){return Oe instanceof Te||Oe!=null&&Oe.constructor!=null&&Oe.constructor.name!=null&&Oe.constructor.name===Te.name}function Be(Oe){return Oe!==Oe}}).call(this)}).call(this,E("buffer").Buffer)},{"base64-js":87,buffer:90,ieee754:357}],91:[function(E,pe,de){pe.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},{}],92:[function(E,pe,de){"use strict";var se=E("get-intrinsic"),ne=E("./"),ie=ne(se("String.prototype.indexOf"));pe.exports=function(ue,ae){var oe=se(ue,!!ae);return typeof oe=="function"&&ie(ue,".prototype.")>-1?ne(oe):oe}},{"./":93,"get-intrinsic":348}],93:[function(E,pe,de){"use strict";var se=E("function-bind"),ne=E("get-intrinsic"),ie=ne("%Function.prototype.apply%"),ce=ne("%Function.prototype.call%"),ue=ne("%Reflect.apply%",!0)||se.call(ce,ie),ae=ne("%Object.getOwnPropertyDescriptor%",!0),oe=ne("%Object.defineProperty%",!0),re=ne("%Math.max%");if(oe)try{oe({},"a",{value:1})}catch(a){oe=null}pe.exports=function(y){var x=ue(se,ce,arguments);if(ae&&oe){var b=ae(x,"length");b.configurable&&oe(x,"length",{value:1+re(0,y.length-(arguments.length-1))})}return x};var ee=function(){return ue(se,ie,arguments)};oe?oe(pe.exports,"apply",{value:ee}):pe.exports.apply=ee},{"function-bind":347,"get-intrinsic":348}],94:[function(E,pe,de){"use strict";var se=Array.prototype.slice;pe.exports=ne;function ne(ce,ue){if(!(this instanceof ne))return new ne(ce,ue);this.src=ce,this._withAccess=ue}ne.prototype.withAccess=function(ce){return this._withAccess=ce!==!1,this},ne.prototype.pick=function(ce){return Array.isArray(ce)||(ce=se.call(arguments)),ce.length&&(this.keys=ce),this},ne.prototype.to=function(ce){if(ce=ce||{},!this.src)return ce;var ue=this.keys||Object.keys(this.src);if(!this._withAccess){for(var ae=0;ae>8&255]},Re=function(ke){return[ke&255,ke>>8&255,ke>>16&255,ke>>24&255]},$e=function(ke){return ke[3]<<24|ke[2]<<16|ke[1]<<8|ke[0]},Le=function(ke){return Qe(ke,23,4)},Ne=function(ke){return Qe(ke,52,8)},et=function(ke,tt){fe(ke[Ce],tt,{get:function(){return we(this)[tt]}})},Ze=function(ke,tt,mt,ct){var ht=x(mt),lt=we(ke);if(ht+tt>lt.byteLength)throw ze(Me);var pt=we(lt.buffer).bytes,at=ht+lt.byteOffset,st=me(pt,at,at+tt);return ct?st:ot(st)},Be=function(ke,tt,mt,ct,ht,lt){var pt=x(mt),at=we(ke);if(pt+tt>at.byteLength)throw ze(Me);for(var st=we(at.buffer).bytes,ft=pt+at.byteOffset,vt=ct(+ht),St=0;Stht)throw ze("Wrong offset");if(ct=ct===void 0?ht-lt:y(ct),lt+ct>ht)throw ze(je);De(this,{buffer:tt,byteLength:ct,byteOffset:lt}),ie||(this.buffer=tt,this.byteLength=ct,this.byteOffset=lt)},Xe=qe[Ce],ie&&(et(Fe,"byteLength"),et(qe,"buffer"),et(qe,"byteLength"),et(qe,"byteOffset")),oe(Xe,{getInt8:function(tt){return Ze(this,1,tt)[0]<<24>>24},getUint8:function(tt){return Ze(this,1,tt)[0]},getInt16:function(tt){var mt=Ze(this,2,tt,arguments.length>1?arguments[1]:void 0);return(mt[1]<<8|mt[0])<<16>>16},getUint16:function(tt){var mt=Ze(this,2,tt,arguments.length>1?arguments[1]:void 0);return mt[1]<<8|mt[0]},getInt32:function(tt){return $e(Ze(this,4,tt,arguments.length>1?arguments[1]:void 0))},getUint32:function(tt){return $e(Ze(this,4,tt,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(tt){return ut(Ze(this,4,tt,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(tt){return ut(Ze(this,8,tt,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(tt,mt){Be(this,1,tt,Ye,mt)},setUint8:function(tt,mt){Be(this,1,tt,Ye,mt)},setInt16:function(tt,mt){Be(this,2,tt,He,mt,arguments.length>2?arguments[2]:void 0)},setUint16:function(tt,mt){Be(this,2,tt,He,mt,arguments.length>2?arguments[2]:void 0)},setInt32:function(tt,mt){Be(this,4,tt,Re,mt,arguments.length>2?arguments[2]:void 0)},setUint32:function(tt,mt){Be(this,4,tt,Re,mt,arguments.length>2?arguments[2]:void 0)},setFloat32:function(tt,mt){Be(this,4,tt,Le,mt,arguments.length>2?arguments[2]:void 0)},setFloat64:function(tt,mt){Be(this,8,tt,Ne,mt,arguments.length>2?arguments[2]:void 0)}});else{var Oe=ye&&Ge.name!==Ee;if(!re(function(){Ge(1)})||!re(function(){new Ge(-1)})||re(function(){return new Ge,new Ge(1.5),new Ge(NaN),Oe&&!Pe})){Fe=function(tt){return ee(this,Je),new Ge(x(tt))},Fe[Ce]=Je;for(var Te=le(Ge),xe=0,Ie;Te.length>xe;)(Ie=Te[xe++])in Fe||ae(Fe,Ie,Ge[Ie]);Je.constructor=Fe}else Oe&&Pe&&ae(Ge,"name",Ee);te&&z(Xe)!==Ve&&te(Xe,Ve);var Ke=new qe(new Fe(2)),rt=ne(Xe.setInt8);Ke.setInt8(0,2147483648),Ke.setInt8(1,2147483649),(Ke.getInt8(0)||!Ke.getInt8(1))&&oe(Xe,{setInt8:function(tt,mt){rt(this,tt,mt<<24>>24)},setUint8:function(tt,mt){rt(this,tt,mt<<24>>24)}},{unsafe:!0})}he(Fe,Ee),he(qe,Ae),pe.exports={ArrayBuffer:Fe,DataView:qe}},{"../internals/an-instance":100,"../internals/array-buffer-native":102,"../internals/array-fill":106,"../internals/array-slice-simple":116,"../internals/create-non-enumerable-property":129,"../internals/descriptors":134,"../internals/fails":150,"../internals/function-name":156,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/ieee754":169,"../internals/internal-state":173,"../internals/object-define-property":198,"../internals/object-get-own-property-names":201,"../internals/object-get-prototype-of":203,"../internals/object-set-prototype-of":208,"../internals/redefine-all":221,"../internals/set-to-string-tag":234,"../internals/to-index":246,"../internals/to-integer-or-infinity":248,"../internals/to-length":249}],105:[function(E,pe,de){"use strict";var se=E("../internals/to-object"),ne=E("../internals/to-absolute-index"),ie=E("../internals/length-of-array-like"),ce=Math.min;pe.exports=[].copyWithin||function(ae,oe){var re=se(this),ee=ie(re),a=ne(ae,ee),y=ne(oe,ee),x=arguments.length>2?arguments[2]:void 0,b=ce((x===void 0?ee:ne(x,ee))-y,ee-a),z=1;for(y0;)y in re?re[a]=re[y]:delete re[a],a+=z,y+=z;return re}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-object":250}],106:[function(E,pe,de){"use strict";var se=E("../internals/to-object"),ne=E("../internals/to-absolute-index"),ie=E("../internals/length-of-array-like");pe.exports=function(ue){for(var ae=se(this),oe=ie(ae),re=arguments.length,ee=ne(re>1?arguments[1]:void 0,oe),a=re>2?arguments[2]:void 0,y=a===void 0?oe:ne(a,oe);y>ee;)ae[ee++]=ue;return ae}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-object":250}],107:[function(E,pe,de){"use strict";var se=E("../internals/array-iteration").forEach,ne=E("../internals/array-method-is-strict"),ie=ne("forEach");pe.exports=ie?[].forEach:function(ue){return se(this,ue,arguments.length>1?arguments[1]:void 0)}},{"../internals/array-iteration":111,"../internals/array-method-is-strict":114}],108:[function(E,pe,de){var se=E("../internals/length-of-array-like");pe.exports=function(ne,ie){for(var ce=0,ue=se(ie),ae=new ne(ue);ue>ce;)ae[ce]=ie[ce++];return ae}},{"../internals/length-of-array-like":188}],109:[function(E,pe,de){"use strict";var se=E("../internals/global"),ne=E("../internals/function-bind-context"),ie=E("../internals/function-call"),ce=E("../internals/to-object"),ue=E("../internals/call-with-safe-iteration-closing"),ae=E("../internals/is-array-iterator-method"),oe=E("../internals/is-constructor"),re=E("../internals/length-of-array-like"),ee=E("../internals/create-property"),a=E("../internals/get-iterator"),y=E("../internals/get-iterator-method"),x=se.Array;pe.exports=function(z){var te=ce(z),le=oe(this),fe=arguments.length,ge=fe>1?arguments[1]:void 0,me=ge!==void 0;me&&(ge=ne(ge,fe>2?arguments[2]:void 0));var he=y(te),Se=0,ye,Pe,we,De,Ee,Ae;if(he&&!(this==x&&ae(he)))for(De=a(te,he),Ee=De.next,Pe=le?new this:[];!(we=ie(Ee,De)).done;Se++)Ae=me?ue(De,ge,[we.value,Se],!0):we.value,ee(Pe,Se,Ae);else for(ye=re(te),Pe=le?new this(ye):x(ye);ye>Se;Se++)Ae=me?ge(te[Se],Se):te[Se],ee(Pe,Se,Ae);return Pe.length=Se,Pe}},{"../internals/call-with-safe-iteration-closing":121,"../internals/create-property":131,"../internals/function-bind-context":153,"../internals/function-call":155,"../internals/get-iterator":160,"../internals/get-iterator-method":159,"../internals/global":163,"../internals/is-array-iterator-method":174,"../internals/is-constructor":177,"../internals/length-of-array-like":188,"../internals/to-object":250}],110:[function(E,pe,de){var se=E("../internals/to-indexed-object"),ne=E("../internals/to-absolute-index"),ie=E("../internals/length-of-array-like"),ce=function(ue){return function(ae,oe,re){var ee=se(ae),a=ie(ee),y=ne(re,a),x;if(ue&&oe!=oe){for(;a>y;)if(x=ee[y++],x!=x)return!0}else for(;a>y;y++)if((ue||y in ee)&&ee[y]===oe)return ue||y||0;return!ue&&-1}};pe.exports={includes:ce(!0),indexOf:ce(!1)}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-indexed-object":247}],111:[function(E,pe,de){var se=E("../internals/function-bind-context"),ne=E("../internals/function-uncurry-this"),ie=E("../internals/indexed-object"),ce=E("../internals/to-object"),ue=E("../internals/length-of-array-like"),ae=E("../internals/array-species-create"),oe=ne([].push),re=function(ee){var a=ee==1,y=ee==2,x=ee==3,b=ee==4,z=ee==6,te=ee==7,le=ee==5||z;return function(fe,ge,me,he){for(var Se=ce(fe),ye=ie(Se),Pe=se(ge,me),we=ue(ye),De=0,Ee=he||ae,Ae=a?Ee(fe,we):y||te?Ee(fe,0):void 0,Ce,je;we>De;De++)if((le||De in ye)&&(Ce=ye[De],je=Pe(Ce,De,Se),ee))if(a)Ae[De]=je;else if(je)switch(ee){case 3:return!0;case 5:return Ce;case 6:return De;case 2:oe(Ae,Ce)}else switch(ee){case 4:return!1;case 7:oe(Ae,Ce)}return z?-1:x||b?b:Ae}};pe.exports={forEach:re(0),map:re(1),filter:re(2),some:re(3),every:re(4),find:re(5),findIndex:re(6),filterReject:re(7)}},{"../internals/array-species-create":120,"../internals/function-bind-context":153,"../internals/function-uncurry-this":157,"../internals/indexed-object":170,"../internals/length-of-array-like":188,"../internals/to-object":250}],112:[function(E,pe,de){"use strict";var se=E("../internals/function-apply"),ne=E("../internals/to-indexed-object"),ie=E("../internals/to-integer-or-infinity"),ce=E("../internals/length-of-array-like"),ue=E("../internals/array-method-is-strict"),ae=Math.min,oe=[].lastIndexOf,re=!!oe&&1/[1].lastIndexOf(1,-0)<0,ee=ue("lastIndexOf"),a=re||!ee;pe.exports=a?function(x){if(re)return se(oe,this,arguments)||0;var b=ne(this),z=ce(b),te=z-1;for(arguments.length>1&&(te=ae(te,ie(arguments[1]))),te<0&&(te=z+te);te>=0;te--)if(te in b&&b[te]===x)return te||0;return-1}:oe},{"../internals/array-method-is-strict":114,"../internals/function-apply":152,"../internals/length-of-array-like":188,"../internals/to-indexed-object":247,"../internals/to-integer-or-infinity":248}],113:[function(E,pe,de){var se=E("../internals/fails"),ne=E("../internals/well-known-symbol"),ie=E("../internals/engine-v8-version"),ce=ne("species");pe.exports=function(ue){return ie>=51||!se(function(){var ae=[],oe=ae.constructor={};return oe[ce]=function(){return{foo:1}},ae[ue](Boolean).foo!==1})}},{"../internals/engine-v8-version":146,"../internals/fails":150,"../internals/well-known-symbol":268}],114:[function(E,pe,de){"use strict";var se=E("../internals/fails");pe.exports=function(ne,ie){var ce=[][ne];return!!ce&&se(function(){ce.call(null,ie||function(){return 1},1)})}},{"../internals/fails":150}],115:[function(E,pe,de){var se=E("../internals/global"),ne=E("../internals/a-callable"),ie=E("../internals/to-object"),ce=E("../internals/indexed-object"),ue=E("../internals/length-of-array-like"),ae=se.TypeError,oe=function(re){return function(ee,a,y,x){ne(a);var b=ie(ee),z=ce(b),te=ue(b),le=re?te-1:0,fe=re?-1:1;if(y<2)for(;;){if(le in z){x=z[le],le+=fe;break}if(le+=fe,re?le<0:te<=le)throw ae("Reduce of empty array with no initial value")}for(;re?le>=0:te>le;le+=fe)le in z&&(x=a(x,z[le],le,b));return x}};pe.exports={left:oe(!1),right:oe(!0)}},{"../internals/a-callable":95,"../internals/global":163,"../internals/indexed-object":170,"../internals/length-of-array-like":188,"../internals/to-object":250}],116:[function(E,pe,de){var se=E("../internals/global"),ne=E("../internals/to-absolute-index"),ie=E("../internals/length-of-array-like"),ce=E("../internals/create-property"),ue=se.Array,ae=Math.max;pe.exports=function(oe,re,ee){for(var a=ie(oe),y=ne(re,a),x=ne(ee===void 0?a:ee,a),b=ue(ae(x-y,0)),z=0;y0;)ae[y]=ae[--y];y!==ee++&&(ae[y]=a)}return ae},ue=function(ae,oe,re,ee){for(var a=oe.length,y=re.length,x=0,b=0;x0&&oe[0]<4?1:+(oe[0]+oe[1])),!re&&ne&&(oe=ne.match(/Edge\/(\d+)/),(!oe||oe[1]>=74)&&(oe=ne.match(/Chrome\/(\d+)/),oe&&(re=+oe[1]))),pe.exports=re},{"../internals/engine-user-agent":145,"../internals/global":163}],147:[function(E,pe,de){var se=E("../internals/engine-user-agent"),ne=se.match(/AppleWebKit\/(\d+)\./);pe.exports=!!ne&&+ne[1]},{"../internals/engine-user-agent":145}],148:[function(E,pe,de){pe.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],149:[function(E,pe,de){var se=E("../internals/global"),ne=E("../internals/object-get-own-property-descriptor").f,ie=E("../internals/create-non-enumerable-property"),ce=E("../internals/redefine"),ue=E("../internals/set-global"),ae=E("../internals/copy-constructor-properties"),oe=E("../internals/is-forced");pe.exports=function(re,ee){var a=re.target,y=re.global,x=re.stat,b,z,te,le,fe,ge;if(y?z=se:x?z=se[a]||ue(a,{}):z=(se[a]||{}).prototype,z)for(te in ee){if(fe=ee[te],re.noTargetGet?(ge=ne(z,te),le=ge&&ge.value):le=z[te],b=oe(y?te:a+(x?".":"#")+te,re.forced),!b&&le!==void 0){if(typeof fe==typeof le)continue;ae(fe,le)}(re.sham||le&&le.sham)&&ie(fe,"sham",!0),ce(z,te,fe,re)}}},{"../internals/copy-constructor-properties":125,"../internals/create-non-enumerable-property":129,"../internals/global":163,"../internals/is-forced":178,"../internals/object-get-own-property-descriptor":199,"../internals/redefine":222,"../internals/set-global":232}],150:[function(E,pe,de){pe.exports=function(se){try{return!!se()}catch(ne){return!0}}},{}],151:[function(E,pe,de){"use strict";E("../modules/es.regexp.exec");var se=E("../internals/function-uncurry-this"),ne=E("../internals/redefine"),ie=E("../internals/regexp-exec"),ce=E("../internals/fails"),ue=E("../internals/well-known-symbol"),ae=E("../internals/create-non-enumerable-property"),oe=ue("species"),re=RegExp.prototype;pe.exports=function(ee,a,y,x){var b=ue(ee),z=!ce(function(){var ge={};return ge[b]=function(){return 7},""[ee](ge)!=7}),te=z&&!ce(function(){var ge=!1,me=/a/;return ee==="split"&&(me={},me.constructor={},me.constructor[oe]=function(){return me},me.flags="",me[b]=/./[b]),me.exec=function(){return ge=!0,null},me[b](""),!ge});if(!z||!te||y){var le=se(/./[b]),fe=a(b,""[ee],function(ge,me,he,Se,ye){var Pe=se(ge),we=me.exec;return we===ie||we===re.exec?z&&!ye?{done:!0,value:le(me,he,Se)}:{done:!0,value:Pe(he,me,Se)}:{done:!1}});ne(String.prototype,ee,fe[0]),ne(re,b,fe[1])}x&&ae(re[b],"sham",!0)}},{"../internals/create-non-enumerable-property":129,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/redefine":222,"../internals/regexp-exec":224,"../internals/well-known-symbol":268,"../modules/es.regexp.exec":300}],152:[function(E,pe,de){var se=E("../internals/function-bind-native"),ne=Function.prototype,ie=ne.apply,ce=ne.call;pe.exports=typeof Reflect=="object"&&Reflect.apply||(se?ce.bind(ie):function(){return ce.apply(ie,arguments)})},{"../internals/function-bind-native":154}],153:[function(E,pe,de){var se=E("../internals/function-uncurry-this"),ne=E("../internals/a-callable"),ie=E("../internals/function-bind-native"),ce=se(se.bind);pe.exports=function(ue,ae){return ne(ue),ae===void 0?ue:ie?ce(ue,ae):function(){return ue.apply(ae,arguments)}}},{"../internals/a-callable":95,"../internals/function-bind-native":154,"../internals/function-uncurry-this":157}],154:[function(E,pe,de){var se=E("../internals/fails");pe.exports=!se(function(){var ne=function(){}.bind();return typeof ne!="function"||ne.hasOwnProperty("prototype")})},{"../internals/fails":150}],155:[function(E,pe,de){var se=E("../internals/function-bind-native"),ne=Function.prototype.call;pe.exports=se?ne.bind(ne):function(){return ne.apply(ne,arguments)}},{"../internals/function-bind-native":154}],156:[function(E,pe,de){var se=E("../internals/descriptors"),ne=E("../internals/has-own-property"),ie=Function.prototype,ce=se&&Object.getOwnPropertyDescriptor,ue=ne(ie,"name"),ae=ue&&function(){}.name==="something",oe=ue&&(!se||se&&ce(ie,"name").configurable);pe.exports={EXISTS:ue,PROPER:ae,CONFIGURABLE:oe}},{"../internals/descriptors":134,"../internals/has-own-property":164}],157:[function(E,pe,de){var se=E("../internals/function-bind-native"),ne=Function.prototype,ie=ne.bind,ce=ne.call,ue=se&&ie.bind(ce,ce);pe.exports=se?function(ae){return ae&&ue(ae)}:function(ae){return ae&&function(){return ce.apply(ae,arguments)}}},{"../internals/function-bind-native":154}],158:[function(E,pe,de){var se=E("../internals/global"),ne=E("../internals/is-callable"),ie=function(ce){return ne(ce)?ce:void 0};pe.exports=function(ce,ue){return arguments.length<2?ie(se[ce]):se[ce]&&se[ce][ue]}},{"../internals/global":163,"../internals/is-callable":176}],159:[function(E,pe,de){var se=E("../internals/classof"),ne=E("../internals/get-method"),ie=E("../internals/iterators"),ce=E("../internals/well-known-symbol"),ue=ce("iterator");pe.exports=function(ae){if(ae!=null)return ne(ae,ue)||ne(ae,"@@iterator")||ie[se(ae)]}},{"../internals/classof":124,"../internals/get-method":161,"../internals/iterators":187,"../internals/well-known-symbol":268}],160:[function(E,pe,de){var se=E("../internals/global"),ne=E("../internals/function-call"),ie=E("../internals/a-callable"),ce=E("../internals/an-object"),ue=E("../internals/try-to-string"),ae=E("../internals/get-iterator-method"),oe=se.TypeError;pe.exports=function(re,ee){var a=arguments.length<2?ae(re):ee;if(ie(a))return ce(ne(a,re));throw oe(ue(re)+" is not iterable")}},{"../internals/a-callable":95,"../internals/an-object":101,"../internals/function-call":155,"../internals/get-iterator-method":159,"../internals/global":163,"../internals/try-to-string":257}],161:[function(E,pe,de){var se=E("../internals/a-callable");pe.exports=function(ne,ie){var ce=ne[ie];return ce==null?void 0:se(ce)}},{"../internals/a-callable":95}],162:[function(E,pe,de){var se=E("../internals/function-uncurry-this"),ne=E("../internals/to-object"),ie=Math.floor,ce=se("".charAt),ue=se("".replace),ae=se("".slice),oe=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,re=/\$([$&'`]|\d{1,2})/g;pe.exports=function(ee,a,y,x,b,z){var te=y+ee.length,le=x.length,fe=re;return b!==void 0&&(b=ne(b),fe=oe),ue(z,fe,function(ge,me){var he;switch(ce(me,0)){case"$":return"$";case"&":return ee;case"`":return ae(a,0,y);case"'":return ae(a,te);case"<":he=b[ae(me,1,-1)];break;default:var Se=+me;if(Se===0)return ge;if(Se>le){var ye=ie(Se/10);return ye===0?ge:ye<=le?x[ye-1]===void 0?ce(me,1):x[ye-1]+ce(me,1):ge}he=x[Se-1]}return he===void 0?"":he})}},{"../internals/function-uncurry-this":157,"../internals/to-object":250}],163:[function(E,pe,de){(function(se){(function(){var ne=function(ie){return ie&&ie.Math==Math&&ie};pe.exports=ne(typeof globalThis=="object"&&globalThis)||ne(typeof window=="object"&&window)||ne(typeof self=="object"&&self)||ne(typeof se=="object"&&se)||function(){return this}()||Function("return this")()}).call(this)}).call(this,typeof dt!="undefined"?dt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],164:[function(E,pe,de){var se=E("../internals/function-uncurry-this"),ne=E("../internals/to-object"),ie=se({}.hasOwnProperty);pe.exports=Object.hasOwn||function(ue,ae){return ie(ne(ue),ae)}},{"../internals/function-uncurry-this":157,"../internals/to-object":250}],165:[function(E,pe,de){pe.exports={}},{}],166:[function(E,pe,de){var se=E("../internals/global");pe.exports=function(ne,ie){var ce=se.console;ce&&ce.error&&(arguments.length==1?ce.error(ne):ce.error(ne,ie))}},{"../internals/global":163}],167:[function(E,pe,de){var se=E("../internals/get-built-in");pe.exports=se("document","documentElement")},{"../internals/get-built-in":158}],168:[function(E,pe,de){var se=E("../internals/descriptors"),ne=E("../internals/fails"),ie=E("../internals/document-create-element");pe.exports=!se&&!ne(function(){return Object.defineProperty(ie("div"),"a",{get:function(){return 7}}).a!=7})},{"../internals/descriptors":134,"../internals/document-create-element":135,"../internals/fails":150}],169:[function(E,pe,de){var se=E("../internals/global"),ne=se.Array,ie=Math.abs,ce=Math.pow,ue=Math.floor,ae=Math.log,oe=Math.LN2,re=function(a,y,x){var b=ne(x),z=x*8-y-1,te=(1<>1,fe=y===23?ce(2,-24)-ce(2,-77):0,ge=a<0||a===0&&1/a<0?1:0,me=0,he,Se,ye;for(a=ie(a),a!=a||a===1/0?(Se=a!=a?1:0,he=te):(he=ue(ae(a)/oe),ye=ce(2,-he),a*ye<1&&(he--,ye*=2),he+le>=1?a+=fe/ye:a+=fe*ce(2,1-le),a*ye>=2&&(he++,ye/=2),he+le>=te?(Se=0,he=te):he+le>=1?(Se=(a*ye-1)*ce(2,y),he=he+le):(Se=a*ce(2,le-1)*ce(2,y),he=0));y>=8;)b[me++]=Se&255,Se/=256,y-=8;for(he=he<0;)b[me++]=he&255,he/=256,z-=8;return b[--me]|=ge*128,b},ee=function(a,y){var x=a.length,b=x*8-y-1,z=(1<>1,le=b-7,fe=x-1,ge=a[fe--],me=ge&127,he;for(ge>>=7;le>0;)me=me*256+a[fe--],le-=8;for(he=me&(1<<-le)-1,me>>=-le,le+=y;le>0;)he=he*256+a[fe--],le-=8;if(me===0)me=1-te;else{if(me===z)return he?NaN:ge?-1/0:1/0;he=he+ce(2,y),me=me-te}return(ge?-1:1)*he*ce(2,me-y)};pe.exports={pack:re,unpack:ee}},{"../internals/global":163}],170:[function(E,pe,de){var se=E("../internals/global"),ne=E("../internals/function-uncurry-this"),ie=E("../internals/fails"),ce=E("../internals/classof-raw"),ue=se.Object,ae=ne("".split);pe.exports=ie(function(){return!ue("z").propertyIsEnumerable(0)})?function(oe){return ce(oe)=="String"?ae(oe,""):ue(oe)}:ue},{"../internals/classof-raw":123,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],171:[function(E,pe,de){var se=E("../internals/is-callable"),ne=E("../internals/is-object"),ie=E("../internals/object-set-prototype-of");pe.exports=function(ce,ue,ae){var oe,re;return ie&&se(oe=ue.constructor)&&oe!==ae&&ne(re=oe.prototype)&&re!==ae.prototype&&ie(ce,re),ce}},{"../internals/is-callable":176,"../internals/is-object":180,"../internals/object-set-prototype-of":208}],172:[function(E,pe,de){var se=E("../internals/function-uncurry-this"),ne=E("../internals/is-callable"),ie=E("../internals/shared-store"),ce=se(Function.toString);ne(ie.inspectSource)||(ie.inspectSource=function(ue){return ce(ue)}),pe.exports=ie.inspectSource},{"../internals/function-uncurry-this":157,"../internals/is-callable":176,"../internals/shared-store":236}],173:[function(E,pe,de){var se=E("../internals/native-weak-map"),ne=E("../internals/global"),ie=E("../internals/function-uncurry-this"),ce=E("../internals/is-object"),ue=E("../internals/create-non-enumerable-property"),ae=E("../internals/has-own-property"),oe=E("../internals/shared-store"),re=E("../internals/shared-key"),ee=E("../internals/hidden-keys"),a="Object already initialized",y=ne.TypeError,x=ne.WeakMap,b,z,te,le=function(Pe){return te(Pe)?z(Pe):b(Pe,{})},fe=function(Pe){return function(we){var De;if(!ce(we)||(De=z(we)).type!==Pe)throw y("Incompatible receiver, "+Pe+" required");return De}};if(se||oe.state){var ge=oe.state||(oe.state=new x),me=ie(ge.get),he=ie(ge.has),Se=ie(ge.set);b=function(Pe,we){if(he(ge,Pe))throw new y(a);return we.facade=Pe,Se(ge,Pe,we),we},z=function(Pe){return me(ge,Pe)||{}},te=function(Pe){return he(ge,Pe)}}else{var ye=re("state");ee[ye]=!0,b=function(Pe,we){if(ae(Pe,ye))throw new y(a);return we.facade=Pe,ue(Pe,ye,we),we},z=function(Pe){return ae(Pe,ye)?Pe[ye]:{}},te=function(Pe){return ae(Pe,ye)}}pe.exports={set:b,get:z,has:te,enforce:le,getterFor:fe}},{"../internals/create-non-enumerable-property":129,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/hidden-keys":165,"../internals/is-object":180,"../internals/native-weak-map":192,"../internals/shared-key":235,"../internals/shared-store":236}],174:[function(E,pe,de){var se=E("../internals/well-known-symbol"),ne=E("../internals/iterators"),ie=se("iterator"),ce=Array.prototype;pe.exports=function(ue){return ue!==void 0&&(ne.Array===ue||ce[ie]===ue)}},{"../internals/iterators":187,"../internals/well-known-symbol":268}],175:[function(E,pe,de){var se=E("../internals/classof-raw");pe.exports=Array.isArray||function(ie){return se(ie)=="Array"}},{"../internals/classof-raw":123}],176:[function(E,pe,de){pe.exports=function(se){return typeof se=="function"}},{}],177:[function(E,pe,de){var se=E("../internals/function-uncurry-this"),ne=E("../internals/fails"),ie=E("../internals/is-callable"),ce=E("../internals/classof"),ue=E("../internals/get-built-in"),ae=E("../internals/inspect-source"),oe=function(){},re=[],ee=ue("Reflect","construct"),a=/^\s*(?:class|function)\b/,y=se(a.exec),x=!a.exec(oe),b=function(le){if(!ie(le))return!1;try{return ee(oe,re,le),!0}catch(fe){return!1}},z=function(le){if(!ie(le))return!1;switch(ce(le)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return x||!!y(a,ae(le))}catch(fe){return!0}};z.sham=!0,pe.exports=!ee||ne(function(){var te;return b(b.call)||!b(Object)||!b(function(){te=!0})||te})?z:b},{"../internals/classof":124,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/get-built-in":158,"../internals/inspect-source":172,"../internals/is-callable":176}],178:[function(E,pe,de){var se=E("../internals/fails"),ne=E("../internals/is-callable"),ie=/#|\.prototype\./,ce=function(ee,a){var y=ae[ue(ee)];return y==re?!0:y==oe?!1:ne(a)?se(a):!!a},ue=ce.normalize=function(ee){return String(ee).replace(ie,".").toLowerCase()},ae=ce.data={},oe=ce.NATIVE="N",re=ce.POLYFILL="P";pe.exports=ce},{"../internals/fails":150,"../internals/is-callable":176}],179:[function(E,pe,de){var se=E("../internals/is-object"),ne=Math.floor;pe.exports=Number.isInteger||function(ce){return!se(ce)&&isFinite(ce)&&ne(ce)===ce}},{"../internals/is-object":180}],180:[function(E,pe,de){var se=E("../internals/is-callable");pe.exports=function(ne){return typeof ne=="object"?ne!==null:se(ne)}},{"../internals/is-callable":176}],181:[function(E,pe,de){pe.exports=!1},{}],182:[function(E,pe,de){var se=E("../internals/is-object"),ne=E("../internals/classof-raw"),ie=E("../internals/well-known-symbol"),ce=ie("match");pe.exports=function(ue){var ae;return se(ue)&&((ae=ue[ce])!==void 0?!!ae:ne(ue)=="RegExp")}},{"../internals/classof-raw":123,"../internals/is-object":180,"../internals/well-known-symbol":268}],183:[function(E,pe,de){var se=E("../internals/global"),ne=E("../internals/get-built-in"),ie=E("../internals/is-callable"),ce=E("../internals/object-is-prototype-of"),ue=E("../internals/use-symbol-as-uid"),ae=se.Object;pe.exports=ue?function(oe){return typeof oe=="symbol"}:function(oe){var re=ne("Symbol");return ie(re)&&ce(re.prototype,ae(oe))}},{"../internals/get-built-in":158,"../internals/global":163,"../internals/is-callable":176,"../internals/object-is-prototype-of":204,"../internals/use-symbol-as-uid":264}],184:[function(E,pe,de){var se=E("../internals/global"),ne=E("../internals/function-bind-context"),ie=E("../internals/function-call"),ce=E("../internals/an-object"),ue=E("../internals/try-to-string"),ae=E("../internals/is-array-iterator-method"),oe=E("../internals/length-of-array-like"),re=E("../internals/object-is-prototype-of"),ee=E("../internals/get-iterator"),a=E("../internals/get-iterator-method"),y=E("../internals/iterator-close"),x=se.TypeError,b=function(te,le){this.stopped=te,this.result=le},z=b.prototype;pe.exports=function(te,le,fe){var ge=fe&&fe.that,me=!!(fe&&fe.AS_ENTRIES),he=!!(fe&&fe.IS_ITERATOR),Se=!!(fe&&fe.INTERRUPTED),ye=ne(le,ge),Pe,we,De,Ee,Ae,Ce,je,Me=function(Fe){return Pe&&y(Pe,"normal",Fe),new b(!0,Fe)},Ge=function(Fe){return me?(ce(Fe),Se?ye(Fe[0],Fe[1],Me):ye(Fe[0],Fe[1])):Se?ye(Fe,Me):ye(Fe)};if(he)Pe=te;else{if(we=a(te),!we)throw x(ue(te)+" is not iterable");if(ae(we)){for(De=0,Ee=oe(te);Ee>De;De++)if(Ae=Ge(te[De]),Ae&&re(z,Ae))return Ae;return new b(!1)}Pe=ee(te,we)}for(Ce=Pe.next;!(je=ie(Ce,Pe)).done;){try{Ae=Ge(je.value)}catch(Fe){y(Pe,"throw",Fe)}if(typeof Ae=="object"&&Ae&&re(z,Ae))return Ae}return new b(!1)}},{"../internals/an-object":101,"../internals/function-bind-context":153,"../internals/function-call":155,"../internals/get-iterator":160,"../internals/get-iterator-method":159,"../internals/global":163,"../internals/is-array-iterator-method":174,"../internals/iterator-close":185,"../internals/length-of-array-like":188,"../internals/object-is-prototype-of":204,"../internals/try-to-string":257}],185:[function(E,pe,de){var se=E("../internals/function-call"),ne=E("../internals/an-object"),ie=E("../internals/get-method");pe.exports=function(ce,ue,ae){var oe,re;ne(ce);try{if(oe=ie(ce,"return"),!oe){if(ue==="throw")throw ae;return ae}oe=se(oe,ce)}catch(ee){re=!0,oe=ee}if(ue==="throw")throw ae;if(re)throw oe;return ne(oe),ae}},{"../internals/an-object":101,"../internals/function-call":155,"../internals/get-method":161}],186:[function(E,pe,de){"use strict";var se=E("../internals/fails"),ne=E("../internals/is-callable"),ie=E("../internals/object-create"),ce=E("../internals/object-get-prototype-of"),ue=E("../internals/redefine"),ae=E("../internals/well-known-symbol"),oe=E("../internals/is-pure"),re=ae("iterator"),ee=!1,a,y,x;[].keys&&(x=[].keys(),"next"in x?(y=ce(ce(x)),y!==Object.prototype&&(a=y)):ee=!0);var b=a==null||se(function(){var z={};return a[re].call(z)!==z});b?a={}:oe&&(a=ie(a)),ne(a[re])||ue(a,re,function(){return this}),pe.exports={IteratorPrototype:a,BUGGY_SAFARI_ITERATORS:ee}},{"../internals/fails":150,"../internals/is-callable":176,"../internals/is-pure":181,"../internals/object-create":196,"../internals/object-get-prototype-of":203,"../internals/redefine":222,"../internals/well-known-symbol":268}],187:[function(E,pe,de){arguments[4][165][0].apply(de,arguments)},{dup:165}],188:[function(E,pe,de){var se=E("../internals/to-length");pe.exports=function(ne){return se(ne.length)}},{"../internals/to-length":249}],189:[function(E,pe,de){var se=E("../internals/global"),ne=E("../internals/function-bind-context"),ie=E("../internals/object-get-own-property-descriptor").f,ce=E("../internals/task").set,ue=E("../internals/engine-is-ios"),ae=E("../internals/engine-is-ios-pebble"),oe=E("../internals/engine-is-webos-webkit"),re=E("../internals/engine-is-node"),ee=se.MutationObserver||se.WebKitMutationObserver,a=se.document,y=se.process,x=se.Promise,b=ie(se,"queueMicrotask"),z=b&&b.value,te,le,fe,ge,me,he,Se,ye;z||(te=function(){var Pe,we;for(re&&(Pe=y.domain)&&Pe.exit();le;){we=le.fn,le=le.next;try{we()}catch(De){throw le?ge():fe=void 0,De}}fe=void 0,Pe&&Pe.enter()},!ue&&!re&&!oe&&ee&&a?(me=!0,he=a.createTextNode(""),new ee(te).observe(he,{characterData:!0}),ge=function(){he.data=me=!me}):!ae&&x&&x.resolve?(Se=x.resolve(void 0),Se.constructor=x,ye=ne(Se.then,Se),ge=function(){ye(te)}):re?ge=function(){y.nextTick(te)}:(ce=ne(ce,se),ge=function(){ce(te)})),pe.exports=z||function(Pe){var we={fn:Pe,next:void 0};fe&&(fe.next=we),le||(le=we,ge()),fe=we}},{"../internals/engine-is-ios":142,"../internals/engine-is-ios-pebble":141,"../internals/engine-is-node":143,"../internals/engine-is-webos-webkit":144,"../internals/function-bind-context":153,"../internals/global":163,"../internals/object-get-own-property-descriptor":199,"../internals/task":243}],190:[function(E,pe,de){var se=E("../internals/native-symbol");pe.exports=se&&!!Symbol.for&&!!Symbol.keyFor},{"../internals/native-symbol":191}],191:[function(E,pe,de){var se=E("../internals/engine-v8-version"),ne=E("../internals/fails");pe.exports=!!Object.getOwnPropertySymbols&&!ne(function(){var ie=Symbol();return!String(ie)||!(Object(ie)instanceof Symbol)||!Symbol.sham&&se&&se<41})},{"../internals/engine-v8-version":146,"../internals/fails":150}],192:[function(E,pe,de){var se=E("../internals/global"),ne=E("../internals/is-callable"),ie=E("../internals/inspect-source"),ce=se.WeakMap;pe.exports=ne(ce)&&/native code/.test(ie(ce))},{"../internals/global":163,"../internals/inspect-source":172,"../internals/is-callable":176}],193:[function(E,pe,de){"use strict";var se=E("../internals/a-callable"),ne=function(ie){var ce,ue;this.promise=new ie(function(ae,oe){if(ce!==void 0||ue!==void 0)throw TypeError("Bad Promise constructor");ce=ae,ue=oe}),this.resolve=se(ce),this.reject=se(ue)};pe.exports.f=function(ie){return new ne(ie)}},{"../internals/a-callable":95}],194:[function(E,pe,de){var se=E("../internals/global"),ne=E("../internals/is-regexp"),ie=se.TypeError;pe.exports=function(ce){if(ne(ce))throw ie("The method doesn't accept regular expressions");return ce}},{"../internals/global":163,"../internals/is-regexp":182}],195:[function(E,pe,de){"use strict";var se=E("../internals/descriptors"),ne=E("../internals/function-uncurry-this"),ie=E("../internals/function-call"),ce=E("../internals/fails"),ue=E("../internals/object-keys"),ae=E("../internals/object-get-own-property-symbols"),oe=E("../internals/object-property-is-enumerable"),re=E("../internals/to-object"),ee=E("../internals/indexed-object"),a=Object.assign,y=Object.defineProperty,x=ne([].concat);pe.exports=!a||ce(function(){if(se&&a({b:1},a(y({},"a",{enumerable:!0,get:function(){y(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var b={},z={},te=Symbol(),le="abcdefghijklmnopqrst";return b[te]=7,le.split("").forEach(function(fe){z[fe]=fe}),a({},b)[te]!=7||ue(a({},z)).join("")!=le})?function(z,te){for(var le=re(z),fe=arguments.length,ge=1,me=ae.f,he=oe.f;fe>ge;)for(var Se=ee(arguments[ge++]),ye=me?x(ue(Se),me(Se)):ue(Se),Pe=ye.length,we=0,De;Pe>we;)De=ye[we++],(!se||ie(he,Se,De))&&(le[De]=Se[De]);return le}:a},{"../internals/descriptors":134,"../internals/fails":150,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/indexed-object":170,"../internals/object-get-own-property-symbols":202,"../internals/object-keys":206,"../internals/object-property-is-enumerable":207,"../internals/to-object":250}],196:[function(E,pe,de){var se=E("../internals/an-object"),ne=E("../internals/object-define-properties"),ie=E("../internals/enum-bug-keys"),ce=E("../internals/hidden-keys"),ue=E("../internals/html"),ae=E("../internals/document-create-element"),oe=E("../internals/shared-key"),re=">",ee="<",a="prototype",y="script",x=oe("IE_PROTO"),b=function(){},z=function(me){return ee+y+re+me+ee+"/"+y+re},te=function(me){me.write(z("")),me.close();var he=me.parentWindow.Object;return me=null,he},le=function(){var me=ae("iframe"),he="java"+y+":",Se;return me.style.display="none",ue.appendChild(me),me.src=String(he),Se=me.contentWindow.document,Se.open(),Se.write(z("document.F=Object")),Se.close(),Se.F},fe,ge=function(){try{fe=new ActiveXObject("htmlfile")}catch(he){}ge=typeof document!="undefined"?document.domain&&fe?te(fe):le():te(fe);for(var me=ie.length;me--;)delete ge[a][ie[me]];return ge()};ce[x]=!0,pe.exports=Object.create||function(he,Se){var ye;return he!==null?(b[a]=se(he),ye=new b,b[a]=null,ye[x]=he):ye=ge(),Se===void 0?ye:ne.f(ye,Se)}},{"../internals/an-object":101,"../internals/document-create-element":135,"../internals/enum-bug-keys":148,"../internals/hidden-keys":165,"../internals/html":167,"../internals/object-define-properties":197,"../internals/shared-key":235}],197:[function(E,pe,de){var se=E("../internals/descriptors"),ne=E("../internals/v8-prototype-define-bug"),ie=E("../internals/object-define-property"),ce=E("../internals/an-object"),ue=E("../internals/to-indexed-object"),ae=E("../internals/object-keys");de.f=se&&!ne?Object.defineProperties:function(re,ee){ce(re);for(var a=ue(ee),y=ae(ee),x=y.length,b=0,z;x>b;)ie.f(re,z=y[b++],a[z]);return re}},{"../internals/an-object":101,"../internals/descriptors":134,"../internals/object-define-property":198,"../internals/object-keys":206,"../internals/to-indexed-object":247,"../internals/v8-prototype-define-bug":265}],198:[function(E,pe,de){var se=E("../internals/global"),ne=E("../internals/descriptors"),ie=E("../internals/ie8-dom-define"),ce=E("../internals/v8-prototype-define-bug"),ue=E("../internals/an-object"),ae=E("../internals/to-property-key"),oe=se.TypeError,re=Object.defineProperty,ee=Object.getOwnPropertyDescriptor,a="enumerable",y="configurable",x="writable";de.f=ne?ce?function(z,te,le){if(ue(z),te=ae(te),ue(le),typeof z=="function"&&te==="prototype"&&"value"in le&&x in le&&!le[x]){var fe=ee(z,te);fe&&fe[x]&&(z[te]=le.value,le={configurable:y in le?le[y]:fe[y],enumerable:a in le?le[a]:fe[a],writable:!1})}return re(z,te,le)}:re:function(z,te,le){if(ue(z),te=ae(te),ue(le),ie)try{return re(z,te,le)}catch(fe){}if("get"in le||"set"in le)throw oe("Accessors not supported");return"value"in le&&(z[te]=le.value),z}},{"../internals/an-object":101,"../internals/descriptors":134,"../internals/global":163,"../internals/ie8-dom-define":168,"../internals/to-property-key":254,"../internals/v8-prototype-define-bug":265}],199:[function(E,pe,de){var se=E("../internals/descriptors"),ne=E("../internals/function-call"),ie=E("../internals/object-property-is-enumerable"),ce=E("../internals/create-property-descriptor"),ue=E("../internals/to-indexed-object"),ae=E("../internals/to-property-key"),oe=E("../internals/has-own-property"),re=E("../internals/ie8-dom-define"),ee=Object.getOwnPropertyDescriptor;de.f=se?ee:function(y,x){if(y=ue(y),x=ae(x),re)try{return ee(y,x)}catch(b){}if(oe(y,x))return ce(!ne(ie.f,y,x),y[x])}},{"../internals/create-property-descriptor":130,"../internals/descriptors":134,"../internals/function-call":155,"../internals/has-own-property":164,"../internals/ie8-dom-define":168,"../internals/object-property-is-enumerable":207,"../internals/to-indexed-object":247,"../internals/to-property-key":254}],200:[function(E,pe,de){var se=E("../internals/classof-raw"),ne=E("../internals/to-indexed-object"),ie=E("../internals/object-get-own-property-names").f,ce=E("../internals/array-slice-simple"),ue=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],ae=function(oe){try{return ie(oe)}catch(re){return ce(ue)}};pe.exports.f=function(re){return ue&&se(re)=="Window"?ae(re):ie(ne(re))}},{"../internals/array-slice-simple":116,"../internals/classof-raw":123,"../internals/object-get-own-property-names":201,"../internals/to-indexed-object":247}],201:[function(E,pe,de){var se=E("../internals/object-keys-internal"),ne=E("../internals/enum-bug-keys"),ie=ne.concat("length","prototype");de.f=Object.getOwnPropertyNames||function(ue){return se(ue,ie)}},{"../internals/enum-bug-keys":148,"../internals/object-keys-internal":205}],202:[function(E,pe,de){de.f=Object.getOwnPropertySymbols},{}],203:[function(E,pe,de){var se=E("../internals/global"),ne=E("../internals/has-own-property"),ie=E("../internals/is-callable"),ce=E("../internals/to-object"),ue=E("../internals/shared-key"),ae=E("../internals/correct-prototype-getter"),oe=ue("IE_PROTO"),re=se.Object,ee=re.prototype;pe.exports=ae?re.getPrototypeOf:function(a){var y=ce(a);if(ne(y,oe))return y[oe];var x=y.constructor;return ie(x)&&y instanceof x?x.prototype:y instanceof re?ee:null}},{"../internals/correct-prototype-getter":127,"../internals/global":163,"../internals/has-own-property":164,"../internals/is-callable":176,"../internals/shared-key":235,"../internals/to-object":250}],204:[function(E,pe,de){var se=E("../internals/function-uncurry-this");pe.exports=se({}.isPrototypeOf)},{"../internals/function-uncurry-this":157}],205:[function(E,pe,de){var se=E("../internals/function-uncurry-this"),ne=E("../internals/has-own-property"),ie=E("../internals/to-indexed-object"),ce=E("../internals/array-includes").indexOf,ue=E("../internals/hidden-keys"),ae=se([].push);pe.exports=function(oe,re){var ee=ie(oe),a=0,y=[],x;for(x in ee)!ne(ue,x)&&ne(ee,x)&&ae(y,x);for(;re.length>a;)ne(ee,x=re[a++])&&(~ce(y,x)||ae(y,x));return y}},{"../internals/array-includes":110,"../internals/function-uncurry-this":157,"../internals/has-own-property":164,"../internals/hidden-keys":165,"../internals/to-indexed-object":247}],206:[function(E,pe,de){var se=E("../internals/object-keys-internal"),ne=E("../internals/enum-bug-keys");pe.exports=Object.keys||function(ce){return se(ce,ne)}},{"../internals/enum-bug-keys":148,"../internals/object-keys-internal":205}],207:[function(E,pe,de){"use strict";var se={}.propertyIsEnumerable,ne=Object.getOwnPropertyDescriptor,ie=ne&&!se.call({1:2},1);de.f=ie?function(ue){var ae=ne(this,ue);return!!ae&&ae.enumerable}:se},{}],208:[function(E,pe,de){var se=E("../internals/function-uncurry-this"),ne=E("../internals/an-object"),ie=E("../internals/a-possible-prototype");pe.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var ce=!1,ue={},ae;try{ae=se(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),ae(ue,[]),ce=ue instanceof Array}catch(oe){}return function(re,ee){return ne(re),ie(ee),ce?ae(re,ee):re.__proto__=ee,re}}():void 0)},{"../internals/a-possible-prototype":97,"../internals/an-object":101,"../internals/function-uncurry-this":157}],209:[function(E,pe,de){var se=E("../internals/descriptors"),ne=E("../internals/function-uncurry-this"),ie=E("../internals/object-keys"),ce=E("../internals/to-indexed-object"),ue=E("../internals/object-property-is-enumerable").f,ae=ne(ue),oe=ne([].push),re=function(ee){return function(a){for(var y=ce(a),x=ie(y),b=x.length,z=0,te=[],le;b>z;)le=x[z++],(!se||ae(y,le))&&oe(te,ee?[le,y[le]]:y[le]);return te}};pe.exports={entries:re(!0),values:re(!1)}},{"../internals/descriptors":134,"../internals/function-uncurry-this":157,"../internals/object-keys":206,"../internals/object-property-is-enumerable":207,"../internals/to-indexed-object":247}],210:[function(E,pe,de){"use strict";var se=E("../internals/to-string-tag-support"),ne=E("../internals/classof");pe.exports=se?{}.toString:function(){return"[object "+ne(this)+"]"}},{"../internals/classof":124,"../internals/to-string-tag-support":255}],211:[function(E,pe,de){var se=E("../internals/global"),ne=E("../internals/function-call"),ie=E("../internals/is-callable"),ce=E("../internals/is-object"),ue=se.TypeError;pe.exports=function(ae,oe){var re,ee;if(oe==="string"&&ie(re=ae.toString)&&!ce(ee=ne(re,ae))||ie(re=ae.valueOf)&&!ce(ee=ne(re,ae))||oe!=="string"&&ie(re=ae.toString)&&!ce(ee=ne(re,ae)))return ee;throw ue("Can't convert object to primitive value")}},{"../internals/function-call":155,"../internals/global":163,"../internals/is-callable":176,"../internals/is-object":180}],212:[function(E,pe,de){var se=E("../internals/get-built-in"),ne=E("../internals/function-uncurry-this"),ie=E("../internals/object-get-own-property-names"),ce=E("../internals/object-get-own-property-symbols"),ue=E("../internals/an-object"),ae=ne([].concat);pe.exports=se("Reflect","ownKeys")||function(re){var ee=ie.f(ue(re)),a=ce.f;return a?ae(ee,a(re)):ee}},{"../internals/an-object":101,"../internals/function-uncurry-this":157,"../internals/get-built-in":158,"../internals/object-get-own-property-names":201,"../internals/object-get-own-property-symbols":202}],213:[function(E,pe,de){var se=E("../internals/global");pe.exports=se},{"../internals/global":163}],214:[function(E,pe,de){pe.exports=function(se){try{return{error:!1,value:se()}}catch(ne){return{error:!0,value:ne}}}},{}],215:[function(E,pe,de){var se=E("../internals/global"),ne=E("../internals/promise-native-constructor"),ie=E("../internals/is-callable"),ce=E("../internals/is-forced"),ue=E("../internals/inspect-source"),ae=E("../internals/well-known-symbol"),oe=E("../internals/engine-is-browser"),re=E("../internals/is-pure"),ee=E("../internals/engine-v8-version"),a=ne&&ne.prototype,y=ae("species"),x=!1,b=ie(se.PromiseRejectionEvent),z=ce("Promise",function(){var te=ue(ne),le=te!==String(ne);if(!le&&ee===66||re&&!(a.catch&&a.finally))return!0;if(ee>=51&&/native code/.test(te))return!1;var fe=new ne(function(he){he(1)}),ge=function(he){he(function(){},function(){})},me=fe.constructor={};return me[y]=ge,x=fe.then(function(){})instanceof ge,x?!le&&oe&&!b:!0});pe.exports={CONSTRUCTOR:z,REJECTION_EVENT:b,SUBCLASSING:x}},{"../internals/engine-is-browser":139,"../internals/engine-v8-version":146,"../internals/global":163,"../internals/inspect-source":172,"../internals/is-callable":176,"../internals/is-forced":178,"../internals/is-pure":181,"../internals/promise-native-constructor":216,"../internals/well-known-symbol":268}],216:[function(E,pe,de){var se=E("../internals/global");pe.exports=se.Promise},{"../internals/global":163}],217:[function(E,pe,de){var se=E("../internals/an-object"),ne=E("../internals/is-object"),ie=E("../internals/new-promise-capability");pe.exports=function(ce,ue){if(se(ce),ne(ue)&&ue.constructor===ce)return ue;var ae=ie.f(ce),oe=ae.resolve;return oe(ue),ae.promise}},{"../internals/an-object":101,"../internals/is-object":180,"../internals/new-promise-capability":193}],218:[function(E,pe,de){var se=E("../internals/promise-native-constructor"),ne=E("../internals/check-correctness-of-iteration"),ie=E("../internals/promise-constructor-detection").CONSTRUCTOR;pe.exports=ie||!ne(function(ce){se.all(ce).then(void 0,function(){})})},{"../internals/check-correctness-of-iteration":122,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216}],219:[function(E,pe,de){var se=E("../internals/object-define-property").f;pe.exports=function(ne,ie,ce){ce in ne||se(ne,ce,{configurable:!0,get:function(){return ie[ce]},set:function(ue){ie[ce]=ue}})}},{"../internals/object-define-property":198}],220:[function(E,pe,de){var se=function(){this.head=null,this.tail=null};se.prototype={add:function(ne){var ie={item:ne,next:null};this.head?this.tail.next=ie:this.head=ie,this.tail=ie},get:function(){var ne=this.head;if(ne)return this.head=ne.next,this.tail===ne&&(this.tail=null),ne.item}},pe.exports=se},{}],221:[function(E,pe,de){var se=E("../internals/redefine");pe.exports=function(ne,ie,ce){for(var ue in ie)se(ne,ue,ie[ue],ce);return ne}},{"../internals/redefine":222}],222:[function(E,pe,de){var se=E("../internals/global"),ne=E("../internals/is-callable"),ie=E("../internals/has-own-property"),ce=E("../internals/create-non-enumerable-property"),ue=E("../internals/set-global"),ae=E("../internals/inspect-source"),oe=E("../internals/internal-state"),re=E("../internals/function-name").CONFIGURABLE,ee=oe.get,a=oe.enforce,y=String(String).split("String");(pe.exports=function(x,b,z,te){var le=te?!!te.unsafe:!1,fe=te?!!te.enumerable:!1,ge=te?!!te.noTargetGet:!1,me=te&&te.name!==void 0?te.name:b,he;if(ne(z)&&(String(me).slice(0,7)==="Symbol("&&(me="["+String(me).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!ie(z,"name")||re&&z.name!==me)&&ce(z,"name",me),he=a(z),he.source||(he.source=y.join(typeof me=="string"?me:""))),x===se){fe?x[b]=z:ue(b,z);return}else le?!ge&&x[b]&&(fe=!0):delete x[b];fe?x[b]=z:ce(x,b,z)})(Function.prototype,"toString",function(){return ne(this)&&ee(this).source||ae(this)})},{"../internals/create-non-enumerable-property":129,"../internals/function-name":156,"../internals/global":163,"../internals/has-own-property":164,"../internals/inspect-source":172,"../internals/internal-state":173,"../internals/is-callable":176,"../internals/set-global":232}],223:[function(E,pe,de){var se=E("../internals/global"),ne=E("../internals/function-call"),ie=E("../internals/an-object"),ce=E("../internals/is-callable"),ue=E("../internals/classof-raw"),ae=E("../internals/regexp-exec"),oe=se.TypeError;pe.exports=function(re,ee){var a=re.exec;if(ce(a)){var y=ne(a,re,ee);return y!==null&&ie(y),y}if(ue(re)==="RegExp")return ne(ae,re,ee);throw oe("RegExp#exec called on incompatible receiver")}},{"../internals/an-object":101,"../internals/classof-raw":123,"../internals/function-call":155,"../internals/global":163,"../internals/is-callable":176,"../internals/regexp-exec":224}],224:[function(E,pe,de){"use strict";var se=E("../internals/function-call"),ne=E("../internals/function-uncurry-this"),ie=E("../internals/to-string"),ce=E("../internals/regexp-flags"),ue=E("../internals/regexp-sticky-helpers"),ae=E("../internals/shared"),oe=E("../internals/object-create"),re=E("../internals/internal-state").get,ee=E("../internals/regexp-unsupported-dot-all"),a=E("../internals/regexp-unsupported-ncg"),y=ae("native-string-replace",String.prototype.replace),x=RegExp.prototype.exec,b=x,z=ne("".charAt),te=ne("".indexOf),le=ne("".replace),fe=ne("".slice),ge=function(){var ye=/a/,Pe=/b*/g;return se(x,ye,"a"),se(x,Pe,"a"),ye.lastIndex!==0||Pe.lastIndex!==0}(),me=ue.BROKEN_CARET,he=/()??/.exec("")[1]!==void 0,Se=ge||he||me||ee||a;Se&&(b=function(Pe){var we=this,De=re(we),Ee=ie(Pe),Ae=De.raw,Ce,je,Me,Ge,Fe,Je,qe;if(Ae)return Ae.lastIndex=we.lastIndex,Ce=se(b,Ae,Ee),we.lastIndex=Ae.lastIndex,Ce;var Xe=De.groups,Ve=me&&we.sticky,We=se(ce,we),ze=we.source,Ue=0,ot=Ee;if(Ve&&(We=le(We,"y",""),te(We,"g")===-1&&(We+="g"),ot=fe(Ee,we.lastIndex),we.lastIndex>0&&(!we.multiline||we.multiline&&z(Ee,we.lastIndex-1)!==` `)&&(ze="(?: "+ze+")",ot=" "+ot,Ue++),je=new RegExp("^(?:"+ze+")",We)),he&&(je=new RegExp("^"+ze+"$(?!\\s)",We)),ge&&(Me=we.lastIndex),Ge=se(x,Ve?je:we,ot),Ve?Ge?(Ge.input=fe(Ge.input,Ue),Ge[0]=fe(Ge[0],Ue),Ge.index=we.lastIndex,we.lastIndex+=Ge[0].length):we.lastIndex=0:ge&&Ge&&(we.lastIndex=we.global?Ge.index+Ge[0].length:Me),he&&Ge&&Ge.length>1&&se(y,Ge[0],je,function(){for(Fe=1;Feb)","g");return ce.exec("b").groups.a!=="b"||"b".replace(ce,"$c")!=="bc"})},{"../internals/fails":150,"../internals/global":163}],230:[function(E,pe,de){var se=E("../internals/global"),ne=se.TypeError;pe.exports=function(ie){if(ie==null)throw ne("Can't call method on "+ie);return ie}},{"../internals/global":163}],231:[function(E,pe,de){pe.exports=Object.is||function(ne,ie){return ne===ie?ne!==0||1/ne===1/ie:ne!=ne&&ie!=ie}},{}],232:[function(E,pe,de){var se=E("../internals/global"),ne=Object.defineProperty;pe.exports=function(ie,ce){try{ne(se,ie,{value:ce,configurable:!0,writable:!0})}catch(ue){se[ie]=ce}return ce}},{"../internals/global":163}],233:[function(E,pe,de){"use strict";var se=E("../internals/get-built-in"),ne=E("../internals/object-define-property"),ie=E("../internals/well-known-symbol"),ce=E("../internals/descriptors"),ue=ie("species");pe.exports=function(ae){var oe=se(ae),re=ne.f;ce&&oe&&!oe[ue]&&re(oe,ue,{configurable:!0,get:function(){return this}})}},{"../internals/descriptors":134,"../internals/get-built-in":158,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],234:[function(E,pe,de){var se=E("../internals/object-define-property").f,ne=E("../internals/has-own-property"),ie=E("../internals/well-known-symbol"),ce=ie("toStringTag");pe.exports=function(ue,ae,oe){ue&&!oe&&(ue=ue.prototype),ue&&!ne(ue,ce)&&se(ue,ce,{configurable:!0,value:ae})}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],235:[function(E,pe,de){var se=E("../internals/shared"),ne=E("../internals/uid"),ie=se("keys");pe.exports=function(ce){return ie[ce]||(ie[ce]=ne(ce))}},{"../internals/shared":237,"../internals/uid":263}],236:[function(E,pe,de){var se=E("../internals/global"),ne=E("../internals/set-global"),ie="__core-js_shared__",ce=se[ie]||ne(ie,{});pe.exports=ce},{"../internals/global":163,"../internals/set-global":232}],237:[function(E,pe,de){var se=E("../internals/is-pure"),ne=E("../internals/shared-store");(pe.exports=function(ie,ce){return ne[ie]||(ne[ie]=ce!==void 0?ce:{})})("versions",[]).push({version:"3.22.1",mode:se?"pure":"global",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.22.1/LICENSE",source:"https://github.com/zloirock/core-js"})},{"../internals/is-pure":181,"../internals/shared-store":236}],238:[function(E,pe,de){var se=E("../internals/an-object"),ne=E("../internals/a-constructor"),ie=E("../internals/well-known-symbol"),ce=ie("species");pe.exports=function(ue,ae){var oe=se(ue).constructor,re;return oe===void 0||(re=se(oe)[ce])==null?ae:ne(re)}},{"../internals/a-constructor":96,"../internals/an-object":101,"../internals/well-known-symbol":268}],239:[function(E,pe,de){var se=E("../internals/function-uncurry-this"),ne=E("../internals/to-integer-or-infinity"),ie=E("../internals/to-string"),ce=E("../internals/require-object-coercible"),ue=se("".charAt),ae=se("".charCodeAt),oe=se("".slice),re=function(ee){return function(a,y){var x=ie(ce(a)),b=ne(y),z=x.length,te,le;return b<0||b>=z?ee?"":void 0:(te=ae(x,b),te<55296||te>56319||b+1===z||(le=ae(x,b+1))<56320||le>57343?ee?ue(x,b):te:ee?oe(x,b,b+2):(te-55296<<10)+(le-56320)+65536)}};pe.exports={codeAt:re(!1),charAt:re(!0)}},{"../internals/function-uncurry-this":157,"../internals/require-object-coercible":230,"../internals/to-integer-or-infinity":248,"../internals/to-string":256}],240:[function(E,pe,de){var se=E("../internals/function-name").PROPER,ne=E("../internals/fails"),ie=E("../internals/whitespaces"),ce="\u200B\x85\u180E";pe.exports=function(ue){return ne(function(){return!!ie[ue]()||ce[ue]()!==ce||se&&ie[ue].name!==ue})}},{"../internals/fails":150,"../internals/function-name":156,"../internals/whitespaces":269}],241:[function(E,pe,de){var se=E("../internals/function-uncurry-this"),ne=E("../internals/require-object-coercible"),ie=E("../internals/to-string"),ce=E("../internals/whitespaces"),ue=se("".replace),ae="["+ce+"]",oe=RegExp("^"+ae+ae+"*"),re=RegExp(ae+ae+"*$"),ee=function(a){return function(y){var x=ie(ne(y));return a&1&&(x=ue(x,oe,"")),a&2&&(x=ue(x,re,"")),x}};pe.exports={start:ee(1),end:ee(2),trim:ee(3)}},{"../internals/function-uncurry-this":157,"../internals/require-object-coercible":230,"../internals/to-string":256,"../internals/whitespaces":269}],242:[function(E,pe,de){var se=E("../internals/function-call"),ne=E("../internals/get-built-in"),ie=E("../internals/well-known-symbol"),ce=E("../internals/redefine");pe.exports=function(){var ue=ne("Symbol"),ae=ue&&ue.prototype,oe=ae&&ae.valueOf,re=ie("toPrimitive");ae&&!ae[re]&&ce(ae,re,function(ee){return se(oe,this)})}},{"../internals/function-call":155,"../internals/get-built-in":158,"../internals/redefine":222,"../internals/well-known-symbol":268}],243:[function(E,pe,de){var se=E("../internals/global"),ne=E("../internals/function-apply"),ie=E("../internals/function-bind-context"),ce=E("../internals/is-callable"),ue=E("../internals/has-own-property"),ae=E("../internals/fails"),oe=E("../internals/html"),re=E("../internals/array-slice"),ee=E("../internals/document-create-element"),a=E("../internals/validate-arguments-length"),y=E("../internals/engine-is-ios"),x=E("../internals/engine-is-node"),b=se.setImmediate,z=se.clearImmediate,te=se.process,le=se.Dispatch,fe=se.Function,ge=se.MessageChannel,me=se.String,he=0,Se={},ye="onreadystatechange",Pe,we,De,Ee;try{Pe=se.location}catch(Ge){}var Ae=function(Ge){if(ue(Se,Ge)){var Fe=Se[Ge];delete Se[Ge],Fe()}},Ce=function(Ge){return function(){Ae(Ge)}},je=function(Ge){Ae(Ge.data)},Me=function(Ge){se.postMessage(me(Ge),Pe.protocol+"//"+Pe.host)};(!b||!z)&&(b=function(Fe){a(arguments.length,1);var Je=ce(Fe)?Fe:fe(Fe),qe=re(arguments,1);return Se[++he]=function(){ne(Je,void 0,qe)},we(he),he},z=function(Fe){delete Se[Fe]},x?we=function(Ge){te.nextTick(Ce(Ge))}:le&&le.now?we=function(Ge){le.now(Ce(Ge))}:ge&&!y?(De=new ge,Ee=De.port2,De.port1.onmessage=je,we=ie(Ee.postMessage,Ee)):se.addEventListener&&ce(se.postMessage)&&!se.importScripts&&Pe&&Pe.protocol!=="file:"&&!ae(Me)?(we=Me,se.addEventListener("message",je,!1)):ye in ee("script")?we=function(Ge){oe.appendChild(ee("script"))[ye]=function(){oe.removeChild(this),Ae(Ge)}}:we=function(Ge){setTimeout(Ce(Ge),0)}),pe.exports={set:b,clear:z}},{"../internals/array-slice":117,"../internals/document-create-element":135,"../internals/engine-is-ios":142,"../internals/engine-is-node":143,"../internals/fails":150,"../internals/function-apply":152,"../internals/function-bind-context":153,"../internals/global":163,"../internals/has-own-property":164,"../internals/html":167,"../internals/is-callable":176,"../internals/validate-arguments-length":266}],244:[function(E,pe,de){var se=E("../internals/function-uncurry-this");pe.exports=se(1 .valueOf)},{"../internals/function-uncurry-this":157}],245:[function(E,pe,de){var se=E("../internals/to-integer-or-infinity"),ne=Math.max,ie=Math.min;pe.exports=function(ce,ue){var ae=se(ce);return ae<0?ne(ae+ue,0):ie(ae,ue)}},{"../internals/to-integer-or-infinity":248}],246:[function(E,pe,de){var se=E("../internals/global"),ne=E("../internals/to-integer-or-infinity"),ie=E("../internals/to-length"),ce=se.RangeError;pe.exports=function(ue){if(ue===void 0)return 0;var ae=ne(ue),oe=ie(ae);if(ae!==oe)throw ce("Wrong length or index");return oe}},{"../internals/global":163,"../internals/to-integer-or-infinity":248,"../internals/to-length":249}],247:[function(E,pe,de){var se=E("../internals/indexed-object"),ne=E("../internals/require-object-coercible");pe.exports=function(ie){return se(ne(ie))}},{"../internals/indexed-object":170,"../internals/require-object-coercible":230}],248:[function(E,pe,de){var se=Math.ceil,ne=Math.floor;pe.exports=function(ie){var ce=+ie;return ce!==ce||ce===0?0:(ce>0?ne:se)(ce)}},{}],249:[function(E,pe,de){var se=E("../internals/to-integer-or-infinity"),ne=Math.min;pe.exports=function(ie){return ie>0?ne(se(ie),9007199254740991):0}},{"../internals/to-integer-or-infinity":248}],250:[function(E,pe,de){var se=E("../internals/global"),ne=E("../internals/require-object-coercible"),ie=se.Object;pe.exports=function(ce){return ie(ne(ce))}},{"../internals/global":163,"../internals/require-object-coercible":230}],251:[function(E,pe,de){var se=E("../internals/global"),ne=E("../internals/to-positive-integer"),ie=se.RangeError;pe.exports=function(ce,ue){var ae=ne(ce);if(ae%ue)throw ie("Wrong offset");return ae}},{"../internals/global":163,"../internals/to-positive-integer":252}],252:[function(E,pe,de){var se=E("../internals/global"),ne=E("../internals/to-integer-or-infinity"),ie=se.RangeError;pe.exports=function(ce){var ue=ne(ce);if(ue<0)throw ie("The argument can't be less than 0");return ue}},{"../internals/global":163,"../internals/to-integer-or-infinity":248}],253:[function(E,pe,de){var se=E("../internals/global"),ne=E("../internals/function-call"),ie=E("../internals/is-object"),ce=E("../internals/is-symbol"),ue=E("../internals/get-method"),ae=E("../internals/ordinary-to-primitive"),oe=E("../internals/well-known-symbol"),re=se.TypeError,ee=oe("toPrimitive");pe.exports=function(a,y){if(!ie(a)||ce(a))return a;var x=ue(a,ee),b;if(x){if(y===void 0&&(y="default"),b=ne(x,a,y),!ie(b)||ce(b))return b;throw re("Can't convert object to primitive value")}return y===void 0&&(y="number"),ae(a,y)}},{"../internals/function-call":155,"../internals/get-method":161,"../internals/global":163,"../internals/is-object":180,"../internals/is-symbol":183,"../internals/ordinary-to-primitive":211,"../internals/well-known-symbol":268}],254:[function(E,pe,de){var se=E("../internals/to-primitive"),ne=E("../internals/is-symbol");pe.exports=function(ie){var ce=se(ie,"string");return ne(ce)?ce:ce+""}},{"../internals/is-symbol":183,"../internals/to-primitive":253}],255:[function(E,pe,de){var se=E("../internals/well-known-symbol"),ne=se("toStringTag"),ie={};ie[ne]="z",pe.exports=String(ie)==="[object z]"},{"../internals/well-known-symbol":268}],256:[function(E,pe,de){var se=E("../internals/global"),ne=E("../internals/classof"),ie=se.String;pe.exports=function(ce){if(ne(ce)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return ie(ce)}},{"../internals/classof":124,"../internals/global":163}],257:[function(E,pe,de){var se=E("../internals/global"),ne=se.String;pe.exports=function(ie){try{return ne(ie)}catch(ce){return"Object"}}},{"../internals/global":163}],258:[function(E,pe,de){"use strict";var se=E("../internals/export"),ne=E("../internals/global"),ie=E("../internals/function-call"),ce=E("../internals/descriptors"),ue=E("../internals/typed-array-constructors-require-wrappers"),ae=E("../internals/array-buffer-view-core"),oe=E("../internals/array-buffer"),re=E("../internals/an-instance"),ee=E("../internals/create-property-descriptor"),a=E("../internals/create-non-enumerable-property"),y=E("../internals/is-integral-number"),x=E("../internals/to-length"),b=E("../internals/to-index"),z=E("../internals/to-offset"),te=E("../internals/to-property-key"),le=E("../internals/has-own-property"),fe=E("../internals/classof"),ge=E("../internals/is-object"),me=E("../internals/is-symbol"),he=E("../internals/object-create"),Se=E("../internals/object-is-prototype-of"),ye=E("../internals/object-set-prototype-of"),Pe=E("../internals/object-get-own-property-names").f,we=E("../internals/typed-array-from"),De=E("../internals/array-iteration").forEach,Ee=E("../internals/set-species"),Ae=E("../internals/object-define-property"),Ce=E("../internals/object-get-own-property-descriptor"),je=E("../internals/internal-state"),Me=E("../internals/inherit-if-required"),Ge=je.get,Fe=je.set,Je=Ae.f,qe=Ce.f,Xe=Math.round,Ve=ne.RangeError,We=oe.ArrayBuffer,ze=We.prototype,Ue=oe.DataView,ot=ae.NATIVE_ARRAY_BUFFER_VIEWS,Qe=ae.TYPED_ARRAY_CONSTRUCTOR,ut=ae.TYPED_ARRAY_TAG,Ye=ae.TypedArray,He=ae.TypedArrayPrototype,Re=ae.aTypedArrayConstructor,$e=ae.isTypedArray,Le="BYTES_PER_ELEMENT",Ne="Wrong length",et=function(Ie,Ke){Re(Ie);for(var rt=0,ke=Ke.length,tt=new Ie(ke);ke>rt;)tt[rt]=Ke[rt++];return tt},Ze=function(Ie,Ke){Je(Ie,Ke,{get:function(){return Ge(this)[Ke]}})},Be=function(Ie){var Ke;return Se(ze,Ie)||(Ke=fe(Ie))=="ArrayBuffer"||Ke=="SharedArrayBuffer"},Oe=function(Ie,Ke){return $e(Ie)&&!me(Ke)&&Ke in Ie&&y(+Ke)&&Ke>=0},Te=function(Ke,rt){return rt=te(rt),Oe(Ke,rt)?ee(2,Ke[rt]):qe(Ke,rt)},xe=function(Ke,rt,ke){return rt=te(rt),Oe(Ke,rt)&&ge(ke)&&le(ke,"value")&&!le(ke,"get")&&!le(ke,"set")&&!ke.configurable&&(!le(ke,"writable")||ke.writable)&&(!le(ke,"enumerable")||ke.enumerable)?(Ke[rt]=ke.value,Ke):Je(Ke,rt,ke)};ce?(ot||(Ce.f=Te,Ae.f=xe,Ze(He,"buffer"),Ze(He,"byteOffset"),Ze(He,"byteLength"),Ze(He,"length")),se({target:"Object",stat:!0,forced:!ot},{getOwnPropertyDescriptor:Te,defineProperty:xe}),pe.exports=function(Ie,Ke,rt){var ke=Ie.match(/\d+$/)[0]/8,tt=Ie+(rt?"Clamped":"")+"Array",mt="get"+Ie,ct="set"+Ie,ht=ne[tt],lt=ht,pt=lt&<.prototype,at={},st=function(St,xt){var Ft=Ge(St);return Ft.view[mt](xt*ke+Ft.byteOffset,!0)},ft=function(St,xt,Ft){var Nt=Ge(St);rt&&(Ft=(Ft=Xe(Ft))<0?0:Ft>255?255:Ft&255),Nt.view[ct](xt*ke+Nt.byteOffset,Ft,!0)},vt=function(St,xt){Je(St,xt,{get:function(){return st(this,xt)},set:function(Ft){return ft(this,xt,Ft)},enumerable:!0})};ot?ue&&(lt=Ke(function(St,xt,Ft,Nt){return re(St,pt),Me(function(){return ge(xt)?Be(xt)?Nt!==void 0?new ht(xt,z(Ft,ke),Nt):Ft!==void 0?new ht(xt,z(Ft,ke)):new ht(xt):$e(xt)?et(lt,xt):ie(we,lt,xt):new ht(b(xt))}(),St,lt)}),ye&&ye(lt,Ye),De(Pe(ht),function(St){St in lt||a(lt,St,ht[St])}),lt.prototype=pt):(lt=Ke(function(St,xt,Ft,Nt){re(St,pt);var Xt=0,dn=0,en,Jt,wn;if(!ge(xt))wn=b(xt),Jt=wn*ke,en=new We(Jt);else if(Be(xt)){en=xt,dn=z(Ft,ke);var Ln=xt.byteLength;if(Nt===void 0){if(Ln%ke||(Jt=Ln-dn,Jt<0))throw Ve(Ne)}else if(Jt=x(Nt)*ke,Jt+dn>Ln)throw Ve(Ne);wn=Jt/ke}else return $e(xt)?et(lt,xt):ie(we,lt,xt);for(Fe(St,{buffer:en,byteOffset:dn,byteLength:Jt,length:wn,view:new Ue(en)});Xt1?arguments[1]:void 0,le=te!==void 0,fe=oe(b),ge,me,he,Se,ye,Pe;if(fe&&!re(fe))for(ye=ae(b,fe),Pe=ye.next,b=[];!(Se=ne(Pe,ye)).done;)b.push(Se.value);for(le&&z>2&&(te=se(te,arguments[2])),me=ue(b),he=new(ee(x))(me),ge=0;me>ge;ge++)he[ge]=le?te(b[ge],ge):b[ge];return he}},{"../internals/a-constructor":96,"../internals/array-buffer-view-core":103,"../internals/function-bind-context":153,"../internals/function-call":155,"../internals/get-iterator":160,"../internals/get-iterator-method":159,"../internals/is-array-iterator-method":174,"../internals/length-of-array-like":188,"../internals/to-object":250}],262:[function(E,pe,de){var se=E("../internals/array-buffer-view-core"),ne=E("../internals/species-constructor"),ie=se.TYPED_ARRAY_CONSTRUCTOR,ce=se.aTypedArrayConstructor;pe.exports=function(ue){return ce(ne(ue,ue[ie]))}},{"../internals/array-buffer-view-core":103,"../internals/species-constructor":238}],263:[function(E,pe,de){var se=E("../internals/function-uncurry-this"),ne=0,ie=Math.random(),ce=se(1 .toString);pe.exports=function(ue){return"Symbol("+(ue===void 0?"":ue)+")_"+ce(++ne+ie,36)}},{"../internals/function-uncurry-this":157}],264:[function(E,pe,de){var se=E("../internals/native-symbol");pe.exports=se&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},{"../internals/native-symbol":191}],265:[function(E,pe,de){var se=E("../internals/descriptors"),ne=E("../internals/fails");pe.exports=se&&ne(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})},{"../internals/descriptors":134,"../internals/fails":150}],266:[function(E,pe,de){var se=E("../internals/global"),ne=se.TypeError;pe.exports=function(ie,ce){if(ie=51||!ie(function(){var Se=[];return Se[b]=!1,Se.concat()[0]!==Se}),ge=a("concat"),me=function(Se){if(!ue(Se))return!1;var ye=Se[b];return ye!==void 0?!!ye:ce(Se)},he=!fe||!ge;se({target:"Array",proto:!0,forced:he},{concat:function(ye){var Pe=ae(this),we=ee(Pe,0),De=0,Ee,Ae,Ce,je,Me;for(Ee=-1,Ce=arguments.length;Eez)throw le(te);for(Ae=0;Ae=z)throw le(te);re(we,De++,Me)}return we.length=De,we}})},{"../internals/array-method-has-species-support":113,"../internals/array-species-create":120,"../internals/create-property":131,"../internals/engine-v8-version":146,"../internals/export":149,"../internals/fails":150,"../internals/global":163,"../internals/is-array":175,"../internals/is-object":180,"../internals/length-of-array-like":188,"../internals/to-object":250,"../internals/well-known-symbol":268}],273:[function(E,pe,de){var se=E("../internals/export"),ne=E("../internals/array-fill"),ie=E("../internals/add-to-unscopables");se({target:"Array",proto:!0},{fill:ne}),ie("fill")},{"../internals/add-to-unscopables":98,"../internals/array-fill":106,"../internals/export":149}],274:[function(E,pe,de){"use strict";var se=E("../internals/export"),ne=E("../internals/array-iteration").filter,ie=E("../internals/array-method-has-species-support"),ce=ie("filter");se({target:"Array",proto:!0,forced:!ce},{filter:function(ae){return ne(this,ae,arguments.length>1?arguments[1]:void 0)}})},{"../internals/array-iteration":111,"../internals/array-method-has-species-support":113,"../internals/export":149}],275:[function(E,pe,de){"use strict";var se=E("../internals/export"),ne=E("../internals/array-iteration").find,ie=E("../internals/add-to-unscopables"),ce="find",ue=!0;ce in[]&&Array(1)[ce](function(){ue=!1}),se({target:"Array",proto:!0,forced:ue},{find:function(oe){return ne(this,oe,arguments.length>1?arguments[1]:void 0)}}),ie(ce)},{"../internals/add-to-unscopables":98,"../internals/array-iteration":111,"../internals/export":149}],276:[function(E,pe,de){var se=E("../internals/export"),ne=E("../internals/array-from"),ie=E("../internals/check-correctness-of-iteration"),ce=!ie(function(ue){Array.from(ue)});se({target:"Array",stat:!0,forced:ce},{from:ne})},{"../internals/array-from":109,"../internals/check-correctness-of-iteration":122,"../internals/export":149}],277:[function(E,pe,de){"use strict";var se=E("../internals/export"),ne=E("../internals/array-includes").includes,ie=E("../internals/add-to-unscopables");se({target:"Array",proto:!0},{includes:function(ue){return ne(this,ue,arguments.length>1?arguments[1]:void 0)}}),ie("includes")},{"../internals/add-to-unscopables":98,"../internals/array-includes":110,"../internals/export":149}],278:[function(E,pe,de){"use strict";var se=E("../internals/to-indexed-object"),ne=E("../internals/add-to-unscopables"),ie=E("../internals/iterators"),ce=E("../internals/internal-state"),ue=E("../internals/object-define-property").f,ae=E("../internals/define-iterator"),oe=E("../internals/is-pure"),re=E("../internals/descriptors"),ee="Array Iterator",a=ce.set,y=ce.getterFor(ee);pe.exports=ae(Array,"Array",function(b,z){a(this,{type:ee,target:se(b),index:0,kind:z})},function(){var b=y(this),z=b.target,te=b.kind,le=b.index++;return!z||le>=z.length?(b.target=void 0,{value:void 0,done:!0}):te=="keys"?{value:le,done:!1}:te=="values"?{value:z[le],done:!1}:{value:[le,z[le]],done:!1}},"values");var x=ie.Arguments=ie.Array;if(ne("keys"),ne("values"),ne("entries"),!oe&&re&&x.name!=="values")try{ue(x,"name",{value:"values"})}catch(b){}},{"../internals/add-to-unscopables":98,"../internals/define-iterator":132,"../internals/descriptors":134,"../internals/internal-state":173,"../internals/is-pure":181,"../internals/iterators":187,"../internals/object-define-property":198,"../internals/to-indexed-object":247}],279:[function(E,pe,de){"use strict";var se=E("../internals/export"),ne=E("../internals/function-uncurry-this"),ie=E("../internals/indexed-object"),ce=E("../internals/to-indexed-object"),ue=E("../internals/array-method-is-strict"),ae=ne([].join),oe=ie!=Object,re=ue("join",",");se({target:"Array",proto:!0,forced:oe||!re},{join:function(a){return ae(ce(this),a===void 0?",":a)}})},{"../internals/array-method-is-strict":114,"../internals/export":149,"../internals/function-uncurry-this":157,"../internals/indexed-object":170,"../internals/to-indexed-object":247}],280:[function(E,pe,de){"use strict";var se=E("../internals/export"),ne=E("../internals/array-iteration").map,ie=E("../internals/array-method-has-species-support"),ce=ie("map");se({target:"Array",proto:!0,forced:!ce},{map:function(ae){return ne(this,ae,arguments.length>1?arguments[1]:void 0)}})},{"../internals/array-iteration":111,"../internals/array-method-has-species-support":113,"../internals/export":149}],281:[function(E,pe,de){"use strict";var se=E("../internals/export"),ne=E("../internals/global"),ie=E("../internals/is-array"),ce=E("../internals/is-constructor"),ue=E("../internals/is-object"),ae=E("../internals/to-absolute-index"),oe=E("../internals/length-of-array-like"),re=E("../internals/to-indexed-object"),ee=E("../internals/create-property"),a=E("../internals/well-known-symbol"),y=E("../internals/array-method-has-species-support"),x=E("../internals/array-slice"),b=y("slice"),z=a("species"),te=ne.Array,le=Math.max;se({target:"Array",proto:!0,forced:!b},{slice:function(ge,me){var he=re(this),Se=oe(he),ye=ae(ge,Se),Pe=ae(me===void 0?Se:me,Se),we,De,Ee;if(ie(he)&&(we=he.constructor,ce(we)&&(we===te||ie(we.prototype))?we=void 0:ue(we)&&(we=we[z],we===null&&(we=void 0)),we===te||we===void 0))return x(he,ye,Pe);for(De=new(we===void 0?te:we)(le(Pe-ye,0)),Ee=0;ye3)){if(y)return!0;if(b)return b<603;var Pe="",we,De,Ee,Ae;for(we=65;we<76;we++){switch(De=String.fromCharCode(we),we){case 66:case 69:case 70:case 72:Ee=3;break;case 68:case 71:Ee=4;break;default:Ee=2}for(Ae=0;Ae<47;Ae++)z.push({k:De+Ae,v:Ee})}for(z.sort(function(Ce,je){return je.v-Ce.v}),Ae=0;Aeae(De)?1:-1}};se({target:"Array",proto:!0,forced:Se},{sort:function(we){we!==void 0&&ie(we);var De=ce(this);if(he)return we===void 0?te(De):te(De,we);var Ee=[],Ae=ue(De),Ce,je;for(je=0;jez)throw y(te);for(De=oe(me,we),Ee=0;Eehe-we+Pe;Ee--)delete me[Ee-1]}else if(Pe>we)for(Ee=he-we;Ee>Se;Ee--)Ae=Ee+we-1,Ce=Ee+Pe-1,Ae in me?me[Ce]=me[Ae]:delete me[Ce];for(Ee=0;Ee2){if(Me=le(Me),Ge=ye(Me,0),Ge===43||Ge===45){if(Fe=ye(Me,2),Fe===88||Fe===120)return NaN}else if(Ge===48){switch(ye(Me,1)){case 66:case 98:Je=2,qe=49;break;case 79:case 111:Je=8,qe=55;break;default:return+Me}for(Xe=Se(Me,2),Ve=Xe.length,We=0;Weqe)return NaN;return parseInt(Xe,Je)}}return+Me};if(ce(fe,!ge(" 0o1")||!ge("0b1")||ge("+0x1"))){for(var De=function(Me){var Ge=arguments.length<1?0:ge(Pe(Me)),Fe=this;return re(me,Fe)&&y(function(){te(Fe)})?oe(Object(Ge),Fe,De):Ge},Ee=se?x(ge):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),Ae=0,Ce;Ee.length>Ae;Ae++)ae(ge,Ce=Ee[Ae])&&!ae(De,Ce)&&z(De,Ce,b(ge,Ce));De.prototype=me,me.constructor=De,ue(ne,fe,De)}},{"../internals/descriptors":134,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/inherit-if-required":171,"../internals/is-forced":178,"../internals/is-symbol":183,"../internals/object-define-property":198,"../internals/object-get-own-property-descriptor":199,"../internals/object-get-own-property-names":201,"../internals/object-is-prototype-of":204,"../internals/redefine":222,"../internals/string-trim":241,"../internals/this-number-value":244,"../internals/to-primitive":253}],287:[function(E,pe,de){var se=E("../internals/export"),ne=E("../internals/object-assign");se({target:"Object",stat:!0,forced:Object.assign!==ne},{assign:ne})},{"../internals/export":149,"../internals/object-assign":195}],288:[function(E,pe,de){var se=E("../internals/export"),ne=E("../internals/object-to-array").entries;se({target:"Object",stat:!0},{entries:function(ce){return ne(ce)}})},{"../internals/export":149,"../internals/object-to-array":209}],289:[function(E,pe,de){var se=E("../internals/export"),ne=E("../internals/native-symbol"),ie=E("../internals/fails"),ce=E("../internals/object-get-own-property-symbols"),ue=E("../internals/to-object"),ae=!ne||ie(function(){ce.f(1)});se({target:"Object",stat:!0,forced:ae},{getOwnPropertySymbols:function(re){var ee=ce.f;return ee?ee(ue(re)):[]}})},{"../internals/export":149,"../internals/fails":150,"../internals/native-symbol":191,"../internals/object-get-own-property-symbols":202,"../internals/to-object":250}],290:[function(E,pe,de){var se=E("../internals/export"),ne=E("../internals/to-object"),ie=E("../internals/object-keys"),ce=E("../internals/fails"),ue=ce(function(){ie(1)});se({target:"Object",stat:!0,forced:ue},{keys:function(oe){return ie(ne(oe))}})},{"../internals/export":149,"../internals/fails":150,"../internals/object-keys":206,"../internals/to-object":250}],291:[function(E,pe,de){var se=E("../internals/to-string-tag-support"),ne=E("../internals/redefine"),ie=E("../internals/object-to-string");se||ne(Object.prototype,"toString",ie,{unsafe:!0})},{"../internals/object-to-string":210,"../internals/redefine":222,"../internals/to-string-tag-support":255}],292:[function(E,pe,de){"use strict";var se=E("../internals/export"),ne=E("../internals/function-call"),ie=E("../internals/a-callable"),ce=E("../internals/new-promise-capability"),ue=E("../internals/perform"),ae=E("../internals/iterate"),oe=E("../internals/promise-statics-incorrect-iteration");se({target:"Promise",stat:!0,forced:oe},{all:function(ee){var a=this,y=ce.f(a),x=y.resolve,b=y.reject,z=ue(function(){var te=ie(a.resolve),le=[],fe=0,ge=1;ae(ee,function(me){var he=fe++,Se=!1;ge++,ne(te,a,me).then(function(ye){Se||(Se=!0,le[he]=ye,--ge||x(le))},b)}),--ge||x(le)});return z.error&&b(z.value),y.promise}})},{"../internals/a-callable":95,"../internals/export":149,"../internals/function-call":155,"../internals/iterate":184,"../internals/new-promise-capability":193,"../internals/perform":214,"../internals/promise-statics-incorrect-iteration":218}],293:[function(E,pe,de){"use strict";var se=E("../internals/export"),ne=E("../internals/is-pure"),ie=E("../internals/promise-constructor-detection").CONSTRUCTOR,ce=E("../internals/promise-native-constructor"),ue=E("../internals/get-built-in"),ae=E("../internals/is-callable"),oe=E("../internals/redefine"),re=ce&&ce.prototype;if(se({target:"Promise",proto:!0,forced:ie,real:!0},{catch:function(a){return this.then(void 0,a)}}),!ne&&ae(ce)){var ee=ue("Promise").prototype.catch;re.catch!==ee&&oe(re,"catch",ee,{unsafe:!0})}},{"../internals/export":149,"../internals/get-built-in":158,"../internals/is-callable":176,"../internals/is-pure":181,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216,"../internals/redefine":222}],294:[function(E,pe,de){"use strict";var se=E("../internals/export"),ne=E("../internals/is-pure"),ie=E("../internals/engine-is-node"),ce=E("../internals/global"),ue=E("../internals/function-call"),ae=E("../internals/redefine"),oe=E("../internals/redefine-all"),re=E("../internals/object-set-prototype-of"),ee=E("../internals/set-to-string-tag"),a=E("../internals/set-species"),y=E("../internals/a-callable"),x=E("../internals/is-callable"),b=E("../internals/is-object"),z=E("../internals/an-instance"),te=E("../internals/species-constructor"),le=E("../internals/task").set,fe=E("../internals/microtask"),ge=E("../internals/host-report-errors"),me=E("../internals/perform"),he=E("../internals/queue"),Se=E("../internals/internal-state"),ye=E("../internals/promise-native-constructor"),Pe=E("../internals/promise-constructor-detection"),we=E("../internals/new-promise-capability"),De="Promise",Ee=Pe.CONSTRUCTOR,Ae=Pe.REJECTION_EVENT,Ce=Pe.SUBCLASSING,je=Se.getterFor(De),Me=Se.set,Ge=ye&&ye.prototype,Fe=ye,Je=Ge,qe=ce.TypeError,Xe=ce.document,Ve=ce.process,We=we.f,ze=We,Ue=!!(Xe&&Xe.createEvent&&ce.dispatchEvent),ot="unhandledrejection",Qe="rejectionhandled",ut=0,Ye=1,He=2,Re=1,$e=2,Le,Ne,et,Ze,Be=function(ct){var ht;return b(ct)&&x(ht=ct.then)?ht:!1},Oe=function(ct,ht){var lt=ht.value,pt=ht.state==Ye,at=pt?ct.ok:ct.fail,st=ct.resolve,ft=ct.reject,vt=ct.domain,St,xt,Ft;try{at?(pt||(ht.rejection===$e&&rt(ht),ht.rejection=Re),at===!0?St=lt:(vt&&vt.enter(),St=at(lt),vt&&(vt.exit(),Ft=!0)),St===ct.promise?ft(qe("Promise-chain cycle")):(xt=Be(St))?ue(xt,St,st,ft):st(St)):ft(lt)}catch(Nt){vt&&!Ft&&vt.exit(),ft(Nt)}},Te=function(ct,ht){ct.notified||(ct.notified=!0,fe(function(){for(var lt=ct.reactions,pt;pt=lt.get();)Oe(pt,ct);ct.notified=!1,ht&&!ct.rejection&&Ie(ct)}))},xe=function(ct,ht,lt){var pt,at;Ue?(pt=Xe.createEvent("Event"),pt.promise=ht,pt.reason=lt,pt.initEvent(ct,!1,!0),ce.dispatchEvent(pt)):pt={promise:ht,reason:lt},!Ae&&(at=ce["on"+ct])?at(pt):ct===ot&&ge("Unhandled promise rejection",lt)},Ie=function(ct){ue(le,ce,function(){var ht=ct.facade,lt=ct.value,pt=Ke(ct),at;if(pt&&(at=me(function(){ie?Ve.emit("unhandledRejection",lt,ht):xe(ot,ht,lt)}),ct.rejection=ie||Ke(ct)?$e:Re,at.error))throw at.value})},Ke=function(ct){return ct.rejection!==Re&&!ct.parent},rt=function(ct){ue(le,ce,function(){var ht=ct.facade;ie?Ve.emit("rejectionHandled",ht):xe(Qe,ht,ct.value)})},ke=function(ct,ht,lt){return function(pt){ct(ht,pt,lt)}},tt=function(ct,ht,lt){ct.done||(ct.done=!0,lt&&(ct=lt),ct.value=ht,ct.state=He,Te(ct,!0))},mt=function(ct,ht,lt){if(!ct.done){ct.done=!0,lt&&(ct=lt);try{if(ct.facade===ht)throw qe("Promise can't be resolved itself");var pt=Be(ht);pt?fe(function(){var at={done:!1};try{ue(pt,ht,ke(mt,at,ct),ke(tt,at,ct))}catch(st){tt(at,st,ct)}}):(ct.value=ht,ct.state=Ye,Te(ct,!1))}catch(at){tt({done:!1},at,ct)}}};if(Ee&&(Fe=function(ht){z(this,Je),y(ht),ue(Le,this);var lt=je(this);try{ht(ke(mt,lt),ke(tt,lt))}catch(pt){tt(lt,pt)}},Je=Fe.prototype,Le=function(ht){Me(this,{type:De,done:!1,notified:!1,parent:!1,reactions:new he,rejection:!1,state:ut,value:void 0})},Le.prototype=oe(Je,{then:function(ht,lt){var pt=je(this),at=We(te(this,Fe));return pt.parent=!0,at.ok=x(ht)?ht:!0,at.fail=x(lt)&<,at.domain=ie?Ve.domain:void 0,pt.state==ut?pt.reactions.add(at):fe(function(){Oe(at,pt)}),at.promise}}),Ne=function(){var ct=new Le,ht=je(ct);this.promise=ct,this.resolve=ke(mt,ht),this.reject=ke(tt,ht)},we.f=We=function(ct){return ct===Fe||ct===et?new Ne(ct):ze(ct)},!ne&&x(ye)&&Ge!==Object.prototype)){Ze=Ge.then,Ce||ae(Ge,"then",function(ht,lt){var pt=this;return new Fe(function(at,st){ue(Ze,pt,at,st)}).then(ht,lt)},{unsafe:!0});try{delete Ge.constructor}catch(ct){}re&&re(Ge,Je)}se({global:!0,wrap:!0,forced:Ee},{Promise:Fe}),ee(Fe,De,!1,!0),a(De)},{"../internals/a-callable":95,"../internals/an-instance":100,"../internals/engine-is-node":143,"../internals/export":149,"../internals/function-call":155,"../internals/global":163,"../internals/host-report-errors":166,"../internals/internal-state":173,"../internals/is-callable":176,"../internals/is-object":180,"../internals/is-pure":181,"../internals/microtask":189,"../internals/new-promise-capability":193,"../internals/object-set-prototype-of":208,"../internals/perform":214,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216,"../internals/queue":220,"../internals/redefine":222,"../internals/redefine-all":221,"../internals/set-species":233,"../internals/set-to-string-tag":234,"../internals/species-constructor":238,"../internals/task":243}],295:[function(E,pe,de){E("../modules/es.promise.constructor"),E("../modules/es.promise.all"),E("../modules/es.promise.catch"),E("../modules/es.promise.race"),E("../modules/es.promise.reject"),E("../modules/es.promise.resolve")},{"../modules/es.promise.all":292,"../modules/es.promise.catch":293,"../modules/es.promise.constructor":294,"../modules/es.promise.race":296,"../modules/es.promise.reject":297,"../modules/es.promise.resolve":298}],296:[function(E,pe,de){"use strict";var se=E("../internals/export"),ne=E("../internals/function-call"),ie=E("../internals/a-callable"),ce=E("../internals/new-promise-capability"),ue=E("../internals/perform"),ae=E("../internals/iterate"),oe=E("../internals/promise-statics-incorrect-iteration");se({target:"Promise",stat:!0,forced:oe},{race:function(ee){var a=this,y=ce.f(a),x=y.reject,b=ue(function(){var z=ie(a.resolve);ae(ee,function(te){ne(z,a,te).then(y.resolve,x)})});return b.error&&x(b.value),y.promise}})},{"../internals/a-callable":95,"../internals/export":149,"../internals/function-call":155,"../internals/iterate":184,"../internals/new-promise-capability":193,"../internals/perform":214,"../internals/promise-statics-incorrect-iteration":218}],297:[function(E,pe,de){"use strict";var se=E("../internals/export"),ne=E("../internals/function-call"),ie=E("../internals/new-promise-capability"),ce=E("../internals/promise-constructor-detection").CONSTRUCTOR;se({target:"Promise",stat:!0,forced:ce},{reject:function(ae){var oe=ie.f(this);return ne(oe.reject,void 0,ae),oe.promise}})},{"../internals/export":149,"../internals/function-call":155,"../internals/new-promise-capability":193,"../internals/promise-constructor-detection":215}],298:[function(E,pe,de){"use strict";var se=E("../internals/export"),ne=E("../internals/get-built-in"),ie=E("../internals/is-pure"),ce=E("../internals/promise-native-constructor"),ue=E("../internals/promise-constructor-detection").CONSTRUCTOR,ae=E("../internals/promise-resolve"),oe=ne("Promise"),re=ie&&!ue;se({target:"Promise",stat:!0,forced:ie||ue},{resolve:function(a){return ae(re&&this===oe?ce:this,a)}})},{"../internals/export":149,"../internals/get-built-in":158,"../internals/is-pure":181,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216,"../internals/promise-resolve":217}],299:[function(E,pe,de){var se=E("../internals/descriptors"),ne=E("../internals/global"),ie=E("../internals/function-uncurry-this"),ce=E("../internals/is-forced"),ue=E("../internals/inherit-if-required"),ae=E("../internals/create-non-enumerable-property"),oe=E("../internals/object-get-own-property-names").f,re=E("../internals/object-is-prototype-of"),ee=E("../internals/is-regexp"),a=E("../internals/to-string"),y=E("../internals/regexp-get-flags"),x=E("../internals/regexp-sticky-helpers"),b=E("../internals/proxy-accessor"),z=E("../internals/redefine"),te=E("../internals/fails"),le=E("../internals/has-own-property"),fe=E("../internals/internal-state").enforce,ge=E("../internals/set-species"),me=E("../internals/well-known-symbol"),he=E("../internals/regexp-unsupported-dot-all"),Se=E("../internals/regexp-unsupported-ncg"),ye=me("match"),Pe=ne.RegExp,we=Pe.prototype,De=ne.SyntaxError,Ee=ie(we.exec),Ae=ie("".charAt),Ce=ie("".replace),je=ie("".indexOf),Me=ie("".slice),Ge=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Fe=/a/g,Je=/a/g,qe=new Pe(Fe)!==Fe,Xe=x.MISSED_STICKY,Ve=x.UNSUPPORTED_Y,We=se&&(!qe||Xe||he||Se||te(function(){return Je[ye]=!1,Pe(Fe)!=Fe||Pe(Je)==Je||Pe(Fe,"i")!="/a/i"})),ze=function(Ye){for(var He=Ye.length,Re=0,$e="",Le=!1,Ne;Re<=He;Re++){if(Ne=Ae(Ye,Re),Ne==="\\"){$e+=Ne+Ae(Ye,++Re);continue}!Le&&Ne==="."?$e+="[\\s\\S]":(Ne==="["?Le=!0:Ne==="]"&&(Le=!1),$e+=Ne)}return $e},Ue=function(Ye){for(var He=Ye.length,Re=0,$e="",Le=[],Ne={},et=!1,Ze=!1,Be=0,Oe="",Te;Re<=He;Re++){if(Te=Ae(Ye,Re),Te==="\\")Te=Te+Ae(Ye,++Re);else if(Te==="]")et=!1;else if(!et)switch(!0){case Te==="[":et=!0;break;case Te==="(":Ee(Ge,Me(Ye,Re+1))&&(Re+=2,Ze=!0),$e+=Te,Be++;continue;case(Te===">"&&Ze):if(Oe===""||le(Ne,Oe))throw new De("Invalid capture group name");Ne[Oe]=!0,Le[Le.length]=[Oe,Be],Ze=!1,Oe="";continue}Ze?Oe+=Te:$e+=Te}return[$e,Le]};if(ce("RegExp",We)){for(var ot=function(He,Re){var $e=re(we,this),Le=ee(He),Ne=Re===void 0,et=[],Ze=He,Be,Oe,Te,xe,Ie,Ke;if(!$e&&Le&&Ne&&He.constructor===ot)return He;if((Le||re(we,He))&&(He=He.source,Ne&&(Re=y(Ze))),He=He===void 0?"":a(He),Re=Re===void 0?"":a(Re),Ze=He,he&&"dotAll"in Fe&&(Oe=!!Re&&je(Re,"s")>-1,Oe&&(Re=Ce(Re,/s/g,""))),Be=Re,Xe&&"sticky"in Fe&&(Te=!!Re&&je(Re,"y")>-1,Te&&Ve&&(Re=Ce(Re,/y/g,""))),Se&&(xe=Ue(He),He=xe[0],et=xe[1]),Ie=ue(Pe(He,Re),$e?this:we,ot),(Oe||Te||et.length)&&(Ke=fe(Ie),Oe&&(Ke.dotAll=!0,Ke.raw=ot(ze(He),Be)),Te&&(Ke.sticky=!0),et.length&&(Ke.groups=et)),He!==Ze)try{ae(Ie,"source",Ze===""?"(?:)":Ze)}catch(rt){}return Ie},Qe=oe(Pe),ut=0;Qe.length>ut;)b(ot,Pe,Qe[ut++]);we.constructor=ot,ot.prototype=we,z(ne,"RegExp",ot)}ge("RegExp")},{"../internals/create-non-enumerable-property":129,"../internals/descriptors":134,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/inherit-if-required":171,"../internals/internal-state":173,"../internals/is-forced":178,"../internals/is-regexp":182,"../internals/object-get-own-property-names":201,"../internals/object-is-prototype-of":204,"../internals/proxy-accessor":219,"../internals/redefine":222,"../internals/regexp-get-flags":226,"../internals/regexp-sticky-helpers":227,"../internals/regexp-unsupported-dot-all":228,"../internals/regexp-unsupported-ncg":229,"../internals/set-species":233,"../internals/to-string":256,"../internals/well-known-symbol":268}],300:[function(E,pe,de){"use strict";var se=E("../internals/export"),ne=E("../internals/regexp-exec");se({target:"RegExp",proto:!0,forced:/./.exec!==ne},{exec:ne})},{"../internals/export":149,"../internals/regexp-exec":224}],301:[function(E,pe,de){"use strict";var se=E("../internals/function-name").PROPER,ne=E("../internals/redefine"),ie=E("../internals/an-object"),ce=E("../internals/to-string"),ue=E("../internals/fails"),ae=E("../internals/regexp-get-flags"),oe="toString",re=RegExp.prototype,ee=re[oe],a=ue(function(){return ee.call({source:"a",flags:"b"})!="/a/b"}),y=se&&ee.name!=oe;(a||y)&&ne(RegExp.prototype,oe,function(){var b=ie(this),z=ce(b.source),te=ce(ae(b));return"/"+z+"/"+te},{unsafe:!0})},{"../internals/an-object":101,"../internals/fails":150,"../internals/function-name":156,"../internals/redefine":222,"../internals/regexp-get-flags":226,"../internals/to-string":256}],302:[function(E,pe,de){"use strict";var se=E("../internals/export"),ne=E("../internals/function-uncurry-this"),ie=E("../internals/not-a-regexp"),ce=E("../internals/require-object-coercible"),ue=E("../internals/to-string"),ae=E("../internals/correct-is-regexp-logic"),oe=ne("".indexOf);se({target:"String",proto:!0,forced:!ae("includes")},{includes:function(ee){return!!~oe(ue(ce(this)),ue(ie(ee)),arguments.length>1?arguments[1]:void 0)}})},{"../internals/correct-is-regexp-logic":126,"../internals/export":149,"../internals/function-uncurry-this":157,"../internals/not-a-regexp":194,"../internals/require-object-coercible":230,"../internals/to-string":256}],303:[function(E,pe,de){"use strict";var se=E("../internals/string-multibyte").charAt,ne=E("../internals/to-string"),ie=E("../internals/internal-state"),ce=E("../internals/define-iterator"),ue="String Iterator",ae=ie.set,oe=ie.getterFor(ue);ce(String,"String",function(re){ae(this,{type:ue,string:ne(re),index:0})},function(){var ee=oe(this),a=ee.string,y=ee.index,x;return y>=a.length?{value:void 0,done:!0}:(x=se(a,y),ee.index+=x.length,{value:x,done:!1})})},{"../internals/define-iterator":132,"../internals/internal-state":173,"../internals/string-multibyte":239,"../internals/to-string":256}],304:[function(E,pe,de){"use strict";var se=E("../internals/function-call"),ne=E("../internals/fix-regexp-well-known-symbol-logic"),ie=E("../internals/an-object"),ce=E("../internals/to-length"),ue=E("../internals/to-string"),ae=E("../internals/require-object-coercible"),oe=E("../internals/get-method"),re=E("../internals/advance-string-index"),ee=E("../internals/regexp-exec-abstract");ne("match",function(a,y,x){return[function(z){var te=ae(this),le=z==null?void 0:oe(z,a);return le?se(le,z,te):new RegExp(z)[a](ue(te))},function(b){var z=ie(this),te=ue(b),le=x(y,z,te);if(le.done)return le.value;if(!z.global)return ee(z,te);var fe=z.unicode;z.lastIndex=0;for(var ge=[],me=0,he;(he=ee(z,te))!==null;){var Se=ue(he[0]);ge[me]=Se,Se===""&&(z.lastIndex=re(te,ce(z.lastIndex),fe)),me++}return me===0?null:ge}]})},{"../internals/advance-string-index":99,"../internals/an-object":101,"../internals/fix-regexp-well-known-symbol-logic":151,"../internals/function-call":155,"../internals/get-method":161,"../internals/regexp-exec-abstract":223,"../internals/require-object-coercible":230,"../internals/to-length":249,"../internals/to-string":256}],305:[function(E,pe,de){"use strict";var se=E("../internals/function-apply"),ne=E("../internals/function-call"),ie=E("../internals/function-uncurry-this"),ce=E("../internals/fix-regexp-well-known-symbol-logic"),ue=E("../internals/fails"),ae=E("../internals/an-object"),oe=E("../internals/is-callable"),re=E("../internals/to-integer-or-infinity"),ee=E("../internals/to-length"),a=E("../internals/to-string"),y=E("../internals/require-object-coercible"),x=E("../internals/advance-string-index"),b=E("../internals/get-method"),z=E("../internals/get-substitution"),te=E("../internals/regexp-exec-abstract"),le=E("../internals/well-known-symbol"),fe=le("replace"),ge=Math.max,me=Math.min,he=ie([].concat),Se=ie([].push),ye=ie("".indexOf),Pe=ie("".slice),we=function(Ce){return Ce===void 0?Ce:String(Ce)},De=function(){return"a".replace(/./,"$0")==="$0"}(),Ee=function(){return/./[fe]?/./[fe]("a","$0")==="":!1}(),Ae=!ue(function(){var Ce=/./;return Ce.exec=function(){var je=[];return je.groups={a:"7"},je},"".replace(Ce,"$")!=="7"});ce("replace",function(Ce,je,Me){var Ge=Ee?"$":"$0";return[function(Je,qe){var Xe=y(this),Ve=Je==null?void 0:b(Je,fe);return Ve?ne(Ve,Je,Xe,qe):ne(je,a(Xe),Je,qe)},function(Fe,Je){var qe=ae(this),Xe=a(Fe);if(typeof Je=="string"&&ye(Je,Ge)===-1&&ye(Je,"$<")===-1){var Ve=Me(je,qe,Xe,Je);if(Ve.done)return Ve.value}var We=oe(Je);We||(Je=a(Je));var ze=qe.global;if(ze){var Ue=qe.unicode;qe.lastIndex=0}for(var ot=[];;){var Qe=te(qe,Xe);if(Qe===null||(Se(ot,Qe),!ze))break;var ut=a(Qe[0]);ut===""&&(qe.lastIndex=x(Xe,ee(qe.lastIndex),Ue))}for(var Ye="",He=0,Re=0;Re=He&&(Ye+=Pe(Xe,He,Le)+Oe,He=Le+$e.length)}return Ye+Pe(Xe,He)}]},!Ae||!De||Ee)},{"../internals/advance-string-index":99,"../internals/an-object":101,"../internals/fails":150,"../internals/fix-regexp-well-known-symbol-logic":151,"../internals/function-apply":152,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/get-method":161,"../internals/get-substitution":162,"../internals/is-callable":176,"../internals/regexp-exec-abstract":223,"../internals/require-object-coercible":230,"../internals/to-integer-or-infinity":248,"../internals/to-length":249,"../internals/to-string":256,"../internals/well-known-symbol":268}],306:[function(E,pe,de){"use strict";var se=E("../internals/function-call"),ne=E("../internals/fix-regexp-well-known-symbol-logic"),ie=E("../internals/an-object"),ce=E("../internals/require-object-coercible"),ue=E("../internals/same-value"),ae=E("../internals/to-string"),oe=E("../internals/get-method"),re=E("../internals/regexp-exec-abstract");ne("search",function(ee,a,y){return[function(b){var z=ce(this),te=b==null?void 0:oe(b,ee);return te?se(te,b,z):new RegExp(b)[ee](ae(z))},function(x){var b=ie(this),z=ae(x),te=y(a,b,z);if(te.done)return te.value;var le=b.lastIndex;ue(le,0)||(b.lastIndex=0);var fe=re(b,z);return ue(b.lastIndex,le)||(b.lastIndex=le),fe===null?-1:fe.index}]})},{"../internals/an-object":101,"../internals/fix-regexp-well-known-symbol-logic":151,"../internals/function-call":155,"../internals/get-method":161,"../internals/regexp-exec-abstract":223,"../internals/require-object-coercible":230,"../internals/same-value":231,"../internals/to-string":256}],307:[function(E,pe,de){"use strict";var se=E("../internals/function-apply"),ne=E("../internals/function-call"),ie=E("../internals/function-uncurry-this"),ce=E("../internals/fix-regexp-well-known-symbol-logic"),ue=E("../internals/is-regexp"),ae=E("../internals/an-object"),oe=E("../internals/require-object-coercible"),re=E("../internals/species-constructor"),ee=E("../internals/advance-string-index"),a=E("../internals/to-length"),y=E("../internals/to-string"),x=E("../internals/get-method"),b=E("../internals/array-slice-simple"),z=E("../internals/regexp-exec-abstract"),te=E("../internals/regexp-exec"),le=E("../internals/regexp-sticky-helpers"),fe=E("../internals/fails"),ge=le.UNSUPPORTED_Y,me=4294967295,he=Math.min,Se=[].push,ye=ie(/./.exec),Pe=ie(Se),we=ie("".slice),De=!fe(function(){var Ee=/(?:)/,Ae=Ee.exec;Ee.exec=function(){return Ae.apply(this,arguments)};var Ce="ab".split(Ee);return Ce.length!==2||Ce[0]!=="a"||Ce[1]!=="b"});ce("split",function(Ee,Ae,Ce){var je;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?je=function(Me,Ge){var Fe=y(oe(this)),Je=Ge===void 0?me:Ge>>>0;if(Je===0)return[];if(Me===void 0)return[Fe];if(!ue(Me))return ne(Ae,Fe,Me,Je);for(var qe=[],Xe=(Me.ignoreCase?"i":"")+(Me.multiline?"m":"")+(Me.unicode?"u":"")+(Me.sticky?"y":""),Ve=0,We=new RegExp(Me.source,Xe+"g"),ze,Ue,ot;(ze=ne(te,We,Fe))&&(Ue=We.lastIndex,!(Ue>Ve&&(Pe(qe,we(Fe,Ve,ze.index)),ze.length>1&&ze.index=Je)));)We.lastIndex===ze.index&&We.lastIndex++;return Ve===Fe.length?(ot||!ye(We,""))&&Pe(qe,""):Pe(qe,we(Fe,Ve)),qe.length>Je?b(qe,0,Je):qe}:"0".split(void 0,0).length?je=function(Me,Ge){return Me===void 0&&Ge===0?[]:ne(Ae,this,Me,Ge)}:je=Ae,[function(Ge,Fe){var Je=oe(this),qe=Ge==null?void 0:x(Ge,Ee);return qe?ne(qe,Ge,Je,Fe):ne(je,y(Je),Ge,Fe)},function(Me,Ge){var Fe=ae(this),Je=y(Me),qe=Ce(je,Fe,Je,Ge,je!==Ae);if(qe.done)return qe.value;var Xe=re(Fe,RegExp),Ve=Fe.unicode,We=(Fe.ignoreCase?"i":"")+(Fe.multiline?"m":"")+(Fe.unicode?"u":"")+(ge?"g":"y"),ze=new Xe(ge?"^(?:"+Fe.source+")":Fe,We),Ue=Ge===void 0?me:Ge>>>0;if(Ue===0)return[];if(Je.length===0)return z(ze,Je)===null?[Je]:[];for(var ot=0,Qe=0,ut=[];Qe2?arguments[2]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-copy-within":105,"../internals/function-uncurry-this":157}],316:[function(E,pe,de){"use strict";var se=E("../internals/array-buffer-view-core"),ne=E("../internals/array-iteration").every,ie=se.aTypedArray,ce=se.exportTypedArrayMethod;ce("every",function(ae){return ne(ie(this),ae,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],317:[function(E,pe,de){"use strict";var se=E("../internals/array-buffer-view-core"),ne=E("../internals/function-call"),ie=E("../internals/array-fill"),ce=se.aTypedArray,ue=se.exportTypedArrayMethod;ue("fill",function(oe){var re=arguments.length;return ne(ie,ce(this),oe,re>1?arguments[1]:void 0,re>2?arguments[2]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-fill":106,"../internals/function-call":155}],318:[function(E,pe,de){"use strict";var se=E("../internals/array-buffer-view-core"),ne=E("../internals/array-iteration").filter,ie=E("../internals/typed-array-from-species-and-list"),ce=se.aTypedArray,ue=se.exportTypedArrayMethod;ue("filter",function(oe){var re=ne(ce(this),oe,arguments.length>1?arguments[1]:void 0);return ie(this,re)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111,"../internals/typed-array-from-species-and-list":260}],319:[function(E,pe,de){"use strict";var se=E("../internals/array-buffer-view-core"),ne=E("../internals/array-iteration").findIndex,ie=se.aTypedArray,ce=se.exportTypedArrayMethod;ce("findIndex",function(ae){return ne(ie(this),ae,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],320:[function(E,pe,de){"use strict";var se=E("../internals/array-buffer-view-core"),ne=E("../internals/array-iteration").find,ie=se.aTypedArray,ce=se.exportTypedArrayMethod;ce("find",function(ae){return ne(ie(this),ae,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],321:[function(E,pe,de){"use strict";var se=E("../internals/array-buffer-view-core"),ne=E("../internals/array-iteration").forEach,ie=se.aTypedArray,ce=se.exportTypedArrayMethod;ce("forEach",function(ae){ne(ie(this),ae,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],322:[function(E,pe,de){"use strict";var se=E("../internals/array-buffer-view-core"),ne=E("../internals/array-includes").includes,ie=se.aTypedArray,ce=se.exportTypedArrayMethod;ce("includes",function(ae){return ne(ie(this),ae,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-includes":110}],323:[function(E,pe,de){"use strict";var se=E("../internals/array-buffer-view-core"),ne=E("../internals/array-includes").indexOf,ie=se.aTypedArray,ce=se.exportTypedArrayMethod;ce("indexOf",function(ae){return ne(ie(this),ae,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-includes":110}],324:[function(E,pe,de){"use strict";var se=E("../internals/global"),ne=E("../internals/fails"),ie=E("../internals/function-uncurry-this"),ce=E("../internals/array-buffer-view-core"),ue=E("../modules/es.array.iterator"),ae=E("../internals/well-known-symbol"),oe=ae("iterator"),re=se.Uint8Array,ee=ie(ue.values),a=ie(ue.keys),y=ie(ue.entries),x=ce.aTypedArray,b=ce.exportTypedArrayMethod,z=re&&re.prototype,te=!ne(function(){z[oe].call([1])}),le=!!z&&z.values&&z[oe]===z.values&&z.values.name==="values",fe=function(){return ee(x(this))};b("entries",function(){return y(x(this))},te),b("keys",function(){return a(x(this))},te),b("values",fe,te||!le,{name:"values"}),b(oe,fe,te||!le,{name:"values"})},{"../internals/array-buffer-view-core":103,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/well-known-symbol":268,"../modules/es.array.iterator":278}],325:[function(E,pe,de){"use strict";var se=E("../internals/array-buffer-view-core"),ne=E("../internals/function-uncurry-this"),ie=se.aTypedArray,ce=se.exportTypedArrayMethod,ue=ne([].join);ce("join",function(oe){return ue(ie(this),oe)})},{"../internals/array-buffer-view-core":103,"../internals/function-uncurry-this":157}],326:[function(E,pe,de){"use strict";var se=E("../internals/array-buffer-view-core"),ne=E("../internals/function-apply"),ie=E("../internals/array-last-index-of"),ce=se.aTypedArray,ue=se.exportTypedArrayMethod;ue("lastIndexOf",function(oe){var re=arguments.length;return ne(ie,ce(this),re>1?[oe,arguments[1]]:[oe])})},{"../internals/array-buffer-view-core":103,"../internals/array-last-index-of":112,"../internals/function-apply":152}],327:[function(E,pe,de){"use strict";var se=E("../internals/array-buffer-view-core"),ne=E("../internals/array-iteration").map,ie=E("../internals/typed-array-species-constructor"),ce=se.aTypedArray,ue=se.exportTypedArrayMethod;ue("map",function(oe){return ne(ce(this),oe,arguments.length>1?arguments[1]:void 0,function(re,ee){return new(ie(re))(ee)})})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111,"../internals/typed-array-species-constructor":262}],328:[function(E,pe,de){"use strict";var se=E("../internals/array-buffer-view-core"),ne=E("../internals/array-reduce").right,ie=se.aTypedArray,ce=se.exportTypedArrayMethod;ce("reduceRight",function(ae){var oe=arguments.length;return ne(ie(this),ae,oe,oe>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-reduce":115}],329:[function(E,pe,de){"use strict";var se=E("../internals/array-buffer-view-core"),ne=E("../internals/array-reduce").left,ie=se.aTypedArray,ce=se.exportTypedArrayMethod;ce("reduce",function(ae){var oe=arguments.length;return ne(ie(this),ae,oe,oe>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-reduce":115}],330:[function(E,pe,de){"use strict";var se=E("../internals/array-buffer-view-core"),ne=se.aTypedArray,ie=se.exportTypedArrayMethod,ce=Math.floor;ie("reverse",function(){for(var ae=this,oe=ne(ae).length,re=ce(oe/2),ee=0,a;ee1?arguments[1]:void 0,1),me=ae(fe);if(z)return ne(y,this,me,ge);var he=this.length,Se=ce(me),ye=0;if(Se+ge>he)throw re("Wrong length");for(;yeb;)te[b]=y[b++];return te},oe)},{"../internals/array-buffer-view-core":103,"../internals/array-slice":117,"../internals/fails":150,"../internals/typed-array-species-constructor":262}],333:[function(E,pe,de){"use strict";var se=E("../internals/array-buffer-view-core"),ne=E("../internals/array-iteration").some,ie=se.aTypedArray,ce=se.exportTypedArrayMethod;ce("some",function(ae){return ne(ie(this),ae,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],334:[function(E,pe,de){"use strict";var se=E("../internals/global"),ne=E("../internals/function-uncurry-this"),ie=E("../internals/fails"),ce=E("../internals/a-callable"),ue=E("../internals/array-sort"),ae=E("../internals/array-buffer-view-core"),oe=E("../internals/engine-ff-version"),re=E("../internals/engine-is-ie-or-edge"),ee=E("../internals/engine-v8-version"),a=E("../internals/engine-webkit-version"),y=ae.aTypedArray,x=ae.exportTypedArrayMethod,b=se.Uint16Array,z=b&&ne(b.prototype.sort),te=!!z&&!(ie(function(){z(new b(2),null)})&&ie(function(){z(new b(2),{})})),le=!!z&&!ie(function(){if(ee)return ee<74;if(oe)return oe<67;if(re)return!0;if(a)return a<602;var ge=new b(516),me=Array(516),he,Se;for(he=0;he<516;he++)Se=he%4,ge[he]=515-he,me[he]=he-2*Se+3;for(z(ge,function(ye,Pe){return(ye/4|0)-(Pe/4|0)}),he=0;he<516;he++)if(ge[he]!==me[he])return!0}),fe=function(ge){return function(me,he){return ge!==void 0?+ge(me,he)||0:he!==he?-1:me!==me?1:me===0&&he===0?1/me>0&&1/he<0?1:-1:me>he}};x("sort",function(me){return me!==void 0&&ce(me),le?z(this,me):ue(y(this),fe(me))},!le||te)},{"../internals/a-callable":95,"../internals/array-buffer-view-core":103,"../internals/array-sort":118,"../internals/engine-ff-version":138,"../internals/engine-is-ie-or-edge":140,"../internals/engine-v8-version":146,"../internals/engine-webkit-version":147,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],335:[function(E,pe,de){"use strict";var se=E("../internals/array-buffer-view-core"),ne=E("../internals/to-length"),ie=E("../internals/to-absolute-index"),ce=E("../internals/typed-array-species-constructor"),ue=se.aTypedArray,ae=se.exportTypedArrayMethod;ae("subarray",function(re,ee){var a=ue(this),y=a.length,x=ie(re,y),b=ce(a);return new b(a.buffer,a.byteOffset+x*a.BYTES_PER_ELEMENT,ne((ee===void 0?y:ie(ee,y))-x))})},{"../internals/array-buffer-view-core":103,"../internals/to-absolute-index":245,"../internals/to-length":249,"../internals/typed-array-species-constructor":262}],336:[function(E,pe,de){"use strict";var se=E("../internals/global"),ne=E("../internals/function-apply"),ie=E("../internals/array-buffer-view-core"),ce=E("../internals/fails"),ue=E("../internals/array-slice"),ae=se.Int8Array,oe=ie.aTypedArray,re=ie.exportTypedArrayMethod,ee=[].toLocaleString,a=!!ae&&ce(function(){ee.call(new ae(1))}),y=ce(function(){return[1,2].toLocaleString()!=new ae([1,2]).toLocaleString()})||!ce(function(){ae.prototype.toLocaleString.call([1,2])});re("toLocaleString",function(){return ne(ee,a?ue(oe(this)):oe(this),ue(arguments))},y)},{"../internals/array-buffer-view-core":103,"../internals/array-slice":117,"../internals/fails":150,"../internals/function-apply":152,"../internals/global":163}],337:[function(E,pe,de){"use strict";var se=E("../internals/array-buffer-view-core").exportTypedArrayMethod,ne=E("../internals/fails"),ie=E("../internals/global"),ce=E("../internals/function-uncurry-this"),ue=ie.Uint8Array,ae=ue&&ue.prototype||{},oe=[].toString,re=ce([].join);ne(function(){oe.call({})})&&(oe=function(){return re(this)});var ee=ae.toString!=oe;se("toString",oe,ee)},{"../internals/array-buffer-view-core":103,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],338:[function(E,pe,de){var se=E("../internals/typed-array-constructor");se("Uint8",function(ne){return function(ce,ue,ae){return ne(this,ce,ue,ae)}})},{"../internals/typed-array-constructor":258}],339:[function(E,pe,de){var se=E("../internals/global"),ne=E("../internals/dom-iterables"),ie=E("../internals/dom-token-list-prototype"),ce=E("../internals/array-for-each"),ue=E("../internals/create-non-enumerable-property"),ae=function(re){if(re&&re.forEach!==ce)try{ue(re,"forEach",ce)}catch(ee){re.forEach=ce}};for(var oe in ne)ne[oe]&&ae(se[oe]&&se[oe].prototype);ae(ie)},{"../internals/array-for-each":107,"../internals/create-non-enumerable-property":129,"../internals/dom-iterables":136,"../internals/dom-token-list-prototype":137,"../internals/global":163}],340:[function(E,pe,de){var se=E("../internals/global"),ne=E("../internals/dom-iterables"),ie=E("../internals/dom-token-list-prototype"),ce=E("../modules/es.array.iterator"),ue=E("../internals/create-non-enumerable-property"),ae=E("../internals/well-known-symbol"),oe=ae("iterator"),re=ae("toStringTag"),ee=ce.values,a=function(x,b){if(x){if(x[oe]!==ee)try{ue(x,oe,ee)}catch(te){x[oe]=ee}if(x[re]||ue(x,re,b),ne[b]){for(var z in ce)if(x[z]!==ce[z])try{ue(x,z,ce[z])}catch(te){x[z]=ce[z]}}}};for(var y in ne)a(se[y]&&se[y].prototype,y);a(ie,"DOMTokenList")},{"../internals/create-non-enumerable-property":129,"../internals/dom-iterables":136,"../internals/dom-token-list-prototype":137,"../internals/global":163,"../internals/well-known-symbol":268,"../modules/es.array.iterator":278}],341:[function(E,pe,de){function se(le){return Array.isArray?Array.isArray(le):te(le)==="[object Array]"}de.isArray=se;function ne(le){return typeof le=="boolean"}de.isBoolean=ne;function ie(le){return le===null}de.isNull=ie;function ce(le){return le==null}de.isNullOrUndefined=ce;function ue(le){return typeof le=="number"}de.isNumber=ue;function ae(le){return typeof le=="string"}de.isString=ae;function oe(le){return typeof le=="symbol"}de.isSymbol=oe;function re(le){return le===void 0}de.isUndefined=re;function ee(le){return te(le)==="[object RegExp]"}de.isRegExp=ee;function a(le){return typeof le=="object"&&le!==null}de.isObject=a;function y(le){return te(le)==="[object Date]"}de.isDate=y;function x(le){return te(le)==="[object Error]"||le instanceof Error}de.isError=x;function b(le){return typeof le=="function"}de.isFunction=b;function z(le){return le===null||typeof le=="boolean"||typeof le=="number"||typeof le=="string"||typeof le=="symbol"||typeof le=="undefined"}de.isPrimitive=z,de.isBuffer=E("buffer").Buffer.isBuffer;function te(le){return Object.prototype.toString.call(le)}},{buffer:90}],342:[function(E,pe,de){(function(se){"use strict";var ne=function(){var oe=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,re=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,ee=/[^-+\dA-Z]/g;return function(a,y,x,b){if(arguments.length===1&&ae(a)==="string"&&!/\d/.test(a)&&(y=a,a=void 0),a=a||new Date,a instanceof Date||(a=new Date(a)),isNaN(a))throw TypeError("Invalid date");y=String(ne.masks[y]||y||ne.masks.default);var z=y.slice(0,4);(z==="UTC:"||z==="GMT:")&&(y=y.slice(4),x=!0,z==="GMT:"&&(b=!0));var te=x?"getUTC":"get",le=a[te+"Date"](),fe=a[te+"Day"](),ge=a[te+"Month"](),me=a[te+"FullYear"](),he=a[te+"Hours"](),Se=a[te+"Minutes"](),ye=a[te+"Seconds"](),Pe=a[te+"Milliseconds"](),we=x?0:a.getTimezoneOffset(),De=ce(a),Ee=ue(a),Ae={d:le,dd:ie(le),ddd:ne.i18n.dayNames[fe],dddd:ne.i18n.dayNames[fe+7],m:ge+1,mm:ie(ge+1),mmm:ne.i18n.monthNames[ge],mmmm:ne.i18n.monthNames[ge+12],yy:String(me).slice(2),yyyy:me,h:he%12||12,hh:ie(he%12||12),H:he,HH:ie(he),M:Se,MM:ie(Se),s:ye,ss:ie(ye),l:ie(Pe,3),L:ie(Math.round(Pe/10)),t:he<12?"a":"p",tt:he<12?"am":"pm",T:he<12?"A":"P",TT:he<12?"AM":"PM",Z:b?"GMT":x?"UTC":(String(a).match(re)||[""]).pop().replace(ee,""),o:(we>0?"-":"+")+ie(Math.floor(Math.abs(we)/60)*100+Math.abs(we)%60,4),S:["th","st","nd","rd"][le%10>3?0:(le%100-le%10!=10)*le%10],W:De,N:Ee};return y.replace(oe,function(Ce){return Ce in Ae?Ae[Ce]:Ce.slice(1,Ce.length-1)})}}();ne.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},ne.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};function ie(oe,re){for(oe=String(oe),re=re||2;oe.length]/;pe.exports=ne;function ne(ie){var ce=""+ie,ue=se.exec(ce);if(!ue)return ce;var ae,oe="",re=0,ee=0;for(re=ue.index;re0&&(Ae=Pe[0]),Ae instanceof Error)throw Ae;var Ce=new Error("Unhandled error."+(Ae?" ("+Ae.message+")":""));throw Ce.context=Ae,Ce}var je=Ee[ye];if(je===void 0)return!1;if(typeof je=="function")ne(je,this,Pe);else for(var Me=je.length,Ge=te(je,Me),we=0;we0&&Ae.length>De&&!Ae.warned){Ae.warned=!0;var Ce=new Error("Possible EventEmitter memory leak detected. "+Ae.length+" "+String(ye)+" listeners added. Use emitter.setMaxListeners() to increase limit");Ce.name="MaxListenersExceededWarning",Ce.emitter=Se,Ce.type=ye,Ce.count=Ae.length,ce(Ce)}return Se}ae.prototype.addListener=function(ye,Pe){return a(this,ye,Pe,!1)},ae.prototype.on=ae.prototype.addListener,ae.prototype.prependListener=function(ye,Pe){return a(this,ye,Pe,!0)};function y(){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 x(Se,ye,Pe){var we={fired:!1,wrapFn:void 0,target:Se,type:ye,listener:Pe},De=y.bind(we);return De.listener=Pe,we.wrapFn=De,De}ae.prototype.once=function(ye,Pe){return re(Pe),this.on(ye,x(this,ye,Pe)),this},ae.prototype.prependOnceListener=function(ye,Pe){return re(Pe),this.prependListener(ye,x(this,ye,Pe)),this},ae.prototype.removeListener=function(ye,Pe){var we,De,Ee,Ae,Ce;if(re(Pe),De=this._events,De===void 0)return this;if(we=De[ye],we===void 0)return this;if(we===Pe||we.listener===Pe)--this._eventsCount===0?this._events=Object.create(null):(delete De[ye],De.removeListener&&this.emit("removeListener",ye,we.listener||Pe));else if(typeof we!="function"){for(Ee=-1,Ae=we.length-1;Ae>=0;Ae--)if(we[Ae]===Pe||we[Ae].listener===Pe){Ce=we[Ae].listener,Ee=Ae;break}if(Ee<0)return this;Ee===0?we.shift():le(we,Ee),we.length===1&&(De[ye]=we[0]),De.removeListener!==void 0&&this.emit("removeListener",ye,Ce||Pe)}return this},ae.prototype.off=ae.prototype.removeListener,ae.prototype.removeAllListeners=function(ye){var Pe,we,De;if(we=this._events,we===void 0)return this;if(we.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):we[ye]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete we[ye]),this;if(arguments.length===0){var Ee=Object.keys(we),Ae;for(De=0;De=0;De--)this.removeListener(ye,Pe[De]);return this};function b(Se,ye,Pe){var we=Se._events;if(we===void 0)return[];var De=we[ye];return De===void 0?[]:typeof De=="function"?Pe?[De.listener||De]:[De]:Pe?fe(De):te(De,De.length)}ae.prototype.listeners=function(ye){return b(this,ye,!0)},ae.prototype.rawListeners=function(ye){return b(this,ye,!1)},ae.listenerCount=function(Se,ye){return typeof Se.listenerCount=="function"?Se.listenerCount(ye):z.call(Se,ye)},ae.prototype.listenerCount=z;function z(Se){var ye=this._events;if(ye!==void 0){var Pe=ye[Se];if(typeof Pe=="function")return 1;if(Pe!==void 0)return Pe.length}return 0}ae.prototype.eventNames=function(){return this._eventsCount>0?ie(this._events):[]};function te(Se,ye){for(var Pe=new Array(ye),we=0;we=3&&(x=y),ne.call(ee)==="[object Array]"?ce(ee,a,x):typeof ee=="string"?ue(ee,a,x):ae(ee,a,x)};pe.exports=oe},{"is-callable":367}],346:[function(E,pe,de){"use strict";var se="Function.prototype.bind called on incompatible ",ne=Array.prototype.slice,ie=Object.prototype.toString,ce="[object Function]";pe.exports=function(ae){var oe=this;if(typeof oe!="function"||ie.call(oe)!==ce)throw new TypeError(se+oe);for(var re=ne.call(arguments,1),ee,a=function(){if(this instanceof ee){var te=oe.apply(this,re.concat(ne.call(arguments)));return Object(te)===te?te:this}else return oe.apply(ae,re.concat(ne.call(arguments)))},y=Math.max(0,oe.length-re.length),x=[],b=0;b1&&typeof Ge!="boolean")throw new ce('"allowMissing" argument must be a boolean');if(we(/^%?[^%]*%?$/,Me)===null)throw new ne("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Fe=Ae(Me),Je=Fe.length>0?Fe[0]:"",qe=Ce("%"+Je+"%",Ge),Xe=qe.name,Ve=qe.value,We=!1,ze=qe.alias;ze&&(Je=ze[0],Se(Fe,he([0,1],ze)));for(var Ue=1,ot=!0;Ue=Fe.length){var He=ae(Ve,Qe);ot=!!He,ot&&"get"in He&&!("originalValue"in He.get)?Ve=He.get:Ve=Ve[Qe]}else ot=me(Ve,Qe),Ve=Ve[Qe];ot&&!We&&(z[Xe]=Ve)}}return Ve}},{"function-bind":347,has:354,"has-proto":350,"has-symbols":351}],349:[function(E,pe,de){"use strict";var se=E("get-intrinsic"),ne=se("%Object.getOwnPropertyDescriptor%",!0);if(ne)try{ne([],"length")}catch(ie){ne=null}pe.exports=ne},{"get-intrinsic":348}],350:[function(E,pe,de){"use strict";var se={foo:{}},ne=Object;pe.exports=function(){return{__proto__:se}.foo===se.foo&&!({__proto__:null}instanceof ne)}},{}],351:[function(E,pe,de){"use strict";var se=typeof Symbol!="undefined"&&Symbol,ne=E("./shams");pe.exports=function(){return typeof se!="function"||typeof Symbol!="function"||typeof se("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:ne()}},{"./shams":352}],352:[function(E,pe,de){"use strict";pe.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var ne={},ie=Symbol("test"),ce=Object(ie);if(typeof ie=="string"||Object.prototype.toString.call(ie)!=="[object Symbol]"||Object.prototype.toString.call(ce)!=="[object Symbol]")return!1;var ue=42;ne[ie]=ue;for(ie in ne)return!1;if(typeof Object.keys=="function"&&Object.keys(ne).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(ne).length!==0)return!1;var ae=Object.getOwnPropertySymbols(ne);if(ae.length!==1||ae[0]!==ie||!Object.prototype.propertyIsEnumerable.call(ne,ie))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var oe=Object.getOwnPropertyDescriptor(ne,ie);if(oe.value!==ue||oe.enumerable!==!0)return!1}return!0}},{}],353:[function(E,pe,de){"use strict";var se=E("has-symbols/shams");pe.exports=function(){return se()&&!!Symbol.toStringTag}},{"has-symbols/shams":352}],354:[function(E,pe,de){"use strict";var se=E("function-bind");pe.exports=se.call(Function.call,Object.prototype.hasOwnProperty)},{"function-bind":347}],355:[function(E,pe,de){var se=E("http"),ne=E("url"),ie=pe.exports;for(var ce in se)se.hasOwnProperty(ce)&&(ie[ce]=se[ce]);ie.request=function(ae,oe){return ae=ue(ae),se.request.call(this,ae,oe)},ie.get=function(ae,oe){return ae=ue(ae),se.get.call(this,ae,oe)};function ue(ae){if(typeof ae=="string"&&(ae=ne.parse(ae)),ae.protocol||(ae.protocol="https:"),ae.protocol!=="https:")throw new Error('Protocol "'+ae.protocol+'" not supported. Expected "https:"');return ae}},{http:468,url:472}],356:[function(E,pe,de){"use strict";var se=E("util"),ne=E("ms");pe.exports=function(ie){if(typeof ie=="number")return ie;var ce=ne(ie);if(ce===void 0){var ue=new Error(se.format("humanize-ms(%j) result undefined",ie));console.warn(ue.stack)}return ce}},{ms:376,util:419}],357:[function(E,pe,de){de.read=function(se,ne,ie,ce,ue){var ae,oe,re=ue*8-ce-1,ee=(1<>1,y=-7,x=ie?ue-1:0,b=ie?-1:1,z=se[ne+x];for(x+=b,ae=z&(1<<-y)-1,z>>=-y,y+=re;y>0;ae=ae*256+se[ne+x],x+=b,y-=8);for(oe=ae&(1<<-y)-1,ae>>=-y,y+=ce;y>0;oe=oe*256+se[ne+x],x+=b,y-=8);if(ae===0)ae=1-a;else{if(ae===ee)return oe?NaN:(z?-1:1)*(1/0);oe=oe+Math.pow(2,ce),ae=ae-a}return(z?-1:1)*oe*Math.pow(2,ae-ce)},de.write=function(se,ne,ie,ce,ue,ae){var oe,re,ee,a=ae*8-ue-1,y=(1<>1,b=ue===23?Math.pow(2,-24)-Math.pow(2,-77):0,z=ce?0:ae-1,te=ce?1:-1,le=ne<0||ne===0&&1/ne<0?1:0;for(ne=Math.abs(ne),isNaN(ne)||ne===1/0?(re=isNaN(ne)?1:0,oe=y):(oe=Math.floor(Math.log(ne)/Math.LN2),ne*(ee=Math.pow(2,-oe))<1&&(oe--,ee*=2),oe+x>=1?ne+=b/ee:ne+=b*Math.pow(2,1-x),ne*ee>=2&&(oe++,ee/=2),oe+x>=y?(re=0,oe=y):oe+x>=1?(re=(ne*ee-1)*Math.pow(2,ue),oe=oe+x):(re=ne*Math.pow(2,x-1)*Math.pow(2,ue),oe=0));ue>=8;se[ie+z]=re&255,z+=te,re/=256,ue-=8);for(oe=oe<0;se[ie+z]=oe&255,z+=te,oe/=256,a-=8);se[ie+z-te]|=le*128}},{}],358:[function(E,pe,de){"use strict";var se=[E("./nextTick"),E("./queueMicrotask"),E("./mutation.js"),E("./messageChannel"),E("./stateChange"),E("./timeout")],ne,ie,ce=-1,ue=[],ae=!1;function oe(){!ne||!ie||(ne=!1,ie.length?ue=ie.concat(ue):ce=-1,ue.length&&re())}function re(){if(!ne){ae=!1,ne=!0;for(var z=ue.length,te=setTimeout(oe);z;){for(ie=ue,ue=[];ie&&++ce1)for(var le=1;le=0&&ie(re)!=="[object Array]"&&ie(re.callee)==="[object Function]"},ae=function(){return ce(arguments)}();ce.isLegacyArguments=ue,pe.exports=ae?ce:ue},{"call-bind/callBound":92,"has-tostringtag/shams":353}],366:[function(E,pe,de){pe.exports=function(ie){return ie!=null&&(se(ie)||ne(ie)||!!ie._isBuffer)};function se(ie){return!!ie.constructor&&typeof ie.constructor.isBuffer=="function"&&ie.constructor.isBuffer(ie)}function ne(ie){return typeof ie.readFloatLE=="function"&&typeof ie.slice=="function"&&se(ie.slice(0,0))}},{}],367:[function(E,pe,de){"use strict";var se=Function.prototype.toString,ne=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,ie,ce;if(typeof ne=="function"&&typeof Object.defineProperty=="function")try{ie=Object.defineProperty({},"length",{get:function(){throw ce}}),ce={},ne(function(){throw 42},null,ie)}catch(me){me!==ce&&(ne=null)}else ne=null;var ue=/^\s*class\b/,ae=function(he){try{var Se=se.call(he);return ue.test(Se)}catch(ye){return!1}},oe=function(he){try{return ae(he)?!1:(se.call(he),!0)}catch(Se){return!1}},re=Object.prototype.toString,ee="[object Object]",a="[object Function]",y="[object GeneratorFunction]",x="[object HTMLAllCollection]",b="[object HTML document.all class]",z="[object HTMLCollection]",te=typeof Symbol=="function"&&!!Symbol.toStringTag,le=!(0 in[,]),fe=function(){return!1};if(typeof document=="object"){var ge=document.all;re.call(ge)===re.call(document.all)&&(fe=function(he){if((le||!he)&&(typeof he=="undefined"||typeof he=="object"))try{var Se=re.call(he);return(Se===x||Se===b||Se===z||Se===ee)&&he("")==null}catch(ye){}return!1})}pe.exports=ne?function(he){if(fe(he))return!0;if(!he||typeof he!="function"&&typeof he!="object")return!1;try{ne(he,null,ie)}catch(Se){if(Se!==ce)return!1}return!ae(he)&&oe(he)}:function(he){if(fe(he))return!0;if(!he||typeof he!="function"&&typeof he!="object")return!1;if(te)return oe(he);if(ae(he))return!1;var Se=re.call(he);return Se!==a&&Se!==y&&!/^\[object HTML/.test(Se)?!1:oe(he)}},{}],368:[function(E,pe,de){"use strict";var se=Object.prototype.toString,ne=Function.prototype.toString,ie=/^\s*(?:function)?\*/,ce=E("has-tostringtag/shams")(),ue=Object.getPrototypeOf,ae=function(){if(!ce)return!1;try{return Function("return function*() {}")()}catch(re){}},oe;pe.exports=function(ee){if(typeof ee!="function")return!1;if(ie.test(ne.call(ee)))return!0;if(!ce){var a=se.call(ee);return a==="[object GeneratorFunction]"}if(!ue)return!1;if(typeof oe=="undefined"){var y=ae();oe=y?ue(y):!1}return ue(ee)===oe}},{"has-tostringtag/shams":353}],369:[function(E,pe,de){"use strict";var se=E("which-typed-array");pe.exports=function(ie){return!!se(ie)}},{"which-typed-array":420}],370:[function(E,pe,de){var se={}.toString;pe.exports=Array.isArray||function(ne){return se.call(ne)=="[object Array]"}},{}],371:[function(E,pe,de){(function(se){(function(){(function(ne,ie){typeof de=="object"&&typeof pe!="undefined"?pe.exports=ie(ne):typeof ve=="function"&&ve.amd?ve(ie):ie(ne)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof se!="undefined"?se:this,function(ne){"use strict";ne=ne||{};var ie=ne.Base64,ce="2.6.4",ue="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ae=function(Me){for(var Ge={},Fe=0,Je=Me.length;Fe>>6)+oe(128|Ge&63):oe(224|Ge>>>12&15)+oe(128|Ge>>>6&63)+oe(128|Ge&63)}else{var Ge=65536+(Me.charCodeAt(0)-55296)*1024+(Me.charCodeAt(1)-56320);return oe(240|Ge>>>18&7)+oe(128|Ge>>>12&63)+oe(128|Ge>>>6&63)+oe(128|Ge&63)}},ee=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,a=function(Me){return Me.replace(ee,re)},y=function(Me){var Ge=[0,2,1][Me.length%3],Fe=Me.charCodeAt(0)<<16|(Me.length>1?Me.charCodeAt(1):0)<<8|(Me.length>2?Me.charCodeAt(2):0),Je=[ue.charAt(Fe>>>18),ue.charAt(Fe>>>12&63),Ge>=2?"=":ue.charAt(Fe>>>6&63),Ge>=1?"=":ue.charAt(Fe&63)];return Je.join("")},x=ne.btoa&&typeof ne.btoa=="function"?function(Me){return ne.btoa(Me)}:function(Me){if(Me.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return Me.replace(/[\s\S]{1,3}/g,y)},b=function(Me){return x(a(String(Me)))},z=function(Me){return Me.replace(/[+\/]/g,function(Ge){return Ge=="+"?"-":"_"}).replace(/=/g,"")},te=function(Me,Ge){return Ge?z(b(Me)):b(Me)},le=function(Me){return te(Me,!0)},fe;ne.Uint8Array&&(fe=function(Me,Ge){for(var Fe="",Je=0,qe=Me.length;Je>>18)+ue.charAt(ze>>>12&63)+(typeof Ve!="undefined"?ue.charAt(ze>>>6&63):"=")+(typeof We!="undefined"?ue.charAt(ze&63):"=")}return Ge?z(Fe):Fe});var ge=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,me=function(Me){switch(Me.length){case 4:var Ge=(7&Me.charCodeAt(0))<<18|(63&Me.charCodeAt(1))<<12|(63&Me.charCodeAt(2))<<6|63&Me.charCodeAt(3),Fe=Ge-65536;return oe((Fe>>>10)+55296)+oe((Fe&1023)+56320);case 3:return oe((15&Me.charCodeAt(0))<<12|(63&Me.charCodeAt(1))<<6|63&Me.charCodeAt(2));default:return oe((31&Me.charCodeAt(0))<<6|63&Me.charCodeAt(1))}},he=function(Me){return Me.replace(ge,me)},Se=function(Me){var Ge=Me.length,Fe=Ge%4,Je=(Ge>0?ae[Me.charAt(0)]<<18:0)|(Ge>1?ae[Me.charAt(1)]<<12:0)|(Ge>2?ae[Me.charAt(2)]<<6:0)|(Ge>3?ae[Me.charAt(3)]:0),qe=[oe(Je>>>16),oe(Je>>>8&255),oe(Je&255)];return qe.length-=[0,0,2,1][Fe],qe.join("")},ye=ne.atob&&typeof ne.atob=="function"?function(Me){return ne.atob(Me)}:function(Me){return Me.replace(/\S{1,4}/g,Se)},Pe=function(Me){return ye(String(Me).replace(/[^A-Za-z0-9\+\/]/g,""))},we=function(Me){return he(ye(Me))},De=function(Me){return String(Me).replace(/[-_]/g,function(Ge){return Ge=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},Ee=function(Me){return we(De(Me))},Ae;ne.Uint8Array&&(Ae=function(Me){return Uint8Array.from(Pe(De(Me)),function(Ge){return Ge.charCodeAt(0)})});var Ce=function(){var Me=ne.Base64;return ne.Base64=ie,Me};if(ne.Base64={VERSION:ce,atob:Pe,btoa:x,fromBase64:Ee,toBase64:te,utob:a,encode:te,encodeURI:le,btou:he,decode:Ee,noConflict:Ce,fromUint8Array:fe,toUint8Array:Ae},typeof Object.defineProperty=="function"){var je=function(Me){return{value:Me,enumerable:!1,writable:!0,configurable:!0}};ne.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",je(function(){return Ee(this)})),Object.defineProperty(String.prototype,"toBase64",je(function(Me){return te(this,Me)})),Object.defineProperty(String.prototype,"toBase64URI",je(function(){return te(this,!0)}))}}return ne.Meteor&&(Base64=ne.Base64),typeof pe!="undefined"&&pe.exports?pe.exports.Base64=ne.Base64:typeof ve=="function"&&ve.amd&&ve([],function(){return ne.Base64}),{Base64:ne.Base64}})}).call(this)}).call(this,typeof dt!="undefined"?dt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],372:[function(E,pe,de){"use strict";pe.exports=ne;var se=Object.prototype.hasOwnProperty;function ne(ie,ce,ue){if(!ie)throw new TypeError("argument dest is required");if(!ce)throw new TypeError("argument src is required");return ue===void 0&&(ue=!0),Object.getOwnPropertyNames(ce).forEach(function(oe){if(!(!ue&&se.call(ie,oe))){var re=Object.getOwnPropertyDescriptor(ce,oe);Object.defineProperty(ie,oe,re)}}),ie}},{}],373:[function(E,pe,de){"use strict";E("core-js/modules/es.array.map.js"),E("core-js/modules/es.regexp.exec.js"),E("core-js/modules/es.string.replace.js"),E("core-js/modules/es.regexp.constructor.js"),E("core-js/modules/es.regexp.to-string.js");function se(){this._types=Object.create(null),this._extensions=Object.create(null);for(var ne=0;ne0)return oe(y);if(b==="number"&&isFinite(y))return x.long?ee(y):re(y);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(y))};function oe(y){if(y=String(y),!(y.length>100)){var x=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(y);if(x){var b=parseFloat(x[1]),z=(x[2]||"ms").toLowerCase();switch(z){case"years":case"year":case"yrs":case"yr":case"y":return b*ae;case"weeks":case"week":case"w":return b*ue;case"days":case"day":case"d":return b*ce;case"hours":case"hour":case"hrs":case"hr":case"h":return b*ie;case"minutes":case"minute":case"mins":case"min":case"m":return b*ne;case"seconds":case"second":case"secs":case"sec":case"s":return b*se;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return b;default:return}}}}function re(y){var x=Math.abs(y);return x>=ce?Math.round(y/ce)+"d":x>=ie?Math.round(y/ie)+"h":x>=ne?Math.round(y/ne)+"m":x>=se?Math.round(y/se)+"s":y+"ms"}function ee(y){var x=Math.abs(y);return x>=ce?a(y,x,ce,"day"):x>=ie?a(y,x,ie,"hour"):x>=ne?a(y,x,ne,"minute"):x>=se?a(y,x,se,"second"):y+" ms"}function a(y,x,b,z){var te=x>=b*1.5;return Math.round(y/b)+" "+z+(te?"s":"")}},{}],377:[function(E,pe,de){"use strict";var se=Object.getOwnPropertySymbols,ne=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable;function ce(ae){if(ae==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(ae)}function ue(){try{if(!Object.assign)return!1;var ae=new String("abc");if(ae[5]="de",Object.getOwnPropertyNames(ae)[0]==="5")return!1;for(var oe={},re=0;re<10;re++)oe["_"+String.fromCharCode(re)]=re;var ee=Object.getOwnPropertyNames(oe).map(function(y){return oe[y]});if(ee.join("")!=="0123456789")return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach(function(y){a[y]=y}),Object.keys(Object.assign({},a)).join("")==="abcdefghijklmnopqrst"}catch(y){return!1}}pe.exports=ue()?Object.assign:function(ae,oe){for(var re,ee=ce(ae),a,y=1;y2){var z=re.lastIndexOf("/");if(z!==re.length-1){z===-1?(re="",ee=0):(re=re.slice(0,z),ee=re.length-1-re.lastIndexOf("/")),a=b,y=0;continue}}else if(re.length===2||re.length===1){re="",ee=0,a=b,y=0;continue}}oe&&(re.length>0?re+="/..":re="..",ee=2)}else re.length>0?re+="/"+ae.slice(a+1,b):re=ae.slice(a+1,b),ee=b-a-1;a=b,y=0}else x===46&&y!==-1?++y:y=-1}return re}function ce(ae,oe){var re=oe.dir||oe.root,ee=oe.base||(oe.name||"")+(oe.ext||"");return re?re===oe.root?re+ee:re+ae+ee:ee}var ue={resolve:function(){for(var oe="",re=!1,ee,a=arguments.length-1;a>=-1&&!re;a--){var y;a>=0?y=arguments[a]:(ee===void 0&&(ee=se.cwd()),y=ee),ne(y),y.length!==0&&(oe=y+"/"+oe,re=y.charCodeAt(0)===47)}return oe=ie(oe,!re),re?oe.length>0?"/"+oe:"/":oe.length>0?oe:"."},normalize:function(oe){if(ne(oe),oe.length===0)return".";var re=oe.charCodeAt(0)===47,ee=oe.charCodeAt(oe.length-1)===47;return oe=ie(oe,!re),oe.length===0&&!re&&(oe="."),oe.length>0&&ee&&(oe+="/"),re?"/"+oe:oe},isAbsolute:function(oe){return ne(oe),oe.length>0&&oe.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var oe,re=0;re0&&(oe===void 0?oe=ee:oe+="/"+ee)}return oe===void 0?".":ue.normalize(oe)},relative:function(oe,re){if(ne(oe),ne(re),oe===re||(oe=ue.resolve(oe),re=ue.resolve(re),oe===re))return"";for(var ee=1;eete){if(re.charCodeAt(x+fe)===47)return re.slice(x+fe+1);if(fe===0)return re.slice(x+fe)}else y>te&&(oe.charCodeAt(ee+fe)===47?le=fe:fe===0&&(le=0));break}var ge=oe.charCodeAt(ee+fe),me=re.charCodeAt(x+fe);if(ge!==me)break;ge===47&&(le=fe)}var he="";for(fe=ee+le+1;fe<=a;++fe)(fe===a||oe.charCodeAt(fe)===47)&&(he.length===0?he+="..":he+="/..");return he.length>0?he+re.slice(x+le):(x+=le,re.charCodeAt(x)===47&&++x,re.slice(x))},_makeLong:function(oe){return oe},dirname:function(oe){if(ne(oe),oe.length===0)return".";for(var re=oe.charCodeAt(0),ee=re===47,a=-1,y=!0,x=oe.length-1;x>=1;--x)if(re=oe.charCodeAt(x),re===47){if(!y){a=x;break}}else y=!1;return a===-1?ee?"/":".":ee&&a===1?"//":oe.slice(0,a)},basename:function(oe,re){if(re!==void 0&&typeof re!="string")throw new TypeError('"ext" argument must be a string');ne(oe);var ee=0,a=-1,y=!0,x;if(re!==void 0&&re.length>0&&re.length<=oe.length){if(re.length===oe.length&&re===oe)return"";var b=re.length-1,z=-1;for(x=oe.length-1;x>=0;--x){var te=oe.charCodeAt(x);if(te===47){if(!y){ee=x+1;break}}else z===-1&&(y=!1,z=x+1),b>=0&&(te===re.charCodeAt(b)?--b===-1&&(a=x):(b=-1,a=z))}return ee===a?a=z:a===-1&&(a=oe.length),oe.slice(ee,a)}else{for(x=oe.length-1;x>=0;--x)if(oe.charCodeAt(x)===47){if(!y){ee=x+1;break}}else a===-1&&(y=!1,a=x+1);return a===-1?"":oe.slice(ee,a)}},extname:function(oe){ne(oe);for(var re=-1,ee=0,a=-1,y=!0,x=0,b=oe.length-1;b>=0;--b){var z=oe.charCodeAt(b);if(z===47){if(!y){ee=b+1;break}continue}a===-1&&(y=!1,a=b+1),z===46?re===-1?re=b:x!==1&&(x=1):re!==-1&&(x=-1)}return re===-1||a===-1||x===0||x===1&&re===a-1&&re===ee+1?"":oe.slice(re,a)},format:function(oe){if(oe===null||typeof oe!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof oe);return ce("/",oe)},parse:function(oe){ne(oe);var re={root:"",dir:"",base:"",ext:"",name:""};if(oe.length===0)return re;var ee=oe.charCodeAt(0),a=ee===47,y;a?(re.root="/",y=1):y=0;for(var x=-1,b=0,z=-1,te=!0,le=oe.length-1,fe=0;le>=y;--le){if(ee=oe.charCodeAt(le),ee===47){if(!te){b=le+1;break}continue}z===-1&&(te=!1,z=le+1),ee===46?x===-1?x=le:fe!==1&&(fe=1):x!==-1&&(fe=-1)}return x===-1||z===-1||fe===0||fe===1&&x===z-1&&x===b+1?z!==-1&&(b===0&&a?re.base=re.name=oe.slice(1,z):re.base=re.name=oe.slice(b,z)):(b===0&&a?(re.name=oe.slice(1,x),re.base=oe.slice(1,z)):(re.name=oe.slice(b,x),re.base=oe.slice(b,z)),re.ext=oe.slice(x,z)),b>0?re.dir=oe.slice(0,b-1):a&&(re.dir="/"),re},sep:"/",delimiter:":",win32:null,posix:null};ue.posix=ue,pe.exports=ue}).call(this)}).call(this,E("_process"))},{_process:467}],379:[function(E,pe,de){(function(se){(function(){(function(){"use strict";var ne={function:!0,object:!0},ie=ne[typeof window]&&window||this,ce=ie,ue=ne[typeof de]&&de,ae=ne[typeof pe]&&pe&&!pe.nodeType&&pe,oe=ue&&ae&&typeof se=="object"&&se;oe&&(oe.global===oe||oe.window===oe||oe.self===oe)&&(ie=oe);var re=Math.pow(2,53)-1,ee=/\bOpera/,a=this,y=Object.prototype,x=y.hasOwnProperty,b=y.toString;function z(Ee){return Ee=String(Ee),Ee.charAt(0).toUpperCase()+Ee.slice(1)}function te(Ee,Ae,Ce){var je={"10.0":"10","6.4":"10 Technical Preview","6.3":"8.1","6.2":"8","6.1":"Server 2008 R2 / 7","6.0":"Server 2008 / Vista","5.2":"Server 2003 / XP 64-bit","5.1":"XP","5.01":"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};return Ae&&Ce&&/^Win/i.test(Ee)&&!/^Windows Phone /i.test(Ee)&&(je=je[/[\d.]+$/.exec(Ee)])&&(Ee="Windows "+je),Ee=String(Ee),Ae&&Ce&&(Ee=Ee.replace(RegExp(Ae,"i"),Ce)),Ee=fe(Ee.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0]),Ee}function le(Ee,Ae){var Ce=-1,je=Ee?Ee.length:0;if(typeof je=="number"&&je>-1&&je<=re)for(;++Ce3&&"WebKit"||/\bOpera\b/.test(Te)&&(/\bOPR\b/.test(Ee)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(Ee)&&!/^(?:Trident|EdgeHTML)$/.test(Oe)&&"WebKit"||!Oe&&/\bMSIE\b/i.test(Ee)&&(Ke=="Mac OS"?"Tasman":"Trident")||Oe=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(Te)&&"NetFront")&&(Oe=[Re]),Te=="IE"&&(Re=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(Ee)||0)[1])?(Te+=" Mobile",Ke="Windows Phone "+(/\+$/.test(Re)?Re:Re+".x"),Le.unshift("desktop mode")):/\bWPDesktop\b/i.test(Ee)?(Te="IE Mobile",Ke="Windows Phone 8.x",Le.unshift("desktop mode"),Ze||(Ze=(/\brv:([\d.]+)/.exec(Ee)||0)[1])):Te!="IE"&&Oe=="Trident"&&(Re=/\brv:([\d.]+)/.exec(Ee))&&(Te&&Le.push("identifying as "+Te+(Ze?" "+Ze:"")),Te="IE",Ze=Re[1]),et){if(he(Ae,"global"))if(ze&&(Re=ze.lang.System,$e=Re.getProperty("os.arch"),Ke=Ke||Re.getProperty("os.name")+" "+Re.getProperty("os.version")),Ue){try{Ze=Ae.require("ringo/engine").version.join("."),Te="RingoJS"}catch(at){(Re=Ae.system)&&Re.global.system==Ae.system&&(Te="Narwhal",Ke||(Ke=Re[0].os||null))}Te||(Te="Rhino")}else typeof Ae.process=="object"&&!Ae.process.browser&&(Re=Ae.process)&&(typeof Re.versions=="object"&&(typeof Re.versions.electron=="string"?(Le.push("Node "+Re.versions.node),Te="Electron",Ze=Re.versions.electron):typeof Re.versions.nw=="string"&&(Le.push("Chromium "+Ze,"Node "+Re.versions.node),Te="NW.js",Ze=Re.versions.nw)),Te||(Te="Node.js",$e=Re.arch,Ke=Re.platform,Ze=/[\d.]+/.exec(Re.version),Ze=Ze?Ze[0]:null));else me(Re=Ae.runtime)==qe?(Te="Adobe AIR",Ke=Re.flash.system.Capabilities.os):me(Re=Ae.phantom)==We?(Te="PhantomJS",Ze=(Re=Re.version||null)&&Re.major+"."+Re.minor+"."+Re.patch):typeof ut.documentMode=="number"&&(Re=/\bTrident\/(\d+)/i.exec(Ee))?(Ze=[Ze,ut.documentMode],(Re=+Re[1]+4)!=Ze[1]&&(Le.push("IE "+Ze[1]+" mode"),Oe&&(Oe[1]=""),Ze[1]=Re),Ze=Te=="IE"?String(Ze[1].toFixed(1)):Ze[0]):typeof ut.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(Te)&&(Le.push("masking as "+Te+" "+Ze),Te="IE",Ze="11.0",Oe=["Trident"],Ke="Windows");Ke=Ke&&fe(Ke)}if(Ze&&(Re=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(Ze)||/(?:alpha|beta)(?: ?\d)?/i.exec(Ee+";"+(et&&je.appMinorVersion))||/\bMinefield\b/i.test(Ee)&&"a")&&(Ne=/b/i.test(Re)?"beta":"alpha",Ze=Ze.replace(RegExp(Re+"\\+?$"),"")+(Ne=="beta"?Qe:ot)+(/\d+\+?/.exec(Re)||"")),Te=="Fennec"||Te=="Firefox"&&/\b(?:Android|Firefox OS|KaiOS)\b/.test(Ke))Te="Firefox Mobile";else if(Te=="Maxthon"&&Ze)Ze=Ze.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(xe))xe=="Xbox 360"&&(Ke=null),xe=="Xbox 360"&&/\bIEMobile\b/.test(Ee)&&Le.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(Te)||Te&&!xe&&!/Browser|Mobi/.test(Te))&&(Ke=="Windows CE"||/Mobi/i.test(Ee)))Te+=" Mobile";else if(Te=="IE"&&et)try{Ae.external===null&&Le.unshift("platform preview")}catch(at){Le.unshift("embedded")}else(/\bBlackBerry\b/.test(xe)||/\bBB10\b/.test(Ee))&&(Re=(RegExp(xe.replace(/ +/g," *")+"/([.\\d]+)","i").exec(Ee)||0)[1]||Ze)?(Re=[Re,/BB10/.test(Ee)],Ke=(Re[1]?(xe=null,Ie="BlackBerry"):"Device Software")+" "+Re[0],Ze=null):this!=ge&&xe!="Wii"&&(et&&Ye||/Opera/.test(Te)&&/\b(?:MSIE|Firefox)\b/i.test(Ee)||Te=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(Ke)||Te=="IE"&&(Ke&&!/^Win/.test(Ke)&&Ze>5.5||/\bWindows XP\b/.test(Ke)&&Ze>8||Ze==8&&!/\bTrident\b/.test(Ee)))&&!ee.test(Re=we.call(ge,Ee.replace(ee,"")+";"))&&Re.name&&(Re="ing as "+Re.name+((Re=Re.version)?" "+Re:""),ee.test(Te)?(/\bIE\b/.test(Re)&&Ke=="Mac OS"&&(Ke=null),Re="identify"+Re):(Re="mask"+Re,He?Te=fe(He.replace(/([a-z])([A-Z])/g,"$1 $2")):Te="Opera",/\bIE\b/.test(Re)&&(Ke=null),et||(Ze=null)),Oe=["Presto"],Le.push(Re));(Re=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(Ee)||0)[1])&&(Re=[parseFloat(Re.replace(/\.(\d)$/,".0$1")),Re],Te=="Safari"&&Re[1].slice(-1)=="+"?(Te="WebKit Nightly",Ne="alpha",Ze=Re[1].slice(0,-1)):(Ze==Re[1]||Ze==(Re[2]=(/\bSafari\/([\d.]+\+?)/i.exec(Ee)||0)[1]))&&(Ze=null),Re[1]=(/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(Ee)||0)[1],Re[0]==537.36&&Re[2]==537.36&&parseFloat(Re[1])>=28&&Oe=="WebKit"&&(Oe=["Blink"]),!et||!Fe&&!Re[1]?(Oe&&(Oe[1]="like Safari"),Re=(Re=Re[0],Re<400?1:Re<500?2:Re<526?3:Re<533?4:Re<534?"4+":Re<535?5:Re<537?6:Re<538?7:Re<601?8:Re<602?9:Re<604?10:Re<606?11:Re<608?12:"12")):(Oe&&(Oe[1]="like Chrome"),Re=Re[1]||(Re=Re[0],Re<530?1:Re<532?2:Re<532.05?3:Re<533?4:Re<534.03?5:Re<534.07?6:Re<534.1?7:Re<534.13?8:Re<534.16?9:Re<534.24?10:Re<534.3?11:Re<535.01?12:Re<535.02?"13+":Re<535.07?15:Re<535.11?16:Re<535.19?17:Re<536.05?18:Re<536.1?19:Re<537.01?20:Re<537.11?"21+":Re<537.13?23:Re<537.18?24:Re<537.24?25:Re<537.36?26:Oe!="Blink"?"27":"28")),Oe&&(Oe[1]+=" "+(Re+=typeof Re=="number"?".x":/[.+]/.test(Re)?"":"+")),Te=="Safari"&&(!Ze||parseInt(Ze)>45)?Ze=Re:Te=="Chrome"&&/\bHeadlessChrome/i.test(Ee)&&Le.unshift("headless")),Te=="Opera"&&(Re=/\bzbov|zvav$/.exec(Ke))?(Te+=" ",Le.unshift("desktop mode"),Re=="zvav"?(Te+="Mini",Ze=null):Te+="Mobile",Ke=Ke.replace(RegExp(" *"+Re+"$"),"")):Te=="Safari"&&/\bChrome\b/.exec(Oe&&Oe[1])?(Le.unshift("desktop mode"),Te="Chrome Mobile",Ze=null,/\bOS X\b/.test(Ke)?(Ie="Apple",Ke="iOS 4.3+"):Ke=null):/\bSRWare Iron\b/.test(Te)&&!Ze&&(Ze=ht("Chrome")),Ze&&Ze.indexOf(Re=/[\d.]+$/.exec(Ke))==0&&Ee.indexOf("/"+Re+"-")>-1&&(Ke=Pe(Ke.replace(Re,""))),Ke&&Ke.indexOf(Te)!=-1&&!RegExp(Te+" OS").test(Ke)&&(Ke=Ke.replace(RegExp(" *"+Se(Te)+" *"),"")),Oe&&!/\b(?:Avant|Nook)\b/.test(Te)&&(/Browser|Lunascape|Maxthon/.test(Te)||Te!="Safari"&&/^iOS/.test(Ke)&&/\bSafari\b/.test(Oe[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(Te)&&Oe[1])&&(Re=Oe[Oe.length-1])&&Le.push(Re),Le.length&&(Le=["("+Le.join("; ")+")"]),Ie&&xe&&xe.indexOf(Ie)<0&&Le.push("on "+Ie),xe&&Le.push((/^on /.test(Le[Le.length-1])?"":"on ")+xe),Ke&&(Re=/ ([\d.+]+)$/.exec(Ke),Be=Re&&Ke.charAt(Ke.length-Re[0].length-1)=="/",Ke={architecture:32,family:Re&&!Be?Ke.replace(Re[0],""):Ke,version:Re?Re[1]:null,toString:function(){var at=this.version;return this.family+(at&&!Be?" "+at:"")+(this.architecture==64?" 64-bit":"")}}),(Re=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec($e))&&!/\bi686\b/i.test($e)?(Ke&&(Ke.architecture=64,Ke.family=Ke.family.replace(RegExp(" *"+Re),"")),Te&&(/\bWOW64\b/i.test(Ee)||et&&/\w(?:86|32)$/.test(je.cpuClass||je.platform)&&!/\bWin64; x64\b/i.test(Ee))&&Le.unshift("32-bit")):Ke&&/^OS X/.test(Ke.family)&&Te=="Chrome"&&parseFloat(Ze)>=39&&(Ke.architecture=64),Ee||(Ee=null);var pt={};return pt.description=Ee,pt.layout=Oe&&Oe[0],pt.manufacturer=Ie,pt.name=Te,pt.prerelease=Ne,pt.product=xe,pt.ua=Ee,pt.version=Te&&Ze,pt.os=Ke||{architecture:null,family:null,version:null,toString:function(){return"null"}},pt.parse=we,pt.toString=lt,pt.version&&Le.unshift(Ze),pt.name&&Le.unshift(Te),Ke&&Te&&!(Ke==String(Ke).split(" ")[0]&&(Ke==Te.split(" ")[0]||xe))&&Le.push(xe?"("+Ke+")":"on "+Ke),Le.length&&(pt.description=Le.join(" ")),pt}var De=we();typeof ve=="function"&&typeof ve.amd=="object"&&ve.amd?(ie.platform=De,ve(function(){return De})):ue&&ae?ge(De,function(Ee,Ae){ue[Ae]=Ee}):ie.platform=De}).call(this)}).call(this)}).call(this,typeof dt!="undefined"?dt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],380:[function(E,pe,de){(function(se){(function(){"use strict";typeof se=="undefined"||!se.version||se.version.indexOf("v0.")===0||se.version.indexOf("v1.")===0&&se.version.indexOf("v1.8.")!==0?pe.exports={nextTick:ne}:pe.exports=se;function ne(ie,ce,ue,ae){if(typeof ie!="function")throw new TypeError('"callback" argument must be a function');var oe=arguments.length,re,ee;switch(oe){case 0:case 1:return se.nextTick(ie);case 2:return se.nextTick(function(){ie.call(null,ce)});case 3:return se.nextTick(function(){ie.call(null,ce,ue)});case 4:return se.nextTick(function(){ie.call(null,ce,ue,ae)});default:for(re=new Array(oe-1),ee=0;ee1)for(var ge=1;ge= 0x80 (not a basic code point)","invalid-input":"Invalid input"},he=re-ee,Se=Math.floor,ye=String.fromCharCode,Pe;function we(Ve){throw new RangeError(me[Ve])}function De(Ve,We){for(var ze=Ve.length,Ue=[];ze--;)Ue[ze]=We(Ve[ze]);return Ue}function Ee(Ve,We){var ze=Ve.split("@"),Ue="";ze.length>1&&(Ue=ze[0]+"@",Ve=ze[1]),Ve=Ve.replace(ge,".");var ot=Ve.split("."),Qe=De(ot,We).join(".");return Ue+Qe}function Ae(Ve){for(var We=[],ze=0,Ue=Ve.length,ot,Qe;ze=55296&&ot<=56319&&ze65535&&(We-=65536,ze+=ye(We>>>10&1023|55296),We=56320|We&1023),ze+=ye(We),ze}).join("")}function je(Ve){return Ve-48<10?Ve-22:Ve-65<26?Ve-65:Ve-97<26?Ve-97:re}function Me(Ve,We){return Ve+22+75*(Ve<26)-((We!=0)<<5)}function Ge(Ve,We,ze){var Ue=0;for(Ve=ze?Se(Ve/x):Ve>>1,Ve+=Se(Ve/We);Ve>he*a>>1;Ue+=re)Ve=Se(Ve/he);return Se(Ue+(he+1)*Ve/(Ve+y))}function Fe(Ve){var We=[],ze=Ve.length,Ue,ot=0,Qe=z,ut=b,Ye,He,Re,$e,Le,Ne,et,Ze,Be;for(Ye=Ve.lastIndexOf(te),Ye<0&&(Ye=0),He=0;He=128&&we("not-basic"),We.push(Ve.charCodeAt(He));for(Re=Ye>0?Ye+1:0;Re=ze&&we("invalid-input"),et=je(Ve.charCodeAt(Re++)),(et>=re||et>Se((oe-ot)/Le))&&we("overflow"),ot+=et*Le,Ze=Ne<=ut?ee:Ne>=ut+a?a:Ne-ut,!(etSe(oe/Be)&&we("overflow"),Le*=Be;Ue=We.length+1,ut=Ge(ot-$e,Ue,$e==0),Se(ot/Ue)>oe-Qe&&we("overflow"),Qe+=Se(ot/Ue),ot%=Ue,We.splice(ot++,0,Qe)}return Ce(We)}function Je(Ve){var We,ze,Ue,ot,Qe,ut,Ye,He,Re,$e,Le,Ne=[],et,Ze,Be,Oe;for(Ve=Ae(Ve),et=Ve.length,We=z,ze=0,Qe=b,ut=0;ut=We&&LeSe((oe-ze)/Ze)&&we("overflow"),ze+=(Ye-We)*Ze,We=Ye,ut=0;utoe&&we("overflow"),Le==We){for(He=ze,Re=re;$e=Re<=Qe?ee:Re>=Qe+a?a:Re-Qe,!(He<$e);Re+=re)Oe=He-$e,Be=re-$e,Ne.push(ye(Me($e+Oe%Be,0))),He=Se(Oe/Be);Ne.push(ye(Me(He,0))),Qe=Ge(ze,Ze,Ue==ot),ze=0,++Ue}++ze,++We}return Ne.join("")}function qe(Ve){return Ee(Ve,function(We){return le.test(We)?Fe(We.slice(4).toLowerCase()):We})}function Xe(Ve){return Ee(Ve,function(We){return fe.test(We)?"xn--"+Je(We):We})}if(ae={version:"1.4.1",ucs2:{decode:Ae,encode:Ce},decode:Fe,encode:Je,toASCII:Xe,toUnicode:qe},typeof ve=="function"&&typeof ve.amd=="object"&&ve.amd)ve("punycode",function(){return ae});else if(ie&&ce)if(pe.exports==ie)ce.exports=ae;else for(Pe in ae)ae.hasOwnProperty(Pe)&&(ie[Pe]=ae[Pe]);else ne.punycode=ae})(this)}).call(this)}).call(this,typeof dt!="undefined"?dt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],383:[function(E,pe,de){"use strict";function se(ie,ce){return Object.prototype.hasOwnProperty.call(ie,ce)}pe.exports=function(ie,ce,ue,ae){ce=ce||"&",ue=ue||"=";var oe={};if(typeof ie!="string"||ie.length===0)return oe;var re=/\+/g;ie=ie.split(ce);var ee=1e3;ae&&typeof ae.maxKeys=="number"&&(ee=ae.maxKeys);var a=ie.length;ee>0&&a>ee&&(a=ee);for(var y=0;y=0?(z=x.substr(0,b),te=x.substr(b+1)):(z=x,te=""),le=decodeURIComponent(z),fe=decodeURIComponent(te),se(oe,le)?ne(oe[le])?oe[le].push(fe):oe[le]=[oe[le],fe]:oe[le]=fe}return oe};var ne=Array.isArray||function(ie){return Object.prototype.toString.call(ie)==="[object Array]"}},{}],384:[function(E,pe,de){"use strict";var se=function(ue){switch(typeof ue){case"string":return ue;case"boolean":return ue?"true":"false";case"number":return isFinite(ue)?ue:"";default:return""}};pe.exports=function(ue,ae,oe,re){return ae=ae||"&",oe=oe||"=",ue===null&&(ue=void 0),typeof ue=="object"?ie(ce(ue),function(ee){var a=encodeURIComponent(se(ee))+oe;return ne(ue[ee])?ie(ue[ee],function(y){return a+encodeURIComponent(se(y))}).join(ae):a+encodeURIComponent(se(ue[ee]))}).join(ae):re?encodeURIComponent(se(re))+oe+encodeURIComponent(se(ue)):""};var ne=Array.isArray||function(ue){return Object.prototype.toString.call(ue)==="[object Array]"};function ie(ue,ae){if(ue.map)return ue.map(ae);for(var oe=[],re=0;re0?(typeof Ne!="string"&&!Oe.objectMode&&Object.getPrototypeOf(Ne)!==ee.prototype&&(Ne=y(Ne)),Ze?Oe.endEmitted?Le.emit("error",new Error("stream.unshift() after end event")):we(Le,Oe,Ne,!0):Oe.ended?Le.emit("error",new Error("stream.push() after EOF")):(Oe.reading=!1,Oe.decoder&&!et?(Ne=Oe.decoder.write(Ne),Oe.objectMode||Ne.length!==0?we(Le,Oe,Ne,!1):Je(Le,Oe)):we(Le,Oe,Ne,!1))):Ze||(Oe.reading=!1)}return Ee(Oe)}function we(Le,Ne,et,Ze){Ne.flowing&&Ne.length===0&&!Ne.sync?(Le.emit("data",et),Le.read(0)):(Ne.length+=Ne.objectMode?1:et.length,Ze?Ne.buffer.unshift(et):Ne.buffer.push(et),Ne.needReadable&&Ge(Le)),Je(Le,Ne)}function De(Le,Ne){var et;return!x(Ne)&&typeof Ne!="string"&&Ne!==void 0&&!Le.objectMode&&(et=new TypeError("Invalid non-string/buffer chunk")),et}function Ee(Le){return!Le.ended&&(Le.needReadable||Le.length=Ae?Le=Ae:(Le--,Le|=Le>>>1,Le|=Le>>>2,Le|=Le>>>4,Le|=Le>>>8,Le|=Le>>>16,Le++),Le}function je(Le,Ne){return Le<=0||Ne.length===0&&Ne.ended?0:Ne.objectMode?1:Le!==Le?Ne.flowing&&Ne.length?Ne.buffer.head.data.length:Ne.length:(Le>Ne.highWaterMark&&(Ne.highWaterMark=Ce(Le)),Le<=Ne.length?Le:Ne.ended?Ne.length:(Ne.needReadable=!0,0))}ye.prototype.read=function(Le){te("read",Le),Le=parseInt(Le,10);var Ne=this._readableState,et=Le;if(Le!==0&&(Ne.emittedReadable=!1),Le===0&&Ne.needReadable&&(Ne.length>=Ne.highWaterMark||Ne.ended))return te("read: emitReadable",Ne.length,Ne.ended),Ne.length===0&&Ne.ended?He(this):Ge(this),null;if(Le=je(Le,Ne),Le===0&&Ne.ended)return Ne.length===0&&He(this),null;var Ze=Ne.needReadable;te("need readable",Ze),(Ne.length===0||Ne.length-Le0?Be=ot(Le,Ne):Be=null,Be===null?(Ne.needReadable=!0,Le=0):Ne.length-=Le,Ne.length===0&&(Ne.ended||(Ne.needReadable=!0),et!==Le&&Ne.ended&&He(this)),Be!==null&&this.emit("data",Be),Be};function Me(Le,Ne){if(!Ne.ended){if(Ne.decoder){var et=Ne.decoder.end();et&&et.length&&(Ne.buffer.push(et),Ne.length+=Ne.objectMode?1:et.length)}Ne.ended=!0,Ge(Le)}}function Ge(Le){var Ne=Le._readableState;Ne.needReadable=!1,Ne.emittedReadable||(te("emitReadable",Ne.flowing),Ne.emittedReadable=!0,Ne.sync?ie.nextTick(Fe,Le):Fe(Le))}function Fe(Le){te("emit readable"),Le.emit("readable"),Ue(Le)}function Je(Le,Ne){Ne.readingMore||(Ne.readingMore=!0,ie.nextTick(qe,Le,Ne))}function qe(Le,Ne){for(var et=Ne.length;!Ne.reading&&!Ne.flowing&&!Ne.ended&&Ne.length1&&$e(Ze.pipes,Le)!==-1)&&!Ke&&(te("false write response, pause",et._readableState.awaitDrain),et._readableState.awaitDrain++,ke=!0),et.pause())}function mt(pt){te("onerror",pt),lt(),Le.removeListener("error",mt),oe(Le,"error")===0&&Le.emit("error",pt)}he(Le,"error",mt);function ct(){Le.removeListener("finish",ht),lt()}Le.once("close",ct);function ht(){te("onfinish"),Le.removeListener("close",ct),lt()}Le.once("finish",ht);function lt(){te("unpipe"),et.unpipe(Le)}return Le.emit("pipe",et),Ze.flowing||(te("pipe resume"),et.resume()),Le};function Xe(Le){return function(){var Ne=Le._readableState;te("pipeOnDrain",Ne.awaitDrain),Ne.awaitDrain&&Ne.awaitDrain--,Ne.awaitDrain===0&&oe(Le,"data")&&(Ne.flowing=!0,Ue(Le))}}ye.prototype.unpipe=function(Le){var Ne=this._readableState,et={hasUnpiped:!1};if(Ne.pipesCount===0)return this;if(Ne.pipesCount===1)return Le&&Le!==Ne.pipes?this:(Le||(Le=Ne.pipes),Ne.pipes=null,Ne.pipesCount=0,Ne.flowing=!1,Le&&Le.emit("unpipe",this,et),this);if(!Le){var Ze=Ne.pipes,Be=Ne.pipesCount;Ne.pipes=null,Ne.pipesCount=0,Ne.flowing=!1;for(var Oe=0;Oe=Ne.length?(Ne.decoder?et=Ne.buffer.join(""):Ne.buffer.length===1?et=Ne.buffer.head.data:et=Ne.buffer.concat(Ne.length),Ne.buffer.clear()):et=Qe(Le,Ne.buffer,Ne.decoder),et}function Qe(Le,Ne,et){var Ze;return LeOe.length?Oe.length:Le;if(Te===Oe.length?Be+=Oe:Be+=Oe.slice(0,Le),Le-=Te,Le===0){Te===Oe.length?(++Ze,et.next?Ne.head=et.next:Ne.head=Ne.tail=null):(Ne.head=et,et.data=Oe.slice(Te));break}++Ze}return Ne.length-=Ze,Be}function Ye(Le,Ne){var et=ee.allocUnsafe(Le),Ze=Ne.head,Be=1;for(Ze.data.copy(et),Le-=Ze.data.length;Ze=Ze.next;){var Oe=Ze.data,Te=Le>Oe.length?Oe.length:Le;if(Oe.copy(et,et.length-Le,0,Te),Le-=Te,Le===0){Te===Oe.length?(++Be,Ze.next?Ne.head=Ze.next:Ne.head=Ne.tail=null):(Ne.head=Ze,Ze.data=Oe.slice(Te));break}++Be}return Ne.length-=Be,et}function He(Le){var Ne=Le._readableState;if(Ne.length>0)throw new Error('"endReadable()" called on non-empty stream');Ne.endEmitted||(Ne.ended=!0,ie.nextTick(Re,Ne,Le))}function Re(Le,Ne){!Le.endEmitted&&Le.length===0&&(Le.endEmitted=!0,Ne.readable=!1,Ne.emit("end"))}function $e(Le,Ne){for(var et=0,Ze=Le.length;et-1?ie:ce.nextTick,re;he.WritableState=ge;var ee=Object.create(E("core-util-is"));ee.inherits=E("inherits");var a={deprecate:E("util-deprecate")},y=E("./internal/streams/stream"),x=E("safe-buffer").Buffer,b=ne.Uint8Array||function(){};function z(ze){return x.from(ze)}function te(ze){return x.isBuffer(ze)||ze instanceof b}var le=E("./internal/streams/destroy");ee.inherits(he,y);function fe(){}function ge(ze,Ue){re=re||E("./_stream_duplex"),ze=ze||{};var ot=Ue instanceof re;this.objectMode=!!ze.objectMode,ot&&(this.objectMode=this.objectMode||!!ze.writableObjectMode);var Qe=ze.highWaterMark,ut=ze.writableHighWaterMark,Ye=this.objectMode?16:16*1024;Qe||Qe===0?this.highWaterMark=Qe:ot&&(ut||ut===0)?this.highWaterMark=ut:this.highWaterMark=Ye,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var He=ze.decodeStrings===!1;this.decodeStrings=!He,this.defaultEncoding=ze.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Re){Ce(Ue,Re)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new ae(this)}ge.prototype.getBuffer=function(){for(var Ue=this.bufferedRequest,ot=[];Ue;)ot.push(Ue),Ue=Ue.next;return ot},function(){try{Object.defineProperty(ge.prototype,"buffer",{get:a.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(ze){}}();var me;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(me=Function.prototype[Symbol.hasInstance],Object.defineProperty(he,Symbol.hasInstance,{value:function(ze){return me.call(this,ze)?!0:this!==he?!1:ze&&ze._writableState instanceof ge}})):me=function(ze){return ze instanceof this};function he(ze){if(re=re||E("./_stream_duplex"),!me.call(he,this)&&!(this instanceof re))return new he(ze);this._writableState=new ge(ze,this),this.writable=!0,ze&&(typeof ze.write=="function"&&(this._write=ze.write),typeof ze.writev=="function"&&(this._writev=ze.writev),typeof ze.destroy=="function"&&(this._destroy=ze.destroy),typeof ze.final=="function"&&(this._final=ze.final)),y.call(this)}he.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function Se(ze,Ue){var ot=new Error("write after end");ze.emit("error",ot),ce.nextTick(Ue,ot)}function ye(ze,Ue,ot,Qe){var ut=!0,Ye=!1;return ot===null?Ye=new TypeError("May not write null values to stream"):typeof ot!="string"&&ot!==void 0&&!Ue.objectMode&&(Ye=new TypeError("Invalid non-string/buffer chunk")),Ye&&(ze.emit("error",Ye),ce.nextTick(Qe,Ye),ut=!1),ut}he.prototype.write=function(ze,Ue,ot){var Qe=this._writableState,ut=!1,Ye=!Qe.objectMode&&te(ze);return Ye&&!x.isBuffer(ze)&&(ze=z(ze)),typeof Ue=="function"&&(ot=Ue,Ue=null),Ye?Ue="buffer":Ue||(Ue=Qe.defaultEncoding),typeof ot!="function"&&(ot=fe),Qe.ended?Se(this,ot):(Ye||ye(this,Qe,ze,ot))&&(Qe.pendingcb++,ut=we(this,Qe,Ye,ze,Ue,ot)),ut},he.prototype.cork=function(){var ze=this._writableState;ze.corked++},he.prototype.uncork=function(){var ze=this._writableState;ze.corked&&(ze.corked--,!ze.writing&&!ze.corked&&!ze.finished&&!ze.bufferProcessing&&ze.bufferedRequest&&Ge(this,ze))},he.prototype.setDefaultEncoding=function(Ue){if(typeof Ue=="string"&&(Ue=Ue.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Ue+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+Ue);return this._writableState.defaultEncoding=Ue,this};function Pe(ze,Ue,ot){return!ze.objectMode&&ze.decodeStrings!==!1&&typeof Ue=="string"&&(Ue=x.from(Ue,ot)),Ue}Object.defineProperty(he.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function we(ze,Ue,ot,Qe,ut,Ye){if(!ot){var He=Pe(Ue,Qe,ut);Qe!==He&&(ot=!0,ut="buffer",Qe=He)}var Re=Ue.objectMode?1:Qe.length;Ue.length+=Re;var $e=Ue.length0?this.tail.next=re:this.head=re,this.tail=re,++this.length},ue.prototype.unshift=function(oe){var re={data:oe,next:this.head};this.length===0&&(this.tail=re),this.head=re,++this.length},ue.prototype.shift=function(){if(this.length!==0){var oe=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,oe}},ue.prototype.clear=function(){this.head=this.tail=null,this.length=0},ue.prototype.join=function(oe){if(this.length===0)return"";for(var re=this.head,ee=""+re.data;re=re.next;)ee+=oe+re.data;return ee},ue.prototype.concat=function(oe){if(this.length===0)return ne.alloc(0);if(this.length===1)return this.head.data;for(var re=ne.allocUnsafe(oe>>>0),ee=this.head,a=0;ee;)ce(ee.data,re,a),a+=ee.data.length,ee=ee.next;return re},ue}(),ie&&ie.inspect&&ie.inspect.custom&&(pe.exports.prototype[ie.inspect.custom]=function(){var ue=ie.inspect({length:this.length});return this.constructor.name+" "+ue})},{"safe-buffer":396,util:89}],392:[function(E,pe,de){"use strict";var se=E("process-nextick-args");function ne(ue,ae){var oe=this,re=this._readableState&&this._readableState.destroyed,ee=this._writableState&&this._writableState.destroyed;return re||ee?(ae?ae(ue):ue&&(!this._writableState||!this._writableState.errorEmitted)&&se.nextTick(ce,this,ue),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(ue||null,function(a){!ae&&a?(se.nextTick(ce,oe,a),oe._writableState&&(oe._writableState.errorEmitted=!0)):ae&&ae(a)}),this)}function ie(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function ce(ue,ae){ue.emit("error",ae)}pe.exports={destroy:ne,undestroy:ie}},{"process-nextick-args":380}],393:[function(E,pe,de){pe.exports=E("events").EventEmitter},{events:344}],394:[function(E,pe,de){de=pe.exports=E("./lib/_stream_readable.js"),de.Stream=de,de.Readable=de,de.Writable=E("./lib/_stream_writable.js"),de.Duplex=E("./lib/_stream_duplex.js"),de.Transform=E("./lib/_stream_transform.js"),de.PassThrough=E("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":386,"./lib/_stream_passthrough.js":387,"./lib/_stream_readable.js":388,"./lib/_stream_transform.js":389,"./lib/_stream_writable.js":390}],395:[function(E,pe,de){var se=function(ne){"use strict";var ie=Object.prototype,ce=ie.hasOwnProperty,ue,ae=typeof Symbol=="function"?Symbol:{},oe=ae.iterator||"@@iterator",re=ae.asyncIterator||"@@asyncIterator",ee=ae.toStringTag||"@@toStringTag";function a(qe,Xe,Ve){return Object.defineProperty(qe,Xe,{value:Ve,enumerable:!0,configurable:!0,writable:!0}),qe[Xe]}try{a({},"")}catch(qe){a=function(Xe,Ve,We){return Xe[Ve]=We}}function y(qe,Xe,Ve,We){var ze=Xe&&Xe.prototype instanceof ge?Xe:ge,Ue=Object.create(ze.prototype),ot=new Ge(We||[]);return Ue._invoke=Ae(qe,Ve,ot),Ue}ne.wrap=y;function x(qe,Xe,Ve){try{return{type:"normal",arg:qe.call(Xe,Ve)}}catch(We){return{type:"throw",arg:We}}}var b="suspendedStart",z="suspendedYield",te="executing",le="completed",fe={};function ge(){}function me(){}function he(){}var Se={};a(Se,oe,function(){return this});var ye=Object.getPrototypeOf,Pe=ye&&ye(ye(Fe([])));Pe&&Pe!==ie&&ce.call(Pe,oe)&&(Se=Pe);var we=he.prototype=ge.prototype=Object.create(Se);me.prototype=he,a(we,"constructor",he),a(he,"constructor",me),me.displayName=a(he,ee,"GeneratorFunction");function De(qe){["next","throw","return"].forEach(function(Xe){a(qe,Xe,function(Ve){return this._invoke(Xe,Ve)})})}ne.isGeneratorFunction=function(qe){var Xe=typeof qe=="function"&&qe.constructor;return Xe?Xe===me||(Xe.displayName||Xe.name)==="GeneratorFunction":!1},ne.mark=function(qe){return Object.setPrototypeOf?Object.setPrototypeOf(qe,he):(qe.__proto__=he,a(qe,ee,"GeneratorFunction")),qe.prototype=Object.create(we),qe},ne.awrap=function(qe){return{__await:qe}};function Ee(qe,Xe){function Ve(Ue,ot,Qe,ut){var Ye=x(qe[Ue],qe,ot);if(Ye.type==="throw")ut(Ye.arg);else{var He=Ye.arg,Re=He.value;return Re&&typeof Re=="object"&&ce.call(Re,"__await")?Xe.resolve(Re.__await).then(function($e){Ve("next",$e,Qe,ut)},function($e){Ve("throw",$e,Qe,ut)}):Xe.resolve(Re).then(function($e){He.value=$e,Qe(He)},function($e){return Ve("throw",$e,Qe,ut)})}}var We;function ze(Ue,ot){function Qe(){return new Xe(function(ut,Ye){Ve(Ue,ot,ut,Ye)})}return We=We?We.then(Qe,Qe):Qe()}this._invoke=ze}De(Ee.prototype),a(Ee.prototype,re,function(){return this}),ne.AsyncIterator=Ee,ne.async=function(qe,Xe,Ve,We,ze){ze===void 0&&(ze=Promise);var Ue=new Ee(y(qe,Xe,Ve,We),ze);return ne.isGeneratorFunction(Xe)?Ue:Ue.next().then(function(ot){return ot.done?ot.value:Ue.next()})};function Ae(qe,Xe,Ve){var We=b;return function(Ue,ot){if(We===te)throw new Error("Generator is already running");if(We===le){if(Ue==="throw")throw ot;return Je()}for(Ve.method=Ue,Ve.arg=ot;;){var Qe=Ve.delegate;if(Qe){var ut=Ce(Qe,Ve);if(ut){if(ut===fe)continue;return ut}}if(Ve.method==="next")Ve.sent=Ve._sent=Ve.arg;else if(Ve.method==="throw"){if(We===b)throw We=le,Ve.arg;Ve.dispatchException(Ve.arg)}else Ve.method==="return"&&Ve.abrupt("return",Ve.arg);We=te;var Ye=x(qe,Xe,Ve);if(Ye.type==="normal"){if(We=Ve.done?le:z,Ye.arg===fe)continue;return{value:Ye.arg,done:Ve.done}}else Ye.type==="throw"&&(We=le,Ve.method="throw",Ve.arg=Ye.arg)}}}function Ce(qe,Xe){var Ve=qe.iterator[Xe.method];if(Ve===ue){if(Xe.delegate=null,Xe.method==="throw"){if(qe.iterator.return&&(Xe.method="return",Xe.arg=ue,Ce(qe,Xe),Xe.method==="throw"))return fe;Xe.method="throw",Xe.arg=new TypeError("The iterator does not provide a 'throw' method")}return fe}var We=x(Ve,qe.iterator,Xe.arg);if(We.type==="throw")return Xe.method="throw",Xe.arg=We.arg,Xe.delegate=null,fe;var ze=We.arg;if(!ze)return Xe.method="throw",Xe.arg=new TypeError("iterator result is not an object"),Xe.delegate=null,fe;if(ze.done)Xe[qe.resultName]=ze.value,Xe.next=qe.nextLoc,Xe.method!=="return"&&(Xe.method="next",Xe.arg=ue);else return ze;return Xe.delegate=null,fe}De(we),a(we,ee,"Generator"),a(we,oe,function(){return this}),a(we,"toString",function(){return"[object Generator]"});function je(qe){var Xe={tryLoc:qe[0]};1 in qe&&(Xe.catchLoc=qe[1]),2 in qe&&(Xe.finallyLoc=qe[2],Xe.afterLoc=qe[3]),this.tryEntries.push(Xe)}function Me(qe){var Xe=qe.completion||{};Xe.type="normal",delete Xe.arg,qe.completion=Xe}function Ge(qe){this.tryEntries=[{tryLoc:"root"}],qe.forEach(je,this),this.reset(!0)}ne.keys=function(qe){var Xe=[];for(var Ve in qe)Xe.push(Ve);return Xe.reverse(),function We(){for(;Xe.length;){var ze=Xe.pop();if(ze in qe)return We.value=ze,We.done=!1,We}return We.done=!0,We}};function Fe(qe){if(qe){var Xe=qe[oe];if(Xe)return Xe.call(qe);if(typeof qe.next=="function")return qe;if(!isNaN(qe.length)){var Ve=-1,We=function ze(){for(;++Ve=0;--We){var ze=this.tryEntries[We],Ue=ze.completion;if(ze.tryLoc==="root")return Ve("end");if(ze.tryLoc<=this.prev){var ot=ce.call(ze,"catchLoc"),Qe=ce.call(ze,"finallyLoc");if(ot&&Qe){if(this.prev=0;--Ve){var We=this.tryEntries[Ve];if(We.tryLoc<=this.prev&&ce.call(We,"finallyLoc")&&this.prev=0;--Xe){var Ve=this.tryEntries[Xe];if(Ve.finallyLoc===qe)return this.complete(Ve.completion,Ve.afterLoc),Me(Ve),fe}},catch:function(qe){for(var Xe=this.tryEntries.length-1;Xe>=0;--Xe){var Ve=this.tryEntries[Xe];if(Ve.tryLoc===qe){var We=Ve.completion;if(We.type==="throw"){var ze=We.arg;Me(Ve)}return ze}}throw new Error("illegal catch attempt")},delegateYield:function(qe,Xe,Ve){return this.delegate={iterator:Fe(qe),resultName:Xe,nextLoc:Ve},this.method==="next"&&(this.arg=ue),fe}},ne}(typeof pe=="object"?pe.exports:{});try{regeneratorRuntime=se}catch(ne){typeof globalThis=="object"?globalThis.regeneratorRuntime=se:Function("r","regeneratorRuntime = r")(se)}},{}],396:[function(E,pe,de){var se=E("buffer"),ne=se.Buffer;function ie(ue,ae){for(var oe in ue)ae[oe]=ue[oe]}ne.from&&ne.alloc&&ne.allocUnsafe&&ne.allocUnsafeSlow?pe.exports=se:(ie(se,de),de.Buffer=ce);function ce(ue,ae,oe){return ne(ue,ae,oe)}ie(ne,ce),ce.from=function(ue,ae,oe){if(typeof ue=="number")throw new TypeError("Argument must not be a number");return ne(ue,ae,oe)},ce.alloc=function(ue,ae,oe){if(typeof ue!="number")throw new TypeError("Argument must be a number");var re=ne(ue);return ae!==void 0?typeof oe=="string"?re.fill(ae,oe):re.fill(ae):re.fill(0),re},ce.allocUnsafe=function(ue){if(typeof ue!="number")throw new TypeError("Argument must be a number");return ne(ue)},ce.allocUnsafeSlow=function(ue){if(typeof ue!="number")throw new TypeError("Argument must be a number");return se.SlowBuffer(ue)}},{buffer:90}],397:[function(E,pe,de){(function(se){(function(){(function(ne){ne.parser=function(He,Re){return new ce(He,Re)},ne.SAXParser=ce,ne.SAXStream=y,ne.createStream=a,ne.MAX_BUFFER_LENGTH=64*1024;var ie=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];ne.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function ce(He,Re){if(!(this instanceof ce))return new ce(He,Re);var $e=this;ae($e),$e.q=$e.c="",$e.bufferCheckPosition=ne.MAX_BUFFER_LENGTH,$e.opt=Re||{},$e.opt.lowercase=$e.opt.lowercase||$e.opt.lowercasetags,$e.looseCase=$e.opt.lowercase?"toLowerCase":"toUpperCase",$e.tags=[],$e.closed=$e.closedRoot=$e.sawRoot=!1,$e.tag=$e.error=null,$e.strict=!!He,$e.noscript=!!(He||$e.opt.noscript),$e.state=Ee.BEGIN,$e.strictEntities=$e.opt.strictEntities,$e.ENTITIES=$e.strictEntities?Object.create(ne.XML_ENTITIES):Object.create(ne.ENTITIES),$e.attribList=[],$e.opt.xmlns&&($e.ns=Object.create(le)),$e.trackPosition=$e.opt.position!==!1,$e.trackPosition&&($e.position=$e.line=$e.column=0),Ce($e,"onready")}Object.create||(Object.create=function(He){function Re(){}Re.prototype=He;var $e=new Re;return $e}),Object.keys||(Object.keys=function(He){var Re=[];for(var $e in He)He.hasOwnProperty($e)&&Re.push($e);return Re});function ue(He){for(var Re=Math.max(ne.MAX_BUFFER_LENGTH,10),$e=0,Le=0,Ne=ie.length;LeRe)switch(ie[Le]){case"textNode":Me(He);break;case"cdata":je(He,"oncdata",He.cdata),He.cdata="";break;case"script":je(He,"onscript",He.script),He.script="";break;default:Fe(He,"Max buffer length exceeded: "+ie[Le])}$e=Math.max($e,et)}var Ze=ne.MAX_BUFFER_LENGTH-$e;He.bufferCheckPosition=Ze+He.position}function ae(He){for(var Re=0,$e=ie.length;Re<$e;Re++)He[ie[Re]]=""}function oe(He){Me(He),He.cdata!==""&&(je(He,"oncdata",He.cdata),He.cdata=""),He.script!==""&&(je(He,"onscript",He.script),He.script="")}ce.prototype={end:function(){Je(this)},write:Ye,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){oe(this)}};var re;try{re=E("stream").Stream}catch(He){re=function(){}}var ee=ne.EVENTS.filter(function(He){return He!=="error"&&He!=="end"});function a(He,Re){return new y(He,Re)}function y(He,Re){if(!(this instanceof y))return new y(He,Re);re.apply(this),this._parser=new ce(He,Re),this.writable=!0,this.readable=!0;var $e=this;this._parser.onend=function(){$e.emit("end")},this._parser.onerror=function(Le){$e.emit("error",Le),$e._parser.error=null},this._decoder=null,ee.forEach(function(Le){Object.defineProperty($e,"on"+Le,{get:function(){return $e._parser["on"+Le]},set:function(Ne){if(!Ne)return $e.removeAllListeners(Le),$e._parser["on"+Le]=Ne,Ne;$e.on(Le,Ne)},enumerable:!0,configurable:!1})})}y.prototype=Object.create(re.prototype,{constructor:{value:y}}),y.prototype.write=function(He){if(typeof se=="function"&&typeof se.isBuffer=="function"&&se.isBuffer(He)){if(!this._decoder){var Re=E("string_decoder").StringDecoder;this._decoder=new Re("utf8")}He=this._decoder.write(He)}return this._parser.write(He.toString()),this.emit("data",He),!0},y.prototype.end=function(He){return He&&He.length&&this.write(He),this._parser.end(),!0},y.prototype.on=function(He,Re){var $e=this;return!$e._parser["on"+He]&&ee.indexOf(He)!==-1&&($e._parser["on"+He]=function(){var Le=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);Le.splice(0,0,He),$e.emit.apply($e,Le)}),re.prototype.on.call($e,He,Re)};var x="[CDATA[",b="DOCTYPE",z="http://www.w3.org/XML/1998/namespace",te="http://www.w3.org/2000/xmlns/",le={xml:z,xmlns:te},fe=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,ge=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,me=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,he=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function Se(He){return He===" "||He===` `||He==="\r"||He===" "}function ye(He){return He==='"'||He==="'"}function Pe(He){return He===">"||Se(He)}function we(He,Re){return He.test(Re)}function De(He,Re){return!we(He,Re)}var Ee=0;ne.STATE={BEGIN:Ee++,BEGIN_WHITESPACE:Ee++,TEXT:Ee++,TEXT_ENTITY:Ee++,OPEN_WAKA:Ee++,SGML_DECL:Ee++,SGML_DECL_QUOTED:Ee++,DOCTYPE:Ee++,DOCTYPE_QUOTED:Ee++,DOCTYPE_DTD:Ee++,DOCTYPE_DTD_QUOTED:Ee++,COMMENT_STARTING:Ee++,COMMENT:Ee++,COMMENT_ENDING:Ee++,COMMENT_ENDED:Ee++,CDATA:Ee++,CDATA_ENDING:Ee++,CDATA_ENDING_2:Ee++,PROC_INST:Ee++,PROC_INST_BODY:Ee++,PROC_INST_ENDING:Ee++,OPEN_TAG:Ee++,OPEN_TAG_SLASH:Ee++,ATTRIB:Ee++,ATTRIB_NAME:Ee++,ATTRIB_NAME_SAW_WHITE:Ee++,ATTRIB_VALUE:Ee++,ATTRIB_VALUE_QUOTED:Ee++,ATTRIB_VALUE_CLOSED:Ee++,ATTRIB_VALUE_UNQUOTED:Ee++,ATTRIB_VALUE_ENTITY_Q:Ee++,ATTRIB_VALUE_ENTITY_U:Ee++,CLOSE_TAG:Ee++,CLOSE_TAG_SAW_WHITE:Ee++,SCRIPT:Ee++,SCRIPT_ENDING:Ee++},ne.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},ne.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(ne.ENTITIES).forEach(function(He){var Re=ne.ENTITIES[He],$e=typeof Re=="number"?String.fromCharCode(Re):Re;ne.ENTITIES[He]=$e});for(var Ae in ne.STATE)ne.STATE[ne.STATE[Ae]]=Ae;Ee=ne.STATE;function Ce(He,Re,$e){He[Re]&&He[Re]($e)}function je(He,Re,$e){He.textNode&&Me(He),Ce(He,Re,$e)}function Me(He){He.textNode=Ge(He.opt,He.textNode),He.textNode&&Ce(He,"ontext",He.textNode),He.textNode=""}function Ge(He,Re){return He.trim&&(Re=Re.trim()),He.normalize&&(Re=Re.replace(/\s+/g," ")),Re}function Fe(He,Re){return Me(He),He.trackPosition&&(Re+=` Line: `+He.line+` Column: `+He.column+` Char: `+He.c),Re=new Error(Re),He.error=Re,Ce(He,"onerror",Re),He}function Je(He){return He.sawRoot&&!He.closedRoot&&qe(He,"Unclosed root tag"),He.state!==Ee.BEGIN&&He.state!==Ee.BEGIN_WHITESPACE&&He.state!==Ee.TEXT&&Fe(He,"Unexpected end"),Me(He),He.c="",He.closed=!0,Ce(He,"onend"),ce.call(He,He.strict,He.opt),He}function qe(He,Re){if(typeof He!="object"||!(He instanceof ce))throw new Error("bad call to strictFail");He.strict&&Fe(He,Re)}function Xe(He){He.strict||(He.tagName=He.tagName[He.looseCase]());var Re=He.tags[He.tags.length-1]||He,$e=He.tag={name:He.tagName,attributes:{}};He.opt.xmlns&&($e.ns=Re.ns),He.attribList.length=0,je(He,"onopentagstart",$e)}function Ve(He,Re){var $e=He.indexOf(":"),Le=$e<0?["",He]:He.split(":"),Ne=Le[0],et=Le[1];return Re&&He==="xmlns"&&(Ne="xmlns",et=""),{prefix:Ne,local:et}}function We(He){if(He.strict||(He.attribName=He.attribName[He.looseCase]()),He.attribList.indexOf(He.attribName)!==-1||He.tag.attributes.hasOwnProperty(He.attribName)){He.attribName=He.attribValue="";return}if(He.opt.xmlns){var Re=Ve(He.attribName,!0),$e=Re.prefix,Le=Re.local;if($e==="xmlns")if(Le==="xml"&&He.attribValue!==z)qe(He,"xml: prefix must be bound to "+z+` Actual: `+He.attribValue);else if(Le==="xmlns"&&He.attribValue!==te)qe(He,"xmlns: prefix must be bound to "+te+` Actual: `+He.attribValue);else{var Ne=He.tag,et=He.tags[He.tags.length-1]||He;Ne.ns===et.ns&&(Ne.ns=Object.create(et.ns)),Ne.ns[Le]=He.attribValue}He.attribList.push([He.attribName,He.attribValue])}else He.tag.attributes[He.attribName]=He.attribValue,je(He,"onattribute",{name:He.attribName,value:He.attribValue});He.attribName=He.attribValue=""}function ze(He,Re){if(He.opt.xmlns){var $e=He.tag,Le=Ve(He.tagName);$e.prefix=Le.prefix,$e.local=Le.local,$e.uri=$e.ns[Le.prefix]||"",$e.prefix&&!$e.uri&&(qe(He,"Unbound namespace prefix: "+JSON.stringify(He.tagName)),$e.uri=Le.prefix);var Ne=He.tags[He.tags.length-1]||He;$e.ns&&Ne.ns!==$e.ns&&Object.keys($e.ns).forEach(function(tt){je(He,"onopennamespace",{prefix:tt,uri:$e.ns[tt]})});for(var et=0,Ze=He.attribList.length;et",He.tagName="",He.state=Ee.SCRIPT;return}je(He,"onscript",He.script),He.script=""}var Re=He.tags.length,$e=He.tagName;He.strict||($e=$e[He.looseCase]());for(var Le=$e;Re--;){var Ne=He.tags[Re];if(Ne.name!==Le)qe(He,"Unexpected close tag");else break}if(Re<0){qe(He,"Unmatched closing tag: "+He.tagName),He.textNode+="",He.state=Ee.TEXT;return}He.tagName=$e;for(var et=He.tags.length;et-- >Re;){var Ze=He.tag=He.tags.pop();He.tagName=He.tag.name,je(He,"onclosetag",He.tagName);var Be={};for(var Oe in Ze.ns)Be[Oe]=Ze.ns[Oe];var Te=He.tags[He.tags.length-1]||He;He.opt.xmlns&&Ze.ns!==Te.ns&&Object.keys(Ze.ns).forEach(function(xe){var Ie=Ze.ns[xe];je(He,"onclosenamespace",{prefix:xe,uri:Ie})})}Re===0&&(He.closedRoot=!0),He.tagName=He.attribValue=He.attribName="",He.attribList.length=0,He.state=Ee.TEXT}function ot(He){var Re=He.entity,$e=Re.toLowerCase(),Le,Ne="";return He.ENTITIES[Re]?He.ENTITIES[Re]:He.ENTITIES[$e]?He.ENTITIES[$e]:(Re=$e,Re.charAt(0)==="#"&&(Re.charAt(1)==="x"?(Re=Re.slice(2),Le=parseInt(Re,16),Ne=Le.toString(16)):(Re=Re.slice(1),Le=parseInt(Re,10),Ne=Le.toString(10))),Re=Re.replace(/^0+/,""),isNaN(Le)||Ne.toLowerCase()!==Re?(qe(He,"Invalid character entity"),"&"+He.entity+";"):String.fromCodePoint(Le))}function Qe(He,Re){Re==="<"?(He.state=Ee.OPEN_WAKA,He.startTagPosition=He.position):Se(Re)||(qe(He,"Non-whitespace before first tag."),He.textNode=Re,He.state=Ee.TEXT)}function ut(He,Re){var $e="";return Re"?(je(Re,"onsgmldeclaration",Re.sgmlDecl),Re.sgmlDecl="",Re.state=Ee.TEXT):(ye(Le)&&(Re.state=Ee.SGML_DECL_QUOTED),Re.sgmlDecl+=Le);continue;case Ee.SGML_DECL_QUOTED:Le===Re.q&&(Re.state=Ee.SGML_DECL,Re.q=""),Re.sgmlDecl+=Le;continue;case Ee.DOCTYPE:Le===">"?(Re.state=Ee.TEXT,je(Re,"ondoctype",Re.doctype),Re.doctype=!0):(Re.doctype+=Le,Le==="["?Re.state=Ee.DOCTYPE_DTD:ye(Le)&&(Re.state=Ee.DOCTYPE_QUOTED,Re.q=Le));continue;case Ee.DOCTYPE_QUOTED:Re.doctype+=Le,Le===Re.q&&(Re.q="",Re.state=Ee.DOCTYPE);continue;case Ee.DOCTYPE_DTD:Re.doctype+=Le,Le==="]"?Re.state=Ee.DOCTYPE:ye(Le)&&(Re.state=Ee.DOCTYPE_DTD_QUOTED,Re.q=Le);continue;case Ee.DOCTYPE_DTD_QUOTED:Re.doctype+=Le,Le===Re.q&&(Re.state=Ee.DOCTYPE_DTD,Re.q="");continue;case Ee.COMMENT:Le==="-"?Re.state=Ee.COMMENT_ENDING:Re.comment+=Le;continue;case Ee.COMMENT_ENDING:Le==="-"?(Re.state=Ee.COMMENT_ENDED,Re.comment=Ge(Re.opt,Re.comment),Re.comment&&je(Re,"oncomment",Re.comment),Re.comment=""):(Re.comment+="-"+Le,Re.state=Ee.COMMENT);continue;case Ee.COMMENT_ENDED:Le!==">"?(qe(Re,"Malformed comment"),Re.comment+="--"+Le,Re.state=Ee.COMMENT):Re.state=Ee.TEXT;continue;case Ee.CDATA:Le==="]"?Re.state=Ee.CDATA_ENDING:Re.cdata+=Le;continue;case Ee.CDATA_ENDING:Le==="]"?Re.state=Ee.CDATA_ENDING_2:(Re.cdata+="]"+Le,Re.state=Ee.CDATA);continue;case Ee.CDATA_ENDING_2:Le===">"?(Re.cdata&&je(Re,"oncdata",Re.cdata),je(Re,"onclosecdata"),Re.cdata="",Re.state=Ee.TEXT):Le==="]"?Re.cdata+="]":(Re.cdata+="]]"+Le,Re.state=Ee.CDATA);continue;case Ee.PROC_INST:Le==="?"?Re.state=Ee.PROC_INST_ENDING:Se(Le)?Re.state=Ee.PROC_INST_BODY:Re.procInstName+=Le;continue;case Ee.PROC_INST_BODY:if(!Re.procInstBody&&Se(Le))continue;Le==="?"?Re.state=Ee.PROC_INST_ENDING:Re.procInstBody+=Le;continue;case Ee.PROC_INST_ENDING:Le===">"?(je(Re,"onprocessinginstruction",{name:Re.procInstName,body:Re.procInstBody}),Re.procInstName=Re.procInstBody="",Re.state=Ee.TEXT):(Re.procInstBody+="?"+Le,Re.state=Ee.PROC_INST_BODY);continue;case Ee.OPEN_TAG:we(ge,Le)?Re.tagName+=Le:(Xe(Re),Le===">"?ze(Re):Le==="/"?Re.state=Ee.OPEN_TAG_SLASH:(Se(Le)||qe(Re,"Invalid character in tag name"),Re.state=Ee.ATTRIB));continue;case Ee.OPEN_TAG_SLASH:Le===">"?(ze(Re,!0),Ue(Re)):(qe(Re,"Forward-slash in opening tag not followed by >"),Re.state=Ee.ATTRIB);continue;case Ee.ATTRIB:if(Se(Le))continue;Le===">"?ze(Re):Le==="/"?Re.state=Ee.OPEN_TAG_SLASH:we(fe,Le)?(Re.attribName=Le,Re.attribValue="",Re.state=Ee.ATTRIB_NAME):qe(Re,"Invalid attribute name");continue;case Ee.ATTRIB_NAME:Le==="="?Re.state=Ee.ATTRIB_VALUE:Le===">"?(qe(Re,"Attribute without value"),Re.attribValue=Re.attribName,We(Re),ze(Re)):Se(Le)?Re.state=Ee.ATTRIB_NAME_SAW_WHITE:we(ge,Le)?Re.attribName+=Le:qe(Re,"Invalid attribute name");continue;case Ee.ATTRIB_NAME_SAW_WHITE:if(Le==="=")Re.state=Ee.ATTRIB_VALUE;else{if(Se(Le))continue;qe(Re,"Attribute without value"),Re.tag.attributes[Re.attribName]="",Re.attribValue="",je(Re,"onattribute",{name:Re.attribName,value:""}),Re.attribName="",Le===">"?ze(Re):we(fe,Le)?(Re.attribName=Le,Re.state=Ee.ATTRIB_NAME):(qe(Re,"Invalid attribute name"),Re.state=Ee.ATTRIB)}continue;case Ee.ATTRIB_VALUE:if(Se(Le))continue;ye(Le)?(Re.q=Le,Re.state=Ee.ATTRIB_VALUE_QUOTED):(qe(Re,"Unquoted attribute value"),Re.state=Ee.ATTRIB_VALUE_UNQUOTED,Re.attribValue=Le);continue;case Ee.ATTRIB_VALUE_QUOTED:if(Le!==Re.q){Le==="&"?Re.state=Ee.ATTRIB_VALUE_ENTITY_Q:Re.attribValue+=Le;continue}We(Re),Re.q="",Re.state=Ee.ATTRIB_VALUE_CLOSED;continue;case Ee.ATTRIB_VALUE_CLOSED:Se(Le)?Re.state=Ee.ATTRIB:Le===">"?ze(Re):Le==="/"?Re.state=Ee.OPEN_TAG_SLASH:we(fe,Le)?(qe(Re,"No whitespace between attributes"),Re.attribName=Le,Re.attribValue="",Re.state=Ee.ATTRIB_NAME):qe(Re,"Invalid attribute name");continue;case Ee.ATTRIB_VALUE_UNQUOTED:if(!Pe(Le)){Le==="&"?Re.state=Ee.ATTRIB_VALUE_ENTITY_U:Re.attribValue+=Le;continue}We(Re),Le===">"?ze(Re):Re.state=Ee.ATTRIB;continue;case Ee.CLOSE_TAG:if(Re.tagName)Le===">"?Ue(Re):we(ge,Le)?Re.tagName+=Le:Re.script?(Re.script+=""?Ue(Re):qe(Re,"Invalid characters in closing tag");continue;case Ee.TEXT_ENTITY:case Ee.ATTRIB_VALUE_ENTITY_Q:case Ee.ATTRIB_VALUE_ENTITY_U:var Ze,Be;switch(Re.state){case Ee.TEXT_ENTITY:Ze=Ee.TEXT,Be="textNode";break;case Ee.ATTRIB_VALUE_ENTITY_Q:Ze=Ee.ATTRIB_VALUE_QUOTED,Be="attribValue";break;case Ee.ATTRIB_VALUE_ENTITY_U:Ze=Ee.ATTRIB_VALUE_UNQUOTED,Be="attribValue";break}Le===";"?(Re[Be]+=ot(Re),Re.entity="",Re.state=Ze):we(Re.entity.length?he:me,Le)?Re.entity+=Le:(qe(Re,"Invalid character in entity name"),Re[Be]+="&"+Re.entity+Le,Re.entity="",Re.state=Ze);continue;default:throw new Error(Re,"Unknown state: "+Re.state)}return Re.position>=Re.bufferCheckPosition&&ue(Re),Re}String.fromCodePoint||function(){var He=String.fromCharCode,Re=Math.floor,$e=function(){var Le=16384,Ne=[],et,Ze,Be=-1,Oe=arguments.length;if(!Oe)return"";for(var Te="";++Be1114111||Re(xe)!==xe)throw RangeError("Invalid code point: "+xe);xe<=65535?Ne.push(xe):(xe-=65536,et=(xe>>10)+55296,Ze=xe%1024+56320,Ne.push(et,Ze)),(Be+1===Oe||Ne.length>Le)&&(Te+=He.apply(null,Ne),Ne.length=0)}return Te};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:$e,configurable:!0,writable:!0}):String.fromCodePoint=$e}()})(typeof de=="undefined"?this.sax={}:de)}).call(this)}).call(this,E("buffer").Buffer)},{buffer:90,stream:398,string_decoder:413}],398:[function(E,pe,de){pe.exports=ie;var se=E("events").EventEmitter,ne=E("inherits");ne(ie,se),ie.Readable=E("readable-stream/lib/_stream_readable.js"),ie.Writable=E("readable-stream/lib/_stream_writable.js"),ie.Duplex=E("readable-stream/lib/_stream_duplex.js"),ie.Transform=E("readable-stream/lib/_stream_transform.js"),ie.PassThrough=E("readable-stream/lib/_stream_passthrough.js"),ie.finished=E("readable-stream/lib/internal/streams/end-of-stream.js"),ie.pipeline=E("readable-stream/lib/internal/streams/pipeline.js"),ie.Stream=ie;function ie(){se.call(this)}ie.prototype.pipe=function(ce,ue){var ae=this;function oe(z){ce.writable&&ce.write(z)===!1&&ae.pause&&ae.pause()}ae.on("data",oe);function re(){ae.readable&&ae.resume&&ae.resume()}ce.on("drain",re),!ce._isStdio&&(!ue||ue.end!==!1)&&(ae.on("end",a),ae.on("close",y));var ee=!1;function a(){ee||(ee=!0,ce.end())}function y(){ee||(ee=!0,typeof ce.destroy=="function"&&ce.destroy())}function x(z){if(b(),se.listenerCount(this,"error")===0)throw z}ae.on("error",x),ce.on("error",x);function b(){ae.removeListener("data",oe),ce.removeListener("drain",re),ae.removeListener("end",a),ae.removeListener("close",y),ae.removeListener("error",x),ce.removeListener("error",x),ae.removeListener("end",b),ae.removeListener("close",b),ce.removeListener("close",b)}return ae.on("end",b),ae.on("close",b),ce.on("close",b),ce.emit("pipe",ae),ce}},{events:344,inherits:364,"readable-stream/lib/_stream_duplex.js":400,"readable-stream/lib/_stream_passthrough.js":401,"readable-stream/lib/_stream_readable.js":402,"readable-stream/lib/_stream_transform.js":403,"readable-stream/lib/_stream_writable.js":404,"readable-stream/lib/internal/streams/end-of-stream.js":408,"readable-stream/lib/internal/streams/pipeline.js":410}],399:[function(E,pe,de){"use strict";function se(re,ee){re.prototype=Object.create(ee.prototype),re.prototype.constructor=re,re.__proto__=ee}var ne={};function ie(re,ee,a){a||(a=Error);function y(b,z,te){return typeof ee=="string"?ee:ee(b,z,te)}var x=function(b){se(z,b);function z(te,le,fe){return b.call(this,y(te,le,fe))||this}return z}(a);x.prototype.name=a.name,x.prototype.code=re,ne[re]=x}function ce(re,ee){if(Array.isArray(re)){var a=re.length;return re=re.map(function(y){return String(y)}),a>2?"one of ".concat(ee," ").concat(re.slice(0,a-1).join(", "),", or ")+re[a-1]:a===2?"one of ".concat(ee," ").concat(re[0]," or ").concat(re[1]):"of ".concat(ee," ").concat(re[0])}else return"of ".concat(ee," ").concat(String(re))}function ue(re,ee,a){return re.substr(!a||a<0?0:+a,ee.length)===ee}function ae(re,ee,a){return(a===void 0||a>re.length)&&(a=re.length),re.substring(a-ee.length,a)===ee}function oe(re,ee,a){return typeof a!="number"&&(a=0),a+ee.length>re.length?!1:re.indexOf(ee,a)!==-1}ie("ERR_INVALID_OPT_VALUE",function(re,ee){return'The value "'+ee+'" is invalid for option "'+re+'"'},TypeError),ie("ERR_INVALID_ARG_TYPE",function(re,ee,a){var y;typeof ee=="string"&&ue(ee,"not ")?(y="must not be",ee=ee.replace(/^not /,"")):y="must be";var x;if(ae(re," argument"))x="The ".concat(re," ").concat(y," ").concat(ce(ee,"type"));else{var b=oe(re,".")?"property":"argument";x='The "'.concat(re,'" ').concat(b," ").concat(y," ").concat(ce(ee,"type"))}return x+=". Received type ".concat(typeof a),x},TypeError),ie("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),ie("ERR_METHOD_NOT_IMPLEMENTED",function(re){return"The "+re+" method is not implemented"}),ie("ERR_STREAM_PREMATURE_CLOSE","Premature close"),ie("ERR_STREAM_DESTROYED",function(re){return"Cannot call "+re+" after a stream was destroyed"}),ie("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),ie("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),ie("ERR_STREAM_WRITE_AFTER_END","write after end"),ie("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),ie("ERR_UNKNOWN_ENCODING",function(re){return"Unknown encoding: "+re},TypeError),ie("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),pe.exports.codes=ne},{}],400:[function(E,pe,de){(function(se){(function(){"use strict";var ne=Object.keys||function(y){var x=[];for(var b in y)x.push(b);return x};pe.exports=re;var ie=E("./_stream_readable"),ce=E("./_stream_writable");E("inherits")(re,ie);for(var ue=ne(ce.prototype),ae=0;ae0)if(typeof Oe!="string"&&!Ke.objectMode&&Object.getPrototypeOf(Oe)!==oe.prototype&&(Oe=ee(Oe)),xe)Ke.endEmitted?De(Be,new Se):Ge(Be,Ke,Oe,!0);else if(Ke.ended)De(Be,new me);else{if(Ke.destroyed)return!1;Ke.reading=!1,Ke.decoder&&!Te?(Oe=Ke.decoder.write(Oe),Ke.objectMode||Oe.length!==0?Ge(Be,Ke,Oe,!1):Ue(Be,Ke)):Ge(Be,Ke,Oe,!1)}else xe||(Ke.reading=!1,Ue(Be,Ke))}return!Ke.ended&&(Ke.length=Je?Be=Je:(Be--,Be|=Be>>>1,Be|=Be>>>2,Be|=Be>>>4,Be|=Be>>>8,Be|=Be>>>16,Be++),Be}function Xe(Be,Oe){return Be<=0||Oe.length===0&&Oe.ended?0:Oe.objectMode?1:Be!==Be?Oe.flowing&&Oe.length?Oe.buffer.head.data.length:Oe.length:(Be>Oe.highWaterMark&&(Oe.highWaterMark=qe(Be)),Be<=Oe.length?Be:Oe.ended?Oe.length:(Oe.needReadable=!0,0))}je.prototype.read=function(Be){x("read",Be),Be=parseInt(Be,10);var Oe=this._readableState,Te=Be;if(Be!==0&&(Oe.emittedReadable=!1),Be===0&&Oe.needReadable&&((Oe.highWaterMark!==0?Oe.length>=Oe.highWaterMark:Oe.length>0)||Oe.ended))return x("read: emitReadable",Oe.length,Oe.ended),Oe.length===0&&Oe.ended?Ne(this):We(this),null;if(Be=Xe(Be,Oe),Be===0&&Oe.ended)return Oe.length===0&&Ne(this),null;var xe=Oe.needReadable;x("need readable",xe),(Oe.length===0||Oe.length-Be0?Ie=Le(Be,Oe):Ie=null,Ie===null?(Oe.needReadable=Oe.length<=Oe.highWaterMark,Be=0):(Oe.length-=Be,Oe.awaitDrain=0),Oe.length===0&&(Oe.ended||(Oe.needReadable=!0),Te!==Be&&Oe.ended&&Ne(this)),Ie!==null&&this.emit("data",Ie),Ie};function Ve(Be,Oe){if(x("onEofChunk"),!Oe.ended){if(Oe.decoder){var Te=Oe.decoder.end();Te&&Te.length&&(Oe.buffer.push(Te),Oe.length+=Oe.objectMode?1:Te.length)}Oe.ended=!0,Oe.sync?We(Be):(Oe.needReadable=!1,Oe.emittedReadable||(Oe.emittedReadable=!0,ze(Be)))}}function We(Be){var Oe=Be._readableState;x("emitReadable",Oe.needReadable,Oe.emittedReadable),Oe.needReadable=!1,Oe.emittedReadable||(x("emitReadable",Oe.flowing),Oe.emittedReadable=!0,se.nextTick(ze,Be))}function ze(Be){var Oe=Be._readableState;x("emitReadable_",Oe.destroyed,Oe.length,Oe.ended),!Oe.destroyed&&(Oe.length||Oe.ended)&&(Be.emit("readable"),Oe.emittedReadable=!1),Oe.needReadable=!Oe.flowing&&!Oe.ended&&Oe.length<=Oe.highWaterMark,$e(Be)}function Ue(Be,Oe){Oe.readingMore||(Oe.readingMore=!0,se.nextTick(ot,Be,Oe))}function ot(Be,Oe){for(;!Oe.reading&&!Oe.ended&&(Oe.length1&&Ze(xe.pipes,Be)!==-1)&&!mt&&(x("false write response, pause",xe.awaitDrain),xe.awaitDrain++),Te.pause())}function lt(ft){x("onerror",ft),st(),Be.removeListener("error",lt),ue(Be,"error")===0&&De(Be,ft)}Ae(Be,"error",lt);function pt(){Be.removeListener("finish",at),st()}Be.once("close",pt);function at(){x("onfinish"),Be.removeListener("close",pt),st()}Be.once("finish",at);function st(){x("unpipe"),Te.unpipe(Be)}return Be.emit("pipe",Te),xe.flowing||(x("pipe resume"),Te.resume()),Be};function Qe(Be){return function(){var Te=Be._readableState;x("pipeOnDrain",Te.awaitDrain),Te.awaitDrain&&Te.awaitDrain--,Te.awaitDrain===0&&ue(Be,"data")&&(Te.flowing=!0,$e(Be))}}je.prototype.unpipe=function(Be){var Oe=this._readableState,Te={hasUnpiped:!1};if(Oe.pipesCount===0)return this;if(Oe.pipesCount===1)return Be&&Be!==Oe.pipes?this:(Be||(Be=Oe.pipes),Oe.pipes=null,Oe.pipesCount=0,Oe.flowing=!1,Be&&Be.emit("unpipe",this,Te),this);if(!Be){var xe=Oe.pipes,Ie=Oe.pipesCount;Oe.pipes=null,Oe.pipesCount=0,Oe.flowing=!1;for(var Ke=0;Ke0,xe.flowing!==!1&&this.resume()):Be==="readable"&&!xe.endEmitted&&!xe.readableListening&&(xe.readableListening=xe.needReadable=!0,xe.flowing=!1,xe.emittedReadable=!1,x("on readable",xe.length,xe.reading),xe.length?We(this):xe.reading||se.nextTick(Ye,this)),Te},je.prototype.addListener=je.prototype.on,je.prototype.removeListener=function(Be,Oe){var Te=ae.prototype.removeListener.call(this,Be,Oe);return Be==="readable"&&se.nextTick(ut,this),Te},je.prototype.removeAllListeners=function(Be){var Oe=ae.prototype.removeAllListeners.apply(this,arguments);return(Be==="readable"||Be===void 0)&&se.nextTick(ut,this),Oe};function ut(Be){var Oe=Be._readableState;Oe.readableListening=Be.listenerCount("readable")>0,Oe.resumeScheduled&&!Oe.paused?Oe.flowing=!0:Be.listenerCount("data")>0&&Be.resume()}function Ye(Be){x("readable nexttick read 0"),Be.read(0)}je.prototype.resume=function(){var Be=this._readableState;return Be.flowing||(x("resume"),Be.flowing=!Be.readableListening,He(this,Be)),Be.paused=!1,this};function He(Be,Oe){Oe.resumeScheduled||(Oe.resumeScheduled=!0,se.nextTick(Re,Be,Oe))}function Re(Be,Oe){x("resume",Oe.reading),Oe.reading||Be.read(0),Oe.resumeScheduled=!1,Be.emit("resume"),$e(Be),Oe.flowing&&!Oe.reading&&Be.read(0)}je.prototype.pause=function(){return x("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(x("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function $e(Be){var Oe=Be._readableState;for(x("flow",Oe.flowing);Oe.flowing&&Be.read()!==null;);}je.prototype.wrap=function(Be){var Oe=this,Te=this._readableState,xe=!1;Be.on("end",function(){if(x("wrapped end"),Te.decoder&&!Te.ended){var rt=Te.decoder.end();rt&&rt.length&&Oe.push(rt)}Oe.push(null)}),Be.on("data",function(rt){if(x("wrapped data"),Te.decoder&&(rt=Te.decoder.write(rt)),!(Te.objectMode&&rt==null)&&!(!Te.objectMode&&(!rt||!rt.length))){var ke=Oe.push(rt);ke||(xe=!0,Be.pause())}});for(var Ie in Be)this[Ie]===void 0&&typeof Be[Ie]=="function"&&(this[Ie]=function(ke){return function(){return Be[ke].apply(Be,arguments)}}(Ie));for(var Ke=0;Ke=Oe.length?(Oe.decoder?Te=Oe.buffer.join(""):Oe.buffer.length===1?Te=Oe.buffer.first():Te=Oe.buffer.concat(Oe.length),Oe.buffer.clear()):Te=Oe.buffer.consume(Be,Oe.decoder),Te}function Ne(Be){var Oe=Be._readableState;x("endReadable",Oe.endEmitted),Oe.endEmitted||(Oe.ended=!0,se.nextTick(et,Oe,Be))}function et(Be,Oe){if(x("endReadableNT",Be.endEmitted,Be.length),!Be.endEmitted&&Be.length===0&&(Be.endEmitted=!0,Oe.readable=!1,Oe.emit("end"),Be.autoDestroy)){var Te=Oe._writableState;(!Te||Te.autoDestroy&&Te.finished)&&Oe.destroy()}}typeof Symbol=="function"&&(je.from=function(Be,Oe){return we===void 0&&(we=E("./internal/streams/from")),we(je,Be,Oe)});function Ze(Be,Oe){for(var Te=0,xe=Be.length;Te-1))throw new Pe(Le);return this._writableState.defaultEncoding=Le,this},Object.defineProperty(Ce.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function Ge($e,Le,Ne){return!$e.objectMode&&$e.decodeStrings!==!1&&typeof Le=="string"&&(Le=re.from(Le,Ne)),Le}Object.defineProperty(Ce.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Fe($e,Le,Ne,et,Ze,Be){if(!Ne){var Oe=Ge(Le,et,Ze);et!==Oe&&(Ne=!0,Ze="buffer",et=Oe)}var Te=Le.objectMode?1:et.length;Le.length+=Te;var xe=Le.length0?this.tail.next=ge:this.head=ge,this.tail=ge,++this.length}},{key:"unshift",value:function(fe){var ge={data:fe,next:this.head};this.length===0&&(this.tail=ge),this.head=ge,++this.length}},{key:"shift",value:function(){if(this.length!==0){var fe=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,fe}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(fe){if(this.length===0)return"";for(var ge=this.head,me=""+ge.data;ge=ge.next;)me+=fe+ge.data;return me}},{key:"concat",value:function(fe){if(this.length===0)return a.alloc(0);for(var ge=a.allocUnsafe(fe>>>0),me=this.head,he=0;me;)z(me.data,ge,he),he+=me.data.length,me=me.next;return ge}},{key:"consume",value:function(fe,ge){var me;return feSe.length?Se.length:fe;if(ye===Se.length?he+=Se:he+=Se.slice(0,fe),fe-=ye,fe===0){ye===Se.length?(++me,ge.next?this.head=ge.next:this.head=this.tail=null):(this.head=ge,ge.data=Se.slice(ye));break}++me}return this.length-=me,he}},{key:"_getBuffer",value:function(fe){var ge=a.allocUnsafe(fe),me=this.head,he=1;for(me.data.copy(ge),fe-=me.data.length;me=me.next;){var Se=me.data,ye=fe>Se.length?Se.length:fe;if(Se.copy(ge,ge.length-fe,0,ye),fe-=ye,fe===0){ye===Se.length?(++he,me.next?this.head=me.next:this.head=this.tail=null):(this.head=me,me.data=Se.slice(ye));break}++he}return this.length-=he,ge}},{key:b,value:function(fe,ge){return x(this,ne(ne({},ge),{},{depth:0,customInspect:!1}))}}]),te}()},{buffer:90,util:89}],407:[function(E,pe,de){(function(se){(function(){"use strict";function ne(re,ee){var a=this,y=this._readableState&&this._readableState.destroyed,x=this._writableState&&this._writableState.destroyed;return y||x?(ee?ee(re):re&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,se.nextTick(ae,this,re)):se.nextTick(ae,this,re)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(re||null,function(b){!ee&&b?a._writableState?a._writableState.errorEmitted?se.nextTick(ce,a):(a._writableState.errorEmitted=!0,se.nextTick(ie,a,b)):se.nextTick(ie,a,b):ee?(se.nextTick(ce,a),ee(b)):se.nextTick(ce,a)}),this)}function ie(re,ee){ae(re,ee),ce(re)}function ce(re){re._writableState&&!re._writableState.emitClose||re._readableState&&!re._readableState.emitClose||re.emit("close")}function ue(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function ae(re,ee){re.emit("error",ee)}function oe(re,ee){var a=re._readableState,y=re._writableState;a&&a.autoDestroy||y&&y.autoDestroy?re.destroy(ee):re.emit("error",ee)}pe.exports={destroy:ne,undestroy:ue,errorOrDestroy:oe}}).call(this)}).call(this,E("_process"))},{_process:467}],408:[function(E,pe,de){"use strict";var se=E("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function ne(ae){var oe=!1;return function(){if(!oe){oe=!0;for(var re=arguments.length,ee=new Array(re),a=0;a0;return re(me,Se,ye,function(Pe){fe||(fe=Pe),Pe&&ge.forEach(ee),!Se&&(ge.forEach(ee),le(fe))})});return z.reduce(a)}pe.exports=x},{"../../../errors":399,"./end-of-stream":408}],411:[function(E,pe,de){"use strict";var se=E("../../../errors").codes.ERR_INVALID_OPT_VALUE;function ne(ce,ue,ae){return ce.highWaterMark!=null?ce.highWaterMark:ue?ce[ae]:null}function ie(ce,ue,ae,oe){var re=ne(ue,oe,ae);if(re!=null){if(!(isFinite(re)&&Math.floor(re)===re)||re<0){var ee=oe?ae:"highWaterMark";throw new se(ee,re)}return Math.floor(re)}return ce.objectMode?16:16*1024}pe.exports={getHighWaterMark:ie}},{"../../../errors":399}],412:[function(E,pe,de){arguments[4][393][0].apply(de,arguments)},{dup:393,events:344}],413:[function(E,pe,de){"use strict";var se=E("safe-buffer").Buffer,ne=se.isEncoding||function(ge){switch(ge=""+ge,ge&&ge.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function ie(ge){if(!ge)return"utf8";for(var me;;)switch(ge){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return ge;default:if(me)return;ge=(""+ge).toLowerCase(),me=!0}}function ce(ge){var me=ie(ge);if(typeof me!="string"&&(se.isEncoding===ne||!ne(ge)))throw new Error("Unknown encoding: "+ge);return me||ge}de.StringDecoder=ue;function ue(ge){this.encoding=ce(ge);var me;switch(this.encoding){case"utf16le":this.text=x,this.end=b,me=4;break;case"utf8":this.fillLast=ee,me=4;break;case"base64":this.text=z,this.end=te,me=3;break;default:this.write=le,this.end=fe;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=se.allocUnsafe(me)}ue.prototype.write=function(ge){if(ge.length===0)return"";var me,he;if(this.lastNeed){if(me=this.fillLast(ge),me===void 0)return"";he=this.lastNeed,this.lastNeed=0}else he=0;return he>5===6?2:ge>>4===14?3:ge>>3===30?4:ge>>6===2?-1:-2}function oe(ge,me,he){var Se=me.length-1;if(Se=0?(ye>0&&(ge.lastNeed=ye-1),ye):--Se=0?(ye>0&&(ge.lastNeed=ye-2),ye):--Se=0?(ye>0&&(ye===2?ye=0:ge.lastNeed=ye-3),ye):0))}function re(ge,me,he){if((me[0]&192)!==128)return ge.lastNeed=0,"\uFFFD";if(ge.lastNeed>1&&me.length>1){if((me[1]&192)!==128)return ge.lastNeed=1,"\uFFFD";if(ge.lastNeed>2&&me.length>2&&(me[2]&192)!==128)return ge.lastNeed=2,"\uFFFD"}}function ee(ge){var me=this.lastTotal-this.lastNeed,he=re(this,ge,me);if(he!==void 0)return he;if(this.lastNeed<=ge.length)return ge.copy(this.lastChar,me,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);ge.copy(this.lastChar,me,0,ge.length),this.lastNeed-=ge.length}function a(ge,me){var he=oe(this,ge,me);if(!this.lastNeed)return ge.toString("utf8",me);this.lastTotal=he;var Se=ge.length-(he-this.lastNeed);return ge.copy(this.lastChar,0,Se),ge.toString("utf8",me,Se)}function y(ge){var me=ge&&ge.length?this.write(ge):"";return this.lastNeed?me+"\uFFFD":me}function x(ge,me){if((ge.length-me)%2===0){var he=ge.toString("utf16le",me);if(he){var Se=he.charCodeAt(he.length-1);if(Se>=55296&&Se<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=ge[ge.length-2],this.lastChar[1]=ge[ge.length-1],he.slice(0,-1)}return he}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=ge[ge.length-1],ge.toString("utf16le",me,ge.length-1)}function b(ge){var me=ge&&ge.length?this.write(ge):"";if(this.lastNeed){var he=this.lastTotal-this.lastNeed;return me+this.lastChar.toString("utf16le",0,he)}return me}function z(ge,me){var he=(ge.length-me)%3;return he===0?ge.toString("base64",me):(this.lastNeed=3-he,this.lastTotal=3,he===1?this.lastChar[0]=ge[ge.length-1]:(this.lastChar[0]=ge[ge.length-2],this.lastChar[1]=ge[ge.length-1]),ge.toString("base64",me,ge.length-he))}function te(ge){var me=ge&&ge.length?this.write(ge):"";return this.lastNeed?me+this.lastChar.toString("base64",0,3-this.lastNeed):me}function le(ge){return ge.toString(this.encoding)}function fe(ge){return ge&&ge.length?this.write(ge):""}},{"safe-buffer":396}],414:[function(E,pe,de){(function(se,ne){(function(){var ie=E("process/browser.js").nextTick,ce=Function.prototype.apply,ue=Array.prototype.slice,ae={},oe=0;de.setTimeout=function(){return new re(ce.call(setTimeout,window,arguments),clearTimeout)},de.setInterval=function(){return new re(ce.call(setInterval,window,arguments),clearInterval)},de.clearTimeout=de.clearInterval=function(ee){ee.close()};function re(ee,a){this._id=ee,this._clearFn=a}re.prototype.unref=re.prototype.ref=function(){},re.prototype.close=function(){this._clearFn.call(window,this._id)},de.enroll=function(ee,a){clearTimeout(ee._idleTimeoutId),ee._idleTimeout=a},de.unenroll=function(ee){clearTimeout(ee._idleTimeoutId),ee._idleTimeout=-1},de._unrefActive=de.active=function(ee){clearTimeout(ee._idleTimeoutId);var a=ee._idleTimeout;a>=0&&(ee._idleTimeoutId=setTimeout(function(){ee._onTimeout&&ee._onTimeout()},a))},de.setImmediate=typeof se=="function"?se:function(ee){var a=oe++,y=arguments.length<2?!1:ue.call(arguments,1);return ae[a]=!0,ie(function(){ae[a]&&(y?ee.apply(null,y):ee.call(null),de.clearImmediate(a))}),a},de.clearImmediate=typeof ne=="function"?ne:function(ee){delete ae[ee]}}).call(this)}).call(this,E("timers").setImmediate,E("timers").clearImmediate)},{"process/browser.js":381,timers:414}],415:[function(E,pe,de){var se=E("buffer").Buffer;pe.exports=function(ne){if(ne instanceof Uint8Array){if(ne.byteOffset===0&&ne.byteLength===ne.buffer.byteLength)return ne.buffer;if(typeof ne.buffer.slice=="function")return ne.buffer.slice(ne.byteOffset,ne.byteOffset+ne.byteLength)}if(se.isBuffer(ne)){for(var ie=new Uint8Array(ne.length),ce=ne.length,ue=0;ue=Ye)return $e;switch($e){case"%s":return String(ut[Qe++]);case"%d":return Number(ut[Qe++]);case"%j":try{return JSON.stringify(ut[Qe++])}catch(Le){return"[Circular]"}default:return $e}}),Re=ut[Qe];Qe=3&&(Qe.depth=arguments[2]),arguments.length>=4&&(Qe.colors=arguments[3]),ge(ot)?Qe.showHidden=ot:ot&&de._extend(Qe,ot),we(Qe.showHidden)&&(Qe.showHidden=!1),we(Qe.depth)&&(Qe.depth=2),we(Qe.colors)&&(Qe.colors=!1),we(Qe.customInspect)&&(Qe.customInspect=!0),Qe.colors&&(Qe.stylize=re),y(Qe,Ue,Qe.depth)}de.inspect=oe,oe.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},oe.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function re(Ue,ot){var Qe=oe.styles[ot];return Qe?"\x1B["+oe.colors[Qe][0]+"m"+Ue+"\x1B["+oe.colors[Qe][1]+"m":Ue}function ee(Ue,ot){return Ue}function a(Ue){var ot={};return Ue.forEach(function(Qe,ut){ot[Qe]=!0}),ot}function y(Ue,ot,Qe){if(Ue.customInspect&&ot&&je(ot.inspect)&&ot.inspect!==de.inspect&&!(ot.constructor&&ot.constructor.prototype===ot)){var ut=ot.inspect(Qe,Ue);return ye(ut)||(ut=y(Ue,ut,Qe)),ut}var Ye=x(Ue,ot);if(Ye)return Ye;var He=Object.keys(ot),Re=a(He);if(Ue.showHidden&&(He=Object.getOwnPropertyNames(ot)),Ce(ot)&&(He.indexOf("message")>=0||He.indexOf("description")>=0))return b(ot);if(He.length===0){if(je(ot)){var $e=ot.name?": "+ot.name:"";return Ue.stylize("[Function"+$e+"]","special")}if(De(ot))return Ue.stylize(RegExp.prototype.toString.call(ot),"regexp");if(Ae(ot))return Ue.stylize(Date.prototype.toString.call(ot),"date");if(Ce(ot))return b(ot)}var Le="",Ne=!1,et=["{","}"];if(fe(ot)&&(Ne=!0,et=["[","]"]),je(ot)){var Ze=ot.name?": "+ot.name:"";Le=" [Function"+Ze+"]"}if(De(ot)&&(Le=" "+RegExp.prototype.toString.call(ot)),Ae(ot)&&(Le=" "+Date.prototype.toUTCString.call(ot)),Ce(ot)&&(Le=" "+b(ot)),He.length===0&&(!Ne||ot.length==0))return et[0]+Le+et[1];if(Qe<0)return De(ot)?Ue.stylize(RegExp.prototype.toString.call(ot),"regexp"):Ue.stylize("[Object]","special");Ue.seen.push(ot);var Be;return Ne?Be=z(Ue,ot,Qe,Re,He):Be=He.map(function(Oe){return te(Ue,ot,Qe,Re,Oe,Ne)}),Ue.seen.pop(),le(Be,Le,et)}function x(Ue,ot){if(we(ot))return Ue.stylize("undefined","undefined");if(ye(ot)){var Qe="'"+JSON.stringify(ot).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return Ue.stylize(Qe,"string")}if(Se(ot))return Ue.stylize(""+ot,"number");if(ge(ot))return Ue.stylize(""+ot,"boolean");if(me(ot))return Ue.stylize("null","null")}function b(Ue){return"["+Error.prototype.toString.call(Ue)+"]"}function z(Ue,ot,Qe,ut,Ye){for(var He=[],Re=0,$e=ot.length;Re<$e;++Re)Xe(ot,String(Re))?He.push(te(Ue,ot,Qe,ut,String(Re),!0)):He.push("");return Ye.forEach(function(Le){Le.match(/^\d+$/)||He.push(te(Ue,ot,Qe,ut,Le,!0))}),He}function te(Ue,ot,Qe,ut,Ye,He){var Re,$e,Le;if(Le=Object.getOwnPropertyDescriptor(ot,Ye)||{value:ot[Ye]},Le.get?Le.set?$e=Ue.stylize("[Getter/Setter]","special"):$e=Ue.stylize("[Getter]","special"):Le.set&&($e=Ue.stylize("[Setter]","special")),Xe(ut,Ye)||(Re="["+Ye+"]"),$e||(Ue.seen.indexOf(Le.value)<0?(me(Qe)?$e=y(Ue,Le.value,null):$e=y(Ue,Le.value,Qe-1),$e.indexOf(` `)>-1&&(He?$e=$e.split(` `).map(function(Ne){return" "+Ne}).join(` `).slice(2):$e=` `+$e.split(` `).map(function(Ne){return" "+Ne}).join(` `))):$e=Ue.stylize("[Circular]","special")),we(Re)){if(He&&Ye.match(/^\d+$/))return $e;Re=JSON.stringify(""+Ye),Re.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Re=Re.slice(1,-1),Re=Ue.stylize(Re,"name")):(Re=Re.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Re=Ue.stylize(Re,"string"))}return Re+": "+$e}function le(Ue,ot,Qe){var ut=0,Ye=Ue.reduce(function(He,Re){return ut++,Re.indexOf(` `)>=0&&ut++,He+Re.replace(/\u001b\[\d\d?m/g,"").length+1},0);return Ye>60?Qe[0]+(ot===""?"":ot+` `)+" "+Ue.join(`, `)+" "+Qe[1]:Qe[0]+ot+" "+Ue.join(", ")+" "+Qe[1]}de.types=E("./support/types");function fe(Ue){return Array.isArray(Ue)}de.isArray=fe;function ge(Ue){return typeof Ue=="boolean"}de.isBoolean=ge;function me(Ue){return Ue===null}de.isNull=me;function he(Ue){return Ue==null}de.isNullOrUndefined=he;function Se(Ue){return typeof Ue=="number"}de.isNumber=Se;function ye(Ue){return typeof Ue=="string"}de.isString=ye;function Pe(Ue){return typeof Ue=="symbol"}de.isSymbol=Pe;function we(Ue){return Ue===void 0}de.isUndefined=we;function De(Ue){return Ee(Ue)&&Ge(Ue)==="[object RegExp]"}de.isRegExp=De,de.types.isRegExp=De;function Ee(Ue){return typeof Ue=="object"&&Ue!==null}de.isObject=Ee;function Ae(Ue){return Ee(Ue)&&Ge(Ue)==="[object Date]"}de.isDate=Ae,de.types.isDate=Ae;function Ce(Ue){return Ee(Ue)&&(Ge(Ue)==="[object Error]"||Ue instanceof Error)}de.isError=Ce,de.types.isNativeError=Ce;function je(Ue){return typeof Ue=="function"}de.isFunction=je;function Me(Ue){return Ue===null||typeof Ue=="boolean"||typeof Ue=="number"||typeof Ue=="string"||typeof Ue=="symbol"||typeof Ue=="undefined"}de.isPrimitive=Me,de.isBuffer=E("./support/isBuffer");function Ge(Ue){return Object.prototype.toString.call(Ue)}function Fe(Ue){return Ue<10?"0"+Ue.toString(10):Ue.toString(10)}var Je=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function qe(){var Ue=new Date,ot=[Fe(Ue.getHours()),Fe(Ue.getMinutes()),Fe(Ue.getSeconds())].join(":");return[Ue.getDate(),Je[Ue.getMonth()],ot].join(" ")}de.log=function(){console.log("%s - %s",qe(),de.format.apply(de,arguments))},de.inherits=E("inherits"),de._extend=function(Ue,ot){if(!ot||!Ee(ot))return Ue;for(var Qe=Object.keys(ot),ut=Qe.length;ut--;)Ue[Qe[ut]]=ot[Qe[ut]];return Ue};function Xe(Ue,ot){return Object.prototype.hasOwnProperty.call(Ue,ot)}var Ve=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;de.promisify=function(ot){if(typeof ot!="function")throw new TypeError('The "original" argument must be of type Function');if(Ve&&ot[Ve]){var Qe=ot[Ve];if(typeof Qe!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(Qe,Ve,{value:Qe,enumerable:!1,writable:!1,configurable:!0}),Qe}function Qe(){for(var ut,Ye,He=new Promise(function(Le,Ne){ut=Le,Ye=Ne}),Re=[],$e=0;$e-1?me:me!=="Object"?!1:le(ge)}return ae?te(ge):null}}).call(this)}).call(this,typeof dt!="undefined"?dt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"available-typed-arrays":86,"call-bind":93,"call-bind/callBound":92,"for-each":345,gopd:349,"has-tostringtag/shams":353}],421:[function(E,pe,de){(function(){"use strict";de.stripBOM=function(se){return se[0]==="\uFEFF"?se.substring(1):se}}).call(this)},{}],422:[function(E,pe,de){(function(){"use strict";var se,ne,ie,ce,ue,ae={}.hasOwnProperty;se=E("xmlbuilder"),ne=E("./defaults").defaults,ce=function(oe){return typeof oe=="string"&&(oe.indexOf("&")>=0||oe.indexOf(">")>=0||oe.indexOf("<")>=0)},ue=function(oe){return""},ie=function(oe){return oe.replace("]]>","]]]]>")},de.Builder=function(){function oe(re){var ee,a,y;this.options={},a=ne["0.2"];for(ee in a)ae.call(a,ee)&&(y=a[ee],this.options[ee]=y);for(ee in re)ae.call(re,ee)&&(y=re[ee],this.options[ee]=y)}return oe.prototype.buildObject=function(re){var ee,a,y,x,b;return ee=this.options.attrkey,a=this.options.charkey,Object.keys(re).length===1&&this.options.rootName===ne["0.2"].rootName?(b=Object.keys(re)[0],re=re[b]):b=this.options.rootName,y=function(z){return function(te,le){var fe,ge,me,he,Se,ye;if(typeof le!="object")z.options.cdata&&ce(le)?te.raw(ue(le)):te.txt(le);else if(Array.isArray(le)){for(he in le)if(ae.call(le,he)){ge=le[he];for(Se in ge)me=ge[Se],te=y(te.ele(Se),me).up()}}else for(Se in le)if(ae.call(le,Se))if(ge=le[Se],Se===ee){if(typeof ge=="object")for(fe in ge)ye=ge[fe],te=te.att(fe,ye)}else if(Se===a)z.options.cdata&&ce(ge)?te=te.raw(ue(ge)):te=te.txt(ge);else if(Array.isArray(ge))for(he in ge)ae.call(ge,he)&&(me=ge[he],typeof me=="string"?z.options.cdata&&ce(me)?te=te.ele(Se).raw(ue(me)).up():te=te.ele(Se,me).up():te=y(te.ele(Se),me).up());else typeof ge=="object"?te=y(te.ele(Se),ge).up():typeof ge=="string"&&z.options.cdata&&ce(ge)?te=te.ele(Se).raw(ue(ge)).up():(ge==null&&(ge=""),te=te.ele(Se,ge.toString()).up());return te}}(this),x=se.create(b,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),y(x,re).end(this.options.renderOpts)},oe}()}).call(this)},{"./defaults":423,xmlbuilder:459}],423:[function(E,pe,de){(function(){de.defaults={"0.1":{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},"0.2":{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline:` `},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(this)},{}],424:[function(E,pe,de){(function(){"use strict";var se,ne,ie,ce,ue,ae,oe,re,ee,a=function(b,z){return function(){return b.apply(z,arguments)}},y=function(b,z){for(var te in z)x.call(z,te)&&(b[te]=z[te]);function le(){this.constructor=b}return le.prototype=z.prototype,b.prototype=new le,b.__super__=z.prototype,b},x={}.hasOwnProperty;re=E("sax"),ce=E("events"),se=E("./bom"),oe=E("./processors"),ee=E("timers").setImmediate,ne=E("./defaults").defaults,ue=function(b){return typeof b=="object"&&b!=null&&Object.keys(b).length===0},ae=function(b,z,te){var le,fe,ge;for(le=0,fe=b.length;le0&&(Pe[me.options.childkey]=De),De=Pe;else if(Ce){Ce[me.options.childkey]=Ce[me.options.childkey]||[],Ee={};for(ye in De)x.call(De,ye)&&ie(Ee,ye,De[ye]);Ce[me.options.childkey].push(Ee),delete De["#name"],Object.keys(De).length===1&&le in De&&!me.EXPLICIT_CHARKEY&&(De=De[le])}}return ge.length>0?me.assignOrPush(Ce,we,De):(me.options.explicitRoot&&(Ae=De,De={},ie(De,we,Ae)),me.resultObject=De,me.saxParser.ended=!0,me.emit("end",me.resultObject))}}(this),fe=function(me){return function(he){var Se,ye;if(ye=ge[ge.length-1],ye)return ye[le]+=he,me.options.explicitChildren&&me.options.preserveChildrenOrder&&me.options.charsAsChildren&&(me.options.includeWhiteChars||he.replace(/\\n/g,"").trim()!=="")&&(ye[me.options.childkey]=ye[me.options.childkey]||[],Se={"#name":"__text__"},Se[le]=he,me.options.normalize&&(Se[le]=Se[le].replace(/\s{2,}/g," ").trim()),ye[me.options.childkey].push(Se)),ye}}(this),this.saxParser.ontext=fe,this.saxParser.oncdata=function(me){return function(he){var Se;if(Se=fe(he),Se)return Se.cdata=!0}}(this)},z.prototype.parseString=function(te,le){var fe;le!=null&&typeof le=="function"&&(this.on("end",function(ge){return this.reset(),le(null,ge)}),this.on("error",function(ge){return this.reset(),le(ge)}));try{return te=te.toString(),te.trim()===""?(this.emit("end",null),!0):(te=se.stripBOM(te),this.options.async?(this.remaining=te,ee(this.processAsync),this.saxParser):this.saxParser.write(te).close())}catch(ge){if(fe=ge,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw fe}else return this.emit("error",fe),this.saxParser.errThrown=!0}},z.prototype.parseStringPromise=function(te){return new Promise(function(le){return function(fe,ge){return le.parseString(te,function(me,he){return me?ge(me):fe(he)})}}(this))},z}(ce),de.parseString=function(b,z,te){var le,fe,ge;return te!=null?(typeof te=="function"&&(le=te),typeof z=="object"&&(fe=z)):(typeof z=="function"&&(le=z),fe={}),ge=new de.Parser(fe),ge.parseString(b,le)},de.parseStringPromise=function(b,z){var te,le;return typeof z=="object"&&(te=z),le=new de.Parser(te),le.parseStringPromise(b)}}).call(this)},{"./bom":421,"./defaults":423,"./processors":425,events:344,sax:397,timers:414}],425:[function(E,pe,de){(function(){"use strict";var se;se=new RegExp(/(?!xmlns)^.*:/),de.normalize=function(ne){return ne.toLowerCase()},de.firstCharLowerCase=function(ne){return ne.charAt(0).toLowerCase()+ne.slice(1)},de.stripPrefix=function(ne){return ne.replace(se,"")},de.parseNumbers=function(ne){return isNaN(ne)||(ne=ne%1===0?parseInt(ne,10):parseFloat(ne)),ne},de.parseBooleans=function(ne){return/^(?:true|false)$/i.test(ne)&&(ne=ne.toLowerCase()==="true"),ne}}).call(this)},{}],426:[function(E,pe,de){(function(){"use strict";var se,ne,ie,ce,ue=function(oe,re){for(var ee in re)ae.call(re,ee)&&(oe[ee]=re[ee]);function a(){this.constructor=oe}return a.prototype=re.prototype,oe.prototype=new a,oe.__super__=re.prototype,oe},ae={}.hasOwnProperty;ne=E("./defaults"),se=E("./builder"),ie=E("./parser"),ce=E("./processors"),de.defaults=ne.defaults,de.processors=ce,de.ValidationError=function(oe){ue(re,oe);function re(ee){this.message=ee}return re}(Error),de.Builder=se.Builder,de.Parser=ie.Parser,de.parseString=ie.parseString,de.parseStringPromise=ie.parseStringPromise}).call(this)},{"./builder":422,"./defaults":423,"./parser":424,"./processors":425}],427:[function(E,pe,de){(function(){pe.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(this)},{}],428:[function(E,pe,de){(function(){pe.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(this)},{}],429:[function(E,pe,de){(function(){var se,ne,ie,ce,ue,ae,oe,re=[].slice,ee={}.hasOwnProperty;se=function(){var a,y,x,b,z,te;if(te=arguments[0],z=2<=arguments.length?re.call(arguments,1):[],ue(Object.assign))Object.assign.apply(null,arguments);else for(a=0,x=z.length;a":"attribute: {"+ue+"}, parent: <"+this.parent.name+">"},ce.prototype.isEqualNode=function(ue){return!(ue.namespaceURI!==this.namespaceURI||ue.prefix!==this.prefix||ue.localName!==this.localName||ue.value!==this.value)},ce}()}).call(this)},{"./NodeType":428,"./XMLNode":450}],432:[function(E,pe,de){(function(){var se,ne,ie,ce=function(ae,oe){for(var re in oe)ue.call(oe,re)&&(ae[re]=oe[re]);function ee(){this.constructor=ae}return ee.prototype=oe.prototype,ae.prototype=new ee,ae.__super__=oe.prototype,ae},ue={}.hasOwnProperty;se=E("./NodeType"),ie=E("./XMLCharacterData"),pe.exports=ne=function(ae){ce(oe,ae);function oe(re,ee){if(oe.__super__.constructor.call(this,re),ee==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=se.CData,this.value=this.stringify.cdata(ee)}return oe.prototype.clone=function(){return Object.create(this)},oe.prototype.toString=function(re){return this.options.writer.cdata(this,this.options.writer.filterOptions(re))},oe}(ie)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],433:[function(E,pe,de){(function(){var se,ne,ie=function(ue,ae){for(var oe in ae)ce.call(ae,oe)&&(ue[oe]=ae[oe]);function re(){this.constructor=ue}return re.prototype=ae.prototype,ue.prototype=new re,ue.__super__=ae.prototype,ue},ce={}.hasOwnProperty;ne=E("./XMLNode"),pe.exports=se=function(ue){ie(ae,ue);function ae(oe){ae.__super__.constructor.call(this,oe),this.value=""}return Object.defineProperty(ae.prototype,"data",{get:function(){return this.value},set:function(oe){return this.value=oe||""}}),Object.defineProperty(ae.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(ae.prototype,"textContent",{get:function(){return this.value},set:function(oe){return this.value=oe||""}}),ae.prototype.clone=function(){return Object.create(this)},ae.prototype.substringData=function(oe,re){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.appendData=function(oe){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.insertData=function(oe,re){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.deleteData=function(oe,re){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.replaceData=function(oe,re,ee){throw new Error("This DOM method is not implemented."+this.debugInfo())},ae.prototype.isEqualNode=function(oe){return!(!ae.__super__.isEqualNode.apply(this,arguments).isEqualNode(oe)||oe.data!==this.data)},ae}(ne)}).call(this)},{"./XMLNode":450}],434:[function(E,pe,de){(function(){var se,ne,ie,ce=function(ae,oe){for(var re in oe)ue.call(oe,re)&&(ae[re]=oe[re]);function ee(){this.constructor=ae}return ee.prototype=oe.prototype,ae.prototype=new ee,ae.__super__=oe.prototype,ae},ue={}.hasOwnProperty;se=E("./NodeType"),ne=E("./XMLCharacterData"),pe.exports=ie=function(ae){ce(oe,ae);function oe(re,ee){if(oe.__super__.constructor.call(this,re),ee==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=se.Comment,this.value=this.stringify.comment(ee)}return oe.prototype.clone=function(){return Object.create(this)},oe.prototype.toString=function(re){return this.options.writer.comment(this,this.options.writer.filterOptions(re))},oe}(ne)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],435:[function(E,pe,de){(function(){var se,ne,ie;ne=E("./XMLDOMErrorHandler"),ie=E("./XMLDOMStringList"),pe.exports=se=function(){function ce(){var ue;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new ne,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=ue=Object.create(this.defaultParams)}return Object.defineProperty(ce.prototype,"parameterNames",{get:function(){return new ie(Object.keys(this.defaultParams))}}),ce.prototype.getParameter=function(ue){return this.params.hasOwnProperty(ue)?this.params[ue]:null},ce.prototype.canSetParameter=function(ue,ae){return!0},ce.prototype.setParameter=function(ue,ae){return ae!=null?this.params[ue]=ae:delete this.params[ue]},ce}()}).call(this)},{"./XMLDOMErrorHandler":436,"./XMLDOMStringList":438}],436:[function(E,pe,de){(function(){var se;pe.exports=se=function(){function ne(){}return ne.prototype.handleError=function(ie){throw new Error(ie)},ne}()}).call(this)},{}],437:[function(E,pe,de){(function(){var se;pe.exports=se=function(){function ne(){}return ne.prototype.hasFeature=function(ie,ce){return!0},ne.prototype.createDocumentType=function(ie,ce,ue){throw new Error("This DOM method is not implemented.")},ne.prototype.createDocument=function(ie,ce,ue){throw new Error("This DOM method is not implemented.")},ne.prototype.createHTMLDocument=function(ie){throw new Error("This DOM method is not implemented.")},ne.prototype.getFeature=function(ie,ce){throw new Error("This DOM method is not implemented.")},ne}()}).call(this)},{}],438:[function(E,pe,de){(function(){var se;pe.exports=se=function(){function ne(ie){this.arr=ie||[]}return Object.defineProperty(ne.prototype,"length",{get:function(){return this.arr.length}}),ne.prototype.item=function(ie){return this.arr[ie]||null},ne.prototype.contains=function(ie){return this.arr.indexOf(ie)!==-1},ne}()}).call(this)},{}],439:[function(E,pe,de){(function(){var se,ne,ie,ce=function(ae,oe){for(var re in oe)ue.call(oe,re)&&(ae[re]=oe[re]);function ee(){this.constructor=ae}return ee.prototype=oe.prototype,ae.prototype=new ee,ae.__super__=oe.prototype,ae},ue={}.hasOwnProperty;ie=E("./XMLNode"),se=E("./NodeType"),pe.exports=ne=function(ae){ce(oe,ae);function oe(re,ee,a,y,x,b){if(oe.__super__.constructor.call(this,re),ee==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(a==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(ee));if(!y)throw new Error("Missing DTD attribute type. "+this.debugInfo(ee));if(!x)throw new Error("Missing DTD attribute default. "+this.debugInfo(ee));if(x.indexOf("#")!==0&&(x="#"+x),!x.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(ee));if(b&&!x.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(ee));this.elementName=this.stringify.name(ee),this.type=se.AttributeDeclaration,this.attributeName=this.stringify.name(a),this.attributeType=this.stringify.dtdAttType(y),b&&(this.defaultValue=this.stringify.dtdAttDefault(b)),this.defaultValueType=x}return oe.prototype.toString=function(re){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(re))},oe}(ie)}).call(this)},{"./NodeType":428,"./XMLNode":450}],440:[function(E,pe,de){(function(){var se,ne,ie,ce=function(ae,oe){for(var re in oe)ue.call(oe,re)&&(ae[re]=oe[re]);function ee(){this.constructor=ae}return ee.prototype=oe.prototype,ae.prototype=new ee,ae.__super__=oe.prototype,ae},ue={}.hasOwnProperty;ie=E("./XMLNode"),se=E("./NodeType"),pe.exports=ne=function(ae){ce(oe,ae);function oe(re,ee,a){if(oe.__super__.constructor.call(this,re),ee==null)throw new Error("Missing DTD element name. "+this.debugInfo());a||(a="(#PCDATA)"),Array.isArray(a)&&(a="("+a.join(",")+")"),this.name=this.stringify.name(ee),this.type=se.ElementDeclaration,this.value=this.stringify.dtdElementValue(a)}return oe.prototype.toString=function(re){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(re))},oe}(ie)}).call(this)},{"./NodeType":428,"./XMLNode":450}],441:[function(E,pe,de){(function(){var se,ne,ie,ce,ue=function(oe,re){for(var ee in re)ae.call(re,ee)&&(oe[ee]=re[ee]);function a(){this.constructor=oe}return a.prototype=re.prototype,oe.prototype=new a,oe.__super__=re.prototype,oe},ae={}.hasOwnProperty;ce=E("./Utility").isObject,ie=E("./XMLNode"),se=E("./NodeType"),pe.exports=ne=function(oe){ue(re,oe);function re(ee,a,y,x){if(re.__super__.constructor.call(this,ee),y==null)throw new Error("Missing DTD entity name. "+this.debugInfo(y));if(x==null)throw new Error("Missing DTD entity value. "+this.debugInfo(y));if(this.pe=!!a,this.name=this.stringify.name(y),this.type=se.EntityDeclaration,!ce(x))this.value=this.stringify.dtdEntityValue(x),this.internal=!0;else{if(!x.pubID&&!x.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(y));if(x.pubID&&!x.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(y));if(this.internal=!1,x.pubID!=null&&(this.pubID=this.stringify.dtdPubID(x.pubID)),x.sysID!=null&&(this.sysID=this.stringify.dtdSysID(x.sysID)),x.nData!=null&&(this.nData=this.stringify.dtdNData(x.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(y))}}return Object.defineProperty(re.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(re.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(re.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(re.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(re.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(re.prototype,"xmlVersion",{get:function(){return null}}),re.prototype.toString=function(ee){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(ee))},re}(ie)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLNode":450}],442:[function(E,pe,de){(function(){var se,ne,ie,ce=function(ae,oe){for(var re in oe)ue.call(oe,re)&&(ae[re]=oe[re]);function ee(){this.constructor=ae}return ee.prototype=oe.prototype,ae.prototype=new ee,ae.__super__=oe.prototype,ae},ue={}.hasOwnProperty;ie=E("./XMLNode"),se=E("./NodeType"),pe.exports=ne=function(ae){ce(oe,ae);function oe(re,ee,a){if(oe.__super__.constructor.call(this,re),ee==null)throw new Error("Missing DTD notation name. "+this.debugInfo(ee));if(!a.pubID&&!a.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(ee));this.name=this.stringify.name(ee),this.type=se.NotationDeclaration,a.pubID!=null&&(this.pubID=this.stringify.dtdPubID(a.pubID)),a.sysID!=null&&(this.sysID=this.stringify.dtdSysID(a.sysID))}return Object.defineProperty(oe.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(oe.prototype,"systemId",{get:function(){return this.sysID}}),oe.prototype.toString=function(re){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(re))},oe}(ie)}).call(this)},{"./NodeType":428,"./XMLNode":450}],443:[function(E,pe,de){(function(){var se,ne,ie,ce,ue=function(oe,re){for(var ee in re)ae.call(re,ee)&&(oe[ee]=re[ee]);function a(){this.constructor=oe}return a.prototype=re.prototype,oe.prototype=new a,oe.__super__=re.prototype,oe},ae={}.hasOwnProperty;ce=E("./Utility").isObject,ie=E("./XMLNode"),se=E("./NodeType"),pe.exports=ne=function(oe){ue(re,oe);function re(ee,a,y,x){var b;re.__super__.constructor.call(this,ee),ce(a)&&(b=a,a=b.version,y=b.encoding,x=b.standalone),a||(a="1.0"),this.type=se.Declaration,this.version=this.stringify.xmlVersion(a),y!=null&&(this.encoding=this.stringify.xmlEncoding(y)),x!=null&&(this.standalone=this.stringify.xmlStandalone(x))}return re.prototype.toString=function(ee){return this.options.writer.declaration(this,this.options.writer.filterOptions(ee))},re}(ie)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLNode":450}],444:[function(E,pe,de){(function(){var se,ne,ie,ce,ue,ae,oe,re,ee,a=function(x,b){for(var z in b)y.call(b,z)&&(x[z]=b[z]);function te(){this.constructor=x}return te.prototype=b.prototype,x.prototype=new te,x.__super__=b.prototype,x},y={}.hasOwnProperty;ee=E("./Utility").isObject,re=E("./XMLNode"),se=E("./NodeType"),ne=E("./XMLDTDAttList"),ce=E("./XMLDTDEntity"),ie=E("./XMLDTDElement"),ue=E("./XMLDTDNotation"),oe=E("./XMLNamedNodeMap"),pe.exports=ae=function(x){a(b,x);function b(z,te,le){var fe,ge,me,he,Se,ye;if(b.__super__.constructor.call(this,z),this.type=se.DocType,z.children){for(he=z.children,ge=0,me=he.length;ge=0;)this.up();return this.onEnd()},Ee.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},Ee.prototype.openNode=function(Ae){var Ce,je,Me,Ge;if(!Ae.isOpen){if(!this.root&&this.currentLevel===0&&Ae.type===se.Element&&(this.root=Ae),je="",Ae.type===se.Element){this.writerOptions.state=ne.OpenTag,je=this.writer.indent(Ae,this.writerOptions,this.currentLevel)+"<"+Ae.name,Ge=Ae.attribs;for(Me in Ge)De.call(Ge,Me)&&(Ce=Ge[Me],je+=this.writer.attribute(Ce,this.writerOptions,this.currentLevel));je+=(Ae.children?">":"/>")+this.writer.endline(Ae,this.writerOptions,this.currentLevel),this.writerOptions.state=ne.InsideTag}else this.writerOptions.state=ne.OpenTag,je=this.writer.indent(Ae,this.writerOptions,this.currentLevel)+""),je+=this.writer.endline(Ae,this.writerOptions,this.currentLevel);return this.onData(je,this.currentLevel),Ae.isOpen=!0}},Ee.prototype.closeNode=function(Ae){var Ce;if(!Ae.isClosed)return Ce="",this.writerOptions.state=ne.CloseTag,Ae.type===se.Element?Ce=this.writer.indent(Ae,this.writerOptions,this.currentLevel)+""+this.writer.endline(Ae,this.writerOptions,this.currentLevel):Ce=this.writer.indent(Ae,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(Ae,this.writerOptions,this.currentLevel),this.writerOptions.state=ne.None,this.onData(Ce,this.currentLevel),Ae.isClosed=!0},Ee.prototype.onData=function(Ae,Ce){return this.documentStarted=!0,this.onDataCallback(Ae,Ce+1)},Ee.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},Ee.prototype.debugInfo=function(Ae){return Ae==null?"":"node: <"+Ae+">"},Ee.prototype.ele=function(){return this.element.apply(this,arguments)},Ee.prototype.nod=function(Ae,Ce,je){return this.node(Ae,Ce,je)},Ee.prototype.txt=function(Ae){return this.text(Ae)},Ee.prototype.dat=function(Ae){return this.cdata(Ae)},Ee.prototype.com=function(Ae){return this.comment(Ae)},Ee.prototype.ins=function(Ae,Ce){return this.instruction(Ae,Ce)},Ee.prototype.dec=function(Ae,Ce,je){return this.declaration(Ae,Ce,je)},Ee.prototype.dtd=function(Ae,Ce,je){return this.doctype(Ae,Ce,je)},Ee.prototype.e=function(Ae,Ce,je){return this.element(Ae,Ce,je)},Ee.prototype.n=function(Ae,Ce,je){return this.node(Ae,Ce,je)},Ee.prototype.t=function(Ae){return this.text(Ae)},Ee.prototype.d=function(Ae){return this.cdata(Ae)},Ee.prototype.c=function(Ae){return this.comment(Ae)},Ee.prototype.r=function(Ae){return this.raw(Ae)},Ee.prototype.i=function(Ae,Ce){return this.instruction(Ae,Ce)},Ee.prototype.att=function(){return this.currentNode&&this.currentNode.type===se.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},Ee.prototype.a=function(){return this.currentNode&&this.currentNode.type===se.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},Ee.prototype.ent=function(Ae,Ce){return this.entity(Ae,Ce)},Ee.prototype.pent=function(Ae,Ce){return this.pEntity(Ae,Ce)},Ee.prototype.not=function(Ae,Ce){return this.notation(Ae,Ce)},Ee}()}).call(this)},{"./NodeType":428,"./Utility":429,"./WriterState":430,"./XMLAttribute":431,"./XMLCData":432,"./XMLComment":434,"./XMLDTDAttList":439,"./XMLDTDElement":440,"./XMLDTDEntity":441,"./XMLDTDNotation":442,"./XMLDeclaration":443,"./XMLDocType":444,"./XMLDocument":445,"./XMLElement":448,"./XMLProcessingInstruction":452,"./XMLRaw":453,"./XMLStringWriter":455,"./XMLStringifier":456,"./XMLText":457}],447:[function(E,pe,de){(function(){var se,ne,ie,ce=function(ae,oe){for(var re in oe)ue.call(oe,re)&&(ae[re]=oe[re]);function ee(){this.constructor=ae}return ee.prototype=oe.prototype,ae.prototype=new ee,ae.__super__=oe.prototype,ae},ue={}.hasOwnProperty;ie=E("./XMLNode"),se=E("./NodeType"),pe.exports=ne=function(ae){ce(oe,ae);function oe(re){oe.__super__.constructor.call(this,re),this.type=se.Dummy}return oe.prototype.clone=function(){return Object.create(this)},oe.prototype.toString=function(re){return""},oe}(ie)}).call(this)},{"./NodeType":428,"./XMLNode":450}],448:[function(E,pe,de){(function(){var se,ne,ie,ce,ue,ae,oe,re,ee,a=function(x,b){for(var z in b)y.call(b,z)&&(x[z]=b[z]);function te(){this.constructor=x}return te.prototype=b.prototype,x.prototype=new te,x.__super__=b.prototype,x},y={}.hasOwnProperty;ee=E("./Utility"),re=ee.isObject,oe=ee.isFunction,ae=ee.getValue,ue=E("./XMLNode"),se=E("./NodeType"),ne=E("./XMLAttribute"),ce=E("./XMLNamedNodeMap"),pe.exports=ie=function(x){a(b,x);function b(z,te,le){var fe,ge,me,he;if(b.__super__.constructor.call(this,z),te==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(te),this.type=se.Element,this.attribs={},this.schemaTypeInfo=null,le!=null&&this.attribute(le),z.type===se.Document&&(this.isRoot=!0,this.documentObject=z,z.rootObject=this,z.children)){for(he=z.children,ge=0,me=he.length;ge=fe;te=0<=fe?++le:--le)if(!this.attribs[te].isEqualNode(z.attribs[te]))return!1;return!0},b}(ue)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLAttribute":431,"./XMLNamedNodeMap":449,"./XMLNode":450}],449:[function(E,pe,de){(function(){var se;pe.exports=se=function(){function ne(ie){this.nodes=ie}return Object.defineProperty(ne.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),ne.prototype.clone=function(){return this.nodes=null},ne.prototype.getNamedItem=function(ie){return this.nodes[ie]},ne.prototype.setNamedItem=function(ie){var ce;return ce=this.nodes[ie.nodeName],this.nodes[ie.nodeName]=ie,ce||null},ne.prototype.removeNamedItem=function(ie){var ce;return ce=this.nodes[ie],delete this.nodes[ie],ce||null},ne.prototype.item=function(ie){return this.nodes[Object.keys(this.nodes)[ie]]||null},ne.prototype.getNamedItemNS=function(ie,ce){throw new Error("This DOM method is not implemented.")},ne.prototype.setNamedItemNS=function(ie){throw new Error("This DOM method is not implemented.")},ne.prototype.removeNamedItemNS=function(ie,ce){throw new Error("This DOM method is not implemented.")},ne}()}).call(this)},{}],450:[function(E,pe,de){(function(){var se,ne,ie,ce,ue,ae,oe,re,ee,a,y,x,b,z,te,le,fe,ge,me,he={}.hasOwnProperty;me=E("./Utility"),ge=me.isObject,fe=me.isFunction,le=me.isEmpty,te=me.getValue,re=null,ie=null,ce=null,ue=null,ae=null,b=null,z=null,x=null,oe=null,ne=null,y=null,ee=null,se=null,pe.exports=a=function(){function Se(ye){this.parent=ye,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,re||(re=E("./XMLElement"),ie=E("./XMLCData"),ce=E("./XMLComment"),ue=E("./XMLDeclaration"),ae=E("./XMLDocType"),b=E("./XMLRaw"),z=E("./XMLText"),x=E("./XMLProcessingInstruction"),oe=E("./XMLDummy"),ne=E("./NodeType"),y=E("./XMLNodeList"),ee=E("./XMLNamedNodeMap"),se=E("./DocumentPosition"))}return Object.defineProperty(Se.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(Se.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(Se.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(Se.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(Se.prototype,"childNodes",{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new y(this.children)),this.childNodeList}}),Object.defineProperty(Se.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(Se.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(Se.prototype,"previousSibling",{get:function(){var ye;return ye=this.parent.children.indexOf(this),this.parent.children[ye-1]||null}}),Object.defineProperty(Se.prototype,"nextSibling",{get:function(){var ye;return ye=this.parent.children.indexOf(this),this.parent.children[ye+1]||null}}),Object.defineProperty(Se.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(Se.prototype,"textContent",{get:function(){var ye,Pe,we,De,Ee;if(this.nodeType===ne.Element||this.nodeType===ne.DocumentFragment){for(Ee="",De=this.children,Pe=0,we=De.length;Pe":(we=this.parent)!=null&&we.name?"node: <"+ye+">, parent: <"+this.parent.name+">":"node: <"+ye+">"},Se.prototype.ele=function(ye,Pe,we){return this.element(ye,Pe,we)},Se.prototype.nod=function(ye,Pe,we){return this.node(ye,Pe,we)},Se.prototype.txt=function(ye){return this.text(ye)},Se.prototype.dat=function(ye){return this.cdata(ye)},Se.prototype.com=function(ye){return this.comment(ye)},Se.prototype.ins=function(ye,Pe){return this.instruction(ye,Pe)},Se.prototype.doc=function(){return this.document()},Se.prototype.dec=function(ye,Pe,we){return this.declaration(ye,Pe,we)},Se.prototype.e=function(ye,Pe,we){return this.element(ye,Pe,we)},Se.prototype.n=function(ye,Pe,we){return this.node(ye,Pe,we)},Se.prototype.t=function(ye){return this.text(ye)},Se.prototype.d=function(ye){return this.cdata(ye)},Se.prototype.c=function(ye){return this.comment(ye)},Se.prototype.r=function(ye){return this.raw(ye)},Se.prototype.i=function(ye,Pe){return this.instruction(ye,Pe)},Se.prototype.u=function(){return this.up()},Se.prototype.importXMLBuilder=function(ye){return this.importDocument(ye)},Se.prototype.replaceChild=function(ye,Pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.removeChild=function(ye){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.appendChild=function(ye){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.hasChildNodes=function(){return this.children.length!==0},Se.prototype.cloneNode=function(ye){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.isSupported=function(ye,Pe){return!0},Se.prototype.hasAttributes=function(){return this.attribs.length!==0},Se.prototype.compareDocumentPosition=function(ye){var Pe,we;return Pe=this,Pe===ye?0:this.document()!==ye.document()?(we=se.Disconnected|se.ImplementationSpecific,Math.random()<.5?we|=se.Preceding:we|=se.Following,we):Pe.isAncestor(ye)?se.Contains|se.Preceding:Pe.isDescendant(ye)?se.Contains|se.Following:Pe.isPreceding(ye)?se.Preceding:se.Following},Se.prototype.isSameNode=function(ye){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.lookupPrefix=function(ye){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.isDefaultNamespace=function(ye){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.lookupNamespaceURI=function(ye){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.isEqualNode=function(ye){var Pe,we,De;if(ye.nodeType!==this.nodeType||ye.children.length!==this.children.length)return!1;for(Pe=we=0,De=this.children.length-1;0<=De?we<=De:we>=De;Pe=0<=De?++we:--we)if(!this.children[Pe].isEqualNode(ye.children[Pe]))return!1;return!0},Se.prototype.getFeature=function(ye,Pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.setUserData=function(ye,Pe,we){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.getUserData=function(ye){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.contains=function(ye){return ye?ye===this||this.isDescendant(ye):!1},Se.prototype.isDescendant=function(ye){var Pe,we,De,Ee,Ae;for(Ae=this.children,De=0,Ee=Ae.length;Dewe},Se.prototype.treePosition=function(ye){var Pe,we;return we=0,Pe=!1,this.foreachTreeNode(this.document(),function(De){if(we++,!Pe&&De===ye)return Pe=!0}),Pe?we:-1},Se.prototype.foreachTreeNode=function(ye,Pe){var we,De,Ee,Ae,Ce;for(ye||(ye=this.document()),Ae=ye.children,De=0,Ee=Ae.length;De0){for(this.stream.write(" ["),this.stream.write(this.endline(ee,a,y)),a.state=ne.InsideTag,te=ee.children,b=0,z=te.length;b"),this.stream.write(this.endline(ee,a,y)),a.state=ne.None,this.closeNode(ee,a,y)},re.prototype.element=function(ee,a,y){var x,b,z,te,le,fe,ge,me,he,Se;y||(y=0),this.openNode(ee,a,y),a.state=ne.OpenTag,this.stream.write(this.indent(ee,a,y)+"<"+ee.name),he=ee.attribs;for(ge in he)ae.call(he,ge)&&(x=he[ge],this.attribute(x,a,y));if(z=ee.children.length,te=z===0?null:ee.children[0],z===0||ee.children.every(function(ye){return(ye.type===se.Text||ye.type===se.Raw)&&ye.value===""}))a.allowEmpty?(this.stream.write(">"),a.state=ne.CloseTag,this.stream.write("")):(a.state=ne.CloseTag,this.stream.write(a.spaceBeforeSlash+"/>"));else if(a.pretty&&z===1&&(te.type===se.Text||te.type===se.Raw)&&te.value!=null)this.stream.write(">"),a.state=ne.InsideTag,a.suppressPrettyCount++,me=!0,this.writeChildNode(te,a,y+1),a.suppressPrettyCount--,me=!1,a.state=ne.CloseTag,this.stream.write("");else{for(this.stream.write(">"+this.endline(ee,a,y)),a.state=ne.InsideTag,Se=ee.children,le=0,fe=Se.length;le")}return this.stream.write(this.endline(ee,a,y)),a.state=ne.None,this.closeNode(ee,a,y)},re.prototype.processingInstruction=function(ee,a,y){return this.stream.write(re.__super__.processingInstruction.call(this,ee,a,y))},re.prototype.raw=function(ee,a,y){return this.stream.write(re.__super__.raw.call(this,ee,a,y))},re.prototype.text=function(ee,a,y){return this.stream.write(re.__super__.text.call(this,ee,a,y))},re.prototype.dtdAttList=function(ee,a,y){return this.stream.write(re.__super__.dtdAttList.call(this,ee,a,y))},re.prototype.dtdElement=function(ee,a,y){return this.stream.write(re.__super__.dtdElement.call(this,ee,a,y))},re.prototype.dtdEntity=function(ee,a,y){return this.stream.write(re.__super__.dtdEntity.call(this,ee,a,y))},re.prototype.dtdNotation=function(ee,a,y){return this.stream.write(re.__super__.dtdNotation.call(this,ee,a,y))},re}(ce)}).call(this)},{"./NodeType":428,"./WriterState":430,"./XMLWriterBase":458}],455:[function(E,pe,de){(function(){var se,ne,ie=function(ue,ae){for(var oe in ae)ce.call(ae,oe)&&(ue[oe]=ae[oe]);function re(){this.constructor=ue}return re.prototype=ae.prototype,ue.prototype=new re,ue.__super__=ae.prototype,ue},ce={}.hasOwnProperty;ne=E("./XMLWriterBase"),pe.exports=se=function(ue){ie(ae,ue);function ae(oe){ae.__super__.constructor.call(this,oe)}return ae.prototype.document=function(oe,re){var ee,a,y,x,b;for(re=this.filterOptions(re),x="",b=oe.children,a=0,y=b.length;a","]]]]>"),this.assertLegalChar(ue))},ce.prototype.comment=function(ue){if(this.options.noValidation)return ue;if(ue=""+ue||"",ue.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+ue);return this.assertLegalChar(ue)},ce.prototype.raw=function(ue){return this.options.noValidation?ue:""+ue||""},ce.prototype.attValue=function(ue){return this.options.noValidation?ue:this.assertLegalChar(this.attEscape(ue=""+ue||""))},ce.prototype.insTarget=function(ue){return this.options.noValidation?ue:this.assertLegalChar(""+ue||"")},ce.prototype.insValue=function(ue){if(this.options.noValidation)return ue;if(ue=""+ue||"",ue.match(/\?>/))throw new Error("Invalid processing instruction value: "+ue);return this.assertLegalChar(ue)},ce.prototype.xmlVersion=function(ue){if(this.options.noValidation)return ue;if(ue=""+ue||"",!ue.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+ue);return ue},ce.prototype.xmlEncoding=function(ue){if(this.options.noValidation)return ue;if(ue=""+ue||"",!ue.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+ue);return this.assertLegalChar(ue)},ce.prototype.xmlStandalone=function(ue){return this.options.noValidation?ue:ue?"yes":"no"},ce.prototype.dtdPubID=function(ue){return this.options.noValidation?ue:this.assertLegalChar(""+ue||"")},ce.prototype.dtdSysID=function(ue){return this.options.noValidation?ue:this.assertLegalChar(""+ue||"")},ce.prototype.dtdElementValue=function(ue){return this.options.noValidation?ue:this.assertLegalChar(""+ue||"")},ce.prototype.dtdAttType=function(ue){return this.options.noValidation?ue:this.assertLegalChar(""+ue||"")},ce.prototype.dtdAttDefault=function(ue){return this.options.noValidation?ue:this.assertLegalChar(""+ue||"")},ce.prototype.dtdEntityValue=function(ue){return this.options.noValidation?ue:this.assertLegalChar(""+ue||"")},ce.prototype.dtdNData=function(ue){return this.options.noValidation?ue:this.assertLegalChar(""+ue||"")},ce.prototype.convertAttKey="@",ce.prototype.convertPIKey="?",ce.prototype.convertTextKey="#text",ce.prototype.convertCDataKey="#cdata",ce.prototype.convertCommentKey="#comment",ce.prototype.convertRawKey="#raw",ce.prototype.assertLegalChar=function(ue){var ae,oe;if(this.options.noValidation)return ue;if(ae="",this.options.version==="1.0"){if(ae=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,oe=ue.match(ae))throw new Error("Invalid character in string: "+ue+" at index "+oe.index)}else if(this.options.version==="1.1"&&(ae=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,oe=ue.match(ae)))throw new Error("Invalid character in string: "+ue+" at index "+oe.index);return ue},ce.prototype.assertLegalName=function(ue){var ae;if(this.options.noValidation)return ue;if(this.assertLegalChar(ue),ae=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/,!ue.match(ae))throw new Error("Invalid character in name");return ue},ce.prototype.textEscape=function(ue){var ae;return this.options.noValidation?ue:(ae=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,ue.replace(ae,"&").replace(//g,">").replace(/\r/g," "))},ce.prototype.attEscape=function(ue){var ae;return this.options.noValidation?ue:(ae=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,ue.replace(ae,"&").replace(/0)?new Array(Pe).join(Se.indent):""},me.prototype.endline=function(he,Se,ye){return!Se.pretty||Se.suppressPrettyCount?"":Se.newline},me.prototype.attribute=function(he,Se,ye){var Pe;return this.openAttribute(he,Se,ye),Pe=" "+he.name+'="'+he.value+'"',this.closeAttribute(he,Se,ye),Pe},me.prototype.cdata=function(he,Se,ye){var Pe;return this.openNode(he,Se,ye),Se.state=ne.OpenTag,Pe=this.indent(he,Se,ye)+""+this.endline(he,Se,ye),Se.state=ne.None,this.closeNode(he,Se,ye),Pe},me.prototype.comment=function(he,Se,ye){var Pe;return this.openNode(he,Se,ye),Se.state=ne.OpenTag,Pe=this.indent(he,Se,ye)+""+this.endline(he,Se,ye),Se.state=ne.None,this.closeNode(he,Se,ye),Pe},me.prototype.declaration=function(he,Se,ye){var Pe;return this.openNode(he,Se,ye),Se.state=ne.OpenTag,Pe=this.indent(he,Se,ye)+"",Pe+=this.endline(he,Se,ye),Se.state=ne.None,this.closeNode(he,Se,ye),Pe},me.prototype.docType=function(he,Se,ye){var Pe,we,De,Ee,Ae;if(ye||(ye=0),this.openNode(he,Se,ye),Se.state=ne.OpenTag,Ee=this.indent(he,Se,ye),Ee+="0){for(Ee+=" [",Ee+=this.endline(he,Se,ye),Se.state=ne.InsideTag,Ae=he.children,we=0,De=Ae.length;we",Ee+=this.endline(he,Se,ye),Se.state=ne.None,this.closeNode(he,Se,ye),Ee},me.prototype.element=function(he,Se,ye){var Pe,we,De,Ee,Ae,Ce,je,Me,Ge,Fe,Je,qe,Xe,Ve;ye||(ye=0),Fe=!1,Je="",this.openNode(he,Se,ye),Se.state=ne.OpenTag,Je+=this.indent(he,Se,ye)+"<"+he.name,qe=he.attribs;for(Ge in qe)ge.call(qe,Ge)&&(Pe=qe[Ge],Je+=this.attribute(Pe,Se,ye));if(De=he.children.length,Ee=De===0?null:he.children[0],De===0||he.children.every(function(We){return(We.type===se.Text||We.type===se.Raw)&&We.value===""}))Se.allowEmpty?(Je+=">",Se.state=ne.CloseTag,Je+=""+this.endline(he,Se,ye)):(Se.state=ne.CloseTag,Je+=Se.spaceBeforeSlash+"/>"+this.endline(he,Se,ye));else if(Se.pretty&&De===1&&(Ee.type===se.Text||Ee.type===se.Raw)&&Ee.value!=null)Je+=">",Se.state=ne.InsideTag,Se.suppressPrettyCount++,Fe=!0,Je+=this.writeChildNode(Ee,Se,ye+1),Se.suppressPrettyCount--,Fe=!1,Se.state=ne.CloseTag,Je+=""+this.endline(he,Se,ye);else{if(Se.dontPrettyTextNodes){for(Xe=he.children,Ae=0,je=Xe.length;Ae"+this.endline(he,Se,ye),Se.state=ne.InsideTag,Ve=he.children,Ce=0,Me=Ve.length;Ce",Fe&&Se.suppressPrettyCount--,Je+=this.endline(he,Se,ye),Se.state=ne.None}return this.closeNode(he,Se,ye),Je},me.prototype.writeChildNode=function(he,Se,ye){switch(he.type){case se.CData:return this.cdata(he,Se,ye);case se.Comment:return this.comment(he,Se,ye);case se.Element:return this.element(he,Se,ye);case se.Raw:return this.raw(he,Se,ye);case se.Text:return this.text(he,Se,ye);case se.ProcessingInstruction:return this.processingInstruction(he,Se,ye);case se.Dummy:return"";case se.Declaration:return this.declaration(he,Se,ye);case se.DocType:return this.docType(he,Se,ye);case se.AttributeDeclaration:return this.dtdAttList(he,Se,ye);case se.ElementDeclaration:return this.dtdElement(he,Se,ye);case se.EntityDeclaration:return this.dtdEntity(he,Se,ye);case se.NotationDeclaration:return this.dtdNotation(he,Se,ye);default:throw new Error("Unknown XML node type: "+he.constructor.name)}},me.prototype.processingInstruction=function(he,Se,ye){var Pe;return this.openNode(he,Se,ye),Se.state=ne.OpenTag,Pe=this.indent(he,Se,ye)+"",Pe+=this.endline(he,Se,ye),Se.state=ne.None,this.closeNode(he,Se,ye),Pe},me.prototype.raw=function(he,Se,ye){var Pe;return this.openNode(he,Se,ye),Se.state=ne.OpenTag,Pe=this.indent(he,Se,ye),Se.state=ne.InsideTag,Pe+=he.value,Se.state=ne.CloseTag,Pe+=this.endline(he,Se,ye),Se.state=ne.None,this.closeNode(he,Se,ye),Pe},me.prototype.text=function(he,Se,ye){var Pe;return this.openNode(he,Se,ye),Se.state=ne.OpenTag,Pe=this.indent(he,Se,ye),Se.state=ne.InsideTag,Pe+=he.value,Se.state=ne.CloseTag,Pe+=this.endline(he,Se,ye),Se.state=ne.None,this.closeNode(he,Se,ye),Pe},me.prototype.dtdAttList=function(he,Se,ye){var Pe;return this.openNode(he,Se,ye),Se.state=ne.OpenTag,Pe=this.indent(he,Se,ye)+""+this.endline(he,Se,ye),Se.state=ne.None,this.closeNode(he,Se,ye),Pe},me.prototype.dtdElement=function(he,Se,ye){var Pe;return this.openNode(he,Se,ye),Se.state=ne.OpenTag,Pe=this.indent(he,Se,ye)+""+this.endline(he,Se,ye),Se.state=ne.None,this.closeNode(he,Se,ye),Pe},me.prototype.dtdEntity=function(he,Se,ye){var Pe;return this.openNode(he,Se,ye),Se.state=ne.OpenTag,Pe=this.indent(he,Se,ye)+""+this.endline(he,Se,ye),Se.state=ne.None,this.closeNode(he,Se,ye),Pe},me.prototype.dtdNotation=function(he,Se,ye){var Pe;return this.openNode(he,Se,ye),Se.state=ne.OpenTag,Pe=this.indent(he,Se,ye)+""+this.endline(he,Se,ye),Se.state=ne.None,this.closeNode(he,Se,ye),Pe},me.prototype.openNode=function(he,Se,ye){},me.prototype.closeNode=function(he,Se,ye){},me.prototype.openAttribute=function(he,Se,ye){},me.prototype.closeAttribute=function(he,Se,ye){},me}()}).call(this)},{"./NodeType":428,"./Utility":429,"./WriterState":430,"./XMLCData":432,"./XMLComment":434,"./XMLDTDAttList":439,"./XMLDTDElement":440,"./XMLDTDEntity":441,"./XMLDTDNotation":442,"./XMLDeclaration":443,"./XMLDocType":444,"./XMLDummy":447,"./XMLElement":448,"./XMLProcessingInstruction":452,"./XMLRaw":453,"./XMLText":457}],459:[function(E,pe,de){(function(){var se,ne,ie,ce,ue,ae,oe,re,ee,a;a=E("./Utility"),re=a.assign,ee=a.isFunction,ie=E("./XMLDOMImplementation"),ce=E("./XMLDocument"),ue=E("./XMLDocumentCB"),oe=E("./XMLStringWriter"),ae=E("./XMLStreamWriter"),se=E("./NodeType"),ne=E("./WriterState"),pe.exports.create=function(y,x,b,z){var te,le;if(y==null)throw new Error("Root element needs a name.");return z=re({},x,b,z),te=new ce(z),le=te.element(y),z.headless||(te.declaration(z),(z.pubID!=null||z.sysID!=null)&&te.dtd(z)),le},pe.exports.begin=function(y,x,b){var z;return ee(y)&&(z=[y,x],x=z[0],b=z[1],y={}),x?new ue(y,x,b):new ce(y)},pe.exports.stringWriter=function(y){return new oe(y)},pe.exports.streamWriter=function(y,x){return new ae(y,x)},pe.exports.implementation=new ie,pe.exports.nodeType=se,pe.exports.writerState=ne}).call(this)},{"./NodeType":428,"./Utility":429,"./WriterState":430,"./XMLDOMImplementation":437,"./XMLDocument":445,"./XMLDocumentCB":446,"./XMLStreamWriter":454,"./XMLStringWriter":455}],460:[function(E,pe,de){pe.exports=ne;var se=Object.prototype.hasOwnProperty;function ne(){for(var ie={},ce=0;ceue?y=a(y):y.length>5]|=128<>>9<<4)+14]=x;for(var b=1732584193,z=-271733879,te=-1732584194,le=271733878,fe=0;fe>16)+(x>>16)+(b>>16);return z<<16|b&65535}function a(y,x){return y<>>32-x}pe.exports=function(x){return se.hash(x,ie,16)}},{"./helpers":462}],464:[function(E,pe,de){"use strict";var se=E("./helpers");function ne(oe,re){oe[re>>5]|=128<<24-re%32,oe[(re+64>>9<<4)+15]=re;for(var ee=Array(80),a=1732584193,y=-271733879,x=-1732584194,b=271733878,z=-1009589776,te=0;te>16)+(re>>16)+(ee>>16);return a<<16|ee&65535}function ae(oe,re){return oe<>>32-re}pe.exports=function(re){return se.hash(re,ne,20,!0)}},{"./helpers":462}],465:[function(E,pe,de){"use strict";pe.exports=function(){return function(){}}},{}],466:[function(E,pe,de){(function(se){(function(){"use strict";var ne=E("@babel/runtime/helpers/interopRequireDefault"),ie=ne(E("@babel/runtime/helpers/typeof")),ce=E("stream"),ue=ce.Stream,ae=E("../lib/common/utils/isArray"),oe=ae.isArray;pe.exports.string=function(a){return typeof a=="string"},pe.exports.array=oe,pe.exports.buffer=se.isBuffer;function re(ee){return ee instanceof ue}pe.exports.writableStream=function(a){return re(a)&&typeof a._write=="function"&&(0,ie.default)(a._writableState)==="object"}}).call(this)}).call(this,{isBuffer:E("../node_modules/is-buffer/index.js")})},{"../lib/common/utils/isArray":63,"../node_modules/is-buffer/index.js":366,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,stream:398}],467:[function(E,pe,de){"use strict";var se=E("immediate"),ne=pe.exports={};ne.nextTick=se,ne.title="browser",ne.browser=!0,ne.env={},ne.argv=[],ne.version="",ne.versions={};function ie(){}ne.on=ie,ne.addListener=ie,ne.once=ie,ne.off=ie,ne.removeListener=ie,ne.removeAllListeners=ie,ne.emit=ie,ne.prependListener=ie,ne.prependOnceListener=ie,ne.listeners=function(ce){return[]},ne.binding=function(ce){throw new Error("process.binding is not supported")},ne.cwd=function(){return"/"},ne.chdir=function(ce){throw new Error("process.chdir is not supported")},ne.umask=function(){return 0}},{immediate:358}],468:[function(E,pe,de){(function(se){(function(){"use strict";E("core-js/modules/es.regexp.exec.js"),E("core-js/modules/es.string.search.js");var ne=E("./lib/request"),ie=E("./lib/response"),ce=E("xtend"),ue=E("builtin-status-codes"),ae=E("url"),oe=de;oe.request=function(re,ee){typeof re=="string"?re=ae.parse(re):re=ce(re);var a=se.location.protocol.search(/^https?:$/)===-1?"http:":"",y=re.protocol||a,x=re.hostname||re.host,b=re.port,z=re.path||"/";x&&x.indexOf(":")!==-1&&(x="["+x+"]"),re.url=(x?y+"//"+x:"")+(b?":"+b:"")+z,re.method=(re.method||"GET").toUpperCase(),re.headers=re.headers||{};var te=new ne(re);return ee&&te.on("response",ee),te},oe.get=function(ee,a){var y=oe.request(ee,a);return y.end(),y},oe.ClientRequest=ne,oe.IncomingMessage=ie.IncomingMessage,oe.Agent=function(){},oe.Agent.defaultMaxSockets=4,oe.globalAgent=new oe.Agent,oe.STATUS_CODES=ue,oe.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this)}).call(this,typeof dt!="undefined"?dt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./lib/request":470,"./lib/response":471,"builtin-status-codes":91,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.search.js":306,url:472,xtend:460}],469:[function(E,pe,de){(function(se){(function(){"use strict";E("core-js/modules/es.object.to-string.js"),E("core-js/modules/es.promise.js"),E("core-js/modules/es.array-buffer.constructor.js"),E("core-js/modules/es.array-buffer.slice.js"),E("core-js/modules/es.array.slice.js"),de.fetch=oe(se.fetch)&&oe(se.ReadableStream),de.writableStream=oe(se.WritableStream),de.abortController=oe(se.AbortController),de.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),de.blobConstructor=!0}catch(re){}var ne;function ie(){if(ne!==void 0)return ne;if(se.XMLHttpRequest){ne=new se.XMLHttpRequest;try{ne.open("GET",se.XDomainRequest?"/":"https://example.com")}catch(re){ne=null}}else ne=null;return ne}function ce(re){var ee=ie();if(!ee)return!1;try{return ee.responseType=re,ee.responseType===re}catch(a){}return!1}var ue=typeof se.ArrayBuffer!="undefined",ae=ue&&oe(se.ArrayBuffer.prototype.slice);de.arraybuffer=de.fetch||ue&&ce("arraybuffer"),de.msstream=!de.fetch&&ae&&ce("ms-stream"),de.mozchunkedarraybuffer=!de.fetch&&ue&&ce("moz-chunked-arraybuffer"),de.overrideMimeType=de.fetch||(ie()?oe(ie().overrideMimeType):!1),de.vbArray=oe(se.VBArray);function oe(re){return typeof re=="function"}ne=null}).call(this)}).call(this,typeof dt!="undefined"?dt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"core-js/modules/es.array-buffer.constructor.js":270,"core-js/modules/es.array-buffer.slice.js":271,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295}],470:[function(E,pe,de){(function(se,ne,ie){(function(){"use strict";E("core-js/modules/es.object.to-string.js"),E("core-js/modules/es.regexp.to-string.js"),E("core-js/modules/web.dom-collections.for-each.js"),E("core-js/modules/es.object.keys.js"),E("core-js/modules/es.array.concat.js"),E("core-js/modules/es.array.map.js"),E("core-js/modules/es.function.name.js"),E("core-js/modules/es.promise.js"),E("core-js/modules/es.regexp.exec.js"),E("core-js/modules/es.string.split.js");var ce=E("./capability"),ue=E("inherits"),ae=E("./response"),oe=E("readable-stream"),re=E("to-arraybuffer"),ee=ae.IncomingMessage,a=ae.readyStates;function y(te,le){return ce.fetch&&le?"fetch":ce.mozchunkedarraybuffer?"moz-chunked-arraybuffer":ce.msstream?"ms-stream":ce.arraybuffer&&te?"arraybuffer":ce.vbArray&&te?"text:vbarray":"text"}var x=pe.exports=function(te){var le=this;oe.Writable.call(le),le._opts=te,le._body=[],le._headers={},te.auth&&le.setHeader("Authorization","Basic "+new ie(te.auth).toString("base64")),Object.keys(te.headers).forEach(function(me){le.setHeader(me,te.headers[me])});var fe,ge=!0;if(te.mode==="disable-fetch"||"requestTimeout"in te&&!ce.abortController)ge=!1,fe=!0;else if(te.mode==="prefer-streaming")fe=!1;else if(te.mode==="allow-wrong-content-type")fe=!ce.overrideMimeType;else if(!te.mode||te.mode==="default"||te.mode==="prefer-fast")fe=!0;else throw new Error("Invalid value for opts.mode");le._mode=y(fe,ge),le._fetchTimer=null,le.on("finish",function(){le._onFinish()})};ue(x,oe.Writable),x.prototype.setHeader=function(te,le){var fe=this,ge=te.toLowerCase();z.indexOf(ge)===-1&&(fe._headers[ge]={name:te,value:le})},x.prototype.getHeader=function(te){var le=this._headers[te.toLowerCase()];return le?le.value:null},x.prototype.removeHeader=function(te){var le=this;delete le._headers[te.toLowerCase()]},x.prototype._onFinish=function(){var te=this;if(!te._destroyed){var le=te._opts,fe=te._headers,ge=null;le.method!=="GET"&&le.method!=="HEAD"&&(ce.arraybuffer?ge=re(ie.concat(te._body)):ce.blobConstructor?ge=new ne.Blob(te._body.map(function(we){return re(we)}),{type:(fe["content-type"]||{}).value||""}):ge=ie.concat(te._body).toString());var me=[];if(Object.keys(fe).forEach(function(we){var De=fe[we].name,Ee=fe[we].value;Array.isArray(Ee)?Ee.forEach(function(Ae){me.push([De,Ae])}):me.push([De,Ee])}),te._mode==="fetch"){var he=null,Se=null;if(ce.abortController){var ye=new AbortController;he=ye.signal,te._fetchAbortController=ye,"requestTimeout"in le&&le.requestTimeout!==0&&(te._fetchTimer=ne.setTimeout(function(){te.emit("requestTimeout"),te._fetchAbortController&&te._fetchAbortController.abort()},le.requestTimeout))}ne.fetch(te._opts.url,{method:te._opts.method,headers:me,body:ge||void 0,mode:"cors",credentials:le.withCredentials?"include":"same-origin",signal:he}).then(function(we){te._fetchResponse=we,te._connect()},function(we){ne.clearTimeout(te._fetchTimer),te._destroyed||te.emit("error",we)})}else{var Pe=te._xhr=new ne.XMLHttpRequest;try{Pe.open(te._opts.method,te._opts.url,!0)}catch(we){se.nextTick(function(){te.emit("error",we)});return}"responseType"in Pe&&(Pe.responseType=te._mode.split(":")[0]),"withCredentials"in Pe&&(Pe.withCredentials=!!le.withCredentials),te._mode==="text"&&"overrideMimeType"in Pe&&Pe.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in le&&(Pe.timeout=le.requestTimeout,Pe.ontimeout=function(){te.emit("requestTimeout")}),me.forEach(function(we){Pe.setRequestHeader(we[0],we[1])}),te._response=null,Pe.onreadystatechange=function(){switch(Pe.readyState){case a.LOADING:case a.DONE:te._onXHRProgress();break}},te._mode==="moz-chunked-arraybuffer"&&(Pe.onprogress=function(){te._onXHRProgress()}),Pe.onerror=function(){te._destroyed||te.emit("error",new Error("XHR error"))};try{Pe.send(ge)}catch(we){se.nextTick(function(){te.emit("error",we)});return}}}};function b(te){try{var le=te.status;return le!==null&&le!==0}catch(fe){return!1}}x.prototype._onXHRProgress=function(){var te=this;!b(te._xhr)||te._destroyed||(te._response||te._connect(),te._response._onXHRProgress())},x.prototype._connect=function(){var te=this;te._destroyed||(te._response=new ee(te._xhr,te._fetchResponse,te._mode,te._fetchTimer),te._response.on("error",function(le){te.emit("error",le)}),te.emit("response",te._response))},x.prototype._write=function(te,le,fe){var ge=this;ge._body.push(te),fe()},x.prototype.abort=x.prototype.destroy=function(){var te=this;te._destroyed=!0,ne.clearTimeout(te._fetchTimer),te._response&&(te._response._destroyed=!0),te._xhr?te._xhr.abort():te._fetchAbortController&&te._fetchAbortController.abort()},x.prototype.end=function(te,le,fe){var ge=this;typeof te=="function"&&(fe=te,te=void 0),oe.Writable.prototype.end.call(ge,te,le,fe)},x.prototype.flushHeaders=function(){},x.prototype.setTimeout=function(){},x.prototype.setNoDelay=function(){},x.prototype.setSocketKeepAlive=function(){};var z=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"]}).call(this)}).call(this,E("_process"),typeof dt!="undefined"?dt:typeof self!="undefined"?self:typeof window!="undefined"?window:{},E("buffer").Buffer)},{"./capability":469,"./response":471,_process:467,buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.map.js":280,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.split.js":307,"core-js/modules/web.dom-collections.for-each.js":339,inherits:364,"readable-stream":394,"to-arraybuffer":415}],471:[function(E,pe,de){(function(se,ne,ie){(function(){"use strict";E("core-js/modules/es.object.to-string.js"),E("core-js/modules/web.dom-collections.for-each.js"),E("core-js/modules/es.promise.js"),E("core-js/modules/es.regexp.exec.js"),E("core-js/modules/es.string.split.js"),E("core-js/modules/es.string.match.js"),E("core-js/modules/es.array.iterator.js"),E("core-js/modules/es.array-buffer.slice.js"),E("core-js/modules/es.typed-array.uint8-array.js"),E("core-js/modules/es.typed-array.copy-within.js"),E("core-js/modules/es.typed-array.every.js"),E("core-js/modules/es.typed-array.fill.js"),E("core-js/modules/es.typed-array.filter.js"),E("core-js/modules/es.typed-array.find.js"),E("core-js/modules/es.typed-array.find-index.js"),E("core-js/modules/es.typed-array.for-each.js"),E("core-js/modules/es.typed-array.includes.js"),E("core-js/modules/es.typed-array.index-of.js"),E("core-js/modules/es.typed-array.iterator.js"),E("core-js/modules/es.typed-array.join.js"),E("core-js/modules/es.typed-array.last-index-of.js"),E("core-js/modules/es.typed-array.map.js"),E("core-js/modules/es.typed-array.reduce.js"),E("core-js/modules/es.typed-array.reduce-right.js"),E("core-js/modules/es.typed-array.reverse.js"),E("core-js/modules/es.typed-array.set.js"),E("core-js/modules/es.typed-array.slice.js"),E("core-js/modules/es.typed-array.some.js"),E("core-js/modules/es.typed-array.sort.js"),E("core-js/modules/es.typed-array.subarray.js"),E("core-js/modules/es.typed-array.to-locale-string.js"),E("core-js/modules/es.typed-array.to-string.js"),E("core-js/modules/es.array.slice.js");var ce=E("./capability"),ue=E("inherits"),ae=E("readable-stream"),oe=de.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},re=de.IncomingMessage=function(ee,a,y,x){var b=this;if(ae.Readable.call(b),b._mode=y,b.headers={},b.rawHeaders=[],b.trailers={},b.rawTrailers=[],b.on("end",function(){se.nextTick(function(){b.emit("close")})}),y==="fetch"){var z=function he(){le.read().then(function(Se){if(!b._destroyed){if(Se.done){ne.clearTimeout(x),b.push(null);return}b.push(new ie(Se.value)),he()}}).catch(function(Se){ne.clearTimeout(x),b._destroyed||b.emit("error",Se)})};if(b._fetchResponse=a,b.url=a.url,b.statusCode=a.status,b.statusMessage=a.statusText,a.headers.forEach(function(he,Se){b.headers[Se.toLowerCase()]=he,b.rawHeaders.push(Se,he)}),ce.writableStream){var te=new WritableStream({write:function(Se){return new Promise(function(ye,Pe){b._destroyed?Pe():b.push(new ie(Se))?ye():b._resumeFetch=ye})},close:function(){ne.clearTimeout(x),b._destroyed||b.push(null)},abort:function(Se){b._destroyed||b.emit("error",Se)}});try{a.body.pipeTo(te).catch(function(he){ne.clearTimeout(x),b._destroyed||b.emit("error",he)});return}catch(he){}}var le=a.body.getReader();z()}else{b._xhr=ee,b._pos=0,b.url=ee.responseURL,b.statusCode=ee.status,b.statusMessage=ee.statusText;var fe=ee.getAllResponseHeaders().split(/\r?\n/);if(fe.forEach(function(he){var Se=he.match(/^([^:]+):\s*(.*)/);if(Se){var ye=Se[1].toLowerCase();ye==="set-cookie"?(b.headers[ye]===void 0&&(b.headers[ye]=[]),b.headers[ye].push(Se[2])):b.headers[ye]!==void 0?b.headers[ye]+=", "+Se[2]:b.headers[ye]=Se[2],b.rawHeaders.push(Se[1],Se[2])}}),b._charset="x-user-defined",!ce.overrideMimeType){var ge=b.rawHeaders["mime-type"];if(ge){var me=ge.match(/;\s*charset=([^;])(;|$)/);me&&(b._charset=me[1].toLowerCase())}b._charset||(b._charset="utf-8")}}};ue(re,ae.Readable),re.prototype._read=function(){var ee=this,a=ee._resumeFetch;a&&(ee._resumeFetch=null,a())},re.prototype._onXHRProgress=function(){var ee=this,a=ee._xhr,y=null;switch(ee._mode){case"text:vbarray":if(a.readyState!==oe.DONE)break;try{y=new ne.VBArray(a.responseBody).toArray()}catch(le){}if(y!==null){ee.push(new ie(y));break}case"text":try{y=a.responseText}catch(le){ee._mode="text:vbarray";break}if(y.length>ee._pos){var x=y.substr(ee._pos);if(ee._charset==="x-user-defined"){for(var b=new ie(x.length),z=0;zee._pos&&(ee.push(new ie(new Uint8Array(te.result.slice(ee._pos)))),ee._pos=te.result.byteLength)},te.onload=function(){ee.push(null)},te.readAsArrayBuffer(y);break}ee._xhr.readyState===oe.DONE&&ee._mode!=="ms-stream"&&ee.push(null)}}).call(this)}).call(this,E("_process"),typeof dt!="undefined"?dt:typeof self!="undefined"?self:typeof window!="undefined"?window:{},E("buffer").Buffer)},{"./capability":469,_process:467,buffer:90,"core-js/modules/es.array-buffer.slice.js":271,"core-js/modules/es.array.iterator.js":278,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.match.js":304,"core-js/modules/es.string.split.js":307,"core-js/modules/es.typed-array.copy-within.js":315,"core-js/modules/es.typed-array.every.js":316,"core-js/modules/es.typed-array.fill.js":317,"core-js/modules/es.typed-array.filter.js":318,"core-js/modules/es.typed-array.find-index.js":319,"core-js/modules/es.typed-array.find.js":320,"core-js/modules/es.typed-array.for-each.js":321,"core-js/modules/es.typed-array.includes.js":322,"core-js/modules/es.typed-array.index-of.js":323,"core-js/modules/es.typed-array.iterator.js":324,"core-js/modules/es.typed-array.join.js":325,"core-js/modules/es.typed-array.last-index-of.js":326,"core-js/modules/es.typed-array.map.js":327,"core-js/modules/es.typed-array.reduce-right.js":328,"core-js/modules/es.typed-array.reduce.js":329,"core-js/modules/es.typed-array.reverse.js":330,"core-js/modules/es.typed-array.set.js":331,"core-js/modules/es.typed-array.slice.js":332,"core-js/modules/es.typed-array.some.js":333,"core-js/modules/es.typed-array.sort.js":334,"core-js/modules/es.typed-array.subarray.js":335,"core-js/modules/es.typed-array.to-locale-string.js":336,"core-js/modules/es.typed-array.to-string.js":337,"core-js/modules/es.typed-array.uint8-array.js":338,"core-js/modules/web.dom-collections.for-each.js":339,inherits:364,"readable-stream":394}],472:[function(E,pe,de){"use strict";var se=E("@babel/runtime/helpers/interopRequireDefault"),ne=se(E("@babel/runtime/helpers/typeof"));E("core-js/modules/es.regexp.exec.js"),E("core-js/modules/es.string.search.js"),E("core-js/modules/es.array.concat.js"),E("core-js/modules/es.string.split.js"),E("core-js/modules/es.string.replace.js"),E("core-js/modules/es.array.join.js"),E("core-js/modules/es.string.trim.js"),E("core-js/modules/es.string.match.js"),E("core-js/modules/es.array.slice.js"),E("core-js/modules/es.object.keys.js"),E("core-js/modules/es.array.splice.js");var ie=E("punycode"),ce=E("./util");de.parse=Se,de.resolve=Pe,de.resolveObject=we,de.format=ye,de.Url=ue;function ue(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var ae=/^([a-z0-9.+-]+:)/i,oe=/:[0-9]*$/,re=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,ee=["<",">",'"',"`"," ","\r",` `," "],a=["{","}","|","\\","^","`"].concat(ee),y=["'"].concat(a),x=["%","/","?",";","#"].concat(y),b=["/","?","#"],z=255,te=/^[+a-z0-9A-Z_-]{0,63}$/,le=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,fe={javascript:!0,"javascript:":!0},ge={javascript:!0,"javascript:":!0},me={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},he=E("querystring");function Se(De,Ee,Ae){if(De&&ce.isObject(De)&&De instanceof ue)return De;var Ce=new ue;return Ce.parse(De,Ee,Ae),Ce}ue.prototype.parse=function(De,Ee,Ae){if(!ce.isString(De))throw new TypeError("Parameter 'url' must be a string, not "+(0,ne.default)(De));var Ce=De.indexOf("?"),je=Ce!==-1&&Ce127?$e+="x":$e+=Re[Le];if(!$e.match(te)){var et=Ye.slice(0,ze),Ze=Ye.slice(ze+1),Be=Re.match(le);Be&&(et.push(Be[1]),Ze.unshift(Be[2])),Ze.length&&(Fe="/"+Ze.join(".")+Fe),this.hostname=et.join(".");break}}}this.hostname.length>z?this.hostname="":this.hostname=this.hostname.toLowerCase(),ut||(this.hostname=ie.toASCII(this.hostname));var Oe=this.port?":"+this.port:"",Te=this.hostname||"";this.host=Te+Oe,this.href+=this.host,ut&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),Fe[0]!=="/"&&(Fe="/"+Fe))}if(!fe[Xe])for(var ze=0,He=y.length;ze0?Ae.host.split("@"):!1;$e&&(Ae.auth=$e.shift(),Ae.host=Ae.hostname=$e.shift())}return Ae.search=De.search,Ae.query=De.query,(!ce.isNull(Ae.pathname)||!ce.isNull(Ae.search))&&(Ae.path=(Ae.pathname?Ae.pathname:"")+(Ae.search?Ae.search:"")),Ae.href=Ae.format(),Ae}if(!Ye.length)return Ae.pathname=null,Ae.search?Ae.path="/"+Ae.search:Ae.path=null,Ae.href=Ae.format(),Ae;for(var Le=Ye.slice(-1)[0],Ne=(Ae.host||De.host||Ye.length>1)&&(Le==="."||Le==="..")||Le==="",et=0,Ze=Ye.length;Ze>=0;Ze--)Le=Ye[Ze],Le==="."?Ye.splice(Ze,1):Le===".."?(Ye.splice(Ze,1),et++):et&&(Ye.splice(Ze,1),et--);if(!Qe&&!ut)for(;et--;et)Ye.unshift("..");Qe&&Ye[0]!==""&&(!Ye[0]||Ye[0].charAt(0)!=="/")&&Ye.unshift(""),Ne&&Ye.join("/").substr(-1)!=="/"&&Ye.push("");var Be=Ye[0]===""||Ye[0]&&Ye[0].charAt(0)==="/";if(Re){Ae.hostname=Ae.host=Be?"":Ye.length?Ye.shift():"";var $e=Ae.host&&Ae.host.indexOf("@")>0?Ae.host.split("@"):!1;$e&&(Ae.auth=$e.shift(),Ae.host=Ae.hostname=$e.shift())}return Qe=Qe||Ae.host&&Ye.length,Qe&&!Be&&Ye.unshift(""),Ye.length?Ae.pathname=Ye.join("/"):(Ae.pathname=null,Ae.path=null),(!ce.isNull(Ae.pathname)||!ce.isNull(Ae.search))&&(Ae.path=(Ae.pathname?Ae.pathname:"")+(Ae.search?Ae.search:"")),Ae.auth=De.auth||Ae.auth,Ae.slashes=Ae.slashes||De.slashes,Ae.href=Ae.format(),Ae},ue.prototype.parseHost=function(){var De=this.host,Ee=oe.exec(De);Ee&&(Ee=Ee[0],Ee!==":"&&(this.port=Ee.substr(1)),De=De.substr(0,De.length-Ee.length)),De&&(this.hostname=De)}},{"./util":473,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.join.js":279,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.array.splice.js":283,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.match.js":304,"core-js/modules/es.string.replace.js":305,"core-js/modules/es.string.search.js":306,"core-js/modules/es.string.split.js":307,"core-js/modules/es.string.trim.js":308,punycode:382,querystring:385}],473:[function(E,pe,de){"use strict";var se=E("@babel/runtime/helpers/interopRequireDefault"),ne=se(E("@babel/runtime/helpers/typeof"));pe.exports={isString:function(ce){return typeof ce=="string"},isObject:function(ce){return(0,ne.default)(ce)==="object"&&ce!==null},isNull:function(ce){return ce===null},isNullOrUndefined:function(ce){return ce==null}}},{"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79}],474:[function(E,pe,de){"use strict";E("core-js/modules/es.number.constructor.js"),de.encodeURIComponent=function(se){try{return encodeURIComponent(se)}catch(ne){return se}},de.escape=E("escape-html"),de.timestamp=function(ne){if(ne){var ie=ne;return typeof ie=="string"&&(ie=Number(ie)),String(ne).length===10&&(ie*=1e3),new Date(ie)}return Math.round(Date.now()/1e3)}},{"core-js/modules/es.number.constructor.js":286,"escape-html":343}],475:[function(E,pe,de){(function(se,ne){(function(){"use strict";var ie=E("@babel/runtime/helpers/interopRequireDefault"),ce=ie(E("@babel/runtime/helpers/typeof"));E("core-js/modules/es.string.trim.js"),E("core-js/modules/es.regexp.exec.js"),E("core-js/modules/es.string.split.js"),E("core-js/modules/es.object.to-string.js"),E("core-js/modules/es.promise.js"),E("core-js/modules/es.function.name.js"),E("core-js/modules/es.array.concat.js");var ue=E("util"),ae=E("url"),oe=E("http"),re=E("https"),ee=E("debug")("urllib"),a=E("humanize-ms"),y=0,x=Math.pow(2,31)-10,b=/^https?:\/\//i;function z(ge,me){return ge===void 0?me:ge}function te(ge){return ge?ge.split(";")[0].trim().toLowerCase():""}function le(ge,me){return function(he,Se,ye){if(he)return me(he);ge({data:Se,status:ye.statusCode,headers:ye.headers,res:ye})}}de.TIMEOUTS=[a("300s"),a("300s")];var fe=["json","text"];de.request=function(me,he,Se){return arguments.length===2&&typeof he=="function"&&(Se=he,he=null),typeof Se=="function"?de.requestWithCallback(me,he,Se):new Promise(function(ye,Pe){de.requestWithCallback(me,he,le(ye,Pe))})},de.requestWithCallback=function(me,he,Se){if(!me||typeof me!="string"&&(0,ce.default)(me)!=="object"){var ye=ue.format("expect request url to be a string or a http request options, but got %j",me);throw new Error(ye)}arguments.length===2&&typeof he=="function"&&(Se=he,he=null),he=he||{},y>=x&&(y=0);var Pe=++y;he.requestUrls=he.requestUrls||[];var we={requestId:Pe,url:me,args:he,ctx:he.ctx};he.emitter&&he.emitter.emit("request",we),he.timeout=he.timeout||de.TIMEOUTS,he.maxRedirects=he.maxRedirects||10,he.streaming=he.streaming||he.customResponse;var De=Date.now(),Ee;typeof me=="string"?(b.test(me)||(me="https://"+me),Ee=ae.parse(me)):Ee=me;var Ae=(he.type||he.method||Ee.method||"GET").toUpperCase(),Ce=Ee.port||80,je=oe,Me=z(he.agent,de.agent),Ge=he.fixJSONCtlChars;Ee.protocol==="https:"&&(je=re,Me=z(he.httpsAgent,de.httpsAgent),Ee.port||(Ce=443));var Fe={host:Ee.hostname||Ee.host||"localhost",path:Ee.path||"/",method:Ae,port:Ce,agent:Me,headers:he.headers||{},lookup:he.lookup};Array.isArray(he.timeout)?Fe.requestTimeout=he.timeout[he.timeout.length-1]:typeof he.timeout!="undefined"&&(Fe.requestTimeout=he.timeout);var Je=he.auth||Ee.auth;Je&&(Fe.auth=Je);var qe=he.content||he.data,Xe=Ae==="GET"||Ae==="HEAD"||he.dataAsQueryString;if(!he.content&&qe&&!(typeof qe=="string"||ne.isBuffer(qe)))if(Xe)qe=he.nestedQuerystring?qs.stringify(qe):querystring.stringify(qe);else{var Ve=Fe.headers["Content-Type"]||Fe.headers["content-type"];Ve||(he.contentType==="json"?Ve="application/json":Ve="application/x-www-form-urlencoded",Fe.headers["Content-Type"]=Ve),te(Ve)==="application/json"?qe=JSON.stringify(qe):qe=he.nestedQuerystring?qs.stringify(qe):querystring.stringify(qe)}Xe&&qe&&(Fe.path+=(Ee.query?"&":"?")+qe,qe=null);var We=0;if(qe){var ze=qe.length;ne.isBuffer(qe)||(ze=ne.byteLength(qe)),We=Fe.headers["Content-Length"]=ze}he.dataType==="json"&&(Fe.headers.Accept="application/json"),typeof he.beforeRequest=="function"&&he.beforeRequest(Fe);var Ue=null,ot=null,Qe=null,ut=!1,Ye=!1,He=0,Re=-1,$e=!1,Le="",Ne="",et=null;he.timing&&(et={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0});function Ze(){Ue&&(clearTimeout(Ue),Ue=null)}function Be(){ot&&(clearTimeout(ot),ot=null)}function Oe(lt,pt,at){if(Be(),!Se){console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),Pe,se.pid,Fe.method,me),lt&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s stack: %s`,Date(),Pe,se.pid,lt.name,lt.message,lt.stack);return}var st=Se;Se=null;var ft={};at&&(Re=at.statusCode,ft=at.headers);var vt=Date.now()-De;et&&(et.contentDownload=vt),ee("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",vt,He,Re,Fe.method,Fe.host,Fe.path,Ye,et);var St={status:Re,statusCode:Re,headers:ft,size:He,aborted:$e,rt:vt,keepAliveSocket:Ye,data:pt,requestUrls:he.requestUrls,timing:et,remoteAddress:Le,remotePort:Ne};if(lt){var xt="";Me&&typeof Me.getCurrentStatus=="function"&&(xt=", agent status: "+JSON.stringify(Me.getCurrentStatus())),lt.message+=", "+Fe.method+" "+me+" "+Re+" (connected: "+ut+", keepalive socket: "+Ye+xt+`) headers: `+JSON.stringify(ft),lt.data=pt,lt.path=Fe.path,lt.status=Re,lt.headers=ft,lt.res=St}st(lt,pt,he.streaming?at:St),he.emitter&&(we.url=me,we.socket=ct&&ct.connection,we.options=Fe,we.size=We,he.emitter.emit("response",{requestId:Pe,error:lt,ctx:he.ctx,req:we,res:St}))}function Te(lt){var pt=null;if(he.followRedirect&&statuses.redirect[lt.statusCode]){he._followRedirectCount=(he._followRedirectCount||0)+1;var at=lt.headers.location;if(!at)pt=new Error("Got statusCode "+lt.statusCode+" but cannot resolve next location from headers"),pt.name="FollowRedirectError";else if(he._followRedirectCount>he.maxRedirects)pt=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+me),pt.name="MaxRedirectError";else{var st=he.formatRedirectUrl?he.formatRedirectUrl(me,at):ae.resolve(me,at);ee("Request#%d %s: `redirected` from %s to %s",Pe,Fe.path,me,st),Be(),he.headers&&he.headers.Host&&b.test(at)&&(he.headers.Host=null);var ft=Se;return Se=null,de.requestWithCallback(st,he,ft),{redirect:!0,error:null}}}return{redirect:!1,error:pt}}he.gzip&&!Fe.headers["Accept-Encoding"]&&!Fe.headers["accept-encoding"]&&(Fe.headers["Accept-Encoding"]="gzip");function xe(lt,pt,at){var st=lt.headers["content-encoding"];return at(null,pt,st)}var Ie=he.writeStream;ee("Request#%d %s %s with headers %j, options.path: %s",Pe,Ae,me,Fe.headers,Fe.path),he.requestUrls.push(me);function Ke(lt){if(et&&(et.waiting=Date.now()-De),ee("Request#%d %s `req response` event emit: status %d, headers: %j",Pe,me,lt.statusCode,lt.headers),he.streaming){var pt=Te(lt);if(pt.redirect){lt.resume();return}return pt.error?(lt.resume(),Oe(pt.error,null,lt)):Oe(null,null,lt)}if(lt.on("close",function(){ee("Request#%d %s: `res close` event emit, total size %d",Pe,me,He)}),lt.on("error",function(){ee("Request#%d %s: `res error` event emit, total size %d",Pe,me,He)}),lt.on("aborted",function(){$e=!0,ee("Request#%d %s: `res aborted` event emit, total size %d",Pe,me,He)}),Ie){var at=Te(lt);if(at.redirect){lt.resume();return}return at.error?(lt.resume(),Ie.end(),Oe(at.error,null,lt)):(he.consumeWriteStream===!1?lt.on("end",Oe.bind(null,null,null,lt)):Ie.on("close",function(){ee("Request#%d %s: writeStream close event emitted",Pe,me),Oe(Qe||null,null,lt)}),lt.pipe(Ie))}var st=[];lt.on("data",function(ft){ee("Request#%d %s: `res data` event emit, size %d",Pe,me,ft.length),He+=ft.length,st.push(ft)}),lt.on("end",function(){var ft=ne.concat(st,He);if(ee("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",Pe,me,He,lt._dumped),Qe)return Oe(Qe,ft,lt);var vt=Te(lt);if(vt.error)return Oe(vt.error,ft,lt);vt.redirect||xe(lt,ft,function(St,xt,Ft){if(St)return Oe(St,ft,lt);if(!Ft&&fe.indexOf(he.dataType)>=0){try{xt=decodeBodyByCharset(xt,lt)}catch(Xt){return ee("decodeBodyByCharset error: %s",Xt),Oe(null,xt,lt)}if(he.dataType==="json")if(He===0)xt=null;else{var Nt=parseJSON(xt,Ge);Nt.error?St=Nt.error:xt=Nt.data}}$e&&ee("Request#%d %s: Remote socket was terminated before `response.end()` was called",Pe,me),Oe(St,xt,lt)})})}var rt,ke;Array.isArray(he.timeout)?(rt=a(he.timeout[0]),ke=a(he.timeout[1])):rt=ke=a(he.timeout),ee("ConnectTimeout: %d, ResponseTimeout: %d",rt,ke);function tt(){ee("Connect timer ticking, timeout: %d",rt),Ue=setTimeout(function(){Ue=null,Re===-1&&(Re=-2);var lt="Connect timeout for "+rt+"ms",pt="ConnectionTimeoutError";ct.socket||(pt="SocketAssignTimeoutError",lt+=", working sockets is full"),Qe=new Error(lt),Qe.name=pt,Qe.requestId=Pe,ee("ConnectTimeout: Request#%d %s %s: %s, connected: %s",Pe,me,Qe.name,lt,ut),ht()},rt)}function mt(){ee("Response timer ticking, timeout: %d",ke),ot=setTimeout(function(){ot=null;var lt="Response timeout for "+ke+"ms",pt="ResponseTimeoutError";Qe=new Error(lt),Qe.name=pt,Qe.requestId=Pe,ee("ResponseTimeout: Request#%d %s %s: %s, connected: %s",Pe,me,Qe.name,lt,ut),ht()},ke)}var ct;Fe.mode=he.mode?he.mode:"";try{ct=je.request(Fe,Ke)}catch(lt){return Oe(lt)}typeof window=="undefined"?tt():ct.on("requestTimeout",function(){Re===-1&&(Re=-2);var lt="Connect timeout for "+rt+"ms",pt="ConnectionTimeoutError";Qe=new Error(lt),Qe.name=pt,Qe.requestId=Pe,ht()});function ht(){ee("Request#%d %s abort, connected: %s",Pe,me,ut),ct.socket||(Qe.noSocket=!0,Oe(Qe)),ct.abort()}return et&&ct.on("finish",function(){et.requestSent=Date.now()-De}),ct.once("socket",function(lt){et&&(et.queuing=Date.now()-De);var pt=lt.readyState;if(pt==="opening"){lt.once("lookup",function(at,st,ft){ee("Request#%d %s lookup: %s, %s, %s",Pe,me,at,st,ft),et&&(et.dnslookup=Date.now()-De),st&&(Le=st)}),lt.once("connect",function(){et&&(et.connected=Date.now()-De),Ze(),mt(),ee("Request#%d %s new socket connected",Pe,me),ut=!0,Le||(Le=lt.remoteAddress),Ne=lt.remotePort});return}ee("Request#%d %s reuse socket connected, readyState: %s",Pe,me,pt),ut=!0,Ye=!0,Le||(Le=lt.remoteAddress),Ne=lt.remotePort,Ze(),mt()}),ct.on("error",function(lt){(lt.name==="Error"||lt.name==="TypeError")&&(lt.name=ut?"ResponseError":"RequestError"),lt.message+=' (req "error")',ee("Request#%d %s `req error` event emit, %s: %s",Pe,me,lt.name,lt.message),Oe(Qe||lt)}),Ie&&Ie.once("error",function(lt){lt.message+=' (writeStream "error")',Qe=lt,ee("Request#%d %s `writeStream error` event emit, %s: %s",Pe,me,lt.name,lt.message),ht()}),he.stream?(he.stream.pipe(ct),he.stream.once("error",function(lt){lt.message+=' (stream "error")',Qe=lt,ee("Request#%d %s `readStream error` event emit, %s: %s",Pe,me,lt.name,lt.message),ht()})):ct.end(qe),ct.requestId=Pe,ct}}).call(this)}).call(this,E("_process"),E("buffer").Buffer)},{"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,_process:467,buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.split.js":307,"core-js/modules/es.string.trim.js":308,debug:465,http:468,https:355,"humanize-ms":356,url:472,util:419}]},{},[1])(1)})})(window)},50371:function(Et,dt){"use strict";function ve(){const be=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let _e=1;_e{const de=E[pe];de!==void 0&&(be[pe]=de)})}return be}dt.Z=ve},77578:function(Et,dt,ve){"use strict";ve.d(dt,{Z:function(){return be}});const be=_e=>_e?typeof _e=="function"?_e():_e:null},13845:function(Et,dt,ve){"use strict";ve.d(dt,{F:function(){return be},Z:function(){return _e}});function be(E){return E!=null&&E===E.window}function _e(E,pe){var de,se;if(typeof window=="undefined")return 0;const ne=pe?"scrollTop":"scrollLeft";let ie=0;return be(E)?ie=E[pe?"pageYOffset":"pageXOffset"]:E instanceof Document?ie=E.documentElement[ne]:(E instanceof HTMLElement||E)&&(ie=E[ne]),E&&!be(E)&&typeof ie!="number"&&(ie=(se=((de=E.ownerDocument)!==null&&de!==void 0?de:E).documentElement)===null||se===void 0?void 0:se[ne]),ie}},56762:function(Et,dt,ve){"use strict";ve.d(dt,{Z:function(){return _e}});var be=ve(59301);function _e(){const[,E]=be.useReducer(pe=>pe+1,0);return E}},68031:function(Et,dt,ve){"use strict";ve.d(dt,{Z:function(){return pe}});var be=ve(16089);function _e(de,se,ne,ie){const ce=ne-se;return de/=ie/2,de<1?ce/2*de*de*de+se:ce/2*((de-=2)*de*de+2)+se}var E=ve(13845);function pe(de){let se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:ne=()=>window,callback:ie,duration:ce=450}=se,ue=ne(),ae=(0,E.Z)(ue,!0),oe=Date.now(),re=()=>{const a=Date.now()-oe,y=_e(a>ce?ce:a,ae,de,ce);(0,E.F)(ue)?ue.scrollTo(window.pageXOffset,y):ue instanceof Document||ue.constructor.name==="HTMLDocument"?ue.documentElement.scrollTop=y:ue.scrollTop=y,a{var ye;const{prefixCls:Pe,className:we,rootClassName:De,children:Ee,indeterminate:Ae=!1,style:Ce,onMouseEnter:je,onMouseLeave:Me,skipGroup:Ge=!1,disabled:Fe}=he,Je=re(he,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:qe,direction:Xe,checkbox:Ve}=pe.useContext(de.E_),We=pe.useContext(ce),{isFormItemInput:ze}=pe.useContext(ne.aM),Ue=pe.useContext(se.Z),ot=(ye=(We==null?void 0:We.disabled)||Fe)!==null&&ye!==void 0?ye:Ue,Qe=pe.useRef(Je.value);pe.useEffect(()=>{We==null||We.registerValue(Je.value)},[]),pe.useEffect(()=>{if(!Ge)return Je.value!==Qe.current&&(We==null||We.cancelValue(Qe.current),We==null||We.registerValue(Je.value),Qe.current=Je.value),()=>We==null?void 0:We.cancelValue(Je.value)},[Je.value]);const ut=qe("checkbox",Pe),[Ye,He]=(0,ue.ZP)(ut),Re=Object.assign({},Je);We&&!Ge&&(Re.onChange=function(){Je.onChange&&Je.onChange.apply(Je,arguments),We.toggleOption&&We.toggleOption({label:Ee,value:Je.value})},Re.name=We.name,Re.checked=We.value.includes(Je.value));const $e=_e()(`${ut}-wrapper`,{[`${ut}-rtl`]:Xe==="rtl",[`${ut}-wrapper-checked`]:Re.checked,[`${ut}-wrapper-disabled`]:ot,[`${ut}-wrapper-in-form-item`]:ze},Ve==null?void 0:Ve.className,we,De,He),Le=_e()({[`${ut}-indeterminate`]:Ae},oe.A,He),Ne=Ae?"mixed":void 0;return Ye(pe.createElement(ae.Z,{component:"Checkbox",disabled:ot},pe.createElement("label",{className:$e,style:Object.assign(Object.assign({},Ve==null?void 0:Ve.style),Ce),onMouseEnter:je,onMouseLeave:Me},pe.createElement(E.Z,Object.assign({"aria-checked":Ne},Re,{prefixCls:ut,className:Le,disabled:ot,ref:Se})),Ee!==void 0&&pe.createElement("span",null,Ee))))};var y=pe.forwardRef(ee),x=ve(94480),b=ve(2738),z=function(he,Se){var ye={};for(var Pe in he)Object.prototype.hasOwnProperty.call(he,Pe)&&Se.indexOf(Pe)<0&&(ye[Pe]=he[Pe]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var we=0,Pe=Object.getOwnPropertySymbols(he);we{const{defaultValue:ye,children:Pe,options:we=[],prefixCls:De,className:Ee,rootClassName:Ae,style:Ce,onChange:je}=he,Me=z(he,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:Ge,direction:Fe}=pe.useContext(de.E_),[Je,qe]=pe.useState(Me.value||ye||[]),[Xe,Ve]=pe.useState([]);pe.useEffect(()=>{"value"in Me&&qe(Me.value||[])},[Me.value]);const We=pe.useMemo(()=>we.map(et=>typeof et=="string"||typeof et=="number"?{label:et,value:et}:et),[we]),ze=et=>{Ve(Ze=>Ze.filter(Be=>Be!==et))},Ue=et=>{Ve(Ze=>[].concat((0,x.Z)(Ze),[et]))},ot=et=>{const Ze=Je.indexOf(et.value),Be=(0,x.Z)(Je);Ze===-1?Be.push(et.value):Be.splice(Ze,1),"value"in Me||qe(Be),je==null||je(Be.filter(Oe=>Xe.includes(Oe)).sort((Oe,Te)=>{const xe=We.findIndex(Ke=>Ke.value===Oe),Ie=We.findIndex(Ke=>Ke.value===Te);return xe-Ie}))},Qe=Ge("checkbox",De),ut=`${Qe}-group`,[Ye,He]=(0,ue.ZP)(Qe),Re=(0,b.Z)(Me,["value","disabled"]),$e=we.length?We.map(et=>pe.createElement(y,{prefixCls:Qe,key:et.value.toString(),disabled:"disabled"in et?et.disabled:Me.disabled,value:et.value,checked:Je.includes(et.value),onChange:et.onChange,className:`${ut}-item`,style:et.style,title:et.title},et.label)):Pe,Le={toggleOption:ot,value:Je,disabled:Me.disabled,name:Me.name,registerValue:Ue,cancelValue:ze},Ne=_e()(ut,{[`${ut}-rtl`]:Fe==="rtl"},Ee,Ae,He);return Ye(pe.createElement("div",Object.assign({className:Ne,style:Ce},Re,{ref:Se}),pe.createElement(ce.Provider,{value:Le},$e)))},le=pe.forwardRef(te);var fe=pe.memo(le);const ge=y;ge.Group=fe,ge.__ANT_CHECKBOX=!0;var me=ge},98447:function(Et,dt,ve){"use strict";ve.d(dt,{C2:function(){return de}});var be=ve(17313),_e=ve(37613),E=ve(83116);const pe=se=>{const{checkboxCls:ne}=se,ie=`${ne}-wrapper`;return[{[`${ne}-group`]:Object.assign(Object.assign({},(0,be.Wf)(se)),{display:"inline-flex",flexWrap:"wrap",columnGap:se.marginXS,[`> ${se.antCls}-row`]:{flex:1}}),[ie]:Object.assign(Object.assign({},(0,be.Wf)(se)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${ie}`]:{marginInlineStart:0},[`&${ie}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[ne]:Object.assign(Object.assign({},(0,be.Wf)(se)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:se.borderRadiusSM,alignSelf:"center",[`${ne}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${ne}-inner`]:Object.assign({},(0,be.oN)(se))},[`${ne}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:se.checkboxSize,height:se.checkboxSize,direction:"ltr",backgroundColor:se.colorBgContainer,border:`${se.lineWidth}px ${se.lineType} ${se.colorBorder}`,borderRadius:se.borderRadiusSM,borderCollapse:"separate",transition:`all ${se.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:se.checkboxSize/14*5,height:se.checkboxSize/14*8,border:`${se.lineWidthBold}px solid ${se.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${se.motionDurationFast} ${se.motionEaseInBack}, opacity ${se.motionDurationFast}`}},"& + span":{paddingInlineStart:se.paddingXS,paddingInlineEnd:se.paddingXS}})},{[` ${ie}:not(${ie}-disabled), ${ne}:not(${ne}-disabled) `]:{[`&:hover ${ne}-inner`]:{borderColor:se.colorPrimary}},[`${ie}:not(${ie}-disabled)`]:{[`&:hover ${ne}-checked:not(${ne}-disabled) ${ne}-inner`]:{backgroundColor:se.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${ne}-checked:not(${ne}-disabled):after`]:{borderColor:se.colorPrimaryHover}}},{[`${ne}-checked`]:{[`${ne}-inner`]:{backgroundColor:se.colorPrimary,borderColor:se.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${se.motionDurationMid} ${se.motionEaseOutBack} ${se.motionDurationFast}`}}},[` ${ie}-checked:not(${ie}-disabled), ${ne}-checked:not(${ne}-disabled) `]:{[`&:hover ${ne}-inner`]:{backgroundColor:se.colorPrimaryHover,borderColor:"transparent"}}},{[ne]:{"&-indeterminate":{[`${ne}-inner`]:{backgroundColor:se.colorBgContainer,borderColor:se.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:se.fontSizeLG/2,height:se.fontSizeLG/2,backgroundColor:se.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${ie}-disabled`]:{cursor:"not-allowed"},[`${ne}-disabled`]:{[`&, ${ne}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${ne}-inner`]:{background:se.colorBgContainerDisabled,borderColor:se.colorBorder,"&:after":{borderColor:se.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:se.colorTextDisabled},[`&${ne}-indeterminate ${ne}-inner::after`]:{background:se.colorTextDisabled}}}]};function de(se,ne){const ie=(0,_e.TS)(ne,{checkboxCls:`.${se}`,checkboxSize:ne.controlInteractiveSize});return[pe(ie)]}dt.ZP=(0,E.Z)("Checkbox",(se,ne)=>{let{prefixCls:ie}=ne;return[de(ie,se)]})},36381:function(Et,dt,ve){"use strict";ve.d(dt,{default:function(){return Re}});var be=ve(38819),_e=ve(92310),E=ve.n(_e),pe=ve(54476),de=ve(94480),se=ve(42978),ne=ve(76190),ie=ve(18929),ce=ve(48736),ue=ve(59301),ae=ve(75931),oe=ve(11592),re=ve(20068),ee=ve(77900),a=ve(10228),y=ue.forwardRef(function($e,Le){var Ne=$e.prefixCls,et=$e.forceRender,Ze=$e.className,Be=$e.style,Oe=$e.children,Te=$e.isActive,xe=$e.role,Ie=ue.useState(Te||et),Ke=(0,se.Z)(Ie,2),rt=Ke[0],ke=Ke[1];return ue.useEffect(function(){(et||Te)&&ke(!0)},[et,Te]),rt?ue.createElement("div",{ref:Le,className:E()("".concat(Ne,"-content"),(0,re.Z)((0,re.Z)({},"".concat(Ne,"-content-active"),Te),"".concat(Ne,"-content-inactive"),!Te),Ze),style:Be,role:xe},ue.createElement("div",{className:"".concat(Ne,"-content-box")},Oe)):null});y.displayName="PanelContent";var x=y,b=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],z=ue.forwardRef(function($e,Le){var Ne=$e.showArrow,et=Ne===void 0?!0:Ne,Ze=$e.headerClass,Be=$e.isActive,Oe=$e.onItemClick,Te=$e.forceRender,xe=$e.className,Ie=$e.prefixCls,Ke=$e.collapsible,rt=$e.accordion,ke=$e.panelKey,tt=$e.extra,mt=$e.header,ct=$e.expandIcon,ht=$e.openMotion,lt=$e.destroyInactivePanel,pt=$e.children,at=(0,ae.Z)($e,b),st=Ke==="disabled",ft=Ke==="header",vt=Ke==="icon",St=tt!=null&&typeof tt!="boolean",xt=function(){Oe==null||Oe(ke)},Ft=function(wn){(wn.key==="Enter"||wn.keyCode===a.Z.ENTER||wn.which===a.Z.ENTER)&&xt()},Nt=typeof ct=="function"?ct($e):ue.createElement("i",{className:"arrow"});Nt&&(Nt=ue.createElement("div",{className:"".concat(Ie,"-expand-icon"),onClick:["header","icon"].includes(Ke)?xt:void 0},Nt));var Xt=E()((0,re.Z)((0,re.Z)((0,re.Z)({},"".concat(Ie,"-item"),!0),"".concat(Ie,"-item-active"),Be),"".concat(Ie,"-item-disabled"),st),xe),dn=E()(Ze,(0,re.Z)((0,re.Z)((0,re.Z)({},"".concat(Ie,"-header"),!0),"".concat(Ie,"-header-collapsible-only"),ft),"".concat(Ie,"-icon-collapsible-only"),vt)),en={className:dn,"aria-expanded":Be,"aria-disabled":st,onKeyDown:Ft};return!ft&&!vt&&(en.onClick=xt,en.role=rt?"tab":"button",en.tabIndex=st?-1:0),ue.createElement("div",(0,pe.Z)({},at,{ref:Le,className:Xt}),ue.createElement("div",en,et&&Nt,ue.createElement("span",{className:"".concat(Ie,"-header-text"),onClick:Ke==="header"?xt:void 0},mt),St&&ue.createElement("div",{className:"".concat(Ie,"-extra")},tt)),ue.createElement(ee.default,(0,pe.Z)({visible:Be,leavedClassName:"".concat(Ie,"-content-hidden")},ht,{forceRender:Te,removeOnLeave:lt}),function(Jt,wn){var Ln=Jt.className,fn=Jt.style;return ue.createElement(x,{ref:wn,prefixCls:Ie,className:Ln,style:fn,isActive:Be,forceRender:Te,role:rt?"tabpanel":void 0},pt)}))}),te=z,le=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],fe=function(Le,Ne){var et=Ne.prefixCls,Ze=Ne.accordion,Be=Ne.collapsible,Oe=Ne.destroyInactivePanel,Te=Ne.onItemClick,xe=Ne.activeKey,Ie=Ne.openMotion,Ke=Ne.expandIcon;return Le.map(function(rt,ke){var tt=rt.children,mt=rt.label,ct=rt.key,ht=rt.collapsible,lt=rt.onItemClick,pt=rt.destroyInactivePanel,at=(0,ae.Z)(rt,le),st=String(ct!=null?ct:ke),ft=ht!=null?ht:Be,vt=pt!=null?pt:Oe,St=function(Nt){ft!=="disabled"&&(Te(Nt),lt==null||lt(Nt))},xt=!1;return Ze?xt=xe[0]===st:xt=xe.indexOf(st)>-1,ue.createElement(te,(0,pe.Z)({},at,{prefixCls:et,key:st,panelKey:st,isActive:xt,accordion:Ze,openMotion:Ie,expandIcon:Ke,header:mt,collapsible:ft,onItemClick:St,destroyInactivePanel:vt}),tt)})},ge=function(Le,Ne,et){if(!Le)return null;var Ze=et.prefixCls,Be=et.accordion,Oe=et.collapsible,Te=et.destroyInactivePanel,xe=et.onItemClick,Ie=et.activeKey,Ke=et.openMotion,rt=et.expandIcon,ke=Le.key||String(Ne),tt=Le.props,mt=tt.header,ct=tt.headerClass,ht=tt.destroyInactivePanel,lt=tt.collapsible,pt=tt.onItemClick,at=!1;Be?at=Ie[0]===ke:at=Ie.indexOf(ke)>-1;var st=lt!=null?lt:Oe,ft=function(xt){st!=="disabled"&&(xe(xt),pt==null||pt(xt))},vt={key:ke,panelKey:ke,header:mt,headerClass:ct,isActive:at,prefixCls:Ze,destroyInactivePanel:ht!=null?ht:Te,openMotion:Ke,accordion:Be,children:Le.props.children,onItemClick:ft,expandIcon:rt,collapsible:st};return typeof Le.type=="string"?Le:(Object.keys(vt).forEach(function(St){typeof vt[St]=="undefined"&&delete vt[St]}),ue.cloneElement(Le,vt))};function me($e,Le,Ne){return Array.isArray($e)?fe($e,Ne):(0,oe.Z)(Le).map(function(et,Ze){return ge(et,Ze,Ne)})}var he=me,Se=ve(26112);function ye($e){var Le=$e;if(!Array.isArray(Le)){var Ne=(0,ne.Z)(Le);Le=Ne==="number"||Ne==="string"?[Le]:[]}return Le.map(function(et){return String(et)})}var Pe=ue.forwardRef(function($e,Le){var Ne=$e.prefixCls,et=Ne===void 0?"rc-collapse":Ne,Ze=$e.destroyInactivePanel,Be=Ze===void 0?!1:Ze,Oe=$e.style,Te=$e.accordion,xe=$e.className,Ie=$e.children,Ke=$e.collapsible,rt=$e.openMotion,ke=$e.expandIcon,tt=$e.activeKey,mt=$e.defaultActiveKey,ct=$e.onChange,ht=$e.items,lt=E()(et,xe),pt=(0,ie.Z)([],{value:tt,onChange:function(Ft){return ct==null?void 0:ct(Ft)},defaultValue:mt,postState:ye}),at=(0,se.Z)(pt,2),st=at[0],ft=at[1],vt=function(Ft){return ft(function(){if(Te)return st[0]===Ft?[]:[Ft];var Nt=st.indexOf(Ft),Xt=Nt>-1;return Xt?st.filter(function(dn){return dn!==Ft}):[].concat((0,de.Z)(st),[Ft])})};(0,ce.ZP)(!Ie,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var St=he(ht,Ie,{prefixCls:et,accordion:Te,openMotion:rt,expandIcon:ke,collapsible:Ke,destroyInactivePanel:Be,onItemClick:vt,activeKey:st});return ue.createElement("div",(0,pe.Z)({ref:Le,className:lt,style:Oe,role:Te?"tablist":void 0},(0,Se.Z)($e,{aria:!0,data:!0})),St)}),we=Object.assign(Pe,{Panel:te}),De=we,Ee=we.Panel,Ae=ve(2738),Ce=ve(62892),je=ve(92343),Me=ve(36355),Ge=ve(19716),Je=ue.forwardRef(($e,Le)=>{const{getPrefixCls:Ne}=ue.useContext(Me.E_),{prefixCls:et,className:Ze,showArrow:Be=!0}=$e,Oe=Ne("collapse",et),Te=E()({[`${Oe}-no-arrow`]:!Be},Ze);return ue.createElement(De.Panel,Object.assign({ref:Le},$e,{prefixCls:Oe,className:Te}))}),qe=ve(17313),Xe=ve(8378),Ve=ve(83116),We=ve(37613);const ze=$e=>{const{componentCls:Le,contentBg:Ne,padding:et,headerBg:Ze,headerPadding:Be,collapseHeaderPaddingSM:Oe,collapseHeaderPaddingLG:Te,collapsePanelBorderRadius:xe,lineWidth:Ie,lineType:Ke,colorBorder:rt,colorText:ke,colorTextHeading:tt,colorTextDisabled:mt,fontSize:ct,fontSizeLG:ht,lineHeight:lt,marginSM:pt,paddingSM:at,paddingLG:st,paddingXS:ft,motionDurationSlow:vt,fontSizeIcon:St,contentPadding:xt}=$e,Ft=`${Ie}px ${Ke} ${rt}`;return{[Le]:Object.assign(Object.assign({},(0,qe.Wf)($e)),{backgroundColor:Ze,border:Ft,borderBottom:0,borderRadius:`${xe}px`,"&-rtl":{direction:"rtl"},[`& > ${Le}-item`]:{borderBottom:Ft,"&:last-child":{[` &, & > ${Le}-header`]:{borderRadius:`0 0 ${xe}px ${xe}px`}},[`> ${Le}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:Be,color:tt,lineHeight:lt,cursor:"pointer",transition:`all ${vt}, visibility 0s`,[`> ${Le}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${Le}-expand-icon`]:{height:ct*lt,display:"flex",alignItems:"center",paddingInlineEnd:pt},[`${Le}-arrow`]:Object.assign(Object.assign({},(0,qe.Ro)()),{fontSize:St,svg:{transition:`transform ${vt}`}}),[`${Le}-header-text`]:{marginInlineEnd:"auto"}},[`${Le}-header-collapsible-only`]:{cursor:"default",[`${Le}-header-text`]:{flex:"none",cursor:"pointer"}},[`${Le}-icon-collapsible-only`]:{cursor:"default",[`${Le}-expand-icon`]:{cursor:"pointer"}}},[`${Le}-content`]:{color:ke,backgroundColor:Ne,borderTop:Ft,[`& > ${Le}-content-box`]:{padding:xt},"&-hidden":{display:"none"}},"&-small":{[`> ${Le}-item`]:{[`> ${Le}-header`]:{padding:Oe,paddingInlineStart:ft,[`> ${Le}-expand-icon`]:{marginInlineStart:at-ft}},[`> ${Le}-content > ${Le}-content-box`]:{padding:at}}},"&-large":{[`> ${Le}-item`]:{fontSize:ht,[`> ${Le}-header`]:{padding:Te,paddingInlineStart:et,[`> ${Le}-expand-icon`]:{height:ht*lt,marginInlineStart:st-et}},[`> ${Le}-content > ${Le}-content-box`]:{padding:st}}},[`${Le}-item:last-child`]:{[`> ${Le}-content`]:{borderRadius:`0 0 ${xe}px ${xe}px`}},[`& ${Le}-item-disabled > ${Le}-header`]:{"\n &,\n & > .arrow\n ":{color:mt,cursor:"not-allowed"}},[`&${Le}-icon-position-end`]:{[`& > ${Le}-item`]:{[`> ${Le}-header`]:{[`${Le}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:pt}}}}})}},Ue=$e=>{const{componentCls:Le}=$e,Ne=`> ${Le}-item > ${Le}-header ${Le}-arrow svg`;return{[`${Le}-rtl`]:{[Ne]:{transform:"rotate(180deg)"}}}},ot=$e=>{const{componentCls:Le,headerBg:Ne,paddingXXS:et,colorBorder:Ze}=$e;return{[`${Le}-borderless`]:{backgroundColor:Ne,border:0,[`> ${Le}-item`]:{borderBottom:`1px solid ${Ze}`},[` > ${Le}-item:last-child, > ${Le}-item:last-child ${Le}-header `]:{borderRadius:0},[`> ${Le}-item:last-child`]:{borderBottom:0},[`> ${Le}-item > ${Le}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${Le}-item > ${Le}-content > ${Le}-content-box`]:{paddingTop:et}}}},Qe=$e=>{const{componentCls:Le,paddingSM:Ne}=$e;return{[`${Le}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${Le}-item`]:{borderBottom:0,[`> ${Le}-content`]:{backgroundColor:"transparent",border:0,[`> ${Le}-content-box`]:{paddingBlock:Ne}}}}}};var ut=(0,Ve.Z)("Collapse",$e=>{const Le=(0,We.TS)($e,{collapseHeaderPaddingSM:`${$e.paddingXS}px ${$e.paddingSM}px`,collapseHeaderPaddingLG:`${$e.padding}px ${$e.paddingLG}px`,collapsePanelBorderRadius:$e.borderRadiusLG});return[ze(Le),ot(Le),Qe(Le),Ue(Le),(0,Xe.Z)(Le)]},$e=>({headerPadding:`${$e.paddingSM}px ${$e.padding}px`,headerBg:$e.colorFillAlter,contentPadding:`${$e.padding}px 16px`,contentBg:$e.colorBgContainer})),He=Object.assign(ue.forwardRef(($e,Le)=>{const{getPrefixCls:Ne,direction:et,collapse:Ze}=ue.useContext(Me.E_),{prefixCls:Be,className:Oe,rootClassName:Te,style:xe,bordered:Ie=!0,ghost:Ke,size:rt,expandIconPosition:ke="start",children:tt,expandIcon:mt}=$e,ct=(0,Ge.Z)(Ft=>{var Nt;return(Nt=rt!=null?rt:Ft)!==null&&Nt!==void 0?Nt:"middle"}),ht=Ne("collapse",Be),lt=Ne(),[pt,at]=ut(ht),st=ue.useMemo(()=>ke==="left"?"start":ke==="right"?"end":ke,[ke]),ft=function(){let Ft=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const Nt=mt?mt(Ft):ue.createElement(be.Z,{rotate:Ft.isActive?90:void 0});return(0,je.Tm)(Nt,()=>({className:E()(Nt.props.className,`${ht}-arrow`)}))},vt=E()(`${ht}-icon-position-${st}`,{[`${ht}-borderless`]:!Ie,[`${ht}-rtl`]:et==="rtl",[`${ht}-ghost`]:!!Ke,[`${ht}-${ct}`]:ct!=="middle"},Ze==null?void 0:Ze.className,Oe,Te,at),St=Object.assign(Object.assign({},(0,Ce.Z)(lt)),{motionAppear:!1,leavedClassName:`${ht}-content-hidden`}),xt=ue.useMemo(()=>tt?(0,oe.Z)(tt).map((Ft,Nt)=>{var Xt,dn;if(!((Xt=Ft.props)===null||Xt===void 0)&&Xt.disabled){const en=(dn=Ft.key)!==null&&dn!==void 0?dn:String(Nt),{disabled:Jt,collapsible:wn}=Ft.props,Ln=Object.assign(Object.assign({},(0,Ae.Z)(Ft.props,["disabled"])),{key:en,collapsible:wn!=null?wn:Jt?"disabled":void 0});return(0,je.Tm)(Ft,Ln)}return Ft}):null,[tt]);return pt(ue.createElement(De,Object.assign({ref:Le,openMotion:St},(0,Ae.Z)($e,["rootClassName"]),{expandIcon:ft,prefixCls:ht,className:vt,style:Object.assign(Object.assign({},Ze==null?void 0:Ze.style),xe)}),xt))}),{Panel:Je}),Re=He},43428:function(Et,dt,ve){"use strict";ve.d(dt,{Z:function(){return Ye}});var be=ve(92310),_e=ve.n(be),E=ve(33885),pe=ve(42978),de=ve(43403),se=ve(34280),ne=ve(59301),ie=ne.createContext(null),ce=ne.createContext({}),ue=ie,ae=ve(20068),oe=ve(54476),re=ve(77900),ee=ve(10228),a=ve(26112),y=ve(70425),x=function(Re){var $e=Re.prefixCls,Le=Re.className,Ne=Re.style,et=Re.children,Ze=Re.containerRef,Be=Re.id,Oe=Re.onMouseEnter,Te=Re.onMouseOver,xe=Re.onMouseLeave,Ie=Re.onClick,Ke=Re.onKeyDown,rt=Re.onKeyUp,ke={onMouseEnter:Oe,onMouseOver:Te,onMouseLeave:xe,onClick:Ie,onKeyDown:Ke,onKeyUp:rt},tt=ne.useContext(ce),mt=tt.panel,ct=(0,y.useComposeRef)(mt,Ze);return ne.createElement(ne.Fragment,null,ne.createElement("div",(0,oe.Z)({id:Be,className:_e()("".concat($e,"-content"),Le),style:(0,E.Z)({},Ne),"aria-modal":"true",role:"dialog",ref:ct},ke),et))},b=x,z=ve(48736);function te(He){return typeof He=="string"&&String(Number(He))===He?((0,z.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(He)):He}function le(He){warning(!("wrapperClassName"in He),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!He.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var fe={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function ge(He,Re){var $e,Le,Ne,et,Ze=He.prefixCls,Be=He.open,Oe=He.placement,Te=He.inline,xe=He.push,Ie=He.forceRender,Ke=He.autoFocus,rt=He.keyboard,ke=He.rootClassName,tt=He.rootStyle,mt=He.zIndex,ct=He.className,ht=He.id,lt=He.style,pt=He.motion,at=He.width,st=He.height,ft=He.children,vt=He.contentWrapperStyle,St=He.mask,xt=He.maskClosable,Ft=He.maskMotion,Nt=He.maskClassName,Xt=He.maskStyle,dn=He.afterOpenChange,en=He.onClose,Jt=He.onMouseEnter,wn=He.onMouseOver,Ln=He.onMouseLeave,fn=He.onClick,zn=He.onKeyDown,Un=He.onKeyUp,Nn=ne.useRef(),On=ne.useRef(),Tn=ne.useRef();ne.useImperativeHandle(Re,function(){return Nn.current});var Zn=function(Lt){var rn=Lt.keyCode,Dt=Lt.shiftKey;switch(rn){case ee.Z.TAB:{if(rn===ee.Z.TAB){if(!Dt&&document.activeElement===Tn.current){var un;(un=On.current)===null||un===void 0||un.focus({preventScroll:!0})}else if(Dt&&document.activeElement===On.current){var En;(En=Tn.current)===null||En===void 0||En.focus({preventScroll:!0})}}break}case ee.Z.ESC:{en&&rt&&(Lt.stopPropagation(),en(Lt));break}}};ne.useEffect(function(){if(Be&&Ke){var Ht;(Ht=Nn.current)===null||Ht===void 0||Ht.focus({preventScroll:!0})}},[Be]);var Pr=ne.useState(!1),Nr=(0,pe.Z)(Pr,2),qn=Nr[0],jr=Nr[1],ir=ne.useContext(ue),gr;xe===!1?gr={distance:0}:xe===!0?gr={}:gr=xe||{};var Ot=($e=(Le=(Ne=gr)===null||Ne===void 0?void 0:Ne.distance)!==null&&Le!==void 0?Le:ir==null?void 0:ir.pushDistance)!==null&&$e!==void 0?$e:180,jt=ne.useMemo(function(){return{pushDistance:Ot,push:function(){jr(!0)},pull:function(){jr(!1)}}},[Ot]);ne.useEffect(function(){if(Be){var Ht;ir==null||(Ht=ir.push)===null||Ht===void 0||Ht.call(ir)}else{var Lt;ir==null||(Lt=ir.pull)===null||Lt===void 0||Lt.call(ir)}},[Be]),ne.useEffect(function(){return function(){var Ht;ir==null||(Ht=ir.pull)===null||Ht===void 0||Ht.call(ir)}},[]);var _t=St&&ne.createElement(re.default,(0,oe.Z)({key:"mask"},Ft,{visible:Be}),function(Ht,Lt){var rn=Ht.className,Dt=Ht.style;return ne.createElement("div",{className:_e()("".concat(Ze,"-mask"),rn,Nt),style:(0,E.Z)((0,E.Z)({},Dt),Xt),onClick:xt&&Be?en:void 0,ref:Lt})}),tn=typeof pt=="function"?pt(Oe):pt,Bn={};if(qn&&Ot)switch(Oe){case"top":Bn.transform="translateY(".concat(Ot,"px)");break;case"bottom":Bn.transform="translateY(".concat(-Ot,"px)");break;case"left":Bn.transform="translateX(".concat(Ot,"px)");break;default:Bn.transform="translateX(".concat(-Ot,"px)");break}Oe==="left"||Oe==="right"?Bn.width=te(at):Bn.height=te(st);var Cn={onMouseEnter:Jt,onMouseOver:wn,onMouseLeave:Ln,onClick:fn,onKeyDown:zn,onKeyUp:Un},Fr=ne.createElement(re.default,(0,oe.Z)({key:"panel"},tn,{visible:Be,forceRender:Ie,onVisibleChanged:function(Lt){dn==null||dn(Lt)},removeOnLeave:!1,leavedClassName:"".concat(Ze,"-content-wrapper-hidden")}),function(Ht,Lt){var rn=Ht.className,Dt=Ht.style;return ne.createElement("div",(0,oe.Z)({className:_e()("".concat(Ze,"-content-wrapper"),rn),style:(0,E.Z)((0,E.Z)((0,E.Z)({},Bn),Dt),vt)},(0,a.Z)(He,{data:!0})),ne.createElement(b,(0,oe.Z)({id:ht,containerRef:Lt,prefixCls:Ze,className:ct,style:lt},Cn),ft))}),rr=(0,E.Z)({},tt);return mt&&(rr.zIndex=mt),ne.createElement(ue.Provider,{value:jt},ne.createElement("div",{className:_e()(Ze,"".concat(Ze,"-").concat(Oe),ke,(et={},(0,ae.Z)(et,"".concat(Ze,"-open"),Be),(0,ae.Z)(et,"".concat(Ze,"-inline"),Te),et)),style:rr,tabIndex:-1,ref:Nn,onKeyDown:Zn},_t,ne.createElement("div",{tabIndex:0,ref:On,style:fe,"aria-hidden":"true","data-sentinel":"start"}),Fr,ne.createElement("div",{tabIndex:0,ref:Tn,style:fe,"aria-hidden":"true","data-sentinel":"end"})))}var me=ne.forwardRef(ge),he=me,Se=function(Re){var $e=Re.open,Le=$e===void 0?!1:$e,Ne=Re.prefixCls,et=Ne===void 0?"rc-drawer":Ne,Ze=Re.placement,Be=Ze===void 0?"right":Ze,Oe=Re.autoFocus,Te=Oe===void 0?!0:Oe,xe=Re.keyboard,Ie=xe===void 0?!0:xe,Ke=Re.width,rt=Ke===void 0?378:Ke,ke=Re.mask,tt=ke===void 0?!0:ke,mt=Re.maskClosable,ct=mt===void 0?!0:mt,ht=Re.getContainer,lt=Re.forceRender,pt=Re.afterOpenChange,at=Re.destroyOnClose,st=Re.onMouseEnter,ft=Re.onMouseOver,vt=Re.onMouseLeave,St=Re.onClick,xt=Re.onKeyDown,Ft=Re.onKeyUp,Nt=Re.panelRef,Xt=ne.useState(!1),dn=(0,pe.Z)(Xt,2),en=dn[0],Jt=dn[1],wn=ne.useState(!1),Ln=(0,pe.Z)(wn,2),fn=Ln[0],zn=Ln[1];(0,se.Z)(function(){zn(!0)},[]);var Un=fn?Le:!1,Nn=ne.useRef(),On=ne.useRef();(0,se.Z)(function(){Un&&(On.current=document.activeElement)},[Un]);var Tn=function(jr){var ir;if(Jt(jr),pt==null||pt(jr),!jr&&On.current&&!((ir=Nn.current)!==null&&ir!==void 0&&ir.contains(On.current))){var gr;(gr=On.current)===null||gr===void 0||gr.focus({preventScroll:!0})}},Zn=ne.useMemo(function(){return{panel:Nt}},[Nt]);if(!lt&&!en&&!Un&&at)return null;var Pr={onMouseEnter:st,onMouseOver:ft,onMouseLeave:vt,onClick:St,onKeyDown:xt,onKeyUp:Ft},Nr=(0,E.Z)((0,E.Z)({},Re),{},{open:Un,prefixCls:et,placement:Be,autoFocus:Te,keyboard:Ie,width:rt,mask:tt,maskClosable:ct,inline:ht===!1,afterOpenChange:Tn,ref:Nn},Pr);return ne.createElement(ce.Provider,{value:Zn},ne.createElement(de.Z,{open:Un||lt||en,autoDestroy:!1,getContainer:ht,autoLock:tt&&(Un||en)},ne.createElement(he,Nr)))},ye=Se,Pe=ye,we=ve(62892),De=ve(36355),Ee=ve(32441),Ae=ve(47729),je=He=>{const{prefixCls:Re,title:$e,footer:Le,extra:Ne,closeIcon:et,closable:Ze,onClose:Be,headerStyle:Oe,drawerStyle:Te,bodyStyle:xe,footerStyle:Ie,children:Ke}=He,rt=ne.useCallback(ht=>ne.createElement("button",{type:"button",onClick:Be,"aria-label":"Close",className:`${Re}-close`},ht),[Be]),[ke,tt]=(0,Ae.Z)(Ze,et,rt,void 0,!0),mt=ne.useMemo(()=>!$e&&!ke?null:ne.createElement("div",{style:Oe,className:_e()(`${Re}-header`,{[`${Re}-header-close-only`]:ke&&!$e&&!Ne})},ne.createElement("div",{className:`${Re}-header-title`},tt,$e&&ne.createElement("div",{className:`${Re}-title`},$e)),Ne&&ne.createElement("div",{className:`${Re}-extra`},Ne)),[ke,tt,Ne,Oe,Re,$e]),ct=ne.useMemo(()=>{if(!Le)return null;const ht=`${Re}-footer`;return ne.createElement("div",{className:ht,style:Ie},Le)},[Le,Ie,Re]);return ne.createElement("div",{className:`${Re}-wrapper-body`,style:Te},mt,ne.createElement("div",{className:`${Re}-body`,style:xe},Ke),ct)},Me=ve(33234),Ge=ve(83116),Fe=ve(37613),qe=He=>{const{componentCls:Re,motionDurationSlow:$e}=He,Le={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${$e}`}}};return{[Re]:{[`${Re}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${$e}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${Re}-panel-motion`]:{"&-left":[Le,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[Le,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[Le,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[Le,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}};const Xe=He=>{const{componentCls:Re,zIndexPopup:$e,colorBgMask:Le,colorBgElevated:Ne,motionDurationSlow:et,motionDurationMid:Ze,padding:Be,paddingLG:Oe,fontSizeLG:Te,lineHeightLG:xe,lineWidth:Ie,lineType:Ke,colorSplit:rt,marginSM:ke,colorIcon:tt,colorIconHover:mt,colorText:ct,fontWeightStrong:ht,footerPaddingBlock:lt,footerPaddingInline:pt}=He,at=`${Re}-content-wrapper`;return{[Re]:{position:"fixed",inset:0,zIndex:$e,pointerEvents:"none","&-pure":{position:"relative",background:Ne,[`&${Re}-left`]:{boxShadow:He.boxShadowDrawerLeft},[`&${Re}-right`]:{boxShadow:He.boxShadowDrawerRight},[`&${Re}-top`]:{boxShadow:He.boxShadowDrawerUp},[`&${Re}-bottom`]:{boxShadow:He.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${Re}-mask`]:{position:"absolute",inset:0,zIndex:$e,background:Le,pointerEvents:"auto"},[at]:{position:"absolute",zIndex:$e,maxWidth:"100vw",transition:`all ${et}`,"&-hidden":{display:"none"}},[`&-left > ${at}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:He.boxShadowDrawerLeft},[`&-right > ${at}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:He.boxShadowDrawerRight},[`&-top > ${at}`]:{top:0,insetInline:0,boxShadow:He.boxShadowDrawerUp},[`&-bottom > ${at}`]:{bottom:0,insetInline:0,boxShadow:He.boxShadowDrawerDown},[`${Re}-content`]:{width:"100%",height:"100%",overflow:"auto",background:Ne,pointerEvents:"auto"},[`${Re}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${Re}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${Be}px ${Oe}px`,fontSize:Te,lineHeight:xe,borderBottom:`${Ie}px ${Ke} ${rt}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${Re}-extra`]:{flex:"none"},[`${Re}-close`]:{display:"inline-block",marginInlineEnd:ke,color:tt,fontWeight:ht,fontSize:Te,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${Ze}`,textRendering:"auto","&:focus, &:hover":{color:mt,textDecoration:"none"}},[`${Re}-title`]:{flex:1,margin:0,color:ct,fontWeight:He.fontWeightStrong,fontSize:Te,lineHeight:xe},[`${Re}-body`]:{flex:1,minWidth:0,minHeight:0,padding:Oe,overflow:"auto"},[`${Re}-footer`]:{flexShrink:0,padding:`${lt}px ${pt}px`,borderTop:`${Ie}px ${Ke} ${rt}`},"&-rtl":{direction:"rtl"}}}};var Ve=(0,Ge.Z)("Drawer",He=>{const Re=(0,Fe.TS)(He,{});return[Xe(Re),qe(Re)]},He=>({zIndexPopup:He.zIndexPopupBase,footerPaddingBlock:He.paddingXS,footerPaddingInline:He.padding})),We=ve(11575),ze=function(He,Re){var $e={};for(var Le in He)Object.prototype.hasOwnProperty.call(He,Le)&&Re.indexOf(Le)<0&&($e[Le]=He[Le]);if(He!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ne=0,Le=Object.getOwnPropertySymbols(He);Ne{var Re;const{rootClassName:$e,width:Le,height:Ne,size:et="default",mask:Ze=!0,push:Be=ot,open:Oe,afterOpenChange:Te,onClose:xe,prefixCls:Ie,getContainer:Ke,style:rt,className:ke,visible:tt,afterVisibleChange:mt}=He,ct=ze(He,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:ht,getPrefixCls:lt,direction:pt,drawer:at}=ne.useContext(De.E_),st=lt("drawer",Ie),[ft,vt]=Ve(st),St=Ke===void 0&&ht?()=>ht(document.body):Ke,xt=_e()({"no-mask":!Ze,[`${st}-rtl`]:pt==="rtl"},$e,vt),Ft=ne.useMemo(()=>Le!=null?Le:et==="large"?736:378,[Le,et]),Nt=ne.useMemo(()=>Ne!=null?Ne:et==="large"?736:378,[Ne,et]),Xt={motionName:(0,we.m)(st,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},dn=Jt=>({motionName:(0,we.m)(st,`panel-motion-${Jt}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),en=(0,We.H)();return ft(ne.createElement(Me.BR,null,ne.createElement(Ee.Ux,{status:!0,override:!0},ne.createElement(Pe,Object.assign({prefixCls:st,onClose:xe,maskMotion:Xt,motion:dn},ct,{open:Oe!=null?Oe:tt,mask:Ze,push:Be,width:Ft,height:Nt,style:Object.assign(Object.assign({},at==null?void 0:at.style),rt),className:_e()(at==null?void 0:at.className,ke),rootClassName:xt,getContainer:St,afterOpenChange:Te!=null?Te:mt,panelRef:en}),ne.createElement(je,Object.assign({prefixCls:st},ct,{onClose:xe}))))))},ut=He=>{const{prefixCls:Re,style:$e,className:Le,placement:Ne="right"}=He,et=ze(He,["prefixCls","style","className","placement"]),{getPrefixCls:Ze}=ne.useContext(De.E_),Be=Ze("drawer",Re),[Oe,Te]=Ve(Be),xe=_e()(Be,`${Be}-pure`,`${Be}-${Ne}`,Te,Le);return Oe(ne.createElement("div",{className:xe,style:$e},ne.createElement(je,Object.assign({prefixCls:Be},et))))};Qe._InternalPanelDoNotUseOrYouWillBeFired=ut;var Ye=Qe},91857:function(Et,dt,ve){"use strict";var be=ve(59301),_e=ve(38819),E=ve(92310),pe=ve.n(E),de=ve(31561),se=ve(70425),ne=ve(18929),ie=ve(2738),ce=ve(79676),ue=ve(53487),ae=ve(92343),oe=ve(36355),re=ve(20834),ee=ve(40875),a=ve(88088),y=ve(47211);const x=null,b=fe=>{const{menu:ge,arrow:me,prefixCls:he,children:Se,trigger:ye,disabled:Pe,dropdownRender:we,getPopupContainer:De,overlayClassName:Ee,rootClassName:Ae,open:Ce,onOpenChange:je,visible:Me,onVisibleChange:Ge,mouseEnterDelay:Fe=.15,mouseLeaveDelay:Je=.1,autoAdjustOverflow:qe=!0,placement:Xe="",overlay:Ve,transitionName:We}=fe,{getPopupContainer:ze,getPrefixCls:Ue,direction:ot}=be.useContext(oe.E_),Qe=be.useMemo(()=>{const ke=Ue();return We!==void 0?We:Xe.includes("top")?`${ke}-slide-down`:`${ke}-slide-up`},[Ue,Xe,We]),ut=be.useMemo(()=>Xe?Xe.includes("Center")?Xe.slice(0,Xe.indexOf("Center")):Xe:ot==="rtl"?"bottomRight":"bottomLeft",[Xe,ot]),Ye=Ue("dropdown",he),[He,Re]=(0,y.Z)(Ye),[,$e]=(0,a.Z)(),Le=be.Children.only(Se),Ne=(0,ae.Tm)(Le,{className:pe()(`${Ye}-trigger`,{[`${Ye}-rtl`]:ot==="rtl"},Le.props.className),disabled:Pe}),et=Pe?[]:ye;let Ze;et&&et.includes("contextMenu")&&(Ze=!0);const[Be,Oe]=(0,ne.Z)(!1,{value:Ce!=null?Ce:Me}),Te=(0,se.useEvent)(ke=>{je==null||je(ke),Ge==null||Ge(ke),Oe(ke)}),xe=pe()(Ee,Ae,Re,{[`${Ye}-rtl`]:ot==="rtl"}),Ie=(0,ce.Z)({arrowPointAtCenter:typeof me=="object"&&me.pointAtCenter,autoAdjustOverflow:qe,offset:$e.marginXXS,arrowWidth:me?$e.sizePopupArrow:0,borderRadius:$e.borderRadius}),Ke=be.useCallback(()=>{Oe(!1)},[]),rt=()=>{let ke;return ge!=null&&ge.items?ke=be.createElement(re.default,Object.assign({},ge)):typeof Ve=="function"?ke=Ve():ke=Ve,we&&(ke=we(ke)),ke=be.Children.only(typeof ke=="string"?be.createElement("span",null,ke):ke),be.createElement(ee.J,{prefixCls:`${Ye}-menu`,expandIcon:be.createElement("span",{className:`${Ye}-menu-submenu-arrow`},be.createElement(_e.Z,{className:`${Ye}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Ke,validator:tt=>{let{mode:mt}=tt}},ke)};return He(be.createElement(de.Z,Object.assign({alignPoint:Ze},(0,ie.Z)(fe,["rootClassName"]),{mouseEnterDelay:Fe,mouseLeaveDelay:Je,visible:Be,builtinPlacements:Ie,arrow:!!me,overlayClassName:xe,prefixCls:Ye,getPopupContainer:De||ze,transitionName:Qe,trigger:et,overlay:rt,placement:ut,onVisibleChange:Te}),Ne))};function z(fe){return Object.assign(Object.assign({},fe),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const te=(0,ue.Z)(b,"dropdown",fe=>fe,z),le=fe=>be.createElement(te,Object.assign({},fe),be.createElement("span",null));b._InternalPanelDoNotUseOrYouWillBeFired=le,dt.Z=b},38854:function(Et,dt,ve){"use strict";ve.d(dt,{Z:function(){return a}});var be=ve(91857),_e=ve(92310),E=ve.n(_e),pe=ve(59301),de=ve(18785),se=ve(3113),ne=ve(36355),ie=ve(81327),ce=ve(33234),ue=ve(47211),ae=function(y,x){var b={};for(var z in y)Object.prototype.hasOwnProperty.call(y,z)&&x.indexOf(z)<0&&(b[z]=y[z]);if(y!=null&&typeof Object.getOwnPropertySymbols=="function")for(var te=0,z=Object.getOwnPropertySymbols(y);te{const{getPopupContainer:x,getPrefixCls:b,direction:z}=pe.useContext(ne.E_),{prefixCls:te,type:le="default",danger:fe,disabled:ge,loading:me,onClick:he,htmlType:Se,children:ye,className:Pe,menu:we,arrow:De,autoFocus:Ee,overlay:Ae,trigger:Ce,align:je,open:Me,onOpenChange:Ge,placement:Fe,getPopupContainer:Je,href:qe,icon:Xe=pe.createElement(de.Z,null),title:Ve,buttonsRender:We=rt=>rt,mouseEnterDelay:ze,mouseLeaveDelay:Ue,overlayClassName:ot,overlayStyle:Qe,destroyPopupOnHide:ut,dropdownRender:Ye}=y,He=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"]),Re=b("dropdown",te),$e=`${Re}-button`,[Le,Ne]=(0,ue.Z)(Re),et={menu:we,arrow:De,autoFocus:Ee,align:je,disabled:ge,trigger:ge?[]:Ce,onOpenChange:Ge,getPopupContainer:Je||x,mouseEnterDelay:ze,mouseLeaveDelay:Ue,overlayClassName:ot,overlayStyle:Qe,destroyPopupOnHide:ut,dropdownRender:Ye},{compactSize:Ze,compactItemClassnames:Be}=(0,ce.ri)(Re,z),Oe=E()($e,Be,Pe,Ne);"overlay"in y&&(et.overlay=Ae),"open"in y&&(et.open=Me),"placement"in y?et.placement=Fe:et.placement=z==="rtl"?"bottomLeft":"bottomRight";const Te=pe.createElement(se.ZP,{type:le,danger:fe,disabled:ge,loading:me,onClick:he,htmlType:Se,href:qe,title:Ve},ye),xe=pe.createElement(se.ZP,{type:le,danger:fe,icon:Xe}),[Ie,Ke]=We([Te,xe]);return Le(pe.createElement(ie.Z.Compact,Object.assign({className:Oe,size:Ze,block:!0},He),Ie,pe.createElement(be.Z,Object.assign({},et),Ke)))};oe.__ANT_BUTTON=!0;var re=oe;const ee=be.Z;ee.Button=re;var a=ee},47211:function(Et,dt,ve){"use strict";ve.d(dt,{Z:function(){return ae}});var be=ve(17313),_e=ve(13826),E=ve(92899),pe=ve(29878),de=ve(19447),se=ve(83116),ne=ve(37613),ce=oe=>{const{componentCls:re,menuCls:ee,colorError:a,colorTextLightSolid:y}=oe,x=`${ee}-item`;return{[`${re}, ${re}-menu-submenu`]:{[`${ee} ${x}`]:{[`&${x}-danger:not(${x}-disabled)`]:{color:a,"&:hover":{color:y,backgroundColor:a}}}}}};const ue=oe=>{const{componentCls:re,menuCls:ee,zIndexPopup:a,dropdownArrowDistance:y,sizePopupArrow:x,antCls:b,iconCls:z,motionDurationMid:te,dropdownPaddingVertical:le,fontSize:fe,dropdownEdgeChildPadding:ge,colorTextDisabled:me,fontSizeIcon:he,controlPaddingHorizontal:Se,colorBgElevated:ye}=oe;return[{[re]:Object.assign(Object.assign({},(0,be.Wf)(oe)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:a,display:"block","&::before":{position:"absolute",insetBlock:-y+x/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${b}-btn`]:{[`& > ${z}-down, & > ${b}-btn-icon > ${z}-down`]:{fontSize:he}},[`${re}-wrap`]:{position:"relative",[`${b}-btn > ${z}-down`]:{fontSize:he},[`${z}-down::before`]:{transition:`transform ${te}`}},[`${re}-wrap-open`]:{[`${z}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${b}-slide-down-enter${b}-slide-down-enter-active${re}-placement-bottomLeft, &${b}-slide-down-appear${b}-slide-down-appear-active${re}-placement-bottomLeft, &${b}-slide-down-enter${b}-slide-down-enter-active${re}-placement-bottom, &${b}-slide-down-appear${b}-slide-down-appear-active${re}-placement-bottom, &${b}-slide-down-enter${b}-slide-down-enter-active${re}-placement-bottomRight, &${b}-slide-down-appear${b}-slide-down-appear-active${re}-placement-bottomRight`]:{animationName:_e.fJ},[`&${b}-slide-up-enter${b}-slide-up-enter-active${re}-placement-topLeft, &${b}-slide-up-appear${b}-slide-up-appear-active${re}-placement-topLeft, &${b}-slide-up-enter${b}-slide-up-enter-active${re}-placement-top, &${b}-slide-up-appear${b}-slide-up-appear-active${re}-placement-top, &${b}-slide-up-enter${b}-slide-up-enter-active${re}-placement-topRight, &${b}-slide-up-appear${b}-slide-up-appear-active${re}-placement-topRight`]:{animationName:_e.Qt},[`&${b}-slide-down-leave${b}-slide-down-leave-active${re}-placement-bottomLeft, &${b}-slide-down-leave${b}-slide-down-leave-active${re}-placement-bottom, &${b}-slide-down-leave${b}-slide-down-leave-active${re}-placement-bottomRight`]:{animationName:_e.Uw},[`&${b}-slide-up-leave${b}-slide-up-leave-active${re}-placement-topLeft, &${b}-slide-up-leave${b}-slide-up-leave-active${re}-placement-top, &${b}-slide-up-leave${b}-slide-up-leave-active${re}-placement-topRight`]:{animationName:_e.ly}})},(0,de.ZP)(oe,{colorBg:ye,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${re} ${ee}`]:{position:"relative",margin:0},[`${ee}-submenu-popup`]:{position:"absolute",zIndex:a,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${re}, ${re}-menu-submenu`]:{[ee]:Object.assign(Object.assign({padding:ge,listStyleType:"none",backgroundColor:ye,backgroundClip:"padding-box",borderRadius:oe.borderRadiusLG,outline:"none",boxShadow:oe.boxShadowSecondary},(0,be.Qy)(oe)),{[`${ee}-item-group-title`]:{padding:`${le}px ${Se}px`,color:oe.colorTextDescription,transition:`all ${te}`},[`${ee}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ee}-item-icon`]:{minWidth:fe,marginInlineEnd:oe.marginXS,fontSize:oe.fontSizeSM},[`${ee}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${te}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${ee}-item, ${ee}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${le}px ${Se}px`,color:oe.colorText,fontWeight:"normal",fontSize:fe,lineHeight:oe.lineHeight,cursor:"pointer",transition:`all ${te}`,borderRadius:oe.borderRadiusSM,"&:hover, &-active":{backgroundColor:oe.controlItemBgHover}},(0,be.Qy)(oe)),{"&-selected":{color:oe.colorPrimary,backgroundColor:oe.controlItemBgActive,"&:hover, &-active":{backgroundColor:oe.controlItemBgActiveHover}},"&-disabled":{color:me,cursor:"not-allowed","&:hover":{color:me,backgroundColor:ye,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${oe.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:oe.colorSplit},[`${re}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:oe.paddingXS,[`${re}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:oe.colorTextDescription,fontSize:he,fontStyle:"normal"}}}),[`${ee}-item-group-list`]:{margin:`0 ${oe.marginXS}px`,padding:0,listStyle:"none"},[`${ee}-submenu-title`]:{paddingInlineEnd:Se+oe.fontSizeSM},[`${ee}-submenu-vertical`]:{position:"relative"},[`${ee}-submenu${ee}-submenu-disabled ${re}-menu-submenu-title`]:{[`&, ${re}-menu-submenu-arrow-icon`]:{color:me,backgroundColor:ye,cursor:"not-allowed"}},[`${ee}-submenu-selected ${re}-menu-submenu-title`]:{color:oe.colorPrimary}})}},[(0,_e.oN)(oe,"slide-up"),(0,_e.oN)(oe,"slide-down"),(0,E.Fm)(oe,"move-up"),(0,E.Fm)(oe,"move-down"),(0,pe._y)(oe,"zoom-big")]]};var ae=(0,se.Z)("Dropdown",(oe,re)=>{let{rootPrefixCls:ee}=re;const{marginXXS:a,sizePopupArrow:y,controlHeight:x,fontSize:b,lineHeight:z,paddingXXS:te,componentCls:le,borderRadiusLG:fe}=oe,ge=(x-b*z)/2,{dropdownArrowOffset:me}=(0,de.fS)({contentRadius:fe}),he=(0,ne.TS)(oe,{menuCls:`${le}-menu`,rootPrefixCls:ee,dropdownArrowDistance:y/2+a,dropdownArrowOffset:me,dropdownPaddingVertical:ge,dropdownEdgeChildPadding:te});return[ue(he),ce(he)]},oe=>({zIndexPopup:oe.zIndexPopupBase+50}))},8628:function(Et,dt,ve){"use strict";var be=ve(59301),_e=ve(34280),E=ve(56762),pe=ve(69507);function de(){let se=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const ne=(0,be.useRef)({}),ie=(0,E.Z)(),ce=(0,pe.ZP)();return(0,_e.Z)(()=>{const ue=ce.subscribe(ae=>{ne.current=ae,se&&ie()});return()=>ce.unsubscribe(ue)},[]),ne.current}dt.Z=de},11611:function(Et,dt,ve){"use strict";ve.d(dt,{Z:function(){return rr}});var be=ve(59301),_e=ve(15277),E=ve(92310),pe=ve.n(E),de=ve(54476),se=ve(33885),ne=ve(20068),ie=ve(42978),ce=ve(76190),ue=ve(75931),ae=ve(55468),oe=ve(18929),re=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"],ee=be.createContext(null),a=0;function y(Ht,Lt){var rn=be.useState(function(){return a+=1,String(a)}),Dt=(0,ie.Z)(rn,1),un=Dt[0],En=be.useContext(ee),In={data:Lt,canPreview:Ht};return be.useEffect(function(){if(En)return En.register(un,In)},[]),be.useEffect(function(){En&&En.register(un,In)},[Ht,Lt]),un}function x(Ht){return new Promise(function(Lt){var rn=document.createElement("img");rn.onerror=function(){return Lt(!1)},rn.onload=function(){return Lt(!0)},rn.src=Ht})}function b(Ht){var Lt=Ht.src,rn=Ht.isCustomPlaceholder,Dt=Ht.fallback,un=(0,be.useState)(rn?"loading":"normal"),En=(0,ie.Z)(un,2),In=En[0],Sn=En[1],bt=(0,be.useRef)(!1),Mt=In==="error";(0,be.useEffect)(function(){x(Lt).then(function($t){$t||Sn("error")})},[Lt]),(0,be.useEffect)(function(){rn&&!bt.current?Sn("loading"):Mt&&Sn("normal")},[Lt]);var Bt=function(){Sn("normal")},Ct=function(Wt){bt.current=!1,In==="loading"&&Wt!=null&&Wt.complete&&(Wt.naturalWidth||Wt.naturalHeight)&&(bt.current=!0,Bt())},Vt=Mt&&Dt?{src:Dt}:{onLoad:Bt,src:Lt};return[Ct,Vt,In]}var z=ve(86923),te=ve(8224),le=ve(10228),fe=ve(48736);function ge(Ht,Lt,rn,Dt){var un=Lt+rn,En=(rn-Dt)/2;if(rn>Dt){if(Lt>0)return(0,ne.Z)({},Ht,En);if(Lt<0&&unDt)return(0,ne.Z)({},Ht,Lt<0?En:-En);return{}}function me(Ht,Lt,rn,Dt){var un=(0,ae.g1)(),En=un.width,In=un.height,Sn=null;return Ht<=En&&Lt<=In?Sn={x:0,y:0}:(Ht>En||Lt>In)&&(Sn=(0,se.Z)((0,se.Z)({},ge("x",rn,Ht,En)),ge("y",Dt,Lt,In))),Sn}var he=ve(13697),Se=ve(16089),ye={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function Pe(Ht,Lt,rn,Dt){var un=(0,be.useRef)(null),En=(0,be.useRef)([]),In=(0,be.useState)(ye),Sn=(0,ie.Z)(In,2),bt=Sn[0],Mt=Sn[1],Bt=function(Wt){Mt(ye),Dt&&!(0,he.Z)(ye,bt)&&Dt({transform:ye,action:Wt})},Ct=function(Wt,Kt){un.current===null&&(En.current=[],un.current=(0,Se.Z)(function(){Mt(function(Rn){var Mn=Rn;return En.current.forEach(function(kt){Mn=(0,se.Z)((0,se.Z)({},Mn),kt)}),un.current=null,Dt==null||Dt({transform:Mn,action:Kt}),Mn})})),En.current.push((0,se.Z)((0,se.Z)({},bt),Wt))},Vt=function(Wt,Kt,Rn,Mn){var kt=Ht.current,vr=kt.width,tr=kt.height,nr=kt.offsetWidth,Kr=kt.offsetHeight,gn=kt.offsetLeft,vn=kt.offsetTop,Wn=Wt,Pn=bt.scale*Wt;Pn>rn?(Wn=rn/bt.scale,Pn=rn):Pn1,vo=to&&kt>=1,dr=Pe(Io,gn,Wn,po),wr=dr.transform,Er=dr.resetTransform,xr=dr.updateTransform,ao=dr.dispatchZoomChange,To=(0,be.useState)(!0),wo=(0,ie.Z)(To,2),Lo=wo[0],Yo=wo[1],Mo=wr.rotate,$r=wr.scale,no=wr.x,zo=wr.y,Tt=pe()((0,ne.Z)({},"".concat(rn,"-moving"),zr));(0,be.useEffect)(function(){Lo||Yo(!0)},[Lo]);var Gt=function(){Er("close")},on=function(){ao(Ce+nr,"zoomIn")},ln=function(){ao(Ce/(Ce+nr),"zoomOut")},Qt=function(){xr({rotate:Mo+90},"rotateRight")},Yt=function(){xr({rotate:Mo-90},"rotateLeft")},qt=function(){xr({flipX:!wr.flipX},"flipX")},an=function(){xr({flipY:!wr.flipY},"flipY")},hn=function(Dn){Dn==null||Dn.preventDefault(),Dn==null||Dn.stopPropagation(),Rn>0&&(Yo(!1),Er("prev"),io==null||io(Rn-1,Rn))},An=function(Dn){Dn==null||Dn.preventDefault(),Dn==null||Dn.stopPropagation(),Rn0&&(Tr=Ce/Tr),ao(Tr,"wheel",Dn.clientX,Dn.clientY)}},sr=function(Dn){!Mt||!lo||(Dn.keyCode===le.Z.LEFT?hn():Dn.keyCode===le.Z.RIGHT&&An())},kn=function(Dn){Mt&&($r!==1?xr({x:0,y:0,scale:1},"doubleClick"):ao(Ce+nr,"doubleClick",Dn.clientX,Dn.clientY))};(0,be.useEffect)(function(){var Sr,Dn,Or,Gr;if(Sn){Or=(0,te.Z)(window,"mouseup",mn,!1),Gr=(0,te.Z)(window,"mousemove",Kn,!1);try{window.top!==window.self&&(Sr=(0,te.Z)(window.top,"mouseup",mn,!1),Dn=(0,te.Z)(window.top,"mousemove",Kn,!1))}catch(Tr){(0,fe.Kp)(!1,"[rc-image] ".concat(Tr))}}return function(){var Tr,pr,Br,co;(Tr=Or)===null||Tr===void 0||Tr.remove(),(pr=Gr)===null||pr===void 0||pr.remove(),(Br=Sr)===null||Br===void 0||Br.remove(),(co=Dn)===null||co===void 0||co.remove()}},[Mt,zr,no,zo,Mo,Sn]),(0,be.useEffect)(function(){var Sr=(0,te.Z)(window,"keydown",sr,!1);return function(){Sr.remove()}},[Mt,lo,Rn]);var hr=be.createElement(Fe,(0,de.Z)({},Cr,{width:Lt.width,height:Lt.height,imgRef:Io,className:"".concat(rn,"-img"),alt:un,style:{transform:"translate3d(".concat(wr.x,"px, ").concat(wr.y,"px, 0) scale3d(").concat(wr.flipX?"-":"").concat($r,", ").concat(wr.flipY?"-":"").concat($r,", 1) rotate(").concat(Mo,"deg)"),transitionDuration:!Lo&&"0s"},fallback:En,src:Dt,onWheel:Jr,onMouseDown:_r,onDoubleClick:kn}));return be.createElement(be.Fragment,null,be.createElement(z.Z,(0,de.Z)({transitionName:yr,maskTransitionName:Yn,closable:!1,keyboard:!0,prefixCls:rn,onClose:bt,visible:Mt,wrapClassName:Tt,rootClassName:Vt,getContainer:Wt},ko,{afterClose:Gt}),be.createElement("div",{className:"".concat(rn,"-img-wrapper")},kr?kr(hr,(0,se.Z)({transform:wr},to?{current:Rn}:{})):hr)),be.createElement(Ae,{visible:Mt,transform:wr,maskTransitionName:Yn,closeIcon:$t,getContainer:Wt,prefixCls:rn,rootClassName:Vt,icons:Ct,countRender:vr,showSwitch:lo,showProgress:vo,current:Rn,count:kt,scale:$r,minScale:gn,maxScale:Wn,toolbarRender:Po,onSwitchLeft:hn,onSwitchRight:An,onZoomIn:on,onZoomOut:ln,onRotateRight:Qt,onRotateLeft:Yt,onFlipX:qt,onFlipY:an,onClose:bt}))},qe=Je,Xe=ve(94480);function Ve(Ht){var Lt=be.useState({}),rn=(0,ie.Z)(Lt,2),Dt=rn[0],un=rn[1],En=be.useCallback(function(Sn,bt){return un(function(Mt){return(0,se.Z)((0,se.Z)({},Mt),{},(0,ne.Z)({},Sn,bt))}),function(){un(function(Mt){var Bt=(0,se.Z)({},Mt);return delete Bt[Sn],Bt})}},[]),In=be.useMemo(function(){return Ht?Ht.map(function(Sn){if(typeof Sn=="string")return{data:{src:Sn}};var bt={};return Object.keys(Sn).forEach(function(Mt){["src"].concat((0,Xe.Z)(re)).includes(Mt)&&(bt[Mt]=Sn[Mt])}),{data:bt}}):Object.keys(Dt).reduce(function(Sn,bt){var Mt=Dt[bt],Bt=Mt.canPreview,Ct=Mt.data;return Bt&&Sn.push({data:Ct,id:bt}),Sn},[])},[Ht,Dt]);return[In,En]}var We=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],ze=["src"],Ue=function(Lt){var rn,Dt=Lt.previewPrefixCls,un=Dt===void 0?"rc-image-preview":Dt,En=Lt.children,In=Lt.icons,Sn=In===void 0?{}:In,bt=Lt.items,Mt=Lt.preview,Bt=Lt.fallback,Ct=(0,ce.Z)(Mt)==="object"?Mt:{},Vt=Ct.visible,$t=Ct.onVisibleChange,Wt=Ct.getContainer,Kt=Ct.current,Rn=Ct.movable,Mn=Ct.minScale,kt=Ct.maxScale,vr=Ct.countRender,tr=Ct.closeIcon,nr=Ct.onChange,Kr=Ct.onTransform,gn=Ct.toolbarRender,vn=Ct.imageRender,Wn=(0,ue.Z)(Ct,We),Pn=Ve(bt),yr=(0,ie.Z)(Pn,2),ur=yr[0],Yn=yr[1],kr=(0,oe.Z)(0,{value:Kt}),Cr=(0,ie.Z)(kr,2),Po=Cr[0],po=Cr[1],io=(0,be.useState)(!1),ko=(0,ie.Z)(io,2),Io=ko[0],pn=ko[1],Ro=((rn=ur[Po])===null||rn===void 0?void 0:rn.data)||{},mo=Ro.src,zr=(0,ue.Z)(Ro,ze),bo=(0,oe.Z)(!!Vt,{value:Vt,onChange:function(Mo,$r){$t==null||$t(Mo,$r,Po)}}),to=(0,ie.Z)(bo,2),lo=to[0],vo=to[1],dr=(0,be.useState)(null),wr=(0,ie.Z)(dr,2),Er=wr[0],xr=wr[1],ao=be.useCallback(function(Yo,Mo,$r){var no=ur.findIndex(function(zo){return zo.id===Yo});vo(!0),xr({x:Mo,y:$r}),po(no<0?0:no),pn(!0)},[ur]);be.useEffect(function(){lo?Io||po(0):pn(!1)},[lo]);var To=function(Mo,$r){po(Mo),nr==null||nr(Mo,$r)},wo=function(){vo(!1),xr(null)},Lo=be.useMemo(function(){return{register:Yn,onPreview:ao}},[Yn,ao]);return be.createElement(ee.Provider,{value:Lo},En,be.createElement(qe,(0,de.Z)({"aria-hidden":!lo,movable:Rn,visible:lo,prefixCls:un,closeIcon:tr,onClose:wo,mousePosition:Er,imgCommonProps:zr,src:mo,fallback:Bt,icons:Sn,minScale:Mn,maxScale:kt,getContainer:Wt,current:Po,count:ur.length,countRender:vr,onTransform:Kr,toolbarRender:gn,imageRender:vn,onChange:To},Wn)))},ot=Ue,Qe=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],ut=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],Ye=function(Lt){var rn=Lt.src,Dt=Lt.alt,un=Lt.onPreviewClose,En=Lt.prefixCls,In=En===void 0?"rc-image":En,Sn=Lt.previewPrefixCls,bt=Sn===void 0?"".concat(In,"-preview"):Sn,Mt=Lt.placeholder,Bt=Lt.fallback,Ct=Lt.width,Vt=Lt.height,$t=Lt.style,Wt=Lt.preview,Kt=Wt===void 0?!0:Wt,Rn=Lt.className,Mn=Lt.onClick,kt=Lt.onError,vr=Lt.wrapperClassName,tr=Lt.wrapperStyle,nr=Lt.rootClassName,Kr=(0,ue.Z)(Lt,Qe),gn=Mt&&Mt!==!0,vn=(0,ce.Z)(Kt)==="object"?Kt:{},Wn=vn.src,Pn=vn.visible,yr=Pn===void 0?void 0:Pn,ur=vn.onVisibleChange,Yn=ur===void 0?un:ur,kr=vn.getContainer,Cr=kr===void 0?void 0:kr,Po=vn.mask,po=vn.maskClassName,io=vn.movable,ko=vn.icons,Io=vn.scaleStep,pn=vn.minScale,Ro=vn.maxScale,mo=vn.imageRender,zr=vn.toolbarRender,bo=(0,ue.Z)(vn,ut),to=Wn!=null?Wn:rn,lo=(0,oe.Z)(!!yr,{value:yr,onChange:Yn}),vo=(0,ie.Z)(lo,2),dr=vo[0],wr=vo[1],Er=b({src:rn,isCustomPlaceholder:gn,fallback:Bt}),xr=(0,ie.Z)(Er,3),ao=xr[0],To=xr[1],wo=xr[2],Lo=(0,be.useState)(null),Yo=(0,ie.Z)(Lo,2),Mo=Yo[0],$r=Yo[1],no=(0,be.useContext)(ee),zo=!!Kt,Tt=function(){wr(!1),$r(null)},Gt=pe()(In,vr,nr,(0,ne.Z)({},"".concat(In,"-error"),wo==="error")),on=(0,be.useMemo)(function(){var qt={};return re.forEach(function(an){Lt[an]!==void 0&&(qt[an]=Lt[an])}),qt},re.map(function(qt){return Lt[qt]})),ln=(0,be.useMemo)(function(){return(0,se.Z)((0,se.Z)({},on),{},{src:to})},[to,on]),Qt=y(zo,ln),Yt=function(an){var hn=(0,ae.os)(an.target),An=hn.left,mn=hn.top;no?no.onPreview(Qt,An,mn):($r({x:An,y:mn}),wr(!0)),Mn==null||Mn(an)};return be.createElement(be.Fragment,null,be.createElement("div",(0,de.Z)({},Kr,{className:Gt,onClick:zo?Yt:Mn,style:(0,se.Z)({width:Ct,height:Vt},tr)}),be.createElement("img",(0,de.Z)({},on,{className:pe()("".concat(In,"-img"),(0,ne.Z)({},"".concat(In,"-img-placeholder"),Mt===!0),Rn),style:(0,se.Z)({height:Vt},$t),ref:ao},To,{width:Ct,height:Vt,onError:kt})),wo==="loading"&&be.createElement("div",{"aria-hidden":"true",className:"".concat(In,"-placeholder")},Mt),Po&&zo&&be.createElement("div",{className:pe()("".concat(In,"-mask"),po),style:{display:($t==null?void 0:$t.display)==="none"?"none":void 0}},Po)),!no&&zo&&be.createElement(qe,(0,de.Z)({"aria-hidden":!dr,visible:dr,prefixCls:bt,onClose:Tt,mousePosition:Mo,src:to,alt:Dt,fallback:Bt,getContainer:Cr,icons:ko,movable:io,scaleStep:Io,minScale:pn,maxScale:Ro,rootClassName:nr,imageRender:mo,imgCommonProps:on,toolbarRender:zr},bo)))};Ye.PreviewGroup=ot,Ye.displayName="Image";var He=Ye,Re=He,$e=ve(62892),Le=ve(36355),Ne=ve(31724),et=ve(99267),Ze=ve(33853),Be=ve(38819),Oe={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"},Te=Oe,xe=ve(7657),Ie=function(Lt,rn){return be.createElement(xe.Z,(0,de.Z)({},Lt,{ref:rn,icon:Te}))},Ke=be.forwardRef(Ie),rt=Ke,ke={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"},tt=ke,mt=function(Lt,rn){return be.createElement(xe.Z,(0,de.Z)({},Lt,{ref:rn,icon:tt}))},ct=be.forwardRef(mt),ht=ct,lt={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"},pt=lt,at=function(Lt,rn){return be.createElement(xe.Z,(0,de.Z)({},Lt,{ref:rn,icon:pt}))},st=be.forwardRef(at),ft=st,vt={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"},St=vt,xt=function(Lt,rn){return be.createElement(xe.Z,(0,de.Z)({},Lt,{ref:rn,icon:St}))},Ft=be.forwardRef(xt),Nt=Ft,Xt={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"},dn=Xt,en=function(Lt,rn){return be.createElement(xe.Z,(0,de.Z)({},Lt,{ref:rn,icon:dn}))},Jt=be.forwardRef(en),wn=Jt,Ln=ve(64993),fn=ve(73819),zn=ve(17313),Un=ve(29878),Nn=ve(1950),On=ve(83116),Tn=ve(37613);const Zn=Ht=>({position:Ht||"absolute",inset:0}),Pr=Ht=>{const{iconCls:Lt,motionDurationSlow:rn,paddingXXS:Dt,marginXXS:un,prefixCls:En,colorTextLightSolid:In}=Ht;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:In,background:new Ln.C("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${rn}`,[`.${En}-mask-info`]:Object.assign(Object.assign({},zn.vS),{padding:`0 ${Dt}px`,[Lt]:{marginInlineEnd:un,svg:{verticalAlign:"baseline"}}})}},Nr=Ht=>{const{previewCls:Lt,modalMaskBg:rn,paddingSM:Dt,marginXL:un,margin:En,paddingLG:In,previewOperationColorDisabled:Sn,previewOperationHoverColor:bt,motionDurationSlow:Mt,iconCls:Bt,colorTextLightSolid:Ct}=Ht,Vt=new Ln.C(rn).setAlpha(.1),$t=Vt.clone().setAlpha(.2);return{[`${Lt}-footer`]:{position:"fixed",bottom:un,left:{_skip_check_:!0,value:0},width:"100%",display:"flex",flexDirection:"column",alignItems:"center",color:Ht.previewOperationColor},[`${Lt}-progress`]:{marginBottom:En},[`${Lt}-close`]:{position:"fixed",top:un,right:{_skip_check_:!0,value:un},display:"flex",color:Ct,backgroundColor:Vt.toRgbString(),borderRadius:"50%",padding:Dt,outline:0,border:0,cursor:"pointer",transition:`all ${Mt}`,"&:hover":{backgroundColor:$t.toRgbString()},[`& > ${Bt}`]:{fontSize:Ht.previewOperationSize}},[`${Lt}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${In}px`,backgroundColor:Vt.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:Dt,padding:Dt,cursor:"pointer",transition:`all ${Mt}`,userSelect:"none",[`&:not(${Lt}-operations-operation-disabled):hover > ${Bt}`]:{color:bt},"&-disabled":{color:Sn,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${Bt}`]:{fontSize:Ht.previewOperationSize}}}}},qn=Ht=>{const{modalMaskBg:Lt,iconCls:rn,previewOperationColorDisabled:Dt,previewCls:un,zIndexPopup:En,motionDurationSlow:In}=Ht,Sn=new Ln.C(Lt).setAlpha(.1),bt=Sn.clone().setAlpha(.2);return{[`${un}-switch-left, ${un}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:En+1,display:"flex",alignItems:"center",justifyContent:"center",width:Ht.imagePreviewSwitchSize,height:Ht.imagePreviewSwitchSize,marginTop:-Ht.imagePreviewSwitchSize/2,color:Ht.previewOperationColor,background:Sn.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${In}`,userSelect:"none","&:hover":{background:bt.toRgbString()},"&-disabled":{"&, &:hover":{color:Dt,background:"transparent",cursor:"not-allowed",[`> ${rn}`]:{cursor:"not-allowed"}}},[`> ${rn}`]:{fontSize:Ht.previewOperationSize}},[`${un}-switch-left`]:{insetInlineStart:Ht.marginSM},[`${un}-switch-right`]:{insetInlineEnd:Ht.marginSM}}},jr=Ht=>{const{motionEaseOut:Lt,previewCls:rn,motionDurationSlow:Dt,componentCls:un}=Ht;return[{[`${un}-preview-root`]:{[rn]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${rn}-body`]:Object.assign(Object.assign({},Zn()),{overflow:"hidden"}),[`${rn}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${Dt} ${Lt} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},Zn()),{transition:`transform ${Dt} ${Lt} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${rn}-moving`]:{[`${rn}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${un}-preview-root`]:{[`${rn}-wrap`]:{zIndex:Ht.zIndexPopup}}},{[`${un}-preview-operations-wrapper`]:{position:"fixed",zIndex:Ht.zIndexPopup+1},"&":[Nr(Ht),qn(Ht)]}]},ir=Ht=>{const{componentCls:Lt}=Ht;return{[Lt]:{position:"relative",display:"inline-block",[`${Lt}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${Lt}-img-placeholder`]:{backgroundColor:Ht.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${Lt}-mask`]:Object.assign({},Pr(Ht)),[`${Lt}-mask:hover`]:{opacity:1},[`${Lt}-placeholder`]:Object.assign({},Zn())}}},gr=Ht=>{const{previewCls:Lt}=Ht;return{[`${Lt}-root`]:(0,Un._y)(Ht,"zoom"),"&":(0,Nn.J$)(Ht,!0)}};var Ot=(0,On.Z)("Image",Ht=>{const Lt=`${Ht.componentCls}-preview`,rn=(0,Tn.TS)(Ht,{previewCls:Lt,modalMaskBg:new Ln.C("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:Ht.controlHeightLG});return[ir(rn),jr(rn),(0,fn.QA)((0,Tn.TS)(rn,{componentCls:Lt})),gr(rn)]},Ht=>({zIndexPopup:Ht.zIndexPopupBase+80,previewOperationColor:new Ln.C(Ht.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new Ln.C(Ht.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new Ln.C(Ht.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:Ht.fontSizeIcon*1.5})),jt=function(Ht,Lt){var rn={};for(var Dt in Ht)Object.prototype.hasOwnProperty.call(Ht,Dt)&&Lt.indexOf(Dt)<0&&(rn[Dt]=Ht[Dt]);if(Ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var un=0,Dt=Object.getOwnPropertySymbols(Ht);un{var{previewPrefixCls:Lt,preview:rn}=Ht,Dt=jt(Ht,["previewPrefixCls","preview"]);const{getPrefixCls:un}=be.useContext(Le.E_),En=un("image",Lt),In=`${En}-preview`,Sn=un(),[bt,Mt]=Ot(En),Bt=be.useMemo(()=>{var Ct;if(rn===!1)return rn;const Vt=typeof rn=="object"?rn:{},$t=pe()(Mt,(Ct=Vt.rootClassName)!==null&&Ct!==void 0?Ct:"");return Object.assign(Object.assign({},Vt),{transitionName:(0,$e.m)(Sn,"zoom",Vt.transitionName),maskTransitionName:(0,$e.m)(Sn,"fade",Vt.maskTransitionName),rootClassName:$t})},[rn]);return bt(be.createElement(Re.PreviewGroup,Object.assign({preview:Bt,previewPrefixCls:In,icons:_t},Dt)))},Cn=function(Ht,Lt){var rn={};for(var Dt in Ht)Object.prototype.hasOwnProperty.call(Ht,Dt)&&Lt.indexOf(Dt)<0&&(rn[Dt]=Ht[Dt]);if(Ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var un=0,Dt=Object.getOwnPropertySymbols(Ht);un{const{prefixCls:Lt,preview:rn,className:Dt,rootClassName:un,style:En}=Ht,In=Cn(Ht,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:Sn,locale:bt=Ne.Z,getPopupContainer:Mt,image:Bt}=be.useContext(Le.E_),Ct=Sn("image",Lt),Vt=Sn(),$t=bt.Image||Ne.Z.Image,[Wt,Kt]=Ot(Ct),Rn=pe()(un,Kt),Mn=pe()(Dt,Kt,Bt==null?void 0:Bt.className),kt=be.useMemo(()=>{if(rn===!1)return rn;const tr=typeof rn=="object"?rn:{},{getContainer:nr}=tr,Kr=Cn(tr,["getContainer"]);return Object.assign(Object.assign({mask:be.createElement("div",{className:`${Ct}-mask-info`},be.createElement(_e.Z,null),$t==null?void 0:$t.preview),icons:_t},Kr),{getContainer:nr||Mt,transitionName:(0,$e.m)(Vt,"zoom",tr.transitionName),maskTransitionName:(0,$e.m)(Vt,"fade",tr.maskTransitionName)})},[rn,$t]),vr=Object.assign(Object.assign({},Bt==null?void 0:Bt.style),En);return Wt(be.createElement(Re,Object.assign({prefixCls:Ct,preview:kt,rootClassName:Rn,className:Mn,style:vr},In)))};Fr.PreviewGroup=Bn;var rr=Fr},45818:function(Et,dt,ve){"use strict";ve.d(dt,{D:function(){return te},Z:function(){return ge}});var be=ve(54476),_e=ve(59301),E={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=E,de=ve(7657),se=function(he,Se){return _e.createElement(de.Z,(0,be.Z)({},he,{ref:Se,icon:pe}))},ne=_e.forwardRef(se),ie=ne,ce=ve(33853),ue=ve(38819),ae=ve(92310),oe=ve.n(ae),re=ve(2738),a=me=>!isNaN(parseFloat(me))&&isFinite(me),y=ve(36355),x=ve(84966),b=function(me,he){var Se={};for(var ye in me)Object.prototype.hasOwnProperty.call(me,ye)&&he.indexOf(ye)<0&&(Se[ye]=me[ye]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,ye=Object.getOwnPropertySymbols(me);Pe{let me=0;return function(){let he=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return me+=1,`${he}${me}`}})();var ge=_e.forwardRef((me,he)=>{const{prefixCls:Se,className:ye,trigger:Pe,children:we,defaultCollapsed:De=!1,theme:Ee="dark",style:Ae={},collapsible:Ce=!1,reverseArrow:je=!1,width:Me=200,collapsedWidth:Ge=80,zeroWidthTriggerStyle:Fe,breakpoint:Je,onCollapse:qe,onBreakpoint:Xe}=me,Ve=b(me,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:We}=(0,_e.useContext)(x.Gs),[ze,Ue]=(0,_e.useState)("collapsed"in me?me.collapsed:De),[ot,Qe]=(0,_e.useState)(!1);(0,_e.useEffect)(()=>{"collapsed"in me&&Ue(me.collapsed)},[me.collapsed]);const ut=(Ne,et)=>{"collapsed"in me||Ue(Ne),qe==null||qe(Ne,et)},Ye=(0,_e.useRef)();Ye.current=Ne=>{Qe(Ne.matches),Xe==null||Xe(Ne.matches),ze!==Ne.matches&&ut(Ne.matches,"responsive")},(0,_e.useEffect)(()=>{function Ne(Ze){return Ye.current(Ze)}let et;if(typeof window!="undefined"){const{matchMedia:Ze}=window;if(Ze&&Je&&Je in z){et=Ze(`(max-width: ${z[Je]})`);try{et.addEventListener("change",Ne)}catch(Be){et.addListener(Ne)}Ne(et)}}return()=>{try{et==null||et.removeEventListener("change",Ne)}catch(Ze){et==null||et.removeListener(Ne)}}},[Je]),(0,_e.useEffect)(()=>{const Ne=le("ant-sider-");return We.addSider(Ne),()=>We.removeSider(Ne)},[]);const He=()=>{ut(!ze,"clickTrigger")},{getPrefixCls:Re}=(0,_e.useContext)(y.E_),$e=()=>{const Ne=Re("layout-sider",Se),et=(0,re.Z)(Ve,["collapsed"]),Ze=ze?Ge:Me,Be=a(Ze)?`${Ze}px`:String(Ze),Oe=parseFloat(String(Ge||0))===0?_e.createElement("span",{onClick:He,className:oe()(`${Ne}-zero-width-trigger`,`${Ne}-zero-width-trigger-${je?"right":"left"}`),style:Fe},Pe||_e.createElement(ie,null)):null,Ie={expanded:je?_e.createElement(ue.Z,null):_e.createElement(ce.Z,null),collapsed:je?_e.createElement(ce.Z,null):_e.createElement(ue.Z,null)}[ze?"collapsed":"expanded"],Ke=Pe!==null?Oe||_e.createElement("div",{className:`${Ne}-trigger`,onClick:He,style:{width:Be}},Pe||Ie):null,rt=Object.assign(Object.assign({},Ae),{flex:`0 0 ${Be}`,maxWidth:Be,minWidth:Be,width:Be}),ke=oe()(Ne,`${Ne}-${Ee}`,{[`${Ne}-collapsed`]:!!ze,[`${Ne}-has-trigger`]:Ce&&Pe!==null&&!Oe,[`${Ne}-below`]:!!ot,[`${Ne}-zero-width`]:parseFloat(Be)===0},ye);return _e.createElement("aside",Object.assign({className:ke},et,{style:rt,ref:he}),_e.createElement("div",{className:`${Ne}-children`},we),Ce||ot&&Oe?Ke:null)},Le=_e.useMemo(()=>({siderCollapsed:ze}),[ze]);return _e.createElement(te.Provider,{value:Le},$e())})},84966:function(Et,dt,ve){"use strict";ve.d(dt,{VY:function(){return te},$_:function(){return z},h4:function(){return b},Gs:function(){return re},ZP:function(){return le}});var be=ve(94480),_e=ve(92310),E=ve.n(_e),pe=ve(2738),de=ve(59301),se=ve(36355),ne=ve(83116),ce=fe=>{const{componentCls:ge,bodyBg:me,lightSiderBg:he,lightTriggerBg:Se,lightTriggerColor:ye}=fe;return{[`${ge}-sider-light`]:{background:he,[`${ge}-sider-trigger`]:{color:ye,background:Se},[`${ge}-sider-zero-width-trigger`]:{color:ye,background:Se,border:`1px solid ${me}`,borderInlineStart:0}}}};const ue=fe=>{const{antCls:ge,componentCls:me,colorText:he,triggerColor:Se,footerBg:ye,triggerBg:Pe,headerHeight:we,headerPadding:De,headerColor:Ee,footerPadding:Ae,triggerHeight:Ce,zeroTriggerHeight:je,zeroTriggerWidth:Me,motionDurationMid:Ge,motionDurationSlow:Fe,fontSize:Je,borderRadius:qe,bodyBg:Xe,headerBg:Ve,siderBg:We}=fe;return{[me]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Xe,"&, *":{boxSizing:"border-box"},[`&${me}-has-sider`]:{flexDirection:"row",[`> ${me}, > ${me}-content`]:{width:0}},[`${me}-header, &${me}-footer`]:{flex:"0 0 auto"},[`${me}-sider`]:{position:"relative",minWidth:0,background:We,transition:`all ${Ge}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${ge}-menu${ge}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Ce},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Ce,color:Se,lineHeight:`${Ce}px`,textAlign:"center",background:Pe,cursor:"pointer",transition:`all ${Ge}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:we,insetInlineEnd:-Me,zIndex:1,width:Me,height:je,color:Se,fontSize:fe.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:We,borderStartStartRadius:0,borderStartEndRadius:qe,borderEndEndRadius:qe,borderEndStartRadius:0,cursor:"pointer",transition:`background ${Fe} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${Fe}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-Me,borderStartStartRadius:qe,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:qe}}}}},ce(fe)),{"&-rtl":{direction:"rtl"}}),[`${me}-header`]:{height:we,padding:De,color:Ee,lineHeight:`${we}px`,background:Ve,[`${ge}-menu`]:{lineHeight:"inherit"}},[`${me}-footer`]:{padding:Ae,color:he,fontSize:Je,background:ye},[`${me}-content`]:{flex:"auto",minHeight:0}}};var ae=(0,ne.Z)("Layout",fe=>[ue(fe)],fe=>{const{colorBgLayout:ge,controlHeight:me,controlHeightLG:he,colorText:Se,controlHeightSM:ye,marginXXS:Pe,colorTextLightSolid:we,colorBgContainer:De}=fe,Ee=he*1.25;return{colorBgHeader:"#001529",colorBgBody:ge,colorBgTrigger:"#002140",bodyBg:ge,headerBg:"#001529",headerHeight:me*2,headerPadding:`0 ${Ee}px`,headerColor:Se,footerPadding:`${ye}px ${Ee}px`,footerBg:ge,siderBg:"#001529",triggerHeight:he+Pe*2,triggerBg:"#002140",triggerColor:we,zeroTriggerWidth:he,zeroTriggerHeight:he,lightSiderBg:De,lightTriggerBg:De,lightTriggerColor:Se}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),oe=function(fe,ge){var me={};for(var he in fe)Object.prototype.hasOwnProperty.call(fe,he)&&ge.indexOf(he)<0&&(me[he]=fe[he]);if(fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Se=0,he=Object.getOwnPropertySymbols(fe);Senull,removeSider:()=>null}});function ee(fe){let{suffixCls:ge,tagName:me,displayName:he}=fe;return Se=>de.forwardRef((Pe,we)=>de.createElement(Se,Object.assign({ref:we,suffixCls:ge,tagName:me},Pe)))}const a=de.forwardRef((fe,ge)=>{const{prefixCls:me,suffixCls:he,className:Se,tagName:ye}=fe,Pe=oe(fe,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:we}=de.useContext(se.E_),De=we("layout",me),[Ee,Ae]=ae(De),Ce=he?`${De}-${he}`:De;return Ee(de.createElement(ye,Object.assign({className:E()(me||Ce,Se,Ae),ref:ge},Pe)))}),y=de.forwardRef((fe,ge)=>{const{direction:me}=de.useContext(se.E_),[he,Se]=de.useState([]),{prefixCls:ye,className:Pe,rootClassName:we,children:De,hasSider:Ee,tagName:Ae,style:Ce}=fe,je=oe(fe,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Me=(0,pe.Z)(je,["suffixCls"]),{getPrefixCls:Ge,layout:Fe}=de.useContext(se.E_),Je=Ge("layout",ye),[qe,Xe]=ae(Je),Ve=E()(Je,{[`${Je}-has-sider`]:typeof Ee=="boolean"?Ee:he.length>0,[`${Je}-rtl`]:me==="rtl"},Fe==null?void 0:Fe.className,Pe,we,Xe),We=de.useMemo(()=>({siderHook:{addSider:ze=>{Se(Ue=>[].concat((0,be.Z)(Ue),[ze]))},removeSider:ze=>{Se(Ue=>Ue.filter(ot=>ot!==ze))}}}),[]);return qe(de.createElement(re.Provider,{value:We},de.createElement(Ae,Object.assign({ref:ge,className:Ve,style:Object.assign(Object.assign({},Fe==null?void 0:Fe.style),Ce)},Me),De)))}),x=ee({tagName:"div",displayName:"Layout"})(y),b=ee({suffixCls:"header",tagName:"header",displayName:"Header"})(a),z=ee({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(a),te=ee({suffixCls:"content",tagName:"main",displayName:"Content"})(a);var le=x},40875:function(Et,dt,ve){"use strict";ve.d(dt,{J:function(){return se}});var be=ve(59301),_e=ve(33234),E=ve(70425),pe=function(ne,ie){var ce={};for(var ue in ne)Object.prototype.hasOwnProperty.call(ne,ue)&&ie.indexOf(ue)<0&&(ce[ue]=ne[ue]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ae=0,ue=Object.getOwnPropertySymbols(ne);ae{const{children:ce}=ne,ue=pe(ne,["children"]),ae=be.useContext(de),oe=be.useMemo(()=>Object.assign(Object.assign({},ae),ue),[ae,ue.prefixCls,ue.mode,ue.selectable]);return be.createElement(de.Provider,{value:oe},be.createElement(_e.BR,null,(0,E.supportNodeRef)(ce)?be.cloneElement(ce,{ref:ie}):ce))});dt.Z=de},20834:function(Et,dt,ve){"use strict";ve.d(dt,{default:function(){return Le}});var be=ve(15285),_e=ve(59301),E=ve(45818),pe=ve(92310),de=ve.n(pe),se=ve(36355),ne=function(Ne,et){var Ze={};for(var Be in Ne)Object.prototype.hasOwnProperty.call(Ne,Be)&&et.indexOf(Be)<0&&(Ze[Be]=Ne[Be]);if(Ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,Be=Object.getOwnPropertySymbols(Ne);Oe{const{prefixCls:et,className:Ze,dashed:Be}=Ne,Oe=ne(Ne,["prefixCls","className","dashed"]),{getPrefixCls:Te}=_e.useContext(se.E_),xe=Te("menu",et),Ie=de()({[`${xe}-item-divider-dashed`]:!!Be},Ze);return _e.createElement(be.iz,Object.assign({className:Ie},Oe))},ue=ve(11592),ae=ve(2738),oe=ve(6848),re=ve(92343),a=(0,_e.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),x=Ne=>{var et;const{className:Ze,children:Be,icon:Oe,title:Te,danger:xe}=Ne,{prefixCls:Ie,firstLevel:Ke,direction:rt,disableMenuItemTitleTooltip:ke,inlineCollapsed:tt}=_e.useContext(a),mt=st=>{const ft=_e.createElement("span",{className:`${Ie}-title-content`},Be);return(!Oe||(0,re.l$)(Be)&&Be.type==="span")&&Be&&st&&Ke&&typeof Be=="string"?_e.createElement("div",{className:`${Ie}-inline-collapsed-noicon`},Be.charAt(0)):ft},{siderCollapsed:ct}=_e.useContext(E.D);let ht=Te;typeof Te=="undefined"?ht=Ke?Be:"":Te===!1&&(ht="");const lt={title:ht};!ct&&!tt&&(lt.title=null,lt.open=!1);const pt=(0,ue.Z)(Be).length;let at=_e.createElement(be.ck,Object.assign({},(0,ae.Z)(Ne,["title","icon","danger"]),{className:de()({[`${Ie}-item-danger`]:xe,[`${Ie}-item-only-child`]:(Oe?pt+1:pt)===1},Ze),title:typeof Te=="string"?Te:void 0}),(0,re.Tm)(Oe,{className:de()((0,re.l$)(Oe)?(et=Oe.props)===null||et===void 0?void 0:et.className:"",`${Ie}-item-icon`)}),mt(tt));return ke||(at=_e.createElement(oe.Z,Object.assign({},lt,{placement:rt==="rtl"?"left":"right",overlayClassName:`${Ie}-inline-collapsed-tooltip`}),at)),at},z=Ne=>{var et;const{popupClassName:Ze,icon:Be,title:Oe,theme:Te}=Ne,xe=_e.useContext(a),{prefixCls:Ie,inlineCollapsed:Ke,theme:rt}=xe,ke=(0,be.Xl)();let tt;if(!Be)tt=Ke&&!ke.length&&Oe&&typeof Oe=="string"?_e.createElement("div",{className:`${Ie}-inline-collapsed-noicon`},Oe.charAt(0)):_e.createElement("span",{className:`${Ie}-title-content`},Oe);else{const ct=(0,re.l$)(Oe)&&Oe.type==="span";tt=_e.createElement(_e.Fragment,null,(0,re.Tm)(Be,{className:de()((0,re.l$)(Be)?(et=Be.props)===null||et===void 0?void 0:et.className:"",`${Ie}-item-icon`)}),ct?Oe:_e.createElement("span",{className:`${Ie}-title-content`},Oe))}const mt=_e.useMemo(()=>Object.assign(Object.assign({},xe),{firstLevel:!1}),[xe]);return _e.createElement(a.Provider,{value:mt},_e.createElement(be.Wd,Object.assign({},(0,ae.Z)(Ne,["icon"]),{title:tt,popupClassName:de()(Ie,Ze,`${Ie}-${Te||rt}`)})))},te=ve(18785),le=ve(70425),fe=ve(62892),ge=ve(40875),me=function(Ne,et){var Ze={};for(var Be in Ne)Object.prototype.hasOwnProperty.call(Ne,Be)&&et.indexOf(Be)<0&&(Ze[Be]=Ne[Be]);if(Ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,Be=Object.getOwnPropertySymbols(Ne);Oe{if(et&&typeof et=="object"){const Be=et,{label:Oe,children:Te,key:xe,type:Ie}=Be,Ke=me(Be,["label","children","key","type"]),rt=xe!=null?xe:`tmp-${Ze}`;return Te||Ie==="group"?Ie==="group"?_e.createElement(be.BW,Object.assign({key:rt},Ke,{title:Oe}),he(Te)):_e.createElement(z,Object.assign({key:rt},Ke,{title:Oe}),he(Te)):Ie==="divider"?_e.createElement(ce,Object.assign({key:rt},Ke)):_e.createElement(x,Object.assign({key:rt},Ke),Oe)}return null}).filter(et=>et)}function Se(Ne){return _e.useMemo(()=>Ne&&he(Ne),[Ne])}var ye=ve(64993),Pe=ve(17313),we=ve(8378),De=ve(13826),Ee=ve(29878),Ae=ve(83116),Ce=ve(37613),Me=Ne=>{const{componentCls:et,motionDurationSlow:Ze,horizontalLineHeight:Be,colorSplit:Oe,lineWidth:Te,lineType:xe,itemPaddingInline:Ie}=Ne;return{[`${et}-horizontal`]:{lineHeight:Be,border:0,borderBottom:`${Te}px ${xe} ${Oe}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${et}-item, ${et}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Ie},[`> ${et}-item:hover, > ${et}-item-active, > ${et}-submenu ${et}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${et}-item, ${et}-submenu-title`]:{transition:[`border-color ${Ze}`,`background ${Ze}`].join(",")},[`${et}-submenu-arrow`]:{display:"none"}}}},Fe=Ne=>{let{componentCls:et,menuArrowOffset:Ze}=Ne;return{[`${et}-rtl`]:{direction:"rtl"},[`${et}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${et}-rtl${et}-vertical, ${et}-submenu-rtl ${et}-vertical`]:{[`${et}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${Ze})`},"&::after":{transform:`rotate(45deg) translateY(${Ze})`}}}}};const Je=Ne=>Object.assign({},(0,Pe.oN)(Ne));var Xe=(Ne,et)=>{const{componentCls:Ze,itemColor:Be,itemSelectedColor:Oe,groupTitleColor:Te,itemBg:xe,subMenuItemBg:Ie,itemSelectedBg:Ke,activeBarHeight:rt,activeBarWidth:ke,activeBarBorderWidth:tt,motionDurationSlow:mt,motionEaseInOut:ct,motionEaseOut:ht,itemPaddingInline:lt,motionDurationMid:pt,itemHoverColor:at,lineType:st,colorSplit:ft,itemDisabledColor:vt,dangerItemColor:St,dangerItemHoverColor:xt,dangerItemSelectedColor:Ft,dangerItemActiveBg:Nt,dangerItemSelectedBg:Xt,itemHoverBg:dn,itemActiveBg:en,menuSubMenuBg:Jt,horizontalItemSelectedColor:wn,horizontalItemSelectedBg:Ln,horizontalItemBorderRadius:fn,horizontalItemHoverBg:zn,popupBg:Un}=Ne;return{[`${Ze}-${et}, ${Ze}-${et} > ${Ze}`]:{color:Be,background:xe,[`&${Ze}-root:focus-visible`]:Object.assign({},Je(Ne)),[`${Ze}-item-group-title`]:{color:Te},[`${Ze}-submenu-selected`]:{[`> ${Ze}-submenu-title`]:{color:Oe}},[`${Ze}-item-disabled, ${Ze}-submenu-disabled`]:{color:`${vt} !important`},[`${Ze}-item:not(${Ze}-item-selected):not(${Ze}-submenu-selected)`]:{[`&:hover, > ${Ze}-submenu-title:hover`]:{color:at}},[`&:not(${Ze}-horizontal)`]:{[`${Ze}-item:not(${Ze}-item-selected)`]:{"&:hover":{backgroundColor:dn},"&:active":{backgroundColor:en}},[`${Ze}-submenu-title`]:{"&:hover":{backgroundColor:dn},"&:active":{backgroundColor:en}}},[`${Ze}-item-danger`]:{color:St,[`&${Ze}-item:hover`]:{[`&:not(${Ze}-item-selected):not(${Ze}-submenu-selected)`]:{color:xt}},[`&${Ze}-item:active`]:{background:Nt}},[`${Ze}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Ze}-item-selected`]:{color:Oe,[`&${Ze}-item-danger`]:{color:Ft},"a, a:hover":{color:"inherit"}},[`& ${Ze}-item-selected`]:{backgroundColor:Ke,[`&${Ze}-item-danger`]:{backgroundColor:Xt}},[`${Ze}-item, ${Ze}-submenu-title`]:{[`&:not(${Ze}-item-disabled):focus-visible`]:Object.assign({},Je(Ne))},[`&${Ze}-submenu > ${Ze}`]:{backgroundColor:Jt},[`&${Ze}-popup > ${Ze}`]:{backgroundColor:Un},[`&${Ze}-horizontal`]:Object.assign(Object.assign({},et==="dark"?{borderBottom:0}:{}),{[`> ${Ze}-item, > ${Ze}-submenu`]:{top:tt,marginTop:-tt,marginBottom:0,borderRadius:fn,"&::after":{position:"absolute",insetInline:lt,bottom:0,borderBottom:`${rt}px solid transparent`,transition:`border-color ${mt} ${ct}`,content:'""'},"&:hover, &-active, &-open":{background:zn,"&::after":{borderBottomWidth:rt,borderBottomColor:wn}},"&-selected":{color:wn,backgroundColor:Ln,"&:hover":{backgroundColor:Ln},"&::after":{borderBottomWidth:rt,borderBottomColor:wn}}}}),[`&${Ze}-root`]:{[`&${Ze}-inline, &${Ze}-vertical`]:{borderInlineEnd:`${tt}px ${st} ${ft}`}},[`&${Ze}-inline`]:{[`${Ze}-sub${Ze}-inline`]:{background:Ie},[`${Ze}-item, ${Ze}-submenu-title`]:tt&&ke?{width:`calc(100% + ${tt}px)`}:{},[`${Ze}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${ke}px solid ${Oe}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${pt} ${ht}`,`opacity ${pt} ${ht}`].join(","),content:'""'},[`&${Ze}-item-danger`]:{"&::after":{borderInlineEndColor:Ft}}},[`${Ze}-selected, ${Ze}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${pt} ${ct}`,`opacity ${pt} ${ct}`].join(",")}}}}}};const Ve=Ne=>{const{componentCls:et,itemHeight:Ze,itemMarginInline:Be,padding:Oe,menuArrowSize:Te,marginXS:xe,itemMarginBlock:Ie}=Ne,Ke=Oe+Te+xe;return{[`${et}-item`]:{position:"relative",overflow:"hidden"},[`${et}-item, ${et}-submenu-title`]:{height:Ze,lineHeight:`${Ze}px`,paddingInline:Oe,overflow:"hidden",textOverflow:"ellipsis",marginInline:Be,marginBlock:Ie,width:`calc(100% - ${Be*2}px)`},[`> ${et}-item, > ${et}-submenu > ${et}-submenu-title`]:{height:Ze,lineHeight:`${Ze}px`},[`${et}-item-group-list ${et}-submenu-title, ${et}-submenu-title`]:{paddingInlineEnd:Ke}}};var ze=Ne=>{const{componentCls:et,iconCls:Ze,itemHeight:Be,colorTextLightSolid:Oe,dropdownWidth:Te,controlHeightLG:xe,motionDurationMid:Ie,motionEaseOut:Ke,paddingXL:rt,itemMarginInline:ke,fontSizeLG:tt,motionDurationSlow:mt,paddingXS:ct,boxShadowSecondary:ht,collapsedWidth:lt,collapsedIconSize:pt}=Ne,at={height:Be,lineHeight:`${Be}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[et]:{"&-inline, &-vertical":Object.assign({[`&${et}-root`]:{boxShadow:"none"}},Ve(Ne))},[`${et}-submenu-popup`]:{[`${et}-vertical`]:Object.assign(Object.assign({},Ve(Ne)),{boxShadow:ht})}},{[`${et}-submenu-popup ${et}-vertical${et}-sub`]:{minWidth:Te,maxHeight:`calc(100vh - ${xe*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${et}-inline`]:{width:"100%",[`&${et}-root`]:{[`${et}-item, ${et}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${mt}`,`background ${mt}`,`padding ${Ie} ${Ke}`].join(","),[`> ${et}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${et}-sub${et}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${et}-submenu > ${et}-submenu-title`]:at,[`& ${et}-item-group-title`]:{paddingInlineStart:rt}},[`${et}-item`]:at}},{[`${et}-inline-collapsed`]:{width:lt,[`&${et}-root`]:{[`${et}-item, ${et}-submenu ${et}-submenu-title`]:{[`> ${et}-inline-collapsed-noicon`]:{fontSize:tt,textAlign:"center"}}},[`> ${et}-item, > ${et}-item-group > ${et}-item-group-list > ${et}-item, > ${et}-item-group > ${et}-item-group-list > ${et}-submenu > ${et}-submenu-title, > ${et}-submenu > ${et}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${tt/2}px - ${ke}px)`,textOverflow:"clip",[` ${et}-submenu-arrow, ${et}-submenu-expand-icon `]:{opacity:0},[`${et}-item-icon, ${Ze}`]:{margin:0,fontSize:pt,lineHeight:`${Be}px`,"+ span":{display:"inline-block",opacity:0}}},[`${et}-item-icon, ${Ze}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${et}-item-icon, ${Ze}`]:{display:"none"},"a, a:hover":{color:Oe}},[`${et}-item-group-title`]:Object.assign(Object.assign({},Pe.vS),{paddingInline:ct})}}]};const Ue=Ne=>{const{componentCls:et,motionDurationSlow:Ze,motionDurationMid:Be,motionEaseInOut:Oe,motionEaseOut:Te,iconCls:xe,iconSize:Ie,iconMarginInlineEnd:Ke}=Ne;return{[`${et}-item, ${et}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Ze}`,`background ${Ze}`,`padding ${Ze} ${Oe}`].join(","),[`${et}-item-icon, ${xe}`]:{minWidth:Ie,fontSize:Ie,transition:[`font-size ${Be} ${Te}`,`margin ${Ze} ${Oe}`,`color ${Ze}`].join(","),"+ span":{marginInlineStart:Ke,opacity:1,transition:[`opacity ${Ze} ${Oe}`,`margin ${Ze}`,`color ${Ze}`].join(",")}},[`${et}-item-icon`]:Object.assign({},(0,Pe.Ro)()),[`&${et}-item-only-child`]:{[`> ${xe}, > ${et}-item-icon`]:{marginInlineEnd:0}}},[`${et}-item-disabled, ${et}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${et}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},ot=Ne=>{const{componentCls:et,motionDurationSlow:Ze,motionEaseInOut:Be,borderRadius:Oe,menuArrowSize:Te,menuArrowOffset:xe}=Ne;return{[`${et}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Ne.margin,width:Te,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Ze} ${Be}, opacity ${Ze}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:Te*.6,height:Te*.15,backgroundColor:"currentcolor",borderRadius:Oe,transition:[`background ${Ze} ${Be}`,`transform ${Ze} ${Be}`,`top ${Ze} ${Be}`,`color ${Ze} ${Be}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${xe})`},"&::after":{transform:`rotate(-45deg) translateY(${xe})`}}}}},Qe=Ne=>{const{antCls:et,componentCls:Ze,fontSize:Be,motionDurationSlow:Oe,motionDurationMid:Te,motionEaseInOut:xe,paddingXS:Ie,padding:Ke,colorSplit:rt,lineWidth:ke,zIndexPopup:tt,borderRadiusLG:mt,subMenuItemBorderRadius:ct,menuArrowSize:ht,menuArrowOffset:lt,lineType:pt,menuPanelMaskInset:at,groupTitleLineHeight:st,groupTitleFontSize:ft}=Ne;return[{"":{[`${Ze}`]:Object.assign(Object.assign({},(0,Pe.dF)()),{"&-hidden":{display:"none"}})},[`${Ze}-submenu-hidden`]:{display:"none"}},{[Ze]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Pe.Wf)(Ne)),(0,Pe.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:Be,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Oe} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${Ze}-item`]:{flex:"none"}},[`${Ze}-item, ${Ze}-submenu, ${Ze}-submenu-title`]:{borderRadius:Ne.itemBorderRadius},[`${Ze}-item-group-title`]:{padding:`${Ie}px ${Ke}px`,fontSize:ft,lineHeight:st,transition:`all ${Oe}`},[`&-horizontal ${Ze}-submenu`]:{transition:[`border-color ${Oe} ${xe}`,`background ${Oe} ${xe}`].join(",")},[`${Ze}-submenu, ${Ze}-submenu-inline`]:{transition:[`border-color ${Oe} ${xe}`,`background ${Oe} ${xe}`,`padding ${Te} ${xe}`].join(",")},[`${Ze}-submenu ${Ze}-sub`]:{cursor:"initial",transition:[`background ${Oe} ${xe}`,`padding ${Oe} ${xe}`].join(",")},[`${Ze}-title-content`]:{transition:`color ${Oe}`},[`${Ze}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Ze}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:rt,borderStyle:pt,borderWidth:0,borderTopWidth:ke,marginBlock:ke,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Ue(Ne)),{[`${Ze}-item-group`]:{[`${Ze}-item-group-list`]:{margin:0,padding:0,[`${Ze}-item, ${Ze}-submenu-title`]:{paddingInline:`${Be*2}px ${Ke}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:tt,borderRadius:mt,boxShadow:"none",transformOrigin:"0 0",[`&${Ze}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${at}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:at},"\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:Ne.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:Ne.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:Ne.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:Ne.paddingXS},[`> ${Ze}`]:Object.assign(Object.assign(Object.assign({borderRadius:mt},Ue(Ne)),ot(Ne)),{[`${Ze}-item, ${Ze}-submenu > ${Ze}-submenu-title`]:{borderRadius:ct},[`${Ze}-submenu-title::after`]:{transition:`transform ${Oe} ${xe}`}})}}),ot(Ne)),{[`&-inline-collapsed ${Ze}-submenu-arrow, &-inline ${Ze}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${lt})`},"&::after":{transform:`rotate(45deg) translateX(-${lt})`}},[`${Ze}-submenu-open${Ze}-submenu-inline > ${Ze}-submenu-title > ${Ze}-submenu-arrow`]:{transform:`translateY(-${ht*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${lt})`},"&::before":{transform:`rotate(45deg) translateX(${lt})`}}})},{[`${et}-layout-header`]:{[Ze]:{lineHeight:"inherit"}}}]};var ut=(Ne,et)=>(0,Ae.Z)("Menu",Be=>{if(et===!1)return[];const{colorBgElevated:Oe,colorPrimary:Te,colorTextLightSolid:xe,controlHeightLG:Ie,fontSize:Ke,darkItemColor:rt,darkDangerItemColor:ke,darkItemBg:tt,darkSubMenuItemBg:mt,darkItemSelectedColor:ct,darkItemSelectedBg:ht,darkDangerItemSelectedBg:lt,darkItemHoverBg:pt,darkGroupTitleColor:at,darkItemHoverColor:st,darkItemDisabledColor:ft,darkDangerItemHoverColor:vt,darkDangerItemSelectedColor:St,darkDangerItemActiveBg:xt}=Be,Ft=Ke/7*5,Nt=(0,Ce.TS)(Be,{menuArrowSize:Ft,menuHorizontalHeight:Ie*1.15,menuArrowOffset:`${Ft*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Oe}),Xt=(0,Ce.TS)(Nt,{itemColor:rt,itemHoverColor:st,groupTitleColor:at,itemSelectedColor:ct,itemBg:tt,popupBg:tt,subMenuItemBg:mt,itemActiveBg:"transparent",itemSelectedBg:ht,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:pt,itemDisabledColor:ft,dangerItemColor:ke,dangerItemHoverColor:vt,dangerItemSelectedColor:St,dangerItemActiveBg:xt,dangerItemSelectedBg:lt,menuSubMenuBg:mt,horizontalItemSelectedColor:xe,horizontalItemSelectedBg:Te});return[Qe(Nt),Me(Nt),ze(Nt),Xe(Nt,"light"),Xe(Xt,"dark"),Fe(Nt),(0,we.Z)(Nt),(0,De.oN)(Nt,"slide-up"),(0,De.oN)(Nt,"slide-down"),(0,Ee._y)(Nt,"zoom-big")]},Be=>{const{colorPrimary:Oe,colorError:Te,colorTextDisabled:xe,colorErrorBg:Ie,colorText:Ke,colorTextDescription:rt,colorBgContainer:ke,colorFillAlter:tt,colorFillContent:mt,lineWidth:ct,lineWidthBold:ht,controlItemBgActive:lt,colorBgTextHover:pt,controlHeightLG:at,lineHeight:st,colorBgElevated:ft,marginXXS:vt,padding:St,fontSize:xt,controlHeightSM:Ft,fontSizeLG:Nt,colorTextLightSolid:Xt,colorErrorHover:dn}=Be,en=new ye.C(Xt).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:Be.zIndexPopupBase+50,radiusItem:Be.borderRadiusLG,itemBorderRadius:Be.borderRadiusLG,radiusSubMenuItem:Be.borderRadiusSM,subMenuItemBorderRadius:Be.borderRadiusSM,colorItemText:Ke,itemColor:Ke,colorItemTextHover:Ke,itemHoverColor:Ke,colorItemTextHoverHorizontal:Oe,horizontalItemHoverColor:Oe,colorGroupTitle:rt,groupTitleColor:rt,colorItemTextSelected:Oe,itemSelectedColor:Oe,colorItemTextSelectedHorizontal:Oe,horizontalItemSelectedColor:Oe,colorItemBg:ke,itemBg:ke,colorItemBgHover:pt,itemHoverBg:pt,colorItemBgActive:mt,itemActiveBg:lt,colorSubItemBg:tt,subMenuItemBg:tt,colorItemBgSelected:lt,itemSelectedBg:lt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:ht,activeBarHeight:ht,colorActiveBarBorderSize:ct,activeBarBorderWidth:ct,colorItemTextDisabled:xe,itemDisabledColor:xe,colorDangerItemText:Te,dangerItemColor:Te,colorDangerItemTextHover:Te,dangerItemHoverColor:Te,colorDangerItemTextSelected:Te,dangerItemSelectedColor:Te,colorDangerItemBgActive:Ie,dangerItemActiveBg:Ie,colorDangerItemBgSelected:Ie,dangerItemSelectedBg:Ie,itemMarginInline:Be.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:at,groupTitleLineHeight:st,collapsedWidth:at*2,popupBg:ft,itemMarginBlock:vt,itemPaddingInline:St,horizontalLineHeight:`${at*1.15}px`,iconSize:xt,iconMarginInlineEnd:Ft-xt,collapsedIconSize:Nt,groupTitleFontSize:xt,darkItemDisabledColor:new ye.C(Xt).setAlpha(.25).toRgbString(),darkItemColor:en,darkDangerItemColor:Te,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Xt,darkItemSelectedBg:Oe,darkDangerItemSelectedBg:Te,darkItemHoverBg:"transparent",darkGroupTitleColor:en,darkItemHoverColor:Xt,darkDangerItemHoverColor:dn,darkDangerItemSelectedColor:Xt,darkDangerItemActiveBg:Te}},{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"]]})(Ne),Ye=function(Ne,et){var Ze={};for(var Be in Ne)Object.prototype.hasOwnProperty.call(Ne,Be)&&et.indexOf(Be)<0&&(Ze[Be]=Ne[Be]);if(Ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,Be=Object.getOwnPropertySymbols(Ne);Oe{var Ze,Be;const Oe=_e.useContext(ge.Z),Te=Oe||{},{getPrefixCls:xe,getPopupContainer:Ie,direction:Ke,menu:rt}=_e.useContext(se.E_),ke=xe(),{prefixCls:tt,className:mt,style:ct,theme:ht="light",expandIcon:lt,_internalDisableMenuItemTitleTooltip:pt,inlineCollapsed:at,siderCollapsed:st,items:ft,children:vt,rootClassName:St,mode:xt,selectable:Ft,onClick:Nt,overflowedIndicatorPopupClassName:Xt}=Ne,dn=Ye(Ne,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),en=(0,ae.Z)(dn,["collapsedWidth"]),Jt=Se(ft)||vt;(Ze=Te.validator)===null||Ze===void 0||Ze.call(Te,{mode:xt});const wn=(0,le.useEvent)(function(){var qn;Nt==null||Nt.apply(void 0,arguments),(qn=Te.onClick)===null||qn===void 0||qn.call(Te)}),Ln=Te.mode||xt,fn=Ft!=null?Ft:Te.selectable,zn=_e.useMemo(()=>st!==void 0?st:at,[at,st]),Un={horizontal:{motionName:`${ke}-slide-up`},inline:(0,fe.Z)(ke),other:{motionName:`${ke}-zoom-big`}},Nn=xe("menu",tt||Te.prefixCls),[On,Tn]=ut(Nn,!Oe),Zn=de()(`${Nn}-${ht}`,rt==null?void 0:rt.className,mt);let Pr;if(typeof lt=="function")Pr=lt;else if(lt===null||lt===!1)Pr=null;else if(Te.expandIcon===null||Te.expandIcon===!1)Pr=null;else{const qn=lt!=null?lt:Te.expandIcon;Pr=(0,re.Tm)(qn,{className:de()(`${Nn}-submenu-expand-icon`,(0,re.l$)(qn)?(Be=qn.props)===null||Be===void 0?void 0:Be.className:"")})}const Nr=_e.useMemo(()=>({prefixCls:Nn,inlineCollapsed:zn||!1,direction:Ke,firstLevel:!0,theme:ht,mode:Ln,disableMenuItemTitleTooltip:pt}),[Nn,zn,Ke,pt,ht]);return On(_e.createElement(ge.Z.Provider,{value:null},_e.createElement(a.Provider,{value:Nr},_e.createElement(be.ZP,Object.assign({getPopupContainer:Ie,overflowedIndicator:_e.createElement(te.Z,null),overflowedIndicatorPopupClassName:de()(Nn,`${Nn}-${ht}`,Xt),mode:Ln,selectable:fn,onClick:wn},en,{inlineCollapsed:zn,style:Object.assign(Object.assign({},rt==null?void 0:rt.style),ct),className:Zn,prefixCls:Nn,direction:Ke,defaultMotions:Un,expandIcon:Pr,ref:et,rootClassName:de()(St,Tn)}),Jt))))});const $e=(0,_e.forwardRef)((Ne,et)=>{const Ze=(0,_e.useRef)(null),Be=_e.useContext(E.D);return(0,_e.useImperativeHandle)(et,()=>({menu:Ze.current,focus:Oe=>{var Te;(Te=Ze.current)===null||Te===void 0||Te.focus(Oe)}})),_e.createElement(Re,Object.assign({ref:Ze},Ne,Be))});$e.Item=x,$e.SubMenu=z,$e.Divider=ce,$e.ItemGroup=be.BW;var Le=$e},58421:function(Et,dt,ve){"use strict";ve.d(dt,{Z:function(){return Te}});var be=ve(54476),_e=ve(59301),E={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=E,de=ve(7657),se=function(Ie,Ke){return _e.createElement(de.Z,(0,be.Z)({},Ie,{ref:Ke,icon:pe}))},ne=_e.forwardRef(se),ie=ne,ce=ve(49198),ue=ve(33853),ae=ve(38819),oe=ve(92310),re=ve.n(oe),ee=ve(20068),a=ve(33885),y=ve(67732),x=ve(83652),b=ve(42403),z=ve(158),te=ve(26112),le={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},fe=le,ge=ve(91735),me=function(xe){(0,b.Z)(Ke,xe);var Ie=(0,z.Z)(Ke);function Ke(){var rt;(0,y.Z)(this,Ke);for(var ke=arguments.length,tt=new Array(ke),mt=0;mt=0||ct.relatedTarget.className.indexOf("".concat(at,"-item"))>=0))&&pt(rt.getValidValue()))},rt.go=function(ct){var ht=rt.state.goInputText;ht!==""&&(ct.keyCode===fe.ENTER||ct.type==="click")&&(rt.setState({goInputText:""}),rt.props.quickGo(rt.getValidValue()))},rt}return(0,x.Z)(Ke,[{key:"getPageSizeOptions",value:function(){var ke=this.props,tt=ke.pageSize,mt=ke.pageSizeOptions;return mt.some(function(ct){return ct.toString()===tt.toString()})?mt:mt.concat([tt.toString()]).sort(function(ct,ht){var lt=Number.isNaN(Number(ct))?0:Number(ct),pt=Number.isNaN(Number(ht))?0:Number(ht);return lt-pt})}},{key:"render",value:function(){var ke=this,tt=this.props,mt=tt.pageSize,ct=tt.locale,ht=tt.rootPrefixCls,lt=tt.changeSize,pt=tt.quickGo,at=tt.goButton,st=tt.selectComponentClass,ft=tt.buildOptionText,vt=tt.selectPrefixCls,St=tt.disabled,xt=this.state.goInputText,Ft="".concat(ht,"-options"),Nt=st,Xt=null,dn=null,en=null;if(!lt&&!pt)return null;var Jt=this.getPageSizeOptions();if(lt&&Nt){var wn=Jt.map(function(Ln,fn){return _e.createElement(Nt.Option,{key:fn,value:Ln.toString()},(ft||ke.buildOptionText)(Ln))});Xt=_e.createElement(Nt,{disabled:St,prefixCls:vt,showSearch:!1,className:"".concat(Ft,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(mt||Jt[0]).toString(),onChange:this.changeSize,getPopupContainer:function(fn){return fn.parentNode},"aria-label":ct.page_size,defaultOpen:!1},wn)}return pt&&(at&&(en=typeof at=="boolean"?_e.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:St,className:"".concat(Ft,"-quick-jumper-button")},ct.jump_to_confirm):_e.createElement("span",{onClick:this.go,onKeyUp:this.go},at)),dn=_e.createElement("div",{className:"".concat(Ft,"-quick-jumper")},ct.jump_to,_e.createElement("input",{disabled:St,type:"text",value:xt,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":ct.page}),ct.page,en)),_e.createElement("li",{className:"".concat(Ft)},Xt,dn)}}]),Ke}(_e.Component);me.defaultProps={pageSizeOptions:["10","20","50","100"]};var he=me,Se=function(Ie){var Ke,rt=Ie.rootPrefixCls,ke=Ie.page,tt=Ie.active,mt=Ie.className,ct=Ie.showTitle,ht=Ie.onClick,lt=Ie.onKeyPress,pt=Ie.itemRender,at="".concat(rt,"-item"),st=re()(at,"".concat(at,"-").concat(ke),(Ke={},(0,ee.Z)(Ke,"".concat(at,"-active"),tt),(0,ee.Z)(Ke,"".concat(at,"-disabled"),!ke),(0,ee.Z)(Ke,Ie.className,mt),Ke)),ft=function(){ht(ke)},vt=function(Ft){lt(Ft,ht,ke)},St=pt(ke,"page",_e.createElement("a",{rel:"nofollow"},ke));return St?_e.createElement("li",{title:ct?ke.toString():null,className:st,onClick:ft,onKeyPress:vt,tabIndex:0},St):null},ye=Se;function Pe(){}function we(xe){var Ie=Number(xe);return typeof Ie=="number"&&!Number.isNaN(Ie)&&isFinite(Ie)&&Math.floor(Ie)===Ie}var De=function(Ie,Ke,rt){return rt};function Ee(xe,Ie,Ke){var rt=typeof xe=="undefined"?Ie.pageSize:xe;return Math.floor((Ke.total-1)/rt)+1}var Ae=function(xe){(0,b.Z)(Ke,xe);var Ie=(0,z.Z)(Ke);function Ke(rt){var ke;(0,y.Z)(this,Ke),ke=Ie.call(this,rt),ke.paginationNode=_e.createRef(),ke.getJumpPrevPage=function(){return Math.max(1,ke.state.current-(ke.props.showLessItems?3:5))},ke.getJumpNextPage=function(){return Math.min(Ee(void 0,ke.state,ke.props),ke.state.current+(ke.props.showLessItems?3:5))},ke.getItemIcon=function(lt,pt){var at=ke.props.prefixCls,st=lt||_e.createElement("button",{type:"button","aria-label":pt,className:"".concat(at,"-item-link")});return typeof lt=="function"&&(st=_e.createElement(lt,(0,a.Z)({},ke.props))),st},ke.isValid=function(lt){var pt=ke.props.total;return we(lt)&<!==ke.state.current&&we(pt)&&pt>0},ke.shouldDisplayQuickJumper=function(){var lt=ke.props,pt=lt.showQuickJumper,at=lt.total,st=ke.state.pageSize;return at<=st?!1:pt},ke.handleKeyDown=function(lt){(lt.keyCode===fe.ARROW_UP||lt.keyCode===fe.ARROW_DOWN)&<.preventDefault()},ke.handleKeyUp=function(lt){var pt=ke.getValidValue(lt),at=ke.state.currentInputValue;pt!==at&&ke.setState({currentInputValue:pt}),lt.keyCode===fe.ENTER?ke.handleChange(pt):lt.keyCode===fe.ARROW_UP?ke.handleChange(pt-1):lt.keyCode===fe.ARROW_DOWN&&ke.handleChange(pt+1)},ke.handleBlur=function(lt){var pt=ke.getValidValue(lt);ke.handleChange(pt)},ke.changePageSize=function(lt){var pt=ke.state.current,at=Ee(lt,ke.state,ke.props);pt=pt>at?at:pt,at===0&&(pt=ke.state.current),typeof lt=="number"&&("pageSize"in ke.props||ke.setState({pageSize:lt}),"current"in ke.props||ke.setState({current:pt,currentInputValue:pt})),ke.props.onShowSizeChange(pt,lt),"onChange"in ke.props&&ke.props.onChange&&ke.props.onChange(pt,lt)},ke.handleChange=function(lt){var pt=ke.props,at=pt.disabled,st=pt.onChange,ft=ke.state,vt=ft.pageSize,St=ft.current,xt=ft.currentInputValue;if(ke.isValid(lt)&&!at){var Ft=Ee(void 0,ke.state,ke.props),Nt=lt;return lt>Ft?Nt=Ft:lt<1&&(Nt=1),"current"in ke.props||ke.setState({current:Nt}),Nt!==xt&&ke.setState({currentInputValue:Nt}),st(Nt,vt),Nt}return St},ke.prev=function(){ke.hasPrev()&&ke.handleChange(ke.state.current-1)},ke.next=function(){ke.hasNext()&&ke.handleChange(ke.state.current+1)},ke.jumpPrev=function(){ke.handleChange(ke.getJumpPrevPage())},ke.jumpNext=function(){ke.handleChange(ke.getJumpNextPage())},ke.hasPrev=function(){return ke.state.current>1},ke.hasNext=function(){return ke.state.current2?at-2:0),ft=2;ft=mt?ht=mt:ht=Number(tt),ht}},{key:"getShowSizeChanger",value:function(){var ke=this.props,tt=ke.showSizeChanger,mt=ke.total,ct=ke.totalBoundaryShowSizeChanger;return typeof tt!="undefined"?tt:mt>ct}},{key:"render",value:function(){var ke=this.props,tt=ke.prefixCls,mt=ke.className,ct=ke.style,ht=ke.disabled,lt=ke.hideOnSinglePage,pt=ke.total,at=ke.locale,st=ke.showQuickJumper,ft=ke.showLessItems,vt=ke.showTitle,St=ke.showTotal,xt=ke.simple,Ft=ke.itemRender,Nt=ke.showPrevNextJumpers,Xt=ke.jumpPrevIcon,dn=ke.jumpNextIcon,en=ke.selectComponentClass,Jt=ke.selectPrefixCls,wn=ke.pageSizeOptions,Ln=this.state,fn=Ln.current,zn=Ln.pageSize,Un=Ln.currentInputValue;if(lt===!0&&pt<=zn)return null;var Nn=Ee(void 0,this.state,this.props),On=[],Tn=null,Zn=null,Pr=null,Nr=null,qn=null,jr=st&&st.goButton,ir=ft?1:2,gr=fn-1>0?fn-1:0,Ot=fn+1pt?pt:fn*zn]));if(xt){jr&&(typeof jr=="boolean"?qn=_e.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},at.jump_to_confirm):qn=_e.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},jr),qn=_e.createElement("li",{title:vt?"".concat(at.jump_to).concat(fn,"/").concat(Nn):null,className:"".concat(tt,"-simple-pager")},qn));var tn=this.renderPrev(gr);return _e.createElement("ul",(0,be.Z)({className:re()(tt,"".concat(tt,"-simple"),(0,ee.Z)({},"".concat(tt,"-disabled"),ht),mt),style:ct,ref:this.paginationNode},jt),_t,tn?_e.createElement("li",{title:vt?at.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:re()("".concat(tt,"-prev"),(0,ee.Z)({},"".concat(tt,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},tn):null,_e.createElement("li",{title:vt?"".concat(fn,"/").concat(Nn):null,className:"".concat(tt,"-simple-pager")},_e.createElement("input",{type:"text",value:Un,disabled:ht,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),_e.createElement("span",{className:"".concat(tt,"-slash")},"/"),Nn),_e.createElement("li",{title:vt?at.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:re()("".concat(tt,"-next"),(0,ee.Z)({},"".concat(tt,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(Ot)),qn)}if(Nn<=3+ir*2){var Bn={locale:at,rootPrefixCls:tt,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:vt,itemRender:Ft};Nn||On.push(_e.createElement(ye,(0,be.Z)({},Bn,{key:"noPager",page:1,className:"".concat(tt,"-item-disabled")})));for(var Cn=1;Cn<=Nn;Cn+=1){var Fr=fn===Cn;On.push(_e.createElement(ye,(0,be.Z)({},Bn,{key:Cn,page:Cn,active:Fr})))}}else{var rr=ft?at.prev_3:at.prev_5,Ht=ft?at.next_3:at.next_5,Lt=Ft(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(Xt,"prev page")),rn=Ft(this.getJumpNextPage(),"jump-next",this.getItemIcon(dn,"next page"));Nt&&(Tn=Lt?_e.createElement("li",{title:vt?rr:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:re()("".concat(tt,"-jump-prev"),(0,ee.Z)({},"".concat(tt,"-jump-prev-custom-icon"),!!Xt))},Lt):null,Zn=rn?_e.createElement("li",{title:vt?Ht:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:re()("".concat(tt,"-jump-next"),(0,ee.Z)({},"".concat(tt,"-jump-next-custom-icon"),!!dn))},rn):null),Nr=_e.createElement(ye,{locale:at,last:!0,rootPrefixCls:tt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Nn,page:Nn,active:!1,showTitle:vt,itemRender:Ft}),Pr=_e.createElement(ye,{locale:at,rootPrefixCls:tt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:vt,itemRender:Ft});var Dt=Math.max(1,fn-ir),un=Math.min(fn+ir,Nn);fn-1<=ir&&(un=1+ir*2),Nn-fn<=ir&&(Dt=Nn-ir*2);for(var En=Dt;En<=un;En+=1){var In=fn===En;On.push(_e.createElement(ye,{locale:at,rootPrefixCls:tt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:En,page:En,active:In,showTitle:vt,itemRender:Ft}))}fn-1>=ir*2&&fn!==3&&(On[0]=(0,_e.cloneElement)(On[0],{className:"".concat(tt,"-item-after-jump-prev")}),On.unshift(Tn)),Nn-fn>=ir*2&&fn!==Nn-2&&(On[On.length-1]=(0,_e.cloneElement)(On[On.length-1],{className:"".concat(tt,"-item-before-jump-next")}),On.push(Zn)),Dt!==1&&On.unshift(Pr),un!==Nn&&On.push(Nr)}var Sn=!this.hasPrev()||!Nn,bt=!this.hasNext()||!Nn,Mt=this.renderPrev(gr),Bt=this.renderNext(Ot);return _e.createElement("ul",(0,be.Z)({className:re()(tt,mt,(0,ee.Z)({},"".concat(tt,"-disabled"),ht)),style:ct,ref:this.paginationNode},jt),_t,Mt?_e.createElement("li",{title:vt?at.prev_page:null,onClick:this.prev,tabIndex:Sn?null:0,onKeyPress:this.runIfEnterPrev,className:re()("".concat(tt,"-prev"),(0,ee.Z)({},"".concat(tt,"-disabled"),Sn)),"aria-disabled":Sn},Mt):null,On,Bt?_e.createElement("li",{title:vt?at.next_page:null,onClick:this.next,tabIndex:bt?null:0,onKeyPress:this.runIfEnterNext,className:re()("".concat(tt,"-next"),(0,ee.Z)({},"".concat(tt,"-disabled"),bt)),"aria-disabled":bt},Bt):null,_e.createElement(he,{disabled:ht,locale:at,rootPrefixCls:tt,selectComponentClass:en,selectPrefixCls:Jt,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:fn,pageSize:zn,pageSizeOptions:wn,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:jr}))}}],[{key:"getDerivedStateFromProps",value:function(ke,tt){var mt={};if("current"in ke&&(mt.current=ke.current,ke.current!==tt.current&&(mt.currentInputValue=mt.current)),"pageSize"in ke&&ke.pageSize!==tt.pageSize){var ct=tt.current,ht=Ee(ke.pageSize,tt,ke);ct=ct>ht?ht:ct,"current"in ke||(mt.current=ct,mt.currentInputValue=ct),mt.pageSize=ke.pageSize}return mt}}]),Ke}(_e.Component);Ae.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:Pe,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:Pe,locale:ge.Z,style:{},itemRender:De,totalBoundaryShowSizeChanger:50};var Ce=Ae,je=ve(22075),Me=ve(36355),Ge=ve(19716),Fe=ve(8628),Je=ve(9763),qe=ve(57809);const Xe=xe=>_e.createElement(qe.default,Object.assign({},xe,{showSearch:!0,size:"small"})),Ve=xe=>_e.createElement(qe.default,Object.assign({},xe,{showSearch:!0,size:"middle"}));Xe.Option=qe.default.Option,Ve.Option=qe.default.Option;var We=ve(9937),ze=ve(17313),Ue=ve(83116),ot=ve(37613);const Qe=xe=>{const{componentCls:Ie}=xe;return{[`${Ie}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${Ie}-item-link`]:{color:xe.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${Ie}-item-link`]:{color:xe.colorTextDisabled,cursor:"not-allowed"}}},[`&${Ie}-disabled`]:{cursor:"not-allowed",[`${Ie}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:xe.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:xe.colorBorder,backgroundColor:xe.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:xe.itemActiveBgDisabled},a:{color:xe.itemActiveColorDisabled}}},[`${Ie}-item-link`]:{color:xe.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${Ie}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${Ie}-simple-pager`]:{color:xe.colorTextDisabled},[`${Ie}-jump-prev, ${Ie}-jump-next`]:{[`${Ie}-item-link-icon`]:{opacity:0},[`${Ie}-item-ellipsis`]:{opacity:1}}},[`&${Ie}-simple`]:{[`${Ie}-prev, ${Ie}-next`]:{[`&${Ie}-disabled ${Ie}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},ut=xe=>{const{componentCls:Ie}=xe;return{[`&${Ie}-mini ${Ie}-total-text, &${Ie}-mini ${Ie}-simple-pager`]:{height:xe.itemSizeSM,lineHeight:`${xe.itemSizeSM}px`},[`&${Ie}-mini ${Ie}-item`]:{minWidth:xe.itemSizeSM,height:xe.itemSizeSM,margin:0,lineHeight:`${xe.itemSizeSM-2}px`},[`&${Ie}-mini:not(${Ie}-disabled) ${Ie}-item:not(${Ie}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:xe.colorBgTextHover},"&:active":{backgroundColor:xe.colorBgTextActive}},[`&${Ie}-mini ${Ie}-prev, &${Ie}-mini ${Ie}-next`]:{minWidth:xe.itemSizeSM,height:xe.itemSizeSM,margin:0,lineHeight:`${xe.itemSizeSM}px`},[`&${Ie}-mini:not(${Ie}-disabled)`]:{[`${Ie}-prev, ${Ie}-next`]:{[`&:hover ${Ie}-item-link`]:{backgroundColor:xe.colorBgTextHover},[`&:active ${Ie}-item-link`]:{backgroundColor:xe.colorBgTextActive},[`&${Ie}-disabled:hover ${Ie}-item-link`]:{backgroundColor:"transparent"}}},[` &${Ie}-mini ${Ie}-prev ${Ie}-item-link, &${Ie}-mini ${Ie}-next ${Ie}-item-link `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:xe.itemSizeSM,lineHeight:`${xe.itemSizeSM}px`}},[`&${Ie}-mini ${Ie}-jump-prev, &${Ie}-mini ${Ie}-jump-next`]:{height:xe.itemSizeSM,marginInlineEnd:0,lineHeight:`${xe.itemSizeSM}px`},[`&${Ie}-mini ${Ie}-options`]:{marginInlineStart:xe.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:xe.miniOptionsSizeChangerTop},"&-quick-jumper":{height:xe.itemSizeSM,lineHeight:`${xe.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,We.x0)(xe)),{width:xe.paginationMiniQuickJumperInputWidth,height:xe.controlHeightSM})}}}},Ye=xe=>{const{componentCls:Ie}=xe;return{[` &${Ie}-simple ${Ie}-prev, &${Ie}-simple ${Ie}-next `]:{height:xe.itemSizeSM,lineHeight:`${xe.itemSizeSM}px`,verticalAlign:"top",[`${Ie}-item-link`]:{height:xe.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:xe.colorBgTextHover},"&:active":{backgroundColor:xe.colorBgTextActive},"&::after":{height:xe.itemSizeSM,lineHeight:`${xe.itemSizeSM}px`}}},[`&${Ie}-simple ${Ie}-simple-pager`]:{display:"inline-block",height:xe.itemSizeSM,marginInlineEnd:xe.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:xe.marginXS,padding:`0 ${xe.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:xe.itemInputBg,border:`${xe.lineWidth}px ${xe.lineType} ${xe.colorBorder}`,borderRadius:xe.borderRadius,outline:"none",transition:`border-color ${xe.motionDurationMid}`,color:"inherit","&:hover":{borderColor:xe.colorPrimary},"&:focus":{borderColor:xe.colorPrimaryHover,boxShadow:`${xe.inputOutlineOffset}px 0 ${xe.controlOutlineWidth}px ${xe.controlOutline}`},"&[disabled]":{color:xe.colorTextDisabled,backgroundColor:xe.colorBgContainerDisabled,borderColor:xe.colorBorder,cursor:"not-allowed"}}}}},He=xe=>{const{componentCls:Ie}=xe;return{[`${Ie}-jump-prev, ${Ie}-jump-next`]:{outline:0,[`${Ie}-item-container`]:{position:"relative",[`${Ie}-item-link-icon`]:{color:xe.colorPrimary,fontSize:xe.fontSizeSM,opacity:0,transition:`all ${xe.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${Ie}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:xe.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:xe.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:xe.paginationEllipsisTextIndent,opacity:1,transition:`all ${xe.motionDurationMid}`}},"&:hover":{[`${Ie}-item-link-icon`]:{opacity:1},[`${Ie}-item-ellipsis`]:{opacity:0}}},[` ${Ie}-prev, ${Ie}-jump-prev, ${Ie}-jump-next `]:{marginInlineEnd:xe.marginXS},[` ${Ie}-prev, ${Ie}-next, ${Ie}-jump-prev, ${Ie}-jump-next `]:{display:"inline-block",minWidth:xe.itemSize,height:xe.itemSize,color:xe.colorText,fontFamily:xe.fontFamily,lineHeight:`${xe.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:xe.borderRadius,cursor:"pointer",transition:`all ${xe.motionDurationMid}`},[`${Ie}-prev, ${Ie}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:xe.colorText,cursor:"pointer",userSelect:"none"},[`${Ie}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:xe.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${xe.lineWidth}px ${xe.lineType} transparent`,borderRadius:xe.borderRadius,outline:"none",transition:`all ${xe.motionDurationMid}`},[`&:hover ${Ie}-item-link`]:{backgroundColor:xe.colorBgTextHover},[`&:active ${Ie}-item-link`]:{backgroundColor:xe.colorBgTextActive},[`&${Ie}-disabled:hover`]:{[`${Ie}-item-link`]:{backgroundColor:"transparent"}}},[`${Ie}-slash`]:{marginInlineEnd:xe.paginationSlashMarginInlineEnd,marginInlineStart:xe.paginationSlashMarginInlineStart},[`${Ie}-options`]:{display:"inline-block",marginInlineStart:xe.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:xe.controlHeight,marginInlineStart:xe.marginXS,lineHeight:`${xe.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,We.ik)(xe)),{width:xe.controlHeightLG*1.25,height:xe.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:xe.marginXS,marginInlineEnd:xe.marginXS})}}}},Re=xe=>{const{componentCls:Ie}=xe;return{[`${Ie}-item`]:{display:"inline-block",minWidth:xe.itemSize,height:xe.itemSize,marginInlineEnd:xe.marginXS,fontFamily:xe.fontFamily,lineHeight:`${xe.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${xe.lineWidth}px ${xe.lineType} transparent`,borderRadius:xe.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${xe.paginationItemPaddingInline}px`,color:xe.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${Ie}-item-active)`]:{"&:hover":{transition:`all ${xe.motionDurationMid}`,backgroundColor:xe.colorBgTextHover},"&:active":{backgroundColor:xe.colorBgTextActive}},"&-active":{fontWeight:xe.fontWeightStrong,backgroundColor:xe.itemActiveBg,borderColor:xe.colorPrimary,a:{color:xe.colorPrimary},"&:hover":{borderColor:xe.colorPrimaryHover},"&:hover a":{color:xe.colorPrimaryHover}}}}},$e=xe=>{const{componentCls:Ie}=xe;return{[Ie]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,ze.Wf)(xe)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${Ie}-total-text`]:{display:"inline-block",height:xe.itemSize,marginInlineEnd:xe.marginXS,lineHeight:`${xe.itemSize-2}px`,verticalAlign:"middle"}}),Re(xe)),He(xe)),Ye(xe)),ut(xe)),Qe(xe)),{[`@media only screen and (max-width: ${xe.screenLG}px)`]:{[`${Ie}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${xe.screenSM}px)`]:{[`${Ie}-options`]:{display:"none"}}}),[`&${xe.componentCls}-rtl`]:{direction:"rtl"}}},Le=xe=>{const{componentCls:Ie}=xe;return{[`${Ie}${Ie}-disabled:not(${Ie}-mini)`]:{"&, &:hover":{[`${Ie}-item-link`]:{borderColor:xe.colorBorder}},"&:focus-visible":{[`${Ie}-item-link`]:{borderColor:xe.colorBorder}},[`${Ie}-item, ${Ie}-item-link`]:{backgroundColor:xe.colorBgContainerDisabled,borderColor:xe.colorBorder,[`&:hover:not(${Ie}-item-active)`]:{backgroundColor:xe.colorBgContainerDisabled,borderColor:xe.colorBorder,a:{color:xe.colorTextDisabled}},[`&${Ie}-item-active`]:{backgroundColor:xe.itemActiveBgDisabled}},[`${Ie}-prev, ${Ie}-next`]:{"&:hover button":{backgroundColor:xe.colorBgContainerDisabled,borderColor:xe.colorBorder,color:xe.colorTextDisabled},[`${Ie}-item-link`]:{backgroundColor:xe.colorBgContainerDisabled,borderColor:xe.colorBorder}}},[`${Ie}:not(${Ie}-mini)`]:{[`${Ie}-prev, ${Ie}-next`]:{"&:hover button":{borderColor:xe.colorPrimaryHover,backgroundColor:xe.itemBg},[`${Ie}-item-link`]:{backgroundColor:xe.itemLinkBg,borderColor:xe.colorBorder},[`&:hover ${Ie}-item-link`]:{borderColor:xe.colorPrimary,backgroundColor:xe.itemBg,color:xe.colorPrimary},[`&${Ie}-disabled`]:{[`${Ie}-item-link`]:{borderColor:xe.colorBorder,color:xe.colorTextDisabled}}},[`${Ie}-item`]:{backgroundColor:xe.itemBg,border:`${xe.lineWidth}px ${xe.lineType} ${xe.colorBorder}`,[`&:hover:not(${Ie}-item-active)`]:{borderColor:xe.colorPrimary,backgroundColor:xe.itemBg,a:{color:xe.colorPrimary}},"&-active":{borderColor:xe.colorPrimary}}}}},Ne=xe=>{const{componentCls:Ie}=xe;return{[`${Ie}:not(${Ie}-disabled)`]:{[`${Ie}-item`]:Object.assign({},(0,ze.Qy)(xe)),[`${Ie}-jump-prev, ${Ie}-jump-next`]:{"&:focus-visible":Object.assign({[`${Ie}-item-link-icon`]:{opacity:1},[`${Ie}-item-ellipsis`]:{opacity:0}},(0,ze.oN)(xe))},[`${Ie}-prev, ${Ie}-next`]:{[`&:focus-visible ${Ie}-item-link`]:Object.assign({},(0,ze.oN)(xe))}}}};var et=(0,Ue.Z)("Pagination",xe=>{const Ie=(0,ot.TS)(xe,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:xe.marginXXS/2,paginationMiniQuickJumperInputWidth:xe.controlHeightLG*1.1,paginationItemPaddingInline:xe.marginXXS*1.5,paginationEllipsisLetterSpacing:xe.marginXXS/2,paginationSlashMarginInlineStart:xe.marginXXS,paginationSlashMarginInlineEnd:xe.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,We.e5)(xe),(0,We.TM)(xe));return[$e(Ie),Ne(Ie),xe.wireframe&&Le(Ie)]},xe=>({itemBg:xe.colorBgContainer,itemSize:xe.controlHeight,itemSizeSM:xe.controlHeightSM,itemActiveBg:xe.colorBgContainer,itemLinkBg:xe.colorBgContainer,itemActiveColorDisabled:xe.colorTextDisabled,itemActiveBgDisabled:xe.controlItemBgActiveDisabled,itemInputBg:xe.colorBgContainer,miniOptionsSizeChangerTop:0})),Ze=function(xe,Ie){var Ke={};for(var rt in xe)Object.prototype.hasOwnProperty.call(xe,rt)&&Ie.indexOf(rt)<0&&(Ke[rt]=xe[rt]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,rt=Object.getOwnPropertySymbols(xe);ke{const{prefixCls:Ie,selectPrefixCls:Ke,className:rt,rootClassName:ke,style:tt,size:mt,locale:ct,selectComponentClass:ht,responsive:lt,showSizeChanger:pt}=xe,at=Ze(xe,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:st}=(0,Fe.Z)(lt),{getPrefixCls:ft,direction:vt,pagination:St={}}=_e.useContext(Me.E_),xt=ft("pagination",Ie),[Ft,Nt]=et(xt),Xt=pt!=null?pt:St.showSizeChanger,dn=_e.useMemo(()=>{const Nn=_e.createElement("span",{className:`${xt}-item-ellipsis`},"\u2022\u2022\u2022"),On=_e.createElement("button",{className:`${xt}-item-link`,type:"button",tabIndex:-1},vt==="rtl"?_e.createElement(ae.Z,null):_e.createElement(ue.Z,null)),Tn=_e.createElement("button",{className:`${xt}-item-link`,type:"button",tabIndex:-1},vt==="rtl"?_e.createElement(ue.Z,null):_e.createElement(ae.Z,null)),Zn=_e.createElement("a",{className:`${xt}-item-link`},_e.createElement("div",{className:`${xt}-item-container`},vt==="rtl"?_e.createElement(ce.Z,{className:`${xt}-item-link-icon`}):_e.createElement(ie,{className:`${xt}-item-link-icon`}),Nn)),Pr=_e.createElement("a",{className:`${xt}-item-link`},_e.createElement("div",{className:`${xt}-item-container`},vt==="rtl"?_e.createElement(ie,{className:`${xt}-item-link-icon`}):_e.createElement(ce.Z,{className:`${xt}-item-link-icon`}),Nn));return{prevIcon:On,nextIcon:Tn,jumpPrevIcon:Zn,jumpNextIcon:Pr}},[vt,xt]),[en]=(0,Je.Z)("Pagination",je.Z),Jt=Object.assign(Object.assign({},en),ct),wn=(0,Ge.Z)(mt),Ln=wn==="small"||!!(st&&!wn&<),fn=ft("select",Ke),zn=re()({[`${xt}-mini`]:Ln,[`${xt}-rtl`]:vt==="rtl"},St==null?void 0:St.className,rt,ke,Nt),Un=Object.assign(Object.assign({},St==null?void 0:St.style),tt);return Ft(_e.createElement(Ce,Object.assign({},dn,at,{style:Un,prefixCls:xt,selectPrefixCls:fn,className:zn,selectComponentClass:ht||(Ln?Xe:Ve),locale:Jt,showSizeChanger:Xt})))},Te=Oe},39722:function(Et,dt,ve){"use strict";ve.d(dt,{t5:function(){return ue}});var be=ve(92310),_e=ve.n(be),E=ve(55477),pe=ve(59301),de=ve(36355),se=ve(77578),ne=ve(17356),ie=function(oe,re){var ee={};for(var a in oe)Object.prototype.hasOwnProperty.call(oe,a)&&re.indexOf(a)<0&&(ee[a]=oe[a]);if(oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var y=0,a=Object.getOwnPropertySymbols(oe);y{if(!(!re&&!ee))return pe.createElement(pe.Fragment,null,re&&pe.createElement("div",{className:`${oe}-title`},(0,se.Z)(re)),pe.createElement("div",{className:`${oe}-inner-content`},(0,se.Z)(ee)))},ue=oe=>{const{hashId:re,prefixCls:ee,className:a,style:y,placement:x="top",title:b,content:z,children:te}=oe;return pe.createElement("div",{className:_e()(re,ee,`${ee}-pure`,`${ee}-placement-${x}`,a),style:y},pe.createElement("div",{className:`${ee}-arrow`}),pe.createElement(E.G,Object.assign({},oe,{className:re,prefixCls:ee}),te||ce(ee,b,z)))},ae=oe=>{const{prefixCls:re}=oe,ee=ie(oe,["prefixCls"]),{getPrefixCls:a}=pe.useContext(de.E_),y=a("popover",re),[x,b]=(0,ne.Z)(y);return x(pe.createElement(ue,Object.assign({},ee,{prefixCls:y,hashId:b})))};dt.ZP=ae},17356:function(Et,dt,ve){"use strict";var be=ve(17313),_e=ve(29878),E=ve(19447),pe=ve(33166),de=ve(83116),se=ve(37613);const ne=ue=>{const{componentCls:ae,popoverColor:oe,minWidth:re,fontWeightStrong:ee,popoverPadding:a,boxShadowSecondary:y,colorTextHeading:x,borderRadiusLG:b,zIndexPopup:z,marginXS:te,colorBgElevated:le,popoverBg:fe}=ue;return[{[ae]:Object.assign(Object.assign({},(0,be.Wf)(ue)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:z,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":le,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${ae}-content`]:{position:"relative"},[`${ae}-inner`]:{backgroundColor:fe,backgroundClip:"padding-box",borderRadius:b,boxShadow:y,padding:a},[`${ae}-title`]:{minWidth:re,marginBottom:te,color:x,fontWeight:ee},[`${ae}-inner-content`]:{color:oe}})},(0,E.ZP)(ue,{colorBg:"var(--antd-arrow-background-color)"}),{[`${ae}-pure`]:{position:"relative",maxWidth:"none",margin:ue.sizePopupArrow,display:"inline-block",[`${ae}-content`]:{display:"inline-block"}}}]},ie=ue=>{const{componentCls:ae}=ue;return{[ae]:pe.i.map(oe=>{const re=ue[`${oe}6`];return{[`&${ae}-${oe}`]:{"--antd-arrow-background-color":re,[`${ae}-inner`]:{backgroundColor:re},[`${ae}-arrow`]:{background:"transparent"}}}})}},ce=ue=>{const{componentCls:ae,lineWidth:oe,lineType:re,colorSplit:ee,paddingSM:a,controlHeight:y,fontSize:x,lineHeight:b,padding:z}=ue,te=y-Math.round(x*b),le=te/2,fe=te/2-oe,ge=z;return{[ae]:{[`${ae}-inner`]:{padding:0},[`${ae}-title`]:{margin:0,padding:`${le}px ${ge}px ${fe}px`,borderBottom:`${oe}px ${re} ${ee}`},[`${ae}-inner-content`]:{padding:`${a}px ${ge}px`}}}};dt.Z=(0,de.Z)("Popover",ue=>{const{colorBgElevated:ae,colorText:oe,wireframe:re}=ue,ee=(0,se.TS)(ue,{popoverPadding:12,popoverBg:ae,popoverColor:oe});return[ne(ee),ie(ee),re&&ce(ee),(0,_e._y)(ee,"zoom-big")]},ue=>({width:177,minWidth:177,zIndexPopup:ue.zIndexPopupBase+30}),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]})},93948:function(Et,dt,ve){"use strict";ve.d(dt,{Z:function(){return pt}});var be=ve(59301),_e=ve(29679),E=ve(40001),pe=ve(19248),de=ve(99267),se=ve(92310),ne=ve.n(se),ie=ve(2738),ce=ve(36355),ue=ve(54476),ae=ve(33885),oe=ve(75931),re={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ee=function(){var st=(0,be.useRef)([]),ft=(0,be.useRef)(null);return(0,be.useEffect)(function(){var vt=Date.now(),St=!1;st.current.forEach(function(xt){if(xt){St=!0;var Ft=xt.style;Ft.transitionDuration=".3s, .3s, .3s, .06s",ft.current&&vt-ft.current<100&&(Ft.transitionDuration="0s, 0s")}}),St&&(ft.current=Date.now())}),st.current},a=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],y=function(st){var ft=(0,ae.Z)((0,ae.Z)({},re),st),vt=ft.className,St=ft.percent,xt=ft.prefixCls,Ft=ft.strokeColor,Nt=ft.strokeLinecap,Xt=ft.strokeWidth,dn=ft.style,en=ft.trailColor,Jt=ft.trailWidth,wn=ft.transition,Ln=(0,oe.Z)(ft,a);delete Ln.gapPosition;var fn=Array.isArray(St)?St:[St],zn=Array.isArray(Ft)?Ft:[Ft],Un=ee(),Nn=Xt/2,On=100-Xt/2,Tn="M ".concat(Nt==="round"?Nn:0,",").concat(Nn,` L `).concat(Nt==="round"?On:100,",").concat(Nn),Zn="0 0 100 ".concat(Xt),Pr=0;return be.createElement("svg",(0,ue.Z)({className:ne()("".concat(xt,"-line"),vt),viewBox:Zn,preserveAspectRatio:"none",style:dn},Ln),be.createElement("path",{className:"".concat(xt,"-line-trail"),d:Tn,strokeLinecap:Nt,stroke:en,strokeWidth:Jt||Xt,fillOpacity:"0"}),fn.map(function(Nr,qn){var jr=1;switch(Nt){case"round":jr=1-Xt/100;break;case"square":jr=1-Xt/2/100;break;default:jr=1;break}var ir={strokeDasharray:"".concat(Nr*jr,"px, 100px"),strokeDashoffset:"-".concat(Pr,"px"),transition:wn||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},gr=zn[qn]||zn[zn.length-1];return Pr+=Nr,be.createElement("path",{key:qn,className:"".concat(xt,"-line-path"),d:Tn,strokeLinecap:Nt,stroke:gr,strokeWidth:Xt,fillOpacity:"0",ref:function(jt){Un[qn]=jt},style:ir})}))},x=y,b=ve(76190),z=ve(42978),te=ve(47273),le=0,fe=(0,te.Z)();function ge(){var at;return fe?(at=le,le+=1):at="TEST_OR_SSR",at}var me=function(at){var st=be.useState(),ft=(0,z.Z)(st,2),vt=ft[0],St=ft[1];return be.useEffect(function(){St("rc_progress_".concat(ge()))},[]),at||vt},he=function(st){var ft=st.bg,vt=st.children;return be.createElement("div",{style:{width:"100%",height:"100%",background:ft}},vt)};function Se(at,st){return Object.keys(at).map(function(ft){var vt=parseFloat(ft),St="".concat(Math.floor(vt*st),"%");return"".concat(at[ft]," ").concat(St)})}var ye=be.forwardRef(function(at,st){var ft=at.prefixCls,vt=at.color,St=at.gradientId,xt=at.radius,Ft=at.style,Nt=at.ptg,Xt=at.strokeLinecap,dn=at.strokeWidth,en=at.size,Jt=at.gapDegree,wn=vt&&(0,b.Z)(vt)==="object",Ln=wn?"#FFF":void 0,fn=en/2,zn=be.createElement("circle",{className:"".concat(ft,"-circle-path"),r:xt,cx:fn,cy:fn,stroke:Ln,strokeLinecap:Xt,strokeWidth:dn,opacity:Nt===0?0:1,style:Ft,ref:st});if(!wn)return zn;var Un="".concat(St,"-conic"),Nn=Jt?"".concat(180+Jt/2,"deg"):"0deg",On=Se(vt,(360-Jt)/360),Tn=Se(vt,1),Zn="conic-gradient(from ".concat(Nn,", ").concat(On.join(", "),")"),Pr="linear-gradient(to ".concat(Jt?"bottom":"top",", ").concat(Tn.join(", "),")");return be.createElement(be.Fragment,null,be.createElement("mask",{id:Un},zn),be.createElement("foreignObject",{x:0,y:0,width:en,height:en,mask:"url(#".concat(Un,")")},be.createElement(he,{bg:Pr},be.createElement(he,{bg:Zn}))))}),Pe=ye,we=100,De=function(st,ft,vt,St,xt,Ft,Nt,Xt,dn,en){var Jt=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,wn=vt/100*360*((360-Ft)/360),Ln=Ft===0?0:{bottom:0,top:180,left:90,right:-90}[Nt],fn=(100-St)/100*ft;dn==="round"&&St!==100&&(fn+=en/2,fn>=ft&&(fn=ft-.01));var zn=we/2;return{stroke:typeof Xt=="string"?Xt:void 0,strokeDasharray:"".concat(ft,"px ").concat(st),strokeDashoffset:fn+Jt,transform:"rotate(".concat(xt+wn+Ln,"deg)"),transformOrigin:"".concat(zn,"px ").concat(zn,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},Ee=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Ae(at){var st=at!=null?at:[];return Array.isArray(st)?st:[st]}var Ce=function(st){var ft=(0,ae.Z)((0,ae.Z)({},re),st),vt=ft.id,St=ft.prefixCls,xt=ft.steps,Ft=ft.strokeWidth,Nt=ft.trailWidth,Xt=ft.gapDegree,dn=Xt===void 0?0:Xt,en=ft.gapPosition,Jt=ft.trailColor,wn=ft.strokeLinecap,Ln=ft.style,fn=ft.className,zn=ft.strokeColor,Un=ft.percent,Nn=(0,oe.Z)(ft,Ee),On=we/2,Tn=me(vt),Zn="".concat(Tn,"-gradient"),Pr=On-Ft/2,Nr=Math.PI*2*Pr,qn=dn>0?90+dn/2:-90,jr=Nr*((360-dn)/360),ir=(0,b.Z)(xt)==="object"?xt:{count:xt,space:2},gr=ir.count,Ot=ir.space,jt=Ae(Un),_t=Ae(zn),tn=_t.find(function(rn){return rn&&(0,b.Z)(rn)==="object"}),Bn=tn&&(0,b.Z)(tn)==="object",Cn=Bn?"butt":wn,Fr=De(Nr,jr,0,100,qn,dn,en,Jt,Cn,Ft),rr=ee(),Ht=function(){var Dt=0;return jt.map(function(un,En){var In=_t[En]||_t[_t.length-1],Sn=De(Nr,jr,Dt,un,qn,dn,en,In,Cn,Ft);return Dt+=un,be.createElement(Pe,{key:En,color:In,ptg:un,radius:Pr,prefixCls:St,gradientId:Zn,style:Sn,strokeLinecap:Cn,strokeWidth:Ft,gapDegree:dn,ref:function(Mt){rr[En]=Mt},size:we})}).reverse()},Lt=function(){var Dt=Math.round(gr*(jt[0]/100)),un=100/gr,En=0;return new Array(gr).fill(null).map(function(In,Sn){var bt=Sn<=Dt-1?_t[0]:Jt,Mt=bt&&(0,b.Z)(bt)==="object"?"url(#".concat(Zn,")"):void 0,Bt=De(Nr,jr,En,un,qn,dn,en,bt,"butt",Ft,Ot);return En+=(jr-Bt.strokeDashoffset+Ot)*100/jr,be.createElement("circle",{key:Sn,className:"".concat(St,"-circle-path"),r:Pr,cx:On,cy:On,stroke:Mt,strokeWidth:Ft,opacity:1,style:Bt,ref:function(Vt){rr[Sn]=Vt}})})};return be.createElement("svg",(0,ue.Z)({className:ne()("".concat(St,"-circle"),fn),viewBox:"0 0 ".concat(we," ").concat(we),style:Ln,id:vt,role:"presentation"},Nn),!gr&&be.createElement("circle",{className:"".concat(St,"-circle-trail"),r:Pr,cx:On,cy:On,stroke:Jt,strokeLinecap:Cn,strokeWidth:Nt||Ft,style:Fr}),gr?Lt():Ht())},je=Ce,Me={Line:x,Circle:je},Ge=ve(6848),Fe=ve(30071);function Je(at){return!at||at<0?0:at>100?100:at}function qe(at){let{success:st,successPercent:ft}=at,vt=ft;return st&&"progress"in st&&(vt=st.progress),st&&"percent"in st&&(vt=st.percent),vt}const Xe=at=>{let{percent:st,success:ft,successPercent:vt}=at;const St=Je(qe({success:ft,successPercent:vt}));return[St,Je(Je(st)-St)]},Ve=at=>{let{success:st={},strokeColor:ft}=at;const{strokeColor:vt}=st;return[vt||Fe.presetPrimaryColors.green,ft||null]},We=(at,st,ft)=>{var vt,St,xt,Ft;let Nt=-1,Xt=-1;if(st==="step"){const dn=ft.steps,en=ft.strokeWidth;typeof at=="string"||typeof at=="undefined"?(Nt=at==="small"?2:14,Xt=en!=null?en:8):typeof at=="number"?[Nt,Xt]=[at,at]:[Nt=14,Xt=8]=at,Nt*=dn}else if(st==="line"){const dn=ft==null?void 0:ft.strokeWidth;typeof at=="string"||typeof at=="undefined"?Xt=dn||(at==="small"?6:8):typeof at=="number"?[Nt,Xt]=[at,at]:[Nt=-1,Xt=8]=at}else(st==="circle"||st==="dashboard")&&(typeof at=="string"||typeof at=="undefined"?[Nt,Xt]=at==="small"?[60,60]:[120,120]:typeof at=="number"?[Nt,Xt]=[at,at]:(Nt=(St=(vt=at[0])!==null&&vt!==void 0?vt:at[1])!==null&&St!==void 0?St:120,Xt=(Ft=(xt=at[0])!==null&&xt!==void 0?xt:at[1])!==null&&Ft!==void 0?Ft:120));return[Nt,Xt]},ze=3,Ue=at=>ze/at*100;var Qe=at=>{const{prefixCls:st,trailColor:ft=null,strokeLinecap:vt="round",gapPosition:St,gapDegree:xt,width:Ft=120,type:Nt,children:Xt,success:dn,size:en=Ft}=at,[Jt,wn]=We(en,"circle");let{strokeWidth:Ln}=at;Ln===void 0&&(Ln=Math.max(Ue(Jt),6));const fn={width:Jt,height:wn,fontSize:Jt*.15+6},zn=be.useMemo(()=>{if(xt||xt===0)return xt;if(Nt==="dashboard")return 75},[xt,Nt]),Un=St||Nt==="dashboard"&&"bottom"||void 0,Nn=Object.prototype.toString.call(at.strokeColor)==="[object Object]",On=Ve({success:dn,strokeColor:at.strokeColor}),Tn=ne()(`${st}-inner`,{[`${st}-circle-gradient`]:Nn}),Zn=be.createElement(je,{percent:Xe(at),strokeWidth:Ln,trailWidth:Ln,strokeColor:On,strokeLinecap:vt,trailColor:ft,prefixCls:st,gapDegree:zn,gapPosition:Un});return be.createElement("div",{className:Tn,style:fn},Jt<=20?be.createElement(Ge.Z,{title:Xt},be.createElement("span",null,Zn)):be.createElement(be.Fragment,null,Zn,Xt))},ut=function(at,st){var ft={};for(var vt in at)Object.prototype.hasOwnProperty.call(at,vt)&&st.indexOf(vt)<0&&(ft[vt]=at[vt]);if(at!=null&&typeof Object.getOwnPropertySymbols=="function")for(var St=0,vt=Object.getOwnPropertySymbols(at);St{let st=[];return Object.keys(at).forEach(ft=>{const vt=parseFloat(ft.replace(/%/g,""));isNaN(vt)||st.push({key:vt,value:at[ft]})}),st=st.sort((ft,vt)=>ft.key-vt.key),st.map(ft=>{let{key:vt,value:St}=ft;return`${St} ${vt}%`}).join(", ")},He=(at,st)=>{const{from:ft=Fe.presetPrimaryColors.blue,to:vt=Fe.presetPrimaryColors.blue,direction:St=st==="rtl"?"to left":"to right"}=at,xt=ut(at,["from","to","direction"]);if(Object.keys(xt).length!==0){const Ft=Ye(xt);return{backgroundImage:`linear-gradient(${St}, ${Ft})`}}return{backgroundImage:`linear-gradient(${St}, ${ft}, ${vt})`}};var $e=at=>{const{prefixCls:st,direction:ft,percent:vt,size:St,strokeWidth:xt,strokeColor:Ft,strokeLinecap:Nt="round",children:Xt,trailColor:dn=null,success:en}=at,Jt=Ft&&typeof Ft!="string"?He(Ft,ft):{backgroundColor:Ft},wn=Nt==="square"||Nt==="butt"?0:void 0,Ln={backgroundColor:dn||void 0,borderRadius:wn},fn=St!=null?St:[-1,xt||(St==="small"?6:8)],[zn,Un]=We(fn,"line",{strokeWidth:xt}),Nn=Object.assign({width:`${Je(vt)}%`,height:Un,borderRadius:wn},Jt),On=qe(at),Tn={width:`${Je(On)}%`,height:Un,borderRadius:wn,backgroundColor:en==null?void 0:en.strokeColor},Zn={width:zn<0?"100%":zn,height:Un};return be.createElement(be.Fragment,null,be.createElement("div",{className:`${st}-outer`,style:Zn},be.createElement("div",{className:`${st}-inner`,style:Ln},be.createElement("div",{className:`${st}-bg`,style:Nn}),On!==void 0?be.createElement("div",{className:`${st}-success-bg`,style:Tn}):null)),Xt)},Ne=at=>{const{size:st,steps:ft,percent:vt=0,strokeWidth:St=8,strokeColor:xt,trailColor:Ft=null,prefixCls:Nt,children:Xt}=at,dn=Math.round(ft*(vt/100)),en=st==="small"?2:14,Jt=st!=null?st:[en,St],[wn,Ln]=We(Jt,"step",{steps:ft,strokeWidth:St}),fn=wn/ft,zn=new Array(ft);for(let Un=0;Un{const st=at?"100%":"-100%";return new et.Keyframes(`antProgress${at?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${st}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${st}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},xe=at=>{const{componentCls:st,iconCls:ft}=at;return{[st]:Object.assign(Object.assign({},(0,Ze.Wf)(at)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:at.fontSize,marginInlineEnd:at.marginXS,marginBottom:at.marginXS},[`${st}-outer`]:{display:"inline-block",width:"100%"},[`&${st}-show-info`]:{[`${st}-outer`]:{marginInlineEnd:`calc(-2em - ${at.marginXS}px)`,paddingInlineEnd:`calc(2em + ${at.paddingXS}px)`}},[`${st}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:at.remainingColor,borderRadius:at.lineBorderRadius},[`${st}-inner:not(${st}-circle-gradient)`]:{[`${st}-circle-path`]:{stroke:at.defaultColor}},[`${st}-success-bg, ${st}-bg`]:{position:"relative",backgroundColor:at.defaultColor,borderRadius:at.lineBorderRadius,transition:`all ${at.motionDurationSlow} ${at.motionEaseInOutCirc}`},[`${st}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:at.colorSuccess},[`${st}-text`]:{display:"inline-block",width:"2em",marginInlineStart:at.marginXS,color:at.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[ft]:{fontSize:at.fontSize}},[`&${st}-status-active`]:{[`${st}-bg::before`]:{position:"absolute",inset:0,backgroundColor:at.colorBgContainer,borderRadius:at.lineBorderRadius,opacity:0,animationName:Te(),animationDuration:at.progressActiveMotionDuration,animationTimingFunction:at.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${st}-rtl${st}-status-active`]:{[`${st}-bg::before`]:{animationName:Te(!0)}},[`&${st}-status-exception`]:{[`${st}-bg`]:{backgroundColor:at.colorError},[`${st}-text`]:{color:at.colorError}},[`&${st}-status-exception ${st}-inner:not(${st}-circle-gradient)`]:{[`${st}-circle-path`]:{stroke:at.colorError}},[`&${st}-status-success`]:{[`${st}-bg`]:{backgroundColor:at.colorSuccess},[`${st}-text`]:{color:at.colorSuccess}},[`&${st}-status-success ${st}-inner:not(${st}-circle-gradient)`]:{[`${st}-circle-path`]:{stroke:at.colorSuccess}}})}},Ie=at=>{const{componentCls:st,iconCls:ft}=at;return{[st]:{[`${st}-circle-trail`]:{stroke:at.remainingColor},[`&${st}-circle ${st}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${st}-circle ${st}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:at.circleTextColor,fontSize:at.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[ft]:{fontSize:`${at.fontSize/at.fontSizeSM}em`}},[`${st}-circle&-status-exception`]:{[`${st}-text`]:{color:at.colorError}},[`${st}-circle&-status-success`]:{[`${st}-text`]:{color:at.colorSuccess}}},[`${st}-inline-circle`]:{lineHeight:1,[`${st}-inner`]:{verticalAlign:"bottom"}}}},Ke=at=>{const{componentCls:st}=at;return{[st]:{[`${st}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:at.progressStepMinWidth,marginInlineEnd:at.progressStepMarginInlineEnd,backgroundColor:at.remainingColor,transition:`all ${at.motionDurationSlow}`,"&-active":{backgroundColor:at.defaultColor}}}}}},rt=at=>{const{componentCls:st,iconCls:ft}=at;return{[st]:{[`${st}-small&-line, ${st}-small&-line ${st}-text ${ft}`]:{fontSize:at.fontSizeSM}}}};var ke=(0,Be.Z)("Progress",at=>{const st=at.marginXXS/2,ft=(0,Oe.TS)(at,{progressStepMarginInlineEnd:st,progressStepMinWidth:st,progressActiveMotionDuration:"2.4s"});return[xe(ft),Ie(ft),Ke(ft),rt(ft)]},at=>({circleTextColor:at.colorText,defaultColor:at.colorInfo,remainingColor:at.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),tt=function(at,st){var ft={};for(var vt in at)Object.prototype.hasOwnProperty.call(at,vt)&&st.indexOf(vt)<0&&(ft[vt]=at[vt]);if(at!=null&&typeof Object.getOwnPropertySymbols=="function")for(var St=0,vt=Object.getOwnPropertySymbols(at);St{const{prefixCls:ft,className:vt,rootClassName:St,steps:xt,strokeColor:Ft,percent:Nt=0,size:Xt="default",showInfo:dn=!0,type:en="line",status:Jt,format:wn,style:Ln}=at,fn=tt(at,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),zn=be.useMemo(()=>{var jt,_t;const tn=qe(at);return parseInt(tn!==void 0?(jt=tn!=null?tn:0)===null||jt===void 0?void 0:jt.toString():(_t=Nt!=null?Nt:0)===null||_t===void 0?void 0:_t.toString(),10)},[Nt,at.success,at.successPercent]),Un=be.useMemo(()=>!ct.includes(Jt)&&zn>=100?"success":Jt||"normal",[Jt,zn]),{getPrefixCls:Nn,direction:On,progress:Tn}=be.useContext(ce.E_),Zn=Nn("progress",ft),[Pr,Nr]=ke(Zn),qn=be.useMemo(()=>{if(!dn)return null;const jt=qe(at);let _t;const tn=wn||(Cn=>`${Cn}%`),Bn=en==="line";return wn||Un!=="exception"&&Un!=="success"?_t=tn(Je(Nt),Je(jt)):Un==="exception"?_t=Bn?be.createElement(pe.Z,null):be.createElement(de.Z,null):Un==="success"&&(_t=Bn?be.createElement(_e.Z,null):be.createElement(E.Z,null)),be.createElement("span",{className:`${Zn}-text`,title:typeof _t=="string"?_t:void 0},_t)},[dn,Nt,zn,Un,en,Zn,wn]),jr=Array.isArray(Ft)?Ft[0]:Ft,ir=typeof Ft=="string"||Array.isArray(Ft)?Ft:void 0;let gr;en==="line"?gr=xt?be.createElement(Ne,Object.assign({},at,{strokeColor:ir,prefixCls:Zn,steps:xt}),qn):be.createElement($e,Object.assign({},at,{strokeColor:jr,prefixCls:Zn,direction:On}),qn):(en==="circle"||en==="dashboard")&&(gr=be.createElement(Qe,Object.assign({},at,{strokeColor:jr,prefixCls:Zn,progressStatus:Un}),qn));const Ot=ne()(Zn,`${Zn}-status-${Un}`,`${Zn}-${en==="dashboard"&&"circle"||xt&&"steps"||en}`,{[`${Zn}-inline-circle`]:en==="circle"&&We(Xt,"circle")[0]<=20,[`${Zn}-show-info`]:dn,[`${Zn}-${Xt}`]:typeof Xt=="string",[`${Zn}-rtl`]:On==="rtl"},Tn==null?void 0:Tn.className,vt,St,Nr);return Pr(be.createElement("div",Object.assign({ref:st,style:Object.assign(Object.assign({},Tn==null?void 0:Tn.style),Ln),className:Ot,role:"progressbar","aria-valuenow":zn},(0,ie.Z)(fn,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),gr))}),pt=lt},61621:function(Et,dt,ve){"use strict";ve.d(dt,{Z:function(){return et}});var be=ve(92310),_e=ve.n(be),E=ve(59301),pe=ve(36355),de=ve(2738),ne=Ze=>{const{prefixCls:Be,className:Oe,style:Te,size:xe,shape:Ie}=Ze,Ke=_e()({[`${Be}-lg`]:xe==="large",[`${Be}-sm`]:xe==="small"}),rt=_e()({[`${Be}-circle`]:Ie==="circle",[`${Be}-square`]:Ie==="square",[`${Be}-round`]:Ie==="round"}),ke=E.useMemo(()=>typeof xe=="number"?{width:xe,height:xe,lineHeight:`${xe}px`}:{},[xe]);return E.createElement("span",{className:_e()(Be,Ke,rt,Oe),style:Object.assign(Object.assign({},ke),Te)})},ie=ve(36237),ce=ve(83116),ue=ve(37613);const ae=new ie.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),oe=Ze=>({height:Ze,lineHeight:`${Ze}px`}),re=Ze=>Object.assign({width:Ze},oe(Ze)),ee=Ze=>({background:Ze.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:ae,animationDuration:Ze.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),a=Ze=>Object.assign({width:Ze*5,minWidth:Ze*5},oe(Ze)),y=Ze=>{const{skeletonAvatarCls:Be,gradientFromColor:Oe,controlHeight:Te,controlHeightLG:xe,controlHeightSM:Ie}=Ze;return{[`${Be}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Oe},re(Te)),[`${Be}${Be}-circle`]:{borderRadius:"50%"},[`${Be}${Be}-lg`]:Object.assign({},re(xe)),[`${Be}${Be}-sm`]:Object.assign({},re(Ie))}},x=Ze=>{const{controlHeight:Be,borderRadiusSM:Oe,skeletonInputCls:Te,controlHeightLG:xe,controlHeightSM:Ie,gradientFromColor:Ke}=Ze;return{[`${Te}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Ke,borderRadius:Oe},a(Be)),[`${Te}-lg`]:Object.assign({},a(xe)),[`${Te}-sm`]:Object.assign({},a(Ie))}},b=Ze=>Object.assign({width:Ze},oe(Ze)),z=Ze=>{const{skeletonImageCls:Be,imageSizeBase:Oe,gradientFromColor:Te,borderRadiusSM:xe}=Ze;return{[`${Be}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:Te,borderRadius:xe},b(Oe*2)),{[`${Be}-path`]:{fill:"#bfbfbf"},[`${Be}-svg`]:Object.assign(Object.assign({},b(Oe)),{maxWidth:Oe*4,maxHeight:Oe*4}),[`${Be}-svg${Be}-svg-circle`]:{borderRadius:"50%"}}),[`${Be}${Be}-circle`]:{borderRadius:"50%"}}},te=(Ze,Be,Oe)=>{const{skeletonButtonCls:Te}=Ze;return{[`${Oe}${Te}-circle`]:{width:Be,minWidth:Be,borderRadius:"50%"},[`${Oe}${Te}-round`]:{borderRadius:Be}}},le=Ze=>Object.assign({width:Ze*2,minWidth:Ze*2},oe(Ze)),fe=Ze=>{const{borderRadiusSM:Be,skeletonButtonCls:Oe,controlHeight:Te,controlHeightLG:xe,controlHeightSM:Ie,gradientFromColor:Ke}=Ze;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${Oe}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Ke,borderRadius:Be,width:Te*2,minWidth:Te*2},le(Te))},te(Ze,Te,Oe)),{[`${Oe}-lg`]:Object.assign({},le(xe))}),te(Ze,xe,`${Oe}-lg`)),{[`${Oe}-sm`]:Object.assign({},le(Ie))}),te(Ze,Ie,`${Oe}-sm`))},ge=Ze=>{const{componentCls:Be,skeletonAvatarCls:Oe,skeletonTitleCls:Te,skeletonParagraphCls:xe,skeletonButtonCls:Ie,skeletonInputCls:Ke,skeletonImageCls:rt,controlHeight:ke,controlHeightLG:tt,controlHeightSM:mt,gradientFromColor:ct,padding:ht,marginSM:lt,borderRadius:pt,titleHeight:at,blockRadius:st,paragraphLiHeight:ft,controlHeightXS:vt,paragraphMarginTop:St}=Ze;return{[`${Be}`]:{display:"table",width:"100%",[`${Be}-header`]:{display:"table-cell",paddingInlineEnd:ht,verticalAlign:"top",[`${Oe}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:ct},re(ke)),[`${Oe}-circle`]:{borderRadius:"50%"},[`${Oe}-lg`]:Object.assign({},re(tt)),[`${Oe}-sm`]:Object.assign({},re(mt))},[`${Be}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${Te}`]:{width:"100%",height:at,background:ct,borderRadius:st,[`+ ${xe}`]:{marginBlockStart:mt}},[`${xe}`]:{padding:0,"> li":{width:"100%",height:ft,listStyle:"none",background:ct,borderRadius:st,"+ li":{marginBlockStart:vt}}},[`${xe}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${Be}-content`]:{[`${Te}, ${xe} > li`]:{borderRadius:pt}}},[`${Be}-with-avatar ${Be}-content`]:{[`${Te}`]:{marginBlockStart:lt,[`+ ${xe}`]:{marginBlockStart:St}}},[`${Be}${Be}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},fe(Ze)),y(Ze)),x(Ze)),z(Ze)),[`${Be}${Be}-block`]:{width:"100%",[`${Ie}`]:{width:"100%"},[`${Ke}`]:{width:"100%"}},[`${Be}${Be}-active`]:{[` ${Te}, ${xe} > li, ${Oe}, ${Ie}, ${Ke}, ${rt} `]:Object.assign({},ee(Ze))}}};var me=(0,ce.Z)("Skeleton",Ze=>{const{componentCls:Be}=Ze,Oe=(0,ue.TS)(Ze,{skeletonAvatarCls:`${Be}-avatar`,skeletonTitleCls:`${Be}-title`,skeletonParagraphCls:`${Be}-paragraph`,skeletonButtonCls:`${Be}-button`,skeletonInputCls:`${Be}-input`,skeletonImageCls:`${Be}-image`,imageSizeBase:Ze.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${Ze.gradientFromColor} 25%, ${Ze.gradientToColor} 37%, ${Ze.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[ge(Oe)]},Ze=>{const{colorFillContent:Be,colorFill:Oe}=Ze,Te=Be,xe=Oe;return{color:Te,colorGradientEnd:xe,gradientFromColor:Te,gradientToColor:xe,titleHeight:Ze.controlHeight/2,blockRadius:Ze.borderRadiusSM,paragraphMarginTop:Ze.marginLG+Ze.marginXXS,paragraphLiHeight:Ze.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),Se=Ze=>{const{prefixCls:Be,className:Oe,rootClassName:Te,active:xe,shape:Ie="circle",size:Ke="default"}=Ze,{getPrefixCls:rt}=E.useContext(pe.E_),ke=rt("skeleton",Be),[tt,mt]=me(ke),ct=(0,de.Z)(Ze,["prefixCls","className"]),ht=_e()(ke,`${ke}-element`,{[`${ke}-active`]:xe},Oe,Te,mt);return tt(E.createElement("div",{className:ht},E.createElement(ne,Object.assign({prefixCls:`${ke}-avatar`,shape:Ie,size:Ke},ct))))},Pe=Ze=>{const{prefixCls:Be,className:Oe,rootClassName:Te,active:xe,block:Ie=!1,size:Ke="default"}=Ze,{getPrefixCls:rt}=E.useContext(pe.E_),ke=rt("skeleton",Be),[tt,mt]=me(ke),ct=(0,de.Z)(Ze,["prefixCls"]),ht=_e()(ke,`${ke}-element`,{[`${ke}-active`]:xe,[`${ke}-block`]:Ie},Oe,Te,mt);return tt(E.createElement("div",{className:ht},E.createElement(ne,Object.assign({prefixCls:`${ke}-button`,size:Ke},ct))))};const we="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 Ee=Ze=>{const{prefixCls:Be,className:Oe,rootClassName:Te,style:xe,active:Ie}=Ze,{getPrefixCls:Ke}=E.useContext(pe.E_),rt=Ke("skeleton",Be),[ke,tt]=me(rt),mt=_e()(rt,`${rt}-element`,{[`${rt}-active`]:Ie},Oe,Te,tt);return ke(E.createElement("div",{className:mt},E.createElement("div",{className:_e()(`${rt}-image`,Oe),style:xe},E.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${rt}-image-svg`},E.createElement("path",{d:we,className:`${rt}-image-path`})))))},Ce=Ze=>{const{prefixCls:Be,className:Oe,rootClassName:Te,active:xe,block:Ie,size:Ke="default"}=Ze,{getPrefixCls:rt}=E.useContext(pe.E_),ke=rt("skeleton",Be),[tt,mt]=me(ke),ct=(0,de.Z)(Ze,["prefixCls"]),ht=_e()(ke,`${ke}-element`,{[`${ke}-active`]:xe,[`${ke}-block`]:Ie},Oe,Te,mt);return tt(E.createElement("div",{className:ht},E.createElement(ne,Object.assign({prefixCls:`${ke}-input`,size:Ke},ct))))},je=ve(54476),Me={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"},Ge=Me,Fe=ve(7657),Je=function(Be,Oe){return E.createElement(Fe.Z,(0,je.Z)({},Be,{ref:Oe,icon:Ge}))},qe=E.forwardRef(Je),Xe=qe,We=Ze=>{const{prefixCls:Be,className:Oe,rootClassName:Te,style:xe,active:Ie,children:Ke}=Ze,{getPrefixCls:rt}=E.useContext(pe.E_),ke=rt("skeleton",Be),[tt,mt]=me(ke),ct=_e()(ke,`${ke}-element`,{[`${ke}-active`]:Ie},mt,Oe,Te),ht=Ke!=null?Ke:E.createElement(Xe,null);return tt(E.createElement("div",{className:ct},E.createElement("div",{className:_e()(`${ke}-image`,Oe),style:xe},ht)))},ze=ve(94480),ot=Ze=>{const Be=rt=>{const{width:ke,rows:tt=2}=Ze;if(Array.isArray(ke))return ke[rt];if(tt-1===rt)return ke},{prefixCls:Oe,className:Te,style:xe,rows:Ie}=Ze,Ke=(0,ze.Z)(Array(Ie)).map((rt,ke)=>E.createElement("li",{key:ke,style:{width:Be(ke)}}));return E.createElement("ul",{className:_e()(Oe,Te),style:xe},Ke)},ut=Ze=>{let{prefixCls:Be,className:Oe,width:Te,style:xe}=Ze;return E.createElement("h3",{className:_e()(Be,Oe),style:Object.assign({width:Te},xe)})};function Ye(Ze){return Ze&&typeof Ze=="object"?Ze:{}}function He(Ze,Be){return Ze&&!Be?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Re(Ze,Be){return!Ze&&Be?{width:"38%"}:Ze&&Be?{width:"50%"}:{}}function $e(Ze,Be){const Oe={};return(!Ze||!Be)&&(Oe.width="61%"),!Ze&&Be?Oe.rows=3:Oe.rows=2,Oe}const Le=Ze=>{const{prefixCls:Be,loading:Oe,className:Te,rootClassName:xe,style:Ie,children:Ke,avatar:rt=!1,title:ke=!0,paragraph:tt=!0,active:mt,round:ct}=Ze,{getPrefixCls:ht,direction:lt,skeleton:pt}=E.useContext(pe.E_),at=ht("skeleton",Be),[st,ft]=me(at);if(Oe||!("loading"in Ze)){const vt=!!rt,St=!!ke,xt=!!tt;let Ft;if(vt){const dn=Object.assign(Object.assign({prefixCls:`${at}-avatar`},He(St,xt)),Ye(rt));Ft=E.createElement("div",{className:`${at}-header`},E.createElement(ne,Object.assign({},dn)))}let Nt;if(St||xt){let dn;if(St){const Jt=Object.assign(Object.assign({prefixCls:`${at}-title`},Re(vt,xt)),Ye(ke));dn=E.createElement(ut,Object.assign({},Jt))}let en;if(xt){const Jt=Object.assign(Object.assign({prefixCls:`${at}-paragraph`},$e(vt,St)),Ye(tt));en=E.createElement(ot,Object.assign({},Jt))}Nt=E.createElement("div",{className:`${at}-content`},dn,en)}const Xt=_e()(at,{[`${at}-with-avatar`]:vt,[`${at}-active`]:mt,[`${at}-rtl`]:lt==="rtl",[`${at}-round`]:ct},pt==null?void 0:pt.className,Te,xe,ft);return st(E.createElement("div",{className:Xt,style:Object.assign(Object.assign({},pt==null?void 0:pt.style),Ie)},Ft,Nt))}return typeof Ke!="undefined"?Ke:null};Le.Button=Pe,Le.Avatar=Se,Le.Input=Ce,Le.Image=Ee,Le.Node=We;var Ne=Le,et=Ne},31797:function(Et,dt,ve){"use strict";ve.d(dt,{default:function(){return me}});var be=ve(59301),_e=ve(56762),E=ve(92343),pe=ve(92310),de=ve.n(pe),se=ve(36355),ne=ve(61621),ce=he=>{const{value:Se,formatter:ye,precision:Pe,decimalSeparator:we,groupSeparator:De="",prefixCls:Ee}=he;let Ae;if(typeof ye=="function")Ae=ye(Se);else{const Ce=String(Se),je=Ce.match(/^(-?)(\d*)(\.(\d+))?$/);if(!je||Ce==="-")Ae=Ce;else{const Me=je[1];let Ge=je[2]||"0",Fe=je[4]||"";Ge=Ge.replace(/\B(?=(\d{3})+(?!\d))/g,De),typeof Pe=="number"&&(Fe=Fe.padEnd(Pe,"0").slice(0,Pe>0?Pe:0)),Fe&&(Fe=`${we}${Fe}`),Ae=[be.createElement("span",{key:"int",className:`${Ee}-content-value-int`},Me,Ge),Fe&&be.createElement("span",{key:"decimal",className:`${Ee}-content-value-decimal`},Fe)]}}return be.createElement("span",{className:`${Ee}-content-value`},Ae)},ue=ve(17313),ae=ve(83116),oe=ve(37613);const re=he=>{const{componentCls:Se,marginXXS:ye,padding:Pe,colorTextDescription:we,titleFontSize:De,colorTextHeading:Ee,contentFontSize:Ae,fontFamily:Ce}=he;return{[`${Se}`]:Object.assign(Object.assign({},(0,ue.Wf)(he)),{[`${Se}-title`]:{marginBottom:ye,color:we,fontSize:De},[`${Se}-skeleton`]:{paddingTop:Pe},[`${Se}-content`]:{color:Ee,fontSize:Ae,fontFamily:Ce,[`${Se}-content-value`]:{display:"inline-block",direction:"ltr"},[`${Se}-content-prefix, ${Se}-content-suffix`]:{display:"inline-block"},[`${Se}-content-prefix`]:{marginInlineEnd:ye},[`${Se}-content-suffix`]:{marginInlineStart:ye}}})}};var ee=(0,ae.Z)("Statistic",he=>{const Se=(0,oe.TS)(he,{});return[re(Se)]},he=>{const{fontSizeHeading3:Se,fontSize:ye}=he;return{titleFontSize:ye,contentFontSize:Se}}),y=he=>{const{prefixCls:Se,className:ye,rootClassName:Pe,style:we,valueStyle:De,value:Ee=0,title:Ae,valueRender:Ce,prefix:je,suffix:Me,loading:Ge=!1,onMouseEnter:Fe,onMouseLeave:Je,decimalSeparator:qe=".",groupSeparator:Xe=","}=he,{getPrefixCls:Ve,direction:We,statistic:ze}=be.useContext(se.E_),Ue=Ve("statistic",Se),[ot,Qe]=ee(Ue),ut=be.createElement(ce,Object.assign({decimalSeparator:qe,groupSeparator:Xe,prefixCls:Ue},he,{value:Ee})),Ye=de()(Ue,{[`${Ue}-rtl`]:We==="rtl"},ze==null?void 0:ze.className,ye,Pe,Qe);return ot(be.createElement("div",{className:Ye,style:Object.assign(Object.assign({},ze==null?void 0:ze.style),we),onMouseEnter:Fe,onMouseLeave:Je},Ae&&be.createElement("div",{className:`${Ue}-title`},Ae),be.createElement(ne.Z,{paragraph:!1,loading:Ge,className:`${Ue}-skeleton`},be.createElement("div",{style:De,className:`${Ue}-content`},je&&be.createElement("span",{className:`${Ue}-content-prefix`},je),Ce?Ce(ut):ut,Me&&be.createElement("span",{className:`${Ue}-content-suffix`},Me)))))};const x=[["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(he,Se){let ye=he;const Pe=/\[[^\]]*]/g,we=(Se.match(Pe)||[]).map(Ce=>Ce.slice(1,-1)),De=Se.replace(Pe,"[]"),Ee=x.reduce((Ce,je)=>{let[Me,Ge]=je;if(Ce.includes(Me)){const Fe=Math.floor(ye/Ge);return ye-=Fe*Ge,Ce.replace(new RegExp(`${Me}+`,"g"),Je=>{const qe=Je.length;return Fe.toString().padStart(qe,"0")})}return Ce},De);let Ae=0;return Ee.replace(Pe,()=>{const Ce=we[Ae];return Ae+=1,Ce})}function z(he,Se){const{format:ye=""}=Se,Pe=new Date(he).getTime(),we=Date.now(),De=Math.max(Pe-we,0);return b(De,ye)}const te=1e3/30;function le(he){return new Date(he).getTime()}const fe=he=>{const{value:Se,format:ye="HH:mm:ss",onChange:Pe,onFinish:we}=he,De=(0,_e.Z)(),Ee=be.useRef(null),Ae=()=>{we==null||we(),Ee.current&&(clearInterval(Ee.current),Ee.current=null)},Ce=()=>{const Ge=le(Se);Ge>=Date.now()&&(Ee.current=setInterval(()=>{De(),Pe==null||Pe(Ge-Date.now()),Ge(Ce(),()=>{Ee.current&&(clearInterval(Ee.current),Ee.current=null)}),[Se]);const je=(Ge,Fe)=>z(Ge,Object.assign(Object.assign({},Fe),{format:ye})),Me=Ge=>(0,E.Tm)(Ge,{title:void 0});return be.createElement(y,Object.assign({},he,{valueRender:Me,formatter:je}))};var ge=be.memo(fe);y.Countdown=ge;var me=y},15969:function(Et,dt,ve){"use strict";ve.d(dt,{N:function(){return be}});const be=_e=>({color:_e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${_e.motionDurationSlow}`,"&:focus, &:hover":{color:_e.colorLinkHover},"&:active":{color:_e.colorLinkActive}})},1710:function(Et,dt,ve){"use strict";ve.d(dt,{default:function(){return Ts}});var be={},_e="rc-table-internal-hook",E=ve(42978),pe=ve(6089),de=ve(34280),se=ve(13697),ne=ve(59301),ie=ve(4676);function ce(nt){var it=ne.createContext(void 0),gt=function(Pt){var wt=Pt.value,It=Pt.children,Rt=ne.useRef(wt);Rt.current=wt;var At=ne.useState(function(){return{getValue:function(){return Rt.current},listeners:new Set}}),zt=(0,E.Z)(At,1),Zt=zt[0];return(0,de.Z)(function(){(0,ie.unstable_batchedUpdates)(function(){Zt.listeners.forEach(function(Ut){Ut(wt)})})},[wt]),ne.createElement(it.Provider,{value:Zt},It)};return{Context:it,Provider:gt,defaultValue:nt}}function ue(nt,it){var gt=(0,pe.Z)(typeof it=="function"?it:function(Ut){if(it===void 0)return Ut;if(!Array.isArray(it))return Ut[it];var cn={};return it.forEach(function(nn){cn[nn]=Ut[nn]}),cn}),yt=ne.useContext(nt==null?void 0:nt.Context),Pt=yt||{},wt=Pt.listeners,It=Pt.getValue,Rt=ne.useRef();Rt.current=gt(yt?It():nt==null?void 0:nt.defaultValue);var At=ne.useState({}),zt=(0,E.Z)(At,2),Zt=zt[1];return(0,de.Z)(function(){if(!yt)return;function Ut(cn){var nn=gt(cn);(0,se.Z)(Rt.current,nn,!0)||Zt({})}return wt.add(Ut),function(){wt.delete(Ut)}},[yt]),Rt.current}var ae=ve(54476),oe=ve(8654);function re(){var nt=ne.createContext(null);function it(){return ne.useContext(nt)}function gt(Pt,wt){var It=(0,oe.Yr)(Pt),Rt=function(zt,Zt){var Ut=It?{ref:Zt}:{},cn=ne.useRef(0),nn=ne.useRef(zt),sn=it();return sn!==null?ne.createElement(Pt,(0,ae.Z)({},zt,Ut)):((!wt||wt(nn.current,zt))&&(cn.current+=1),nn.current=zt,ne.createElement(nt.Provider,{value:cn.current},ne.createElement(Pt,(0,ae.Z)({},zt,Ut))))};return It?ne.forwardRef(Rt):Rt}function yt(Pt,wt){var It=(0,oe.Yr)(Pt),Rt=function(zt,Zt){var Ut=It?{ref:Zt}:{};return it(),ne.createElement(Pt,(0,ae.Z)({},zt,Ut))};return It?ne.memo(ne.forwardRef(Rt),wt):ne.memo(Rt,wt)}return{makeImmutable:gt,responseImmutable:yt,useImmutableMark:it}}var ee=re(),a=ee.makeImmutable,y=ee.responseImmutable,x=ee.useImmutableMark,b=re(),z=b.makeImmutable,te=b.responseImmutable,le=b.useImmutableMark,fe=ce(),ge=fe;function me(nt,it){var gt=ne.useRef(0);gt.current+=1;var yt=ne.useRef(nt),Pt=[];Object.keys(nt||{}).map(function(It){var Rt;(nt==null?void 0:nt[It])!==((Rt=yt.current)===null||Rt===void 0?void 0:Rt[It])&&Pt.push(It)}),yt.current=nt;var wt=ne.useRef([]);return Pt.length&&(wt.current=Pt),ne.useDebugValue(gt.current),ne.useDebugValue(wt.current.join(", ")),it&&console.log("".concat(it,":"),gt.current,wt.current),gt.current}var he=null,Se=ne.memo(function(){var nt=me();return ne.createElement("h1",null,"Render Times: ",nt)});Se.displayName="RenderBlock";var ye=ve(76190),Pe=ve(33885),we=ve(20068),De=ve(92310),Ee=ve.n(De),Ae=ve(80547),Ce=ve(97938),je=ve(48736),Me=ne.createContext({renderWithProps:!1}),Ge=Me,Fe="RC_TABLE_KEY";function Je(nt){return nt==null?[]:Array.isArray(nt)?nt:[nt]}function qe(nt){var it=[],gt={};return nt.forEach(function(yt){for(var Pt=yt||{},wt=Pt.key,It=Pt.dataIndex,Rt=wt||Je(It).join("-")||Fe;gt[Rt];)Rt="".concat(Rt,"_next");gt[Rt]=!0,it.push(Rt)}),it}function Xe(nt){return nt!=null}function Ve(nt){return nt&&(0,ye.Z)(nt)==="object"&&!Array.isArray(nt)&&!ne.isValidElement(nt)}function We(nt,it,gt,yt,Pt,wt){var It=ne.useContext(Ge),Rt=le(),At=(0,Ae.Z)(function(){if(Xe(yt))return[yt];var zt=it==null||it===""?[]:Array.isArray(it)?it:[it],Zt=(0,Ce.Z)(nt,zt),Ut=Zt,cn=void 0;if(Pt){var nn=Pt(Zt,nt,gt);Ve(nn)?(Ut=nn.children,cn=nn.props,It.renderWithProps=!0):Ut=nn}return[Ut,cn]},[Rt,nt,yt,it,Pt,gt],function(zt,Zt){if(wt){var Ut=(0,E.Z)(zt,2),cn=Ut[1],nn=(0,E.Z)(Zt,2),sn=nn[1];return wt(sn,cn)}return It.renderWithProps?!0:!(0,se.Z)(zt,Zt,!0)});return At}function ze(nt,it,gt,yt){var Pt=nt+it-1;return nt<=yt&&Pt>=gt}function Ue(nt,it){return ue(ge,function(gt){var yt=ze(nt,it||1,gt.hoverStartRow,gt.hoverEndRow);return[yt,gt.onHover]})}var ot=function(it){var gt=it.ellipsis,yt=it.rowType,Pt=it.children,wt,It=gt===!0?{showTitle:!0}:gt;return It&&(It.showTitle||yt==="header")&&(typeof Pt=="string"||typeof Pt=="number"?wt=Pt.toString():ne.isValidElement(Pt)&&typeof Pt.props.children=="string"&&(wt=Pt.props.children)),wt};function Qe(nt){var it,gt,yt,Pt,wt,It,Rt,At,zt=nt.component,Zt=nt.children,Ut=nt.ellipsis,cn=nt.scope,nn=nt.prefixCls,sn=nt.className,xn=nt.align,yn=nt.record,_n=nt.render,bn=nt.dataIndex,Fn=nt.renderIndex,er=nt.shouldCellUpdate,or=nt.index,Vn=nt.rowType,Lr=nt.colSpan,Rr=nt.rowSpan,Hn=nt.fixLeft,Xn=nt.fixRight,Gn=nt.firstFixLeft,jn=nt.lastFixLeft,$n=nt.firstFixRight,br=nt.lastFixRight,Ur=nt.appendNode,Ir=nt.additionalProps,lr=Ir===void 0?{}:Ir,Hr=nt.isSticky,Vr="".concat(nn,"-cell"),So=ue(ge,["supportSticky","allColumnsFixedLeft"]),eo=So.supportSticky,Bo=So.allColumnsFixedLeft,Fo=We(yn,bn,Fn,Zt,_n,er),Mr=(0,E.Z)(Fo,2),Wo=Mr[0],ro=Mr[1],_o={},Eo=typeof Hn=="number"&&eo,la=typeof Xn=="number"&&eo;Eo&&(_o.position="sticky",_o.left=Hn),la&&(_o.position="sticky",_o.right=Xn);var mr=(it=(gt=(yt=ro==null?void 0:ro.colSpan)!==null&&yt!==void 0?yt:lr.colSpan)!==null&>!==void 0?gt:Lr)!==null&&it!==void 0?it:1,fr=(Pt=(wt=(It=ro==null?void 0:ro.rowSpan)!==null&&It!==void 0?It:lr.rowSpan)!==null&&wt!==void 0?wt:Rr)!==null&&Pt!==void 0?Pt:1,cr=Ue(or,fr),Jn=(0,E.Z)(cr,2),oo=Jn[0],Qn=Jn[1],Dr=function(Ko){var ca;yn&&Qn(or,or+fr-1),lr==null||(ca=lr.onMouseEnter)===null||ca===void 0||ca.call(lr,Ko)},Qr=function(Ko){var ca;yn&&Qn(-1,-1),lr==null||(ca=lr.onMouseLeave)===null||ca===void 0||ca.call(lr,Ko)};if(mr===0||fr===0)return null;var Yr=(Rt=lr.title)!==null&&Rt!==void 0?Rt:ot({rowType:Vn,ellipsis:Ut,children:Wo}),ta=Ee()(Vr,sn,(At={},(0,we.Z)(At,"".concat(Vr,"-fix-left"),Eo&&eo),(0,we.Z)(At,"".concat(Vr,"-fix-left-first"),Gn&&eo),(0,we.Z)(At,"".concat(Vr,"-fix-left-last"),jn&&eo),(0,we.Z)(At,"".concat(Vr,"-fix-left-all"),jn&&Bo&&eo),(0,we.Z)(At,"".concat(Vr,"-fix-right"),la&&eo),(0,we.Z)(At,"".concat(Vr,"-fix-right-first"),$n&&eo),(0,we.Z)(At,"".concat(Vr,"-fix-right-last"),br&&eo),(0,we.Z)(At,"".concat(Vr,"-ellipsis"),Ut),(0,we.Z)(At,"".concat(Vr,"-with-append"),Ur),(0,we.Z)(At,"".concat(Vr,"-fix-sticky"),(Eo||la)&&Hr&&eo),(0,we.Z)(At,"".concat(Vr,"-row-hover"),!ro&&oo),At),lr.className,ro==null?void 0:ro.className),Qo={};xn&&(Qo.textAlign=xn);var ba=(0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)({},_o),lr.style),Qo),ro==null?void 0:ro.style),Zo=Wo;return(0,ye.Z)(Zo)==="object"&&!Array.isArray(Zo)&&!ne.isValidElement(Zo)&&(Zo=null),Ut&&(jn||$n)&&(Zo=ne.createElement("span",{className:"".concat(Vr,"-content")},Zo)),ne.createElement(zt,(0,ae.Z)({},ro,lr,{className:ta,style:ba,title:Yr,scope:cn,onMouseEnter:Dr,onMouseLeave:Qr,colSpan:mr!==1?mr:null,rowSpan:fr!==1?fr:null}),Ur,Zo)}var ut=ne.memo(Qe);function Ye(nt,it,gt,yt,Pt,wt){var It=gt[nt]||{},Rt=gt[it]||{},At,zt;It.fixed==="left"?At=yt.left[Pt==="rtl"?it:nt]:Rt.fixed==="right"&&(zt=yt.right[Pt==="rtl"?nt:it]);var Zt=!1,Ut=!1,cn=!1,nn=!1,sn=gt[it+1],xn=gt[nt-1],yn=!(wt!=null&&wt.children);if(Pt==="rtl"){if(At!==void 0){var _n=xn&&xn.fixed==="left";nn=!_n&&yn}else if(zt!==void 0){var bn=sn&&sn.fixed==="right";cn=!bn&&yn}}else if(At!==void 0){var Fn=sn&&sn.fixed==="left";Zt=!Fn&&yn}else if(zt!==void 0){var er=xn&&xn.fixed==="right";Ut=!er&&yn}return{fixLeft:At,fixRight:zt,lastFixLeft:Zt,firstFixRight:Ut,lastFixRight:cn,firstFixLeft:nn,isSticky:yt.isSticky}}var He=ne.createContext({}),Re=He;function $e(nt){var it=nt.className,gt=nt.index,yt=nt.children,Pt=nt.colSpan,wt=Pt===void 0?1:Pt,It=nt.rowSpan,Rt=nt.align,At=ue(ge,["prefixCls","direction"]),zt=At.prefixCls,Zt=At.direction,Ut=ne.useContext(Re),cn=Ut.scrollColumnIndex,nn=Ut.stickyOffsets,sn=Ut.flattenColumns,xn=Ut.columns,yn=gt+wt-1,_n=yn+1===cn?wt+1:wt,bn=Ye(gt,gt+_n-1,sn,nn,Zt,xn==null?void 0:xn[gt]);return ne.createElement(ut,(0,ae.Z)({className:it,index:gt,component:"td",prefixCls:zt,record:null,dataIndex:null,align:Rt,colSpan:_n,rowSpan:It,render:function(){return yt}},bn))}var Le=ve(75931),Ne=["children"];function et(nt){var it=nt.children,gt=(0,Le.Z)(nt,Ne);return ne.createElement("tr",gt,it)}function Ze(nt){var it=nt.children;return it}Ze.Row=et,Ze.Cell=$e;var Be=Ze;function Oe(nt){var it=nt.children,gt=nt.stickyOffsets,yt=nt.flattenColumns,Pt=nt.columns,wt=ue(ge,"prefixCls"),It=yt.length-1,Rt=yt[It],At=ne.useMemo(function(){return{stickyOffsets:gt,flattenColumns:yt,scrollColumnIndex:Rt!=null&&Rt.scrollbar?It:null,columns:Pt}},[Rt,yt,It,gt,Pt]);return ne.createElement(Re.Provider,{value:At},ne.createElement("tfoot",{className:"".concat(wt,"-summary")},it))}var Te=te(Oe),xe=Be,Ie=ve(70425),Ke=ve(29301),rt=ve(29194),ke=ve(3465),tt=ve(75152),mt=ve(26112);function ct(nt,it,gt,yt,Pt,wt,It){nt.push({record:it,indent:gt,index:It});var Rt=wt(it),At=Pt==null?void 0:Pt.has(Rt);if(it&&Array.isArray(it[yt])&&At)for(var zt=0;zt1?Gn-1:0),$n=1;$n=0;Rt-=1){var At=it[Rt],zt=gt&>[Rt],Zt=zt&&zt[dn];if(At||Zt||It){var Ut=Zt||{},cn=Ut.columnType,nn=(0,Le.Z)(Ut,Jt);Pt.unshift(ne.createElement("col",(0,ae.Z)({key:Rt,style:{width:At}},nn))),It=!0}}return ne.createElement("colgroup",null,Pt)}var Ln=wn,fn=ve(94480),zn=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Un(nt,it){return(0,ne.useMemo)(function(){for(var gt=[],yt=0;yt1?"colgroup":"col":null,ellipsis:yn.ellipsis,align:yn.align,component:yn.title?wt:It,prefixCls:Zt,key:nn[xn]},_n,{additionalProps:bn,rowType:"header"}))}))}Tn.displayName="HeaderRow";var Zn=Tn;function Pr(nt){var it=[];function gt(It,Rt){var At=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;it[At]=it[At]||[];var zt=Rt,Zt=It.filter(Boolean).map(function(Ut){var cn={key:Ut.key,className:Ut.className||"",children:Ut.title,column:Ut,colStart:zt},nn=1,sn=Ut.children;return sn&&sn.length>0&&(nn=gt(sn,zt,At+1).reduce(function(xn,yn){return xn+yn},0),cn.hasSubColumns=!0),"colSpan"in Ut&&(nn=Ut.colSpan),"rowSpan"in Ut&&(cn.rowSpan=Ut.rowSpan),cn.colSpan=nn,cn.colEnd=cn.colStart+nn-1,it[At].push(cn),zt+=nn,nn});return Zt}gt(nt,0);for(var yt=it.length,Pt=function(Rt){it[Rt].forEach(function(At){!("rowSpan"in At)&&!At.hasSubColumns&&(At.rowSpan=yt-Rt)})},wt=0;wt1&&arguments[1]!==void 0?arguments[1]:"";return typeof it=="number"?it:it.endsWith("%")?nt*parseFloat(it)/100:null}function gr(nt,it){return ne.useMemo(function(){if(it&&it>0){var gt=0,yt=0;nt.forEach(function(zt){var Zt=ir(it,zt.width);Zt?gt+=Zt:yt+=1});var Pt=it-gt,wt=yt,It=Pt/yt,Rt=0,At=nt.map(function(zt){var Zt=(0,Pe.Z)({},zt),Ut=ir(it,Zt.width);if(Ut)Zt.width=Ut;else{var cn=Math.floor(It);Zt.width=wt===1?Pt:cn,Pt-=cn,wt-=1}return Rt+=Zt.width,Zt});return[At,Rt]}return[nt,it]},[nt,it])}var Ot=["children"],jt=["fixed"];function _t(nt){return(0,jr.Z)(nt).filter(function(it){return ne.isValidElement(it)}).map(function(it){var gt=it.key,yt=it.props,Pt=yt.children,wt=(0,Le.Z)(yt,Ot),It=(0,Pe.Z)({key:gt},wt);return Pt&&(It.children=_t(Pt)),It})}function tn(nt){var it=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return nt.filter(function(gt){return gt&&(0,ye.Z)(gt)==="object"}).reduce(function(gt,yt,Pt){var wt=yt.fixed,It=wt===!0?"left":wt,Rt="".concat(it,"-").concat(Pt),At=yt.children;return At&&At.length>0?[].concat((0,fn.Z)(gt),(0,fn.Z)(tn(At,Rt).map(function(zt){return(0,Pe.Z)({fixed:It},zt)}))):[].concat((0,fn.Z)(gt),[(0,Pe.Z)((0,Pe.Z)({key:Rt},yt),{},{fixed:It})])},[])}function Bn(nt){for(var it=!0,gt=0;gt=0;wt-=1){var It=nt[wt];if(Pt&&It.fixed!=="right")Pt=!1;else if(!Pt&&It.fixed==="right"){warning(!1,"Index ".concat(wt+1," of `columns` missing `fixed='right'` prop."));break}}}function Cn(nt){return nt.map(function(it){var gt=it.fixed,yt=(0,Le.Z)(it,jt),Pt=gt;return gt==="left"?Pt="right":gt==="right"&&(Pt="left"),(0,Pe.Z)({fixed:Pt},yt)})}function Fr(nt,it){var gt=nt.prefixCls,yt=nt.columns,Pt=nt.children,wt=nt.expandable,It=nt.expandedKeys,Rt=nt.columnTitle,At=nt.getRowKey,zt=nt.onTriggerExpand,Zt=nt.expandIcon,Ut=nt.rowExpandable,cn=nt.expandIconColumnIndex,nn=nt.direction,sn=nt.expandRowByClick,xn=nt.columnWidth,yn=nt.fixed,_n=nt.scrollWidth,bn=ne.useMemo(function(){return yt||_t(Pt)},[yt,Pt]),Fn=ne.useMemo(function(){if(wt){var Xn,Gn=bn.slice();if(!Gn.includes(be)){var jn=cn||0;jn>=0&&Gn.splice(jn,0,be)}var $n=Gn.indexOf(be);Gn=Gn.filter(function(lr,Hr){return lr!==be||Hr===$n});var br=bn[$n],Ur;(yn==="left"||yn)&&!cn?Ur="left":(yn==="right"||yn)&&cn===bn.length?Ur="right":Ur=br?br.fixed:null;var Ir=(Xn={},(0,we.Z)(Xn,dn,{className:"".concat(gt,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,we.Z)(Xn,"title",Rt),(0,we.Z)(Xn,"fixed",Ur),(0,we.Z)(Xn,"className","".concat(gt,"-row-expand-icon-cell")),(0,we.Z)(Xn,"width",xn),(0,we.Z)(Xn,"render",function(Hr,Vr,So){var eo=At(Vr,So),Bo=It.has(eo),Fo=Ut?Ut(Vr):!0,Mr=Zt({prefixCls:gt,expanded:Bo,expandable:Fo,record:Vr,onExpand:zt});return sn?ne.createElement("span",{onClick:function(ro){return ro.stopPropagation()}},Mr):Mr}),Xn);return Gn.map(function(lr){return lr===be?Ir:lr})}return bn.filter(function(lr){return lr!==be})},[wt,bn,At,It,Zt,nn]),er=ne.useMemo(function(){var Xn=Fn;return it&&(Xn=it(Xn)),Xn.length||(Xn=[{render:function(){return null}}]),Xn},[it,Fn,nn]),or=ne.useMemo(function(){return nn==="rtl"?Cn(tn(er)):tn(er)},[er,nn,_n]),Vn=gr(or,_n),Lr=(0,E.Z)(Vn,2),Rr=Lr[0],Hn=Lr[1];return[er,Rr,Hn]}var rr=Fr;function Ht(nt){var it,gt=nt.prefixCls,yt=nt.record,Pt=nt.onExpand,wt=nt.expanded,It=nt.expandable,Rt="".concat(gt,"-row-expand-icon");if(!It)return ne.createElement("span",{className:Ee()(Rt,"".concat(gt,"-row-spaced"))});var At=function(Zt){Pt(yt,Zt),Zt.stopPropagation()};return ne.createElement("span",{className:Ee()(Rt,(it={},(0,we.Z)(it,"".concat(gt,"-row-expanded"),wt),(0,we.Z)(it,"".concat(gt,"-row-collapsed"),!wt),it)),onClick:At})}function Lt(nt,it,gt){var yt=[];function Pt(wt){(wt||[]).forEach(function(It,Rt){yt.push(it(It,Rt)),Pt(It[gt])})}return Pt(nt),yt}function rn(nt,it,gt){var yt=en(nt),Pt=yt.expandIcon,wt=yt.expandedRowKeys,It=yt.defaultExpandedRowKeys,Rt=yt.defaultExpandAllRows,At=yt.expandedRowRender,zt=yt.onExpand,Zt=yt.onExpandedRowsChange,Ut=yt.childrenColumnName,cn=Pt||Ht,nn=Ut||"children",sn=ne.useMemo(function(){return At?"row":nt.expandable&&nt.internalHooks===_e&&nt.expandable.__PARENT_RENDER_ICON__||it.some(function(or){return or&&(0,ye.Z)(or)==="object"&&or[nn]})?"nest":!1},[!!At,it]),xn=ne.useState(function(){return It||(Rt?Lt(it,gt,nn):[])}),yn=(0,E.Z)(xn,2),_n=yn[0],bn=yn[1],Fn=ne.useMemo(function(){return new Set(wt||_n||[])},[wt,_n]),er=ne.useCallback(function(or){var Vn=gt(or,it.indexOf(or)),Lr,Rr=Fn.has(Vn);Rr?(Fn.delete(Vn),Lr=(0,fn.Z)(Fn)):Lr=[].concat((0,fn.Z)(Fn),[Vn]),bn(Lr),zt&&zt(!Rr,or),Zt&&Zt(Lr)},[gt,Fn,it,zt,Zt]);return[yt,sn,Fn,cn,nn,er]}function Dt(nt,it,gt,yt){var Pt=nt.map(function(wt,It){return Ye(It,It,nt,it,gt,yt==null?void 0:yt[It])});return(0,Ae.Z)(function(){return Pt},[Pt],function(wt,It){return!(0,se.Z)(wt,It)})}function un(nt){var it=(0,ne.useRef)(nt),gt=(0,ne.useState)({}),yt=(0,E.Z)(gt,2),Pt=yt[1],wt=(0,ne.useRef)(null),It=(0,ne.useRef)([]);function Rt(At){It.current.push(At);var zt=Promise.resolve();wt.current=zt,zt.then(function(){if(wt.current===zt){var Zt=It.current,Ut=it.current;It.current=[],Zt.forEach(function(cn){it.current=cn(it.current)}),wt.current=null,Ut!==it.current&&Pt({})}})}return(0,ne.useEffect)(function(){return function(){wt.current=null}},[]),[it.current,Rt]}function En(nt){var it=(0,ne.useRef)(nt||null),gt=(0,ne.useRef)();function yt(){window.clearTimeout(gt.current)}function Pt(It){it.current=It,yt(),gt.current=window.setTimeout(function(){it.current=null,gt.current=void 0},100)}function wt(){return it.current}return(0,ne.useEffect)(function(){return yt},[]),[Pt,wt]}function In(){var nt=ne.useState(-1),it=(0,E.Z)(nt,2),gt=it[0],yt=it[1],Pt=ne.useState(-1),wt=(0,E.Z)(Pt,2),It=wt[0],Rt=wt[1],At=ne.useCallback(function(zt,Zt){yt(zt),Rt(Zt)},[]);return[gt,It,At]}var Sn=ve(47273),bt=(0,Sn.Z)()?window:null;function Mt(nt,it){var gt=(0,ye.Z)(nt)==="object"?nt:{},yt=gt.offsetHeader,Pt=yt===void 0?0:yt,wt=gt.offsetSummary,It=wt===void 0?0:wt,Rt=gt.offsetScroll,At=Rt===void 0?0:Rt,zt=gt.getContainer,Zt=zt===void 0?function(){return bt}:zt,Ut=Zt()||bt;return ne.useMemo(function(){var cn=!!nt;return{isSticky:cn,stickyClassName:cn?"".concat(it,"-sticky-holder"):"",offsetHeader:Pt,offsetSummary:It,offsetScroll:At,container:Ut}},[At,Pt,It,it,Ut])}function Bt(nt,it,gt){var yt=(0,ne.useMemo)(function(){for(var Pt=[],wt=[],It=0,Rt=0,At=0;At=Ut&&(lr=Ut-cn),It({scrollLeft:lr/Ut*(Zt+2)}),bn.current.x=$n.pageX},Xn=function(){if(wt.current){var $n=(0,Kt.os)(wt.current).top,br=$n+wt.current.offsetHeight,Ur=At===window?document.documentElement.scrollTop+window.innerHeight:(0,Kt.os)(At).top+At.clientHeight;br-(0,tt.Z)()<=Ur||$n>=Ur-Rt?_n(function(Ir){return(0,Pe.Z)((0,Pe.Z)({},Ir),{},{isHiddenScrollBar:!0})}):_n(function(Ir){return(0,Pe.Z)((0,Pe.Z)({},Ir),{},{isHiddenScrollBar:!1})})}},Gn=function($n){_n(function(br){return(0,Pe.Z)((0,Pe.Z)({},br),{},{scrollLeft:$n/Zt*Ut||0})})};return ne.useImperativeHandle(gt,function(){return{setScrollLeft:Gn}}),ne.useEffect(function(){var jn=(0,Wt.Z)(document.body,"mouseup",Lr,!1),$n=(0,Wt.Z)(document.body,"mousemove",Hn,!1);return Xn(),function(){jn.remove(),$n.remove()}},[cn,or]),ne.useEffect(function(){var jn=(0,Wt.Z)(At,"scroll",Xn,!1),$n=(0,Wt.Z)(window,"resize",Xn,!1);return function(){jn.remove(),$n.remove()}},[At]),ne.useEffect(function(){yn.isHiddenScrollBar||_n(function(jn){var $n=wt.current;return $n?(0,Pe.Z)((0,Pe.Z)({},jn),{},{scrollLeft:$n.scrollLeft/$n.scrollWidth*$n.clientWidth}):jn})},[yn.isHiddenScrollBar]),Zt<=Ut||!cn||yn.isHiddenScrollBar?null:ne.createElement("div",{style:{height:(0,tt.Z)(),width:Ut,bottom:Rt},className:"".concat(zt,"-sticky-scroll")},ne.createElement("div",{onMouseDown:Rr,ref:nn,className:Ee()("".concat(zt,"-sticky-scroll-bar"),(0,we.Z)({},"".concat(zt,"-sticky-scroll-bar-active"),or)),style:{width:"".concat(cn,"px"),transform:"translate3d(".concat(yn.scrollLeft,"px, 0, 0)")}}))},Mn=ne.forwardRef(Rn);function kt(nt){return null}var vr=kt;function tr(nt){return null}var nr=tr,Kr="rc-table",gn=[],vn={};function Wn(){return"No Data"}function Pn(nt){var it,gt=(0,Pe.Z)({rowKey:"key",prefixCls:Kr,emptyText:Wn},nt),yt=gt.prefixCls,Pt=gt.className,wt=gt.rowClassName,It=gt.style,Rt=gt.data,At=gt.rowKey,zt=gt.scroll,Zt=gt.tableLayout,Ut=gt.direction,cn=gt.title,nn=gt.footer,sn=gt.summary,xn=gt.caption,yn=gt.id,_n=gt.showHeader,bn=gt.components,Fn=gt.emptyText,er=gt.onRow,or=gt.onHeaderRow,Vn=gt.internalHooks,Lr=gt.transformColumns,Rr=gt.internalRefs,Hn=gt.tailor,Xn=gt.sticky,Gn=Rt||gn,jn=!!Gn.length,$n=Vn===_e,br=ne.useCallback(function(fo,Oo){return(0,Ce.Z)(bn,fo)||Oo},[bn]),Ur=ne.useMemo(function(){return typeof At=="function"?At:function(fo){var Oo=fo&&fo[At];return Oo}},[At]),Ir=br(["body"]),lr=In(),Hr=(0,E.Z)(lr,3),Vr=Hr[0],So=Hr[1],eo=Hr[2],Bo=rn(gt,Gn,Ur),Fo=(0,E.Z)(Bo,6),Mr=Fo[0],Wo=Fo[1],ro=Fo[2],_o=Fo[3],Eo=Fo[4],la=Fo[5],mr=zt==null?void 0:zt.x,fr=ne.useState(0),cr=(0,E.Z)(fr,2),Jn=cr[0],oo=cr[1],Qn=rr((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)({},gt),Mr),{},{expandable:!!Mr.expandedRowRender,columnTitle:Mr.columnTitle,expandedKeys:ro,getRowKey:Ur,onTriggerExpand:la,expandIcon:_o,expandIconColumnIndex:Mr.expandIconColumnIndex,direction:Ut,scrollWidth:$n&&Hn&&typeof mr=="number"?mr:null}),$n?Lr:null),Dr=(0,E.Z)(Qn,3),Qr=Dr[0],Yr=Dr[1],ta=Dr[2],Qo=ta!=null?ta:mr,ba=ne.useMemo(function(){return{columns:Qr,flattenColumns:Yr}},[Qr,Yr]),Zo=ne.useRef(),va=ne.useRef(),Ko=ne.useRef(),ca=ne.useRef(),Ga=ne.useRef(),so=ne.useState(!1),uo=(0,E.Z)(so,2),Ao=uo[0],$o=uo[1],Vo=ne.useState(!1),Xr=(0,E.Z)(Vo,2),aa=Xr[0],na=Xr[1],pa=un(new Map),xa=(0,E.Z)(pa,2),Pa=xa[0],ei=xa[1],Aa=qe(Yr),ya=Aa.map(function(fo){return Pa.get(fo)}),ua=ne.useMemo(function(){return ya},[ya.join("_")]),ia=Ct(ua,Yr.length,Ut),Xo=zt&&Xe(zt.y),Do=zt&&Xe(Qo)||!!Mr.fixed,_a=Do&&Yr.some(function(fo){var Oo=fo.fixed;return Oo}),Wa=ne.useRef(),Ra=Mt(Xn,yt),Oa=Ra.isSticky,li=Ra.offsetHeader,Pi=Ra.offsetSummary,qr=Ra.offsetScroll,Co=Ra.stickyClassName,qo=Ra.container,jo=ne.useMemo(function(){return sn==null?void 0:sn(Gn)},[sn,Gn]),ra=(Xo||Oa)&&ne.isValidElement(jo)&&jo.type===Be&&jo.props.fixed,da,fa,Da;Xo&&(fa={overflowY:"scroll",maxHeight:zt.y}),Do&&(da={overflowX:"auto"},Xo||(fa={overflowY:"hidden"}),Da={width:Qo===!0?"auto":Qo,minWidth:"100%"});var Mi=ne.useCallback(function(fo,Oo){(0,rt.Z)(Zo.current)&&ei(function(Sa){if(Sa.get(fo)!==Oo){var Ma=new Map(Sa);return Ma.set(fo,Oo),Ma}return Sa})},[]),Ls=En(null),Bi=(0,E.Z)(Ls,2),As=Bi[0],Fi=Bi[1];function ci(fo,Oo){Oo&&(typeof Oo=="function"?Oo(fo):Oo.scrollLeft!==fo&&(Oo.scrollLeft=fo,Oo.scrollLeft!==fo&&setTimeout(function(){Oo.scrollLeft=fo},0)))}var Za=(0,pe.Z)(function(fo){var Oo=fo.currentTarget,Sa=fo.scrollLeft,Ma=Ut==="rtl",Ba=typeof Sa=="number"?Sa:Oo.scrollLeft,Qi=Oo||vn;if(!Fi()||Fi()===Qi){var _i;As(Qi),ci(Ba,va.current),ci(Ba,Ko.current),ci(Ba,Ga.current),ci(Ba,(_i=Wa.current)===null||_i===void 0?void 0:_i.setScrollLeft)}var Oi=Oo||va.current;if(Oi){var Ti=Oi.scrollWidth,Li=Oi.clientWidth;if(Ti===Li){$o(!1),na(!1);return}Ma?($o(-Ba0)):($o(Ba>0),na(Ba1?xn-$n:0,Ur=(0,Pe.Z)((0,Pe.Z)((0,Pe.Z)({},Lr),At),{},{flex:"0 0 ".concat($n,"px"),width:"".concat($n,"px"),marginRight:br,pointerEvents:"auto"}),Ir=ne.useMemo(function(){return Zt?Gn<=1:Hn===0||Gn===0||Gn>1},[Gn,Hn,Zt]);Ir?Ur.visibility="hidden":Zt&&(Ur.height=Ut==null?void 0:Ut(Gn));var lr=Ir?function(){return null}:cn,Hr={};return(Gn===0||Hn===0)&&(Hr.rowSpan=1,Hr.colSpan=1),ne.createElement(ut,(0,ae.Z)({className:Ee()(sn,zt),ellipsis:gt.ellipsis,align:gt.align,scope:gt.rowScope,component:"div",prefixCls:it.prefixCls,key:Fn,record:Rt,index:wt,renderIndex:It,dataIndex:nn,render:lr,shouldCellUpdate:gt.shouldCellUpdate},er,{appendNode:or,additionalProps:(0,Pe.Z)((0,Pe.Z)({},Vn),{},{style:Ur},Hr)}))}var ko=io,Io=["data","index","className","rowKey","style","extra","getHeight"],pn=ne.forwardRef(function(nt,it){var gt=nt.data,yt=nt.index,Pt=nt.className,wt=nt.rowKey,It=nt.style,Rt=nt.extra,At=nt.getHeight,zt=(0,Le.Z)(nt,Io),Zt=gt.record,Ut=gt.indent,cn=gt.index,nn=ue(ge,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),sn=nn.scrollX,xn=nn.flattenColumns,yn=nn.prefixCls,_n=nn.fixColumn,bn=nn.componentWidth,Fn=at(Zt,wt,yt,Ut),er=Fn.rowSupportExpand,or=Fn.expanded,Vn=Fn.rowProps,Lr=Fn.expandedRowRender,Rr=Fn.expandedRowClassName,Hn;if(er&&or){var Xn=Lr(Zt,yt,Ut+1,or),Gn=Rr==null?void 0:Rr(Zt,yt,Ut),jn={};_n&&(jn={style:(0,we.Z)({},"--virtual-width","".concat(bn,"px"))});var $n="".concat(yn,"-expanded-row-cell");Hn=ne.createElement("div",{className:Ee()("".concat(yn,"-expanded-row"),"".concat(yn,"-expanded-row-level-").concat(Ut+1),Gn)},ne.createElement(ut,{component:"div",prefixCls:yn,className:Ee()($n,(0,we.Z)({},"".concat($n,"-fixed"),_n)),additionalProps:jn},Xn))}var br=(0,Pe.Z)((0,Pe.Z)({},It),{},{width:sn});Rt&&(br.position="absolute",br.pointerEvents="none");var Ur=ne.createElement("div",(0,ae.Z)({},Vn,zt,{ref:er?null:it,className:Ee()(Pt,"".concat(yn,"-row"),Vn==null?void 0:Vn.className,(0,we.Z)({},"".concat(yn,"-row-extra"),Rt)),style:(0,Pe.Z)((0,Pe.Z)({},br),Vn==null?void 0:Vn.style)}),xn.map(function(Ir,lr){return ne.createElement(ko,{key:lr,rowInfo:Fn,column:Ir,colIndex:lr,indent:Ut,index:yt,renderIndex:cn,record:Zt,inverse:Rt,getHeight:At})}));return er?ne.createElement("div",{ref:it},Ur,Hn):Ur}),Ro=te(pn),mo=Ro,zr=ne.forwardRef(function(nt,it){var gt=nt.data,yt=nt.onScroll,Pt=ue(ge,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),wt=Pt.flattenColumns,It=Pt.onColumnResize,Rt=Pt.getRowKey,At=Pt.expandedKeys,zt=Pt.prefixCls,Zt=Pt.childrenColumnName,Ut=Pt.emptyNode,cn=Pt.scrollX,nn=ue(Cr),sn=nn.scrollY,xn=nn.listItemHeight,yn=ne.useRef(),_n=ht(gt,Zt,At,Rt),bn=ne.useMemo(function(){var Hn=0;return wt.map(function(Xn){var Gn=Xn.width,jn=Xn.key;return Hn+=Gn,[jn,Gn,Hn]})},[wt]),Fn=ne.useMemo(function(){return bn.map(function(Hn){return Hn[2]})},[bn]);ne.useEffect(function(){bn.forEach(function(Hn){var Xn=(0,E.Z)(Hn,2),Gn=Xn[0],jn=Xn[1];It(Gn,jn)})},[bn]),ne.useImperativeHandle(it,function(){var Hn={};return Object.defineProperty(Hn,"scrollLeft",{get:function(){var Gn;return((Gn=yn.current)===null||Gn===void 0?void 0:Gn.getScrollInfo().x)||0},set:function(Gn){var jn;(jn=yn.current)===null||jn===void 0||jn.scrollTo({left:Gn})}}),Hn});var er=function(Xn,Gn){var jn,$n=(jn=_n[Gn])===null||jn===void 0?void 0:jn.record,br=Xn.onCell;if(br){var Ur,Ir=br($n,Gn);return(Ur=Ir==null?void 0:Ir.rowSpan)!==null&&Ur!==void 0?Ur:1}return 1},or=function(Xn){var Gn=Xn.start,jn=Xn.end,$n=Xn.getSize,br=Xn.offsetY;if(jn<0)return null;for(var Ur=wt.filter(function(mr){return er(mr,Gn)===0}),Ir=Gn,lr=function(fr){if(Ur=Ur.filter(function(cr){return er(cr,fr)===0}),!Ur.length)return Ir=fr,"break"},Hr=Gn;Hr>=0;Hr-=1){var Vr=lr(Hr);if(Vr==="break")break}for(var So=wt.filter(function(mr){return er(mr,jn)!==1}),eo=jn,Bo=function(fr){if(So=So.filter(function(cr){return er(cr,fr)!==1}),!So.length)return eo=Math.max(fr-1,jn),"break"},Fo=jn;Fo<_n.length;Fo+=1){var Mr=Bo(Fo);if(Mr==="break")break}for(var Wo=[],ro=function(fr){var cr=_n[fr];if(!cr)return"continue";wt.some(function(Jn){return er(Jn,fr)>1})&&Wo.push(fr)},_o=Ir;_o<=eo;_o+=1)var Eo=ro(_o);var la=Wo.map(function(mr){var fr=_n[mr],cr=Rt(fr.record,mr),Jn=function(Dr){var Qr=mr+Dr-1,Yr=Rt(_n[Qr].record,Qr),ta=$n(cr,Yr);return ta.bottom-ta.top},oo=$n(cr);return ne.createElement(mo,{key:mr,data:fr,rowKey:cr,index:mr,style:{top:-br+oo.top},extra:!0,getHeight:Jn})});return la},Vn=ne.useMemo(function(){return{columnsOffset:Fn}},[Fn]),Lr="".concat(zt,"-tbody"),Rr;return _n.length?Rr=ne.createElement(kr.Z,{fullHeight:!1,ref:yn,className:Ee()(Lr,"".concat(Lr,"-virtual")),height:sn,itemHeight:xn||24,data:_n,itemKey:function(Xn){return Rt(Xn.record)},scrollWidth:cn,onVirtualScroll:function(Xn){var Gn=Xn.x;yt({scrollLeft:Gn})},extraRender:or},function(Hn,Xn,Gn){var jn=Rt(Hn.record,Xn);return ne.createElement(mo,(0,ae.Z)({data:Hn,rowKey:jn,index:Xn},Gn))}):Rr=ne.createElement("div",{className:Ee()("".concat(zt,"-placeholder"))},ne.createElement(ut,{component:"div",prefixCls:zt},Ut)),ne.createElement(Po.Provider,{value:Vn},Rr)}),bo=te(zr),to=bo,lo=function(it,gt){var yt=gt.ref,Pt=gt.onScroll;return ne.createElement(to,{ref:yt,data:it,onScroll:Pt})},vo=100;function dr(nt){var it=nt.columns,gt=nt.scroll,yt=nt.prefixCls,Pt=yt===void 0?Kr:yt,wt=nt.className,It=nt.listItemHeight,Rt=gt||{},At=Rt.x,zt=Rt.y;typeof At!="number"&&(At=((it||[]).length+1)*vo),typeof zt!="number"&&(zt=500);var Zt=ne.useMemo(function(){return{scrollY:zt,listItemHeight:It}},[zt,It]);return ne.createElement(Cr.Provider,{value:Zt},ne.createElement(Yn,(0,ae.Z)({},nt,{className:Ee()(wt,"".concat(Pt,"-virtual")),scroll:(0,Pe.Z)((0,Pe.Z)({},gt),{},{x:At}),components:{body:lo},columns:it,internalHooks:_e,tailor:!0})))}function wr(nt){return z(dr,nt)}var Er=wr(),xr=null;function ao(nt){return null}var To=ao;function wo(nt){return null}var Lo=wo,Yo=ve(2738),Mo=ve(68031),$r=ve(36355),no=ve(93891),zo=ve(19716),Tt=ve(8628),Gt=ve(31724),on=ve(58421),ln=ve(71418),Qt=ve(88088);function Yt(nt){return function(gt){let{prefixCls:yt,onExpand:Pt,record:wt,expanded:It,expandable:Rt}=gt;const At=`${yt}-row-expand-icon`;return ne.createElement("button",{type:"button",onClick:zt=>{Pt(wt,zt),zt.stopPropagation()},className:Ee()(At,{[`${At}-spaced`]:!Rt,[`${At}-expanded`]:Rt&&It,[`${At}-collapsed`]:Rt&&!It}),"aria-label":It?nt.collapse:nt.expand,"aria-expanded":It})}}var qt=Yt;function an(nt,it){return"key"in nt&&nt.key!==void 0&&nt.key!==null?nt.key:nt.dataIndex?Array.isArray(nt.dataIndex)?nt.dataIndex.join("."):nt.dataIndex:it}function hn(nt,it){return it?`${it}-${nt}`:`${nt}`}function An(nt,it){return typeof nt=="function"?nt(it):nt}function mn(nt,it){const gt=An(nt,it);return Object.prototype.toString.call(gt)==="[object Object]"?"":gt}var _r={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"},Kn=_r,Jr=ve(7657),sr=function(it,gt){return ne.createElement(Jr.Z,(0,ae.Z)({},it,{ref:gt,icon:Kn}))},kn=ne.forwardRef(sr),hr=kn,Sr=ve(56762);function Dn(nt){const it=ne.useRef(nt),gt=(0,Sr.Z)();return[()=>it.current,yt=>{it.current=yt,gt()}]}var Or=ve(3113),Gr=ve(24905),Tr=ve(38854),pr=ve(64165),Br=ve(20834),co=ve(40875),ho=ve(5112),Uo=ve(17574),yo=ve(47472),Ho=ve(92832);function sa(nt){let{value:it,onChange:gt,filterSearch:yt,tablePrefixCls:Pt,locale:wt}=nt;return yt?ne.createElement("div",{className:`${Pt}-filter-dropdown-search`},ne.createElement(Ho.default,{prefix:ne.createElement(yo.Z,null),placeholder:wt.filterSearchPlaceholder,onChange:gt,value:it,htmlSize:1,className:`${Pt}-filter-dropdown-search-input`})):null}var xo=sa,ja=ve(10228);const Fa=nt=>{const{keyCode:it}=nt;it===ja.Z.ENTER&&nt.stopPropagation()};var Na=ne.forwardRef((nt,it)=>ne.createElement("div",{className:nt.className,onClick:gt=>gt.stopPropagation(),onKeyDown:Fa,ref:it},nt.children));function No(nt){let it=[];return(nt||[]).forEach(gt=>{let{value:yt,children:Pt}=gt;it.push(yt),Pt&&(it=[].concat((0,fn.Z)(it),(0,fn.Z)(No(Pt))))}),it}function Ar(nt){return nt.some(it=>{let{children:gt}=it;return gt})}function Wr(nt,it){return typeof it=="string"||typeof it=="number"?it==null?void 0:it.toString().toLowerCase().includes(nt.trim().toLowerCase()):!1}function Jo(nt){let{filters:it,prefixCls:gt,filteredKeys:yt,filterMultiple:Pt,searchValue:wt,filterSearch:It}=nt;return it.map((Rt,At)=>{const zt=String(Rt.value);if(Rt.children)return{key:zt||At,label:Rt.text,popupClassName:`${gt}-dropdown-submenu`,children:Jo({filters:Rt.children,prefixCls:gt,filteredKeys:yt,filterMultiple:Pt,searchValue:wt,filterSearch:It})};const Zt=Pt?Gr.default:ho.ZP,Ut={key:Rt.value!==void 0?zt:At,label:ne.createElement(ne.Fragment,null,ne.createElement(Zt,{checked:yt.includes(zt)}),ne.createElement("span",null,Rt.text))};return wt.trim()?typeof It=="function"?It(wt,Rt)?Ut:null:Wr(wt,Rt.text)?Ut:null:Ut})}function oa(nt){var it,gt;const{tablePrefixCls:yt,prefixCls:Pt,column:wt,dropdownPrefixCls:It,columnKey:Rt,filterMultiple:At,filterMode:zt="menu",filterSearch:Zt=!1,filterState:Ut,triggerFilter:cn,locale:nn,children:sn,getPopupContainer:xn}=nt,{filterDropdownOpen:yn,onFilterDropdownOpenChange:_n,filterResetToDefaultFilteredValue:bn,defaultFilteredValue:Fn,filterDropdownVisible:er,onFilterDropdownVisibleChange:or}=wt,[Vn,Lr]=ne.useState(!1),Rr=!!(Ut&&(!((it=Ut.filteredKeys)===null||it===void 0)&&it.length||Ut.forceFiltered)),Hn=Qn=>{Lr(Qn),_n==null||_n(Qn),or==null||or(Qn)},Xn=(gt=yn!=null?yn:er)!==null&>!==void 0?gt:Vn,Gn=Ut==null?void 0:Ut.filteredKeys,[jn,$n]=Dn(Gn||[]),br=Qn=>{let{selectedKeys:Dr}=Qn;$n(Dr)},Ur=(Qn,Dr)=>{let{node:Qr,checked:Yr}=Dr;br(At?{selectedKeys:Qn}:{selectedKeys:Yr&&Qr.key?[Qr.key]:[]})};ne.useEffect(()=>{Vn&&br({selectedKeys:Gn||[]})},[Gn]);const[Ir,lr]=ne.useState([]),Hr=Qn=>{lr(Qn)},[Vr,So]=ne.useState(""),eo=Qn=>{const{value:Dr}=Qn.target;So(Dr)};ne.useEffect(()=>{Vn||So("")},[Vn]);const Bo=Qn=>{const Dr=Qn&&Qn.length?Qn:null;if(Dr===null&&(!Ut||!Ut.filteredKeys)||(0,se.Z)(Dr,Ut==null?void 0:Ut.filteredKeys,!0))return null;cn({column:wt,key:Rt,filteredKeys:Dr})},Fo=()=>{Hn(!1),Bo(jn())},Mr=function(){let{confirm:Qn,closeDropdown:Dr}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};Qn&&Bo([]),Dr&&Hn(!1),So(""),$n(bn?(Fn||[]).map(Qr=>String(Qr)):[])},Wo=function(){let{closeDropdown:Qn}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};Qn&&Hn(!1),Bo(jn())},ro=Qn=>{Qn&&Gn!==void 0&&$n(Gn||[]),Hn(Qn),!Qn&&!wt.filterDropdown&&Fo()},_o=Ee()({[`${It}-menu-without-submenu`]:!Ar(wt.filters||[])}),Eo=Qn=>{if(Qn.target.checked){const Dr=No(wt==null?void 0:wt.filters).map(Qr=>String(Qr));$n(Dr)}else $n([])},la=Qn=>{let{filters:Dr}=Qn;return(Dr||[]).map((Qr,Yr)=>{const ta=String(Qr.value),Qo={title:Qr.text,key:Qr.value!==void 0?ta:Yr};return Qr.children&&(Qo.children=la({filters:Qr.children})),Qo})},mr=Qn=>{var Dr;return Object.assign(Object.assign({},Qn),{text:Qn.title,value:Qn.key,children:((Dr=Qn.children)===null||Dr===void 0?void 0:Dr.map(Qr=>mr(Qr)))||[]})};let fr;if(typeof wt.filterDropdown=="function")fr=wt.filterDropdown({prefixCls:`${It}-custom`,setSelectedKeys:Qn=>br({selectedKeys:Qn}),selectedKeys:jn(),confirm:Wo,clearFilters:Mr,filters:wt.filters,visible:Xn,close:()=>{Hn(!1)}});else if(wt.filterDropdown)fr=wt.filterDropdown;else{const Qn=jn()||[],Dr=()=>(wt.filters||[]).length===0?ne.createElement(pr.Z,{image:pr.Z.PRESENTED_IMAGE_SIMPLE,description:nn.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):zt==="tree"?ne.createElement(ne.Fragment,null,ne.createElement(xo,{filterSearch:Zt,value:Vr,onChange:eo,tablePrefixCls:yt,locale:nn}),ne.createElement("div",{className:`${yt}-filter-dropdown-tree`},At?ne.createElement(Gr.default,{checked:Qn.length===No(wt.filters).length,indeterminate:Qn.length>0&&Qn.lengthtypeof Zt=="function"?Zt(Vr,mr(Yr)):Wr(Vr,Yr.title):void 0}))):ne.createElement(ne.Fragment,null,ne.createElement(xo,{filterSearch:Zt,value:Vr,onChange:eo,tablePrefixCls:yt,locale:nn}),ne.createElement(Br.default,{selectable:!0,multiple:At,prefixCls:`${It}-menu`,className:_o,onSelect:br,onDeselect:br,selectedKeys:Qn,getPopupContainer:xn,openKeys:Ir,onOpenChange:Hr,items:Jo({filters:wt.filters||[],filterSearch:Zt,prefixCls:Pt,filteredKeys:jn(),filterMultiple:At,searchValue:Vr})})),Qr=()=>bn?(0,se.Z)((Fn||[]).map(Yr=>String(Yr)),Qn,!0):Qn.length===0;fr=ne.createElement(ne.Fragment,null,Dr(),ne.createElement("div",{className:`${Pt}-dropdown-btns`},ne.createElement(Or.ZP,{type:"link",size:"small",disabled:Qr(),onClick:()=>Mr()},nn.filterReset),ne.createElement(Or.ZP,{type:"primary",size:"small",onClick:Fo},nn.filterConfirm)))}wt.filterDropdown&&(fr=ne.createElement(co.J,{selectable:void 0},fr));const cr=()=>ne.createElement(Na,{className:`${Pt}-dropdown`},fr);let Jn;typeof wt.filterIcon=="function"?Jn=wt.filterIcon(Rr):wt.filterIcon?Jn=wt.filterIcon:Jn=ne.createElement(hr,null);const{direction:oo}=ne.useContext($r.E_);return ne.createElement("div",{className:`${Pt}-column`},ne.createElement("span",{className:`${yt}-column-title`},sn),ne.createElement(Tr.Z,{dropdownRender:cr,trigger:["click"],open:Xn,onOpenChange:ro,getPopupContainer:xn,placement:oo==="rtl"?"bottomLeft":"bottomRight"},ne.createElement("span",{role:"button",tabIndex:-1,className:Ee()(`${Pt}-trigger`,{active:Rr}),onClick:Qn=>{Qn.stopPropagation()}},Jn)))}var ka=oa;function za(nt,it,gt){let yt=[];return(nt||[]).forEach((Pt,wt)=>{var It;const Rt=hn(wt,gt);if(Pt.filters||"filterDropdown"in Pt||"onFilter"in Pt)if("filteredValue"in Pt){let At=Pt.filteredValue;"filterDropdown"in Pt||(At=(It=At==null?void 0:At.map(String))!==null&&It!==void 0?It:At),yt.push({column:Pt,key:an(Pt,Rt),filteredKeys:At,forceFiltered:Pt.filtered})}else yt.push({column:Pt,key:an(Pt,Rt),filteredKeys:it&&Pt.defaultFilteredValue?Pt.defaultFilteredValue:void 0,forceFiltered:Pt.filtered});"children"in Pt&&(yt=[].concat((0,fn.Z)(yt),(0,fn.Z)(za(Pt.children,it,Rt))))}),yt}function Ka(nt,it,gt,yt,Pt,wt,It,Rt){return gt.map((At,zt)=>{const Zt=hn(zt,Rt),{filterMultiple:Ut=!0,filterMode:cn,filterSearch:nn}=At;let sn=At;if(sn.filters||sn.filterDropdown){const xn=an(sn,Zt),yn=yt.find(_n=>{let{key:bn}=_n;return xn===bn});sn=Object.assign(Object.assign({},sn),{title:_n=>ne.createElement(ka,{tablePrefixCls:nt,prefixCls:`${nt}-filter`,dropdownPrefixCls:it,column:sn,columnKey:xn,filterState:yn,filterMultiple:Ut,filterMode:cn,filterSearch:nn,triggerFilter:wt,locale:Pt,getPopupContainer:It},An(At.title,_n))})}return"children"in sn&&(sn=Object.assign(Object.assign({},sn),{children:Ka(nt,it,sn.children,yt,Pt,wt,It,Zt)})),sn})}function ti(nt){const it={};return nt.forEach(gt=>{let{key:yt,filteredKeys:Pt,column:wt}=gt;const{filters:It,filterDropdown:Rt}=wt;if(Rt)it[yt]=Pt||null;else if(Array.isArray(Pt)){const At=No(It);it[yt]=At.filter(zt=>Pt.includes(String(zt)))}else it[yt]=null}),it}function ni(nt,it){return it.reduce((gt,yt)=>{const{column:{onFilter:Pt,filters:wt},filteredKeys:It}=yt;return Pt&&It&&It.length?gt.filter(Rt=>It.some(At=>{const zt=No(wt),Zt=zt.findIndex(cn=>String(cn)===String(At)),Ut=Zt!==-1?zt[Zt]:At;return Pt(Ut,Rt)})):gt},nt)}const ri=nt=>nt.flatMap(it=>"children"in it?[it].concat((0,fn.Z)(ri(it.children||[]))):[it]);function Ua(nt){let{prefixCls:it,dropdownPrefixCls:gt,mergedColumns:yt,onFilterChange:Pt,getPopupContainer:wt,locale:It}=nt;const Rt=ne.useMemo(()=>ri(yt||[]),[yt]),[At,zt]=ne.useState(()=>za(Rt,!0)),Zt=ne.useMemo(()=>{const sn=za(Rt,!1);if(sn.length===0)return sn;let xn=!0,yn=!0;if(sn.forEach(_n=>{let{filteredKeys:bn}=_n;bn!==void 0?xn=!1:yn=!1}),xn){const _n=(Rt||[]).map((bn,Fn)=>an(bn,hn(Fn)));return At.filter(bn=>{let{key:Fn}=bn;return _n.includes(Fn)}).map(bn=>{const Fn=Rt[_n.findIndex(er=>er===bn.key)];return Object.assign(Object.assign({},bn),{column:Object.assign(Object.assign({},bn.column),Fn),forceFiltered:Fn.filtered})})}return sn},[Rt,At]),Ut=ne.useMemo(()=>ti(Zt),[Zt]),cn=sn=>{const xn=Zt.filter(yn=>{let{key:_n}=yn;return _n!==sn.key});xn.push(sn),zt(xn),Pt(ti(xn),xn)};return[sn=>Ka(it,gt,sn,Zt,It,cn,wt),Zt,Ut]}var fi=Ua;function gi(nt,it,gt){const yt=ne.useRef({});function Pt(wt){if(!yt.current||yt.current.data!==nt||yt.current.childrenColumnName!==it||yt.current.getRowKey!==gt){let Rt=function(At){At.forEach((zt,Zt)=>{const Ut=gt(zt,Zt);It.set(Ut,zt),zt&&typeof zt=="object"&&it in zt&&Rt(zt[it]||[])})};const It=new Map;Rt(nt),yt.current={data:nt,childrenColumnName:it,kvMap:It,getRowKey:gt}}return yt.current.kvMap.get(wt)}return[Pt]}var Ha=ve(50371),oi=function(nt,it){var gt={};for(var yt in nt)Object.prototype.hasOwnProperty.call(nt,yt)&&it.indexOf(yt)<0&&(gt[yt]=nt[yt]);if(nt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pt=0,yt=Object.getOwnPropertySymbols(nt);Pt{const wt=nt[Pt];typeof wt!="function"&&(gt[Pt]=wt)}),gt}function hi(nt,it,gt){const yt=gt&&typeof gt=="object"?gt:{},{total:Pt=0}=yt,wt=oi(yt,["total"]),[It,Rt]=(0,ne.useState)(()=>({current:"defaultCurrent"in wt?wt.defaultCurrent:1,pageSize:"defaultPageSize"in wt?wt.defaultPageSize:$a})),At=(0,Ha.Z)(It,wt,{total:Pt>0?Pt:nt}),zt=Math.ceil((Pt||nt)/At.pageSize);At.current>zt&&(At.current=zt||1);const Zt=(cn,nn)=>{Rt({current:cn!=null?cn:1,pageSize:nn||At.pageSize})},Ut=(cn,nn)=>{var sn;gt&&((sn=gt.onChange)===null||sn===void 0||sn.call(gt,cn,nn)),Zt(cn,nn),it(cn,nn||(At==null?void 0:At.pageSize))};return gt===!1?[{},()=>{}]:[Object.assign(Object.assign({},At),{onChange:Ut}),Zt]}var pi=hi,mi=ve(84105),ai=ve(35654),Xa=ve(90782),vi=ve(71430),yi=ve(18929);const Ca={},Ya="SELECT_ALL",Ja="SELECT_INVERT",ar="SELECT_NONE",Zr=[],ea=(nt,it)=>{let gt=[];return(it||[]).forEach(yt=>{gt.push(yt),yt&&typeof yt=="object"&&nt in yt&&(gt=[].concat((0,fn.Z)(gt),(0,fn.Z)(ea(nt,yt[nt]))))}),gt};var Ia=(nt,it)=>{const{preserveSelectedRowKeys:gt,selectedRowKeys:yt,defaultSelectedRowKeys:Pt,getCheckboxProps:wt,onChange:It,onSelect:Rt,onSelectAll:At,onSelectInvert:zt,onSelectNone:Zt,onSelectMultiple:Ut,columnWidth:cn,type:nn,selections:sn,fixed:xn,renderCell:yn,hideSelectAll:_n,checkStrictly:bn=!0}=it||{},{prefixCls:Fn,data:er,pageData:or,getRecordByKey:Vn,getRowKey:Lr,expandType:Rr,childrenColumnName:Hn,locale:Xn,getPopupContainer:Gn}=nt,[jn,$n]=(0,yi.Z)(yt||Pt||Zr,{value:yt}),br=ne.useRef(new Map),Ur=(0,ne.useCallback)(mr=>{if(gt){const fr=new Map;mr.forEach(cr=>{let Jn=Vn(cr);!Jn&&br.current.has(cr)&&(Jn=br.current.get(cr)),fr.set(cr,Jn)}),br.current=fr}},[Vn,gt]);ne.useEffect(()=>{Ur(jn)},[jn]);const{keyEntities:Ir}=(0,ne.useMemo)(()=>{if(bn)return{keyEntities:null};let mr=er;if(gt){const fr=new Set(er.map((Jn,oo)=>Lr(Jn,oo))),cr=Array.from(br.current).reduce((Jn,oo)=>{let[Qn,Dr]=oo;return fr.has(Qn)?Jn:Jn.concat(Dr)},[]);mr=[].concat((0,fn.Z)(mr),(0,fn.Z)(cr))}return(0,vi.I8)(mr,{externalGetKey:Lr,childrenPropName:Hn})},[er,Lr,bn,Hn,gt]),lr=(0,ne.useMemo)(()=>ea(Hn,or),[Hn,or]),Hr=(0,ne.useMemo)(()=>{const mr=new Map;return lr.forEach((fr,cr)=>{const Jn=Lr(fr,cr),oo=(wt?wt(fr):null)||{};mr.set(Jn,oo)}),mr},[lr,Lr,wt]),Vr=(0,ne.useCallback)(mr=>{var fr;return!!(!((fr=Hr.get(Lr(mr)))===null||fr===void 0)&&fr.disabled)},[Hr,Lr]),[So,eo]=(0,ne.useMemo)(()=>{if(bn)return[jn||[],[]];const{checkedKeys:mr,halfCheckedKeys:fr}=(0,Xa.S)(jn,!0,Ir,Vr);return[mr||[],fr]},[jn,bn,Ir,Vr]),Bo=(0,ne.useMemo)(()=>{const mr=nn==="radio"?So.slice(0,1):So;return new Set(mr)},[So,nn]),Fo=(0,ne.useMemo)(()=>nn==="radio"?new Set:new Set(eo),[eo,nn]),[Mr,Wo]=(0,ne.useState)(null);ne.useEffect(()=>{it||$n(Zr)},[!!it]);const ro=(0,ne.useCallback)((mr,fr)=>{let cr,Jn;Ur(mr),gt?(cr=mr,Jn=mr.map(oo=>br.current.get(oo))):(cr=[],Jn=[],mr.forEach(oo=>{const Qn=Vn(oo);Qn!==void 0&&(cr.push(oo),Jn.push(Qn))})),$n(cr),It==null||It(cr,Jn,{type:fr})},[$n,Vn,It,gt]),_o=(0,ne.useCallback)((mr,fr,cr,Jn)=>{if(Rt){const oo=cr.map(Qn=>Vn(Qn));Rt(Vn(mr),fr,oo,Jn)}ro(cr,"single")},[Rt,Vn,ro]),Eo=(0,ne.useMemo)(()=>!sn||_n?null:(sn===!0?[Ya,Ja,ar]:sn).map(fr=>fr===Ya?{key:"all",text:Xn.selectionAll,onSelect(){ro(er.map((cr,Jn)=>Lr(cr,Jn)).filter(cr=>{const Jn=Hr.get(cr);return!(Jn!=null&&Jn.disabled)||Bo.has(cr)}),"all")}}:fr===Ja?{key:"invert",text:Xn.selectInvert,onSelect(){const cr=new Set(Bo);or.forEach((oo,Qn)=>{const Dr=Lr(oo,Qn),Qr=Hr.get(Dr);Qr!=null&&Qr.disabled||(cr.has(Dr)?cr.delete(Dr):cr.add(Dr))});const Jn=Array.from(cr);zt&&zt(Jn),ro(Jn,"invert")}}:fr===ar?{key:"none",text:Xn.selectNone,onSelect(){Zt==null||Zt(),ro(Array.from(Bo).filter(cr=>{const Jn=Hr.get(cr);return Jn==null?void 0:Jn.disabled}),"none")}}:fr).map(fr=>Object.assign(Object.assign({},fr),{onSelect:function(){for(var cr,Jn,oo=arguments.length,Qn=new Array(oo),Dr=0;Dr{var fr;if(!it)return mr.filter(so=>so!==Ca);let cr=(0,fn.Z)(mr);const Jn=new Set(Bo),oo=lr.map(Lr).filter(so=>!Hr.get(so).disabled),Qn=oo.every(so=>Jn.has(so)),Dr=oo.some(so=>Jn.has(so)),Qr=()=>{const so=[];Qn?oo.forEach(Ao=>{Jn.delete(Ao),so.push(Ao)}):oo.forEach(Ao=>{Jn.has(Ao)||(Jn.add(Ao),so.push(Ao))});const uo=Array.from(Jn);At==null||At(!Qn,uo.map(Ao=>Vn(Ao)),so.map(Ao=>Vn(Ao))),ro(uo,"all"),Wo(null)};let Yr;if(nn!=="radio"){let so;if(Eo){const Xr={getPopupContainer:Gn,items:Eo.map((aa,na)=>{const{key:pa,text:xa,onSelect:Pa}=aa;return{key:pa!=null?pa:na,onClick:()=>{Pa==null||Pa(oo)},label:xa}})};so=ne.createElement("div",{className:`${Fn}-selection-extra`},ne.createElement(Tr.Z,{menu:Xr,getPopupContainer:Gn},ne.createElement("span",null,ne.createElement(mi.Z,null))))}const uo=lr.map((Xr,aa)=>{const na=Lr(Xr,aa),pa=Hr.get(na)||{};return Object.assign({checked:Jn.has(na)},pa)}).filter(Xr=>{let{disabled:aa}=Xr;return aa}),Ao=!!uo.length&&uo.length===lr.length,$o=Ao&&uo.every(Xr=>{let{checked:aa}=Xr;return aa}),Vo=Ao&&uo.some(Xr=>{let{checked:aa}=Xr;return aa});Yr=!_n&&ne.createElement("div",{className:`${Fn}-selection`},ne.createElement(Gr.default,{checked:Ao?$o:!!lr.length&&Qn,indeterminate:Ao?!$o&&Vo:!Qn&&Dr,onChange:Qr,disabled:lr.length===0||Ao,"aria-label":so?"Custom selection":"Select all",skipGroup:!0}),so)}let ta;nn==="radio"?ta=(so,uo,Ao)=>{const $o=Lr(uo,Ao),Vo=Jn.has($o);return{node:ne.createElement(ho.ZP,Object.assign({},Hr.get($o),{checked:Vo,onClick:Xr=>Xr.stopPropagation(),onChange:Xr=>{Jn.has($o)||_o($o,!0,[$o],Xr.nativeEvent)}})),checked:Vo}}:ta=(so,uo,Ao)=>{var $o;const Vo=Lr(uo,Ao),Xr=Jn.has(Vo),aa=Fo.has(Vo),na=Hr.get(Vo);let pa;return Rr==="nest"?pa=aa:pa=($o=na==null?void 0:na.indeterminate)!==null&&$o!==void 0?$o:aa,{node:ne.createElement(Gr.default,Object.assign({},na,{indeterminate:pa,checked:Xr,skipGroup:!0,onClick:xa=>xa.stopPropagation(),onChange:xa=>{let{nativeEvent:Pa}=xa;const{shiftKey:ei}=Pa;let Aa=-1,ya=-1;if(ei&&bn){const ua=new Set([Mr,Vo]);oo.some((ia,Xo)=>{if(ua.has(ia))if(Aa===-1)Aa=Xo;else return ya=Xo,!0;return!1})}if(ya!==-1&&Aa!==ya&&bn){const ua=oo.slice(Aa,ya+1),ia=[];Xr?ua.forEach(Do=>{Jn.has(Do)&&(ia.push(Do),Jn.delete(Do))}):ua.forEach(Do=>{Jn.has(Do)||(ia.push(Do),Jn.add(Do))});const Xo=Array.from(Jn);Ut==null||Ut(!Xr,Xo.map(Do=>Vn(Do)),ia.map(Do=>Vn(Do))),ro(Xo,"multiple")}else{const ua=So;if(bn){const ia=Xr?(0,ai._5)(ua,Vo):(0,ai.L0)(ua,Vo);_o(Vo,!Xr,ia,Pa)}else{const ia=(0,Xa.S)([].concat((0,fn.Z)(ua),[Vo]),!0,Ir,Vr),{checkedKeys:Xo,halfCheckedKeys:Do}=ia;let _a=Xo;if(Xr){const Wa=new Set(Xo);Wa.delete(Vo),_a=(0,Xa.S)(Array.from(Wa),{checked:!1,halfCheckedKeys:Do},Ir,Vr).checkedKeys}_o(Vo,!Xr,_a,Pa)}}Wo(Xr?null:Vo)}})),checked:Xr}};const Qo=(so,uo,Ao)=>{const{node:$o,checked:Vo}=ta(so,uo,Ao);return yn?yn(Vo,uo,Ao,$o):$o};if(!cr.includes(Ca))if(cr.findIndex(so=>{var uo;return((uo=so[dn])===null||uo===void 0?void 0:uo.columnType)==="EXPAND_COLUMN"})===0){const[so,...uo]=cr;cr=[so,Ca].concat((0,fn.Z)(uo))}else cr=[Ca].concat((0,fn.Z)(cr));const ba=cr.indexOf(Ca);cr=cr.filter((so,uo)=>so!==Ca||uo===ba);const Zo=cr[ba-1],va=cr[ba+1];let Ko=xn;Ko===void 0&&((va==null?void 0:va.fixed)!==void 0?Ko=va.fixed:(Zo==null?void 0:Zo.fixed)!==void 0&&(Ko=Zo.fixed)),Ko&&Zo&&((fr=Zo[dn])===null||fr===void 0?void 0:fr.columnType)==="EXPAND_COLUMN"&&Zo.fixed===void 0&&(Zo.fixed=Ko);const ca=Ee()(`${Fn}-selection-col`,{[`${Fn}-selection-col-with-dropdown`]:sn&&nn==="checkbox"}),Ga={fixed:Ko,width:cn,className:`${Fn}-selection-column`,title:it.columnTitle||Yr,render:Qo,onCell:it.onCell,[dn]:{className:ca}};return cr.map(so=>so===Ca?Ga:so)},[Lr,lr,it,So,Bo,Fo,cn,Eo,Rr,Mr,Hr,Ut,_o,Vr]),Bo]},Ta=ve(89489),ha=ve(59477),Go=ve(6848);const ma="ascend",Qa="descend";function Ea(nt){return typeof nt.sorter=="object"&&typeof nt.sorter.multiple=="number"?nt.sorter.multiple:!1}function ii(nt){return typeof nt=="function"?nt:nt&&typeof nt=="object"&&nt.compare?nt.compare:!1}function qi(nt,it){return it?nt[nt.indexOf(it)+1]:nt[0]}function Si(nt,it,gt){let yt=[];function Pt(wt,It){yt.push({column:wt,key:an(wt,It),multiplePriority:Ea(wt),sortOrder:wt.sortOrder})}return(nt||[]).forEach((wt,It)=>{const Rt=hn(It,gt);wt.children?("sortOrder"in wt&&Pt(wt,Rt),yt=[].concat((0,fn.Z)(yt),(0,fn.Z)(Si(wt.children,it,Rt)))):wt.sorter&&("sortOrder"in wt?Pt(wt,Rt):it&&wt.defaultSortOrder&&yt.push({column:wt,key:an(wt,Rt),multiplePriority:Ea(wt),sortOrder:wt.defaultSortOrder}))}),yt}function Ai(nt,it,gt,yt,Pt,wt,It,Rt){return(it||[]).map((At,zt)=>{const Zt=hn(zt,Rt);let Ut=At;if(Ut.sorter){const cn=Ut.sortDirections||Pt,nn=Ut.showSorterTooltip===void 0?It:Ut.showSorterTooltip,sn=an(Ut,Zt),xn=gt.find(Rr=>{let{key:Hn}=Rr;return Hn===sn}),yn=xn?xn.sortOrder:null,_n=qi(cn,yn);let bn;if(At.sortIcon)bn=At.sortIcon({sortOrder:yn});else{const Rr=cn.includes(ma)&&ne.createElement(ha.Z,{className:Ee()(`${nt}-column-sorter-up`,{active:yn===ma})}),Hn=cn.includes(Qa)&&ne.createElement(Ta.Z,{className:Ee()(`${nt}-column-sorter-down`,{active:yn===Qa})});bn=ne.createElement("span",{className:Ee()(`${nt}-column-sorter`,{[`${nt}-column-sorter-full`]:!!(Rr&&Hn)})},ne.createElement("span",{className:`${nt}-column-sorter-inner`,"aria-hidden":"true"},Rr,Hn))}const{cancelSort:Fn,triggerAsc:er,triggerDesc:or}=wt||{};let Vn=Fn;_n===Qa?Vn=or:_n===ma&&(Vn=er);const Lr=typeof nn=="object"?nn:{title:Vn};Ut=Object.assign(Object.assign({},Ut),{className:Ee()(Ut.className,{[`${nt}-column-sort`]:yn}),title:Rr=>{const Hn=ne.createElement("div",{className:`${nt}-column-sorters`},ne.createElement("span",{className:`${nt}-column-title`},An(At.title,Rr)),bn);return nn?ne.createElement(Go.Z,Object.assign({},Lr),Hn):Hn},onHeaderCell:Rr=>{const Hn=At.onHeaderCell&&At.onHeaderCell(Rr)||{},Xn=Hn.onClick,Gn=Hn.onKeyDown;Hn.onClick=br=>{yt({column:At,key:sn,sortOrder:_n,multiplePriority:Ea(At)}),Xn==null||Xn(br)},Hn.onKeyDown=br=>{br.keyCode===ja.Z.ENTER&&(yt({column:At,key:sn,sortOrder:_n,multiplePriority:Ea(At)}),Gn==null||Gn(br))};const jn=mn(At.title,{}),$n=jn==null?void 0:jn.toString();return yn?Hn["aria-sort"]=yn==="ascend"?"ascending":"descending":Hn["aria-label"]=$n||"",Hn.className=Ee()(Hn.className,`${nt}-column-has-sorters`),Hn.tabIndex=0,At.ellipsis&&(Hn.title=(jn!=null?jn:"").toString()),Hn}})}return"children"in Ut&&(Ut=Object.assign(Object.assign({},Ut),{children:Ai(nt,Ut.children,gt,yt,Pt,wt,It,Zt)})),Ut})}function Di(nt){const{column:it,sortOrder:gt}=nt;return{column:it,order:gt,field:it.dataIndex,columnKey:it.key}}function ji(nt){const it=nt.filter(gt=>{let{sortOrder:yt}=gt;return yt}).map(Di);return it.length===0&&nt.length?Object.assign(Object.assign({},Di(nt[nt.length-1])),{column:void 0}):it.length<=1?it[0]||{}:it}function bi(nt,it,gt){const yt=it.slice().sort((It,Rt)=>Rt.multiplePriority-It.multiplePriority),Pt=nt.slice(),wt=yt.filter(It=>{let{column:{sorter:Rt},sortOrder:At}=It;return ii(Rt)&&At});return wt.length?Pt.sort((It,Rt)=>{for(let At=0;At{const Rt=It[gt];return Rt?Object.assign(Object.assign({},It),{[gt]:bi(Rt,it,gt)}):It}):Pt}function es(nt){let{prefixCls:it,mergedColumns:gt,onSorterChange:yt,sortDirections:Pt,tableLocale:wt,showSorterTooltip:It}=nt;const[Rt,At]=ne.useState(Si(gt,!0)),zt=ne.useMemo(()=>{let sn=!0;const xn=Si(gt,!1);if(!xn.length)return Rt;const yn=[];function _n(Fn){sn?yn.push(Fn):yn.push(Object.assign(Object.assign({},Fn),{sortOrder:null}))}let bn=null;return xn.forEach(Fn=>{bn===null?(_n(Fn),Fn.sortOrder&&(Fn.multiplePriority===!1?sn=!1:bn=!0)):(bn&&Fn.multiplePriority!==!1||(sn=!1),_n(Fn))}),yn},[gt,Rt]),Zt=ne.useMemo(()=>{const sn=zt.map(xn=>{let{column:yn,sortOrder:_n}=xn;return{column:yn,order:_n}});return{sortColumns:sn,sortColumn:sn[0]&&sn[0].column,sortOrder:sn[0]&&sn[0].order}},[zt]);function Ut(sn){let xn;sn.multiplePriority===!1||!zt.length||zt[0].multiplePriority===!1?xn=[sn]:xn=[].concat((0,fn.Z)(zt.filter(yn=>{let{key:_n}=yn;return _n!==sn.key})),[sn]),At(xn),yt(ji(xn),xn)}return[sn=>Ai(it,sn,zt,Ut,Pt,wt,It),zt,Zt,()=>ji(zt)]}function Ii(nt,it){return nt.map(gt=>{const yt=Object.assign({},gt);return yt.title=An(gt.title,it),"children"in yt&&(yt.children=Ii(yt.children,it)),yt})}function ts(nt){return[ne.useCallback(gt=>Ii(gt,nt),[nt])]}var ns=yr((nt,it)=>{const{_renderTimes:gt}=nt,{_renderTimes:yt}=it;return gt!==yt}),rs=wr((nt,it)=>{const{_renderTimes:gt}=nt,{_renderTimes:yt}=it;return gt!==yt}),qa=ve(64993),si=ve(17313),os=ve(83116),as=ve(37613),is=nt=>{const{componentCls:it}=nt,gt=`${nt.lineWidth}px ${nt.lineType} ${nt.tableBorderColor}`,yt=(Pt,wt,It)=>({[`&${it}-${Pt}`]:{[`> ${it}-container`]:{[`> ${it}-content, > ${it}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${it}-expanded-row-fixed`]:{margin:`-${wt}px -${It+nt.lineWidth}px`}}}}}});return{[`${it}-wrapper`]:{[`${it}${it}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${it}-title`]:{border:gt,borderBottom:0},[`> ${it}-container`]:{borderInlineStart:gt,borderTop:gt,[` > ${it}-content, > ${it}-header, > ${it}-body, > ${it}-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:gt},"> thead":{"> tr:not(:last-child) > th":{borderBottom:gt},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${it}-cell-fix-right-first::after`]:{borderInlineEnd:gt}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${it}-expanded-row-fixed`]:{margin:`-${nt.tablePaddingVertical}px -${nt.tablePaddingHorizontal+nt.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:nt.lineWidth,bottom:0,borderInlineEnd:gt,content:'""'}}}}}},[`&${it}-scroll-horizontal`]:{[`> ${it}-container > ${it}-body`]:{"> table > tbody":{[` > tr${it}-expanded-row, > tr${it}-placeholder `]:{"> th, > td":{borderInlineEnd:0}}}}}},yt("middle",nt.tablePaddingVerticalMiddle,nt.tablePaddingHorizontalMiddle)),yt("small",nt.tablePaddingVerticalSmall,nt.tablePaddingHorizontalSmall)),{[`> ${it}-footer`]:{border:gt,borderTop:0}}),[`${it}-cell`]:{[`${it}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${nt.lineWidth}px 0 ${nt.lineWidth}px ${nt.tableHeaderBg}`}},[`${it}-bordered ${it}-cell-scrollbar`]:{borderInlineEnd:gt}}}},ss=nt=>{const{componentCls:it}=nt;return{[`${it}-wrapper`]:{[`${it}-cell-ellipsis`]:Object.assign(Object.assign({},si.vS),{wordBreak:"keep-all",[` &${it}-cell-fix-left-last, &${it}-cell-fix-right-first `]:{overflow:"visible",[`${it}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${it}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},ls=nt=>{const{componentCls:it}=nt;return{[`${it}-wrapper`]:{[`${it}-tbody > tr${it}-placeholder`]:{textAlign:"center",color:nt.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:nt.colorBgContainer}}}}},cs=ve(15969),us=nt=>{const{componentCls:it,antCls:gt,controlInteractiveSize:yt,motionDurationSlow:Pt,lineWidth:wt,paddingXS:It,lineType:Rt,tableBorderColor:At,tableExpandIconBg:zt,tableExpandColumnWidth:Zt,borderRadius:Ut,fontSize:cn,fontSizeSM:nn,lineHeight:sn,tablePaddingVertical:xn,tablePaddingHorizontal:yn,tableExpandedRowBg:_n,paddingXXS:bn}=nt,Fn=yt/2-wt,er=Fn*2+wt*3,or=`${wt}px ${Rt} ${At}`,Vn=bn-wt;return{[`${it}-wrapper`]:{[`${it}-expand-icon-col`]:{width:Zt},[`${it}-row-expand-icon-cell`]:{textAlign:"center",[`${it}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${it}-row-indent`]:{height:1,float:"left"},[`${it}-row-expand-icon`]:Object.assign(Object.assign({},(0,cs.N)(nt)),{position:"relative",float:"left",boxSizing:"border-box",width:er,height:er,padding:0,color:"inherit",lineHeight:`${er}px`,background:zt,border:or,borderRadius:Ut,transform:`scale(${yt/er})`,transition:`all ${Pt}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${Pt} ease-out`,content:'""'},"&::before":{top:Fn,insetInlineEnd:Vn,insetInlineStart:Vn,height:wt},"&::after":{top:Vn,bottom:Vn,insetInlineStart:Fn,width:wt,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"}}),[`${it}-row-indent + ${it}-row-expand-icon`]:{marginTop:(cn*sn-wt*3)/2-Math.ceil((nn*1.4-wt*3)/2),marginInlineEnd:It},[`tr${it}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:_n}},[`${gt}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${it}-expanded-row-fixed`]:{position:"relative",margin:`-${xn}px -${yn}px`,padding:`${xn}px ${yn}px`}}}},ds=nt=>{const{componentCls:it,antCls:gt,iconCls:yt,tableFilterDropdownWidth:Pt,tableFilterDropdownSearchWidth:wt,paddingXXS:It,paddingXS:Rt,colorText:At,lineWidth:zt,lineType:Zt,tableBorderColor:Ut,tableHeaderIconColor:cn,fontSizeSM:nn,tablePaddingHorizontal:sn,borderRadius:xn,motionDurationSlow:yn,colorTextDescription:_n,colorPrimary:bn,tableHeaderFilterActiveBg:Fn,colorTextDisabled:er,tableFilterDropdownBg:or,tableFilterDropdownHeight:Vn,controlItemBgHover:Lr,controlItemBgActive:Rr,boxShadowSecondary:Hn,filterDropdownMenuBg:Xn}=nt,Gn=`${gt}-dropdown`,jn=`${it}-filter-dropdown`,$n=`${gt}-tree`,br=`${zt}px ${Zt} ${Ut}`;return[{[`${it}-wrapper`]:{[`${it}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${it}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-It,marginInline:`${It}px ${-sn/2}px`,padding:`0 ${It}px`,color:cn,fontSize:nn,borderRadius:xn,cursor:"pointer",transition:`all ${yn}`,"&:hover":{color:_n,background:Fn},"&.active":{color:bn}}}},{[`${gt}-dropdown`]:{[jn]:Object.assign(Object.assign({},(0,si.Wf)(nt)),{minWidth:Pt,backgroundColor:or,borderRadius:xn,boxShadow:Hn,overflow:"hidden",[`${Gn}-menu`]:{maxHeight:Vn,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:Xn,"&:empty::after":{display:"block",padding:`${Rt}px 0`,color:er,fontSize:nn,textAlign:"center",content:'"Not Found"'}},[`${jn}-tree`]:{paddingBlock:`${Rt}px 0`,paddingInline:Rt,[$n]:{padding:0},[`${$n}-treenode ${$n}-node-content-wrapper:hover`]:{backgroundColor:Lr},[`${$n}-treenode-checkbox-checked ${$n}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:Rr}}},[`${jn}-search`]:{padding:Rt,borderBottom:br,"&-input":{input:{minWidth:wt},[yt]:{color:er}}},[`${jn}-checkall`]:{width:"100%",marginBottom:It,marginInlineStart:It},[`${jn}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${Rt-zt}px ${Rt}px`,overflow:"hidden",borderTop:br}})}},{[`${gt}-dropdown ${jn}, ${jn}-submenu`]:{[`${gt}-checkbox-wrapper + span`]:{paddingInlineStart:Rt,color:At},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},fs=nt=>{const{componentCls:it,lineWidth:gt,colorSplit:yt,motionDurationSlow:Pt,zIndexTableFixed:wt,tableBg:It,zIndexTableSticky:Rt}=nt,At=yt;return{[`${it}-wrapper`]:{[` ${it}-cell-fix-left, ${it}-cell-fix-right `]:{position:"sticky !important",zIndex:wt,background:It},[` ${it}-cell-fix-left-first::after, ${it}-cell-fix-left-last::after `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-gt,width:30,transform:"translateX(100%)",transition:`box-shadow ${Pt}`,content:'""',pointerEvents:"none"},[`${it}-cell-fix-left-all::after`]:{display:"none"},[` ${it}-cell-fix-right-first::after, ${it}-cell-fix-right-last::after `]:{position:"absolute",top:0,bottom:-gt,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${Pt}`,content:'""',pointerEvents:"none"},[`${it}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:Rt+1,width:30,transition:`box-shadow ${Pt}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${it}-ping-left`]:{[`&:not(${it}-has-fix-left) ${it}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${At}`}},[` ${it}-cell-fix-left-first::after, ${it}-cell-fix-left-last::after `]:{boxShadow:`inset 10px 0 8px -8px ${At}`},[`${it}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${it}-ping-right`]:{[`&:not(${it}-has-fix-right) ${it}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${At}`}},[` ${it}-cell-fix-right-first::after, ${it}-cell-fix-right-last::after `]:{boxShadow:`inset -10px 0 8px -8px ${At}`}}}}},gs=nt=>{const{componentCls:it,antCls:gt}=nt;return{[`${it}-wrapper`]:{[`${it}-pagination${gt}-pagination`]:{margin:`${nt.margin}px 0`},[`${it}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:nt.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},hs=nt=>{const{componentCls:it,tableRadius:gt}=nt;return{[`${it}-wrapper`]:{[it]:{[`${it}-title, ${it}-header`]:{borderRadius:`${gt}px ${gt}px 0 0`},[`${it}-title + ${it}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${it}-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:gt,borderStartEndRadius:gt,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:gt},"> *:last-child":{borderStartEndRadius:gt}}},"&-footer":{borderRadius:`0 0 ${gt}px ${gt}px`}}}}},ps=nt=>{const{componentCls:it}=nt;return{[`${it}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${it}-pagination-left`]:{justifyContent:"flex-end"},[`${it}-pagination-right`]:{justifyContent:"flex-start"},[`${it}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${it}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${it}-row-indent`]:{float:"right"}}}}},ms=nt=>{const{componentCls:it,antCls:gt,iconCls:yt,fontSizeIcon:Pt,padding:wt,paddingXS:It,tableHeaderIconColor:Rt,tableHeaderIconColorHover:At,tableSelectionColumnWidth:zt}=nt;return{[`${it}-wrapper`]:{[`${it}-selection-col`]:{width:zt,[`&${it}-selection-col-with-dropdown`]:{width:zt+Pt+wt/4}},[`${it}-bordered ${it}-selection-col`]:{width:zt+It*2,[`&${it}-selection-col-with-dropdown`]:{width:zt+Pt+wt/4+It*2}},[` table tr th${it}-selection-column, table tr td${it}-selection-column `]:{paddingInlineEnd:nt.paddingXS,paddingInlineStart:nt.paddingXS,textAlign:"center",[`${gt}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${it}-selection-column${it}-cell-fix-left`]:{zIndex:nt.zIndexTableFixed+1},[`table tr th${it}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${it}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${it}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${nt.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${nt.tablePaddingHorizontal/4}px`,[yt]:{color:Rt,fontSize:Pt,verticalAlign:"baseline","&:hover":{color:At}}}}}},vs=nt=>{const{componentCls:it}=nt,gt=(yt,Pt,wt,It)=>({[`${it}${it}-${yt}`]:{fontSize:It,[` ${it}-title, ${it}-footer, ${it}-cell, ${it}-thead > tr > th, ${it}-tbody > tr > th, ${it}-tbody > tr > td, tfoot > tr > th, tfoot > tr > td `]:{padding:`${Pt}px ${wt}px`},[`${it}-filter-trigger`]:{marginInlineEnd:`-${wt/2}px`},[`${it}-expanded-row-fixed`]:{margin:`-${Pt}px -${wt}px`},[`${it}-tbody`]:{[`${it}-wrapper:only-child ${it}`]:{marginBlock:`-${Pt}px`,marginInline:`${nt.tableExpandColumnWidth-wt}px -${wt}px`}},[`${it}-selection-column`]:{paddingInlineStart:`${wt/4}px`}}});return{[`${it}-wrapper`]:Object.assign(Object.assign({},gt("middle",nt.tablePaddingVerticalMiddle,nt.tablePaddingHorizontalMiddle,nt.tableFontSizeMiddle)),gt("small",nt.tablePaddingVerticalSmall,nt.tablePaddingHorizontalSmall,nt.tableFontSizeSmall))}},ys=nt=>{const{componentCls:it,marginXXS:gt,fontSizeIcon:yt,tableHeaderIconColor:Pt,tableHeaderIconColorHover:wt}=nt;return{[`${it}-wrapper`]:{[`${it}-thead th${it}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${nt.motionDurationSlow}`,"&:hover":{background:nt.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:nt.colorPrimary},[` &${it}-cell-fix-left:hover, &${it}-cell-fix-right:hover `]:{background:nt.tableFixedHeaderSortActiveBg}},[`${it}-thead th${it}-column-sort`]:{background:nt.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${it}-column-sort`]:{background:nt.tableBodySortBg},[`${it}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${it}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${it}-column-sorter`]:{marginInlineStart:gt,color:Pt,fontSize:0,transition:`color ${nt.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:yt,"&.active":{color:nt.colorPrimary}},[`${it}-column-sorter-up + ${it}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${it}-column-sorters:hover ${it}-column-sorter`]:{color:wt}}}},Ss=nt=>{const{componentCls:it,opacityLoading:gt,tableScrollThumbBg:yt,tableScrollThumbBgHover:Pt,tableScrollThumbSize:wt,tableScrollBg:It,zIndexTableSticky:Rt,stickyScrollBarBorderRadius:At}=nt,zt=`${nt.lineWidth}px ${nt.lineType} ${nt.tableBorderColor}`;return{[`${it}-wrapper`]:{[`${it}-sticky`]:{"&-holder":{position:"sticky",zIndex:Rt,background:nt.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${wt}px !important`,zIndex:Rt,display:"flex",alignItems:"center",background:It,borderTop:zt,opacity:gt,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:wt,backgroundColor:yt,borderRadius:At,transition:`all ${nt.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:Pt}}}}}}},Ri=nt=>{const{componentCls:it,lineWidth:gt,tableBorderColor:yt}=nt,Pt=`${gt}px ${nt.lineType} ${yt}`;return{[`${it}-wrapper`]:{[`${it}-summary`]:{position:"relative",zIndex:nt.zIndexTableFixed,background:nt.tableBg,"> tr":{"> th, > td":{borderBottom:Pt}}},[`div${it}-summary`]:{boxShadow:`0 -${gt}px 0 ${yt}`}}}},bs=nt=>{const{componentCls:it}=nt,gt=`${nt.lineWidth}px ${nt.lineType} ${nt.tableBorderColor}`,yt=`${it}-expanded-row-cell`;return{[`${it}-wrapper`]:{[`${it}-tbody-virtual`]:{[`${it}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${it}-cell`]:{borderBottom:gt},[`${it}-expanded-row`]:{[`${yt}${yt}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${nt.lineWidth}px)`,borderInlineEnd:"none"}}},[`${it}-bordered`]:{[`${it}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:gt,position:"absolute"},[`${it}-cell`]:{borderInlineEnd:gt,[`&${it}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-nt.lineWidth,borderInlineStart:gt}}}}}}};const Ps=nt=>{const{componentCls:it,fontWeightStrong:gt,tablePaddingVertical:yt,tablePaddingHorizontal:Pt,lineWidth:wt,lineType:It,tableBorderColor:Rt,tableFontSize:At,tableBg:zt,tableRadius:Zt,tableHeaderTextColor:Ut,motionDurationMid:cn,tableHeaderBg:nn,tableHeaderCellSplitColor:sn,tableRowHoverBg:xn,tableSelectedRowBg:yn,tableSelectedRowHoverBg:_n,tableFooterTextColor:bn,tableFooterBg:Fn,paddingContentVerticalLG:er}=nt,or=`${wt}px ${It} ${Rt}`;return{[`${it}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,si.dF)()),{[it]:Object.assign(Object.assign({},(0,si.Wf)(nt)),{fontSize:At,background:zt,borderRadius:`${Zt}px ${Zt}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${Zt}px ${Zt}px 0 0`,borderCollapse:"separate",borderSpacing:0},[` ${it}-cell, ${it}-thead > tr > th, ${it}-tbody > tr > th, ${it}-tbody > tr > td, tfoot > tr > th, tfoot > tr > td `]:{position:"relative",padding:`${er}px ${Pt}px`,overflowWrap:"break-word"},[`${it}-title`]:{padding:`${yt}px ${Pt}px`},[`${it}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:Ut,fontWeight:gt,textAlign:"start",background:nn,borderBottom:or,transition:`background ${cn} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${it}-selection-column):not(${it}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:sn,transform:"translateY(-50%)",transition:`background-color ${cn}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${it}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${cn}, border-color ${cn}`,borderBottom:or,[` > ${it}-wrapper:only-child, > ${it}-expanded-row-fixed > ${it}-wrapper:only-child `]:{[it]:{marginBlock:`-${yt}px`,marginInline:`${nt.tableExpandColumnWidth-Pt}px -${Pt}px`,[`${it}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:Ut,fontWeight:gt,textAlign:"start",background:nn,borderBottom:or,transition:`background ${cn} ease`},[` &${it}-row:hover > th, &${it}-row:hover > td, > th${it}-cell-row-hover, > td${it}-cell-row-hover `]:{background:xn},[`&${it}-row-selected`]:{"> th, > td":{background:yn},"&:hover > th, &:hover > td":{background:_n}}}},[`${it}-footer`]:{padding:`${yt}px ${Pt}px`,color:bn,background:Fn}})}};var ws=(0,os.Z)("Table",nt=>{const{colorTextHeading:it,colorSplit:gt,colorIcon:yt,colorIconHover:Pt,opacityLoading:wt,colorBgContainer:It,controlInteractiveSize:Rt,headerBg:At,headerColor:zt,headerSortActiveBg:Zt,headerSortHoverBg:Ut,bodySortBg:cn,rowHoverBg:nn,rowSelectedBg:sn,rowSelectedHoverBg:xn,rowExpandedBg:yn,cellPaddingBlock:_n,cellPaddingInline:bn,cellPaddingBlockMD:Fn,cellPaddingInlineMD:er,cellPaddingBlockSM:or,cellPaddingInlineSM:Vn,borderColor:Lr,footerBg:Rr,footerColor:Hn,headerBorderRadius:Xn,cellFontSize:Gn,cellFontSizeMD:jn,cellFontSizeSM:$n,headerSplitColor:br,fixedHeaderSortActiveBg:Ur,headerFilterHoverBg:Ir,filterDropdownBg:lr,expandIconBg:Hr,selectionColumnWidth:Vr,stickyScrollBarBg:So}=nt,eo=new qa.C(yt),Bo=new qa.C(Pt),Fo=2,Mr=(0,as.TS)(nt,{tableFontSize:Gn,tableBg:It,tableRadius:Xn,tablePaddingVertical:_n,tablePaddingHorizontal:bn,tablePaddingVerticalMiddle:Fn,tablePaddingHorizontalMiddle:er,tablePaddingVerticalSmall:or,tablePaddingHorizontalSmall:Vn,tableBorderColor:Lr,tableHeaderTextColor:zt,tableHeaderBg:At,tableFooterTextColor:Hn,tableFooterBg:Rr,tableHeaderCellSplitColor:br,tableHeaderSortBg:Zt,tableHeaderSortHoverBg:Ut,tableHeaderIconColor:eo.clone().setAlpha(eo.getAlpha()*wt).toRgbString(),tableHeaderIconColorHover:Bo.clone().setAlpha(Bo.getAlpha()*wt).toRgbString(),tableBodySortBg:cn,tableFixedHeaderSortActiveBg:Ur,tableHeaderFilterActiveBg:Ir,tableFilterDropdownBg:lr,tableRowHoverBg:nn,tableSelectedRowBg:sn,tableSelectedRowHoverBg:xn,zIndexTableFixed:Fo,zIndexTableSticky:Fo+1,tableFontSizeMiddle:jn,tableFontSizeSmall:$n,tableSelectionColumnWidth:Vr,tableExpandIconBg:Hr,tableExpandColumnWidth:Rt+2*nt.padding,tableExpandedRowBg:yn,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:So,tableScrollThumbBgHover:it,tableScrollBg:gt});return[Ps(Mr),gs(Mr),Ri(Mr),ys(Mr),ds(Mr),is(Mr),hs(Mr),us(Mr),Ri(Mr),ls(Mr),ms(Mr),fs(Mr),Ss(Mr),ss(Mr),vs(Mr),ps(Mr),bs(Mr)]},nt=>{const{colorFillAlter:it,colorBgContainer:gt,colorTextHeading:yt,colorFillSecondary:Pt,colorFillContent:wt,controlItemBgActive:It,controlItemBgActiveHover:Rt,padding:At,paddingSM:zt,paddingXS:Zt,colorBorderSecondary:Ut,borderRadiusLG:cn,fontSize:nn,controlHeight:sn,colorTextPlaceholder:xn}=nt,yn=new qa.C(Pt).onBackground(gt).toHexShortString(),_n=new qa.C(wt).onBackground(gt).toHexShortString(),bn=new qa.C(it).onBackground(gt).toHexShortString();return{headerBg:bn,headerColor:yt,headerSortActiveBg:yn,headerSortHoverBg:_n,bodySortBg:bn,rowHoverBg:bn,rowSelectedBg:It,rowSelectedHoverBg:Rt,rowExpandedBg:it,cellPaddingBlock:At,cellPaddingInline:At,cellPaddingBlockMD:zt,cellPaddingInlineMD:Zt,cellPaddingBlockSM:Zt,cellPaddingInlineSM:Zt,borderColor:Ut,headerBorderRadius:cn,footerBg:bn,footerColor:yt,cellFontSize:nn,cellFontSizeMD:nn,cellFontSizeSM:nn,headerSplitColor:Ut,fixedHeaderSortActiveBg:yn,headerFilterHoverBg:wt,filterDropdownMenuBg:gt,filterDropdownBg:gt,expandIconBg:gt,selectionColumnWidth:sn,stickyScrollBarBg:xn,stickyScrollBarBorderRadius:100}});const Cs=[],Es=(nt,it)=>{const{prefixCls:gt,className:yt,rootClassName:Pt,style:wt,size:It,bordered:Rt,dropdownPrefixCls:At,dataSource:zt,pagination:Zt,rowSelection:Ut,rowKey:cn="key",rowClassName:nn,columns:sn,children:xn,childrenColumnName:yn,onChange:_n,getPopupContainer:bn,loading:Fn,expandIcon:er,expandable:or,expandedRowRender:Vn,expandIconColumnIndex:Lr,indentSize:Rr,scroll:Hn,sortDirections:Xn,locale:Gn,showSorterTooltip:jn=!0,virtual:$n}=nt,br=ne.useMemo(()=>sn||_t(xn),[sn,xn]),Ur=ne.useMemo(()=>br.some(qr=>qr.responsive),[br]),Ir=(0,Tt.Z)(Ur),lr=ne.useMemo(()=>{const qr=new Set(Object.keys(Ir).filter(Co=>Ir[Co]));return br.filter(Co=>!Co.responsive||Co.responsive.some(qo=>qr.has(qo)))},[br,Ir]),Hr=(0,Yo.Z)(nt,["className","style","columns"]),{locale:Vr=Gt.Z,direction:So,table:eo,renderEmpty:Bo,getPrefixCls:Fo,getPopupContainer:Mr}=ne.useContext($r.E_),Wo=(0,zo.Z)(It),ro=Object.assign(Object.assign({},Vr.Table),Gn),_o=zt||Cs,Eo=Fo("table",gt),la=Fo("dropdown",At),mr=Object.assign({childrenColumnName:yn,expandIconColumnIndex:Lr},or),{childrenColumnName:fr="children"}=mr,cr=ne.useMemo(()=>_o.some(qr=>qr==null?void 0:qr[fr])?"nest":Vn||or&&or.expandedRowRender?"row":null,[_o]),Jn={body:ne.useRef()},oo=ne.useMemo(()=>typeof cn=="function"?cn:qr=>qr==null?void 0:qr[cn],[cn]),[Qn]=gi(_o,fr,oo),Dr={},Qr=function(qr,Co){let qo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var jo,ra,da;const fa=Object.assign(Object.assign({},Dr),qr);qo&&((jo=Dr.resetPagination)===null||jo===void 0||jo.call(Dr),!((ra=fa.pagination)===null||ra===void 0)&&ra.current&&(fa.pagination.current=1),Zt&&Zt.onChange&&Zt.onChange(1,(da=fa.pagination)===null||da===void 0?void 0:da.pageSize)),Hn&&Hn.scrollToFirstRowOnChange!==!1&&Jn.body.current&&(0,Mo.Z)(0,{getContainer:()=>Jn.body.current}),_n==null||_n(fa.pagination,fa.filters,fa.sorter,{currentDataSource:ni(bi(_o,fa.sorterStates,fr),fa.filterStates),action:Co})},Yr=(qr,Co)=>{Qr({sorter:qr,sorterStates:Co},"sort",!1)},[ta,Qo,ba,Zo]=es({prefixCls:Eo,mergedColumns:lr,onSorterChange:Yr,sortDirections:Xn||["ascend","descend"],tableLocale:ro,showSorterTooltip:jn}),va=ne.useMemo(()=>bi(_o,Qo,fr),[_o,Qo]);Dr.sorter=Zo(),Dr.sorterStates=Qo;const Ko=(qr,Co)=>{Qr({filters:qr,filterStates:Co},"filter",!0)},[ca,Ga,so]=fi({prefixCls:Eo,locale:ro,dropdownPrefixCls:la,mergedColumns:lr,onFilterChange:Ko,getPopupContainer:bn||Mr}),uo=ni(va,Ga);Dr.filters=so,Dr.filterStates=Ga;const Ao=ne.useMemo(()=>{const qr={};return Object.keys(so).forEach(Co=>{so[Co]!==null&&(qr[Co]=so[Co])}),Object.assign(Object.assign({},ba),{filters:qr})},[ba,so]),[$o]=ts(Ao),Vo=(qr,Co)=>{Qr({pagination:Object.assign(Object.assign({},Dr.pagination),{current:qr,pageSize:Co})},"paginate")},[Xr,aa]=pi(uo.length,Vo,Zt);Dr.pagination=Zt===!1?{}:Va(Xr,Zt),Dr.resetPagination=aa;const na=ne.useMemo(()=>{if(Zt===!1||!Xr.pageSize)return uo;const{current:qr=1,total:Co,pageSize:qo=$a}=Xr;return uo.lengthqo?uo.slice((qr-1)*qo,qr*qo):uo:uo.slice((qr-1)*qo,qr*qo)},[!!Zt,uo,Xr&&Xr.current,Xr&&Xr.pageSize,Xr&&Xr.total]),[pa,xa]=Ia({prefixCls:Eo,data:uo,pageData:na,getRowKey:oo,getRecordByKey:Qn,expandType:cr,childrenColumnName:fr,locale:ro,getPopupContainer:bn||Mr},Ut),Pa=(qr,Co,qo)=>{let jo;return typeof nn=="function"?jo=Ee()(nn(qr,Co,qo)):jo=Ee()(nn),Ee()({[`${Eo}-row-selected`]:xa.has(oo(qr,Co))},jo)};mr.__PARENT_RENDER_ICON__=mr.expandIcon,mr.expandIcon=mr.expandIcon||er||qt(ro),cr==="nest"&&mr.expandIconColumnIndex===void 0?mr.expandIconColumnIndex=Ut?1:0:mr.expandIconColumnIndex>0&&Ut&&(mr.expandIconColumnIndex-=1),typeof mr.indentSize!="number"&&(mr.indentSize=typeof Rr=="number"?Rr:15);const ei=ne.useCallback(qr=>$o(pa(ca(ta(qr)))),[ta,ca,pa]);let Aa,ya;if(Zt!==!1&&(Xr!=null&&Xr.total)){let qr;Xr.size?qr=Xr.size:qr=Wo==="small"||Wo==="middle"?"small":void 0;const Co=ra=>ne.createElement(on.Z,Object.assign({},Xr,{className:Ee()(`${Eo}-pagination ${Eo}-pagination-${ra}`,Xr.className),size:qr})),qo=So==="rtl"?"left":"right",{position:jo}=Xr;if(jo!==null&&Array.isArray(jo)){const ra=jo.find(Da=>Da.includes("top")),da=jo.find(Da=>Da.includes("bottom")),fa=jo.every(Da=>`${Da}`=="none");!ra&&!da&&!fa&&(ya=Co(qo)),ra&&(Aa=Co(ra.toLowerCase().replace("top",""))),da&&(ya=Co(da.toLowerCase().replace("bottom","")))}else ya=Co(qo)}let ua;typeof Fn=="boolean"?ua={spinning:Fn}:typeof Fn=="object"&&(ua=Object.assign({spinning:!0},Fn));const[ia,Xo]=ws(Eo),[,Do]=(0,Qt.Z)(),_a=Ee()(`${Eo}-wrapper`,eo==null?void 0:eo.className,{[`${Eo}-wrapper-rtl`]:So==="rtl"},yt,Pt,Xo),Wa=Object.assign(Object.assign({},eo==null?void 0:eo.style),wt),Ra=Gn&&Gn.emptyText||(Bo==null?void 0:Bo("Table"))||ne.createElement(no.Z,{componentName:"Table"}),Oa=$n?rs:ns,li={},Pi=ne.useMemo(()=>{const{fontSize:qr,lineHeight:Co,padding:qo,paddingXS:jo,paddingSM:ra}=Do,da=Math.floor(qr*Co);switch(Wo){case"large":return qo*2+da;case"small":return jo*2+da;default:return ra*2+da}},[Do,Wo]);return $n&&(li.listItemHeight=Pi),ia(ne.createElement("div",{ref:it,className:_a,style:Wa},ne.createElement(ln.Z,Object.assign({spinning:!1},ua),Aa,ne.createElement(Oa,Object.assign({},li,Hr,{columns:lr,direction:So,expandable:mr,prefixCls:Eo,className:Ee()({[`${Eo}-middle`]:Wo==="middle",[`${Eo}-small`]:Wo==="small",[`${Eo}-bordered`]:Rt,[`${Eo}-empty`]:_o.length===0}),data:na,rowKey:oo,rowClassName:Pa,emptyText:Ra,internalHooks:_e,internalRefs:Jn,transformColumns:ei})),ya)))};var xs=ne.forwardRef(Es);const _s=(nt,it)=>{const gt=ne.useRef(0);return gt.current+=1,ne.createElement(xs,Object.assign({},nt,{ref:it,_renderTimes:gt.current}))},La=ne.forwardRef(_s);La.SELECTION_COLUMN=Ca,La.EXPAND_COLUMN=be,La.SELECTION_ALL=Ya,La.SELECTION_INVERT=Ja,La.SELECTION_NONE=ar,La.Column=To,La.ColumnGroup=Lo,La.Summary=xe;var Os=La,Ts=Os},12563:function(Et,dt,ve){"use strict";ve.d(dt,{Z:function(){return Pe}});var be=ve(59301),_e=ve(99267),E=ve(92310),pe=ve.n(E),de=ve(36785),se=ve(47729),ne=ve(14088),ie=ve(36355),ce=ve(17313),ue=ve(37613),ae=ve(83116);const oe=we=>{const{paddingXXS:De,lineWidth:Ee,tagPaddingHorizontal:Ae,componentCls:Ce}=we,je=Ae-Ee,Me=De-Ee;return{[Ce]:Object.assign(Object.assign({},(0,ce.Wf)(we)),{display:"inline-block",height:"auto",marginInlineEnd:we.marginXS,paddingInline:je,fontSize:we.tagFontSize,lineHeight:we.tagLineHeight,whiteSpace:"nowrap",background:we.defaultBg,border:`${we.lineWidth}px ${we.lineType} ${we.colorBorder}`,borderRadius:we.borderRadiusSM,opacity:1,transition:`all ${we.motionDurationMid}`,textAlign:"start",position:"relative",[`&${Ce}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:we.defaultColor},[`${Ce}-close-icon`]:{marginInlineStart:Me,color:we.colorTextDescription,fontSize:we.tagIconSize,cursor:"pointer",transition:`all ${we.motionDurationMid}`,"&:hover":{color:we.colorTextHeading}},[`&${Ce}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${we.iconCls}-close, ${we.iconCls}-close:hover`]:{color:we.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${Ce}-checkable-checked):hover`]:{color:we.colorPrimary,backgroundColor:we.colorFillSecondary},"&:active, &-checked":{color:we.colorTextLightSolid},"&-checked":{backgroundColor:we.colorPrimary,"&:hover":{backgroundColor:we.colorPrimaryHover}},"&:active":{backgroundColor:we.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${we.iconCls} + span, > span + ${we.iconCls}`]:{marginInlineStart:je}}),[`${Ce}-borderless`]:{borderColor:"transparent",background:we.tagBorderlessBg}}},re=we=>{const{lineWidth:De,fontSizeIcon:Ee}=we,Ae=we.fontSizeSM,Ce=`${we.lineHeightSM*Ae}px`;return(0,ue.TS)(we,{tagFontSize:Ae,tagLineHeight:Ce,tagIconSize:Ee-2*De,tagPaddingHorizontal:8,tagBorderlessBg:we.colorFillTertiary})},ee=we=>({defaultBg:we.colorFillQuaternary,defaultColor:we.colorText});var a=(0,ae.Z)("Tag",we=>{const De=re(we);return oe(De)},ee),y=function(we,De){var Ee={};for(var Ae in we)Object.prototype.hasOwnProperty.call(we,Ae)&&De.indexOf(Ae)<0&&(Ee[Ae]=we[Ae]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ce=0,Ae=Object.getOwnPropertySymbols(we);Ce{const{prefixCls:De,style:Ee,className:Ae,checked:Ce,onChange:je,onClick:Me}=we,Ge=y(we,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:Fe,tag:Je}=be.useContext(ie.E_),qe=Ue=>{je==null||je(!Ce),Me==null||Me(Ue)},Xe=Fe("tag",De),[Ve,We]=a(Xe),ze=pe()(Xe,`${Xe}-checkable`,{[`${Xe}-checkable-checked`]:Ce},Je==null?void 0:Je.className,Ae,We);return Ve(be.createElement("span",Object.assign({},Ge,{style:Object.assign(Object.assign({},Ee),Je==null?void 0:Je.style),className:ze,onClick:qe})))},z=ve(45157);const te=we=>(0,z.Z)(we,(De,Ee)=>{let{textColor:Ae,lightBorderColor:Ce,lightColor:je,darkColor:Me}=Ee;return{[`${we.componentCls}-${De}`]:{color:Ae,background:je,borderColor:Ce,"&-inverse":{color:we.colorTextLightSolid,background:Me,borderColor:Me},[`&${we.componentCls}-borderless`]:{borderColor:"transparent"}}}});var le=(0,ae.b)(["Tag","preset"],we=>{const De=re(we);return te(De)},ee);function fe(we){return typeof we!="string"?we:we.charAt(0).toUpperCase()+we.slice(1)}const ge=(we,De,Ee)=>{const Ae=fe(Ee);return{[`${we.componentCls}-${De}`]:{color:we[`color${Ee}`],background:we[`color${Ae}Bg`],borderColor:we[`color${Ae}Border`],[`&${we.componentCls}-borderless`]:{borderColor:"transparent"}}}};var me=(0,ae.b)(["Tag","status"],we=>{const De=re(we);return[ge(De,"success","Success"),ge(De,"processing","Info"),ge(De,"error","Error"),ge(De,"warning","Warning")]},ee),he=function(we,De){var Ee={};for(var Ae in we)Object.prototype.hasOwnProperty.call(we,Ae)&&De.indexOf(Ae)<0&&(Ee[Ae]=we[Ae]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ce=0,Ae=Object.getOwnPropertySymbols(we);Ce{const{prefixCls:Ee,className:Ae,rootClassName:Ce,style:je,children:Me,icon:Ge,color:Fe,onClose:Je,closeIcon:qe,closable:Xe,bordered:Ve=!0}=we,We=he(we,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:ze,direction:Ue,tag:ot}=be.useContext(ie.E_),[Qe,ut]=be.useState(!0);be.useEffect(()=>{"visible"in We&&ut(We.visible)},[We.visible]);const Ye=(0,de.o2)(Fe),He=(0,de.yT)(Fe),Re=Ye||He,$e=Object.assign(Object.assign({backgroundColor:Fe&&!Re?Fe:void 0},ot==null?void 0:ot.style),je),Le=ze("tag",Ee),[Ne,et]=a(Le),Ze=pe()(Le,ot==null?void 0:ot.className,{[`${Le}-${Fe}`]:Re,[`${Le}-has-color`]:Fe&&!Re,[`${Le}-hidden`]:!Qe,[`${Le}-rtl`]:Ue==="rtl",[`${Le}-borderless`]:!Ve},Ae,Ce,et),Be=rt=>{rt.stopPropagation(),Je==null||Je(rt),!rt.defaultPrevented&&ut(!1)},[,Oe]=(0,se.Z)(Xe,qe,rt=>rt===null?be.createElement(_e.Z,{className:`${Le}-close-icon`,onClick:Be}):be.createElement("span",{className:`${Le}-close-icon`,onClick:Be},rt),null,!1),Te=typeof We.onClick=="function"||Me&&Me.type==="a",xe=Ge||null,Ie=xe?be.createElement(be.Fragment,null,xe,Me&&be.createElement("span",null,Me)):Me,Ke=be.createElement("span",Object.assign({},We,{ref:De,className:Ze,style:$e}),Ie,Oe,Ye&&be.createElement(le,{key:"preset",prefixCls:Le}),He&&be.createElement(me,{key:"status",prefixCls:Le}));return Ne(Te?be.createElement(ne.Z,{component:"Tag"},Ke):Ke)},ye=be.forwardRef(Se);ye.CheckableTag=b;var Pe=ye},65615:function(Et,dt,ve){"use strict";ve.d(dt,{Z:function(){return rt}});var be=ve(59301),_e=ve(33885),E=ve(54476),pe=ve(76190),de=ve(42978),se=ve(75931),ne=ve(43403),ie=ve(35593),ce=ve(92310),ue=ve.n(ce),ae=ve(34280),oe=ve(18929),re=ve(6089);function ee(ke){var tt=window.innerWidth||document.documentElement.clientWidth,mt=window.innerHeight||document.documentElement.clientHeight,ct=ke.getBoundingClientRect(),ht=ct.top,lt=ct.right,pt=ct.bottom,at=ct.left;return ht>=0&&at>=0&<<=tt&&pt<=mt}function a(ke,tt,mt){var ct;return(ct=mt!=null?mt:tt)!==null&&ct!==void 0?ct:ke===null?"center":"bottom"}function y(ke,tt,mt,ct){var ht=(0,be.useState)(void 0),lt=(0,de.Z)(ht,2),pt=lt[0],at=lt[1];(0,ae.Z)(function(){var Xt=typeof ke=="function"?ke():ke;at(Xt||null)});var st=(0,be.useState)(null),ft=(0,de.Z)(st,2),vt=ft[0],St=ft[1],xt=(0,re.Z)(function(){if(pt){!ee(pt)&&tt&&pt.scrollIntoView(ct);var Xt=pt.getBoundingClientRect(),dn=Xt.left,en=Xt.top,Jt=Xt.width,wn=Xt.height,Ln={left:dn,top:en,width:Jt,height:wn,radius:0};St(function(fn){return JSON.stringify(fn)!==JSON.stringify(Ln)?Ln:fn})}else St(null)}),Ft=function(dn){var en;return(en=Array.isArray(mt==null?void 0:mt.offset)?mt==null?void 0:mt.offset[dn]:mt==null?void 0:mt.offset)!==null&&en!==void 0?en:6};(0,ae.Z)(function(){return xt(),window.addEventListener("resize",xt),function(){window.removeEventListener("resize",xt)}},[pt,tt,xt]);var Nt=(0,be.useMemo)(function(){if(!vt)return vt;var Xt=Ft(0),dn=Ft(1),en=(mt==null?void 0:mt.radius)||2;return{left:vt.left-Xt,top:vt.top-dn,width:vt.width+Xt*2,height:vt.height+dn*2,radius:en}},[vt,mt]);return[Nt,pt]}var x=ve(80402),b={fill:"transparent",pointerEvents:"auto"},z=function(tt){var mt=tt.prefixCls,ct=tt.rootClassName,ht=tt.pos,lt=tt.showMask,pt=tt.style,at=pt===void 0?{}:pt,st=tt.fill,ft=st===void 0?"rgba(0,0,0,0.5)":st,vt=tt.open,St=tt.animated,xt=tt.zIndex,Ft=(0,x.Z)(),Nt="".concat(mt,"-mask-").concat(Ft),Xt=(0,pe.Z)(St)==="object"?St==null?void 0:St.placeholder:St;return be.createElement(ne.Z,{open:vt,autoLock:!0},be.createElement("div",{className:ue()("".concat(mt,"-mask"),ct),style:(0,_e.Z)({position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:xt,pointerEvents:"none"},at)},lt?be.createElement("svg",{style:{width:"100%",height:"100%"}},be.createElement("defs",null,be.createElement("mask",{id:Nt},be.createElement("rect",{x:"0",y:"0",width:"100vw",height:"100vh",fill:"white"}),ht&&be.createElement("rect",{x:ht.left,y:ht.top,rx:ht.radius,width:ht.width,height:ht.height,fill:"black",className:Xt?"".concat(mt,"-placeholder-animated"):""}))),be.createElement("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:ft,mask:"url(#".concat(Nt,")")}),ht&&be.createElement(be.Fragment,null,be.createElement("rect",(0,E.Z)({},b,{x:"0",y:"0",width:"100%",height:ht.top})),be.createElement("rect",(0,E.Z)({},b,{x:"0",y:"0",width:ht.left,height:"100%"})),be.createElement("rect",(0,E.Z)({},b,{x:"0",y:ht.top+ht.height,width:"100%",height:"calc(100vh - ".concat(ht.top+ht.height,"px)")})),be.createElement("rect",(0,E.Z)({},b,{x:ht.left+ht.width,y:"0",width:"calc(100vw - ".concat(ht.left+ht.width,"px)"),height:"100%"})))):null))},te=z,le={adjustX:1,adjustY:1},fe=[0,0],ge={left:{points:["cr","cl"],offset:[-8,0]},right:{points:["cl","cr"],offset:[8,0]},top:{points:["bc","tc"],offset:[0,-8]},bottom:{points:["tc","bc"],offset:[0,8]},topLeft:{points:["bl","tl"],offset:[0,-8]},leftTop:{points:["tr","tl"],offset:[-8,0]},topRight:{points:["br","tr"],offset:[0,-8]},rightTop:{points:["tl","tr"],offset:[8,0]},bottomRight:{points:["tr","br"],offset:[0,8]},rightBottom:{points:["bl","br"],offset:[8,0]},bottomLeft:{points:["tl","bl"],offset:[0,8]},leftBottom:{points:["br","bl"],offset:[-8,0]}};function me(){var ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,tt={};return Object.keys(ge).forEach(function(mt){tt[mt]=(0,_e.Z)((0,_e.Z)({},ge[mt]),{},{autoArrow:ke,targetOffset:fe})}),tt}var he=me(),Se=ve(94480);function ye(ke){var tt=ke.prefixCls,mt=ke.current,ct=ke.total,ht=ke.title,lt=ke.description,pt=ke.onClose,at=ke.onPrev,st=ke.onNext,ft=ke.onFinish,vt=ke.className,St=ke.closeIcon,xt=St!==!1&&St!==null,Ft=St!==void 0&&St!==!0?St:be.createElement("span",{className:"".concat(tt,"-close-x")},"\xD7");return be.createElement("div",{className:ue()("".concat(tt,"-content"),vt)},be.createElement("div",{className:"".concat(tt,"-inner")},xt&&be.createElement("button",{type:"button",onClick:pt,"aria-label":"Close",className:"".concat(tt,"-close")},Ft),be.createElement("div",{className:"".concat(tt,"-header")},be.createElement("div",{className:"".concat(tt,"-title")},ht)),be.createElement("div",{className:"".concat(tt,"-description")},lt),be.createElement("div",{className:"".concat(tt,"-footer")},be.createElement("div",{className:"".concat(tt,"-sliders")},ct>1?(0,Se.Z)(Array.from({length:ct}).keys()).map(function(Nt,Xt){return be.createElement("span",{key:Nt,className:Xt===mt?"active":""})}):null),be.createElement("div",{className:"".concat(tt,"-buttons")},mt!==0?be.createElement("button",{className:"".concat(tt,"-prev-btn"),onClick:at},"Prev"):null,mt===ct-1?be.createElement("button",{className:"".concat(tt,"-finish-btn"),onClick:ft},"Finish"):be.createElement("button",{className:"".concat(tt,"-next-btn"),onClick:st},"Next")))))}var Pe=function(tt){var mt=tt.current,ct=tt.renderPanel;return be.createElement(be.Fragment,null,typeof ct=="function"?ct(tt,mt):be.createElement(ye,tt))},we=Pe,De=["prefixCls","steps","defaultCurrent","current","onChange","onClose","onFinish","open","mask","arrow","rootClassName","placement","renderPanel","gap","animated","scrollIntoViewOptions","zIndex","closeIcon"],Ee={left:"50%",top:"50%",width:1,height:1},Ae=function(tt){var mt=tt.prefixCls,ct=mt===void 0?"rc-tour":mt,ht=tt.steps,lt=ht===void 0?[]:ht,pt=tt.defaultCurrent,at=tt.current,st=tt.onChange,ft=tt.onClose,vt=tt.onFinish,St=tt.open,xt=tt.mask,Ft=xt===void 0?!0:xt,Nt=tt.arrow,Xt=Nt===void 0?!0:Nt,dn=tt.rootClassName,en=tt.placement,Jt=tt.renderPanel,wn=tt.gap,Ln=tt.animated,fn=tt.scrollIntoViewOptions,zn=fn===void 0?!0:fn,Un=tt.zIndex,Nn=Un===void 0?1001:Un,On=tt.closeIcon,Tn=(0,se.Z)(tt,De),Zn=be.useRef(),Pr=(0,oe.Z)(0,{value:at,defaultValue:pt}),Nr=(0,de.Z)(Pr,2),qn=Nr[0],jr=Nr[1],ir=(0,oe.Z)(void 0,{value:St,postState:function(nr){return qn<0||qn>=lt.length?!1:nr!=null?nr:!0}}),gr=(0,de.Z)(ir,2),Ot=gr[0],jt=gr[1],_t=be.useRef(Ot);(0,ae.Z)(function(){Ot&&!_t.current&&jr(0),_t.current=Ot},[Ot]);var tn=lt[qn]||{},Bn=tn.target,Cn=tn.placement,Fr=tn.style,rr=tn.arrow,Ht=tn.className,Lt=tn.mask,rn=tn.scrollIntoViewOptions,Dt=tn.closeIcon,un=Ot&&(Lt!=null?Lt:Ft),En=Dt!=null?Dt:On,In=rn!=null?rn:zn,Sn=y(Bn,St,wn,In),bt=(0,de.Z)(Sn,2),Mt=bt[0],Bt=bt[1],Ct=a(Bt,en,Cn),Vt=Bt?typeof rr=="undefined"?Xt:rr:!1,$t=(0,pe.Z)(Vt)==="object"?Vt.pointAtCenter:!1;(0,ae.Z)(function(){var tr;(tr=Zn.current)===null||tr===void 0||tr.forceAlign()},[$t,qn]);var Wt=function(nr){jr(nr),st==null||st(nr)};if(Bt===void 0)return null;var Kt=function(){jt(!1),ft==null||ft(qn)},Rn=function(){return be.createElement(we,(0,E.Z)({arrow:Vt,key:"content",prefixCls:ct,total:lt.length,renderPanel:Jt,onPrev:function(){Wt(qn-1)},onNext:function(){Wt(qn+1)},onClose:Kt,current:qn,onFinish:function(){Kt(),vt==null||vt()},closeIcon:En},lt[qn]))},Mn=typeof un=="boolean"?un:!!un,kt=typeof un=="boolean"?void 0:un,vr=function(nr){return nr||Bt||document.body};return be.createElement(be.Fragment,null,be.createElement(te,{zIndex:Nn,prefixCls:ct,pos:Mt,showMask:Mn,style:kt==null?void 0:kt.style,fill:kt==null?void 0:kt.color,open:Ot,animated:Ln,rootClassName:dn}),be.createElement(ie.Z,(0,E.Z)({builtinPlacements:me($t)},Tn,{ref:Zn,popupStyle:Fr,popupPlacement:Ct,popupVisible:Ot,popupClassName:ue()(dn,Ht),prefixCls:ct,popup:Rn,forceRender:!1,destroyPopupOnHide:!0,zIndex:Nn,getTriggerDOMNode:vr,arrow:!!Vt}),be.createElement(ne.Z,{open:Ot,autoLock:!0},be.createElement("div",{className:ue()(dn,"".concat(ct,"-target-placeholder")),style:(0,_e.Z)((0,_e.Z)({},Mt||Ee),{},{position:"fixed",pointerEvents:"none"})}))))},Ce=Ae,je=Ce,Me=ve(79676),Ge=ve(36355),Fe=ve(88088),Je=ve(99267),qe=ve(3113),Xe=ve(9763),Ve=ve(31724),We=ve(47729);function ze(ke){return ke!=null}var ot=ke=>{let{stepProps:tt,current:mt,type:ct,indicatorsRender:ht,closeIcon:lt}=ke;var pt,at;const{prefixCls:st,total:ft=1,title:vt,onClose:St,onPrev:xt,onNext:Ft,onFinish:Nt,cover:Xt,description:dn,nextButtonProps:en,prevButtonProps:Jt,type:wn,className:Ln,closeIcon:fn}=tt,zn=wn!=null?wn:ct,Un=fn!=null?fn:lt,Nn=Un!==!1&&Un!==null,[On,Tn]=(0,We.Z)(Nn,Un,tn=>be.createElement("span",{onClick:St,"aria-label":"Close",className:`${st}-close`},tn),be.createElement(Je.Z,{className:`${st}-close-icon`}),!0),Zn=mt===ft-1,Pr=()=>{var tn;xt==null||xt(),(tn=Jt==null?void 0:Jt.onClick)===null||tn===void 0||tn.call(Jt)},Nr=()=>{var tn;Zn?Nt==null||Nt():Ft==null||Ft(),(tn=en==null?void 0:en.onClick)===null||tn===void 0||tn.call(en)},qn=ze(vt)?be.createElement("div",{className:`${st}-header`},be.createElement("div",{className:`${st}-title`},vt)):null,jr=ze(dn)?be.createElement("div",{className:`${st}-description`},dn):null,ir=ze(Xt)?be.createElement("div",{className:`${st}-cover`},Xt):null;let gr;ht?gr=ht(mt,ft):gr=(0,Se.Z)(Array.from({length:ft}).keys()).map((tn,Bn)=>be.createElement("span",{key:tn,className:ue()(Bn===mt&&`${st}-indicator-active`,`${st}-indicator`)}));const Ot=zn==="primary"?"default":"primary",jt={type:"default",ghost:zn==="primary"},[_t]=(0,Xe.Z)("Tour",Ve.Z.Tour);return be.createElement("div",{className:ue()(Ln,`${st}-content`)},be.createElement("div",{className:`${st}-inner`},On&&Tn,ir,qn,jr,be.createElement("div",{className:`${st}-footer`},ft>1&&be.createElement("div",{className:`${st}-indicators`},gr),be.createElement("div",{className:`${st}-buttons`},mt!==0?be.createElement(qe.ZP,Object.assign({},jt,Jt,{onClick:Pr,size:"small",className:ue()(`${st}-prev-btn`,Jt==null?void 0:Jt.className)}),(pt=Jt==null?void 0:Jt.children)!==null&&pt!==void 0?pt:_t==null?void 0:_t.Previous):null,be.createElement(qe.ZP,Object.assign({type:Ot},en,{onClick:Nr,size:"small",className:ue()(`${st}-next-btn`,en==null?void 0:en.className)}),(at=en==null?void 0:en.children)!==null&&at!==void 0?at:Zn?_t==null?void 0:_t.Finish:_t==null?void 0:_t.Next)))))},Qe=ve(39722),ut=ve(64993),Ye=ve(17313),He=ve(19447),Re=ve(83116),$e=ve(37613);const Le=ke=>{const{componentCls:tt,lineHeight:mt,padding:ct,paddingXS:ht,borderRadius:lt,borderRadiusXS:pt,colorPrimary:at,colorText:st,colorFill:ft,indicatorHeight:vt,indicatorWidth:St,boxShadowTertiary:xt,tourZIndexPopup:Ft,fontSize:Nt,colorBgElevated:Xt,fontWeightStrong:dn,marginXS:en,colorTextLightSolid:Jt,tourBorderRadius:wn,colorWhite:Ln,colorBgTextHover:fn,tourCloseSize:zn,motionDurationSlow:Un,antCls:Nn}=ke;return[{[tt]:Object.assign(Object.assign({},(0,Ye.Wf)(ke)),{color:st,position:"absolute",zIndex:Ft,display:"block",visibility:"visible",fontSize:Nt,lineHeight:mt,width:520,"--antd-arrow-background-color":Xt,"&-pure":{maxWidth:"100%",position:"relative"},[`&${tt}-hidden`]:{display:"none"},[`${tt}-content`]:{position:"relative"},[`${tt}-inner`]:{textAlign:"start",textDecoration:"none",borderRadius:wn,boxShadow:xt,position:"relative",backgroundColor:Xt,border:"none",backgroundClip:"padding-box",[`${tt}-close`]:{position:"absolute",top:ct,insetInlineEnd:ct,color:ke.colorIcon,outline:"none",width:zn,height:zn,borderRadius:ke.borderRadiusSM,transition:`background-color ${ke.motionDurationMid}, color ${ke.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:ke.colorIconHover,backgroundColor:ke.wireframe?"transparent":ke.colorFillContent}},[`${tt}-cover`]:{textAlign:"center",padding:`${ct+zn+ht}px ${ct}px 0`,img:{width:"100%"}},[`${tt}-header`]:{padding:`${ct}px ${ct}px ${ht}px`,[`${tt}-title`]:{lineHeight:mt,fontSize:Nt,fontWeight:dn}},[`${tt}-description`]:{padding:`0 ${ct}px`,lineHeight:mt,wordWrap:"break-word"},[`${tt}-footer`]:{padding:`${ht}px ${ct}px ${ct}px`,textAlign:"end",borderRadius:`0 0 ${pt}px ${pt}px`,display:"flex",[`${tt}-indicators`]:{display:"inline-block",[`${tt}-indicator`]:{width:St,height:vt,display:"inline-block",borderRadius:"50%",background:ft,"&:not(:last-child)":{marginInlineEnd:vt},"&-active":{background:at}}},[`${tt}-buttons`]:{marginInlineStart:"auto",[`${Nn}-btn`]:{marginInlineStart:en}}}},[`${tt}-primary, &${tt}-primary`]:{"--antd-arrow-background-color":at,[`${tt}-inner`]:{color:Jt,textAlign:"start",textDecoration:"none",backgroundColor:at,borderRadius:lt,boxShadow:xt,[`${tt}-close`]:{color:Jt},[`${tt}-indicators`]:{[`${tt}-indicator`]:{background:new ut.C(Jt).setAlpha(.15).toRgbString(),"&-active":{background:Jt}}},[`${tt}-prev-btn`]:{color:Jt,borderColor:new ut.C(Jt).setAlpha(.15).toRgbString(),backgroundColor:at,"&:hover":{backgroundColor:new ut.C(Jt).setAlpha(.15).toRgbString(),borderColor:"transparent"}},[`${tt}-next-btn`]:{color:at,borderColor:"transparent",background:Ln,"&:hover":{background:new ut.C(fn).onBackground(Ln).toRgbString()}}}}}),[`${tt}-mask`]:{[`${tt}-placeholder-animated`]:{transition:`all ${Un}`}},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${tt}-inner`]:{borderRadius:Math.min(wn,He.qN)}}},(0,He.ZP)(ke,{colorBg:"var(--antd-arrow-background-color)",contentRadius:wn,limitVerticalRadius:!0})]};var Ne=(0,Re.Z)("Tour",ke=>{const{borderRadiusLG:tt,fontSize:mt,lineHeight:ct}=ke,ht=(0,$e.TS)(ke,{tourZIndexPopup:ke.zIndexPopupBase+70,indicatorWidth:6,indicatorHeight:6,tourBorderRadius:tt,tourCloseSize:mt*ct});return[Le(ht)]}),et=ve(53487),Ze=function(ke,tt){var mt={};for(var ct in ke)Object.prototype.hasOwnProperty.call(ke,ct)&&tt.indexOf(ct)<0&&(mt[ct]=ke[ct]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ht=0,ct=Object.getOwnPropertySymbols(ke);ht{const{prefixCls:tt,current:mt=0,total:ct=6,className:ht,style:lt,type:pt}=ke,at=Ze(ke,["prefixCls","current","total","className","style","type"]),{getPrefixCls:st}=be.useContext(Ge.E_),ft=st("tour",tt),[vt,St]=Ne(ft);return vt(be.createElement(Qe.t5,{prefixCls:ft,hashId:St,className:ue()(ht,`${ft}-pure`,pt&&`${ft}-${pt}`),style:lt},be.createElement(ot,{stepProps:Object.assign(Object.assign({},at),{prefixCls:ft,total:ct}),current:mt,type:pt})))};var Oe=(0,et.i)(Be),xe=ke=>{let{defaultType:tt,steps:mt=[],current:ct,defaultCurrent:ht}=ke;var lt;const[pt,at]=(0,oe.Z)(ht,{value:ct});(0,be.useLayoutEffect)(()=>{ct!==void 0&&at(ct)},[ct]);const st=typeof pt=="number"?(lt=mt[pt])===null||lt===void 0?void 0:lt.type:tt;return{currentMergedType:st!=null?st:tt,updateInnerCurrent:at}},Ie=function(ke,tt){var mt={};for(var ct in ke)Object.prototype.hasOwnProperty.call(ke,ct)&&tt.indexOf(ct)<0&&(mt[ct]=ke[ct]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ht=0,ct=Object.getOwnPropertySymbols(ke);ht{const{prefixCls:tt,current:mt,defaultCurrent:ct,type:ht,rootClassName:lt,indicatorsRender:pt,steps:at}=ke,st=Ie(ke,["prefixCls","current","defaultCurrent","type","rootClassName","indicatorsRender","steps"]),{getPrefixCls:ft,direction:vt}=(0,be.useContext)(Ge.E_),St=ft("tour",tt),[xt,Ft]=Ne(St),[,Nt]=(0,Fe.Z)(),{currentMergedType:Xt,updateInnerCurrent:dn}=xe({defaultType:ht,steps:at,current:mt,defaultCurrent:ct}),en=(0,Me.Z)({arrowPointAtCenter:!0,autoAdjustOverflow:!0,offset:Nt.marginXXS,arrowWidth:Nt.sizePopupArrow,borderRadius:Nt.borderRadius}),Jt=ue()({[`${St}-primary`]:Xt==="primary",[`${St}-rtl`]:vt==="rtl"},Ft,lt),wn=(fn,zn)=>be.createElement(ot,{type:ht,stepProps:fn,current:zn,indicatorsRender:pt}),Ln=fn=>{var zn;dn(fn),(zn=ke.onChange)===null||zn===void 0||zn.call(ke,fn)};return xt(be.createElement(je,Object.assign({},st,{rootClassName:Jt,prefixCls:St,current:mt,defaultCurrent:ct,animated:!0,renderPanel:wn,builtinPlacements:en,onChange:Ln,steps:at})))};Ke._InternalPanelDoNotUseOrYouWillBeFired=Oe;var rt=Ke},17574:function(Et,dt,ve){"use strict";ve.d(dt,{default:function(){return Fe}});var be=ve(60091),_e=ve(94480),E=ve(52671),pe=ve(8657),de=ve(54476),se=ve(59301),ne={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"},ie=ne,ce=ve(7657),ue=function(qe,Xe){return se.createElement(ce.Z,(0,de.Z)({},qe,{ref:Xe,icon:ie}))},ae=se.forwardRef(ue),oe=ae,re=ve(92310),ee=ve.n(re),a=ve(35654),y=ve(71430),x=ve(36355),b=ve(56082),z=ve(62892),te=ve(20648);const le=4;function fe(Je){const{dropPosition:qe,dropLevelOffset:Xe,prefixCls:Ve,indent:We,direction:ze="ltr"}=Je,Ue=ze==="ltr"?"left":"right",ot=ze==="ltr"?"right":"left",Qe={[Ue]:-Xe*We+le,[ot]:0};switch(qe){case-1:Qe.top=-3;break;case 1:Qe.bottom=-3;break;default:Qe.bottom=-3,Qe[Ue]=We+le;break}return se.createElement("div",{style:Qe,className:`${Ve}-drop-indicator`})}var ge=ve(71997),he=se.forwardRef((Je,qe)=>{const{getPrefixCls:Xe,direction:Ve,virtual:We,tree:ze}=se.useContext(x.E_),{prefixCls:Ue,className:ot,showIcon:Qe=!1,showLine:ut,switcherIcon:Ye,blockNode:He=!1,children:Re,checkable:$e=!1,selectable:Le=!0,draggable:Ne,motion:et,style:Ze}=Je,Be=Xe("tree",Ue),Oe=Xe(),Te=et!=null?et:Object.assign(Object.assign({},(0,z.Z)(Oe)),{motionAppear:!1}),xe=Object.assign(Object.assign({},Je),{checkable:$e,selectable:Le,showIcon:Qe,motion:Te,blockNode:He,showLine:!!ut,dropIndicatorRender:fe}),[Ie,Ke]=(0,te.ZP)(Be),rt=se.useMemo(()=>{if(!Ne)return!1;let tt={};switch(typeof Ne){case"function":tt.nodeDraggable=Ne;break;case"object":tt=Object.assign({},Ne);break;default:break}return tt.icon!==!1&&(tt.icon=tt.icon||se.createElement(b.Z,null)),tt},[Ne]),ke=tt=>se.createElement(ge.Z,{prefixCls:Be,switcherIcon:Ye,treeNodeProps:tt,showLine:ut});return Ie(se.createElement(be.Z,Object.assign({itemHeight:20,ref:qe,virtual:We},xe,{style:Object.assign(Object.assign({},ze==null?void 0:ze.style),Ze),prefixCls:Be,className:ee()({[`${Be}-icon-hide`]:!Qe,[`${Be}-block-node`]:He,[`${Be}-unselectable`]:!Le,[`${Be}-rtl`]:Ve==="rtl"},ze==null?void 0:ze.className,ot,Ke),direction:Ve,checkable:$e&&se.createElement("span",{className:`${Be}-checkbox-inner`}),selectable:Le,switcherIcon:ke,draggable:rt}),Re))}),Se;(function(Je){Je[Je.None=0]="None",Je[Je.Start=1]="Start",Je[Je.End=2]="End"})(Se||(Se={}));function ye(Je,qe){function Xe(Ve){const{key:We,children:ze}=Ve;qe(We,Ve)!==!1&&ye(ze||[],qe)}Je.forEach(Xe)}function Pe(Je){let{treeData:qe,expandedKeys:Xe,startKey:Ve,endKey:We}=Je;const ze=[];let Ue=Se.None;if(Ve&&Ve===We)return[Ve];if(!Ve||!We)return[];function ot(Qe){return Qe===Ve||Qe===We}return ye(qe,Qe=>{if(Ue===Se.End)return!1;if(ot(Qe)){if(ze.push(Qe),Ue===Se.None)Ue=Se.Start;else if(Ue===Se.Start)return Ue=Se.End,!1}else Ue===Se.Start&&ze.push(Qe);return Xe.includes(Qe)}),ze}function we(Je,qe){const Xe=(0,_e.Z)(qe),Ve=[];return ye(Je,(We,ze)=>{const Ue=Xe.indexOf(We);return Ue!==-1&&(Ve.push(ze),Xe.splice(Ue,1)),!!Xe.length}),Ve}var De=function(Je,qe){var Xe={};for(var Ve in Je)Object.prototype.hasOwnProperty.call(Je,Ve)&&qe.indexOf(Ve)<0&&(Xe[Ve]=Je[Ve]);if(Je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var We=0,Ve=Object.getOwnPropertySymbols(Je);We{var{defaultExpandAll:Xe,defaultExpandParent:Ve,defaultExpandedKeys:We}=Je,ze=De(Je,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const Ue=se.useRef(),ot=se.useRef(),Qe=()=>{const{keyEntities:rt}=(0,y.I8)(Ae(ze));let ke;return Xe?ke=Object.keys(rt):Ve?ke=(0,a.r7)(ze.expandedKeys||We||[],rt):ke=ze.expandedKeys||We,ke},[ut,Ye]=se.useState(ze.selectedKeys||ze.defaultSelectedKeys||[]),[He,Re]=se.useState(()=>Qe());se.useEffect(()=>{"selectedKeys"in ze&&Ye(ze.selectedKeys)},[ze.selectedKeys]),se.useEffect(()=>{"expandedKeys"in ze&&Re(ze.expandedKeys)},[ze.expandedKeys]);const $e=(rt,ke)=>{var tt;return"expandedKeys"in ze||Re(rt),(tt=ze.onExpand)===null||tt===void 0?void 0:tt.call(ze,rt,ke)},Le=(rt,ke)=>{var tt;const{multiple:mt}=ze,{node:ct,nativeEvent:ht}=ke,{key:lt=""}=ct,pt=Ae(ze),at=Object.assign(Object.assign({},ke),{selected:!0}),st=(ht==null?void 0:ht.ctrlKey)||(ht==null?void 0:ht.metaKey),ft=ht==null?void 0:ht.shiftKey;let vt;mt&&st?(vt=rt,Ue.current=lt,ot.current=vt,at.selectedNodes=we(pt,vt)):mt&&ft?(vt=Array.from(new Set([].concat((0,_e.Z)(ot.current||[]),(0,_e.Z)(Pe({treeData:pt,expandedKeys:He,startKey:lt,endKey:Ue.current}))))),at.selectedNodes=we(pt,vt)):(vt=[lt],Ue.current=lt,ot.current=vt,at.selectedNodes=we(pt,vt)),(tt=ze.onSelect)===null||tt===void 0||tt.call(ze,vt,at),"selectedKeys"in ze||Ye(vt)},{getPrefixCls:Ne,direction:et}=se.useContext(x.E_),{prefixCls:Ze,className:Be,showIcon:Oe=!0,expandAction:Te="click"}=ze,xe=De(ze,["prefixCls","className","showIcon","expandAction"]),Ie=Ne("tree",Ze),Ke=ee()(`${Ie}-directory`,{[`${Ie}-directory-rtl`]:et==="rtl"},Be);return se.createElement(he,Object.assign({icon:Ee,ref:qe,blockNode:!0},xe,{showIcon:Oe,expandAction:Te,prefixCls:Ie,className:Ke,expandedKeys:He,selectedKeys:ut,onSelect:Le,onExpand:$e}))};var Me=se.forwardRef(Ce);const Ge=he;Ge.DirectoryTree=Me,Ge.TreeNode=be.O;var Fe=Ge},20648:function(Et,dt,ve){"use strict";ve.d(dt,{TM:function(){return re},Yk:function(){return oe}});var be=ve(36237),_e=ve(98447),E=ve(17313),pe=ve(8378),de=ve(37613),se=ve(83116);const ne=new be.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),ie=(ee,a)=>({[`.${ee}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${a.motionDurationSlow}`}}}),ce=(ee,a)=>({[`.${ee}-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:'""'}}}),ue=(ee,a)=>{const{treeCls:y,treeNodeCls:x,treeNodePadding:b,titleHeight:z,nodeSelectedBg:te,nodeHoverBg:le}=a,fe=a.paddingXS;return{[y]:Object.assign(Object.assign({},(0,E.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,E.oN)(a)),[`${y}-list-holder-inner`]:{alignItems:"flex-start"},[`&${y}-block-node`]:{[`${y}-list-holder-inner`]:{alignItems:"stretch",[`${y}-node-content-wrapper`]:{flex:"auto"},[`${x}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:b,insetInlineStart:0,border:`1px solid ${a.colorPrimary}`,opacity:0,animationName:ne,animationDuration:a.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${x}`]:{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,E.oN)(a)),[`&:not(${x}-disabled).filter-node ${y}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${y}-draggable-icon`]:{flexShrink:0,width:z,lineHeight:`${z}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${a.motionDurationSlow}`,[`${x}:hover &`]:{opacity:.45}},[`&${x}-disabled`]:{[`${y}-draggable-icon`]:{visibility:"hidden"}}}},[`${y}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:z}},[`${y}-draggable-icon`]:{visibility:"hidden"},[`${y}-switcher`]:Object.assign(Object.assign({},ie(ee,a)),{position:"relative",flex:"none",alignSelf:"stretch",width:z,margin:0,lineHeight:`${z}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:z/2,bottom:-b,marginInlineStart:-1,borderInlineEnd:`1px solid ${a.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:z/2*.8,height:z/2,borderBottom:`1px solid ${a.colorBorder}`,content:'""'}}}),[`${y}-checkbox`]:{top:"initial",marginInlineEnd:fe},[`${y}-node-content-wrapper, ${y}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:z,margin:0,padding:`0 ${a.paddingXS/2}px`,color:"inherit",lineHeight:`${z}px`,background:"transparent",borderRadius:a.borderRadius,cursor:"pointer",transition:`all ${a.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:le},[`&${y}-node-selected`]:{backgroundColor:te},[`${y}-iconEle`]:{display:"inline-block",width:z,height:z,lineHeight:`${z}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${y}-unselectable ${y}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${y}-node-content-wrapper`]:Object.assign({lineHeight:`${z}px`,userSelect:"none"},ce(ee,a)),[`${x}.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:z/2,bottom:-b,borderInlineEnd:`1px solid ${a.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${y}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${x}-leaf-last`]:{[`${y}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${z/2}px !important`}}}}})}},ae=ee=>{const{treeCls:a,treeNodeCls:y,treeNodePadding:x,directoryNodeSelectedBg:b,directoryNodeSelectedColor:z}=ee;return{[`${a}${a}-directory`]:{[y]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:x,insetInlineStart:0,transition:`background-color ${ee.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:ee.controlItemBgHover}},"> *":{zIndex:1},[`${a}-switcher`]:{transition:`color ${ee.motionDurationMid}`},[`${a}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${a}-node-selected`]:{color:z,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:b},[`${a}-switcher`]:{color:z},[`${a}-node-content-wrapper`]:{color:z,background:"transparent"}}}}}},oe=(ee,a)=>{const y=`.${ee}`,x=`${y}-treenode`,b=a.paddingXS/2,z=(0,de.TS)(a,{treeCls:y,treeNodeCls:x,treeNodePadding:b});return[ue(ee,z),ae(z)]},re=ee=>{const{controlHeightSM:a}=ee;return{titleHeight:a,nodeHoverBg:ee.controlItemBgHover,nodeSelectedBg:ee.controlItemBgActive}};dt.ZP=(0,se.Z)("Tree",(ee,a)=>{let{prefixCls:y}=a;return[{[ee.componentCls]:(0,_e.C2)(`${y}-checkbox`,ee)},oe(y,ee),(0,pe.Z)(ee)]},ee=>{const{colorTextLightSolid:a,colorPrimary:y}=ee;return Object.assign(Object.assign({},re(ee)),{directoryNodeSelectedColor:a,directoryNodeSelectedBg:y})})},71997:function(Et,dt,ve){"use strict";ve.d(dt,{Z:function(){return x}});var be=ve(54476),_e=ve(59301),E={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=E,de=ve(7657),se=function(z,te){return _e.createElement(de.Z,(0,be.Z)({},z,{ref:te,icon:pe}))},ne=_e.forwardRef(se),ie=ne,ce=ve(52671),ue=ve(58617),ae=ve(15075),oe=ve(43531),re=ve(92310),ee=ve.n(re),a=ve(92343),x=b=>{const{prefixCls:z,switcherIcon:te,treeNodeProps:le,showLine:fe}=b,{isLeaf:ge,expanded:me,loading:he}=le;if(he)return _e.createElement(ue.Z,{className:`${z}-switcher-loading-icon`});let Se;if(fe&&typeof fe=="object"&&(Se=fe.showLeafIcon),ge){if(!fe)return null;if(typeof Se!="boolean"&&Se){const we=typeof Se=="function"?Se(le):Se,De=`${z}-switcher-line-custom-icon`;return(0,a.l$)(we)?(0,a.Tm)(we,{className:ee()(we.props.className||"",De)}):we}return Se?_e.createElement(ce.Z,{className:`${z}-switcher-line-icon`}):_e.createElement("span",{className:`${z}-switcher-leaf-line`})}const ye=`${z}-switcher-icon`,Pe=typeof te=="function"?te(le):te;return(0,a.l$)(Pe)?(0,a.Tm)(Pe,{className:ee()(Pe.props.className||"",ye)}):Pe!==void 0?Pe:fe?me?_e.createElement(ae.Z,{className:`${z}-switcher-line-icon`}):_e.createElement(oe.Z,{className:`${z}-switcher-line-icon`}):_e.createElement(ie,{className:ye})}},54580:function(Et,dt,ve){"use strict";ve.d(dt,{default:function(){return Sn}});var be=ve(59301),_e=ve(94480),E=ve(92310),pe=ve.n(E),de=ve(54476),se=ve(67732),ne=ve(83652),ie=ve(42403),ce=ve(158),ue=ve(20068),ae=ve(75931),oe=ve(75044),re=ve(76190),ee=ve(3202),a=ve(26112);function y(bt,Mt){var Bt="cannot ".concat(bt.method," ").concat(bt.action," ").concat(Mt.status,"'"),Ct=new Error(Bt);return Ct.status=Mt.status,Ct.method=bt.method,Ct.url=bt.action,Ct}function x(bt){var Mt=bt.responseText||bt.response;if(!Mt)return Mt;try{return JSON.parse(Mt)}catch(Bt){return Mt}}function b(bt){var Mt=new XMLHttpRequest;bt.onProgress&&Mt.upload&&(Mt.upload.onprogress=function($t){$t.total>0&&($t.percent=$t.loaded/$t.total*100),bt.onProgress($t)});var Bt=new FormData;bt.data&&Object.keys(bt.data).forEach(function(Vt){var $t=bt.data[Vt];if(Array.isArray($t)){$t.forEach(function(Wt){Bt.append("".concat(Vt,"[]"),Wt)});return}Bt.append(Vt,$t)}),bt.file instanceof Blob?Bt.append(bt.filename,bt.file,bt.file.name):Bt.append(bt.filename,bt.file),Mt.onerror=function($t){bt.onError($t)},Mt.onload=function(){return Mt.status<200||Mt.status>=300?bt.onError(y(bt,Mt),x(Mt)):bt.onSuccess(x(Mt),Mt)},Mt.open(bt.method,bt.action,!0),bt.withCredentials&&"withCredentials"in Mt&&(Mt.withCredentials=!0);var Ct=bt.headers||{};return Ct["X-Requested-With"]!==null&&Mt.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Ct).forEach(function(Vt){Ct[Vt]!==null&&Mt.setRequestHeader(Vt,Ct[Vt])}),Mt.send(Bt),{abort:function(){Mt.abort()}}}var z=+new Date,te=0;function le(){return"rc-upload-".concat(z,"-").concat(++te)}var fe=ve(48736),ge=function(bt,Mt){if(bt&&Mt){var Bt=Array.isArray(Mt)?Mt:Mt.split(","),Ct=bt.name||"",Vt=bt.type||"",$t=Vt.replace(/\/.*$/,"");return Bt.some(function(Wt){var Kt=Wt.trim();if(/^\*(\/\*)?$/.test(Wt))return!0;if(Kt.charAt(0)==="."){var Rn=Ct.toLowerCase(),Mn=Kt.toLowerCase(),kt=[Mn];return(Mn===".jpg"||Mn===".jpeg")&&(kt=[".jpg",".jpeg"]),kt.some(function(vr){return Rn.endsWith(vr)})}return/\/\*$/.test(Kt)?$t===Kt.replace(/\/.*$/,""):Vt===Kt?!0:/^\w+$/.test(Kt)?((0,fe.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Kt,"'.Skip for check.")),!0):!1})}return!0};function me(bt,Mt){var Bt=bt.createReader(),Ct=[];function Vt(){Bt.readEntries(function($t){var Wt=Array.prototype.slice.apply($t);Ct=Ct.concat(Wt);var Kt=!Wt.length;Kt?Mt(Ct):Vt()})}Vt()}var he=function(Mt,Bt,Ct){var Vt=function $t(Wt,Kt){Wt&&(Wt.path=Kt||"",Wt.isFile?Wt.file(function(Rn){Ct(Rn)&&(Wt.fullPath&&!Rn.webkitRelativePath&&(Object.defineProperties(Rn,{webkitRelativePath:{writable:!0}}),Rn.webkitRelativePath=Wt.fullPath.replace(/^\//,""),Object.defineProperties(Rn,{webkitRelativePath:{writable:!1}})),Bt([Rn]))}):Wt.isDirectory&&me(Wt,function(Rn){Rn.forEach(function(Mn){$t(Mn,"".concat(Kt).concat(Wt.name,"/"))})}))};Mt.forEach(function($t){Vt($t.webkitGetAsEntry())})},Se=he,ye=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],Pe=function(bt){(0,ie.Z)(Bt,bt);var Mt=(0,ce.Z)(Bt);function Bt(){var Ct;(0,se.Z)(this,Bt);for(var Vt=arguments.length,$t=new Array(Vt),Wt=0;Wt{let{uid:$t}=Vt;return $t===bt.uid});return Ct===-1?Bt.push(bt):Bt[Ct]=bt,Bt}function tt(bt,Mt){const Bt=bt.uid!==void 0?"uid":"name";return Mt.filter(Ct=>Ct[Bt]===bt[Bt])[0]}function mt(bt,Mt){const Bt=bt.uid!==void 0?"uid":"name",Ct=Mt.filter(Vt=>Vt[Bt]!==bt[Bt]);return Ct.length===Mt.length?null:Ct}const ct=function(){const Mt=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),Ct=Mt[Mt.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(Ct)||[""])[0]},ht=bt=>bt.indexOf("image/")===0,lt=bt=>{if(bt.type&&!bt.thumbUrl)return ht(bt.type);const Mt=bt.thumbUrl||bt.url||"",Bt=ct(Mt);return/^data:image\//.test(Mt)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(Bt)?!0:!(/^data:/.test(Mt)||Bt)},pt=200;function at(bt){return new Promise(Mt=>{if(!bt.type||!ht(bt.type)){Mt("");return}const Bt=document.createElement("canvas");Bt.width=pt,Bt.height=pt,Bt.style.cssText=`position: fixed; left: 0; top: 0; width: ${pt}px; height: ${pt}px; z-index: 9999; display: none;`,document.body.appendChild(Bt);const Ct=Bt.getContext("2d"),Vt=new Image;if(Vt.onload=()=>{const{width:$t,height:Wt}=Vt;let Kt=pt,Rn=pt,Mn=0,kt=0;$t>Wt?(Rn=Wt*(pt/$t),kt=-(Rn-Kt)/2):(Kt=$t*(pt/Wt),Mn=-(Kt-Rn)/2),Ct.drawImage(Vt,Mn,kt,Kt,Rn);const vr=Bt.toDataURL();document.body.removeChild(Bt),window.URL.revokeObjectURL(Vt.src),Mt(vr)},Vt.crossOrigin="anonymous",bt.type.startsWith("image/svg+xml")){const $t=new FileReader;$t.onload=()=>{$t.result&&(Vt.src=$t.result)},$t.readAsDataURL(bt)}else if(bt.type.startsWith("image/gif")){const $t=new FileReader;$t.onload=()=>{$t.result&&Mt($t.result)},$t.readAsDataURL(bt)}else Vt.src=window.URL.createObjectURL(bt)})}var st=ve(26227),ft=ve(41464),vt=ve(15277),St=ve(93948),xt=ve(6848),Nt=be.forwardRef((bt,Mt)=>{let{prefixCls:Bt,className:Ct,style:Vt,locale:$t,listType:Wt,file:Kt,items:Rn,progress:Mn,iconRender:kt,actionIconRender:vr,itemRender:tr,isImgUrl:nr,showPreviewIcon:Kr,showRemoveIcon:gn,showDownloadIcon:vn,previewIcon:Wn,removeIcon:Pn,downloadIcon:yr,onPreview:ur,onDownload:Yn,onClose:kr}=bt;var Cr,Po;const{status:po}=Kt,[io,ko]=be.useState(po);be.useEffect(()=>{po!=="removed"&&ko(po)},[po]);const[Io,pn]=be.useState(!1);be.useEffect(()=>{const $r=setTimeout(()=>{pn(!0)},300);return()=>{clearTimeout($r)}},[]);const Ro=kt(Kt);let mo=be.createElement("div",{className:`${Bt}-icon`},Ro);if(Wt==="picture"||Wt==="picture-card"||Wt==="picture-circle")if(io==="uploading"||!Kt.thumbUrl&&!Kt.url){const $r=pe()(`${Bt}-list-item-thumbnail`,{[`${Bt}-list-item-file`]:io!=="uploading"});mo=be.createElement("div",{className:$r},Ro)}else{const $r=nr!=null&&nr(Kt)?be.createElement("img",{src:Kt.thumbUrl||Kt.url,alt:Kt.name,className:`${Bt}-list-item-image`,crossOrigin:Kt.crossOrigin}):Ro,no=pe()(`${Bt}-list-item-thumbnail`,{[`${Bt}-list-item-file`]:nr&&!nr(Kt)});mo=be.createElement("a",{className:no,onClick:zo=>ur(Kt,zo),href:Kt.url||Kt.thumbUrl,target:"_blank",rel:"noopener noreferrer"},$r)}const zr=pe()(`${Bt}-list-item`,`${Bt}-list-item-${io}`),bo=typeof Kt.linkProps=="string"?JSON.parse(Kt.linkProps):Kt.linkProps,to=gn?vr((typeof Pn=="function"?Pn(Kt):Pn)||be.createElement(st.Z,null),()=>kr(Kt),Bt,$t.removeFile):null,lo=vn&&io==="done"?vr((typeof yr=="function"?yr(Kt):yr)||be.createElement(ft.Z,null),()=>Yn(Kt),Bt,$t.downloadFile):null,vo=Wt!=="picture-card"&&Wt!=="picture-circle"&&be.createElement("span",{key:"download-delete",className:pe()(`${Bt}-list-item-actions`,{picture:Wt==="picture"})},lo,to),dr=pe()(`${Bt}-list-item-name`),wr=Kt.url?[be.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:dr,title:Kt.name},bo,{href:Kt.url,onClick:$r=>ur(Kt,$r)}),Kt.name),vo]:[be.createElement("span",{key:"view",className:dr,onClick:$r=>ur(Kt,$r),title:Kt.name},Kt.name),vo],Er={pointerEvents:"none",opacity:.5},xr=Kr?be.createElement("a",{href:Kt.url||Kt.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:Kt.url||Kt.thumbUrl?void 0:Er,onClick:$r=>ur(Kt,$r),title:$t.previewFile},typeof Wn=="function"?Wn(Kt):Wn||be.createElement(vt.Z,null)):null,ao=(Wt==="picture-card"||Wt==="picture-circle")&&io!=="uploading"&&be.createElement("span",{className:`${Bt}-list-item-actions`},xr,io==="done"&&lo,to),{getPrefixCls:To}=be.useContext(Ge.E_),wo=To(),Lo=be.createElement("div",{className:zr},mo,wr,ao,Io&&be.createElement(Oe.default,{motionName:`${wo}-fade`,visible:io==="uploading",motionDeadline:2e3},$r=>{let{className:no}=$r;const zo="percent"in Kt?be.createElement(St.Z,Object.assign({},Mn,{type:"line",percent:Kt.percent,"aria-label":Kt["aria-label"],"aria-labelledby":Kt["aria-labelledby"]})):null;return be.createElement("div",{className:pe()(`${Bt}-list-item-progress`,no)},zo)})),Yo=Kt.response&&typeof Kt.response=="string"?Kt.response:((Cr=Kt.error)===null||Cr===void 0?void 0:Cr.statusText)||((Po=Kt.error)===null||Po===void 0?void 0:Po.message)||$t.uploadError,Mo=io==="error"?be.createElement(xt.Z,{title:Yo,getPopupContainer:$r=>$r.parentNode},Lo):Lo;return be.createElement("div",{className:pe()(`${Bt}-list-item-container`,Ct),style:Vt,ref:Mt},tr?tr(Mo,Kt,Rn,{download:Yn.bind(null,Kt),preview:ur.bind(null,Kt),remove:kr.bind(null,Kt)}):Mo)});const Xt=(bt,Mt)=>{const{listType:Bt="text",previewFile:Ct=at,onPreview:Vt,onDownload:$t,onRemove:Wt,locale:Kt,iconRender:Rn,isImageUrl:Mn=lt,prefixCls:kt,items:vr=[],showPreviewIcon:tr=!0,showRemoveIcon:nr=!0,showDownloadIcon:Kr=!1,removeIcon:gn,previewIcon:vn,downloadIcon:Wn,progress:Pn={size:[-1,2],showInfo:!1},appendAction:yr,appendActionVisible:ur=!0,itemRender:Yn,disabled:kr}=bt,Cr=(0,Te.Z)(),[Po,po]=be.useState(!1);be.useEffect(()=>{Bt!=="picture"&&Bt!=="picture-card"&&Bt!=="picture-circle"||(vr||[]).forEach(Er=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(Er.originFileObj instanceof File||Er.originFileObj instanceof Blob)||Er.thumbUrl!==void 0||(Er.thumbUrl="",Ct&&Ct(Er.originFileObj).then(xr=>{Er.thumbUrl=xr||"",Cr()}))})},[Bt,vr,Ct]),be.useEffect(()=>{po(!0)},[]);const io=(Er,xr)=>{if(Vt)return xr==null||xr.preventDefault(),Vt(Er)},ko=Er=>{typeof $t=="function"?$t(Er):Er.url&&window.open(Er.url)},Io=Er=>{Wt==null||Wt(Er)},pn=Er=>{if(Rn)return Rn(Er,Bt);const xr=Er.status==="uploading",ao=Mn&&Mn(Er)?be.createElement(Be,null):be.createElement(ot,null);let To=xr?be.createElement(Qe.Z,null):be.createElement($e,null);return Bt==="picture"?To=xr?be.createElement(Qe.Z,null):ao:(Bt==="picture-card"||Bt==="picture-circle")&&(To=xr?Kt.uploading:ao),To},Ro=(Er,xr,ao,To)=>{const wo={type:"text",size:"small",title:To,onClick:Lo=>{xr(),(0,Ie.l$)(Er)&&Er.props.onClick&&Er.props.onClick(Lo)},className:`${ao}-list-item-action`,disabled:kr};if((0,Ie.l$)(Er)){const Lo=(0,Ie.Tm)(Er,Object.assign(Object.assign({},Er.props),{onClick:()=>{}}));return be.createElement(Ke.ZP,Object.assign({},wo,{icon:Lo}))}return be.createElement(Ke.ZP,Object.assign({},wo),be.createElement("span",null,Er))};be.useImperativeHandle(Mt,()=>({handlePreview:io,handleDownload:ko}));const{getPrefixCls:mo}=be.useContext(Ge.E_),zr=mo("upload",kt),bo=mo(),to=pe()(`${zr}-list`,`${zr}-list-${Bt}`),lo=(0,_e.Z)(vr.map(Er=>({key:Er.uid,file:Er})));let dr={motionDeadline:2e3,motionName:`${zr}-${Bt==="picture-card"||Bt==="picture-circle"?"animate-inline":"animate"}`,keys:lo,motionAppear:Po};const wr=be.useMemo(()=>{const Er=Object.assign({},(0,xe.Z)(bo));return delete Er.onAppearEnd,delete Er.onEnterEnd,delete Er.onLeaveEnd,Er},[bo]);return Bt!=="picture-card"&&Bt!=="picture-circle"&&(dr=Object.assign(Object.assign({},wr),dr)),be.createElement("div",{className:to},be.createElement(Oe.CSSMotionList,Object.assign({},dr,{component:!1}),Er=>{let{key:xr,file:ao,className:To,style:wo}=Er;return be.createElement(Nt,{key:xr,locale:Kt,prefixCls:zr,className:To,style:wo,file:ao,items:vr,progress:Pn,listType:Bt,isImgUrl:Mn,showPreviewIcon:tr,showRemoveIcon:nr,showDownloadIcon:Kr,removeIcon:gn,previewIcon:vn,downloadIcon:Wn,iconRender:pn,actionIconRender:Ro,itemRender:Yn,onPreview:io,onDownload:ko,onClose:Io})}),yr&&be.createElement(Oe.default,Object.assign({},dr,{visible:ur,forceRender:!0}),Er=>{let{className:xr,style:ao}=Er;return(0,Ie.Tm)(yr,To=>({className:pe()(To.className,xr),style:Object.assign(Object.assign(Object.assign({},ao),{pointerEvents:xr?"none":void 0}),To.style)}))}))};var en=be.forwardRef(Xt),Jt=ve(17313),wn=ve(8378),Ln=ve(83116),fn=ve(37613),Un=bt=>{const{componentCls:Mt,iconCls:Bt}=bt;return{[`${Mt}-wrapper`]:{[`${Mt}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:bt.colorFillAlter,border:`${bt.lineWidth}px dashed ${bt.colorBorder}`,borderRadius:bt.borderRadiusLG,cursor:"pointer",transition:`border-color ${bt.motionDurationSlow}`,[Mt]:{padding:`${bt.padding}px 0`},[`${Mt}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${Mt}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${Mt}-disabled):hover`]:{borderColor:bt.colorPrimaryHover},[`p${Mt}-drag-icon`]:{marginBottom:bt.margin,[Bt]:{color:bt.colorPrimary,fontSize:bt.uploadThumbnailSize}},[`p${Mt}-text`]:{margin:`0 0 ${bt.marginXXS}px`,color:bt.colorTextHeading,fontSize:bt.fontSizeLG},[`p${Mt}-hint`]:{color:bt.colorTextDescription,fontSize:bt.fontSize},[`&${Mt}-disabled`]:{cursor:"not-allowed",[`p${Mt}-drag-icon ${Bt}, p${Mt}-text, p${Mt}-hint `]:{color:bt.colorTextDisabled}}}}}},On=bt=>{const{componentCls:Mt,antCls:Bt,iconCls:Ct,fontSize:Vt,lineHeight:$t}=bt,Wt=`${Mt}-list-item`,Kt=`${Wt}-actions`,Rn=`${Wt}-action`,Mn=Math.round(Vt*$t);return{[`${Mt}-wrapper`]:{[`${Mt}-list`]:Object.assign(Object.assign({},(0,Jt.dF)()),{lineHeight:bt.lineHeight,[Wt]:{position:"relative",height:bt.lineHeight*Vt,marginTop:bt.marginXS,fontSize:Vt,display:"flex",alignItems:"center",transition:`background-color ${bt.motionDurationSlow}`,"&:hover":{backgroundColor:bt.controlItemBgHover},[`${Wt}-name`]:Object.assign(Object.assign({},Jt.vS),{padding:`0 ${bt.paddingXS}px`,lineHeight:$t,flex:"auto",transition:`all ${bt.motionDurationSlow}`}),[Kt]:{[Rn]:{opacity:0},[`${Rn}${Bt}-btn-sm`]:{height:Mn,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[` ${Rn}:focus-visible, &.picture ${Rn} `]:{opacity:1},[Ct]:{color:bt.actionsColor,transition:`all ${bt.motionDurationSlow}`},[`&:hover ${Ct}`]:{color:bt.colorText}},[`${Mt}-icon ${Ct}`]:{color:bt.colorTextDescription,fontSize:Vt},[`${Wt}-progress`]:{position:"absolute",bottom:-bt.uploadProgressOffset,width:"100%",paddingInlineStart:Vt+bt.paddingXS,fontSize:Vt,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${Wt}:hover ${Rn}`]:{opacity:1,color:bt.colorText},[`${Wt}-error`]:{color:bt.colorError,[`${Wt}-name, ${Mt}-icon ${Ct}`]:{color:bt.colorError},[Kt]:{[`${Ct}, ${Ct}:hover`]:{color:bt.colorError},[Rn]:{opacity:1}}},[`${Mt}-list-item-container`]:{transition:`opacity ${bt.motionDurationSlow}, height ${bt.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Tn=ve(36237),Zn=ve(1950);const Pr=new Tn.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),Nr=new Tn.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var jr=bt=>{const{componentCls:Mt}=bt,Bt=`${Mt}-animate-inline`;return[{[`${Mt}-wrapper`]:{[`${Bt}-appear, ${Bt}-enter, ${Bt}-leave`]:{animationDuration:bt.motionDurationSlow,animationTimingFunction:bt.motionEaseInOutCirc,animationFillMode:"forwards"},[`${Bt}-appear, ${Bt}-enter`]:{animationName:Pr},[`${Bt}-leave`]:{animationName:Nr}}},{[`${Mt}-wrapper`]:(0,Zn.J$)(bt)},Pr,Nr]},ir=ve(30071),gr=ve(64993);const Ot=bt=>{const{componentCls:Mt,iconCls:Bt,uploadThumbnailSize:Ct,uploadProgressOffset:Vt}=bt,$t=`${Mt}-list`,Wt=`${$t}-item`;return{[`${Mt}-wrapper`]:{[` ${$t}${$t}-picture, ${$t}${$t}-picture-card, ${$t}${$t}-picture-circle `]:{[Wt]:{position:"relative",height:Ct+bt.lineWidth*2+bt.paddingXS*2,padding:bt.paddingXS,border:`${bt.lineWidth}px ${bt.lineType} ${bt.colorBorder}`,borderRadius:bt.borderRadiusLG,"&:hover":{background:"transparent"},[`${Wt}-thumbnail`]:Object.assign(Object.assign({},Jt.vS),{width:Ct,height:Ct,lineHeight:`${Ct+bt.paddingSM}px`,textAlign:"center",flex:"none",[Bt]:{fontSize:bt.fontSizeHeading2,color:bt.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${Wt}-progress`]:{bottom:Vt,width:`calc(100% - ${bt.paddingSM*2}px)`,marginTop:0,paddingInlineStart:Ct+bt.paddingXS}},[`${Wt}-error`]:{borderColor:bt.colorError,[`${Wt}-thumbnail ${Bt}`]:{[`svg path[fill='${ir.blue[0]}']`]:{fill:bt.colorErrorBg},[`svg path[fill='${ir.blue.primary}']`]:{fill:bt.colorError}}},[`${Wt}-uploading`]:{borderStyle:"dashed",[`${Wt}-name`]:{marginBottom:Vt}}},[`${$t}${$t}-picture-circle ${Wt}`]:{[`&, &::before, ${Wt}-thumbnail`]:{borderRadius:"50%"}}}}},jt=bt=>{const{componentCls:Mt,iconCls:Bt,fontSizeLG:Ct,colorTextLightSolid:Vt}=bt,$t=`${Mt}-list`,Wt=`${$t}-item`,Kt=bt.uploadPicCardSize;return{[` ${Mt}-wrapper${Mt}-picture-card-wrapper, ${Mt}-wrapper${Mt}-picture-circle-wrapper `]:Object.assign(Object.assign({},(0,Jt.dF)()),{display:"inline-block",width:"100%",[`${Mt}${Mt}-select`]:{width:Kt,height:Kt,marginInlineEnd:bt.marginXS,marginBottom:bt.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:bt.colorFillAlter,border:`${bt.lineWidth}px dashed ${bt.colorBorder}`,borderRadius:bt.borderRadiusLG,cursor:"pointer",transition:`border-color ${bt.motionDurationSlow}`,[`> ${Mt}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${Mt}-disabled):hover`]:{borderColor:bt.colorPrimary}},[`${$t}${$t}-picture-card, ${$t}${$t}-picture-circle`]:{[`${$t}-item-container`]:{display:"inline-block",width:Kt,height:Kt,marginBlock:`0 ${bt.marginXS}px`,marginInline:`0 ${bt.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[Wt]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${bt.paddingXS*2}px)`,height:`calc(100% - ${bt.paddingXS*2}px)`,backgroundColor:bt.colorBgMask,opacity:0,transition:`all ${bt.motionDurationSlow}`,content:'" "'}},[`${Wt}:hover`]:{[`&::before, ${Wt}-actions`]:{opacity:1}},[`${Wt}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${bt.motionDurationSlow}`,[`${Bt}-eye, ${Bt}-download, ${Bt}-delete`]:{zIndex:10,width:Ct,margin:`0 ${bt.marginXXS}px`,fontSize:Ct,cursor:"pointer",transition:`all ${bt.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${Wt}-actions, ${Wt}-actions:hover`]:{[`${Bt}-eye, ${Bt}-download, ${Bt}-delete`]:{color:new gr.C(Vt).setAlpha(.65).toRgbString(),"&:hover":{color:Vt}}},[`${Wt}-thumbnail, ${Wt}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${Wt}-name`]:{display:"none",textAlign:"center"},[`${Wt}-file + ${Wt}-name`]:{position:"absolute",bottom:bt.margin,display:"block",width:`calc(100% - ${bt.paddingXS*2}px)`},[`${Wt}-uploading`]:{[`&${Wt}`]:{backgroundColor:bt.colorFillAlter},[`&::before, ${Bt}-eye, ${Bt}-download, ${Bt}-delete`]:{display:"none"}},[`${Wt}-progress`]:{bottom:bt.marginXL,width:`calc(100% - ${bt.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${Mt}-wrapper${Mt}-picture-circle-wrapper`]:{[`${Mt}${Mt}-select`]:{borderRadius:"50%"}}}};var tn=bt=>{const{componentCls:Mt}=bt;return{[`${Mt}-rtl`]:{direction:"rtl"}}};const Bn=bt=>{const{componentCls:Mt,colorTextDisabled:Bt}=bt;return{[`${Mt}-wrapper`]:Object.assign(Object.assign({},(0,Jt.Wf)(bt)),{[Mt]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${Mt}-select`]:{display:"inline-block"},[`${Mt}-disabled`]:{color:Bt,cursor:"not-allowed"}})}};var Cn=(0,Ln.Z)("Upload",bt=>{const{fontSizeHeading3:Mt,fontSize:Bt,lineHeight:Ct,lineWidth:Vt,controlHeightLG:$t}=bt,Wt=Math.round(Bt*Ct),Kt=(0,fn.TS)(bt,{uploadThumbnailSize:Mt*2,uploadProgressOffset:Wt/2+Vt,uploadPicCardSize:$t*2.55});return[Bn(Kt),Un(Kt),Ot(Kt),jt(Kt),On(Kt),jr(Kt),tn(Kt),(0,wn.Z)(Kt)]},bt=>({actionsColor:bt.colorTextDescription})),Fr=function(bt,Mt,Bt,Ct){function Vt($t){return $t instanceof Bt?$t:new Bt(function(Wt){Wt($t)})}return new(Bt||(Bt=Promise))(function($t,Wt){function Kt(kt){try{Mn(Ct.next(kt))}catch(vr){Wt(vr)}}function Rn(kt){try{Mn(Ct.throw(kt))}catch(vr){Wt(vr)}}function Mn(kt){kt.done?$t(kt.value):Vt(kt.value).then(Kt,Rn)}Mn((Ct=Ct.apply(bt,Mt||[])).next())})};const rr=`__LIST_IGNORE_${Date.now()}__`,Ht=(bt,Mt)=>{const{fileList:Bt,defaultFileList:Ct,onRemove:Vt,showUploadList:$t=!0,listType:Wt="text",onPreview:Kt,onDownload:Rn,onChange:Mn,onDrop:kt,previewFile:vr,disabled:tr,locale:nr,iconRender:Kr,isImageUrl:gn,progress:vn,prefixCls:Wn,className:Pn,type:yr="select",children:ur,style:Yn,itemRender:kr,maxCount:Cr,data:Po={},multiple:po=!1,action:io="",accept:ko="",supportServerRender:Io=!0,rootClassName:pn}=bt,Ro=be.useContext(Fe.Z),mo=tr!=null?tr:Ro,[zr,bo]=(0,je.Z)(Ct||[],{value:Bt,postState:kn=>kn!=null?kn:[]}),[to,lo]=be.useState("drop"),vo=be.useRef(null);be.useMemo(()=>{const kn=Date.now();(Bt||[]).forEach((hr,Sr)=>{!hr.uid&&!Object.isFrozen(hr)&&(hr.uid=`__AUTO__${kn}_${Sr}__`)})},[Bt]);const dr=(kn,hr,Sr)=>{let Dn=(0,_e.Z)(hr),Or=!1;Cr===1?Dn=Dn.slice(-1):Cr&&(Or=Dn.length>Cr,Dn=Dn.slice(0,Cr)),(0,Me.flushSync)(()=>{bo(Dn)});const Gr={file:kn,fileList:Dn};Sr&&(Gr.event=Sr),(!Or||Dn.some(Tr=>Tr.uid===kn.uid))&&(0,Me.flushSync)(()=>{Mn==null||Mn(Gr)})},wr=(kn,hr)=>Fr(void 0,void 0,void 0,function*(){const{beforeUpload:Sr,transformFile:Dn}=bt;let Or=kn;if(Sr){const Gr=yield Sr(kn,hr);if(Gr===!1)return!1;if(delete kn[rr],Gr===rr)return Object.defineProperty(kn,rr,{value:!0,configurable:!0}),!1;typeof Gr=="object"&&Gr&&(Or=Gr)}return Dn&&(Or=yield Dn(Or)),Or}),Er=kn=>{const hr=kn.filter(Or=>!Or.file[rr]);if(!hr.length)return;const Sr=hr.map(Or=>rt(Or.file));let Dn=(0,_e.Z)(zr);Sr.forEach(Or=>{Dn=ke(Or,Dn)}),Sr.forEach((Or,Gr)=>{let Tr=Or;if(hr[Gr].parsedFile)Or.status="uploading";else{const{originFileObj:pr}=Or;let Br;try{Br=new File([pr],pr.name,{type:pr.type})}catch(co){Br=new Blob([pr],{type:pr.type}),Br.name=pr.name,Br.lastModifiedDate=new Date,Br.lastModified=new Date().getTime()}Br.uid=Or.uid,Tr=Br}dr(Tr,Dn)})},xr=(kn,hr,Sr)=>{try{typeof kn=="string"&&(kn=JSON.parse(kn))}catch(Gr){}if(!tt(hr,zr))return;const Dn=rt(hr);Dn.status="done",Dn.percent=100,Dn.response=kn,Dn.xhr=Sr;const Or=ke(Dn,zr);dr(Dn,Or)},ao=(kn,hr)=>{if(!tt(hr,zr))return;const Sr=rt(hr);Sr.status="uploading",Sr.percent=kn.percent;const Dn=ke(Sr,zr);dr(Sr,Dn,kn)},To=(kn,hr,Sr)=>{if(!tt(Sr,zr))return;const Dn=rt(Sr);Dn.error=kn,Dn.response=hr,Dn.status="error";const Or=ke(Dn,zr);dr(Dn,Or)},wo=kn=>{let hr;Promise.resolve(typeof Vt=="function"?Vt(kn):Vt).then(Sr=>{var Dn;if(Sr===!1)return;const Or=mt(kn,zr);Or&&(hr=Object.assign(Object.assign({},kn),{status:"removed"}),zr==null||zr.forEach(Gr=>{const Tr=hr.uid!==void 0?"uid":"name";Gr[Tr]===hr[Tr]&&!Object.isFrozen(Gr)&&(Gr.status="removed")}),(Dn=vo.current)===null||Dn===void 0||Dn.abort(hr),dr(hr,Or))})},Lo=kn=>{lo(kn.type),kn.type==="drop"&&(kt==null||kt(kn))};be.useImperativeHandle(Mt,()=>({onBatchStart:Er,onSuccess:xr,onProgress:ao,onError:To,fileList:zr,upload:vo.current}));const{getPrefixCls:Yo,direction:Mo,upload:$r}=be.useContext(Ge.E_),no=Yo("upload",Wn),zo=Object.assign(Object.assign({onBatchStart:Er,onError:To,onProgress:ao,onSuccess:xr},bt),{data:Po,multiple:po,action:io,accept:ko,supportServerRender:Io,prefixCls:no,disabled:mo,beforeUpload:wr,onChange:void 0});delete zo.className,delete zo.style,(!ur||mo)&&delete zo.id;const[Tt,Gt]=Cn(no),[on]=(0,Je.Z)("Upload",qe.Z.Upload),{showRemoveIcon:ln,showPreviewIcon:Qt,showDownloadIcon:Yt,removeIcon:qt,previewIcon:an,downloadIcon:hn}=typeof $t=="boolean"?{}:$t,An=(kn,hr)=>$t?be.createElement(en,{prefixCls:no,listType:Wt,items:zr,previewFile:vr,onPreview:Kt,onDownload:Rn,onRemove:wo,showRemoveIcon:!mo&&ln,showPreviewIcon:Qt,showDownloadIcon:Yt,removeIcon:qt,previewIcon:an,downloadIcon:hn,iconRender:Kr,locale:Object.assign(Object.assign({},on),nr),isImageUrl:gn,progress:vn,appendAction:kn,appendActionVisible:hr,itemRender:kr,disabled:mo}):kn,mn=pe()(`${no}-wrapper`,Pn,pn,Gt,$r==null?void 0:$r.className,{[`${no}-rtl`]:Mo==="rtl",[`${no}-picture-card-wrapper`]:Wt==="picture-card",[`${no}-picture-circle-wrapper`]:Wt==="picture-circle"}),_r=Object.assign(Object.assign({},$r==null?void 0:$r.style),Yn);if(yr==="drag"){const kn=pe()(Gt,no,`${no}-drag`,{[`${no}-drag-uploading`]:zr.some(hr=>hr.status==="uploading"),[`${no}-drag-hover`]:to==="dragover",[`${no}-disabled`]:mo,[`${no}-rtl`]:Mo==="rtl"});return Tt(be.createElement("span",{className:mn},be.createElement("div",{className:kn,style:_r,onDrop:Lo,onDragOver:Lo,onDragLeave:Lo},be.createElement(Ce,Object.assign({},zo,{ref:vo,className:`${no}-btn`}),be.createElement("div",{className:`${no}-drag-container`},ur))),An()))}const Kn=pe()(no,`${no}-select`,{[`${no}-disabled`]:mo}),sr=(kn=>be.createElement("div",{className:Kn,style:kn},be.createElement(Ce,Object.assign({},zo,{ref:vo}))))(ur?void 0:{display:"none"});return Tt(Wt==="picture-card"||Wt==="picture-circle"?be.createElement("span",{className:mn},An(sr,!!ur)):be.createElement("span",{className:mn},sr,An()))};var rn=be.forwardRef(Ht),Dt=function(bt,Mt){var Bt={};for(var Ct in bt)Object.prototype.hasOwnProperty.call(bt,Ct)&&Mt.indexOf(Ct)<0&&(Bt[Ct]=bt[Ct]);if(bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Vt=0,Ct=Object.getOwnPropertySymbols(bt);Vt{var{style:Bt,height:Ct}=bt,Vt=Dt(bt,["style","height"]);return be.createElement(rn,Object.assign({ref:Mt},Vt,{type:"drag",style:Object.assign(Object.assign({},Bt),{height:Ct})}))});const In=rn;In.Dragger=En,In.LIST_IGNORE=rr;var Sn=In},24334:function(Et,dt,ve){var be,_e;(function(E,pe){Et.exports=pe(E)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof ve.g!="undefined"?ve.g:this,function(E){"use strict";E=E||{};var pe=E.Base64,de="2.6.4",se="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ne=function(Ee){for(var Ae={},Ce=0,je=Ee.length;Ce>>6)+ie(128|Ae&63):ie(224|Ae>>>12&15)+ie(128|Ae>>>6&63)+ie(128|Ae&63)}else{var Ae=65536+(Ee.charCodeAt(0)-55296)*1024+(Ee.charCodeAt(1)-56320);return ie(240|Ae>>>18&7)+ie(128|Ae>>>12&63)+ie(128|Ae>>>6&63)+ie(128|Ae&63)}},ue=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,ae=function(Ee){return Ee.replace(ue,ce)},oe=function(Ee){var Ae=[0,2,1][Ee.length%3],Ce=Ee.charCodeAt(0)<<16|(Ee.length>1?Ee.charCodeAt(1):0)<<8|(Ee.length>2?Ee.charCodeAt(2):0),je=[se.charAt(Ce>>>18),se.charAt(Ce>>>12&63),Ae>=2?"=":se.charAt(Ce>>>6&63),Ae>=1?"=":se.charAt(Ce&63)];return je.join("")},re=E.btoa&&typeof E.btoa=="function"?function(Ee){return E.btoa(Ee)}:function(Ee){if(Ee.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return Ee.replace(/[\s\S]{1,3}/g,oe)},ee=function(Ee){return re(ae(String(Ee)))},a=function(Ee){return Ee.replace(/[+\/]/g,function(Ae){return Ae=="+"?"-":"_"}).replace(/=/g,"")},y=function(Ee,Ae){return Ae?a(ee(Ee)):ee(Ee)},x=function(Ee){return y(Ee,!0)},b;E.Uint8Array&&(b=function(Ee,Ae){for(var Ce="",je=0,Me=Ee.length;je>>18)+se.charAt(qe>>>12&63)+(typeof Fe!="undefined"?se.charAt(qe>>>6&63):"=")+(typeof Je!="undefined"?se.charAt(qe&63):"=")}return Ae?a(Ce):Ce});var z=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,te=function(Ee){switch(Ee.length){case 4:var Ae=(7&Ee.charCodeAt(0))<<18|(63&Ee.charCodeAt(1))<<12|(63&Ee.charCodeAt(2))<<6|63&Ee.charCodeAt(3),Ce=Ae-65536;return ie((Ce>>>10)+55296)+ie((Ce&1023)+56320);case 3:return ie((15&Ee.charCodeAt(0))<<12|(63&Ee.charCodeAt(1))<<6|63&Ee.charCodeAt(2));default:return ie((31&Ee.charCodeAt(0))<<6|63&Ee.charCodeAt(1))}},le=function(Ee){return Ee.replace(z,te)},fe=function(Ee){var Ae=Ee.length,Ce=Ae%4,je=(Ae>0?ne[Ee.charAt(0)]<<18:0)|(Ae>1?ne[Ee.charAt(1)]<<12:0)|(Ae>2?ne[Ee.charAt(2)]<<6:0)|(Ae>3?ne[Ee.charAt(3)]:0),Me=[ie(je>>>16),ie(je>>>8&255),ie(je&255)];return Me.length-=[0,0,2,1][Ce],Me.join("")},ge=E.atob&&typeof E.atob=="function"?function(Ee){return E.atob(Ee)}:function(Ee){return Ee.replace(/\S{1,4}/g,fe)},me=function(Ee){return ge(String(Ee).replace(/[^A-Za-z0-9\+\/]/g,""))},he=function(Ee){return le(ge(Ee))},Se=function(Ee){return String(Ee).replace(/[-_]/g,function(Ae){return Ae=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},ye=function(Ee){return he(Se(Ee))},Pe;E.Uint8Array&&(Pe=function(Ee){return Uint8Array.from(me(Se(Ee)),function(Ae){return Ae.charCodeAt(0)})});var we=function(){var Ee=E.Base64;return E.Base64=pe,Ee};if(E.Base64={VERSION:de,atob:me,btoa:re,fromBase64:ye,toBase64:y,utob:ae,encode:y,encodeURI:x,btou:le,decode:ye,noConflict:we,fromUint8Array:b,toUint8Array:Pe},typeof Object.defineProperty=="function"){var De=function(Ee){return{value:Ee,enumerable:!1,writable:!0,configurable:!0}};E.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",De(function(){return ye(this)})),Object.defineProperty(String.prototype,"toBase64",De(function(Ee){return y(this,Ee)})),Object.defineProperty(String.prototype,"toBase64URI",De(function(){return y(this,!0)}))}}return E.Meteor&&(Base64=E.Base64),Et.exports?Et.exports.Base64=E.Base64:(be=[],_e=function(){return E.Base64}.apply(dt,be),_e!==void 0&&(Et.exports=_e)),{Base64:E.Base64}})},91735:function(Et,dt){"use strict";dt.Z={items_per_page:"\u6761/\u9875",jump_to:"\u8DF3\u81F3",jump_to_confirm:"\u786E\u5B9A",page:"\u9875",prev_page:"\u4E0A\u4E00\u9875",next_page:"\u4E0B\u4E00\u9875",prev_5:"\u5411\u524D 5 \u9875",next_5:"\u5411\u540E 5 \u9875",prev_3:"\u5411\u524D 3 \u9875",next_3:"\u5411\u540E 3 \u9875",page_size:"\u9875\u7801"}},39417:function(Et,dt,ve){"use strict";ve.d(dt,{Z:function(){return he}});var be=ve(54476),_e=ve(20068),E=ve(75931),pe=ve(33885),de=ve(67732),se=ve(83652),ne=ve(31226),ie=ve(42403),ce=ve(158),ue=ve(92310),ae=ve.n(ue),oe=ve(26112),re=ve(59301),ee=ve(39378),a=function(ye){for(var Pe=ye.prefixCls,we=ye.level,De=ye.isStart,Ee=ye.isEnd,Ae="".concat(Pe,"-indent-unit"),Ce=[],je=0;je0&&arguments[0]!==void 0?arguments[0]:[],et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Ze=Ne.length,Be=et.length;if(Math.abs(Ze-Be)!==1)return{add:!1,key:null};function Oe(Te,xe){var Ie=new Map;Te.forEach(function(rt){Ie.set(rt,!0)});var Ke=xe.filter(function(rt){return!Ie.has(rt)});return Ke.length===1?Ke[0]:null}return Ze ").concat(et);return et}var Ue=y.forwardRef(function(Ne,et){var Ze=Ne.prefixCls,Be=Ne.data,Oe=Ne.selectable,Te=Ne.checkable,xe=Ne.expandedKeys,Ie=Ne.selectedKeys,Ke=Ne.checkedKeys,rt=Ne.loadedKeys,ke=Ne.loadingKeys,tt=Ne.halfCheckedKeys,mt=Ne.keyEntities,ct=Ne.disabled,ht=Ne.dragging,lt=Ne.dragOverNodeKey,pt=Ne.dropPosition,at=Ne.motion,st=Ne.height,ft=Ne.itemHeight,vt=Ne.virtual,St=Ne.focusable,xt=Ne.activeItem,Ft=Ne.focused,Nt=Ne.tabIndex,Xt=Ne.onKeyDown,dn=Ne.onFocus,en=Ne.onBlur,Jt=Ne.onActiveChange,wn=Ne.onListChangeStart,Ln=Ne.onListChangeEnd,fn=(0,le.Z)(Ne,je),zn=y.useRef(null),Un=y.useRef(null);y.useImperativeHandle(et,function(){return{scrollTo:function(Sn){zn.current.scrollTo(Sn)},getIndentWidth:function(){return Un.current.offsetWidth}}});var Nn=y.useState(xe),On=(0,te.Z)(Nn,2),Tn=On[0],Zn=On[1],Pr=y.useState(Be),Nr=(0,te.Z)(Pr,2),qn=Nr[0],jr=Nr[1],ir=y.useState(Be),gr=(0,te.Z)(ir,2),Ot=gr[0],jt=gr[1],_t=y.useState([]),tn=(0,te.Z)(_t,2),Bn=tn[0],Cn=tn[1],Fr=y.useState(null),rr=(0,te.Z)(Fr,2),Ht=rr[0],Lt=rr[1],rn=y.useRef(Be);rn.current=Be;function Dt(){var In=rn.current;jr(In),jt(In),Cn([]),Lt(null),Ln()}(0,fe.Z)(function(){Zn(xe);var In=Ae(Tn,xe);if(In.key!==null)if(In.add){var Sn=qn.findIndex(function($t){var Wt=$t.key;return Wt===In.key}),bt=Ve(Ce(qn,Be,In.key),vt,st,ft),Mt=qn.slice();Mt.splice(Sn+1,0,Xe),jt(Mt),Cn(bt),Lt("show")}else{var Bt=Be.findIndex(function($t){var Wt=$t.key;return Wt===In.key}),Ct=Ve(Ce(Be,qn,In.key),vt,st,ft),Vt=Be.slice();Vt.splice(Bt+1,0,Xe),jt(Vt),Cn(Ct),Lt("hide")}else qn!==Be&&(jr(Be),jt(Be))},[xe,Be]),y.useEffect(function(){ht||Dt()},[ht]);var un=at?Ot:Be,En={expandedKeys:xe,selectedKeys:Ie,loadedKeys:rt,loadingKeys:ke,checkedKeys:Ke,halfCheckedKeys:tt,dragOverNodeKey:lt,dropPosition:pt,keyEntities:mt};return y.createElement(y.Fragment,null,Ft&&xt&&y.createElement("span",{style:Me,"aria-live":"assertive"},ze(xt)),y.createElement("div",null,y.createElement("input",{style:Me,disabled:St===!1||ct,tabIndex:St!==!1?Nt:null,onKeyDown:Xt,onFocus:dn,onBlur:en,value:"",onChange:Ge,"aria-label":"for screen reader"})),y.createElement("div",{className:"".concat(Ze,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},y.createElement("div",{className:"".concat(Ze,"-indent")},y.createElement("div",{ref:Un,className:"".concat(Ze,"-indent-unit")}))),y.createElement(ge.Z,(0,be.Z)({},fn,{data:un,itemKey:We,height:st,fullHeight:!1,virtual:vt,itemHeight:ft,prefixCls:"".concat(Ze,"-list"),ref:zn,onVisibleChange:function(Sn,bt){var Mt=new Set(Sn),Bt=bt.filter(function(Ct){return!Mt.has(Ct)});Bt.some(function(Ct){return We(Ct)===Fe})&&Dt()}}),function(In){var Sn=In.pos,bt=(0,be.Z)({},(z(In.data),In.data)),Mt=In.title,Bt=In.key,Ct=In.isStart,Vt=In.isEnd,$t=(0,ye.km)(Bt,Sn);delete bt.key,delete bt.children;var Wt=(0,ye.H8)($t,En);return y.createElement(Ee,(0,be.Z)({},bt,Wt,{title:Mt,active:!!xt&&Bt===xt.key,pos:Sn,data:In.data,isStart:Ct,isEnd:Vt,motion:at,motionNodes:Bt===Fe?Bn:null,motionType:Ht,onMotionStart:wn,onMotionEnd:Dt,treeNodeRequiredProps:En,onMouseMove:function(){Jt(null)}}))}))});Ue.displayName="NodeList";var ot=Ue,Qe=ve(35654),ut=ve(90782),Ye=ve(67841),He=10,Re=function(Ne){(0,ce.Z)(Ze,Ne);var et=(0,ue.Z)(Ze);function Ze(){var Be;(0,se.Z)(this,Ze);for(var Oe=arguments.length,Te=new Array(Oe),xe=0;xe2&&arguments[2]!==void 0?arguments[2]:!1,tt=Be.state,mt=tt.dragChildrenKeys,ct=tt.dropPosition,ht=tt.dropTargetKey,lt=tt.dropTargetPos,pt=tt.dropAllowed;if(pt){var at=Be.props.onDrop;if(Be.setState({dragOverNodeKey:null}),Be.cleanDragState(),ht!==null){var st=(0,pe.Z)((0,pe.Z)({},(0,ye.H8)(ht,Be.getTreeNodeRequiredProps())),{},{active:((rt=Be.getActiveItem())===null||rt===void 0?void 0:rt.key)===ht,data:(0,Ye.Z)(Be.state.keyEntities,ht).node}),ft=mt.indexOf(ht)!==-1;(0,a.ZP)(!ft,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var vt=(0,Qe.yx)(lt),St={event:Ie,node:(0,ye.F)(st),dragNode:Be.dragNode?(0,ye.F)(Be.dragNode.props):null,dragNodesKeys:[Be.dragNode.props.eventKey].concat(mt),dropToGap:ct!==0,dropPosition:ct+Number(vt[vt.length-1])};ke||at==null||at(St),Be.dragNode=null}}},Be.cleanDragState=function(){var Ie=Be.state.draggingNodeKey;Ie!==null&&Be.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),Be.dragStartMousePosition=null,Be.currentMouseOverDroppableNodeKey=null},Be.triggerExpandActionExpand=function(Ie,Ke){var rt=Be.state,ke=rt.expandedKeys,tt=rt.flattenNodes,mt=Ke.expanded,ct=Ke.key,ht=Ke.isLeaf;if(!(ht||Ie.shiftKey||Ie.metaKey||Ie.ctrlKey)){var lt=tt.filter(function(at){return at.key===ct})[0],pt=(0,ye.F)((0,pe.Z)((0,pe.Z)({},(0,ye.H8)(ct,Be.getTreeNodeRequiredProps())),{},{data:lt.data}));Be.setExpandedKeys(mt?(0,Qe._5)(ke,ct):(0,Qe.L0)(ke,ct)),Be.onNodeExpand(Ie,pt)}},Be.onNodeClick=function(Ie,Ke){var rt=Be.props,ke=rt.onClick,tt=rt.expandAction;tt==="click"&&Be.triggerExpandActionExpand(Ie,Ke),ke==null||ke(Ie,Ke)},Be.onNodeDoubleClick=function(Ie,Ke){var rt=Be.props,ke=rt.onDoubleClick,tt=rt.expandAction;tt==="doubleClick"&&Be.triggerExpandActionExpand(Ie,Ke),ke==null||ke(Ie,Ke)},Be.onNodeSelect=function(Ie,Ke){var rt=Be.state.selectedKeys,ke=Be.state,tt=ke.keyEntities,mt=ke.fieldNames,ct=Be.props,ht=ct.onSelect,lt=ct.multiple,pt=Ke.selected,at=Ke[mt.key],st=!pt;st?lt?rt=(0,Qe.L0)(rt,at):rt=[at]:rt=(0,Qe._5)(rt,at);var ft=rt.map(function(vt){var St=(0,Ye.Z)(tt,vt);return St?St.node:null}).filter(function(vt){return vt});Be.setUncontrolledState({selectedKeys:rt}),ht==null||ht(rt,{event:"select",selected:st,node:Ke,selectedNodes:ft,nativeEvent:Ie.nativeEvent})},Be.onNodeCheck=function(Ie,Ke,rt){var ke=Be.state,tt=ke.keyEntities,mt=ke.checkedKeys,ct=ke.halfCheckedKeys,ht=Be.props,lt=ht.checkStrictly,pt=ht.onCheck,at=Ke.key,st,ft={event:"check",node:Ke,checked:rt,nativeEvent:Ie.nativeEvent};if(lt){var vt=rt?(0,Qe.L0)(mt,at):(0,Qe._5)(mt,at),St=(0,Qe._5)(ct,at);st={checked:vt,halfChecked:St},ft.checkedNodes=vt.map(function(en){return(0,Ye.Z)(tt,en)}).filter(function(en){return en}).map(function(en){return en.node}),Be.setUncontrolledState({checkedKeys:vt})}else{var xt=(0,ut.S)([].concat((0,de.Z)(mt),[at]),!0,tt),Ft=xt.checkedKeys,Nt=xt.halfCheckedKeys;if(!rt){var Xt=new Set(Ft);Xt.delete(at);var dn=(0,ut.S)(Array.from(Xt),{checked:!1,halfCheckedKeys:Nt},tt);Ft=dn.checkedKeys,Nt=dn.halfCheckedKeys}st=Ft,ft.checkedNodes=[],ft.checkedNodesPositions=[],ft.halfCheckedKeys=Nt,Ft.forEach(function(en){var Jt=(0,Ye.Z)(tt,en);if(Jt){var wn=Jt.node,Ln=Jt.pos;ft.checkedNodes.push(wn),ft.checkedNodesPositions.push({node:wn,pos:Ln})}}),Be.setUncontrolledState({checkedKeys:Ft},!1,{halfCheckedKeys:Nt})}pt==null||pt(st,ft)},Be.onNodeLoad=function(Ie){var Ke=Ie.key,rt=new Promise(function(ke,tt){Be.setState(function(mt){var ct=mt.loadedKeys,ht=ct===void 0?[]:ct,lt=mt.loadingKeys,pt=lt===void 0?[]:lt,at=Be.props,st=at.loadData,ft=at.onLoad;if(!st||ht.indexOf(Ke)!==-1||pt.indexOf(Ke)!==-1)return null;var vt=st(Ie);return vt.then(function(){var St=Be.state.loadedKeys,xt=(0,Qe.L0)(St,Ke);ft==null||ft(xt,{event:"load",node:Ie}),Be.setUncontrolledState({loadedKeys:xt}),Be.setState(function(Ft){return{loadingKeys:(0,Qe._5)(Ft.loadingKeys,Ke)}}),ke()}).catch(function(St){if(Be.setState(function(Ft){return{loadingKeys:(0,Qe._5)(Ft.loadingKeys,Ke)}}),Be.loadingRetryTimes[Ke]=(Be.loadingRetryTimes[Ke]||0)+1,Be.loadingRetryTimes[Ke]>=He){var xt=Be.state.loadedKeys;(0,a.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),Be.setUncontrolledState({loadedKeys:(0,Qe.L0)(xt,Ke)}),ke()}tt(St)}),{loadingKeys:(0,Qe.L0)(pt,Ke)}})});return rt.catch(function(){}),rt},Be.onNodeMouseEnter=function(Ie,Ke){var rt=Be.props.onMouseEnter;rt==null||rt({event:Ie,node:Ke})},Be.onNodeMouseLeave=function(Ie,Ke){var rt=Be.props.onMouseLeave;rt==null||rt({event:Ie,node:Ke})},Be.onNodeContextMenu=function(Ie,Ke){var rt=Be.props.onRightClick;rt&&(Ie.preventDefault(),rt({event:Ie,node:Ke}))},Be.onFocus=function(){var Ie=Be.props.onFocus;Be.setState({focused:!0});for(var Ke=arguments.length,rt=new Array(Ke),ke=0;ke1&&arguments[1]!==void 0?arguments[1]:!1,rt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!Be.destroyed){var ke=!1,tt=!0,mt={};Object.keys(Ie).forEach(function(ct){if(ct in Be.props){tt=!1;return}ke=!0,mt[ct]=Ie[ct]}),ke&&(!Ke||tt)&&Be.setState((0,pe.Z)((0,pe.Z)({},mt),rt))}},Be.scrollTo=function(Ie){Be.listRef.current.scrollTo(Ie)},Be}return(0,ne.Z)(Ze,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var Oe=this.props.activeKey;Oe!==void 0&&Oe!==this.state.activeKey&&(this.setState({activeKey:Oe}),Oe!==null&&this.scrollTo({key:Oe}))}},{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 Oe,Te=this.state,xe=Te.focused,Ie=Te.flattenNodes,Ke=Te.keyEntities,rt=Te.draggingNodeKey,ke=Te.activeKey,tt=Te.dropLevelOffset,mt=Te.dropContainerKey,ct=Te.dropTargetKey,ht=Te.dropPosition,lt=Te.dragOverNodeKey,pt=Te.indent,at=this.props,st=at.prefixCls,ft=at.className,vt=at.style,St=at.showLine,xt=at.focusable,Ft=at.tabIndex,Nt=Ft===void 0?0:Ft,Xt=at.selectable,dn=at.showIcon,en=at.icon,Jt=at.switcherIcon,wn=at.draggable,Ln=at.checkable,fn=at.checkStrictly,zn=at.disabled,Un=at.motion,Nn=at.loadData,On=at.filterTreeNode,Tn=at.height,Zn=at.itemHeight,Pr=at.virtual,Nr=at.titleRender,qn=at.dropIndicatorRender,jr=at.onContextMenu,ir=at.onScroll,gr=at.direction,Ot=at.rootClassName,jt=at.rootStyle,_t=(0,ee.Z)(this.props,{aria:!0,data:!0}),tn;return wn&&((0,E.Z)(wn)==="object"?tn=wn:typeof wn=="function"?tn={nodeDraggable:wn}:tn={}),y.createElement(x.k.Provider,{value:{prefixCls:st,selectable:Xt,showIcon:dn,icon:en,switcherIcon:Jt,draggable:tn,draggingNodeKey:rt,checkable:Ln,checkStrictly:fn,disabled:zn,keyEntities:Ke,dropLevelOffset:tt,dropContainerKey:mt,dropTargetKey:ct,dropPosition:ht,dragOverNodeKey:lt,indent:pt,direction:gr,dropIndicatorRender:qn,loadData:Nn,filterTreeNode:On,titleRender:Nr,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},y.createElement("div",{role:"tree",className:oe()(st,ft,Ot,(Oe={},(0,_e.Z)(Oe,"".concat(st,"-show-line"),St),(0,_e.Z)(Oe,"".concat(st,"-focused"),xe),(0,_e.Z)(Oe,"".concat(st,"-active-focused"),ke!==null),Oe)),style:jt},y.createElement(ot,(0,be.Z)({ref:this.listRef,prefixCls:st,style:vt,data:Ie,disabled:zn,selectable:Xt,checkable:!!Ln,motion:Un,dragging:rt!==null,height:Tn,itemHeight:Zn,virtual:Pr,focusable:xt,focused:xe,tabIndex:Nt,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:jr,onScroll:ir},this.getTreeNodeRequiredProps(),_t))))}}],[{key:"getDerivedStateFromProps",value:function(Oe,Te){var xe=Te.prevProps,Ie={prevProps:Oe};function Ke(xt){return!xe&&xt in Oe||xe&&xe[xt]!==Oe[xt]}var rt,ke=Te.fieldNames;if(Ke("fieldNames")&&(ke=(0,ye.w$)(Oe.fieldNames),Ie.fieldNames=ke),Ke("treeData")?rt=Oe.treeData:Ke("children")&&((0,a.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),rt=(0,ye.zn)(Oe.children)),rt){Ie.treeData=rt;var tt=(0,ye.I8)(rt,{fieldNames:ke});Ie.keyEntities=(0,pe.Z)((0,_e.Z)({},Fe,qe),tt.keyEntities)}var mt=Ie.keyEntities||Te.keyEntities;if(Ke("expandedKeys")||xe&&Ke("autoExpandParent"))Ie.expandedKeys=Oe.autoExpandParent||!xe&&Oe.defaultExpandParent?(0,Qe.r7)(Oe.expandedKeys,mt):Oe.expandedKeys;else if(!xe&&Oe.defaultExpandAll){var ct=(0,pe.Z)({},mt);delete ct[Fe],Ie.expandedKeys=Object.keys(ct).map(function(xt){return ct[xt].key})}else!xe&&Oe.defaultExpandedKeys&&(Ie.expandedKeys=Oe.autoExpandParent||Oe.defaultExpandParent?(0,Qe.r7)(Oe.defaultExpandedKeys,mt):Oe.defaultExpandedKeys);if(Ie.expandedKeys||delete Ie.expandedKeys,rt||Ie.expandedKeys){var ht=(0,ye.oH)(rt||Te.treeData,Ie.expandedKeys||Te.expandedKeys,ke);Ie.flattenNodes=ht}if(Oe.selectable&&(Ke("selectedKeys")?Ie.selectedKeys=(0,Qe.BT)(Oe.selectedKeys,Oe):!xe&&Oe.defaultSelectedKeys&&(Ie.selectedKeys=(0,Qe.BT)(Oe.defaultSelectedKeys,Oe))),Oe.checkable){var lt;if(Ke("checkedKeys")?lt=(0,Qe.E6)(Oe.checkedKeys)||{}:!xe&&Oe.defaultCheckedKeys?lt=(0,Qe.E6)(Oe.defaultCheckedKeys)||{}:rt&&(lt=(0,Qe.E6)(Oe.checkedKeys)||{checkedKeys:Te.checkedKeys,halfCheckedKeys:Te.halfCheckedKeys}),lt){var pt=lt,at=pt.checkedKeys,st=at===void 0?[]:at,ft=pt.halfCheckedKeys,vt=ft===void 0?[]:ft;if(!Oe.checkStrictly){var St=(0,ut.S)(st,!0,mt);st=St.checkedKeys,vt=St.halfCheckedKeys}Ie.checkedKeys=st,Ie.halfCheckedKeys=vt}}return Ke("loadedKeys")&&(Ie.loadedKeys=Oe.loadedKeys),Ie}}]),Ze}(y.Component);Re.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},Re.TreeNode=he.Z;var $e=Re,Le=$e},35654:function(Et,dt,ve){"use strict";ve.d(dt,{BT:function(){return y},E6:function(){return z},L0:function(){return ue},OM:function(){return a},_5:function(){return ce},r7:function(){return te},wA:function(){return oe},yx:function(){return ae}});var be=ve(94480),_e=ve(76190),E=ve(48736),pe=ve(59301),de=ve(39417),se=ve(67841),ne=ve(71430),ie=null;function ce(le,fe){if(!le)return[];var ge=le.slice(),me=ge.indexOf(fe);return me>=0&&ge.splice(me,1),ge}function ue(le,fe){var ge=(le||[]).slice();return ge.indexOf(fe)===-1&&ge.push(fe),ge}function ae(le){return le.split("-")}function oe(le,fe){var ge=[],me=(0,se.Z)(fe,le);function he(){var Se=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Se.forEach(function(ye){var Pe=ye.key,we=ye.children;ge.push(Pe),he(we)})}return he(me.children),ge}function re(le){if(le.parent){var fe=ae(le.pos);return Number(fe[fe.length-1])===le.parent.children.length-1}return!1}function ee(le){var fe=ae(le.pos);return Number(fe[fe.length-1])===0}function a(le,fe,ge,me,he,Se,ye,Pe,we,De){var Ee,Ae=le.clientX,Ce=le.clientY,je=le.target.getBoundingClientRect(),Me=je.top,Ge=je.height,Fe=(De==="rtl"?-1:1)*(((he==null?void 0:he.x)||0)-Ae),Je=(Fe-12)/me,qe=(0,se.Z)(Pe,ge.props.eventKey);if(Ce-1.5?Se({dragNode:He,dropNode:Re,dropPosition:1})?Qe=1:$e=!1:Se({dragNode:He,dropNode:Re,dropPosition:0})?Qe=0:Se({dragNode:He,dropNode:Re,dropPosition:1})?Qe=1:$e=!1:Se({dragNode:He,dropNode:Re,dropPosition:1})?Qe=1:$e=!1,{dropPosition:Qe,dropLevelOffset:ut,dropTargetKey:qe.key,dropTargetPos:qe.pos,dragOverNodeKey:ot,dropContainerKey:Qe===0?null:((Ee=qe.parent)===null||Ee===void 0?void 0:Ee.key)||null,dropAllowed:$e}}function y(le,fe){if(le){var ge=fe.multiple;return ge?le.slice():le.length?[le[0]]:le}}var x=function(fe){return fe};function b(le,fe){if(!le)return[];var ge=fe||{},me=ge.processProps,he=me===void 0?x:me,Se=Array.isArray(le)?le:[le];return Se.map(function(ye){var Pe=ye.children,we=_objectWithoutProperties(ye,ie),De=b(Pe,fe);return React.createElement(TreeNode,_extends({key:we.key},he(we)),De)})}function z(le){if(!le)return null;var fe;if(Array.isArray(le))fe={checkedKeys:le,halfCheckedKeys:void 0};else if((0,_e.Z)(le)==="object")fe={checkedKeys:le.checked||void 0,halfCheckedKeys:le.halfChecked||void 0};else return(0,E.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return fe}function te(le,fe){var ge=new Set;function me(he){if(!ge.has(he)){var Se=(0,se.Z)(fe,he);if(Se){ge.add(he);var ye=Se.parent,Pe=Se.node;Pe.disabled||ye&&me(ye.key)}}}return(le||[]).forEach(function(he){me(he)}),(0,be.Z)(ge)}},90782:function(Et,dt,ve){"use strict";ve.d(dt,{S:function(){return ne}});var be=ve(48736),_e=ve(67841);function E(ie,ce){var ue=new Set;return ie.forEach(function(ae){ce.has(ae)||ue.add(ae)}),ue}function pe(ie){var ce=ie||{},ue=ce.disabled,ae=ce.disableCheckbox,oe=ce.checkable;return!!(ue||ae)||oe===!1}function de(ie,ce,ue,ae){for(var oe=new Set(ie),re=new Set,ee=0;ee<=ue;ee+=1){var a=ce.get(ee)||new Set;a.forEach(function(z){var te=z.key,le=z.node,fe=z.children,ge=fe===void 0?[]:fe;oe.has(te)&&!ae(le)&&ge.filter(function(me){return!ae(me.node)}).forEach(function(me){oe.add(me.key)})})}for(var y=new Set,x=ue;x>=0;x-=1){var b=ce.get(x)||new Set;b.forEach(function(z){var te=z.parent,le=z.node;if(!(ae(le)||!z.parent||y.has(z.parent.key))){if(ae(z.parent.node)){y.add(te.key);return}var fe=!0,ge=!1;(te.children||[]).filter(function(me){return!ae(me.node)}).forEach(function(me){var he=me.key,Se=oe.has(he);fe&&!Se&&(fe=!1),!ge&&(Se||re.has(he))&&(ge=!0)}),fe&&oe.add(te.key),ge&&re.add(te.key),y.add(te.key)}})}return{checkedKeys:Array.from(oe),halfCheckedKeys:Array.from(E(re,oe))}}function se(ie,ce,ue,ae,oe){for(var re=new Set(ie),ee=new Set(ce),a=0;a<=ae;a+=1){var y=ue.get(a)||new Set;y.forEach(function(te){var le=te.key,fe=te.node,ge=te.children,me=ge===void 0?[]:ge;!re.has(le)&&!ee.has(le)&&!oe(fe)&&me.filter(function(he){return!oe(he.node)}).forEach(function(he){re.delete(he.key)})})}ee=new Set;for(var x=new Set,b=ae;b>=0;b-=1){var z=ue.get(b)||new Set;z.forEach(function(te){var le=te.parent,fe=te.node;if(!(oe(fe)||!te.parent||x.has(te.parent.key))){if(oe(te.parent.node)){x.add(le.key);return}var ge=!0,me=!1;(le.children||[]).filter(function(he){return!oe(he.node)}).forEach(function(he){var Se=he.key,ye=re.has(Se);ge&&!ye&&(ge=!1),!me&&(ye||ee.has(Se))&&(me=!0)}),ge||re.delete(le.key),me&&ee.add(le.key),x.add(le.key)}})}return{checkedKeys:Array.from(re),halfCheckedKeys:Array.from(E(ee,re))}}function ne(ie,ce,ue,ae){var oe=[],re;ae?re=ae:re=pe;var ee=new Set(ie.filter(function(b){var z=!!(0,_e.Z)(ue,b);return z||oe.push(b),z})),a=new Map,y=0;Object.keys(ue).forEach(function(b){var z=ue[b],te=z.level,le=a.get(te);le||(le=new Set,a.set(te,le)),le.add(z),y=Math.max(y,te)}),(0,be.ZP)(!oe.length,"Tree missing follow keys: ".concat(oe.slice(0,100).map(function(b){return"'".concat(b,"'")}).join(", ")));var x;return ce===!0?x=de(ee,a,y,re):x=se(ee,ce.halfCheckedKeys,a,y,re),x}},67841:function(Et,dt,ve){"use strict";ve.d(dt,{Z:function(){return be}});function be(_e,E){return _e[E]}},71430:function(Et,dt,ve){"use strict";ve.d(dt,{F:function(){return te},H8:function(){return z},I8:function(){return b},km:function(){return oe},oH:function(){return y},w$:function(){return re},zn:function(){return a}});var be=ve(76190),_e=ve(94480),E=ve(33885),pe=ve(75931),de=ve(11592),se=ve(2738),ne=ve(48736),ie=ve(67841),ce=["children"];function ue(le,fe){return"".concat(le,"-").concat(fe)}function ae(le){return le&&le.type&&le.type.isTreeNode}function oe(le,fe){return le!=null?le:fe}function re(le){var fe=le||{},ge=fe.title,me=fe._title,he=fe.key,Se=fe.children,ye=ge||"title";return{title:ye,_title:me||[ye],key:he||"key",children:Se||"children"}}function ee(le,fe){var ge=new Map;function me(he){var Se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(he||[]).forEach(function(ye){var Pe=ye[fe.key],we=ye[fe.children];warning(Pe!=null,"Tree node must have a certain key: [".concat(Se).concat(Pe,"]"));var De=String(Pe);warning(!ge.has(De)||Pe===null||Pe===void 0,"Same 'key' exist in the Tree: ".concat(De)),ge.set(De,!0),me(we,"".concat(Se).concat(De," > "))})}me(le)}function a(le){function fe(ge){var me=(0,de.Z)(ge);return me.map(function(he){if(!ae(he))return(0,ne.ZP)(!he,"Tree/TreeNode can only accept TreeNode as children."),null;var Se=he.key,ye=he.props,Pe=ye.children,we=(0,pe.Z)(ye,ce),De=(0,E.Z)({key:Se},we),Ee=fe(Pe);return Ee.length&&(De.children=Ee),De}).filter(function(he){return he})}return fe(le)}function y(le,fe,ge){var me=re(ge),he=me._title,Se=me.key,ye=me.children,Pe=new Set(fe===!0?[]:fe),we=[];function De(Ee){var Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Ee.map(function(Ce,je){for(var Me=ue(Ae?Ae.pos:"0",je),Ge=oe(Ce[Se],Me),Fe,Je=0;Je1&&arguments[1]!==void 0?arguments[1]:{},ge=fe.initWrapper,me=fe.processEntity,he=fe.onProcessFinished,Se=fe.externalGetKey,ye=fe.childrenPropName,Pe=fe.fieldNames,we=arguments.length>2?arguments[2]:void 0,De=Se||we,Ee={},Ae={},Ce={posEntities:Ee,keyEntities:Ae};return ge&&(Ce=ge(Ce)||Ce),x(le,function(je){var Me=je.node,Ge=je.index,Fe=je.pos,Je=je.key,qe=je.parentPos,Xe=je.level,Ve=je.nodes,We={node:Me,nodes:Ve,index:Ge,key:Je,pos:Fe,level:Xe},ze=oe(Je,Fe);Ee[Fe]=We,Ae[ze]=We,We.parent=Ee[qe],We.parent&&(We.parent.children=We.parent.children||[],We.parent.children.push(We)),me&&me(We,Ce)},{externalGetKey:De,childrenPropName:ye,fieldNames:Pe}),he&&he(Ce),Ce}function z(le,fe){var ge=fe.expandedKeys,me=fe.selectedKeys,he=fe.loadedKeys,Se=fe.loadingKeys,ye=fe.checkedKeys,Pe=fe.halfCheckedKeys,we=fe.dragOverNodeKey,De=fe.dropPosition,Ee=fe.keyEntities,Ae=(0,ie.Z)(Ee,le),Ce={eventKey:le,expanded:ge.indexOf(le)!==-1,selected:me.indexOf(le)!==-1,loaded:he.indexOf(le)!==-1,loading:Se.indexOf(le)!==-1,checked:ye.indexOf(le)!==-1,halfChecked:Pe.indexOf(le)!==-1,pos:String(Ae?Ae.pos:""),dragOver:we===le&&De===0,dragOverGapTop:we===le&&De===-1,dragOverGapBottom:we===le&&De===1};return Ce}function te(le){var fe=le.data,ge=le.expanded,me=le.selected,he=le.checked,Se=le.loaded,ye=le.loading,Pe=le.halfChecked,we=le.dragOver,De=le.dragOverGapTop,Ee=le.dragOverGapBottom,Ae=le.pos,Ce=le.active,je=le.eventKey,Me=(0,E.Z)((0,E.Z)({},fe),{},{expanded:ge,selected:me,checked:he,loaded:Se,loading:ye,halfChecked:Pe,dragOver:we,dragOverGapTop:De,dragOverGapBottom:Ee,pos:Ae,active:Ce,key:je});return"props"in Me||Object.defineProperty(Me,"props",{get:function(){return(0,ne.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),le}}),Me}},8224:function(Et,dt,ve){"use strict";ve.d(dt,{Z:function(){return _e}});var be=ve(4676);function _e(E,pe,de,se){var ne=be.unstable_batchedUpdates?function(ce){be.unstable_batchedUpdates(de,ce)}:de;return E!=null&&E.addEventListener&&E.addEventListener(pe,ne,se),{remove:function(){E!=null&&E.removeEventListener&&E.removeEventListener(pe,ne,se)}}}},55468:function(Et,dt,ve){"use strict";ve.d(dt,{g1:function(){return ae},os:function(){return re}});var be=/margin|padding|width|height|max|min|offset/,_e={left:!0,top:!0},E={cssFloat:1,styleFloat:1,float:1};function pe(ee){return ee.nodeType===1?ee.ownerDocument.defaultView.getComputedStyle(ee,null):{}}function de(ee,a,y){if(a=a.toLowerCase(),y==="auto"){if(a==="height")return ee.offsetHeight;if(a==="width")return ee.offsetWidth}return a in _e||(_e[a]=be.test(a)),_e[a]?parseFloat(y)||0:y}function se(ee,a){var y=arguments.length,x=pe(ee);return a=E[a]?"cssFloat"in ee.style?"cssFloat":"styleFloat":a,y===1?x:de(ee,a,x[a]||ee.style[a])}function ne(ee,a,y){var x=arguments.length;if(a=E[a]?"cssFloat"in ee.style?"cssFloat":"styleFloat":a,x===3)return typeof y=="number"&&be.test(a)&&(y="".concat(y,"px")),ee.style[a]=y,y;for(var b in a)a.hasOwnProperty(b)&&ne(ee,b,a[b]);return pe(ee)}function ie(ee){return ee===document.body?document.documentElement.clientWidth:ee.offsetWidth}function ce(ee){return ee===document.body?window.innerHeight||document.documentElement.clientHeight:ee.offsetHeight}function ue(){var ee=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),a=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:ee,height:a}}function ae(){var ee=document.documentElement.clientWidth,a=window.innerHeight||document.documentElement.clientHeight;return{width:ee,height:a}}function oe(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function re(ee){var a=ee.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)}}},3465:function(Et,dt,ve){"use strict";ve.d(dt,{G:function(){return pe}});var be=ve(47273),_e=function(se){if((0,be.Z)()&&window.document.documentElement){var ne=Array.isArray(se)?se:[se],ie=window.document.documentElement;return ne.some(function(ce){return ce in ie.style})}return!1},E=function(se,ne){if(!_e(se))return!1;var ie=document.createElement("div"),ce=ie.style[se];return ie.style[se]=ne,ie.style[se]!==ce};function pe(de,se){return!Array.isArray(de)&&se!==void 0?E(de,se):_e(de)}},7062:function(Et,dt,ve){var be=ve(19637),_e=ve(97573),E=[ve(96627)];Et.exports=be.createStore(_e,E)},96627:function(Et,dt,ve){Et.exports=be;function be(){return ve(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(Et){return Et<10?"0"+Et:Et}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(Et){return rx_escapable.lastIndex=0,rx_escapable.test(Et)?'"'+Et.replace(rx_escapable,function(dt){var ve=meta[dt];return typeof ve=="string"?ve:"\\u"+("0000"+dt.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+Et+'"'}function str(Et,dt){var ve,be,_e,E,pe=gap,de,se=dt[Et];switch(se&&typeof se=="object"&&typeof se.toJSON=="function"&&(se=se.toJSON(Et)),typeof rep=="function"&&(se=rep.call(dt,Et,se)),typeof se){case"string":return quote(se);case"number":return isFinite(se)?String(se):"null";case"boolean":case"null":return String(se);case"object":if(!se)return"null";if(gap+=indent,de=[],Object.prototype.toString.apply(se)==="[object Array]"){for(E=se.length,ve=0;ve=0;re--)if(E(oe[re])){var ee=oe[re].split("="),a=unescape(ee[0]),y=unescape(ee[1]);ae(y,a)}}function ne(ae,oe){ae&&(pe.cookie=escape(ae)+"="+escape(oe)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/")}function ie(ae){!ae||!ue(ae)||(pe.cookie=escape(ae)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function ce(){se(function(ae,oe){ie(oe)})}function ue(ae){return new RegExp("(?:^|;\\s*)"+escape(ae).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(pe.cookie)}},52496:function(Et,dt,ve){var be=ve(67039),_e=be.Global;Et.exports={name:"localStorage",read:pe,write:de,each:se,remove:ne,clearAll:ie};function E(){return _e.localStorage}function pe(ce){return E().getItem(ce)}function de(ce,ue){return E().setItem(ce,ue)}function se(ce){for(var ue=E().length-1;ue>=0;ue--){var ae=E().key(ue);ce(pe(ae),ae)}}function ne(ce){return E().removeItem(ce)}function ie(){return E().clear()}},65300:function(Et){Et.exports={name:"memoryStorage",read:ve,write:be,each:_e,remove:E,clearAll:pe};var dt={};function ve(de){return dt[de]}function be(de,se){dt[de]=se}function _e(de){for(var se in dt)dt.hasOwnProperty(se)&&de(dt[se],se)}function E(de){delete dt[de]}function pe(de){dt={}}},16436:function(Et,dt,ve){var be=ve(67039),_e=be.Global;Et.exports={name:"oldFF-globalStorage",read:pe,write:de,each:se,remove:ne,clearAll:ie};var E=_e.globalStorage;function pe(ce){return E[ce]}function de(ce,ue){E[ce]=ue}function se(ce){for(var ue=E.length-1;ue>=0;ue--){var ae=E.key(ue);ce(E[ae],ae)}}function ne(ce){return E.removeItem(ce)}function ie(){se(function(ce,ue){delete E[ce]})}},76673:function(Et,dt,ve){var be=ve(67039),_e=be.Global;Et.exports={name:"oldIE-userDataStorage",write:ne,read:ie,each:ce,remove:ue,clearAll:ae};var E="storejs",pe=_e.document,de=ee(),se=(_e.navigator?_e.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function ne(a,y){if(!se){var x=re(a);de(function(b){b.setAttribute(x,y),b.save(E)})}}function ie(a){if(!se){var y=re(a),x=null;return de(function(b){x=b.getAttribute(y)}),x}}function ce(a){de(function(y){for(var x=y.XMLDocument.documentElement.attributes,b=x.length-1;b>=0;b--){var z=x[b];a(y.getAttribute(z.name),z.name)}})}function ue(a){var y=re(a);de(function(x){x.removeAttribute(y),x.save(E)})}function ae(){de(function(a){var y=a.XMLDocument.documentElement.attributes;a.load(E);for(var x=y.length-1;x>=0;x--)a.removeAttribute(y[x].name);a.save(E)})}var oe=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function re(a){return a.replace(/^\d/,"___$&").replace(oe,"___")}function ee(){if(!pe||!pe.documentElement||!pe.documentElement.addBehavior)return null;var a="script",y,x,b;try{x=new ActiveXObject("htmlfile"),x.open(),x.write("<"+a+">document.w=window'),x.close(),y=x.w.frames[0].document,b=y.createElement("div")}catch(z){b=pe.createElement("div"),y=pe.body}return function(z){var te=[].slice.call(arguments,0);te.unshift(b),y.appendChild(b),b.addBehavior("#default#userData"),b.load(E),z.apply(this,te),y.removeChild(b)}}},65578:function(Et,dt,ve){var be=ve(67039),_e=be.Global;Et.exports={name:"sessionStorage",read:pe,write:de,each:se,remove:ne,clearAll:ie};function E(){return _e.sessionStorage}function pe(ce){return E().getItem(ce)}function de(ce,ue){return E().setItem(ce,ue)}function se(ce){for(var ue=E().length-1;ue>=0;ue--){var ae=E().key(ue);ce(pe(ae),ae)}}function ne(ce){return E().removeItem(ce)}function ie(){return E().clear()}},34376:function(Et){(function(dt,ve){if(1)Et.exports=ve();else var be,_e})(window,function(){return function(dt){var ve={};function be(_e){if(ve[_e])return ve[_e].exports;var E=ve[_e]={i:_e,l:!1,exports:{}};return dt[_e].call(E.exports,E,E.exports,be),E.l=!0,E.exports}return be.m=dt,be.c=ve,be.d=function(_e,E,pe){be.o(_e,E)||Object.defineProperty(_e,E,{enumerable:!0,get:pe})},be.r=function(_e){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(_e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(_e,"__esModule",{value:!0})},be.t=function(_e,E){if(1&E&&(_e=be(_e)),8&E||4&E&&typeof _e=="object"&&_e&&_e.__esModule)return _e;var pe=Object.create(null);if(be.r(pe),Object.defineProperty(pe,"default",{enumerable:!0,value:_e}),2&E&&typeof _e!="string")for(var de in _e)be.d(pe,de,function(se){return _e[se]}.bind(null,de));return pe},be.n=function(_e){var E=_e&&_e.__esModule?function(){return _e.default}:function(){return _e};return be.d(E,"a",E),E},be.o=function(_e,E){return Object.prototype.hasOwnProperty.call(_e,E)},be.p="",be(be.s=34)}([function(dt,ve,be){"use strict";Object.defineProperty(ve,"__esModule",{value:!0}),ve.forwardEvent=ve.EventEmitter=void 0;var _e=function(){function E(){this._listeners=[],this._disposed=!1}return Object.defineProperty(E.prototype,"event",{get:function(){var pe=this;return this._event||(this._event=function(de){return pe._listeners.push(de),{dispose:function(){if(!pe._disposed){for(var se=0;se>22},ce.prototype.getChars=function(){return 2097152&this.content?this.combinedData:2097151&this.content?pe.stringFromCodePoint(2097151&this.content):""},ce.prototype.getCode=function(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content},ce.prototype.setFromCharData=function(ue){this.fg=ue[de.CHAR_DATA_ATTR_INDEX],this.bg=0;var ae=!1;if(ue[de.CHAR_DATA_CHAR_INDEX].length>2)ae=!0;else if(ue[de.CHAR_DATA_CHAR_INDEX].length===2){var oe=ue[de.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=oe&&oe<=56319){var re=ue[de.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=re&&re<=57343?this.content=1024*(oe-55296)+re-56320+65536|ue[de.CHAR_DATA_WIDTH_INDEX]<<22:ae=!0}else ae=!0}else this.content=ue[de.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|ue[de.CHAR_DATA_WIDTH_INDEX]<<22;ae&&(this.combinedData=ue[de.CHAR_DATA_CHAR_INDEX],this.content=2097152|ue[de.CHAR_DATA_WIDTH_INDEX]<<22)},ce.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},ce}(se.AttributeData);ve.CellData=ne},function(dt,ve,be){"use strict";Object.defineProperty(ve,"__esModule",{value:!0}),ve.ISoundService=ve.ISelectionService=ve.IRenderService=ve.IMouseService=ve.ICoreBrowserService=ve.ICharSizeService=void 0;var _e=be(14);ve.ICharSizeService=_e.createDecorator("CharSizeService"),ve.ICoreBrowserService=_e.createDecorator("CoreBrowserService"),ve.IMouseService=_e.createDecorator("MouseService"),ve.IRenderService=_e.createDecorator("RenderService"),ve.ISelectionService=_e.createDecorator("SelectionService"),ve.ISoundService=_e.createDecorator("SoundService")},function(dt,ve,be){"use strict";Object.defineProperty(ve,"__esModule",{value:!0}),ve.ExtendedAttrs=ve.AttributeData=void 0;var _e=function(){function pe(){this.fg=0,this.bg=0,this.extended=new E}return pe.toColorRGB=function(de){return[de>>>16&255,de>>>8&255,255&de]},pe.fromColorRGB=function(de){return(255&de[0])<<16|(255&de[1])<<8|255&de[2]},pe.prototype.clone=function(){var de=new pe;return de.fg=this.fg,de.bg=this.bg,de.extended=this.extended.clone(),de},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}();ve.AttributeData=_e;var E=function(){function pe(de,se){de===void 0&&(de=0),se===void 0&&(se=-1),this.underlineStyle=de,this.underlineColor=se}return pe.prototype.clone=function(){return new pe(this.underlineStyle,this.underlineColor)},pe.prototype.isEmpty=function(){return this.underlineStyle===0},pe}();ve.ExtendedAttrs=E},function(dt,ve,be){"use strict";Object.defineProperty(ve,"__esModule",{value:!0}),ve.addDisposableDomListener=void 0,ve.addDisposableDomListener=function(_e,E,pe,de){_e.addEventListener(E,pe,de);var se=!1;return{dispose:function(){se||(se=!0,_e.removeEventListener(E,pe,de))}}}},function(dt,ve,be){"use strict";Object.defineProperty(ve,"__esModule",{value:!0}),ve.Utf8ToUtf32=ve.StringToUtf32=ve.utf32ToString=ve.stringFromCodePoint=void 0,ve.stringFromCodePoint=function(pe){return pe>65535?(pe-=65536,String.fromCharCode(55296+(pe>>10))+String.fromCharCode(pe%1024+56320)):String.fromCharCode(pe)},ve.utf32ToString=function(pe,de,se){de===void 0&&(de=0),se===void 0&&(se=pe.length);for(var ne="",ie=de;ie65535?(ce-=65536,ne+=String.fromCharCode(55296+(ce>>10))+String.fromCharCode(ce%1024+56320)):ne+=String.fromCharCode(ce)}return ne};var _e=function(){function pe(){this._interim=0}return pe.prototype.clear=function(){this._interim=0},pe.prototype.decode=function(de,se){var ne=de.length;if(!ne)return 0;var ie=0,ce=0;this._interim&&(56320<=(oe=de.charCodeAt(ce++))&&oe<=57343?se[ie++]=1024*(this._interim-55296)+oe-56320+65536:(se[ie++]=this._interim,se[ie++]=oe),this._interim=0);for(var ue=ce;ue=ne)return this._interim=ae,ie;var oe;56320<=(oe=de.charCodeAt(ue))&&oe<=57343?se[ie++]=1024*(ae-55296)+oe-56320+65536:(se[ie++]=ae,se[ie++]=oe)}else se[ie++]=ae}return ie},pe}();ve.StringToUtf32=_e;var E=function(){function pe(){this.interim=new Uint8Array(3)}return pe.prototype.clear=function(){this.interim.fill(0)},pe.prototype.decode=function(de,se){var ne=de.length;if(!ne)return 0;var ie,ce,ue,ae,oe=0,re=0,ee=0;if(this.interim[0]){var a=!1,y=this.interim[0];y&=(224&y)==192?31:(240&y)==224?15:7;for(var x=0,b=void 0;(b=63&this.interim[++x])&&x<4;)y<<=6,y|=b;for(var z=(224&this.interim[0])==192?2:(240&this.interim[0])==224?3:4,te=z-x;ee=ne)return 0;if((192&(b=de[ee++]))!=128){ee--,a=!0;break}this.interim[x++]=b,y<<=6,y|=63&b}a||(z===2?y<128?ee--:se[oe++]=y:z===3?y<2048||y>=55296&&y<=57343||(se[oe++]=y):y<65536||y>1114111||(se[oe++]=y)),this.interim.fill(0)}for(var le=ne-4,fe=ee;fe=ne)return this.interim[0]=ie,oe;if((192&(ce=de[fe++]))!=128){fe--;continue}if((re=(31&ie)<<6|63&ce)<128){fe--;continue}se[oe++]=re}else if((240&ie)==224){if(fe>=ne)return this.interim[0]=ie,oe;if((192&(ce=de[fe++]))!=128){fe--;continue}if(fe>=ne)return this.interim[0]=ie,this.interim[1]=ce,oe;if((192&(ue=de[fe++]))!=128){fe--;continue}if((re=(15&ie)<<12|(63&ce)<<6|63&ue)<2048||re>=55296&&re<=57343)continue;se[oe++]=re}else if((248&ie)==240){if(fe>=ne)return this.interim[0]=ie,oe;if((192&(ce=de[fe++]))!=128){fe--;continue}if(fe>=ne)return this.interim[0]=ie,this.interim[1]=ce,oe;if((192&(ue=de[fe++]))!=128){fe--;continue}if(fe>=ne)return this.interim[0]=ie,this.interim[1]=ce,this.interim[2]=ue,oe;if((192&(ae=de[fe++]))!=128){fe--;continue}if((re=(7&ie)<<18|(63&ce)<<12|(63&ue)<<6|63&ae)<65536||re>1114111)continue;se[oe++]=re}}return oe},pe}();ve.Utf8ToUtf32=E},function(dt,ve,be){"use strict";Object.defineProperty(ve,"__esModule",{value:!0}),ve.CHAR_ATLAS_CELL_SPACING=ve.DIM_OPACITY=ve.INVERTED_DEFAULT_COLOR=void 0,ve.INVERTED_DEFAULT_COLOR=257,ve.DIM_OPACITY=.5,ve.CHAR_ATLAS_CELL_SPACING=1},function(dt,ve,be){"use strict";var _e,E,pe,de;function se(ie){var ce=ie.toString(16);return ce.length<2?"0"+ce:ce}function ne(ie,ce){return ie>>0}}(_e=ve.channels||(ve.channels={})),(E=ve.color||(ve.color={})).blend=function(ie,ce){var ue=(255&ce.rgba)/255;if(ue===1)return{css:ce.css,rgba:ce.rgba};var ae=ce.rgba>>24&255,oe=ce.rgba>>16&255,re=ce.rgba>>8&255,ee=ie.rgba>>24&255,a=ie.rgba>>16&255,y=ie.rgba>>8&255,x=ee+Math.round((ae-ee)*ue),b=a+Math.round((oe-a)*ue),z=y+Math.round((re-y)*ue);return{css:_e.toCss(x,b,z),rgba:_e.toRgba(x,b,z)}},E.isOpaque=function(ie){return(255&ie.rgba)==255},E.ensureContrastRatio=function(ie,ce,ue){var ae=de.ensureContrastRatio(ie.rgba,ce.rgba,ue);if(ae)return de.toColor(ae>>24&255,ae>>16&255,ae>>8&255)},E.opaque=function(ie){var ce=(255|ie.rgba)>>>0,ue=de.toChannels(ce),ae=ue[0],oe=ue[1],re=ue[2];return{css:_e.toCss(ae,oe,re),rgba:ce}},E.opacity=function(ie,ce){var ue=Math.round(255*ce),ae=de.toChannels(ie.rgba),oe=ae[0],re=ae[1],ee=ae[2];return{css:_e.toCss(oe,re,ee,ue),rgba:_e.toRgba(oe,re,ee,ue)}},(ve.css||(ve.css={})).toColor=function(ie){switch(ie.length){case 7:return{css:ie,rgba:(parseInt(ie.slice(1),16)<<8|255)>>>0};case 9:return{css:ie,rgba:parseInt(ie.slice(1),16)>>>0}}throw new Error("css.toColor: Unsupported css format")},function(ie){function ce(ue,ae,oe){var re=ue/255,ee=ae/255,a=oe/255;return .2126*(re<=.03928?re/12.92:Math.pow((re+.055)/1.055,2.4))+.7152*(ee<=.03928?ee/12.92:Math.pow((ee+.055)/1.055,2.4))+.0722*(a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4))}ie.relativeLuminance=function(ue){return ce(ue>>16&255,ue>>8&255,255&ue)},ie.relativeLuminance2=ce}(pe=ve.rgb||(ve.rgb={})),function(ie){function ce(ae,oe,re){for(var ee=ae>>24&255,a=ae>>16&255,y=ae>>8&255,x=oe>>24&255,b=oe>>16&255,z=oe>>8&255,te=ne(pe.relativeLuminance2(x,z,b),pe.relativeLuminance2(ee,a,y));te0||b>0||z>0);)x-=Math.max(0,Math.ceil(.1*x)),b-=Math.max(0,Math.ceil(.1*b)),z-=Math.max(0,Math.ceil(.1*z)),te=ne(pe.relativeLuminance2(x,z,b),pe.relativeLuminance2(ee,a,y));return(x<<24|b<<16|z<<8|255)>>>0}function ue(ae,oe,re){for(var ee=ae>>24&255,a=ae>>16&255,y=ae>>8&255,x=oe>>24&255,b=oe>>16&255,z=oe>>8&255,te=ne(pe.relativeLuminance2(x,z,b),pe.relativeLuminance2(ee,a,y));te>>0}ie.ensureContrastRatio=function(ae,oe,re){var ee=pe.relativeLuminance(ae>>8),a=pe.relativeLuminance(oe>>8);if(ne(ee,a)>24&255,ae>>16&255,ae>>8&255,255&ae]},ie.toColor=function(ae,oe,re){return{css:_e.toCss(ae,oe,re),rgba:_e.toRgba(ae,oe,re)}}}(de=ve.rgba||(ve.rgba={})),ve.toPaddedHex=se,ve.contrastRatio=ne},function(dt,ve,be){"use strict";Object.defineProperty(ve,"__esModule",{value:!0}),ve.isLinux=ve.isWindows=ve.isIphone=ve.isIpad=ve.isMac=ve.isSafari=ve.isFirefox=void 0;var _e=typeof navigator=="undefined",E=_e?"node":navigator.userAgent,pe=_e?"node":navigator.platform;function de(se,ne){return se.indexOf(ne)>=0}ve.isFirefox=!!~E.indexOf("Firefox"),ve.isSafari=/^((?!chrome|android).)*safari/i.test(E),ve.isMac=de(["Macintosh","MacIntel","MacPPC","Mac68K"],pe),ve.isIpad=pe==="iPad",ve.isIphone=pe==="iPhone",ve.isWindows=de(["Windows","Win16","Win32","WinCE"],pe),ve.isLinux=pe.indexOf("Linux")>=0},function(dt,ve,be){"use strict";Object.defineProperty(ve,"__esModule",{value:!0}),ve.C1=ve.C0=void 0,function(_e){_e.NUL="\0",_e.SOH="",_e.STX="",_e.ETX="",_e.EOT="",_e.ENQ="",_e.ACK="",_e.BEL="\x07",_e.BS="\b",_e.HT=" ",_e.LF=` `,_e.VT="\v",_e.FF="\f",_e.CR="\r",_e.SO="",_e.SI="",_e.DLE="",_e.DC1="",_e.DC2="",_e.DC3="",_e.DC4="",_e.NAK="",_e.SYN="",_e.ETB="",_e.CAN="",_e.EM="",_e.SUB="",_e.ESC="\x1B",_e.FS="",_e.GS="",_e.RS="",_e.US="",_e.SP=" ",_e.DEL="\x7F"}(ve.C0||(ve.C0={})),function(_e){_e.PAD="\x80",_e.HOP="\x81",_e.BPH="\x82",_e.NBH="\x83",_e.IND="\x84",_e.NEL="\x85",_e.SSA="\x86",_e.ESA="\x87",_e.HTS="\x88",_e.HTJ="\x89",_e.VTS="\x8A",_e.PLD="\x8B",_e.PLU="\x8C",_e.RI="\x8D",_e.SS2="\x8E",_e.SS3="\x8F",_e.DCS="\x90",_e.PU1="\x91",_e.PU2="\x92",_e.STS="\x93",_e.CCH="\x94",_e.MW="\x95",_e.SPA="\x96",_e.EPA="\x97",_e.SOS="\x98",_e.SGCI="\x99",_e.SCI="\x9A",_e.CSI="\x9B",_e.ST="\x9C",_e.OSC="\x9D",_e.PM="\x9E",_e.APC="\x9F"}(ve.C1||(ve.C1={}))},function(dt,ve,be){"use strict";Object.defineProperty(ve,"__esModule",{value:!0}),ve.BaseRenderLayer=void 0;var _e=be(3),E=be(9),pe=be(25),de=be(6),se=be(28),ne=be(10),ie=be(17),ce=function(){function ue(ae,oe,re,ee,a,y,x,b){this._container=ae,this._alpha=ee,this._colors=a,this._rendererId=y,this._bufferService=x,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-"+oe+"-layer"),this._canvas.style.zIndex=re.toString(),this._initCanvas(),this._container.appendChild(this._canvas)}return ue.prototype.dispose=function(){var ae;ie.removeElementFromParent(this._canvas),(ae=this._charAtlas)===null||ae===void 0||ae.dispose()},ue.prototype._initCanvas=function(){this._ctx=se.throwIfFalsy(this._canvas.getContext("2d",{alpha:this._alpha})),this._alpha||this._clearAll()},ue.prototype.onOptionsChanged=function(){},ue.prototype.onBlur=function(){},ue.prototype.onFocus=function(){},ue.prototype.onCursorMove=function(){},ue.prototype.onGridChanged=function(ae,oe){},ue.prototype.onSelectionChanged=function(ae,oe,re){re===void 0&&(re=!1)},ue.prototype.setColors=function(ae){this._refreshCharAtlas(ae)},ue.prototype._setTransparency=function(ae){if(ae!==this._alpha){var oe=this._canvas;this._alpha=ae,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,oe),this._refreshCharAtlas(this._colors),this.onGridChanged(0,this._bufferService.rows-1)}},ue.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())},ue.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)},ue.prototype._fillCells=function(ae,oe,re,ee){this._ctx.fillRect(ae*this._scaledCellWidth,oe*this._scaledCellHeight,re*this._scaledCellWidth,ee*this._scaledCellHeight)},ue.prototype._fillBottomLineAtCells=function(ae,oe,re){re===void 0&&(re=1),this._ctx.fillRect(ae*this._scaledCellWidth,(oe+1)*this._scaledCellHeight-window.devicePixelRatio-1,re*this._scaledCellWidth,window.devicePixelRatio)},ue.prototype._fillLeftLineAtCell=function(ae,oe,re){this._ctx.fillRect(ae*this._scaledCellWidth,oe*this._scaledCellHeight,window.devicePixelRatio*re,this._scaledCellHeight)},ue.prototype._strokeRectAtCell=function(ae,oe,re,ee){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(ae*this._scaledCellWidth+window.devicePixelRatio/2,oe*this._scaledCellHeight+window.devicePixelRatio/2,re*this._scaledCellWidth-window.devicePixelRatio,ee*this._scaledCellHeight-window.devicePixelRatio)},ue.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))},ue.prototype._clearCells=function(ae,oe,re,ee){this._alpha?this._ctx.clearRect(ae*this._scaledCellWidth,oe*this._scaledCellHeight,re*this._scaledCellWidth,ee*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(ae*this._scaledCellWidth,oe*this._scaledCellHeight,re*this._scaledCellWidth,ee*this._scaledCellHeight))},ue.prototype._fillCharTrueColor=function(ae,oe,re){this._ctx.font=this._getFont(!1,!1),this._ctx.textBaseline="middle",this._clipRow(re),this._ctx.fillText(ae.getChars(),oe*this._scaledCellWidth+this._scaledCharLeft,re*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2)},ue.prototype._drawChars=function(ae,oe,re){var ee,a,y=this._getContrastColor(ae);y||ae.isFgRGB()||ae.isBgRGB()?this._drawUncachedChars(ae,oe,re,y):(ae.isInverse()?(ee=ae.isBgDefault()?E.INVERTED_DEFAULT_COLOR:ae.getBgColor(),a=ae.isFgDefault()?E.INVERTED_DEFAULT_COLOR:ae.getFgColor()):(a=ae.isBgDefault()?_e.DEFAULT_COLOR:ae.getBgColor(),ee=ae.isFgDefault()?_e.DEFAULT_COLOR:ae.getFgColor()),ee+=this._optionsService.options.drawBoldTextInBrightColors&&ae.isBold()&&ee<8?8:0,this._currentGlyphIdentifier.chars=ae.getChars()||_e.WHITESPACE_CELL_CHAR,this._currentGlyphIdentifier.code=ae.getCode()||_e.WHITESPACE_CELL_CODE,this._currentGlyphIdentifier.bg=a,this._currentGlyphIdentifier.fg=ee,this._currentGlyphIdentifier.bold=!!ae.isBold(),this._currentGlyphIdentifier.dim=!!ae.isDim(),this._currentGlyphIdentifier.italic=!!ae.isItalic(),this._charAtlas&&this._charAtlas.draw(this._ctx,this._currentGlyphIdentifier,oe*this._scaledCellWidth+this._scaledCharLeft,re*this._scaledCellHeight+this._scaledCharTop)||this._drawUncachedChars(ae,oe,re))},ue.prototype._drawUncachedChars=function(ae,oe,re,ee){if(this._ctx.save(),this._ctx.font=this._getFont(!!ae.isBold(),!!ae.isItalic()),this._ctx.textBaseline="middle",ae.isInverse())if(ee)this._ctx.fillStyle=ee.css;else if(ae.isBgDefault())this._ctx.fillStyle=ne.color.opaque(this._colors.background).css;else if(ae.isBgRGB())this._ctx.fillStyle="rgb("+de.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(ee)this._ctx.fillStyle=ee.css;else if(ae.isFgDefault())this._ctx.fillStyle=this._colors.foreground.css;else if(ae.isFgRGB())this._ctx.fillStyle="rgb("+de.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(re),ae.isDim()&&(this._ctx.globalAlpha=E.DIM_OPACITY),this._ctx.fillText(ae.getChars(),oe*this._scaledCellWidth+this._scaledCharLeft,re*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2),this._ctx.restore()},ue.prototype._clipRow=function(ae){this._ctx.beginPath(),this._ctx.rect(0,ae*this._scaledCellHeight,this._bufferService.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},ue.prototype._getFont=function(ae,oe){return(oe?"italic":"")+" "+(ae?this._optionsService.options.fontWeightBold:this._optionsService.options.fontWeight)+" "+this._optionsService.options.fontSize*window.devicePixelRatio+"px "+this._optionsService.options.fontFamily},ue.prototype._getContrastColor=function(ae){if(this._optionsService.options.minimumContrastRatio!==1){var oe=this._colors.contrastCache.getColor(ae.bg,ae.fg);if(oe!==void 0)return oe||void 0;var re=ae.getFgColor(),ee=ae.getFgColorMode(),a=ae.getBgColor(),y=ae.getBgColorMode(),x=!!ae.isInverse(),b=!!ae.isInverse();if(x){var z=re;re=a,a=z;var te=ee;ee=y,y=te}var le=this._resolveBackgroundRgba(y,a,x),fe=this._resolveForegroundRgba(ee,re,x,b),ge=ne.rgba.ensureContrastRatio(le,fe,this._optionsService.options.minimumContrastRatio);if(ge){var me={css:ne.channels.toCss(ge>>24&255,ge>>16&255,ge>>8&255),rgba:ge};return this._colors.contrastCache.setColor(ae.bg,ae.fg,me),me}this._colors.contrastCache.setColor(ae.bg,ae.fg,null)}},ue.prototype._resolveBackgroundRgba=function(ae,oe,re){switch(ae){case 16777216:case 33554432:return this._colors.ansi[oe].rgba;case 50331648:return oe<<8;case 0:default:return re?this._colors.foreground.rgba:this._colors.background.rgba}},ue.prototype._resolveForegroundRgba=function(ae,oe,re,ee){switch(ae){case 16777216:case 33554432:return this._optionsService.options.drawBoldTextInBrightColors&&ee&&oe<8&&(oe+=8),this._colors.ansi[oe].rgba;case 50331648:return oe<<8;case 0:default:return re?this._colors.background.rgba:this._colors.foreground.rgba}},ue}();ve.BaseRenderLayer=ce},function(dt,ve,be){"use strict";Object.defineProperty(ve,"__esModule",{value:!0}),ve.createDecorator=ve.getServiceDependencies=ve.serviceRegistry=void 0;function _e(E,pe,de){pe.di$target===pe?pe.di$dependencies.push({id:E,index:de}):(pe.di$dependencies=[{id:E,index:de}],pe.di$target=pe)}ve.serviceRegistry=new Map,ve.getServiceDependencies=function(E){return E.di$dependencies||[]},ve.createDecorator=function(E){if(ve.serviceRegistry.has(E))return ve.serviceRegistry.get(E);var pe=function(de,se,ne){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");_e(pe,de,ne)};return pe.toString=function(){return E},ve.serviceRegistry.set(E,pe),pe}},function(dt,ve,be){"use strict";function _e(E,pe,de,se){if(de===void 0&&(de=0),se===void 0&&(se=E.length),de>=E.length)return E;de=(E.length+de)%E.length,se=se>=E.length?E.length:(E.length+se)%E.length;for(var ne=de;ne>22,2097152&ce?this._combined[ie].charCodeAt(this._combined[ie].length-1):ue]},ne.prototype.set=function(ie,ce){this._data[3*ie+1]=ce[E.CHAR_DATA_ATTR_INDEX],ce[E.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[ie]=ce[1],this._data[3*ie+0]=2097152|ie|ce[E.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*ie+0]=ce[E.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|ce[E.CHAR_DATA_WIDTH_INDEX]<<22},ne.prototype.getWidth=function(ie){return this._data[3*ie+0]>>22},ne.prototype.hasWidth=function(ie){return 12582912&this._data[3*ie+0]},ne.prototype.getFg=function(ie){return this._data[3*ie+1]},ne.prototype.getBg=function(ie){return this._data[3*ie+2]},ne.prototype.hasContent=function(ie){return 4194303&this._data[3*ie+0]},ne.prototype.getCodePoint=function(ie){var ce=this._data[3*ie+0];return 2097152&ce?this._combined[ie].charCodeAt(this._combined[ie].length-1):2097151&ce},ne.prototype.isCombined=function(ie){return 2097152&this._data[3*ie+0]},ne.prototype.getString=function(ie){var ce=this._data[3*ie+0];return 2097152&ce?this._combined[ie]:2097151&ce?_e.stringFromCodePoint(2097151&ce):""},ne.prototype.loadCell=function(ie,ce){var ue=3*ie;return ce.content=this._data[ue+0],ce.fg=this._data[ue+1],ce.bg=this._data[ue+2],2097152&ce.content&&(ce.combinedData=this._combined[ie]),268435456&ce.bg&&(ce.extended=this._extendedAttrs[ie]),ce},ne.prototype.setCell=function(ie,ce){2097152&ce.content&&(this._combined[ie]=ce.combinedData),268435456&ce.bg&&(this._extendedAttrs[ie]=ce.extended),this._data[3*ie+0]=ce.content,this._data[3*ie+1]=ce.fg,this._data[3*ie+2]=ce.bg},ne.prototype.setCellFromCodePoint=function(ie,ce,ue,ae,oe,re){268435456&oe&&(this._extendedAttrs[ie]=re),this._data[3*ie+0]=ce|ue<<22,this._data[3*ie+1]=ae,this._data[3*ie+2]=oe},ne.prototype.addCodepointToCell=function(ie,ce){var ue=this._data[3*ie+0];2097152&ue?this._combined[ie]+=_e.stringFromCodePoint(ce):(2097151&ue?(this._combined[ie]=_e.stringFromCodePoint(2097151&ue)+_e.stringFromCodePoint(ce),ue&=-2097152,ue|=2097152):ue=ce|1<<22,this._data[3*ie+0]=ue)},ne.prototype.insertCells=function(ie,ce,ue,ae){if((ie%=this.length)&&this.getWidth(ie-1)===2&&this.setCellFromCodePoint(ie-1,0,1,(ae==null?void 0:ae.fg)||0,(ae==null?void 0:ae.bg)||0,(ae==null?void 0:ae.extended)||new de.ExtendedAttrs),ce=0;--re)this.setCell(ie+ce+re,this.loadCell(ie+re,oe));for(re=0;rethis.length){var ue=new Uint32Array(3*ie);this.length&&(3*ie=ie&&delete this._combined[re]}}else this._data=new Uint32Array(0),this._combined={};this.length=ie}},ne.prototype.fill=function(ie){this._combined={},this._extendedAttrs={};for(var ce=0;ce=0;--ie)if(4194303&this._data[3*ie+0])return ie+(this._data[3*ie+0]>>22);return 0},ne.prototype.copyCellsFrom=function(ie,ce,ue,ae,oe){var re=ie._data;if(oe)for(var ee=ae-1;ee>=0;ee--)for(var a=0;a<3;a++)this._data[3*(ue+ee)+a]=re[3*(ce+ee)+a];else for(ee=0;ee=ce&&(this._combined[x-ce+ue]=ie._combined[x])}},ne.prototype.translateToString=function(ie,ce,ue){ie===void 0&&(ie=!1),ce===void 0&&(ce=0),ue===void 0&&(ue=this.length),ie&&(ue=Math.min(ue,this.getTrimmedLength()));for(var ae="";ce>22||1}return ae},ne}();ve.BufferLine=se},function(dt,ve,be){"use strict";Object.defineProperty(ve,"__esModule",{value:!0}),ve.removeElementFromParent=void 0,ve.removeElementFromParent=function(){for(var _e,E=[],pe=0;pe24)return ge.setWinLines||!1;switch(fe){case 1:return!!ge.restoreWin;case 2:return!!ge.minimizeWin;case 3:return!!ge.setWinPosition;case 4:return!!ge.setWinSizePixels;case 5:return!!ge.raiseWin;case 6:return!!ge.lowerWin;case 7:return!!ge.refreshWin;case 8:return!!ge.setWinSizeChars;case 9:return!!ge.maximizeWin;case 10:return!!ge.fullscreenWin;case 11:return!!ge.getWinState;case 13:return!!ge.getWinPosition;case 14:return!!ge.getWinSizePixels;case 15:return!!ge.getScreenSizePixels;case 16:return!!ge.getCellSizePixels;case 18:return!!ge.getWinSizeChars;case 19:return!!ge.getScreenSizeChars;case 20:return!!ge.getIconTitle;case 21:return!!ge.getWinTitle;case 22:return!!ge.pushTitle;case 23:return!!ge.popTitle;case 24:return!!ge.setWinLines}return!1}(function(fe){fe[fe.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",fe[fe.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS"})(pe=ve.WindowsOptionsReportType||(ve.WindowsOptionsReportType={}));var te=function(){function fe(ge,me,he,Se){this._bufferService=ge,this._coreService=me,this._logService=he,this._optionsService=Se,this._data=new Uint32Array(0)}return fe.prototype.hook=function(ge){this._data=new Uint32Array(0)},fe.prototype.put=function(ge,me,he){this._data=ce.concat(this._data,ge.subarray(me,he))},fe.prototype.unhook=function(ge){if(ge){var me=ue.utf32ToString(this._data);switch(this._data=new Uint32Array(0),me){case'"q':return this._coreService.triggerDataEvent(de.C0.ESC+'P1$r0"q'+de.C0.ESC+"\\");case'"p':return this._coreService.triggerDataEvent(de.C0.ESC+'P1$r61;1"p'+de.C0.ESC+"\\");case"r":var he=this._bufferService.buffer.scrollTop+1+";"+(this._bufferService.buffer.scrollBottom+1)+"r";return this._coreService.triggerDataEvent(de.C0.ESC+"P1$r"+he+de.C0.ESC+"\\");case"m":return this._coreService.triggerDataEvent(de.C0.ESC+"P1$r0m"+de.C0.ESC+"\\");case" q":var Se={block:2,underline:4,bar:6}[this._optionsService.options.cursorStyle];return Se-=this._optionsService.options.cursorBlink?1:0,this._coreService.triggerDataEvent(de.C0.ESC+"P1$r"+Se+" q"+de.C0.ESC+"\\");default:this._logService.debug("Unknown DCS $q %s",me),this._coreService.triggerDataEvent(de.C0.ESC+"P0$r"+de.C0.ESC+"\\")}}else this._data=new Uint32Array(0)},fe}(),le=function(fe){function ge(me,he,Se,ye,Pe,we,De,Ee,Ae){Ae===void 0&&(Ae=new ne.EscapeSequenceParser);var Ce=fe.call(this)||this;Ce._bufferService=me,Ce._charsetService=he,Ce._coreService=Se,Ce._dirtyRowService=ye,Ce._logService=Pe,Ce._optionsService=we,Ce._coreMouseService=De,Ce._unicodeService=Ee,Ce._parser=Ae,Ce._parseBuffer=new Uint32Array(4096),Ce._stringDecoder=new ue.StringToUtf32,Ce._utf8Decoder=new ue.Utf8ToUtf32,Ce._workCell=new ee.CellData,Ce._windowTitle="",Ce._iconName="",Ce._windowTitleStack=[],Ce._iconNameStack=[],Ce._curAttrData=ae.DEFAULT_ATTR_DATA.clone(),Ce._eraseAttrDataInternal=ae.DEFAULT_ATTR_DATA.clone(),Ce._onRequestBell=new oe.EventEmitter,Ce._onRequestRefreshRows=new oe.EventEmitter,Ce._onRequestReset=new oe.EventEmitter,Ce._onRequestScroll=new oe.EventEmitter,Ce._onRequestSyncScrollBar=new oe.EventEmitter,Ce._onRequestWindowsOptionsReport=new oe.EventEmitter,Ce._onA11yChar=new oe.EventEmitter,Ce._onA11yTab=new oe.EventEmitter,Ce._onCursorMove=new oe.EventEmitter,Ce._onLineFeed=new oe.EventEmitter,Ce._onScroll=new oe.EventEmitter,Ce._onTitleChange=new oe.EventEmitter,Ce.register(Ce._parser),Ce._parser.setCsiHandlerFallback(function(Fe,Je){Ce._logService.debug("Unknown CSI code: ",{identifier:Ce._parser.identToString(Fe),params:Je.toArray()})}),Ce._parser.setEscHandlerFallback(function(Fe){Ce._logService.debug("Unknown ESC code: ",{identifier:Ce._parser.identToString(Fe)})}),Ce._parser.setExecuteHandlerFallback(function(Fe){Ce._logService.debug("Unknown EXECUTE code: ",{code:Fe})}),Ce._parser.setOscHandlerFallback(function(Fe,Je,qe){Ce._logService.debug("Unknown OSC code: ",{identifier:Fe,action:Je,data:qe})}),Ce._parser.setDcsHandlerFallback(function(Fe,Je,qe){Je==="HOOK"&&(qe=qe.toArray()),Ce._logService.debug("Unknown DCS code: ",{identifier:Ce._parser.identToString(Fe),action:Je,payload:qe})}),Ce._parser.setPrintHandler(function(Fe,Je,qe){return Ce.print(Fe,Je,qe)}),Ce._parser.setCsiHandler({final:"@"},function(Fe){return Ce.insertChars(Fe)}),Ce._parser.setCsiHandler({intermediates:" ",final:"@"},function(Fe){return Ce.scrollLeft(Fe)}),Ce._parser.setCsiHandler({final:"A"},function(Fe){return Ce.cursorUp(Fe)}),Ce._parser.setCsiHandler({intermediates:" ",final:"A"},function(Fe){return Ce.scrollRight(Fe)}),Ce._parser.setCsiHandler({final:"B"},function(Fe){return Ce.cursorDown(Fe)}),Ce._parser.setCsiHandler({final:"C"},function(Fe){return Ce.cursorForward(Fe)}),Ce._parser.setCsiHandler({final:"D"},function(Fe){return Ce.cursorBackward(Fe)}),Ce._parser.setCsiHandler({final:"E"},function(Fe){return Ce.cursorNextLine(Fe)}),Ce._parser.setCsiHandler({final:"F"},function(Fe){return Ce.cursorPrecedingLine(Fe)}),Ce._parser.setCsiHandler({final:"G"},function(Fe){return Ce.cursorCharAbsolute(Fe)}),Ce._parser.setCsiHandler({final:"H"},function(Fe){return Ce.cursorPosition(Fe)}),Ce._parser.setCsiHandler({final:"I"},function(Fe){return Ce.cursorForwardTab(Fe)}),Ce._parser.setCsiHandler({final:"J"},function(Fe){return Ce.eraseInDisplay(Fe)}),Ce._parser.setCsiHandler({prefix:"?",final:"J"},function(Fe){return Ce.eraseInDisplay(Fe)}),Ce._parser.setCsiHandler({final:"K"},function(Fe){return Ce.eraseInLine(Fe)}),Ce._parser.setCsiHandler({prefix:"?",final:"K"},function(Fe){return Ce.eraseInLine(Fe)}),Ce._parser.setCsiHandler({final:"L"},function(Fe){return Ce.insertLines(Fe)}),Ce._parser.setCsiHandler({final:"M"},function(Fe){return Ce.deleteLines(Fe)}),Ce._parser.setCsiHandler({final:"P"},function(Fe){return Ce.deleteChars(Fe)}),Ce._parser.setCsiHandler({final:"S"},function(Fe){return Ce.scrollUp(Fe)}),Ce._parser.setCsiHandler({final:"T"},function(Fe){return Ce.scrollDown(Fe)}),Ce._parser.setCsiHandler({final:"X"},function(Fe){return Ce.eraseChars(Fe)}),Ce._parser.setCsiHandler({final:"Z"},function(Fe){return Ce.cursorBackwardTab(Fe)}),Ce._parser.setCsiHandler({final:"`"},function(Fe){return Ce.charPosAbsolute(Fe)}),Ce._parser.setCsiHandler({final:"a"},function(Fe){return Ce.hPositionRelative(Fe)}),Ce._parser.setCsiHandler({final:"b"},function(Fe){return Ce.repeatPrecedingCharacter(Fe)}),Ce._parser.setCsiHandler({final:"c"},function(Fe){return Ce.sendDeviceAttributesPrimary(Fe)}),Ce._parser.setCsiHandler({prefix:">",final:"c"},function(Fe){return Ce.sendDeviceAttributesSecondary(Fe)}),Ce._parser.setCsiHandler({final:"d"},function(Fe){return Ce.linePosAbsolute(Fe)}),Ce._parser.setCsiHandler({final:"e"},function(Fe){return Ce.vPositionRelative(Fe)}),Ce._parser.setCsiHandler({final:"f"},function(Fe){return Ce.hVPosition(Fe)}),Ce._parser.setCsiHandler({final:"g"},function(Fe){return Ce.tabClear(Fe)}),Ce._parser.setCsiHandler({final:"h"},function(Fe){return Ce.setMode(Fe)}),Ce._parser.setCsiHandler({prefix:"?",final:"h"},function(Fe){return Ce.setModePrivate(Fe)}),Ce._parser.setCsiHandler({final:"l"},function(Fe){return Ce.resetMode(Fe)}),Ce._parser.setCsiHandler({prefix:"?",final:"l"},function(Fe){return Ce.resetModePrivate(Fe)}),Ce._parser.setCsiHandler({final:"m"},function(Fe){return Ce.charAttributes(Fe)}),Ce._parser.setCsiHandler({final:"n"},function(Fe){return Ce.deviceStatus(Fe)}),Ce._parser.setCsiHandler({prefix:"?",final:"n"},function(Fe){return Ce.deviceStatusPrivate(Fe)}),Ce._parser.setCsiHandler({intermediates:"!",final:"p"},function(Fe){return Ce.softReset(Fe)}),Ce._parser.setCsiHandler({intermediates:" ",final:"q"},function(Fe){return Ce.setCursorStyle(Fe)}),Ce._parser.setCsiHandler({final:"r"},function(Fe){return Ce.setScrollRegion(Fe)}),Ce._parser.setCsiHandler({final:"s"},function(Fe){return Ce.saveCursor(Fe)}),Ce._parser.setCsiHandler({final:"t"},function(Fe){return Ce.windowOptions(Fe)}),Ce._parser.setCsiHandler({final:"u"},function(Fe){return Ce.restoreCursor(Fe)}),Ce._parser.setCsiHandler({intermediates:"'",final:"}"},function(Fe){return Ce.insertColumns(Fe)}),Ce._parser.setCsiHandler({intermediates:"'",final:"~"},function(Fe){return Ce.deleteColumns(Fe)}),Ce._parser.setExecuteHandler(de.C0.BEL,function(){return Ce.bell()}),Ce._parser.setExecuteHandler(de.C0.LF,function(){return Ce.lineFeed()}),Ce._parser.setExecuteHandler(de.C0.VT,function(){return Ce.lineFeed()}),Ce._parser.setExecuteHandler(de.C0.FF,function(){return Ce.lineFeed()}),Ce._parser.setExecuteHandler(de.C0.CR,function(){return Ce.carriageReturn()}),Ce._parser.setExecuteHandler(de.C0.BS,function(){return Ce.backspace()}),Ce._parser.setExecuteHandler(de.C0.HT,function(){return Ce.tab()}),Ce._parser.setExecuteHandler(de.C0.SO,function(){return Ce.shiftOut()}),Ce._parser.setExecuteHandler(de.C0.SI,function(){return Ce.shiftIn()}),Ce._parser.setExecuteHandler(de.C1.IND,function(){return Ce.index()}),Ce._parser.setExecuteHandler(de.C1.NEL,function(){return Ce.nextLine()}),Ce._parser.setExecuteHandler(de.C1.HTS,function(){return Ce.tabSet()}),Ce._parser.setOscHandler(0,new y.OscHandler(function(Fe){Ce.setTitle(Fe),Ce.setIconName(Fe)})),Ce._parser.setOscHandler(1,new y.OscHandler(function(Fe){return Ce.setIconName(Fe)})),Ce._parser.setOscHandler(2,new y.OscHandler(function(Fe){return Ce.setTitle(Fe)})),Ce._parser.setEscHandler({final:"7"},function(){return Ce.saveCursor()}),Ce._parser.setEscHandler({final:"8"},function(){return Ce.restoreCursor()}),Ce._parser.setEscHandler({final:"D"},function(){return Ce.index()}),Ce._parser.setEscHandler({final:"E"},function(){return Ce.nextLine()}),Ce._parser.setEscHandler({final:"H"},function(){return Ce.tabSet()}),Ce._parser.setEscHandler({final:"M"},function(){return Ce.reverseIndex()}),Ce._parser.setEscHandler({final:"="},function(){return Ce.keypadApplicationMode()}),Ce._parser.setEscHandler({final:">"},function(){return Ce.keypadNumericMode()}),Ce._parser.setEscHandler({final:"c"},function(){return Ce.fullReset()}),Ce._parser.setEscHandler({final:"n"},function(){return Ce.setgLevel(2)}),Ce._parser.setEscHandler({final:"o"},function(){return Ce.setgLevel(3)}),Ce._parser.setEscHandler({final:"|"},function(){return Ce.setgLevel(3)}),Ce._parser.setEscHandler({final:"}"},function(){return Ce.setgLevel(2)}),Ce._parser.setEscHandler({final:"~"},function(){return Ce.setgLevel(1)}),Ce._parser.setEscHandler({intermediates:"%",final:"@"},function(){return Ce.selectDefaultCharset()}),Ce._parser.setEscHandler({intermediates:"%",final:"G"},function(){return Ce.selectDefaultCharset()});var je=function(Fe){Me._parser.setEscHandler({intermediates:"(",final:Fe},function(){return Ce.selectCharset("("+Fe)}),Me._parser.setEscHandler({intermediates:")",final:Fe},function(){return Ce.selectCharset(")"+Fe)}),Me._parser.setEscHandler({intermediates:"*",final:Fe},function(){return Ce.selectCharset("*"+Fe)}),Me._parser.setEscHandler({intermediates:"+",final:Fe},function(){return Ce.selectCharset("+"+Fe)}),Me._parser.setEscHandler({intermediates:"-",final:Fe},function(){return Ce.selectCharset("-"+Fe)}),Me._parser.setEscHandler({intermediates:".",final:Fe},function(){return Ce.selectCharset("."+Fe)}),Me._parser.setEscHandler({intermediates:"/",final:Fe},function(){return Ce.selectCharset("/"+Fe)})},Me=this;for(var Ge in se.CHARSETS)je(Ge);return Ce._parser.setEscHandler({intermediates:"#",final:"8"},function(){return Ce.screenAlignmentPattern()}),Ce._parser.setErrorHandler(function(Fe){return Ce._logService.error("Parsing error: ",Fe),Fe}),Ce._parser.setDcsHandler({intermediates:"$",final:"q"},new te(Ce._bufferService,Ce._coreService,Ce._logService,Ce._optionsService)),Ce}return E(ge,fe),Object.defineProperty(ge.prototype,"onRequestBell",{get:function(){return this._onRequestBell.event},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"onRequestRefreshRows",{get:function(){return this._onRequestRefreshRows.event},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"onRequestReset",{get:function(){return this._onRequestReset.event},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"onRequestScroll",{get:function(){return this._onRequestScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"onRequestSyncScrollBar",{get:function(){return this._onRequestSyncScrollBar.event},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"onRequestWindowsOptionsReport",{get:function(){return this._onRequestWindowsOptionsReport.event},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"onA11yChar",{get:function(){return this._onA11yChar.event},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"onA11yTab",{get:function(){return this._onA11yTab.event},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),ge.prototype.dispose=function(){fe.prototype.dispose.call(this)},ge.prototype.parse=function(me){var he=this._bufferService.buffer,Se=he.x,ye=he.y;if(this._logService.debug("parsing data",me),this._parseBuffer.length131072)for(var Pe=0;Pe0&&Ge.getWidth(we.x-1)===2&&Ge.setCellFromCodePoint(we.x-1,0,1,Me.fg,Me.bg,Me.extended);for(var Fe=he;Fe=Ae){if(Ce){for(;we.x=this._bufferService.rows&&(we.y=this._bufferService.rows-1),we.lines.get(we.ybase+we.y).isWrapped=!0),Ge=we.lines.get(we.ybase+we.y)}else if(we.x=Ae-1,Pe===2)continue}if(je&&(Ge.insertCells(we.x,Pe,we.getNullCell(Me),Me),Ge.getWidth(Ae-1)===2&&Ge.setCellFromCodePoint(Ae-1,re.NULL_CELL_CODE,re.NULL_CELL_WIDTH,Me.fg,Me.bg,Me.extended)),Ge.setCellFromCodePoint(we.x++,ye,Pe,Me.fg,Me.bg,Me.extended),Pe>0)for(;--Pe;)Ge.setCellFromCodePoint(we.x++,0,0,Me.fg,Me.bg,Me.extended)}else Ge.getWidth(we.x-1)?Ge.addCodepointToCell(we.x-1,ye):Ge.addCodepointToCell(we.x-2,ye)}Se-he>0&&(Ge.loadCell(we.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),we.x0&&Ge.getWidth(we.x)===0&&!Ge.hasContent(we.x)&&Ge.setCellFromCodePoint(we.x,0,1,Me.fg,Me.bg,Me.extended),this._dirtyRowService.markDirty(we.y)},ge.prototype.addCsiHandler=function(me,he){var Se=this;return me.final!=="t"||me.prefix||me.intermediates?this._parser.addCsiHandler(me,he):this._parser.addCsiHandler(me,function(ye){return!z(ye.params[0],Se._optionsService.options.windowOptions)||he(ye)})},ge.prototype.addDcsHandler=function(me,he){return this._parser.addDcsHandler(me,new x.DcsHandler(he))},ge.prototype.addEscHandler=function(me,he){return this._parser.addEscHandler(me,he)},ge.prototype.addOscHandler=function(me,he){return this._parser.addOscHandler(me,new y.OscHandler(he))},ge.prototype.bell=function(){this._onRequestBell.fire()},ge.prototype.lineFeed=function(){var me=this._bufferService.buffer;this._dirtyRowService.markDirty(me.y),this._optionsService.options.convertEol&&(me.x=0),me.y++,me.y===me.scrollBottom+1?(me.y--,this._onRequestScroll.fire(this._eraseAttrData())):me.y>=this._bufferService.rows&&(me.y=this._bufferService.rows-1),me.x>=this._bufferService.cols&&me.x--,this._dirtyRowService.markDirty(me.y),this._onLineFeed.fire()},ge.prototype.carriageReturn=function(){this._bufferService.buffer.x=0},ge.prototype.backspace=function(){var me,he=this._bufferService.buffer;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),void(he.x>0&&he.x--);if(this._restrictCursor(this._bufferService.cols),he.x>0)he.x--;else if(he.x===0&&he.y>he.scrollTop&&he.y<=he.scrollBottom&&(!((me=he.lines.get(he.ybase+he.y))===null||me===void 0)&&me.isWrapped)){he.lines.get(he.ybase+he.y).isWrapped=!1,he.y--,he.x=this._bufferService.cols-1;var Se=he.lines.get(he.ybase+he.y);Se.hasWidth(he.x)&&!Se.hasContent(he.x)&&he.x--}this._restrictCursor()},ge.prototype.tab=function(){if(!(this._bufferService.buffer.x>=this._bufferService.cols)){var me=this._bufferService.buffer.x;this._bufferService.buffer.x=this._bufferService.buffer.nextStop(),this._optionsService.options.screenReaderMode&&this._onA11yTab.fire(this._bufferService.buffer.x-me)}},ge.prototype.shiftOut=function(){this._charsetService.setgLevel(1)},ge.prototype.shiftIn=function(){this._charsetService.setgLevel(0)},ge.prototype._restrictCursor=function(me){me===void 0&&(me=this._bufferService.cols-1),this._bufferService.buffer.x=Math.min(me,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)},ge.prototype._setCursor=function(me,he){this._dirtyRowService.markDirty(this._bufferService.buffer.y),this._coreService.decPrivateModes.origin?(this._bufferService.buffer.x=me,this._bufferService.buffer.y=this._bufferService.buffer.scrollTop+he):(this._bufferService.buffer.x=me,this._bufferService.buffer.y=he),this._restrictCursor(),this._dirtyRowService.markDirty(this._bufferService.buffer.y)},ge.prototype._moveCursor=function(me,he){this._restrictCursor(),this._setCursor(this._bufferService.buffer.x+me,this._bufferService.buffer.y+he)},ge.prototype.cursorUp=function(me){var he=this._bufferService.buffer.y-this._bufferService.buffer.scrollTop;he>=0?this._moveCursor(0,-Math.min(he,me.params[0]||1)):this._moveCursor(0,-(me.params[0]||1))},ge.prototype.cursorDown=function(me){var he=this._bufferService.buffer.scrollBottom-this._bufferService.buffer.y;he>=0?this._moveCursor(0,Math.min(he,me.params[0]||1)):this._moveCursor(0,me.params[0]||1)},ge.prototype.cursorForward=function(me){this._moveCursor(me.params[0]||1,0)},ge.prototype.cursorBackward=function(me){this._moveCursor(-(me.params[0]||1),0)},ge.prototype.cursorNextLine=function(me){this.cursorDown(me),this._bufferService.buffer.x=0},ge.prototype.cursorPrecedingLine=function(me){this.cursorUp(me),this._bufferService.buffer.x=0},ge.prototype.cursorCharAbsolute=function(me){this._setCursor((me.params[0]||1)-1,this._bufferService.buffer.y)},ge.prototype.cursorPosition=function(me){this._setCursor(me.length>=2?(me.params[1]||1)-1:0,(me.params[0]||1)-1)},ge.prototype.charPosAbsolute=function(me){this._setCursor((me.params[0]||1)-1,this._bufferService.buffer.y)},ge.prototype.hPositionRelative=function(me){this._moveCursor(me.params[0]||1,0)},ge.prototype.linePosAbsolute=function(me){this._setCursor(this._bufferService.buffer.x,(me.params[0]||1)-1)},ge.prototype.vPositionRelative=function(me){this._moveCursor(0,me.params[0]||1)},ge.prototype.hVPosition=function(me){this.cursorPosition(me)},ge.prototype.tabClear=function(me){var he=me.params[0];he===0?delete this._bufferService.buffer.tabs[this._bufferService.buffer.x]:he===3&&(this._bufferService.buffer.tabs={})},ge.prototype.cursorForwardTab=function(me){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var he=me.params[0]||1;he--;)this._bufferService.buffer.x=this._bufferService.buffer.nextStop()},ge.prototype.cursorBackwardTab=function(me){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var he=me.params[0]||1,Se=this._bufferService.buffer;he--;)Se.x=Se.prevStop()},ge.prototype._eraseInBufferLine=function(me,he,Se,ye){ye===void 0&&(ye=!1);var Pe=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+me);Pe.replaceCells(he,Se,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),ye&&(Pe.isWrapped=!1)},ge.prototype._resetBufferLine=function(me){var he=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+me);he.fill(this._bufferService.buffer.getNullCell(this._eraseAttrData())),he.isWrapped=!1},ge.prototype.eraseInDisplay=function(me){var he;switch(this._restrictCursor(),me.params[0]){case 0:for(he=this._bufferService.buffer.y,this._dirtyRowService.markDirty(he),this._eraseInBufferLine(he++,this._bufferService.buffer.x,this._bufferService.cols,this._bufferService.buffer.x===0);he=this._bufferService.cols&&(this._bufferService.buffer.lines.get(he+1).isWrapped=!1);he--;)this._resetBufferLine(he);this._dirtyRowService.markDirty(0);break;case 2:for(he=this._bufferService.rows,this._dirtyRowService.markDirty(he-1);he--;)this._resetBufferLine(he);this._dirtyRowService.markDirty(0);break;case 3:var Se=this._bufferService.buffer.lines.length-this._bufferService.rows;Se>0&&(this._bufferService.buffer.lines.trimStart(Se),this._bufferService.buffer.ybase=Math.max(this._bufferService.buffer.ybase-Se,0),this._bufferService.buffer.ydisp=Math.max(this._bufferService.buffer.ydisp-Se,0),this._onScroll.fire(0))}},ge.prototype.eraseInLine=function(me){switch(this._restrictCursor(),me.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)},ge.prototype.insertLines=function(me){this._restrictCursor();var he=me.params[0]||1,Se=this._bufferService.buffer;if(!(Se.y>Se.scrollBottom||Se.ySe.scrollBottom||Se.yhe.scrollBottom||he.yhe.scrollBottom||he.yhe.scrollBottom||he.yhe.scrollBottom||he.y0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(de.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(de.C0.ESC+"[?6c"))},ge.prototype.sendDeviceAttributesSecondary=function(me){me.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(de.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(de.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(me.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(de.C0.ESC+"[>83;40003;0c"))},ge.prototype._is=function(me){return(this._optionsService.options.termName+"").indexOf(me)===0},ge.prototype.setMode=function(me){for(var he=0;he=2||ye[1]===2&&we+Pe>=5)break;ye[1]&&(Pe=1)}while(++we+he5)&&(me=1),he.extended.underlineStyle=me,he.fg|=268435456,me===0&&(he.fg&=-268435457),he.updateExtended()},ge.prototype.charAttributes=function(me){if(me.length===1&&me.params[0]===0)return this._curAttrData.fg=ae.DEFAULT_ATTR_DATA.fg,void(this._curAttrData.bg=ae.DEFAULT_ATTR_DATA.bg);for(var he,Se=me.length,ye=this._curAttrData,Pe=0;Pe=30&&he<=37?(ye.fg&=-50331904,ye.fg|=16777216|he-30):he>=40&&he<=47?(ye.bg&=-50331904,ye.bg|=16777216|he-40):he>=90&&he<=97?(ye.fg&=-50331904,ye.fg|=16777224|he-90):he>=100&&he<=107?(ye.bg&=-50331904,ye.bg|=16777224|he-100):he===0?(ye.fg=ae.DEFAULT_ATTR_DATA.fg,ye.bg=ae.DEFAULT_ATTR_DATA.bg):he===1?ye.fg|=134217728:he===3?ye.bg|=67108864:he===4?(ye.fg|=268435456,this._processUnderline(me.hasSubParams(Pe)?me.getSubParams(Pe)[0]:1,ye)):he===5?ye.fg|=536870912:he===7?ye.fg|=67108864:he===8?ye.fg|=1073741824:he===2?ye.bg|=134217728:he===21?this._processUnderline(2,ye):he===22?(ye.fg&=-134217729,ye.bg&=-134217729):he===23?ye.bg&=-67108865:he===24?ye.fg&=-268435457:he===25?ye.fg&=-536870913:he===27?ye.fg&=-67108865:he===28?ye.fg&=-1073741825:he===39?(ye.fg&=-67108864,ye.fg|=16777215&ae.DEFAULT_ATTR_DATA.fg):he===49?(ye.bg&=-67108864,ye.bg|=16777215&ae.DEFAULT_ATTR_DATA.bg):he===38||he===48||he===58?Pe+=this._extractColor(me,Pe,ye):he===59?(ye.extended=ye.extended.clone(),ye.extended.underlineColor=-1,ye.updateExtended()):he===100?(ye.fg&=-67108864,ye.fg|=16777215&ae.DEFAULT_ATTR_DATA.fg,ye.bg&=-67108864,ye.bg|=16777215&ae.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",he)},ge.prototype.deviceStatus=function(me){switch(me.params[0]){case 5:this._coreService.triggerDataEvent(de.C0.ESC+"[0n");break;case 6:var he=this._bufferService.buffer.y+1,Se=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(de.C0.ESC+"["+he+";"+Se+"R")}},ge.prototype.deviceStatusPrivate=function(me){switch(me.params[0]){case 6:var he=this._bufferService.buffer.y+1,Se=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(de.C0.ESC+"[?"+he+";"+Se+"R")}},ge.prototype.softReset=function(me){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},ge.prototype.setCursorStyle=function(me){var he=me.params[0]||1;switch(he){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 Se=he%2==1;this._optionsService.options.cursorBlink=Se},ge.prototype.setScrollRegion=function(me){var he,Se=me.params[0]||1;(me.length<2||(he=me.params[1])>this._bufferService.rows||he===0)&&(he=this._bufferService.rows),he>Se&&(this._bufferService.buffer.scrollTop=Se-1,this._bufferService.buffer.scrollBottom=he-1,this._setCursor(0,0))},ge.prototype.windowOptions=function(me){if(z(me.params[0],this._optionsService.options.windowOptions)){var he=me.length>1?me.params[1]:0;switch(me.params[0]){case 14:he!==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(de.C0.ESC+"[8;"+this._bufferService.rows+";"+this._bufferService.cols+"t");break;case 22:he!==0&&he!==2||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),he!==0&&he!==1||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:he!==0&&he!==2||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),he!==0&&he!==1||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}}},ge.prototype.saveCursor=function(me){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},ge.prototype.restoreCursor=function(me){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()},ge.prototype.setTitle=function(me){this._windowTitle=me,this._onTitleChange.fire(me)},ge.prototype.setIconName=function(me){this._iconName=me},ge.prototype.nextLine=function(){this._bufferService.buffer.x=0,this.index()},ge.prototype.keypadApplicationMode=function(){this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire()},ge.prototype.keypadNumericMode=function(){this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire()},ge.prototype.selectDefaultCharset=function(){this._charsetService.setgLevel(0),this._charsetService.setgCharset(0,se.DEFAULT_CHARSET)},ge.prototype.selectCharset=function(me){me.length===2?me[0]!=="/"&&this._charsetService.setgCharset(b[me[0]],se.CHARSETS[me[1]]||se.DEFAULT_CHARSET):this.selectDefaultCharset()},ge.prototype.index=function(){this._restrictCursor();var me=this._bufferService.buffer;this._bufferService.buffer.y++,me.y===me.scrollBottom+1?(me.y--,this._onRequestScroll.fire(this._eraseAttrData())):me.y>=this._bufferService.rows&&(me.y=this._bufferService.rows-1),this._restrictCursor()},ge.prototype.tabSet=function(){this._bufferService.buffer.tabs[this._bufferService.buffer.x]=!0},ge.prototype.reverseIndex=function(){this._restrictCursor();var me=this._bufferService.buffer;if(me.y===me.scrollTop){var he=me.scrollBottom-me.scrollTop;me.lines.shiftElements(me.ybase+me.y,he,1),me.lines.set(me.ybase+me.y,me.getBlankLine(this._eraseAttrData())),this._dirtyRowService.markRangeDirty(me.scrollTop,me.scrollBottom)}else me.y--,this._restrictCursor()},ge.prototype.fullReset=function(){this._parser.reset(),this._onRequestReset.fire()},ge.prototype.reset=function(){this._curAttrData=ae.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=ae.DEFAULT_ATTR_DATA.clone()},ge.prototype._eraseAttrData=function(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal},ge.prototype.setgLevel=function(me){this._charsetService.setgLevel(me)},ge.prototype.screenAlignmentPattern=function(){var me=new ee.CellData;me.content=1<<22|69,me.fg=this._curAttrData.fg,me.bg=this._curAttrData.bg;var he=this._bufferService.buffer;this._setCursor(0,0);for(var Se=0;Se256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(pe),this.length=0,this._subParams=new Int32Array(de),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(pe),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}return E.fromArray=function(pe){var de=new E;if(!pe.length)return de;for(var se=pe[0]instanceof Array?1:0;se>8,ne=255&this._subParamsIdx[de];ne-se>0&&pe.push(Array.prototype.slice.call(this._subParams,se,ne))}return pe},E.prototype.reset=function(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1},E.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}},E.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]++}},E.prototype.hasSubParams=function(pe){return(255&this._subParamsIdx[pe])-(this._subParamsIdx[pe]>>8)>0},E.prototype.getSubParams=function(pe){var de=this._subParamsIdx[pe]>>8,se=255&this._subParamsIdx[pe];return se-de>0?this._subParams.subarray(de,se):null},E.prototype.getSubParamsAll=function(){for(var pe={},de=0;de>8,ne=255&this._subParamsIdx[de];ne-se>0&&(pe[de]=this._subParams.slice(se,ne))}return pe},E.prototype.addDigit=function(pe){var de;if(!(this._rejectDigits||!(de=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)){var se=this._digitIsSub?this._subParams:this.params,ne=se[de-1];se[de-1]=~ne?Math.min(10*ne+pe,2147483647):pe}},E}();ve.Params=_e},function(dt,ve,be){"use strict";Object.defineProperty(ve,"__esModule",{value:!0}),ve.OscHandler=ve.OscParser=void 0;var _e=be(23),E=be(8),pe=function(){function se(){this._state=0,this._id=-1,this._handlers=Object.create(null),this._handlerFb=function(){}}return se.prototype.addHandler=function(ne,ie){this._handlers[ne]===void 0&&(this._handlers[ne]=[]);var ce=this._handlers[ne];return ce.push(ie),{dispose:function(){var ue=ce.indexOf(ie);ue!==-1&&ce.splice(ue,1)}}},se.prototype.setHandler=function(ne,ie){this._handlers[ne]=[ie]},se.prototype.clearHandler=function(ne){this._handlers[ne]&&delete this._handlers[ne]},se.prototype.setHandlerFallback=function(ne){this._handlerFb=ne},se.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},se.prototype.reset=function(){this._state===2&&this.end(!1),this._id=-1,this._state=0},se.prototype._start=function(){var ne=this._handlers[this._id];if(ne)for(var ie=ne.length-1;ie>=0;ie--)ne[ie].start();else this._handlerFb(this._id,"START")},se.prototype._put=function(ne,ie,ce){var ue=this._handlers[this._id];if(ue)for(var ae=ue.length-1;ae>=0;ae--)ue[ae].put(ne,ie,ce);else this._handlerFb(this._id,"PUT",E.utf32ToString(ne,ie,ce))},se.prototype._end=function(ne){var ie=this._handlers[this._id];if(ie){for(var ce=ie.length-1;ce>=0&&ie[ce].end(ne)===!1;ce--);for(ce--;ce>=0;ce--)ie[ce].end(!1)}else this._handlerFb(this._id,"END",ne)},se.prototype.start=function(){this.reset(),this._id=-1,this._state=1},se.prototype.put=function(ne,ie,ce){if(this._state!==3){if(this._state===1)for(;ie0&&this._put(ne,ie,ce)}},se.prototype.end=function(ne){this._state!==0&&(this._state!==3&&(this._state===1&&this._start(),this._end(ne)),this._id=-1,this._state=0)},se}();ve.OscParser=pe;var de=function(){function se(ne){this._handler=ne,this._data="",this._hitLimit=!1}return se.prototype.start=function(){this._data="",this._hitLimit=!1},se.prototype.put=function(ne,ie,ce){this._hitLimit||(this._data+=E.utf32ToString(ne,ie,ce),this._data.length>_e.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},se.prototype.end=function(ne){var ie;return this._hitLimit?ie=!1:ne&&(ie=this._handler(this._data)),this._data="",this._hitLimit=!1,ie},se}();ve.OscHandler=de},function(dt,ve,be){"use strict";Object.defineProperty(ve,"__esModule",{value:!0}),ve.PAYLOAD_LIMIT=void 0,ve.PAYLOAD_LIMIT=1e7},function(dt,ve,be){"use strict";Object.defineProperty(ve,"__esModule",{value:!0}),ve.DcsHandler=ve.DcsParser=void 0;var _e=be(8),E=be(21),pe=be(23),de=[],se=function(){function ie(){this._handlers=Object.create(null),this._active=de,this._ident=0,this._handlerFb=function(){}}return ie.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},ie.prototype.addHandler=function(ce,ue){this._handlers[ce]===void 0&&(this._handlers[ce]=[]);var ae=this._handlers[ce];return ae.push(ue),{dispose:function(){var oe=ae.indexOf(ue);oe!==-1&&ae.splice(oe,1)}}},ie.prototype.setHandler=function(ce,ue){this._handlers[ce]=[ue]},ie.prototype.clearHandler=function(ce){this._handlers[ce]&&delete this._handlers[ce]},ie.prototype.setHandlerFallback=function(ce){this._handlerFb=ce},ie.prototype.reset=function(){this._active.length&&this.unhook(!1),this._active=de,this._ident=0},ie.prototype.hook=function(ce,ue){if(this.reset(),this._ident=ce,this._active=this._handlers[ce]||de,this._active.length)for(var ae=this._active.length-1;ae>=0;ae--)this._active[ae].hook(ue);else this._handlerFb(this._ident,"HOOK",ue)},ie.prototype.put=function(ce,ue,ae){if(this._active.length)for(var oe=this._active.length-1;oe>=0;oe--)this._active[oe].put(ce,ue,ae);else this._handlerFb(this._ident,"PUT",_e.utf32ToString(ce,ue,ae))},ie.prototype.unhook=function(ce){if(this._active.length){for(var ue=this._active.length-1;ue>=0&&this._active[ue].unhook(ce)===!1;ue--);for(ue--;ue>=0;ue--)this._active[ue].unhook(!1)}else this._handlerFb(this._ident,"UNHOOK",ce);this._active=de,this._ident=0},ie}();ve.DcsParser=se;var ne=function(){function ie(ce){this._handler=ce,this._data="",this._hitLimit=!1}return ie.prototype.hook=function(ce){this._params=ce.clone(),this._data="",this._hitLimit=!1},ie.prototype.put=function(ce,ue,ae){this._hitLimit||(this._data+=_e.utf32ToString(ce,ue,ae),this._data.length>pe.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},ie.prototype.unhook=function(ce){var ue;return this._hitLimit?ue=!1:ce&&(ue=this._handler(this._data,this._params||new E.Params)),this._params=void 0,this._data="",this._hitLimit=!1,ue},ie}();ve.DcsHandler=ne},function(dt,ve,be){"use strict";Object.defineProperty(ve,"__esModule",{value:!0}),ve.removeTerminalFromCache=ve.acquireCharAtlas=void 0;var _e=be(26),E=be(43),pe=[];ve.acquireCharAtlas=function(de,se,ne,ie,ce){for(var ue=_e.generateConfig(ie,ce,de,ne),ae=0;ae=0){if(_e.configEquals(re.config,ue))return re.atlas;re.ownedBy.length===1?(re.atlas.dispose(),pe.splice(ae,1)):re.ownedBy.splice(oe,1);break}}for(ae=0;ae1)for(var te=this._getJoinedRanges(re,y,a,ae,ee),le=0;le1)for(te=this._getJoinedRanges(re,y,a,ae,ee),le=0;le=this._line.length))return a?(this._line.loadCell(ee,a),a):this._line.loadCell(ee,new _e.CellData)},re.prototype.translateToString=function(ee,a,y){return this._line.translateToString(ee,a,y)},re}(),ae=function(){function re(ee){this._core=ee}return re.prototype.registerCsiHandler=function(ee,a){return this._core.addCsiHandler(ee,function(y){return a(y.toArray())})},re.prototype.addCsiHandler=function(ee,a){return this.registerCsiHandler(ee,a)},re.prototype.registerDcsHandler=function(ee,a){return this._core.addDcsHandler(ee,function(y,x){return a(y,x.toArray())})},re.prototype.addDcsHandler=function(ee,a){return this.registerDcsHandler(ee,a)},re.prototype.registerEscHandler=function(ee,a){return this._core.addEscHandler(ee,a)},re.prototype.addEscHandler=function(ee,a){return this.registerEscHandler(ee,a)},re.prototype.registerOscHandler=function(ee,a){return this._core.addOscHandler(ee,a)},re.prototype.addOscHandler=function(ee,a){return this.registerOscHandler(ee,a)},re}(),oe=function(){function re(ee){this._core=ee}return re.prototype.register=function(ee){this._core.unicodeService.register(ee)},Object.defineProperty(re.prototype,"versions",{get:function(){return this._core.unicodeService.versions},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"activeVersion",{get:function(){return this._core.unicodeService.activeVersion},set:function(ee){this._core.unicodeService.activeVersion=ee},enumerable:!1,configurable:!0}),re}()},function(dt,ve,be){"use strict";var _e,E=this&&this.__extends||(_e=function(Ae,Ce){return(_e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(je,Me){je.__proto__=Me}||function(je,Me){for(var Ge in Me)Me.hasOwnProperty(Ge)&&(je[Ge]=Me[Ge])})(Ae,Ce)},function(Ae,Ce){function je(){this.constructor=Ae}_e(Ae,Ce),Ae.prototype=Ce===null?Object.create(Ce):(je.prototype=Ce.prototype,new je)});Object.defineProperty(ve,"__esModule",{value:!0}),ve.Terminal=void 0;var pe=be(36),de=be(37),se=be(38),ne=be(12),ie=be(19),ce=be(40),ue=be(50),ae=be(51),oe=be(11),re=be(7),ee=be(18),a=be(54),y=be(55),x=be(56),b=be(57),z=be(59),te=be(0),le=be(16),fe=be(27),ge=be(60),me=be(5),he=be(61),Se=be(62),ye=be(63),Pe=be(64),we=be(65),De=typeof window!="undefined"?window.document:null,Ee=function(Ae){function Ce(je){je===void 0&&(je={});var Me=Ae.call(this,je)||this;return Me.browser=oe,Me._keyDownHandled=!1,Me._onCursorMove=new te.EventEmitter,Me._onKey=new te.EventEmitter,Me._onRender=new te.EventEmitter,Me._onSelectionChange=new te.EventEmitter,Me._onTitleChange=new te.EventEmitter,Me._onFocus=new te.EventEmitter,Me._onBlur=new te.EventEmitter,Me._onA11yCharEmitter=new te.EventEmitter,Me._onA11yTabEmitter=new te.EventEmitter,Me._setup(),Me.linkifier=Me._instantiationService.createInstance(ue.Linkifier),Me.linkifier2=Me.register(Me._instantiationService.createInstance(ye.Linkifier2)),Me.register(Me._inputHandler.onRequestBell(function(){return Me.bell()})),Me.register(Me._inputHandler.onRequestRefreshRows(function(Ge,Fe){return Me.refresh(Ge,Fe)})),Me.register(Me._inputHandler.onRequestReset(function(){return Me.reset()})),Me.register(Me._inputHandler.onRequestScroll(function(Ge,Fe){return Me.scroll(Ge,Fe||void 0)})),Me.register(Me._inputHandler.onRequestWindowsOptionsReport(function(Ge){return Me._reportWindowsOptions(Ge)})),Me.register(te.forwardEvent(Me._inputHandler.onCursorMove,Me._onCursorMove)),Me.register(te.forwardEvent(Me._inputHandler.onTitleChange,Me._onTitleChange)),Me.register(te.forwardEvent(Me._inputHandler.onA11yChar,Me._onA11yCharEmitter)),Me.register(te.forwardEvent(Me._inputHandler.onA11yTab,Me._onA11yTabEmitter)),Me.register(Me._bufferService.onResize(function(Ge){return Me._afterResize(Ge.cols,Ge.rows)})),Me}return E(Ce,Ae),Object.defineProperty(Ce.prototype,"options",{get:function(){return this.optionsService.options},enumerable:!1,configurable:!0}),Object.defineProperty(Ce.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ce.prototype,"onKey",{get:function(){return this._onKey.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ce.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ce.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ce.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ce.prototype,"onFocus",{get:function(){return this._onFocus.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ce.prototype,"onBlur",{get:function(){return this._onBlur.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ce.prototype,"onA11yChar",{get:function(){return this._onA11yCharEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ce.prototype,"onA11yTab",{get:function(){return this._onA11yTabEmitter.event},enumerable:!1,configurable:!0}),Ce.prototype.dispose=function(){var je,Me,Ge;this._isDisposed||(Ae.prototype.dispose.call(this),(je=this._renderService)===null||je===void 0||je.dispose(),this._customKeyEventHandler=void 0,this.write=function(){},(Ge=(Me=this.element)===null||Me===void 0?void 0:Me.parentNode)===null||Ge===void 0||Ge.removeChild(this.element))},Ce.prototype._setup=function(){Ae.prototype._setup.call(this),this._customKeyEventHandler=void 0},Object.defineProperty(Ce.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),Ce.prototype.focus=function(){this.textarea&&this.textarea.focus({preventScroll:!0})},Ce.prototype._updateOptions=function(je){var Me,Ge,Fe,Je;switch(Ae.prototype._updateOptions.call(this,je),je){case"fontFamily":case"fontSize":(Me=this._renderService)===null||Me===void 0||Me.clear(),(Ge=this._charSizeService)===null||Ge===void 0||Ge.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":(Fe=this.viewport)===null||Fe===void 0||Fe.syncScrollArea();break;case"screenReaderMode":this.optionsService.options.screenReaderMode?!this._accessibilityManager&&this._renderService&&(this._accessibilityManager=new x.AccessibilityManager(this,this._renderService)):((Je=this._accessibilityManager)===null||Je===void 0||Je.dispose(),this._accessibilityManager=void 0);break;case"tabStopWidth":this.buffers.setupTabStops();break;case"theme":this._setTheme(this.optionsService.options.theme)}},Ce.prototype._onTextAreaFocus=function(je){this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(ne.C0.ESC+"[I"),this.updateCursorStyle(je),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()},Ce.prototype.blur=function(){var je;return(je=this.textarea)===null||je===void 0?void 0:je.blur()},Ce.prototype._onTextAreaBlur=function(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(ne.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()},Ce.prototype._syncTextArea=function(){if(this.textarea&&this.buffer.isCursorInViewport&&!this._compositionHelper.isComposing){var je=Math.ceil(this._charSizeService.height*this.optionsService.options.lineHeight),Me=this._bufferService.buffer.y*je,Ge=this._bufferService.buffer.x*this._charSizeService.width;this.textarea.style.left=Ge+"px",this.textarea.style.top=Me+"px",this.textarea.style.width=this._charSizeService.width+"px",this.textarea.style.height=je+"px",this.textarea.style.lineHeight=je+"px",this.textarea.style.zIndex="-5"}},Ce.prototype._initGlobal=function(){var je=this;this._bindKeys(),this.register(re.addDisposableDomListener(this.element,"copy",function(Ge){je.hasSelection()&&se.copyHandler(Ge,je._selectionService)}));var Me=function(Ge){return se.handlePasteEvent(Ge,je.textarea,je._coreService)};this.register(re.addDisposableDomListener(this.textarea,"paste",Me)),this.register(re.addDisposableDomListener(this.element,"paste",Me)),oe.isFirefox?this.register(re.addDisposableDomListener(this.element,"mousedown",function(Ge){Ge.button===2&&se.rightClickHandler(Ge,je.textarea,je.screenElement,je._selectionService,je.options.rightClickSelectsWord)})):this.register(re.addDisposableDomListener(this.element,"contextmenu",function(Ge){se.rightClickHandler(Ge,je.textarea,je.screenElement,je._selectionService,je.options.rightClickSelectsWord)})),oe.isLinux&&this.register(re.addDisposableDomListener(this.element,"auxclick",function(Ge){Ge.button===1&&se.moveTextAreaUnderMouseCursor(Ge,je.textarea,je.screenElement)}))},Ce.prototype._bindKeys=function(){var je=this;this.register(re.addDisposableDomListener(this.textarea,"keyup",function(Me){return je._keyUp(Me)},!0)),this.register(re.addDisposableDomListener(this.textarea,"keydown",function(Me){return je._keyDown(Me)},!0)),this.register(re.addDisposableDomListener(this.textarea,"keypress",function(Me){return je._keyPress(Me)},!0)),this.register(re.addDisposableDomListener(this.textarea,"compositionstart",function(){return je._compositionHelper.compositionstart()})),this.register(re.addDisposableDomListener(this.textarea,"compositionupdate",function(Me){return je._compositionHelper.compositionupdate(Me)})),this.register(re.addDisposableDomListener(this.textarea,"compositionend",function(){return je._compositionHelper.compositionend()})),this.register(this.onRender(function(){return je._compositionHelper.updateCompositionElements()})),this.register(this.onRender(function(Me){return je._queueLinkification(Me.start,Me.end)}))},Ce.prototype.open=function(je){var Me=this;if(!je)throw new Error("Terminal requires a parent element.");De.body.contains(je)||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),this._document=je.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"),je.appendChild(this.element);var Ge=De.createDocumentFragment();this._viewportElement=De.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),Ge.appendChild(this._viewportElement),this._viewportScrollArea=De.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=De.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=De.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),Ge.appendChild(this.screenElement),this.textarea=De.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",ee.promptLabel),this.textarea.setAttribute("aria-multiline","false"),this.textarea.setAttribute("autocorrect","off"),this.textarea.setAttribute("autocapitalize","off"),this.textarea.setAttribute("spellcheck","false"),this.textarea.tabIndex=0,this.register(re.addDisposableDomListener(this.textarea,"focus",function(qe){return Me._onTextAreaFocus(qe)})),this.register(re.addDisposableDomListener(this.textarea,"blur",function(){return Me._onTextAreaBlur()})),this._helperContainer.appendChild(this.textarea);var Fe=this._instantiationService.createInstance(Pe.CoreBrowserService,this.textarea);this._instantiationService.setService(me.ICoreBrowserService,Fe),this._charSizeService=this._instantiationService.createInstance(he.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(me.ICharSizeService,this._charSizeService),this._compositionView=De.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(Ge),this._theme=this.options.theme||this._theme,this._colorManager=new fe.ColorManager(De,this.options.allowTransparency),this.register(this.optionsService.onOptionChange(function(qe){return Me._colorManager.onOptionsChange(qe)})),this._colorManager.setTheme(this._theme);var Je=this._createRenderer();this._renderService=this.register(this._instantiationService.createInstance(ge.RenderService,Je,this.rows,this.screenElement)),this._instantiationService.setService(me.IRenderService,this._renderService),this.register(this._renderService.onRenderedBufferChange(function(qe){return Me._onRender.fire(qe)})),this.onResize(function(qe){return Me._renderService.resize(qe.cols,qe.rows)}),this._soundService=this._instantiationService.createInstance(a.SoundService),this._instantiationService.setService(me.ISoundService,this._soundService),this._mouseService=this._instantiationService.createInstance(Se.MouseService),this._instantiationService.setService(me.IMouseService,this._mouseService),this.viewport=this._instantiationService.createInstance(de.Viewport,function(qe,Xe){return Me.scrollLines(qe,Xe)},this._viewportElement,this._viewportScrollArea),this.viewport.onThemeChange(this._colorManager.colors),this.register(this._inputHandler.onRequestSyncScrollBar(function(){return Me.viewport.syncScrollArea()})),this.register(this.viewport),this.register(this.onCursorMove(function(){Me._renderService.onCursorMove(),Me._syncTextArea()})),this.register(this.onResize(function(){return Me._renderService.onResize(Me.cols,Me.rows)})),this.register(this.onBlur(function(){return Me._renderService.onBlur()})),this.register(this.onFocus(function(){return Me._renderService.onFocus()})),this.register(this._renderService.onDimensionsChange(function(){return Me.viewport.syncScrollArea()})),this._selectionService=this.register(this._instantiationService.createInstance(ae.SelectionService,this.element,this.screenElement)),this._instantiationService.setService(me.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines(function(qe){return Me.scrollLines(qe.amount,qe.suppressScrollEvent)})),this.register(this._selectionService.onSelectionChange(function(){return Me._onSelectionChange.fire()})),this.register(this._selectionService.onRequestRedraw(function(qe){return Me._renderService.onSelectionChanged(qe.start,qe.end,qe.columnSelectMode)})),this.register(this._selectionService.onLinuxMouseSelection(function(qe){Me.textarea.value=qe,Me.textarea.focus(),Me.textarea.select()})),this.register(this.onScroll(function(){Me.viewport.syncScrollArea(),Me._selectionService.refresh()})),this.register(re.addDisposableDomListener(this._viewportElement,"scroll",function(){return Me._selectionService.refresh()})),this._mouseZoneManager=this._instantiationService.createInstance(y.MouseZoneManager,this.element,this.screenElement),this.register(this._mouseZoneManager),this.register(this.onScroll(function(){return Me._mouseZoneManager.clearAll()})),this.linkifier.attachToDom(this.element,this._mouseZoneManager),this.linkifier2.attachToDom(this.element,this._mouseService,this._renderService),this.register(re.addDisposableDomListener(this.element,"mousedown",function(qe){return Me._selectionService.onMouseDown(qe)})),this._coreMouseService.areMouseEventsActive?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager=new x.AccessibilityManager(this,this._renderService)),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()},Ce.prototype._createRenderer=function(){switch(this.options.rendererType){case"canvas":return this._instantiationService.createInstance(ce.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+'"')}},Ce.prototype._setTheme=function(je){var Me,Ge,Fe;this._theme=je,(Me=this._colorManager)===null||Me===void 0||Me.setTheme(je),(Ge=this._renderService)===null||Ge===void 0||Ge.setColors(this._colorManager.colors),(Fe=this.viewport)===null||Fe===void 0||Fe.onThemeChange(this._colorManager.colors)},Ce.prototype.bindMouse=function(){var je=this,Me=this,Ge=this.element;function Fe(ze){var Ue,ot,Qe=Me._mouseService.getRawByteCoords(ze,Me.screenElement,Me.cols,Me.rows);if(!Qe)return!1;switch(ze.overrideType||ze.type){case"mousemove":ot=32,ze.buttons===void 0?(Ue=3,ze.button!==void 0&&(Ue=ze.button<3?ze.button:3)):Ue=1&ze.buttons?0:4&ze.buttons?1:2&ze.buttons?2:3;break;case"mouseup":ot=0,Ue=ze.button<3?ze.button:3;break;case"mousedown":ot=1,Ue=ze.button<3?ze.button:3;break;case"wheel":ze.deltaY!==0&&(ot=ze.deltaY<0?0:1),Ue=4;break;default:return!1}return!(ot===void 0||Ue===void 0||Ue>4)&&Me._coreMouseService.triggerMouseEvent({col:Qe.x-33,row:Qe.y-33,button:Ue,action:ot,ctrl:ze.ctrlKey,alt:ze.altKey,shift:ze.shiftKey})}var Je={mouseup:null,wheel:null,mousedrag:null,mousemove:null},qe=function(ze){return Fe(ze),ze.buttons||(je._document.removeEventListener("mouseup",Je.mouseup),Je.mousedrag&&je._document.removeEventListener("mousemove",Je.mousedrag)),je.cancel(ze)},Xe=function(ze){return Fe(ze),ze.preventDefault(),je.cancel(ze)},Ve=function(ze){ze.buttons&&Fe(ze)},We=function(ze){ze.buttons||Fe(ze)};this.register(this._coreMouseService.onProtocolChange(function(ze){ze?(je.optionsService.options.logLevel==="debug"&&je._logService.debug("Binding to mouse events:",je._coreMouseService.explainEvents(ze)),je.element.classList.add("enable-mouse-events"),je._selectionService.disable()):(je._logService.debug("Unbinding from mouse events."),je.element.classList.remove("enable-mouse-events"),je._selectionService.enable()),8&ze?Je.mousemove||(Ge.addEventListener("mousemove",We),Je.mousemove=We):(Ge.removeEventListener("mousemove",Je.mousemove),Je.mousemove=null),16&ze?Je.wheel||(Ge.addEventListener("wheel",Xe,{passive:!1}),Je.wheel=Xe):(Ge.removeEventListener("wheel",Je.wheel),Je.wheel=null),2&ze?Je.mouseup||(Je.mouseup=qe):(je._document.removeEventListener("mouseup",Je.mouseup),Je.mouseup=null),4&ze?Je.mousedrag||(Je.mousedrag=Ve):(je._document.removeEventListener("mousemove",Je.mousedrag),Je.mousedrag=null)})),this._coreMouseService.activeProtocol=this._coreMouseService.activeProtocol,this.register(re.addDisposableDomListener(Ge,"mousedown",function(ze){if(ze.preventDefault(),je.focus(),je._coreMouseService.areMouseEventsActive&&!je._selectionService.shouldForceSelection(ze))return Fe(ze),Je.mouseup&&je._document.addEventListener("mouseup",Je.mouseup),Je.mousedrag&&je._document.addEventListener("mousemove",Je.mousedrag),je.cancel(ze)})),this.register(re.addDisposableDomListener(Ge,"wheel",function(ze){if(!Je.wheel){if(!je.buffer.hasScrollback){var Ue=je.viewport.getLinesScrolled(ze);if(Ue===0)return;for(var ot=ne.C0.ESC+(je._coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(ze.deltaY<0?"A":"B"),Qe="",ut=0;ut47)},Ce.prototype._keyUp=function(je){this._customKeyEventHandler&&this._customKeyEventHandler(je)===!1||(function(Me){return Me.keyCode===16||Me.keyCode===17||Me.keyCode===18}(je)||this.focus(),this.updateCursorStyle(je))},Ce.prototype._keyPress=function(je){var Me;if(this._keyDownHandled||this._customKeyEventHandler&&this._customKeyEventHandler(je)===!1)return!1;if(this.cancel(je),je.charCode)Me=je.charCode;else if(je.which===null||je.which===void 0)Me=je.keyCode;else{if(je.which===0||je.charCode===0)return!1;Me=je.which}return!(!Me||(je.altKey||je.ctrlKey||je.metaKey)&&!this._isThirdLevelShift(this.browser,je))&&(Me=String.fromCharCode(Me),this._onKey.fire({key:Me,domEvent:je}),this._showCursor(),this._coreService.triggerDataEvent(Me,!0),!0)},Ce.prototype.bell=function(){this._soundBell()&&this._soundService.playBellSound()},Ce.prototype.resize=function(je,Me){je!==this.cols||Me!==this.rows?Ae.prototype.resize.call(this,je,Me):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()},Ce.prototype._afterResize=function(je,Me){var Ge,Fe;(Ge=this._charSizeService)===null||Ge===void 0||Ge.measure(),(Fe=this.viewport)===null||Fe===void 0||Fe.syncScrollArea(!0)},Ce.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 je=1;je=0;ee--)(ae=ne[ee])&&(re=(oe<3?ae(re):oe>3?ae(ie,ce,re):ae(ie,ce))||re);return oe>3&&re&&Object.defineProperty(ie,ce,re),re},E=this&&this.__param||function(ne,ie){return function(ce,ue){ie(ce,ue,ne)}};Object.defineProperty(ve,"__esModule",{value:!0}),ve.CompositionHelper=void 0;var pe=be(5),de=be(1),se=function(){function ne(ie,ce,ue,ae,oe,re){this._textarea=ie,this._compositionView=ce,this._bufferService=ue,this._optionsService=ae,this._charSizeService=oe,this._coreService=re,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0}}return Object.defineProperty(ne.prototype,"isComposing",{get:function(){return this._isComposing},enumerable:!1,configurable:!0}),ne.prototype.compositionstart=function(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._compositionView.classList.add("active")},ne.prototype.compositionupdate=function(ie){var ce=this;this._compositionView.textContent=ie.data,this.updateCompositionElements(),setTimeout(function(){ce._compositionPosition.end=ce._textarea.value.length},0)},ne.prototype.compositionend=function(){this._finalizeComposition(!0)},ne.prototype.keydown=function(ie){if(this._isComposing||this._isSendingComposition){if(ie.keyCode===229||ie.keyCode===16||ie.keyCode===17||ie.keyCode===18)return!1;this._finalizeComposition(!1)}return ie.keyCode!==229||(this._handleAnyTextareaChanges(),!1)},ne.prototype._finalizeComposition=function(ie){var ce=this;if(this._compositionView.classList.remove("active"),this._isComposing=!1,ie){var ue={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(function(){if(ce._isSendingComposition){ce._isSendingComposition=!1;var oe=void 0;oe=ce._isComposing?ce._textarea.value.substring(ue.start,ue.end):ce._textarea.value.substring(ue.start),ce._coreService.triggerDataEvent(oe,!0)}},0)}else{this._isSendingComposition=!1;var ae=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(ae,!0)}},ne.prototype._handleAnyTextareaChanges=function(){var ie=this,ce=this._textarea.value;setTimeout(function(){if(!ie._isComposing){var ue=ie._textarea.value.replace(ce,"");ue.length>0&&ie._coreService.triggerDataEvent(ue,!0)}},0)},ne.prototype.updateCompositionElements=function(ie){var ce=this;if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){var ue=Math.ceil(this._charSizeService.height*this._optionsService.options.lineHeight),ae=this._bufferService.buffer.y*ue,oe=this._bufferService.buffer.x*this._charSizeService.width;this._compositionView.style.left=oe+"px",this._compositionView.style.top=ae+"px",this._compositionView.style.height=ue+"px",this._compositionView.style.lineHeight=ue+"px",this._compositionView.style.fontFamily=this._optionsService.options.fontFamily,this._compositionView.style.fontSize=this._optionsService.options.fontSize+"px";var re=this._compositionView.getBoundingClientRect();this._textarea.style.left=oe+"px",this._textarea.style.top=ae+"px",this._textarea.style.width=re.width+"px",this._textarea.style.height=re.height+"px",this._textarea.style.lineHeight=re.height+"px"}ie||setTimeout(function(){return ce.updateCompositionElements(!0)},0)}},ne=_e([E(2,de.IBufferService),E(3,de.IOptionsService),E(4,pe.ICharSizeService),E(5,de.ICoreService)],ne)}();ve.CompositionHelper=se},function(dt,ve,be){"use strict";var _e,E=this&&this.__extends||(_e=function(ae,oe){return(_e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(re,ee){re.__proto__=ee}||function(re,ee){for(var a in ee)ee.hasOwnProperty(a)&&(re[a]=ee[a])})(ae,oe)},function(ae,oe){function re(){this.constructor=ae}_e(ae,oe),ae.prototype=oe===null?Object.create(oe):(re.prototype=oe.prototype,new re)}),pe=this&&this.__decorate||function(ae,oe,re,ee){var a,y=arguments.length,x=y<3?oe:ee===null?ee=Object.getOwnPropertyDescriptor(oe,re):ee;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")x=Reflect.decorate(ae,oe,re,ee);else for(var b=ae.length-1;b>=0;b--)(a=ae[b])&&(x=(y<3?a(x):y>3?a(oe,re,x):a(oe,re))||x);return y>3&&x&&Object.defineProperty(oe,re,x),x},de=this&&this.__param||function(ae,oe){return function(re,ee){oe(re,ee,ae)}};Object.defineProperty(ve,"__esModule",{value:!0}),ve.Viewport=void 0;var se=be(2),ne=be(7),ie=be(5),ce=be(1),ue=function(ae){function oe(re,ee,a,y,x,b,z){var te=ae.call(this)||this;return te._scrollLines=re,te._viewportElement=ee,te._scrollArea=a,te._bufferService=y,te._optionsService=x,te._charSizeService=b,te._renderService=z,te.scrollBarWidth=0,te._currentRowHeight=0,te._lastRecordedBufferLength=0,te._lastRecordedViewportHeight=0,te._lastRecordedBufferHeight=0,te._lastTouchY=0,te._lastScrollTop=0,te._wheelPartialScroll=0,te._refreshAnimationFrame=null,te._ignoreNextScrollEvent=!1,te.scrollBarWidth=te._viewportElement.offsetWidth-te._scrollArea.offsetWidth||15,te.register(ne.addDisposableDomListener(te._viewportElement,"scroll",te._onScroll.bind(te))),setTimeout(function(){return te.syncScrollArea()},0),te}return E(oe,ae),oe.prototype.onThemeChange=function(re){this._viewportElement.style.backgroundColor=re.background.css},oe.prototype._refresh=function(re){var ee=this;if(re)return this._innerRefresh(),void(this._refreshAnimationFrame!==null&&cancelAnimationFrame(this._refreshAnimationFrame));this._refreshAnimationFrame===null&&(this._refreshAnimationFrame=requestAnimationFrame(function(){return ee._innerRefresh()}))},oe.prototype._innerRefresh=function(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;var re=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.canvasHeight);this._lastRecordedBufferHeight!==re&&(this._lastRecordedBufferHeight=re,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}var ee=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==ee&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=ee),this._refreshAnimationFrame=null},oe.prototype.syncScrollArea=function(re){if(re===void 0&&(re=!1),this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(re);if(this._lastRecordedViewportHeight===this._renderService.dimensions.canvasHeight){var ee=this._bufferService.buffer.ydisp*this._currentRowHeight;this._lastScrollTop===ee&&this._lastScrollTop===this._viewportElement.scrollTop&&this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio===this._currentRowHeight||this._refresh(re)}else this._refresh(re)},oe.prototype._onScroll=function(re){if(this._lastScrollTop=this._viewportElement.scrollTop,this._viewportElement.offsetParent)if(this._ignoreNextScrollEvent)this._ignoreNextScrollEvent=!1;else{var ee=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._scrollLines(ee,!0)}},oe.prototype._bubbleScroll=function(re,ee){var a=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(ee<0&&this._viewportElement.scrollTop!==0||ee>0&&a0?1:-1),this._wheelPartialScroll%=1):re.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(ee*=this._bufferService.rows),ee},oe.prototype._applyScrollModifier=function(re,ee){var a=this._optionsService.options.fastScrollModifier;return a==="alt"&&ee.altKey||a==="ctrl"&&ee.ctrlKey||a==="shift"&&ee.shiftKey?re*this._optionsService.options.fastScrollSensitivity*this._optionsService.options.scrollSensitivity:re*this._optionsService.options.scrollSensitivity},oe.prototype.onTouchStart=function(re){this._lastTouchY=re.touches[0].pageY},oe.prototype.onTouchMove=function(re){var ee=this._lastTouchY-re.touches[0].pageY;return this._lastTouchY=re.touches[0].pageY,ee!==0&&(this._viewportElement.scrollTop+=ee,this._bubbleScroll(re,ee))},oe=pe([de(3,ce.IBufferService),de(4,ce.IOptionsService),de(5,ie.ICharSizeService),de(6,ie.IRenderService)],oe)}(se.Disposable);ve.Viewport=ue},function(dt,ve,be){"use strict";function _e(se){return se.replace(/\r?\n/g,"\r")}function E(se,ne){return ne?"\x1B[200~"+se+"\x1B[201~":se}function pe(se,ne,ie){se=E(se=_e(se),ie.decPrivateModes.bracketedPasteMode),ie.triggerDataEvent(se,!0),ne.value=""}function de(se,ne,ie){var ce=ie.getBoundingClientRect(),ue=se.clientX-ce.left-10,ae=se.clientY-ce.top-10;ne.style.width="20px",ne.style.height="20px",ne.style.left=ue+"px",ne.style.top=ae+"px",ne.style.zIndex="1000",ne.focus()}Object.defineProperty(ve,"__esModule",{value:!0}),ve.rightClickHandler=ve.moveTextAreaUnderMouseCursor=ve.paste=ve.handlePasteEvent=ve.copyHandler=ve.bracketTextForPaste=ve.prepareTextForTerminal=void 0,ve.prepareTextForTerminal=_e,ve.bracketTextForPaste=E,ve.copyHandler=function(se,ne){se.clipboardData&&se.clipboardData.setData("text/plain",ne.selectionText),se.preventDefault()},ve.handlePasteEvent=function(se,ne,ie){se.stopPropagation(),se.clipboardData&&pe(se.clipboardData.getData("text/plain"),ne,ie)},ve.paste=pe,ve.moveTextAreaUnderMouseCursor=de,ve.rightClickHandler=function(se,ne,ie,ce,ue){de(se,ne,ie),ue&&!ce.isClickInSelection(se)&&ce.selectWordAtCursor(se),ne.value=ce.selectionText,ne.select()}},function(dt,ve,be){"use strict";var _e,E=this&&this.__extends||(_e=function(ae,oe){return(_e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(re,ee){re.__proto__=ee}||function(re,ee){for(var a in ee)ee.hasOwnProperty(a)&&(re[a]=ee[a])})(ae,oe)},function(ae,oe){function re(){this.constructor=ae}_e(ae,oe),ae.prototype=oe===null?Object.create(oe):(re.prototype=oe.prototype,new re)});Object.defineProperty(ve,"__esModule",{value:!0}),ve.EscapeSequenceParser=ve.VT500_TRANSITION_TABLE=ve.TransitionTable=void 0;var pe=be(2),de=be(15),se=be(21),ne=be(22),ie=be(24),ce=function(){function ae(oe){this.table=new Uint8Array(oe)}return ae.prototype.setDefault=function(oe,re){de.fill(this.table,oe<<4|re)},ae.prototype.add=function(oe,re,ee,a){this.table[re<<8|oe]=ee<<4|a},ae.prototype.addMany=function(oe,re,ee,a){for(var y=0;y1)throw new Error("only one byte as prefix supported");if((a=re.prefix.charCodeAt(0))&&60>a||a>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(re.intermediates){if(re.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(var y=0;yx||x>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");a<<=8,a|=x}}if(re.final.length!==1)throw new Error("final must be a single byte");var b=re.final.charCodeAt(0);if(ee[0]>b||b>ee[1])throw new Error("final must be in range "+ee[0]+" .. "+ee[1]);return a<<=8,a|=b},oe.prototype.identToString=function(re){for(var ee=[];re;)ee.push(String.fromCharCode(255&re)),re>>=8;return ee.reverse().join("")},oe.prototype.dispose=function(){this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null),this._oscParser.dispose(),this._dcsParser.dispose()},oe.prototype.setPrintHandler=function(re){this._printHandler=re},oe.prototype.clearPrintHandler=function(){this._printHandler=this._printHandlerFb},oe.prototype.addEscHandler=function(re,ee){var a=this._identifier(re,[48,126]);this._escHandlers[a]===void 0&&(this._escHandlers[a]=[]);var y=this._escHandlers[a];return y.push(ee),{dispose:function(){var x=y.indexOf(ee);x!==-1&&y.splice(x,1)}}},oe.prototype.setEscHandler=function(re,ee){this._escHandlers[this._identifier(re,[48,126])]=[ee]},oe.prototype.clearEscHandler=function(re){this._escHandlers[this._identifier(re,[48,126])]&&delete this._escHandlers[this._identifier(re,[48,126])]},oe.prototype.setEscHandlerFallback=function(re){this._escHandlerFb=re},oe.prototype.setExecuteHandler=function(re,ee){this._executeHandlers[re.charCodeAt(0)]=ee},oe.prototype.clearExecuteHandler=function(re){this._executeHandlers[re.charCodeAt(0)]&&delete this._executeHandlers[re.charCodeAt(0)]},oe.prototype.setExecuteHandlerFallback=function(re){this._executeHandlerFb=re},oe.prototype.addCsiHandler=function(re,ee){var a=this._identifier(re);this._csiHandlers[a]===void 0&&(this._csiHandlers[a]=[]);var y=this._csiHandlers[a];return y.push(ee),{dispose:function(){var x=y.indexOf(ee);x!==-1&&y.splice(x,1)}}},oe.prototype.setCsiHandler=function(re,ee){this._csiHandlers[this._identifier(re)]=[ee]},oe.prototype.clearCsiHandler=function(re){this._csiHandlers[this._identifier(re)]&&delete this._csiHandlers[this._identifier(re)]},oe.prototype.setCsiHandlerFallback=function(re){this._csiHandlerFb=re},oe.prototype.addDcsHandler=function(re,ee){return this._dcsParser.addHandler(this._identifier(re),ee)},oe.prototype.setDcsHandler=function(re,ee){this._dcsParser.setHandler(this._identifier(re),ee)},oe.prototype.clearDcsHandler=function(re){this._dcsParser.clearHandler(this._identifier(re))},oe.prototype.setDcsHandlerFallback=function(re){this._dcsParser.setHandlerFallback(re)},oe.prototype.addOscHandler=function(re,ee){return this._oscParser.addHandler(re,ee)},oe.prototype.setOscHandler=function(re,ee){this._oscParser.setHandler(re,ee)},oe.prototype.clearOscHandler=function(re){this._oscParser.clearHandler(re)},oe.prototype.setOscHandlerFallback=function(re){this._oscParser.setHandlerFallback(re)},oe.prototype.setErrorHandler=function(re){this._errorHandler=re},oe.prototype.clearErrorHandler=function(){this._errorHandler=this._errorHandlerFb},oe.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},oe.prototype.parse=function(re,ee){for(var a=0,y=0,x=this.currentState,b=this._oscParser,z=this._dcsParser,te=this._collect,le=this._params,fe=this._transitions.table,ge=0;ge>4){case 2:for(var me=ge+1;;++me){if(me>=ee||(a=re[me])<32||a>126&&a<160){this._printHandler(re,ge,me),ge=me-1;break}if(++me>=ee||(a=re[me])<32||a>126&&a<160){this._printHandler(re,ge,me),ge=me-1;break}if(++me>=ee||(a=re[me])<32||a>126&&a<160){this._printHandler(re,ge,me),ge=me-1;break}if(++me>=ee||(a=re[me])<32||a>126&&a<160){this._printHandler(re,ge,me),ge=me-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:ge,code:a,currentState:x,collect:te,params:le,abort:!1}).abort)return;break;case 7:for(var he=this._csiHandlers[te<<8|a],Se=he?he.length-1:-1;Se>=0&&he[Se](le)===!1;Se--);Se<0&&this._csiHandlerFb(te<<8|a,le),this.precedingCodepoint=0;break;case 8:do switch(a){case 59:le.addParam(0);break;case 58:le.addSubParam(-1);break;default:le.addDigit(a-48)}while(++ge47&&a<60);ge--;break;case 9:te<<=8,te|=a;break;case 10:for(var ye=this._escHandlers[te<<8|a],Pe=ye?ye.length-1:-1;Pe>=0&&ye[Pe]()===!1;Pe--);Pe<0&&this._escHandlerFb(te<<8|a),this.precedingCodepoint=0;break;case 11:le.reset(),le.addParam(0),te=0;break;case 12:z.hook(te<<8|a,le);break;case 13:for(var we=ge+1;;++we)if(we>=ee||(a=re[we])===24||a===26||a===27||a>127&&a<160){z.put(re,ge,we),ge=we-1;break}break;case 14:z.unhook(a!==24&&a!==26),a===27&&(y|=1),le.reset(),le.addParam(0),te=0,this.precedingCodepoint=0;break;case 4:b.start();break;case 5:for(var De=ge+1;;De++)if(De>=ee||(a=re[De])<32||a>127&&a<=159){b.put(re,ge,De),ge=De-1;break}break;case 6:b.end(a!==24&&a!==26),a===27&&(y|=1),le.reset(),le.addParam(0),te=0,this.precedingCodepoint=0}x=15&y}this._collect=te,this.currentState=x},oe}(pe.Disposable);ve.EscapeSequenceParser=ue},function(dt,ve,be){"use strict";var _e,E=this&&this.__extends||(_e=function(b,z){return(_e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(te,le){te.__proto__=le}||function(te,le){for(var fe in le)le.hasOwnProperty(fe)&&(te[fe]=le[fe])})(b,z)},function(b,z){function te(){this.constructor=b}_e(b,z),b.prototype=z===null?Object.create(z):(te.prototype=z.prototype,new te)}),pe=this&&this.__decorate||function(b,z,te,le){var fe,ge=arguments.length,me=ge<3?z:le===null?le=Object.getOwnPropertyDescriptor(z,te):le;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")me=Reflect.decorate(b,z,te,le);else for(var he=b.length-1;he>=0;he--)(fe=b[he])&&(me=(ge<3?fe(me):ge>3?fe(z,te,me):fe(z,te))||me);return ge>3&&me&&Object.defineProperty(z,te,me),me},de=this&&this.__param||function(b,z){return function(te,le){z(te,le,b)}};Object.defineProperty(ve,"__esModule",{value:!0}),ve.Renderer=void 0;var se=be(41),ne=be(47),ie=be(48),ce=be(49),ue=be(29),ae=be(2),oe=be(5),re=be(1),ee=be(25),a=be(0),y=1,x=function(b){function z(te,le,fe,ge,me,he,Se,ye,Pe){var we=b.call(this)||this;we._colors=te,we._screenElement=le,we._bufferService=me,we._charSizeService=he,we._optionsService=Se,we._id=y++,we._onRequestRedraw=new a.EventEmitter;var De=we._optionsService.options.allowTransparency;return we._characterJoinerRegistry=new ue.CharacterJoinerRegistry(we._bufferService),we._renderLayers=[new se.TextRenderLayer(we._screenElement,0,we._colors,we._characterJoinerRegistry,De,we._id,we._bufferService,Se),new ne.SelectionRenderLayer(we._screenElement,1,we._colors,we._id,we._bufferService,Se),new ce.LinkRenderLayer(we._screenElement,2,we._colors,we._id,fe,ge,we._bufferService,Se),new ie.CursorRenderLayer(we._screenElement,3,we._colors,we._id,we._onRequestRedraw,we._bufferService,Se,ye,Pe)],we.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},we._devicePixelRatio=window.devicePixelRatio,we._updateDimensions(),we.onOptionsChanged(),we}return E(z,b),Object.defineProperty(z.prototype,"onRequestRedraw",{get:function(){return this._onRequestRedraw.event},enumerable:!1,configurable:!0}),z.prototype.dispose=function(){for(var te=0,le=this._renderLayers;te0&&le===te[0][0]){ge=!0;var he=te.shift();fe=new ie.JoinedCellData(this._workCell,z.translateToString(!0,he[0],he[1]),he[1]-he[0]),me=he[1]-1}!ge&&this._isOverlapping(fe)&&methis._characterWidth;return this._ctx.restore(),this._characterOverlapCache[ee]=a,a},oe}(de.BaseRenderLayer);ve.TextRenderLayer=ue},function(dt,ve,be){"use strict";Object.defineProperty(ve,"__esModule",{value:!0}),ve.GridCache=void 0;var _e=function(){function E(){this.cache=[]}return E.prototype.resize=function(pe,de){for(var se=0;se>>24,Ee=Pe.rgba>>>16&255,Ae=Pe.rgba>>>8&255,Ce=0;Ce=this.capacity)se=this._head,this._unlinkNode(se),delete this._map[se.key],se.key=pe,se.value=de,this._map[pe]=se;else{var ne=this._nodePool;ne.length>0?((se=ne.pop()).key=pe,se.value=de):se={prev:null,next:null,key:pe,value:de},this._map[pe]=se,this.size++}this._appendNode(se)},E}();ve.LRUMap=_e},function(dt,ve,be){"use strict";var _e,E=this&&this.__extends||(_e=function(de,se){return(_e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ne,ie){ne.__proto__=ie}||function(ne,ie){for(var ce in ie)ie.hasOwnProperty(ce)&&(ne[ce]=ie[ce])})(de,se)},function(de,se){function ne(){this.constructor=de}_e(de,se),de.prototype=se===null?Object.create(se):(ne.prototype=se.prototype,new ne)});Object.defineProperty(ve,"__esModule",{value:!0}),ve.SelectionRenderLayer=void 0;var pe=function(de){function se(ne,ie,ce,ue,ae,oe){var re=de.call(this,ne,"selection",ie,!0,ce,ue,ae,oe)||this;return re._clearState(),re}return E(se,de),se.prototype._clearState=function(){this._state={start:void 0,end:void 0,columnSelectMode:void 0,ydisp:void 0}},se.prototype.resize=function(ne){de.prototype.resize.call(this,ne),this._clearState()},se.prototype.reset=function(){this._state.start&&this._state.end&&(this._clearState(),this._clearAll())},se.prototype.onSelectionChanged=function(ne,ie,ce){if(this._didStateChange(ne,ie,ce,this._bufferService.buffer.ydisp))if(this._clearAll(),ne&&ie){var ue=ne[1]-this._bufferService.buffer.ydisp,ae=ie[1]-this._bufferService.buffer.ydisp,oe=Math.max(ue,0),re=Math.min(ae,this._bufferService.rows-1);if(!(oe>=this._bufferService.rows||re<0)){if(this._ctx.fillStyle=this._colors.selectionTransparent.css,ce){var ee=ne[0],a=ie[0]-ee,y=re-oe+1;this._fillCells(ee,oe,a,y)}else{ee=ue===oe?ne[0]:0;var x=oe===re?ie[0]:this._bufferService.cols;this._fillCells(ee,oe,x-ee,1);var b=Math.max(re-oe-1,0);if(this._fillCells(0,oe+1,this._bufferService.cols,b),oe!==re){var z=ae===re?ie[0]:this._bufferService.cols;this._fillCells(0,re,z,1)}}this._state.start=[ne[0],ne[1]],this._state.end=[ie[0],ie[1]],this._state.columnSelectMode=ce,this._state.ydisp=this._bufferService.buffer.ydisp}}else this._clearState()},se.prototype._didStateChange=function(ne,ie,ce,ue){return!this._areCoordinatesEqual(ne,this._state.start)||!this._areCoordinatesEqual(ie,this._state.end)||ce!==this._state.columnSelectMode||ue!==this._state.ydisp},se.prototype._areCoordinatesEqual=function(ne,ie){return!(!ne||!ie)&&ne[0]===ie[0]&&ne[1]===ie[1]},se}(be(13).BaseRenderLayer);ve.SelectionRenderLayer=pe},function(dt,ve,be){"use strict";var _e,E=this&&this.__extends||(_e=function(ie,ce){return(_e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ue,ae){ue.__proto__=ae}||function(ue,ae){for(var oe in ae)ae.hasOwnProperty(oe)&&(ue[oe]=ae[oe])})(ie,ce)},function(ie,ce){function ue(){this.constructor=ie}_e(ie,ce),ie.prototype=ce===null?Object.create(ce):(ue.prototype=ce.prototype,new ue)});Object.defineProperty(ve,"__esModule",{value:!0}),ve.CursorRenderLayer=void 0;var pe=be(13),de=be(4),se=function(ie){function ce(ue,ae,oe,re,ee,a,y,x,b){var z=ie.call(this,ue,"cursor",ae,!0,oe,re,a,y)||this;return z._onRequestRedraw=ee,z._coreService=x,z._coreBrowserService=b,z._cell=new de.CellData,z._state={x:0,y:0,isFocused:!1,style:"",width:0},z._cursorRenderers={bar:z._renderBarCursor.bind(z),block:z._renderBlockCursor.bind(z),underline:z._renderUnderlineCursor.bind(z)},z}return E(ce,ie),ce.prototype.resize=function(ue){ie.prototype.resize.call(this,ue),this._state={x:0,y:0,isFocused:!1,style:"",width:0}},ce.prototype.reset=function(){this._clearCursor(),this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=void 0,this.onOptionsChanged())},ce.prototype.onBlur=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.pause(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},ce.prototype.onFocus=function(){this._cursorBlinkStateManager?this._cursorBlinkStateManager.resume():this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},ce.prototype.onOptionsChanged=function(){var ue,ae=this;this._optionsService.options.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new ne(this._coreBrowserService.isFocused,function(){ae._render(!0)})):((ue=this._cursorBlinkStateManager)===null||ue===void 0||ue.dispose(),this._cursorBlinkStateManager=void 0),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},ce.prototype.onCursorMove=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.restartBlinkAnimation()},ce.prototype.onGridChanged=function(ue,ae){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(!1):this._cursorBlinkStateManager.restartBlinkAnimation()},ce.prototype._render=function(ue){if(this._coreService.isCursorInitialized&&!this._coreService.isCursorHidden){var ae=this._bufferService.buffer.ybase+this._bufferService.buffer.y,oe=ae-this._bufferService.buffer.ydisp;if(oe<0||oe>=this._bufferService.rows)this._clearCursor();else{var re=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1);if(this._bufferService.buffer.lines.get(ae).loadCell(re,this._cell),this._cell.content!==void 0){if(!this._coreBrowserService.isFocused){this._clearCursor(),this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css;var ee=this._optionsService.options.cursorStyle;return ee&&ee!=="block"?this._cursorRenderers[ee](re,oe,this._cell):this._renderBlurCursor(re,oe,this._cell),this._ctx.restore(),this._state.x=re,this._state.y=oe,this._state.isFocused=!1,this._state.style=ee,void(this._state.width=this._cell.getWidth())}if(!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isCursorVisible){if(this._state){if(this._state.x===re&&this._state.y===oe&&this._state.isFocused===this._coreBrowserService.isFocused&&this._state.style===this._optionsService.options.cursorStyle&&this._state.width===this._cell.getWidth())return;this._clearCursor()}this._ctx.save(),this._cursorRenderers[this._optionsService.options.cursorStyle||"block"](re,oe,this._cell),this._ctx.restore(),this._state.x=re,this._state.y=oe,this._state.isFocused=!1,this._state.style=this._optionsService.options.cursorStyle,this._state.width=this._cell.getWidth()}else this._clearCursor()}}}else this._clearCursor()},ce.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})},ce.prototype._renderBarCursor=function(ue,ae,oe){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillLeftLineAtCell(ue,ae,this._optionsService.options.cursorWidth),this._ctx.restore()},ce.prototype._renderBlockCursor=function(ue,ae,oe){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillCells(ue,ae,oe.getWidth(),1),this._ctx.fillStyle=this._colors.cursorAccent.css,this._fillCharTrueColor(oe,ue,ae),this._ctx.restore()},ce.prototype._renderUnderlineCursor=function(ue,ae,oe){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillBottomLineAtCells(ue,ae),this._ctx.restore()},ce.prototype._renderBlurCursor=function(ue,ae,oe){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this._strokeRectAtCell(ue,ae,oe.getWidth(),1),this._ctx.restore()},ce}(pe.BaseRenderLayer);ve.CursorRenderLayer=se;var ne=function(){function ie(ce,ue){this._renderCallback=ue,this.isCursorVisible=!0,ce&&this._restartInterval()}return Object.defineProperty(ie.prototype,"isPaused",{get:function(){return!(this._blinkStartTimeout||this._blinkInterval)},enumerable:!1,configurable:!0}),ie.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)},ie.prototype.restartBlinkAnimation=function(){var ce=this;this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){ce._renderCallback(),ce._animationFrame=void 0})))},ie.prototype._restartInterval=function(ce){var ue=this;ce===void 0&&(ce=600),this._blinkInterval&&window.clearInterval(this._blinkInterval),this._blinkStartTimeout=window.setTimeout(function(){if(ue._animationTimeRestarted){var ae=600-(Date.now()-ue._animationTimeRestarted);if(ue._animationTimeRestarted=void 0,ae>0)return void ue._restartInterval(ae)}ue.isCursorVisible=!1,ue._animationFrame=window.requestAnimationFrame(function(){ue._renderCallback(),ue._animationFrame=void 0}),ue._blinkInterval=window.setInterval(function(){if(ue._animationTimeRestarted){var oe=600-(Date.now()-ue._animationTimeRestarted);return ue._animationTimeRestarted=void 0,void ue._restartInterval(oe)}ue.isCursorVisible=!ue.isCursorVisible,ue._animationFrame=window.requestAnimationFrame(function(){ue._renderCallback(),ue._animationFrame=void 0})},600)},ce)},ie.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)},ie.prototype.resume=function(){this.pause(),this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()},ie}()},function(dt,ve,be){"use strict";var _e,E=this&&this.__extends||(_e=function(ie,ce){return(_e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ue,ae){ue.__proto__=ae}||function(ue,ae){for(var oe in ae)ae.hasOwnProperty(oe)&&(ue[oe]=ae[oe])})(ie,ce)},function(ie,ce){function ue(){this.constructor=ie}_e(ie,ce),ie.prototype=ce===null?Object.create(ce):(ue.prototype=ce.prototype,new ue)});Object.defineProperty(ve,"__esModule",{value:!0}),ve.LinkRenderLayer=void 0;var pe=be(13),de=be(9),se=be(26),ne=function(ie){function ce(ue,ae,oe,re,ee,a,y,x){var b=ie.call(this,ue,"link",ae,!0,oe,re,y,x)||this;return ee.onShowLinkUnderline(function(z){return b._onShowLinkUnderline(z)}),ee.onHideLinkUnderline(function(z){return b._onHideLinkUnderline(z)}),a.onShowLinkUnderline(function(z){return b._onShowLinkUnderline(z)}),a.onHideLinkUnderline(function(z){return b._onHideLinkUnderline(z)}),b}return E(ce,ie),ce.prototype.resize=function(ue){ie.prototype.resize.call(this,ue),this._state=void 0},ce.prototype.reset=function(){this._clearCurrentLink()},ce.prototype._clearCurrentLink=function(){if(this._state){this._clearCells(this._state.x1,this._state.y1,this._state.cols-this._state.x1,1);var ue=this._state.y2-this._state.y1-1;ue>0&&this._clearCells(0,this._state.y1+1,this._state.cols,ue),this._clearCells(0,this._state.y2,this._state.x2,1),this._state=void 0}},ce.prototype._onShowLinkUnderline=function(ue){if(ue.fg===de.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._colors.background.css:ue.fg&&se.is256Color(ue.fg)?this._ctx.fillStyle=this._colors.ansi[ue.fg].css:this._ctx.fillStyle=this._colors.foreground.css,ue.y1===ue.y2)this._fillBottomLineAtCells(ue.x1,ue.y1,ue.x2-ue.x1);else{this._fillBottomLineAtCells(ue.x1,ue.y1,ue.cols-ue.x1);for(var ae=ue.y1+1;ae=0;a--)(oe=ie[a])&&(ee=(re<3?oe(ee):re>3?oe(ce,ue,ee):oe(ce,ue))||ee);return re>3&&ee&&Object.defineProperty(ce,ue,ee),ee},E=this&&this.__param||function(ie,ce){return function(ue,ae){ce(ue,ae,ie)}};Object.defineProperty(ve,"__esModule",{value:!0}),ve.MouseZone=ve.Linkifier=void 0;var pe=be(0),de=be(1),se=function(){function ie(ce,ue,ae){this._bufferService=ce,this._logService=ue,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(ie.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"onLinkTooltip",{get:function(){return this._onLinkTooltip.event},enumerable:!1,configurable:!0}),ie.prototype.attachToDom=function(ce,ue){this._element=ce,this._mouseZoneManager=ue},ie.prototype.linkifyRows=function(ce,ue){var ae=this;this._mouseZoneManager&&(this._rowsToLinkify.start===void 0||this._rowsToLinkify.end===void 0?(this._rowsToLinkify.start=ce,this._rowsToLinkify.end=ue):(this._rowsToLinkify.start=Math.min(this._rowsToLinkify.start,ce),this._rowsToLinkify.end=Math.max(this._rowsToLinkify.end,ue)),this._mouseZoneManager.clearAll(ce,ue),this._rowsTimeoutId&&clearTimeout(this._rowsTimeoutId),this._rowsTimeoutId=setTimeout(function(){return ae._linkifyRows()},ie._timeBeforeLatency))},ie.prototype._linkifyRows=function(){this._rowsTimeoutId=void 0;var ce=this._bufferService.buffer;if(this._rowsToLinkify.start!==void 0&&this._rowsToLinkify.end!==void 0){var ue=ce.ydisp+this._rowsToLinkify.start;if(!(ue>=ce.lines.length)){for(var ae=ce.ydisp+Math.min(this._rowsToLinkify.end,this._bufferService.rows)+1,oe=Math.ceil(2e3/this._bufferService.cols),re=this._bufferService.buffer.iterator(!1,ue,ae,oe,oe);re.hasNext();)for(var ee=re.next(),a=0;a=0;ue--)if(ce.priority<=this._linkMatchers[ue].priority)return void this._linkMatchers.splice(ue+1,0,ce);this._linkMatchers.splice(0,0,ce)}else this._linkMatchers.push(ce)},ie.prototype.deregisterLinkMatcher=function(ce){for(var ue=0;ue>9&511:void 0;ae.validationCallback?ae.validationCallback(b,function(ge){re._rowsTimeoutId||ge&&re._addLink(z[1],z[0]-re._bufferService.buffer.ydisp,b,ae,fe)}):x._addLink(z[1],z[0]-x._bufferService.buffer.ydisp,b,ae,fe)},x=this;(oe=ee.exec(ue))!==null&&y()!=="break";);},ie.prototype._addLink=function(ce,ue,ae,oe,re){var ee=this;if(this._mouseZoneManager&&this._element){var a=this._unicodeService.getStringCellWidth(ae),y=ce%this._bufferService.cols,x=ue+Math.floor(ce/this._bufferService.cols),b=(y+a)%this._bufferService.cols,z=x+Math.floor((y+a)/this._bufferService.cols);b===0&&(b=this._bufferService.cols,z--),this._mouseZoneManager.add(new ne(y+1,x+1,b+1,z+1,function(te){if(oe.handler)return oe.handler(te,ae);var le=window.open();le?(le.opener=null,le.location.href=ae):console.warn("Opening link blocked as opener could not be cleared")},function(){ee._onShowLinkUnderline.fire(ee._createLinkHoverEvent(y,x,b,z,re)),ee._element.classList.add("xterm-cursor-pointer")},function(te){ee._onLinkTooltip.fire(ee._createLinkHoverEvent(y,x,b,z,re)),oe.hoverTooltipCallback&&oe.hoverTooltipCallback(te,ae,{start:{x:y,y:x},end:{x:b,y:z}})},function(){ee._onHideLinkUnderline.fire(ee._createLinkHoverEvent(y,x,b,z,re)),ee._element.classList.remove("xterm-cursor-pointer"),oe.hoverLeaveCallback&&oe.hoverLeaveCallback()},function(te){return!oe.willLinkActivate||oe.willLinkActivate(te,ae)}))}},ie.prototype._createLinkHoverEvent=function(ce,ue,ae,oe,re){return{x1:ce,y1:ue,x2:ae,y2:oe,cols:this._bufferService.cols,fg:re}},ie._timeBeforeLatency=200,ie=_e([E(0,de.IBufferService),E(1,de.ILogService),E(2,de.IUnicodeService)],ie)}();ve.Linkifier=se;var ne=function(ie,ce,ue,ae,oe,re,ee,a,y){this.x1=ie,this.y1=ce,this.x2=ue,this.y2=ae,this.clickCallback=oe,this.hoverCallback=re,this.tooltipCallback=ee,this.leaveCallback=a,this.willLinkActivate=y};ve.MouseZone=ne},function(dt,ve,be){"use strict";var _e,E=this&&this.__extends||(_e=function(b,z){return(_e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(te,le){te.__proto__=le}||function(te,le){for(var fe in le)le.hasOwnProperty(fe)&&(te[fe]=le[fe])})(b,z)},function(b,z){function te(){this.constructor=b}_e(b,z),b.prototype=z===null?Object.create(z):(te.prototype=z.prototype,new te)}),pe=this&&this.__decorate||function(b,z,te,le){var fe,ge=arguments.length,me=ge<3?z:le===null?le=Object.getOwnPropertyDescriptor(z,te):le;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")me=Reflect.decorate(b,z,te,le);else for(var he=b.length-1;he>=0;he--)(fe=b[he])&&(me=(ge<3?fe(me):ge>3?fe(z,te,me):fe(z,te))||me);return ge>3&&me&&Object.defineProperty(z,te,me),me},de=this&&this.__param||function(b,z){return function(te,le){z(te,le,b)}};Object.defineProperty(ve,"__esModule",{value:!0}),ve.SelectionService=void 0;var se=be(11),ne=be(52),ie=be(4),ce=be(0),ue=be(5),ae=be(1),oe=be(30),re=be(53),ee=be(2),a="\xA0",y=new RegExp(a,"g"),x=function(b){function z(te,le,fe,ge,me,he,Se){var ye=b.call(this)||this;return ye._element=te,ye._screenElement=le,ye._bufferService=fe,ye._coreService=ge,ye._mouseService=me,ye._optionsService=he,ye._renderService=Se,ye._dragScrollAmount=0,ye._enabled=!0,ye._workCell=new ie.CellData,ye._mouseDownTimeStamp=0,ye._onLinuxMouseSelection=ye.register(new ce.EventEmitter),ye._onRedrawRequest=ye.register(new ce.EventEmitter),ye._onSelectionChange=ye.register(new ce.EventEmitter),ye._onRequestScrollLines=ye.register(new ce.EventEmitter),ye._mouseMoveListener=function(Pe){return ye._onMouseMove(Pe)},ye._mouseUpListener=function(Pe){return ye._onMouseUp(Pe)},ye._coreService.onUserInput(function(){ye.hasSelection&&ye.clearSelection()}),ye._trimListener=ye._bufferService.buffer.lines.onTrim(function(Pe){return ye._onTrim(Pe)}),ye.register(ye._bufferService.buffers.onBufferActivate(function(Pe){return ye._onBufferActivate(Pe)})),ye.enable(),ye._model=new ne.SelectionModel(ye._bufferService),ye._activeSelectionMode=0,ye}return E(z,b),Object.defineProperty(z.prototype,"onLinuxMouseSelection",{get:function(){return this._onLinuxMouseSelection.event},enumerable:!1,configurable:!0}),Object.defineProperty(z.prototype,"onRequestRedraw",{get:function(){return this._onRedrawRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(z.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(z.prototype,"onRequestScrollLines",{get:function(){return this._onRequestScrollLines.event},enumerable:!1,configurable:!0}),z.prototype.dispose=function(){this._removeMouseDownListeners()},z.prototype.reset=function(){this.clearSelection()},z.prototype.disable=function(){this.clearSelection(),this._enabled=!1},z.prototype.enable=function(){this._enabled=!0},Object.defineProperty(z.prototype,"selectionStart",{get:function(){return this._model.finalSelectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(z.prototype,"selectionEnd",{get:function(){return this._model.finalSelectionEnd},enumerable:!1,configurable:!0}),Object.defineProperty(z.prototype,"hasSelection",{get:function(){var te=this._model.finalSelectionStart,le=this._model.finalSelectionEnd;return!(!te||!le)&&(te[0]!==le[0]||te[1]!==le[1])},enumerable:!1,configurable:!0}),Object.defineProperty(z.prototype,"selectionText",{get:function(){var te=this._model.finalSelectionStart,le=this._model.finalSelectionEnd;if(!te||!le)return"";var fe=this._bufferService.buffer,ge=[];if(this._activeSelectionMode===3){if(te[0]===le[0])return"";for(var me=te[1];me<=le[1];me++){var he=fe.translateBufferLineToString(me,!0,te[0],le[0]);ge.push(he)}}else{var Se=te[1]===le[1]?le[0]:void 0;for(ge.push(fe.translateBufferLineToString(te[1],!0,te[0],Se)),me=te[1]+1;me<=le[1]-1;me++){var ye=fe.lines.get(me);he=fe.translateBufferLineToString(me,!0),ye&&ye.isWrapped?ge[ge.length-1]+=he:ge.push(he)}te[1]!==le[1]&&(ye=fe.lines.get(le[1]),he=fe.translateBufferLineToString(le[1],!0,0,le[0]),ye&&ye.isWrapped?ge[ge.length-1]+=he:ge.push(he))}return ge.map(function(Pe){return Pe.replace(y," ")}).join(se.isWindows?`\r `:` `)},enumerable:!1,configurable:!0}),z.prototype.clearSelection=function(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()},z.prototype.refresh=function(te){var le=this;this._refreshAnimationFrame||(this._refreshAnimationFrame=window.requestAnimationFrame(function(){return le._refresh()})),se.isLinux&&te&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)},z.prototype._refresh=function(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:this._activeSelectionMode===3})},z.prototype.isClickInSelection=function(te){var le=this._getMouseBufferCoords(te),fe=this._model.finalSelectionStart,ge=this._model.finalSelectionEnd;return!!(fe&&ge&&le)&&this._areCoordsInSelection(le,fe,ge)},z.prototype._areCoordsInSelection=function(te,le,fe){return te[1]>le[1]&&te[1]=le[0]&&te[0]=le[0]},z.prototype.selectWordAtCursor=function(te){var le=this._getMouseBufferCoords(te);le&&(this._selectWordAt(le,!1),this._model.selectionEnd=void 0,this.refresh(!0))},z.prototype.selectAll=function(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()},z.prototype.selectLines=function(te,le){this._model.clearSelection(),te=Math.max(te,0),le=Math.min(le,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,te],this._model.selectionEnd=[this._bufferService.cols,le],this.refresh(),this._onSelectionChange.fire()},z.prototype._onTrim=function(te){this._model.onTrim(te)&&this.refresh()},z.prototype._getMouseBufferCoords=function(te){var le=this._mouseService.getCoords(te,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(le)return le[0]--,le[1]--,le[1]+=this._bufferService.buffer.ydisp,le},z.prototype._getMouseEventScrollAmount=function(te){var le=oe.getCoordsRelativeToElement(te,this._screenElement)[1],fe=this._renderService.dimensions.canvasHeight;return le>=0&&le<=fe?0:(le>fe&&(le-=fe),le=Math.min(Math.max(le,-50),50),(le/=50)/Math.abs(le)+Math.round(14*le))},z.prototype.shouldForceSelection=function(te){return se.isMac?te.altKey&&this._optionsService.options.macOptionClickForcesSelection:te.shiftKey},z.prototype.onMouseDown=function(te){if(this._mouseDownTimeStamp=te.timeStamp,(te.button!==2||!this.hasSelection)&&te.button===0){if(!this._enabled){if(!this.shouldForceSelection(te))return;te.stopPropagation()}te.preventDefault(),this._dragScrollAmount=0,this._enabled&&te.shiftKey?this._onIncrementalClick(te):te.detail===1?this._onSingleClick(te):te.detail===2?this._onDoubleClick(te):te.detail===3&&this._onTripleClick(te),this._addMouseDownListeners(),this.refresh(!0)}},z.prototype._addMouseDownListeners=function(){var te=this;this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=window.setInterval(function(){return te._dragScroll()},50)},z.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},z.prototype._onIncrementalClick=function(te){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(te))},z.prototype._onSingleClick=function(te){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(te)?3:0,this._model.selectionStart=this._getMouseBufferCoords(te),this._model.selectionStart){this._model.selectionEnd=void 0;var le=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);le&&le.length!==this._model.selectionStart[0]&&le.hasWidth(this._model.selectionStart[0])===0&&this._model.selectionStart[0]++}},z.prototype._onDoubleClick=function(te){var le=this._getMouseBufferCoords(te);le&&(this._activeSelectionMode=1,this._selectWordAt(le,!0))},z.prototype._onTripleClick=function(te){var le=this._getMouseBufferCoords(te);le&&(this._activeSelectionMode=2,this._selectLineAt(le[1]))},z.prototype.shouldColumnSelect=function(te){return te.altKey&&!(se.isMac&&this._optionsService.options.macOptionClickForcesSelection)},z.prototype._onMouseMove=function(te){if(te.stopImmediatePropagation(),this._model.selectionStart){var le=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(te),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 fe=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(te.ydisp+this._bufferService.rows,te.lines.length-1)):(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=te.ydisp),this.refresh()}},z.prototype._onMouseUp=function(te){var le=te.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&le<500&&te.altKey){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){var fe=this._mouseService.getCoords(te,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(fe&&fe[0]!==void 0&&fe[1]!==void 0){var ge=re.moveToCellSequence(fe[0]-1,fe[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(ge,!0)}}}else this.hasSelection&&this._onSelectionChange.fire()},z.prototype._onBufferActivate=function(te){var le=this;this.clearSelection(),this._trimListener.dispose(),this._trimListener=te.activeBuffer.lines.onTrim(function(fe){return le._onTrim(fe)})},z.prototype._convertViewportColToCharacterIndex=function(te,le){for(var fe=le[0],ge=0;le[0]>=ge;ge++){var me=te.loadCell(ge,this._workCell).getChars().length;this._workCell.getWidth()===0?fe--:me>1&&le[0]!==ge&&(fe+=me-1)}return fe},z.prototype.setSelection=function(te,le,fe){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[te,le],this._model.selectionStartLength=fe,this.refresh()},z.prototype._getWordAt=function(te,le,fe,ge){if(fe===void 0&&(fe=!0),ge===void 0&&(ge=!0),!(te[0]>=this._bufferService.cols)){var me=this._bufferService.buffer,he=me.lines.get(te[1]);if(he){var Se=me.translateBufferLineToString(te[1],!1),ye=this._convertViewportColToCharacterIndex(he,te),Pe=ye,we=te[0]-ye,De=0,Ee=0,Ae=0,Ce=0;if(Se.charAt(ye)===" "){for(;ye>0&&Se.charAt(ye-1)===" ";)ye--;for(;Pe1&&(Ce+=Ge-1,Pe+=Ge-1);je>0&&ye>0&&!this._isCharWordSeparator(he.loadCell(je-1,this._workCell));){he.loadCell(je-1,this._workCell);var Fe=this._workCell.getChars().length;this._workCell.getWidth()===0?(De++,je--):Fe>1&&(Ae+=Fe-1,ye-=Fe-1),ye--,je--}for(;Me1&&(Ce+=Je-1,Pe+=Je-1),Pe++,Me++}}Pe++;var qe=ye+we-De+Ae,Xe=Math.min(this._bufferService.cols,Pe-ye+De+Ee-Ae-Ce);if(le||Se.slice(ye,Pe).trim()!==""){if(fe&&qe===0&&he.getCodePoint(0)!==32){var Ve=me.lines.get(te[1]-1);if(Ve&&he.isWrapped&&Ve.getCodePoint(this._bufferService.cols-1)!==32){var We=this._getWordAt([this._bufferService.cols-1,te[1]-1],!1,!0,!1);if(We){var ze=this._bufferService.cols-We.start;qe-=ze,Xe+=ze}}}if(ge&&qe+Xe===this._bufferService.cols&&he.getCodePoint(this._bufferService.cols-1)!==32){var Ue=me.lines.get(te[1]+1);if(Ue&&Ue.isWrapped&&Ue.getCodePoint(0)!==32){var ot=this._getWordAt([0,te[1]+1],!1,!1,!0);ot&&(Xe+=ot.length)}}return{start:qe,length:Xe}}}}},z.prototype._selectWordAt=function(te,le){var fe=this._getWordAt(te,le);if(fe){for(;fe.start<0;)fe.start+=this._bufferService.cols,te[1]--;this._model.selectionStart=[fe.start,te[1]],this._model.selectionStartLength=fe.length}},z.prototype._selectToWordAt=function(te){var le=this._getWordAt(te,!0);if(le){for(var fe=te[1];le.start<0;)le.start+=this._bufferService.cols,fe--;if(!this._model.areSelectionValuesReversed())for(;le.start+le.length>this._bufferService.cols;)le.length-=this._bufferService.cols,fe++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?le.start:le.start+le.length,fe]}},z.prototype._isCharWordSeparator=function(te){return te.getWidth()!==0&&this._optionsService.options.wordSeparator.indexOf(te.getChars())>=0},z.prototype._selectLineAt=function(te){var le=this._bufferService.buffer.getWrappedRangeForLine(te);this._model.selectionStart=[0,le.first],this._model.selectionEnd=[this._bufferService.cols,le.last],this._model.selectionStartLength=0},z=pe([de(2,ae.IBufferService),de(3,ae.ICoreService),de(4,ue.IMouseService),de(5,ae.IOptionsService),de(6,ue.IRenderService)],z)}(ee.Disposable);ve.SelectionService=x},function(dt,ve,be){"use strict";Object.defineProperty(ve,"__esModule",{value:!0}),ve.SelectionModel=void 0;var _e=function(){function E(pe){this._bufferService=pe,this.isSelectAllActive=!1,this.selectionStartLength=0}return E.prototype.clearSelection=function(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0},Object.defineProperty(E.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(E.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}),E.prototype.areSelectionValuesReversed=function(){var pe=this.selectionStart,de=this.selectionEnd;return!(!pe||!de)&&(pe[1]>de[1]||pe[1]===de[1]&&pe[0]>de[0])},E.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)},E}();ve.SelectionModel=_e},function(dt,ve,be){"use strict";Object.defineProperty(ve,"__esModule",{value:!0}),ve.moveToCellSequence=void 0;var _e=be(12);function E(ce,ue,ae,oe){var re=ce-pe(ae,ce),ee=ue-pe(ae,ue);return ie(Math.abs(re-ee)-function(a,y,x){for(var b=0,z=a-pe(x,a),te=y-pe(x,y),le=0;le=0&&ueue?"A":"B"}function se(ce,ue,ae,oe,re,ee){for(var a=ce,y=ue,x="";a!==ae||y!==oe;)a+=re?1:-1,re&&a>ee.cols-1?(x+=ee.buffer.translateBufferLineToString(y,!1,ce,a),a=0,ce=0,y++):!re&&a<0&&(x+=ee.buffer.translateBufferLineToString(y,!1,0,ce+1),ce=a=ee.cols-1,y--);return x+ee.buffer.translateBufferLineToString(y,!1,ce,a)}function ne(ce,ue){var ae=ue?"O":"[";return _e.C0.ESC+ae+ce}function ie(ce,ue){ce=Math.floor(ce);for(var ae="",oe=0;oe0?te-pe(le,te):b;var me=te,he=function(Se,ye,Pe,we,De,Ee){var Ae;return Ae=E(Pe,we,De,Ee).length>0?we-pe(De,we):ye,Se=Pe&&Aece?"D":"C",ie(Math.abs(ee-ce),ne(re,oe));re=a>ue?"D":"C";var y=Math.abs(a-ue);return ie(function(x,b){return b.cols-x}(a>ue?ce:ee,ae)+(y-1)*ae.cols+1+((a>ue?ee:ce)-1),ne(re,oe))}},function(dt,ve,be){"use strict";var _e=this&&this.__decorate||function(se,ne,ie,ce){var ue,ae=arguments.length,oe=ae<3?ne:ce===null?ce=Object.getOwnPropertyDescriptor(ne,ie):ce;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")oe=Reflect.decorate(se,ne,ie,ce);else for(var re=se.length-1;re>=0;re--)(ue=se[re])&&(oe=(ae<3?ue(oe):ae>3?ue(ne,ie,oe):ue(ne,ie))||oe);return ae>3&&oe&&Object.defineProperty(ne,ie,oe),oe},E=this&&this.__param||function(se,ne){return function(ie,ce){ne(ie,ce,se)}};Object.defineProperty(ve,"__esModule",{value:!0}),ve.SoundService=void 0;var pe=be(1),de=function(){function se(ne){this._optionsService=ne}return Object.defineProperty(se,"audioContext",{get:function(){if(!se._audioContext){var ne=window.AudioContext||window.webkitAudioContext;if(!ne)return console.warn("Web Audio API is not supported by this browser. Consider upgrading to the latest version"),null;se._audioContext=new ne}return se._audioContext},enumerable:!1,configurable:!0}),se.prototype.playBellSound=function(){var ne=se.audioContext;if(ne){var ie=ne.createBufferSource();ne.decodeAudioData(this._base64ToArrayBuffer(this._removeMimeType(this._optionsService.options.bellSound)),function(ce){ie.buffer=ce,ie.connect(ne.destination),ie.start(0)})}},se.prototype._base64ToArrayBuffer=function(ne){for(var ie=window.atob(ne),ce=ie.length,ue=new Uint8Array(ce),ae=0;ae=0;b--)(a=ae[b])&&(x=(y<3?a(x):y>3?a(oe,re,x):a(oe,re))||x);return y>3&&x&&Object.defineProperty(oe,re,x),x},de=this&&this.__param||function(ae,oe){return function(re,ee){oe(re,ee,ae)}};Object.defineProperty(ve,"__esModule",{value:!0}),ve.MouseZoneManager=void 0;var se=be(2),ne=be(7),ie=be(5),ce=be(1),ue=function(ae){function oe(re,ee,a,y,x,b){var z=ae.call(this)||this;return z._element=re,z._screenElement=ee,z._bufferService=a,z._mouseService=y,z._selectionService=x,z._optionsService=b,z._zones=[],z._areZonesActive=!1,z._lastHoverCoords=[void 0,void 0],z._initialSelectionLength=0,z.register(ne.addDisposableDomListener(z._element,"mousedown",function(te){return z._onMouseDown(te)})),z._mouseMoveListener=function(te){return z._onMouseMove(te)},z._mouseLeaveListener=function(te){return z._onMouseLeave(te)},z._clickListener=function(te){return z._onClick(te)},z}return E(oe,ae),oe.prototype.dispose=function(){ae.prototype.dispose.call(this),this._deactivate()},oe.prototype.add=function(re){this._zones.push(re),this._zones.length===1&&this._activate()},oe.prototype.clearAll=function(re,ee){if(this._zones.length!==0){re&&ee||(re=0,ee=this._bufferService.rows-1);for(var a=0;are&&y.y1<=ee+1||y.y2>re&&y.y2<=ee+1||y.y1ee+1)&&(this._currentZone&&this._currentZone===y&&(this._currentZone.leaveCallback(),this._currentZone=void 0),this._zones.splice(a--,1))}this._zones.length===0&&this._deactivate()}},oe.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))},oe.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))},oe.prototype._onMouseMove=function(re){this._lastHoverCoords[0]===re.pageX&&this._lastHoverCoords[1]===re.pageY||(this._onHover(re),this._lastHoverCoords=[re.pageX,re.pageY])},oe.prototype._onHover=function(re){var ee=this,a=this._findZoneEventAt(re);a!==this._currentZone&&(this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout)),a&&(this._currentZone=a,a.hoverCallback&&a.hoverCallback(re),this._tooltipTimeout=window.setTimeout(function(){return ee._onTooltip(re)},this._optionsService.options.linkTooltipHoverDuration)))},oe.prototype._onTooltip=function(re){this._tooltipTimeout=void 0;var ee=this._findZoneEventAt(re);ee&&ee.tooltipCallback&&ee.tooltipCallback(re)},oe.prototype._onMouseDown=function(re){if(this._initialSelectionLength=this._getSelectionLength(),this._areZonesActive){var ee=this._findZoneEventAt(re);ee!=null&&ee.willLinkActivate(re)&&(re.preventDefault(),re.stopImmediatePropagation())}},oe.prototype._onMouseLeave=function(re){this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout))},oe.prototype._onClick=function(re){var ee=this._findZoneEventAt(re),a=this._getSelectionLength();ee&&a===this._initialSelectionLength&&(ee.clickCallback(re),re.preventDefault(),re.stopImmediatePropagation())},oe.prototype._getSelectionLength=function(){var re=this._selectionService.selectionText;return re?re.length:0},oe.prototype._findZoneEventAt=function(re){var ee=this._mouseService.getCoords(re,this._screenElement,this._bufferService.cols,this._bufferService.rows);if(ee)for(var a=ee[0],y=ee[1],x=0;x=b.x1&&a=b.x1||y===b.y2&&ab.y1&&yee;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()},re.prototype._createAccessibilityTreeNode=function(){var ee=document.createElement("div");return ee.setAttribute("role","listitem"),ee.tabIndex=-1,this._refreshRowDimensions(ee),ee},re.prototype._onTab=function(ee){for(var a=0;a0?this._charsToConsume.shift()!==ee&&(this._charsToAnnounce+=ee):this._charsToAnnounce+=ee,ee===` `&&(this._liveRegionLineCount++,this._liveRegionLineCount===21&&(this._liveRegion.textContent+=pe.tooMuchOutput)),de.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(function(){a._accessibilityTreeRoot.appendChild(a._liveRegion)},0))},re.prototype._clearLiveRegion=function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,de.isMac&&ue.removeElementFromParent(this._liveRegion)},re.prototype._onKey=function(ee){this._clearLiveRegion(),this._charsToConsume.push(ee)},re.prototype._refreshRows=function(ee,a){this._renderRowsDebouncer.refresh(ee,a,this._terminal.rows)},re.prototype._renderRows=function(ee,a){for(var y=this._terminal.buffer,x=y.lines.length.toString(),b=ee;b<=a;b++){var z=y.translateBufferLineToString(y.ydisp+b,!0),te=(y.ydisp+b+1).toString(),le=this._rowElements[b];le&&(z.length===0?le.innerHTML=" ":le.textContent=z,le.setAttribute("aria-posinset",te),le.setAttribute("aria-setsize",x))}this._announceCharacters()},re.prototype._refreshRowsDimensions=function(){if(this._renderService.dimensions.actualCellHeight){this._rowElements.length!==this._terminal.rows&&this._onResize(this._terminal.rows);for(var ee=0;ee=0;ge--)(te=y[ge])&&(fe=(le<3?te(fe):le>3?te(x,b,fe):te(x,b))||fe);return le>3&&fe&&Object.defineProperty(x,b,fe),fe},de=this&&this.__param||function(y,x){return function(b,z){x(b,z,y)}};Object.defineProperty(ve,"__esModule",{value:!0}),ve.DomRenderer=void 0;var se=be(58),ne=be(9),ie=be(2),ce=be(5),ue=be(1),ae=be(0),oe=be(10),re=be(17),ee=1,a=function(y){function x(b,z,te,le,fe,ge,me,he,Se){var ye=y.call(this)||this;return ye._colors=b,ye._element=z,ye._screenElement=te,ye._viewportElement=le,ye._linkifier=fe,ye._linkifier2=ge,ye._charSizeService=me,ye._optionsService=he,ye._bufferService=Se,ye._terminalClass=ee++,ye._rowElements=[],ye._rowContainer=document.createElement("div"),ye._rowContainer.classList.add("xterm-rows"),ye._rowContainer.style.lineHeight="normal",ye._rowContainer.setAttribute("aria-hidden","true"),ye._refreshRowElements(ye._bufferService.cols,ye._bufferService.rows),ye._selectionContainer=document.createElement("div"),ye._selectionContainer.classList.add("xterm-selection"),ye._selectionContainer.setAttribute("aria-hidden","true"),ye.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},ye._updateDimensions(),ye._injectCss(),ye._rowFactory=new se.DomRendererRowFactory(document,ye._optionsService,ye._colors),ye._element.classList.add("xterm-dom-renderer-owner-"+ye._terminalClass),ye._screenElement.appendChild(ye._rowContainer),ye._screenElement.appendChild(ye._selectionContainer),ye._linkifier.onShowLinkUnderline(function(Pe){return ye._onLinkHover(Pe)}),ye._linkifier.onHideLinkUnderline(function(Pe){return ye._onLinkLeave(Pe)}),ye._linkifier2.onShowLinkUnderline(function(Pe){return ye._onLinkHover(Pe)}),ye._linkifier2.onHideLinkUnderline(function(Pe){return ye._onLinkLeave(Pe)}),ye}return E(x,y),Object.defineProperty(x.prototype,"onRequestRedraw",{get:function(){return new ae.EventEmitter().event},enumerable:!1,configurable:!0}),x.prototype.dispose=function(){this._element.classList.remove("xterm-dom-renderer-owner-"+this._terminalClass),re.removeElementFromParent(this._rowContainer,this._selectionContainer,this._themeStyleElement,this._dimensionsStyleElement),y.prototype.dispose.call(this)},x.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,z=this._rowElements;bz;)this._rowContainer.removeChild(this._rowElements.pop())},x.prototype.onResize=function(b,z){this._refreshRowElements(b,z),this._updateDimensions()},x.prototype.onCharSizeChanged=function(){this._updateDimensions()},x.prototype.onBlur=function(){this._rowContainer.classList.remove("xterm-focus")},x.prototype.onFocus=function(){this._rowContainer.classList.add("xterm-focus")},x.prototype.onSelectionChanged=function(b,z,te){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if(b&&z){var le=b[1]-this._bufferService.buffer.ydisp,fe=z[1]-this._bufferService.buffer.ydisp,ge=Math.max(le,0),me=Math.min(fe,this._bufferService.rows-1);if(!(ge>=this._bufferService.rows||me<0)){var he=document.createDocumentFragment();if(te)he.appendChild(this._createSelectionElement(ge,b[0],z[0],me-ge+1));else{var Se=le===ge?b[0]:0,ye=ge===me?z[0]:this._bufferService.cols;he.appendChild(this._createSelectionElement(ge,Se,ye));var Pe=me-ge-1;if(he.appendChild(this._createSelectionElement(ge+1,0,this._bufferService.cols,Pe)),ge!==me){var we=fe===me?z[0]:this._bufferService.cols;he.appendChild(this._createSelectionElement(me,0,we))}}this._selectionContainer.appendChild(he)}}},x.prototype._createSelectionElement=function(b,z,te,le){le===void 0&&(le=1);var fe=document.createElement("div");return fe.style.height=le*this.dimensions.actualCellHeight+"px",fe.style.top=b*this.dimensions.actualCellHeight+"px",fe.style.left=z*this.dimensions.actualCellWidth+"px",fe.style.width=this.dimensions.actualCellWidth*(te-z)+"px",fe},x.prototype.onCursorMove=function(){},x.prototype.onOptionsChanged=function(){this._updateDimensions(),this._injectCss()},x.prototype.clear=function(){for(var b=0,z=this._rowElements;b=fe&&(b=0,te++)}},x=pe([de(6,ce.ICharSizeService),de(7,ue.IOptionsService),de(8,ue.IBufferService)],x)}(ie.Disposable);ve.DomRenderer=a},function(dt,ve,be){"use strict";Object.defineProperty(ve,"__esModule",{value:!0}),ve.DomRendererRowFactory=ve.CURSOR_STYLE_UNDERLINE_CLASS=ve.CURSOR_STYLE_BAR_CLASS=ve.CURSOR_STYLE_BLOCK_CLASS=ve.CURSOR_BLINK_CLASS=ve.CURSOR_CLASS=ve.UNDERLINE_CLASS=ve.ITALIC_CLASS=ve.DIM_CLASS=ve.BOLD_CLASS=void 0;var _e=be(9),E=be(3),pe=be(4),de=be(10);ve.BOLD_CLASS="xterm-bold",ve.DIM_CLASS="xterm-dim",ve.ITALIC_CLASS="xterm-italic",ve.UNDERLINE_CLASS="xterm-underline",ve.CURSOR_CLASS="xterm-cursor",ve.CURSOR_BLINK_CLASS="xterm-cursor-blink",ve.CURSOR_STYLE_BLOCK_CLASS="xterm-cursor-block",ve.CURSOR_STYLE_BAR_CLASS="xterm-cursor-bar",ve.CURSOR_STYLE_UNDERLINE_CLASS="xterm-cursor-underline";var se=function(){function ie(ce,ue,ae){this._document=ce,this._optionsService=ue,this._colors=ae,this._workCell=new pe.CellData}return ie.prototype.setColors=function(ce){this._colors=ce},ie.prototype.createRow=function(ce,ue,ae,oe,re,ee,a){for(var y=this._document.createDocumentFragment(),x=0,b=Math.min(ce.length,a)-1;b>=0;b--)if(ce.loadCell(b,this._workCell).getCode()!==E.NULL_CELL_CODE||ue&&b===oe){x=b+1;break}for(b=0;b1&&(te.style.width=ee*z+"px"),ue&&b===oe)switch(te.classList.add(ve.CURSOR_CLASS),re&&te.classList.add(ve.CURSOR_BLINK_CLASS),ae){case"bar":te.classList.add(ve.CURSOR_STYLE_BAR_CLASS);break;case"underline":te.classList.add(ve.CURSOR_STYLE_UNDERLINE_CLASS);break;default:te.classList.add(ve.CURSOR_STYLE_BLOCK_CLASS)}this._workCell.isBold()&&te.classList.add(ve.BOLD_CLASS),this._workCell.isItalic()&&te.classList.add(ve.ITALIC_CLASS),this._workCell.isDim()&&te.classList.add(ve.DIM_CLASS),this._workCell.isUnderline()&&te.classList.add(ve.UNDERLINE_CLASS),this._workCell.isInvisible()?te.textContent=E.WHITESPACE_CELL_CHAR:te.textContent=this._workCell.getChars()||E.WHITESPACE_CELL_CHAR;var le=this._workCell.getFgColor(),fe=this._workCell.getFgColorMode(),ge=this._workCell.getBgColor(),me=this._workCell.getBgColorMode(),he=!!this._workCell.isInverse();if(he){var Se=le;le=ge,ge=Se;var ye=fe;fe=me,me=ye}switch(fe){case 16777216:case 33554432:this._workCell.isBold()&&le<8&&this._optionsService.options.drawBoldTextInBrightColors&&(le+=8),this._applyMinimumContrast(te,this._colors.background,this._colors.ansi[le])||te.classList.add("xterm-fg-"+le);break;case 50331648:var Pe=de.rgba.toColor(le>>16&255,le>>8&255,255&le);this._applyMinimumContrast(te,this._colors.background,Pe)||this._addStyle(te,"color:#"+ne(le.toString(16),"0",6));break;case 0:default:this._applyMinimumContrast(te,this._colors.background,this._colors.foreground)||he&&te.classList.add("xterm-fg-"+_e.INVERTED_DEFAULT_COLOR)}switch(me){case 16777216:case 33554432:te.classList.add("xterm-bg-"+ge);break;case 50331648:this._addStyle(te,"background-color:#"+ne(ge.toString(16),"0",6));break;case 0:default:he&&te.classList.add("xterm-bg-"+_e.INVERTED_DEFAULT_COLOR)}y.appendChild(te)}}return y},ie.prototype._applyMinimumContrast=function(ce,ue,ae){if(this._optionsService.options.minimumContrastRatio===1)return!1;var oe=this._colors.contrastCache.getColor(this._workCell.bg,this._workCell.fg);return oe===void 0&&(oe=de.color.ensureContrastRatio(ue,ae,this._optionsService.options.minimumContrastRatio),this._colors.contrastCache.setColor(this._workCell.bg,this._workCell.fg,oe!=null?oe:null)),!!oe&&(this._addStyle(ce,"color:"+oe.css),!0)},ie.prototype._addStyle=function(ce,ue){ce.setAttribute("style",""+(ce.getAttribute("style")||"")+ue+";")},ie}();function ne(ie,ce,ue){for(;ie.length"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};ve.evaluateKeyboardEvent=function(pe,de,se,ne){var ie={type:0,cancel:!1,key:void 0},ce=(pe.shiftKey?1:0)|(pe.altKey?2:0)|(pe.ctrlKey?4:0)|(pe.metaKey?8:0);switch(pe.keyCode){case 0:pe.key==="UIKeyInputUpArrow"?ie.key=de?_e.C0.ESC+"OA":_e.C0.ESC+"[A":pe.key==="UIKeyInputLeftArrow"?ie.key=de?_e.C0.ESC+"OD":_e.C0.ESC+"[D":pe.key==="UIKeyInputRightArrow"?ie.key=de?_e.C0.ESC+"OC":_e.C0.ESC+"[C":pe.key==="UIKeyInputDownArrow"&&(ie.key=de?_e.C0.ESC+"OB":_e.C0.ESC+"[B");break;case 8:if(pe.shiftKey){ie.key=_e.C0.BS;break}if(pe.altKey){ie.key=_e.C0.ESC+_e.C0.DEL;break}ie.key=_e.C0.DEL;break;case 9:if(pe.shiftKey){ie.key=_e.C0.ESC+"[Z";break}ie.key=_e.C0.HT,ie.cancel=!0;break;case 13:ie.key=pe.altKey?_e.C0.ESC+_e.C0.CR:_e.C0.CR,ie.cancel=!0;break;case 27:ie.key=_e.C0.ESC,pe.altKey&&(ie.key=_e.C0.ESC+_e.C0.ESC),ie.cancel=!0;break;case 37:if(pe.metaKey)break;ce?(ie.key=_e.C0.ESC+"[1;"+(ce+1)+"D",ie.key===_e.C0.ESC+"[1;3D"&&(ie.key=_e.C0.ESC+(se?"b":"[1;5D"))):ie.key=de?_e.C0.ESC+"OD":_e.C0.ESC+"[D";break;case 39:if(pe.metaKey)break;ce?(ie.key=_e.C0.ESC+"[1;"+(ce+1)+"C",ie.key===_e.C0.ESC+"[1;3C"&&(ie.key=_e.C0.ESC+(se?"f":"[1;5C"))):ie.key=de?_e.C0.ESC+"OC":_e.C0.ESC+"[C";break;case 38:if(pe.metaKey)break;ce?(ie.key=_e.C0.ESC+"[1;"+(ce+1)+"A",se||ie.key!==_e.C0.ESC+"[1;3A"||(ie.key=_e.C0.ESC+"[1;5A")):ie.key=de?_e.C0.ESC+"OA":_e.C0.ESC+"[A";break;case 40:if(pe.metaKey)break;ce?(ie.key=_e.C0.ESC+"[1;"+(ce+1)+"B",se||ie.key!==_e.C0.ESC+"[1;3B"||(ie.key=_e.C0.ESC+"[1;5B")):ie.key=de?_e.C0.ESC+"OB":_e.C0.ESC+"[B";break;case 45:pe.shiftKey||pe.ctrlKey||(ie.key=_e.C0.ESC+"[2~");break;case 46:ie.key=ce?_e.C0.ESC+"[3;"+(ce+1)+"~":_e.C0.ESC+"[3~";break;case 36:ie.key=ce?_e.C0.ESC+"[1;"+(ce+1)+"H":de?_e.C0.ESC+"OH":_e.C0.ESC+"[H";break;case 35:ie.key=ce?_e.C0.ESC+"[1;"+(ce+1)+"F":de?_e.C0.ESC+"OF":_e.C0.ESC+"[F";break;case 33:pe.shiftKey?ie.type=2:ie.key=_e.C0.ESC+"[5~";break;case 34:pe.shiftKey?ie.type=3:ie.key=_e.C0.ESC+"[6~";break;case 112:ie.key=ce?_e.C0.ESC+"[1;"+(ce+1)+"P":_e.C0.ESC+"OP";break;case 113:ie.key=ce?_e.C0.ESC+"[1;"+(ce+1)+"Q":_e.C0.ESC+"OQ";break;case 114:ie.key=ce?_e.C0.ESC+"[1;"+(ce+1)+"R":_e.C0.ESC+"OR";break;case 115:ie.key=ce?_e.C0.ESC+"[1;"+(ce+1)+"S":_e.C0.ESC+"OS";break;case 116:ie.key=ce?_e.C0.ESC+"[15;"+(ce+1)+"~":_e.C0.ESC+"[15~";break;case 117:ie.key=ce?_e.C0.ESC+"[17;"+(ce+1)+"~":_e.C0.ESC+"[17~";break;case 118:ie.key=ce?_e.C0.ESC+"[18;"+(ce+1)+"~":_e.C0.ESC+"[18~";break;case 119:ie.key=ce?_e.C0.ESC+"[19;"+(ce+1)+"~":_e.C0.ESC+"[19~";break;case 120:ie.key=ce?_e.C0.ESC+"[20;"+(ce+1)+"~":_e.C0.ESC+"[20~";break;case 121:ie.key=ce?_e.C0.ESC+"[21;"+(ce+1)+"~":_e.C0.ESC+"[21~";break;case 122:ie.key=ce?_e.C0.ESC+"[23;"+(ce+1)+"~":_e.C0.ESC+"[23~";break;case 123:ie.key=ce?_e.C0.ESC+"[24;"+(ce+1)+"~":_e.C0.ESC+"[24~";break;default:if(!pe.ctrlKey||pe.shiftKey||pe.altKey||pe.metaKey)if(se&&!ne||!pe.altKey||pe.metaKey)se&&!pe.altKey&&!pe.ctrlKey&&pe.metaKey?pe.keyCode===65&&(ie.type=1):pe.key&&!pe.ctrlKey&&!pe.altKey&&!pe.metaKey&&pe.keyCode>=48&&pe.key.length===1?ie.key=pe.key:pe.key&&pe.ctrlKey&&pe.key==="_"&&(ie.key=_e.C0.US);else{var ue=E[pe.keyCode],ae=ue&&ue[pe.shiftKey?1:0];if(ae)ie.key=_e.C0.ESC+ae;else if(pe.keyCode>=65&&pe.keyCode<=90){var oe=pe.ctrlKey?pe.keyCode-64:pe.keyCode+32;ie.key=_e.C0.ESC+String.fromCharCode(oe)}}else pe.keyCode>=65&&pe.keyCode<=90?ie.key=String.fromCharCode(pe.keyCode-64):pe.keyCode===32?ie.key=_e.C0.NUL:pe.keyCode>=51&&pe.keyCode<=55?ie.key=String.fromCharCode(pe.keyCode-51+27):pe.keyCode===56?ie.key=_e.C0.DEL:pe.keyCode===219?ie.key=_e.C0.ESC:pe.keyCode===220?ie.key=_e.C0.FS:pe.keyCode===221&&(ie.key=_e.C0.GS)}return ie}},function(dt,ve,be){"use strict";var _e,E=this&&this.__extends||(_e=function(ee,a){return(_e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,x){y.__proto__=x}||function(y,x){for(var b in x)x.hasOwnProperty(b)&&(y[b]=x[b])})(ee,a)},function(ee,a){function y(){this.constructor=ee}_e(ee,a),ee.prototype=a===null?Object.create(a):(y.prototype=a.prototype,new y)}),pe=this&&this.__decorate||function(ee,a,y,x){var b,z=arguments.length,te=z<3?a:x===null?x=Object.getOwnPropertyDescriptor(a,y):x;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")te=Reflect.decorate(ee,a,y,x);else for(var le=ee.length-1;le>=0;le--)(b=ee[le])&&(te=(z<3?b(te):z>3?b(a,y,te):b(a,y))||te);return z>3&&te&&Object.defineProperty(a,y,te),te},de=this&&this.__param||function(ee,a){return function(y,x){a(y,x,ee)}};Object.defineProperty(ve,"__esModule",{value:!0}),ve.RenderService=void 0;var se=be(31),ne=be(0),ie=be(2),ce=be(32),ue=be(7),ae=be(1),oe=be(5),re=function(ee){function a(y,x,b,z,te,le){var fe=ee.call(this)||this;if(fe._renderer=y,fe._rowCount=x,fe._isPaused=!1,fe._needsFullRefresh=!1,fe._isNextRenderRedrawOnly=!0,fe._needsSelectionRefresh=!1,fe._canvasWidth=0,fe._canvasHeight=0,fe._selectionState={start:void 0,end:void 0,columnSelectMode:!1},fe._onDimensionsChange=new ne.EventEmitter,fe._onRender=new ne.EventEmitter,fe._onRefreshRequest=new ne.EventEmitter,fe.register({dispose:function(){return fe._renderer.dispose()}}),fe._renderDebouncer=new se.RenderDebouncer(function(me,he){return fe._renderRows(me,he)}),fe.register(fe._renderDebouncer),fe._screenDprMonitor=new ce.ScreenDprMonitor,fe._screenDprMonitor.setListener(function(){return fe.onDevicePixelRatioChange()}),fe.register(fe._screenDprMonitor),fe.register(le.onResize(function(me){return fe._fullRefresh()})),fe.register(z.onOptionChange(function(){return fe._renderer.onOptionsChanged()})),fe.register(te.onCharSizeChange(function(){return fe.onCharSizeChanged()})),fe._renderer.onRequestRedraw(function(me){return fe.refreshRows(me.start,me.end,!0)}),fe.register(ue.addDisposableDomListener(window,"resize",function(){return fe.onDevicePixelRatioChange()})),"IntersectionObserver"in window){var ge=new IntersectionObserver(function(me){return fe._onIntersectionChange(me[me.length-1])},{threshold:0});ge.observe(b),fe.register({dispose:function(){return ge.disconnect()}})}return fe}return E(a,ee),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,x,b){b===void 0&&(b=!1),this._isPaused?this._needsFullRefresh=!0:(b||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(y,x,this._rowCount))},a.prototype._renderRows=function(y,x){this._renderer.renderRows(y,x),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:x}),this._isNextRenderRedrawOnly=!0},a.prototype.resize=function(y,x){this._rowCount=x,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(){ee.prototype.dispose.call(this)},a.prototype.setRenderer=function(y){var x=this;this._renderer.dispose(),this._renderer=y,this._renderer.onRequestRedraw(function(b){return x.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,x){this._renderer.onResize(y,x),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,x,b){this._selectionState.start=y,this._selectionState.end=x,this._selectionState.columnSelectMode=b,this._renderer.onSelectionChanged(y,x,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([de(3,ae.IOptionsService),de(4,oe.ICharSizeService),de(5,ae.IBufferService)],a)}(ie.Disposable);ve.RenderService=re},function(dt,ve,be){"use strict";var _e=this&&this.__decorate||function(ie,ce,ue,ae){var oe,re=arguments.length,ee=re<3?ce:ae===null?ae=Object.getOwnPropertyDescriptor(ce,ue):ae;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ee=Reflect.decorate(ie,ce,ue,ae);else for(var a=ie.length-1;a>=0;a--)(oe=ie[a])&&(ee=(re<3?oe(ee):re>3?oe(ce,ue,ee):oe(ce,ue))||ee);return re>3&&ee&&Object.defineProperty(ce,ue,ee),ee},E=this&&this.__param||function(ie,ce){return function(ue,ae){ce(ue,ae,ie)}};Object.defineProperty(ve,"__esModule",{value:!0}),ve.CharSizeService=void 0;var pe=be(1),de=be(0),se=function(){function ie(ce,ue,ae){this._optionsService=ae,this.width=0,this.height=0,this._onCharSizeChange=new de.EventEmitter,this._measureStrategy=new ne(ce,ue,this._optionsService)}return Object.defineProperty(ie.prototype,"hasValidSize",{get:function(){return this.width>0&&this.height>0},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"onCharSizeChange",{get:function(){return this._onCharSizeChange.event},enumerable:!1,configurable:!0}),ie.prototype.measure=function(){var ce=this._measureStrategy.measure();ce.width===this.width&&ce.height===this.height||(this.width=ce.width,this.height=ce.height,this._onCharSizeChange.fire())},ie=_e([E(2,pe.IOptionsService)],ie)}();ve.CharSizeService=se;var ne=function(){function ie(ce,ue,ae){this._document=ce,this._parentElement=ue,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 ie.prototype.measure=function(){this._measureElement.style.fontFamily=this._optionsService.options.fontFamily,this._measureElement.style.fontSize=this._optionsService.options.fontSize+"px";var ce=this._measureElement.getBoundingClientRect();return ce.width!==0&&ce.height!==0&&(this._result.width=ce.width,this._result.height=Math.ceil(ce.height)),this._result},ie}()},function(dt,ve,be){"use strict";var _e=this&&this.__decorate||function(ne,ie,ce,ue){var ae,oe=arguments.length,re=oe<3?ie:ue===null?ue=Object.getOwnPropertyDescriptor(ie,ce):ue;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")re=Reflect.decorate(ne,ie,ce,ue);else for(var ee=ne.length-1;ee>=0;ee--)(ae=ne[ee])&&(re=(oe<3?ae(re):oe>3?ae(ie,ce,re):ae(ie,ce))||re);return oe>3&&re&&Object.defineProperty(ie,ce,re),re},E=this&&this.__param||function(ne,ie){return function(ce,ue){ie(ce,ue,ne)}};Object.defineProperty(ve,"__esModule",{value:!0}),ve.MouseService=void 0;var pe=be(5),de=be(30),se=function(){function ne(ie,ce){this._renderService=ie,this._charSizeService=ce}return ne.prototype.getCoords=function(ie,ce,ue,ae,oe){return de.getCoords(ie,ce,ue,ae,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,oe)},ne.prototype.getRawByteCoords=function(ie,ce,ue,ae){var oe=this.getCoords(ie,ce,ue,ae);return de.getRawByteCoords(oe)},ne=_e([E(0,pe.IRenderService),E(1,pe.ICharSizeService)],ne)}();ve.MouseService=se},function(dt,ve,be){"use strict";var _e,E=this&&this.__extends||(_e=function(ae,oe){return(_e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(re,ee){re.__proto__=ee}||function(re,ee){for(var a in ee)ee.hasOwnProperty(a)&&(re[a]=ee[a])})(ae,oe)},function(ae,oe){function re(){this.constructor=ae}_e(ae,oe),ae.prototype=oe===null?Object.create(oe):(re.prototype=oe.prototype,new re)}),pe=this&&this.__decorate||function(ae,oe,re,ee){var a,y=arguments.length,x=y<3?oe:ee===null?ee=Object.getOwnPropertyDescriptor(oe,re):ee;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")x=Reflect.decorate(ae,oe,re,ee);else for(var b=ae.length-1;b>=0;b--)(a=ae[b])&&(x=(y<3?a(x):y>3?a(oe,re,x):a(oe,re))||x);return y>3&&x&&Object.defineProperty(oe,re,x),x},de=this&&this.__param||function(ae,oe){return function(re,ee){oe(re,ee,ae)}};Object.defineProperty(ve,"__esModule",{value:!0}),ve.Linkifier2=void 0;var se=be(1),ne=be(0),ie=be(2),ce=be(7),ue=function(ae){function oe(re){var ee=ae.call(this)||this;return ee._bufferService=re,ee._linkProviders=[],ee._linkCacheDisposables=[],ee._isMouseOut=!0,ee._activeLine=-1,ee._onShowLinkUnderline=ee.register(new ne.EventEmitter),ee._onHideLinkUnderline=ee.register(new ne.EventEmitter),ee.register(ie.getDisposeArrayDisposable(ee._linkCacheDisposables)),ee}return E(oe,ae),Object.defineProperty(oe.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),oe.prototype.registerLinkProvider=function(re){var ee=this;return this._linkProviders.push(re),{dispose:function(){var a=ee._linkProviders.indexOf(re);a!==-1&&ee._linkProviders.splice(a,1)}}},oe.prototype.attachToDom=function(re,ee,a){var y=this;this._element=re,this._mouseService=ee,this._renderService=a,this.register(ce.addDisposableDomListener(this._element,"mouseleave",function(){y._isMouseOut=!0,y._clearCurrentLink()})),this.register(ce.addDisposableDomListener(this._element,"mousemove",this._onMouseMove.bind(this))),this.register(ce.addDisposableDomListener(this._element,"click",this._onClick.bind(this)))},oe.prototype._onMouseMove=function(re){if(this._lastMouseEvent=re,this._element&&this._mouseService){var ee=this._positionFromMouseEvent(re,this._element,this._mouseService);if(ee){this._isMouseOut=!1;for(var a=re.composedPath(),y=0;yre?this._bufferService.cols:z.link.range.end.x,fe=te;fe<=le;fe++){if(a.has(fe)){x.splice(b--,1);break}a.add(fe)}}},oe.prototype._checkLinkProviderResult=function(re,ee,a){var y,x=this;if(!this._activeProviderReplies)return a;for(var b=this._activeProviderReplies.get(re),z=!1,te=0;te=re&&this._currentLink.link.range.end.y<=ee)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,ie.disposeArray(this._linkCacheDisposables))},oe.prototype._handleNewLink=function(re){var ee=this;if(this._element&&this._lastMouseEvent&&this._mouseService){var a=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);a&&this._linkAtPosition(re.link,a)&&(this._currentLink=re,this._currentLink.state={decorations:{underline:re.link.decorations===void 0||re.link.decorations.underline,pointerCursor:re.link.decorations===void 0||re.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,re.link,this._lastMouseEvent),re.link.decorations={},Object.defineProperties(re.link.decorations,{pointerCursor:{get:function(){var y,x;return(x=(y=ee._currentLink)===null||y===void 0?void 0:y.state)===null||x===void 0?void 0:x.decorations.pointerCursor},set:function(y){var x,b;!((x=ee._currentLink)===null||x===void 0)&&x.state&&ee._currentLink.state.decorations.pointerCursor!==y&&(ee._currentLink.state.decorations.pointerCursor=y,ee._currentLink.state.isHovered&&((b=ee._element)===null||b===void 0||b.classList.toggle("xterm-cursor-pointer",y)))}},underline:{get:function(){var y,x;return(x=(y=ee._currentLink)===null||y===void 0?void 0:y.state)===null||x===void 0?void 0:x.decorations.underline},set:function(y){var x,b,z;!((x=ee._currentLink)===null||x===void 0)&&x.state&&((z=(b=ee._currentLink)===null||b===void 0?void 0:b.state)===null||z===void 0?void 0:z.decorations.underline)!==y&&(ee._currentLink.state.decorations.underline=y,ee._currentLink.state.isHovered&&ee._fireUnderlineEvent(re.link,y))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedBufferChange(function(y){var x=y.start===0?0:y.start+1+ee._bufferService.buffer.ydisp;ee._clearCurrentLink(x,y.end+1+ee._bufferService.buffer.ydisp)})))}},oe.prototype._linkHover=function(re,ee,a){var y;!((y=this._currentLink)===null||y===void 0)&&y.state&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(ee,!0),this._currentLink.state.decorations.pointerCursor&&re.classList.add("xterm-cursor-pointer")),ee.hover&&ee.hover(a,ee.text)},oe.prototype._fireUnderlineEvent=function(re,ee){var a=re.range,y=this._bufferService.buffer.ydisp,x=this._createLinkUnderlineEvent(a.start.x-1,a.start.y-y-1,a.end.x,a.end.y-y-1,void 0);(ee?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(x)},oe.prototype._linkLeave=function(re,ee,a){var y;!((y=this._currentLink)===null||y===void 0)&&y.state&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(ee,!1),this._currentLink.state.decorations.pointerCursor&&re.classList.remove("xterm-cursor-pointer")),ee.leave&&ee.leave(a,ee.text)},oe.prototype._linkAtPosition=function(re,ee){var a=re.range.start.y===re.range.end.y,y=re.range.start.yee.y;return(a&&re.range.start.x<=ee.x&&re.range.end.x>=ee.x||y&&re.range.end.x>=ee.x||x&&re.range.start.x<=ee.x||y&&x)&&re.range.start.y<=ee.y&&re.range.end.y>=ee.y},oe.prototype._positionFromMouseEvent=function(re,ee,a){var y=a.getCoords(re,ee,this._bufferService.cols,this._bufferService.rows);if(y)return{x:y[0],y:y[1]+this._bufferService.buffer.ydisp}},oe.prototype._createLinkUnderlineEvent=function(re,ee,a,y,x){return{x1:re,y1:ee,x2:a,y2:y,cols:this._bufferService.cols,fg:x}},oe=pe([de(0,se.IBufferService)],oe)}(ie.Disposable);ve.Linkifier2=ue},function(dt,ve,be){"use strict";Object.defineProperty(ve,"__esModule",{value:!0}),ve.CoreBrowserService=void 0;var _e=function(){function E(pe){this._textarea=pe}return Object.defineProperty(E.prototype,"isFocused",{get:function(){return document.activeElement===this._textarea&&document.hasFocus()},enumerable:!1,configurable:!0}),E}();ve.CoreBrowserService=_e},function(dt,ve,be){"use strict";var _e,E=this&&this.__extends||(_e=function(te,le){return(_e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(fe,ge){fe.__proto__=ge}||function(fe,ge){for(var me in ge)ge.hasOwnProperty(me)&&(fe[me]=ge[me])})(te,le)},function(te,le){function fe(){this.constructor=te}_e(te,le),te.prototype=le===null?Object.create(le):(fe.prototype=le.prototype,new fe)});Object.defineProperty(ve,"__esModule",{value:!0}),ve.CoreTerminal=void 0;var pe=be(2),de=be(1),se=be(66),ne=be(67),ie=be(68),ce=be(74),ue=be(75),ae=be(0),oe=be(76),re=be(77),ee=be(78),a=be(80),y=be(81),x=be(19),b=be(82),z=function(te){function le(fe){var ge=te.call(this)||this;return ge._onBinary=new ae.EventEmitter,ge._onData=new ae.EventEmitter,ge._onLineFeed=new ae.EventEmitter,ge._onResize=new ae.EventEmitter,ge._onScroll=new ae.EventEmitter,ge._instantiationService=new se.InstantiationService,ge.optionsService=new ce.OptionsService(fe),ge._instantiationService.setService(de.IOptionsService,ge.optionsService),ge._bufferService=ge.register(ge._instantiationService.createInstance(ie.BufferService)),ge._instantiationService.setService(de.IBufferService,ge._bufferService),ge._logService=ge._instantiationService.createInstance(ne.LogService),ge._instantiationService.setService(de.ILogService,ge._logService),ge._coreService=ge.register(ge._instantiationService.createInstance(ue.CoreService,function(){return ge.scrollToBottom()})),ge._instantiationService.setService(de.ICoreService,ge._coreService),ge._coreMouseService=ge._instantiationService.createInstance(oe.CoreMouseService),ge._instantiationService.setService(de.ICoreMouseService,ge._coreMouseService),ge._dirtyRowService=ge._instantiationService.createInstance(re.DirtyRowService),ge._instantiationService.setService(de.IDirtyRowService,ge._dirtyRowService),ge.unicodeService=ge._instantiationService.createInstance(ee.UnicodeService),ge._instantiationService.setService(de.IUnicodeService,ge.unicodeService),ge._charsetService=ge._instantiationService.createInstance(a.CharsetService),ge._instantiationService.setService(de.ICharsetService,ge._charsetService),ge._inputHandler=new x.InputHandler(ge._bufferService,ge._charsetService,ge._coreService,ge._dirtyRowService,ge._logService,ge.optionsService,ge._coreMouseService,ge.unicodeService),ge.register(ae.forwardEvent(ge._inputHandler.onLineFeed,ge._onLineFeed)),ge.register(ge._inputHandler),ge.register(ae.forwardEvent(ge._bufferService.onResize,ge._onResize)),ge.register(ae.forwardEvent(ge._coreService.onData,ge._onData)),ge.register(ae.forwardEvent(ge._coreService.onBinary,ge._onBinary)),ge.register(ge.optionsService.onOptionChange(function(me){return ge._updateOptions(me)})),ge._writeBuffer=new b.WriteBuffer(function(me){return ge._inputHandler.parse(me)}),ge}return E(le,te),Object.defineProperty(le.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),Object.defineProperty(le.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(le.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(le.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(le.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(le.prototype,"cols",{get:function(){return this._bufferService.cols},enumerable:!1,configurable:!0}),Object.defineProperty(le.prototype,"rows",{get:function(){return this._bufferService.rows},enumerable:!1,configurable:!0}),Object.defineProperty(le.prototype,"buffers",{get:function(){return this._bufferService.buffers},enumerable:!1,configurable:!0}),le.prototype.dispose=function(){var fe;this._isDisposed||(te.prototype.dispose.call(this),(fe=this._windowsMode)===null||fe===void 0||fe.dispose(),this._windowsMode=void 0)},le.prototype.write=function(fe,ge){this._writeBuffer.write(fe,ge)},le.prototype.writeSync=function(fe){this._writeBuffer.writeSync(fe)},le.prototype.resize=function(fe,ge){isNaN(fe)||isNaN(ge)||(fe=Math.max(fe,ie.MINIMUM_COLS),ge=Math.max(ge,ie.MINIMUM_ROWS),this._bufferService.resize(fe,ge))},le.prototype.scroll=function(fe,ge){ge===void 0&&(ge=!1);var me,he=this._bufferService.buffer;(me=this._cachedBlankLine)&&me.length===this.cols&&me.getFg(0)===fe.fg&&me.getBg(0)===fe.bg||(me=he.getBlankLine(fe,ge),this._cachedBlankLine=me),me.isWrapped=ge;var Se=he.ybase+he.scrollTop,ye=he.ybase+he.scrollBottom;if(he.scrollTop===0){var Pe=he.lines.isFull;ye===he.lines.length-1?Pe?he.lines.recycle().copyFrom(me):he.lines.push(me.clone()):he.lines.splice(ye+1,0,me.clone()),Pe?this._bufferService.isUserScrolling&&(he.ydisp=Math.max(he.ydisp-1,0)):(he.ybase++,this._bufferService.isUserScrolling||he.ydisp++)}else{var we=ye-Se+1;he.lines.shiftElements(Se+1,we-1,-1),he.lines.set(ye,me.clone())}this._bufferService.isUserScrolling||(he.ydisp=he.ybase),this._dirtyRowService.markRangeDirty(he.scrollTop,he.scrollBottom),this._onScroll.fire(he.ydisp)},le.prototype.scrollLines=function(fe,ge){var me=this._bufferService.buffer;if(fe<0){if(me.ydisp===0)return;this._bufferService.isUserScrolling=!0}else fe+me.ydisp>=me.ybase&&(this._bufferService.isUserScrolling=!1);var he=me.ydisp;me.ydisp=Math.max(Math.min(me.ydisp+fe,me.ybase),0),he!==me.ydisp&&(ge||this._onScroll.fire(me.ydisp))},le.prototype.scrollPages=function(fe){this.scrollLines(fe*(this.rows-1))},le.prototype.scrollToTop=function(){this.scrollLines(-this._bufferService.buffer.ydisp)},le.prototype.scrollToBottom=function(){this.scrollLines(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp)},le.prototype.scrollToLine=function(fe){var ge=fe-this._bufferService.buffer.ydisp;ge!==0&&this.scrollLines(ge)},le.prototype.addEscHandler=function(fe,ge){return this._inputHandler.addEscHandler(fe,ge)},le.prototype.addDcsHandler=function(fe,ge){return this._inputHandler.addDcsHandler(fe,ge)},le.prototype.addCsiHandler=function(fe,ge){return this._inputHandler.addCsiHandler(fe,ge)},le.prototype.addOscHandler=function(fe,ge){return this._inputHandler.addOscHandler(fe,ge)},le.prototype._setup=function(){this.optionsService.options.windowsMode&&this._enableWindowsMode()},le.prototype.reset=function(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this._coreService.reset(),this._coreMouseService.reset()},le.prototype._updateOptions=function(fe){var ge;switch(fe){case"scrollback":this.buffers.resize(this.cols,this.rows);break;case"windowsMode":this.optionsService.options.windowsMode?this._enableWindowsMode():((ge=this._windowsMode)===null||ge===void 0||ge.dispose(),this._windowsMode=void 0)}},le.prototype._enableWindowsMode=function(){var fe=this;if(!this._windowsMode){var ge=[];ge.push(this.onLineFeed(y.updateWindowsModeWrappedState.bind(null,this._bufferService))),ge.push(this.addCsiHandler({final:"H"},function(){return y.updateWindowsModeWrappedState(fe._bufferService),!1})),this._windowsMode={dispose:function(){for(var me=0,he=ge;me0?ae[0].index:ce.length;if(ce.length!==x)throw new Error("[createInstance] First service dependency of "+ie.name+" at position "+(x+1)+" conflicts with "+ce.length+" static arguments");return new(ie.bind.apply(ie,_e([void 0],_e(ce,oe))))},ne}();ve.InstantiationService=se},function(dt,ve,be){"use strict";var _e=this&&this.__decorate||function(ce,ue,ae,oe){var re,ee=arguments.length,a=ee<3?ue:oe===null?oe=Object.getOwnPropertyDescriptor(ue,ae):oe;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(ce,ue,ae,oe);else for(var y=ce.length-1;y>=0;y--)(re=ce[y])&&(a=(ee<3?re(a):ee>3?re(ue,ae,a):re(ue,ae))||a);return ee>3&&a&&Object.defineProperty(ue,ae,a),a},E=this&&this.__param||function(ce,ue){return function(ae,oe){ue(ae,oe,ce)}},pe=this&&this.__spreadArrays||function(){for(var ce=0,ue=0,ae=arguments.length;ue=0;b--)(a=ae[b])&&(x=(y<3?a(x):y>3?a(oe,re,x):a(oe,re))||x);return y>3&&x&&Object.defineProperty(oe,re,x),x},de=this&&this.__param||function(ae,oe){return function(re,ee){oe(re,ee,ae)}};Object.defineProperty(ve,"__esModule",{value:!0}),ve.BufferService=ve.MINIMUM_ROWS=ve.MINIMUM_COLS=void 0;var se=be(1),ne=be(69),ie=be(0),ce=be(2);ve.MINIMUM_COLS=2,ve.MINIMUM_ROWS=1;var ue=function(ae){function oe(re){var ee=ae.call(this)||this;return ee._optionsService=re,ee.isUserScrolling=!1,ee._onResize=new ie.EventEmitter,ee.cols=Math.max(re.options.cols,ve.MINIMUM_COLS),ee.rows=Math.max(re.options.rows,ve.MINIMUM_ROWS),ee.buffers=new ne.BufferSet(re,ee),ee}return E(oe,ae),Object.defineProperty(oe.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),oe.prototype.dispose=function(){ae.prototype.dispose.call(this),this.buffers.dispose()},oe.prototype.resize=function(re,ee){this.cols=re,this.rows=ee,this.buffers.resize(re,ee),this.buffers.setupTabStops(this.cols),this._onResize.fire({cols:re,rows:ee})},oe.prototype.reset=function(){this.buffers.dispose(),this.buffers=new ne.BufferSet(this._optionsService,this),this.isUserScrolling=!1},oe=pe([de(0,se.IOptionsService)],oe)}(ce.Disposable);ve.BufferService=ue},function(dt,ve,be){"use strict";var _e,E=this&&this.__extends||(_e=function(ne,ie){return(_e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ce,ue){ce.__proto__=ue}||function(ce,ue){for(var ae in ue)ue.hasOwnProperty(ae)&&(ce[ae]=ue[ae])})(ne,ie)},function(ne,ie){function ce(){this.constructor=ne}_e(ne,ie),ne.prototype=ie===null?Object.create(ie):(ce.prototype=ie.prototype,new ce)});Object.defineProperty(ve,"__esModule",{value:!0}),ve.BufferSet=void 0;var pe=be(70),de=be(0),se=function(ne){function ie(ce,ue){var ae=ne.call(this)||this;return ae._onBufferActivate=ae.register(new de.EventEmitter),ae._normal=new pe.Buffer(!0,ce,ue),ae._normal.fillViewportRows(),ae._alt=new pe.Buffer(!1,ce,ue),ae._activeBuffer=ae._normal,ae.setupTabStops(),ae}return E(ie,ne),Object.defineProperty(ie.prototype,"onBufferActivate",{get:function(){return this._onBufferActivate.event},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"alt",{get:function(){return this._alt},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"active",{get:function(){return this._activeBuffer},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"normal",{get:function(){return this._normal},enumerable:!1,configurable:!0}),ie.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}))},ie.prototype.activateAltBuffer=function(ce){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(ce),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}))},ie.prototype.resize=function(ce,ue){this._normal.resize(ce,ue),this._alt.resize(ce,ue)},ie.prototype.setupTabStops=function(ce){this._normal.setupTabStops(ce),this._alt.setupTabStops(ce)},ie}(be(2).Disposable);ve.BufferSet=se},function(dt,ve,be){"use strict";Object.defineProperty(ve,"__esModule",{value:!0}),ve.BufferStringIterator=ve.Buffer=ve.MAX_BUFFER_SIZE=void 0;var _e=be(71),E=be(16),pe=be(4),de=be(3),se=be(72),ne=be(73),ie=be(20),ce=be(6);ve.MAX_BUFFER_SIZE=4294967295;var ue=function(){function oe(re,ee,a){this._hasScrollback=re,this._optionsService=ee,this._bufferService=a,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.savedY=0,this.savedX=0,this.savedCurAttrData=E.DEFAULT_ATTR_DATA.clone(),this.savedCharset=ie.DEFAULT_CHARSET,this.markers=[],this._nullCell=pe.CellData.fromCharData([0,de.NULL_CELL_CHAR,de.NULL_CELL_WIDTH,de.NULL_CELL_CODE]),this._whitespaceCell=pe.CellData.fromCharData([0,de.WHITESPACE_CELL_CHAR,de.WHITESPACE_CELL_WIDTH,de.WHITESPACE_CELL_CODE]),this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new _e.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}return oe.prototype.getNullCell=function(re){return re?(this._nullCell.fg=re.fg,this._nullCell.bg=re.bg,this._nullCell.extended=re.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new ce.ExtendedAttrs),this._nullCell},oe.prototype.getWhitespaceCell=function(re){return re?(this._whitespaceCell.fg=re.fg,this._whitespaceCell.bg=re.bg,this._whitespaceCell.extended=re.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new ce.ExtendedAttrs),this._whitespaceCell},oe.prototype.getBlankLine=function(re,ee){return new E.BufferLine(this._bufferService.cols,this.getNullCell(re),ee)},Object.defineProperty(oe.prototype,"hasScrollback",{get:function(){return this._hasScrollback&&this.lines.maxLength>this._rows},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"isCursorInViewport",{get:function(){var re=this.ybase+this.y-this.ydisp;return re>=0&&reve.MAX_BUFFER_SIZE?ve.MAX_BUFFER_SIZE:ee},oe.prototype.fillViewportRows=function(re){if(this.lines.length===0){re===void 0&&(re=E.DEFAULT_ATTR_DATA);for(var ee=this._rows;ee--;)this.lines.push(this.getBlankLine(re))}},oe.prototype.clear=function(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new _e.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()},oe.prototype.resize=function(re,ee){var a=this.getNullCell(E.DEFAULT_ATTR_DATA),y=this._getCorrectBufferLength(ee);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 E.BufferLine(re,a)));else for(z=this._rows;z>ee;z--)this.lines.length>ee+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(y0&&(this.lines.trimStart(te),this.ybase=Math.max(this.ybase-te,0),this.ydisp=Math.max(this.ydisp-te,0),this.savedY=Math.max(this.savedY-te,0)),this.lines.maxLength=y}this.x=Math.min(this.x,re-1),this.y=Math.min(this.y,ee-1),b&&(this.y+=b),this.savedX=Math.min(this.savedX,re-1),this.scrollTop=0}if(this.scrollBottom=ee-1,this._isReflowEnabled&&(this._reflow(re,ee),this._cols>re))for(x=0;xthis._cols?this._reflowLarger(re,ee):this._reflowSmaller(re,ee))},oe.prototype._reflowLarger=function(re,ee){var a=se.reflowLargerGetLinesToRemove(this.lines,this._cols,re,this.ybase+this.y,this.getNullCell(E.DEFAULT_ATTR_DATA));if(a.length>0){var y=se.reflowLargerCreateNewLayout(this.lines,a);se.reflowLargerApplyNewLayout(this.lines,y.layout),this._reflowLargerAdjustViewport(re,ee,y.countRemoved)}},oe.prototype._reflowLargerAdjustViewport=function(re,ee,a){for(var y=this.getNullCell(E.DEFAULT_ATTR_DATA),x=a;x-- >0;)this.ybase===0?(this.y>0&&this.y--,this.lines.length=0;b--){var z=this.lines.get(b);if(!(!z||!z.isWrapped&&z.getTrimmedLength()<=re)){for(var te=[z];z.isWrapped&&b>0;)z=this.lines.get(--b),te.unshift(z);var le=this.ybase+this.y;if(!(le>=b&&le0&&(y.push({start:b+te.length+x,newLines:Se}),x+=Se.length),te.push.apply(te,Se);var we=ge.length-1,De=ge[we];De===0&&(De=ge[--we]);for(var Ee=te.length-me-1,Ae=fe;Ee>=0;){var Ce=Math.min(Ae,De);if(te[we].copyCellsFrom(te[Ee],Ae-Ce,De-Ce,Ce,!0),(De-=Ce)===0&&(De=ge[--we]),(Ae-=Ce)===0){Ee--;var je=Math.max(Ee,0);Ae=se.getWrappedLineTrimmedLength(te,je,this._cols)}}for(ye=0;ye0;)this.ybase===0?this.y0){var Ge=[],Fe=[];for(ye=0;ye=0;ye--)if(Ve&&Ve.start>qe+We){for(var ze=Ve.newLines.length-1;ze>=0;ze--)this.lines.set(ye--,Ve.newLines[ze]);ye++,Ge.push({index:qe+1,amount:Ve.newLines.length}),We+=Ve.newLines.length,Ve=y[++Xe]}else this.lines.set(ye,Fe[qe--]);var Ue=0;for(ye=Ge.length-1;ye>=0;ye--)Ge[ye].index+=Ue,this.lines.onInsertEmitter.fire(Ge[ye]),Ue+=Ge[ye].amount;var ot=Math.max(0,Je+x-this.lines.maxLength);ot>0&&this.lines.onTrimEmitter.fire(ot)}},oe.prototype.stringIndexToBufferIndex=function(re,ee,a){for(a===void 0&&(a=!1);ee;){var y=this.lines.get(re);if(!y)return[-1,-1];for(var x=a?y.getTrimmedLength():y.length,b=0;b0&&this.lines.get(ee).isWrapped;)ee--;for(;a+10;);return re>=this._cols?this._cols-1:re<0?0:re},oe.prototype.nextStop=function(re){for(re==null&&(re=this.x);!this.tabs[++re]&&re=this._cols?this._cols-1:re<0?0:re},oe.prototype.addMarker=function(re){var ee=this,a=new ne.Marker(re);return this.markers.push(a),a.register(this.lines.onTrim(function(y){a.line-=y,a.line<0&&a.dispose()})),a.register(this.lines.onInsert(function(y){a.line>=y.index&&(a.line+=y.amount)})),a.register(this.lines.onDelete(function(y){a.line>=y.index&&a.liney.index&&(a.line-=y.amount)})),a.register(a.onDispose(function(){return ee._removeMarker(a)})),a},oe.prototype._removeMarker=function(re){this.markers.splice(this.markers.indexOf(re),1)},oe.prototype.iterator=function(re,ee,a,y,x){return new ae(this,re,ee,a,y,x)},oe}();ve.Buffer=ue;var ae=function(){function oe(re,ee,a,y,x,b){a===void 0&&(a=0),y===void 0&&(y=re.lines.length),x===void 0&&(x=0),b===void 0&&(b=0),this._buffer=re,this._trimRight=ee,this._startIndex=a,this._endIndex=y,this._startOverscan=x,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 oe.prototype.hasNext=function(){return this._currentthis._endIndex+this._endOverscan&&(re.last=this._endIndex+this._endOverscan),re.first=Math.max(re.first,0),re.last=Math.min(re.last,this._buffer.lines.length);for(var ee="",a=re.first;a<=re.last;++a)ee+=this._buffer.translateBufferLineToString(a,this._trimRight);return this._current=re.last+1,{range:re,content:ee}},oe}();ve.BufferStringIterator=ae},function(dt,ve,be){"use strict";Object.defineProperty(ve,"__esModule",{value:!0}),ve.CircularList=void 0;var _e=be(0),E=function(){function pe(de){this._maxLength=de,this.onDeleteEmitter=new _e.EventEmitter,this.onInsertEmitter=new _e.EventEmitter,this.onTrimEmitter=new _e.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(de){if(this._maxLength!==de){for(var se=new Array(de),ne=0;nethis._length)for(var se=this._length;se=de;ce--)this._array[this._getCyclicIndex(ce+ne.length)]=this._array[this._getCyclicIndex(ce)];for(ce=0;cethis._maxLength){var ue=this._length+ne.length-this._maxLength;this._startIndex+=ue,this._length=this._maxLength,this.onTrimEmitter.fire(ue)}else this._length+=ne.length},pe.prototype.trimStart=function(de){de>this._length&&(de=this._length),this._startIndex+=de,this._length-=de,this.onTrimEmitter.fire(de)},pe.prototype.shiftElements=function(de,se,ne){if(!(se<=0)){if(de<0||de>=this._length)throw new Error("start argument out of range");if(de+ne<0)throw new Error("Cannot shift elements in list beyond index 0");if(ne>0){for(var ie=se-1;ie>=0;ie--)this.set(de+ie+ne,this.get(de+ie));var ce=de+se+ne-this._length;if(ce>0)for(this._length+=ce;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(ie=0;ie=ce&&se0&&(fe>re||oe[fe].getTrimmedLength()===0);fe--)le++;le>0&&(ie.push(ce+oe.length-le),ie.push(le)),ce+=oe.length-1}}}return ie},ve.reflowLargerCreateNewLayout=function(E,pe){for(var de=[],se=0,ne=pe[se],ie=0,ce=0;ceae&&(ie-=ae,ce++);var oe=E[ce].getWidth(ie-1)===2;oe&&ie--;var re=oe?de-1:de;se.push(re),ue+=re}return se},ve.getWrappedLineTrimmedLength=_e},function(dt,ve,be){"use strict";var _e,E=this&&this.__extends||(_e=function(se,ne){return(_e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ie,ce){ie.__proto__=ce}||function(ie,ce){for(var ue in ce)ce.hasOwnProperty(ue)&&(ie[ue]=ce[ue])})(se,ne)},function(se,ne){function ie(){this.constructor=se}_e(se,ne),se.prototype=ne===null?Object.create(ne):(ie.prototype=ne.prototype,new ie)});Object.defineProperty(ve,"__esModule",{value:!0}),ve.Marker=void 0;var pe=be(0),de=function(se){function ne(ie){var ce=se.call(this)||this;return ce.line=ie,ce._id=ne._nextId++,ce.isDisposed=!1,ce._onDispose=new pe.EventEmitter,ce}return E(ne,se),Object.defineProperty(ne.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"onDispose",{get:function(){return this._onDispose.event},enumerable:!1,configurable:!0}),ne.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire())},ne._nextId=1,ne}(be(2).Disposable);ve.Marker=de},function(dt,ve,be){"use strict";Object.defineProperty(ve,"__esModule",{value:!0}),ve.OptionsService=ve.DEFAULT_OPTIONS=ve.DEFAULT_BELL_SOUND=void 0;var _e=be(0),E=be(11),pe=be(33);ve.DEFAULT_BELL_SOUND="data:audio/mp3;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU4LjMyLjEwNAAAAAAAAAAAAAAA//tQxAADB8AhSmxhIIEVCSiJrDCQBTcu3UrAIwUdkRgQbFAZC1CQEwTJ9mjRvBA4UOLD8nKVOWfh+UlK3z/177OXrfOdKl7pyn3Xf//WreyTRUoAWgBgkOAGbZHBgG1OF6zM82DWbZaUmMBptgQhGjsyYqc9ae9XFz280948NMBWInljyzsNRFLPWdnZGWrddDsjK1unuSrVN9jJsK8KuQtQCtMBjCEtImISdNKJOopIpBFpNSMbIHCSRpRR5iakjTiyzLhchUUBwCgyKiweBv/7UsQbg8isVNoMPMjAAAA0gAAABEVFGmgqK////9bP/6XCykxBTUUzLjEwMKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq",ve.DEFAULT_OPTIONS=Object.freeze({cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,bellSound:ve.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:E.isMac,rendererType:"canvas",windowOptions:{},windowsMode:!1,wordSeparator:" ()[]{}',\"`",convertEol:!1,termName:"xterm",cancelEvents:!1});var de=["cols","rows"],se=function(){function ne(ie){this._onOptionChange=new _e.EventEmitter,this.options=pe.clone(ve.DEFAULT_OPTIONS);for(var ce=0,ue=Object.keys(ie);ce=0;te--)(x=re[te])&&(z=(b<3?x(z):b>3?x(ee,a,z):x(ee,a))||z);return b>3&&z&&Object.defineProperty(ee,a,z),z},de=this&&this.__param||function(re,ee){return function(a,y){ee(a,y,re)}};Object.defineProperty(ve,"__esModule",{value:!0}),ve.CoreService=void 0;var se=be(1),ne=be(0),ie=be(33),ce=be(2),ue=Object.freeze({insertMode:!1}),ae=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0}),oe=function(re){function ee(a,y,x,b){var z=re.call(this)||this;return z._bufferService=y,z._logService=x,z._optionsService=b,z.isCursorInitialized=!1,z.isCursorHidden=!1,z._onData=z.register(new ne.EventEmitter),z._onUserInput=z.register(new ne.EventEmitter),z._onBinary=z.register(new ne.EventEmitter),z._scrollToBottom=a,z.register({dispose:function(){return z._scrollToBottom=void 0}}),z.modes=ie.clone(ue),z.decPrivateModes=ie.clone(ae),z}return E(ee,re),Object.defineProperty(ee.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(ee.prototype,"onUserInput",{get:function(){return this._onUserInput.event},enumerable:!1,configurable:!0}),Object.defineProperty(ee.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),ee.prototype.reset=function(){this.modes=ie.clone(ue),this.decPrivateModes=ie.clone(ae)},ee.prototype.triggerDataEvent=function(a,y){if(y===void 0&&(y=!1),!this._optionsService.options.disableStdin){var x=this._bufferService.buffer;x.ybase!==x.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)}},ee.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))},ee=pe([de(1,se.IBufferService),de(2,se.ILogService),de(3,se.IOptionsService)],ee)}(ce.Disposable);ve.CoreService=oe},function(dt,ve,be){"use strict";var _e=this&&this.__decorate||function(ae,oe,re,ee){var a,y=arguments.length,x=y<3?oe:ee===null?ee=Object.getOwnPropertyDescriptor(oe,re):ee;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")x=Reflect.decorate(ae,oe,re,ee);else for(var b=ae.length-1;b>=0;b--)(a=ae[b])&&(x=(y<3?a(x):y>3?a(oe,re,x):a(oe,re))||x);return y>3&&x&&Object.defineProperty(oe,re,x),x},E=this&&this.__param||function(ae,oe){return function(re,ee){oe(re,ee,ae)}};Object.defineProperty(ve,"__esModule",{value:!0}),ve.CoreMouseService=void 0;var pe=be(1),de=be(0),se={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 ne(ae,oe){var re=(ae.ctrl?16:0)|(ae.shift?4:0)|(ae.alt?8:0);return ae.button===4?(re|=64,re|=ae.action):(re|=3&ae.button,4&ae.button&&(re|=64),8&ae.button&&(re|=128),ae.action===32?re|=32:ae.action!==0||oe||(re|=3)),re}var ie=String.fromCharCode,ce={DEFAULT:function(ae){var oe=[ne(ae,!1)+32,ae.col+32,ae.row+32];return oe[0]>255||oe[1]>255||oe[2]>255?"":"\x1B[M"+ie(oe[0])+ie(oe[1])+ie(oe[2])},SGR:function(ae){var oe=ae.action===0&&ae.button!==4?"m":"M";return"\x1B[<"+ne(ae,!0)+";"+ae.col+";"+ae.row+oe}},ue=function(){function ae(oe,re){this._bufferService=oe,this._coreService=re,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._onProtocolChange=new de.EventEmitter,this._lastEvent=null;for(var ee=0,a=Object.keys(se);ee=this._bufferService.cols||oe.row<0||oe.row>=this._bufferService.rows||oe.button===4&&oe.action===32||oe.button===3&&oe.action!==32||oe.button!==4&&(oe.action===2||oe.action===3)||(oe.col++,oe.row++,oe.action===32&&this._lastEvent&&this._compareEvents(this._lastEvent,oe))||!this._protocols[this._activeProtocol].restrict(oe))return!1;var re=this._encodings[this._activeEncoding](oe);return re&&(this._activeEncoding==="DEFAULT"?this._coreService.triggerBinaryEvent(re):this._coreService.triggerDataEvent(re,!0)),this._lastEvent=oe,!0},ae.prototype.explainEvents=function(oe){return{down:!!(1&oe),up:!!(2&oe),drag:!!(4&oe),move:!!(8&oe),wheel:!!(16&oe)}},ae.prototype._compareEvents=function(oe,re){return oe.col===re.col&&oe.row===re.row&&oe.button===re.button&&oe.action===re.action&&oe.ctrl===re.ctrl&&oe.alt===re.alt&&oe.shift===re.shift},ae=_e([E(0,pe.IBufferService),E(1,pe.ICoreService)],ae)}();ve.CoreMouseService=ue},function(dt,ve,be){"use strict";var _e=this&&this.__decorate||function(se,ne,ie,ce){var ue,ae=arguments.length,oe=ae<3?ne:ce===null?ce=Object.getOwnPropertyDescriptor(ne,ie):ce;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")oe=Reflect.decorate(se,ne,ie,ce);else for(var re=se.length-1;re>=0;re--)(ue=se[re])&&(oe=(ae<3?ue(oe):ae>3?ue(ne,ie,oe):ue(ne,ie))||oe);return ae>3&&oe&&Object.defineProperty(ne,ie,oe),oe},E=this&&this.__param||function(se,ne){return function(ie,ce){ne(ie,ce,se)}};Object.defineProperty(ve,"__esModule",{value:!0}),ve.DirtyRowService=void 0;var pe=be(1),de=function(){function se(ne){this._bufferService=ne,this.clearRange()}return Object.defineProperty(se.prototype,"start",{get:function(){return this._start},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"end",{get:function(){return this._end},enumerable:!1,configurable:!0}),se.prototype.clearRange=function(){this._start=this._bufferService.buffer.y,this._end=this._bufferService.buffer.y},se.prototype.markDirty=function(ne){nethis._end&&(this._end=ne)},se.prototype.markRangeDirty=function(ne,ie){if(ne>ie){var ce=ne;ne=ie,ie=ce}nethis._end&&(this._end=ie)},se.prototype.markAllDirty=function(){this.markRangeDirty(0,this._bufferService.rows-1)},se=_e([E(0,pe.IBufferService)],se)}();ve.DirtyRowService=de},function(dt,ve,be){"use strict";Object.defineProperty(ve,"__esModule",{value:!0}),ve.UnicodeService=void 0;var _e=be(0),E=be(79),pe=function(){function de(){this._providers=Object.create(null),this._active="",this._onChange=new _e.EventEmitter;var se=new E.UnicodeV6;this.register(se),this._active=se.version,this._activeProvider=se}return Object.defineProperty(de.prototype,"onChange",{get:function(){return this._onChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"versions",{get:function(){return Object.keys(this._providers)},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"activeVersion",{get:function(){return this._active},set:function(se){if(!this._providers[se])throw new Error('unknown Unicode version "'+se+'"');this._active=se,this._activeProvider=this._providers[se],this._onChange.fire(se)},enumerable:!1,configurable:!0}),de.prototype.register=function(se){this._providers[se.version]=se},de.prototype.wcwidth=function(se){return this._activeProvider.wcwidth(se)},de.prototype.getStringCellWidth=function(se){for(var ne=0,ie=se.length,ce=0;ce=ie)return ne+this.wcwidth(ue);var ae=se.charCodeAt(ce);56320<=ae&&ae<=57343?ue=1024*(ue-55296)+ae-56320+65536:ne+=this.wcwidth(ae)}ne+=this.wcwidth(ue)}return ne},de}();ve.UnicodeService=pe},function(dt,ve,be){"use strict";Object.defineProperty(ve,"__esModule",{value:!0}),ve.UnicodeV6=void 0;var _e,E=be(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]],de=[[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]],se=function(){function ne(){if(this.version="6",!_e){_e=new Uint8Array(65536),E.fill(_e,1),_e[0]=0,E.fill(_e,0,1,32),E.fill(_e,0,127,160),E.fill(_e,2,4352,4448),_e[9001]=2,_e[9002]=2,E.fill(_e,2,11904,42192),_e[12351]=1,E.fill(_e,2,44032,55204),E.fill(_e,2,63744,64256),E.fill(_e,2,65040,65050),E.fill(_e,2,65072,65136),E.fill(_e,2,65280,65377),E.fill(_e,2,65504,65511);for(var ie=0;ieue[re][1])return!1;for(;re>=oe;)if(ce>ue[ae=oe+re>>1][1])oe=ae+1;else{if(!(ce=131072&&ie<=196605||ie>=196608&&ie<=262141?2:1},ne}();ve.UnicodeV6=se},function(dt,ve,be){"use strict";Object.defineProperty(ve,"__esModule",{value:!0}),ve.CharsetService=void 0;var _e=function(){function E(){this.glevel=0,this._charsets=[]}return E.prototype.reset=function(){this.charset=void 0,this._charsets=[],this.glevel=0},E.prototype.setgLevel=function(pe){this.glevel=pe,this.charset=this._charsets[pe]},E.prototype.setgCharset=function(pe,de){this._charsets[pe]=de,this.glevel===pe&&(this.charset=de)},E}();ve.CharsetService=_e},function(dt,ve,be){"use strict";Object.defineProperty(ve,"__esModule",{value:!0}),ve.updateWindowsModeWrappedState=void 0;var _e=be(3);ve.updateWindowsModeWrappedState=function(E){var pe=E.buffer.lines.get(E.buffer.ybase+E.buffer.y-1),de=pe==null?void 0:pe.get(E.cols-1),se=E.buffer.lines.get(E.buffer.ybase+E.buffer.y);se&&de&&(se.isWrapped=de[_e.CHAR_DATA_CODE_INDEX]!==_e.NULL_CELL_CODE&&de[_e.CHAR_DATA_CODE_INDEX]!==_e.WHITESPACE_CELL_CODE)}},function(dt,ve,be){"use strict";Object.defineProperty(ve,"__esModule",{value:!0}),ve.WriteBuffer=void 0;var _e=function(){function E(pe){this._action=pe,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0}return E.prototype.writeSync=function(pe){if(this._writeBuffer.length){for(var de=this._bufferOffset;de5e7)throw new Error("write data discarded, use flow control to avoid losing data");this._writeBuffer.length||(this._bufferOffset=0,setTimeout(function(){return se._innerWrite()})),this._pendingData+=pe.length,this._writeBuffer.push(pe),this._callbacks.push(de)},E.prototype._innerWrite=function(){for(var pe=this,de=Date.now();this._writeBuffer.length>this._bufferOffset;){var se=this._writeBuffer[this._bufferOffset],ne=this._callbacks[this._bufferOffset];if(this._bufferOffset++,this._action(se),this._pendingData-=se.length,ne&&ne(),Date.now()-de>=12)break}this._writeBuffer.length>this._bufferOffset?(this._bufferOffset>50&&(this._writeBuffer=this._writeBuffer.slice(this._bufferOffset),this._callbacks=this._callbacks.slice(this._bufferOffset),this._bufferOffset=0),setTimeout(function(){return pe._innerWrite()},0)):(this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0)},E}();ve.WriteBuffer=_e},function(dt,ve,be){"use strict";Object.defineProperty(ve,"__esModule",{value:!0}),ve.AddonManager=void 0;var _e=function(){function E(){this._addons=[]}return E.prototype.dispose=function(){for(var pe=this._addons.length-1;pe>=0;pe--)this._addons[pe].instance.dispose()},E.prototype.loadAddon=function(pe,de){var se=this,ne={instance:de,dispose:de.dispose,isDisposed:!1};this._addons.push(ne),de.dispose=function(){return se._wrappedAddonDispose(ne)},de.activate(pe)},E.prototype._wrappedAddonDispose=function(pe){if(!pe.isDisposed){for(var de=-1,se=0;se