|
|
(self.webpackChunk=self.webpackChunk||[]).push([[6419],{89489:function(_t,ft,ye){"use strict";ye.d(ft,{Z:function(){return se}});var we=ye(32855),Ee=ye(59301),x={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=x,de=ye(7657),ae=function(ue,ie){return Ee.createElement(de.Z,(0,we.Z)({},ue,{ref:ie,icon:pe}))},ne=Ee.forwardRef(ae),se=ne},59477:function(_t,ft,ye){"use strict";ye.d(ft,{Z:function(){return se}});var we=ye(32855),Ee=ye(59301),x={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=x,de=ye(7657),ae=function(ue,ie){return Ee.createElement(de.Z,(0,we.Z)({},ue,{ref:ie,icon:pe}))},ne=Ee.forwardRef(ae),se=ne},26227:function(_t,ft,ye){"use strict";ye.d(ft,{Z:function(){return se}});var we=ye(32855),Ee=ye(59301),x={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=x,de=ye(7657),ae=function(ue,ie){return Ee.createElement(de.Z,(0,we.Z)({},ue,{ref:ie,icon:pe}))},ne=Ee.forwardRef(ae),se=ne},49198:function(_t,ft,ye){"use strict";ye.d(ft,{Z:function(){return se}});var we=ye(32855),Ee=ye(59301),x={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=x,de=ye(7657),ae=function(ue,ie){return Ee.createElement(de.Z,(0,we.Z)({},ue,{ref:ie,icon:pe}))},ne=Ee.forwardRef(ae),se=ne},41464:function(_t,ft,ye){"use strict";ye.d(ft,{Z:function(){return se}});var we=ye(32855),Ee=ye(59301),x={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=x,de=ye(7657),ae=function(ue,ie){return Ee.createElement(de.Z,(0,we.Z)({},ue,{ref:ie,icon:pe}))},ne=Ee.forwardRef(ae),se=ne},87169:function(_t,ft,ye){"use strict";ye.d(ft,{Z:function(){return se}});var we=ye(32855),Ee=ye(59301),x={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=x,de=ye(7657),ae=function(ue,ie){return Ee.createElement(de.Z,(0,we.Z)({},ue,{ref:ie,icon:pe}))},ne=Ee.forwardRef(ae),se=ne},52671:function(_t,ft,ye){"use strict";ye.d(ft,{Z:function(){return se}});var we=ye(32855),Ee=ye(59301),x={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=x,de=ye(7657),ae=function(ue,ie){return Ee.createElement(de.Z,(0,we.Z)({},ue,{ref:ie,icon:pe}))},ne=Ee.forwardRef(ae),se=ne},8657:function(_t,ft,ye){"use strict";ye.d(ft,{Z:function(){return se}});var we=ye(32855),Ee=ye(59301),x={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=x,de=ye(7657),ae=function(ue,ie){return Ee.createElement(de.Z,(0,we.Z)({},ue,{ref:ie,icon:pe}))},ne=Ee.forwardRef(ae),se=ne},56082:function(_t,ft,ye){"use strict";ye.d(ft,{Z:function(){return se}});var we=ye(32855),Ee=ye(59301),x={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=x,de=ye(7657),ae=function(ue,ie){return Ee.createElement(de.Z,(0,we.Z)({},ue,{ref:ie,icon:pe}))},ne=Ee.forwardRef(ae),se=ne},33853:function(_t,ft,ye){"use strict";ye.d(ft,{Z:function(){return se}});var we=ye(32855),Ee=ye(59301),x={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=x,de=ye(7657),ae=function(ue,ie){return Ee.createElement(de.Z,(0,we.Z)({},ue,{ref:ie,icon:pe}))},ne=Ee.forwardRef(ae),se=ne},15075:function(_t,ft,ye){"use strict";ye.d(ft,{Z:function(){return se}});var we=ye(32855),Ee=ye(59301),x={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=x,de=ye(7657),ae=function(ue,ie){return Ee.createElement(de.Z,(0,we.Z)({},ue,{ref:ie,icon:pe}))},ne=Ee.forwardRef(ae),se=ne},43531:function(_t,ft,ye){"use strict";ye.d(ft,{Z:function(){return se}});var we=ye(32855),Ee=ye(59301),x={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=x,de=ye(7657),ae=function(ue,ie){return Ee.createElement(de.Z,(0,we.Z)({},ue,{ref:ie,icon:pe}))},ne=Ee.forwardRef(ae),se=ne},38819:function(_t,ft,ye){"use strict";ye.d(ft,{Z:function(){return se}});var we=ye(32855),Ee=ye(59301),x={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=x,de=ye(7657),ae=function(ue,ie){return Ee.createElement(de.Z,(0,we.Z)({},ue,{ref:ie,icon:pe}))},ne=Ee.forwardRef(ae),se=ne},21697:function(_t,ft){"use strict";ft.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},45298:function(){"use strict"},20397:function(){"use strict";function _t(z,a,y,E){y===void 0&&(y=0),E===void 0&&(E=1/0),this._name=z,this._defaultValue=a,this._minimum=y,this._maximum=E}Object.defineProperty(_t.prototype,"name",{get:function(){return this._name},set:function(z){if(typeof z!="string"||z==="")throw new Error("Shape name must be a valid string.");this._name=z}}),Object.defineProperty(_t.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(z){if(typeof z!="number"||isNaN(z))throw new Error("The default value must be a real number, not: "+z);this._defaultValue=z}}),Object.defineProperty(_t.prototype,"minimum",{get:function(){return this._minimum},set:function(z){if(typeof z!="number"||isNaN(z))throw new Error("Minimum must be a real number, not: "+z);this._minimum=z}}),Object.defineProperty(_t.prototype,"maximum",{get:function(){return this._maximum},set:function(z){if(typeof z!="number"||isNaN(z))throw new Error("Maximum must be a real number, not: "+z);this._maximum=z}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(z,a){var y=go.Shape._FigureParameters[z];return y?y[a]:null},go.Shape.setFigureParameter=function(z,a,y){if(!(y instanceof _t))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+y);if(y.defaultValue<y.minimum||y.defaultValue>y.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+y.defaultValue);var E=go.Shape._FigureParameters[z];E||(E=[],go.Shape._FigureParameters[z]=E),E[a]=y};var ft=[];function ye(z,a){var y=ft.pop();return y===void 0?new go.Point(z,a):(y.x=z,y.y=a,y)}function we(){var z=ft.pop();return z===void 0?new go.Point:z}function Ee(z){ft.push(z)}function x(z,a,y,E,b,ee,te,le,fe){fe||(fe=new go.Point);var he=z-y,me=b-te,ge=NaN,Se=NaN;if(he===0)if(me===0)z===y&&(ge=z,Se=a);else{var ve=(ee-le)/me,be=ee-ve*b;ge=z,Se=ve*ge+be}else if(me===0){var Pe=(a-E)/he,Te=a-Pe*z;ge=b,Se=Pe*ge+Te}else{var Pe=(a-E)/he,ve=(ee-le)/me,Te=a-Pe*z,be=ee-ve*b;ge=(be-Te)/(Pe-ve),Se=Pe*ge+Te}return fe.x=ge,fe.y=Se,fe}function pe(z,a,y,E,b,ee,te,le,fe,he,me,ge,Se,ve){var be=1-fe,Pe=fe,Te=z*be+y*Pe,_e=a*be+E*Pe,je=y*be+b*Pe,Ce=E*be+ee*Pe,Ie=b*be+te*Pe,ke=ee*be+le*Pe,$e=Te*be+je*Pe,Ne=_e*be+Ce*Pe,nt=je*be+Ie*Pe,qe=Ce*be+ke*Pe,Je=$e*be+nt*Pe,Ye=Ne*be+qe*Pe;he.x=Te,he.y=_e,me.x=$e,me.y=Ne,ge.x=Je,ge.y=Ye,Se.x=nt,Se.y=qe,ve.x=Ie,ve.y=ke}var de=new go.Spot(.156,.156),ae=new go.Spot(.844,.844),ne=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new _t("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(z,a,y){var E=z?z.parameter1:NaN;(isNaN(E)||E<0)&&(E=5),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*ne,ee=new go.Geometry().add(new go.PathFigure(E,0,!0).add(new go.PathSegment(go.PathSegment.Line,a-E,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-b,0,a,b)).add(new go.PathSegment(go.PathSegment.Line,a,y-E)).add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,y-b,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,E,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,b,y,0,y-b)).add(new go.PathSegment(go.PathSegment.Line,0,E)).add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,b,b,0).close()));return b>1&&(ee.spot1=new go.Spot(0,0,b,b),ee.spot2=new go.Spot(1,1,-b,-b)),ee}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(z,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(z,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(z,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(z,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(z,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(z,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=y/2,E.endX=a,E.endY=y/2,E}),go.Shape.defineFigureGenerator("LineV",function(z,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=a/2,E.startY=0,E.endX=a/2,E.endY=y,E}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(z,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(z,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(z,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(z,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(z,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(z,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(z,a,y){var E=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(E*a,(1-E)*y,!1).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,E*y)).add(new go.PathSegment(go.PathSegment.Move,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Move,0,y/2)).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("CircleLine",function(z,a,y){var E=a/2,b=new go.Geometry().add(new go.PathFigure(a,a/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,E,E,E,E).close()));return b.spot1=de,b.spot2=ae,b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Line1",function(z,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}),go.Shape.defineFigureGenerator("Line2",function(z,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=a,E.startY=0,E.endX=0,E.endY=y,E}),go.Shape.defineFigureGenerator("Curve1",function(z,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(z,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(z,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(z,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(z,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(z,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(z,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(z,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 _t("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(z,a,y){var E=z?z.parameter1:NaN;isNaN(E)?E=.1:E<-1?E=-1:E>1&&(E=1);var b=Math.abs(E)*a;if(E===0){var ee=new go.Geometry(go.Geometry.Rectangle);return ee.startX=0,ee.startY=0,ee.endX=a,ee.endY=y,ee}else{var ee=new go.Geometry;return E>0?ee.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())):ee.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&ee.setSpots(b/a,0,(a-b)/a,1),ee}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new _t("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(z,a,y){var E=z?z.parameter1:NaN;isNaN(E)?E=10:E<-a?E=-a:E>a&&(E=a);var b=Math.abs(E);if(E===0){var ee=new go.Geometry(go.Geometry.Rectangle);return ee.startX=0,ee.startY=0,ee.endX=a,ee.endY=y,ee}else{var ee=new go.Geometry;return E>0?ee.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())):ee.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&ee.setSpots(b/a,0,(a-b)/a,1),ee}}),go.Shape.setFigureParameter("Trapezoid1",0,new _t("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(z,a,y){var E=z?z.parameter1:NaN;isNaN(E)?E=.2:E<.5?E=-.5:E>.5&&(E=.5);var b=Math.abs(E)*a;if(E===0){var ee=new go.Geometry(go.Geometry.Rectangle);return ee.startX=0,ee.startY=0,ee.endX=a,ee.endY=y,ee}else{var ee=new go.Geometry;return E>0?ee.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())):ee.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&ee.setSpots(b/a,0,(a-b)/a,1),ee}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new _t("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(z,a,y){var E=z?z.parameter1:NaN;isNaN(E)?E=20:E<-a?E=-a/2:E>a&&(E=a/2);var b=Math.abs(E);if(E===0){var ee=new go.Geometry(go.Geometry.Rectangle);return ee.startX=0,ee.startY=0,ee.endX=a,ee.endY=y,ee}else{var ee=new go.Geometry;return E>0?ee.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())):ee.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&ee.setSpots(b/a,0,(a-b)/a,1),ee}}),go.Shape.setFigureParameter("ManualOperation",0,new _t("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(z,a,y){var E=z?z.parameter1:NaN;isNaN(E)?E=10:E<-a?E=-a/2:E>a&&(E=a/2);var b=Math.abs(E);if(E===0){var ee=new go.Geometry(go.Geometry.Rectangle);return ee.startX=0,ee.startY=0,ee.endX=a,ee.endY=y,ee}else{var ee=new go.Geometry;return E>0?ee.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())):ee.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())),b<a/2&&ee.setSpots(b/a,0,(a-b)/a,1),ee}});var se=[];function ce(){var z=se.pop();return z===void 0?[]:z}function ue(z){z.length=0,se.push(z)}function ie(z){for(var a=ce(),y=.5,E=.5,b=Math.PI*1.5,ee=0,te=0;te<z;te++)ee=2*Math.PI/z*te+b,a[te]=new go.Point(E+y*Math.cos(ee),E+y*Math.sin(ee));return a.push(a[0]),a}function oe(z){var a=re(z),y=ce();y[0]=a[0];for(var E=1,b=1;E<a.length;E+=2,b+=3)y[b]=a[E],y[b+1]=a[E],y[b+2]=a[E+1];return ue(a),y}function re(z){for(var a=ie(z),y=ce(),E=Math.floor(a.length/2),b=a.length-1,ee=z%2===0?2:1,te=0;te<b;te++){var le=a[te],fe=a[te+1],he=a[(E+te-1)%b],me=a[(E+te+ee)%b];y[te*2]=le,y[te*2+1]=x(le.x,le.y,he.x,he.y,fe.x,fe.y,me.x,me.y,new go.Point)}return y[y.length]=y[0],ue(a),y}go.Shape.defineFigureGenerator("Pentagon",function(z,a,y){var E=ie(5),b=new go.Geometry,ee=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(ee);for(var te=1;te<5;te++)ee.add(new go.PathSegment(go.PathSegment.Line,E[te].x*a,E[te].y*y));return ee.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),ue(E),b.spot1=new go.Spot(.2,.22),b.spot2=new go.Spot(.8,.9),b}),go.Shape.defineFigureGenerator("Hexagon",function(z,a,y){var E=ie(6),b=new go.Geometry,ee=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(ee);for(var te=1;te<6;te++)ee.add(new go.PathSegment(go.PathSegment.Line,E[te].x*a,E[te].y*y));return ee.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),ue(E),b.spot1=new go.Spot(.07,.25),b.spot2=new go.Spot(.93,.75),b}),go.Shape.defineFigureGenerator("Heptagon",function(z,a,y){var E=ie(7),b=new go.Geometry,ee=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(ee);for(var te=1;te<7;te++)ee.add(new go.PathSegment(go.PathSegment.Line,E[te].x*a,E[te].y*y));return ee.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),ue(E),b.spot1=new go.Spot(.2,.15),b.spot2=new go.Spot(.8,.85),b}),go.Shape.defineFigureGenerator("Octagon",function(z,a,y){var E=ie(8),b=new go.Geometry,ee=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(ee);for(var te=1;te<8;te++)ee.add(new go.PathSegment(go.PathSegment.Line,E[te].x*a,E[te].y*y));return ee.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),ue(E),b.spot1=new go.Spot(.15,.15),b.spot2=new go.Spot(.85,.85),b}),go.Shape.defineFigureGenerator("Nonagon",function(z,a,y){var E=ie(9),b=new go.Geometry,ee=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(ee);for(var te=1;te<9;te++)ee.add(new go.PathSegment(go.PathSegment.Line,E[te].x*a,E[te].y*y));return ee.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),ue(E),b.spot1=new go.Spot(.17,.13),b.spot2=new go.Spot(.82,.82),b}),go.Shape.defineFigureGenerator("Decagon",function(z,a,y){var E=ie(10),b=new go.Geometry,ee=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(ee);for(var te=1;te<10;te++)ee.add(new go.PathSegment(go.PathSegment.Line,E[te].x*a,E[te].y*y));return ee.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),ue(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("Dodecagon",function(z,a,y){var E=ie(12),b=new go.Geometry,ee=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(ee);for(var te=1;te<12;te++)ee.add(new go.PathSegment(go.PathSegment.Line,E[te].x*a,E[te].y*y));return ee.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),ue(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("FivePointedStar",function(z,a,y){var E=re(5),b=new go.Geometry,ee=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(ee);for(var te=1;te<10;te++)ee.add(new go.PathSegment(go.PathSegment.Line,E[te].x*a,E[te].y*y));return ee.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),ue(E),b.spot1=new go.Spot(.266,.333),b.spot2=new go.Spot(.733,.733),b}),go.Shape.defineFigureGenerator("SixPointedStar",function(z,a,y){var E=re(6),b=new go.Geometry,ee=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(ee);for(var te=1;te<12;te++)ee.add(new go.PathSegment(go.PathSegment.Line,E[te].x*a,E[te].y*y));return ee.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),ue(E),b.spot1=new go.Spot(.17,.25),b.spot2=new go.Spot(.83,.75),b}),go.Shape.defineFigureGenerator("SevenPointedStar",function(z,a,y){var E=re(7),b=new go.Geometry,ee=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(ee);for(var te=1;te<14;te++)ee.add(new go.PathSegment(go.PathSegment.Line,E[te].x*a,E[te].y*y));return ee.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),ue(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("EightPointedStar",function(z,a,y){var E=re(8),b=new go.Geometry,ee=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(ee);for(var te=1;te<16;te++)ee.add(new go.PathSegment(go.PathSegment.Line,E[te].x*a,E[te].y*y));return ee.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),ue(E),b.spot1=new go.Spot(.25,.25),b.spot2=new go.Spot(.75,.75),b}),go.Shape.defineFigureGenerator("NinePointedStar",function(z,a,y){var E=re(9),b=new go.Geometry,ee=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(ee);for(var te=1;te<18;te++)ee.add(new go.PathSegment(go.PathSegment.Line,E[te].x*a,E[te].y*y));return ee.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),ue(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("TenPointedStar",function(z,a,y){var E=re(10),b=new go.Geometry,ee=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(ee);for(var te=1;te<20;te++)ee.add(new go.PathSegment(go.PathSegment.Line,E[te].x*a,E[te].y*y));return ee.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),ue(E),b.spot1=new go.Spot(.281,.261),b.spot2=new go.Spot(.723,.748),b}),go.Shape.defineFigureGenerator("FivePointedBurst",function(z,a,y){var E=oe(5),b=new go.Geometry,ee=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(ee);for(var te=1;te<E.length;te+=3)ee.add(new go.PathSegment(go.PathSegment.Bezier,E[te+2].x*a,E[te+2].y*y,E[te].x*a,E[te].y*y,E[te+1].x*a,E[te+1].y*y));return ee.segments.last().close(),ue(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("SixPointedBurst",function(z,a,y){var E=oe(6),b=new go.Geometry,ee=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(ee);for(var te=1;te<E.length;te+=3)ee.add(new go.PathSegment(go.PathSegment.Bezier,E[te+2].x*a,E[te+2].y*y,E[te].x*a,E[te].y*y,E[te+1].x*a,E[te+1].y*y));return ee.segments.last().close(),ue(E),b.spot1=new go.Spot(.17,.222),b.spot2=new go.Spot(.833,.777),b}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(z,a,y){var E=oe(7),b=new go.Geometry,ee=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(ee);for(var te=1;te<E.length;te+=3)ee.add(new go.PathSegment(go.PathSegment.Bezier,E[te+2].x*a,E[te+2].y*y,E[te].x*a,E[te].y*y,E[te+1].x*a,E[te+1].y*y));return ee.segments.last().close(),ue(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("EightPointedBurst",function(z,a,y){var E=oe(8),b=new go.Geometry,ee=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(ee);for(var te=1;te<E.length;te+=3)ee.add(new go.PathSegment(go.PathSegment.Bezier,E[te+2].x*a,E[te+2].y*y,E[te].x*a,E[te].y*y,E[te+1].x*a,E[te+1].y*y));return ee.segments.last().close(),ue(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("NinePointedBurst",function(z,a,y){var E=oe(9),b=new go.Geometry,ee=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(ee);for(var te=1;te<E.length;te+=3)ee.add(new go.PathSegment(go.PathSegment.Bezier,E[te+2].x*a,E[te+2].y*y,E[te].x*a,E[te].y*y,E[te+1].x*a,E[te+1].y*y));return ee.segments.last().close(),ue(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("TenPointedBurst",function(z,a,y){var E=oe(10),b=new go.Geometry,ee=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(ee);for(var te=1;te<E.length;te+=3)ee.add(new go.PathSegment(go.PathSegment.Bezier,E[te+2].x*a,E[te+2].y*y,E[te].x*a,E[te].y*y,E[te+1].x*a,E[te+1].y*y));return ee.segments.last().close(),ue(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new _t("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new _t("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(z,a,y){var E=z?z.parameter1:NaN,b=z?z.parameter2:NaN;isNaN(E)&&(E=8),isNaN(b)&&(b=8);var ee=new go.Geometry,te=new go.PathFigure(0,0,!0);return ee.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()),E<a/2&&b<y/2&&(te.add(new go.PathSegment(go.PathSegment.Move,E,b)),te.add(new go.PathSegment(go.PathSegment.Line,E,y-b)),te.add(new go.PathSegment(go.PathSegment.Line,a-E,y-b)),te.add(new go.PathSegment(go.PathSegment.Line,a-E,b).close())),ee.setSpots(0,0,1,1,E,b,-E,-b),ee}),go.Shape.setFigureParameter("Ring",0,new _t("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(z,a,y){var E=z?z.parameter1:NaN;(isNaN(E)||E<0)&&(E=8);var b=a/2,ee=new go.Geometry,te=new go.PathFigure(a,a/2,!0);ee.add(te),te.add(new go.PathSegment(go.PathSegment.Arc,0,360,b,b,b,b).close());var le=Math.max(b-E,0);return le>0&&(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())),ee.spot1=de,ee.spot2=ae,ee.defaultStretch=go.GraphObject.Uniform,ee}),go.Shape.defineFigureGenerator("Cloud",function(z,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(z,a,y){var E=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(E*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,E*y)).add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Line,E*a,y)).add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,0,E*y).close())).setSpots(E/2,E/2,1-E/2,1-E/2)}),go.Shape.setFigureParameter("Pie",0,new _t("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new _t("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(z,a,y){var E=z?z.parameter1:NaN,b=z?z.parameter2:NaN;isNaN(E)&&(E=0),isNaN(b)&&(b=315);var ee=E%360;ee<0&&(ee+=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,ee,te,le,le,le,le).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(z,a,y){var E=ne/Math.SQRT2*.5,b=Math.SQRT2/2,ee=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,b*a,ee*y,a,(1-E)*y,(b+E)*a,(ee+E)*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()))}),go.Shape.setFigureParameter("ThickCross",0,new _t("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(z,a,y){var E=z?z.parameter1:NaN;(isNaN(E)||E<0)&&(E=30);var b=Math.min(E,a)/2,ee=a/2,te=y/2;return new go.Geometry().add(new go.PathFigure(ee-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,ee+b,0)).add(new go.PathSegment(go.PathSegment.Line,ee+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,ee+b,te+b)).add(new go.PathSegment(go.PathSegment.Line,ee+b,y)).add(new go.PathSegment(go.PathSegment.Line,ee-b,y)).add(new go.PathSegment(go.PathSegment.Line,ee-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,ee-b,te-b).close()))}),go.Shape.setFigureParameter("ThinCross",0,new _t("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(z,a,y){var E=z?z.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=Math.min(E,a)/2,ee=a/2,te=y/2;return new go.Geometry().add(new go.PathFigure(ee-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,ee+b,0)).add(new go.PathSegment(go.PathSegment.Line,ee+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,ee+b,te+b)).add(new go.PathSegment(go.PathSegment.Line,ee+b,y)).add(new go.PathSegment(go.PathSegment.Line,ee-b,y)).add(new go.PathSegment(go.PathSegment.Line,ee-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,ee-b,te-b).close()))}),go.Shape.setFigureParameter("ThickX",0,new _t("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(z,a,y){var E=z?z.parameter1:NaN;if((isNaN(E)||E<0)&&(E=30),a===0||y===0){var b=new go.Geometry(go.Geometry.Rectangle);return b.startX=0,b.startY=0,b.endX=a,b.endY=y,b}else{var ee=a/2,te=y/2,le=Math.atan2(y,a),fe=E-Math.min(Math.cos(le)*E/2,ee),he=E-Math.min(Math.sin(le)*E/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,ee,.2*y)),me.add(new go.PathSegment(go.PathSegment.Line,a-fe,0)),me.add(new go.PathSegment(go.PathSegment.Line,a,he)),me.add(new go.PathSegment(go.PathSegment.Line,.8*a,te)),me.add(new go.PathSegment(go.PathSegment.Line,a,y-he)),me.add(new go.PathSegment(go.PathSegment.Line,a-fe,y)),me.add(new go.PathSegment(go.PathSegment.Line,ee,.8*y)),me.add(new go.PathSegment(go.PathSegment.Line,fe,y)),me.add(new go.PathSegment(go.PathSegment.Line,0,y-he)),me.add(new go.PathSegment(go.PathSegment.Line,.2*a,te)),me.add(new go.PathSegment(go.PathSegment.Line,0,he).close()),b}}),go.Shape.setFigureParameter("ThinX",0,new _t("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(z,a,y){var E=z?z.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=new go.Geometry,ee=new go.PathFigure(.1*a,0,!0);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.6*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.1*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.9*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.1*y).close()),b}),go.Shape.setFigureParameter("SquareIBeam",0,new _t("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(z,a,y){var E=z?z.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,ee=new go.PathFigure(0,0,!0);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,a,E*y)),ee.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*a,E*y)),ee.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*a,(1-E)*y)),ee.add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*y)),ee.add(new go.PathSegment(go.PathSegment.Line,a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*y)),ee.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*a,(1-E)*y)),ee.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*a,E*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E*y).close()),b}),go.Shape.setFigureParameter("RoundedIBeam",0,new _t("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(z,a,y){var E=z?z.parameter1:NaN;isNaN(E)&&(E=.5);var b=new go.Geometry,ee=new go.PathFigure(0,0,!0);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,y,Math.abs(1-E)*a,.25*y,Math.abs(1-E)*a,.75*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*a,.75*y,E*a,.25*y).close()),b}),go.Shape.defineFigureGenerator("HalfEllipse",function(z,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(z,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(z,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(z,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(z,a,y){var E=new go.Geometry,b=new go.PathFigure(.4*a,.6*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.15*a,y,.5*a,.75*y,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.6*y,.55*a,.95*y,.5*a,.75*y));var ee=.2,te=.3,le=0,fe=ee*ne;return b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+te)*a,(.5+ee+le)*y,(.5-ee+te)*a,(.5+fe+le)*y,(.5-fe+te)*a,(.5+ee+le)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+ee+te)*a,(.5+le)*y,(.5+fe+te)*a,(.5+ee+le)*y,(.5+ee+te)*a,(.5+fe+le)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+te)*a,(.5-ee+le)*y,(1-.5+ee+te)*a,(.5-fe+le)*y,(.5+fe+te)*a,(.5-ee+le)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.65*a,.36771243*y,(.5-fe+te)*a,(.5-ee+le)*y,(.5-ee+te+.05)*a,(.5-fe+le-.02)*y)),ee=.2,te=0,le=-.3,fe=ee*ne,b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+ee+te)*a,(.5+le)*y,(.5+fe+te)*a,(.5+ee+le)*y,(.5+ee+te)*a,(.5+fe+le)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+te)*a,(.5-ee+le)*y,(1-.5+ee+te)*a,(.5-fe+le)*y,(.5+fe+te)*a,(.5-ee+le)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ee+te)*a,(.5+le)*y,(.5-fe+te)*a,(.5-ee+le)*y,(.5-ee+te)*a,(.5-fe+le)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-fe+te)*a,(.5+ee+le)*y,(.5-ee+te)*a,(.5+fe+le)*y,(.5-fe+te)*a,(.5+ee+le)*y)),ee=.2,te=-.3,le=0,fe=ee*ne,b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+te)*a,(.5-ee+le)*y,(1-.5+ee+te-.05)*a,(.5-fe+le-.02)*y,(.5+fe+te)*a,(.5-ee+le)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ee+te)*a,(.5+le)*y,(.5-fe+te)*a,(.5-ee+le)*y,(.5-ee+te)*a,(.5-fe+le)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+te)*a,(.5+ee+le)*y,(.5-ee+te)*a,(.5+fe+le)*y,(.5-fe+te)*a,(.5+ee+le)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.6*y,(.5+fe+te)*a,(.5+ee+le)*y,(.5+ee+te)*a,(.5+fe+le)*y).close()),E.setSpots(.06,.33,.93,.68),E}),go.Shape.defineFigureGenerator("YinYang",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.5,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*.5,a*.5,a*.5,a*.5)),b.add(new go.PathSegment(go.PathSegment.Arc,90,-180,a*.5,a*.75,a*.25,a*.25)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,a*.5,a*.25,a*.25,a*.25));var ee=.1,te=.5,le=.25;return b.add(new go.PathSegment(go.PathSegment.Move,(te+ee)*a,le*y)),b.add(new go.PathSegment(go.PathSegment.Arc,0,-360,a*te,y*le,ee*a,ee*a).close()),b=new go.PathFigure(a*.5,0,!1),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*.5,a*.5,a*.5,a*.5)),le=.75,b=new go.PathFigure((te+ee)*a,le*y,!0),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,0,360,a*te,y*le,ee*a,ee*a).close()),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Peace",function(z,a,y){var E=.8535533905932737,b=.5*a,ee=.5*y;return new go.Geometry().add(new go.PathFigure(b,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,b,ee,b,ee)).add(new go.PathSegment(go.PathSegment.Line,b,y)).add(new go.PathSegment(go.PathSegment.Move,b,ee)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,E*y)).add(new go.PathSegment(go.PathSegment.Move,b,ee)).add(new go.PathSegment(go.PathSegment.Line,E*a,E*y)))}),go.Shape.defineFigureGenerator("NotAllowed",function(z,a,y){var E=new go.Geometry,b=ne*.5,ee=.5,te=.5,le=.5,fe=new go.PathFigure(te*a,(le-ee)*y);E.add(fe),fe.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a,le*y,(te-b)*a,(le-ee)*y,(te-ee)*a,(le-b)*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(le+ee)*y,(te-ee)*a,(le+b)*y,(te-b)*a,(le+ee)*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a,le*y,(te+b)*a,(le+ee)*y,(te+ee)*a,(le+b)*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(le-ee)*y,(te+ee)*a,(le-b)*y,(te+b)*a,(le-ee)*y)),ee=.4,b=ne*.4;var he=we(),me=we(),ge=we(),Se=we();pe(te,le-ee,te+b,le-ee,te+ee,le-b,te+ee,le,.42,he,me,ge,Se,Se);var ve=we(),be=we(),Pe=we();pe(te,le-ee,te+b,le-ee,te+ee,le-b,te+ee,le,.58,Se,Se,Pe,ve,be);var Te=we(),_e=we(),je=we();pe(te,le+ee,te-b,le+ee,te-ee,le+b,te-ee,le,.42,Te,_e,je,Se,Se);var Ce=we(),Ie=we(),ke=we();return pe(te,le+ee,te-b,le+ee,te-ee,le+b,te-ee,le,.58,Se,Se,ke,Ce,Ie),fe.add(new go.PathSegment(go.PathSegment.Move,ke.x*a,ke.y*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a,le*y,Ce.x*a,Ce.y*y,Ie.x*a,Ie.y*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(le-ee)*y,(te-ee)*a,(le-b)*y,(te-b)*a,(le-ee)*y)),fe.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)),fe.add(new go.PathSegment(go.PathSegment.Line,ke.x*a,ke.y*y).close()),fe.add(new go.PathSegment(go.PathSegment.Move,je.x*a,je.y*y)),fe.add(new go.PathSegment(go.PathSegment.Line,Pe.x*a,Pe.y*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a,le*y,ve.x*a,ve.y*y,be.x*a,be.y*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(le+ee)*y,(te+ee)*a,(le+b)*y,(te+b)*a,(le+ee)*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,je.x*a,je.y*y,Te.x*a,Te.y*y,_e.x*a,_e.y*y).close()),Ee(he),Ee(me),Ee(ge),Ee(Se),Ee(ve),Ee(be),Ee(Pe),Ee(Te),Ee(_e),Ee(je),Ee(Ce),Ee(Ie),Ee(ke),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Fragile",function(z,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 _t("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(z,a,y){var E=z?z.parameter1:NaN;(isNaN(E)||E<0)&&(E=30),E>a&&(E=a);var b=(a-E)/2,ee=b+E;return new go.Geometry().add(new go.PathFigure(ee,.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(z,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(z,a,y){var E=new go.Geometry,b=ne*.4,ee=.4,te=.5,le=.5,fe=we(),he=we(),me=we(),ge=we(),Se=new go.PathFigure((te-ee)*a,le*y,!1);E.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(le-ee)*y,(te-ee)*a,(le-b)*y,(te-b)*a,(le-ee)*y)),pe(te,le-ee,te+b,le-ee,te+ee,le-b,te+ee,le,.44,me,ge,he,fe,fe),Se.add(new go.PathSegment(go.PathSegment.Bezier,he.x*a,he.y*y,me.x*a,me.y*y,ge.x*a,ge.y*y));var ve=ye(he.x,he.y);pe(te,le-ee,te+b,le-ee,te+ee,le-b,te+ee,le,.56,fe,fe,he,me,ge);var be=ye(he.x,he.y);Se.add(new go.PathSegment(go.PathSegment.Line,(ve.x*.1+.95*.9)*a,ve.y*.1*y)),Se.add(new go.PathSegment(go.PathSegment.Line,.85*a,ve.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,(be.x*.1+.9)*a,.15*y)),Se.add(new go.PathSegment(go.PathSegment.Line,(be.x*.1+.9)*a,(be.y*.1+.05*.9)*y)),Se.add(new go.PathSegment(go.PathSegment.Line,be.x*a,be.y*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a,le*y,me.x*a,me.y*y,ge.x*a,ge.y*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(le+ee)*y,(te+ee)*a,(le+b)*y,(te+b)*a,(le+ee)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a,le*y,(te-b)*a,(le+ee)*y,(te-ee)*a,(le+b)*y)),ee=.35,b=ne*.35;var Pe=new go.PathFigure(te*a,(le-ee)*y,!1);E.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a,le*y,(te-b)*a,(le-ee)*y,(te-ee)*a,(le-b)*y)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(le+ee)*y,(te-ee)*a,(le+b)*y,(te-b)*a,(le+ee)*y)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a,le*y,(te+b)*a,(le+ee)*y,(te+ee)*a,(le+b)*y)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(le-ee)*y,(te+ee)*a,(le-b)*y,(te+b)*a,(le-ee)*y));var Te=new go.PathFigure((te-ee)*a,le*y,!1);return E.add(Te),Ee(fe),Ee(he),Ee(me),Ee(ge),Ee(ve),Ee(be),E.spot1=new go.Spot(.202,.257),E.spot2=new go.Spot(.792,.739),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("GenderFemale",function(z,a,y){var E=new go.Geometry,b=.375,ee=0,te=-.125,le=b*ne,fe=new go.PathFigure((.525+ee)*a,(.5+b+te)*y,!1);E.add(fe),fe.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+ee)*a,(.5+te)*y,(.5+le+ee)*a,(.5+b+te)*y,(.5+b+ee)*a,(.5+le+te)*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ee)*a,(.5-b+te)*y,(1-.5+b+ee)*a,(.5-le+te)*y,(.5+le+ee)*a,(.5-b+te)*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+ee)*a,(.5+te)*y,(.5-le+ee)*a,(.5-b+te)*y,(.5-b+ee)*a,(.5-le+te)*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(.475+ee)*a,(.5+b+te)*y,(.5-b+ee)*a,(.5+le+te)*y,(.5-le+ee)*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,ee=0,te=-.125,le=b*ne;var fe=new go.PathFigure((1-.5+b+ee)*a,(.5+te)*y,!1);E.add(fe),fe.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ee)*a,(.5+b+te)*y,(.5+b+ee)*a,(.5+le+te)*y,(.5+le+ee)*a,(.5+b+te)*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+ee)*a,(.5+te)*y,(.5-le+ee)*a,(.5+b+te)*y,(.5-b+ee)*a,(.5+le+te)*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ee)*a,(.5-b+te)*y,(.5-b+ee)*a,(.5-le+te)*y,(.5-le+ee)*a,(.5-b+te)*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+ee)*a,(.5+te)*y,(.5+le+ee)*a,(.5-b+te)*y,(1-.5+b+ee)*a,(.5-le+te)*y));var fe=new go.PathFigure((.525+ee)*a,(.5+b+te)*y,!1);return E.add(fe),E.spot1=new go.Spot(.232,.136),E.spot2=new go.Spot(.682,.611),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicImplies",function(z,a,y){var E=z?z.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(z,a,y){var E=z?z.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,E*a,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,E*a,y))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(z,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(z,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(z,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(z,a,y){var E=new go.Geometry().add(new go.PathFigure(.5*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*a,.5*y,.5*a,.5*y)));return E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicTruth",function(z,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(z,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(z,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(z,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(z,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(z,a,y){var E=.5;return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,0,E*y)).add(new go.PathSegment(go.PathSegment.Arc,180,180,E*a,E*y,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(z,a,y){var E=.5;return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,E*y)).add(new go.PathSegment(go.PathSegment.Arc,0,180,E*a,E*y,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new _t("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new _t("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(z,a,y){var E=z?z.parameter1:NaN;isNaN(E)&&(E=.3);var b=z?z.parameter2:NaN;isNaN(b)&&(b=.3);var ee=(1-E)*a,te=(.5-b/2)*y,le=(.5+b/2)*y,fe=new go.Geometry,he=new go.PathFigure(0,te,!0);fe.add(he),he.add(new go.PathSegment(go.PathSegment.Line,ee,te)),he.add(new go.PathSegment(go.PathSegment.Line,ee,0)),he.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),he.add(new go.PathSegment(go.PathSegment.Line,ee,y)),he.add(new go.PathSegment(go.PathSegment.Line,ee,le)),he.add(new go.PathSegment(go.PathSegment.Line,0,le).close()),fe.spot1=new go.Spot(0,te/y);var me=x(0,le/y,1,le/y,ee/a,1,1,.5,we());return fe.spot2=new go.Spot(me.x,me.y),Ee(me),fe}),go.Shape.setFigureParameter("Arrow2",0,new _t("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new _t("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(z,a,y){var E=z?z.parameter1:NaN;isNaN(E)&&(E=30),E>a&&(E=a);var b=z?z.parameter2:NaN;isNaN(b)&&(b=30),b=Math.min(b,y/2);var ee=a-E,te=(y-b)/2,le=te+b,fe=new go.Geometry,he=new go.PathFigure(0,te,!0);fe.add(he),he.add(new go.PathSegment(go.PathSegment.Line,ee,te)),he.add(new go.PathSegment(go.PathSegment.Line,ee,0)),he.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),he.add(new go.PathSegment(go.PathSegment.Line,ee,y)),he.add(new go.PathSegment(go.PathSegment.Line,ee,le)),he.add(new go.PathSegment(go.PathSegment.Line,0,le).close()),fe.spot1=new go.Spot(0,te/y);var me=x(0,le/y,1,le/y,ee/a,1,1,.5,we());return fe.spot2=new go.Spot(me.x,me.y),Ee(me),fe}),go.Shape.defineFigureGenerator("Chevron",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("DoubleArrow",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.214*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.786*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,1*y).close()),E}),go.Shape.setFigureParameter("DoubleEndArrow",0,new _t("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(z,a,y){var E=z?z.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*y,ee=(.5+E/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,ee)),le.add(new go.PathSegment(go.PathSegment.Line,.3*a,ee)),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=x(0,.5,.3,0,0,b/y,.1,b/y,we());return te.spot1=new go.Spot(fe.x,fe.y),fe=x(.7,1,1,.5,0,ee/y,1,ee/y,fe),te.spot2=new go.Spot(fe.x,fe.y),Ee(fe),te}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new _t("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new _t("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(z,a,y){var E=z?z.parameter1:NaN;isNaN(E)&&(E=40);var b=z?z.parameter2:NaN;isNaN(b)&&(b=100);var ee=(y-E)/2,te=ee+E,le=(y-b)/2,fe=le+b;(E>y||b>y)&&(b>E?(E=E*y/b,ee=(y-E)/2,te=ee+E,le=0,fe=y):(ee=0,te=y,le=0,fe=y));var he=new go.Geometry,me=new go.PathFigure(a,.5*y,!0);he.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,ee)),me.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee)),me.add(new go.PathSegment(go.PathSegment.Line,.7*a,le).close());var ge=x(0,.5,.3,le/y,0,ee/y,1,ee/y,we());return he.spot1=new go.Spot(ge.x,ge.y),ge=x(.7,fe/y,1,.5,0,te/y,1,te/y,ge),he.spot2=new go.Spot(ge.x,ge.y),Ee(ge),he}),go.Shape.setFigureParameter("IBeamArrow",0,new _t("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(z,a,y){var E=z?z.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*y,ee=(.5+E/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,ee)),le.add(new go.PathSegment(go.PathSegment.Line,.2*a,ee)),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=x(.7,1,1,.5,0,ee/y,1,ee/y,we());return te.spot2=new go.Spot(fe.x,fe.y),Ee(fe),te}),go.Shape.setFigureParameter("IBeamArrow2",0,new _t("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new _t("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(z,a,y){var E=z?z.parameter1:NaN;isNaN(E)&&(E=40);var b=z?z.parameter2:NaN;isNaN(b)&&(b=100);var ee=(y-E)/2,te=ee+E,le=(y-b)/2,fe=le+b;(E>y||b>y)&&(b>E?(E=E*y/b,ee=(y-E)/2,te=ee+E,le=0,fe=y):(ee=0,te=y,le=0,fe=y));var he=new go.Geometry,me=new go.PathFigure(a,.5*y,!0);he.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,ee)),me.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee)),me.add(new go.PathSegment(go.PathSegment.Line,.7*a,le).close()),he.spot1=new go.Spot(0,ee/y);var ge=x(.7,fe/y,1,.5,0,te/y,1,te/y,we());return he.spot2=new go.Spot(ge.x,ge.y),Ee(ge),he}),go.Shape.setFigureParameter("Pointer",0,new _t("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(z,a,y){var E=z?z.parameter1:NaN;isNaN(E)&&(E=.1);var b=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,0,y)),ee.add(new go.PathSegment(go.PathSegment.Line,E*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),b.spot1=new go.Spot(E,.35);var te=x(.2,.65,1,.65,0,1,1,.5,we());return b.spot2=new go.Spot(te.x,te.y),Ee(te),b}),go.Shape.setFigureParameter("RoundedPointer",0,new _t("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(z,a,y){var E=z?z.parameter1:NaN;isNaN(E)&&(E=.3);var b=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,0,y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*a,.75*y,E*a,.25*y).close()),b.spot1=new go.Spot(E,.35);var te=x(0,.65,1,.65,0,1,1,.5,we());return b.spot2=new go.Spot(te.x,te.y),Ee(te),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new _t("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(z,a,y){var E=z?z.parameter1:NaN;isNaN(E)&&(E=.4);var b=(.5-E/2)*y,ee=(.5+E/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,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee)),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=x(.7,1,1,.5,0,ee/y,1,ee/y,we());return te.spot2=new go.Spot(fe.x,fe.y),Ee(fe),te}),go.Shape.setFigureParameter("SplitEndArrow2",0,new _t("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(z,a,y){var E=z?z.parameter1:NaN;isNaN(E)&&(E=50);var b=(y-E)/2,ee=b+E;E>y&&(b=0,ee=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,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee)),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=x(.7,1,1,.5,0,ee/y,1,ee/y,we());return te.spot2=new go.Spot(fe.x,fe.y),Ee(fe),te}),go.Shape.setFigureParameter("SquareArrow",0,new _t("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(z,a,y){var E=z?z.parameter1:NaN;isNaN(E)&&(E=.7);var b=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,E*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,0)),ee.add(new go.PathSegment(go.PathSegment.Line,E*a,0).close()),b.spot1=go.Spot.TopLeft,b.spot2=new go.Spot(E,1),b}),go.Shape.defineFigureGenerator("Cone1",function(z,a,y){var E=new go.Geometry,b=ne*.5,ee=ne*.1,te=new go.PathFigure(0,.9*y,!0);return E.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+ee)*y,(.5+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+ee)*y).close()),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.97),E}),go.Shape.defineFigureGenerator("Cone2",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.9*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,y,.85/.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.9*y).close());var ee=new go.PathFigure(0,.9*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,.8*y,.85/.9*a,.8*y)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.82),E}),go.Shape.defineFigureGenerator("Cube1",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var ee=new go.PathFigure(.5*a,y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.5,.85),E}),go.Shape.defineFigureGenerator("Cube2",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.3*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0).close());var ee=new go.PathFigure(0,.3*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Line,a,0)),ee.add(new go.PathSegment(go.PathSegment.Move,.7*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.7,1),E}),go.Shape.defineFigureGenerator("Cylinder1",function(z,a,y){var E=z?z.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,ee=ne*.5,te=new go.PathFigure(0,E,!0);b.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,ne*E,(.5-ee)*a,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,1*a,E,(.5+ee)*a,0,1*a,ne*E)),te.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,1*y,1*a,y-ne*E,(.5+ee)*a,1*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-ee)*a,1*y,0,y-ne*E)),te.add(new go.PathSegment(go.PathSegment.Line,0,E));var le=new go.PathFigure(a,E,!1);return b.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,2*E,1*a,2*E-ne*E,(.5+ee)*a,2*E)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,E,(.5-ee)*a,2*E,0,2*E-ne*E)),b.spot1=new go.Spot(0,0,0,2*E),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder2",function(z,a,y){var E=z?z.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,ee=ne*.5,te=new go.PathFigure(0,y-E,!0);b.add(te),te.add(new go.PathSegment(go.PathSegment.Line,0,E)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,ne*E,(.5-ee)*a,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,E,(.5+ee)*a,0,a,ne*E)),te.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,y-ne*E,(.5+ee)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-ee)*a,y,0,y-ne*E));var le=new go.PathFigure(0,y-E,!1);return b.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y-2*E,0,y-E-ne*E,(.5-ee)*a,y-2*E)),le.add(new go.PathSegment(go.PathSegment.Bezier,a,y-E,(.5+ee)*a,y-2*E,a,y-E-ne*E)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,0,-2*E),b}),go.Shape.defineFigureGenerator("Cylinder3",function(z,a,y){var E=z?z.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,ee=ne*.5,te=new go.PathFigure(E,0,!0);b.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-ne*E,0,a,(.5-ee)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+ee)*y,a-ne*E,y)),te.add(new go.PathSegment(go.PathSegment.Line,E,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,ne*E,y,0,(.5+ee)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-ee)*y,ne*E,0));var le=new go.PathFigure(E,0,!1);return b.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,2*E,.5*y,E+ne*E,0,2*E,(.5-ee)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,E,y,2*E,(.5+ee)*y,E+ne*E,y)),b.spot1=new go.Spot(0,0,2*E,0),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder4",function(z,a,y){var E=z?z.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,ee=ne*.5,te=new go.PathFigure(a-E,0,!0);b.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-ne*E,0,a,(.5-ee)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+ee)*y,a-ne*E,y)),te.add(new go.PathSegment(go.PathSegment.Line,E,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,ne*E,y,0,(.5+ee)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-ee)*y,ne*E,0)),te.add(new go.PathSegment(go.PathSegment.Line,a-E,0));var le=new go.PathFigure(a-E,0,!1);return b.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,a-2*E,.5*y,a-E-ne*E,0,a-2*E,(.5-ee)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a-2*E,(.5+ee)*y,a-E-ne*E,y)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,-2*E,0),b}),go.Shape.defineFigureGenerator("Prism1",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,.25*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var ee=new go.PathFigure(.25*a,.25*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.408,.172),E.spot2=new go.Spot(.833,.662),E}),go.Shape.defineFigureGenerator("Prism2",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.25*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var ee=new go.PathFigure(0,y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("Pyramid1",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y).close());var ee=new go.PathFigure(.5*a,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Pyramid2",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var ee=new go.PathFigure(.5*a,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.85*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),ee.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Actor",function(z,a,y){var E=new go.Geometry,b=.2,ee=.1,te=ne*b,le=ne*ee,fe=.5,he=.1,me=new go.PathFigure(fe*a,(he+ee)*y,!0);E.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,(fe-b)*a,he*y,(fe-te)*a,(he+ee)*y,(fe-b)*a,(he+le)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,fe*a,(he-ee)*y,(fe-b)*a,(he-le)*y,(fe-te)*a,(he-ee)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(fe+b)*a,he*y,(fe+te)*a,(he-ee)*y,(fe+b)*a,(he-le)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,fe*a,(he+ee)*y,(fe+b)*a,(he+le)*y,(fe+te)*a,(he+ee)*y));var ge=.05,Se=ne*ge;fe=.05,he=.25;var ve=new go.PathFigure(.5*a,.2*y,!0);return E.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*y)),fe=.95,he=.25,ve.add(new go.PathSegment(go.PathSegment.Bezier,(fe+ge)*a,he*y,(fe+Se)*a,(he-ge)*y,(fe+ge)*a,(he-Se)*y)),ve.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),ve.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),ve.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*y)),ge=.025,Se=ne*ge,fe=.825,he=.35,ve.add(new go.PathSegment(go.PathSegment.Bezier,fe*a,(he-ge)*y,(fe+ge)*a,(he-Se)*y,(fe+Se)*a,(he-ge)*y)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(fe-ge)*a,he*y,(fe-Se)*a,(he-ge)*y,(fe-ge)*a,(he-Se)*y)),ve.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),ve.add(new go.PathSegment(go.PathSegment.Line,.55*a,y)),ve.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y)),ge=.05,Se=ne*ge,fe=.5,he=.7,ve.add(new go.PathSegment(go.PathSegment.Bezier,fe*a,(he-ge)*y,(fe+ge)*a,(he-Se)*y,(fe+Se)*a,(he-ge)*y)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(fe-ge)*a,he*y,(fe-Se)*a,(he-ge)*y,(fe-ge)*a,(he-Se)*y)),ve.add(new go.PathSegment(go.PathSegment.Line,.45*a,y)),ve.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),ve.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*y)),ge=.025,Se=ne*ge,fe=.175,he=.35,ve.add(new go.PathSegment(go.PathSegment.Bezier,fe*a,(he-ge)*y,(fe+ge)*a,(he-Se)*y,(fe+Se)*a,(he-ge)*y)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(fe-ge)*a,he*y,(fe-Se)*a,(he-ge)*y,(fe-ge)*a,(he-Se)*y)),ve.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),ve.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),ve.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),ge=.05,Se=ne*ge,fe=.05,he=.25,ve.add(new go.PathSegment(go.PathSegment.Bezier,fe*a,(he-ge)*y,(fe-ge)*a,(he-Se)*y,(fe-Se)*a,(he-ge)*y)),ve.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),E.spot1=new go.Spot(.2,.2),E.spot2=new go.Spot(.8,.65),E}),go.Shape.setFigureParameter("Card",0,new _t("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(z,a,y){var E=z?z.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,ee=new go.PathFigure(a,0,!0);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E*y)),ee.add(new go.PathSegment(go.PathSegment.Line,E*a,0).close()),b.spot1=new go.Spot(0,E),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("Collate",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y));var ee=new go.PathFigure(.5*a,.5*y,!0);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,.25),E}),go.Shape.defineFigureGenerator("CreateRequest",function(z,a,y){var E=new go.Geometry,b=z?z.parameter1:NaN;isNaN(b)&&(b=.1);var ee=new go.PathFigure(0,0,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var te=new go.PathFigure(0,b*y,!1);return E.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)),E}),go.Shape.defineFigureGenerator("Database",function(z,a,y){var E=new go.Geometry,b=ne*.5,ee=ne*.1,te=new go.PathFigure(a,.1*y,!0);E.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+ee)*y,(.5+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+ee)*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-ee)*y,(.5-b)*a,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-ee)*y));var le=new go.PathFigure(a,.1*y,!1);return E.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+ee)*y,(.5+b)*a,.2*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+ee)*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+ee)*y,(.5+b)*a,.3*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+ee)*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+ee)*y,(.5+b)*a,.4*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,(.5-b)*a,.4*y,0,(.3+ee)*y)),E.spot1=new go.Spot(0,.4),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("DataStorage",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.9*y,.25*a,.1*y).close()),E.spot1=new go.Spot(.226,0),E.spot2=new go.Spot(.81,1),E}),go.Shape.defineFigureGenerator("DiskStorage",function(z,a,y){var E=new go.Geometry,b=ne*.5,ee=ne*.1,te=new go.PathFigure(a,.1*y,!0);E.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+ee)*y,(.5+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+ee)*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-ee)*y,(.5-b)*a,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-ee)*y));var le=new go.PathFigure(a,.1*y,!1);return E.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+ee)*y,(.5+b)*a,.2*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+ee)*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+ee)*y,(.5+b)*a,.3*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+ee)*y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("Display",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close()),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("DividedEvent",function(z,a,y){var E=new go.Geometry,b=z?z.parameter1:NaN;isNaN(b)?b=.2:b<.15&&(b=.15);var ee=ne*.2,te=new go.PathFigure(0,.2*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,0,(.2-ee)*y,(.2-ee)*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+ee)*a,0,a,(.2-ee)*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+ee)*y,(.8+ee)*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-ee)*a,y,0,(.8+ee)*y)),te.add(new go.PathSegment(go.PathSegment.Line,0,.2*y));var le=new go.PathFigure(0,b*y,!1);return E.add(le),le.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),E}),go.Shape.defineFigureGenerator("DividedProcess",function(z,a,y){var E=new go.Geometry,b=z?z.parameter1:NaN;(isNaN(b)||b<.1)&&(b=.1);var ee=new go.PathFigure(0,0,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var te=new go.PathFigure(0,b*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),E}),go.Shape.defineFigureGenerator("Document",function(z,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("ExternalOrganization",function(z,a,y){var E=new go.Geometry,b=z?z.parameter1:NaN;(isNaN(b)||b<.2)&&(b=.2);var ee=new go.PathFigure(0,0,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var te=new go.PathFigure(b*a,0,!1);return E.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)),E}),go.Shape.defineFigureGenerator("ExternalProcess",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var ee=new go.PathFigure(.1*a,.4*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.9*a,.6*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.6*a,.1*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.4*a,.1*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.4*a,.9*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.6*a,.9*y)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("File",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var ee=new go.PathFigure(.75*a,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),ee.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Interrupt",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(a,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y));var ee=new go.PathFigure(a,.5*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,y));var te=new go.PathFigure(a,.5*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("InternalStorage",function(z,a,y){var E=new go.Geometry,b=z?z.parameter1:NaN,ee=z?z.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(ee)&&(ee=.1);var te=new go.PathFigure(0,0,!0);E.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 E.add(le),le.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),le.add(new go.PathSegment(go.PathSegment.Move,0,ee*y)),le.add(new go.PathSegment(go.PathSegment.Line,a,ee*y)),E}),go.Shape.defineFigureGenerator("Junction",function(z,a,y){var E=new go.Geometry,b=1/Math.SQRT2,ee=(1-1/Math.SQRT2)/2,te=ne*.5,le=.5,fe=new go.PathFigure(a,le*y,!0);E.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 he=new go.PathFigure((ee+b)*a,(ee+b)*y,!1);return E.add(he),he.add(new go.PathSegment(go.PathSegment.Line,ee*a,ee*y)),he.add(new go.PathSegment(go.PathSegment.Move,ee*a,(ee+b)*y)),he.add(new go.PathSegment(go.PathSegment.Line,(ee+b)*a,ee*y)),E}),go.Shape.defineFigureGenerator("LinedDocument",function(z,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close());var ee=new go.PathFigure(.1*a,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.1*a,.75*y)),E.spot1=new go.Spot(.1,0),E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("LoopLimit",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MagneticTape",function(z,a,y){var E=new go.Geometry,b=ne*.5,ee=.5,te=new go.PathFigure(.5*a,y,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,0,ee*y,(ee-b)*a,y,0,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,0,0,(ee-b)*y,(ee-b)*a,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,ee*y,(ee+b)*a,0,a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(ee+.1)*a,.9*y,a,(ee+b)*y,(ee+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)),E.spot1=new go.Spot(.15,.15),E.spot2=new go.Spot(.85,.8),E}),go.Shape.defineFigureGenerator("ManualInput",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MessageFromUser",function(z,a,y){var E=new go.Geometry,b=z?z.parameter1:NaN;isNaN(b)&&(b=.7);var ee=new go.PathFigure(0,0,!0);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("MicroformProcessing",function(z,a,y){var E=new go.Geometry,b=z?z.parameter1:NaN;isNaN(b)&&(b=.25);var ee=new go.PathFigure(0,0,!0);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,(1-b)*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("MicroformRecording",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("MultiDocument",function(z,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.44*y,.96*a,.47*y,.93*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.54*y,.86*a,.57*y,.83*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.4*a,.4*y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0).close());var ee=new go.PathFigure(.1*a,.2*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.8*a,.54*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.9*a,.44*y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.8,.77),E}),go.Shape.defineFigureGenerator("MultiProcess",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,.1*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close());var ee=new go.PathFigure(.2*a,.1*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.1*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),E.spot1=new go.Spot(0,.2),E.spot2=new go.Spot(.8,1),E}),go.Shape.defineFigureGenerator("OfflineStorage",function(z,a,y){var E=new go.Geometry,b=z?z.parameter1:NaN;isNaN(b)&&(b=.1);var ee=1-b,te=new go.PathFigure(0,0,!0);E.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 E.add(le),le.add(new go.PathSegment(go.PathSegment.Line,(1-.5*b)*a,b*y)),E}),go.Shape.defineFigureGenerator("OffPageConnector",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("Or",function(z,a,y){var E=new go.Geometry,b=ne*.5,ee=.5,te=new go.PathFigure(a,ee*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,y,a,(ee+b)*y,(ee+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,ee*y,(ee-b)*a,y,0,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,0,0,(ee-b)*y,(ee-b)*a,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,ee*y,(ee+b)*a,0,a,(ee-b)*y));var le=new go.PathFigure(a,.5*y,!1);return E.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)),E}),go.Shape.defineFigureGenerator("PaperTape",function(z,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.3*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.5*a,.6*y,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),E.spot1=new go.Spot(0,.49),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(z,a,y){var E=new go.Geometry,b=z?z.parameter1:NaN,ee=z?z.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(ee)&&(ee=.3);var te=new go.PathFigure(0,0,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a,0)),te.add(new go.PathSegment(go.PathSegment.Line,(1-ee)*a,.5*y)),te.add(new go.PathSegment(go.PathSegment.Line,a,y)),te.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(z,a,y){var E=new go.Geometry,b=z?z.parameter1:NaN,ee=z?z.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(ee)&&(ee=.3);var te=new go.PathFigure(0,0,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,(1-ee)*a,0)),te.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),te.add(new go.PathSegment(go.PathSegment.Line,(1-ee)*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("Procedure",function(z,a,y){var E=new go.Geometry,b=z?z.parameter1:NaN;isNaN(b)&&(b=.1);var ee=new go.PathFigure(0,0,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var te=new go.PathFigure((1-b)*a,0,!1);return E.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)),E}),go.Shape.defineFigureGenerator("Process",function(z,a,y){var E=new go.Geometry,b=z?z.parameter1:NaN;isNaN(b)&&(b=.1);var ee=new go.PathFigure(0,0,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var te=new go.PathFigure(b*a,0,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Sort",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var ee=new go.PathFigure(0,.5*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.5),E}),go.Shape.defineFigureGenerator("Start",function(z,a,y){var E=new go.Geometry,b=z?z.parameter1:NaN;isNaN(b)&&(b=.25);var ee=new go.PathFigure(b*a,0,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),ee.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 E.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)),E.spot1=new go.Spot(b,0),E.spot2=new go.Spot(1-b,1),E}),go.Shape.defineFigureGenerator("Terminator",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y)),E.spot1=new go.Spot(.23,0),E.spot2=new go.Spot(.77,1),E}),go.Shape.defineFigureGenerator("TransmittalTape",function(z,a,y){var E=new go.Geometry,b=z?z.parameter1:NaN;isNaN(b)&&(b=.1);var ee=new go.PathFigure(0,0,!0);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.75*a,(1-b)*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,(1-b)*y).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("AndGate",function(z,a,y){var E=new go.Geometry,b=ne*.5,ee=new go.PathFigure(0,0,!0);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(.5+b)*a,0,a,(.5-b)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.5+b)*y,(.5+b)*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.55,1),E}),go.Shape.defineFigureGenerator("Buffer",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Clock",function(z,a,y){var E=new go.Geometry,b=ne*.5,ee=.5,te=new go.PathFigure(a,ee*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,y,a,(ee+b)*y,(ee+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,ee*y,(ee-b)*a,y,0,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,0,0,(ee-b)*y,(ee-b)*a,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,ee*y,(ee+b)*a,0,a,(ee-b)*y));var le=new go.PathFigure(a,ee*y,!1);E.add(le),le.add(new go.PathSegment(go.PathSegment.Line,a,ee*y));var fe=new go.PathFigure(.8*a,.75*y,!1);return E.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)),E}),go.Shape.defineFigureGenerator("Ground",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Move,.3*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),E}),go.Shape.defineFigureGenerator("Inverter",function(z,a,y){var E=new go.Geometry,b=ne*.1,ee=.1,te=.9,le=.5,fe=new go.PathFigure(.8*a,.5*y,!0);E.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 he=new go.PathFigure((te+ee)*a,le*y,!0);return E.add(he),he.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(le+ee)*y,(te+ee)*a,(le+b)*y,(te+b)*a,(le+ee)*y)),he.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a,le*y,(te-b)*a,(le+ee)*y,(te-ee)*a,(le+b)*y)),he.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(le-ee)*y,(te-ee)*a,(le-b)*y,(te-b)*a,(le-ee)*y)),he.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a,le*y,(te+b)*a,(le-ee)*y,(te+ee)*a,(le-b)*y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.4,.75),E}),go.Shape.defineFigureGenerator("NandGate",function(z,a,y){var E=new go.Geometry,b=ne*.5,ee=ne*.4,te=ne*.1,le=.1,fe=.9,he=.5,me=new go.PathFigure(.8*a,.5*y,!0);E.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,.8*a,(.5+ee)*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-ee)*y));var ge=new go.PathFigure((fe+le)*a,he*y,!0);return E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,fe*a,(he+le)*y,(fe+le)*a,(he+te)*y,(fe+te)*a,(he+le)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(fe-le)*a,he*y,(fe-te)*a,(he+le)*y,(fe-le)*a,(he+te)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,fe*a,(he-le)*y,(fe-le)*a,(he-te)*y,(fe-te)*a,(he-le)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(fe+le)*a,he*y,(fe+te)*a,(he-le)*y,(fe+le)*a,(he-te)*y)),E.spot1=new go.Spot(0,.05),E.spot2=new go.Spot(.55,.95),E}),go.Shape.defineFigureGenerator("NorGate",function(z,a,y){var E=new go.Geometry,b=.5,ee=ne*b,te=0,le=.5,fe=new go.PathFigure(.8*a,.5*y,!0);E.add(fe),fe.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.7*a,(le+ee)*y,(te+ee)*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+ee)*a,(le-b)*y,.7*a,(le-ee)*y)),b=.1,ee=ne*.1,te=.9,le=.5;var he=new go.PathFigure((te-b)*a,le*y,!0);return E.add(he),he.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(le-b)*y,(te-b)*a,(le-ee)*y,(te-ee)*a,(le-b)*y)),he.add(new go.PathSegment(go.PathSegment.Bezier,(te+b)*a,le*y,(te+ee)*a,(le-b)*y,(te+b)*a,(le-ee)*y)),he.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(le+b)*y,(te+b)*a,(le+ee)*y,(te+ee)*a,(le+b)*y)),he.add(new go.PathSegment(go.PathSegment.Bezier,(te-b)*a,le*y,(te-ee)*a,(le+b)*y,(te-b)*a,(le+ee)*y)),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.6,.75),E}),go.Shape.defineFigureGenerator("OrGate",function(z,a,y){var E=new go.Geometry,b=.5,ee=ne*b,te=0,le=.5,fe=new go.PathFigure(0,0,!0);return E.add(fe),fe.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(te+ee+ee)*a,(le-b)*y,.8*a,(le-ee)*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.8*a,(le+ee)*y,(te+ee+ee)*a,(le+b)*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y).close()),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("XnorGate",function(z,a,y){var E=new go.Geometry,b=.5,ee=ne*b,te=.2,le=.5,fe=new go.PathFigure(.1*a,0,!1);E.add(fe),fe.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var he=new go.PathFigure(.8*a,.5*y,!0);E.add(he),he.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.7*a,(le+ee)*y,(te+ee)*a,(le+b)*y)),he.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y)),he.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(te+ee)*a,(le-b)*y,.7*a,(le-ee)*y)),b=.1,ee=ne*.1,te=.9,le=.5;var me=new go.PathFigure((te-b)*a,le*y,!0);return E.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(le-b)*y,(te-b)*a,(le-ee)*y,(te-ee)*a,(le-b)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(te+b)*a,le*y,(te+ee)*a,(le-b)*y,(te+b)*a,(le-ee)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(le+b)*y,(te+b)*a,(le+ee)*y,(te+ee)*a,(le+b)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(te-b)*a,le*y,(te-ee)*a,(le+b)*y,(te-b)*a,(le+ee)*y)),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.65,.75),E}),go.Shape.defineFigureGenerator("XorGate",function(z,a,y){var E=new go.Geometry,b=.5,ee=ne*b,te=.2,le=.5,fe=new go.PathFigure(.1*a,0,!1);E.add(fe),fe.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var he=new go.PathFigure(.2*a,0,!0);return E.add(he),he.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(te+ee)*a,(le-b)*y,.9*a,(le-ee)*y)),he.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.9*a,(le+ee)*y,(te+ee)*a,(le+b)*y)),he.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y).close()),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.8,.75),E}),go.Shape.defineFigureGenerator("Capacitor",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("Resistor",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),E}),go.Shape.defineFigureGenerator("Inductor",function(z,a,y){var E=new go.Geometry,b=ne*.1,ee=.1,te=.1,le=.5,fe=new go.PathFigure((te-b*.5)*a,y,!1);return E.add(fe),fe.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a,0,(te-b)*a,y,(te-ee)*a,0)),te=.3,fe.add(new go.PathSegment(go.PathSegment.Bezier,te*a,y,(te+ee)*a,0,(te+b)*a,y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a,0,(te-b)*a,y,(te-ee)*a,0)),te=.5,fe.add(new go.PathSegment(go.PathSegment.Bezier,te*a,y,(te+ee)*a,0,(te+b)*a,y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a,0,(te-b)*a,y,(te-ee)*a,0)),te=.7,fe.add(new go.PathSegment(go.PathSegment.Bezier,te*a,y,(te+ee)*a,0,(te+b)*a,y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a,0,(te-b)*a,y,(te-ee)*a,0)),te=.9,fe.add(new go.PathSegment(go.PathSegment.Bezier,(te+b*.5)*a,y,(te+ee)*a,0,(te+b)*a,y)),E}),go.Shape.defineFigureGenerator("ACvoltageSource",function(z,a,y){var E=new go.Geometry,b=ne*.5,ee=.5,te=.5,le=.5,fe=new go.PathFigure((te-ee)*a,le*y,!1);return E.add(fe),fe.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(le-ee)*y,(te-ee)*a,(le-b)*y,(te-b)*a,(le-ee)*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a,le*y,(te+b)*a,(le-ee)*y,(te+ee)*a,(le-b)*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(le+ee)*y,(te+ee)*a,(le+b)*y,(te+b)*a,(le+ee)*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a,le*y,(te-b)*a,(le+ee)*y,(te-ee)*a,(le+b)*y)),fe.add(new go.PathSegment(go.PathSegment.Move,(te-ee+.1)*a,le*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-.1)*a,le*y,te*a,(le-ee)*y,te*a,(le+ee)*y)),E}),go.Shape.defineFigureGenerator("DCvoltageSource",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("Diode",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Wifi",function(z,a,y){var E=new go.Geometry,b=a,ee=y;a=a*.38,y=y*.6;var te=ne*.8,le=.8,fe=0,he=.5,me=(b-a)/2,ge=(ee-y)/2,Se=new go.PathFigure(fe*a+me,(he+le)*y+ge,!0);E.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,(fe-le)*a+me,he*y+ge,(fe-te)*a+me,(he+le)*y+ge,(fe-le)*a+me,(he+te)*y+ge)),Se.add(new go.PathSegment(go.PathSegment.Bezier,fe*a+me,(he-le)*y+ge,(fe-le)*a+me,(he-te)*y+ge,(fe-te)*a+me,(he-le)*y+ge)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(fe-le+te*.5)*a+me,he*y+ge,fe*a+me,(he-le)*y+ge,(fe-le+te*.5)*a+me,(he-te)*y+ge)),Se.add(new go.PathSegment(go.PathSegment.Bezier,fe*a+me,(he+le)*y+ge,(fe-le+te*.5)*a+me,(he+te)*y+ge,fe*a+me,(he+le)*y+ge).close()),te=ne*.4,le=.4,fe=.2,he=.5;var ve=new go.PathFigure(fe*a+me,(he+le)*y+ge,!0);E.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,(fe-le)*a+me,he*y+ge,(fe-te)*a+me,(he+le)*y+ge,(fe-le)*a+me,(he+te)*y+ge)),ve.add(new go.PathSegment(go.PathSegment.Bezier,fe*a+me,(he-le)*y+ge,(fe-le)*a+me,(he-te)*y+ge,(fe-te)*a+me,(he-le)*y+ge)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(fe-le+te*.5)*a+me,he*y+ge,fe*a+me,(he-le)*y+ge,(fe-le+te*.5)*a+me,(he-te)*y+ge)),ve.add(new go.PathSegment(go.PathSegment.Bezier,fe*a+me,(he+le)*y+ge,(fe-le+te*.5)*a+me,(he+te)*y+ge,fe*a+me,(he+le)*y+ge).close()),te=ne*.2,le=.2,fe=.5,he=.5;var be=new go.PathFigure((fe-le)*a+me,he*y+ge,!0);E.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,fe*a+me,(he-le)*y+ge,(fe-le)*a+me,(he-te)*y+ge,(fe-te)*a+me,(he-le)*y+ge)),be.add(new go.PathSegment(go.PathSegment.Bezier,(fe+le)*a+me,he*y+ge,(fe+te)*a+me,(he-le)*y+ge,(fe+le)*a+me,(he-te)*y+ge)),be.add(new go.PathSegment(go.PathSegment.Bezier,fe*a+me,(he+le)*y+ge,(fe+le)*a+me,(he+te)*y+ge,(fe+te)*a+me,(he+le)*y+ge)),be.add(new go.PathSegment(go.PathSegment.Bezier,(fe-le)*a+me,he*y+ge,(fe-te)*a+me,(he+le)*y+ge,(fe-le)*a+me,(he+te)*y+ge)),te=ne*.4,le=.4,fe=.8,he=.5;var Pe=new go.PathFigure(fe*a+me,(he-le)*y+ge,!0);E.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(fe+le)*a+me,he*y+ge,(fe+te)*a+me,(he-le)*y+ge,(fe+le)*a+me,(he-te)*y+ge)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,fe*a+me,(he+le)*y+ge,(fe+le)*a+me,(he+te)*y+ge,(fe+te)*a+me,(he+le)*y+ge)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(fe+le-te*.5)*a+me,he*y+ge,fe*a+me,(he+le)*y+ge,(fe+le-te*.5)*a+me,(he+te)*y+ge)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,fe*a+me,(he-le)*y+ge,(fe+le-te*.5)*a+me,(he-te)*y+ge,fe*a+me,(he-le)*y+ge).close()),te=ne*.8,le=.8,fe=1,he=.5;var Te=new go.PathFigure(fe*a+me,(he-le)*y+ge,!0);return E.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,(fe+le)*a+me,he*y+ge,(fe+te)*a+me,(he-le)*y+ge,(fe+le)*a+me,(he-te)*y+ge)),Te.add(new go.PathSegment(go.PathSegment.Bezier,fe*a+me,(he+le)*y+ge,(fe+le)*a+me,(he+te)*y+ge,(fe+te)*a+me,(he+le)*y+ge)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(fe+le-te*.5)*a+me,he*y+ge,fe*a+me,(he+le)*y+ge,(fe+le-te*.5)*a+me,(he+te)*y+ge)),Te.add(new go.PathSegment(go.PathSegment.Bezier,fe*a+me,(he-le)*y+ge,(fe+le-te*.5)*a+me,(he-te)*y+ge,fe*a+me,(he-le)*y+ge).close()),E}),go.Shape.defineFigureGenerator("Email",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ee=new go.PathFigure(0,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),ee.add(new go.PathSegment(go.PathSegment.Line,a,0)),ee.add(new go.PathSegment(go.PathSegment.Move,0,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.45*a,.54*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.55*a,.54*y)),E}),go.Shape.defineFigureGenerator("Ethernet",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(.35*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,0).close());var ee=new go.PathFigure(.1*a,y,!0,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.4*a,.6*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var te=new go.PathFigure(.6*a,y,!0,!0);E.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 E.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)),E}),go.Shape.defineFigureGenerator("Power",function(z,a,y){var E=new go.Geometry,b=ne*.4,ee=.4,te=.5,le=.5,fe=we(),he=we(),me=we(),ge=we();pe(te,le-ee,te+b,le-ee,te+ee,le-b,te+ee,le,.5,fe,fe,he,me,ge);var Se=ye(he.x,he.y),ve=new go.PathFigure(he.x*a,he.y*y,!0);E.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a,le*y,me.x*a,me.y*y,ge.x*a,ge.y*y)),ve.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(le+ee)*y,(te+ee)*a,(le+b)*y,(te+b)*a,(le+ee)*y)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a,le*y,(te-b)*a,(le+ee)*y,(te-ee)*a,(le+b)*y)),pe(te-ee,le,te-ee,le-b,te-b,le-ee,te,le-ee,.5,me,ge,he,fe,fe),ve.add(new go.PathSegment(go.PathSegment.Bezier,he.x*a,he.y*y,me.x*a,me.y*y,ge.x*a,ge.y*y)),b=ne*.3,ee=.3,pe(te-ee,le,te-ee,le-b,te-b,le-ee,te,le-ee,.5,me,ge,he,fe,fe),ve.add(new go.PathSegment(go.PathSegment.Line,he.x*a,he.y*y)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a,le*y,ge.x*a,ge.y*y,me.x*a,me.y*y)),ve.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(le+ee)*y,(te-ee)*a,(le+b)*y,(te-b)*a,(le+ee)*y)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a,le*y,(te+b)*a,(le+ee)*y,(te+ee)*a,(le+b)*y)),pe(te,le-ee,te+b,le-ee,te+ee,le-b,te+ee,le,.5,fe,fe,he,me,ge),ve.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).close());var ve=new go.PathFigure(.45*a,0,!0);return E.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),ve.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),ve.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),Ee(fe),Ee(he),Ee(me),Ee(ge),Ee(Se),E.spot1=new go.Spot(.25,.45),E.spot2=new go.Spot(.75,.8),E}),go.Shape.defineFigureGenerator("Fallout",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y/2,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,180,360,a/2,y/2,a/2,y/2));function ee(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 ee(b,0,0),ee(b,.4,0),ee(b,.2,-.3),E}),go.Shape.defineFigureGenerator("IrritationHazard",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(.2*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close()),E.spot1=new go.Spot(.3,.3),E.spot2=new go.Spot(.7,.7),E}),go.Shape.defineFigureGenerator("ElectricalHazard",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(.37*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.11*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.04*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.49*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.37*y)),b.add(new go.PathSegment(go.PathSegment.Line,.63*a,.86*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.91*y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,.78*y)),b.add(new go.PathSegment(go.PathSegment.Line,.44*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.56*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.68*y).close()),E}),go.Shape.defineFigureGenerator("FireHazard",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.29*a,0,-.25*a,.63*y,.45*a,.44*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.51*a,.42*y,.48*a,.17*y,.54*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.59*a,.18*y,.59*a,.29*y,.58*a,.28*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,.6*y,.8*a,.34*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.88*a,.31*y,.87*a,.48*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,1.17*a,.76*y,.82*a,.8*y).close()),E.spot1=new go.Spot(.07,.445),E.spot2=new go.Spot(.884,.958),E}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(z,a,y){var E=new go.Geometry,b=.5,ee=0,te=0,le=b*ne,fe=.4*Math.SQRT2/2+.5,he=.5-.5*Math.SQRT2/2,me=1,ge=.5,Se=.5,ve=0,be=new go.PathFigure(fe*a,(1-he)*y,!1);return E.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,me*a,ge*y,me*a,.7*y,me*a,ge*y)),be.add(new go.PathSegment(go.PathSegment.Bezier,(Se+ee)*a,(ve+ee)*y,(.5+b+ee)*a,(.5-le+ee)*y,(.5+le+ee)*a,(.5-b+ee)*y)),be.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+ee)*a,(.5+te)*y,(.5-le+ee)*a,(.5-b+te)*y,(.5-b+ee)*a,(.5-le+te)*y)),be.add(new go.PathSegment(go.PathSegment.Bezier,(.35+ee)*a,.9*y,(.5-b+ee)*a,(.5+le+te)*y,(.5-le+ee)*a,.9*y)),be.add(new go.PathSegment(go.PathSegment.Move,(.25+ee)*a,.8*y)),be.add(new go.PathSegment(go.PathSegment.Line,(.35+ee)*a,.9*y)),be.add(new go.PathSegment(go.PathSegment.Line,(.2+ee)*a,.95*y)),E}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var ee=new go.PathFigure(a,y,!1);E.add(ee);var te=new go.PathFigure(0,.5*y,!1);return E.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)),E}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close()),E}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y).close());var b=new go.PathFigure(0,.2*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),E}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(.7*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,0,.6*a,.5*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,y,.4*a,.5*y,a,.5*y).close());var ee=new go.PathFigure(.45*a,.73*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,.73*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.38*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.63*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.31*a,.27*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.56*a,.27*y)),E}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var ee=new go.PathFigure(.335*a,(1-.555)*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y)),ee.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),ee.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,.68*y,(1-.12)*a,.46*y,(1-.02)*a,.54*y)),ee.add(new go.PathSegment(go.PathSegment.Line,a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.68*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.335*a,(1-.555)*y,.02*a,.54*y,.12*a,.46*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.365*a,(1-.595)*y));var te=.5-.285,le=.5,fe=te,he=Math.PI/4,me=4*(1-Math.cos(he))/(3*Math.sin(he)),ge=me*.5,Se=te,ve=te,be=me*Se,Pe=me*ve;ee.add(new go.PathSegment(go.PathSegment.Bezier,(le-Se)*a,fe*y,(le-(be+Se)/2)*a,(fe+(ve+Pe)/2)*y,(le-Se)*a,(fe+Pe)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,le*a,(fe-ve)*y,(le-Se)*a,(fe-Pe)*y,(le-be)*a,(fe-ve)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(le+Se)*a,fe*y,(le+be)*a,(fe-ve)*y,(le+Se)*a,(fe-Pe)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(le+Se)*a,(fe+Pe)*y,(le+(be+Se)/2)*a,(fe+(ve+Pe)/2)*y)),ee.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*a,(1-.595)*y)),ee.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),ee.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y));var Te=new go.PathFigure(.2*a,y,!1);E.add(Te),Te.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var _e=new go.PathFigure(.8*a,y,!1);return E.add(_e),_e.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),E}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var ee=new go.PathFigure(.2*a,.2*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.2*a,.8*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),E}),go.Shape.defineFigureGenerator("BpmnEventError",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var ee=new go.PathFigure(a,y,!1);E.add(ee);var te=new go.PathFigure(.1*a,y,!0);return E.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()),E}),go.Shape.defineFigureGenerator("Caution",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(.05*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.8*y,0,y,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.1*y,.5*a,0,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.95*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,a,y,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,y));var ee=.05;return b.add(new go.PathSegment(go.PathSegment.Move,(.5-ee)*a,.875*y)),b.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*a,.875*y,ee*a,ee*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.325*y,.575*a,.725*y,.625*a,.375*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.75*y,.375*a,.375*y,.425*a,.725*y)),E}),go.Shape.defineFigureGenerator("Recycle",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(.45*a,.95*y,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.185*a,.85*y,.17*a,.95*y,.15*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.235*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.625*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,.275*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.575*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.1875*a,.95*y,0,.675*y,0,.7*y)),b.add(new go.PathSegment(go.PathSegment.Move,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.775*y)),b.add(new go.PathSegment(go.PathSegment.Line,.22*a,.775*y));var ee=new go.PathFigure(.475*a,.2*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.4*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.225*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.275*a,.175*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.325*a,.05*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.05*y,.35*a,0,.375*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.575*a,.375*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.525*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.75*a,.475*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.85*a,.315*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.8*a,.32*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.65*a,.05*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,0,.65*a,.05*y,.625*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.38*a,.0105*y));var te=new go.PathFigure(.675*a,.575*y,!1);return E.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)),E}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(z,a,y){var E=new go.Geometry,b=.5,ee=ne*.5,te=new go.PathFigure(a,b*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,b*a,y,a,(b+ee)*y,(b+ee)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,b*y,(b-ee)*a,y,0,(b+ee)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,b*a,0,0,(b-ee)*y,(b-ee)*a,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,b*y,(b+ee)*a,0,a,(b-ee)*y));var le=new go.PathFigure(b*a,0,!1);return E.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)),E}),go.Shape.defineFigureGenerator("Package",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.15*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var ee=new go.PathFigure(0,.15*y,!0);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,0,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.65*a,.15*y).close()),E.spot1=new go.Spot(0,.1),E.spot2=new go.Spot(1,1),E}),go.Shape.defineFigureGenerator("Class",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ee=new go.PathFigure(0,.2*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var te=new go.PathFigure(0,.5*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close()),E}),go.Shape.defineFigureGenerator("Component",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close());var ee=new go.PathFigure(0,.2*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.45*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close());var te=new go.PathFigure(0,.6*y,!0);return E.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()),E}),go.Shape.defineFigureGenerator("Boat Shipment",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(.15*a,.6*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y));var ee=new go.PathFigure(.15*a,.6*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),E}),go.Shape.defineFigureGenerator("Customer/Supplier",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E}),go.Shape.defineFigureGenerator("Workcell",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("Supermarket",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.66*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),E}),go.Shape.defineFigureGenerator("TruckShipment",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ee=new go.PathFigure(a,.8*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.6*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),ee.add(new go.PathSegment(go.PathSegment.Line,a,.8*y).close());var te=.1,le=ne*.1,fe=.2,he=.9,me=new go.PathFigure((fe-te)*a,he*y,!0);E.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,fe*a,(he-te)*y,(fe-te)*a,(he-le)*y,(fe-le)*a,(he-te)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(fe+te)*a,he*y,(fe+le)*a,(he-te)*y,(fe+te)*a,(he-le)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,fe*a,(he+te)*y,(fe+te)*a,(he+le)*y,(fe+le)*a,(he+te)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(fe-te)*a,he*y,(fe-le)*a,(he+te)*y,(fe-te)*a,(he+le)*y).close()),te=.1,le=ne*.1,fe=.8,he=.9;var ge=new go.PathFigure((fe-te)*a,he*y,!0);return E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,fe*a,(he-te)*y,(fe-te)*a,(he-le)*y,(fe-le)*a,(he-te)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(fe+te)*a,he*y,(fe+le)*a,(he-te)*y,(fe+te)*a,(he-le)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,fe*a,(he+te)*y,(fe+te)*a,(he+le)*y,(fe+le)*a,(he+te)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(fe-te)*a,he*y,(fe-le)*a,(he+te)*y,(fe-te)*a,(he+le)*y).close()),E}),go.Shape.defineFigureGenerator("KanbanPost",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(.2*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),E}),go.Shape.defineFigureGenerator("Forklift",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0));var ee=new go.PathFigure(0,.5*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var te=new go.PathFigure(.5*a,.8*y,!0);E.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);E.add(le),le.add(new go.PathSegment(go.PathSegment.Line,a,.7*y));var fe=.1,he=ne*.1,me=.1,ge=.9,Se=new go.PathFigure((me-fe)*a,ge*y,!0);E.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(ge-fe)*y,(me-fe)*a,(ge-he)*y,(me-he)*a,(ge-fe)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(me+fe)*a,ge*y,(me+he)*a,(ge-fe)*y,(me+fe)*a,(ge-he)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(ge+fe)*y,(me+fe)*a,(ge+he)*y,(me+he)*a,(ge+fe)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(me-fe)*a,ge*y,(me-he)*a,(ge+fe)*y,(me-fe)*a,(ge+he)*y)),fe=.1,he=ne*.1,me=.4,ge=.9;var ve=new go.PathFigure((me-fe)*a,ge*y,!0);return E.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(ge-fe)*y,(me-fe)*a,(ge-he)*y,(me-he)*a,(ge-fe)*y)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(me+fe)*a,ge*y,(me+he)*a,(ge-fe)*y,(me+fe)*a,(ge-he)*y)),ve.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(ge+fe)*y,(me+fe)*a,(ge+he)*y,(me+he)*a,(ge+fe)*y)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(me-fe)*a,ge*y,(me-he)*a,(ge+fe)*y,(me-fe)*a,(ge+he)*y)),E}),go.Shape.defineFigureGenerator("RailShipment",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,.4*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.4*y).close());var ee=new go.PathFigure(.45*a,.7*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y));var te=new go.PathFigure(.55*a,.4*y,!0);E.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,ge=ne*.05,Se=.175,ve=.95,le=new go.PathFigure((Se-me)*a,ve*y,!0);E.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(ve-me)*y,(Se-me)*a,(ve-ge)*y,(Se-ge)*a,(ve-me)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(Se+me)*a,ve*y,(Se+ge)*a,(ve-me)*y,(Se+me)*a,(ve-ge)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(ve+me)*y,(Se+me)*a,(ve+ge)*y,(Se+ge)*a,(ve+me)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(Se-me)*a,ve*y,(Se-ge)*a,(ve+me)*y,(Se-me)*a,(ve+ge)*y));var me=.05,ge=ne*.05,Se=.375,ve=.95,fe=new go.PathFigure((Se-me)*a,ve*y,!0);E.add(fe),fe.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(ve-me)*y,(Se-me)*a,(ve-ge)*y,(Se-ge)*a,(ve-me)*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(Se+me)*a,ve*y,(Se+ge)*a,(ve-me)*y,(Se+me)*a,(ve-ge)*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(ve+me)*y,(Se+me)*a,(ve+ge)*y,(Se+ge)*a,(ve+me)*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(Se-me)*a,ve*y,(Se-ge)*a,(ve+me)*y,(Se-me)*a,(ve+ge)*y));var me=.05,ge=ne*.05,Se=.625,ve=.95,he=new go.PathFigure((Se-me)*a,ve*y,!0);E.add(he),he.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(ve-me)*y,(Se-me)*a,(ve-ge)*y,(Se-ge)*a,(ve-me)*y)),he.add(new go.PathSegment(go.PathSegment.Bezier,(Se+me)*a,ve*y,(Se+ge)*a,(ve-me)*y,(Se+me)*a,(ve-ge)*y)),he.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(ve+me)*y,(Se+me)*a,(ve+ge)*y,(Se+ge)*a,(ve+me)*y)),he.add(new go.PathSegment(go.PathSegment.Bezier,(Se-me)*a,ve*y,(Se-ge)*a,(ve+me)*y,(Se-me)*a,(ve+ge)*y));var me=.05,ge=ne*.05,Se=.825,ve=.95,be=new go.PathFigure((Se-me)*a,ve*y,!0);E.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(ve-me)*y,(Se-me)*a,(ve-ge)*y,(Se-ge)*a,(ve-me)*y)),be.add(new go.PathSegment(go.PathSegment.Bezier,(Se+me)*a,ve*y,(Se+ge)*a,(ve-me)*y,(Se+me)*a,(ve-ge)*y)),be.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(ve+me)*y,(Se+me)*a,(ve+ge)*y,(Se+ge)*a,(ve+me)*y)),be.add(new go.PathSegment(go.PathSegment.Bezier,(Se-me)*a,ve*y,(Se-ge)*a,(ve+me)*y,(Se-me)*a,(ve+ge)*y).close());var Pe=new go.PathFigure(0,y,!1);return E.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E}),go.Shape.defineFigureGenerator("Warehouse",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ee=new go.PathFigure(0,.2*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var te=new go.PathFigure(.15*a,y,!0);E.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,he=.35,me=.775,ge=new go.PathFigure((he-le)*a,me*y,!0);return E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,he*a,(me-le)*y,(he-le)*a,(me-fe)*y,(he-fe)*a,(me-le)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(he+le)*a,me*y,(he+fe)*a,(me-le)*y,(he+le)*a,(me-fe)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,he*a,(me+le)*y,(he+le)*a,(me+fe)*y,(he+fe)*a,(me+le)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(he-le)*a,me*y,(he-fe)*a,(me+le)*y,(he-le)*a,(me+fe)*y).close()),E}),go.Shape.defineFigureGenerator("ControlCenter",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y).close()),E}),go.Shape.defineFigureGenerator("Bluetooth",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),E}),go.Shape.defineFigureGenerator("Bookmark",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E}),go.Shape.defineFigureGenerator("Bookmark",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E}),go.Shape.defineFigureGenerator("Globe",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.75*a,0,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.75*y,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.25*a,y,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,.25*y,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,.15*a,.25*y,.15*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.85*a,.75*y,.85*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.15*y,.35*a,.3*y,.65*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.85*y,.35*a,.7*y,.65*a,.7*y)),E}),go.Shape.defineFigureGenerator("Wave",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.25*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.25*y,.1*a,0,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.25*y,.425*a,.5*y,.575*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.25*y,.8*a,0,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.75*y,.1*a,.5*y,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.75*y,.425*a,y,.575*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.75*y,.8*a,.5*y,.9*a,.5*y)),E}),go.Shape.defineFigureGenerator("Operator",function(z,a,y){var E=new go.Geometry,b=.3,ee=ne*.3,te=.5,le=.7,fe=new go.PathFigure((te-b)*a,le*y,!0);E.add(fe),fe.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(le-b)*y,(te-b)*a,(le-ee)*y,(te-ee)*a,(le-b)*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(te+b)*a,le*y,(te+ee)*a,(le-b)*y,(te+b)*a,(le-ee)*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(le+b)*y,(te+b)*a,(le+ee)*y,(te+ee)*a,(le+b)*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(te-b)*a,le*y,(te-ee)*a,(le+b)*y,(te-b)*a,(le+ee)*y));var he=new go.PathFigure(0,.7*y,!1);return E.add(he),he.add(new go.PathSegment(go.PathSegment.Bezier,a,.7*y,0,0,a,0)),E}),go.Shape.defineFigureGenerator("TripleFanBlades",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.65*a,.3*y,.65*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.35*a,.5*y,.35*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.3*a,.6*y,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.2*a,y,.35*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,y,.7*a,.6*y,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.8*a,y,.65*a,.95*y)),E}),go.Shape.defineFigureGenerator("CentrifugalPump",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,0,.075*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,0,y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.4*y,.8*a,y,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),E}),go.Shape.defineFigureGenerator("Battery",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.1*y));var ee=new go.PathFigure(0,.6*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Move,0,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),E}),go.Shape.defineFigureGenerator("Delete",function(z,a,y){var E=new go.Geometry,b=.5,ee=ne*.5,te=.5,le=.5,fe=new go.PathFigure((te-b)*a,le*y,!0);E.add(fe),fe.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(le-b)*y,(te-b)*a,(le-ee)*y,(te-ee)*a,(le-b)*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(te+b)*a,le*y,(te+ee)*a,(le-b)*y,(te+b)*a,(le-ee)*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(le+b)*y,(te+b)*a,(le+ee)*y,(te+ee)*a,(le+b)*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(te-b)*a,le*y,(te-ee)*a,(le+b)*y,(te-b)*a,(le+ee)*y));var he=new go.PathFigure(.15*a,.5*y,!1);return E.add(he),he.add(new go.PathSegment(go.PathSegment.Line,.85*a,.5*y)),E}),go.Shape.defineFigureGenerator("Flag",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.1*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.1*y,.15*a,0,.35*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,.65*a,.2*y,.85*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.85*a,.6*y,.65*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.35*a,.4*y,.15*a,.4*y).close()),E}),go.Shape.defineFigureGenerator("Help",function(z,a,y){var E=new go.Geometry,b=.5,ee=ne*.5,te=.5,le=.5,fe=new go.PathFigure((te-b)*a,le*y,!1);E.add(fe),fe.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(le-b)*y,(te-b)*a,(le-ee)*y,(te-ee)*a,(le-b)*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(te+b)*a,le*y,(te+ee)*a,(le-b)*y,(te+b)*a,(le-ee)*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(le+b)*y,(te+b)*a,(le+ee)*y,(te+ee)*a,(le+b)*y)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(te-b)*a,le*y,(te-ee)*a,(le+b)*y,(te-b)*a,(le+ee)*y).close()),b=.05,ee=ne*.05,te=.5,le=.8;var he=new go.PathFigure((te-b)*a,le*y,!1);return E.add(he),he.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(le-b)*y,(te-b)*a,(le-ee)*y,(te-ee)*a,(le-b)*y)),he.add(new go.PathSegment(go.PathSegment.Bezier,(te+b)*a,le*y,(te+ee)*a,(le-b)*y,(te+b)*a,(le-ee)*y)),he.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(le+b)*y,(te+b)*a,(le+ee)*y,(te+ee)*a,(le+b)*y)),he.add(new go.PathSegment(go.PathSegment.Bezier,(te-b)*a,le*y,(te-ee)*a,(le+b)*y,(te-b)*a,(le+ee)*y).close()),he.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),he.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),he.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,.75*a,.475*y,.75*a,.225*y)),he.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.35*y,.4*a,.2*y,.3*a,.25*y)),E}),go.Shape.defineFigureGenerator("Location",function(z,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(z,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var ee=new go.PathFigure(.2*a,.5*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.8*a,.3*y)),E}),go.Shape.defineFigureGenerator("Unlocked",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var ee=new go.PathFigure(.2*a,.5*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.8*a,.35*y)),E}),go.Shape.defineFigureGenerator("Gear",function(z,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(z,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.3*y,0,.375*y,.05*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.075*y,.3*a,.225*y,.4*a,.175*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.525*a,.075*y,.46*a,.05*y,.525*a,.05*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.4*y,.525*a,.275*y,.475*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.55*y,a,.4*y,a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.425*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.7*y,.675*a,.55*y,.675*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.575*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,.85*y,.65*a,.7*y,.65*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.535*a,y,.61*a,.85*y,.61*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,.435*a,y,0,y).close()),E}),go.Shape.defineFigureGenerator("Map",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),E}),go.Shape.defineFigureGenerator("Eject",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.7)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.7).close());var ee=new go.PathFigure(0,y*.6,!0);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close()),E}),go.Shape.defineFigureGenerator("Pencil",function(z,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(z,a,y){var E=new go.Geometry,b=new go.PathFigure(a*1,y*1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.85).close());var ee=new go.PathFigure(.126*a,.85*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.126*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.322*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.322*a,.85*y).close());var te=new go.PathFigure(.402*a,.85*y,!1);E.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);E.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 E.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()),E}),go.Shape.defineFigureGenerator("Staircase",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y*1,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.95).close()),E}),go.Shape.defineFigureGenerator("5Bars",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y*1,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*(1-.184)).close());var ee=new go.PathFigure(a*.204,y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.204,y*(1-.184))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*(1-.184*2))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*1).close());var te=new go.PathFigure(a*.408,y,!0);E.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);E.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 E.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()),E}),go.Shape.defineFigureGenerator("PC",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,0).close());var ee=new go.PathFigure(a*.055,.07*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.07)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.1)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.1).close());var te=new go.PathFigure(a*.055,.13*y,!0);E.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);E.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 E.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()),E}),go.Shape.defineFigureGenerator("Plane",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(.55*a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.35*a,.525*y,0,.4*y,.225*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.2*y,.975*a,0,a,.08*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.55*a,y).close()),E}),go.Shape.defineFigureGenerator("Key",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(a*1,y*.5,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,.575*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.6*y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.17*a,.425*y)),b.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*a,.5*y,.075*a,.075*y).close()),E}),go.Shape.defineFigureGenerator("FilmTape",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*0,a*.3,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var ee=new go.PathFigure(0,0,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*1,y*0)),ee.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*1,a*.3,a*.055)),ee.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var te=new go.PathFigure(a*.11,y*.1,!1);E.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);E.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 E.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()),E}),go.Shape.defineFigureGenerator("FloppyDisk",function(z,a,y){var E=new go.Geometry,b=8,ee=b*ne,te=new go.PathFigure(b,0,!1);E.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-ee,a-ee,y)),te.add(new go.PathSegment(go.PathSegment.Line,b,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,ee,y,0,y-ee)),te.add(new go.PathSegment(go.PathSegment.Line,0,b)),te.add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,ee,ee,0).close());var le=new go.PathFigure(a*.83,0,!1);E.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);E.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 he=new go.PathFigure(a*.78,y*.05,!1);return E.add(he),he.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.05)),he.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.25)),he.add(new go.PathSegment(go.PathSegment.Line,a*.78,y*.25).close()),E}),go.Shape.defineFigureGenerator("SpeechBubble",function(z,a,y){var E=z?z.parameter1:NaN;(isNaN(E)||E<0)&&(E=15),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*ne,ee=y*.8,te=new go.Geometry,le=new go.PathFigure(E,0,!0);return te.add(le),le.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),le.add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-b,0,a,b)),le.add(new go.PathSegment(go.PathSegment.Line,a,ee-E)),le.add(new go.PathSegment(go.PathSegment.Bezier,a-E,ee,a,ee-b,a-b,ee)),le.add(new go.PathSegment(go.PathSegment.Line,a*.7,ee)),le.add(new go.PathSegment(go.PathSegment.Line,a*.7,y)),le.add(new go.PathSegment(go.PathSegment.Line,a*.55,ee)),le.add(new go.PathSegment(go.PathSegment.Line,E,ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,ee-E,b,ee,0,ee-b)),le.add(new go.PathSegment(go.PathSegment.Line,0,E)),le.add(new go.PathSegment(go.PathSegment.Bezier,E,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(z,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*.45,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.45).close());var ee=new go.PathFigure(a*1,y*.55,!0);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*1)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.55)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.55)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.1)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.1)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*0)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.55).close()),E}),go.Shape.defineFigureGenerator("Windows",function(z,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(z,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*.1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.9).close());var ee=new go.PathFigure(a*.1,y*.2,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.25)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.22,y*.285)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.32)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.37)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.32)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.25).close());var te=new go.PathFigure(a*.28,y*.37,!0);return E.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()),E}),go.Shape.defineFigureGenerator("Beaker",function(z,a,y){var E=new go.Geometry,b=15,ee=b*ne,te=new go.PathFigure(a*.62,y*.475,!0);return E.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-ee,a-ee,y)),te.add(new go.PathSegment(go.PathSegment.Line,b,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,ee,y,0,y-ee)),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()),ee>1?(E.spot1=new go.Spot(0,0,ee,ee),E.spot2=new go.Spot(1,1,-ee,-ee)):(E.spot1=go.Spot.TopLeft,E.spot2=go.Spot.BottomRight),E}),go.Shape.defineFigureGenerator("Download",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var ee=.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-ee))),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-ee))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-ee))),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-ee))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-ee))),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-ee)).close());var te=new go.PathFigure(a*.4,y*0,!0);return E.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()),E}),go.Shape.defineFigureGenerator("Bin",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var ee=.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-ee))),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-ee))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-ee))),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-ee))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-ee))),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-ee)).close()),E}),go.Shape.defineFigureGenerator("Upload",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var ee=.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-ee))),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-ee))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-ee))),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-ee))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-ee))),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-ee)).close());var te=new go.PathFigure(a*.5,y*0,!0);return E.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()),E}),go.Shape.defineFigureGenerator("EmptyDrink",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close()),E}),go.Shape.defineFigureGenerator("Drink",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close());var ee=new go.PathFigure(a*.235,y*.28,!0);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.765,y*.28)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.655,y*.97)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.345,y*.97).close()),E}),go.Shape.defineFigureGenerator("4Arrows",function(z,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.5,y*0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.25).close()),E}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},11081:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var _t={},ft="5.0",ye={},we=null,Ee=!1,x=!1,pe=null,de=!1,ae=null,ne=null,se=0;se<arguments.length;se++){var ce=arguments[se];if(ce!==null)switch(typeof ce){case"number":ft=ce.toFixed(1);break;case"string":ce.match(new RegExp("^[0-9]\\.[0-9]+$"))?ft=ce:pe=ce;break;case"object":typeof ce.is3D!="undefined"?we=ce:ye=ce;break;case"boolean":Ee=ce,x=!0;break}}we===null&&(we={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},ye.material_id!==void 0&&!x&&(Ee=!0)),pe!==null&&ye.id===void 0&&(ye.id=pe);var ue="",ie="",oe=!1,re=null,z=null,a=null,y=!1,E=null,b=null,ee=null,te=null,le=null;ye.height!==void 0&&(ye.height=Math.round(ye.height)),ye.width!==void 0&&(ye.width=Math.round(ye.width));var fe=function(We){return parseFloat(We)>4?parseFloat(We):5};_t.setHTML5Codebase=function(We,Fe){ne=We,qe(We,Fe)},_t.setJavaCodebase=_t.setJavaCodebaseVersion=_t.isCompiledInstalled=_t.setPreCompiledScriptPath=_t.setPreCompiledResourcePath=function(){},_t.setHTML5CodebaseVersion=function(We,Fe){var Ue=parseFloat(We);if(Ue!==NaN&&Ue<5){console.log("The GeoGebra HTML5 codebase version "+Ue+" is deprecated. Using version latest instead.");return}ae=We,nt(We,Fe)},_t.getHTML5CodebaseVersion=function(){return z},_t.getParameters=function(){return ye},_t.setFontsCSSURL=function(We){te=We},_t.setGiacJSURL=function(We){},_t.setJNLPFile=function(We){ue=We},_t.setJNLPBaseDir=function(We){},_t.inject=function(){function We(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Fe="auto",Ue=ye.id,at,Xe=!1,ut=0;ut<arguments.length;ut++){var Ze=arguments[ut];typeof Ze=="string"?(Ze=Ze.toLowerCase(),Ze.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Fe=Ze:Ue=arguments[ut]):typeof Ze=="boolean"?Xe=Ze:Ze instanceof HTMLElement&&(at=Ze)}ze();function ze(){if(!de){setTimeout(ze,200);return}Fe=$e(Fe);var Re=at||document.getElementById(Ue);if(!Re){console.log("possibly bug on ajax loading? ");return}if(_t.removeExistingApplet(Re,!1),ye.width===void 0&&Re.clientWidth&&(ye.width=Re.clientWidth),ye.height===void 0&&Re.clientHeight&&(ye.height=Re.clientHeight),!(ye.width&&ye.height)&&Fe==="html5"&&(delete ye.width,delete ye.height),re=Fe,Fe==="screenshot")_e(Re,ye);else{var it=!1;ye.hasOwnProperty("playButton")&&ye.playButton||ye.hasOwnProperty("clickToLoad")&&ye.clickToLoad?it=!0:ye.hasOwnProperty("playButtonAutoDecide")&&ye.playButtonAutoDecide&&(it=(!he()||We())&&me()),it?(re="screenshot",Ce(Re,ye,Xe,Fe)):Te(Re,ye,Xe)}}};function he(){try{return window.self!==window.top}catch(We){return!0}}function me(){return ye.hasOwnProperty("screenshotGenerator")&&ye.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}_t.getViews=function(){return we},_t.isJavaInstalled=function(){return!1};var ge=function(We){var Fe=function(ut){var Ze=JSON.parse(ut),ze=function(Me){return Me.type=="G"||Me.type=="E"},Re=Ze.elements?Ze.elements.filter(ze)[0]:Ze;if(!Re||!Re.url){Ue();return}ye.fileName=Re.url,Se(Re.settings||{}),we.is3D=!0;var it="https://www.geogebra.org/images/";_t.setPreviewImage(E||Re.previewUrl,it+"GeoGebra_loading.png",it+"applet_play.png"),We()},Ue=function(){ye.onError&&ye.onError(),Je("Error: Fetching material (id "+ye.material_id+") failed.",ye)},at=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Xe="/materials/"+ye.material_id+"?scope=basic";ve("https://"+at+"/api/proxy.php?path="+encodeURIComponent(Xe),Fe,Ue)};function Se(We){var Fe=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Ue){We[Ue]=!!We[Ue]}),Fe.forEach(function(Ue){ye[Ue]===void 0&&We[Ue]!==void 0&&(ye[Ue]=We[Ue])}),ye.showToolBarHelp===void 0&&(ye.showToolBarHelp=ye.showToolBar)}function ve(We,Fe,Ue){var at=new XMLHttpRequest;at.open("GET",We),at.onload=function(){Fe(at.responseText)},at.onerror=Ue,at.send()}_t.isHTML5Installed=function(){return!0},_t.getLoadedAppletType=function(){return re},_t.setPreviewImage=function(We,Fe,Ue){E=We,b=Fe,ee=Ue},_t.removeExistingApplet=function(We,Fe){var Ue;typeof We=="string"&&(We=document.getElementById(We)),re=null;var at=null;for(Ue=0;Ue<We.childNodes.length;Ue++){var Xe=We.childNodes[Ue],ut=Xe.className;ut==="applet_screenshot"?Fe?(Xe.style.display="block",re="screenshot"):Xe.style.display="none":ut!=="applet_scaler prerender"&&(We.removeChild(Xe),at=ut&&ut.indexOf("appletParameters")!=-1?Xe.id:null,Ue--)}var Ze=ye.id!==void 0?ye.id:at,ze=window[Ze];ze&&typeof ze.getBase64=="function"&&(ze.remove(),window[Ze]=null)},_t.refreshHitPoints=function(){if(fe(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var We=_t.getAppletObject();return We&&typeof We.recalculateEnvironments=="function"?(We.recalculateEnvironments(),!0):!1},_t.startAnimation=function(){var We=_t.getAppletObject();return We&&typeof We.startAnimation=="function"?(We.startAnimation(),!0):!1},_t.stopAnimation=function(){var We=_t.getAppletObject();return We&&typeof We.stopAnimation=="function"?(We.stopAnimation(),!0):!1},_t.getAppletObject=function(){var We=ye.id!==void 0?ye.id:"ggbApplet";return window[We]},_t.resize=function(){};var be=function(We,Fe,Ue){var at=document.createElement("param");at.setAttribute("name",Fe),at.setAttribute("value",Ue),We.appendChild(at)},Pe=function(We){return We&&We!=="false"},Te=function(We,Fe,Ue){fe(z)<=4.2&&(Ue=!0);var at=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==z||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(at=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Xe=document.createElement("div");Xe.classList.add("appletParameters","notranslate");var ut=Fe.width,Ze=Fe.height;if(Fe.disableAutoScale=Fe.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Fe.disableAutoScale,Fe.width!==void 0)if(fe(z)<=4.4)Pe(Fe.showToolBar)&&(Fe.height-=7),Pe(Fe.showAlgebraInput)&&(Fe.height-=37),Fe.width<605&&Pe(Fe.showToolBar)&&(Fe.width=605,ut=605);else{var ze=100;(Pe(Fe.showToolBar)||Pe(Fe.showMenuBar))&&(Fe.hasOwnProperty("customToolBar")&&(Fe.customToolbar=Fe.customToolBar),ze=Pe(Fe.showMenuBar)?245:155),ut<ze&&(Fe.width=ze,ut=ze)}Xe.style.border="none",Xe.style.display="inline-block";for(var Re in Fe)Fe.hasOwnProperty(Re)&&Re!=="appletOnLoad"&&Xe.setAttribute("data-param-"+Re,Fe[Re]);te&&Xe.setAttribute("data-param-fontscssurl",te),_t.resize=function(){GGBAppletUtils.responsiveResize(We,Fe)},window.addEventListener("resize",function(He){_t.resize()});var it=typeof Fe.appletOnLoad=="function"?Fe.appletOnLoad:function(){};if(!Ue&&Fe.width!==void 0){Fe.hasOwnProperty("showSplash")||Xe.setAttribute("data-param-showSplash","false");var Me=We.querySelector(".applet_scaler.prerender"),Be=Me!==null;if(Be)var Qe=Me.querySelector(".ggb_preview");else{var Qe=ke(ut,Ze,Fe.borderColor,!1);Me=document.createElement("div"),Me.className="applet_scaler",Me.style.position="relative",Me.style.display="block",Me.style.width=ut+"px",Me.style.height=Ze+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Me,"66%"),fe(z)>=5?(Fe.appletOnLoad=function(He){var ot=We.querySelector(".ggb_preview");ot&&ot.parentNode.removeChild(ot),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Me),window.GGBT_wsf_view&&$(window).trigger("resize"),it(He)},Be||Me.appendChild(Qe)):Xe.appendChild(Qe),Me.appendChild(Xe),Be||We.appendChild(Me),setTimeout(function(){_t.resize()},1)}else{var Ge=document.createElement("div");Ge.className="applet_scaler",Ge.style.position="relative",Ge.style.display="block",Ge.appendChild(Xe),We.appendChild(Ge),Fe.appletOnLoad=function(He){_t.resize(),it(He)}}function De(He,ot){ot&&typeof ot.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(He,ot.appletOnLoad):renderGGBElement(He),Je("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",ot)}function Le(He,ot){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:He,params:ot}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(mt){De(mt.article,mt.params)}),html5AppletsToProcess=null)},fe(z)<5&&(He.className+=" geogebraweb")):De(He,ot)}if(at){scriptLoadStarted=!0;for(var Oe=0;Oe<Xe.childNodes.length;Oe++){var xe=Xe.childNodes[Oe].tagName;xe==="TABLE"&&(Xe.removeChild(Xe.childNodes[Oe]),Oe--)}if(ggbHTML5LoadedScript!==null){var Ae=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Ae!=null&&Ae.parentNode.removeChild(Ae)}var Ke=document.createElement("script"),tt=function(){Le(Xe,Fe)};Ke.src=ie+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=z,ggbHTML5LoadedScript=Ke.src,Je("GeoGebra HTML5 codebase loaded: '"+ie+"'.",Fe),!ne&&(!ae||ae=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),tt()):ie.requirejs?__webpack_require__.e(981).then(function(){var He=[__webpack_require__(60981)];tt.apply(null,He)}.bind(this)).catch(__webpack_require__.oe):(Ke.onload=tt,We.appendChild(Ke))}else Le(Xe,Fe);Fe.height=Ze,Fe.width=ut},_e=function(We,Fe,Ue){var at=ke(Fe.width,Fe.height,Fe.borderColor,Ue),Xe=document.createElement("div");Xe.style.position="relative",Xe.style.display="block",Xe.style.width=Fe.width+"px",Xe.style.height=Fe.height+"px",Xe.className="applet_screenshot applet_scaler"+(Ue?" applet_screenshot_play":""),Xe.appendChild(at);var ut=GGBAppletUtils.getScale(Fe,We,Ue);Ue?(We.appendChild(Ie()),window.GGBT_wsf_view||(We.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Xe,"66%"),We.appendChild(Xe),ut!==1&&!isNaN(ut)&&(GGBAppletUtils.scaleElement(Xe,ut),Xe.style.width=Fe.width+"px",Xe.style.height=Fe.height+"px",Xe.parentNode.style.width=Fe.width*ut+"px",Xe.parentNode.style.height=Fe.height*ut+"px"),_t.resize=function(){je(We,at,Xe,Ue)},window.addEventListener("resize",function(Ze){_t.resize()}),_t.resize()};function je(We,Fe,Ue,at){if(We.contains(Fe)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(We.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(We)}var Xe=GGBAppletUtils.getScale(ye,We,at);Ue.parentNode!==null&&(!isNaN(Xe)&&Xe!==1?(GGBAppletUtils.scaleElement(Ue,Xe),Ue.parentNode.style.width=ye.width*Xe+"px",Ue.parentNode.style.height=ye.height*Xe+"px"):(GGBAppletUtils.scaleElement(Ue,1),Ue.parentNode.style.width=ye.width+"px",Ue.parentNode.style.height=ye.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(We),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}_t.onExitFullscreen=function(We,Fe){Fe.appendChild(We)};var Ce=function(We,Fe,Ue,at){_e(We,Fe,!0);for(var Xe=function(){var ze=[];for(Ze=0;Ze<We.childNodes.length;Ze++)ze.push(We.childNodes[Ze]);if(window.GGBT_wsf_view){var Re=window.GGBT_wsf_view.renderFullScreen(We,Fe.id),it=document.getElementById("fullscreencontainer"),Me=jQuery(We).find(".fullscreencontent");Me.length>0?(Re.remove(),Me.attr("id","fullscreencontent").show(),jQuery(it).append(Me),window.dispatchEvent(new Event("resize"))):Te(Re,Fe,!1),window.GGBT_wsf_view.launchFullScreen(it)}else re=at,Te(We,Fe,!1);if(!window.GGBT_wsf_view)for(Ze=0;Ze<ze.length;Ze++)We.removeChild(ze[Ze])},ut=We.getElementsByClassName("ggb_preview_play"),Ze=0;Ze<ut.length;Ze++)ut[Ze].addEventListener("click",Xe,!1),ut[Ze].addEventListener("ontouchstart",Xe,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(We),me()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Ie=function(){var We=document.createElement("div");if(We.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Fe='.icon-applet-play { width: 100%; height: 100%;box-sizing: border-box;position: absolute;z-index: 1001;cursor: pointer;border-width: 0px; background-color: transparent;background-repeat: no-repeat;left: 0;top: 0;background-position: center center; background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet.png");}.icon-applet-play:hover {background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet-hover.png");}',Ue=document.createElement("style");Ue.styleSheet?Ue.styleSheet.cssText=Fe:Ue.appendChild(document.createTextNode(Fe)),document.getElementsByTagName("head")[0].appendChild(Ue)}return We},ke=function(We,Fe,Ue,at){var Xe=document.createElement("div");Xe.className="ggb_preview",Xe.style.position="absolute",Xe.style.zIndex="90",Xe.style.width=We-2+"px",Xe.style.height=Fe-2+"px",Xe.style.top="0px",Xe.style.left="0px",Xe.style.overflow="hidden",Xe.style.backgroundColor="white";var ut="lightgrey";Ue!==void 0&&(Ue==="none"?ut="transparent":ut=Ue),Xe.style.border="1px solid "+ut;var Ze=document.createElement("img");if(Ze.style.position="relative",Ze.style.zIndex="1000",Ze.style.top="-1px",Ze.style.left="-1px",E!==null&&Ze.setAttribute("src",E),Ze.style.opacity=.7,b!==null){var ze,Re,it;if(!at){ze=document.createElement("img"),ze.style.position="absolute",ze.style.zIndex="1001",ze.style.opacity=1,Ze.style.opacity=.3,Re=360,Re>We/4*3&&(Re=We/4*3),it=Re/5.8,ze.setAttribute("src",b),ze.setAttribute("width",Re),ze.setAttribute("height",it);var Me=(We-Re)/2,Be=(Fe-it)/2;ze.style.left=Me+"px",ze.style.top=Be+"px",Xe.appendChild(ze)}}return Xe.appendChild(Ze),Xe},$e=function(We){return We=We.toLowerCase(),We==="html5"||We==="screenshot"?We:"html5"},Ne=["web","webSimple","web3d","tablet","tablet3d","phone"],nt=function(We,Fe){if(z=We,Fe){qe(z,!0);return}var Ue=!Ee;if(Ue){var at=fe(z);!isNaN(at)&&at<4.4&&(Ue=!1)}var Xe,ut;window.location.protocol.substr(0,4)==="http"?Xe=window.location.protocol:Xe="http:";var Ze=z.indexOf("//");Ze>0?ut=z:Ze===0?ut=Xe+z:ut="https://www.geogebra.org/apps/5.2.814.0/";for(var ze in Ne)if(z.slice(Ne[ze].length*-1)===Ne[ze]||z.slice((Ne[ze].length+1)*-1)===Ne[ze]+"/"){qe(ut,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Ue&&!we.is3D&&!we.AV&&!we.SV&&!we.CV&&!we.EV2&&!we.CP&&!we.PC&&!we.DA&&!we.FI&&!we.PV&&!Pe(ye.showToolBar)&&!Pe(ye.showMenuBar)&&!Pe(ye.showAlgebraInput)&&!Pe(ye.enableRightClick)&&(!ye.appName||ye.appName=="classic")?ut+="webSimple/":ut+="web3d/",qe(ut,!1)},qe=function(We,Fe){if(We.requirejs){ie=We;return}We.slice(-1)!=="/"&&(We+="/"),ie=We,Fe===null&&(Fe=We.indexOf("http")===-1),oe=Fe,a="web.nocache.js",y=!1;var Ue=ie.split("/");Ue.length>1&&(!Fe&&Ue[Ue.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):Ne.indexOf(Ue[Ue.length-2])>=0&&(a=Ue[Ue.length-2]+".nocache.js")),Ue=We.split("/"),z=Ue[Ue.length-3],z.substr(0,4)==="test"?z=z.substr(4,1)+"."+z.substr(5,1):(z.substr(0,3)==="war"||z.substr(0,4)==="beta")&&(z="5.0");var at=parseFloat(z);at!==NaN&&at<5&&We.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+at+" is deprecated. Using version latest instead."),nt("5.0",Fe))},Je=function(We,Fe){window.console&&window.console.log&&(!Fe||typeof Fe.showLogging=="undefined"||Fe.showLogging&&Fe.showLogging!=="false")&&console.log(We)};ye.material_id!==void 0?ge(Ye):Ye();function Ye(){var We=ft;ae!==null?We=ae:parseFloat(We)<5&&(We="5.0"),nt(We,!1),ne!==null&&qe(ne,oe),de=!0}return _t},GGBAppletUtils=function(){"use strict";function _t(){return window.GGBT_wsf_edit!==void 0}function ft(de,ae){ae!=1?(de.style.transformOrigin="0% 0% 0px",de.style.webkitTransformOrigin="0% 0% 0px",de.style.transform="scale("+ae+","+ae+")",de.style.webkitTransform="scale("+ae+","+ae+")",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 ye(de,ae,ne,se,ce,ue){var ie=null;if(ue!=null&&ue!="")for(var oe=de.parentNode;oe!=null;)if((" "+oe.className+" ").indexOf(" "+ue+" ")>-1){ie=oe;break}else oe=oe.parentNode;var re=0,z=0,a=0,y=0,E=0,b=0,ee=0;if(ie)re=ie.offsetWidth,z=Math.max(se?ie.offsetWidth:0,ie.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(re=Math.min(window.innerWidth,document.documentElement.clientWidth),z=Math.min(window.innerHeight,document.documentElement.clientHeight),a=re):(re=window.innerWidth,z=window.innerHeight,a=window.innerWidth),de){var te=de.getBoundingClientRect();te.left>0&&te.left<=re&&(ce===void 0||!ce)&&(document.dir==="rtl"?(E=re-te.width-te.left,b=a<=480?10:30):(b=te.left,E=a<=480?10:30),y=b+E)}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,ee=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,ee=40)}}return de&&((ne===void 0||!ne)&&ae>0&&ae+y<re?re=ae:re-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ne===void 0||!ne)&&(z-=ee)),{width:re,height:z}}function we(de,ae,ne,se,ce){if(de.isScreenshoGenerator)return 1;var ue=se!==void 0&&se,ie=de.noScaleMargin!=null&&de.noScaleMargin,oe=function(le){return le&&le!=="false"},re=oe(de.autoHeight),z=ye(ae,de.width,ne,re,ue&&window.GGBT_wsf_view||ie,ce),a=parseInt(z.width),y=de.width,E=de.height;if(y===void 0){var b=ae.querySelector(".appletParameters");b&&(y=b.offsetWidth,E=b.offsetHeight)}var ee=a/y,te=ue?1:z.height/E;return ne!==void 0&&!ne&&(ee=Math.min(1,ee),te=Math.min(1,te)),Math.min(ee,te)}function Ee(de,ae,ne){var se=1,ce,ue=!1;if(de.hasOwnProperty("allowUpscale")&&(ue=de.allowUpscale),de.hasOwnProperty("scale")&&(se=parseFloat(de.scale),(isNaN(se)||se===null||se===0)&&(se=1),se>1&&(ue=!0)),ae&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ue=!0),!(de.hasOwnProperty("disableAutoScale")&&de.disableAutoScale))ce=we(de,ae,ue,ne,de.scaleContainerClass);else return se;return ue&&(!de.hasOwnProperty("scale")||se===1)?ce:Math.min(se,ce)}function x(de){var ae=Math.min(window.innerWidth,document.documentElement.clientWidth),ne=Math.min(window.innerHeight,document.documentElement.clientHeight),se=de.getBoundingClientRect(),ce=(ae-se.width)/2,ue=(ne-se.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,ae){var ne=de.querySelector(".appletParameters");if(ne){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ae.id!==ne.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(de)}if(ne.parentElement&&/fullscreen/.test(ne.parentElement.className))return;var se=Ee(ae,de);_t()&&ne.setAttribute("data-param-scale",se);for(var ce=null,ue=0;ue<de.childNodes.length;ue++)if(de.childNodes[ue].className!==void 0&&de.childNodes[ue].className.match(/^applet_scaler/)){ce=de.childNodes[ue];break}if(ce!==null&&ce.querySelector(".noscale")!==null)return;var ie=ae.id!==void 0?ae.id:"ggbApplet",oe=window[ie];(oe==null||!oe.recalculateEnvironments)&&ce!==null&&!ce.className.match(/fullscreen/)&&(ce.parentNode.style.transform="",!isNaN(se)&&se!==1?(ce.parentNode.style.width=ae.width*se+"px",ce.parentNode.style.height=ae.height*se+"px",ft(ce,se)):(ft(ce,1),ce.parentNode.style.width=ae.width+"px",ce.parentNode.style.height=ae.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&x(de),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(ne).parents(".content-added-content"))}}return{responsiveResize:pe,isFlexibleWorksheetEditor:_t,positionCenter:x,getScale:Ee,scaleElement:ft}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var _t=n.location.search;return _t.indexOf(J)!=-1||_t.indexOf(K)!=-1}function q(_t,ft){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(_t){var ft=s[L].bindings;s[L].bindings=function(){for(var ye=ft?ft():{},we=_t[webModule.__softPermutationId],Ee=O;Ee<we.length;Ee++){var x=we[Ee];ye[x[O]]=x[P]}return ye}};var t;function u(){return v(),t}function v(){if(!t){var _t=o.createElement(Q);if(_t.id=L,_t.style.cssText=R+S,_t.tabIndex=-1,o.body.appendChild(_t),t=_t.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var ft=document.compatMode==U?V:W;t.write(ft+X),t.close()}}}function w(_t){function ft(we){function Ee(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var x=Ee();if(x){we();return}function pe(){if(!x){if(!Ee())return;x=!0,we(),o.removeEventListener&&o.removeEventListener(Z,pe,!1),de&&clearInterval(de)}}o.addEventListener&&o.addEventListener(Z,pe,!1);var de=setInterval(function(){pe()},$)}function ye(we){var Ee=u(),x=Ee.body,pe=Ee.createElement(_);pe.language=ab,pe.crossOrigin=W,pe.src=we,webModule.__errFn&&(pe.onerror=function(){webModule.__errFn(L,new Error(bb+we))}),x.appendChild(pe)}ft(function(){ye(_t)})}webModule.__startLoadingFragment=function(_t){return C(_t)},webModule.__installRunAsyncCode=function(_t){var ft=u(),ye=ft.body,we=ft.createElement(_);we.language=ab,we.text=_t,ye.appendChild(we),ye.removeChild(we)};function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(_t){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(_t){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(_t){var ft=c[_t];return ft==null?null:ft},r=d,webModule.__errFn=e}function B(){function _t(de){var ae=de.lastIndexOf(rb);ae==-1&&(ae=de.length);var ne=de.indexOf(sb);ne==-1&&(ne=de.length);var se=de.lastIndexOf(tb,Math.min(ne,ae));return se>=O?de.substring(O,se+P):W}function ft(de){if(!de.match(/^\w+:\/\//)){var ae=o.createElement(ub);ae.src=de+vb,de=_t(ae.src)}return de}function ye(){var de=__gwt_getMetaProperty(wb);return de!=null?de:W}function we(){for(var de=o.getElementsByTagName(_),ae=O;ae<de.length;++ae)if(de[ae].src.indexOf(xb)!=-1)return _t(de[ae].src);return W}function Ee(){var de=o.getElementsByTagName(yb);return de.length>O?de[de.length-P].href:W}function x(){var de=o.location;return de.href==de.protocol+zb+de.host+de.pathname+de.search+de.hash}var pe=ye();return pe==W&&(pe=we()),pe==W&&(pe=Ee()),pe==W&&x()&&(pe=_t(o.location.href)),pe=ft(pe),pe}function C(_t){return _t.match(/^\//)||_t.match(/^[a-zA-Z]+:\/\//)?_t:webModule.__moduleBase+_t}function D(){var _t=[],ft=O,ye=[],we=[];function Ee(de){var ae=we[de](),ne=ye[de];if(ae in ne)return ae;var se=[];for(var ce in ne)se[ne[ce]]=ce;throw r&&r(de,se,ae),null}if(__gwt_isKnownPropertyValue=function(de,ae){return ae in ye[de]},webModule.__getPropMap=function(){var de={};for(var ae in ye)ye.hasOwnProperty(ae)&&(de[ae]=Ee(ae));return de},webModule.__computePropValue=Ee,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var x;try{x=Cb;var pe=x.indexOf(Db);pe!=-1&&(ft=parseInt(x.substring(pe+P),$),x=x.substring(O,pe))}catch(de){}return webModule.__softPermutationId=ft,C(x+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase=window.ENV==="build"?"/react/build/js/mathematicalGraphics/"+name+"/":"/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},67303:function(_t,ft,ye){"use strict";ye.d(ft,{Ax:function(){return pe},Ds:function(){return de},KI:function(){return ne},SI:function(){return x},f1:function(){return Ee}});var we=ye(90524);function Ee(se){let ce=!0;if(se.length>0){for(let ue=0;ue<se.length;ue++)if(se[ue].compile_success==0||!se[ue].compile_success){ce=!1;break}}else ce=!1;return ce}function x(se,ce=""){let ue=[];for(let ie=0;ie<se.length;ie++){let oe=se[ie],re=ce?`${ce}/${oe.name}`:`${oe.name}`;ue.push({title:oe.name,type:oe.type,isLeaf:oe.type!=="tree",key:re})}return ue}function pe(se,ce,ue){for(let ie=0;ie<se.length;ie++){let oe=se[ie];if(oe.key===ce){oe.children=ue;break}oe.children&&pe(oe.children,ce,ue)}return se}function de(se,ce,ue){let ie;return function(){let oe=this,re=arguments,z=function(){ie=null,ue||se.apply(oe,re)},a=ue&&!ie;clearTimeout(ie),ie=setTimeout(z,ce),a&&se.apply(oe,re)}}const ae=!0,ne=we.Z.API_SERVER},47206:function(_t,ft,ye){"use strict";ye.d(ft,{Z:function(){return Pe},U:function(){return Se}});var we=ye(59301),Ee=ye(31797),x=ye(43418),pe=ye(1710),de=ye(2610),ae=ye(72664),ne=ye(61186),se=ye.n(ne),ce={exitFullScreenModalWrapper:"exitFullScreenModalWrapper___aNB9Q",exitFullScreenModal:"exitFullScreenModal___HIMyY",warningIcon:"warningIcon___xEURa",warningText:"warningText___W6NPJ",countdownWrapper:"countdownWrapper___n8g1M",forcedModalWrapper:"forcedModalWrapper___JPMQ2",forcedModalContent:"forcedModalContent___uY5FV",forcedText:"forcedText___C3CrF",screenNumText:"screenNumText___oljHN"},ue="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJwAAACwCAYAAAD61gcAAAAAAXNSR0IArs4c6QAAIABJREFUeF7tnQd4XHeZ7n9/zUgzkkZdsiX3XmM7xWlONYE0AsuyEMizwAKbDcuFAMvCXvbuEpwsZeksBNilLZBLKIGQUC+EVEKSTYN0O8W9W26SrK4593nP+X/jvyd2LCeOZMbR88gjz5w59T3v933vV47jpZ+XzsAIngE3gtsqiU3tiaJxFYNMzufZk6ngEZyLSuLARuggXgLcME90FN2aHST34fTQjDeQqplOfqibsp4/QOqjztXcMczVHPWLvQS4g0IgclH0eDm7HvsBmca/pBvI5/OUVZRRXQ9l1bupqHq9c+NvOuiqXlqAlwA3DBBEe655J71lX2F3T0Q64yjLQFkVuHREqttRXfkYVa2nO3fcrmGs7qhe5CXAHeTyR7eSpmHJvQxWH0dqLJSPgXQjpFuIgTe4ISLT42ia8XKXe+vNRzWahnHwLwHuYID7ERWkWUk540k7yNZDZi6kp0OqHIa2RFT1OSa+/H2u7kP/MYxzflQv8hLgDga4X5Ghi6epYAJpIAtk5kB6JpRlIWqPqBp0THrlP7v6D/37UY2mYRz8S4A7KOBmZNjzdAK4lACXhuwCKJ8KzgOuetAx5cJ/drkPvAS4g5zPlwB3MMA9NSPDQ08/TbkxXAYyx0L55MSHi7ZF5Jxj8nn/4qrf9/Fh3ORH9SIvAe5ggLv17Czttz9FJvIMl4XssZCelAAu3x5Rg2Py+f/qqt/7saMaTcM4+JcAdzDA/ejUSrhHgBsf+3CVVZBZ5AEnkyqGwzH1wg+7ynd/dBjn/Khe5CXAHQxwd51ayYZ7nqLCAy5bA9mFkJ4IKfPhIjHcFa768n87qtE0jIN/CXCHCrhKySLzPeDkw22PyOUdk87/iKt+z1XDOOdH9SIvAe5ggLv/VVWs+sWTBYarrIGKBVAhHy4L+R1Qk4cp53/EVb77JcAdqVFqFK09F8bMyJNJl9G/fv36il9PnOh6jqjbP8JFvz23it03rdjrw9UmgCuf6HW47ZADpp6/zFW+68ojav/9zvRHO48tp2JxnqraiN5tKbI3O+c2jsa+jjjDRdE9tfTs+hplba+joimFK4dI0V73vQOp/Hsr3IR7RuNEHGib0a1n59hy+wqy0bgkaKhLdDj5cIpS2QHVeZh63jJXefkRBbgoujVNvvzTDLW9lfKqeoYiSKVhqHv1UKr3g2k358cjfa5HFHBRdH85O1b9F2VDb6OjH8qrI1IVDpeNyGYc5anVwNmu8rQ1I30iDgi4x16f45Efr6AyGhcLv5XVkD0e0hMglYGhdshFMO38K13l5cuOlP1eFi0r+8iO2Z+nvOo9dA0BZVFSqlEG6byjqnYXUdVZLnfKwyO5zyMLuBXvX0S+4gEG8mVk6h0VjZCqAVcN+V7I5SHX/PMHKhr/arFbPDCSJ+KAgPvVBbXs+s1yqvJtCcM1QPYYD7hKyG9LADf1/Ktc5bs/ciTss/Yh2v29C+mNbmTHlhSpCMrKHeVNybkebIfMDqhr/OaVn7n0smXLXH6k9ntkAffQWe9kx2NfoawhonKqo7weUpMgMxnKG8H1QUNdRKb2Ulf5im+N1El4ru1E91xQy6rfLCebb6NCqa1myM6H8vFQJsCJ4YZg8rlXuer3HBGA64p+2Vq9fdcd7Noxk96tMNAOQ7sgVQeZCRANQH6lChFWMeOLs5xzgyN1rkcWcLdP/QBbVn1aNyBZHJUZqD4JcqdA5Qwor40oU6lPaztVE09xbsEzI3UiDshw97++jqd+8kQMOLlsla2QmQflbT5K3R6hXOqRwnAKdHb84Kv097+DHWsiBnc6+lbDwGYY7ICoHxiEdC8wbx0DN01zS0sVcN/MLWVL1y2UE9GMowGobYTcUsgdD1k54mVQCdQ03XhbZfaNS91SnZlR+4keOreaR256MvbhyoGqasjMgvQUSFfJpEZURY4JF17pGv5h1H24qPcnr6Sz/6fsWJ9moMPRtxb6N0L/JuhbBf17QJhTqVXTOTdf/IWbzrvuOicnb0R+Rpbh/os61vA7IhYzFmgB6gW6OZA7G6rmQsUYoAca6xURXuYqzvn6iJyJA2wkWkYFtTxNJRPjG0ESiCpG0k2QrpSzFJFpdEx666Vuyoe/OZr72hn9qCW3Pfo9HTtn07s1on+ro28NDOyAgQ3QuxZ687BHTD0xT/0rX+fO+c+fjuQ+jyjgYmf2U5lz2dGnKrMUrR50tRVQswSqT4aqGZDORbg9jsaW7eSmnObcohUjeVLCbUWK7f6p7Nv05N9CLVAn9vV1cQoiIiJyU/ppe+sxbsmyp0drP+Nzu/PHX6Kv992xKR3a7WKADWyF/m0wsBp6O6Fbe5x1VJ154201v3nd0hE0p9rHEQdcfGI+VPYl8vl300REC44msVwL5F4G1YsSx7YsgioHVU03Pp2b9YYZzOh3o9SSF72J41nBnfI6mUJEHY5aotjE1mYc40/5CpXveo+7+OIRM03FwI4GfnEeO7t+yY61KQZlNtclZrR/JwyI2TZBbxQbD2oWb6P1rae7k9/95EjfIKMDuGWMocP9gUw0g1YPOjFH7XzInelNazPQHdFQ76hqudRVnDWq5iqq5BJ6uJoqGuNoVf5nq4Mzxt/Aa5b9rVty6Y6Rvni2vSi6von2wbvo2jGL7s0wsB3610N/OwxsS3y33r6E3TITHQ0XvMO97GtfG439HRXAxSy3LPVq9gz9lGrKCqa1Jgs1p0HuRMhOg3Q1lPVAQ/PWrprWpTXulMdH4yQVLizMBd4MnAlsYUbqh7znf93o3vOlvlHdr87rv0B393uTqNQHCjHQdkD/6uS1h4h8haP6nF9x0Wf+0rn5Ch1G/GfUABeD7p9TX2Fo6J2xaR2Do1F03wI150C1EuRS84moLnNkG294oGb9xSdw2eBomdYRvzrD2GA0+LOL2L7nZ+zcAIO7HP2biX/Fcn0yqxuhJw+K9WtO3sGEt53hjv/7UbtxRxdwX6SFde5e0tGUOGpVgKqotWaej1pnQblMa29EU4Mj1/b3LrXkv4ZxHY6KRaLo5820995F5/aZ9GyBwR0JyBSV9m2B/pV7TWl2oqPmVZe7V3zl6tE8OaMKuJjlPp55NTv7rqfaR63CV10WqpckprVyemJaUz1Q17yls7btzFp38og7u6N5kQ607ajzhqvZs+dd7FgbMdTh6BXYtnh2Wwt926EnSkxpzYW/5cKf/oVzblR1zVEHXAy6/5O6hvzQm2gITev4JIDILUwEYYnhtWnINH3P5S5405EIgJHcp6j7J6exu/tWOrakY7+tX4wmgVfstiGJUnuGkqi09qQOJrz9THf83z80kvu4v20dGYD7euUEnuq5izQTY7Mam1YHuUVJEFE1R2kvGNwIufTu/raFp2TcectH++SN5vajp9//Hfq738JAOiJyrsBsAlzvU9DXlQQKFeMcuVf/b3fuf35KmqJzjOq0pyMCcDHLfbTyDezuuZZqHK04YtNaCbklUDk/6QHtXxfRUOaom/fXruVfrh3NCz6a246iKMPNY26iv+MMyhsg0wKpHAwNQv/WxI/ryUcMlDvqX3UL5//kVc45jeEZ9Z8jB3ARKf4l9X/JD72RRq/NSevKZiDdClEFDG6PaGxxNF70Fjfzs9eM+tkbpR2Iol9l+MZrbmGwf0mcbqtWqioN5Ro9MQh9A9LcoO60LlrfssQtfscjo7Srz9rsEQO4mOW+Wj+FNbv+gGMczZJDcHGFhgoftadSjrJ1nSx4z2lu4b8dMSdx5C9m5KLLU98nlX8D9SR9sUq7VUGc/RiUwDveUXvxP7lXfF7VOUfMzxEFuBh0y3KvZWf3j8jnU1SgTKaLT6J8jyEll8b+0C3bfAkc3ZMno79gCc9wG22UM5GIel99I9A11MP4i25ZP++ai460PpEjDnAQlUX/Wv82NnZ8hp1RPRuStoFYuGzlThbyBvctRqUB5IihCb8jEbyTFJ+lIc7xwjwHs1pg6im/JnvM37q/+vimI22fj0DAxTznon9w81jHRTzFfFbTxW4eAH7ooGskTuJl0WXl//V4OsPd21SeVEFVWzNRahwDla305ZvopYfe7i0MDW2mx22msqOD2W2DTOnudTNHLtUVwSmUcS7HMpdTGzcy75y7r2v50c8uvtiNSurqYNfmCAVcsNuRuj5ik/qi1d1H0bIyPnNXJdmauXS6E9jR20ZtVsV589nTP56BgTRl+RSD/WnyQ+nYtLuUxq0OUVk1QDozRG0uT31NB7mqFfS5R6FqHWNyT5IevI/8ozvchS8iCCPc66HsOhflj3RX48gH3MFumef5eSQgf/68xWwYOJls5VJ2DZ3KUEVtPDxkSEPgKohbGF0FDAxC1x7Y3aHXiMG8oyINLc3Q2AAtTZCthEw5ZCuSyLq6GiqzQ2Syu6mvXg/pnxMN/JHuzbe68y8etcqS53m6DtvXji7ARcvKos/ddQrd+aV0Rm+gu2wq/dkcg5Xg1G9aDzWNEbkaR1VOgIG0pIYItm2Hh1fCnatg+x7IVcKZk+G4GTC+lbg/Qz/5IRDR5KNI1Zmk046qKqhTBXOF/r+BVP4P9Oz5CWU7fueWnH9Uge+oAFx07TljWc357Bz4e/akFtJZXkVvFZTVQ21zREOLo6EhKWuvqYVcFVRlE8CJySIH7Tvh93+Ea++DTVuhoQZevQBecTJMnQAVAuYQ9Et87Yde/fYmyfO+Pn0WUZZSX6uLo8hsFoYGVkL+13Tv/p674Oy7DxuNHMErKmnARZ86YTrb+95OR/YNdFVPZ7eGQNdDrimiaYyjuRmaPdAEtvoaqM0lYJNpTKchlUo0wO4+ePhJuPkueHoDjKmF04+DU0+AMY1Q5sRqMJRPTHD/QAK2nl7YvScxyXv2JP8XMF06Mbu1teBcP9HgTZTxRV5x8u+cG7k+0ZHGZkkCLvrsiRPZkn8vHek3sbNqLF11kG6IqGlw1BvA6qBJ/ldj8iqw5dSRVQ7l6aR7TCCSWVS40tcPqzfA/Q/Dhi1QUwUL58KC2QlIU2V7C/a1vCyqgDU4lHx3Tw90dMGO3bBrN3R0J6BMpSKyWUdtXbLNVNnNVFZ+0p11zO9K8Sk3JQW46LsLq1mTvYy1qQ/QUTeOwWb1REBVTWIeNaahqhIaa2FMk3f666DO+2syi8554Aho9ptPmGn7Lli/BTo7IFMBY8dAawvUqnwqlYAuBo3WYQB0e8EnM9vTk4Bu245kfbu6YGAoMd1VVRHVNS5m1lzNjTSN/Te3sEVyUMn8lAzgomXHXsi26qvYVXcCbiLUtURUVrnYb9KPAJFRCXsuMYGKLBvqEn9NDr8uuEASO/7y92PHfy9YYjPpfTOxloAl0Mn0VlQkYIt/JZe4ZGhM2v/fgCi2NMbr7ILtO2FLO2zbCZ09yfaylRHVWaitd9TUdVNf9x/0V/+7O6WpoxRQ92cPuOjqOU08Vf9RuhovxU1JUzc+ojLrYpOmiyvzFk8NksOehboaaKpLAoTaGqjSkOiMN4liJm9GFShYJU8ccIrt8omPpvcFTgFLwLO/Y3bU+5oZI+BpcIx+5QuW7TXVQo7MbW93Yl637oBN22DrLugZSJLwtbmIXLWjeYzY7lGqqj/gjh33mz930P1ZAy76x/kn0j/+PxmYfDx106GyMmLLdsdAT8Jk+TIY9D6YLrrMqcynwNZUmyxTLf1MAYKCAw84vQpgBcB5n0wMVCgn86a38B0Br/g9vz4BU5/FAEwlwNOrgKmbYk8HbN4OG7bCxm3J331D0NYCY5sjGhsddQ2DVOWuoi31GTdx4pE1R+8Q7oL9Ay6K3JHusEbvO+FyusZ/jKYTamgZD9t3R9z2qGPFephVBcfOgCib5GB1oSXGytdqqE0A11gDNWK4LJR7NorZTT+JhBabuIKJ9WAzzBXApSyI+WwypQY678PZOuP15T2QXQI6mWMFKapD6N4DW7fDmnXw2NNwx1OwGzhtFhw7NaKx3tE2Xqb2N2zb9HfuvJPWHcJ1PmIWLQAuiu5qzNNwWRlNr2MgXUm6qh+X+lEv266tdOOOnHlty8iy8owvUTP/UiYsgNq6iKfXO35yD6xdDWVpOH4MzNTQ52oYKk/8tPpcAjb5bXXVCbNVVkK2PPmO2CYGRQAMA4hMsnw6M61aTmeuYELFXp7B4ug2NLe61hY45L2ZH0pMqsy8ApUC6LqhfRs88ST8+mG4c11i7s89Bs6eB031MG685pssJ1f1d+7YyXceKUiKoqhsiEfOT9FwGfncDJ3QfFn5I2Vs/aJzUwoaYwy4KHpoDF1rrqMsdSb9uWSyo9I6WYXquXWkMt+E/Deda1o/mgcYfaKugWeO+yYtS/6SCRrs7CKeWe/46X3wlKZBDEJ5HSxogvEtoAHQuVpoEaNJZ8slGYK4qDOVZBFCdpN/pl/z1QSKgv9mfpz8N38WzJyGJrMQrfqoNZZLPODEmIODyTb0aoGJsaXe29MJq9bAfSvgwc2wdQ/U1cFfLYCZkyThRIwZ4xjTupva2ne6uS3fH81rsiyKyv6Vx89LMfh+erpfTr/OmfdhxdwVrod0/r0ufVo8I8ZFMp8rr/4eFalL2NMekWlxpPQc0Kwc34iKnCM3HtJ1qxPg7f6mc1NGvOwlWtYwiW2nX0PrGWcyfkZEb7dj1Qb440q49RkYUoZIIMrB3AYY15TIFm3NMKYhCRAUjQpoMQh8VBmbPAOEB5yAFou4/tWi1UI3gFFcMlAy/kem1FguBp0xnplr7wcWol9fiyAfTttRla5kk+5u2NYOazfCrj2JH6oouK0pkXPq/e+YZmib0E9P33vc0vkj3jop3Azy1DnpqOsD9PScF09l6tyhwZLJyUlpdp4KVnZDfUtnd23Dy6rdufe7aN0HZ7LhsbsYGGimqhkyYyE9DiqaIV2ryYk6n3uBV16/krL01+na9S1XM2PrSNxd0bJJ09i15IdMOGsxY8dH7NrpWLEGntwEa3bD050wpOb3IaitgnlNMK0VJo5NwKbgQP6SgFb4CdzXOAL1WYKY3XxEGvtrntns7/CAzT8Lg42CaTV/znQ5i4CNHYMVCYSSXQS4Pd1JkcBgL9RWQqsel5mBHV2wsyMBptyBpvqIxgbHmHESlv/RnXvs50biWsSlY9Hysxjs/QB93Rcy2O3o2K65c1H8t2bQDXUTk5b6LAa2RlR3OFJNn3HjP/hBF9016Ry2bvodgwMRNTlHtgUyM5PfrKZTjknGosZ+Th4qpMhPUBfVGlKZr0L6a87V73yxDjZ6//SJpM68nklnL6apMWJru+PRZ+DxjbC9FzoV5WkE1RBUlsH0Gpg9Bqa0QrNManXioMdgM8kjCAgMbAJaLPTKVwujUv93HEgEUonWFZrW2F54ltMHBclEBFgUre6znPmDul/ySQqtrwfKIxjfCON082ehvQPWbYZ1W5LcbHVVYl6bGqG5zTE49D738gUv6uMzo+jR0+jv/SB93a9iqKeMrl0RQ30uHpc7IAFb0fWmpDdWrF8+DvIdkNoC6Vnfdwu/+iYX/YrjWMVtDFEbD2hRQ0bWQeW4ZLRo5exkmlEMPKVwJJBGEeVVjpyWaXwm77Jf69jV9LWGBndYn4gcva++nvTrbmDGy86KTeKGTfDgk/D4VuiK00KJziXpQ78NGZjaDFPGJGCTgCpNq1j1L7CWl0wMbAa+OJ3lI9UCs5kZDcypjwdi5BWCiIDJYqD5KLmYBcP3Y3B69KraRL6cZgQ2VsG4sUnJ+JBL9Lpn1sGm9iRdZqAT04n5M7WXuZPHf+Nw3/wD0cNnpgf7L6e78zXke9N07YjiqhiBbbAz6YXVLBONmNC0TQ3PGdijdCK4fEQ2cqQu+k+35Lv/y0XRZeV84pu30z10atyQoedGaf6ZauM1eK9yAmTnQXbGvsCL79IoMbV1E6G8ZXneVXx+BwPfb3EtnS/0oKMTKOf0t36Xea94I42NEavWOv7wBDy8OQFQSw6aqhM26h6AgQForIbJLTBGYKuEcplR76MZOEzWsAg0BlkYmRrQvCkND6SAOf9HwSqbfrefYCJkvnhXfARrLGevxoJaRp1X8us0pUnyzbjmpLxpIEo0uqc96LSMhOxGmdcmx4SpXVRkX+uOG3vTCz3/STC5fDH57svp3XMx/Z1ZOndGRNq3fhePBBvcCX2aP6cm7A3Q9wz0i+VEAD7ilzvWMC9i/CWvd3M/fH0Spf5H3Tls67qRoaFqKj3oNOlRv2pDk3Sg7vfKAHixj6fpRjJVA5CthdpJUFH/8BADH0m7qTc834OOllFG59u+ysyzL6NprMAGNz3s+NMWqMvAnFaYOja5w+XzbNyRVGPUVyXOtaLRuNrDO+xm+wpZBPPNAtNpeVPT4GIZxMzpvnpvwTT7YuSE3XzwUPi7iPVii27isGc0Y8XCZ/6MxVGsBj8PQrYMWuthQltSWSJBWPlcgU4pMe2DSqUafPTaMGYVRC93Z8xa+bzPf/ftE8lUfIS+wTfS31kd+2j5oYi8gNatoTnJkMN4fsma5LevHfrli6rQIe5BiehXf7Fcmwuuv679W5eo7N3fo5GLvjLzdeza9kl69kyNKb3Kt+nJxIrxYuBVQOUkUPV1drpnvObE1MYnbwiyqiWry5N2H3cVp1/xfATk6IOvfDuTL/oGrdNhzVr45f2O32+Btmo4dTIsmA5tYxLTs24jrFiXRHRVFUnZUIMA52vZLCK1ixtaxmLJw8ReXztZEIDju3I/zv6z/LggU2GMWmxqC/6b+XYFu5xsQMyr45KfNtCfuAz1lQlzC3QqDO3qhTWbiKP07R0JIUg6aaiPaBvnyFTfS1nVeW7p1EN2caKe30yld/eNOLeAjl4PtEHHkIYcynRqBJj8SE1mEtA0qckDTUGpciACG+WOypkRk5d8j76z3+UufFOcC94n0xBdc0Ibuze+m46uv6W3d2x8l4nx1B9qZlamVvJCdgpUeuBVjIeKJiiv8cnudnXND5LJXORybzik/F/0nqUnMO4VtzBzcS1btkT87F7H79YmA26WToOT58OsqUmGoH07/Gk5PLIaNu2GynJoqYZmsW1VorcpKW9a2D6pK48iM6nmv+3Dal5zO9BwhEJmwgIIT2/xWbVAwQcTMQEGnxciXH8VLGBRtBqXM/UmFSraL7H6hHqYNg7GtSXl7Ns74Zm1sGYL9PQl56Peg27iZEdZ5stu6ex3HwrLPRb9qGLe6o2/BvcyBohIVyUBgaZoitE04FAzS/pWJqZUN4ZAljBa8quezswkqJ5zE7WLPu2+/bFbCIZW7ze1FV0zfwadnZexu+tt7OlqZqjfTxb3QUXB1KrkZ3LCeJWKbPXsgjpFKxEsd5RVX8ecL7xxuAWF0ZupZu4HbmXWy0+kY3fE/7vfceNyiMrhrCmwdBEsmAVjmxK9Sif8/sfh3lWwWiPhI5hQBeNroEWgU19BZq+4axmAECjGZsZ2ifOyl9GM3YKs194SJruc/sNCaZM3n+a/PQts4b1uFSnejPb0Q1cP7OpOaujkp9WWQ1sdzGiDaeNhrIYjuyR4eHINbJIGGSV1eWI6+XRj2oaIyt7szlv0g+GCLnrwdefQs/03DGXKyM1yydBsMa2CFPPRNA19IAGazKdAFg+RkNsVA+026ud9evFPP3XTA19zz3q4y34BZzsYff34uXR1vIs9u99E7646hqQBBaZWwIuDC6WJpiXj5DV1WUNn9twPNW2PMf6TZ7jJFw1LNomWvf0TTL/gQ1RkI+74o+N7D8KuXpg/AS46Hk6cD1PHJX6jEt2PPgV3PQq3r02qanXSxWoTczClDlpqkvkkMq8mjRQKK4sOPQRZIXEfLBPmRENgxSfLABewmTHcPhGsLeuZs1D+ZDpcH3SoXk6Fml2wuy/JRuRS0JaDaWMT0M2YAA2NSWXJyvXwzAbY3ZmkwRRE1NVGNDc5mlrW0DW0xP3F8cPq442+ln0r1b3/TcZBjZ64Iw2wce+8Epl5BQNitMR0QqSc8GSomnU3DQv+ffHaT/76gXc8G2hFt+Zz3wPR109eSOfmd9O5+xL6OnNEQ4mPp4g2DC7SFcmD2vq7YI/u3Po/cvI/n+Xm/O+DRq3Re889mXmvvpnWOVU8+qTjO3fBk5vlDMOF8+GsE2DetCQPuqsTnloNf1wBv1sOT0j30W2mcFOVGFUwqRamKK1VlwioKkOKswzSEwOn3cCyj7DrMw8mVZiuFjKWAamgkphZ9UnZ0KwW/vaAM0DHArP6IHyWQWCTqdzSBZtVL6foOw91KZiUhen1MKsNZk+EyeMhUwXbdiUst14mTmwollOpfG3EOPlz2e+6Vxz3N8Nhuej9vIU6vhOrFRqcbdPaNSrbgCb/rBvHkMq9pkDtvPuom/2Zxyd++ob58w/eC/ucDFe8k9FX5x3Hnl3voavzjfTvycYOrhhPwFNQoTHyIlENL96Jo6PsW+6LQ5cerFcyej2VnPSvv2HWmWewY3fEDXc7fv4Y5B2cMBVeeTyctBAmtCTmbu2mhN1ufxRu08MuVFYhhtNP/AS2JHE/rgZmeqar0UPZfORaSG8FjBSDwMqSAqG2kIi3Wjcto9Om51cFkksM9gNkMkIGtG2IuQbzCdjkg6kAMwZbJ6zphM19kNfJjB/MBnXlMFtpuxaYNzEpTlB6S4us3QxPr4UdqkTOJEUKOckldRGtbYNU1lzszpx9UNUgejuL2cYdjKOSNkimywfXVWAbKHOxG1W38BEaZ3969bRPXjd16vCHHB4S4JILGrnoa3NPZceu99PV8WoGe8qJ4i7PxK7ruu/A0es20xSd4/6bg86Tjf75zX/Hgou+RlV9xP0rHN+8M+mMqmmEVy+Cs8VuU5M+gp2d8MRKeOAJuOkJWC12E+DE857h4gk4VUn0PLUWpsqvUTlSdm/tWyyZeMDodR89V2kpr5epjs7klX2Cj2I/zNjL4z6MagVmC1gEOMvTxuksga31y7p1AAAgAElEQVQ7MaFbOmBNB6yWxqXj0Qm1/u9yaK2CObUwrxXmTYZpExN3Roz/5NqE5bRu5VsllNfVJIn+mrqH6Bta4l61+KAju6IxfIWxvJOZRIyPx6ZFMehSzlHRKh/taVpP/DIv/8A3nBtzyFMQngfg9vJe9OXpS9jd8Y90dV5Ed38FHerfdNBb+T/UVXzQ/Xjn7w9G5dGHTm+g9VX3MuPEGWxuj7jhLscv/BMV50yB156YsJvyorpwqzfBQ8vhtsfg7jUwuI1k+oNNNhDNCnBqZlavQg5m1cG4XKLPKfugyNVYLhZcg/4Dky2UxZDfZ+VD8fIepLH26AMLT3bxcQob+9S/BSJyHDh4Hc6qRuR8xwFCJ2ztgPU7YZXYTbgwwInh4vILcBmYnIMFjTBvAsybkhQoqCdi9UZ4en2SGsv5ymbV+wl448fpu+9yFxz3lYNeD2mg3+OTjOPvmUSOiRni7rbW2StIjf8Wdcd9w53//ufdS/uCAFdgvM+Pm8NQ+2L6Wmrprvwjs5c85N5yjdm45zzG6Kp3vp/5F3yWQRfxwIOOe++FB6X11Cc1YOedlESmqpTQhXliFdz3KPxqOWxV0YriEW0qvtpJx3wMOM9yAp2i1qnKTOSgxtfAqQYtLgMvynvGmQDlAVNed/SsqOVjwAW1cDH5ePaKGdJXiMRm0+dr45InT3dx4JJKWEj9qwKHOrl0XNs6YMNOeHo3rOuESB65aQ5Gv3LQK2GeZ7kFU5MgqrIqSXs9tRa26nxIiNepyMC4KTBJPR4NzzDUe6K76IyDB3B6QNybmc6s1EmMmdREw6kPMeW8x9zJf7P9YIA92OeHAXAH28SBP4/ed3Y9s/7iISbMn8Td98Ndv9Wzq6CnCoba4ITj4eSFMGtKkhNdvynpDb3pEbj3meTRkSgesTnJ8t90pgU2KdZVUF4FE6phrO56TdRURC0B2wPIzOU+VR6e3RTxxt1eFb4fwfeomqtm7GbmUiZXJth8Ofl6lqeNiy19r6tALQdffttu3zq4fTds2QXrdsKTu5Lu/jgUNP1BG9OGy6GhGhY3w6LJMGcyjG1JdDtFrCvXwO526N4Gq3fApLlwwVkRM6apoegf3PknfuH5X7EX/s3RBdyV77ychRd+kQ3bI778bccz98FY9Yqq0HAGLDoBFi9IEtgSQxWZ3vMo/OJx2KFaUDG7LoxCKF1ogU06jX5rkkbjSTXQLJbyZlQAkzKv/8u0isn28dF834HekzkV2MQUWq4gHPsTH2YR4vZAb3YLDdRliRug7yk6lkNvEo2YT5qbtDaBTQ00ah/ctB1W7YCVHYm/WgCdPVVJ26iCuXVw4kRYOAOmSP8sS4Kpx1bAmqdh8yZ4ROeoAi55PbzydEkpyxmoWOIuWnhwlnvh2NrvGkYNcNGbx1Zz0j/+kYmLZvLdG+H6byfShmZ8jJ8H8xfASSfAonlJk/LO3fDQCrjlEfifp2FI5lTBQty04HNvYrXa5EG0rRJKG2Cs78xSRNip0Qv9ieWNQaeeAgHLgy4szIwrUTwow6JNA1kokZhpjgMMgdibzkKQYeCtTPK/cUm5TKse2OGFXulo28RyaqZph1Xb4cmdCQPuAzrtQHnSj3HmODhxFsjXla+mlsM/PQ5/ehQeXQvb1RmwAyYvhff9dcTsGY7q3FvdWcd850XC00FXO3qAu+qv38Sc13yHTV2Oj13t2Gr9vrWQXQBLT4TTj4V5qsurSHKH9zwMv3wMtq0FZE4FON35MqEKpRqSJ0vPa0kG87Wqo17vu8R8Kcm/RRUOSopr1IJMqxhMpea+pc8S7LF5lD/nmS3uNfW2VKayoOUF1R+FsnUDnPmIYreKpGssBpwYtzxhVv3In1O0KkYT06llcMM2WNUOT6hnVaATk8u8yp/TeithUTOcNhMWzYLW5mS5x56C3/8J7n4SBlYBW6FsJrznHXDascpC/P6BuuPPWbz4wOLsQVHzAhYYFcBFZ5PmtVfdwJSTX8nP7oRvfAmwPHMduEVw0anwshNg+sTE31mxEm7+E9y2HAZlKhSdGrtJoWyEVBvMGQPHT0hKzFsEwEzCIjJbKzfBE5thZ19ShdGiTq7AR7OG5X3ynIF0oiDBSsnDIktrgI5bAAOzakJzgS096OQXyj9U/lOMGEe9Opx+2KWWwZ2JLLRxO6xsh6d3Ju/HoLNskaLHOlg6GRbPhRkTE01vxSq4Uw04y6FX50nfGQuXvg5OmhcxeUIfqbIz3ctPuu8F4OZ5f3V0APehV05jzmsfJZ+r5Od3w613wi41wchnaYay4+AvToaXHw8TW5Mo7qEn4Yb74Rk9hEaV7foVAqQ460m/LUk0dvoUmNaWzAtRHlUlMx17EsZ4fD08qFENvYk+3JCFVnXji+VkCs0xt+77QAazU2zNzSZzxEzoTbIYMWYub4rjwgEfgMQCsv9/DDYFMFXJb2zalaWJEqZT5YsyCDsC8/rwNujWTalAQj6rWK4KFo+DJTNgjlKL5bBmA9y7HO5YDV2dkKuAGWPgFYugdWzE9MmaFPVZd9aiDzxv1LyAL44O4D713g8x85xPcP+TEb992LFNOtJjgB5xrz6KhfCaE+Gc45LpRlu2we8fgZ8/CL0q89rsGVG7rwc6jEkSx6dOg+OmJOZFLYC6gLp4m9vhmS3wp82Jn1MwTaomyUKu3I968BZLJrNQeh6UJonVrFRdgM2o31XgUiAiP01/y0x7wBWiW9P5fOOOIu641KsyEbPVnC19UIDRNsTo0uc6OqFdJrYdHt+cFJ+qZyAGnUxrRVINvGQCHDs9qYtTb+uDz8Aj25KMiNJhM8fARD2PthraxkJb22NU157K6bO73AgP5x5xwEWXnVDO4kt+RcPMl/PdmyJ+u9IxoLor9fUqa1AHqWPg1YvhjAVJ5e7q9XD9/bBCoFztlzMpX4CbALXT4WUzYP4kyOkhGep16E2ivuWbYMVO2KngTCwhhtCPUCPdThfaBDavrVn/Q6G6Mp7f4H/1Pf+3jXCQia5NQXUmYUz9mp9mgq/yoiapCXQSaLW8WE6pt5jtgtZFHYOAp2GIqzbB3euSvobYTEoY1uXLwcRGONm7ESpEXb4RHt6Z3AxzGmFCA0xsTpqJFIDNmpknV/dyd/qcW18AWT2vr4484P7xtZNZdOFyOsqyfPYXsEonUEBQRKWTqMcKzoYzj4PTZyXOuTS32x6B/icgHmseVr2oEWMCqPf21CkwfWxinjQOS7nJNTthuapTFWBYxBcCTuAxAIWFb5YnFbD0uWQXgVN/C6AB6OILn4L6NDQplynNryoJSuLAwCUNMurZjNsB1QStr/jARctJHxTbiel0k+lvuQT6nrq1NCLswdVw77qktDtmOQVMGg1bDdMakhSetvHMbtjYlXTcqWVySgNM0iy8OgE7YtoUR+uYj7nTFvzr80LNC/jSyAPuS+99E21nXMMfHoerf5c0XyCJw4IGAWg6jD8GFo9P/K17noFuPU5e/lvxcG5FqHr422RobUsKFWNm6IMNEpG7IK9UkS6QfgXWMHFqwIpTA8GpNDYLU2XS+eQz+l4JMYjMqmr4ZVLry6E+C43q8lfTtTeTMm3SEeNaN3WaaVDhQFIurs3LBMegUxCjKQHezIqNFEEr5ypX4LG1cPMz0CO3QMdkN04m8edUGaxD2K3CTd28GimmqL0BxjfAhKaE/ce3aUzsn3jFSceP9LNnRx5wX7ny24w77m/4+q8jfnm3SxhLoLMfscdMYFKSshlQDb3KueS77S9XrEPQ88snJpFqLP7qvb31NAkT6P9WfWGAs8PXVbLPBWi9b4wmVhPI/KNeylSFoYlLevic9DRvJuNxXy5p7BnXmKTirEXR/DJFoQpgdkhz64IOFTf67v4K+YPlUC2NLQvNmvJUmzCezLb0uMfXwS2roMfyxwY47asxrx27jlW+aQPMbYbpjUmZukCsKQQzp7fTOuY0d+z0EX0U6IgCLlrWkmPaFTcTNZ/Ex6+DFXqaony3YtZS1Kn6GIFPTrLM7nOV1OkwJI3oe8oyxDO6AtNnh+nb74zhVCIU/22lq5JZ9LcupLatdfkUWQw49edWQ00Gxmg2XCoxYWKoOKBwCbO1av5cfVKXpohUIm8cgfrOekXd6jPdoRGsKk/yLoK+LyFa0a62IeCplk9mWf7o01vgAT3xWYCTH2eJfS8251M+b2vpMIGwHiaNTXy5KV6b1CiweXMcldk3uqUn/PAFWMhD/uoIA+4ts5i79CFW78nw79c5dson21/zvk6ULrZ2z8zgcI7NWEmvAqCqQ6uTKouYiQQ4XVzPdFL6C+ynCygGNZNr+6D16FeA0/p8rtY6+dMOYnZKQY1nJzUwxyXutYn8EY9wdQmbqU9B6SwxlsToePj0QOKrWRYjHlqofZWpLt/bCqk6ue3qcpf7IZOqtFkaJii/mk52fesQbLcmA7kFqhhphQXNMLUpCR4UFU+fBmPGLnNnLbpyOGf2cC0zsoD79KVnM+WcW7n9iYirf+ESn+yQS6qGeewys2K8WuLa/HSUdLRHFuGJ2XRh9GsMZ/nK0Lx7ZosBJ7D5ZzgUAgkfVMQTyisSc9tanaTWVIMnP0652Hg4tapE9KQ/+XB9CdDUiKLqEX1mmQz5bDK5O1RuLl9PgYaqf3XzhflVB61qm8wkwYoKVjf2wR+7oN+CCt1wY+EYTZRqTNorZe7VATZzxm2ceszLRtKPG1nAff2fPkjzKZ/iOzdF3HCzS/wy80OGiaNhLyaWm+BZSeZRYNJFEMD1q+3K9BSDLNyAlx1iH9EKA7Qu/Wr95jtZgFGRTJ6S8z4pl2QxFH1atCrTGBdd+innCm6sO18ZCoFTbKjeAdXHKZeqUqU4o7K34bNQbCp2W5CB2SpQqNJjymBrD9y5HbYaW2u/W5LRF4pYZ7QmZfeqMJkwYQ1jK2e6xYuf1ewy7NN8iAuOLOC++fFrqZ91CVddF/HQXQ6UejlQD94hHsl+F5cprPfbCAF3KCC3PK0CBx+h7gM2778VJBMFGYo4Fa1KY5PeJpPuCzC1n/L7xGpxtZGyEz5KrVJ1SjZhPZUqPaFRrCaB6OYQ8Cy40ffTcHIO5ohNNUOlHLbtgTs2w1MCqr4j16AZ6sfCsc2JCNymoKYBpk1pp2Xsie7UuRI3R+RnZAH3jS/8mkzL+XzkGlipZH0Ynb5YxxsMsXlej+syfzDuBPesFjKc1m9sp1djQBV4ivEkBvvxXTJ5ZVEyskE/SqVJMM6lk95TpaEEOn3cvgce3wld1q9hxZhBpC2GW1wLc3x3mkzy9h64bwessCpoXWKNvhib+HGzlHXwIvD8uf1MmnyBWzTllhfr7Bevd8QAFy0bV8XcK26lPXUS//Zd2PyoF3xH6lCf73YEqLgXMqgkDmUI+zt8z4RiA2KhTNhyZ/7Vs6NMbWM6EY7jiFf3Yh9sUuWvmVQzqwKcRdcpmF0LM2W2FZikEnP9cAc8o6BC3/ERfHkrzG+BOS2JPFKTi1g4z9Ey5m3u1PmqDRuRn5ED3Nf/egJjz/09j+6awieugU711hy0p2NETsLBNyIzKdBZ+bplGuw19OeKfTszuaHmZzpgKC4r/xoMNuzuh8gEawHHghtjuNhGQ0MlTKlIRGcBd/cgPKYmapNGtC2N4hgLs9Xx1ZQEDupdnTvTka243L1q6dUHPweHZ4mRA9z//YcF1J9wN3esqeYz34e8MgdWGn54DubFW4sVeApwRWaz8H8rLQ/ZzdJidpotm+GbYhLHLkiTWbosdvSCKNoaakwjtEDHl5zXVkCrcrAOdkewQQ3UxoRal24Wib/NXgQem9QJzpiqdNeH3QVnffTFO3f7rnnkAPedq06lec5d/OqhiC//yCVJ+BELjg7D+dSpEqMpiDDg+QCh4MMZ41l+1udRCwUApvvFXdcBeM3kWrOELafzI+CFv/qeCb7apyC3qzTbkPolFFjYvCwtI3dAGpxnuJmtCeCmToIZk652Z514+WE4QcNaxcgB7tufP42WyXfykz9EfOsnHnDD2scjbCGBwkAngJlvp/cNiBZIhBUo+ttSbBaZe4aKAVvcmWPLhmATiAxsBlpjSKt40ekKmTSuo0oCh5YWWNgIs8apSTrp3p83+4ectuiSkdLiRg5w3//kOdTM+B3X3gbXXu+rPo4wLA17d4xZTAgOWc8i2OJqknjqoQdM0BBTYKgwsLDl9BoCzrIg2lFbn/42ljN/MZSatF7tZx3UN8OxTTC7NRnBryT+MXNv4szjLnTOHYpWNOwzNXpR6s+/+Crc+J/x7d/Aj3/uK0Se934fIV+09Jc1XhcLwmHAYAAxHS00hxZo2GHZsno1s2pBg8Cq7xazmKX1QqYMBGkBLtcMxzXBnLakVEnFmIvmPciZJyxxzmkDL/rPyDHczV+/hN6ma/mvn8PPfuWLKF/04xuBDehCyykPzWwYvRoABBDzrYoLQK3OzsxkyGDGcGFOWes0acTY0rZvzBonZgM/UZUnLbCoEea2JtPd1bV/7IInmHz88e4Q5oO8kJM6coC745pL6cx9nauvh19rRuGITNx/IefmEL4rwJh5FdjMlwsvfhgIhAUCoTkOo1nz4fRqox8MZMZw+kzEZMGM1mWsGhaO6nP16Tb7MRFKbzXAmBY4buEaasfNc4vHjYhGNXKAu+v772Jn9mq+8GO46f8BL3hqwCEAYiQWNa0ujGSLAWfm1OQNG0lhALXLISCFpVOWNdD3zRSbubX3VEYVrsfkGQsa9KTrpuQpPWI4FWYKcHPnbCZVPcOdt2hYozle6JkcOcDd8+P3sq3sC3zhOrhZDPe856G80GN+kb5v8oNVk1gazIIBK/I0E+n7Swv52VAasUjUQGU9qTKrZq7N7NqDBa0aOZRmzDcUEDXYpxmOUQWwAKcn9TQlhZiZximlB7j7fvxBNrlPxYC7RYAbtWkDLxLgLFq0nKvYKwSH+XDm/Ov/Zn61rJlA8+PMBFvS3kZOWnCg7Rl4BXaBSiwXAi6sbKmFykY4Rgw3FloFOCXzp7UzuWmKW1RqDHfvjz/ElrJP8Lkfwq0yqUpKl+JPWFUiIJn4K9ayiNNEWYHHzKppcWZKLQo1oFmFr8Cl71g9Xzg1SsFLWEhgWRFjuCaY35g8dkCN4noM+ywBrrkEAXff9f/CZj7K534At4rhShVwushimhBIAolpapam0s1mgAvNbwi4cKCuFapa5KnvG3CNLY3hDHQm03jAZZvgGPU4tCXPsxDgZk9rZ1IpAu7Bn36YDfmr+OwP4bZSBpxM4/4AJ1BYftQmW1qmQoAL86jmn1nRpQJIPzTbRnbFxsEiWf2tdakEPqxeCUql9Fm2GeY3wLwAcLOmt1PjprqlS1+s0ut9zNjIBQ0P3nAFG4au5DM/gNt/W8IMp1MaP8wi8NGKAbS/aZ0Ch/2YObWqZCtRsioTLavtWKrLAGcMZ6m1MOerhp7GxKQqaNB0Avlws6a2U1NWooBbP3Qln/0+3P67oA+1FP24+Al53qwaOIpNqv5vDCdwmq+n82GBgzFcOHTRwGRJfOulFbOJ4QQyW8ZMqh/QKJMqwEkW0XNkFaXKpOZKFnD5K+PSpDtkUuMn4ZTgj5jHIlWrJrHEfZgXDQFnPlxxGZP5cDYN0xjOF2nGJtUAF5rUkOHMrAYMJ8DpgXEWNJQuww1eGUept5WySdU9ZFM4LWUlABT3v2o5K+gMgwZjNwOTagZtRIXdn7Zem9xuAYiJv1aFEppU+XCBLBI/KbsZZk9pJ5cqdZMqwJUqw+nim0kNg4HQpAooFlmaYGusZSbVAKdlxXC+D7WQH7Wg4WAMZ5GwB9z8JpinCUreh5tZyj7chnziw5U8wwlwFjQU+3AWqe6P4SxHakGD5UqtvdEqhS1fGkaplloLdbgiWaRSYCsG3JR2akqZ4aTDlTzgLEoNfTOBo7iYUqAMq0xCHy7MTFjzs0BqWQXT4axaROCyvgszqSHgapJMwzwfpcYmtaSDhp9dwfoB78Mp01DqJjXsYTXmKtbhwuS9GCr8EZCM4cyHM4YLZRErddJ7oSwSprW0HeVSjyrA3XAFkkXioOFoApyVfocMZwl3A5zlXUOGs9o5gVT+m/lwFoGaDxcyXLEOZ7laS20paPCprQLDTW8nV8rC72ePBpMa+nCmixlbhdUiVspkFSYWMNirMaJlGvS+mUszuWHQYCa12I/zkknswxWb1FIG3Pr8lXyulIMGM50GONPhTOoIW/8sJ2rl6cXl6AYoe9SyPd7Jqkos02DJe6s8NskkLE2yXKpnOOlwyjTIh5s7vZ3qUma4oyq1FVbgWkRpTc0ClOlwFjgUR6lh8j7MpYbCr5lUKxqwQCHsny0yqWqiMeF3dikzXJxLVWpLPtyI5IpHIZNhuVQzkwKT3jMfzkaEWf6zmOHMnFo9nD3jO3werEBlQUWxSbV6OKubMz/OBw3S4VQPJ8C1KEotacANXslnf3SUBA3ypyxSNOYKRzaI4QQK64UITarpcDa3zoIG8+Fs2TB5bwWYVlcXMpz2wxdg7pNL9cn70s2lKkqVD3dTiVeLFAu/YRBgD/YoBpxJHWHFrxVsFkeptqyVORlb7q88yR4NoGmcXhYpJO9V8VvKmYZYFlGUWurJexN+xTpWdmS5VDOp+0veW87VJA8bDxtGqWJLrdN6JLRey6UKcCbDhCY1jFIt06B5v00wY0o7vamp7uJSrIc7agBnuVTzn4oBZEl3K08qrhbR8tZAIzMsVgxzqSa1WPeXAc5kkfC5EkU+XCiLxD0NJc1wqhYpZR/OhFtjOGMZKzG3+jYByJjKeiAEEvsJCzD3Bzjz08IJSRalhrJIUbVIcabBCjBL2oeT8Ht7KZtUmUUbYGjsYoALZ/XaGIYDVYuYydR3FKHqNaz4tVzq/qJUKzPfT6bBmmiOjgJMVfwKcJJFnuu5C6OgZhzWTVo9nKWszEQW51JNGBboLBAwCcVkkbA8yZL35heaNHIgk2pRsrZTlLyX/6ZG6DlTS7ni10rMS7kezqYVWSWISRjFTTQCSzjG1UBk4DSGE+BCWcQyFGGmoThosPl0xnB6tYpf6XAaLO3r4Upah1svHe6HJd5Eo4tvDxAx1d+iT4tQTc4Iu/RDWcSmJxXLIsZwoQ4X9jSEjdDmP5oe53W4uZZLFcM1w5xSFn4FOKW24p6GUjapApKVexuQrOLXOulNOzOWk9kzgTicK6Llh9PTEOZSraLEUmuBLKJMQ6ERWiXmJd1EM+AZrpRTW7rYutBWD2dAKgac/q/PwqlLYS7VdDsBLuxpsAJM899CHa64PCkEXG3S02CySCGXKh+uZCt+ZVItSi1lhtuf8Gu6mgUOAowl7wVOM5Pmw4UVv8ZwFtloWZNODHDy28ImGutlsKoRAc6XJ8W51JakTTDuSy1JwF1/BevU0/BDuONoiFLDRmhjLhvzYANtike2HqhaRAwXTnzfH+Cs49+0N/PhLLWlJpqwHu5oAJzq4Y4KH843HscMZqXjYrjiB8mZ6Q0zDZZLtUZn0+GsStgiUoEznAIfAi7MNBjT1UCmYW/nfVvL3p6GkuxLvf/6K4i7thQ0lLIPJ0AISKH4a6mt4gHRFjDYa5hpsPo5k0VCwNkcElWLmEkNARc20QSprUxz8nTo+TZbREFDKc8WWeeDhjtKWYcTaHzBY/xqUWpxT4MYz4BpArHJJyaLhJ33ZlLFbMXdXdrm/hiuSPjNWNDgAScfLpZFSnHUgxhOJlV9qb+XLFKqBZghwxWntozhBB6rFjEmtPyomVQbxWVRaujDGehsWQNcWC1iYAtNqgAX9KVKh5tbqrLI/ZqeZAxX6jqcMVcIuHAgocCj/4c+nJUVGbsV51Jt4pKJv2GAYe/ZNHXz4Wwgopi2Fio0yEZ9DUUl5qXrwym19aOjIEq16luLGMNMgzXFiJ2eK2gQiKziVxJSGCAYw1mWwRjOqozDBhqLVmugQmktAU6jHnzQIJNauoAzWUTPaRiRodmHNSU//JV5Zb/w5Gh7roIByOrhbDyDMaGWswAjjFKHAzjrpTBWMznE1i3AyaQqcLBcqpL300oUcA96HU6yyO9LPUq12jRT+m1cl/wya4qxri35XcWN0FYpYoGG/N3wQTHPxXBhPVxoUgOGm++FX7UJxoArZeH3qAKcRakGuAMx3P7GdVlmQkCz59cbx4ZRavieCcmhD2cmNedNqoYSBtOTStakauTqWs0WkQ4nWaSUU1uWSC9mOAOcRakmEMvsWTthOB/OZBEBLnz2mvmEpsFZ0FAMOAO8l2mkw822oCGoFilZHy4eufrDo8CkimHCKZhhX6qiTYm4JouEHV6hDmfCr5bXzVn8sD+LUkPPcn8MFwi/ChrmaM6vj1JVYl6yJlWyiKYnyaTeKR+ulIOGsFRIF1wAtNq24ijVdLiwYVogCh8Ep0lTIeD2BzbT/8w8G9CCKDWtxudGWGQzfn09XEky3L3XX8FGP8X8qABcOPvNIk97UJulqSxK3d8wm1C3E8PZSIfnipVNjglHrgYMl/IMtzBkuFKVRY4qwNlzVMOgwRjLnixjBZjWtWXaWTj9MvThhgM40/WsxNyiX9/TUAy4ONNQqoAzk/rp78MflGkoZZMqk2e+mbX/WdQZAs7kE2ui0bIGuLCnQQwXirwHYjnz4cIp5lZzVw1ODNcEx5os4k1qbSnmUsVwNszmD/LhRuTxnMPXag/rkuFAG5k0izzlx9mzT63MKGyatmjTRF/T7RSlhhHpgXbWBhzaI8mtPMo30TgBrBGOlQ/no9S5M9opWcBtzF/Jp66Fu0qd4QQIaxU0hrOuLTG7panERDW+zNyqSvTdUPi1sfnFEsj+AKh12ENGLGlvZr02YbjZDUnQMEGpLR+l1pai8Gs+3Ke+f5QAzpjLnjBjJjIUca2kyJ4CaCmwsPM+HPNwMBoWyKzS2B7Maxpfbq9JXarRaqYAAA4fSURBVDgWxnvAqVqkpAEX+3ClblIFjLCj3mQMMVsxwxkwbV7IgXy4g4FNn5v+Z+2JYed9LZSph6EpYbjx1pc6tZ26dAk+GOTeHycVv5/+Adx1NADOSpTEOvqxLiwBzjS14rEQxUGDItPiBprnAp7WF05PDwEn063hNY1wfJHwW9KAk0m9W4ALS6aHc/f+uS1jGpt1Y1mboM3q1fGEgLN5IMUMpyAjnAP3XOdBTGqAs8DBND4BTo8cb4LjAoZTpqFkAaeKXwUN9yhoKHXACUA2INACARuBH0ocFlwUV/zao49skM1wbjgTfEP9TSwn0HnAzWiC470PF6e2prdTV5JBw4+TEvOjBnC6+FbybSbVNLgwwhQ4QmAaOC1StVTYcACnZUIpxBqtrUigBaYXmdR5Alyp+nDrhq5EQcM9Mqlhjf5wT+af03JmLq3zXowlwIV1bQYQAc46sWy0l0W1ZlKHe+yh32YRqhhO22iBqQ2wuM1PMVcx5vR26ksZcP9+Ldwnk1rqgBNArGLEWEuAC3sT9L5VB+/PpCq4EOCKK0UOFjjYGH5jO+2HANcMU2VSzYdrKWXA/SjpvP/E9+B+DZU+GgAnMMlHCwFXDB7Lu1q1iC0b5l6Hk9YKQWjpLHsVw9UmQcOU5sSHi4VfFWPOaKe+vARlkXt+cAXroyv5+LXw4NECONPFLFW1v2jTTK91bYU+nI3ZH645teVsRp09A8IA1wyTGuCEtr2ZhnnT2mnMlCjgxHAf+x78SYArNi2HelL/HJa3Ob4WNISd8uH+hympsFrECjUP9VhtwpIBTiZVDNcME5rgBKW2JPy2JH2pzdkSBNxdYrihK/no9+BhAS5sezvUE/rntLwufljJu799txFfAp7JITo/+ns4Sfv9rVPsatUjAlxdEjS0NSZBw0Q/clVBQ0tlCQLutmuvQMn7K6+BFTcfoiP85wSw57uvlnO1ypJD9dsOBDr5kEqf1QNjoK4RlsikNicPeNNskYrqEnxOw2+/93/YwMe44puw7pbne1Ve+t4hnwGxpgDXmJjUsmY4pQ2mjklmxM2euY2vto13DyweEZNj/WaHfBgH+0JX9MtWh2uroLd6kD0ue+vOS1iTeifX3wA7noL8IAxFEPk72jnQb5ne8z6PG4LIxo9GkNdn4S5bUrzodZ+S/8jPfjHmCJbVtsNlnZmvop4BvW2bDTcVvhl/Hgya0bHE3/Nf1H7H3/XbiD/378Vf1f+96Y3PhdVcBvvoPOsVrKz/f7wNM91aRxmUlYErgyiVvDoPvNQYqBHYGqG1BWZN38VrZ1w8mMn0RaT78qR2bls/bd3Eie5FSQUddsBFG79+BhXuU/QMjaeyOofz/W/9veUMDKQpT0OZP9l5A5N/1QUXyExGiIKxovHfdsGCCxVeZLvmsc8UPNZgfxgt3DEBuLT9GIT+vRgwhrYQjPbl4D1bLgaOraOwQwEY9R0BQPtnAPPLxQAMfL54PXYs4WceVPH3BShfUi5QRenk//H37H0PPm00Psd2E8TnMyKT60t2KD3A0FAPRLvJ1N5IeuYy59xhLc0+rICLok9X8+iuW+jadRJd22FwF0QDyUGmdLDlUKYTUg7OT3GM7z796mIP+QucT4BnDBQXJNrJsoJGuwB6tXXoLrYfnXRbRl/X3W6M4xkhvihaxvwnrcf+HzCFgFBmfQLhd+3CegBZtsDWG6/bAGTfC1iwEEz4fTaWjI/bwC9Q2IAb/a1zZP/XObLAwr9q2RjHIbPbNu3GDgAXL6xz44sHdG3SGWhog/70a1zrq288mDU7lM8PL+DaPzee5cvvY92DbfQ/CUMdSfGqHa9eDS/2agFckUXa51qE16j47/B7sUnWyQ7AqI17kijc2fE6QpD6TvX4vaDxpXCDpLxp8umn2Dz5v2W6YsYyQNp6bVn/eQw+25HCDgUMGhxIwfQGoDHXw6g7BqTlW81cDxa5D36d5ioUzLmOx+9zbHJFABX+2DNQlo2oaXJE1X/nZr7jG4cCqIMte3gBt/Kjk1n3zANsfLCJnhUw1Ltv70d4s4fWxhNNvLMhoLz1KbhKxd+xowsBbUf0XCA94DLakeDEK+0kJo5NVACy+G8DkPlI+wOd1cLZsnYCDPCBT2ds+Cx/MfThZK7F/nnP1h508fGEJl/LFJ2cAsN7No9vEDte/ywHga5MgKuEmkZI1V/upl169cFAdCifH17AbfzoZJ4S4B5qovcJGOzZy3D7MFFoQvxx660QePsDk71nBFG8TjuagECeBeL9LWP+TmzmBTg/oiG+KN4FiHfOwKVXy30KTB6UMesFZjReJmDTfe6mkPEMZTG1+XXYwYnFtG0zmYGPWWjO0bICmZmL4v4H83mNjY11td9mSjMJw8WAy0KuEcrrL3dT3n4EA04Mt35VArgeAW7PvjfecwEkZKnwlhkuYxUvt19gFQG98B1fVRGbFvu1PlFdFC0YgCq+sMZo+lufBf6gmet4GbuL/F1gDrvAXDD9HiAx1opAYwFMwTfxPkrsyxlAjeECoMXrMX/GTKtFxmbu7Yby/Q8Cm262sgqoaYFM/eVu4t8c4YCTSd30cBM9j4MCnlC/LDZ9IUjsuoTvhSwXmtNicD7X/w8EWGOe+FWslvVm0/txdufHZtUCCH+BkojOX3CLBOUrGnMYGH0AUpBA7HPzzez/JotoeW8uxV77AMpAZSfUTK2BylJixmYBW8bH6E+E+W7xe8Zu3o2Iz0MGUmK4ZsjU/RkAzhiu93EY6N7LcDofQYC5TyBxICAWg8x8OjO/+wNh+N6BfMPC9jxwpNzEJ1sgsvlqJjd49oovjpb37z9Ldgii230YsMhv2ydyDe6oQkBhLBU6c6ZVWuQaaJUFU+rNaujLFTBXfNdZdB1EpoXAwQOuphlSdZe7KUcyw8mHe3rlA2z4UxN9j8Fg374MF/pWoVMf3Oj7CKyhad2fX1bs95k1snUfyNcrgFIg8TVjMicxawl4kgk8SxVYwExnUChZCCa8LGLyijnk8auZs5DNbMdMDvI7HOPCg6Og/5ksoveN3Uy/NNazr5m47dcbf2w+YXhXm6kvBpxkKzF9FgS4TMPlbuKbj3STuvIBNj7sg4Y9Bw8aDsR6xX6c3a3BtSos8lxMtj/QFXxJfWhRqfluBjgfGBQCCvN7zJczn80Y0ABpbBKaXPPNvM5XAFVw1xWyDv5AY9nDzKP5baE5NRManKg4gjWAhycwDPd9UBPLIXYsOmYvjVjQUNMEFUc84P5lMus2PsDGR5ro80FDsQ+3P1YKHfxiH244/38u5tyv72cX1e5w/2COMl+TZubVfLV4HUFkGgcFFqWawKydMDNs5tXfTWHqqfB3qBWGO2mpr+KI09jLTG7IcgHThdUldu5i7IVBi7G0gU7HLXazSNUzXIWChj8HhlPQIFlkwDOc3WxhYBAyfMhyBfYJUlOBq1MwuaH5DBmuGHzhtsN1xxfeV8TGYPJ3eSEdFALM5A6vxe3jo6V8sKCVh2klD9KC1mMAs4M1R952OJRD9nPs8b5b7jkoWzLmL0SkYYYhPOAwy2LmPQCcCb8WQNW2eB/uSAZc7MOt8lHqo3t1uGLAFLkThWsSylHhd4pZKrhh9wFg6BeG29gHaMGK48i00mcJvEmNWSoIFGJfzrQ2bybjAgJbztjMABYIqwWpJIhe46Ch6IRYBFmwguavFdCUfFIAnP7jzWfBjBYJv4VN+I0V0npFkXTM1OZOiOG8H1eryhLpcEc64Fauf4ANf0xkkcHOZ9cPWtAWOvahn1V0Uz4ry1AccIXLH8i02jYLvpMunh+RVRB5vQhqWQQTefdhLV0Yc/DN/wmYq6Dem6hrZsyiQtsRkzyCuyIMGJ5VdGnm1EynRa0WFBirBf7LPgUE/iTtownaTePZPT5Or8EpcJAPV1Z7hEepEn43rLufDQ800yOG691X+A1919D5D5npudhsf2AM/b/iSPY5I9tQ2LXAQUDRXW7aml/G/p9K+5xqoGEVUlwW+ZkvF6SzChKKVX+EzpWBUpGxAadAdXuLFuK3QlnEqmq8dlf4Sij2hpUhfpuFQoVQ7rHo3ECXhWoxXO7dbtpbvxzuzQv9ex+38oWuLFr9+TZWPfI/rLl9Ir3PJN1tYZV0aOae6+8QdCH7HQikIVuaud3f+vfn3xWWCwRTi9gK+U3PZrGwawzngwVjhgIjmkkNdbtACLbSpL0VBUEli/luJmsUa3KB7FFIa5kfYrVxRTV3liozv6VQZGBpLQObBQxyMTIRtWMcfZV/6+Zf9q0Xioui2+fwrS566vIMjzx5AzsfO5/dO6FvEAb695bph5ahWK4o9rP2J3+EwAqZrRhkxd/11mMfFykEXxiAxNuIggqTooIC24eQrePypbAUKnAyiwFtpnOfW92Dvfj2j/9fFEyYW7dPFkLg17Kqh7NSqoBxrT4u1hw1tqsqiUjVNyvzuc9vJaSqoKpxAFd7vpvz9sNann1YGS4+Pd8dN4mq7vexK5pLvioFmRRUuKQw0JsbXZy8/lYaR4xgUoAvXoz/aybAdjEPQ0Gpkap/tZ7CcjJJolN/Rax8J/66r4WLIzm/XRNW422pmthByqdDzBGPBWDlLAseeFCVETrpltYSpQd3UiGf6S++qpkLPx6x8e4KMB5Y8fa8kFwofbLzoXOlz30Ra8yWdjf5wEZMq5rDmHHts8DMW11fIV0X3CiU5anIDFJX2011038zf9svnVt2OJor9rnXDx/FPeeaYhUzOOPh/+3v8DU+ycU15SO0r0fqZgpqsD+PVm8fntcjdd+T/TrsDHdkH+5Le/fcnIDDPe++xGGd3P8PfHJ7OLWiD98AAAAASUVORK5CYII=",ie="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAL4AAACqCAYAAAATM/UQAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4FdW2/vfMnH5OThKaCKgEEsDe+7Nc27Vg96pX5YqdpkhvFop0laJYsKDXrqhXrnrtvVcsSOgElCKQnF5n9vvWnjknByTkzJCEJGR/773PR/bs2Xvtdfasvda//sXQ0loksBtKgO2Ga97lS+Zr0QoxpNAVcQBpxqDt8kntZhNoUfx63nDOIWE59gW810NqdQI03gWIK+BMBlQZjGvg0i9A6G0g/iYrxUf1PKWW4QG0KH49qgFfggshd5kKLd4e2noFmmqvUeIcKiQ5AuZeBx6aiDI8zRjUepzebj10i+LXw/bzJegBueND4DgE6bVe069gUhDMWQ4l2pOVYIPp51seqFUCLYpfq4jMdeDLcCyXD/wfSyxygaeVrU54nuc3lnaFIwUoYUjpv7Ey/GhuFi29a5NAi+LXJiETf+eLcRx3HvI2Yj+42baS1ZVZNy63J/WarrdcARScwUrTb5uYSkvXWiTQovh1pCJ8Bfbm0uGrEPsWWyk9KbukK3taA8IJhkQKSArrXYLDpsGpAG47h6IAwqqnH0HuzjA5AkU9hHXB0jqa7m4/TIvi14EK8KVwQNn/V55c2pnxhJQ92XXdRjgJrKuUUbFGxrLVEv5Yp2BLAJCYhFZFGjrswdGlJIV9OqTRxs/hsXFd+au/EBpgXwVf8gC2J6J1MOXdfogWxa8DFeDL95wD+Hvx1G+ejEBJZ7kErN4k4fMfHHjjbSd++cWGQFACVzk4B7jozCBLQKs2KRx8QApnnZLEkYek0NGvgtEgWf2XopAds1hpbGQdTHm3H6JF8XdSBciDw91nfcfCb7hyh0ox4OflMh55xou3PnAgHZNgt2mQJF3khk6L/6Z/SXFATXJ4fMBZp8fR+/IoundKQ849+TVbFHKKLrtf7eS0d/vHWxR/J1WAr9rvM6Q2HwV1vSy0WQLSEvDtYjsm3OvFwh9scDo0yMIpz2pw43NwaHT2Q+McqRTD0UclMerWCA7cJwlGdr/+deBgrkUojR7A2Fa/nZ1cxe73eIvi78Se88U4D57TnkLknayvnsybpesUDB9bgG+/d8LtToPUWrdr8hA3deUa0qqMY45NYMroADoVafqlly7JUEJAegDrhid2Yuq7/aN57MRuL6PtCkBcaO0nrEb0u3ZgkWyfKhWYNNOPp19wwePk4CzjoslT1KT4xq02rWm49oo4hvQLwZnOmYbkCqAw1pG1Rbhld6xJIM/dsDZ4c36KL/GOgX3fEYh97ckY6mkZeOcrOwYO90NTJTCh9NTEUZ1X45yDZfyhnMPl47h/SiWOPzgNJIyPBkEbuPIw65YYlNegLZ3+IoEWxbegFHwV2nP5rOUs8j8XSLkNt+O6CMOAMQX45ksXHI5tnfHmX0RmfEJlOOnEJGaMrUKhbLg5GVlO9jiTkvuzUiw3P3LLEy2Kb0EH+IrOL0Fz9ER6sQ4640BSBv79HycmTPJBsUvijM/13Jh9jfgtiR+VJNydd4yqwqVnJcAypz6X0pCcH7Ky6Glmx27pn9dtq0VMuRLgS3E0d5zzHqL/dWdPDQkoXy/j+kEFWLvKDptNgwYpn6ts7cJlHGpaQrducTx8TwgdC1X9oit+cLYIpNQFrAzv1D5QS49cCbSc+Cb0gcxvrD5sEZKrukHbnJVd2gFMvN+Phx91wO2se5FyimSlJdx4YxS39A7ClsxEtRgguSpQGu3CGHKvvyZWtXt2rftdasZy5Evla7j9/2ay2Ie6+5LsETuwcLmMXn2KEQkxSHL9iJRuDK2LNcy9dwsO6KrqF12BAVJCYOx2Vpqa0YxFX+dLq59dqvNp7voB+VIUwHlqBY985GeEGDYkF2UMgyf48N8FbridGuijUNeNwl4a49BSHOefE8f40SG4VeH31JvkiYBH9mHdsKmu391cx6v7XWqmkuLL2syE0v46xH5yZ3XbBrz9pQN9hhVCVukeysF0AE7dN8bBNQaHC7h3fBVOOy6hn/qi2eOQpOdZWfzqun9x8xyxnnapeQmLL0cZd5z7Iwu95sri6RmwOclwzcDW+PFHwGkjUKbh4qmH5dPI9D1RVYajD1cxe/JmtHIa7k1x6rtjQPTYlqSV/ITfovh5yImv7PEB0pHjoVYQYl6YOZoNeOxFN8ZO88GtcIHENOCWeYy4M130oMGooUFcdX4Mcipz0ZU1MOePrCxy2M6Mvrs826L4tew0L8eZcJ/9IiKv6xFaajZg5XoJvW5qjbUbOGzkaG+wxpFWGfYpUfHIPZUoaa3noxPMmcEVBo9dy7rjhQabThN9UYvi72DjOIcNa05YxWM/7sl4MNszQe7LGV489oQXbpeOrGnIpkkqWFJBr6ujGHZTEA5yZIpJMED2boYz1Il1Qqwh59TU3tWi+DtS/GWeYVAOuw3Rj71ZuI0N+GKRDdf1L0YyQbgaQ+EaaOcztwg64QuKOB6YVoUj902CHE16yqIjAoXfy7omb2ugKTXJ17Qofg3bxlegHbefvZwF3/KApbNJ4iHOMOC2Qrz/nh1OR+Y6a0aMuuqS4tKgLJNmZUJ9MsqfVoHTT0ti2u1V8Anos3Hyy94Y5HB31gUVJobdrbqa2bHdSjB8+d7PAN4LkfzVIRZOkrIDL79nx+DRRVBk+qd8+UK2Fh0hMGWZ/k2CqlECioltyHkljSPZyb0ZxJn/FwejiK6Yq5IEs7/NyqI9d6tNM7FYExI3MWoT78qX43DuvOAjFnxF99mTssnAhjDDvwYUYfFiG+x2a4ukTCvOJRy4fxJpDvz8kx02xdoPSGMatDRwzJFp3DshgLZurTpJXXZHgeiZrAwfW5tp836qRfG32V+Bx6k47Cckf98P6nr9MKZ8WAdw/5MeTJvhg8tFHnVKBDQrPiZSCz1eDdPHBxBLMAwdXQROvCNGLq4ZdaMkF/oR2RwqhvaLodfFESgZ9CZdSiTPMnQNdWshpf2rVM3unJl9aZJ9ebl8FXefNYeFF3jJNy9McAX4ba2MXjcWY0slICkUoRW2iqlGpgk5/M8+K4Gpt1UhHmUYOK4AH7zvgGKzCJUl5dcklJRQUKsSZR1U/aIrvlKuEJAYxsq0B01NdDfo3KL4OZvMN8LL46euYZEvCrPphAyIywyjp3rxwkseuB102ltD23PO0KatioemVeKA0jRUDfj6VwV9hhQhFAJkIlC24BwVPnxJwxWXxjC8XwTOLI6H0Ju+EGzBvVhnVO0G+pz3ElsUP1fxl7WezpWufVj8S3f2n23Ah987cMOtfvA0uS+tBauEcjKO63pHMPTGCBh52elHJQET5/jx7yedkG0MUjZHN+89FB3pa9KqjYp7xoVx7IGJnFPfEQPYE6ws3sfciM27d4viG/vLl6CEu3r+ysKvOyEZl0QZqEox3DS8Fb74XIbdaZg+Zr05dEfgQPeuaTw8owodMskkBsphyQYFN9zqQ0WFw7joWlA6PXSLU06OY8qYEAooTTHr3vTEgMhhrAy/WRi5WT7SovgZxV/R/R1oqZO4ulzgcci21xzA06+5MXq8Dw6bgby0IDF6RLJxjBkewhVnxyDqoOQQyKZk4PGX3JhydyGYQrlbVmLB+kXX4+EYMyyAC09PQMqiNxUVzPkl6xY+vllqsYVFWdhGC29p5I/wJThNc5/7Cgu/lqUAJPflmioJV/QpxtrVkm6G5EDg810SqbCmASccG8fsiSF4iRptW2ZkCdgYkdF3RAG++84hUhf1LBMzPwB9chpjOHD/BGZNCqKj3+DjEURX7jCk6BWsFK/lO/fm3G+3V3zOoWDtcct57Ne9mFZ9/0s5gOkPeHD/XC88TnMqmFEYYWloGrx+YOakAE48NJmDod9ardIK8M6XDgwZVYBkggmqwQy/jhkFJBcrs2noe30EN10ZgT0T1NJxPBvQNbQXY8j+q5mxm1PfFsUvdw3SXMeNZdF3vVlh2IAfl9jQq38xomFAsnKfFQewBpVJ+Mf5cUwYGoCcNO4I25M6ByKMYfhkH15b4ITDTgEF8y82TH3s2TGF+yYHsf8+aYhsXHHqO6nQxCRWmp7YnJTYylp2a8Xn5WjNvT1XIfimh0nprN0dYcDQsX4seMMBp8tKoErfCq5qaN+RY+69lejWURVRVjKXamqaAvy41IYbBhVjyyYVCuEiLDTGKT+A4aLzYrhtUAhubZuLri1SwjpjvYWhm80ju7fiL+v0BFfa/oPFv3MKRaVLrR1443MH+g8tgMIlkWBiAUem4+MljoF9IujbKwIBEs7AH2pSHwYkGDDzMR8eeMQpFF/ggUzvEgW1gMIiYPKdAZxyVI6JxewJSLb/sNLIpc1Giy0sxLRILbyjUT7Cl+Bg7r7ocxaar9N7EzuZBGyOS+h9axF+WqjApXBxWTTfGDSVY/8Dk5g7PYA2GQxNHgMRCmJVpYybBhVg6VIHlCyOx8RF1zjgKW5w/LEJTL0jiNZbpSl6ouCRk1k3fJ3HlJplFyu72iwEwVcd8gPSmw9EqiLL/KTagUdf8GLCVA9cdsokNAseM5JSOIPdyXHX7SGc/zfDfVnbaZ+RKgPIvfniGy7cMdEnfpFWsxoJF+RycgwbFMY/e8YgZ9ybTOaQ3IvQNbTb0o3vlorPy3GZ5j53rhR+zZs1I2Rg2QYFV/UpxIb1EhTFgmiEcnOonOHUkxO4d1yg2r7O97gwXrspyXDLGD8+/9QBmz3j3sx3EKOfwbzcvXtSuDc7tzbcm/RnyRUCT/Zn3dQnTY7aLLpb2N2mvW7+B9xQT69Qo1+0Yjyk+00YkLQBY+/2Y94zDngssqHRF4IoQIpbqbhvSlDPjDLrOMygQRXg4+8duGVYAaIxyaikkvkC5Wf20P2A7rWSDFzTK4qB14VFmmI2CUbyVaEw2Gl3pBvf/RR/eauJsB10M4+87yHznWxqpgBf/mLDtTe3QjKhQhLlRsyLhgo6EI75qitiGNU/DDmRn4Ju9yhhQJQDY2cW4IUXXLAR/p9pYJpsmGB5HkDk4eEM7dqrmHVXEId2Swr3plg3c0bA+UOsW2JwnqM1m27md7cJL12U5HRc9BuCr7kYI+yurgBhSicc4ccHHzvgdKrgFiDHNJamQsCD595bhb1bp3Vy151omgz8VkHuTT/++IPBljW/zG2bOOEZcPYZCYwfEYCP7i5ZFjZvDCx8wO5GN25OgjuxiY3hUb6y7A1NU06VUotsGawMdwKv/M+BQWOKYLepxklvKhlQ/wFxQLZpGHZrDNdcFNbdlzvZ6EdJF92Hn3Fj+n0+2AVXptkLtz4JMnkKfBxjRwdwzgmJ6jRFKGkozg9Z1/BuRTe+2yg+X4qTNPc//suCLwgTRzSRTijhX/38KC93wG63QhUi8MbitD/ssDQenFqFIrv6VzyO1R+BBPwRknDTUD9++dEO2WmNplCA7gAcengcsyeEtk5TlNwRsOhuRTe+Wyg+5XbzimOWIrGyM9OqA5ZpO3Dfky7cM5PSCenUNi8OeiLNNXg9wNSxIZxxXLxGPI5V3Sccz4IP7BhxZyHUNIdkAUNBF29JBRQXMLBfDL0vCkHJXrwlwvFUoGtwt6EbN7/TVndvFz7Hyx39Nfepk6Tw67r7kv6X0glXy7iqTzEqtzDIRO9tQRp0iqaTGi7omcLUMQHYclmM63DNAQ0YPNaP994j9Kb5iQoYA2eC2Hafzhrun1SJso5GmqKYp4twPGNYWWpmHU670Q5lXoKNdinbnxhfg2Iu9VyNEIHQDMObATEJGDW5AC/Nd8PtJjekbrLk33RbW1VV+AqBJ+4P4qASg9gp/0Hy60lcnTLw9SIbbhpcjGBAg7wTeb8Epbj8kgRG9g/BmcHx0K+e+SJAcLegGzez0/ltUiPrxVd0fATSnlcg/rXA44hG6YTfOnD9YD9Y2tpJT8OQ+zKVknHdtWGM6Vc3F9oaxUc4HkpTfMCLJ5/wQCEyK9OmmREk4Bz+VipmjA3juEMT1bEGyREH5OdZWbTZ0403a8Xny3EAd176FQIvuOiUy/DjUDrhDUOL8OVXCpyCH8eCGJiGdIphn701PPlgpV6bqr6K8WT0lQHLNiq4YWAhVlcoBo7H/ElDUAbK8vrbSRqm3L4FfsIDkc0mmBk8MfDIMawbFpofuek8YWHHm87i+MqDvgYPHobkyiywXU8ndGH0eC+clGRoMXmc/JcpDowbFRJ03YhaSJoyK0rDvfn0Ky5MmF5gLU/AeCclp7udwJjhQVz093h1mqLIfXT/wEqDh5udXlPq32wVny/BRdxzyTwWeNFLbktxotmA1ZslXNW3EGsqdAYzitDqVIDmWjLJcdRRSTx6TwBeC8+be1tOb0pTjMnoN6IA33zjgN1mDsaQHYnryNMD9k+IlMhsNcVMmiKPNmu68Wap+HwlnLCdVsGj37ZhWmUWB5+yA1PneDHnUXc2ndBUqErnCBFYd9nB8eDdlTjpyFSdBKvy/iEwQJX1EkSDRxUimbCeIUbvlG0cN10TRt9/RfVqisLiYWCybxOcwb2aK91481T88sKx8BwxGKF3PNnkDzvw/VIZV/dthWhYgkT0GxYaBYLiKeCC8+OYPiagU/Y1dONAiAGjpvixYIETNgqYcUpaMdkIVMcZOu6pYtbkIA7IeKXER8QZgaI1W7px07IyKdoG786XoiPcFy1BaIFLxOUNS4DSCW8d68Mbb3jgcVqJ0OpLSascbVppmPdgJXps5Qdv2KVSKaKflim4/lY/tmxSIIsfsoXt5JpIU7zg3BjuvDUM91Z0474YpFA31hVrGnZ19f82C5Kq/0ntzBv4yq6vatx7lpT40SbGoRU6gDc+dmDAiEIonEElZj0LdjlZOsk0MKhPBLdcH9Hhk/k2ukgTs4hmwIJzJE/hA+KMFaq7LfVITeMb7s2Zj3nwwCNe4eERZptp/RecJPAXpTH5zjBOOSqnmiKzJSHZ32KlkXPzXWZT6desFJ+X43juveItFnq6mt5bAjZFKZ2wED/9bIPTroEom6zk0aZSHD26p/HEnADaOPPA44iLIkBkyBtCEiorJYSigEqxA5n88LqaEFd+gZuhqLUq0hQFCDOP3xSBSCs2K7hmYCFWLFOqWdjM7qrxruOOSWL6nVVo5drKvUlpin9n3fBJU1HqfOZpVkT5jLlL+pBrmq85phyJiq5M/T07B6L3fuRZD+6a5ofLqdLhZkHpjXA/AyaPDeHiM6LVF9qalNSQbCgF/PCbHQved2LhDzaEIhxqWgFnhFnWT2ibAhQWchx6SBrnnBrDAV2T8GQ8UTvaIcO9+dSrLkyaVgDOrFVYIWHR18zp0DD81gguPzcqqFCMnyWguJeiS6h7c6Ibbz6Kv8R2o+bqOZ2FX/YK1zydYgqwbJ2MXn2KsX4DoCjmeWpIQFRVnNyXJ5+UxpwpVXCTAz+PUzmiMbz2vguzHnJj7RoZiqKf7ts+SxdMlVORBwmdu6YxpE8Yp/9fAo4snGAHZwkHfo/IGHqnD59/aYdDYdaqjhKWB0C3MrroVqGkjarnE4ivlisMlhjCyrSHdsmpVg8vbRaKz5fDD2fPNTz8ro9xIgfWNyxhA+68pwBPP+2Gw2Wy5I4hbJFwngYcPuCxGVU4cr/80gnJ5fjpj3bcPLIYgSoOB8UMhLRrELlwlWpIpyXs0V7DzIkhHLGvYW/XsktJBrz7lQ3D7ihELCaB8HZmm7B2RIkihquviuBWI01RH4cuIQUh2ALNhm7cgojMirT++/Ple86B0vVqRD92ZSkn7ZROqODavkVIpnVyHFM+e2PaFNyKJYCrroxh/JAQJIrQ5tFCHBgwugDvfkAxA20bE2tbsWf4QCioBKhJhrP/Hsc944I5FIA1vNQYakuSYcIML15+zQ27XobadBOFK8DQdg9KU6zCYT3SWRwPl5wxBsxjZfG+pgduhA80ecXnS9CDe6/4jgWec0HYzfoBFdIY+o8swocfO+BwUpKpeTOHhqKLaLsOKp5+YAs60+c/DzwOvar8dwmXXFOMeFQWF9x8BU0GByFpiorTmP9YJfYqIh997Zddui//uNyBAcP92LCRwSZows3HpMnsYtBw5hlR3DUyAm8mTVHgeLxx8PAhrBsWN0JdNjWlfPfD1KAN2ZmvPugzaI6jEP86G8HhduClt1wYdlshFJtqKJ35pdIBSCU1Rw4K4YZ/5lxoa1kgmTkffifjmv7FcCkSNFPEx7rCMhvHk/dX4SgyrfT04Jqb4T0KqwwPPeXGnEd8kCT6wpmFWhuv0ACPT8X4kRGc/bcYWC7duOT6gpWF/q8h97g+3mVeG+pjFhbH5Itxnub/11Os6jkvo90xLrTrggxX9CvGimUSHDZLHntxxKaSMg46NIEnZgbhtxmXvTzmqirAB98quLZ/KzhtOiYmb/ep0FUVkqzgsTlVOGb/eO0UJYbvnu4QK/+0YcBoPxYtkoS3KP9vTc7C6KLNJBx2cBIzJgbQ3pNDbS55w2Dhf7JSLMhDFI22S5NVfL4UDrhOX83j5e2QrtALJdMJ7QBmPu7BjNkeuMgfbcHEoZMyzblgNbhnShXOOj5pCo9Ddvo35RL+eVMryCplPRFZWx6OeVITrgl6E8UNPPvQZhywT453pTY1otJCYHj5bSfGTvFCTUtWiinqUTQuwW5Lo3/fKK77R0xPUxROA5GmuAFdg02abrzpKv6ygjHcedYIROZ7GE/pp70d+GWVgl59i1BVxaGI3FQrS+RIphjOPCOBmeMDsJP7Mk+9FborAYtWSbjk+lZIx+n/z7IU1qa6QvHJyvYWa3hp7hZ0bqflda/IukgZsD4sYdSUArz3gQMOxXwwV3ds6gumfINZkwPo0SGHLoW5woA6iXVLNlm6cStaUfvm1XMPvgrtue3SZQi/7Wa8Un9bJp1woh8vvuKG20Wnllm916n6qNq438/w2P1bcHBJunYbe5v1kslRsVHGef9qjWiEatiauVjrX6niNim89ngV2vrzN7Ey00hJwKcLbbh1VBGCVE1R4pA0KW//vohdZJhMZI7LLo6LNEUX5ROLXzbFSAqiUIJdmirdeNNU/BUlL3Kp87ks9qFdeHJoIxzAu1/b0GdQKwGIYabyZ6s1l1x6qTTHTdfGMKKvhXRC46L5+xYJ5/Rqi1BQA5Pyd6TqtH8M7dtrWDBvM/z0A84Xv5NZBgOCKYYpD3vw1LMeOGWy2WkO5rdbhYa2xcDk8UGceJBRTVEcNE2bbty8JOr5NK9teL4ER/GC3u+zymfdYFRFTT/VK9MM1w0uwLdfO+FwGAcTlSk3+QNIp4GSvTU88dAWdPDl50r8y5wZsDEko2fvVvhzI524NMX8RE2Kr3KOzvsArz6+GZ68UWtbz4KAeIsqbBgwsgAVFYTetGj0GUHqE05M4O47Atk0RRFvk5su3Xh+u1GbNjbQ30mPUXHMIg2hblJsEXEPiM83uS+fetWNMXf54BSYTNM2jp6HRd4MzjB2VBBXUDrhTrChVSYYLrqxGCuXyznUf7ULShQ/h4ruPThefmgL7ARbsNIYQJCJJ+a7cPd9PoFGNXsIZF5LcnG5GW4fEsCFf8+ppkgl3mX/InTZ3OToxpuW4i+Re3PvlbNY6Fmv8PGJoAqweotenfCPNUzH4+SBo9lWl2goQl8efWQaj9xbBS+dtGZNjKymEB8ncOXNhVj4A9F856+5NA9iZTv6qDj+PTMAySzbcs6r6JJdsVnGwDsL8eN3Cmw6UNtU40IOeuT7gB4qZk2qQodiVY8VClu/bRja5r6sm/pvUwPv4s5NRvH5n/DxxPlrWOwbP9Q/sl4Hove+9xEfZj3ohtdSdULdY0P3NqdTw313B3EyVSekoJHFw5b2lHh7bhhSiA8/c8BNRSby3WiRxM5w5ilJzJlUaf2rY3z0qLTQG584MWqcD+mkZFAH5f9FFF5iYqjQGGRFw43XxtD3X+EslIJDBlNaV6FgQ5OiG286ir+s/UzYj74esQUucAM3oAA/LCc24SJs2QzIJu154yYgtDKuyrjkggimjgpCNq4O+erq9mx8ArYMHO3HG++49HhCno3MirTKcHHPJKaNrQIieT64vW7GRXtTjOG2u3144y0HnPRFNOedzY5Mbs4O7bkoXXpQaQ5YTyqOgsceZN1iTYZuvEkoPl+OUu7qtZCFXnWBB/WNIHpvxjDirkK8+aYdipypC2tOUUgAIp2wnYrH51ShR/v88Dg7fAsFkiRgxMQCvESuVXf+mkacN6rKccWlSUwYHtAVP/8DervTIhzPV4sduHVEITZtYVB2VHpxuyPotqMGKgrM0JPSFAeF4DF+QQLfo7SLg6/fj5Vhhbkd2DW9m4birzrgQ848x7HY10rW8KZ0ws+cGDq6EEnKB6RPrhUZcgj35cABEdxytVGd0Mo4uc9QWqAMjJ/pxbwnPXB7dPxNXk3jSHLgpuviGHFTUOfrsdoydx0C7akMMx734rEn3MLLpEcWzGF5xHdLA/yFGibdEcBpx+jVFMXvknnSkB0fsq5bmgTdeJ67YVXyO/8cL8eZWsF1L0qBf3uyUlaAzRGGm0b48d33dsgyRTut1YQlCHDZfgk8OZvSCY2g185Om0oLycB9T7hxz2wf3MLUyVPUnOASwPBbw7jx8vyBcbVNme7pS9fZ0H+0H8uWyVAkFYyZk5n4HYlSKsAxR8UwfWwIbXLjDHK7CPiG81kZ3q1tPrv673nuxq6ZJsFlsPbUVTxRsSdLL83eNimd8PGXnJhyj1+3ekzoVfVKiB+HqjkwTB0XwAWn7Zz7cisJUUqgAjz9qgtjxvvhcZlgdSCiJzBxol5yZpzAN3XTJCCqMTz3phuTp/oIjWTUUzSvAqT8DqeGwQPC6HV+FHIGPUpFgpXC1SjZ2JWxfADcdbM0K6OYX7WVt1h8hi/zDOPu829D8AWvKN1joC+Xr5Nx7aBCrFmtgIp/53911CcioqNgSCeBk05J4MFJATjIrWPVfbnt+hiQloEF7zoxYETzWk/rAAAgAElEQVQRPG7NKLiWhyCMFMA504I47fi659pfF5YwZLwfn39mh81mtZqijjgt66LioWmV6NQ6B0gntw6DhW5jpYkZeax2l3VptIrPV6AdnJct5+H3PUzbmBUQpRPedZ8PTz3l0qmyDWvVnATpAsngKeCYO7MSR/VI6cUc6lAaBE1+63M7brilKMvals8cyatD6MzHZlfhuMOS+olfF/My7H0KC7z3rRPDbitALMYsoTf1g0aDLDHc3DeC6y6NwE6nvpgnVYNvF2HudXuzjticz5p3RZ+6EGm9zJsvL3kGSumFiL/rADcyq2zAV7860HdoIQIBvTph5ppmZhJkeCSTDFdfGcMdg4KQdiJCW9N7VQn4/GcbevUtFrWr8vsq6flXNgfD0w9W4RByGdaWhJLvwnN2upLSFGd5Mf/VTJqiOVtRlBWiVE7O0WNfDRNGEAtbSkeR6gC2OBh/jnUN9c53eg3dr1EqPl+Ow7n7ho8QeMbNENZlIgFBlWHIHX4Bt6VCa6aw9jl7m04zdOiUwhMPVKGk2Dz6MZ9NomDnrysVXHpdEVIUOMoToEkgOV+hhufnVqJ0j/qZGx0jP6xUcPMIP9avl2En3hALFyWCV1CM4sKeMQzpE4I3k2lGsrbtEUN6/dGsO37KR14N3afRKb6Oxzl6Ieep/Vn8B4HHocYdwH/ecWLkeC9IcXUvTn7naEaotFi6z6oax5ihQVzzj7j1yGgtO0XOj9UbZVzQuxihEBVozm9rSfHbtOF4dd4mtPXV4b0j9/UUA1EZ5j7rxqy5XmJhMVcMJmcsokXZu4OGUYNDOOWoJEQVVQElIVoLzw+sdFOjpBtvfIpfLl/FfdfMYcEnvdkqajJV/pNx46AiLPpNFvjyakCOuSVQgsmhhyTw+IxK+GnHzf128tNe4wu1oUrGOVe31qPKeSu+hk6dGF6b9ye8VLChnuZHWWIrNikYOLoIv/4iQbFbIdoiYB8X9IUnn0xBrQjaZtIUhfITjmfjNaw7XsxfcA3T05zW1POc+Hp4eOrctUj8VMjSq7NamXIADz7pw8w5LkgSfQHM+Z/FF4N+KuS5sTPMnlKJM0ymE1pZ+paEjPN7F+P3tZJOJJVHo8htWamGVx/bArtaV26m7byYosscePk9F8ZN9kFNEQtbHhPcposA1XENbVtp6H9TFJedFat2b9K3RGm1CY4NjY5u3MJSzQsn3yf4srbT4DqhLw//xy3SCakpwM8VCm68tRU2bBCQKEteDrKgUkkNPc9K4u47jXTCfCdmsR9RnFzez49ffyIq79qP7gwy88gj4njqvgDkBqAg3xBlGDXZj3c/0FnYzDe9uAbdwQ4/MIkJo4LokrmbiFO/VQSI3MvK4reZH7v+nrCy0nqZDV+CEnh7/8Ijr7qYWiki/DS5qMxwxzQfXnrFCVuWfs/stDk0lYlQ+7z7K3FAl2qipHpZjDEoOYv6DC/EB584sskxO3of6QkVnTj91Djm3BWou+DVDl6aYsBnPzkxaLQPgQDdRSjCkaddZowrUFKCkoTjqsti6NsrDKdYDHVggLJHDFjXqOjGzWpQvekJX73f20D7kxH9QMmmE9qBD79x4eZRPsSi1j7FFDkiMtVkCuh3bRTD+oV2Dv+SrwTIlJCBoXf48err+SE0yUuipYFLL45j4ugAhEOrPnfIQG8G0wxTH/Lg6Wc9gpIkUyAp36Vm+pHjoKxrGmOHEf1hsjpJnnlTkJU3Wdeq88yOWV/961Osec+ZL8GpWkHfV6XKxz1ghlNdAsjfPGB0Ib743A5JsaoDKtJpBV26pDHvgUp08ORB7533zHfQ0VD8cXf78OQzXrhdaq2uE53AiuP6qxMYNSDQID9QYV4BWLTWhptH+rB6lQ0ykXARB7nJpoLD5eA458wERvUPoYDqc2WuKXL7KLR1jYZufJcrPjkFsPbk5Vpyw15S6jf9+0jycgDP/deJsZP94jOaMX3M7YVgyIGqyZg4pgqXnZuoN/flX+ZlANXufdyNWff74XURqHfHTSi+BgwZGEa/K6nwhLnVWu7NdBzPk/9xYdoMSlOs9Tda46soX7jDHgwjBgbx9/+LQcoEtZgDkAuWocuf3RoD3fiuV/ylrlu5+5/jWOjfejohNUlPJ7xhSDGWLpWhUK0mwRJgrpGipVLAMcckMPfuILx0/FD0xhSln7l3Znsb3PXPvebEqPHEzV87rl6YxZxj0tgqXHKGAVew+Hqzj1Ga4potEgbfUYBvvqNqimZH0O15mj95sP7v2ATGDw9hjww9iojoknuzcjDrlnrYyuh1+YxZXarLd4OXozX3XbaKRz72MPUP3Z1G5XbswD1zvXj4MY+o7aTT7+U7VWMQ+oRrgMPB8cC9VTiB0gkbwEuSK6A04XU+dKLPUF3xDTLiWmX40L1bcPJRBn6o1t5114HSFN/5zIHhd1KOgw57NXfc6BdjYqErKgL6XhPDVReGYMuc+uSGVtoEIa/fm3VGVd3N3PxI+WqT+ZHzeIIv2+sJ7jrkHyz0ujN7E7IB3y2xoc9gP7Zska2BqMi7xjXEkzL+cVEMk0c2jGtw2yUTeezHPzjRu48fduHONG6TNciGLpWKwkSl9CN65MfDn4eY8+8iAZtjDHfc48Prr7ug2Mwqvh5YFJhPpmF/wvGMqsK+nXLQm0pRDDw1j5WFdynd+C5TfL4EB2u+6z+XAs+7wILZ9LoIGIZO9OGtN936hVYck2aa4VdOA0VtVfz7wUp021OtO7CXiakQXmfhCsLrFIITak14vHfsKnR7VbzwaCXKaM55UJKbmM6OuxrBcEpT/HqxDQNHFmDTZpuIkptTEv2LS7a+x6PhHxfGMOjaKNwZ1ly6rMntY9D+OHRX0o2bW1OdSRngq4/8QYN8oBT9StJJSgHuBP73iRuDx3ihJsmuN+dPrp4eF7b9oP5RDOhtgQ2tjtZJulSxScL517RCKCAbeJ2af8j0G99jjzReeXwLWlO6Yj0GbmtcIqUpphlmzHPjsSe8sFmmH9VzdEv2UXH70DCOOySpV18V8Rm3Ctn5Beu6ZZfRje8SxefluEwr6D9XqprrzZKvS8CfUYa+w4vw/fc2SPSZzTdPdatdJJ+9iv32S+GJ2UG0dtRROqGVHwMDNkUknHd1K6xfL9WcNGP8FojMqktJCv+ZtwVOq1QIVua5zTOE41m6QcEtI/woXyqLCitmz30akvz6Dhtw+ilx3DYohGJK7cy6N/cIg6+/nJXhv3UwZdNDNLji8z+ohvC5FTz2SyuWXlmdTmgHHn3Rjen3eg0PTg6O2MSyKC2OPBR3TwjgvL/F9OintaFMvLVGox1BjeEfNxahfHGG0Klmkatp4KCDk3jxwSrIlHHe4LtjrIMIeMHwwptu3DXFK7A4ksWvr6YxtGmbxtB+EZx3eiynmqINUIrXo8uGvSm+uPPCNjdCg4uWL281UXOdd7MUpORxI53QBiz5Q8F1gwrx+xpCX5pbBPWmrwMVakskgVNPSeL+iZWgUrS1Os/Nvyr/J4jGjxGxlB+ffOqEky64NSDB6LdJmLTT/hbHQ5MCeryhwXdn66X9EWEYMc6Hjz9zwU7Zbixvlv/sQGS+SbKGIw9P466RQezVKvei2yoMLbRL6MYbVLR8Bfbmrt6/8dB/XZL2Z1Y4cQW4a7YPzzzjgaRQ6R7zmk8LIcVxezU8el8AR3TbBV6RbX8SInrLMGKCH/NfVeBy1RQN1S/kVG/rikvjGD98J4mk8v9p7rAnVVP84Fs7ht5eiEhEg2ySlYEGFzllVDm9UMM1vaK4ntIUswcSA2ztopDWNzjdeMMq/soeb3Bpn1NZ7G2biCTRMecAPv3ZjpsHFyIUogPRGvqSLsiJuIRrro7itoH5VyesIx3Z/jAGv86UB3x4+FGq0KInuv+16cnoqiqjf58IBl3XQHii2hbPgKoEw8T7CvDiyw6B2Rf1uWp7LufvuZkT3bslMH5EBAeXpqq9bMyfgIRXWWngMhPD7nRXM2vYqZfxpTiR+/q9gaon3IS+Ei+mdMI0w613+vHh+07IhO2w2Cgrq1Mncl9u0SsFGmm6Foerm8eM6O1jLzsxbqJfsC1sP12SXFrEpyNh7O1VuKpnouHgCjtaKZUepWqKKxQMHF6I39dV5xWYUn9G6FjA6QYu6BnHiD4heKgqI110acspTVFdfyLrhm/qRvC1j9Igik9RbKw5eSnUqs5ILDRgUXo64ctvOTFmfAHSmlEgzcKMBLW2yjBqeADXXFKH/Di1y6/WHsS28PYnDtw0uHCH0GRy/lHy/FyKMh/Z8FHmGhdCaYoaw6PPOzFrjk/49cnNbGGbhG+f0hRHDwrjb8fEdYceDSQ5OSTfr+jy54EWrhG17sH2OliZv+kX8XJHP+45ezKLLPBCS+mLtQM/LVMwYGQR/liTk4xtYkYZtkxiTDj3nDgmjwnCTT406x8O02ur7QFNBn5Yoiedy1SOZzvXF90cYHC6VTz/WKVeb6ohg1e1LIK8yn+EGMbe7cP/iASX3Jsm9ikzvH7R5Tj84BTuHBZGaQeDmYE6sKIwEGwwunEL069tq7f+O1+NIi6fU4HY116mVvPjRCVg3D0FePEVhzjprBUt4IJZuLiVirkzgjikq4EBb0SKT1NZvVnSk85Fosf2EHIE7gLa7ZHG/Hmb0S5DMtuI1kEJKx//YMOwOwtQWamIwJaV6YmEIL+KKy+Nos9V0Zx4hQzIRZXwb9qLtc1Qa5jTNTO961/xV3Scy+WyK1n8I2fuhfbtLwkM5RPKQEpvbSLEjyPj2quDGNkvklOS0owI6r9vVZzh/OuKULHKLvAvf2lk7nKge/cUXp5bqVdBqcba1f8E83wD5Ufc+4gbTz7rFUEtK02vm055xSncNjiEow9I6aBcIRZvFIr6ACuNDbEytplnrOlbnm/gy7C/5r7saxb6r4vxan6cTXEmqnR88akdkqjNZC3CRCzHlGBy/5QgurVP75oQfx6yiGrAvwYX4puvHQZYbWuxk8uPMq+OPzGJedMDYJQF3ggbXXR/WWnDoNsLsHylAoeN6ySyJhsFtYh789yzoxjeJ4pCiq6LiC7heFrHwf+sd7px87M2sUi+8uCvOXAYEj9JjLJJqDmBf//HjYl3e5BOZSp0mBg084HlkiBBGj04iCvPj+nQ18bYjEysURPJJejebpEIOgHJh3/lZTGMH7qT1OD1LAOqq/Xv15yYPrNAAAhFQNeS8nN07KBhcL8wzjkprvPxCN13pqE4PmBdAqfX51LqTfH5ElykeS6fx4Ive5m4vuusICs2Kug/zI8lSxVx2ltp9IVIJCUcd3QS08ZVob1PEzi3RtmMTKzZT3pw70wf3OTS3Mawo+QNVZMwfFAYN/4z3DhcmdsK0/goE45n1WYJIyf48eXXdnHqWwsxc3HRPeG4BG4bHEGnjAtaJKy0ioBvrle68XpRfL4STthOq9DiS9pI6YpqfhwbcPdDPjzypFtYeswy/oPD6QLuHh/AqcckdB6XellJ3fyUKCFlwUd2DBxSCIdz+xOluN1906pw2rGJBk+YMbVKCspx4M2PnbhtYgHiMZY3PeK276FIe5siDdf1juLqi6NQqIK8+IDYwGTfanTZUm904/WiLry8cCz3nDAY4Tc8WZp0B/DNLzJuHlWIjRup7mrG7WhuCiSadILh/AujGHvrNgnNpnaw4TqTS3PhUgWX3tBKjwht6w8hDkofx0uPbEFpI3NlbldKVMc3ImHibA9eW+CGYilNsRo8ePABSdw2NKwTz2YpCAvDQGQMK0vNrI+dMqd1ecyAL0VHuC5YgsjHLvDN2aQjIlcaPdmH1990QBIoNJPZPYa+qGmOdu01zJpchUNL05AaQ4S2NrkwYF1QwkXXFmPjOlkk2OQ2TePoXKJi/iNbUFCPtIG1TdPM39MS8NUiO24d6ceWzXpE19SVPGM6aYDPy3HJhVHccm0EHlFmkWZC9YpaReD+s17oxute8Vd2fRVS67MQ/dqWSTChC+2CD5wYPcGLWEQWazL7Yl1OHClVQv+bQoKFgODdTaIZxZZvGObHZ584YM9WQdT9WRTOP/WUuChQIdhVzApnVwiB4CZJhsn3e/HcfDcUiTBWplRfnzXX3Ztd9klh1KAwTqSaAJmLruQhUPmzrCxyTV0vsU5FzMtxPPde8RbCL7sZN/hxZGB9SMLNo6lelU0EcMyDW3VdSCY59jtQxcyJAZQUpy3Jua4FmNd4dMGVgBmPekU9Xg8lnhvwZAFO0xiG3BJE36uijfNiW8MiyWr7/Gc7xk3zYvkKm2C6s+DgETWGXXYuGORGDgijjUE8Kw47pXUM6U11TjdeZ4rPOSRUHF3OU4GuSC8GMz5ZhMeZ+6wLd8/xgdMKLUCOhQAopiNzjB0dwMWnJaA0BRMnozAE9pKBT7+3o/fNRaDqbozMPR2bBpeX44nZW3D4vkYwJ69fU+PoRMnpT8134f7HaX/JYUGBGTOwEb0+GMXs2rfVcEufMC46Iy4quot9Zw4NkusHVlpVp3Tjdaf4S2w3wnPhdARf9opvFY1sAxav1d2XK1ZRmDtTBM3ca6l3PAGcckoCU8YEt6601zj2f8ezMO4nG2MShowrQPlSqt1VrRwHHZjGlFFB+EzXn931i6dT/9eVNkyY4cXX39pFgE7c3kxaPXQA0D3hyCOTuHNICCXtDLyScG8Wh4EtvVkpXqqrFZvTwBreypfDz+3nViD+TQFT12e9FgkFmDS7AE8974KUOQVMclFTiJto9XwFGmZMCuD/DklCbqzBqpp2JXMxl4HvFtmwfLWc9WqROLp2VnFIWeMCpuWtYJScnmJ47V0Hps7yIRJlIoPOWkQXKCzUcPUVMdxweRh2A7YsOLLlok1wbqozuvE6Uvw953D7UVezyAIXuKGVTuDTH+wYNMqPysr8S+H8VeAUrGK48oooRvYNw2vqM5r39jVcx+1hXMS3fhenSe6EBAhxunKDjHse8OL1d5ywKUbegSXt4ujRQ8Udg4M4tJuB3qRxmD8CJOqMbtzS1HJlxMvRnfuu/J6F33VBo9NeN+Or0gzDxvnx3ntUr8pEZe+tNoC8OBx7ddJw39QA9turibgvd0KJmuSjBMvQGD76xo6x03zYsF6CbGMm/ZvCxQNNkwQfz3lUV+uGcLV7l27NttZR4M/urCvW7Kycdl7xVx30GZf8R7Ho53IWRE6Er/9zYfyUAqQSmaqy5l9FtmJaUzH8lih6XxwBYZmaRSNRZHD5Tfik32ovJGB9QMJDT3nw7+fdVPTTSKzPF9JARm31RXevvdIYMSCM049L6OhNoT6uFCTbm6w0uNN04+a1MWe1fCnO1TzXPs3C871MrdInJwNrKiUMGF6In3+1GejL/NU1E9ck25cutIcdnsDMcQF0LOKNF4+T7/LI3ceByoiESEwP4hGLcqGXGAwoJJ3vQI2sn6FFxPT8zRIHxk334rfFChyKFWcGFx4em43jbycmcNvAMPbwG2S/tGy5dRTapjNYN3y6M1KwrPicw441p1bw1Pp2LLUom06YtgOz5rnw4NwCS2DjzISoMiHVe514WyV6npyE0lSVgnaHajfKQPkaGd9+T5dbOwJV5PbTUFysoqxExZEHJ9C5vdZ0ld9YZ2Wc4dnXXZj5oAdakn7Q1qjYNJWjVVsN/a8N45/nxnPwWDZAKliKrpu77wzduHXFX+YfDdd5IxF+yQMtmnVfLlxmR98RXmz4g4JVVn6Tuh8smZBx9lkxjB8RQDHx0TRhM4eCVx9+Y8cLC9xYuFBBICgjRdwddHo4IJT/6CMTuOy8OI7aL4eBwIr4duEz4o7OgPLfFUye5cHHnzlgt1RXS6dLlyS9QuWdQ8PotpdRvklcdIvD4FWDWTfNMt24JcXnq9Ce2y5dhujXbqauyoaqiTxp7PRCvPyKXsHEWuxdgyrSCYH7plQJ1uAmgcfZVuFIsvSFtgEff2/H1NkeLF5sF9lmClVuzHCicwYCJVIS95FHpESpooO75mzyLlRkK6+mO2hUBd74yIlJ9+p1tawQhAkjSWPw+jmuuiSKPv+KiDRFnWaV3JvFQUh/7sW6IGBlntYUf0XXF7mt+7mIvmNnRDpPP3UH8ObnDowY50ekikNmkqXwtTjtkxzXXRPDoOvCOstuEz3tRZJ2UMLgsQX48gsnHCK489cmiFSFGavhrDOSmDAsBL9wCVrZ0kbwDBW33iJhxiM+/Oc1JxTTaYr6TY+YJ6iVdtUwZlAYxx6YyEFvemNg8uOsNNDPyopNKz5fgqN4wXXvI/iam2kb9UOdyFHjDLfc7seXX9iFiSMIX02PzpBOqejaTcXsiQFBlc2aEjQhdwcYQAjGVz5wYdhoPxRZpw+pUZeFx5eLH8fsaRGcfES0cePyd6RthNnXgM8WOnDn9AKsXS2Jy6rZoJbgW+YMTqeGs89IYmS/MAozxLNEGenoFmdYfDArQblZ5TelmpRphoqjF4GhG6Lf0taK93E78OzrToyf6odqJSlEaINxGjJg9NAQruhppBOamqHZ5ddvf6JGvGOaH888X0vVQ0PpdRpB4PrecYzq3zDF3+pNAsR+HWaCCPjRJ7zi60UuTnOsywYmVwM6tE9jcL8IzjklLujGRZMKVUiuL1jXdabpxk2pFV8i90ZB71kIPOdFJnlcBlb+SbWT/Fi40J53Be+tBa6fBsmUhuOPS2P6HQGRTthUTRyxNmIclhj6jSjEe1Q82VG7itE2q6qGc/6ewKwJQSBi8ZpU+6sapAfVwvhxuQ0T7vbi+4VUQDpfn/7W0xPuTZnjuGMSuGNoGJ2KjcqVZAnZS8NQl5qmG89b8fmf8CFx3hoe/83P1GV6JWKyx23A/Y97MPdJD9Lkqch7xJzFEcVcmsHtVjHtrhBOPTIhLrRWhmqQHc3nJYbi3zLGj/+97YCTir/V0oTipznO7xnHPXc27qTz2taS+fEHEwzz33Fh+myP4DYl2L6VRswMRcUqbvgXpSlGYMsSzzoBe/t16LxyHzN043lPgy9rP5M7TrieRV5zgbD25I2zAd+XE8lQISrWGKRQFi5k9EgySWVjUhgzMAB/E8lC2tEG0hVHYPAf82L2Az543GqtNq5e7pNh8M1h9L9q11VysaKYNT1DOJ6l6xRMm+PGO+87YVckwc5gCrdP/cmykRj23y+JO4aFcWCXHD4e295hqBsmsm7xSfnOPS/F58tRyt29FrIQ4XHW6fY4ofI4AxUwXvC6S1QYpB9DXgNuM7t0Gmi/Zxqzp4RwcJcm6r7cjsQJsvvVEjv6DixEMAQocq50sjFqIw1Tr3HbprWGh2dU4cDOOfR6+e5mY+xHX7408O7XDkyY5sOmTQYy1YKmkI55fBr+cX5MpCl6CcYtDloZcHSNgpeXsBJsyEcMeekpX3nAh5D3OB7Rj2S9kJHuvnz9IxfunOpB1RadJ8Qk4ti40Oqw4wE3RUQ6YbPB4xh2PlVEmfWwF/NecIKnSPl1qILIwCJvgcjYY0hpgMuh4uqrExhwVRiORsYBmo8y1dhHAv6olHD/k148+5LLiGNY4yCkr2LnzmmMHBjCyVTCNeP1k9smwLRXWddNedGN16r4vBxncl+fFxF+3sPULQa7LbAhImHInX589ZXdyJQxLxr6gNG9YL8DE5g9MYR9iqmUvPlxGu0TpNsSsOpPCXPmefDWu06EAvTJprxjcm/qpzx9Pqlwwvl/j+GGq2PYk4oiN2WIxnY2hJx9X/5qx9ipPqxYIevMDKbsHX1QUVeL0hRPiWPsoBAKHBm6cXJvlkVZqvykfOjGd6j4nMOGtaeu5KnKDiz5I1299Jc7gHnznZh5vxfRmJ5qZpb90vBgginA+FEBXHRqHBSzaY4to/z/fd+Jr76xY+0fiiiCoXEJbo+KvTuqOPHoJM4+JY6OrZs4XmfbDcw4chiwOcrw1Ksu3PeIW+Riiq+d/uHLu1EkhA6L9ntomHZnEEfvn6yO9UgFHLL/V5SsqZVufMeKv8wzFJ7LbueB57xM+Nb0dMLytTIGjykUFfGEwotjutaPx1aLo94JSic8LYHJo0Jo4zIqpJgQQt7SagwdFSCaZCivULDqdxmBSjLxZBT6UyjpxNGjcwouyltoqgG7PGRMdX9/Wa2INMVvvtJ5RHWlN6c7AsejMPS6LILrLouiHaE3jUOTK2Vhllreh3VXn9rRlGp8I1+GtnBdupLHvnWz9Iqt0gmnP+TF08+5kcpyX5rQVlopY6Jelb+AY8akKhx3cBNMJ8xjo7fbxSBfIvccfbYVuqCR2d/gdf+sLmAnnjPSFIlqZuoML8JhZgAZzSk+zYCYKcq6JNH/esLsJ2HLWgsOwNapCp5lHdkemdP6r3OuWfFXljwN5eCLEH3DAY3oTfQL7Wc/2jFyvA9/rFcs8CVUs1+nUgy9/hnH0L5V8GYcHDsh0yb56G64bt3sk3H3gx68/j+XCEzpB75J5ResGxrOOSOOfr2jKGmfcy+ydYyCB+awrqGhNenFdt/Gl+Ew7rnhExZ61QUq5kC9jHTCMZN9ePtdp4hf6cUc8jdz9BwbFam0hL32SeOBKSF075ike15L210kQAlGKsNH3zswfqoP69ZJAslrUu2F2qU1jvbtNdx4dRiX/D0BV9YzIoHby2IsvXh/VgYyV/7Stq/4q4/8GXDtx2OfM5bhb7YDL7/rxMRpPlQFKQKXv8LnvpU8OfSZGj4whN4XRUFQe9FMWEu7i44023XKwMYqCQ8/48G8ZylN0dKBrx+jmoQTj0/g5mtDODiXqUJqlYaifMBKNmyXbvwvis8Xy1dy//UPIPSMl6lB3f6UgbVbZAwe68MP3zt0IiQLwSr6QCTjDIcdkcCMCUF0KGhm7stmq6l1vDAD3vh9uZ6c/ttvilFKtNoUzveNqgoU+lX0ujyGXhfHUOQyLrp0kNp7RJD67TzWDe9tO95Wis/Xw8NTPdciuQHX5OkAAAmRSURBVLIwN51QtQMPPeXF/Y+6kExQMQdzp30Gk0cXOrsTmHJbAGeeFG/a6YT57kxLv+1LgGroxiU8/7oLMx5w60VCyObdXnW8HchQB/YBBx2Qws03RHDioTrOSxgRzAumtFmNkpV/oRvfWvGXtZ3G3af3ZcH57gweh6oT/rxMweA7CrFqFUXbLBz14lOmIhFXBG3EuKFBFArKkRat2J0lQGmKS/5QMGm2Bx9+4oRT0ajoqWl7n9ybdjvDRedFceOVUXQg9GbGLayUhKH9PoaVJbaiG88qPl+CEu7t9Qsi77tY+neDrBKIMoaJs72Y/4oDaloUrLLUVJWjTSuO2VOrcFj3VNNMJ7S08paHapQApSmmGd78zClKQ1VVSYJ12fx5SPxLDF321tDvuhDOPikBgScQA9kAe0kY9vJ9WEdszsylWvFX7/cWpL3+hsh7CnhSt+1twAffOjBygg+bN9KErMFKRY2nlISbro3g5mtCIDNMjG9+hS1a1NwkwIiORsGsRz146T9OwbhspdGpTxiQv58Sx4BrIyjrmMu92T4OJJ5lpVuydONC8flSHMq9N37CQvPd0Dbp7yVOdw4MvcuPd99ziKx30lYrBz6xoe3XQ8U9UwIobWfQe7covZX9bX7PkMODA5//5MBdU3xYsVyGbLg3TakI15DmDO3baejXO4yLzozDkfG2k3nuLItBLe+WYWHTFX/lfm/C1ul0hN+XsiFEG/DdYgX9hhVg82ZblhTAiuanqKLf5VGcf3bMoPduse+bnwZbW5Fwk0gcm8MyXnnNhdffouR0i5STOjEDLjgrJk79vdoYtj69xLZHAog+xLoGbxHnOt8IL7TefyL0rhNqDiWhE3jgKY8oZKDfuK0vTOIM3fdLosAg/Ld8UbA2hZanGrUE9CxcAqNWbpaxbLUiElWsOlEIEXDwgUkM6hsWzNrZ6ipcBpz7RuH5uR1VTmd8CS5E4chHUTWnEFo1RQkVdBg4rgD/+59LYErMY+1zpc1Bp74wl7hZHGej3rWWye2kBDIYNQEOoLJXGf+JOY+5MQsGcqK0b5/GLTdGcPHpcbAMvJvGcx5ShcQPF7HueJ/xct8kXnDxUBZ8ToampxRSS8pA78EF+PYbl54yt1NA+cwqLK1mJ0Xb8njjlsDWumGUlbA0ZVJdAj8WFKiCerDXBQbUPXMxtZckoa69i5UmxzFecezbHK7TWPRjVH8XgDhjuGpgIRb+aDc+O6auGpYm3vJQiwR2VgJUbspboKFP7wh6XxQDsZVnvYdSa0Dxf8pKlv8f47+f/S1PBw5j8S+RLepANpcNuGFYET79nBTfPJZiZxfQ8nyLBKxIgPJyiY3h5uvDuKJnfOt4kVQM2Pb8kXX+5RDG157zPdLBQxD/XFd847PAXcDt0wvw4nynAALpMIWW1iKBxiwB/S5Zsk8ag/pEcNaJcWQwluLwlosA296/sc4/7sv46iNe06RWPaXIexDZ0Bl7yAm88KYL4yb7BB8KuZx2Q/h4Y97llrltIwHSz2QaOPboBAbfGMWhPXK8OtRXbkMnfjnbZ2F3xpe1maW5zx8ghZ5C9nJLIxBD2gY7bhxSoGN0RLMSvmrZnxYJNJAEOINsU/HPS2Loc0UUrXPZ+MihaCsDk+LzWUnFxeTO7M2L7prJtkzzQTOqmhhHe9rOcM/DHjz2jBsapcYJmEGL8jfQNra8xoQERJ5HiqF7jxRuuT6MU49JQd6WosV1YhKxT25n3bUpjJejNS+6dS0LvuJAerWe8p7RbRuw9HcFQ+/y4ZefbCKxPJt0ZWJSLV1bJFB/EiCd5HpJWA9w+SVR9L4kira55YOEsaKAe84MsPiCC1hXfKBDFtac9rMGz/5S5E2AJ7ayaDQ78PrHTtxzvwcVqxVRwIBSDlss/vrbypaRzUiAKiVCJLKccmIKN10Vxv4lKb1eWm52n60DuK3TZrbXl21IfXXFX4xLtNZ3PSZtmeWFtg0DmwTENIb5b7sx71kXVq6gc1+CzAw2MDNzbOnbIoE6lADx52uqBJcbOP6YJHpdEsPh+yZgzxYTN0qzEd7Gc3Yc8Y/vZ6WBIVvdVvmak37TpPbdpdArAI9vfY+VgIgm4Z1P7Zj/ugMLf7IjVCVBkhkEHaRsEGe2eDzrcFtbhtpKAob5TXSLdMJrGgeTOfbcg4uc2wvPjGO/Lqlqpc88LABqncEdXcIs/m4JK8WfWyv+EpzKi29/BaHXvSxRzZqWfbkEpBnDT0tt+PArBd9978DK1QqqAlSoTdJZw/XvR8uOtUigjiWgexVFRogEUTCvVbGKg/ZL4+gjEjju8CQ6tVZBFEXZYCt5cYTv3g/u6RmWoi8OY6WJBzIT2zr1cIlvqFY85A6p6jkP0ksAvh2SejsQjDAsXWPHihUMFX9IqArYoBKomv7HIoqzjiXVMlwzkoCupHr5Z1ElskhFpz05Dtw3hY5t03ASN08m1TA32MS8gPuMONKLf8Y+vx6fy5//F98kX9HlCXiv6MVDL4Ill+h8mdv2MpgXSNHDCYZYXIJWHfRtRiJvWUqjkgCDqLjjcnK4HJqultkCEVuf9pB8gPcUDak1y5D67ghWimDuWrbrlOfL2k7hviv7s/iPbsQIymAwqW2vt8CTNirxtEymOUsgY85kLOqMTmZJyRi4sifgOjnGUj+7sM9CO2NZVH5WMjVGo3i5fBm85z8EqZVNi37uklJk+iSriU9a4ljNWb2axtq2vU7KxeCOg6guVoRFXn8J8u83sc4wTu2tl7RD9eVrUIxE61FwndxXk7xplljlY2oFkN6o43oyZpAZnuemIdKWWTYFCTAbuOQDk9uD2zoDSocAS/0cRPTjAaw7/rOjJeR1bvOlaAPgdMjdr4St0/FgcIG5YoAtDUb37G1bzrDZX2UNrxIE6TkwoL/8d0321TbvzKSI5Z4CW8Gpzby/NrFk89H0N9C9S6shR23b9dUsq+oSKaJcyg7Wl/tXjVLachi+/gIhz/gBjfH0lKftjF+DBZypz5n7yNYnrZGlVAOWpXpfqt+5XVHVlOOXzYLaes6cp7lsT0KLM6h/2lnqtw8RX/QYumE+Y7XXy6xth/8if6ImB6BgJdpDQ2ujdGnOonKuwunsf2//79VZiDt+futsxb/2re3v1fPQ1TTTant/5lqvbvcZ3dWg/99cOe54/O2Ptf31b2/83OetvD93rpmxapp/vuPXJp9c98j23mXcU3cgy23lQ6qdgowgNPwCCYtZKRJmPlKmFd/M4C19WyTQWCXw/2FPRE8ZCmprAAAAAElFTkSuQmCC",oe=ye(49661),re=ye(76560),z=ye(67290),a=ye(59301),y=Object.defineProperty,E=Object.defineProperties,b=Object.getOwnPropertyDescriptors,ee=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable,fe=(Te,_e,je)=>_e in Te?y(Te,_e,{enumerable:!0,configurable:!0,writable:!0,value:je}):Te[_e]=je,he=(Te,_e)=>{for(var je in _e||(_e={}))te.call(_e,je)&&fe(Te,je,_e[je]);if(ee)for(var je of ee(_e))le.call(_e,je)&&fe(Te,je,_e[je]);return Te},me=(Te,_e)=>E(Te,b(_e)),ge=(Te,_e,je)=>new Promise((Ce,Ie)=>{var ke=nt=>{try{Ne(je.next(nt))}catch(qe){Ie(qe)}},$e=nt=>{try{Ne(je.throw(nt))}catch(qe){Ie(qe)}},Ne=nt=>nt.done?Ce(nt.value):Promise.resolve(nt.value).then(ke,$e);Ne((je=je.apply(Te,_e)).next())});const Se=["fullscreenchange","msfullscreenchange","webkitfullscreenchange","mozfullscreenchange"],{Countdown:ve}=Ee.default,be=({exercise:Te,socket:_e,dispatch:je,onStartScreenshot:Ce,onCloseScreenshot:Ie,handleToDetail:ke})=>{const[$e,Ne]=x.default.useModal(),nt=(0,we.useRef)(),[qe,Je]=(0,we.useState)(!0),Ye=(0,we.useRef)(!1),We=(0,re.useParams)();(0,we.useEffect)(()=>{var xe,Ae,Ke;if(document.addEventListener((0,de.gH)(),Le,!1),window.addEventListener("blur",Ge,!1),(xe=Te.exerciseUserInfo)!=null&&xe.screen_open&&(0,de.vp)()&&Je(!1),(Ae=Te.exerciseUserInfo)!=null&&Ae.screen_open&&!(0,de.vp)()){(0,oe.RG)(" ",!0);const tt=document.domain==="kepukehuan.educoder.net"?30:localStorage.getItem("Refresh")==="1"?Te.exerciseUserInfo.screen_sec+3:Te.exerciseUserInfo.screen_sec+10+1;nt.current=x.default.info({icon:null,centered:!0,width:444,title:(0,z._V)(z.CP.recordScreen1),keyboard:!1,content:a.createElement("div",null,(0,z._V)(z.CP.recordScreen2),a.createElement("span",{style:{color:"#FF9849"}},Te.exerciseUserInfo.screen_num-Te.exerciseUserInfo.used_screen_num),(0,z._V)(z.CP.recordScreen3)),okText:a.createElement("span",null,(0,z._V)(z.CP.recordScreen4),"\uFF08",a.createElement("span",{style:{display:"inline-block"}},a.createElement(ve,{onFinish:()=>ge(void 0,null,function*(){var He;const ot=yield De();(He=nt.current)==null||He.destroy(),ot.used_screen_num&&Me(ot.used_screen_num+1)}),valueStyle:{fontSize:14,lineHeight:1.4,color:"#FFF",display:"inline-block"},format:"ss",value:Date.now()+tt*1e3})),"S\uFF09"),onOk:()=>{var He;(0,oe.RG)(" ",!0),(He=nt.current)==null||He.destroy(),Je(!1),(0,de.Dj)(document.body),document.getElementById("root").addEventListener("click",Ue,!1)}})}return(Ke=Te.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)(),Le,!1),window.removeEventListener("blur",Ge,!1)}},[]),(0,we.useEffect)(()=>{setTimeout(()=>{Te.actionTabs.removeEventListenerExitScreen&&(document.getElementById("root").removeEventListener("click",Ue,!1),document.removeEventListener((0,de.gH)(),Le,!1))},500),at()},[Te.actionTabs]),(0,we.useEffect)(()=>{setTimeout(()=>{Te.exerciseUserInfo.used_screen_num>Te.exerciseUserInfo.screen_num&&Be()},500)},[Te.exerciseUserInfo]);const Fe=()=>ge(void 0,null,function*(){const xe=yield De();setTimeout(()=>{var Ae,Ke;(Ae=nt.current)==null||Ae.destroy(),nt.current=x.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=Te.exerciseUserInfo)==null?void 0:Ke.screen_num),"\u6B21\u5C06\u5F3A\u5236\u4EA4\u5377"),onOk:()=>ge(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)},at=()=>ge(void 0,null,function*(){const xe=yield je({type:"exercise/getExerciseUserInfo",payload:he({},We)});return xe==null?void 0:xe.data}),Xe=xe=>ge(void 0,null,function*(){var Ae;if((Ae=Te.exerciseUserInfo)!=null&&Ae.screen_at){const tt=yield(0,ae.ck)(me(he({},We),{reset:!0}));if((tt==null?void 0:tt.status)===-6)return}const Ke=yield(0,ae.oy)({id:We.categoryId});if(Ke!=null&&Ke.is_commit){x.default.destroyAll(),yield ut(),Qe(!0);return}else Me(xe+1)}),ut=()=>ge(void 0,null,function*(){var xe;const Ae=se()(),Ke=Te.exerciseUserInfo.screen_sec;if(Re.current.length>0){const tt=Ae.format("YYYY-MM-DD HH:mm:ss");let He=Math.floor(Ae.diff(se()(Re.current[0].start))/1e3);const ot=Re.current.length;He/Ke>>0>ot&&(He=(ot+1)*Ke-1),yield(0,ae.P8)(We.categoryId,{exercise_user_id:(xe=Te.exerciseUserInfo)==null?void 0:xe.exercise_user_id,time:tt,time_long:He,count:ot})}Re.current=[]}),Ze=(0,we.useRef)(0),ze=(0,we.useRef)(0),Re=(0,we.useRef)([]),it=(0,we.useRef)(!1),Me=xe=>ge(void 0,null,function*(){var Ae;Ye.current||(Ce(),x.default.destroyAll(),Ze.current=se()().valueOf(),it.current=!0,nt.current=x.default.info({icon:null,maskClosable:!1,width:1080,keyboard:!1,centered:!0,className:ce.exitFullScreenModalWrapper,okText:a.createElement("span",null,(0,z._V)(z.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,z._V)(z.CP.recordScreen9)),a.createElement("div",{style:{marginBottom:40}},(0,z._V)(z.CP.recordScreen10)),a.createElement("div",{style:{marginBottom:40}},(0,z._V)(z.CP.recordScreen11),a.createElement("span",{className:ce.warningText},((Ae=Te.exerciseUserInfo)==null?void 0:Ae.screen_num)+1),(0,z._V)(z.CP.recordScreen12),a.createElement("span",{className:ce.warningText,style:{fontWeight:600}},(0,z._V)(z.CP.recordScreen13)),",",(0,z._V)(z.CP.recordScreen14),a.createElement("span",{className:ce.warningText},xe-1),(0,z._V)(z.CP.recordScreen15)),a.createElement("div",null,a.createElement("span",null,a.createElement(ve,{className:ce.countdownWrapper,onFinish:()=>{ze.current=se()().valueOf(),Re.current.push({start:Ze.current,end:ze.current}),Xe(xe)},valueStyle:{fontSize:30,color:"#165DFF"},format:"ss",value:Date.now()+(Te.exerciseUserInfo.screen_sec+1)*1e3}),(0,z._V)(z.CP.recordScreen25)),(0,z._V)(z.CP.recordScreen16))),onOk:()=>{(0,oe.RG)(" ",!0),ut(),(0,de.Dj)(document.body),Ie(),nt.current.destroy(),it.current=!1}}))}),Be=()=>ge(void 0,null,function*(){x.default.destroyAll(),(yield(0,ae.VL)({categoryId:We.categoryId,commit_method:1}))&&Qe()}),Qe=(xe=!1)=>ge(void 0,null,function*(){var Ae,Ke;if(document.removeEventListener((0,de.gH)(),Le,!1),(0,de.BU)(),x.default.destroyAll(),Ye.current=!0,xe){const tt=yield(0,ae.Yu)(We.categoryId,{exercise_user_id:(Ae=Te.exerciseUserInfo)==null?void 0:Ae.exercise_user_id});$e.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:ie,alt:""}),a.createElement("div",{className:ce.forcedText},(0,z._V)(z.CP.recordScreen17)),a.createElement("div",{className:ce.screenNumText},(0,z._V)(z.CP.recordScreen18),(Ke=Te.exerciseUserInfo)==null?void 0:Ke.screen_num,(0,z._V)(z.CP.recordScreen19)),a.createElement(pe.default,{dataSource:tt==null?void 0:tt.data,pagination:!1,rowKey:"time",bordered:!0,columns:[{title:(0,z._V)(z.CP.recordScreen20),align:"center",dataIndex:"time"},{title:(0,z._V)(z.CP.recordScreen21),align:"center",dataIndex:"time_long"},{title:(0,z._V)(z.CP.recordScreen22),align:"center",dataIndex:"count"}]})),onCancel:()=>{Ie(),ke()},onOk:()=>{re.history.push(`/classrooms/${We.coursesId}/exercisenotice/${We.categoryId}/users/${We.login}?isShowApply=true`)}})}else $e.info({content:a.createElement("div",{className:"tc font16"},(0,z._V)(z.CP.recordScreen23),a.createElement("br",null),(0,z._V)(z.CP.recordScreen24)),onOk:()=>{ke()}})}),Ge=xe=>{(0,de.vp)()&&document.getElementById("iframeShixuns").style.display=="none"&&!it.current&&(0,de.BU)()},De=()=>ge(void 0,null,function*(){var xe;if((xe=Te.exerciseUserInfo)!=null&&xe.screen_at){const tt=yield(0,ae.ck)(me(he({},We),{reset:!0}));if((tt==null?void 0:tt.status)===-6)return}const Ae=yield(0,ae.oy)({id:We.categoryId});if(Ae!=null&&Ae.is_commit){Qe();return}return yield at()}),Le=()=>ge(void 0,null,function*(){var xe;if((0,oe.RG)(" ",!0),(0,de.vp)()){if((xe=Te.exerciseUserInfo)!=null&&xe.screen_at){var Ae=yield(0,ae.ck)(me(he({},We),{reset:!0}));if((Ae==null?void 0:Ae.status)===-6)return}}else if(!it.current){var Ae=yield(0,ae.ck)(he({},We));if((Ae==null?void 0:Ae.status)===-6)return;const tt=yield at();Me(tt.used_screen_num+1),window.frames.length!=parent.frames.length&&window.parent.postMessage("backExercise","*")}}),Oe=()=>ge(void 0,null,function*(){(0,ae.ck)(he({},We));const xe=yield at();Me(xe.used_screen_num+1),window.frames.length!=parent.frames.length&&window.parent.postMessage("backExercise","*")});return a.createElement("div",null,Ne)};var Pe=(0,re.connect)(({exercise:Te,globalSetting:_e})=>({globalSetting:_e,exercise:Te}))(be)},41751:function(_t,ft,ye){"use strict";ye.d(ft,{X:function(){return pe},y:function(){return x}});var we=ye(59301),Ee=ye(8591);const x=de=>{(0,we.useEffect)(()=>{if(de){const ae=se=>{se.key==="F12"&&(se.preventDefault(),console.log("F12\u88AB\u7981\u7528"))},ne=se=>{se.preventDefault()};return document.addEventListener("keydown",ae),document.addEventListener("contextmenu",ne),()=>{document.removeEventListener("keydown",ae),document.removeEventListener("contextmenu",ne)}}},[de])},pe=()=>{const[de,ae]=(0,we.useState)(!1),ne=se=>{const{keyCode:ce,ctrlKey:ue,metaKey:ie,type:oe}=se;(oe==="paste"||(ce===67||ce===86)&&(ie||ue))&&(Ee.ZP.warning("\u8001\u5E08\u5DF2\u8BBE\u7F6E\u7B54\u9898\u65F6\u4E0D\u5141\u8BB8\u8FDB\u884C\u590D\u5236\u7C98\u8D34"),se.preventDefault(),se.stopPropagation())};return(0,we.useEffect)(()=>(de&&(window.addEventListener("keydown",ne,!0),window.addEventListener("paste",ne,!0)),()=>{window.removeEventListener("keydown",ne,!0),window.removeEventListener("paste",ne,!0)}),[de]),{setOpenDisableCopyAndPaste:ae,disableCopyAndPaste:de}}},6077:function(_t,ft,ye){"use strict";ye.d(ft,{Z:function(){return ie}});var we=ye(59301),Ee={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},x=ye(92310),pe=ye.n(x),de=ye(71418),ae=ye(2859),ne=ye(82093),se=ye(49661),ce=(oe,re,z)=>new Promise((a,y)=>{var E=te=>{try{ee(z.next(te))}catch(le){y(le)}},b=te=>{try{ee(z.throw(te))}catch(le){y(le)}},ee=te=>te.done?a(te.value):Promise.resolve(te.value).then(E,b);ee((z=z.apply(oe,re)).next())}),ie=({data:oe,className:re,fullWidth:z,style:a={},onClose:y,onOk:E,showFullTools:b,noAssociationId:ee})=>{const te=(0,we.useRef)(null),le=(0,we.useRef)(null),fe=(0,we.useRef)(null),he=(0,we.useRef)(null),[me,ge]=(0,we.useState)(!1),[Se,ve]=(0,we.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,we.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&&be()):(document.body.removeAttribute("data-custom"),fe.current&&(document.head.removeChild(fe.current),fe.current=null))},[oe==null?void 0:oe.visible]);const be=()=>ce(void 0,null,function*(){ge(!0),ve("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Ce=yield(0,se.ZJ)(oe==null?void 0:oe.src);te.current.src="",te.current.src=Ce,te.current.onload=function(){je()},ge(!1),ve("")}),Pe=()=>{document.body.removeAttribute("data-custom"),fe.current.innerHTML=" ",y()},Te=Ce=>ce(void 0,null,function*(){ge(!0),ve("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Ie=yield(0,ne.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:oe.title,file:Ce.dataUrl}});Ie!=null&&Ie.id&&!ee?(yield(0,ne.ZP)(`/api/attachments/${oe.id}/add_subitem.json`,{method:"post",body:{subitem_id:Ie==null?void 0:Ie.id,settings:JSON.stringify(Ce.state)}})).status===0&&E():Ie!=null&&Ie.id&&E(Ie),document.body.removeAttribute("data-custom"),fe.current.innerHTML=" ",ge(!1),ve("")}),_e=()=>{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(ke=>{const $e=document.querySelector(ke.name);$e&&$e.setAttribute("title",ke.title)})},je=()=>{le.current=new ae.hP(te.current),le.current.targetRoot=he.current,le.current.addEventListener("render",Te),le.current.addEventListener("beforeclose",Pe),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),_e()},300)};return we.createElement(we.Fragment,null,(oe==null?void 0:oe.visible)&&we.createElement(de.Z,{spinning:me,tip:Se,style:{position:"absolute"}},we.createElement("div",{ref:he,className:pe()(Ee.imageDimensions,re,z?Ee.fullWidth:""),style:a},we.createElement("img",{className:Ee.img,ref:te}))))}},88615:function(_t,ft,ye){"use strict";var we=ye(59301),Ee=ye(95237),x=ye(43604),pe=ye(99313),de=ye(3113),ae=ye(7664),ne=ye(21697),se=ye(48136),ce=ye(59301);const ue=(0,we.forwardRef)(({callback:ie,showSaveButton:oe,value:re=""},z)=>{const a=(0,we.useRef)(),y=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],E=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
|
|
|
x=a + r\\text{cos}\\theta \\ \r
|
|
|
y=b + r\\text{sin}\\theta \r
|
|
|
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
|
|
|
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
|
|
|
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
|
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
|
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
|
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
|
\\left\\{\\begin{matrix} \r
|
|
|
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
|
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
|
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
|
|
|
\\end{matrix}\\right. \r
|
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
|
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
|
|
|
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
|
|
|
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
|
|
|
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
|
|
|
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
|
|
|
a \\perp \\alpha \\ \r
|
|
|
b \\perp \\alpha \r
|
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
|
|
|
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
|
|
|
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
|
|
|
a \\parallel \\partial ,b \\parallel \\partial \r
|
|
|
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
|
|
|
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
|
|
|
a \\perp m,a \\perp n \r
|
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
|
|
|
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
|
|
|
a^{2}+b^{2}=c^{2} \r
|
|
|
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
|
|
|
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
|
|
|
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
|
|
|
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
|
|
|
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
|
|
|
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
|
|
|
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
|
|
|
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
|
|
|
a,b \\in R^{+} \\ \r
|
|
|
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
|
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
|
a,b \\in R \\ \r
|
|
|
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
|
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
|
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
|
|
|
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
|
|
|
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
|
|
|
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
|
|
|
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
|
|
|
P \\left( \\emptyset \\right) =0 \\\\ \r
|
|
|
P \\left( S \\right) =1 \r
|
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
|
\\forall A \\in S \\\\ \r
|
|
|
P \\left( A \\right) \\ge 0 \r
|
|
|
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
|
|
|
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
|
|
|
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
|
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
|
P_{n}=n! \\\\ \r
|
|
|
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
|
|
|
\\end{array}`}]}]}],b=le=>{a.current.setValue(a.current.getValue()+" "+le.value+" ")},ee=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:ce.createElement(Ee.Z,{className:ne.Z.lists,gutter:[10,10]},y.map((le,fe)=>ce.createElement(x.Z,{flex:"110px",className:ne.Z.item},ce.createElement("div",null,ce.createElement(ae.Z,{value:`$$${le.value}$$`}),le.name),ce.createElement("div",{className:ne.Z.children},le.children.map((he,me)=>ce.createElement("div",{key:me},ce.createElement("h1",null,he.name),ce.createElement(Ee.Z,{gutter:[10,10]},he.data.map((ge,Se)=>ce.createElement(x.Z,{key:Se,onClick:()=>b(ge),className:ne.Z.diamond},ce.createElement(ae.Z,{value:"`$$"+ge.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:ce.createElement(Ee.Z,{className:ne.Z.lists,gutter:[10,10]},E.map((le,fe)=>ce.createElement(x.Z,{flex:"110px",className:ne.Z.item},ce.createElement("div",null,ce.createElement(ae.Z,{value:"`$$"+le.value+"$$`"}),le.name),ce.createElement("div",{className:ne.Z.children},le.children.map((he,me)=>ce.createElement("div",{key:me},he.name&&ce.createElement("h1",null,he.name),ce.createElement(Ee.Z,{gutter:[10,10]},he.data.map((ge,Se)=>ce.createElement(x.Z,{key:Se,onClick:()=>b(ge),className:ne.Z.diamond},ce.createElement(ae.Z,{value:"`$$"+ge.value+"$$`"}))))))))))}],te=()=>{var le=document.createElement("div");le.innerHTML=a.current.getValue();var fe=le.innerText;return ie&&ie(fe),fe};return(0,we.useImperativeHandle)(z,()=>({getData:te})),ce.createElement("div",{className:ne.Z.mathWrap},ce.createElement(pe.default,{defaultActiveKey:"1",items:ee}),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")))});ft.Z=ue},766:function(_t,ft,ye){"use strict";ye.d(ft,{Z:function(){return pe}});var we=ye(76560),Ee={ldsRing:"ldsRing___mpBZC",idsRingWrapper:"idsRingWrapper___Of9_n",ldsring:"ldsring___o0w2t"},x=ye(59301),pe=({message:de,className:ae,children:ne,style:se={}})=>x.createElement("div",{className:`custom-spinner ${Ee.idsRingWrapper} ${ae}`},x.createElement("div",{className:Ee.ldsRing},x.createElement("div",null),x.createElement("div",null),x.createElement("div",null),x.createElement("div",null)),de?x.createElement("p",{style:se},de):null,ne,x.createElement(we.Outlet,null))},46685:function(_t,ft,ye){"use strict";ye.d(ft,{Z:function(){return ae}});var we=ye(59301),Ee={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_"},x=ye(92310),pe=ye.n(x),ae=({className:ne,style:se={},leftNode:ce,leftTitle:ue="\u81EA\u6D4B\u8F93\u5165",rightNode:ie,rightTitle:oe="\u8FD0\u884C\u7ED3\u679C"})=>we.createElement("div",{className:pe()(Ee.result,ne),style:se},we.createElement("div",{className:Ee.left},we.createElement("div",{className:Ee.title},we.createElement("i",{style:{color:"#08CF76"},className:"iconfont iconfont icon-zidingyiceshiyongli font14 mr5"}),we.createElement("span",null,ue)),we.createElement("div",{className:Ee.leftNode},ce)),we.createElement("div",{className:Ee.right},we.createElement("div",{className:Ee.title},we.createElement("i",{style:{color:"#00DFFF"},className:"iconfont iconfont icon-daimazhihangjieguo font14 mr5"}),we.createElement("span",null,oe)),we.createElement("div",{className:Ee.rightNode},ie)))},35584:function(_t,ft,ye){"use strict";ye.d(ft,{Z:function(){return Qn}});var we=ye(59301),Ee=ye(33796),x=ye(15277),pe=ye(92310),de=ye.n(pe),ae=ye(32855),ne=ye(27247),se=ye(74430),ce=ye(11913),ue=ye(34666),ie=ye(43079),oe=ye(55468),re=ye(18929),z=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"],a=we.createContext(null),y=0;function E(Kt,bt){var $t=we.useState(function(){return y+=1,String(y)}),rn=(0,ce.Z)($t,1),nn=rn[0],cn=we.useContext(a),yt={data:bt,canPreview:Kt};return we.useEffect(function(){if(cn)return cn.register(nn,yt)},[]),we.useEffect(function(){cn&&cn.register(nn,yt)},[Kt,bt]),nn}function b(Kt){return new Promise(function(bt){var $t=document.createElement("img");$t.onerror=function(){return bt(!1)},$t.onload=function(){return bt(!0)},$t.src=Kt})}function ee(Kt){var bt=Kt.src,$t=Kt.isCustomPlaceholder,rn=Kt.fallback,nn=(0,we.useState)($t?"loading":"normal"),cn=(0,ce.Z)(nn,2),yt=cn[0],Lt=cn[1],jt=(0,we.useRef)(!1),Mt=yt==="error";(0,we.useEffect)(function(){b(bt).then(function(Ft){Ft||Lt("error")})},[bt]),(0,we.useEffect)(function(){$t&&!jt.current?Lt("loading"):Mt&&Lt("normal")},[bt]);var Ut=function(){Lt("normal")},Bt=function(gn){jt.current=!1,yt==="loading"&&gn!=null&&gn.complete&&(gn.naturalWidth||gn.naturalHeight)&&(jt.current=!0,Ut())},zt=Mt&&rn?{src:rn}:{onLoad:Ut,src:bt};return[Bt,zt,yt]}var te=ye(86923),le=ye(8224),fe=ye(10228),he=ye(48736);function me(Kt,bt,$t,rn){var nn=bt+$t,cn=($t-rn)/2;if($t>rn){if(bt>0)return(0,se.Z)({},Kt,cn);if(bt<0&&nn<rn)return(0,se.Z)({},Kt,-cn)}else if(bt<0||nn>rn)return(0,se.Z)({},Kt,bt<0?cn:-cn);return{}}function ge(Kt,bt,$t,rn){var nn=(0,oe.g1)(),cn=nn.width,yt=nn.height,Lt=null;return Kt<=cn&&bt<=yt?Lt={x:0,y:0}:(Kt>cn||bt>yt)&&(Lt=(0,ne.Z)((0,ne.Z)({},me("x",$t,Kt,cn)),me("y",rn,bt,yt))),Lt}var Se=ye(13697),ve=ye(16089),be={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function Pe(Kt,bt,$t,rn){var nn=(0,we.useRef)(null),cn=(0,we.useRef)([]),yt=(0,we.useState)(be),Lt=(0,ce.Z)(yt,2),jt=Lt[0],Mt=Lt[1],Ut=function(gn){Mt(be),rn&&!(0,Se.Z)(be,jt)&&rn({transform:be,action:gn})},Bt=function(gn,Sn){nn.current===null&&(cn.current=[],nn.current=(0,ve.Z)(function(){Mt(function(Dt){var zn=Dt;return cn.current.forEach(function(Ln){zn=(0,ne.Z)((0,ne.Z)({},zn),Ln)}),nn.current=null,rn==null||rn({transform:zn,action:Sn}),zn})})),cn.current.push((0,ne.Z)((0,ne.Z)({},jt),gn))},zt=function(gn,Sn,Dt,zn){var Ln=Kt.current,or=Ln.width,lr=Ln.height,Yt=Ln.offsetWidth,fn=Ln.offsetHeight,jn=Ln.offsetLeft,an=Ln.offsetTop,Yn=gn,Hn=jt.scale*gn;Hn>$t?(Yn=$t/jt.scale,Hn=$t):Hn<bt&&(Yn=bt/jt.scale,Hn=bt);var Bn=Dt!=null?Dt:innerWidth/2,pr=zn!=null?zn:innerHeight/2,fr=Yn-1,ao=fr*or*.5,no=fr*lr*.5,Qr=fr*(Bn-jt.x-jn),xo=fr*(pr-jt.y-an),po=jt.x-(Qr-ao),Eo=jt.y-(xo-no);if(gn<1&&Hn===1){var mo=Yt*Hn,Zr=fn*Hn,Rr=(0,oe.g1)(),so=Rr.width,Vr=Rr.height;mo<=so&&Zr<=Vr&&(po=0,Eo=0)}Bt({x:po,y:Eo,scale:Hn},Sn)};return{transform:jt,resetTransform:Ut,updateTransform:Bt,dispatchZoomChange:zt}}var Te=ye(43403),_e=ye(77900),je=function(bt){var $t=bt.visible,rn=bt.maskTransitionName,nn=bt.getContainer,cn=bt.prefixCls,yt=bt.rootClassName,Lt=bt.icons,jt=bt.countRender,Mt=bt.showSwitch,Ut=bt.showProgress,Bt=bt.current,zt=bt.transform,Ft=bt.count,gn=bt.scale,Sn=bt.minScale,Dt=bt.maxScale,zn=bt.closeIcon,Ln=bt.onSwitchLeft,or=bt.onSwitchRight,lr=bt.onClose,Yt=bt.onZoomIn,fn=bt.onZoomOut,jn=bt.onRotateRight,an=bt.onRotateLeft,Yn=bt.onFlipX,Hn=bt.onFlipY,Bn=bt.toolbarRender,pr=(0,we.useContext)(a),fr=Lt.rotateLeft,ao=Lt.rotateRight,no=Lt.zoomIn,Qr=Lt.zoomOut,xo=Lt.close,po=Lt.left,Eo=Lt.right,mo=Lt.flipX,Zr=Lt.flipY,Rr="".concat(cn,"-operations-operation");we.useEffect(function(){var Br=function(So){So.keyCode===fe.Z.ESC&&lr()};return $t&&window.addEventListener("keydown",Br),function(){window.removeEventListener("keydown",Br)}},[$t]);var so=[{icon:Zr,onClick:Hn,type:"flipY"},{icon:mo,onClick:Yn,type:"flipX"},{icon:fr,onClick:an,type:"rotateLeft"},{icon:ao,onClick:jn,type:"rotateRight"},{icon:Qr,onClick:fn,type:"zoomOut",disabled:gn===Sn},{icon:no,onClick:Yt,type:"zoomIn",disabled:gn===Dt}],Vr=so.map(function(Br){var zr,So=Br.icon,qn=Br.onClick,dr=Br.type,Ur=Br.disabled;return we.createElement("div",{className:de()(Rr,(zr={},(0,se.Z)(zr,"".concat(cn,"-operations-operation-").concat(dr),!0),(0,se.Z)(zr,"".concat(cn,"-operations-operation-disabled"),!!Ur),zr)),onClick:qn,key:dr},So)}),bo=we.createElement("div",{className:"".concat(cn,"-operations")},Vr);return we.createElement(_e.default,{visible:$t,motionName:rn},function(Br){var zr=Br.className,So=Br.style;return we.createElement(Te.Z,{open:!0,getContainer:nn!=null?nn:document.body},we.createElement("div",{className:de()("".concat(cn,"-operations-wrapper"),zr,yt),style:So},zn===null?null:we.createElement("button",{className:"".concat(cn,"-close"),onClick:lr},zn||xo),Mt&&we.createElement(we.Fragment,null,we.createElement("div",{className:de()("".concat(cn,"-switch-left"),(0,se.Z)({},"".concat(cn,"-switch-left-disabled"),Bt===0)),onClick:Ln},po),we.createElement("div",{className:de()("".concat(cn,"-switch-right"),(0,se.Z)({},"".concat(cn,"-switch-right-disabled"),Bt===Ft-1)),onClick:or},Eo)),we.createElement("div",{className:"".concat(cn,"-footer")},Ut&&we.createElement("div",{className:"".concat(cn,"-progress")},jt?jt(Bt+1,Ft):"".concat(Bt+1," / ").concat(Ft)),Bn?Bn(bo,(0,ne.Z)({icons:{flipYIcon:Vr[0],flipXIcon:Vr[1],rotateLeftIcon:Vr[2],rotateRightIcon:Vr[3],zoomOutIcon:Vr[4],zoomInIcon:Vr[5]},actions:{onFlipY:Hn,onFlipX:Yn,onRotateLeft:an,onRotateRight:jn,onZoomOut:fn,onZoomIn:Yt},transform:zt},pr?{current:Bt,total:Ft}:{})):bo)))})},Ce=je,Ie=1,ke=1,$e=["fallback","src","imgRef"],Ne=["prefixCls","src","alt","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],nt=function(bt){var $t=bt.fallback,rn=bt.src,nn=bt.imgRef,cn=(0,ie.Z)(bt,$e),yt=ee({src:rn,fallback:$t}),Lt=(0,ce.Z)(yt,2),jt=Lt[0],Mt=Lt[1];return we.createElement("img",(0,ae.Z)({ref:function(Bt){nn.current=Bt,jt(Bt)}},cn,Mt))},qe=function(bt){var $t=bt.prefixCls,rn=bt.src,nn=bt.alt,cn=bt.fallback,yt=bt.movable,Lt=yt===void 0?!0:yt,jt=bt.onClose,Mt=bt.visible,Ut=bt.icons,Bt=Ut===void 0?{}:Ut,zt=bt.rootClassName,Ft=bt.closeIcon,gn=bt.getContainer,Sn=bt.current,Dt=Sn===void 0?0:Sn,zn=bt.count,Ln=zn===void 0?1:zn,or=bt.countRender,lr=bt.scaleStep,Yt=lr===void 0?.5:lr,fn=bt.minScale,jn=fn===void 0?1:fn,an=bt.maxScale,Yn=an===void 0?50:an,Hn=bt.transitionName,Bn=Hn===void 0?"zoom":Hn,pr=bt.maskTransitionName,fr=pr===void 0?"fade":pr,ao=bt.imageRender,no=bt.imgCommonProps,Qr=bt.toolbarRender,xo=bt.onTransform,po=bt.onChange,Eo=(0,ie.Z)(bt,Ne),mo=(0,we.useRef)(),Zr=(0,we.useRef)({deltaX:0,deltaY:0,transformX:0,transformY:0}),Rr=(0,we.useState)(!1),so=(0,ce.Z)(Rr,2),Vr=so[0],bo=so[1],Br=(0,we.useContext)(a),zr=Br&&Ln>1,So=Br&&Ln>=1,qn=Pe(mo,jn,Yn,xo),dr=qn.transform,Ur=qn.resetTransform,$r=qn.updateTransform,eo=qn.dispatchZoomChange,jo=(0,we.useState)(!0),Go=(0,ce.Z)(jo,2),Mo=Go[0],Ir=Go[1],Er=dr.rotate,ro=dr.scale,Fo=dr.x,zo=dr.y,ci=de()((0,se.Z)({},"".concat($t,"-moving"),Vr));(0,we.useEffect)(function(){Mo||Ir(!0)},[Mo]);var Dn=function(){Ur("close")},hn=function(){eo(Ie+Yt,"zoomIn")},Cn=function(){eo(Ie/(Ie+Yt),"zoomOut")},In=function(){$r({rotate:Er+90},"rotateRight")},br=function(){$r({rotate:Er-90},"rotateLeft")},Ar=function(){$r({flipX:!dr.flipX},"flipX")},Kr=function(){$r({flipY:!dr.flipY},"flipY")},Yr=function(Zn){Zn==null||Zn.preventDefault(),Zn==null||Zn.stopPropagation(),Dt>0&&(Ir(!1),Ur("prev"),po==null||po(Dt-1,Dt))},lo=function(Zn){Zn==null||Zn.preventDefault(),Zn==null||Zn.stopPropagation(),Dt<Ln-1&&(Ir(!1),Ur("next"),po==null||po(Dt+1,Dt))},co=function(){if(Mt&&Vr){bo(!1);var Zn=Zr.current,Fr=Zn.transformX,Io=Zn.transformY,Po=Fo!==Fr&&zo!==Io;if(!Po)return;var Qo=mo.current.offsetWidth*ro,ri=mo.current.offsetHeight*ro,qo=mo.current.getBoundingClientRect(),Yo=qo.left,Pi=qo.top,yi=Er%180!==0,gi=ge(yi?ri:Qo,yi?Qo:ri,Yo,Pi);gi&&$r((0,ne.Z)({},gi),"dragRebound")}},Xo=function(Zn){!Lt||Zn.button!==0||(Zn.preventDefault(),Zn.stopPropagation(),Zr.current={deltaX:Zn.pageX-dr.x,deltaY:Zn.pageY-dr.y,transformX:dr.x,transformY:dr.y},bo(!0))},Lo=function(Zn){Mt&&Vr&&$r({x:Zn.pageX-Zr.current.deltaX,y:Zn.pageY-Zr.current.deltaY},"move")},gr=function(Zn){if(!(!Mt||Zn.deltaY==0)){var Fr=Math.abs(Zn.deltaY/100),Io=Math.min(Fr,ke),Po=Ie+Io*Yt;Zn.deltaY>0&&(Po=Ie/Po),eo(Po,"wheel",Zn.clientX,Zn.clientY)}},Dr=function(Zn){!Mt||!zr||(Zn.keyCode===fe.Z.LEFT?Yr():Zn.keyCode===fe.Z.RIGHT&&lo())},Jr=function(Zn){Mt&&(ro!==1?$r({x:0,y:0,scale:1},"doubleClick"):eo(Ie+Yt,"doubleClick",Zn.clientX,Zn.clientY))};(0,we.useEffect)(function(){var ir,Zn,Fr,Io;if(Lt){Fr=(0,le.Z)(window,"mouseup",co,!1),Io=(0,le.Z)(window,"mousemove",Lo,!1);try{window.top!==window.self&&(ir=(0,le.Z)(window.top,"mouseup",co,!1),Zn=(0,le.Z)(window.top,"mousemove",Lo,!1))}catch(Po){(0,he.Kp)(!1,"[rc-image] ".concat(Po))}}return function(){var Po,Qo,ri,qo;(Po=Fr)===null||Po===void 0||Po.remove(),(Qo=Io)===null||Qo===void 0||Qo.remove(),(ri=ir)===null||ri===void 0||ri.remove(),(qo=Zn)===null||qo===void 0||qo.remove()}},[Mt,Vr,Fo,zo,Er,Lt]),(0,we.useEffect)(function(){var ir=(0,le.Z)(window,"keydown",Dr,!1);return function(){ir.remove()}},[Mt,zr,Dt]);var Lr=we.createElement(nt,(0,ae.Z)({},no,{width:bt.width,height:bt.height,imgRef:mo,className:"".concat($t,"-img"),alt:nn,style:{transform:"translate3d(".concat(dr.x,"px, ").concat(dr.y,"px, 0) scale3d(").concat(dr.flipX?"-":"").concat(ro,", ").concat(dr.flipY?"-":"").concat(ro,", 1) rotate(").concat(Er,"deg)"),transitionDuration:!Mo&&"0s"},fallback:cn,src:rn,onWheel:gr,onMouseDown:Xo,onDoubleClick:Jr}));return we.createElement(we.Fragment,null,we.createElement(te.Z,(0,ae.Z)({transitionName:Bn,maskTransitionName:fr,closable:!1,keyboard:!0,prefixCls:$t,onClose:jt,visible:Mt,wrapClassName:ci,rootClassName:zt,getContainer:gn},Eo,{afterClose:Dn}),we.createElement("div",{className:"".concat($t,"-img-wrapper")},ao?ao(Lr,(0,ne.Z)({transform:dr},Br?{current:Dt}:{})):Lr)),we.createElement(Ce,{visible:Mt,transform:dr,maskTransitionName:fr,closeIcon:Ft,getContainer:gn,prefixCls:$t,rootClassName:zt,icons:Bt,countRender:or,showSwitch:zr,showProgress:So,current:Dt,count:Ln,scale:ro,minScale:jn,maxScale:Yn,toolbarRender:Qr,onSwitchLeft:Yr,onSwitchRight:lo,onZoomIn:hn,onZoomOut:Cn,onRotateRight:In,onRotateLeft:br,onFlipX:Ar,onFlipY:Kr,onClose:jt}))},Je=qe,Ye=ye(3300);function We(Kt){var bt=we.useState({}),$t=(0,ce.Z)(bt,2),rn=$t[0],nn=$t[1],cn=we.useCallback(function(Lt,jt){return nn(function(Mt){return(0,ne.Z)((0,ne.Z)({},Mt),{},(0,se.Z)({},Lt,jt))}),function(){nn(function(Mt){var Ut=(0,ne.Z)({},Mt);return delete Ut[Lt],Ut})}},[]),yt=we.useMemo(function(){return Kt?Kt.map(function(Lt){if(typeof Lt=="string")return{data:{src:Lt}};var jt={};return Object.keys(Lt).forEach(function(Mt){["src"].concat((0,Ye.Z)(z)).includes(Mt)&&(jt[Mt]=Lt[Mt])}),{data:jt}}):Object.keys(rn).reduce(function(Lt,jt){var Mt=rn[jt],Ut=Mt.canPreview,Bt=Mt.data;return Ut&&Lt.push({data:Bt,id:jt}),Lt},[])},[Kt,rn]);return[yt,cn]}var Fe=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],Ue=["src"],at=function(bt){var $t,rn=bt.previewPrefixCls,nn=rn===void 0?"rc-image-preview":rn,cn=bt.children,yt=bt.icons,Lt=yt===void 0?{}:yt,jt=bt.items,Mt=bt.preview,Ut=bt.fallback,Bt=(0,ue.Z)(Mt)==="object"?Mt:{},zt=Bt.visible,Ft=Bt.onVisibleChange,gn=Bt.getContainer,Sn=Bt.current,Dt=Bt.movable,zn=Bt.minScale,Ln=Bt.maxScale,or=Bt.countRender,lr=Bt.closeIcon,Yt=Bt.onChange,fn=Bt.onTransform,jn=Bt.toolbarRender,an=Bt.imageRender,Yn=(0,ie.Z)(Bt,Fe),Hn=We(jt),Bn=(0,ce.Z)(Hn,2),pr=Bn[0],fr=Bn[1],ao=(0,re.Z)(0,{value:Sn}),no=(0,ce.Z)(ao,2),Qr=no[0],xo=no[1],po=(0,we.useState)(!1),Eo=(0,ce.Z)(po,2),mo=Eo[0],Zr=Eo[1],Rr=(($t=pr[Qr])===null||$t===void 0?void 0:$t.data)||{},so=Rr.src,Vr=(0,ie.Z)(Rr,Ue),bo=(0,re.Z)(!!zt,{value:zt,onChange:function(Er,ro){Ft==null||Ft(Er,ro,Qr)}}),Br=(0,ce.Z)(bo,2),zr=Br[0],So=Br[1],qn=(0,we.useState)(null),dr=(0,ce.Z)(qn,2),Ur=dr[0],$r=dr[1],eo=we.useCallback(function(Ir,Er,ro){var Fo=pr.findIndex(function(zo){return zo.id===Ir});So(!0),$r({x:Er,y:ro}),xo(Fo<0?0:Fo),Zr(!0)},[pr]);we.useEffect(function(){zr?mo||xo(0):Zr(!1)},[zr]);var jo=function(Er,ro){xo(Er),Yt==null||Yt(Er,ro)},Go=function(){So(!1),$r(null)},Mo=we.useMemo(function(){return{register:fr,onPreview:eo}},[fr,eo]);return we.createElement(a.Provider,{value:Mo},cn,we.createElement(Je,(0,ae.Z)({"aria-hidden":!zr,movable:Dt,visible:zr,prefixCls:nn,closeIcon:lr,onClose:Go,mousePosition:Ur,imgCommonProps:Vr,src:so,fallback:Ut,icons:Lt,minScale:zn,maxScale:Ln,getContainer:gn,current:Qr,count:pr.length,countRender:or,onTransform:fn,toolbarRender:jn,imageRender:an,onChange:jo},Yn)))},Xe=at,ut=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],Ze=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],ze=function(bt){var $t=bt.src,rn=bt.alt,nn=bt.onPreviewClose,cn=bt.prefixCls,yt=cn===void 0?"rc-image":cn,Lt=bt.previewPrefixCls,jt=Lt===void 0?"".concat(yt,"-preview"):Lt,Mt=bt.placeholder,Ut=bt.fallback,Bt=bt.width,zt=bt.height,Ft=bt.style,gn=bt.preview,Sn=gn===void 0?!0:gn,Dt=bt.className,zn=bt.onClick,Ln=bt.onError,or=bt.wrapperClassName,lr=bt.wrapperStyle,Yt=bt.rootClassName,fn=(0,ie.Z)(bt,ut),jn=Mt&&Mt!==!0,an=(0,ue.Z)(Sn)==="object"?Sn:{},Yn=an.src,Hn=an.visible,Bn=Hn===void 0?void 0:Hn,pr=an.onVisibleChange,fr=pr===void 0?nn:pr,ao=an.getContainer,no=ao===void 0?void 0:ao,Qr=an.mask,xo=an.maskClassName,po=an.movable,Eo=an.icons,mo=an.scaleStep,Zr=an.minScale,Rr=an.maxScale,so=an.imageRender,Vr=an.toolbarRender,bo=(0,ie.Z)(an,Ze),Br=Yn!=null?Yn:$t,zr=(0,re.Z)(!!Bn,{value:Bn,onChange:fr}),So=(0,ce.Z)(zr,2),qn=So[0],dr=So[1],Ur=ee({src:$t,isCustomPlaceholder:jn,fallback:Ut}),$r=(0,ce.Z)(Ur,3),eo=$r[0],jo=$r[1],Go=$r[2],Mo=(0,we.useState)(null),Ir=(0,ce.Z)(Mo,2),Er=Ir[0],ro=Ir[1],Fo=(0,we.useContext)(a),zo=!!Sn,ci=function(){dr(!1),ro(null)},Dn=de()(yt,or,Yt,(0,se.Z)({},"".concat(yt,"-error"),Go==="error")),hn=(0,we.useMemo)(function(){var Ar={};return z.forEach(function(Kr){bt[Kr]!==void 0&&(Ar[Kr]=bt[Kr])}),Ar},z.map(function(Ar){return bt[Ar]})),Cn=(0,we.useMemo)(function(){return(0,ne.Z)((0,ne.Z)({},hn),{},{src:Br})},[Br,hn]),In=E(zo,Cn),br=function(Kr){var Yr=(0,oe.os)(Kr.target),lo=Yr.left,co=Yr.top;Fo?Fo.onPreview(In,lo,co):(ro({x:lo,y:co}),dr(!0)),zn==null||zn(Kr)};return we.createElement(we.Fragment,null,we.createElement("div",(0,ae.Z)({},fn,{className:Dn,onClick:zo?br:zn,style:(0,ne.Z)({width:Bt,height:zt},lr)}),we.createElement("img",(0,ae.Z)({},hn,{className:de()("".concat(yt,"-img"),(0,se.Z)({},"".concat(yt,"-img-placeholder"),Mt===!0),Dt),style:(0,ne.Z)({height:zt},Ft),ref:eo},jo,{width:Bt,height:zt,onError:Ln})),Go==="loading"&&we.createElement("div",{"aria-hidden":"true",className:"".concat(yt,"-placeholder")},Mt),Qr&&zo&&we.createElement("div",{className:de()("".concat(yt,"-mask"),xo),style:{display:(Ft==null?void 0:Ft.display)==="none"?"none":void 0}},Qr)),!Fo&&zo&&we.createElement(Je,(0,ae.Z)({"aria-hidden":!qn,visible:qn,prefixCls:jt,onClose:ci,mousePosition:Er,src:Br,alt:rn,fallback:Ut,getContainer:no,icons:Eo,movable:po,scaleStep:mo,minScale:Zr,maxScale:Rr,rootClassName:Yt,imageRender:so,imgCommonProps:hn,toolbarRender:Vr},bo)))};ze.PreviewGroup=Xe,ze.displayName="Image";var Re=ze,it=Re,Me=ye(62892),Be=ye(36355),Qe=ye(31724),Ge=ye(99267),De=ye(33853),Le=ye(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"},xe=Oe,Ae=ye(7657),Ke=function(bt,$t){return we.createElement(Ae.Z,(0,ae.Z)({},bt,{ref:$t,icon:xe}))},tt=we.forwardRef(Ke),He=tt,ot={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"},mt=ot,lt=function(bt,$t){return we.createElement(Ae.Z,(0,ae.Z)({},bt,{ref:$t,icon:mt}))},pt=we.forwardRef(lt),st=pt,vt={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"},rt=vt,ct=function(bt,$t){return we.createElement(Ae.Z,(0,ae.Z)({},bt,{ref:$t,icon:rt}))},gt=we.forwardRef(ct),St=gt,Ct={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"},It=Ct,Wt=function(bt,$t){return we.createElement(Ae.Z,(0,ae.Z)({},bt,{ref:$t,icon:It}))},Ht=we.forwardRef(Wt),Xt=Ht,on={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"},qt=on,tn=function(bt,$t){return we.createElement(Ae.Z,(0,ae.Z)({},bt,{ref:$t,icon:qt}))},wn=we.forwardRef(tn),En=wn,en=ye(64993),Tn=ye(73819),An=ye(17313),_n=ye(29878),$n=ye(1950),hr=ye(83116),nr=ye(37613);const yr=Kt=>({position:Kt||"absolute",inset:0}),Nr=Kt=>{const{iconCls:bt,motionDurationSlow:$t,paddingXXS:rn,marginXXS:nn,prefixCls:cn,colorTextLightSolid:yt}=Kt;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:yt,background:new en.C("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${$t}`,[`.${cn}-mask-info`]:Object.assign(Object.assign({},An.vS),{padding:`0 ${rn}px`,[bt]:{marginInlineEnd:nn,svg:{verticalAlign:"baseline"}}})}},tr=Kt=>{const{previewCls:bt,modalMaskBg:$t,paddingSM:rn,marginXL:nn,margin:cn,paddingLG:yt,previewOperationColorDisabled:Lt,previewOperationHoverColor:jt,motionDurationSlow:Mt,iconCls:Ut,colorTextLightSolid:Bt}=Kt,zt=new en.C($t).setAlpha(.1),Ft=zt.clone().setAlpha(.2);return{[`${bt}-footer`]:{position:"fixed",bottom:nn,left:{_skip_check_:!0,value:0},width:"100%",display:"flex",flexDirection:"column",alignItems:"center",color:Kt.previewOperationColor},[`${bt}-progress`]:{marginBottom:cn},[`${bt}-close`]:{position:"fixed",top:nn,right:{_skip_check_:!0,value:nn},display:"flex",color:Bt,backgroundColor:zt.toRgbString(),borderRadius:"50%",padding:rn,outline:0,border:0,cursor:"pointer",transition:`all ${Mt}`,"&:hover":{backgroundColor:Ft.toRgbString()},[`& > ${Ut}`]:{fontSize:Kt.previewOperationSize}},[`${bt}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${yt}px`,backgroundColor:zt.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:rn,padding:rn,cursor:"pointer",transition:`all ${Mt}`,userSelect:"none",[`&:not(${bt}-operations-operation-disabled):hover > ${Ut}`]:{color:jt},"&-disabled":{color:Lt,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${Ut}`]:{fontSize:Kt.previewOperationSize}}}}},Cr=Kt=>{const{modalMaskBg:bt,iconCls:$t,previewOperationColorDisabled:rn,previewCls:nn,zIndexPopup:cn,motionDurationSlow:yt}=Kt,Lt=new en.C(bt).setAlpha(.1),jt=Lt.clone().setAlpha(.2);return{[`${nn}-switch-left, ${nn}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:cn+1,display:"flex",alignItems:"center",justifyContent:"center",width:Kt.imagePreviewSwitchSize,height:Kt.imagePreviewSwitchSize,marginTop:-Kt.imagePreviewSwitchSize/2,color:Kt.previewOperationColor,background:Lt.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${yt}`,userSelect:"none","&:hover":{background:jt.toRgbString()},"&-disabled":{"&, &:hover":{color:rn,background:"transparent",cursor:"not-allowed",[`> ${$t}`]:{cursor:"not-allowed"}}},[`> ${$t}`]:{fontSize:Kt.previewOperationSize}},[`${nn}-switch-left`]:{insetInlineStart:Kt.marginSM},[`${nn}-switch-right`]:{insetInlineEnd:Kt.marginSM}}},rr=Kt=>{const{motionEaseOut:bt,previewCls:$t,motionDurationSlow:rn,componentCls:nn}=Kt;return[{[`${nn}-preview-root`]:{[$t]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${$t}-body`]:Object.assign(Object.assign({},yr()),{overflow:"hidden"}),[`${$t}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${rn} ${bt} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},yr()),{transition:`transform ${rn} ${bt} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${$t}-moving`]:{[`${$t}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${nn}-preview-root`]:{[`${$t}-wrap`]:{zIndex:Kt.zIndexPopup}}},{[`${nn}-preview-operations-wrapper`]:{position:"fixed",zIndex:Kt.zIndexPopup+1},"&":[tr(Kt),Cr(Kt)]}]},_r=Kt=>{const{componentCls:bt}=Kt;return{[bt]:{position:"relative",display:"inline-block",[`${bt}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${bt}-img-placeholder`]:{backgroundColor:Kt.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${bt}-mask`]:Object.assign({},Nr(Kt)),[`${bt}-mask:hover`]:{opacity:1},[`${bt}-placeholder`]:Object.assign({},yr())}}},Et=Kt=>{const{previewCls:bt}=Kt;return{[`${bt}-root`]:(0,_n._y)(Kt,"zoom"),"&":(0,$n.J$)(Kt,!0)}};var Rt=(0,hr.Z)("Image",Kt=>{const bt=`${Kt.componentCls}-preview`,$t=(0,nr.TS)(Kt,{previewCls:bt,modalMaskBg:new en.C("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:Kt.controlHeightLG});return[_r($t),rr($t),(0,Tn.QA)((0,nr.TS)($t,{componentCls:bt})),Et($t)]},Kt=>({zIndexPopup:Kt.zIndexPopupBase+80,previewOperationColor:new en.C(Kt.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new en.C(Kt.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new en.C(Kt.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:Kt.fontSizeIcon*1.5})),xt=function(Kt,bt){var $t={};for(var rn in Kt)Object.prototype.hasOwnProperty.call(Kt,rn)&&bt.indexOf(rn)<0&&($t[rn]=Kt[rn]);if(Kt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nn=0,rn=Object.getOwnPropertySymbols(Kt);nn<rn.length;nn++)bt.indexOf(rn[nn])<0&&Object.prototype.propertyIsEnumerable.call(Kt,rn[nn])&&($t[rn[nn]]=Kt[rn[nn]]);return $t};const Zt={rotateLeft:we.createElement(He,null),rotateRight:we.createElement(st,null),zoomIn:we.createElement(Xt,null),zoomOut:we.createElement(En,null),close:we.createElement(Ge.Z,null),left:we.createElement(De.Z,null),right:we.createElement(Le.Z,null),flipX:we.createElement(St,null),flipY:we.createElement(St,{rotate:90})};var mn=Kt=>{var{previewPrefixCls:bt,preview:$t}=Kt,rn=xt(Kt,["previewPrefixCls","preview"]);const{getPrefixCls:nn}=we.useContext(Be.E_),cn=nn("image",bt),yt=`${cn}-preview`,Lt=nn(),[jt,Mt]=Rt(cn),Ut=we.useMemo(()=>{var Bt;if($t===!1)return $t;const zt=typeof $t=="object"?$t:{},Ft=de()(Mt,(Bt=zt.rootClassName)!==null&&Bt!==void 0?Bt:"");return Object.assign(Object.assign({},zt),{transitionName:(0,Me.m)(Lt,"zoom",zt.transitionName),maskTransitionName:(0,Me.m)(Lt,"fade",zt.maskTransitionName),rootClassName:Ft})},[$t]);return jt(we.createElement(it.PreviewGroup,Object.assign({preview:Ut,previewPrefixCls:yt,icons:Zt},rn)))},mr=function(Kt,bt){var $t={};for(var rn in Kt)Object.prototype.hasOwnProperty.call(Kt,rn)&&bt.indexOf(rn)<0&&($t[rn]=Kt[rn]);if(Kt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nn=0,rn=Object.getOwnPropertySymbols(Kt);nn<rn.length;nn++)bt.indexOf(rn[nn])<0&&Object.prototype.propertyIsEnumerable.call(Kt,rn[nn])&&($t[rn[nn]]=Kt[rn[nn]]);return $t};const Kn=Kt=>{const{prefixCls:bt,preview:$t,className:rn,rootClassName:nn,style:cn}=Kt,yt=mr(Kt,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:Lt,locale:jt=Qe.Z,getPopupContainer:Mt,image:Ut}=we.useContext(Be.E_),Bt=Lt("image",bt),zt=Lt(),Ft=jt.Image||Qe.Z.Image,[gn,Sn]=Rt(Bt),Dt=de()(nn,Sn),zn=de()(rn,Sn,Ut==null?void 0:Ut.className),Ln=we.useMemo(()=>{if($t===!1)return $t;const lr=typeof $t=="object"?$t:{},{getContainer:Yt}=lr,fn=mr(lr,["getContainer"]);return Object.assign(Object.assign({mask:we.createElement("div",{className:`${Bt}-mask-info`},we.createElement(x.Z,null),Ft==null?void 0:Ft.preview),icons:Zt},fn),{getContainer:Yt||Mt,transitionName:(0,Me.m)(zt,"zoom",lr.transitionName),maskTransitionName:(0,Me.m)(zt,"fade",lr.maskTransitionName)})},[$t,Ft]),or=Object.assign(Object.assign({},Ut==null?void 0:Ut.style),cn);return gn(we.createElement(it,Object.assign({prefixCls:Bt,preview:Ln,rootClassName:Dt,className:zn,style:or},yt)))};Kn.PreviewGroup=mn;var Mn=Kn,Qn=()=>{const[Kt,bt]=(0,we.useState)(""),[$t,rn]=(0,we.useState)(0);let[nn,cn]=(0,we.useState)(),[yt,Lt]=(0,we.useState)();const[jt,Mt]=(0,we.useState)(!1),Ut=(0,we.useRef)("");(0,we.useEffect)(()=>Ee.Z.subscribe("preview-image",Yt=>{bt(Yt),console.log(Ln.current),document.body.style.overflow="hidden"}),[]),(0,we.useEffect)(()=>(document.addEventListener("keydown",Bt),()=>{document.removeEventListener("keydown",Bt)}),[]),(0,we.useEffect)(()=>{Ut.current=Kt},[Kt]);function Bt(lr){lr.keyCode==27&&Ut.current&&zt()}function zt(){document.body.style.overflow="auto",cn(void 0),Lt(void 0),rn(0),bt("")}function Ft(){rn($t+90)}function gn(){nn=Ln.current.width*1.1,yt=Ln.current.height*1.1,Lt(yt),cn(nn)}function Sn(){nn=Ln.current.width/1.1,yt=Ln.current.height/1.1,Lt(yt),cn(nn)}const Dt=(0,we.useRef)(),zn=(0,we.useRef)(),Ln=(0,we.useRef)(),or=lr=>{(lr.nativeEvent.target===Dt.current||lr.nativeEvent.target===zn.current)&&zt()};return we.createElement(we.Fragment,null,Kt?we.createElement("div",null,we.createElement("div",{className:"preview-wrp-group",ref:zn},we.createElement(Mn,{className:"image-preview",src:Kt,style:{display:"none"},preview:{visible:!0,src:Kt,movable:!1,onVisibleChange:lr=>{bt("")}},alt:"\u9884\u89C8\u5927\u56FE"}))):null)}},44905:function(_t,ft,ye){"use strict";ye.d(ft,{h:function(){return le}});var we=ye(59301),Ee=ye(57809),x=ye(78241),pe=ye(3113),de=ye(89780),ae=ye.n(de),ne=ye(66543),se=ye(59598),ce=Object.defineProperty,ue=Object.defineProperties,ie=Object.getOwnPropertyDescriptors,oe=Object.getOwnPropertySymbols,re=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,a=(fe,he,me)=>he in fe?ce(fe,he,{enumerable:!0,configurable:!0,writable:!0,value:me}):fe[he]=me,y=(fe,he)=>{for(var me in he||(he={}))re.call(he,me)&&a(fe,me,he[me]);if(oe)for(var me of oe(he))z.call(he,me)&&a(fe,me,he[me]);return fe},E=(fe,he)=>ue(fe,ie(he));const b=Ee.default.Option,ee={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"]};ft.Z=({callback:fe,onCancel:he})=>{const[me,ge]=(0,we.useState)("python");function Se(be){ge(te[be][1])}function ve(be){fe(be)}return we.createElement(x.default,E(y({},ee),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:ve,style:{width:500}}),we.createElement(x.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},we.createElement(Ee.default,{getPopupContainer:be=>be.parentNode,onChange:Se},Object.keys(te).map(be=>we.createElement(b,{key:be,value:be},te[be][0])))),we.createElement(x.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},we.createElement(le,{mode:me})),we.createElement("div",{className:"flex-container flex-end"},we.createElement(pe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),we.createElement(pe.ZP,{type:"ghost",onClick:he},"\u53D6\u6D88")))};function le({value:fe,onChange:he,mode:me,options:ge={}}){const Se=(0,we.useRef)(),[ve,be]=(0,we.useState)();return(0,we.useEffect)(()=>{if(ve){let Pe=function(Te){const _e=Te.getValue();he&&he(_e)};return ve.on("change",Pe),()=>{ve.off("change",Pe)}}},[ve,he]),(0,we.useEffect)(()=>{ve&&ve.setOption("mode",me)},[ve,me]),(0,we.useEffect)(()=>{ve&&(fe!==ve.getValue()||fe==="")&&setTimeout(()=>{ve.setValue(fe||"")},300)},[ve,fe]),(0,we.useEffect)(()=>{if(Se.current&&!ve){const Pe=ae().fromTextArea(Se.current,y({mode:me,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ge));be(Pe)}},[Se.current,ve]),we.createElement("div",{className:"my-codemirror-container"},we.createElement("textarea",{ref:Se}))}},89389:function(_t,ft,ye){"use strict";ye.d(ft,{Z:function(){return _r}});var we=ye(59301),Ee=ye(89780),x=ye.n(Ee),pe=ye(76374),de=ye(66543),ae=ye(6313),ne=ye(25717),se=ye(99498),ce=ye(25419),ue=ye(67549),ie=ye(7664),oe=({value:Et="",className:Rt,showTextOnly:xt,showLines:Zt,style:yn={}})=>{const mn=(0,we.useMemo)(()=>"",[Et]);return we.createElement(we.Fragment,null,we.createElement("div",{dangerouslySetInnerHTML:{__html:mn}}))},re=ye(59301),z=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,te=(Et,Rt,xt)=>Rt in Et?z(Et,Rt,{enumerable:!0,configurable:!0,writable:!0,value:xt}):Et[Rt]=xt,le=(Et,Rt)=>{for(var xt in Rt||(Rt={}))b.call(Rt,xt)&&te(Et,xt,Rt[xt]);if(E)for(var xt of E(Rt))ee.call(Rt,xt)&&te(Et,xt,Rt[xt]);return Et},fe=(Et,Rt)=>a(Et,y(Rt));let he=[{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:Et,title:Rt,icon:xt,actionName:Zt,className:yn="",children:mn}){function mr(){Et(Zt)}return re.createElement("a",{title:Rt,className:yn,onClick:mr},re.createElement("i",{className:`${xt}`}),mn)}var ge=({watch:Et,showNullButton:Rt,showNullProgramButton:xt,onActionCallback:Zt,fullScreen:yn,insertTemp:mn,hidetoolBar:mr,extraUse:Kn})=>{const Mn=[...he,{title:`${Et?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Et?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return re.createElement("ul",{className:"markdown-toolbar-container"},!mr&&Mn.map((Qn,Kt)=>re.createElement("li",{key:Kt},Qn.actionName?re.createElement(me,fe(le({},Qn),{onActionCallback:Zt})):re.createElement("span",{className:"v-line"}))),Rt?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:Zt},re.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,xt?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:Zt},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:Zt},re.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,mn&&re.createElement("li",null,re.createElement(me,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${mn}`,onActionCallback:Zt},re.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Kn&&re.createElement("li",null,Kn),re.createElement("li",{className:"btn-full-screen"},re.createElement(me,{icon:`${yn?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:yn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Zt})))},Se=ye(75790),ve=ye(78241),be=ye(92832),Pe=ye(3113),Te=Object.defineProperty,_e=Object.defineProperties,je=Object.getOwnPropertyDescriptors,Ce=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,ke=Object.prototype.propertyIsEnumerable,$e=(Et,Rt,xt)=>Rt in Et?Te(Et,Rt,{enumerable:!0,configurable:!0,writable:!0,value:xt}):Et[Rt]=xt,Ne=(Et,Rt)=>{for(var xt in Rt||(Rt={}))Ie.call(Rt,xt)&&$e(Et,xt,Rt[xt]);if(Ce)for(var xt of Ce(Rt))ke.call(Rt,xt)&&$e(Et,xt,Rt[xt]);return Et},nt=(Et,Rt)=>_e(Et,je(Rt));const qe={labelCol:{span:4},wrapperCol:{span:20}};var Je=({callback:Et,onCancel:Rt})=>{function xt(Zt){Et(Zt)}return we.createElement(ve.default,nt(Ne({},qe),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:xt,style:{width:500}}),we.createElement(ve.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},we.createElement(be.default,null)),we.createElement(ve.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},we.createElement(be.default,null)),we.createElement("div",{className:"flex-container flex-end"},we.createElement(Pe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),we.createElement(Pe.ZP,{type:"ghost",onClick:Rt},"\u53D6\u6D88")))},Ye=ye(44905),We=ye(45596),Fe=ye(43418),Ue=ye(95237),at=ye(6077),Xe=ye(59301),ut=({callback:Et,onCancel:Rt})=>{const xt=document.createElement("canvas"),Zt=xt.getContext("2d");xt.width=1e3,xt.height=800,Zt.fillStyle="#ffffff",Zt.fillRect(0,0,xt.width,xt.height);const yn=xt.toDataURL("image/png");return Xe.createElement(Fe.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Xe.createElement(Ue.Z,{style:{height:"100vh"}},Xe.createElement(at.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:yn,visible:!0,title:String(Date.now())},onOk:mn=>{Et({src:mn.url})},onClose:Rt})))},Ze=ye(12378);function ze(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(ze,go.CommandHandler),ze.prototype.canAlignSelection=function(){var Et=this.diagram;return!(Et===null||Et.isReadOnly||Et.isModelReadOnly||Et.selection.count<2)},ze.prototype.alignLeft=function(){var Et=this.diagram;Et.startTransaction("aligning left");var Rt=1/0;Et.selection.each(function(xt){xt instanceof go.Link||(Rt=Math.min(xt.position.x,Rt))}),Et.selection.each(function(xt){xt instanceof go.Link||xt.move(new go.Point(Rt,xt.position.y))}),Et.commitTransaction("aligning left")},ze.prototype.alignRight=function(){var Et=this.diagram;Et.startTransaction("aligning right");var Rt=-1/0;Et.selection.each(function(xt){if(!(xt instanceof go.Link)){var Zt=xt.actualBounds.x+xt.actualBounds.width;Rt=Math.max(Zt,Rt)}}),Et.selection.each(function(xt){xt instanceof go.Link||xt.move(new go.Point(Rt-xt.actualBounds.width,xt.position.y))}),Et.commitTransaction("aligning right")},ze.prototype.alignTop=function(){var Et=this.diagram;Et.startTransaction("alignTop");var Rt=1/0;Et.selection.each(function(xt){xt instanceof go.Link||(Rt=Math.min(xt.position.y,Rt))}),Et.selection.each(function(xt){xt instanceof go.Link||xt.move(new go.Point(xt.position.x,Rt))}),Et.commitTransaction("alignTop")},ze.prototype.alignBottom=function(){var Et=this.diagram;Et.startTransaction("aligning bottom");var Rt=-1/0;Et.selection.each(function(xt){if(!(xt instanceof go.Link)){var Zt=xt.actualBounds.y+xt.actualBounds.height;Rt=Math.max(Zt,Rt)}}),Et.selection.each(function(xt){xt instanceof go.Link||xt.move(new go.Point(xt.actualBounds.x,Rt-xt.actualBounds.height))}),Et.commitTransaction("aligning bottom")},ze.prototype.alignCenterX=function(){var Et=this.diagram,Rt=Et.selection.first();if(Rt){Et.startTransaction("aligning Center X");var xt=Rt.actualBounds.x+Rt.actualBounds.width/2;Et.selection.each(function(Zt){Zt instanceof go.Link||Zt.move(new go.Point(xt-Zt.actualBounds.width/2,Zt.actualBounds.y))}),Et.commitTransaction("aligning Center X")}},ze.prototype.alignCenterY=function(){var Et=this.diagram,Rt=Et.selection.first();if(Rt){Et.startTransaction("aligning Center Y");var xt=Rt.actualBounds.y+Rt.actualBounds.height/2;Et.selection.each(function(Zt){Zt instanceof go.Link||Zt.move(new go.Point(Zt.actualBounds.x,xt-Zt.actualBounds.height/2))}),Et.commitTransaction("aligning Center Y")}},ze.prototype.alignColumn=function(Et){var Rt=this.diagram;Rt.startTransaction("align Column"),Et===void 0&&(Et=0),Et=parseFloat(Et);var xt=new Array;Rt.selection.each(function(Kn){Kn instanceof go.Link||xt.push(Kn)});for(var Zt=0;Zt<xt.length-1;Zt++){var yn=xt[Zt],mn=yn.actualBounds.y+yn.actualBounds.height+Et,mr=xt[Zt+1];mr.move(new go.Point(yn.actualBounds.x,mn))}Rt.commitTransaction("align Column")},ze.prototype.alignRow=function(Et){Et===void 0&&(Et=0),Et=parseFloat(Et);var Rt=this.diagram;Rt.startTransaction("align Row");var xt=new Array;Rt.selection.each(function(Kn){Kn instanceof go.Link||xt.push(Kn)});for(var Zt=0;Zt<xt.length-1;Zt++){var yn=xt[Zt],mn=yn.actualBounds.x+yn.actualBounds.width+Et,mr=xt[Zt+1];mr.move(new go.Point(mn,yn.actualBounds.y))}Rt.commitTransaction("align Row")},ze.prototype.canRotate=function(Et){var Rt=this.diagram;return!(Rt===null||Rt.isReadOnly||Rt.isModelReadOnly||Rt.selection.count<1)},ze.prototype.rotate=function(Et){Et===void 0&&(Et=90);var Rt=this.diagram;Rt.startTransaction("rotate "+Et.toString());var Rt=this.diagram;Rt.selection.each(function(xt){xt instanceof go.Link||xt instanceof go.Group||(xt.angle+=Et)}),Rt.commitTransaction("rotate "+Et.toString())},ze.prototype.pullToFront=function(){var Et=this.diagram;Et.startTransaction("pullToFront");var Rt=new go.Map;Et.selection.each(function(xt){Rt.set(xt.layer,0)}),Rt.iteratorKeys.each(function(xt){var Zt=0;xt.parts.each(function(yn){if(!yn.isSelected){var mn=yn.zOrder;isNaN(mn)?yn.zOrder=0:Zt=Math.max(Zt,mn)}}),Rt.set(xt,Zt)}),Et.selection.each(function(xt){ze._assignZOrder(xt,Rt.get(xt.layer)+1)}),Et.commitTransaction("pullToFront")},ze.prototype.pushToBack=function(){var Et=this.diagram;Et.startTransaction("pushToBack");var Rt=new go.Map;Et.selection.each(function(xt){Rt.set(xt.layer,0)}),Rt.iteratorKeys.each(function(xt){var Zt=0;xt.parts.each(function(yn){if(!yn.isSelected){var mn=yn.zOrder;isNaN(mn)?yn.zOrder=0:Zt=Math.min(Zt,mn)}}),Rt.set(xt,Zt)}),Et.selection.each(function(xt){ze._assignZOrder(xt,Rt.get(xt.layer)-1-ze._findGroupDepth(xt))}),Et.commitTransaction("pushToBack")},ze._assignZOrder=function(Et,Rt,xt){xt===void 0&&(xt=Et),Et.layer===xt.layer&&(Et.zOrder=Rt),Et instanceof go.Group&&Et.memberParts.each(function(Zt){ze._assignZOrder(Zt,Rt+1,xt)})},ze._findGroupDepth=function(Et){if(Et instanceof go.Group){var Rt=0;return Et.memberParts.each(function(xt){Rt=Math.max(Rt,ze._findGroupDepth(xt))}),Rt+1}else return 0},ze.prototype.doKeyDown=function(){var Et=this.diagram;if(Et!==null){var Rt=Et.lastInput;if(Rt.key==="Up"||Rt.key==="Down"||Rt.key==="Left"||Rt.key==="Right"){var xt=this.arrowKeyBehavior;if(xt==="none")return;if(xt==="select"){this._arrowKeySelect();return}else if(xt==="move"){this._arrowKeyMove();return}else if(xt==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},ze.prototype._getAllParts=function(){var Et=new Array;return this.diagram.nodes.each(function(Rt){Et.push(Rt)}),this.diagram.parts.each(function(Rt){Et.push(Rt)}),Et},ze.prototype._arrowKeyMove=function(){var Et=this.diagram,Rt=Et.lastInput,xt=0,Zt=0;if(Rt.control||Rt.meta)xt=1,Zt=1;else if(Et.grid!==null){var yn=Et.grid.gridCellSize;Zt=yn.width,xt=yn.height}Et.startTransaction("arrowKeyMove"),Et.selection.each(function(mn){Rt.key==="Up"?mn.move(new go.Point(mn.actualBounds.x,mn.actualBounds.y-xt)):Rt.key==="Down"?mn.move(new go.Point(mn.actualBounds.x,mn.actualBounds.y+xt)):Rt.key==="Left"?mn.move(new go.Point(mn.actualBounds.x-Zt,mn.actualBounds.y)):Rt.key==="Right"&&mn.move(new go.Point(mn.actualBounds.x+Zt,mn.actualBounds.y))}),Et.commitTransaction("arrowKeyMove")},ze.prototype._arrowKeySelect=function(){var Et=this.diagram,Rt=Et.lastInput,xt=null;Rt.key==="Up"?xt=this._findNearestPartTowards(270):Rt.key==="Down"?xt=this._findNearestPartTowards(90):Rt.key==="Left"?xt=this._findNearestPartTowards(180):Rt.key==="Right"&&(xt=this._findNearestPartTowards(0)),xt!==null&&(Rt.shift?xt.isSelected=!0:Rt.control||Rt.meta?xt.isSelected=!xt.isSelected:Et.select(xt))},ze.prototype._findNearestPartTowards=function(Et){var Rt=this.diagram.selection.first();if(Rt===null)return null;for(var xt=Rt.actualBounds.center,Zt=this._getAllParts(),yn=1/0,mn=Rt,mr=0;mr<Zt.length;mr++){var Kn=Zt[mr];if(Kn!==Rt&&Kn.canSelect()){var Mn=Kn.actualBounds.center,Qn=xt.directionPoint(Mn),Kt=this._angleCloseness(Qn,Et);if(Kt<=45){var bt=xt.distanceSquaredPoint(Mn);bt*=1+Math.sin(Kt*Math.PI/180),bt<yn&&(yn=bt,mn=Kn)}}}return mn},ze.prototype._angleCloseness=function(Et,Rt){return Math.min(Math.abs(Rt-Et),Math.min(Math.abs(Rt+360-Et),Math.abs(Rt-360-Et)))},ze.prototype._arrowKeyTree=function(){var Et=this.diagram,Rt=Et.selection.first();if(Rt instanceof go.Node){var xt=Et.lastInput;if(xt.key==="Right"){if(!Rt.isTreeLeaf)if(!Rt.isTreeExpanded)Et.commandHandler.canExpandTree(Rt)&&Et.commandHandler.expandTree(Rt);else{var Zt=this._sortTreeChildrenByY(Rt).first();Zt!==null&&Et.select(Zt)}}else if(xt.key==="Left")if(!Rt.isTreeLeaf&&Rt.isTreeExpanded)Et.commandHandler.canCollapseTree(Rt)&&Et.commandHandler.collapseTree(Rt);else{var yn=Rt.findTreeParentNode();yn!==null&&Et.select(yn)}else if(xt.key==="Up"){var yn=Rt.findTreeParentNode();if(yn!==null){var mn=this._sortTreeChildrenByY(yn),mr=mn.indexOf(Rt);if(mr>0){for(var Kn=mn.elt(mr-1);Kn!==null&&Kn.isTreeExpanded&&!Kn.isTreeLeaf;){var Mn=this._sortTreeChildrenByY(Kn);Kn=Mn.last()}Kn!==null&&Et.select(Kn)}else Et.select(yn)}}else if(xt.key==="Down")if(Rt.isTreeExpanded&&!Rt.isTreeLeaf){var Zt=this._sortTreeChildrenByY(Rt).first();Zt!==null&&Et.select(Zt)}else for(;Rt!==null;){var yn=Rt.findTreeParentNode();if(yn===null)break;var mn=this._sortTreeChildrenByY(yn),mr=mn.indexOf(Rt);if(mr<mn.length-1){Et.select(mn.elt(mr+1));break}else Rt=yn}var Qn=Et.selection.first();Qn!==null&&Et.scrollToRect(Qn.actualBounds)}},ze.prototype._sortTreeChildrenByY=function(Et){var Rt=new go.List().addAll(Et.findTreeChildrenNodes());return Rt.sort(function(xt,Zt){var yn=xt.location,mn=Zt.location;return yn.y<mn.y?-1:yn.y>mn.y?1:yn.x<mn.x?-1:yn.x>mn.x?1:0}),Rt},ze.prototype.copyToClipboard=function(Et){go.CommandHandler.prototype.copyToClipboard.call(this,Et),this._lastPasteOffset.set(this.pasteOffset)},ze.prototype.pasteFromClipboard=function(){var Et=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(Et,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),Et},Object.defineProperty(ze.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(Et){if(Et!=="move"&&Et!=="select"&&Et!=="scroll"&&Et!=="tree"&&Et!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+Et);this._arrowKeyBehavior=Et}}),Object.defineProperty(ze.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(Et){if(!(Et instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+Et);this._pasteOffset.set(Et)}});var Re=ze,it=ye(20397),Me=ye(43604),Be=ye(82093),Qe={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Ge=ye(59301),De=(Et,Rt,xt)=>new Promise((Zt,yn)=>{var mn=Mn=>{try{Kn(xt.next(Mn))}catch(Qn){yn(Qn)}},mr=Mn=>{try{Kn(xt.throw(Mn))}catch(Qn){yn(Qn)}},Kn=Mn=>Mn.done?Zt(Mn.value):Promise.resolve(Mn.value).then(mn,mr);Kn((xt=xt.apply(Et,Rt)).next())});function Le({onCancel:Et,callback:Rt}){let xt=(0,we.useRef)(),Zt=(0,we.useRef)(),yn=(0,we.useRef)(),mn=(0,we.useRef)(!1);const mr=(0,we.useRef)(!1),[Kn,Mn]=(0,we.useState)(0);function Qn(){const bt=Ze.bx.make,$t={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"};xt.current=new Ze.S0(Zt.current,{padding:20,grid:bt(Ze.s_,"Grid",bt(Ze.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),bt(Ze.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Yt=>{var fn=Yt.diagram.commandHandler.addTopLevelParts(Yt.diagram.selection,!0);fn||Yt.diagram.currentTool.doCancel()},commandHandler:bt(Re),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Yt=>{var fn=Yt.subject;fn.location=fn.location.copy().snapToGridPoint(Yt.diagram.grid.gridOrigin,Yt.diagram.grid.gridCellSize),setTimeout(()=>{Yt.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Yt=>{var fn=Yt.subject;setTimeout(()=>{Yt.diagram.commandHandler.editTextBlock()})},LinkRelinked:Yt=>{var fn=Yt.parameter.part;fn.invalidateConnectedLinks();var jn=Yt.subject;Yt.diagram.toolManager.linkingTool.isForwards?jn.toNode.invalidateConnectedLinks():jn.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),xt.current.nodeTemplate=bt(Ze.NB,"Auto",{locationSpot:Ze.z6.Center,locationObjectName:"SHAPE",desiredSize:new Ze.$u(120,60),minSize:new Ze.$u(40,40),resizable:!0,resizeCellSize:new Ze.$u(10,10),rotatable:!0},new Ze.KX("location","loc",Ze.E9.parse).makeTwoWay(Ze.E9.stringify),new Ze.KX("desiredSize","size",Ze.$u.parse).makeTwoWay(Ze.$u.stringify),bt(Ze.bn,{name:"SHAPE",fill:$t.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Ze.z6.AllSides,toSpot:Ze.z6.AllSides},new Ze.KX("figure"),new Ze.KX("fill"),new Ze.KX("stroke","borderColor"),new Ze.KX("strokeWidth","thickness"),new Ze.KX("strokeDashArray","dash")),bt(Ze.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),bt(Ze.al,{margin:1,textAlign:"center",overflow:Ze.al.OverflowEllipsis,editable:!0},new Ze.KX("text").makeTwoWay(),new Ze.KX("stroke","color"))),xt.current.nodeTemplate.toolTip=bt("ToolTip",bt(Ze.s_,"Vertical",{maxSize:new Ze.$u(200,NaN)},bt(Ze.al,{font:"bold 10pt sans-serif",textAlign:"center"},new Ze.KX("text")),bt(Ze.al,{font:"10pt sans-serif",textAlign:"center"},new Ze.KX("text","details"))));function rn(Yt,fn){var jn=(an,Yn)=>{an.handled=!0,an.diagram.model.commit(Hn=>{var Bn=Yn.part.adornedPart,pr=new Ze.E9().setRectSpot(Bn.actualBounds,Yt);pr.subtract(Bn.location),pr.scale(2,2),pr.x+=Math.sign(pr.x)*130,pr.y+=Math.sign(pr.y)*130,pr.add(Bn.location),pr.snapToGridPoint(an.diagram.grid.gridOrigin,an.diagram.grid.gridCellSize);var fr=Hn.copyNodeData(Bn.data);Hn.setGroupKeyForNodeData(fr,Hn.getGroupKeyForNodeData(Bn.data)),Hn.addNodeData(fr);var ao={from:Bn.key,to:Hn.getKeyForNodeData(fr)};Hn.addLinkData(ao);var no=an.diagram.findNodeForData(fr);no.location=pr,an.diagram.select(no),setTimeout(()=>{an.diagram.commandHandler.editTextBlock()},20)})};return bt(Ze.bn,{figure:fn,alignment:Yt,alignmentFocus:Yt.opposite(),width:Yt.equals(Ze.z6.Top)||Yt.equals(Ze.z6.Bottom)?25:18,height:Yt.equals(Ze.z6.Top)||Yt.equals(Ze.z6.Bottom)?18:25,fill:"orange",stroke:$t.white,strokeWidth:4,mouseEnter:(an,Yn)=>Yn.fill="dodgerblue",mouseLeave:(an,Yn)=>Yn.fill="orange",isActionable:!0,click:jn,contextClick:jn})}function nn(Yt){return bt(Ze.bn,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:(fn,jn)=>jn.fill="dodgerblue",mouseLeave:(fn,jn)=>jn.fill="orange",click:(fn,jn)=>{fn.diagram.commandHandler.showContextMenu(jn.part.adornedPart)}},Yt||{})}xt.current.nodeTemplate.selectionAdornmentTemplate=bt(Ze.uz,"Spot",bt(Ze.Vm,{padding:10}),rn(Ze.z6.Top,"TriangleUp"),rn(Ze.z6.Left,"TriangleLeft"),rn(Ze.z6.Right,"TriangleRight"),rn(Ze.z6.Bottom,"TriangleDown"),nn({alignment:new Ze.z6(.75,0)}));function cn(Yt,fn){return(jn,an)=>{jn.handled=!0,jn.diagram.model.commit(Yn=>{Yn.set(an.part.adornedPart.data,Yt,fn)})}}function yt(Yt,fn){return fn||(fn="color"),bt(Ze.bn,{width:16,height:16,stroke:"lightgray",fill:Yt,margin:1,background:"transparent",mouseEnter:(jn,an)=>an.stroke="dodgerblue",mouseLeave:(jn,an)=>an.stroke="lightgray",click:cn(fn,Yt),contextClick:cn(fn,Yt)})}function Lt(){return[bt("ContextMenuButton",bt(Ze.s_,"Horizontal",yt($t.white,"fill"),yt($t.beige,"fill"),yt($t.extralightblue,"fill"),yt($t.extralightred,"fill"))),bt("ContextMenuButton",bt(Ze.s_,"Horizontal",yt($t.lightgray,"fill"),yt($t.lightgreen,"fill"),yt($t.lightblue,"fill"),yt($t.lightred,"fill")))]}function jt(){return[bt("ContextMenuButton",bt(Ze.s_,"Horizontal",yt($t.black),yt($t.green),yt($t.blue),yt($t.red))),bt("ContextMenuButton",bt(Ze.s_,"Horizontal",yt($t.white),yt($t.magenta),yt($t.purple),yt($t.orange)))]}function Mt(Yt,fn){return fn||(fn="thickness"),bt(Ze.bn,"LineH",{width:16,height:16,strokeWidth:Yt,margin:1,background:"transparent",mouseEnter:(jn,an)=>an.background="dodgerblue",mouseLeave:(jn,an)=>an.background="transparent",click:cn(fn,Yt),contextClick:cn(fn,Yt)})}function Ut(Yt,fn){return fn||(fn="dash"),bt(Ze.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Yt,margin:1,background:"transparent",mouseEnter:(jn,an)=>an.background="dodgerblue",mouseLeave:(jn,an)=>an.background="transparent",click:cn(fn,Yt),contextClick:cn(fn,Yt)})}function Bt(){return[bt("ContextMenuButton",bt(Ze.s_,"Horizontal",Mt(1),Mt(2),Mt(3),Mt(4))),bt("ContextMenuButton",bt(Ze.s_,"Horizontal",Ut(null),Ut([2,4]),Ut([4,4])))]}function zt(Yt,fn){return fn||(fn="figure"),bt(Ze.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Yt,margin:1,background:"transparent",mouseEnter:(jn,an)=>an.fill="dodgerblue",mouseLeave:(jn,an)=>an.fill="lightgray",click:cn(fn,Yt),contextClick:cn(fn,Yt)})}xt.current.nodeTemplate.contextMenu=bt("ContextMenu",bt("ContextMenuButton",bt(Ze.s_,"Horizontal",zt("Rectangle"),zt("RoundedRectangle"),zt("Ellipse"),zt("Diamond"))),bt("ContextMenuButton",bt(Ze.s_,"Horizontal",zt("Parallelogram2"),zt("ManualOperation"),zt("Procedure"),zt("Cylinder1"))),bt("ContextMenuButton",bt(Ze.s_,"Horizontal",zt("Terminator"),zt("CreateRequest"),zt("Document"),zt("TriangleDown"))),Lt(),jt(),Bt()),xt.current.groupTemplate=bt(Ze.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:Ze.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Yt,fn)=>{var jn=fn.addMembers(fn.diagram.selection,!0);jn||fn.diagram.currentTool.doCancel()},avoidable:!1},new Ze.KX("location","loc",Ze.E9.parse).makeTwoWay(Ze.E9.stringify),bt(Ze.s_,"Auto",{name:"BODY"},bt(Ze.bn,{parameter1:10,fill:$t.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Ze.z6.AllSides,toSpot:Ze.z6.AllSides},new Ze.KX("fill"),new Ze.KX("stroke","color"),new Ze.KX("strokeWidth","thickness"),new Ze.KX("strokeDashArray","dash")),bt(Ze.Vm,{background:"transparent",margin:20})),bt(Ze.al,{alignment:Ze.z6.Top,alignmentFocus:Ze.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new Ze.KX("text"),new Ze.KX("stroke","color"))),xt.current.groupTemplate.selectionAdornmentTemplate=bt(Ze.uz,"Spot",bt(Ze.s_,"Auto",bt(Ze.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),bt(Ze.Vm,{margin:1.5})),nn({alignment:Ze.z6.TopRight,alignmentFocus:Ze.z6.BottomRight})),xt.current.groupTemplate.contextMenu=bt("ContextMenu",Lt(),jt(),Bt()),xt.current.linkTemplate=bt(Ze.rU,{layerName:"Foreground",routing:Ze.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new Ze.KX("fromSpot","fromSpot",Ze.z6.parse),new Ze.KX("toSpot","toSpot",Ze.z6.parse),new Ze.KX("fromShortLength","dir",Yt=>Yt>=1?10:0),new Ze.KX("toShortLength","dir",Yt=>Yt>=1?10:0),new Ze.KX("points").makeTwoWay(),bt(Ze.bn,{strokeWidth:2},new Ze.KX("stroke","color"),new Ze.KX("strokeWidth","thickness"),new Ze.KX("strokeDashArray","dash")),bt(Ze.bn,{segmentIndex:0,segmentOffset:new Ze.E9(15,0),segmentOrientation:Ze.rU.OrientAlong,alignmentFocus:Ze.z6.Right,figure:"circle",width:10,strokeWidth:0},new Ze.KX("fill","color"),new Ze.KX("visible","dir",Yt=>Yt===1)),bt(Ze.bn,{segmentIndex:-1,segmentOffset:new Ze.E9(-10,6),segmentOrientation:Ze.rU.OrientPlus90,alignmentFocus:Ze.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Ze.KX("fill","color"),new Ze.KX("visible","dir",Yt=>Yt>=1),new Ze.KX("width","thickness",Yt=>7+3*Yt),new Ze.KX("height","thickness",Yt=>7+3*Yt),new Ze.KX("segmentOffset","thickness",Yt=>new Ze.E9(-15,4+1.5*Yt))),bt(Ze.bn,{segmentIndex:0,segmentOffset:new Ze.E9(15,-6),segmentOrientation:Ze.rU.OrientMinus90,alignmentFocus:Ze.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Ze.KX("fill","color"),new Ze.KX("visible","dir",Yt=>Yt===2),new Ze.KX("width","thickness",Yt=>7+3*Yt),new Ze.KX("height","thickness",Yt=>7+3*Yt),new Ze.KX("segmentOffset","thickness",Yt=>new Ze.E9(-15,4+1.5*Yt))),bt(Ze.al,{alignmentFocus:new Ze.z6(0,1,-4,0),editable:!0},new Ze.KX("text").makeTwoWay(),new Ze.KX("stroke","color"))),xt.current.linkTemplate.selectionAdornmentTemplate=bt(Ze.uz,bt(Ze.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Ft(2)},new Ze.KX("pathPattern","thickness",Ft)),nn({alignmentFocus:new Ze.z6(0,0,-6,-4)}));function Ft(Yt){return bt(Ze.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Yt+4).toString()+" H3"})}function gn(Yt){var fn="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Yt===0?fn="M0 0 M16 16 M0 8 L16 8":Yt===2&&(fn="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),bt(Ze.bn,{geometryString:fn,margin:2,background:"transparent",mouseEnter:(jn,an)=>an.background="dodgerblue",mouseLeave:(jn,an)=>an.background="transparent",click:cn("dir",Yt),contextClick:cn("dir",Yt)})}function Sn(Yt){var fn=(jn,an)=>{jn.handled=!0,jn.diagram.model.commit(Yn=>{var Hn=an.part.adornedPart;Yn.set(Hn.data,Yt?"toSpot":"fromSpot",Ze.z6.stringify(Ze.z6.AllSides)),(Yt?Hn.toNode:Hn.fromNode).invalidateConnectedLinks()})};return bt(Ze.bn,{width:12,height:12,fill:"transparent",mouseEnter:(jn,an)=>an.background="dodgerblue",mouseLeave:(jn,an)=>an.background="transparent",click:fn,contextClick:fn})}function Dt(Yt,fn){var jn=0,an=Ze.z6.RightSide;Yt.equals(Ze.z6.Top)?(jn=270,an=Ze.z6.TopSide):Yt.equals(Ze.z6.Left)?(jn=180,an=Ze.z6.LeftSide):Yt.equals(Ze.z6.Bottom)&&(jn=90,an=Ze.z6.BottomSide),fn||(jn-=180);var Yn=(Hn,Bn)=>{Hn.handled=!0,Hn.diagram.model.commit(pr=>{var fr=Bn.part.adornedPart;pr.set(fr.data,fn?"toSpot":"fromSpot",Ze.z6.stringify(an)),(fn?fr.toNode:fr.fromNode).invalidateConnectedLinks()})};return bt(Ze.bn,{alignment:Yt,alignmentFocus:Yt.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:jn,background:"transparent",mouseEnter:(Hn,Bn)=>Bn.background="dodgerblue",mouseLeave:(Hn,Bn)=>Bn.background="transparent",click:Yn,contextClick:Yn})}xt.current.linkTemplate.contextMenu=bt("ContextMenu",jt(),Bt(),bt("ContextMenuButton",bt(Ze.s_,"Horizontal",gn(0),gn(1),gn(2))),bt("ContextMenuButton",bt(Ze.s_,"Horizontal",bt(Ze.s_,"Spot",Sn(!1),Dt(Ze.z6.Top,!1),Dt(Ze.z6.Left,!1),Dt(Ze.z6.Right,!1),Dt(Ze.z6.Bottom,!1)),bt(Ze.s_,"Spot",{margin:new Ze.Zt(0,0,0,2)},Sn(!0),Dt(Ze.z6.Top,!0),Dt(Ze.z6.Left,!0),Dt(Ze.z6.Right,!0),Dt(Ze.z6.Bottom,!0)))));const zn=`{ "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 Ln=["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 or(Yt){return console.log("shapeName:",Yt),Ln.indexOf(Yt)>=0}var lr=new Ze.YI(yn.current,{maxSelectionCount:1,linkTemplate:bt(Ze.rU,{locationSpot:Ze.z6.Center,selectionAdornmentTemplate:bt(Ze.uz,"Link",{locationSpot:Ze.z6.Center},bt(Ze.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),bt(Ze.bn,{toArrow:"Standard",stroke:null}))},{routing:Ze.rU.AvoidsNodes,curve:Ze.rU.JumpOver,corner:5,toShortLength:4},new Ze.KX("points"),bt(Ze.bn,{isPanelMain:!0,strokeWidth:2}),bt(Ze.bn,{toArrow:"Standard",stroke:null})),model:new Ze.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...Ze.bn.getFigureGenerators().toArray().map(Yt=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Yt.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return xt.current.addDiagramListener("TextEdited",function(Yt){var fn;const jn=Yt.subject.part;var an=(fn=document.activeElement)==null?void 0:fn.value;typeof an=="string"&&an.trim()===""&&xt.current.model.commit(function(Yn){Yn.set(jn.data,"text","\u672A\u547D\u540D"),xt.current.commandHandler.stopCommand()},"increment")}),lr.nodeTemplate=bt(Ze.NB,"Auto",{locationSpot:Ze.z6.Center},new Ze.KX("location","location",Ze.E9.parse).makeTwoWay(Ze.E9.stringify),bt(Ze.bn,"Circle",{fill:"white",stroke:"gray",strokeWidth:2,width:20,height:20,portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromLinkableSelfNode:!0,toLinkableSelfNode:!0},new Ze.KX("stroke").makeTwoWay(),new Ze.KX("fill").makeTwoWay(),new Ze.KX("figure")),bt(Ze.al,{margin:new Ze.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new Ze.$u(16,16),maxSize:new Ze.$u(10,NaN),textAlign:"center",editable:!0},new Ze.KX("key").makeTwoWay())),setTimeout(()=>{xt.current.grid=bt(Ze.s_,"Grid",bt(Ze.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),bt(Ze.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),xt.current.grid.visible=!0,xt.current.grid.gridCellStroke="darkgray",xt.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=xt.current,xt.current}const Kt=()=>De(this,null,function*(){var bt=xt.current.makeImage();const $t=yield(0,Be.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:bt.src}});Rt({src:$t.url})});return(0,we.useEffect)(()=>(setTimeout(()=>{Qn()},500),Mn(Kn+1),()=>{xt.current=null}),[]),Ge.createElement("div",{ref:mr,className:mn.current?`${Qe.maxH60} body-overflow-initial`:"body-overflow-initial"},Ge.createElement(Fe.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Kn,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Ge.createElement(Ue.Z,null,Ge.createElement(Me.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Ge.createElement(Me.Z,{onClick:()=>{var bt,$t,rn=xt.current.selection.first();if(mn.current=!mn.current,document.activeElement&&rn){let nn=($t=(bt=document.activeElement)==null?void 0:bt.value)==null?void 0:$t.trim();typeof nn=="string"&&xt.current.model.commit(function(cn){cn.set(rn.data,"text",nn||"\u672A\u547D\u540D"),xt.current.commandHandler.stopCommand()},"increment")}Mn(Kn+1)}},Ge.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:Et},Ge.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Qe.flowChartWrp},Ge.createElement("div",{style:{display:"flex",height:"100%"}},Ge.createElement("div",{style:{width:"300px",height:"100%"}},Ge.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Ge.createElement("div",{style:{height:"calc(100% - 50px)"},className:Qe.myPaletteDiv,ref:yn})),Ge.createElement("div",{style:{flex:1,position:"relative"}},Ge.createElement("div",{ref:Zt,style:{height:"80vh"}}))),Ge.createElement("div",{className:"tr"},Ge.createElement(Pe.ZP,{size:"large",onClick:Kt,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var Oe=Le,xe=ye(5112),Ae=ye(5871);const Ke=xe.ZP.Group,tt={margin:"0 8px"};var He=({callback:Et,onCancel:Rt})=>{function xt(Zt){Et(Zt)}return we.createElement(ve.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:xt},we.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},we.createElement("span",{style:tt},"\u5355\u5143\u683C\u6570\uFF1A"),we.createElement("span",{style:tt},"\u884C\u6570"),we.createElement(ve.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},we.createElement(Ae.Z,null)),we.createElement("span",{style:tt},"\u5217\u6570"),we.createElement(ve.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},we.createElement(Ae.Z,null))),we.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},we.createElement("span",{style:tt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),we.createElement(ve.default.Item,{name:"align"},we.createElement(Ke,null,we.createElement(xe.ZP,{value:"default"},we.createElement("i",{className:"fa fa-align-justify"})),we.createElement(xe.ZP,{value:"left"},we.createElement("i",{className:"fa fa-align-left"})),we.createElement(xe.ZP,{value:"center"},we.createElement("i",{className:"fa fa-align-center"})),we.createElement(xe.ZP,{value:"right"},we.createElement("i",{className:"fa fa-align-right"}))))),we.createElement("div",{className:"flex-container flex-end"},we.createElement(Pe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),we.createElement(Pe.ZP,{type:"ghost",onClick:Rt},"\u53D6\u6D88")))},ot=ye(49770),mt=ye(11081),lt=ye.n(mt),st=(0,we.forwardRef)(({use3d:Et,width:Rt,height:xt,callback:Zt,showSaveButton:yn},mn)=>{const mr=(0,we.useRef)(),Kn=(0,we.useRef)(),[Mn,Qn]=(0,we.useState)(!1),Kt=(0,we.useRef)({id:mr,appName:"graphing",width:Rt||1e3,height:xt||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,we.useEffect)(()=>{Kn.current=new(lt())(Kt.current,!0),window.onload=function(){Kn.current.inject("applet_container")}},[]);const bt=()=>{var $t=window.ggbApplet.getPNGBase64(1,!0,72);return Zt&&Zt($t),$t};return(0,we.useEffect)(()=>{Kt.current.appName=Mn?"3D":"graphing",Kn.current.inject("applet_container")},[Mn]),(0,we.useEffect)(()=>{Qn(Et)},[Et]),(0,we.useImperativeHandle)(mn,()=>({getImgData:bt})),we.createElement(we.Fragment,null,we.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:mr}),we.createElement(Ue.Z,{align:"middle"},we.createElement(Me.Z,{flex:1},we.createElement(ot.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Mn,onChange:$t=>Qn($t)})),we.createElement(Me.Z,null,we.createElement(Pe.ZP,{size:"large",onClick:bt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),vt=ye(88615),rt=ye(1012),ct=ye(8591);const gt="link",St="upload-image",Ct="add-flowchart",It="draw-image",Wt="add-flowchart",Ht="code-block",Xt="add-table",on="------------",qt={default:on,left:`:${on}`,center:`:${on}:`,right:`${on}:`};var tn=ye(17904),wn=(Et,Rt,xt)=>new Promise((Zt,yn)=>{var mn=Mn=>{try{Kn(xt.next(Mn))}catch(Qn){yn(Qn)}},mr=Mn=>{try{Kn(xt.throw(Mn))}catch(Qn){yn(Qn)}},Kn=Mn=>Mn.done?Zt(Mn.value):Promise.resolve(Mn.value).then(mn,mr);Kn((xt=xt.apply(Et,Rt)).next())});function En(){}let en=0;const Tn=1e4,An="\u2581",_n="@\u2581\u2581@",$n="@\u2581@",hr=`
|
|
|
**\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`,nr=["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 yr(Et){return/^\d+$/.test(Et)?`${Et}px`:Et}const tr=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Cr={[tr+"-B"]:"bold",[tr+"-I"]:"italic"},rr={[gt]:"\u6DFB\u52A0\u94FE\u63A5",[Ht]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[St]:"\u6DFB\u52A0\u56FE\u7247",[It]:"\u6DFB\u52A0\u753B\u56FE",[Ct]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Xt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var _r=({defaultValue:Et="",onChange:Rt,width:xt="100%",height:Zt=400,miniToolbar:yn=!1,isFocus:mn=!1,watch:mr,insertTemp:Kn,mode:Mn="markdown",id:Qn="markdown-editor-id",showResizeBar:Kt=!1,noStorage:bt=!1,showNullButton:$t=!1,showNullProgramButton:rn=!1,hidetoolBar:nn=!1,fullScreen:cn=!1,onBlur:yt,onCMBeforeChange:Lt,onFullScreen:jt,className:Mt="",disablePaste:Ut=!1,disabled:Bt=!1,disabledFill:zt=!1,placeholder:Ft="",values:gn="",extraUse:Sn})=>{const[Dt,zn]=(0,we.useState)(null),[Ln,or]=(0,we.useState)(Et),[lr,Yt]=(0,we.useState)(mr),[fn,jn]=(0,we.useState)(cn),[an,Yn]=(0,we.useState)(""),[Hn,Bn]=(0,we.useState)(0),[pr,fr]=(0,we.useState)(Zt),[ao,no]=(0,we.useState)(!1),Qr=(0,we.useRef)((0,rt.Z)()),xo=(0,we.useRef)(!1),po=(0,we.useRef)(),[Eo,mo]=(0,we.useState)(0),[Zr,Rr]=(0,we.useState)(0),so=(0,we.useRef)(),Vr=(0,we.useRef)(),bo=(0,we.useRef)(),Br=(0,we.useRef)(),zr=()=>wn(void 0,null,function*(){var Dn;const hn=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Qr.current}});(Dn=hn==null?void 0:hn.attachments)!=null&&Dn.length&&(console.log("cm:",Dt,so),hn.attachments.map(Cn=>{Cn.content_type.indexOf("image")>-1?Dt.replaceSelection(``):Cn.content_type.indexOf("video")>-1?Dt.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):Cn.content_type.indexOf("pdf")>-1?Dt.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${Cn.id}?type=${Cn.content_type}&disposition=inline" target="_blank">${Cn.name}</a>`):Dt.replaceSelection(`[${Cn.name}](${ENV.API_SERVER}/api/attachments/${Cn.id}?type=${Cn.content_type})`)}))});(0,we.useEffect)(()=>{const Dn=window.scrollY||window.pageYOffset;or(gn),Dt==null||Dt.setValue(gn),window.scrollTo(0,Dn)},[gn]),(0,we.useEffect)(()=>{jt==null||jt(fn)},[fn]),(0,we.useEffect)(()=>{if(so.current){let Dn=function(Cn,In){var br;if(Ut){In.preventDefault();return}const Ar=In.clipboardData;if(Ar){const Kr=Ar.types.toString(),Yr=Ar.items;if(Kr==="Files"||Ar.types.indexOf("Files")>-1){if(In.preventDefault(),Mn=="stex")return;try{let lo=Yr[1];((br=Yr[0])==null?void 0:br.kind)==="file"&&(lo=Yr[0]);const co=lo.getAsFile(),Xo=co.name.split(".").pop();(0,We.I)(co,Lo=>{var gr,Dr,Jr;Lo.id?((gr=co==null?void 0:co.type)==null?void 0:gr.indexOf("image"))>-1?hn.replaceSelection(`<img width="100%" src="/api/attachments/${Lo.id}?type=${Lo.content_type})" alt="" />`):((Dr=co==null?void 0:co.type)==null?void 0:Dr.indexOf("video"))>-1?hn.replaceSelection(`<video width="100%" controls src="/api/attachments/${Lo.id}"></video>`):((Jr=co==null?void 0:co.type)==null?void 0:Jr.indexOf("pdf"))>-1?hn.replaceSelection(`<a href="/api/attachments/${Lo.id}?type=${co.type}&disposition=inline" target="_blank">${co.name}</a>`):nr.includes(Xo)?hn.replaceSelection(`<a href="/api/attachments/${Lo.id}?type=office&disposition=inline" target="_blank">${co.name}</a>`):hn.replaceSelection(`[${co.name}](/api/attachments/${Lo.id}?type=${Lo.content_type})`):(Lo==null?void 0:Lo.status)===401&&(ct.ZP.warning((Lo==null?void 0:Lo.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(lo){ct.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const hn=x().fromTextArea(so.current,{mode:Mn,lineNumbers:!yn,lineWrapping:!0,value:Et,autoCloseTags:!rn,autoCloseBrackets:!0});return hn.on("keyup",function(Cn,In){In.keyCode===8&&(Cn.getValue()==""?hn.setOption("placeholder",Ft):hn.setOption("placeholder",null))}),hn.on("keydown",function(Cn,In){if(In.keyCode===8){var br=qn(Cn);br&&In.preventDefault()}}),mn&&hn.focus(),hn.on("paste",Dn),hn.on("dragleave",function(Cn,In){Vr.current.classList.remove("mouse-hover-md")}),Bt&&hn.on("beforeChange",function(Cn,In){(In.origin==="paste"||In.origin==="+input")&&In.cancel()}),zn(hn),()=>{hn.off("paste",Dn)}}},[]);const So=(0,we.useCallback)(()=>{if(Vr.current)try{}catch(Dn){console.log(Dn,"---- to set md editor body height")}},[pr,Vr,fn]);(0,we.useEffect)(()=>{function Dn(){let hn=new pe.Z(Cn=>{for(let In of Cn)(In.target.offsetHeight>0||In.target.offsetWidth>0)&&(So(),Dt.setSize("100%","100%"),Dt.refresh())});return hn.observe(so.current.parentElement),hn}if(Dt){const hn=Dn();return()=>{var Cn,In;(Cn=so.current)!=null&&Cn.parentElement&&hn.unobserve((In=so.current)==null?void 0:In.parentElement)}}},[Dt,So]),(0,we.useEffect)(()=>{if(Dt){let Dn=[];for(const[hn,Cn]of Object.entries(Cr)){let In={[hn]:()=>{dr(Cn)}};Dn.push(In),Dt.addKeyMap(In)}return po.current=setInterval(()=>{xo.current&&zr()},4e3),()=>{clearInterval(po.current);for(let hn of Dn)Dt.removeKeyMap(hn)}}},[Dt]),(0,we.useEffect)(()=>{cn!==fn&&jn(cn)},[cn]),(0,tn.Z)(()=>{if(!bt&&Hn>0){let Dn=new Date().getTime(),hn=window.sessionStorage.getItem(Qn);Dn>=Hn+Tn&&(!hn||hn!==Ln)&&(window.sessionStorage.setItem(Qn,Ln),no(!0))}},Tn),(0,we.useEffect)(()=>{Yt(mr)},[Dt,mr]),(0,we.useEffect)(()=>{Dt&&mn&&Dt.focus()},[Dt,mn]),(0,we.useEffect)(()=>{if(lr&&Dt){let Dn=function(Cn){let In=Cn.target;if(Br.current){let br=In.scrollTop/In.scrollHeight;Br.current.scrollTop=Br.current.scrollHeight*br}};const hn=Dt.getScrollerElement();return hn.addEventListener("scroll",Dn),()=>{hn.removeEventListener("scroll",Dn)}}},[Dt,lr]),(0,we.useEffect)(()=>{if(Dt&&Lt){let Dn=function(hn,Cn){Lt(hn,Cn)};return Dt.on("beforeChange",Dn),()=>{Dt.off("beforeChange",Dn)}}},[Dt,Lt]),(0,we.useEffect)(()=>{if(Dt&&yt){let Dn=function(){yt(Dt.getValue())};return Dt.on("blur",Dn),()=>{Dt.off("blur",Dn)}}},[Dt,yt]);function qn(Dn,hn){var Cn=Dn.getDoc(),In=Cn.getCursor(),br=Cn.getLine(In.line),Ar=br.charAt(In.ch-1),Kr=br.lastIndexOf("@\u2581@",In.ch),Yr=br.lastIndexOf("@\u2581\u2581@",In.ch),lo=Kr>Yr?Kr:Yr,co=Kr>Yr?3:4;if(_n.indexOf(Ar)===-1)return null;if(console.log("change1:",hn,Dn,br,In,lo,Kr,Yr,Ar),lo>=0&&In.ch-lo<5){var Xo=lo+co;return Cn.replaceRange("",{line:In.line,ch:lo},{line:In.line,ch:Xo}),{line:In.line,ch:Xo}}return null}(0,we.useEffect)(()=>{if(Dt){let Dn=function(hn,Cn){const In=hn.getValue();or(In),Bn(new Date().getTime()),hn.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Rt&&(rn?Rt(In,Er(In)):Rt(In))};return Dt.on("change",Dn),()=>{Dt.off("change",Dn)}}},[Dt,Rt]),(0,we.useEffect)(()=>{if(Dt)if(Et==null)Dt.setValue(""),or("");else{const Dn=window.scrollY||window.pageYOffset;Et!==Dt.getValue()&&(Dt.setValue(Et),or(Et),Dt.setCursor(Bt?1:Dt.lineCount(),0),window.scrollTo(0,Dn))}},[Dt,Et]);const dr=(0,we.useCallback)(Dn=>{const hn=Dt.getCursor(),Cn=Dt.getSelection();let In=Cn.split(`
|
|
|
`);switch(Dn){case"bold":return Dt.replaceSelection("**"+Cn+"**"),Cn===""&&Dt.setCursor(hn.line,hn.ch+2),Dt.focus();case"italic":return Dt.replaceSelection("*"+Cn+"*"),Cn===""&&Dt.setCursor(hn.line,hn.ch+1),Dt.focus();case"code":return Dt.replaceSelection("`"+Cn+"`"),Cn===""&&Dt.setCursor(hn.line,hn.ch+1),Dt.focus();case"inline-latex":return Yn("inline-latex"),Dt.focus();case"latex":return Dt.replaceSelection("```latex\n"+Cn+"\n```"),Dt.setCursor(hn.line+1,Cn.length+1),Dt.focus();case"line-break":return Dt.replaceSelection(`<br/>
|
|
|
`),Dt.focus();case"list-ul":return Cn===""?Dt.replaceSelection("- "+Cn):Dt.replaceSelection(In.map(br=>br===""?"":`- ${br}`).join(`
|
|
|
`)),Dt.focus();case"list-ol":return Cn===""?Dt.replaceSelection("1. "+Cn):Dt.replaceSelection(In.map((br,Ar)=>br===""?"":`${Ar+1}. ${br}`).join(`
|
|
|
`)),Dt.focus();case"add-null-ch":return Cn===""&&Dt.setCursor(hn.line,hn.ch),Dt.replaceSelection(An),Dt.focus();case"add-signal":return Cn===""&&Dt.setCursor(hn.line,hn.ch),Dt.replaceSelection($n),Dt.focus();case"add-multiple":return Cn===""&&Dt.setCursor(hn.line,hn.ch),Dt.replaceSelection(_n),Dt.focus();case"inster-template-1":return Cn===""&&Dt.setCursor(hn.line,hn.ch),Dt.replaceSelection(hr),Dt.focus();case"eraser":return Dt.setValue(""),Dt.focus();case"trigger-watch":return Yt(!lr),Dt.focus();case"trigger-full-screen":return jn(!fn),Dt.focus();case gt:Yn(gt);return;case Ht:Yn(Ht);return;case St:Yn(St);return;case It:Yn(It);return;case"maths-latex":Yn("maths-latex");return;case Ct:Yn(Ct);return;case Xt:Yn(Xt);return;default:throw new Error}},[Dt,lr,fn]),Ur=(0,we.useCallback)((Dn,hn)=>{var Cn,In,br,Ar,Kr,Yr;switch(Yn(""),an){case gt:const{title:gr,link:Dr}=Dn;return Dt.replaceSelection(`[${gr}](${Dr})`),Dt.focus();case Ht:const{language:Jr,content:Lr}=Dn;return Dt.replaceSelection(["```"+Jr,Lr,"```"].join(`
|
|
|
`)),Dt.focus();case"maths-latex":for(var lo=atob(Dn),co=new Uint8Array(lo.length),Xo=0;Xo<lo.length;Xo++)co[Xo]=lo.charCodeAt(Xo);var Lo=new Blob([co],{type:"image/png"});(0,We.I)(Lo,Yo=>{Yo.id?Dt.replaceSelection(``):(Yo==null?void 0:Yo.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Dt.replaceSelection("`$$"+Dn+"$$`");break;case St:case It:case Wt:const{src:ir,alt:Zn}=Dn,Fr=hn,Io=(br=(In=(Cn=Fr==null?void 0:Fr.name)==null?void 0:Cn.split("."))==null?void 0:In.pop)==null?void 0:br.call(In);return((Ar=Fr==null?void 0:Fr.type)==null?void 0:Ar.indexOf("image"))>-1||!(Fr!=null&&Fr.type)?Fr.align||Fr.width?Dt.replaceSelection(`<p style="text-align:${Fr.align||"initial"}"><img width="${Fr.width?Fr.width+"%":"initial"}" src="${ir}" alt="${Zn||""}" /></p>`):Dt.replaceSelection(`<img width="100%" src="${ir}" alt="${Zn||""}" />`):((Kr=Fr==null?void 0:Fr.type)==null?void 0:Kr.indexOf("video"))>-1?Dt.replaceSelection(`<video width="100%" controls src="${ir}"></video>`):((Yr=Fr==null?void 0:Fr.type)==null?void 0:Yr.indexOf("pdf"))>-1?Dt.replaceSelection(`<a href="${ir}?type=${Fr.type}&disposition=inline" target="_blank">${Fr.name}</a>`):nr.includes(Io)?Dt.replaceSelection(`<a href="${ir}?type=office&disposition=inline" target="_blank">${Fr.name}</a>`):Dt.replaceSelection(`[${Fr.name}](${ir})`),Dt.focus();case Xt:const{row:Po,col:Qo,align:ri}=Dn;let qo=`
|
|
|
`;for(let Yo=0;Yo<Po;Yo++){let Pi=[],yi=[];for(let gi=0;gi<Qo;gi++)Yo===1&&yi.push(qt[ri]),Pi.push(" ");Yo===1&&(qo+=`| ${yi.join(" | ")} |
|
|
|
`),qo+=`| ${Pi.join(Qo===1?"":" | ")} |
|
|
|
`}return Dt.replaceSelection(qo+`
|
|
|
`),Dt.focus();default:throw new Error}},[Dt,an]),$r=(0,we.useMemo)(()=>{switch(an){case gt:return we.createElement(Je,{callback:Ur,onCancel:eo});case Ht:return we.createElement(Ye.Z,{callback:Ur,onCancel:eo});case St:return we.createElement(We.Z,{callback:Ur,onCancel:eo});case Ct:return we.createElement(Oe,{callback:Ur,onCancel:eo});case Xt:return we.createElement(He,{callback:Ur,onCancel:eo});case"maths-latex":return we.createElement(st,{showSaveButton:!0,callback:Ur});case"inline-latex":return we.createElement(vt.Z,{showSaveButton:!0,callback:Ur});default:return null}},[an]);function eo(){Yn("")}(0,we.useEffect)(()=>{if(bo.current){let Dn=function(Kr){br=!0,Ar=Kr.pageY},hn=function(){br=!1},Cn=function(Kr){if(br){let Yr=Kr.pageY-Ar;Yr<0&&(Yr=0),Yr>300&&(Yr=300);let lo=Zt+Yr+"px";fr(lo)}},In=bo.current,br=!1,Ar=0;return In.addEventListener("mousedown",Dn),document.addEventListener("mousemove",Cn),document.addEventListener("mouseup",hn),()=>{In.removeEventListener("mousedown",Dn),document.removeEventListener("mousemove",Cn),document.removeEventListener("mouseup",hn)}}},[Dt,bo]),(0,we.useEffect)(()=>{fr(Zt)},[Zt]);const jo=yr(xt),Go=yr(pr),Mo={width:jo,height:Go},Ir=(0,we.useMemo)(()=>{if(Hn){let Dn=new Date(Hn),hn=Dn.getHours(),Cn=Dn.getMinutes(),In=Dn.getSeconds();return hn=hn<10?"0"+hn:hn,Cn=Cn<10?"0"+Cn:Cn,In=In<10?"0"+In:In,`${hn}:${Cn}:${In}`}return 0},[Hn]),Er=Dn=>{const hn=[];if(rn){let Cn=-1;Dn=Dn.replace(/(@▁▁@|@▁@)/g,function(In,br,Ar){hn.push({multiLine:In!==$n})})}return hn};function ro(){window.sessionStorage.removeItem(Qn),no(!1),Bn(0)}function Fo(){no(!1),Bn(0),Dt.setValue(window.sessionStorage.getItem(Qn))}(0,we.useEffect)(()=>{rr[an]&&an!==It&&an!==Ct&&setTimeout(()=>{const Dn=document.getElementsByClassName("markdown-popup-form")[0],hn=window.innerWidth/2-Dn.offsetWidth/2,Cn=window.innerHeight/2-Dn.offsetHeight/2;mo(hn),Rr(Cn)},0)},[an]);const zo=Dn=>{Dn.preventDefault();const hn=Dn.clientX-Eo,Cn=Dn.clientY-Zr;document.body.onmousemove=In=>{let br=In.clientX-hn,Ar=In.clientY-Cn;const Kr=document.getElementsByClassName("markdown-popup-form")[0],Yr=window.innerWidth-Kr.offsetWidth,lo=window.innerHeight-Kr.offsetHeight;br=Math.max(0,Math.min(br,Yr)),Ar=Math.max(0,Math.min(Ar,lo)),ci(In.clientX,In.clientY,hn,Cn)&&(mo(br),Rr(Ar))},document.body.onmouseup=function(){document.body.onmousemove=null}},ci=(Dn,hn,Cn,In)=>{const br=document.body.clientHeight,Ar=document.body.clientWidth;return Dn<20&&Cn>Dn||Dn>Ar-20&&Cn<Dn||hn<20&&In>hn||hn>br-20&&In<hn?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return we.createElement(we.Fragment,null,we.createElement("div",{className:"markdown-editor-wrapper",ref:Vr},we.createElement("div",{className:`markdown-editor-container ${Mt} ${lr?"on-preview":""} ${yn?"mini":""} ${fn?"full-screen":""}`,style:Mo},we.createElement(ge,{insertTemp:Kn,watch:lr,fullScreen:fn,showNullButton:$t,showNullProgramButton:rn,onActionCallback:dr,hidetoolBar:nn,extraUse:Sn}),we.createElement("div",{className:"markdown-editor-body"},we.createElement("div",{className:"codemirror-container"},we.createElement("textarea",{ref:so,placeholder:Ft})),lr?we.createElement("div",{ref:Br,className:"preview-container"},Mn==="stex"&&we.createElement(oe,{value:Ln}),Mn!=="stex"&&we.createElement(ie.Z,{disabledFill:zt,showProgramFill:rn,value:Ln})):null))),Kt?we.createElement("a",{ref:bo,className:"editor-resize"}):null,an===It&&we.createElement(ut,{callback:Ur,onCancel:eo}),an===Ct&&we.createElement(Oe,{callback:Ur,onCancel:eo}),we.createElement(Se.Z,null,rr[an]&&an!==It&&an!==Ct?we.createElement(Fe.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Eo,top:Zr},title:we.createElement("div",{style:{cursor:"move"},onMouseDown:zo},rr[an]),open:!0,onCancel:eo,footer:null,destroyOnClose:!0,width:an===Ct?"1200px":null,height:an===Ct?"80vh":null,className:"markdown-popup-form"},$r):null))}},45596:function(_t,ft,ye){"use strict";ye.d(ft,{Z:function(){return me},I:function(){return Se}});var we=ye(78241),Ee=ye(8591),x=ye(92832),pe=ye(81327),de=ye(5871),ae=ye(5112),ne=ye(3113),se=ye(67303),ce=ye(59301),ue=ye(34055),ie=ye(59301),oe=Object.defineProperty,re=Object.defineProperties,z=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,b=(ve,be,Pe)=>be in ve?oe(ve,be,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):ve[be]=Pe,ee=(ve,be)=>{for(var Pe in be||(be={}))y.call(be,Pe)&&b(ve,Pe,be[Pe]);if(a)for(var Pe of a(be))E.call(be,Pe)&&b(ve,Pe,be[Pe]);return ve},te=(ve,be)=>re(ve,z(be));const{useForm:le}=we.default,fe={width:280,marginRight:10},he={labelCol:{span:5},wrapperCol:{span:19}};var me=({callback:ve,onCancel:be})=>{const[Pe]=le();let Te=(0,ce.useRef)();function _e(Ie){Te.current.width=Pe.getFieldValue("width"),Te.current.align=Pe.getFieldValue("align"),ve(Ie,Te.current)}function je(Ie,ke){if(Ie.status===-1){Ee.ZP.error(Ie.message);return}Pe.setFieldsValue({src:`/api/attachments/${Ie.id}`,type:ke.type})}function Ce(Ie){let ke=Ie.target.files[0];Te.current=ke,Se(ke,je)}return ie.createElement(we.default,te(ee({form:Pe},he),{className:"upload-image-panel",onFinish:_e,style:{width:470,overflow:"hidden"}}),ie.createElement(we.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},ie.createElement("div",{className:"flex-container"},ie.createElement(we.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},ie.createElement(x.default,{style:fe})),ie.createElement(ge,{onFileChange:Ce}))),ie.createElement(we.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},ie.createElement(x.default,{style:{width:264}})),ie.createElement(we.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},ie.createElement(pe.Z,null,ie.createElement(we.default.Item,{name:"width",style:{margin:0}},ie.createElement(de.Z,{style:{width:264}})),ie.createElement("span",{className:"ml8"},"%"))),ie.createElement(we.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},ie.createElement(ae.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"}]})),ie.createElement("aside",null,ie.createElement(we.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},ie.createElement(ne.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ie.createElement(ne.ZP,{type:"default",onClick:be},"\u53D6\u6D88"))))};function ge({onFileChange:ve}){return ie.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",ie.createElement("input",{type:"file",onChange:ve}))}function Se(ve,be){if(!ve)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,ue.bg)())throw Ee.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let Pe=new FormData;Pe.append("editormd-image-file",ve),Pe.append("file_param_name","editormd-image-file"),Pe.append("byxhr","true");var Te=new window.XMLHttpRequest;Te.withCredentials=!0,Te.addEventListener("load",function(_e){be(JSON.parse(_e.target.responseText),ve)},!1),Te.addEventListener("error",function(_e){console.error(_e)},!1),Te.open("POST",`${se.KI}/api/attachments.json`),Te.send(Pe)}},75790:function(_t,ft,ye){"use strict";ye.d(ft,{Z:function(){return x}});var we=ye(59301),Ee=ye(4676);class x extends we.Component{constructor(de){super(de);const ae=window.document;this.node=ae.createElement("div"),ae.body.appendChild(this.node)}render(){const{children:de}=this.props;return(0,Ee.createPortal)(de,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},64536:function(_t,ft,ye){"use strict";var we=ye(45298),Ee=ye(57809),x=ye(49770),pe=ye(59301);const de=Ee.default.Option;ft.Z=({isTheoretical:ae,onFontSizeChange:ne,cmFontSize:se,cmCodeMode:ce,autoFormat:ue,onCodeModeChange:ie,onTabToSpace:oe,onAutoFormat:re,formatDocument:z,className:a="",tabToSpace:y,children:E,code_editor:b,challenge:ee,shixun_environment_id:te,shixun_environments:le})=>{var fe;const he={1:"\u7B80\u5355",2:"\u4E2D\u7B49",3:"\u56F0\u96BE"},me=(fe=le==null?void 0:le.find(ge=>ge.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(Ee.default,{bordered:!1,size:"small",value:ce,onChange:ie},pe.createElement(de,{value:"vs"},"\u767D\u8272\u80CC\u666F"),pe.createElement(de,{value:"vs-dark"},"\u9ED1\u8272\u80CC\u666F"))),!ae&&pe.createElement(pe.Fragment,null,pe.createElement("div",{className:"file-item"},pe.createElement("b",null,"\u5B57\u4F53\u5927\u5C0F"),pe.createElement(Ee.default,{bordered:!1,size:"small",value:se,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(x.Z,{checked:y,onChange:oe})),pe.createElement("div",{className:"file-item",onClick:z},pe.createElement("b",{style:{cursor:"pointer"}},"\u683C\u5F0F\u5316\u4EE3\u7801")))),!ae&&pe.createElement(pe.Fragment,null,pe.createElement("h3",null,"\u5FEB\u6377\u952E"),pe.createElement("section",null,pe.createElement("div",{className:"file-item"},pe.createElement("b",null,"\u4FDD\u5B58\u4EE3\u7801"),pe.createElement("span",null,"Ctrl + S")),pe.createElement("div",{className:"file-item"},pe.createElement("b",null,"\u5524\u51FA\u5FEB\u6377\u952E\u5217\u8868"),pe.createElement("span",null,"F1 / Alt + F1")),pe.createElement("div",{className:"file-item"},pe.createElement("b",null,"\u5DE6\u53F3\u7F29\u8FDB"),pe.createElement("span",null,"Ctrl + ]/[")),pe.createElement("div",{className:"file-item"},pe.createElement("b",null,"\u8DF3\u5230\u5339\u914D\u7684\u62EC\u53F7"),pe.createElement("span",null,"Ctrl + Shift + \\")),pe.createElement("div",{className:"file-item"},pe.createElement("b",null,"\u8F6C\u5230\u884C\u9996"),pe.createElement("span",null,"Home")),pe.createElement("div",{className:"file-item"},pe.createElement("b",null,"\u8F6C\u5230\u884C\u5C3E"),pe.createElement("span",null,"End"))),E),!ae&&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,he[ee==null?void 0:ee.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")))))}},17904:function(_t,ft,ye){"use strict";ye.d(ft,{Z:function(){return Ee}});var we=ye(59301);function Ee(x,pe){const de=(0,we.useRef)();(0,we.useEffect)(()=>{de.current=x}),(0,we.useEffect)(()=>{function ae(){de.current()}if(pe!==null){let ne=setInterval(ae,pe);return()=>clearInterval(ne)}},[pe])}},85933:function(_t,ft,ye){"use strict";var we=ye(59301),Ee=ye(31797),x=ye(5871),pe=ye(78241),de=ye(43418),ae=ye(71418),ne=ye(1710),se=ye(92832),ce=ye(95237),ue=ye(43604),ie=ye(3113),oe=ye(72664),re=ye(61186),z=ye.n(re),a=ye(76560),y=ye(49661),E=ye(15610),b=ye(34055),ee=ye(98072),te=ye(59301),le=(ge,Se,ve)=>new Promise((be,Pe)=>{var Te=Ce=>{try{je(ve.next(Ce))}catch(Ie){Pe(Ie)}},_e=Ce=>{try{je(ve.throw(Ce))}catch(Ie){Pe(Ie)}},je=Ce=>Ce.done?be(Ce.value):Promise.resolve(Ce.value).then(Te,_e);je((ve=ve.apply(ge,Se)).next())});const{Countdown:fe}=Ee.default,he=({value:ge,onChange:Se,MaxMinutes:ve})=>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(x.Z,{value:ge,onChange:Se,min:0,precision:0,max:ve,style:{width:"100%"},placeholder:`\u6700\u5927\u53EF\u5EF6\u957F\u65F6\u95F4\u4E3A${ve}\u5206\u949F\uFF0C\u5728\u5B66\u751F\u5269\u4F59\u65F6\u95F4\u57FA\u7840\u4E0A\u5EF6\u65F6`,addonAfter:"\u5206\u949F"})),me=({exercise:ge,successCb:Se,dispatch:ve})=>{var be,Pe,Te,_e;const je=(0,a.useParams)(),[Ce]=pe.default.useForm(),Ie=pe.default.useWatch("time",Ce),[ke,$e]=(0,we.useState)(!1),Ne=(0,we.useRef)(),{actionTabs:nt}=ge,[qe,Je]=(0,we.useState)(),[,Ye,We,Fe]=(0,ee.U)(oe.n7,{id:je.categoryId}),[,Ue,at]=(0,ee.U)(oe.Cd,{});(0,we.useEffect)(()=>{ge.actionTabs.key==="student-unlock"&&($e(!1),Ce.resetFields())},[ge.actionTabs.key]);const Xe=()=>new Promise(Ge=>le(void 0,null,function*(){var De,Le;return Ne.current=yield(0,E.y)({ip_limit:(De=nt==null?void 0:nt.exerciseParams)==null?void 0:De.ip_limit,ip_bind:(Le=nt==null?void 0:nt.exerciseParams)==null?void 0:Le.ip_bind_type}),Ge()})),ut=()=>le(void 0,null,function*(){var Ge,De,Le,Oe,xe;yield Ce.validateFields();const Ae=Ce.getFieldsValue();if($e(!0),(((Ge=nt==null?void 0:nt.exerciseParams)==null?void 0:Ge.ip_limit)!=="no"||(De=nt==null?void 0:nt.exerciseParams)!=null&&De.ip_bind_type)&&(yield Xe()),(yield(0,oe.ZD)((Le=nt==null?void 0:nt.exerciseParams)==null?void 0:Le.id,{exercise_user_id:(Oe=nt==null?void 0:nt.exerciseParams)==null?void 0:Oe.exercise_user_id,unlock_key:Ae.unlock_key,time:Ae.time,ip:Ne.current})).status===0){if(Se){ve({type:"exercise/setActionTabs",payload:{}}),Se();return}const tt=nt==null?void 0:nt.exerciseParams;(0,y.nr)({inner_ip:tt.inner_ip,public_ip:tt.public_ip,open_camera:tt.open_camera,ip_limit:tt.ip_limit,ip_bind:tt.ip_bind,ip_bind_type:tt.ip_bind_type,exercise_tips:tt.exercise_tips,exerciseId:tt.id,screen_open:tt.screen_open,screen_num:tt.screen_num,screen_sec:tt.screen_sec,coursesId:je.coursesId,login:(xe=(0,b.eY)())==null?void 0:xe.login,history,identity_verify:tt.identity_verify,open_phone_video_recording:tt.open_phone_video_recording,current_status:tt.current_status}),ve({type:"exercise/setActionTabs",payload:{}})}$e(!1)}),Ze=[{title:"IP\u5730\u5740",dataIndex:"ip",key:"ip",render:Ge=>te.createElement("span",{className:Ge.indexOf("\u5F02\u5E38")>-1?"c-red":"c-green"},Ge)},{title:"\u6D4F\u89C8\u5668",dataIndex:"browser",key:"browser",render:Ge=>te.createElement("span",{className:Ge.indexOf("\u5F02\u5E38")>-1?"c-red":"c-green"},Ge)},{title:"\u4E0A\u6B21\u767B\u5F55\u65F6\u95F4",dataIndex:"last_login_time",key:"last_login_time"}],ze=((be=nt==null?void 0:nt.exerciseParams)==null?void 0:be.errorMessage)&&typeof((Pe=nt==null?void 0:nt.exerciseParams)==null?void 0:Pe.errorMessage)=="object";(0,we.useEffect)(()=>{ge.actionTabs.key==="student-unlock"&&le(void 0,null,function*(){const Ge=yield at(je);yield We({}),Ge.status||Je(Ge)})},[ge.actionTabs.key]);const{time:Re,end_time:it}=(qe==null?void 0:qe.exercise)||{},Me=Fe!=null&&Fe.user_end_time?z()(Fe==null?void 0:Fe.user_end_time).add(1,"minutes"):z()(),Be=z()(Fe==null?void 0:Fe.user_total_end_time)>Me?Math.round(z().duration(z()(Fe==null?void 0:Fe.user_total_end_time).diff(Me.startOf("minute"))).asMinutes()):0,Qe=((Fe==null?void 0:Fe.student_left_minutes)||0)+(Ie||0);return te.createElement(te.Fragment,null,te.createElement(de.default,{width:514,centered:!0,closable:!!((Te=nt==null?void 0:nt.exerciseParams)!=null&&Te.unlockClose),maskClosable:!1,keyboard:!1,maskStyle:{background:"#000"},title:"\u63D0\u793A",open:ge.actionTabs.key==="student-unlock",footer:null,onCancel:()=>{ve({type:"exercise/setActionTabs",payload:{}})}},te.createElement(ae.Z,{spinning:Ye||Ue},ze&&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 "),!ze&&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"),ze&&te.createElement(ne.default,{className:"mb20",pagination:{hideOnSinglePage:!0},dataSource:[((_e=nt==null?void 0:nt.exerciseParams)==null?void 0:_e.errorMessage)||{}],columns:Ze}),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(se.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",z()(Fe==null?void 0:Fe.user_total_end_time).format("YYYY-MM-DD HH:mm")),"\uFF09")},te.createElement(he,{MaxMinutes:Be})),te.createElement("div",{className:"mb20",style:{color:"#FA6400"}},"\u8BE5\u5B66\u751F\u5269\u4F59\u8003\u8BD5\u65F6\u95F4\uFF1A",te.createElement("span",{className:"ml5"},Ye||Ue?"--":Qe),"\u5206\u949F",Qe!==0&&(Fe==null?void 0:Fe.user_end_time)&&te.createElement("span",null,"\uFF0C\u4EA4\u5377\u622A\u6B62\u65F6\u95F4\uFF1A",te.createElement("span",{className:"ml5"},z()(Fe==null?void 0:Fe.user_end_time).add(Ie||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 ",z()(it).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(ie.ZP,{loading:ke,onClick:ut},"\u8FDB\u5165\u8003\u8BD5"))))))};ft.Z=(0,a.connect)(({exercise:ge})=>({exercise:ge}))(me)},46541:function(_t,ft,ye){"use strict";ye.d(ft,{Z:function(){return re}});var we=ye(59301),Ee=ye(8591),x=ye(6848),pe=ye(71418),de=ye(95237),ae=ye(43604),ne=ye(58421),se=ye(3113),ce=ye(89389),ue=ye(82093),ie=ye(7664),oe=(a,y,E)=>new Promise((b,ee)=>{var te=he=>{try{fe(E.next(he))}catch(me){ee(me)}},le=he=>{try{fe(E.throw(he))}catch(me){ee(me)}},fe=he=>he.done?b(he.value):Promise.resolve(he.value).then(te,le);fe((E=E.apply(a,y)).next())}),re=({id:a,activeDiscussIndex:y,onReplyDiscuss:E,adminOrOperator:b})=>{const[ee,te]=(0,we.useState)(""),[le,fe]=(0,we.useState)(!1);function he(ge){te(ge)}function me(){if(!ee){Ee.ZP.info("\u56DE\u590D\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A!");return}E(a,ee),te("")}return(0,we.useEffect)(()=>{y!=a&&fe(!1)},[y]),we.createElement("div",{key:a,className:"discuss-item-editor",style:{display:y===a?"block":"none",width:"100%"}},we.createElement(ce.Z,{miniToolbar:!0,startInit:y===a,defaultValue:ee,id:a,noStorage:!0,watch:!1,height:155,placeholder:"\u6211\u8981\u56DE\u590D",showResizeBar:!0,onChange:he,extraUse:b&&we.createElement(x.Z,{color:"#fff",open:le,destroyTooltipOnHide:!0,title:z({id:a,isOpen:le,activeDiscussIndex:y,onChange:he,setIsOpen:fe}),overlayStyle:{maxWidth:600}},we.createElement("a",{title:le?"\u5173\u95ED\u63A8\u8350":"\u6253\u5F00\u63A8\u8350",onClick:()=>fe(!le)},we.createElement("i",{className:"iconfont icon-dianzan11"})))}),we.createElement("a",{onClick:me,className:"btn-send"},"\u53D1\u9001"))};const z=a=>{const[y,E]=(0,we.useState)(!1),[b,ee]=(0,we.useState)([]),[te,le]=(0,we.useState)(1);(0,we.useEffect)(()=>{a!=null&&a.isOpen?fe():(le(1),ee([]))},[a==null?void 0:a.isOpen]);const fe=()=>oe(void 0,null,function*(){E(!0);const he=yield(0,ue.ZP)(`/api/discusses/${a==null?void 0:a.id}/recommend_answer.json`,{method:"get"});(he==null?void 0:he.status)==0&&ee(he==null?void 0:he.answer),E(!1)});return we.createElement(pe.Z,{spinning:y},we.createElement("div",{style:{color:"#000"}},we.createElement(ie.Z,{className:"font14",style:{maxHeight:500,overflow:"auto"},value:(b==null?void 0:b[te-1])||""}),we.createElement(de.Z,{justify:"end",align:"middle"},we.createElement(ae.Z,null,we.createElement(ne.Z,{simple:!0,current:te,pageSize:1,total:(b==null?void 0:b.length)||0,onChange:he=>{le(he)}})),we.createElement(ae.Z,null,we.createElement(se.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")))))}},67290:function(_t,ft,ye){"use strict";ye.d(ft,{CP:function(){return x},_V:function(){return ae}});var we=ye(28209),Ee=ye.n(we);const x={secret:we.enc.Utf8.parse("0a18e199b87f1a8d"),iv:we.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:x};function de(ne="",se="exam"){const{secret:ce,iv:ue}=pe[se];return AES.encrypt(ne,ce,{iv:ue,mode:CryptoJS.mode.CBC,padding:CryptoJS.pad.Pkcs7}).toString()}function ae(ne="",se="exam"){const{secret:ce,iv:ue}=pe[se];return we.AES.decrypt(ne,ce,{iv:ue,mode:Ee().mode.CBC,padding:Ee().pad.Pkcs7}).toString(we.enc.Utf8)}},2610:function(_t,ft,ye){"use strict";ye.d(ft,{BU:function(){return Ee},Dj:function(){return we},gH:function(){return x},vp:function(){return pe}});function we(de){try{de.mozRequestFullScreen?de.mozRequestFullScreen():de.webkitRequestFullScreen&&de.webkitRequestFullScreen()}catch(ae){console.log(ae,":e")}}function Ee(){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 x=()=>{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,ae=document.fullscreenEnabled||document.mozFullscreenEnabled||document.webkitFullscreenEnabled;return console.log("fullscreenElement",de),window.isFullScreen?window.isFullScreen:de!=null}},98072:function(_t,ft,ye){"use strict";ye.d(ft,{U:function(){return ce}});var we=ye(59301),Ee=Object.defineProperty,x=Object.getOwnPropertySymbols,pe=Object.prototype.hasOwnProperty,de=Object.prototype.propertyIsEnumerable,ae=(ue,ie,oe)=>ie in ue?Ee(ue,ie,{enumerable:!0,configurable:!0,writable:!0,value:oe}):ue[ie]=oe,ne=(ue,ie)=>{for(var oe in ie||(ie={}))pe.call(ie,oe)&&ae(ue,oe,ie[oe]);if(x)for(var oe of x(ie))de.call(ie,oe)&&ae(ue,oe,ie[oe]);return ue},se=(ue,ie,oe)=>new Promise((re,z)=>{var a=b=>{try{E(oe.next(b))}catch(ee){z(ee)}},y=b=>{try{E(oe.throw(b))}catch(ee){z(ee)}},E=b=>b.done?re(b.value):Promise.resolve(b.value).then(a,y);E((oe=oe.apply(ue,ie)).next())});function ce(ue,ie){const[oe,re]=(0,we.useState)(ie),[z,a]=(0,we.useState)(!1),[y,E]=(0,we.useState)();return[oe,z,(ee,te=!1)=>se(this,null,function*(){const le=te?ie:ne(ne({},oe),ee);a(!0),re(le);const fe=yield ue(le);return a(!1),E(fe),fe}),y]}},89244:function(_t,ft,ye){"use strict";ye.d(ft,{_:function(){return x}});var we=ye(59301),Ee=ye(43418);const x=pe=>{var de,ae;const ne=(0,we.useRef)([]),se=()=>{for(const ce of ne.current)clearTimeout(ce);ne.current=[]};return(0,we.useEffect)(()=>{var ce,ue,ie,oe,re,z;if(se(),(ce=pe==null?void 0:pe.exercise)!=null&&ce.left_time&&((ie=(ue=pe==null?void 0:pe.exercise)==null?void 0:ue.exercise_events)==null?void 0:ie.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=(((z=pe==null?void 0:pe.exercise)==null?void 0:z.left_time)-(a==null?void 0:a.reminder_time)*60)*1e3;y=y>2147483647?2147483647:y;const E=setTimeout(()=>{Ee.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(E)}}},[(de=pe==null?void 0:pe.exercise)==null?void 0:de.left_time,(ae=pe==null?void 0:pe.exercise)==null?void 0:ae.exercise_events]),se}},89613:function(_t,ft,ye){"use strict";ye.d(ft,{G:function(){return de},t:function(){return pe}});var we=ye(7062),Ee=ye.n(we);const x=null;function pe(ae,ne){let se=Ee().get("__ec");se||(se={}),se[ae]=ne,Ee().set("__ec",se)}function de(ae,ne){let se=Ee().get("__ec");return se?se[ae]===void 0?ne:se[ae]:ne}},47257:function(_t){(function(ft){(function(ye){if(1)_t.exports=ye();else var we})(function(){var ye,we,Ee;return function(){function x(pe,de,ae){function ne(ue,ie){if(!de[ue]){if(!pe[ue]){var oe=void 0;if(!ie&&oe)return require(ue,!0);if(se)return se(ue,!0);var re=new Error("Cannot find module '"+ue+"'");throw re.code="MODULE_NOT_FOUND",re}var z=de[ue]={exports:{}};pe[ue][0].call(z.exports,function(a){var y=pe[ue][1][a];return ne(y||a)},z,z.exports,x,pe,de,ae)}return de[ue].exports}for(var se=void 0,ce=0;ce<ae.length;ce++)ne(ae[ce]);return ne}return x}()({1:[function(x,pe,de){"use strict";var ae=x("./browser/client");ae.Buffer=x("buffer").Buffer,ae.urllib=x("../shims/xhr"),ae.version=x("./browser/version").version,pe.exports=ae},{"../shims/xhr":475,"./browser/client":3,"./browser/version":6,buffer:90}],2:[function(x,pe,de){"use strict";var ae=x("@babel/runtime/helpers/interopRequireDefault"),ne=ae(x("@babel/runtime/regenerator")),se=ae(x("@babel/runtime/helpers/asyncToGenerator"));x("core-js/modules/es.object.to-string.js"),x("core-js/modules/web.dom-collections.for-each.js"),x("core-js/modules/es.object.keys.js"),x("core-js/modules/es.array.slice.js");var ce=x("assert"),ue=x("../common/utils/checkBucketName"),ie=ue.checkBucketName,oe=de;function re(a){return Array.isArray?Array.isArray(a):Object.prototype.toString.call(a)==="[object Array]"}function z(a){return a?re(a)?a:[a]:[]}oe.useBucket=function(y){return ie(y),this.options.bucket=y,this},oe.setBucket=function(y){return ie(y),this.options.bucket=y,this},oe.getBucket=function(){return this.options.bucket},oe.deleteBucket=function(){var a=(0,se.default)(ne.default.mark(function E(b,ee){var te,le;return ne.default.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return te=this._bucketRequestParams("DELETE",b,"",ee),he.next=3,this.request(te);case 3:if(le=he.sent,!(le.status===200||le.status===204)){he.next=6;break}return he.abrupt("return",{res:le.res});case 6:return he.next=8,this.requestError(le);case 8:throw he.sent;case 9:case"end":return he.stop()}},E,this)}));function y(E,b){return a.apply(this,arguments)}return y}(),oe.putBucketACL=function(){var a=(0,se.default)(ne.default.mark(function E(b,ee,te){var le,fe;return ne.default.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:return le=this._bucketRequestParams("PUT",b,"acl",te),le.headers={"x-oss-acl":ee},le.successStatuses=[200],me.next=5,this.request(le);case 5:return fe=me.sent,me.abrupt("return",{bucket:fe.headers.location&&fe.headers.location.substring(1)||null,res:fe.res});case 7:case"end":return me.stop()}},E,this)}));function y(E,b,ee){return a.apply(this,arguments)}return y}(),oe.getBucketACL=function(){var a=(0,se.default)(ne.default.mark(function E(b,ee){var te,le;return ne.default.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return te=this._bucketRequestParams("GET",b,"acl",ee),te.successStatuses=[200],te.xmlResponse=!0,he.next=5,this.request(te);case 5:return le=he.sent,he.abrupt("return",{acl:le.data.AccessControlList.Grant,owner:{id:le.data.Owner.ID,displayName:le.data.Owner.DisplayName},res:le.res});case 7:case"end":return he.stop()}},E,this)}));function y(E,b){return a.apply(this,arguments)}return y}(),oe.putBucketLogging=function(){var a=(0,se.default)(ne.default.mark(function E(b,ee,te){var le,fe,he;return ne.default.wrap(function(ge){for(;;)switch(ge.prev=ge.next){case 0:return le=this._bucketRequestParams("PUT",b,"logging",te),fe=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<BucketLoggingStatus>
|
|
|
<LoggingEnabled>
|
|
|
<TargetBucket>`.concat(b,`</TargetBucket>
|
|
|
`),ee&&(fe+="<TargetPrefix>".concat(ee,`</TargetPrefix>
|
|
|
`)),fe+=`</LoggingEnabled>
|
|
|
</BucketLoggingStatus>`,le.content=fe,le.mime="xml",le.successStatuses=[200],ge.next=9,this.request(le);case 9:return he=ge.sent,ge.abrupt("return",{res:he.res});case 11:case"end":return ge.stop()}},E,this)}));function y(E,b,ee){return a.apply(this,arguments)}return y}(),oe.getBucketLogging=function(){var a=(0,se.default)(ne.default.mark(function E(b,ee){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",ee),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()}},E,this)}));function y(E,b){return a.apply(this,arguments)}return y}(),oe.deleteBucketLogging=function(){var a=(0,se.default)(ne.default.mark(function E(b,ee){var te,le;return ne.default.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return te=this._bucketRequestParams("DELETE",b,"logging",ee),te.successStatuses=[204,200],he.next=4,this.request(te);case 4:return le=he.sent,he.abrupt("return",{res:le.res});case 6:case"end":return he.stop()}},E,this)}));function y(E,b){return a.apply(this,arguments)}return y}(),oe.putBucketCORS=function(){var a=(0,se.default)(ne.default.mark(function E(b,ee,te){var le,fe,he,me,ge,Se,ve,be,Pe,Te;return ne.default.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:for(ee=ee||[],ce(ee.length,"rules is required"),ee.forEach(function(Ce){ce(Ce.allowedOrigin,"allowedOrigin is required"),ce(Ce.allowedMethod,"allowedMethod is required")}),le=this._bucketRequestParams("PUT",b,"cors",te),fe=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<CORSConfiguration>`,he=function(Ie){fe+="<AllowedOrigin>".concat(Ie,"</AllowedOrigin>")},me=function(Ie){fe+="<AllowedMethod>".concat(Ie,"</AllowedMethod>")},ge=function(Ie){fe+="<AllowedHeader>".concat(Ie,"</AllowedHeader>")},Se=function(Ie){fe+="<ExposeHeader>".concat(Ie,"</ExposeHeader>")},ve=0,be=ee.length;ve<be;ve++)Pe=ee[ve],fe+="<CORSRule>",z(Pe.allowedOrigin).forEach(he),z(Pe.allowedMethod).forEach(me),z(Pe.allowedHeader).forEach(ge),z(Pe.exposeHeader).forEach(Se),Pe.maxAgeSeconds&&(fe+="<MaxAgeSeconds>".concat(Pe.maxAgeSeconds,"</MaxAgeSeconds>")),fe+="</CORSRule>";return fe+="</CORSConfiguration>",le.content=fe,le.mime="xml",le.successStatuses=[200],je.next=16,this.request(le);case 16:return Te=je.sent,je.abrupt("return",{res:Te.res});case 18:case"end":return je.stop()}},E,this)}));function y(E,b,ee){return a.apply(this,arguments)}return y}(),oe.getBucketCORS=function(){var a=(0,se.default)(ne.default.mark(function E(b,ee){var te,le,fe,he;return ne.default.wrap(function(ge){for(;;)switch(ge.prev=ge.next){case 0:return te=this._bucketRequestParams("GET",b,"cors",ee),te.successStatuses=[200],te.xmlResponse=!0,ge.next=5,this.request(te);case 5:return le=ge.sent,fe=[],le.data&&le.data.CORSRule&&(he=le.data.CORSRule,re(he)||(he=[he]),he.forEach(function(Se){var ve={};Object.keys(Se).forEach(function(be){ve[be.slice(0,1).toLowerCase()+be.slice(1,be.length)]=Se[be]}),fe.push(ve)})),ge.abrupt("return",{rules:fe,res:le.res});case 9:case"end":return ge.stop()}},E,this)}));function y(E,b){return a.apply(this,arguments)}return y}(),oe.deleteBucketCORS=function(){var a=(0,se.default)(ne.default.mark(function E(b,ee){var te,le;return ne.default.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return te=this._bucketRequestParams("DELETE",b,"cors",ee),te.successStatuses=[204],he.next=4,this.request(te);case 4:return le=he.sent,he.abrupt("return",{res:le.res});case 6:case"end":return he.stop()}},E,this)}));function y(E,b){return a.apply(this,arguments)}return y}(),oe.putBucketReferer=function(){var a=(0,se.default)(ne.default.mark(function E(b,ee,te,le){var fe,he,me,ge;return ne.default.wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:if(fe=this._bucketRequestParams("PUT",b,"referer",le),he=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<RefererConfiguration>
|
|
|
`,he+=" <AllowEmptyReferer>".concat(ee?"true":"false",`</AllowEmptyReferer>
|
|
|
`),te&&te.length>0){for(he+=` <RefererList>
|
|
|
`,me=0;me<te.length;me++)he+=" <Referer>".concat(te[me],`</Referer>
|
|
|
`);he+=` </RefererList>
|
|
|
`}else he+=` <RefererList />
|
|
|
`;return he+="</RefererConfiguration>",fe.content=he,fe.mime="xml",fe.successStatuses=[200],ve.next=10,this.request(fe);case 10:return ge=ve.sent,ve.abrupt("return",{res:ge.res});case 12:case"end":return ve.stop()}},E,this)}));function y(E,b,ee,te){return a.apply(this,arguments)}return y}(),oe.getBucketReferer=function(){var a=(0,se.default)(ne.default.mark(function E(b,ee){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",ee),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()}},E,this)}));function y(E,b){return a.apply(this,arguments)}return y}(),oe.deleteBucketReferer=function(){var a=(0,se.default)(ne.default.mark(function E(b,ee){return ne.default.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:return le.next=2,this.putBucketReferer(b,!0,null,ee);case 2:return le.abrupt("return",le.sent);case 3:case"end":return le.stop()}},E,this)}));function y(E,b){return a.apply(this,arguments)}return y}(),oe._bucketRequestParams=function(y,E,b,ee){return{method:y,bucket:E,subres:b,timeout:ee&&ee.timeout,ctx:ee&&ee.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(x,pe,de){(function(ae,ne){(function(){"use strict";var se=x("@babel/runtime/helpers/interopRequireDefault"),ce=se(x("@babel/runtime/regenerator")),ue=se(x("@babel/runtime/helpers/asyncToGenerator"));x("core-js/modules/es.function.name.js"),x("core-js/modules/es.regexp.exec.js"),x("core-js/modules/es.string.split.js"),x("core-js/modules/es.object.assign.js"),x("core-js/modules/es.array.includes.js"),x("core-js/modules/es.string.replace.js"),x("core-js/modules/es.array.concat.js"),x("core-js/modules/es.symbol.js"),x("core-js/modules/es.symbol.description.js"),x("core-js/modules/es.array.slice.js"),x("core-js/modules/es.object.to-string.js"),x("core-js/modules/es.promise.js"),x("core-js/modules/es.regexp.to-string.js");var ie=x("debug")("ali-oss"),oe=x("xml2js"),re=x("agentkeepalive"),z=x("merge-descriptors"),a=x("platform"),y=x("utility"),E=x("urllib"),b=x("./version"),ee=x("bowser"),te=x("../common/signUtils"),le=x("../common/client/initOptions"),fe=x("../common/utils/createRequest"),he=fe.createRequest,me=x("../common/utils/encoder"),ge=me.encoder,Se=x("../common/client/getReqUrl"),ve=Se.getReqUrl,be=x("../common/utils/setSTSToken"),Pe=be.setSTSToken,Te=x("../common/utils/retry"),_e=Te.retry,je=x("../common/utils/isFunction"),Ce=je.isFunction,Ie=new re;function ke(){var Ye=a.name,We=a.version;Ye&&Ye.toLowerCase&&Ye.toLowerCase()==="ie"&&We.split(".")[0]<10&&console.warn("ali-oss does not support the current browser")}function $e(){return location&&location.protocol==="https:"}function Ne(Ye,We){if(ke(),!(this instanceof Ne))return new Ne(Ye,We);Ye&&Ye.inited?this.options=Ye:this.options=Ne.initOptions(Ye),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=E,this.agent=this.options.agent||Ie),this.ctx=We,this.userAgent=this._getUserAgent(),this.stsTokenFreshTime=new Date,this.options.amendTimeSkewed=0}pe.exports=Ne,Ne.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 Fe=Object.assign({secure:$e(),useFetch:!1},We);return le(Fe)};var nt=Ne.prototype;nt.debug=ie,z(nt,x("./object")),z(nt,x("./bucket")),z(nt,x("../common/bucket/getBucketWebsite")),z(nt,x("../common/bucket/putBucketWebsite")),z(nt,x("../common/bucket/deleteBucketWebsite")),z(nt,x("../common/bucket/getBucketLifecycle")),z(nt,x("../common/bucket/putBucketLifecycle")),z(nt,x("../common/bucket/deleteBucketLifecycle")),z(nt,x("../common/bucket/putBucketVersioning")),z(nt,x("../common/bucket/getBucketVersioning")),z(nt,x("../common/bucket/getBucketInventory")),z(nt,x("../common/bucket/deleteBucketInventory")),z(nt,x("../common/bucket/listBucketInventory")),z(nt,x("../common/bucket/putBucketInventory")),z(nt,x("../common/bucket/abortBucketWorm")),z(nt,x("../common/bucket/completeBucketWorm")),z(nt,x("../common/bucket/extendBucketWorm")),z(nt,x("../common/bucket/getBucketWorm")),z(nt,x("../common/bucket/initiateBucketWorm")),z(nt,x("./managed-upload")),z(nt,x("../common/multipart-copy")),z(nt,x("../common/multipart")),z(nt,x("../common/parallel")),nt.signature=function(We){return this.debug("authorization stringToSign: %s",We,"info"),te.computeSignature(this.options.accessKeySecret,We,this.options.headerEncoding)},nt._getReqUrl=ve,nt.authorization=function(We,Fe,Ue,at){var Xe=te.buildCanonicalString(We.toUpperCase(),Fe,{headers:at,parameters:Ue});return te.authorization(this.options.accessKeyId,this.options.accessKeySecret,Xe,this.options.headerEncoding)},nt.request=function(){var Ye=(0,ue.default)(ce.default.mark(function We(Fe){var Ue=this;return ce.default.wrap(function(Xe){for(;;)switch(Xe.prev=Xe.next){case 0:if(!this.options.retryMax){Xe.next=6;break}return Xe.next=3,_e(qe.bind(this),this.options.retryMax,{errorHandler:function(Ze){var ze=function(it){if(Fe.stream)return!1;var Me=[-1,-2].includes(it.status),Be=Ue.options.requestErrorRetryHandle||function(){return!0};return Me&&Be(it)};return!!ze(Ze)}})(Fe);case 3:return Xe.abrupt("return",Xe.sent);case 6:return Xe.abrupt("return",qe.call(this,Fe));case 7:case"end":return Xe.stop()}},We,this)}));return function(We){return Ye.apply(this,arguments)}}();function qe(Ye){return Je.apply(this,arguments)}function Je(){return Je=(0,ue.default)(ce.default.mark(function Ye(We){var Fe,Ue,at,Xe,ut,Ze;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,Pe.call(this);case 3:return Fe=he.call(this,We),this.options.useFetch||(Fe.params.mode="disable-fetch"),Xe=!!We.stream,Re.prev=6,Re.next=9,this.urllib.request(Fe.url,Fe.params);case 9:Ue=Re.sent,this.debug("response %s %s, got %s, headers: %j",We.method,Fe.url,Ue.status,Ue.headers,"info"),Re.next=16;break;case 13:Re.prev=13,Re.t0=Re.catch(6),at=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"&&!Xe)){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(!at){Re.next=32;break}return Re.next=31,this.requestError(at);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:Ze=Re.sent,Ue.data=Ze;case 39:return Re.abrupt("return",Ue);case 40:case"end":return Re.stop()}},Ye,this,[[6,13]])})),Je.apply(this,arguments)}nt._getResource=function(We){var Fe="/";return We.bucket&&(Fe+="".concat(We.bucket,"/")),We.object&&(Fe+=ge(We.object,this.options.headerEncoding)),Fe},nt._escape=function(We){return y.encodeURIComponent(We).replace(/%2F/g,"/")},nt._getUserAgent=function(){var We=ne&&ne.browser?"js":"nodejs",Fe="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(Fe," ").concat(Ue))},nt._checkUserAgent=function(We){var Fe=We.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta");return Fe},nt.checkBrowserAndVersion=function(We,Fe){return ee.name===We&&ee.version.split(".")[0]===Fe},nt.parseXML=function(We){return new Promise(function(Fe,Ue){ae.isBuffer(We)&&(We=We.toString()),oe.parseString(We,{explicitRoot:!1,explicitArray:!1},function(at,Xe){at?Ue(at):Fe(Xe)})})},nt.requestError=function(){var Ye=(0,ue.default)(ce.default.mark(function Fe(Ue){var at,Xe,ut,Ze;return ce.default.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:if(at=null,!(!Ue.data||!Ue.data.length)){Re.next=5;break}Ue.status===-1||Ue.status===-2?(at=new Error(Ue.message),at.name=Ue.name,at.status=Ue.status,at.code=Ue.name):(Ue.status===404?(at=new Error("Object not exists"),at.name="NoSuchKeyError",at.status=404,at.code="NoSuchKey"):Ue.status===412?(at=new Error("Pre condition failed"),at.name="PreconditionFailedError",at.status=412,at.code="PreconditionFailed"):(at=new Error("Unknow error, status: ".concat(Ue.status)),at.name="UnknownError",at.status=Ue.status),at.requestId=Ue.headers["x-oss-request-id"],at.host=""),Re.next=32;break;case 5:return Xe=String(Ue.data),this.debug("request response error data: %s",Xe,"error"),Re.prev=7,Re.next=10,this.parseXML(Xe);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(Xe,"error"),Re.t1.message+=`
|
|
|
raw xml: `.concat(Xe),Re.t1.status=Ue.status,Re.t1.requestId=Ue.headers["x-oss-request-id"],Re.abrupt("return",Re.t1);case 23:Ze=ut.Message||"unknow request error, status: ".concat(Ue.status),ut.Condition&&(Ze+=" (condition: ".concat(ut.Condition,")")),at=new Error(Ze),at.name=ut.Code?"".concat(ut.Code,"Error"):"UnknownError",at.status=Ue.status,at.code=ut.Code,at.requestId=ut.RequestId,at.hostId=ut.HostId,at.serverTime=ut.ServerTime;case 32:return this.debug("generate error %j",at,"error"),Re.abrupt("return",at);case 34:case"end":return Re.stop()}},Fe,this,[[7,16]])}));function We(Fe){return Ye.apply(this,arguments)}return We}()}).call(this)}).call(this,{isBuffer:x("../../node_modules/is-buffer/index.js")},x("_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(x,pe,de){(function(ae){(function(){"use strict";var ne=x("@babel/runtime/helpers/interopRequireDefault"),se=ne(x("@babel/runtime/regenerator"));x("core-js/modules/es.function.name.js"),x("core-js/modules/es.object.to-string.js"),x("core-js/modules/es.promise.js"),x("core-js/modules/es.array.from.js"),x("core-js/modules/es.string.iterator.js"),x("core-js/modules/es.array.map.js"),x("core-js/modules/es.array.filter.js"),x("core-js/modules/es.array.find.js"),x("core-js/modules/es.array.concat.js"),x("core-js/modules/es.regexp.to-string.js"),x("core-js/modules/es.array.slice.js"),x("core-js/modules/es.array.iterator.js"),x("core-js/modules/es.array-buffer.slice.js"),x("core-js/modules/es.typed-array.uint8-array.js"),x("core-js/modules/es.typed-array.copy-within.js"),x("core-js/modules/es.typed-array.every.js"),x("core-js/modules/es.typed-array.fill.js"),x("core-js/modules/es.typed-array.filter.js"),x("core-js/modules/es.typed-array.find.js"),x("core-js/modules/es.typed-array.find-index.js"),x("core-js/modules/es.typed-array.for-each.js"),x("core-js/modules/es.typed-array.includes.js"),x("core-js/modules/es.typed-array.index-of.js"),x("core-js/modules/es.typed-array.iterator.js"),x("core-js/modules/es.typed-array.join.js"),x("core-js/modules/es.typed-array.last-index-of.js"),x("core-js/modules/es.typed-array.map.js"),x("core-js/modules/es.typed-array.reduce.js"),x("core-js/modules/es.typed-array.reduce-right.js"),x("core-js/modules/es.typed-array.reverse.js"),x("core-js/modules/es.typed-array.set.js"),x("core-js/modules/es.typed-array.slice.js"),x("core-js/modules/es.typed-array.some.js"),x("core-js/modules/es.typed-array.sort.js"),x("core-js/modules/es.typed-array.subarray.js"),x("core-js/modules/es.typed-array.to-locale-string.js"),x("core-js/modules/es.typed-array.to-string.js");var ce=ne(x("@babel/runtime/helpers/asyncToGenerator")),ue=x("util"),ie=x("path"),oe=x("mime"),re=x("copy-to"),z=x("../common/utils/isBlob"),a=z.isBlob,y=x("../common/utils/isFile"),E=y.isFile,b=x("../common/utils/isBuffer"),ee=b.isBuffer,te=de;te.multipartUpload=function(){var ge=(0,ce.default)(se.default.mark(function ve(be,Pe){var Te,_e,je,Ce,Ie,ke,$e,Ne,nt,qe=arguments;return se.default.wrap(function(Ye){for(;;)switch(Ye.prev=Ye.next){case 0:if(Te=qe.length>2&&qe[2]!==void 0?qe[2]:{},this.resetCancelFlag(),Te.disabledMD5=Te.disabledMD5===void 0?!0:!!Te.disabledMD5,!(Te.checkpoint&&Te.checkpoint.uploadId)){Ye.next=8;break}return Pe&&E(Pe)&&(Te.checkpoint.file=Pe),Ye.next=7,this._resumeMultipart(Te.checkpoint,Te);case 7:return Ye.abrupt("return",Ye.sent);case 8:return _e=102400,Te.mime||(E(Pe)?Te.mime=oe.getType(ie.extname(Pe.name)):a(Pe)?Te.mime=Pe.type:ee(Pe)?Te.mime="":Te.mime=oe.getType(ie.extname(Pe))),Te.headers=Te.headers||{},this._convertMetaToHeaders(Te.meta,Te.headers),Ye.next=14,this._getFileSize(Pe);case 14:if(je=Ye.sent,!(je<_e)){Ye.next=26;break}return Te.contentLength=je,Ye.next=19,this.put(be,Pe,Te);case 19:if(Ce=Ye.sent,!(Te&&Te.progress)){Ye.next=23;break}return Ye.next=23,Te.progress(1);case 23:return Ie={res:Ce.res,bucket:this.options.bucket,name:be,etag:Ce.res.headers.etag},(Te.headers&&Te.headers["x-oss-callback"]||Te.callback)&&(Ie.data=Ce.data),Ye.abrupt("return",Ie);case 26:if(!(Te.partSize&&parseInt(Te.partSize,10)!==Te.partSize)){Ye.next=28;break}throw new Error("partSize must be int number");case 28:if(!(Te.partSize&&Te.partSize<_e)){Ye.next=30;break}throw new Error("partSize must not be smaller than ".concat(_e));case 30:return Ye.next=32,this.initMultipartUpload(be,Te);case 32:if(ke=Ye.sent,$e=ke.uploadId,Ne=this._getPartSize(je,Te.partSize),nt={file:Pe,name:be,fileSize:je,partSize:Ne,uploadId:$e,doneParts:[]},!(Te&&Te.progress)){Ye.next=39;break}return Ye.next=39,Te.progress(0,nt,ke.res);case 39:return Ye.next=41,this._resumeMultipart(nt,Te);case 41:return Ye.abrupt("return",Ye.sent);case 42:case"end":return Ye.stop()}},ve,this)}));function Se(ve,be){return ge.apply(this,arguments)}return Se}(),te._resumeMultipart=function(){var ge=(0,ce.default)(se.default.mark(function ve(be,Pe){var Te,_e,je,Ce,Ie,ke,$e,Ne,nt,qe,Je,Ye,We,Fe,Ue,at,Xe,ut,Ze;return se.default.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:if(Te=this,!this.isCancel()){Re.next=3;break}throw this._makeCancelEvent();case 3:return _e=be.file,je=be.fileSize,Ce=be.partSize,Ie=be.uploadId,ke=be.doneParts,$e=be.name,Ne=[],ke.length>0&&re(ke).to(Ne),nt=this._divideParts(je,Ce),qe=nt.length,Je=!1,Ye=function(Me,Be){return new Promise(function(){var Qe=(0,ce.default)(se.default.mark(function Ge(De,Le){var Oe,xe,Ae,Ke,tt;return se.default.wrap(function(ot){for(;;)switch(ot.prev=ot.next){case 0:if(ot.prev=0,Me.isCancel()){ot.next=29;break}return Oe=nt[Be-1],ot.next=5,Me._createBuffer(_e,Oe.start,Oe.end);case 5:return xe=ot.sent,Ae={content:xe,size:Oe.end-Oe.start},ot.prev=7,ot.next=10,Me._uploadPart($e,Ie,Be,Ae,Pe);case 10:Ke=ot.sent,ot.next=18;break;case 13:if(ot.prev=13,ot.t0=ot.catch(7),ot.t0.status!==404){ot.next=17;break}throw Me._makeAbortEvent();case 17:throw ot.t0;case 18:if(!(!Me.isCancel()&&!Je)){ot.next=26;break}if(be.doneParts.push({number:Be,etag:Ke.res.headers.etag}),!Pe.progress){ot.next=23;break}return ot.next=23,Pe.progress(ke.length/(qe+1),be,Ke.res);case 23:De({number:Be,etag:Ke.res.headers.etag}),ot.next=27;break;case 26:De();case 27:ot.next=30;break;case 29:De();case 30:ot.next=41;break;case 32:ot.prev=32,ot.t1=ot.catch(0),tt=new Error,tt.name=ot.t1.name,tt.message=ot.t1.message,tt.stack=ot.t1.stack,tt.partNum=Be,re(ot.t1).to(tt),Le(tt);case 41:case"end":return ot.stop()}},Ge,null,[[0,32],[7,13]])}));return function(Ge,De){return Qe.apply(this,arguments)}}())},We=Array.from(new Array(qe),function(it,Me){return Me+1}),Fe=Ne.map(function(it){return it.number}),Ue=We.filter(function(it){return Fe.indexOf(it)<0}),at=5,Xe=Pe.parallel||at,Re.next=17,this._parallel(Ue,Xe,function(it){return new Promise(function(Me,Be){Ye(Te,it).then(function(Qe){Qe&&Ne.push(Qe),Me()}).catch(function(Qe){Be(Qe)})})});case 17:if(ut=Re.sent,Je=!0,Ze=ut.find(function(it){return it.name==="abort"}),!Ze){Re.next=22;break}throw Ze;case 22:if(!this.isCancel()){Re.next=25;break}throw Ye=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($e,Ie,Ne,Pe);case 30:return Re.abrupt("return",Re.sent);case 31:case"end":return Re.stop()}},ve,this)}));function Se(ve,be){return ge.apply(this,arguments)}return Se}(),te._getFileSize=function(){var ge=(0,ce.default)(se.default.mark(function ve(be){return se.default.wrap(function(Te){for(;;)switch(Te.prev=Te.next){case 0:if(!ee(be)){Te.next=4;break}return Te.abrupt("return",be.length);case 4:if(!(a(be)||E(be))){Te.next=6;break}return Te.abrupt("return",be.size);case 6:throw new Error("_getFileSize requires Buffer/File/Blob.");case 7:case"end":return Te.stop()}},ve)}));function Se(ve){return ge.apply(this,arguments)}return Se}();var le=x("stream"),fe=le.Readable;function he(ge,Se){if(!(this instanceof he))return new he(ge,Se);fe.call(this,Se),this.file=ge,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}ue.inherits(he,fe),he.prototype.readFileAndPush=function(Se){if(this.fileBuffer)for(var ve=!0;ve&&this.fileBuffer&&this.start<this.fileBuffer.length;){var be=this.start,Pe=be+Se;Pe=Pe>this.fileBuffer.length?this.fileBuffer.length:Pe,this.start=Pe,ve=this.push(this.fileBuffer.slice(be,Pe))}},he.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 ve=16*1024;Se=Se||ve;var be=this;this.reader.onload=function(Te){be.fileBuffer=ae.from(new Uint8Array(Te.target.result)),be.file=null,be.readFileAndPush(Se)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(Se)};function me(ge){return ge.arrayBuffer?ge.arrayBuffer():new Promise(function(Se,ve){var be=new FileReader;be.onload=function(Pe){Se(Pe.target.result)},be.onerror=function(Pe){ve(Pe)},be.readAsArrayBuffer(ge)})}te._createBuffer=function(){var ge=(0,ce.default)(se.default.mark(function ve(be,Pe,Te){var _e,je;return se.default.wrap(function(Ie){for(;;)switch(Ie.prev=Ie.next){case 0:if(!(a(be)||E(be))){Ie.next=8;break}return _e=be.slice(Pe,Te),Ie.next=4,me(_e);case 4:return je=Ie.sent,Ie.abrupt("return",ae.from(je));case 8:if(!ee(be)){Ie.next=12;break}return Ie.abrupt("return",be.subarray(Pe,Te));case 12:throw new Error("_createBuffer requires File/Blob/Buffer.");case 13:case"end":return Ie.stop()}},ve)}));function Se(ve,be,Pe){return ge.apply(this,arguments)}return Se}(),te._getPartSize=function(Se,ve){var be=1e4,Pe=1*1024*1024;ve||(ve=Pe);var Te=Math.ceil(Se/be);return ve<Te&&(ve=Te,console.warn("partSize has been set to ".concat(ve,", because the partSize you provided causes partNumber to be greater than 10,000"))),ve},te._divideParts=function(Se,ve){for(var be=Math.ceil(Se/ve),Pe=[],Te=0;Te<be;Te++){var _e=ve*Te,je=Math.min(_e+ve,Se);Pe.push({start:_e,end:je})}return Pe}}).call(this)}).call(this,x("buffer").Buffer)},{"../common/utils/isBlob":64,"../common/utils/isBuffer":65,"../common/utils/isFile":67,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,buffer:90,"copy-to":94,"core-js/modules/es.array-buffer.slice.js":271,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.filter.js":274,"core-js/modules/es.array.find.js":275,"core-js/modules/es.array.from.js":276,"core-js/modules/es.array.iterator.js":278,"core-js/modules/es.array.map.js":280,"core-js/modules/es.array.slice.js":281,"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.to-string.js":301,"core-js/modules/es.string.iterator.js":303,"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,mime:374,path:378,stream:398,util:419}],5:[function(x,pe,de){"use strict";var ae=x("@babel/runtime/helpers/interopRequireDefault");x("core-js/modules/es.function.name.js"),x("core-js/modules/es.object.to-string.js"),x("core-js/modules/es.regexp.to-string.js"),x("core-js/modules/es.array.map.js"),x("core-js/modules/es.number.constructor.js"),x("core-js/modules/es.object.assign.js"),x("core-js/modules/es.regexp.exec.js"),x("core-js/modules/es.string.replace.js"),x("core-js/modules/web.dom-collections.for-each.js"),x("core-js/modules/es.object.keys.js"),x("core-js/modules/es.promise.js");var ne=ae(x("@babel/runtime/regenerator")),se=ae(x("@babel/runtime/helpers/asyncToGenerator")),ce=x("fs"),ue=x("copy-to"),ie=x("path"),oe=x("mime"),re=x("../common/callback"),z=x("merge-descriptors"),a=x("../common/utils/isBlob"),y=a.isBlob,E=x("../common/utils/isFile"),b=E.isFile,ee=x("../common/utils/isBuffer"),te=ee.isBuffer,le=x("../common/utils/obj2xml"),fe=le.obj2xml,he=de;he.append=function(){var me=(0,se.default)(ne.default.mark(function Se(ve,be,Pe){var Te;return ne.default.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:return Pe=Pe||{},Pe.position===void 0&&(Pe.position="0"),Pe.subres={append:"",position:Pe.position},Pe.method="POST",je.next=6,this.put(ve,be,Pe);case 6:return Te=je.sent,Te.nextAppendPosition=Te.res.headers["x-oss-next-append-position"],je.abrupt("return",Te);case 9:case"end":return je.stop()}},Se,this)}));function ge(Se,ve,be){return me.apply(this,arguments)}return ge}(),he.put=function(){var me=(0,se.default)(ne.default.mark(function Se(ve,be,Pe){var Te,_e,je,Ce,Ie;return ne.default.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:if(Pe=Pe||{},Pe.disabledMD5=Pe.disabledMD5===void 0?!0:!!Pe.disabledMD5,Pe.headers=Pe.headers||{},ve=this._objectName(ve),!te(be)){$e.next=8;break}Te=be,$e.next=19;break;case 8:if(!(y(be)||b(be))){$e.next=18;break}return Pe.mime||(b(be)?Pe.mime=oe.getType(ie.extname(be.name)):Pe.mime=be.type),$e.next=12,this._createBuffer(be,0,be.size);case 12:return Te=$e.sent,$e.next=15,this._getFileSize(be);case 15:Pe.contentLength=$e.sent,$e.next=19;break;case 18:throw new TypeError("Must provide Buffer/Blob/File for put.");case 19:return this._convertMetaToHeaders(Pe.meta,Pe.headers),_e=Pe.method||"PUT",je=this._objectRequestParams(_e,ve,Pe),re.encodeCallback(je,Pe),je.mime=Pe.mime,je.disabledMD5=Pe.disabledMD5,je.content=Te,je.successStatuses=[200],$e.next=29,this.request(je);case 29:return Ce=$e.sent,Ie={name:ve,url:this._objectUrl(ve),res:Ce.res},je.headers&&je.headers["x-oss-callback"]&&(Ie.data=JSON.parse(Ce.data.toString())),$e.abrupt("return",Ie);case 33:case"end":return $e.stop()}},Se,this)}));function ge(Se,ve,be){return me.apply(this,arguments)}return ge}(),he.putStream=function(){var me=(0,se.default)(ne.default.mark(function Se(ve,be,Pe){var Te,_e,je,Ce;return ne.default.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:return Pe=Pe||{},Pe.headers=Pe.headers||{},ve=this._objectName(ve),Pe.contentLength?Pe.headers["Content-Length"]=Pe.contentLength:Pe.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(Pe.meta,Pe.headers),Te=Pe.method||"PUT",_e=this._objectRequestParams(Te,ve,Pe),re.encodeCallback(_e,Pe),_e.mime=Pe.mime,_e.stream=be,_e.successStatuses=[200],ke.next=13,this.request(_e);case 13:return je=ke.sent,Ce={name:ve,url:this._objectUrl(ve),res:je.res},_e.headers&&_e.headers["x-oss-callback"]&&(Ce.data=JSON.parse(je.data.toString())),ke.abrupt("return",Ce);case 17:case"end":return ke.stop()}},Se,this)}));function ge(Se,ve,be){return me.apply(this,arguments)}return ge}(),z(he,x("../common/object/copyObject")),z(he,x("../common/object/getObjectTagging")),z(he,x("../common/object/putObjectTagging")),z(he,x("../common/object/deleteObjectTagging")),z(he,x("../common/image")),z(he,x("../common/object/getBucketVersions")),z(he,x("../common/object/getACL")),z(he,x("../common/object/putACL")),z(he,x("../common/object/head")),z(he,x("../common/object/delete")),z(he,x("../common/object/get")),z(he,x("../common/object/putSymlink")),z(he,x("../common/object/getSymlink")),z(he,x("../common/object/deleteMulti")),z(he,x("../common/object/getObjectMeta")),z(he,x("../common/object/getObjectUrl")),z(he,x("../common/object/generateObjectUrl")),z(he,x("../common/object/signatureUrl")),z(he,x("../common/object/asyncSignatureUrl")),he.putMeta=function(){var me=(0,se.default)(ne.default.mark(function Se(ve,be,Pe){var Te;return ne.default.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:return je.next=2,this.copy(ve,ve,{meta:be||{},timeout:Pe&&Pe.timeout,ctx:Pe&&Pe.ctx});case 2:return Te=je.sent,je.abrupt("return",Te);case 4:case"end":return je.stop()}},Se,this)}));function ge(Se,ve,be){return me.apply(this,arguments)}return ge}(),he.list=function(){var me=(0,se.default)(ne.default.mark(function Se(ve,be){var Pe,Te,_e,je,Ce;return ne.default.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:return Pe=this._objectRequestParams("GET","",be),Pe.query=ve,Pe.xmlResponse=!0,Pe.successStatuses=[200],ke.next=6,this.request(Pe);case 6:return Te=ke.sent,_e=Te.data.Contents||[],je=this,_e&&(Array.isArray(_e)||(_e=[_e]),_e=_e.map(function($e){return{name:$e.Key,url:je._objectUrl($e.Key),lastModified:$e.LastModified,etag:$e.ETag,type:$e.Type,size:Number($e.Size),storageClass:$e.StorageClass,owner:{id:$e.Owner.ID,displayName:$e.Owner.DisplayName}}})),Ce=Te.data.CommonPrefixes||null,Ce&&(Array.isArray(Ce)||(Ce=[Ce]),Ce=Ce.map(function($e){return $e.Prefix})),ke.abrupt("return",{res:Te.res,objects:_e,prefixes:Ce,nextMarker:Te.data.NextMarker||null,isTruncated:Te.data.IsTruncated==="true"});case 13:case"end":return ke.stop()}},Se,this)}));function ge(Se,ve){return me.apply(this,arguments)}return ge}(),he.listV2=function(){var me=(0,se.default)(ne.default.mark(function Se(ve){var be,Pe,Te,_e,je,Ce,Ie,ke=arguments;return ne.default.wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:return be=ke.length>1&&ke[1]!==void 0?ke[1]:{},Pe=ve["continuation-token"]||ve.continuationToken,Pe&&(be.subres=Object.assign({"continuation-token":Pe},be.subres)),Te=this._objectRequestParams("GET","",be),Te.query=Object.assign({"list-type":2},ve),delete Te.query["continuation-token"],delete Te.query.continuationToken,Te.xmlResponse=!0,Te.successStatuses=[200],Ne.next=11,this.request(Te);case 11:return _e=Ne.sent,je=_e.data.Contents||[],Ce=this,je&&(Array.isArray(je)||(je=[je]),je=je.map(function(nt){var qe=null;return nt.Owner&&(qe={id:nt.Owner.ID,displayName:nt.Owner.DisplayName}),{name:nt.Key,url:Ce._objectUrl(nt.Key),lastModified:nt.LastModified,etag:nt.ETag,type:nt.Type,size:Number(nt.Size),storageClass:nt.StorageClass,owner:qe}})),Ie=_e.data.CommonPrefixes||null,Ie&&(Array.isArray(Ie)||(Ie=[Ie]),Ie=Ie.map(function(nt){return nt.Prefix})),Ne.abrupt("return",{res:_e.res,objects:je,prefixes:Ie,isTruncated:_e.data.IsTruncated==="true",keyCount:+_e.data.KeyCount,continuationToken:_e.data.ContinuationToken||null,nextContinuationToken:_e.data.NextContinuationToken||null});case 18:case"end":return Ne.stop()}},Se,this)}));function ge(Se){return me.apply(this,arguments)}return ge}(),he.restore=function(){var me=(0,se.default)(ne.default.mark(function Se(ve){var be,Pe,Te,_e,je=arguments;return ne.default.wrap(function(Ie){for(;;)switch(Ie.prev=Ie.next){case 0:return be=je.length>1&&je[1]!==void 0?je[1]:{type:"Archive"},be=be||{},be.subres=Object.assign({restore:""},be.subres),be.versionId&&(be.subres.versionId=be.versionId),Pe=this._objectRequestParams("POST",ve,be),be.type==="ColdArchive"&&(Te={RestoreRequest:{Days:be.Days?be.Days:2,JobParameters:{Tier:be.JobParameters?be.JobParameters:"Standard"}}},Pe.content=fe(Te,{headers:!0}),Pe.mime="xml"),Pe.successStatuses=[202],Ie.next=9,this.request(Pe);case 9:return _e=Ie.sent,Ie.abrupt("return",{res:_e.res});case 11:case"end":return Ie.stop()}},Se,this)}));function ge(Se){return me.apply(this,arguments)}return ge}(),he._objectUrl=function(ge){return this._getReqUrl({bucket:this.options.bucket,object:ge})},he._objectRequestParams=function(ge,Se,ve){if(!this.options.bucket&&!this.options.cname)throw new Error("Please create a bucket first");ve=ve||{},Se=this._objectName(Se);var be={object:Se,bucket:this.options.bucket,method:ge,subres:ve&&ve.subres,timeout:ve&&ve.timeout,ctx:ve&&ve.ctx};return ve.headers&&(be.headers={},ue(ve.headers).to(be.headers)),be},he._objectName=function(ge){return ge.replace(/^\/+/,"")},he._convertMetaToHeaders=function(ge,Se){ge&&Object.keys(ge).forEach(function(ve){Se["x-oss-meta-".concat(ve)]=ge[ve]})},he._deleteFileSafe=function(ge){var Se=this;return new Promise(function(ve){ce.exists(ge,function(be){be?ce.unlink(ge,function(Pe){Pe&&Se.debug("unlink %j error: %s",ge,Pe,"error"),ve()}):ve()})})}},{"../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(x,pe,de){"use strict";de.version="6.18.1"},{}],7:[function(x,pe,de){"use strict";var ae=x("@babel/runtime/helpers/interopRequireDefault"),ne=ae(x("@babel/runtime/regenerator")),se=ae(x("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(de,"__esModule",{value:!0}),de.abortBucketWorm=void 0;var ce=x("../utils/checkBucketName");function ue(oe,re){return ie.apply(this,arguments)}function ie(){return ie=(0,se.default)(ne.default.mark(function oe(re,z){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",z),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)})),ie.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(x,pe,de){"use strict";var ae=x("@babel/runtime/helpers/interopRequireDefault"),ne=ae(x("@babel/runtime/regenerator")),se=ae(x("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(de,"__esModule",{value:!0}),de.completeBucketWorm=void 0;var ce=x("../utils/checkBucketName");function ue(oe,re,z){return ie.apply(this,arguments)}function ie(){return ie=(0,se.default)(ne.default.mark(function oe(re,z,a){var y,E;return ne.default.wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:return ce.checkBucketName(re),y=this._bucketRequestParams("POST",re,{wormId:z},a),ee.next=4,this.request(y);case 4:return E=ee.sent,ee.abrupt("return",{res:E.res,status:E.status});case 6:case"end":return ee.stop()}},oe,this)})),ie.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(x,pe,de){"use strict";var ae=x("@babel/runtime/helpers/interopRequireDefault"),ne=ae(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.assign.js");var se=ae(x("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(de,"__esModule",{value:!0}),de.deleteBucketInventory=void 0;var ce=x("../utils/checkBucketName");function ue(oe,re){return ie.apply(this,arguments)}function ie(){return ie=(0,se.default)(ne.default.mark(function oe(re,z){var a,y,E,b,ee=arguments;return ne.default.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:return a=ee.length>2&&ee[2]!==void 0?ee[2]:{},y=Object.assign({inventory:"",inventoryId:z},a.subres),ce.checkBucketName(re),E=this._bucketRequestParams("DELETE",re,y,a),E.successStatuses=[204],le.next=7,this.request(E);case 7:return b=le.sent,le.abrupt("return",{status:b.status,res:b.res});case 9:case"end":return le.stop()}},oe,this)})),ie.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(x,pe,de){"use strict";var ae=x("@babel/runtime/helpers/interopRequireDefault"),ne=ae(x("@babel/runtime/regenerator")),se=ae(x("@babel/runtime/helpers/asyncToGenerator")),ce=x("../utils/checkBucketName"),ue=ce.checkBucketName,ie=de;ie.deleteBucketLifecycle=function(){var oe=(0,se.default)(ne.default.mark(function z(a,y){var E,b;return ne.default.wrap(function(te){for(;;)switch(te.prev=te.next){case 0:return ue(a),E=this._bucketRequestParams("DELETE",a,"lifecycle",y),E.successStatuses=[204],te.next=5,this.request(E);case 5:return b=te.sent,te.abrupt("return",{res:b.res});case 7:case"end":return te.stop()}},z,this)}));function re(z,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(x,pe,de){"use strict";var ae=x("@babel/runtime/helpers/interopRequireDefault"),ne=ae(x("@babel/runtime/regenerator")),se=ae(x("@babel/runtime/helpers/asyncToGenerator")),ce=x("../utils/checkBucketName"),ue=ce.checkBucketName,ie=de;ie.deleteBucketWebsite=function(){var oe=(0,se.default)(ne.default.mark(function z(a,y){var E,b;return ne.default.wrap(function(te){for(;;)switch(te.prev=te.next){case 0:return ue(a),E=this._bucketRequestParams("DELETE",a,"website",y),E.successStatuses=[204],te.next=5,this.request(E);case 5:return b=te.sent,te.abrupt("return",{res:b.res});case 7:case"end":return te.stop()}},z,this)}));function re(z,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(x,pe,de){"use strict";var ae=x("@babel/runtime/helpers/interopRequireDefault"),ne=ae(x("@babel/runtime/regenerator")),se=ae(x("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(de,"__esModule",{value:!0}),de.extendBucketWorm=void 0;var ce=x("../utils/checkBucketName"),ue=x("../utils/obj2xml");function ie(re,z,a,y){return oe.apply(this,arguments)}function oe(){return oe=(0,se.default)(ne.default.mark(function re(z,a,y,E){var b,ee,te;return ne.default.wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:return ce.checkBucketName(z),b=this._bucketRequestParams("POST",z,{wormExtend:"",wormId:a},E),ee={ExtendWormConfiguration:{RetentionPeriodInDays:y}},b.mime="xml",b.content=ue.obj2xml(ee,{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=ie},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],13:[function(x,pe,de){"use strict";var ae=x("@babel/runtime/helpers/interopRequireDefault"),ne=ae(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.assign.js");var se=ae(x("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(de,"__esModule",{value:!0}),de.getBucketInventory=void 0;var ce=x("../utils/checkBucketName"),ue=x("../utils/formatInventoryConfig");function ie(re,z){return oe.apply(this,arguments)}function oe(){return oe=(0,se.default)(ne.default.mark(function re(z,a){var y,E,b,ee,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]:{},E=Object.assign({inventory:"",inventoryId:a},y.subres),ce.checkBucketName(z),b=this._bucketRequestParams("GET",z,E,y),b.successStatuses=[200],b.xmlResponse=!0,fe.next=8,this.request(b);case 8:return ee=fe.sent,fe.abrupt("return",{status:ee.status,res:ee.res,inventory:ue.formatInventoryConfig(ee.data)});case 10:case"end":return fe.stop()}},re,this)})),oe.apply(this,arguments)}de.getBucketInventory=ie},{"../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(x,pe,de){"use strict";var ae=x("@babel/runtime/helpers/interopRequireDefault"),ne=ae(x("@babel/runtime/regenerator"));x("core-js/modules/es.array.map.js");var se=ae(x("@babel/runtime/helpers/asyncToGenerator")),ce=x("../utils/checkBucketName"),ue=ce.checkBucketName,ie=x("../utils/isArray"),oe=ie.isArray,re=x("../utils/formatObjKey"),z=re.formatObjKey,a=de;a.getBucketLifecycle=function(){var y=(0,se.default)(ne.default.mark(function b(ee,te){var le,fe,he;return ne.default.wrap(function(ge){for(;;)switch(ge.prev=ge.next){case 0:return ue(ee),le=this._bucketRequestParams("GET",ee,"lifecycle",te),le.successStatuses=[200],le.xmlResponse=!0,ge.next=6,this.request(le);case 6:return fe=ge.sent,he=fe.data.Rule||null,he&&(oe(he)||(he=[he]),he=he.map(function(Se){return Se.ID&&(Se.id=Se.ID,delete Se.ID),Se.Tag&&!oe(Se.Tag)&&(Se.Tag=[Se.Tag]),z(Se,"firstLowerCase")})),ge.abrupt("return",{rules:he,res:fe.res});case 10:case"end":return ge.stop()}},b,this)}));function E(b,ee){return y.apply(this,arguments)}return E}()},{"../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(x,pe,de){"use strict";var ae=x("@babel/runtime/helpers/interopRequireDefault"),ne=ae(x("@babel/runtime/regenerator")),se=ae(x("@babel/runtime/helpers/asyncToGenerator")),ce=x("../utils/checkBucketName"),ue=ce.checkBucketName,ie=de;ie.getBucketVersioning=function(){var oe=(0,se.default)(ne.default.mark(function z(a,y){var E,b,ee;return ne.default.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:return ue(a),E=this._bucketRequestParams("GET",a,"versioning",y),E.xmlResponse=!0,E.successStatuses=[200],le.next=6,this.request(E);case 6:return b=le.sent,ee=b.data.Status,le.abrupt("return",{status:b.status,versionStatus:ee,res:b.res});case 9:case"end":return le.stop()}},z,this)}));function re(z,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(x,pe,de){"use strict";var ae=x("@babel/runtime/helpers/interopRequireDefault"),ne=ae(x("@babel/runtime/regenerator")),se=ae(x("@babel/runtime/helpers/asyncToGenerator")),ce=x("../utils/checkBucketName"),ue=ce.checkBucketName,ie=x("../utils/isObject"),oe=ie.isObject,re=de;re.getBucketWebsite=function(){var z=(0,se.default)(ne.default.mark(function y(E,b){var ee,te,le;return ne.default.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return ue(E),ee=this._bucketRequestParams("GET",E,"website",b),ee.successStatuses=[200],ee.xmlResponse=!0,he.next=6,this.request(ee);case 6:return te=he.sent,le=[],te.data.RoutingRules&&te.data.RoutingRules.RoutingRule&&(oe(te.data.RoutingRules.RoutingRule)?le=[te.data.RoutingRules.RoutingRule]:le=te.data.RoutingRules.RoutingRule),he.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 he.stop()}},y,this)}));function a(y,E){return z.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(x,pe,de){"use strict";var ae=x("@babel/runtime/helpers/interopRequireDefault"),ne=ae(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.assign.js");var se=ae(x("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(de,"__esModule",{value:!0}),de.getBucketWorm=void 0;var ce=x("../utils/checkBucketName"),ue=x("../utils/dataFix");function ie(re,z){return oe.apply(this,arguments)}function oe(){return oe=(0,se.default)(ne.default.mark(function re(z,a){var y,E;return ne.default.wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:return ce.checkBucketName(z),y=this._bucketRequestParams("GET",z,"worm",a),y.successStatuses=[200],y.xmlResponse=!0,ee.next=6,this.request(y);case 6:return E=ee.sent,ue.dataFix(E.data,{lowerFirst:!0,rename:{RetentionPeriodInDays:"days"}}),ee.abrupt("return",Object.assign(Object.assign({},E.data),{res:E.res,status:E.status}));case 9:case"end":return ee.stop()}},re,this)})),oe.apply(this,arguments)}de.getBucketWorm=ie},{"../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(x,pe,de){"use strict";var ae=x("@babel/runtime/helpers/interopRequireDefault"),ne=ae(x("@babel/runtime/regenerator")),se=ae(x("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(de,"__esModule",{value:!0}),de.initiateBucketWorm=void 0;var ce=x("../utils/obj2xml"),ue=x("../utils/checkBucketName");function ie(re,z,a){return oe.apply(this,arguments)}function oe(){return oe=(0,se.default)(ne.default.mark(function re(z,a,y){var E,b,ee;return ne.default.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:return ue.checkBucketName(z),E=this._bucketRequestParams("POST",z,"worm",y),b={InitiateWormConfiguration:{RetentionPeriodInDays:a}},E.mime="xml",E.content=ce.obj2xml(b,{headers:!0}),E.successStatuses=[200],le.next=8,this.request(E);case 8:return ee=le.sent,le.abrupt("return",{res:ee.res,wormId:ee.res.headers["x-oss-worm-id"],status:ee.status});case 10:case"end":return le.stop()}},re,this)})),oe.apply(this,arguments)}de.initiateBucketWorm=ie},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],19:[function(x,pe,de){"use strict";var ae=x("@babel/runtime/helpers/interopRequireDefault"),ne=ae(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.assign.js");var se=ae(x("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(de,"__esModule",{value:!0}),de.listBucketInventory=void 0;var ce=x("../utils/checkBucketName"),ue=x("../utils/formatInventoryConfig");function ie(re){return oe.apply(this,arguments)}function oe(){return oe=(0,se.default)(ne.default.mark(function re(z){var a,y,E,b,ee,te,le,fe,he=arguments;return ne.default.wrap(function(ge){for(;;)switch(ge.prev=ge.next){case 0:return a=he.length>1&&he[1]!==void 0?he[1]:{},y=a.continuationToken,E=Object.assign({inventory:""},y&&{"continuation-token":y},a.subres),ce.checkBucketName(z),b=this._bucketRequestParams("GET",z,E,a),b.successStatuses=[200],b.xmlResponse=!0,ge.next=9,this.request(b);case 9:return ee=ge.sent,te=ee.data,le=ee.res,fe=ee.status,ge.abrupt("return",{isTruncated:te.IsTruncated==="true",nextContinuationToken:te.NextContinuationToken,inventoryList:ue.formatInventoryConfig(te.InventoryConfiguration,!0),status:fe,res:le});case 12:case"end":return ge.stop()}},re,this)})),oe.apply(this,arguments)}de.listBucketInventory=ie},{"../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(x,pe,de){"use strict";var ae=x("@babel/runtime/helpers/interopRequireDefault"),ne=ae(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.assign.js"),x("core-js/modules/es.array.concat.js");var se=ae(x("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(de,"__esModule",{value:!0}),de.putBucketInventory=void 0;var ce=x("../utils/checkBucketName"),ue=x("../utils/obj2xml");function ie(re,z){return oe.apply(this,arguments)}function oe(){return oe=(0,se.default)(ne.default.mark(function re(z,a){var y,E,b,ee,te,le,fe,he,me,ge,Se,ve=arguments;return ne.default.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:return y=ve.length>2&&ve[2]!==void 0?ve[2]:{},E=Object.assign({inventory:"",inventoryId:a.id},y.subres),ce.checkBucketName(z),b=a.OSSBucketDestination,ee=a.optionalFields,te=a.includedObjectVersions,le="acs:oss:::",fe="acs:ram::".concat(b.accountId,":role/"),he={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:(ee==null?void 0:ee.field)||[]}}},me=ue.obj2xml(he,{headers:!0,firstUpperCase:!0}),ge=this._bucketRequestParams("PUT",z,E,y),ge.successStatuses=[200],ge.mime="xml",ge.content=me,Pe.next=14,this.request(ge);case 14:return Se=Pe.sent,Pe.abrupt("return",{status:Se.status,res:Se.res});case 16:case"end":return Pe.stop()}},re,this)})),oe.apply(this,arguments)}de.putBucketInventory=ie},{"../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(x,pe,de){"use strict";var ae=x("@babel/runtime/helpers/interopRequireDefault"),ne=ae(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.to-string.js"),x("core-js/modules/web.dom-collections.for-each.js"),x("core-js/modules/es.regexp.exec.js"),x("core-js/modules/es.array.includes.js");var se=ae(x("@babel/runtime/helpers/asyncToGenerator")),ce=x("../utils/checkBucketName"),ue=ce.checkBucketName,ie=x("../utils/isArray"),oe=ie.isArray,re=x("../utils/deepCopy"),z=re.deepCopy,a=x("../utils/isObject"),y=a.isObject,E=x("../utils/obj2xml"),b=E.obj2xml,ee=x("../utils/checkObjectTag"),te=ee.checkObjectTag,le=x("../utils/getStrBytesCount"),fe=le.getStrBytesCount,he=de;he.putBucketLifecycle=function(){var be=(0,se.default)(ne.default.mark(function Te(_e,je,Ce){var Ie,ke,$e,Ne,nt;return ne.default.wrap(function(Je){for(;;)switch(Je.prev=Je.next){case 0:if(ue(_e),oe(je)){Je.next=3;break}throw new Error("rules must be Array");case 3:return Ie=this._bucketRequestParams("PUT",_e,"lifecycle",Ce),ke=[],$e={LifecycleConfiguration:{Rule:ke}},je.forEach(function(Ye){me(Ye),ve(Ye),Ye.id&&(Ye.ID=Ye.id,delete Ye.id),ke.push(Ye)}),Ne=b($e,{headers:!0,firstUpperCase:!0}),Ie.content=Ne,Ie.mime="xml",Ie.successStatuses=[200],Je.next=13,this.request(Ie);case 13:return nt=Je.sent,Je.abrupt("return",{res:nt.res});case 15:case"end":return Je.stop()}},Te,this)}));function Pe(Te,_e,je){return be.apply(this,arguments)}return Pe}();function me(be){be.days&&(be.expiration={days:be.days}),be.date&&(be.expiration={createdBeforeDate:be.date})}function ge(be,Pe){var Te=be.days,_e=be.createdBeforeDate;if(!Te&&!_e)throw new Error("".concat(Pe," must includes days or createdBeforeDate"));if(Te&&!/^[1-9][0-9]*$/.test(Te))throw new Error("days must be a positive integer");if(_e&&!/\d{4}-\d{2}-\d{2}T00:00:00.000Z/.test(_e))throw new Error("createdBeforeDate must be date and conform to iso8601 format")}function Se(be){if(!oe(be)&&!y(be))throw new Error("tag must be Object or Array");be=y(be)?[be]:be;var Pe={},Te=z(be);Te.forEach(function(_e){Pe[_e.key]=_e.value}),te(Pe)}function ve(be){if(be.id&&fe(be.id)>255)throw new Error("ID is composed of 255 bytes at most");if(be.prefix===void 0)throw new Error("Rule must includes prefix");if(!["Enabled","Disabled"].includes(be.status))throw new Error("Status must be Enabled or Disabled");if(be.transition){if(!["IA","Archive"].includes(be.transition.storageClass))throw new Error("StorageClass must be IA or Archive");ge(be.transition,"Transition")}if(be.expiration){if(!be.expiration.expiredObjectDeleteMarker)ge(be.expiration,"Expiration");else if(be.expiration.days||be.expiration.createdBeforeDate)throw new Error("expiredObjectDeleteMarker cannot be used with days or createdBeforeDate")}if(be.abortMultipartUpload&&ge(be.abortMultipartUpload,"AbortMultipartUpload"),!be.expiration&&!be.abortMultipartUpload&&!be.transition&&!be.noncurrentVersionTransition)throw new Error("Rule must includes expiration or abortMultipartUpload or transition or noncurrentVersionTransition");if(be.tag){if(be.abortMultipartUpload)throw new Error("Tag cannot be used with abortMultipartUpload");Se(be.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(x,pe,de){"use strict";var ae=x("@babel/runtime/helpers/interopRequireDefault"),ne=ae(x("@babel/runtime/regenerator"));x("core-js/modules/es.array.includes.js");var se=ae(x("@babel/runtime/helpers/asyncToGenerator")),ce=x("../utils/checkBucketName"),ue=ce.checkBucketName,ie=x("../utils/obj2xml"),oe=ie.obj2xml,re=de;re.putBucketVersioning=function(){var z=(0,se.default)(ne.default.mark(function y(E,b){var ee,te,le,fe,he=arguments;return ne.default.wrap(function(ge){for(;;)switch(ge.prev=ge.next){case 0:if(ee=he.length>2&&he[2]!==void 0?he[2]:{},ue(E),["Enabled","Suspended"].includes(b)){ge.next=4;break}throw new Error("status must be Enabled or Suspended");case 4:return te=this._bucketRequestParams("PUT",E,"versioning",ee),le={VersioningConfiguration:{Status:b}},te.mime="xml",te.content=oe(le,{headers:!0}),ge.next=10,this.request(te);case 10:return fe=ge.sent,ge.abrupt("return",{res:fe.res,status:fe.status});case 12:case"end":return ge.stop()}},y,this)}));function a(y,E){return z.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(x,pe,de){"use strict";var ae=x("@babel/runtime/helpers/interopRequireDefault"),ne=ae(x("@babel/runtime/regenerator")),se=ae(x("@babel/runtime/helpers/asyncToGenerator")),ce=x("../utils/checkBucketName"),ue=ce.checkBucketName,ie=x("../utils/obj2xml"),oe=ie.obj2xml,re=x("../utils/isArray"),z=re.isArray,a=de;a.putBucketWebsite=function(){var y=(0,se.default)(ne.default.mark(function b(ee){var te,le,fe,he,me,ge,Se,ve=arguments;return ne.default.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:if(te=ve.length>1&&ve[1]!==void 0?ve[1]:{},le=ve.length>2?ve[2]:void 0,ue(ee),fe=this._bucketRequestParams("PUT",ee,"website",le),he={Suffix:te.index||"index.html"},me={IndexDocument:he},ge={WebsiteConfiguration:me},te.supportSubDir&&(he.SupportSubDir=te.supportSubDir),te.type&&(he.Type=te.type),te.error&&(me.ErrorDocument={Key:te.error}),te.routingRules===void 0){Pe.next=14;break}if(z(te.routingRules)){Pe.next=13;break}throw new Error("RoutingRules must be Array");case 13:me.RoutingRules={RoutingRule:te.routingRules};case 14:return ge=oe(ge),fe.content=ge,fe.mime="xml",fe.successStatuses=[200],Pe.next=20,this.request(fe);case 20:return Se=Pe.sent,Pe.abrupt("return",{res:Se.res});case 22:case"end":return Pe.stop()}},b,this)}));function E(b){return y.apply(this,arguments)}return E}()},{"../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(x,pe,de){(function(ae){(function(){"use strict";x("core-js/modules/es.object.to-string.js"),x("core-js/modules/es.regexp.to-string.js"),x("core-js/modules/web.dom-collections.for-each.js"),x("core-js/modules/es.object.keys.js"),de.encodeCallback=function(se,ce){if(se.headers=se.headers||{},!Object.prototype.hasOwnProperty.call(se.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 ie=ae.from(JSON.stringify(ue)).toString("base64");if(se.headers["x-oss-callback"]=ie,ce.callback.customValue){var oe={};Object.keys(ce.callback.customValue).forEach(function(re){oe["x:".concat(re)]=ce.callback.customValue[re].toString()}),se.headers["x-oss-callback-var"]=ae.from(JSON.stringify(oe)).toString("base64")}}}}).call(this)}).call(this,x("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(x,pe,de){"use strict";x("core-js/modules/es.array.concat.js"),x("core-js/modules/es.regexp.exec.js"),x("core-js/modules/es.string.replace.js"),x("core-js/modules/es.object.to-string.js"),x("core-js/modules/web.dom-collections.for-each.js");var ae=function(z){return z&&z.__esModule?z:{default:z}};Object.defineProperty(de,"__esModule",{value:!0}),de.getReqUrl=void 0;var ne=ae(x("copy-to")),se=ae(x("url")),ce=ae(x("merge-descriptors")),ue=ae(x("is-type-of")),ie=x("../utils/isIP"),oe=x("../utils/checkConfigValid");function re(z){var a={},y=this.options.cname;oe.checkConfigValid(this.options.endpoint,"endpoint"),ne.default(this.options.endpoint,!1).to(a),z.bucket&&!y&&!ie.isIP(a.hostname)&&!this.options.sldEnable&&(a.host="".concat(z.bucket,".").concat(a.host));var E="/";z.bucket&&this.options.sldEnable&&(E+="".concat(z.bucket,"/")),z.object&&(E+=this._escape(z.object).replace(/\+/g,"%2B")),a.pathname=E;var b={};if(z.query&&ce.default(b,z.query),z.subres){var ee={};ue.default.string(z.subres)?ee[z.subres]="":ue.default.array(z.subres)?z.subres.forEach(function(te){ee[te]=""}):ee=z.subres,ce.default(b,ee)}return a.query=b,se.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(x,pe,de){"use strict";x("core-js/modules/es.array.concat.js"),x("core-js/modules/es.object.assign.js"),x("core-js/modules/es.string.trim.js");var ae=x("humanize-ms"),ne=x("url"),se=x("../utils/checkBucketName"),ce=se.checkBucketName,ue=x("../utils/setRegion"),ie=ue.setRegion,oe=x("../utils/checkConfigValid"),re=oe.checkConfigValid;function z(a,y){re(a,"endpoint");var E=ne.parse(a);if(E.protocol||(E=ne.parse("http".concat(y?"s":"","://").concat(a))),E.protocol!=="http:"&&E.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return E}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=ae(y.timeout)),y.endpoint)y.endpoint=z(y.endpoint,y.secure);else if(y.region)y.endpoint=ie(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(x,pe,de){"use strict";var ae=x("merge-descriptors"),ne=de;ae(ne,x("./processObjectSave"))},{"./processObjectSave":28,"merge-descriptors":372}],28:[function(x,pe,de){"use strict";var ae=x("@babel/runtime/helpers/interopRequireDefault"),ne=ae(x("@babel/runtime/regenerator"));x("core-js/modules/es.array.concat.js");var se=ae(x("@babel/runtime/helpers/asyncToGenerator")),ce=x("../utils/checkBucketName"),ue=ce.checkBucketName,ie=x("querystring"),oe=x("js-base64"),re=oe.Base64.encode,z=de;z.processObjectSave=function(){var y=(0,se.default)(ne.default.mark(function b(ee,te,le,fe){var he,me,ge,Se;return ne.default.wrap(function(be){for(;;)switch(be.prev=be.next){case 0:return a(ee,"sourceObject"),a(te,"targetObject"),a(le,"process"),te=this._objectName(te),fe&&ue(fe),he=this._objectRequestParams("POST",ee,{subres:"x-oss-process"}),me=fe?",b_".concat(re(fe)):"",te=re(te),ge={"x-oss-process":"".concat(le,"|sys/saveas,o_").concat(te).concat(me)},he.content=ie.stringify(ge),be.next=12,this.request(he);case 12:return Se=be.sent,be.abrupt("return",{res:Se.res,status:Se.res.status});case 14:case"end":return be.stop()}},b,this)}));function E(b,ee,te,le){return y.apply(this,arguments)}return E}();function a(y,E){if(!y)throw new Error("".concat(E," is required"));if(typeof y!="string")throw new Error("".concat(E," 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(x,pe,de){"use strict";var ae=x("@babel/runtime/helpers/interopRequireDefault"),ne=ae(x("@babel/runtime/regenerator"));x("core-js/modules/es.array.concat.js"),x("core-js/modules/es.function.name.js"),x("core-js/modules/es.object.to-string.js"),x("core-js/modules/es.promise.js"),x("core-js/modules/es.array.from.js"),x("core-js/modules/es.string.iterator.js"),x("core-js/modules/es.array.map.js"),x("core-js/modules/es.array.filter.js"),x("core-js/modules/es.array.find.js"),x("core-js/modules/es.regexp.to-string.js");var se=ae(x("@babel/runtime/helpers/asyncToGenerator")),ce=x("debug")("ali-oss:multipart-copy"),ue=x("copy-to"),ie=de;ie.uploadPartCopy=function(){var oe=(0,se.default)(ne.default.mark(function z(a,y,E,b,ee){var te,le,fe,he,me,ge=arguments;return ne.default.wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:return te=ge.length>5&&ge[5]!==void 0?ge[5]:{},te.headers=te.headers||{},le=te.versionId||te.subres&&te.subres.versionId||null,le?fe="/".concat(ee.sourceBucketName,"/").concat(encodeURIComponent(ee.sourceKey),"?versionId=").concat(le):fe="/".concat(ee.sourceBucketName,"/").concat(encodeURIComponent(ee.sourceKey)),te.headers["x-oss-copy-source"]=fe,b&&(te.headers["x-oss-copy-source-range"]="bytes=".concat(b)),te.subres={partNumber:E,uploadId:y},he=this._objectRequestParams("PUT",a,te),he.mime=te.mime,he.successStatuses=[200],ve.next=12,this.request(he);case 12:return me=ve.sent,ve.abrupt("return",{name:a,etag:me.res.headers.etag,res:me.res});case 14:case"end":return ve.stop()}},z,this)}));function re(z,a,y,E,b){return oe.apply(this,arguments)}return re}(),ie.multipartUploadCopy=function(){var oe=(0,se.default)(ne.default.mark(function z(a,y){var E,b,ee,te,le,fe,he,me,ge,Se,ve,be,Pe=arguments;return ne.default.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:return E=Pe.length>2&&Pe[2]!==void 0?Pe[2]:{},this.resetCancelFlag(),b=E.versionId,ee=b===void 0?null:b,te={versionId:ee},_e.next=6,this._getObjectMeta(y.sourceBucketName,y.sourceKey,te);case 6:if(le=_e.sent,fe=le.res.headers["content-length"],y.startOffset=y.startOffset||0,y.endOffset=y.endOffset||fe,!(E.checkpoint&&E.checkpoint.uploadId)){_e.next=14;break}return _e.next=13,this._resumeMultipartCopy(E.checkpoint,y,E);case 13:return _e.abrupt("return",_e.sent);case 14:if(he=102400,me=y.endOffset-y.startOffset,!(me<he)){_e.next=18;break}throw new Error("copySize must not be smaller than ".concat(he));case 18:if(!(E.partSize&&E.partSize<he)){_e.next=20;break}throw new Error("partSize must not be smaller than ".concat(he));case 20:return _e.next=22,this.initMultipartUpload(a,E);case 22:if(ge=_e.sent,Se=ge.uploadId,ve=this._getPartSize(me,E.partSize),be={name:a,copySize:me,partSize:ve,uploadId:Se,doneParts:[]},!(E&&E.progress)){_e.next=29;break}return _e.next=29,E.progress(0,be,ge.res);case 29:return _e.next=31,this._resumeMultipartCopy(be,y,E);case 31:return _e.abrupt("return",_e.sent);case 32:case"end":return _e.stop()}},z,this)}));function re(z,a){return oe.apply(this,arguments)}return re}(),ie._resumeMultipartCopy=function(){var oe=(0,se.default)(ne.default.mark(function z(a,y,E){var b,ee,te,le,fe,he,me,ge,Se,ve,be,Pe,Te,_e,je,Ce,Ie,ke,$e,Ne,nt;return ne.default.wrap(function(Je){for(;;)switch(Je.prev=Je.next){case 0:if(!this.isCancel()){Je.next=2;break}throw this._makeCancelEvent();case 2:if(b=E.versionId,ee=b===void 0?null:b,te={versionId:ee},le=a.copySize,fe=a.partSize,he=a.uploadId,me=a.doneParts,ge=a.name,Se=this._divideMultipartCopyParts(le,fe,y.startOffset),ve=Se.length,be={headers:{}},E.copyheaders&&ue(E.copyheaders).to(be.headers),ee&&ue(te).to(be),Pe=function(We,Fe,Ue){return new Promise(function(){var at=(0,se.default)(ne.default.mark(function Xe(ut,Ze){var ze,Re,it;return ne.default.wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:if(Be.prev=0,We.isCancel()){Be.next=22;break}return ze=Se[Fe-1],Re="".concat(ze.start,"-").concat(ze.end-1),Be.prev=4,Be.next=7,We.uploadPartCopy(ge,he,Fe,Re,Ue,be);case 7:it=Be.sent,Be.next=15;break;case 10:if(Be.prev=10,Be.t0=Be.catch(4),Be.t0.status!==404){Be.next=14;break}throw We._makeAbortEvent();case 14:throw Be.t0;case 15:if(We.isCancel()){Be.next=22;break}if(ce("content-range ".concat(it.res.headers["content-range"])),me.push({number:Fe,etag:it.res.headers.etag}),a.doneParts=me,!(E&&E.progress)){Be.next=22;break}return Be.next=22,E.progress(me.length/ve,a,it.res);case 22:ut(),Be.next=29;break;case 25:Be.prev=25,Be.t1=Be.catch(0),Be.t1.partNum=Fe,Ze(Be.t1);case 29:case"end":return Be.stop()}},Xe,null,[[0,25],[4,10]])}));return function(Xe,ut){return at.apply(this,arguments)}}())},Te=Array.from(new Array(ve),function(Ye,We){return We+1}),_e=me.map(function(Ye){return Ye.number}),je=Te.filter(function(Ye){return _e.indexOf(Ye)<0}),Ce=5,Ie=E.parallel||Ce,!(this.checkBrowserAndVersion("Internet Explorer","10")||Ie===1)){Je.next=28;break}ke=0;case 18:if(!(ke<je.length)){Je.next=26;break}if(!this.isCancel()){Je.next=21;break}throw this._makeCancelEvent();case 21:return Je.next=23,Pe(this,je[ke],y);case 23:ke++,Je.next=18;break;case 26:Je.next=40;break;case 28:return Je.next=30,this._parallelNode(je,Ie,Pe,y);case 30:if($e=Je.sent,Ne=$e.find(function(Ye){return Ye.name==="abort"}),!Ne){Je.next=34;break}throw Ne;case 34:if(!this.isCancel()){Je.next=36;break}throw this._makeCancelEvent();case 36:if(!($e&&$e.length>0)){Je.next=40;break}throw nt=$e[0],nt.message="Failed to copy some parts with error: ".concat(nt.toString()," part_num: ").concat(nt.partNum),nt;case 40:return Je.next=42,this.completeMultipartUpload(ge,he,me,E);case 42:return Je.abrupt("return",Je.sent);case 43:case"end":return Je.stop()}},z,this)}));function re(z,a,y){return oe.apply(this,arguments)}return re}(),ie._divideMultipartCopyParts=function(re,z,a){for(var y=Math.ceil(re/z),E=[],b=0;b<y;b++){var ee=z*b+a,te=Math.min(ee+z,re+a);E.push({start:ee,end:te})}return E},ie._getObjectMeta=function(){var oe=(0,se.default)(ne.default.mark(function z(a,y,E){var b,ee;return ne.default.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:return b=this.getBucket(),this.setBucket(a),le.next=4,this.head(y,E);case 4:return ee=le.sent,this.setBucket(b),le.abrupt("return",ee);case 7:case"end":return le.stop()}},z,this)}));function re(z,a,y){return oe.apply(this,arguments)}return re}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"copy-to":94,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.filter.js":274,"core-js/modules/es.array.find.js":275,"core-js/modules/es.array.from.js":276,"core-js/modules/es.array.map.js":280,"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.to-string.js":301,"core-js/modules/es.string.iterator.js":303,debug:465}],30:[function(x,pe,de){(function(ae){(function(){"use strict";var ne=x("@babel/runtime/helpers/interopRequireDefault"),se=ne(x("@babel/runtime/regenerator"));x("core-js/modules/es.array.map.js"),x("core-js/modules/es.array.filter.js"),x("core-js/modules/es.object.to-string.js"),x("core-js/modules/es.array.sort.js"),x("core-js/modules/es.array.concat.js"),x("core-js/modules/es.regexp.to-string.js");var ce=ne(x("@babel/runtime/helpers/asyncToGenerator")),ue=x("copy-to"),ie=x("./callback"),oe=x("./utils/deepCopy"),re=oe.deepCopyWith,z=x("./utils/isBuffer"),a=z.isBuffer,y=x("./utils/omit"),E=y.omit,b=de;b.listUploads=function(){var ee=(0,ce.default)(se.default.mark(function le(fe,he){var me,ge,Se,ve;return se.default.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:return he=he||{},me={},ue(he).to(me),me.subres="uploads",ge=this._objectRequestParams("GET","",me),ge.query=fe,ge.xmlResponse=!0,ge.successStatuses=[200],Pe.next=10,this.request(ge);case 10:return Se=Pe.sent,ve=Se.data.Upload||[],Array.isArray(ve)||(ve=[ve]),ve=ve.map(function(Te){return{name:Te.Key,uploadId:Te.UploadId,initiated:Te.Initiated}}),Pe.abrupt("return",{res:Se.res,uploads:ve,bucket:Se.data.Bucket,nextKeyMarker:Se.data.NextKeyMarker,nextUploadIdMarker:Se.data.NextUploadIdMarker,isTruncated:Se.data.IsTruncated==="true"});case 15:case"end":return Pe.stop()}},le,this)}));function te(le,fe){return ee.apply(this,arguments)}return te}(),b.listParts=function(){var ee=(0,ce.default)(se.default.mark(function le(fe,he,me,ge){var Se,ve,be;return se.default.wrap(function(Te){for(;;)switch(Te.prev=Te.next){case 0:return ge=ge||{},Se={},ue(ge).to(Se),Se.subres={uploadId:he},ve=this._objectRequestParams("GET",fe,Se),ve.query=me,ve.xmlResponse=!0,ve.successStatuses=[200],Te.next=10,this.request(ve);case 10:return be=Te.sent,Te.abrupt("return",{res:be.res,uploadId:be.data.UploadId,bucket:be.data.Bucket,name:be.data.Key,partNumberMarker:be.data.PartNumberMarker,nextPartNumberMarker:be.data.NextPartNumberMarker,maxParts:be.data.MaxParts,isTruncated:be.data.IsTruncated,parts:be.data.Part||[]});case 12:case"end":return Te.stop()}},le,this)}));function te(le,fe,he,me){return ee.apply(this,arguments)}return te}(),b.abortMultipartUpload=function(){var ee=(0,ce.default)(se.default.mark(function le(fe,he,me){var ge,Se,ve;return se.default.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:return this._stop(),me=me||{},ge={},ue(me).to(ge),ge.subres={uploadId:he},Se=this._objectRequestParams("DELETE",fe,ge),Se.successStatuses=[204],Pe.next=9,this.request(Se);case 9:return ve=Pe.sent,Pe.abrupt("return",{res:ve.res});case 11:case"end":return Pe.stop()}},le,this)}));function te(le,fe,he){return ee.apply(this,arguments)}return te}(),b.initMultipartUpload=function(){var ee=(0,ce.default)(se.default.mark(function le(fe,he){var me,ge,Se;return se.default.wrap(function(be){for(;;)switch(be.prev=be.next){case 0:return he=he||{},me={},ue(he).to(me),me.headers=me.headers||{},this._convertMetaToHeaders(he.meta,me.headers),me.subres="uploads",ge=this._objectRequestParams("POST",fe,me),ge.mime=he.mime,ge.xmlResponse=!0,ge.successStatuses=[200],be.next=12,this.request(ge);case 12:return Se=be.sent,be.abrupt("return",{res:Se.res,bucket:Se.data.Bucket,name:Se.data.Key,uploadId:Se.data.UploadId});case 14:case"end":return be.stop()}},le,this)}));function te(le,fe){return ee.apply(this,arguments)}return te}(),b.uploadPart=function(){var ee=(0,ce.default)(se.default.mark(function le(fe,he,me,ge,Se,ve,be){var Pe,Te;return se.default.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:if(Pe={size:ve-Se},Te=ae&&ae.browser,!Te){je.next=8;break}return je.next=5,this._createBuffer(ge,Se,ve);case 5:Pe.content=je.sent,je.next=11;break;case 8:return je.next=10,this._createStream(ge,Se,ve);case 10:Pe.stream=je.sent;case 11:return je.next=13,this._uploadPart(fe,he,me,Pe,be);case 13:return je.abrupt("return",je.sent);case 14:case"end":return je.stop()}},le,this)}));function te(le,fe,he,me,ge,Se,ve){return ee.apply(this,arguments)}return te}(),b.completeMultipartUpload=function(){var ee=(0,ce.default)(se.default.mark(function le(fe,he,me,ge){var Se,ve,be,Pe,Te,_e,je,Ce;return se.default.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:for(Se=me.concat().sort(function($e,Ne){return $e.number-Ne.number}).filter(function($e,Ne,nt){return!Ne||$e.number!==nt[Ne-1].number}),ve=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<CompleteMultipartUpload>
|
|
|
`,be=0;be<Se.length;be++)Pe=Se[be],ve+=`<Part>
|
|
|
`,ve+="<PartNumber>".concat(Pe.number,`</PartNumber>
|
|
|
`),ve+="<ETag>".concat(Pe.etag,`</ETag>
|
|
|
`),ve+=`</Part>
|
|
|
`;return ve+="</CompleteMultipartUpload>",ge=ge||{},Te={},Te=re(ge,function($e){if(a($e))return null}),Te.subres={uploadId:he},Te.headers=E(Te.headers,["x-oss-server-side-encryption","x-oss-storage-class"]),_e=this._objectRequestParams("POST",fe,Te),ie.encodeCallback(_e,Te),_e.mime="xml",_e.content=ve,_e.headers&&_e.headers["x-oss-callback"]||(_e.xmlResponse=!0),_e.successStatuses=[200],ke.next=17,this.request(_e);case 17:if(je=ke.sent,!ge.progress){ke.next=21;break}return ke.next=21,ge.progress(1,null,je.res);case 21:return Ce={res:je.res,bucket:_e.bucket,name:fe,etag:je.res.headers.etag},_e.headers&&_e.headers["x-oss-callback"]&&(Ce.data=JSON.parse(je.data.toString())),ke.abrupt("return",Ce);case 24:case"end":return ke.stop()}},le,this)}));function te(le,fe,he,me){return ee.apply(this,arguments)}return te}(),b._uploadPart=function(){var ee=(0,ce.default)(se.default.mark(function le(fe,he,me,ge,Se){var ve,be,Pe,Te;return se.default.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:return Se=Se||{},ve={},ue(Se).to(ve),ve.headers=ve.headers||{},ve.headers["Content-Length"]=ge.size,ve.headers=E(ve.headers,["x-oss-server-side-encryption"]),ve.subres={partNumber:me,uploadId:he},be=this._objectRequestParams("PUT",fe,ve),be.mime=ve.mime,Pe=ae&&ae.browser,Pe?be.content=ge.content:be.stream=ge.stream,be.successStatuses=[200],be.disabledMD5=Se.disabledMD5,je.next=15,this.request(be);case 15:if(Te=je.sent,Te.res.headers.etag){je.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 ge.stream&&(ge.stream=null,be.stream=null),je.abrupt("return",{name:fe,etag:Te.res.headers.etag,res:Te.res});case 20:case"end":return je.stop()}},le,this)}));function te(le,fe,he,me,ge){return ee.apply(this,arguments)}return te}()}).call(this)}).call(this,x("_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(x,pe,de){"use strict";var ae=x("@babel/runtime/helpers/interopRequireDefault"),ne=ae(x("@babel/runtime/regenerator")),se=ae(x("@babel/runtime/helpers/asyncToGenerator")),ce=x("url"),ue=x("utility"),ie=x("copy-to"),oe=x("../../common/signUtils"),re=x("../utils/isIP"),z=re.isIP,a=x("../utils/setSTSToken"),y=a.setSTSToken,E=x("../utils/isFunction"),b=E.isFunction,ee=de;ee.asyncSignatureUrl=function(){var te=(0,se.default)(ne.default.mark(function fe(he,me){var ge,Se,ve,be,Pe;return ne.default.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:if(!z(this.options.endpoint.hostname)){_e.next=2;break}throw new Error("can not get the object URL when endpoint is IP");case 2:if(me=me||{},he=this._objectName(he),me.method=me.method||"GET",ge=ue.timestamp()+(me.expires||1800),Se={bucket:this.options.bucket,object:he},ve=this._getResource(Se),!(this.options.stsToken&&b(this.options.refreshSTSToken))){_e.next=11;break}return _e.next=11,y.call(this);case 11:return this.options.stsToken&&(me["security-token"]=this.options.stsToken),be=oe._signatureForURL(this.options.accessKeySecret,me,ve,ge),Pe=ce.parse(this._getReqUrl(Se)),Pe.query={OSSAccessKeyId:this.options.accessKeyId,Expires:ge,Signature:be.Signature},ie(be.subResource).to(Pe.query),_e.abrupt("return",Pe.format());case 17:case"end":return _e.stop()}},fe,this)}));function le(fe,he){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(x,pe,de){"use strict";var ae=x("@babel/runtime/helpers/interopRequireDefault"),ne=ae(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.to-string.js"),x("core-js/modules/web.dom-collections.for-each.js"),x("core-js/modules/es.object.keys.js"),x("core-js/modules/es.array.find.js"),x("core-js/modules/es.array.includes.js"),x("core-js/modules/es.array.concat.js"),x("core-js/modules/es.regexp.exec.js"),x("core-js/modules/es.string.replace.js");var se=ae(x("@babel/runtime/helpers/typeof")),ce=ae(x("@babel/runtime/helpers/asyncToGenerator")),ue=x("../utils/checkBucketName"),ie=ue.checkBucketName,oe=de,re=["content-type","content-encoding","content-language","content-disposition","cache-control","expires"];oe.copy=function(){var z=(0,ce.default)(ne.default.mark(function y(E,b,ee,te){var le,fe,he;return ne.default.wrap(function(ge){for(;;)switch(ge.prev=ge.next){case 0:return(0,se.default)(ee)==="object"&&(te=ee),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,ee),te.versionId&&(b="".concat(b,"?versionId=").concat(te.versionId)),te.headers["x-oss-copy-source"]=b,le=this._objectRequestParams("PUT",E,te),le.xmlResponse=!0,le.successStatuses=[200,304],ge.next=14,this.request(le);case 14:return fe=ge.sent,he=fe.data,he&&(he={etag:he.ETag,lastModified:he.LastModified}),ge.abrupt("return",{data:he,res:fe.res});case 18:case"end":return ge.stop()}},y,this)}));function a(y,E,b,ee){return z.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")),ie(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(x,pe,de){"use strict";var ae=x("@babel/runtime/helpers/interopRequireDefault"),ne=ae(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.assign.js");var se=ae(x("@babel/runtime/helpers/asyncToGenerator")),ce=de;ce.delete=function(){var ue=(0,se.default)(ne.default.mark(function oe(re){var z,a,y,E=arguments;return ne.default.wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:return z=E.length>1&&E[1]!==void 0?E[1]:{},z.subres=Object.assign({},z.subres),z.versionId&&(z.subres.versionId=z.versionId),a=this._objectRequestParams("DELETE",re,z),a.successStatuses=[204],ee.next=7,this.request(a);case 7:return y=ee.sent,ee.abrupt("return",{res:y.res});case 9:case"end":return ee.stop()}},oe,this)}));function ie(oe){return ue.apply(this,arguments)}return ie}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],34:[function(x,pe,de){"use strict";var ae=x("@babel/runtime/helpers/interopRequireDefault"),ne=ae(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.assign.js");var se=ae(x("@babel/runtime/helpers/asyncToGenerator")),ce=x("utility"),ue=x("../utils/obj2xml"),ie=ue.obj2xml,oe=de;oe.deleteMulti=function(){var re=(0,se.default)(ne.default.mark(function a(y){var E,b,ee,te,le,fe,he,me,ge,Se,ve,be,Pe,Te=arguments;return ne.default.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:if(E=Te.length>1&&Te[1]!==void 0?Te[1]:{},b=[],!(!y||!y.length)){je.next=4;break}throw new Error("names is required");case 4:for(ee=0;ee<y.length;ee++)te={},typeof y[ee]=="string"?te.Key=ce.escape(this._objectName(y[ee])):(le=y[ee],fe=le.key,he=le.versionId,te.Key=ce.escape(this._objectName(fe)),te.VersionId=he),b.push(te);return me={Delete:{Quiet:!!E.quiet,Object:b}},ge=ie(me,{headers:!0}),E.subres=Object.assign({delete:""},E.subres),E.versionId&&(E.subres.versionId=E.versionId),Se=this._objectRequestParams("POST","",E),Se.mime="xml",Se.content=ge,Se.xmlResponse=!0,Se.successStatuses=[200],je.next=16,this.request(Se);case 16:return ve=je.sent,be=ve.data,Pe=be&&be.Deleted||null,Pe&&(Array.isArray(Pe)||(Pe=[Pe])),je.abrupt("return",{res:ve.res,deleted:Pe||[]});case 21:case"end":return je.stop()}},a,this)}));function z(a){return re.apply(this,arguments)}return z}()},{"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287,utility:474}],35:[function(x,pe,de){"use strict";var ae=x("@babel/runtime/helpers/interopRequireDefault"),ne=ae(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.assign.js");var se=ae(x("@babel/runtime/helpers/asyncToGenerator")),ce=de;ce.deleteObjectTagging=function(){var ue=(0,se.default)(ne.default.mark(function oe(re){var z,a,y,E=arguments;return ne.default.wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:return z=E.length>1&&E[1]!==void 0?E[1]:{},z.subres=Object.assign({tagging:""},z.subres),z.versionId&&(z.subres.versionId=z.versionId),re=this._objectName(re),a=this._objectRequestParams("DELETE",re,z),a.successStatuses=[204],ee.next=8,this.request(a);case 8:return y=ee.sent,ee.abrupt("return",{status:y.status,res:y.res});case 10:case"end":return ee.stop()}},oe,this)}));function ie(oe){return ue.apply(this,arguments)}return ie}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],36:[function(x,pe,de){"use strict";x("core-js/modules/es.array.concat.js");var ae=x("url"),ne=x("../utils/isIP"),se=ne.isIP,ce=de;ce.generateObjectUrl=function(ie,oe){if(se(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=ae.parse(oe),z=this.options.bucket;re.hostname="".concat(z,".").concat(re.hostname),re.host="".concat(z,".").concat(re.host),oe=re.format()}return oe+this._escape(this._objectName(ie))}},{"../utils/isIP":69,"core-js/modules/es.array.concat.js":272,url:472}],37:[function(x,pe,de){(function(ae){(function(){"use strict";var ne=x("@babel/runtime/helpers/interopRequireDefault"),se=ne(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.assign.js");var ce=ne(x("@babel/runtime/helpers/asyncToGenerator")),ue=x("fs"),ie=x("is-type-of"),oe=de;oe.get=function(){var re=(0,ce.default)(se.default.mark(function a(y,E){var b,ee,te,le,fe,he,me,ge,Se=arguments;return se.default.wrap(function(be){for(;;)switch(be.prev=be.next){case 0:return b=Se.length>2&&Se[2]!==void 0?Se[2]:{},ee=null,te=!1,ie.writableStream(E)?ee=E:ie.string(E)?(ee=ue.createWriteStream(E),te=!0):b=E,b=b||{},le=ae&&ae.browser,fe=b.responseCacheControl===null?"":"no-cache",he=le&&fe?{"response-cache-control":fe}:{},b.subres=Object.assign(he,b.subres),b.versionId&&(b.subres.versionId=b.versionId),b.process&&(b.subres["x-oss-process"]=b.process),be.prev=11,ge=this._objectRequestParams("GET",y,b),ge.writeStream=ee,ge.successStatuses=[200,206,304],be.next=17,this.request(ge);case 17:me=be.sent,te&&ee.destroy(),be.next=28;break;case 21:if(be.prev=21,be.t0=be.catch(11),!te){be.next=27;break}return ee.destroy(),be.next=27,this._deleteFileSafe(E);case 27:throw be.t0;case 28:return be.abrupt("return",{res:me.res,content:me.data});case 29:case"end":return be.stop()}},a,this,[[11,21]])}));function z(a,y){return re.apply(this,arguments)}return z}()}).call(this)}).call(this,x("_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(x,pe,de){"use strict";var ae=x("@babel/runtime/helpers/interopRequireDefault"),ne=ae(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.assign.js");var se=ae(x("@babel/runtime/helpers/asyncToGenerator")),ce=de;ce.getACL=function(){var ue=(0,se.default)(ne.default.mark(function oe(re){var z,a,y,E=arguments;return ne.default.wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:return z=E.length>1&&E[1]!==void 0?E[1]:{},z.subres=Object.assign({acl:""},z.subres),z.versionId&&(z.subres.versionId=z.versionId),re=this._objectName(re),a=this._objectRequestParams("GET",re,z),a.successStatuses=[200],a.xmlResponse=!0,ee.next=9,this.request(a);case 9:return y=ee.sent,ee.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 ee.stop()}},oe,this)}));function ie(oe){return ue.apply(this,arguments)}return ie}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],39:[function(x,pe,de){"use strict";var ae=x("@babel/runtime/helpers/interopRequireDefault"),ne=ae(x("@babel/runtime/regenerator"));x("core-js/modules/es.regexp.exec.js"),x("core-js/modules/es.string.replace.js"),x("core-js/modules/es.object.to-string.js"),x("core-js/modules/web.dom-collections.for-each.js"),x("core-js/modules/es.object.keys.js"),x("core-js/modules/es.object.assign.js"),x("core-js/modules/es.array.map.js"),x("core-js/modules/es.number.constructor.js");var se=ae(x("@babel/runtime/helpers/asyncToGenerator")),ce=de,ue=x("../utils/isObject"),ie=ue.isObject,oe=x("../utils/isArray"),re=oe.isArray;ce.getBucketVersions=z,ce.listObjectVersions=z;function z(){return a.apply(this,arguments)}function a(){return a=(0,se.default)(ne.default.mark(function b(){var ee,te,le,fe,he,me,ge,Se,ve=arguments;return ne.default.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:if(ee=ve.length>0&&ve[0]!==void 0?ve[0]:{},te=ve.length>1&&ve[1]!==void 0?ve[1]:{},!(ee.versionIdMarker&&ee.keyMarker===void 0)){Pe.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=E(ee),Pe.next=12,this.request(le);case 12:return fe=Pe.sent,he=fe.data.Version||[],me=fe.data.DeleteMarker||[],ge=this,he&&(Array.isArray(he)||(he=[he]),he=he.map(function(Te){return{name:Te.Key,url:ge._objectUrl(Te.Key),lastModified:Te.LastModified,isLatest:Te.IsLatest==="true",versionId:Te.VersionId,etag:Te.ETag,type:Te.Type,size:Number(Te.Size),storageClass:Te.StorageClass,owner:{id:Te.Owner.ID,displayName:Te.Owner.DisplayName}}})),me&&(re(me)||(me=[me]),me=me.map(function(Te){return{name:Te.Key,lastModified:Te.LastModified,versionId:Te.VersionId,owner:{id:Te.Owner.ID,displayName:Te.Owner.DisplayName}}})),Se=fe.data.CommonPrefixes||null,Se&&(re(Se)||(Se=[Se]),Se=Se.map(function(Te){return Te.Prefix})),Pe.abrupt("return",{res:fe.res,objects:he,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 Pe.stop()}},b,this)})),a.apply(this,arguments)}function y(b){return b.replace(/([A-Z])/g,"-$1").toLowerCase()}function E(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ee={};return ie(b)&&Object.keys(b).forEach(function(te){ee[y(te)]=b[te]}),ee}},{"../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(x,pe,de){"use strict";var ae=x("@babel/runtime/helpers/interopRequireDefault"),ne=ae(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.assign.js");var se=ae(x("@babel/runtime/helpers/asyncToGenerator")),ce=de;ce.getObjectMeta=function(){var ue=(0,se.default)(ne.default.mark(function oe(re,z){var a,y;return ne.default.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return z=z||{},re=this._objectName(re),z.subres=Object.assign({objectMeta:""},z.subres),z.versionId&&(z.subres.versionId=z.versionId),a=this._objectRequestParams("HEAD",re,z),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 ie(oe,re){return ue.apply(this,arguments)}return ie}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],41:[function(x,pe,de){"use strict";var ae=x("@babel/runtime/helpers/interopRequireDefault"),ne=ae(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.assign.js"),x("core-js/modules/es.object.to-string.js"),x("core-js/modules/web.dom-collections.for-each.js");var se=ae(x("@babel/runtime/helpers/asyncToGenerator")),ce=de,ue=x("../utils/isObject"),ie=ue.isObject;ce.getObjectTagging=function(){var oe=(0,se.default)(ne.default.mark(function z(a){var y,E,b,ee,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),E=this._objectRequestParams("GET",a,y),E.successStatuses=[200],me.next=8,this.request(E);case 8:return b=me.sent,me.next=11,this.parseXML(b.data);case 11:return ee=me.sent,te=ee.TagSet.Tag,te=te&&ie(te)?[te]:te||[],le={},te.forEach(function(ge){le[ge.Key]=ge.Value}),me.abrupt("return",{status:b.status,res:b.res,tag:le});case 17:case"end":return me.stop()}},z,this)}));function re(z){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(x,pe,de){"use strict";var ae=x("../utils/isIP"),ne=ae.isIP,se=de;se.getObjectUrl=function(ue,ie){if(ne(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");return ie?ie[ie.length-1]!=="/"&&(ie+="/"):ie=this.options.endpoint.format(),ie+this._escape(this._objectName(ue))}},{"../utils/isIP":69}],43:[function(x,pe,de){"use strict";var ae=x("@babel/runtime/helpers/interopRequireDefault"),ne=ae(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.assign.js");var se=ae(x("@babel/runtime/helpers/asyncToGenerator")),ce=de;ce.getSymlink=function(){var ue=(0,se.default)(ne.default.mark(function oe(re){var z,a,y,E,b=arguments;return ne.default.wrap(function(te){for(;;)switch(te.prev=te.next){case 0:return z=b.length>1&&b[1]!==void 0?b[1]:{},z.subres=Object.assign({symlink:""},z.subres),z.versionId&&(z.subres.versionId=z.versionId),re=this._objectName(re),a=this._objectRequestParams("GET",re,z),a.successStatuses=[200],te.next=8,this.request(a);case 8:return y=te.sent,E=y.res.headers["x-oss-symlink-target"],te.abrupt("return",{targetName:decodeURIComponent(E),res:y.res});case 11:case"end":return te.stop()}},oe,this)}));function ie(oe){return ue.apply(this,arguments)}return ie}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],44:[function(x,pe,de){"use strict";var ae=x("@babel/runtime/helpers/interopRequireDefault"),ne=ae(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.assign.js"),x("core-js/modules/es.object.to-string.js"),x("core-js/modules/web.dom-collections.for-each.js"),x("core-js/modules/es.object.keys.js");var se=ae(x("@babel/runtime/helpers/asyncToGenerator")),ce=x("../utils/checkEnv"),ue=ce.checkEnv,ie=de;ie.head=function(){var oe=(0,se.default)(ne.default.mark(function z(a){var y,E,b,ee,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),E=this._objectRequestParams("HEAD",a,y),E.successStatuses=[200,304],fe.next=8,this.request(E);case 8:return b=fe.sent,ee={meta:null,res:b.res,status:b.status},b.status===200&&Object.keys(b.headers).forEach(function(he){he.indexOf("x-oss-meta-")===0&&(ee.meta||(ee.meta={}),ee.meta[he.substring(11)]=b.headers[he])}),fe.abrupt("return",ee);case 12:case"end":return fe.stop()}},z,this)}));function re(z){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(x,pe,de){"use strict";var ae=x("@babel/runtime/helpers/interopRequireDefault"),ne=ae(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.assign.js");var se=ae(x("@babel/runtime/helpers/asyncToGenerator")),ce=de;ce.putACL=function(){var ue=(0,se.default)(ne.default.mark(function oe(re,z,a){var y,E;return ne.default.wrap(function(ee){for(;;)switch(ee.prev=ee.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"]=z,re=this._objectName(re),y=this._objectRequestParams("PUT",re,a),y.successStatuses=[200],ee.next=10,this.request(y);case 10:return E=ee.sent,ee.abrupt("return",{res:E.res});case 12:case"end":return ee.stop()}},oe,this)}));function ie(oe,re,z){return ue.apply(this,arguments)}return ie}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],46:[function(x,pe,de){"use strict";var ae=x("@babel/runtime/helpers/interopRequireDefault"),ne=ae(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.assign.js"),x("core-js/modules/es.array.map.js"),x("core-js/modules/es.object.keys.js");var se=ae(x("@babel/runtime/helpers/asyncToGenerator")),ce=x("../utils/obj2xml"),ue=ce.obj2xml,ie=x("../utils/checkObjectTag"),oe=ie.checkObjectTag,re=de;re.putObjectTagging=function(){var z=(0,se.default)(ne.default.mark(function y(E,b){var ee,te,le,fe,he=arguments;return ne.default.wrap(function(ge){for(;;)switch(ge.prev=ge.next){case 0:return ee=he.length>2&&he[2]!==void 0?he[2]:{},oe(b),ee.subres=Object.assign({tagging:""},ee.subres),ee.versionId&&(ee.subres.versionId=ee.versionId),E=this._objectName(E),te=this._objectRequestParams("PUT",E,ee),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),ge.next=13,this.request(te);case 13:return fe=ge.sent,ge.abrupt("return",{res:fe.res,status:fe.status});case 15:case"end":return ge.stop()}},y,this)}));function a(y,E){return z.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(x,pe,de){"use strict";var ae=x("@babel/runtime/helpers/interopRequireDefault"),ne=ae(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.assign.js");var se=ae(x("@babel/runtime/helpers/asyncToGenerator")),ce=de;ce.putSymlink=function(){var ue=(0,se.default)(ne.default.mark(function oe(re,z,a){var y,E;return ne.default.wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:return a=a||{},a.headers=a.headers||{},z=this._escape(this._objectName(z)),this._convertMetaToHeaders(a.meta,a.headers),a.headers["x-oss-symlink-target"]=z,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],ee.next=13,this.request(y);case 13:return E=ee.sent,ee.abrupt("return",{res:E.res});case 15:case"end":return ee.stop()}},oe,this)}));function ie(oe,re,z){return ue.apply(this,arguments)}return ie}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],48:[function(x,pe,de){"use strict";var ae=x("url"),ne=x("utility"),se=x("copy-to"),ce=x("../../common/signUtils"),ue=x("../utils/isIP"),ie=ue.isIP,oe=de;oe.signatureUrl=function(z,a){if(ie(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");a=a||{},z=this._objectName(z),a.method=a.method||"GET";var y=ne.timestamp()+(a.expires||1800),E={bucket:this.options.bucket,object:z},b=this._getResource(E);this.options.stsToken&&(a["security-token"]=this.options.stsToken);var ee=ce._signatureForURL(this.options.accessKeySecret,a,b,y),te=ae.parse(this._getReqUrl(E));return te.query={OSSAccessKeyId:this.options.accessKeyId,Expires:y,Signature:ee.Signature},se(ee.subResource).to(te.query),te.format()}},{"../../common/signUtils":50,"../utils/isIP":69,"copy-to":94,url:472,utility:474}],49:[function(x,pe,de){"use strict";var ae=x("@babel/runtime/helpers/interopRequireDefault"),ne=ae(x("@babel/runtime/regenerator"));x("core-js/modules/es.array.iterator.js"),x("core-js/modules/es.object.to-string.js"),x("core-js/modules/es.promise.js"),x("core-js/modules/es.string.iterator.js"),x("core-js/modules/web.dom-collections.iterator.js"),x("core-js/modules/web.dom-collections.for-each.js"),x("core-js/modules/es.function.name.js");var se=ae(x("@babel/runtime/helpers/asyncToGenerator")),ce=x("./utils/isArray"),ue=ce.isArray,ie=de;ie._parallelNode=function(){var oe=(0,se.default)(ne.default.mark(function z(a,y,E,b){var ee,te,le,fe,he,me,ge,Se;return ne.default.wrap(function(be){for(;;)switch(be.prev=be.next){case 0:ee=this,te=[],le=[],fe=a.length/y,he=a.length%y,me=he===0?fe:(a.length-he)/y+1,ge=1,Se=0;case 8:if(!(Se<a.length)){be.next=26;break}if(!ee.isCancel()){be.next=11;break}return be.abrupt("break",26);case 11:if(b?le.push(E(ee,a[Se],b)):le.push(E(ee,a[Se])),!(le.length===y||ge===me&&Se===a.length-1)){be.next=23;break}return be.prev=13,ge+=1,be.next=17,Promise.all(le);case 17:be.next=22;break;case 19:be.prev=19,be.t0=be.catch(13),te.push(be.t0);case 22:le=[];case 23:Se++,be.next=8;break;case 26:return be.abrupt("return",te);case 27:case"end":return be.stop()}},z,this,[[13,19]])}));function re(z,a,y,E){return oe.apply(this,arguments)}return re}(),ie._parallel=function(re,z,a){var y=this;return new Promise(function(E){var b=[];if(z<=0||!re){E(b);return}function ee(be){return function(){if(be===null)throw new Error("Callback was already called.");var Pe=be;be=null;for(var Te=arguments.length,_e=new Array(Te),je=0;je<Te;je++)_e[je]=arguments[je];Pe.apply(this,_e)}}function te(be){var Pe=-1,Te=be.length;return function(){return++Pe<Te&&!y.isCancel()?{value:be[Pe],key:Pe}:null}}var le=te(re),fe=!1,he=0,me=!1;function ge(be){he-=1,be?(fe=!0,b.push(be),E(b)):fe&&he<=0?(fe=!0,E(b)):me||(y.isCancel()?E(b):ve())}function Se(be,Pe){a(be).then(function(Te){Pe(null,Te)}).catch(function(Te){Pe(Te)})}function ve(){for(me=!0;he<z&&!fe&&!y.isCancel();){var be=le();if(be===null||b.length>0){fe=!0,he<=0&&E(b);return}he+=1,Se(be.value,ee(ge))}me=!1}ve()})},ie.cancel=function(re){this.options.cancelFlag=!0,ue(this.multipartUploadStreams)&&this.multipartUploadStreams.forEach(function(z){if(z.destroyed===!1){var a={name:"cancel",message:"cancel"};z.destroy(a)}}),this.multipartUploadStreams=[],re&&this.abortMultipartUpload(re.name,re.uploadId,re.options)},ie.isCancel=function(){return this.options.cancelFlag},ie.resetCancelFlag=function(){this.options.cancelFlag=!1},ie._stop=function(){this.options.cancelFlag=!0},ie._makeCancelEvent=function(){var re={status:0,name:"cancel"};return re},ie._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(x,pe,de){(function(ae){(function(){"use strict";x("core-js/modules/es.string.trim.js"),x("core-js/modules/es.array.sort.js"),x("core-js/modules/es.array.join.js"),x("core-js/modules/es.object.to-string.js"),x("core-js/modules/web.dom-collections.for-each.js"),x("core-js/modules/es.object.keys.js"),x("core-js/modules/es.array.concat.js"),x("core-js/modules/es.regexp.to-string.js");var ne=x("./../../shims/crypto/crypto.js"),se=x("is-type-of"),ce=x("./utils/lowercaseKeyHeader"),ue=ce.lowercaseKeyHeader;de.buildCanonicalizedResource=function(oe,re){var z="".concat(oe),a="?";if(se.string(re)&&re.trim()!=="")z+=a+re;else if(se.array(re))re.sort(),z+=a+re.join("&");else if(re){var y=function(ee,te){return ee[0]>te[0]?1:ee[0]<te[0]?-1:0},E=function(ee){z+=a+ee,(re[ee]||re[ee]===0)&&(z+="=".concat(re[ee])),a="&"};Object.keys(re).sort(y).forEach(E)}return z},de.buildCanonicalString=function(oe,re,z,a){z=z||{};var y=ue(z.headers),E="x-oss-",b=[],ee={},te=[oe.toUpperCase(),y["content-md5"]||"",y["content-type"],a||y["x-oss-date"]];return Object.keys(y).forEach(function(le){var fe=le.toLowerCase();fe.indexOf(E)===0&&(ee[fe]=String(y[le]).trim())}),Object.keys(ee).sort().forEach(function(le){b.push("".concat(le,":").concat(ee[le]))}),te=te.concat(b),te.push(this.buildCanonicalizedResource(re,z.parameters)),te.join(`
|
|
|
`)},de.computeSignature=function(oe,re){var z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"utf-8",a=ne.createHmac("sha1",oe);return a.update(ae.from(re,z)).digest("base64")},de.authorization=function(oe,re,z,a){return"OSS ".concat(oe,":").concat(this.computeSignature(re,z,a))},de._signatureForURL=function(oe){var re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},z=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,y=arguments.length>4?arguments[4]:void 0,E={},b=re.subResource,ee=b===void 0?{}:b;if(re.process){var te="x-oss-process";ee[te]=re.process}if(re.trafficLimit){var le="x-oss-traffic-limit";ee[le]=re.trafficLimit}if(re.response&&Object.keys(re.response).forEach(function(ge){var Se="response-".concat(ge.toLowerCase());ee[Se]=re.response[ge]}),Object.keys(re).forEach(function(ge){var Se=ge.toLowerCase(),ve=re[ge];Se.indexOf("x-oss-")===0?E[Se]=ve:(Se.indexOf("content-md5")===0||Se.indexOf("content-type")===0)&&(E[ge]=ve)}),Object.prototype.hasOwnProperty.call(re,"security-token")&&(ee["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),ee.callback=ae.from(JSON.stringify(fe)).toString("base64"),re.callback.customValue){var he={};Object.keys(re.callback.customValue).forEach(function(ge){he["x:".concat(ge)]=re.callback.customValue[ge]}),ee["callback-var"]=ae.from(JSON.stringify(he)).toString("base64")}}var me=this.buildCanonicalString(re.method,z,{headers:E,parameters:ee},a.toString());return{Signature:this.computeSignature(oe,me,y),subResource:ee}}}).call(this)}).call(this,x("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(x,pe,de){"use strict";x("core-js/modules/es.regexp.exec.js"),Object.defineProperty(de,"__esModule",{value:!0}),de.checkBucketName=void 0,de.checkBucketName=function(ae){var ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,se=ne?/^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$/:/^[a-z0-9_][a-z0-9-_]{1,61}[a-z0-9_]$/;if(!se.test(ae))throw new Error("The bucket must be conform to the specifications")}},{"core-js/modules/es.regexp.exec.js":300}],52:[function(x,pe,de){"use strict";x("core-js/modules/es.regexp.exec.js"),Object.defineProperty(de,"__esModule",{value:!0}),de.checkConfigValid=void 0;var ae={endpoint:ne,region:/^[a-zA-Z0-9\-_]+$/};function ne(se){return typeof se=="string"?/^[a-zA-Z0-9._:/-]+$/.test(se):se.host?/^[a-zA-Z0-9._:/-]+$/.test(se.host):!1}de.checkConfigValid=function(se,ce){if(ae[ce]){var ue=!0;if(ae[ce]instanceof Function?ue=ae[ce](se):ue=ae[ce].test(se),!ue)throw new Error("The ".concat(ce," must be conform to the specifications"))}}},{"core-js/modules/es.regexp.exec.js":300}],53:[function(x,pe,de){(function(ae){(function(){"use strict";Object.defineProperty(de,"__esModule",{value:!0}),de.checkEnv=void 0;function ne(se){ae.browser&&console.warn(se)}de.checkEnv=ne}).call(this)}).call(this,x("_process"))},{_process:467}],54:[function(x,pe,de){"use strict";x("core-js/modules/es.array.concat.js"),x("core-js/modules/es.object.entries.js"),x("core-js/modules/es.object.to-string.js"),x("core-js/modules/web.dom-collections.for-each.js"),Object.defineProperty(de,"__esModule",{value:!0}),de.checkObjectTag=void 0;var ae=x("./checkValid"),ne=ae.checkValid,se=x("./isObject"),ce=se.isObject,ue=[{validator:function(z){if(typeof z!="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 (/)"}],ie={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 z=Object.entries(re);if(z.length>10)throw new Error("maximum of 10 tags for a object");var a=["key","value"];z.forEach(function(y){y.forEach(function(E,b){ne(E,ie[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(x,pe,de){"use strict";x("core-js/modules/es.object.to-string.js"),x("core-js/modules/web.dom-collections.for-each.js"),x("core-js/modules/es.regexp.exec.js"),Object.defineProperty(de,"__esModule",{value:!0}),de.checkValid=void 0;function ae(ne,se){se.forEach(function(ce){if(ce.validator)ce.validator(ne);else if(ce.pattern&&!ce.pattern.test(ne))throw new Error(ce.msg)})}de.checkValid=ae},{"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(x,pe,de){(function(ae){(function(){"use strict";x("core-js/modules/es.array.includes.js"),x("core-js/modules/es.string.includes.js"),x("core-js/modules/es.object.assign.js"),x("core-js/modules/es.array.concat.js"),Object.defineProperty(de,"__esModule",{value:!0}),de.createRequest=void 0;var ne=x("./../../../shims/crypto/crypto.js"),se=x("debug")("ali-oss"),ce=x("mime"),ue=x("dateformat"),ie=x("copy-to"),oe=x("path"),re=x("./encoder"),z=re.encoder,a=x("./isIP"),y=a.isIP,E=x("./setRegion"),b=E.setRegion,ee=x("../client/getReqUrl"),te=ee.getReqUrl,le=x("./isDingTalk"),fe=le.isDingTalk;function he(Se,ve){return Se[ve]||Se[ve.toLowerCase()]}function me(Se,ve){delete Se[ve],delete Se[ve.toLowerCase()]}function ge(Se){var ve=new Date;this.options.amendTimeSkewed&&(ve=+new Date+this.options.amendTimeSkewed);var be={"x-oss-date":ue(ve,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'")};typeof window!="undefined"&&(be["x-oss-user-agent"]=this.userAgent),this.userAgent.includes("nodejs")&&(be["User-Agent"]=this.userAgent),this.options.isRequestPay&&Object.assign(be,{"x-oss-request-payer":"requester"}),this.options.stsToken&&(be["x-oss-security-token"]=this.options.stsToken),ie(Se.headers).to(be),he(be,"Content-Type")||(Se.mime&&Se.mime.indexOf("/")>0?be["Content-Type"]=Se.mime:fe()?be["Content-Type"]="application/octet-stream":be["Content-Type"]=ce.getType(Se.mime||oe.extname(Se.object||""))),he(be,"Content-Type")||me(be,"Content-Type"),Se.content&&(Se.disabledMD5||(!Se.headers||!Se.headers["Content-MD5"]?be["Content-MD5"]=ne.createHash("md5").update(ae.from(Se.content,"utf8")).digest("base64"):be["Content-MD5"]=Se.headers["Content-MD5"]),be["Content-Length"]||(be["Content-Length"]=Se.content.length));var Pe=Object.prototype.hasOwnProperty;for(var Te in be)be[Te]&&Pe.call(be,Te)&&(be[Te]=z(String(be[Te]),this.options.headerEncoding));var _e=this._getResource(Se);if(be.authorization=this.authorization(Se.method,_e,Se.subres,be,this.options.headerEncoding),y(this.options.endpoint.hostname)){var je=this.options,Ce=je.region,Ie=je.internal,ke=je.secure,$e=b(Ce,Ie,ke);be.host="".concat(Se.bucket,".").concat($e.host)}var Ne=te.bind(this)(Se);se("request %s %s, with headers %j, !!stream: %s",Se.method,Ne,be,!!Se.stream);var nt=Se.timeout||this.options.timeout,qe={method:Se.method,content:Se.content,stream:Se.stream,headers:be,timeout:nt,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:Ne,params:qe}}de.createRequest=ge}).call(this)}).call(this,x("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(x,pe,de){"use strict";x("core-js/modules/es.object.to-string.js"),x("core-js/modules/web.dom-collections.for-each.js"),x("core-js/modules/es.object.entries.js"),x("core-js/modules/es.regexp.exec.js"),x("core-js/modules/es.string.replace.js"),x("core-js/modules/es.array.includes.js"),x("core-js/modules/es.object.keys.js"),Object.defineProperty(de,"__esModule",{value:!0}),de.dataFix=void 0;var ae=x("./isObject"),ne=["true","TRUE","1",1],se=["false","FALSE","0",0];function ce(oe,re,z){if(ae.isObject(oe)){var a=re.remove,y=a===void 0?[]:a,E=re.rename,b=E===void 0?{}:E,ee=re.camel,te=ee===void 0?[]:ee,le=re.bool,fe=le===void 0?[]:le,he=re.lowerFirst,me=he===void 0?!1:he;return y.forEach(function(ge){return delete oe[ge]}),Object.entries(b).forEach(function(ge){oe[ge[0]]&&(oe[ge[1]]||(oe[ge[1]]=oe[ge[0]],delete oe[ge[0]]))}),te.forEach(function(ge){if(oe[ge]){var Se=ge.replace(/^(.)/,function(ve){return ve.toLowerCase()}).replace(/-(\w)/g,function(ve,be){return be.toUpperCase()});oe[Se]||(oe[Se]=oe[ge])}}),fe.forEach(function(ge){oe[ge]=ue(oe[ge])}),typeof z=="function"&&z(oe),ie(oe,me),ce}}de.dataFix=ce;function ue(oe){return oe?ne.includes(oe)?!0:se.includes(oe)?!1:oe:!1}function ie(oe,re){re&&Object.keys(oe).forEach(function(z){var a=z.replace(/^\w/,function(y){return y.toLowerCase()});typeof oe[a]=="undefined"&&(oe[a]=oe[z],delete oe[z])})}},{"./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(x,pe,de){"use strict";var ae=x("@babel/runtime/helpers/interopRequireDefault");x("core-js/modules/es.array.slice.js"),x("core-js/modules/es.object.to-string.js"),x("core-js/modules/web.dom-collections.for-each.js"),x("core-js/modules/es.object.keys.js");var ne=ae(x("@babel/runtime/helpers/typeof"));Object.defineProperty(de,"__esModule",{value:!0}),de.deepCopyWith=de.deepCopy=void 0;var se=x("./isBuffer");de.deepCopy=function(ce){if(ce===null||(0,ne.default)(ce)!=="object")return ce;if(se.isBuffer(ce))return ce.slice();var ue=Array.isArray(ce)?[]:{};return Object.keys(ce).forEach(function(ie){ue[ie]=de.deepCopy(ce[ie])}),ue},de.deepCopyWith=function(ce,ue){function ie(oe,re,z){var a=ue(oe,re,z);if(a!==void 0)return a;if(oe===null||(0,ne.default)(oe)!=="object")return oe;if(se.isBuffer(oe))return oe.slice();var y=Array.isArray(oe)?[]:{};return Object.keys(oe).forEach(function(E){y[E]=ie(oe[E],E,oe)}),y}return ue?ie(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(x,pe,de){(function(ae){(function(){"use strict";x("core-js/modules/es.object.to-string.js"),x("core-js/modules/es.regexp.to-string.js"),Object.defineProperty(de,"__esModule",{value:!0}),de.encoder=void 0;function ne(se){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"utf-8";return ce==="utf-8"?se:ae.from(se).toString("latin1")}de.encoder=ne}).call(this)}).call(this,x("buffer").Buffer)},{buffer:90,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301}],60:[function(x,pe,de){"use strict";x("core-js/modules/es.array.map.js"),x("core-js/modules/es.regexp.exec.js"),x("core-js/modules/es.string.replace.js"),Object.defineProperty(de,"__esModule",{value:!0}),de.formatInventoryConfig=void 0;var ae=x("../utils/dataFix"),ne=x("../utils/isObject"),se=x("../utils/isArray"),ce=x("../utils/formatObjKey");function ue(oe){var re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return re&&ne.isObject(oe)&&(oe=[oe]),se.isArray(oe)?oe=oe.map(ie):oe=ie(oe),oe}de.formatInventoryConfig=ue;function ie(oe){return ae.dataFix(oe,{bool:["IsEnabled"]},function(re){var z,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,!((z=re==null?void 0:re.OptionalFields)===null||z===void 0)&&z.Field&&!se.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(x,pe,de){"use strict";var ae=x("@babel/runtime/helpers/interopRequireDefault");x("core-js/modules/es.object.to-string.js"),x("core-js/modules/web.dom-collections.for-each.js"),x("core-js/modules/es.object.keys.js"),x("core-js/modules/es.array.includes.js"),x("core-js/modules/es.string.includes.js"),x("core-js/modules/es.regexp.exec.js"),x("core-js/modules/es.string.replace.js");var ne=ae(x("@babel/runtime/helpers/typeof"));Object.defineProperty(de,"__esModule",{value:!0}),de.formatObjKey=void 0;function se(ue,ie,oe){if(ue===null||(0,ne.default)(ue)!=="object")return ue;var re;if(Array.isArray(ue)){re=[];for(var z=0;z<ue.length;z++)re.push(se(ue[z],ie,oe))}else re={},Object.keys(ue).forEach(function(a){re[ce(a,ie,oe)]=se(ue[a],ie,oe)});return re}de.formatObjKey=se;function ce(ue,ie,oe){return oe&&oe.exclude&&oe.exclude.includes(ue)||(ie==="firstUpperCase"?ue=ue.replace(/^./,function(re){return re.toUpperCase()}):ie==="firstLowerCase"&&(ue=ue.replace(/^./,function(re){return re.toLowerCase()}))),ue}},{"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,"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.includes.js":302,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],62:[function(x,pe,de){"use strict";x("core-js/modules/es.regexp.exec.js"),Object.defineProperty(de,"__esModule",{value:!0}),de.getStrBytesCount=void 0;function ae(ne){for(var se=0,ce=0;ce<ne.length;ce++){var ue=ne.charAt(ce);/^[\u00-\uff]$/.test(ue)?se+=1:se+=2}return se}de.getStrBytesCount=ae},{"core-js/modules/es.regexp.exec.js":300}],63:[function(x,pe,de){"use strict";x("core-js/modules/es.object.to-string.js"),Object.defineProperty(de,"__esModule",{value:!0}),de.isArray=void 0,de.isArray=function(ae){return Object.prototype.toString.call(ae)==="[object Array]"}},{"core-js/modules/es.object.to-string.js":291}],64:[function(x,pe,de){"use strict";Object.defineProperty(de,"__esModule",{value:!0}),de.isBlob=void 0;function ae(ne){return typeof Blob!="undefined"&&ne instanceof Blob}de.isBlob=ae},{}],65:[function(x,pe,de){(function(ae){(function(){"use strict";Object.defineProperty(de,"__esModule",{value:!0}),de.isBuffer=void 0;function ne(se){return ae.isBuffer(se)}de.isBuffer=ne}).call(this)}).call(this,{isBuffer:x("../../../node_modules/is-buffer/index.js")})},{"../../../node_modules/is-buffer/index.js":366}],66:[function(x,pe,de){(function(ae){(function(){"use strict";x("core-js/modules/es.array.includes.js"),x("core-js/modules/es.string.includes.js"),Object.defineProperty(de,"__esModule",{value:!0}),de.isDingTalk=void 0;function ne(){return!!(ae.browser&&window.navigator.userAgent.toLowerCase().includes("aliapp(dingtalk"))}de.isDingTalk=ne}).call(this)}).call(this,x("_process"))},{_process:467,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.string.includes.js":302}],67:[function(x,pe,de){"use strict";Object.defineProperty(de,"__esModule",{value:!0}),de.isFile=void 0,de.isFile=function(ae){return typeof File!="undefined"&&ae instanceof File}},{}],68:[function(x,pe,de){"use strict";Object.defineProperty(de,"__esModule",{value:!0}),de.isFunction=void 0,de.isFunction=function(ae){return typeof ae=="function"}},{}],69:[function(x,pe,de){"use strict";x("core-js/modules/es.regexp.exec.js"),Object.defineProperty(de,"__esModule",{value:!0}),de.isIP=void 0,de.isIP=function(ae){var ne=/^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}$/,se=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/;return ne.test(ae)||se.test(ae)}},{"core-js/modules/es.regexp.exec.js":300}],70:[function(x,pe,de){"use strict";x("core-js/modules/es.object.to-string.js"),Object.defineProperty(de,"__esModule",{value:!0}),de.isObject=void 0,de.isObject=function(ae){return Object.prototype.toString.call(ae)==="[object Object]"}},{"core-js/modules/es.object.to-string.js":291}],71:[function(x,pe,de){"use strict";x("core-js/modules/es.object.to-string.js"),x("core-js/modules/web.dom-collections.for-each.js"),x("core-js/modules/es.object.keys.js"),Object.defineProperty(de,"__esModule",{value:!0}),de.lowercaseKeyHeader=void 0;var ae=x("./isObject");function ne(se){var ce={};return ae.isObject(se)&&Object.keys(se).forEach(function(ue){ce[ue.toLowerCase()]=se[ue]}),ce}de.lowercaseKeyHeader=ne},{"./isObject":70,"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}],72:[function(x,pe,de){"use strict";x("core-js/modules/es.regexp.exec.js"),x("core-js/modules/es.string.replace.js"),x("core-js/modules/es.object.to-string.js"),x("core-js/modules/web.dom-collections.for-each.js"),x("core-js/modules/es.object.keys.js"),x("core-js/modules/es.array.concat.js"),x("core-js/modules/es.array.join.js"),x("core-js/modules/es.array.map.js"),x("core-js/modules/es.regexp.to-string.js"),Object.defineProperty(de,"__esModule",{value:!0}),de.obj2xml=void 0;var ae=x("./formatObjKey");function ne(ce){return Object.prototype.toString.call(ce).replace(/(.*? |])/g,"").toLowerCase()}function se(ce,ue){var ie="";return ue&&ue.headers&&(ie=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
`),ue&&ue.firstUpperCase&&(ce=ae.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"?ie+="<".concat(oe,">").concat(ce[oe],"</").concat(oe,">"):ne(ce[oe])==="object"?ie+="<".concat(oe,">").concat(se(ce[oe]),"</").concat(oe,">"):ne(ce[oe])==="array"?ie+=ce[oe].map(function(re){return"<".concat(oe,">").concat(se(re),"</").concat(oe,">")}).join(""):ie+="<".concat(oe,">").concat(ce[oe].toString(),"</").concat(oe,">"))}):ie+=ce.toString(),ie}de.obj2xml=se},{"./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(x,pe,de){"use strict";x("core-js/modules/es.array.slice.js"),x("core-js/modules/es.object.to-string.js"),x("core-js/modules/es.function.name.js"),x("core-js/modules/es.array.from.js"),x("core-js/modules/es.string.iterator.js"),x("core-js/modules/es.regexp.exec.js"),x("core-js/modules/es.symbol.js"),x("core-js/modules/es.symbol.description.js"),x("core-js/modules/es.symbol.iterator.js"),x("core-js/modules/es.array.iterator.js"),x("core-js/modules/web.dom-collections.iterator.js"),x("core-js/modules/es.object.assign.js");function ae(ue,ie){var oe=typeof Symbol!="undefined"&&ue[Symbol.iterator]||ue["@@iterator"];if(!oe){if(Array.isArray(ue)||(oe=ne(ue))||ie&&ue&&typeof ue.length=="number"){oe&&(ue=oe);var re=0,z=function(){};return{s:z,n:function(){return re>=ue.length?{done:!0}:{done:!1,value:ue[re++]}},e:function(ee){throw ee},f:z}}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,E;return{s:function(){oe=oe.call(ue)},n:function(){var ee=oe.next();return a=ee.done,ee},e:function(ee){y=!0,E=ee},f:function(){try{!a&&oe.return!=null&&oe.return()}finally{if(y)throw E}}}}function ne(ue,ie){if(ue){if(typeof ue=="string")return se(ue,ie);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 se(ue,ie)}}function se(ue,ie){(ie==null||ie>ue.length)&&(ie=ue.length);for(var oe=0,re=new Array(ie);oe<ie;oe++)re[oe]=ue[oe];return re}Object.defineProperty(de,"__esModule",{value:!0}),de.omit=void 0;function ce(ue,ie){var oe=Object.assign({},ue),re=ae(ie),z;try{for(re.s();!(z=re.n()).done;){var a=z.value;delete oe[a]}}catch(y){re.e(y)}finally{re.f()}return oe}de.omit=ce},{"core-js/modules/es.array.from.js":276,"core-js/modules/es.array.iterator.js":278,"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.regexp.exec.js":300,"core-js/modules/es.string.iterator.js":303,"core-js/modules/es.symbol.description.js":310,"core-js/modules/es.symbol.iterator.js":312,"core-js/modules/es.symbol.js":313,"core-js/modules/web.dom-collections.iterator.js":340}],74:[function(x,pe,de){"use strict";x("core-js/modules/es.object.to-string.js"),x("core-js/modules/es.promise.js"),Object.defineProperty(de,"__esModule",{value:!0}),de.retry=void 0;function ae(ne,se){var ce=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ue=0,ie=ce.retryDelay,oe=ie===void 0?500:ie,re=ce.errorHandler,z=re===void 0?function(){return!0}:re,a=function y(){for(var E=arguments.length,b=new Array(E),ee=0;ee<E;ee++)b[ee]=arguments[ee];return new Promise(function(te,le){ne.apply(void 0,b).then(function(fe){ue=0,te(fe)}).catch(function(fe){ue<se&&z(fe)?(ue++,setTimeout(function(){te(y.apply(void 0,b))},oe)):(ue=0,le(fe))})})};return a}de.retry=ae},{"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295}],75:[function(x,pe,de){"use strict";var ae=function(ue){return ue&&ue.__esModule?ue:{default:ue}};Object.defineProperty(de,"__esModule",{value:!0}),de.setRegion=void 0;var ne=ae(x("url")),se=x("./checkConfigValid");function ce(ue){var ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;se.checkConfigValid(ue,"region");var re=oe?"https://":"http://",z=ie?"-internal.aliyuncs.com":".aliyuncs.com",a="vpc100-oss-cn-";return ue.substr(0,a.length)===a&&(z=".aliyuncs.com"),ne.default.parse(re+ue+z)}de.setRegion=ce},{"./checkConfigValid":52,url:472}],76:[function(x,pe,de){"use strict";var ae=x("@babel/runtime/helpers/interopRequireDefault"),ne=ae(x("@babel/runtime/regenerator"));x("core-js/modules/es.object.keys.js"),x("core-js/modules/es.object.to-string.js"),x("core-js/modules/es.array.find.js"),x("core-js/modules/es.object.assign.js");var se=ae(x("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(de,"__esModule",{value:!0}),de.checkCredentials=de.setSTSToken=void 0;var ce=x("./formatObjKey");function ue(){return ie.apply(this,arguments)}function ie(){return ie=(0,se.default)(ne.default.mark(function re(){var z,a;return ne.default.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:if(this.options||(this.options={}),z=new Date,!this.stsTokenFreshTime){E.next=14;break}if(!(+z-this.stsTokenFreshTime>=this.options.refreshSTSTokenInterval)){E.next=12;break}return this.stsTokenFreshTime=z,E.next=7,this.options.refreshSTSToken();case 7:a=E.sent,a=ce.formatObjKey(a,"firstLowerCase"),a.securityToken&&(a.stsToken=a.securityToken),oe(a),Object.assign(this.options,a);case 12:E.next=15;break;case 14:this.stsTokenFreshTime=z;case 15:return E.abrupt("return",null);case 16:case"end":return E.stop()}},re,this)})),ie.apply(this,arguments)}de.setSTSToken=ue;function oe(re){var z=["accessKeySecret","accessKeyId","stsToken"],a=Object.keys(re);z.forEach(function(y){if(!a.find(function(E){return E===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(x,pe,de){function ae(se,ce,ue,ie,oe,re,z){try{var a=se[re](z),y=a.value}catch(E){ue(E);return}a.done?ce(y):Promise.resolve(y).then(ie,oe)}function ne(se){return function(){var ce=this,ue=arguments;return new Promise(function(ie,oe){var re=se.apply(ce,ue);function z(y){ae(re,ie,oe,z,a,"next",y)}function a(y){ae(re,ie,oe,z,a,"throw",y)}z(void 0)})}}pe.exports=ne,pe.exports.__esModule=!0,pe.exports.default=pe.exports},{}],78:[function(x,pe,de){function ae(ne){return ne&&ne.__esModule?ne:{default:ne}}pe.exports=ae,pe.exports.__esModule=!0,pe.exports.default=pe.exports},{}],79:[function(x,pe,de){function ae(ne){"@babel/helpers - typeof";return pe.exports=ae=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(se){return typeof se}:function(se){return se&&typeof Symbol=="function"&&se.constructor===Symbol&&se!==Symbol.prototype?"symbol":typeof se},pe.exports.__esModule=!0,pe.exports.default=pe.exports,ae(ne)}pe.exports=ae,pe.exports.__esModule=!0,pe.exports.default=pe.exports},{}],80:[function(x,pe,de){pe.exports=x("regenerator-runtime")},{"regenerator-runtime":395}],81:[function(x,pe,de){pe.exports=ae,pe.exports.HttpsAgent=ae;function ae(){}},{}],82:[function(x,pe,de){(function(ae){(function(){"use strict";var ne=x("object-assign");function se(Ce,Ie){if(Ce===Ie)return 0;for(var ke=Ce.length,$e=Ie.length,Ne=0,nt=Math.min(ke,$e);Ne<nt;++Ne)if(Ce[Ne]!==Ie[Ne]){ke=Ce[Ne],$e=Ie[Ne];break}return ke<$e?-1:$e<ke?1:0}function ce(Ce){return ae.Buffer&&typeof ae.Buffer.isBuffer=="function"?ae.Buffer.isBuffer(Ce):!!(Ce!=null&&Ce._isBuffer)}var ue=x("util/"),ie=Object.prototype.hasOwnProperty,oe=Array.prototype.slice,re=function(){return function(){}.name==="foo"}();function z(Ce){return Object.prototype.toString.call(Ce)}function a(Ce){return ce(Ce)||typeof ae.ArrayBuffer!="function"?!1:typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(Ce):Ce?!!(Ce instanceof DataView||Ce.buffer&&Ce.buffer instanceof ArrayBuffer):!1}var y=pe.exports=he,E=/\s*function\s+([^\(\s]*)\s*/;function b(Ce){if(ue.isFunction(Ce)){if(re)return Ce.name;var Ie=Ce.toString(),ke=Ie.match(E);return ke&&ke[1]}}y.AssertionError=function(Ie){this.name="AssertionError",this.actual=Ie.actual,this.expected=Ie.expected,this.operator=Ie.operator,Ie.message?(this.message=Ie.message,this.generatedMessage=!1):(this.message=le(this),this.generatedMessage=!0);var ke=Ie.stackStartFunction||fe;if(Error.captureStackTrace)Error.captureStackTrace(this,ke);else{var $e=new Error;if($e.stack){var Ne=$e.stack,nt=b(ke),qe=Ne.indexOf(`
|
|
|
`+nt);if(qe>=0){var Je=Ne.indexOf(`
|
|
|
`,qe+1);Ne=Ne.substring(Je+1)}this.stack=Ne}}},ue.inherits(y.AssertionError,Error);function ee(Ce,Ie){return typeof Ce=="string"?Ce.length<Ie?Ce:Ce.slice(0,Ie):Ce}function te(Ce){if(re||!ue.isFunction(Ce))return ue.inspect(Ce);var Ie=b(Ce),ke=Ie?": "+Ie:"";return"[Function"+ke+"]"}function le(Ce){return ee(te(Ce.actual),128)+" "+Ce.operator+" "+ee(te(Ce.expected),128)}function fe(Ce,Ie,ke,$e,Ne){throw new y.AssertionError({message:ke,actual:Ce,expected:Ie,operator:$e,stackStartFunction:Ne})}y.fail=fe;function he(Ce,Ie){Ce||fe(Ce,!0,Ie,"==",y.ok)}y.ok=he,y.equal=function(Ie,ke,$e){Ie!=ke&&fe(Ie,ke,$e,"==",y.equal)},y.notEqual=function(Ie,ke,$e){Ie==ke&&fe(Ie,ke,$e,"!=",y.notEqual)},y.deepEqual=function(Ie,ke,$e){me(Ie,ke,!1)||fe(Ie,ke,$e,"deepEqual",y.deepEqual)},y.deepStrictEqual=function(Ie,ke,$e){me(Ie,ke,!0)||fe(Ie,ke,$e,"deepStrictEqual",y.deepStrictEqual)};function me(Ce,Ie,ke,$e){if(Ce===Ie)return!0;if(ce(Ce)&&ce(Ie))return se(Ce,Ie)===0;if(ue.isDate(Ce)&&ue.isDate(Ie))return Ce.getTime()===Ie.getTime();if(ue.isRegExp(Ce)&&ue.isRegExp(Ie))return Ce.source===Ie.source&&Ce.global===Ie.global&&Ce.multiline===Ie.multiline&&Ce.lastIndex===Ie.lastIndex&&Ce.ignoreCase===Ie.ignoreCase;if((Ce===null||typeof Ce!="object")&&(Ie===null||typeof Ie!="object"))return ke?Ce===Ie:Ce==Ie;if(a(Ce)&&a(Ie)&&z(Ce)===z(Ie)&&!(Ce instanceof Float32Array||Ce instanceof Float64Array))return se(new Uint8Array(Ce.buffer),new Uint8Array(Ie.buffer))===0;if(ce(Ce)!==ce(Ie))return!1;$e=$e||{actual:[],expected:[]};var Ne=$e.actual.indexOf(Ce);return Ne!==-1&&Ne===$e.expected.indexOf(Ie)?!0:($e.actual.push(Ce),$e.expected.push(Ie),Se(Ce,Ie,ke,$e))}function ge(Ce){return Object.prototype.toString.call(Ce)=="[object Arguments]"}function Se(Ce,Ie,ke,$e){if(Ce==null||Ie===null||Ie===void 0)return!1;if(ue.isPrimitive(Ce)||ue.isPrimitive(Ie))return Ce===Ie;if(ke&&Object.getPrototypeOf(Ce)!==Object.getPrototypeOf(Ie))return!1;var Ne=ge(Ce),nt=ge(Ie);if(Ne&&!nt||!Ne&&nt)return!1;if(Ne)return Ce=oe.call(Ce),Ie=oe.call(Ie),me(Ce,Ie,ke);var qe=je(Ce),Je=je(Ie),Ye,We;if(qe.length!==Je.length)return!1;for(qe.sort(),Je.sort(),We=qe.length-1;We>=0;We--)if(qe[We]!==Je[We])return!1;for(We=qe.length-1;We>=0;We--)if(Ye=qe[We],!me(Ce[Ye],Ie[Ye],ke,$e))return!1;return!0}y.notDeepEqual=function(Ie,ke,$e){me(Ie,ke,!1)&&fe(Ie,ke,$e,"notDeepEqual",y.notDeepEqual)},y.notDeepStrictEqual=ve;function ve(Ce,Ie,ke){me(Ce,Ie,!0)&&fe(Ce,Ie,ke,"notDeepStrictEqual",ve)}y.strictEqual=function(Ie,ke,$e){Ie!==ke&&fe(Ie,ke,$e,"===",y.strictEqual)},y.notStrictEqual=function(Ie,ke,$e){Ie===ke&&fe(Ie,ke,$e,"!==",y.notStrictEqual)};function be(Ce,Ie){if(!Ce||!Ie)return!1;if(Object.prototype.toString.call(Ie)=="[object RegExp]")return Ie.test(Ce);try{if(Ce instanceof Ie)return!0}catch(ke){}return Error.isPrototypeOf(Ie)?!1:Ie.call({},Ce)===!0}function Pe(Ce){var Ie;try{Ce()}catch(ke){Ie=ke}return Ie}function Te(Ce,Ie,ke,$e){var Ne;if(typeof Ie!="function")throw new TypeError('"block" argument must be a function');typeof ke=="string"&&($e=ke,ke=null),Ne=Pe(Ie),$e=(ke&&ke.name?" ("+ke.name+").":".")+($e?" "+$e:"."),Ce&&!Ne&&fe(Ne,ke,"Missing expected exception"+$e);var nt=typeof $e=="string",qe=!Ce&&ue.isError(Ne),Je=!Ce&&Ne&&!ke;if((qe&&nt&&be(Ne,ke)||Je)&&fe(Ne,ke,"Got unwanted exception"+$e),Ce&&Ne&&ke&&!be(Ne,ke)||!Ce&&Ne)throw Ne}y.throws=function(Ce,Ie,ke){Te(!0,Ce,Ie,ke)},y.doesNotThrow=function(Ce,Ie,ke){Te(!1,Ce,Ie,ke)},y.ifError=function(Ce){if(Ce)throw Ce};function _e(Ce,Ie){Ce||fe(Ce,!0,Ie,"==",_e)}y.strict=ne(_e,y,{equal:y.strictEqual,deepEqual:y.deepStrictEqual,notEqual:y.notStrictEqual,notDeepEqual:y.notDeepStrictEqual}),y.strict.strict=y.strict;var je=Object.keys||function(Ce){var Ie=[];for(var ke in Ce)ie.call(Ce,ke)&&Ie.push(ke);return Ie}}).call(this)}).call(this,typeof ft!="undefined"?ft:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"object-assign":377,"util/":85}],83:[function(x,pe,de){typeof Object.create=="function"?pe.exports=function(ne,se){ne.super_=se,ne.prototype=Object.create(se.prototype,{constructor:{value:ne,enumerable:!1,writable:!0,configurable:!0}})}:pe.exports=function(ne,se){ne.super_=se;var ce=function(){};ce.prototype=se.prototype,ne.prototype=new ce,ne.prototype.constructor=ne}},{}],84:[function(x,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(x,pe,de){(function(ae,ne){(function(){var se=/%[sdj%]/g;de.format=function(Je){if(!Se(Je)){for(var Ye=[],We=0;We<arguments.length;We++)Ye.push(ie(arguments[We]));return Ye.join(" ")}for(var We=1,Fe=arguments,Ue=Fe.length,at=String(Je).replace(se,function(ut){if(ut==="%%")return"%";if(We>=Ue)return ut;switch(ut){case"%s":return String(Fe[We++]);case"%d":return Number(Fe[We++]);case"%j":try{return JSON.stringify(Fe[We++])}catch(Ze){return"[Circular]"}default:return ut}}),Xe=Fe[We];We<Ue;Xe=Fe[++We])he(Xe)||!Te(Xe)?at+=" "+Xe:at+=" "+ie(Xe);return at},de.deprecate=function(Je,Ye){if(be(ne.process))return function(){return de.deprecate(Je,Ye).apply(this,arguments)};if(ae.noDeprecation===!0)return Je;var We=!1;function Fe(){if(!We){if(ae.throwDeprecation)throw new Error(Ye);ae.traceDeprecation?console.trace(Ye):console.error(Ye),We=!0}return Je.apply(this,arguments)}return Fe};var ce={},ue;de.debuglog=function(Je){if(be(ue)&&(ue=ae.env.NODE_DEBUG||""),Je=Je.toUpperCase(),!ce[Je])if(new RegExp("\\b"+Je+"\\b","i").test(ue)){var Ye=ae.pid;ce[Je]=function(){var We=de.format.apply(de,arguments);console.error("%s %d: %s",Je,Ye,We)}}else ce[Je]=function(){};return ce[Je]};function ie(Je,Ye){var We={seen:[],stylize:re};return arguments.length>=3&&(We.depth=arguments[2]),arguments.length>=4&&(We.colors=arguments[3]),fe(Ye)?We.showHidden=Ye:Ye&&de._extend(We,Ye),be(We.showHidden)&&(We.showHidden=!1),be(We.depth)&&(We.depth=2),be(We.colors)&&(We.colors=!1),be(We.customInspect)&&(We.customInspect=!0),We.colors&&(We.stylize=oe),a(We,Je,We.depth)}de.inspect=ie,ie.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]},ie.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function oe(Je,Ye){var We=ie.styles[Ye];return We?"\x1B["+ie.colors[We][0]+"m"+Je+"\x1B["+ie.colors[We][1]+"m":Je}function re(Je,Ye){return Je}function z(Je){var Ye={};return Je.forEach(function(We,Fe){Ye[We]=!0}),Ye}function a(Je,Ye,We){if(Je.customInspect&&Ye&&Ce(Ye.inspect)&&Ye.inspect!==de.inspect&&!(Ye.constructor&&Ye.constructor.prototype===Ye)){var Fe=Ye.inspect(We,Je);return Se(Fe)||(Fe=a(Je,Fe,We)),Fe}var Ue=y(Je,Ye);if(Ue)return Ue;var at=Object.keys(Ye),Xe=z(at);if(Je.showHidden&&(at=Object.getOwnPropertyNames(Ye)),je(Ye)&&(at.indexOf("message")>=0||at.indexOf("description")>=0))return E(Ye);if(at.length===0){if(Ce(Ye)){var ut=Ye.name?": "+Ye.name:"";return Je.stylize("[Function"+ut+"]","special")}if(Pe(Ye))return Je.stylize(RegExp.prototype.toString.call(Ye),"regexp");if(_e(Ye))return Je.stylize(Date.prototype.toString.call(Ye),"date");if(je(Ye))return E(Ye)}var Ze="",ze=!1,Re=["{","}"];if(le(Ye)&&(ze=!0,Re=["[","]"]),Ce(Ye)){var it=Ye.name?": "+Ye.name:"";Ze=" [Function"+it+"]"}if(Pe(Ye)&&(Ze=" "+RegExp.prototype.toString.call(Ye)),_e(Ye)&&(Ze=" "+Date.prototype.toUTCString.call(Ye)),je(Ye)&&(Ze=" "+E(Ye)),at.length===0&&(!ze||Ye.length==0))return Re[0]+Ze+Re[1];if(We<0)return Pe(Ye)?Je.stylize(RegExp.prototype.toString.call(Ye),"regexp"):Je.stylize("[Object]","special");Je.seen.push(Ye);var Me;return ze?Me=b(Je,Ye,We,Xe,at):Me=at.map(function(Be){return ee(Je,Ye,We,Xe,Be,ze)}),Je.seen.pop(),te(Me,Ze,Re)}function y(Je,Ye){if(be(Ye))return Je.stylize("undefined","undefined");if(Se(Ye)){var We="'"+JSON.stringify(Ye).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return Je.stylize(We,"string")}if(ge(Ye))return Je.stylize(""+Ye,"number");if(fe(Ye))return Je.stylize(""+Ye,"boolean");if(he(Ye))return Je.stylize("null","null")}function E(Je){return"["+Error.prototype.toString.call(Je)+"]"}function b(Je,Ye,We,Fe,Ue){for(var at=[],Xe=0,ut=Ye.length;Xe<ut;++Xe)qe(Ye,String(Xe))?at.push(ee(Je,Ye,We,Fe,String(Xe),!0)):at.push("");return Ue.forEach(function(Ze){Ze.match(/^\d+$/)||at.push(ee(Je,Ye,We,Fe,Ze,!0))}),at}function ee(Je,Ye,We,Fe,Ue,at){var Xe,ut,Ze;if(Ze=Object.getOwnPropertyDescriptor(Ye,Ue)||{value:Ye[Ue]},Ze.get?Ze.set?ut=Je.stylize("[Getter/Setter]","special"):ut=Je.stylize("[Getter]","special"):Ze.set&&(ut=Je.stylize("[Setter]","special")),qe(Fe,Ue)||(Xe="["+Ue+"]"),ut||(Je.seen.indexOf(Ze.value)<0?(he(We)?ut=a(Je,Ze.value,null):ut=a(Je,Ze.value,We-1),ut.indexOf(`
|
|
|
`)>-1&&(at?ut=ut.split(`
|
|
|
`).map(function(ze){return" "+ze}).join(`
|
|
|
`).substr(2):ut=`
|
|
|
`+ut.split(`
|
|
|
`).map(function(ze){return" "+ze}).join(`
|
|
|
`))):ut=Je.stylize("[Circular]","special")),be(Xe)){if(at&&Ue.match(/^\d+$/))return ut;Xe=JSON.stringify(""+Ue),Xe.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Xe=Xe.substr(1,Xe.length-2),Xe=Je.stylize(Xe,"name")):(Xe=Xe.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Xe=Je.stylize(Xe,"string"))}return Xe+": "+ut}function te(Je,Ye,We){var Fe=0,Ue=Je.reduce(function(at,Xe){return Fe++,Xe.indexOf(`
|
|
|
`)>=0&&Fe++,at+Xe.replace(/\u001b\[\d\d?m/g,"").length+1},0);return Ue>60?We[0]+(Ye===""?"":Ye+`
|
|
|
`)+" "+Je.join(`,
|
|
|
`)+" "+We[1]:We[0]+Ye+" "+Je.join(", ")+" "+We[1]}function le(Je){return Array.isArray(Je)}de.isArray=le;function fe(Je){return typeof Je=="boolean"}de.isBoolean=fe;function he(Je){return Je===null}de.isNull=he;function me(Je){return Je==null}de.isNullOrUndefined=me;function ge(Je){return typeof Je=="number"}de.isNumber=ge;function Se(Je){return typeof Je=="string"}de.isString=Se;function ve(Je){return typeof Je=="symbol"}de.isSymbol=ve;function be(Je){return Je===void 0}de.isUndefined=be;function Pe(Je){return Te(Je)&&ke(Je)==="[object RegExp]"}de.isRegExp=Pe;function Te(Je){return typeof Je=="object"&&Je!==null}de.isObject=Te;function _e(Je){return Te(Je)&&ke(Je)==="[object Date]"}de.isDate=_e;function je(Je){return Te(Je)&&(ke(Je)==="[object Error]"||Je instanceof Error)}de.isError=je;function Ce(Je){return typeof Je=="function"}de.isFunction=Ce;function Ie(Je){return Je===null||typeof Je=="boolean"||typeof Je=="number"||typeof Je=="string"||typeof Je=="symbol"||typeof Je=="undefined"}de.isPrimitive=Ie,de.isBuffer=x("./support/isBuffer");function ke(Je){return Object.prototype.toString.call(Je)}function $e(Je){return Je<10?"0"+Je.toString(10):Je.toString(10)}var Ne=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function nt(){var Je=new Date,Ye=[$e(Je.getHours()),$e(Je.getMinutes()),$e(Je.getSeconds())].join(":");return[Je.getDate(),Ne[Je.getMonth()],Ye].join(" ")}de.log=function(){console.log("%s - %s",nt(),de.format.apply(de,arguments))},de.inherits=x("inherits"),de._extend=function(Je,Ye){if(!Ye||!Te(Ye))return Je;for(var We=Object.keys(Ye),Fe=We.length;Fe--;)Je[We[Fe]]=Ye[We[Fe]];return Je};function qe(Je,Ye){return Object.prototype.hasOwnProperty.call(Je,Ye)}}).call(this)}).call(this,x("_process"),typeof ft!="undefined"?ft:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":84,_process:467,inherits:83}],86:[function(x,pe,de){(function(ae){(function(){"use strict";var ne=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],se=typeof globalThis=="undefined"?ae:globalThis;pe.exports=function(){for(var ue=[],ie=0;ie<ne.length;ie++)typeof se[ne[ie]]=="function"&&(ue[ue.length]=ne[ie]);return ue}}).call(this)}).call(this,typeof ft!="undefined"?ft:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],87:[function(x,pe,de){"use strict";de.byteLength=re,de.toByteArray=a,de.fromByteArray=b;for(var ae=[],ne=[],se=typeof Uint8Array!="undefined"?Uint8Array:Array,ce="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ue=0,ie=ce.length;ue<ie;++ue)ae[ue]=ce[ue],ne[ce.charCodeAt(ue)]=ue;ne[45]=62,ne[95]=63;function oe(ee){var te=ee.length;if(te%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var le=ee.indexOf("=");le===-1&&(le=te);var fe=le===te?0:4-le%4;return[le,fe]}function re(ee){var te=oe(ee),le=te[0],fe=te[1];return(le+fe)*3/4-fe}function z(ee,te,le){return(te+le)*3/4-le}function a(ee){var te,le=oe(ee),fe=le[0],he=le[1],me=new se(z(ee,fe,he)),ge=0,Se=he>0?fe-4:fe,ve;for(ve=0;ve<Se;ve+=4)te=ne[ee.charCodeAt(ve)]<<18|ne[ee.charCodeAt(ve+1)]<<12|ne[ee.charCodeAt(ve+2)]<<6|ne[ee.charCodeAt(ve+3)],me[ge++]=te>>16&255,me[ge++]=te>>8&255,me[ge++]=te&255;return he===2&&(te=ne[ee.charCodeAt(ve)]<<2|ne[ee.charCodeAt(ve+1)]>>4,me[ge++]=te&255),he===1&&(te=ne[ee.charCodeAt(ve)]<<10|ne[ee.charCodeAt(ve+1)]<<4|ne[ee.charCodeAt(ve+2)]>>2,me[ge++]=te>>8&255,me[ge++]=te&255),me}function y(ee){return ae[ee>>18&63]+ae[ee>>12&63]+ae[ee>>6&63]+ae[ee&63]}function E(ee,te,le){for(var fe,he=[],me=te;me<le;me+=3)fe=(ee[me]<<16&16711680)+(ee[me+1]<<8&65280)+(ee[me+2]&255),he.push(y(fe));return he.join("")}function b(ee){for(var te,le=ee.length,fe=le%3,he=[],me=16383,ge=0,Se=le-fe;ge<Se;ge+=me)he.push(E(ee,ge,ge+me>Se?Se:ge+me));return fe===1?(te=ee[le-1],he.push(ae[te>>2]+ae[te<<4&63]+"==")):fe===2&&(te=(ee[le-2]<<8)+ee[le-1],he.push(ae[te>>10]+ae[te>>4&63]+ae[te<<2&63]+"=")),he.join("")}},{}],88:[function(x,pe,de){(function(ae,ne,se){typeof pe!="undefined"&&pe.exports?pe.exports=se():typeof ye=="function"&&ye.amd?ye(ne,se):ae[ne]=se()})(this,"bowser",function(){var ae=!0;function ne(z){function a(Ye){var We=z.match(Ye);return We&&We.length>1&&We[1]||""}function y(Ye){var We=z.match(Ye);return We&&We.length>1&&We[2]||""}var E=a(/(ipod|iphone|ipad)/i).toLowerCase(),b=/like android/i.test(z),ee=!b&&/android/i.test(z),te=/nexus\s*[0-6]\s*/i.test(z),le=!te&&/nexus\s*[0-9]+/i.test(z),fe=/CrOS/.test(z),he=/silk/i.test(z),me=/sailfish/i.test(z),ge=/tizen/i.test(z),Se=/(web|hpw)(o|0)s/i.test(z),ve=/windows phone/i.test(z),be=/SamsungBrowser/i.test(z),Pe=!ve&&/windows/i.test(z),Te=!E&&!he&&/macintosh/i.test(z),_e=!ee&&!me&&!ge&&!Se&&/linux/i.test(z),je=y(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),Ce=a(/version\/(\d+(\.\d+)?)/i),Ie=/tablet/i.test(z)&&!/tablet pc/i.test(z),ke=!Ie&&/[^-]mobi/i.test(z),$e=/xbox/i.test(z),Ne;/opera/i.test(z)?Ne={name:"Opera",opera:ae,version:Ce||a(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(z)?Ne={name:"Opera",opera:ae,version:a(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||Ce}:/SamsungBrowser/i.test(z)?Ne={name:"Samsung Internet for Android",samsungBrowser:ae,version:Ce||a(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(z)?Ne={name:"NAVER Whale browser",whale:ae,version:a(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(z)?Ne={name:"MZ Browser",mzbrowser:ae,version:a(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(z)?Ne={name:"Opera Coast",coast:ae,version:Ce||a(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(z)?Ne={name:"Focus",focus:ae,version:a(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(z)?Ne={name:"Yandex Browser",yandexbrowser:ae,version:Ce||a(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(z)?Ne={name:"UC Browser",ucbrowser:ae,version:a(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(z)?Ne={name:"Maxthon",maxthon:ae,version:a(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(z)?Ne={name:"Epiphany",epiphany:ae,version:a(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(z)?Ne={name:"Puffin",puffin:ae,version:a(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(z)?Ne={name:"Sleipnir",sleipnir:ae,version:a(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(z)?Ne={name:"K-Meleon",kMeleon:ae,version:a(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:ve?(Ne={name:"Windows Phone",osname:"Windows Phone",windowsphone:ae},je?(Ne.msedge=ae,Ne.version=je):(Ne.msie=ae,Ne.version=a(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(z)?Ne={name:"Internet Explorer",msie:ae,version:a(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:fe?Ne={name:"Chrome",osname:"Chrome OS",chromeos:ae,chromeBook:ae,chrome:ae,version:a(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(z)?Ne={name:"Microsoft Edge",msedge:ae,version:je}:/vivaldi/i.test(z)?Ne={name:"Vivaldi",vivaldi:ae,version:a(/vivaldi\/(\d+(\.\d+)?)/i)||Ce}:me?Ne={name:"Sailfish",osname:"Sailfish OS",sailfish:ae,version:a(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(z)?Ne={name:"SeaMonkey",seamonkey:ae,version:a(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(z)?(Ne={name:"Firefox",firefox:ae,version:a(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(z)&&(Ne.firefoxos=ae,Ne.osname="Firefox OS")):he?Ne={name:"Amazon Silk",silk:ae,version:a(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(z)?Ne={name:"PhantomJS",phantom:ae,version:a(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(z)?Ne={name:"SlimerJS",slimer:ae,version:a(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(z)||/rim\stablet/i.test(z)?Ne={name:"BlackBerry",osname:"BlackBerry OS",blackberry:ae,version:Ce||a(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:Se?(Ne={name:"WebOS",osname:"WebOS",webos:ae,version:Ce||a(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(z)&&(Ne.touchpad=ae)):/bada/i.test(z)?Ne={name:"Bada",osname:"Bada",bada:ae,version:a(/dolfin\/(\d+(\.\d+)?)/i)}:ge?Ne={name:"Tizen",osname:"Tizen",tizen:ae,version:a(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||Ce}:/qupzilla/i.test(z)?Ne={name:"QupZilla",qupzilla:ae,version:a(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||Ce}:/chromium/i.test(z)?Ne={name:"Chromium",chromium:ae,version:a(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||Ce}:/chrome|crios|crmo/i.test(z)?Ne={name:"Chrome",chrome:ae,version:a(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:ee?Ne={name:"Android",version:Ce}:/safari|applewebkit/i.test(z)?(Ne={name:"Safari",safari:ae},Ce&&(Ne.version=Ce)):E?(Ne={name:E=="iphone"?"iPhone":E=="ipad"?"iPad":"iPod"},Ce&&(Ne.version=Ce)):/googlebot/i.test(z)?Ne={name:"Googlebot",googlebot:ae,version:a(/googlebot\/(\d+(\.\d+))/i)||Ce}:Ne={name:a(/^(.*)\/(.*) /),version:y(/^(.*)\/(.*) /)},!Ne.msedge&&/(apple)?webkit/i.test(z)?(/(apple)?webkit\/537\.36/i.test(z)?(Ne.name=Ne.name||"Blink",Ne.blink=ae):(Ne.name=Ne.name||"Webkit",Ne.webkit=ae),!Ne.version&&Ce&&(Ne.version=Ce)):!Ne.opera&&/gecko\//i.test(z)&&(Ne.name=Ne.name||"Gecko",Ne.gecko=ae,Ne.version=Ne.version||a(/gecko\/(\d+(\.\d+)?)/i)),!Ne.windowsphone&&(ee||Ne.silk)?(Ne.android=ae,Ne.osname="Android"):!Ne.windowsphone&&E?(Ne[E]=ae,Ne.ios=ae,Ne.osname="iOS"):Te?(Ne.mac=ae,Ne.osname="macOS"):$e?(Ne.xbox=ae,Ne.osname="Xbox"):Pe?(Ne.windows=ae,Ne.osname="Windows"):_e&&(Ne.linux=ae,Ne.osname="Linux");function nt(Ye){switch(Ye){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="";Ne.windows?qe=nt(a(/Windows ((NT|XP)( \d\d?.\d)?)/i)):Ne.windowsphone?qe=a(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):Ne.mac?(qe=a(/Mac OS X (\d+([_\.\s]\d+)*)/i),qe=qe.replace(/[_\s]/g,".")):E?(qe=a(/os (\d+([_\s]\d+)*) like mac os x/i),qe=qe.replace(/[_\s]/g,".")):ee?qe=a(/android[ \/-](\d+(\.\d+)*)/i):Ne.webos?qe=a(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):Ne.blackberry?qe=a(/rim\stablet\sos\s(\d+(\.\d+)*)/i):Ne.bada?qe=a(/bada\/(\d+(\.\d+)*)/i):Ne.tizen&&(qe=a(/tizen[\/\s](\d+(\.\d+)*)/i)),qe&&(Ne.osversion=qe);var Je=!Ne.windows&&qe.split(".")[0];return Ie||le||E=="ipad"||ee&&(Je==3||Je>=4&&!ke)||Ne.silk?Ne.tablet=ae:(ke||E=="iphone"||E=="ipod"||ee||te||Ne.blackberry||Ne.webos||Ne.bada)&&(Ne.mobile=ae),Ne.msedge||Ne.msie&&Ne.version>=10||Ne.yandexbrowser&&Ne.version>=15||Ne.vivaldi&&Ne.version>=1||Ne.chrome&&Ne.version>=20||Ne.samsungBrowser&&Ne.version>=4||Ne.whale&&ie([Ne.version,"1.0"])===1||Ne.mzbrowser&&ie([Ne.version,"6.0"])===1||Ne.focus&&ie([Ne.version,"1.0"])===1||Ne.firefox&&Ne.version>=20||Ne.safari&&Ne.version>=6||Ne.opera&&Ne.version>=10||Ne.ios&&Ne.osversion&&Ne.osversion.split(".")[0]>=6||Ne.blackberry&&Ne.version>=10.1||Ne.chromium&&Ne.version>=20?Ne.a=ae:Ne.msie&&Ne.version<10||Ne.chrome&&Ne.version<20||Ne.firefox&&Ne.version<20||Ne.safari&&Ne.version<6||Ne.opera&&Ne.version<10||Ne.ios&&Ne.osversion&&Ne.osversion.split(".")[0]<6||Ne.chromium&&Ne.version<20?Ne.c=ae:Ne.x=ae,Ne}var se=ne(typeof navigator!="undefined"&&navigator.userAgent||"");se.test=function(z){for(var a=0;a<z.length;++a){var y=z[a];if(typeof y=="string"&&y in se)return!0}return!1};function ce(z){return z.split(".").length}function ue(z,a){var y=[],E;if(Array.prototype.map)return Array.prototype.map.call(z,a);for(E=0;E<z.length;E++)y.push(a(z[E]));return y}function ie(z){for(var a=Math.max(ce(z[0]),ce(z[1])),y=ue(z,function(E){var b=a-ce(E);return E=E+new Array(b+1).join(".0"),ue(E.split("."),function(ee){return new Array(20-ee.length).join("0")+ee}).reverse()});--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(z,a,y){var E=se;typeof a=="string"&&(y=a,a=void 0),a===void 0&&(a=!1),y&&(E=ne(y));var b=""+E.version;for(var ee in z)if(z.hasOwnProperty(ee)&&E[ee]){if(typeof z[ee]!="string")throw new Error("Browser version in the minVersion map should be a string: "+ee+": "+String(z));return ie([b,z[ee]])<0}return a}function re(z,a,y){return!oe(z,a,y)}return se.isUnsupportedBrowser=oe,se.compareVersions=ie,se.check=re,se._detect=ne,se.detect=ne,se})},{}],89:[function(x,pe,de){},{}],90:[function(x,pe,de){(function(ae){(function(){"use strict";var ne=x("base64-js"),se=x("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 Le=new Uint8Array(1);return Le.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},Le.foo()===42}catch(Oe){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 ie(Le){if(Le>ce)throw new RangeError('The value "'+Le+'" is invalid for option "size"');var Oe=new Uint8Array(Le);return Oe.__proto__=oe.prototype,Oe}function oe(Le,Oe,xe){if(typeof Le=="number"){if(typeof Oe=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return y(Le)}return re(Le,Oe,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(Le,Oe,xe){if(typeof Le=="string")return E(Le,Oe);if(ArrayBuffer.isView(Le))return b(Le);if(Le==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Le);if(Ge(Le,ArrayBuffer)||Le&&Ge(Le.buffer,ArrayBuffer))return ee(Le,Oe,xe);if(typeof Le=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var Ae=Le.valueOf&&Le.valueOf();if(Ae!=null&&Ae!==Le)return oe.from(Ae,Oe,xe);var Ke=te(Le);if(Ke)return Ke;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof Le[Symbol.toPrimitive]=="function")return oe.from(Le[Symbol.toPrimitive]("string"),Oe,xe);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Le)}oe.from=function(Le,Oe,xe){return re(Le,Oe,xe)},oe.prototype.__proto__=Uint8Array.prototype,oe.__proto__=Uint8Array;function z(Le){if(typeof Le!="number")throw new TypeError('"size" argument must be of type number');if(Le<0)throw new RangeError('The value "'+Le+'" is invalid for option "size"')}function a(Le,Oe,xe){return z(Le),Le<=0?ie(Le):Oe!==void 0?typeof xe=="string"?ie(Le).fill(Oe,xe):ie(Le).fill(Oe):ie(Le)}oe.alloc=function(Le,Oe,xe){return a(Le,Oe,xe)};function y(Le){return z(Le),ie(Le<0?0:le(Le)|0)}oe.allocUnsafe=function(Le){return y(Le)},oe.allocUnsafeSlow=function(Le){return y(Le)};function E(Le,Oe){if((typeof Oe!="string"||Oe==="")&&(Oe="utf8"),!oe.isEncoding(Oe))throw new TypeError("Unknown encoding: "+Oe);var xe=he(Le,Oe)|0,Ae=ie(xe),Ke=Ae.write(Le,Oe);return Ke!==xe&&(Ae=Ae.slice(0,Ke)),Ae}function b(Le){for(var Oe=Le.length<0?0:le(Le.length)|0,xe=ie(Oe),Ae=0;Ae<Oe;Ae+=1)xe[Ae]=Le[Ae]&255;return xe}function ee(Le,Oe,xe){if(Oe<0||Le.byteLength<Oe)throw new RangeError('"offset" is outside of buffer bounds');if(Le.byteLength<Oe+(xe||0))throw new RangeError('"length" is outside of buffer bounds');var Ae;return Oe===void 0&&xe===void 0?Ae=new Uint8Array(Le):xe===void 0?Ae=new Uint8Array(Le,Oe):Ae=new Uint8Array(Le,Oe,xe),Ae.__proto__=oe.prototype,Ae}function te(Le){if(oe.isBuffer(Le)){var Oe=le(Le.length)|0,xe=ie(Oe);return xe.length===0||Le.copy(xe,0,0,Oe),xe}if(Le.length!==void 0)return typeof Le.length!="number"||De(Le.length)?ie(0):b(Le);if(Le.type==="Buffer"&&Array.isArray(Le.data))return b(Le.data)}function le(Le){if(Le>=ce)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ce.toString(16)+" bytes");return Le|0}function fe(Le){return+Le!=Le&&(Le=0),oe.alloc(+Le)}oe.isBuffer=function(Oe){return Oe!=null&&Oe._isBuffer===!0&&Oe!==oe.prototype},oe.compare=function(Oe,xe){if(Ge(Oe,Uint8Array)&&(Oe=oe.from(Oe,Oe.offset,Oe.byteLength)),Ge(xe,Uint8Array)&&(xe=oe.from(xe,xe.offset,xe.byteLength)),!oe.isBuffer(Oe)||!oe.isBuffer(xe))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Oe===xe)return 0;for(var Ae=Oe.length,Ke=xe.length,tt=0,He=Math.min(Ae,Ke);tt<He;++tt)if(Oe[tt]!==xe[tt]){Ae=Oe[tt],Ke=xe[tt];break}return Ae<Ke?-1:Ke<Ae?1:0},oe.isEncoding=function(Oe){switch(String(Oe).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},oe.concat=function(Oe,xe){if(!Array.isArray(Oe))throw new TypeError('"list" argument must be an Array of Buffers');if(Oe.length===0)return oe.alloc(0);var Ae;if(xe===void 0)for(xe=0,Ae=0;Ae<Oe.length;++Ae)xe+=Oe[Ae].length;var Ke=oe.allocUnsafe(xe),tt=0;for(Ae=0;Ae<Oe.length;++Ae){var He=Oe[Ae];if(Ge(He,Uint8Array)&&(He=oe.from(He)),!oe.isBuffer(He))throw new TypeError('"list" argument must be an Array of Buffers');He.copy(Ke,tt),tt+=He.length}return Ke};function he(Le,Oe){if(oe.isBuffer(Le))return Le.length;if(ArrayBuffer.isView(Le)||Ge(Le,ArrayBuffer))return Le.byteLength;if(typeof Le!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Le);var xe=Le.length,Ae=arguments.length>2&&arguments[2]===!0;if(!Ae&&xe===0)return 0;for(var Ke=!1;;)switch(Oe){case"ascii":case"latin1":case"binary":return xe;case"utf8":case"utf-8":return Re(Le).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return xe*2;case"hex":return xe>>>1;case"base64":return Be(Le).length;default:if(Ke)return Ae?-1:Re(Le).length;Oe=(""+Oe).toLowerCase(),Ke=!0}}oe.byteLength=he;function me(Le,Oe,xe){var Ae=!1;if((Oe===void 0||Oe<0)&&(Oe=0),Oe>this.length||((xe===void 0||xe>this.length)&&(xe=this.length),xe<=0)||(xe>>>=0,Oe>>>=0,xe<=Oe))return"";for(Le||(Le="utf8");;)switch(Le){case"hex":return Je(this,Oe,xe);case"utf8":case"utf-8":return ke(this,Oe,xe);case"ascii":return nt(this,Oe,xe);case"latin1":case"binary":return qe(this,Oe,xe);case"base64":return Ie(this,Oe,xe);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ye(this,Oe,xe);default:if(Ae)throw new TypeError("Unknown encoding: "+Le);Le=(Le+"").toLowerCase(),Ae=!0}}oe.prototype._isBuffer=!0;function ge(Le,Oe,xe){var Ae=Le[Oe];Le[Oe]=Le[xe],Le[xe]=Ae}oe.prototype.swap16=function(){var Oe=this.length;if(Oe%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var xe=0;xe<Oe;xe+=2)ge(this,xe,xe+1);return this},oe.prototype.swap32=function(){var Oe=this.length;if(Oe%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var xe=0;xe<Oe;xe+=4)ge(this,xe,xe+3),ge(this,xe+1,xe+2);return this},oe.prototype.swap64=function(){var Oe=this.length;if(Oe%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var xe=0;xe<Oe;xe+=8)ge(this,xe,xe+7),ge(this,xe+1,xe+6),ge(this,xe+2,xe+5),ge(this,xe+3,xe+4);return this},oe.prototype.toString=function(){var Oe=this.length;return Oe===0?"":arguments.length===0?ke(this,0,Oe):me.apply(this,arguments)},oe.prototype.toLocaleString=oe.prototype.toString,oe.prototype.equals=function(Oe){if(!oe.isBuffer(Oe))throw new TypeError("Argument must be a Buffer");return this===Oe?!0:oe.compare(this,Oe)===0},oe.prototype.inspect=function(){var Oe="",xe=de.INSPECT_MAX_BYTES;return Oe=this.toString("hex",0,xe).replace(/(.{2})/g,"$1 ").trim(),this.length>xe&&(Oe+=" ... "),"<Buffer "+Oe+">"},oe.prototype.compare=function(Oe,xe,Ae,Ke,tt){if(Ge(Oe,Uint8Array)&&(Oe=oe.from(Oe,Oe.offset,Oe.byteLength)),!oe.isBuffer(Oe))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Oe);if(xe===void 0&&(xe=0),Ae===void 0&&(Ae=Oe?Oe.length:0),Ke===void 0&&(Ke=0),tt===void 0&&(tt=this.length),xe<0||Ae>Oe.length||Ke<0||tt>this.length)throw new RangeError("out of range index");if(Ke>=tt&&xe>=Ae)return 0;if(Ke>=tt)return-1;if(xe>=Ae)return 1;if(xe>>>=0,Ae>>>=0,Ke>>>=0,tt>>>=0,this===Oe)return 0;for(var He=tt-Ke,ot=Ae-xe,mt=Math.min(He,ot),lt=this.slice(Ke,tt),pt=Oe.slice(xe,Ae),st=0;st<mt;++st)if(lt[st]!==pt[st]){He=lt[st],ot=pt[st];break}return He<ot?-1:ot<He?1:0};function Se(Le,Oe,xe,Ae,Ke){if(Le.length===0)return-1;if(typeof xe=="string"?(Ae=xe,xe=0):xe>2147483647?xe=2147483647:xe<-2147483648&&(xe=-2147483648),xe=+xe,De(xe)&&(xe=Ke?0:Le.length-1),xe<0&&(xe=Le.length+xe),xe>=Le.length){if(Ke)return-1;xe=Le.length-1}else if(xe<0)if(Ke)xe=0;else return-1;if(typeof Oe=="string"&&(Oe=oe.from(Oe,Ae)),oe.isBuffer(Oe))return Oe.length===0?-1:ve(Le,Oe,xe,Ae,Ke);if(typeof Oe=="number")return Oe=Oe&255,typeof Uint8Array.prototype.indexOf=="function"?Ke?Uint8Array.prototype.indexOf.call(Le,Oe,xe):Uint8Array.prototype.lastIndexOf.call(Le,Oe,xe):ve(Le,[Oe],xe,Ae,Ke);throw new TypeError("val must be string, number or Buffer")}function ve(Le,Oe,xe,Ae,Ke){var tt=1,He=Le.length,ot=Oe.length;if(Ae!==void 0&&(Ae=String(Ae).toLowerCase(),Ae==="ucs2"||Ae==="ucs-2"||Ae==="utf16le"||Ae==="utf-16le")){if(Le.length<2||Oe.length<2)return-1;tt=2,He/=2,ot/=2,xe/=2}function mt(rt,ct){return tt===1?rt[ct]:rt.readUInt16BE(ct*tt)}var lt;if(Ke){var pt=-1;for(lt=xe;lt<He;lt++)if(mt(Le,lt)===mt(Oe,pt===-1?0:lt-pt)){if(pt===-1&&(pt=lt),lt-pt+1===ot)return pt*tt}else pt!==-1&&(lt-=lt-pt),pt=-1}else for(xe+ot>He&&(xe=He-ot),lt=xe;lt>=0;lt--){for(var st=!0,vt=0;vt<ot;vt++)if(mt(Le,lt+vt)!==mt(Oe,vt)){st=!1;break}if(st)return lt}return-1}oe.prototype.includes=function(Oe,xe,Ae){return this.indexOf(Oe,xe,Ae)!==-1},oe.prototype.indexOf=function(Oe,xe,Ae){return Se(this,Oe,xe,Ae,!0)},oe.prototype.lastIndexOf=function(Oe,xe,Ae){return Se(this,Oe,xe,Ae,!1)};function be(Le,Oe,xe,Ae){xe=Number(xe)||0;var Ke=Le.length-xe;Ae?(Ae=Number(Ae),Ae>Ke&&(Ae=Ke)):Ae=Ke;var tt=Oe.length;Ae>tt/2&&(Ae=tt/2);for(var He=0;He<Ae;++He){var ot=parseInt(Oe.substr(He*2,2),16);if(De(ot))return He;Le[xe+He]=ot}return He}function Pe(Le,Oe,xe,Ae){return Qe(Re(Oe,Le.length-xe),Le,xe,Ae)}function Te(Le,Oe,xe,Ae){return Qe(it(Oe),Le,xe,Ae)}function _e(Le,Oe,xe,Ae){return Te(Le,Oe,xe,Ae)}function je(Le,Oe,xe,Ae){return Qe(Be(Oe),Le,xe,Ae)}function Ce(Le,Oe,xe,Ae){return Qe(Me(Oe,Le.length-xe),Le,xe,Ae)}oe.prototype.write=function(Oe,xe,Ae,Ke){if(xe===void 0)Ke="utf8",Ae=this.length,xe=0;else if(Ae===void 0&&typeof xe=="string")Ke=xe,Ae=this.length,xe=0;else if(isFinite(xe))xe=xe>>>0,isFinite(Ae)?(Ae=Ae>>>0,Ke===void 0&&(Ke="utf8")):(Ke=Ae,Ae=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var tt=this.length-xe;if((Ae===void 0||Ae>tt)&&(Ae=tt),Oe.length>0&&(Ae<0||xe<0)||xe>this.length)throw new RangeError("Attempt to write outside buffer bounds");Ke||(Ke="utf8");for(var He=!1;;)switch(Ke){case"hex":return be(this,Oe,xe,Ae);case"utf8":case"utf-8":return Pe(this,Oe,xe,Ae);case"ascii":return Te(this,Oe,xe,Ae);case"latin1":case"binary":return _e(this,Oe,xe,Ae);case"base64":return je(this,Oe,xe,Ae);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ce(this,Oe,xe,Ae);default:if(He)throw new TypeError("Unknown encoding: "+Ke);Ke=(""+Ke).toLowerCase(),He=!0}},oe.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Ie(Le,Oe,xe){return Oe===0&&xe===Le.length?ne.fromByteArray(Le):ne.fromByteArray(Le.slice(Oe,xe))}function ke(Le,Oe,xe){xe=Math.min(Le.length,xe);for(var Ae=[],Ke=Oe;Ke<xe;){var tt=Le[Ke],He=null,ot=tt>239?4:tt>223?3:tt>191?2:1;if(Ke+ot<=xe){var mt,lt,pt,st;switch(ot){case 1:tt<128&&(He=tt);break;case 2:mt=Le[Ke+1],(mt&192)===128&&(st=(tt&31)<<6|mt&63,st>127&&(He=st));break;case 3:mt=Le[Ke+1],lt=Le[Ke+2],(mt&192)===128&&(lt&192)===128&&(st=(tt&15)<<12|(mt&63)<<6|lt&63,st>2047&&(st<55296||st>57343)&&(He=st));break;case 4:mt=Le[Ke+1],lt=Le[Ke+2],pt=Le[Ke+3],(mt&192)===128&&(lt&192)===128&&(pt&192)===128&&(st=(tt&15)<<18|(mt&63)<<12|(lt&63)<<6|pt&63,st>65535&&st<1114112&&(He=st))}}He===null?(He=65533,ot=1):He>65535&&(He-=65536,Ae.push(He>>>10&1023|55296),He=56320|He&1023),Ae.push(He),Ke+=ot}return Ne(Ae)}var $e=4096;function Ne(Le){var Oe=Le.length;if(Oe<=$e)return String.fromCharCode.apply(String,Le);for(var xe="",Ae=0;Ae<Oe;)xe+=String.fromCharCode.apply(String,Le.slice(Ae,Ae+=$e));return xe}function nt(Le,Oe,xe){var Ae="";xe=Math.min(Le.length,xe);for(var Ke=Oe;Ke<xe;++Ke)Ae+=String.fromCharCode(Le[Ke]&127);return Ae}function qe(Le,Oe,xe){var Ae="";xe=Math.min(Le.length,xe);for(var Ke=Oe;Ke<xe;++Ke)Ae+=String.fromCharCode(Le[Ke]);return Ae}function Je(Le,Oe,xe){var Ae=Le.length;(!Oe||Oe<0)&&(Oe=0),(!xe||xe<0||xe>Ae)&&(xe=Ae);for(var Ke="",tt=Oe;tt<xe;++tt)Ke+=ze(Le[tt]);return Ke}function Ye(Le,Oe,xe){for(var Ae=Le.slice(Oe,xe),Ke="",tt=0;tt<Ae.length;tt+=2)Ke+=String.fromCharCode(Ae[tt]+Ae[tt+1]*256);return Ke}oe.prototype.slice=function(Oe,xe){var Ae=this.length;Oe=~~Oe,xe=xe===void 0?Ae:~~xe,Oe<0?(Oe+=Ae,Oe<0&&(Oe=0)):Oe>Ae&&(Oe=Ae),xe<0?(xe+=Ae,xe<0&&(xe=0)):xe>Ae&&(xe=Ae),xe<Oe&&(xe=Oe);var Ke=this.subarray(Oe,xe);return Ke.__proto__=oe.prototype,Ke};function We(Le,Oe,xe){if(Le%1!==0||Le<0)throw new RangeError("offset is not uint");if(Le+Oe>xe)throw new RangeError("Trying to access beyond buffer length")}oe.prototype.readUIntLE=function(Oe,xe,Ae){Oe=Oe>>>0,xe=xe>>>0,Ae||We(Oe,xe,this.length);for(var Ke=this[Oe],tt=1,He=0;++He<xe&&(tt*=256);)Ke+=this[Oe+He]*tt;return Ke},oe.prototype.readUIntBE=function(Oe,xe,Ae){Oe=Oe>>>0,xe=xe>>>0,Ae||We(Oe,xe,this.length);for(var Ke=this[Oe+--xe],tt=1;xe>0&&(tt*=256);)Ke+=this[Oe+--xe]*tt;return Ke},oe.prototype.readUInt8=function(Oe,xe){return Oe=Oe>>>0,xe||We(Oe,1,this.length),this[Oe]},oe.prototype.readUInt16LE=function(Oe,xe){return Oe=Oe>>>0,xe||We(Oe,2,this.length),this[Oe]|this[Oe+1]<<8},oe.prototype.readUInt16BE=function(Oe,xe){return Oe=Oe>>>0,xe||We(Oe,2,this.length),this[Oe]<<8|this[Oe+1]},oe.prototype.readUInt32LE=function(Oe,xe){return Oe=Oe>>>0,xe||We(Oe,4,this.length),(this[Oe]|this[Oe+1]<<8|this[Oe+2]<<16)+this[Oe+3]*16777216},oe.prototype.readUInt32BE=function(Oe,xe){return Oe=Oe>>>0,xe||We(Oe,4,this.length),this[Oe]*16777216+(this[Oe+1]<<16|this[Oe+2]<<8|this[Oe+3])},oe.prototype.readIntLE=function(Oe,xe,Ae){Oe=Oe>>>0,xe=xe>>>0,Ae||We(Oe,xe,this.length);for(var Ke=this[Oe],tt=1,He=0;++He<xe&&(tt*=256);)Ke+=this[Oe+He]*tt;return tt*=128,Ke>=tt&&(Ke-=Math.pow(2,8*xe)),Ke},oe.prototype.readIntBE=function(Oe,xe,Ae){Oe=Oe>>>0,xe=xe>>>0,Ae||We(Oe,xe,this.length);for(var Ke=xe,tt=1,He=this[Oe+--Ke];Ke>0&&(tt*=256);)He+=this[Oe+--Ke]*tt;return tt*=128,He>=tt&&(He-=Math.pow(2,8*xe)),He},oe.prototype.readInt8=function(Oe,xe){return Oe=Oe>>>0,xe||We(Oe,1,this.length),this[Oe]&128?(255-this[Oe]+1)*-1:this[Oe]},oe.prototype.readInt16LE=function(Oe,xe){Oe=Oe>>>0,xe||We(Oe,2,this.length);var Ae=this[Oe]|this[Oe+1]<<8;return Ae&32768?Ae|4294901760:Ae},oe.prototype.readInt16BE=function(Oe,xe){Oe=Oe>>>0,xe||We(Oe,2,this.length);var Ae=this[Oe+1]|this[Oe]<<8;return Ae&32768?Ae|4294901760:Ae},oe.prototype.readInt32LE=function(Oe,xe){return Oe=Oe>>>0,xe||We(Oe,4,this.length),this[Oe]|this[Oe+1]<<8|this[Oe+2]<<16|this[Oe+3]<<24},oe.prototype.readInt32BE=function(Oe,xe){return Oe=Oe>>>0,xe||We(Oe,4,this.length),this[Oe]<<24|this[Oe+1]<<16|this[Oe+2]<<8|this[Oe+3]},oe.prototype.readFloatLE=function(Oe,xe){return Oe=Oe>>>0,xe||We(Oe,4,this.length),se.read(this,Oe,!0,23,4)},oe.prototype.readFloatBE=function(Oe,xe){return Oe=Oe>>>0,xe||We(Oe,4,this.length),se.read(this,Oe,!1,23,4)},oe.prototype.readDoubleLE=function(Oe,xe){return Oe=Oe>>>0,xe||We(Oe,8,this.length),se.read(this,Oe,!0,52,8)},oe.prototype.readDoubleBE=function(Oe,xe){return Oe=Oe>>>0,xe||We(Oe,8,this.length),se.read(this,Oe,!1,52,8)};function Fe(Le,Oe,xe,Ae,Ke,tt){if(!oe.isBuffer(Le))throw new TypeError('"buffer" argument must be a Buffer instance');if(Oe>Ke||Oe<tt)throw new RangeError('"value" argument is out of bounds');if(xe+Ae>Le.length)throw new RangeError("Index out of range")}oe.prototype.writeUIntLE=function(Oe,xe,Ae,Ke){if(Oe=+Oe,xe=xe>>>0,Ae=Ae>>>0,!Ke){var tt=Math.pow(2,8*Ae)-1;Fe(this,Oe,xe,Ae,tt,0)}var He=1,ot=0;for(this[xe]=Oe&255;++ot<Ae&&(He*=256);)this[xe+ot]=Oe/He&255;return xe+Ae},oe.prototype.writeUIntBE=function(Oe,xe,Ae,Ke){if(Oe=+Oe,xe=xe>>>0,Ae=Ae>>>0,!Ke){var tt=Math.pow(2,8*Ae)-1;Fe(this,Oe,xe,Ae,tt,0)}var He=Ae-1,ot=1;for(this[xe+He]=Oe&255;--He>=0&&(ot*=256);)this[xe+He]=Oe/ot&255;return xe+Ae},oe.prototype.writeUInt8=function(Oe,xe,Ae){return Oe=+Oe,xe=xe>>>0,Ae||Fe(this,Oe,xe,1,255,0),this[xe]=Oe&255,xe+1},oe.prototype.writeUInt16LE=function(Oe,xe,Ae){return Oe=+Oe,xe=xe>>>0,Ae||Fe(this,Oe,xe,2,65535,0),this[xe]=Oe&255,this[xe+1]=Oe>>>8,xe+2},oe.prototype.writeUInt16BE=function(Oe,xe,Ae){return Oe=+Oe,xe=xe>>>0,Ae||Fe(this,Oe,xe,2,65535,0),this[xe]=Oe>>>8,this[xe+1]=Oe&255,xe+2},oe.prototype.writeUInt32LE=function(Oe,xe,Ae){return Oe=+Oe,xe=xe>>>0,Ae||Fe(this,Oe,xe,4,4294967295,0),this[xe+3]=Oe>>>24,this[xe+2]=Oe>>>16,this[xe+1]=Oe>>>8,this[xe]=Oe&255,xe+4},oe.prototype.writeUInt32BE=function(Oe,xe,Ae){return Oe=+Oe,xe=xe>>>0,Ae||Fe(this,Oe,xe,4,4294967295,0),this[xe]=Oe>>>24,this[xe+1]=Oe>>>16,this[xe+2]=Oe>>>8,this[xe+3]=Oe&255,xe+4},oe.prototype.writeIntLE=function(Oe,xe,Ae,Ke){if(Oe=+Oe,xe=xe>>>0,!Ke){var tt=Math.pow(2,8*Ae-1);Fe(this,Oe,xe,Ae,tt-1,-tt)}var He=0,ot=1,mt=0;for(this[xe]=Oe&255;++He<Ae&&(ot*=256);)Oe<0&&mt===0&&this[xe+He-1]!==0&&(mt=1),this[xe+He]=(Oe/ot>>0)-mt&255;return xe+Ae},oe.prototype.writeIntBE=function(Oe,xe,Ae,Ke){if(Oe=+Oe,xe=xe>>>0,!Ke){var tt=Math.pow(2,8*Ae-1);Fe(this,Oe,xe,Ae,tt-1,-tt)}var He=Ae-1,ot=1,mt=0;for(this[xe+He]=Oe&255;--He>=0&&(ot*=256);)Oe<0&&mt===0&&this[xe+He+1]!==0&&(mt=1),this[xe+He]=(Oe/ot>>0)-mt&255;return xe+Ae},oe.prototype.writeInt8=function(Oe,xe,Ae){return Oe=+Oe,xe=xe>>>0,Ae||Fe(this,Oe,xe,1,127,-128),Oe<0&&(Oe=255+Oe+1),this[xe]=Oe&255,xe+1},oe.prototype.writeInt16LE=function(Oe,xe,Ae){return Oe=+Oe,xe=xe>>>0,Ae||Fe(this,Oe,xe,2,32767,-32768),this[xe]=Oe&255,this[xe+1]=Oe>>>8,xe+2},oe.prototype.writeInt16BE=function(Oe,xe,Ae){return Oe=+Oe,xe=xe>>>0,Ae||Fe(this,Oe,xe,2,32767,-32768),this[xe]=Oe>>>8,this[xe+1]=Oe&255,xe+2},oe.prototype.writeInt32LE=function(Oe,xe,Ae){return Oe=+Oe,xe=xe>>>0,Ae||Fe(this,Oe,xe,4,2147483647,-2147483648),this[xe]=Oe&255,this[xe+1]=Oe>>>8,this[xe+2]=Oe>>>16,this[xe+3]=Oe>>>24,xe+4},oe.prototype.writeInt32BE=function(Oe,xe,Ae){return Oe=+Oe,xe=xe>>>0,Ae||Fe(this,Oe,xe,4,2147483647,-2147483648),Oe<0&&(Oe=4294967295+Oe+1),this[xe]=Oe>>>24,this[xe+1]=Oe>>>16,this[xe+2]=Oe>>>8,this[xe+3]=Oe&255,xe+4};function Ue(Le,Oe,xe,Ae,Ke,tt){if(xe+Ae>Le.length)throw new RangeError("Index out of range");if(xe<0)throw new RangeError("Index out of range")}function at(Le,Oe,xe,Ae,Ke){return Oe=+Oe,xe=xe>>>0,Ke||Ue(Le,Oe,xe,4,34028234663852886e22,-34028234663852886e22),se.write(Le,Oe,xe,Ae,23,4),xe+4}oe.prototype.writeFloatLE=function(Oe,xe,Ae){return at(this,Oe,xe,!0,Ae)},oe.prototype.writeFloatBE=function(Oe,xe,Ae){return at(this,Oe,xe,!1,Ae)};function Xe(Le,Oe,xe,Ae,Ke){return Oe=+Oe,xe=xe>>>0,Ke||Ue(Le,Oe,xe,8,17976931348623157e292,-17976931348623157e292),se.write(Le,Oe,xe,Ae,52,8),xe+8}oe.prototype.writeDoubleLE=function(Oe,xe,Ae){return Xe(this,Oe,xe,!0,Ae)},oe.prototype.writeDoubleBE=function(Oe,xe,Ae){return Xe(this,Oe,xe,!1,Ae)},oe.prototype.copy=function(Oe,xe,Ae,Ke){if(!oe.isBuffer(Oe))throw new TypeError("argument should be a Buffer");if(Ae||(Ae=0),!Ke&&Ke!==0&&(Ke=this.length),xe>=Oe.length&&(xe=Oe.length),xe||(xe=0),Ke>0&&Ke<Ae&&(Ke=Ae),Ke===Ae||Oe.length===0||this.length===0)return 0;if(xe<0)throw new RangeError("targetStart out of bounds");if(Ae<0||Ae>=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),Oe.length-xe<Ke-Ae&&(Ke=Oe.length-xe+Ae);var tt=Ke-Ae;if(this===Oe&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin(xe,Ae,Ke);else if(this===Oe&&Ae<xe&&xe<Ke)for(var He=tt-1;He>=0;--He)Oe[He+xe]=this[He+Ae];else Uint8Array.prototype.set.call(Oe,this.subarray(Ae,Ke),xe);return tt},oe.prototype.fill=function(Oe,xe,Ae,Ke){if(typeof Oe=="string"){if(typeof xe=="string"?(Ke=xe,xe=0,Ae=this.length):typeof Ae=="string"&&(Ke=Ae,Ae=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(Oe.length===1){var tt=Oe.charCodeAt(0);(Ke==="utf8"&&tt<128||Ke==="latin1")&&(Oe=tt)}}else typeof Oe=="number"&&(Oe=Oe&255);if(xe<0||this.length<xe||this.length<Ae)throw new RangeError("Out of range index");if(Ae<=xe)return this;xe=xe>>>0,Ae=Ae===void 0?this.length:Ae>>>0,Oe||(Oe=0);var He;if(typeof Oe=="number")for(He=xe;He<Ae;++He)this[He]=Oe;else{var ot=oe.isBuffer(Oe)?Oe:oe.from(Oe,Ke),mt=ot.length;if(mt===0)throw new TypeError('The value "'+Oe+'" is invalid for argument "value"');for(He=0;He<Ae-xe;++He)this[He+xe]=ot[He%mt]}return this};var ut=/[^+/0-9A-Za-z-_]/g;function Ze(Le){if(Le=Le.split("=")[0],Le=Le.trim().replace(ut,""),Le.length<2)return"";for(;Le.length%4!==0;)Le=Le+"=";return Le}function ze(Le){return Le<16?"0"+Le.toString(16):Le.toString(16)}function Re(Le,Oe){Oe=Oe||1/0;for(var xe,Ae=Le.length,Ke=null,tt=[],He=0;He<Ae;++He){if(xe=Le.charCodeAt(He),xe>55295&&xe<57344){if(!Ke){if(xe>56319){(Oe-=3)>-1&&tt.push(239,191,189);continue}else if(He+1===Ae){(Oe-=3)>-1&&tt.push(239,191,189);continue}Ke=xe;continue}if(xe<56320){(Oe-=3)>-1&&tt.push(239,191,189),Ke=xe;continue}xe=(Ke-55296<<10|xe-56320)+65536}else Ke&&(Oe-=3)>-1&&tt.push(239,191,189);if(Ke=null,xe<128){if((Oe-=1)<0)break;tt.push(xe)}else if(xe<2048){if((Oe-=2)<0)break;tt.push(xe>>6|192,xe&63|128)}else if(xe<65536){if((Oe-=3)<0)break;tt.push(xe>>12|224,xe>>6&63|128,xe&63|128)}else if(xe<1114112){if((Oe-=4)<0)break;tt.push(xe>>18|240,xe>>12&63|128,xe>>6&63|128,xe&63|128)}else throw new Error("Invalid code point")}return tt}function it(Le){for(var Oe=[],xe=0;xe<Le.length;++xe)Oe.push(Le.charCodeAt(xe)&255);return Oe}function Me(Le,Oe){for(var xe,Ae,Ke,tt=[],He=0;He<Le.length&&!((Oe-=2)<0);++He)xe=Le.charCodeAt(He),Ae=xe>>8,Ke=xe%256,tt.push(Ke),tt.push(Ae);return tt}function Be(Le){return ne.toByteArray(Ze(Le))}function Qe(Le,Oe,xe,Ae){for(var Ke=0;Ke<Ae&&!(Ke+xe>=Oe.length||Ke>=Le.length);++Ke)Oe[Ke+xe]=Le[Ke];return Ke}function Ge(Le,Oe){return Le instanceof Oe||Le!=null&&Le.constructor!=null&&Le.constructor.name!=null&&Le.constructor.name===Oe.name}function De(Le){return Le!==Le}}).call(this)}).call(this,x("buffer").Buffer)},{"base64-js":87,buffer:90,ieee754:357}],91:[function(x,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(x,pe,de){"use strict";var ae=x("get-intrinsic"),ne=x("./"),se=ne(ae("String.prototype.indexOf"));pe.exports=function(ue,ie){var oe=ae(ue,!!ie);return typeof oe=="function"&&se(ue,".prototype.")>-1?ne(oe):oe}},{"./":93,"get-intrinsic":348}],93:[function(x,pe,de){"use strict";var ae=x("function-bind"),ne=x("get-intrinsic"),se=ne("%Function.prototype.apply%"),ce=ne("%Function.prototype.call%"),ue=ne("%Reflect.apply%",!0)||ae.call(ce,se),ie=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 E=ue(ae,ce,arguments);if(ie&&oe){var b=ie(E,"length");b.configurable&&oe(E,"length",{value:1+re(0,y.length-(arguments.length-1))})}return E};var z=function(){return ue(ae,se,arguments)};oe?oe(pe.exports,"apply",{value:z}):pe.exports.apply=z},{"function-bind":347,"get-intrinsic":348}],94:[function(x,pe,de){"use strict";var ae=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=ae.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 ie=0;ie<ue.length;ie++)oe=ue[ie],ce[oe]===void 0&&(ce[oe]=this.src[oe]);return ce}for(var ie=0;ie<ue.length;ie++){var oe=ue[ie];if(se(ce,oe)){var re=this.src.__lookupGetter__(oe),z=this.src.__lookupSetter__(oe);re&&ce.__defineGetter__(oe,re),z&&ce.__defineSetter__(oe,z),!re&&!z&&(ce[oe]=this.src[oe])}}return ce},ne.prototype.toCover=function(ce){for(var ue=this.keys||Object.keys(this.src),ie=0;ie<ue.length;ie++){var oe=ue[ie];delete ce[oe];var re=this.src.__lookupGetter__(oe),z=this.src.__lookupSetter__(oe);re&&ce.__defineGetter__(oe,re),z&&ce.__defineSetter__(oe,z),!re&&!z&&(ce[oe]=this.src[oe])}},ne.prototype.override=ne.prototype.toCover,ne.prototype.and=function(ce){var ue={};return this.to(ue),this.src=ce,this.to(ue),this.src=ue,this};function se(ce,ue){return ce[ue]===void 0&&ce.__lookupGetter__(ue)===void 0&&ce.__lookupSetter__(ue)===void 0}},{}],95:[function(x,pe,de){var ae=x("../internals/global"),ne=x("../internals/is-callable"),se=x("../internals/try-to-string"),ce=ae.TypeError;pe.exports=function(ue){if(ne(ue))return ue;throw ce(se(ue)+" is not a function")}},{"../internals/global":163,"../internals/is-callable":176,"../internals/try-to-string":257}],96:[function(x,pe,de){var ae=x("../internals/global"),ne=x("../internals/is-constructor"),se=x("../internals/try-to-string"),ce=ae.TypeError;pe.exports=function(ue){if(ne(ue))return ue;throw ce(se(ue)+" is not a constructor")}},{"../internals/global":163,"../internals/is-constructor":177,"../internals/try-to-string":257}],97:[function(x,pe,de){var ae=x("../internals/global"),ne=x("../internals/is-callable"),se=ae.String,ce=ae.TypeError;pe.exports=function(ue){if(typeof ue=="object"||ne(ue))return ue;throw ce("Can't set "+se(ue)+" as a prototype")}},{"../internals/global":163,"../internals/is-callable":176}],98:[function(x,pe,de){var ae=x("../internals/well-known-symbol"),ne=x("../internals/object-create"),se=x("../internals/object-define-property"),ce=ae("unscopables"),ue=Array.prototype;ue[ce]==null&&se.f(ue,ce,{configurable:!0,value:ne(null)}),pe.exports=function(ie){ue[ce][ie]=!0}},{"../internals/object-create":196,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],99:[function(x,pe,de){"use strict";var ae=x("../internals/string-multibyte").charAt;pe.exports=function(ne,se,ce){return se+(ce?ae(ne,se).length:1)}},{"../internals/string-multibyte":239}],100:[function(x,pe,de){var ae=x("../internals/global"),ne=x("../internals/object-is-prototype-of"),se=ae.TypeError;pe.exports=function(ce,ue){if(ne(ue,ce))return ce;throw se("Incorrect invocation")}},{"../internals/global":163,"../internals/object-is-prototype-of":204}],101:[function(x,pe,de){var ae=x("../internals/global"),ne=x("../internals/is-object"),se=ae.String,ce=ae.TypeError;pe.exports=function(ue){if(ne(ue))return ue;throw ce(se(ue)+" is not an object")}},{"../internals/global":163,"../internals/is-object":180}],102:[function(x,pe,de){pe.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},{}],103:[function(x,pe,de){"use strict";var ae=x("../internals/array-buffer-native"),ne=x("../internals/descriptors"),se=x("../internals/global"),ce=x("../internals/is-callable"),ue=x("../internals/is-object"),ie=x("../internals/has-own-property"),oe=x("../internals/classof"),re=x("../internals/try-to-string"),z=x("../internals/create-non-enumerable-property"),a=x("../internals/redefine"),y=x("../internals/object-define-property").f,E=x("../internals/object-is-prototype-of"),b=x("../internals/object-get-prototype-of"),ee=x("../internals/object-set-prototype-of"),te=x("../internals/well-known-symbol"),le=x("../internals/uid"),fe=se.Int8Array,he=fe&&fe.prototype,me=se.Uint8ClampedArray,ge=me&&me.prototype,Se=fe&&b(fe),ve=he&&b(he),be=Object.prototype,Pe=se.TypeError,Te=te("toStringTag"),_e=le("TYPED_ARRAY_TAG"),je=le("TYPED_ARRAY_CONSTRUCTOR"),Ce=ae&&!!ee&&oe(se.opera)!=="Opera",Ie=!1,ke,$e,Ne,nt={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},qe={BigInt64Array:8,BigUint64Array:8},Je=function(ut){if(!ue(ut))return!1;var Ze=oe(ut);return Ze==="DataView"||ie(nt,Ze)||ie(qe,Ze)},Ye=function(Xe){if(!ue(Xe))return!1;var ut=oe(Xe);return ie(nt,ut)||ie(qe,ut)},We=function(Xe){if(Ye(Xe))return Xe;throw Pe("Target is not a typed array")},Fe=function(Xe){if(ce(Xe)&&(!ee||E(Se,Xe)))return Xe;throw Pe(re(Xe)+" is not a typed array constructor")},Ue=function(Xe,ut,Ze,ze){if(ne){if(Ze)for(var Re in nt){var it=se[Re];if(it&&ie(it.prototype,Xe))try{delete it.prototype[Xe]}catch(Me){try{it.prototype[Xe]=ut}catch(Be){}}}(!ve[Xe]||Ze)&&a(ve,Xe,Ze?ut:Ce&&he[Xe]||ut,ze)}},at=function(Xe,ut,Ze){var ze,Re;if(ne){if(ee){if(Ze){for(ze in nt)if(Re=se[ze],Re&&ie(Re,Xe))try{delete Re[Xe]}catch(it){}}if(!Se[Xe]||Ze)try{return a(Se,Xe,Ze?ut:Ce&&Se[Xe]||ut)}catch(it){}else return}for(ze in nt)Re=se[ze],Re&&(!Re[Xe]||Ze)&&a(Re,Xe,ut)}};for(ke in nt)$e=se[ke],Ne=$e&&$e.prototype,Ne?z(Ne,je,$e):Ce=!1;for(ke in qe)$e=se[ke],Ne=$e&&$e.prototype,Ne&&z(Ne,je,$e);if((!Ce||!ce(Se)||Se===Function.prototype)&&(Se=function(){throw Pe("Incorrect invocation")},Ce))for(ke in nt)se[ke]&&ee(se[ke],Se);if((!Ce||!ve||ve===be)&&(ve=Se.prototype,Ce))for(ke in nt)se[ke]&&ee(se[ke].prototype,ve);if(Ce&&b(ge)!==ve&&ee(ge,ve),ne&&!ie(ve,Te)){Ie=!0,y(ve,Te,{get:function(){return ue(this)?this[_e]:void 0}});for(ke in nt)se[ke]&&z(se[ke],_e,ke)}pe.exports={NATIVE_ARRAY_BUFFER_VIEWS:Ce,TYPED_ARRAY_CONSTRUCTOR:je,TYPED_ARRAY_TAG:Ie&&_e,aTypedArray:We,aTypedArrayConstructor:Fe,exportTypedArrayMethod:Ue,exportTypedArrayStaticMethod:at,isView:Je,isTypedArray:Ye,TypedArray:Se,TypedArrayPrototype:ve}},{"../internals/array-buffer-native":102,"../internals/classof":124,"../internals/create-non-enumerable-property":129,"../internals/descriptors":134,"../internals/global":163,"../internals/has-own-property":164,"../internals/is-callable":176,"../internals/is-object":180,"../internals/object-define-property":198,"../internals/object-get-prototype-of":203,"../internals/object-is-prototype-of":204,"../internals/object-set-prototype-of":208,"../internals/redefine":222,"../internals/try-to-string":257,"../internals/uid":263,"../internals/well-known-symbol":268}],104:[function(x,pe,de){"use strict";var ae=x("../internals/global"),ne=x("../internals/function-uncurry-this"),se=x("../internals/descriptors"),ce=x("../internals/array-buffer-native"),ue=x("../internals/function-name"),ie=x("../internals/create-non-enumerable-property"),oe=x("../internals/redefine-all"),re=x("../internals/fails"),z=x("../internals/an-instance"),a=x("../internals/to-integer-or-infinity"),y=x("../internals/to-length"),E=x("../internals/to-index"),b=x("../internals/ieee754"),ee=x("../internals/object-get-prototype-of"),te=x("../internals/object-set-prototype-of"),le=x("../internals/object-get-own-property-names").f,fe=x("../internals/object-define-property").f,he=x("../internals/array-fill"),me=x("../internals/array-slice-simple"),ge=x("../internals/set-to-string-tag"),Se=x("../internals/internal-state"),ve=ue.PROPER,be=ue.CONFIGURABLE,Pe=Se.get,Te=Se.set,_e="ArrayBuffer",je="DataView",Ce="prototype",Ie="Wrong length",ke="Wrong index",$e=ae[_e],Ne=$e,nt=Ne&&Ne[Ce],qe=ae[je],Je=qe&&qe[Ce],Ye=Object.prototype,We=ae.Array,Fe=ae.RangeError,Ue=ne(he),at=ne([].reverse),Xe=b.pack,ut=b.unpack,Ze=function(He){return[He&255]},ze=function(He){return[He&255,He>>8&255]},Re=function(He){return[He&255,He>>8&255,He>>16&255,He>>24&255]},it=function(He){return He[3]<<24|He[2]<<16|He[1]<<8|He[0]},Me=function(He){return Xe(He,23,4)},Be=function(He){return Xe(He,52,8)},Qe=function(He,ot){fe(He[Ce],ot,{get:function(){return Pe(this)[ot]}})},Ge=function(He,ot,mt,lt){var pt=E(mt),st=Pe(He);if(pt+ot>st.byteLength)throw Fe(ke);var vt=Pe(st.buffer).bytes,rt=pt+st.byteOffset,ct=me(vt,rt,rt+ot);return lt?ct:at(ct)},De=function(He,ot,mt,lt,pt,st){var vt=E(mt),rt=Pe(He);if(vt+ot>rt.byteLength)throw Fe(ke);for(var ct=Pe(rt.buffer).bytes,gt=vt+rt.byteOffset,St=lt(+pt),Ct=0;Ct<ot;Ct++)ct[gt+Ct]=St[st?Ct:ot-Ct-1]};if(!ce)Ne=function(ot){z(this,nt);var mt=E(ot);Te(this,{bytes:Ue(We(mt),0),byteLength:mt}),se||(this.byteLength=mt)},nt=Ne[Ce],qe=function(ot,mt,lt){z(this,Je),z(ot,nt);var pt=Pe(ot).byteLength,st=a(mt);if(st<0||st>pt)throw Fe("Wrong offset");if(lt=lt===void 0?pt-st:y(lt),st+lt>pt)throw Fe(Ie);Te(this,{buffer:ot,byteLength:lt,byteOffset:st}),se||(this.buffer=ot,this.byteLength=lt,this.byteOffset=st)},Je=qe[Ce],se&&(Qe(Ne,"byteLength"),Qe(qe,"buffer"),Qe(qe,"byteLength"),Qe(qe,"byteOffset")),oe(Je,{getInt8:function(ot){return Ge(this,1,ot)[0]<<24>>24},getUint8:function(ot){return Ge(this,1,ot)[0]},getInt16:function(ot){var mt=Ge(this,2,ot,arguments.length>1?arguments[1]:void 0);return(mt[1]<<8|mt[0])<<16>>16},getUint16:function(ot){var mt=Ge(this,2,ot,arguments.length>1?arguments[1]:void 0);return mt[1]<<8|mt[0]},getInt32:function(ot){return it(Ge(this,4,ot,arguments.length>1?arguments[1]:void 0))},getUint32:function(ot){return it(Ge(this,4,ot,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(ot){return ut(Ge(this,4,ot,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(ot){return ut(Ge(this,8,ot,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(ot,mt){De(this,1,ot,Ze,mt)},setUint8:function(ot,mt){De(this,1,ot,Ze,mt)},setInt16:function(ot,mt){De(this,2,ot,ze,mt,arguments.length>2?arguments[2]:void 0)},setUint16:function(ot,mt){De(this,2,ot,ze,mt,arguments.length>2?arguments[2]:void 0)},setInt32:function(ot,mt){De(this,4,ot,Re,mt,arguments.length>2?arguments[2]:void 0)},setUint32:function(ot,mt){De(this,4,ot,Re,mt,arguments.length>2?arguments[2]:void 0)},setFloat32:function(ot,mt){De(this,4,ot,Me,mt,arguments.length>2?arguments[2]:void 0)},setFloat64:function(ot,mt){De(this,8,ot,Be,mt,arguments.length>2?arguments[2]:void 0)}});else{var Le=ve&&$e.name!==_e;if(!re(function(){$e(1)})||!re(function(){new $e(-1)})||re(function(){return new $e,new $e(1.5),new $e(NaN),Le&&!be})){Ne=function(ot){return z(this,nt),new $e(E(ot))},Ne[Ce]=nt;for(var Oe=le($e),xe=0,Ae;Oe.length>xe;)(Ae=Oe[xe++])in Ne||ie(Ne,Ae,$e[Ae]);nt.constructor=Ne}else Le&&be&&ie($e,"name",_e);te&&ee(Je)!==Ye&&te(Je,Ye);var Ke=new qe(new Ne(2)),tt=ne(Je.setInt8);Ke.setInt8(0,2147483648),Ke.setInt8(1,2147483649),(Ke.getInt8(0)||!Ke.getInt8(1))&&oe(Je,{setInt8:function(ot,mt){tt(this,ot,mt<<24>>24)},setUint8:function(ot,mt){tt(this,ot,mt<<24>>24)}},{unsafe:!0})}ge(Ne,_e),ge(qe,je),pe.exports={ArrayBuffer:Ne,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(x,pe,de){"use strict";var ae=x("../internals/to-object"),ne=x("../internals/to-absolute-index"),se=x("../internals/length-of-array-like"),ce=Math.min;pe.exports=[].copyWithin||function(ie,oe){var re=ae(this),z=se(re),a=ne(ie,z),y=ne(oe,z),E=arguments.length>2?arguments[2]:void 0,b=ce((E===void 0?z:ne(E,z))-y,z-a),ee=1;for(y<a&&a<y+b&&(ee=-1,y+=b-1,a+=b-1);b-- >0;)y in re?re[a]=re[y]:delete re[a],a+=ee,y+=ee;return re}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-object":250}],106:[function(x,pe,de){"use strict";var ae=x("../internals/to-object"),ne=x("../internals/to-absolute-index"),se=x("../internals/length-of-array-like");pe.exports=function(ue){for(var ie=ae(this),oe=se(ie),re=arguments.length,z=ne(re>1?arguments[1]:void 0,oe),a=re>2?arguments[2]:void 0,y=a===void 0?oe:ne(a,oe);y>z;)ie[z++]=ue;return ie}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-object":250}],107:[function(x,pe,de){"use strict";var ae=x("../internals/array-iteration").forEach,ne=x("../internals/array-method-is-strict"),se=ne("forEach");pe.exports=se?[].forEach:function(ue){return ae(this,ue,arguments.length>1?arguments[1]:void 0)}},{"../internals/array-iteration":111,"../internals/array-method-is-strict":114}],108:[function(x,pe,de){var ae=x("../internals/length-of-array-like");pe.exports=function(ne,se){for(var ce=0,ue=ae(se),ie=new ne(ue);ue>ce;)ie[ce]=se[ce++];return ie}},{"../internals/length-of-array-like":188}],109:[function(x,pe,de){"use strict";var ae=x("../internals/global"),ne=x("../internals/function-bind-context"),se=x("../internals/function-call"),ce=x("../internals/to-object"),ue=x("../internals/call-with-safe-iteration-closing"),ie=x("../internals/is-array-iterator-method"),oe=x("../internals/is-constructor"),re=x("../internals/length-of-array-like"),z=x("../internals/create-property"),a=x("../internals/get-iterator"),y=x("../internals/get-iterator-method"),E=ae.Array;pe.exports=function(ee){var te=ce(ee),le=oe(this),fe=arguments.length,he=fe>1?arguments[1]:void 0,me=he!==void 0;me&&(he=ne(he,fe>2?arguments[2]:void 0));var ge=y(te),Se=0,ve,be,Pe,Te,_e,je;if(ge&&!(this==E&&ie(ge)))for(Te=a(te,ge),_e=Te.next,be=le?new this:[];!(Pe=se(_e,Te)).done;Se++)je=me?ue(Te,he,[Pe.value,Se],!0):Pe.value,z(be,Se,je);else for(ve=re(te),be=le?new this(ve):E(ve);ve>Se;Se++)je=me?he(te[Se],Se):te[Se],z(be,Se,je);return be.length=Se,be}},{"../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(x,pe,de){var ae=x("../internals/to-indexed-object"),ne=x("../internals/to-absolute-index"),se=x("../internals/length-of-array-like"),ce=function(ue){return function(ie,oe,re){var z=ae(ie),a=se(z),y=ne(re,a),E;if(ue&&oe!=oe){for(;a>y;)if(E=z[y++],E!=E)return!0}else for(;a>y;y++)if((ue||y in z)&&z[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(x,pe,de){var ae=x("../internals/function-bind-context"),ne=x("../internals/function-uncurry-this"),se=x("../internals/indexed-object"),ce=x("../internals/to-object"),ue=x("../internals/length-of-array-like"),ie=x("../internals/array-species-create"),oe=ne([].push),re=function(z){var a=z==1,y=z==2,E=z==3,b=z==4,ee=z==6,te=z==7,le=z==5||ee;return function(fe,he,me,ge){for(var Se=ce(fe),ve=se(Se),be=ae(he,me),Pe=ue(ve),Te=0,_e=ge||ie,je=a?_e(fe,Pe):y||te?_e(fe,0):void 0,Ce,Ie;Pe>Te;Te++)if((le||Te in ve)&&(Ce=ve[Te],Ie=be(Ce,Te,Se),z))if(a)je[Te]=Ie;else if(Ie)switch(z){case 3:return!0;case 5:return Ce;case 6:return Te;case 2:oe(je,Ce)}else switch(z){case 4:return!1;case 7:oe(je,Ce)}return ee?-1:E||b?b:je}};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(x,pe,de){"use strict";var ae=x("../internals/function-apply"),ne=x("../internals/to-indexed-object"),se=x("../internals/to-integer-or-infinity"),ce=x("../internals/length-of-array-like"),ue=x("../internals/array-method-is-strict"),ie=Math.min,oe=[].lastIndexOf,re=!!oe&&1/[1].lastIndexOf(1,-0)<0,z=ue("lastIndexOf"),a=re||!z;pe.exports=a?function(E){if(re)return ae(oe,this,arguments)||0;var b=ne(this),ee=ce(b),te=ee-1;for(arguments.length>1&&(te=ie(te,se(arguments[1]))),te<0&&(te=ee+te);te>=0;te--)if(te in b&&b[te]===E)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(x,pe,de){var ae=x("../internals/fails"),ne=x("../internals/well-known-symbol"),se=x("../internals/engine-v8-version"),ce=ne("species");pe.exports=function(ue){return se>=51||!ae(function(){var ie=[],oe=ie.constructor={};return oe[ce]=function(){return{foo:1}},ie[ue](Boolean).foo!==1})}},{"../internals/engine-v8-version":146,"../internals/fails":150,"../internals/well-known-symbol":268}],114:[function(x,pe,de){"use strict";var ae=x("../internals/fails");pe.exports=function(ne,se){var ce=[][ne];return!!ce&&ae(function(){ce.call(null,se||function(){return 1},1)})}},{"../internals/fails":150}],115:[function(x,pe,de){var ae=x("../internals/global"),ne=x("../internals/a-callable"),se=x("../internals/to-object"),ce=x("../internals/indexed-object"),ue=x("../internals/length-of-array-like"),ie=ae.TypeError,oe=function(re){return function(z,a,y,E){ne(a);var b=se(z),ee=ce(b),te=ue(b),le=re?te-1:0,fe=re?-1:1;if(y<2)for(;;){if(le in ee){E=ee[le],le+=fe;break}if(le+=fe,re?le<0:te<=le)throw ie("Reduce of empty array with no initial value")}for(;re?le>=0:te>le;le+=fe)le in ee&&(E=a(E,ee[le],le,b));return E}};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(x,pe,de){var ae=x("../internals/global"),ne=x("../internals/to-absolute-index"),se=x("../internals/length-of-array-like"),ce=x("../internals/create-property"),ue=ae.Array,ie=Math.max;pe.exports=function(oe,re,z){for(var a=se(oe),y=ne(re,a),E=ne(z===void 0?a:z,a),b=ue(ie(E-y,0)),ee=0;y<E;y++,ee++)ce(b,ee,oe[y]);return b.length=ee,b}},{"../internals/create-property":131,"../internals/global":163,"../internals/length-of-array-like":188,"../internals/to-absolute-index":245}],117:[function(x,pe,de){var ae=x("../internals/function-uncurry-this");pe.exports=ae([].slice)},{"../internals/function-uncurry-this":157}],118:[function(x,pe,de){var ae=x("../internals/array-slice-simple"),ne=Math.floor,se=function(ie,oe){var re=ie.length,z=ne(re/2);return re<8?ce(ie,oe):ue(ie,se(ae(ie,0,z),oe),se(ae(ie,z),oe),oe)},ce=function(ie,oe){for(var re=ie.length,z=1,a,y;z<re;){for(y=z,a=ie[z];y&&oe(ie[y-1],a)>0;)ie[y]=ie[--y];y!==z++&&(ie[y]=a)}return ie},ue=function(ie,oe,re,z){for(var a=oe.length,y=re.length,E=0,b=0;E<a||b<y;)ie[E+b]=E<a&&b<y?z(oe[E],re[b])<=0?oe[E++]:re[b++]:E<a?oe[E++]:re[b++];return ie};pe.exports=se},{"../internals/array-slice-simple":116}],119:[function(x,pe,de){var ae=x("../internals/global"),ne=x("../internals/is-array"),se=x("../internals/is-constructor"),ce=x("../internals/is-object"),ue=x("../internals/well-known-symbol"),ie=ue("species"),oe=ae.Array;pe.exports=function(re){var z;return ne(re)&&(z=re.constructor,se(z)&&(z===oe||ne(z.prototype))?z=void 0:ce(z)&&(z=z[ie],z===null&&(z=void 0))),z===void 0?oe:z}},{"../internals/global":163,"../internals/is-array":175,"../internals/is-constructor":177,"../internals/is-object":180,"../internals/well-known-symbol":268}],120:[function(x,pe,de){var ae=x("../internals/array-species-constructor");pe.exports=function(ne,se){return new(ae(ne))(se===0?0:se)}},{"../internals/array-species-constructor":119}],121:[function(x,pe,de){var ae=x("../internals/an-object"),ne=x("../internals/iterator-close");pe.exports=function(se,ce,ue,ie){try{return ie?ce(ae(ue)[0],ue[1]):ce(ue)}catch(oe){ne(se,"throw",oe)}}},{"../internals/an-object":101,"../internals/iterator-close":185}],122:[function(x,pe,de){var ae=x("../internals/well-known-symbol"),ne=ae("iterator"),se=!1;try{var ce=0,ue={next:function(){return{done:!!ce++}},return:function(){se=!0}};ue[ne]=function(){return this},Array.from(ue,function(){throw 2})}catch(ie){}pe.exports=function(ie,oe){if(!oe&&!se)return!1;var re=!1;try{var z={};z[ne]=function(){return{next:function(){return{done:re=!0}}}},ie(z)}catch(a){}return re}},{"../internals/well-known-symbol":268}],123:[function(x,pe,de){var ae=x("../internals/function-uncurry-this"),ne=ae({}.toString),se=ae("".slice);pe.exports=function(ce){return se(ne(ce),8,-1)}},{"../internals/function-uncurry-this":157}],124:[function(x,pe,de){var ae=x("../internals/global"),ne=x("../internals/to-string-tag-support"),se=x("../internals/is-callable"),ce=x("../internals/classof-raw"),ue=x("../internals/well-known-symbol"),ie=ue("toStringTag"),oe=ae.Object,re=ce(function(){return arguments}())=="Arguments",z=function(a,y){try{return a[y]}catch(E){}};pe.exports=ne?ce:function(a){var y,E,b;return a===void 0?"Undefined":a===null?"Null":typeof(E=z(y=oe(a),ie))=="string"?E:re?ce(y):(b=ce(y))=="Object"&&se(y.callee)?"Arguments":b}},{"../internals/classof-raw":123,"../internals/global":163,"../internals/is-callable":176,"../internals/to-string-tag-support":255,"../internals/well-known-symbol":268}],125:[function(x,pe,de){var ae=x("../internals/has-own-property"),ne=x("../internals/own-keys"),se=x("../internals/object-get-own-property-descriptor"),ce=x("../internals/object-define-property");pe.exports=function(ue,ie,oe){for(var re=ne(ie),z=ce.f,a=se.f,y=0;y<re.length;y++){var E=re[y];!ae(ue,E)&&!(oe&&ae(oe,E))&&z(ue,E,a(ie,E))}}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/object-get-own-property-descriptor":199,"../internals/own-keys":212}],126:[function(x,pe,de){var ae=x("../internals/well-known-symbol"),ne=ae("match");pe.exports=function(se){var ce=/./;try{"/./"[se](ce)}catch(ue){try{return ce[ne]=!1,"/./"[se](ce)}catch(ie){}}return!1}},{"../internals/well-known-symbol":268}],127:[function(x,pe,de){var ae=x("../internals/fails");pe.exports=!ae(function(){function ne(){}return ne.prototype.constructor=null,Object.getPrototypeOf(new ne)!==ne.prototype})},{"../internals/fails":150}],128:[function(x,pe,de){"use strict";var ae=x("../internals/iterators-core").IteratorPrototype,ne=x("../internals/object-create"),se=x("../internals/create-property-descriptor"),ce=x("../internals/set-to-string-tag"),ue=x("../internals/iterators"),ie=function(){return this};pe.exports=function(oe,re,z,a){var y=re+" Iterator";return oe.prototype=ne(ae,{next:se(+!a,z)}),ce(oe,y,!1,!0),ue[y]=ie,oe}},{"../internals/create-property-descriptor":130,"../internals/iterators":187,"../internals/iterators-core":186,"../internals/object-create":196,"../internals/set-to-string-tag":234}],129:[function(x,pe,de){var ae=x("../internals/descriptors"),ne=x("../internals/object-define-property"),se=x("../internals/create-property-descriptor");pe.exports=ae?function(ce,ue,ie){return ne.f(ce,ue,se(1,ie))}:function(ce,ue,ie){return ce[ue]=ie,ce}},{"../internals/create-property-descriptor":130,"../internals/descriptors":134,"../internals/object-define-property":198}],130:[function(x,pe,de){pe.exports=function(ae,ne){return{enumerable:!(ae&1),configurable:!(ae&2),writable:!(ae&4),value:ne}}},{}],131:[function(x,pe,de){"use strict";var ae=x("../internals/to-property-key"),ne=x("../internals/object-define-property"),se=x("../internals/create-property-descriptor");pe.exports=function(ce,ue,ie){var oe=ae(ue);oe in ce?ne.f(ce,oe,se(0,ie)):ce[oe]=ie}},{"../internals/create-property-descriptor":130,"../internals/object-define-property":198,"../internals/to-property-key":254}],132:[function(x,pe,de){"use strict";var ae=x("../internals/export"),ne=x("../internals/function-call"),se=x("../internals/is-pure"),ce=x("../internals/function-name"),ue=x("../internals/is-callable"),ie=x("../internals/create-iterator-constructor"),oe=x("../internals/object-get-prototype-of"),re=x("../internals/object-set-prototype-of"),z=x("../internals/set-to-string-tag"),a=x("../internals/create-non-enumerable-property"),y=x("../internals/redefine"),E=x("../internals/well-known-symbol"),b=x("../internals/iterators"),ee=x("../internals/iterators-core"),te=ce.PROPER,le=ce.CONFIGURABLE,fe=ee.IteratorPrototype,he=ee.BUGGY_SAFARI_ITERATORS,me=E("iterator"),ge="keys",Se="values",ve="entries",be=function(){return this};pe.exports=function(Pe,Te,_e,je,Ce,Ie,ke){ie(_e,Te,je);var $e=function(Xe){if(Xe===Ce&&Ye)return Ye;if(!he&&Xe in qe)return qe[Xe];switch(Xe){case ge:return function(){return new _e(this,Xe)};case Se:return function(){return new _e(this,Xe)};case ve:return function(){return new _e(this,Xe)}}return function(){return new _e(this)}},Ne=Te+" Iterator",nt=!1,qe=Pe.prototype,Je=qe[me]||qe["@@iterator"]||Ce&&qe[Ce],Ye=!he&&Je||$e(Ce),We=Te=="Array"&&qe.entries||Je,Fe,Ue,at;if(We&&(Fe=oe(We.call(new Pe)),Fe!==Object.prototype&&Fe.next&&(!se&&oe(Fe)!==fe&&(re?re(Fe,fe):ue(Fe[me])||y(Fe,me,be)),z(Fe,Ne,!0,!0),se&&(b[Ne]=be))),te&&Ce==Se&&Je&&Je.name!==Se&&(!se&&le?a(qe,"name",Se):(nt=!0,Ye=function(){return ne(Je,this)})),Ce)if(Ue={values:$e(Se),keys:Ie?Ye:$e(ge),entries:$e(ve)},ke)for(at in Ue)(he||nt||!(at in qe))&&y(qe,at,Ue[at]);else ae({target:Te,proto:!0,forced:he||nt},Ue);return(!se||ke)&&qe[me]!==Ye&&y(qe,me,Ye,{name:Ce}),b[Te]=Ye,Ue}},{"../internals/create-iterator-constructor":128,"../internals/create-non-enumerable-property":129,"../internals/export":149,"../internals/function-call":155,"../internals/function-name":156,"../internals/is-callable":176,"../internals/is-pure":181,"../internals/iterators":187,"../internals/iterators-core":186,"../internals/object-get-prototype-of":203,"../internals/object-set-prototype-of":208,"../internals/redefine":222,"../internals/set-to-string-tag":234,"../internals/well-known-symbol":268}],133:[function(x,pe,de){var ae=x("../internals/path"),ne=x("../internals/has-own-property"),se=x("../internals/well-known-symbol-wrapped"),ce=x("../internals/object-define-property").f;pe.exports=function(ue){var ie=ae.Symbol||(ae.Symbol={});ne(ie,ue)||ce(ie,ue,{value:se.f(ue)})}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/path":213,"../internals/well-known-symbol-wrapped":267}],134:[function(x,pe,de){var ae=x("../internals/fails");pe.exports=!ae(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},{"../internals/fails":150}],135:[function(x,pe,de){var ae=x("../internals/global"),ne=x("../internals/is-object"),se=ae.document,ce=ne(se)&&ne(se.createElement);pe.exports=function(ue){return ce?se.createElement(ue):{}}},{"../internals/global":163,"../internals/is-object":180}],136:[function(x,pe,de){pe.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},{}],137:[function(x,pe,de){var ae=x("../internals/document-create-element"),ne=ae("span").classList,se=ne&&ne.constructor&&ne.constructor.prototype;pe.exports=se===Object.prototype?void 0:se},{"../internals/document-create-element":135}],138:[function(x,pe,de){var ae=x("../internals/engine-user-agent"),ne=ae.match(/firefox\/(\d+)/i);pe.exports=!!ne&&+ne[1]},{"../internals/engine-user-agent":145}],139:[function(x,pe,de){pe.exports=typeof window=="object"&&typeof Deno!="object"},{}],140:[function(x,pe,de){var ae=x("../internals/engine-user-agent");pe.exports=/MSIE|Trident/.test(ae)},{"../internals/engine-user-agent":145}],141:[function(x,pe,de){var ae=x("../internals/engine-user-agent"),ne=x("../internals/global");pe.exports=/ipad|iphone|ipod/i.test(ae)&&ne.Pebble!==void 0},{"../internals/engine-user-agent":145,"../internals/global":163}],142:[function(x,pe,de){var ae=x("../internals/engine-user-agent");pe.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(ae)},{"../internals/engine-user-agent":145}],143:[function(x,pe,de){var ae=x("../internals/classof-raw"),ne=x("../internals/global");pe.exports=ae(ne.process)=="process"},{"../internals/classof-raw":123,"../internals/global":163}],144:[function(x,pe,de){var ae=x("../internals/engine-user-agent");pe.exports=/web0s(?!.*chrome)/i.test(ae)},{"../internals/engine-user-agent":145}],145:[function(x,pe,de){var ae=x("../internals/get-built-in");pe.exports=ae("navigator","userAgent")||""},{"../internals/get-built-in":158}],146:[function(x,pe,de){var ae=x("../internals/global"),ne=x("../internals/engine-user-agent"),se=ae.process,ce=ae.Deno,ue=se&&se.versions||ce&&ce.version,ie=ue&&ue.v8,oe,re;ie&&(oe=ie.split("."),re=oe[0]>0&&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(x,pe,de){var ae=x("../internals/engine-user-agent"),ne=ae.match(/AppleWebKit\/(\d+)\./);pe.exports=!!ne&&+ne[1]},{"../internals/engine-user-agent":145}],148:[function(x,pe,de){pe.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],149:[function(x,pe,de){var ae=x("../internals/global"),ne=x("../internals/object-get-own-property-descriptor").f,se=x("../internals/create-non-enumerable-property"),ce=x("../internals/redefine"),ue=x("../internals/set-global"),ie=x("../internals/copy-constructor-properties"),oe=x("../internals/is-forced");pe.exports=function(re,z){var a=re.target,y=re.global,E=re.stat,b,ee,te,le,fe,he;if(y?ee=ae:E?ee=ae[a]||ue(a,{}):ee=(ae[a]||{}).prototype,ee)for(te in z){if(fe=z[te],re.noTargetGet?(he=ne(ee,te),le=he&&he.value):le=ee[te],b=oe(y?te:a+(E?".":"#")+te,re.forced),!b&&le!==void 0){if(typeof fe==typeof le)continue;ie(fe,le)}(re.sham||le&&le.sham)&&se(fe,"sham",!0),ce(ee,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(x,pe,de){pe.exports=function(ae){try{return!!ae()}catch(ne){return!0}}},{}],151:[function(x,pe,de){"use strict";x("../modules/es.regexp.exec");var ae=x("../internals/function-uncurry-this"),ne=x("../internals/redefine"),se=x("../internals/regexp-exec"),ce=x("../internals/fails"),ue=x("../internals/well-known-symbol"),ie=x("../internals/create-non-enumerable-property"),oe=ue("species"),re=RegExp.prototype;pe.exports=function(z,a,y,E){var b=ue(z),ee=!ce(function(){var he={};return he[b]=function(){return 7},""[z](he)!=7}),te=ee&&!ce(function(){var he=!1,me=/a/;return z==="split"&&(me={},me.constructor={},me.constructor[oe]=function(){return me},me.flags="",me[b]=/./[b]),me.exec=function(){return he=!0,null},me[b](""),!he});if(!ee||!te||y){var le=ae(/./[b]),fe=a(b,""[z],function(he,me,ge,Se,ve){var be=ae(he),Pe=me.exec;return Pe===se||Pe===re.exec?ee&&!ve?{done:!0,value:le(me,ge,Se)}:{done:!0,value:be(ge,me,Se)}:{done:!1}});ne(String.prototype,z,fe[0]),ne(re,b,fe[1])}E&&ie(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(x,pe,de){var ae=x("../internals/function-bind-native"),ne=Function.prototype,se=ne.apply,ce=ne.call;pe.exports=typeof Reflect=="object"&&Reflect.apply||(ae?ce.bind(se):function(){return ce.apply(se,arguments)})},{"../internals/function-bind-native":154}],153:[function(x,pe,de){var ae=x("../internals/function-uncurry-this"),ne=x("../internals/a-callable"),se=x("../internals/function-bind-native"),ce=ae(ae.bind);pe.exports=function(ue,ie){return ne(ue),ie===void 0?ue:se?ce(ue,ie):function(){return ue.apply(ie,arguments)}}},{"../internals/a-callable":95,"../internals/function-bind-native":154,"../internals/function-uncurry-this":157}],154:[function(x,pe,de){var ae=x("../internals/fails");pe.exports=!ae(function(){var ne=function(){}.bind();return typeof ne!="function"||ne.hasOwnProperty("prototype")})},{"../internals/fails":150}],155:[function(x,pe,de){var ae=x("../internals/function-bind-native"),ne=Function.prototype.call;pe.exports=ae?ne.bind(ne):function(){return ne.apply(ne,arguments)}},{"../internals/function-bind-native":154}],156:[function(x,pe,de){var ae=x("../internals/descriptors"),ne=x("../internals/has-own-property"),se=Function.prototype,ce=ae&&Object.getOwnPropertyDescriptor,ue=ne(se,"name"),ie=ue&&function(){}.name==="something",oe=ue&&(!ae||ae&&ce(se,"name").configurable);pe.exports={EXISTS:ue,PROPER:ie,CONFIGURABLE:oe}},{"../internals/descriptors":134,"../internals/has-own-property":164}],157:[function(x,pe,de){var ae=x("../internals/function-bind-native"),ne=Function.prototype,se=ne.bind,ce=ne.call,ue=ae&&se.bind(ce,ce);pe.exports=ae?function(ie){return ie&&ue(ie)}:function(ie){return ie&&function(){return ce.apply(ie,arguments)}}},{"../internals/function-bind-native":154}],158:[function(x,pe,de){var ae=x("../internals/global"),ne=x("../internals/is-callable"),se=function(ce){return ne(ce)?ce:void 0};pe.exports=function(ce,ue){return arguments.length<2?se(ae[ce]):ae[ce]&&ae[ce][ue]}},{"../internals/global":163,"../internals/is-callable":176}],159:[function(x,pe,de){var ae=x("../internals/classof"),ne=x("../internals/get-method"),se=x("../internals/iterators"),ce=x("../internals/well-known-symbol"),ue=ce("iterator");pe.exports=function(ie){if(ie!=null)return ne(ie,ue)||ne(ie,"@@iterator")||se[ae(ie)]}},{"../internals/classof":124,"../internals/get-method":161,"../internals/iterators":187,"../internals/well-known-symbol":268}],160:[function(x,pe,de){var ae=x("../internals/global"),ne=x("../internals/function-call"),se=x("../internals/a-callable"),ce=x("../internals/an-object"),ue=x("../internals/try-to-string"),ie=x("../internals/get-iterator-method"),oe=ae.TypeError;pe.exports=function(re,z){var a=arguments.length<2?ie(re):z;if(se(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(x,pe,de){var ae=x("../internals/a-callable");pe.exports=function(ne,se){var ce=ne[se];return ce==null?void 0:ae(ce)}},{"../internals/a-callable":95}],162:[function(x,pe,de){var ae=x("../internals/function-uncurry-this"),ne=x("../internals/to-object"),se=Math.floor,ce=ae("".charAt),ue=ae("".replace),ie=ae("".slice),oe=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,re=/\$([$&'`]|\d{1,2})/g;pe.exports=function(z,a,y,E,b,ee){var te=y+z.length,le=E.length,fe=re;return b!==void 0&&(b=ne(b),fe=oe),ue(ee,fe,function(he,me){var ge;switch(ce(me,0)){case"$":return"$";case"&":return z;case"`":return ie(a,0,y);case"'":return ie(a,te);case"<":ge=b[ie(me,1,-1)];break;default:var Se=+me;if(Se===0)return he;if(Se>le){var ve=se(Se/10);return ve===0?he:ve<=le?E[ve-1]===void 0?ce(me,1):E[ve-1]+ce(me,1):he}ge=E[Se-1]}return ge===void 0?"":ge})}},{"../internals/function-uncurry-this":157,"../internals/to-object":250}],163:[function(x,pe,de){(function(ae){(function(){var ne=function(se){return se&&se.Math==Math&&se};pe.exports=ne(typeof globalThis=="object"&&globalThis)||ne(typeof window=="object"&&window)||ne(typeof self=="object"&&self)||ne(typeof ae=="object"&&ae)||function(){return this}()||Function("return this")()}).call(this)}).call(this,typeof ft!="undefined"?ft:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],164:[function(x,pe,de){var ae=x("../internals/function-uncurry-this"),ne=x("../internals/to-object"),se=ae({}.hasOwnProperty);pe.exports=Object.hasOwn||function(ue,ie){return se(ne(ue),ie)}},{"../internals/function-uncurry-this":157,"../internals/to-object":250}],165:[function(x,pe,de){pe.exports={}},{}],166:[function(x,pe,de){var ae=x("../internals/global");pe.exports=function(ne,se){var ce=ae.console;ce&&ce.error&&(arguments.length==1?ce.error(ne):ce.error(ne,se))}},{"../internals/global":163}],167:[function(x,pe,de){var ae=x("../internals/get-built-in");pe.exports=ae("document","documentElement")},{"../internals/get-built-in":158}],168:[function(x,pe,de){var ae=x("../internals/descriptors"),ne=x("../internals/fails"),se=x("../internals/document-create-element");pe.exports=!ae&&!ne(function(){return Object.defineProperty(se("div"),"a",{get:function(){return 7}}).a!=7})},{"../internals/descriptors":134,"../internals/document-create-element":135,"../internals/fails":150}],169:[function(x,pe,de){var ae=x("../internals/global"),ne=ae.Array,se=Math.abs,ce=Math.pow,ue=Math.floor,ie=Math.log,oe=Math.LN2,re=function(a,y,E){var b=ne(E),ee=E*8-y-1,te=(1<<ee)-1,le=te>>1,fe=y===23?ce(2,-24)-ce(2,-77):0,he=a<0||a===0&&1/a<0?1:0,me=0,ge,Se,ve;for(a=se(a),a!=a||a===1/0?(Se=a!=a?1:0,ge=te):(ge=ue(ie(a)/oe),ve=ce(2,-ge),a*ve<1&&(ge--,ve*=2),ge+le>=1?a+=fe/ve:a+=fe*ce(2,1-le),a*ve>=2&&(ge++,ve/=2),ge+le>=te?(Se=0,ge=te):ge+le>=1?(Se=(a*ve-1)*ce(2,y),ge=ge+le):(Se=a*ce(2,le-1)*ce(2,y),ge=0));y>=8;)b[me++]=Se&255,Se/=256,y-=8;for(ge=ge<<y|Se,ee+=y;ee>0;)b[me++]=ge&255,ge/=256,ee-=8;return b[--me]|=he*128,b},z=function(a,y){var E=a.length,b=E*8-y-1,ee=(1<<b)-1,te=ee>>1,le=b-7,fe=E-1,he=a[fe--],me=he&127,ge;for(he>>=7;le>0;)me=me*256+a[fe--],le-=8;for(ge=me&(1<<-le)-1,me>>=-le,le+=y;le>0;)ge=ge*256+a[fe--],le-=8;if(me===0)me=1-te;else{if(me===ee)return ge?NaN:he?-1/0:1/0;ge=ge+ce(2,y),me=me-te}return(he?-1:1)*ge*ce(2,me-y)};pe.exports={pack:re,unpack:z}},{"../internals/global":163}],170:[function(x,pe,de){var ae=x("../internals/global"),ne=x("../internals/function-uncurry-this"),se=x("../internals/fails"),ce=x("../internals/classof-raw"),ue=ae.Object,ie=ne("".split);pe.exports=se(function(){return!ue("z").propertyIsEnumerable(0)})?function(oe){return ce(oe)=="String"?ie(oe,""):ue(oe)}:ue},{"../internals/classof-raw":123,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],171:[function(x,pe,de){var ae=x("../internals/is-callable"),ne=x("../internals/is-object"),se=x("../internals/object-set-prototype-of");pe.exports=function(ce,ue,ie){var oe,re;return se&&ae(oe=ue.constructor)&&oe!==ie&&ne(re=oe.prototype)&&re!==ie.prototype&&se(ce,re),ce}},{"../internals/is-callable":176,"../internals/is-object":180,"../internals/object-set-prototype-of":208}],172:[function(x,pe,de){var ae=x("../internals/function-uncurry-this"),ne=x("../internals/is-callable"),se=x("../internals/shared-store"),ce=ae(Function.toString);ne(se.inspectSource)||(se.inspectSource=function(ue){return ce(ue)}),pe.exports=se.inspectSource},{"../internals/function-uncurry-this":157,"../internals/is-callable":176,"../internals/shared-store":236}],173:[function(x,pe,de){var ae=x("../internals/native-weak-map"),ne=x("../internals/global"),se=x("../internals/function-uncurry-this"),ce=x("../internals/is-object"),ue=x("../internals/create-non-enumerable-property"),ie=x("../internals/has-own-property"),oe=x("../internals/shared-store"),re=x("../internals/shared-key"),z=x("../internals/hidden-keys"),a="Object already initialized",y=ne.TypeError,E=ne.WeakMap,b,ee,te,le=function(be){return te(be)?ee(be):b(be,{})},fe=function(be){return function(Pe){var Te;if(!ce(Pe)||(Te=ee(Pe)).type!==be)throw y("Incompatible receiver, "+be+" required");return Te}};if(ae||oe.state){var he=oe.state||(oe.state=new E),me=se(he.get),ge=se(he.has),Se=se(he.set);b=function(be,Pe){if(ge(he,be))throw new y(a);return Pe.facade=be,Se(he,be,Pe),Pe},ee=function(be){return me(he,be)||{}},te=function(be){return ge(he,be)}}else{var ve=re("state");z[ve]=!0,b=function(be,Pe){if(ie(be,ve))throw new y(a);return Pe.facade=be,ue(be,ve,Pe),Pe},ee=function(be){return ie(be,ve)?be[ve]:{}},te=function(be){return ie(be,ve)}}pe.exports={set:b,get:ee,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(x,pe,de){var ae=x("../internals/well-known-symbol"),ne=x("../internals/iterators"),se=ae("iterator"),ce=Array.prototype;pe.exports=function(ue){return ue!==void 0&&(ne.Array===ue||ce[se]===ue)}},{"../internals/iterators":187,"../internals/well-known-symbol":268}],175:[function(x,pe,de){var ae=x("../internals/classof-raw");pe.exports=Array.isArray||function(se){return ae(se)=="Array"}},{"../internals/classof-raw":123}],176:[function(x,pe,de){pe.exports=function(ae){return typeof ae=="function"}},{}],177:[function(x,pe,de){var ae=x("../internals/function-uncurry-this"),ne=x("../internals/fails"),se=x("../internals/is-callable"),ce=x("../internals/classof"),ue=x("../internals/get-built-in"),ie=x("../internals/inspect-source"),oe=function(){},re=[],z=ue("Reflect","construct"),a=/^\s*(?:class|function)\b/,y=ae(a.exec),E=!a.exec(oe),b=function(le){if(!se(le))return!1;try{return z(oe,re,le),!0}catch(fe){return!1}},ee=function(le){if(!se(le))return!1;switch(ce(le)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return E||!!y(a,ie(le))}catch(fe){return!0}};ee.sham=!0,pe.exports=!z||ne(function(){var te;return b(b.call)||!b(Object)||!b(function(){te=!0})||te})?ee: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(x,pe,de){var ae=x("../internals/fails"),ne=x("../internals/is-callable"),se=/#|\.prototype\./,ce=function(z,a){var y=ie[ue(z)];return y==re?!0:y==oe?!1:ne(a)?ae(a):!!a},ue=ce.normalize=function(z){return String(z).replace(se,".").toLowerCase()},ie=ce.data={},oe=ce.NATIVE="N",re=ce.POLYFILL="P";pe.exports=ce},{"../internals/fails":150,"../internals/is-callable":176}],179:[function(x,pe,de){var ae=x("../internals/is-object"),ne=Math.floor;pe.exports=Number.isInteger||function(ce){return!ae(ce)&&isFinite(ce)&&ne(ce)===ce}},{"../internals/is-object":180}],180:[function(x,pe,de){var ae=x("../internals/is-callable");pe.exports=function(ne){return typeof ne=="object"?ne!==null:ae(ne)}},{"../internals/is-callable":176}],181:[function(x,pe,de){pe.exports=!1},{}],182:[function(x,pe,de){var ae=x("../internals/is-object"),ne=x("../internals/classof-raw"),se=x("../internals/well-known-symbol"),ce=se("match");pe.exports=function(ue){var ie;return ae(ue)&&((ie=ue[ce])!==void 0?!!ie:ne(ue)=="RegExp")}},{"../internals/classof-raw":123,"../internals/is-object":180,"../internals/well-known-symbol":268}],183:[function(x,pe,de){var ae=x("../internals/global"),ne=x("../internals/get-built-in"),se=x("../internals/is-callable"),ce=x("../internals/object-is-prototype-of"),ue=x("../internals/use-symbol-as-uid"),ie=ae.Object;pe.exports=ue?function(oe){return typeof oe=="symbol"}:function(oe){var re=ne("Symbol");return se(re)&&ce(re.prototype,ie(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(x,pe,de){var ae=x("../internals/global"),ne=x("../internals/function-bind-context"),se=x("../internals/function-call"),ce=x("../internals/an-object"),ue=x("../internals/try-to-string"),ie=x("../internals/is-array-iterator-method"),oe=x("../internals/length-of-array-like"),re=x("../internals/object-is-prototype-of"),z=x("../internals/get-iterator"),a=x("../internals/get-iterator-method"),y=x("../internals/iterator-close"),E=ae.TypeError,b=function(te,le){this.stopped=te,this.result=le},ee=b.prototype;pe.exports=function(te,le,fe){var he=fe&&fe.that,me=!!(fe&&fe.AS_ENTRIES),ge=!!(fe&&fe.IS_ITERATOR),Se=!!(fe&&fe.INTERRUPTED),ve=ne(le,he),be,Pe,Te,_e,je,Ce,Ie,ke=function(Ne){return be&&y(be,"normal",Ne),new b(!0,Ne)},$e=function(Ne){return me?(ce(Ne),Se?ve(Ne[0],Ne[1],ke):ve(Ne[0],Ne[1])):Se?ve(Ne,ke):ve(Ne)};if(ge)be=te;else{if(Pe=a(te),!Pe)throw E(ue(te)+" is not iterable");if(ie(Pe)){for(Te=0,_e=oe(te);_e>Te;Te++)if(je=$e(te[Te]),je&&re(ee,je))return je;return new b(!1)}be=z(te,Pe)}for(Ce=be.next;!(Ie=se(Ce,be)).done;){try{je=$e(Ie.value)}catch(Ne){y(be,"throw",Ne)}if(typeof je=="object"&&je&&re(ee,je))return je}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(x,pe,de){var ae=x("../internals/function-call"),ne=x("../internals/an-object"),se=x("../internals/get-method");pe.exports=function(ce,ue,ie){var oe,re;ne(ce);try{if(oe=se(ce,"return"),!oe){if(ue==="throw")throw ie;return ie}oe=ae(oe,ce)}catch(z){re=!0,oe=z}if(ue==="throw")throw ie;if(re)throw oe;return ne(oe),ie}},{"../internals/an-object":101,"../internals/function-call":155,"../internals/get-method":161}],186:[function(x,pe,de){"use strict";var ae=x("../internals/fails"),ne=x("../internals/is-callable"),se=x("../internals/object-create"),ce=x("../internals/object-get-prototype-of"),ue=x("../internals/redefine"),ie=x("../internals/well-known-symbol"),oe=x("../internals/is-pure"),re=ie("iterator"),z=!1,a,y,E;[].keys&&(E=[].keys(),"next"in E?(y=ce(ce(E)),y!==Object.prototype&&(a=y)):z=!0);var b=a==null||ae(function(){var ee={};return a[re].call(ee)!==ee});b?a={}:oe&&(a=se(a)),ne(a[re])||ue(a,re,function(){return this}),pe.exports={IteratorPrototype:a,BUGGY_SAFARI_ITERATORS:z}},{"../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(x,pe,de){arguments[4][165][0].apply(de,arguments)},{dup:165}],188:[function(x,pe,de){var ae=x("../internals/to-length");pe.exports=function(ne){return ae(ne.length)}},{"../internals/to-length":249}],189:[function(x,pe,de){var ae=x("../internals/global"),ne=x("../internals/function-bind-context"),se=x("../internals/object-get-own-property-descriptor").f,ce=x("../internals/task").set,ue=x("../internals/engine-is-ios"),ie=x("../internals/engine-is-ios-pebble"),oe=x("../internals/engine-is-webos-webkit"),re=x("../internals/engine-is-node"),z=ae.MutationObserver||ae.WebKitMutationObserver,a=ae.document,y=ae.process,E=ae.Promise,b=se(ae,"queueMicrotask"),ee=b&&b.value,te,le,fe,he,me,ge,Se,ve;ee||(te=function(){var be,Pe;for(re&&(be=y.domain)&&be.exit();le;){Pe=le.fn,le=le.next;try{Pe()}catch(Te){throw le?he():fe=void 0,Te}}fe=void 0,be&&be.enter()},!ue&&!re&&!oe&&z&&a?(me=!0,ge=a.createTextNode(""),new z(te).observe(ge,{characterData:!0}),he=function(){ge.data=me=!me}):!ie&&E&&E.resolve?(Se=E.resolve(void 0),Se.constructor=E,ve=ne(Se.then,Se),he=function(){ve(te)}):re?he=function(){y.nextTick(te)}:(ce=ne(ce,ae),he=function(){ce(te)})),pe.exports=ee||function(be){var Pe={fn:be,next:void 0};fe&&(fe.next=Pe),le||(le=Pe,he()),fe=Pe}},{"../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(x,pe,de){var ae=x("../internals/native-symbol");pe.exports=ae&&!!Symbol.for&&!!Symbol.keyFor},{"../internals/native-symbol":191}],191:[function(x,pe,de){var ae=x("../internals/engine-v8-version"),ne=x("../internals/fails");pe.exports=!!Object.getOwnPropertySymbols&&!ne(function(){var se=Symbol();return!String(se)||!(Object(se)instanceof Symbol)||!Symbol.sham&&ae&&ae<41})},{"../internals/engine-v8-version":146,"../internals/fails":150}],192:[function(x,pe,de){var ae=x("../internals/global"),ne=x("../internals/is-callable"),se=x("../internals/inspect-source"),ce=ae.WeakMap;pe.exports=ne(ce)&&/native code/.test(se(ce))},{"../internals/global":163,"../internals/inspect-source":172,"../internals/is-callable":176}],193:[function(x,pe,de){"use strict";var ae=x("../internals/a-callable"),ne=function(se){var ce,ue;this.promise=new se(function(ie,oe){if(ce!==void 0||ue!==void 0)throw TypeError("Bad Promise constructor");ce=ie,ue=oe}),this.resolve=ae(ce),this.reject=ae(ue)};pe.exports.f=function(se){return new ne(se)}},{"../internals/a-callable":95}],194:[function(x,pe,de){var ae=x("../internals/global"),ne=x("../internals/is-regexp"),se=ae.TypeError;pe.exports=function(ce){if(ne(ce))throw se("The method doesn't accept regular expressions");return ce}},{"../internals/global":163,"../internals/is-regexp":182}],195:[function(x,pe,de){"use strict";var ae=x("../internals/descriptors"),ne=x("../internals/function-uncurry-this"),se=x("../internals/function-call"),ce=x("../internals/fails"),ue=x("../internals/object-keys"),ie=x("../internals/object-get-own-property-symbols"),oe=x("../internals/object-property-is-enumerable"),re=x("../internals/to-object"),z=x("../internals/indexed-object"),a=Object.assign,y=Object.defineProperty,E=ne([].concat);pe.exports=!a||ce(function(){if(ae&&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={},ee={},te=Symbol(),le="abcdefghijklmnopqrst";return b[te]=7,le.split("").forEach(function(fe){ee[fe]=fe}),a({},b)[te]!=7||ue(a({},ee)).join("")!=le})?function(ee,te){for(var le=re(ee),fe=arguments.length,he=1,me=ie.f,ge=oe.f;fe>he;)for(var Se=z(arguments[he++]),ve=me?E(ue(Se),me(Se)):ue(Se),be=ve.length,Pe=0,Te;be>Pe;)Te=ve[Pe++],(!ae||se(ge,Se,Te))&&(le[Te]=Se[Te]);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(x,pe,de){var ae=x("../internals/an-object"),ne=x("../internals/object-define-properties"),se=x("../internals/enum-bug-keys"),ce=x("../internals/hidden-keys"),ue=x("../internals/html"),ie=x("../internals/document-create-element"),oe=x("../internals/shared-key"),re=">",z="<",a="prototype",y="script",E=oe("IE_PROTO"),b=function(){},ee=function(me){return z+y+re+me+z+"/"+y+re},te=function(me){me.write(ee("")),me.close();var ge=me.parentWindow.Object;return me=null,ge},le=function(){var me=ie("iframe"),ge="java"+y+":",Se;return me.style.display="none",ue.appendChild(me),me.src=String(ge),Se=me.contentWindow.document,Se.open(),Se.write(ee("document.F=Object")),Se.close(),Se.F},fe,he=function(){try{fe=new ActiveXObject("htmlfile")}catch(ge){}he=typeof document!="undefined"?document.domain&&fe?te(fe):le():te(fe);for(var me=se.length;me--;)delete he[a][se[me]];return he()};ce[E]=!0,pe.exports=Object.create||function(ge,Se){var ve;return ge!==null?(b[a]=ae(ge),ve=new b,b[a]=null,ve[E]=ge):ve=he(),Se===void 0?ve:ne.f(ve,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(x,pe,de){var ae=x("../internals/descriptors"),ne=x("../internals/v8-prototype-define-bug"),se=x("../internals/object-define-property"),ce=x("../internals/an-object"),ue=x("../internals/to-indexed-object"),ie=x("../internals/object-keys");de.f=ae&&!ne?Object.defineProperties:function(re,z){ce(re);for(var a=ue(z),y=ie(z),E=y.length,b=0,ee;E>b;)se.f(re,ee=y[b++],a[ee]);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(x,pe,de){var ae=x("../internals/global"),ne=x("../internals/descriptors"),se=x("../internals/ie8-dom-define"),ce=x("../internals/v8-prototype-define-bug"),ue=x("../internals/an-object"),ie=x("../internals/to-property-key"),oe=ae.TypeError,re=Object.defineProperty,z=Object.getOwnPropertyDescriptor,a="enumerable",y="configurable",E="writable";de.f=ne?ce?function(ee,te,le){if(ue(ee),te=ie(te),ue(le),typeof ee=="function"&&te==="prototype"&&"value"in le&&E in le&&!le[E]){var fe=z(ee,te);fe&&fe[E]&&(ee[te]=le.value,le={configurable:y in le?le[y]:fe[y],enumerable:a in le?le[a]:fe[a],writable:!1})}return re(ee,te,le)}:re:function(ee,te,le){if(ue(ee),te=ie(te),ue(le),se)try{return re(ee,te,le)}catch(fe){}if("get"in le||"set"in le)throw oe("Accessors not supported");return"value"in le&&(ee[te]=le.value),ee}},{"../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(x,pe,de){var ae=x("../internals/descriptors"),ne=x("../internals/function-call"),se=x("../internals/object-property-is-enumerable"),ce=x("../internals/create-property-descriptor"),ue=x("../internals/to-indexed-object"),ie=x("../internals/to-property-key"),oe=x("../internals/has-own-property"),re=x("../internals/ie8-dom-define"),z=Object.getOwnPropertyDescriptor;de.f=ae?z:function(y,E){if(y=ue(y),E=ie(E),re)try{return z(y,E)}catch(b){}if(oe(y,E))return ce(!ne(se.f,y,E),y[E])}},{"../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(x,pe,de){var ae=x("../internals/classof-raw"),ne=x("../internals/to-indexed-object"),se=x("../internals/object-get-own-property-names").f,ce=x("../internals/array-slice-simple"),ue=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],ie=function(oe){try{return se(oe)}catch(re){return ce(ue)}};pe.exports.f=function(re){return ue&&ae(re)=="Window"?ie(re):se(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(x,pe,de){var ae=x("../internals/object-keys-internal"),ne=x("../internals/enum-bug-keys"),se=ne.concat("length","prototype");de.f=Object.getOwnPropertyNames||function(ue){return ae(ue,se)}},{"../internals/enum-bug-keys":148,"../internals/object-keys-internal":205}],202:[function(x,pe,de){de.f=Object.getOwnPropertySymbols},{}],203:[function(x,pe,de){var ae=x("../internals/global"),ne=x("../internals/has-own-property"),se=x("../internals/is-callable"),ce=x("../internals/to-object"),ue=x("../internals/shared-key"),ie=x("../internals/correct-prototype-getter"),oe=ue("IE_PROTO"),re=ae.Object,z=re.prototype;pe.exports=ie?re.getPrototypeOf:function(a){var y=ce(a);if(ne(y,oe))return y[oe];var E=y.constructor;return se(E)&&y instanceof E?E.prototype:y instanceof re?z: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(x,pe,de){var ae=x("../internals/function-uncurry-this");pe.exports=ae({}.isPrototypeOf)},{"../internals/function-uncurry-this":157}],205:[function(x,pe,de){var ae=x("../internals/function-uncurry-this"),ne=x("../internals/has-own-property"),se=x("../internals/to-indexed-object"),ce=x("../internals/array-includes").indexOf,ue=x("../internals/hidden-keys"),ie=ae([].push);pe.exports=function(oe,re){var z=se(oe),a=0,y=[],E;for(E in z)!ne(ue,E)&&ne(z,E)&&ie(y,E);for(;re.length>a;)ne(z,E=re[a++])&&(~ce(y,E)||ie(y,E));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(x,pe,de){var ae=x("../internals/object-keys-internal"),ne=x("../internals/enum-bug-keys");pe.exports=Object.keys||function(ce){return ae(ce,ne)}},{"../internals/enum-bug-keys":148,"../internals/object-keys-internal":205}],207:[function(x,pe,de){"use strict";var ae={}.propertyIsEnumerable,ne=Object.getOwnPropertyDescriptor,se=ne&&!ae.call({1:2},1);de.f=se?function(ue){var ie=ne(this,ue);return!!ie&&ie.enumerable}:ae},{}],208:[function(x,pe,de){var ae=x("../internals/function-uncurry-this"),ne=x("../internals/an-object"),se=x("../internals/a-possible-prototype");pe.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var ce=!1,ue={},ie;try{ie=ae(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),ie(ue,[]),ce=ue instanceof Array}catch(oe){}return function(re,z){return ne(re),se(z),ce?ie(re,z):re.__proto__=z,re}}():void 0)},{"../internals/a-possible-prototype":97,"../internals/an-object":101,"../internals/function-uncurry-this":157}],209:[function(x,pe,de){var ae=x("../internals/descriptors"),ne=x("../internals/function-uncurry-this"),se=x("../internals/object-keys"),ce=x("../internals/to-indexed-object"),ue=x("../internals/object-property-is-enumerable").f,ie=ne(ue),oe=ne([].push),re=function(z){return function(a){for(var y=ce(a),E=se(y),b=E.length,ee=0,te=[],le;b>ee;)le=E[ee++],(!ae||ie(y,le))&&oe(te,z?[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(x,pe,de){"use strict";var ae=x("../internals/to-string-tag-support"),ne=x("../internals/classof");pe.exports=ae?{}.toString:function(){return"[object "+ne(this)+"]"}},{"../internals/classof":124,"../internals/to-string-tag-support":255}],211:[function(x,pe,de){var ae=x("../internals/global"),ne=x("../internals/function-call"),se=x("../internals/is-callable"),ce=x("../internals/is-object"),ue=ae.TypeError;pe.exports=function(ie,oe){var re,z;if(oe==="string"&&se(re=ie.toString)&&!ce(z=ne(re,ie))||se(re=ie.valueOf)&&!ce(z=ne(re,ie))||oe!=="string"&&se(re=ie.toString)&&!ce(z=ne(re,ie)))return z;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(x,pe,de){var ae=x("../internals/get-built-in"),ne=x("../internals/function-uncurry-this"),se=x("../internals/object-get-own-property-names"),ce=x("../internals/object-get-own-property-symbols"),ue=x("../internals/an-object"),ie=ne([].concat);pe.exports=ae("Reflect","ownKeys")||function(re){var z=se.f(ue(re)),a=ce.f;return a?ie(z,a(re)):z}},{"../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(x,pe,de){var ae=x("../internals/global");pe.exports=ae},{"../internals/global":163}],214:[function(x,pe,de){pe.exports=function(ae){try{return{error:!1,value:ae()}}catch(ne){return{error:!0,value:ne}}}},{}],215:[function(x,pe,de){var ae=x("../internals/global"),ne=x("../internals/promise-native-constructor"),se=x("../internals/is-callable"),ce=x("../internals/is-forced"),ue=x("../internals/inspect-source"),ie=x("../internals/well-known-symbol"),oe=x("../internals/engine-is-browser"),re=x("../internals/is-pure"),z=x("../internals/engine-v8-version"),a=ne&&ne.prototype,y=ie("species"),E=!1,b=se(ae.PromiseRejectionEvent),ee=ce("Promise",function(){var te=ue(ne),le=te!==String(ne);if(!le&&z===66||re&&!(a.catch&&a.finally))return!0;if(z>=51&&/native code/.test(te))return!1;var fe=new ne(function(ge){ge(1)}),he=function(ge){ge(function(){},function(){})},me=fe.constructor={};return me[y]=he,E=fe.then(function(){})instanceof he,E?!le&&oe&&!b:!0});pe.exports={CONSTRUCTOR:ee,REJECTION_EVENT:b,SUBCLASSING:E}},{"../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(x,pe,de){var ae=x("../internals/global");pe.exports=ae.Promise},{"../internals/global":163}],217:[function(x,pe,de){var ae=x("../internals/an-object"),ne=x("../internals/is-object"),se=x("../internals/new-promise-capability");pe.exports=function(ce,ue){if(ae(ce),ne(ue)&&ue.constructor===ce)return ue;var ie=se.f(ce),oe=ie.resolve;return oe(ue),ie.promise}},{"../internals/an-object":101,"../internals/is-object":180,"../internals/new-promise-capability":193}],218:[function(x,pe,de){var ae=x("../internals/promise-native-constructor"),ne=x("../internals/check-correctness-of-iteration"),se=x("../internals/promise-constructor-detection").CONSTRUCTOR;pe.exports=se||!ne(function(ce){ae.all(ce).then(void 0,function(){})})},{"../internals/check-correctness-of-iteration":122,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216}],219:[function(x,pe,de){var ae=x("../internals/object-define-property").f;pe.exports=function(ne,se,ce){ce in ne||ae(ne,ce,{configurable:!0,get:function(){return se[ce]},set:function(ue){se[ce]=ue}})}},{"../internals/object-define-property":198}],220:[function(x,pe,de){var ae=function(){this.head=null,this.tail=null};ae.prototype={add:function(ne){var se={item:ne,next:null};this.head?this.tail.next=se:this.head=se,this.tail=se},get:function(){var ne=this.head;if(ne)return this.head=ne.next,this.tail===ne&&(this.tail=null),ne.item}},pe.exports=ae},{}],221:[function(x,pe,de){var ae=x("../internals/redefine");pe.exports=function(ne,se,ce){for(var ue in se)ae(ne,ue,se[ue],ce);return ne}},{"../internals/redefine":222}],222:[function(x,pe,de){var ae=x("../internals/global"),ne=x("../internals/is-callable"),se=x("../internals/has-own-property"),ce=x("../internals/create-non-enumerable-property"),ue=x("../internals/set-global"),ie=x("../internals/inspect-source"),oe=x("../internals/internal-state"),re=x("../internals/function-name").CONFIGURABLE,z=oe.get,a=oe.enforce,y=String(String).split("String");(pe.exports=function(E,b,ee,te){var le=te?!!te.unsafe:!1,fe=te?!!te.enumerable:!1,he=te?!!te.noTargetGet:!1,me=te&&te.name!==void 0?te.name:b,ge;if(ne(ee)&&(String(me).slice(0,7)==="Symbol("&&(me="["+String(me).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!se(ee,"name")||re&&ee.name!==me)&&ce(ee,"name",me),ge=a(ee),ge.source||(ge.source=y.join(typeof me=="string"?me:""))),E===ae){fe?E[b]=ee:ue(b,ee);return}else le?!he&&E[b]&&(fe=!0):delete E[b];fe?E[b]=ee:ce(E,b,ee)})(Function.prototype,"toString",function(){return ne(this)&&z(this).source||ie(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(x,pe,de){var ae=x("../internals/global"),ne=x("../internals/function-call"),se=x("../internals/an-object"),ce=x("../internals/is-callable"),ue=x("../internals/classof-raw"),ie=x("../internals/regexp-exec"),oe=ae.TypeError;pe.exports=function(re,z){var a=re.exec;if(ce(a)){var y=ne(a,re,z);return y!==null&&se(y),y}if(ue(re)==="RegExp")return ne(ie,re,z);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(x,pe,de){"use strict";var ae=x("../internals/function-call"),ne=x("../internals/function-uncurry-this"),se=x("../internals/to-string"),ce=x("../internals/regexp-flags"),ue=x("../internals/regexp-sticky-helpers"),ie=x("../internals/shared"),oe=x("../internals/object-create"),re=x("../internals/internal-state").get,z=x("../internals/regexp-unsupported-dot-all"),a=x("../internals/regexp-unsupported-ncg"),y=ie("native-string-replace",String.prototype.replace),E=RegExp.prototype.exec,b=E,ee=ne("".charAt),te=ne("".indexOf),le=ne("".replace),fe=ne("".slice),he=function(){var ve=/a/,be=/b*/g;return ae(E,ve,"a"),ae(E,be,"a"),ve.lastIndex!==0||be.lastIndex!==0}(),me=ue.BROKEN_CARET,ge=/()??/.exec("")[1]!==void 0,Se=he||ge||me||z||a;Se&&(b=function(be){var Pe=this,Te=re(Pe),_e=se(be),je=Te.raw,Ce,Ie,ke,$e,Ne,nt,qe;if(je)return je.lastIndex=Pe.lastIndex,Ce=ae(b,je,_e),Pe.lastIndex=je.lastIndex,Ce;var Je=Te.groups,Ye=me&&Pe.sticky,We=ae(ce,Pe),Fe=Pe.source,Ue=0,at=_e;if(Ye&&(We=le(We,"y",""),te(We,"g")===-1&&(We+="g"),at=fe(_e,Pe.lastIndex),Pe.lastIndex>0&&(!Pe.multiline||Pe.multiline&&ee(_e,Pe.lastIndex-1)!==`
|
|
|
`)&&(Fe="(?: "+Fe+")",at=" "+at,Ue++),Ie=new RegExp("^(?:"+Fe+")",We)),ge&&(Ie=new RegExp("^"+Fe+"$(?!\\s)",We)),he&&(ke=Pe.lastIndex),$e=ae(E,Ye?Ie:Pe,at),Ye?$e?($e.input=fe($e.input,Ue),$e[0]=fe($e[0],Ue),$e.index=Pe.lastIndex,Pe.lastIndex+=$e[0].length):Pe.lastIndex=0:he&&$e&&(Pe.lastIndex=Pe.global?$e.index+$e[0].length:ke),ge&&$e&&$e.length>1&&ae(y,$e[0],Ie,function(){for(Ne=1;Ne<arguments.length-2;Ne++)arguments[Ne]===void 0&&($e[Ne]=void 0)}),$e&&Je)for($e.groups=nt=oe(null),Ne=0;Ne<Je.length;Ne++)qe=Je[Ne],nt[qe[0]]=$e[qe[1]];return $e}),pe.exports=b},{"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/internal-state":173,"../internals/object-create":196,"../internals/regexp-flags":225,"../internals/regexp-sticky-helpers":227,"../internals/regexp-unsupported-dot-all":228,"../internals/regexp-unsupported-ncg":229,"../internals/shared":237,"../internals/to-string":256}],225:[function(x,pe,de){"use strict";var ae=x("../internals/an-object");pe.exports=function(){var ne=ae(this),se="";return ne.hasIndices&&(se+="d"),ne.global&&(se+="g"),ne.ignoreCase&&(se+="i"),ne.multiline&&(se+="m"),ne.dotAll&&(se+="s"),ne.unicode&&(se+="u"),ne.sticky&&(se+="y"),se}},{"../internals/an-object":101}],226:[function(x,pe,de){var ae=x("../internals/function-call"),ne=x("../internals/has-own-property"),se=x("../internals/object-is-prototype-of"),ce=x("../internals/regexp-flags"),ue=RegExp.prototype;pe.exports=function(ie){var oe=ie.flags;return oe===void 0&&!("flags"in ue)&&!ne(ie,"flags")&&se(ue,ie)?ae(ce,ie):oe}},{"../internals/function-call":155,"../internals/has-own-property":164,"../internals/object-is-prototype-of":204,"../internals/regexp-flags":225}],227:[function(x,pe,de){var ae=x("../internals/fails"),ne=x("../internals/global"),se=ne.RegExp,ce=ae(function(){var oe=se("a","y");return oe.lastIndex=2,oe.exec("abcd")!=null}),ue=ce||ae(function(){return!se("a","y").sticky}),ie=ce||ae(function(){var oe=se("^r","gy");return oe.lastIndex=2,oe.exec("str")!=null});pe.exports={BROKEN_CARET:ie,MISSED_STICKY:ue,UNSUPPORTED_Y:ce}},{"../internals/fails":150,"../internals/global":163}],228:[function(x,pe,de){var ae=x("../internals/fails"),ne=x("../internals/global"),se=ne.RegExp;pe.exports=ae(function(){var ce=se(".","s");return!(ce.dotAll&&ce.exec(`
|
|
|
`)&&ce.flags==="s")})},{"../internals/fails":150,"../internals/global":163}],229:[function(x,pe,de){var ae=x("../internals/fails"),ne=x("../internals/global"),se=ne.RegExp;pe.exports=ae(function(){var ce=se("(?<a>b)","g");return ce.exec("b").groups.a!=="b"||"b".replace(ce,"$<a>c")!=="bc"})},{"../internals/fails":150,"../internals/global":163}],230:[function(x,pe,de){var ae=x("../internals/global"),ne=ae.TypeError;pe.exports=function(se){if(se==null)throw ne("Can't call method on "+se);return se}},{"../internals/global":163}],231:[function(x,pe,de){pe.exports=Object.is||function(ne,se){return ne===se?ne!==0||1/ne===1/se:ne!=ne&&se!=se}},{}],232:[function(x,pe,de){var ae=x("../internals/global"),ne=Object.defineProperty;pe.exports=function(se,ce){try{ne(ae,se,{value:ce,configurable:!0,writable:!0})}catch(ue){ae[se]=ce}return ce}},{"../internals/global":163}],233:[function(x,pe,de){"use strict";var ae=x("../internals/get-built-in"),ne=x("../internals/object-define-property"),se=x("../internals/well-known-symbol"),ce=x("../internals/descriptors"),ue=se("species");pe.exports=function(ie){var oe=ae(ie),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(x,pe,de){var ae=x("../internals/object-define-property").f,ne=x("../internals/has-own-property"),se=x("../internals/well-known-symbol"),ce=se("toStringTag");pe.exports=function(ue,ie,oe){ue&&!oe&&(ue=ue.prototype),ue&&!ne(ue,ce)&&ae(ue,ce,{configurable:!0,value:ie})}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],235:[function(x,pe,de){var ae=x("../internals/shared"),ne=x("../internals/uid"),se=ae("keys");pe.exports=function(ce){return se[ce]||(se[ce]=ne(ce))}},{"../internals/shared":237,"../internals/uid":263}],236:[function(x,pe,de){var ae=x("../internals/global"),ne=x("../internals/set-global"),se="__core-js_shared__",ce=ae[se]||ne(se,{});pe.exports=ce},{"../internals/global":163,"../internals/set-global":232}],237:[function(x,pe,de){var ae=x("../internals/is-pure"),ne=x("../internals/shared-store");(pe.exports=function(se,ce){return ne[se]||(ne[se]=ce!==void 0?ce:{})})("versions",[]).push({version:"3.22.1",mode:ae?"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(x,pe,de){var ae=x("../internals/an-object"),ne=x("../internals/a-constructor"),se=x("../internals/well-known-symbol"),ce=se("species");pe.exports=function(ue,ie){var oe=ae(ue).constructor,re;return oe===void 0||(re=ae(oe)[ce])==null?ie:ne(re)}},{"../internals/a-constructor":96,"../internals/an-object":101,"../internals/well-known-symbol":268}],239:[function(x,pe,de){var ae=x("../internals/function-uncurry-this"),ne=x("../internals/to-integer-or-infinity"),se=x("../internals/to-string"),ce=x("../internals/require-object-coercible"),ue=ae("".charAt),ie=ae("".charCodeAt),oe=ae("".slice),re=function(z){return function(a,y){var E=se(ce(a)),b=ne(y),ee=E.length,te,le;return b<0||b>=ee?z?"":void 0:(te=ie(E,b),te<55296||te>56319||b+1===ee||(le=ie(E,b+1))<56320||le>57343?z?ue(E,b):te:z?oe(E,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(x,pe,de){var ae=x("../internals/function-name").PROPER,ne=x("../internals/fails"),se=x("../internals/whitespaces"),ce="\u200B\x85\u180E";pe.exports=function(ue){return ne(function(){return!!se[ue]()||ce[ue]()!==ce||ae&&se[ue].name!==ue})}},{"../internals/fails":150,"../internals/function-name":156,"../internals/whitespaces":269}],241:[function(x,pe,de){var ae=x("../internals/function-uncurry-this"),ne=x("../internals/require-object-coercible"),se=x("../internals/to-string"),ce=x("../internals/whitespaces"),ue=ae("".replace),ie="["+ce+"]",oe=RegExp("^"+ie+ie+"*"),re=RegExp(ie+ie+"*$"),z=function(a){return function(y){var E=se(ne(y));return a&1&&(E=ue(E,oe,"")),a&2&&(E=ue(E,re,"")),E}};pe.exports={start:z(1),end:z(2),trim:z(3)}},{"../internals/function-uncurry-this":157,"../internals/require-object-coercible":230,"../internals/to-string":256,"../internals/whitespaces":269}],242:[function(x,pe,de){var ae=x("../internals/function-call"),ne=x("../internals/get-built-in"),se=x("../internals/well-known-symbol"),ce=x("../internals/redefine");pe.exports=function(){var ue=ne("Symbol"),ie=ue&&ue.prototype,oe=ie&&ie.valueOf,re=se("toPrimitive");ie&&!ie[re]&&ce(ie,re,function(z){return ae(oe,this)})}},{"../internals/function-call":155,"../internals/get-built-in":158,"../internals/redefine":222,"../internals/well-known-symbol":268}],243:[function(x,pe,de){var ae=x("../internals/global"),ne=x("../internals/function-apply"),se=x("../internals/function-bind-context"),ce=x("../internals/is-callable"),ue=x("../internals/has-own-property"),ie=x("../internals/fails"),oe=x("../internals/html"),re=x("../internals/array-slice"),z=x("../internals/document-create-element"),a=x("../internals/validate-arguments-length"),y=x("../internals/engine-is-ios"),E=x("../internals/engine-is-node"),b=ae.setImmediate,ee=ae.clearImmediate,te=ae.process,le=ae.Dispatch,fe=ae.Function,he=ae.MessageChannel,me=ae.String,ge=0,Se={},ve="onreadystatechange",be,Pe,Te,_e;try{be=ae.location}catch($e){}var je=function($e){if(ue(Se,$e)){var Ne=Se[$e];delete Se[$e],Ne()}},Ce=function($e){return function(){je($e)}},Ie=function($e){je($e.data)},ke=function($e){ae.postMessage(me($e),be.protocol+"//"+be.host)};(!b||!ee)&&(b=function(Ne){a(arguments.length,1);var nt=ce(Ne)?Ne:fe(Ne),qe=re(arguments,1);return Se[++ge]=function(){ne(nt,void 0,qe)},Pe(ge),ge},ee=function(Ne){delete Se[Ne]},E?Pe=function($e){te.nextTick(Ce($e))}:le&&le.now?Pe=function($e){le.now(Ce($e))}:he&&!y?(Te=new he,_e=Te.port2,Te.port1.onmessage=Ie,Pe=se(_e.postMessage,_e)):ae.addEventListener&&ce(ae.postMessage)&&!ae.importScripts&&be&&be.protocol!=="file:"&&!ie(ke)?(Pe=ke,ae.addEventListener("message",Ie,!1)):ve in z("script")?Pe=function($e){oe.appendChild(z("script"))[ve]=function(){oe.removeChild(this),je($e)}}:Pe=function($e){setTimeout(Ce($e),0)}),pe.exports={set:b,clear:ee}},{"../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(x,pe,de){var ae=x("../internals/function-uncurry-this");pe.exports=ae(1 .valueOf)},{"../internals/function-uncurry-this":157}],245:[function(x,pe,de){var ae=x("../internals/to-integer-or-infinity"),ne=Math.max,se=Math.min;pe.exports=function(ce,ue){var ie=ae(ce);return ie<0?ne(ie+ue,0):se(ie,ue)}},{"../internals/to-integer-or-infinity":248}],246:[function(x,pe,de){var ae=x("../internals/global"),ne=x("../internals/to-integer-or-infinity"),se=x("../internals/to-length"),ce=ae.RangeError;pe.exports=function(ue){if(ue===void 0)return 0;var ie=ne(ue),oe=se(ie);if(ie!==oe)throw ce("Wrong length or index");return oe}},{"../internals/global":163,"../internals/to-integer-or-infinity":248,"../internals/to-length":249}],247:[function(x,pe,de){var ae=x("../internals/indexed-object"),ne=x("../internals/require-object-coercible");pe.exports=function(se){return ae(ne(se))}},{"../internals/indexed-object":170,"../internals/require-object-coercible":230}],248:[function(x,pe,de){var ae=Math.ceil,ne=Math.floor;pe.exports=function(se){var ce=+se;return ce!==ce||ce===0?0:(ce>0?ne:ae)(ce)}},{}],249:[function(x,pe,de){var ae=x("../internals/to-integer-or-infinity"),ne=Math.min;pe.exports=function(se){return se>0?ne(ae(se),9007199254740991):0}},{"../internals/to-integer-or-infinity":248}],250:[function(x,pe,de){var ae=x("../internals/global"),ne=x("../internals/require-object-coercible"),se=ae.Object;pe.exports=function(ce){return se(ne(ce))}},{"../internals/global":163,"../internals/require-object-coercible":230}],251:[function(x,pe,de){var ae=x("../internals/global"),ne=x("../internals/to-positive-integer"),se=ae.RangeError;pe.exports=function(ce,ue){var ie=ne(ce);if(ie%ue)throw se("Wrong offset");return ie}},{"../internals/global":163,"../internals/to-positive-integer":252}],252:[function(x,pe,de){var ae=x("../internals/global"),ne=x("../internals/to-integer-or-infinity"),se=ae.RangeError;pe.exports=function(ce){var ue=ne(ce);if(ue<0)throw se("The argument can't be less than 0");return ue}},{"../internals/global":163,"../internals/to-integer-or-infinity":248}],253:[function(x,pe,de){var ae=x("../internals/global"),ne=x("../internals/function-call"),se=x("../internals/is-object"),ce=x("../internals/is-symbol"),ue=x("../internals/get-method"),ie=x("../internals/ordinary-to-primitive"),oe=x("../internals/well-known-symbol"),re=ae.TypeError,z=oe("toPrimitive");pe.exports=function(a,y){if(!se(a)||ce(a))return a;var E=ue(a,z),b;if(E){if(y===void 0&&(y="default"),b=ne(E,a,y),!se(b)||ce(b))return b;throw re("Can't convert object to primitive value")}return y===void 0&&(y="number"),ie(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(x,pe,de){var ae=x("../internals/to-primitive"),ne=x("../internals/is-symbol");pe.exports=function(se){var ce=ae(se,"string");return ne(ce)?ce:ce+""}},{"../internals/is-symbol":183,"../internals/to-primitive":253}],255:[function(x,pe,de){var ae=x("../internals/well-known-symbol"),ne=ae("toStringTag"),se={};se[ne]="z",pe.exports=String(se)==="[object z]"},{"../internals/well-known-symbol":268}],256:[function(x,pe,de){var ae=x("../internals/global"),ne=x("../internals/classof"),se=ae.String;pe.exports=function(ce){if(ne(ce)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return se(ce)}},{"../internals/classof":124,"../internals/global":163}],257:[function(x,pe,de){var ae=x("../internals/global"),ne=ae.String;pe.exports=function(se){try{return ne(se)}catch(ce){return"Object"}}},{"../internals/global":163}],258:[function(x,pe,de){"use strict";var ae=x("../internals/export"),ne=x("../internals/global"),se=x("../internals/function-call"),ce=x("../internals/descriptors"),ue=x("../internals/typed-array-constructors-require-wrappers"),ie=x("../internals/array-buffer-view-core"),oe=x("../internals/array-buffer"),re=x("../internals/an-instance"),z=x("../internals/create-property-descriptor"),a=x("../internals/create-non-enumerable-property"),y=x("../internals/is-integral-number"),E=x("../internals/to-length"),b=x("../internals/to-index"),ee=x("../internals/to-offset"),te=x("../internals/to-property-key"),le=x("../internals/has-own-property"),fe=x("../internals/classof"),he=x("../internals/is-object"),me=x("../internals/is-symbol"),ge=x("../internals/object-create"),Se=x("../internals/object-is-prototype-of"),ve=x("../internals/object-set-prototype-of"),be=x("../internals/object-get-own-property-names").f,Pe=x("../internals/typed-array-from"),Te=x("../internals/array-iteration").forEach,_e=x("../internals/set-species"),je=x("../internals/object-define-property"),Ce=x("../internals/object-get-own-property-descriptor"),Ie=x("../internals/internal-state"),ke=x("../internals/inherit-if-required"),$e=Ie.get,Ne=Ie.set,nt=je.f,qe=Ce.f,Je=Math.round,Ye=ne.RangeError,We=oe.ArrayBuffer,Fe=We.prototype,Ue=oe.DataView,at=ie.NATIVE_ARRAY_BUFFER_VIEWS,Xe=ie.TYPED_ARRAY_CONSTRUCTOR,ut=ie.TYPED_ARRAY_TAG,Ze=ie.TypedArray,ze=ie.TypedArrayPrototype,Re=ie.aTypedArrayConstructor,it=ie.isTypedArray,Me="BYTES_PER_ELEMENT",Be="Wrong length",Qe=function(Ae,Ke){Re(Ae);for(var tt=0,He=Ke.length,ot=new Ae(He);He>tt;)ot[tt]=Ke[tt++];return ot},Ge=function(Ae,Ke){nt(Ae,Ke,{get:function(){return $e(this)[Ke]}})},De=function(Ae){var Ke;return Se(Fe,Ae)||(Ke=fe(Ae))=="ArrayBuffer"||Ke=="SharedArrayBuffer"},Le=function(Ae,Ke){return it(Ae)&&!me(Ke)&&Ke in Ae&&y(+Ke)&&Ke>=0},Oe=function(Ke,tt){return tt=te(tt),Le(Ke,tt)?z(2,Ke[tt]):qe(Ke,tt)},xe=function(Ke,tt,He){return tt=te(tt),Le(Ke,tt)&&he(He)&&le(He,"value")&&!le(He,"get")&&!le(He,"set")&&!He.configurable&&(!le(He,"writable")||He.writable)&&(!le(He,"enumerable")||He.enumerable)?(Ke[tt]=He.value,Ke):nt(Ke,tt,He)};ce?(at||(Ce.f=Oe,je.f=xe,Ge(ze,"buffer"),Ge(ze,"byteOffset"),Ge(ze,"byteLength"),Ge(ze,"length")),ae({target:"Object",stat:!0,forced:!at},{getOwnPropertyDescriptor:Oe,defineProperty:xe}),pe.exports=function(Ae,Ke,tt){var He=Ae.match(/\d+$/)[0]/8,ot=Ae+(tt?"Clamped":"")+"Array",mt="get"+Ae,lt="set"+Ae,pt=ne[ot],st=pt,vt=st&&st.prototype,rt={},ct=function(Ct,It){var Wt=$e(Ct);return Wt.view[mt](It*He+Wt.byteOffset,!0)},gt=function(Ct,It,Wt){var Ht=$e(Ct);tt&&(Wt=(Wt=Je(Wt))<0?0:Wt>255?255:Wt&255),Ht.view[lt](It*He+Ht.byteOffset,Wt,!0)},St=function(Ct,It){nt(Ct,It,{get:function(){return ct(this,It)},set:function(Wt){return gt(this,It,Wt)},enumerable:!0})};at?ue&&(st=Ke(function(Ct,It,Wt,Ht){return re(Ct,vt),ke(function(){return he(It)?De(It)?Ht!==void 0?new pt(It,ee(Wt,He),Ht):Wt!==void 0?new pt(It,ee(Wt,He)):new pt(It):it(It)?Qe(st,It):se(Pe,st,It):new pt(b(It))}(),Ct,st)}),ve&&ve(st,Ze),Te(be(pt),function(Ct){Ct in st||a(st,Ct,pt[Ct])}),st.prototype=vt):(st=Ke(function(Ct,It,Wt,Ht){re(Ct,vt);var Xt=0,on=0,qt,tn,wn;if(!he(It))wn=b(It),tn=wn*He,qt=new We(tn);else if(De(It)){qt=It,on=ee(Wt,He);var En=It.byteLength;if(Ht===void 0){if(En%He||(tn=En-on,tn<0))throw Ye(Be)}else if(tn=E(Ht)*He,tn+on>En)throw Ye(Be);wn=tn/He}else return it(It)?Qe(st,It):se(Pe,st,It);for(Ne(Ct,{buffer:qt,byteOffset:on,byteLength:tn,length:wn,view:new Ue(qt)});Xt<wn;)St(Ct,Xt++)}),ve&&ve(st,Ze),vt=st.prototype=ge(ze)),vt.constructor!==st&&a(vt,"constructor",st),a(vt,Xe,st),ut&&a(vt,ut,ot),rt[ot]=st,ae({global:!0,forced:st!=pt,sham:!at},rt),Me in st||a(st,Me,He),Me in vt||a(vt,Me,He),_e(ot)}):pe.exports=function(){}},{"../internals/an-instance":100,"../internals/array-buffer":104,"../internals/array-buffer-view-core":103,"../internals/array-iteration":111,"../internals/classof":124,"../internals/create-non-enumerable-property":129,"../internals/create-property-descriptor":130,"../internals/descriptors":134,"../internals/export":149,"../internals/function-call":155,"../internals/global":163,"../internals/has-own-property":164,"../internals/inherit-if-required":171,"../internals/internal-state":173,"../internals/is-integral-number":179,"../internals/is-object":180,"../internals/is-symbol":183,"../internals/object-create":196,"../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/object-set-prototype-of":208,"../internals/set-species":233,"../internals/to-index":246,"../internals/to-length":249,"../internals/to-offset":251,"../internals/to-property-key":254,"../internals/typed-array-constructors-require-wrappers":259,"../internals/typed-array-from":261}],259:[function(x,pe,de){var ae=x("../internals/global"),ne=x("../internals/fails"),se=x("../internals/check-correctness-of-iteration"),ce=x("../internals/array-buffer-view-core").NATIVE_ARRAY_BUFFER_VIEWS,ue=ae.ArrayBuffer,ie=ae.Int8Array;pe.exports=!ce||!ne(function(){ie(1)})||!ne(function(){new ie(-1)})||!se(function(oe){new ie,new ie(null),new ie(1.5),new ie(oe)},!0)||ne(function(){return new ie(new ue(2),1,void 0).length!==1})},{"../internals/array-buffer-view-core":103,"../internals/check-correctness-of-iteration":122,"../internals/fails":150,"../internals/global":163}],260:[function(x,pe,de){var ae=x("../internals/array-from-constructor-and-list"),ne=x("../internals/typed-array-species-constructor");pe.exports=function(se,ce){return ae(ne(se),ce)}},{"../internals/array-from-constructor-and-list":108,"../internals/typed-array-species-constructor":262}],261:[function(x,pe,de){var ae=x("../internals/function-bind-context"),ne=x("../internals/function-call"),se=x("../internals/a-constructor"),ce=x("../internals/to-object"),ue=x("../internals/length-of-array-like"),ie=x("../internals/get-iterator"),oe=x("../internals/get-iterator-method"),re=x("../internals/is-array-iterator-method"),z=x("../internals/array-buffer-view-core").aTypedArrayConstructor;pe.exports=function(y){var E=se(this),b=ce(y),ee=arguments.length,te=ee>1?arguments[1]:void 0,le=te!==void 0,fe=oe(b),he,me,ge,Se,ve,be;if(fe&&!re(fe))for(ve=ie(b,fe),be=ve.next,b=[];!(Se=ne(be,ve)).done;)b.push(Se.value);for(le&&ee>2&&(te=ae(te,arguments[2])),me=ue(b),ge=new(z(E))(me),he=0;me>he;he++)ge[he]=le?te(b[he],he):b[he];return ge}},{"../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(x,pe,de){var ae=x("../internals/array-buffer-view-core"),ne=x("../internals/species-constructor"),se=ae.TYPED_ARRAY_CONSTRUCTOR,ce=ae.aTypedArrayConstructor;pe.exports=function(ue){return ce(ne(ue,ue[se]))}},{"../internals/array-buffer-view-core":103,"../internals/species-constructor":238}],263:[function(x,pe,de){var ae=x("../internals/function-uncurry-this"),ne=0,se=Math.random(),ce=ae(1 .toString);pe.exports=function(ue){return"Symbol("+(ue===void 0?"":ue)+")_"+ce(++ne+se,36)}},{"../internals/function-uncurry-this":157}],264:[function(x,pe,de){var ae=x("../internals/native-symbol");pe.exports=ae&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},{"../internals/native-symbol":191}],265:[function(x,pe,de){var ae=x("../internals/descriptors"),ne=x("../internals/fails");pe.exports=ae&&ne(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})},{"../internals/descriptors":134,"../internals/fails":150}],266:[function(x,pe,de){var ae=x("../internals/global"),ne=ae.TypeError;pe.exports=function(se,ce){if(se<ce)throw ne("Not enough arguments");return se}},{"../internals/global":163}],267:[function(x,pe,de){var ae=x("../internals/well-known-symbol");de.f=ae},{"../internals/well-known-symbol":268}],268:[function(x,pe,de){var ae=x("../internals/global"),ne=x("../internals/shared"),se=x("../internals/has-own-property"),ce=x("../internals/uid"),ue=x("../internals/native-symbol"),ie=x("../internals/use-symbol-as-uid"),oe=ne("wks"),re=ae.Symbol,z=re&&re.for,a=ie?re:re&&re.withoutSetter||ce;pe.exports=function(y){if(!se(oe,y)||!(ue||typeof oe[y]=="string")){var E="Symbol."+y;ue&&se(re,y)?oe[y]=re[y]:ie&&z?oe[y]=z(E):oe[y]=a(E)}return oe[y]}},{"../internals/global":163,"../internals/has-own-property":164,"../internals/native-symbol":191,"../internals/shared":237,"../internals/uid":263,"../internals/use-symbol-as-uid":264}],269:[function(x,pe,de){pe.exports=`
|
|
|
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},{}],270:[function(x,pe,de){"use strict";var ae=x("../internals/export"),ne=x("../internals/global"),se=x("../internals/array-buffer"),ce=x("../internals/set-species"),ue="ArrayBuffer",ie=se[ue],oe=ne[ue];ae({global:!0,forced:oe!==ie},{ArrayBuffer:ie}),ce(ue)},{"../internals/array-buffer":104,"../internals/export":149,"../internals/global":163,"../internals/set-species":233}],271:[function(x,pe,de){"use strict";var ae=x("../internals/export"),ne=x("../internals/function-uncurry-this"),se=x("../internals/fails"),ce=x("../internals/array-buffer"),ue=x("../internals/an-object"),ie=x("../internals/to-absolute-index"),oe=x("../internals/to-length"),re=x("../internals/species-constructor"),z=ce.ArrayBuffer,a=ce.DataView,y=a.prototype,E=ne(z.prototype.slice),b=ne(y.getUint8),ee=ne(y.setUint8),te=se(function(){return!new z(2).slice(1,void 0).byteLength});ae({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:te},{slice:function(fe,he){if(E&&he===void 0)return E(ue(this),fe);for(var me=ue(this).byteLength,ge=ie(fe,me),Se=ie(he===void 0?me:he,me),ve=new(re(this,z))(oe(Se-ge)),be=new a(this),Pe=new a(ve),Te=0;ge<Se;)ee(Pe,Te++,b(be,ge++));return ve}})},{"../internals/an-object":101,"../internals/array-buffer":104,"../internals/export":149,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/species-constructor":238,"../internals/to-absolute-index":245,"../internals/to-length":249}],272:[function(x,pe,de){"use strict";var ae=x("../internals/export"),ne=x("../internals/global"),se=x("../internals/fails"),ce=x("../internals/is-array"),ue=x("../internals/is-object"),ie=x("../internals/to-object"),oe=x("../internals/length-of-array-like"),re=x("../internals/create-property"),z=x("../internals/array-species-create"),a=x("../internals/array-method-has-species-support"),y=x("../internals/well-known-symbol"),E=x("../internals/engine-v8-version"),b=y("isConcatSpreadable"),ee=9007199254740991,te="Maximum allowed index exceeded",le=ne.TypeError,fe=E>=51||!se(function(){var Se=[];return Se[b]=!1,Se.concat()[0]!==Se}),he=a("concat"),me=function(Se){if(!ue(Se))return!1;var ve=Se[b];return ve!==void 0?!!ve:ce(Se)},ge=!fe||!he;ae({target:"Array",proto:!0,forced:ge},{concat:function(ve){var be=ie(this),Pe=z(be,0),Te=0,_e,je,Ce,Ie,ke;for(_e=-1,Ce=arguments.length;_e<Ce;_e++)if(ke=_e===-1?be:arguments[_e],me(ke)){if(Ie=oe(ke),Te+Ie>ee)throw le(te);for(je=0;je<Ie;je++,Te++)je in ke&&re(Pe,Te,ke[je])}else{if(Te>=ee)throw le(te);re(Pe,Te++,ke)}return Pe.length=Te,Pe}})},{"../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(x,pe,de){var ae=x("../internals/export"),ne=x("../internals/array-fill"),se=x("../internals/add-to-unscopables");ae({target:"Array",proto:!0},{fill:ne}),se("fill")},{"../internals/add-to-unscopables":98,"../internals/array-fill":106,"../internals/export":149}],274:[function(x,pe,de){"use strict";var ae=x("../internals/export"),ne=x("../internals/array-iteration").filter,se=x("../internals/array-method-has-species-support"),ce=se("filter");ae({target:"Array",proto:!0,forced:!ce},{filter:function(ie){return ne(this,ie,arguments.length>1?arguments[1]:void 0)}})},{"../internals/array-iteration":111,"../internals/array-method-has-species-support":113,"../internals/export":149}],275:[function(x,pe,de){"use strict";var ae=x("../internals/export"),ne=x("../internals/array-iteration").find,se=x("../internals/add-to-unscopables"),ce="find",ue=!0;ce in[]&&Array(1)[ce](function(){ue=!1}),ae({target:"Array",proto:!0,forced:ue},{find:function(oe){return ne(this,oe,arguments.length>1?arguments[1]:void 0)}}),se(ce)},{"../internals/add-to-unscopables":98,"../internals/array-iteration":111,"../internals/export":149}],276:[function(x,pe,de){var ae=x("../internals/export"),ne=x("../internals/array-from"),se=x("../internals/check-correctness-of-iteration"),ce=!se(function(ue){Array.from(ue)});ae({target:"Array",stat:!0,forced:ce},{from:ne})},{"../internals/array-from":109,"../internals/check-correctness-of-iteration":122,"../internals/export":149}],277:[function(x,pe,de){"use strict";var ae=x("../internals/export"),ne=x("../internals/array-includes").includes,se=x("../internals/add-to-unscopables");ae({target:"Array",proto:!0},{includes:function(ue){return ne(this,ue,arguments.length>1?arguments[1]:void 0)}}),se("includes")},{"../internals/add-to-unscopables":98,"../internals/array-includes":110,"../internals/export":149}],278:[function(x,pe,de){"use strict";var ae=x("../internals/to-indexed-object"),ne=x("../internals/add-to-unscopables"),se=x("../internals/iterators"),ce=x("../internals/internal-state"),ue=x("../internals/object-define-property").f,ie=x("../internals/define-iterator"),oe=x("../internals/is-pure"),re=x("../internals/descriptors"),z="Array Iterator",a=ce.set,y=ce.getterFor(z);pe.exports=ie(Array,"Array",function(b,ee){a(this,{type:z,target:ae(b),index:0,kind:ee})},function(){var b=y(this),ee=b.target,te=b.kind,le=b.index++;return!ee||le>=ee.length?(b.target=void 0,{value:void 0,done:!0}):te=="keys"?{value:le,done:!1}:te=="values"?{value:ee[le],done:!1}:{value:[le,ee[le]],done:!1}},"values");var E=se.Arguments=se.Array;if(ne("keys"),ne("values"),ne("entries"),!oe&&re&&E.name!=="values")try{ue(E,"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(x,pe,de){"use strict";var ae=x("../internals/export"),ne=x("../internals/function-uncurry-this"),se=x("../internals/indexed-object"),ce=x("../internals/to-indexed-object"),ue=x("../internals/array-method-is-strict"),ie=ne([].join),oe=se!=Object,re=ue("join",",");ae({target:"Array",proto:!0,forced:oe||!re},{join:function(a){return ie(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(x,pe,de){"use strict";var ae=x("../internals/export"),ne=x("../internals/array-iteration").map,se=x("../internals/array-method-has-species-support"),ce=se("map");ae({target:"Array",proto:!0,forced:!ce},{map:function(ie){return ne(this,ie,arguments.length>1?arguments[1]:void 0)}})},{"../internals/array-iteration":111,"../internals/array-method-has-species-support":113,"../internals/export":149}],281:[function(x,pe,de){"use strict";var ae=x("../internals/export"),ne=x("../internals/global"),se=x("../internals/is-array"),ce=x("../internals/is-constructor"),ue=x("../internals/is-object"),ie=x("../internals/to-absolute-index"),oe=x("../internals/length-of-array-like"),re=x("../internals/to-indexed-object"),z=x("../internals/create-property"),a=x("../internals/well-known-symbol"),y=x("../internals/array-method-has-species-support"),E=x("../internals/array-slice"),b=y("slice"),ee=a("species"),te=ne.Array,le=Math.max;ae({target:"Array",proto:!0,forced:!b},{slice:function(he,me){var ge=re(this),Se=oe(ge),ve=ie(he,Se),be=ie(me===void 0?Se:me,Se),Pe,Te,_e;if(se(ge)&&(Pe=ge.constructor,ce(Pe)&&(Pe===te||se(Pe.prototype))?Pe=void 0:ue(Pe)&&(Pe=Pe[ee],Pe===null&&(Pe=void 0)),Pe===te||Pe===void 0))return E(ge,ve,be);for(Te=new(Pe===void 0?te:Pe)(le(be-ve,0)),_e=0;ve<be;ve++,_e++)ve in ge&&z(Te,_e,ge[ve]);return Te.length=_e,Te}})},{"../internals/array-method-has-species-support":113,"../internals/array-slice":117,"../internals/create-property":131,"../internals/export":149,"../internals/global":163,"../internals/is-array":175,"../internals/is-constructor":177,"../internals/is-object":180,"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-indexed-object":247,"../internals/well-known-symbol":268}],282:[function(x,pe,de){"use strict";var ae=x("../internals/export"),ne=x("../internals/function-uncurry-this"),se=x("../internals/a-callable"),ce=x("../internals/to-object"),ue=x("../internals/length-of-array-like"),ie=x("../internals/to-string"),oe=x("../internals/fails"),re=x("../internals/array-sort"),z=x("../internals/array-method-is-strict"),a=x("../internals/engine-ff-version"),y=x("../internals/engine-is-ie-or-edge"),E=x("../internals/engine-v8-version"),b=x("../internals/engine-webkit-version"),ee=[],te=ne(ee.sort),le=ne(ee.push),fe=oe(function(){ee.sort(void 0)}),he=oe(function(){ee.sort(null)}),me=z("sort"),ge=!oe(function(){if(E)return E<70;if(!(a&&a>3)){if(y)return!0;if(b)return b<603;var be="",Pe,Te,_e,je;for(Pe=65;Pe<76;Pe++){switch(Te=String.fromCharCode(Pe),Pe){case 66:case 69:case 70:case 72:_e=3;break;case 68:case 71:_e=4;break;default:_e=2}for(je=0;je<47;je++)ee.push({k:Te+je,v:_e})}for(ee.sort(function(Ce,Ie){return Ie.v-Ce.v}),je=0;je<ee.length;je++)Te=ee[je].k.charAt(0),be.charAt(be.length-1)!==Te&&(be+=Te);return be!=="DGBEFHACIJK"}}),Se=fe||!he||!me||!ge,ve=function(be){return function(Pe,Te){return Te===void 0?-1:Pe===void 0?1:be!==void 0?+be(Pe,Te)||0:ie(Pe)>ie(Te)?1:-1}};ae({target:"Array",proto:!0,forced:Se},{sort:function(Pe){Pe!==void 0&&se(Pe);var Te=ce(this);if(ge)return Pe===void 0?te(Te):te(Te,Pe);var _e=[],je=ue(Te),Ce,Ie;for(Ie=0;Ie<je;Ie++)Ie in Te&&le(_e,Te[Ie]);for(re(_e,ve(Pe)),Ce=_e.length,Ie=0;Ie<Ce;)Te[Ie]=_e[Ie++];for(;Ie<je;)delete Te[Ie++];return Te}})},{"../internals/a-callable":95,"../internals/array-method-is-strict":114,"../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/export":149,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/length-of-array-like":188,"../internals/to-object":250,"../internals/to-string":256}],283:[function(x,pe,de){"use strict";var ae=x("../internals/export"),ne=x("../internals/global"),se=x("../internals/to-absolute-index"),ce=x("../internals/to-integer-or-infinity"),ue=x("../internals/length-of-array-like"),ie=x("../internals/to-object"),oe=x("../internals/array-species-create"),re=x("../internals/create-property"),z=x("../internals/array-method-has-species-support"),a=z("splice"),y=ne.TypeError,E=Math.max,b=Math.min,ee=9007199254740991,te="Maximum allowed length exceeded";ae({target:"Array",proto:!0,forced:!a},{splice:function(fe,he){var me=ie(this),ge=ue(me),Se=se(fe,ge),ve=arguments.length,be,Pe,Te,_e,je,Ce;if(ve===0?be=Pe=0:ve===1?(be=0,Pe=ge-Se):(be=ve-2,Pe=b(E(ce(he),0),ge-Se)),ge+be-Pe>ee)throw y(te);for(Te=oe(me,Pe),_e=0;_e<Pe;_e++)je=Se+_e,je in me&&re(Te,_e,me[je]);if(Te.length=Pe,be<Pe){for(_e=Se;_e<ge-Pe;_e++)je=_e+Pe,Ce=_e+be,je in me?me[Ce]=me[je]:delete me[Ce];for(_e=ge;_e>ge-Pe+be;_e--)delete me[_e-1]}else if(be>Pe)for(_e=ge-Pe;_e>Se;_e--)je=_e+Pe-1,Ce=_e+be-1,je in me?me[Ce]=me[je]:delete me[Ce];for(_e=0;_e<be;_e++)me[_e+Se]=arguments[_e+2];return me.length=ge-Pe+be,Te}})},{"../internals/array-method-has-species-support":113,"../internals/array-species-create":120,"../internals/create-property":131,"../internals/export":149,"../internals/global":163,"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-integer-or-infinity":248,"../internals/to-object":250}],284:[function(x,pe,de){var ae=x("../internals/descriptors"),ne=x("../internals/function-name").EXISTS,se=x("../internals/function-uncurry-this"),ce=x("../internals/object-define-property").f,ue=Function.prototype,ie=se(ue.toString),oe=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,re=se(oe.exec),z="name";ae&&!ne&&ce(ue,z,{configurable:!0,get:function(){try{return re(oe,ie(this))[1]}catch(a){return""}}})},{"../internals/descriptors":134,"../internals/function-name":156,"../internals/function-uncurry-this":157,"../internals/object-define-property":198}],285:[function(x,pe,de){var ae=x("../internals/export"),ne=x("../internals/get-built-in"),se=x("../internals/function-apply"),ce=x("../internals/function-call"),ue=x("../internals/function-uncurry-this"),ie=x("../internals/fails"),oe=x("../internals/is-array"),re=x("../internals/is-callable"),z=x("../internals/is-object"),a=x("../internals/is-symbol"),y=x("../internals/array-slice"),E=x("../internals/native-symbol"),b=ne("JSON","stringify"),ee=ue(/./.exec),te=ue("".charAt),le=ue("".charCodeAt),fe=ue("".replace),he=ue(1 .toString),me=/[\uD800-\uDFFF]/g,ge=/^[\uD800-\uDBFF]$/,Se=/^[\uDC00-\uDFFF]$/,ve=!E||ie(function(){var _e=ne("Symbol")();return b([_e])!="[null]"||b({a:_e})!="{}"||b(Object(_e))!="{}"}),be=ie(function(){return b("\uDF06\uD834")!=='"\\udf06\\ud834"'||b("\uDEAD")!=='"\\udead"'}),Pe=function(_e,je){var Ce=y(arguments),Ie=je;if(!(!z(je)&&_e===void 0||a(_e)))return oe(je)||(je=function(ke,$e){if(re(Ie)&&($e=ce(Ie,this,ke,$e)),!a($e))return $e}),Ce[1]=je,se(b,null,Ce)},Te=function(_e,je,Ce){var Ie=te(Ce,je-1),ke=te(Ce,je+1);return ee(ge,_e)&&!ee(Se,ke)||ee(Se,_e)&&!ee(ge,Ie)?"\\u"+he(le(_e,0),16):_e};b&&ae({target:"JSON",stat:!0,forced:ve||be},{stringify:function(je,Ce,Ie){var ke=y(arguments),$e=se(ve?Pe:b,null,ke);return be&&typeof $e=="string"?fe($e,me,Te):$e}})},{"../internals/array-slice":117,"../internals/export":149,"../internals/fails":150,"../internals/function-apply":152,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/get-built-in":158,"../internals/is-array":175,"../internals/is-callable":176,"../internals/is-object":180,"../internals/is-symbol":183,"../internals/native-symbol":191}],286:[function(x,pe,de){"use strict";var ae=x("../internals/descriptors"),ne=x("../internals/global"),se=x("../internals/function-uncurry-this"),ce=x("../internals/is-forced"),ue=x("../internals/redefine"),ie=x("../internals/has-own-property"),oe=x("../internals/inherit-if-required"),re=x("../internals/object-is-prototype-of"),z=x("../internals/is-symbol"),a=x("../internals/to-primitive"),y=x("../internals/fails"),E=x("../internals/object-get-own-property-names").f,b=x("../internals/object-get-own-property-descriptor").f,ee=x("../internals/object-define-property").f,te=x("../internals/this-number-value"),le=x("../internals/string-trim").trim,fe="Number",he=ne[fe],me=he.prototype,ge=ne.TypeError,Se=se("".slice),ve=se("".charCodeAt),be=function(Ie){var ke=a(Ie,"number");return typeof ke=="bigint"?ke:Pe(ke)},Pe=function(Ie){var ke=a(Ie,"number"),$e,Ne,nt,qe,Je,Ye,We,Fe;if(z(ke))throw ge("Cannot convert a Symbol value to a number");if(typeof ke=="string"&&ke.length>2){if(ke=le(ke),$e=ve(ke,0),$e===43||$e===45){if(Ne=ve(ke,2),Ne===88||Ne===120)return NaN}else if($e===48){switch(ve(ke,1)){case 66:case 98:nt=2,qe=49;break;case 79:case 111:nt=8,qe=55;break;default:return+ke}for(Je=Se(ke,2),Ye=Je.length,We=0;We<Ye;We++)if(Fe=ve(Je,We),Fe<48||Fe>qe)return NaN;return parseInt(Je,nt)}}return+ke};if(ce(fe,!he(" 0o1")||!he("0b1")||he("+0x1"))){for(var Te=function(ke){var $e=arguments.length<1?0:he(be(ke)),Ne=this;return re(me,Ne)&&y(function(){te(Ne)})?oe(Object($e),Ne,Te):$e},_e=ae?E(he):"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(","),je=0,Ce;_e.length>je;je++)ie(he,Ce=_e[je])&&!ie(Te,Ce)&&ee(Te,Ce,b(he,Ce));Te.prototype=me,me.constructor=Te,ue(ne,fe,Te)}},{"../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(x,pe,de){var ae=x("../internals/export"),ne=x("../internals/object-assign");ae({target:"Object",stat:!0,forced:Object.assign!==ne},{assign:ne})},{"../internals/export":149,"../internals/object-assign":195}],288:[function(x,pe,de){var ae=x("../internals/export"),ne=x("../internals/object-to-array").entries;ae({target:"Object",stat:!0},{entries:function(ce){return ne(ce)}})},{"../internals/export":149,"../internals/object-to-array":209}],289:[function(x,pe,de){var ae=x("../internals/export"),ne=x("../internals/native-symbol"),se=x("../internals/fails"),ce=x("../internals/object-get-own-property-symbols"),ue=x("../internals/to-object"),ie=!ne||se(function(){ce.f(1)});ae({target:"Object",stat:!0,forced:ie},{getOwnPropertySymbols:function(re){var z=ce.f;return z?z(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(x,pe,de){var ae=x("../internals/export"),ne=x("../internals/to-object"),se=x("../internals/object-keys"),ce=x("../internals/fails"),ue=ce(function(){se(1)});ae({target:"Object",stat:!0,forced:ue},{keys:function(oe){return se(ne(oe))}})},{"../internals/export":149,"../internals/fails":150,"../internals/object-keys":206,"../internals/to-object":250}],291:[function(x,pe,de){var ae=x("../internals/to-string-tag-support"),ne=x("../internals/redefine"),se=x("../internals/object-to-string");ae||ne(Object.prototype,"toString",se,{unsafe:!0})},{"../internals/object-to-string":210,"../internals/redefine":222,"../internals/to-string-tag-support":255}],292:[function(x,pe,de){"use strict";var ae=x("../internals/export"),ne=x("../internals/function-call"),se=x("../internals/a-callable"),ce=x("../internals/new-promise-capability"),ue=x("../internals/perform"),ie=x("../internals/iterate"),oe=x("../internals/promise-statics-incorrect-iteration");ae({target:"Promise",stat:!0,forced:oe},{all:function(z){var a=this,y=ce.f(a),E=y.resolve,b=y.reject,ee=ue(function(){var te=se(a.resolve),le=[],fe=0,he=1;ie(z,function(me){var ge=fe++,Se=!1;he++,ne(te,a,me).then(function(ve){Se||(Se=!0,le[ge]=ve,--he||E(le))},b)}),--he||E(le)});return ee.error&&b(ee.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(x,pe,de){"use strict";var ae=x("../internals/export"),ne=x("../internals/is-pure"),se=x("../internals/promise-constructor-detection").CONSTRUCTOR,ce=x("../internals/promise-native-constructor"),ue=x("../internals/get-built-in"),ie=x("../internals/is-callable"),oe=x("../internals/redefine"),re=ce&&ce.prototype;if(ae({target:"Promise",proto:!0,forced:se,real:!0},{catch:function(a){return this.then(void 0,a)}}),!ne&&ie(ce)){var z=ue("Promise").prototype.catch;re.catch!==z&&oe(re,"catch",z,{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(x,pe,de){"use strict";var ae=x("../internals/export"),ne=x("../internals/is-pure"),se=x("../internals/engine-is-node"),ce=x("../internals/global"),ue=x("../internals/function-call"),ie=x("../internals/redefine"),oe=x("../internals/redefine-all"),re=x("../internals/object-set-prototype-of"),z=x("../internals/set-to-string-tag"),a=x("../internals/set-species"),y=x("../internals/a-callable"),E=x("../internals/is-callable"),b=x("../internals/is-object"),ee=x("../internals/an-instance"),te=x("../internals/species-constructor"),le=x("../internals/task").set,fe=x("../internals/microtask"),he=x("../internals/host-report-errors"),me=x("../internals/perform"),ge=x("../internals/queue"),Se=x("../internals/internal-state"),ve=x("../internals/promise-native-constructor"),be=x("../internals/promise-constructor-detection"),Pe=x("../internals/new-promise-capability"),Te="Promise",_e=be.CONSTRUCTOR,je=be.REJECTION_EVENT,Ce=be.SUBCLASSING,Ie=Se.getterFor(Te),ke=Se.set,$e=ve&&ve.prototype,Ne=ve,nt=$e,qe=ce.TypeError,Je=ce.document,Ye=ce.process,We=Pe.f,Fe=We,Ue=!!(Je&&Je.createEvent&&ce.dispatchEvent),at="unhandledrejection",Xe="rejectionhandled",ut=0,Ze=1,ze=2,Re=1,it=2,Me,Be,Qe,Ge,De=function(lt){var pt;return b(lt)&&E(pt=lt.then)?pt:!1},Le=function(lt,pt){var st=pt.value,vt=pt.state==Ze,rt=vt?lt.ok:lt.fail,ct=lt.resolve,gt=lt.reject,St=lt.domain,Ct,It,Wt;try{rt?(vt||(pt.rejection===it&&tt(pt),pt.rejection=Re),rt===!0?Ct=st:(St&&St.enter(),Ct=rt(st),St&&(St.exit(),Wt=!0)),Ct===lt.promise?gt(qe("Promise-chain cycle")):(It=De(Ct))?ue(It,Ct,ct,gt):ct(Ct)):gt(st)}catch(Ht){St&&!Wt&&St.exit(),gt(Ht)}},Oe=function(lt,pt){lt.notified||(lt.notified=!0,fe(function(){for(var st=lt.reactions,vt;vt=st.get();)Le(vt,lt);lt.notified=!1,pt&&!lt.rejection&&Ae(lt)}))},xe=function(lt,pt,st){var vt,rt;Ue?(vt=Je.createEvent("Event"),vt.promise=pt,vt.reason=st,vt.initEvent(lt,!1,!0),ce.dispatchEvent(vt)):vt={promise:pt,reason:st},!je&&(rt=ce["on"+lt])?rt(vt):lt===at&&he("Unhandled promise rejection",st)},Ae=function(lt){ue(le,ce,function(){var pt=lt.facade,st=lt.value,vt=Ke(lt),rt;if(vt&&(rt=me(function(){se?Ye.emit("unhandledRejection",st,pt):xe(at,pt,st)}),lt.rejection=se||Ke(lt)?it:Re,rt.error))throw rt.value})},Ke=function(lt){return lt.rejection!==Re&&!lt.parent},tt=function(lt){ue(le,ce,function(){var pt=lt.facade;se?Ye.emit("rejectionHandled",pt):xe(Xe,pt,lt.value)})},He=function(lt,pt,st){return function(vt){lt(pt,vt,st)}},ot=function(lt,pt,st){lt.done||(lt.done=!0,st&&(lt=st),lt.value=pt,lt.state=ze,Oe(lt,!0))},mt=function(lt,pt,st){if(!lt.done){lt.done=!0,st&&(lt=st);try{if(lt.facade===pt)throw qe("Promise can't be resolved itself");var vt=De(pt);vt?fe(function(){var rt={done:!1};try{ue(vt,pt,He(mt,rt,lt),He(ot,rt,lt))}catch(ct){ot(rt,ct,lt)}}):(lt.value=pt,lt.state=Ze,Oe(lt,!1))}catch(rt){ot({done:!1},rt,lt)}}};if(_e&&(Ne=function(pt){ee(this,nt),y(pt),ue(Me,this);var st=Ie(this);try{pt(He(mt,st),He(ot,st))}catch(vt){ot(st,vt)}},nt=Ne.prototype,Me=function(pt){ke(this,{type:Te,done:!1,notified:!1,parent:!1,reactions:new ge,rejection:!1,state:ut,value:void 0})},Me.prototype=oe(nt,{then:function(pt,st){var vt=Ie(this),rt=We(te(this,Ne));return vt.parent=!0,rt.ok=E(pt)?pt:!0,rt.fail=E(st)&&st,rt.domain=se?Ye.domain:void 0,vt.state==ut?vt.reactions.add(rt):fe(function(){Le(rt,vt)}),rt.promise}}),Be=function(){var lt=new Me,pt=Ie(lt);this.promise=lt,this.resolve=He(mt,pt),this.reject=He(ot,pt)},Pe.f=We=function(lt){return lt===Ne||lt===Qe?new Be(lt):Fe(lt)},!ne&&E(ve)&&$e!==Object.prototype)){Ge=$e.then,Ce||ie($e,"then",function(pt,st){var vt=this;return new Ne(function(rt,ct){ue(Ge,vt,rt,ct)}).then(pt,st)},{unsafe:!0});try{delete $e.constructor}catch(lt){}re&&re($e,nt)}ae({global:!0,wrap:!0,forced:_e},{Promise:Ne}),z(Ne,Te,!1,!0),a(Te)},{"../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(x,pe,de){x("../modules/es.promise.constructor"),x("../modules/es.promise.all"),x("../modules/es.promise.catch"),x("../modules/es.promise.race"),x("../modules/es.promise.reject"),x("../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(x,pe,de){"use strict";var ae=x("../internals/export"),ne=x("../internals/function-call"),se=x("../internals/a-callable"),ce=x("../internals/new-promise-capability"),ue=x("../internals/perform"),ie=x("../internals/iterate"),oe=x("../internals/promise-statics-incorrect-iteration");ae({target:"Promise",stat:!0,forced:oe},{race:function(z){var a=this,y=ce.f(a),E=y.reject,b=ue(function(){var ee=se(a.resolve);ie(z,function(te){ne(ee,a,te).then(y.resolve,E)})});return b.error&&E(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(x,pe,de){"use strict";var ae=x("../internals/export"),ne=x("../internals/function-call"),se=x("../internals/new-promise-capability"),ce=x("../internals/promise-constructor-detection").CONSTRUCTOR;ae({target:"Promise",stat:!0,forced:ce},{reject:function(ie){var oe=se.f(this);return ne(oe.reject,void 0,ie),oe.promise}})},{"../internals/export":149,"../internals/function-call":155,"../internals/new-promise-capability":193,"../internals/promise-constructor-detection":215}],298:[function(x,pe,de){"use strict";var ae=x("../internals/export"),ne=x("../internals/get-built-in"),se=x("../internals/is-pure"),ce=x("../internals/promise-native-constructor"),ue=x("../internals/promise-constructor-detection").CONSTRUCTOR,ie=x("../internals/promise-resolve"),oe=ne("Promise"),re=se&&!ue;ae({target:"Promise",stat:!0,forced:se||ue},{resolve:function(a){return ie(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(x,pe,de){var ae=x("../internals/descriptors"),ne=x("../internals/global"),se=x("../internals/function-uncurry-this"),ce=x("../internals/is-forced"),ue=x("../internals/inherit-if-required"),ie=x("../internals/create-non-enumerable-property"),oe=x("../internals/object-get-own-property-names").f,re=x("../internals/object-is-prototype-of"),z=x("../internals/is-regexp"),a=x("../internals/to-string"),y=x("../internals/regexp-get-flags"),E=x("../internals/regexp-sticky-helpers"),b=x("../internals/proxy-accessor"),ee=x("../internals/redefine"),te=x("../internals/fails"),le=x("../internals/has-own-property"),fe=x("../internals/internal-state").enforce,he=x("../internals/set-species"),me=x("../internals/well-known-symbol"),ge=x("../internals/regexp-unsupported-dot-all"),Se=x("../internals/regexp-unsupported-ncg"),ve=me("match"),be=ne.RegExp,Pe=be.prototype,Te=ne.SyntaxError,_e=se(Pe.exec),je=se("".charAt),Ce=se("".replace),Ie=se("".indexOf),ke=se("".slice),$e=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Ne=/a/g,nt=/a/g,qe=new be(Ne)!==Ne,Je=E.MISSED_STICKY,Ye=E.UNSUPPORTED_Y,We=ae&&(!qe||Je||ge||Se||te(function(){return nt[ve]=!1,be(Ne)!=Ne||be(nt)==nt||be(Ne,"i")!="/a/i"})),Fe=function(Ze){for(var ze=Ze.length,Re=0,it="",Me=!1,Be;Re<=ze;Re++){if(Be=je(Ze,Re),Be==="\\"){it+=Be+je(Ze,++Re);continue}!Me&&Be==="."?it+="[\\s\\S]":(Be==="["?Me=!0:Be==="]"&&(Me=!1),it+=Be)}return it},Ue=function(Ze){for(var ze=Ze.length,Re=0,it="",Me=[],Be={},Qe=!1,Ge=!1,De=0,Le="",Oe;Re<=ze;Re++){if(Oe=je(Ze,Re),Oe==="\\")Oe=Oe+je(Ze,++Re);else if(Oe==="]")Qe=!1;else if(!Qe)switch(!0){case Oe==="[":Qe=!0;break;case Oe==="(":_e($e,ke(Ze,Re+1))&&(Re+=2,Ge=!0),it+=Oe,De++;continue;case(Oe===">"&&Ge):if(Le===""||le(Be,Le))throw new Te("Invalid capture group name");Be[Le]=!0,Me[Me.length]=[Le,De],Ge=!1,Le="";continue}Ge?Le+=Oe:it+=Oe}return[it,Me]};if(ce("RegExp",We)){for(var at=function(ze,Re){var it=re(Pe,this),Me=z(ze),Be=Re===void 0,Qe=[],Ge=ze,De,Le,Oe,xe,Ae,Ke;if(!it&&Me&&Be&&ze.constructor===at)return ze;if((Me||re(Pe,ze))&&(ze=ze.source,Be&&(Re=y(Ge))),ze=ze===void 0?"":a(ze),Re=Re===void 0?"":a(Re),Ge=ze,ge&&"dotAll"in Ne&&(Le=!!Re&&Ie(Re,"s")>-1,Le&&(Re=Ce(Re,/s/g,""))),De=Re,Je&&"sticky"in Ne&&(Oe=!!Re&&Ie(Re,"y")>-1,Oe&&Ye&&(Re=Ce(Re,/y/g,""))),Se&&(xe=Ue(ze),ze=xe[0],Qe=xe[1]),Ae=ue(be(ze,Re),it?this:Pe,at),(Le||Oe||Qe.length)&&(Ke=fe(Ae),Le&&(Ke.dotAll=!0,Ke.raw=at(Fe(ze),De)),Oe&&(Ke.sticky=!0),Qe.length&&(Ke.groups=Qe)),ze!==Ge)try{ie(Ae,"source",Ge===""?"(?:)":Ge)}catch(tt){}return Ae},Xe=oe(be),ut=0;Xe.length>ut;)b(at,be,Xe[ut++]);Pe.constructor=at,at.prototype=Pe,ee(ne,"RegExp",at)}he("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(x,pe,de){"use strict";var ae=x("../internals/export"),ne=x("../internals/regexp-exec");ae({target:"RegExp",proto:!0,forced:/./.exec!==ne},{exec:ne})},{"../internals/export":149,"../internals/regexp-exec":224}],301:[function(x,pe,de){"use strict";var ae=x("../internals/function-name").PROPER,ne=x("../internals/redefine"),se=x("../internals/an-object"),ce=x("../internals/to-string"),ue=x("../internals/fails"),ie=x("../internals/regexp-get-flags"),oe="toString",re=RegExp.prototype,z=re[oe],a=ue(function(){return z.call({source:"a",flags:"b"})!="/a/b"}),y=ae&&z.name!=oe;(a||y)&&ne(RegExp.prototype,oe,function(){var b=se(this),ee=ce(b.source),te=ce(ie(b));return"/"+ee+"/"+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(x,pe,de){"use strict";var ae=x("../internals/export"),ne=x("../internals/function-uncurry-this"),se=x("../internals/not-a-regexp"),ce=x("../internals/require-object-coercible"),ue=x("../internals/to-string"),ie=x("../internals/correct-is-regexp-logic"),oe=ne("".indexOf);ae({target:"String",proto:!0,forced:!ie("includes")},{includes:function(z){return!!~oe(ue(ce(this)),ue(se(z)),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(x,pe,de){"use strict";var ae=x("../internals/string-multibyte").charAt,ne=x("../internals/to-string"),se=x("../internals/internal-state"),ce=x("../internals/define-iterator"),ue="String Iterator",ie=se.set,oe=se.getterFor(ue);ce(String,"String",function(re){ie(this,{type:ue,string:ne(re),index:0})},function(){var z=oe(this),a=z.string,y=z.index,E;return y>=a.length?{value:void 0,done:!0}:(E=ae(a,y),z.index+=E.length,{value:E,done:!1})})},{"../internals/define-iterator":132,"../internals/internal-state":173,"../internals/string-multibyte":239,"../internals/to-string":256}],304:[function(x,pe,de){"use strict";var ae=x("../internals/function-call"),ne=x("../internals/fix-regexp-well-known-symbol-logic"),se=x("../internals/an-object"),ce=x("../internals/to-length"),ue=x("../internals/to-string"),ie=x("../internals/require-object-coercible"),oe=x("../internals/get-method"),re=x("../internals/advance-string-index"),z=x("../internals/regexp-exec-abstract");ne("match",function(a,y,E){return[function(ee){var te=ie(this),le=ee==null?void 0:oe(ee,a);return le?ae(le,ee,te):new RegExp(ee)[a](ue(te))},function(b){var ee=se(this),te=ue(b),le=E(y,ee,te);if(le.done)return le.value;if(!ee.global)return z(ee,te);var fe=ee.unicode;ee.lastIndex=0;for(var he=[],me=0,ge;(ge=z(ee,te))!==null;){var Se=ue(ge[0]);he[me]=Se,Se===""&&(ee.lastIndex=re(te,ce(ee.lastIndex),fe)),me++}return me===0?null:he}]})},{"../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(x,pe,de){"use strict";var ae=x("../internals/function-apply"),ne=x("../internals/function-call"),se=x("../internals/function-uncurry-this"),ce=x("../internals/fix-regexp-well-known-symbol-logic"),ue=x("../internals/fails"),ie=x("../internals/an-object"),oe=x("../internals/is-callable"),re=x("../internals/to-integer-or-infinity"),z=x("../internals/to-length"),a=x("../internals/to-string"),y=x("../internals/require-object-coercible"),E=x("../internals/advance-string-index"),b=x("../internals/get-method"),ee=x("../internals/get-substitution"),te=x("../internals/regexp-exec-abstract"),le=x("../internals/well-known-symbol"),fe=le("replace"),he=Math.max,me=Math.min,ge=se([].concat),Se=se([].push),ve=se("".indexOf),be=se("".slice),Pe=function(Ce){return Ce===void 0?Ce:String(Ce)},Te=function(){return"a".replace(/./,"$0")==="$0"}(),_e=function(){return/./[fe]?/./[fe]("a","$0")==="":!1}(),je=!ue(function(){var Ce=/./;return Ce.exec=function(){var Ie=[];return Ie.groups={a:"7"},Ie},"".replace(Ce,"$<a>")!=="7"});ce("replace",function(Ce,Ie,ke){var $e=_e?"$":"$0";return[function(nt,qe){var Je=y(this),Ye=nt==null?void 0:b(nt,fe);return Ye?ne(Ye,nt,Je,qe):ne(Ie,a(Je),nt,qe)},function(Ne,nt){var qe=ie(this),Je=a(Ne);if(typeof nt=="string"&&ve(nt,$e)===-1&&ve(nt,"$<")===-1){var Ye=ke(Ie,qe,Je,nt);if(Ye.done)return Ye.value}var We=oe(nt);We||(nt=a(nt));var Fe=qe.global;if(Fe){var Ue=qe.unicode;qe.lastIndex=0}for(var at=[];;){var Xe=te(qe,Je);if(Xe===null||(Se(at,Xe),!Fe))break;var ut=a(Xe[0]);ut===""&&(qe.lastIndex=E(Je,z(qe.lastIndex),Ue))}for(var Ze="",ze=0,Re=0;Re<at.length;Re++){Xe=at[Re];for(var it=a(Xe[0]),Me=he(me(re(Xe.index),Je.length),0),Be=[],Qe=1;Qe<Xe.length;Qe++)Se(Be,Pe(Xe[Qe]));var Ge=Xe.groups;if(We){var De=ge([it],Be,Me,Je);Ge!==void 0&&Se(De,Ge);var Le=a(ae(nt,void 0,De))}else Le=ee(it,Je,Me,Be,Ge,nt);Me>=ze&&(Ze+=be(Je,ze,Me)+Le,ze=Me+it.length)}return Ze+be(Je,ze)}]},!je||!Te||_e)},{"../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(x,pe,de){"use strict";var ae=x("../internals/function-call"),ne=x("../internals/fix-regexp-well-known-symbol-logic"),se=x("../internals/an-object"),ce=x("../internals/require-object-coercible"),ue=x("../internals/same-value"),ie=x("../internals/to-string"),oe=x("../internals/get-method"),re=x("../internals/regexp-exec-abstract");ne("search",function(z,a,y){return[function(b){var ee=ce(this),te=b==null?void 0:oe(b,z);return te?ae(te,b,ee):new RegExp(b)[z](ie(ee))},function(E){var b=se(this),ee=ie(E),te=y(a,b,ee);if(te.done)return te.value;var le=b.lastIndex;ue(le,0)||(b.lastIndex=0);var fe=re(b,ee);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(x,pe,de){"use strict";var ae=x("../internals/function-apply"),ne=x("../internals/function-call"),se=x("../internals/function-uncurry-this"),ce=x("../internals/fix-regexp-well-known-symbol-logic"),ue=x("../internals/is-regexp"),ie=x("../internals/an-object"),oe=x("../internals/require-object-coercible"),re=x("../internals/species-constructor"),z=x("../internals/advance-string-index"),a=x("../internals/to-length"),y=x("../internals/to-string"),E=x("../internals/get-method"),b=x("../internals/array-slice-simple"),ee=x("../internals/regexp-exec-abstract"),te=x("../internals/regexp-exec"),le=x("../internals/regexp-sticky-helpers"),fe=x("../internals/fails"),he=le.UNSUPPORTED_Y,me=4294967295,ge=Math.min,Se=[].push,ve=se(/./.exec),be=se(Se),Pe=se("".slice),Te=!fe(function(){var _e=/(?:)/,je=_e.exec;_e.exec=function(){return je.apply(this,arguments)};var Ce="ab".split(_e);return Ce.length!==2||Ce[0]!=="a"||Ce[1]!=="b"});ce("split",function(_e,je,Ce){var Ie;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?Ie=function(ke,$e){var Ne=y(oe(this)),nt=$e===void 0?me:$e>>>0;if(nt===0)return[];if(ke===void 0)return[Ne];if(!ue(ke))return ne(je,Ne,ke,nt);for(var qe=[],Je=(ke.ignoreCase?"i":"")+(ke.multiline?"m":"")+(ke.unicode?"u":"")+(ke.sticky?"y":""),Ye=0,We=new RegExp(ke.source,Je+"g"),Fe,Ue,at;(Fe=ne(te,We,Ne))&&(Ue=We.lastIndex,!(Ue>Ye&&(be(qe,Pe(Ne,Ye,Fe.index)),Fe.length>1&&Fe.index<Ne.length&&ae(Se,qe,b(Fe,1)),at=Fe[0].length,Ye=Ue,qe.length>=nt)));)We.lastIndex===Fe.index&&We.lastIndex++;return Ye===Ne.length?(at||!ve(We,""))&&be(qe,""):be(qe,Pe(Ne,Ye)),qe.length>nt?b(qe,0,nt):qe}:"0".split(void 0,0).length?Ie=function(ke,$e){return ke===void 0&&$e===0?[]:ne(je,this,ke,$e)}:Ie=je,[function($e,Ne){var nt=oe(this),qe=$e==null?void 0:E($e,_e);return qe?ne(qe,$e,nt,Ne):ne(Ie,y(nt),$e,Ne)},function(ke,$e){var Ne=ie(this),nt=y(ke),qe=Ce(Ie,Ne,nt,$e,Ie!==je);if(qe.done)return qe.value;var Je=re(Ne,RegExp),Ye=Ne.unicode,We=(Ne.ignoreCase?"i":"")+(Ne.multiline?"m":"")+(Ne.unicode?"u":"")+(he?"g":"y"),Fe=new Je(he?"^(?:"+Ne.source+")":Ne,We),Ue=$e===void 0?me:$e>>>0;if(Ue===0)return[];if(nt.length===0)return ee(Fe,nt)===null?[nt]:[];for(var at=0,Xe=0,ut=[];Xe<nt.length;){Fe.lastIndex=he?0:Xe;var Ze=ee(Fe,he?Pe(nt,Xe):nt),ze;if(Ze===null||(ze=ge(a(Fe.lastIndex+(he?Xe:0)),nt.length))===at)Xe=z(nt,Xe,Ye);else{if(be(ut,Pe(nt,at,Xe)),ut.length===Ue)return ut;for(var Re=1;Re<=Ze.length-1;Re++)if(be(ut,Ze[Re]),ut.length===Ue)return ut;Xe=at=ze}}return be(ut,Pe(nt,at)),ut}]},!Te,he)},{"../internals/advance-string-index":99,"../internals/an-object":101,"../internals/array-slice-simple":116,"../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/is-regexp":182,"../internals/regexp-exec":224,"../internals/regexp-exec-abstract":223,"../internals/regexp-sticky-helpers":227,"../internals/require-object-coercible":230,"../internals/species-constructor":238,"../internals/to-length":249,"../internals/to-string":256}],308:[function(x,pe,de){"use strict";var ae=x("../internals/export"),ne=x("../internals/string-trim").trim,se=x("../internals/string-trim-forced");ae({target:"String",proto:!0,forced:se("trim")},{trim:function(){return ne(this)}})},{"../internals/export":149,"../internals/string-trim":241,"../internals/string-trim-forced":240}],309:[function(x,pe,de){"use strict";var ae=x("../internals/export"),ne=x("../internals/global"),se=x("../internals/function-call"),ce=x("../internals/function-uncurry-this"),ue=x("../internals/is-pure"),ie=x("../internals/descriptors"),oe=x("../internals/native-symbol"),re=x("../internals/fails"),z=x("../internals/has-own-property"),a=x("../internals/object-is-prototype-of"),y=x("../internals/an-object"),E=x("../internals/to-indexed-object"),b=x("../internals/to-property-key"),ee=x("../internals/to-string"),te=x("../internals/create-property-descriptor"),le=x("../internals/object-create"),fe=x("../internals/object-keys"),he=x("../internals/object-get-own-property-names"),me=x("../internals/object-get-own-property-names-external"),ge=x("../internals/object-get-own-property-symbols"),Se=x("../internals/object-get-own-property-descriptor"),ve=x("../internals/object-define-property"),be=x("../internals/object-define-properties"),Pe=x("../internals/object-property-is-enumerable"),Te=x("../internals/redefine"),_e=x("../internals/shared"),je=x("../internals/shared-key"),Ce=x("../internals/hidden-keys"),Ie=x("../internals/uid"),ke=x("../internals/well-known-symbol"),$e=x("../internals/well-known-symbol-wrapped"),Ne=x("../internals/define-well-known-symbol"),nt=x("../internals/symbol-define-to-primitive"),qe=x("../internals/set-to-string-tag"),Je=x("../internals/internal-state"),Ye=x("../internals/array-iteration").forEach,We=je("hidden"),Fe="Symbol",Ue="prototype",at=Je.set,Xe=Je.getterFor(Fe),ut=Object[Ue],Ze=ne.Symbol,ze=Ze&&Ze[Ue],Re=ne.TypeError,it=ne.QObject,Me=Se.f,Be=ve.f,Qe=me.f,Ge=Pe.f,De=ce([].push),Le=_e("symbols"),Oe=_e("op-symbols"),xe=_e("wks"),Ae=!it||!it[Ue]||!it[Ue].findChild,Ke=ie&&re(function(){return le(Be({},"a",{get:function(){return Be(this,"a",{value:7}).a}})).a!=7})?function(rt,ct,gt){var St=Me(ut,ct);St&&delete ut[ct],Be(rt,ct,gt),St&&rt!==ut&&Be(ut,ct,St)}:Be,tt=function(rt,ct){var gt=Le[rt]=le(ze);return at(gt,{type:Fe,tag:rt,description:ct}),ie||(gt.description=ct),gt},He=function(ct,gt,St){ct===ut&&He(Oe,gt,St),y(ct);var Ct=b(gt);return y(St),z(Le,Ct)?(St.enumerable?(z(ct,We)&&ct[We][Ct]&&(ct[We][Ct]=!1),St=le(St,{enumerable:te(0,!1)})):(z(ct,We)||Be(ct,We,te(1,{})),ct[We][Ct]=!0),Ke(ct,Ct,St)):Be(ct,Ct,St)},ot=function(ct,gt){y(ct);var St=E(gt),Ct=fe(St).concat(vt(St));return Ye(Ct,function(It){(!ie||se(lt,St,It))&&He(ct,It,St[It])}),ct},mt=function(ct,gt){return gt===void 0?le(ct):ot(le(ct),gt)},lt=function(ct){var gt=b(ct),St=se(Ge,this,gt);return this===ut&&z(Le,gt)&&!z(Oe,gt)?!1:St||!z(this,gt)||!z(Le,gt)||z(this,We)&&this[We][gt]?St:!0},pt=function(ct,gt){var St=E(ct),Ct=b(gt);if(!(St===ut&&z(Le,Ct)&&!z(Oe,Ct))){var It=Me(St,Ct);return It&&z(Le,Ct)&&!(z(St,We)&&St[We][Ct])&&(It.enumerable=!0),It}},st=function(ct){var gt=Qe(E(ct)),St=[];return Ye(gt,function(Ct){!z(Le,Ct)&&!z(Ce,Ct)&&De(St,Ct)}),St},vt=function(rt){var ct=rt===ut,gt=Qe(ct?Oe:E(rt)),St=[];return Ye(gt,function(Ct){z(Le,Ct)&&(!ct||z(ut,Ct))&&De(St,Le[Ct])}),St};oe||(Ze=function(){if(a(ze,this))throw Re("Symbol is not a constructor");var ct=!arguments.length||arguments[0]===void 0?void 0:ee(arguments[0]),gt=Ie(ct),St=function(Ct){this===ut&&se(St,Oe,Ct),z(this,We)&&z(this[We],gt)&&(this[We][gt]=!1),Ke(this,gt,te(1,Ct))};return ie&&Ae&&Ke(ut,gt,{configurable:!0,set:St}),tt(gt,ct)},ze=Ze[Ue],Te(ze,"toString",function(){return Xe(this).tag}),Te(Ze,"withoutSetter",function(rt){return tt(Ie(rt),rt)}),Pe.f=lt,ve.f=He,be.f=ot,Se.f=pt,he.f=me.f=st,ge.f=vt,$e.f=function(rt){return tt(ke(rt),rt)},ie&&(Be(ze,"description",{configurable:!0,get:function(){return Xe(this).description}}),ue||Te(ut,"propertyIsEnumerable",lt,{unsafe:!0}))),ae({global:!0,wrap:!0,forced:!oe,sham:!oe},{Symbol:Ze}),Ye(fe(xe),function(rt){Ne(rt)}),ae({target:Fe,stat:!0,forced:!oe},{useSetter:function(){Ae=!0},useSimple:function(){Ae=!1}}),ae({target:"Object",stat:!0,forced:!oe,sham:!ie},{create:mt,defineProperty:He,defineProperties:ot,getOwnPropertyDescriptor:pt}),ae({target:"Object",stat:!0,forced:!oe},{getOwnPropertyNames:st}),nt(),qe(Ze,Fe),Ce[We]=!0},{"../internals/an-object":101,"../internals/array-iteration":111,"../internals/create-property-descriptor":130,"../internals/define-well-known-symbol":133,"../internals/descriptors":134,"../internals/export":149,"../internals/fails":150,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/hidden-keys":165,"../internals/internal-state":173,"../internals/is-pure":181,"../internals/native-symbol":191,"../internals/object-create":196,"../internals/object-define-properties":197,"../internals/object-define-property":198,"../internals/object-get-own-property-descriptor":199,"../internals/object-get-own-property-names":201,"../internals/object-get-own-property-names-external":200,"../internals/object-get-own-property-symbols":202,"../internals/object-is-prototype-of":204,"../internals/object-keys":206,"../internals/object-property-is-enumerable":207,"../internals/redefine":222,"../internals/set-to-string-tag":234,"../internals/shared":237,"../internals/shared-key":235,"../internals/symbol-define-to-primitive":242,"../internals/to-indexed-object":247,"../internals/to-property-key":254,"../internals/to-string":256,"../internals/uid":263,"../internals/well-known-symbol":268,"../internals/well-known-symbol-wrapped":267}],310:[function(x,pe,de){"use strict";var ae=x("../internals/export"),ne=x("../internals/descriptors"),se=x("../internals/global"),ce=x("../internals/function-uncurry-this"),ue=x("../internals/has-own-property"),ie=x("../internals/is-callable"),oe=x("../internals/object-is-prototype-of"),re=x("../internals/to-string"),z=x("../internals/object-define-property").f,a=x("../internals/copy-constructor-properties"),y=se.Symbol,E=y&&y.prototype;if(ne&&ie(y)&&(!("description"in E)||y().description!==void 0)){var b={},ee=function(){var ve=arguments.length<1||arguments[0]===void 0?void 0:re(arguments[0]),be=oe(E,this)?new y(ve):ve===void 0?y():y(ve);return ve===""&&(b[be]=!0),be};a(ee,y),ee.prototype=E,E.constructor=ee;var te=String(y("test"))=="Symbol(test)",le=ce(E.toString),fe=ce(E.valueOf),he=/^Symbol\((.*)\)[^)]+$/,me=ce("".replace),ge=ce("".slice);z(E,"description",{configurable:!0,get:function(){var ve=fe(this),be=le(ve);if(ue(b,ve))return"";var Pe=te?ge(be,7,-1):me(be,he,"$1");return Pe===""?void 0:Pe}}),ae({global:!0,forced:!0},{Symbol:ee})}},{"../internals/copy-constructor-properties":125,"../internals/descriptors":134,"../internals/export":149,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/is-callable":176,"../internals/object-define-property":198,"../internals/object-is-prototype-of":204,"../internals/to-string":256}],311:[function(x,pe,de){var ae=x("../internals/export"),ne=x("../internals/get-built-in"),se=x("../internals/has-own-property"),ce=x("../internals/to-string"),ue=x("../internals/shared"),ie=x("../internals/native-symbol-registry"),oe=ue("string-to-symbol-registry"),re=ue("symbol-to-string-registry");ae({target:"Symbol",stat:!0,forced:!ie},{for:function(z){var a=ce(z);if(se(oe,a))return oe[a];var y=ne("Symbol")(a);return oe[a]=y,re[y]=a,y}})},{"../internals/export":149,"../internals/get-built-in":158,"../internals/has-own-property":164,"../internals/native-symbol-registry":190,"../internals/shared":237,"../internals/to-string":256}],312:[function(x,pe,de){var ae=x("../internals/define-well-known-symbol");ae("iterator")},{"../internals/define-well-known-symbol":133}],313:[function(x,pe,de){x("../modules/es.symbol.constructor"),x("../modules/es.symbol.for"),x("../modules/es.symbol.key-for"),x("../modules/es.json.stringify"),x("../modules/es.object.get-own-property-symbols")},{"../modules/es.json.stringify":285,"../modules/es.object.get-own-property-symbols":289,"../modules/es.symbol.constructor":309,"../modules/es.symbol.for":311,"../modules/es.symbol.key-for":314}],314:[function(x,pe,de){var ae=x("../internals/export"),ne=x("../internals/has-own-property"),se=x("../internals/is-symbol"),ce=x("../internals/try-to-string"),ue=x("../internals/shared"),ie=x("../internals/native-symbol-registry"),oe=ue("symbol-to-string-registry");ae({target:"Symbol",stat:!0,forced:!ie},{keyFor:function(z){if(!se(z))throw TypeError(ce(z)+" is not a symbol");if(ne(oe,z))return oe[z]}})},{"../internals/export":149,"../internals/has-own-property":164,"../internals/is-symbol":183,"../internals/native-symbol-registry":190,"../internals/shared":237,"../internals/try-to-string":257}],315:[function(x,pe,de){"use strict";var ae=x("../internals/function-uncurry-this"),ne=x("../internals/array-buffer-view-core"),se=x("../internals/array-copy-within"),ce=ae(se),ue=ne.aTypedArray,ie=ne.exportTypedArrayMethod;ie("copyWithin",function(re,z){return ce(ue(this),re,z,arguments.length>2?arguments[2]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-copy-within":105,"../internals/function-uncurry-this":157}],316:[function(x,pe,de){"use strict";var ae=x("../internals/array-buffer-view-core"),ne=x("../internals/array-iteration").every,se=ae.aTypedArray,ce=ae.exportTypedArrayMethod;ce("every",function(ie){return ne(se(this),ie,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],317:[function(x,pe,de){"use strict";var ae=x("../internals/array-buffer-view-core"),ne=x("../internals/function-call"),se=x("../internals/array-fill"),ce=ae.aTypedArray,ue=ae.exportTypedArrayMethod;ue("fill",function(oe){var re=arguments.length;return ne(se,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(x,pe,de){"use strict";var ae=x("../internals/array-buffer-view-core"),ne=x("../internals/array-iteration").filter,se=x("../internals/typed-array-from-species-and-list"),ce=ae.aTypedArray,ue=ae.exportTypedArrayMethod;ue("filter",function(oe){var re=ne(ce(this),oe,arguments.length>1?arguments[1]:void 0);return se(this,re)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111,"../internals/typed-array-from-species-and-list":260}],319:[function(x,pe,de){"use strict";var ae=x("../internals/array-buffer-view-core"),ne=x("../internals/array-iteration").findIndex,se=ae.aTypedArray,ce=ae.exportTypedArrayMethod;ce("findIndex",function(ie){return ne(se(this),ie,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],320:[function(x,pe,de){"use strict";var ae=x("../internals/array-buffer-view-core"),ne=x("../internals/array-iteration").find,se=ae.aTypedArray,ce=ae.exportTypedArrayMethod;ce("find",function(ie){return ne(se(this),ie,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],321:[function(x,pe,de){"use strict";var ae=x("../internals/array-buffer-view-core"),ne=x("../internals/array-iteration").forEach,se=ae.aTypedArray,ce=ae.exportTypedArrayMethod;ce("forEach",function(ie){ne(se(this),ie,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],322:[function(x,pe,de){"use strict";var ae=x("../internals/array-buffer-view-core"),ne=x("../internals/array-includes").includes,se=ae.aTypedArray,ce=ae.exportTypedArrayMethod;ce("includes",function(ie){return ne(se(this),ie,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-includes":110}],323:[function(x,pe,de){"use strict";var ae=x("../internals/array-buffer-view-core"),ne=x("../internals/array-includes").indexOf,se=ae.aTypedArray,ce=ae.exportTypedArrayMethod;ce("indexOf",function(ie){return ne(se(this),ie,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-includes":110}],324:[function(x,pe,de){"use strict";var ae=x("../internals/global"),ne=x("../internals/fails"),se=x("../internals/function-uncurry-this"),ce=x("../internals/array-buffer-view-core"),ue=x("../modules/es.array.iterator"),ie=x("../internals/well-known-symbol"),oe=ie("iterator"),re=ae.Uint8Array,z=se(ue.values),a=se(ue.keys),y=se(ue.entries),E=ce.aTypedArray,b=ce.exportTypedArrayMethod,ee=re&&re.prototype,te=!ne(function(){ee[oe].call([1])}),le=!!ee&&ee.values&&ee[oe]===ee.values&&ee.values.name==="values",fe=function(){return z(E(this))};b("entries",function(){return y(E(this))},te),b("keys",function(){return a(E(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(x,pe,de){"use strict";var ae=x("../internals/array-buffer-view-core"),ne=x("../internals/function-uncurry-this"),se=ae.aTypedArray,ce=ae.exportTypedArrayMethod,ue=ne([].join);ce("join",function(oe){return ue(se(this),oe)})},{"../internals/array-buffer-view-core":103,"../internals/function-uncurry-this":157}],326:[function(x,pe,de){"use strict";var ae=x("../internals/array-buffer-view-core"),ne=x("../internals/function-apply"),se=x("../internals/array-last-index-of"),ce=ae.aTypedArray,ue=ae.exportTypedArrayMethod;ue("lastIndexOf",function(oe){var re=arguments.length;return ne(se,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(x,pe,de){"use strict";var ae=x("../internals/array-buffer-view-core"),ne=x("../internals/array-iteration").map,se=x("../internals/typed-array-species-constructor"),ce=ae.aTypedArray,ue=ae.exportTypedArrayMethod;ue("map",function(oe){return ne(ce(this),oe,arguments.length>1?arguments[1]:void 0,function(re,z){return new(se(re))(z)})})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111,"../internals/typed-array-species-constructor":262}],328:[function(x,pe,de){"use strict";var ae=x("../internals/array-buffer-view-core"),ne=x("../internals/array-reduce").right,se=ae.aTypedArray,ce=ae.exportTypedArrayMethod;ce("reduceRight",function(ie){var oe=arguments.length;return ne(se(this),ie,oe,oe>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-reduce":115}],329:[function(x,pe,de){"use strict";var ae=x("../internals/array-buffer-view-core"),ne=x("../internals/array-reduce").left,se=ae.aTypedArray,ce=ae.exportTypedArrayMethod;ce("reduce",function(ie){var oe=arguments.length;return ne(se(this),ie,oe,oe>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-reduce":115}],330:[function(x,pe,de){"use strict";var ae=x("../internals/array-buffer-view-core"),ne=ae.aTypedArray,se=ae.exportTypedArrayMethod,ce=Math.floor;se("reverse",function(){for(var ie=this,oe=ne(ie).length,re=ce(oe/2),z=0,a;z<re;)a=ie[z],ie[z++]=ie[--oe],ie[oe]=a;return ie})},{"../internals/array-buffer-view-core":103}],331:[function(x,pe,de){"use strict";var ae=x("../internals/global"),ne=x("../internals/function-call"),se=x("../internals/array-buffer-view-core"),ce=x("../internals/length-of-array-like"),ue=x("../internals/to-offset"),ie=x("../internals/to-object"),oe=x("../internals/fails"),re=ae.RangeError,z=ae.Int8Array,a=z&&z.prototype,y=a&&a.set,E=se.aTypedArray,b=se.exportTypedArrayMethod,ee=!oe(function(){var le=new Uint8ClampedArray(2);return ne(y,le,{length:1,0:3},1),le[1]!==3}),te=ee&&se.NATIVE_ARRAY_BUFFER_VIEWS&&oe(function(){var le=new z(2);return le.set(1),le.set("2",1),le[0]!==0||le[1]!==2});b("set",function(fe){E(this);var he=ue(arguments.length>1?arguments[1]:void 0,1),me=ie(fe);if(ee)return ne(y,this,me,he);var ge=this.length,Se=ce(me),ve=0;if(Se+he>ge)throw re("Wrong length");for(;ve<Se;)this[he+ve]=me[ve++]},!ee||te)},{"../internals/array-buffer-view-core":103,"../internals/fails":150,"../internals/function-call":155,"../internals/global":163,"../internals/length-of-array-like":188,"../internals/to-object":250,"../internals/to-offset":251}],332:[function(x,pe,de){"use strict";var ae=x("../internals/array-buffer-view-core"),ne=x("../internals/typed-array-species-constructor"),se=x("../internals/fails"),ce=x("../internals/array-slice"),ue=ae.aTypedArray,ie=ae.exportTypedArrayMethod,oe=se(function(){new Int8Array(1).slice()});ie("slice",function(z,a){for(var y=ce(ue(this),z,a),E=ne(this),b=0,ee=y.length,te=new E(ee);ee>b;)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(x,pe,de){"use strict";var ae=x("../internals/array-buffer-view-core"),ne=x("../internals/array-iteration").some,se=ae.aTypedArray,ce=ae.exportTypedArrayMethod;ce("some",function(ie){return ne(se(this),ie,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],334:[function(x,pe,de){"use strict";var ae=x("../internals/global"),ne=x("../internals/function-uncurry-this"),se=x("../internals/fails"),ce=x("../internals/a-callable"),ue=x("../internals/array-sort"),ie=x("../internals/array-buffer-view-core"),oe=x("../internals/engine-ff-version"),re=x("../internals/engine-is-ie-or-edge"),z=x("../internals/engine-v8-version"),a=x("../internals/engine-webkit-version"),y=ie.aTypedArray,E=ie.exportTypedArrayMethod,b=ae.Uint16Array,ee=b&&ne(b.prototype.sort),te=!!ee&&!(se(function(){ee(new b(2),null)})&&se(function(){ee(new b(2),{})})),le=!!ee&&!se(function(){if(z)return z<74;if(oe)return oe<67;if(re)return!0;if(a)return a<602;var he=new b(516),me=Array(516),ge,Se;for(ge=0;ge<516;ge++)Se=ge%4,he[ge]=515-ge,me[ge]=ge-2*Se+3;for(ee(he,function(ve,be){return(ve/4|0)-(be/4|0)}),ge=0;ge<516;ge++)if(he[ge]!==me[ge])return!0}),fe=function(he){return function(me,ge){return he!==void 0?+he(me,ge)||0:ge!==ge?-1:me!==me?1:me===0&&ge===0?1/me>0&&1/ge<0?1:-1:me>ge}};E("sort",function(me){return me!==void 0&&ce(me),le?ee(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(x,pe,de){"use strict";var ae=x("../internals/array-buffer-view-core"),ne=x("../internals/to-length"),se=x("../internals/to-absolute-index"),ce=x("../internals/typed-array-species-constructor"),ue=ae.aTypedArray,ie=ae.exportTypedArrayMethod;ie("subarray",function(re,z){var a=ue(this),y=a.length,E=se(re,y),b=ce(a);return new b(a.buffer,a.byteOffset+E*a.BYTES_PER_ELEMENT,ne((z===void 0?y:se(z,y))-E))})},{"../internals/array-buffer-view-core":103,"../internals/to-absolute-index":245,"../internals/to-length":249,"../internals/typed-array-species-constructor":262}],336:[function(x,pe,de){"use strict";var ae=x("../internals/global"),ne=x("../internals/function-apply"),se=x("../internals/array-buffer-view-core"),ce=x("../internals/fails"),ue=x("../internals/array-slice"),ie=ae.Int8Array,oe=se.aTypedArray,re=se.exportTypedArrayMethod,z=[].toLocaleString,a=!!ie&&ce(function(){z.call(new ie(1))}),y=ce(function(){return[1,2].toLocaleString()!=new ie([1,2]).toLocaleString()})||!ce(function(){ie.prototype.toLocaleString.call([1,2])});re("toLocaleString",function(){return ne(z,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(x,pe,de){"use strict";var ae=x("../internals/array-buffer-view-core").exportTypedArrayMethod,ne=x("../internals/fails"),se=x("../internals/global"),ce=x("../internals/function-uncurry-this"),ue=se.Uint8Array,ie=ue&&ue.prototype||{},oe=[].toString,re=ce([].join);ne(function(){oe.call({})})&&(oe=function(){return re(this)});var z=ie.toString!=oe;ae("toString",oe,z)},{"../internals/array-buffer-view-core":103,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],338:[function(x,pe,de){var ae=x("../internals/typed-array-constructor");ae("Uint8",function(ne){return function(ce,ue,ie){return ne(this,ce,ue,ie)}})},{"../internals/typed-array-constructor":258}],339:[function(x,pe,de){var ae=x("../internals/global"),ne=x("../internals/dom-iterables"),se=x("../internals/dom-token-list-prototype"),ce=x("../internals/array-for-each"),ue=x("../internals/create-non-enumerable-property"),ie=function(re){if(re&&re.forEach!==ce)try{ue(re,"forEach",ce)}catch(z){re.forEach=ce}};for(var oe in ne)ne[oe]&&ie(ae[oe]&&ae[oe].prototype);ie(se)},{"../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(x,pe,de){var ae=x("../internals/global"),ne=x("../internals/dom-iterables"),se=x("../internals/dom-token-list-prototype"),ce=x("../modules/es.array.iterator"),ue=x("../internals/create-non-enumerable-property"),ie=x("../internals/well-known-symbol"),oe=ie("iterator"),re=ie("toStringTag"),z=ce.values,a=function(E,b){if(E){if(E[oe]!==z)try{ue(E,oe,z)}catch(te){E[oe]=z}if(E[re]||ue(E,re,b),ne[b]){for(var ee in ce)if(E[ee]!==ce[ee])try{ue(E,ee,ce[ee])}catch(te){E[ee]=ce[ee]}}}};for(var y in ne)a(ae[y]&&ae[y].prototype,y);a(se,"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(x,pe,de){function ae(le){return Array.isArray?Array.isArray(le):te(le)==="[object Array]"}de.isArray=ae;function ne(le){return typeof le=="boolean"}de.isBoolean=ne;function se(le){return le===null}de.isNull=se;function ce(le){return le==null}de.isNullOrUndefined=ce;function ue(le){return typeof le=="number"}de.isNumber=ue;function ie(le){return typeof le=="string"}de.isString=ie;function oe(le){return typeof le=="symbol"}de.isSymbol=oe;function re(le){return le===void 0}de.isUndefined=re;function z(le){return te(le)==="[object RegExp]"}de.isRegExp=z;function a(le){return typeof le=="object"&&le!==null}de.isObject=a;function y(le){return te(le)==="[object Date]"}de.isDate=y;function E(le){return te(le)==="[object Error]"||le instanceof Error}de.isError=E;function b(le){return typeof le=="function"}de.isFunction=b;function ee(le){return le===null||typeof le=="boolean"||typeof le=="number"||typeof le=="string"||typeof le=="symbol"||typeof le=="undefined"}de.isPrimitive=ee,de.isBuffer=x("buffer").Buffer.isBuffer;function te(le){return Object.prototype.toString.call(le)}},{buffer:90}],342:[function(x,pe,de){(function(ae){"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,z=/[^-+\dA-Z]/g;return function(a,y,E,b){if(arguments.length===1&&ie(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 ee=y.slice(0,4);(ee==="UTC:"||ee==="GMT:")&&(y=y.slice(4),E=!0,ee==="GMT:"&&(b=!0));var te=E?"getUTC":"get",le=a[te+"Date"](),fe=a[te+"Day"](),he=a[te+"Month"](),me=a[te+"FullYear"](),ge=a[te+"Hours"](),Se=a[te+"Minutes"](),ve=a[te+"Seconds"](),be=a[te+"Milliseconds"](),Pe=E?0:a.getTimezoneOffset(),Te=ce(a),_e=ue(a),je={d:le,dd:se(le),ddd:ne.i18n.dayNames[fe],dddd:ne.i18n.dayNames[fe+7],m:he+1,mm:se(he+1),mmm:ne.i18n.monthNames[he],mmmm:ne.i18n.monthNames[he+12],yy:String(me).slice(2),yyyy:me,h:ge%12||12,hh:se(ge%12||12),H:ge,HH:se(ge),M:Se,MM:se(Se),s:ve,ss:se(ve),l:se(be,3),L:se(Math.round(be/10)),t:ge<12?"a":"p",tt:ge<12?"am":"pm",T:ge<12?"A":"P",TT:ge<12?"AM":"PM",Z:b?"GMT":E?"UTC":(String(a).match(re)||[""]).pop().replace(z,""),o:(Pe>0?"-":"+")+se(Math.floor(Math.abs(Pe)/60)*100+Math.abs(Pe)%60,4),S:["th","st","nd","rd"][le%10>3?0:(le%100-le%10!=10)*le%10],W:Te,N:_e};return y.replace(oe,function(Ce){return Ce in je?je[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 se(oe,re){for(oe=String(oe),re=re||2;oe.length<re;)oe="0"+oe;return oe}function ce(oe){var re=new Date(oe.getFullYear(),oe.getMonth(),oe.getDate());re.setDate(re.getDate()-(re.getDay()+6)%7+3);var z=new Date(re.getFullYear(),0,4);z.setDate(z.getDate()-(z.getDay()+6)%7+3);var a=re.getTimezoneOffset()-z.getTimezoneOffset();re.setHours(re.getHours()-a);var y=(re-z)/(864e5*7);return 1+Math.floor(y)}function ue(oe){var re=oe.getDay();return re===0&&(re=7),re}function ie(oe){return oe===null?"null":oe===void 0?"undefined":typeof oe!="object"?typeof oe:Array.isArray(oe)?"array":{}.toString.call(oe).slice(8,-1).toLowerCase()}typeof ye=="function"&&ye.amd?ye(function(){return ne}):typeof de=="object"?pe.exports=ne:ae.dateFormat=ne})(this)},{}],343:[function(x,pe,de){"use strict";var ae=/["'&<>]/;pe.exports=ne;function ne(se){var ce=""+se,ue=ae.exec(ce);if(!ue)return ce;var ie,oe="",re=0,z=0;for(re=ue.index;re<ce.length;re++){switch(ce.charCodeAt(re)){case 34:ie=""";break;case 38:ie="&";break;case 39:ie="'";break;case 60:ie="<";break;case 62:ie=">";break;default:continue}z!==re&&(oe+=ce.substring(z,re)),z=re+1,oe+=ie}return z!==re?oe+ce.substring(z,re):oe}},{}],344:[function(x,pe,de){"use strict";var ae=typeof Reflect=="object"?Reflect:null,ne=ae&&typeof ae.apply=="function"?ae.apply:function(ve,be,Pe){return Function.prototype.apply.call(ve,be,Pe)},se;ae&&typeof ae.ownKeys=="function"?se=ae.ownKeys:Object.getOwnPropertySymbols?se=function(ve){return Object.getOwnPropertyNames(ve).concat(Object.getOwnPropertySymbols(ve))}:se=function(ve){return Object.getOwnPropertyNames(ve)};function ce(Se){console&&console.warn&&console.warn(Se)}var ue=Number.isNaN||function(ve){return ve!==ve};function ie(){ie.init.call(this)}pe.exports=ie,pe.exports.once=he,ie.EventEmitter=ie,ie.prototype._events=void 0,ie.prototype._eventsCount=0,ie.prototype._maxListeners=void 0;var oe=10;function re(Se){if(typeof Se!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof Se)}Object.defineProperty(ie,"defaultMaxListeners",{enumerable:!0,get:function(){return oe},set:function(Se){if(typeof Se!="number"||Se<0||ue(Se))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+Se+".");oe=Se}}),ie.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},ie.prototype.setMaxListeners=function(ve){if(typeof ve!="number"||ve<0||ue(ve))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+ve+".");return this._maxListeners=ve,this};function z(Se){return Se._maxListeners===void 0?ie.defaultMaxListeners:Se._maxListeners}ie.prototype.getMaxListeners=function(){return z(this)},ie.prototype.emit=function(ve){for(var be=[],Pe=1;Pe<arguments.length;Pe++)be.push(arguments[Pe]);var Te=ve==="error",_e=this._events;if(_e!==void 0)Te=Te&&_e.error===void 0;else if(!Te)return!1;if(Te){var je;if(be.length>0&&(je=be[0]),je instanceof Error)throw je;var Ce=new Error("Unhandled error."+(je?" ("+je.message+")":""));throw Ce.context=je,Ce}var Ie=_e[ve];if(Ie===void 0)return!1;if(typeof Ie=="function")ne(Ie,this,be);else for(var ke=Ie.length,$e=te(Ie,ke),Pe=0;Pe<ke;++Pe)ne($e[Pe],this,be);return!0};function a(Se,ve,be,Pe){var Te,_e,je;if(re(be),_e=Se._events,_e===void 0?(_e=Se._events=Object.create(null),Se._eventsCount=0):(_e.newListener!==void 0&&(Se.emit("newListener",ve,be.listener?be.listener:be),_e=Se._events),je=_e[ve]),je===void 0)je=_e[ve]=be,++Se._eventsCount;else if(typeof je=="function"?je=_e[ve]=Pe?[be,je]:[je,be]:Pe?je.unshift(be):je.push(be),Te=z(Se),Te>0&&je.length>Te&&!je.warned){je.warned=!0;var Ce=new Error("Possible EventEmitter memory leak detected. "+je.length+" "+String(ve)+" listeners added. Use emitter.setMaxListeners() to increase limit");Ce.name="MaxListenersExceededWarning",Ce.emitter=Se,Ce.type=ve,Ce.count=je.length,ce(Ce)}return Se}ie.prototype.addListener=function(ve,be){return a(this,ve,be,!1)},ie.prototype.on=ie.prototype.addListener,ie.prototype.prependListener=function(ve,be){return a(this,ve,be,!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 E(Se,ve,be){var Pe={fired:!1,wrapFn:void 0,target:Se,type:ve,listener:be},Te=y.bind(Pe);return Te.listener=be,Pe.wrapFn=Te,Te}ie.prototype.once=function(ve,be){return re(be),this.on(ve,E(this,ve,be)),this},ie.prototype.prependOnceListener=function(ve,be){return re(be),this.prependListener(ve,E(this,ve,be)),this},ie.prototype.removeListener=function(ve,be){var Pe,Te,_e,je,Ce;if(re(be),Te=this._events,Te===void 0)return this;if(Pe=Te[ve],Pe===void 0)return this;if(Pe===be||Pe.listener===be)--this._eventsCount===0?this._events=Object.create(null):(delete Te[ve],Te.removeListener&&this.emit("removeListener",ve,Pe.listener||be));else if(typeof Pe!="function"){for(_e=-1,je=Pe.length-1;je>=0;je--)if(Pe[je]===be||Pe[je].listener===be){Ce=Pe[je].listener,_e=je;break}if(_e<0)return this;_e===0?Pe.shift():le(Pe,_e),Pe.length===1&&(Te[ve]=Pe[0]),Te.removeListener!==void 0&&this.emit("removeListener",ve,Ce||be)}return this},ie.prototype.off=ie.prototype.removeListener,ie.prototype.removeAllListeners=function(ve){var be,Pe,Te;if(Pe=this._events,Pe===void 0)return this;if(Pe.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):Pe[ve]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete Pe[ve]),this;if(arguments.length===0){var _e=Object.keys(Pe),je;for(Te=0;Te<_e.length;++Te)je=_e[Te],je!=="removeListener"&&this.removeAllListeners(je);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(be=Pe[ve],typeof be=="function")this.removeListener(ve,be);else if(be!==void 0)for(Te=be.length-1;Te>=0;Te--)this.removeListener(ve,be[Te]);return this};function b(Se,ve,be){var Pe=Se._events;if(Pe===void 0)return[];var Te=Pe[ve];return Te===void 0?[]:typeof Te=="function"?be?[Te.listener||Te]:[Te]:be?fe(Te):te(Te,Te.length)}ie.prototype.listeners=function(ve){return b(this,ve,!0)},ie.prototype.rawListeners=function(ve){return b(this,ve,!1)},ie.listenerCount=function(Se,ve){return typeof Se.listenerCount=="function"?Se.listenerCount(ve):ee.call(Se,ve)},ie.prototype.listenerCount=ee;function ee(Se){var ve=this._events;if(ve!==void 0){var be=ve[Se];if(typeof be=="function")return 1;if(be!==void 0)return be.length}return 0}ie.prototype.eventNames=function(){return this._eventsCount>0?se(this._events):[]};function te(Se,ve){for(var be=new Array(ve),Pe=0;Pe<ve;++Pe)be[Pe]=Se[Pe];return be}function le(Se,ve){for(;ve+1<Se.length;ve++)Se[ve]=Se[ve+1];Se.pop()}function fe(Se){for(var ve=new Array(Se.length),be=0;be<ve.length;++be)ve[be]=Se[be].listener||Se[be];return ve}function he(Se,ve){return new Promise(function(be,Pe){function Te(je){Se.removeListener(ve,_e),Pe(je)}function _e(){typeof Se.removeListener=="function"&&Se.removeListener("error",Te),be([].slice.call(arguments))}ge(Se,ve,_e,{once:!0}),ve!=="error"&&me(Se,Te,{once:!0})})}function me(Se,ve,be){typeof Se.on=="function"&&ge(Se,"error",ve,be)}function ge(Se,ve,be,Pe){if(typeof Se.on=="function")Pe.once?Se.once(ve,be):Se.on(ve,be);else if(typeof Se.addEventListener=="function")Se.addEventListener(ve,function Te(_e){Pe.once&&Se.removeEventListener(ve,Te),be(_e)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof Se)}},{}],345:[function(x,pe,de){"use strict";var ae=x("is-callable"),ne=Object.prototype.toString,se=Object.prototype.hasOwnProperty,ce=function(z,a,y){for(var E=0,b=z.length;E<b;E++)se.call(z,E)&&(y==null?a(z[E],E,z):a.call(y,z[E],E,z))},ue=function(z,a,y){for(var E=0,b=z.length;E<b;E++)y==null?a(z.charAt(E),E,z):a.call(y,z.charAt(E),E,z)},ie=function(z,a,y){for(var E in z)se.call(z,E)&&(y==null?a(z[E],E,z):a.call(y,z[E],E,z))},oe=function(z,a,y){if(!ae(a))throw new TypeError("iterator must be a function");var E;arguments.length>=3&&(E=y),ne.call(z)==="[object Array]"?ce(z,a,E):typeof z=="string"?ue(z,a,E):ie(z,a,E)};pe.exports=oe},{"is-callable":367}],346:[function(x,pe,de){"use strict";var ae="Function.prototype.bind called on incompatible ",ne=Array.prototype.slice,se=Object.prototype.toString,ce="[object Function]";pe.exports=function(ie){var oe=this;if(typeof oe!="function"||se.call(oe)!==ce)throw new TypeError(ae+oe);for(var re=ne.call(arguments,1),z,a=function(){if(this instanceof z){var te=oe.apply(this,re.concat(ne.call(arguments)));return Object(te)===te?te:this}else return oe.apply(ie,re.concat(ne.call(arguments)))},y=Math.max(0,oe.length-re.length),E=[],b=0;b<y;b++)E.push("$"+b);if(z=Function("binder","return function ("+E.join(",")+"){ return binder.apply(this,arguments); }")(a),oe.prototype){var ee=function(){};ee.prototype=oe.prototype,z.prototype=new ee,ee.prototype=null}return z}},{}],347:[function(x,pe,de){"use strict";var ae=x("./implementation");pe.exports=Function.prototype.bind||ae},{"./implementation":346}],348:[function(x,pe,de){"use strict";var ae,ne=SyntaxError,se=Function,ce=TypeError,ue=function(Ie){try{return se('"use strict"; return ('+Ie+").constructor;")()}catch(ke){}},ie=Object.getOwnPropertyDescriptor;if(ie)try{ie({},"")}catch(Ie){ie=null}var oe=function(){throw new ce},re=ie?function(){try{return arguments.callee,oe}catch(Ie){try{return ie(arguments,"callee").get}catch(ke){return oe}}}():oe,z=x("has-symbols")(),a=x("has-proto")(),y=Object.getPrototypeOf||(a?function(Ie){return Ie.__proto__}:null),E={},b=typeof Uint8Array=="undefined"||!y?ae:y(Uint8Array),ee={"%AggregateError%":typeof AggregateError=="undefined"?ae:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?ae:ArrayBuffer,"%ArrayIteratorPrototype%":z&&y?y([][Symbol.iterator]()):ae,"%AsyncFromSyncIteratorPrototype%":ae,"%AsyncFunction%":E,"%AsyncGenerator%":E,"%AsyncGeneratorFunction%":E,"%AsyncIteratorPrototype%":E,"%Atomics%":typeof Atomics=="undefined"?ae:Atomics,"%BigInt%":typeof BigInt=="undefined"?ae:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?ae:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?ae:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?ae:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?ae:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?ae:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?ae:FinalizationRegistry,"%Function%":se,"%GeneratorFunction%":E,"%Int8Array%":typeof Int8Array=="undefined"?ae:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?ae:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?ae:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":z&&y?y(y([][Symbol.iterator]())):ae,"%JSON%":typeof JSON=="object"?JSON:ae,"%Map%":typeof Map=="undefined"?ae:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!z||!y?ae:y(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?ae:Promise,"%Proxy%":typeof Proxy=="undefined"?ae:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?ae:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?ae:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!z||!y?ae:y(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?ae:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":z&&y?y(""[Symbol.iterator]()):ae,"%Symbol%":z?Symbol:ae,"%SyntaxError%":ne,"%ThrowTypeError%":re,"%TypedArray%":b,"%TypeError%":ce,"%Uint8Array%":typeof Uint8Array=="undefined"?ae:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?ae:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?ae:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?ae:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?ae:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?ae:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?ae:WeakSet};if(y)try{null.error}catch(Ie){var te=y(y(Ie));ee["%Error.prototype%"]=te}var le=function Ie(ke){var $e;if(ke==="%AsyncFunction%")$e=ue("async function () {}");else if(ke==="%GeneratorFunction%")$e=ue("function* () {}");else if(ke==="%AsyncGeneratorFunction%")$e=ue("async function* () {}");else if(ke==="%AsyncGenerator%"){var Ne=Ie("%AsyncGeneratorFunction%");Ne&&($e=Ne.prototype)}else if(ke==="%AsyncIteratorPrototype%"){var nt=Ie("%AsyncGenerator%");nt&&y&&($e=y(nt.prototype))}return ee[ke]=$e,$e},fe={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},he=x("function-bind"),me=x("has"),ge=he.call(Function.call,Array.prototype.concat),Se=he.call(Function.apply,Array.prototype.splice),ve=he.call(Function.call,String.prototype.replace),be=he.call(Function.call,String.prototype.slice),Pe=he.call(Function.call,RegExp.prototype.exec),Te=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,_e=/\\(\\)?/g,je=function(ke){var $e=be(ke,0,1),Ne=be(ke,-1);if($e==="%"&&Ne!=="%")throw new ne("invalid intrinsic syntax, expected closing `%`");if(Ne==="%"&&$e!=="%")throw new ne("invalid intrinsic syntax, expected opening `%`");var nt=[];return ve(ke,Te,function(qe,Je,Ye,We){nt[nt.length]=Ye?ve(We,_e,"$1"):Je||qe}),nt},Ce=function(ke,$e){var Ne=ke,nt;if(me(fe,Ne)&&(nt=fe[Ne],Ne="%"+nt[0]+"%"),me(ee,Ne)){var qe=ee[Ne];if(qe===E&&(qe=le(Ne)),typeof qe=="undefined"&&!$e)throw new ce("intrinsic "+ke+" exists, but is not available. Please file an issue!");return{alias:nt,name:Ne,value:qe}}throw new ne("intrinsic "+ke+" does not exist!")};pe.exports=function(ke,$e){if(typeof ke!="string"||ke.length===0)throw new ce("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof $e!="boolean")throw new ce('"allowMissing" argument must be a boolean');if(Pe(/^%?[^%]*%?$/,ke)===null)throw new ne("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Ne=je(ke),nt=Ne.length>0?Ne[0]:"",qe=Ce("%"+nt+"%",$e),Je=qe.name,Ye=qe.value,We=!1,Fe=qe.alias;Fe&&(nt=Fe[0],Se(Ne,ge([0,1],Fe)));for(var Ue=1,at=!0;Ue<Ne.length;Ue+=1){var Xe=Ne[Ue],ut=be(Xe,0,1),Ze=be(Xe,-1);if((ut==='"'||ut==="'"||ut==="`"||Ze==='"'||Ze==="'"||Ze==="`")&&ut!==Ze)throw new ne("property names with quotes must have matching quotes");if((Xe==="constructor"||!at)&&(We=!0),nt+="."+Xe,Je="%"+nt+"%",me(ee,Je))Ye=ee[Je];else if(Ye!=null){if(!(Xe in Ye)){if(!$e)throw new ce("base intrinsic for "+ke+" exists, but the property is not available.");return}if(ie&&Ue+1>=Ne.length){var ze=ie(Ye,Xe);at=!!ze,at&&"get"in ze&&!("originalValue"in ze.get)?Ye=ze.get:Ye=Ye[Xe]}else at=me(Ye,Xe),Ye=Ye[Xe];at&&!We&&(ee[Je]=Ye)}}return Ye}},{"function-bind":347,has:354,"has-proto":350,"has-symbols":351}],349:[function(x,pe,de){"use strict";var ae=x("get-intrinsic"),ne=ae("%Object.getOwnPropertyDescriptor%",!0);if(ne)try{ne([],"length")}catch(se){ne=null}pe.exports=ne},{"get-intrinsic":348}],350:[function(x,pe,de){"use strict";var ae={foo:{}},ne=Object;pe.exports=function(){return{__proto__:ae}.foo===ae.foo&&!({__proto__:null}instanceof ne)}},{}],351:[function(x,pe,de){"use strict";var ae=typeof Symbol!="undefined"&&Symbol,ne=x("./shams");pe.exports=function(){return typeof ae!="function"||typeof Symbol!="function"||typeof ae("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:ne()}},{"./shams":352}],352:[function(x,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={},se=Symbol("test"),ce=Object(se);if(typeof se=="string"||Object.prototype.toString.call(se)!=="[object Symbol]"||Object.prototype.toString.call(ce)!=="[object Symbol]")return!1;var ue=42;ne[se]=ue;for(se 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 ie=Object.getOwnPropertySymbols(ne);if(ie.length!==1||ie[0]!==se||!Object.prototype.propertyIsEnumerable.call(ne,se))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var oe=Object.getOwnPropertyDescriptor(ne,se);if(oe.value!==ue||oe.enumerable!==!0)return!1}return!0}},{}],353:[function(x,pe,de){"use strict";var ae=x("has-symbols/shams");pe.exports=function(){return ae()&&!!Symbol.toStringTag}},{"has-symbols/shams":352}],354:[function(x,pe,de){"use strict";var ae=x("function-bind");pe.exports=ae.call(Function.call,Object.prototype.hasOwnProperty)},{"function-bind":347}],355:[function(x,pe,de){var ae=x("http"),ne=x("url"),se=pe.exports;for(var ce in ae)ae.hasOwnProperty(ce)&&(se[ce]=ae[ce]);se.request=function(ie,oe){return ie=ue(ie),ae.request.call(this,ie,oe)},se.get=function(ie,oe){return ie=ue(ie),ae.get.call(this,ie,oe)};function ue(ie){if(typeof ie=="string"&&(ie=ne.parse(ie)),ie.protocol||(ie.protocol="https:"),ie.protocol!=="https:")throw new Error('Protocol "'+ie.protocol+'" not supported. Expected "https:"');return ie}},{http:468,url:472}],356:[function(x,pe,de){"use strict";var ae=x("util"),ne=x("ms");pe.exports=function(se){if(typeof se=="number")return se;var ce=ne(se);if(ce===void 0){var ue=new Error(ae.format("humanize-ms(%j) result undefined",se));console.warn(ue.stack)}return ce}},{ms:376,util:419}],357:[function(x,pe,de){de.read=function(ae,ne,se,ce,ue){var ie,oe,re=ue*8-ce-1,z=(1<<re)-1,a=z>>1,y=-7,E=se?ue-1:0,b=se?-1:1,ee=ae[ne+E];for(E+=b,ie=ee&(1<<-y)-1,ee>>=-y,y+=re;y>0;ie=ie*256+ae[ne+E],E+=b,y-=8);for(oe=ie&(1<<-y)-1,ie>>=-y,y+=ce;y>0;oe=oe*256+ae[ne+E],E+=b,y-=8);if(ie===0)ie=1-a;else{if(ie===z)return oe?NaN:(ee?-1:1)*(1/0);oe=oe+Math.pow(2,ce),ie=ie-a}return(ee?-1:1)*oe*Math.pow(2,ie-ce)},de.write=function(ae,ne,se,ce,ue,ie){var oe,re,z,a=ie*8-ue-1,y=(1<<a)-1,E=y>>1,b=ue===23?Math.pow(2,-24)-Math.pow(2,-77):0,ee=ce?0:ie-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*(z=Math.pow(2,-oe))<1&&(oe--,z*=2),oe+E>=1?ne+=b/z:ne+=b*Math.pow(2,1-E),ne*z>=2&&(oe++,z/=2),oe+E>=y?(re=0,oe=y):oe+E>=1?(re=(ne*z-1)*Math.pow(2,ue),oe=oe+E):(re=ne*Math.pow(2,E-1)*Math.pow(2,ue),oe=0));ue>=8;ae[se+ee]=re&255,ee+=te,re/=256,ue-=8);for(oe=oe<<ue|re,a+=ue;a>0;ae[se+ee]=oe&255,ee+=te,oe/=256,a-=8);ae[se+ee-te]|=le*128}},{}],358:[function(x,pe,de){"use strict";var ae=[x("./nextTick"),x("./queueMicrotask"),x("./mutation.js"),x("./messageChannel"),x("./stateChange"),x("./timeout")],ne,se,ce=-1,ue=[],ie=!1;function oe(){!ne||!se||(ne=!1,se.length?ue=se.concat(ue):ce=-1,ue.length&&re())}function re(){if(!ne){ie=!1,ne=!0;for(var ee=ue.length,te=setTimeout(oe);ee;){for(se=ue,ue=[];se&&++ce<ee;)se[ce].run();ce=-1,ee=ue.length}se=null,ce=-1,ne=!1,clearTimeout(te)}}for(var z,a=-1,y=ae.length;++a<y;)if(ae[a]&&ae[a].test&&ae[a].test()){z=ae[a].install(re);break}function E(ee,te){this.fun=ee,this.array=te}E.prototype.run=function(){var ee=this.fun,te=this.array;switch(te.length){case 0:return ee();case 1:return ee(te[0]);case 2:return ee(te[0],te[1]);case 3:return ee(te[0],te[1],te[2]);default:return ee.apply(null,te)}},pe.exports=b;function b(ee){var te=new Array(arguments.length-1);if(arguments.length>1)for(var le=1;le<arguments.length;le++)te[le-1]=arguments[le];ue.push(new E(ee,te)),!ie&&!ne&&(ie=!0,z())}},{"./messageChannel":359,"./mutation.js":360,"./nextTick":89,"./queueMicrotask":361,"./stateChange":362,"./timeout":363}],359:[function(x,pe,de){(function(ae){(function(){"use strict";de.test=function(){return ae.setImmediate?!1:typeof ae.MessageChannel!="undefined"},de.install=function(ne){var se=new ae.MessageChannel;return se.port1.onmessage=ne,function(){se.port2.postMessage(0)}}}).call(this)}).call(this,typeof ft!="undefined"?ft:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],360:[function(x,pe,de){(function(ae){(function(){"use strict";var ne=ae.MutationObserver||ae.WebKitMutationObserver;de.test=function(){return ne},de.install=function(se){var ce=0,ue=new ne(se),ie=ae.document.createTextNode("");return ue.observe(ie,{characterData:!0}),function(){ie.data=ce=++ce%2}}}).call(this)}).call(this,typeof ft!="undefined"?ft:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],361:[function(x,pe,de){(function(ae){(function(){"use strict";de.test=function(){return typeof ae.queueMicrotask=="function"},de.install=function(ne){return function(){ae.queueMicrotask(ne)}}}).call(this)}).call(this,typeof ft!="undefined"?ft:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],362:[function(x,pe,de){(function(ae){(function(){"use strict";de.test=function(){return"document"in ae&&"onreadystatechange"in ae.document.createElement("script")},de.install=function(ne){return function(){var se=ae.document.createElement("script");return se.onreadystatechange=function(){ne(),se.onreadystatechange=null,se.parentNode.removeChild(se),se=null},ae.document.documentElement.appendChild(se),ne}}}).call(this)}).call(this,typeof ft!="undefined"?ft:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],363:[function(x,pe,de){"use strict";de.test=function(){return!0},de.install=function(ae){return function(){setTimeout(ae,0)}}},{}],364:[function(x,pe,de){typeof Object.create=="function"?pe.exports=function(ne,se){se&&(ne.super_=se,ne.prototype=Object.create(se.prototype,{constructor:{value:ne,enumerable:!1,writable:!0,configurable:!0}}))}:pe.exports=function(ne,se){if(se){ne.super_=se;var ce=function(){};ce.prototype=se.prototype,ne.prototype=new ce,ne.prototype.constructor=ne}}},{}],365:[function(x,pe,de){"use strict";var ae=x("has-tostringtag/shams")(),ne=x("call-bind/callBound"),se=ne("Object.prototype.toString"),ce=function(re){return ae&&re&&typeof re=="object"&&Symbol.toStringTag in re?!1:se(re)==="[object Arguments]"},ue=function(re){return ce(re)?!0:re!==null&&typeof re=="object"&&typeof re.length=="number"&&re.length>=0&&se(re)!=="[object Array]"&&se(re.callee)==="[object Function]"},ie=function(){return ce(arguments)}();ce.isLegacyArguments=ue,pe.exports=ie?ce:ue},{"call-bind/callBound":92,"has-tostringtag/shams":353}],366:[function(x,pe,de){pe.exports=function(se){return se!=null&&(ae(se)||ne(se)||!!se._isBuffer)};function ae(se){return!!se.constructor&&typeof se.constructor.isBuffer=="function"&&se.constructor.isBuffer(se)}function ne(se){return typeof se.readFloatLE=="function"&&typeof se.slice=="function"&&ae(se.slice(0,0))}},{}],367:[function(x,pe,de){"use strict";var ae=Function.prototype.toString,ne=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,se,ce;if(typeof ne=="function"&&typeof Object.defineProperty=="function")try{se=Object.defineProperty({},"length",{get:function(){throw ce}}),ce={},ne(function(){throw 42},null,se)}catch(me){me!==ce&&(ne=null)}else ne=null;var ue=/^\s*class\b/,ie=function(ge){try{var Se=ae.call(ge);return ue.test(Se)}catch(ve){return!1}},oe=function(ge){try{return ie(ge)?!1:(ae.call(ge),!0)}catch(Se){return!1}},re=Object.prototype.toString,z="[object Object]",a="[object Function]",y="[object GeneratorFunction]",E="[object HTMLAllCollection]",b="[object HTML document.all class]",ee="[object HTMLCollection]",te=typeof Symbol=="function"&&!!Symbol.toStringTag,le=!(0 in[,]),fe=function(){return!1};if(typeof document=="object"){var he=document.all;re.call(he)===re.call(document.all)&&(fe=function(ge){if((le||!ge)&&(typeof ge=="undefined"||typeof ge=="object"))try{var Se=re.call(ge);return(Se===E||Se===b||Se===ee||Se===z)&&ge("")==null}catch(ve){}return!1})}pe.exports=ne?function(ge){if(fe(ge))return!0;if(!ge||typeof ge!="function"&&typeof ge!="object")return!1;try{ne(ge,null,se)}catch(Se){if(Se!==ce)return!1}return!ie(ge)&&oe(ge)}:function(ge){if(fe(ge))return!0;if(!ge||typeof ge!="function"&&typeof ge!="object")return!1;if(te)return oe(ge);if(ie(ge))return!1;var Se=re.call(ge);return Se!==a&&Se!==y&&!/^\[object HTML/.test(Se)?!1:oe(ge)}},{}],368:[function(x,pe,de){"use strict";var ae=Object.prototype.toString,ne=Function.prototype.toString,se=/^\s*(?:function)?\*/,ce=x("has-tostringtag/shams")(),ue=Object.getPrototypeOf,ie=function(){if(!ce)return!1;try{return Function("return function*() {}")()}catch(re){}},oe;pe.exports=function(z){if(typeof z!="function")return!1;if(se.test(ne.call(z)))return!0;if(!ce){var a=ae.call(z);return a==="[object GeneratorFunction]"}if(!ue)return!1;if(typeof oe=="undefined"){var y=ie();oe=y?ue(y):!1}return ue(z)===oe}},{"has-tostringtag/shams":353}],369:[function(x,pe,de){"use strict";var ae=x("which-typed-array");pe.exports=function(se){return!!ae(se)}},{"which-typed-array":420}],370:[function(x,pe,de){var ae={}.toString;pe.exports=Array.isArray||function(ne){return ae.call(ne)=="[object Array]"}},{}],371:[function(x,pe,de){(function(ae){(function(){(function(ne,se){typeof de=="object"&&typeof pe!="undefined"?pe.exports=se(ne):typeof ye=="function"&&ye.amd?ye(se):se(ne)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof ae!="undefined"?ae:this,function(ne){"use strict";ne=ne||{};var se=ne.Base64,ce="2.6.4",ue="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ie=function(ke){for(var $e={},Ne=0,nt=ke.length;Ne<nt;Ne++)$e[ke.charAt(Ne)]=Ne;return $e}(ue),oe=String.fromCharCode,re=function(ke){if(ke.length<2){var $e=ke.charCodeAt(0);return $e<128?ke:$e<2048?oe(192|$e>>>6)+oe(128|$e&63):oe(224|$e>>>12&15)+oe(128|$e>>>6&63)+oe(128|$e&63)}else{var $e=65536+(ke.charCodeAt(0)-55296)*1024+(ke.charCodeAt(1)-56320);return oe(240|$e>>>18&7)+oe(128|$e>>>12&63)+oe(128|$e>>>6&63)+oe(128|$e&63)}},z=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,a=function(ke){return ke.replace(z,re)},y=function(ke){var $e=[0,2,1][ke.length%3],Ne=ke.charCodeAt(0)<<16|(ke.length>1?ke.charCodeAt(1):0)<<8|(ke.length>2?ke.charCodeAt(2):0),nt=[ue.charAt(Ne>>>18),ue.charAt(Ne>>>12&63),$e>=2?"=":ue.charAt(Ne>>>6&63),$e>=1?"=":ue.charAt(Ne&63)];return nt.join("")},E=ne.btoa&&typeof ne.btoa=="function"?function(ke){return ne.btoa(ke)}:function(ke){if(ke.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return ke.replace(/[\s\S]{1,3}/g,y)},b=function(ke){return E(a(String(ke)))},ee=function(ke){return ke.replace(/[+\/]/g,function($e){return $e=="+"?"-":"_"}).replace(/=/g,"")},te=function(ke,$e){return $e?ee(b(ke)):b(ke)},le=function(ke){return te(ke,!0)},fe;ne.Uint8Array&&(fe=function(ke,$e){for(var Ne="",nt=0,qe=ke.length;nt<qe;nt+=3){var Je=ke[nt],Ye=ke[nt+1],We=ke[nt+2],Fe=Je<<16|Ye<<8|We;Ne+=ue.charAt(Fe>>>18)+ue.charAt(Fe>>>12&63)+(typeof Ye!="undefined"?ue.charAt(Fe>>>6&63):"=")+(typeof We!="undefined"?ue.charAt(Fe&63):"=")}return $e?ee(Ne):Ne});var he=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,me=function(ke){switch(ke.length){case 4:var $e=(7&ke.charCodeAt(0))<<18|(63&ke.charCodeAt(1))<<12|(63&ke.charCodeAt(2))<<6|63&ke.charCodeAt(3),Ne=$e-65536;return oe((Ne>>>10)+55296)+oe((Ne&1023)+56320);case 3:return oe((15&ke.charCodeAt(0))<<12|(63&ke.charCodeAt(1))<<6|63&ke.charCodeAt(2));default:return oe((31&ke.charCodeAt(0))<<6|63&ke.charCodeAt(1))}},ge=function(ke){return ke.replace(he,me)},Se=function(ke){var $e=ke.length,Ne=$e%4,nt=($e>0?ie[ke.charAt(0)]<<18:0)|($e>1?ie[ke.charAt(1)]<<12:0)|($e>2?ie[ke.charAt(2)]<<6:0)|($e>3?ie[ke.charAt(3)]:0),qe=[oe(nt>>>16),oe(nt>>>8&255),oe(nt&255)];return qe.length-=[0,0,2,1][Ne],qe.join("")},ve=ne.atob&&typeof ne.atob=="function"?function(ke){return ne.atob(ke)}:function(ke){return ke.replace(/\S{1,4}/g,Se)},be=function(ke){return ve(String(ke).replace(/[^A-Za-z0-9\+\/]/g,""))},Pe=function(ke){return ge(ve(ke))},Te=function(ke){return String(ke).replace(/[-_]/g,function($e){return $e=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},_e=function(ke){return Pe(Te(ke))},je;ne.Uint8Array&&(je=function(ke){return Uint8Array.from(be(Te(ke)),function($e){return $e.charCodeAt(0)})});var Ce=function(){var ke=ne.Base64;return ne.Base64=se,ke};if(ne.Base64={VERSION:ce,atob:be,btoa:E,fromBase64:_e,toBase64:te,utob:a,encode:te,encodeURI:le,btou:ge,decode:_e,noConflict:Ce,fromUint8Array:fe,toUint8Array:je},typeof Object.defineProperty=="function"){var Ie=function(ke){return{value:ke,enumerable:!1,writable:!0,configurable:!0}};ne.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",Ie(function(){return _e(this)})),Object.defineProperty(String.prototype,"toBase64",Ie(function(ke){return te(this,ke)})),Object.defineProperty(String.prototype,"toBase64URI",Ie(function(){return te(this,!0)}))}}return ne.Meteor&&(Base64=ne.Base64),typeof pe!="undefined"&&pe.exports?pe.exports.Base64=ne.Base64:typeof ye=="function"&&ye.amd&&ye([],function(){return ne.Base64}),{Base64:ne.Base64}})}).call(this)}).call(this,typeof ft!="undefined"?ft:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],372:[function(x,pe,de){"use strict";pe.exports=ne;var ae=Object.prototype.hasOwnProperty;function ne(se,ce,ue){if(!se)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&&ae.call(se,oe))){var re=Object.getOwnPropertyDescriptor(ce,oe);Object.defineProperty(se,oe,re)}}),se}},{}],373:[function(x,pe,de){"use strict";x("core-js/modules/es.array.map.js"),x("core-js/modules/es.regexp.exec.js"),x("core-js/modules/es.string.replace.js"),x("core-js/modules/es.regexp.constructor.js"),x("core-js/modules/es.regexp.to-string.js");function ae(){this._types=Object.create(null),this._extensions=Object.create(null);for(var ne=0;ne<arguments.length;ne++)this.define(arguments[ne]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}ae.prototype.define=function(ne,se){for(var ce in ne){var ue=ne[ce].map(function(z){return z.toLowerCase()});ce=ce.toLowerCase();for(var ie=0;ie<ue.length;ie++){var oe=ue[ie];if(oe[0]!=="*"){if(!se&&oe in this._types)throw new Error('Attempt to change mapping for "'+oe+'" extension from "'+this._types[oe]+'" to "'+ce+'". Pass `force=true` to allow this, otherwise remove "'+oe+'" from the list of extensions for "'+ce+'".');this._types[oe]=ce}}if(se||!this._extensions[ce]){var re=ue[0];this._extensions[ce]=re[0]!=="*"?re:re.substr(1)}}},ae.prototype.getType=function(ne){ne=String(ne);var se=ne.replace(/^.*[/\\]/,"").toLowerCase(),ce=se.replace(/^.*\./,"").toLowerCase(),ue=se.length<ne.length,ie=ce.length<se.length-1;return(ie||!ue)&&this._types[ce]||null},ae.prototype.getExtension=function(ne){return ne=/^\s*([^;\s]*)/.test(ne)&&RegExp.$1,ne&&this._extensions[ne.toLowerCase()]||null},pe.exports=ae},{"core-js/modules/es.array.map.js":280,"core-js/modules/es.regexp.constructor.js":299,"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}],374:[function(x,pe,de){"use strict";var ae=x("./Mime");pe.exports=new ae(x("./types/standard"))},{"./Mime":373,"./types/standard":375}],375:[function(x,pe,de){"use strict";pe.exports={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["es","ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avif":["avif"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/hsj2":["hsj2"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm"],"image/jpx":["jpx","jpf"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]}},{}],376:[function(x,pe,de){var ae=1e3,ne=ae*60,se=ne*60,ce=se*24,ue=ce*7,ie=ce*365.25;pe.exports=function(y,E){E=E||{};var b=typeof y;if(b==="string"&&y.length>0)return oe(y);if(b==="number"&&isFinite(y))return E.long?z(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 E=/^(-?(?:\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(E){var b=parseFloat(E[1]),ee=(E[2]||"ms").toLowerCase();switch(ee){case"years":case"year":case"yrs":case"yr":case"y":return b*ie;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*se;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*ae;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return b;default:return}}}}function re(y){var E=Math.abs(y);return E>=ce?Math.round(y/ce)+"d":E>=se?Math.round(y/se)+"h":E>=ne?Math.round(y/ne)+"m":E>=ae?Math.round(y/ae)+"s":y+"ms"}function z(y){var E=Math.abs(y);return E>=ce?a(y,E,ce,"day"):E>=se?a(y,E,se,"hour"):E>=ne?a(y,E,ne,"minute"):E>=ae?a(y,E,ae,"second"):y+" ms"}function a(y,E,b,ee){var te=E>=b*1.5;return Math.round(y/b)+" "+ee+(te?"s":"")}},{}],377:[function(x,pe,de){"use strict";var ae=Object.getOwnPropertySymbols,ne=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable;function ce(ie){if(ie==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(ie)}function ue(){try{if(!Object.assign)return!1;var ie=new String("abc");if(ie[5]="de",Object.getOwnPropertyNames(ie)[0]==="5")return!1;for(var oe={},re=0;re<10;re++)oe["_"+String.fromCharCode(re)]=re;var z=Object.getOwnPropertyNames(oe).map(function(y){return oe[y]});if(z.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(ie,oe){for(var re,z=ce(ie),a,y=1;y<arguments.length;y++){re=Object(arguments[y]);for(var E in re)ne.call(re,E)&&(z[E]=re[E]);if(ae){a=ae(re);for(var b=0;b<a.length;b++)se.call(re,a[b])&&(z[a[b]]=re[a[b]])}}return z}},{}],378:[function(x,pe,de){(function(ae){(function(){"use strict";function ne(ie){if(typeof ie!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(ie))}function se(ie,oe){for(var re="",z=0,a=-1,y=0,E,b=0;b<=ie.length;++b){if(b<ie.length)E=ie.charCodeAt(b);else{if(E===47)break;E=47}if(E===47){if(!(a===b-1||y===1))if(a!==b-1&&y===2){if(re.length<2||z!==2||re.charCodeAt(re.length-1)!==46||re.charCodeAt(re.length-2)!==46){if(re.length>2){var ee=re.lastIndexOf("/");if(ee!==re.length-1){ee===-1?(re="",z=0):(re=re.slice(0,ee),z=re.length-1-re.lastIndexOf("/")),a=b,y=0;continue}}else if(re.length===2||re.length===1){re="",z=0,a=b,y=0;continue}}oe&&(re.length>0?re+="/..":re="..",z=2)}else re.length>0?re+="/"+ie.slice(a+1,b):re=ie.slice(a+1,b),z=b-a-1;a=b,y=0}else E===46&&y!==-1?++y:y=-1}return re}function ce(ie,oe){var re=oe.dir||oe.root,z=oe.base||(oe.name||"")+(oe.ext||"");return re?re===oe.root?re+z:re+ie+z:z}var ue={resolve:function(){for(var oe="",re=!1,z,a=arguments.length-1;a>=-1&&!re;a--){var y;a>=0?y=arguments[a]:(z===void 0&&(z=ae.cwd()),y=z),ne(y),y.length!==0&&(oe=y+"/"+oe,re=y.charCodeAt(0)===47)}return oe=se(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,z=oe.charCodeAt(oe.length-1)===47;return oe=se(oe,!re),oe.length===0&&!re&&(oe="."),oe.length>0&&z&&(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;re<arguments.length;++re){var z=arguments[re];ne(z),z.length>0&&(oe===void 0?oe=z:oe+="/"+z)}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 z=1;z<oe.length&&oe.charCodeAt(z)===47;++z);for(var a=oe.length,y=a-z,E=1;E<re.length&&re.charCodeAt(E)===47;++E);for(var b=re.length,ee=b-E,te=y<ee?y:ee,le=-1,fe=0;fe<=te;++fe){if(fe===te){if(ee>te){if(re.charCodeAt(E+fe)===47)return re.slice(E+fe+1);if(fe===0)return re.slice(E+fe)}else y>te&&(oe.charCodeAt(z+fe)===47?le=fe:fe===0&&(le=0));break}var he=oe.charCodeAt(z+fe),me=re.charCodeAt(E+fe);if(he!==me)break;he===47&&(le=fe)}var ge="";for(fe=z+le+1;fe<=a;++fe)(fe===a||oe.charCodeAt(fe)===47)&&(ge.length===0?ge+="..":ge+="/..");return ge.length>0?ge+re.slice(E+le):(E+=le,re.charCodeAt(E)===47&&++E,re.slice(E))},_makeLong:function(oe){return oe},dirname:function(oe){if(ne(oe),oe.length===0)return".";for(var re=oe.charCodeAt(0),z=re===47,a=-1,y=!0,E=oe.length-1;E>=1;--E)if(re=oe.charCodeAt(E),re===47){if(!y){a=E;break}}else y=!1;return a===-1?z?"/":".":z&&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 z=0,a=-1,y=!0,E;if(re!==void 0&&re.length>0&&re.length<=oe.length){if(re.length===oe.length&&re===oe)return"";var b=re.length-1,ee=-1;for(E=oe.length-1;E>=0;--E){var te=oe.charCodeAt(E);if(te===47){if(!y){z=E+1;break}}else ee===-1&&(y=!1,ee=E+1),b>=0&&(te===re.charCodeAt(b)?--b===-1&&(a=E):(b=-1,a=ee))}return z===a?a=ee:a===-1&&(a=oe.length),oe.slice(z,a)}else{for(E=oe.length-1;E>=0;--E)if(oe.charCodeAt(E)===47){if(!y){z=E+1;break}}else a===-1&&(y=!1,a=E+1);return a===-1?"":oe.slice(z,a)}},extname:function(oe){ne(oe);for(var re=-1,z=0,a=-1,y=!0,E=0,b=oe.length-1;b>=0;--b){var ee=oe.charCodeAt(b);if(ee===47){if(!y){z=b+1;break}continue}a===-1&&(y=!1,a=b+1),ee===46?re===-1?re=b:E!==1&&(E=1):re!==-1&&(E=-1)}return re===-1||a===-1||E===0||E===1&&re===a-1&&re===z+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 z=oe.charCodeAt(0),a=z===47,y;a?(re.root="/",y=1):y=0;for(var E=-1,b=0,ee=-1,te=!0,le=oe.length-1,fe=0;le>=y;--le){if(z=oe.charCodeAt(le),z===47){if(!te){b=le+1;break}continue}ee===-1&&(te=!1,ee=le+1),z===46?E===-1?E=le:fe!==1&&(fe=1):E!==-1&&(fe=-1)}return E===-1||ee===-1||fe===0||fe===1&&E===ee-1&&E===b+1?ee!==-1&&(b===0&&a?re.base=re.name=oe.slice(1,ee):re.base=re.name=oe.slice(b,ee)):(b===0&&a?(re.name=oe.slice(1,E),re.base=oe.slice(1,ee)):(re.name=oe.slice(b,E),re.base=oe.slice(b,ee)),re.ext=oe.slice(E,ee)),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,x("_process"))},{_process:467}],379:[function(x,pe,de){(function(ae){(function(){(function(){"use strict";var ne={function:!0,object:!0},se=ne[typeof window]&&window||this,ce=se,ue=ne[typeof de]&&de,ie=ne[typeof pe]&&pe&&!pe.nodeType&&pe,oe=ue&&ie&&typeof ae=="object"&&ae;oe&&(oe.global===oe||oe.window===oe||oe.self===oe)&&(se=oe);var re=Math.pow(2,53)-1,z=/\bOpera/,a=this,y=Object.prototype,E=y.hasOwnProperty,b=y.toString;function ee(_e){return _e=String(_e),_e.charAt(0).toUpperCase()+_e.slice(1)}function te(_e,je,Ce){var Ie={"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 je&&Ce&&/^Win/i.test(_e)&&!/^Windows Phone /i.test(_e)&&(Ie=Ie[/[\d.]+$/.exec(_e)])&&(_e="Windows "+Ie),_e=String(_e),je&&Ce&&(_e=_e.replace(RegExp(je,"i"),Ce)),_e=fe(_e.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]),_e}function le(_e,je){var Ce=-1,Ie=_e?_e.length:0;if(typeof Ie=="number"&&Ie>-1&&Ie<=re)for(;++Ce<Ie;)je(_e[Ce],Ce,_e);else he(_e,je)}function fe(_e){return _e=be(_e),/^(?:webOS|i(?:OS|P))/.test(_e)?_e:ee(_e)}function he(_e,je){for(var Ce in _e)E.call(_e,Ce)&&je(_e[Ce],Ce,_e)}function me(_e){return _e==null?ee(_e):b.call(_e).slice(8,-1)}function ge(_e,je){var Ce=_e!=null?typeof _e[je]:"number";return!/^(?:boolean|number|string|undefined)$/.test(Ce)&&(Ce=="object"?!!_e[je]:!0)}function Se(_e){return String(_e).replace(/([ -])(?!$)/g,"$1?")}function ve(_e,je){var Ce=null;return le(_e,function(Ie,ke){Ce=je(Ce,Ie,ke,_e)}),Ce}function be(_e){return String(_e).replace(/^ +| +$/g,"")}function Pe(_e){var je=se,Ce=_e&&typeof _e=="object"&&me(_e)!="String";Ce&&(je=_e,_e=null);var Ie=je.navigator||{},ke=Ie.userAgent||"";_e||(_e=ke);var $e=Ce||a==ce,Ne=Ce?!!Ie.likeChrome:/\bChrome\b/.test(_e)&&!/internal|\n/i.test(b.toString()),nt="Object",qe=Ce?nt:"ScriptBridgingProxyObject",Je=Ce?nt:"Environment",Ye=Ce&&je.java?"JavaPackage":me(je.java),We=Ce?nt:"RuntimeObject",Fe=/\bJava/.test(Ye)&&je.java,Ue=Fe&&me(je.environment)==Je,at=Fe?"a":"\u03B1",Xe=Fe?"b":"\u03B2",ut=je.document||{},Ze=je.operamini||je.opera,ze=z.test(ze=Ce&&Ze?Ze["[[Class]]"]:me(Ze))?ze:Ze=null,Re,it=_e,Me=[],Be=null,Qe=_e==ke,Ge=Qe&&Ze&&typeof Ze.version=="function"&&Ze.version(),De,Le=tt([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),Oe=ot(["Adobe AIR","Arora","Avant Browser","Breach","Camino","Electron","Epiphany","Fennec","Flock","Galeon","GreenBrowser","iCab","Iceweasel","K-Meleon","Konqueror","Lunascape","Maxthon",{label:"Microsoft Edge",pattern:"(?:Edge|Edg|EdgA|EdgiOS)"},"Midori","Nook Browser","PaleMoon","PhantomJS","Raven","Rekonq","RockMelt",{label:"Samsung Internet",pattern:"SamsungBrowser"},"SeaMonkey",{label:"Silk",pattern:"(?:Cloud9|Silk-Accelerated)"},"Sleipnir","SlimBrowser",{label:"SRWare Iron",pattern:"Iron"},"Sunrise","Swiftfox","Vivaldi","Waterfox","WebPositive",{label:"Yandex Browser",pattern:"YaBrowser"},{label:"UC Browser",pattern:"UCBrowser"},"Opera Mini",{label:"Opera Mini",pattern:"OPiOS"},"Opera",{label:"Opera",pattern:"OPR"},"Chromium","Chrome",{label:"Chrome",pattern:"(?:HeadlessChrome)"},{label:"Chrome Mobile",pattern:"(?:CriOS|CrMo)"},{label:"Firefox",pattern:"(?:Firefox|Minefield)"},{label:"Firefox for iOS",pattern:"FxiOS"},{label:"IE",pattern:"IEMobile"},{label:"IE",pattern:"MSIE"},"Safari"]),xe=lt([{label:"BlackBerry",pattern:"BB10"},"BlackBerry",{label:"Galaxy S",pattern:"GT-I9000"},{label:"Galaxy S2",pattern:"GT-I9100"},{label:"Galaxy S3",pattern:"GT-I9300"},{label:"Galaxy S4",pattern:"GT-I9500"},{label:"Galaxy S5",pattern:"SM-G900"},{label:"Galaxy S6",pattern:"SM-G920"},{label:"Galaxy S6 Edge",pattern:"SM-G925"},{label:"Galaxy S7",pattern:"SM-G930"},{label:"Galaxy S7 Edge",pattern:"SM-G935"},"Google TV","Lumia","iPad","iPod","iPhone","Kindle",{label:"Kindle Fire",pattern:"(?:Cloud9|Silk-Accelerated)"},"Nexus","Nook","PlayBook","PlayStation Vita","PlayStation","TouchPad","Transformer",{label:"Wii U",pattern:"WiiU"},"Wii","Xbox One",{label:"Xbox 360",pattern:"Xbox"},"Xoom"]),Ae=He({Apple:{iPad:1,iPhone:1,iPod:1},Alcatel:{},Archos:{},Amazon:{Kindle:1,"Kindle Fire":1},Asus:{Transformer:1},"Barnes & Noble":{Nook:1},BlackBerry:{PlayBook:1},Google:{"Google TV":1,Nexus:1},HP:{TouchPad:1},HTC:{},Huawei:{},Lenovo:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Oppo:{},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{PlayStation:1,"PlayStation Vita":1},Xiaomi:{Mi:1,Redmi:1}}),Ke=mt(["Windows Phone","KaiOS","Android","CentOS",{label:"Chrome OS",pattern:"CrOS"},"Debian",{label:"DragonFly BSD",pattern:"DragonFly"},"Fedora","FreeBSD","Gentoo","Haiku","Kubuntu","Linux Mint","OpenBSD","Red Hat","SuSE","Ubuntu","Xubuntu","Cygwin","Symbian OS","hpwOS","webOS ","webOS","Tablet OS","Tizen","Linux","Mac OS X","Macintosh","Mac","Windows 98;","Windows "]);function tt(rt){return ve(rt,function(ct,gt){return ct||RegExp("\\b"+(gt.pattern||Se(gt))+"\\b","i").exec(_e)&&(gt.label||gt)})}function He(rt){return ve(rt,function(ct,gt,St){return ct||(gt[xe]||gt[/^[a-z]+(?: +[a-z]+\b)*/i.exec(xe)]||RegExp("\\b"+Se(St)+"(?:\\b|\\w*\\d)","i").exec(_e))&&St})}function ot(rt){return ve(rt,function(ct,gt){return ct||RegExp("\\b"+(gt.pattern||Se(gt))+"\\b","i").exec(_e)&&(gt.label||gt)})}function mt(rt){return ve(rt,function(ct,gt){var St=gt.pattern||Se(gt);return!ct&&(ct=RegExp("\\b"+St+"(?:/[\\d.]+|[ \\w.]*)","i").exec(_e))&&(ct=te(ct,St,gt.label||gt)),ct})}function lt(rt){return ve(rt,function(ct,gt){var St=gt.pattern||Se(gt);return!ct&&(ct=RegExp("\\b"+St+" *\\d+[.\\w_]*","i").exec(_e)||RegExp("\\b"+St+" *\\w+-[\\w]*","i").exec(_e)||RegExp("\\b"+St+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(_e))&&((ct=String(gt.label&&!RegExp(St,"i").test(gt.label)?gt.label:ct).split("/"))[1]&&!/[\d.]+/.test(ct[0])&&(ct[0]+=" "+ct[1]),gt=gt.label||gt,ct=fe(ct[0].replace(RegExp(St,"i"),gt).replace(RegExp("; *(?:"+gt+"[_-])?","i")," ").replace(RegExp("("+gt+")[-_.]?(\\w)","i"),"$1 $2"))),ct})}function pt(rt){return ve(rt,function(ct,gt){return ct||(RegExp(gt+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(_e)||0)[1]||null})}function st(){return this.description||""}if(Le&&(Le=[Le]),/\bAndroid\b/.test(Ke)&&!xe&&(Re=/\bAndroid[^;]*;(.*?)(?:Build|\) AppleWebKit)\b/i.exec(_e))&&(xe=be(Re[1]).replace(/^[a-z]{2}-[a-z]{2};\s*/i,"")||null),Ae&&!xe?xe=lt([Ae]):Ae&&xe&&(xe=xe.replace(RegExp("^("+Se(Ae)+")[-_.\\s]","i"),Ae+" ").replace(RegExp("^("+Se(Ae)+")[-_.]?(\\w)","i"),Ae+" $2")),(Re=/\bGoogle TV\b/.exec(xe))&&(xe=Re[0]),/\bSimulator\b/i.test(_e)&&(xe=(xe?xe+" ":"")+"Simulator"),Oe=="Opera Mini"&&/\bOPiOS\b/.test(_e)&&Me.push("running in Turbo/Uncompressed mode"),Oe=="IE"&&/\blike iPhone OS\b/.test(_e)?(Re=Pe(_e.replace(/like iPhone OS/,"")),Ae=Re.manufacturer,xe=Re.product):/^iP/.test(xe)?(Oe||(Oe="Safari"),Ke="iOS"+((Re=/ OS ([\d_]+)/i.exec(_e))?" "+Re[1].replace(/_/g,"."):"")):Oe=="Konqueror"&&/^Linux\b/i.test(Ke)?Ke="Kubuntu":Ae&&Ae!="Google"&&(/Chrome/.test(Oe)&&!/\bMobile Safari\b/i.test(_e)||/\bVita\b/.test(xe))||/\bAndroid\b/.test(Ke)&&/^Chrome/.test(Oe)&&/\bVersion\//i.test(_e)?(Oe="Android Browser",Ke=/\bAndroid\b/.test(Ke)?Ke:"Android"):Oe=="Silk"?(/\bMobi/i.test(_e)||(Ke="Android",Me.unshift("desktop mode")),/Accelerated *= *true/i.test(_e)&&Me.unshift("accelerated")):Oe=="UC Browser"&&/\bUCWEB\b/.test(_e)?Me.push("speed mode"):Oe=="PaleMoon"&&(Re=/\bFirefox\/([\d.]+)\b/.exec(_e))?Me.push("identifying as Firefox "+Re[1]):Oe=="Firefox"&&(Re=/\b(Mobile|Tablet|TV)\b/i.exec(_e))?(Ke||(Ke="Firefox OS"),xe||(xe=Re[1])):!Oe||(Re=!/\bMinefield\b/i.test(_e)&&/\b(?:Firefox|Safari)\b/.exec(Oe))?(Oe&&!xe&&/[\/,]|^[^(]+?\)/.test(_e.slice(_e.indexOf(Re+"/")+8))&&(Oe=null),(Re=xe||Ae||Ke)&&(xe||Ae||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(Ke))&&(Oe=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(Ke)?Ke:Re)+" Browser")):Oe=="Electron"&&(Re=(/\bChrome\/([\d.]+)\b/.exec(_e)||0)[1])&&Me.push("Chromium "+Re),Ge||(Ge=pt(["(?:Cloud9|CriOS|CrMo|Edge|Edg|EdgA|EdgiOS|FxiOS|HeadlessChrome|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$)|UCBrowser|YaBrowser)","Version",Se(Oe),"(?:Firefox|Minefield|NetFront)"])),(Re=Le=="iCab"&&parseFloat(Ge)>3&&"WebKit"||/\bOpera\b/.test(Oe)&&(/\bOPR\b/.test(_e)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(_e)&&!/^(?:Trident|EdgeHTML)$/.test(Le)&&"WebKit"||!Le&&/\bMSIE\b/i.test(_e)&&(Ke=="Mac OS"?"Tasman":"Trident")||Le=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(Oe)&&"NetFront")&&(Le=[Re]),Oe=="IE"&&(Re=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(_e)||0)[1])?(Oe+=" Mobile",Ke="Windows Phone "+(/\+$/.test(Re)?Re:Re+".x"),Me.unshift("desktop mode")):/\bWPDesktop\b/i.test(_e)?(Oe="IE Mobile",Ke="Windows Phone 8.x",Me.unshift("desktop mode"),Ge||(Ge=(/\brv:([\d.]+)/.exec(_e)||0)[1])):Oe!="IE"&&Le=="Trident"&&(Re=/\brv:([\d.]+)/.exec(_e))&&(Oe&&Me.push("identifying as "+Oe+(Ge?" "+Ge:"")),Oe="IE",Ge=Re[1]),Qe){if(ge(je,"global"))if(Fe&&(Re=Fe.lang.System,it=Re.getProperty("os.arch"),Ke=Ke||Re.getProperty("os.name")+" "+Re.getProperty("os.version")),Ue){try{Ge=je.require("ringo/engine").version.join("."),Oe="RingoJS"}catch(rt){(Re=je.system)&&Re.global.system==je.system&&(Oe="Narwhal",Ke||(Ke=Re[0].os||null))}Oe||(Oe="Rhino")}else typeof je.process=="object"&&!je.process.browser&&(Re=je.process)&&(typeof Re.versions=="object"&&(typeof Re.versions.electron=="string"?(Me.push("Node "+Re.versions.node),Oe="Electron",Ge=Re.versions.electron):typeof Re.versions.nw=="string"&&(Me.push("Chromium "+Ge,"Node "+Re.versions.node),Oe="NW.js",Ge=Re.versions.nw)),Oe||(Oe="Node.js",it=Re.arch,Ke=Re.platform,Ge=/[\d.]+/.exec(Re.version),Ge=Ge?Ge[0]:null));else me(Re=je.runtime)==qe?(Oe="Adobe AIR",Ke=Re.flash.system.Capabilities.os):me(Re=je.phantom)==We?(Oe="PhantomJS",Ge=(Re=Re.version||null)&&Re.major+"."+Re.minor+"."+Re.patch):typeof ut.documentMode=="number"&&(Re=/\bTrident\/(\d+)/i.exec(_e))?(Ge=[Ge,ut.documentMode],(Re=+Re[1]+4)!=Ge[1]&&(Me.push("IE "+Ge[1]+" mode"),Le&&(Le[1]=""),Ge[1]=Re),Ge=Oe=="IE"?String(Ge[1].toFixed(1)):Ge[0]):typeof ut.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(Oe)&&(Me.push("masking as "+Oe+" "+Ge),Oe="IE",Ge="11.0",Le=["Trident"],Ke="Windows");Ke=Ke&&fe(Ke)}if(Ge&&(Re=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(Ge)||/(?:alpha|beta)(?: ?\d)?/i.exec(_e+";"+(Qe&&Ie.appMinorVersion))||/\bMinefield\b/i.test(_e)&&"a")&&(Be=/b/i.test(Re)?"beta":"alpha",Ge=Ge.replace(RegExp(Re+"\\+?$"),"")+(Be=="beta"?Xe:at)+(/\d+\+?/.exec(Re)||"")),Oe=="Fennec"||Oe=="Firefox"&&/\b(?:Android|Firefox OS|KaiOS)\b/.test(Ke))Oe="Firefox Mobile";else if(Oe=="Maxthon"&&Ge)Ge=Ge.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(xe))xe=="Xbox 360"&&(Ke=null),xe=="Xbox 360"&&/\bIEMobile\b/.test(_e)&&Me.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(Oe)||Oe&&!xe&&!/Browser|Mobi/.test(Oe))&&(Ke=="Windows CE"||/Mobi/i.test(_e)))Oe+=" Mobile";else if(Oe=="IE"&&Qe)try{je.external===null&&Me.unshift("platform preview")}catch(rt){Me.unshift("embedded")}else(/\bBlackBerry\b/.test(xe)||/\bBB10\b/.test(_e))&&(Re=(RegExp(xe.replace(/ +/g," *")+"/([.\\d]+)","i").exec(_e)||0)[1]||Ge)?(Re=[Re,/BB10/.test(_e)],Ke=(Re[1]?(xe=null,Ae="BlackBerry"):"Device Software")+" "+Re[0],Ge=null):this!=he&&xe!="Wii"&&(Qe&&Ze||/Opera/.test(Oe)&&/\b(?:MSIE|Firefox)\b/i.test(_e)||Oe=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(Ke)||Oe=="IE"&&(Ke&&!/^Win/.test(Ke)&&Ge>5.5||/\bWindows XP\b/.test(Ke)&&Ge>8||Ge==8&&!/\bTrident\b/.test(_e)))&&!z.test(Re=Pe.call(he,_e.replace(z,"")+";"))&&Re.name&&(Re="ing as "+Re.name+((Re=Re.version)?" "+Re:""),z.test(Oe)?(/\bIE\b/.test(Re)&&Ke=="Mac OS"&&(Ke=null),Re="identify"+Re):(Re="mask"+Re,ze?Oe=fe(ze.replace(/([a-z])([A-Z])/g,"$1 $2")):Oe="Opera",/\bIE\b/.test(Re)&&(Ke=null),Qe||(Ge=null)),Le=["Presto"],Me.push(Re));(Re=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(_e)||0)[1])&&(Re=[parseFloat(Re.replace(/\.(\d)$/,".0$1")),Re],Oe=="Safari"&&Re[1].slice(-1)=="+"?(Oe="WebKit Nightly",Be="alpha",Ge=Re[1].slice(0,-1)):(Ge==Re[1]||Ge==(Re[2]=(/\bSafari\/([\d.]+\+?)/i.exec(_e)||0)[1]))&&(Ge=null),Re[1]=(/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(_e)||0)[1],Re[0]==537.36&&Re[2]==537.36&&parseFloat(Re[1])>=28&&Le=="WebKit"&&(Le=["Blink"]),!Qe||!Ne&&!Re[1]?(Le&&(Le[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")):(Le&&(Le[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:Le!="Blink"?"27":"28")),Le&&(Le[1]+=" "+(Re+=typeof Re=="number"?".x":/[.+]/.test(Re)?"":"+")),Oe=="Safari"&&(!Ge||parseInt(Ge)>45)?Ge=Re:Oe=="Chrome"&&/\bHeadlessChrome/i.test(_e)&&Me.unshift("headless")),Oe=="Opera"&&(Re=/\bzbov|zvav$/.exec(Ke))?(Oe+=" ",Me.unshift("desktop mode"),Re=="zvav"?(Oe+="Mini",Ge=null):Oe+="Mobile",Ke=Ke.replace(RegExp(" *"+Re+"$"),"")):Oe=="Safari"&&/\bChrome\b/.exec(Le&&Le[1])?(Me.unshift("desktop mode"),Oe="Chrome Mobile",Ge=null,/\bOS X\b/.test(Ke)?(Ae="Apple",Ke="iOS 4.3+"):Ke=null):/\bSRWare Iron\b/.test(Oe)&&!Ge&&(Ge=pt("Chrome")),Ge&&Ge.indexOf(Re=/[\d.]+$/.exec(Ke))==0&&_e.indexOf("/"+Re+"-")>-1&&(Ke=be(Ke.replace(Re,""))),Ke&&Ke.indexOf(Oe)!=-1&&!RegExp(Oe+" OS").test(Ke)&&(Ke=Ke.replace(RegExp(" *"+Se(Oe)+" *"),"")),Le&&!/\b(?:Avant|Nook)\b/.test(Oe)&&(/Browser|Lunascape|Maxthon/.test(Oe)||Oe!="Safari"&&/^iOS/.test(Ke)&&/\bSafari\b/.test(Le[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(Oe)&&Le[1])&&(Re=Le[Le.length-1])&&Me.push(Re),Me.length&&(Me=["("+Me.join("; ")+")"]),Ae&&xe&&xe.indexOf(Ae)<0&&Me.push("on "+Ae),xe&&Me.push((/^on /.test(Me[Me.length-1])?"":"on ")+xe),Ke&&(Re=/ ([\d.+]+)$/.exec(Ke),De=Re&&Ke.charAt(Ke.length-Re[0].length-1)=="/",Ke={architecture:32,family:Re&&!De?Ke.replace(Re[0],""):Ke,version:Re?Re[1]:null,toString:function(){var rt=this.version;return this.family+(rt&&!De?" "+rt:"")+(this.architecture==64?" 64-bit":"")}}),(Re=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(it))&&!/\bi686\b/i.test(it)?(Ke&&(Ke.architecture=64,Ke.family=Ke.family.replace(RegExp(" *"+Re),"")),Oe&&(/\bWOW64\b/i.test(_e)||Qe&&/\w(?:86|32)$/.test(Ie.cpuClass||Ie.platform)&&!/\bWin64; x64\b/i.test(_e))&&Me.unshift("32-bit")):Ke&&/^OS X/.test(Ke.family)&&Oe=="Chrome"&&parseFloat(Ge)>=39&&(Ke.architecture=64),_e||(_e=null);var vt={};return vt.description=_e,vt.layout=Le&&Le[0],vt.manufacturer=Ae,vt.name=Oe,vt.prerelease=Be,vt.product=xe,vt.ua=_e,vt.version=Oe&&Ge,vt.os=Ke||{architecture:null,family:null,version:null,toString:function(){return"null"}},vt.parse=Pe,vt.toString=st,vt.version&&Me.unshift(Ge),vt.name&&Me.unshift(Oe),Ke&&Oe&&!(Ke==String(Ke).split(" ")[0]&&(Ke==Oe.split(" ")[0]||xe))&&Me.push(xe?"("+Ke+")":"on "+Ke),Me.length&&(vt.description=Me.join(" ")),vt}var Te=Pe();typeof ye=="function"&&typeof ye.amd=="object"&&ye.amd?(se.platform=Te,ye(function(){return Te})):ue&&ie?he(Te,function(_e,je){ue[je]=_e}):se.platform=Te}).call(this)}).call(this)}).call(this,typeof ft!="undefined"?ft:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],380:[function(x,pe,de){(function(ae){(function(){"use strict";typeof ae=="undefined"||!ae.version||ae.version.indexOf("v0.")===0||ae.version.indexOf("v1.")===0&&ae.version.indexOf("v1.8.")!==0?pe.exports={nextTick:ne}:pe.exports=ae;function ne(se,ce,ue,ie){if(typeof se!="function")throw new TypeError('"callback" argument must be a function');var oe=arguments.length,re,z;switch(oe){case 0:case 1:return ae.nextTick(se);case 2:return ae.nextTick(function(){se.call(null,ce)});case 3:return ae.nextTick(function(){se.call(null,ce,ue)});case 4:return ae.nextTick(function(){se.call(null,ce,ue,ie)});default:for(re=new Array(oe-1),z=0;z<re.length;)re[z++]=arguments[z];return ae.nextTick(function(){se.apply(null,re)})}}}).call(this)}).call(this,x("_process"))},{_process:467}],381:[function(x,pe,de){var ae=pe.exports={},ne,se;function ce(){throw new Error("setTimeout has not been defined")}function ue(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?ne=setTimeout:ne=ce}catch(le){ne=ce}try{typeof clearTimeout=="function"?se=clearTimeout:se=ue}catch(le){se=ue}})();function ie(le){if(ne===setTimeout)return setTimeout(le,0);if((ne===ce||!ne)&&setTimeout)return ne=setTimeout,setTimeout(le,0);try{return ne(le,0)}catch(fe){try{return ne.call(null,le,0)}catch(he){return ne.call(this,le,0)}}}function oe(le){if(se===clearTimeout)return clearTimeout(le);if((se===ue||!se)&&clearTimeout)return se=clearTimeout,clearTimeout(le);try{return se(le)}catch(fe){try{return se.call(null,le)}catch(he){return se.call(this,le)}}}var re=[],z=!1,a,y=-1;function E(){!z||!a||(z=!1,a.length?re=a.concat(re):y=-1,re.length&&b())}function b(){if(!z){var le=ie(E);z=!0;for(var fe=re.length;fe;){for(a=re,re=[];++y<fe;)a&&a[y].run();y=-1,fe=re.length}a=null,z=!1,oe(le)}}ae.nextTick=function(le){var fe=new Array(arguments.length-1);if(arguments.length>1)for(var he=1;he<arguments.length;he++)fe[he-1]=arguments[he];re.push(new ee(le,fe)),re.length===1&&!z&&ie(b)};function ee(le,fe){this.fun=le,this.array=fe}ee.prototype.run=function(){this.fun.apply(null,this.array)},ae.title="browser",ae.browser=!0,ae.env={},ae.argv=[],ae.version="",ae.versions={};function te(){}ae.on=te,ae.addListener=te,ae.once=te,ae.off=te,ae.removeListener=te,ae.removeAllListeners=te,ae.emit=te,ae.prependListener=te,ae.prependOnceListener=te,ae.listeners=function(le){return[]},ae.binding=function(le){throw new Error("process.binding is not supported")},ae.cwd=function(){return"/"},ae.chdir=function(le){throw new Error("process.chdir is not supported")},ae.umask=function(){return 0}},{}],382:[function(x,pe,de){(function(ae){(function(){(function(ne){var se=typeof de=="object"&&de&&!de.nodeType&&de,ce=typeof pe=="object"&&pe&&!pe.nodeType&&pe,ue=typeof ae=="object"&&ae;(ue.global===ue||ue.window===ue||ue.self===ue)&&(ne=ue);var ie,oe=2147483647,re=36,z=1,a=26,y=38,E=700,b=72,ee=128,te="-",le=/^xn--/,fe=/[^\x20-\x7E]/,he=/[\x2E\u3002\uFF0E\uFF61]/g,me={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},ge=re-z,Se=Math.floor,ve=String.fromCharCode,be;function Pe(Ye){throw new RangeError(me[Ye])}function Te(Ye,We){for(var Fe=Ye.length,Ue=[];Fe--;)Ue[Fe]=We(Ye[Fe]);return Ue}function _e(Ye,We){var Fe=Ye.split("@"),Ue="";Fe.length>1&&(Ue=Fe[0]+"@",Ye=Fe[1]),Ye=Ye.replace(he,".");var at=Ye.split("."),Xe=Te(at,We).join(".");return Ue+Xe}function je(Ye){for(var We=[],Fe=0,Ue=Ye.length,at,Xe;Fe<Ue;)at=Ye.charCodeAt(Fe++),at>=55296&&at<=56319&&Fe<Ue?(Xe=Ye.charCodeAt(Fe++),(Xe&64512)==56320?We.push(((at&1023)<<10)+(Xe&1023)+65536):(We.push(at),Fe--)):We.push(at);return We}function Ce(Ye){return Te(Ye,function(We){var Fe="";return We>65535&&(We-=65536,Fe+=ve(We>>>10&1023|55296),We=56320|We&1023),Fe+=ve(We),Fe}).join("")}function Ie(Ye){return Ye-48<10?Ye-22:Ye-65<26?Ye-65:Ye-97<26?Ye-97:re}function ke(Ye,We){return Ye+22+75*(Ye<26)-((We!=0)<<5)}function $e(Ye,We,Fe){var Ue=0;for(Ye=Fe?Se(Ye/E):Ye>>1,Ye+=Se(Ye/We);Ye>ge*a>>1;Ue+=re)Ye=Se(Ye/ge);return Se(Ue+(ge+1)*Ye/(Ye+y))}function Ne(Ye){var We=[],Fe=Ye.length,Ue,at=0,Xe=ee,ut=b,Ze,ze,Re,it,Me,Be,Qe,Ge,De;for(Ze=Ye.lastIndexOf(te),Ze<0&&(Ze=0),ze=0;ze<Ze;++ze)Ye.charCodeAt(ze)>=128&&Pe("not-basic"),We.push(Ye.charCodeAt(ze));for(Re=Ze>0?Ze+1:0;Re<Fe;){for(it=at,Me=1,Be=re;Re>=Fe&&Pe("invalid-input"),Qe=Ie(Ye.charCodeAt(Re++)),(Qe>=re||Qe>Se((oe-at)/Me))&&Pe("overflow"),at+=Qe*Me,Ge=Be<=ut?z:Be>=ut+a?a:Be-ut,!(Qe<Ge);Be+=re)De=re-Ge,Me>Se(oe/De)&&Pe("overflow"),Me*=De;Ue=We.length+1,ut=$e(at-it,Ue,it==0),Se(at/Ue)>oe-Xe&&Pe("overflow"),Xe+=Se(at/Ue),at%=Ue,We.splice(at++,0,Xe)}return Ce(We)}function nt(Ye){var We,Fe,Ue,at,Xe,ut,Ze,ze,Re,it,Me,Be=[],Qe,Ge,De,Le;for(Ye=je(Ye),Qe=Ye.length,We=ee,Fe=0,Xe=b,ut=0;ut<Qe;++ut)Me=Ye[ut],Me<128&&Be.push(ve(Me));for(Ue=at=Be.length,at&&Be.push(te);Ue<Qe;){for(Ze=oe,ut=0;ut<Qe;++ut)Me=Ye[ut],Me>=We&&Me<Ze&&(Ze=Me);for(Ge=Ue+1,Ze-We>Se((oe-Fe)/Ge)&&Pe("overflow"),Fe+=(Ze-We)*Ge,We=Ze,ut=0;ut<Qe;++ut)if(Me=Ye[ut],Me<We&&++Fe>oe&&Pe("overflow"),Me==We){for(ze=Fe,Re=re;it=Re<=Xe?z:Re>=Xe+a?a:Re-Xe,!(ze<it);Re+=re)Le=ze-it,De=re-it,Be.push(ve(ke(it+Le%De,0))),ze=Se(Le/De);Be.push(ve(ke(ze,0))),Xe=$e(Fe,Ge,Ue==at),Fe=0,++Ue}++Fe,++We}return Be.join("")}function qe(Ye){return _e(Ye,function(We){return le.test(We)?Ne(We.slice(4).toLowerCase()):We})}function Je(Ye){return _e(Ye,function(We){return fe.test(We)?"xn--"+nt(We):We})}if(ie={version:"1.4.1",ucs2:{decode:je,encode:Ce},decode:Ne,encode:nt,toASCII:Je,toUnicode:qe},typeof ye=="function"&&typeof ye.amd=="object"&&ye.amd)ye("punycode",function(){return ie});else if(se&&ce)if(pe.exports==se)ce.exports=ie;else for(be in ie)ie.hasOwnProperty(be)&&(se[be]=ie[be]);else ne.punycode=ie})(this)}).call(this)}).call(this,typeof ft!="undefined"?ft:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],383:[function(x,pe,de){"use strict";function ae(se,ce){return Object.prototype.hasOwnProperty.call(se,ce)}pe.exports=function(se,ce,ue,ie){ce=ce||"&",ue=ue||"=";var oe={};if(typeof se!="string"||se.length===0)return oe;var re=/\+/g;se=se.split(ce);var z=1e3;ie&&typeof ie.maxKeys=="number"&&(z=ie.maxKeys);var a=se.length;z>0&&a>z&&(a=z);for(var y=0;y<a;++y){var E=se[y].replace(re,"%20"),b=E.indexOf(ue),ee,te,le,fe;b>=0?(ee=E.substr(0,b),te=E.substr(b+1)):(ee=E,te=""),le=decodeURIComponent(ee),fe=decodeURIComponent(te),ae(oe,le)?ne(oe[le])?oe[le].push(fe):oe[le]=[oe[le],fe]:oe[le]=fe}return oe};var ne=Array.isArray||function(se){return Object.prototype.toString.call(se)==="[object Array]"}},{}],384:[function(x,pe,de){"use strict";var ae=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,ie,oe,re){return ie=ie||"&",oe=oe||"=",ue===null&&(ue=void 0),typeof ue=="object"?se(ce(ue),function(z){var a=encodeURIComponent(ae(z))+oe;return ne(ue[z])?se(ue[z],function(y){return a+encodeURIComponent(ae(y))}).join(ie):a+encodeURIComponent(ae(ue[z]))}).join(ie):re?encodeURIComponent(ae(re))+oe+encodeURIComponent(ae(ue)):""};var ne=Array.isArray||function(ue){return Object.prototype.toString.call(ue)==="[object Array]"};function se(ue,ie){if(ue.map)return ue.map(ie);for(var oe=[],re=0;re<ue.length;re++)oe.push(ie(ue[re],re));return oe}var ce=Object.keys||function(ue){var ie=[];for(var oe in ue)Object.prototype.hasOwnProperty.call(ue,oe)&&ie.push(oe);return ie}},{}],385:[function(x,pe,de){"use strict";de.decode=de.parse=x("./decode"),de.encode=de.stringify=x("./encode")},{"./decode":383,"./encode":384}],386:[function(x,pe,de){"use strict";var ae=x("process-nextick-args"),ne=Object.keys||function(E){var b=[];for(var ee in E)b.push(ee);return b};pe.exports=z;var se=Object.create(x("core-util-is"));se.inherits=x("inherits");var ce=x("./_stream_readable"),ue=x("./_stream_writable");se.inherits(z,ce);for(var ie=ne(ue.prototype),oe=0;oe<ie.length;oe++){var re=ie[oe];z.prototype[re]||(z.prototype[re]=ue.prototype[re])}function z(E){if(!(this instanceof z))return new z(E);ce.call(this,E),ue.call(this,E),E&&E.readable===!1&&(this.readable=!1),E&&E.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,E&&E.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",a)}Object.defineProperty(z.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function a(){this.allowHalfOpen||this._writableState.ended||ae.nextTick(y,this)}function y(E){E.end()}Object.defineProperty(z.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(E){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=E,this._writableState.destroyed=E)}}),z.prototype._destroy=function(E,b){this.push(null),this.end(),ae.nextTick(b,E)}},{"./_stream_readable":388,"./_stream_writable":390,"core-util-is":341,inherits:364,"process-nextick-args":380}],387:[function(x,pe,de){"use strict";pe.exports=se;var ae=x("./_stream_transform"),ne=Object.create(x("core-util-is"));ne.inherits=x("inherits"),ne.inherits(se,ae);function se(ce){if(!(this instanceof se))return new se(ce);ae.call(this,ce)}se.prototype._transform=function(ce,ue,ie){ie(null,ce)}},{"./_stream_transform":389,"core-util-is":341,inherits:364}],388:[function(x,pe,de){(function(ae,ne){(function(){"use strict";var se=x("process-nextick-args");pe.exports=ve;var ce=x("isarray"),ue;ve.ReadableState=Se;var ie=x("events").EventEmitter,oe=function(Me,Be){return Me.listeners(Be).length},re=x("./internal/streams/stream"),z=x("safe-buffer").Buffer,a=ne.Uint8Array||function(){};function y(Me){return z.from(Me)}function E(Me){return z.isBuffer(Me)||Me instanceof a}var b=Object.create(x("core-util-is"));b.inherits=x("inherits");var ee=x("util"),te=void 0;ee&&ee.debuglog?te=ee.debuglog("stream"):te=function(){};var le=x("./internal/streams/BufferList"),fe=x("./internal/streams/destroy"),he;b.inherits(ve,re);var me=["error","close","destroy","pause","resume"];function ge(Me,Be,Qe){if(typeof Me.prependListener=="function")return Me.prependListener(Be,Qe);!Me._events||!Me._events[Be]?Me.on(Be,Qe):ce(Me._events[Be])?Me._events[Be].unshift(Qe):Me._events[Be]=[Qe,Me._events[Be]]}function Se(Me,Be){ue=ue||x("./_stream_duplex"),Me=Me||{};var Qe=Be instanceof ue;this.objectMode=!!Me.objectMode,Qe&&(this.objectMode=this.objectMode||!!Me.readableObjectMode);var Ge=Me.highWaterMark,De=Me.readableHighWaterMark,Le=this.objectMode?16:16*1024;Ge||Ge===0?this.highWaterMark=Ge:Qe&&(De||De===0)?this.highWaterMark=De:this.highWaterMark=Le,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new le,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=Me.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,Me.encoding&&(he||(he=x("string_decoder/").StringDecoder),this.decoder=new he(Me.encoding),this.encoding=Me.encoding)}function ve(Me){if(ue=ue||x("./_stream_duplex"),!(this instanceof ve))return new ve(Me);this._readableState=new Se(Me,this),this.readable=!0,Me&&(typeof Me.read=="function"&&(this._read=Me.read),typeof Me.destroy=="function"&&(this._destroy=Me.destroy)),re.call(this)}Object.defineProperty(ve.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(Me){this._readableState&&(this._readableState.destroyed=Me)}}),ve.prototype.destroy=fe.destroy,ve.prototype._undestroy=fe.undestroy,ve.prototype._destroy=function(Me,Be){this.push(null),Be(Me)},ve.prototype.push=function(Me,Be){var Qe=this._readableState,Ge;return Qe.objectMode?Ge=!0:typeof Me=="string"&&(Be=Be||Qe.defaultEncoding,Be!==Qe.encoding&&(Me=z.from(Me,Be),Be=""),Ge=!0),be(this,Me,Be,!1,Ge)},ve.prototype.unshift=function(Me){return be(this,Me,null,!0,!1)};function be(Me,Be,Qe,Ge,De){var Le=Me._readableState;if(Be===null)Le.reading=!1,ke(Me,Le);else{var Oe;De||(Oe=Te(Le,Be)),Oe?Me.emit("error",Oe):Le.objectMode||Be&&Be.length>0?(typeof Be!="string"&&!Le.objectMode&&Object.getPrototypeOf(Be)!==z.prototype&&(Be=y(Be)),Ge?Le.endEmitted?Me.emit("error",new Error("stream.unshift() after end event")):Pe(Me,Le,Be,!0):Le.ended?Me.emit("error",new Error("stream.push() after EOF")):(Le.reading=!1,Le.decoder&&!Qe?(Be=Le.decoder.write(Be),Le.objectMode||Be.length!==0?Pe(Me,Le,Be,!1):nt(Me,Le)):Pe(Me,Le,Be,!1))):Ge||(Le.reading=!1)}return _e(Le)}function Pe(Me,Be,Qe,Ge){Be.flowing&&Be.length===0&&!Be.sync?(Me.emit("data",Qe),Me.read(0)):(Be.length+=Be.objectMode?1:Qe.length,Ge?Be.buffer.unshift(Qe):Be.buffer.push(Qe),Be.needReadable&&$e(Me)),nt(Me,Be)}function Te(Me,Be){var Qe;return!E(Be)&&typeof Be!="string"&&Be!==void 0&&!Me.objectMode&&(Qe=new TypeError("Invalid non-string/buffer chunk")),Qe}function _e(Me){return!Me.ended&&(Me.needReadable||Me.length<Me.highWaterMark||Me.length===0)}ve.prototype.isPaused=function(){return this._readableState.flowing===!1},ve.prototype.setEncoding=function(Me){return he||(he=x("string_decoder/").StringDecoder),this._readableState.decoder=new he(Me),this._readableState.encoding=Me,this};var je=8388608;function Ce(Me){return Me>=je?Me=je:(Me--,Me|=Me>>>1,Me|=Me>>>2,Me|=Me>>>4,Me|=Me>>>8,Me|=Me>>>16,Me++),Me}function Ie(Me,Be){return Me<=0||Be.length===0&&Be.ended?0:Be.objectMode?1:Me!==Me?Be.flowing&&Be.length?Be.buffer.head.data.length:Be.length:(Me>Be.highWaterMark&&(Be.highWaterMark=Ce(Me)),Me<=Be.length?Me:Be.ended?Be.length:(Be.needReadable=!0,0))}ve.prototype.read=function(Me){te("read",Me),Me=parseInt(Me,10);var Be=this._readableState,Qe=Me;if(Me!==0&&(Be.emittedReadable=!1),Me===0&&Be.needReadable&&(Be.length>=Be.highWaterMark||Be.ended))return te("read: emitReadable",Be.length,Be.ended),Be.length===0&&Be.ended?ze(this):$e(this),null;if(Me=Ie(Me,Be),Me===0&&Be.ended)return Be.length===0&&ze(this),null;var Ge=Be.needReadable;te("need readable",Ge),(Be.length===0||Be.length-Me<Be.highWaterMark)&&(Ge=!0,te("length less than watermark",Ge)),Be.ended||Be.reading?(Ge=!1,te("reading or ended",Ge)):Ge&&(te("do read"),Be.reading=!0,Be.sync=!0,Be.length===0&&(Be.needReadable=!0),this._read(Be.highWaterMark),Be.sync=!1,Be.reading||(Me=Ie(Qe,Be)));var De;return Me>0?De=at(Me,Be):De=null,De===null?(Be.needReadable=!0,Me=0):Be.length-=Me,Be.length===0&&(Be.ended||(Be.needReadable=!0),Qe!==Me&&Be.ended&&ze(this)),De!==null&&this.emit("data",De),De};function ke(Me,Be){if(!Be.ended){if(Be.decoder){var Qe=Be.decoder.end();Qe&&Qe.length&&(Be.buffer.push(Qe),Be.length+=Be.objectMode?1:Qe.length)}Be.ended=!0,$e(Me)}}function $e(Me){var Be=Me._readableState;Be.needReadable=!1,Be.emittedReadable||(te("emitReadable",Be.flowing),Be.emittedReadable=!0,Be.sync?se.nextTick(Ne,Me):Ne(Me))}function Ne(Me){te("emit readable"),Me.emit("readable"),Ue(Me)}function nt(Me,Be){Be.readingMore||(Be.readingMore=!0,se.nextTick(qe,Me,Be))}function qe(Me,Be){for(var Qe=Be.length;!Be.reading&&!Be.flowing&&!Be.ended&&Be.length<Be.highWaterMark&&(te("maybeReadMore read 0"),Me.read(0),Qe!==Be.length);)Qe=Be.length;Be.readingMore=!1}ve.prototype._read=function(Me){this.emit("error",new Error("_read() is not implemented"))},ve.prototype.pipe=function(Me,Be){var Qe=this,Ge=this._readableState;switch(Ge.pipesCount){case 0:Ge.pipes=Me;break;case 1:Ge.pipes=[Ge.pipes,Me];break;default:Ge.pipes.push(Me);break}Ge.pipesCount+=1,te("pipe count=%d opts=%j",Ge.pipesCount,Be);var De=(!Be||Be.end!==!1)&&Me!==ae.stdout&&Me!==ae.stderr,Le=De?xe:st;Ge.endEmitted?se.nextTick(Le):Qe.once("end",Le),Me.on("unpipe",Oe);function Oe(vt,rt){te("onunpipe"),vt===Qe&&rt&&rt.hasUnpiped===!1&&(rt.hasUnpiped=!0,tt())}function xe(){te("onend"),Me.end()}var Ae=Je(Qe);Me.on("drain",Ae);var Ke=!1;function tt(){te("cleanup"),Me.removeListener("close",lt),Me.removeListener("finish",pt),Me.removeListener("drain",Ae),Me.removeListener("error",mt),Me.removeListener("unpipe",Oe),Qe.removeListener("end",xe),Qe.removeListener("end",st),Qe.removeListener("data",ot),Ke=!0,Ge.awaitDrain&&(!Me._writableState||Me._writableState.needDrain)&&Ae()}var He=!1;Qe.on("data",ot);function ot(vt){te("ondata"),He=!1;var rt=Me.write(vt);rt===!1&&!He&&((Ge.pipesCount===1&&Ge.pipes===Me||Ge.pipesCount>1&&it(Ge.pipes,Me)!==-1)&&!Ke&&(te("false write response, pause",Qe._readableState.awaitDrain),Qe._readableState.awaitDrain++,He=!0),Qe.pause())}function mt(vt){te("onerror",vt),st(),Me.removeListener("error",mt),oe(Me,"error")===0&&Me.emit("error",vt)}ge(Me,"error",mt);function lt(){Me.removeListener("finish",pt),st()}Me.once("close",lt);function pt(){te("onfinish"),Me.removeListener("close",lt),st()}Me.once("finish",pt);function st(){te("unpipe"),Qe.unpipe(Me)}return Me.emit("pipe",Qe),Ge.flowing||(te("pipe resume"),Qe.resume()),Me};function Je(Me){return function(){var Be=Me._readableState;te("pipeOnDrain",Be.awaitDrain),Be.awaitDrain&&Be.awaitDrain--,Be.awaitDrain===0&&oe(Me,"data")&&(Be.flowing=!0,Ue(Me))}}ve.prototype.unpipe=function(Me){var Be=this._readableState,Qe={hasUnpiped:!1};if(Be.pipesCount===0)return this;if(Be.pipesCount===1)return Me&&Me!==Be.pipes?this:(Me||(Me=Be.pipes),Be.pipes=null,Be.pipesCount=0,Be.flowing=!1,Me&&Me.emit("unpipe",this,Qe),this);if(!Me){var Ge=Be.pipes,De=Be.pipesCount;Be.pipes=null,Be.pipesCount=0,Be.flowing=!1;for(var Le=0;Le<De;Le++)Ge[Le].emit("unpipe",this,Qe);return this}var Oe=it(Be.pipes,Me);return Oe===-1?this:(Be.pipes.splice(Oe,1),Be.pipesCount-=1,Be.pipesCount===1&&(Be.pipes=Be.pipes[0]),Me.emit("unpipe",this,Qe),this)},ve.prototype.on=function(Me,Be){var Qe=re.prototype.on.call(this,Me,Be);if(Me==="data")this._readableState.flowing!==!1&&this.resume();else if(Me==="readable"){var Ge=this._readableState;!Ge.endEmitted&&!Ge.readableListening&&(Ge.readableListening=Ge.needReadable=!0,Ge.emittedReadable=!1,Ge.reading?Ge.length&&$e(this):se.nextTick(Ye,this))}return Qe},ve.prototype.addListener=ve.prototype.on;function Ye(Me){te("readable nexttick read 0"),Me.read(0)}ve.prototype.resume=function(){var Me=this._readableState;return Me.flowing||(te("resume"),Me.flowing=!0,We(this,Me)),this};function We(Me,Be){Be.resumeScheduled||(Be.resumeScheduled=!0,se.nextTick(Fe,Me,Be))}function Fe(Me,Be){Be.reading||(te("resume read 0"),Me.read(0)),Be.resumeScheduled=!1,Be.awaitDrain=0,Me.emit("resume"),Ue(Me),Be.flowing&&!Be.reading&&Me.read(0)}ve.prototype.pause=function(){return te("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(te("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function Ue(Me){var Be=Me._readableState;for(te("flow",Be.flowing);Be.flowing&&Me.read()!==null;);}ve.prototype.wrap=function(Me){var Be=this,Qe=this._readableState,Ge=!1;Me.on("end",function(){if(te("wrapped end"),Qe.decoder&&!Qe.ended){var Oe=Qe.decoder.end();Oe&&Oe.length&&Be.push(Oe)}Be.push(null)}),Me.on("data",function(Oe){if(te("wrapped data"),Qe.decoder&&(Oe=Qe.decoder.write(Oe)),!(Qe.objectMode&&Oe==null)&&!(!Qe.objectMode&&(!Oe||!Oe.length))){var xe=Be.push(Oe);xe||(Ge=!0,Me.pause())}});for(var De in Me)this[De]===void 0&&typeof Me[De]=="function"&&(this[De]=function(Oe){return function(){return Me[Oe].apply(Me,arguments)}}(De));for(var Le=0;Le<me.length;Le++)Me.on(me[Le],this.emit.bind(this,me[Le]));return this._read=function(Oe){te("wrapped _read",Oe),Ge&&(Ge=!1,Me.resume())},this},Object.defineProperty(ve.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),ve._fromList=at;function at(Me,Be){if(Be.length===0)return null;var Qe;return Be.objectMode?Qe=Be.buffer.shift():!Me||Me>=Be.length?(Be.decoder?Qe=Be.buffer.join(""):Be.buffer.length===1?Qe=Be.buffer.head.data:Qe=Be.buffer.concat(Be.length),Be.buffer.clear()):Qe=Xe(Me,Be.buffer,Be.decoder),Qe}function Xe(Me,Be,Qe){var Ge;return Me<Be.head.data.length?(Ge=Be.head.data.slice(0,Me),Be.head.data=Be.head.data.slice(Me)):Me===Be.head.data.length?Ge=Be.shift():Ge=Qe?ut(Me,Be):Ze(Me,Be),Ge}function ut(Me,Be){var Qe=Be.head,Ge=1,De=Qe.data;for(Me-=De.length;Qe=Qe.next;){var Le=Qe.data,Oe=Me>Le.length?Le.length:Me;if(Oe===Le.length?De+=Le:De+=Le.slice(0,Me),Me-=Oe,Me===0){Oe===Le.length?(++Ge,Qe.next?Be.head=Qe.next:Be.head=Be.tail=null):(Be.head=Qe,Qe.data=Le.slice(Oe));break}++Ge}return Be.length-=Ge,De}function Ze(Me,Be){var Qe=z.allocUnsafe(Me),Ge=Be.head,De=1;for(Ge.data.copy(Qe),Me-=Ge.data.length;Ge=Ge.next;){var Le=Ge.data,Oe=Me>Le.length?Le.length:Me;if(Le.copy(Qe,Qe.length-Me,0,Oe),Me-=Oe,Me===0){Oe===Le.length?(++De,Ge.next?Be.head=Ge.next:Be.head=Be.tail=null):(Be.head=Ge,Ge.data=Le.slice(Oe));break}++De}return Be.length-=De,Qe}function ze(Me){var Be=Me._readableState;if(Be.length>0)throw new Error('"endReadable()" called on non-empty stream');Be.endEmitted||(Be.ended=!0,se.nextTick(Re,Be,Me))}function Re(Me,Be){!Me.endEmitted&&Me.length===0&&(Me.endEmitted=!0,Be.readable=!1,Be.emit("end"))}function it(Me,Be){for(var Qe=0,Ge=Me.length;Qe<Ge;Qe++)if(Me[Qe]===Be)return Qe;return-1}}).call(this)}).call(this,x("_process"),typeof ft!="undefined"?ft:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./_stream_duplex":386,"./internal/streams/BufferList":391,"./internal/streams/destroy":392,"./internal/streams/stream":393,_process:467,"core-util-is":341,events:344,inherits:364,isarray:370,"process-nextick-args":380,"safe-buffer":396,"string_decoder/":413,util:89}],389:[function(x,pe,de){"use strict";pe.exports=ce;var ae=x("./_stream_duplex"),ne=Object.create(x("core-util-is"));ne.inherits=x("inherits"),ne.inherits(ce,ae);function se(oe,re){var z=this._transformState;z.transforming=!1;var a=z.writecb;if(!a)return this.emit("error",new Error("write callback called multiple times"));z.writechunk=null,z.writecb=null,re!=null&&this.push(re),a(oe);var y=this._readableState;y.reading=!1,(y.needReadable||y.length<y.highWaterMark)&&this._read(y.highWaterMark)}function ce(oe){if(!(this instanceof ce))return new ce(oe);ae.call(this,oe),this._transformState={afterTransform:se.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,oe&&(typeof oe.transform=="function"&&(this._transform=oe.transform),typeof oe.flush=="function"&&(this._flush=oe.flush)),this.on("prefinish",ue)}function ue(){var oe=this;typeof this._flush=="function"?this._flush(function(re,z){ie(oe,re,z)}):ie(this,null,null)}ce.prototype.push=function(oe,re){return this._transformState.needTransform=!1,ae.prototype.push.call(this,oe,re)},ce.prototype._transform=function(oe,re,z){throw new Error("_transform() is not implemented")},ce.prototype._write=function(oe,re,z){var a=this._transformState;if(a.writecb=z,a.writechunk=oe,a.writeencoding=re,!a.transforming){var y=this._readableState;(a.needTransform||y.needReadable||y.length<y.highWaterMark)&&this._read(y.highWaterMark)}},ce.prototype._read=function(oe){var re=this._transformState;re.writechunk!==null&&re.writecb&&!re.transforming?(re.transforming=!0,this._transform(re.writechunk,re.writeencoding,re.afterTransform)):re.needTransform=!0},ce.prototype._destroy=function(oe,re){var z=this;ae.prototype._destroy.call(this,oe,function(a){re(a),z.emit("close")})};function ie(oe,re,z){if(re)return oe.emit("error",re);if(z!=null&&oe.push(z),oe._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(oe._transformState.transforming)throw new Error("Calling transform done when still transforming");return oe.push(null)}},{"./_stream_duplex":386,"core-util-is":341,inherits:364}],390:[function(x,pe,de){(function(ae,ne,se){(function(){"use strict";var ce=x("process-nextick-args");pe.exports=ge;function ue(Fe,Ue,at){this.chunk=Fe,this.encoding=Ue,this.callback=at,this.next=null}function ie(Fe){var Ue=this;this.next=null,this.entry=null,this.finish=function(){We(Ue,Fe)}}var oe=!ae.browser&&["v0.10","v0.9."].indexOf(ae.version.slice(0,5))>-1?se:ce.nextTick,re;ge.WritableState=he;var z=Object.create(x("core-util-is"));z.inherits=x("inherits");var a={deprecate:x("util-deprecate")},y=x("./internal/streams/stream"),E=x("safe-buffer").Buffer,b=ne.Uint8Array||function(){};function ee(Fe){return E.from(Fe)}function te(Fe){return E.isBuffer(Fe)||Fe instanceof b}var le=x("./internal/streams/destroy");z.inherits(ge,y);function fe(){}function he(Fe,Ue){re=re||x("./_stream_duplex"),Fe=Fe||{};var at=Ue instanceof re;this.objectMode=!!Fe.objectMode,at&&(this.objectMode=this.objectMode||!!Fe.writableObjectMode);var Xe=Fe.highWaterMark,ut=Fe.writableHighWaterMark,Ze=this.objectMode?16:16*1024;Xe||Xe===0?this.highWaterMark=Xe:at&&(ut||ut===0)?this.highWaterMark=ut:this.highWaterMark=Ze,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 ze=Fe.decodeStrings===!1;this.decodeStrings=!ze,this.defaultEncoding=Fe.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 ie(this)}he.prototype.getBuffer=function(){for(var Ue=this.bufferedRequest,at=[];Ue;)at.push(Ue),Ue=Ue.next;return at},function(){try{Object.defineProperty(he.prototype,"buffer",{get:a.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(Fe){}}();var me;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(me=Function.prototype[Symbol.hasInstance],Object.defineProperty(ge,Symbol.hasInstance,{value:function(Fe){return me.call(this,Fe)?!0:this!==ge?!1:Fe&&Fe._writableState instanceof he}})):me=function(Fe){return Fe instanceof this};function ge(Fe){if(re=re||x("./_stream_duplex"),!me.call(ge,this)&&!(this instanceof re))return new ge(Fe);this._writableState=new he(Fe,this),this.writable=!0,Fe&&(typeof Fe.write=="function"&&(this._write=Fe.write),typeof Fe.writev=="function"&&(this._writev=Fe.writev),typeof Fe.destroy=="function"&&(this._destroy=Fe.destroy),typeof Fe.final=="function"&&(this._final=Fe.final)),y.call(this)}ge.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function Se(Fe,Ue){var at=new Error("write after end");Fe.emit("error",at),ce.nextTick(Ue,at)}function ve(Fe,Ue,at,Xe){var ut=!0,Ze=!1;return at===null?Ze=new TypeError("May not write null values to stream"):typeof at!="string"&&at!==void 0&&!Ue.objectMode&&(Ze=new TypeError("Invalid non-string/buffer chunk")),Ze&&(Fe.emit("error",Ze),ce.nextTick(Xe,Ze),ut=!1),ut}ge.prototype.write=function(Fe,Ue,at){var Xe=this._writableState,ut=!1,Ze=!Xe.objectMode&&te(Fe);return Ze&&!E.isBuffer(Fe)&&(Fe=ee(Fe)),typeof Ue=="function"&&(at=Ue,Ue=null),Ze?Ue="buffer":Ue||(Ue=Xe.defaultEncoding),typeof at!="function"&&(at=fe),Xe.ended?Se(this,at):(Ze||ve(this,Xe,Fe,at))&&(Xe.pendingcb++,ut=Pe(this,Xe,Ze,Fe,Ue,at)),ut},ge.prototype.cork=function(){var Fe=this._writableState;Fe.corked++},ge.prototype.uncork=function(){var Fe=this._writableState;Fe.corked&&(Fe.corked--,!Fe.writing&&!Fe.corked&&!Fe.finished&&!Fe.bufferProcessing&&Fe.bufferedRequest&&$e(this,Fe))},ge.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 be(Fe,Ue,at){return!Fe.objectMode&&Fe.decodeStrings!==!1&&typeof Ue=="string"&&(Ue=E.from(Ue,at)),Ue}Object.defineProperty(ge.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Pe(Fe,Ue,at,Xe,ut,Ze){if(!at){var ze=be(Ue,Xe,ut);Xe!==ze&&(at=!0,ut="buffer",Xe=ze)}var Re=Ue.objectMode?1:Xe.length;Ue.length+=Re;var it=Ue.length<Ue.highWaterMark;if(it||(Ue.needDrain=!0),Ue.writing||Ue.corked){var Me=Ue.lastBufferedRequest;Ue.lastBufferedRequest={chunk:Xe,encoding:ut,isBuf:at,callback:Ze,next:null},Me?Me.next=Ue.lastBufferedRequest:Ue.bufferedRequest=Ue.lastBufferedRequest,Ue.bufferedRequestCount+=1}else Te(Fe,Ue,!1,Re,Xe,ut,Ze);return it}function Te(Fe,Ue,at,Xe,ut,Ze,ze){Ue.writelen=Xe,Ue.writecb=ze,Ue.writing=!0,Ue.sync=!0,at?Fe._writev(ut,Ue.onwrite):Fe._write(ut,Ze,Ue.onwrite),Ue.sync=!1}function _e(Fe,Ue,at,Xe,ut){--Ue.pendingcb,at?(ce.nextTick(ut,Xe),ce.nextTick(Je,Fe,Ue),Fe._writableState.errorEmitted=!0,Fe.emit("error",Xe)):(ut(Xe),Fe._writableState.errorEmitted=!0,Fe.emit("error",Xe),Je(Fe,Ue))}function je(Fe){Fe.writing=!1,Fe.writecb=null,Fe.length-=Fe.writelen,Fe.writelen=0}function Ce(Fe,Ue){var at=Fe._writableState,Xe=at.sync,ut=at.writecb;if(je(at),Ue)_e(Fe,at,Xe,Ue,ut);else{var Ze=Ne(at);!Ze&&!at.corked&&!at.bufferProcessing&&at.bufferedRequest&&$e(Fe,at),Xe?oe(Ie,Fe,at,Ze,ut):Ie(Fe,at,Ze,ut)}}function Ie(Fe,Ue,at,Xe){at||ke(Fe,Ue),Ue.pendingcb--,Xe(),Je(Fe,Ue)}function ke(Fe,Ue){Ue.length===0&&Ue.needDrain&&(Ue.needDrain=!1,Fe.emit("drain"))}function $e(Fe,Ue){Ue.bufferProcessing=!0;var at=Ue.bufferedRequest;if(Fe._writev&&at&&at.next){var Xe=Ue.bufferedRequestCount,ut=new Array(Xe),Ze=Ue.corkedRequestsFree;Ze.entry=at;for(var ze=0,Re=!0;at;)ut[ze]=at,at.isBuf||(Re=!1),at=at.next,ze+=1;ut.allBuffers=Re,Te(Fe,Ue,!0,Ue.length,ut,"",Ze.finish),Ue.pendingcb++,Ue.lastBufferedRequest=null,Ze.next?(Ue.corkedRequestsFree=Ze.next,Ze.next=null):Ue.corkedRequestsFree=new ie(Ue),Ue.bufferedRequestCount=0}else{for(;at;){var it=at.chunk,Me=at.encoding,Be=at.callback,Qe=Ue.objectMode?1:it.length;if(Te(Fe,Ue,!1,Qe,it,Me,Be),at=at.next,Ue.bufferedRequestCount--,Ue.writing)break}at===null&&(Ue.lastBufferedRequest=null)}Ue.bufferedRequest=at,Ue.bufferProcessing=!1}ge.prototype._write=function(Fe,Ue,at){at(new Error("_write() is not implemented"))},ge.prototype._writev=null,ge.prototype.end=function(Fe,Ue,at){var Xe=this._writableState;typeof Fe=="function"?(at=Fe,Fe=null,Ue=null):typeof Ue=="function"&&(at=Ue,Ue=null),Fe!=null&&this.write(Fe,Ue),Xe.corked&&(Xe.corked=1,this.uncork()),!Xe.ending&&!Xe.finished&&Ye(this,Xe,at)};function Ne(Fe){return Fe.ending&&Fe.length===0&&Fe.bufferedRequest===null&&!Fe.finished&&!Fe.writing}function nt(Fe,Ue){Fe._final(function(at){Ue.pendingcb--,at&&Fe.emit("error",at),Ue.prefinished=!0,Fe.emit("prefinish"),Je(Fe,Ue)})}function qe(Fe,Ue){!Ue.prefinished&&!Ue.finalCalled&&(typeof Fe._final=="function"?(Ue.pendingcb++,Ue.finalCalled=!0,ce.nextTick(nt,Fe,Ue)):(Ue.prefinished=!0,Fe.emit("prefinish")))}function Je(Fe,Ue){var at=Ne(Ue);return at&&(qe(Fe,Ue),Ue.pendingcb===0&&(Ue.finished=!0,Fe.emit("finish"))),at}function Ye(Fe,Ue,at){Ue.ending=!0,Je(Fe,Ue),at&&(Ue.finished?ce.nextTick(at):Fe.once("finish",at)),Ue.ended=!0,Fe.writable=!1}function We(Fe,Ue,at){var Xe=Fe.entry;for(Fe.entry=null;Xe;){var ut=Xe.callback;Ue.pendingcb--,ut(at),Xe=Xe.next}Ue.corkedRequestsFree?Ue.corkedRequestsFree.next=Fe:Ue.corkedRequestsFree=Fe}Object.defineProperty(ge.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(Fe){this._writableState&&(this._writableState.destroyed=Fe)}}),ge.prototype.destroy=le.destroy,ge.prototype._undestroy=le.undestroy,ge.prototype._destroy=function(Fe,Ue){this.end(),Ue(Fe)}}).call(this)}).call(this,x("_process"),typeof ft!="undefined"?ft:typeof self!="undefined"?self:typeof window!="undefined"?window:{},x("timers").setImmediate)},{"./_stream_duplex":386,"./internal/streams/destroy":392,"./internal/streams/stream":393,_process:467,"core-util-is":341,inherits:364,"process-nextick-args":380,"safe-buffer":396,timers:414,"util-deprecate":416}],391:[function(x,pe,de){"use strict";function ae(ue,ie){if(!(ue instanceof ie))throw new TypeError("Cannot call a class as a function")}var ne=x("safe-buffer").Buffer,se=x("util");function ce(ue,ie,oe){ue.copy(ie,oe)}pe.exports=function(){function ue(){ae(this,ue),this.head=null,this.tail=null,this.length=0}return ue.prototype.push=function(oe){var re={data:oe,next:null};this.length>0?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,z=""+re.data;re=re.next;)z+=oe+re.data;return z},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),z=this.head,a=0;z;)ce(z.data,re,a),a+=z.data.length,z=z.next;return re},ue}(),se&&se.inspect&&se.inspect.custom&&(pe.exports.prototype[se.inspect.custom]=function(){var ue=se.inspect({length:this.length});return this.constructor.name+" "+ue})},{"safe-buffer":396,util:89}],392:[function(x,pe,de){"use strict";var ae=x("process-nextick-args");function ne(ue,ie){var oe=this,re=this._readableState&&this._readableState.destroyed,z=this._writableState&&this._writableState.destroyed;return re||z?(ie?ie(ue):ue&&(!this._writableState||!this._writableState.errorEmitted)&&ae.nextTick(ce,this,ue),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(ue||null,function(a){!ie&&a?(ae.nextTick(ce,oe,a),oe._writableState&&(oe._writableState.errorEmitted=!0)):ie&&ie(a)}),this)}function se(){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,ie){ue.emit("error",ie)}pe.exports={destroy:ne,undestroy:se}},{"process-nextick-args":380}],393:[function(x,pe,de){pe.exports=x("events").EventEmitter},{events:344}],394:[function(x,pe,de){de=pe.exports=x("./lib/_stream_readable.js"),de.Stream=de,de.Readable=de,de.Writable=x("./lib/_stream_writable.js"),de.Duplex=x("./lib/_stream_duplex.js"),de.Transform=x("./lib/_stream_transform.js"),de.PassThrough=x("./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(x,pe,de){var ae=function(ne){"use strict";var se=Object.prototype,ce=se.hasOwnProperty,ue,ie=typeof Symbol=="function"?Symbol:{},oe=ie.iterator||"@@iterator",re=ie.asyncIterator||"@@asyncIterator",z=ie.toStringTag||"@@toStringTag";function a(qe,Je,Ye){return Object.defineProperty(qe,Je,{value:Ye,enumerable:!0,configurable:!0,writable:!0}),qe[Je]}try{a({},"")}catch(qe){a=function(Je,Ye,We){return Je[Ye]=We}}function y(qe,Je,Ye,We){var Fe=Je&&Je.prototype instanceof he?Je:he,Ue=Object.create(Fe.prototype),at=new $e(We||[]);return Ue._invoke=je(qe,Ye,at),Ue}ne.wrap=y;function E(qe,Je,Ye){try{return{type:"normal",arg:qe.call(Je,Ye)}}catch(We){return{type:"throw",arg:We}}}var b="suspendedStart",ee="suspendedYield",te="executing",le="completed",fe={};function he(){}function me(){}function ge(){}var Se={};a(Se,oe,function(){return this});var ve=Object.getPrototypeOf,be=ve&&ve(ve(Ne([])));be&&be!==se&&ce.call(be,oe)&&(Se=be);var Pe=ge.prototype=he.prototype=Object.create(Se);me.prototype=ge,a(Pe,"constructor",ge),a(ge,"constructor",me),me.displayName=a(ge,z,"GeneratorFunction");function Te(qe){["next","throw","return"].forEach(function(Je){a(qe,Je,function(Ye){return this._invoke(Je,Ye)})})}ne.isGeneratorFunction=function(qe){var Je=typeof qe=="function"&&qe.constructor;return Je?Je===me||(Je.displayName||Je.name)==="GeneratorFunction":!1},ne.mark=function(qe){return Object.setPrototypeOf?Object.setPrototypeOf(qe,ge):(qe.__proto__=ge,a(qe,z,"GeneratorFunction")),qe.prototype=Object.create(Pe),qe},ne.awrap=function(qe){return{__await:qe}};function _e(qe,Je){function Ye(Ue,at,Xe,ut){var Ze=E(qe[Ue],qe,at);if(Ze.type==="throw")ut(Ze.arg);else{var ze=Ze.arg,Re=ze.value;return Re&&typeof Re=="object"&&ce.call(Re,"__await")?Je.resolve(Re.__await).then(function(it){Ye("next",it,Xe,ut)},function(it){Ye("throw",it,Xe,ut)}):Je.resolve(Re).then(function(it){ze.value=it,Xe(ze)},function(it){return Ye("throw",it,Xe,ut)})}}var We;function Fe(Ue,at){function Xe(){return new Je(function(ut,Ze){Ye(Ue,at,ut,Ze)})}return We=We?We.then(Xe,Xe):Xe()}this._invoke=Fe}Te(_e.prototype),a(_e.prototype,re,function(){return this}),ne.AsyncIterator=_e,ne.async=function(qe,Je,Ye,We,Fe){Fe===void 0&&(Fe=Promise);var Ue=new _e(y(qe,Je,Ye,We),Fe);return ne.isGeneratorFunction(Je)?Ue:Ue.next().then(function(at){return at.done?at.value:Ue.next()})};function je(qe,Je,Ye){var We=b;return function(Ue,at){if(We===te)throw new Error("Generator is already running");if(We===le){if(Ue==="throw")throw at;return nt()}for(Ye.method=Ue,Ye.arg=at;;){var Xe=Ye.delegate;if(Xe){var ut=Ce(Xe,Ye);if(ut){if(ut===fe)continue;return ut}}if(Ye.method==="next")Ye.sent=Ye._sent=Ye.arg;else if(Ye.method==="throw"){if(We===b)throw We=le,Ye.arg;Ye.dispatchException(Ye.arg)}else Ye.method==="return"&&Ye.abrupt("return",Ye.arg);We=te;var Ze=E(qe,Je,Ye);if(Ze.type==="normal"){if(We=Ye.done?le:ee,Ze.arg===fe)continue;return{value:Ze.arg,done:Ye.done}}else Ze.type==="throw"&&(We=le,Ye.method="throw",Ye.arg=Ze.arg)}}}function Ce(qe,Je){var Ye=qe.iterator[Je.method];if(Ye===ue){if(Je.delegate=null,Je.method==="throw"){if(qe.iterator.return&&(Je.method="return",Je.arg=ue,Ce(qe,Je),Je.method==="throw"))return fe;Je.method="throw",Je.arg=new TypeError("The iterator does not provide a 'throw' method")}return fe}var We=E(Ye,qe.iterator,Je.arg);if(We.type==="throw")return Je.method="throw",Je.arg=We.arg,Je.delegate=null,fe;var Fe=We.arg;if(!Fe)return Je.method="throw",Je.arg=new TypeError("iterator result is not an object"),Je.delegate=null,fe;if(Fe.done)Je[qe.resultName]=Fe.value,Je.next=qe.nextLoc,Je.method!=="return"&&(Je.method="next",Je.arg=ue);else return Fe;return Je.delegate=null,fe}Te(Pe),a(Pe,z,"Generator"),a(Pe,oe,function(){return this}),a(Pe,"toString",function(){return"[object Generator]"});function Ie(qe){var Je={tryLoc:qe[0]};1 in qe&&(Je.catchLoc=qe[1]),2 in qe&&(Je.finallyLoc=qe[2],Je.afterLoc=qe[3]),this.tryEntries.push(Je)}function ke(qe){var Je=qe.completion||{};Je.type="normal",delete Je.arg,qe.completion=Je}function $e(qe){this.tryEntries=[{tryLoc:"root"}],qe.forEach(Ie,this),this.reset(!0)}ne.keys=function(qe){var Je=[];for(var Ye in qe)Je.push(Ye);return Je.reverse(),function We(){for(;Je.length;){var Fe=Je.pop();if(Fe in qe)return We.value=Fe,We.done=!1,We}return We.done=!0,We}};function Ne(qe){if(qe){var Je=qe[oe];if(Je)return Je.call(qe);if(typeof qe.next=="function")return qe;if(!isNaN(qe.length)){var Ye=-1,We=function Fe(){for(;++Ye<qe.length;)if(ce.call(qe,Ye))return Fe.value=qe[Ye],Fe.done=!1,Fe;return Fe.value=ue,Fe.done=!0,Fe};return We.next=We}}return{next:nt}}ne.values=Ne;function nt(){return{value:ue,done:!0}}return $e.prototype={constructor:$e,reset:function(qe){if(this.prev=0,this.next=0,this.sent=this._sent=ue,this.done=!1,this.delegate=null,this.method="next",this.arg=ue,this.tryEntries.forEach(ke),!qe)for(var Je in this)Je.charAt(0)==="t"&&ce.call(this,Je)&&!isNaN(+Je.slice(1))&&(this[Je]=ue)},stop:function(){this.done=!0;var qe=this.tryEntries[0],Je=qe.completion;if(Je.type==="throw")throw Je.arg;return this.rval},dispatchException:function(qe){if(this.done)throw qe;var Je=this;function Ye(ut,Ze){return Ue.type="throw",Ue.arg=qe,Je.next=ut,Ze&&(Je.method="next",Je.arg=ue),!!Ze}for(var We=this.tryEntries.length-1;We>=0;--We){var Fe=this.tryEntries[We],Ue=Fe.completion;if(Fe.tryLoc==="root")return Ye("end");if(Fe.tryLoc<=this.prev){var at=ce.call(Fe,"catchLoc"),Xe=ce.call(Fe,"finallyLoc");if(at&&Xe){if(this.prev<Fe.catchLoc)return Ye(Fe.catchLoc,!0);if(this.prev<Fe.finallyLoc)return Ye(Fe.finallyLoc)}else if(at){if(this.prev<Fe.catchLoc)return Ye(Fe.catchLoc,!0)}else if(Xe){if(this.prev<Fe.finallyLoc)return Ye(Fe.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(qe,Je){for(var Ye=this.tryEntries.length-1;Ye>=0;--Ye){var We=this.tryEntries[Ye];if(We.tryLoc<=this.prev&&ce.call(We,"finallyLoc")&&this.prev<We.finallyLoc){var Fe=We;break}}Fe&&(qe==="break"||qe==="continue")&&Fe.tryLoc<=Je&&Je<=Fe.finallyLoc&&(Fe=null);var Ue=Fe?Fe.completion:{};return Ue.type=qe,Ue.arg=Je,Fe?(this.method="next",this.next=Fe.finallyLoc,fe):this.complete(Ue)},complete:function(qe,Je){if(qe.type==="throw")throw qe.arg;return qe.type==="break"||qe.type==="continue"?this.next=qe.arg:qe.type==="return"?(this.rval=this.arg=qe.arg,this.method="return",this.next="end"):qe.type==="normal"&&Je&&(this.next=Je),fe},finish:function(qe){for(var Je=this.tryEntries.length-1;Je>=0;--Je){var Ye=this.tryEntries[Je];if(Ye.finallyLoc===qe)return this.complete(Ye.completion,Ye.afterLoc),ke(Ye),fe}},catch:function(qe){for(var Je=this.tryEntries.length-1;Je>=0;--Je){var Ye=this.tryEntries[Je];if(Ye.tryLoc===qe){var We=Ye.completion;if(We.type==="throw"){var Fe=We.arg;ke(Ye)}return Fe}}throw new Error("illegal catch attempt")},delegateYield:function(qe,Je,Ye){return this.delegate={iterator:Ne(qe),resultName:Je,nextLoc:Ye},this.method==="next"&&(this.arg=ue),fe}},ne}(typeof pe=="object"?pe.exports:{});try{regeneratorRuntime=ae}catch(ne){typeof globalThis=="object"?globalThis.regeneratorRuntime=ae:Function("r","regeneratorRuntime = r")(ae)}},{}],396:[function(x,pe,de){var ae=x("buffer"),ne=ae.Buffer;function se(ue,ie){for(var oe in ue)ie[oe]=ue[oe]}ne.from&&ne.alloc&&ne.allocUnsafe&&ne.allocUnsafeSlow?pe.exports=ae:(se(ae,de),de.Buffer=ce);function ce(ue,ie,oe){return ne(ue,ie,oe)}se(ne,ce),ce.from=function(ue,ie,oe){if(typeof ue=="number")throw new TypeError("Argument must not be a number");return ne(ue,ie,oe)},ce.alloc=function(ue,ie,oe){if(typeof ue!="number")throw new TypeError("Argument must be a number");var re=ne(ue);return ie!==void 0?typeof oe=="string"?re.fill(ie,oe):re.fill(ie):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 ae.SlowBuffer(ue)}},{buffer:90}],397:[function(x,pe,de){(function(ae){(function(){(function(ne){ne.parser=function(ze,Re){return new ce(ze,Re)},ne.SAXParser=ce,ne.SAXStream=y,ne.createStream=a,ne.MAX_BUFFER_LENGTH=64*1024;var se=["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(ze,Re){if(!(this instanceof ce))return new ce(ze,Re);var it=this;ie(it),it.q=it.c="",it.bufferCheckPosition=ne.MAX_BUFFER_LENGTH,it.opt=Re||{},it.opt.lowercase=it.opt.lowercase||it.opt.lowercasetags,it.looseCase=it.opt.lowercase?"toLowerCase":"toUpperCase",it.tags=[],it.closed=it.closedRoot=it.sawRoot=!1,it.tag=it.error=null,it.strict=!!ze,it.noscript=!!(ze||it.opt.noscript),it.state=_e.BEGIN,it.strictEntities=it.opt.strictEntities,it.ENTITIES=it.strictEntities?Object.create(ne.XML_ENTITIES):Object.create(ne.ENTITIES),it.attribList=[],it.opt.xmlns&&(it.ns=Object.create(le)),it.trackPosition=it.opt.position!==!1,it.trackPosition&&(it.position=it.line=it.column=0),Ce(it,"onready")}Object.create||(Object.create=function(ze){function Re(){}Re.prototype=ze;var it=new Re;return it}),Object.keys||(Object.keys=function(ze){var Re=[];for(var it in ze)ze.hasOwnProperty(it)&&Re.push(it);return Re});function ue(ze){for(var Re=Math.max(ne.MAX_BUFFER_LENGTH,10),it=0,Me=0,Be=se.length;Me<Be;Me++){var Qe=ze[se[Me]].length;if(Qe>Re)switch(se[Me]){case"textNode":ke(ze);break;case"cdata":Ie(ze,"oncdata",ze.cdata),ze.cdata="";break;case"script":Ie(ze,"onscript",ze.script),ze.script="";break;default:Ne(ze,"Max buffer length exceeded: "+se[Me])}it=Math.max(it,Qe)}var Ge=ne.MAX_BUFFER_LENGTH-it;ze.bufferCheckPosition=Ge+ze.position}function ie(ze){for(var Re=0,it=se.length;Re<it;Re++)ze[se[Re]]=""}function oe(ze){ke(ze),ze.cdata!==""&&(Ie(ze,"oncdata",ze.cdata),ze.cdata=""),ze.script!==""&&(Ie(ze,"onscript",ze.script),ze.script="")}ce.prototype={end:function(){nt(this)},write:Ze,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){oe(this)}};var re;try{re=x("stream").Stream}catch(ze){re=function(){}}var z=ne.EVENTS.filter(function(ze){return ze!=="error"&&ze!=="end"});function a(ze,Re){return new y(ze,Re)}function y(ze,Re){if(!(this instanceof y))return new y(ze,Re);re.apply(this),this._parser=new ce(ze,Re),this.writable=!0,this.readable=!0;var it=this;this._parser.onend=function(){it.emit("end")},this._parser.onerror=function(Me){it.emit("error",Me),it._parser.error=null},this._decoder=null,z.forEach(function(Me){Object.defineProperty(it,"on"+Me,{get:function(){return it._parser["on"+Me]},set:function(Be){if(!Be)return it.removeAllListeners(Me),it._parser["on"+Me]=Be,Be;it.on(Me,Be)},enumerable:!0,configurable:!1})})}y.prototype=Object.create(re.prototype,{constructor:{value:y}}),y.prototype.write=function(ze){if(typeof ae=="function"&&typeof ae.isBuffer=="function"&&ae.isBuffer(ze)){if(!this._decoder){var Re=x("string_decoder").StringDecoder;this._decoder=new Re("utf8")}ze=this._decoder.write(ze)}return this._parser.write(ze.toString()),this.emit("data",ze),!0},y.prototype.end=function(ze){return ze&&ze.length&&this.write(ze),this._parser.end(),!0},y.prototype.on=function(ze,Re){var it=this;return!it._parser["on"+ze]&&z.indexOf(ze)!==-1&&(it._parser["on"+ze]=function(){var Me=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);Me.splice(0,0,ze),it.emit.apply(it,Me)}),re.prototype.on.call(it,ze,Re)};var E="[CDATA[",b="DOCTYPE",ee="http://www.w3.org/XML/1998/namespace",te="http://www.w3.org/2000/xmlns/",le={xml:ee,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]/,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-]/,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]/,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-]/;function Se(ze){return ze===" "||ze===`
|
|
|
`||ze==="\r"||ze===" "}function ve(ze){return ze==='"'||ze==="'"}function be(ze){return ze===">"||Se(ze)}function Pe(ze,Re){return ze.test(Re)}function Te(ze,Re){return!Pe(ze,Re)}var _e=0;ne.STATE={BEGIN:_e++,BEGIN_WHITESPACE:_e++,TEXT:_e++,TEXT_ENTITY:_e++,OPEN_WAKA:_e++,SGML_DECL:_e++,SGML_DECL_QUOTED:_e++,DOCTYPE:_e++,DOCTYPE_QUOTED:_e++,DOCTYPE_DTD:_e++,DOCTYPE_DTD_QUOTED:_e++,COMMENT_STARTING:_e++,COMMENT:_e++,COMMENT_ENDING:_e++,COMMENT_ENDED:_e++,CDATA:_e++,CDATA_ENDING:_e++,CDATA_ENDING_2:_e++,PROC_INST:_e++,PROC_INST_BODY:_e++,PROC_INST_ENDING:_e++,OPEN_TAG:_e++,OPEN_TAG_SLASH:_e++,ATTRIB:_e++,ATTRIB_NAME:_e++,ATTRIB_NAME_SAW_WHITE:_e++,ATTRIB_VALUE:_e++,ATTRIB_VALUE_QUOTED:_e++,ATTRIB_VALUE_CLOSED:_e++,ATTRIB_VALUE_UNQUOTED:_e++,ATTRIB_VALUE_ENTITY_Q:_e++,ATTRIB_VALUE_ENTITY_U:_e++,CLOSE_TAG:_e++,CLOSE_TAG_SAW_WHITE:_e++,SCRIPT:_e++,SCRIPT_ENDING:_e++},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(ze){var Re=ne.ENTITIES[ze],it=typeof Re=="number"?String.fromCharCode(Re):Re;ne.ENTITIES[ze]=it});for(var je in ne.STATE)ne.STATE[ne.STATE[je]]=je;_e=ne.STATE;function Ce(ze,Re,it){ze[Re]&&ze[Re](it)}function Ie(ze,Re,it){ze.textNode&&ke(ze),Ce(ze,Re,it)}function ke(ze){ze.textNode=$e(ze.opt,ze.textNode),ze.textNode&&Ce(ze,"ontext",ze.textNode),ze.textNode=""}function $e(ze,Re){return ze.trim&&(Re=Re.trim()),ze.normalize&&(Re=Re.replace(/\s+/g," ")),Re}function Ne(ze,Re){return ke(ze),ze.trackPosition&&(Re+=`
|
|
|
Line: `+ze.line+`
|
|
|
Column: `+ze.column+`
|
|
|
Char: `+ze.c),Re=new Error(Re),ze.error=Re,Ce(ze,"onerror",Re),ze}function nt(ze){return ze.sawRoot&&!ze.closedRoot&&qe(ze,"Unclosed root tag"),ze.state!==_e.BEGIN&&ze.state!==_e.BEGIN_WHITESPACE&&ze.state!==_e.TEXT&&Ne(ze,"Unexpected end"),ke(ze),ze.c="",ze.closed=!0,Ce(ze,"onend"),ce.call(ze,ze.strict,ze.opt),ze}function qe(ze,Re){if(typeof ze!="object"||!(ze instanceof ce))throw new Error("bad call to strictFail");ze.strict&&Ne(ze,Re)}function Je(ze){ze.strict||(ze.tagName=ze.tagName[ze.looseCase]());var Re=ze.tags[ze.tags.length-1]||ze,it=ze.tag={name:ze.tagName,attributes:{}};ze.opt.xmlns&&(it.ns=Re.ns),ze.attribList.length=0,Ie(ze,"onopentagstart",it)}function Ye(ze,Re){var it=ze.indexOf(":"),Me=it<0?["",ze]:ze.split(":"),Be=Me[0],Qe=Me[1];return Re&&ze==="xmlns"&&(Be="xmlns",Qe=""),{prefix:Be,local:Qe}}function We(ze){if(ze.strict||(ze.attribName=ze.attribName[ze.looseCase]()),ze.attribList.indexOf(ze.attribName)!==-1||ze.tag.attributes.hasOwnProperty(ze.attribName)){ze.attribName=ze.attribValue="";return}if(ze.opt.xmlns){var Re=Ye(ze.attribName,!0),it=Re.prefix,Me=Re.local;if(it==="xmlns")if(Me==="xml"&&ze.attribValue!==ee)qe(ze,"xml: prefix must be bound to "+ee+`
|
|
|
Actual: `+ze.attribValue);else if(Me==="xmlns"&&ze.attribValue!==te)qe(ze,"xmlns: prefix must be bound to "+te+`
|
|
|
Actual: `+ze.attribValue);else{var Be=ze.tag,Qe=ze.tags[ze.tags.length-1]||ze;Be.ns===Qe.ns&&(Be.ns=Object.create(Qe.ns)),Be.ns[Me]=ze.attribValue}ze.attribList.push([ze.attribName,ze.attribValue])}else ze.tag.attributes[ze.attribName]=ze.attribValue,Ie(ze,"onattribute",{name:ze.attribName,value:ze.attribValue});ze.attribName=ze.attribValue=""}function Fe(ze,Re){if(ze.opt.xmlns){var it=ze.tag,Me=Ye(ze.tagName);it.prefix=Me.prefix,it.local=Me.local,it.uri=it.ns[Me.prefix]||"",it.prefix&&!it.uri&&(qe(ze,"Unbound namespace prefix: "+JSON.stringify(ze.tagName)),it.uri=Me.prefix);var Be=ze.tags[ze.tags.length-1]||ze;it.ns&&Be.ns!==it.ns&&Object.keys(it.ns).forEach(function(ot){Ie(ze,"onopennamespace",{prefix:ot,uri:it.ns[ot]})});for(var Qe=0,Ge=ze.attribList.length;Qe<Ge;Qe++){var De=ze.attribList[Qe],Le=De[0],Oe=De[1],xe=Ye(Le,!0),Ae=xe.prefix,Ke=xe.local,tt=Ae===""?"":it.ns[Ae]||"",He={name:Le,value:Oe,prefix:Ae,local:Ke,uri:tt};Ae&&Ae!=="xmlns"&&!tt&&(qe(ze,"Unbound namespace prefix: "+JSON.stringify(Ae)),He.uri=Ae),ze.tag.attributes[Le]=He,Ie(ze,"onattribute",He)}ze.attribList.length=0}ze.tag.isSelfClosing=!!Re,ze.sawRoot=!0,ze.tags.push(ze.tag),Ie(ze,"onopentag",ze.tag),Re||(!ze.noscript&&ze.tagName.toLowerCase()==="script"?ze.state=_e.SCRIPT:ze.state=_e.TEXT,ze.tag=null,ze.tagName=""),ze.attribName=ze.attribValue="",ze.attribList.length=0}function Ue(ze){if(!ze.tagName){qe(ze,"Weird empty close tag."),ze.textNode+="</>",ze.state=_e.TEXT;return}if(ze.script){if(ze.tagName!=="script"){ze.script+="</"+ze.tagName+">",ze.tagName="",ze.state=_e.SCRIPT;return}Ie(ze,"onscript",ze.script),ze.script=""}var Re=ze.tags.length,it=ze.tagName;ze.strict||(it=it[ze.looseCase]());for(var Me=it;Re--;){var Be=ze.tags[Re];if(Be.name!==Me)qe(ze,"Unexpected close tag");else break}if(Re<0){qe(ze,"Unmatched closing tag: "+ze.tagName),ze.textNode+="</"+ze.tagName+">",ze.state=_e.TEXT;return}ze.tagName=it;for(var Qe=ze.tags.length;Qe-- >Re;){var Ge=ze.tag=ze.tags.pop();ze.tagName=ze.tag.name,Ie(ze,"onclosetag",ze.tagName);var De={};for(var Le in Ge.ns)De[Le]=Ge.ns[Le];var Oe=ze.tags[ze.tags.length-1]||ze;ze.opt.xmlns&&Ge.ns!==Oe.ns&&Object.keys(Ge.ns).forEach(function(xe){var Ae=Ge.ns[xe];Ie(ze,"onclosenamespace",{prefix:xe,uri:Ae})})}Re===0&&(ze.closedRoot=!0),ze.tagName=ze.attribValue=ze.attribName="",ze.attribList.length=0,ze.state=_e.TEXT}function at(ze){var Re=ze.entity,it=Re.toLowerCase(),Me,Be="";return ze.ENTITIES[Re]?ze.ENTITIES[Re]:ze.ENTITIES[it]?ze.ENTITIES[it]:(Re=it,Re.charAt(0)==="#"&&(Re.charAt(1)==="x"?(Re=Re.slice(2),Me=parseInt(Re,16),Be=Me.toString(16)):(Re=Re.slice(1),Me=parseInt(Re,10),Be=Me.toString(10))),Re=Re.replace(/^0+/,""),isNaN(Me)||Be.toLowerCase()!==Re?(qe(ze,"Invalid character entity"),"&"+ze.entity+";"):String.fromCodePoint(Me))}function Xe(ze,Re){Re==="<"?(ze.state=_e.OPEN_WAKA,ze.startTagPosition=ze.position):Se(Re)||(qe(ze,"Non-whitespace before first tag."),ze.textNode=Re,ze.state=_e.TEXT)}function ut(ze,Re){var it="";return Re<ze.length&&(it=ze.charAt(Re)),it}function Ze(ze){var Re=this;if(this.error)throw this.error;if(Re.closed)return Ne(Re,"Cannot write after close. Assign an onready handler.");if(ze===null)return nt(Re);typeof ze=="object"&&(ze=ze.toString());for(var it=0,Me="";Me=ut(ze,it++),Re.c=Me,!!Me;)switch(Re.trackPosition&&(Re.position++,Me===`
|
|
|
`?(Re.line++,Re.column=0):Re.column++),Re.state){case _e.BEGIN:if(Re.state=_e.BEGIN_WHITESPACE,Me==="\uFEFF")continue;Xe(Re,Me);continue;case _e.BEGIN_WHITESPACE:Xe(Re,Me);continue;case _e.TEXT:if(Re.sawRoot&&!Re.closedRoot){for(var Be=it-1;Me&&Me!=="<"&&Me!=="&";)Me=ut(ze,it++),Me&&Re.trackPosition&&(Re.position++,Me===`
|
|
|
`?(Re.line++,Re.column=0):Re.column++);Re.textNode+=ze.substring(Be,it-1)}Me==="<"&&!(Re.sawRoot&&Re.closedRoot&&!Re.strict)?(Re.state=_e.OPEN_WAKA,Re.startTagPosition=Re.position):(!Se(Me)&&(!Re.sawRoot||Re.closedRoot)&&qe(Re,"Text data outside of root node."),Me==="&"?Re.state=_e.TEXT_ENTITY:Re.textNode+=Me);continue;case _e.SCRIPT:Me==="<"?Re.state=_e.SCRIPT_ENDING:Re.script+=Me;continue;case _e.SCRIPT_ENDING:Me==="/"?Re.state=_e.CLOSE_TAG:(Re.script+="<"+Me,Re.state=_e.SCRIPT);continue;case _e.OPEN_WAKA:if(Me==="!")Re.state=_e.SGML_DECL,Re.sgmlDecl="";else if(!Se(Me))if(Pe(fe,Me))Re.state=_e.OPEN_TAG,Re.tagName=Me;else if(Me==="/")Re.state=_e.CLOSE_TAG,Re.tagName="";else if(Me==="?")Re.state=_e.PROC_INST,Re.procInstName=Re.procInstBody="";else{if(qe(Re,"Unencoded <"),Re.startTagPosition+1<Re.position){var Qe=Re.position-Re.startTagPosition;Me=new Array(Qe).join(" ")+Me}Re.textNode+="<"+Me,Re.state=_e.TEXT}continue;case _e.SGML_DECL:(Re.sgmlDecl+Me).toUpperCase()===E?(Ie(Re,"onopencdata"),Re.state=_e.CDATA,Re.sgmlDecl="",Re.cdata=""):Re.sgmlDecl+Me==="--"?(Re.state=_e.COMMENT,Re.comment="",Re.sgmlDecl=""):(Re.sgmlDecl+Me).toUpperCase()===b?(Re.state=_e.DOCTYPE,(Re.doctype||Re.sawRoot)&&qe(Re,"Inappropriately located doctype declaration"),Re.doctype="",Re.sgmlDecl=""):Me===">"?(Ie(Re,"onsgmldeclaration",Re.sgmlDecl),Re.sgmlDecl="",Re.state=_e.TEXT):(ve(Me)&&(Re.state=_e.SGML_DECL_QUOTED),Re.sgmlDecl+=Me);continue;case _e.SGML_DECL_QUOTED:Me===Re.q&&(Re.state=_e.SGML_DECL,Re.q=""),Re.sgmlDecl+=Me;continue;case _e.DOCTYPE:Me===">"?(Re.state=_e.TEXT,Ie(Re,"ondoctype",Re.doctype),Re.doctype=!0):(Re.doctype+=Me,Me==="["?Re.state=_e.DOCTYPE_DTD:ve(Me)&&(Re.state=_e.DOCTYPE_QUOTED,Re.q=Me));continue;case _e.DOCTYPE_QUOTED:Re.doctype+=Me,Me===Re.q&&(Re.q="",Re.state=_e.DOCTYPE);continue;case _e.DOCTYPE_DTD:Re.doctype+=Me,Me==="]"?Re.state=_e.DOCTYPE:ve(Me)&&(Re.state=_e.DOCTYPE_DTD_QUOTED,Re.q=Me);continue;case _e.DOCTYPE_DTD_QUOTED:Re.doctype+=Me,Me===Re.q&&(Re.state=_e.DOCTYPE_DTD,Re.q="");continue;case _e.COMMENT:Me==="-"?Re.state=_e.COMMENT_ENDING:Re.comment+=Me;continue;case _e.COMMENT_ENDING:Me==="-"?(Re.state=_e.COMMENT_ENDED,Re.comment=$e(Re.opt,Re.comment),Re.comment&&Ie(Re,"oncomment",Re.comment),Re.comment=""):(Re.comment+="-"+Me,Re.state=_e.COMMENT);continue;case _e.COMMENT_ENDED:Me!==">"?(qe(Re,"Malformed comment"),Re.comment+="--"+Me,Re.state=_e.COMMENT):Re.state=_e.TEXT;continue;case _e.CDATA:Me==="]"?Re.state=_e.CDATA_ENDING:Re.cdata+=Me;continue;case _e.CDATA_ENDING:Me==="]"?Re.state=_e.CDATA_ENDING_2:(Re.cdata+="]"+Me,Re.state=_e.CDATA);continue;case _e.CDATA_ENDING_2:Me===">"?(Re.cdata&&Ie(Re,"oncdata",Re.cdata),Ie(Re,"onclosecdata"),Re.cdata="",Re.state=_e.TEXT):Me==="]"?Re.cdata+="]":(Re.cdata+="]]"+Me,Re.state=_e.CDATA);continue;case _e.PROC_INST:Me==="?"?Re.state=_e.PROC_INST_ENDING:Se(Me)?Re.state=_e.PROC_INST_BODY:Re.procInstName+=Me;continue;case _e.PROC_INST_BODY:if(!Re.procInstBody&&Se(Me))continue;Me==="?"?Re.state=_e.PROC_INST_ENDING:Re.procInstBody+=Me;continue;case _e.PROC_INST_ENDING:Me===">"?(Ie(Re,"onprocessinginstruction",{name:Re.procInstName,body:Re.procInstBody}),Re.procInstName=Re.procInstBody="",Re.state=_e.TEXT):(Re.procInstBody+="?"+Me,Re.state=_e.PROC_INST_BODY);continue;case _e.OPEN_TAG:Pe(he,Me)?Re.tagName+=Me:(Je(Re),Me===">"?Fe(Re):Me==="/"?Re.state=_e.OPEN_TAG_SLASH:(Se(Me)||qe(Re,"Invalid character in tag name"),Re.state=_e.ATTRIB));continue;case _e.OPEN_TAG_SLASH:Me===">"?(Fe(Re,!0),Ue(Re)):(qe(Re,"Forward-slash in opening tag not followed by >"),Re.state=_e.ATTRIB);continue;case _e.ATTRIB:if(Se(Me))continue;Me===">"?Fe(Re):Me==="/"?Re.state=_e.OPEN_TAG_SLASH:Pe(fe,Me)?(Re.attribName=Me,Re.attribValue="",Re.state=_e.ATTRIB_NAME):qe(Re,"Invalid attribute name");continue;case _e.ATTRIB_NAME:Me==="="?Re.state=_e.ATTRIB_VALUE:Me===">"?(qe(Re,"Attribute without value"),Re.attribValue=Re.attribName,We(Re),Fe(Re)):Se(Me)?Re.state=_e.ATTRIB_NAME_SAW_WHITE:Pe(he,Me)?Re.attribName+=Me:qe(Re,"Invalid attribute name");continue;case _e.ATTRIB_NAME_SAW_WHITE:if(Me==="=")Re.state=_e.ATTRIB_VALUE;else{if(Se(Me))continue;qe(Re,"Attribute without value"),Re.tag.attributes[Re.attribName]="",Re.attribValue="",Ie(Re,"onattribute",{name:Re.attribName,value:""}),Re.attribName="",Me===">"?Fe(Re):Pe(fe,Me)?(Re.attribName=Me,Re.state=_e.ATTRIB_NAME):(qe(Re,"Invalid attribute name"),Re.state=_e.ATTRIB)}continue;case _e.ATTRIB_VALUE:if(Se(Me))continue;ve(Me)?(Re.q=Me,Re.state=_e.ATTRIB_VALUE_QUOTED):(qe(Re,"Unquoted attribute value"),Re.state=_e.ATTRIB_VALUE_UNQUOTED,Re.attribValue=Me);continue;case _e.ATTRIB_VALUE_QUOTED:if(Me!==Re.q){Me==="&"?Re.state=_e.ATTRIB_VALUE_ENTITY_Q:Re.attribValue+=Me;continue}We(Re),Re.q="",Re.state=_e.ATTRIB_VALUE_CLOSED;continue;case _e.ATTRIB_VALUE_CLOSED:Se(Me)?Re.state=_e.ATTRIB:Me===">"?Fe(Re):Me==="/"?Re.state=_e.OPEN_TAG_SLASH:Pe(fe,Me)?(qe(Re,"No whitespace between attributes"),Re.attribName=Me,Re.attribValue="",Re.state=_e.ATTRIB_NAME):qe(Re,"Invalid attribute name");continue;case _e.ATTRIB_VALUE_UNQUOTED:if(!be(Me)){Me==="&"?Re.state=_e.ATTRIB_VALUE_ENTITY_U:Re.attribValue+=Me;continue}We(Re),Me===">"?Fe(Re):Re.state=_e.ATTRIB;continue;case _e.CLOSE_TAG:if(Re.tagName)Me===">"?Ue(Re):Pe(he,Me)?Re.tagName+=Me:Re.script?(Re.script+="</"+Re.tagName,Re.tagName="",Re.state=_e.SCRIPT):(Se(Me)||qe(Re,"Invalid tagname in closing tag"),Re.state=_e.CLOSE_TAG_SAW_WHITE);else{if(Se(Me))continue;Te(fe,Me)?Re.script?(Re.script+="</"+Me,Re.state=_e.SCRIPT):qe(Re,"Invalid tagname in closing tag."):Re.tagName=Me}continue;case _e.CLOSE_TAG_SAW_WHITE:if(Se(Me))continue;Me===">"?Ue(Re):qe(Re,"Invalid characters in closing tag");continue;case _e.TEXT_ENTITY:case _e.ATTRIB_VALUE_ENTITY_Q:case _e.ATTRIB_VALUE_ENTITY_U:var Ge,De;switch(Re.state){case _e.TEXT_ENTITY:Ge=_e.TEXT,De="textNode";break;case _e.ATTRIB_VALUE_ENTITY_Q:Ge=_e.ATTRIB_VALUE_QUOTED,De="attribValue";break;case _e.ATTRIB_VALUE_ENTITY_U:Ge=_e.ATTRIB_VALUE_UNQUOTED,De="attribValue";break}Me===";"?(Re[De]+=at(Re),Re.entity="",Re.state=Ge):Pe(Re.entity.length?ge:me,Me)?Re.entity+=Me:(qe(Re,"Invalid character in entity name"),Re[De]+="&"+Re.entity+Me,Re.entity="",Re.state=Ge);continue;default:throw new Error(Re,"Unknown state: "+Re.state)}return Re.position>=Re.bufferCheckPosition&&ue(Re),Re}String.fromCodePoint||function(){var ze=String.fromCharCode,Re=Math.floor,it=function(){var Me=16384,Be=[],Qe,Ge,De=-1,Le=arguments.length;if(!Le)return"";for(var Oe="";++De<Le;){var xe=Number(arguments[De]);if(!isFinite(xe)||xe<0||xe>1114111||Re(xe)!==xe)throw RangeError("Invalid code point: "+xe);xe<=65535?Be.push(xe):(xe-=65536,Qe=(xe>>10)+55296,Ge=xe%1024+56320,Be.push(Qe,Ge)),(De+1===Le||Be.length>Me)&&(Oe+=ze.apply(null,Be),Be.length=0)}return Oe};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:it,configurable:!0,writable:!0}):String.fromCodePoint=it}()})(typeof de=="undefined"?this.sax={}:de)}).call(this)}).call(this,x("buffer").Buffer)},{buffer:90,stream:398,string_decoder:413}],398:[function(x,pe,de){pe.exports=se;var ae=x("events").EventEmitter,ne=x("inherits");ne(se,ae),se.Readable=x("readable-stream/lib/_stream_readable.js"),se.Writable=x("readable-stream/lib/_stream_writable.js"),se.Duplex=x("readable-stream/lib/_stream_duplex.js"),se.Transform=x("readable-stream/lib/_stream_transform.js"),se.PassThrough=x("readable-stream/lib/_stream_passthrough.js"),se.finished=x("readable-stream/lib/internal/streams/end-of-stream.js"),se.pipeline=x("readable-stream/lib/internal/streams/pipeline.js"),se.Stream=se;function se(){ae.call(this)}se.prototype.pipe=function(ce,ue){var ie=this;function oe(ee){ce.writable&&ce.write(ee)===!1&&ie.pause&&ie.pause()}ie.on("data",oe);function re(){ie.readable&&ie.resume&&ie.resume()}ce.on("drain",re),!ce._isStdio&&(!ue||ue.end!==!1)&&(ie.on("end",a),ie.on("close",y));var z=!1;function a(){z||(z=!0,ce.end())}function y(){z||(z=!0,typeof ce.destroy=="function"&&ce.destroy())}function E(ee){if(b(),ae.listenerCount(this,"error")===0)throw ee}ie.on("error",E),ce.on("error",E);function b(){ie.removeListener("data",oe),ce.removeListener("drain",re),ie.removeListener("end",a),ie.removeListener("close",y),ie.removeListener("error",E),ce.removeListener("error",E),ie.removeListener("end",b),ie.removeListener("close",b),ce.removeListener("close",b)}return ie.on("end",b),ie.on("close",b),ce.on("close",b),ce.emit("pipe",ie),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(x,pe,de){"use strict";function ae(re,z){re.prototype=Object.create(z.prototype),re.prototype.constructor=re,re.__proto__=z}var ne={};function se(re,z,a){a||(a=Error);function y(b,ee,te){return typeof z=="string"?z:z(b,ee,te)}var E=function(b){ae(ee,b);function ee(te,le,fe){return b.call(this,y(te,le,fe))||this}return ee}(a);E.prototype.name=a.name,E.prototype.code=re,ne[re]=E}function ce(re,z){if(Array.isArray(re)){var a=re.length;return re=re.map(function(y){return String(y)}),a>2?"one of ".concat(z," ").concat(re.slice(0,a-1).join(", "),", or ")+re[a-1]:a===2?"one of ".concat(z," ").concat(re[0]," or ").concat(re[1]):"of ".concat(z," ").concat(re[0])}else return"of ".concat(z," ").concat(String(re))}function ue(re,z,a){return re.substr(!a||a<0?0:+a,z.length)===z}function ie(re,z,a){return(a===void 0||a>re.length)&&(a=re.length),re.substring(a-z.length,a)===z}function oe(re,z,a){return typeof a!="number"&&(a=0),a+z.length>re.length?!1:re.indexOf(z,a)!==-1}se("ERR_INVALID_OPT_VALUE",function(re,z){return'The value "'+z+'" is invalid for option "'+re+'"'},TypeError),se("ERR_INVALID_ARG_TYPE",function(re,z,a){var y;typeof z=="string"&&ue(z,"not ")?(y="must not be",z=z.replace(/^not /,"")):y="must be";var E;if(ie(re," argument"))E="The ".concat(re," ").concat(y," ").concat(ce(z,"type"));else{var b=oe(re,".")?"property":"argument";E='The "'.concat(re,'" ').concat(b," ").concat(y," ").concat(ce(z,"type"))}return E+=". Received type ".concat(typeof a),E},TypeError),se("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),se("ERR_METHOD_NOT_IMPLEMENTED",function(re){return"The "+re+" method is not implemented"}),se("ERR_STREAM_PREMATURE_CLOSE","Premature close"),se("ERR_STREAM_DESTROYED",function(re){return"Cannot call "+re+" after a stream was destroyed"}),se("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),se("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),se("ERR_STREAM_WRITE_AFTER_END","write after end"),se("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),se("ERR_UNKNOWN_ENCODING",function(re){return"Unknown encoding: "+re},TypeError),se("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),pe.exports.codes=ne},{}],400:[function(x,pe,de){(function(ae){(function(){"use strict";var ne=Object.keys||function(y){var E=[];for(var b in y)E.push(b);return E};pe.exports=re;var se=x("./_stream_readable"),ce=x("./_stream_writable");x("inherits")(re,se);for(var ue=ne(ce.prototype),ie=0;ie<ue.length;ie++){var oe=ue[ie];re.prototype[oe]||(re.prototype[oe]=ce.prototype[oe])}function re(y){if(!(this instanceof re))return new re(y);se.call(this,y),ce.call(this,y),this.allowHalfOpen=!0,y&&(y.readable===!1&&(this.readable=!1),y.writable===!1&&(this.writable=!1),y.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",z)))}Object.defineProperty(re.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(re.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(re.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function z(){this._writableState.ended||ae.nextTick(a,this)}function a(y){y.end()}Object.defineProperty(re.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(E){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=E,this._writableState.destroyed=E)}})}).call(this)}).call(this,x("_process"))},{"./_stream_readable":402,"./_stream_writable":404,_process:467,inherits:364}],401:[function(x,pe,de){"use strict";pe.exports=ne;var ae=x("./_stream_transform");x("inherits")(ne,ae);function ne(se){if(!(this instanceof ne))return new ne(se);ae.call(this,se)}ne.prototype._transform=function(se,ce,ue){ue(null,se)}},{"./_stream_transform":403,inherits:364}],402:[function(x,pe,de){(function(ae,ne){(function(){"use strict";pe.exports=Ie;var se;Ie.ReadableState=Ce;var ce=x("events").EventEmitter,ue=function(Le,Oe){return Le.listeners(Oe).length},ie=x("./internal/streams/stream"),oe=x("buffer").Buffer,re=(typeof ne!="undefined"?ne:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function z(De){return oe.from(De)}function a(De){return oe.isBuffer(De)||De instanceof re}var y=x("util"),E;y&&y.debuglog?E=y.debuglog("stream"):E=function(){};var b=x("./internal/streams/buffer_list"),ee=x("./internal/streams/destroy"),te=x("./internal/streams/state"),le=te.getHighWaterMark,fe=x("../errors").codes,he=fe.ERR_INVALID_ARG_TYPE,me=fe.ERR_STREAM_PUSH_AFTER_EOF,ge=fe.ERR_METHOD_NOT_IMPLEMENTED,Se=fe.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,ve,be,Pe;x("inherits")(Ie,ie);var Te=ee.errorOrDestroy,_e=["error","close","destroy","pause","resume"];function je(De,Le,Oe){if(typeof De.prependListener=="function")return De.prependListener(Le,Oe);!De._events||!De._events[Le]?De.on(Le,Oe):Array.isArray(De._events[Le])?De._events[Le].unshift(Oe):De._events[Le]=[Oe,De._events[Le]]}function Ce(De,Le,Oe){se=se||x("./_stream_duplex"),De=De||{},typeof Oe!="boolean"&&(Oe=Le instanceof se),this.objectMode=!!De.objectMode,Oe&&(this.objectMode=this.objectMode||!!De.readableObjectMode),this.highWaterMark=le(this,De,"readableHighWaterMark",Oe),this.buffer=new b,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=De.emitClose!==!1,this.autoDestroy=!!De.autoDestroy,this.destroyed=!1,this.defaultEncoding=De.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,De.encoding&&(ve||(ve=x("string_decoder/").StringDecoder),this.decoder=new ve(De.encoding),this.encoding=De.encoding)}function Ie(De){if(se=se||x("./_stream_duplex"),!(this instanceof Ie))return new Ie(De);var Le=this instanceof se;this._readableState=new Ce(De,this,Le),this.readable=!0,De&&(typeof De.read=="function"&&(this._read=De.read),typeof De.destroy=="function"&&(this._destroy=De.destroy)),ie.call(this)}Object.defineProperty(Ie.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(Le){this._readableState&&(this._readableState.destroyed=Le)}}),Ie.prototype.destroy=ee.destroy,Ie.prototype._undestroy=ee.undestroy,Ie.prototype._destroy=function(De,Le){Le(De)},Ie.prototype.push=function(De,Le){var Oe=this._readableState,xe;return Oe.objectMode?xe=!0:typeof De=="string"&&(Le=Le||Oe.defaultEncoding,Le!==Oe.encoding&&(De=oe.from(De,Le),Le=""),xe=!0),ke(this,De,Le,!1,xe)},Ie.prototype.unshift=function(De){return ke(this,De,null,!0,!1)};function ke(De,Le,Oe,xe,Ae){E("readableAddChunk",Le);var Ke=De._readableState;if(Le===null)Ke.reading=!1,Ye(De,Ke);else{var tt;if(Ae||(tt=Ne(Ke,Le)),tt)Te(De,tt);else if(Ke.objectMode||Le&&Le.length>0)if(typeof Le!="string"&&!Ke.objectMode&&Object.getPrototypeOf(Le)!==oe.prototype&&(Le=z(Le)),xe)Ke.endEmitted?Te(De,new Se):$e(De,Ke,Le,!0);else if(Ke.ended)Te(De,new me);else{if(Ke.destroyed)return!1;Ke.reading=!1,Ke.decoder&&!Oe?(Le=Ke.decoder.write(Le),Ke.objectMode||Le.length!==0?$e(De,Ke,Le,!1):Ue(De,Ke)):$e(De,Ke,Le,!1)}else xe||(Ke.reading=!1,Ue(De,Ke))}return!Ke.ended&&(Ke.length<Ke.highWaterMark||Ke.length===0)}function $e(De,Le,Oe,xe){Le.flowing&&Le.length===0&&!Le.sync?(Le.awaitDrain=0,De.emit("data",Oe)):(Le.length+=Le.objectMode?1:Oe.length,xe?Le.buffer.unshift(Oe):Le.buffer.push(Oe),Le.needReadable&&We(De)),Ue(De,Le)}function Ne(De,Le){var Oe;return!a(Le)&&typeof Le!="string"&&Le!==void 0&&!De.objectMode&&(Oe=new he("chunk",["string","Buffer","Uint8Array"],Le)),Oe}Ie.prototype.isPaused=function(){return this._readableState.flowing===!1},Ie.prototype.setEncoding=function(De){ve||(ve=x("string_decoder/").StringDecoder);var Le=new ve(De);this._readableState.decoder=Le,this._readableState.encoding=this._readableState.decoder.encoding;for(var Oe=this._readableState.buffer.head,xe="";Oe!==null;)xe+=Le.write(Oe.data),Oe=Oe.next;return this._readableState.buffer.clear(),xe!==""&&this._readableState.buffer.push(xe),this._readableState.length=xe.length,this};var nt=1073741824;function qe(De){return De>=nt?De=nt:(De--,De|=De>>>1,De|=De>>>2,De|=De>>>4,De|=De>>>8,De|=De>>>16,De++),De}function Je(De,Le){return De<=0||Le.length===0&&Le.ended?0:Le.objectMode?1:De!==De?Le.flowing&&Le.length?Le.buffer.head.data.length:Le.length:(De>Le.highWaterMark&&(Le.highWaterMark=qe(De)),De<=Le.length?De:Le.ended?Le.length:(Le.needReadable=!0,0))}Ie.prototype.read=function(De){E("read",De),De=parseInt(De,10);var Le=this._readableState,Oe=De;if(De!==0&&(Le.emittedReadable=!1),De===0&&Le.needReadable&&((Le.highWaterMark!==0?Le.length>=Le.highWaterMark:Le.length>0)||Le.ended))return E("read: emitReadable",Le.length,Le.ended),Le.length===0&&Le.ended?Be(this):We(this),null;if(De=Je(De,Le),De===0&&Le.ended)return Le.length===0&&Be(this),null;var xe=Le.needReadable;E("need readable",xe),(Le.length===0||Le.length-De<Le.highWaterMark)&&(xe=!0,E("length less than watermark",xe)),Le.ended||Le.reading?(xe=!1,E("reading or ended",xe)):xe&&(E("do read"),Le.reading=!0,Le.sync=!0,Le.length===0&&(Le.needReadable=!0),this._read(Le.highWaterMark),Le.sync=!1,Le.reading||(De=Je(Oe,Le)));var Ae;return De>0?Ae=Me(De,Le):Ae=null,Ae===null?(Le.needReadable=Le.length<=Le.highWaterMark,De=0):(Le.length-=De,Le.awaitDrain=0),Le.length===0&&(Le.ended||(Le.needReadable=!0),Oe!==De&&Le.ended&&Be(this)),Ae!==null&&this.emit("data",Ae),Ae};function Ye(De,Le){if(E("onEofChunk"),!Le.ended){if(Le.decoder){var Oe=Le.decoder.end();Oe&&Oe.length&&(Le.buffer.push(Oe),Le.length+=Le.objectMode?1:Oe.length)}Le.ended=!0,Le.sync?We(De):(Le.needReadable=!1,Le.emittedReadable||(Le.emittedReadable=!0,Fe(De)))}}function We(De){var Le=De._readableState;E("emitReadable",Le.needReadable,Le.emittedReadable),Le.needReadable=!1,Le.emittedReadable||(E("emitReadable",Le.flowing),Le.emittedReadable=!0,ae.nextTick(Fe,De))}function Fe(De){var Le=De._readableState;E("emitReadable_",Le.destroyed,Le.length,Le.ended),!Le.destroyed&&(Le.length||Le.ended)&&(De.emit("readable"),Le.emittedReadable=!1),Le.needReadable=!Le.flowing&&!Le.ended&&Le.length<=Le.highWaterMark,it(De)}function Ue(De,Le){Le.readingMore||(Le.readingMore=!0,ae.nextTick(at,De,Le))}function at(De,Le){for(;!Le.reading&&!Le.ended&&(Le.length<Le.highWaterMark||Le.flowing&&Le.length===0);){var Oe=Le.length;if(E("maybeReadMore read 0"),De.read(0),Oe===Le.length)break}Le.readingMore=!1}Ie.prototype._read=function(De){Te(this,new ge("_read()"))},Ie.prototype.pipe=function(De,Le){var Oe=this,xe=this._readableState;switch(xe.pipesCount){case 0:xe.pipes=De;break;case 1:xe.pipes=[xe.pipes,De];break;default:xe.pipes.push(De);break}xe.pipesCount+=1,E("pipe count=%d opts=%j",xe.pipesCount,Le);var Ae=(!Le||Le.end!==!1)&&De!==ae.stdout&&De!==ae.stderr,Ke=Ae?He:ct;xe.endEmitted?ae.nextTick(Ke):Oe.once("end",Ke),De.on("unpipe",tt);function tt(gt,St){E("onunpipe"),gt===Oe&&St&&St.hasUnpiped===!1&&(St.hasUnpiped=!0,lt())}function He(){E("onend"),De.end()}var ot=Xe(Oe);De.on("drain",ot);var mt=!1;function lt(){E("cleanup"),De.removeListener("close",vt),De.removeListener("finish",rt),De.removeListener("drain",ot),De.removeListener("error",st),De.removeListener("unpipe",tt),Oe.removeListener("end",He),Oe.removeListener("end",ct),Oe.removeListener("data",pt),mt=!0,xe.awaitDrain&&(!De._writableState||De._writableState.needDrain)&&ot()}Oe.on("data",pt);function pt(gt){E("ondata");var St=De.write(gt);E("dest.write",St),St===!1&&((xe.pipesCount===1&&xe.pipes===De||xe.pipesCount>1&&Ge(xe.pipes,De)!==-1)&&!mt&&(E("false write response, pause",xe.awaitDrain),xe.awaitDrain++),Oe.pause())}function st(gt){E("onerror",gt),ct(),De.removeListener("error",st),ue(De,"error")===0&&Te(De,gt)}je(De,"error",st);function vt(){De.removeListener("finish",rt),ct()}De.once("close",vt);function rt(){E("onfinish"),De.removeListener("close",vt),ct()}De.once("finish",rt);function ct(){E("unpipe"),Oe.unpipe(De)}return De.emit("pipe",Oe),xe.flowing||(E("pipe resume"),Oe.resume()),De};function Xe(De){return function(){var Oe=De._readableState;E("pipeOnDrain",Oe.awaitDrain),Oe.awaitDrain&&Oe.awaitDrain--,Oe.awaitDrain===0&&ue(De,"data")&&(Oe.flowing=!0,it(De))}}Ie.prototype.unpipe=function(De){var Le=this._readableState,Oe={hasUnpiped:!1};if(Le.pipesCount===0)return this;if(Le.pipesCount===1)return De&&De!==Le.pipes?this:(De||(De=Le.pipes),Le.pipes=null,Le.pipesCount=0,Le.flowing=!1,De&&De.emit("unpipe",this,Oe),this);if(!De){var xe=Le.pipes,Ae=Le.pipesCount;Le.pipes=null,Le.pipesCount=0,Le.flowing=!1;for(var Ke=0;Ke<Ae;Ke++)xe[Ke].emit("unpipe",this,{hasUnpiped:!1});return this}var tt=Ge(Le.pipes,De);return tt===-1?this:(Le.pipes.splice(tt,1),Le.pipesCount-=1,Le.pipesCount===1&&(Le.pipes=Le.pipes[0]),De.emit("unpipe",this,Oe),this)},Ie.prototype.on=function(De,Le){var Oe=ie.prototype.on.call(this,De,Le),xe=this._readableState;return De==="data"?(xe.readableListening=this.listenerCount("readable")>0,xe.flowing!==!1&&this.resume()):De==="readable"&&!xe.endEmitted&&!xe.readableListening&&(xe.readableListening=xe.needReadable=!0,xe.flowing=!1,xe.emittedReadable=!1,E("on readable",xe.length,xe.reading),xe.length?We(this):xe.reading||ae.nextTick(Ze,this)),Oe},Ie.prototype.addListener=Ie.prototype.on,Ie.prototype.removeListener=function(De,Le){var Oe=ie.prototype.removeListener.call(this,De,Le);return De==="readable"&&ae.nextTick(ut,this),Oe},Ie.prototype.removeAllListeners=function(De){var Le=ie.prototype.removeAllListeners.apply(this,arguments);return(De==="readable"||De===void 0)&&ae.nextTick(ut,this),Le};function ut(De){var Le=De._readableState;Le.readableListening=De.listenerCount("readable")>0,Le.resumeScheduled&&!Le.paused?Le.flowing=!0:De.listenerCount("data")>0&&De.resume()}function Ze(De){E("readable nexttick read 0"),De.read(0)}Ie.prototype.resume=function(){var De=this._readableState;return De.flowing||(E("resume"),De.flowing=!De.readableListening,ze(this,De)),De.paused=!1,this};function ze(De,Le){Le.resumeScheduled||(Le.resumeScheduled=!0,ae.nextTick(Re,De,Le))}function Re(De,Le){E("resume",Le.reading),Le.reading||De.read(0),Le.resumeScheduled=!1,De.emit("resume"),it(De),Le.flowing&&!Le.reading&&De.read(0)}Ie.prototype.pause=function(){return E("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(E("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function it(De){var Le=De._readableState;for(E("flow",Le.flowing);Le.flowing&&De.read()!==null;);}Ie.prototype.wrap=function(De){var Le=this,Oe=this._readableState,xe=!1;De.on("end",function(){if(E("wrapped end"),Oe.decoder&&!Oe.ended){var tt=Oe.decoder.end();tt&&tt.length&&Le.push(tt)}Le.push(null)}),De.on("data",function(tt){if(E("wrapped data"),Oe.decoder&&(tt=Oe.decoder.write(tt)),!(Oe.objectMode&&tt==null)&&!(!Oe.objectMode&&(!tt||!tt.length))){var He=Le.push(tt);He||(xe=!0,De.pause())}});for(var Ae in De)this[Ae]===void 0&&typeof De[Ae]=="function"&&(this[Ae]=function(He){return function(){return De[He].apply(De,arguments)}}(Ae));for(var Ke=0;Ke<_e.length;Ke++)De.on(_e[Ke],this.emit.bind(this,_e[Ke]));return this._read=function(tt){E("wrapped _read",tt),xe&&(xe=!1,De.resume())},this},typeof Symbol=="function"&&(Ie.prototype[Symbol.asyncIterator]=function(){return be===void 0&&(be=x("./internal/streams/async_iterator")),be(this)}),Object.defineProperty(Ie.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(Ie.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(Ie.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(Le){this._readableState&&(this._readableState.flowing=Le)}}),Ie._fromList=Me,Object.defineProperty(Ie.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function Me(De,Le){if(Le.length===0)return null;var Oe;return Le.objectMode?Oe=Le.buffer.shift():!De||De>=Le.length?(Le.decoder?Oe=Le.buffer.join(""):Le.buffer.length===1?Oe=Le.buffer.first():Oe=Le.buffer.concat(Le.length),Le.buffer.clear()):Oe=Le.buffer.consume(De,Le.decoder),Oe}function Be(De){var Le=De._readableState;E("endReadable",Le.endEmitted),Le.endEmitted||(Le.ended=!0,ae.nextTick(Qe,Le,De))}function Qe(De,Le){if(E("endReadableNT",De.endEmitted,De.length),!De.endEmitted&&De.length===0&&(De.endEmitted=!0,Le.readable=!1,Le.emit("end"),De.autoDestroy)){var Oe=Le._writableState;(!Oe||Oe.autoDestroy&&Oe.finished)&&Le.destroy()}}typeof Symbol=="function"&&(Ie.from=function(De,Le){return Pe===void 0&&(Pe=x("./internal/streams/from")),Pe(Ie,De,Le)});function Ge(De,Le){for(var Oe=0,xe=De.length;Oe<xe;Oe++)if(De[Oe]===Le)return Oe;return-1}}).call(this)}).call(this,x("_process"),typeof ft!="undefined"?ft:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"../errors":399,"./_stream_duplex":400,"./internal/streams/async_iterator":405,"./internal/streams/buffer_list":406,"./internal/streams/destroy":407,"./internal/streams/from":409,"./internal/streams/state":411,"./internal/streams/stream":412,_process:467,buffer:90,events:344,inherits:364,"string_decoder/":413,util:89}],403:[function(x,pe,de){"use strict";pe.exports=re;var ae=x("../errors").codes,ne=ae.ERR_METHOD_NOT_IMPLEMENTED,se=ae.ERR_MULTIPLE_CALLBACK,ce=ae.ERR_TRANSFORM_ALREADY_TRANSFORMING,ue=ae.ERR_TRANSFORM_WITH_LENGTH_0,ie=x("./_stream_duplex");x("inherits")(re,ie);function oe(y,E){var b=this._transformState;b.transforming=!1;var ee=b.writecb;if(ee===null)return this.emit("error",new se);b.writechunk=null,b.writecb=null,E!=null&&this.push(E),ee(y);var te=this._readableState;te.reading=!1,(te.needReadable||te.length<te.highWaterMark)&&this._read(te.highWaterMark)}function re(y){if(!(this instanceof re))return new re(y);ie.call(this,y),this._transformState={afterTransform:oe.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,y&&(typeof y.transform=="function"&&(this._transform=y.transform),typeof y.flush=="function"&&(this._flush=y.flush)),this.on("prefinish",z)}function z(){var y=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(E,b){a(y,E,b)}):a(this,null,null)}re.prototype.push=function(y,E){return this._transformState.needTransform=!1,ie.prototype.push.call(this,y,E)},re.prototype._transform=function(y,E,b){b(new ne("_transform()"))},re.prototype._write=function(y,E,b){var ee=this._transformState;if(ee.writecb=b,ee.writechunk=y,ee.writeencoding=E,!ee.transforming){var te=this._readableState;(ee.needTransform||te.needReadable||te.length<te.highWaterMark)&&this._read(te.highWaterMark)}},re.prototype._read=function(y){var E=this._transformState;E.writechunk!==null&&!E.transforming?(E.transforming=!0,this._transform(E.writechunk,E.writeencoding,E.afterTransform)):E.needTransform=!0},re.prototype._destroy=function(y,E){ie.prototype._destroy.call(this,y,function(b){E(b)})};function a(y,E,b){if(E)return y.emit("error",E);if(b!=null&&y.push(b),y._writableState.length)throw new ue;if(y._transformState.transforming)throw new ce;return y.push(null)}},{"../errors":399,"./_stream_duplex":400,inherits:364}],404:[function(x,pe,de){(function(ae,ne){(function(){"use strict";pe.exports=Ce;function se(it,Me,Be){this.chunk=it,this.encoding=Me,this.callback=Be,this.next=null}function ce(it){var Me=this;this.next=null,this.entry=null,this.finish=function(){Re(Me,it)}}var ue;Ce.WritableState=_e;var ie={deprecate:x("util-deprecate")},oe=x("./internal/streams/stream"),re=x("buffer").Buffer,z=(typeof ne!="undefined"?ne:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function a(it){return re.from(it)}function y(it){return re.isBuffer(it)||it instanceof z}var E=x("./internal/streams/destroy"),b=x("./internal/streams/state"),ee=b.getHighWaterMark,te=x("../errors").codes,le=te.ERR_INVALID_ARG_TYPE,fe=te.ERR_METHOD_NOT_IMPLEMENTED,he=te.ERR_MULTIPLE_CALLBACK,me=te.ERR_STREAM_CANNOT_PIPE,ge=te.ERR_STREAM_DESTROYED,Se=te.ERR_STREAM_NULL_VALUES,ve=te.ERR_STREAM_WRITE_AFTER_END,be=te.ERR_UNKNOWN_ENCODING,Pe=E.errorOrDestroy;x("inherits")(Ce,oe);function Te(){}function _e(it,Me,Be){ue=ue||x("./_stream_duplex"),it=it||{},typeof Be!="boolean"&&(Be=Me instanceof ue),this.objectMode=!!it.objectMode,Be&&(this.objectMode=this.objectMode||!!it.writableObjectMode),this.highWaterMark=ee(this,it,"writableHighWaterMark",Be),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Qe=it.decodeStrings===!1;this.decodeStrings=!Qe,this.defaultEncoding=it.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Ge){Ye(Me,Ge)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=it.emitClose!==!1,this.autoDestroy=!!it.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new ce(this)}_e.prototype.getBuffer=function(){for(var Me=this.bufferedRequest,Be=[];Me;)Be.push(Me),Me=Me.next;return Be},function(){try{Object.defineProperty(_e.prototype,"buffer",{get:ie.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(it){}}();var je;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(je=Function.prototype[Symbol.hasInstance],Object.defineProperty(Ce,Symbol.hasInstance,{value:function(Me){return je.call(this,Me)?!0:this!==Ce?!1:Me&&Me._writableState instanceof _e}})):je=function(Me){return Me instanceof this};function Ce(it){ue=ue||x("./_stream_duplex");var Me=this instanceof ue;if(!Me&&!je.call(Ce,this))return new Ce(it);this._writableState=new _e(it,this,Me),this.writable=!0,it&&(typeof it.write=="function"&&(this._write=it.write),typeof it.writev=="function"&&(this._writev=it.writev),typeof it.destroy=="function"&&(this._destroy=it.destroy),typeof it.final=="function"&&(this._final=it.final)),oe.call(this)}Ce.prototype.pipe=function(){Pe(this,new me)};function Ie(it,Me){var Be=new ve;Pe(it,Be),ae.nextTick(Me,Be)}function ke(it,Me,Be,Qe){var Ge;return Be===null?Ge=new Se:typeof Be!="string"&&!Me.objectMode&&(Ge=new le("chunk",["string","Buffer"],Be)),Ge?(Pe(it,Ge),ae.nextTick(Qe,Ge),!1):!0}Ce.prototype.write=function(it,Me,Be){var Qe=this._writableState,Ge=!1,De=!Qe.objectMode&&y(it);return De&&!re.isBuffer(it)&&(it=a(it)),typeof Me=="function"&&(Be=Me,Me=null),De?Me="buffer":Me||(Me=Qe.defaultEncoding),typeof Be!="function"&&(Be=Te),Qe.ending?Ie(this,Be):(De||ke(this,Qe,it,Be))&&(Qe.pendingcb++,Ge=Ne(this,Qe,De,it,Me,Be)),Ge},Ce.prototype.cork=function(){this._writableState.corked++},Ce.prototype.uncork=function(){var it=this._writableState;it.corked&&(it.corked--,!it.writing&&!it.corked&&!it.bufferProcessing&&it.bufferedRequest&&Ue(this,it))},Ce.prototype.setDefaultEncoding=function(Me){if(typeof Me=="string"&&(Me=Me.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Me+"").toLowerCase())>-1))throw new be(Me);return this._writableState.defaultEncoding=Me,this},Object.defineProperty(Ce.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function $e(it,Me,Be){return!it.objectMode&&it.decodeStrings!==!1&&typeof Me=="string"&&(Me=re.from(Me,Be)),Me}Object.defineProperty(Ce.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Ne(it,Me,Be,Qe,Ge,De){if(!Be){var Le=$e(Me,Qe,Ge);Qe!==Le&&(Be=!0,Ge="buffer",Qe=Le)}var Oe=Me.objectMode?1:Qe.length;Me.length+=Oe;var xe=Me.length<Me.highWaterMark;if(xe||(Me.needDrain=!0),Me.writing||Me.corked){var Ae=Me.lastBufferedRequest;Me.lastBufferedRequest={chunk:Qe,encoding:Ge,isBuf:Be,callback:De,next:null},Ae?Ae.next=Me.lastBufferedRequest:Me.bufferedRequest=Me.lastBufferedRequest,Me.bufferedRequestCount+=1}else nt(it,Me,!1,Oe,Qe,Ge,De);return xe}function nt(it,Me,Be,Qe,Ge,De,Le){Me.writelen=Qe,Me.writecb=Le,Me.writing=!0,Me.sync=!0,Me.destroyed?Me.onwrite(new ge("write")):Be?it._writev(Ge,Me.onwrite):it._write(Ge,De,Me.onwrite),Me.sync=!1}function qe(it,Me,Be,Qe,Ge){--Me.pendingcb,Be?(ae.nextTick(Ge,Qe),ae.nextTick(Ze,it,Me),it._writableState.errorEmitted=!0,Pe(it,Qe)):(Ge(Qe),it._writableState.errorEmitted=!0,Pe(it,Qe),Ze(it,Me))}function Je(it){it.writing=!1,it.writecb=null,it.length-=it.writelen,it.writelen=0}function Ye(it,Me){var Be=it._writableState,Qe=Be.sync,Ge=Be.writecb;if(typeof Ge!="function")throw new he;if(Je(Be),Me)qe(it,Be,Qe,Me,Ge);else{var De=at(Be)||it.destroyed;!De&&!Be.corked&&!Be.bufferProcessing&&Be.bufferedRequest&&Ue(it,Be),Qe?ae.nextTick(We,it,Be,De,Ge):We(it,Be,De,Ge)}}function We(it,Me,Be,Qe){Be||Fe(it,Me),Me.pendingcb--,Qe(),Ze(it,Me)}function Fe(it,Me){Me.length===0&&Me.needDrain&&(Me.needDrain=!1,it.emit("drain"))}function Ue(it,Me){Me.bufferProcessing=!0;var Be=Me.bufferedRequest;if(it._writev&&Be&&Be.next){var Qe=Me.bufferedRequestCount,Ge=new Array(Qe),De=Me.corkedRequestsFree;De.entry=Be;for(var Le=0,Oe=!0;Be;)Ge[Le]=Be,Be.isBuf||(Oe=!1),Be=Be.next,Le+=1;Ge.allBuffers=Oe,nt(it,Me,!0,Me.length,Ge,"",De.finish),Me.pendingcb++,Me.lastBufferedRequest=null,De.next?(Me.corkedRequestsFree=De.next,De.next=null):Me.corkedRequestsFree=new ce(Me),Me.bufferedRequestCount=0}else{for(;Be;){var xe=Be.chunk,Ae=Be.encoding,Ke=Be.callback,tt=Me.objectMode?1:xe.length;if(nt(it,Me,!1,tt,xe,Ae,Ke),Be=Be.next,Me.bufferedRequestCount--,Me.writing)break}Be===null&&(Me.lastBufferedRequest=null)}Me.bufferedRequest=Be,Me.bufferProcessing=!1}Ce.prototype._write=function(it,Me,Be){Be(new fe("_write()"))},Ce.prototype._writev=null,Ce.prototype.end=function(it,Me,Be){var Qe=this._writableState;return typeof it=="function"?(Be=it,it=null,Me=null):typeof Me=="function"&&(Be=Me,Me=null),it!=null&&this.write(it,Me),Qe.corked&&(Qe.corked=1,this.uncork()),Qe.ending||ze(this,Qe,Be),this},Object.defineProperty(Ce.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function at(it){return it.ending&&it.length===0&&it.bufferedRequest===null&&!it.finished&&!it.writing}function Xe(it,Me){it._final(function(Be){Me.pendingcb--,Be&&Pe(it,Be),Me.prefinished=!0,it.emit("prefinish"),Ze(it,Me)})}function ut(it,Me){!Me.prefinished&&!Me.finalCalled&&(typeof it._final=="function"&&!Me.destroyed?(Me.pendingcb++,Me.finalCalled=!0,ae.nextTick(Xe,it,Me)):(Me.prefinished=!0,it.emit("prefinish")))}function Ze(it,Me){var Be=at(Me);if(Be&&(ut(it,Me),Me.pendingcb===0&&(Me.finished=!0,it.emit("finish"),Me.autoDestroy))){var Qe=it._readableState;(!Qe||Qe.autoDestroy&&Qe.endEmitted)&&it.destroy()}return Be}function ze(it,Me,Be){Me.ending=!0,Ze(it,Me),Be&&(Me.finished?ae.nextTick(Be):it.once("finish",Be)),Me.ended=!0,it.writable=!1}function Re(it,Me,Be){var Qe=it.entry;for(it.entry=null;Qe;){var Ge=Qe.callback;Me.pendingcb--,Ge(Be),Qe=Qe.next}Me.corkedRequestsFree.next=it}Object.defineProperty(Ce.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(Me){this._writableState&&(this._writableState.destroyed=Me)}}),Ce.prototype.destroy=E.destroy,Ce.prototype._undestroy=E.undestroy,Ce.prototype._destroy=function(it,Me){Me(it)}}).call(this)}).call(this,x("_process"),typeof ft!="undefined"?ft:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"../errors":399,"./_stream_duplex":400,"./internal/streams/destroy":407,"./internal/streams/state":411,"./internal/streams/stream":412,_process:467,buffer:90,inherits:364,"util-deprecate":416}],405:[function(x,pe,de){(function(ae){(function(){"use strict";var ne;function se(Se,ve,be){return ve=ce(ve),ve in Se?Object.defineProperty(Se,ve,{value:be,enumerable:!0,configurable:!0,writable:!0}):Se[ve]=be,Se}function ce(Se){var ve=ue(Se,"string");return typeof ve=="symbol"?ve:String(ve)}function ue(Se,ve){if(typeof Se!="object"||Se===null)return Se;var be=Se[Symbol.toPrimitive];if(be!==void 0){var Pe=be.call(Se,ve||"default");if(typeof Pe!="object")return Pe;throw new TypeError("@@toPrimitive must return a primitive value.")}return(ve==="string"?String:Number)(Se)}var ie=x("./end-of-stream"),oe=Symbol("lastResolve"),re=Symbol("lastReject"),z=Symbol("error"),a=Symbol("ended"),y=Symbol("lastPromise"),E=Symbol("handlePromise"),b=Symbol("stream");function ee(Se,ve){return{value:Se,done:ve}}function te(Se){var ve=Se[oe];if(ve!==null){var be=Se[b].read();be!==null&&(Se[y]=null,Se[oe]=null,Se[re]=null,ve(ee(be,!1)))}}function le(Se){ae.nextTick(te,Se)}function fe(Se,ve){return function(be,Pe){Se.then(function(){if(ve[a]){be(ee(void 0,!0));return}ve[E](be,Pe)},Pe)}}var he=Object.getPrototypeOf(function(){}),me=Object.setPrototypeOf((ne={get stream(){return this[b]},next:function(){var ve=this,be=this[z];if(be!==null)return Promise.reject(be);if(this[a])return Promise.resolve(ee(void 0,!0));if(this[b].destroyed)return new Promise(function(je,Ce){ae.nextTick(function(){ve[z]?Ce(ve[z]):je(ee(void 0,!0))})});var Pe=this[y],Te;if(Pe)Te=new Promise(fe(Pe,this));else{var _e=this[b].read();if(_e!==null)return Promise.resolve(ee(_e,!1));Te=new Promise(this[E])}return this[y]=Te,Te}},se(ne,Symbol.asyncIterator,function(){return this}),se(ne,"return",function(){var ve=this;return new Promise(function(be,Pe){ve[b].destroy(null,function(Te){if(Te){Pe(Te);return}be(ee(void 0,!0))})})}),ne),he),ge=function(ve){var be,Pe=Object.create(me,(be={},se(be,b,{value:ve,writable:!0}),se(be,oe,{value:null,writable:!0}),se(be,re,{value:null,writable:!0}),se(be,z,{value:null,writable:!0}),se(be,a,{value:ve._readableState.endEmitted,writable:!0}),se(be,E,{value:function(_e,je){var Ce=Pe[b].read();Ce?(Pe[y]=null,Pe[oe]=null,Pe[re]=null,_e(ee(Ce,!1))):(Pe[oe]=_e,Pe[re]=je)},writable:!0}),be));return Pe[y]=null,ie(ve,function(Te){if(Te&&Te.code!=="ERR_STREAM_PREMATURE_CLOSE"){var _e=Pe[re];_e!==null&&(Pe[y]=null,Pe[oe]=null,Pe[re]=null,_e(Te)),Pe[z]=Te;return}var je=Pe[oe];je!==null&&(Pe[y]=null,Pe[oe]=null,Pe[re]=null,je(ee(void 0,!0))),Pe[a]=!0}),ve.on("readable",le.bind(null,Pe)),Pe};pe.exports=ge}).call(this)}).call(this,x("_process"))},{"./end-of-stream":408,_process:467}],406:[function(x,pe,de){"use strict";function ae(te,le){var fe=Object.keys(te);if(Object.getOwnPropertySymbols){var he=Object.getOwnPropertySymbols(te);le&&(he=he.filter(function(me){return Object.getOwnPropertyDescriptor(te,me).enumerable})),fe.push.apply(fe,he)}return fe}function ne(te){for(var le=1;le<arguments.length;le++){var fe=arguments[le]!=null?arguments[le]:{};le%2?ae(Object(fe),!0).forEach(function(he){se(te,he,fe[he])}):Object.getOwnPropertyDescriptors?Object.defineProperties(te,Object.getOwnPropertyDescriptors(fe)):ae(Object(fe)).forEach(function(he){Object.defineProperty(te,he,Object.getOwnPropertyDescriptor(fe,he))})}return te}function se(te,le,fe){return le=oe(le),le in te?Object.defineProperty(te,le,{value:fe,enumerable:!0,configurable:!0,writable:!0}):te[le]=fe,te}function ce(te,le){if(!(te instanceof le))throw new TypeError("Cannot call a class as a function")}function ue(te,le){for(var fe=0;fe<le.length;fe++){var he=le[fe];he.enumerable=he.enumerable||!1,he.configurable=!0,"value"in he&&(he.writable=!0),Object.defineProperty(te,oe(he.key),he)}}function ie(te,le,fe){return le&&ue(te.prototype,le),fe&&ue(te,fe),Object.defineProperty(te,"prototype",{writable:!1}),te}function oe(te){var le=re(te,"string");return typeof le=="symbol"?le:String(le)}function re(te,le){if(typeof te!="object"||te===null)return te;var fe=te[Symbol.toPrimitive];if(fe!==void 0){var he=fe.call(te,le||"default");if(typeof he!="object")return he;throw new TypeError("@@toPrimitive must return a primitive value.")}return(le==="string"?String:Number)(te)}var z=x("buffer"),a=z.Buffer,y=x("util"),E=y.inspect,b=E&&E.custom||"inspect";function ee(te,le,fe){a.prototype.copy.call(te,le,fe)}pe.exports=function(){function te(){ce(this,te),this.head=null,this.tail=null,this.length=0}return ie(te,[{key:"push",value:function(fe){var he={data:fe,next:null};this.length>0?this.tail.next=he:this.head=he,this.tail=he,++this.length}},{key:"unshift",value:function(fe){var he={data:fe,next:this.head};this.length===0&&(this.tail=he),this.head=he,++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 he=this.head,me=""+he.data;he=he.next;)me+=fe+he.data;return me}},{key:"concat",value:function(fe){if(this.length===0)return a.alloc(0);for(var he=a.allocUnsafe(fe>>>0),me=this.head,ge=0;me;)ee(me.data,he,ge),ge+=me.data.length,me=me.next;return he}},{key:"consume",value:function(fe,he){var me;return fe<this.head.data.length?(me=this.head.data.slice(0,fe),this.head.data=this.head.data.slice(fe)):fe===this.head.data.length?me=this.shift():me=he?this._getString(fe):this._getBuffer(fe),me}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(fe){var he=this.head,me=1,ge=he.data;for(fe-=ge.length;he=he.next;){var Se=he.data,ve=fe>Se.length?Se.length:fe;if(ve===Se.length?ge+=Se:ge+=Se.slice(0,fe),fe-=ve,fe===0){ve===Se.length?(++me,he.next?this.head=he.next:this.head=this.tail=null):(this.head=he,he.data=Se.slice(ve));break}++me}return this.length-=me,ge}},{key:"_getBuffer",value:function(fe){var he=a.allocUnsafe(fe),me=this.head,ge=1;for(me.data.copy(he),fe-=me.data.length;me=me.next;){var Se=me.data,ve=fe>Se.length?Se.length:fe;if(Se.copy(he,he.length-fe,0,ve),fe-=ve,fe===0){ve===Se.length?(++ge,me.next?this.head=me.next:this.head=this.tail=null):(this.head=me,me.data=Se.slice(ve));break}++ge}return this.length-=ge,he}},{key:b,value:function(fe,he){return E(this,ne(ne({},he),{},{depth:0,customInspect:!1}))}}]),te}()},{buffer:90,util:89}],407:[function(x,pe,de){(function(ae){(function(){"use strict";function ne(re,z){var a=this,y=this._readableState&&this._readableState.destroyed,E=this._writableState&&this._writableState.destroyed;return y||E?(z?z(re):re&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,ae.nextTick(ie,this,re)):ae.nextTick(ie,this,re)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(re||null,function(b){!z&&b?a._writableState?a._writableState.errorEmitted?ae.nextTick(ce,a):(a._writableState.errorEmitted=!0,ae.nextTick(se,a,b)):ae.nextTick(se,a,b):z?(ae.nextTick(ce,a),z(b)):ae.nextTick(ce,a)}),this)}function se(re,z){ie(re,z),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 ie(re,z){re.emit("error",z)}function oe(re,z){var a=re._readableState,y=re._writableState;a&&a.autoDestroy||y&&y.autoDestroy?re.destroy(z):re.emit("error",z)}pe.exports={destroy:ne,undestroy:ue,errorOrDestroy:oe}}).call(this)}).call(this,x("_process"))},{_process:467}],408:[function(x,pe,de){"use strict";var ae=x("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function ne(ie){var oe=!1;return function(){if(!oe){oe=!0;for(var re=arguments.length,z=new Array(re),a=0;a<re;a++)z[a]=arguments[a];ie.apply(this,z)}}}function se(){}function ce(ie){return ie.setHeader&&typeof ie.abort=="function"}function ue(ie,oe,re){if(typeof oe=="function")return ue(ie,null,oe);oe||(oe={}),re=ne(re||se);var z=oe.readable||oe.readable!==!1&&ie.readable,a=oe.writable||oe.writable!==!1&&ie.writable,y=function(){ie.writable||b()},E=ie._writableState&&ie._writableState.finished,b=function(){a=!1,E=!0,z||re.call(ie)},ee=ie._readableState&&ie._readableState.endEmitted,te=function(){z=!1,ee=!0,a||re.call(ie)},le=function(ge){re.call(ie,ge)},fe=function(){var ge;if(z&&!ee)return(!ie._readableState||!ie._readableState.ended)&&(ge=new ae),re.call(ie,ge);if(a&&!E)return(!ie._writableState||!ie._writableState.ended)&&(ge=new ae),re.call(ie,ge)},he=function(){ie.req.on("finish",b)};return ce(ie)?(ie.on("complete",b),ie.on("abort",fe),ie.req?he():ie.on("request",he)):a&&!ie._writableState&&(ie.on("end",y),ie.on("close",y)),ie.on("end",te),ie.on("finish",b),oe.error!==!1&&ie.on("error",le),ie.on("close",fe),function(){ie.removeListener("complete",b),ie.removeListener("abort",fe),ie.removeListener("request",he),ie.req&&ie.req.removeListener("finish",b),ie.removeListener("end",y),ie.removeListener("close",y),ie.removeListener("finish",b),ie.removeListener("end",te),ie.removeListener("error",le),ie.removeListener("close",fe)}}pe.exports=ue},{"../../../errors":399}],409:[function(x,pe,de){pe.exports=function(){throw new Error("Readable.from is not available in the browser")}},{}],410:[function(x,pe,de){"use strict";var ae;function ne(b){var ee=!1;return function(){ee||(ee=!0,b.apply(void 0,arguments))}}var se=x("../../../errors").codes,ce=se.ERR_MISSING_ARGS,ue=se.ERR_STREAM_DESTROYED;function ie(b){if(b)throw b}function oe(b){return b.setHeader&&typeof b.abort=="function"}function re(b,ee,te,le){le=ne(le);var fe=!1;b.on("close",function(){fe=!0}),ae===void 0&&(ae=x("./end-of-stream")),ae(b,{readable:ee,writable:te},function(me){if(me)return le(me);fe=!0,le()});var he=!1;return function(me){if(!fe&&!he){if(he=!0,oe(b))return b.abort();if(typeof b.destroy=="function")return b.destroy();le(me||new ue("pipe"))}}}function z(b){b()}function a(b,ee){return b.pipe(ee)}function y(b){return!b.length||typeof b[b.length-1]!="function"?ie:b.pop()}function E(){for(var b=arguments.length,ee=new Array(b),te=0;te<b;te++)ee[te]=arguments[te];var le=y(ee);if(Array.isArray(ee[0])&&(ee=ee[0]),ee.length<2)throw new ce("streams");var fe,he=ee.map(function(me,ge){var Se=ge<ee.length-1,ve=ge>0;return re(me,Se,ve,function(be){fe||(fe=be),be&&he.forEach(z),!Se&&(he.forEach(z),le(fe))})});return ee.reduce(a)}pe.exports=E},{"../../../errors":399,"./end-of-stream":408}],411:[function(x,pe,de){"use strict";var ae=x("../../../errors").codes.ERR_INVALID_OPT_VALUE;function ne(ce,ue,ie){return ce.highWaterMark!=null?ce.highWaterMark:ue?ce[ie]:null}function se(ce,ue,ie,oe){var re=ne(ue,oe,ie);if(re!=null){if(!(isFinite(re)&&Math.floor(re)===re)||re<0){var z=oe?ie:"highWaterMark";throw new ae(z,re)}return Math.floor(re)}return ce.objectMode?16:16*1024}pe.exports={getHighWaterMark:se}},{"../../../errors":399}],412:[function(x,pe,de){arguments[4][393][0].apply(de,arguments)},{dup:393,events:344}],413:[function(x,pe,de){"use strict";var ae=x("safe-buffer").Buffer,ne=ae.isEncoding||function(he){switch(he=""+he,he&&he.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 se(he){if(!he)return"utf8";for(var me;;)switch(he){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 he;default:if(me)return;he=(""+he).toLowerCase(),me=!0}}function ce(he){var me=se(he);if(typeof me!="string"&&(ae.isEncoding===ne||!ne(he)))throw new Error("Unknown encoding: "+he);return me||he}de.StringDecoder=ue;function ue(he){this.encoding=ce(he);var me;switch(this.encoding){case"utf16le":this.text=E,this.end=b,me=4;break;case"utf8":this.fillLast=z,me=4;break;case"base64":this.text=ee,this.end=te,me=3;break;default:this.write=le,this.end=fe;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=ae.allocUnsafe(me)}ue.prototype.write=function(he){if(he.length===0)return"";var me,ge;if(this.lastNeed){if(me=this.fillLast(he),me===void 0)return"";ge=this.lastNeed,this.lastNeed=0}else ge=0;return ge<he.length?me?me+this.text(he,ge):this.text(he,ge):me||""},ue.prototype.end=y,ue.prototype.text=a,ue.prototype.fillLast=function(he){if(this.lastNeed<=he.length)return he.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);he.copy(this.lastChar,this.lastTotal-this.lastNeed,0,he.length),this.lastNeed-=he.length};function ie(he){return he<=127?0:he>>5===6?2:he>>4===14?3:he>>3===30?4:he>>6===2?-1:-2}function oe(he,me,ge){var Se=me.length-1;if(Se<ge)return 0;var ve=ie(me[Se]);return ve>=0?(ve>0&&(he.lastNeed=ve-1),ve):--Se<ge||ve===-2?0:(ve=ie(me[Se]),ve>=0?(ve>0&&(he.lastNeed=ve-2),ve):--Se<ge||ve===-2?0:(ve=ie(me[Se]),ve>=0?(ve>0&&(ve===2?ve=0:he.lastNeed=ve-3),ve):0))}function re(he,me,ge){if((me[0]&192)!==128)return he.lastNeed=0,"\uFFFD";if(he.lastNeed>1&&me.length>1){if((me[1]&192)!==128)return he.lastNeed=1,"\uFFFD";if(he.lastNeed>2&&me.length>2&&(me[2]&192)!==128)return he.lastNeed=2,"\uFFFD"}}function z(he){var me=this.lastTotal-this.lastNeed,ge=re(this,he,me);if(ge!==void 0)return ge;if(this.lastNeed<=he.length)return he.copy(this.lastChar,me,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);he.copy(this.lastChar,me,0,he.length),this.lastNeed-=he.length}function a(he,me){var ge=oe(this,he,me);if(!this.lastNeed)return he.toString("utf8",me);this.lastTotal=ge;var Se=he.length-(ge-this.lastNeed);return he.copy(this.lastChar,0,Se),he.toString("utf8",me,Se)}function y(he){var me=he&&he.length?this.write(he):"";return this.lastNeed?me+"\uFFFD":me}function E(he,me){if((he.length-me)%2===0){var ge=he.toString("utf16le",me);if(ge){var Se=ge.charCodeAt(ge.length-1);if(Se>=55296&&Se<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=he[he.length-2],this.lastChar[1]=he[he.length-1],ge.slice(0,-1)}return ge}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=he[he.length-1],he.toString("utf16le",me,he.length-1)}function b(he){var me=he&&he.length?this.write(he):"";if(this.lastNeed){var ge=this.lastTotal-this.lastNeed;return me+this.lastChar.toString("utf16le",0,ge)}return me}function ee(he,me){var ge=(he.length-me)%3;return ge===0?he.toString("base64",me):(this.lastNeed=3-ge,this.lastTotal=3,ge===1?this.lastChar[0]=he[he.length-1]:(this.lastChar[0]=he[he.length-2],this.lastChar[1]=he[he.length-1]),he.toString("base64",me,he.length-ge))}function te(he){var me=he&&he.length?this.write(he):"";return this.lastNeed?me+this.lastChar.toString("base64",0,3-this.lastNeed):me}function le(he){return he.toString(this.encoding)}function fe(he){return he&&he.length?this.write(he):""}},{"safe-buffer":396}],414:[function(x,pe,de){(function(ae,ne){(function(){var se=x("process/browser.js").nextTick,ce=Function.prototype.apply,ue=Array.prototype.slice,ie={},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(z){z.close()};function re(z,a){this._id=z,this._clearFn=a}re.prototype.unref=re.prototype.ref=function(){},re.prototype.close=function(){this._clearFn.call(window,this._id)},de.enroll=function(z,a){clearTimeout(z._idleTimeoutId),z._idleTimeout=a},de.unenroll=function(z){clearTimeout(z._idleTimeoutId),z._idleTimeout=-1},de._unrefActive=de.active=function(z){clearTimeout(z._idleTimeoutId);var a=z._idleTimeout;a>=0&&(z._idleTimeoutId=setTimeout(function(){z._onTimeout&&z._onTimeout()},a))},de.setImmediate=typeof ae=="function"?ae:function(z){var a=oe++,y=arguments.length<2?!1:ue.call(arguments,1);return ie[a]=!0,se(function(){ie[a]&&(y?z.apply(null,y):z.call(null),de.clearImmediate(a))}),a},de.clearImmediate=typeof ne=="function"?ne:function(z){delete ie[z]}}).call(this)}).call(this,x("timers").setImmediate,x("timers").clearImmediate)},{"process/browser.js":381,timers:414}],415:[function(x,pe,de){var ae=x("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(ae.isBuffer(ne)){for(var se=new Uint8Array(ne.length),ce=ne.length,ue=0;ue<ce;ue++)se[ue]=ne[ue];return se.buffer}else throw new Error("Argument must be a Buffer")}},{buffer:90}],416:[function(x,pe,de){(function(ae){(function(){pe.exports=ne;function ne(ce,ue){if(se("noDeprecation"))return ce;var ie=!1;function oe(){if(!ie){if(se("throwDeprecation"))throw new Error(ue);se("traceDeprecation")?console.trace(ue):console.warn(ue),ie=!0}return ce.apply(this,arguments)}return oe}function se(ce){try{if(!ae.localStorage)return!1}catch(ie){return!1}var ue=ae.localStorage[ce];return ue==null?!1:String(ue).toLowerCase()==="true"}}).call(this)}).call(this,typeof ft!="undefined"?ft:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],417:[function(x,pe,de){arguments[4][84][0].apply(de,arguments)},{dup:84}],418:[function(x,pe,de){"use strict";var ae=x("is-arguments"),ne=x("is-generator-function"),se=x("which-typed-array"),ce=x("is-typed-array");function ue(Ae){return Ae.call.bind(Ae)}var ie=typeof BigInt!="undefined",oe=typeof Symbol!="undefined",re=ue(Object.prototype.toString),z=ue(Number.prototype.valueOf),a=ue(String.prototype.valueOf),y=ue(Boolean.prototype.valueOf);if(ie)var E=ue(BigInt.prototype.valueOf);if(oe)var b=ue(Symbol.prototype.valueOf);function ee(Ae,Ke){if(typeof Ae!="object")return!1;try{return Ke(Ae),!0}catch(tt){return!1}}de.isArgumentsObject=ae,de.isGeneratorFunction=ne,de.isTypedArray=ce;function te(Ae){return typeof Promise!="undefined"&&Ae instanceof Promise||Ae!==null&&typeof Ae=="object"&&typeof Ae.then=="function"&&typeof Ae.catch=="function"}de.isPromise=te;function le(Ae){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(Ae):ce(Ae)||Ue(Ae)}de.isArrayBufferView=le;function fe(Ae){return se(Ae)==="Uint8Array"}de.isUint8Array=fe;function he(Ae){return se(Ae)==="Uint8ClampedArray"}de.isUint8ClampedArray=he;function me(Ae){return se(Ae)==="Uint16Array"}de.isUint16Array=me;function ge(Ae){return se(Ae)==="Uint32Array"}de.isUint32Array=ge;function Se(Ae){return se(Ae)==="Int8Array"}de.isInt8Array=Se;function ve(Ae){return se(Ae)==="Int16Array"}de.isInt16Array=ve;function be(Ae){return se(Ae)==="Int32Array"}de.isInt32Array=be;function Pe(Ae){return se(Ae)==="Float32Array"}de.isFloat32Array=Pe;function Te(Ae){return se(Ae)==="Float64Array"}de.isFloat64Array=Te;function _e(Ae){return se(Ae)==="BigInt64Array"}de.isBigInt64Array=_e;function je(Ae){return se(Ae)==="BigUint64Array"}de.isBigUint64Array=je;function Ce(Ae){return re(Ae)==="[object Map]"}Ce.working=typeof Map!="undefined"&&Ce(new Map);function Ie(Ae){return typeof Map=="undefined"?!1:Ce.working?Ce(Ae):Ae instanceof Map}de.isMap=Ie;function ke(Ae){return re(Ae)==="[object Set]"}ke.working=typeof Set!="undefined"&&ke(new Set);function $e(Ae){return typeof Set=="undefined"?!1:ke.working?ke(Ae):Ae instanceof Set}de.isSet=$e;function Ne(Ae){return re(Ae)==="[object WeakMap]"}Ne.working=typeof WeakMap!="undefined"&&Ne(new WeakMap);function nt(Ae){return typeof WeakMap=="undefined"?!1:Ne.working?Ne(Ae):Ae instanceof WeakMap}de.isWeakMap=nt;function qe(Ae){return re(Ae)==="[object WeakSet]"}qe.working=typeof WeakSet!="undefined"&&qe(new WeakSet);function Je(Ae){return qe(Ae)}de.isWeakSet=Je;function Ye(Ae){return re(Ae)==="[object ArrayBuffer]"}Ye.working=typeof ArrayBuffer!="undefined"&&Ye(new ArrayBuffer);function We(Ae){return typeof ArrayBuffer=="undefined"?!1:Ye.working?Ye(Ae):Ae instanceof ArrayBuffer}de.isArrayBuffer=We;function Fe(Ae){return re(Ae)==="[object DataView]"}Fe.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&Fe(new DataView(new ArrayBuffer(1),0,1));function Ue(Ae){return typeof DataView=="undefined"?!1:Fe.working?Fe(Ae):Ae instanceof DataView}de.isDataView=Ue;var at=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function Xe(Ae){return re(Ae)==="[object SharedArrayBuffer]"}function ut(Ae){return typeof at=="undefined"?!1:(typeof Xe.working=="undefined"&&(Xe.working=Xe(new at)),Xe.working?Xe(Ae):Ae instanceof at)}de.isSharedArrayBuffer=ut;function Ze(Ae){return re(Ae)==="[object AsyncFunction]"}de.isAsyncFunction=Ze;function ze(Ae){return re(Ae)==="[object Map Iterator]"}de.isMapIterator=ze;function Re(Ae){return re(Ae)==="[object Set Iterator]"}de.isSetIterator=Re;function it(Ae){return re(Ae)==="[object Generator]"}de.isGeneratorObject=it;function Me(Ae){return re(Ae)==="[object WebAssembly.Module]"}de.isWebAssemblyCompiledModule=Me;function Be(Ae){return ee(Ae,z)}de.isNumberObject=Be;function Qe(Ae){return ee(Ae,a)}de.isStringObject=Qe;function Ge(Ae){return ee(Ae,y)}de.isBooleanObject=Ge;function De(Ae){return ie&&ee(Ae,E)}de.isBigIntObject=De;function Le(Ae){return oe&&ee(Ae,b)}de.isSymbolObject=Le;function Oe(Ae){return Be(Ae)||Qe(Ae)||Ge(Ae)||De(Ae)||Le(Ae)}de.isBoxedPrimitive=Oe;function xe(Ae){return typeof Uint8Array!="undefined"&&(We(Ae)||ut(Ae))}de.isAnyArrayBuffer=xe,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(Ae){Object.defineProperty(de,Ae,{enumerable:!1,value:function(){throw new Error(Ae+" is not supported in userland")}})})},{"is-arguments":365,"is-generator-function":368,"is-typed-array":369,"which-typed-array":420}],419:[function(x,pe,de){(function(ae){(function(){var ne=Object.getOwnPropertyDescriptors||function(at){for(var Xe=Object.keys(at),ut={},Ze=0;Ze<Xe.length;Ze++)ut[Xe[Ze]]=Object.getOwnPropertyDescriptor(at,Xe[Ze]);return ut},se=/%[sdj%]/g;de.format=function(Ue){if(!ve(Ue)){for(var at=[],Xe=0;Xe<arguments.length;Xe++)at.push(oe(arguments[Xe]));return at.join(" ")}for(var Xe=1,ut=arguments,Ze=ut.length,ze=String(Ue).replace(se,function(it){if(it==="%%")return"%";if(Xe>=Ze)return it;switch(it){case"%s":return String(ut[Xe++]);case"%d":return Number(ut[Xe++]);case"%j":try{return JSON.stringify(ut[Xe++])}catch(Me){return"[Circular]"}default:return it}}),Re=ut[Xe];Xe<Ze;Re=ut[++Xe])me(Re)||!_e(Re)?ze+=" "+Re:ze+=" "+oe(Re);return ze},de.deprecate=function(Ue,at){if(typeof ae!="undefined"&&ae.noDeprecation===!0)return Ue;if(typeof ae=="undefined")return function(){return de.deprecate(Ue,at).apply(this,arguments)};var Xe=!1;function ut(){if(!Xe){if(ae.throwDeprecation)throw new Error(at);ae.traceDeprecation?console.trace(at):console.error(at),Xe=!0}return Ue.apply(this,arguments)}return ut};var ce={},ue=/^$/;if(ae.env.NODE_DEBUG){var ie=ae.env.NODE_DEBUG;ie=ie.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),ue=new RegExp("^"+ie+"$","i")}de.debuglog=function(Ue){if(Ue=Ue.toUpperCase(),!ce[Ue])if(ue.test(Ue)){var at=ae.pid;ce[Ue]=function(){var Xe=de.format.apply(de,arguments);console.error("%s %d: %s",Ue,at,Xe)}}else ce[Ue]=function(){};return ce[Ue]};function oe(Ue,at){var Xe={seen:[],stylize:z};return arguments.length>=3&&(Xe.depth=arguments[2]),arguments.length>=4&&(Xe.colors=arguments[3]),he(at)?Xe.showHidden=at:at&&de._extend(Xe,at),Pe(Xe.showHidden)&&(Xe.showHidden=!1),Pe(Xe.depth)&&(Xe.depth=2),Pe(Xe.colors)&&(Xe.colors=!1),Pe(Xe.customInspect)&&(Xe.customInspect=!0),Xe.colors&&(Xe.stylize=re),y(Xe,Ue,Xe.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,at){var Xe=oe.styles[at];return Xe?"\x1B["+oe.colors[Xe][0]+"m"+Ue+"\x1B["+oe.colors[Xe][1]+"m":Ue}function z(Ue,at){return Ue}function a(Ue){var at={};return Ue.forEach(function(Xe,ut){at[Xe]=!0}),at}function y(Ue,at,Xe){if(Ue.customInspect&&at&&Ie(at.inspect)&&at.inspect!==de.inspect&&!(at.constructor&&at.constructor.prototype===at)){var ut=at.inspect(Xe,Ue);return ve(ut)||(ut=y(Ue,ut,Xe)),ut}var Ze=E(Ue,at);if(Ze)return Ze;var ze=Object.keys(at),Re=a(ze);if(Ue.showHidden&&(ze=Object.getOwnPropertyNames(at)),Ce(at)&&(ze.indexOf("message")>=0||ze.indexOf("description")>=0))return b(at);if(ze.length===0){if(Ie(at)){var it=at.name?": "+at.name:"";return Ue.stylize("[Function"+it+"]","special")}if(Te(at))return Ue.stylize(RegExp.prototype.toString.call(at),"regexp");if(je(at))return Ue.stylize(Date.prototype.toString.call(at),"date");if(Ce(at))return b(at)}var Me="",Be=!1,Qe=["{","}"];if(fe(at)&&(Be=!0,Qe=["[","]"]),Ie(at)){var Ge=at.name?": "+at.name:"";Me=" [Function"+Ge+"]"}if(Te(at)&&(Me=" "+RegExp.prototype.toString.call(at)),je(at)&&(Me=" "+Date.prototype.toUTCString.call(at)),Ce(at)&&(Me=" "+b(at)),ze.length===0&&(!Be||at.length==0))return Qe[0]+Me+Qe[1];if(Xe<0)return Te(at)?Ue.stylize(RegExp.prototype.toString.call(at),"regexp"):Ue.stylize("[Object]","special");Ue.seen.push(at);var De;return Be?De=ee(Ue,at,Xe,Re,ze):De=ze.map(function(Le){return te(Ue,at,Xe,Re,Le,Be)}),Ue.seen.pop(),le(De,Me,Qe)}function E(Ue,at){if(Pe(at))return Ue.stylize("undefined","undefined");if(ve(at)){var Xe="'"+JSON.stringify(at).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return Ue.stylize(Xe,"string")}if(Se(at))return Ue.stylize(""+at,"number");if(he(at))return Ue.stylize(""+at,"boolean");if(me(at))return Ue.stylize("null","null")}function b(Ue){return"["+Error.prototype.toString.call(Ue)+"]"}function ee(Ue,at,Xe,ut,Ze){for(var ze=[],Re=0,it=at.length;Re<it;++Re)Je(at,String(Re))?ze.push(te(Ue,at,Xe,ut,String(Re),!0)):ze.push("");return Ze.forEach(function(Me){Me.match(/^\d+$/)||ze.push(te(Ue,at,Xe,ut,Me,!0))}),ze}function te(Ue,at,Xe,ut,Ze,ze){var Re,it,Me;if(Me=Object.getOwnPropertyDescriptor(at,Ze)||{value:at[Ze]},Me.get?Me.set?it=Ue.stylize("[Getter/Setter]","special"):it=Ue.stylize("[Getter]","special"):Me.set&&(it=Ue.stylize("[Setter]","special")),Je(ut,Ze)||(Re="["+Ze+"]"),it||(Ue.seen.indexOf(Me.value)<0?(me(Xe)?it=y(Ue,Me.value,null):it=y(Ue,Me.value,Xe-1),it.indexOf(`
|
|
|
`)>-1&&(ze?it=it.split(`
|
|
|
`).map(function(Be){return" "+Be}).join(`
|
|
|
`).slice(2):it=`
|
|
|
`+it.split(`
|
|
|
`).map(function(Be){return" "+Be}).join(`
|
|
|
`))):it=Ue.stylize("[Circular]","special")),Pe(Re)){if(ze&&Ze.match(/^\d+$/))return it;Re=JSON.stringify(""+Ze),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+": "+it}function le(Ue,at,Xe){var ut=0,Ze=Ue.reduce(function(ze,Re){return ut++,Re.indexOf(`
|
|
|
`)>=0&&ut++,ze+Re.replace(/\u001b\[\d\d?m/g,"").length+1},0);return Ze>60?Xe[0]+(at===""?"":at+`
|
|
|
`)+" "+Ue.join(`,
|
|
|
`)+" "+Xe[1]:Xe[0]+at+" "+Ue.join(", ")+" "+Xe[1]}de.types=x("./support/types");function fe(Ue){return Array.isArray(Ue)}de.isArray=fe;function he(Ue){return typeof Ue=="boolean"}de.isBoolean=he;function me(Ue){return Ue===null}de.isNull=me;function ge(Ue){return Ue==null}de.isNullOrUndefined=ge;function Se(Ue){return typeof Ue=="number"}de.isNumber=Se;function ve(Ue){return typeof Ue=="string"}de.isString=ve;function be(Ue){return typeof Ue=="symbol"}de.isSymbol=be;function Pe(Ue){return Ue===void 0}de.isUndefined=Pe;function Te(Ue){return _e(Ue)&&$e(Ue)==="[object RegExp]"}de.isRegExp=Te,de.types.isRegExp=Te;function _e(Ue){return typeof Ue=="object"&&Ue!==null}de.isObject=_e;function je(Ue){return _e(Ue)&&$e(Ue)==="[object Date]"}de.isDate=je,de.types.isDate=je;function Ce(Ue){return _e(Ue)&&($e(Ue)==="[object Error]"||Ue instanceof Error)}de.isError=Ce,de.types.isNativeError=Ce;function Ie(Ue){return typeof Ue=="function"}de.isFunction=Ie;function ke(Ue){return Ue===null||typeof Ue=="boolean"||typeof Ue=="number"||typeof Ue=="string"||typeof Ue=="symbol"||typeof Ue=="undefined"}de.isPrimitive=ke,de.isBuffer=x("./support/isBuffer");function $e(Ue){return Object.prototype.toString.call(Ue)}function Ne(Ue){return Ue<10?"0"+Ue.toString(10):Ue.toString(10)}var nt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function qe(){var Ue=new Date,at=[Ne(Ue.getHours()),Ne(Ue.getMinutes()),Ne(Ue.getSeconds())].join(":");return[Ue.getDate(),nt[Ue.getMonth()],at].join(" ")}de.log=function(){console.log("%s - %s",qe(),de.format.apply(de,arguments))},de.inherits=x("inherits"),de._extend=function(Ue,at){if(!at||!_e(at))return Ue;for(var Xe=Object.keys(at),ut=Xe.length;ut--;)Ue[Xe[ut]]=at[Xe[ut]];return Ue};function Je(Ue,at){return Object.prototype.hasOwnProperty.call(Ue,at)}var Ye=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;de.promisify=function(at){if(typeof at!="function")throw new TypeError('The "original" argument must be of type Function');if(Ye&&at[Ye]){var Xe=at[Ye];if(typeof Xe!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(Xe,Ye,{value:Xe,enumerable:!1,writable:!1,configurable:!0}),Xe}function Xe(){for(var ut,Ze,ze=new Promise(function(Me,Be){ut=Me,Ze=Be}),Re=[],it=0;it<arguments.length;it++)Re.push(arguments[it]);Re.push(function(Me,Be){Me?Ze(Me):ut(Be)});try{at.apply(this,Re)}catch(Me){Ze(Me)}return ze}return Object.setPrototypeOf(Xe,Object.getPrototypeOf(at)),Ye&&Object.defineProperty(Xe,Ye,{value:Xe,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(Xe,ne(at))},de.promisify.custom=Ye;function We(Ue,at){if(!Ue){var Xe=new Error("Promise was rejected with a falsy value");Xe.reason=Ue,Ue=Xe}return at(Ue)}function Fe(Ue){if(typeof Ue!="function")throw new TypeError('The "original" argument must be of type Function');function at(){for(var Xe=[],ut=0;ut<arguments.length;ut++)Xe.push(arguments[ut]);var Ze=Xe.pop();if(typeof Ze!="function")throw new TypeError("The last argument must be of type Function");var ze=this,Re=function(){return Ze.apply(ze,arguments)};Ue.apply(this,Xe).then(function(it){ae.nextTick(Re.bind(null,null,it))},function(it){ae.nextTick(We.bind(null,it,Re))})}return Object.setPrototypeOf(at,Object.getPrototypeOf(Ue)),Object.defineProperties(at,ne(Ue)),at}de.callbackify=Fe}).call(this)}).call(this,x("_process"))},{"./support/isBuffer":417,"./support/types":418,_process:467,inherits:364}],420:[function(x,pe,de){(function(ae){(function(){"use strict";var ne=x("for-each"),se=x("available-typed-arrays"),ce=x("call-bind"),ue=x("call-bind/callBound"),ie=x("gopd"),oe=ue("Object.prototype.toString"),re=x("has-tostringtag/shams")(),z=typeof globalThis=="undefined"?ae:globalThis,a=se(),y=ue("String.prototype.slice"),E=Object.getPrototypeOf,b=ue("Array.prototype.indexOf",!0)||function(he,me){for(var ge=0;ge<he.length;ge+=1)if(he[ge]===me)return ge;return-1},ee={__proto__:null};re&&ie&&E?ne(a,function(fe){var he=new z[fe];if(Symbol.toStringTag in he){var me=E(he),ge=ie(me,Symbol.toStringTag);if(!ge){var Se=E(me);ge=ie(Se,Symbol.toStringTag)}ee["$"+fe]=ce(ge.get)}}):ne(a,function(fe){var he=new z[fe];ee["$"+fe]=ce(he.slice)});var te=function(he){var me=!1;return ne(ee,function(ge,Se){if(!me)try{"$"+ge(he)===Se&&(me=y(Se,1))}catch(ve){}}),me},le=function(he){var me=!1;return ne(ee,function(ge,Se){if(!me)try{ge(he),me=y(Se,1)}catch(ve){}}),me};pe.exports=function(he){if(!he||typeof he!="object")return!1;if(!re){var me=y(oe(he),8,-1);return b(a,me)>-1?me:me!=="Object"?!1:le(he)}return ie?te(he):null}}).call(this)}).call(this,typeof ft!="undefined"?ft: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(x,pe,de){(function(){"use strict";de.stripBOM=function(ae){return ae[0]==="\uFEFF"?ae.substring(1):ae}}).call(this)},{}],422:[function(x,pe,de){(function(){"use strict";var ae,ne,se,ce,ue,ie={}.hasOwnProperty;ae=x("xmlbuilder"),ne=x("./defaults").defaults,ce=function(oe){return typeof oe=="string"&&(oe.indexOf("&")>=0||oe.indexOf(">")>=0||oe.indexOf("<")>=0)},ue=function(oe){return"<![CDATA["+se(oe)+"]]>"},se=function(oe){return oe.replace("]]>","]]]]><![CDATA[>")},de.Builder=function(){function oe(re){var z,a,y;this.options={},a=ne["0.2"];for(z in a)ie.call(a,z)&&(y=a[z],this.options[z]=y);for(z in re)ie.call(re,z)&&(y=re[z],this.options[z]=y)}return oe.prototype.buildObject=function(re){var z,a,y,E,b;return z=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(ee){return function(te,le){var fe,he,me,ge,Se,ve;if(typeof le!="object")ee.options.cdata&&ce(le)?te.raw(ue(le)):te.txt(le);else if(Array.isArray(le)){for(ge in le)if(ie.call(le,ge)){he=le[ge];for(Se in he)me=he[Se],te=y(te.ele(Se),me).up()}}else for(Se in le)if(ie.call(le,Se))if(he=le[Se],Se===z){if(typeof he=="object")for(fe in he)ve=he[fe],te=te.att(fe,ve)}else if(Se===a)ee.options.cdata&&ce(he)?te=te.raw(ue(he)):te=te.txt(he);else if(Array.isArray(he))for(ge in he)ie.call(he,ge)&&(me=he[ge],typeof me=="string"?ee.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 he=="object"?te=y(te.ele(Se),he).up():typeof he=="string"&&ee.options.cdata&&ce(he)?te=te.ele(Se).raw(ue(he)).up():(he==null&&(he=""),te=te.ele(Se,he.toString()).up());return te}}(this),E=ae.create(b,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),y(E,re).end(this.options.renderOpts)},oe}()}).call(this)},{"./defaults":423,xmlbuilder:459}],423:[function(x,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(x,pe,de){(function(){"use strict";var ae,ne,se,ce,ue,ie,oe,re,z,a=function(b,ee){return function(){return b.apply(ee,arguments)}},y=function(b,ee){for(var te in ee)E.call(ee,te)&&(b[te]=ee[te]);function le(){this.constructor=b}return le.prototype=ee.prototype,b.prototype=new le,b.__super__=ee.prototype,b},E={}.hasOwnProperty;re=x("sax"),ce=x("events"),ae=x("./bom"),oe=x("./processors"),z=x("timers").setImmediate,ne=x("./defaults").defaults,ue=function(b){return typeof b=="object"&&b!=null&&Object.keys(b).length===0},ie=function(b,ee,te){var le,fe,he;for(le=0,fe=b.length;le<fe;le++)he=b[le],ee=he(ee,te);return ee},se=function(b,ee,te){var le;return le=Object.create(null),le.value=te,le.writable=!0,le.enumerable=!0,le.configurable=!0,Object.defineProperty(b,ee,le)},de.Parser=function(b){y(ee,b);function ee(te){this.parseStringPromise=a(this.parseStringPromise,this),this.parseString=a(this.parseString,this),this.reset=a(this.reset,this),this.assignOrPush=a(this.assignOrPush,this),this.processAsync=a(this.processAsync,this);var le,fe,he;if(!(this instanceof de.Parser))return new de.Parser(te);this.options={},fe=ne["0.2"];for(le in fe)E.call(fe,le)&&(he=fe[le],this.options[le]=he);for(le in te)E.call(te,le)&&(he=te[le],this.options[le]=he);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(oe.normalize)),this.reset()}return ee.prototype.processAsync=function(){var te,le;try{return this.remaining.length<=this.options.chunkSize?(te=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(te),this.saxParser.close()):(te=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(te),z(this.processAsync))}catch(fe){if(le=fe,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(le)}},ee.prototype.assignOrPush=function(te,le,fe){return le in te?(te[le]instanceof Array||se(te,le,[te[le]]),te[le].push(fe)):this.options.explicitArray?se(te,le,[fe]):se(te,le,fe)},ee.prototype.reset=function(){var te,le,fe,he;return this.removeAllListeners(),this.saxParser=re.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(me){return function(ge){if(me.saxParser.resume(),!me.saxParser.errThrown)return me.saxParser.errThrown=!0,me.emit("error",ge)}}(this),this.saxParser.onend=function(me){return function(){if(!me.saxParser.ended)return me.saxParser.ended=!0,me.emit("end",me.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,he=[],te=this.options.attrkey,le=this.options.charkey,this.saxParser.onopentag=function(me){return function(ge){var Se,ve,be,Pe,Te;if(be={},be[le]="",!me.options.ignoreAttrs){Te=ge.attributes;for(Se in Te)E.call(Te,Se)&&(!(te in be)&&!me.options.mergeAttrs&&(be[te]={}),ve=me.options.attrValueProcessors?ie(me.options.attrValueProcessors,ge.attributes[Se],Se):ge.attributes[Se],Pe=me.options.attrNameProcessors?ie(me.options.attrNameProcessors,Se):Se,me.options.mergeAttrs?me.assignOrPush(be,Pe,ve):se(be[te],Pe,ve))}return be["#name"]=me.options.tagNameProcessors?ie(me.options.tagNameProcessors,ge.name):ge.name,me.options.xmlns&&(be[me.options.xmlnskey]={uri:ge.uri,local:ge.local}),he.push(be)}}(this),this.saxParser.onclosetag=function(me){return function(){var ge,Se,ve,be,Pe,Te,_e,je,Ce,Ie;if(Te=he.pop(),Pe=Te["#name"],(!me.options.explicitChildren||!me.options.preserveChildrenOrder)&&delete Te["#name"],Te.cdata===!0&&(ge=Te.cdata,delete Te.cdata),Ce=he[he.length-1],Te[le].match(/^\s*$/)&&!ge?(Se=Te[le],delete Te[le]):(me.options.trim&&(Te[le]=Te[le].trim()),me.options.normalize&&(Te[le]=Te[le].replace(/\s{2,}/g," ").trim()),Te[le]=me.options.valueProcessors?ie(me.options.valueProcessors,Te[le],Pe):Te[le],Object.keys(Te).length===1&&le in Te&&!me.EXPLICIT_CHARKEY&&(Te=Te[le])),ue(Te)&&(typeof me.options.emptyTag=="function"?Te=me.options.emptyTag():Te=me.options.emptyTag!==""?me.options.emptyTag:Se),me.options.validator!=null&&(Ie="/"+function(){var ke,$e,Ne;for(Ne=[],ke=0,$e=he.length;ke<$e;ke++)be=he[ke],Ne.push(be["#name"]);return Ne}().concat(Pe).join("/"),function(){var ke;try{return Te=me.options.validator(Ie,Ce&&Ce[Pe],Te)}catch($e){return ke=$e,me.emit("error",ke)}}()),me.options.explicitChildren&&!me.options.mergeAttrs&&typeof Te=="object"){if(!me.options.preserveChildrenOrder)be={},me.options.attrkey in Te&&(be[me.options.attrkey]=Te[me.options.attrkey],delete Te[me.options.attrkey]),!me.options.charsAsChildren&&me.options.charkey in Te&&(be[me.options.charkey]=Te[me.options.charkey],delete Te[me.options.charkey]),Object.getOwnPropertyNames(Te).length>0&&(be[me.options.childkey]=Te),Te=be;else if(Ce){Ce[me.options.childkey]=Ce[me.options.childkey]||[],_e={};for(ve in Te)E.call(Te,ve)&&se(_e,ve,Te[ve]);Ce[me.options.childkey].push(_e),delete Te["#name"],Object.keys(Te).length===1&&le in Te&&!me.EXPLICIT_CHARKEY&&(Te=Te[le])}}return he.length>0?me.assignOrPush(Ce,Pe,Te):(me.options.explicitRoot&&(je=Te,Te={},se(Te,Pe,je)),me.resultObject=Te,me.saxParser.ended=!0,me.emit("end",me.resultObject))}}(this),fe=function(me){return function(ge){var Se,ve;if(ve=he[he.length-1],ve)return ve[le]+=ge,me.options.explicitChildren&&me.options.preserveChildrenOrder&&me.options.charsAsChildren&&(me.options.includeWhiteChars||ge.replace(/\\n/g,"").trim()!=="")&&(ve[me.options.childkey]=ve[me.options.childkey]||[],Se={"#name":"__text__"},Se[le]=ge,me.options.normalize&&(Se[le]=Se[le].replace(/\s{2,}/g," ").trim()),ve[me.options.childkey].push(Se)),ve}}(this),this.saxParser.ontext=fe,this.saxParser.oncdata=function(me){return function(ge){var Se;if(Se=fe(ge),Se)return Se.cdata=!0}}(this)},ee.prototype.parseString=function(te,le){var fe;le!=null&&typeof le=="function"&&(this.on("end",function(he){return this.reset(),le(null,he)}),this.on("error",function(he){return this.reset(),le(he)}));try{return te=te.toString(),te.trim()===""?(this.emit("end",null),!0):(te=ae.stripBOM(te),this.options.async?(this.remaining=te,z(this.processAsync),this.saxParser):this.saxParser.write(te).close())}catch(he){if(fe=he,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw fe}else return this.emit("error",fe),this.saxParser.errThrown=!0}},ee.prototype.parseStringPromise=function(te){return new Promise(function(le){return function(fe,he){return le.parseString(te,function(me,ge){return me?he(me):fe(ge)})}}(this))},ee}(ce),de.parseString=function(b,ee,te){var le,fe,he;return te!=null?(typeof te=="function"&&(le=te),typeof ee=="object"&&(fe=ee)):(typeof ee=="function"&&(le=ee),fe={}),he=new de.Parser(fe),he.parseString(b,le)},de.parseStringPromise=function(b,ee){var te,le;return typeof ee=="object"&&(te=ee),le=new de.Parser(te),le.parseStringPromise(b)}}).call(this)},{"./bom":421,"./defaults":423,"./processors":425,events:344,sax:397,timers:414}],425:[function(x,pe,de){(function(){"use strict";var ae;ae=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(ae,"")},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(x,pe,de){(function(){"use strict";var ae,ne,se,ce,ue=function(oe,re){for(var z in re)ie.call(re,z)&&(oe[z]=re[z]);function a(){this.constructor=oe}return a.prototype=re.prototype,oe.prototype=new a,oe.__super__=re.prototype,oe},ie={}.hasOwnProperty;ne=x("./defaults"),ae=x("./builder"),se=x("./parser"),ce=x("./processors"),de.defaults=ne.defaults,de.processors=ce,de.ValidationError=function(oe){ue(re,oe);function re(z){this.message=z}return re}(Error),de.Builder=ae.Builder,de.Parser=se.Parser,de.parseString=se.parseString,de.parseStringPromise=se.parseStringPromise}).call(this)},{"./builder":422,"./defaults":423,"./parser":424,"./processors":425}],427:[function(x,pe,de){(function(){pe.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(this)},{}],428:[function(x,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(x,pe,de){(function(){var ae,ne,se,ce,ue,ie,oe,re=[].slice,z={}.hasOwnProperty;ae=function(){var a,y,E,b,ee,te;if(te=arguments[0],ee=2<=arguments.length?re.call(arguments,1):[],ue(Object.assign))Object.assign.apply(null,arguments);else for(a=0,E=ee.length;a<E;a++)if(b=ee[a],b!=null)for(y in b)z.call(b,y)&&(te[y]=b[y]);return te},ue=function(a){return!!a&&Object.prototype.toString.call(a)==="[object Function]"},ie=function(a){var y;return!!a&&((y=typeof a)=="function"||y==="object")},se=function(a){return ue(Array.isArray)?Array.isArray(a):Object.prototype.toString.call(a)==="[object Array]"},ce=function(a){var y;if(se(a))return!a.length;for(y in a)if(z.call(a,y))return!1;return!0},oe=function(a){var y,E;return ie(a)&&(E=Object.getPrototypeOf(a))&&(y=E.constructor)&&typeof y=="function"&&y instanceof y&&Function.prototype.toString.call(y)===Function.prototype.toString.call(Object)},ne=function(a){return ue(a.valueOf)?a.valueOf():a},pe.exports.assign=ae,pe.exports.isFunction=ue,pe.exports.isObject=ie,pe.exports.isArray=se,pe.exports.isEmpty=ce,pe.exports.isPlainObject=oe,pe.exports.getValue=ne}).call(this)},{}],430:[function(x,pe,de){(function(){pe.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(this)},{}],431:[function(x,pe,de){(function(){var ae,ne,se;ae=x("./NodeType"),se=x("./XMLNode"),pe.exports=ne=function(){function ce(ue,ie,oe){if(this.parent=ue,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),ie==null)throw new Error("Missing attribute name. "+this.debugInfo(ie));this.name=this.stringify.name(ie),this.value=this.stringify.attValue(oe),this.type=ae.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(ce.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(ce.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(ce.prototype,"textContent",{get:function(){return this.value},set:function(ue){return this.value=ue||""}}),Object.defineProperty(ce.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(ce.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(ce.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(ce.prototype,"specified",{get:function(){return!0}}),ce.prototype.clone=function(){return Object.create(this)},ce.prototype.toString=function(ue){return this.options.writer.attribute(this,this.options.writer.filterOptions(ue))},ce.prototype.debugInfo=function(ue){return ue=ue||this.name,ue==null?"parent: <"+this.parent.name+">":"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(x,pe,de){(function(){var ae,ne,se,ce=function(ie,oe){for(var re in oe)ue.call(oe,re)&&(ie[re]=oe[re]);function z(){this.constructor=ie}return z.prototype=oe.prototype,ie.prototype=new z,ie.__super__=oe.prototype,ie},ue={}.hasOwnProperty;ae=x("./NodeType"),se=x("./XMLCharacterData"),pe.exports=ne=function(ie){ce(oe,ie);function oe(re,z){if(oe.__super__.constructor.call(this,re),z==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=ae.CData,this.value=this.stringify.cdata(z)}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}(se)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],433:[function(x,pe,de){(function(){var ae,ne,se=function(ue,ie){for(var oe in ie)ce.call(ie,oe)&&(ue[oe]=ie[oe]);function re(){this.constructor=ue}return re.prototype=ie.prototype,ue.prototype=new re,ue.__super__=ie.prototype,ue},ce={}.hasOwnProperty;ne=x("./XMLNode"),pe.exports=ae=function(ue){se(ie,ue);function ie(oe){ie.__super__.constructor.call(this,oe),this.value=""}return Object.defineProperty(ie.prototype,"data",{get:function(){return this.value},set:function(oe){return this.value=oe||""}}),Object.defineProperty(ie.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(ie.prototype,"textContent",{get:function(){return this.value},set:function(oe){return this.value=oe||""}}),ie.prototype.clone=function(){return Object.create(this)},ie.prototype.substringData=function(oe,re){throw new Error("This DOM method is not implemented."+this.debugInfo())},ie.prototype.appendData=function(oe){throw new Error("This DOM method is not implemented."+this.debugInfo())},ie.prototype.insertData=function(oe,re){throw new Error("This DOM method is not implemented."+this.debugInfo())},ie.prototype.deleteData=function(oe,re){throw new Error("This DOM method is not implemented."+this.debugInfo())},ie.prototype.replaceData=function(oe,re,z){throw new Error("This DOM method is not implemented."+this.debugInfo())},ie.prototype.isEqualNode=function(oe){return!(!ie.__super__.isEqualNode.apply(this,arguments).isEqualNode(oe)||oe.data!==this.data)},ie}(ne)}).call(this)},{"./XMLNode":450}],434:[function(x,pe,de){(function(){var ae,ne,se,ce=function(ie,oe){for(var re in oe)ue.call(oe,re)&&(ie[re]=oe[re]);function z(){this.constructor=ie}return z.prototype=oe.prototype,ie.prototype=new z,ie.__super__=oe.prototype,ie},ue={}.hasOwnProperty;ae=x("./NodeType"),ne=x("./XMLCharacterData"),pe.exports=se=function(ie){ce(oe,ie);function oe(re,z){if(oe.__super__.constructor.call(this,re),z==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=ae.Comment,this.value=this.stringify.comment(z)}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(x,pe,de){(function(){var ae,ne,se;ne=x("./XMLDOMErrorHandler"),se=x("./XMLDOMStringList"),pe.exports=ae=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 se(Object.keys(this.defaultParams))}}),ce.prototype.getParameter=function(ue){return this.params.hasOwnProperty(ue)?this.params[ue]:null},ce.prototype.canSetParameter=function(ue,ie){return!0},ce.prototype.setParameter=function(ue,ie){return ie!=null?this.params[ue]=ie:delete this.params[ue]},ce}()}).call(this)},{"./XMLDOMErrorHandler":436,"./XMLDOMStringList":438}],436:[function(x,pe,de){(function(){var ae;pe.exports=ae=function(){function ne(){}return ne.prototype.handleError=function(se){throw new Error(se)},ne}()}).call(this)},{}],437:[function(x,pe,de){(function(){var ae;pe.exports=ae=function(){function ne(){}return ne.prototype.hasFeature=function(se,ce){return!0},ne.prototype.createDocumentType=function(se,ce,ue){throw new Error("This DOM method is not implemented.")},ne.prototype.createDocument=function(se,ce,ue){throw new Error("This DOM method is not implemented.")},ne.prototype.createHTMLDocument=function(se){throw new Error("This DOM method is not implemented.")},ne.prototype.getFeature=function(se,ce){throw new Error("This DOM method is not implemented.")},ne}()}).call(this)},{}],438:[function(x,pe,de){(function(){var ae;pe.exports=ae=function(){function ne(se){this.arr=se||[]}return Object.defineProperty(ne.prototype,"length",{get:function(){return this.arr.length}}),ne.prototype.item=function(se){return this.arr[se]||null},ne.prototype.contains=function(se){return this.arr.indexOf(se)!==-1},ne}()}).call(this)},{}],439:[function(x,pe,de){(function(){var ae,ne,se,ce=function(ie,oe){for(var re in oe)ue.call(oe,re)&&(ie[re]=oe[re]);function z(){this.constructor=ie}return z.prototype=oe.prototype,ie.prototype=new z,ie.__super__=oe.prototype,ie},ue={}.hasOwnProperty;se=x("./XMLNode"),ae=x("./NodeType"),pe.exports=ne=function(ie){ce(oe,ie);function oe(re,z,a,y,E,b){if(oe.__super__.constructor.call(this,re),z==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(a==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(z));if(!y)throw new Error("Missing DTD attribute type. "+this.debugInfo(z));if(!E)throw new Error("Missing DTD attribute default. "+this.debugInfo(z));if(E.indexOf("#")!==0&&(E="#"+E),!E.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(z));if(b&&!E.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(z));this.elementName=this.stringify.name(z),this.type=ae.AttributeDeclaration,this.attributeName=this.stringify.name(a),this.attributeType=this.stringify.dtdAttType(y),b&&(this.defaultValue=this.stringify.dtdAttDefault(b)),this.defaultValueType=E}return oe.prototype.toString=function(re){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(re))},oe}(se)}).call(this)},{"./NodeType":428,"./XMLNode":450}],440:[function(x,pe,de){(function(){var ae,ne,se,ce=function(ie,oe){for(var re in oe)ue.call(oe,re)&&(ie[re]=oe[re]);function z(){this.constructor=ie}return z.prototype=oe.prototype,ie.prototype=new z,ie.__super__=oe.prototype,ie},ue={}.hasOwnProperty;se=x("./XMLNode"),ae=x("./NodeType"),pe.exports=ne=function(ie){ce(oe,ie);function oe(re,z,a){if(oe.__super__.constructor.call(this,re),z==null)throw new Error("Missing DTD element name. "+this.debugInfo());a||(a="(#PCDATA)"),Array.isArray(a)&&(a="("+a.join(",")+")"),this.name=this.stringify.name(z),this.type=ae.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}(se)}).call(this)},{"./NodeType":428,"./XMLNode":450}],441:[function(x,pe,de){(function(){var ae,ne,se,ce,ue=function(oe,re){for(var z in re)ie.call(re,z)&&(oe[z]=re[z]);function a(){this.constructor=oe}return a.prototype=re.prototype,oe.prototype=new a,oe.__super__=re.prototype,oe},ie={}.hasOwnProperty;ce=x("./Utility").isObject,se=x("./XMLNode"),ae=x("./NodeType"),pe.exports=ne=function(oe){ue(re,oe);function re(z,a,y,E){if(re.__super__.constructor.call(this,z),y==null)throw new Error("Missing DTD entity name. "+this.debugInfo(y));if(E==null)throw new Error("Missing DTD entity value. "+this.debugInfo(y));if(this.pe=!!a,this.name=this.stringify.name(y),this.type=ae.EntityDeclaration,!ce(E))this.value=this.stringify.dtdEntityValue(E),this.internal=!0;else{if(!E.pubID&&!E.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(y));if(E.pubID&&!E.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(y));if(this.internal=!1,E.pubID!=null&&(this.pubID=this.stringify.dtdPubID(E.pubID)),E.sysID!=null&&(this.sysID=this.stringify.dtdSysID(E.sysID)),E.nData!=null&&(this.nData=this.stringify.dtdNData(E.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(z){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(z))},re}(se)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLNode":450}],442:[function(x,pe,de){(function(){var ae,ne,se,ce=function(ie,oe){for(var re in oe)ue.call(oe,re)&&(ie[re]=oe[re]);function z(){this.constructor=ie}return z.prototype=oe.prototype,ie.prototype=new z,ie.__super__=oe.prototype,ie},ue={}.hasOwnProperty;se=x("./XMLNode"),ae=x("./NodeType"),pe.exports=ne=function(ie){ce(oe,ie);function oe(re,z,a){if(oe.__super__.constructor.call(this,re),z==null)throw new Error("Missing DTD notation name. "+this.debugInfo(z));if(!a.pubID&&!a.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(z));this.name=this.stringify.name(z),this.type=ae.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}(se)}).call(this)},{"./NodeType":428,"./XMLNode":450}],443:[function(x,pe,de){(function(){var ae,ne,se,ce,ue=function(oe,re){for(var z in re)ie.call(re,z)&&(oe[z]=re[z]);function a(){this.constructor=oe}return a.prototype=re.prototype,oe.prototype=new a,oe.__super__=re.prototype,oe},ie={}.hasOwnProperty;ce=x("./Utility").isObject,se=x("./XMLNode"),ae=x("./NodeType"),pe.exports=ne=function(oe){ue(re,oe);function re(z,a,y,E){var b;re.__super__.constructor.call(this,z),ce(a)&&(b=a,a=b.version,y=b.encoding,E=b.standalone),a||(a="1.0"),this.type=ae.Declaration,this.version=this.stringify.xmlVersion(a),y!=null&&(this.encoding=this.stringify.xmlEncoding(y)),E!=null&&(this.standalone=this.stringify.xmlStandalone(E))}return re.prototype.toString=function(z){return this.options.writer.declaration(this,this.options.writer.filterOptions(z))},re}(se)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLNode":450}],444:[function(x,pe,de){(function(){var ae,ne,se,ce,ue,ie,oe,re,z,a=function(E,b){for(var ee in b)y.call(b,ee)&&(E[ee]=b[ee]);function te(){this.constructor=E}return te.prototype=b.prototype,E.prototype=new te,E.__super__=b.prototype,E},y={}.hasOwnProperty;z=x("./Utility").isObject,re=x("./XMLNode"),ae=x("./NodeType"),ne=x("./XMLDTDAttList"),ce=x("./XMLDTDEntity"),se=x("./XMLDTDElement"),ue=x("./XMLDTDNotation"),oe=x("./XMLNamedNodeMap"),pe.exports=ie=function(E){a(b,E);function b(ee,te,le){var fe,he,me,ge,Se,ve;if(b.__super__.constructor.call(this,ee),this.type=ae.DocType,ee.children){for(ge=ee.children,he=0,me=ge.length;he<me;he++)if(fe=ge[he],fe.type===ae.Element){this.name=fe.name;break}}this.documentObject=ee,z(te)&&(Se=te,te=Se.pubID,le=Se.sysID),le==null&&(ve=[te,le],le=ve[0],te=ve[1]),te!=null&&(this.pubID=this.stringify.dtdPubID(te)),le!=null&&(this.sysID=this.stringify.dtdSysID(le))}return Object.defineProperty(b.prototype,"entities",{get:function(){var ee,te,le,fe,he;for(fe={},he=this.children,te=0,le=he.length;te<le;te++)ee=he[te],ee.type===ae.EntityDeclaration&&!ee.pe&&(fe[ee.name]=ee);return new oe(fe)}}),Object.defineProperty(b.prototype,"notations",{get:function(){var ee,te,le,fe,he;for(fe={},he=this.children,te=0,le=he.length;te<le;te++)ee=he[te],ee.type===ae.NotationDeclaration&&(fe[ee.name]=ee);return new oe(fe)}}),Object.defineProperty(b.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(b.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(b.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),b.prototype.element=function(ee,te){var le;return le=new se(this,ee,te),this.children.push(le),this},b.prototype.attList=function(ee,te,le,fe,he){var me;return me=new ne(this,ee,te,le,fe,he),this.children.push(me),this},b.prototype.entity=function(ee,te){var le;return le=new ce(this,!1,ee,te),this.children.push(le),this},b.prototype.pEntity=function(ee,te){var le;return le=new ce(this,!0,ee,te),this.children.push(le),this},b.prototype.notation=function(ee,te){var le;return le=new ue(this,ee,te),this.children.push(le),this},b.prototype.toString=function(ee){return this.options.writer.docType(this,this.options.writer.filterOptions(ee))},b.prototype.ele=function(ee,te){return this.element(ee,te)},b.prototype.att=function(ee,te,le,fe,he){return this.attList(ee,te,le,fe,he)},b.prototype.ent=function(ee,te){return this.entity(ee,te)},b.prototype.pent=function(ee,te){return this.pEntity(ee,te)},b.prototype.not=function(ee,te){return this.notation(ee,te)},b.prototype.up=function(){return this.root()||this.documentObject},b.prototype.isEqualNode=function(ee){return!(!b.__super__.isEqualNode.apply(this,arguments).isEqualNode(ee)||ee.name!==this.name||ee.publicId!==this.publicId||ee.systemId!==this.systemId)},b}(re)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLDTDAttList":439,"./XMLDTDElement":440,"./XMLDTDEntity":441,"./XMLDTDNotation":442,"./XMLNamedNodeMap":449,"./XMLNode":450}],445:[function(x,pe,de){(function(){var ae,ne,se,ce,ue,ie,oe,re,z=function(y,E){for(var b in E)a.call(E,b)&&(y[b]=E[b]);function ee(){this.constructor=y}return ee.prototype=E.prototype,y.prototype=new ee,y.__super__=E.prototype,y},a={}.hasOwnProperty;re=x("./Utility").isPlainObject,se=x("./XMLDOMImplementation"),ne=x("./XMLDOMConfiguration"),ue=x("./XMLNode"),ae=x("./NodeType"),oe=x("./XMLStringifier"),ie=x("./XMLStringWriter"),pe.exports=ce=function(y){z(E,y);function E(b){E.__super__.constructor.call(this,null),this.name="#document",this.type=ae.Document,this.documentURI=null,this.domConfig=new ne,b||(b={}),b.writer||(b.writer=new ie),this.options=b,this.stringify=new oe(b)}return Object.defineProperty(E.prototype,"implementation",{value:new se}),Object.defineProperty(E.prototype,"doctype",{get:function(){var b,ee,te,le;for(le=this.children,ee=0,te=le.length;ee<te;ee++)if(b=le[ee],b.type===ae.DocType)return b;return null}}),Object.defineProperty(E.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(E.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(E.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(E.prototype,"xmlEncoding",{get:function(){return this.children.length!==0&&this.children[0].type===ae.Declaration?this.children[0].encoding:null}}),Object.defineProperty(E.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===ae.Declaration?this.children[0].standalone==="yes":!1}}),Object.defineProperty(E.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===ae.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(E.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(E.prototype,"origin",{get:function(){return null}}),Object.defineProperty(E.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(E.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(E.prototype,"contentType",{get:function(){return null}}),E.prototype.end=function(b){var ee;return ee={},b?re(b)&&(ee=b,b=this.options.writer):b=this.options.writer,b.document(this,b.filterOptions(ee))},E.prototype.toString=function(b){return this.options.writer.document(this,this.options.writer.filterOptions(b))},E.prototype.createElement=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())},E.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},E.prototype.createTextNode=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())},E.prototype.createComment=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())},E.prototype.createCDATASection=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())},E.prototype.createProcessingInstruction=function(b,ee){throw new Error("This DOM method is not implemented."+this.debugInfo())},E.prototype.createAttribute=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())},E.prototype.createEntityReference=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())},E.prototype.getElementsByTagName=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())},E.prototype.importNode=function(b,ee){throw new Error("This DOM method is not implemented."+this.debugInfo())},E.prototype.createElementNS=function(b,ee){throw new Error("This DOM method is not implemented."+this.debugInfo())},E.prototype.createAttributeNS=function(b,ee){throw new Error("This DOM method is not implemented."+this.debugInfo())},E.prototype.getElementsByTagNameNS=function(b,ee){throw new Error("This DOM method is not implemented."+this.debugInfo())},E.prototype.getElementById=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())},E.prototype.adoptNode=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())},E.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},E.prototype.renameNode=function(b,ee,te){throw new Error("This DOM method is not implemented."+this.debugInfo())},E.prototype.getElementsByClassName=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())},E.prototype.createEvent=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())},E.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},E.prototype.createNodeIterator=function(b,ee,te){throw new Error("This DOM method is not implemented."+this.debugInfo())},E.prototype.createTreeWalker=function(b,ee,te){throw new Error("This DOM method is not implemented."+this.debugInfo())},E}(ue)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLDOMConfiguration":435,"./XMLDOMImplementation":437,"./XMLNode":450,"./XMLStringWriter":455,"./XMLStringifier":456}],446:[function(x,pe,de){(function(){var ae,ne,se,ce,ue,ie,oe,re,z,a,y,E,b,ee,te,le,fe,he,me,ge,Se,ve,be,Pe,Te={}.hasOwnProperty;Pe=x("./Utility"),ve=Pe.isObject,Se=Pe.isFunction,be=Pe.isPlainObject,ge=Pe.getValue,ae=x("./NodeType"),E=x("./XMLDocument"),ee=x("./XMLElement"),ce=x("./XMLCData"),ue=x("./XMLComment"),le=x("./XMLRaw"),me=x("./XMLText"),te=x("./XMLProcessingInstruction"),a=x("./XMLDeclaration"),y=x("./XMLDocType"),ie=x("./XMLDTDAttList"),re=x("./XMLDTDEntity"),oe=x("./XMLDTDElement"),z=x("./XMLDTDNotation"),se=x("./XMLAttribute"),he=x("./XMLStringifier"),fe=x("./XMLStringWriter"),ne=x("./WriterState"),pe.exports=b=function(){function _e(je,Ce,Ie){var ke;this.name="?xml",this.type=ae.Document,je||(je={}),ke={},je.writer?be(je.writer)&&(ke=je.writer,je.writer=new fe):je.writer=new fe,this.options=je,this.writer=je.writer,this.writerOptions=this.writer.filterOptions(ke),this.stringify=new he(je),this.onDataCallback=Ce||function(){},this.onEndCallback=Ie||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return _e.prototype.createChildNode=function(je){var Ce,Ie,ke,$e,Ne,nt,qe,Je;switch(je.type){case ae.CData:this.cdata(je.value);break;case ae.Comment:this.comment(je.value);break;case ae.Element:ke={},qe=je.attribs;for(Ie in qe)Te.call(qe,Ie)&&(Ce=qe[Ie],ke[Ie]=Ce.value);this.node(je.name,ke);break;case ae.Dummy:this.dummy();break;case ae.Raw:this.raw(je.value);break;case ae.Text:this.text(je.value);break;case ae.ProcessingInstruction:this.instruction(je.target,je.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+je.constructor.name)}for(Je=je.children,Ne=0,nt=Je.length;Ne<nt;Ne++)$e=Je[Ne],this.createChildNode($e),$e.type===ae.Element&&this.up();return this},_e.prototype.dummy=function(){return this},_e.prototype.node=function(je,Ce,Ie){var ke;if(je==null)throw new Error("Missing node name.");if(this.root&&this.currentLevel===-1)throw new Error("Document can only have one root node. "+this.debugInfo(je));return this.openCurrent(),je=ge(je),Ce==null&&(Ce={}),Ce=ge(Ce),ve(Ce)||(ke=[Ce,Ie],Ie=ke[0],Ce=ke[1]),this.currentNode=new ee(this,je,Ce),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,Ie!=null&&this.text(Ie),this},_e.prototype.element=function(je,Ce,Ie){var ke,$e,Ne,nt,qe,Je;if(this.currentNode&&this.currentNode.type===ae.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(je)||ve(je)||Se(je))for(nt=this.options.noValidation,this.options.noValidation=!0,Je=new E(this.options).element("TEMP_ROOT"),Je.element(je),this.options.noValidation=nt,qe=Je.children,$e=0,Ne=qe.length;$e<Ne;$e++)ke=qe[$e],this.createChildNode(ke),ke.type===ae.Element&&this.up();else this.node(je,Ce,Ie);return this},_e.prototype.attribute=function(je,Ce){var Ie,ke;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(je));if(je!=null&&(je=ge(je)),ve(je))for(Ie in je)Te.call(je,Ie)&&(ke=je[Ie],this.attribute(Ie,ke));else Se(Ce)&&(Ce=Ce.apply()),this.options.keepNullAttributes&&Ce==null?this.currentNode.attribs[je]=new se(this,je,""):Ce!=null&&(this.currentNode.attribs[je]=new se(this,je,Ce));return this},_e.prototype.text=function(je){var Ce;return this.openCurrent(),Ce=new me(this,je),this.onData(this.writer.text(Ce,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},_e.prototype.cdata=function(je){var Ce;return this.openCurrent(),Ce=new ce(this,je),this.onData(this.writer.cdata(Ce,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},_e.prototype.comment=function(je){var Ce;return this.openCurrent(),Ce=new ue(this,je),this.onData(this.writer.comment(Ce,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},_e.prototype.raw=function(je){var Ce;return this.openCurrent(),Ce=new le(this,je),this.onData(this.writer.raw(Ce,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},_e.prototype.instruction=function(je,Ce){var Ie,ke,$e,Ne,nt;if(this.openCurrent(),je!=null&&(je=ge(je)),Ce!=null&&(Ce=ge(Ce)),Array.isArray(je))for(Ie=0,Ne=je.length;Ie<Ne;Ie++)ke=je[Ie],this.instruction(ke);else if(ve(je))for(ke in je)Te.call(je,ke)&&($e=je[ke],this.instruction(ke,$e));else Se(Ce)&&(Ce=Ce.apply()),nt=new te(this,je,Ce),this.onData(this.writer.processingInstruction(nt,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},_e.prototype.declaration=function(je,Ce,Ie){var ke;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return ke=new a(this,je,Ce,Ie),this.onData(this.writer.declaration(ke,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},_e.prototype.doctype=function(je,Ce,Ie){if(this.openCurrent(),je==null)throw new Error("Missing root node name.");if(this.root)throw new Error("dtd() must come before the root node.");return this.currentNode=new y(this,Ce,Ie),this.currentNode.rootNodeName=je,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},_e.prototype.dtdElement=function(je,Ce){var Ie;return this.openCurrent(),Ie=new oe(this,je,Ce),this.onData(this.writer.dtdElement(Ie,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},_e.prototype.attList=function(je,Ce,Ie,ke,$e){var Ne;return this.openCurrent(),Ne=new ie(this,je,Ce,Ie,ke,$e),this.onData(this.writer.dtdAttList(Ne,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},_e.prototype.entity=function(je,Ce){var Ie;return this.openCurrent(),Ie=new re(this,!1,je,Ce),this.onData(this.writer.dtdEntity(Ie,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},_e.prototype.pEntity=function(je,Ce){var Ie;return this.openCurrent(),Ie=new re(this,!0,je,Ce),this.onData(this.writer.dtdEntity(Ie,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},_e.prototype.notation=function(je,Ce){var Ie;return this.openCurrent(),Ie=new z(this,je,Ce),this.onData(this.writer.dtdNotation(Ie,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},_e.prototype.up=function(){if(this.currentLevel<0)throw new Error("The document node has no parent.");return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this},_e.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},_e.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},_e.prototype.openNode=function(je){var Ce,Ie,ke,$e;if(!je.isOpen){if(!this.root&&this.currentLevel===0&&je.type===ae.Element&&(this.root=je),Ie="",je.type===ae.Element){this.writerOptions.state=ne.OpenTag,Ie=this.writer.indent(je,this.writerOptions,this.currentLevel)+"<"+je.name,$e=je.attribs;for(ke in $e)Te.call($e,ke)&&(Ce=$e[ke],Ie+=this.writer.attribute(Ce,this.writerOptions,this.currentLevel));Ie+=(je.children?">":"/>")+this.writer.endline(je,this.writerOptions,this.currentLevel),this.writerOptions.state=ne.InsideTag}else this.writerOptions.state=ne.OpenTag,Ie=this.writer.indent(je,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+je.rootNodeName,je.pubID&&je.sysID?Ie+=' PUBLIC "'+je.pubID+'" "'+je.sysID+'"':je.sysID&&(Ie+=' SYSTEM "'+je.sysID+'"'),je.children?(Ie+=" [",this.writerOptions.state=ne.InsideTag):(this.writerOptions.state=ne.CloseTag,Ie+=">"),Ie+=this.writer.endline(je,this.writerOptions,this.currentLevel);return this.onData(Ie,this.currentLevel),je.isOpen=!0}},_e.prototype.closeNode=function(je){var Ce;if(!je.isClosed)return Ce="",this.writerOptions.state=ne.CloseTag,je.type===ae.Element?Ce=this.writer.indent(je,this.writerOptions,this.currentLevel)+"</"+je.name+">"+this.writer.endline(je,this.writerOptions,this.currentLevel):Ce=this.writer.indent(je,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(je,this.writerOptions,this.currentLevel),this.writerOptions.state=ne.None,this.onData(Ce,this.currentLevel),je.isClosed=!0},_e.prototype.onData=function(je,Ce){return this.documentStarted=!0,this.onDataCallback(je,Ce+1)},_e.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},_e.prototype.debugInfo=function(je){return je==null?"":"node: <"+je+">"},_e.prototype.ele=function(){return this.element.apply(this,arguments)},_e.prototype.nod=function(je,Ce,Ie){return this.node(je,Ce,Ie)},_e.prototype.txt=function(je){return this.text(je)},_e.prototype.dat=function(je){return this.cdata(je)},_e.prototype.com=function(je){return this.comment(je)},_e.prototype.ins=function(je,Ce){return this.instruction(je,Ce)},_e.prototype.dec=function(je,Ce,Ie){return this.declaration(je,Ce,Ie)},_e.prototype.dtd=function(je,Ce,Ie){return this.doctype(je,Ce,Ie)},_e.prototype.e=function(je,Ce,Ie){return this.element(je,Ce,Ie)},_e.prototype.n=function(je,Ce,Ie){return this.node(je,Ce,Ie)},_e.prototype.t=function(je){return this.text(je)},_e.prototype.d=function(je){return this.cdata(je)},_e.prototype.c=function(je){return this.comment(je)},_e.prototype.r=function(je){return this.raw(je)},_e.prototype.i=function(je,Ce){return this.instruction(je,Ce)},_e.prototype.att=function(){return this.currentNode&&this.currentNode.type===ae.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},_e.prototype.a=function(){return this.currentNode&&this.currentNode.type===ae.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},_e.prototype.ent=function(je,Ce){return this.entity(je,Ce)},_e.prototype.pent=function(je,Ce){return this.pEntity(je,Ce)},_e.prototype.not=function(je,Ce){return this.notation(je,Ce)},_e}()}).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(x,pe,de){(function(){var ae,ne,se,ce=function(ie,oe){for(var re in oe)ue.call(oe,re)&&(ie[re]=oe[re]);function z(){this.constructor=ie}return z.prototype=oe.prototype,ie.prototype=new z,ie.__super__=oe.prototype,ie},ue={}.hasOwnProperty;se=x("./XMLNode"),ae=x("./NodeType"),pe.exports=ne=function(ie){ce(oe,ie);function oe(re){oe.__super__.constructor.call(this,re),this.type=ae.Dummy}return oe.prototype.clone=function(){return Object.create(this)},oe.prototype.toString=function(re){return""},oe}(se)}).call(this)},{"./NodeType":428,"./XMLNode":450}],448:[function(x,pe,de){(function(){var ae,ne,se,ce,ue,ie,oe,re,z,a=function(E,b){for(var ee in b)y.call(b,ee)&&(E[ee]=b[ee]);function te(){this.constructor=E}return te.prototype=b.prototype,E.prototype=new te,E.__super__=b.prototype,E},y={}.hasOwnProperty;z=x("./Utility"),re=z.isObject,oe=z.isFunction,ie=z.getValue,ue=x("./XMLNode"),ae=x("./NodeType"),ne=x("./XMLAttribute"),ce=x("./XMLNamedNodeMap"),pe.exports=se=function(E){a(b,E);function b(ee,te,le){var fe,he,me,ge;if(b.__super__.constructor.call(this,ee),te==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(te),this.type=ae.Element,this.attribs={},this.schemaTypeInfo=null,le!=null&&this.attribute(le),ee.type===ae.Document&&(this.isRoot=!0,this.documentObject=ee,ee.rootObject=this,ee.children)){for(ge=ee.children,he=0,me=ge.length;he<me;he++)if(fe=ge[he],fe.type===ae.DocType){fe.name=this.name;break}}}return Object.defineProperty(b.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(b.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(b.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(b.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(b.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(b.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(b.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(b.prototype,"attributes",{get:function(){return(!this.attributeMap||!this.attributeMap.nodes)&&(this.attributeMap=new ce(this.attribs)),this.attributeMap}}),b.prototype.clone=function(){var ee,te,le,fe;le=Object.create(this),le.isRoot&&(le.documentObject=null),le.attribs={},fe=this.attribs;for(te in fe)y.call(fe,te)&&(ee=fe[te],le.attribs[te]=ee.clone());return le.children=[],this.children.forEach(function(he){var me;return me=he.clone(),me.parent=le,le.children.push(me)}),le},b.prototype.attribute=function(ee,te){var le,fe;if(ee!=null&&(ee=ie(ee)),re(ee))for(le in ee)y.call(ee,le)&&(fe=ee[le],this.attribute(le,fe));else oe(te)&&(te=te.apply()),this.options.keepNullAttributes&&te==null?this.attribs[ee]=new ne(this,ee,""):te!=null&&(this.attribs[ee]=new ne(this,ee,te));return this},b.prototype.removeAttribute=function(ee){var te,le,fe;if(ee==null)throw new Error("Missing attribute name. "+this.debugInfo());if(ee=ie(ee),Array.isArray(ee))for(le=0,fe=ee.length;le<fe;le++)te=ee[le],delete this.attribs[te];else delete this.attribs[ee];return this},b.prototype.toString=function(ee){return this.options.writer.element(this,this.options.writer.filterOptions(ee))},b.prototype.att=function(ee,te){return this.attribute(ee,te)},b.prototype.a=function(ee,te){return this.attribute(ee,te)},b.prototype.getAttribute=function(ee){return this.attribs.hasOwnProperty(ee)?this.attribs[ee].value:null},b.prototype.setAttribute=function(ee,te){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.getAttributeNode=function(ee){return this.attribs.hasOwnProperty(ee)?this.attribs[ee]:null},b.prototype.setAttributeNode=function(ee){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.removeAttributeNode=function(ee){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.getElementsByTagName=function(ee){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.getAttributeNS=function(ee,te){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.setAttributeNS=function(ee,te,le){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.removeAttributeNS=function(ee,te){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.getAttributeNodeNS=function(ee,te){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.setAttributeNodeNS=function(ee){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.getElementsByTagNameNS=function(ee,te){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.hasAttribute=function(ee){return this.attribs.hasOwnProperty(ee)},b.prototype.hasAttributeNS=function(ee,te){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.setIdAttribute=function(ee,te){return this.attribs.hasOwnProperty(ee)?this.attribs[ee].isId:te},b.prototype.setIdAttributeNS=function(ee,te,le){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.setIdAttributeNode=function(ee,te){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.getElementsByTagName=function(ee){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.getElementsByTagNameNS=function(ee,te){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.getElementsByClassName=function(ee){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.isEqualNode=function(ee){var te,le,fe;if(!b.__super__.isEqualNode.apply(this,arguments).isEqualNode(ee)||ee.namespaceURI!==this.namespaceURI||ee.prefix!==this.prefix||ee.localName!==this.localName||ee.attribs.length!==this.attribs.length)return!1;for(te=le=0,fe=this.attribs.length-1;0<=fe?le<=fe:le>=fe;te=0<=fe?++le:--le)if(!this.attribs[te].isEqualNode(ee.attribs[te]))return!1;return!0},b}(ue)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLAttribute":431,"./XMLNamedNodeMap":449,"./XMLNode":450}],449:[function(x,pe,de){(function(){var ae;pe.exports=ae=function(){function ne(se){this.nodes=se}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(se){return this.nodes[se]},ne.prototype.setNamedItem=function(se){var ce;return ce=this.nodes[se.nodeName],this.nodes[se.nodeName]=se,ce||null},ne.prototype.removeNamedItem=function(se){var ce;return ce=this.nodes[se],delete this.nodes[se],ce||null},ne.prototype.item=function(se){return this.nodes[Object.keys(this.nodes)[se]]||null},ne.prototype.getNamedItemNS=function(se,ce){throw new Error("This DOM method is not implemented.")},ne.prototype.setNamedItemNS=function(se){throw new Error("This DOM method is not implemented.")},ne.prototype.removeNamedItemNS=function(se,ce){throw new Error("This DOM method is not implemented.")},ne}()}).call(this)},{}],450:[function(x,pe,de){(function(){var ae,ne,se,ce,ue,ie,oe,re,z,a,y,E,b,ee,te,le,fe,he,me,ge={}.hasOwnProperty;me=x("./Utility"),he=me.isObject,fe=me.isFunction,le=me.isEmpty,te=me.getValue,re=null,se=null,ce=null,ue=null,ie=null,b=null,ee=null,E=null,oe=null,ne=null,y=null,z=null,ae=null,pe.exports=a=function(){function Se(ve){this.parent=ve,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,re||(re=x("./XMLElement"),se=x("./XMLCData"),ce=x("./XMLComment"),ue=x("./XMLDeclaration"),ie=x("./XMLDocType"),b=x("./XMLRaw"),ee=x("./XMLText"),E=x("./XMLProcessingInstruction"),oe=x("./XMLDummy"),ne=x("./NodeType"),y=x("./XMLNodeList"),z=x("./XMLNamedNodeMap"),ae=x("./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 ve;return ve=this.parent.children.indexOf(this),this.parent.children[ve-1]||null}}),Object.defineProperty(Se.prototype,"nextSibling",{get:function(){var ve;return ve=this.parent.children.indexOf(this),this.parent.children[ve+1]||null}}),Object.defineProperty(Se.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(Se.prototype,"textContent",{get:function(){var ve,be,Pe,Te,_e;if(this.nodeType===ne.Element||this.nodeType===ne.DocumentFragment){for(_e="",Te=this.children,be=0,Pe=Te.length;be<Pe;be++)ve=Te[be],ve.textContent&&(_e+=ve.textContent);return _e}else return null},set:function(ve){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Se.prototype.setParent=function(ve){var be,Pe,Te,_e,je;for(this.parent=ve,ve&&(this.options=ve.options,this.stringify=ve.stringify),_e=this.children,je=[],Pe=0,Te=_e.length;Pe<Te;Pe++)be=_e[Pe],je.push(be.setParent(this));return je},Se.prototype.element=function(ve,be,Pe){var Te,_e,je,Ce,Ie,ke,$e,Ne,nt,qe,Je;if(ke=null,be===null&&Pe==null&&(nt=[{},null],be=nt[0],Pe=nt[1]),be==null&&(be={}),be=te(be),he(be)||(qe=[be,Pe],Pe=qe[0],be=qe[1]),ve!=null&&(ve=te(ve)),Array.isArray(ve))for(je=0,$e=ve.length;je<$e;je++)_e=ve[je],ke=this.element(_e);else if(fe(ve))ke=this.element(ve.apply());else if(he(ve)){for(Ie in ve)if(ge.call(ve,Ie))if(Je=ve[Ie],fe(Je)&&(Je=Je.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&Ie.indexOf(this.stringify.convertAttKey)===0)ke=this.attribute(Ie.substr(this.stringify.convertAttKey.length),Je);else if(!this.options.separateArrayItems&&Array.isArray(Je)&&le(Je))ke=this.dummy();else if(he(Je)&&le(Je))ke=this.element(Ie);else if(!this.options.keepNullNodes&&Je==null)ke=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(Je))for(Ce=0,Ne=Je.length;Ce<Ne;Ce++)_e=Je[Ce],Te={},Te[Ie]=_e,ke=this.element(Te);else he(Je)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&Ie.indexOf(this.stringify.convertTextKey)===0?ke=this.element(Je):(ke=this.element(Ie),ke.element(Je)):ke=this.element(Ie,Je)}else!this.options.keepNullNodes&&Pe===null?ke=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&ve.indexOf(this.stringify.convertTextKey)===0?ke=this.text(Pe):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&ve.indexOf(this.stringify.convertCDataKey)===0?ke=this.cdata(Pe):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&ve.indexOf(this.stringify.convertCommentKey)===0?ke=this.comment(Pe):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&ve.indexOf(this.stringify.convertRawKey)===0?ke=this.raw(Pe):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&ve.indexOf(this.stringify.convertPIKey)===0?ke=this.instruction(ve.substr(this.stringify.convertPIKey.length),Pe):ke=this.node(ve,be,Pe);if(ke==null)throw new Error("Could not create any elements with: "+ve+". "+this.debugInfo());return ke},Se.prototype.insertBefore=function(ve,be,Pe){var Te,_e,je,Ce,Ie;if(ve!=null&&ve.type)return je=ve,Ce=be,je.setParent(this),Ce?(_e=children.indexOf(Ce),Ie=children.splice(_e),children.push(je),Array.prototype.push.apply(children,Ie)):children.push(je),je;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(ve));return _e=this.parent.children.indexOf(this),Ie=this.parent.children.splice(_e),Te=this.parent.element(ve,be,Pe),Array.prototype.push.apply(this.parent.children,Ie),Te},Se.prototype.insertAfter=function(ve,be,Pe){var Te,_e,je;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(ve));return _e=this.parent.children.indexOf(this),je=this.parent.children.splice(_e+1),Te=this.parent.element(ve,be,Pe),Array.prototype.push.apply(this.parent.children,je),Te},Se.prototype.remove=function(){var ve,be;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return ve=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[ve,ve-ve+1].concat(be=[])),this.parent},Se.prototype.node=function(ve,be,Pe){var Te,_e;return ve!=null&&(ve=te(ve)),be||(be={}),be=te(be),he(be)||(_e=[be,Pe],Pe=_e[0],be=_e[1]),Te=new re(this,ve,be),Pe!=null&&Te.text(Pe),this.children.push(Te),Te},Se.prototype.text=function(ve){var be;return he(ve)&&this.element(ve),be=new ee(this,ve),this.children.push(be),this},Se.prototype.cdata=function(ve){var be;return be=new se(this,ve),this.children.push(be),this},Se.prototype.comment=function(ve){var be;return be=new ce(this,ve),this.children.push(be),this},Se.prototype.commentBefore=function(ve){var be,Pe,Te;return Pe=this.parent.children.indexOf(this),Te=this.parent.children.splice(Pe),be=this.parent.comment(ve),Array.prototype.push.apply(this.parent.children,Te),this},Se.prototype.commentAfter=function(ve){var be,Pe,Te;return Pe=this.parent.children.indexOf(this),Te=this.parent.children.splice(Pe+1),be=this.parent.comment(ve),Array.prototype.push.apply(this.parent.children,Te),this},Se.prototype.raw=function(ve){var be;return be=new b(this,ve),this.children.push(be),this},Se.prototype.dummy=function(){var ve;return ve=new oe(this),ve},Se.prototype.instruction=function(ve,be){var Pe,Te,_e,je,Ce;if(ve!=null&&(ve=te(ve)),be!=null&&(be=te(be)),Array.isArray(ve))for(je=0,Ce=ve.length;je<Ce;je++)Pe=ve[je],this.instruction(Pe);else if(he(ve))for(Pe in ve)ge.call(ve,Pe)&&(Te=ve[Pe],this.instruction(Pe,Te));else fe(be)&&(be=be.apply()),_e=new E(this,ve,be),this.children.push(_e);return this},Se.prototype.instructionBefore=function(ve,be){var Pe,Te,_e;return Te=this.parent.children.indexOf(this),_e=this.parent.children.splice(Te),Pe=this.parent.instruction(ve,be),Array.prototype.push.apply(this.parent.children,_e),this},Se.prototype.instructionAfter=function(ve,be){var Pe,Te,_e;return Te=this.parent.children.indexOf(this),_e=this.parent.children.splice(Te+1),Pe=this.parent.instruction(ve,be),Array.prototype.push.apply(this.parent.children,_e),this},Se.prototype.declaration=function(ve,be,Pe){var Te,_e;return Te=this.document(),_e=new ue(Te,ve,be,Pe),Te.children.length===0?Te.children.unshift(_e):Te.children[0].type===ne.Declaration?Te.children[0]=_e:Te.children.unshift(_e),Te.root()||Te},Se.prototype.dtd=function(ve,be){var Pe,Te,_e,je,Ce,Ie,ke,$e,Ne,nt;for(Te=this.document(),_e=new ie(Te,ve,be),Ne=Te.children,je=Ce=0,ke=Ne.length;Ce<ke;je=++Ce)if(Pe=Ne[je],Pe.type===ne.DocType)return Te.children[je]=_e,_e;for(nt=Te.children,je=Ie=0,$e=nt.length;Ie<$e;je=++Ie)if(Pe=nt[je],Pe.isRoot)return Te.children.splice(je,0,_e),_e;return Te.children.push(_e),_e},Se.prototype.up=function(){if(this.isRoot)throw new Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent},Se.prototype.root=function(){var ve;for(ve=this;ve;){if(ve.type===ne.Document)return ve.rootObject;if(ve.isRoot)return ve;ve=ve.parent}},Se.prototype.document=function(){var ve;for(ve=this;ve;){if(ve.type===ne.Document)return ve;ve=ve.parent}},Se.prototype.end=function(ve){return this.document().end(ve)},Se.prototype.prev=function(){var ve;if(ve=this.parent.children.indexOf(this),ve<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[ve-1]},Se.prototype.next=function(){var ve;if(ve=this.parent.children.indexOf(this),ve===-1||ve===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[ve+1]},Se.prototype.importDocument=function(ve){var be;return be=ve.root().clone(),be.parent=this,be.isRoot=!1,this.children.push(be),this},Se.prototype.debugInfo=function(ve){var be,Pe;return ve=ve||this.name,ve==null&&!((be=this.parent)!=null&&be.name)?"":ve==null?"parent: <"+this.parent.name+">":(Pe=this.parent)!=null&&Pe.name?"node: <"+ve+">, parent: <"+this.parent.name+">":"node: <"+ve+">"},Se.prototype.ele=function(ve,be,Pe){return this.element(ve,be,Pe)},Se.prototype.nod=function(ve,be,Pe){return this.node(ve,be,Pe)},Se.prototype.txt=function(ve){return this.text(ve)},Se.prototype.dat=function(ve){return this.cdata(ve)},Se.prototype.com=function(ve){return this.comment(ve)},Se.prototype.ins=function(ve,be){return this.instruction(ve,be)},Se.prototype.doc=function(){return this.document()},Se.prototype.dec=function(ve,be,Pe){return this.declaration(ve,be,Pe)},Se.prototype.e=function(ve,be,Pe){return this.element(ve,be,Pe)},Se.prototype.n=function(ve,be,Pe){return this.node(ve,be,Pe)},Se.prototype.t=function(ve){return this.text(ve)},Se.prototype.d=function(ve){return this.cdata(ve)},Se.prototype.c=function(ve){return this.comment(ve)},Se.prototype.r=function(ve){return this.raw(ve)},Se.prototype.i=function(ve,be){return this.instruction(ve,be)},Se.prototype.u=function(){return this.up()},Se.prototype.importXMLBuilder=function(ve){return this.importDocument(ve)},Se.prototype.replaceChild=function(ve,be){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.removeChild=function(ve){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.appendChild=function(ve){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.hasChildNodes=function(){return this.children.length!==0},Se.prototype.cloneNode=function(ve){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(ve,be){return!0},Se.prototype.hasAttributes=function(){return this.attribs.length!==0},Se.prototype.compareDocumentPosition=function(ve){var be,Pe;return be=this,be===ve?0:this.document()!==ve.document()?(Pe=ae.Disconnected|ae.ImplementationSpecific,Math.random()<.5?Pe|=ae.Preceding:Pe|=ae.Following,Pe):be.isAncestor(ve)?ae.Contains|ae.Preceding:be.isDescendant(ve)?ae.Contains|ae.Following:be.isPreceding(ve)?ae.Preceding:ae.Following},Se.prototype.isSameNode=function(ve){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.lookupPrefix=function(ve){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.isDefaultNamespace=function(ve){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.lookupNamespaceURI=function(ve){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.isEqualNode=function(ve){var be,Pe,Te;if(ve.nodeType!==this.nodeType||ve.children.length!==this.children.length)return!1;for(be=Pe=0,Te=this.children.length-1;0<=Te?Pe<=Te:Pe>=Te;be=0<=Te?++Pe:--Pe)if(!this.children[be].isEqualNode(ve.children[be]))return!1;return!0},Se.prototype.getFeature=function(ve,be){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.setUserData=function(ve,be,Pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.getUserData=function(ve){throw new Error("This DOM method is not implemented."+this.debugInfo())},Se.prototype.contains=function(ve){return ve?ve===this||this.isDescendant(ve):!1},Se.prototype.isDescendant=function(ve){var be,Pe,Te,_e,je;for(je=this.children,Te=0,_e=je.length;Te<_e;Te++)if(be=je[Te],ve===be||(Pe=be.isDescendant(ve),Pe))return!0;return!1},Se.prototype.isAncestor=function(ve){return ve.isDescendant(this)},Se.prototype.isPreceding=function(ve){var be,Pe;return be=this.treePosition(ve),Pe=this.treePosition(this),be===-1||Pe===-1?!1:be<Pe},Se.prototype.isFollowing=function(ve){var be,Pe;return be=this.treePosition(ve),Pe=this.treePosition(this),be===-1||Pe===-1?!1:be>Pe},Se.prototype.treePosition=function(ve){var be,Pe;return Pe=0,be=!1,this.foreachTreeNode(this.document(),function(Te){if(Pe++,!be&&Te===ve)return be=!0}),be?Pe:-1},Se.prototype.foreachTreeNode=function(ve,be){var Pe,Te,_e,je,Ce;for(ve||(ve=this.document()),je=ve.children,Te=0,_e=je.length;Te<_e;Te++){if(Pe=je[Te],Ce=be(Pe))return Ce;if(Ce=this.foreachTreeNode(Pe,be),Ce)return Ce}},Se}()}).call(this)},{"./DocumentPosition":427,"./NodeType":428,"./Utility":429,"./XMLCData":432,"./XMLComment":434,"./XMLDeclaration":443,"./XMLDocType":444,"./XMLDummy":447,"./XMLElement":448,"./XMLNamedNodeMap":449,"./XMLNodeList":451,"./XMLProcessingInstruction":452,"./XMLRaw":453,"./XMLText":457}],451:[function(x,pe,de){(function(){var ae;pe.exports=ae=function(){function ne(se){this.nodes=se}return Object.defineProperty(ne.prototype,"length",{get:function(){return this.nodes.length||0}}),ne.prototype.clone=function(){return this.nodes=null},ne.prototype.item=function(se){return this.nodes[se]||null},ne}()}).call(this)},{}],452:[function(x,pe,de){(function(){var ae,ne,se,ce=function(ie,oe){for(var re in oe)ue.call(oe,re)&&(ie[re]=oe[re]);function z(){this.constructor=ie}return z.prototype=oe.prototype,ie.prototype=new z,ie.__super__=oe.prototype,ie},ue={}.hasOwnProperty;ae=x("./NodeType"),ne=x("./XMLCharacterData"),pe.exports=se=function(ie){ce(oe,ie);function oe(re,z,a){if(oe.__super__.constructor.call(this,re),z==null)throw new Error("Missing instruction target. "+this.debugInfo());this.type=ae.ProcessingInstruction,this.target=this.stringify.insTarget(z),this.name=this.target,a&&(this.value=this.stringify.insValue(a))}return oe.prototype.clone=function(){return Object.create(this)},oe.prototype.toString=function(re){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(re))},oe.prototype.isEqualNode=function(re){return!(!oe.__super__.isEqualNode.apply(this,arguments).isEqualNode(re)||re.target!==this.target)},oe}(ne)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],453:[function(x,pe,de){(function(){var ae,ne,se,ce=function(ie,oe){for(var re in oe)ue.call(oe,re)&&(ie[re]=oe[re]);function z(){this.constructor=ie}return z.prototype=oe.prototype,ie.prototype=new z,ie.__super__=oe.prototype,ie},ue={}.hasOwnProperty;ae=x("./NodeType"),ne=x("./XMLNode"),pe.exports=se=function(ie){ce(oe,ie);function oe(re,z){if(oe.__super__.constructor.call(this,re),z==null)throw new Error("Missing raw text. "+this.debugInfo());this.type=ae.Raw,this.value=this.stringify.raw(z)}return oe.prototype.clone=function(){return Object.create(this)},oe.prototype.toString=function(re){return this.options.writer.raw(this,this.options.writer.filterOptions(re))},oe}(ne)}).call(this)},{"./NodeType":428,"./XMLNode":450}],454:[function(x,pe,de){(function(){var ae,ne,se,ce,ue=function(oe,re){for(var z in re)ie.call(re,z)&&(oe[z]=re[z]);function a(){this.constructor=oe}return a.prototype=re.prototype,oe.prototype=new a,oe.__super__=re.prototype,oe},ie={}.hasOwnProperty;ae=x("./NodeType"),ce=x("./XMLWriterBase"),ne=x("./WriterState"),pe.exports=se=function(oe){ue(re,oe);function re(z,a){this.stream=z,re.__super__.constructor.call(this,a)}return re.prototype.endline=function(z,a,y){return z.isLastRootNode&&a.state===ne.CloseTag?"":re.__super__.endline.call(this,z,a,y)},re.prototype.document=function(z,a){var y,E,b,ee,te,le,fe,he,me;for(fe=z.children,E=b=0,te=fe.length;b<te;E=++b)y=fe[E],y.isLastRootNode=E===z.children.length-1;for(a=this.filterOptions(a),he=z.children,me=[],ee=0,le=he.length;ee<le;ee++)y=he[ee],me.push(this.writeChildNode(y,a,0));return me},re.prototype.attribute=function(z,a,y){return this.stream.write(re.__super__.attribute.call(this,z,a,y))},re.prototype.cdata=function(z,a,y){return this.stream.write(re.__super__.cdata.call(this,z,a,y))},re.prototype.comment=function(z,a,y){return this.stream.write(re.__super__.comment.call(this,z,a,y))},re.prototype.declaration=function(z,a,y){return this.stream.write(re.__super__.declaration.call(this,z,a,y))},re.prototype.docType=function(z,a,y){var E,b,ee,te;if(y||(y=0),this.openNode(z,a,y),a.state=ne.OpenTag,this.stream.write(this.indent(z,a,y)),this.stream.write("<!DOCTYPE "+z.root().name),z.pubID&&z.sysID?this.stream.write(' PUBLIC "'+z.pubID+'" "'+z.sysID+'"'):z.sysID&&this.stream.write(' SYSTEM "'+z.sysID+'"'),z.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(z,a,y)),a.state=ne.InsideTag,te=z.children,b=0,ee=te.length;b<ee;b++)E=te[b],this.writeChildNode(E,a,y+1);a.state=ne.CloseTag,this.stream.write("]")}return a.state=ne.CloseTag,this.stream.write(a.spaceBeforeSlash+">"),this.stream.write(this.endline(z,a,y)),a.state=ne.None,this.closeNode(z,a,y)},re.prototype.element=function(z,a,y){var E,b,ee,te,le,fe,he,me,ge,Se;y||(y=0),this.openNode(z,a,y),a.state=ne.OpenTag,this.stream.write(this.indent(z,a,y)+"<"+z.name),ge=z.attribs;for(he in ge)ie.call(ge,he)&&(E=ge[he],this.attribute(E,a,y));if(ee=z.children.length,te=ee===0?null:z.children[0],ee===0||z.children.every(function(ve){return(ve.type===ae.Text||ve.type===ae.Raw)&&ve.value===""}))a.allowEmpty?(this.stream.write(">"),a.state=ne.CloseTag,this.stream.write("</"+z.name+">")):(a.state=ne.CloseTag,this.stream.write(a.spaceBeforeSlash+"/>"));else if(a.pretty&&ee===1&&(te.type===ae.Text||te.type===ae.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("</"+z.name+">");else{for(this.stream.write(">"+this.endline(z,a,y)),a.state=ne.InsideTag,Se=z.children,le=0,fe=Se.length;le<fe;le++)b=Se[le],this.writeChildNode(b,a,y+1);a.state=ne.CloseTag,this.stream.write(this.indent(z,a,y)+"</"+z.name+">")}return this.stream.write(this.endline(z,a,y)),a.state=ne.None,this.closeNode(z,a,y)},re.prototype.processingInstruction=function(z,a,y){return this.stream.write(re.__super__.processingInstruction.call(this,z,a,y))},re.prototype.raw=function(z,a,y){return this.stream.write(re.__super__.raw.call(this,z,a,y))},re.prototype.text=function(z,a,y){return this.stream.write(re.__super__.text.call(this,z,a,y))},re.prototype.dtdAttList=function(z,a,y){return this.stream.write(re.__super__.dtdAttList.call(this,z,a,y))},re.prototype.dtdElement=function(z,a,y){return this.stream.write(re.__super__.dtdElement.call(this,z,a,y))},re.prototype.dtdEntity=function(z,a,y){return this.stream.write(re.__super__.dtdEntity.call(this,z,a,y))},re.prototype.dtdNotation=function(z,a,y){return this.stream.write(re.__super__.dtdNotation.call(this,z,a,y))},re}(ce)}).call(this)},{"./NodeType":428,"./WriterState":430,"./XMLWriterBase":458}],455:[function(x,pe,de){(function(){var ae,ne,se=function(ue,ie){for(var oe in ie)ce.call(ie,oe)&&(ue[oe]=ie[oe]);function re(){this.constructor=ue}return re.prototype=ie.prototype,ue.prototype=new re,ue.__super__=ie.prototype,ue},ce={}.hasOwnProperty;ne=x("./XMLWriterBase"),pe.exports=ae=function(ue){se(ie,ue);function ie(oe){ie.__super__.constructor.call(this,oe)}return ie.prototype.document=function(oe,re){var z,a,y,E,b;for(re=this.filterOptions(re),E="",b=oe.children,a=0,y=b.length;a<y;a++)z=b[a],E+=this.writeChildNode(z,re,0);return re.pretty&&E.slice(-re.newline.length)===re.newline&&(E=E.slice(0,-re.newline.length)),E},ie}(ne)}).call(this)},{"./XMLWriterBase":458}],456:[function(x,pe,de){(function(){var ae,ne=function(ce,ue){return function(){return ce.apply(ue,arguments)}},se={}.hasOwnProperty;pe.exports=ae=function(){function ce(ue){this.assertLegalName=ne(this.assertLegalName,this),this.assertLegalChar=ne(this.assertLegalChar,this);var ie,oe,re;ue||(ue={}),this.options=ue,this.options.version||(this.options.version="1.0"),oe=ue.stringify||{};for(ie in oe)se.call(oe,ie)&&(re=oe[ie],this[ie]=re)}return ce.prototype.name=function(ue){return this.options.noValidation?ue:this.assertLegalName(""+ue||"")},ce.prototype.text=function(ue){return this.options.noValidation?ue:this.assertLegalChar(this.textEscape(""+ue||""))},ce.prototype.cdata=function(ue){return this.options.noValidation?ue:(ue=""+ue||"",ue=ue.replace("]]>","]]]]><![CDATA[>"),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 ie,oe;if(this.options.noValidation)return ue;if(ie="",this.options.version==="1.0"){if(ie=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,oe=ue.match(ie))throw new Error("Invalid character in string: "+ue+" at index "+oe.index)}else if(this.options.version==="1.1"&&(ie=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,oe=ue.match(ie)))throw new Error("Invalid character in string: "+ue+" at index "+oe.index);return ue},ce.prototype.assertLegalName=function(ue){var ie;if(this.options.noValidation)return ue;if(this.assertLegalChar(ue),ie=/^([: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(ie))throw new Error("Invalid character in name");return ue},ce.prototype.textEscape=function(ue){var ie;return this.options.noValidation?ue:(ie=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,ue.replace(ie,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
"))},ce.prototype.attEscape=function(ue){var ie;return this.options.noValidation?ue:(ie=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,ue.replace(ie,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
"))},ce}()}).call(this)},{}],457:[function(x,pe,de){(function(){var ae,ne,se,ce=function(ie,oe){for(var re in oe)ue.call(oe,re)&&(ie[re]=oe[re]);function z(){this.constructor=ie}return z.prototype=oe.prototype,ie.prototype=new z,ie.__super__=oe.prototype,ie},ue={}.hasOwnProperty;ae=x("./NodeType"),ne=x("./XMLCharacterData"),pe.exports=se=function(ie){ce(oe,ie);function oe(re,z){if(oe.__super__.constructor.call(this,re),z==null)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=ae.Text,this.value=this.stringify.text(z)}return Object.defineProperty(oe.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(oe.prototype,"wholeText",{get:function(){var re,z,a;for(a="",z=this.previousSibling;z;)a=z.data+a,z=z.previousSibling;for(a+=this.data,re=this.nextSibling;re;)a=a+re.data,re=re.nextSibling;return a}}),oe.prototype.clone=function(){return Object.create(this)},oe.prototype.toString=function(re){return this.options.writer.text(this,this.options.writer.filterOptions(re))},oe.prototype.splitText=function(re){throw new Error("This DOM method is not implemented."+this.debugInfo())},oe.prototype.replaceWholeText=function(re){throw new Error("This DOM method is not implemented."+this.debugInfo())},oe}(ne)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],458:[function(x,pe,de){(function(){var ae,ne,se,ce,ue,ie,oe,re,z,a,y,E,b,ee,te,le,fe,he={}.hasOwnProperty;fe=x("./Utility").assign,ae=x("./NodeType"),z=x("./XMLDeclaration"),a=x("./XMLDocType"),se=x("./XMLCData"),ce=x("./XMLComment"),E=x("./XMLElement"),ee=x("./XMLRaw"),te=x("./XMLText"),b=x("./XMLProcessingInstruction"),y=x("./XMLDummy"),ue=x("./XMLDTDAttList"),ie=x("./XMLDTDElement"),oe=x("./XMLDTDEntity"),re=x("./XMLDTDNotation"),ne=x("./WriterState"),pe.exports=le=function(){function me(ge){var Se,ve,be;ge||(ge={}),this.options=ge,ve=ge.writer||{};for(Se in ve)he.call(ve,Se)&&(be=ve[Se],this["_"+Se]=this[Se],this[Se]=be)}return me.prototype.filterOptions=function(ge){var Se,ve,be,Pe,Te,_e,je,Ce;return ge||(ge={}),ge=fe({},this.options,ge),Se={writer:this},Se.pretty=ge.pretty||!1,Se.allowEmpty=ge.allowEmpty||!1,Se.indent=(ve=ge.indent)!=null?ve:" ",Se.newline=(be=ge.newline)!=null?be:`
|
|
|
`,Se.offset=(Pe=ge.offset)!=null?Pe:0,Se.dontPrettyTextNodes=(Te=(_e=ge.dontPrettyTextNodes)!=null?_e:ge.dontprettytextnodes)!=null?Te:0,Se.spaceBeforeSlash=(je=(Ce=ge.spaceBeforeSlash)!=null?Ce:ge.spacebeforeslash)!=null?je:"",Se.spaceBeforeSlash===!0&&(Se.spaceBeforeSlash=" "),Se.suppressPrettyCount=0,Se.user={},Se.state=ne.None,Se},me.prototype.indent=function(ge,Se,ve){var be;return!Se.pretty||Se.suppressPrettyCount?"":Se.pretty&&(be=(ve||0)+Se.offset+1,be>0)?new Array(be).join(Se.indent):""},me.prototype.endline=function(ge,Se,ve){return!Se.pretty||Se.suppressPrettyCount?"":Se.newline},me.prototype.attribute=function(ge,Se,ve){var be;return this.openAttribute(ge,Se,ve),be=" "+ge.name+'="'+ge.value+'"',this.closeAttribute(ge,Se,ve),be},me.prototype.cdata=function(ge,Se,ve){var be;return this.openNode(ge,Se,ve),Se.state=ne.OpenTag,be=this.indent(ge,Se,ve)+"<![CDATA[",Se.state=ne.InsideTag,be+=ge.value,Se.state=ne.CloseTag,be+="]]>"+this.endline(ge,Se,ve),Se.state=ne.None,this.closeNode(ge,Se,ve),be},me.prototype.comment=function(ge,Se,ve){var be;return this.openNode(ge,Se,ve),Se.state=ne.OpenTag,be=this.indent(ge,Se,ve)+"<!-- ",Se.state=ne.InsideTag,be+=ge.value,Se.state=ne.CloseTag,be+=" -->"+this.endline(ge,Se,ve),Se.state=ne.None,this.closeNode(ge,Se,ve),be},me.prototype.declaration=function(ge,Se,ve){var be;return this.openNode(ge,Se,ve),Se.state=ne.OpenTag,be=this.indent(ge,Se,ve)+"<?xml",Se.state=ne.InsideTag,be+=' version="'+ge.version+'"',ge.encoding!=null&&(be+=' encoding="'+ge.encoding+'"'),ge.standalone!=null&&(be+=' standalone="'+ge.standalone+'"'),Se.state=ne.CloseTag,be+=Se.spaceBeforeSlash+"?>",be+=this.endline(ge,Se,ve),Se.state=ne.None,this.closeNode(ge,Se,ve),be},me.prototype.docType=function(ge,Se,ve){var be,Pe,Te,_e,je;if(ve||(ve=0),this.openNode(ge,Se,ve),Se.state=ne.OpenTag,_e=this.indent(ge,Se,ve),_e+="<!DOCTYPE "+ge.root().name,ge.pubID&&ge.sysID?_e+=' PUBLIC "'+ge.pubID+'" "'+ge.sysID+'"':ge.sysID&&(_e+=' SYSTEM "'+ge.sysID+'"'),ge.children.length>0){for(_e+=" [",_e+=this.endline(ge,Se,ve),Se.state=ne.InsideTag,je=ge.children,Pe=0,Te=je.length;Pe<Te;Pe++)be=je[Pe],_e+=this.writeChildNode(be,Se,ve+1);Se.state=ne.CloseTag,_e+="]"}return Se.state=ne.CloseTag,_e+=Se.spaceBeforeSlash+">",_e+=this.endline(ge,Se,ve),Se.state=ne.None,this.closeNode(ge,Se,ve),_e},me.prototype.element=function(ge,Se,ve){var be,Pe,Te,_e,je,Ce,Ie,ke,$e,Ne,nt,qe,Je,Ye;ve||(ve=0),Ne=!1,nt="",this.openNode(ge,Se,ve),Se.state=ne.OpenTag,nt+=this.indent(ge,Se,ve)+"<"+ge.name,qe=ge.attribs;for($e in qe)he.call(qe,$e)&&(be=qe[$e],nt+=this.attribute(be,Se,ve));if(Te=ge.children.length,_e=Te===0?null:ge.children[0],Te===0||ge.children.every(function(We){return(We.type===ae.Text||We.type===ae.Raw)&&We.value===""}))Se.allowEmpty?(nt+=">",Se.state=ne.CloseTag,nt+="</"+ge.name+">"+this.endline(ge,Se,ve)):(Se.state=ne.CloseTag,nt+=Se.spaceBeforeSlash+"/>"+this.endline(ge,Se,ve));else if(Se.pretty&&Te===1&&(_e.type===ae.Text||_e.type===ae.Raw)&&_e.value!=null)nt+=">",Se.state=ne.InsideTag,Se.suppressPrettyCount++,Ne=!0,nt+=this.writeChildNode(_e,Se,ve+1),Se.suppressPrettyCount--,Ne=!1,Se.state=ne.CloseTag,nt+="</"+ge.name+">"+this.endline(ge,Se,ve);else{if(Se.dontPrettyTextNodes){for(Je=ge.children,je=0,Ie=Je.length;je<Ie;je++)if(Pe=Je[je],(Pe.type===ae.Text||Pe.type===ae.Raw)&&Pe.value!=null){Se.suppressPrettyCount++,Ne=!0;break}}for(nt+=">"+this.endline(ge,Se,ve),Se.state=ne.InsideTag,Ye=ge.children,Ce=0,ke=Ye.length;Ce<ke;Ce++)Pe=Ye[Ce],nt+=this.writeChildNode(Pe,Se,ve+1);Se.state=ne.CloseTag,nt+=this.indent(ge,Se,ve)+"</"+ge.name+">",Ne&&Se.suppressPrettyCount--,nt+=this.endline(ge,Se,ve),Se.state=ne.None}return this.closeNode(ge,Se,ve),nt},me.prototype.writeChildNode=function(ge,Se,ve){switch(ge.type){case ae.CData:return this.cdata(ge,Se,ve);case ae.Comment:return this.comment(ge,Se,ve);case ae.Element:return this.element(ge,Se,ve);case ae.Raw:return this.raw(ge,Se,ve);case ae.Text:return this.text(ge,Se,ve);case ae.ProcessingInstruction:return this.processingInstruction(ge,Se,ve);case ae.Dummy:return"";case ae.Declaration:return this.declaration(ge,Se,ve);case ae.DocType:return this.docType(ge,Se,ve);case ae.AttributeDeclaration:return this.dtdAttList(ge,Se,ve);case ae.ElementDeclaration:return this.dtdElement(ge,Se,ve);case ae.EntityDeclaration:return this.dtdEntity(ge,Se,ve);case ae.NotationDeclaration:return this.dtdNotation(ge,Se,ve);default:throw new Error("Unknown XML node type: "+ge.constructor.name)}},me.prototype.processingInstruction=function(ge,Se,ve){var be;return this.openNode(ge,Se,ve),Se.state=ne.OpenTag,be=this.indent(ge,Se,ve)+"<?",Se.state=ne.InsideTag,be+=ge.target,ge.value&&(be+=" "+ge.value),Se.state=ne.CloseTag,be+=Se.spaceBeforeSlash+"?>",be+=this.endline(ge,Se,ve),Se.state=ne.None,this.closeNode(ge,Se,ve),be},me.prototype.raw=function(ge,Se,ve){var be;return this.openNode(ge,Se,ve),Se.state=ne.OpenTag,be=this.indent(ge,Se,ve),Se.state=ne.InsideTag,be+=ge.value,Se.state=ne.CloseTag,be+=this.endline(ge,Se,ve),Se.state=ne.None,this.closeNode(ge,Se,ve),be},me.prototype.text=function(ge,Se,ve){var be;return this.openNode(ge,Se,ve),Se.state=ne.OpenTag,be=this.indent(ge,Se,ve),Se.state=ne.InsideTag,be+=ge.value,Se.state=ne.CloseTag,be+=this.endline(ge,Se,ve),Se.state=ne.None,this.closeNode(ge,Se,ve),be},me.prototype.dtdAttList=function(ge,Se,ve){var be;return this.openNode(ge,Se,ve),Se.state=ne.OpenTag,be=this.indent(ge,Se,ve)+"<!ATTLIST",Se.state=ne.InsideTag,be+=" "+ge.elementName+" "+ge.attributeName+" "+ge.attributeType,ge.defaultValueType!=="#DEFAULT"&&(be+=" "+ge.defaultValueType),ge.defaultValue&&(be+=' "'+ge.defaultValue+'"'),Se.state=ne.CloseTag,be+=Se.spaceBeforeSlash+">"+this.endline(ge,Se,ve),Se.state=ne.None,this.closeNode(ge,Se,ve),be},me.prototype.dtdElement=function(ge,Se,ve){var be;return this.openNode(ge,Se,ve),Se.state=ne.OpenTag,be=this.indent(ge,Se,ve)+"<!ELEMENT",Se.state=ne.InsideTag,be+=" "+ge.name+" "+ge.value,Se.state=ne.CloseTag,be+=Se.spaceBeforeSlash+">"+this.endline(ge,Se,ve),Se.state=ne.None,this.closeNode(ge,Se,ve),be},me.prototype.dtdEntity=function(ge,Se,ve){var be;return this.openNode(ge,Se,ve),Se.state=ne.OpenTag,be=this.indent(ge,Se,ve)+"<!ENTITY",Se.state=ne.InsideTag,ge.pe&&(be+=" %"),be+=" "+ge.name,ge.value?be+=' "'+ge.value+'"':(ge.pubID&&ge.sysID?be+=' PUBLIC "'+ge.pubID+'" "'+ge.sysID+'"':ge.sysID&&(be+=' SYSTEM "'+ge.sysID+'"'),ge.nData&&(be+=" NDATA "+ge.nData)),Se.state=ne.CloseTag,be+=Se.spaceBeforeSlash+">"+this.endline(ge,Se,ve),Se.state=ne.None,this.closeNode(ge,Se,ve),be},me.prototype.dtdNotation=function(ge,Se,ve){var be;return this.openNode(ge,Se,ve),Se.state=ne.OpenTag,be=this.indent(ge,Se,ve)+"<!NOTATION",Se.state=ne.InsideTag,be+=" "+ge.name,ge.pubID&&ge.sysID?be+=' PUBLIC "'+ge.pubID+'" "'+ge.sysID+'"':ge.pubID?be+=' PUBLIC "'+ge.pubID+'"':ge.sysID&&(be+=' SYSTEM "'+ge.sysID+'"'),Se.state=ne.CloseTag,be+=Se.spaceBeforeSlash+">"+this.endline(ge,Se,ve),Se.state=ne.None,this.closeNode(ge,Se,ve),be},me.prototype.openNode=function(ge,Se,ve){},me.prototype.closeNode=function(ge,Se,ve){},me.prototype.openAttribute=function(ge,Se,ve){},me.prototype.closeAttribute=function(ge,Se,ve){},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(x,pe,de){(function(){var ae,ne,se,ce,ue,ie,oe,re,z,a;a=x("./Utility"),re=a.assign,z=a.isFunction,se=x("./XMLDOMImplementation"),ce=x("./XMLDocument"),ue=x("./XMLDocumentCB"),oe=x("./XMLStringWriter"),ie=x("./XMLStreamWriter"),ae=x("./NodeType"),ne=x("./WriterState"),pe.exports.create=function(y,E,b,ee){var te,le;if(y==null)throw new Error("Root element needs a name.");return ee=re({},E,b,ee),te=new ce(ee),le=te.element(y),ee.headless||(te.declaration(ee),(ee.pubID!=null||ee.sysID!=null)&&te.dtd(ee)),le},pe.exports.begin=function(y,E,b){var ee;return z(y)&&(ee=[y,E],E=ee[0],b=ee[1],y={}),E?new ue(y,E,b):new ce(y)},pe.exports.stringWriter=function(y){return new oe(y)},pe.exports.streamWriter=function(y,E){return new ie(y,E)},pe.exports.implementation=new se,pe.exports.nodeType=ae,pe.exports.writerState=ne}).call(this)},{"./NodeType":428,"./Utility":429,"./WriterState":430,"./XMLDOMImplementation":437,"./XMLDocument":445,"./XMLDocumentCB":446,"./XMLStreamWriter":454,"./XMLStringWriter":455}],460:[function(x,pe,de){pe.exports=ne;var ae=Object.prototype.hasOwnProperty;function ne(){for(var se={},ce=0;ce<arguments.length;ce++){var ue=arguments[ce];for(var ie in ue)ae.call(ue,ie)&&(se[ie]=ue[ie])}return se}},{}],461:[function(x,pe,de){"use strict";x("core-js/modules/es.array.fill.js"),x("core-js/modules/es.array.concat.js"),x("core-js/modules/es.object.to-string.js"),x("core-js/modules/es.regexp.to-string.js"),x("core-js/modules/es.array.join.js"),x("core-js/modules/es.array.slice.js");var ae=x("buffer").Buffer,ne=x("./sha"),se=x("./md5"),ce={sha1:ne,md5:se},ue=64,ie=ae.alloc(ue);ie.fill(0);function oe(a,y,E){ae.isBuffer(y)||(y=ae.from(y)),ae.isBuffer(E)||(E=ae.from(E)),y.length>ue?y=a(y):y.length<ue&&(y=ae.concat([y,ie],ue));for(var b=ae.alloc(ue),ee=ae.alloc(ue),te=0;te<ue;te++)b[te]=y[te]^54,ee[te]=y[te]^92;var le=a(ae.concat([b,E]));return a(ae.concat([ee,le]))}function re(a,y){a=a||"sha1";var E=ce[a],b=[],ee=0;return E||z("algorithm:",a,"is not yet supported"),{update:function(le){return ae.isBuffer(le)||(le=ae.from(le)),b.push(le),ee+=le.length,this},digest:function(le){var fe=ae.concat(b),he=y?oe(E,y,fe):E(fe);return b=null,le?he.toString(le):he}}}function z(){var a=[].slice.call(arguments).join(" ");throw new Error([a,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
|
|
|
`))}de.createHash=function(a){return re(a)},de.createHmac=function(a,y){return re(a,y)},de.createCredentials=function(){z("sorry,createCredentials is not implemented yet")},de.createCipher=function(){z("sorry,createCipher is not implemented yet")},de.createCipheriv=function(){z("sorry,createCipheriv is not implemented yet")},de.createDecipher=function(){z("sorry,createDecipher is not implemented yet")},de.createDecipheriv=function(){z("sorry,createDecipheriv is not implemented yet")},de.createSign=function(){z("sorry,createSign is not implemented yet")},de.createVerify=function(){z("sorry,createVerify is not implemented yet")},de.createDiffieHellman=function(){z("sorry,createDiffieHellman is not implemented yet")},de.pbkdf2=function(){z("sorry,pbkdf2 is not implemented yet")}},{"./md5":463,"./sha":464,buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.fill.js":273,"core-js/modules/es.array.join.js":279,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301}],462:[function(x,pe,de){"use strict";x("core-js/modules/es.array.fill.js"),x("core-js/modules/es.array.concat.js");var ae=x("buffer").Buffer,ne=4,se=ae.alloc(ne);se.fill(0);var ce=8;function ue(re,z){if(re.length%ne!==0){var a=re.length+(ne-re.length%ne);re=ae.concat([re,se],a)}for(var y=[],E=z?re.readInt32BE:re.readInt32LE,b=0;b<re.length;b+=ne)y.push(E.call(re,b));return y}function ie(re,z,a){for(var y=ae.alloc(z),E=a?y.writeInt32BE:y.writeInt32LE,b=0;b<re.length;b++)E.call(y,re[b],b*4,!0);return y}function oe(re,z,a,y){ae.isBuffer(re)||(re=ae.from(re));var E=z(ue(re,y),re.length*ce);return ie(E,a,y)}pe.exports={hash:oe}},{buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.fill.js":273}],463:[function(x,pe,de){"use strict";var ae=x("./helpers");function ne(){return hex_md5("abc")=="900150983cd24fb0d6963f7d28e17f72"}function se(y,E){y[E>>5]|=128<<E%32,y[(E+64>>>9<<4)+14]=E;for(var b=1732584193,ee=-271733879,te=-1732584194,le=271733878,fe=0;fe<y.length;fe+=16){var he=b,me=ee,ge=te,Se=le;b=ue(b,ee,te,le,y[fe+0],7,-680876936),le=ue(le,b,ee,te,y[fe+1],12,-389564586),te=ue(te,le,b,ee,y[fe+2],17,606105819),ee=ue(ee,te,le,b,y[fe+3],22,-1044525330),b=ue(b,ee,te,le,y[fe+4],7,-176418897),le=ue(le,b,ee,te,y[fe+5],12,1200080426),te=ue(te,le,b,ee,y[fe+6],17,-1473231341),ee=ue(ee,te,le,b,y[fe+7],22,-45705983),b=ue(b,ee,te,le,y[fe+8],7,1770035416),le=ue(le,b,ee,te,y[fe+9],12,-1958414417),te=ue(te,le,b,ee,y[fe+10],17,-42063),ee=ue(ee,te,le,b,y[fe+11],22,-1990404162),b=ue(b,ee,te,le,y[fe+12],7,1804603682),le=ue(le,b,ee,te,y[fe+13],12,-40341101),te=ue(te,le,b,ee,y[fe+14],17,-1502002290),ee=ue(ee,te,le,b,y[fe+15],22,1236535329),b=ie(b,ee,te,le,y[fe+1],5,-165796510),le=ie(le,b,ee,te,y[fe+6],9,-1069501632),te=ie(te,le,b,ee,y[fe+11],14,643717713),ee=ie(ee,te,le,b,y[fe+0],20,-373897302),b=ie(b,ee,te,le,y[fe+5],5,-701558691),le=ie(le,b,ee,te,y[fe+10],9,38016083),te=ie(te,le,b,ee,y[fe+15],14,-660478335),ee=ie(ee,te,le,b,y[fe+4],20,-405537848),b=ie(b,ee,te,le,y[fe+9],5,568446438),le=ie(le,b,ee,te,y[fe+14],9,-1019803690),te=ie(te,le,b,ee,y[fe+3],14,-187363961),ee=ie(ee,te,le,b,y[fe+8],20,1163531501),b=ie(b,ee,te,le,y[fe+13],5,-1444681467),le=ie(le,b,ee,te,y[fe+2],9,-51403784),te=ie(te,le,b,ee,y[fe+7],14,1735328473),ee=ie(ee,te,le,b,y[fe+12],20,-1926607734),b=oe(b,ee,te,le,y[fe+5],4,-378558),le=oe(le,b,ee,te,y[fe+8],11,-2022574463),te=oe(te,le,b,ee,y[fe+11],16,1839030562),ee=oe(ee,te,le,b,y[fe+14],23,-35309556),b=oe(b,ee,te,le,y[fe+1],4,-1530992060),le=oe(le,b,ee,te,y[fe+4],11,1272893353),te=oe(te,le,b,ee,y[fe+7],16,-155497632),ee=oe(ee,te,le,b,y[fe+10],23,-1094730640),b=oe(b,ee,te,le,y[fe+13],4,681279174),le=oe(le,b,ee,te,y[fe+0],11,-358537222),te=oe(te,le,b,ee,y[fe+3],16,-722521979),ee=oe(ee,te,le,b,y[fe+6],23,76029189),b=oe(b,ee,te,le,y[fe+9],4,-640364487),le=oe(le,b,ee,te,y[fe+12],11,-421815835),te=oe(te,le,b,ee,y[fe+15],16,530742520),ee=oe(ee,te,le,b,y[fe+2],23,-995338651),b=re(b,ee,te,le,y[fe+0],6,-198630844),le=re(le,b,ee,te,y[fe+7],10,1126891415),te=re(te,le,b,ee,y[fe+14],15,-1416354905),ee=re(ee,te,le,b,y[fe+5],21,-57434055),b=re(b,ee,te,le,y[fe+12],6,1700485571),le=re(le,b,ee,te,y[fe+3],10,-1894986606),te=re(te,le,b,ee,y[fe+10],15,-1051523),ee=re(ee,te,le,b,y[fe+1],21,-2054922799),b=re(b,ee,te,le,y[fe+8],6,1873313359),le=re(le,b,ee,te,y[fe+15],10,-30611744),te=re(te,le,b,ee,y[fe+6],15,-1560198380),ee=re(ee,te,le,b,y[fe+13],21,1309151649),b=re(b,ee,te,le,y[fe+4],6,-145523070),le=re(le,b,ee,te,y[fe+11],10,-1120210379),te=re(te,le,b,ee,y[fe+2],15,718787259),ee=re(ee,te,le,b,y[fe+9],21,-343485551),b=z(b,he),ee=z(ee,me),te=z(te,ge),le=z(le,Se)}return Array(b,ee,te,le)}function ce(y,E,b,ee,te,le){return z(a(z(z(E,y),z(ee,le)),te),b)}function ue(y,E,b,ee,te,le,fe){return ce(E&b|~E&ee,y,E,te,le,fe)}function ie(y,E,b,ee,te,le,fe){return ce(E&ee|b&~ee,y,E,te,le,fe)}function oe(y,E,b,ee,te,le,fe){return ce(E^b^ee,y,E,te,le,fe)}function re(y,E,b,ee,te,le,fe){return ce(b^(E|~ee),y,E,te,le,fe)}function z(y,E){var b=(y&65535)+(E&65535),ee=(y>>16)+(E>>16)+(b>>16);return ee<<16|b&65535}function a(y,E){return y<<E|y>>>32-E}pe.exports=function(E){return ae.hash(E,se,16)}},{"./helpers":462}],464:[function(x,pe,de){"use strict";var ae=x("./helpers");function ne(oe,re){oe[re>>5]|=128<<24-re%32,oe[(re+64>>9<<4)+15]=re;for(var z=Array(80),a=1732584193,y=-271733879,E=-1732584194,b=271733878,ee=-1009589776,te=0;te<oe.length;te+=16){for(var le=a,fe=y,he=E,me=b,ge=ee,Se=0;Se<80;Se++){Se<16?z[Se]=oe[te+Se]:z[Se]=ie(z[Se-3]^z[Se-8]^z[Se-14]^z[Se-16],1);var ve=ue(ue(ie(a,5),se(Se,y,E,b)),ue(ue(ee,z[Se]),ce(Se)));ee=b,b=E,E=ie(y,30),y=a,a=ve}a=ue(a,le),y=ue(y,fe),E=ue(E,he),b=ue(b,me),ee=ue(ee,ge)}return Array(a,y,E,b,ee)}function se(oe,re,z,a){return oe<20?re&z|~re&a:oe<40?re^z^a:oe<60?re&z|re&a|z&a:re^z^a}function ce(oe){return oe<20?1518500249:oe<40?1859775393:oe<60?-1894007588:-899497514}function ue(oe,re){var z=(oe&65535)+(re&65535),a=(oe>>16)+(re>>16)+(z>>16);return a<<16|z&65535}function ie(oe,re){return oe<<re|oe>>>32-re}pe.exports=function(re){return ae.hash(re,ne,20,!0)}},{"./helpers":462}],465:[function(x,pe,de){"use strict";pe.exports=function(){return function(){}}},{}],466:[function(x,pe,de){(function(ae){(function(){"use strict";var ne=x("@babel/runtime/helpers/interopRequireDefault"),se=ne(x("@babel/runtime/helpers/typeof")),ce=x("stream"),ue=ce.Stream,ie=x("../lib/common/utils/isArray"),oe=ie.isArray;pe.exports.string=function(a){return typeof a=="string"},pe.exports.array=oe,pe.exports.buffer=ae.isBuffer;function re(z){return z instanceof ue}pe.exports.writableStream=function(a){return re(a)&&typeof a._write=="function"&&(0,se.default)(a._writableState)==="object"}}).call(this)}).call(this,{isBuffer:x("../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(x,pe,de){"use strict";var ae=x("immediate"),ne=pe.exports={};ne.nextTick=ae,ne.title="browser",ne.browser=!0,ne.env={},ne.argv=[],ne.version="",ne.versions={};function se(){}ne.on=se,ne.addListener=se,ne.once=se,ne.off=se,ne.removeListener=se,ne.removeAllListeners=se,ne.emit=se,ne.prependListener=se,ne.prependOnceListener=se,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(x,pe,de){(function(ae){(function(){"use strict";x("core-js/modules/es.regexp.exec.js"),x("core-js/modules/es.string.search.js");var ne=x("./lib/request"),se=x("./lib/response"),ce=x("xtend"),ue=x("builtin-status-codes"),ie=x("url"),oe=de;oe.request=function(re,z){typeof re=="string"?re=ie.parse(re):re=ce(re);var a=ae.location.protocol.search(/^https?:$/)===-1?"http:":"",y=re.protocol||a,E=re.hostname||re.host,b=re.port,ee=re.path||"/";E&&E.indexOf(":")!==-1&&(E="["+E+"]"),re.url=(E?y+"//"+E:"")+(b?":"+b:"")+ee,re.method=(re.method||"GET").toUpperCase(),re.headers=re.headers||{};var te=new ne(re);return z&&te.on("response",z),te},oe.get=function(z,a){var y=oe.request(z,a);return y.end(),y},oe.ClientRequest=ne,oe.IncomingMessage=se.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 ft!="undefined"?ft: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(x,pe,de){(function(ae){(function(){"use strict";x("core-js/modules/es.object.to-string.js"),x("core-js/modules/es.promise.js"),x("core-js/modules/es.array-buffer.constructor.js"),x("core-js/modules/es.array-buffer.slice.js"),x("core-js/modules/es.array.slice.js"),de.fetch=oe(ae.fetch)&&oe(ae.ReadableStream),de.writableStream=oe(ae.WritableStream),de.abortController=oe(ae.AbortController),de.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),de.blobConstructor=!0}catch(re){}var ne;function se(){if(ne!==void 0)return ne;if(ae.XMLHttpRequest){ne=new ae.XMLHttpRequest;try{ne.open("GET",ae.XDomainRequest?"/":"https://example.com")}catch(re){ne=null}}else ne=null;return ne}function ce(re){var z=se();if(!z)return!1;try{return z.responseType=re,z.responseType===re}catch(a){}return!1}var ue=typeof ae.ArrayBuffer!="undefined",ie=ue&&oe(ae.ArrayBuffer.prototype.slice);de.arraybuffer=de.fetch||ue&&ce("arraybuffer"),de.msstream=!de.fetch&&ie&&ce("ms-stream"),de.mozchunkedarraybuffer=!de.fetch&&ue&&ce("moz-chunked-arraybuffer"),de.overrideMimeType=de.fetch||(se()?oe(se().overrideMimeType):!1),de.vbArray=oe(ae.VBArray);function oe(re){return typeof re=="function"}ne=null}).call(this)}).call(this,typeof ft!="undefined"?ft: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(x,pe,de){(function(ae,ne,se){(function(){"use strict";x("core-js/modules/es.object.to-string.js"),x("core-js/modules/es.regexp.to-string.js"),x("core-js/modules/web.dom-collections.for-each.js"),x("core-js/modules/es.object.keys.js"),x("core-js/modules/es.array.concat.js"),x("core-js/modules/es.array.map.js"),x("core-js/modules/es.function.name.js"),x("core-js/modules/es.promise.js"),x("core-js/modules/es.regexp.exec.js"),x("core-js/modules/es.string.split.js");var ce=x("./capability"),ue=x("inherits"),ie=x("./response"),oe=x("readable-stream"),re=x("to-arraybuffer"),z=ie.IncomingMessage,a=ie.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 E=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 se(te.auth).toString("base64")),Object.keys(te.headers).forEach(function(me){le.setHeader(me,te.headers[me])});var fe,he=!0;if(te.mode==="disable-fetch"||"requestTimeout"in te&&!ce.abortController)he=!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,he),le._fetchTimer=null,le.on("finish",function(){le._onFinish()})};ue(E,oe.Writable),E.prototype.setHeader=function(te,le){var fe=this,he=te.toLowerCase();ee.indexOf(he)===-1&&(fe._headers[he]={name:te,value:le})},E.prototype.getHeader=function(te){var le=this._headers[te.toLowerCase()];return le?le.value:null},E.prototype.removeHeader=function(te){var le=this;delete le._headers[te.toLowerCase()]},E.prototype._onFinish=function(){var te=this;if(!te._destroyed){var le=te._opts,fe=te._headers,he=null;le.method!=="GET"&&le.method!=="HEAD"&&(ce.arraybuffer?he=re(se.concat(te._body)):ce.blobConstructor?he=new ne.Blob(te._body.map(function(Pe){return re(Pe)}),{type:(fe["content-type"]||{}).value||""}):he=se.concat(te._body).toString());var me=[];if(Object.keys(fe).forEach(function(Pe){var Te=fe[Pe].name,_e=fe[Pe].value;Array.isArray(_e)?_e.forEach(function(je){me.push([Te,je])}):me.push([Te,_e])}),te._mode==="fetch"){var ge=null,Se=null;if(ce.abortController){var ve=new AbortController;ge=ve.signal,te._fetchAbortController=ve,"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:he||void 0,mode:"cors",credentials:le.withCredentials?"include":"same-origin",signal:ge}).then(function(Pe){te._fetchResponse=Pe,te._connect()},function(Pe){ne.clearTimeout(te._fetchTimer),te._destroyed||te.emit("error",Pe)})}else{var be=te._xhr=new ne.XMLHttpRequest;try{be.open(te._opts.method,te._opts.url,!0)}catch(Pe){ae.nextTick(function(){te.emit("error",Pe)});return}"responseType"in be&&(be.responseType=te._mode.split(":")[0]),"withCredentials"in be&&(be.withCredentials=!!le.withCredentials),te._mode==="text"&&"overrideMimeType"in be&&be.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in le&&(be.timeout=le.requestTimeout,be.ontimeout=function(){te.emit("requestTimeout")}),me.forEach(function(Pe){be.setRequestHeader(Pe[0],Pe[1])}),te._response=null,be.onreadystatechange=function(){switch(be.readyState){case a.LOADING:case a.DONE:te._onXHRProgress();break}},te._mode==="moz-chunked-arraybuffer"&&(be.onprogress=function(){te._onXHRProgress()}),be.onerror=function(){te._destroyed||te.emit("error",new Error("XHR error"))};try{be.send(he)}catch(Pe){ae.nextTick(function(){te.emit("error",Pe)});return}}}};function b(te){try{var le=te.status;return le!==null&&le!==0}catch(fe){return!1}}E.prototype._onXHRProgress=function(){var te=this;!b(te._xhr)||te._destroyed||(te._response||te._connect(),te._response._onXHRProgress())},E.prototype._connect=function(){var te=this;te._destroyed||(te._response=new z(te._xhr,te._fetchResponse,te._mode,te._fetchTimer),te._response.on("error",function(le){te.emit("error",le)}),te.emit("response",te._response))},E.prototype._write=function(te,le,fe){var he=this;he._body.push(te),fe()},E.prototype.abort=E.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()},E.prototype.end=function(te,le,fe){var he=this;typeof te=="function"&&(fe=te,te=void 0),oe.Writable.prototype.end.call(he,te,le,fe)},E.prototype.flushHeaders=function(){},E.prototype.setTimeout=function(){},E.prototype.setNoDelay=function(){},E.prototype.setSocketKeepAlive=function(){};var ee=["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,x("_process"),typeof ft!="undefined"?ft:typeof self!="undefined"?self:typeof window!="undefined"?window:{},x("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(x,pe,de){(function(ae,ne,se){(function(){"use strict";x("core-js/modules/es.object.to-string.js"),x("core-js/modules/web.dom-collections.for-each.js"),x("core-js/modules/es.promise.js"),x("core-js/modules/es.regexp.exec.js"),x("core-js/modules/es.string.split.js"),x("core-js/modules/es.string.match.js"),x("core-js/modules/es.array.iterator.js"),x("core-js/modules/es.array-buffer.slice.js"),x("core-js/modules/es.typed-array.uint8-array.js"),x("core-js/modules/es.typed-array.copy-within.js"),x("core-js/modules/es.typed-array.every.js"),x("core-js/modules/es.typed-array.fill.js"),x("core-js/modules/es.typed-array.filter.js"),x("core-js/modules/es.typed-array.find.js"),x("core-js/modules/es.typed-array.find-index.js"),x("core-js/modules/es.typed-array.for-each.js"),x("core-js/modules/es.typed-array.includes.js"),x("core-js/modules/es.typed-array.index-of.js"),x("core-js/modules/es.typed-array.iterator.js"),x("core-js/modules/es.typed-array.join.js"),x("core-js/modules/es.typed-array.last-index-of.js"),x("core-js/modules/es.typed-array.map.js"),x("core-js/modules/es.typed-array.reduce.js"),x("core-js/modules/es.typed-array.reduce-right.js"),x("core-js/modules/es.typed-array.reverse.js"),x("core-js/modules/es.typed-array.set.js"),x("core-js/modules/es.typed-array.slice.js"),x("core-js/modules/es.typed-array.some.js"),x("core-js/modules/es.typed-array.sort.js"),x("core-js/modules/es.typed-array.subarray.js"),x("core-js/modules/es.typed-array.to-locale-string.js"),x("core-js/modules/es.typed-array.to-string.js"),x("core-js/modules/es.array.slice.js");var ce=x("./capability"),ue=x("inherits"),ie=x("readable-stream"),oe=de.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},re=de.IncomingMessage=function(z,a,y,E){var b=this;if(ie.Readable.call(b),b._mode=y,b.headers={},b.rawHeaders=[],b.trailers={},b.rawTrailers=[],b.on("end",function(){ae.nextTick(function(){b.emit("close")})}),y==="fetch"){var ee=function ge(){le.read().then(function(Se){if(!b._destroyed){if(Se.done){ne.clearTimeout(E),b.push(null);return}b.push(new se(Se.value)),ge()}}).catch(function(Se){ne.clearTimeout(E),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(ge,Se){b.headers[Se.toLowerCase()]=ge,b.rawHeaders.push(Se,ge)}),ce.writableStream){var te=new WritableStream({write:function(Se){return new Promise(function(ve,be){b._destroyed?be():b.push(new se(Se))?ve():b._resumeFetch=ve})},close:function(){ne.clearTimeout(E),b._destroyed||b.push(null)},abort:function(Se){b._destroyed||b.emit("error",Se)}});try{a.body.pipeTo(te).catch(function(ge){ne.clearTimeout(E),b._destroyed||b.emit("error",ge)});return}catch(ge){}}var le=a.body.getReader();ee()}else{b._xhr=z,b._pos=0,b.url=z.responseURL,b.statusCode=z.status,b.statusMessage=z.statusText;var fe=z.getAllResponseHeaders().split(/\r?\n/);if(fe.forEach(function(ge){var Se=ge.match(/^([^:]+):\s*(.*)/);if(Se){var ve=Se[1].toLowerCase();ve==="set-cookie"?(b.headers[ve]===void 0&&(b.headers[ve]=[]),b.headers[ve].push(Se[2])):b.headers[ve]!==void 0?b.headers[ve]+=", "+Se[2]:b.headers[ve]=Se[2],b.rawHeaders.push(Se[1],Se[2])}}),b._charset="x-user-defined",!ce.overrideMimeType){var he=b.rawHeaders["mime-type"];if(he){var me=he.match(/;\s*charset=([^;])(;|$)/);me&&(b._charset=me[1].toLowerCase())}b._charset||(b._charset="utf-8")}}};ue(re,ie.Readable),re.prototype._read=function(){var z=this,a=z._resumeFetch;a&&(z._resumeFetch=null,a())},re.prototype._onXHRProgress=function(){var z=this,a=z._xhr,y=null;switch(z._mode){case"text:vbarray":if(a.readyState!==oe.DONE)break;try{y=new ne.VBArray(a.responseBody).toArray()}catch(le){}if(y!==null){z.push(new se(y));break}case"text":try{y=a.responseText}catch(le){z._mode="text:vbarray";break}if(y.length>z._pos){var E=y.substr(z._pos);if(z._charset==="x-user-defined"){for(var b=new se(E.length),ee=0;ee<E.length;ee++)b[ee]=E.charCodeAt(ee)&255;z.push(b)}else z.push(E,z._charset);z._pos=y.length}break;case"arraybuffer":if(a.readyState!==oe.DONE||!a.response)break;y=a.response,z.push(new se(new Uint8Array(y)));break;case"moz-chunked-arraybuffer":if(y=a.response,a.readyState!==oe.LOADING||!y)break;z.push(new se(new Uint8Array(y)));break;case"ms-stream":if(y=a.response,a.readyState!==oe.LOADING)break;var te=new ne.MSStreamReader;te.onprogress=function(){te.result.byteLength>z._pos&&(z.push(new se(new Uint8Array(te.result.slice(z._pos)))),z._pos=te.result.byteLength)},te.onload=function(){z.push(null)},te.readAsArrayBuffer(y);break}z._xhr.readyState===oe.DONE&&z._mode!=="ms-stream"&&z.push(null)}}).call(this)}).call(this,x("_process"),typeof ft!="undefined"?ft:typeof self!="undefined"?self:typeof window!="undefined"?window:{},x("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(x,pe,de){"use strict";var ae=x("@babel/runtime/helpers/interopRequireDefault"),ne=ae(x("@babel/runtime/helpers/typeof"));x("core-js/modules/es.regexp.exec.js"),x("core-js/modules/es.string.search.js"),x("core-js/modules/es.array.concat.js"),x("core-js/modules/es.string.split.js"),x("core-js/modules/es.string.replace.js"),x("core-js/modules/es.array.join.js"),x("core-js/modules/es.string.trim.js"),x("core-js/modules/es.string.match.js"),x("core-js/modules/es.array.slice.js"),x("core-js/modules/es.object.keys.js"),x("core-js/modules/es.array.splice.js");var se=x("punycode"),ce=x("./util");de.parse=Se,de.resolve=be,de.resolveObject=Pe,de.format=ve,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 ie=/^([a-z0-9.+-]+:)/i,oe=/:[0-9]*$/,re=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,z=["<",">",'"',"`"," ","\r",`
|
|
|
`," "],a=["{","}","|","\\","^","`"].concat(z),y=["'"].concat(a),E=["%","/","?",";","#"].concat(y),b=["/","?","#"],ee=255,te=/^[+a-z0-9A-Z_-]{0,63}$/,le=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,fe={javascript:!0,"javascript:":!0},he={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},ge=x("querystring");function Se(Te,_e,je){if(Te&&ce.isObject(Te)&&Te instanceof ue)return Te;var Ce=new ue;return Ce.parse(Te,_e,je),Ce}ue.prototype.parse=function(Te,_e,je){if(!ce.isString(Te))throw new TypeError("Parameter 'url' must be a string, not "+(0,ne.default)(Te));var Ce=Te.indexOf("?"),Ie=Ce!==-1&&Ce<Te.indexOf("#")?"?":"#",ke=Te.split(Ie),$e=/\\/g;ke[0]=ke[0].replace($e,"/"),Te=ke.join(Ie);var Ne=Te;if(Ne=Ne.trim(),!je&&Te.split("#").length===1){var nt=re.exec(Ne);if(nt)return this.path=Ne,this.href=Ne,this.pathname=nt[1],nt[2]?(this.search=nt[2],_e?this.query=ge.parse(this.search.substr(1)):this.query=this.search.substr(1)):_e&&(this.search="",this.query={}),this}var qe=ie.exec(Ne);if(qe){qe=qe[0];var Je=qe.toLowerCase();this.protocol=Je,Ne=Ne.substr(qe.length)}if(je||qe||Ne.match(/^\/\/[^@\/]+@[^@\/]+/)){var Ye=Ne.substr(0,2)==="//";Ye&&!(qe&&he[qe])&&(Ne=Ne.substr(2),this.slashes=!0)}if(!he[qe]&&(Ye||qe&&!me[qe])){for(var We=-1,Fe=0;Fe<b.length;Fe++){var Ue=Ne.indexOf(b[Fe]);Ue!==-1&&(We===-1||Ue<We)&&(We=Ue)}var at,Xe;We===-1?Xe=Ne.lastIndexOf("@"):Xe=Ne.lastIndexOf("@",We),Xe!==-1&&(at=Ne.slice(0,Xe),Ne=Ne.slice(Xe+1),this.auth=decodeURIComponent(at)),We=-1;for(var Fe=0;Fe<E.length;Fe++){var Ue=Ne.indexOf(E[Fe]);Ue!==-1&&(We===-1||Ue<We)&&(We=Ue)}We===-1&&(We=Ne.length),this.host=Ne.slice(0,We),Ne=Ne.slice(We),this.parseHost(),this.hostname=this.hostname||"";var ut=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!ut)for(var Ze=this.hostname.split("."),Fe=0,ze=Ze.length;Fe<ze;Fe++){var Re=Ze[Fe];if(Re&&!Re.match(te)){for(var it="",Me=0,Be=Re.length;Me<Be;Me++)Re.charCodeAt(Me)>127?it+="x":it+=Re[Me];if(!it.match(te)){var Qe=Ze.slice(0,Fe),Ge=Ze.slice(Fe+1),De=Re.match(le);De&&(Qe.push(De[1]),Ge.unshift(De[2])),Ge.length&&(Ne="/"+Ge.join(".")+Ne),this.hostname=Qe.join(".");break}}}this.hostname.length>ee?this.hostname="":this.hostname=this.hostname.toLowerCase(),ut||(this.hostname=se.toASCII(this.hostname));var Le=this.port?":"+this.port:"",Oe=this.hostname||"";this.host=Oe+Le,this.href+=this.host,ut&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),Ne[0]!=="/"&&(Ne="/"+Ne))}if(!fe[Je])for(var Fe=0,ze=y.length;Fe<ze;Fe++){var xe=y[Fe];if(Ne.indexOf(xe)!==-1){var Ae=encodeURIComponent(xe);Ae===xe&&(Ae=escape(xe)),Ne=Ne.split(xe).join(Ae)}}var Ke=Ne.indexOf("#");Ke!==-1&&(this.hash=Ne.substr(Ke),Ne=Ne.slice(0,Ke));var tt=Ne.indexOf("?");if(tt!==-1?(this.search=Ne.substr(tt),this.query=Ne.substr(tt+1),_e&&(this.query=ge.parse(this.query)),Ne=Ne.slice(0,tt)):_e&&(this.search="",this.query={}),Ne&&(this.pathname=Ne),me[Je]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var Le=this.pathname||"",He=this.search||"";this.path=Le+He}return this.href=this.format(),this};function ve(Te){return ce.isString(Te)&&(Te=Se(Te)),Te instanceof ue?Te.format():ue.prototype.format.call(Te)}ue.prototype.format=function(){var Te=this.auth||"";Te&&(Te=encodeURIComponent(Te),Te=Te.replace(/%3A/i,":"),Te+="@");var _e=this.protocol||"",je=this.pathname||"",Ce=this.hash||"",Ie=!1,ke="";this.host?Ie=Te+this.host:this.hostname&&(Ie=Te+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(Ie+=":"+this.port)),this.query&&ce.isObject(this.query)&&Object.keys(this.query).length&&(ke=ge.stringify(this.query));var $e=this.search||ke&&"?"+ke||"";return _e&&_e.substr(-1)!==":"&&(_e+=":"),this.slashes||(!_e||me[_e])&&Ie!==!1?(Ie="//"+(Ie||""),je&&je.charAt(0)!=="/"&&(je="/"+je)):Ie||(Ie=""),Ce&&Ce.charAt(0)!=="#"&&(Ce="#"+Ce),$e&&$e.charAt(0)!=="?"&&($e="?"+$e),je=je.replace(/[?#]/g,function(Ne){return encodeURIComponent(Ne)}),$e=$e.replace("#","%23"),_e+Ie+je+$e+Ce};function be(Te,_e){return Se(Te,!1,!0).resolve(_e)}ue.prototype.resolve=function(Te){return this.resolveObject(Se(Te,!1,!0)).format()};function Pe(Te,_e){return Te?Se(Te,!1,!0).resolveObject(_e):_e}ue.prototype.resolveObject=function(Te){if(ce.isString(Te)){var _e=new ue;_e.parse(Te,!1,!0),Te=_e}for(var je=new ue,Ce=Object.keys(this),Ie=0;Ie<Ce.length;Ie++){var ke=Ce[Ie];je[ke]=this[ke]}if(je.hash=Te.hash,Te.href==="")return je.href=je.format(),je;if(Te.slashes&&!Te.protocol){for(var $e=Object.keys(Te),Ne=0;Ne<$e.length;Ne++){var nt=$e[Ne];nt!=="protocol"&&(je[nt]=Te[nt])}return me[je.protocol]&&je.hostname&&!je.pathname&&(je.path=je.pathname="/"),je.href=je.format(),je}if(Te.protocol&&Te.protocol!==je.protocol){if(!me[Te.protocol]){for(var qe=Object.keys(Te),Je=0;Je<qe.length;Je++){var Ye=qe[Je];je[Ye]=Te[Ye]}return je.href=je.format(),je}if(je.protocol=Te.protocol,!Te.host&&!he[Te.protocol]){for(var ze=(Te.pathname||"").split("/");ze.length&&!(Te.host=ze.shift()););Te.host||(Te.host=""),Te.hostname||(Te.hostname=""),ze[0]!==""&&ze.unshift(""),ze.length<2&&ze.unshift(""),je.pathname=ze.join("/")}else je.pathname=Te.pathname;if(je.search=Te.search,je.query=Te.query,je.host=Te.host||"",je.auth=Te.auth,je.hostname=Te.hostname||Te.host,je.port=Te.port,je.pathname||je.search){var We=je.pathname||"",Fe=je.search||"";je.path=We+Fe}return je.slashes=je.slashes||Te.slashes,je.href=je.format(),je}var Ue=je.pathname&&je.pathname.charAt(0)==="/",at=Te.host||Te.pathname&&Te.pathname.charAt(0)==="/",Xe=at||Ue||je.host&&Te.pathname,ut=Xe,Ze=je.pathname&&je.pathname.split("/")||[],ze=Te.pathname&&Te.pathname.split("/")||[],Re=je.protocol&&!me[je.protocol];if(Re&&(je.hostname="",je.port=null,je.host&&(Ze[0]===""?Ze[0]=je.host:Ze.unshift(je.host)),je.host="",Te.protocol&&(Te.hostname=null,Te.port=null,Te.host&&(ze[0]===""?ze[0]=Te.host:ze.unshift(Te.host)),Te.host=null),Xe=Xe&&(ze[0]===""||Ze[0]==="")),at)je.host=Te.host||Te.host===""?Te.host:je.host,je.hostname=Te.hostname||Te.hostname===""?Te.hostname:je.hostname,je.search=Te.search,je.query=Te.query,Ze=ze;else if(ze.length)Ze||(Ze=[]),Ze.pop(),Ze=Ze.concat(ze),je.search=Te.search,je.query=Te.query;else if(!ce.isNullOrUndefined(Te.search)){if(Re){je.hostname=je.host=Ze.shift();var it=je.host&&je.host.indexOf("@")>0?je.host.split("@"):!1;it&&(je.auth=it.shift(),je.host=je.hostname=it.shift())}return je.search=Te.search,je.query=Te.query,(!ce.isNull(je.pathname)||!ce.isNull(je.search))&&(je.path=(je.pathname?je.pathname:"")+(je.search?je.search:"")),je.href=je.format(),je}if(!Ze.length)return je.pathname=null,je.search?je.path="/"+je.search:je.path=null,je.href=je.format(),je;for(var Me=Ze.slice(-1)[0],Be=(je.host||Te.host||Ze.length>1)&&(Me==="."||Me==="..")||Me==="",Qe=0,Ge=Ze.length;Ge>=0;Ge--)Me=Ze[Ge],Me==="."?Ze.splice(Ge,1):Me===".."?(Ze.splice(Ge,1),Qe++):Qe&&(Ze.splice(Ge,1),Qe--);if(!Xe&&!ut)for(;Qe--;Qe)Ze.unshift("..");Xe&&Ze[0]!==""&&(!Ze[0]||Ze[0].charAt(0)!=="/")&&Ze.unshift(""),Be&&Ze.join("/").substr(-1)!=="/"&&Ze.push("");var De=Ze[0]===""||Ze[0]&&Ze[0].charAt(0)==="/";if(Re){je.hostname=je.host=De?"":Ze.length?Ze.shift():"";var it=je.host&&je.host.indexOf("@")>0?je.host.split("@"):!1;it&&(je.auth=it.shift(),je.host=je.hostname=it.shift())}return Xe=Xe||je.host&&Ze.length,Xe&&!De&&Ze.unshift(""),Ze.length?je.pathname=Ze.join("/"):(je.pathname=null,je.path=null),(!ce.isNull(je.pathname)||!ce.isNull(je.search))&&(je.path=(je.pathname?je.pathname:"")+(je.search?je.search:"")),je.auth=Te.auth||je.auth,je.slashes=je.slashes||Te.slashes,je.href=je.format(),je},ue.prototype.parseHost=function(){var Te=this.host,_e=oe.exec(Te);_e&&(_e=_e[0],_e!==":"&&(this.port=_e.substr(1)),Te=Te.substr(0,Te.length-_e.length)),Te&&(this.hostname=Te)}},{"./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(x,pe,de){"use strict";var ae=x("@babel/runtime/helpers/interopRequireDefault"),ne=ae(x("@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(x,pe,de){"use strict";x("core-js/modules/es.number.constructor.js"),de.encodeURIComponent=function(ae){try{return encodeURIComponent(ae)}catch(ne){return ae}},de.escape=x("escape-html"),de.timestamp=function(ne){if(ne){var se=ne;return typeof se=="string"&&(se=Number(se)),String(ne).length===10&&(se*=1e3),new Date(se)}return Math.round(Date.now()/1e3)}},{"core-js/modules/es.number.constructor.js":286,"escape-html":343}],475:[function(x,pe,de){(function(ae,ne){(function(){"use strict";var se=x("@babel/runtime/helpers/interopRequireDefault"),ce=se(x("@babel/runtime/helpers/typeof"));x("core-js/modules/es.string.trim.js"),x("core-js/modules/es.regexp.exec.js"),x("core-js/modules/es.string.split.js"),x("core-js/modules/es.object.to-string.js"),x("core-js/modules/es.promise.js"),x("core-js/modules/es.function.name.js"),x("core-js/modules/es.array.concat.js");var ue=x("util"),ie=x("url"),oe=x("http"),re=x("https"),z=x("debug")("urllib"),a=x("humanize-ms"),y=0,E=Math.pow(2,31)-10,b=/^https?:\/\//i;function ee(he,me){return he===void 0?me:he}function te(he){return he?he.split(";")[0].trim().toLowerCase():""}function le(he,me){return function(ge,Se,ve){if(ge)return me(ge);he({data:Se,status:ve.statusCode,headers:ve.headers,res:ve})}}de.TIMEOUTS=[a("300s"),a("300s")];var fe=["json","text"];de.request=function(me,ge,Se){return arguments.length===2&&typeof ge=="function"&&(Se=ge,ge=null),typeof Se=="function"?de.requestWithCallback(me,ge,Se):new Promise(function(ve,be){de.requestWithCallback(me,ge,le(ve,be))})},de.requestWithCallback=function(me,ge,Se){if(!me||typeof me!="string"&&(0,ce.default)(me)!=="object"){var ve=ue.format("expect request url to be a string or a http request options, but got %j",me);throw new Error(ve)}arguments.length===2&&typeof ge=="function"&&(Se=ge,ge=null),ge=ge||{},y>=E&&(y=0);var be=++y;ge.requestUrls=ge.requestUrls||[];var Pe={requestId:be,url:me,args:ge,ctx:ge.ctx};ge.emitter&&ge.emitter.emit("request",Pe),ge.timeout=ge.timeout||de.TIMEOUTS,ge.maxRedirects=ge.maxRedirects||10,ge.streaming=ge.streaming||ge.customResponse;var Te=Date.now(),_e;typeof me=="string"?(b.test(me)||(me="https://"+me),_e=ie.parse(me)):_e=me;var je=(ge.type||ge.method||_e.method||"GET").toUpperCase(),Ce=_e.port||80,Ie=oe,ke=ee(ge.agent,de.agent),$e=ge.fixJSONCtlChars;_e.protocol==="https:"&&(Ie=re,ke=ee(ge.httpsAgent,de.httpsAgent),_e.port||(Ce=443));var Ne={host:_e.hostname||_e.host||"localhost",path:_e.path||"/",method:je,port:Ce,agent:ke,headers:ge.headers||{},lookup:ge.lookup};Array.isArray(ge.timeout)?Ne.requestTimeout=ge.timeout[ge.timeout.length-1]:typeof ge.timeout!="undefined"&&(Ne.requestTimeout=ge.timeout);var nt=ge.auth||_e.auth;nt&&(Ne.auth=nt);var qe=ge.content||ge.data,Je=je==="GET"||je==="HEAD"||ge.dataAsQueryString;if(!ge.content&&qe&&!(typeof qe=="string"||ne.isBuffer(qe)))if(Je)qe=ge.nestedQuerystring?qs.stringify(qe):querystring.stringify(qe);else{var Ye=Ne.headers["Content-Type"]||Ne.headers["content-type"];Ye||(ge.contentType==="json"?Ye="application/json":Ye="application/x-www-form-urlencoded",Ne.headers["Content-Type"]=Ye),te(Ye)==="application/json"?qe=JSON.stringify(qe):qe=ge.nestedQuerystring?qs.stringify(qe):querystring.stringify(qe)}Je&&qe&&(Ne.path+=(_e.query?"&":"?")+qe,qe=null);var We=0;if(qe){var Fe=qe.length;ne.isBuffer(qe)||(Fe=ne.byteLength(qe)),We=Ne.headers["Content-Length"]=Fe}ge.dataType==="json"&&(Ne.headers.Accept="application/json"),typeof ge.beforeRequest=="function"&&ge.beforeRequest(Ne);var Ue=null,at=null,Xe=null,ut=!1,Ze=!1,ze=0,Re=-1,it=!1,Me="",Be="",Qe=null;ge.timing&&(Qe={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0});function Ge(){Ue&&(clearTimeout(Ue),Ue=null)}function De(){at&&(clearTimeout(at),at=null)}function Le(st,vt,rt){if(De(),!Se){console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),be,ae.pid,Ne.method,me),st&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
|
|
|
stack: %s`,Date(),be,ae.pid,st.name,st.message,st.stack);return}var ct=Se;Se=null;var gt={};rt&&(Re=rt.statusCode,gt=rt.headers);var St=Date.now()-Te;Qe&&(Qe.contentDownload=St),z("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",St,ze,Re,Ne.method,Ne.host,Ne.path,Ze,Qe);var Ct={status:Re,statusCode:Re,headers:gt,size:ze,aborted:it,rt:St,keepAliveSocket:Ze,data:vt,requestUrls:ge.requestUrls,timing:Qe,remoteAddress:Me,remotePort:Be};if(st){var It="";ke&&typeof ke.getCurrentStatus=="function"&&(It=", agent status: "+JSON.stringify(ke.getCurrentStatus())),st.message+=", "+Ne.method+" "+me+" "+Re+" (connected: "+ut+", keepalive socket: "+Ze+It+`)
|
|
|
headers: `+JSON.stringify(gt),st.data=vt,st.path=Ne.path,st.status=Re,st.headers=gt,st.res=Ct}ct(st,vt,ge.streaming?rt:Ct),ge.emitter&&(Pe.url=me,Pe.socket=lt&<.connection,Pe.options=Ne,Pe.size=We,ge.emitter.emit("response",{requestId:be,error:st,ctx:ge.ctx,req:Pe,res:Ct}))}function Oe(st){var vt=null;if(ge.followRedirect&&statuses.redirect[st.statusCode]){ge._followRedirectCount=(ge._followRedirectCount||0)+1;var rt=st.headers.location;if(!rt)vt=new Error("Got statusCode "+st.statusCode+" but cannot resolve next location from headers"),vt.name="FollowRedirectError";else if(ge._followRedirectCount>ge.maxRedirects)vt=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+me),vt.name="MaxRedirectError";else{var ct=ge.formatRedirectUrl?ge.formatRedirectUrl(me,rt):ie.resolve(me,rt);z("Request#%d %s: `redirected` from %s to %s",be,Ne.path,me,ct),De(),ge.headers&&ge.headers.Host&&b.test(rt)&&(ge.headers.Host=null);var gt=Se;return Se=null,de.requestWithCallback(ct,ge,gt),{redirect:!0,error:null}}}return{redirect:!1,error:vt}}ge.gzip&&!Ne.headers["Accept-Encoding"]&&!Ne.headers["accept-encoding"]&&(Ne.headers["Accept-Encoding"]="gzip");function xe(st,vt,rt){var ct=st.headers["content-encoding"];return rt(null,vt,ct)}var Ae=ge.writeStream;z("Request#%d %s %s with headers %j, options.path: %s",be,je,me,Ne.headers,Ne.path),ge.requestUrls.push(me);function Ke(st){if(Qe&&(Qe.waiting=Date.now()-Te),z("Request#%d %s `req response` event emit: status %d, headers: %j",be,me,st.statusCode,st.headers),ge.streaming){var vt=Oe(st);if(vt.redirect){st.resume();return}return vt.error?(st.resume(),Le(vt.error,null,st)):Le(null,null,st)}if(st.on("close",function(){z("Request#%d %s: `res close` event emit, total size %d",be,me,ze)}),st.on("error",function(){z("Request#%d %s: `res error` event emit, total size %d",be,me,ze)}),st.on("aborted",function(){it=!0,z("Request#%d %s: `res aborted` event emit, total size %d",be,me,ze)}),Ae){var rt=Oe(st);if(rt.redirect){st.resume();return}return rt.error?(st.resume(),Ae.end(),Le(rt.error,null,st)):(ge.consumeWriteStream===!1?st.on("end",Le.bind(null,null,null,st)):Ae.on("close",function(){z("Request#%d %s: writeStream close event emitted",be,me),Le(Xe||null,null,st)}),st.pipe(Ae))}var ct=[];st.on("data",function(gt){z("Request#%d %s: `res data` event emit, size %d",be,me,gt.length),ze+=gt.length,ct.push(gt)}),st.on("end",function(){var gt=ne.concat(ct,ze);if(z("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",be,me,ze,st._dumped),Xe)return Le(Xe,gt,st);var St=Oe(st);if(St.error)return Le(St.error,gt,st);St.redirect||xe(st,gt,function(Ct,It,Wt){if(Ct)return Le(Ct,gt,st);if(!Wt&&fe.indexOf(ge.dataType)>=0){try{It=decodeBodyByCharset(It,st)}catch(Xt){return z("decodeBodyByCharset error: %s",Xt),Le(null,It,st)}if(ge.dataType==="json")if(ze===0)It=null;else{var Ht=parseJSON(It,$e);Ht.error?Ct=Ht.error:It=Ht.data}}it&&z("Request#%d %s: Remote socket was terminated before `response.end()` was called",be,me),Le(Ct,It,st)})})}var tt,He;Array.isArray(ge.timeout)?(tt=a(ge.timeout[0]),He=a(ge.timeout[1])):tt=He=a(ge.timeout),z("ConnectTimeout: %d, ResponseTimeout: %d",tt,He);function ot(){z("Connect timer ticking, timeout: %d",tt),Ue=setTimeout(function(){Ue=null,Re===-1&&(Re=-2);var st="Connect timeout for "+tt+"ms",vt="ConnectionTimeoutError";lt.socket||(vt="SocketAssignTimeoutError",st+=", working sockets is full"),Xe=new Error(st),Xe.name=vt,Xe.requestId=be,z("ConnectTimeout: Request#%d %s %s: %s, connected: %s",be,me,Xe.name,st,ut),pt()},tt)}function mt(){z("Response timer ticking, timeout: %d",He),at=setTimeout(function(){at=null;var st="Response timeout for "+He+"ms",vt="ResponseTimeoutError";Xe=new Error(st),Xe.name=vt,Xe.requestId=be,z("ResponseTimeout: Request#%d %s %s: %s, connected: %s",be,me,Xe.name,st,ut),pt()},He)}var lt;Ne.mode=ge.mode?ge.mode:"";try{lt=Ie.request(Ne,Ke)}catch(st){return Le(st)}typeof window=="undefined"?ot():lt.on("requestTimeout",function(){Re===-1&&(Re=-2);var st="Connect timeout for "+tt+"ms",vt="ConnectionTimeoutError";Xe=new Error(st),Xe.name=vt,Xe.requestId=be,pt()});function pt(){z("Request#%d %s abort, connected: %s",be,me,ut),lt.socket||(Xe.noSocket=!0,Le(Xe)),lt.abort()}return Qe&<.on("finish",function(){Qe.requestSent=Date.now()-Te}),lt.once("socket",function(st){Qe&&(Qe.queuing=Date.now()-Te);var vt=st.readyState;if(vt==="opening"){st.once("lookup",function(rt,ct,gt){z("Request#%d %s lookup: %s, %s, %s",be,me,rt,ct,gt),Qe&&(Qe.dnslookup=Date.now()-Te),ct&&(Me=ct)}),st.once("connect",function(){Qe&&(Qe.connected=Date.now()-Te),Ge(),mt(),z("Request#%d %s new socket connected",be,me),ut=!0,Me||(Me=st.remoteAddress),Be=st.remotePort});return}z("Request#%d %s reuse socket connected, readyState: %s",be,me,vt),ut=!0,Ze=!0,Me||(Me=st.remoteAddress),Be=st.remotePort,Ge(),mt()}),lt.on("error",function(st){(st.name==="Error"||st.name==="TypeError")&&(st.name=ut?"ResponseError":"RequestError"),st.message+=' (req "error")',z("Request#%d %s `req error` event emit, %s: %s",be,me,st.name,st.message),Le(Xe||st)}),Ae&&Ae.once("error",function(st){st.message+=' (writeStream "error")',Xe=st,z("Request#%d %s `writeStream error` event emit, %s: %s",be,me,st.name,st.message),pt()}),ge.stream?(ge.stream.pipe(lt),ge.stream.once("error",function(st){st.message+=' (stream "error")',Xe=st,z("Request#%d %s `readStream error` event emit, %s: %s",be,me,st.name,st.message),pt()})):lt.end(qe),lt.requestId=be,lt}}).call(this)}).call(this,x("_process"),x("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(_t,ft){"use strict";function ye(){const we=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let Ee=1;Ee<arguments.length;Ee++){const x=Ee<0||arguments.length<=Ee?void 0:arguments[Ee];x&&Object.keys(x).forEach(pe=>{const de=x[pe];de!==void 0&&(we[pe]=de)})}return we}ft.Z=ye},77578:function(_t,ft,ye){"use strict";ye.d(ft,{Z:function(){return we}});const we=Ee=>Ee?typeof Ee=="function"?Ee():Ee:null},13845:function(_t,ft,ye){"use strict";ye.d(ft,{F:function(){return we},Z:function(){return Ee}});function we(x){return x!=null&&x===x.window}function Ee(x,pe){var de,ae;if(typeof window=="undefined")return 0;const ne=pe?"scrollTop":"scrollLeft";let se=0;return we(x)?se=x[pe?"pageYOffset":"pageXOffset"]:x instanceof Document?se=x.documentElement[ne]:(x instanceof HTMLElement||x)&&(se=x[ne]),x&&!we(x)&&typeof se!="number"&&(se=(ae=((de=x.ownerDocument)!==null&&de!==void 0?de:x).documentElement)===null||ae===void 0?void 0:ae[ne]),se}},56762:function(_t,ft,ye){"use strict";ye.d(ft,{Z:function(){return Ee}});var we=ye(59301);function Ee(){const[,x]=we.useReducer(pe=>pe+1,0);return x}},68031:function(_t,ft,ye){"use strict";ye.d(ft,{Z:function(){return pe}});var we=ye(16089);function Ee(de,ae,ne,se){const ce=ne-ae;return de/=se/2,de<1?ce/2*de*de*de+ae:ce/2*((de-=2)*de*de+2)+ae}var x=ye(13845);function pe(de){let ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:ne=()=>window,callback:se,duration:ce=450}=ae,ue=ne(),ie=(0,x.Z)(ue,!0),oe=Date.now(),re=()=>{const a=Date.now()-oe,y=Ee(a>ce?ce:a,ie,de,ce);(0,x.F)(ue)?ue.scrollTo(window.pageXOffset,y):ue instanceof Document||ue.constructor.name==="HTMLDocument"?ue.documentElement.scrollTop=y:ue.scrollTop=y,a<ce?(0,we.Z)(re):typeof se=="function"&&se()};(0,we.Z)(re)}},24905:function(_t,ft,ye){"use strict";ye.d(ft,{default:function(){return me}});var we=ye(92310),Ee=ye.n(we),x=ye(5630),pe=ye(59301),de=ye(36355),ae=ye(1684),ne=ye(32441),ce=pe.createContext(null),ue=ye(98447),ie=ye(14088),oe=ye(4572),re=function(ge,Se){var ve={};for(var be in ge)Object.prototype.hasOwnProperty.call(ge,be)&&Se.indexOf(be)<0&&(ve[be]=ge[be]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,be=Object.getOwnPropertySymbols(ge);Pe<be.length;Pe++)Se.indexOf(be[Pe])<0&&Object.prototype.propertyIsEnumerable.call(ge,be[Pe])&&(ve[be[Pe]]=ge[be[Pe]]);return ve};const z=(ge,Se)=>{var ve;const{prefixCls:be,className:Pe,rootClassName:Te,children:_e,indeterminate:je=!1,style:Ce,onMouseEnter:Ie,onMouseLeave:ke,skipGroup:$e=!1,disabled:Ne}=ge,nt=re(ge,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:qe,direction:Je,checkbox:Ye}=pe.useContext(de.E_),We=pe.useContext(ce),{isFormItemInput:Fe}=pe.useContext(ne.aM),Ue=pe.useContext(ae.Z),at=(ve=(We==null?void 0:We.disabled)||Ne)!==null&&ve!==void 0?ve:Ue,Xe=pe.useRef(nt.value);pe.useEffect(()=>{We==null||We.registerValue(nt.value)},[]),pe.useEffect(()=>{if(!$e)return nt.value!==Xe.current&&(We==null||We.cancelValue(Xe.current),We==null||We.registerValue(nt.value),Xe.current=nt.value),()=>We==null?void 0:We.cancelValue(nt.value)},[nt.value]);const ut=qe("checkbox",be),[Ze,ze]=(0,ue.ZP)(ut),Re=Object.assign({},nt);We&&!$e&&(Re.onChange=function(){nt.onChange&&nt.onChange.apply(nt,arguments),We.toggleOption&&We.toggleOption({label:_e,value:nt.value})},Re.name=We.name,Re.checked=We.value.includes(nt.value));const it=Ee()(`${ut}-wrapper`,{[`${ut}-rtl`]:Je==="rtl",[`${ut}-wrapper-checked`]:Re.checked,[`${ut}-wrapper-disabled`]:at,[`${ut}-wrapper-in-form-item`]:Fe},Ye==null?void 0:Ye.className,Pe,Te,ze),Me=Ee()({[`${ut}-indeterminate`]:je},oe.A,ze),Be=je?"mixed":void 0;return Ze(pe.createElement(ie.Z,{component:"Checkbox",disabled:at},pe.createElement("label",{className:it,style:Object.assign(Object.assign({},Ye==null?void 0:Ye.style),Ce),onMouseEnter:Ie,onMouseLeave:ke},pe.createElement(x.Z,Object.assign({"aria-checked":Be},Re,{prefixCls:ut,className:Me,disabled:at,ref:Se})),_e!==void 0&&pe.createElement("span",null,_e))))};var y=pe.forwardRef(z),E=ye(3300),b=ye(2738),ee=function(ge,Se){var ve={};for(var be in ge)Object.prototype.hasOwnProperty.call(ge,be)&&Se.indexOf(be)<0&&(ve[be]=ge[be]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,be=Object.getOwnPropertySymbols(ge);Pe<be.length;Pe++)Se.indexOf(be[Pe])<0&&Object.prototype.propertyIsEnumerable.call(ge,be[Pe])&&(ve[be[Pe]]=ge[be[Pe]]);return ve};const te=(ge,Se)=>{const{defaultValue:ve,children:be,options:Pe=[],prefixCls:Te,className:_e,rootClassName:je,style:Ce,onChange:Ie}=ge,ke=ee(ge,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:$e,direction:Ne}=pe.useContext(de.E_),[nt,qe]=pe.useState(ke.value||ve||[]),[Je,Ye]=pe.useState([]);pe.useEffect(()=>{"value"in ke&&qe(ke.value||[])},[ke.value]);const We=pe.useMemo(()=>Pe.map(Qe=>typeof Qe=="string"||typeof Qe=="number"?{label:Qe,value:Qe}:Qe),[Pe]),Fe=Qe=>{Ye(Ge=>Ge.filter(De=>De!==Qe))},Ue=Qe=>{Ye(Ge=>[].concat((0,E.Z)(Ge),[Qe]))},at=Qe=>{const Ge=nt.indexOf(Qe.value),De=(0,E.Z)(nt);Ge===-1?De.push(Qe.value):De.splice(Ge,1),"value"in ke||qe(De),Ie==null||Ie(De.filter(Le=>Je.includes(Le)).sort((Le,Oe)=>{const xe=We.findIndex(Ke=>Ke.value===Le),Ae=We.findIndex(Ke=>Ke.value===Oe);return xe-Ae}))},Xe=$e("checkbox",Te),ut=`${Xe}-group`,[Ze,ze]=(0,ue.ZP)(Xe),Re=(0,b.Z)(ke,["value","disabled"]),it=Pe.length?We.map(Qe=>pe.createElement(y,{prefixCls:Xe,key:Qe.value.toString(),disabled:"disabled"in Qe?Qe.disabled:ke.disabled,value:Qe.value,checked:nt.includes(Qe.value),onChange:Qe.onChange,className:`${ut}-item`,style:Qe.style,title:Qe.title},Qe.label)):be,Me={toggleOption:at,value:nt,disabled:ke.disabled,name:ke.name,registerValue:Ue,cancelValue:Fe},Be=Ee()(ut,{[`${ut}-rtl`]:Ne==="rtl"},_e,je,ze);return Ze(pe.createElement("div",Object.assign({className:Be,style:Ce},Re,{ref:Se}),pe.createElement(ce.Provider,{value:Me},it)))},le=pe.forwardRef(te);var fe=pe.memo(le);const he=y;he.Group=fe,he.__ANT_CHECKBOX=!0;var me=he},98447:function(_t,ft,ye){"use strict";ye.d(ft,{C2:function(){return de}});var we=ye(17313),Ee=ye(37613),x=ye(83116);const pe=ae=>{const{checkboxCls:ne}=ae,se=`${ne}-wrapper`;return[{[`${ne}-group`]:Object.assign(Object.assign({},(0,we.Wf)(ae)),{display:"inline-flex",flexWrap:"wrap",columnGap:ae.marginXS,[`> ${ae.antCls}-row`]:{flex:1}}),[se]:Object.assign(Object.assign({},(0,we.Wf)(ae)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${se}`]:{marginInlineStart:0},[`&${se}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[ne]:Object.assign(Object.assign({},(0,we.Wf)(ae)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:ae.borderRadiusSM,alignSelf:"center",[`${ne}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${ne}-inner`]:Object.assign({},(0,we.oN)(ae))},[`${ne}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:ae.checkboxSize,height:ae.checkboxSize,direction:"ltr",backgroundColor:ae.colorBgContainer,border:`${ae.lineWidth}px ${ae.lineType} ${ae.colorBorder}`,borderRadius:ae.borderRadiusSM,borderCollapse:"separate",transition:`all ${ae.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:ae.checkboxSize/14*5,height:ae.checkboxSize/14*8,border:`${ae.lineWidthBold}px solid ${ae.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${ae.motionDurationFast} ${ae.motionEaseInBack}, opacity ${ae.motionDurationFast}`}},"& + span":{paddingInlineStart:ae.paddingXS,paddingInlineEnd:ae.paddingXS}})},{[`
|
|
|
${se}:not(${se}-disabled),
|
|
|
${ne}:not(${ne}-disabled)
|
|
|
`]:{[`&:hover ${ne}-inner`]:{borderColor:ae.colorPrimary}},[`${se}:not(${se}-disabled)`]:{[`&:hover ${ne}-checked:not(${ne}-disabled) ${ne}-inner`]:{backgroundColor:ae.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${ne}-checked:not(${ne}-disabled):after`]:{borderColor:ae.colorPrimaryHover}}},{[`${ne}-checked`]:{[`${ne}-inner`]:{backgroundColor:ae.colorPrimary,borderColor:ae.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${ae.motionDurationMid} ${ae.motionEaseOutBack} ${ae.motionDurationFast}`}}},[`
|
|
|
${se}-checked:not(${se}-disabled),
|
|
|
${ne}-checked:not(${ne}-disabled)
|
|
|
`]:{[`&:hover ${ne}-inner`]:{backgroundColor:ae.colorPrimaryHover,borderColor:"transparent"}}},{[ne]:{"&-indeterminate":{[`${ne}-inner`]:{backgroundColor:ae.colorBgContainer,borderColor:ae.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:ae.fontSizeLG/2,height:ae.fontSizeLG/2,backgroundColor:ae.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${se}-disabled`]:{cursor:"not-allowed"},[`${ne}-disabled`]:{[`&, ${ne}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${ne}-inner`]:{background:ae.colorBgContainerDisabled,borderColor:ae.colorBorder,"&:after":{borderColor:ae.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:ae.colorTextDisabled},[`&${ne}-indeterminate ${ne}-inner::after`]:{background:ae.colorTextDisabled}}}]};function de(ae,ne){const se=(0,Ee.TS)(ne,{checkboxCls:`.${ae}`,checkboxSize:ne.controlInteractiveSize});return[pe(se)]}ft.ZP=(0,x.Z)("Checkbox",(ae,ne)=>{let{prefixCls:se}=ne;return[de(se,ae)]})},43428:function(_t,ft,ye){"use strict";ye.d(ft,{Z:function(){return Ze}});var we=ye(92310),Ee=ye.n(we),x=ye(27247),pe=ye(11913),de=ye(43403),ae=ye(34280),ne=ye(59301),se=ne.createContext(null),ce=ne.createContext({}),ue=se,ie=ye(74430),oe=ye(32855),re=ye(77900),z=ye(10228),a=ye(26112),y=ye(70425),E=function(Re){var it=Re.prefixCls,Me=Re.className,Be=Re.style,Qe=Re.children,Ge=Re.containerRef,De=Re.id,Le=Re.onMouseEnter,Oe=Re.onMouseOver,xe=Re.onMouseLeave,Ae=Re.onClick,Ke=Re.onKeyDown,tt=Re.onKeyUp,He={onMouseEnter:Le,onMouseOver:Oe,onMouseLeave:xe,onClick:Ae,onKeyDown:Ke,onKeyUp:tt},ot=ne.useContext(ce),mt=ot.panel,lt=(0,y.useComposeRef)(mt,Ge);return ne.createElement(ne.Fragment,null,ne.createElement("div",(0,oe.Z)({id:De,className:Ee()("".concat(it,"-content"),Me),style:(0,x.Z)({},Be),"aria-modal":"true",role:"dialog",ref:lt},He),Qe))},b=E,ee=ye(48736);function te(ze){return typeof ze=="string"&&String(Number(ze))===ze?((0,ee.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(ze)):ze}function le(ze){warning(!("wrapperClassName"in ze),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!ze.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 he(ze,Re){var it,Me,Be,Qe,Ge=ze.prefixCls,De=ze.open,Le=ze.placement,Oe=ze.inline,xe=ze.push,Ae=ze.forceRender,Ke=ze.autoFocus,tt=ze.keyboard,He=ze.rootClassName,ot=ze.rootStyle,mt=ze.zIndex,lt=ze.className,pt=ze.id,st=ze.style,vt=ze.motion,rt=ze.width,ct=ze.height,gt=ze.children,St=ze.contentWrapperStyle,Ct=ze.mask,It=ze.maskClosable,Wt=ze.maskMotion,Ht=ze.maskClassName,Xt=ze.maskStyle,on=ze.afterOpenChange,qt=ze.onClose,tn=ze.onMouseEnter,wn=ze.onMouseOver,En=ze.onMouseLeave,en=ze.onClick,Tn=ze.onKeyDown,An=ze.onKeyUp,_n=ne.useRef(),$n=ne.useRef(),hr=ne.useRef();ne.useImperativeHandle(Re,function(){return _n.current});var nr=function(Qn){var Kt=Qn.keyCode,bt=Qn.shiftKey;switch(Kt){case z.Z.TAB:{if(Kt===z.Z.TAB){if(!bt&&document.activeElement===hr.current){var $t;($t=$n.current)===null||$t===void 0||$t.focus({preventScroll:!0})}else if(bt&&document.activeElement===$n.current){var rn;(rn=hr.current)===null||rn===void 0||rn.focus({preventScroll:!0})}}break}case z.Z.ESC:{qt&&tt&&(Qn.stopPropagation(),qt(Qn));break}}};ne.useEffect(function(){if(De&&Ke){var Mn;(Mn=_n.current)===null||Mn===void 0||Mn.focus({preventScroll:!0})}},[De]);var yr=ne.useState(!1),Nr=(0,pe.Z)(yr,2),tr=Nr[0],Cr=Nr[1],rr=ne.useContext(ue),_r;xe===!1?_r={distance:0}:xe===!0?_r={}:_r=xe||{};var Et=(it=(Me=(Be=_r)===null||Be===void 0?void 0:Be.distance)!==null&&Me!==void 0?Me:rr==null?void 0:rr.pushDistance)!==null&&it!==void 0?it:180,Rt=ne.useMemo(function(){return{pushDistance:Et,push:function(){Cr(!0)},pull:function(){Cr(!1)}}},[Et]);ne.useEffect(function(){if(De){var Mn;rr==null||(Mn=rr.push)===null||Mn===void 0||Mn.call(rr)}else{var Qn;rr==null||(Qn=rr.pull)===null||Qn===void 0||Qn.call(rr)}},[De]),ne.useEffect(function(){return function(){var Mn;rr==null||(Mn=rr.pull)===null||Mn===void 0||Mn.call(rr)}},[]);var xt=Ct&&ne.createElement(re.default,(0,oe.Z)({key:"mask"},Wt,{visible:De}),function(Mn,Qn){var Kt=Mn.className,bt=Mn.style;return ne.createElement("div",{className:Ee()("".concat(Ge,"-mask"),Kt,Ht),style:(0,x.Z)((0,x.Z)({},bt),Xt),onClick:It&&De?qt:void 0,ref:Qn})}),Zt=typeof vt=="function"?vt(Le):vt,yn={};if(tr&&Et)switch(Le){case"top":yn.transform="translateY(".concat(Et,"px)");break;case"bottom":yn.transform="translateY(".concat(-Et,"px)");break;case"left":yn.transform="translateX(".concat(Et,"px)");break;default:yn.transform="translateX(".concat(-Et,"px)");break}Le==="left"||Le==="right"?yn.width=te(rt):yn.height=te(ct);var mn={onMouseEnter:tn,onMouseOver:wn,onMouseLeave:En,onClick:en,onKeyDown:Tn,onKeyUp:An},mr=ne.createElement(re.default,(0,oe.Z)({key:"panel"},Zt,{visible:De,forceRender:Ae,onVisibleChanged:function(Qn){on==null||on(Qn)},removeOnLeave:!1,leavedClassName:"".concat(Ge,"-content-wrapper-hidden")}),function(Mn,Qn){var Kt=Mn.className,bt=Mn.style;return ne.createElement("div",(0,oe.Z)({className:Ee()("".concat(Ge,"-content-wrapper"),Kt),style:(0,x.Z)((0,x.Z)((0,x.Z)({},yn),bt),St)},(0,a.Z)(ze,{data:!0})),ne.createElement(b,(0,oe.Z)({id:pt,containerRef:Qn,prefixCls:Ge,className:lt,style:st},mn),gt))}),Kn=(0,x.Z)({},ot);return mt&&(Kn.zIndex=mt),ne.createElement(ue.Provider,{value:Rt},ne.createElement("div",{className:Ee()(Ge,"".concat(Ge,"-").concat(Le),He,(Qe={},(0,ie.Z)(Qe,"".concat(Ge,"-open"),De),(0,ie.Z)(Qe,"".concat(Ge,"-inline"),Oe),Qe)),style:Kn,tabIndex:-1,ref:_n,onKeyDown:nr},xt,ne.createElement("div",{tabIndex:0,ref:$n,style:fe,"aria-hidden":"true","data-sentinel":"start"}),mr,ne.createElement("div",{tabIndex:0,ref:hr,style:fe,"aria-hidden":"true","data-sentinel":"end"})))}var me=ne.forwardRef(he),ge=me,Se=function(Re){var it=Re.open,Me=it===void 0?!1:it,Be=Re.prefixCls,Qe=Be===void 0?"rc-drawer":Be,Ge=Re.placement,De=Ge===void 0?"right":Ge,Le=Re.autoFocus,Oe=Le===void 0?!0:Le,xe=Re.keyboard,Ae=xe===void 0?!0:xe,Ke=Re.width,tt=Ke===void 0?378:Ke,He=Re.mask,ot=He===void 0?!0:He,mt=Re.maskClosable,lt=mt===void 0?!0:mt,pt=Re.getContainer,st=Re.forceRender,vt=Re.afterOpenChange,rt=Re.destroyOnClose,ct=Re.onMouseEnter,gt=Re.onMouseOver,St=Re.onMouseLeave,Ct=Re.onClick,It=Re.onKeyDown,Wt=Re.onKeyUp,Ht=Re.panelRef,Xt=ne.useState(!1),on=(0,pe.Z)(Xt,2),qt=on[0],tn=on[1],wn=ne.useState(!1),En=(0,pe.Z)(wn,2),en=En[0],Tn=En[1];(0,ae.Z)(function(){Tn(!0)},[]);var An=en?Me:!1,_n=ne.useRef(),$n=ne.useRef();(0,ae.Z)(function(){An&&($n.current=document.activeElement)},[An]);var hr=function(Cr){var rr;if(tn(Cr),vt==null||vt(Cr),!Cr&&$n.current&&!((rr=_n.current)!==null&&rr!==void 0&&rr.contains($n.current))){var _r;(_r=$n.current)===null||_r===void 0||_r.focus({preventScroll:!0})}},nr=ne.useMemo(function(){return{panel:Ht}},[Ht]);if(!st&&!qt&&!An&&rt)return null;var yr={onMouseEnter:ct,onMouseOver:gt,onMouseLeave:St,onClick:Ct,onKeyDown:It,onKeyUp:Wt},Nr=(0,x.Z)((0,x.Z)({},Re),{},{open:An,prefixCls:Qe,placement:De,autoFocus:Oe,keyboard:Ae,width:tt,mask:ot,maskClosable:lt,inline:pt===!1,afterOpenChange:hr,ref:_n},yr);return ne.createElement(ce.Provider,{value:nr},ne.createElement(de.Z,{open:An||st||qt,autoDestroy:!1,getContainer:pt,autoLock:ot&&(An||qt)},ne.createElement(ge,Nr)))},ve=Se,be=ve,Pe=ye(62892),Te=ye(36355),_e=ye(32441),je=ye(47729),Ie=ze=>{const{prefixCls:Re,title:it,footer:Me,extra:Be,closeIcon:Qe,closable:Ge,onClose:De,headerStyle:Le,drawerStyle:Oe,bodyStyle:xe,footerStyle:Ae,children:Ke}=ze,tt=ne.useCallback(pt=>ne.createElement("button",{type:"button",onClick:De,"aria-label":"Close",className:`${Re}-close`},pt),[De]),[He,ot]=(0,je.Z)(Ge,Qe,tt,void 0,!0),mt=ne.useMemo(()=>!it&&!He?null:ne.createElement("div",{style:Le,className:Ee()(`${Re}-header`,{[`${Re}-header-close-only`]:He&&!it&&!Be})},ne.createElement("div",{className:`${Re}-header-title`},ot,it&&ne.createElement("div",{className:`${Re}-title`},it)),Be&&ne.createElement("div",{className:`${Re}-extra`},Be)),[He,ot,Be,Le,Re,it]),lt=ne.useMemo(()=>{if(!Me)return null;const pt=`${Re}-footer`;return ne.createElement("div",{className:pt,style:Ae},Me)},[Me,Ae,Re]);return ne.createElement("div",{className:`${Re}-wrapper-body`,style:Oe},mt,ne.createElement("div",{className:`${Re}-body`,style:xe},Ke),lt)},ke=ye(33234),$e=ye(83116),Ne=ye(37613),qe=ze=>{const{componentCls:Re,motionDurationSlow:it}=ze,Me={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${it}`}}};return{[Re]:{[`${Re}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${it}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${Re}-panel-motion`]:{"&-left":[Me,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[Me,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[Me,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[Me,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}};const Je=ze=>{const{componentCls:Re,zIndexPopup:it,colorBgMask:Me,colorBgElevated:Be,motionDurationSlow:Qe,motionDurationMid:Ge,padding:De,paddingLG:Le,fontSizeLG:Oe,lineHeightLG:xe,lineWidth:Ae,lineType:Ke,colorSplit:tt,marginSM:He,colorIcon:ot,colorIconHover:mt,colorText:lt,fontWeightStrong:pt,footerPaddingBlock:st,footerPaddingInline:vt}=ze,rt=`${Re}-content-wrapper`;return{[Re]:{position:"fixed",inset:0,zIndex:it,pointerEvents:"none","&-pure":{position:"relative",background:Be,[`&${Re}-left`]:{boxShadow:ze.boxShadowDrawerLeft},[`&${Re}-right`]:{boxShadow:ze.boxShadowDrawerRight},[`&${Re}-top`]:{boxShadow:ze.boxShadowDrawerUp},[`&${Re}-bottom`]:{boxShadow:ze.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${Re}-mask`]:{position:"absolute",inset:0,zIndex:it,background:Me,pointerEvents:"auto"},[rt]:{position:"absolute",zIndex:it,maxWidth:"100vw",transition:`all ${Qe}`,"&-hidden":{display:"none"}},[`&-left > ${rt}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:ze.boxShadowDrawerLeft},[`&-right > ${rt}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:ze.boxShadowDrawerRight},[`&-top > ${rt}`]:{top:0,insetInline:0,boxShadow:ze.boxShadowDrawerUp},[`&-bottom > ${rt}`]:{bottom:0,insetInline:0,boxShadow:ze.boxShadowDrawerDown},[`${Re}-content`]:{width:"100%",height:"100%",overflow:"auto",background:Be,pointerEvents:"auto"},[`${Re}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${Re}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${De}px ${Le}px`,fontSize:Oe,lineHeight:xe,borderBottom:`${Ae}px ${Ke} ${tt}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${Re}-extra`]:{flex:"none"},[`${Re}-close`]:{display:"inline-block",marginInlineEnd:He,color:ot,fontWeight:pt,fontSize:Oe,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${Ge}`,textRendering:"auto","&:focus, &:hover":{color:mt,textDecoration:"none"}},[`${Re}-title`]:{flex:1,margin:0,color:lt,fontWeight:ze.fontWeightStrong,fontSize:Oe,lineHeight:xe},[`${Re}-body`]:{flex:1,minWidth:0,minHeight:0,padding:Le,overflow:"auto"},[`${Re}-footer`]:{flexShrink:0,padding:`${st}px ${vt}px`,borderTop:`${Ae}px ${Ke} ${tt}`},"&-rtl":{direction:"rtl"}}}};var Ye=(0,$e.Z)("Drawer",ze=>{const Re=(0,Ne.TS)(ze,{});return[Je(Re),qe(Re)]},ze=>({zIndexPopup:ze.zIndexPopupBase,footerPaddingBlock:ze.paddingXS,footerPaddingInline:ze.padding})),We=ye(11575),Fe=function(ze,Re){var it={};for(var Me in ze)Object.prototype.hasOwnProperty.call(ze,Me)&&Re.indexOf(Me)<0&&(it[Me]=ze[Me]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Be=0,Me=Object.getOwnPropertySymbols(ze);Be<Me.length;Be++)Re.indexOf(Me[Be])<0&&Object.prototype.propertyIsEnumerable.call(ze,Me[Be])&&(it[Me[Be]]=ze[Me[Be]]);return it};const Ue=null,at={distance:180},Xe=ze=>{var Re;const{rootClassName:it,width:Me,height:Be,size:Qe="default",mask:Ge=!0,push:De=at,open:Le,afterOpenChange:Oe,onClose:xe,prefixCls:Ae,getContainer:Ke,style:tt,className:He,visible:ot,afterVisibleChange:mt}=ze,lt=Fe(ze,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:pt,getPrefixCls:st,direction:vt,drawer:rt}=ne.useContext(Te.E_),ct=st("drawer",Ae),[gt,St]=Ye(ct),Ct=Ke===void 0&&pt?()=>pt(document.body):Ke,It=Ee()({"no-mask":!Ge,[`${ct}-rtl`]:vt==="rtl"},it,St),Wt=ne.useMemo(()=>Me!=null?Me:Qe==="large"?736:378,[Me,Qe]),Ht=ne.useMemo(()=>Be!=null?Be:Qe==="large"?736:378,[Be,Qe]),Xt={motionName:(0,Pe.m)(ct,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},on=tn=>({motionName:(0,Pe.m)(ct,`panel-motion-${tn}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),qt=(0,We.H)();return gt(ne.createElement(ke.BR,null,ne.createElement(_e.Ux,{status:!0,override:!0},ne.createElement(be,Object.assign({prefixCls:ct,onClose:xe,maskMotion:Xt,motion:on},lt,{open:Le!=null?Le:ot,mask:Ge,push:De,width:Wt,height:Ht,style:Object.assign(Object.assign({},rt==null?void 0:rt.style),tt),className:Ee()(rt==null?void 0:rt.className,He),rootClassName:It,getContainer:Ct,afterOpenChange:Oe!=null?Oe:mt,panelRef:qt}),ne.createElement(Ie,Object.assign({prefixCls:ct},lt,{onClose:xe}))))))},ut=ze=>{const{prefixCls:Re,style:it,className:Me,placement:Be="right"}=ze,Qe=Fe(ze,["prefixCls","style","className","placement"]),{getPrefixCls:Ge}=ne.useContext(Te.E_),De=Ge("drawer",Re),[Le,Oe]=Ye(De),xe=Ee()(De,`${De}-pure`,`${De}-${Be}`,Oe,Me);return Le(ne.createElement("div",{className:xe,style:it},ne.createElement(Ie,Object.assign({prefixCls:De},Qe))))};Xe._InternalPanelDoNotUseOrYouWillBeFired=ut;var Ze=Xe},91857:function(_t,ft,ye){"use strict";var we=ye(59301),Ee=ye(38819),x=ye(92310),pe=ye.n(x),de=ye(31561),ae=ye(70425),ne=ye(18929),se=ye(2738),ce=ye(79676),ue=ye(53487),ie=ye(92343),oe=ye(36355),re=ye(20834),z=ye(40875),a=ye(88088),y=ye(47211);const E=null,b=fe=>{const{menu:he,arrow:me,prefixCls:ge,children:Se,trigger:ve,disabled:be,dropdownRender:Pe,getPopupContainer:Te,overlayClassName:_e,rootClassName:je,open:Ce,onOpenChange:Ie,visible:ke,onVisibleChange:$e,mouseEnterDelay:Ne=.15,mouseLeaveDelay:nt=.1,autoAdjustOverflow:qe=!0,placement:Je="",overlay:Ye,transitionName:We}=fe,{getPopupContainer:Fe,getPrefixCls:Ue,direction:at}=we.useContext(oe.E_),Xe=we.useMemo(()=>{const He=Ue();return We!==void 0?We:Je.includes("top")?`${He}-slide-down`:`${He}-slide-up`},[Ue,Je,We]),ut=we.useMemo(()=>Je?Je.includes("Center")?Je.slice(0,Je.indexOf("Center")):Je:at==="rtl"?"bottomRight":"bottomLeft",[Je,at]),Ze=Ue("dropdown",ge),[ze,Re]=(0,y.Z)(Ze),[,it]=(0,a.Z)(),Me=we.Children.only(Se),Be=(0,ie.Tm)(Me,{className:pe()(`${Ze}-trigger`,{[`${Ze}-rtl`]:at==="rtl"},Me.props.className),disabled:be}),Qe=be?[]:ve;let Ge;Qe&&Qe.includes("contextMenu")&&(Ge=!0);const[De,Le]=(0,ne.Z)(!1,{value:Ce!=null?Ce:ke}),Oe=(0,ae.useEvent)(He=>{Ie==null||Ie(He),$e==null||$e(He),Le(He)}),xe=pe()(_e,je,Re,{[`${Ze}-rtl`]:at==="rtl"}),Ae=(0,ce.Z)({arrowPointAtCenter:typeof me=="object"&&me.pointAtCenter,autoAdjustOverflow:qe,offset:it.marginXXS,arrowWidth:me?it.sizePopupArrow:0,borderRadius:it.borderRadius}),Ke=we.useCallback(()=>{Le(!1)},[]),tt=()=>{let He;return he!=null&&he.items?He=we.createElement(re.default,Object.assign({},he)):typeof Ye=="function"?He=Ye():He=Ye,Pe&&(He=Pe(He)),He=we.Children.only(typeof He=="string"?we.createElement("span",null,He):He),we.createElement(z.J,{prefixCls:`${Ze}-menu`,expandIcon:we.createElement("span",{className:`${Ze}-menu-submenu-arrow`},we.createElement(Ee.Z,{className:`${Ze}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Ke,validator:ot=>{let{mode:mt}=ot}},He)};return ze(we.createElement(de.Z,Object.assign({alignPoint:Ge},(0,se.Z)(fe,["rootClassName"]),{mouseEnterDelay:Ne,mouseLeaveDelay:nt,visible:De,builtinPlacements:Ae,arrow:!!me,overlayClassName:xe,prefixCls:Ze,getPopupContainer:Te||Fe,transitionName:Xe,trigger:Qe,overlay:tt,placement:ut,onVisibleChange:Oe}),Be))};function ee(fe){return Object.assign(Object.assign({},fe),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const te=(0,ue.Z)(b,"dropdown",fe=>fe,ee),le=fe=>we.createElement(te,Object.assign({},fe),we.createElement("span",null));b._InternalPanelDoNotUseOrYouWillBeFired=le,ft.Z=b},38854:function(_t,ft,ye){"use strict";ye.d(ft,{Z:function(){return a}});var we=ye(91857),Ee=ye(92310),x=ye.n(Ee),pe=ye(59301),de=ye(18785),ae=ye(3113),ne=ye(36355),se=ye(81327),ce=ye(33234),ue=ye(47211),ie=function(y,E){var b={};for(var ee in y)Object.prototype.hasOwnProperty.call(y,ee)&&E.indexOf(ee)<0&&(b[ee]=y[ee]);if(y!=null&&typeof Object.getOwnPropertySymbols=="function")for(var te=0,ee=Object.getOwnPropertySymbols(y);te<ee.length;te++)E.indexOf(ee[te])<0&&Object.prototype.propertyIsEnumerable.call(y,ee[te])&&(b[ee[te]]=y[ee[te]]);return b};const oe=y=>{const{getPopupContainer:E,getPrefixCls:b,direction:ee}=pe.useContext(ne.E_),{prefixCls:te,type:le="default",danger:fe,disabled:he,loading:me,onClick:ge,htmlType:Se,children:ve,className:be,menu:Pe,arrow:Te,autoFocus:_e,overlay:je,trigger:Ce,align:Ie,open:ke,onOpenChange:$e,placement:Ne,getPopupContainer:nt,href:qe,icon:Je=pe.createElement(de.Z,null),title:Ye,buttonsRender:We=tt=>tt,mouseEnterDelay:Fe,mouseLeaveDelay:Ue,overlayClassName:at,overlayStyle:Xe,destroyPopupOnHide:ut,dropdownRender:Ze}=y,ze=ie(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),it=`${Re}-button`,[Me,Be]=(0,ue.Z)(Re),Qe={menu:Pe,arrow:Te,autoFocus:_e,align:Ie,disabled:he,trigger:he?[]:Ce,onOpenChange:$e,getPopupContainer:nt||E,mouseEnterDelay:Fe,mouseLeaveDelay:Ue,overlayClassName:at,overlayStyle:Xe,destroyPopupOnHide:ut,dropdownRender:Ze},{compactSize:Ge,compactItemClassnames:De}=(0,ce.ri)(Re,ee),Le=x()(it,De,be,Be);"overlay"in y&&(Qe.overlay=je),"open"in y&&(Qe.open=ke),"placement"in y?Qe.placement=Ne:Qe.placement=ee==="rtl"?"bottomLeft":"bottomRight";const Oe=pe.createElement(ae.ZP,{type:le,danger:fe,disabled:he,loading:me,onClick:ge,htmlType:Se,href:qe,title:Ye},ve),xe=pe.createElement(ae.ZP,{type:le,danger:fe,icon:Je}),[Ae,Ke]=We([Oe,xe]);return Me(pe.createElement(se.Z.Compact,Object.assign({className:Le,size:Ge,block:!0},ze),Ae,pe.createElement(we.Z,Object.assign({},Qe),Ke)))};oe.__ANT_BUTTON=!0;var re=oe;const z=we.Z;z.Button=re;var a=z},47211:function(_t,ft,ye){"use strict";ye.d(ft,{Z:function(){return ie}});var we=ye(17313),Ee=ye(13826),x=ye(92899),pe=ye(29878),de=ye(19447),ae=ye(83116),ne=ye(37613),ce=oe=>{const{componentCls:re,menuCls:z,colorError:a,colorTextLightSolid:y}=oe,E=`${z}-item`;return{[`${re}, ${re}-menu-submenu`]:{[`${z} ${E}`]:{[`&${E}-danger:not(${E}-disabled)`]:{color:a,"&:hover":{color:y,backgroundColor:a}}}}}};const ue=oe=>{const{componentCls:re,menuCls:z,zIndexPopup:a,dropdownArrowDistance:y,sizePopupArrow:E,antCls:b,iconCls:ee,motionDurationMid:te,dropdownPaddingVertical:le,fontSize:fe,dropdownEdgeChildPadding:he,colorTextDisabled:me,fontSizeIcon:ge,controlPaddingHorizontal:Se,colorBgElevated:ve}=oe;return[{[re]:Object.assign(Object.assign({},(0,we.Wf)(oe)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:a,display:"block","&::before":{position:"absolute",insetBlock:-y+E/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${b}-btn`]:{[`& > ${ee}-down, & > ${b}-btn-icon > ${ee}-down`]:{fontSize:ge}},[`${re}-wrap`]:{position:"relative",[`${b}-btn > ${ee}-down`]:{fontSize:ge},[`${ee}-down::before`]:{transition:`transform ${te}`}},[`${re}-wrap-open`]:{[`${ee}-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:Ee.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:Ee.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:Ee.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:Ee.ly}})},(0,de.ZP)(oe,{colorBg:ve,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${re} ${z}`]:{position:"relative",margin:0},[`${z}-submenu-popup`]:{position:"absolute",zIndex:a,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${re}, ${re}-menu-submenu`]:{[z]:Object.assign(Object.assign({padding:he,listStyleType:"none",backgroundColor:ve,backgroundClip:"padding-box",borderRadius:oe.borderRadiusLG,outline:"none",boxShadow:oe.boxShadowSecondary},(0,we.Qy)(oe)),{[`${z}-item-group-title`]:{padding:`${le}px ${Se}px`,color:oe.colorTextDescription,transition:`all ${te}`},[`${z}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${z}-item-icon`]:{minWidth:fe,marginInlineEnd:oe.marginXS,fontSize:oe.fontSizeSM},[`${z}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${te}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${z}-item, ${z}-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,we.Qy)(oe)),{"&-selected":{color:oe.colorPrimary,backgroundColor:oe.controlItemBgActive,"&:hover, &-active":{backgroundColor:oe.controlItemBgActiveHover}},"&-disabled":{color:me,cursor:"not-allowed","&:hover":{color:me,backgroundColor:ve,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:ge,fontStyle:"normal"}}}),[`${z}-item-group-list`]:{margin:`0 ${oe.marginXS}px`,padding:0,listStyle:"none"},[`${z}-submenu-title`]:{paddingInlineEnd:Se+oe.fontSizeSM},[`${z}-submenu-vertical`]:{position:"relative"},[`${z}-submenu${z}-submenu-disabled ${re}-menu-submenu-title`]:{[`&, ${re}-menu-submenu-arrow-icon`]:{color:me,backgroundColor:ve,cursor:"not-allowed"}},[`${z}-submenu-selected ${re}-menu-submenu-title`]:{color:oe.colorPrimary}})}},[(0,Ee.oN)(oe,"slide-up"),(0,Ee.oN)(oe,"slide-down"),(0,x.Fm)(oe,"move-up"),(0,x.Fm)(oe,"move-down"),(0,pe._y)(oe,"zoom-big")]]};var ie=(0,ae.Z)("Dropdown",(oe,re)=>{let{rootPrefixCls:z}=re;const{marginXXS:a,sizePopupArrow:y,controlHeight:E,fontSize:b,lineHeight:ee,paddingXXS:te,componentCls:le,borderRadiusLG:fe}=oe,he=(E-b*ee)/2,{dropdownArrowOffset:me}=(0,de.fS)({contentRadius:fe}),ge=(0,ne.TS)(oe,{menuCls:`${le}-menu`,rootPrefixCls:z,dropdownArrowDistance:y/2+a,dropdownArrowOffset:me,dropdownPaddingVertical:he,dropdownEdgeChildPadding:te});return[ue(ge),ce(ge)]},oe=>({zIndexPopup:oe.zIndexPopupBase+50}))},8628:function(_t,ft,ye){"use strict";var we=ye(59301),Ee=ye(34280),x=ye(56762),pe=ye(69507);function de(){let ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const ne=(0,we.useRef)({}),se=(0,x.Z)(),ce=(0,pe.ZP)();return(0,Ee.Z)(()=>{const ue=ce.subscribe(ie=>{ne.current=ie,ae&&se()});return()=>ce.unsubscribe(ue)},[]),ne.current}ft.Z=de},45818:function(_t,ft,ye){"use strict";ye.d(ft,{D:function(){return te},Z:function(){return he}});var we=ye(32855),Ee=ye(59301),x={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=x,de=ye(7657),ae=function(ge,Se){return Ee.createElement(de.Z,(0,we.Z)({},ge,{ref:Se,icon:pe}))},ne=Ee.forwardRef(ae),se=ne,ce=ye(33853),ue=ye(38819),ie=ye(92310),oe=ye.n(ie),re=ye(2738),a=me=>!isNaN(parseFloat(me))&&isFinite(me),y=ye(36355),E=ye(84966),b=function(me,ge){var Se={};for(var ve in me)Object.prototype.hasOwnProperty.call(me,ve)&&ge.indexOf(ve)<0&&(Se[ve]=me[ve]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var be=0,ve=Object.getOwnPropertySymbols(me);be<ve.length;be++)ge.indexOf(ve[be])<0&&Object.prototype.propertyIsEnumerable.call(me,ve[be])&&(Se[ve[be]]=me[ve[be]]);return Se};const ee={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},te=Ee.createContext({}),le=(()=>{let me=0;return function(){let ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return me+=1,`${ge}${me}`}})();var he=Ee.forwardRef((me,ge)=>{const{prefixCls:Se,className:ve,trigger:be,children:Pe,defaultCollapsed:Te=!1,theme:_e="dark",style:je={},collapsible:Ce=!1,reverseArrow:Ie=!1,width:ke=200,collapsedWidth:$e=80,zeroWidthTriggerStyle:Ne,breakpoint:nt,onCollapse:qe,onBreakpoint:Je}=me,Ye=b(me,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:We}=(0,Ee.useContext)(E.Gs),[Fe,Ue]=(0,Ee.useState)("collapsed"in me?me.collapsed:Te),[at,Xe]=(0,Ee.useState)(!1);(0,Ee.useEffect)(()=>{"collapsed"in me&&Ue(me.collapsed)},[me.collapsed]);const ut=(Be,Qe)=>{"collapsed"in me||Ue(Be),qe==null||qe(Be,Qe)},Ze=(0,Ee.useRef)();Ze.current=Be=>{Xe(Be.matches),Je==null||Je(Be.matches),Fe!==Be.matches&&ut(Be.matches,"responsive")},(0,Ee.useEffect)(()=>{function Be(Ge){return Ze.current(Ge)}let Qe;if(typeof window!="undefined"){const{matchMedia:Ge}=window;if(Ge&&nt&&nt in ee){Qe=Ge(`(max-width: ${ee[nt]})`);try{Qe.addEventListener("change",Be)}catch(De){Qe.addListener(Be)}Be(Qe)}}return()=>{try{Qe==null||Qe.removeEventListener("change",Be)}catch(Ge){Qe==null||Qe.removeListener(Be)}}},[nt]),(0,Ee.useEffect)(()=>{const Be=le("ant-sider-");return We.addSider(Be),()=>We.removeSider(Be)},[]);const ze=()=>{ut(!Fe,"clickTrigger")},{getPrefixCls:Re}=(0,Ee.useContext)(y.E_),it=()=>{const Be=Re("layout-sider",Se),Qe=(0,re.Z)(Ye,["collapsed"]),Ge=Fe?$e:ke,De=a(Ge)?`${Ge}px`:String(Ge),Le=parseFloat(String($e||0))===0?Ee.createElement("span",{onClick:ze,className:oe()(`${Be}-zero-width-trigger`,`${Be}-zero-width-trigger-${Ie?"right":"left"}`),style:Ne},be||Ee.createElement(se,null)):null,Ae={expanded:Ie?Ee.createElement(ue.Z,null):Ee.createElement(ce.Z,null),collapsed:Ie?Ee.createElement(ce.Z,null):Ee.createElement(ue.Z,null)}[Fe?"collapsed":"expanded"],Ke=be!==null?Le||Ee.createElement("div",{className:`${Be}-trigger`,onClick:ze,style:{width:De}},be||Ae):null,tt=Object.assign(Object.assign({},je),{flex:`0 0 ${De}`,maxWidth:De,minWidth:De,width:De}),He=oe()(Be,`${Be}-${_e}`,{[`${Be}-collapsed`]:!!Fe,[`${Be}-has-trigger`]:Ce&&be!==null&&!Le,[`${Be}-below`]:!!at,[`${Be}-zero-width`]:parseFloat(De)===0},ve);return Ee.createElement("aside",Object.assign({className:He},Qe,{style:tt,ref:ge}),Ee.createElement("div",{className:`${Be}-children`},Pe),Ce||at&&Le?Ke:null)},Me=Ee.useMemo(()=>({siderCollapsed:Fe}),[Fe]);return Ee.createElement(te.Provider,{value:Me},it())})},84966:function(_t,ft,ye){"use strict";ye.d(ft,{VY:function(){return te},$_:function(){return ee},h4:function(){return b},Gs:function(){return re},ZP:function(){return le}});var we=ye(3300),Ee=ye(92310),x=ye.n(Ee),pe=ye(2738),de=ye(59301),ae=ye(36355),ne=ye(83116),ce=fe=>{const{componentCls:he,bodyBg:me,lightSiderBg:ge,lightTriggerBg:Se,lightTriggerColor:ve}=fe;return{[`${he}-sider-light`]:{background:ge,[`${he}-sider-trigger`]:{color:ve,background:Se},[`${he}-sider-zero-width-trigger`]:{color:ve,background:Se,border:`1px solid ${me}`,borderInlineStart:0}}}};const ue=fe=>{const{antCls:he,componentCls:me,colorText:ge,triggerColor:Se,footerBg:ve,triggerBg:be,headerHeight:Pe,headerPadding:Te,headerColor:_e,footerPadding:je,triggerHeight:Ce,zeroTriggerHeight:Ie,zeroTriggerWidth:ke,motionDurationMid:$e,motionDurationSlow:Ne,fontSize:nt,borderRadius:qe,bodyBg:Je,headerBg:Ye,siderBg:We}=fe;return{[me]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Je,"&, *":{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 ${$e}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${he}-menu${he}-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:be,cursor:"pointer",transition:`all ${$e}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Pe,insetInlineEnd:-ke,zIndex:1,width:ke,height:Ie,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 ${Ne} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${Ne}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-ke,borderStartStartRadius:qe,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:qe}}}}},ce(fe)),{"&-rtl":{direction:"rtl"}}),[`${me}-header`]:{height:Pe,padding:Te,color:_e,lineHeight:`${Pe}px`,background:Ye,[`${he}-menu`]:{lineHeight:"inherit"}},[`${me}-footer`]:{padding:je,color:ge,fontSize:nt,background:ve},[`${me}-content`]:{flex:"auto",minHeight:0}}};var ie=(0,ne.Z)("Layout",fe=>[ue(fe)],fe=>{const{colorBgLayout:he,controlHeight:me,controlHeightLG:ge,colorText:Se,controlHeightSM:ve,marginXXS:be,colorTextLightSolid:Pe,colorBgContainer:Te}=fe,_e=ge*1.25;return{colorBgHeader:"#001529",colorBgBody:he,colorBgTrigger:"#002140",bodyBg:he,headerBg:"#001529",headerHeight:me*2,headerPadding:`0 ${_e}px`,headerColor:Se,footerPadding:`${ve}px ${_e}px`,footerBg:he,siderBg:"#001529",triggerHeight:ge+be*2,triggerBg:"#002140",triggerColor:Pe,zeroTriggerWidth:ge,zeroTriggerHeight:ge,lightSiderBg:Te,lightTriggerBg:Te,lightTriggerColor:Se}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),oe=function(fe,he){var me={};for(var ge in fe)Object.prototype.hasOwnProperty.call(fe,ge)&&he.indexOf(ge)<0&&(me[ge]=fe[ge]);if(fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Se=0,ge=Object.getOwnPropertySymbols(fe);Se<ge.length;Se++)he.indexOf(ge[Se])<0&&Object.prototype.propertyIsEnumerable.call(fe,ge[Se])&&(me[ge[Se]]=fe[ge[Se]]);return me};const re=de.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function z(fe){let{suffixCls:he,tagName:me,displayName:ge}=fe;return Se=>de.forwardRef((be,Pe)=>de.createElement(Se,Object.assign({ref:Pe,suffixCls:he,tagName:me},be)))}const a=de.forwardRef((fe,he)=>{const{prefixCls:me,suffixCls:ge,className:Se,tagName:ve}=fe,be=oe(fe,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Pe}=de.useContext(ae.E_),Te=Pe("layout",me),[_e,je]=ie(Te),Ce=ge?`${Te}-${ge}`:Te;return _e(de.createElement(ve,Object.assign({className:x()(me||Ce,Se,je),ref:he},be)))}),y=de.forwardRef((fe,he)=>{const{direction:me}=de.useContext(ae.E_),[ge,Se]=de.useState([]),{prefixCls:ve,className:be,rootClassName:Pe,children:Te,hasSider:_e,tagName:je,style:Ce}=fe,Ie=oe(fe,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),ke=(0,pe.Z)(Ie,["suffixCls"]),{getPrefixCls:$e,layout:Ne}=de.useContext(ae.E_),nt=$e("layout",ve),[qe,Je]=ie(nt),Ye=x()(nt,{[`${nt}-has-sider`]:typeof _e=="boolean"?_e:ge.length>0,[`${nt}-rtl`]:me==="rtl"},Ne==null?void 0:Ne.className,be,Pe,Je),We=de.useMemo(()=>({siderHook:{addSider:Fe=>{Se(Ue=>[].concat((0,we.Z)(Ue),[Fe]))},removeSider:Fe=>{Se(Ue=>Ue.filter(at=>at!==Fe))}}}),[]);return qe(de.createElement(re.Provider,{value:We},de.createElement(je,Object.assign({ref:he,className:Ye,style:Object.assign(Object.assign({},Ne==null?void 0:Ne.style),Ce)},ke),Te)))}),E=z({tagName:"div",displayName:"Layout"})(y),b=z({suffixCls:"header",tagName:"header",displayName:"Header"})(a),ee=z({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(a),te=z({suffixCls:"content",tagName:"main",displayName:"Content"})(a);var le=E},40875:function(_t,ft,ye){"use strict";ye.d(ft,{J:function(){return ae}});var we=ye(59301),Ee=ye(33234),x=ye(70425),pe=function(ne,se){var ce={};for(var ue in ne)Object.prototype.hasOwnProperty.call(ne,ue)&&se.indexOf(ue)<0&&(ce[ue]=ne[ue]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ie=0,ue=Object.getOwnPropertySymbols(ne);ie<ue.length;ie++)se.indexOf(ue[ie])<0&&Object.prototype.propertyIsEnumerable.call(ne,ue[ie])&&(ce[ue[ie]]=ne[ue[ie]]);return ce};const de=we.createContext(null),ae=we.forwardRef((ne,se)=>{const{children:ce}=ne,ue=pe(ne,["children"]),ie=we.useContext(de),oe=we.useMemo(()=>Object.assign(Object.assign({},ie),ue),[ie,ue.prefixCls,ue.mode,ue.selectable]);return we.createElement(de.Provider,{value:oe},we.createElement(Ee.BR,null,(0,x.supportNodeRef)(ce)?we.cloneElement(ce,{ref:se}):ce))});ft.Z=de},20834:function(_t,ft,ye){"use strict";ye.d(ft,{default:function(){return Me}});var we=ye(15285),Ee=ye(59301),x=ye(45818),pe=ye(92310),de=ye.n(pe),ae=ye(36355),ne=function(Be,Qe){var Ge={};for(var De in Be)Object.prototype.hasOwnProperty.call(Be,De)&&Qe.indexOf(De)<0&&(Ge[De]=Be[De]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,De=Object.getOwnPropertySymbols(Be);Le<De.length;Le++)Qe.indexOf(De[Le])<0&&Object.prototype.propertyIsEnumerable.call(Be,De[Le])&&(Ge[De[Le]]=Be[De[Le]]);return Ge},ce=Be=>{const{prefixCls:Qe,className:Ge,dashed:De}=Be,Le=ne(Be,["prefixCls","className","dashed"]),{getPrefixCls:Oe}=Ee.useContext(ae.E_),xe=Oe("menu",Qe),Ae=de()({[`${xe}-item-divider-dashed`]:!!De},Ge);return Ee.createElement(we.iz,Object.assign({className:Ae},Le))},ue=ye(11592),ie=ye(2738),oe=ye(6848),re=ye(92343),a=(0,Ee.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),E=Be=>{var Qe;const{className:Ge,children:De,icon:Le,title:Oe,danger:xe}=Be,{prefixCls:Ae,firstLevel:Ke,direction:tt,disableMenuItemTitleTooltip:He,inlineCollapsed:ot}=Ee.useContext(a),mt=ct=>{const gt=Ee.createElement("span",{className:`${Ae}-title-content`},De);return(!Le||(0,re.l$)(De)&&De.type==="span")&&De&&ct&&Ke&&typeof De=="string"?Ee.createElement("div",{className:`${Ae}-inline-collapsed-noicon`},De.charAt(0)):gt},{siderCollapsed:lt}=Ee.useContext(x.D);let pt=Oe;typeof Oe=="undefined"?pt=Ke?De:"":Oe===!1&&(pt="");const st={title:pt};!lt&&!ot&&(st.title=null,st.open=!1);const vt=(0,ue.Z)(De).length;let rt=Ee.createElement(we.ck,Object.assign({},(0,ie.Z)(Be,["title","icon","danger"]),{className:de()({[`${Ae}-item-danger`]:xe,[`${Ae}-item-only-child`]:(Le?vt+1:vt)===1},Ge),title:typeof Oe=="string"?Oe:void 0}),(0,re.Tm)(Le,{className:de()((0,re.l$)(Le)?(Qe=Le.props)===null||Qe===void 0?void 0:Qe.className:"",`${Ae}-item-icon`)}),mt(ot));return He||(rt=Ee.createElement(oe.Z,Object.assign({},st,{placement:tt==="rtl"?"left":"right",overlayClassName:`${Ae}-inline-collapsed-tooltip`}),rt)),rt},ee=Be=>{var Qe;const{popupClassName:Ge,icon:De,title:Le,theme:Oe}=Be,xe=Ee.useContext(a),{prefixCls:Ae,inlineCollapsed:Ke,theme:tt}=xe,He=(0,we.Xl)();let ot;if(!De)ot=Ke&&!He.length&&Le&&typeof Le=="string"?Ee.createElement("div",{className:`${Ae}-inline-collapsed-noicon`},Le.charAt(0)):Ee.createElement("span",{className:`${Ae}-title-content`},Le);else{const lt=(0,re.l$)(Le)&&Le.type==="span";ot=Ee.createElement(Ee.Fragment,null,(0,re.Tm)(De,{className:de()((0,re.l$)(De)?(Qe=De.props)===null||Qe===void 0?void 0:Qe.className:"",`${Ae}-item-icon`)}),lt?Le:Ee.createElement("span",{className:`${Ae}-title-content`},Le))}const mt=Ee.useMemo(()=>Object.assign(Object.assign({},xe),{firstLevel:!1}),[xe]);return Ee.createElement(a.Provider,{value:mt},Ee.createElement(we.Wd,Object.assign({},(0,ie.Z)(Be,["icon"]),{title:ot,popupClassName:de()(Ae,Ge,`${Ae}-${Oe||tt}`)})))},te=ye(18785),le=ye(70425),fe=ye(62892),he=ye(40875),me=function(Be,Qe){var Ge={};for(var De in Be)Object.prototype.hasOwnProperty.call(Be,De)&&Qe.indexOf(De)<0&&(Ge[De]=Be[De]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,De=Object.getOwnPropertySymbols(Be);Le<De.length;Le++)Qe.indexOf(De[Le])<0&&Object.prototype.propertyIsEnumerable.call(Be,De[Le])&&(Ge[De[Le]]=Be[De[Le]]);return Ge};function ge(Be){return(Be||[]).map((Qe,Ge)=>{if(Qe&&typeof Qe=="object"){const De=Qe,{label:Le,children:Oe,key:xe,type:Ae}=De,Ke=me(De,["label","children","key","type"]),tt=xe!=null?xe:`tmp-${Ge}`;return Oe||Ae==="group"?Ae==="group"?Ee.createElement(we.BW,Object.assign({key:tt},Ke,{title:Le}),ge(Oe)):Ee.createElement(ee,Object.assign({key:tt},Ke,{title:Le}),ge(Oe)):Ae==="divider"?Ee.createElement(ce,Object.assign({key:tt},Ke)):Ee.createElement(E,Object.assign({key:tt},Ke),Le)}return null}).filter(Qe=>Qe)}function Se(Be){return Ee.useMemo(()=>Be&&ge(Be),[Be])}var ve=ye(64993),be=ye(17313),Pe=ye(8378),Te=ye(13826),_e=ye(29878),je=ye(83116),Ce=ye(37613),ke=Be=>{const{componentCls:Qe,motionDurationSlow:Ge,horizontalLineHeight:De,colorSplit:Le,lineWidth:Oe,lineType:xe,itemPaddingInline:Ae}=Be;return{[`${Qe}-horizontal`]:{lineHeight:De,border:0,borderBottom:`${Oe}px ${xe} ${Le}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Qe}-item, ${Qe}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Ae},[`> ${Qe}-item:hover,
|
|
|
> ${Qe}-item-active,
|
|
|
> ${Qe}-submenu ${Qe}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Qe}-item, ${Qe}-submenu-title`]:{transition:[`border-color ${Ge}`,`background ${Ge}`].join(",")},[`${Qe}-submenu-arrow`]:{display:"none"}}}},Ne=Be=>{let{componentCls:Qe,menuArrowOffset:Ge}=Be;return{[`${Qe}-rtl`]:{direction:"rtl"},[`${Qe}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${Qe}-rtl${Qe}-vertical,
|
|
|
${Qe}-submenu-rtl ${Qe}-vertical`]:{[`${Qe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${Ge})`},"&::after":{transform:`rotate(45deg) translateY(${Ge})`}}}}};const nt=Be=>Object.assign({},(0,be.oN)(Be));var Je=(Be,Qe)=>{const{componentCls:Ge,itemColor:De,itemSelectedColor:Le,groupTitleColor:Oe,itemBg:xe,subMenuItemBg:Ae,itemSelectedBg:Ke,activeBarHeight:tt,activeBarWidth:He,activeBarBorderWidth:ot,motionDurationSlow:mt,motionEaseInOut:lt,motionEaseOut:pt,itemPaddingInline:st,motionDurationMid:vt,itemHoverColor:rt,lineType:ct,colorSplit:gt,itemDisabledColor:St,dangerItemColor:Ct,dangerItemHoverColor:It,dangerItemSelectedColor:Wt,dangerItemActiveBg:Ht,dangerItemSelectedBg:Xt,itemHoverBg:on,itemActiveBg:qt,menuSubMenuBg:tn,horizontalItemSelectedColor:wn,horizontalItemSelectedBg:En,horizontalItemBorderRadius:en,horizontalItemHoverBg:Tn,popupBg:An}=Be;return{[`${Ge}-${Qe}, ${Ge}-${Qe} > ${Ge}`]:{color:De,background:xe,[`&${Ge}-root:focus-visible`]:Object.assign({},nt(Be)),[`${Ge}-item-group-title`]:{color:Oe},[`${Ge}-submenu-selected`]:{[`> ${Ge}-submenu-title`]:{color:Le}},[`${Ge}-item-disabled, ${Ge}-submenu-disabled`]:{color:`${St} !important`},[`${Ge}-item:not(${Ge}-item-selected):not(${Ge}-submenu-selected)`]:{[`&:hover, > ${Ge}-submenu-title:hover`]:{color:rt}},[`&:not(${Ge}-horizontal)`]:{[`${Ge}-item:not(${Ge}-item-selected)`]:{"&:hover":{backgroundColor:on},"&:active":{backgroundColor:qt}},[`${Ge}-submenu-title`]:{"&:hover":{backgroundColor:on},"&:active":{backgroundColor:qt}}},[`${Ge}-item-danger`]:{color:Ct,[`&${Ge}-item:hover`]:{[`&:not(${Ge}-item-selected):not(${Ge}-submenu-selected)`]:{color:It}},[`&${Ge}-item:active`]:{background:Ht}},[`${Ge}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Ge}-item-selected`]:{color:Le,[`&${Ge}-item-danger`]:{color:Wt},"a, a:hover":{color:"inherit"}},[`& ${Ge}-item-selected`]:{backgroundColor:Ke,[`&${Ge}-item-danger`]:{backgroundColor:Xt}},[`${Ge}-item, ${Ge}-submenu-title`]:{[`&:not(${Ge}-item-disabled):focus-visible`]:Object.assign({},nt(Be))},[`&${Ge}-submenu > ${Ge}`]:{backgroundColor:tn},[`&${Ge}-popup > ${Ge}`]:{backgroundColor:An},[`&${Ge}-horizontal`]:Object.assign(Object.assign({},Qe==="dark"?{borderBottom:0}:{}),{[`> ${Ge}-item, > ${Ge}-submenu`]:{top:ot,marginTop:-ot,marginBottom:0,borderRadius:en,"&::after":{position:"absolute",insetInline:st,bottom:0,borderBottom:`${tt}px solid transparent`,transition:`border-color ${mt} ${lt}`,content:'""'},"&:hover, &-active, &-open":{background:Tn,"&::after":{borderBottomWidth:tt,borderBottomColor:wn}},"&-selected":{color:wn,backgroundColor:En,"&:hover":{backgroundColor:En},"&::after":{borderBottomWidth:tt,borderBottomColor:wn}}}}),[`&${Ge}-root`]:{[`&${Ge}-inline, &${Ge}-vertical`]:{borderInlineEnd:`${ot}px ${ct} ${gt}`}},[`&${Ge}-inline`]:{[`${Ge}-sub${Ge}-inline`]:{background:Ae},[`${Ge}-item, ${Ge}-submenu-title`]:ot&&He?{width:`calc(100% + ${ot}px)`}:{},[`${Ge}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${He}px solid ${Le}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${vt} ${pt}`,`opacity ${vt} ${pt}`].join(","),content:'""'},[`&${Ge}-item-danger`]:{"&::after":{borderInlineEndColor:Wt}}},[`${Ge}-selected, ${Ge}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${vt} ${lt}`,`opacity ${vt} ${lt}`].join(",")}}}}}};const Ye=Be=>{const{componentCls:Qe,itemHeight:Ge,itemMarginInline:De,padding:Le,menuArrowSize:Oe,marginXS:xe,itemMarginBlock:Ae}=Be,Ke=Le+Oe+xe;return{[`${Qe}-item`]:{position:"relative",overflow:"hidden"},[`${Qe}-item, ${Qe}-submenu-title`]:{height:Ge,lineHeight:`${Ge}px`,paddingInline:Le,overflow:"hidden",textOverflow:"ellipsis",marginInline:De,marginBlock:Ae,width:`calc(100% - ${De*2}px)`},[`> ${Qe}-item,
|
|
|
> ${Qe}-submenu > ${Qe}-submenu-title`]:{height:Ge,lineHeight:`${Ge}px`},[`${Qe}-item-group-list ${Qe}-submenu-title,
|
|
|
${Qe}-submenu-title`]:{paddingInlineEnd:Ke}}};var Fe=Be=>{const{componentCls:Qe,iconCls:Ge,itemHeight:De,colorTextLightSolid:Le,dropdownWidth:Oe,controlHeightLG:xe,motionDurationMid:Ae,motionEaseOut:Ke,paddingXL:tt,itemMarginInline:He,fontSizeLG:ot,motionDurationSlow:mt,paddingXS:lt,boxShadowSecondary:pt,collapsedWidth:st,collapsedIconSize:vt}=Be,rt={height:De,lineHeight:`${De}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[Qe]:{"&-inline, &-vertical":Object.assign({[`&${Qe}-root`]:{boxShadow:"none"}},Ye(Be))},[`${Qe}-submenu-popup`]:{[`${Qe}-vertical`]:Object.assign(Object.assign({},Ye(Be)),{boxShadow:pt})}},{[`${Qe}-submenu-popup ${Qe}-vertical${Qe}-sub`]:{minWidth:Oe,maxHeight:`calc(100vh - ${xe*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${Qe}-inline`]:{width:"100%",[`&${Qe}-root`]:{[`${Qe}-item, ${Qe}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${mt}`,`background ${mt}`,`padding ${Ae} ${Ke}`].join(","),[`> ${Qe}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${Qe}-sub${Qe}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${Qe}-submenu > ${Qe}-submenu-title`]:rt,[`& ${Qe}-item-group-title`]:{paddingInlineStart:tt}},[`${Qe}-item`]:rt}},{[`${Qe}-inline-collapsed`]:{width:st,[`&${Qe}-root`]:{[`${Qe}-item, ${Qe}-submenu ${Qe}-submenu-title`]:{[`> ${Qe}-inline-collapsed-noicon`]:{fontSize:ot,textAlign:"center"}}},[`> ${Qe}-item,
|
|
|
> ${Qe}-item-group > ${Qe}-item-group-list > ${Qe}-item,
|
|
|
> ${Qe}-item-group > ${Qe}-item-group-list > ${Qe}-submenu > ${Qe}-submenu-title,
|
|
|
> ${Qe}-submenu > ${Qe}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${ot/2}px - ${He}px)`,textOverflow:"clip",[`
|
|
|
${Qe}-submenu-arrow,
|
|
|
${Qe}-submenu-expand-icon
|
|
|
`]:{opacity:0},[`${Qe}-item-icon, ${Ge}`]:{margin:0,fontSize:vt,lineHeight:`${De}px`,"+ span":{display:"inline-block",opacity:0}}},[`${Qe}-item-icon, ${Ge}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Qe}-item-icon, ${Ge}`]:{display:"none"},"a, a:hover":{color:Le}},[`${Qe}-item-group-title`]:Object.assign(Object.assign({},be.vS),{paddingInline:lt})}}]};const Ue=Be=>{const{componentCls:Qe,motionDurationSlow:Ge,motionDurationMid:De,motionEaseInOut:Le,motionEaseOut:Oe,iconCls:xe,iconSize:Ae,iconMarginInlineEnd:Ke}=Be;return{[`${Qe}-item, ${Qe}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Ge}`,`background ${Ge}`,`padding ${Ge} ${Le}`].join(","),[`${Qe}-item-icon, ${xe}`]:{minWidth:Ae,fontSize:Ae,transition:[`font-size ${De} ${Oe}`,`margin ${Ge} ${Le}`,`color ${Ge}`].join(","),"+ span":{marginInlineStart:Ke,opacity:1,transition:[`opacity ${Ge} ${Le}`,`margin ${Ge}`,`color ${Ge}`].join(",")}},[`${Qe}-item-icon`]:Object.assign({},(0,be.Ro)()),[`&${Qe}-item-only-child`]:{[`> ${xe}, > ${Qe}-item-icon`]:{marginInlineEnd:0}}},[`${Qe}-item-disabled, ${Qe}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${Qe}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},at=Be=>{const{componentCls:Qe,motionDurationSlow:Ge,motionEaseInOut:De,borderRadius:Le,menuArrowSize:Oe,menuArrowOffset:xe}=Be;return{[`${Qe}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Be.margin,width:Oe,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Ge} ${De}, opacity ${Ge}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:Oe*.6,height:Oe*.15,backgroundColor:"currentcolor",borderRadius:Le,transition:[`background ${Ge} ${De}`,`transform ${Ge} ${De}`,`top ${Ge} ${De}`,`color ${Ge} ${De}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${xe})`},"&::after":{transform:`rotate(-45deg) translateY(${xe})`}}}}},Xe=Be=>{const{antCls:Qe,componentCls:Ge,fontSize:De,motionDurationSlow:Le,motionDurationMid:Oe,motionEaseInOut:xe,paddingXS:Ae,padding:Ke,colorSplit:tt,lineWidth:He,zIndexPopup:ot,borderRadiusLG:mt,subMenuItemBorderRadius:lt,menuArrowSize:pt,menuArrowOffset:st,lineType:vt,menuPanelMaskInset:rt,groupTitleLineHeight:ct,groupTitleFontSize:gt}=Be;return[{"":{[`${Ge}`]:Object.assign(Object.assign({},(0,be.dF)()),{"&-hidden":{display:"none"}})},[`${Ge}-submenu-hidden`]:{display:"none"}},{[Ge]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,be.Wf)(Be)),(0,be.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:De,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Le} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${Ge}-item`]:{flex:"none"}},[`${Ge}-item, ${Ge}-submenu, ${Ge}-submenu-title`]:{borderRadius:Be.itemBorderRadius},[`${Ge}-item-group-title`]:{padding:`${Ae}px ${Ke}px`,fontSize:gt,lineHeight:ct,transition:`all ${Le}`},[`&-horizontal ${Ge}-submenu`]:{transition:[`border-color ${Le} ${xe}`,`background ${Le} ${xe}`].join(",")},[`${Ge}-submenu, ${Ge}-submenu-inline`]:{transition:[`border-color ${Le} ${xe}`,`background ${Le} ${xe}`,`padding ${Oe} ${xe}`].join(",")},[`${Ge}-submenu ${Ge}-sub`]:{cursor:"initial",transition:[`background ${Le} ${xe}`,`padding ${Le} ${xe}`].join(",")},[`${Ge}-title-content`]:{transition:`color ${Le}`},[`${Ge}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Ge}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:tt,borderStyle:vt,borderWidth:0,borderTopWidth:He,marginBlock:He,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Ue(Be)),{[`${Ge}-item-group`]:{[`${Ge}-item-group-list`]:{margin:0,padding:0,[`${Ge}-item, ${Ge}-submenu-title`]:{paddingInline:`${De*2}px ${Ke}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:ot,borderRadius:mt,boxShadow:"none",transformOrigin:"0 0",[`&${Ge}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${rt}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:rt},"\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:Be.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:Be.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:Be.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:Be.paddingXS},[`> ${Ge}`]:Object.assign(Object.assign(Object.assign({borderRadius:mt},Ue(Be)),at(Be)),{[`${Ge}-item, ${Ge}-submenu > ${Ge}-submenu-title`]:{borderRadius:lt},[`${Ge}-submenu-title::after`]:{transition:`transform ${Le} ${xe}`}})}}),at(Be)),{[`&-inline-collapsed ${Ge}-submenu-arrow,
|
|
|
&-inline ${Ge}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${st})`},"&::after":{transform:`rotate(45deg) translateX(-${st})`}},[`${Ge}-submenu-open${Ge}-submenu-inline > ${Ge}-submenu-title > ${Ge}-submenu-arrow`]:{transform:`translateY(-${pt*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${st})`},"&::before":{transform:`rotate(45deg) translateX(${st})`}}})},{[`${Qe}-layout-header`]:{[Ge]:{lineHeight:"inherit"}}}]};var ut=(Be,Qe)=>(0,je.Z)("Menu",De=>{if(Qe===!1)return[];const{colorBgElevated:Le,colorPrimary:Oe,colorTextLightSolid:xe,controlHeightLG:Ae,fontSize:Ke,darkItemColor:tt,darkDangerItemColor:He,darkItemBg:ot,darkSubMenuItemBg:mt,darkItemSelectedColor:lt,darkItemSelectedBg:pt,darkDangerItemSelectedBg:st,darkItemHoverBg:vt,darkGroupTitleColor:rt,darkItemHoverColor:ct,darkItemDisabledColor:gt,darkDangerItemHoverColor:St,darkDangerItemSelectedColor:Ct,darkDangerItemActiveBg:It}=De,Wt=Ke/7*5,Ht=(0,Ce.TS)(De,{menuArrowSize:Wt,menuHorizontalHeight:Ae*1.15,menuArrowOffset:`${Wt*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Le}),Xt=(0,Ce.TS)(Ht,{itemColor:tt,itemHoverColor:ct,groupTitleColor:rt,itemSelectedColor:lt,itemBg:ot,popupBg:ot,subMenuItemBg:mt,itemActiveBg:"transparent",itemSelectedBg:pt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:vt,itemDisabledColor:gt,dangerItemColor:He,dangerItemHoverColor:St,dangerItemSelectedColor:Ct,dangerItemActiveBg:It,dangerItemSelectedBg:st,menuSubMenuBg:mt,horizontalItemSelectedColor:xe,horizontalItemSelectedBg:Oe});return[Xe(Ht),ke(Ht),Fe(Ht),Je(Ht,"light"),Je(Xt,"dark"),Ne(Ht),(0,Pe.Z)(Ht),(0,Te.oN)(Ht,"slide-up"),(0,Te.oN)(Ht,"slide-down"),(0,_e._y)(Ht,"zoom-big")]},De=>{const{colorPrimary:Le,colorError:Oe,colorTextDisabled:xe,colorErrorBg:Ae,colorText:Ke,colorTextDescription:tt,colorBgContainer:He,colorFillAlter:ot,colorFillContent:mt,lineWidth:lt,lineWidthBold:pt,controlItemBgActive:st,colorBgTextHover:vt,controlHeightLG:rt,lineHeight:ct,colorBgElevated:gt,marginXXS:St,padding:Ct,fontSize:It,controlHeightSM:Wt,fontSizeLG:Ht,colorTextLightSolid:Xt,colorErrorHover:on}=De,qt=new ve.C(Xt).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:De.zIndexPopupBase+50,radiusItem:De.borderRadiusLG,itemBorderRadius:De.borderRadiusLG,radiusSubMenuItem:De.borderRadiusSM,subMenuItemBorderRadius:De.borderRadiusSM,colorItemText:Ke,itemColor:Ke,colorItemTextHover:Ke,itemHoverColor:Ke,colorItemTextHoverHorizontal:Le,horizontalItemHoverColor:Le,colorGroupTitle:tt,groupTitleColor:tt,colorItemTextSelected:Le,itemSelectedColor:Le,colorItemTextSelectedHorizontal:Le,horizontalItemSelectedColor:Le,colorItemBg:He,itemBg:He,colorItemBgHover:vt,itemHoverBg:vt,colorItemBgActive:mt,itemActiveBg:st,colorSubItemBg:ot,subMenuItemBg:ot,colorItemBgSelected:st,itemSelectedBg:st,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:pt,activeBarHeight:pt,colorActiveBarBorderSize:lt,activeBarBorderWidth:lt,colorItemTextDisabled:xe,itemDisabledColor:xe,colorDangerItemText:Oe,dangerItemColor:Oe,colorDangerItemTextHover:Oe,dangerItemHoverColor:Oe,colorDangerItemTextSelected:Oe,dangerItemSelectedColor:Oe,colorDangerItemBgActive:Ae,dangerItemActiveBg:Ae,colorDangerItemBgSelected:Ae,dangerItemSelectedBg:Ae,itemMarginInline:De.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:rt,groupTitleLineHeight:ct,collapsedWidth:rt*2,popupBg:gt,itemMarginBlock:St,itemPaddingInline:Ct,horizontalLineHeight:`${rt*1.15}px`,iconSize:It,iconMarginInlineEnd:Wt-It,collapsedIconSize:Ht,groupTitleFontSize:It,darkItemDisabledColor:new ve.C(Xt).setAlpha(.25).toRgbString(),darkItemColor:qt,darkDangerItemColor:Oe,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Xt,darkItemSelectedBg:Le,darkDangerItemSelectedBg:Oe,darkItemHoverBg:"transparent",darkGroupTitleColor:qt,darkItemHoverColor:Xt,darkDangerItemHoverColor:on,darkDangerItemSelectedColor:Xt,darkDangerItemActiveBg:Oe}},{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"]]})(Be),Ze=function(Be,Qe){var Ge={};for(var De in Be)Object.prototype.hasOwnProperty.call(Be,De)&&Qe.indexOf(De)<0&&(Ge[De]=Be[De]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,De=Object.getOwnPropertySymbols(Be);Le<De.length;Le++)Qe.indexOf(De[Le])<0&&Object.prototype.propertyIsEnumerable.call(Be,De[Le])&&(Ge[De[Le]]=Be[De[Le]]);return Ge},Re=(0,Ee.forwardRef)((Be,Qe)=>{var Ge,De;const Le=Ee.useContext(he.Z),Oe=Le||{},{getPrefixCls:xe,getPopupContainer:Ae,direction:Ke,menu:tt}=Ee.useContext(ae.E_),He=xe(),{prefixCls:ot,className:mt,style:lt,theme:pt="light",expandIcon:st,_internalDisableMenuItemTitleTooltip:vt,inlineCollapsed:rt,siderCollapsed:ct,items:gt,children:St,rootClassName:Ct,mode:It,selectable:Wt,onClick:Ht,overflowedIndicatorPopupClassName:Xt}=Be,on=Ze(Be,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),qt=(0,ie.Z)(on,["collapsedWidth"]),tn=Se(gt)||St;(Ge=Oe.validator)===null||Ge===void 0||Ge.call(Oe,{mode:It});const wn=(0,le.useEvent)(function(){var tr;Ht==null||Ht.apply(void 0,arguments),(tr=Oe.onClick)===null||tr===void 0||tr.call(Oe)}),En=Oe.mode||It,en=Wt!=null?Wt:Oe.selectable,Tn=Ee.useMemo(()=>ct!==void 0?ct:rt,[rt,ct]),An={horizontal:{motionName:`${He}-slide-up`},inline:(0,fe.Z)(He),other:{motionName:`${He}-zoom-big`}},_n=xe("menu",ot||Oe.prefixCls),[$n,hr]=ut(_n,!Le),nr=de()(`${_n}-${pt}`,tt==null?void 0:tt.className,mt);let yr;if(typeof st=="function")yr=st;else if(st===null||st===!1)yr=null;else if(Oe.expandIcon===null||Oe.expandIcon===!1)yr=null;else{const tr=st!=null?st:Oe.expandIcon;yr=(0,re.Tm)(tr,{className:de()(`${_n}-submenu-expand-icon`,(0,re.l$)(tr)?(De=tr.props)===null||De===void 0?void 0:De.className:"")})}const Nr=Ee.useMemo(()=>({prefixCls:_n,inlineCollapsed:Tn||!1,direction:Ke,firstLevel:!0,theme:pt,mode:En,disableMenuItemTitleTooltip:vt}),[_n,Tn,Ke,vt,pt]);return $n(Ee.createElement(he.Z.Provider,{value:null},Ee.createElement(a.Provider,{value:Nr},Ee.createElement(we.ZP,Object.assign({getPopupContainer:Ae,overflowedIndicator:Ee.createElement(te.Z,null),overflowedIndicatorPopupClassName:de()(_n,`${_n}-${pt}`,Xt),mode:En,selectable:en,onClick:wn},qt,{inlineCollapsed:Tn,style:Object.assign(Object.assign({},tt==null?void 0:tt.style),lt),className:nr,prefixCls:_n,direction:Ke,defaultMotions:An,expandIcon:yr,ref:Qe,rootClassName:de()(Ct,hr)}),tn))))});const it=(0,Ee.forwardRef)((Be,Qe)=>{const Ge=(0,Ee.useRef)(null),De=Ee.useContext(x.D);return(0,Ee.useImperativeHandle)(Qe,()=>({menu:Ge.current,focus:Le=>{var Oe;(Oe=Ge.current)===null||Oe===void 0||Oe.focus(Le)}})),Ee.createElement(Re,Object.assign({ref:Ge},Be,De))});it.Item=E,it.SubMenu=ee,it.Divider=ce,it.ItemGroup=we.BW;var Me=it},58421:function(_t,ft,ye){"use strict";ye.d(ft,{Z:function(){return Oe}});var we=ye(32855),Ee=ye(59301),x={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=x,de=ye(7657),ae=function(Ae,Ke){return Ee.createElement(de.Z,(0,we.Z)({},Ae,{ref:Ke,icon:pe}))},ne=Ee.forwardRef(ae),se=ne,ce=ye(49198),ue=ye(33853),ie=ye(38819),oe=ye(92310),re=ye.n(oe),z=ye(74430),a=ye(27247),y=ye(33377),E=ye(93912),b=ye(18881),ee=ye(85461),te=ye(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,he=ye(91735),me=function(xe){(0,b.Z)(Ke,xe);var Ae=(0,ee.Z)(Ke);function Ke(){var tt;(0,y.Z)(this,Ke);for(var He=arguments.length,ot=new Array(He),mt=0;mt<He;mt++)ot[mt]=arguments[mt];return tt=Ae.call.apply(Ae,[this].concat(ot)),tt.state={goInputText:""},tt.getValidValue=function(){var lt=tt.state.goInputText;return!lt||Number.isNaN(lt)?void 0:Number(lt)},tt.buildOptionText=function(lt){return"".concat(lt," ").concat(tt.props.locale.items_per_page)},tt.changeSize=function(lt){tt.props.changeSize(Number(lt))},tt.handleChange=function(lt){tt.setState({goInputText:lt.target.value})},tt.handleBlur=function(lt){var pt=tt.props,st=pt.goButton,vt=pt.quickGo,rt=pt.rootPrefixCls,ct=tt.state.goInputText;st||ct===""||(tt.setState({goInputText:""}),!(lt.relatedTarget&&(lt.relatedTarget.className.indexOf("".concat(rt,"-item-link"))>=0||lt.relatedTarget.className.indexOf("".concat(rt,"-item"))>=0))&&vt(tt.getValidValue()))},tt.go=function(lt){var pt=tt.state.goInputText;pt!==""&&(lt.keyCode===fe.ENTER||lt.type==="click")&&(tt.setState({goInputText:""}),tt.props.quickGo(tt.getValidValue()))},tt}return(0,E.Z)(Ke,[{key:"getPageSizeOptions",value:function(){var He=this.props,ot=He.pageSize,mt=He.pageSizeOptions;return mt.some(function(lt){return lt.toString()===ot.toString()})?mt:mt.concat([ot.toString()]).sort(function(lt,pt){var st=Number.isNaN(Number(lt))?0:Number(lt),vt=Number.isNaN(Number(pt))?0:Number(pt);return st-vt})}},{key:"render",value:function(){var He=this,ot=this.props,mt=ot.pageSize,lt=ot.locale,pt=ot.rootPrefixCls,st=ot.changeSize,vt=ot.quickGo,rt=ot.goButton,ct=ot.selectComponentClass,gt=ot.buildOptionText,St=ot.selectPrefixCls,Ct=ot.disabled,It=this.state.goInputText,Wt="".concat(pt,"-options"),Ht=ct,Xt=null,on=null,qt=null;if(!st&&!vt)return null;var tn=this.getPageSizeOptions();if(st&&Ht){var wn=tn.map(function(En,en){return Ee.createElement(Ht.Option,{key:en,value:En.toString()},(gt||He.buildOptionText)(En))});Xt=Ee.createElement(Ht,{disabled:Ct,prefixCls:St,showSearch:!1,className:"".concat(Wt,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(mt||tn[0]).toString(),onChange:this.changeSize,getPopupContainer:function(en){return en.parentNode},"aria-label":lt.page_size,defaultOpen:!1},wn)}return vt&&(rt&&(qt=typeof rt=="boolean"?Ee.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:Ct,className:"".concat(Wt,"-quick-jumper-button")},lt.jump_to_confirm):Ee.createElement("span",{onClick:this.go,onKeyUp:this.go},rt)),on=Ee.createElement("div",{className:"".concat(Wt,"-quick-jumper")},lt.jump_to,Ee.createElement("input",{disabled:Ct,type:"text",value:It,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":lt.page}),lt.page,qt)),Ee.createElement("li",{className:"".concat(Wt)},Xt,on)}}]),Ke}(Ee.Component);me.defaultProps={pageSizeOptions:["10","20","50","100"]};var ge=me,Se=function(Ae){var Ke,tt=Ae.rootPrefixCls,He=Ae.page,ot=Ae.active,mt=Ae.className,lt=Ae.showTitle,pt=Ae.onClick,st=Ae.onKeyPress,vt=Ae.itemRender,rt="".concat(tt,"-item"),ct=re()(rt,"".concat(rt,"-").concat(He),(Ke={},(0,z.Z)(Ke,"".concat(rt,"-active"),ot),(0,z.Z)(Ke,"".concat(rt,"-disabled"),!He),(0,z.Z)(Ke,Ae.className,mt),Ke)),gt=function(){pt(He)},St=function(Wt){st(Wt,pt,He)},Ct=vt(He,"page",Ee.createElement("a",{rel:"nofollow"},He));return Ct?Ee.createElement("li",{title:lt?He.toString():null,className:ct,onClick:gt,onKeyPress:St,tabIndex:0},Ct):null},ve=Se;function be(){}function Pe(xe){var Ae=Number(xe);return typeof Ae=="number"&&!Number.isNaN(Ae)&&isFinite(Ae)&&Math.floor(Ae)===Ae}var Te=function(Ae,Ke,tt){return tt};function _e(xe,Ae,Ke){var tt=typeof xe=="undefined"?Ae.pageSize:xe;return Math.floor((Ke.total-1)/tt)+1}var je=function(xe){(0,b.Z)(Ke,xe);var Ae=(0,ee.Z)(Ke);function Ke(tt){var He;(0,y.Z)(this,Ke),He=Ae.call(this,tt),He.paginationNode=Ee.createRef(),He.getJumpPrevPage=function(){return Math.max(1,He.state.current-(He.props.showLessItems?3:5))},He.getJumpNextPage=function(){return Math.min(_e(void 0,He.state,He.props),He.state.current+(He.props.showLessItems?3:5))},He.getItemIcon=function(st,vt){var rt=He.props.prefixCls,ct=st||Ee.createElement("button",{type:"button","aria-label":vt,className:"".concat(rt,"-item-link")});return typeof st=="function"&&(ct=Ee.createElement(st,(0,a.Z)({},He.props))),ct},He.isValid=function(st){var vt=He.props.total;return Pe(st)&&st!==He.state.current&&Pe(vt)&&vt>0},He.shouldDisplayQuickJumper=function(){var st=He.props,vt=st.showQuickJumper,rt=st.total,ct=He.state.pageSize;return rt<=ct?!1:vt},He.handleKeyDown=function(st){(st.keyCode===fe.ARROW_UP||st.keyCode===fe.ARROW_DOWN)&&st.preventDefault()},He.handleKeyUp=function(st){var vt=He.getValidValue(st),rt=He.state.currentInputValue;vt!==rt&&He.setState({currentInputValue:vt}),st.keyCode===fe.ENTER?He.handleChange(vt):st.keyCode===fe.ARROW_UP?He.handleChange(vt-1):st.keyCode===fe.ARROW_DOWN&&He.handleChange(vt+1)},He.handleBlur=function(st){var vt=He.getValidValue(st);He.handleChange(vt)},He.changePageSize=function(st){var vt=He.state.current,rt=_e(st,He.state,He.props);vt=vt>rt?rt:vt,rt===0&&(vt=He.state.current),typeof st=="number"&&("pageSize"in He.props||He.setState({pageSize:st}),"current"in He.props||He.setState({current:vt,currentInputValue:vt})),He.props.onShowSizeChange(vt,st),"onChange"in He.props&&He.props.onChange&&He.props.onChange(vt,st)},He.handleChange=function(st){var vt=He.props,rt=vt.disabled,ct=vt.onChange,gt=He.state,St=gt.pageSize,Ct=gt.current,It=gt.currentInputValue;if(He.isValid(st)&&!rt){var Wt=_e(void 0,He.state,He.props),Ht=st;return st>Wt?Ht=Wt:st<1&&(Ht=1),"current"in He.props||He.setState({current:Ht}),Ht!==It&&He.setState({currentInputValue:Ht}),ct(Ht,St),Ht}return Ct},He.prev=function(){He.hasPrev()&&He.handleChange(He.state.current-1)},He.next=function(){He.hasNext()&&He.handleChange(He.state.current+1)},He.jumpPrev=function(){He.handleChange(He.getJumpPrevPage())},He.jumpNext=function(){He.handleChange(He.getJumpNextPage())},He.hasPrev=function(){return He.state.current>1},He.hasNext=function(){return He.state.current<_e(void 0,He.state,He.props)},He.runIfEnter=function(st,vt){if(st.key==="Enter"||st.charCode===13){for(var rt=arguments.length,ct=new Array(rt>2?rt-2:0),gt=2;gt<rt;gt++)ct[gt-2]=arguments[gt];vt.apply(void 0,ct)}},He.runIfEnterPrev=function(st){He.runIfEnter(st,He.prev)},He.runIfEnterNext=function(st){He.runIfEnter(st,He.next)},He.runIfEnterJumpPrev=function(st){He.runIfEnter(st,He.jumpPrev)},He.runIfEnterJumpNext=function(st){He.runIfEnter(st,He.jumpNext)},He.handleGoTO=function(st){(st.keyCode===fe.ENTER||st.type==="click")&&He.handleChange(He.state.currentInputValue)},He.renderPrev=function(st){var vt=He.props,rt=vt.prevIcon,ct=vt.itemRender,gt=ct(st,"prev",He.getItemIcon(rt,"prev page")),St=!He.hasPrev();return(0,Ee.isValidElement)(gt)?(0,Ee.cloneElement)(gt,{disabled:St}):gt},He.renderNext=function(st){var vt=He.props,rt=vt.nextIcon,ct=vt.itemRender,gt=ct(st,"next",He.getItemIcon(rt,"next page")),St=!He.hasNext();return(0,Ee.isValidElement)(gt)?(0,Ee.cloneElement)(gt,{disabled:St}):gt};var ot=tt.onChange!==be,mt="current"in tt;mt&&!ot&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var lt=tt.defaultCurrent;"current"in tt&&(lt=tt.current);var pt=tt.defaultPageSize;return"pageSize"in tt&&(pt=tt.pageSize),lt=Math.min(lt,_e(pt,void 0,tt)),He.state={current:lt,currentInputValue:lt,pageSize:pt},He}return(0,E.Z)(Ke,[{key:"componentDidUpdate",value:function(He,ot){var mt=this.props.prefixCls;if(ot.current!==this.state.current&&this.paginationNode.current){var lt=this.paginationNode.current.querySelector(".".concat(mt,"-item-").concat(ot.current));if(lt&&document.activeElement===lt){var pt;lt==null||(pt=lt.blur)===null||pt===void 0||pt.call(lt)}}}},{key:"getValidValue",value:function(He){var ot=He.target.value,mt=_e(void 0,this.state,this.props),lt=this.state.currentInputValue,pt;return ot===""?pt=ot:Number.isNaN(Number(ot))?pt=lt:ot>=mt?pt=mt:pt=Number(ot),pt}},{key:"getShowSizeChanger",value:function(){var He=this.props,ot=He.showSizeChanger,mt=He.total,lt=He.totalBoundaryShowSizeChanger;return typeof ot!="undefined"?ot:mt>lt}},{key:"render",value:function(){var He=this.props,ot=He.prefixCls,mt=He.className,lt=He.style,pt=He.disabled,st=He.hideOnSinglePage,vt=He.total,rt=He.locale,ct=He.showQuickJumper,gt=He.showLessItems,St=He.showTitle,Ct=He.showTotal,It=He.simple,Wt=He.itemRender,Ht=He.showPrevNextJumpers,Xt=He.jumpPrevIcon,on=He.jumpNextIcon,qt=He.selectComponentClass,tn=He.selectPrefixCls,wn=He.pageSizeOptions,En=this.state,en=En.current,Tn=En.pageSize,An=En.currentInputValue;if(st===!0&&vt<=Tn)return null;var _n=_e(void 0,this.state,this.props),$n=[],hr=null,nr=null,yr=null,Nr=null,tr=null,Cr=ct&&ct.goButton,rr=gt?1:2,_r=en-1>0?en-1:0,Et=en+1<_n?en+1:_n,Rt=(0,te.Z)(this.props,{aria:!0,data:!0}),xt=Ct&&Ee.createElement("li",{className:"".concat(ot,"-total-text")},Ct(vt,[vt===0?0:(en-1)*Tn+1,en*Tn>vt?vt:en*Tn]));if(It){Cr&&(typeof Cr=="boolean"?tr=Ee.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},rt.jump_to_confirm):tr=Ee.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Cr),tr=Ee.createElement("li",{title:St?"".concat(rt.jump_to).concat(en,"/").concat(_n):null,className:"".concat(ot,"-simple-pager")},tr));var Zt=this.renderPrev(_r);return Ee.createElement("ul",(0,we.Z)({className:re()(ot,"".concat(ot,"-simple"),(0,z.Z)({},"".concat(ot,"-disabled"),pt),mt),style:lt,ref:this.paginationNode},Rt),xt,Zt?Ee.createElement("li",{title:St?rt.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:re()("".concat(ot,"-prev"),(0,z.Z)({},"".concat(ot,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},Zt):null,Ee.createElement("li",{title:St?"".concat(en,"/").concat(_n):null,className:"".concat(ot,"-simple-pager")},Ee.createElement("input",{type:"text",value:An,disabled:pt,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),Ee.createElement("span",{className:"".concat(ot,"-slash")},"/"),_n),Ee.createElement("li",{title:St?rt.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:re()("".concat(ot,"-next"),(0,z.Z)({},"".concat(ot,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(Et)),tr)}if(_n<=3+rr*2){var yn={locale:rt,rootPrefixCls:ot,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:St,itemRender:Wt};_n||$n.push(Ee.createElement(ve,(0,we.Z)({},yn,{key:"noPager",page:1,className:"".concat(ot,"-item-disabled")})));for(var mn=1;mn<=_n;mn+=1){var mr=en===mn;$n.push(Ee.createElement(ve,(0,we.Z)({},yn,{key:mn,page:mn,active:mr})))}}else{var Kn=gt?rt.prev_3:rt.prev_5,Mn=gt?rt.next_3:rt.next_5,Qn=Wt(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(Xt,"prev page")),Kt=Wt(this.getJumpNextPage(),"jump-next",this.getItemIcon(on,"next page"));Ht&&(hr=Qn?Ee.createElement("li",{title:St?Kn:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:re()("".concat(ot,"-jump-prev"),(0,z.Z)({},"".concat(ot,"-jump-prev-custom-icon"),!!Xt))},Qn):null,nr=Kt?Ee.createElement("li",{title:St?Mn:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:re()("".concat(ot,"-jump-next"),(0,z.Z)({},"".concat(ot,"-jump-next-custom-icon"),!!on))},Kt):null),Nr=Ee.createElement(ve,{locale:rt,last:!0,rootPrefixCls:ot,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:_n,page:_n,active:!1,showTitle:St,itemRender:Wt}),yr=Ee.createElement(ve,{locale:rt,rootPrefixCls:ot,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:St,itemRender:Wt});var bt=Math.max(1,en-rr),$t=Math.min(en+rr,_n);en-1<=rr&&($t=1+rr*2),_n-en<=rr&&(bt=_n-rr*2);for(var rn=bt;rn<=$t;rn+=1){var nn=en===rn;$n.push(Ee.createElement(ve,{locale:rt,rootPrefixCls:ot,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:rn,page:rn,active:nn,showTitle:St,itemRender:Wt}))}en-1>=rr*2&&en!==3&&($n[0]=(0,Ee.cloneElement)($n[0],{className:"".concat(ot,"-item-after-jump-prev")}),$n.unshift(hr)),_n-en>=rr*2&&en!==_n-2&&($n[$n.length-1]=(0,Ee.cloneElement)($n[$n.length-1],{className:"".concat(ot,"-item-before-jump-next")}),$n.push(nr)),bt!==1&&$n.unshift(yr),$t!==_n&&$n.push(Nr)}var cn=!this.hasPrev()||!_n,yt=!this.hasNext()||!_n,Lt=this.renderPrev(_r),jt=this.renderNext(Et);return Ee.createElement("ul",(0,we.Z)({className:re()(ot,mt,(0,z.Z)({},"".concat(ot,"-disabled"),pt)),style:lt,ref:this.paginationNode},Rt),xt,Lt?Ee.createElement("li",{title:St?rt.prev_page:null,onClick:this.prev,tabIndex:cn?null:0,onKeyPress:this.runIfEnterPrev,className:re()("".concat(ot,"-prev"),(0,z.Z)({},"".concat(ot,"-disabled"),cn)),"aria-disabled":cn},Lt):null,$n,jt?Ee.createElement("li",{title:St?rt.next_page:null,onClick:this.next,tabIndex:yt?null:0,onKeyPress:this.runIfEnterNext,className:re()("".concat(ot,"-next"),(0,z.Z)({},"".concat(ot,"-disabled"),yt)),"aria-disabled":yt},jt):null,Ee.createElement(ge,{disabled:pt,locale:rt,rootPrefixCls:ot,selectComponentClass:qt,selectPrefixCls:tn,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:en,pageSize:Tn,pageSizeOptions:wn,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Cr}))}}],[{key:"getDerivedStateFromProps",value:function(He,ot){var mt={};if("current"in He&&(mt.current=He.current,He.current!==ot.current&&(mt.currentInputValue=mt.current)),"pageSize"in He&&He.pageSize!==ot.pageSize){var lt=ot.current,pt=_e(He.pageSize,ot,He);lt=lt>pt?pt:lt,"current"in He||(mt.current=lt,mt.currentInputValue=lt),mt.pageSize=He.pageSize}return mt}}]),Ke}(Ee.Component);je.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:be,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:be,locale:he.Z,style:{},itemRender:Te,totalBoundaryShowSizeChanger:50};var Ce=je,Ie=ye(22075),ke=ye(36355),$e=ye(19716),Ne=ye(8628),nt=ye(9763),qe=ye(57809);const Je=xe=>Ee.createElement(qe.default,Object.assign({},xe,{showSearch:!0,size:"small"})),Ye=xe=>Ee.createElement(qe.default,Object.assign({},xe,{showSearch:!0,size:"middle"}));Je.Option=qe.default.Option,Ye.Option=qe.default.Option;var We=ye(9937),Fe=ye(17313),Ue=ye(83116),at=ye(37613);const Xe=xe=>{const{componentCls:Ae}=xe;return{[`${Ae}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${Ae}-item-link`]:{color:xe.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${Ae}-item-link`]:{color:xe.colorTextDisabled,cursor:"not-allowed"}}},[`&${Ae}-disabled`]:{cursor:"not-allowed",[`${Ae}-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}}},[`${Ae}-item-link`]:{color:xe.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${Ae}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${Ae}-simple-pager`]:{color:xe.colorTextDisabled},[`${Ae}-jump-prev, ${Ae}-jump-next`]:{[`${Ae}-item-link-icon`]:{opacity:0},[`${Ae}-item-ellipsis`]:{opacity:1}}},[`&${Ae}-simple`]:{[`${Ae}-prev, ${Ae}-next`]:{[`&${Ae}-disabled ${Ae}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},ut=xe=>{const{componentCls:Ae}=xe;return{[`&${Ae}-mini ${Ae}-total-text, &${Ae}-mini ${Ae}-simple-pager`]:{height:xe.itemSizeSM,lineHeight:`${xe.itemSizeSM}px`},[`&${Ae}-mini ${Ae}-item`]:{minWidth:xe.itemSizeSM,height:xe.itemSizeSM,margin:0,lineHeight:`${xe.itemSizeSM-2}px`},[`&${Ae}-mini:not(${Ae}-disabled) ${Ae}-item:not(${Ae}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:xe.colorBgTextHover},"&:active":{backgroundColor:xe.colorBgTextActive}},[`&${Ae}-mini ${Ae}-prev, &${Ae}-mini ${Ae}-next`]:{minWidth:xe.itemSizeSM,height:xe.itemSizeSM,margin:0,lineHeight:`${xe.itemSizeSM}px`},[`&${Ae}-mini:not(${Ae}-disabled)`]:{[`${Ae}-prev, ${Ae}-next`]:{[`&:hover ${Ae}-item-link`]:{backgroundColor:xe.colorBgTextHover},[`&:active ${Ae}-item-link`]:{backgroundColor:xe.colorBgTextActive},[`&${Ae}-disabled:hover ${Ae}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
|
&${Ae}-mini ${Ae}-prev ${Ae}-item-link,
|
|
|
&${Ae}-mini ${Ae}-next ${Ae}-item-link
|
|
|
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:xe.itemSizeSM,lineHeight:`${xe.itemSizeSM}px`}},[`&${Ae}-mini ${Ae}-jump-prev, &${Ae}-mini ${Ae}-jump-next`]:{height:xe.itemSizeSM,marginInlineEnd:0,lineHeight:`${xe.itemSizeSM}px`},[`&${Ae}-mini ${Ae}-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})}}}},Ze=xe=>{const{componentCls:Ae}=xe;return{[`
|
|
|
&${Ae}-simple ${Ae}-prev,
|
|
|
&${Ae}-simple ${Ae}-next
|
|
|
`]:{height:xe.itemSizeSM,lineHeight:`${xe.itemSizeSM}px`,verticalAlign:"top",[`${Ae}-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`}}},[`&${Ae}-simple ${Ae}-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"}}}}},ze=xe=>{const{componentCls:Ae}=xe;return{[`${Ae}-jump-prev, ${Ae}-jump-next`]:{outline:0,[`${Ae}-item-container`]:{position:"relative",[`${Ae}-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"}},[`${Ae}-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":{[`${Ae}-item-link-icon`]:{opacity:1},[`${Ae}-item-ellipsis`]:{opacity:0}}},[`
|
|
|
${Ae}-prev,
|
|
|
${Ae}-jump-prev,
|
|
|
${Ae}-jump-next
|
|
|
`]:{marginInlineEnd:xe.marginXS},[`
|
|
|
${Ae}-prev,
|
|
|
${Ae}-next,
|
|
|
${Ae}-jump-prev,
|
|
|
${Ae}-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}`},[`${Ae}-prev, ${Ae}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:xe.colorText,cursor:"pointer",userSelect:"none"},[`${Ae}-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 ${Ae}-item-link`]:{backgroundColor:xe.colorBgTextHover},[`&:active ${Ae}-item-link`]:{backgroundColor:xe.colorBgTextActive},[`&${Ae}-disabled:hover`]:{[`${Ae}-item-link`]:{backgroundColor:"transparent"}}},[`${Ae}-slash`]:{marginInlineEnd:xe.paginationSlashMarginInlineEnd,marginInlineStart:xe.paginationSlashMarginInlineStart},[`${Ae}-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:Ae}=xe;return{[`${Ae}-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(${Ae}-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}}}}},it=xe=>{const{componentCls:Ae}=xe;return{[Ae]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Fe.Wf)(xe)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${Ae}-total-text`]:{display:"inline-block",height:xe.itemSize,marginInlineEnd:xe.marginXS,lineHeight:`${xe.itemSize-2}px`,verticalAlign:"middle"}}),Re(xe)),ze(xe)),Ze(xe)),ut(xe)),Xe(xe)),{[`@media only screen and (max-width: ${xe.screenLG}px)`]:{[`${Ae}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${xe.screenSM}px)`]:{[`${Ae}-options`]:{display:"none"}}}),[`&${xe.componentCls}-rtl`]:{direction:"rtl"}}},Me=xe=>{const{componentCls:Ae}=xe;return{[`${Ae}${Ae}-disabled:not(${Ae}-mini)`]:{"&, &:hover":{[`${Ae}-item-link`]:{borderColor:xe.colorBorder}},"&:focus-visible":{[`${Ae}-item-link`]:{borderColor:xe.colorBorder}},[`${Ae}-item, ${Ae}-item-link`]:{backgroundColor:xe.colorBgContainerDisabled,borderColor:xe.colorBorder,[`&:hover:not(${Ae}-item-active)`]:{backgroundColor:xe.colorBgContainerDisabled,borderColor:xe.colorBorder,a:{color:xe.colorTextDisabled}},[`&${Ae}-item-active`]:{backgroundColor:xe.itemActiveBgDisabled}},[`${Ae}-prev, ${Ae}-next`]:{"&:hover button":{backgroundColor:xe.colorBgContainerDisabled,borderColor:xe.colorBorder,color:xe.colorTextDisabled},[`${Ae}-item-link`]:{backgroundColor:xe.colorBgContainerDisabled,borderColor:xe.colorBorder}}},[`${Ae}:not(${Ae}-mini)`]:{[`${Ae}-prev, ${Ae}-next`]:{"&:hover button":{borderColor:xe.colorPrimaryHover,backgroundColor:xe.itemBg},[`${Ae}-item-link`]:{backgroundColor:xe.itemLinkBg,borderColor:xe.colorBorder},[`&:hover ${Ae}-item-link`]:{borderColor:xe.colorPrimary,backgroundColor:xe.itemBg,color:xe.colorPrimary},[`&${Ae}-disabled`]:{[`${Ae}-item-link`]:{borderColor:xe.colorBorder,color:xe.colorTextDisabled}}},[`${Ae}-item`]:{backgroundColor:xe.itemBg,border:`${xe.lineWidth}px ${xe.lineType} ${xe.colorBorder}`,[`&:hover:not(${Ae}-item-active)`]:{borderColor:xe.colorPrimary,backgroundColor:xe.itemBg,a:{color:xe.colorPrimary}},"&-active":{borderColor:xe.colorPrimary}}}}},Be=xe=>{const{componentCls:Ae}=xe;return{[`${Ae}:not(${Ae}-disabled)`]:{[`${Ae}-item`]:Object.assign({},(0,Fe.Qy)(xe)),[`${Ae}-jump-prev, ${Ae}-jump-next`]:{"&:focus-visible":Object.assign({[`${Ae}-item-link-icon`]:{opacity:1},[`${Ae}-item-ellipsis`]:{opacity:0}},(0,Fe.oN)(xe))},[`${Ae}-prev, ${Ae}-next`]:{[`&:focus-visible ${Ae}-item-link`]:Object.assign({},(0,Fe.oN)(xe))}}}};var Qe=(0,Ue.Z)("Pagination",xe=>{const Ae=(0,at.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[it(Ae),Be(Ae),xe.wireframe&&Me(Ae)]},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})),Ge=function(xe,Ae){var Ke={};for(var tt in xe)Object.prototype.hasOwnProperty.call(xe,tt)&&Ae.indexOf(tt)<0&&(Ke[tt]=xe[tt]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var He=0,tt=Object.getOwnPropertySymbols(xe);He<tt.length;He++)Ae.indexOf(tt[He])<0&&Object.prototype.propertyIsEnumerable.call(xe,tt[He])&&(Ke[tt[He]]=xe[tt[He]]);return Ke},Le=xe=>{const{prefixCls:Ae,selectPrefixCls:Ke,className:tt,rootClassName:He,style:ot,size:mt,locale:lt,selectComponentClass:pt,responsive:st,showSizeChanger:vt}=xe,rt=Ge(xe,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:ct}=(0,Ne.Z)(st),{getPrefixCls:gt,direction:St,pagination:Ct={}}=Ee.useContext(ke.E_),It=gt("pagination",Ae),[Wt,Ht]=Qe(It),Xt=vt!=null?vt:Ct.showSizeChanger,on=Ee.useMemo(()=>{const _n=Ee.createElement("span",{className:`${It}-item-ellipsis`},"\u2022\u2022\u2022"),$n=Ee.createElement("button",{className:`${It}-item-link`,type:"button",tabIndex:-1},St==="rtl"?Ee.createElement(ie.Z,null):Ee.createElement(ue.Z,null)),hr=Ee.createElement("button",{className:`${It}-item-link`,type:"button",tabIndex:-1},St==="rtl"?Ee.createElement(ue.Z,null):Ee.createElement(ie.Z,null)),nr=Ee.createElement("a",{className:`${It}-item-link`},Ee.createElement("div",{className:`${It}-item-container`},St==="rtl"?Ee.createElement(ce.Z,{className:`${It}-item-link-icon`}):Ee.createElement(se,{className:`${It}-item-link-icon`}),_n)),yr=Ee.createElement("a",{className:`${It}-item-link`},Ee.createElement("div",{className:`${It}-item-container`},St==="rtl"?Ee.createElement(se,{className:`${It}-item-link-icon`}):Ee.createElement(ce.Z,{className:`${It}-item-link-icon`}),_n));return{prevIcon:$n,nextIcon:hr,jumpPrevIcon:nr,jumpNextIcon:yr}},[St,It]),[qt]=(0,nt.Z)("Pagination",Ie.Z),tn=Object.assign(Object.assign({},qt),lt),wn=(0,$e.Z)(mt),En=wn==="small"||!!(ct&&!wn&&st),en=gt("select",Ke),Tn=re()({[`${It}-mini`]:En,[`${It}-rtl`]:St==="rtl"},Ct==null?void 0:Ct.className,tt,He,Ht),An=Object.assign(Object.assign({},Ct==null?void 0:Ct.style),ot);return Wt(Ee.createElement(Ce,Object.assign({},on,rt,{style:An,prefixCls:It,selectPrefixCls:en,className:Tn,selectComponentClass:pt||(En?Je:Ye),locale:tn,showSizeChanger:Xt})))},Oe=Le},39722:function(_t,ft,ye){"use strict";ye.d(ft,{t5:function(){return ue}});var we=ye(92310),Ee=ye.n(we),x=ye(55477),pe=ye(59301),de=ye(36355),ae=ye(77578),ne=ye(17356),se=function(oe,re){var z={};for(var a in oe)Object.prototype.hasOwnProperty.call(oe,a)&&re.indexOf(a)<0&&(z[a]=oe[a]);if(oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var y=0,a=Object.getOwnPropertySymbols(oe);y<a.length;y++)re.indexOf(a[y])<0&&Object.prototype.propertyIsEnumerable.call(oe,a[y])&&(z[a[y]]=oe[a[y]]);return z};const ce=(oe,re,z)=>{if(!(!re&&!z))return pe.createElement(pe.Fragment,null,re&&pe.createElement("div",{className:`${oe}-title`},(0,ae.Z)(re)),pe.createElement("div",{className:`${oe}-inner-content`},(0,ae.Z)(z)))},ue=oe=>{const{hashId:re,prefixCls:z,className:a,style:y,placement:E="top",title:b,content:ee,children:te}=oe;return pe.createElement("div",{className:Ee()(re,z,`${z}-pure`,`${z}-placement-${E}`,a),style:y},pe.createElement("div",{className:`${z}-arrow`}),pe.createElement(x.G,Object.assign({},oe,{className:re,prefixCls:z}),te||ce(z,b,ee)))},ie=oe=>{const{prefixCls:re}=oe,z=se(oe,["prefixCls"]),{getPrefixCls:a}=pe.useContext(de.E_),y=a("popover",re),[E,b]=(0,ne.Z)(y);return E(pe.createElement(ue,Object.assign({},z,{prefixCls:y,hashId:b})))};ft.ZP=ie},17356:function(_t,ft,ye){"use strict";var we=ye(17313),Ee=ye(29878),x=ye(19447),pe=ye(33166),de=ye(83116),ae=ye(37613);const ne=ue=>{const{componentCls:ie,popoverColor:oe,minWidth:re,fontWeightStrong:z,popoverPadding:a,boxShadowSecondary:y,colorTextHeading:E,borderRadiusLG:b,zIndexPopup:ee,marginXS:te,colorBgElevated:le,popoverBg:fe}=ue;return[{[ie]:Object.assign(Object.assign({},(0,we.Wf)(ue)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:ee,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"},[`${ie}-content`]:{position:"relative"},[`${ie}-inner`]:{backgroundColor:fe,backgroundClip:"padding-box",borderRadius:b,boxShadow:y,padding:a},[`${ie}-title`]:{minWidth:re,marginBottom:te,color:E,fontWeight:z},[`${ie}-inner-content`]:{color:oe}})},(0,x.ZP)(ue,{colorBg:"var(--antd-arrow-background-color)"}),{[`${ie}-pure`]:{position:"relative",maxWidth:"none",margin:ue.sizePopupArrow,display:"inline-block",[`${ie}-content`]:{display:"inline-block"}}}]},se=ue=>{const{componentCls:ie}=ue;return{[ie]:pe.i.map(oe=>{const re=ue[`${oe}6`];return{[`&${ie}-${oe}`]:{"--antd-arrow-background-color":re,[`${ie}-inner`]:{backgroundColor:re},[`${ie}-arrow`]:{background:"transparent"}}}})}},ce=ue=>{const{componentCls:ie,lineWidth:oe,lineType:re,colorSplit:z,paddingSM:a,controlHeight:y,fontSize:E,lineHeight:b,padding:ee}=ue,te=y-Math.round(E*b),le=te/2,fe=te/2-oe,he=ee;return{[ie]:{[`${ie}-inner`]:{padding:0},[`${ie}-title`]:{margin:0,padding:`${le}px ${he}px ${fe}px`,borderBottom:`${oe}px ${re} ${z}`},[`${ie}-inner-content`]:{padding:`${a}px ${he}px`}}}};ft.Z=(0,de.Z)("Popover",ue=>{const{colorBgElevated:ie,colorText:oe,wireframe:re}=ue,z=(0,ae.TS)(ue,{popoverPadding:12,popoverBg:ie,popoverColor:oe});return[ne(z),se(z),re&&ce(z),(0,Ee._y)(z,"zoom-big")]},ue=>({width:177,minWidth:177,zIndexPopup:ue.zIndexPopupBase+30}),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]})},93948:function(_t,ft,ye){"use strict";ye.d(ft,{Z:function(){return vt}});var we=ye(59301),Ee=ye(29679),x=ye(40001),pe=ye(19248),de=ye(99267),ae=ye(92310),ne=ye.n(ae),se=ye(2738),ce=ye(36355),ue=ye(32855),ie=ye(27247),oe=ye(43079),re={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},z=function(){var ct=(0,we.useRef)([]),gt=(0,we.useRef)(null);return(0,we.useEffect)(function(){var St=Date.now(),Ct=!1;ct.current.forEach(function(It){if(It){Ct=!0;var Wt=It.style;Wt.transitionDuration=".3s, .3s, .3s, .06s",gt.current&&St-gt.current<100&&(Wt.transitionDuration="0s, 0s")}}),Ct&&(gt.current=Date.now())}),ct.current},a=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],y=function(ct){var gt=(0,ie.Z)((0,ie.Z)({},re),ct),St=gt.className,Ct=gt.percent,It=gt.prefixCls,Wt=gt.strokeColor,Ht=gt.strokeLinecap,Xt=gt.strokeWidth,on=gt.style,qt=gt.trailColor,tn=gt.trailWidth,wn=gt.transition,En=(0,oe.Z)(gt,a);delete En.gapPosition;var en=Array.isArray(Ct)?Ct:[Ct],Tn=Array.isArray(Wt)?Wt:[Wt],An=z(),_n=Xt/2,$n=100-Xt/2,hr="M ".concat(Ht==="round"?_n:0,",").concat(_n,`
|
|
|
L `).concat(Ht==="round"?$n:100,",").concat(_n),nr="0 0 100 ".concat(Xt),yr=0;return we.createElement("svg",(0,ue.Z)({className:ne()("".concat(It,"-line"),St),viewBox:nr,preserveAspectRatio:"none",style:on},En),we.createElement("path",{className:"".concat(It,"-line-trail"),d:hr,strokeLinecap:Ht,stroke:qt,strokeWidth:tn||Xt,fillOpacity:"0"}),en.map(function(Nr,tr){var Cr=1;switch(Ht){case"round":Cr=1-Xt/100;break;case"square":Cr=1-Xt/2/100;break;default:Cr=1;break}var rr={strokeDasharray:"".concat(Nr*Cr,"px, 100px"),strokeDashoffset:"-".concat(yr,"px"),transition:wn||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},_r=Tn[tr]||Tn[Tn.length-1];return yr+=Nr,we.createElement("path",{key:tr,className:"".concat(It,"-line-path"),d:hr,strokeLinecap:Ht,stroke:_r,strokeWidth:Xt,fillOpacity:"0",ref:function(Rt){An[tr]=Rt},style:rr})}))},E=y,b=ye(34666),ee=ye(11913),te=ye(47273),le=0,fe=(0,te.Z)();function he(){var rt;return fe?(rt=le,le+=1):rt="TEST_OR_SSR",rt}var me=function(rt){var ct=we.useState(),gt=(0,ee.Z)(ct,2),St=gt[0],Ct=gt[1];return we.useEffect(function(){Ct("rc_progress_".concat(he()))},[]),rt||St},ge=function(ct){var gt=ct.bg,St=ct.children;return we.createElement("div",{style:{width:"100%",height:"100%",background:gt}},St)};function Se(rt,ct){return Object.keys(rt).map(function(gt){var St=parseFloat(gt),Ct="".concat(Math.floor(St*ct),"%");return"".concat(rt[gt]," ").concat(Ct)})}var ve=we.forwardRef(function(rt,ct){var gt=rt.prefixCls,St=rt.color,Ct=rt.gradientId,It=rt.radius,Wt=rt.style,Ht=rt.ptg,Xt=rt.strokeLinecap,on=rt.strokeWidth,qt=rt.size,tn=rt.gapDegree,wn=St&&(0,b.Z)(St)==="object",En=wn?"#FFF":void 0,en=qt/2,Tn=we.createElement("circle",{className:"".concat(gt,"-circle-path"),r:It,cx:en,cy:en,stroke:En,strokeLinecap:Xt,strokeWidth:on,opacity:Ht===0?0:1,style:Wt,ref:ct});if(!wn)return Tn;var An="".concat(Ct,"-conic"),_n=tn?"".concat(180+tn/2,"deg"):"0deg",$n=Se(St,(360-tn)/360),hr=Se(St,1),nr="conic-gradient(from ".concat(_n,", ").concat($n.join(", "),")"),yr="linear-gradient(to ".concat(tn?"bottom":"top",", ").concat(hr.join(", "),")");return we.createElement(we.Fragment,null,we.createElement("mask",{id:An},Tn),we.createElement("foreignObject",{x:0,y:0,width:qt,height:qt,mask:"url(#".concat(An,")")},we.createElement(ge,{bg:yr},we.createElement(ge,{bg:nr}))))}),be=ve,Pe=100,Te=function(ct,gt,St,Ct,It,Wt,Ht,Xt,on,qt){var tn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,wn=St/100*360*((360-Wt)/360),En=Wt===0?0:{bottom:0,top:180,left:90,right:-90}[Ht],en=(100-Ct)/100*gt;on==="round"&&Ct!==100&&(en+=qt/2,en>=gt&&(en=gt-.01));var Tn=Pe/2;return{stroke:typeof Xt=="string"?Xt:void 0,strokeDasharray:"".concat(gt,"px ").concat(ct),strokeDashoffset:en+tn,transform:"rotate(".concat(It+wn+En,"deg)"),transformOrigin:"".concat(Tn,"px ").concat(Tn,"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}},_e=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function je(rt){var ct=rt!=null?rt:[];return Array.isArray(ct)?ct:[ct]}var Ce=function(ct){var gt=(0,ie.Z)((0,ie.Z)({},re),ct),St=gt.id,Ct=gt.prefixCls,It=gt.steps,Wt=gt.strokeWidth,Ht=gt.trailWidth,Xt=gt.gapDegree,on=Xt===void 0?0:Xt,qt=gt.gapPosition,tn=gt.trailColor,wn=gt.strokeLinecap,En=gt.style,en=gt.className,Tn=gt.strokeColor,An=gt.percent,_n=(0,oe.Z)(gt,_e),$n=Pe/2,hr=me(St),nr="".concat(hr,"-gradient"),yr=$n-Wt/2,Nr=Math.PI*2*yr,tr=on>0?90+on/2:-90,Cr=Nr*((360-on)/360),rr=(0,b.Z)(It)==="object"?It:{count:It,space:2},_r=rr.count,Et=rr.space,Rt=je(An),xt=je(Tn),Zt=xt.find(function(Kt){return Kt&&(0,b.Z)(Kt)==="object"}),yn=Zt&&(0,b.Z)(Zt)==="object",mn=yn?"butt":wn,mr=Te(Nr,Cr,0,100,tr,on,qt,tn,mn,Wt),Kn=z(),Mn=function(){var bt=0;return Rt.map(function($t,rn){var nn=xt[rn]||xt[xt.length-1],cn=Te(Nr,Cr,bt,$t,tr,on,qt,nn,mn,Wt);return bt+=$t,we.createElement(be,{key:rn,color:nn,ptg:$t,radius:yr,prefixCls:Ct,gradientId:nr,style:cn,strokeLinecap:mn,strokeWidth:Wt,gapDegree:on,ref:function(Lt){Kn[rn]=Lt},size:Pe})}).reverse()},Qn=function(){var bt=Math.round(_r*(Rt[0]/100)),$t=100/_r,rn=0;return new Array(_r).fill(null).map(function(nn,cn){var yt=cn<=bt-1?xt[0]:tn,Lt=yt&&(0,b.Z)(yt)==="object"?"url(#".concat(nr,")"):void 0,jt=Te(Nr,Cr,rn,$t,tr,on,qt,yt,"butt",Wt,Et);return rn+=(Cr-jt.strokeDashoffset+Et)*100/Cr,we.createElement("circle",{key:cn,className:"".concat(Ct,"-circle-path"),r:yr,cx:$n,cy:$n,stroke:Lt,strokeWidth:Wt,opacity:1,style:jt,ref:function(Ut){Kn[cn]=Ut}})})};return we.createElement("svg",(0,ue.Z)({className:ne()("".concat(Ct,"-circle"),en),viewBox:"0 0 ".concat(Pe," ").concat(Pe),style:En,id:St,role:"presentation"},_n),!_r&&we.createElement("circle",{className:"".concat(Ct,"-circle-trail"),r:yr,cx:$n,cy:$n,stroke:tn,strokeLinecap:mn,strokeWidth:Ht||Wt,style:mr}),_r?Qn():Mn())},Ie=Ce,ke={Line:E,Circle:Ie},$e=ye(6848),Ne=ye(30071);function nt(rt){return!rt||rt<0?0:rt>100?100:rt}function qe(rt){let{success:ct,successPercent:gt}=rt,St=gt;return ct&&"progress"in ct&&(St=ct.progress),ct&&"percent"in ct&&(St=ct.percent),St}const Je=rt=>{let{percent:ct,success:gt,successPercent:St}=rt;const Ct=nt(qe({success:gt,successPercent:St}));return[Ct,nt(nt(ct)-Ct)]},Ye=rt=>{let{success:ct={},strokeColor:gt}=rt;const{strokeColor:St}=ct;return[St||Ne.presetPrimaryColors.green,gt||null]},We=(rt,ct,gt)=>{var St,Ct,It,Wt;let Ht=-1,Xt=-1;if(ct==="step"){const on=gt.steps,qt=gt.strokeWidth;typeof rt=="string"||typeof rt=="undefined"?(Ht=rt==="small"?2:14,Xt=qt!=null?qt:8):typeof rt=="number"?[Ht,Xt]=[rt,rt]:[Ht=14,Xt=8]=rt,Ht*=on}else if(ct==="line"){const on=gt==null?void 0:gt.strokeWidth;typeof rt=="string"||typeof rt=="undefined"?Xt=on||(rt==="small"?6:8):typeof rt=="number"?[Ht,Xt]=[rt,rt]:[Ht=-1,Xt=8]=rt}else(ct==="circle"||ct==="dashboard")&&(typeof rt=="string"||typeof rt=="undefined"?[Ht,Xt]=rt==="small"?[60,60]:[120,120]:typeof rt=="number"?[Ht,Xt]=[rt,rt]:(Ht=(Ct=(St=rt[0])!==null&&St!==void 0?St:rt[1])!==null&&Ct!==void 0?Ct:120,Xt=(Wt=(It=rt[0])!==null&&It!==void 0?It:rt[1])!==null&&Wt!==void 0?Wt:120));return[Ht,Xt]},Fe=3,Ue=rt=>Fe/rt*100;var Xe=rt=>{const{prefixCls:ct,trailColor:gt=null,strokeLinecap:St="round",gapPosition:Ct,gapDegree:It,width:Wt=120,type:Ht,children:Xt,success:on,size:qt=Wt}=rt,[tn,wn]=We(qt,"circle");let{strokeWidth:En}=rt;En===void 0&&(En=Math.max(Ue(tn),6));const en={width:tn,height:wn,fontSize:tn*.15+6},Tn=we.useMemo(()=>{if(It||It===0)return It;if(Ht==="dashboard")return 75},[It,Ht]),An=Ct||Ht==="dashboard"&&"bottom"||void 0,_n=Object.prototype.toString.call(rt.strokeColor)==="[object Object]",$n=Ye({success:on,strokeColor:rt.strokeColor}),hr=ne()(`${ct}-inner`,{[`${ct}-circle-gradient`]:_n}),nr=we.createElement(Ie,{percent:Je(rt),strokeWidth:En,trailWidth:En,strokeColor:$n,strokeLinecap:St,trailColor:gt,prefixCls:ct,gapDegree:Tn,gapPosition:An});return we.createElement("div",{className:hr,style:en},tn<=20?we.createElement($e.Z,{title:Xt},we.createElement("span",null,nr)):we.createElement(we.Fragment,null,nr,Xt))},ut=function(rt,ct){var gt={};for(var St in rt)Object.prototype.hasOwnProperty.call(rt,St)&&ct.indexOf(St)<0&&(gt[St]=rt[St]);if(rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ct=0,St=Object.getOwnPropertySymbols(rt);Ct<St.length;Ct++)ct.indexOf(St[Ct])<0&&Object.prototype.propertyIsEnumerable.call(rt,St[Ct])&&(gt[St[Ct]]=rt[St[Ct]]);return gt};const Ze=rt=>{let ct=[];return Object.keys(rt).forEach(gt=>{const St=parseFloat(gt.replace(/%/g,""));isNaN(St)||ct.push({key:St,value:rt[gt]})}),ct=ct.sort((gt,St)=>gt.key-St.key),ct.map(gt=>{let{key:St,value:Ct}=gt;return`${Ct} ${St}%`}).join(", ")},ze=(rt,ct)=>{const{from:gt=Ne.presetPrimaryColors.blue,to:St=Ne.presetPrimaryColors.blue,direction:Ct=ct==="rtl"?"to left":"to right"}=rt,It=ut(rt,["from","to","direction"]);if(Object.keys(It).length!==0){const Wt=Ze(It);return{backgroundImage:`linear-gradient(${Ct}, ${Wt})`}}return{backgroundImage:`linear-gradient(${Ct}, ${gt}, ${St})`}};var it=rt=>{const{prefixCls:ct,direction:gt,percent:St,size:Ct,strokeWidth:It,strokeColor:Wt,strokeLinecap:Ht="round",children:Xt,trailColor:on=null,success:qt}=rt,tn=Wt&&typeof Wt!="string"?ze(Wt,gt):{backgroundColor:Wt},wn=Ht==="square"||Ht==="butt"?0:void 0,En={backgroundColor:on||void 0,borderRadius:wn},en=Ct!=null?Ct:[-1,It||(Ct==="small"?6:8)],[Tn,An]=We(en,"line",{strokeWidth:It}),_n=Object.assign({width:`${nt(St)}%`,height:An,borderRadius:wn},tn),$n=qe(rt),hr={width:`${nt($n)}%`,height:An,borderRadius:wn,backgroundColor:qt==null?void 0:qt.strokeColor},nr={width:Tn<0?"100%":Tn,height:An};return we.createElement(we.Fragment,null,we.createElement("div",{className:`${ct}-outer`,style:nr},we.createElement("div",{className:`${ct}-inner`,style:En},we.createElement("div",{className:`${ct}-bg`,style:_n}),$n!==void 0?we.createElement("div",{className:`${ct}-success-bg`,style:hr}):null)),Xt)},Be=rt=>{const{size:ct,steps:gt,percent:St=0,strokeWidth:Ct=8,strokeColor:It,trailColor:Wt=null,prefixCls:Ht,children:Xt}=rt,on=Math.round(gt*(St/100)),qt=ct==="small"?2:14,tn=ct!=null?ct:[qt,Ct],[wn,En]=We(tn,"step",{steps:gt,strokeWidth:Ct}),en=wn/gt,Tn=new Array(gt);for(let An=0;An<gt;An++){const _n=Array.isArray(It)?It[An]:It;Tn[An]=we.createElement("div",{key:An,className:ne()(`${Ht}-steps-item`,{[`${Ht}-steps-item-active`]:An<=on-1}),style:{backgroundColor:An<=on-1?_n:Wt,width:en,height:En}})}return we.createElement("div",{className:`${Ht}-steps-outer`},Tn,Xt)},Qe=ye(36237),Ge=ye(17313),De=ye(83116),Le=ye(37613);const Oe=rt=>{const ct=rt?"100%":"-100%";return new Qe.Keyframes(`antProgress${rt?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${ct}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${ct}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},xe=rt=>{const{componentCls:ct,iconCls:gt}=rt;return{[ct]:Object.assign(Object.assign({},(0,Ge.Wf)(rt)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:rt.fontSize,marginInlineEnd:rt.marginXS,marginBottom:rt.marginXS},[`${ct}-outer`]:{display:"inline-block",width:"100%"},[`&${ct}-show-info`]:{[`${ct}-outer`]:{marginInlineEnd:`calc(-2em - ${rt.marginXS}px)`,paddingInlineEnd:`calc(2em + ${rt.paddingXS}px)`}},[`${ct}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:rt.remainingColor,borderRadius:rt.lineBorderRadius},[`${ct}-inner:not(${ct}-circle-gradient)`]:{[`${ct}-circle-path`]:{stroke:rt.defaultColor}},[`${ct}-success-bg, ${ct}-bg`]:{position:"relative",backgroundColor:rt.defaultColor,borderRadius:rt.lineBorderRadius,transition:`all ${rt.motionDurationSlow} ${rt.motionEaseInOutCirc}`},[`${ct}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:rt.colorSuccess},[`${ct}-text`]:{display:"inline-block",width:"2em",marginInlineStart:rt.marginXS,color:rt.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[gt]:{fontSize:rt.fontSize}},[`&${ct}-status-active`]:{[`${ct}-bg::before`]:{position:"absolute",inset:0,backgroundColor:rt.colorBgContainer,borderRadius:rt.lineBorderRadius,opacity:0,animationName:Oe(),animationDuration:rt.progressActiveMotionDuration,animationTimingFunction:rt.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${ct}-rtl${ct}-status-active`]:{[`${ct}-bg::before`]:{animationName:Oe(!0)}},[`&${ct}-status-exception`]:{[`${ct}-bg`]:{backgroundColor:rt.colorError},[`${ct}-text`]:{color:rt.colorError}},[`&${ct}-status-exception ${ct}-inner:not(${ct}-circle-gradient)`]:{[`${ct}-circle-path`]:{stroke:rt.colorError}},[`&${ct}-status-success`]:{[`${ct}-bg`]:{backgroundColor:rt.colorSuccess},[`${ct}-text`]:{color:rt.colorSuccess}},[`&${ct}-status-success ${ct}-inner:not(${ct}-circle-gradient)`]:{[`${ct}-circle-path`]:{stroke:rt.colorSuccess}}})}},Ae=rt=>{const{componentCls:ct,iconCls:gt}=rt;return{[ct]:{[`${ct}-circle-trail`]:{stroke:rt.remainingColor},[`&${ct}-circle ${ct}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${ct}-circle ${ct}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:rt.circleTextColor,fontSize:rt.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[gt]:{fontSize:`${rt.fontSize/rt.fontSizeSM}em`}},[`${ct}-circle&-status-exception`]:{[`${ct}-text`]:{color:rt.colorError}},[`${ct}-circle&-status-success`]:{[`${ct}-text`]:{color:rt.colorSuccess}}},[`${ct}-inline-circle`]:{lineHeight:1,[`${ct}-inner`]:{verticalAlign:"bottom"}}}},Ke=rt=>{const{componentCls:ct}=rt;return{[ct]:{[`${ct}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:rt.progressStepMinWidth,marginInlineEnd:rt.progressStepMarginInlineEnd,backgroundColor:rt.remainingColor,transition:`all ${rt.motionDurationSlow}`,"&-active":{backgroundColor:rt.defaultColor}}}}}},tt=rt=>{const{componentCls:ct,iconCls:gt}=rt;return{[ct]:{[`${ct}-small&-line, ${ct}-small&-line ${ct}-text ${gt}`]:{fontSize:rt.fontSizeSM}}}};var He=(0,De.Z)("Progress",rt=>{const ct=rt.marginXXS/2,gt=(0,Le.TS)(rt,{progressStepMarginInlineEnd:ct,progressStepMinWidth:ct,progressActiveMotionDuration:"2.4s"});return[xe(gt),Ae(gt),Ke(gt),tt(gt)]},rt=>({circleTextColor:rt.colorText,defaultColor:rt.colorInfo,remainingColor:rt.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),ot=function(rt,ct){var gt={};for(var St in rt)Object.prototype.hasOwnProperty.call(rt,St)&&ct.indexOf(St)<0&&(gt[St]=rt[St]);if(rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ct=0,St=Object.getOwnPropertySymbols(rt);Ct<St.length;Ct++)ct.indexOf(St[Ct])<0&&Object.prototype.propertyIsEnumerable.call(rt,St[Ct])&&(gt[St[Ct]]=rt[St[Ct]]);return gt};const mt=null,lt=["normal","exception","active","success"];var st=we.forwardRef((rt,ct)=>{const{prefixCls:gt,className:St,rootClassName:Ct,steps:It,strokeColor:Wt,percent:Ht=0,size:Xt="default",showInfo:on=!0,type:qt="line",status:tn,format:wn,style:En}=rt,en=ot(rt,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),Tn=we.useMemo(()=>{var Rt,xt;const Zt=qe(rt);return parseInt(Zt!==void 0?(Rt=Zt!=null?Zt:0)===null||Rt===void 0?void 0:Rt.toString():(xt=Ht!=null?Ht:0)===null||xt===void 0?void 0:xt.toString(),10)},[Ht,rt.success,rt.successPercent]),An=we.useMemo(()=>!lt.includes(tn)&&Tn>=100?"success":tn||"normal",[tn,Tn]),{getPrefixCls:_n,direction:$n,progress:hr}=we.useContext(ce.E_),nr=_n("progress",gt),[yr,Nr]=He(nr),tr=we.useMemo(()=>{if(!on)return null;const Rt=qe(rt);let xt;const Zt=wn||(mn=>`${mn}%`),yn=qt==="line";return wn||An!=="exception"&&An!=="success"?xt=Zt(nt(Ht),nt(Rt)):An==="exception"?xt=yn?we.createElement(pe.Z,null):we.createElement(de.Z,null):An==="success"&&(xt=yn?we.createElement(Ee.Z,null):we.createElement(x.Z,null)),we.createElement("span",{className:`${nr}-text`,title:typeof xt=="string"?xt:void 0},xt)},[on,Ht,Tn,An,qt,nr,wn]),Cr=Array.isArray(Wt)?Wt[0]:Wt,rr=typeof Wt=="string"||Array.isArray(Wt)?Wt:void 0;let _r;qt==="line"?_r=It?we.createElement(Be,Object.assign({},rt,{strokeColor:rr,prefixCls:nr,steps:It}),tr):we.createElement(it,Object.assign({},rt,{strokeColor:Cr,prefixCls:nr,direction:$n}),tr):(qt==="circle"||qt==="dashboard")&&(_r=we.createElement(Xe,Object.assign({},rt,{strokeColor:Cr,prefixCls:nr,progressStatus:An}),tr));const Et=ne()(nr,`${nr}-status-${An}`,`${nr}-${qt==="dashboard"&&"circle"||It&&"steps"||qt}`,{[`${nr}-inline-circle`]:qt==="circle"&&We(Xt,"circle")[0]<=20,[`${nr}-show-info`]:on,[`${nr}-${Xt}`]:typeof Xt=="string",[`${nr}-rtl`]:$n==="rtl"},hr==null?void 0:hr.className,St,Ct,Nr);return yr(we.createElement("div",Object.assign({ref:ct,style:Object.assign(Object.assign({},hr==null?void 0:hr.style),En),className:Et,role:"progressbar","aria-valuenow":Tn},(0,se.Z)(en,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),_r))}),vt=st},61621:function(_t,ft,ye){"use strict";ye.d(ft,{Z:function(){return Qe}});var we=ye(92310),Ee=ye.n(we),x=ye(59301),pe=ye(36355),de=ye(2738),ne=Ge=>{const{prefixCls:De,className:Le,style:Oe,size:xe,shape:Ae}=Ge,Ke=Ee()({[`${De}-lg`]:xe==="large",[`${De}-sm`]:xe==="small"}),tt=Ee()({[`${De}-circle`]:Ae==="circle",[`${De}-square`]:Ae==="square",[`${De}-round`]:Ae==="round"}),He=x.useMemo(()=>typeof xe=="number"?{width:xe,height:xe,lineHeight:`${xe}px`}:{},[xe]);return x.createElement("span",{className:Ee()(De,Ke,tt,Le),style:Object.assign(Object.assign({},He),Oe)})},se=ye(36237),ce=ye(83116),ue=ye(37613);const ie=new se.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),oe=Ge=>({height:Ge,lineHeight:`${Ge}px`}),re=Ge=>Object.assign({width:Ge},oe(Ge)),z=Ge=>({background:Ge.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:ie,animationDuration:Ge.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),a=Ge=>Object.assign({width:Ge*5,minWidth:Ge*5},oe(Ge)),y=Ge=>{const{skeletonAvatarCls:De,gradientFromColor:Le,controlHeight:Oe,controlHeightLG:xe,controlHeightSM:Ae}=Ge;return{[`${De}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Le},re(Oe)),[`${De}${De}-circle`]:{borderRadius:"50%"},[`${De}${De}-lg`]:Object.assign({},re(xe)),[`${De}${De}-sm`]:Object.assign({},re(Ae))}},E=Ge=>{const{controlHeight:De,borderRadiusSM:Le,skeletonInputCls:Oe,controlHeightLG:xe,controlHeightSM:Ae,gradientFromColor:Ke}=Ge;return{[`${Oe}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Ke,borderRadius:Le},a(De)),[`${Oe}-lg`]:Object.assign({},a(xe)),[`${Oe}-sm`]:Object.assign({},a(Ae))}},b=Ge=>Object.assign({width:Ge},oe(Ge)),ee=Ge=>{const{skeletonImageCls:De,imageSizeBase:Le,gradientFromColor:Oe,borderRadiusSM:xe}=Ge;return{[`${De}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:Oe,borderRadius:xe},b(Le*2)),{[`${De}-path`]:{fill:"#bfbfbf"},[`${De}-svg`]:Object.assign(Object.assign({},b(Le)),{maxWidth:Le*4,maxHeight:Le*4}),[`${De}-svg${De}-svg-circle`]:{borderRadius:"50%"}}),[`${De}${De}-circle`]:{borderRadius:"50%"}}},te=(Ge,De,Le)=>{const{skeletonButtonCls:Oe}=Ge;return{[`${Le}${Oe}-circle`]:{width:De,minWidth:De,borderRadius:"50%"},[`${Le}${Oe}-round`]:{borderRadius:De}}},le=Ge=>Object.assign({width:Ge*2,minWidth:Ge*2},oe(Ge)),fe=Ge=>{const{borderRadiusSM:De,skeletonButtonCls:Le,controlHeight:Oe,controlHeightLG:xe,controlHeightSM:Ae,gradientFromColor:Ke}=Ge;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${Le}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Ke,borderRadius:De,width:Oe*2,minWidth:Oe*2},le(Oe))},te(Ge,Oe,Le)),{[`${Le}-lg`]:Object.assign({},le(xe))}),te(Ge,xe,`${Le}-lg`)),{[`${Le}-sm`]:Object.assign({},le(Ae))}),te(Ge,Ae,`${Le}-sm`))},he=Ge=>{const{componentCls:De,skeletonAvatarCls:Le,skeletonTitleCls:Oe,skeletonParagraphCls:xe,skeletonButtonCls:Ae,skeletonInputCls:Ke,skeletonImageCls:tt,controlHeight:He,controlHeightLG:ot,controlHeightSM:mt,gradientFromColor:lt,padding:pt,marginSM:st,borderRadius:vt,titleHeight:rt,blockRadius:ct,paragraphLiHeight:gt,controlHeightXS:St,paragraphMarginTop:Ct}=Ge;return{[`${De}`]:{display:"table",width:"100%",[`${De}-header`]:{display:"table-cell",paddingInlineEnd:pt,verticalAlign:"top",[`${Le}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:lt},re(He)),[`${Le}-circle`]:{borderRadius:"50%"},[`${Le}-lg`]:Object.assign({},re(ot)),[`${Le}-sm`]:Object.assign({},re(mt))},[`${De}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${Oe}`]:{width:"100%",height:rt,background:lt,borderRadius:ct,[`+ ${xe}`]:{marginBlockStart:mt}},[`${xe}`]:{padding:0,"> li":{width:"100%",height:gt,listStyle:"none",background:lt,borderRadius:ct,"+ li":{marginBlockStart:St}}},[`${xe}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${De}-content`]:{[`${Oe}, ${xe} > li`]:{borderRadius:vt}}},[`${De}-with-avatar ${De}-content`]:{[`${Oe}`]:{marginBlockStart:st,[`+ ${xe}`]:{marginBlockStart:Ct}}},[`${De}${De}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},fe(Ge)),y(Ge)),E(Ge)),ee(Ge)),[`${De}${De}-block`]:{width:"100%",[`${Ae}`]:{width:"100%"},[`${Ke}`]:{width:"100%"}},[`${De}${De}-active`]:{[`
|
|
|
${Oe},
|
|
|
${xe} > li,
|
|
|
${Le},
|
|
|
${Ae},
|
|
|
${Ke},
|
|
|
${tt}
|
|
|
`]:Object.assign({},z(Ge))}}};var me=(0,ce.Z)("Skeleton",Ge=>{const{componentCls:De}=Ge,Le=(0,ue.TS)(Ge,{skeletonAvatarCls:`${De}-avatar`,skeletonTitleCls:`${De}-title`,skeletonParagraphCls:`${De}-paragraph`,skeletonButtonCls:`${De}-button`,skeletonInputCls:`${De}-input`,skeletonImageCls:`${De}-image`,imageSizeBase:Ge.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${Ge.gradientFromColor} 25%, ${Ge.gradientToColor} 37%, ${Ge.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[he(Le)]},Ge=>{const{colorFillContent:De,colorFill:Le}=Ge,Oe=De,xe=Le;return{color:Oe,colorGradientEnd:xe,gradientFromColor:Oe,gradientToColor:xe,titleHeight:Ge.controlHeight/2,blockRadius:Ge.borderRadiusSM,paragraphMarginTop:Ge.marginLG+Ge.marginXXS,paragraphLiHeight:Ge.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),Se=Ge=>{const{prefixCls:De,className:Le,rootClassName:Oe,active:xe,shape:Ae="circle",size:Ke="default"}=Ge,{getPrefixCls:tt}=x.useContext(pe.E_),He=tt("skeleton",De),[ot,mt]=me(He),lt=(0,de.Z)(Ge,["prefixCls","className"]),pt=Ee()(He,`${He}-element`,{[`${He}-active`]:xe},Le,Oe,mt);return ot(x.createElement("div",{className:pt},x.createElement(ne,Object.assign({prefixCls:`${He}-avatar`,shape:Ae,size:Ke},lt))))},be=Ge=>{const{prefixCls:De,className:Le,rootClassName:Oe,active:xe,block:Ae=!1,size:Ke="default"}=Ge,{getPrefixCls:tt}=x.useContext(pe.E_),He=tt("skeleton",De),[ot,mt]=me(He),lt=(0,de.Z)(Ge,["prefixCls"]),pt=Ee()(He,`${He}-element`,{[`${He}-active`]:xe,[`${He}-block`]:Ae},Le,Oe,mt);return ot(x.createElement("div",{className:pt},x.createElement(ne,Object.assign({prefixCls:`${He}-button`,size:Ke},lt))))};const Pe="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 _e=Ge=>{const{prefixCls:De,className:Le,rootClassName:Oe,style:xe,active:Ae}=Ge,{getPrefixCls:Ke}=x.useContext(pe.E_),tt=Ke("skeleton",De),[He,ot]=me(tt),mt=Ee()(tt,`${tt}-element`,{[`${tt}-active`]:Ae},Le,Oe,ot);return He(x.createElement("div",{className:mt},x.createElement("div",{className:Ee()(`${tt}-image`,Le),style:xe},x.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${tt}-image-svg`},x.createElement("path",{d:Pe,className:`${tt}-image-path`})))))},Ce=Ge=>{const{prefixCls:De,className:Le,rootClassName:Oe,active:xe,block:Ae,size:Ke="default"}=Ge,{getPrefixCls:tt}=x.useContext(pe.E_),He=tt("skeleton",De),[ot,mt]=me(He),lt=(0,de.Z)(Ge,["prefixCls"]),pt=Ee()(He,`${He}-element`,{[`${He}-active`]:xe,[`${He}-block`]:Ae},Le,Oe,mt);return ot(x.createElement("div",{className:pt},x.createElement(ne,Object.assign({prefixCls:`${He}-input`,size:Ke},lt))))},Ie=ye(32855),ke={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"},$e=ke,Ne=ye(7657),nt=function(De,Le){return x.createElement(Ne.Z,(0,Ie.Z)({},De,{ref:Le,icon:$e}))},qe=x.forwardRef(nt),Je=qe,We=Ge=>{const{prefixCls:De,className:Le,rootClassName:Oe,style:xe,active:Ae,children:Ke}=Ge,{getPrefixCls:tt}=x.useContext(pe.E_),He=tt("skeleton",De),[ot,mt]=me(He),lt=Ee()(He,`${He}-element`,{[`${He}-active`]:Ae},mt,Le,Oe),pt=Ke!=null?Ke:x.createElement(Je,null);return ot(x.createElement("div",{className:lt},x.createElement("div",{className:Ee()(`${He}-image`,Le),style:xe},pt)))},Fe=ye(3300),at=Ge=>{const De=tt=>{const{width:He,rows:ot=2}=Ge;if(Array.isArray(He))return He[tt];if(ot-1===tt)return He},{prefixCls:Le,className:Oe,style:xe,rows:Ae}=Ge,Ke=(0,Fe.Z)(Array(Ae)).map((tt,He)=>x.createElement("li",{key:He,style:{width:De(He)}}));return x.createElement("ul",{className:Ee()(Le,Oe),style:xe},Ke)},ut=Ge=>{let{prefixCls:De,className:Le,width:Oe,style:xe}=Ge;return x.createElement("h3",{className:Ee()(De,Le),style:Object.assign({width:Oe},xe)})};function Ze(Ge){return Ge&&typeof Ge=="object"?Ge:{}}function ze(Ge,De){return Ge&&!De?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Re(Ge,De){return!Ge&&De?{width:"38%"}:Ge&&De?{width:"50%"}:{}}function it(Ge,De){const Le={};return(!Ge||!De)&&(Le.width="61%"),!Ge&&De?Le.rows=3:Le.rows=2,Le}const Me=Ge=>{const{prefixCls:De,loading:Le,className:Oe,rootClassName:xe,style:Ae,children:Ke,avatar:tt=!1,title:He=!0,paragraph:ot=!0,active:mt,round:lt}=Ge,{getPrefixCls:pt,direction:st,skeleton:vt}=x.useContext(pe.E_),rt=pt("skeleton",De),[ct,gt]=me(rt);if(Le||!("loading"in Ge)){const St=!!tt,Ct=!!He,It=!!ot;let Wt;if(St){const on=Object.assign(Object.assign({prefixCls:`${rt}-avatar`},ze(Ct,It)),Ze(tt));Wt=x.createElement("div",{className:`${rt}-header`},x.createElement(ne,Object.assign({},on)))}let Ht;if(Ct||It){let on;if(Ct){const tn=Object.assign(Object.assign({prefixCls:`${rt}-title`},Re(St,It)),Ze(He));on=x.createElement(ut,Object.assign({},tn))}let qt;if(It){const tn=Object.assign(Object.assign({prefixCls:`${rt}-paragraph`},it(St,Ct)),Ze(ot));qt=x.createElement(at,Object.assign({},tn))}Ht=x.createElement("div",{className:`${rt}-content`},on,qt)}const Xt=Ee()(rt,{[`${rt}-with-avatar`]:St,[`${rt}-active`]:mt,[`${rt}-rtl`]:st==="rtl",[`${rt}-round`]:lt},vt==null?void 0:vt.className,Oe,xe,gt);return ct(x.createElement("div",{className:Xt,style:Object.assign(Object.assign({},vt==null?void 0:vt.style),Ae)},Wt,Ht))}return typeof Ke!="undefined"?Ke:null};Me.Button=be,Me.Avatar=Se,Me.Input=Ce,Me.Image=_e,Me.Node=We;var Be=Me,Qe=Be},31797:function(_t,ft,ye){"use strict";ye.d(ft,{default:function(){return me}});var we=ye(59301),Ee=ye(56762),x=ye(92343),pe=ye(92310),de=ye.n(pe),ae=ye(36355),ne=ye(61621),ce=ge=>{const{value:Se,formatter:ve,precision:be,decimalSeparator:Pe,groupSeparator:Te="",prefixCls:_e}=ge;let je;if(typeof ve=="function")je=ve(Se);else{const Ce=String(Se),Ie=Ce.match(/^(-?)(\d*)(\.(\d+))?$/);if(!Ie||Ce==="-")je=Ce;else{const ke=Ie[1];let $e=Ie[2]||"0",Ne=Ie[4]||"";$e=$e.replace(/\B(?=(\d{3})+(?!\d))/g,Te),typeof be=="number"&&(Ne=Ne.padEnd(be,"0").slice(0,be>0?be:0)),Ne&&(Ne=`${Pe}${Ne}`),je=[we.createElement("span",{key:"int",className:`${_e}-content-value-int`},ke,$e),Ne&&we.createElement("span",{key:"decimal",className:`${_e}-content-value-decimal`},Ne)]}}return we.createElement("span",{className:`${_e}-content-value`},je)},ue=ye(17313),ie=ye(83116),oe=ye(37613);const re=ge=>{const{componentCls:Se,marginXXS:ve,padding:be,colorTextDescription:Pe,titleFontSize:Te,colorTextHeading:_e,contentFontSize:je,fontFamily:Ce}=ge;return{[`${Se}`]:Object.assign(Object.assign({},(0,ue.Wf)(ge)),{[`${Se}-title`]:{marginBottom:ve,color:Pe,fontSize:Te},[`${Se}-skeleton`]:{paddingTop:be},[`${Se}-content`]:{color:_e,fontSize:je,fontFamily:Ce,[`${Se}-content-value`]:{display:"inline-block",direction:"ltr"},[`${Se}-content-prefix, ${Se}-content-suffix`]:{display:"inline-block"},[`${Se}-content-prefix`]:{marginInlineEnd:ve},[`${Se}-content-suffix`]:{marginInlineStart:ve}}})}};var z=(0,ie.Z)("Statistic",ge=>{const Se=(0,oe.TS)(ge,{});return[re(Se)]},ge=>{const{fontSizeHeading3:Se,fontSize:ve}=ge;return{titleFontSize:ve,contentFontSize:Se}}),y=ge=>{const{prefixCls:Se,className:ve,rootClassName:be,style:Pe,valueStyle:Te,value:_e=0,title:je,valueRender:Ce,prefix:Ie,suffix:ke,loading:$e=!1,onMouseEnter:Ne,onMouseLeave:nt,decimalSeparator:qe=".",groupSeparator:Je=","}=ge,{getPrefixCls:Ye,direction:We,statistic:Fe}=we.useContext(ae.E_),Ue=Ye("statistic",Se),[at,Xe]=z(Ue),ut=we.createElement(ce,Object.assign({decimalSeparator:qe,groupSeparator:Je,prefixCls:Ue},ge,{value:_e})),Ze=de()(Ue,{[`${Ue}-rtl`]:We==="rtl"},Fe==null?void 0:Fe.className,ve,be,Xe);return at(we.createElement("div",{className:Ze,style:Object.assign(Object.assign({},Fe==null?void 0:Fe.style),Pe),onMouseEnter:Ne,onMouseLeave:nt},je&&we.createElement("div",{className:`${Ue}-title`},je),we.createElement(ne.Z,{paragraph:!1,loading:$e,className:`${Ue}-skeleton`},we.createElement("div",{style:Te,className:`${Ue}-content`},Ie&&we.createElement("span",{className:`${Ue}-content-prefix`},Ie),Ce?Ce(ut):ut,ke&&we.createElement("span",{className:`${Ue}-content-suffix`},ke)))))};const E=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function b(ge,Se){let ve=ge;const be=/\[[^\]]*]/g,Pe=(Se.match(be)||[]).map(Ce=>Ce.slice(1,-1)),Te=Se.replace(be,"[]"),_e=E.reduce((Ce,Ie)=>{let[ke,$e]=Ie;if(Ce.includes(ke)){const Ne=Math.floor(ve/$e);return ve-=Ne*$e,Ce.replace(new RegExp(`${ke}+`,"g"),nt=>{const qe=nt.length;return Ne.toString().padStart(qe,"0")})}return Ce},Te);let je=0;return _e.replace(be,()=>{const Ce=Pe[je];return je+=1,Ce})}function ee(ge,Se){const{format:ve=""}=Se,be=new Date(ge).getTime(),Pe=Date.now(),Te=Math.max(be-Pe,0);return b(Te,ve)}const te=1e3/30;function le(ge){return new Date(ge).getTime()}const fe=ge=>{const{value:Se,format:ve="HH:mm:ss",onChange:be,onFinish:Pe}=ge,Te=(0,Ee.Z)(),_e=we.useRef(null),je=()=>{Pe==null||Pe(),_e.current&&(clearInterval(_e.current),_e.current=null)},Ce=()=>{const $e=le(Se);$e>=Date.now()&&(_e.current=setInterval(()=>{Te(),be==null||be($e-Date.now()),$e<Date.now()&&je()},te))};we.useEffect(()=>(Ce(),()=>{_e.current&&(clearInterval(_e.current),_e.current=null)}),[Se]);const Ie=($e,Ne)=>ee($e,Object.assign(Object.assign({},Ne),{format:ve})),ke=$e=>(0,x.Tm)($e,{title:void 0});return we.createElement(y,Object.assign({},ge,{valueRender:ke,formatter:Ie}))};var he=we.memo(fe);y.Countdown=he;var me=y},15969:function(_t,ft,ye){"use strict";ye.d(ft,{N:function(){return we}});const we=Ee=>({color:Ee.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${Ee.motionDurationSlow}`,"&:focus, &:hover":{color:Ee.colorLinkHover},"&:active":{color:Ee.colorLinkActive}})},1710:function(_t,ft,ye){"use strict";ye.d(ft,{default:function(){return Es}});var we={},Ee="rc-table-internal-hook",x=ye(11913),pe=ye(6089),de=ye(34280),ae=ye(13697),ne=ye(59301),se=ye(4676);function ce(Ve){var et=ne.createContext(void 0),dt=function(Pt){var wt=Pt.value,Tt=Pt.children,At=ne.useRef(wt);At.current=wt;var Ot=ne.useState(function(){return{getValue:function(){return At.current},listeners:new Set}}),kt=(0,x.Z)(Ot,1),Gt=kt[0];return(0,de.Z)(function(){(0,se.unstable_batchedUpdates)(function(){Gt.listeners.forEach(function(Nt){Nt(wt)})})},[wt]),ne.createElement(et.Provider,{value:Gt},Tt)};return{Context:et,Provider:dt,defaultValue:Ve}}function ue(Ve,et){var dt=(0,pe.Z)(typeof et=="function"?et:function(Nt){if(et===void 0)return Nt;if(!Array.isArray(et))return Nt[et];var Qt={};return et.forEach(function(Vt){Qt[Vt]=Nt[Vt]}),Qt}),ht=ne.useContext(Ve==null?void 0:Ve.Context),Pt=ht||{},wt=Pt.listeners,Tt=Pt.getValue,At=ne.useRef();At.current=dt(ht?Tt():Ve==null?void 0:Ve.defaultValue);var Ot=ne.useState({}),kt=(0,x.Z)(Ot,2),Gt=kt[1];return(0,de.Z)(function(){if(!ht)return;function Nt(Qt){var Vt=dt(Qt);(0,ae.Z)(At.current,Vt,!0)||Gt({})}return wt.add(Nt),function(){wt.delete(Nt)}},[ht]),At.current}var ie=ye(32855),oe=ye(8654);function re(){var Ve=ne.createContext(null);function et(){return ne.useContext(Ve)}function dt(Pt,wt){var Tt=(0,oe.Yr)(Pt),At=function(kt,Gt){var Nt=Tt?{ref:Gt}:{},Qt=ne.useRef(0),Vt=ne.useRef(kt),Jt=et();return Jt!==null?ne.createElement(Pt,(0,ie.Z)({},kt,Nt)):((!wt||wt(Vt.current,kt))&&(Qt.current+=1),Vt.current=kt,ne.createElement(Ve.Provider,{value:Qt.current},ne.createElement(Pt,(0,ie.Z)({},kt,Nt))))};return Tt?ne.forwardRef(At):At}function ht(Pt,wt){var Tt=(0,oe.Yr)(Pt),At=function(kt,Gt){var Nt=Tt?{ref:Gt}:{};return et(),ne.createElement(Pt,(0,ie.Z)({},kt,Nt))};return Tt?ne.memo(ne.forwardRef(At),wt):ne.memo(At,wt)}return{makeImmutable:dt,responseImmutable:ht,useImmutableMark:et}}var z=re(),a=z.makeImmutable,y=z.responseImmutable,E=z.useImmutableMark,b=re(),ee=b.makeImmutable,te=b.responseImmutable,le=b.useImmutableMark,fe=ce(),he=fe;function me(Ve,et){var dt=ne.useRef(0);dt.current+=1;var ht=ne.useRef(Ve),Pt=[];Object.keys(Ve||{}).map(function(Tt){var At;(Ve==null?void 0:Ve[Tt])!==((At=ht.current)===null||At===void 0?void 0:At[Tt])&&Pt.push(Tt)}),ht.current=Ve;var wt=ne.useRef([]);return Pt.length&&(wt.current=Pt),ne.useDebugValue(dt.current),ne.useDebugValue(wt.current.join(", ")),et&&console.log("".concat(et,":"),dt.current,wt.current),dt.current}var ge=null,Se=ne.memo(function(){var Ve=me();return ne.createElement("h1",null,"Render Times: ",Ve)});Se.displayName="RenderBlock";var ve=ye(34666),be=ye(27247),Pe=ye(74430),Te=ye(92310),_e=ye.n(Te),je=ye(80547),Ce=ye(97938),Ie=ye(48736),ke=ne.createContext({renderWithProps:!1}),$e=ke,Ne="RC_TABLE_KEY";function nt(Ve){return Ve==null?[]:Array.isArray(Ve)?Ve:[Ve]}function qe(Ve){var et=[],dt={};return Ve.forEach(function(ht){for(var Pt=ht||{},wt=Pt.key,Tt=Pt.dataIndex,At=wt||nt(Tt).join("-")||Ne;dt[At];)At="".concat(At,"_next");dt[At]=!0,et.push(At)}),et}function Je(Ve){return Ve!=null}function Ye(Ve){return Ve&&(0,ve.Z)(Ve)==="object"&&!Array.isArray(Ve)&&!ne.isValidElement(Ve)}function We(Ve,et,dt,ht,Pt,wt){var Tt=ne.useContext($e),At=le(),Ot=(0,je.Z)(function(){if(Je(ht))return[ht];var kt=et==null||et===""?[]:Array.isArray(et)?et:[et],Gt=(0,Ce.Z)(Ve,kt),Nt=Gt,Qt=void 0;if(Pt){var Vt=Pt(Gt,Ve,dt);Ye(Vt)?(Nt=Vt.children,Qt=Vt.props,Tt.renderWithProps=!0):Nt=Vt}return[Nt,Qt]},[At,Ve,ht,et,Pt,dt],function(kt,Gt){if(wt){var Nt=(0,x.Z)(kt,2),Qt=Nt[1],Vt=(0,x.Z)(Gt,2),Jt=Vt[1];return wt(Jt,Qt)}return Tt.renderWithProps?!0:!(0,ae.Z)(kt,Gt,!0)});return Ot}function Fe(Ve,et,dt,ht){var Pt=Ve+et-1;return Ve<=ht&&Pt>=dt}function Ue(Ve,et){return ue(he,function(dt){var ht=Fe(Ve,et||1,dt.hoverStartRow,dt.hoverEndRow);return[ht,dt.onHover]})}var at=function(et){var dt=et.ellipsis,ht=et.rowType,Pt=et.children,wt,Tt=dt===!0?{showTitle:!0}:dt;return Tt&&(Tt.showTitle||ht==="header")&&(typeof Pt=="string"||typeof Pt=="number"?wt=Pt.toString():ne.isValidElement(Pt)&&typeof Pt.props.children=="string"&&(wt=Pt.props.children)),wt};function Xe(Ve){var et,dt,ht,Pt,wt,Tt,At,Ot,kt=Ve.component,Gt=Ve.children,Nt=Ve.ellipsis,Qt=Ve.scope,Vt=Ve.prefixCls,Jt=Ve.className,un=Ve.align,sn=Ve.record,dn=Ve.render,ln=Ve.dataIndex,vn=Ve.renderIndex,Fn=Ve.shouldCellUpdate,Un=Ve.index,On=Ve.rowType,er=Ve.colSpan,cr=Ve.rowSpan,bn=Ve.fixLeft,Rn=Ve.fixRight,Pn=Ve.firstFixLeft,pn=Ve.lastFixLeft,xn=Ve.firstFixRight,Jn=Ve.lastFixRight,vr=Ve.appendNode,sr=Ve.additionalProps,Gn=sr===void 0?{}:sr,Sr=Ve.isSticky,Pr="".concat(Vt,"-cell"),Xr=ue(he,["supportSticky","allColumnsFixedLeft"]),jr=Xr.supportSticky,vo=Xr.allColumnsFixedLeft,yo=We(sn,ln,vn,Gt,dn,Fn),ur=(0,x.Z)(yo,2),wo=ur[0],Mr=ur[1],oo={},to=typeof bn=="number"&&jr,Wo=typeof Rn=="number"&&jr;to&&(oo.position="sticky",oo.left=bn),Wo&&(oo.position="sticky",oo.right=Rn);var Xn=(et=(dt=(ht=Mr==null?void 0:Mr.colSpan)!==null&&ht!==void 0?ht:Gn.colSpan)!==null&&dt!==void 0?dt:er)!==null&&et!==void 0?et:1,Vn=(Pt=(wt=(Tt=Mr==null?void 0:Mr.rowSpan)!==null&&Tt!==void 0?Tt:Gn.rowSpan)!==null&&wt!==void 0?wt:cr)!==null&&Pt!==void 0?Pt:1,Wn=Ue(Un,Vn),kn=(0,x.Z)(Wn,2),kr=kn[0],Nn=kn[1],ar=function(_o){var $o;sn&&Nn(Un,Un+Vn-1),Gn==null||($o=Gn.onMouseEnter)===null||$o===void 0||$o.call(Gn,_o)},Or=function(_o){var $o;sn&&Nn(-1,-1),Gn==null||($o=Gn.onMouseLeave)===null||$o===void 0||$o.call(Gn,_o)};if(Xn===0||Vn===0)return null;var xr=(At=Gn.title)!==null&&At!==void 0?At:at({rowType:On,ellipsis:Nt,children:wo}),ko=_e()(Pr,Jt,(Ot={},(0,Pe.Z)(Ot,"".concat(Pr,"-fix-left"),to&&jr),(0,Pe.Z)(Ot,"".concat(Pr,"-fix-left-first"),Pn&&jr),(0,Pe.Z)(Ot,"".concat(Pr,"-fix-left-last"),pn&&jr),(0,Pe.Z)(Ot,"".concat(Pr,"-fix-left-all"),pn&&vo&&jr),(0,Pe.Z)(Ot,"".concat(Pr,"-fix-right"),Wo&&jr),(0,Pe.Z)(Ot,"".concat(Pr,"-fix-right-first"),xn&&jr),(0,Pe.Z)(Ot,"".concat(Pr,"-fix-right-last"),Jn&&jr),(0,Pe.Z)(Ot,"".concat(Pr,"-ellipsis"),Nt),(0,Pe.Z)(Ot,"".concat(Pr,"-with-append"),vr),(0,Pe.Z)(Ot,"".concat(Pr,"-fix-sticky"),(to||Wo)&&Sr&&jr),(0,Pe.Z)(Ot,"".concat(Pr,"-row-hover"),!Mr&&kr),Ot),Gn.className,Mr==null?void 0:Mr.className),Ro={};un&&(Ro.textAlign=un);var oi=(0,be.Z)((0,be.Z)((0,be.Z)((0,be.Z)({},oo),Gn.style),Ro),Mr==null?void 0:Mr.style),Co=wo;return(0,ve.Z)(Co)==="object"&&!Array.isArray(Co)&&!ne.isValidElement(Co)&&(Co=null),Nt&&(pn||xn)&&(Co=ne.createElement("span",{className:"".concat(Pr,"-content")},Co)),ne.createElement(kt,(0,ie.Z)({},Mr,Gn,{className:ko,style:oi,title:xr,scope:Qt,onMouseEnter:ar,onMouseLeave:Or,colSpan:Xn!==1?Xn:null,rowSpan:Vn!==1?Vn:null}),vr,Co)}var ut=ne.memo(Xe);function Ze(Ve,et,dt,ht,Pt,wt){var Tt=dt[Ve]||{},At=dt[et]||{},Ot,kt;Tt.fixed==="left"?Ot=ht.left[Pt==="rtl"?et:Ve]:At.fixed==="right"&&(kt=ht.right[Pt==="rtl"?Ve:et]);var Gt=!1,Nt=!1,Qt=!1,Vt=!1,Jt=dt[et+1],un=dt[Ve-1],sn=!(wt!=null&&wt.children);if(Pt==="rtl"){if(Ot!==void 0){var dn=un&&un.fixed==="left";Vt=!dn&&sn}else if(kt!==void 0){var ln=Jt&&Jt.fixed==="right";Qt=!ln&&sn}}else if(Ot!==void 0){var vn=Jt&&Jt.fixed==="left";Gt=!vn&&sn}else if(kt!==void 0){var Fn=un&&un.fixed==="right";Nt=!Fn&&sn}return{fixLeft:Ot,fixRight:kt,lastFixLeft:Gt,firstFixRight:Nt,lastFixRight:Qt,firstFixLeft:Vt,isSticky:ht.isSticky}}var ze=ne.createContext({}),Re=ze;function it(Ve){var et=Ve.className,dt=Ve.index,ht=Ve.children,Pt=Ve.colSpan,wt=Pt===void 0?1:Pt,Tt=Ve.rowSpan,At=Ve.align,Ot=ue(he,["prefixCls","direction"]),kt=Ot.prefixCls,Gt=Ot.direction,Nt=ne.useContext(Re),Qt=Nt.scrollColumnIndex,Vt=Nt.stickyOffsets,Jt=Nt.flattenColumns,un=Nt.columns,sn=dt+wt-1,dn=sn+1===Qt?wt+1:wt,ln=Ze(dt,dt+dn-1,Jt,Vt,Gt,un==null?void 0:un[dt]);return ne.createElement(ut,(0,ie.Z)({className:et,index:dt,component:"td",prefixCls:kt,record:null,dataIndex:null,align:At,colSpan:dn,rowSpan:Tt,render:function(){return ht}},ln))}var Me=ye(43079),Be=["children"];function Qe(Ve){var et=Ve.children,dt=(0,Me.Z)(Ve,Be);return ne.createElement("tr",dt,et)}function Ge(Ve){var et=Ve.children;return et}Ge.Row=Qe,Ge.Cell=it;var De=Ge;function Le(Ve){var et=Ve.children,dt=Ve.stickyOffsets,ht=Ve.flattenColumns,Pt=Ve.columns,wt=ue(he,"prefixCls"),Tt=ht.length-1,At=ht[Tt],Ot=ne.useMemo(function(){return{stickyOffsets:dt,flattenColumns:ht,scrollColumnIndex:At!=null&&At.scrollbar?Tt:null,columns:Pt}},[At,ht,Tt,dt,Pt]);return ne.createElement(Re.Provider,{value:Ot},ne.createElement("tfoot",{className:"".concat(wt,"-summary")},et))}var Oe=te(Le),xe=De,Ae=ye(70425),Ke=ye(29301),tt=ye(29194),He=ye(24514),ot=ye(75152),mt=ye(26112);function lt(Ve,et,dt,ht,Pt,wt,Tt){Ve.push({record:et,indent:dt,index:Tt});var At=wt(et),Ot=Pt==null?void 0:Pt.has(At);if(et&&Array.isArray(et[ht])&&Ot)for(var kt=0;kt<et[ht].length;kt+=1)lt(Ve,et[ht][kt],dt+1,ht,Pt,wt,kt)}function pt(Ve,et,dt,ht){var Pt=ne.useMemo(function(){if(dt!=null&&dt.size){for(var wt=[],Tt=0;Tt<(Ve==null?void 0:Ve.length);Tt+=1){var At=Ve[Tt];lt(wt,At,0,et,dt,ht,Tt)}return wt}return Ve==null?void 0:Ve.map(function(Ot,kt){return{record:Ot,indent:0,index:kt}})},[Ve,et,dt,ht]);return Pt}function st(Ve){var et=Ve.prefixCls,dt=Ve.children,ht=Ve.component,Pt=Ve.cellComponent,wt=Ve.className,Tt=Ve.expanded,At=Ve.colSpan,Ot=Ve.isEmpty,kt=ue(he,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),Gt=kt.scrollbarSize,Nt=kt.fixHeader,Qt=kt.fixColumn,Vt=kt.componentWidth,Jt=kt.horizonScroll,un=dt;return(Ot?Jt&&Vt:Qt)&&(un=ne.createElement("div",{style:{width:Vt-(Nt?Gt:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(et,"-expanded-row-fixed")},un)),ne.createElement(ht,{className:wt,style:{display:Tt?null:"none"}},ne.createElement(ut,{component:Pt,prefixCls:et,colSpan:At},un))}var vt=st;function rt(Ve,et,dt,ht){var Pt=ue(he,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),wt=Pt.flattenColumns,Tt=Pt.expandableType,At=Pt.expandedKeys,Ot=Pt.childrenColumnName,kt=Pt.onTriggerExpand,Gt=Pt.rowExpandable,Nt=Pt.onRow,Qt=Pt.expandRowByClick,Vt=Pt.rowClassName,Jt=Tt==="nest",un=Tt==="row"&&(!Gt||Gt(Ve)),sn=un||Jt,dn=At&&At.has(et),ln=Ot&&Ve&&Ve[Ot],vn=(0,Ae.useEvent)(kt),Fn=Nt==null?void 0:Nt(Ve,dt),Un=Fn==null?void 0:Fn.onClick,On=function(Rn){Qt&&sn&&kt(Ve,Rn);for(var Pn=arguments.length,pn=new Array(Pn>1?Pn-1:0),xn=1;xn<Pn;xn++)pn[xn-1]=arguments[xn];Un==null||Un.apply(void 0,[Rn].concat(pn))},er;typeof Vt=="string"?er=Vt:typeof Vt=="function"&&(er=Vt(Ve,dt,ht));var cr=qe(wt);return(0,be.Z)((0,be.Z)({},Pt),{},{columnsKey:cr,nestExpandable:Jt,expanded:dn,hasNestChildren:ln,record:Ve,onTriggerExpand:vn,rowSupportExpand:un,expandable:sn,rowProps:(0,be.Z)((0,be.Z)({},Fn),{},{className:_e()(er,Fn==null?void 0:Fn.className),onClick:On})})}function ct(Ve,et,dt,ht,Pt){var wt=Ve.record,Tt=Ve.prefixCls,At=Ve.columnsKey,Ot=Ve.fixedInfoList,kt=Ve.expandIconColumnIndex,Gt=Ve.nestExpandable,Nt=Ve.indentSize,Qt=Ve.expandIcon,Vt=Ve.expanded,Jt=Ve.hasNestChildren,un=Ve.onTriggerExpand,sn=At[dt],dn=Ot[dt],ln;dt===(kt||0)&&Gt&&(ln=ne.createElement(ne.Fragment,null,ne.createElement("span",{style:{paddingLeft:"".concat(Nt*ht,"px")},className:"".concat(Tt,"-row-indent indent-level-").concat(ht)}),Qt({prefixCls:Tt,expanded:Vt,expandable:Jt,record:wt,onExpand:un})));var vn;return et.onCell&&(vn=et.onCell(wt,Pt)),{key:sn,fixedInfo:dn,appendCellNode:ln,additionalCellProps:vn||{}}}function gt(Ve){var et=Ve.className,dt=Ve.style,ht=Ve.record,Pt=Ve.index,wt=Ve.renderIndex,Tt=Ve.rowKey,At=Ve.indent,Ot=At===void 0?0:At,kt=Ve.rowComponent,Gt=Ve.cellComponent,Nt=Ve.scopeCellComponent,Qt=rt(ht,Tt,Pt,Ot),Vt=Qt.prefixCls,Jt=Qt.flattenColumns,un=Qt.expandedRowClassName,sn=Qt.expandedRowRender,dn=Qt.rowProps,ln=Qt.expanded,vn=Qt.rowSupportExpand,Fn=ne.useState(!1),Un=(0,x.Z)(Fn,2),On=Un[0],er=Un[1];ne.useEffect(function(){ln&&er(!0)},[ln]);var cr=ne.createElement(kt,(0,ie.Z)({},dn,{"data-row-key":Tt,className:_e()(et,"".concat(Vt,"-row"),"".concat(Vt,"-row-level-").concat(Ot),dn==null?void 0:dn.className),style:(0,be.Z)((0,be.Z)({},dt),dn==null?void 0:dn.style)}),Jt.map(function(pn,xn){var Jn=pn.render,vr=pn.dataIndex,sr=pn.className,Gn=ct(Qt,pn,xn,Ot,Pt),Sr=Gn.key,Pr=Gn.fixedInfo,Xr=Gn.appendCellNode,jr=Gn.additionalCellProps;return ne.createElement(ut,(0,ie.Z)({className:sr,ellipsis:pn.ellipsis,align:pn.align,scope:pn.rowScope,component:pn.rowScope?Nt:Gt,prefixCls:Vt,key:Sr,record:ht,index:Pt,renderIndex:wt,dataIndex:vr,render:Jn,shouldCellUpdate:pn.shouldCellUpdate},Pr,{appendNode:Xr,additionalProps:jr}))})),bn;if(vn&&(On||ln)){var Rn=sn(ht,Pt,Ot+1,ln),Pn=un&&un(ht,Pt,Ot);bn=ne.createElement(vt,{expanded:ln,className:_e()("".concat(Vt,"-expanded-row"),"".concat(Vt,"-expanded-row-level-").concat(Ot+1),Pn),prefixCls:Vt,component:kt,cellComponent:Gt,colSpan:Jt.length,isEmpty:!1},Rn)}return ne.createElement(ne.Fragment,null,cr,bn)}gt.displayName="BodyRow";var St=te(gt);function Ct(Ve){var et=Ve.columnKey,dt=Ve.onColumnResize,ht=ne.useRef();return ne.useEffect(function(){ht.current&&dt(et,ht.current.offsetWidth)},[]),ne.createElement(Ke.Z,{data:et},ne.createElement("td",{ref:ht,style:{padding:0,border:0,height:0}},ne.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function It(Ve){var et=Ve.prefixCls,dt=Ve.columnsKey,ht=Ve.onColumnResize;return ne.createElement("tr",{"aria-hidden":"true",className:"".concat(et,"-measure-row"),style:{height:0,fontSize:0}},ne.createElement(Ke.Z.Collection,{onBatchResize:function(wt){wt.forEach(function(Tt){var At=Tt.data,Ot=Tt.size;ht(At,Ot.offsetWidth)})}},dt.map(function(Pt){return ne.createElement(Ct,{key:Pt,columnKey:Pt,onColumnResize:ht})})))}function Wt(Ve){var et=Ve.data,dt=Ve.measureColumnWidth,ht=ue(he,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),Pt=ht.prefixCls,wt=ht.getComponent,Tt=ht.onColumnResize,At=ht.flattenColumns,Ot=ht.getRowKey,kt=ht.expandedKeys,Gt=ht.childrenColumnName,Nt=ht.emptyNode,Qt=pt(et,Gt,kt,Ot),Vt=ne.useRef({renderWithProps:!1}),Jt=wt(["body","wrapper"],"tbody"),un=wt(["body","row"],"tr"),sn=wt(["body","cell"],"td"),dn=wt(["body","cell"],"th"),ln;et.length?ln=Qt.map(function(Fn,Un){var On=Fn.record,er=Fn.indent,cr=Fn.index,bn=Ot(On,Un);return ne.createElement(St,{key:bn,rowKey:bn,record:On,index:Un,renderIndex:cr,rowComponent:un,cellComponent:sn,scopeCellComponent:dn,getRowKey:Ot,indent:er})}):ln=ne.createElement(vt,{expanded:!0,className:"".concat(Pt,"-placeholder"),prefixCls:Pt,component:un,cellComponent:sn,colSpan:At.length,isEmpty:!0},Nt);var vn=qe(At);return ne.createElement($e.Provider,{value:Vt.current},ne.createElement(Jt,{className:"".concat(Pt,"-tbody")},dt&&ne.createElement(It,{prefixCls:Pt,columnsKey:vn,onColumnResize:Tt}),ln))}Wt.displayName="Body";var Ht=te(Wt),Xt=["expandable"],on="RC_TABLE_INTERNAL_COL_DEFINE";function qt(Ve){var et=Ve.expandable,dt=(0,Me.Z)(Ve,Xt),ht;return"expandable"in Ve?ht=(0,be.Z)((0,be.Z)({},dt),et):ht=dt,ht.showExpandColumn===!1&&(ht.expandIconColumnIndex=-1),ht}var tn=["columnType"];function wn(Ve){for(var et=Ve.colWidths,dt=Ve.columns,ht=Ve.columCount,Pt=[],wt=ht||dt.length,Tt=!1,At=wt-1;At>=0;At-=1){var Ot=et[At],kt=dt&&dt[At],Gt=kt&&kt[on];if(Ot||Gt||Tt){var Nt=Gt||{},Qt=Nt.columnType,Vt=(0,Me.Z)(Nt,tn);Pt.unshift(ne.createElement("col",(0,ie.Z)({key:At,style:{width:Ot}},Vt))),Tt=!0}}return ne.createElement("colgroup",null,Pt)}var En=wn,en=ye(3300),Tn=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function An(Ve,et){return(0,ne.useMemo)(function(){for(var dt=[],ht=0;ht<et;ht+=1){var Pt=Ve[ht];if(Pt!==void 0)dt[ht]=Pt;else return null}return dt},[Ve.join("_"),et])}var _n=ne.forwardRef(function(Ve,et){var dt=Ve.className,ht=Ve.noData,Pt=Ve.columns,wt=Ve.flattenColumns,Tt=Ve.colWidths,At=Ve.columCount,Ot=Ve.stickyOffsets,kt=Ve.direction,Gt=Ve.fixHeader,Nt=Ve.stickyTopOffset,Qt=Ve.stickyBottomOffset,Vt=Ve.stickyClassName,Jt=Ve.onScroll,un=Ve.maxContentScroll,sn=Ve.children,dn=(0,Me.Z)(Ve,Tn),ln=ue(he,["prefixCls","scrollbarSize","isSticky"]),vn=ln.prefixCls,Fn=ln.scrollbarSize,Un=ln.isSticky,On=Un&&!Gt?0:Fn,er=ne.useRef(null),cr=ne.useCallback(function(sr){(0,oe.mH)(et,sr),(0,oe.mH)(er,sr)},[]);ne.useEffect(function(){var sr;function Gn(Sr){var Pr=Sr,Xr=Pr.currentTarget,jr=Pr.deltaX;jr&&(Jt({currentTarget:Xr,scrollLeft:Xr.scrollLeft+jr}),Sr.preventDefault())}return(sr=er.current)===null||sr===void 0||sr.addEventListener("wheel",Gn),function(){var Sr;(Sr=er.current)===null||Sr===void 0||Sr.removeEventListener("wheel",Gn)}},[]);var bn=ne.useMemo(function(){return wt.every(function(sr){return sr.width})},[wt]),Rn=wt[wt.length-1],Pn={fixed:Rn?Rn.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(vn,"-cell-scrollbar")}}},pn=(0,ne.useMemo)(function(){return On?[].concat((0,en.Z)(Pt),[Pn]):Pt},[On,Pt]),xn=(0,ne.useMemo)(function(){return On?[].concat((0,en.Z)(wt),[Pn]):wt},[On,wt]),Jn=(0,ne.useMemo)(function(){var sr=Ot.right,Gn=Ot.left;return(0,be.Z)((0,be.Z)({},Ot),{},{left:kt==="rtl"?[].concat((0,en.Z)(Gn.map(function(Sr){return Sr+On})),[0]):Gn,right:kt==="rtl"?sr:[].concat((0,en.Z)(sr.map(function(Sr){return Sr+On})),[0]),isSticky:Un})},[On,Ot,Un]),vr=An(Tt,At);return ne.createElement("div",{style:(0,be.Z)({overflow:"hidden"},Un?{top:Nt,bottom:Qt}:{}),ref:cr,className:_e()(dt,(0,Pe.Z)({},Vt,!!Vt))},ne.createElement("table",{style:{tableLayout:"fixed",visibility:ht||vr?null:"hidden"}},(!ht||!un||bn)&&ne.createElement(En,{colWidths:vr?[].concat((0,en.Z)(vr),[On]):[],columCount:At+1,columns:xn}),sn((0,be.Z)((0,be.Z)({},dn),{},{stickyOffsets:Jn,columns:pn,flattenColumns:xn}))))});_n.displayName="FixedHolder";var $n=ne.memo(_n);function hr(Ve){var et=Ve.cells,dt=Ve.stickyOffsets,ht=Ve.flattenColumns,Pt=Ve.rowComponent,wt=Ve.cellComponent,Tt=Ve.tdCellComponent,At=Ve.onHeaderRow,Ot=Ve.index,kt=ue(he,["prefixCls","direction"]),Gt=kt.prefixCls,Nt=kt.direction,Qt;At&&(Qt=At(et.map(function(Jt){return Jt.column}),Ot));var Vt=qe(et.map(function(Jt){return Jt.column}));return ne.createElement(Pt,Qt,et.map(function(Jt,un){var sn=Jt.column,dn=Ze(Jt.colStart,Jt.colEnd,ht,dt,Nt,sn),ln;return sn&&sn.onHeaderCell&&(ln=Jt.column.onHeaderCell(sn)),ne.createElement(ut,(0,ie.Z)({},Jt,{scope:sn.title?Jt.colSpan>1?"colgroup":"col":null,ellipsis:sn.ellipsis,align:sn.align,component:sn.title?wt:Tt,prefixCls:Gt,key:Vt[un]},dn,{additionalProps:ln,rowType:"header"}))}))}hr.displayName="HeaderRow";var nr=hr;function yr(Ve){var et=[];function dt(Tt,At){var Ot=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;et[Ot]=et[Ot]||[];var kt=At,Gt=Tt.filter(Boolean).map(function(Nt){var Qt={key:Nt.key,className:Nt.className||"",children:Nt.title,column:Nt,colStart:kt},Vt=1,Jt=Nt.children;return Jt&&Jt.length>0&&(Vt=dt(Jt,kt,Ot+1).reduce(function(un,sn){return un+sn},0),Qt.hasSubColumns=!0),"colSpan"in Nt&&(Vt=Nt.colSpan),"rowSpan"in Nt&&(Qt.rowSpan=Nt.rowSpan),Qt.colSpan=Vt,Qt.colEnd=Qt.colStart+Vt-1,et[Ot].push(Qt),kt+=Vt,Vt});return Gt}dt(Ve,0);for(var ht=et.length,Pt=function(At){et[At].forEach(function(Ot){!("rowSpan"in Ot)&&!Ot.hasSubColumns&&(Ot.rowSpan=ht-At)})},wt=0;wt<ht;wt+=1)Pt(wt);return et}function Nr(Ve){var et=Ve.stickyOffsets,dt=Ve.columns,ht=Ve.flattenColumns,Pt=Ve.onHeaderRow,wt=ue(he,["prefixCls","getComponent"]),Tt=wt.prefixCls,At=wt.getComponent,Ot=ne.useMemo(function(){return yr(dt)},[dt]),kt=At(["header","wrapper"],"thead"),Gt=At(["header","row"],"tr"),Nt=At(["header","cell"],"th"),Qt=At(["header","cell"],"td");return ne.createElement(kt,{className:"".concat(Tt,"-thead")},Ot.map(function(Vt,Jt){var un=ne.createElement(nr,{key:Jt,flattenColumns:ht,cells:Vt,stickyOffsets:et,rowComponent:Gt,cellComponent:Nt,tdCellComponent:Qt,onHeaderRow:Pt,index:Jt});return un}))}var tr=te(Nr),Cr=ye(11592);function rr(Ve){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof et=="number"?et:et.endsWith("%")?Ve*parseFloat(et)/100:null}function _r(Ve,et){return ne.useMemo(function(){if(et&&et>0){var dt=0,ht=0;Ve.forEach(function(kt){var Gt=rr(et,kt.width);Gt?dt+=Gt:ht+=1});var Pt=et-dt,wt=ht,Tt=Pt/ht,At=0,Ot=Ve.map(function(kt){var Gt=(0,be.Z)({},kt),Nt=rr(et,Gt.width);if(Nt)Gt.width=Nt;else{var Qt=Math.floor(Tt);Gt.width=wt===1?Pt:Qt,Pt-=Qt,wt-=1}return At+=Gt.width,Gt});return[Ot,At]}return[Ve,et]},[Ve,et])}var Et=["children"],Rt=["fixed"];function xt(Ve){return(0,Cr.Z)(Ve).filter(function(et){return ne.isValidElement(et)}).map(function(et){var dt=et.key,ht=et.props,Pt=ht.children,wt=(0,Me.Z)(ht,Et),Tt=(0,be.Z)({key:dt},wt);return Pt&&(Tt.children=xt(Pt)),Tt})}function Zt(Ve){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return Ve.filter(function(dt){return dt&&(0,ve.Z)(dt)==="object"}).reduce(function(dt,ht,Pt){var wt=ht.fixed,Tt=wt===!0?"left":wt,At="".concat(et,"-").concat(Pt),Ot=ht.children;return Ot&&Ot.length>0?[].concat((0,en.Z)(dt),(0,en.Z)(Zt(Ot,At).map(function(kt){return(0,be.Z)({fixed:Tt},kt)}))):[].concat((0,en.Z)(dt),[(0,be.Z)((0,be.Z)({key:At},ht),{},{fixed:Tt})])},[])}function yn(Ve){for(var et=!0,dt=0;dt<Ve.length;dt+=1){var ht=Ve[dt];if(et&&ht.fixed!=="left")et=!1;else if(!et&&ht.fixed==="left"){warning(!1,"Index ".concat(dt-1," of `columns` missing `fixed='left'` prop."));break}}for(var Pt=!0,wt=Ve.length-1;wt>=0;wt-=1){var Tt=Ve[wt];if(Pt&&Tt.fixed!=="right")Pt=!1;else if(!Pt&&Tt.fixed==="right"){warning(!1,"Index ".concat(wt+1," of `columns` missing `fixed='right'` prop."));break}}}function mn(Ve){return Ve.map(function(et){var dt=et.fixed,ht=(0,Me.Z)(et,Rt),Pt=dt;return dt==="left"?Pt="right":dt==="right"&&(Pt="left"),(0,be.Z)({fixed:Pt},ht)})}function mr(Ve,et){var dt=Ve.prefixCls,ht=Ve.columns,Pt=Ve.children,wt=Ve.expandable,Tt=Ve.expandedKeys,At=Ve.columnTitle,Ot=Ve.getRowKey,kt=Ve.onTriggerExpand,Gt=Ve.expandIcon,Nt=Ve.rowExpandable,Qt=Ve.expandIconColumnIndex,Vt=Ve.direction,Jt=Ve.expandRowByClick,un=Ve.columnWidth,sn=Ve.fixed,dn=Ve.scrollWidth,ln=ne.useMemo(function(){return ht||xt(Pt)},[ht,Pt]),vn=ne.useMemo(function(){if(wt){var Rn,Pn=ln.slice();if(!Pn.includes(we)){var pn=Qt||0;pn>=0&&Pn.splice(pn,0,we)}var xn=Pn.indexOf(we);Pn=Pn.filter(function(Gn,Sr){return Gn!==we||Sr===xn});var Jn=ln[xn],vr;(sn==="left"||sn)&&!Qt?vr="left":(sn==="right"||sn)&&Qt===ln.length?vr="right":vr=Jn?Jn.fixed:null;var sr=(Rn={},(0,Pe.Z)(Rn,on,{className:"".concat(dt,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,Pe.Z)(Rn,"title",At),(0,Pe.Z)(Rn,"fixed",vr),(0,Pe.Z)(Rn,"className","".concat(dt,"-row-expand-icon-cell")),(0,Pe.Z)(Rn,"width",un),(0,Pe.Z)(Rn,"render",function(Sr,Pr,Xr){var jr=Ot(Pr,Xr),vo=Tt.has(jr),yo=Nt?Nt(Pr):!0,ur=Gt({prefixCls:dt,expanded:vo,expandable:yo,record:Pr,onExpand:kt});return Jt?ne.createElement("span",{onClick:function(Mr){return Mr.stopPropagation()}},ur):ur}),Rn);return Pn.map(function(Gn){return Gn===we?sr:Gn})}return ln.filter(function(Gn){return Gn!==we})},[wt,ln,Ot,Tt,Gt,Vt]),Fn=ne.useMemo(function(){var Rn=vn;return et&&(Rn=et(Rn)),Rn.length||(Rn=[{render:function(){return null}}]),Rn},[et,vn,Vt]),Un=ne.useMemo(function(){return Vt==="rtl"?mn(Zt(Fn)):Zt(Fn)},[Fn,Vt,dn]),On=_r(Un,dn),er=(0,x.Z)(On,2),cr=er[0],bn=er[1];return[Fn,cr,bn]}var Kn=mr;function Mn(Ve){var et,dt=Ve.prefixCls,ht=Ve.record,Pt=Ve.onExpand,wt=Ve.expanded,Tt=Ve.expandable,At="".concat(dt,"-row-expand-icon");if(!Tt)return ne.createElement("span",{className:_e()(At,"".concat(dt,"-row-spaced"))});var Ot=function(Gt){Pt(ht,Gt),Gt.stopPropagation()};return ne.createElement("span",{className:_e()(At,(et={},(0,Pe.Z)(et,"".concat(dt,"-row-expanded"),wt),(0,Pe.Z)(et,"".concat(dt,"-row-collapsed"),!wt),et)),onClick:Ot})}function Qn(Ve,et,dt){var ht=[];function Pt(wt){(wt||[]).forEach(function(Tt,At){ht.push(et(Tt,At)),Pt(Tt[dt])})}return Pt(Ve),ht}function Kt(Ve,et,dt){var ht=qt(Ve),Pt=ht.expandIcon,wt=ht.expandedRowKeys,Tt=ht.defaultExpandedRowKeys,At=ht.defaultExpandAllRows,Ot=ht.expandedRowRender,kt=ht.onExpand,Gt=ht.onExpandedRowsChange,Nt=ht.childrenColumnName,Qt=Pt||Mn,Vt=Nt||"children",Jt=ne.useMemo(function(){return Ot?"row":Ve.expandable&&Ve.internalHooks===Ee&&Ve.expandable.__PARENT_RENDER_ICON__||et.some(function(Un){return Un&&(0,ve.Z)(Un)==="object"&&Un[Vt]})?"nest":!1},[!!Ot,et]),un=ne.useState(function(){return Tt||(At?Qn(et,dt,Vt):[])}),sn=(0,x.Z)(un,2),dn=sn[0],ln=sn[1],vn=ne.useMemo(function(){return new Set(wt||dn||[])},[wt,dn]),Fn=ne.useCallback(function(Un){var On=dt(Un,et.indexOf(Un)),er,cr=vn.has(On);cr?(vn.delete(On),er=(0,en.Z)(vn)):er=[].concat((0,en.Z)(vn),[On]),ln(er),kt&&kt(!cr,Un),Gt&&Gt(er)},[dt,vn,et,kt,Gt]);return[ht,Jt,vn,Qt,Vt,Fn]}function bt(Ve,et,dt,ht){var Pt=Ve.map(function(wt,Tt){return Ze(Tt,Tt,Ve,et,dt,ht==null?void 0:ht[Tt])});return(0,je.Z)(function(){return Pt},[Pt],function(wt,Tt){return!(0,ae.Z)(wt,Tt)})}function $t(Ve){var et=(0,ne.useRef)(Ve),dt=(0,ne.useState)({}),ht=(0,x.Z)(dt,2),Pt=ht[1],wt=(0,ne.useRef)(null),Tt=(0,ne.useRef)([]);function At(Ot){Tt.current.push(Ot);var kt=Promise.resolve();wt.current=kt,kt.then(function(){if(wt.current===kt){var Gt=Tt.current,Nt=et.current;Tt.current=[],Gt.forEach(function(Qt){et.current=Qt(et.current)}),wt.current=null,Nt!==et.current&&Pt({})}})}return(0,ne.useEffect)(function(){return function(){wt.current=null}},[]),[et.current,At]}function rn(Ve){var et=(0,ne.useRef)(Ve||null),dt=(0,ne.useRef)();function ht(){window.clearTimeout(dt.current)}function Pt(Tt){et.current=Tt,ht(),dt.current=window.setTimeout(function(){et.current=null,dt.current=void 0},100)}function wt(){return et.current}return(0,ne.useEffect)(function(){return ht},[]),[Pt,wt]}function nn(){var Ve=ne.useState(-1),et=(0,x.Z)(Ve,2),dt=et[0],ht=et[1],Pt=ne.useState(-1),wt=(0,x.Z)(Pt,2),Tt=wt[0],At=wt[1],Ot=ne.useCallback(function(kt,Gt){ht(kt),At(Gt)},[]);return[dt,Tt,Ot]}var cn=ye(47273),yt=(0,cn.Z)()?window:null;function Lt(Ve,et){var dt=(0,ve.Z)(Ve)==="object"?Ve:{},ht=dt.offsetHeader,Pt=ht===void 0?0:ht,wt=dt.offsetSummary,Tt=wt===void 0?0:wt,At=dt.offsetScroll,Ot=At===void 0?0:At,kt=dt.getContainer,Gt=kt===void 0?function(){return yt}:kt,Nt=Gt()||yt;return ne.useMemo(function(){var Qt=!!Ve;return{isSticky:Qt,stickyClassName:Qt?"".concat(et,"-sticky-holder"):"",offsetHeader:Pt,offsetSummary:Tt,offsetScroll:Ot,container:Nt}},[Ot,Pt,Tt,et,Nt])}function jt(Ve,et,dt){var ht=(0,ne.useMemo)(function(){for(var Pt=[],wt=[],Tt=0,At=0,Ot=0;Ot<et;Ot+=1)if(dt==="rtl"){wt[Ot]=At,At+=Ve[Ot]||0;var kt=et-Ot-1;Pt[kt]=Tt,Tt+=Ve[kt]||0}else{Pt[Ot]=Tt,Tt+=Ve[Ot]||0;var Gt=et-Ot-1;wt[Gt]=At,At+=Ve[Gt]||0}return{left:Pt,right:wt}},[Ve,et,dt]);return ht}var Mt=jt;function Ut(Ve){var et=Ve.className,dt=Ve.children;return ne.createElement("div",{className:et},dt)}var Bt=Ut,zt=ye(8224),Ft=ye(55468),gn=function(et,dt){var ht,Pt,wt=et.scrollBodyRef,Tt=et.onScroll,At=et.offsetScroll,Ot=et.container,kt=ue(he,"prefixCls"),Gt=((ht=wt.current)===null||ht===void 0?void 0:ht.scrollWidth)||0,Nt=((Pt=wt.current)===null||Pt===void 0?void 0:Pt.clientWidth)||0,Qt=Gt&&Nt*(Nt/Gt),Vt=ne.useRef(),Jt=$t({scrollLeft:0,isHiddenScrollBar:!1}),un=(0,x.Z)(Jt,2),sn=un[0],dn=un[1],ln=ne.useRef({delta:0,x:0}),vn=ne.useState(!1),Fn=(0,x.Z)(vn,2),Un=Fn[0],On=Fn[1],er=function(){On(!1)},cr=function(xn){xn.persist(),ln.current.delta=xn.pageX-sn.scrollLeft,ln.current.x=0,On(!0),xn.preventDefault()},bn=function(xn){var Jn,vr=xn||((Jn=window)===null||Jn===void 0?void 0:Jn.event),sr=vr.buttons;if(!Un||sr===0){Un&&On(!1);return}var Gn=ln.current.x+xn.pageX-ln.current.x-ln.current.delta;Gn<=0&&(Gn=0),Gn+Qt>=Nt&&(Gn=Nt-Qt),Tt({scrollLeft:Gn/Nt*(Gt+2)}),ln.current.x=xn.pageX},Rn=function(){if(wt.current){var xn=(0,Ft.os)(wt.current).top,Jn=xn+wt.current.offsetHeight,vr=Ot===window?document.documentElement.scrollTop+window.innerHeight:(0,Ft.os)(Ot).top+Ot.clientHeight;Jn-(0,ot.Z)()<=vr||xn>=vr-At?dn(function(sr){return(0,be.Z)((0,be.Z)({},sr),{},{isHiddenScrollBar:!0})}):dn(function(sr){return(0,be.Z)((0,be.Z)({},sr),{},{isHiddenScrollBar:!1})})}},Pn=function(xn){dn(function(Jn){return(0,be.Z)((0,be.Z)({},Jn),{},{scrollLeft:xn/Gt*Nt||0})})};return ne.useImperativeHandle(dt,function(){return{setScrollLeft:Pn}}),ne.useEffect(function(){var pn=(0,zt.Z)(document.body,"mouseup",er,!1),xn=(0,zt.Z)(document.body,"mousemove",bn,!1);return Rn(),function(){pn.remove(),xn.remove()}},[Qt,Un]),ne.useEffect(function(){var pn=(0,zt.Z)(Ot,"scroll",Rn,!1),xn=(0,zt.Z)(window,"resize",Rn,!1);return function(){pn.remove(),xn.remove()}},[Ot]),ne.useEffect(function(){sn.isHiddenScrollBar||dn(function(pn){var xn=wt.current;return xn?(0,be.Z)((0,be.Z)({},pn),{},{scrollLeft:xn.scrollLeft/xn.scrollWidth*xn.clientWidth}):pn})},[sn.isHiddenScrollBar]),Gt<=Nt||!Qt||sn.isHiddenScrollBar?null:ne.createElement("div",{style:{height:(0,ot.Z)(),width:Nt,bottom:At},className:"".concat(kt,"-sticky-scroll")},ne.createElement("div",{onMouseDown:cr,ref:Vt,className:_e()("".concat(kt,"-sticky-scroll-bar"),(0,Pe.Z)({},"".concat(kt,"-sticky-scroll-bar-active"),Un)),style:{width:"".concat(Qt,"px"),transform:"translate3d(".concat(sn.scrollLeft,"px, 0, 0)")}}))},Sn=ne.forwardRef(gn);function Dt(Ve){return null}var zn=Dt;function Ln(Ve){return null}var or=Ln,lr="rc-table",Yt=[],fn={};function jn(){return"No Data"}function an(Ve){var et,dt=(0,be.Z)({rowKey:"key",prefixCls:lr,emptyText:jn},Ve),ht=dt.prefixCls,Pt=dt.className,wt=dt.rowClassName,Tt=dt.style,At=dt.data,Ot=dt.rowKey,kt=dt.scroll,Gt=dt.tableLayout,Nt=dt.direction,Qt=dt.title,Vt=dt.footer,Jt=dt.summary,un=dt.caption,sn=dt.id,dn=dt.showHeader,ln=dt.components,vn=dt.emptyText,Fn=dt.onRow,Un=dt.onHeaderRow,On=dt.internalHooks,er=dt.transformColumns,cr=dt.internalRefs,bn=dt.tailor,Rn=dt.sticky,Pn=At||Yt,pn=!!Pn.length,xn=On===Ee,Jn=ne.useCallback(function(Wr,io){return(0,Ce.Z)(ln,Wr)||io},[ln]),vr=ne.useMemo(function(){return typeof Ot=="function"?Ot:function(Wr){var io=Wr&&Wr[Ot];return io}},[Ot]),sr=Jn(["body"]),Gn=nn(),Sr=(0,x.Z)(Gn,3),Pr=Sr[0],Xr=Sr[1],jr=Sr[2],vo=Kt(dt,Pn,vr),yo=(0,x.Z)(vo,6),ur=yo[0],wo=yo[1],Mr=yo[2],oo=yo[3],to=yo[4],Wo=yo[5],Xn=kt==null?void 0:kt.x,Vn=ne.useState(0),Wn=(0,x.Z)(Vn,2),kn=Wn[0],kr=Wn[1],Nn=Kn((0,be.Z)((0,be.Z)((0,be.Z)({},dt),ur),{},{expandable:!!ur.expandedRowRender,columnTitle:ur.columnTitle,expandedKeys:Mr,getRowKey:vr,onTriggerExpand:Wo,expandIcon:oo,expandIconColumnIndex:ur.expandIconColumnIndex,direction:Nt,scrollWidth:xn&&bn&&typeof Xn=="number"?Xn:null}),xn?er:null),ar=(0,x.Z)(Nn,3),Or=ar[0],xr=ar[1],ko=ar[2],Ro=ko!=null?ko:Xn,oi=ne.useMemo(function(){return{columns:Or,flattenColumns:xr}},[Or,xr]),Co=ne.useRef(),ei=ne.useRef(),_o=ne.useRef(),$o=ne.useRef(),Si=ne.useRef(),Hr=ne.useState(!1),Gr=(0,x.Z)(Hr,2),uo=Gr[0],Oo=Gr[1],To=ne.useState(!1),wr=(0,x.Z)(To,2),Ho=wr[0],No=wr[1],Jo=$t(new Map),ai=(0,x.Z)(Jo,2),ii=ai[0],xi=ai[1],di=qe(xr),ti=di.map(function(Wr){return ii.get(Wr)}),Ko=ne.useMemo(function(){return ti},[ti.join("_")]),Uo=Mt(Ko,xr.length,Nt),Ao=kt&&Je(kt.y),fo=kt&&Je(Ro)||!!ur.fixed,si=fo&&xr.some(function(Wr){var io=Wr.fixed;return io}),bi=ne.useRef(),pi=Lt(Rn,ht),li=pi.isSticky,Ti=pi.offsetHeader,Hi=pi.offsetSummary,Tr=pi.offsetScroll,qr=pi.stickyClassName,Do=pi.container,ho=ne.useMemo(function(){return Jt==null?void 0:Jt(Pn)},[Jt,Pn]),Bo=(Ao||li)&&ne.isValidElement(ho)&&ho.type===De&&ho.props.fixed,Zo,Vo,fi;Ao&&(Vo={overflowY:"scroll",maxHeight:kt.y}),fo&&(Zo={overflowX:"auto"},Ao||(Vo={overflowY:"hidden"}),fi={width:Ro===!0?"auto":Ro,minWidth:"100%"});var ga=ne.useCallback(function(Wr,io){(0,tt.Z)(Co.current)&&xi(function(ni){if(ni.get(Wr)!==io){var mi=new Map(ni);return mi.set(Wr,io),mi}return ni})},[]),Ls=rn(null),ha=(0,x.Z)(Ls,2),Os=ha[0],pa=ha[1];function Ai(Wr,io){io&&(typeof io=="function"?io(Wr):io.scrollLeft!==Wr&&(io.scrollLeft=Wr,io.scrollLeft!==Wr&&setTimeout(function(){io.scrollLeft=Wr},0)))}var Ci=(0,pe.Z)(function(Wr){var io=Wr.currentTarget,ni=Wr.scrollLeft,mi=Nt==="rtl",vi=typeof ni=="number"?ni:io.scrollLeft,Aa=io||fn;if(!pa()||pa()===Aa){var Ki;Os(Aa),Ai(vi,ei.current),Ai(vi,_o.current),Ai(vi,Si.current),Ai(vi,(Ki=bi.current)===null||Ki===void 0?void 0:Ki.setScrollLeft)}var Zi=io||ei.current;if(Zi){var Vi=Zi.scrollWidth,Xi=Zi.clientWidth;if(Vi===Xi){Oo(!1),No(!1);return}mi?(Oo(-vi<Vi-Xi),No(-vi>0)):(Oo(vi>0),No(vi<Vi-Xi))}}),ma=function(){fo&&_o.current?Ci({currentTarget:_o.current}):(Oo(!1),No(!1))},Ts=function(io){var ni=io.width;ni!==kn&&(ma(),kr(Co.current?Co.current.offsetWidth:ni))},va=ne.useRef(!1);ne.useEffect(function(){va.current&&ma()},[fo,At,Or.length]),ne.useEffect(function(){va.current=!0},[]);var As=ne.useState(0),ya=(0,x.Z)(As,2),ji=ya[0],Sa=ya[1],js=ne.useState(!0),ba=(0,x.Z)(js,2),Pa=ba[0],Rs=ba[1];ne.useEffect(function(){(!bn||!xn)&&(_o.current instanceof Element?Sa((0,ot.o)(_o.current).width):Sa((0,ot.o)($o.current).width)),Rs((0,He.G)("position","sticky"))},[]),ne.useEffect(function(){xn&&cr&&(cr.body.current=_o.current)});var Is=ne.useCallback(function(Wr){return ne.createElement(ne.Fragment,null,ne.createElement(tr,Wr),Bo==="top"&&ne.createElement(Oe,Wr,ho))},[Bo,ho]),Ds=ne.useCallback(function(Wr){return ne.createElement(Oe,Wr,ho)},[ho]),wa=Jn(["table"],"table"),Ri=ne.useMemo(function(){return Gt||(si?Ro==="max-content"?"auto":"fixed":Ao||li||xr.some(function(Wr){var io=Wr.ellipsis;return io})?"fixed":"auto")},[Ao,si,xr,Gt,li]),Ui,Gi={colWidths:Ko,columCount:xr.length,stickyOffsets:Uo,onHeaderRow:Un,fixHeader:Ao,scroll:kt},Ca=ne.useMemo(function(){return pn?null:typeof vn=="function"?vn():vn},[pn,vn]),_a=ne.createElement(Ht,{data:Pn,measureColumnWidth:Ao||fo||li}),xa=ne.createElement(En,{colWidths:xr.map(function(Wr){var io=Wr.width;return io}),columns:xr}),Ea=un!=null?ne.createElement("caption",{className:"".concat(ht,"-caption")},un):void 0,Ms=(0,mt.Z)(dt,{data:!0}),La=(0,mt.Z)(dt,{aria:!0});if(Ao||li){var Wi;typeof sr=="function"?(Wi=sr(Pn,{scrollbarSize:ji,ref:_o,onScroll:Ci}),Gi.colWidths=xr.map(function(Wr,io){var ni=Wr.width,mi=io===xr.length-1?ni-ji:ni;return typeof mi=="number"&&!Number.isNaN(mi)?mi:0})):Wi=ne.createElement("div",{style:(0,be.Z)((0,be.Z)({},Zo),Vo),onScroll:Ci,ref:_o,className:_e()("".concat(ht,"-body"))},ne.createElement(wa,(0,ie.Z)({style:(0,be.Z)((0,be.Z)({},fi),{},{tableLayout:Ri})},La),Ea,xa,_a,!Bo&&ho&&ne.createElement(Oe,{stickyOffsets:Uo,flattenColumns:xr,columns:Or},ho)));var Oa=(0,be.Z)((0,be.Z)((0,be.Z)({noData:!Pn.length,maxContentScroll:fo&&Ro==="max-content"},Gi),oi),{},{direction:Nt,stickyClassName:qr,onScroll:Ci});Ui=ne.createElement(ne.Fragment,null,dn!==!1&&ne.createElement($n,(0,ie.Z)({},Oa,{stickyTopOffset:Ti,className:"".concat(ht,"-header"),ref:ei}),Is),Wi,Bo&&Bo!=="top"&&ne.createElement($n,(0,ie.Z)({},Oa,{stickyBottomOffset:Hi,className:"".concat(ht,"-summary"),ref:Si}),Ds),li&&ne.createElement(Sn,{ref:bi,offsetScroll:Tr,scrollBodyRef:_o,onScroll:Ci,container:Do}))}else Ui=ne.createElement("div",{style:(0,be.Z)((0,be.Z)({},Zo),Vo),className:_e()("".concat(ht,"-content")),onScroll:Ci,ref:_o},ne.createElement(wa,(0,ie.Z)({style:(0,be.Z)((0,be.Z)({},fi),{},{tableLayout:Ri})},La),Ea,xa,dn!==!1&&ne.createElement(tr,(0,ie.Z)({},Gi,oi)),_a,ho&&ne.createElement(Oe,{stickyOffsets:Uo,flattenColumns:xr,columns:Or},ho)));var $i=ne.createElement("div",(0,ie.Z)({className:_e()(ht,Pt,(et={},(0,Pe.Z)(et,"".concat(ht,"-rtl"),Nt==="rtl"),(0,Pe.Z)(et,"".concat(ht,"-ping-left"),uo),(0,Pe.Z)(et,"".concat(ht,"-ping-right"),Ho),(0,Pe.Z)(et,"".concat(ht,"-layout-fixed"),Gt==="fixed"),(0,Pe.Z)(et,"".concat(ht,"-fixed-header"),Ao),(0,Pe.Z)(et,"".concat(ht,"-fixed-column"),si),(0,Pe.Z)(et,"".concat(ht,"-scroll-horizontal"),fo),(0,Pe.Z)(et,"".concat(ht,"-has-fix-left"),xr[0]&&xr[0].fixed),(0,Pe.Z)(et,"".concat(ht,"-has-fix-right"),xr[xr.length-1]&&xr[xr.length-1].fixed==="right"),et)),style:Tt,id:sn,ref:Co},Ms),Qt&&ne.createElement(Bt,{className:"".concat(ht,"-title")},Qt(Pn)),ne.createElement("div",{ref:$o,className:"".concat(ht,"-container")},Ui),Vt&&ne.createElement(Bt,{className:"".concat(ht,"-footer")},Vt(Pn)));fo&&($i=ne.createElement(Ke.Z,{onResize:Ts},$i));var Ta=bt(xr,Uo,Nt,Or),ks=ne.useMemo(function(){return{scrollX:Ro,prefixCls:ht,getComponent:Jn,scrollbarSize:ji,direction:Nt,fixedInfoList:Ta,isSticky:li,supportSticky:Pa,componentWidth:kn,fixHeader:Ao,fixColumn:si,horizonScroll:fo,tableLayout:Ri,rowClassName:wt,expandedRowClassName:ur.expandedRowClassName,expandIcon:oo,expandableType:wo,expandRowByClick:ur.expandRowByClick,expandedRowRender:ur.expandedRowRender,onTriggerExpand:Wo,expandIconColumnIndex:ur.expandIconColumnIndex,indentSize:ur.indentSize,allColumnsFixedLeft:xr.every(function(Wr){return Wr.fixed==="left"}),emptyNode:Ca,columns:Or,flattenColumns:xr,onColumnResize:ga,hoverStartRow:Pr,hoverEndRow:Xr,onHover:jr,rowExpandable:ur.rowExpandable,onRow:Fn,getRowKey:vr,expandedKeys:Mr,childrenColumnName:to}},[Ro,ht,Jn,ji,Nt,Ta,li,Pa,kn,Ao,si,fo,Ri,wt,ur.expandedRowClassName,oo,wo,ur.expandRowByClick,ur.expandedRowRender,Wo,ur.expandIconColumnIndex,ur.indentSize,Ca,Or,xr,ga,Pr,Xr,jr,ur.rowExpandable,Fn,vr,Mr,to]);return ne.createElement(he.Provider,{value:ks},$i)}function Yn(Ve){return ee(an,Ve)}var Hn=Yn();Hn.EXPAND_COLUMN=we,Hn.INTERNAL_HOOKS=Ee,Hn.Column=zn,Hn.ColumnGroup=or,Hn.Summary=xe;var Bn=Hn,pr=ye(6790),fr=ce(null),ao=ce(null);function no(Ve,et,dt){var ht=et||1;return dt[Ve+ht]-(dt[Ve]||0)}function Qr(Ve){var et=Ve.rowInfo,dt=Ve.column,ht=Ve.colIndex,Pt=Ve.indent,wt=Ve.index,Tt=Ve.renderIndex,At=Ve.record,Ot=Ve.style,kt=Ve.className,Gt=Ve.inverse,Nt=Ve.getHeight,Qt=dt.render,Vt=dt.dataIndex,Jt=dt.className,un=dt.width,sn=ue(ao,["columnsOffset"]),dn=sn.columnsOffset,ln=ct(et,dt,ht,Pt,wt),vn=ln.key,Fn=ln.fixedInfo,Un=ln.appendCellNode,On=ln.additionalCellProps,er=On.style,cr=On.colSpan,bn=cr===void 0?1:cr,Rn=On.rowSpan,Pn=Rn===void 0?1:Rn,pn=ht-1,xn=no(pn,bn,dn),Jn=bn>1?un-xn:0,vr=(0,be.Z)((0,be.Z)((0,be.Z)({},er),Ot),{},{flex:"0 0 ".concat(xn,"px"),width:"".concat(xn,"px"),marginRight:Jn,pointerEvents:"auto"}),sr=ne.useMemo(function(){return Gt?Pn<=1:bn===0||Pn===0||Pn>1},[Pn,bn,Gt]);sr?vr.visibility="hidden":Gt&&(vr.height=Nt==null?void 0:Nt(Pn));var Gn=sr?function(){return null}:Qt,Sr={};return(Pn===0||bn===0)&&(Sr.rowSpan=1,Sr.colSpan=1),ne.createElement(ut,(0,ie.Z)({className:_e()(Jt,kt),ellipsis:dt.ellipsis,align:dt.align,scope:dt.rowScope,component:"div",prefixCls:et.prefixCls,key:vn,record:At,index:wt,renderIndex:Tt,dataIndex:Vt,render:Gn,shouldCellUpdate:dt.shouldCellUpdate},Fn,{appendNode:Un,additionalProps:(0,be.Z)((0,be.Z)({},On),{},{style:vr},Sr)}))}var xo=Qr,po=["data","index","className","rowKey","style","extra","getHeight"],Eo=ne.forwardRef(function(Ve,et){var dt=Ve.data,ht=Ve.index,Pt=Ve.className,wt=Ve.rowKey,Tt=Ve.style,At=Ve.extra,Ot=Ve.getHeight,kt=(0,Me.Z)(Ve,po),Gt=dt.record,Nt=dt.indent,Qt=dt.index,Vt=ue(he,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),Jt=Vt.scrollX,un=Vt.flattenColumns,sn=Vt.prefixCls,dn=Vt.fixColumn,ln=Vt.componentWidth,vn=rt(Gt,wt,ht,Nt),Fn=vn.rowSupportExpand,Un=vn.expanded,On=vn.rowProps,er=vn.expandedRowRender,cr=vn.expandedRowClassName,bn;if(Fn&&Un){var Rn=er(Gt,ht,Nt+1,Un),Pn=cr==null?void 0:cr(Gt,ht,Nt),pn={};dn&&(pn={style:(0,Pe.Z)({},"--virtual-width","".concat(ln,"px"))});var xn="".concat(sn,"-expanded-row-cell");bn=ne.createElement("div",{className:_e()("".concat(sn,"-expanded-row"),"".concat(sn,"-expanded-row-level-").concat(Nt+1),Pn)},ne.createElement(ut,{component:"div",prefixCls:sn,className:_e()(xn,(0,Pe.Z)({},"".concat(xn,"-fixed"),dn)),additionalProps:pn},Rn))}var Jn=(0,be.Z)((0,be.Z)({},Tt),{},{width:Jt});At&&(Jn.position="absolute",Jn.pointerEvents="none");var vr=ne.createElement("div",(0,ie.Z)({},On,kt,{ref:Fn?null:et,className:_e()(Pt,"".concat(sn,"-row"),On==null?void 0:On.className,(0,Pe.Z)({},"".concat(sn,"-row-extra"),At)),style:(0,be.Z)((0,be.Z)({},Jn),On==null?void 0:On.style)}),un.map(function(sr,Gn){return ne.createElement(xo,{key:Gn,rowInfo:vn,column:sr,colIndex:Gn,indent:Nt,index:ht,renderIndex:Qt,record:Gt,inverse:At,getHeight:Ot})}));return Fn?ne.createElement("div",{ref:et},vr,bn):vr}),mo=te(Eo),Zr=mo,Rr=ne.forwardRef(function(Ve,et){var dt=Ve.data,ht=Ve.onScroll,Pt=ue(he,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),wt=Pt.flattenColumns,Tt=Pt.onColumnResize,At=Pt.getRowKey,Ot=Pt.expandedKeys,kt=Pt.prefixCls,Gt=Pt.childrenColumnName,Nt=Pt.emptyNode,Qt=Pt.scrollX,Vt=ue(fr),Jt=Vt.scrollY,un=Vt.listItemHeight,sn=ne.useRef(),dn=pt(dt,Gt,Ot,At),ln=ne.useMemo(function(){var bn=0;return wt.map(function(Rn){var Pn=Rn.width,pn=Rn.key;return bn+=Pn,[pn,Pn,bn]})},[wt]),vn=ne.useMemo(function(){return ln.map(function(bn){return bn[2]})},[ln]);ne.useEffect(function(){ln.forEach(function(bn){var Rn=(0,x.Z)(bn,2),Pn=Rn[0],pn=Rn[1];Tt(Pn,pn)})},[ln]),ne.useImperativeHandle(et,function(){var bn={};return Object.defineProperty(bn,"scrollLeft",{get:function(){var Pn;return((Pn=sn.current)===null||Pn===void 0?void 0:Pn.getScrollInfo().x)||0},set:function(Pn){var pn;(pn=sn.current)===null||pn===void 0||pn.scrollTo({left:Pn})}}),bn});var Fn=function(Rn,Pn){var pn,xn=(pn=dn[Pn])===null||pn===void 0?void 0:pn.record,Jn=Rn.onCell;if(Jn){var vr,sr=Jn(xn,Pn);return(vr=sr==null?void 0:sr.rowSpan)!==null&&vr!==void 0?vr:1}return 1},Un=function(Rn){var Pn=Rn.start,pn=Rn.end,xn=Rn.getSize,Jn=Rn.offsetY;if(pn<0)return null;for(var vr=wt.filter(function(Xn){return Fn(Xn,Pn)===0}),sr=Pn,Gn=function(Vn){if(vr=vr.filter(function(Wn){return Fn(Wn,Vn)===0}),!vr.length)return sr=Vn,"break"},Sr=Pn;Sr>=0;Sr-=1){var Pr=Gn(Sr);if(Pr==="break")break}for(var Xr=wt.filter(function(Xn){return Fn(Xn,pn)!==1}),jr=pn,vo=function(Vn){if(Xr=Xr.filter(function(Wn){return Fn(Wn,Vn)!==1}),!Xr.length)return jr=Math.max(Vn-1,pn),"break"},yo=pn;yo<dn.length;yo+=1){var ur=vo(yo);if(ur==="break")break}for(var wo=[],Mr=function(Vn){var Wn=dn[Vn];if(!Wn)return"continue";wt.some(function(kn){return Fn(kn,Vn)>1})&&wo.push(Vn)},oo=sr;oo<=jr;oo+=1)var to=Mr(oo);var Wo=wo.map(function(Xn){var Vn=dn[Xn],Wn=At(Vn.record,Xn),kn=function(ar){var Or=Xn+ar-1,xr=At(dn[Or].record,Or),ko=xn(Wn,xr);return ko.bottom-ko.top},kr=xn(Wn);return ne.createElement(Zr,{key:Xn,data:Vn,rowKey:Wn,index:Xn,style:{top:-Jn+kr.top},extra:!0,getHeight:kn})});return Wo},On=ne.useMemo(function(){return{columnsOffset:vn}},[vn]),er="".concat(kt,"-tbody"),cr;return dn.length?cr=ne.createElement(pr.Z,{fullHeight:!1,ref:sn,className:_e()(er,"".concat(er,"-virtual")),height:Jt,itemHeight:un||24,data:dn,itemKey:function(Rn){return At(Rn.record)},scrollWidth:Qt,onVirtualScroll:function(Rn){var Pn=Rn.x;ht({scrollLeft:Pn})},extraRender:Un},function(bn,Rn,Pn){var pn=At(bn.record,Rn);return ne.createElement(Zr,(0,ie.Z)({data:bn,rowKey:pn,index:Rn},Pn))}):cr=ne.createElement("div",{className:_e()("".concat(kt,"-placeholder"))},ne.createElement(ut,{component:"div",prefixCls:kt},Nt)),ne.createElement(ao.Provider,{value:On},cr)}),so=te(Rr),Vr=so,bo=function(et,dt){var ht=dt.ref,Pt=dt.onScroll;return ne.createElement(Vr,{ref:ht,data:et,onScroll:Pt})},Br=100;function zr(Ve){var et=Ve.columns,dt=Ve.scroll,ht=Ve.prefixCls,Pt=ht===void 0?lr:ht,wt=Ve.className,Tt=Ve.listItemHeight,At=dt||{},Ot=At.x,kt=At.y;typeof Ot!="number"&&(Ot=((et||[]).length+1)*Br),typeof kt!="number"&&(kt=500);var Gt=ne.useMemo(function(){return{scrollY:kt,listItemHeight:Tt}},[kt,Tt]);return ne.createElement(fr.Provider,{value:Gt},ne.createElement(Bn,(0,ie.Z)({},Ve,{className:_e()(wt,"".concat(Pt,"-virtual")),scroll:(0,be.Z)((0,be.Z)({},dt),{},{x:Ot}),components:{body:bo},columns:et,internalHooks:Ee,tailor:!0})))}function So(Ve){return ee(zr,Ve)}var qn=So(),dr=null;function Ur(Ve){return null}var $r=Ur;function eo(Ve){return null}var jo=eo,Go=ye(2738),Mo=ye(68031),Ir=ye(36355),Er=ye(93891),ro=ye(19716),Fo=ye(8628),zo=ye(31724),ci=ye(58421),Dn=ye(71418),hn=ye(88088);function Cn(Ve){return function(dt){let{prefixCls:ht,onExpand:Pt,record:wt,expanded:Tt,expandable:At}=dt;const Ot=`${ht}-row-expand-icon`;return ne.createElement("button",{type:"button",onClick:kt=>{Pt(wt,kt),kt.stopPropagation()},className:_e()(Ot,{[`${Ot}-spaced`]:!At,[`${Ot}-expanded`]:At&&Tt,[`${Ot}-collapsed`]:At&&!Tt}),"aria-label":Tt?Ve.collapse:Ve.expand,"aria-expanded":Tt})}}var In=Cn;function br(Ve,et){return"key"in Ve&&Ve.key!==void 0&&Ve.key!==null?Ve.key:Ve.dataIndex?Array.isArray(Ve.dataIndex)?Ve.dataIndex.join("."):Ve.dataIndex:et}function Ar(Ve,et){return et?`${et}-${Ve}`:`${Ve}`}function Kr(Ve,et){return typeof Ve=="function"?Ve(et):Ve}function Yr(Ve,et){const dt=Kr(Ve,et);return Object.prototype.toString.call(dt)==="[object Object]"?"":dt}var lo={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"},co=lo,Xo=ye(7657),Lo=function(et,dt){return ne.createElement(Xo.Z,(0,ie.Z)({},et,{ref:dt,icon:co}))},gr=ne.forwardRef(Lo),Dr=gr,Jr=ye(56762);function Lr(Ve){const et=ne.useRef(Ve),dt=(0,Jr.Z)();return[()=>et.current,ht=>{et.current=ht,dt()}]}var ir=ye(3113),Zn=ye(24905),Fr=ye(38854),Io=ye(64165),Po=ye(20834),Qo=ye(40875),ri=ye(5112),qo=ye(17574),Yo=ye(47472),Pi=ye(92832);function yi(Ve){let{value:et,onChange:dt,filterSearch:ht,tablePrefixCls:Pt,locale:wt}=Ve;return ht?ne.createElement("div",{className:`${Pt}-filter-dropdown-search`},ne.createElement(Pi.default,{prefix:ne.createElement(Yo.Z,null),placeholder:wt.filterSearchPlaceholder,onChange:dt,value:et,htmlSize:1,className:`${Pt}-filter-dropdown-search-input`})):null}var gi=yi,Yi=ye(10228);const ja=Ve=>{const{keyCode:et}=Ve;et===Yi.Z.ENTER&&Ve.stopPropagation()};var Ra=ne.forwardRef((Ve,et)=>ne.createElement("div",{className:Ve.className,onClick:dt=>dt.stopPropagation(),onKeyDown:ja,ref:et},Ve.children));function wi(Ve){let et=[];return(Ve||[]).forEach(dt=>{let{value:ht,children:Pt}=dt;et.push(ht),Pt&&(et=[].concat((0,en.Z)(et),(0,en.Z)(wi(Pt))))}),et}function Ia(Ve){return Ve.some(et=>{let{children:dt}=et;return dt})}function Ji(Ve,et){return typeof et=="string"||typeof et=="number"?et==null?void 0:et.toString().toLowerCase().includes(Ve.trim().toLowerCase()):!1}function Qi(Ve){let{filters:et,prefixCls:dt,filteredKeys:ht,filterMultiple:Pt,searchValue:wt,filterSearch:Tt}=Ve;return et.map((At,Ot)=>{const kt=String(At.value);if(At.children)return{key:kt||Ot,label:At.text,popupClassName:`${dt}-dropdown-submenu`,children:Qi({filters:At.children,prefixCls:dt,filteredKeys:ht,filterMultiple:Pt,searchValue:wt,filterSearch:Tt})};const Gt=Pt?Zn.default:ri.ZP,Nt={key:At.value!==void 0?kt:Ot,label:ne.createElement(ne.Fragment,null,ne.createElement(Gt,{checked:ht.includes(kt)}),ne.createElement("span",null,At.text))};return wt.trim()?typeof Tt=="function"?Tt(wt,At)?Nt:null:Ji(wt,At.text)?Nt:null:Nt})}function Da(Ve){var et,dt;const{tablePrefixCls:ht,prefixCls:Pt,column:wt,dropdownPrefixCls:Tt,columnKey:At,filterMultiple:Ot,filterMode:kt="menu",filterSearch:Gt=!1,filterState:Nt,triggerFilter:Qt,locale:Vt,children:Jt,getPopupContainer:un}=Ve,{filterDropdownOpen:sn,onFilterDropdownOpenChange:dn,filterResetToDefaultFilteredValue:ln,defaultFilteredValue:vn,filterDropdownVisible:Fn,onFilterDropdownVisibleChange:Un}=wt,[On,er]=ne.useState(!1),cr=!!(Nt&&(!((et=Nt.filteredKeys)===null||et===void 0)&&et.length||Nt.forceFiltered)),bn=Nn=>{er(Nn),dn==null||dn(Nn),Un==null||Un(Nn)},Rn=(dt=sn!=null?sn:Fn)!==null&&dt!==void 0?dt:On,Pn=Nt==null?void 0:Nt.filteredKeys,[pn,xn]=Lr(Pn||[]),Jn=Nn=>{let{selectedKeys:ar}=Nn;xn(ar)},vr=(Nn,ar)=>{let{node:Or,checked:xr}=ar;Jn(Ot?{selectedKeys:Nn}:{selectedKeys:xr&&Or.key?[Or.key]:[]})};ne.useEffect(()=>{On&&Jn({selectedKeys:Pn||[]})},[Pn]);const[sr,Gn]=ne.useState([]),Sr=Nn=>{Gn(Nn)},[Pr,Xr]=ne.useState(""),jr=Nn=>{const{value:ar}=Nn.target;Xr(ar)};ne.useEffect(()=>{On||Xr("")},[On]);const vo=Nn=>{const ar=Nn&&Nn.length?Nn:null;if(ar===null&&(!Nt||!Nt.filteredKeys)||(0,ae.Z)(ar,Nt==null?void 0:Nt.filteredKeys,!0))return null;Qt({column:wt,key:At,filteredKeys:ar})},yo=()=>{bn(!1),vo(pn())},ur=function(){let{confirm:Nn,closeDropdown:ar}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};Nn&&vo([]),ar&&bn(!1),Xr(""),xn(ln?(vn||[]).map(Or=>String(Or)):[])},wo=function(){let{closeDropdown:Nn}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};Nn&&bn(!1),vo(pn())},Mr=Nn=>{Nn&&Pn!==void 0&&xn(Pn||[]),bn(Nn),!Nn&&!wt.filterDropdown&&yo()},oo=_e()({[`${Tt}-menu-without-submenu`]:!Ia(wt.filters||[])}),to=Nn=>{if(Nn.target.checked){const ar=wi(wt==null?void 0:wt.filters).map(Or=>String(Or));xn(ar)}else xn([])},Wo=Nn=>{let{filters:ar}=Nn;return(ar||[]).map((Or,xr)=>{const ko=String(Or.value),Ro={title:Or.text,key:Or.value!==void 0?ko:xr};return Or.children&&(Ro.children=Wo({filters:Or.children})),Ro})},Xn=Nn=>{var ar;return Object.assign(Object.assign({},Nn),{text:Nn.title,value:Nn.key,children:((ar=Nn.children)===null||ar===void 0?void 0:ar.map(Or=>Xn(Or)))||[]})};let Vn;if(typeof wt.filterDropdown=="function")Vn=wt.filterDropdown({prefixCls:`${Tt}-custom`,setSelectedKeys:Nn=>Jn({selectedKeys:Nn}),selectedKeys:pn(),confirm:wo,clearFilters:ur,filters:wt.filters,visible:Rn,close:()=>{bn(!1)}});else if(wt.filterDropdown)Vn=wt.filterDropdown;else{const Nn=pn()||[],ar=()=>(wt.filters||[]).length===0?ne.createElement(Io.Z,{image:Io.Z.PRESENTED_IMAGE_SIMPLE,description:Vt.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):kt==="tree"?ne.createElement(ne.Fragment,null,ne.createElement(gi,{filterSearch:Gt,value:Pr,onChange:jr,tablePrefixCls:ht,locale:Vt}),ne.createElement("div",{className:`${ht}-filter-dropdown-tree`},Ot?ne.createElement(Zn.default,{checked:Nn.length===wi(wt.filters).length,indeterminate:Nn.length>0&&Nn.length<wi(wt.filters).length,className:`${ht}-filter-dropdown-checkall`,onChange:to},Vt.filterCheckall):null,ne.createElement(qo.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:Ot,checkStrictly:!Ot,className:`${Tt}-menu`,onCheck:vr,checkedKeys:Nn,selectedKeys:Nn,showIcon:!1,treeData:Wo({filters:wt.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:Pr.trim()?xr=>typeof Gt=="function"?Gt(Pr,Xn(xr)):Ji(Pr,xr.title):void 0}))):ne.createElement(ne.Fragment,null,ne.createElement(gi,{filterSearch:Gt,value:Pr,onChange:jr,tablePrefixCls:ht,locale:Vt}),ne.createElement(Po.default,{selectable:!0,multiple:Ot,prefixCls:`${Tt}-menu`,className:oo,onSelect:Jn,onDeselect:Jn,selectedKeys:Nn,getPopupContainer:un,openKeys:sr,onOpenChange:Sr,items:Qi({filters:wt.filters||[],filterSearch:Gt,prefixCls:Pt,filteredKeys:pn(),filterMultiple:Ot,searchValue:Pr})})),Or=()=>ln?(0,ae.Z)((vn||[]).map(xr=>String(xr)),Nn,!0):Nn.length===0;Vn=ne.createElement(ne.Fragment,null,ar(),ne.createElement("div",{className:`${Pt}-dropdown-btns`},ne.createElement(ir.ZP,{type:"link",size:"small",disabled:Or(),onClick:()=>ur()},Vt.filterReset),ne.createElement(ir.ZP,{type:"primary",size:"small",onClick:yo},Vt.filterConfirm)))}wt.filterDropdown&&(Vn=ne.createElement(Qo.J,{selectable:void 0},Vn));const Wn=()=>ne.createElement(Ra,{className:`${Pt}-dropdown`},Vn);let kn;typeof wt.filterIcon=="function"?kn=wt.filterIcon(cr):wt.filterIcon?kn=wt.filterIcon:kn=ne.createElement(Dr,null);const{direction:kr}=ne.useContext(Ir.E_);return ne.createElement("div",{className:`${Pt}-column`},ne.createElement("span",{className:`${ht}-column-title`},Jt),ne.createElement(Fr.Z,{dropdownRender:Wn,trigger:["click"],open:Rn,onOpenChange:Mr,getPopupContainer:un,placement:kr==="rtl"?"bottomLeft":"bottomRight"},ne.createElement("span",{role:"button",tabIndex:-1,className:_e()(`${Pt}-trigger`,{active:cr}),onClick:Nn=>{Nn.stopPropagation()}},kn)))}var Ma=Da;function Ii(Ve,et,dt){let ht=[];return(Ve||[]).forEach((Pt,wt)=>{var Tt;const At=Ar(wt,dt);if(Pt.filters||"filterDropdown"in Pt||"onFilter"in Pt)if("filteredValue"in Pt){let Ot=Pt.filteredValue;"filterDropdown"in Pt||(Ot=(Tt=Ot==null?void 0:Ot.map(String))!==null&&Tt!==void 0?Tt:Ot),ht.push({column:Pt,key:br(Pt,At),filteredKeys:Ot,forceFiltered:Pt.filtered})}else ht.push({column:Pt,key:br(Pt,At),filteredKeys:et&&Pt.defaultFilteredValue?Pt.defaultFilteredValue:void 0,forceFiltered:Pt.filtered});"children"in Pt&&(ht=[].concat((0,en.Z)(ht),(0,en.Z)(Ii(Pt.children,et,At))))}),ht}function qi(Ve,et,dt,ht,Pt,wt,Tt,At){return dt.map((Ot,kt)=>{const Gt=Ar(kt,At),{filterMultiple:Nt=!0,filterMode:Qt,filterSearch:Vt}=Ot;let Jt=Ot;if(Jt.filters||Jt.filterDropdown){const un=br(Jt,Gt),sn=ht.find(dn=>{let{key:ln}=dn;return un===ln});Jt=Object.assign(Object.assign({},Jt),{title:dn=>ne.createElement(Ma,{tablePrefixCls:Ve,prefixCls:`${Ve}-filter`,dropdownPrefixCls:et,column:Jt,columnKey:un,filterState:sn,filterMultiple:Nt,filterMode:Qt,filterSearch:Vt,triggerFilter:wt,locale:Pt,getPopupContainer:Tt},Kr(Ot.title,dn))})}return"children"in Jt&&(Jt=Object.assign(Object.assign({},Jt),{children:qi(Ve,et,Jt.children,ht,Pt,wt,Tt,Gt)})),Jt})}function ea(Ve){const et={};return Ve.forEach(dt=>{let{key:ht,filteredKeys:Pt,column:wt}=dt;const{filters:Tt,filterDropdown:At}=wt;if(At)et[ht]=Pt||null;else if(Array.isArray(Pt)){const Ot=wi(Tt);et[ht]=Ot.filter(kt=>Pt.includes(String(kt)))}else et[ht]=null}),et}function ta(Ve,et){return et.reduce((dt,ht)=>{const{column:{onFilter:Pt,filters:wt},filteredKeys:Tt}=ht;return Pt&&Tt&&Tt.length?dt.filter(At=>Tt.some(Ot=>{const kt=wi(wt),Gt=kt.findIndex(Qt=>String(Qt)===String(Ot)),Nt=Gt!==-1?kt[Gt]:Ot;return Pt(Nt,At)})):dt},Ve)}const na=Ve=>Ve.flatMap(et=>"children"in et?[et].concat((0,en.Z)(na(et.children||[]))):[et]);function ka(Ve){let{prefixCls:et,dropdownPrefixCls:dt,mergedColumns:ht,onFilterChange:Pt,getPopupContainer:wt,locale:Tt}=Ve;const At=ne.useMemo(()=>na(ht||[]),[ht]),[Ot,kt]=ne.useState(()=>Ii(At,!0)),Gt=ne.useMemo(()=>{const Jt=Ii(At,!1);if(Jt.length===0)return Jt;let un=!0,sn=!0;if(Jt.forEach(dn=>{let{filteredKeys:ln}=dn;ln!==void 0?un=!1:sn=!1}),un){const dn=(At||[]).map((ln,vn)=>br(ln,Ar(vn)));return Ot.filter(ln=>{let{key:vn}=ln;return dn.includes(vn)}).map(ln=>{const vn=At[dn.findIndex(Fn=>Fn===ln.key)];return Object.assign(Object.assign({},ln),{column:Object.assign(Object.assign({},ln.column),vn),forceFiltered:vn.filtered})})}return Jt},[At,Ot]),Nt=ne.useMemo(()=>ea(Gt),[Gt]),Qt=Jt=>{const un=Gt.filter(sn=>{let{key:dn}=sn;return dn!==Jt.key});un.push(Jt),kt(un),Pt(ea(un),un)};return[Jt=>qi(et,dt,Jt,Gt,Tt,Qt,wt),Gt,Nt]}var Na=ka;function Ba(Ve,et,dt){const ht=ne.useRef({});function Pt(wt){if(!ht.current||ht.current.data!==Ve||ht.current.childrenColumnName!==et||ht.current.getRowKey!==dt){let At=function(Ot){Ot.forEach((kt,Gt)=>{const Nt=dt(kt,Gt);Tt.set(Nt,kt),kt&&typeof kt=="object"&&et in kt&&At(kt[et]||[])})};const Tt=new Map;At(Ve),ht.current={data:Ve,childrenColumnName:et,kvMap:Tt,getRowKey:dt}}return ht.current.kvMap.get(wt)}return[Pt]}var Fa=ye(50371),za=function(Ve,et){var dt={};for(var ht in Ve)Object.prototype.hasOwnProperty.call(Ve,ht)&&et.indexOf(ht)<0&&(dt[ht]=Ve[ht]);if(Ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pt=0,ht=Object.getOwnPropertySymbols(Ve);Pt<ht.length;Pt++)et.indexOf(ht[Pt])<0&&Object.prototype.propertyIsEnumerable.call(Ve,ht[Pt])&&(dt[ht[Pt]]=Ve[ht[Pt]]);return dt};const ra=10;function Ha(Ve,et){const dt={current:Ve.current,pageSize:Ve.pageSize};return Object.keys(et&&typeof et=="object"?et:{}).forEach(Pt=>{const wt=Ve[Pt];typeof wt!="function"&&(dt[Pt]=wt)}),dt}function Ua(Ve,et,dt){const ht=dt&&typeof dt=="object"?dt:{},{total:Pt=0}=ht,wt=za(ht,["total"]),[Tt,At]=(0,ne.useState)(()=>({current:"defaultCurrent"in wt?wt.defaultCurrent:1,pageSize:"defaultPageSize"in wt?wt.defaultPageSize:ra})),Ot=(0,Fa.Z)(Tt,wt,{total:Pt>0?Pt:Ve}),kt=Math.ceil((Pt||Ve)/Ot.pageSize);Ot.current>kt&&(Ot.current=kt||1);const Gt=(Qt,Vt)=>{At({current:Qt!=null?Qt:1,pageSize:Vt||Ot.pageSize})},Nt=(Qt,Vt)=>{var Jt;dt&&((Jt=dt.onChange)===null||Jt===void 0||Jt.call(dt,Qt,Vt)),Gt(Qt,Vt),et(Qt,Vt||(Ot==null?void 0:Ot.pageSize))};return dt===!1?[{},()=>{}]:[Object.assign(Object.assign({},Ot),{onChange:Nt}),Gt]}var Ga=Ua,Wa=ye(84105),oa=ye(35654),Di=ye(90782),$a=ye(71430),Ka=ye(18929);const hi={},Mi="SELECT_ALL",ki="SELECT_INVERT",Ni="SELECT_NONE",ia=[],aa=(Ve,et)=>{let dt=[];return(et||[]).forEach(ht=>{dt.push(ht),ht&&typeof ht=="object"&&Ve in ht&&(dt=[].concat((0,en.Z)(dt),(0,en.Z)(aa(Ve,ht[Ve]))))}),dt};var Za=(Ve,et)=>{const{preserveSelectedRowKeys:dt,selectedRowKeys:ht,defaultSelectedRowKeys:Pt,getCheckboxProps:wt,onChange:Tt,onSelect:At,onSelectAll:Ot,onSelectInvert:kt,onSelectNone:Gt,onSelectMultiple:Nt,columnWidth:Qt,type:Vt,selections:Jt,fixed:un,renderCell:sn,hideSelectAll:dn,checkStrictly:ln=!0}=et||{},{prefixCls:vn,data:Fn,pageData:Un,getRecordByKey:On,getRowKey:er,expandType:cr,childrenColumnName:bn,locale:Rn,getPopupContainer:Pn}=Ve,[pn,xn]=(0,Ka.Z)(ht||Pt||ia,{value:ht}),Jn=ne.useRef(new Map),vr=(0,ne.useCallback)(Xn=>{if(dt){const Vn=new Map;Xn.forEach(Wn=>{let kn=On(Wn);!kn&&Jn.current.has(Wn)&&(kn=Jn.current.get(Wn)),Vn.set(Wn,kn)}),Jn.current=Vn}},[On,dt]);ne.useEffect(()=>{vr(pn)},[pn]);const{keyEntities:sr}=(0,ne.useMemo)(()=>{if(ln)return{keyEntities:null};let Xn=Fn;if(dt){const Vn=new Set(Fn.map((kn,kr)=>er(kn,kr))),Wn=Array.from(Jn.current).reduce((kn,kr)=>{let[Nn,ar]=kr;return Vn.has(Nn)?kn:kn.concat(ar)},[]);Xn=[].concat((0,en.Z)(Xn),(0,en.Z)(Wn))}return(0,$a.I8)(Xn,{externalGetKey:er,childrenPropName:bn})},[Fn,er,ln,bn,dt]),Gn=(0,ne.useMemo)(()=>aa(bn,Un),[bn,Un]),Sr=(0,ne.useMemo)(()=>{const Xn=new Map;return Gn.forEach((Vn,Wn)=>{const kn=er(Vn,Wn),kr=(wt?wt(Vn):null)||{};Xn.set(kn,kr)}),Xn},[Gn,er,wt]),Pr=(0,ne.useCallback)(Xn=>{var Vn;return!!(!((Vn=Sr.get(er(Xn)))===null||Vn===void 0)&&Vn.disabled)},[Sr,er]),[Xr,jr]=(0,ne.useMemo)(()=>{if(ln)return[pn||[],[]];const{checkedKeys:Xn,halfCheckedKeys:Vn}=(0,Di.S)(pn,!0,sr,Pr);return[Xn||[],Vn]},[pn,ln,sr,Pr]),vo=(0,ne.useMemo)(()=>{const Xn=Vt==="radio"?Xr.slice(0,1):Xr;return new Set(Xn)},[Xr,Vt]),yo=(0,ne.useMemo)(()=>Vt==="radio"?new Set:new Set(jr),[jr,Vt]),[ur,wo]=(0,ne.useState)(null);ne.useEffect(()=>{et||xn(ia)},[!!et]);const Mr=(0,ne.useCallback)((Xn,Vn)=>{let Wn,kn;vr(Xn),dt?(Wn=Xn,kn=Xn.map(kr=>Jn.current.get(kr))):(Wn=[],kn=[],Xn.forEach(kr=>{const Nn=On(kr);Nn!==void 0&&(Wn.push(kr),kn.push(Nn))})),xn(Wn),Tt==null||Tt(Wn,kn,{type:Vn})},[xn,On,Tt,dt]),oo=(0,ne.useCallback)((Xn,Vn,Wn,kn)=>{if(At){const kr=Wn.map(Nn=>On(Nn));At(On(Xn),Vn,kr,kn)}Mr(Wn,"single")},[At,On,Mr]),to=(0,ne.useMemo)(()=>!Jt||dn?null:(Jt===!0?[Mi,ki,Ni]:Jt).map(Vn=>Vn===Mi?{key:"all",text:Rn.selectionAll,onSelect(){Mr(Fn.map((Wn,kn)=>er(Wn,kn)).filter(Wn=>{const kn=Sr.get(Wn);return!(kn!=null&&kn.disabled)||vo.has(Wn)}),"all")}}:Vn===ki?{key:"invert",text:Rn.selectInvert,onSelect(){const Wn=new Set(vo);Un.forEach((kr,Nn)=>{const ar=er(kr,Nn),Or=Sr.get(ar);Or!=null&&Or.disabled||(Wn.has(ar)?Wn.delete(ar):Wn.add(ar))});const kn=Array.from(Wn);kt&&kt(kn),Mr(kn,"invert")}}:Vn===Ni?{key:"none",text:Rn.selectNone,onSelect(){Gt==null||Gt(),Mr(Array.from(vo).filter(Wn=>{const kn=Sr.get(Wn);return kn==null?void 0:kn.disabled}),"none")}}:Vn).map(Vn=>Object.assign(Object.assign({},Vn),{onSelect:function(){for(var Wn,kn,kr=arguments.length,Nn=new Array(kr),ar=0;ar<kr;ar++)Nn[ar]=arguments[ar];(kn=Vn.onSelect)===null||kn===void 0||(Wn=kn).call.apply(Wn,[Vn].concat(Nn)),wo(null)}})),[Jt,vo,Un,er,kt,Mr]);return[(0,ne.useCallback)(Xn=>{var Vn;if(!et)return Xn.filter(Hr=>Hr!==hi);let Wn=(0,en.Z)(Xn);const kn=new Set(vo),kr=Gn.map(er).filter(Hr=>!Sr.get(Hr).disabled),Nn=kr.every(Hr=>kn.has(Hr)),ar=kr.some(Hr=>kn.has(Hr)),Or=()=>{const Hr=[];Nn?kr.forEach(uo=>{kn.delete(uo),Hr.push(uo)}):kr.forEach(uo=>{kn.has(uo)||(kn.add(uo),Hr.push(uo))});const Gr=Array.from(kn);Ot==null||Ot(!Nn,Gr.map(uo=>On(uo)),Hr.map(uo=>On(uo))),Mr(Gr,"all"),wo(null)};let xr;if(Vt!=="radio"){let Hr;if(to){const wr={getPopupContainer:Pn,items:to.map((Ho,No)=>{const{key:Jo,text:ai,onSelect:ii}=Ho;return{key:Jo!=null?Jo:No,onClick:()=>{ii==null||ii(kr)},label:ai}})};Hr=ne.createElement("div",{className:`${vn}-selection-extra`},ne.createElement(Fr.Z,{menu:wr,getPopupContainer:Pn},ne.createElement("span",null,ne.createElement(Wa.Z,null))))}const Gr=Gn.map((wr,Ho)=>{const No=er(wr,Ho),Jo=Sr.get(No)||{};return Object.assign({checked:kn.has(No)},Jo)}).filter(wr=>{let{disabled:Ho}=wr;return Ho}),uo=!!Gr.length&&Gr.length===Gn.length,Oo=uo&&Gr.every(wr=>{let{checked:Ho}=wr;return Ho}),To=uo&&Gr.some(wr=>{let{checked:Ho}=wr;return Ho});xr=!dn&&ne.createElement("div",{className:`${vn}-selection`},ne.createElement(Zn.default,{checked:uo?Oo:!!Gn.length&&Nn,indeterminate:uo?!Oo&&To:!Nn&&ar,onChange:Or,disabled:Gn.length===0||uo,"aria-label":Hr?"Custom selection":"Select all",skipGroup:!0}),Hr)}let ko;Vt==="radio"?ko=(Hr,Gr,uo)=>{const Oo=er(Gr,uo),To=kn.has(Oo);return{node:ne.createElement(ri.ZP,Object.assign({},Sr.get(Oo),{checked:To,onClick:wr=>wr.stopPropagation(),onChange:wr=>{kn.has(Oo)||oo(Oo,!0,[Oo],wr.nativeEvent)}})),checked:To}}:ko=(Hr,Gr,uo)=>{var Oo;const To=er(Gr,uo),wr=kn.has(To),Ho=yo.has(To),No=Sr.get(To);let Jo;return cr==="nest"?Jo=Ho:Jo=(Oo=No==null?void 0:No.indeterminate)!==null&&Oo!==void 0?Oo:Ho,{node:ne.createElement(Zn.default,Object.assign({},No,{indeterminate:Jo,checked:wr,skipGroup:!0,onClick:ai=>ai.stopPropagation(),onChange:ai=>{let{nativeEvent:ii}=ai;const{shiftKey:xi}=ii;let di=-1,ti=-1;if(xi&&ln){const Ko=new Set([ur,To]);kr.some((Uo,Ao)=>{if(Ko.has(Uo))if(di===-1)di=Ao;else return ti=Ao,!0;return!1})}if(ti!==-1&&di!==ti&&ln){const Ko=kr.slice(di,ti+1),Uo=[];wr?Ko.forEach(fo=>{kn.has(fo)&&(Uo.push(fo),kn.delete(fo))}):Ko.forEach(fo=>{kn.has(fo)||(Uo.push(fo),kn.add(fo))});const Ao=Array.from(kn);Nt==null||Nt(!wr,Ao.map(fo=>On(fo)),Uo.map(fo=>On(fo))),Mr(Ao,"multiple")}else{const Ko=Xr;if(ln){const Uo=wr?(0,oa._5)(Ko,To):(0,oa.L0)(Ko,To);oo(To,!wr,Uo,ii)}else{const Uo=(0,Di.S)([].concat((0,en.Z)(Ko),[To]),!0,sr,Pr),{checkedKeys:Ao,halfCheckedKeys:fo}=Uo;let si=Ao;if(wr){const bi=new Set(Ao);bi.delete(To),si=(0,Di.S)(Array.from(bi),{checked:!1,halfCheckedKeys:fo},sr,Pr).checkedKeys}oo(To,!wr,si,ii)}}wo(wr?null:To)}})),checked:wr}};const Ro=(Hr,Gr,uo)=>{const{node:Oo,checked:To}=ko(Hr,Gr,uo);return sn?sn(To,Gr,uo,Oo):Oo};if(!Wn.includes(hi))if(Wn.findIndex(Hr=>{var Gr;return((Gr=Hr[on])===null||Gr===void 0?void 0:Gr.columnType)==="EXPAND_COLUMN"})===0){const[Hr,...Gr]=Wn;Wn=[Hr,hi].concat((0,en.Z)(Gr))}else Wn=[hi].concat((0,en.Z)(Wn));const oi=Wn.indexOf(hi);Wn=Wn.filter((Hr,Gr)=>Hr!==hi||Gr===oi);const Co=Wn[oi-1],ei=Wn[oi+1];let _o=un;_o===void 0&&((ei==null?void 0:ei.fixed)!==void 0?_o=ei.fixed:(Co==null?void 0:Co.fixed)!==void 0&&(_o=Co.fixed)),_o&&Co&&((Vn=Co[on])===null||Vn===void 0?void 0:Vn.columnType)==="EXPAND_COLUMN"&&Co.fixed===void 0&&(Co.fixed=_o);const $o=_e()(`${vn}-selection-col`,{[`${vn}-selection-col-with-dropdown`]:Jt&&Vt==="checkbox"}),Si={fixed:_o,width:Qt,className:`${vn}-selection-column`,title:et.columnTitle||xr,render:Ro,onCell:et.onCell,[on]:{className:$o}};return Wn.map(Hr=>Hr===hi?Si:Hr)},[er,Gn,et,Xr,vo,yo,Qt,to,cr,ur,Sr,Nt,oo,Pr]),vo]},Va=ye(89489),Xa=ye(59477),Ya=ye(6848);const Ei="ascend",Bi="descend";function Li(Ve){return typeof Ve.sorter=="object"&&typeof Ve.sorter.multiple=="number"?Ve.sorter.multiple:!1}function sa(Ve){return typeof Ve=="function"?Ve:Ve&&typeof Ve=="object"&&Ve.compare?Ve.compare:!1}function Ja(Ve,et){return et?Ve[Ve.indexOf(et)+1]:Ve[0]}function Fi(Ve,et,dt){let ht=[];function Pt(wt,Tt){ht.push({column:wt,key:br(wt,Tt),multiplePriority:Li(wt),sortOrder:wt.sortOrder})}return(Ve||[]).forEach((wt,Tt)=>{const At=Ar(Tt,dt);wt.children?("sortOrder"in wt&&Pt(wt,At),ht=[].concat((0,en.Z)(ht),(0,en.Z)(Fi(wt.children,et,At)))):wt.sorter&&("sortOrder"in wt?Pt(wt,At):et&&wt.defaultSortOrder&&ht.push({column:wt,key:br(wt,At),multiplePriority:Li(wt),sortOrder:wt.defaultSortOrder}))}),ht}function la(Ve,et,dt,ht,Pt,wt,Tt,At){return(et||[]).map((Ot,kt)=>{const Gt=Ar(kt,At);let Nt=Ot;if(Nt.sorter){const Qt=Nt.sortDirections||Pt,Vt=Nt.showSorterTooltip===void 0?Tt:Nt.showSorterTooltip,Jt=br(Nt,Gt),un=dt.find(cr=>{let{key:bn}=cr;return bn===Jt}),sn=un?un.sortOrder:null,dn=Ja(Qt,sn);let ln;if(Ot.sortIcon)ln=Ot.sortIcon({sortOrder:sn});else{const cr=Qt.includes(Ei)&&ne.createElement(Xa.Z,{className:_e()(`${Ve}-column-sorter-up`,{active:sn===Ei})}),bn=Qt.includes(Bi)&&ne.createElement(Va.Z,{className:_e()(`${Ve}-column-sorter-down`,{active:sn===Bi})});ln=ne.createElement("span",{className:_e()(`${Ve}-column-sorter`,{[`${Ve}-column-sorter-full`]:!!(cr&&bn)})},ne.createElement("span",{className:`${Ve}-column-sorter-inner`,"aria-hidden":"true"},cr,bn))}const{cancelSort:vn,triggerAsc:Fn,triggerDesc:Un}=wt||{};let On=vn;dn===Bi?On=Un:dn===Ei&&(On=Fn);const er=typeof Vt=="object"?Vt:{title:On};Nt=Object.assign(Object.assign({},Nt),{className:_e()(Nt.className,{[`${Ve}-column-sort`]:sn}),title:cr=>{const bn=ne.createElement("div",{className:`${Ve}-column-sorters`},ne.createElement("span",{className:`${Ve}-column-title`},Kr(Ot.title,cr)),ln);return Vt?ne.createElement(Ya.Z,Object.assign({},er),bn):bn},onHeaderCell:cr=>{const bn=Ot.onHeaderCell&&Ot.onHeaderCell(cr)||{},Rn=bn.onClick,Pn=bn.onKeyDown;bn.onClick=Jn=>{ht({column:Ot,key:Jt,sortOrder:dn,multiplePriority:Li(Ot)}),Rn==null||Rn(Jn)},bn.onKeyDown=Jn=>{Jn.keyCode===Yi.Z.ENTER&&(ht({column:Ot,key:Jt,sortOrder:dn,multiplePriority:Li(Ot)}),Pn==null||Pn(Jn))};const pn=Yr(Ot.title,{}),xn=pn==null?void 0:pn.toString();return sn?bn["aria-sort"]=sn==="ascend"?"ascending":"descending":bn["aria-label"]=xn||"",bn.className=_e()(bn.className,`${Ve}-column-has-sorters`),bn.tabIndex=0,Ot.ellipsis&&(bn.title=(pn!=null?pn:"").toString()),bn}})}return"children"in Nt&&(Nt=Object.assign(Object.assign({},Nt),{children:la(Ve,Nt.children,dt,ht,Pt,wt,Tt,Gt)})),Nt})}function ca(Ve){const{column:et,sortOrder:dt}=Ve;return{column:et,order:dt,field:et.dataIndex,columnKey:et.key}}function ua(Ve){const et=Ve.filter(dt=>{let{sortOrder:ht}=dt;return ht}).map(ca);return et.length===0&&Ve.length?Object.assign(Object.assign({},ca(Ve[Ve.length-1])),{column:void 0}):et.length<=1?et[0]||{}:et}function zi(Ve,et,dt){const ht=et.slice().sort((Tt,At)=>At.multiplePriority-Tt.multiplePriority),Pt=Ve.slice(),wt=ht.filter(Tt=>{let{column:{sorter:At},sortOrder:Ot}=Tt;return sa(At)&&Ot});return wt.length?Pt.sort((Tt,At)=>{for(let Ot=0;Ot<wt.length;Ot+=1){const kt=wt[Ot],{column:{sorter:Gt},sortOrder:Nt}=kt,Qt=sa(Gt);if(Qt&&Nt){const Vt=Qt(Tt,At,Nt);if(Vt!==0)return Nt===Ei?Vt:-Vt}}return 0}).map(Tt=>{const At=Tt[dt];return At?Object.assign(Object.assign({},Tt),{[dt]:zi(At,et,dt)}):Tt}):Pt}function Qa(Ve){let{prefixCls:et,mergedColumns:dt,onSorterChange:ht,sortDirections:Pt,tableLocale:wt,showSorterTooltip:Tt}=Ve;const[At,Ot]=ne.useState(Fi(dt,!0)),kt=ne.useMemo(()=>{let Jt=!0;const un=Fi(dt,!1);if(!un.length)return At;const sn=[];function dn(vn){Jt?sn.push(vn):sn.push(Object.assign(Object.assign({},vn),{sortOrder:null}))}let ln=null;return un.forEach(vn=>{ln===null?(dn(vn),vn.sortOrder&&(vn.multiplePriority===!1?Jt=!1:ln=!0)):(ln&&vn.multiplePriority!==!1||(Jt=!1),dn(vn))}),sn},[dt,At]),Gt=ne.useMemo(()=>{const Jt=kt.map(un=>{let{column:sn,sortOrder:dn}=un;return{column:sn,order:dn}});return{sortColumns:Jt,sortColumn:Jt[0]&&Jt[0].column,sortOrder:Jt[0]&&Jt[0].order}},[kt]);function Nt(Jt){let un;Jt.multiplePriority===!1||!kt.length||kt[0].multiplePriority===!1?un=[Jt]:un=[].concat((0,en.Z)(kt.filter(sn=>{let{key:dn}=sn;return dn!==Jt.key})),[Jt]),Ot(un),ht(ua(un),un)}return[Jt=>la(et,Jt,kt,Nt,Pt,wt,Tt),kt,Gt,()=>ua(kt)]}function da(Ve,et){return Ve.map(dt=>{const ht=Object.assign({},dt);return ht.title=Kr(dt.title,et),"children"in ht&&(ht.children=da(ht.children,et)),ht})}function qa(Ve){return[ne.useCallback(dt=>da(dt,Ve),[Ve])]}var es=Yn((Ve,et)=>{const{_renderTimes:dt}=Ve,{_renderTimes:ht}=et;return dt!==ht}),ts=So((Ve,et)=>{const{_renderTimes:dt}=Ve,{_renderTimes:ht}=et;return dt!==ht}),_i=ye(64993),Oi=ye(17313),ns=ye(83116),rs=ye(37613),os=Ve=>{const{componentCls:et}=Ve,dt=`${Ve.lineWidth}px ${Ve.lineType} ${Ve.tableBorderColor}`,ht=(Pt,wt,Tt)=>({[`&${et}-${Pt}`]:{[`> ${et}-container`]:{[`> ${et}-content, > ${et}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${et}-expanded-row-fixed`]:{margin:`-${wt}px -${Tt+Ve.lineWidth}px`}}}}}});return{[`${et}-wrapper`]:{[`${et}${et}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${et}-title`]:{border:dt,borderBottom:0},[`> ${et}-container`]:{borderInlineStart:dt,borderTop:dt,[`
|
|
|
> ${et}-content,
|
|
|
> ${et}-header,
|
|
|
> ${et}-body,
|
|
|
> ${et}-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:dt},"> thead":{"> tr:not(:last-child) > th":{borderBottom:dt},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${et}-cell-fix-right-first::after`]:{borderInlineEnd:dt}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${et}-expanded-row-fixed`]:{margin:`-${Ve.tablePaddingVertical}px -${Ve.tablePaddingHorizontal+Ve.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:Ve.lineWidth,bottom:0,borderInlineEnd:dt,content:'""'}}}}}},[`&${et}-scroll-horizontal`]:{[`> ${et}-container > ${et}-body`]:{"> table > tbody":{[`
|
|
|
> tr${et}-expanded-row,
|
|
|
> tr${et}-placeholder
|
|
|
`]:{"> th, > td":{borderInlineEnd:0}}}}}},ht("middle",Ve.tablePaddingVerticalMiddle,Ve.tablePaddingHorizontalMiddle)),ht("small",Ve.tablePaddingVerticalSmall,Ve.tablePaddingHorizontalSmall)),{[`> ${et}-footer`]:{border:dt,borderTop:0}}),[`${et}-cell`]:{[`${et}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${Ve.lineWidth}px 0 ${Ve.lineWidth}px ${Ve.tableHeaderBg}`}},[`${et}-bordered ${et}-cell-scrollbar`]:{borderInlineEnd:dt}}}},is=Ve=>{const{componentCls:et}=Ve;return{[`${et}-wrapper`]:{[`${et}-cell-ellipsis`]:Object.assign(Object.assign({},Oi.vS),{wordBreak:"keep-all",[`
|
|
|
&${et}-cell-fix-left-last,
|
|
|
&${et}-cell-fix-right-first
|
|
|
`]:{overflow:"visible",[`${et}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${et}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},as=Ve=>{const{componentCls:et}=Ve;return{[`${et}-wrapper`]:{[`${et}-tbody > tr${et}-placeholder`]:{textAlign:"center",color:Ve.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:Ve.colorBgContainer}}}}},ss=ye(15969),ls=Ve=>{const{componentCls:et,antCls:dt,controlInteractiveSize:ht,motionDurationSlow:Pt,lineWidth:wt,paddingXS:Tt,lineType:At,tableBorderColor:Ot,tableExpandIconBg:kt,tableExpandColumnWidth:Gt,borderRadius:Nt,fontSize:Qt,fontSizeSM:Vt,lineHeight:Jt,tablePaddingVertical:un,tablePaddingHorizontal:sn,tableExpandedRowBg:dn,paddingXXS:ln}=Ve,vn=ht/2-wt,Fn=vn*2+wt*3,Un=`${wt}px ${At} ${Ot}`,On=ln-wt;return{[`${et}-wrapper`]:{[`${et}-expand-icon-col`]:{width:Gt},[`${et}-row-expand-icon-cell`]:{textAlign:"center",[`${et}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${et}-row-indent`]:{height:1,float:"left"},[`${et}-row-expand-icon`]:Object.assign(Object.assign({},(0,ss.N)(Ve)),{position:"relative",float:"left",boxSizing:"border-box",width:Fn,height:Fn,padding:0,color:"inherit",lineHeight:`${Fn}px`,background:kt,border:Un,borderRadius:Nt,transform:`scale(${ht/Fn})`,transition:`all ${Pt}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${Pt} ease-out`,content:'""'},"&::before":{top:vn,insetInlineEnd:On,insetInlineStart:On,height:wt},"&::after":{top:On,bottom:On,insetInlineStart:vn,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"}}),[`${et}-row-indent + ${et}-row-expand-icon`]:{marginTop:(Qt*Jt-wt*3)/2-Math.ceil((Vt*1.4-wt*3)/2),marginInlineEnd:Tt},[`tr${et}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:dn}},[`${dt}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${et}-expanded-row-fixed`]:{position:"relative",margin:`-${un}px -${sn}px`,padding:`${un}px ${sn}px`}}}},cs=Ve=>{const{componentCls:et,antCls:dt,iconCls:ht,tableFilterDropdownWidth:Pt,tableFilterDropdownSearchWidth:wt,paddingXXS:Tt,paddingXS:At,colorText:Ot,lineWidth:kt,lineType:Gt,tableBorderColor:Nt,tableHeaderIconColor:Qt,fontSizeSM:Vt,tablePaddingHorizontal:Jt,borderRadius:un,motionDurationSlow:sn,colorTextDescription:dn,colorPrimary:ln,tableHeaderFilterActiveBg:vn,colorTextDisabled:Fn,tableFilterDropdownBg:Un,tableFilterDropdownHeight:On,controlItemBgHover:er,controlItemBgActive:cr,boxShadowSecondary:bn,filterDropdownMenuBg:Rn}=Ve,Pn=`${dt}-dropdown`,pn=`${et}-filter-dropdown`,xn=`${dt}-tree`,Jn=`${kt}px ${Gt} ${Nt}`;return[{[`${et}-wrapper`]:{[`${et}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${et}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-Tt,marginInline:`${Tt}px ${-Jt/2}px`,padding:`0 ${Tt}px`,color:Qt,fontSize:Vt,borderRadius:un,cursor:"pointer",transition:`all ${sn}`,"&:hover":{color:dn,background:vn},"&.active":{color:ln}}}},{[`${dt}-dropdown`]:{[pn]:Object.assign(Object.assign({},(0,Oi.Wf)(Ve)),{minWidth:Pt,backgroundColor:Un,borderRadius:un,boxShadow:bn,overflow:"hidden",[`${Pn}-menu`]:{maxHeight:On,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:Rn,"&:empty::after":{display:"block",padding:`${At}px 0`,color:Fn,fontSize:Vt,textAlign:"center",content:'"Not Found"'}},[`${pn}-tree`]:{paddingBlock:`${At}px 0`,paddingInline:At,[xn]:{padding:0},[`${xn}-treenode ${xn}-node-content-wrapper:hover`]:{backgroundColor:er},[`${xn}-treenode-checkbox-checked ${xn}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:cr}}},[`${pn}-search`]:{padding:At,borderBottom:Jn,"&-input":{input:{minWidth:wt},[ht]:{color:Fn}}},[`${pn}-checkall`]:{width:"100%",marginBottom:Tt,marginInlineStart:Tt},[`${pn}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${At-kt}px ${At}px`,overflow:"hidden",borderTop:Jn}})}},{[`${dt}-dropdown ${pn}, ${pn}-submenu`]:{[`${dt}-checkbox-wrapper + span`]:{paddingInlineStart:At,color:Ot},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},us=Ve=>{const{componentCls:et,lineWidth:dt,colorSplit:ht,motionDurationSlow:Pt,zIndexTableFixed:wt,tableBg:Tt,zIndexTableSticky:At}=Ve,Ot=ht;return{[`${et}-wrapper`]:{[`
|
|
|
${et}-cell-fix-left,
|
|
|
${et}-cell-fix-right
|
|
|
`]:{position:"sticky !important",zIndex:wt,background:Tt},[`
|
|
|
${et}-cell-fix-left-first::after,
|
|
|
${et}-cell-fix-left-last::after
|
|
|
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-dt,width:30,transform:"translateX(100%)",transition:`box-shadow ${Pt}`,content:'""',pointerEvents:"none"},[`${et}-cell-fix-left-all::after`]:{display:"none"},[`
|
|
|
${et}-cell-fix-right-first::after,
|
|
|
${et}-cell-fix-right-last::after
|
|
|
`]:{position:"absolute",top:0,bottom:-dt,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${Pt}`,content:'""',pointerEvents:"none"},[`${et}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:At+1,width:30,transition:`box-shadow ${Pt}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${et}-ping-left`]:{[`&:not(${et}-has-fix-left) ${et}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${Ot}`}},[`
|
|
|
${et}-cell-fix-left-first::after,
|
|
|
${et}-cell-fix-left-last::after
|
|
|
`]:{boxShadow:`inset 10px 0 8px -8px ${Ot}`},[`${et}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${et}-ping-right`]:{[`&:not(${et}-has-fix-right) ${et}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${Ot}`}},[`
|
|
|
${et}-cell-fix-right-first::after,
|
|
|
${et}-cell-fix-right-last::after
|
|
|
`]:{boxShadow:`inset -10px 0 8px -8px ${Ot}`}}}}},ds=Ve=>{const{componentCls:et,antCls:dt}=Ve;return{[`${et}-wrapper`]:{[`${et}-pagination${dt}-pagination`]:{margin:`${Ve.margin}px 0`},[`${et}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:Ve.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},fs=Ve=>{const{componentCls:et,tableRadius:dt}=Ve;return{[`${et}-wrapper`]:{[et]:{[`${et}-title, ${et}-header`]:{borderRadius:`${dt}px ${dt}px 0 0`},[`${et}-title + ${et}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${et}-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:dt,borderStartEndRadius:dt,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:dt},"> *:last-child":{borderStartEndRadius:dt}}},"&-footer":{borderRadius:`0 0 ${dt}px ${dt}px`}}}}},gs=Ve=>{const{componentCls:et}=Ve;return{[`${et}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${et}-pagination-left`]:{justifyContent:"flex-end"},[`${et}-pagination-right`]:{justifyContent:"flex-start"},[`${et}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${et}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${et}-row-indent`]:{float:"right"}}}}},hs=Ve=>{const{componentCls:et,antCls:dt,iconCls:ht,fontSizeIcon:Pt,padding:wt,paddingXS:Tt,tableHeaderIconColor:At,tableHeaderIconColorHover:Ot,tableSelectionColumnWidth:kt}=Ve;return{[`${et}-wrapper`]:{[`${et}-selection-col`]:{width:kt,[`&${et}-selection-col-with-dropdown`]:{width:kt+Pt+wt/4}},[`${et}-bordered ${et}-selection-col`]:{width:kt+Tt*2,[`&${et}-selection-col-with-dropdown`]:{width:kt+Pt+wt/4+Tt*2}},[`
|
|
|
table tr th${et}-selection-column,
|
|
|
table tr td${et}-selection-column
|
|
|
`]:{paddingInlineEnd:Ve.paddingXS,paddingInlineStart:Ve.paddingXS,textAlign:"center",[`${dt}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${et}-selection-column${et}-cell-fix-left`]:{zIndex:Ve.zIndexTableFixed+1},[`table tr th${et}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${et}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${et}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${Ve.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${Ve.tablePaddingHorizontal/4}px`,[ht]:{color:At,fontSize:Pt,verticalAlign:"baseline","&:hover":{color:Ot}}}}}},ps=Ve=>{const{componentCls:et}=Ve,dt=(ht,Pt,wt,Tt)=>({[`${et}${et}-${ht}`]:{fontSize:Tt,[`
|
|
|
${et}-title,
|
|
|
${et}-footer,
|
|
|
${et}-cell,
|
|
|
${et}-thead > tr > th,
|
|
|
${et}-tbody > tr > th,
|
|
|
${et}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{padding:`${Pt}px ${wt}px`},[`${et}-filter-trigger`]:{marginInlineEnd:`-${wt/2}px`},[`${et}-expanded-row-fixed`]:{margin:`-${Pt}px -${wt}px`},[`${et}-tbody`]:{[`${et}-wrapper:only-child ${et}`]:{marginBlock:`-${Pt}px`,marginInline:`${Ve.tableExpandColumnWidth-wt}px -${wt}px`}},[`${et}-selection-column`]:{paddingInlineStart:`${wt/4}px`}}});return{[`${et}-wrapper`]:Object.assign(Object.assign({},dt("middle",Ve.tablePaddingVerticalMiddle,Ve.tablePaddingHorizontalMiddle,Ve.tableFontSizeMiddle)),dt("small",Ve.tablePaddingVerticalSmall,Ve.tablePaddingHorizontalSmall,Ve.tableFontSizeSmall))}},ms=Ve=>{const{componentCls:et,marginXXS:dt,fontSizeIcon:ht,tableHeaderIconColor:Pt,tableHeaderIconColorHover:wt}=Ve;return{[`${et}-wrapper`]:{[`${et}-thead th${et}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${Ve.motionDurationSlow}`,"&:hover":{background:Ve.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:Ve.colorPrimary},[`
|
|
|
&${et}-cell-fix-left:hover,
|
|
|
&${et}-cell-fix-right:hover
|
|
|
`]:{background:Ve.tableFixedHeaderSortActiveBg}},[`${et}-thead th${et}-column-sort`]:{background:Ve.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${et}-column-sort`]:{background:Ve.tableBodySortBg},[`${et}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${et}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${et}-column-sorter`]:{marginInlineStart:dt,color:Pt,fontSize:0,transition:`color ${Ve.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:ht,"&.active":{color:Ve.colorPrimary}},[`${et}-column-sorter-up + ${et}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${et}-column-sorters:hover ${et}-column-sorter`]:{color:wt}}}},vs=Ve=>{const{componentCls:et,opacityLoading:dt,tableScrollThumbBg:ht,tableScrollThumbBgHover:Pt,tableScrollThumbSize:wt,tableScrollBg:Tt,zIndexTableSticky:At,stickyScrollBarBorderRadius:Ot}=Ve,kt=`${Ve.lineWidth}px ${Ve.lineType} ${Ve.tableBorderColor}`;return{[`${et}-wrapper`]:{[`${et}-sticky`]:{"&-holder":{position:"sticky",zIndex:At,background:Ve.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${wt}px !important`,zIndex:At,display:"flex",alignItems:"center",background:Tt,borderTop:kt,opacity:dt,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:wt,backgroundColor:ht,borderRadius:Ot,transition:`all ${Ve.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:Pt}}}}}}},fa=Ve=>{const{componentCls:et,lineWidth:dt,tableBorderColor:ht}=Ve,Pt=`${dt}px ${Ve.lineType} ${ht}`;return{[`${et}-wrapper`]:{[`${et}-summary`]:{position:"relative",zIndex:Ve.zIndexTableFixed,background:Ve.tableBg,"> tr":{"> th, > td":{borderBottom:Pt}}},[`div${et}-summary`]:{boxShadow:`0 -${dt}px 0 ${ht}`}}}},ys=Ve=>{const{componentCls:et}=Ve,dt=`${Ve.lineWidth}px ${Ve.lineType} ${Ve.tableBorderColor}`,ht=`${et}-expanded-row-cell`;return{[`${et}-wrapper`]:{[`${et}-tbody-virtual`]:{[`${et}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${et}-cell`]:{borderBottom:dt},[`${et}-expanded-row`]:{[`${ht}${ht}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${Ve.lineWidth}px)`,borderInlineEnd:"none"}}},[`${et}-bordered`]:{[`${et}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:dt,position:"absolute"},[`${et}-cell`]:{borderInlineEnd:dt,[`&${et}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-Ve.lineWidth,borderInlineStart:dt}}}}}}};const Ss=Ve=>{const{componentCls:et,fontWeightStrong:dt,tablePaddingVertical:ht,tablePaddingHorizontal:Pt,lineWidth:wt,lineType:Tt,tableBorderColor:At,tableFontSize:Ot,tableBg:kt,tableRadius:Gt,tableHeaderTextColor:Nt,motionDurationMid:Qt,tableHeaderBg:Vt,tableHeaderCellSplitColor:Jt,tableRowHoverBg:un,tableSelectedRowBg:sn,tableSelectedRowHoverBg:dn,tableFooterTextColor:ln,tableFooterBg:vn,paddingContentVerticalLG:Fn}=Ve,Un=`${wt}px ${Tt} ${At}`;return{[`${et}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,Oi.dF)()),{[et]:Object.assign(Object.assign({},(0,Oi.Wf)(Ve)),{fontSize:Ot,background:kt,borderRadius:`${Gt}px ${Gt}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${Gt}px ${Gt}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`
|
|
|
${et}-cell,
|
|
|
${et}-thead > tr > th,
|
|
|
${et}-tbody > tr > th,
|
|
|
${et}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{position:"relative",padding:`${Fn}px ${Pt}px`,overflowWrap:"break-word"},[`${et}-title`]:{padding:`${ht}px ${Pt}px`},[`${et}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:Nt,fontWeight:dt,textAlign:"start",background:Vt,borderBottom:Un,transition:`background ${Qt} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${et}-selection-column):not(${et}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:Jt,transform:"translateY(-50%)",transition:`background-color ${Qt}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${et}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${Qt}, border-color ${Qt}`,borderBottom:Un,[`
|
|
|
> ${et}-wrapper:only-child,
|
|
|
> ${et}-expanded-row-fixed > ${et}-wrapper:only-child
|
|
|
`]:{[et]:{marginBlock:`-${ht}px`,marginInline:`${Ve.tableExpandColumnWidth-Pt}px -${Pt}px`,[`${et}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:Nt,fontWeight:dt,textAlign:"start",background:Vt,borderBottom:Un,transition:`background ${Qt} ease`},[`
|
|
|
&${et}-row:hover > th,
|
|
|
&${et}-row:hover > td,
|
|
|
> th${et}-cell-row-hover,
|
|
|
> td${et}-cell-row-hover
|
|
|
`]:{background:un},[`&${et}-row-selected`]:{"> th, > td":{background:sn},"&:hover > th, &:hover > td":{background:dn}}}},[`${et}-footer`]:{padding:`${ht}px ${Pt}px`,color:ln,background:vn}})}};var bs=(0,ns.Z)("Table",Ve=>{const{colorTextHeading:et,colorSplit:dt,colorIcon:ht,colorIconHover:Pt,opacityLoading:wt,colorBgContainer:Tt,controlInteractiveSize:At,headerBg:Ot,headerColor:kt,headerSortActiveBg:Gt,headerSortHoverBg:Nt,bodySortBg:Qt,rowHoverBg:Vt,rowSelectedBg:Jt,rowSelectedHoverBg:un,rowExpandedBg:sn,cellPaddingBlock:dn,cellPaddingInline:ln,cellPaddingBlockMD:vn,cellPaddingInlineMD:Fn,cellPaddingBlockSM:Un,cellPaddingInlineSM:On,borderColor:er,footerBg:cr,footerColor:bn,headerBorderRadius:Rn,cellFontSize:Pn,cellFontSizeMD:pn,cellFontSizeSM:xn,headerSplitColor:Jn,fixedHeaderSortActiveBg:vr,headerFilterHoverBg:sr,filterDropdownBg:Gn,expandIconBg:Sr,selectionColumnWidth:Pr,stickyScrollBarBg:Xr}=Ve,jr=new _i.C(ht),vo=new _i.C(Pt),yo=2,ur=(0,rs.TS)(Ve,{tableFontSize:Pn,tableBg:Tt,tableRadius:Rn,tablePaddingVertical:dn,tablePaddingHorizontal:ln,tablePaddingVerticalMiddle:vn,tablePaddingHorizontalMiddle:Fn,tablePaddingVerticalSmall:Un,tablePaddingHorizontalSmall:On,tableBorderColor:er,tableHeaderTextColor:kt,tableHeaderBg:Ot,tableFooterTextColor:bn,tableFooterBg:cr,tableHeaderCellSplitColor:Jn,tableHeaderSortBg:Gt,tableHeaderSortHoverBg:Nt,tableHeaderIconColor:jr.clone().setAlpha(jr.getAlpha()*wt).toRgbString(),tableHeaderIconColorHover:vo.clone().setAlpha(vo.getAlpha()*wt).toRgbString(),tableBodySortBg:Qt,tableFixedHeaderSortActiveBg:vr,tableHeaderFilterActiveBg:sr,tableFilterDropdownBg:Gn,tableRowHoverBg:Vt,tableSelectedRowBg:Jt,tableSelectedRowHoverBg:un,zIndexTableFixed:yo,zIndexTableSticky:yo+1,tableFontSizeMiddle:pn,tableFontSizeSmall:xn,tableSelectionColumnWidth:Pr,tableExpandIconBg:Sr,tableExpandColumnWidth:At+2*Ve.padding,tableExpandedRowBg:sn,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:Xr,tableScrollThumbBgHover:et,tableScrollBg:dt});return[Ss(ur),ds(ur),fa(ur),ms(ur),cs(ur),os(ur),fs(ur),ls(ur),fa(ur),as(ur),hs(ur),us(ur),vs(ur),is(ur),ps(ur),gs(ur),ys(ur)]},Ve=>{const{colorFillAlter:et,colorBgContainer:dt,colorTextHeading:ht,colorFillSecondary:Pt,colorFillContent:wt,controlItemBgActive:Tt,controlItemBgActiveHover:At,padding:Ot,paddingSM:kt,paddingXS:Gt,colorBorderSecondary:Nt,borderRadiusLG:Qt,fontSize:Vt,controlHeight:Jt,colorTextPlaceholder:un}=Ve,sn=new _i.C(Pt).onBackground(dt).toHexShortString(),dn=new _i.C(wt).onBackground(dt).toHexShortString(),ln=new _i.C(et).onBackground(dt).toHexShortString();return{headerBg:ln,headerColor:ht,headerSortActiveBg:sn,headerSortHoverBg:dn,bodySortBg:ln,rowHoverBg:ln,rowSelectedBg:Tt,rowSelectedHoverBg:At,rowExpandedBg:et,cellPaddingBlock:Ot,cellPaddingInline:Ot,cellPaddingBlockMD:kt,cellPaddingInlineMD:Gt,cellPaddingBlockSM:Gt,cellPaddingInlineSM:Gt,borderColor:Nt,headerBorderRadius:Qt,footerBg:ln,footerColor:ht,cellFontSize:Vt,cellFontSizeMD:Vt,cellFontSizeSM:Vt,headerSplitColor:Nt,fixedHeaderSortActiveBg:sn,headerFilterHoverBg:wt,filterDropdownMenuBg:dt,filterDropdownBg:dt,expandIconBg:dt,selectionColumnWidth:Jt,stickyScrollBarBg:un,stickyScrollBarBorderRadius:100}});const Ps=[],ws=(Ve,et)=>{const{prefixCls:dt,className:ht,rootClassName:Pt,style:wt,size:Tt,bordered:At,dropdownPrefixCls:Ot,dataSource:kt,pagination:Gt,rowSelection:Nt,rowKey:Qt="key",rowClassName:Vt,columns:Jt,children:un,childrenColumnName:sn,onChange:dn,getPopupContainer:ln,loading:vn,expandIcon:Fn,expandable:Un,expandedRowRender:On,expandIconColumnIndex:er,indentSize:cr,scroll:bn,sortDirections:Rn,locale:Pn,showSorterTooltip:pn=!0,virtual:xn}=Ve,Jn=ne.useMemo(()=>Jt||xt(un),[Jt,un]),vr=ne.useMemo(()=>Jn.some(Tr=>Tr.responsive),[Jn]),sr=(0,Fo.Z)(vr),Gn=ne.useMemo(()=>{const Tr=new Set(Object.keys(sr).filter(qr=>sr[qr]));return Jn.filter(qr=>!qr.responsive||qr.responsive.some(Do=>Tr.has(Do)))},[Jn,sr]),Sr=(0,Go.Z)(Ve,["className","style","columns"]),{locale:Pr=zo.Z,direction:Xr,table:jr,renderEmpty:vo,getPrefixCls:yo,getPopupContainer:ur}=ne.useContext(Ir.E_),wo=(0,ro.Z)(Tt),Mr=Object.assign(Object.assign({},Pr.Table),Pn),oo=kt||Ps,to=yo("table",dt),Wo=yo("dropdown",Ot),Xn=Object.assign({childrenColumnName:sn,expandIconColumnIndex:er},Un),{childrenColumnName:Vn="children"}=Xn,Wn=ne.useMemo(()=>oo.some(Tr=>Tr==null?void 0:Tr[Vn])?"nest":On||Un&&Un.expandedRowRender?"row":null,[oo]),kn={body:ne.useRef()},kr=ne.useMemo(()=>typeof Qt=="function"?Qt:Tr=>Tr==null?void 0:Tr[Qt],[Qt]),[Nn]=Ba(oo,Vn,kr),ar={},Or=function(Tr,qr){let Do=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var ho,Bo,Zo;const Vo=Object.assign(Object.assign({},ar),Tr);Do&&((ho=ar.resetPagination)===null||ho===void 0||ho.call(ar),!((Bo=Vo.pagination)===null||Bo===void 0)&&Bo.current&&(Vo.pagination.current=1),Gt&&Gt.onChange&&Gt.onChange(1,(Zo=Vo.pagination)===null||Zo===void 0?void 0:Zo.pageSize)),bn&&bn.scrollToFirstRowOnChange!==!1&&kn.body.current&&(0,Mo.Z)(0,{getContainer:()=>kn.body.current}),dn==null||dn(Vo.pagination,Vo.filters,Vo.sorter,{currentDataSource:ta(zi(oo,Vo.sorterStates,Vn),Vo.filterStates),action:qr})},xr=(Tr,qr)=>{Or({sorter:Tr,sorterStates:qr},"sort",!1)},[ko,Ro,oi,Co]=Qa({prefixCls:to,mergedColumns:Gn,onSorterChange:xr,sortDirections:Rn||["ascend","descend"],tableLocale:Mr,showSorterTooltip:pn}),ei=ne.useMemo(()=>zi(oo,Ro,Vn),[oo,Ro]);ar.sorter=Co(),ar.sorterStates=Ro;const _o=(Tr,qr)=>{Or({filters:Tr,filterStates:qr},"filter",!0)},[$o,Si,Hr]=Na({prefixCls:to,locale:Mr,dropdownPrefixCls:Wo,mergedColumns:Gn,onFilterChange:_o,getPopupContainer:ln||ur}),Gr=ta(ei,Si);ar.filters=Hr,ar.filterStates=Si;const uo=ne.useMemo(()=>{const Tr={};return Object.keys(Hr).forEach(qr=>{Hr[qr]!==null&&(Tr[qr]=Hr[qr])}),Object.assign(Object.assign({},oi),{filters:Tr})},[oi,Hr]),[Oo]=qa(uo),To=(Tr,qr)=>{Or({pagination:Object.assign(Object.assign({},ar.pagination),{current:Tr,pageSize:qr})},"paginate")},[wr,Ho]=Ga(Gr.length,To,Gt);ar.pagination=Gt===!1?{}:Ha(wr,Gt),ar.resetPagination=Ho;const No=ne.useMemo(()=>{if(Gt===!1||!wr.pageSize)return Gr;const{current:Tr=1,total:qr,pageSize:Do=ra}=wr;return Gr.length<qr?Gr.length>Do?Gr.slice((Tr-1)*Do,Tr*Do):Gr:Gr.slice((Tr-1)*Do,Tr*Do)},[!!Gt,Gr,wr&&wr.current,wr&&wr.pageSize,wr&&wr.total]),[Jo,ai]=Za({prefixCls:to,data:Gr,pageData:No,getRowKey:kr,getRecordByKey:Nn,expandType:Wn,childrenColumnName:Vn,locale:Mr,getPopupContainer:ln||ur},Nt),ii=(Tr,qr,Do)=>{let ho;return typeof Vt=="function"?ho=_e()(Vt(Tr,qr,Do)):ho=_e()(Vt),_e()({[`${to}-row-selected`]:ai.has(kr(Tr,qr))},ho)};Xn.__PARENT_RENDER_ICON__=Xn.expandIcon,Xn.expandIcon=Xn.expandIcon||Fn||In(Mr),Wn==="nest"&&Xn.expandIconColumnIndex===void 0?Xn.expandIconColumnIndex=Nt?1:0:Xn.expandIconColumnIndex>0&&Nt&&(Xn.expandIconColumnIndex-=1),typeof Xn.indentSize!="number"&&(Xn.indentSize=typeof cr=="number"?cr:15);const xi=ne.useCallback(Tr=>Oo(Jo($o(ko(Tr)))),[ko,$o,Jo]);let di,ti;if(Gt!==!1&&(wr!=null&&wr.total)){let Tr;wr.size?Tr=wr.size:Tr=wo==="small"||wo==="middle"?"small":void 0;const qr=Bo=>ne.createElement(ci.Z,Object.assign({},wr,{className:_e()(`${to}-pagination ${to}-pagination-${Bo}`,wr.className),size:Tr})),Do=Xr==="rtl"?"left":"right",{position:ho}=wr;if(ho!==null&&Array.isArray(ho)){const Bo=ho.find(fi=>fi.includes("top")),Zo=ho.find(fi=>fi.includes("bottom")),Vo=ho.every(fi=>`${fi}`=="none");!Bo&&!Zo&&!Vo&&(ti=qr(Do)),Bo&&(di=qr(Bo.toLowerCase().replace("top",""))),Zo&&(ti=qr(Zo.toLowerCase().replace("bottom","")))}else ti=qr(Do)}let Ko;typeof vn=="boolean"?Ko={spinning:vn}:typeof vn=="object"&&(Ko=Object.assign({spinning:!0},vn));const[Uo,Ao]=bs(to),[,fo]=(0,hn.Z)(),si=_e()(`${to}-wrapper`,jr==null?void 0:jr.className,{[`${to}-wrapper-rtl`]:Xr==="rtl"},ht,Pt,Ao),bi=Object.assign(Object.assign({},jr==null?void 0:jr.style),wt),pi=Pn&&Pn.emptyText||(vo==null?void 0:vo("Table"))||ne.createElement(Er.Z,{componentName:"Table"}),li=xn?ts:es,Ti={},Hi=ne.useMemo(()=>{const{fontSize:Tr,lineHeight:qr,padding:Do,paddingXS:ho,paddingSM:Bo}=fo,Zo=Math.floor(Tr*qr);switch(wo){case"large":return Do*2+Zo;case"small":return ho*2+Zo;default:return Bo*2+Zo}},[fo,wo]);return xn&&(Ti.listItemHeight=Hi),Uo(ne.createElement("div",{ref:et,className:si,style:bi},ne.createElement(Dn.Z,Object.assign({spinning:!1},Ko),di,ne.createElement(li,Object.assign({},Ti,Sr,{columns:Gn,direction:Xr,expandable:Xn,prefixCls:to,className:_e()({[`${to}-middle`]:wo==="middle",[`${to}-small`]:wo==="small",[`${to}-bordered`]:At,[`${to}-empty`]:oo.length===0}),data:No,rowKey:kr,rowClassName:ii,emptyText:pi,internalHooks:Ee,internalRefs:kn,transformColumns:xi})),ti)))};var Cs=ne.forwardRef(ws);const _s=(Ve,et)=>{const dt=ne.useRef(0);return dt.current+=1,ne.createElement(Cs,Object.assign({},Ve,{ref:et,_renderTimes:dt.current}))},ui=ne.forwardRef(_s);ui.SELECTION_COLUMN=hi,ui.EXPAND_COLUMN=we,ui.SELECTION_ALL=Mi,ui.SELECTION_INVERT=ki,ui.SELECTION_NONE=Ni,ui.Column=$r,ui.ColumnGroup=jo,ui.Summary=xe;var xs=ui,Es=xs},65615:function(_t,ft,ye){"use strict";ye.d(ft,{Z:function(){return tt}});var we=ye(59301),Ee=ye(27247),x=ye(32855),pe=ye(34666),de=ye(11913),ae=ye(43079),ne=ye(43403),se=ye(35593),ce=ye(92310),ue=ye.n(ce),ie=ye(34280),oe=ye(18929),re=ye(6089);function z(He){var ot=window.innerWidth||document.documentElement.clientWidth,mt=window.innerHeight||document.documentElement.clientHeight,lt=He.getBoundingClientRect(),pt=lt.top,st=lt.right,vt=lt.bottom,rt=lt.left;return pt>=0&&rt>=0&&st<=ot&&vt<=mt}function a(He,ot,mt){var lt;return(lt=mt!=null?mt:ot)!==null&<!==void 0?lt:He===null?"center":"bottom"}function y(He,ot,mt,lt){var pt=(0,we.useState)(void 0),st=(0,de.Z)(pt,2),vt=st[0],rt=st[1];(0,ie.Z)(function(){var Xt=typeof He=="function"?He():He;rt(Xt||null)});var ct=(0,we.useState)(null),gt=(0,de.Z)(ct,2),St=gt[0],Ct=gt[1],It=(0,re.Z)(function(){if(vt){!z(vt)&&ot&&vt.scrollIntoView(lt);var Xt=vt.getBoundingClientRect(),on=Xt.left,qt=Xt.top,tn=Xt.width,wn=Xt.height,En={left:on,top:qt,width:tn,height:wn,radius:0};Ct(function(en){return JSON.stringify(en)!==JSON.stringify(En)?En:en})}else Ct(null)}),Wt=function(on){var qt;return(qt=Array.isArray(mt==null?void 0:mt.offset)?mt==null?void 0:mt.offset[on]:mt==null?void 0:mt.offset)!==null&&qt!==void 0?qt:6};(0,ie.Z)(function(){return It(),window.addEventListener("resize",It),function(){window.removeEventListener("resize",It)}},[vt,ot,It]);var Ht=(0,we.useMemo)(function(){if(!St)return St;var Xt=Wt(0),on=Wt(1),qt=(mt==null?void 0:mt.radius)||2;return{left:St.left-Xt,top:St.top-on,width:St.width+Xt*2,height:St.height+on*2,radius:qt}},[St,mt]);return[Ht,vt]}var E=ye(80402),b={fill:"transparent",pointerEvents:"auto"},ee=function(ot){var mt=ot.prefixCls,lt=ot.rootClassName,pt=ot.pos,st=ot.showMask,vt=ot.style,rt=vt===void 0?{}:vt,ct=ot.fill,gt=ct===void 0?"rgba(0,0,0,0.5)":ct,St=ot.open,Ct=ot.animated,It=ot.zIndex,Wt=(0,E.Z)(),Ht="".concat(mt,"-mask-").concat(Wt),Xt=(0,pe.Z)(Ct)==="object"?Ct==null?void 0:Ct.placeholder:Ct;return we.createElement(ne.Z,{open:St,autoLock:!0},we.createElement("div",{className:ue()("".concat(mt,"-mask"),lt),style:(0,Ee.Z)({position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:It,pointerEvents:"none"},rt)},st?we.createElement("svg",{style:{width:"100%",height:"100%"}},we.createElement("defs",null,we.createElement("mask",{id:Ht},we.createElement("rect",{x:"0",y:"0",width:"100vw",height:"100vh",fill:"white"}),pt&&we.createElement("rect",{x:pt.left,y:pt.top,rx:pt.radius,width:pt.width,height:pt.height,fill:"black",className:Xt?"".concat(mt,"-placeholder-animated"):""}))),we.createElement("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:gt,mask:"url(#".concat(Ht,")")}),pt&&we.createElement(we.Fragment,null,we.createElement("rect",(0,x.Z)({},b,{x:"0",y:"0",width:"100%",height:pt.top})),we.createElement("rect",(0,x.Z)({},b,{x:"0",y:"0",width:pt.left,height:"100%"})),we.createElement("rect",(0,x.Z)({},b,{x:"0",y:pt.top+pt.height,width:"100%",height:"calc(100vh - ".concat(pt.top+pt.height,"px)")})),we.createElement("rect",(0,x.Z)({},b,{x:pt.left+pt.width,y:"0",width:"calc(100vw - ".concat(pt.left+pt.width,"px)"),height:"100%"})))):null))},te=ee,le={adjustX:1,adjustY:1},fe=[0,0],he={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 He=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,ot={};return Object.keys(he).forEach(function(mt){ot[mt]=(0,Ee.Z)((0,Ee.Z)({},he[mt]),{},{autoArrow:He,targetOffset:fe})}),ot}var ge=me(),Se=ye(3300);function ve(He){var ot=He.prefixCls,mt=He.current,lt=He.total,pt=He.title,st=He.description,vt=He.onClose,rt=He.onPrev,ct=He.onNext,gt=He.onFinish,St=He.className,Ct=He.closeIcon,It=Ct!==!1&&Ct!==null,Wt=Ct!==void 0&&Ct!==!0?Ct:we.createElement("span",{className:"".concat(ot,"-close-x")},"\xD7");return we.createElement("div",{className:ue()("".concat(ot,"-content"),St)},we.createElement("div",{className:"".concat(ot,"-inner")},It&&we.createElement("button",{type:"button",onClick:vt,"aria-label":"Close",className:"".concat(ot,"-close")},Wt),we.createElement("div",{className:"".concat(ot,"-header")},we.createElement("div",{className:"".concat(ot,"-title")},pt)),we.createElement("div",{className:"".concat(ot,"-description")},st),we.createElement("div",{className:"".concat(ot,"-footer")},we.createElement("div",{className:"".concat(ot,"-sliders")},lt>1?(0,Se.Z)(Array.from({length:lt}).keys()).map(function(Ht,Xt){return we.createElement("span",{key:Ht,className:Xt===mt?"active":""})}):null),we.createElement("div",{className:"".concat(ot,"-buttons")},mt!==0?we.createElement("button",{className:"".concat(ot,"-prev-btn"),onClick:rt},"Prev"):null,mt===lt-1?we.createElement("button",{className:"".concat(ot,"-finish-btn"),onClick:gt},"Finish"):we.createElement("button",{className:"".concat(ot,"-next-btn"),onClick:ct},"Next")))))}var be=function(ot){var mt=ot.current,lt=ot.renderPanel;return we.createElement(we.Fragment,null,typeof lt=="function"?lt(ot,mt):we.createElement(ve,ot))},Pe=be,Te=["prefixCls","steps","defaultCurrent","current","onChange","onClose","onFinish","open","mask","arrow","rootClassName","placement","renderPanel","gap","animated","scrollIntoViewOptions","zIndex","closeIcon"],_e={left:"50%",top:"50%",width:1,height:1},je=function(ot){var mt=ot.prefixCls,lt=mt===void 0?"rc-tour":mt,pt=ot.steps,st=pt===void 0?[]:pt,vt=ot.defaultCurrent,rt=ot.current,ct=ot.onChange,gt=ot.onClose,St=ot.onFinish,Ct=ot.open,It=ot.mask,Wt=It===void 0?!0:It,Ht=ot.arrow,Xt=Ht===void 0?!0:Ht,on=ot.rootClassName,qt=ot.placement,tn=ot.renderPanel,wn=ot.gap,En=ot.animated,en=ot.scrollIntoViewOptions,Tn=en===void 0?!0:en,An=ot.zIndex,_n=An===void 0?1001:An,$n=ot.closeIcon,hr=(0,ae.Z)(ot,Te),nr=we.useRef(),yr=(0,oe.Z)(0,{value:rt,defaultValue:vt}),Nr=(0,de.Z)(yr,2),tr=Nr[0],Cr=Nr[1],rr=(0,oe.Z)(void 0,{value:Ct,postState:function(or){return tr<0||tr>=st.length?!1:or!=null?or:!0}}),_r=(0,de.Z)(rr,2),Et=_r[0],Rt=_r[1],xt=we.useRef(Et);(0,ie.Z)(function(){Et&&!xt.current&&Cr(0),xt.current=Et},[Et]);var Zt=st[tr]||{},yn=Zt.target,mn=Zt.placement,mr=Zt.style,Kn=Zt.arrow,Mn=Zt.className,Qn=Zt.mask,Kt=Zt.scrollIntoViewOptions,bt=Zt.closeIcon,$t=Et&&(Qn!=null?Qn:Wt),rn=bt!=null?bt:$n,nn=Kt!=null?Kt:Tn,cn=y(yn,Ct,wn,nn),yt=(0,de.Z)(cn,2),Lt=yt[0],jt=yt[1],Mt=a(jt,qt,mn),Ut=jt?typeof Kn=="undefined"?Xt:Kn:!1,Bt=(0,pe.Z)(Ut)==="object"?Ut.pointAtCenter:!1;(0,ie.Z)(function(){var Ln;(Ln=nr.current)===null||Ln===void 0||Ln.forceAlign()},[Bt,tr]);var zt=function(or){Cr(or),ct==null||ct(or)};if(jt===void 0)return null;var Ft=function(){Rt(!1),gt==null||gt(tr)},gn=function(){return we.createElement(Pe,(0,x.Z)({arrow:Ut,key:"content",prefixCls:lt,total:st.length,renderPanel:tn,onPrev:function(){zt(tr-1)},onNext:function(){zt(tr+1)},onClose:Ft,current:tr,onFinish:function(){Ft(),St==null||St()},closeIcon:rn},st[tr]))},Sn=typeof $t=="boolean"?$t:!!$t,Dt=typeof $t=="boolean"?void 0:$t,zn=function(or){return or||jt||document.body};return we.createElement(we.Fragment,null,we.createElement(te,{zIndex:_n,prefixCls:lt,pos:Lt,showMask:Sn,style:Dt==null?void 0:Dt.style,fill:Dt==null?void 0:Dt.color,open:Et,animated:En,rootClassName:on}),we.createElement(se.Z,(0,x.Z)({builtinPlacements:me(Bt)},hr,{ref:nr,popupStyle:mr,popupPlacement:Mt,popupVisible:Et,popupClassName:ue()(on,Mn),prefixCls:lt,popup:gn,forceRender:!1,destroyPopupOnHide:!0,zIndex:_n,getTriggerDOMNode:zn,arrow:!!Ut}),we.createElement(ne.Z,{open:Et,autoLock:!0},we.createElement("div",{className:ue()(on,"".concat(lt,"-target-placeholder")),style:(0,Ee.Z)((0,Ee.Z)({},Lt||_e),{},{position:"fixed",pointerEvents:"none"})}))))},Ce=je,Ie=Ce,ke=ye(79676),$e=ye(36355),Ne=ye(88088),nt=ye(99267),qe=ye(3113),Je=ye(9763),Ye=ye(31724),We=ye(47729);function Fe(He){return He!=null}var at=He=>{let{stepProps:ot,current:mt,type:lt,indicatorsRender:pt,closeIcon:st}=He;var vt,rt;const{prefixCls:ct,total:gt=1,title:St,onClose:Ct,onPrev:It,onNext:Wt,onFinish:Ht,cover:Xt,description:on,nextButtonProps:qt,prevButtonProps:tn,type:wn,className:En,closeIcon:en}=ot,Tn=wn!=null?wn:lt,An=en!=null?en:st,_n=An!==!1&&An!==null,[$n,hr]=(0,We.Z)(_n,An,Zt=>we.createElement("span",{onClick:Ct,"aria-label":"Close",className:`${ct}-close`},Zt),we.createElement(nt.Z,{className:`${ct}-close-icon`}),!0),nr=mt===gt-1,yr=()=>{var Zt;It==null||It(),(Zt=tn==null?void 0:tn.onClick)===null||Zt===void 0||Zt.call(tn)},Nr=()=>{var Zt;nr?Ht==null||Ht():Wt==null||Wt(),(Zt=qt==null?void 0:qt.onClick)===null||Zt===void 0||Zt.call(qt)},tr=Fe(St)?we.createElement("div",{className:`${ct}-header`},we.createElement("div",{className:`${ct}-title`},St)):null,Cr=Fe(on)?we.createElement("div",{className:`${ct}-description`},on):null,rr=Fe(Xt)?we.createElement("div",{className:`${ct}-cover`},Xt):null;let _r;pt?_r=pt(mt,gt):_r=(0,Se.Z)(Array.from({length:gt}).keys()).map((Zt,yn)=>we.createElement("span",{key:Zt,className:ue()(yn===mt&&`${ct}-indicator-active`,`${ct}-indicator`)}));const Et=Tn==="primary"?"default":"primary",Rt={type:"default",ghost:Tn==="primary"},[xt]=(0,Je.Z)("Tour",Ye.Z.Tour);return we.createElement("div",{className:ue()(En,`${ct}-content`)},we.createElement("div",{className:`${ct}-inner`},$n&&hr,rr,tr,Cr,we.createElement("div",{className:`${ct}-footer`},gt>1&&we.createElement("div",{className:`${ct}-indicators`},_r),we.createElement("div",{className:`${ct}-buttons`},mt!==0?we.createElement(qe.ZP,Object.assign({},Rt,tn,{onClick:yr,size:"small",className:ue()(`${ct}-prev-btn`,tn==null?void 0:tn.className)}),(vt=tn==null?void 0:tn.children)!==null&&vt!==void 0?vt:xt==null?void 0:xt.Previous):null,we.createElement(qe.ZP,Object.assign({type:Et},qt,{onClick:Nr,size:"small",className:ue()(`${ct}-next-btn`,qt==null?void 0:qt.className)}),(rt=qt==null?void 0:qt.children)!==null&&rt!==void 0?rt:nr?xt==null?void 0:xt.Finish:xt==null?void 0:xt.Next)))))},Xe=ye(39722),ut=ye(64993),Ze=ye(17313),ze=ye(19447),Re=ye(83116),it=ye(37613);const Me=He=>{const{componentCls:ot,lineHeight:mt,padding:lt,paddingXS:pt,borderRadius:st,borderRadiusXS:vt,colorPrimary:rt,colorText:ct,colorFill:gt,indicatorHeight:St,indicatorWidth:Ct,boxShadowTertiary:It,tourZIndexPopup:Wt,fontSize:Ht,colorBgElevated:Xt,fontWeightStrong:on,marginXS:qt,colorTextLightSolid:tn,tourBorderRadius:wn,colorWhite:En,colorBgTextHover:en,tourCloseSize:Tn,motionDurationSlow:An,antCls:_n}=He;return[{[ot]:Object.assign(Object.assign({},(0,Ze.Wf)(He)),{color:ct,position:"absolute",zIndex:Wt,display:"block",visibility:"visible",fontSize:Ht,lineHeight:mt,width:520,"--antd-arrow-background-color":Xt,"&-pure":{maxWidth:"100%",position:"relative"},[`&${ot}-hidden`]:{display:"none"},[`${ot}-content`]:{position:"relative"},[`${ot}-inner`]:{textAlign:"start",textDecoration:"none",borderRadius:wn,boxShadow:It,position:"relative",backgroundColor:Xt,border:"none",backgroundClip:"padding-box",[`${ot}-close`]:{position:"absolute",top:lt,insetInlineEnd:lt,color:He.colorIcon,outline:"none",width:Tn,height:Tn,borderRadius:He.borderRadiusSM,transition:`background-color ${He.motionDurationMid}, color ${He.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:He.colorIconHover,backgroundColor:He.wireframe?"transparent":He.colorFillContent}},[`${ot}-cover`]:{textAlign:"center",padding:`${lt+Tn+pt}px ${lt}px 0`,img:{width:"100%"}},[`${ot}-header`]:{padding:`${lt}px ${lt}px ${pt}px`,[`${ot}-title`]:{lineHeight:mt,fontSize:Ht,fontWeight:on}},[`${ot}-description`]:{padding:`0 ${lt}px`,lineHeight:mt,wordWrap:"break-word"},[`${ot}-footer`]:{padding:`${pt}px ${lt}px ${lt}px`,textAlign:"end",borderRadius:`0 0 ${vt}px ${vt}px`,display:"flex",[`${ot}-indicators`]:{display:"inline-block",[`${ot}-indicator`]:{width:Ct,height:St,display:"inline-block",borderRadius:"50%",background:gt,"&:not(:last-child)":{marginInlineEnd:St},"&-active":{background:rt}}},[`${ot}-buttons`]:{marginInlineStart:"auto",[`${_n}-btn`]:{marginInlineStart:qt}}}},[`${ot}-primary, &${ot}-primary`]:{"--antd-arrow-background-color":rt,[`${ot}-inner`]:{color:tn,textAlign:"start",textDecoration:"none",backgroundColor:rt,borderRadius:st,boxShadow:It,[`${ot}-close`]:{color:tn},[`${ot}-indicators`]:{[`${ot}-indicator`]:{background:new ut.C(tn).setAlpha(.15).toRgbString(),"&-active":{background:tn}}},[`${ot}-prev-btn`]:{color:tn,borderColor:new ut.C(tn).setAlpha(.15).toRgbString(),backgroundColor:rt,"&:hover":{backgroundColor:new ut.C(tn).setAlpha(.15).toRgbString(),borderColor:"transparent"}},[`${ot}-next-btn`]:{color:rt,borderColor:"transparent",background:En,"&:hover":{background:new ut.C(en).onBackground(En).toRgbString()}}}}}),[`${ot}-mask`]:{[`${ot}-placeholder-animated`]:{transition:`all ${An}`}},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${ot}-inner`]:{borderRadius:Math.min(wn,ze.qN)}}},(0,ze.ZP)(He,{colorBg:"var(--antd-arrow-background-color)",contentRadius:wn,limitVerticalRadius:!0})]};var Be=(0,Re.Z)("Tour",He=>{const{borderRadiusLG:ot,fontSize:mt,lineHeight:lt}=He,pt=(0,it.TS)(He,{tourZIndexPopup:He.zIndexPopupBase+70,indicatorWidth:6,indicatorHeight:6,tourBorderRadius:ot,tourCloseSize:mt*lt});return[Me(pt)]}),Qe=ye(53487),Ge=function(He,ot){var mt={};for(var lt in He)Object.prototype.hasOwnProperty.call(He,lt)&&ot.indexOf(lt)<0&&(mt[lt]=He[lt]);if(He!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pt=0,lt=Object.getOwnPropertySymbols(He);pt<lt.length;pt++)ot.indexOf(lt[pt])<0&&Object.prototype.propertyIsEnumerable.call(He,lt[pt])&&(mt[lt[pt]]=He[lt[pt]]);return mt};const De=He=>{const{prefixCls:ot,current:mt=0,total:lt=6,className:pt,style:st,type:vt}=He,rt=Ge(He,["prefixCls","current","total","className","style","type"]),{getPrefixCls:ct}=we.useContext($e.E_),gt=ct("tour",ot),[St,Ct]=Be(gt);return St(we.createElement(Xe.t5,{prefixCls:gt,hashId:Ct,className:ue()(pt,`${gt}-pure`,vt&&`${gt}-${vt}`),style:st},we.createElement(at,{stepProps:Object.assign(Object.assign({},rt),{prefixCls:gt,total:lt}),current:mt,type:vt})))};var Le=(0,Qe.i)(De),xe=He=>{let{defaultType:ot,steps:mt=[],current:lt,defaultCurrent:pt}=He;var st;const[vt,rt]=(0,oe.Z)(pt,{value:lt});(0,we.useLayoutEffect)(()=>{lt!==void 0&&rt(lt)},[lt]);const ct=typeof vt=="number"?(st=mt[vt])===null||st===void 0?void 0:st.type:ot;return{currentMergedType:ct!=null?ct:ot,updateInnerCurrent:rt}},Ae=function(He,ot){var mt={};for(var lt in He)Object.prototype.hasOwnProperty.call(He,lt)&&ot.indexOf(lt)<0&&(mt[lt]=He[lt]);if(He!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pt=0,lt=Object.getOwnPropertySymbols(He);pt<lt.length;pt++)ot.indexOf(lt[pt])<0&&Object.prototype.propertyIsEnumerable.call(He,lt[pt])&&(mt[lt[pt]]=He[lt[pt]]);return mt};const Ke=He=>{const{prefixCls:ot,current:mt,defaultCurrent:lt,type:pt,rootClassName:st,indicatorsRender:vt,steps:rt}=He,ct=Ae(He,["prefixCls","current","defaultCurrent","type","rootClassName","indicatorsRender","steps"]),{getPrefixCls:gt,direction:St}=(0,we.useContext)($e.E_),Ct=gt("tour",ot),[It,Wt]=Be(Ct),[,Ht]=(0,Ne.Z)(),{currentMergedType:Xt,updateInnerCurrent:on}=xe({defaultType:pt,steps:rt,current:mt,defaultCurrent:lt}),qt=(0,ke.Z)({arrowPointAtCenter:!0,autoAdjustOverflow:!0,offset:Ht.marginXXS,arrowWidth:Ht.sizePopupArrow,borderRadius:Ht.borderRadius}),tn=ue()({[`${Ct}-primary`]:Xt==="primary",[`${Ct}-rtl`]:St==="rtl"},Wt,st),wn=(en,Tn)=>we.createElement(at,{type:pt,stepProps:en,current:Tn,indicatorsRender:vt}),En=en=>{var Tn;on(en),(Tn=He.onChange)===null||Tn===void 0||Tn.call(He,en)};return It(we.createElement(Ie,Object.assign({},ct,{rootClassName:tn,prefixCls:Ct,current:mt,defaultCurrent:lt,animated:!0,renderPanel:wn,builtinPlacements:qt,onChange:En,steps:rt})))};Ke._InternalPanelDoNotUseOrYouWillBeFired=Le;var tt=Ke},17574:function(_t,ft,ye){"use strict";ye.d(ft,{default:function(){return Ne}});var we=ye(54030),Ee=ye(3300),x=ye(52671),pe=ye(8657),de=ye(32855),ae=ye(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"},se=ne,ce=ye(7657),ue=function(qe,Je){return ae.createElement(ce.Z,(0,de.Z)({},qe,{ref:Je,icon:se}))},ie=ae.forwardRef(ue),oe=ie,re=ye(92310),z=ye.n(re),a=ye(35654),y=ye(71430),E=ye(36355),b=ye(56082),ee=ye(62892),te=ye(20648);const le=4;function fe(nt){const{dropPosition:qe,dropLevelOffset:Je,prefixCls:Ye,indent:We,direction:Fe="ltr"}=nt,Ue=Fe==="ltr"?"left":"right",at=Fe==="ltr"?"right":"left",Xe={[Ue]:-Je*We+le,[at]:0};switch(qe){case-1:Xe.top=-3;break;case 1:Xe.bottom=-3;break;default:Xe.bottom=-3,Xe[Ue]=We+le;break}return ae.createElement("div",{style:Xe,className:`${Ye}-drop-indicator`})}var he=ye(71997),ge=ae.forwardRef((nt,qe)=>{const{getPrefixCls:Je,direction:Ye,virtual:We,tree:Fe}=ae.useContext(E.E_),{prefixCls:Ue,className:at,showIcon:Xe=!1,showLine:ut,switcherIcon:Ze,blockNode:ze=!1,children:Re,checkable:it=!1,selectable:Me=!0,draggable:Be,motion:Qe,style:Ge}=nt,De=Je("tree",Ue),Le=Je(),Oe=Qe!=null?Qe:Object.assign(Object.assign({},(0,ee.Z)(Le)),{motionAppear:!1}),xe=Object.assign(Object.assign({},nt),{checkable:it,selectable:Me,showIcon:Xe,motion:Oe,blockNode:ze,showLine:!!ut,dropIndicatorRender:fe}),[Ae,Ke]=(0,te.ZP)(De),tt=ae.useMemo(()=>{if(!Be)return!1;let ot={};switch(typeof Be){case"function":ot.nodeDraggable=Be;break;case"object":ot=Object.assign({},Be);break;default:break}return ot.icon!==!1&&(ot.icon=ot.icon||ae.createElement(b.Z,null)),ot},[Be]),He=ot=>ae.createElement(he.Z,{prefixCls:De,switcherIcon:Ze,treeNodeProps:ot,showLine:ut});return Ae(ae.createElement(we.Z,Object.assign({itemHeight:20,ref:qe,virtual:We},xe,{style:Object.assign(Object.assign({},Fe==null?void 0:Fe.style),Ge),prefixCls:De,className:z()({[`${De}-icon-hide`]:!Xe,[`${De}-block-node`]:ze,[`${De}-unselectable`]:!Me,[`${De}-rtl`]:Ye==="rtl"},Fe==null?void 0:Fe.className,at,Ke),direction:Ye,checkable:it&&ae.createElement("span",{className:`${De}-checkbox-inner`}),selectable:Me,switcherIcon:He,draggable:tt}),Re))}),Se;(function(nt){nt[nt.None=0]="None",nt[nt.Start=1]="Start",nt[nt.End=2]="End"})(Se||(Se={}));function ve(nt,qe){function Je(Ye){const{key:We,children:Fe}=Ye;qe(We,Ye)!==!1&&ve(Fe||[],qe)}nt.forEach(Je)}function be(nt){let{treeData:qe,expandedKeys:Je,startKey:Ye,endKey:We}=nt;const Fe=[];let Ue=Se.None;if(Ye&&Ye===We)return[Ye];if(!Ye||!We)return[];function at(Xe){return Xe===Ye||Xe===We}return ve(qe,Xe=>{if(Ue===Se.End)return!1;if(at(Xe)){if(Fe.push(Xe),Ue===Se.None)Ue=Se.Start;else if(Ue===Se.Start)return Ue=Se.End,!1}else Ue===Se.Start&&Fe.push(Xe);return Je.includes(Xe)}),Fe}function Pe(nt,qe){const Je=(0,Ee.Z)(qe),Ye=[];return ve(nt,(We,Fe)=>{const Ue=Je.indexOf(We);return Ue!==-1&&(Ye.push(Fe),Je.splice(Ue,1)),!!Je.length}),Ye}var Te=function(nt,qe){var Je={};for(var Ye in nt)Object.prototype.hasOwnProperty.call(nt,Ye)&&qe.indexOf(Ye)<0&&(Je[Ye]=nt[Ye]);if(nt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var We=0,Ye=Object.getOwnPropertySymbols(nt);We<Ye.length;We++)qe.indexOf(Ye[We])<0&&Object.prototype.propertyIsEnumerable.call(nt,Ye[We])&&(Je[Ye[We]]=nt[Ye[We]]);return Je};function _e(nt){const{isLeaf:qe,expanded:Je}=nt;return qe?ae.createElement(x.Z,null):Je?ae.createElement(pe.Z,null):ae.createElement(oe,null)}function je(nt){let{treeData:qe,children:Je}=nt;return qe||(0,y.zn)(Je)}const Ce=(nt,qe)=>{var{defaultExpandAll:Je,defaultExpandParent:Ye,defaultExpandedKeys:We}=nt,Fe=Te(nt,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const Ue=ae.useRef(),at=ae.useRef(),Xe=()=>{const{keyEntities:tt}=(0,y.I8)(je(Fe));let He;return Je?He=Object.keys(tt):Ye?He=(0,a.r7)(Fe.expandedKeys||We||[],tt):He=Fe.expandedKeys||We,He},[ut,Ze]=ae.useState(Fe.selectedKeys||Fe.defaultSelectedKeys||[]),[ze,Re]=ae.useState(()=>Xe());ae.useEffect(()=>{"selectedKeys"in Fe&&Ze(Fe.selectedKeys)},[Fe.selectedKeys]),ae.useEffect(()=>{"expandedKeys"in Fe&&Re(Fe.expandedKeys)},[Fe.expandedKeys]);const it=(tt,He)=>{var ot;return"expandedKeys"in Fe||Re(tt),(ot=Fe.onExpand)===null||ot===void 0?void 0:ot.call(Fe,tt,He)},Me=(tt,He)=>{var ot;const{multiple:mt}=Fe,{node:lt,nativeEvent:pt}=He,{key:st=""}=lt,vt=je(Fe),rt=Object.assign(Object.assign({},He),{selected:!0}),ct=(pt==null?void 0:pt.ctrlKey)||(pt==null?void 0:pt.metaKey),gt=pt==null?void 0:pt.shiftKey;let St;mt&&ct?(St=tt,Ue.current=st,at.current=St,rt.selectedNodes=Pe(vt,St)):mt&>?(St=Array.from(new Set([].concat((0,Ee.Z)(at.current||[]),(0,Ee.Z)(be({treeData:vt,expandedKeys:ze,startKey:st,endKey:Ue.current}))))),rt.selectedNodes=Pe(vt,St)):(St=[st],Ue.current=st,at.current=St,rt.selectedNodes=Pe(vt,St)),(ot=Fe.onSelect)===null||ot===void 0||ot.call(Fe,St,rt),"selectedKeys"in Fe||Ze(St)},{getPrefixCls:Be,direction:Qe}=ae.useContext(E.E_),{prefixCls:Ge,className:De,showIcon:Le=!0,expandAction:Oe="click"}=Fe,xe=Te(Fe,["prefixCls","className","showIcon","expandAction"]),Ae=Be("tree",Ge),Ke=z()(`${Ae}-directory`,{[`${Ae}-directory-rtl`]:Qe==="rtl"},De);return ae.createElement(ge,Object.assign({icon:_e,ref:qe,blockNode:!0},xe,{showIcon:Le,expandAction:Oe,prefixCls:Ae,className:Ke,expandedKeys:ze,selectedKeys:ut,onSelect:Me,onExpand:it}))};var ke=ae.forwardRef(Ce);const $e=ge;$e.DirectoryTree=ke,$e.TreeNode=we.O;var Ne=$e},20648:function(_t,ft,ye){"use strict";ye.d(ft,{TM:function(){return re},Yk:function(){return oe}});var we=ye(36237),Ee=ye(98447),x=ye(17313),pe=ye(8378),de=ye(37613),ae=ye(83116);const ne=new we.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),se=(z,a)=>({[`.${z}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${a.motionDurationSlow}`}}}),ce=(z,a)=>({[`.${z}-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=(z,a)=>{const{treeCls:y,treeNodeCls:E,treeNodePadding:b,titleHeight:ee,nodeSelectedBg:te,nodeHoverBg:le}=a,fe=a.paddingXS;return{[y]:Object.assign(Object.assign({},(0,x.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,x.oN)(a)),[`${y}-list-holder-inner`]:{alignItems:"flex-start"},[`&${y}-block-node`]:{[`${y}-list-holder-inner`]:{alignItems:"stretch",[`${y}-node-content-wrapper`]:{flex:"auto"},[`${E}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:b,insetInlineStart:0,border:`1px solid ${a.colorPrimary}`,opacity:0,animationName:ne,animationDuration:a.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${E}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${b}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${y}-node-content-wrapper`]:{color:a.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${y}-node-content-wrapper`]:Object.assign({},(0,x.oN)(a)),[`&:not(${E}-disabled).filter-node ${y}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${y}-draggable-icon`]:{flexShrink:0,width:ee,lineHeight:`${ee}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${a.motionDurationSlow}`,[`${E}:hover &`]:{opacity:.45}},[`&${E}-disabled`]:{[`${y}-draggable-icon`]:{visibility:"hidden"}}}},[`${y}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:ee}},[`${y}-draggable-icon`]:{visibility:"hidden"},[`${y}-switcher`]:Object.assign(Object.assign({},se(z,a)),{position:"relative",flex:"none",alignSelf:"stretch",width:ee,margin:0,lineHeight:`${ee}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:ee/2,bottom:-b,marginInlineStart:-1,borderInlineEnd:`1px solid ${a.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:ee/2*.8,height:ee/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:ee,margin:0,padding:`0 ${a.paddingXS/2}px`,color:"inherit",lineHeight:`${ee}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:ee,height:ee,lineHeight:`${ee}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${y}-unselectable ${y}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${y}-node-content-wrapper`]:Object.assign({lineHeight:`${ee}px`,userSelect:"none"},ce(z,a)),[`${E}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${a.colorPrimary}`}},"&-show-line":{[`${y}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:ee/2,bottom:-b,borderInlineEnd:`1px solid ${a.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${y}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${E}-leaf-last`]:{[`${y}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${ee/2}px !important`}}}}})}},ie=z=>{const{treeCls:a,treeNodeCls:y,treeNodePadding:E,directoryNodeSelectedBg:b,directoryNodeSelectedColor:ee}=z;return{[`${a}${a}-directory`]:{[y]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:E,insetInlineStart:0,transition:`background-color ${z.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:z.controlItemBgHover}},"> *":{zIndex:1},[`${a}-switcher`]:{transition:`color ${z.motionDurationMid}`},[`${a}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${a}-node-selected`]:{color:ee,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:b},[`${a}-switcher`]:{color:ee},[`${a}-node-content-wrapper`]:{color:ee,background:"transparent"}}}}}},oe=(z,a)=>{const y=`.${z}`,E=`${y}-treenode`,b=a.paddingXS/2,ee=(0,de.TS)(a,{treeCls:y,treeNodeCls:E,treeNodePadding:b});return[ue(z,ee),ie(ee)]},re=z=>{const{controlHeightSM:a}=z;return{titleHeight:a,nodeHoverBg:z.controlItemBgHover,nodeSelectedBg:z.controlItemBgActive}};ft.ZP=(0,ae.Z)("Tree",(z,a)=>{let{prefixCls:y}=a;return[{[z.componentCls]:(0,Ee.C2)(`${y}-checkbox`,z)},oe(y,z),(0,pe.Z)(z)]},z=>{const{colorTextLightSolid:a,colorPrimary:y}=z;return Object.assign(Object.assign({},re(z)),{directoryNodeSelectedColor:a,directoryNodeSelectedBg:y})})},71997:function(_t,ft,ye){"use strict";ye.d(ft,{Z:function(){return E}});var we=ye(32855),Ee=ye(59301),x={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=x,de=ye(7657),ae=function(ee,te){return Ee.createElement(de.Z,(0,we.Z)({},ee,{ref:te,icon:pe}))},ne=Ee.forwardRef(ae),se=ne,ce=ye(52671),ue=ye(58617),ie=ye(15075),oe=ye(43531),re=ye(92310),z=ye.n(re),a=ye(92343),E=b=>{const{prefixCls:ee,switcherIcon:te,treeNodeProps:le,showLine:fe}=b,{isLeaf:he,expanded:me,loading:ge}=le;if(ge)return Ee.createElement(ue.Z,{className:`${ee}-switcher-loading-icon`});let Se;if(fe&&typeof fe=="object"&&(Se=fe.showLeafIcon),he){if(!fe)return null;if(typeof Se!="boolean"&&Se){const Pe=typeof Se=="function"?Se(le):Se,Te=`${ee}-switcher-line-custom-icon`;return(0,a.l$)(Pe)?(0,a.Tm)(Pe,{className:z()(Pe.props.className||"",Te)}):Pe}return Se?Ee.createElement(ce.Z,{className:`${ee}-switcher-line-icon`}):Ee.createElement("span",{className:`${ee}-switcher-leaf-line`})}const ve=`${ee}-switcher-icon`,be=typeof te=="function"?te(le):te;return(0,a.l$)(be)?(0,a.Tm)(be,{className:z()(be.props.className||"",ve)}):be!==void 0?be:fe?me?Ee.createElement(ie.Z,{className:`${ee}-switcher-line-icon`}):Ee.createElement(oe.Z,{className:`${ee}-switcher-line-icon`}):Ee.createElement(se,{className:ve})}},54580:function(_t,ft,ye){"use strict";ye.d(ft,{default:function(){return cn}});var we=ye(59301),Ee=ye(3300),x=ye(92310),pe=ye.n(x),de=ye(32855),ae=ye(33377),ne=ye(93912),se=ye(18881),ce=ye(85461),ue=ye(74430),ie=ye(43079),oe=ye(13932),re=ye(34666),z=ye(68702),a=ye(26112);function y(yt,Lt){var jt="cannot ".concat(yt.method," ").concat(yt.action," ").concat(Lt.status,"'"),Mt=new Error(jt);return Mt.status=Lt.status,Mt.method=yt.method,Mt.url=yt.action,Mt}function E(yt){var Lt=yt.responseText||yt.response;if(!Lt)return Lt;try{return JSON.parse(Lt)}catch(jt){return Lt}}function b(yt){var Lt=new XMLHttpRequest;yt.onProgress&&Lt.upload&&(Lt.upload.onprogress=function(Bt){Bt.total>0&&(Bt.percent=Bt.loaded/Bt.total*100),yt.onProgress(Bt)});var jt=new FormData;yt.data&&Object.keys(yt.data).forEach(function(Ut){var Bt=yt.data[Ut];if(Array.isArray(Bt)){Bt.forEach(function(zt){jt.append("".concat(Ut,"[]"),zt)});return}jt.append(Ut,Bt)}),yt.file instanceof Blob?jt.append(yt.filename,yt.file,yt.file.name):jt.append(yt.filename,yt.file),Lt.onerror=function(Bt){yt.onError(Bt)},Lt.onload=function(){return Lt.status<200||Lt.status>=300?yt.onError(y(yt,Lt),E(Lt)):yt.onSuccess(E(Lt),Lt)},Lt.open(yt.method,yt.action,!0),yt.withCredentials&&"withCredentials"in Lt&&(Lt.withCredentials=!0);var Mt=yt.headers||{};return Mt["X-Requested-With"]!==null&&Lt.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Mt).forEach(function(Ut){Mt[Ut]!==null&&Lt.setRequestHeader(Ut,Mt[Ut])}),Lt.send(jt),{abort:function(){Lt.abort()}}}var ee=+new Date,te=0;function le(){return"rc-upload-".concat(ee,"-").concat(++te)}var fe=ye(48736),he=function(yt,Lt){if(yt&&Lt){var jt=Array.isArray(Lt)?Lt:Lt.split(","),Mt=yt.name||"",Ut=yt.type||"",Bt=Ut.replace(/\/.*$/,"");return jt.some(function(zt){var Ft=zt.trim();if(/^\*(\/\*)?$/.test(zt))return!0;if(Ft.charAt(0)==="."){var gn=Mt.toLowerCase(),Sn=Ft.toLowerCase(),Dt=[Sn];return(Sn===".jpg"||Sn===".jpeg")&&(Dt=[".jpg",".jpeg"]),Dt.some(function(zn){return gn.endsWith(zn)})}return/\/\*$/.test(Ft)?Bt===Ft.replace(/\/.*$/,""):Ut===Ft?!0:/^\w+$/.test(Ft)?((0,fe.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Ft,"'.Skip for check.")),!0):!1})}return!0};function me(yt,Lt){var jt=yt.createReader(),Mt=[];function Ut(){jt.readEntries(function(Bt){var zt=Array.prototype.slice.apply(Bt);Mt=Mt.concat(zt);var Ft=!zt.length;Ft?Lt(Mt):Ut()})}Ut()}var ge=function(Lt,jt,Mt){var Ut=function Bt(zt,Ft){zt&&(zt.path=Ft||"",zt.isFile?zt.file(function(gn){Mt(gn)&&(zt.fullPath&&!gn.webkitRelativePath&&(Object.defineProperties(gn,{webkitRelativePath:{writable:!0}}),gn.webkitRelativePath=zt.fullPath.replace(/^\//,""),Object.defineProperties(gn,{webkitRelativePath:{writable:!1}})),jt([gn]))}):zt.isDirectory&&me(zt,function(gn){gn.forEach(function(Sn){Bt(Sn,"".concat(Ft).concat(zt.name,"/"))})}))};Lt.forEach(function(Bt){Ut(Bt.webkitGetAsEntry())})},Se=ge,ve=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],be=function(yt){(0,se.Z)(jt,yt);var Lt=(0,ce.Z)(jt);function jt(){var Mt;(0,ae.Z)(this,jt);for(var Ut=arguments.length,Bt=new Array(Ut),zt=0;zt<Ut;zt++)Bt[zt]=arguments[zt];return Mt=Lt.call.apply(Lt,[this].concat(Bt)),Mt.state={uid:le()},Mt.reqs={},Mt.fileInput=void 0,Mt._isMounted=void 0,Mt.onChange=function(Ft){var gn=Mt.props,Sn=gn.accept,Dt=gn.directory,zn=Ft.target.files,Ln=(0,Ee.Z)(zn).filter(function(or){return!Dt||he(or,Sn)});Mt.uploadFiles(Ln),Mt.reset()},Mt.onClick=function(Ft){var gn=Mt.fileInput;if(gn){var Sn=Ft.target,Dt=Mt.props.onClick;if(Sn&&Sn.tagName==="BUTTON"){var zn=gn.parentNode;zn.focus(),Sn.blur()}gn.click(),Dt&&Dt(Ft)}},Mt.onKeyDown=function(Ft){Ft.key==="Enter"&&Mt.onClick(Ft)},Mt.onFileDrop=function(Ft){var gn=Mt.props.multiple;if(Ft.preventDefault(),Ft.type!=="dragover")if(Mt.props.directory)Se(Array.prototype.slice.call(Ft.dataTransfer.items),Mt.uploadFiles,function(Dt){return he(Dt,Mt.props.accept)});else{var Sn=(0,Ee.Z)(Ft.dataTransfer.files).filter(function(Dt){return he(Dt,Mt.props.accept)});gn===!1&&(Sn=Sn.slice(0,1)),Mt.uploadFiles(Sn)}},Mt.uploadFiles=function(Ft){var gn=(0,Ee.Z)(Ft),Sn=gn.map(function(Dt){return Dt.uid=le(),Mt.processFile(Dt,gn)});Promise.all(Sn).then(function(Dt){var zn=Mt.props.onBatchStart;zn==null||zn(Dt.map(function(Ln){var or=Ln.origin,lr=Ln.parsedFile;return{file:or,parsedFile:lr}})),Dt.filter(function(Ln){return Ln.parsedFile!==null}).forEach(function(Ln){Mt.post(Ln)})})},Mt.processFile=function(){var Ft=(0,z.Z)((0,oe.Z)().mark(function gn(Sn,Dt){var zn,Ln,or,lr,Yt,fn,jn,an,Yn;return(0,oe.Z)().wrap(function(Bn){for(;;)switch(Bn.prev=Bn.next){case 0:if(zn=Mt.props.beforeUpload,Ln=Sn,!zn){Bn.next=14;break}return Bn.prev=3,Bn.next=6,zn(Sn,Dt);case 6:Ln=Bn.sent,Bn.next=12;break;case 9:Bn.prev=9,Bn.t0=Bn.catch(3),Ln=!1;case 12:if(Ln!==!1){Bn.next=14;break}return Bn.abrupt("return",{origin:Sn,parsedFile:null,action:null,data:null});case 14:if(or=Mt.props.action,typeof or!="function"){Bn.next=21;break}return Bn.next=18,or(Sn);case 18:lr=Bn.sent,Bn.next=22;break;case 21:lr=or;case 22:if(Yt=Mt.props.data,typeof Yt!="function"){Bn.next=29;break}return Bn.next=26,Yt(Sn);case 26:fn=Bn.sent,Bn.next=30;break;case 29:fn=Yt;case 30:return jn=((0,re.Z)(Ln)==="object"||typeof Ln=="string")&&Ln?Ln:Sn,jn instanceof File?an=jn:an=new File([jn],Sn.name,{type:Sn.type}),Yn=an,Yn.uid=Sn.uid,Bn.abrupt("return",{origin:Sn,data:fn,parsedFile:Yn,action:lr});case 35:case"end":return Bn.stop()}},gn,null,[[3,9]])}));return function(gn,Sn){return Ft.apply(this,arguments)}}(),Mt.saveFileInput=function(Ft){Mt.fileInput=Ft},Mt}return(0,ne.Z)(jt,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(Ut){var Bt=this,zt=Ut.data,Ft=Ut.origin,gn=Ut.action,Sn=Ut.parsedFile;if(this._isMounted){var Dt=this.props,zn=Dt.onStart,Ln=Dt.customRequest,or=Dt.name,lr=Dt.headers,Yt=Dt.withCredentials,fn=Dt.method,jn=Ft.uid,an=Ln||b,Yn={action:gn,filename:or,data:zt,file:Sn,headers:lr,withCredentials:Yt,method:fn||"post",onProgress:function(Bn){var pr=Bt.props.onProgress;pr==null||pr(Bn,Sn)},onSuccess:function(Bn,pr){var fr=Bt.props.onSuccess;fr==null||fr(Bn,Sn,pr),delete Bt.reqs[jn]},onError:function(Bn,pr){var fr=Bt.props.onError;fr==null||fr(Bn,pr,Sn),delete Bt.reqs[jn]}};zn(Ft),this.reqs[jn]=an(Yn)}}},{key:"reset",value:function(){this.setState({uid:le()})}},{key:"abort",value:function(Ut){var Bt=this.reqs;if(Ut){var zt=Ut.uid?Ut.uid:Ut;Bt[zt]&&Bt[zt].abort&&Bt[zt].abort(),delete Bt[zt]}else Object.keys(Bt).forEach(function(Ft){Bt[Ft]&&Bt[Ft].abort&&Bt[Ft].abort(),delete Bt[Ft]})}},{key:"render",value:function(){var Ut=this.props,Bt=Ut.component,zt=Ut.prefixCls,Ft=Ut.className,gn=Ut.disabled,Sn=Ut.id,Dt=Ut.style,zn=Ut.multiple,Ln=Ut.accept,or=Ut.capture,lr=Ut.children,Yt=Ut.directory,fn=Ut.openFileDialogOnClick,jn=Ut.onMouseEnter,an=Ut.onMouseLeave,Yn=(0,ie.Z)(Ut,ve),Hn=pe()((0,ue.Z)((0,ue.Z)((0,ue.Z)({},zt,!0),"".concat(zt,"-disabled"),gn),Ft,Ft)),Bn=Yt?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},pr=gn?{}:{onClick:fn?this.onClick:function(){},onKeyDown:fn?this.onKeyDown:function(){},onMouseEnter:jn,onMouseLeave:an,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return we.createElement(Bt,(0,de.Z)({},pr,{className:Hn,role:"button",style:Dt}),we.createElement("input",(0,de.Z)({},(0,a.Z)(Yn,{aria:!0,data:!0}),{id:Sn,disabled:gn,type:"file",ref:this.saveFileInput,onClick:function(ao){return ao.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:Ln},Bn,{multiple:zn,onChange:this.onChange},or!=null?{capture:or}:{})),lr)}}]),jt}(we.Component),Pe=be;function Te(){}var _e=function(yt){(0,se.Z)(jt,yt);var Lt=(0,ce.Z)(jt);function jt(){var Mt;(0,ae.Z)(this,jt);for(var Ut=arguments.length,Bt=new Array(Ut),zt=0;zt<Ut;zt++)Bt[zt]=arguments[zt];return Mt=Lt.call.apply(Lt,[this].concat(Bt)),Mt.uploader=void 0,Mt.saveUploader=function(Ft){Mt.uploader=Ft},Mt}return(0,ne.Z)(jt,[{key:"abort",value:function(Ut){this.uploader.abort(Ut)}},{key:"render",value:function(){return we.createElement(Pe,(0,de.Z)({},this.props,{ref:this.saveUploader}))}}]),jt}(we.Component);_e.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:Te,onError:Te,onSuccess:Te,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var je=_e,Ce=je,Ie=ye(18929),ke=ye(4676),$e=ye(36355),Ne=ye(1684),nt=ye(9763),qe=ye(31724),Je={icon:function(Lt,jt){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:jt}},{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.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:Lt}}]}},name:"file",theme:"twotone"},Ye=Je,We=ye(7657),Fe=function(Lt,jt){return we.createElement(We.Z,(0,de.Z)({},Lt,{ref:jt,icon:Ye}))},Ue=we.forwardRef(Fe),at=Ue,Xe=ye(58617),ut={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},Ze=ut,ze=function(Lt,jt){return we.createElement(We.Z,(0,de.Z)({},Lt,{ref:jt,icon:Ze}))},Re=we.forwardRef(ze),it=Re,Me={icon:function(Lt,jt){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:Lt}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:jt}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:jt}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:jt}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:Lt}}]}},name:"picture",theme:"twotone"},Be=Me,Qe=function(Lt,jt){return we.createElement(We.Z,(0,de.Z)({},Lt,{ref:jt,icon:Be}))},Ge=we.forwardRef(Qe),De=Ge,Le=ye(77900),Oe=ye(56762),xe=ye(62892),Ae=ye(92343),Ke=ye(3113);function tt(yt){return Object.assign(Object.assign({},yt),{lastModified:yt.lastModified,lastModifiedDate:yt.lastModifiedDate,name:yt.name,size:yt.size,type:yt.type,uid:yt.uid,percent:0,originFileObj:yt})}function He(yt,Lt){const jt=(0,Ee.Z)(Lt),Mt=jt.findIndex(Ut=>{let{uid:Bt}=Ut;return Bt===yt.uid});return Mt===-1?jt.push(yt):jt[Mt]=yt,jt}function ot(yt,Lt){const jt=yt.uid!==void 0?"uid":"name";return Lt.filter(Mt=>Mt[jt]===yt[jt])[0]}function mt(yt,Lt){const jt=yt.uid!==void 0?"uid":"name",Mt=Lt.filter(Ut=>Ut[jt]!==yt[jt]);return Mt.length===Lt.length?null:Mt}const lt=function(){const Lt=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),Mt=Lt[Lt.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(Mt)||[""])[0]},pt=yt=>yt.indexOf("image/")===0,st=yt=>{if(yt.type&&!yt.thumbUrl)return pt(yt.type);const Lt=yt.thumbUrl||yt.url||"",jt=lt(Lt);return/^data:image\//.test(Lt)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(jt)?!0:!(/^data:/.test(Lt)||jt)},vt=200;function rt(yt){return new Promise(Lt=>{if(!yt.type||!pt(yt.type)){Lt("");return}const jt=document.createElement("canvas");jt.width=vt,jt.height=vt,jt.style.cssText=`position: fixed; left: 0; top: 0; width: ${vt}px; height: ${vt}px; z-index: 9999; display: none;`,document.body.appendChild(jt);const Mt=jt.getContext("2d"),Ut=new Image;if(Ut.onload=()=>{const{width:Bt,height:zt}=Ut;let Ft=vt,gn=vt,Sn=0,Dt=0;Bt>zt?(gn=zt*(vt/Bt),Dt=-(gn-Ft)/2):(Ft=Bt*(vt/zt),Sn=-(Ft-gn)/2),Mt.drawImage(Ut,Sn,Dt,Ft,gn);const zn=jt.toDataURL();document.body.removeChild(jt),window.URL.revokeObjectURL(Ut.src),Lt(zn)},Ut.crossOrigin="anonymous",yt.type.startsWith("image/svg+xml")){const Bt=new FileReader;Bt.onload=()=>{Bt.result&&(Ut.src=Bt.result)},Bt.readAsDataURL(yt)}else if(yt.type.startsWith("image/gif")){const Bt=new FileReader;Bt.onload=()=>{Bt.result&&Lt(Bt.result)},Bt.readAsDataURL(yt)}else Ut.src=window.URL.createObjectURL(yt)})}var ct=ye(26227),gt=ye(41464),St=ye(15277),Ct=ye(93948),It=ye(6848),Ht=we.forwardRef((yt,Lt)=>{let{prefixCls:jt,className:Mt,style:Ut,locale:Bt,listType:zt,file:Ft,items:gn,progress:Sn,iconRender:Dt,actionIconRender:zn,itemRender:Ln,isImgUrl:or,showPreviewIcon:lr,showRemoveIcon:Yt,showDownloadIcon:fn,previewIcon:jn,removeIcon:an,downloadIcon:Yn,onPreview:Hn,onDownload:Bn,onClose:pr}=yt;var fr,ao;const{status:no}=Ft,[Qr,xo]=we.useState(no);we.useEffect(()=>{no!=="removed"&&xo(no)},[no]);const[po,Eo]=we.useState(!1);we.useEffect(()=>{const Ir=setTimeout(()=>{Eo(!0)},300);return()=>{clearTimeout(Ir)}},[]);const mo=Dt(Ft);let Zr=we.createElement("div",{className:`${jt}-icon`},mo);if(zt==="picture"||zt==="picture-card"||zt==="picture-circle")if(Qr==="uploading"||!Ft.thumbUrl&&!Ft.url){const Ir=pe()(`${jt}-list-item-thumbnail`,{[`${jt}-list-item-file`]:Qr!=="uploading"});Zr=we.createElement("div",{className:Ir},mo)}else{const Ir=or!=null&&or(Ft)?we.createElement("img",{src:Ft.thumbUrl||Ft.url,alt:Ft.name,className:`${jt}-list-item-image`,crossOrigin:Ft.crossOrigin}):mo,Er=pe()(`${jt}-list-item-thumbnail`,{[`${jt}-list-item-file`]:or&&!or(Ft)});Zr=we.createElement("a",{className:Er,onClick:ro=>Hn(Ft,ro),href:Ft.url||Ft.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Ir)}const Rr=pe()(`${jt}-list-item`,`${jt}-list-item-${Qr}`),so=typeof Ft.linkProps=="string"?JSON.parse(Ft.linkProps):Ft.linkProps,Vr=Yt?zn((typeof an=="function"?an(Ft):an)||we.createElement(ct.Z,null),()=>pr(Ft),jt,Bt.removeFile):null,bo=fn&&Qr==="done"?zn((typeof Yn=="function"?Yn(Ft):Yn)||we.createElement(gt.Z,null),()=>Bn(Ft),jt,Bt.downloadFile):null,Br=zt!=="picture-card"&&zt!=="picture-circle"&&we.createElement("span",{key:"download-delete",className:pe()(`${jt}-list-item-actions`,{picture:zt==="picture"})},bo,Vr),zr=pe()(`${jt}-list-item-name`),So=Ft.url?[we.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:zr,title:Ft.name},so,{href:Ft.url,onClick:Ir=>Hn(Ft,Ir)}),Ft.name),Br]:[we.createElement("span",{key:"view",className:zr,onClick:Ir=>Hn(Ft,Ir),title:Ft.name},Ft.name),Br],qn={pointerEvents:"none",opacity:.5},dr=lr?we.createElement("a",{href:Ft.url||Ft.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:Ft.url||Ft.thumbUrl?void 0:qn,onClick:Ir=>Hn(Ft,Ir),title:Bt.previewFile},typeof jn=="function"?jn(Ft):jn||we.createElement(St.Z,null)):null,Ur=(zt==="picture-card"||zt==="picture-circle")&&Qr!=="uploading"&&we.createElement("span",{className:`${jt}-list-item-actions`},dr,Qr==="done"&&bo,Vr),{getPrefixCls:$r}=we.useContext($e.E_),eo=$r(),jo=we.createElement("div",{className:Rr},Zr,So,Ur,po&&we.createElement(Le.default,{motionName:`${eo}-fade`,visible:Qr==="uploading",motionDeadline:2e3},Ir=>{let{className:Er}=Ir;const ro="percent"in Ft?we.createElement(Ct.Z,Object.assign({},Sn,{type:"line",percent:Ft.percent,"aria-label":Ft["aria-label"],"aria-labelledby":Ft["aria-labelledby"]})):null;return we.createElement("div",{className:pe()(`${jt}-list-item-progress`,Er)},ro)})),Go=Ft.response&&typeof Ft.response=="string"?Ft.response:((fr=Ft.error)===null||fr===void 0?void 0:fr.statusText)||((ao=Ft.error)===null||ao===void 0?void 0:ao.message)||Bt.uploadError,Mo=Qr==="error"?we.createElement(It.Z,{title:Go,getPopupContainer:Ir=>Ir.parentNode},jo):jo;return we.createElement("div",{className:pe()(`${jt}-list-item-container`,Mt),style:Ut,ref:Lt},Ln?Ln(Mo,Ft,gn,{download:Bn.bind(null,Ft),preview:Hn.bind(null,Ft),remove:pr.bind(null,Ft)}):Mo)});const Xt=(yt,Lt)=>{const{listType:jt="text",previewFile:Mt=rt,onPreview:Ut,onDownload:Bt,onRemove:zt,locale:Ft,iconRender:gn,isImageUrl:Sn=st,prefixCls:Dt,items:zn=[],showPreviewIcon:Ln=!0,showRemoveIcon:or=!0,showDownloadIcon:lr=!1,removeIcon:Yt,previewIcon:fn,downloadIcon:jn,progress:an={size:[-1,2],showInfo:!1},appendAction:Yn,appendActionVisible:Hn=!0,itemRender:Bn,disabled:pr}=yt,fr=(0,Oe.Z)(),[ao,no]=we.useState(!1);we.useEffect(()=>{jt!=="picture"&&jt!=="picture-card"&&jt!=="picture-circle"||(zn||[]).forEach(qn=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(qn.originFileObj instanceof File||qn.originFileObj instanceof Blob)||qn.thumbUrl!==void 0||(qn.thumbUrl="",Mt&&Mt(qn.originFileObj).then(dr=>{qn.thumbUrl=dr||"",fr()}))})},[jt,zn,Mt]),we.useEffect(()=>{no(!0)},[]);const Qr=(qn,dr)=>{if(Ut)return dr==null||dr.preventDefault(),Ut(qn)},xo=qn=>{typeof Bt=="function"?Bt(qn):qn.url&&window.open(qn.url)},po=qn=>{zt==null||zt(qn)},Eo=qn=>{if(gn)return gn(qn,jt);const dr=qn.status==="uploading",Ur=Sn&&Sn(qn)?we.createElement(De,null):we.createElement(at,null);let $r=dr?we.createElement(Xe.Z,null):we.createElement(it,null);return jt==="picture"?$r=dr?we.createElement(Xe.Z,null):Ur:(jt==="picture-card"||jt==="picture-circle")&&($r=dr?Ft.uploading:Ur),$r},mo=(qn,dr,Ur,$r)=>{const eo={type:"text",size:"small",title:$r,onClick:jo=>{dr(),(0,Ae.l$)(qn)&&qn.props.onClick&&qn.props.onClick(jo)},className:`${Ur}-list-item-action`,disabled:pr};if((0,Ae.l$)(qn)){const jo=(0,Ae.Tm)(qn,Object.assign(Object.assign({},qn.props),{onClick:()=>{}}));return we.createElement(Ke.ZP,Object.assign({},eo,{icon:jo}))}return we.createElement(Ke.ZP,Object.assign({},eo),we.createElement("span",null,qn))};we.useImperativeHandle(Lt,()=>({handlePreview:Qr,handleDownload:xo}));const{getPrefixCls:Zr}=we.useContext($e.E_),Rr=Zr("upload",Dt),so=Zr(),Vr=pe()(`${Rr}-list`,`${Rr}-list-${jt}`),bo=(0,Ee.Z)(zn.map(qn=>({key:qn.uid,file:qn})));let zr={motionDeadline:2e3,motionName:`${Rr}-${jt==="picture-card"||jt==="picture-circle"?"animate-inline":"animate"}`,keys:bo,motionAppear:ao};const So=we.useMemo(()=>{const qn=Object.assign({},(0,xe.Z)(so));return delete qn.onAppearEnd,delete qn.onEnterEnd,delete qn.onLeaveEnd,qn},[so]);return jt!=="picture-card"&&jt!=="picture-circle"&&(zr=Object.assign(Object.assign({},So),zr)),we.createElement("div",{className:Vr},we.createElement(Le.CSSMotionList,Object.assign({},zr,{component:!1}),qn=>{let{key:dr,file:Ur,className:$r,style:eo}=qn;return we.createElement(Ht,{key:dr,locale:Ft,prefixCls:Rr,className:$r,style:eo,file:Ur,items:zn,progress:an,listType:jt,isImgUrl:Sn,showPreviewIcon:Ln,showRemoveIcon:or,showDownloadIcon:lr,removeIcon:Yt,previewIcon:fn,downloadIcon:jn,iconRender:Eo,actionIconRender:mo,itemRender:Bn,onPreview:Qr,onDownload:xo,onClose:po})}),Yn&&we.createElement(Le.default,Object.assign({},zr,{visible:Hn,forceRender:!0}),qn=>{let{className:dr,style:Ur}=qn;return(0,Ae.Tm)(Yn,$r=>({className:pe()($r.className,dr),style:Object.assign(Object.assign(Object.assign({},Ur),{pointerEvents:dr?"none":void 0}),$r.style)}))}))};var qt=we.forwardRef(Xt),tn=ye(17313),wn=ye(8378),En=ye(83116),en=ye(37613),An=yt=>{const{componentCls:Lt,iconCls:jt}=yt;return{[`${Lt}-wrapper`]:{[`${Lt}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:yt.colorFillAlter,border:`${yt.lineWidth}px dashed ${yt.colorBorder}`,borderRadius:yt.borderRadiusLG,cursor:"pointer",transition:`border-color ${yt.motionDurationSlow}`,[Lt]:{padding:`${yt.padding}px 0`},[`${Lt}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${Lt}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${Lt}-disabled):hover`]:{borderColor:yt.colorPrimaryHover},[`p${Lt}-drag-icon`]:{marginBottom:yt.margin,[jt]:{color:yt.colorPrimary,fontSize:yt.uploadThumbnailSize}},[`p${Lt}-text`]:{margin:`0 0 ${yt.marginXXS}px`,color:yt.colorTextHeading,fontSize:yt.fontSizeLG},[`p${Lt}-hint`]:{color:yt.colorTextDescription,fontSize:yt.fontSize},[`&${Lt}-disabled`]:{cursor:"not-allowed",[`p${Lt}-drag-icon ${jt},
|
|
|
p${Lt}-text,
|
|
|
p${Lt}-hint
|
|
|
`]:{color:yt.colorTextDisabled}}}}}},$n=yt=>{const{componentCls:Lt,antCls:jt,iconCls:Mt,fontSize:Ut,lineHeight:Bt}=yt,zt=`${Lt}-list-item`,Ft=`${zt}-actions`,gn=`${zt}-action`,Sn=Math.round(Ut*Bt);return{[`${Lt}-wrapper`]:{[`${Lt}-list`]:Object.assign(Object.assign({},(0,tn.dF)()),{lineHeight:yt.lineHeight,[zt]:{position:"relative",height:yt.lineHeight*Ut,marginTop:yt.marginXS,fontSize:Ut,display:"flex",alignItems:"center",transition:`background-color ${yt.motionDurationSlow}`,"&:hover":{backgroundColor:yt.controlItemBgHover},[`${zt}-name`]:Object.assign(Object.assign({},tn.vS),{padding:`0 ${yt.paddingXS}px`,lineHeight:Bt,flex:"auto",transition:`all ${yt.motionDurationSlow}`}),[Ft]:{[gn]:{opacity:0},[`${gn}${jt}-btn-sm`]:{height:Sn,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
|
|
|
${gn}:focus-visible,
|
|
|
&.picture ${gn}
|
|
|
`]:{opacity:1},[Mt]:{color:yt.actionsColor,transition:`all ${yt.motionDurationSlow}`},[`&:hover ${Mt}`]:{color:yt.colorText}},[`${Lt}-icon ${Mt}`]:{color:yt.colorTextDescription,fontSize:Ut},[`${zt}-progress`]:{position:"absolute",bottom:-yt.uploadProgressOffset,width:"100%",paddingInlineStart:Ut+yt.paddingXS,fontSize:Ut,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${zt}:hover ${gn}`]:{opacity:1,color:yt.colorText},[`${zt}-error`]:{color:yt.colorError,[`${zt}-name, ${Lt}-icon ${Mt}`]:{color:yt.colorError},[Ft]:{[`${Mt}, ${Mt}:hover`]:{color:yt.colorError},[gn]:{opacity:1}}},[`${Lt}-list-item-container`]:{transition:`opacity ${yt.motionDurationSlow}, height ${yt.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},hr=ye(36237),nr=ye(1950);const yr=new hr.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),Nr=new hr.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var Cr=yt=>{const{componentCls:Lt}=yt,jt=`${Lt}-animate-inline`;return[{[`${Lt}-wrapper`]:{[`${jt}-appear, ${jt}-enter, ${jt}-leave`]:{animationDuration:yt.motionDurationSlow,animationTimingFunction:yt.motionEaseInOutCirc,animationFillMode:"forwards"},[`${jt}-appear, ${jt}-enter`]:{animationName:yr},[`${jt}-leave`]:{animationName:Nr}}},{[`${Lt}-wrapper`]:(0,nr.J$)(yt)},yr,Nr]},rr=ye(30071),_r=ye(64993);const Et=yt=>{const{componentCls:Lt,iconCls:jt,uploadThumbnailSize:Mt,uploadProgressOffset:Ut}=yt,Bt=`${Lt}-list`,zt=`${Bt}-item`;return{[`${Lt}-wrapper`]:{[`
|
|
|
${Bt}${Bt}-picture,
|
|
|
${Bt}${Bt}-picture-card,
|
|
|
${Bt}${Bt}-picture-circle
|
|
|
`]:{[zt]:{position:"relative",height:Mt+yt.lineWidth*2+yt.paddingXS*2,padding:yt.paddingXS,border:`${yt.lineWidth}px ${yt.lineType} ${yt.colorBorder}`,borderRadius:yt.borderRadiusLG,"&:hover":{background:"transparent"},[`${zt}-thumbnail`]:Object.assign(Object.assign({},tn.vS),{width:Mt,height:Mt,lineHeight:`${Mt+yt.paddingSM}px`,textAlign:"center",flex:"none",[jt]:{fontSize:yt.fontSizeHeading2,color:yt.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${zt}-progress`]:{bottom:Ut,width:`calc(100% - ${yt.paddingSM*2}px)`,marginTop:0,paddingInlineStart:Mt+yt.paddingXS}},[`${zt}-error`]:{borderColor:yt.colorError,[`${zt}-thumbnail ${jt}`]:{[`svg path[fill='${rr.blue[0]}']`]:{fill:yt.colorErrorBg},[`svg path[fill='${rr.blue.primary}']`]:{fill:yt.colorError}}},[`${zt}-uploading`]:{borderStyle:"dashed",[`${zt}-name`]:{marginBottom:Ut}}},[`${Bt}${Bt}-picture-circle ${zt}`]:{[`&, &::before, ${zt}-thumbnail`]:{borderRadius:"50%"}}}}},Rt=yt=>{const{componentCls:Lt,iconCls:jt,fontSizeLG:Mt,colorTextLightSolid:Ut}=yt,Bt=`${Lt}-list`,zt=`${Bt}-item`,Ft=yt.uploadPicCardSize;return{[`
|
|
|
${Lt}-wrapper${Lt}-picture-card-wrapper,
|
|
|
${Lt}-wrapper${Lt}-picture-circle-wrapper
|
|
|
`]:Object.assign(Object.assign({},(0,tn.dF)()),{display:"inline-block",width:"100%",[`${Lt}${Lt}-select`]:{width:Ft,height:Ft,marginInlineEnd:yt.marginXS,marginBottom:yt.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:yt.colorFillAlter,border:`${yt.lineWidth}px dashed ${yt.colorBorder}`,borderRadius:yt.borderRadiusLG,cursor:"pointer",transition:`border-color ${yt.motionDurationSlow}`,[`> ${Lt}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${Lt}-disabled):hover`]:{borderColor:yt.colorPrimary}},[`${Bt}${Bt}-picture-card, ${Bt}${Bt}-picture-circle`]:{[`${Bt}-item-container`]:{display:"inline-block",width:Ft,height:Ft,marginBlock:`0 ${yt.marginXS}px`,marginInline:`0 ${yt.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[zt]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${yt.paddingXS*2}px)`,height:`calc(100% - ${yt.paddingXS*2}px)`,backgroundColor:yt.colorBgMask,opacity:0,transition:`all ${yt.motionDurationSlow}`,content:'" "'}},[`${zt}:hover`]:{[`&::before, ${zt}-actions`]:{opacity:1}},[`${zt}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${yt.motionDurationSlow}`,[`${jt}-eye, ${jt}-download, ${jt}-delete`]:{zIndex:10,width:Mt,margin:`0 ${yt.marginXXS}px`,fontSize:Mt,cursor:"pointer",transition:`all ${yt.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${zt}-actions, ${zt}-actions:hover`]:{[`${jt}-eye, ${jt}-download, ${jt}-delete`]:{color:new _r.C(Ut).setAlpha(.65).toRgbString(),"&:hover":{color:Ut}}},[`${zt}-thumbnail, ${zt}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${zt}-name`]:{display:"none",textAlign:"center"},[`${zt}-file + ${zt}-name`]:{position:"absolute",bottom:yt.margin,display:"block",width:`calc(100% - ${yt.paddingXS*2}px)`},[`${zt}-uploading`]:{[`&${zt}`]:{backgroundColor:yt.colorFillAlter},[`&::before, ${jt}-eye, ${jt}-download, ${jt}-delete`]:{display:"none"}},[`${zt}-progress`]:{bottom:yt.marginXL,width:`calc(100% - ${yt.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${Lt}-wrapper${Lt}-picture-circle-wrapper`]:{[`${Lt}${Lt}-select`]:{borderRadius:"50%"}}}};var Zt=yt=>{const{componentCls:Lt}=yt;return{[`${Lt}-rtl`]:{direction:"rtl"}}};const yn=yt=>{const{componentCls:Lt,colorTextDisabled:jt}=yt;return{[`${Lt}-wrapper`]:Object.assign(Object.assign({},(0,tn.Wf)(yt)),{[Lt]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${Lt}-select`]:{display:"inline-block"},[`${Lt}-disabled`]:{color:jt,cursor:"not-allowed"}})}};var mn=(0,En.Z)("Upload",yt=>{const{fontSizeHeading3:Lt,fontSize:jt,lineHeight:Mt,lineWidth:Ut,controlHeightLG:Bt}=yt,zt=Math.round(jt*Mt),Ft=(0,en.TS)(yt,{uploadThumbnailSize:Lt*2,uploadProgressOffset:zt/2+Ut,uploadPicCardSize:Bt*2.55});return[yn(Ft),An(Ft),Et(Ft),Rt(Ft),$n(Ft),Cr(Ft),Zt(Ft),(0,wn.Z)(Ft)]},yt=>({actionsColor:yt.colorTextDescription})),mr=function(yt,Lt,jt,Mt){function Ut(Bt){return Bt instanceof jt?Bt:new jt(function(zt){zt(Bt)})}return new(jt||(jt=Promise))(function(Bt,zt){function Ft(Dt){try{Sn(Mt.next(Dt))}catch(zn){zt(zn)}}function gn(Dt){try{Sn(Mt.throw(Dt))}catch(zn){zt(zn)}}function Sn(Dt){Dt.done?Bt(Dt.value):Ut(Dt.value).then(Ft,gn)}Sn((Mt=Mt.apply(yt,Lt||[])).next())})};const Kn=`__LIST_IGNORE_${Date.now()}__`,Mn=(yt,Lt)=>{const{fileList:jt,defaultFileList:Mt,onRemove:Ut,showUploadList:Bt=!0,listType:zt="text",onPreview:Ft,onDownload:gn,onChange:Sn,onDrop:Dt,previewFile:zn,disabled:Ln,locale:or,iconRender:lr,isImageUrl:Yt,progress:fn,prefixCls:jn,className:an,type:Yn="select",children:Hn,style:Bn,itemRender:pr,maxCount:fr,data:ao={},multiple:no=!1,action:Qr="",accept:xo="",supportServerRender:po=!0,rootClassName:Eo}=yt,mo=we.useContext(Ne.Z),Zr=Ln!=null?Ln:mo,[Rr,so]=(0,Ie.Z)(Mt||[],{value:jt,postState:gr=>gr!=null?gr:[]}),[Vr,bo]=we.useState("drop"),Br=we.useRef(null);we.useMemo(()=>{const gr=Date.now();(jt||[]).forEach((Dr,Jr)=>{!Dr.uid&&!Object.isFrozen(Dr)&&(Dr.uid=`__AUTO__${gr}_${Jr}__`)})},[jt]);const zr=(gr,Dr,Jr)=>{let Lr=(0,Ee.Z)(Dr),ir=!1;fr===1?Lr=Lr.slice(-1):fr&&(ir=Lr.length>fr,Lr=Lr.slice(0,fr)),(0,ke.flushSync)(()=>{so(Lr)});const Zn={file:gr,fileList:Lr};Jr&&(Zn.event=Jr),(!ir||Lr.some(Fr=>Fr.uid===gr.uid))&&(0,ke.flushSync)(()=>{Sn==null||Sn(Zn)})},So=(gr,Dr)=>mr(void 0,void 0,void 0,function*(){const{beforeUpload:Jr,transformFile:Lr}=yt;let ir=gr;if(Jr){const Zn=yield Jr(gr,Dr);if(Zn===!1)return!1;if(delete gr[Kn],Zn===Kn)return Object.defineProperty(gr,Kn,{value:!0,configurable:!0}),!1;typeof Zn=="object"&&Zn&&(ir=Zn)}return Lr&&(ir=yield Lr(ir)),ir}),qn=gr=>{const Dr=gr.filter(ir=>!ir.file[Kn]);if(!Dr.length)return;const Jr=Dr.map(ir=>tt(ir.file));let Lr=(0,Ee.Z)(Rr);Jr.forEach(ir=>{Lr=He(ir,Lr)}),Jr.forEach((ir,Zn)=>{let Fr=ir;if(Dr[Zn].parsedFile)ir.status="uploading";else{const{originFileObj:Io}=ir;let Po;try{Po=new File([Io],Io.name,{type:Io.type})}catch(Qo){Po=new Blob([Io],{type:Io.type}),Po.name=Io.name,Po.lastModifiedDate=new Date,Po.lastModified=new Date().getTime()}Po.uid=ir.uid,Fr=Po}zr(Fr,Lr)})},dr=(gr,Dr,Jr)=>{try{typeof gr=="string"&&(gr=JSON.parse(gr))}catch(Zn){}if(!ot(Dr,Rr))return;const Lr=tt(Dr);Lr.status="done",Lr.percent=100,Lr.response=gr,Lr.xhr=Jr;const ir=He(Lr,Rr);zr(Lr,ir)},Ur=(gr,Dr)=>{if(!ot(Dr,Rr))return;const Jr=tt(Dr);Jr.status="uploading",Jr.percent=gr.percent;const Lr=He(Jr,Rr);zr(Jr,Lr,gr)},$r=(gr,Dr,Jr)=>{if(!ot(Jr,Rr))return;const Lr=tt(Jr);Lr.error=gr,Lr.response=Dr,Lr.status="error";const ir=He(Lr,Rr);zr(Lr,ir)},eo=gr=>{let Dr;Promise.resolve(typeof Ut=="function"?Ut(gr):Ut).then(Jr=>{var Lr;if(Jr===!1)return;const ir=mt(gr,Rr);ir&&(Dr=Object.assign(Object.assign({},gr),{status:"removed"}),Rr==null||Rr.forEach(Zn=>{const Fr=Dr.uid!==void 0?"uid":"name";Zn[Fr]===Dr[Fr]&&!Object.isFrozen(Zn)&&(Zn.status="removed")}),(Lr=Br.current)===null||Lr===void 0||Lr.abort(Dr),zr(Dr,ir))})},jo=gr=>{bo(gr.type),gr.type==="drop"&&(Dt==null||Dt(gr))};we.useImperativeHandle(Lt,()=>({onBatchStart:qn,onSuccess:dr,onProgress:Ur,onError:$r,fileList:Rr,upload:Br.current}));const{getPrefixCls:Go,direction:Mo,upload:Ir}=we.useContext($e.E_),Er=Go("upload",jn),ro=Object.assign(Object.assign({onBatchStart:qn,onError:$r,onProgress:Ur,onSuccess:dr},yt),{data:ao,multiple:no,action:Qr,accept:xo,supportServerRender:po,prefixCls:Er,disabled:Zr,beforeUpload:So,onChange:void 0});delete ro.className,delete ro.style,(!Hn||Zr)&&delete ro.id;const[Fo,zo]=mn(Er),[ci]=(0,nt.Z)("Upload",qe.Z.Upload),{showRemoveIcon:Dn,showPreviewIcon:hn,showDownloadIcon:Cn,removeIcon:In,previewIcon:br,downloadIcon:Ar}=typeof Bt=="boolean"?{}:Bt,Kr=(gr,Dr)=>Bt?we.createElement(qt,{prefixCls:Er,listType:zt,items:Rr,previewFile:zn,onPreview:Ft,onDownload:gn,onRemove:eo,showRemoveIcon:!Zr&&Dn,showPreviewIcon:hn,showDownloadIcon:Cn,removeIcon:In,previewIcon:br,downloadIcon:Ar,iconRender:lr,locale:Object.assign(Object.assign({},ci),or),isImageUrl:Yt,progress:fn,appendAction:gr,appendActionVisible:Dr,itemRender:pr,disabled:Zr}):gr,Yr=pe()(`${Er}-wrapper`,an,Eo,zo,Ir==null?void 0:Ir.className,{[`${Er}-rtl`]:Mo==="rtl",[`${Er}-picture-card-wrapper`]:zt==="picture-card",[`${Er}-picture-circle-wrapper`]:zt==="picture-circle"}),lo=Object.assign(Object.assign({},Ir==null?void 0:Ir.style),Bn);if(Yn==="drag"){const gr=pe()(zo,Er,`${Er}-drag`,{[`${Er}-drag-uploading`]:Rr.some(Dr=>Dr.status==="uploading"),[`${Er}-drag-hover`]:Vr==="dragover",[`${Er}-disabled`]:Zr,[`${Er}-rtl`]:Mo==="rtl"});return Fo(we.createElement("span",{className:Yr},we.createElement("div",{className:gr,style:lo,onDrop:jo,onDragOver:jo,onDragLeave:jo},we.createElement(Ce,Object.assign({},ro,{ref:Br,className:`${Er}-btn`}),we.createElement("div",{className:`${Er}-drag-container`},Hn))),Kr()))}const co=pe()(Er,`${Er}-select`,{[`${Er}-disabled`]:Zr}),Lo=(gr=>we.createElement("div",{className:co,style:gr},we.createElement(Ce,Object.assign({},ro,{ref:Br}))))(Hn?void 0:{display:"none"});return Fo(zt==="picture-card"||zt==="picture-circle"?we.createElement("span",{className:Yr},Kr(Lo,!!Hn)):we.createElement("span",{className:Yr},Lo,Kr()))};var Kt=we.forwardRef(Mn),bt=function(yt,Lt){var jt={};for(var Mt in yt)Object.prototype.hasOwnProperty.call(yt,Mt)&&Lt.indexOf(Mt)<0&&(jt[Mt]=yt[Mt]);if(yt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ut=0,Mt=Object.getOwnPropertySymbols(yt);Ut<Mt.length;Ut++)Lt.indexOf(Mt[Ut])<0&&Object.prototype.propertyIsEnumerable.call(yt,Mt[Ut])&&(jt[Mt[Ut]]=yt[Mt[Ut]]);return jt},rn=we.forwardRef((yt,Lt)=>{var{style:jt,height:Mt}=yt,Ut=bt(yt,["style","height"]);return we.createElement(Kt,Object.assign({ref:Lt},Ut,{type:"drag",style:Object.assign(Object.assign({},jt),{height:Mt})}))});const nn=Kt;nn.Dragger=rn,nn.LIST_IGNORE=Kn;var cn=nn},24334:function(_t,ft,ye){var we,Ee;(function(x,pe){_t.exports=pe(x)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof ye.g!="undefined"?ye.g:this,function(x){"use strict";x=x||{};var pe=x.Base64,de="2.6.4",ae="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ne=function(_e){for(var je={},Ce=0,Ie=_e.length;Ce<Ie;Ce++)je[_e.charAt(Ce)]=Ce;return je}(ae),se=String.fromCharCode,ce=function(_e){if(_e.length<2){var je=_e.charCodeAt(0);return je<128?_e:je<2048?se(192|je>>>6)+se(128|je&63):se(224|je>>>12&15)+se(128|je>>>6&63)+se(128|je&63)}else{var je=65536+(_e.charCodeAt(0)-55296)*1024+(_e.charCodeAt(1)-56320);return se(240|je>>>18&7)+se(128|je>>>12&63)+se(128|je>>>6&63)+se(128|je&63)}},ue=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,ie=function(_e){return _e.replace(ue,ce)},oe=function(_e){var je=[0,2,1][_e.length%3],Ce=_e.charCodeAt(0)<<16|(_e.length>1?_e.charCodeAt(1):0)<<8|(_e.length>2?_e.charCodeAt(2):0),Ie=[ae.charAt(Ce>>>18),ae.charAt(Ce>>>12&63),je>=2?"=":ae.charAt(Ce>>>6&63),je>=1?"=":ae.charAt(Ce&63)];return Ie.join("")},re=x.btoa&&typeof x.btoa=="function"?function(_e){return x.btoa(_e)}:function(_e){if(_e.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return _e.replace(/[\s\S]{1,3}/g,oe)},z=function(_e){return re(ie(String(_e)))},a=function(_e){return _e.replace(/[+\/]/g,function(je){return je=="+"?"-":"_"}).replace(/=/g,"")},y=function(_e,je){return je?a(z(_e)):z(_e)},E=function(_e){return y(_e,!0)},b;x.Uint8Array&&(b=function(_e,je){for(var Ce="",Ie=0,ke=_e.length;Ie<ke;Ie+=3){var $e=_e[Ie],Ne=_e[Ie+1],nt=_e[Ie+2],qe=$e<<16|Ne<<8|nt;Ce+=ae.charAt(qe>>>18)+ae.charAt(qe>>>12&63)+(typeof Ne!="undefined"?ae.charAt(qe>>>6&63):"=")+(typeof nt!="undefined"?ae.charAt(qe&63):"=")}return je?a(Ce):Ce});var ee=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,te=function(_e){switch(_e.length){case 4:var je=(7&_e.charCodeAt(0))<<18|(63&_e.charCodeAt(1))<<12|(63&_e.charCodeAt(2))<<6|63&_e.charCodeAt(3),Ce=je-65536;return se((Ce>>>10)+55296)+se((Ce&1023)+56320);case 3:return se((15&_e.charCodeAt(0))<<12|(63&_e.charCodeAt(1))<<6|63&_e.charCodeAt(2));default:return se((31&_e.charCodeAt(0))<<6|63&_e.charCodeAt(1))}},le=function(_e){return _e.replace(ee,te)},fe=function(_e){var je=_e.length,Ce=je%4,Ie=(je>0?ne[_e.charAt(0)]<<18:0)|(je>1?ne[_e.charAt(1)]<<12:0)|(je>2?ne[_e.charAt(2)]<<6:0)|(je>3?ne[_e.charAt(3)]:0),ke=[se(Ie>>>16),se(Ie>>>8&255),se(Ie&255)];return ke.length-=[0,0,2,1][Ce],ke.join("")},he=x.atob&&typeof x.atob=="function"?function(_e){return x.atob(_e)}:function(_e){return _e.replace(/\S{1,4}/g,fe)},me=function(_e){return he(String(_e).replace(/[^A-Za-z0-9\+\/]/g,""))},ge=function(_e){return le(he(_e))},Se=function(_e){return String(_e).replace(/[-_]/g,function(je){return je=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},ve=function(_e){return ge(Se(_e))},be;x.Uint8Array&&(be=function(_e){return Uint8Array.from(me(Se(_e)),function(je){return je.charCodeAt(0)})});var Pe=function(){var _e=x.Base64;return x.Base64=pe,_e};if(x.Base64={VERSION:de,atob:me,btoa:re,fromBase64:ve,toBase64:y,utob:ie,encode:y,encodeURI:E,btou:le,decode:ve,noConflict:Pe,fromUint8Array:b,toUint8Array:be},typeof Object.defineProperty=="function"){var Te=function(_e){return{value:_e,enumerable:!1,writable:!0,configurable:!0}};x.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",Te(function(){return ve(this)})),Object.defineProperty(String.prototype,"toBase64",Te(function(_e){return y(this,_e)})),Object.defineProperty(String.prototype,"toBase64URI",Te(function(){return y(this,!0)}))}}return x.Meteor&&(Base64=x.Base64),_t.exports?_t.exports.Base64=x.Base64:(we=[],Ee=function(){return x.Base64}.apply(ft,we),Ee!==void 0&&(_t.exports=Ee)),{Base64:x.Base64}})},39417:function(_t,ft,ye){"use strict";ye.d(ft,{Z:function(){return ge}});var we=ye(32855),Ee=ye(74430),x=ye(43079),pe=ye(27247),de=ye(33377),ae=ye(93912),ne=ye(83383),se=ye(18881),ce=ye(85461),ue=ye(92310),ie=ye.n(ue),oe=ye(26112),re=ye(59301),z=ye(39378),a=function(ve){for(var be=ve.prefixCls,Pe=ve.level,Te=ve.isStart,_e=ve.isEnd,je="".concat(be,"-indent-unit"),Ce=[],Ie=0;Ie<Pe;Ie+=1){var ke;Ce.push(re.createElement("span",{key:Ie,className:ie()(je,(ke={},(0,Ee.Z)(ke,"".concat(je,"-start"),Te[Ie]),(0,Ee.Z)(ke,"".concat(je,"-end"),_e[Ie]),ke))}))}return re.createElement("span",{"aria-hidden":"true",className:"".concat(be,"-indent")},Ce)},y=re.memo(a),E=ye(67841),b=ye(71430),ee=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],te="open",le="close",fe="---",he=function(Se){(0,se.Z)(be,Se);var ve=(0,ce.Z)(be);function be(){var Pe;(0,de.Z)(this,be);for(var Te=arguments.length,_e=new Array(Te),je=0;je<Te;je++)_e[je]=arguments[je];return Pe=ve.call.apply(ve,[this].concat(_e)),Pe.state={dragNodeHighlight:!1},Pe.selectHandle=void 0,Pe.cacheIndent=void 0,Pe.onSelectorClick=function(Ce){var Ie=Pe.props.context.onNodeClick;Ie(Ce,(0,b.F)(Pe.props)),Pe.isSelectable()?Pe.onSelect(Ce):Pe.onCheck(Ce)},Pe.onSelectorDoubleClick=function(Ce){var Ie=Pe.props.context.onNodeDoubleClick;Ie(Ce,(0,b.F)(Pe.props))},Pe.onSelect=function(Ce){if(!Pe.isDisabled()){var Ie=Pe.props.context.onNodeSelect;Ie(Ce,(0,b.F)(Pe.props))}},Pe.onCheck=function(Ce){if(!Pe.isDisabled()){var Ie=Pe.props,ke=Ie.disableCheckbox,$e=Ie.checked,Ne=Pe.props.context.onNodeCheck;if(!(!Pe.isCheckable()||ke)){var nt=!$e;Ne(Ce,(0,b.F)(Pe.props),nt)}}},Pe.onMouseEnter=function(Ce){var Ie=Pe.props.context.onNodeMouseEnter;Ie(Ce,(0,b.F)(Pe.props))},Pe.onMouseLeave=function(Ce){var Ie=Pe.props.context.onNodeMouseLeave;Ie(Ce,(0,b.F)(Pe.props))},Pe.onContextMenu=function(Ce){var Ie=Pe.props.context.onNodeContextMenu;Ie(Ce,(0,b.F)(Pe.props))},Pe.onDragStart=function(Ce){var Ie=Pe.props.context.onNodeDragStart;Ce.stopPropagation(),Pe.setState({dragNodeHighlight:!0}),Ie(Ce,(0,ne.Z)(Pe));try{Ce.dataTransfer.setData("text/plain","")}catch(ke){}},Pe.onDragEnter=function(Ce){var Ie=Pe.props.context.onNodeDragEnter;Ce.preventDefault(),Ce.stopPropagation(),Ie(Ce,(0,ne.Z)(Pe))},Pe.onDragOver=function(Ce){var Ie=Pe.props.context.onNodeDragOver;Ce.preventDefault(),Ce.stopPropagation(),Ie(Ce,(0,ne.Z)(Pe))},Pe.onDragLeave=function(Ce){var Ie=Pe.props.context.onNodeDragLeave;Ce.stopPropagation(),Ie(Ce,(0,ne.Z)(Pe))},Pe.onDragEnd=function(Ce){var Ie=Pe.props.context.onNodeDragEnd;Ce.stopPropagation(),Pe.setState({dragNodeHighlight:!1}),Ie(Ce,(0,ne.Z)(Pe))},Pe.onDrop=function(Ce){var Ie=Pe.props.context.onNodeDrop;Ce.preventDefault(),Ce.stopPropagation(),Pe.setState({dragNodeHighlight:!1}),Ie(Ce,(0,ne.Z)(Pe))},Pe.onExpand=function(Ce){var Ie=Pe.props,ke=Ie.loading,$e=Ie.context.onNodeExpand;ke||$e(Ce,(0,b.F)(Pe.props))},Pe.setSelectHandle=function(Ce){Pe.selectHandle=Ce},Pe.getNodeState=function(){var Ce=Pe.props.expanded;return Pe.isLeaf()?null:Ce?te:le},Pe.hasChildren=function(){var Ce=Pe.props.eventKey,Ie=Pe.props.context.keyEntities,ke=(0,E.Z)(Ie,Ce)||{},$e=ke.children;return!!($e||[]).length},Pe.isLeaf=function(){var Ce=Pe.props,Ie=Ce.isLeaf,ke=Ce.loaded,$e=Pe.props.context.loadData,Ne=Pe.hasChildren();return Ie===!1?!1:Ie||!$e&&!Ne||$e&&ke&&!Ne},Pe.isDisabled=function(){var Ce=Pe.props.disabled,Ie=Pe.props.context.disabled;return!!(Ie||Ce)},Pe.isCheckable=function(){var Ce=Pe.props.checkable,Ie=Pe.props.context.checkable;return!Ie||Ce===!1?!1:Ie},Pe.syncLoadData=function(Ce){var Ie=Ce.expanded,ke=Ce.loading,$e=Ce.loaded,Ne=Pe.props.context,nt=Ne.loadData,qe=Ne.onNodeLoad;ke||nt&&Ie&&!Pe.isLeaf()&&!Pe.hasChildren()&&!$e&&qe((0,b.F)(Pe.props))},Pe.isDraggable=function(){var Ce=Pe.props,Ie=Ce.data,ke=Ce.context.draggable;return!!(ke&&(!ke.nodeDraggable||ke.nodeDraggable(Ie)))},Pe.renderDragHandler=function(){var Ce=Pe.props.context,Ie=Ce.draggable,ke=Ce.prefixCls;return Ie!=null&&Ie.icon?re.createElement("span",{className:"".concat(ke,"-draggable-icon")},Ie.icon):null},Pe.renderSwitcherIconDom=function(Ce){var Ie=Pe.props.switcherIcon,ke=Pe.props.context.switcherIcon,$e=Ie||ke;return typeof $e=="function"?$e((0,pe.Z)((0,pe.Z)({},Pe.props),{},{isLeaf:Ce})):$e},Pe.renderSwitcher=function(){var Ce=Pe.props.expanded,Ie=Pe.props.context.prefixCls;if(Pe.isLeaf()){var ke=Pe.renderSwitcherIconDom(!0);return ke!==!1?re.createElement("span",{className:ie()("".concat(Ie,"-switcher"),"".concat(Ie,"-switcher-noop"))},ke):null}var $e=ie()("".concat(Ie,"-switcher"),"".concat(Ie,"-switcher_").concat(Ce?te:le)),Ne=Pe.renderSwitcherIconDom(!1);return Ne!==!1?re.createElement("span",{onClick:Pe.onExpand,className:$e},Ne):null},Pe.renderCheckbox=function(){var Ce=Pe.props,Ie=Ce.checked,ke=Ce.halfChecked,$e=Ce.disableCheckbox,Ne=Pe.props.context.prefixCls,nt=Pe.isDisabled(),qe=Pe.isCheckable();if(!qe)return null;var Je=typeof qe!="boolean"?qe:null;return re.createElement("span",{className:ie()("".concat(Ne,"-checkbox"),Ie&&"".concat(Ne,"-checkbox-checked"),!Ie&&ke&&"".concat(Ne,"-checkbox-indeterminate"),(nt||$e)&&"".concat(Ne,"-checkbox-disabled")),onClick:Pe.onCheck},Je)},Pe.renderIcon=function(){var Ce=Pe.props.loading,Ie=Pe.props.context.prefixCls;return re.createElement("span",{className:ie()("".concat(Ie,"-iconEle"),"".concat(Ie,"-icon__").concat(Pe.getNodeState()||"docu"),Ce&&"".concat(Ie,"-icon_loading"))})},Pe.renderSelector=function(){var Ce=Pe.state.dragNodeHighlight,Ie=Pe.props,ke=Ie.title,$e=ke===void 0?fe:ke,Ne=Ie.selected,nt=Ie.icon,qe=Ie.loading,Je=Ie.data,Ye=Pe.props.context,We=Ye.prefixCls,Fe=Ye.showIcon,Ue=Ye.icon,at=Ye.loadData,Xe=Ye.titleRender,ut=Pe.isDisabled(),Ze="".concat(We,"-node-content-wrapper"),ze;if(Fe){var Re=nt||Ue;ze=Re?re.createElement("span",{className:ie()("".concat(We,"-iconEle"),"".concat(We,"-icon__customize"))},typeof Re=="function"?Re(Pe.props):Re):Pe.renderIcon()}else at&&qe&&(ze=Pe.renderIcon());var it;typeof $e=="function"?it=$e(Je):Xe?it=Xe(Je):it=$e;var Me=re.createElement("span",{className:"".concat(We,"-title")},it);return re.createElement("span",{ref:Pe.setSelectHandle,title:typeof $e=="string"?$e:"",className:ie()("".concat(Ze),"".concat(Ze,"-").concat(Pe.getNodeState()||"normal"),!ut&&(Ne||Ce)&&"".concat(We,"-node-selected")),onMouseEnter:Pe.onMouseEnter,onMouseLeave:Pe.onMouseLeave,onContextMenu:Pe.onContextMenu,onClick:Pe.onSelectorClick,onDoubleClick:Pe.onSelectorDoubleClick},ze,Me,Pe.renderDropIndicator())},Pe.renderDropIndicator=function(){var Ce=Pe.props,Ie=Ce.disabled,ke=Ce.eventKey,$e=Pe.props.context,Ne=$e.draggable,nt=$e.dropLevelOffset,qe=$e.dropPosition,Je=$e.prefixCls,Ye=$e.indent,We=$e.dropIndicatorRender,Fe=$e.dragOverNodeKey,Ue=$e.direction,at=!!Ne,Xe=!Ie&&at&&Fe===ke,ut=Ye!=null?Ye:Pe.cacheIndent;return Pe.cacheIndent=Ye,Xe?We({dropPosition:qe,dropLevelOffset:nt,indent:ut,prefixCls:Je,direction:Ue}):null},Pe}return(0,ae.Z)(be,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var Te=this.props.selectable,_e=this.props.context.selectable;return typeof Te=="boolean"?Te:_e}},{key:"render",value:function(){var Te,_e=this.props,je=_e.eventKey,Ce=_e.className,Ie=_e.style,ke=_e.dragOver,$e=_e.dragOverGapTop,Ne=_e.dragOverGapBottom,nt=_e.isLeaf,qe=_e.isStart,Je=_e.isEnd,Ye=_e.expanded,We=_e.selected,Fe=_e.checked,Ue=_e.halfChecked,at=_e.loading,Xe=_e.domRef,ut=_e.active,Ze=_e.data,ze=_e.onMouseMove,Re=_e.selectable,it=(0,x.Z)(_e,ee),Me=this.props.context,Be=Me.prefixCls,Qe=Me.filterTreeNode,Ge=Me.keyEntities,De=Me.dropContainerKey,Le=Me.dropTargetKey,Oe=Me.draggingNodeKey,xe=this.isDisabled(),Ae=(0,oe.Z)(it,{aria:!0,data:!0}),Ke=(0,E.Z)(Ge,je)||{},tt=Ke.level,He=Je[Je.length-1],ot=this.isDraggable(),mt=!xe&&ot,lt=Oe===je,pt=Re!==void 0?{"aria-selected":!!Re}:void 0;return re.createElement("div",(0,we.Z)({ref:Xe,className:ie()(Ce,"".concat(Be,"-treenode"),(Te={},(0,Ee.Z)(Te,"".concat(Be,"-treenode-disabled"),xe),(0,Ee.Z)(Te,"".concat(Be,"-treenode-switcher-").concat(Ye?"open":"close"),!nt),(0,Ee.Z)(Te,"".concat(Be,"-treenode-checkbox-checked"),Fe),(0,Ee.Z)(Te,"".concat(Be,"-treenode-checkbox-indeterminate"),Ue),(0,Ee.Z)(Te,"".concat(Be,"-treenode-selected"),We),(0,Ee.Z)(Te,"".concat(Be,"-treenode-loading"),at),(0,Ee.Z)(Te,"".concat(Be,"-treenode-active"),ut),(0,Ee.Z)(Te,"".concat(Be,"-treenode-leaf-last"),He),(0,Ee.Z)(Te,"".concat(Be,"-treenode-draggable"),ot),(0,Ee.Z)(Te,"dragging",lt),(0,Ee.Z)(Te,"drop-target",Le===je),(0,Ee.Z)(Te,"drop-container",De===je),(0,Ee.Z)(Te,"drag-over",!xe&&ke),(0,Ee.Z)(Te,"drag-over-gap-top",!xe&&$e),(0,Ee.Z)(Te,"drag-over-gap-bottom",!xe&&Ne),(0,Ee.Z)(Te,"filter-node",Qe&&Qe((0,b.F)(this.props))),Te)),style:Ie,draggable:mt,"aria-grabbed":lt,onDragStart:mt?this.onDragStart:void 0,onDragEnter:ot?this.onDragEnter:void 0,onDragOver:ot?this.onDragOver:void 0,onDragLeave:ot?this.onDragLeave:void 0,onDrop:ot?this.onDrop:void 0,onDragEnd:ot?this.onDragEnd:void 0,onMouseMove:ze},pt,Ae),re.createElement(y,{prefixCls:Be,level:tt,isStart:qe,isEnd:Je}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),be}(re.Component),me=function(ve){return re.createElement(z.k.Consumer,null,function(be){return re.createElement(he,(0,we.Z)({},ve,{context:be}))})};me.displayName="TreeNode",me.isTreeNode=1;var ge=me},39378:function(_t,ft,ye){"use strict";ye.d(ft,{k:function(){return Ee}});var we=ye(59301),Ee=we.createContext(null)},54030:function(_t,ft,ye){"use strict";ye.d(ft,{O:function(){return ge.Z},Z:function(){return Me}});var we=ye(32855),Ee=ye(74430),x=ye(34666),pe=ye(27247),de=ye(3300),ae=ye(33377),ne=ye(93912),se=ye(83383),ce=ye(18881),ue=ye(85461),ie=ye(92310),oe=ye.n(ie),re=ye(10228),z=ye(26112),a=ye(48736),y=ye(59301),E=ye(39378);function b(Be){var Qe=Be.dropPosition,Ge=Be.dropLevelOffset,De=Be.indent,Le={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(Qe){case-1:Le.top=0,Le.left=-Ge*De;break;case 1:Le.bottom=0,Le.left=-Ge*De;break;case 0:Le.bottom=0,Le.left=De;break}return y.createElement("div",{style:Le})}function ee(Be){if(Be==null)throw new TypeError("Cannot destructure "+Be)}var te=ye(11913),le=ye(43079),fe=ye(34280),he=ye(6790),me=ye(77900),ge=ye(39417);function Se(Be,Qe){var Ge=y.useState(!1),De=(0,te.Z)(Ge,2),Le=De[0],Oe=De[1];y.useLayoutEffect(function(){if(Le)return Be(),function(){Qe()}},[Le]),y.useLayoutEffect(function(){return Oe(!0),function(){Oe(!1)}},[])}var ve=ye(71430),be=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Pe=function(Qe,Ge){var De=Qe.className,Le=Qe.style,Oe=Qe.motion,xe=Qe.motionNodes,Ae=Qe.motionType,Ke=Qe.onMotionStart,tt=Qe.onMotionEnd,He=Qe.active,ot=Qe.treeNodeRequiredProps,mt=(0,le.Z)(Qe,be),lt=y.useState(!0),pt=(0,te.Z)(lt,2),st=pt[0],vt=pt[1],rt=y.useContext(E.k),ct=rt.prefixCls,gt=xe&&Ae!=="hide";(0,fe.Z)(function(){xe&>!==st&&vt(gt)},[xe]);var St=function(){xe&&Ke()},Ct=y.useRef(!1),It=function(){xe&&!Ct.current&&(Ct.current=!0,tt())};Se(St,It);var Wt=function(Xt){gt===Xt&&It()};return xe?y.createElement(me.default,(0,we.Z)({ref:Ge,visible:st},Oe,{motionAppear:Ae==="show",onVisibleChanged:Wt}),function(Ht,Xt){var on=Ht.className,qt=Ht.style;return y.createElement("div",{ref:Xt,className:oe()("".concat(ct,"-treenode-motion"),on),style:qt},xe.map(function(tn){var wn=(0,we.Z)({},(ee(tn.data),tn.data)),En=tn.title,en=tn.key,Tn=tn.isStart,An=tn.isEnd;delete wn.children;var _n=(0,ve.H8)(en,ot);return y.createElement(ge.Z,(0,we.Z)({},wn,_n,{title:En,active:He,data:tn.data,key:en,isStart:Tn,isEnd:An}))}))}):y.createElement(ge.Z,(0,we.Z)({domRef:Ge,className:De,style:Le},mt,{active:He}))};Pe.displayName="MotionTreeNode";var Te=y.forwardRef(Pe),_e=Te;function je(){var Be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Ge=Be.length,De=Qe.length;if(Math.abs(Ge-De)!==1)return{add:!1,key:null};function Le(Oe,xe){var Ae=new Map;Oe.forEach(function(tt){Ae.set(tt,!0)});var Ke=xe.filter(function(tt){return!Ae.has(tt)});return Ke.length===1?Ke[0]:null}return Ge<De?{add:!0,key:Le(Be,Qe)}:{add:!1,key:Le(Qe,Be)}}function Ce(Be,Qe,Ge){var De=Be.findIndex(function(Ae){return Ae.key===Ge}),Le=Be[De+1],Oe=Qe.findIndex(function(Ae){return Ae.key===Ge});if(Le){var xe=Qe.findIndex(function(Ae){return Ae.key===Le.key});return Qe.slice(Oe+1,xe)}return Qe.slice(Oe+1)}var Ie=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],ke={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},$e=function(){},Ne="RC_TREE_MOTION_".concat(Math.random()),nt={key:Ne},qe={key:Ne,level:0,index:0,pos:"0",node:nt,nodes:[nt]},Je={parent:null,children:[],pos:qe.pos,data:nt,title:null,key:Ne,isStart:[],isEnd:[]};function Ye(Be,Qe,Ge,De){return Qe===!1||!Ge?Be:Be.slice(0,Math.ceil(Ge/De)+1)}function We(Be){var Qe=Be.key,Ge=Be.pos;return(0,ve.km)(Qe,Ge)}function Fe(Be){for(var Qe=String(Be.data.key),Ge=Be;Ge.parent;)Ge=Ge.parent,Qe="".concat(Ge.data.key," > ").concat(Qe);return Qe}var Ue=y.forwardRef(function(Be,Qe){var Ge=Be.prefixCls,De=Be.data,Le=Be.selectable,Oe=Be.checkable,xe=Be.expandedKeys,Ae=Be.selectedKeys,Ke=Be.checkedKeys,tt=Be.loadedKeys,He=Be.loadingKeys,ot=Be.halfCheckedKeys,mt=Be.keyEntities,lt=Be.disabled,pt=Be.dragging,st=Be.dragOverNodeKey,vt=Be.dropPosition,rt=Be.motion,ct=Be.height,gt=Be.itemHeight,St=Be.virtual,Ct=Be.focusable,It=Be.activeItem,Wt=Be.focused,Ht=Be.tabIndex,Xt=Be.onKeyDown,on=Be.onFocus,qt=Be.onBlur,tn=Be.onActiveChange,wn=Be.onListChangeStart,En=Be.onListChangeEnd,en=(0,le.Z)(Be,Ie),Tn=y.useRef(null),An=y.useRef(null);y.useImperativeHandle(Qe,function(){return{scrollTo:function(cn){Tn.current.scrollTo(cn)},getIndentWidth:function(){return An.current.offsetWidth}}});var _n=y.useState(xe),$n=(0,te.Z)(_n,2),hr=$n[0],nr=$n[1],yr=y.useState(De),Nr=(0,te.Z)(yr,2),tr=Nr[0],Cr=Nr[1],rr=y.useState(De),_r=(0,te.Z)(rr,2),Et=_r[0],Rt=_r[1],xt=y.useState([]),Zt=(0,te.Z)(xt,2),yn=Zt[0],mn=Zt[1],mr=y.useState(null),Kn=(0,te.Z)(mr,2),Mn=Kn[0],Qn=Kn[1],Kt=y.useRef(De);Kt.current=De;function bt(){var nn=Kt.current;Cr(nn),Rt(nn),mn([]),Qn(null),En()}(0,fe.Z)(function(){nr(xe);var nn=je(hr,xe);if(nn.key!==null)if(nn.add){var cn=tr.findIndex(function(Bt){var zt=Bt.key;return zt===nn.key}),yt=Ye(Ce(tr,De,nn.key),St,ct,gt),Lt=tr.slice();Lt.splice(cn+1,0,Je),Rt(Lt),mn(yt),Qn("show")}else{var jt=De.findIndex(function(Bt){var zt=Bt.key;return zt===nn.key}),Mt=Ye(Ce(De,tr,nn.key),St,ct,gt),Ut=De.slice();Ut.splice(jt+1,0,Je),Rt(Ut),mn(Mt),Qn("hide")}else tr!==De&&(Cr(De),Rt(De))},[xe,De]),y.useEffect(function(){pt||bt()},[pt]);var $t=rt?Et:De,rn={expandedKeys:xe,selectedKeys:Ae,loadedKeys:tt,loadingKeys:He,checkedKeys:Ke,halfCheckedKeys:ot,dragOverNodeKey:st,dropPosition:vt,keyEntities:mt};return y.createElement(y.Fragment,null,Wt&&It&&y.createElement("span",{style:ke,"aria-live":"assertive"},Fe(It)),y.createElement("div",null,y.createElement("input",{style:ke,disabled:Ct===!1||lt,tabIndex:Ct!==!1?Ht:null,onKeyDown:Xt,onFocus:on,onBlur:qt,value:"",onChange:$e,"aria-label":"for screen reader"})),y.createElement("div",{className:"".concat(Ge,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},y.createElement("div",{className:"".concat(Ge,"-indent")},y.createElement("div",{ref:An,className:"".concat(Ge,"-indent-unit")}))),y.createElement(he.Z,(0,we.Z)({},en,{data:$t,itemKey:We,height:ct,fullHeight:!1,virtual:St,itemHeight:gt,prefixCls:"".concat(Ge,"-list"),ref:Tn,onVisibleChange:function(cn,yt){var Lt=new Set(cn),jt=yt.filter(function(Mt){return!Lt.has(Mt)});jt.some(function(Mt){return We(Mt)===Ne})&&bt()}}),function(nn){var cn=nn.pos,yt=(0,we.Z)({},(ee(nn.data),nn.data)),Lt=nn.title,jt=nn.key,Mt=nn.isStart,Ut=nn.isEnd,Bt=(0,ve.km)(jt,cn);delete yt.key,delete yt.children;var zt=(0,ve.H8)(Bt,rn);return y.createElement(_e,(0,we.Z)({},yt,zt,{title:Lt,active:!!It&&jt===It.key,pos:cn,data:nn.data,isStart:Mt,isEnd:Ut,motion:rt,motionNodes:jt===Ne?yn:null,motionType:Mn,onMotionStart:wn,onMotionEnd:bt,treeNodeRequiredProps:rn,onMouseMove:function(){tn(null)}}))}))});Ue.displayName="NodeList";var at=Ue,Xe=ye(35654),ut=ye(90782),Ze=ye(67841),ze=10,Re=function(Be){(0,ce.Z)(Ge,Be);var Qe=(0,ue.Z)(Ge);function Ge(){var De;(0,ae.Z)(this,Ge);for(var Le=arguments.length,Oe=new Array(Le),xe=0;xe<Le;xe++)Oe[xe]=arguments[xe];return De=Qe.call.apply(Qe,[this].concat(Oe)),De.destroyed=!1,De.delayedDragEnterLogic=void 0,De.loadingRetryTimes={},De.state={keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:(0,ve.w$)()},De.dragStartMousePosition=null,De.dragNode=void 0,De.currentMouseOverDroppableNodeKey=null,De.listRef=y.createRef(),De.onNodeDragStart=function(Ae,Ke){var tt=De.state,He=tt.expandedKeys,ot=tt.keyEntities,mt=De.props.onDragStart,lt=Ke.props.eventKey;De.dragNode=Ke,De.dragStartMousePosition={x:Ae.clientX,y:Ae.clientY};var pt=(0,Xe._5)(He,lt);De.setState({draggingNodeKey:lt,dragChildrenKeys:(0,Xe.wA)(lt,ot),indent:De.listRef.current.getIndentWidth()}),De.setExpandedKeys(pt),window.addEventListener("dragend",De.onWindowDragEnd),mt==null||mt({event:Ae,node:(0,ve.F)(Ke.props)})},De.onNodeDragEnter=function(Ae,Ke){var tt=De.state,He=tt.expandedKeys,ot=tt.keyEntities,mt=tt.dragChildrenKeys,lt=tt.flattenNodes,pt=tt.indent,st=De.props,vt=st.onDragEnter,rt=st.onExpand,ct=st.allowDrop,gt=st.direction,St=Ke.props,Ct=St.pos,It=St.eventKey,Wt=(0,se.Z)(De),Ht=Wt.dragNode;if(De.currentMouseOverDroppableNodeKey!==It&&(De.currentMouseOverDroppableNodeKey=It),!Ht){De.resetDragState();return}var Xt=(0,Xe.OM)(Ae,Ht,Ke,pt,De.dragStartMousePosition,ct,lt,ot,He,gt),on=Xt.dropPosition,qt=Xt.dropLevelOffset,tn=Xt.dropTargetKey,wn=Xt.dropContainerKey,En=Xt.dropTargetPos,en=Xt.dropAllowed,Tn=Xt.dragOverNodeKey;if(mt.indexOf(tn)!==-1||!en){De.resetDragState();return}if(De.delayedDragEnterLogic||(De.delayedDragEnterLogic={}),Object.keys(De.delayedDragEnterLogic).forEach(function(An){clearTimeout(De.delayedDragEnterLogic[An])}),Ht.props.eventKey!==Ke.props.eventKey&&(Ae.persist(),De.delayedDragEnterLogic[Ct]=window.setTimeout(function(){if(De.state.draggingNodeKey!==null){var An=(0,de.Z)(He),_n=(0,Ze.Z)(ot,Ke.props.eventKey);_n&&(_n.children||[]).length&&(An=(0,Xe.L0)(He,Ke.props.eventKey)),"expandedKeys"in De.props||De.setExpandedKeys(An),rt==null||rt(An,{node:(0,ve.F)(Ke.props),expanded:!0,nativeEvent:Ae.nativeEvent})}},800)),Ht.props.eventKey===tn&&qt===0){De.resetDragState();return}De.setState({dragOverNodeKey:Tn,dropPosition:on,dropLevelOffset:qt,dropTargetKey:tn,dropContainerKey:wn,dropTargetPos:En,dropAllowed:en}),vt==null||vt({event:Ae,node:(0,ve.F)(Ke.props),expandedKeys:He})},De.onNodeDragOver=function(Ae,Ke){var tt=De.state,He=tt.dragChildrenKeys,ot=tt.flattenNodes,mt=tt.keyEntities,lt=tt.expandedKeys,pt=tt.indent,st=De.props,vt=st.onDragOver,rt=st.allowDrop,ct=st.direction,gt=(0,se.Z)(De),St=gt.dragNode;if(St){var Ct=(0,Xe.OM)(Ae,St,Ke,pt,De.dragStartMousePosition,rt,ot,mt,lt,ct),It=Ct.dropPosition,Wt=Ct.dropLevelOffset,Ht=Ct.dropTargetKey,Xt=Ct.dropContainerKey,on=Ct.dropAllowed,qt=Ct.dropTargetPos,tn=Ct.dragOverNodeKey;He.indexOf(Ht)!==-1||!on||(St.props.eventKey===Ht&&Wt===0?De.state.dropPosition===null&&De.state.dropLevelOffset===null&&De.state.dropTargetKey===null&&De.state.dropContainerKey===null&&De.state.dropTargetPos===null&&De.state.dropAllowed===!1&&De.state.dragOverNodeKey===null||De.resetDragState():It===De.state.dropPosition&&Wt===De.state.dropLevelOffset&&Ht===De.state.dropTargetKey&&Xt===De.state.dropContainerKey&&qt===De.state.dropTargetPos&&on===De.state.dropAllowed&&tn===De.state.dragOverNodeKey||De.setState({dropPosition:It,dropLevelOffset:Wt,dropTargetKey:Ht,dropContainerKey:Xt,dropTargetPos:qt,dropAllowed:on,dragOverNodeKey:tn}),vt==null||vt({event:Ae,node:(0,ve.F)(Ke.props)}))}},De.onNodeDragLeave=function(Ae,Ke){De.currentMouseOverDroppableNodeKey===Ke.props.eventKey&&!Ae.currentTarget.contains(Ae.relatedTarget)&&(De.resetDragState(),De.currentMouseOverDroppableNodeKey=null);var tt=De.props.onDragLeave;tt==null||tt({event:Ae,node:(0,ve.F)(Ke.props)})},De.onWindowDragEnd=function(Ae){De.onNodeDragEnd(Ae,null,!0),window.removeEventListener("dragend",De.onWindowDragEnd)},De.onNodeDragEnd=function(Ae,Ke){var tt=De.props.onDragEnd;De.setState({dragOverNodeKey:null}),De.cleanDragState(),tt==null||tt({event:Ae,node:(0,ve.F)(Ke.props)}),De.dragNode=null,window.removeEventListener("dragend",De.onWindowDragEnd)},De.onNodeDrop=function(Ae,Ke){var tt,He=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,ot=De.state,mt=ot.dragChildrenKeys,lt=ot.dropPosition,pt=ot.dropTargetKey,st=ot.dropTargetPos,vt=ot.dropAllowed;if(vt){var rt=De.props.onDrop;if(De.setState({dragOverNodeKey:null}),De.cleanDragState(),pt!==null){var ct=(0,pe.Z)((0,pe.Z)({},(0,ve.H8)(pt,De.getTreeNodeRequiredProps())),{},{active:((tt=De.getActiveItem())===null||tt===void 0?void 0:tt.key)===pt,data:(0,Ze.Z)(De.state.keyEntities,pt).node}),gt=mt.indexOf(pt)!==-1;(0,a.ZP)(!gt,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var St=(0,Xe.yx)(st),Ct={event:Ae,node:(0,ve.F)(ct),dragNode:De.dragNode?(0,ve.F)(De.dragNode.props):null,dragNodesKeys:[De.dragNode.props.eventKey].concat(mt),dropToGap:lt!==0,dropPosition:lt+Number(St[St.length-1])};He||rt==null||rt(Ct),De.dragNode=null}}},De.cleanDragState=function(){var Ae=De.state.draggingNodeKey;Ae!==null&&De.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),De.dragStartMousePosition=null,De.currentMouseOverDroppableNodeKey=null},De.triggerExpandActionExpand=function(Ae,Ke){var tt=De.state,He=tt.expandedKeys,ot=tt.flattenNodes,mt=Ke.expanded,lt=Ke.key,pt=Ke.isLeaf;if(!(pt||Ae.shiftKey||Ae.metaKey||Ae.ctrlKey)){var st=ot.filter(function(rt){return rt.key===lt})[0],vt=(0,ve.F)((0,pe.Z)((0,pe.Z)({},(0,ve.H8)(lt,De.getTreeNodeRequiredProps())),{},{data:st.data}));De.setExpandedKeys(mt?(0,Xe._5)(He,lt):(0,Xe.L0)(He,lt)),De.onNodeExpand(Ae,vt)}},De.onNodeClick=function(Ae,Ke){var tt=De.props,He=tt.onClick,ot=tt.expandAction;ot==="click"&&De.triggerExpandActionExpand(Ae,Ke),He==null||He(Ae,Ke)},De.onNodeDoubleClick=function(Ae,Ke){var tt=De.props,He=tt.onDoubleClick,ot=tt.expandAction;ot==="doubleClick"&&De.triggerExpandActionExpand(Ae,Ke),He==null||He(Ae,Ke)},De.onNodeSelect=function(Ae,Ke){var tt=De.state.selectedKeys,He=De.state,ot=He.keyEntities,mt=He.fieldNames,lt=De.props,pt=lt.onSelect,st=lt.multiple,vt=Ke.selected,rt=Ke[mt.key],ct=!vt;ct?st?tt=(0,Xe.L0)(tt,rt):tt=[rt]:tt=(0,Xe._5)(tt,rt);var gt=tt.map(function(St){var Ct=(0,Ze.Z)(ot,St);return Ct?Ct.node:null}).filter(function(St){return St});De.setUncontrolledState({selectedKeys:tt}),pt==null||pt(tt,{event:"select",selected:ct,node:Ke,selectedNodes:gt,nativeEvent:Ae.nativeEvent})},De.onNodeCheck=function(Ae,Ke,tt){var He=De.state,ot=He.keyEntities,mt=He.checkedKeys,lt=He.halfCheckedKeys,pt=De.props,st=pt.checkStrictly,vt=pt.onCheck,rt=Ke.key,ct,gt={event:"check",node:Ke,checked:tt,nativeEvent:Ae.nativeEvent};if(st){var St=tt?(0,Xe.L0)(mt,rt):(0,Xe._5)(mt,rt),Ct=(0,Xe._5)(lt,rt);ct={checked:St,halfChecked:Ct},gt.checkedNodes=St.map(function(qt){return(0,Ze.Z)(ot,qt)}).filter(function(qt){return qt}).map(function(qt){return qt.node}),De.setUncontrolledState({checkedKeys:St})}else{var It=(0,ut.S)([].concat((0,de.Z)(mt),[rt]),!0,ot),Wt=It.checkedKeys,Ht=It.halfCheckedKeys;if(!tt){var Xt=new Set(Wt);Xt.delete(rt);var on=(0,ut.S)(Array.from(Xt),{checked:!1,halfCheckedKeys:Ht},ot);Wt=on.checkedKeys,Ht=on.halfCheckedKeys}ct=Wt,gt.checkedNodes=[],gt.checkedNodesPositions=[],gt.halfCheckedKeys=Ht,Wt.forEach(function(qt){var tn=(0,Ze.Z)(ot,qt);if(tn){var wn=tn.node,En=tn.pos;gt.checkedNodes.push(wn),gt.checkedNodesPositions.push({node:wn,pos:En})}}),De.setUncontrolledState({checkedKeys:Wt},!1,{halfCheckedKeys:Ht})}vt==null||vt(ct,gt)},De.onNodeLoad=function(Ae){var Ke=Ae.key,tt=new Promise(function(He,ot){De.setState(function(mt){var lt=mt.loadedKeys,pt=lt===void 0?[]:lt,st=mt.loadingKeys,vt=st===void 0?[]:st,rt=De.props,ct=rt.loadData,gt=rt.onLoad;if(!ct||pt.indexOf(Ke)!==-1||vt.indexOf(Ke)!==-1)return null;var St=ct(Ae);return St.then(function(){var Ct=De.state.loadedKeys,It=(0,Xe.L0)(Ct,Ke);gt==null||gt(It,{event:"load",node:Ae}),De.setUncontrolledState({loadedKeys:It}),De.setState(function(Wt){return{loadingKeys:(0,Xe._5)(Wt.loadingKeys,Ke)}}),He()}).catch(function(Ct){if(De.setState(function(Wt){return{loadingKeys:(0,Xe._5)(Wt.loadingKeys,Ke)}}),De.loadingRetryTimes[Ke]=(De.loadingRetryTimes[Ke]||0)+1,De.loadingRetryTimes[Ke]>=ze){var It=De.state.loadedKeys;(0,a.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),De.setUncontrolledState({loadedKeys:(0,Xe.L0)(It,Ke)}),He()}ot(Ct)}),{loadingKeys:(0,Xe.L0)(vt,Ke)}})});return tt.catch(function(){}),tt},De.onNodeMouseEnter=function(Ae,Ke){var tt=De.props.onMouseEnter;tt==null||tt({event:Ae,node:Ke})},De.onNodeMouseLeave=function(Ae,Ke){var tt=De.props.onMouseLeave;tt==null||tt({event:Ae,node:Ke})},De.onNodeContextMenu=function(Ae,Ke){var tt=De.props.onRightClick;tt&&(Ae.preventDefault(),tt({event:Ae,node:Ke}))},De.onFocus=function(){var Ae=De.props.onFocus;De.setState({focused:!0});for(var Ke=arguments.length,tt=new Array(Ke),He=0;He<Ke;He++)tt[He]=arguments[He];Ae==null||Ae.apply(void 0,tt)},De.onBlur=function(){var Ae=De.props.onBlur;De.setState({focused:!1}),De.onActiveChange(null);for(var Ke=arguments.length,tt=new Array(Ke),He=0;He<Ke;He++)tt[He]=arguments[He];Ae==null||Ae.apply(void 0,tt)},De.getTreeNodeRequiredProps=function(){var Ae=De.state,Ke=Ae.expandedKeys,tt=Ae.selectedKeys,He=Ae.loadedKeys,ot=Ae.loadingKeys,mt=Ae.checkedKeys,lt=Ae.halfCheckedKeys,pt=Ae.dragOverNodeKey,st=Ae.dropPosition,vt=Ae.keyEntities;return{expandedKeys:Ke||[],selectedKeys:tt||[],loadedKeys:He||[],loadingKeys:ot||[],checkedKeys:mt||[],halfCheckedKeys:lt||[],dragOverNodeKey:pt,dropPosition:st,keyEntities:vt}},De.setExpandedKeys=function(Ae){var Ke=De.state,tt=Ke.treeData,He=Ke.fieldNames,ot=(0,ve.oH)(tt,Ae,He);De.setUncontrolledState({expandedKeys:Ae,flattenNodes:ot},!0)},De.onNodeExpand=function(Ae,Ke){var tt=De.state.expandedKeys,He=De.state,ot=He.listChanging,mt=He.fieldNames,lt=De.props,pt=lt.onExpand,st=lt.loadData,vt=Ke.expanded,rt=Ke[mt.key];if(!ot){var ct=tt.indexOf(rt),gt=!vt;if((0,a.ZP)(vt&&ct!==-1||!vt&&ct===-1,"Expand state not sync with index check"),gt?tt=(0,Xe.L0)(tt,rt):tt=(0,Xe._5)(tt,rt),De.setExpandedKeys(tt),pt==null||pt(tt,{node:Ke,expanded:gt,nativeEvent:Ae.nativeEvent}),gt&&st){var St=De.onNodeLoad(Ke);St&&St.then(function(){var Ct=(0,ve.oH)(De.state.treeData,tt,mt);De.setUncontrolledState({flattenNodes:Ct})}).catch(function(){var Ct=De.state.expandedKeys,It=(0,Xe._5)(Ct,rt);De.setExpandedKeys(It)})}}},De.onListChangeStart=function(){De.setUncontrolledState({listChanging:!0})},De.onListChangeEnd=function(){setTimeout(function(){De.setUncontrolledState({listChanging:!1})})},De.onActiveChange=function(Ae){var Ke=De.state.activeKey,tt=De.props.onActiveChange;Ke!==Ae&&(De.setState({activeKey:Ae}),Ae!==null&&De.scrollTo({key:Ae}),tt==null||tt(Ae))},De.getActiveItem=function(){var Ae=De.state,Ke=Ae.activeKey,tt=Ae.flattenNodes;return Ke===null?null:tt.find(function(He){var ot=He.key;return ot===Ke})||null},De.offsetActiveKey=function(Ae){var Ke=De.state,tt=Ke.flattenNodes,He=Ke.activeKey,ot=tt.findIndex(function(pt){var st=pt.key;return st===He});ot===-1&&Ae<0&&(ot=tt.length),ot=(ot+Ae+tt.length)%tt.length;var mt=tt[ot];if(mt){var lt=mt.key;De.onActiveChange(lt)}else De.onActiveChange(null)},De.onKeyDown=function(Ae){var Ke=De.state,tt=Ke.activeKey,He=Ke.expandedKeys,ot=Ke.checkedKeys,mt=Ke.fieldNames,lt=De.props,pt=lt.onKeyDown,st=lt.checkable,vt=lt.selectable;switch(Ae.which){case re.Z.UP:{De.offsetActiveKey(-1),Ae.preventDefault();break}case re.Z.DOWN:{De.offsetActiveKey(1),Ae.preventDefault();break}}var rt=De.getActiveItem();if(rt&&rt.data){var ct=De.getTreeNodeRequiredProps(),gt=rt.data.isLeaf===!1||!!(rt.data[mt.children]||[]).length,St=(0,ve.F)((0,pe.Z)((0,pe.Z)({},(0,ve.H8)(tt,ct)),{},{data:rt.data,active:!0}));switch(Ae.which){case re.Z.LEFT:{gt&&He.includes(tt)?De.onNodeExpand({},St):rt.parent&&De.onActiveChange(rt.parent.key),Ae.preventDefault();break}case re.Z.RIGHT:{gt&&!He.includes(tt)?De.onNodeExpand({},St):rt.children&&rt.children.length&&De.onActiveChange(rt.children[0].key),Ae.preventDefault();break}case re.Z.ENTER:case re.Z.SPACE:{st&&!St.disabled&&St.checkable!==!1&&!St.disableCheckbox?De.onNodeCheck({},St,!ot.includes(tt)):!st&&vt&&!St.disabled&&St.selectable!==!1&&De.onNodeSelect({},St);break}}}pt==null||pt(Ae)},De.setUncontrolledState=function(Ae){var Ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,tt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!De.destroyed){var He=!1,ot=!0,mt={};Object.keys(Ae).forEach(function(lt){if(lt in De.props){ot=!1;return}He=!0,mt[lt]=Ae[lt]}),He&&(!Ke||ot)&&De.setState((0,pe.Z)((0,pe.Z)({},mt),tt))}},De.scrollTo=function(Ae){De.listRef.current.scrollTo(Ae)},De}return(0,ne.Z)(Ge,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var Le=this.props.activeKey;Le!==void 0&&Le!==this.state.activeKey&&(this.setState({activeKey:Le}),Le!==null&&this.scrollTo({key:Le}))}},{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 Le,Oe=this.state,xe=Oe.focused,Ae=Oe.flattenNodes,Ke=Oe.keyEntities,tt=Oe.draggingNodeKey,He=Oe.activeKey,ot=Oe.dropLevelOffset,mt=Oe.dropContainerKey,lt=Oe.dropTargetKey,pt=Oe.dropPosition,st=Oe.dragOverNodeKey,vt=Oe.indent,rt=this.props,ct=rt.prefixCls,gt=rt.className,St=rt.style,Ct=rt.showLine,It=rt.focusable,Wt=rt.tabIndex,Ht=Wt===void 0?0:Wt,Xt=rt.selectable,on=rt.showIcon,qt=rt.icon,tn=rt.switcherIcon,wn=rt.draggable,En=rt.checkable,en=rt.checkStrictly,Tn=rt.disabled,An=rt.motion,_n=rt.loadData,$n=rt.filterTreeNode,hr=rt.height,nr=rt.itemHeight,yr=rt.virtual,Nr=rt.titleRender,tr=rt.dropIndicatorRender,Cr=rt.onContextMenu,rr=rt.onScroll,_r=rt.direction,Et=rt.rootClassName,Rt=rt.rootStyle,xt=(0,z.Z)(this.props,{aria:!0,data:!0}),Zt;return wn&&((0,x.Z)(wn)==="object"?Zt=wn:typeof wn=="function"?Zt={nodeDraggable:wn}:Zt={}),y.createElement(E.k.Provider,{value:{prefixCls:ct,selectable:Xt,showIcon:on,icon:qt,switcherIcon:tn,draggable:Zt,draggingNodeKey:tt,checkable:En,checkStrictly:en,disabled:Tn,keyEntities:Ke,dropLevelOffset:ot,dropContainerKey:mt,dropTargetKey:lt,dropPosition:pt,dragOverNodeKey:st,indent:vt,direction:_r,dropIndicatorRender:tr,loadData:_n,filterTreeNode:$n,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()(ct,gt,Et,(Le={},(0,Ee.Z)(Le,"".concat(ct,"-show-line"),Ct),(0,Ee.Z)(Le,"".concat(ct,"-focused"),xe),(0,Ee.Z)(Le,"".concat(ct,"-active-focused"),He!==null),Le)),style:Rt},y.createElement(at,(0,we.Z)({ref:this.listRef,prefixCls:ct,style:St,data:Ae,disabled:Tn,selectable:Xt,checkable:!!En,motion:An,dragging:tt!==null,height:hr,itemHeight:nr,virtual:yr,focusable:It,focused:xe,tabIndex:Ht,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Cr,onScroll:rr},this.getTreeNodeRequiredProps(),xt))))}}],[{key:"getDerivedStateFromProps",value:function(Le,Oe){var xe=Oe.prevProps,Ae={prevProps:Le};function Ke(It){return!xe&&It in Le||xe&&xe[It]!==Le[It]}var tt,He=Oe.fieldNames;if(Ke("fieldNames")&&(He=(0,ve.w$)(Le.fieldNames),Ae.fieldNames=He),Ke("treeData")?tt=Le.treeData:Ke("children")&&((0,a.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),tt=(0,ve.zn)(Le.children)),tt){Ae.treeData=tt;var ot=(0,ve.I8)(tt,{fieldNames:He});Ae.keyEntities=(0,pe.Z)((0,Ee.Z)({},Ne,qe),ot.keyEntities)}var mt=Ae.keyEntities||Oe.keyEntities;if(Ke("expandedKeys")||xe&&Ke("autoExpandParent"))Ae.expandedKeys=Le.autoExpandParent||!xe&&Le.defaultExpandParent?(0,Xe.r7)(Le.expandedKeys,mt):Le.expandedKeys;else if(!xe&&Le.defaultExpandAll){var lt=(0,pe.Z)({},mt);delete lt[Ne],Ae.expandedKeys=Object.keys(lt).map(function(It){return lt[It].key})}else!xe&&Le.defaultExpandedKeys&&(Ae.expandedKeys=Le.autoExpandParent||Le.defaultExpandParent?(0,Xe.r7)(Le.defaultExpandedKeys,mt):Le.defaultExpandedKeys);if(Ae.expandedKeys||delete Ae.expandedKeys,tt||Ae.expandedKeys){var pt=(0,ve.oH)(tt||Oe.treeData,Ae.expandedKeys||Oe.expandedKeys,He);Ae.flattenNodes=pt}if(Le.selectable&&(Ke("selectedKeys")?Ae.selectedKeys=(0,Xe.BT)(Le.selectedKeys,Le):!xe&&Le.defaultSelectedKeys&&(Ae.selectedKeys=(0,Xe.BT)(Le.defaultSelectedKeys,Le))),Le.checkable){var st;if(Ke("checkedKeys")?st=(0,Xe.E6)(Le.checkedKeys)||{}:!xe&&Le.defaultCheckedKeys?st=(0,Xe.E6)(Le.defaultCheckedKeys)||{}:tt&&(st=(0,Xe.E6)(Le.checkedKeys)||{checkedKeys:Oe.checkedKeys,halfCheckedKeys:Oe.halfCheckedKeys}),st){var vt=st,rt=vt.checkedKeys,ct=rt===void 0?[]:rt,gt=vt.halfCheckedKeys,St=gt===void 0?[]:gt;if(!Le.checkStrictly){var Ct=(0,ut.S)(ct,!0,mt);ct=Ct.checkedKeys,St=Ct.halfCheckedKeys}Ae.checkedKeys=ct,Ae.halfCheckedKeys=St}}return Ke("loadedKeys")&&(Ae.loadedKeys=Le.loadedKeys),Ae}}]),Ge}(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=ge.Z;var it=Re,Me=it},35654:function(_t,ft,ye){"use strict";ye.d(ft,{BT:function(){return y},E6:function(){return ee},L0:function(){return ue},OM:function(){return a},_5:function(){return ce},r7:function(){return te},wA:function(){return oe},yx:function(){return ie}});var we=ye(3300),Ee=ye(34666),x=ye(48736),pe=ye(59301),de=ye(39417),ae=ye(67841),ne=ye(71430),se=null;function ce(le,fe){if(!le)return[];var he=le.slice(),me=he.indexOf(fe);return me>=0&&he.splice(me,1),he}function ue(le,fe){var he=(le||[]).slice();return he.indexOf(fe)===-1&&he.push(fe),he}function ie(le){return le.split("-")}function oe(le,fe){var he=[],me=(0,ae.Z)(fe,le);function ge(){var Se=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Se.forEach(function(ve){var be=ve.key,Pe=ve.children;he.push(be),ge(Pe)})}return ge(me.children),he}function re(le){if(le.parent){var fe=ie(le.pos);return Number(fe[fe.length-1])===le.parent.children.length-1}return!1}function z(le){var fe=ie(le.pos);return Number(fe[fe.length-1])===0}function a(le,fe,he,me,ge,Se,ve,be,Pe,Te){var _e,je=le.clientX,Ce=le.clientY,Ie=le.target.getBoundingClientRect(),ke=Ie.top,$e=Ie.height,Ne=(Te==="rtl"?-1:1)*(((ge==null?void 0:ge.x)||0)-je),nt=(Ne-12)/me,qe=(0,ae.Z)(be,he.props.eventKey);if(Ce<ke+$e/2){var Je=ve.findIndex(function(Me){return Me.key===qe.key}),Ye=Je<=0?0:Je-1,We=ve[Ye].key;qe=(0,ae.Z)(be,We)}var Fe=qe.key,Ue=qe,at=qe.key,Xe=0,ut=0;if(!Pe.includes(Fe))for(var Ze=0;Ze<nt&&re(qe);Ze+=1)qe=qe.parent,ut+=1;var ze=fe.props.data,Re=qe.node,it=!0;return z(qe)&&qe.level===0&&Ce<ke+$e/2&&Se({dragNode:ze,dropNode:Re,dropPosition:-1})&&qe.key===he.props.eventKey?Xe=-1:(Ue.children||[]).length&&Pe.includes(at)?Se({dragNode:ze,dropNode:Re,dropPosition:0})?Xe=0:it=!1:ut===0?nt>-1.5?Se({dragNode:ze,dropNode:Re,dropPosition:1})?Xe=1:it=!1:Se({dragNode:ze,dropNode:Re,dropPosition:0})?Xe=0:Se({dragNode:ze,dropNode:Re,dropPosition:1})?Xe=1:it=!1:Se({dragNode:ze,dropNode:Re,dropPosition:1})?Xe=1:it=!1,{dropPosition:Xe,dropLevelOffset:ut,dropTargetKey:qe.key,dropTargetPos:qe.pos,dragOverNodeKey:at,dropContainerKey:Xe===0?null:((_e=qe.parent)===null||_e===void 0?void 0:_e.key)||null,dropAllowed:it}}function y(le,fe){if(le){var he=fe.multiple;return he?le.slice():le.length?[le[0]]:le}}var E=function(fe){return fe};function b(le,fe){if(!le)return[];var he=fe||{},me=he.processProps,ge=me===void 0?E:me,Se=Array.isArray(le)?le:[le];return Se.map(function(ve){var be=ve.children,Pe=_objectWithoutProperties(ve,se),Te=b(be,fe);return React.createElement(TreeNode,_extends({key:Pe.key},ge(Pe)),Te)})}function ee(le){if(!le)return null;var fe;if(Array.isArray(le))fe={checkedKeys:le,halfCheckedKeys:void 0};else if((0,Ee.Z)(le)==="object")fe={checkedKeys:le.checked||void 0,halfCheckedKeys:le.halfChecked||void 0};else return(0,x.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return fe}function te(le,fe){var he=new Set;function me(ge){if(!he.has(ge)){var Se=(0,ae.Z)(fe,ge);if(Se){he.add(ge);var ve=Se.parent,be=Se.node;be.disabled||ve&&me(ve.key)}}}return(le||[]).forEach(function(ge){me(ge)}),(0,we.Z)(he)}},90782:function(_t,ft,ye){"use strict";ye.d(ft,{S:function(){return ne}});var we=ye(48736),Ee=ye(67841);function x(se,ce){var ue=new Set;return se.forEach(function(ie){ce.has(ie)||ue.add(ie)}),ue}function pe(se){var ce=se||{},ue=ce.disabled,ie=ce.disableCheckbox,oe=ce.checkable;return!!(ue||ie)||oe===!1}function de(se,ce,ue,ie){for(var oe=new Set(se),re=new Set,z=0;z<=ue;z+=1){var a=ce.get(z)||new Set;a.forEach(function(ee){var te=ee.key,le=ee.node,fe=ee.children,he=fe===void 0?[]:fe;oe.has(te)&&!ie(le)&&he.filter(function(me){return!ie(me.node)}).forEach(function(me){oe.add(me.key)})})}for(var y=new Set,E=ue;E>=0;E-=1){var b=ce.get(E)||new Set;b.forEach(function(ee){var te=ee.parent,le=ee.node;if(!(ie(le)||!ee.parent||y.has(ee.parent.key))){if(ie(ee.parent.node)){y.add(te.key);return}var fe=!0,he=!1;(te.children||[]).filter(function(me){return!ie(me.node)}).forEach(function(me){var ge=me.key,Se=oe.has(ge);fe&&!Se&&(fe=!1),!he&&(Se||re.has(ge))&&(he=!0)}),fe&&oe.add(te.key),he&&re.add(te.key),y.add(te.key)}})}return{checkedKeys:Array.from(oe),halfCheckedKeys:Array.from(x(re,oe))}}function ae(se,ce,ue,ie,oe){for(var re=new Set(se),z=new Set(ce),a=0;a<=ie;a+=1){var y=ue.get(a)||new Set;y.forEach(function(te){var le=te.key,fe=te.node,he=te.children,me=he===void 0?[]:he;!re.has(le)&&!z.has(le)&&!oe(fe)&&me.filter(function(ge){return!oe(ge.node)}).forEach(function(ge){re.delete(ge.key)})})}z=new Set;for(var E=new Set,b=ie;b>=0;b-=1){var ee=ue.get(b)||new Set;ee.forEach(function(te){var le=te.parent,fe=te.node;if(!(oe(fe)||!te.parent||E.has(te.parent.key))){if(oe(te.parent.node)){E.add(le.key);return}var he=!0,me=!1;(le.children||[]).filter(function(ge){return!oe(ge.node)}).forEach(function(ge){var Se=ge.key,ve=re.has(Se);he&&!ve&&(he=!1),!me&&(ve||z.has(Se))&&(me=!0)}),he||re.delete(le.key),me&&z.add(le.key),E.add(le.key)}})}return{checkedKeys:Array.from(re),halfCheckedKeys:Array.from(x(z,re))}}function ne(se,ce,ue,ie){var oe=[],re;ie?re=ie:re=pe;var z=new Set(se.filter(function(b){var ee=!!(0,Ee.Z)(ue,b);return ee||oe.push(b),ee})),a=new Map,y=0;Object.keys(ue).forEach(function(b){var ee=ue[b],te=ee.level,le=a.get(te);le||(le=new Set,a.set(te,le)),le.add(ee),y=Math.max(y,te)}),(0,we.ZP)(!oe.length,"Tree missing follow keys: ".concat(oe.slice(0,100).map(function(b){return"'".concat(b,"'")}).join(", ")));var E;return ce===!0?E=de(z,a,y,re):E=ae(z,ce.halfCheckedKeys,a,y,re),E}},67841:function(_t,ft,ye){"use strict";ye.d(ft,{Z:function(){return we}});function we(Ee,x){return Ee[x]}},71430:function(_t,ft,ye){"use strict";ye.d(ft,{F:function(){return te},H8:function(){return ee},I8:function(){return b},km:function(){return oe},oH:function(){return y},w$:function(){return re},zn:function(){return a}});var we=ye(34666),Ee=ye(3300),x=ye(27247),pe=ye(43079),de=ye(11592),ae=ye(2738),ne=ye(48736),se=ye(67841),ce=["children"];function ue(le,fe){return"".concat(le,"-").concat(fe)}function ie(le){return le&&le.type&&le.type.isTreeNode}function oe(le,fe){return le!=null?le:fe}function re(le){var fe=le||{},he=fe.title,me=fe._title,ge=fe.key,Se=fe.children,ve=he||"title";return{title:ve,_title:me||[ve],key:ge||"key",children:Se||"children"}}function z(le,fe){var he=new Map;function me(ge){var Se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(ge||[]).forEach(function(ve){var be=ve[fe.key],Pe=ve[fe.children];warning(be!=null,"Tree node must have a certain key: [".concat(Se).concat(be,"]"));var Te=String(be);warning(!he.has(Te)||be===null||be===void 0,"Same 'key' exist in the Tree: ".concat(Te)),he.set(Te,!0),me(Pe,"".concat(Se).concat(Te," > "))})}me(le)}function a(le){function fe(he){var me=(0,de.Z)(he);return me.map(function(ge){if(!ie(ge))return(0,ne.ZP)(!ge,"Tree/TreeNode can only accept TreeNode as children."),null;var Se=ge.key,ve=ge.props,be=ve.children,Pe=(0,pe.Z)(ve,ce),Te=(0,x.Z)({key:Se},Pe),_e=fe(be);return _e.length&&(Te.children=_e),Te}).filter(function(ge){return ge})}return fe(le)}function y(le,fe,he){var me=re(he),ge=me._title,Se=me.key,ve=me.children,be=new Set(fe===!0?[]:fe),Pe=[];function Te(_e){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return _e.map(function(Ce,Ie){for(var ke=ue(je?je.pos:"0",Ie),$e=oe(Ce[Se],ke),Ne,nt=0;nt<ge.length;nt+=1){var qe=ge[nt];if(Ce[qe]!==void 0){Ne=Ce[qe];break}}var Je=(0,x.Z)((0,x.Z)({},(0,ae.Z)(Ce,[].concat((0,Ee.Z)(ge),[Se,ve]))),{},{title:Ne,key:$e,parent:je,pos:ke,children:null,data:Ce,isStart:[].concat((0,Ee.Z)(je?je.isStart:[]),[Ie===0]),isEnd:[].concat((0,Ee.Z)(je?je.isEnd:[]),[Ie===_e.length-1])});return Pe.push(Je),fe===!0||be.has($e)?Je.children=Te(Ce[ve]||[],Je):Je.children=[],Je})}return Te(le),Pe}function E(le,fe,he){var me={};(0,we.Z)(he)==="object"?me=he:me={externalGetKey:he},me=me||{};var ge=me,Se=ge.childrenPropName,ve=ge.externalGetKey,be=ge.fieldNames,Pe=re(be),Te=Pe.key,_e=Pe.children,je=Se||_e,Ce;ve?typeof ve=="string"?Ce=function($e){return $e[ve]}:typeof ve=="function"&&(Ce=function($e){return ve($e)}):Ce=function($e,Ne){return oe($e[Te],Ne)};function Ie(ke,$e,Ne,nt){var qe=ke?ke[je]:le,Je=ke?ue(Ne.pos,$e):"0",Ye=ke?[].concat((0,Ee.Z)(nt),[ke]):[];if(ke){var We=Ce(ke,Je),Fe={node:ke,index:$e,pos:Je,key:We,parentPos:Ne.node?Ne.pos:null,level:Ne.level+1,nodes:Ye};fe(Fe)}qe&&qe.forEach(function(Ue,at){Ie(Ue,at,{node:ke,pos:Je,level:Ne?Ne.level+1:-1},Ye)})}Ie(null)}function b(le){var fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},he=fe.initWrapper,me=fe.processEntity,ge=fe.onProcessFinished,Se=fe.externalGetKey,ve=fe.childrenPropName,be=fe.fieldNames,Pe=arguments.length>2?arguments[2]:void 0,Te=Se||Pe,_e={},je={},Ce={posEntities:_e,keyEntities:je};return he&&(Ce=he(Ce)||Ce),E(le,function(Ie){var ke=Ie.node,$e=Ie.index,Ne=Ie.pos,nt=Ie.key,qe=Ie.parentPos,Je=Ie.level,Ye=Ie.nodes,We={node:ke,nodes:Ye,index:$e,key:nt,pos:Ne,level:Je},Fe=oe(nt,Ne);_e[Ne]=We,je[Fe]=We,We.parent=_e[qe],We.parent&&(We.parent.children=We.parent.children||[],We.parent.children.push(We)),me&&me(We,Ce)},{externalGetKey:Te,childrenPropName:ve,fieldNames:be}),ge&&ge(Ce),Ce}function ee(le,fe){var he=fe.expandedKeys,me=fe.selectedKeys,ge=fe.loadedKeys,Se=fe.loadingKeys,ve=fe.checkedKeys,be=fe.halfCheckedKeys,Pe=fe.dragOverNodeKey,Te=fe.dropPosition,_e=fe.keyEntities,je=(0,se.Z)(_e,le),Ce={eventKey:le,expanded:he.indexOf(le)!==-1,selected:me.indexOf(le)!==-1,loaded:ge.indexOf(le)!==-1,loading:Se.indexOf(le)!==-1,checked:ve.indexOf(le)!==-1,halfChecked:be.indexOf(le)!==-1,pos:String(je?je.pos:""),dragOver:Pe===le&&Te===0,dragOverGapTop:Pe===le&&Te===-1,dragOverGapBottom:Pe===le&&Te===1};return Ce}function te(le){var fe=le.data,he=le.expanded,me=le.selected,ge=le.checked,Se=le.loaded,ve=le.loading,be=le.halfChecked,Pe=le.dragOver,Te=le.dragOverGapTop,_e=le.dragOverGapBottom,je=le.pos,Ce=le.active,Ie=le.eventKey,ke=(0,x.Z)((0,x.Z)({},fe),{},{expanded:he,selected:me,checked:ge,loaded:Se,loading:ve,halfChecked:be,dragOver:Pe,dragOverGapTop:Te,dragOverGapBottom:_e,pos:je,active:Ce,key:Ie});return"props"in ke||Object.defineProperty(ke,"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}}),ke}},8224:function(_t,ft,ye){"use strict";ye.d(ft,{Z:function(){return Ee}});var we=ye(4676);function Ee(x,pe,de,ae){var ne=we.unstable_batchedUpdates?function(ce){we.unstable_batchedUpdates(de,ce)}:de;return x!=null&&x.addEventListener&&x.addEventListener(pe,ne,ae),{remove:function(){x!=null&&x.removeEventListener&&x.removeEventListener(pe,ne,ae)}}}},55468:function(_t,ft,ye){"use strict";ye.d(ft,{g1:function(){return ie},os:function(){return re}});var we=/margin|padding|width|height|max|min|offset/,Ee={left:!0,top:!0},x={cssFloat:1,styleFloat:1,float:1};function pe(z){return z.nodeType===1?z.ownerDocument.defaultView.getComputedStyle(z,null):{}}function de(z,a,y){if(a=a.toLowerCase(),y==="auto"){if(a==="height")return z.offsetHeight;if(a==="width")return z.offsetWidth}return a in Ee||(Ee[a]=we.test(a)),Ee[a]?parseFloat(y)||0:y}function ae(z,a){var y=arguments.length,E=pe(z);return a=x[a]?"cssFloat"in z.style?"cssFloat":"styleFloat":a,y===1?E:de(z,a,E[a]||z.style[a])}function ne(z,a,y){var E=arguments.length;if(a=x[a]?"cssFloat"in z.style?"cssFloat":"styleFloat":a,E===3)return typeof y=="number"&&we.test(a)&&(y="".concat(y,"px")),z.style[a]=y,y;for(var b in a)a.hasOwnProperty(b)&&ne(z,b,a[b]);return pe(z)}function se(z){return z===document.body?document.documentElement.clientWidth:z.offsetWidth}function ce(z){return z===document.body?window.innerHeight||document.documentElement.clientHeight:z.offsetHeight}function ue(){var z=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),a=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:z,height:a}}function ie(){var z=document.documentElement.clientWidth,a=window.innerHeight||document.documentElement.clientHeight;return{width:z,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(z){var a=z.getBoundingClientRect(),y=document.documentElement;return{left:a.left+(window.pageXOffset||y.scrollLeft)-(y.clientLeft||document.body.clientLeft||0),top:a.top+(window.pageYOffset||y.scrollTop)-(y.clientTop||document.body.clientTop||0)}}},24514:function(_t,ft,ye){"use strict";ye.d(ft,{G:function(){return pe}});var we=ye(47273),Ee=function(ae){if((0,we.Z)()&&window.document.documentElement){var ne=Array.isArray(ae)?ae:[ae],se=window.document.documentElement;return ne.some(function(ce){return ce in se.style})}return!1},x=function(ae,ne){if(!Ee(ae))return!1;var se=document.createElement("div"),ce=se.style[ae];return se.style[ae]=ne,se.style[ae]!==ce};function pe(de,ae){return!Array.isArray(de)&&ae!==void 0?x(de,ae):Ee(de)}},7062:function(_t,ft,ye){var we=ye(19637),Ee=ye(97573),x=[ye(96627)];_t.exports=we.createStore(Ee,x)},96627:function(_t,ft,ye){_t.exports=we;function we(){return ye(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(_t){return _t<10?"0"+_t:_t}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(_t){return rx_escapable.lastIndex=0,rx_escapable.test(_t)?'"'+_t.replace(rx_escapable,function(ft){var ye=meta[ft];return typeof ye=="string"?ye:"\\u"+("0000"+ft.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+_t+'"'}function str(_t,ft){var ye,we,Ee,x,pe=gap,de,ae=ft[_t];switch(ae&&typeof ae=="object"&&typeof ae.toJSON=="function"&&(ae=ae.toJSON(_t)),typeof rep=="function"&&(ae=rep.call(ft,_t,ae)),typeof ae){case"string":return quote(ae);case"number":return isFinite(ae)?String(ae):"null";case"boolean":case"null":return String(ae);case"object":if(!ae)return"null";if(gap+=indent,de=[],Object.prototype.toString.apply(ae)==="[object Array]"){for(x=ae.length,ye=0;ye<x;ye+=1)de[ye]=str(ye,ae)||"null";return Ee=de.length===0?"[]":gap?`[
|
|
|
`+gap+de.join(`,
|
|
|
`+gap)+`
|
|
|
`+pe+"]":"["+de.join(",")+"]",gap=pe,Ee}if(rep&&typeof rep=="object")for(x=rep.length,ye=0;ye<x;ye+=1)typeof rep[ye]=="string"&&(we=rep[ye],Ee=str(we,ae),Ee&&de.push(quote(we)+(gap?": ":":")+Ee));else for(we in ae)Object.prototype.hasOwnProperty.call(ae,we)&&(Ee=str(we,ae),Ee&&de.push(quote(we)+(gap?": ":":")+Ee));return Ee=de.length===0?"{}":gap?`{
|
|
|
`+gap+de.join(`,
|
|
|
`+gap)+`
|
|
|
`+pe+"}":"{"+de.join(",")+"}",gap=pe,Ee}}typeof JSON.stringify!="function"&&(meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(_t,ft,ye){var we;if(gap="",indent="",typeof ye=="number")for(we=0;we<ye;we+=1)indent+=" ";else typeof ye=="string"&&(indent=ye);if(rep=ft,ft&&typeof ft!="function"&&(typeof ft!="object"||typeof ft.length!="number"))throw new Error("JSON.stringify");return str("",{"":_t})}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){var j;function walk(_t,ft){var ye,we,Ee=_t[ft];if(Ee&&typeof Ee=="object")for(ye in Ee)Object.prototype.hasOwnProperty.call(Ee,ye)&&(we=walk(Ee,ye),we!==void 0?Ee[ye]=we:delete Ee[ye]);return reviver.call(_t,ft,Ee)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(_t){return"\\u"+("0000"+_t.charCodeAt(0).toString(16)).slice(-4)})),rx_one.test(text.replace(rx_two,"@").replace(rx_three,"]").replace(rx_four,"")))return j=eval("("+text+")"),typeof reviver=="function"?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}()},19637:function(_t,ft,ye){var we=ye(67039),Ee=we.slice,x=we.pluck,pe=we.each,de=we.bind,ae=we.create,ne=we.isList,se=we.isFunction,ce=we.isObject;_t.exports={createStore:oe};var ue={version:"2.0.12",enabled:!1,get:function(re,z){var a=this.storage.read(this._namespacePrefix+re);return this._deserialize(a,z)},set:function(re,z){return z===void 0?this.remove(re):(this.storage.write(this._namespacePrefix+re,this._serialize(z)),z)},remove:function(re){this.storage.remove(this._namespacePrefix+re)},each:function(re){var z=this;this.storage.each(function(a,y){re.call(z,z._deserialize(a),(y||"").replace(z._namespaceRegexp,""))})},clearAll:function(){this.storage.clearAll()},hasNamespace:function(re){return this._namespacePrefix=="__storejs_"+re+"_"},createStore:function(){return oe.apply(this,arguments)},addPlugin:function(re){this._addPlugin(re)},namespace:function(re){return oe(this.storage,this.plugins,re)}};function ie(){var re=typeof console=="undefined"?null:console;if(re){var z=re.warn?re.warn:re.log;z.apply(re,arguments)}}function oe(re,z,a){a||(a=""),re&&!ne(re)&&(re=[re]),z&&!ne(z)&&(z=[z]);var y=a?"__storejs_"+a+"_":"",E=a?new RegExp("^"+y):null,b=/^[a-zA-Z0-9_\-]*$/;if(!b.test(a))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var ee={_namespacePrefix:y,_namespaceRegexp:E,_testStorage:function(le){try{var fe="__storejs__test__";le.write(fe,fe);var he=le.read(fe)===fe;return le.remove(fe),he}catch(me){return!1}},_assignPluginFnProp:function(le,fe){var he=this[fe];this[fe]=function(){var ge=Ee(arguments,0),Se=this;function ve(){if(he)return pe(arguments,function(Pe,Te){ge[Te]=Pe}),he.apply(Se,ge)}var be=[ve].concat(ge);return le.apply(Se,be)}},_serialize:function(le){return JSON.stringify(le)},_deserialize:function(le,fe){if(!le)return fe;var he="";try{he=JSON.parse(le)}catch(me){he=le}return he!==void 0?he:fe},_addStorage:function(le){this.enabled||this._testStorage(le)&&(this.storage=le,this.enabled=!0)},_addPlugin:function(le){var fe=this;if(ne(le)){pe(le,function(ge){fe._addPlugin(ge)});return}var he=x(this.plugins,function(ge){return le===ge});if(!he){if(this.plugins.push(le),!se(le))throw new Error("Plugins must be function values that return objects");var me=le.call(this);if(!ce(me))throw new Error("Plugins must return an object of function properties");pe(me,function(ge,Se){if(!se(ge))throw new Error("Bad plugin property: "+Se+" from plugin "+le.name+". Plugins should only return functions.");fe._assignPluginFnProp(ge,Se)})}},addStorage:function(le){ie("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(le)}},te=ae(ee,ue,{plugins:[]});return te.raw={},pe(te,function(le,fe){se(le)&&(te.raw[fe]=de(te,le))}),pe(re,function(le){te._addStorage(le)}),pe(z,function(le){te._addPlugin(le)}),te}},67039:function(_t,ft,ye){var we=de(),Ee=ae(),x=ne(),pe=typeof window!="undefined"?window:ye.g;_t.exports={assign:we,create:Ee,trim:x,bind:se,slice:ce,each:ue,map:ie,pluck:oe,isList:re,isFunction:z,isObject:a,Global:pe};function de(){return Object.assign?Object.assign:function(E,b,ee,te){for(var le=1;le<arguments.length;le++)ue(Object(arguments[le]),function(fe,he){E[he]=fe});return E}}function ae(){if(Object.create)return function(b,ee,te,le){var fe=ce(arguments,1);return we.apply(this,[Object.create(b)].concat(fe))};{let E=function(){};var y=E;return function(ee,te,le,fe){var he=ce(arguments,1);return E.prototype=ee,we.apply(this,[new E].concat(he))}}}function ne(){return String.prototype.trim?function(E){return String.prototype.trim.call(E)}:function(E){return E.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}}function se(y,E){return function(){return E.apply(y,Array.prototype.slice.call(arguments,0))}}function ce(y,E){return Array.prototype.slice.call(y,E||0)}function ue(y,E){oe(y,function(b,ee){return E(b,ee),!1})}function ie(y,E){var b=re(y)?[]:{};return oe(y,function(ee,te){return b[te]=E(ee,te),!1}),b}function oe(y,E){if(re(y)){for(var b=0;b<y.length;b++)if(E(y[b],b))return y[b]}else for(var ee in y)if(y.hasOwnProperty(ee)&&E(y[ee],ee))return y[ee]}function re(y){return y!=null&&typeof y!="function"&&typeof y.length=="number"}function z(y){return y&&{}.toString.call(y)==="[object Function]"}function a(y){return y&&{}.toString.call(y)==="[object Object]"}},97573:function(_t,ft,ye){_t.exports=[ye(52496),ye(16436),ye(76673),ye(35701),ye(65578),ye(65300)]},35701:function(_t,ft,ye){var we=ye(67039),Ee=we.Global,x=we.trim;_t.exports={name:"cookieStorage",read:de,write:ne,each:ae,remove:se,clearAll:ce};var pe=Ee.document;function de(ie){if(!ie||!ue(ie))return null;var oe="(?:^|.*;\\s*)"+escape(ie).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(pe.cookie.replace(new RegExp(oe),"$1"))}function ae(ie){for(var oe=pe.cookie.split(/; ?/g),re=oe.length-1;re>=0;re--)if(x(oe[re])){var z=oe[re].split("="),a=unescape(z[0]),y=unescape(z[1]);ie(y,a)}}function ne(ie,oe){ie&&(pe.cookie=escape(ie)+"="+escape(oe)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/")}function se(ie){!ie||!ue(ie)||(pe.cookie=escape(ie)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function ce(){ae(function(ie,oe){se(oe)})}function ue(ie){return new RegExp("(?:^|;\\s*)"+escape(ie).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(pe.cookie)}},52496:function(_t,ft,ye){var we=ye(67039),Ee=we.Global;_t.exports={name:"localStorage",read:pe,write:de,each:ae,remove:ne,clearAll:se};function x(){return Ee.localStorage}function pe(ce){return x().getItem(ce)}function de(ce,ue){return x().setItem(ce,ue)}function ae(ce){for(var ue=x().length-1;ue>=0;ue--){var ie=x().key(ue);ce(pe(ie),ie)}}function ne(ce){return x().removeItem(ce)}function se(){return x().clear()}},65300:function(_t){_t.exports={name:"memoryStorage",read:ye,write:we,each:Ee,remove:x,clearAll:pe};var ft={};function ye(de){return ft[de]}function we(de,ae){ft[de]=ae}function Ee(de){for(var ae in ft)ft.hasOwnProperty(ae)&&de(ft[ae],ae)}function x(de){delete ft[de]}function pe(de){ft={}}},16436:function(_t,ft,ye){var we=ye(67039),Ee=we.Global;_t.exports={name:"oldFF-globalStorage",read:pe,write:de,each:ae,remove:ne,clearAll:se};var x=Ee.globalStorage;function pe(ce){return x[ce]}function de(ce,ue){x[ce]=ue}function ae(ce){for(var ue=x.length-1;ue>=0;ue--){var ie=x.key(ue);ce(x[ie],ie)}}function ne(ce){return x.removeItem(ce)}function se(){ae(function(ce,ue){delete x[ce]})}},76673:function(_t,ft,ye){var we=ye(67039),Ee=we.Global;_t.exports={name:"oldIE-userDataStorage",write:ne,read:se,each:ce,remove:ue,clearAll:ie};var x="storejs",pe=Ee.document,de=z(),ae=(Ee.navigator?Ee.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function ne(a,y){if(!ae){var E=re(a);de(function(b){b.setAttribute(E,y),b.save(x)})}}function se(a){if(!ae){var y=re(a),E=null;return de(function(b){E=b.getAttribute(y)}),E}}function ce(a){de(function(y){for(var E=y.XMLDocument.documentElement.attributes,b=E.length-1;b>=0;b--){var ee=E[b];a(y.getAttribute(ee.name),ee.name)}})}function ue(a){var y=re(a);de(function(E){E.removeAttribute(y),E.save(x)})}function ie(){de(function(a){var y=a.XMLDocument.documentElement.attributes;a.load(x);for(var E=y.length-1;E>=0;E--)a.removeAttribute(y[E].name);a.save(x)})}var oe=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function re(a){return a.replace(/^\d/,"___$&").replace(oe,"___")}function z(){if(!pe||!pe.documentElement||!pe.documentElement.addBehavior)return null;var a="script",y,E,b;try{E=new ActiveXObject("htmlfile"),E.open(),E.write("<"+a+">document.w=window</"+a+'><iframe src="/favicon.ico"></iframe>'),E.close(),y=E.w.frames[0].document,b=y.createElement("div")}catch(ee){b=pe.createElement("div"),y=pe.body}return function(ee){var te=[].slice.call(arguments,0);te.unshift(b),y.appendChild(b),b.addBehavior("#default#userData"),b.load(x),ee.apply(this,te),y.removeChild(b)}}},65578:function(_t,ft,ye){var we=ye(67039),Ee=we.Global;_t.exports={name:"sessionStorage",read:pe,write:de,each:ae,remove:ne,clearAll:se};function x(){return Ee.sessionStorage}function pe(ce){return x().getItem(ce)}function de(ce,ue){return x().setItem(ce,ue)}function ae(ce){for(var ue=x().length-1;ue>=0;ue--){var ie=x().key(ue);ce(pe(ie),ie)}}function ne(ce){return x().removeItem(ce)}function se(){return x().clear()}},34376:function(_t){(function(ft,ye){if(1)_t.exports=ye();else var we,Ee})(window,function(){return function(ft){var ye={};function we(Ee){if(ye[Ee])return ye[Ee].exports;var x=ye[Ee]={i:Ee,l:!1,exports:{}};return ft[Ee].call(x.exports,x,x.exports,we),x.l=!0,x.exports}return we.m=ft,we.c=ye,we.d=function(Ee,x,pe){we.o(Ee,x)||Object.defineProperty(Ee,x,{enumerable:!0,get:pe})},we.r=function(Ee){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(Ee,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(Ee,"__esModule",{value:!0})},we.t=function(Ee,x){if(1&x&&(Ee=we(Ee)),8&x||4&x&&typeof Ee=="object"&&Ee&&Ee.__esModule)return Ee;var pe=Object.create(null);if(we.r(pe),Object.defineProperty(pe,"default",{enumerable:!0,value:Ee}),2&x&&typeof Ee!="string")for(var de in Ee)we.d(pe,de,function(ae){return Ee[ae]}.bind(null,de));return pe},we.n=function(Ee){var x=Ee&&Ee.__esModule?function(){return Ee.default}:function(){return Ee};return we.d(x,"a",x),x},we.o=function(Ee,x){return Object.prototype.hasOwnProperty.call(Ee,x)},we.p="",we(we.s=34)}([function(ft,ye,we){"use strict";Object.defineProperty(ye,"__esModule",{value:!0}),ye.forwardEvent=ye.EventEmitter=void 0;var Ee=function(){function x(){this._listeners=[],this._disposed=!1}return Object.defineProperty(x.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 ae=0;ae<pe._listeners.length;ae++)if(pe._listeners[ae]===de)return void pe._listeners.splice(ae,1)}}}}),this._event},enumerable:!1,configurable:!0}),x.prototype.fire=function(pe,de){for(var ae=[],ne=0;ne<this._listeners.length;ne++)ae.push(this._listeners[ne]);for(ne=0;ne<ae.length;ne++)ae[ne].call(void 0,pe,de)},x.prototype.dispose=function(){this._listeners&&(this._listeners.length=0),this._disposed=!0},x}();ye.EventEmitter=Ee,ye.forwardEvent=function(x,pe){return x(function(de){return pe.fire(de)})}},function(ft,ye,we){"use strict";Object.defineProperty(ye,"__esModule",{value:!0}),ye.IUnicodeService=ye.IOptionsService=ye.ILogService=ye.IInstantiationService=ye.IDirtyRowService=ye.ICharsetService=ye.ICoreService=ye.ICoreMouseService=ye.IBufferService=void 0;var Ee=we(14);ye.IBufferService=Ee.createDecorator("BufferService"),ye.ICoreMouseService=Ee.createDecorator("CoreMouseService"),ye.ICoreService=Ee.createDecorator("CoreService"),ye.ICharsetService=Ee.createDecorator("CharsetService"),ye.IDirtyRowService=Ee.createDecorator("DirtyRowService"),ye.IInstantiationService=Ee.createDecorator("InstantiationService"),ye.ILogService=Ee.createDecorator("LogService"),ye.IOptionsService=Ee.createDecorator("OptionsService"),ye.IUnicodeService=Ee.createDecorator("UnicodeService")},function(ft,ye,we){"use strict";Object.defineProperty(ye,"__esModule",{value:!0}),ye.getDisposeArrayDisposable=ye.disposeArray=ye.Disposable=void 0;var Ee=function(){function pe(){this._disposables=[],this._isDisposed=!1}return pe.prototype.dispose=function(){this._isDisposed=!0;for(var de=0,ae=this._disposables;de<ae.length;de++)ae[de].dispose();this._disposables.length=0},pe.prototype.register=function(de){return this._disposables.push(de),de},pe.prototype.unregister=function(de){var ae=this._disposables.indexOf(de);ae!==-1&&this._disposables.splice(ae,1)},pe}();function x(pe){for(var de=0,ae=pe;de<ae.length;de++)ae[de].dispose();pe.length=0}ye.Disposable=Ee,ye.disposeArray=x,ye.getDisposeArrayDisposable=function(pe){return{dispose:function(){return x(pe)}}}},function(ft,ye,we){"use strict";Object.defineProperty(ye,"__esModule",{value:!0}),ye.WHITESPACE_CELL_CODE=ye.WHITESPACE_CELL_WIDTH=ye.WHITESPACE_CELL_CHAR=ye.NULL_CELL_CODE=ye.NULL_CELL_WIDTH=ye.NULL_CELL_CHAR=ye.CHAR_DATA_CODE_INDEX=ye.CHAR_DATA_WIDTH_INDEX=ye.CHAR_DATA_CHAR_INDEX=ye.CHAR_DATA_ATTR_INDEX=ye.DEFAULT_ATTR=ye.DEFAULT_COLOR=void 0,ye.DEFAULT_COLOR=256,ye.DEFAULT_ATTR=256|ye.DEFAULT_COLOR<<9,ye.CHAR_DATA_ATTR_INDEX=0,ye.CHAR_DATA_CHAR_INDEX=1,ye.CHAR_DATA_WIDTH_INDEX=2,ye.CHAR_DATA_CODE_INDEX=3,ye.NULL_CELL_CHAR="",ye.NULL_CELL_WIDTH=1,ye.NULL_CELL_CODE=0,ye.WHITESPACE_CELL_CHAR=" ",ye.WHITESPACE_CELL_WIDTH=1,ye.WHITESPACE_CELL_CODE=32},function(ft,ye,we){"use strict";var Ee,x=this&&this.__extends||(Ee=function(se,ce){return(Ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ue,ie){ue.__proto__=ie}||function(ue,ie){for(var oe in ie)ie.hasOwnProperty(oe)&&(ue[oe]=ie[oe])})(se,ce)},function(se,ce){function ue(){this.constructor=se}Ee(se,ce),se.prototype=ce===null?Object.create(ce):(ue.prototype=ce.prototype,new ue)});Object.defineProperty(ye,"__esModule",{value:!0}),ye.CellData=void 0;var pe=we(8),de=we(3),ae=we(6),ne=function(se){function ce(){var ue=se!==null&&se.apply(this,arguments)||this;return ue.content=0,ue.fg=0,ue.bg=0,ue.extended=new ae.ExtendedAttrs,ue.combinedData="",ue}return x(ce,se),ce.fromCharData=function(ue){var ie=new ce;return ie.setFromCharData(ue),ie},ce.prototype.isCombined=function(){return 2097152&this.content},ce.prototype.getWidth=function(){return this.content>>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 ie=!1;if(ue[de.CHAR_DATA_CHAR_INDEX].length>2)ie=!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:ie=!0}else ie=!0}else this.content=ue[de.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|ue[de.CHAR_DATA_WIDTH_INDEX]<<22;ie&&(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}(ae.AttributeData);ye.CellData=ne},function(ft,ye,we){"use strict";Object.defineProperty(ye,"__esModule",{value:!0}),ye.ISoundService=ye.ISelectionService=ye.IRenderService=ye.IMouseService=ye.ICoreBrowserService=ye.ICharSizeService=void 0;var Ee=we(14);ye.ICharSizeService=Ee.createDecorator("CharSizeService"),ye.ICoreBrowserService=Ee.createDecorator("CoreBrowserService"),ye.IMouseService=Ee.createDecorator("MouseService"),ye.IRenderService=Ee.createDecorator("RenderService"),ye.ISelectionService=Ee.createDecorator("SelectionService"),ye.ISoundService=Ee.createDecorator("SoundService")},function(ft,ye,we){"use strict";Object.defineProperty(ye,"__esModule",{value:!0}),ye.ExtendedAttrs=ye.AttributeData=void 0;var Ee=function(){function pe(){this.fg=0,this.bg=0,this.extended=new x}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}();ye.AttributeData=Ee;var x=function(){function pe(de,ae){de===void 0&&(de=0),ae===void 0&&(ae=-1),this.underlineStyle=de,this.underlineColor=ae}return pe.prototype.clone=function(){return new pe(this.underlineStyle,this.underlineColor)},pe.prototype.isEmpty=function(){return this.underlineStyle===0},pe}();ye.ExtendedAttrs=x},function(ft,ye,we){"use strict";Object.defineProperty(ye,"__esModule",{value:!0}),ye.addDisposableDomListener=void 0,ye.addDisposableDomListener=function(Ee,x,pe,de){Ee.addEventListener(x,pe,de);var ae=!1;return{dispose:function(){ae||(ae=!0,Ee.removeEventListener(x,pe,de))}}}},function(ft,ye,we){"use strict";Object.defineProperty(ye,"__esModule",{value:!0}),ye.Utf8ToUtf32=ye.StringToUtf32=ye.utf32ToString=ye.stringFromCodePoint=void 0,ye.stringFromCodePoint=function(pe){return pe>65535?(pe-=65536,String.fromCharCode(55296+(pe>>10))+String.fromCharCode(pe%1024+56320)):String.fromCharCode(pe)},ye.utf32ToString=function(pe,de,ae){de===void 0&&(de=0),ae===void 0&&(ae=pe.length);for(var ne="",se=de;se<ae;++se){var ce=pe[se];ce>65535?(ce-=65536,ne+=String.fromCharCode(55296+(ce>>10))+String.fromCharCode(ce%1024+56320)):ne+=String.fromCharCode(ce)}return ne};var Ee=function(){function pe(){this._interim=0}return pe.prototype.clear=function(){this._interim=0},pe.prototype.decode=function(de,ae){var ne=de.length;if(!ne)return 0;var se=0,ce=0;this._interim&&(56320<=(oe=de.charCodeAt(ce++))&&oe<=57343?ae[se++]=1024*(this._interim-55296)+oe-56320+65536:(ae[se++]=this._interim,ae[se++]=oe),this._interim=0);for(var ue=ce;ue<ne;++ue){var ie=de.charCodeAt(ue);if(55296<=ie&&ie<=56319){if(++ue>=ne)return this._interim=ie,se;var oe;56320<=(oe=de.charCodeAt(ue))&&oe<=57343?ae[se++]=1024*(ie-55296)+oe-56320+65536:(ae[se++]=ie,ae[se++]=oe)}else ae[se++]=ie}return se},pe}();ye.StringToUtf32=Ee;var x=function(){function pe(){this.interim=new Uint8Array(3)}return pe.prototype.clear=function(){this.interim.fill(0)},pe.prototype.decode=function(de,ae){var ne=de.length;if(!ne)return 0;var se,ce,ue,ie,oe=0,re=0,z=0;if(this.interim[0]){var a=!1,y=this.interim[0];y&=(224&y)==192?31:(240&y)==224?15:7;for(var E=0,b=void 0;(b=63&this.interim[++E])&&E<4;)y<<=6,y|=b;for(var ee=(224&this.interim[0])==192?2:(240&this.interim[0])==224?3:4,te=ee-E;z<te;){if(z>=ne)return 0;if((192&(b=de[z++]))!=128){z--,a=!0;break}this.interim[E++]=b,y<<=6,y|=63&b}a||(ee===2?y<128?z--:ae[oe++]=y:ee===3?y<2048||y>=55296&&y<=57343||(ae[oe++]=y):y<65536||y>1114111||(ae[oe++]=y)),this.interim.fill(0)}for(var le=ne-4,fe=z;fe<ne;){for(;!(!(fe<le)||128&(se=de[fe])||128&(ce=de[fe+1])||128&(ue=de[fe+2])||128&(ie=de[fe+3]));)ae[oe++]=se,ae[oe++]=ce,ae[oe++]=ue,ae[oe++]=ie,fe+=4;if((se=de[fe++])<128)ae[oe++]=se;else if((224&se)==192){if(fe>=ne)return this.interim[0]=se,oe;if((192&(ce=de[fe++]))!=128){fe--;continue}if((re=(31&se)<<6|63&ce)<128){fe--;continue}ae[oe++]=re}else if((240&se)==224){if(fe>=ne)return this.interim[0]=se,oe;if((192&(ce=de[fe++]))!=128){fe--;continue}if(fe>=ne)return this.interim[0]=se,this.interim[1]=ce,oe;if((192&(ue=de[fe++]))!=128){fe--;continue}if((re=(15&se)<<12|(63&ce)<<6|63&ue)<2048||re>=55296&&re<=57343)continue;ae[oe++]=re}else if((248&se)==240){if(fe>=ne)return this.interim[0]=se,oe;if((192&(ce=de[fe++]))!=128){fe--;continue}if(fe>=ne)return this.interim[0]=se,this.interim[1]=ce,oe;if((192&(ue=de[fe++]))!=128){fe--;continue}if(fe>=ne)return this.interim[0]=se,this.interim[1]=ce,this.interim[2]=ue,oe;if((192&(ie=de[fe++]))!=128){fe--;continue}if((re=(7&se)<<18|(63&ce)<<12|(63&ue)<<6|63&ie)<65536||re>1114111)continue;ae[oe++]=re}}return oe},pe}();ye.Utf8ToUtf32=x},function(ft,ye,we){"use strict";Object.defineProperty(ye,"__esModule",{value:!0}),ye.CHAR_ATLAS_CELL_SPACING=ye.DIM_OPACITY=ye.INVERTED_DEFAULT_COLOR=void 0,ye.INVERTED_DEFAULT_COLOR=257,ye.DIM_OPACITY=.5,ye.CHAR_ATLAS_CELL_SPACING=1},function(ft,ye,we){"use strict";var Ee,x,pe,de;function ae(se){var ce=se.toString(16);return ce.length<2?"0"+ce:ce}function ne(se,ce){return se<ce?(ce+.05)/(se+.05):(se+.05)/(ce+.05)}Object.defineProperty(ye,"__esModule",{value:!0}),ye.contrastRatio=ye.toPaddedHex=ye.rgba=ye.rgb=ye.css=ye.color=ye.channels=void 0,function(se){se.toCss=function(ce,ue,ie,oe){return oe!==void 0?"#"+ae(ce)+ae(ue)+ae(ie)+ae(oe):"#"+ae(ce)+ae(ue)+ae(ie)},se.toRgba=function(ce,ue,ie,oe){return oe===void 0&&(oe=255),(ce<<24|ue<<16|ie<<8|oe)>>>0}}(Ee=ye.channels||(ye.channels={})),(x=ye.color||(ye.color={})).blend=function(se,ce){var ue=(255&ce.rgba)/255;if(ue===1)return{css:ce.css,rgba:ce.rgba};var ie=ce.rgba>>24&255,oe=ce.rgba>>16&255,re=ce.rgba>>8&255,z=se.rgba>>24&255,a=se.rgba>>16&255,y=se.rgba>>8&255,E=z+Math.round((ie-z)*ue),b=a+Math.round((oe-a)*ue),ee=y+Math.round((re-y)*ue);return{css:Ee.toCss(E,b,ee),rgba:Ee.toRgba(E,b,ee)}},x.isOpaque=function(se){return(255&se.rgba)==255},x.ensureContrastRatio=function(se,ce,ue){var ie=de.ensureContrastRatio(se.rgba,ce.rgba,ue);if(ie)return de.toColor(ie>>24&255,ie>>16&255,ie>>8&255)},x.opaque=function(se){var ce=(255|se.rgba)>>>0,ue=de.toChannels(ce),ie=ue[0],oe=ue[1],re=ue[2];return{css:Ee.toCss(ie,oe,re),rgba:ce}},x.opacity=function(se,ce){var ue=Math.round(255*ce),ie=de.toChannels(se.rgba),oe=ie[0],re=ie[1],z=ie[2];return{css:Ee.toCss(oe,re,z,ue),rgba:Ee.toRgba(oe,re,z,ue)}},(ye.css||(ye.css={})).toColor=function(se){switch(se.length){case 7:return{css:se,rgba:(parseInt(se.slice(1),16)<<8|255)>>>0};case 9:return{css:se,rgba:parseInt(se.slice(1),16)>>>0}}throw new Error("css.toColor: Unsupported css format")},function(se){function ce(ue,ie,oe){var re=ue/255,z=ie/255,a=oe/255;return .2126*(re<=.03928?re/12.92:Math.pow((re+.055)/1.055,2.4))+.7152*(z<=.03928?z/12.92:Math.pow((z+.055)/1.055,2.4))+.0722*(a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4))}se.relativeLuminance=function(ue){return ce(ue>>16&255,ue>>8&255,255&ue)},se.relativeLuminance2=ce}(pe=ye.rgb||(ye.rgb={})),function(se){function ce(ie,oe,re){for(var z=ie>>24&255,a=ie>>16&255,y=ie>>8&255,E=oe>>24&255,b=oe>>16&255,ee=oe>>8&255,te=ne(pe.relativeLuminance2(E,ee,b),pe.relativeLuminance2(z,a,y));te<re&&(E>0||b>0||ee>0);)E-=Math.max(0,Math.ceil(.1*E)),b-=Math.max(0,Math.ceil(.1*b)),ee-=Math.max(0,Math.ceil(.1*ee)),te=ne(pe.relativeLuminance2(E,ee,b),pe.relativeLuminance2(z,a,y));return(E<<24|b<<16|ee<<8|255)>>>0}function ue(ie,oe,re){for(var z=ie>>24&255,a=ie>>16&255,y=ie>>8&255,E=oe>>24&255,b=oe>>16&255,ee=oe>>8&255,te=ne(pe.relativeLuminance2(E,ee,b),pe.relativeLuminance2(z,a,y));te<re&&(E<255||b<255||ee<255);)E=Math.min(255,E+Math.ceil(.1*(255-E))),b=Math.min(255,b+Math.ceil(.1*(255-b))),ee=Math.min(255,ee+Math.ceil(.1*(255-ee))),te=ne(pe.relativeLuminance2(E,ee,b),pe.relativeLuminance2(z,a,y));return(E<<24|b<<16|ee<<8|255)>>>0}se.ensureContrastRatio=function(ie,oe,re){var z=pe.relativeLuminance(ie>>8),a=pe.relativeLuminance(oe>>8);if(ne(z,a)<re)return a<z?ce(ie,oe,re):ue(ie,oe,re)},se.reduceLuminance=ce,se.increaseLuminance=ue,se.toChannels=function(ie){return[ie>>24&255,ie>>16&255,ie>>8&255,255&ie]},se.toColor=function(ie,oe,re){return{css:Ee.toCss(ie,oe,re),rgba:Ee.toRgba(ie,oe,re)}}}(de=ye.rgba||(ye.rgba={})),ye.toPaddedHex=ae,ye.contrastRatio=ne},function(ft,ye,we){"use strict";Object.defineProperty(ye,"__esModule",{value:!0}),ye.isLinux=ye.isWindows=ye.isIphone=ye.isIpad=ye.isMac=ye.isSafari=ye.isFirefox=void 0;var Ee=typeof navigator=="undefined",x=Ee?"node":navigator.userAgent,pe=Ee?"node":navigator.platform;function de(ae,ne){return ae.indexOf(ne)>=0}ye.isFirefox=!!~x.indexOf("Firefox"),ye.isSafari=/^((?!chrome|android).)*safari/i.test(x),ye.isMac=de(["Macintosh","MacIntel","MacPPC","Mac68K"],pe),ye.isIpad=pe==="iPad",ye.isIphone=pe==="iPhone",ye.isWindows=de(["Windows","Win16","Win32","WinCE"],pe),ye.isLinux=pe.indexOf("Linux")>=0},function(ft,ye,we){"use strict";Object.defineProperty(ye,"__esModule",{value:!0}),ye.C1=ye.C0=void 0,function(Ee){Ee.NUL="\0",Ee.SOH="",Ee.STX="",Ee.ETX="",Ee.EOT="",Ee.ENQ="",Ee.ACK="",Ee.BEL="\x07",Ee.BS="\b",Ee.HT=" ",Ee.LF=`
|
|
|
`,Ee.VT="\v",Ee.FF="\f",Ee.CR="\r",Ee.SO="",Ee.SI="",Ee.DLE="",Ee.DC1="",Ee.DC2="",Ee.DC3="",Ee.DC4="",Ee.NAK="",Ee.SYN="",Ee.ETB="",Ee.CAN="",Ee.EM="",Ee.SUB="",Ee.ESC="\x1B",Ee.FS="",Ee.GS="",Ee.RS="",Ee.US="",Ee.SP=" ",Ee.DEL="\x7F"}(ye.C0||(ye.C0={})),function(Ee){Ee.PAD="\x80",Ee.HOP="\x81",Ee.BPH="\x82",Ee.NBH="\x83",Ee.IND="\x84",Ee.NEL="\x85",Ee.SSA="\x86",Ee.ESA="\x87",Ee.HTS="\x88",Ee.HTJ="\x89",Ee.VTS="\x8A",Ee.PLD="\x8B",Ee.PLU="\x8C",Ee.RI="\x8D",Ee.SS2="\x8E",Ee.SS3="\x8F",Ee.DCS="\x90",Ee.PU1="\x91",Ee.PU2="\x92",Ee.STS="\x93",Ee.CCH="\x94",Ee.MW="\x95",Ee.SPA="\x96",Ee.EPA="\x97",Ee.SOS="\x98",Ee.SGCI="\x99",Ee.SCI="\x9A",Ee.CSI="\x9B",Ee.ST="\x9C",Ee.OSC="\x9D",Ee.PM="\x9E",Ee.APC="\x9F"}(ye.C1||(ye.C1={}))},function(ft,ye,we){"use strict";Object.defineProperty(ye,"__esModule",{value:!0}),ye.BaseRenderLayer=void 0;var Ee=we(3),x=we(9),pe=we(25),de=we(6),ae=we(28),ne=we(10),se=we(17),ce=function(){function ue(ie,oe,re,z,a,y,E,b){this._container=ie,this._alpha=z,this._colors=a,this._rendererId=y,this._bufferService=E,this._optionsService=b,this._scaledCharWidth=0,this._scaledCharHeight=0,this._scaledCellWidth=0,this._scaledCellHeight=0,this._scaledCharLeft=0,this._scaledCharTop=0,this._currentGlyphIdentifier={chars:"",code:0,bg:0,fg:0,bold:!1,dim:!1,italic:!1},this._canvas=document.createElement("canvas"),this._canvas.classList.add("xterm-"+oe+"-layer"),this._canvas.style.zIndex=re.toString(),this._initCanvas(),this._container.appendChild(this._canvas)}return ue.prototype.dispose=function(){var ie;se.removeElementFromParent(this._canvas),(ie=this._charAtlas)===null||ie===void 0||ie.dispose()},ue.prototype._initCanvas=function(){this._ctx=ae.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(ie,oe){},ue.prototype.onSelectionChanged=function(ie,oe,re){re===void 0&&(re=!1)},ue.prototype.setColors=function(ie){this._refreshCharAtlas(ie)},ue.prototype._setTransparency=function(ie){if(ie!==this._alpha){var oe=this._canvas;this._alpha=ie,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(ie){this._scaledCharWidth<=0&&this._scaledCharHeight<=0||(this._charAtlas=pe.acquireCharAtlas(this._optionsService.options,this._rendererId,ie,this._scaledCharWidth,this._scaledCharHeight),this._charAtlas.warmUp())},ue.prototype.resize=function(ie){this._scaledCellWidth=ie.scaledCellWidth,this._scaledCellHeight=ie.scaledCellHeight,this._scaledCharWidth=ie.scaledCharWidth,this._scaledCharHeight=ie.scaledCharHeight,this._scaledCharLeft=ie.scaledCharLeft,this._scaledCharTop=ie.scaledCharTop,this._canvas.width=ie.scaledCanvasWidth,this._canvas.height=ie.scaledCanvasHeight,this._canvas.style.width=ie.canvasWidth+"px",this._canvas.style.height=ie.canvasHeight+"px",this._alpha||this._clearAll(),this._refreshCharAtlas(this._colors)},ue.prototype._fillCells=function(ie,oe,re,z){this._ctx.fillRect(ie*this._scaledCellWidth,oe*this._scaledCellHeight,re*this._scaledCellWidth,z*this._scaledCellHeight)},ue.prototype._fillBottomLineAtCells=function(ie,oe,re){re===void 0&&(re=1),this._ctx.fillRect(ie*this._scaledCellWidth,(oe+1)*this._scaledCellHeight-window.devicePixelRatio-1,re*this._scaledCellWidth,window.devicePixelRatio)},ue.prototype._fillLeftLineAtCell=function(ie,oe,re){this._ctx.fillRect(ie*this._scaledCellWidth,oe*this._scaledCellHeight,window.devicePixelRatio*re,this._scaledCellHeight)},ue.prototype._strokeRectAtCell=function(ie,oe,re,z){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(ie*this._scaledCellWidth+window.devicePixelRatio/2,oe*this._scaledCellHeight+window.devicePixelRatio/2,re*this._scaledCellWidth-window.devicePixelRatio,z*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(ie,oe,re,z){this._alpha?this._ctx.clearRect(ie*this._scaledCellWidth,oe*this._scaledCellHeight,re*this._scaledCellWidth,z*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(ie*this._scaledCellWidth,oe*this._scaledCellHeight,re*this._scaledCellWidth,z*this._scaledCellHeight))},ue.prototype._fillCharTrueColor=function(ie,oe,re){this._ctx.font=this._getFont(!1,!1),this._ctx.textBaseline="middle",this._clipRow(re),this._ctx.fillText(ie.getChars(),oe*this._scaledCellWidth+this._scaledCharLeft,re*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2)},ue.prototype._drawChars=function(ie,oe,re){var z,a,y=this._getContrastColor(ie);y||ie.isFgRGB()||ie.isBgRGB()?this._drawUncachedChars(ie,oe,re,y):(ie.isInverse()?(z=ie.isBgDefault()?x.INVERTED_DEFAULT_COLOR:ie.getBgColor(),a=ie.isFgDefault()?x.INVERTED_DEFAULT_COLOR:ie.getFgColor()):(a=ie.isBgDefault()?Ee.DEFAULT_COLOR:ie.getBgColor(),z=ie.isFgDefault()?Ee.DEFAULT_COLOR:ie.getFgColor()),z+=this._optionsService.options.drawBoldTextInBrightColors&&ie.isBold()&&z<8?8:0,this._currentGlyphIdentifier.chars=ie.getChars()||Ee.WHITESPACE_CELL_CHAR,this._currentGlyphIdentifier.code=ie.getCode()||Ee.WHITESPACE_CELL_CODE,this._currentGlyphIdentifier.bg=a,this._currentGlyphIdentifier.fg=z,this._currentGlyphIdentifier.bold=!!ie.isBold(),this._currentGlyphIdentifier.dim=!!ie.isDim(),this._currentGlyphIdentifier.italic=!!ie.isItalic(),this._charAtlas&&this._charAtlas.draw(this._ctx,this._currentGlyphIdentifier,oe*this._scaledCellWidth+this._scaledCharLeft,re*this._scaledCellHeight+this._scaledCharTop)||this._drawUncachedChars(ie,oe,re))},ue.prototype._drawUncachedChars=function(ie,oe,re,z){if(this._ctx.save(),this._ctx.font=this._getFont(!!ie.isBold(),!!ie.isItalic()),this._ctx.textBaseline="middle",ie.isInverse())if(z)this._ctx.fillStyle=z.css;else if(ie.isBgDefault())this._ctx.fillStyle=ne.color.opaque(this._colors.background).css;else if(ie.isBgRGB())this._ctx.fillStyle="rgb("+de.AttributeData.toColorRGB(ie.getBgColor()).join(",")+")";else{var a=ie.getBgColor();this._optionsService.options.drawBoldTextInBrightColors&&ie.isBold()&&a<8&&(a+=8),this._ctx.fillStyle=this._colors.ansi[a].css}else if(z)this._ctx.fillStyle=z.css;else if(ie.isFgDefault())this._ctx.fillStyle=this._colors.foreground.css;else if(ie.isFgRGB())this._ctx.fillStyle="rgb("+de.AttributeData.toColorRGB(ie.getFgColor()).join(",")+")";else{var y=ie.getFgColor();this._optionsService.options.drawBoldTextInBrightColors&&ie.isBold()&&y<8&&(y+=8),this._ctx.fillStyle=this._colors.ansi[y].css}this._clipRow(re),ie.isDim()&&(this._ctx.globalAlpha=x.DIM_OPACITY),this._ctx.fillText(ie.getChars(),oe*this._scaledCellWidth+this._scaledCharLeft,re*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2),this._ctx.restore()},ue.prototype._clipRow=function(ie){this._ctx.beginPath(),this._ctx.rect(0,ie*this._scaledCellHeight,this._bufferService.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},ue.prototype._getFont=function(ie,oe){return(oe?"italic":"")+" "+(ie?this._optionsService.options.fontWeightBold:this._optionsService.options.fontWeight)+" "+this._optionsService.options.fontSize*window.devicePixelRatio+"px "+this._optionsService.options.fontFamily},ue.prototype._getContrastColor=function(ie){if(this._optionsService.options.minimumContrastRatio!==1){var oe=this._colors.contrastCache.getColor(ie.bg,ie.fg);if(oe!==void 0)return oe||void 0;var re=ie.getFgColor(),z=ie.getFgColorMode(),a=ie.getBgColor(),y=ie.getBgColorMode(),E=!!ie.isInverse(),b=!!ie.isInverse();if(E){var ee=re;re=a,a=ee;var te=z;z=y,y=te}var le=this._resolveBackgroundRgba(y,a,E),fe=this._resolveForegroundRgba(z,re,E,b),he=ne.rgba.ensureContrastRatio(le,fe,this._optionsService.options.minimumContrastRatio);if(he){var me={css:ne.channels.toCss(he>>24&255,he>>16&255,he>>8&255),rgba:he};return this._colors.contrastCache.setColor(ie.bg,ie.fg,me),me}this._colors.contrastCache.setColor(ie.bg,ie.fg,null)}},ue.prototype._resolveBackgroundRgba=function(ie,oe,re){switch(ie){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(ie,oe,re,z){switch(ie){case 16777216:case 33554432:return this._optionsService.options.drawBoldTextInBrightColors&&z&&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}();ye.BaseRenderLayer=ce},function(ft,ye,we){"use strict";Object.defineProperty(ye,"__esModule",{value:!0}),ye.createDecorator=ye.getServiceDependencies=ye.serviceRegistry=void 0;function Ee(x,pe,de){pe.di$target===pe?pe.di$dependencies.push({id:x,index:de}):(pe.di$dependencies=[{id:x,index:de}],pe.di$target=pe)}ye.serviceRegistry=new Map,ye.getServiceDependencies=function(x){return x.di$dependencies||[]},ye.createDecorator=function(x){if(ye.serviceRegistry.has(x))return ye.serviceRegistry.get(x);var pe=function(de,ae,ne){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");Ee(pe,de,ne)};return pe.toString=function(){return x},ye.serviceRegistry.set(x,pe),pe}},function(ft,ye,we){"use strict";function Ee(x,pe,de,ae){if(de===void 0&&(de=0),ae===void 0&&(ae=x.length),de>=x.length)return x;de=(x.length+de)%x.length,ae=ae>=x.length?x.length:(x.length+ae)%x.length;for(var ne=de;ne<ae;++ne)x[ne]=pe;return x}Object.defineProperty(ye,"__esModule",{value:!0}),ye.concat=ye.fillFallback=ye.fill=void 0,ye.fill=function(x,pe,de,ae){return x.fill?x.fill(pe,de,ae):Ee(x,pe,de,ae)},ye.fillFallback=Ee,ye.concat=function(x,pe){var de=new x.constructor(x.length+pe.length);return de.set(x),de.set(pe,x.length),de}},function(ft,ye,we){"use strict";Object.defineProperty(ye,"__esModule",{value:!0}),ye.BufferLine=ye.DEFAULT_ATTR_DATA=void 0;var Ee=we(8),x=we(3),pe=we(4),de=we(6);ye.DEFAULT_ATTR_DATA=Object.freeze(new de.AttributeData);var ae=function(){function ne(se,ce,ue){ue===void 0&&(ue=!1),this.isWrapped=ue,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*se);for(var ie=ce||pe.CellData.fromCharData([0,x.NULL_CELL_CHAR,x.NULL_CELL_WIDTH,x.NULL_CELL_CODE]),oe=0;oe<se;++oe)this.setCell(oe,ie);this.length=se}return ne.prototype.get=function(se){var ce=this._data[3*se+0],ue=2097151&ce;return[this._data[3*se+1],2097152&ce?this._combined[se]:ue?Ee.stringFromCodePoint(ue):"",ce>>22,2097152&ce?this._combined[se].charCodeAt(this._combined[se].length-1):ue]},ne.prototype.set=function(se,ce){this._data[3*se+1]=ce[x.CHAR_DATA_ATTR_INDEX],ce[x.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[se]=ce[1],this._data[3*se+0]=2097152|se|ce[x.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*se+0]=ce[x.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|ce[x.CHAR_DATA_WIDTH_INDEX]<<22},ne.prototype.getWidth=function(se){return this._data[3*se+0]>>22},ne.prototype.hasWidth=function(se){return 12582912&this._data[3*se+0]},ne.prototype.getFg=function(se){return this._data[3*se+1]},ne.prototype.getBg=function(se){return this._data[3*se+2]},ne.prototype.hasContent=function(se){return 4194303&this._data[3*se+0]},ne.prototype.getCodePoint=function(se){var ce=this._data[3*se+0];return 2097152&ce?this._combined[se].charCodeAt(this._combined[se].length-1):2097151&ce},ne.prototype.isCombined=function(se){return 2097152&this._data[3*se+0]},ne.prototype.getString=function(se){var ce=this._data[3*se+0];return 2097152&ce?this._combined[se]:2097151&ce?Ee.stringFromCodePoint(2097151&ce):""},ne.prototype.loadCell=function(se,ce){var ue=3*se;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[se]),268435456&ce.bg&&(ce.extended=this._extendedAttrs[se]),ce},ne.prototype.setCell=function(se,ce){2097152&ce.content&&(this._combined[se]=ce.combinedData),268435456&ce.bg&&(this._extendedAttrs[se]=ce.extended),this._data[3*se+0]=ce.content,this._data[3*se+1]=ce.fg,this._data[3*se+2]=ce.bg},ne.prototype.setCellFromCodePoint=function(se,ce,ue,ie,oe,re){268435456&oe&&(this._extendedAttrs[se]=re),this._data[3*se+0]=ce|ue<<22,this._data[3*se+1]=ie,this._data[3*se+2]=oe},ne.prototype.addCodepointToCell=function(se,ce){var ue=this._data[3*se+0];2097152&ue?this._combined[se]+=Ee.stringFromCodePoint(ce):(2097151&ue?(this._combined[se]=Ee.stringFromCodePoint(2097151&ue)+Ee.stringFromCodePoint(ce),ue&=-2097152,ue|=2097152):ue=ce|1<<22,this._data[3*se+0]=ue)},ne.prototype.insertCells=function(se,ce,ue,ie){if((se%=this.length)&&this.getWidth(se-1)===2&&this.setCellFromCodePoint(se-1,0,1,(ie==null?void 0:ie.fg)||0,(ie==null?void 0:ie.bg)||0,(ie==null?void 0:ie.extended)||new de.ExtendedAttrs),ce<this.length-se){for(var oe=new pe.CellData,re=this.length-se-ce-1;re>=0;--re)this.setCell(se+ce+re,this.loadCell(se+re,oe));for(re=0;re<ce;++re)this.setCell(se+re,ue)}else for(re=se;re<this.length;++re)this.setCell(re,ue);this.getWidth(this.length-1)===2&&this.setCellFromCodePoint(this.length-1,0,1,(ie==null?void 0:ie.fg)||0,(ie==null?void 0:ie.bg)||0,(ie==null?void 0:ie.extended)||new de.ExtendedAttrs)},ne.prototype.deleteCells=function(se,ce,ue,ie){if(se%=this.length,ce<this.length-se){for(var oe=new pe.CellData,re=0;re<this.length-se-ce;++re)this.setCell(se+re,this.loadCell(se+ce+re,oe));for(re=this.length-ce;re<this.length;++re)this.setCell(re,ue)}else for(re=se;re<this.length;++re)this.setCell(re,ue);se&&this.getWidth(se-1)===2&&this.setCellFromCodePoint(se-1,0,1,(ie==null?void 0:ie.fg)||0,(ie==null?void 0:ie.bg)||0,(ie==null?void 0:ie.extended)||new de.ExtendedAttrs),this.getWidth(se)!==0||this.hasContent(se)||this.setCellFromCodePoint(se,0,1,(ie==null?void 0:ie.fg)||0,(ie==null?void 0:ie.bg)||0,(ie==null?void 0:ie.extended)||new de.ExtendedAttrs)},ne.prototype.replaceCells=function(se,ce,ue,ie){for(se&&this.getWidth(se-1)===2&&this.setCellFromCodePoint(se-1,0,1,(ie==null?void 0:ie.fg)||0,(ie==null?void 0:ie.bg)||0,(ie==null?void 0:ie.extended)||new de.ExtendedAttrs),ce<this.length&&this.getWidth(ce-1)===2&&this.setCellFromCodePoint(ce,0,1,(ie==null?void 0:ie.fg)||0,(ie==null?void 0:ie.bg)||0,(ie==null?void 0:ie.extended)||new de.ExtendedAttrs);se<ce&&se<this.length;)this.setCell(se++,ue)},ne.prototype.resize=function(se,ce){if(se!==this.length){if(se>this.length){var ue=new Uint32Array(3*se);this.length&&(3*se<this._data.length?ue.set(this._data.subarray(0,3*se)):ue.set(this._data)),this._data=ue;for(var ie=this.length;ie<se;++ie)this.setCell(ie,ce)}else if(se){(ue=new Uint32Array(3*se)).set(this._data.subarray(0,3*se)),this._data=ue;var oe=Object.keys(this._combined);for(ie=0;ie<oe.length;ie++){var re=parseInt(oe[ie],10);re>=se&&delete this._combined[re]}}else this._data=new Uint32Array(0),this._combined={};this.length=se}},ne.prototype.fill=function(se){this._combined={},this._extendedAttrs={};for(var ce=0;ce<this.length;++ce)this.setCell(ce,se)},ne.prototype.copyFrom=function(se){for(var ce in this.length!==se.length?this._data=new Uint32Array(se._data):this._data.set(se._data),this.length=se.length,this._combined={},se._combined)this._combined[ce]=se._combined[ce];for(var ce in this._extendedAttrs={},se._extendedAttrs)this._extendedAttrs[ce]=se._extendedAttrs[ce];this.isWrapped=se.isWrapped},ne.prototype.clone=function(){var se=new ne(0);for(var ce in se._data=new Uint32Array(this._data),se.length=this.length,this._combined)se._combined[ce]=this._combined[ce];for(var ce in this._extendedAttrs)se._extendedAttrs[ce]=this._extendedAttrs[ce];return se.isWrapped=this.isWrapped,se},ne.prototype.getTrimmedLength=function(){for(var se=this.length-1;se>=0;--se)if(4194303&this._data[3*se+0])return se+(this._data[3*se+0]>>22);return 0},ne.prototype.copyCellsFrom=function(se,ce,ue,ie,oe){var re=se._data;if(oe)for(var z=ie-1;z>=0;z--)for(var a=0;a<3;a++)this._data[3*(ue+z)+a]=re[3*(ce+z)+a];else for(z=0;z<ie;z++)for(a=0;a<3;a++)this._data[3*(ue+z)+a]=re[3*(ce+z)+a];var y=Object.keys(se._combined);for(a=0;a<y.length;a++){var E=parseInt(y[a],10);E>=ce&&(this._combined[E-ce+ue]=se._combined[E])}},ne.prototype.translateToString=function(se,ce,ue){se===void 0&&(se=!1),ce===void 0&&(ce=0),ue===void 0&&(ue=this.length),se&&(ue=Math.min(ue,this.getTrimmedLength()));for(var ie="";ce<ue;){var oe=this._data[3*ce+0],re=2097151&oe;ie+=2097152&oe?this._combined[ce]:re?Ee.stringFromCodePoint(re):x.WHITESPACE_CELL_CHAR,ce+=oe>>22||1}return ie},ne}();ye.BufferLine=ae},function(ft,ye,we){"use strict";Object.defineProperty(ye,"__esModule",{value:!0}),ye.removeElementFromParent=void 0,ye.removeElementFromParent=function(){for(var Ee,x=[],pe=0;pe<arguments.length;pe++)x[pe]=arguments[pe];for(var de=0,ae=x;de<ae.length;de++){var ne=ae[de];(Ee=ne==null?void 0:ne.parentElement)===null||Ee===void 0||Ee.removeChild(ne)}}},function(ft,ye,we){"use strict";Object.defineProperty(ye,"__esModule",{value:!0}),ye.tooMuchOutput=ye.promptLabel=void 0,ye.promptLabel="Terminal input",ye.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},function(ft,ye,we){"use strict";var Ee,x=this&&this.__extends||(Ee=function(fe,he){return(Ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(me,ge){me.__proto__=ge}||function(me,ge){for(var Se in ge)ge.hasOwnProperty(Se)&&(me[Se]=ge[Se])})(fe,he)},function(fe,he){function me(){this.constructor=fe}Ee(fe,he),fe.prototype=he===null?Object.create(he):(me.prototype=he.prototype,new me)});Object.defineProperty(ye,"__esModule",{value:!0}),ye.InputHandler=ye.WindowsOptionsReportType=void 0;var pe,de=we(12),ae=we(20),ne=we(39),se=we(2),ce=we(15),ue=we(8),ie=we(16),oe=we(0),re=we(3),z=we(4),a=we(6),y=we(22),E=we(24),b={"(":0,")":1,"*":2,"+":3,"-":1,".":2};function ee(fe,he){if(fe>24)return he.setWinLines||!1;switch(fe){case 1:return!!he.restoreWin;case 2:return!!he.minimizeWin;case 3:return!!he.setWinPosition;case 4:return!!he.setWinSizePixels;case 5:return!!he.raiseWin;case 6:return!!he.lowerWin;case 7:return!!he.refreshWin;case 8:return!!he.setWinSizeChars;case 9:return!!he.maximizeWin;case 10:return!!he.fullscreenWin;case 11:return!!he.getWinState;case 13:return!!he.getWinPosition;case 14:return!!he.getWinSizePixels;case 15:return!!he.getScreenSizePixels;case 16:return!!he.getCellSizePixels;case 18:return!!he.getWinSizeChars;case 19:return!!he.getScreenSizeChars;case 20:return!!he.getIconTitle;case 21:return!!he.getWinTitle;case 22:return!!he.pushTitle;case 23:return!!he.popTitle;case 24:return!!he.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=ye.WindowsOptionsReportType||(ye.WindowsOptionsReportType={}));var te=function(){function fe(he,me,ge,Se){this._bufferService=he,this._coreService=me,this._logService=ge,this._optionsService=Se,this._data=new Uint32Array(0)}return fe.prototype.hook=function(he){this._data=new Uint32Array(0)},fe.prototype.put=function(he,me,ge){this._data=ce.concat(this._data,he.subarray(me,ge))},fe.prototype.unhook=function(he){if(he){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 ge=this._bufferService.buffer.scrollTop+1+";"+(this._bufferService.buffer.scrollBottom+1)+"r";return this._coreService.triggerDataEvent(de.C0.ESC+"P1$r"+ge+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 he(me,ge,Se,ve,be,Pe,Te,_e,je){je===void 0&&(je=new ne.EscapeSequenceParser);var Ce=fe.call(this)||this;Ce._bufferService=me,Ce._charsetService=ge,Ce._coreService=Se,Ce._dirtyRowService=ve,Ce._logService=be,Ce._optionsService=Pe,Ce._coreMouseService=Te,Ce._unicodeService=_e,Ce._parser=je,Ce._parseBuffer=new Uint32Array(4096),Ce._stringDecoder=new ue.StringToUtf32,Ce._utf8Decoder=new ue.Utf8ToUtf32,Ce._workCell=new z.CellData,Ce._windowTitle="",Ce._iconName="",Ce._windowTitleStack=[],Ce._iconNameStack=[],Ce._curAttrData=ie.DEFAULT_ATTR_DATA.clone(),Ce._eraseAttrDataInternal=ie.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(Ne,nt){Ce._logService.debug("Unknown CSI code: ",{identifier:Ce._parser.identToString(Ne),params:nt.toArray()})}),Ce._parser.setEscHandlerFallback(function(Ne){Ce._logService.debug("Unknown ESC code: ",{identifier:Ce._parser.identToString(Ne)})}),Ce._parser.setExecuteHandlerFallback(function(Ne){Ce._logService.debug("Unknown EXECUTE code: ",{code:Ne})}),Ce._parser.setOscHandlerFallback(function(Ne,nt,qe){Ce._logService.debug("Unknown OSC code: ",{identifier:Ne,action:nt,data:qe})}),Ce._parser.setDcsHandlerFallback(function(Ne,nt,qe){nt==="HOOK"&&(qe=qe.toArray()),Ce._logService.debug("Unknown DCS code: ",{identifier:Ce._parser.identToString(Ne),action:nt,payload:qe})}),Ce._parser.setPrintHandler(function(Ne,nt,qe){return Ce.print(Ne,nt,qe)}),Ce._parser.setCsiHandler({final:"@"},function(Ne){return Ce.insertChars(Ne)}),Ce._parser.setCsiHandler({intermediates:" ",final:"@"},function(Ne){return Ce.scrollLeft(Ne)}),Ce._parser.setCsiHandler({final:"A"},function(Ne){return Ce.cursorUp(Ne)}),Ce._parser.setCsiHandler({intermediates:" ",final:"A"},function(Ne){return Ce.scrollRight(Ne)}),Ce._parser.setCsiHandler({final:"B"},function(Ne){return Ce.cursorDown(Ne)}),Ce._parser.setCsiHandler({final:"C"},function(Ne){return Ce.cursorForward(Ne)}),Ce._parser.setCsiHandler({final:"D"},function(Ne){return Ce.cursorBackward(Ne)}),Ce._parser.setCsiHandler({final:"E"},function(Ne){return Ce.cursorNextLine(Ne)}),Ce._parser.setCsiHandler({final:"F"},function(Ne){return Ce.cursorPrecedingLine(Ne)}),Ce._parser.setCsiHandler({final:"G"},function(Ne){return Ce.cursorCharAbsolute(Ne)}),Ce._parser.setCsiHandler({final:"H"},function(Ne){return Ce.cursorPosition(Ne)}),Ce._parser.setCsiHandler({final:"I"},function(Ne){return Ce.cursorForwardTab(Ne)}),Ce._parser.setCsiHandler({final:"J"},function(Ne){return Ce.eraseInDisplay(Ne)}),Ce._parser.setCsiHandler({prefix:"?",final:"J"},function(Ne){return Ce.eraseInDisplay(Ne)}),Ce._parser.setCsiHandler({final:"K"},function(Ne){return Ce.eraseInLine(Ne)}),Ce._parser.setCsiHandler({prefix:"?",final:"K"},function(Ne){return Ce.eraseInLine(Ne)}),Ce._parser.setCsiHandler({final:"L"},function(Ne){return Ce.insertLines(Ne)}),Ce._parser.setCsiHandler({final:"M"},function(Ne){return Ce.deleteLines(Ne)}),Ce._parser.setCsiHandler({final:"P"},function(Ne){return Ce.deleteChars(Ne)}),Ce._parser.setCsiHandler({final:"S"},function(Ne){return Ce.scrollUp(Ne)}),Ce._parser.setCsiHandler({final:"T"},function(Ne){return Ce.scrollDown(Ne)}),Ce._parser.setCsiHandler({final:"X"},function(Ne){return Ce.eraseChars(Ne)}),Ce._parser.setCsiHandler({final:"Z"},function(Ne){return Ce.cursorBackwardTab(Ne)}),Ce._parser.setCsiHandler({final:"`"},function(Ne){return Ce.charPosAbsolute(Ne)}),Ce._parser.setCsiHandler({final:"a"},function(Ne){return Ce.hPositionRelative(Ne)}),Ce._parser.setCsiHandler({final:"b"},function(Ne){return Ce.repeatPrecedingCharacter(Ne)}),Ce._parser.setCsiHandler({final:"c"},function(Ne){return Ce.sendDeviceAttributesPrimary(Ne)}),Ce._parser.setCsiHandler({prefix:">",final:"c"},function(Ne){return Ce.sendDeviceAttributesSecondary(Ne)}),Ce._parser.setCsiHandler({final:"d"},function(Ne){return Ce.linePosAbsolute(Ne)}),Ce._parser.setCsiHandler({final:"e"},function(Ne){return Ce.vPositionRelative(Ne)}),Ce._parser.setCsiHandler({final:"f"},function(Ne){return Ce.hVPosition(Ne)}),Ce._parser.setCsiHandler({final:"g"},function(Ne){return Ce.tabClear(Ne)}),Ce._parser.setCsiHandler({final:"h"},function(Ne){return Ce.setMode(Ne)}),Ce._parser.setCsiHandler({prefix:"?",final:"h"},function(Ne){return Ce.setModePrivate(Ne)}),Ce._parser.setCsiHandler({final:"l"},function(Ne){return Ce.resetMode(Ne)}),Ce._parser.setCsiHandler({prefix:"?",final:"l"},function(Ne){return Ce.resetModePrivate(Ne)}),Ce._parser.setCsiHandler({final:"m"},function(Ne){return Ce.charAttributes(Ne)}),Ce._parser.setCsiHandler({final:"n"},function(Ne){return Ce.deviceStatus(Ne)}),Ce._parser.setCsiHandler({prefix:"?",final:"n"},function(Ne){return Ce.deviceStatusPrivate(Ne)}),Ce._parser.setCsiHandler({intermediates:"!",final:"p"},function(Ne){return Ce.softReset(Ne)}),Ce._parser.setCsiHandler({intermediates:" ",final:"q"},function(Ne){return Ce.setCursorStyle(Ne)}),Ce._parser.setCsiHandler({final:"r"},function(Ne){return Ce.setScrollRegion(Ne)}),Ce._parser.setCsiHandler({final:"s"},function(Ne){return Ce.saveCursor(Ne)}),Ce._parser.setCsiHandler({final:"t"},function(Ne){return Ce.windowOptions(Ne)}),Ce._parser.setCsiHandler({final:"u"},function(Ne){return Ce.restoreCursor(Ne)}),Ce._parser.setCsiHandler({intermediates:"'",final:"}"},function(Ne){return Ce.insertColumns(Ne)}),Ce._parser.setCsiHandler({intermediates:"'",final:"~"},function(Ne){return Ce.deleteColumns(Ne)}),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(Ne){Ce.setTitle(Ne),Ce.setIconName(Ne)})),Ce._parser.setOscHandler(1,new y.OscHandler(function(Ne){return Ce.setIconName(Ne)})),Ce._parser.setOscHandler(2,new y.OscHandler(function(Ne){return Ce.setTitle(Ne)})),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 Ie=function(Ne){ke._parser.setEscHandler({intermediates:"(",final:Ne},function(){return Ce.selectCharset("("+Ne)}),ke._parser.setEscHandler({intermediates:")",final:Ne},function(){return Ce.selectCharset(")"+Ne)}),ke._parser.setEscHandler({intermediates:"*",final:Ne},function(){return Ce.selectCharset("*"+Ne)}),ke._parser.setEscHandler({intermediates:"+",final:Ne},function(){return Ce.selectCharset("+"+Ne)}),ke._parser.setEscHandler({intermediates:"-",final:Ne},function(){return Ce.selectCharset("-"+Ne)}),ke._parser.setEscHandler({intermediates:".",final:Ne},function(){return Ce.selectCharset("."+Ne)}),ke._parser.setEscHandler({intermediates:"/",final:Ne},function(){return Ce.selectCharset("/"+Ne)})},ke=this;for(var $e in ae.CHARSETS)Ie($e);return Ce._parser.setEscHandler({intermediates:"#",final:"8"},function(){return Ce.screenAlignmentPattern()}),Ce._parser.setErrorHandler(function(Ne){return Ce._logService.error("Parsing error: ",Ne),Ne}),Ce._parser.setDcsHandler({intermediates:"$",final:"q"},new te(Ce._bufferService,Ce._coreService,Ce._logService,Ce._optionsService)),Ce}return x(he,fe),Object.defineProperty(he.prototype,"onRequestBell",{get:function(){return this._onRequestBell.event},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"onRequestRefreshRows",{get:function(){return this._onRequestRefreshRows.event},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"onRequestReset",{get:function(){return this._onRequestReset.event},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"onRequestScroll",{get:function(){return this._onRequestScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"onRequestSyncScrollBar",{get:function(){return this._onRequestSyncScrollBar.event},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"onRequestWindowsOptionsReport",{get:function(){return this._onRequestWindowsOptionsReport.event},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"onA11yChar",{get:function(){return this._onA11yChar.event},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"onA11yTab",{get:function(){return this._onA11yTab.event},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),he.prototype.dispose=function(){fe.prototype.dispose.call(this)},he.prototype.parse=function(me){var ge=this._bufferService.buffer,Se=ge.x,ve=ge.y;if(this._logService.debug("parsing data",me),this._parseBuffer.length<me.length&&this._parseBuffer.length<131072&&(this._parseBuffer=new Uint32Array(Math.min(me.length,131072))),this._dirtyRowService.clearRange(),me.length>131072)for(var be=0;be<me.length;be+=131072){var Pe=be+131072<me.length?be+131072:me.length,Te=typeof me=="string"?this._stringDecoder.decode(me.substring(be,Pe),this._parseBuffer):this._utf8Decoder.decode(me.subarray(be,Pe),this._parseBuffer);this._parser.parse(this._parseBuffer,Te)}else Te=typeof me=="string"?this._stringDecoder.decode(me,this._parseBuffer):this._utf8Decoder.decode(me,this._parseBuffer),this._parser.parse(this._parseBuffer,Te);(ge=this._bufferService.buffer).x===Se&&ge.y===ve||this._onCursorMove.fire(),this._onRequestRefreshRows.fire(this._dirtyRowService.start,this._dirtyRowService.end)},he.prototype.print=function(me,ge,Se){var ve,be,Pe=this._bufferService.buffer,Te=this._charsetService.charset,_e=this._optionsService.options.screenReaderMode,je=this._bufferService.cols,Ce=this._coreService.decPrivateModes.wraparound,Ie=this._coreService.modes.insertMode,ke=this._curAttrData,$e=Pe.lines.get(Pe.ybase+Pe.y);this._dirtyRowService.markDirty(Pe.y),Pe.x&&Se-ge>0&&$e.getWidth(Pe.x-1)===2&&$e.setCellFromCodePoint(Pe.x-1,0,1,ke.fg,ke.bg,ke.extended);for(var Ne=ge;Ne<Se;++Ne){if(ve=me[Ne],be=this._unicodeService.wcwidth(ve),ve<127&&Te){var nt=Te[String.fromCharCode(ve)];nt&&(ve=nt.charCodeAt(0))}if(_e&&this._onA11yChar.fire(ue.stringFromCodePoint(ve)),be||!Pe.x){if(Pe.x+be-1>=je){if(Ce){for(;Pe.x<je;)$e.setCellFromCodePoint(Pe.x++,0,1,ke.fg,ke.bg,ke.extended);Pe.x=0,Pe.y++,Pe.y===Pe.scrollBottom+1?(Pe.y--,this._onRequestScroll.fire(this._eraseAttrData(),!0)):(Pe.y>=this._bufferService.rows&&(Pe.y=this._bufferService.rows-1),Pe.lines.get(Pe.ybase+Pe.y).isWrapped=!0),$e=Pe.lines.get(Pe.ybase+Pe.y)}else if(Pe.x=je-1,be===2)continue}if(Ie&&($e.insertCells(Pe.x,be,Pe.getNullCell(ke),ke),$e.getWidth(je-1)===2&&$e.setCellFromCodePoint(je-1,re.NULL_CELL_CODE,re.NULL_CELL_WIDTH,ke.fg,ke.bg,ke.extended)),$e.setCellFromCodePoint(Pe.x++,ve,be,ke.fg,ke.bg,ke.extended),be>0)for(;--be;)$e.setCellFromCodePoint(Pe.x++,0,0,ke.fg,ke.bg,ke.extended)}else $e.getWidth(Pe.x-1)?$e.addCodepointToCell(Pe.x-1,ve):$e.addCodepointToCell(Pe.x-2,ve)}Se-ge>0&&($e.loadCell(Pe.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),Pe.x<je&&Se-ge>0&&$e.getWidth(Pe.x)===0&&!$e.hasContent(Pe.x)&&$e.setCellFromCodePoint(Pe.x,0,1,ke.fg,ke.bg,ke.extended),this._dirtyRowService.markDirty(Pe.y)},he.prototype.addCsiHandler=function(me,ge){var Se=this;return me.final!=="t"||me.prefix||me.intermediates?this._parser.addCsiHandler(me,ge):this._parser.addCsiHandler(me,function(ve){return!ee(ve.params[0],Se._optionsService.options.windowOptions)||ge(ve)})},he.prototype.addDcsHandler=function(me,ge){return this._parser.addDcsHandler(me,new E.DcsHandler(ge))},he.prototype.addEscHandler=function(me,ge){return this._parser.addEscHandler(me,ge)},he.prototype.addOscHandler=function(me,ge){return this._parser.addOscHandler(me,new y.OscHandler(ge))},he.prototype.bell=function(){this._onRequestBell.fire()},he.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()},he.prototype.carriageReturn=function(){this._bufferService.buffer.x=0},he.prototype.backspace=function(){var me,ge=this._bufferService.buffer;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),void(ge.x>0&&ge.x--);if(this._restrictCursor(this._bufferService.cols),ge.x>0)ge.x--;else if(ge.x===0&&ge.y>ge.scrollTop&&ge.y<=ge.scrollBottom&&(!((me=ge.lines.get(ge.ybase+ge.y))===null||me===void 0)&&me.isWrapped)){ge.lines.get(ge.ybase+ge.y).isWrapped=!1,ge.y--,ge.x=this._bufferService.cols-1;var Se=ge.lines.get(ge.ybase+ge.y);Se.hasWidth(ge.x)&&!Se.hasContent(ge.x)&&ge.x--}this._restrictCursor()},he.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)}},he.prototype.shiftOut=function(){this._charsetService.setgLevel(1)},he.prototype.shiftIn=function(){this._charsetService.setgLevel(0)},he.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)},he.prototype._setCursor=function(me,ge){this._dirtyRowService.markDirty(this._bufferService.buffer.y),this._coreService.decPrivateModes.origin?(this._bufferService.buffer.x=me,this._bufferService.buffer.y=this._bufferService.buffer.scrollTop+ge):(this._bufferService.buffer.x=me,this._bufferService.buffer.y=ge),this._restrictCursor(),this._dirtyRowService.markDirty(this._bufferService.buffer.y)},he.prototype._moveCursor=function(me,ge){this._restrictCursor(),this._setCursor(this._bufferService.buffer.x+me,this._bufferService.buffer.y+ge)},he.prototype.cursorUp=function(me){var ge=this._bufferService.buffer.y-this._bufferService.buffer.scrollTop;ge>=0?this._moveCursor(0,-Math.min(ge,me.params[0]||1)):this._moveCursor(0,-(me.params[0]||1))},he.prototype.cursorDown=function(me){var ge=this._bufferService.buffer.scrollBottom-this._bufferService.buffer.y;ge>=0?this._moveCursor(0,Math.min(ge,me.params[0]||1)):this._moveCursor(0,me.params[0]||1)},he.prototype.cursorForward=function(me){this._moveCursor(me.params[0]||1,0)},he.prototype.cursorBackward=function(me){this._moveCursor(-(me.params[0]||1),0)},he.prototype.cursorNextLine=function(me){this.cursorDown(me),this._bufferService.buffer.x=0},he.prototype.cursorPrecedingLine=function(me){this.cursorUp(me),this._bufferService.buffer.x=0},he.prototype.cursorCharAbsolute=function(me){this._setCursor((me.params[0]||1)-1,this._bufferService.buffer.y)},he.prototype.cursorPosition=function(me){this._setCursor(me.length>=2?(me.params[1]||1)-1:0,(me.params[0]||1)-1)},he.prototype.charPosAbsolute=function(me){this._setCursor((me.params[0]||1)-1,this._bufferService.buffer.y)},he.prototype.hPositionRelative=function(me){this._moveCursor(me.params[0]||1,0)},he.prototype.linePosAbsolute=function(me){this._setCursor(this._bufferService.buffer.x,(me.params[0]||1)-1)},he.prototype.vPositionRelative=function(me){this._moveCursor(0,me.params[0]||1)},he.prototype.hVPosition=function(me){this.cursorPosition(me)},he.prototype.tabClear=function(me){var ge=me.params[0];ge===0?delete this._bufferService.buffer.tabs[this._bufferService.buffer.x]:ge===3&&(this._bufferService.buffer.tabs={})},he.prototype.cursorForwardTab=function(me){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var ge=me.params[0]||1;ge--;)this._bufferService.buffer.x=this._bufferService.buffer.nextStop()},he.prototype.cursorBackwardTab=function(me){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var ge=me.params[0]||1,Se=this._bufferService.buffer;ge--;)Se.x=Se.prevStop()},he.prototype._eraseInBufferLine=function(me,ge,Se,ve){ve===void 0&&(ve=!1);var be=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+me);be.replaceCells(ge,Se,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),ve&&(be.isWrapped=!1)},he.prototype._resetBufferLine=function(me){var ge=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+me);ge.fill(this._bufferService.buffer.getNullCell(this._eraseAttrData())),ge.isWrapped=!1},he.prototype.eraseInDisplay=function(me){var ge;switch(this._restrictCursor(),me.params[0]){case 0:for(ge=this._bufferService.buffer.y,this._dirtyRowService.markDirty(ge),this._eraseInBufferLine(ge++,this._bufferService.buffer.x,this._bufferService.cols,this._bufferService.buffer.x===0);ge<this._bufferService.rows;ge++)this._resetBufferLine(ge);this._dirtyRowService.markDirty(ge);break;case 1:for(ge=this._bufferService.buffer.y,this._dirtyRowService.markDirty(ge),this._eraseInBufferLine(ge,0,this._bufferService.buffer.x+1,!0),this._bufferService.buffer.x+1>=this._bufferService.cols&&(this._bufferService.buffer.lines.get(ge+1).isWrapped=!1);ge--;)this._resetBufferLine(ge);this._dirtyRowService.markDirty(0);break;case 2:for(ge=this._bufferService.rows,this._dirtyRowService.markDirty(ge-1);ge--;)this._resetBufferLine(ge);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))}},he.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)},he.prototype.insertLines=function(me){this._restrictCursor();var ge=me.params[0]||1,Se=this._bufferService.buffer;if(!(Se.y>Se.scrollBottom||Se.y<Se.scrollTop)){for(var ve=Se.ybase+Se.y,be=this._bufferService.rows-1-Se.scrollBottom,Pe=this._bufferService.rows-1+Se.ybase-be+1;ge--;)Se.lines.splice(Pe-1,1),Se.lines.splice(ve,0,Se.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(Se.y,Se.scrollBottom),Se.x=0}},he.prototype.deleteLines=function(me){this._restrictCursor();var ge=me.params[0]||1,Se=this._bufferService.buffer;if(!(Se.y>Se.scrollBottom||Se.y<Se.scrollTop)){var ve,be=Se.ybase+Se.y;for(ve=this._bufferService.rows-1-Se.scrollBottom,ve=this._bufferService.rows-1+Se.ybase-ve;ge--;)Se.lines.splice(be,1),Se.lines.splice(ve,0,Se.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(Se.y,Se.scrollBottom),Se.x=0}},he.prototype.insertChars=function(me){this._restrictCursor();var ge=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);ge&&(ge.insertCells(this._bufferService.buffer.x,me.params[0]||1,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},he.prototype.deleteChars=function(me){this._restrictCursor();var ge=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);ge&&(ge.deleteCells(this._bufferService.buffer.x,me.params[0]||1,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},he.prototype.scrollUp=function(me){for(var ge=me.params[0]||1,Se=this._bufferService.buffer;ge--;)Se.lines.splice(Se.ybase+Se.scrollTop,1),Se.lines.splice(Se.ybase+Se.scrollBottom,0,Se.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(Se.scrollTop,Se.scrollBottom)},he.prototype.scrollDown=function(me){for(var ge=me.params[0]||1,Se=this._bufferService.buffer;ge--;)Se.lines.splice(Se.ybase+Se.scrollBottom,1),Se.lines.splice(Se.ybase+Se.scrollTop,0,Se.getBlankLine(ie.DEFAULT_ATTR_DATA));this._dirtyRowService.markRangeDirty(Se.scrollTop,Se.scrollBottom)},he.prototype.scrollLeft=function(me){var ge=this._bufferService.buffer;if(!(ge.y>ge.scrollBottom||ge.y<ge.scrollTop)){for(var Se=me.params[0]||1,ve=ge.scrollTop;ve<=ge.scrollBottom;++ve){var be=ge.lines.get(ge.ybase+ve);be.deleteCells(0,Se,ge.getNullCell(this._eraseAttrData()),this._eraseAttrData()),be.isWrapped=!1}this._dirtyRowService.markRangeDirty(ge.scrollTop,ge.scrollBottom)}},he.prototype.scrollRight=function(me){var ge=this._bufferService.buffer;if(!(ge.y>ge.scrollBottom||ge.y<ge.scrollTop)){for(var Se=me.params[0]||1,ve=ge.scrollTop;ve<=ge.scrollBottom;++ve){var be=ge.lines.get(ge.ybase+ve);be.insertCells(0,Se,ge.getNullCell(this._eraseAttrData()),this._eraseAttrData()),be.isWrapped=!1}this._dirtyRowService.markRangeDirty(ge.scrollTop,ge.scrollBottom)}},he.prototype.insertColumns=function(me){var ge=this._bufferService.buffer;if(!(ge.y>ge.scrollBottom||ge.y<ge.scrollTop)){for(var Se=me.params[0]||1,ve=ge.scrollTop;ve<=ge.scrollBottom;++ve){var be=this._bufferService.buffer.lines.get(ge.ybase+ve);be.insertCells(ge.x,Se,ge.getNullCell(this._eraseAttrData()),this._eraseAttrData()),be.isWrapped=!1}this._dirtyRowService.markRangeDirty(ge.scrollTop,ge.scrollBottom)}},he.prototype.deleteColumns=function(me){var ge=this._bufferService.buffer;if(!(ge.y>ge.scrollBottom||ge.y<ge.scrollTop)){for(var Se=me.params[0]||1,ve=ge.scrollTop;ve<=ge.scrollBottom;++ve){var be=ge.lines.get(ge.ybase+ve);be.deleteCells(ge.x,Se,ge.getNullCell(this._eraseAttrData()),this._eraseAttrData()),be.isWrapped=!1}this._dirtyRowService.markRangeDirty(ge.scrollTop,ge.scrollBottom)}},he.prototype.eraseChars=function(me){this._restrictCursor();var ge=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);ge&&(ge.replaceCells(this._bufferService.buffer.x,this._bufferService.buffer.x+(me.params[0]||1),this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},he.prototype.repeatPrecedingCharacter=function(me){if(this._parser.precedingCodepoint){for(var ge=me.params[0]||1,Se=new Uint32Array(ge),ve=0;ve<ge;++ve)Se[ve]=this._parser.precedingCodepoint;this.print(Se,0,Se.length)}},he.prototype.sendDeviceAttributesPrimary=function(me){me.params[0]>0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(de.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(de.C0.ESC+"[?6c"))},he.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"))},he.prototype._is=function(me){return(this._optionsService.options.termName+"").indexOf(me)===0},he.prototype.setMode=function(me){for(var ge=0;ge<me.length;ge++)switch(me.params[ge]){case 4:this._coreService.modes.insertMode=!0}},he.prototype.setModePrivate=function(me){for(var ge=0;ge<me.length;ge++)switch(me.params[ge]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!0;break;case 2:this._charsetService.setgCharset(0,ae.DEFAULT_CHARSET),this._charsetService.setgCharset(1,ae.DEFAULT_CHARSET),this._charsetService.setgCharset(2,ae.DEFAULT_CHARSET),this._charsetService.setgCharset(3,ae.DEFAULT_CHARSET);break;case 3:this._optionsService.options.windowOptions.setWinLines&&(this._bufferService.resize(132,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!0,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!0;break;case 12:break;case 45:this._coreService.decPrivateModes.reverseWraparound=!0;break;case 66:this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire();break;case 9:this._coreMouseService.activeProtocol="X10";break;case 1e3:this._coreMouseService.activeProtocol="VT200";break;case 1002:this._coreMouseService.activeProtocol="DRAG";break;case 1003:this._coreMouseService.activeProtocol="ANY";break;case 1004:this._coreService.decPrivateModes.sendFocus=!0;break;case 1005:this._logService.debug("DECSET 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="SGR";break;case 1015:this._logService.debug("DECSET 1015 not supported (see #2507)");break;case 25:this._coreService.isCursorHidden=!1;break;case 1048:this.saveCursor();break;case 1049:this.saveCursor();case 47:case 1047:this._bufferService.buffers.activateAltBuffer(this._eraseAttrData()),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!0}},he.prototype.resetMode=function(me){for(var ge=0;ge<me.length;ge++)switch(me.params[ge]){case 4:this._coreService.modes.insertMode=!1}},he.prototype.resetModePrivate=function(me){for(var ge=0;ge<me.length;ge++)switch(me.params[ge]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!1;break;case 3:this._optionsService.options.windowOptions.setWinLines&&(this._bufferService.resize(80,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!1,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!1;break;case 12:break;case 45:this._coreService.decPrivateModes.reverseWraparound=!1;break;case 66:this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire();break;case 9:case 1e3:case 1002:case 1003:this._coreMouseService.activeProtocol="NONE";break;case 1004:this._coreService.decPrivateModes.sendFocus=!1;break;case 1005:this._logService.debug("DECRST 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="DEFAULT";break;case 1015:this._logService.debug("DECRST 1015 not supported (see #2507)");break;case 25:this._coreService.isCursorHidden=!0;break;case 1048:this.restoreCursor();break;case 1049:case 47:case 1047:this._bufferService.buffers.activateNormalBuffer(),me.params[ge]===1049&&this.restoreCursor(),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!1}},he.prototype._updateAttrColor=function(me,ge,Se,ve,be){return ge===2?(me|=50331648,me&=-16777216,me|=a.AttributeData.fromColorRGB([Se,ve,be])):ge===5&&(me&=-50331904,me|=33554432|255&Se),me},he.prototype._extractColor=function(me,ge,Se){var ve=[0,0,-1,0,0,0],be=0,Pe=0;do{if(ve[Pe+be]=me.params[ge+Pe],me.hasSubParams(ge+Pe)){var Te=me.getSubParams(ge+Pe),_e=0;do ve[1]===5&&(be=1),ve[Pe+_e+1+be]=Te[_e];while(++_e<Te.length&&_e+Pe+1+be<ve.length);break}if(ve[1]===5&&Pe+be>=2||ve[1]===2&&Pe+be>=5)break;ve[1]&&(be=1)}while(++Pe+ge<me.length&&Pe+be<ve.length);for(_e=2;_e<ve.length;++_e)ve[_e]===-1&&(ve[_e]=0);switch(ve[0]){case 38:Se.fg=this._updateAttrColor(Se.fg,ve[1],ve[3],ve[4],ve[5]);break;case 48:Se.bg=this._updateAttrColor(Se.bg,ve[1],ve[3],ve[4],ve[5]);break;case 58:Se.extended=Se.extended.clone(),Se.extended.underlineColor=this._updateAttrColor(Se.extended.underlineColor,ve[1],ve[3],ve[4],ve[5])}return Pe},he.prototype._processUnderline=function(me,ge){ge.extended=ge.extended.clone(),(!~me||me>5)&&(me=1),ge.extended.underlineStyle=me,ge.fg|=268435456,me===0&&(ge.fg&=-268435457),ge.updateExtended()},he.prototype.charAttributes=function(me){if(me.length===1&&me.params[0]===0)return this._curAttrData.fg=ie.DEFAULT_ATTR_DATA.fg,void(this._curAttrData.bg=ie.DEFAULT_ATTR_DATA.bg);for(var ge,Se=me.length,ve=this._curAttrData,be=0;be<Se;be++)(ge=me.params[be])>=30&&ge<=37?(ve.fg&=-50331904,ve.fg|=16777216|ge-30):ge>=40&&ge<=47?(ve.bg&=-50331904,ve.bg|=16777216|ge-40):ge>=90&&ge<=97?(ve.fg&=-50331904,ve.fg|=16777224|ge-90):ge>=100&&ge<=107?(ve.bg&=-50331904,ve.bg|=16777224|ge-100):ge===0?(ve.fg=ie.DEFAULT_ATTR_DATA.fg,ve.bg=ie.DEFAULT_ATTR_DATA.bg):ge===1?ve.fg|=134217728:ge===3?ve.bg|=67108864:ge===4?(ve.fg|=268435456,this._processUnderline(me.hasSubParams(be)?me.getSubParams(be)[0]:1,ve)):ge===5?ve.fg|=536870912:ge===7?ve.fg|=67108864:ge===8?ve.fg|=1073741824:ge===2?ve.bg|=134217728:ge===21?this._processUnderline(2,ve):ge===22?(ve.fg&=-134217729,ve.bg&=-134217729):ge===23?ve.bg&=-67108865:ge===24?ve.fg&=-268435457:ge===25?ve.fg&=-536870913:ge===27?ve.fg&=-67108865:ge===28?ve.fg&=-1073741825:ge===39?(ve.fg&=-67108864,ve.fg|=16777215&ie.DEFAULT_ATTR_DATA.fg):ge===49?(ve.bg&=-67108864,ve.bg|=16777215&ie.DEFAULT_ATTR_DATA.bg):ge===38||ge===48||ge===58?be+=this._extractColor(me,be,ve):ge===59?(ve.extended=ve.extended.clone(),ve.extended.underlineColor=-1,ve.updateExtended()):ge===100?(ve.fg&=-67108864,ve.fg|=16777215&ie.DEFAULT_ATTR_DATA.fg,ve.bg&=-67108864,ve.bg|=16777215&ie.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",ge)},he.prototype.deviceStatus=function(me){switch(me.params[0]){case 5:this._coreService.triggerDataEvent(de.C0.ESC+"[0n");break;case 6:var ge=this._bufferService.buffer.y+1,Se=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(de.C0.ESC+"["+ge+";"+Se+"R")}},he.prototype.deviceStatusPrivate=function(me){switch(me.params[0]){case 6:var ge=this._bufferService.buffer.y+1,Se=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(de.C0.ESC+"[?"+ge+";"+Se+"R")}},he.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=ie.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},he.prototype.setCursorStyle=function(me){var ge=me.params[0]||1;switch(ge){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=ge%2==1;this._optionsService.options.cursorBlink=Se},he.prototype.setScrollRegion=function(me){var ge,Se=me.params[0]||1;(me.length<2||(ge=me.params[1])>this._bufferService.rows||ge===0)&&(ge=this._bufferService.rows),ge>Se&&(this._bufferService.buffer.scrollTop=Se-1,this._bufferService.buffer.scrollBottom=ge-1,this._setCursor(0,0))},he.prototype.windowOptions=function(me){if(ee(me.params[0],this._optionsService.options.windowOptions)){var ge=me.length>1?me.params[1]:0;switch(me.params[0]){case 14:ge!==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:ge!==0&&ge!==2||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),ge!==0&&ge!==1||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:ge!==0&&ge!==2||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),ge!==0&&ge!==1||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}}},he.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},he.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()},he.prototype.setTitle=function(me){this._windowTitle=me,this._onTitleChange.fire(me)},he.prototype.setIconName=function(me){this._iconName=me},he.prototype.nextLine=function(){this._bufferService.buffer.x=0,this.index()},he.prototype.keypadApplicationMode=function(){this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire()},he.prototype.keypadNumericMode=function(){this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire()},he.prototype.selectDefaultCharset=function(){this._charsetService.setgLevel(0),this._charsetService.setgCharset(0,ae.DEFAULT_CHARSET)},he.prototype.selectCharset=function(me){me.length===2?me[0]!=="/"&&this._charsetService.setgCharset(b[me[0]],ae.CHARSETS[me[1]]||ae.DEFAULT_CHARSET):this.selectDefaultCharset()},he.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()},he.prototype.tabSet=function(){this._bufferService.buffer.tabs[this._bufferService.buffer.x]=!0},he.prototype.reverseIndex=function(){this._restrictCursor();var me=this._bufferService.buffer;if(me.y===me.scrollTop){var ge=me.scrollBottom-me.scrollTop;me.lines.shiftElements(me.ybase+me.y,ge,1),me.lines.set(me.ybase+me.y,me.getBlankLine(this._eraseAttrData())),this._dirtyRowService.markRangeDirty(me.scrollTop,me.scrollBottom)}else me.y--,this._restrictCursor()},he.prototype.fullReset=function(){this._parser.reset(),this._onRequestReset.fire()},he.prototype.reset=function(){this._curAttrData=ie.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=ie.DEFAULT_ATTR_DATA.clone()},he.prototype._eraseAttrData=function(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal},he.prototype.setgLevel=function(me){this._charsetService.setgLevel(me)},he.prototype.screenAlignmentPattern=function(){var me=new z.CellData;me.content=1<<22|69,me.fg=this._curAttrData.fg,me.bg=this._curAttrData.bg;var ge=this._bufferService.buffer;this._setCursor(0,0);for(var Se=0;Se<this._bufferService.rows;++Se){var ve=ge.ybase+ge.y+Se,be=ge.lines.get(ve);be&&(be.fill(me),be.isWrapped=!1)}this._dirtyRowService.markAllDirty(),this._setCursor(0,0)},he}(se.Disposable);ye.InputHandler=le},function(ft,ye,we){"use strict";Object.defineProperty(ye,"__esModule",{value:!0}),ye.DEFAULT_CHARSET=ye.CHARSETS=void 0,ye.CHARSETS={},ye.DEFAULT_CHARSET=ye.CHARSETS.B,ye.CHARSETS[0]={"`":"\u25C6",a:"\u2592",b:"\u2409",c:"\u240C",d:"\u240D",e:"\u240A",f:"\xB0",g:"\xB1",h:"\u2424",i:"\u240B",j:"\u2518",k:"\u2510",l:"\u250C",m:"\u2514",n:"\u253C",o:"\u23BA",p:"\u23BB",q:"\u2500",r:"\u23BC",s:"\u23BD",t:"\u251C",u:"\u2524",v:"\u2534",w:"\u252C",x:"\u2502",y:"\u2264",z:"\u2265","{":"\u03C0","|":"\u2260","}":"\xA3","~":"\xB7"},ye.CHARSETS.A={"#":"\xA3"},ye.CHARSETS.B=void 0,ye.CHARSETS[4]={"#":"\xA3","@":"\xBE","[":"ij","\\":"\xBD","]":"|","{":"\xA8","|":"f","}":"\xBC","~":"\xB4"},ye.CHARSETS.C=ye.CHARSETS[5]={"[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"},ye.CHARSETS.R={"#":"\xA3","@":"\xE0","[":"\xB0","\\":"\xE7","]":"\xA7","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xA8"},ye.CHARSETS.Q={"@":"\xE0","[":"\xE2","\\":"\xE7","]":"\xEA","^":"\xEE","`":"\xF4","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xFB"},ye.CHARSETS.K={"@":"\xA7","[":"\xC4","\\":"\xD6","]":"\xDC","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xDF"},ye.CHARSETS.Y={"#":"\xA3","@":"\xA7","[":"\xB0","\\":"\xE7","]":"\xE9","`":"\xF9","{":"\xE0","|":"\xF2","}":"\xE8","~":"\xEC"},ye.CHARSETS.E=ye.CHARSETS[6]={"@":"\xC4","[":"\xC6","\\":"\xD8","]":"\xC5","^":"\xDC","`":"\xE4","{":"\xE6","|":"\xF8","}":"\xE5","~":"\xFC"},ye.CHARSETS.Z={"#":"\xA3","@":"\xA7","[":"\xA1","\\":"\xD1","]":"\xBF","{":"\xB0","|":"\xF1","}":"\xE7"},ye.CHARSETS.H=ye.CHARSETS[7]={"@":"\xC9","[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"},ye.CHARSETS["="]={"#":"\xF9","@":"\xE0","[":"\xE9","\\":"\xE7","]":"\xEA","^":"\xEE",_:"\xE8","`":"\xF4","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xFB"}},function(ft,ye,we){"use strict";Object.defineProperty(ye,"__esModule",{value:!0}),ye.Params=void 0;var Ee=function(){function x(pe,de){if(pe===void 0&&(pe=32),de===void 0&&(de=32),this.maxLength=pe,this.maxSubParamsLength=de,de>256)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 x.fromArray=function(pe){var de=new x;if(!pe.length)return de;for(var ae=pe[0]instanceof Array?1:0;ae<pe.length;++ae){var ne=pe[ae];if(ne instanceof Array)for(var se=0;se<ne.length;++se)de.addSubParam(ne[se]);else de.addParam(ne)}return de},x.prototype.clone=function(){var pe=new x(this.maxLength,this.maxSubParamsLength);return pe.params.set(this.params),pe.length=this.length,pe._subParams.set(this._subParams),pe._subParamsLength=this._subParamsLength,pe._subParamsIdx.set(this._subParamsIdx),pe._rejectDigits=this._rejectDigits,pe._rejectSubDigits=this._rejectSubDigits,pe._digitIsSub=this._digitIsSub,pe},x.prototype.toArray=function(){for(var pe=[],de=0;de<this.length;++de){pe.push(this.params[de]);var ae=this._subParamsIdx[de]>>8,ne=255&this._subParamsIdx[de];ne-ae>0&&pe.push(Array.prototype.slice.call(this._subParams,ae,ne))}return pe},x.prototype.reset=function(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1},x.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}},x.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]++}},x.prototype.hasSubParams=function(pe){return(255&this._subParamsIdx[pe])-(this._subParamsIdx[pe]>>8)>0},x.prototype.getSubParams=function(pe){var de=this._subParamsIdx[pe]>>8,ae=255&this._subParamsIdx[pe];return ae-de>0?this._subParams.subarray(de,ae):null},x.prototype.getSubParamsAll=function(){for(var pe={},de=0;de<this.length;++de){var ae=this._subParamsIdx[de]>>8,ne=255&this._subParamsIdx[de];ne-ae>0&&(pe[de]=this._subParams.slice(ae,ne))}return pe},x.prototype.addDigit=function(pe){var de;if(!(this._rejectDigits||!(de=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)){var ae=this._digitIsSub?this._subParams:this.params,ne=ae[de-1];ae[de-1]=~ne?Math.min(10*ne+pe,2147483647):pe}},x}();ye.Params=Ee},function(ft,ye,we){"use strict";Object.defineProperty(ye,"__esModule",{value:!0}),ye.OscHandler=ye.OscParser=void 0;var Ee=we(23),x=we(8),pe=function(){function ae(){this._state=0,this._id=-1,this._handlers=Object.create(null),this._handlerFb=function(){}}return ae.prototype.addHandler=function(ne,se){this._handlers[ne]===void 0&&(this._handlers[ne]=[]);var ce=this._handlers[ne];return ce.push(se),{dispose:function(){var ue=ce.indexOf(se);ue!==-1&&ce.splice(ue,1)}}},ae.prototype.setHandler=function(ne,se){this._handlers[ne]=[se]},ae.prototype.clearHandler=function(ne){this._handlers[ne]&&delete this._handlers[ne]},ae.prototype.setHandlerFallback=function(ne){this._handlerFb=ne},ae.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},ae.prototype.reset=function(){this._state===2&&this.end(!1),this._id=-1,this._state=0},ae.prototype._start=function(){var ne=this._handlers[this._id];if(ne)for(var se=ne.length-1;se>=0;se--)ne[se].start();else this._handlerFb(this._id,"START")},ae.prototype._put=function(ne,se,ce){var ue=this._handlers[this._id];if(ue)for(var ie=ue.length-1;ie>=0;ie--)ue[ie].put(ne,se,ce);else this._handlerFb(this._id,"PUT",x.utf32ToString(ne,se,ce))},ae.prototype._end=function(ne){var se=this._handlers[this._id];if(se){for(var ce=se.length-1;ce>=0&&se[ce].end(ne)===!1;ce--);for(ce--;ce>=0;ce--)se[ce].end(!1)}else this._handlerFb(this._id,"END",ne)},ae.prototype.start=function(){this.reset(),this._id=-1,this._state=1},ae.prototype.put=function(ne,se,ce){if(this._state!==3){if(this._state===1)for(;se<ce;){var ue=ne[se++];if(ue===59){this._state=2,this._start();break}if(ue<48||57<ue)return void(this._state=3);this._id===-1&&(this._id=0),this._id=10*this._id+ue-48}this._state===2&&ce-se>0&&this._put(ne,se,ce)}},ae.prototype.end=function(ne){this._state!==0&&(this._state!==3&&(this._state===1&&this._start(),this._end(ne)),this._id=-1,this._state=0)},ae}();ye.OscParser=pe;var de=function(){function ae(ne){this._handler=ne,this._data="",this._hitLimit=!1}return ae.prototype.start=function(){this._data="",this._hitLimit=!1},ae.prototype.put=function(ne,se,ce){this._hitLimit||(this._data+=x.utf32ToString(ne,se,ce),this._data.length>Ee.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},ae.prototype.end=function(ne){var se;return this._hitLimit?se=!1:ne&&(se=this._handler(this._data)),this._data="",this._hitLimit=!1,se},ae}();ye.OscHandler=de},function(ft,ye,we){"use strict";Object.defineProperty(ye,"__esModule",{value:!0}),ye.PAYLOAD_LIMIT=void 0,ye.PAYLOAD_LIMIT=1e7},function(ft,ye,we){"use strict";Object.defineProperty(ye,"__esModule",{value:!0}),ye.DcsHandler=ye.DcsParser=void 0;var Ee=we(8),x=we(21),pe=we(23),de=[],ae=function(){function se(){this._handlers=Object.create(null),this._active=de,this._ident=0,this._handlerFb=function(){}}return se.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},se.prototype.addHandler=function(ce,ue){this._handlers[ce]===void 0&&(this._handlers[ce]=[]);var ie=this._handlers[ce];return ie.push(ue),{dispose:function(){var oe=ie.indexOf(ue);oe!==-1&&ie.splice(oe,1)}}},se.prototype.setHandler=function(ce,ue){this._handlers[ce]=[ue]},se.prototype.clearHandler=function(ce){this._handlers[ce]&&delete this._handlers[ce]},se.prototype.setHandlerFallback=function(ce){this._handlerFb=ce},se.prototype.reset=function(){this._active.length&&this.unhook(!1),this._active=de,this._ident=0},se.prototype.hook=function(ce,ue){if(this.reset(),this._ident=ce,this._active=this._handlers[ce]||de,this._active.length)for(var ie=this._active.length-1;ie>=0;ie--)this._active[ie].hook(ue);else this._handlerFb(this._ident,"HOOK",ue)},se.prototype.put=function(ce,ue,ie){if(this._active.length)for(var oe=this._active.length-1;oe>=0;oe--)this._active[oe].put(ce,ue,ie);else this._handlerFb(this._ident,"PUT",Ee.utf32ToString(ce,ue,ie))},se.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},se}();ye.DcsParser=ae;var ne=function(){function se(ce){this._handler=ce,this._data="",this._hitLimit=!1}return se.prototype.hook=function(ce){this._params=ce.clone(),this._data="",this._hitLimit=!1},se.prototype.put=function(ce,ue,ie){this._hitLimit||(this._data+=Ee.utf32ToString(ce,ue,ie),this._data.length>pe.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},se.prototype.unhook=function(ce){var ue;return this._hitLimit?ue=!1:ce&&(ue=this._handler(this._data,this._params||new x.Params)),this._params=void 0,this._data="",this._hitLimit=!1,ue},se}();ye.DcsHandler=ne},function(ft,ye,we){"use strict";Object.defineProperty(ye,"__esModule",{value:!0}),ye.removeTerminalFromCache=ye.acquireCharAtlas=void 0;var Ee=we(26),x=we(43),pe=[];ye.acquireCharAtlas=function(de,ae,ne,se,ce){for(var ue=Ee.generateConfig(se,ce,de,ne),ie=0;ie<pe.length;ie++){var oe=(re=pe[ie]).ownedBy.indexOf(ae);if(oe>=0){if(Ee.configEquals(re.config,ue))return re.atlas;re.ownedBy.length===1?(re.atlas.dispose(),pe.splice(ie,1)):re.ownedBy.splice(oe,1);break}}for(ie=0;ie<pe.length;ie++){var re=pe[ie];if(Ee.configEquals(re.config,ue))return re.ownedBy.push(ae),re.atlas}var z={atlas:new x.DynamicCharAtlas(document,ue),config:ue,ownedBy:[ae]};return pe.push(z),z.atlas},ye.removeTerminalFromCache=function(de){for(var ae=0;ae<pe.length;ae++){var ne=pe[ae].ownedBy.indexOf(de);if(ne!==-1){pe[ae].ownedBy.length===1?(pe[ae].atlas.dispose(),pe.splice(ae,1)):pe[ae].ownedBy.splice(ne,1);break}}}},function(ft,ye,we){"use strict";Object.defineProperty(ye,"__esModule",{value:!0}),ye.is256Color=ye.configEquals=ye.generateConfig=void 0;var Ee=we(3);ye.generateConfig=function(x,pe,de,ae){var ne={foreground:ae.foreground,background:ae.background,cursor:void 0,cursorAccent:void 0,selection:void 0,ansi:ae.ansi.slice(0,16)};return{devicePixelRatio:window.devicePixelRatio,scaledCharWidth:x,scaledCharHeight:pe,fontFamily:de.fontFamily,fontSize:de.fontSize,fontWeight:de.fontWeight,fontWeightBold:de.fontWeightBold,allowTransparency:de.allowTransparency,colors:ne}},ye.configEquals=function(x,pe){for(var de=0;de<x.colors.ansi.length;de++)if(x.colors.ansi[de].rgba!==pe.colors.ansi[de].rgba)return!1;return x.devicePixelRatio===pe.devicePixelRatio&&x.fontFamily===pe.fontFamily&&x.fontSize===pe.fontSize&&x.fontWeight===pe.fontWeight&&x.fontWeightBold===pe.fontWeightBold&&x.allowTransparency===pe.allowTransparency&&x.scaledCharWidth===pe.scaledCharWidth&&x.scaledCharHeight===pe.scaledCharHeight&&x.colors.foreground===pe.colors.foreground&&x.colors.background===pe.colors.background},ye.is256Color=function(x){return x<Ee.DEFAULT_COLOR}},function(ft,ye,we){"use strict";Object.defineProperty(ye,"__esModule",{value:!0}),ye.ColorManager=ye.DEFAULT_ANSI_COLORS=void 0;var Ee=we(10),x=we(45),pe=Ee.css.toColor("#ffffff"),de=Ee.css.toColor("#000000"),ae=Ee.css.toColor("#ffffff"),ne=Ee.css.toColor("#000000"),se={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};ye.DEFAULT_ANSI_COLORS=function(){for(var ue=[Ee.css.toColor("#2e3436"),Ee.css.toColor("#cc0000"),Ee.css.toColor("#4e9a06"),Ee.css.toColor("#c4a000"),Ee.css.toColor("#3465a4"),Ee.css.toColor("#75507b"),Ee.css.toColor("#06989a"),Ee.css.toColor("#d3d7cf"),Ee.css.toColor("#555753"),Ee.css.toColor("#ef2929"),Ee.css.toColor("#8ae234"),Ee.css.toColor("#fce94f"),Ee.css.toColor("#729fcf"),Ee.css.toColor("#ad7fa8"),Ee.css.toColor("#34e2e2"),Ee.css.toColor("#eeeeec")],ie=[0,95,135,175,215,255],oe=0;oe<216;oe++){var re=ie[oe/36%6|0],z=ie[oe/6%6|0],a=ie[oe%6];ue.push({css:Ee.channels.toCss(re,z,a),rgba:Ee.channels.toRgba(re,z,a)})}for(oe=0;oe<24;oe++){var y=8+10*oe;ue.push({css:Ee.channels.toCss(y,y,y),rgba:Ee.channels.toRgba(y,y,y)})}return ue}();var ce=function(){function ue(ie,oe){this.allowTransparency=oe;var re=ie.createElement("canvas");re.width=1,re.height=1;var z=re.getContext("2d");if(!z)throw new Error("Could not get rendering context");this._ctx=z,this._ctx.globalCompositeOperation="copy",this._litmusColor=this._ctx.createLinearGradient(0,0,1,1),this._contrastCache=new x.ColorContrastCache,this.colors={foreground:pe,background:de,cursor:ae,cursorAccent:ne,selectionTransparent:se,selectionOpaque:Ee.color.blend(de,se),ansi:ye.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache}}return ue.prototype.onOptionsChange=function(ie){ie==="minimumContrastRatio"&&this._contrastCache.clear()},ue.prototype.setTheme=function(ie){ie===void 0&&(ie={}),this.colors.foreground=this._parseColor(ie.foreground,pe),this.colors.background=this._parseColor(ie.background,de),this.colors.cursor=this._parseColor(ie.cursor,ae,!0),this.colors.cursorAccent=this._parseColor(ie.cursorAccent,ne,!0),this.colors.selectionTransparent=this._parseColor(ie.selection,se,!0),this.colors.selectionOpaque=Ee.color.blend(this.colors.background,this.colors.selectionTransparent),Ee.color.isOpaque(this.colors.selectionTransparent)&&(this.colors.selectionTransparent=Ee.color.opacity(this.colors.selectionTransparent,.3)),this.colors.ansi[0]=this._parseColor(ie.black,ye.DEFAULT_ANSI_COLORS[0]),this.colors.ansi[1]=this._parseColor(ie.red,ye.DEFAULT_ANSI_COLORS[1]),this.colors.ansi[2]=this._parseColor(ie.green,ye.DEFAULT_ANSI_COLORS[2]),this.colors.ansi[3]=this._parseColor(ie.yellow,ye.DEFAULT_ANSI_COLORS[3]),this.colors.ansi[4]=this._parseColor(ie.blue,ye.DEFAULT_ANSI_COLORS[4]),this.colors.ansi[5]=this._parseColor(ie.magenta,ye.DEFAULT_ANSI_COLORS[5]),this.colors.ansi[6]=this._parseColor(ie.cyan,ye.DEFAULT_ANSI_COLORS[6]),this.colors.ansi[7]=this._parseColor(ie.white,ye.DEFAULT_ANSI_COLORS[7]),this.colors.ansi[8]=this._parseColor(ie.brightBlack,ye.DEFAULT_ANSI_COLORS[8]),this.colors.ansi[9]=this._parseColor(ie.brightRed,ye.DEFAULT_ANSI_COLORS[9]),this.colors.ansi[10]=this._parseColor(ie.brightGreen,ye.DEFAULT_ANSI_COLORS[10]),this.colors.ansi[11]=this._parseColor(ie.brightYellow,ye.DEFAULT_ANSI_COLORS[11]),this.colors.ansi[12]=this._parseColor(ie.brightBlue,ye.DEFAULT_ANSI_COLORS[12]),this.colors.ansi[13]=this._parseColor(ie.brightMagenta,ye.DEFAULT_ANSI_COLORS[13]),this.colors.ansi[14]=this._parseColor(ie.brightCyan,ye.DEFAULT_ANSI_COLORS[14]),this.colors.ansi[15]=this._parseColor(ie.brightWhite,ye.DEFAULT_ANSI_COLORS[15]),this._contrastCache.clear()},ue.prototype._parseColor=function(ie,oe,re){if(re===void 0&&(re=this.allowTransparency),ie===void 0)return oe;if(this._ctx.fillStyle=this._litmusColor,this._ctx.fillStyle=ie,typeof this._ctx.fillStyle!="string")return console.warn("Color: "+ie+" is invalid using fallback "+oe.css),oe;this._ctx.fillRect(0,0,1,1);var z=this._ctx.getImageData(0,0,1,1).data;if(z[3]!==255){if(!re)return console.warn("Color: "+ie+" is using transparency, but allowTransparency is false. Using fallback "+oe.css+"."),oe;var a=this._ctx.fillStyle.substring(5,this._ctx.fillStyle.length-1).split(",").map(function(le){return Number(le)}),y=a[0],E=a[1],b=a[2],ee=a[3],te=Math.round(255*ee);return{rgba:Ee.channels.toRgba(y,E,b,te),css:ie}}return{css:this._ctx.fillStyle,rgba:Ee.channels.toRgba(z[0],z[1],z[2],z[3])}},ue}();ye.ColorManager=ce},function(ft,ye,we){"use strict";Object.defineProperty(ye,"__esModule",{value:!0}),ye.throwIfFalsy=void 0,ye.throwIfFalsy=function(Ee){if(!Ee)throw new Error("value must not be falsy");return Ee}},function(ft,ye,we){"use strict";var Ee,x=this&&this.__extends||(Ee=function(ce,ue){return(Ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ie,oe){ie.__proto__=oe}||function(ie,oe){for(var re in oe)oe.hasOwnProperty(re)&&(ie[re]=oe[re])})(ce,ue)},function(ce,ue){function ie(){this.constructor=ce}Ee(ce,ue),ce.prototype=ue===null?Object.create(ue):(ie.prototype=ue.prototype,new ie)});Object.defineProperty(ye,"__esModule",{value:!0}),ye.CharacterJoinerRegistry=ye.JoinedCellData=void 0;var pe=we(6),de=we(3),ae=we(4),ne=function(ce){function ue(ie,oe,re){var z=ce.call(this)||this;return z.content=0,z.combinedData="",z.fg=ie.fg,z.bg=ie.bg,z.combinedData=oe,z._width=re,z}return x(ue,ce),ue.prototype.isCombined=function(){return 2097152},ue.prototype.getWidth=function(){return this._width},ue.prototype.getChars=function(){return this.combinedData},ue.prototype.getCode=function(){return 2097151},ue.prototype.setFromCharData=function(ie){throw new Error("not implemented")},ue.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},ue}(pe.AttributeData);ye.JoinedCellData=ne;var se=function(){function ce(ue){this._bufferService=ue,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new ae.CellData}return ce.prototype.registerCharacterJoiner=function(ue){var ie={id:this._nextCharacterJoinerId++,handler:ue};return this._characterJoiners.push(ie),ie.id},ce.prototype.deregisterCharacterJoiner=function(ue){for(var ie=0;ie<this._characterJoiners.length;ie++)if(this._characterJoiners[ie].id===ue)return this._characterJoiners.splice(ie,1),!0;return!1},ce.prototype.getJoinedCharacters=function(ue){if(this._characterJoiners.length===0)return[];var ie=this._bufferService.buffer.lines.get(ue);if(!ie||ie.length===0)return[];for(var oe=[],re=ie.translateToString(!0),z=0,a=0,y=0,E=ie.getFg(0),b=ie.getBg(0),ee=0;ee<ie.getTrimmedLength();ee++)if(ie.loadCell(ee,this._workCell),this._workCell.getWidth()!==0){if(this._workCell.fg!==E||this._workCell.bg!==b){if(ee-z>1)for(var te=this._getJoinedRanges(re,y,a,ie,z),le=0;le<te.length;le++)oe.push(te[le]);z=ee,y=a,E=this._workCell.fg,b=this._workCell.bg}a+=this._workCell.getChars().length||de.WHITESPACE_CELL_CHAR.length}if(this._bufferService.cols-z>1)for(te=this._getJoinedRanges(re,y,a,ie,z),le=0;le<te.length;le++)oe.push(te[le]);return oe},ce.prototype._getJoinedRanges=function(ue,ie,oe,re,z){for(var a=ue.substring(ie,oe),y=this._characterJoiners[0].handler(a),E=1;E<this._characterJoiners.length;E++)for(var b=this._characterJoiners[E].handler(a),ee=0;ee<b.length;ee++)ce._mergeRanges(y,b[ee]);return this._stringRangesToCellRanges(y,re,z),y},ce.prototype._stringRangesToCellRanges=function(ue,ie,oe){var re=0,z=!1,a=0,y=ue[re];if(y){for(var E=oe;E<this._bufferService.cols;E++){var b=ie.getWidth(E),ee=ie.getString(E).length||de.WHITESPACE_CELL_CHAR.length;if(b!==0){if(!z&&y[0]<=a&&(y[0]=E,z=!0),y[1]<=a){if(y[1]=E,!(y=ue[++re]))break;y[0]<=a?(y[0]=E,z=!0):z=!1}a+=ee}}y&&(y[1]=this._bufferService.cols)}},ce._mergeRanges=function(ue,ie){for(var oe=!1,re=0;re<ue.length;re++){var z=ue[re];if(oe){if(ie[1]<=z[0])return ue[re-1][1]=ie[1],ue;if(ie[1]<=z[1])return ue[re-1][1]=Math.max(ie[1],z[1]),ue.splice(re,1),ue;ue.splice(re,1),re--}else{if(ie[1]<=z[0])return ue.splice(re,0,ie),ue;if(ie[1]<=z[1])return z[0]=Math.min(ie[0],z[0]),ue;ie[0]<z[1]&&(z[0]=Math.min(ie[0],z[0]),oe=!0)}}return oe?ue[ue.length-1][1]=ie[1]:ue.push(ie),ue},ce}();ye.CharacterJoinerRegistry=se},function(ft,ye,we){"use strict";function Ee(x,pe){var de=pe.getBoundingClientRect();return[x.clientX-de.left,x.clientY-de.top]}Object.defineProperty(ye,"__esModule",{value:!0}),ye.getRawByteCoords=ye.getCoords=ye.getCoordsRelativeToElement=void 0,ye.getCoordsRelativeToElement=Ee,ye.getCoords=function(x,pe,de,ae,ne,se,ce,ue){if(ne){var ie=Ee(x,pe);if(ie)return ie[0]=Math.ceil((ie[0]+(ue?se/2:0))/se),ie[1]=Math.ceil(ie[1]/ce),ie[0]=Math.min(Math.max(ie[0],1),de+(ue?1:0)),ie[1]=Math.min(Math.max(ie[1],1),ae),ie}},ye.getRawByteCoords=function(x){if(x)return{x:x[0]+32,y:x[1]+32}}},function(ft,ye,we){"use strict";Object.defineProperty(ye,"__esModule",{value:!0}),ye.RenderDebouncer=void 0;var Ee=function(){function x(pe){this._renderCallback=pe}return x.prototype.dispose=function(){this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},x.prototype.refresh=function(pe,de,ae){var ne=this;this._rowCount=ae,pe=pe!==void 0?pe:0,de=de!==void 0?de:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,pe):pe,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,de):de,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){return ne._innerRefresh()}))},x.prototype._innerRefresh=function(){if(this._rowStart!==void 0&&this._rowEnd!==void 0&&this._rowCount!==void 0){var pe=Math.max(this._rowStart,0),de=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._animationFrame=void 0,this._renderCallback(pe,de)}},x}();ye.RenderDebouncer=Ee},function(ft,ye,we){"use strict";var Ee,x=this&&this.__extends||(Ee=function(de,ae){return(Ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ne,se){ne.__proto__=se}||function(ne,se){for(var ce in se)se.hasOwnProperty(ce)&&(ne[ce]=se[ce])})(de,ae)},function(de,ae){function ne(){this.constructor=de}Ee(de,ae),de.prototype=ae===null?Object.create(ae):(ne.prototype=ae.prototype,new ne)});Object.defineProperty(ye,"__esModule",{value:!0}),ye.ScreenDprMonitor=void 0;var pe=function(de){function ae(){var ne=de!==null&&de.apply(this,arguments)||this;return ne._currentDevicePixelRatio=window.devicePixelRatio,ne}return x(ae,de),ae.prototype.setListener=function(ne){var se=this;this._listener&&this.clearListener(),this._listener=ne,this._outerListener=function(){se._listener&&(se._listener(window.devicePixelRatio,se._currentDevicePixelRatio),se._updateDpr())},this._updateDpr()},ae.prototype.dispose=function(){de.prototype.dispose.call(this),this.clearListener()},ae.prototype._updateDpr=function(){var ne;this._outerListener&&((ne=this._resolutionMediaMatchList)===null||ne===void 0||ne.removeListener(this._outerListener),this._currentDevicePixelRatio=window.devicePixelRatio,this._resolutionMediaMatchList=window.matchMedia("screen and (resolution: "+window.devicePixelRatio+"dppx)"),this._resolutionMediaMatchList.addListener(this._outerListener))},ae.prototype.clearListener=function(){this._resolutionMediaMatchList&&this._listener&&this._outerListener&&(this._resolutionMediaMatchList.removeListener(this._outerListener),this._resolutionMediaMatchList=void 0,this._listener=void 0,this._outerListener=void 0)},ae}(we(2).Disposable);ye.ScreenDprMonitor=pe},function(ft,ye,we){"use strict";Object.defineProperty(ye,"__esModule",{value:!0}),ye.clone=void 0,ye.clone=function Ee(x,pe){if(pe===void 0&&(pe=5),typeof x!="object")return x;var de=Array.isArray(x)?[]:{};for(var ae in x)de[ae]=pe<=1?x[ae]:x[ae]?Ee(x[ae],pe-1):x[ae];return de}},function(ft,ye,we){"use strict";Object.defineProperty(ye,"__esModule",{value:!0}),ye.Terminal=void 0;var Ee=we(4),x=we(35),pe=we(18),de=we(0),ae=we(83),ne=function(){function re(z){this._core=new x.Terminal(z),this._addonManager=new ae.AddonManager}return re.prototype._checkProposedApi=function(){if(!this._core.optionsService.options.allowProposedApi)throw new Error("You must set the allowProposedApi option to true to use proposed API")},Object.defineProperty(re.prototype,"onCursorMove",{get:function(){return this._core.onCursorMove},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"onLineFeed",{get:function(){return this._core.onLineFeed},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"onSelectionChange",{get:function(){return this._core.onSelectionChange},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"onData",{get:function(){return this._core.onData},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"onBinary",{get:function(){return this._core.onBinary},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"onTitleChange",{get:function(){return this._core.onTitleChange},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"onScroll",{get:function(){return this._core.onScroll},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"onKey",{get:function(){return this._core.onKey},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"onRender",{get:function(){return this._core.onRender},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"onResize",{get:function(){return this._core.onResize},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"element",{get:function(){return this._core.element},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"parser",{get:function(){return this._checkProposedApi(),this._parser||(this._parser=new ie(this._core)),this._parser},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"unicode",{get:function(){return this._checkProposedApi(),new oe(this._core)},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"textarea",{get:function(){return this._core.textarea},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"rows",{get:function(){return this._core.rows},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"cols",{get:function(){return this._core.cols},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"buffer",{get:function(){return this._checkProposedApi(),new ce(this._core.buffers)},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"markers",{get:function(){return this._checkProposedApi(),this._core.markers},enumerable:!1,configurable:!0}),re.prototype.blur=function(){this._core.blur()},re.prototype.focus=function(){this._core.focus()},re.prototype.resize=function(z,a){this._verifyIntegers(z,a),this._core.resize(z,a)},re.prototype.open=function(z){this._core.open(z)},re.prototype.attachCustomKeyEventHandler=function(z){this._core.attachCustomKeyEventHandler(z)},re.prototype.registerLinkMatcher=function(z,a,y){return this._checkProposedApi(),this._core.registerLinkMatcher(z,a,y)},re.prototype.deregisterLinkMatcher=function(z){this._checkProposedApi(),this._core.deregisterLinkMatcher(z)},re.prototype.registerLinkProvider=function(z){return this._checkProposedApi(),this._core.registerLinkProvider(z)},re.prototype.registerCharacterJoiner=function(z){return this._checkProposedApi(),this._core.registerCharacterJoiner(z)},re.prototype.deregisterCharacterJoiner=function(z){this._checkProposedApi(),this._core.deregisterCharacterJoiner(z)},re.prototype.registerMarker=function(z){return this._checkProposedApi(),this._verifyIntegers(z),this._core.addMarker(z)},re.prototype.addMarker=function(z){return this.registerMarker(z)},re.prototype.hasSelection=function(){return this._core.hasSelection()},re.prototype.select=function(z,a,y){this._verifyIntegers(z,a,y),this._core.select(z,a,y)},re.prototype.getSelection=function(){return this._core.getSelection()},re.prototype.getSelectionPosition=function(){return this._core.getSelectionPosition()},re.prototype.clearSelection=function(){this._core.clearSelection()},re.prototype.selectAll=function(){this._core.selectAll()},re.prototype.selectLines=function(z,a){this._verifyIntegers(z,a),this._core.selectLines(z,a)},re.prototype.dispose=function(){this._addonManager.dispose(),this._core.dispose()},re.prototype.scrollLines=function(z){this._verifyIntegers(z),this._core.scrollLines(z)},re.prototype.scrollPages=function(z){this._verifyIntegers(z),this._core.scrollPages(z)},re.prototype.scrollToTop=function(){this._core.scrollToTop()},re.prototype.scrollToBottom=function(){this._core.scrollToBottom()},re.prototype.scrollToLine=function(z){this._verifyIntegers(z),this._core.scrollToLine(z)},re.prototype.clear=function(){this._core.clear()},re.prototype.write=function(z,a){this._core.write(z,a)},re.prototype.writeUtf8=function(z,a){this._core.write(z,a)},re.prototype.writeln=function(z,a){this._core.write(z),this._core.write(`\r
|
|
|
`,a)},re.prototype.paste=function(z){this._core.paste(z)},re.prototype.getOption=function(z){return this._core.optionsService.getOption(z)},re.prototype.setOption=function(z,a){this._core.optionsService.setOption(z,a)},re.prototype.refresh=function(z,a){this._verifyIntegers(z,a),this._core.refresh(z,a)},re.prototype.reset=function(){this._core.reset()},re.prototype.loadAddon=function(z){return this._addonManager.loadAddon(this,z)},Object.defineProperty(re,"strings",{get:function(){return pe},enumerable:!1,configurable:!0}),re.prototype._verifyIntegers=function(){for(var z=[],a=0;a<arguments.length;a++)z[a]=arguments[a];for(var y=0,E=z;y<E.length;y++){var b=E[y];if(b===1/0||isNaN(b)||b%1!=0)throw new Error("This API only accepts integers")}},re}();ye.Terminal=ne;var se=function(){function re(z,a){this._buffer=z,this.type=a}return re.prototype.init=function(z){return this._buffer=z,this},Object.defineProperty(re.prototype,"cursorY",{get:function(){return this._buffer.y},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"cursorX",{get:function(){return this._buffer.x},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"viewportY",{get:function(){return this._buffer.ydisp},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"baseY",{get:function(){return this._buffer.ybase},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"length",{get:function(){return this._buffer.lines.length},enumerable:!1,configurable:!0}),re.prototype.getLine=function(z){var a=this._buffer.lines.get(z);if(a)return new ue(a)},re.prototype.getNullCell=function(){return new Ee.CellData},re}(),ce=function(){function re(z){var a=this;this._buffers=z,this._onBufferChange=new de.EventEmitter,this._normal=new se(this._buffers.normal,"normal"),this._alternate=new se(this._buffers.alt,"alternate"),this._buffers.onBufferActivate(function(){return a._onBufferChange.fire(a.active)})}return Object.defineProperty(re.prototype,"onBufferChange",{get:function(){return this._onBufferChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"active",{get:function(){if(this._buffers.active===this._buffers.normal)return this.normal;if(this._buffers.active===this._buffers.alt)return this.alternate;throw new Error("Active buffer is neither normal nor alternate")},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"normal",{get:function(){return this._normal.init(this._buffers.normal)},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"alternate",{get:function(){return this._alternate.init(this._buffers.alt)},enumerable:!1,configurable:!0}),re}(),ue=function(){function re(z){this._line=z}return Object.defineProperty(re.prototype,"isWrapped",{get:function(){return this._line.isWrapped},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"length",{get:function(){return this._line.length},enumerable:!1,configurable:!0}),re.prototype.getCell=function(z,a){if(!(z<0||z>=this._line.length))return a?(this._line.loadCell(z,a),a):this._line.loadCell(z,new Ee.CellData)},re.prototype.translateToString=function(z,a,y){return this._line.translateToString(z,a,y)},re}(),ie=function(){function re(z){this._core=z}return re.prototype.registerCsiHandler=function(z,a){return this._core.addCsiHandler(z,function(y){return a(y.toArray())})},re.prototype.addCsiHandler=function(z,a){return this.registerCsiHandler(z,a)},re.prototype.registerDcsHandler=function(z,a){return this._core.addDcsHandler(z,function(y,E){return a(y,E.toArray())})},re.prototype.addDcsHandler=function(z,a){return this.registerDcsHandler(z,a)},re.prototype.registerEscHandler=function(z,a){return this._core.addEscHandler(z,a)},re.prototype.addEscHandler=function(z,a){return this.registerEscHandler(z,a)},re.prototype.registerOscHandler=function(z,a){return this._core.addOscHandler(z,a)},re.prototype.addOscHandler=function(z,a){return this.registerOscHandler(z,a)},re}(),oe=function(){function re(z){this._core=z}return re.prototype.register=function(z){this._core.unicodeService.register(z)},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(z){this._core.unicodeService.activeVersion=z},enumerable:!1,configurable:!0}),re}()},function(ft,ye,we){"use strict";var Ee,x=this&&this.__extends||(Ee=function(je,Ce){return(Ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ie,ke){Ie.__proto__=ke}||function(Ie,ke){for(var $e in ke)ke.hasOwnProperty($e)&&(Ie[$e]=ke[$e])})(je,Ce)},function(je,Ce){function Ie(){this.constructor=je}Ee(je,Ce),je.prototype=Ce===null?Object.create(Ce):(Ie.prototype=Ce.prototype,new Ie)});Object.defineProperty(ye,"__esModule",{value:!0}),ye.Terminal=void 0;var pe=we(36),de=we(37),ae=we(38),ne=we(12),se=we(19),ce=we(40),ue=we(50),ie=we(51),oe=we(11),re=we(7),z=we(18),a=we(54),y=we(55),E=we(56),b=we(57),ee=we(59),te=we(0),le=we(16),fe=we(27),he=we(60),me=we(5),ge=we(61),Se=we(62),ve=we(63),be=we(64),Pe=we(65),Te=typeof window!="undefined"?window.document:null,_e=function(je){function Ce(Ie){Ie===void 0&&(Ie={});var ke=je.call(this,Ie)||this;return ke.browser=oe,ke._keyDownHandled=!1,ke._onCursorMove=new te.EventEmitter,ke._onKey=new te.EventEmitter,ke._onRender=new te.EventEmitter,ke._onSelectionChange=new te.EventEmitter,ke._onTitleChange=new te.EventEmitter,ke._onFocus=new te.EventEmitter,ke._onBlur=new te.EventEmitter,ke._onA11yCharEmitter=new te.EventEmitter,ke._onA11yTabEmitter=new te.EventEmitter,ke._setup(),ke.linkifier=ke._instantiationService.createInstance(ue.Linkifier),ke.linkifier2=ke.register(ke._instantiationService.createInstance(ve.Linkifier2)),ke.register(ke._inputHandler.onRequestBell(function(){return ke.bell()})),ke.register(ke._inputHandler.onRequestRefreshRows(function($e,Ne){return ke.refresh($e,Ne)})),ke.register(ke._inputHandler.onRequestReset(function(){return ke.reset()})),ke.register(ke._inputHandler.onRequestScroll(function($e,Ne){return ke.scroll($e,Ne||void 0)})),ke.register(ke._inputHandler.onRequestWindowsOptionsReport(function($e){return ke._reportWindowsOptions($e)})),ke.register(te.forwardEvent(ke._inputHandler.onCursorMove,ke._onCursorMove)),ke.register(te.forwardEvent(ke._inputHandler.onTitleChange,ke._onTitleChange)),ke.register(te.forwardEvent(ke._inputHandler.onA11yChar,ke._onA11yCharEmitter)),ke.register(te.forwardEvent(ke._inputHandler.onA11yTab,ke._onA11yTabEmitter)),ke.register(ke._bufferService.onResize(function($e){return ke._afterResize($e.cols,$e.rows)})),ke}return x(Ce,je),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 Ie,ke,$e;this._isDisposed||(je.prototype.dispose.call(this),(Ie=this._renderService)===null||Ie===void 0||Ie.dispose(),this._customKeyEventHandler=void 0,this.write=function(){},($e=(ke=this.element)===null||ke===void 0?void 0:ke.parentNode)===null||$e===void 0||$e.removeChild(this.element))},Ce.prototype._setup=function(){je.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(Ie){var ke,$e,Ne,nt;switch(je.prototype._updateOptions.call(this,Ie),Ie){case"fontFamily":case"fontSize":(ke=this._renderService)===null||ke===void 0||ke.clear(),($e=this._charSizeService)===null||$e===void 0||$e.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":(Ne=this.viewport)===null||Ne===void 0||Ne.syncScrollArea();break;case"screenReaderMode":this.optionsService.options.screenReaderMode?!this._accessibilityManager&&this._renderService&&(this._accessibilityManager=new E.AccessibilityManager(this,this._renderService)):((nt=this._accessibilityManager)===null||nt===void 0||nt.dispose(),this._accessibilityManager=void 0);break;case"tabStopWidth":this.buffers.setupTabStops();break;case"theme":this._setTheme(this.optionsService.options.theme)}},Ce.prototype._onTextAreaFocus=function(Ie){this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(ne.C0.ESC+"[I"),this.updateCursorStyle(Ie),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()},Ce.prototype.blur=function(){var Ie;return(Ie=this.textarea)===null||Ie===void 0?void 0:Ie.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 Ie=Math.ceil(this._charSizeService.height*this.optionsService.options.lineHeight),ke=this._bufferService.buffer.y*Ie,$e=this._bufferService.buffer.x*this._charSizeService.width;this.textarea.style.left=$e+"px",this.textarea.style.top=ke+"px",this.textarea.style.width=this._charSizeService.width+"px",this.textarea.style.height=Ie+"px",this.textarea.style.lineHeight=Ie+"px",this.textarea.style.zIndex="-5"}},Ce.prototype._initGlobal=function(){var Ie=this;this._bindKeys(),this.register(re.addDisposableDomListener(this.element,"copy",function($e){Ie.hasSelection()&&ae.copyHandler($e,Ie._selectionService)}));var ke=function($e){return ae.handlePasteEvent($e,Ie.textarea,Ie._coreService)};this.register(re.addDisposableDomListener(this.textarea,"paste",ke)),this.register(re.addDisposableDomListener(this.element,"paste",ke)),oe.isFirefox?this.register(re.addDisposableDomListener(this.element,"mousedown",function($e){$e.button===2&&ae.rightClickHandler($e,Ie.textarea,Ie.screenElement,Ie._selectionService,Ie.options.rightClickSelectsWord)})):this.register(re.addDisposableDomListener(this.element,"contextmenu",function($e){ae.rightClickHandler($e,Ie.textarea,Ie.screenElement,Ie._selectionService,Ie.options.rightClickSelectsWord)})),oe.isLinux&&this.register(re.addDisposableDomListener(this.element,"auxclick",function($e){$e.button===1&&ae.moveTextAreaUnderMouseCursor($e,Ie.textarea,Ie.screenElement)}))},Ce.prototype._bindKeys=function(){var Ie=this;this.register(re.addDisposableDomListener(this.textarea,"keyup",function(ke){return Ie._keyUp(ke)},!0)),this.register(re.addDisposableDomListener(this.textarea,"keydown",function(ke){return Ie._keyDown(ke)},!0)),this.register(re.addDisposableDomListener(this.textarea,"keypress",function(ke){return Ie._keyPress(ke)},!0)),this.register(re.addDisposableDomListener(this.textarea,"compositionstart",function(){return Ie._compositionHelper.compositionstart()})),this.register(re.addDisposableDomListener(this.textarea,"compositionupdate",function(ke){return Ie._compositionHelper.compositionupdate(ke)})),this.register(re.addDisposableDomListener(this.textarea,"compositionend",function(){return Ie._compositionHelper.compositionend()})),this.register(this.onRender(function(){return Ie._compositionHelper.updateCompositionElements()})),this.register(this.onRender(function(ke){return Ie._queueLinkification(ke.start,ke.end)}))},Ce.prototype.open=function(Ie){var ke=this;if(!Ie)throw new Error("Terminal requires a parent element.");Te.body.contains(Ie)||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),this._document=Ie.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"),Ie.appendChild(this.element);var $e=Te.createDocumentFragment();this._viewportElement=Te.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),$e.appendChild(this._viewportElement),this._viewportScrollArea=Te.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=Te.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=Te.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),$e.appendChild(this.screenElement),this.textarea=Te.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",z.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 ke._onTextAreaFocus(qe)})),this.register(re.addDisposableDomListener(this.textarea,"blur",function(){return ke._onTextAreaBlur()})),this._helperContainer.appendChild(this.textarea);var Ne=this._instantiationService.createInstance(be.CoreBrowserService,this.textarea);this._instantiationService.setService(me.ICoreBrowserService,Ne),this._charSizeService=this._instantiationService.createInstance(ge.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(me.ICharSizeService,this._charSizeService),this._compositionView=Te.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($e),this._theme=this.options.theme||this._theme,this._colorManager=new fe.ColorManager(Te,this.options.allowTransparency),this.register(this.optionsService.onOptionChange(function(qe){return ke._colorManager.onOptionsChange(qe)})),this._colorManager.setTheme(this._theme);var nt=this._createRenderer();this._renderService=this.register(this._instantiationService.createInstance(he.RenderService,nt,this.rows,this.screenElement)),this._instantiationService.setService(me.IRenderService,this._renderService),this.register(this._renderService.onRenderedBufferChange(function(qe){return ke._onRender.fire(qe)})),this.onResize(function(qe){return ke._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,Je){return ke.scrollLines(qe,Je)},this._viewportElement,this._viewportScrollArea),this.viewport.onThemeChange(this._colorManager.colors),this.register(this._inputHandler.onRequestSyncScrollBar(function(){return ke.viewport.syncScrollArea()})),this.register(this.viewport),this.register(this.onCursorMove(function(){ke._renderService.onCursorMove(),ke._syncTextArea()})),this.register(this.onResize(function(){return ke._renderService.onResize(ke.cols,ke.rows)})),this.register(this.onBlur(function(){return ke._renderService.onBlur()})),this.register(this.onFocus(function(){return ke._renderService.onFocus()})),this.register(this._renderService.onDimensionsChange(function(){return ke.viewport.syncScrollArea()})),this._selectionService=this.register(this._instantiationService.createInstance(ie.SelectionService,this.element,this.screenElement)),this._instantiationService.setService(me.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines(function(qe){return ke.scrollLines(qe.amount,qe.suppressScrollEvent)})),this.register(this._selectionService.onSelectionChange(function(){return ke._onSelectionChange.fire()})),this.register(this._selectionService.onRequestRedraw(function(qe){return ke._renderService.onSelectionChanged(qe.start,qe.end,qe.columnSelectMode)})),this.register(this._selectionService.onLinuxMouseSelection(function(qe){ke.textarea.value=qe,ke.textarea.focus(),ke.textarea.select()})),this.register(this.onScroll(function(){ke.viewport.syncScrollArea(),ke._selectionService.refresh()})),this.register(re.addDisposableDomListener(this._viewportElement,"scroll",function(){return ke._selectionService.refresh()})),this._mouseZoneManager=this._instantiationService.createInstance(y.MouseZoneManager,this.element,this.screenElement),this.register(this._mouseZoneManager),this.register(this.onScroll(function(){return ke._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 ke._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 E.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(Ie){var ke,$e,Ne;this._theme=Ie,(ke=this._colorManager)===null||ke===void 0||ke.setTheme(Ie),($e=this._renderService)===null||$e===void 0||$e.setColors(this._colorManager.colors),(Ne=this.viewport)===null||Ne===void 0||Ne.onThemeChange(this._colorManager.colors)},Ce.prototype.bindMouse=function(){var Ie=this,ke=this,$e=this.element;function Ne(Fe){var Ue,at,Xe=ke._mouseService.getRawByteCoords(Fe,ke.screenElement,ke.cols,ke.rows);if(!Xe)return!1;switch(Fe.overrideType||Fe.type){case"mousemove":at=32,Fe.buttons===void 0?(Ue=3,Fe.button!==void 0&&(Ue=Fe.button<3?Fe.button:3)):Ue=1&Fe.buttons?0:4&Fe.buttons?1:2&Fe.buttons?2:3;break;case"mouseup":at=0,Ue=Fe.button<3?Fe.button:3;break;case"mousedown":at=1,Ue=Fe.button<3?Fe.button:3;break;case"wheel":Fe.deltaY!==0&&(at=Fe.deltaY<0?0:1),Ue=4;break;default:return!1}return!(at===void 0||Ue===void 0||Ue>4)&&ke._coreMouseService.triggerMouseEvent({col:Xe.x-33,row:Xe.y-33,button:Ue,action:at,ctrl:Fe.ctrlKey,alt:Fe.altKey,shift:Fe.shiftKey})}var nt={mouseup:null,wheel:null,mousedrag:null,mousemove:null},qe=function(Fe){return Ne(Fe),Fe.buttons||(Ie._document.removeEventListener("mouseup",nt.mouseup),nt.mousedrag&&Ie._document.removeEventListener("mousemove",nt.mousedrag)),Ie.cancel(Fe)},Je=function(Fe){return Ne(Fe),Fe.preventDefault(),Ie.cancel(Fe)},Ye=function(Fe){Fe.buttons&&Ne(Fe)},We=function(Fe){Fe.buttons||Ne(Fe)};this.register(this._coreMouseService.onProtocolChange(function(Fe){Fe?(Ie.optionsService.options.logLevel==="debug"&&Ie._logService.debug("Binding to mouse events:",Ie._coreMouseService.explainEvents(Fe)),Ie.element.classList.add("enable-mouse-events"),Ie._selectionService.disable()):(Ie._logService.debug("Unbinding from mouse events."),Ie.element.classList.remove("enable-mouse-events"),Ie._selectionService.enable()),8&Fe?nt.mousemove||($e.addEventListener("mousemove",We),nt.mousemove=We):($e.removeEventListener("mousemove",nt.mousemove),nt.mousemove=null),16&Fe?nt.wheel||($e.addEventListener("wheel",Je,{passive:!1}),nt.wheel=Je):($e.removeEventListener("wheel",nt.wheel),nt.wheel=null),2&Fe?nt.mouseup||(nt.mouseup=qe):(Ie._document.removeEventListener("mouseup",nt.mouseup),nt.mouseup=null),4&Fe?nt.mousedrag||(nt.mousedrag=Ye):(Ie._document.removeEventListener("mousemove",nt.mousedrag),nt.mousedrag=null)})),this._coreMouseService.activeProtocol=this._coreMouseService.activeProtocol,this.register(re.addDisposableDomListener($e,"mousedown",function(Fe){if(Fe.preventDefault(),Ie.focus(),Ie._coreMouseService.areMouseEventsActive&&!Ie._selectionService.shouldForceSelection(Fe))return Ne(Fe),nt.mouseup&&Ie._document.addEventListener("mouseup",nt.mouseup),nt.mousedrag&&Ie._document.addEventListener("mousemove",nt.mousedrag),Ie.cancel(Fe)})),this.register(re.addDisposableDomListener($e,"wheel",function(Fe){if(!nt.wheel){if(!Ie.buffer.hasScrollback){var Ue=Ie.viewport.getLinesScrolled(Fe);if(Ue===0)return;for(var at=ne.C0.ESC+(Ie._coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(Fe.deltaY<0?"A":"B"),Xe="",ut=0;ut<Math.abs(Ue);ut++)Xe+=at;Ie._coreService.triggerDataEvent(Xe,!0)}}},{passive:!0})),this.register(re.addDisposableDomListener($e,"wheel",function(Fe){if(!nt.wheel)return Ie.viewport.onWheel(Fe)?void 0:Ie.cancel(Fe)},{passive:!1})),this.register(re.addDisposableDomListener($e,"touchstart",function(Fe){if(!Ie._coreMouseService.areMouseEventsActive)return Ie.viewport.onTouchStart(Fe),Ie.cancel(Fe)},{passive:!0})),this.register(re.addDisposableDomListener($e,"touchmove",function(Fe){if(!Ie._coreMouseService.areMouseEventsActive)return Ie.viewport.onTouchMove(Fe)?void 0:Ie.cancel(Fe)},{passive:!1}))},Ce.prototype.refresh=function(Ie,ke){var $e;($e=this._renderService)===null||$e===void 0||$e.refreshRows(Ie,ke)},Ce.prototype._queueLinkification=function(Ie,ke){var $e;($e=this.linkifier)===null||$e===void 0||$e.linkifyRows(Ie,ke)},Ce.prototype.updateCursorStyle=function(Ie){this._selectionService&&this._selectionService.shouldColumnSelect(Ie)?this.element.classList.add("column-select"):this.element.classList.remove("column-select")},Ce.prototype._showCursor=function(){this._coreService.isCursorInitialized||(this._coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))},Ce.prototype.scrollLines=function(Ie,ke){je.prototype.scrollLines.call(this,Ie,ke),this.refresh(0,this.rows-1)},Ce.prototype.paste=function(Ie){ae.paste(Ie,this.textarea,this._coreService)},Ce.prototype.attachCustomKeyEventHandler=function(Ie){this._customKeyEventHandler=Ie},Ce.prototype.registerLinkMatcher=function(Ie,ke,$e){var Ne=this.linkifier.registerLinkMatcher(Ie,ke,$e);return this.refresh(0,this.rows-1),Ne},Ce.prototype.deregisterLinkMatcher=function(Ie){this.linkifier.deregisterLinkMatcher(Ie)&&this.refresh(0,this.rows-1)},Ce.prototype.registerLinkProvider=function(Ie){return this.linkifier2.registerLinkProvider(Ie)},Ce.prototype.registerCharacterJoiner=function(Ie){var ke=this._renderService.registerCharacterJoiner(Ie);return this.refresh(0,this.rows-1),ke},Ce.prototype.deregisterCharacterJoiner=function(Ie){this._renderService.deregisterCharacterJoiner(Ie)&&this.refresh(0,this.rows-1)},Object.defineProperty(Ce.prototype,"markers",{get:function(){return this.buffer.markers},enumerable:!1,configurable:!0}),Ce.prototype.addMarker=function(Ie){if(this.buffer===this.buffers.normal)return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+Ie)},Ce.prototype.hasSelection=function(){return!!this._selectionService&&this._selectionService.hasSelection},Ce.prototype.select=function(Ie,ke,$e){this._selectionService.setSelection(Ie,ke,$e)},Ce.prototype.getSelection=function(){return this._selectionService?this._selectionService.selectionText:""},Ce.prototype.getSelectionPosition=function(){if(this._selectionService&&this._selectionService.hasSelection)return{startColumn:this._selectionService.selectionStart[0],startRow:this._selectionService.selectionStart[1],endColumn:this._selectionService.selectionEnd[0],endRow:this._selectionService.selectionEnd[1]}},Ce.prototype.clearSelection=function(){var Ie;(Ie=this._selectionService)===null||Ie===void 0||Ie.clearSelection()},Ce.prototype.selectAll=function(){var Ie;(Ie=this._selectionService)===null||Ie===void 0||Ie.selectAll()},Ce.prototype.selectLines=function(Ie,ke){var $e;($e=this._selectionService)===null||$e===void 0||$e.selectLines(Ie,ke)},Ce.prototype._keyDown=function(Ie){if(this._keyDownHandled=!1,this._customKeyEventHandler&&this._customKeyEventHandler(Ie)===!1)return!1;if(!this._compositionHelper.keydown(Ie))return this.buffer.ybase!==this.buffer.ydisp&&this.scrollToBottom(),!1;var ke=ee.evaluateKeyboardEvent(Ie,this._coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(Ie),ke.type===3||ke.type===2){var $e=this.rows-1;return this.scrollLines(ke.type===2?-$e:$e),this.cancel(Ie,!0)}return ke.type===1&&this.selectAll(),!!this._isThirdLevelShift(this.browser,Ie)||(ke.cancel&&this.cancel(Ie,!0),!ke.key||(ke.key!==ne.C0.ETX&&ke.key!==ne.C0.CR||(this.textarea.value=""),this._onKey.fire({key:ke.key,domEvent:Ie}),this._showCursor(),this._coreService.triggerDataEvent(ke.key,!0),this.optionsService.options.screenReaderMode?void(this._keyDownHandled=!0):this.cancel(Ie,!0)))},Ce.prototype._isThirdLevelShift=function(Ie,ke){var $e=Ie.isMac&&!this.options.macOptionIsMeta&&ke.altKey&&!ke.ctrlKey&&!ke.metaKey||Ie.isWindows&&ke.altKey&&ke.ctrlKey&&!ke.metaKey;return ke.type==="keypress"?$e:$e&&(!ke.keyCode||ke.keyCode>47)},Ce.prototype._keyUp=function(Ie){this._customKeyEventHandler&&this._customKeyEventHandler(Ie)===!1||(function(ke){return ke.keyCode===16||ke.keyCode===17||ke.keyCode===18}(Ie)||this.focus(),this.updateCursorStyle(Ie))},Ce.prototype._keyPress=function(Ie){var ke;if(this._keyDownHandled||this._customKeyEventHandler&&this._customKeyEventHandler(Ie)===!1)return!1;if(this.cancel(Ie),Ie.charCode)ke=Ie.charCode;else if(Ie.which===null||Ie.which===void 0)ke=Ie.keyCode;else{if(Ie.which===0||Ie.charCode===0)return!1;ke=Ie.which}return!(!ke||(Ie.altKey||Ie.ctrlKey||Ie.metaKey)&&!this._isThirdLevelShift(this.browser,Ie))&&(ke=String.fromCharCode(ke),this._onKey.fire({key:ke,domEvent:Ie}),this._showCursor(),this._coreService.triggerDataEvent(ke,!0),!0)},Ce.prototype.bell=function(){this._soundBell()&&this._soundService.playBellSound()},Ce.prototype.resize=function(Ie,ke){Ie!==this.cols||ke!==this.rows?je.prototype.resize.call(this,Ie,ke):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()},Ce.prototype._afterResize=function(Ie,ke){var $e,Ne;($e=this._charSizeService)===null||$e===void 0||$e.measure(),(Ne=this.viewport)===null||Ne===void 0||Ne.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 Ie=1;Ie<this.rows;Ie++)this.buffer.lines.push(this.buffer.getBlankLine(le.DEFAULT_ATTR_DATA));this.refresh(0,this.rows-1),this._onScroll.fire(this.buffer.ydisp)}},Ce.prototype.reset=function(){var Ie,ke;this.options.rows=this.rows,this.options.cols=this.cols;var $e=this._customKeyEventHandler;this._setup(),je.prototype.reset.call(this),(Ie=this._selectionService)===null||Ie===void 0||Ie.reset(),this._customKeyEventHandler=$e,this.refresh(0,this.rows-1),(ke=this.viewport)===null||ke===void 0||ke.syncScrollArea()},Ce.prototype._reportWindowsOptions=function(Ie){if(this._renderService)switch(Ie){case se.WindowsOptionsReportType.GET_WIN_SIZE_PIXELS:var ke=this._renderService.dimensions.scaledCanvasWidth.toFixed(0),$e=this._renderService.dimensions.scaledCanvasHeight.toFixed(0);this._coreService.triggerDataEvent(ne.C0.ESC+"[4;"+$e+";"+ke+"t");break;case se.WindowsOptionsReportType.GET_CELL_SIZE_PIXELS:var Ne=this._renderService.dimensions.scaledCellWidth.toFixed(0),nt=this._renderService.dimensions.scaledCellHeight.toFixed(0);this._coreService.triggerDataEvent(ne.C0.ESC+"[6;"+nt+";"+Ne+"t")}},Ce.prototype.cancel=function(Ie,ke){if(this.options.cancelEvents||ke)return Ie.preventDefault(),Ie.stopPropagation(),!1},Ce.prototype._visualBell=function(){return!1},Ce.prototype._soundBell=function(){return this.options.bellStyle==="sound"},Ce}(Pe.CoreTerminal);ye.Terminal=_e},function(ft,ye,we){"use strict";var Ee=this&&this.__decorate||function(ne,se,ce,ue){var ie,oe=arguments.length,re=oe<3?se:ue===null?ue=Object.getOwnPropertyDescriptor(se,ce):ue;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")re=Reflect.decorate(ne,se,ce,ue);else for(var z=ne.length-1;z>=0;z--)(ie=ne[z])&&(re=(oe<3?ie(re):oe>3?ie(se,ce,re):ie(se,ce))||re);return oe>3&&re&&Object.defineProperty(se,ce,re),re},x=this&&this.__param||function(ne,se){return function(ce,ue){se(ce,ue,ne)}};Object.defineProperty(ye,"__esModule",{value:!0}),ye.CompositionHelper=void 0;var pe=we(5),de=we(1),ae=function(){function ne(se,ce,ue,ie,oe,re){this._textarea=se,this._compositionView=ce,this._bufferService=ue,this._optionsService=ie,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(se){var ce=this;this._compositionView.textContent=se.data,this.updateCompositionElements(),setTimeout(function(){ce._compositionPosition.end=ce._textarea.value.length},0)},ne.prototype.compositionend=function(){this._finalizeComposition(!0)},ne.prototype.keydown=function(se){if(this._isComposing||this._isSendingComposition){if(se.keyCode===229||se.keyCode===16||se.keyCode===17||se.keyCode===18)return!1;this._finalizeComposition(!1)}return se.keyCode!==229||(this._handleAnyTextareaChanges(),!1)},ne.prototype._finalizeComposition=function(se){var ce=this;if(this._compositionView.classList.remove("active"),this._isComposing=!1,se){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 ie=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(ie,!0)}},ne.prototype._handleAnyTextareaChanges=function(){var se=this,ce=this._textarea.value;setTimeout(function(){if(!se._isComposing){var ue=se._textarea.value.replace(ce,"");ue.length>0&&se._coreService.triggerDataEvent(ue,!0)}},0)},ne.prototype.updateCompositionElements=function(se){var ce=this;if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){var ue=Math.ceil(this._charSizeService.height*this._optionsService.options.lineHeight),ie=this._bufferService.buffer.y*ue,oe=this._bufferService.buffer.x*this._charSizeService.width;this._compositionView.style.left=oe+"px",this._compositionView.style.top=ie+"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=ie+"px",this._textarea.style.width=re.width+"px",this._textarea.style.height=re.height+"px",this._textarea.style.lineHeight=re.height+"px"}se||setTimeout(function(){return ce.updateCompositionElements(!0)},0)}},ne=Ee([x(2,de.IBufferService),x(3,de.IOptionsService),x(4,pe.ICharSizeService),x(5,de.ICoreService)],ne)}();ye.CompositionHelper=ae},function(ft,ye,we){"use strict";var Ee,x=this&&this.__extends||(Ee=function(ie,oe){return(Ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(re,z){re.__proto__=z}||function(re,z){for(var a in z)z.hasOwnProperty(a)&&(re[a]=z[a])})(ie,oe)},function(ie,oe){function re(){this.constructor=ie}Ee(ie,oe),ie.prototype=oe===null?Object.create(oe):(re.prototype=oe.prototype,new re)}),pe=this&&this.__decorate||function(ie,oe,re,z){var a,y=arguments.length,E=y<3?oe:z===null?z=Object.getOwnPropertyDescriptor(oe,re):z;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(ie,oe,re,z);else for(var b=ie.length-1;b>=0;b--)(a=ie[b])&&(E=(y<3?a(E):y>3?a(oe,re,E):a(oe,re))||E);return y>3&&E&&Object.defineProperty(oe,re,E),E},de=this&&this.__param||function(ie,oe){return function(re,z){oe(re,z,ie)}};Object.defineProperty(ye,"__esModule",{value:!0}),ye.Viewport=void 0;var ae=we(2),ne=we(7),se=we(5),ce=we(1),ue=function(ie){function oe(re,z,a,y,E,b,ee){var te=ie.call(this)||this;return te._scrollLines=re,te._viewportElement=z,te._scrollArea=a,te._bufferService=y,te._optionsService=E,te._charSizeService=b,te._renderService=ee,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 x(oe,ie),oe.prototype.onThemeChange=function(re){this._viewportElement.style.backgroundColor=re.background.css},oe.prototype._refresh=function(re){var z=this;if(re)return this._innerRefresh(),void(this._refreshAnimationFrame!==null&&cancelAnimationFrame(this._refreshAnimationFrame));this._refreshAnimationFrame===null&&(this._refreshAnimationFrame=requestAnimationFrame(function(){return z._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 z=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==z&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=z),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 z=this._bufferService.buffer.ydisp*this._currentRowHeight;this._lastScrollTop===z&&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 z=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._scrollLines(z,!0)}},oe.prototype._bubbleScroll=function(re,z){var a=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(z<0&&this._viewportElement.scrollTop!==0||z>0&&a<this._lastRecordedBufferHeight)||(re.cancelable&&re.preventDefault(),!1)},oe.prototype.onWheel=function(re){var z=this._getPixelsScrolled(re);return z!==0&&(this._viewportElement.scrollTop+=z,this._bubbleScroll(re,z))},oe.prototype._getPixelsScrolled=function(re){if(re.deltaY===0)return 0;var z=this._applyScrollModifier(re.deltaY,re);return re.deltaMode===WheelEvent.DOM_DELTA_LINE?z*=this._currentRowHeight:re.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(z*=this._currentRowHeight*this._bufferService.rows),z},oe.prototype.getLinesScrolled=function(re){if(re.deltaY===0)return 0;var z=this._applyScrollModifier(re.deltaY,re);return re.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(z/=this._currentRowHeight+0,this._wheelPartialScroll+=z,z=Math.floor(Math.abs(this._wheelPartialScroll))*(this._wheelPartialScroll>0?1:-1),this._wheelPartialScroll%=1):re.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(z*=this._bufferService.rows),z},oe.prototype._applyScrollModifier=function(re,z){var a=this._optionsService.options.fastScrollModifier;return a==="alt"&&z.altKey||a==="ctrl"&&z.ctrlKey||a==="shift"&&z.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 z=this._lastTouchY-re.touches[0].pageY;return this._lastTouchY=re.touches[0].pageY,z!==0&&(this._viewportElement.scrollTop+=z,this._bubbleScroll(re,z))},oe=pe([de(3,ce.IBufferService),de(4,ce.IOptionsService),de(5,se.ICharSizeService),de(6,se.IRenderService)],oe)}(ae.Disposable);ye.Viewport=ue},function(ft,ye,we){"use strict";function Ee(ae){return ae.replace(/\r?\n/g,"\r")}function x(ae,ne){return ne?"\x1B[200~"+ae+"\x1B[201~":ae}function pe(ae,ne,se){ae=x(ae=Ee(ae),se.decPrivateModes.bracketedPasteMode),se.triggerDataEvent(ae,!0),ne.value=""}function de(ae,ne,se){var ce=se.getBoundingClientRect(),ue=ae.clientX-ce.left-10,ie=ae.clientY-ce.top-10;ne.style.width="20px",ne.style.height="20px",ne.style.left=ue+"px",ne.style.top=ie+"px",ne.style.zIndex="1000",ne.focus()}Object.defineProperty(ye,"__esModule",{value:!0}),ye.rightClickHandler=ye.moveTextAreaUnderMouseCursor=ye.paste=ye.handlePasteEvent=ye.copyHandler=ye.bracketTextForPaste=ye.prepareTextForTerminal=void 0,ye.prepareTextForTerminal=Ee,ye.bracketTextForPaste=x,ye.copyHandler=function(ae,ne){ae.clipboardData&&ae.clipboardData.setData("text/plain",ne.selectionText),ae.preventDefault()},ye.handlePasteEvent=function(ae,ne,se){ae.stopPropagation(),ae.clipboardData&&pe(ae.clipboardData.getData("text/plain"),ne,se)},ye.paste=pe,ye.moveTextAreaUnderMouseCursor=de,ye.rightClickHandler=function(ae,ne,se,ce,ue){de(ae,ne,se),ue&&!ce.isClickInSelection(ae)&&ce.selectWordAtCursor(ae),ne.value=ce.selectionText,ne.select()}},function(ft,ye,we){"use strict";var Ee,x=this&&this.__extends||(Ee=function(ie,oe){return(Ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(re,z){re.__proto__=z}||function(re,z){for(var a in z)z.hasOwnProperty(a)&&(re[a]=z[a])})(ie,oe)},function(ie,oe){function re(){this.constructor=ie}Ee(ie,oe),ie.prototype=oe===null?Object.create(oe):(re.prototype=oe.prototype,new re)});Object.defineProperty(ye,"__esModule",{value:!0}),ye.EscapeSequenceParser=ye.VT500_TRANSITION_TABLE=ye.TransitionTable=void 0;var pe=we(2),de=we(15),ae=we(21),ne=we(22),se=we(24),ce=function(){function ie(oe){this.table=new Uint8Array(oe)}return ie.prototype.setDefault=function(oe,re){de.fill(this.table,oe<<4|re)},ie.prototype.add=function(oe,re,z,a){this.table[re<<8|oe]=z<<4|a},ie.prototype.addMany=function(oe,re,z,a){for(var y=0;y<oe.length;y++)this.table[re<<8|oe[y]]=z<<4|a},ie}();ye.TransitionTable=ce,ye.VT500_TRANSITION_TABLE=function(){var ie=new ce(4095),oe=Array.apply(null,Array(256)).map(function(b,ee){return ee}),re=function(b,ee){return oe.slice(b,ee)},z=re(32,127),a=re(0,24);a.push(25),a.push.apply(a,re(28,32));var y,E=re(0,14);for(y in ie.setDefault(1,0),ie.addMany(z,0,2,0),E)ie.addMany([24,26,153,154],y,3,0),ie.addMany(re(128,144),y,3,0),ie.addMany(re(144,152),y,3,0),ie.add(156,y,0,0),ie.add(27,y,11,1),ie.add(157,y,4,8),ie.addMany([152,158,159],y,0,7),ie.add(155,y,11,3),ie.add(144,y,11,9);return ie.addMany(a,0,3,0),ie.addMany(a,1,3,1),ie.add(127,1,0,1),ie.addMany(a,8,0,8),ie.addMany(a,3,3,3),ie.add(127,3,0,3),ie.addMany(a,4,3,4),ie.add(127,4,0,4),ie.addMany(a,6,3,6),ie.addMany(a,5,3,5),ie.add(127,5,0,5),ie.addMany(a,2,3,2),ie.add(127,2,0,2),ie.add(93,1,4,8),ie.addMany(z,8,5,8),ie.add(127,8,5,8),ie.addMany([156,27,24,26,7],8,6,0),ie.addMany(re(28,32),8,0,8),ie.addMany([88,94,95],1,0,7),ie.addMany(z,7,0,7),ie.addMany(a,7,0,7),ie.add(156,7,0,0),ie.add(127,7,0,7),ie.add(91,1,11,3),ie.addMany(re(64,127),3,7,0),ie.addMany(re(48,60),3,8,4),ie.addMany([60,61,62,63],3,9,4),ie.addMany(re(48,60),4,8,4),ie.addMany(re(64,127),4,7,0),ie.addMany([60,61,62,63],4,0,6),ie.addMany(re(32,64),6,0,6),ie.add(127,6,0,6),ie.addMany(re(64,127),6,0,0),ie.addMany(re(32,48),3,9,5),ie.addMany(re(32,48),5,9,5),ie.addMany(re(48,64),5,0,6),ie.addMany(re(64,127),5,7,0),ie.addMany(re(32,48),4,9,5),ie.addMany(re(32,48),1,9,2),ie.addMany(re(32,48),2,9,2),ie.addMany(re(48,127),2,10,0),ie.addMany(re(48,80),1,10,0),ie.addMany(re(81,88),1,10,0),ie.addMany([89,90,92],1,10,0),ie.addMany(re(96,127),1,10,0),ie.add(80,1,11,9),ie.addMany(a,9,0,9),ie.add(127,9,0,9),ie.addMany(re(28,32),9,0,9),ie.addMany(re(32,48),9,9,12),ie.addMany(re(48,60),9,8,10),ie.addMany([60,61,62,63],9,9,10),ie.addMany(a,11,0,11),ie.addMany(re(32,128),11,0,11),ie.addMany(re(28,32),11,0,11),ie.addMany(a,10,0,10),ie.add(127,10,0,10),ie.addMany(re(28,32),10,0,10),ie.addMany(re(48,60),10,8,10),ie.addMany([60,61,62,63],10,0,11),ie.addMany(re(32,48),10,9,12),ie.addMany(a,12,0,12),ie.add(127,12,0,12),ie.addMany(re(28,32),12,0,12),ie.addMany(re(32,48),12,9,12),ie.addMany(re(48,64),12,0,11),ie.addMany(re(64,127),12,12,13),ie.addMany(re(64,127),10,12,13),ie.addMany(re(64,127),9,12,13),ie.addMany(a,13,13,13),ie.addMany(z,13,13,13),ie.add(127,13,0,13),ie.addMany([27,156,24,26],13,14,0),ie.add(160,0,2,0),ie.add(160,8,5,8),ie.add(160,6,0,6),ie.add(160,11,0,11),ie.add(160,13,13,13),ie}();var ue=function(ie){function oe(re){re===void 0&&(re=ye.VT500_TRANSITION_TABLE);var z=ie.call(this)||this;return z._transitions=re,z.initialState=0,z.currentState=z.initialState,z._params=new ae.Params,z._params.addParam(0),z._collect=0,z.precedingCodepoint=0,z._printHandlerFb=function(a,y,E){},z._executeHandlerFb=function(a){},z._csiHandlerFb=function(a,y){},z._escHandlerFb=function(a){},z._errorHandlerFb=function(a){return a},z._printHandler=z._printHandlerFb,z._executeHandlers=Object.create(null),z._csiHandlers=Object.create(null),z._escHandlers=Object.create(null),z._oscParser=new ne.OscParser,z._dcsParser=new se.DcsParser,z._errorHandler=z._errorHandlerFb,z.setEscHandler({final:"\\"},function(){}),z}return x(oe,ie),oe.prototype._identifier=function(re,z){z===void 0&&(z=[64,126]);var a=0;if(re.prefix){if(re.prefix.length>1)throw new Error("only one byte as prefix supported");if((a=re.prefix.charCodeAt(0))&&60>a||a>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(re.intermediates){if(re.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(var y=0;y<re.intermediates.length;++y){var E=re.intermediates.charCodeAt(y);if(32>E||E>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");a<<=8,a|=E}}if(re.final.length!==1)throw new Error("final must be a single byte");var b=re.final.charCodeAt(0);if(z[0]>b||b>z[1])throw new Error("final must be in range "+z[0]+" .. "+z[1]);return a<<=8,a|=b},oe.prototype.identToString=function(re){for(var z=[];re;)z.push(String.fromCharCode(255&re)),re>>=8;return z.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,z){var a=this._identifier(re,[48,126]);this._escHandlers[a]===void 0&&(this._escHandlers[a]=[]);var y=this._escHandlers[a];return y.push(z),{dispose:function(){var E=y.indexOf(z);E!==-1&&y.splice(E,1)}}},oe.prototype.setEscHandler=function(re,z){this._escHandlers[this._identifier(re,[48,126])]=[z]},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,z){this._executeHandlers[re.charCodeAt(0)]=z},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,z){var a=this._identifier(re);this._csiHandlers[a]===void 0&&(this._csiHandlers[a]=[]);var y=this._csiHandlers[a];return y.push(z),{dispose:function(){var E=y.indexOf(z);E!==-1&&y.splice(E,1)}}},oe.prototype.setCsiHandler=function(re,z){this._csiHandlers[this._identifier(re)]=[z]},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,z){return this._dcsParser.addHandler(this._identifier(re),z)},oe.prototype.setDcsHandler=function(re,z){this._dcsParser.setHandler(this._identifier(re),z)},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,z){return this._oscParser.addHandler(re,z)},oe.prototype.setOscHandler=function(re,z){this._oscParser.setHandler(re,z)},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,z){for(var a=0,y=0,E=this.currentState,b=this._oscParser,ee=this._dcsParser,te=this._collect,le=this._params,fe=this._transitions.table,he=0;he<z;++he){switch((y=fe[E<<8|((a=re[he])<160?a:160)])>>4){case 2:for(var me=he+1;;++me){if(me>=z||(a=re[me])<32||a>126&&a<160){this._printHandler(re,he,me),he=me-1;break}if(++me>=z||(a=re[me])<32||a>126&&a<160){this._printHandler(re,he,me),he=me-1;break}if(++me>=z||(a=re[me])<32||a>126&&a<160){this._printHandler(re,he,me),he=me-1;break}if(++me>=z||(a=re[me])<32||a>126&&a<160){this._printHandler(re,he,me),he=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:he,code:a,currentState:E,collect:te,params:le,abort:!1}).abort)return;break;case 7:for(var ge=this._csiHandlers[te<<8|a],Se=ge?ge.length-1:-1;Se>=0&&ge[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(++he<z&&(a=re[he])>47&&a<60);he--;break;case 9:te<<=8,te|=a;break;case 10:for(var ve=this._escHandlers[te<<8|a],be=ve?ve.length-1:-1;be>=0&&ve[be]()===!1;be--);be<0&&this._escHandlerFb(te<<8|a),this.precedingCodepoint=0;break;case 11:le.reset(),le.addParam(0),te=0;break;case 12:ee.hook(te<<8|a,le);break;case 13:for(var Pe=he+1;;++Pe)if(Pe>=z||(a=re[Pe])===24||a===26||a===27||a>127&&a<160){ee.put(re,he,Pe),he=Pe-1;break}break;case 14:ee.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 Te=he+1;;Te++)if(Te>=z||(a=re[Te])<32||a>127&&a<=159){b.put(re,he,Te),he=Te-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}E=15&y}this._collect=te,this.currentState=E},oe}(pe.Disposable);ye.EscapeSequenceParser=ue},function(ft,ye,we){"use strict";var Ee,x=this&&this.__extends||(Ee=function(b,ee){return(Ee=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,ee)},function(b,ee){function te(){this.constructor=b}Ee(b,ee),b.prototype=ee===null?Object.create(ee):(te.prototype=ee.prototype,new te)}),pe=this&&this.__decorate||function(b,ee,te,le){var fe,he=arguments.length,me=he<3?ee:le===null?le=Object.getOwnPropertyDescriptor(ee,te):le;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")me=Reflect.decorate(b,ee,te,le);else for(var ge=b.length-1;ge>=0;ge--)(fe=b[ge])&&(me=(he<3?fe(me):he>3?fe(ee,te,me):fe(ee,te))||me);return he>3&&me&&Object.defineProperty(ee,te,me),me},de=this&&this.__param||function(b,ee){return function(te,le){ee(te,le,b)}};Object.defineProperty(ye,"__esModule",{value:!0}),ye.Renderer=void 0;var ae=we(41),ne=we(47),se=we(48),ce=we(49),ue=we(29),ie=we(2),oe=we(5),re=we(1),z=we(25),a=we(0),y=1,E=function(b){function ee(te,le,fe,he,me,ge,Se,ve,be){var Pe=b.call(this)||this;Pe._colors=te,Pe._screenElement=le,Pe._bufferService=me,Pe._charSizeService=ge,Pe._optionsService=Se,Pe._id=y++,Pe._onRequestRedraw=new a.EventEmitter;var Te=Pe._optionsService.options.allowTransparency;return Pe._characterJoinerRegistry=new ue.CharacterJoinerRegistry(Pe._bufferService),Pe._renderLayers=[new ae.TextRenderLayer(Pe._screenElement,0,Pe._colors,Pe._characterJoinerRegistry,Te,Pe._id,Pe._bufferService,Se),new ne.SelectionRenderLayer(Pe._screenElement,1,Pe._colors,Pe._id,Pe._bufferService,Se),new ce.LinkRenderLayer(Pe._screenElement,2,Pe._colors,Pe._id,fe,he,Pe._bufferService,Se),new se.CursorRenderLayer(Pe._screenElement,3,Pe._colors,Pe._id,Pe._onRequestRedraw,Pe._bufferService,Se,ve,be)],Pe.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},Pe._devicePixelRatio=window.devicePixelRatio,Pe._updateDimensions(),Pe.onOptionsChanged(),Pe}return x(ee,b),Object.defineProperty(ee.prototype,"onRequestRedraw",{get:function(){return this._onRequestRedraw.event},enumerable:!1,configurable:!0}),ee.prototype.dispose=function(){for(var te=0,le=this._renderLayers;te<le.length;te++)le[te].dispose();b.prototype.dispose.call(this),z.removeTerminalFromCache(this._id)},ee.prototype.onDevicePixelRatioChange=function(){this._devicePixelRatio!==window.devicePixelRatio&&(this._devicePixelRatio=window.devicePixelRatio,this.onResize(this._bufferService.cols,this._bufferService.rows))},ee.prototype.setColors=function(te){this._colors=te;for(var le=0,fe=this._renderLayers;le<fe.length;le++){var he=fe[le];he.setColors(this._colors),he.reset()}},ee.prototype.onResize=function(te,le){this._updateDimensions();for(var fe=0,he=this._renderLayers;fe<he.length;fe++)he[fe].resize(this.dimensions);this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},ee.prototype.onCharSizeChanged=function(){this.onResize(this._bufferService.cols,this._bufferService.rows)},ee.prototype.onBlur=function(){this._runOperation(function(te){return te.onBlur()})},ee.prototype.onFocus=function(){this._runOperation(function(te){return te.onFocus()})},ee.prototype.onSelectionChanged=function(te,le,fe){fe===void 0&&(fe=!1),this._runOperation(function(he){return he.onSelectionChanged(te,le,fe)})},ee.prototype.onCursorMove=function(){this._runOperation(function(te){return te.onCursorMove()})},ee.prototype.onOptionsChanged=function(){this._runOperation(function(te){return te.onOptionsChanged()})},ee.prototype.clear=function(){this._runOperation(function(te){return te.reset()})},ee.prototype._runOperation=function(te){for(var le=0,fe=this._renderLayers;le<fe.length;le++)te(fe[le])},ee.prototype.renderRows=function(te,le){for(var fe=0,he=this._renderLayers;fe<he.length;fe++)he[fe].onGridChanged(te,le)},ee.prototype._updateDimensions=function(){this._charSizeService.hasValidSize&&(this.dimensions.scaledCharWidth=Math.floor(this._charSizeService.width*window.devicePixelRatio),this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.options.lineHeight),this.dimensions.scaledCharTop=this._optionsService.options.lineHeight===1?0:Math.round((this.dimensions.scaledCellHeight-this.dimensions.scaledCharHeight)/2),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.options.letterSpacing),this.dimensions.scaledCharLeft=Math.floor(this._optionsService.options.letterSpacing/2),this.dimensions.scaledCanvasHeight=this._bufferService.rows*this.dimensions.scaledCellHeight,this.dimensions.scaledCanvasWidth=this._bufferService.cols*this.dimensions.scaledCellWidth,this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows,this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols)},ee.prototype.registerCharacterJoiner=function(te){return this._characterJoinerRegistry.registerCharacterJoiner(te)},ee.prototype.deregisterCharacterJoiner=function(te){return this._characterJoinerRegistry.deregisterCharacterJoiner(te)},ee=pe([de(4,re.IBufferService),de(5,oe.ICharSizeService),de(6,re.IOptionsService),de(7,re.ICoreService),de(8,oe.ICoreBrowserService)],ee)}(ie.Disposable);ye.Renderer=E},function(ft,ye,we){"use strict";var Ee,x=this&&this.__extends||(Ee=function(ie,oe){return(Ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(re,z){re.__proto__=z}||function(re,z){for(var a in z)z.hasOwnProperty(a)&&(re[a]=z[a])})(ie,oe)},function(ie,oe){function re(){this.constructor=ie}Ee(ie,oe),ie.prototype=oe===null?Object.create(oe):(re.prototype=oe.prototype,new re)});Object.defineProperty(ye,"__esModule",{value:!0}),ye.TextRenderLayer=void 0;var pe=we(42),de=we(13),ae=we(6),ne=we(3),se=we(29),ce=we(4),ue=function(ie){function oe(re,z,a,y,E,b,ee,te){var le=ie.call(this,re,"text",z,E,a,b,ee,te)||this;return le._characterWidth=0,le._characterFont="",le._characterOverlapCache={},le._workCell=new ce.CellData,le._state=new pe.GridCache,le._characterJoinerRegistry=y,le}return x(oe,ie),oe.prototype.resize=function(re){ie.prototype.resize.call(this,re);var z=this._getFont(!1,!1);this._characterWidth===re.scaledCharWidth&&this._characterFont===z||(this._characterWidth=re.scaledCharWidth,this._characterFont=z,this._characterOverlapCache={}),this._state.clear(),this._state.resize(this._bufferService.cols,this._bufferService.rows)},oe.prototype.reset=function(){this._state.clear(),this._clearAll()},oe.prototype._forEachCell=function(re,z,a,y){for(var E=re;E<=z;E++)for(var b=E+this._bufferService.buffer.ydisp,ee=this._bufferService.buffer.lines.get(b),te=a?a.getJoinedCharacters(b):[],le=0;le<this._bufferService.cols;le++){ee.loadCell(le,this._workCell);var fe=this._workCell,he=!1,me=le;if(fe.getWidth()!==0){if(te.length>0&&le===te[0][0]){he=!0;var ge=te.shift();fe=new se.JoinedCellData(this._workCell,ee.translateToString(!0,ge[0],ge[1]),ge[1]-ge[0]),me=ge[1]-1}!he&&this._isOverlapping(fe)&&me<ee.length-1&&ee.getCodePoint(me+1)===ne.NULL_CELL_CODE&&(fe.content&=-12582913,fe.content|=2<<22),y(fe,le,E),le=me}}},oe.prototype._drawBackground=function(re,z){var a=this,y=this._ctx,E=this._bufferService.cols,b=0,ee=0,te=null;y.save(),this._forEachCell(re,z,null,function(le,fe,he){var me=null;le.isInverse()?me=le.isFgDefault()?a._colors.foreground.css:le.isFgRGB()?"rgb("+ae.AttributeData.toColorRGB(le.getFgColor()).join(",")+")":a._colors.ansi[le.getFgColor()].css:le.isBgRGB()?me="rgb("+ae.AttributeData.toColorRGB(le.getBgColor()).join(",")+")":le.isBgPalette()&&(me=a._colors.ansi[le.getBgColor()].css),te===null&&(b=fe,ee=he),he!==ee?(y.fillStyle=te||"",a._fillCells(b,ee,E-b,1),b=fe,ee=he):te!==me&&(y.fillStyle=te||"",a._fillCells(b,ee,fe-b,1),b=fe,ee=he),te=me}),te!==null&&(y.fillStyle=te,this._fillCells(b,ee,E-b,1)),y.restore()},oe.prototype._drawForeground=function(re,z){var a=this;this._forEachCell(re,z,this._characterJoinerRegistry,function(y,E,b){if(!y.isInvisible()&&(a._drawChars(y,E,b),y.isUnderline())){if(a._ctx.save(),y.isInverse())if(y.isBgDefault())a._ctx.fillStyle=a._colors.background.css;else if(y.isBgRGB())a._ctx.fillStyle="rgb("+ae.AttributeData.toColorRGB(y.getBgColor()).join(",")+")";else{var ee=y.getBgColor();a._optionsService.options.drawBoldTextInBrightColors&&y.isBold()&&ee<8&&(ee+=8),a._ctx.fillStyle=a._colors.ansi[ee].css}else if(y.isFgDefault())a._ctx.fillStyle=a._colors.foreground.css;else if(y.isFgRGB())a._ctx.fillStyle="rgb("+ae.AttributeData.toColorRGB(y.getFgColor()).join(",")+")";else{var te=y.getFgColor();a._optionsService.options.drawBoldTextInBrightColors&&y.isBold()&&te<8&&(te+=8),a._ctx.fillStyle=a._colors.ansi[te].css}a._fillBottomLineAtCells(E,b,y.getWidth()),a._ctx.restore()}})},oe.prototype.onGridChanged=function(re,z){this._state.cache.length!==0&&(this._charAtlas&&this._charAtlas.beginFrame(),this._clearCells(0,re,this._bufferService.cols,z-re+1),this._drawBackground(re,z),this._drawForeground(re,z))},oe.prototype.onOptionsChanged=function(){this._setTransparency(this._optionsService.options.allowTransparency)},oe.prototype._isOverlapping=function(re){if(re.getWidth()!==1||re.getCode()<256)return!1;var z=re.getChars();if(this._characterOverlapCache.hasOwnProperty(z))return this._characterOverlapCache[z];this._ctx.save(),this._ctx.font=this._characterFont;var a=Math.floor(this._ctx.measureText(z).width)>this._characterWidth;return this._ctx.restore(),this._characterOverlapCache[z]=a,a},oe}(de.BaseRenderLayer);ye.TextRenderLayer=ue},function(ft,ye,we){"use strict";Object.defineProperty(ye,"__esModule",{value:!0}),ye.GridCache=void 0;var Ee=function(){function x(){this.cache=[]}return x.prototype.resize=function(pe,de){for(var ae=0;ae<pe;ae++){this.cache.length<=ae&&this.cache.push([]);for(var ne=this.cache[ae].length;ne<de;ne++)this.cache[ae].push(void 0);this.cache[ae].length=de}this.cache.length=pe},x.prototype.clear=function(){for(var pe=0;pe<this.cache.length;pe++)for(var de=0;de<this.cache[pe].length;de++)this.cache[pe][de]=void 0},x}();ye.GridCache=Ee},function(ft,ye,we){"use strict";var Ee,x=this&&this.__extends||(Ee=function(a,y){return(Ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,b){E.__proto__=b}||function(E,b){for(var ee in b)b.hasOwnProperty(ee)&&(E[ee]=b[ee])})(a,y)},function(a,y){function E(){this.constructor=a}Ee(a,y),a.prototype=y===null?Object.create(y):(E.prototype=y.prototype,new E)});Object.defineProperty(ye,"__esModule",{value:!0}),ye.NoneCharAtlas=ye.DynamicCharAtlas=ye.getGlyphCacheKey=void 0;var pe=we(9),de=we(44),ae=we(27),ne=we(46),se=we(11),ce=we(28),ue=we(10),ie={css:"rgba(0, 0, 0, 0)",rgba:0};function oe(a){return a.code<<21|a.bg<<12|a.fg<<3|(a.bold?0:4)+(a.dim?0:2)+(a.italic?0:1)}ye.getGlyphCacheKey=oe;var re=function(a){function y(E,b){var ee=a.call(this)||this;ee._config=b,ee._drawToCacheCount=0,ee._glyphsWaitingOnBitmap=[],ee._bitmapCommitTimeout=null,ee._bitmap=null,ee._cacheCanvas=E.createElement("canvas"),ee._cacheCanvas.width=1024,ee._cacheCanvas.height=1024,ee._cacheCtx=ce.throwIfFalsy(ee._cacheCanvas.getContext("2d",{alpha:!0}));var te=E.createElement("canvas");te.width=ee._config.scaledCharWidth,te.height=ee._config.scaledCharHeight,ee._tmpCtx=ce.throwIfFalsy(te.getContext("2d",{alpha:ee._config.allowTransparency})),ee._width=Math.floor(1024/ee._config.scaledCharWidth),ee._height=Math.floor(1024/ee._config.scaledCharHeight);var le=ee._width*ee._height;return ee._cacheMap=new ne.LRUMap(le),ee._cacheMap.prealloc(le),ee}return x(y,a),y.prototype.dispose=function(){this._bitmapCommitTimeout!==null&&(window.clearTimeout(this._bitmapCommitTimeout),this._bitmapCommitTimeout=null)},y.prototype.beginFrame=function(){this._drawToCacheCount=0},y.prototype.draw=function(E,b,ee,te){if(b.code===32)return!0;if(!this._canCache(b))return!1;var le=oe(b),fe=this._cacheMap.get(le);if(fe!=null)return this._drawFromCache(E,fe,ee,te),!0;if(this._drawToCacheCount<100){var he=void 0;he=this._cacheMap.size<this._cacheMap.capacity?this._cacheMap.size:this._cacheMap.peek().index;var me=this._drawToCache(b,he);return this._cacheMap.set(le,me),this._drawFromCache(E,me,ee,te),!0}return!1},y.prototype._canCache=function(E){return E.code<256},y.prototype._toCoordinateX=function(E){return E%this._width*this._config.scaledCharWidth},y.prototype._toCoordinateY=function(E){return Math.floor(E/this._width)*this._config.scaledCharHeight},y.prototype._drawFromCache=function(E,b,ee,te){if(!b.isEmpty){var le=this._toCoordinateX(b.index),fe=this._toCoordinateY(b.index);E.drawImage(b.inBitmap?this._bitmap:this._cacheCanvas,le,fe,this._config.scaledCharWidth,this._config.scaledCharHeight,ee,te,this._config.scaledCharWidth,this._config.scaledCharHeight)}},y.prototype._getColorFromAnsiIndex=function(E){return E<this._config.colors.ansi.length?this._config.colors.ansi[E]:ae.DEFAULT_ANSI_COLORS[E]},y.prototype._getBackgroundColor=function(E){return this._config.allowTransparency?ie:E.bg===pe.INVERTED_DEFAULT_COLOR?this._config.colors.foreground:E.bg<256?this._getColorFromAnsiIndex(E.bg):this._config.colors.background},y.prototype._getForegroundColor=function(E){return E.fg===pe.INVERTED_DEFAULT_COLOR?ue.color.opaque(this._config.colors.background):E.fg<256?this._getColorFromAnsiIndex(E.fg):this._config.colors.foreground},y.prototype._drawToCache=function(E,b){this._drawToCacheCount++,this._tmpCtx.save();var ee=this._getBackgroundColor(E);this._tmpCtx.globalCompositeOperation="copy",this._tmpCtx.fillStyle=ee.css,this._tmpCtx.fillRect(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),this._tmpCtx.globalCompositeOperation="source-over";var te=E.bold?this._config.fontWeightBold:this._config.fontWeight,le=E.italic?"italic":"";this._tmpCtx.font=le+" "+te+" "+this._config.fontSize*this._config.devicePixelRatio+"px "+this._config.fontFamily,this._tmpCtx.textBaseline="middle",this._tmpCtx.fillStyle=this._getForegroundColor(E).css,E.dim&&(this._tmpCtx.globalAlpha=pe.DIM_OPACITY),this._tmpCtx.fillText(E.chars,0,this._config.scaledCharHeight/2),this._tmpCtx.restore();var fe=this._tmpCtx.getImageData(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),he=!1;this._config.allowTransparency||(he=function(ve,be){for(var Pe=!0,Te=be.rgba>>>24,_e=be.rgba>>>16&255,je=be.rgba>>>8&255,Ce=0;Ce<ve.data.length;Ce+=4)ve.data[Ce]===Te&&ve.data[Ce+1]===_e&&ve.data[Ce+2]===je?ve.data[Ce+3]=0:Pe=!1;return Pe}(fe,ee));var me=this._toCoordinateX(b),ge=this._toCoordinateY(b);this._cacheCtx.putImageData(fe,me,ge);var Se={index:b,isEmpty:he,inBitmap:!1};return this._addGlyphToBitmap(Se),Se},y.prototype._addGlyphToBitmap=function(E){var b=this;!("createImageBitmap"in window)||se.isFirefox||se.isSafari||(this._glyphsWaitingOnBitmap.push(E),this._bitmapCommitTimeout===null&&(this._bitmapCommitTimeout=window.setTimeout(function(){return b._generateBitmap()},100)))},y.prototype._generateBitmap=function(){var E=this,b=this._glyphsWaitingOnBitmap;this._glyphsWaitingOnBitmap=[],window.createImageBitmap(this._cacheCanvas).then(function(ee){E._bitmap=ee;for(var te=0;te<b.length;te++)b[te].inBitmap=!0}),this._bitmapCommitTimeout=null},y}(de.BaseCharAtlas);ye.DynamicCharAtlas=re;var z=function(a){function y(E,b){return a.call(this)||this}return x(y,a),y.prototype.draw=function(E,b,ee,te){return!1},y}(de.BaseCharAtlas);ye.NoneCharAtlas=z},function(ft,ye,we){"use strict";Object.defineProperty(ye,"__esModule",{value:!0}),ye.BaseCharAtlas=void 0;var Ee=function(){function x(){this._didWarmUp=!1}return x.prototype.dispose=function(){},x.prototype.warmUp=function(){this._didWarmUp||(this._doWarmUp(),this._didWarmUp=!0)},x.prototype._doWarmUp=function(){},x.prototype.beginFrame=function(){},x}();ye.BaseCharAtlas=Ee},function(ft,ye,we){"use strict";Object.defineProperty(ye,"__esModule",{value:!0}),ye.ColorContrastCache=void 0;var Ee=function(){function x(){this._color={},this._rgba={}}return x.prototype.clear=function(){this._color={},this._rgba={}},x.prototype.setCss=function(pe,de,ae){this._rgba[pe]||(this._rgba[pe]={}),this._rgba[pe][de]=ae},x.prototype.getCss=function(pe,de){return this._rgba[pe]?this._rgba[pe][de]:void 0},x.prototype.setColor=function(pe,de,ae){this._color[pe]||(this._color[pe]={}),this._color[pe][de]=ae},x.prototype.getColor=function(pe,de){return this._color[pe]?this._color[pe][de]:void 0},x}();ye.ColorContrastCache=Ee},function(ft,ye,we){"use strict";Object.defineProperty(ye,"__esModule",{value:!0}),ye.LRUMap=void 0;var Ee=function(){function x(pe){this.capacity=pe,this._map={},this._head=null,this._tail=null,this._nodePool=[],this.size=0}return x.prototype._unlinkNode=function(pe){var de=pe.prev,ae=pe.next;pe===this._head&&(this._head=ae),pe===this._tail&&(this._tail=de),de!==null&&(de.next=ae),ae!==null&&(ae.prev=de)},x.prototype._appendNode=function(pe){var de=this._tail;de!==null&&(de.next=pe),pe.prev=de,pe.next=null,this._tail=pe,this._head===null&&(this._head=pe)},x.prototype.prealloc=function(pe){for(var de=this._nodePool,ae=0;ae<pe;ae++)de.push({prev:null,next:null,key:null,value:null})},x.prototype.get=function(pe){var de=this._map[pe];return de!==void 0?(this._unlinkNode(de),this._appendNode(de),de.value):null},x.prototype.peekValue=function(pe){var de=this._map[pe];return de!==void 0?de.value:null},x.prototype.peek=function(){var pe=this._head;return pe===null?null:pe.value},x.prototype.set=function(pe,de){var ae=this._map[pe];if(ae!==void 0)ae=this._map[pe],this._unlinkNode(ae),ae.value=de;else if(this.size>=this.capacity)ae=this._head,this._unlinkNode(ae),delete this._map[ae.key],ae.key=pe,ae.value=de,this._map[pe]=ae;else{var ne=this._nodePool;ne.length>0?((ae=ne.pop()).key=pe,ae.value=de):ae={prev:null,next:null,key:pe,value:de},this._map[pe]=ae,this.size++}this._appendNode(ae)},x}();ye.LRUMap=Ee},function(ft,ye,we){"use strict";var Ee,x=this&&this.__extends||(Ee=function(de,ae){return(Ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ne,se){ne.__proto__=se}||function(ne,se){for(var ce in se)se.hasOwnProperty(ce)&&(ne[ce]=se[ce])})(de,ae)},function(de,ae){function ne(){this.constructor=de}Ee(de,ae),de.prototype=ae===null?Object.create(ae):(ne.prototype=ae.prototype,new ne)});Object.defineProperty(ye,"__esModule",{value:!0}),ye.SelectionRenderLayer=void 0;var pe=function(de){function ae(ne,se,ce,ue,ie,oe){var re=de.call(this,ne,"selection",se,!0,ce,ue,ie,oe)||this;return re._clearState(),re}return x(ae,de),ae.prototype._clearState=function(){this._state={start:void 0,end:void 0,columnSelectMode:void 0,ydisp:void 0}},ae.prototype.resize=function(ne){de.prototype.resize.call(this,ne),this._clearState()},ae.prototype.reset=function(){this._state.start&&this._state.end&&(this._clearState(),this._clearAll())},ae.prototype.onSelectionChanged=function(ne,se,ce){if(this._didStateChange(ne,se,ce,this._bufferService.buffer.ydisp))if(this._clearAll(),ne&&se){var ue=ne[1]-this._bufferService.buffer.ydisp,ie=se[1]-this._bufferService.buffer.ydisp,oe=Math.max(ue,0),re=Math.min(ie,this._bufferService.rows-1);if(!(oe>=this._bufferService.rows||re<0)){if(this._ctx.fillStyle=this._colors.selectionTransparent.css,ce){var z=ne[0],a=se[0]-z,y=re-oe+1;this._fillCells(z,oe,a,y)}else{z=ue===oe?ne[0]:0;var E=oe===re?se[0]:this._bufferService.cols;this._fillCells(z,oe,E-z,1);var b=Math.max(re-oe-1,0);if(this._fillCells(0,oe+1,this._bufferService.cols,b),oe!==re){var ee=ie===re?se[0]:this._bufferService.cols;this._fillCells(0,re,ee,1)}}this._state.start=[ne[0],ne[1]],this._state.end=[se[0],se[1]],this._state.columnSelectMode=ce,this._state.ydisp=this._bufferService.buffer.ydisp}}else this._clearState()},ae.prototype._didStateChange=function(ne,se,ce,ue){return!this._areCoordinatesEqual(ne,this._state.start)||!this._areCoordinatesEqual(se,this._state.end)||ce!==this._state.columnSelectMode||ue!==this._state.ydisp},ae.prototype._areCoordinatesEqual=function(ne,se){return!(!ne||!se)&&ne[0]===se[0]&&ne[1]===se[1]},ae}(we(13).BaseRenderLayer);ye.SelectionRenderLayer=pe},function(ft,ye,we){"use strict";var Ee,x=this&&this.__extends||(Ee=function(se,ce){return(Ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ue,ie){ue.__proto__=ie}||function(ue,ie){for(var oe in ie)ie.hasOwnProperty(oe)&&(ue[oe]=ie[oe])})(se,ce)},function(se,ce){function ue(){this.constructor=se}Ee(se,ce),se.prototype=ce===null?Object.create(ce):(ue.prototype=ce.prototype,new ue)});Object.defineProperty(ye,"__esModule",{value:!0}),ye.CursorRenderLayer=void 0;var pe=we(13),de=we(4),ae=function(se){function ce(ue,ie,oe,re,z,a,y,E,b){var ee=se.call(this,ue,"cursor",ie,!0,oe,re,a,y)||this;return ee._onRequestRedraw=z,ee._coreService=E,ee._coreBrowserService=b,ee._cell=new de.CellData,ee._state={x:0,y:0,isFocused:!1,style:"",width:0},ee._cursorRenderers={bar:ee._renderBarCursor.bind(ee),block:ee._renderBlockCursor.bind(ee),underline:ee._renderUnderlineCursor.bind(ee)},ee}return x(ce,se),ce.prototype.resize=function(ue){se.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,ie=this;this._optionsService.options.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new ne(this._coreBrowserService.isFocused,function(){ie._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,ie){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(!1):this._cursorBlinkStateManager.restartBlinkAnimation()},ce.prototype._render=function(ue){if(this._coreService.isCursorInitialized&&!this._coreService.isCursorHidden){var ie=this._bufferService.buffer.ybase+this._bufferService.buffer.y,oe=ie-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(ie).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 z=this._optionsService.options.cursorStyle;return z&&z!=="block"?this._cursorRenderers[z](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=z,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,ie,oe){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillLeftLineAtCell(ue,ie,this._optionsService.options.cursorWidth),this._ctx.restore()},ce.prototype._renderBlockCursor=function(ue,ie,oe){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillCells(ue,ie,oe.getWidth(),1),this._ctx.fillStyle=this._colors.cursorAccent.css,this._fillCharTrueColor(oe,ue,ie),this._ctx.restore()},ce.prototype._renderUnderlineCursor=function(ue,ie,oe){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillBottomLineAtCells(ue,ie),this._ctx.restore()},ce.prototype._renderBlurCursor=function(ue,ie,oe){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this._strokeRectAtCell(ue,ie,oe.getWidth(),1),this._ctx.restore()},ce}(pe.BaseRenderLayer);ye.CursorRenderLayer=ae;var ne=function(){function se(ce,ue){this._renderCallback=ue,this.isCursorVisible=!0,ce&&this._restartInterval()}return Object.defineProperty(se.prototype,"isPaused",{get:function(){return!(this._blinkStartTimeout||this._blinkInterval)},enumerable:!1,configurable:!0}),se.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)},se.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})))},se.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 ie=600-(Date.now()-ue._animationTimeRestarted);if(ue._animationTimeRestarted=void 0,ie>0)return void ue._restartInterval(ie)}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)},se.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)},se.prototype.resume=function(){this.pause(),this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()},se}()},function(ft,ye,we){"use strict";var Ee,x=this&&this.__extends||(Ee=function(se,ce){return(Ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ue,ie){ue.__proto__=ie}||function(ue,ie){for(var oe in ie)ie.hasOwnProperty(oe)&&(ue[oe]=ie[oe])})(se,ce)},function(se,ce){function ue(){this.constructor=se}Ee(se,ce),se.prototype=ce===null?Object.create(ce):(ue.prototype=ce.prototype,new ue)});Object.defineProperty(ye,"__esModule",{value:!0}),ye.LinkRenderLayer=void 0;var pe=we(13),de=we(9),ae=we(26),ne=function(se){function ce(ue,ie,oe,re,z,a,y,E){var b=se.call(this,ue,"link",ie,!0,oe,re,y,E)||this;return z.onShowLinkUnderline(function(ee){return b._onShowLinkUnderline(ee)}),z.onHideLinkUnderline(function(ee){return b._onHideLinkUnderline(ee)}),a.onShowLinkUnderline(function(ee){return b._onShowLinkUnderline(ee)}),a.onHideLinkUnderline(function(ee){return b._onHideLinkUnderline(ee)}),b}return x(ce,se),ce.prototype.resize=function(ue){se.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&&ae.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 ie=ue.y1+1;ie<ue.y2;ie++)this._fillBottomLineAtCells(0,ie,ue.cols);this._fillBottomLineAtCells(0,ue.y2,ue.x2)}this._state=ue},ce.prototype._onHideLinkUnderline=function(ue){this._clearCurrentLink()},ce}(pe.BaseRenderLayer);ye.LinkRenderLayer=ne},function(ft,ye,we){"use strict";var Ee=this&&this.__decorate||function(se,ce,ue,ie){var oe,re=arguments.length,z=re<3?ce:ie===null?ie=Object.getOwnPropertyDescriptor(ce,ue):ie;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")z=Reflect.decorate(se,ce,ue,ie);else for(var a=se.length-1;a>=0;a--)(oe=se[a])&&(z=(re<3?oe(z):re>3?oe(ce,ue,z):oe(ce,ue))||z);return re>3&&z&&Object.defineProperty(ce,ue,z),z},x=this&&this.__param||function(se,ce){return function(ue,ie){ce(ue,ie,se)}};Object.defineProperty(ye,"__esModule",{value:!0}),ye.MouseZone=ye.Linkifier=void 0;var pe=we(0),de=we(1),ae=function(){function se(ce,ue,ie){this._bufferService=ce,this._logService=ue,this._unicodeService=ie,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(se.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"onLinkTooltip",{get:function(){return this._onLinkTooltip.event},enumerable:!1,configurable:!0}),se.prototype.attachToDom=function(ce,ue){this._element=ce,this._mouseZoneManager=ue},se.prototype.linkifyRows=function(ce,ue){var ie=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 ie._linkifyRows()},se._timeBeforeLatency))},se.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 ie=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,ie,oe,oe);re.hasNext();)for(var z=re.next(),a=0;a<this._linkMatchers.length;a++)this._doLinkifyRow(z.range.first,z.content,this._linkMatchers[a]);this._rowsToLinkify.start=void 0,this._rowsToLinkify.end=void 0}}else this._logService.debug("_rowToLinkify was unset before _linkifyRows was called")},se.prototype.registerLinkMatcher=function(ce,ue,ie){if(ie===void 0&&(ie={}),!ue)throw new Error("handler must be defined");var oe={id:this._nextLinkMatcherId++,regex:ce,handler:ue,matchIndex:ie.matchIndex,validationCallback:ie.validationCallback,hoverTooltipCallback:ie.tooltipCallback,hoverLeaveCallback:ie.leaveCallback,willLinkActivate:ie.willLinkActivate,priority:ie.priority||0};return this._addLinkMatcherToList(oe),oe.id},se.prototype._addLinkMatcherToList=function(ce){if(this._linkMatchers.length!==0){for(var ue=this._linkMatchers.length-1;ue>=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)},se.prototype.deregisterLinkMatcher=function(ce){for(var ue=0;ue<this._linkMatchers.length;ue++)if(this._linkMatchers[ue].id===ce)return this._linkMatchers.splice(ue,1),!0;return!1},se.prototype._doLinkifyRow=function(ce,ue,ie){for(var oe,re=this,z=new RegExp(ie.regex.source,(ie.regex.flags||"")+"g"),a=-1,y=function(){var b=oe[typeof ie.matchIndex!="number"?0:ie.matchIndex];if(!b)return E._logService.debug("match found without corresponding matchIndex",oe,ie),"break";if(a=ue.indexOf(b,a+1),z.lastIndex=a+b.length,a<0)return"break";var ee=E._bufferService.buffer.stringIndexToBufferIndex(ce,a);if(ee[0]<0)return"break";var te=E._bufferService.buffer.lines.get(ee[0]);if(!te)return"break";var le=te.getFg(ee[1]),fe=le?le>>9&511:void 0;ie.validationCallback?ie.validationCallback(b,function(he){re._rowsTimeoutId||he&&re._addLink(ee[1],ee[0]-re._bufferService.buffer.ydisp,b,ie,fe)}):E._addLink(ee[1],ee[0]-E._bufferService.buffer.ydisp,b,ie,fe)},E=this;(oe=z.exec(ue))!==null&&y()!=="break";);},se.prototype._addLink=function(ce,ue,ie,oe,re){var z=this;if(this._mouseZoneManager&&this._element){var a=this._unicodeService.getStringCellWidth(ie),y=ce%this._bufferService.cols,E=ue+Math.floor(ce/this._bufferService.cols),b=(y+a)%this._bufferService.cols,ee=E+Math.floor((y+a)/this._bufferService.cols);b===0&&(b=this._bufferService.cols,ee--),this._mouseZoneManager.add(new ne(y+1,E+1,b+1,ee+1,function(te){if(oe.handler)return oe.handler(te,ie);var le=window.open();le?(le.opener=null,le.location.href=ie):console.warn("Opening link blocked as opener could not be cleared")},function(){z._onShowLinkUnderline.fire(z._createLinkHoverEvent(y,E,b,ee,re)),z._element.classList.add("xterm-cursor-pointer")},function(te){z._onLinkTooltip.fire(z._createLinkHoverEvent(y,E,b,ee,re)),oe.hoverTooltipCallback&&oe.hoverTooltipCallback(te,ie,{start:{x:y,y:E},end:{x:b,y:ee}})},function(){z._onHideLinkUnderline.fire(z._createLinkHoverEvent(y,E,b,ee,re)),z._element.classList.remove("xterm-cursor-pointer"),oe.hoverLeaveCallback&&oe.hoverLeaveCallback()},function(te){return!oe.willLinkActivate||oe.willLinkActivate(te,ie)}))}},se.prototype._createLinkHoverEvent=function(ce,ue,ie,oe,re){return{x1:ce,y1:ue,x2:ie,y2:oe,cols:this._bufferService.cols,fg:re}},se._timeBeforeLatency=200,se=Ee([x(0,de.IBufferService),x(1,de.ILogService),x(2,de.IUnicodeService)],se)}();ye.Linkifier=ae;var ne=function(se,ce,ue,ie,oe,re,z,a,y){this.x1=se,this.y1=ce,this.x2=ue,this.y2=ie,this.clickCallback=oe,this.hoverCallback=re,this.tooltipCallback=z,this.leaveCallback=a,this.willLinkActivate=y};ye.MouseZone=ne},function(ft,ye,we){"use strict";var Ee,x=this&&this.__extends||(Ee=function(b,ee){return(Ee=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,ee)},function(b,ee){function te(){this.constructor=b}Ee(b,ee),b.prototype=ee===null?Object.create(ee):(te.prototype=ee.prototype,new te)}),pe=this&&this.__decorate||function(b,ee,te,le){var fe,he=arguments.length,me=he<3?ee:le===null?le=Object.getOwnPropertyDescriptor(ee,te):le;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")me=Reflect.decorate(b,ee,te,le);else for(var ge=b.length-1;ge>=0;ge--)(fe=b[ge])&&(me=(he<3?fe(me):he>3?fe(ee,te,me):fe(ee,te))||me);return he>3&&me&&Object.defineProperty(ee,te,me),me},de=this&&this.__param||function(b,ee){return function(te,le){ee(te,le,b)}};Object.defineProperty(ye,"__esModule",{value:!0}),ye.SelectionService=void 0;var ae=we(11),ne=we(52),se=we(4),ce=we(0),ue=we(5),ie=we(1),oe=we(30),re=we(53),z=we(2),a="\xA0",y=new RegExp(a,"g"),E=function(b){function ee(te,le,fe,he,me,ge,Se){var ve=b.call(this)||this;return ve._element=te,ve._screenElement=le,ve._bufferService=fe,ve._coreService=he,ve._mouseService=me,ve._optionsService=ge,ve._renderService=Se,ve._dragScrollAmount=0,ve._enabled=!0,ve._workCell=new se.CellData,ve._mouseDownTimeStamp=0,ve._onLinuxMouseSelection=ve.register(new ce.EventEmitter),ve._onRedrawRequest=ve.register(new ce.EventEmitter),ve._onSelectionChange=ve.register(new ce.EventEmitter),ve._onRequestScrollLines=ve.register(new ce.EventEmitter),ve._mouseMoveListener=function(be){return ve._onMouseMove(be)},ve._mouseUpListener=function(be){return ve._onMouseUp(be)},ve._coreService.onUserInput(function(){ve.hasSelection&&ve.clearSelection()}),ve._trimListener=ve._bufferService.buffer.lines.onTrim(function(be){return ve._onTrim(be)}),ve.register(ve._bufferService.buffers.onBufferActivate(function(be){return ve._onBufferActivate(be)})),ve.enable(),ve._model=new ne.SelectionModel(ve._bufferService),ve._activeSelectionMode=0,ve}return x(ee,b),Object.defineProperty(ee.prototype,"onLinuxMouseSelection",{get:function(){return this._onLinuxMouseSelection.event},enumerable:!1,configurable:!0}),Object.defineProperty(ee.prototype,"onRequestRedraw",{get:function(){return this._onRedrawRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(ee.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(ee.prototype,"onRequestScrollLines",{get:function(){return this._onRequestScrollLines.event},enumerable:!1,configurable:!0}),ee.prototype.dispose=function(){this._removeMouseDownListeners()},ee.prototype.reset=function(){this.clearSelection()},ee.prototype.disable=function(){this.clearSelection(),this._enabled=!1},ee.prototype.enable=function(){this._enabled=!0},Object.defineProperty(ee.prototype,"selectionStart",{get:function(){return this._model.finalSelectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(ee.prototype,"selectionEnd",{get:function(){return this._model.finalSelectionEnd},enumerable:!1,configurable:!0}),Object.defineProperty(ee.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(ee.prototype,"selectionText",{get:function(){var te=this._model.finalSelectionStart,le=this._model.finalSelectionEnd;if(!te||!le)return"";var fe=this._bufferService.buffer,he=[];if(this._activeSelectionMode===3){if(te[0]===le[0])return"";for(var me=te[1];me<=le[1];me++){var ge=fe.translateBufferLineToString(me,!0,te[0],le[0]);he.push(ge)}}else{var Se=te[1]===le[1]?le[0]:void 0;for(he.push(fe.translateBufferLineToString(te[1],!0,te[0],Se)),me=te[1]+1;me<=le[1]-1;me++){var ve=fe.lines.get(me);ge=fe.translateBufferLineToString(me,!0),ve&&ve.isWrapped?he[he.length-1]+=ge:he.push(ge)}te[1]!==le[1]&&(ve=fe.lines.get(le[1]),ge=fe.translateBufferLineToString(le[1],!0,0,le[0]),ve&&ve.isWrapped?he[he.length-1]+=ge:he.push(ge))}return he.map(function(be){return be.replace(y," ")}).join(ae.isWindows?`\r
|
|
|
`:`
|
|
|
`)},enumerable:!1,configurable:!0}),ee.prototype.clearSelection=function(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()},ee.prototype.refresh=function(te){var le=this;this._refreshAnimationFrame||(this._refreshAnimationFrame=window.requestAnimationFrame(function(){return le._refresh()})),ae.isLinux&&te&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)},ee.prototype._refresh=function(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:this._activeSelectionMode===3})},ee.prototype.isClickInSelection=function(te){var le=this._getMouseBufferCoords(te),fe=this._model.finalSelectionStart,he=this._model.finalSelectionEnd;return!!(fe&&he&&le)&&this._areCoordsInSelection(le,fe,he)},ee.prototype._areCoordsInSelection=function(te,le,fe){return te[1]>le[1]&&te[1]<fe[1]||le[1]===fe[1]&&te[1]===le[1]&&te[0]>=le[0]&&te[0]<fe[0]||le[1]<fe[1]&&te[1]===fe[1]&&te[0]<fe[0]||le[1]<fe[1]&&te[1]===le[1]&&te[0]>=le[0]},ee.prototype.selectWordAtCursor=function(te){var le=this._getMouseBufferCoords(te);le&&(this._selectWordAt(le,!1),this._model.selectionEnd=void 0,this.refresh(!0))},ee.prototype.selectAll=function(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()},ee.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()},ee.prototype._onTrim=function(te){this._model.onTrim(te)&&this.refresh()},ee.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},ee.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))},ee.prototype.shouldForceSelection=function(te){return ae.isMac?te.altKey&&this._optionsService.options.macOptionClickForcesSelection:te.shiftKey},ee.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)}},ee.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)},ee.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},ee.prototype._onIncrementalClick=function(te){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(te))},ee.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]++}},ee.prototype._onDoubleClick=function(te){var le=this._getMouseBufferCoords(te);le&&(this._activeSelectionMode=1,this._selectWordAt(le,!0))},ee.prototype._onTripleClick=function(te){var le=this._getMouseBufferCoords(te);le&&(this._activeSelectionMode=2,this._selectLineAt(le[1]))},ee.prototype.shouldColumnSelect=function(te){return te.altKey&&!(ae.isMac&&this._optionsService.options.macOptionClickForcesSelection)},ee.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]<this._model.selectionStart[1]?this._model.selectionEnd[0]=0:this._model.selectionEnd[0]=this._bufferService.cols:this._activeSelectionMode===1&&this._selectToWordAt(this._model.selectionEnd),this._dragScrollAmount=this._getMouseEventScrollAmount(te),this._activeSelectionMode!==3&&(this._dragScrollAmount>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]<fe.lines.length){var he=fe.lines.get(this._model.selectionEnd[1]);he&&he.hasWidth(this._model.selectionEnd[0])===0&&this._model.selectionEnd[0]++}le&&le[0]===this._model.selectionEnd[0]&&le[1]===this._model.selectionEnd[1]||this.refresh(!0)}else this.refresh(!0)}},ee.prototype._dragScroll=function(){if(this._model.selectionEnd&&this._model.selectionStart&&this._dragScrollAmount){this._onRequestScrollLines.fire({amount:this._dragScrollAmount,suppressScrollEvent:!1});var te=this._bufferService.buffer;this._dragScrollAmount>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()}},ee.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 he=re.moveToCellSequence(fe[0]-1,fe[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(he,!0)}}}else this.hasSelection&&this._onSelectionChange.fire()},ee.prototype._onBufferActivate=function(te){var le=this;this.clearSelection(),this._trimListener.dispose(),this._trimListener=te.activeBuffer.lines.onTrim(function(fe){return le._onTrim(fe)})},ee.prototype._convertViewportColToCharacterIndex=function(te,le){for(var fe=le[0],he=0;le[0]>=he;he++){var me=te.loadCell(he,this._workCell).getChars().length;this._workCell.getWidth()===0?fe--:me>1&&le[0]!==he&&(fe+=me-1)}return fe},ee.prototype.setSelection=function(te,le,fe){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[te,le],this._model.selectionStartLength=fe,this.refresh()},ee.prototype._getWordAt=function(te,le,fe,he){if(fe===void 0&&(fe=!0),he===void 0&&(he=!0),!(te[0]>=this._bufferService.cols)){var me=this._bufferService.buffer,ge=me.lines.get(te[1]);if(ge){var Se=me.translateBufferLineToString(te[1],!1),ve=this._convertViewportColToCharacterIndex(ge,te),be=ve,Pe=te[0]-ve,Te=0,_e=0,je=0,Ce=0;if(Se.charAt(ve)===" "){for(;ve>0&&Se.charAt(ve-1)===" ";)ve--;for(;be<Se.length&&Se.charAt(be+1)===" ";)be++}else{var Ie=te[0],ke=te[0];ge.getWidth(Ie)===0&&(Te++,Ie--),ge.getWidth(ke)===2&&(_e++,ke++);var $e=ge.getString(ke).length;for($e>1&&(Ce+=$e-1,be+=$e-1);Ie>0&&ve>0&&!this._isCharWordSeparator(ge.loadCell(Ie-1,this._workCell));){ge.loadCell(Ie-1,this._workCell);var Ne=this._workCell.getChars().length;this._workCell.getWidth()===0?(Te++,Ie--):Ne>1&&(je+=Ne-1,ve-=Ne-1),ve--,Ie--}for(;ke<ge.length&&be+1<Se.length&&!this._isCharWordSeparator(ge.loadCell(ke+1,this._workCell));){ge.loadCell(ke+1,this._workCell);var nt=this._workCell.getChars().length;this._workCell.getWidth()===2?(_e++,ke++):nt>1&&(Ce+=nt-1,be+=nt-1),be++,ke++}}be++;var qe=ve+Pe-Te+je,Je=Math.min(this._bufferService.cols,be-ve+Te+_e-je-Ce);if(le||Se.slice(ve,be).trim()!==""){if(fe&&qe===0&&ge.getCodePoint(0)!==32){var Ye=me.lines.get(te[1]-1);if(Ye&&ge.isWrapped&&Ye.getCodePoint(this._bufferService.cols-1)!==32){var We=this._getWordAt([this._bufferService.cols-1,te[1]-1],!1,!0,!1);if(We){var Fe=this._bufferService.cols-We.start;qe-=Fe,Je+=Fe}}}if(he&&qe+Je===this._bufferService.cols&&ge.getCodePoint(this._bufferService.cols-1)!==32){var Ue=me.lines.get(te[1]+1);if(Ue&&Ue.isWrapped&&Ue.getCodePoint(0)!==32){var at=this._getWordAt([0,te[1]+1],!1,!1,!0);at&&(Je+=at.length)}}return{start:qe,length:Je}}}}},ee.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}},ee.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]}},ee.prototype._isCharWordSeparator=function(te){return te.getWidth()!==0&&this._optionsService.options.wordSeparator.indexOf(te.getChars())>=0},ee.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},ee=pe([de(2,ie.IBufferService),de(3,ie.ICoreService),de(4,ue.IMouseService),de(5,ie.IOptionsService),de(6,ue.IRenderService)],ee)}(z.Disposable);ye.SelectionService=E},function(ft,ye,we){"use strict";Object.defineProperty(ye,"__esModule",{value:!0}),ye.SelectionModel=void 0;var Ee=function(){function x(pe){this._bufferService=pe,this.isSelectAllActive=!1,this.selectionStartLength=0}return x.prototype.clearSelection=function(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0},Object.defineProperty(x.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(x.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}),x.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])},x.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)},x}();ye.SelectionModel=Ee},function(ft,ye,we){"use strict";Object.defineProperty(ye,"__esModule",{value:!0}),ye.moveToCellSequence=void 0;var Ee=we(12);function x(ce,ue,ie,oe){var re=ce-pe(ie,ce),z=ue-pe(ie,ue);return se(Math.abs(re-z)-function(a,y,E){for(var b=0,ee=a-pe(E,a),te=y-pe(E,y),le=0;le<Math.abs(ee-te);le++){var fe=de(a,y)==="A"?-1:1,he=E.buffer.lines.get(ee+fe*le);he&&he.isWrapped&&b++}return b}(ce,ue,ie),ne(de(ce,ue),oe))}function pe(ce,ue){for(var ie=0,oe=ce.buffer.lines.get(ue),re=oe&&oe.isWrapped;re&&ue>=0&&ue<ce.rows;)ie++,re=(oe=ce.buffer.lines.get(--ue))&&oe.isWrapped;return ie}function de(ce,ue){return ce>ue?"A":"B"}function ae(ce,ue,ie,oe,re,z){for(var a=ce,y=ue,E="";a!==ie||y!==oe;)a+=re?1:-1,re&&a>z.cols-1?(E+=z.buffer.translateBufferLineToString(y,!1,ce,a),a=0,ce=0,y++):!re&&a<0&&(E+=z.buffer.translateBufferLineToString(y,!1,0,ce+1),ce=a=z.cols-1,y--);return E+z.buffer.translateBufferLineToString(y,!1,ce,a)}function ne(ce,ue){var ie=ue?"O":"[";return Ee.C0.ESC+ie+ce}function se(ce,ue){ce=Math.floor(ce);for(var ie="",oe=0;oe<ce;oe++)ie+=ue;return ie}ye.moveToCellSequence=function(ce,ue,ie,oe){var re,z=ie.buffer.x,a=ie.buffer.y;if(!ie.buffer.hasScrollback)return function(E,b,ee,te,le,fe){return x(b,te,le,fe).length===0?"":se(ae(E,b,E,b-pe(le,b),!1,le).length,ne("D",fe))}(z,a,0,ue,ie,oe)+x(a,ue,ie,oe)+function(E,b,ee,te,le,fe){var he;he=x(b,te,le,fe).length>0?te-pe(le,te):b;var me=te,ge=function(Se,ve,be,Pe,Te,_e){var je;return je=x(be,Pe,Te,_e).length>0?Pe-pe(Te,Pe):ve,Se<be&&je<=Pe||Se>=be&&je<Pe?"C":"D"}(E,b,ee,te,le,fe);return se(ae(E,he,ee,me,ge==="C",le).length,ne(ge,fe))}(z,a,ce,ue,ie,oe);if(a===ue)return re=z>ce?"D":"C",se(Math.abs(z-ce),ne(re,oe));re=a>ue?"D":"C";var y=Math.abs(a-ue);return se(function(E,b){return b.cols-E}(a>ue?ce:z,ie)+(y-1)*ie.cols+1+((a>ue?z:ce)-1),ne(re,oe))}},function(ft,ye,we){"use strict";var Ee=this&&this.__decorate||function(ae,ne,se,ce){var ue,ie=arguments.length,oe=ie<3?ne:ce===null?ce=Object.getOwnPropertyDescriptor(ne,se):ce;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")oe=Reflect.decorate(ae,ne,se,ce);else for(var re=ae.length-1;re>=0;re--)(ue=ae[re])&&(oe=(ie<3?ue(oe):ie>3?ue(ne,se,oe):ue(ne,se))||oe);return ie>3&&oe&&Object.defineProperty(ne,se,oe),oe},x=this&&this.__param||function(ae,ne){return function(se,ce){ne(se,ce,ae)}};Object.defineProperty(ye,"__esModule",{value:!0}),ye.SoundService=void 0;var pe=we(1),de=function(){function ae(ne){this._optionsService=ne}return Object.defineProperty(ae,"audioContext",{get:function(){if(!ae._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;ae._audioContext=new ne}return ae._audioContext},enumerable:!1,configurable:!0}),ae.prototype.playBellSound=function(){var ne=ae.audioContext;if(ne){var se=ne.createBufferSource();ne.decodeAudioData(this._base64ToArrayBuffer(this._removeMimeType(this._optionsService.options.bellSound)),function(ce){se.buffer=ce,se.connect(ne.destination),se.start(0)})}},ae.prototype._base64ToArrayBuffer=function(ne){for(var se=window.atob(ne),ce=se.length,ue=new Uint8Array(ce),ie=0;ie<ce;ie++)ue[ie]=se.charCodeAt(ie);return ue.buffer},ae.prototype._removeMimeType=function(ne){return ne.split(",")[1]},ae=Ee([x(0,pe.IOptionsService)],ae)}();ye.SoundService=de},function(ft,ye,we){"use strict";var Ee,x=this&&this.__extends||(Ee=function(ie,oe){return(Ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(re,z){re.__proto__=z}||function(re,z){for(var a in z)z.hasOwnProperty(a)&&(re[a]=z[a])})(ie,oe)},function(ie,oe){function re(){this.constructor=ie}Ee(ie,oe),ie.prototype=oe===null?Object.create(oe):(re.prototype=oe.prototype,new re)}),pe=this&&this.__decorate||function(ie,oe,re,z){var a,y=arguments.length,E=y<3?oe:z===null?z=Object.getOwnPropertyDescriptor(oe,re):z;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(ie,oe,re,z);else for(var b=ie.length-1;b>=0;b--)(a=ie[b])&&(E=(y<3?a(E):y>3?a(oe,re,E):a(oe,re))||E);return y>3&&E&&Object.defineProperty(oe,re,E),E},de=this&&this.__param||function(ie,oe){return function(re,z){oe(re,z,ie)}};Object.defineProperty(ye,"__esModule",{value:!0}),ye.MouseZoneManager=void 0;var ae=we(2),ne=we(7),se=we(5),ce=we(1),ue=function(ie){function oe(re,z,a,y,E,b){var ee=ie.call(this)||this;return ee._element=re,ee._screenElement=z,ee._bufferService=a,ee._mouseService=y,ee._selectionService=E,ee._optionsService=b,ee._zones=[],ee._areZonesActive=!1,ee._lastHoverCoords=[void 0,void 0],ee._initialSelectionLength=0,ee.register(ne.addDisposableDomListener(ee._element,"mousedown",function(te){return ee._onMouseDown(te)})),ee._mouseMoveListener=function(te){return ee._onMouseMove(te)},ee._mouseLeaveListener=function(te){return ee._onMouseLeave(te)},ee._clickListener=function(te){return ee._onClick(te)},ee}return x(oe,ie),oe.prototype.dispose=function(){ie.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,z){if(this._zones.length!==0){re&&z||(re=0,z=this._bufferService.rows-1);for(var a=0;a<this._zones.length;a++){var y=this._zones[a];(y.y1>re&&y.y1<=z+1||y.y2>re&&y.y2<=z+1||y.y1<re&&y.y2>z+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 z=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 z._onTooltip(re)},this._optionsService.options.linkTooltipHoverDuration)))},oe.prototype._onTooltip=function(re){this._tooltipTimeout=void 0;var z=this._findZoneEventAt(re);z&&z.tooltipCallback&&z.tooltipCallback(re)},oe.prototype._onMouseDown=function(re){if(this._initialSelectionLength=this._getSelectionLength(),this._areZonesActive){var z=this._findZoneEventAt(re);z!=null&&z.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 z=this._findZoneEventAt(re),a=this._getSelectionLength();z&&a===this._initialSelectionLength&&(z.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 z=this._mouseService.getCoords(re,this._screenElement,this._bufferService.cols,this._bufferService.rows);if(z)for(var a=z[0],y=z[1],E=0;E<this._zones.length;E++){var b=this._zones[E];if(b.y1===b.y2){if(y===b.y1&&a>=b.x1&&a<b.x2)return b}else if(y===b.y1&&a>=b.x1||y===b.y2&&a<b.x2||y>b.y1&&y<b.y2)return b}},oe=pe([de(2,ce.IBufferService),de(3,se.IMouseService),de(4,se.ISelectionService),de(5,ce.IOptionsService)],oe)}(ae.Disposable);ye.MouseZoneManager=ue},function(ft,ye,we){"use strict";var Ee,x=this&&this.__extends||(Ee=function(oe,re){return(Ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(z,a){z.__proto__=a}||function(z,a){for(var y in a)a.hasOwnProperty(y)&&(z[y]=a[y])})(oe,re)},function(oe,re){function z(){this.constructor=oe}Ee(oe,re),oe.prototype=re===null?Object.create(re):(z.prototype=re.prototype,new z)});Object.defineProperty(ye,"__esModule",{value:!0}),ye.AccessibilityManager=void 0;var pe=we(18),de=we(11),ae=we(31),ne=we(7),se=we(2),ce=we(32),ue=we(17),ie=function(oe){function re(z,a){var y=oe.call(this)||this;y._terminal=z,y._renderService=a,y._liveRegionLineCount=0,y._charsToConsume=[],y._charsToAnnounce="",y._accessibilityTreeRoot=document.createElement("div"),y._accessibilityTreeRoot.classList.add("xterm-accessibility"),y._rowContainer=document.createElement("div"),y._rowContainer.classList.add("xterm-accessibility-tree"),y._rowContainer.setAttribute("role","list"),y._rowElements=[];for(var E=0;E<y._terminal.rows;E++)y._rowElements[E]=y._createAccessibilityTreeNode(),y._rowContainer.appendChild(y._rowElements[E]);if(y._topBoundaryFocusListener=function(b){return y._onBoundaryFocus(b,0)},y._bottomBoundaryFocusListener=function(b){return y._onBoundaryFocus(b,1)},y._rowElements[0].addEventListener("focus",y._topBoundaryFocusListener),y._rowElements[y._rowElements.length-1].addEventListener("focus",y._bottomBoundaryFocusListener),y._refreshRowsDimensions(),y._accessibilityTreeRoot.appendChild(y._rowContainer),y._renderRowsDebouncer=new ae.RenderDebouncer(y._renderRows.bind(y)),y._refreshRows(),y._liveRegion=document.createElement("div"),y._liveRegion.classList.add("live-region"),y._liveRegion.setAttribute("aria-live","assertive"),y._accessibilityTreeRoot.appendChild(y._liveRegion),!y._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");return y._terminal.element.insertAdjacentElement("afterbegin",y._accessibilityTreeRoot),y.register(y._renderRowsDebouncer),y.register(y._terminal.onResize(function(b){return y._onResize(b.rows)})),y.register(y._terminal.onRender(function(b){return y._refreshRows(b.start,b.end)})),y.register(y._terminal.onScroll(function(){return y._refreshRows()})),y.register(y._terminal.onA11yChar(function(b){return y._onChar(b)})),y.register(y._terminal.onLineFeed(function(){return y._onChar(`
|
|
|
`)})),y.register(y._terminal.onA11yTab(function(b){return y._onTab(b)})),y.register(y._terminal.onKey(function(b){return y._onKey(b.key)})),y.register(y._terminal.onBlur(function(){return y._clearLiveRegion()})),y.register(y._renderService.onDimensionsChange(function(){return y._refreshRowsDimensions()})),y._screenDprMonitor=new ce.ScreenDprMonitor,y.register(y._screenDprMonitor),y._screenDprMonitor.setListener(function(){return y._refreshRowsDimensions()}),y.register(ne.addDisposableDomListener(window,"resize",function(){return y._refreshRowsDimensions()})),y}return x(re,oe),re.prototype.dispose=function(){oe.prototype.dispose.call(this),ue.removeElementFromParent(this._accessibilityTreeRoot),this._rowElements.length=0},re.prototype._onBoundaryFocus=function(z,a){var y=z.target,E=this._rowElements[a===0?1:this._rowElements.length-2];if(y.getAttribute("aria-posinset")!==(a===0?"1":""+this._terminal.buffer.lines.length)&&z.relatedTarget===E){var b,ee;if(a===0?(b=y,ee=this._rowElements.pop(),this._rowContainer.removeChild(ee)):(b=this._rowElements.shift(),ee=y,this._rowContainer.removeChild(b)),b.removeEventListener("focus",this._topBoundaryFocusListener),ee.removeEventListener("focus",this._bottomBoundaryFocusListener),a===0){var te=this._createAccessibilityTreeNode();this._rowElements.unshift(te),this._rowContainer.insertAdjacentElement("afterbegin",te)}else te=this._createAccessibilityTreeNode(),this._rowElements.push(te),this._rowContainer.appendChild(te);this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(a===0?-1:1),this._rowElements[a===0?1:this._rowElements.length-2].focus(),z.preventDefault(),z.stopImmediatePropagation()}},re.prototype._onResize=function(z){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(var a=this._rowContainer.children.length;a<this._terminal.rows;a++)this._rowElements[a]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[a]);for(;this._rowElements.length>z;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()},re.prototype._createAccessibilityTreeNode=function(){var z=document.createElement("div");return z.setAttribute("role","listitem"),z.tabIndex=-1,this._refreshRowDimensions(z),z},re.prototype._onTab=function(z){for(var a=0;a<z;a++)this._onChar(" ")},re.prototype._onChar=function(z){var a=this;this._liveRegionLineCount<21&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==z&&(this._charsToAnnounce+=z):this._charsToAnnounce+=z,z===`
|
|
|
`&&(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(z){this._clearLiveRegion(),this._charsToConsume.push(z)},re.prototype._refreshRows=function(z,a){this._renderRowsDebouncer.refresh(z,a,this._terminal.rows)},re.prototype._renderRows=function(z,a){for(var y=this._terminal.buffer,E=y.lines.length.toString(),b=z;b<=a;b++){var ee=y.translateBufferLineToString(y.ydisp+b,!0),te=(y.ydisp+b+1).toString(),le=this._rowElements[b];le&&(ee.length===0?le.innerHTML=" ":le.textContent=ee,le.setAttribute("aria-posinset",te),le.setAttribute("aria-setsize",E))}this._announceCharacters()},re.prototype._refreshRowsDimensions=function(){if(this._renderService.dimensions.actualCellHeight){this._rowElements.length!==this._terminal.rows&&this._onResize(this._terminal.rows);for(var z=0;z<this._terminal.rows;z++)this._refreshRowDimensions(this._rowElements[z])}},re.prototype._refreshRowDimensions=function(z){z.style.height=this._renderService.dimensions.actualCellHeight+"px"},re.prototype._announceCharacters=function(){this._charsToAnnounce.length!==0&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")},re}(se.Disposable);ye.AccessibilityManager=ie},function(ft,ye,we){"use strict";var Ee,x=this&&this.__extends||(Ee=function(y,E){return(Ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,ee){b.__proto__=ee}||function(b,ee){for(var te in ee)ee.hasOwnProperty(te)&&(b[te]=ee[te])})(y,E)},function(y,E){function b(){this.constructor=y}Ee(y,E),y.prototype=E===null?Object.create(E):(b.prototype=E.prototype,new b)}),pe=this&&this.__decorate||function(y,E,b,ee){var te,le=arguments.length,fe=le<3?E:ee===null?ee=Object.getOwnPropertyDescriptor(E,b):ee;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")fe=Reflect.decorate(y,E,b,ee);else for(var he=y.length-1;he>=0;he--)(te=y[he])&&(fe=(le<3?te(fe):le>3?te(E,b,fe):te(E,b))||fe);return le>3&&fe&&Object.defineProperty(E,b,fe),fe},de=this&&this.__param||function(y,E){return function(b,ee){E(b,ee,y)}};Object.defineProperty(ye,"__esModule",{value:!0}),ye.DomRenderer=void 0;var ae=we(58),ne=we(9),se=we(2),ce=we(5),ue=we(1),ie=we(0),oe=we(10),re=we(17),z=1,a=function(y){function E(b,ee,te,le,fe,he,me,ge,Se){var ve=y.call(this)||this;return ve._colors=b,ve._element=ee,ve._screenElement=te,ve._viewportElement=le,ve._linkifier=fe,ve._linkifier2=he,ve._charSizeService=me,ve._optionsService=ge,ve._bufferService=Se,ve._terminalClass=z++,ve._rowElements=[],ve._rowContainer=document.createElement("div"),ve._rowContainer.classList.add("xterm-rows"),ve._rowContainer.style.lineHeight="normal",ve._rowContainer.setAttribute("aria-hidden","true"),ve._refreshRowElements(ve._bufferService.cols,ve._bufferService.rows),ve._selectionContainer=document.createElement("div"),ve._selectionContainer.classList.add("xterm-selection"),ve._selectionContainer.setAttribute("aria-hidden","true"),ve.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},ve._updateDimensions(),ve._injectCss(),ve._rowFactory=new ae.DomRendererRowFactory(document,ve._optionsService,ve._colors),ve._element.classList.add("xterm-dom-renderer-owner-"+ve._terminalClass),ve._screenElement.appendChild(ve._rowContainer),ve._screenElement.appendChild(ve._selectionContainer),ve._linkifier.onShowLinkUnderline(function(be){return ve._onLinkHover(be)}),ve._linkifier.onHideLinkUnderline(function(be){return ve._onLinkLeave(be)}),ve._linkifier2.onShowLinkUnderline(function(be){return ve._onLinkHover(be)}),ve._linkifier2.onHideLinkUnderline(function(be){return ve._onLinkLeave(be)}),ve}return x(E,y),Object.defineProperty(E.prototype,"onRequestRedraw",{get:function(){return new ie.EventEmitter().event},enumerable:!1,configurable:!0}),E.prototype.dispose=function(){this._element.classList.remove("xterm-dom-renderer-owner-"+this._terminalClass),re.removeElementFromParent(this._rowContainer,this._selectionContainer,this._themeStyleElement,this._dimensionsStyleElement),y.prototype.dispose.call(this)},E.prototype._updateDimensions=function(){this.dimensions.scaledCharWidth=this._charSizeService.width*window.devicePixelRatio,this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.options.letterSpacing),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.options.lineHeight),this.dimensions.scaledCharLeft=0,this.dimensions.scaledCharTop=0,this.dimensions.scaledCanvasWidth=this.dimensions.scaledCellWidth*this._bufferService.cols,this.dimensions.scaledCanvasHeight=this.dimensions.scaledCellHeight*this._bufferService.rows,this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols,this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows;for(var b=0,ee=this._rowElements;b<ee.length;b++){var te=ee[b];te.style.width=this.dimensions.canvasWidth+"px",te.style.height=this.dimensions.actualCellHeight+"px",te.style.lineHeight=this.dimensions.actualCellHeight+"px",te.style.overflow="hidden"}this._dimensionsStyleElement||(this._dimensionsStyleElement=document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement));var le=this._terminalSelector+" .xterm-rows span { display: inline-block; height: 100%; vertical-align: top; width: "+this.dimensions.actualCellWidth+"px}";this._dimensionsStyleElement.innerHTML=le,this._selectionContainer.style.height=this._viewportElement.style.height,this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},E.prototype.setColors=function(b){this._colors=b,this._injectCss()},E.prototype._injectCss=function(){var b=this;this._themeStyleElement||(this._themeStyleElement=document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));var ee=this._terminalSelector+" .xterm-rows { color: "+this._colors.foreground.css+"; font-family: "+this._optionsService.options.fontFamily+"; font-size: "+this._optionsService.options.fontSize+"px;}";ee+=this._terminalSelector+" span:not(."+ae.BOLD_CLASS+") { font-weight: "+this._optionsService.options.fontWeight+";}"+this._terminalSelector+" span."+ae.BOLD_CLASS+" { font-weight: "+this._optionsService.options.fontWeightBold+";}"+this._terminalSelector+" span."+ae.ITALIC_CLASS+" { font-style: italic;}",ee+="@keyframes blink_box_shadow_"+this._terminalClass+" { 50% { box-shadow: none; }}",ee+="@keyframes blink_block_"+this._terminalClass+" { 0% { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+"; } 50% { background-color: "+this._colors.cursorAccent.css+"; color: "+this._colors.cursor.css+"; }}",ee+=this._terminalSelector+" .xterm-rows:not(.xterm-focus) ."+ae.CURSOR_CLASS+"."+ae.CURSOR_STYLE_BLOCK_CLASS+" { outline: 1px solid "+this._colors.cursor.css+"; outline-offset: -1px;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+ae.CURSOR_CLASS+"."+ae.CURSOR_BLINK_CLASS+":not(."+ae.CURSOR_STYLE_BLOCK_CLASS+") { animation: blink_box_shadow_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+ae.CURSOR_CLASS+"."+ae.CURSOR_BLINK_CLASS+"."+ae.CURSOR_STYLE_BLOCK_CLASS+" { animation: blink_block_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+ae.CURSOR_CLASS+"."+ae.CURSOR_STYLE_BLOCK_CLASS+" { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+";}"+this._terminalSelector+" .xterm-rows ."+ae.CURSOR_CLASS+"."+ae.CURSOR_STYLE_BAR_CLASS+" { box-shadow: "+this._optionsService.options.cursorWidth+"px 0 0 "+this._colors.cursor.css+" inset;}"+this._terminalSelector+" .xterm-rows ."+ae.CURSOR_CLASS+"."+ae.CURSOR_STYLE_UNDERLINE_CLASS+" { box-shadow: 0 -1px 0 "+this._colors.cursor.css+" inset;}",ee+=this._terminalSelector+" .xterm-selection { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;}"+this._terminalSelector+" .xterm-selection div { position: absolute; background-color: "+this._colors.selectionTransparent.css+";}",this._colors.ansi.forEach(function(te,le){ee+=b._terminalSelector+" .xterm-fg-"+le+" { color: "+te.css+"; }"+b._terminalSelector+" .xterm-bg-"+le+" { background-color: "+te.css+"; }"}),ee+=this._terminalSelector+" .xterm-fg-"+ne.INVERTED_DEFAULT_COLOR+" { color: "+oe.color.opaque(this._colors.background).css+"; }"+this._terminalSelector+" .xterm-bg-"+ne.INVERTED_DEFAULT_COLOR+" { background-color: "+this._colors.foreground.css+"; }",this._themeStyleElement.innerHTML=ee},E.prototype.onDevicePixelRatioChange=function(){this._updateDimensions()},E.prototype._refreshRowElements=function(b,ee){for(var te=this._rowElements.length;te<=ee;te++){var le=document.createElement("div");this._rowContainer.appendChild(le),this._rowElements.push(le)}for(;this._rowElements.length>ee;)this._rowContainer.removeChild(this._rowElements.pop())},E.prototype.onResize=function(b,ee){this._refreshRowElements(b,ee),this._updateDimensions()},E.prototype.onCharSizeChanged=function(){this._updateDimensions()},E.prototype.onBlur=function(){this._rowContainer.classList.remove("xterm-focus")},E.prototype.onFocus=function(){this._rowContainer.classList.add("xterm-focus")},E.prototype.onSelectionChanged=function(b,ee,te){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if(b&&ee){var le=b[1]-this._bufferService.buffer.ydisp,fe=ee[1]-this._bufferService.buffer.ydisp,he=Math.max(le,0),me=Math.min(fe,this._bufferService.rows-1);if(!(he>=this._bufferService.rows||me<0)){var ge=document.createDocumentFragment();if(te)ge.appendChild(this._createSelectionElement(he,b[0],ee[0],me-he+1));else{var Se=le===he?b[0]:0,ve=he===me?ee[0]:this._bufferService.cols;ge.appendChild(this._createSelectionElement(he,Se,ve));var be=me-he-1;if(ge.appendChild(this._createSelectionElement(he+1,0,this._bufferService.cols,be)),he!==me){var Pe=fe===me?ee[0]:this._bufferService.cols;ge.appendChild(this._createSelectionElement(me,0,Pe))}}this._selectionContainer.appendChild(ge)}}},E.prototype._createSelectionElement=function(b,ee,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=ee*this.dimensions.actualCellWidth+"px",fe.style.width=this.dimensions.actualCellWidth*(te-ee)+"px",fe},E.prototype.onCursorMove=function(){},E.prototype.onOptionsChanged=function(){this._updateDimensions(),this._injectCss()},E.prototype.clear=function(){for(var b=0,ee=this._rowElements;b<ee.length;b++)ee[b].innerHTML=""},E.prototype.renderRows=function(b,ee){for(var te=this._bufferService.buffer.ybase+this._bufferService.buffer.y,le=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),fe=this._optionsService.options.cursorBlink,he=b;he<=ee;he++){var me=this._rowElements[he];me.innerHTML="";var ge=he+this._bufferService.buffer.ydisp,Se=this._bufferService.buffer.lines.get(ge),ve=this._optionsService.options.cursorStyle;me.appendChild(this._rowFactory.createRow(Se,ge===te,ve,le,fe,this.dimensions.actualCellWidth,this._bufferService.cols))}},Object.defineProperty(E.prototype,"_terminalSelector",{get:function(){return".xterm-dom-renderer-owner-"+this._terminalClass},enumerable:!1,configurable:!0}),E.prototype.registerCharacterJoiner=function(b){return-1},E.prototype.deregisterCharacterJoiner=function(b){return!1},E.prototype._onLinkHover=function(b){this._setCellUnderline(b.x1,b.x2,b.y1,b.y2,b.cols,!0)},E.prototype._onLinkLeave=function(b){this._setCellUnderline(b.x1,b.x2,b.y1,b.y2,b.cols,!1)},E.prototype._setCellUnderline=function(b,ee,te,le,fe,he){for(;b!==ee||te!==le;){var me=this._rowElements[te];if(!me)return;var ge=me.children[b];ge&&(ge.style.textDecoration=he?"underline":"none"),++b>=fe&&(b=0,te++)}},E=pe([de(6,ce.ICharSizeService),de(7,ue.IOptionsService),de(8,ue.IBufferService)],E)}(se.Disposable);ye.DomRenderer=a},function(ft,ye,we){"use strict";Object.defineProperty(ye,"__esModule",{value:!0}),ye.DomRendererRowFactory=ye.CURSOR_STYLE_UNDERLINE_CLASS=ye.CURSOR_STYLE_BAR_CLASS=ye.CURSOR_STYLE_BLOCK_CLASS=ye.CURSOR_BLINK_CLASS=ye.CURSOR_CLASS=ye.UNDERLINE_CLASS=ye.ITALIC_CLASS=ye.DIM_CLASS=ye.BOLD_CLASS=void 0;var Ee=we(9),x=we(3),pe=we(4),de=we(10);ye.BOLD_CLASS="xterm-bold",ye.DIM_CLASS="xterm-dim",ye.ITALIC_CLASS="xterm-italic",ye.UNDERLINE_CLASS="xterm-underline",ye.CURSOR_CLASS="xterm-cursor",ye.CURSOR_BLINK_CLASS="xterm-cursor-blink",ye.CURSOR_STYLE_BLOCK_CLASS="xterm-cursor-block",ye.CURSOR_STYLE_BAR_CLASS="xterm-cursor-bar",ye.CURSOR_STYLE_UNDERLINE_CLASS="xterm-cursor-underline";var ae=function(){function se(ce,ue,ie){this._document=ce,this._optionsService=ue,this._colors=ie,this._workCell=new pe.CellData}return se.prototype.setColors=function(ce){this._colors=ce},se.prototype.createRow=function(ce,ue,ie,oe,re,z,a){for(var y=this._document.createDocumentFragment(),E=0,b=Math.min(ce.length,a)-1;b>=0;b--)if(ce.loadCell(b,this._workCell).getCode()!==x.NULL_CELL_CODE||ue&&b===oe){E=b+1;break}for(b=0;b<E;b++){ce.loadCell(b,this._workCell);var ee=this._workCell.getWidth();if(ee!==0){var te=this._document.createElement("span");if(ee>1&&(te.style.width=z*ee+"px"),ue&&b===oe)switch(te.classList.add(ye.CURSOR_CLASS),re&&te.classList.add(ye.CURSOR_BLINK_CLASS),ie){case"bar":te.classList.add(ye.CURSOR_STYLE_BAR_CLASS);break;case"underline":te.classList.add(ye.CURSOR_STYLE_UNDERLINE_CLASS);break;default:te.classList.add(ye.CURSOR_STYLE_BLOCK_CLASS)}this._workCell.isBold()&&te.classList.add(ye.BOLD_CLASS),this._workCell.isItalic()&&te.classList.add(ye.ITALIC_CLASS),this._workCell.isDim()&&te.classList.add(ye.DIM_CLASS),this._workCell.isUnderline()&&te.classList.add(ye.UNDERLINE_CLASS),this._workCell.isInvisible()?te.textContent=x.WHITESPACE_CELL_CHAR:te.textContent=this._workCell.getChars()||x.WHITESPACE_CELL_CHAR;var le=this._workCell.getFgColor(),fe=this._workCell.getFgColorMode(),he=this._workCell.getBgColor(),me=this._workCell.getBgColorMode(),ge=!!this._workCell.isInverse();if(ge){var Se=le;le=he,he=Se;var ve=fe;fe=me,me=ve}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 be=de.rgba.toColor(le>>16&255,le>>8&255,255&le);this._applyMinimumContrast(te,this._colors.background,be)||this._addStyle(te,"color:#"+ne(le.toString(16),"0",6));break;case 0:default:this._applyMinimumContrast(te,this._colors.background,this._colors.foreground)||ge&&te.classList.add("xterm-fg-"+Ee.INVERTED_DEFAULT_COLOR)}switch(me){case 16777216:case 33554432:te.classList.add("xterm-bg-"+he);break;case 50331648:this._addStyle(te,"background-color:#"+ne(he.toString(16),"0",6));break;case 0:default:ge&&te.classList.add("xterm-bg-"+Ee.INVERTED_DEFAULT_COLOR)}y.appendChild(te)}}return y},se.prototype._applyMinimumContrast=function(ce,ue,ie){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,ie,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)},se.prototype._addStyle=function(ce,ue){ce.setAttribute("style",""+(ce.getAttribute("style")||"")+ue+";")},se}();function ne(se,ce,ue){for(;se.length<ue;)se=ce+se;return se}ye.DomRendererRowFactory=ae},function(ft,ye,we){"use strict";Object.defineProperty(ye,"__esModule",{value:!0}),ye.evaluateKeyboardEvent=void 0;var Ee=we(12),x={48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};ye.evaluateKeyboardEvent=function(pe,de,ae,ne){var se={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"?se.key=de?Ee.C0.ESC+"OA":Ee.C0.ESC+"[A":pe.key==="UIKeyInputLeftArrow"?se.key=de?Ee.C0.ESC+"OD":Ee.C0.ESC+"[D":pe.key==="UIKeyInputRightArrow"?se.key=de?Ee.C0.ESC+"OC":Ee.C0.ESC+"[C":pe.key==="UIKeyInputDownArrow"&&(se.key=de?Ee.C0.ESC+"OB":Ee.C0.ESC+"[B");break;case 8:if(pe.shiftKey){se.key=Ee.C0.BS;break}if(pe.altKey){se.key=Ee.C0.ESC+Ee.C0.DEL;break}se.key=Ee.C0.DEL;break;case 9:if(pe.shiftKey){se.key=Ee.C0.ESC+"[Z";break}se.key=Ee.C0.HT,se.cancel=!0;break;case 13:se.key=pe.altKey?Ee.C0.ESC+Ee.C0.CR:Ee.C0.CR,se.cancel=!0;break;case 27:se.key=Ee.C0.ESC,pe.altKey&&(se.key=Ee.C0.ESC+Ee.C0.ESC),se.cancel=!0;break;case 37:if(pe.metaKey)break;ce?(se.key=Ee.C0.ESC+"[1;"+(ce+1)+"D",se.key===Ee.C0.ESC+"[1;3D"&&(se.key=Ee.C0.ESC+(ae?"b":"[1;5D"))):se.key=de?Ee.C0.ESC+"OD":Ee.C0.ESC+"[D";break;case 39:if(pe.metaKey)break;ce?(se.key=Ee.C0.ESC+"[1;"+(ce+1)+"C",se.key===Ee.C0.ESC+"[1;3C"&&(se.key=Ee.C0.ESC+(ae?"f":"[1;5C"))):se.key=de?Ee.C0.ESC+"OC":Ee.C0.ESC+"[C";break;case 38:if(pe.metaKey)break;ce?(se.key=Ee.C0.ESC+"[1;"+(ce+1)+"A",ae||se.key!==Ee.C0.ESC+"[1;3A"||(se.key=Ee.C0.ESC+"[1;5A")):se.key=de?Ee.C0.ESC+"OA":Ee.C0.ESC+"[A";break;case 40:if(pe.metaKey)break;ce?(se.key=Ee.C0.ESC+"[1;"+(ce+1)+"B",ae||se.key!==Ee.C0.ESC+"[1;3B"||(se.key=Ee.C0.ESC+"[1;5B")):se.key=de?Ee.C0.ESC+"OB":Ee.C0.ESC+"[B";break;case 45:pe.shiftKey||pe.ctrlKey||(se.key=Ee.C0.ESC+"[2~");break;case 46:se.key=ce?Ee.C0.ESC+"[3;"+(ce+1)+"~":Ee.C0.ESC+"[3~";break;case 36:se.key=ce?Ee.C0.ESC+"[1;"+(ce+1)+"H":de?Ee.C0.ESC+"OH":Ee.C0.ESC+"[H";break;case 35:se.key=ce?Ee.C0.ESC+"[1;"+(ce+1)+"F":de?Ee.C0.ESC+"OF":Ee.C0.ESC+"[F";break;case 33:pe.shiftKey?se.type=2:se.key=Ee.C0.ESC+"[5~";break;case 34:pe.shiftKey?se.type=3:se.key=Ee.C0.ESC+"[6~";break;case 112:se.key=ce?Ee.C0.ESC+"[1;"+(ce+1)+"P":Ee.C0.ESC+"OP";break;case 113:se.key=ce?Ee.C0.ESC+"[1;"+(ce+1)+"Q":Ee.C0.ESC+"OQ";break;case 114:se.key=ce?Ee.C0.ESC+"[1;"+(ce+1)+"R":Ee.C0.ESC+"OR";break;case 115:se.key=ce?Ee.C0.ESC+"[1;"+(ce+1)+"S":Ee.C0.ESC+"OS";break;case 116:se.key=ce?Ee.C0.ESC+"[15;"+(ce+1)+"~":Ee.C0.ESC+"[15~";break;case 117:se.key=ce?Ee.C0.ESC+"[17;"+(ce+1)+"~":Ee.C0.ESC+"[17~";break;case 118:se.key=ce?Ee.C0.ESC+"[18;"+(ce+1)+"~":Ee.C0.ESC+"[18~";break;case 119:se.key=ce?Ee.C0.ESC+"[19;"+(ce+1)+"~":Ee.C0.ESC+"[19~";break;case 120:se.key=ce?Ee.C0.ESC+"[20;"+(ce+1)+"~":Ee.C0.ESC+"[20~";break;case 121:se.key=ce?Ee.C0.ESC+"[21;"+(ce+1)+"~":Ee.C0.ESC+"[21~";break;case 122:se.key=ce?Ee.C0.ESC+"[23;"+(ce+1)+"~":Ee.C0.ESC+"[23~";break;case 123:se.key=ce?Ee.C0.ESC+"[24;"+(ce+1)+"~":Ee.C0.ESC+"[24~";break;default:if(!pe.ctrlKey||pe.shiftKey||pe.altKey||pe.metaKey)if(ae&&!ne||!pe.altKey||pe.metaKey)ae&&!pe.altKey&&!pe.ctrlKey&&pe.metaKey?pe.keyCode===65&&(se.type=1):pe.key&&!pe.ctrlKey&&!pe.altKey&&!pe.metaKey&&pe.keyCode>=48&&pe.key.length===1?se.key=pe.key:pe.key&&pe.ctrlKey&&pe.key==="_"&&(se.key=Ee.C0.US);else{var ue=x[pe.keyCode],ie=ue&&ue[pe.shiftKey?1:0];if(ie)se.key=Ee.C0.ESC+ie;else if(pe.keyCode>=65&&pe.keyCode<=90){var oe=pe.ctrlKey?pe.keyCode-64:pe.keyCode+32;se.key=Ee.C0.ESC+String.fromCharCode(oe)}}else pe.keyCode>=65&&pe.keyCode<=90?se.key=String.fromCharCode(pe.keyCode-64):pe.keyCode===32?se.key=Ee.C0.NUL:pe.keyCode>=51&&pe.keyCode<=55?se.key=String.fromCharCode(pe.keyCode-51+27):pe.keyCode===56?se.key=Ee.C0.DEL:pe.keyCode===219?se.key=Ee.C0.ESC:pe.keyCode===220?se.key=Ee.C0.FS:pe.keyCode===221&&(se.key=Ee.C0.GS)}return se}},function(ft,ye,we){"use strict";var Ee,x=this&&this.__extends||(Ee=function(z,a){return(Ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,E){y.__proto__=E}||function(y,E){for(var b in E)E.hasOwnProperty(b)&&(y[b]=E[b])})(z,a)},function(z,a){function y(){this.constructor=z}Ee(z,a),z.prototype=a===null?Object.create(a):(y.prototype=a.prototype,new y)}),pe=this&&this.__decorate||function(z,a,y,E){var b,ee=arguments.length,te=ee<3?a:E===null?E=Object.getOwnPropertyDescriptor(a,y):E;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")te=Reflect.decorate(z,a,y,E);else for(var le=z.length-1;le>=0;le--)(b=z[le])&&(te=(ee<3?b(te):ee>3?b(a,y,te):b(a,y))||te);return ee>3&&te&&Object.defineProperty(a,y,te),te},de=this&&this.__param||function(z,a){return function(y,E){a(y,E,z)}};Object.defineProperty(ye,"__esModule",{value:!0}),ye.RenderService=void 0;var ae=we(31),ne=we(0),se=we(2),ce=we(32),ue=we(7),ie=we(1),oe=we(5),re=function(z){function a(y,E,b,ee,te,le){var fe=z.call(this)||this;if(fe._renderer=y,fe._rowCount=E,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 ae.RenderDebouncer(function(me,ge){return fe._renderRows(me,ge)}),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(ee.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 he=new IntersectionObserver(function(me){return fe._onIntersectionChange(me[me.length-1])},{threshold:0});he.observe(b),fe.register({dispose:function(){return he.disconnect()}})}return fe}return x(a,z),Object.defineProperty(a.prototype,"onDimensionsChange",{get:function(){return this._onDimensionsChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"onRenderedBufferChange",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"onRefreshRequest",{get:function(){return this._onRefreshRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"dimensions",{get:function(){return this._renderer.dimensions},enumerable:!1,configurable:!0}),a.prototype._onIntersectionChange=function(y){this._isPaused=y.intersectionRatio===0,!this._isPaused&&this._needsFullRefresh&&(this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)},a.prototype.refreshRows=function(y,E,b){b===void 0&&(b=!1),this._isPaused?this._needsFullRefresh=!0:(b||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(y,E,this._rowCount))},a.prototype._renderRows=function(y,E){this._renderer.renderRows(y,E),this._needsSelectionRefresh&&(this._renderer.onSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRender.fire({start:y,end:E}),this._isNextRenderRedrawOnly=!0},a.prototype.resize=function(y,E){this._rowCount=E,this._fireOnCanvasResize()},a.prototype.changeOptions=function(){this._renderer.onOptionsChanged(),this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize()},a.prototype._fireOnCanvasResize=function(){this._renderer.dimensions.canvasWidth===this._canvasWidth&&this._renderer.dimensions.canvasHeight===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.dimensions)},a.prototype.dispose=function(){z.prototype.dispose.call(this)},a.prototype.setRenderer=function(y){var E=this;this._renderer.dispose(),this._renderer=y,this._renderer.onRequestRedraw(function(b){return E.refreshRows(b.start,b.end,!0)}),this._needsSelectionRefresh=!0,this._fullRefresh()},a.prototype._fullRefresh=function(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)},a.prototype.setColors=function(y){this._renderer.setColors(y),this._fullRefresh()},a.prototype.onDevicePixelRatioChange=function(){this._renderer.onDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1)},a.prototype.onResize=function(y,E){this._renderer.onResize(y,E),this._fullRefresh()},a.prototype.onCharSizeChanged=function(){this._renderer.onCharSizeChanged()},a.prototype.onBlur=function(){this._renderer.onBlur()},a.prototype.onFocus=function(){this._renderer.onFocus()},a.prototype.onSelectionChanged=function(y,E,b){this._selectionState.start=y,this._selectionState.end=E,this._selectionState.columnSelectMode=b,this._renderer.onSelectionChanged(y,E,b)},a.prototype.onCursorMove=function(){this._renderer.onCursorMove()},a.prototype.clear=function(){this._renderer.clear()},a.prototype.registerCharacterJoiner=function(y){return this._renderer.registerCharacterJoiner(y)},a.prototype.deregisterCharacterJoiner=function(y){return this._renderer.deregisterCharacterJoiner(y)},a=pe([de(3,ie.IOptionsService),de(4,oe.ICharSizeService),de(5,ie.IBufferService)],a)}(se.Disposable);ye.RenderService=re},function(ft,ye,we){"use strict";var Ee=this&&this.__decorate||function(se,ce,ue,ie){var oe,re=arguments.length,z=re<3?ce:ie===null?ie=Object.getOwnPropertyDescriptor(ce,ue):ie;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")z=Reflect.decorate(se,ce,ue,ie);else for(var a=se.length-1;a>=0;a--)(oe=se[a])&&(z=(re<3?oe(z):re>3?oe(ce,ue,z):oe(ce,ue))||z);return re>3&&z&&Object.defineProperty(ce,ue,z),z},x=this&&this.__param||function(se,ce){return function(ue,ie){ce(ue,ie,se)}};Object.defineProperty(ye,"__esModule",{value:!0}),ye.CharSizeService=void 0;var pe=we(1),de=we(0),ae=function(){function se(ce,ue,ie){this._optionsService=ie,this.width=0,this.height=0,this._onCharSizeChange=new de.EventEmitter,this._measureStrategy=new ne(ce,ue,this._optionsService)}return Object.defineProperty(se.prototype,"hasValidSize",{get:function(){return this.width>0&&this.height>0},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"onCharSizeChange",{get:function(){return this._onCharSizeChange.event},enumerable:!1,configurable:!0}),se.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())},se=Ee([x(2,pe.IOptionsService)],se)}();ye.CharSizeService=ae;var ne=function(){function se(ce,ue,ie){this._document=ce,this._parentElement=ue,this._optionsService=ie,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 se.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},se}()},function(ft,ye,we){"use strict";var Ee=this&&this.__decorate||function(ne,se,ce,ue){var ie,oe=arguments.length,re=oe<3?se:ue===null?ue=Object.getOwnPropertyDescriptor(se,ce):ue;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")re=Reflect.decorate(ne,se,ce,ue);else for(var z=ne.length-1;z>=0;z--)(ie=ne[z])&&(re=(oe<3?ie(re):oe>3?ie(se,ce,re):ie(se,ce))||re);return oe>3&&re&&Object.defineProperty(se,ce,re),re},x=this&&this.__param||function(ne,se){return function(ce,ue){se(ce,ue,ne)}};Object.defineProperty(ye,"__esModule",{value:!0}),ye.MouseService=void 0;var pe=we(5),de=we(30),ae=function(){function ne(se,ce){this._renderService=se,this._charSizeService=ce}return ne.prototype.getCoords=function(se,ce,ue,ie,oe){return de.getCoords(se,ce,ue,ie,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,oe)},ne.prototype.getRawByteCoords=function(se,ce,ue,ie){var oe=this.getCoords(se,ce,ue,ie);return de.getRawByteCoords(oe)},ne=Ee([x(0,pe.IRenderService),x(1,pe.ICharSizeService)],ne)}();ye.MouseService=ae},function(ft,ye,we){"use strict";var Ee,x=this&&this.__extends||(Ee=function(ie,oe){return(Ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(re,z){re.__proto__=z}||function(re,z){for(var a in z)z.hasOwnProperty(a)&&(re[a]=z[a])})(ie,oe)},function(ie,oe){function re(){this.constructor=ie}Ee(ie,oe),ie.prototype=oe===null?Object.create(oe):(re.prototype=oe.prototype,new re)}),pe=this&&this.__decorate||function(ie,oe,re,z){var a,y=arguments.length,E=y<3?oe:z===null?z=Object.getOwnPropertyDescriptor(oe,re):z;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(ie,oe,re,z);else for(var b=ie.length-1;b>=0;b--)(a=ie[b])&&(E=(y<3?a(E):y>3?a(oe,re,E):a(oe,re))||E);return y>3&&E&&Object.defineProperty(oe,re,E),E},de=this&&this.__param||function(ie,oe){return function(re,z){oe(re,z,ie)}};Object.defineProperty(ye,"__esModule",{value:!0}),ye.Linkifier2=void 0;var ae=we(1),ne=we(0),se=we(2),ce=we(7),ue=function(ie){function oe(re){var z=ie.call(this)||this;return z._bufferService=re,z._linkProviders=[],z._linkCacheDisposables=[],z._isMouseOut=!0,z._activeLine=-1,z._onShowLinkUnderline=z.register(new ne.EventEmitter),z._onHideLinkUnderline=z.register(new ne.EventEmitter),z.register(se.getDisposeArrayDisposable(z._linkCacheDisposables)),z}return x(oe,ie),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 z=this;return this._linkProviders.push(re),{dispose:function(){var a=z._linkProviders.indexOf(re);a!==-1&&z._linkProviders.splice(a,1)}}},oe.prototype.attachToDom=function(re,z,a){var y=this;this._element=re,this._mouseService=z,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 z=this._positionFromMouseEvent(re,this._element,this._mouseService);if(z){this._isMouseOut=!1;for(var a=re.composedPath(),y=0;y<a.length;y++){var E=a[y];if(E.classList.contains("xterm"))break;if(E.classList.contains("xterm-hover"))return}this._lastBufferCell&&z.x===this._lastBufferCell.x&&z.y===this._lastBufferCell.y||(this._onHover(z),this._lastBufferCell=z)}}},oe.prototype._onHover=function(re){if(this._activeLine!==re.y)return this._clearCurrentLink(),void this._askForLink(re,!1);this._currentLink&&this._linkAtPosition(this._currentLink.link,re)||(this._clearCurrentLink(),this._askForLink(re,!0))},oe.prototype._askForLink=function(re,z){var a=this;this._activeProviderReplies&&z||(this._activeProviderReplies=new Map,this._activeLine=re.y);var y=!1;this._linkProviders.forEach(function(E,b){var ee;z?!((ee=a._activeProviderReplies)===null||ee===void 0)&&ee.get(b)&&(y=a._checkLinkProviderResult(b,re,y)):E.provideLinks(re.y,function(te){var le,fe;if(!a._isMouseOut){var he=te==null?void 0:te.map(function(me){return{link:me}});(le=a._activeProviderReplies)===null||le===void 0||le.set(b,he),y=a._checkLinkProviderResult(b,re,y),((fe=a._activeProviderReplies)===null||fe===void 0?void 0:fe.size)===a._linkProviders.length&&a._removeIntersectingLinks(re.y,a._activeProviderReplies)}})})},oe.prototype._removeIntersectingLinks=function(re,z){for(var a=new Set,y=0;y<z.size;y++){var E=z.get(y);if(E)for(var b=0;b<E.length;b++)for(var ee=E[b],te=ee.link.range.start.y<re?0:ee.link.range.start.x,le=ee.link.range.end.y>re?this._bufferService.cols:ee.link.range.end.x,fe=te;fe<=le;fe++){if(a.has(fe)){E.splice(b--,1);break}a.add(fe)}}},oe.prototype._checkLinkProviderResult=function(re,z,a){var y,E=this;if(!this._activeProviderReplies)return a;for(var b=this._activeProviderReplies.get(re),ee=!1,te=0;te<re;te++)this._activeProviderReplies.has(te)&&!this._activeProviderReplies.get(te)||(ee=!0);if(!ee&&b){var le=b.find(function(he){return E._linkAtPosition(he.link,z)});le&&(a=!0,this._handleNewLink(le))}if(this._activeProviderReplies.size===this._linkProviders.length&&!a)for(te=0;te<this._activeProviderReplies.size;te++){var fe=(y=this._activeProviderReplies.get(te))===null||y===void 0?void 0:y.find(function(he){return E._linkAtPosition(he.link,z)});if(fe){a=!0,this._handleNewLink(fe);break}}return a},oe.prototype._onClick=function(re){if(this._element&&this._mouseService&&this._currentLink){var z=this._positionFromMouseEvent(re,this._element,this._mouseService);z&&this._linkAtPosition(this._currentLink.link,z)&&this._currentLink.link.activate(re,this._currentLink.link.text)}},oe.prototype._clearCurrentLink=function(re,z){this._element&&this._currentLink&&this._lastMouseEvent&&(!re||!z||this._currentLink.link.range.start.y>=re&&this._currentLink.link.range.end.y<=z)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,se.disposeArray(this._linkCacheDisposables))},oe.prototype._handleNewLink=function(re){var z=this;if(this._element&&this._lastMouseEvent&&this._mouseService){var a=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);a&&this._linkAtPosition(re.link,a)&&(this._currentLink=re,this._currentLink.state={decorations:{underline:re.link.decorations===void 0||re.link.decorations.underline,pointerCursor:re.link.decorations===void 0||re.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,re.link,this._lastMouseEvent),re.link.decorations={},Object.defineProperties(re.link.decorations,{pointerCursor:{get:function(){var y,E;return(E=(y=z._currentLink)===null||y===void 0?void 0:y.state)===null||E===void 0?void 0:E.decorations.pointerCursor},set:function(y){var E,b;!((E=z._currentLink)===null||E===void 0)&&E.state&&z._currentLink.state.decorations.pointerCursor!==y&&(z._currentLink.state.decorations.pointerCursor=y,z._currentLink.state.isHovered&&((b=z._element)===null||b===void 0||b.classList.toggle("xterm-cursor-pointer",y)))}},underline:{get:function(){var y,E;return(E=(y=z._currentLink)===null||y===void 0?void 0:y.state)===null||E===void 0?void 0:E.decorations.underline},set:function(y){var E,b,ee;!((E=z._currentLink)===null||E===void 0)&&E.state&&((ee=(b=z._currentLink)===null||b===void 0?void 0:b.state)===null||ee===void 0?void 0:ee.decorations.underline)!==y&&(z._currentLink.state.decorations.underline=y,z._currentLink.state.isHovered&&z._fireUnderlineEvent(re.link,y))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedBufferChange(function(y){var E=y.start===0?0:y.start+1+z._bufferService.buffer.ydisp;z._clearCurrentLink(E,y.end+1+z._bufferService.buffer.ydisp)})))}},oe.prototype._linkHover=function(re,z,a){var y;!((y=this._currentLink)===null||y===void 0)&&y.state&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(z,!0),this._currentLink.state.decorations.pointerCursor&&re.classList.add("xterm-cursor-pointer")),z.hover&&z.hover(a,z.text)},oe.prototype._fireUnderlineEvent=function(re,z){var a=re.range,y=this._bufferService.buffer.ydisp,E=this._createLinkUnderlineEvent(a.start.x-1,a.start.y-y-1,a.end.x,a.end.y-y-1,void 0);(z?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(E)},oe.prototype._linkLeave=function(re,z,a){var y;!((y=this._currentLink)===null||y===void 0)&&y.state&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(z,!1),this._currentLink.state.decorations.pointerCursor&&re.classList.remove("xterm-cursor-pointer")),z.leave&&z.leave(a,z.text)},oe.prototype._linkAtPosition=function(re,z){var a=re.range.start.y===re.range.end.y,y=re.range.start.y<z.y,E=re.range.end.y>z.y;return(a&&re.range.start.x<=z.x&&re.range.end.x>=z.x||y&&re.range.end.x>=z.x||E&&re.range.start.x<=z.x||y&&E)&&re.range.start.y<=z.y&&re.range.end.y>=z.y},oe.prototype._positionFromMouseEvent=function(re,z,a){var y=a.getCoords(re,z,this._bufferService.cols,this._bufferService.rows);if(y)return{x:y[0],y:y[1]+this._bufferService.buffer.ydisp}},oe.prototype._createLinkUnderlineEvent=function(re,z,a,y,E){return{x1:re,y1:z,x2:a,y2:y,cols:this._bufferService.cols,fg:E}},oe=pe([de(0,ae.IBufferService)],oe)}(se.Disposable);ye.Linkifier2=ue},function(ft,ye,we){"use strict";Object.defineProperty(ye,"__esModule",{value:!0}),ye.CoreBrowserService=void 0;var Ee=function(){function x(pe){this._textarea=pe}return Object.defineProperty(x.prototype,"isFocused",{get:function(){return document.activeElement===this._textarea&&document.hasFocus()},enumerable:!1,configurable:!0}),x}();ye.CoreBrowserService=Ee},function(ft,ye,we){"use strict";var Ee,x=this&&this.__extends||(Ee=function(te,le){return(Ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(fe,he){fe.__proto__=he}||function(fe,he){for(var me in he)he.hasOwnProperty(me)&&(fe[me]=he[me])})(te,le)},function(te,le){function fe(){this.constructor=te}Ee(te,le),te.prototype=le===null?Object.create(le):(fe.prototype=le.prototype,new fe)});Object.defineProperty(ye,"__esModule",{value:!0}),ye.CoreTerminal=void 0;var pe=we(2),de=we(1),ae=we(66),ne=we(67),se=we(68),ce=we(74),ue=we(75),ie=we(0),oe=we(76),re=we(77),z=we(78),a=we(80),y=we(81),E=we(19),b=we(82),ee=function(te){function le(fe){var he=te.call(this)||this;return he._onBinary=new ie.EventEmitter,he._onData=new ie.EventEmitter,he._onLineFeed=new ie.EventEmitter,he._onResize=new ie.EventEmitter,he._onScroll=new ie.EventEmitter,he._instantiationService=new ae.InstantiationService,he.optionsService=new ce.OptionsService(fe),he._instantiationService.setService(de.IOptionsService,he.optionsService),he._bufferService=he.register(he._instantiationService.createInstance(se.BufferService)),he._instantiationService.setService(de.IBufferService,he._bufferService),he._logService=he._instantiationService.createInstance(ne.LogService),he._instantiationService.setService(de.ILogService,he._logService),he._coreService=he.register(he._instantiationService.createInstance(ue.CoreService,function(){return he.scrollToBottom()})),he._instantiationService.setService(de.ICoreService,he._coreService),he._coreMouseService=he._instantiationService.createInstance(oe.CoreMouseService),he._instantiationService.setService(de.ICoreMouseService,he._coreMouseService),he._dirtyRowService=he._instantiationService.createInstance(re.DirtyRowService),he._instantiationService.setService(de.IDirtyRowService,he._dirtyRowService),he.unicodeService=he._instantiationService.createInstance(z.UnicodeService),he._instantiationService.setService(de.IUnicodeService,he.unicodeService),he._charsetService=he._instantiationService.createInstance(a.CharsetService),he._instantiationService.setService(de.ICharsetService,he._charsetService),he._inputHandler=new E.InputHandler(he._bufferService,he._charsetService,he._coreService,he._dirtyRowService,he._logService,he.optionsService,he._coreMouseService,he.unicodeService),he.register(ie.forwardEvent(he._inputHandler.onLineFeed,he._onLineFeed)),he.register(he._inputHandler),he.register(ie.forwardEvent(he._bufferService.onResize,he._onResize)),he.register(ie.forwardEvent(he._coreService.onData,he._onData)),he.register(ie.forwardEvent(he._coreService.onBinary,he._onBinary)),he.register(he.optionsService.onOptionChange(function(me){return he._updateOptions(me)})),he._writeBuffer=new b.WriteBuffer(function(me){return he._inputHandler.parse(me)}),he}return x(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,he){this._writeBuffer.write(fe,he)},le.prototype.writeSync=function(fe){this._writeBuffer.writeSync(fe)},le.prototype.resize=function(fe,he){isNaN(fe)||isNaN(he)||(fe=Math.max(fe,se.MINIMUM_COLS),he=Math.max(he,se.MINIMUM_ROWS),this._bufferService.resize(fe,he))},le.prototype.scroll=function(fe,he){he===void 0&&(he=!1);var me,ge=this._bufferService.buffer;(me=this._cachedBlankLine)&&me.length===this.cols&&me.getFg(0)===fe.fg&&me.getBg(0)===fe.bg||(me=ge.getBlankLine(fe,he),this._cachedBlankLine=me),me.isWrapped=he;var Se=ge.ybase+ge.scrollTop,ve=ge.ybase+ge.scrollBottom;if(ge.scrollTop===0){var be=ge.lines.isFull;ve===ge.lines.length-1?be?ge.lines.recycle().copyFrom(me):ge.lines.push(me.clone()):ge.lines.splice(ve+1,0,me.clone()),be?this._bufferService.isUserScrolling&&(ge.ydisp=Math.max(ge.ydisp-1,0)):(ge.ybase++,this._bufferService.isUserScrolling||ge.ydisp++)}else{var Pe=ve-Se+1;ge.lines.shiftElements(Se+1,Pe-1,-1),ge.lines.set(ve,me.clone())}this._bufferService.isUserScrolling||(ge.ydisp=ge.ybase),this._dirtyRowService.markRangeDirty(ge.scrollTop,ge.scrollBottom),this._onScroll.fire(ge.ydisp)},le.prototype.scrollLines=function(fe,he){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 ge=me.ydisp;me.ydisp=Math.max(Math.min(me.ydisp+fe,me.ybase),0),ge!==me.ydisp&&(he||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 he=fe-this._bufferService.buffer.ydisp;he!==0&&this.scrollLines(he)},le.prototype.addEscHandler=function(fe,he){return this._inputHandler.addEscHandler(fe,he)},le.prototype.addDcsHandler=function(fe,he){return this._inputHandler.addDcsHandler(fe,he)},le.prototype.addCsiHandler=function(fe,he){return this._inputHandler.addCsiHandler(fe,he)},le.prototype.addOscHandler=function(fe,he){return this._inputHandler.addOscHandler(fe,he)},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 he;switch(fe){case"scrollback":this.buffers.resize(this.cols,this.rows);break;case"windowsMode":this.optionsService.options.windowsMode?this._enableWindowsMode():((he=this._windowsMode)===null||he===void 0||he.dispose(),this._windowsMode=void 0)}},le.prototype._enableWindowsMode=function(){var fe=this;if(!this._windowsMode){var he=[];he.push(this.onLineFeed(y.updateWindowsModeWrappedState.bind(null,this._bufferService))),he.push(this.addCsiHandler({final:"H"},function(){return y.updateWindowsModeWrappedState(fe._bufferService),!1})),this._windowsMode={dispose:function(){for(var me=0,ge=he;me<ge.length;me++)ge[me].dispose()}}}},le}(pe.Disposable);ye.CoreTerminal=ee},function(ft,ye,we){"use strict";var Ee=this&&this.__spreadArrays||function(){for(var ne=0,se=0,ce=arguments.length;se<ce;se++)ne+=arguments[se].length;var ue=Array(ne),ie=0;for(se=0;se<ce;se++)for(var oe=arguments[se],re=0,z=oe.length;re<z;re++,ie++)ue[ie]=oe[re];return ue};Object.defineProperty(ye,"__esModule",{value:!0}),ye.InstantiationService=ye.ServiceCollection=void 0;var x=we(1),pe=we(14),de=function(){function ne(){for(var se=[],ce=0;ce<arguments.length;ce++)se[ce]=arguments[ce];this._entries=new Map;for(var ue=0,ie=se;ue<ie.length;ue++){var oe=ie[ue],re=oe[0],z=oe[1];this.set(re,z)}}return ne.prototype.set=function(se,ce){var ue=this._entries.get(se);return this._entries.set(se,ce),ue},ne.prototype.forEach=function(se){this._entries.forEach(function(ce,ue){return se(ue,ce)})},ne.prototype.has=function(se){return this._entries.has(se)},ne.prototype.get=function(se){return this._entries.get(se)},ne}();ye.ServiceCollection=de;var ae=function(){function ne(){this._services=new de,this._services.set(x.IInstantiationService,this)}return ne.prototype.setService=function(se,ce){this._services.set(se,ce)},ne.prototype.getService=function(se){return this._services.get(se)},ne.prototype.createInstance=function(se){for(var ce=[],ue=1;ue<arguments.length;ue++)ce[ue-1]=arguments[ue];for(var ie=pe.getServiceDependencies(se).sort(function(b,ee){return b.index-ee.index}),oe=[],re=0,z=ie;re<z.length;re++){var a=z[re],y=this._services.get(a.id);if(!y)throw new Error("[createInstance] "+se.name+" depends on UNKNOWN service "+a.id+".");oe.push(y)}var E=ie.length>0?ie[0].index:ce.length;if(ce.length!==E)throw new Error("[createInstance] First service dependency of "+se.name+" at position "+(E+1)+" conflicts with "+ce.length+" static arguments");return new(se.bind.apply(se,Ee([void 0],Ee(ce,oe))))},ne}();ye.InstantiationService=ae},function(ft,ye,we){"use strict";var Ee=this&&this.__decorate||function(ce,ue,ie,oe){var re,z=arguments.length,a=z<3?ue:oe===null?oe=Object.getOwnPropertyDescriptor(ue,ie):oe;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(ce,ue,ie,oe);else for(var y=ce.length-1;y>=0;y--)(re=ce[y])&&(a=(z<3?re(a):z>3?re(ue,ie,a):re(ue,ie))||a);return z>3&&a&&Object.defineProperty(ue,ie,a),a},x=this&&this.__param||function(ce,ue){return function(ie,oe){ue(ie,oe,ce)}},pe=this&&this.__spreadArrays||function(){for(var ce=0,ue=0,ie=arguments.length;ue<ie;ue++)ce+=arguments[ue].length;var oe=Array(ce),re=0;for(ue=0;ue<ie;ue++)for(var z=arguments[ue],a=0,y=z.length;a<y;a++,re++)oe[re]=z[a];return oe};Object.defineProperty(ye,"__esModule",{value:!0}),ye.LogService=ye.LogLevel=void 0;var de,ae=we(1);(function(ce){ce[ce.DEBUG=0]="DEBUG",ce[ce.INFO=1]="INFO",ce[ce.WARN=2]="WARN",ce[ce.ERROR=3]="ERROR",ce[ce.OFF=4]="OFF"})(de=ye.LogLevel||(ye.LogLevel={}));var ne={debug:de.DEBUG,info:de.INFO,warn:de.WARN,error:de.ERROR,off:de.OFF},se=function(){function ce(ue){var ie=this;this._optionsService=ue,this._updateLogLevel(),this._optionsService.onOptionChange(function(oe){oe==="logLevel"&&ie._updateLogLevel()})}return ce.prototype._updateLogLevel=function(){this._logLevel=ne[this._optionsService.options.logLevel]},ce.prototype._evalLazyOptionalParams=function(ue){for(var ie=0;ie<ue.length;ie++)typeof ue[ie]=="function"&&(ue[ie]=ue[ie]())},ce.prototype._log=function(ue,ie,oe){this._evalLazyOptionalParams(oe),ue.call.apply(ue,pe([console,"xterm.js: "+ie],oe))},ce.prototype.debug=function(ue){for(var ie=[],oe=1;oe<arguments.length;oe++)ie[oe-1]=arguments[oe];this._logLevel<=de.DEBUG&&this._log(console.log,ue,ie)},ce.prototype.info=function(ue){for(var ie=[],oe=1;oe<arguments.length;oe++)ie[oe-1]=arguments[oe];this._logLevel<=de.INFO&&this._log(console.info,ue,ie)},ce.prototype.warn=function(ue){for(var ie=[],oe=1;oe<arguments.length;oe++)ie[oe-1]=arguments[oe];this._logLevel<=de.WARN&&this._log(console.warn,ue,ie)},ce.prototype.error=function(ue){for(var ie=[],oe=1;oe<arguments.length;oe++)ie[oe-1]=arguments[oe];this._logLevel<=de.ERROR&&this._log(console.error,ue,ie)},ce=Ee([x(0,ae.IOptionsService)],ce)}();ye.LogService=se},function(ft,ye,we){"use strict";var Ee,x=this&&this.__extends||(Ee=function(ie,oe){return(Ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(re,z){re.__proto__=z}||function(re,z){for(var a in z)z.hasOwnProperty(a)&&(re[a]=z[a])})(ie,oe)},function(ie,oe){function re(){this.constructor=ie}Ee(ie,oe),ie.prototype=oe===null?Object.create(oe):(re.prototype=oe.prototype,new re)}),pe=this&&this.__decorate||function(ie,oe,re,z){var a,y=arguments.length,E=y<3?oe:z===null?z=Object.getOwnPropertyDescriptor(oe,re):z;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(ie,oe,re,z);else for(var b=ie.length-1;b>=0;b--)(a=ie[b])&&(E=(y<3?a(E):y>3?a(oe,re,E):a(oe,re))||E);return y>3&&E&&Object.defineProperty(oe,re,E),E},de=this&&this.__param||function(ie,oe){return function(re,z){oe(re,z,ie)}};Object.defineProperty(ye,"__esModule",{value:!0}),ye.BufferService=ye.MINIMUM_ROWS=ye.MINIMUM_COLS=void 0;var ae=we(1),ne=we(69),se=we(0),ce=we(2);ye.MINIMUM_COLS=2,ye.MINIMUM_ROWS=1;var ue=function(ie){function oe(re){var z=ie.call(this)||this;return z._optionsService=re,z.isUserScrolling=!1,z._onResize=new se.EventEmitter,z.cols=Math.max(re.options.cols,ye.MINIMUM_COLS),z.rows=Math.max(re.options.rows,ye.MINIMUM_ROWS),z.buffers=new ne.BufferSet(re,z),z}return x(oe,ie),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(){ie.prototype.dispose.call(this),this.buffers.dispose()},oe.prototype.resize=function(re,z){this.cols=re,this.rows=z,this.buffers.resize(re,z),this.buffers.setupTabStops(this.cols),this._onResize.fire({cols:re,rows:z})},oe.prototype.reset=function(){this.buffers.dispose(),this.buffers=new ne.BufferSet(this._optionsService,this),this.isUserScrolling=!1},oe=pe([de(0,ae.IOptionsService)],oe)}(ce.Disposable);ye.BufferService=ue},function(ft,ye,we){"use strict";var Ee,x=this&&this.__extends||(Ee=function(ne,se){return(Ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ce,ue){ce.__proto__=ue}||function(ce,ue){for(var ie in ue)ue.hasOwnProperty(ie)&&(ce[ie]=ue[ie])})(ne,se)},function(ne,se){function ce(){this.constructor=ne}Ee(ne,se),ne.prototype=se===null?Object.create(se):(ce.prototype=se.prototype,new ce)});Object.defineProperty(ye,"__esModule",{value:!0}),ye.BufferSet=void 0;var pe=we(70),de=we(0),ae=function(ne){function se(ce,ue){var ie=ne.call(this)||this;return ie._onBufferActivate=ie.register(new de.EventEmitter),ie._normal=new pe.Buffer(!0,ce,ue),ie._normal.fillViewportRows(),ie._alt=new pe.Buffer(!1,ce,ue),ie._activeBuffer=ie._normal,ie.setupTabStops(),ie}return x(se,ne),Object.defineProperty(se.prototype,"onBufferActivate",{get:function(){return this._onBufferActivate.event},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"alt",{get:function(){return this._alt},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"active",{get:function(){return this._activeBuffer},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"normal",{get:function(){return this._normal},enumerable:!1,configurable:!0}),se.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}))},se.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}))},se.prototype.resize=function(ce,ue){this._normal.resize(ce,ue),this._alt.resize(ce,ue)},se.prototype.setupTabStops=function(ce){this._normal.setupTabStops(ce),this._alt.setupTabStops(ce)},se}(we(2).Disposable);ye.BufferSet=ae},function(ft,ye,we){"use strict";Object.defineProperty(ye,"__esModule",{value:!0}),ye.BufferStringIterator=ye.Buffer=ye.MAX_BUFFER_SIZE=void 0;var Ee=we(71),x=we(16),pe=we(4),de=we(3),ae=we(72),ne=we(73),se=we(20),ce=we(6);ye.MAX_BUFFER_SIZE=4294967295;var ue=function(){function oe(re,z,a){this._hasScrollback=re,this._optionsService=z,this._bufferService=a,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.savedY=0,this.savedX=0,this.savedCurAttrData=x.DEFAULT_ATTR_DATA.clone(),this.savedCharset=se.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 Ee.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,z){return new x.BufferLine(this._bufferService.cols,this.getNullCell(re),z)},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&&re<this._rows},enumerable:!1,configurable:!0}),oe.prototype._getCorrectBufferLength=function(re){if(!this._hasScrollback)return re;var z=re+this._optionsService.options.scrollback;return z>ye.MAX_BUFFER_SIZE?ye.MAX_BUFFER_SIZE:z},oe.prototype.fillViewportRows=function(re){if(this.lines.length===0){re===void 0&&(re=x.DEFAULT_ATTR_DATA);for(var z=this._rows;z--;)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 Ee.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()},oe.prototype.resize=function(re,z){var a=this.getNullCell(x.DEFAULT_ATTR_DATA),y=this._getCorrectBufferLength(z);if(y>this.lines.maxLength&&(this.lines.maxLength=y),this.lines.length>0){if(this._cols<re)for(var E=0;E<this.lines.length;E++)this.lines.get(E).resize(re,a);var b=0;if(this._rows<z)for(var ee=this._rows;ee<z;ee++)this.lines.length<z+this.ybase&&(this._optionsService.options.windowsMode?this.lines.push(new x.BufferLine(re,a)):this.ybase>0&&this.lines.length<=this.ybase+this.y+b+1?(this.ybase--,b++,this.ydisp>0&&this.ydisp--):this.lines.push(new x.BufferLine(re,a)));else for(ee=this._rows;ee>z;ee--)this.lines.length>z+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(y<this.lines.maxLength){var te=this.lines.length-y;te>0&&(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,z-1),b&&(this.y+=b),this.savedX=Math.min(this.savedX,re-1),this.scrollTop=0}if(this.scrollBottom=z-1,this._isReflowEnabled&&(this._reflow(re,z),this._cols>re))for(E=0;E<this.lines.length;E++)this.lines.get(E).resize(re,a);this._cols=re,this._rows=z},Object.defineProperty(oe.prototype,"_isReflowEnabled",{get:function(){return this._hasScrollback&&!this._optionsService.options.windowsMode},enumerable:!1,configurable:!0}),oe.prototype._reflow=function(re,z){this._cols!==re&&(re>this._cols?this._reflowLarger(re,z):this._reflowSmaller(re,z))},oe.prototype._reflowLarger=function(re,z){var a=ae.reflowLargerGetLinesToRemove(this.lines,this._cols,re,this.ybase+this.y,this.getNullCell(x.DEFAULT_ATTR_DATA));if(a.length>0){var y=ae.reflowLargerCreateNewLayout(this.lines,a);ae.reflowLargerApplyNewLayout(this.lines,y.layout),this._reflowLargerAdjustViewport(re,z,y.countRemoved)}},oe.prototype._reflowLargerAdjustViewport=function(re,z,a){for(var y=this.getNullCell(x.DEFAULT_ATTR_DATA),E=a;E-- >0;)this.ybase===0?(this.y>0&&this.y--,this.lines.length<z&&this.lines.push(new x.BufferLine(re,y))):(this.ydisp===this.ybase&&this.ydisp--,this.ybase--);this.savedY=Math.max(this.savedY-a,0)},oe.prototype._reflowSmaller=function(re,z){for(var a=this.getNullCell(x.DEFAULT_ATTR_DATA),y=[],E=0,b=this.lines.length-1;b>=0;b--){var ee=this.lines.get(b);if(!(!ee||!ee.isWrapped&&ee.getTrimmedLength()<=re)){for(var te=[ee];ee.isWrapped&&b>0;)ee=this.lines.get(--b),te.unshift(ee);var le=this.ybase+this.y;if(!(le>=b&&le<b+te.length)){var fe=te[te.length-1].getTrimmedLength(),he=ae.reflowSmallerGetNewLineLengths(te,this._cols,re),me=he.length-te.length,ge=void 0;ge=this.ybase===0&&this.y!==this.lines.length-1?Math.max(0,this.y-this.lines.maxLength+me):Math.max(0,this.lines.length-this.lines.maxLength+me);for(var Se=[],ve=0;ve<me;ve++){var be=this.getBlankLine(x.DEFAULT_ATTR_DATA,!0);Se.push(be)}Se.length>0&&(y.push({start:b+te.length+E,newLines:Se}),E+=Se.length),te.push.apply(te,Se);var Pe=he.length-1,Te=he[Pe];Te===0&&(Te=he[--Pe]);for(var _e=te.length-me-1,je=fe;_e>=0;){var Ce=Math.min(je,Te);if(te[Pe].copyCellsFrom(te[_e],je-Ce,Te-Ce,Ce,!0),(Te-=Ce)===0&&(Te=he[--Pe]),(je-=Ce)===0){_e--;var Ie=Math.max(_e,0);je=ae.getWrappedLineTrimmedLength(te,Ie,this._cols)}}for(ve=0;ve<te.length;ve++)he[ve]<re&&te[ve].setCell(he[ve],a);for(var ke=me-ge;ke-- >0;)this.ybase===0?this.y<z-1?(this.y++,this.lines.pop()):(this.ybase++,this.ydisp++):this.ybase<Math.min(this.lines.maxLength,this.lines.length+E)-z&&(this.ybase===this.ydisp&&this.ydisp++,this.ybase++);this.savedY=Math.min(this.savedY+me,this.ybase+z-1)}}}if(y.length>0){var $e=[],Ne=[];for(ve=0;ve<this.lines.length;ve++)Ne.push(this.lines.get(ve));var nt=this.lines.length,qe=nt-1,Je=0,Ye=y[Je];this.lines.length=Math.min(this.lines.maxLength,this.lines.length+E);var We=0;for(ve=Math.min(this.lines.maxLength-1,nt+E-1);ve>=0;ve--)if(Ye&&Ye.start>qe+We){for(var Fe=Ye.newLines.length-1;Fe>=0;Fe--)this.lines.set(ve--,Ye.newLines[Fe]);ve++,$e.push({index:qe+1,amount:Ye.newLines.length}),We+=Ye.newLines.length,Ye=y[++Je]}else this.lines.set(ve,Ne[qe--]);var Ue=0;for(ve=$e.length-1;ve>=0;ve--)$e[ve].index+=Ue,this.lines.onInsertEmitter.fire($e[ve]),Ue+=$e[ve].amount;var at=Math.max(0,nt+E-this.lines.maxLength);at>0&&this.lines.onTrimEmitter.fire(at)}},oe.prototype.stringIndexToBufferIndex=function(re,z,a){for(a===void 0&&(a=!1);z;){var y=this.lines.get(re);if(!y)return[-1,-1];for(var E=a?y.getTrimmedLength():y.length,b=0;b<E;++b)if(y.get(b)[de.CHAR_DATA_WIDTH_INDEX]&&(z-=y.get(b)[de.CHAR_DATA_CHAR_INDEX].length||1),z<0)return[re,b];re++}return[re,0]},oe.prototype.translateBufferLineToString=function(re,z,a,y){a===void 0&&(a=0);var E=this.lines.get(re);return E?E.translateToString(z,a,y):""},oe.prototype.getWrappedRangeForLine=function(re){for(var z=re,a=re;z>0&&this.lines.get(z).isWrapped;)z--;for(;a+1<this.lines.length&&this.lines.get(a+1).isWrapped;)a++;return{first:z,last:a}},oe.prototype.setupTabStops=function(re){for(re!=null?this.tabs[re]||(re=this.prevStop(re)):(this.tabs={},re=0);re<this._cols;re+=this._optionsService.options.tabStopWidth)this.tabs[re]=!0},oe.prototype.prevStop=function(re){for(re==null&&(re=this.x);!this.tabs[--re]&&re>0;);return re>=this._cols?this._cols-1:re<0?0:re},oe.prototype.nextStop=function(re){for(re==null&&(re=this.x);!this.tabs[++re]&&re<this._cols;);return re>=this._cols?this._cols-1:re<0?0:re},oe.prototype.addMarker=function(re){var z=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.line<y.index+y.amount&&a.dispose(),a.line>y.index&&(a.line-=y.amount)})),a.register(a.onDispose(function(){return z._removeMarker(a)})),a},oe.prototype._removeMarker=function(re){this.markers.splice(this.markers.indexOf(re),1)},oe.prototype.iterator=function(re,z,a,y,E){return new ie(this,re,z,a,y,E)},oe}();ye.Buffer=ue;var ie=function(){function oe(re,z,a,y,E,b){a===void 0&&(a=0),y===void 0&&(y=re.lines.length),E===void 0&&(E=0),b===void 0&&(b=0),this._buffer=re,this._trimRight=z,this._startIndex=a,this._endIndex=y,this._startOverscan=E,this._endOverscan=b,this._startIndex<0&&(this._startIndex=0),this._endIndex>this._buffer.lines.length&&(this._endIndex=this._buffer.lines.length),this._current=this._startIndex}return oe.prototype.hasNext=function(){return this._current<this._endIndex},oe.prototype.next=function(){var re=this._buffer.getWrappedRangeForLine(this._current);re.first<this._startIndex-this._startOverscan&&(re.first=this._startIndex-this._startOverscan),re.last>this._endIndex+this._endOverscan&&(re.last=this._endIndex+this._endOverscan),re.first=Math.max(re.first,0),re.last=Math.min(re.last,this._buffer.lines.length);for(var z="",a=re.first;a<=re.last;++a)z+=this._buffer.translateBufferLineToString(a,this._trimRight);return this._current=re.last+1,{range:re,content:z}},oe}();ye.BufferStringIterator=ie},function(ft,ye,we){"use strict";Object.defineProperty(ye,"__esModule",{value:!0}),ye.CircularList=void 0;var Ee=we(0),x=function(){function pe(de){this._maxLength=de,this.onDeleteEmitter=new Ee.EventEmitter,this.onInsertEmitter=new Ee.EventEmitter,this.onTrimEmitter=new Ee.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 ae=new Array(de),ne=0;ne<Math.min(de,this.length);ne++)ae[ne]=this._array[this._getCyclicIndex(ne)];this._array=ae,this._maxLength=de,this._startIndex=0}},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"length",{get:function(){return this._length},set:function(de){if(de>this._length)for(var ae=this._length;ae<de;ae++)this._array[ae]=void 0;this._length=de},enumerable:!1,configurable:!0}),pe.prototype.get=function(de){return this._array[this._getCyclicIndex(de)]},pe.prototype.set=function(de,ae){this._array[this._getCyclicIndex(de)]=ae},pe.prototype.push=function(de){this._array[this._getCyclicIndex(this._length)]=de,this._length===this._maxLength?(this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1)):this._length++},pe.prototype.recycle=function(){if(this._length!==this._maxLength)throw new Error("Can only recycle when the buffer is full");return this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1),this._array[this._getCyclicIndex(this._length-1)]},Object.defineProperty(pe.prototype,"isFull",{get:function(){return this._length===this._maxLength},enumerable:!1,configurable:!0}),pe.prototype.pop=function(){return this._array[this._getCyclicIndex(this._length---1)]},pe.prototype.splice=function(de,ae){for(var ne=[],se=2;se<arguments.length;se++)ne[se-2]=arguments[se];if(ae){for(var ce=de;ce<this._length-ae;ce++)this._array[this._getCyclicIndex(ce)]=this._array[this._getCyclicIndex(ce+ae)];this._length-=ae}for(ce=this._length-1;ce>=de;ce--)this._array[this._getCyclicIndex(ce+ne.length)]=this._array[this._getCyclicIndex(ce)];for(ce=0;ce<ne.length;ce++)this._array[this._getCyclicIndex(de+ce)]=ne[ce];if(this._length+ne.length>this._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,ae,ne){if(!(ae<=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 se=ae-1;se>=0;se--)this.set(de+se+ne,this.get(de+se));var ce=de+ae+ne-this._length;if(ce>0)for(this._length+=ce;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(se=0;se<ae;se++)this.set(de+se+ne,this.get(de+se))}},pe.prototype._getCyclicIndex=function(de){return(this._startIndex+de)%this._maxLength},pe}();ye.CircularList=x},function(ft,ye,we){"use strict";function Ee(x,pe,de){if(pe===x.length-1)return x[pe].getTrimmedLength();var ae=!x[pe].hasContent(de-1)&&x[pe].getWidth(de-1)===1,ne=x[pe+1].getWidth(0)===2;return ae&&ne?de-1:de}Object.defineProperty(ye,"__esModule",{value:!0}),ye.getWrappedLineTrimmedLength=ye.reflowSmallerGetNewLineLengths=ye.reflowLargerApplyNewLayout=ye.reflowLargerCreateNewLayout=ye.reflowLargerGetLinesToRemove=void 0,ye.reflowLargerGetLinesToRemove=function(x,pe,de,ae,ne){for(var se=[],ce=0;ce<x.length-1;ce++){var ue=ce,ie=x.get(++ue);if(ie.isWrapped){for(var oe=[x.get(ce)];ue<x.length&&ie.isWrapped;)oe.push(ie),ie=x.get(++ue);if(ae>=ce&&ae<ue)ce+=oe.length-1;else{for(var re=0,z=Ee(oe,re,pe),a=1,y=0;a<oe.length;){var E=Ee(oe,a,pe),b=E-y,ee=de-z,te=Math.min(b,ee);oe[re].copyCellsFrom(oe[a],y,z,te,!1),(z+=te)===de&&(re++,z=0),(y+=te)===E&&(a++,y=0),z===0&&re!==0&&oe[re-1].getWidth(de-1)===2&&(oe[re].copyCellsFrom(oe[re-1],de-1,z++,1,!1),oe[re-1].setCell(de-1,ne))}oe[re].replaceCells(z,de,ne);for(var le=0,fe=oe.length-1;fe>0&&(fe>re||oe[fe].getTrimmedLength()===0);fe--)le++;le>0&&(se.push(ce+oe.length-le),se.push(le)),ce+=oe.length-1}}}return se},ye.reflowLargerCreateNewLayout=function(x,pe){for(var de=[],ae=0,ne=pe[ae],se=0,ce=0;ce<x.length;ce++)if(ne===ce){var ue=pe[++ae];x.onDeleteEmitter.fire({index:ce-se,amount:ue}),ce+=ue-1,se+=ue,ne=pe[++ae]}else de.push(ce);return{layout:de,countRemoved:se}},ye.reflowLargerApplyNewLayout=function(x,pe){for(var de=[],ae=0;ae<pe.length;ae++)de.push(x.get(pe[ae]));for(ae=0;ae<de.length;ae++)x.set(ae,de[ae]);x.length=pe.length},ye.reflowSmallerGetNewLineLengths=function(x,pe,de){for(var ae=[],ne=x.map(function(z,a){return Ee(x,a,pe)}).reduce(function(z,a){return z+a}),se=0,ce=0,ue=0;ue<ne;){if(ne-ue<de){ae.push(ne-ue);break}se+=de;var ie=Ee(x,ce,pe);se>ie&&(se-=ie,ce++);var oe=x[ce].getWidth(se-1)===2;oe&&se--;var re=oe?de-1:de;ae.push(re),ue+=re}return ae},ye.getWrappedLineTrimmedLength=Ee},function(ft,ye,we){"use strict";var Ee,x=this&&this.__extends||(Ee=function(ae,ne){return(Ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(se,ce){se.__proto__=ce}||function(se,ce){for(var ue in ce)ce.hasOwnProperty(ue)&&(se[ue]=ce[ue])})(ae,ne)},function(ae,ne){function se(){this.constructor=ae}Ee(ae,ne),ae.prototype=ne===null?Object.create(ne):(se.prototype=ne.prototype,new se)});Object.defineProperty(ye,"__esModule",{value:!0}),ye.Marker=void 0;var pe=we(0),de=function(ae){function ne(se){var ce=ae.call(this)||this;return ce.line=se,ce._id=ne._nextId++,ce.isDisposed=!1,ce._onDispose=new pe.EventEmitter,ce}return x(ne,ae),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}(we(2).Disposable);ye.Marker=de},function(ft,ye,we){"use strict";Object.defineProperty(ye,"__esModule",{value:!0}),ye.OptionsService=ye.DEFAULT_OPTIONS=ye.DEFAULT_BELL_SOUND=void 0;var Ee=we(0),x=we(11),pe=we(33);ye.DEFAULT_BELL_SOUND="data:audio/mp3;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU4LjMyLjEwNAAAAAAAAAAAAAAA//tQxAADB8AhSmxhIIEVCSiJrDCQBTcu3UrAIwUdkRgQbFAZC1CQEwTJ9mjRvBA4UOLD8nKVOWfh+UlK3z/177OXrfOdKl7pyn3Xf//WreyTRUoAWgBgkOAGbZHBgG1OF6zM82DWbZaUmMBptgQhGjsyYqc9ae9XFz280948NMBWInljyzsNRFLPWdnZGWrddDsjK1unuSrVN9jJsK8KuQtQCtMBjCEtImISdNKJOopIpBFpNSMbIHCSRpRR5iakjTiyzLhchUUBwCgyKiweBv/7UsQbg8isVNoMPMjAAAA0gAAABEVFGmgqK////9bP/6XCykxBTUUzLjEwMKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq",ye.DEFAULT_OPTIONS=Object.freeze({cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,bellSound:ye.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:x.isMac,rendererType:"canvas",windowOptions:{},windowsMode:!1,wordSeparator:" ()[]{}',\"`",convertEol:!1,termName:"xterm",cancelEvents:!1});var de=["cols","rows"],ae=function(){function ne(se){this._onOptionChange=new Ee.EventEmitter,this.options=pe.clone(ye.DEFAULT_OPTIONS);for(var ce=0,ue=Object.keys(se);ce<ue.length;ce++){var ie=ue[ce];if(ie in this.options){var oe=se[ie];this.options[ie]=oe}}}return Object.defineProperty(ne.prototype,"onOptionChange",{get:function(){return this._onOptionChange.event},enumerable:!1,configurable:!0}),ne.prototype.setOption=function(se,ce){if(!(se in ye.DEFAULT_OPTIONS))throw new Error('No option with key "'+se+'"');if(de.indexOf(se)!==-1)throw new Error('Option "'+se+'" can only be set in the constructor');this.options[se]!==ce&&(ce=this._sanitizeAndValidateOption(se,ce),this.options[se]!==ce&&(this.options[se]=ce,this._onOptionChange.fire(se)))},ne.prototype._sanitizeAndValidateOption=function(se,ce){switch(se){case"bellStyle":case"cursorStyle":case"fontWeight":case"fontWeightBold":case"rendererType":case"wordSeparator":ce||(ce=ye.DEFAULT_OPTIONS[se]);break;case"cursorWidth":ce=Math.floor(ce);case"lineHeight":case"tabStopWidth":if(ce<1)throw new Error(se+" cannot be less than 1, value: "+ce);break;case"minimumContrastRatio":ce=Math.max(1,Math.min(21,Math.round(10*ce)/10));break;case"scrollback":if((ce=Math.min(ce,4294967295))<0)throw new Error(se+" cannot be less than 0, value: "+ce);break;case"fastScrollSensitivity":case"scrollSensitivity":if(ce<=0)throw new Error(se+" cannot be less than or equal to 0, value: "+ce)}return ce},ne.prototype.getOption=function(se){if(!(se in ye.DEFAULT_OPTIONS))throw new Error('No option with key "'+se+'"');return this.options[se]},ne}();ye.OptionsService=ae},function(ft,ye,we){"use strict";var Ee,x=this&&this.__extends||(Ee=function(re,z){return(Ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,y){a.__proto__=y}||function(a,y){for(var E in y)y.hasOwnProperty(E)&&(a[E]=y[E])})(re,z)},function(re,z){function a(){this.constructor=re}Ee(re,z),re.prototype=z===null?Object.create(z):(a.prototype=z.prototype,new a)}),pe=this&&this.__decorate||function(re,z,a,y){var E,b=arguments.length,ee=b<3?z:y===null?y=Object.getOwnPropertyDescriptor(z,a):y;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ee=Reflect.decorate(re,z,a,y);else for(var te=re.length-1;te>=0;te--)(E=re[te])&&(ee=(b<3?E(ee):b>3?E(z,a,ee):E(z,a))||ee);return b>3&&ee&&Object.defineProperty(z,a,ee),ee},de=this&&this.__param||function(re,z){return function(a,y){z(a,y,re)}};Object.defineProperty(ye,"__esModule",{value:!0}),ye.CoreService=void 0;var ae=we(1),ne=we(0),se=we(33),ce=we(2),ue=Object.freeze({insertMode:!1}),ie=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0}),oe=function(re){function z(a,y,E,b){var ee=re.call(this)||this;return ee._bufferService=y,ee._logService=E,ee._optionsService=b,ee.isCursorInitialized=!1,ee.isCursorHidden=!1,ee._onData=ee.register(new ne.EventEmitter),ee._onUserInput=ee.register(new ne.EventEmitter),ee._onBinary=ee.register(new ne.EventEmitter),ee._scrollToBottom=a,ee.register({dispose:function(){return ee._scrollToBottom=void 0}}),ee.modes=se.clone(ue),ee.decPrivateModes=se.clone(ie),ee}return x(z,re),Object.defineProperty(z.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(z.prototype,"onUserInput",{get:function(){return this._onUserInput.event},enumerable:!1,configurable:!0}),Object.defineProperty(z.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),z.prototype.reset=function(){this.modes=se.clone(ue),this.decPrivateModes=se.clone(ie)},z.prototype.triggerDataEvent=function(a,y){if(y===void 0&&(y=!1),!this._optionsService.options.disableStdin){var E=this._bufferService.buffer;E.ybase!==E.ydisp&&this._scrollToBottom(),y&&this._onUserInput.fire(),this._logService.debug('sending data "'+a+'"',function(){return a.split("").map(function(b){return b.charCodeAt(0)})}),this._onData.fire(a)}},z.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))},z=pe([de(1,ae.IBufferService),de(2,ae.ILogService),de(3,ae.IOptionsService)],z)}(ce.Disposable);ye.CoreService=oe},function(ft,ye,we){"use strict";var Ee=this&&this.__decorate||function(ie,oe,re,z){var a,y=arguments.length,E=y<3?oe:z===null?z=Object.getOwnPropertyDescriptor(oe,re):z;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(ie,oe,re,z);else for(var b=ie.length-1;b>=0;b--)(a=ie[b])&&(E=(y<3?a(E):y>3?a(oe,re,E):a(oe,re))||E);return y>3&&E&&Object.defineProperty(oe,re,E),E},x=this&&this.__param||function(ie,oe){return function(re,z){oe(re,z,ie)}};Object.defineProperty(ye,"__esModule",{value:!0}),ye.CoreMouseService=void 0;var pe=we(1),de=we(0),ae={NONE:{events:0,restrict:function(){return!1}},X10:{events:1,restrict:function(ie){return ie.button!==4&&ie.action===1&&(ie.ctrl=!1,ie.alt=!1,ie.shift=!1,!0)}},VT200:{events:19,restrict:function(ie){return ie.action!==32}},DRAG:{events:23,restrict:function(ie){return ie.action!==32||ie.button!==3}},ANY:{events:31,restrict:function(ie){return!0}}};function ne(ie,oe){var re=(ie.ctrl?16:0)|(ie.shift?4:0)|(ie.alt?8:0);return ie.button===4?(re|=64,re|=ie.action):(re|=3&ie.button,4&ie.button&&(re|=64),8&ie.button&&(re|=128),ie.action===32?re|=32:ie.action!==0||oe||(re|=3)),re}var se=String.fromCharCode,ce={DEFAULT:function(ie){var oe=[ne(ie,!1)+32,ie.col+32,ie.row+32];return oe[0]>255||oe[1]>255||oe[2]>255?"":"\x1B[M"+se(oe[0])+se(oe[1])+se(oe[2])},SGR:function(ie){var oe=ie.action===0&&ie.button!==4?"m":"M";return"\x1B[<"+ne(ie,!0)+";"+ie.col+";"+ie.row+oe}},ue=function(){function ie(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 z=0,a=Object.keys(ae);z<a.length;z++){var y=a[z];this.addProtocol(y,ae[y])}for(var E=0,b=Object.keys(ce);E<b.length;E++){var ee=b[E];this.addEncoding(ee,ce[ee])}this.reset()}return ie.prototype.addProtocol=function(oe,re){this._protocols[oe]=re},ie.prototype.addEncoding=function(oe,re){this._encodings[oe]=re},Object.defineProperty(ie.prototype,"activeProtocol",{get:function(){return this._activeProtocol},set:function(oe){if(!this._protocols[oe])throw new Error('unknown protocol "'+oe+'"');this._activeProtocol=oe,this._onProtocolChange.fire(this._protocols[oe].events)},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"areMouseEventsActive",{get:function(){return this._protocols[this._activeProtocol].events!==0},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"activeEncoding",{get:function(){return this._activeEncoding},set:function(oe){if(!this._encodings[oe])throw new Error('unknown encoding "'+oe+'"');this._activeEncoding=oe},enumerable:!1,configurable:!0}),ie.prototype.reset=function(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null},Object.defineProperty(ie.prototype,"onProtocolChange",{get:function(){return this._onProtocolChange.event},enumerable:!1,configurable:!0}),ie.prototype.triggerMouseEvent=function(oe){if(oe.col<0||oe.col>=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},ie.prototype.explainEvents=function(oe){return{down:!!(1&oe),up:!!(2&oe),drag:!!(4&oe),move:!!(8&oe),wheel:!!(16&oe)}},ie.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},ie=Ee([x(0,pe.IBufferService),x(1,pe.ICoreService)],ie)}();ye.CoreMouseService=ue},function(ft,ye,we){"use strict";var Ee=this&&this.__decorate||function(ae,ne,se,ce){var ue,ie=arguments.length,oe=ie<3?ne:ce===null?ce=Object.getOwnPropertyDescriptor(ne,se):ce;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")oe=Reflect.decorate(ae,ne,se,ce);else for(var re=ae.length-1;re>=0;re--)(ue=ae[re])&&(oe=(ie<3?ue(oe):ie>3?ue(ne,se,oe):ue(ne,se))||oe);return ie>3&&oe&&Object.defineProperty(ne,se,oe),oe},x=this&&this.__param||function(ae,ne){return function(se,ce){ne(se,ce,ae)}};Object.defineProperty(ye,"__esModule",{value:!0}),ye.DirtyRowService=void 0;var pe=we(1),de=function(){function ae(ne){this._bufferService=ne,this.clearRange()}return Object.defineProperty(ae.prototype,"start",{get:function(){return this._start},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"end",{get:function(){return this._end},enumerable:!1,configurable:!0}),ae.prototype.clearRange=function(){this._start=this._bufferService.buffer.y,this._end=this._bufferService.buffer.y},ae.prototype.markDirty=function(ne){ne<this._start?this._start=ne:ne>this._end&&(this._end=ne)},ae.prototype.markRangeDirty=function(ne,se){if(ne>se){var ce=ne;ne=se,se=ce}ne<this._start&&(this._start=ne),se>this._end&&(this._end=se)},ae.prototype.markAllDirty=function(){this.markRangeDirty(0,this._bufferService.rows-1)},ae=Ee([x(0,pe.IBufferService)],ae)}();ye.DirtyRowService=de},function(ft,ye,we){"use strict";Object.defineProperty(ye,"__esModule",{value:!0}),ye.UnicodeService=void 0;var Ee=we(0),x=we(79),pe=function(){function de(){this._providers=Object.create(null),this._active="",this._onChange=new Ee.EventEmitter;var ae=new x.UnicodeV6;this.register(ae),this._active=ae.version,this._activeProvider=ae}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(ae){if(!this._providers[ae])throw new Error('unknown Unicode version "'+ae+'"');this._active=ae,this._activeProvider=this._providers[ae],this._onChange.fire(ae)},enumerable:!1,configurable:!0}),de.prototype.register=function(ae){this._providers[ae.version]=ae},de.prototype.wcwidth=function(ae){return this._activeProvider.wcwidth(ae)},de.prototype.getStringCellWidth=function(ae){for(var ne=0,se=ae.length,ce=0;ce<se;++ce){var ue=ae.charCodeAt(ce);if(55296<=ue&&ue<=56319){if(++ce>=se)return ne+this.wcwidth(ue);var ie=ae.charCodeAt(ce);56320<=ie&&ie<=57343?ue=1024*(ue-55296)+ie-56320+65536:ne+=this.wcwidth(ie)}ne+=this.wcwidth(ue)}return ne},de}();ye.UnicodeService=pe},function(ft,ye,we){"use strict";Object.defineProperty(ye,"__esModule",{value:!0}),ye.UnicodeV6=void 0;var Ee,x=we(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]],ae=function(){function ne(){if(this.version="6",!Ee){Ee=new Uint8Array(65536),x.fill(Ee,1),Ee[0]=0,x.fill(Ee,0,1,32),x.fill(Ee,0,127,160),x.fill(Ee,2,4352,4448),Ee[9001]=2,Ee[9002]=2,x.fill(Ee,2,11904,42192),Ee[12351]=1,x.fill(Ee,2,44032,55204),x.fill(Ee,2,63744,64256),x.fill(Ee,2,65040,65050),x.fill(Ee,2,65072,65136),x.fill(Ee,2,65280,65377),x.fill(Ee,2,65504,65511);for(var se=0;se<pe.length;++se)x.fill(Ee,0,pe[se][0],pe[se][1]+1)}}return ne.prototype.wcwidth=function(se){return se<32?0:se<127?1:se<65536?Ee[se]:function(ce,ue){var ie,oe=0,re=ue.length-1;if(ce<ue[0][0]||ce>ue[re][1])return!1;for(;re>=oe;)if(ce>ue[ie=oe+re>>1][1])oe=ie+1;else{if(!(ce<ue[ie][0]))return!0;re=ie-1}return!1}(se,de)?0:se>=131072&&se<=196605||se>=196608&&se<=262141?2:1},ne}();ye.UnicodeV6=ae},function(ft,ye,we){"use strict";Object.defineProperty(ye,"__esModule",{value:!0}),ye.CharsetService=void 0;var Ee=function(){function x(){this.glevel=0,this._charsets=[]}return x.prototype.reset=function(){this.charset=void 0,this._charsets=[],this.glevel=0},x.prototype.setgLevel=function(pe){this.glevel=pe,this.charset=this._charsets[pe]},x.prototype.setgCharset=function(pe,de){this._charsets[pe]=de,this.glevel===pe&&(this.charset=de)},x}();ye.CharsetService=Ee},function(ft,ye,we){"use strict";Object.defineProperty(ye,"__esModule",{value:!0}),ye.updateWindowsModeWrappedState=void 0;var Ee=we(3);ye.updateWindowsModeWrappedState=function(x){var pe=x.buffer.lines.get(x.buffer.ybase+x.buffer.y-1),de=pe==null?void 0:pe.get(x.cols-1),ae=x.buffer.lines.get(x.buffer.ybase+x.buffer.y);ae&&de&&(ae.isWrapped=de[Ee.CHAR_DATA_CODE_INDEX]!==Ee.NULL_CELL_CODE&&de[Ee.CHAR_DATA_CODE_INDEX]!==Ee.WHITESPACE_CELL_CODE)}},function(ft,ye,we){"use strict";Object.defineProperty(ye,"__esModule",{value:!0}),ye.WriteBuffer=void 0;var Ee=function(){function x(pe){this._action=pe,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0}return x.prototype.writeSync=function(pe){if(this._writeBuffer.length){for(var de=this._bufferOffset;de<this._writeBuffer.length;++de){var ae=this._writeBuffer[de],ne=this._callbacks[de];this._action(ae),ne&&ne()}this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=2147483647}this._action(pe)},x.prototype.write=function(pe,de){var ae=this;if(this._pendingData>5e7)throw new Error("write data discarded, use flow control to avoid losing data");this._writeBuffer.length||(this._bufferOffset=0,setTimeout(function(){return ae._innerWrite()})),this._pendingData+=pe.length,this._writeBuffer.push(pe),this._callbacks.push(de)},x.prototype._innerWrite=function(){for(var pe=this,de=Date.now();this._writeBuffer.length>this._bufferOffset;){var ae=this._writeBuffer[this._bufferOffset],ne=this._callbacks[this._bufferOffset];if(this._bufferOffset++,this._action(ae),this._pendingData-=ae.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)},x}();ye.WriteBuffer=Ee},function(ft,ye,we){"use strict";Object.defineProperty(ye,"__esModule",{value:!0}),ye.AddonManager=void 0;var Ee=function(){function x(){this._addons=[]}return x.prototype.dispose=function(){for(var pe=this._addons.length-1;pe>=0;pe--)this._addons[pe].instance.dispose()},x.prototype.loadAddon=function(pe,de){var ae=this,ne={instance:de,dispose:de.dispose,isDisposed:!1};this._addons.push(ne),de.dispose=function(){return ae._wrappedAddonDispose(ne)},de.activate(pe)},x.prototype._wrappedAddonDispose=function(pe){if(!pe.isDisposed){for(var de=-1,ae=0;ae<this._addons.length;ae++)if(this._addons[ae]===pe){de=ae;break}if(de===-1)throw new Error("Could not dispose an addon that has not been loaded");pe.isDisposed=!0,pe.dispose.apply(pe.instance),this._addons.splice(de,1)}},x}();ye.AddonManager=Ee}])})},60141:function(_t){"use strict";_t.exports="data:image/gif;base64,R0lGODlh6QDIAPf/APrMTf789vrMUPvdi/zfkfi4CvvYef713fnKSfzosP7wyvrSZfjAKPzmqf3wzP767fnHPv7xzf3wzvjFOfe2BP767vi8F/i8GPvagfnGO/jDMv3uxv3svfrNUvzkov724fvWcfzinPvbhPi5DfrTZv734vi6EPzglfnKSP3tw/nJR/3qtv3nrPrRYPjAJf/++/702PvVbvrUbfrUafrQX/rOVvnLTfrWcvi+H/i7Fv7y0P3y0/3wyv3uxPzjoPzglvi/I/vejvvZfPe5D/rTaPrPWvrOVPrKSf3vyPzlpPnNU/nKRvnENfe6E/Ly8v3sv+Xl5frZf9ra2vnIQOjo6Pv7+9jY2PX19d7e3tTU1Ovr6/n5+dzc3O7u7uLi4tDQ0M7Oztvb2/j4+N3d3ezs7NHR0f7+/tXV1fHx8fDw8NLS0uHh4d/f3/jAJvb29vT09M/Pz+/v7/f39+rq6uPj49bW1vr6+uDg4NfX1+Tk5PPz89PT0+np6efn59nZ2e3t7frPWfzmqvnFN/39/fz8/P756/723/vdif3ru/745/zhmObm5vrUav3ps/zim/zdiv757Pzlpvzruvzhmfe3Bve3B/zimvvhmvnCK/jAJ//56v/9+f7z1f702vvciPvXdfnBJ/jFN/jDL/735PvZe/e7Ffzjn/e3CPznq/3twf3ruvi+IPnFNvvdjPzps/3psvrOWP702/rQXfvYevnOWfvUav3quPrWdP302//56/i9G/zejP712/778/nIQv3orfnOV/i3BvnGOv/+/frKR/////3nqv3uw/vYd/3y1frUa/713v3ruPvZevrXd/e2BvnEM//+/P7z1v///f3rufnDMPnHQPe2A/i/JPrIQvnMUP3z2PnLSv/88/e8Gv746P7uxfvUa/vgk/vglPzgk/rNVPvaffnBKf3xz/756vi6D/rSYvrVcPe4C/jENvi7E/789PrPWPnIQfzchv3tv/3svvzquf3qufi9Hfi9Hve4DPnCLvjCL/e1AM3Nzf///yH/C05FVFNDQVBFMi4wAwEAAAAh/wtYTVAgRGF0YVhNUDw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ4IDc5LjE2NDAzNiwgMjAxOS8wOC8xMy0wMTowNjo1NyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIDIxLjAgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MDJDNDJCNzNGQjY2MTFFREE3MTFEMUFDMEEzQzRDM0MiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MDJDNDJCNzRGQjY2MTFFREE3MTFEMUFDMEEzQzRDM0MiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDowMkM0MkI3MUZCNjYxMUVEQTcxMUQxQUMwQTNDNEMzQyIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDowMkM0MkI3MkZCNjYxMUVEQTcxMUQxQUMwQTNDNEMzQyIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PgH//v38+/r5+Pf29fTz8vHw7+7t7Ovq6ejn5uXk4+Lh4N/e3dzb2tnY19bV1NPS0dDPzs3My8rJyMfGxcTDwsHAv769vLu6ubi3trW0s7KxsK+urayrqqmop6alpKOioaCfnp2cm5qZmJeWlZSTkpGQj46NjIuKiYiHhoWEg4KBgH9+fXx7enl4d3Z1dHNycXBvbm1sa2ppaGdmZWRjYmFgX15dXFtaWVhXVlVUU1JRUE9OTUxLSklIR0ZFRENCQUA/Pj08Ozo5ODc2NTQzMjEwLy4tLCsqKSgnJiUkIyIhIB8eHRwbGhkYFxYVFBMSERAPDg0MCwoJCAcGBQQDAgEAACH5BAUXAP8ALAAAAADpAMgAAAj/AP8JHEiwoMGDCBMqXMiwocOHBbf0sZLlSxY6XSBq3Mixo8ePIEOK3LjFCxh/KFP6G3NlpMuXMGPKnKmRjxqVOP19SUOzp8+fQIMSjGMlp9EveoTG3PJGThWlUKNuvMLGqFV/WdxI/ZjGyheVeLRsHUtWICEocK5evVNWI5SreHi2nfuTzBm1eJ3QXWiHC15/c/YKfukkzF+8XAYfdIPnsD8yiiNzFOPF8V87kgWi2WPZn5zMoBdSudlZLWTJZEr7k2ImtOuhRVWrHSO5j2zAr127wXIbb5bIdHrTzi25CpSTvdWCGTyId+8vxCNruZv875a9YqRU96c3Ol0nfrf//+3e9g3p6lS8ty0p3jF5snHa+8OifqwZKmXkH36/dY7+3/VF1UVs+o1X1iIFLhegUFQVaBl/UK3hYBkLAnUWcg7ut5UdfmQIYIU0aZFFhp1BCJQb+WVoBYgzFUZiaSb6hMaL/rDF4kuU0QgjVKnRmNGNIhUzmo47CkWFjmA8BSRIAxKpWowyVaVjYkt6dIVzThbp0yAE0ihXlRoZh2GWJf4kxldEUgkmRNOReRuUI71B5pdrMoSGYW6+2VMXZP5Y50JiSJhnb3CChGCWp/2Z0H0pDqqnTFgSGZiiCRHlaHWFdtRYlpmueeWl23UKkR1j6ngdpQZVkUepoMomqkNXkP+pBqoHtdlqqC716KQftBbk4q3ivbrQW1mu0etAgQIrn7AJjUFmesea0UejyuIKEnVOxnHsP01WuyxIZMIhxrGfeqsfswV1SeOHqKpqroPoDpRHllIcK+K78HaURpZsKHVFF1RAIfDABBds8MEIH4wnvgXG+0+kL/bBoKAMV+wqR3o46edPVKRl8cdaQiTli2poFdTIIKesYZg64jGIUMSqLHNeG8n5oppAZTzzzleh+8eLXkDlLM9E44RuzAVKrFR8RTeNErrh6QfGH1F16HTT6EK8XRZvRLXv1VhvFJx8fhAi1ZFgF40u2uLRt5XWaavsc3t5kLVp3Duj64R4fJT/xRneeXM04nMbb+Ux4DLHy7ZqeHTdFuKBbyTHbVwo+TjkiXc0dGfG7oV55hxtQe1fiwz2udwezXgYGIl6fjrIDgu0uFV7oBHZ67CDpLNVWJisGO4fxz7QFlGntIdYmQFvsfAEXaHFGmPwocfLoClfMfMLWs8w9gFqjy/39Xn/LvjqiW8u+d6Z7y360alfLfvEua8s/LnJDyz9r9l/K/6u6d8q/6HxH6gAWD0BOoqAyTPgoBAoGQUucFsFcWCeGHg7CZKJgr+zIKcgSBANbpCDAvGgkzBoOhHqiIBXcIIKV8jCFrrwhTCMYUsSYsITyqQKWuACmkD1BS5owXIDqSGN/+DXhcF563gRFCKJ2Ie0d/UriErMEPqaiC86QDGKDXMJ00B2GizmayRWA9keruPFLIpEVykLWhnPNZKFpawMVVjjt0ISq535R47BEsnsUgY3PD5JJNrZmRH9SKiQmIGQ6sPeFhBpPuzVkZHaw57NIGk97ImBkpEMCSEwWUmRjC5lO+Ske0RSmZ0FUpSjDAmfdjYvVKYSJIP4W+Jc+UqQtFJl9aLlyuh4OC7+Q5cGGsnYQGYjYNJsJFuoA8jOcCpjqgV9clBmxeCQlBA60yrsk0PxvGUFbV3xmkaTCRSkqaw6QKE1HQRnTviHBihwQQrwjKc850nPetrznmOggu0Oov/OdYLQmv1MCQkFE1CVDNR1BeXOP3+ZUIX+s6EOBSFED0qXiS7Uog9tKEXnglGJavSiH81oQjd6uZGC1KQiLShJy9JRDrYUgi/dVkw/Yoc3YKZ/IQXJG+hATjVAwXcVRKlHqkAxnJSBag3MKUeiiRcoJFWokiOnWthAPYIqVSOn/IsUxmVVqEKEing5QzUrelWHXFI1X0DqXELZT8X1BlptUZc64xVG2VixLShr60bssJ3hkOVQKt2I6qqDh8+MRQtlZcgeb6MGOkFlsAFFVynbgzypbE6vGuljb5wqlb0FFqsOslFU8nrNrGUoDFKZ5Fw3MtkCMTMqYAUmuu6YoS//HPQOmIXIWV/UN6jgFpzxkmuB7qoUJ1xWl27VkdugYgc0zCFh0I2udKHgxtfFawu9JBGvIHgv3DmsqC/aw02P5S7rdkQOnyTRWMmlWbDFLrYZat2xuoU44YGXRnXjoLTS6zTmLZZEONtWsvCGva85qQ4L/ZV7RTK5LMFxobbq70jMcB4iOQ6EqmLVzNBXVx2pFYTlIhr7Wqsjzi7UUjyDHx/ItNx/MipyMIFsyxaKrPsubyZuCBeNB3In1M2kCrLUEWp3LJAIX88n1X3RpIgsphv7ZJg62ieR/xHi8QEFsUTKAhCJTN/1BcXANJIvkYVU4fsxKE1TNkiO3qeULWCL/0RbTvM/FPw/qJjhuAVaspwJ0t0BSgW+26nXng1yIT9LZcUZEvSgDdKgA45llQVS9KIN0uUPbsUJ2Q30pBeFHzet9B9ukKqmN50Q9lh6LFXAc28kTeqDgGeEdCFxb1rcaoQYOUOnmgtgk1O4Wh+kyRlS0F6w/BxfO2Q3HlJMGtjaGdEamyEolo9fBXMFUVvGsc8WTZmTI2a6bCHJf1lRtnUr69uMVzFm+K1lPjxuh9BZNgGODKBxMuR2b8QuhXQNovFiBa7aeyNnyfRfnB2aIqqlcv/+SKMdk5XoVMELmT5DH9CZ8I9EWy1IqU8V5uAFLozBC1qgeMVDYhOMY3vkaRAuiYZZgvJWS4QiFsHIoAMCACH5BAUbAP8ALAAAAADpAMgAAAj/AP8JHEiwoMGDCBMqXMiwocOHBUuIEAZkRJsbgSBq3Mixo8ePIEOK3LhMGaV+KFP2E4BupMuXMGPKnKlx1wWVOPuZaESzp8+fQIMS/DUhp9EhKYTGPLABBiSlUKNudFDEqNV+LnZI/ehKmAmV0CZtHUtWYAVSp65ebVFWI6mr0Fy1nQs0xDm1eBHRXZjIBt5+J/YKfskBwV+8NgYf1OHucL8QiiNzPMDI8d9RkgUyw2G5n7TMoBcOuNlZraPMPkr387UptGuCLISpxttBsqfZgF+7jkALN942kUH4rq1b8oNZlXzjpTC4FyDlI4pHdgRK+eEPe3HJs97vifS9HI5w/z/sfW4PfONbfW97oNZ4x+XLonrfD9D6scMGWKBPvu04/sDdFxUqgvAHX1nmGMicgEI58JyBB461AISlMAjUA808A6Fl8UGVCAQbBmghTZdksmFnHQqlQw4nhjLiTIigcGJpKQLFzIz9rPMiTAfMgCONUKWGYyQ7jjTNI/v9iKJSh/xIgSZFhhRIKEqqViNNNCgJQJQfOQBLlbNdGVMvBSrJE5cbQWLASWBa+RMu6lS5JZoaWVJdm2H61EObZ9LZkCQq4OmbmCM10GZGfjIUCxGCKkdoSBi0CVmiCkVzSJKN4vboR1+CSQ6lChlTZqaDylRNm9SAipACwJDK3aYbJf+SHJiGqGpQIQZQ4OqrLynQpje2GjRJG7uOB+tDQlYJQbAEqUJMse8d25ABbS7ArEC8kAAtfdIu1EGbA1z7gicsbhttSAy0mcC1DbBiLn/dItRmOzAwq0AN7xoYr0GyVSmiqrk4o2u+8Hr0CZjZMKuICwRDuO9AroBJg1IORNJKFBhnrPHGHHfscceBNuxwR98qKYJQEmgr8sqacpRKlYgCNY8+LNfs5kYt/GhBS0HJYvPPS2oEyY8aBCAUtUAn/dfDSOCYmFApKC21Wg97MGMtUCkx9dY5PYw0hCcrxQLXZKf0MDcQVuJBVCCWTfbD5RgIBBJRveJ22Q/HwB8EFUj/1eTdXD/8CH32bfUg4FM/nMR7n5DFBOJbP/zEeASUtQrkiXNErG9NoNJWAZhL/fA/f89WzQZzhS46R9Lgxs03dKmu9Oj/aKOatXvJnjTthpTrGAaD6Q407f+s4BgFkwom/M/E/zPAXzisENnyNjf/zzFqGaHV9NSzbP0/H6CNEw6WgNa99yM5MAkJAgSRSjehnb/y9wLKLzL999nfMP7r6U8w/9/xX74AKB0BvouAxTGguRCoGwVui4GvcSC0IOgaCRaLgvGzoKswaD4NkoqDmfHgB69VEBFmCoSSMWGjUMg9FbaJhYpxIZ5gGDwZgomGyrNhlXCYOx0qiYex8+GP/zjogCcY8YhITKISl8jEJvJMXkLEEQMLcQluDKFYJuDGJQphkChKMSYNAALB8qGIEnrxRASMAsviQZAzovElaqzZLQbixg3xb2w/M4VA6jiykbTNZquoFR/1NRJTKI0R/xhkwURimKSVQhOK5JZIeDC1E0TyXCEZnNQOd0lHiWQKU9tcJz0JkheM0oDfG8UpBfg9dKzSf98Dxyv1971OzNJ+36vALeVHv1JMbQS7BFJIKiM1UAaTQyIxlNQOdswIgQQel5tdM50JEmYCbQqJnObS0heMpOlRm9scyS2AxpZsgvMq/CsBJmyWiVqZ85xGASAn1rmyUyRlj/C0CgE5If8+ggliXXTMZzxlEgVRvEsUUWhNGwXaNZrYIgoAmIJEJ0rRilr0ohjNqAAGYA8oMlQlQEzdR0FKwoWOFCUhbctJzVbSgK40pWVZKUpbis+X0vSdI4UpWWTanZvyVKdj+alPZQrUrQiVpkdtaVJLulQSNvVaT2VWVIM1VVtVlSOJQEIiIkhUkRzjBvTshy6ioIMO2vQjhVBZTiywthR21SOcMKhaDODWs3JknoeRhdFqaNeNGPMwvugEX09KuzhaJhP0yGFfHwKD2YygrXNpwls1UjrVeIIuo8opRzKgnBjMpSqLbUgJuEMcsghhsg+RxHjcsQ2yhAC1DmnFe3TRp6j/IAK2DdEbfcq4Fa0RdiP44o8QtsKB0DLkr/QpZ1R8plmNBNdAS5BK05oLEd1C6BzYgcosqPsQS55oCKqIyoQY+rBY/Egc4iUvRzK7IXZE5QklO+fonvejGkilBJIQx8f2y9/+RiFk3RudIUD3I2GUdGEB7gijlISDrV4rYAPTHe1g8BUlXSMVJb2X8IhnWCWdpqTtkl3z1KqkxpV0XL5DnPU0WaWnlTRbmPue3cDEj5s6S8UisSWY3tE3mg7rbvjbBGmqRDea4irCkXuJNdoE2Zay6m0wcQ+YhnvTf4gqyTAhQJvsW2VLYWp4MrlHm6pRZYEsanYzSUabClBmgQAK/8wzeQBnqoSCNgvETtXziXiq9AM7/0NNbLrfT4RTJVv4+R9emh9QFFElF3Dx0FPaX1Bm/KPk+flIX56gUHz1ozkdWiA9OqBSPnCnGUHp0wOJ0QOhsgkB4CgwqCZIiS4oFWTMCJuxJgiGNDRCqQThRLjONUEc1GupRGJDwRY2QQi0QrLUo5v8SbayB5KfTA+xLMnYR7SnjZD2vLAtD4gvd6TNbYKEZ4d0Ccd7uFxuhFDnR9mdS6S4E7N2H+Q4s4LQgvZiCeuYwN4M4U2IFPMKYOJGuQBXSGwMVFrBKIAfuAFowhkyGvp8WDEfALBlBDHxh1DmPZiRzCZy1pkkdBwihWexjoszY2vHIODkG7GLb/Timl//hRWChblGzpKW0iA8NJHAhlq4kQ6dd4QqncmKdBIhAwKrpA0ieIHRP0KUwyDlPpo4ASMAIAAZKGKvUweJTdSyk7DHuiSBVglLzC5siVDEIhhBdUAAADs="}}]);
|