reacthub-pixitweenjs 0.2.107-alpha.76 → 0.2.107-alpha.78
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +9 -3
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1354,7 +1354,10 @@ J.registerEffect({
|
|
|
1354
1354
|
return J.timeline().fromTo(
|
|
1355
1355
|
t,
|
|
1356
1356
|
{
|
|
1357
|
+
...e,
|
|
1357
1358
|
pixi: {
|
|
1359
|
+
x: e == null ? void 0 : e.x,
|
|
1360
|
+
y: e == null ? void 0 : e.y,
|
|
1358
1361
|
scaleX: 1.5,
|
|
1359
1362
|
scaleY: 1.5
|
|
1360
1363
|
}
|
|
@@ -1377,11 +1380,14 @@ J.registerEffect({
|
|
|
1377
1380
|
name: "BOUNCE_IN_DOWN",
|
|
1378
1381
|
effect(t, e) {
|
|
1379
1382
|
return J.from(t, {
|
|
1380
|
-
...e,
|
|
1381
1383
|
duration: 2,
|
|
1382
1384
|
ease: "bounce.out",
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
+
pixi: {
|
|
1386
|
+
...e,
|
|
1387
|
+
x: e == null ? void 0 : e.x,
|
|
1388
|
+
y: -1500,
|
|
1389
|
+
alpha: 0
|
|
1390
|
+
}
|
|
1385
1391
|
});
|
|
1386
1392
|
}
|
|
1387
1393
|
});
|
package/dist/index.umd.js
CHANGED
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
* Subject to the terms at https://greensock.com/standard-license or for
|
|
31
31
|
* Club GreenSock members, the agreement issued with that membership.
|
|
32
32
|
* @author: Jack Doyle, jack@greensock.com
|
|
33
|
-
*/var ln,Of,ha,nr,ls,Ff,Eu,Nf=function(){return typeof window<"u"},Lf=function(){return ln||Nf()&&(ln=window.gsap)&&ln.registerPlugin&&ln},kf=function(e){return typeof e=="function"},sS=function(e){return console.warn(e)},aS=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],ir=.212671,sr=.71516,ar=.072169,fa=function(e,r){var n=[],i=0,a=0,u,l;for(u=0;u<4;u++){for(l=0;l<5;l++)a=l===4?e[i+4]:0,n[i+l]=e[i]*r[l]+e[i+1]*r[l+5]+e[i+2]*r[l+10]+e[i+3]*r[l+15]+a;i+=5}return n},Df=function(e,r){var n=1-r,i=n*ir,a=n*sr,u=n*ar;return fa([i+r,a,u,0,0,i,a+r,u,0,0,i,a,u+r,0,0,0,0,0,1,0],e)},Bf=function(e,r,n){var i=ha(r),a=i[0]/255,u=i[1]/255,l=i[2]/255,h=1-n;return fa([h+n*a*ir,n*a*sr,n*a*ar,0,0,n*u*ir,h+n*u*sr,n*u*ar,0,0,n*l*ir,n*l*sr,h+n*l*ar,0,0,0,0,0,1,0],e)},Uf=function(e,r){r*=Math.PI/180;var n=Math.cos(r),i=Math.sin(r);return fa([ir+n*(1-ir)+i*-ir,sr+n*-sr+i*-sr,ar+n*-ar+i*(1-ar),0,0,ir+n*-ir+i*.143,sr+n*(1-sr)+i*.14,ar+n*-ar+i*-.283,0,0,ir+n*-ir+i*-(1-ir),sr+n*-sr+i*sr,ar+n*(1-ar)+i*ar,0,0,0,0,0,1,0,0,0,0,0,1],e)},$f=function(e,r){return fa([r,0,0,0,.5*(1-r),0,r,0,0,.5*(1-r),0,0,r,0,.5*(1-r),0,0,0,1,0],e)},Gf=function(e,r){var n=nr.filters[r],i=e.filters||[],a=i.length,u;for(n||sS(r+" not found. PixiPlugin.registerPIXI(PIXI)");--a>-1;)if(i[a]instanceof n)return i[a];return u=new n,r==="BlurFilter"&&(u.blur=0),i.push(u),e.filters=i,u},bt=function(e,r,n,i){r.add(n,e,n[e],i[e]),r._props.push(e)},zf=function(e,r){var n=new nr.filters.ColorMatrixFilter;return n.matrix=r,n.brightness(e,!0),n.matrix},oS=function(e){var r={},n;for(n in e)r[n]=e[n];return r},qt={contrast:1,saturation:1,colorizeAmount:0,colorize:"rgb(255,255,255)",hue:0,brightness:1},uS=function(e,r,n){var i=Gf(e,"ColorMatrixFilter"),a=e._gsColorMatrixFilter=e._gsColorMatrixFilter||oS(qt),u=r.combineCMF&&!("colorMatrixFilter"in r&&!r.colorMatrixFilter),l,h,p;for(p=i.matrix,r.resolution&&(i.resolution=r.resolution),r.matrix&&r.matrix.length===p.length?(h=r.matrix,a.contrast!==1&&bt("contrast",n,a,qt),a.hue&&bt("hue",n,a,qt),a.brightness!==1&&bt("brightness",n,a,qt),a.colorizeAmount&&(bt("colorize",n,a,qt),bt("colorizeAmount",n,a,qt)),a.saturation!==1&&bt("saturation",n,a,qt)):(h=aS.slice(),r.contrast!=null?(h=$f(h,+r.contrast),bt("contrast",n,a,r)):a.contrast!==1&&(u?h=$f(h,a.contrast):bt("contrast",n,a,qt)),r.hue!=null?(h=Uf(h,+r.hue),bt("hue",n,a,r)):a.hue&&(u?h=Uf(h,a.hue):bt("hue",n,a,qt)),r.brightness!=null?(h=zf(+r.brightness,h),bt("brightness",n,a,r)):a.brightness!==1&&(u?h=zf(a.brightness,h):bt("brightness",n,a,qt)),r.colorize!=null?(r.colorizeAmount="colorizeAmount"in r?+r.colorizeAmount:1,h=Bf(h,r.colorize,r.colorizeAmount),bt("colorize",n,a,r),bt("colorizeAmount",n,a,r)):a.colorizeAmount&&(u?h=Bf(h,a.colorize,a.colorizeAmount):(bt("colorize",n,a,qt),bt("colorizeAmount",n,a,qt))),r.saturation!=null?(h=Df(h,+r.saturation),bt("saturation",n,a,r)):a.saturation!==1&&(u?h=Df(h,a.saturation):bt("saturation",n,a,qt))),l=h.length;--l>-1;)h[l]!==p[l]&&n.add(p,l,p[l],h[l],"colorMatrixFilter");n._props.push("colorMatrixFilter")},lS=function(e,r){var n=r.t,i=r.p,a=r.color,u=r.set;u(n,i,a[0]<<16|a[1]<<8|a[2])},cS=function(e,r){var n=r.g;n&&(n.dirty++,n.clearDirty++)},hS=function(e,r){r.t.visible=!!r.t.alpha},Hf=function(e,r,n,i){var a=e[r],u=ha(kf(a)?e[r.indexOf("set")||!kf(e["get"+r.substr(3)])?r:"get"+r.substr(3)]():a),l=ha(n);i._pt=new ls(i._pt,e,r,0,0,lS,{t:e,p:r,color:u,set:Ff(e,r)}),i.add(u,0,u[0],l[0]),i.add(u,1,u[1],l[1]),i.add(u,2,u[2],l[2])},fS={tint:1,lineColor:1,fillColor:1},Vf="position,scale,skew,pivot,anchor,tilePosition,tileScale".split(","),Cu={x:"position",y:"position",tileX:"tilePosition",tileY:"tilePosition"},dS={colorMatrixFilter:1,saturation:1,contrast:1,hue:1,colorize:1,colorizeAmount:1,brightness:1,combineCMF:1},da=Math.PI/180,Xf=function(e){return typeof e=="string"},pS=function(e){return Xf(e)&&e.charAt(1)==="="?e.substr(0,2)+parseFloat(e.substr(2))*da:e*da},gS=function(e,r){return r.set(r.t,r.p,e===1?r.e:Math.round((r.s+r.c*e)*1e5)/1e5,r)},mS=function(e,r,n,i,a,u){var l=360*(u?da:1),h=Xf(a),p=h&&a.charAt(1)==="="?+(a.charAt(0)+"1"):0,m=parseFloat(p?a.substr(2):a)*(u?da:1),c=p?m*p:m-i,d=i+c,g,v;return h&&(g=a.split("_")[1],g==="short"&&(c%=l,c!==c%(l/2)&&(c+=c<0?l:-l)),g==="cw"&&c<0?c=(c+l*1e10)%l-~~(c/l)*l:g==="ccw"&&c>0&&(c=(c-l*1e10)%l-~~(c/l)*l)),e._pt=v=new ls(e._pt,r,n,i,c,gS),v.e=d,v},jf=function(){Nf()&&(Of=window,ln=Lf(),nr=nr||Of.PIXI,Eu=nr&&nr.VERSION&&nr.VERSION.charAt(0)==="4",ha=function(r){return ln.utils.splitColor((r+"").substr(0,2)==="0x"?"#"+r.substr(2):r)})},pa,cs;for(pa=0;pa<Vf.length;pa++)cs=Vf[pa],Cu[cs+"X"]=cs,Cu[cs+"Y"]=cs;var Iu={version:"3.11.5",name:"pixi",register:function(e,r,n){ln=e,ls=n,Ff=r.getSetter,jf()},registerPIXI:function(e){nr=e},init:function(e,r,n,i,a){if(nr||jf(),!nr||!(e instanceof nr.DisplayObject))return console.warn(e,"is not a DisplayObject or PIXI was not found. PixiPlugin.registerPIXI(PIXI);"),!1;var u,l,h,p,m,c,d,g,v;for(c in r){if(u=Cu[c],h=r[c],u)l=~c.charAt(c.length-1).toLowerCase().indexOf("x")?"x":"y",this.add(e[u],l,e[u][l],u==="skew"?pS(h):h,0,0,0,0,0,1);else if(c==="scale"||c==="anchor"||c==="pivot"||c==="tileScale")this.add(e[c],"x",e[c].x,h),this.add(e[c],"y",e[c].y,h);else if(c==="rotation"||c==="angle")mS(this,e,c,e[c],h,c==="rotation");else if(dS[c])p||(uS(e,r.colorMatrixFilter||r,this),p=!0);else if(c==="blur"||c==="blurX"||c==="blurY"||c==="blurPadding"){if(m=Gf(e,"BlurFilter"),this.add(m,c,m[c],h),r.blurPadding!==0)for(d=r.blurPadding||Math.max(m[c],h)*2,g=e.filters.length;--g>-1;)e.filters[g].padding=Math.max(e.filters[g].padding,d)}else if(fS[c])if((c==="lineColor"||c==="fillColor")&&e instanceof nr.Graphics)for(v=(e.geometry||e).graphicsData,this._pt=new ls(this._pt,e,c,0,0,cS,{g:e.geometry||e}),g=v.length;--g>-1;)Hf(Eu?v[g]:v[g][c.substr(0,4)+"Style"],Eu?c:"color",h,this);else Hf(e,c,h,this);else c==="autoAlpha"?(this._pt=new ls(this._pt,e,"visible",0,0,hS),this.add(e,"alpha",e.alpha,h),this._props.push("alpha","visible")):c!=="resolution"&&this.add(e,c,"get",h);this._props.push(c)}}};Lf()&&ln.registerPlugin(Iu),ee.registerPlugin(Iu),Iu.registerPIXI(Gt),ee.registerPlugin(us),us.create("springBounce","0.32, 1.06, 0.61, 0.93"),ee.registerEffect({name:"PULSE",effect(t,e){return ee.timeline().fromTo(t,{width:(e==null?void 0:e.width)*.9,height:(e==null?void 0:e.height)*.9},{width:(e==null?void 0:e.width)*1.1,height:(e==null?void 0:e.height)*1.1,duration:.5,ease:"slow"}).to(t,{...e,duration:.5})}}),ee.registerEffect({name:"SHAKE",effect(t,e){return ee.timeline().to(t,{duration:.1,x:"+=5"}).to(t,{duration:.1,x:"-=10"}).to(t,{duration:.1,x:"+=10"}).to(t,{duration:.1,x:"-=10"}).to(t,{duration:.1,x:"+=5"}).to(t,{...e,duration:.5})}}),ee.registerEffect({name:"SWING",effect(t,e){return ee.timeline().to(t,{duration:.5,rotation:1}).to(t,{duration:.5,rotation:-1}).to(t,{rotation:0,...e,duration:.5})}}),ee.registerEffect({name:"JELLO",effect(t,e){return ee.timeline().to(t,{duration:.3,width:e.width*.5,rotation:-1}).to(t,{duration:.4,width:e.width*1.2,rotation:1}).to(t,{duration:.3,width:e.width,rotation:0}).to(t,{rotation:0,...e,duration:.5})}}),ee.registerEffect({name:"WOOBLE",effect(t,e){return ee.timeline().to(t,{duration:.3,width:e.width*.5,x:e.x*-.5}).to(t,{duration:.3,width:e.width*1.5,x:e.x*1.5}).to(t,{duration:.3,width:e.width*.5,x:e.x*-.01}).to(t,{duration:.3,width:e.width,x:e.x}).to(t,{rotation:0,...e,duration:.5})}}),ee.registerEffect({name:"NONE",effect(t,e){return ee.to(t,{duration:0})}}),ee.registerEffect({name:"FLASH",effect(t,e){return ee.timeline().to(t,{duration:.2,alpha:0}).to(t,{duration:.2,alpha:1}).to(t,{duration:.2,alpha:0}).to(t,{duration:.2,alpha:1}).to(t,{duration:.2,alpha:0}).to(t,{duration:.2,alpha:1,...e})}}),ee.registerEffect({name:"BOUNCE_IN",effect(t,e){return ee.timeline().fromTo(t,{pixi:{scaleX:1.5,scaleY:1.5}},{...e,pixi:{x:e==null?void 0:e.x,y:e==null?void 0:e.y,scaleX:1,scaleY:1},duration:2,ease:"bounce.out"})}}),ee.registerEffect({name:"BOUNCE_IN_DOWN",effect(t,e){return ee.from(t,{...e,duration:2,ease:"bounce.out",y:-1500,alpha:0})}}),ee.registerEffect({name:"BOUNCE_IN_LEFT",effect(t,e){return ee.from(t,{...e,ease:"bounce.out",x:-1500,duration:2,alpha:0})}}),ee.registerEffect({name:"BOUNCE_IN_RIGHT",effect(t,e){return ee.from(t,{...e,ease:"bounce.out",x:1500,duration:2})}}),ee.registerEffect({name:"BOUNCE_IN_UP",effect(t,e){return ee.from(t,{...e,ease:"bounce.out",y:1500,duration:2})}}),ee.registerEffect({name:"BOUNCE_OUT",effect(t,e){return ee.from(t,{...e,ease:"bounce.in",y:2e3,duration:1.5})}}),ee.registerEffect({name:"FADE_IN",effect(t,e){return ee.fromTo(t,{alpha:0},{ease:"power4.in",alpha:1,duration:1,...e})}}),ee.registerEffect({name:"FADE_IN_DOWN",effect(t,e){return ee.fromTo(t,{y:-1e3,alpha:0},{ease:"power4.in",y:0,alpha:1,duration:1,...e})}}),ee.registerEffect({name:"FADE_IN_LEFT",effect(t,e){return ee.fromTo(t,{x:-1e3,alpha:0},{ease:"power4.in",x:0,alpha:1,duration:1,...e})}}),ee.registerEffect({name:"FADE_IN_RIGHT",effect(t,e){return ee.fromTo(t,{x:2e3,alpha:0},{ease:"power4.in",x:0,alpha:1,duration:1,...e})}}),ee.registerEffect({name:"FADE_IN_UP",effect(t,e){return ee.fromTo(t,{y:2e3,alpha:0},{ease:"power4.in",y:0,alpha:1,duration:.8,...e})}}),ee.registerEffect({name:"SPIN",effect(t){return ee.to(t,{rotation:(e,r)=>ee.utils.snap(360,Number(ee.getProperty(r,"rotation"))+360)})}});function Wf(){return{updateEffect:j.useCallback((e,r,n)=>(console.log("useGsapEffect useEffect",r,n),ee.effects[r]&&e?ee.effects[r](e,n):ee.effects.NONE(e,n)),[])}}var Ru=(t=>(t.NONE="NONE",t.FLASH="FLASH",t.PULSE="PULSE",t.SHAKE="SHAKE",t.SWING="SWING",t.JELLO="JELLO",t.WOOBLE="WOOBLE",t.FADE_IN="FADE_IN",t.FADE_OUT="FADE_OUT",t.FADE_IN_OUT="FADE_IN_OUT",t.SLIDE_IN_LEFT="SLIDE_IN_LEFT",t.SLIDE_IN_RIGHT="SLIDE_IN_RIGHT",t.SLIDE_IN_TOP="SLIDE_IN_TOP",t.SLIDE_IN_BOTTOM="SLIDE_IN_BOTTOM",t.SLIDE_OUT_LEFT="SLIDE_OUT_LEFT",t.SLIDE_OUT_RIGHT="SLIDE_OUT_RIGHT",t.SLIDE_OUT_TOP="SLIDE_OUT_TOP",t.SLIDE_OUT_BOTTOM="SLIDE_OUT_BOTTOM",t.ZOOM_IN="ZOOM_IN",t.ZOOM_OUT="ZOOM_OUT",t.ZOOM_IN_OUT="ZOOM_IN_OUT",t.BOUNCE_IN="BOUNCE_IN",t.BOUNCE_OUT="BOUNCE_OUT",t.BOUNCE_IN_OUT="BOUNCE_IN_OUT",t.BOUNCE_IN_DOWN="BOUNCE_IN_DOWN",t.BOUNCE_IN_LEFT="BOUNCE_IN_LEFT",t.BOUNCE_IN_RIGHT="BOUNCE_IN_RIGHT",t.BOUNCE_IN_UP="BOUNCE_IN_UP",t.BOUNCE_OUT_DOWN="BOUNCE_OUT_DOWN",t.BOUNCE_OUT_LEFT="BOUNCE_OUT_LEFT",t.BOUNCE_OUT_RIGHT="BOUNCE_OUT_RIGHT",t.BOUNCE_OUT_UP="BOUNCE_OUT_UP",t.FADE_IN_DOWN="FADE_IN_DOWN",t.FADE_IN_LEFT="FADE_IN_LEFT",t.FADE_IN_RIGHT="FADE_IN_RIGHT",t.FADE_IN_UP="FADE_IN_UP",t.FADE_OUT_DOWN="FADE_OUT_DOWN",t.FADE_OUT_LEFT="FADE_OUT_LEFT",t.FADE_OUT_RIGHT="FADE_OUT_RIGHT",t.FADE_OUT_UP="FADE_OUT_UP",t.ELASTIC_IN="ELASTIC_IN",t.ELASTIC_OUT="ELASTIC_OUT",t.ELASTIC_IN_OUT="ELASTIC_IN_OUT",t.BACK_IN="BACK_IN",t.BACK_OUT="BACK_OUT",t.BACK_IN_OUT="BACK_IN_OUT",t.CIRCULAR_IN="CIRCULAR_IN",t.CIRCULAR_OUT="CIRCULAR_OUT",t.CIRCULAR_IN_OUT="CIRCULAR_IN_OUT",t.EXPO_IN="EXPO_IN",t.EXPO_OUT="EXPO_OUT",t.EXPO_IN_OUT="EXPO_IN_OUT",t.SINE_IN="SINE_IN",t.SINE_OUT="SINE_OUT",t.SINE_IN_OUT="SINE_IN_OUT",t.BOUNCE="BOUNCE",t.ELASTIC="ELASTIC",t.BACK="BACK",t.CIRCULAR="CIRCULAR",t.EXPO="EXPO",t.SINE="SINE",t))(Ru||{});const _S=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],cn=te.forwardRef((t,e)=>{var We,ve,we,De;const[r,n]=te.useState(!1),[i,a]=j.useState(!1),[u,l]=j.useState(!1),[h,p]=j.useState(),m=RT(h,1300),c=j.useRef(null),d=j.useRef(null),g=j.useRef(null),v=j.useRef(null),y=j.useRef(null),b=j.useRef(null),{tl:x}=j.useContext(on),{uniqueId:E,visible:T,startAt:I,transformation:{x:O,y:F,width:N,height:L,scale:D=[1,1],rotation:V=0,effect:Y,overlay:ie,animation:X=Ru.NONE},applyTransformer:G,disabled:ae,pointerdown:se,pointerout:z,pointerover:Q,isText:pe,isDragging:W,isGif:q,onDoubleClick:he,isTextEditMode:fe}=t,me=Wf();ht(Ze.COMPLETE,()=>{c.current}),te.useImperativeHandle(e,()=>({getIsTransformerDragging:()=>i,getIsMouseOverTransformer:()=>u}),[i,u]),te.useEffect(()=>{c.current&&n(!0)},[]),te.useEffect(()=>{p({x:O,y:F,width:N,height:L,animation:X})},[X,O,F,N,L,V,D]),te.useEffect(()=>{if(!d.current)return;const Oe=ee.context(()=>{if(x.current&&m){const{x:Te,y:ge,animation:tt}=m||{},oe=me.updateEffect(c.current,tt,{immediateRender:!1,x:Te,y:ge,overwrite:!0,onUpdate:()=>{var Ie,Ft;console.log("current image ref location",(Ie=c.current)==null?void 0:Ie.x,(Ft=c.current)==null?void 0:Ft.y)}});y.current&&(x.current.remove(y.current),console.log("killing timeline"),y.current.progress(0).kill()),console.log("startAt Anim",I),oe.progress(1),x.current.add(oe,I),y.current=oe}else console.log("no animation"),y.current&&y.current.progress(0).kill()},d.current);return()=>{Oe.revert()}},[I,m]);const be=te.useCallback(()=>{l(!0),Q&&Q()},[]),Ce=te.useCallback(()=>{a(!0)},[]),$e=te.useCallback(Oe=>{t.onAnchorTransformationEnd&&t.onAnchorTransformationEnd(Oe),a(!1)},[]),He=Be.withFilters(Be.Container,{matrix:Gt.filters.ColorMatrixFilter});return console.log("render=> imageRef location",(We=c.current)==null?void 0:We.x,(ve=c.current)==null?void 0:ve.y,O,F,"imagegroup",(we=g.current)==null?void 0:we.x,(De=g.current)==null?void 0:De.y),Ae.jsxs(Be.Container,{ref:d,children:[Ae.jsx(Be.Container,{ref:c,position:[O,F],pivot:[O,F],width:N,height:L,scale:D,rotation:V,...!ae&&T&&!i&&!W&&{interactive:!0,buttonMode:!0,pointerdown:se,pointerover:Q,pointerout:z},children:Ae.jsxs(Be.Container,{ref:b,children:[!q&&Ae.jsx(He,{scale:1,apply:({matrix:Oe})=>{Y===Rn.BlackAndWhite?Oe.desaturate():Y===Rn.Sepia?Oe.sepia():Y===Rn.RetroVintage||Y===Rn.NightVision?Oe.negative():Y===Rn.Normal&&Oe.reset()},matrix:{enabled:!0,matrix:_S},children:Ae.jsx(Be.Container,{ref:g,children:t.children})}),q&&Ae.jsx(Be.Container,{ref:g,children:t.children}),!ss(ie)&&ie!==Au.NONE&&ie!==Au.NORMAL&&Ae.jsx(VT,{overlay:ie,width:N,height:L,x:O,y:F})]})}),G&&T&&!fe&&Ae.jsx(uv,{pixiTransformerRef:v,imageRef:c,isMounted:r,transformCommit:$e,transformChange:Ce,mouseoverEvent:be,uniqueId:E,isText:pe,onDoubleClick:he})]})});cn.whyDidYouRender={logOnDifferentValues:!0,customName:"AbstractContainer"};var Mn=(t=>(t[t.WEBGL_LEGACY=0]="WEBGL_LEGACY",t[t.WEBGL=1]="WEBGL",t[t.WEBGL2=2]="WEBGL2",t))(Mn||{}),qf=(t=>(t[t.UNKNOWN=0]="UNKNOWN",t[t.WEBGL=1]="WEBGL",t[t.CANVAS=2]="CANVAS",t))(qf||{}),Pu=(t=>(t[t.COLOR=16384]="COLOR",t[t.DEPTH=256]="DEPTH",t[t.STENCIL=1024]="STENCIL",t))(Pu||{}),de=(t=>(t[t.NORMAL=0]="NORMAL",t[t.ADD=1]="ADD",t[t.MULTIPLY=2]="MULTIPLY",t[t.SCREEN=3]="SCREEN",t[t.OVERLAY=4]="OVERLAY",t[t.DARKEN=5]="DARKEN",t[t.LIGHTEN=6]="LIGHTEN",t[t.COLOR_DODGE=7]="COLOR_DODGE",t[t.COLOR_BURN=8]="COLOR_BURN",t[t.HARD_LIGHT=9]="HARD_LIGHT",t[t.SOFT_LIGHT=10]="SOFT_LIGHT",t[t.DIFFERENCE=11]="DIFFERENCE",t[t.EXCLUSION=12]="EXCLUSION",t[t.HUE=13]="HUE",t[t.SATURATION=14]="SATURATION",t[t.COLOR=15]="COLOR",t[t.LUMINOSITY=16]="LUMINOSITY",t[t.NORMAL_NPM=17]="NORMAL_NPM",t[t.ADD_NPM=18]="ADD_NPM",t[t.SCREEN_NPM=19]="SCREEN_NPM",t[t.NONE=20]="NONE",t[t.SRC_OVER=0]="SRC_OVER",t[t.SRC_IN=21]="SRC_IN",t[t.SRC_OUT=22]="SRC_OUT",t[t.SRC_ATOP=23]="SRC_ATOP",t[t.DST_OVER=24]="DST_OVER",t[t.DST_IN=25]="DST_IN",t[t.DST_OUT=26]="DST_OUT",t[t.DST_ATOP=27]="DST_ATOP",t[t.ERASE=26]="ERASE",t[t.SUBTRACT=28]="SUBTRACT",t[t.XOR=29]="XOR",t))(de||{}),hn=(t=>(t[t.POINTS=0]="POINTS",t[t.LINES=1]="LINES",t[t.LINE_LOOP=2]="LINE_LOOP",t[t.LINE_STRIP=3]="LINE_STRIP",t[t.TRIANGLES=4]="TRIANGLES",t[t.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",t[t.TRIANGLE_FAN=6]="TRIANGLE_FAN",t))(hn||{}),Z=(t=>(t[t.RGBA=6408]="RGBA",t[t.RGB=6407]="RGB",t[t.RG=33319]="RG",t[t.RED=6403]="RED",t[t.RGBA_INTEGER=36249]="RGBA_INTEGER",t[t.RGB_INTEGER=36248]="RGB_INTEGER",t[t.RG_INTEGER=33320]="RG_INTEGER",t[t.RED_INTEGER=36244]="RED_INTEGER",t[t.ALPHA=6406]="ALPHA",t[t.LUMINANCE=6409]="LUMINANCE",t[t.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",t[t.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",t[t.DEPTH_STENCIL=34041]="DEPTH_STENCIL",t))(Z||{}),fi=(t=>(t[t.TEXTURE_2D=3553]="TEXTURE_2D",t[t.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",t[t.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",t[t.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",t[t.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",t[t.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",t[t.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",t))(fi||{}),Ge=(t=>(t[t.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",t[t.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",t[t.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",t[t.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",t[t.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",t[t.UNSIGNED_INT=5125]="UNSIGNED_INT",t[t.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",t[t.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",t[t.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",t[t.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",t[t.BYTE=5120]="BYTE",t[t.SHORT=5122]="SHORT",t[t.INT=5124]="INT",t[t.FLOAT=5126]="FLOAT",t[t.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",t[t.HALF_FLOAT=36193]="HALF_FLOAT",t))(Ge||{}),Mu=(t=>(t[t.FLOAT=0]="FLOAT",t[t.INT=1]="INT",t[t.UINT=2]="UINT",t))(Mu||{}),kr=(t=>(t[t.NEAREST=0]="NEAREST",t[t.LINEAR=1]="LINEAR",t))(kr||{}),hs=(t=>(t[t.CLAMP=33071]="CLAMP",t[t.REPEAT=10497]="REPEAT",t[t.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT",t))(hs||{}),On=(t=>(t[t.OFF=0]="OFF",t[t.POW2=1]="POW2",t[t.ON=2]="ON",t[t.ON_MANUAL=3]="ON_MANUAL",t))(On||{}),fn=(t=>(t[t.NPM=0]="NPM",t[t.UNPACK=1]="UNPACK",t[t.PMA=2]="PMA",t[t.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",t[t.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",t[t.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA",t))(fn||{}),Fn=(t=>(t[t.NO=0]="NO",t[t.YES=1]="YES",t[t.AUTO=2]="AUTO",t[t.BLEND=0]="BLEND",t[t.CLEAR=1]="CLEAR",t[t.BLIT=2]="BLIT",t))(Fn||{}),Ou=(t=>(t[t.AUTO=0]="AUTO",t[t.MANUAL=1]="MANUAL",t))(Ou||{}),or=(t=>(t.LOW="lowp",t.MEDIUM="mediump",t.HIGH="highp",t))(or||{}),vt=(t=>(t[t.NONE=0]="NONE",t[t.SCISSOR=1]="SCISSOR",t[t.STENCIL=2]="STENCIL",t[t.SPRITE=3]="SPRITE",t[t.COLOR=4]="COLOR",t))(vt||{}),_t=(t=>(t[t.NONE=0]="NONE",t[t.LOW=2]="LOW",t[t.MEDIUM=4]="MEDIUM",t[t.HIGH=8]="HIGH",t))(_t||{}),Dr=(t=>(t[t.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",t[t.ARRAY_BUFFER=34962]="ARRAY_BUFFER",t[t.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER",t))(Dr||{});const Re={ADAPTER:{createCanvas:(t,e)=>{const r=document.createElement("canvas");return r.width=t,r.height=e,r},getCanvasRenderingContext2D:()=>CanvasRenderingContext2D,getWebGLRenderingContext:()=>WebGLRenderingContext,getNavigator:()=>navigator,getBaseUrl:()=>document.baseURI??window.location.href,getFontFaceSet:()=>document.fonts,fetch:(t,e)=>fetch(t,e),parseXML:t=>new DOMParser().parseFromString(t,"text/xml")},RESOLUTION:1,CREATE_IMAGE_BITMAP:!1,ROUND_PIXELS:!1};var Fu=/iPhone/i,Yf=/iPod/i,Kf=/iPad/i,Zf=/\biOS-universal(?:.+)Mac\b/i,Nu=/\bAndroid(?:.+)Mobile\b/i,Qf=/Android/i,di=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,ga=/Silk/i,Xr=/Windows Phone/i,Jf=/\bWindows(?:.+)ARM\b/i,ed=/BlackBerry/i,td=/BB10/i,rd=/Opera Mini/i,nd=/\b(CriOS|Chrome)(?:.+)Mobile/i,id=/Mobile(?:.+)Firefox\b/i,sd=function(t){return typeof t<"u"&&t.platform==="MacIntel"&&typeof t.maxTouchPoints=="number"&&t.maxTouchPoints>1&&typeof MSStream>"u"};function vS(t){return function(e){return e.test(t)}}function ad(t){var e={userAgent:"",platform:"",maxTouchPoints:0};!t&&typeof navigator<"u"?e={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof t=="string"?e.userAgent=t:t&&t.userAgent&&(e={userAgent:t.userAgent,platform:t.platform,maxTouchPoints:t.maxTouchPoints||0});var r=e.userAgent,n=r.split("[FBAN");typeof n[1]<"u"&&(r=n[0]),n=r.split("Twitter"),typeof n[1]<"u"&&(r=n[0]);var i=vS(r),a={apple:{phone:i(Fu)&&!i(Xr),ipod:i(Yf),tablet:!i(Fu)&&(i(Kf)||sd(e))&&!i(Xr),universal:i(Zf),device:(i(Fu)||i(Yf)||i(Kf)||i(Zf)||sd(e))&&!i(Xr)},amazon:{phone:i(di),tablet:!i(di)&&i(ga),device:i(di)||i(ga)},android:{phone:!i(Xr)&&i(di)||!i(Xr)&&i(Nu),tablet:!i(Xr)&&!i(di)&&!i(Nu)&&(i(ga)||i(Qf)),device:!i(Xr)&&(i(di)||i(ga)||i(Nu)||i(Qf))||i(/\bokhttp\b/i)},windows:{phone:i(Xr),tablet:i(Jf),device:i(Xr)||i(Jf)},other:{blackberry:i(ed),blackberry10:i(td),opera:i(rd),firefox:i(id),chrome:i(nd),device:i(ed)||i(td)||i(rd)||i(id)||i(nd)},any:!1,phone:!1,tablet:!1};return a.any=a.apple.device||a.android.device||a.windows.device||a.other.device,a.phone=a.apple.phone||a.android.phone||a.windows.phone,a.tablet=a.apple.tablet||a.android.tablet||a.windows.tablet,a}const pi=(ad.default??ad)(globalThis.navigator);Re.RETINA_PREFIX=/@([0-9\.]+)x/,Re.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT=!1;var od={exports:{}};(function(t){var e=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(h,p,m){this.fn=h,this.context=p,this.once=m||!1}function a(h,p,m,c,d){if(typeof m!="function")throw new TypeError("The listener must be a function");var g=new i(m,c||h,d),v=r?r+p:p;return h._events[v]?h._events[v].fn?h._events[v]=[h._events[v],g]:h._events[v].push(g):(h._events[v]=g,h._eventsCount++),h}function u(h,p){--h._eventsCount===0?h._events=new n:delete h._events[p]}function l(){this._events=new n,this._eventsCount=0}l.prototype.eventNames=function(){var p=[],m,c;if(this._eventsCount===0)return p;for(c in m=this._events)e.call(m,c)&&p.push(r?c.slice(1):c);return Object.getOwnPropertySymbols?p.concat(Object.getOwnPropertySymbols(m)):p},l.prototype.listeners=function(p){var m=r?r+p:p,c=this._events[m];if(!c)return[];if(c.fn)return[c.fn];for(var d=0,g=c.length,v=new Array(g);d<g;d++)v[d]=c[d].fn;return v},l.prototype.listenerCount=function(p){var m=r?r+p:p,c=this._events[m];return c?c.fn?1:c.length:0},l.prototype.emit=function(p,m,c,d,g,v){var y=r?r+p:p;if(!this._events[y])return!1;var b=this._events[y],x=arguments.length,E,T;if(b.fn){switch(b.once&&this.removeListener(p,b.fn,void 0,!0),x){case 1:return b.fn.call(b.context),!0;case 2:return b.fn.call(b.context,m),!0;case 3:return b.fn.call(b.context,m,c),!0;case 4:return b.fn.call(b.context,m,c,d),!0;case 5:return b.fn.call(b.context,m,c,d,g),!0;case 6:return b.fn.call(b.context,m,c,d,g,v),!0}for(T=1,E=new Array(x-1);T<x;T++)E[T-1]=arguments[T];b.fn.apply(b.context,E)}else{var I=b.length,O;for(T=0;T<I;T++)switch(b[T].once&&this.removeListener(p,b[T].fn,void 0,!0),x){case 1:b[T].fn.call(b[T].context);break;case 2:b[T].fn.call(b[T].context,m);break;case 3:b[T].fn.call(b[T].context,m,c);break;case 4:b[T].fn.call(b[T].context,m,c,d);break;default:if(!E)for(O=1,E=new Array(x-1);O<x;O++)E[O-1]=arguments[O];b[T].fn.apply(b[T].context,E)}}return!0},l.prototype.on=function(p,m,c){return a(this,p,m,c,!1)},l.prototype.once=function(p,m,c){return a(this,p,m,c,!0)},l.prototype.removeListener=function(p,m,c,d){var g=r?r+p:p;if(!this._events[g])return this;if(!m)return u(this,g),this;var v=this._events[g];if(v.fn)v.fn===m&&(!d||v.once)&&(!c||v.context===c)&&u(this,g);else{for(var y=0,b=[],x=v.length;y<x;y++)(v[y].fn!==m||d&&!v[y].once||c&&v[y].context!==c)&&b.push(v[y]);b.length?this._events[g]=b.length===1?b[0]:b:u(this,g)}return this},l.prototype.removeAllListeners=function(p){var m;return p?(m=r?r+p:p,this._events[m]&&u(this,m)):(this._events=new n,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=r,l.EventEmitter=l,t.exports=l})(od);var yS=od.exports;const ma=In(yS);var Lu={exports:{}};Lu.exports=_a,Lu.exports.default=_a;function _a(t,e,r){r=r||2;var n=e&&e.length,i=n?e[0]*r:t.length,a=ud(t,0,i,r,!0),u=[];if(!a||a.next===a.prev)return u;var l,h,p,m,c,d,g;if(n&&(a=SS(t,e,a,r)),t.length>80*r){l=p=t[0],h=m=t[1];for(var v=r;v<i;v+=r)c=t[v],d=t[v+1],c<l&&(l=c),d<h&&(h=d),c>p&&(p=c),d>m&&(m=d);g=Math.max(p-l,m-h),g=g!==0?32767/g:0}return fs(a,u,r,l,h,g,0),u}function ud(t,e,r,n,i){var a,u;if(i===Bu(t,e,r,n)>0)for(a=e;a<r;a+=n)u=hd(a,t[a],t[a+1],u);else for(a=r-n;a>=e;a-=n)u=hd(a,t[a],t[a+1],u);return u&&va(u,u.next)&&(ps(u),u=u.next),u}function Nn(t,e){if(!t)return t;e||(e=t);var r=t,n;do if(n=!1,!r.steiner&&(va(r,r.next)||ot(r.prev,r,r.next)===0)){if(ps(r),r=e=r.prev,r===r.next)break;n=!0}else r=r.next;while(n||r!==e);return e}function fs(t,e,r,n,i,a,u){if(t){!u&&a&&RS(t,n,i,a);for(var l=t,h,p;t.prev!==t.next;){if(h=t.prev,p=t.next,a?bS(t,n,i,a):xS(t)){e.push(h.i/r|0),e.push(t.i/r|0),e.push(p.i/r|0),ps(t),t=p.next,l=p.next;continue}if(t=p,t===l){u?u===1?(t=wS(Nn(t),e,r),fs(t,e,r,n,i,a,2)):u===2&&TS(t,e,r,n,i,a):fs(Nn(t),e,r,n,i,a,1);break}}}}function xS(t){var e=t.prev,r=t,n=t.next;if(ot(e,r,n)>=0)return!1;for(var i=e.x,a=r.x,u=n.x,l=e.y,h=r.y,p=n.y,m=i<a?i<u?i:u:a<u?a:u,c=l<h?l<p?l:p:h<p?h:p,d=i>a?i>u?i:u:a>u?a:u,g=l>h?l>p?l:p:h>p?h:p,v=n.next;v!==e;){if(v.x>=m&&v.x<=d&&v.y>=c&&v.y<=g&&gi(i,l,a,h,u,p,v.x,v.y)&&ot(v.prev,v,v.next)>=0)return!1;v=v.next}return!0}function bS(t,e,r,n){var i=t.prev,a=t,u=t.next;if(ot(i,a,u)>=0)return!1;for(var l=i.x,h=a.x,p=u.x,m=i.y,c=a.y,d=u.y,g=l<h?l<p?l:p:h<p?h:p,v=m<c?m<d?m:d:c<d?c:d,y=l>h?l>p?l:p:h>p?h:p,b=m>c?m>d?m:d:c>d?c:d,x=ku(g,v,e,r,n),E=ku(y,b,e,r,n),T=t.prevZ,I=t.nextZ;T&&T.z>=x&&I&&I.z<=E;){if(T.x>=g&&T.x<=y&&T.y>=v&&T.y<=b&&T!==i&&T!==u&&gi(l,m,h,c,p,d,T.x,T.y)&&ot(T.prev,T,T.next)>=0||(T=T.prevZ,I.x>=g&&I.x<=y&&I.y>=v&&I.y<=b&&I!==i&&I!==u&&gi(l,m,h,c,p,d,I.x,I.y)&&ot(I.prev,I,I.next)>=0))return!1;I=I.nextZ}for(;T&&T.z>=x;){if(T.x>=g&&T.x<=y&&T.y>=v&&T.y<=b&&T!==i&&T!==u&&gi(l,m,h,c,p,d,T.x,T.y)&&ot(T.prev,T,T.next)>=0)return!1;T=T.prevZ}for(;I&&I.z<=E;){if(I.x>=g&&I.x<=y&&I.y>=v&&I.y<=b&&I!==i&&I!==u&&gi(l,m,h,c,p,d,I.x,I.y)&&ot(I.prev,I,I.next)>=0)return!1;I=I.nextZ}return!0}function wS(t,e,r){var n=t;do{var i=n.prev,a=n.next.next;!va(i,a)&&ld(i,n,n.next,a)&&ds(i,a)&&ds(a,i)&&(e.push(i.i/r|0),e.push(n.i/r|0),e.push(a.i/r|0),ps(n),ps(n.next),n=t=a),n=n.next}while(n!==t);return Nn(n)}function TS(t,e,r,n,i,a){var u=t;do{for(var l=u.next.next;l!==u.prev;){if(u.i!==l.i&&OS(u,l)){var h=cd(u,l);u=Nn(u,u.next),h=Nn(h,h.next),fs(u,e,r,n,i,a,0),fs(h,e,r,n,i,a,0);return}l=l.next}u=u.next}while(u!==t)}function SS(t,e,r,n){var i=[],a,u,l,h,p;for(a=0,u=e.length;a<u;a++)l=e[a]*n,h=a<u-1?e[a+1]*n:t.length,p=ud(t,l,h,n,!1),p===p.next&&(p.steiner=!0),i.push(MS(p));for(i.sort(AS),a=0;a<i.length;a++)r=ES(i[a],r);return r}function AS(t,e){return t.x-e.x}function ES(t,e){var r=CS(t,e);if(!r)return e;var n=cd(r,t);return Nn(n,n.next),Nn(r,r.next)}function CS(t,e){var r=e,n=t.x,i=t.y,a=-1/0,u;do{if(i<=r.y&&i>=r.next.y&&r.next.y!==r.y){var l=r.x+(i-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(l<=n&&l>a&&(a=l,u=r.x<r.next.x?r:r.next,l===n))return u}r=r.next}while(r!==e);if(!u)return null;var h=u,p=u.x,m=u.y,c=1/0,d;r=u;do n>=r.x&&r.x>=p&&n!==r.x&&gi(i<m?n:a,i,p,m,i<m?a:n,i,r.x,r.y)&&(d=Math.abs(i-r.y)/(n-r.x),ds(r,t)&&(d<c||d===c&&(r.x>u.x||r.x===u.x&&IS(u,r)))&&(u=r,c=d)),r=r.next;while(r!==h);return u}function IS(t,e){return ot(t.prev,t,e.prev)<0&&ot(e.next,t,t.next)<0}function RS(t,e,r,n){var i=t;do i.z===0&&(i.z=ku(i.x,i.y,e,r,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next;while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,PS(i)}function PS(t){var e,r,n,i,a,u,l,h,p=1;do{for(r=t,t=null,a=null,u=0;r;){for(u++,n=r,l=0,e=0;e<p&&(l++,n=n.nextZ,!!n);e++);for(h=p;l>0||h>0&&n;)l!==0&&(h===0||!n||r.z<=n.z)?(i=r,r=r.nextZ,l--):(i=n,n=n.nextZ,h--),a?a.nextZ=i:t=i,i.prevZ=a,a=i;r=n}a.nextZ=null,p*=2}while(u>1);return t}function ku(t,e,r,n,i){return t=(t-r)*i|0,e=(e-n)*i|0,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t|e<<1}function MS(t){var e=t,r=t;do(e.x<r.x||e.x===r.x&&e.y<r.y)&&(r=e),e=e.next;while(e!==t);return r}function gi(t,e,r,n,i,a,u,l){return(i-u)*(e-l)>=(t-u)*(a-l)&&(t-u)*(n-l)>=(r-u)*(e-l)&&(r-u)*(a-l)>=(i-u)*(n-l)}function OS(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!FS(t,e)&&(ds(t,e)&&ds(e,t)&&NS(t,e)&&(ot(t.prev,t,e.prev)||ot(t,e.prev,e))||va(t,e)&&ot(t.prev,t,t.next)>0&&ot(e.prev,e,e.next)>0)}function ot(t,e,r){return(e.y-t.y)*(r.x-e.x)-(e.x-t.x)*(r.y-e.y)}function va(t,e){return t.x===e.x&&t.y===e.y}function ld(t,e,r,n){var i=xa(ot(t,e,r)),a=xa(ot(t,e,n)),u=xa(ot(r,n,t)),l=xa(ot(r,n,e));return!!(i!==a&&u!==l||i===0&&ya(t,r,e)||a===0&&ya(t,n,e)||u===0&&ya(r,t,n)||l===0&&ya(r,e,n))}function ya(t,e,r){return e.x<=Math.max(t.x,r.x)&&e.x>=Math.min(t.x,r.x)&&e.y<=Math.max(t.y,r.y)&&e.y>=Math.min(t.y,r.y)}function xa(t){return t>0?1:t<0?-1:0}function FS(t,e){var r=t;do{if(r.i!==t.i&&r.next.i!==t.i&&r.i!==e.i&&r.next.i!==e.i&&ld(r,r.next,t,e))return!0;r=r.next}while(r!==t);return!1}function ds(t,e){return ot(t.prev,t,t.next)<0?ot(t,e,t.next)>=0&&ot(t,t.prev,e)>=0:ot(t,e,t.prev)<0||ot(t,t.next,e)<0}function NS(t,e){var r=t,n=!1,i=(t.x+e.x)/2,a=(t.y+e.y)/2;do r.y>a!=r.next.y>a&&r.next.y!==r.y&&i<(r.next.x-r.x)*(a-r.y)/(r.next.y-r.y)+r.x&&(n=!n),r=r.next;while(r!==t);return n}function cd(t,e){var r=new Du(t.i,t.x,t.y),n=new Du(e.i,e.x,e.y),i=t.next,a=e.prev;return t.next=e,e.prev=t,r.next=i,i.prev=r,n.next=r,r.prev=n,a.next=n,n.prev=a,n}function hd(t,e,r,n){var i=new Du(t,e,r);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function ps(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function Du(t,e,r){this.i=t,this.x=e,this.y=r,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}_a.deviation=function(t,e,r,n){var i=e&&e.length,a=i?e[0]*r:t.length,u=Math.abs(Bu(t,0,a,r));if(i)for(var l=0,h=e.length;l<h;l++){var p=e[l]*r,m=l<h-1?e[l+1]*r:t.length;u-=Math.abs(Bu(t,p,m,r))}var c=0;for(l=0;l<n.length;l+=3){var d=n[l]*r,g=n[l+1]*r,v=n[l+2]*r;c+=Math.abs((t[d]-t[v])*(t[g+1]-t[d+1])-(t[d]-t[g])*(t[v+1]-t[d+1]))}return u===0&&c===0?0:Math.abs((c-u)/u)};function Bu(t,e,r,n){for(var i=0,a=e,u=r-n;a<r;a+=n)i+=(t[u]-t[a])*(t[a+1]+t[u+1]),u=a;return i}_a.flatten=function(t){for(var e=t[0][0].length,r={vertices:[],holes:[],dimensions:e},n=0,i=0;i<t.length;i++){for(var a=0;a<t[i].length;a++)for(var u=0;u<e;u++)r.vertices.push(t[i][a][u]);i>0&&(n+=t[i-1].length,r.holes.push(n))}return r};var LS=Lu.exports;const kS=In(LS);var ba={exports:{}};/*! https://mths.be/punycode v1.4.1 by @mathias */ba.exports,function(t,e){(function(r){var n=e&&!e.nodeType&&e,i=t&&!t.nodeType&&t,a=typeof Et=="object"&&Et;(a.global===a||a.window===a||a.self===a)&&(r=a);var u,l=2147483647,h=36,p=1,m=26,c=38,d=700,g=72,v=128,y="-",b=/^xn--/,x=/[^\x20-\x7E]/,E=/[\x2E\u3002\uFF0E\uFF61]/g,T={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},I=h-p,O=Math.floor,F=String.fromCharCode,N;function L(W){throw new RangeError(T[W])}function D(W,q){for(var he=W.length,fe=[];he--;)fe[he]=q(W[he]);return fe}function V(W,q){var he=W.split("@"),fe="";he.length>1&&(fe=he[0]+"@",W=he[1]),W=W.replace(E,".");var me=W.split("."),be=D(me,q).join(".");return fe+be}function Y(W){for(var q=[],he=0,fe=W.length,me,be;he<fe;)me=W.charCodeAt(he++),me>=55296&&me<=56319&&he<fe?(be=W.charCodeAt(he++),(be&64512)==56320?q.push(((me&1023)<<10)+(be&1023)+65536):(q.push(me),he--)):q.push(me);return q}function ie(W){return D(W,function(q){var he="";return q>65535&&(q-=65536,he+=F(q>>>10&1023|55296),q=56320|q&1023),he+=F(q),he}).join("")}function X(W){return W-48<10?W-22:W-65<26?W-65:W-97<26?W-97:h}function G(W,q){return W+22+75*(W<26)-((q!=0)<<5)}function ae(W,q,he){var fe=0;for(W=he?O(W/d):W>>1,W+=O(W/q);W>I*m>>1;fe+=h)W=O(W/I);return O(fe+(I+1)*W/(W+c))}function se(W){var q=[],he=W.length,fe,me=0,be=v,Ce=g,$e,He,We,ve,we,De,Oe,Te,ge;for($e=W.lastIndexOf(y),$e<0&&($e=0),He=0;He<$e;++He)W.charCodeAt(He)>=128&&L("not-basic"),q.push(W.charCodeAt(He));for(We=$e>0?$e+1:0;We<he;){for(ve=me,we=1,De=h;We>=he&&L("invalid-input"),Oe=X(W.charCodeAt(We++)),(Oe>=h||Oe>O((l-me)/we))&&L("overflow"),me+=Oe*we,Te=De<=Ce?p:De>=Ce+m?m:De-Ce,!(Oe<Te);De+=h)ge=h-Te,we>O(l/ge)&&L("overflow"),we*=ge;fe=q.length+1,Ce=ae(me-ve,fe,ve==0),O(me/fe)>l-be&&L("overflow"),be+=O(me/fe),me%=fe,q.splice(me++,0,be)}return ie(q)}function z(W){var q,he,fe,me,be,Ce,$e,He,We,ve,we,De=[],Oe,Te,ge,tt;for(W=Y(W),Oe=W.length,q=v,he=0,be=g,Ce=0;Ce<Oe;++Ce)we=W[Ce],we<128&&De.push(F(we));for(fe=me=De.length,me&&De.push(y);fe<Oe;){for($e=l,Ce=0;Ce<Oe;++Ce)we=W[Ce],we>=q&&we<$e&&($e=we);for(Te=fe+1,$e-q>O((l-he)/Te)&&L("overflow"),he+=($e-q)*Te,q=$e,Ce=0;Ce<Oe;++Ce)if(we=W[Ce],we<q&&++he>l&&L("overflow"),we==q){for(He=he,We=h;ve=We<=be?p:We>=be+m?m:We-be,!(He<ve);We+=h)tt=He-ve,ge=h-ve,De.push(F(G(ve+tt%ge,0))),He=O(tt/ge);De.push(F(G(He,0))),be=ae(he,Te,fe==me),he=0,++fe}++he,++q}return De.join("")}function Q(W){return V(W,function(q){return b.test(q)?se(q.slice(4).toLowerCase()):q})}function pe(W){return V(W,function(q){return x.test(q)?"xn--"+z(q):q})}if(u={version:"1.4.1",ucs2:{decode:Y,encode:ie},decode:se,encode:z,toASCII:pe,toUnicode:Q},n&&i)if(t.exports==n)i.exports=u;else for(N in u)u.hasOwnProperty(N)&&(n[N]=u[N]);else r.punycode=u})(Et)}(ba,ba.exports);var DS=ba.exports,BS=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;e[r]=i;for(r in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var u=Object.getOwnPropertyDescriptor(e,r);if(u.value!==i||u.enumerable!==!0)return!1}return!0},fd=typeof Symbol<"u"&&Symbol,US=BS,$S=function(){return typeof fd!="function"||typeof Symbol!="function"||typeof fd("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:US()},dd={foo:{}},GS=Object,zS=function(){return{__proto__:dd}.foo===dd.foo&&!({__proto__:null}instanceof GS)},HS="Function.prototype.bind called on incompatible ",Uu=Array.prototype.slice,VS=Object.prototype.toString,XS="[object Function]",jS=function(e){var r=this;if(typeof r!="function"||VS.call(r)!==XS)throw new TypeError(HS+r);for(var n=Uu.call(arguments,1),i,a=function(){if(this instanceof i){var m=r.apply(this,n.concat(Uu.call(arguments)));return Object(m)===m?m:this}else return r.apply(e,n.concat(Uu.call(arguments)))},u=Math.max(0,r.length-n.length),l=[],h=0;h<u;h++)l.push("$"+h);if(i=Function("binder","return function ("+l.join(",")+"){ return binder.apply(this,arguments); }")(a),r.prototype){var p=function(){};p.prototype=r.prototype,i.prototype=new p,p.prototype=null}return i},WS=jS,$u=Function.prototype.bind||WS,qS=$u,YS=qS.call(Function.call,Object.prototype.hasOwnProperty),Me,mi=SyntaxError,pd=Function,_i=TypeError,Gu=function(t){try{return pd('"use strict"; return ('+t+").constructor;")()}catch{}},Ln=Object.getOwnPropertyDescriptor;if(Ln)try{Ln({},"")}catch{Ln=null}var zu=function(){throw new _i},KS=Ln?function(){try{return arguments.callee,zu}catch{try{return Ln(arguments,"callee").get}catch{return zu}}}():zu,vi=$S(),ZS=zS(),wt=Object.getPrototypeOf||(ZS?function(t){return t.__proto__}:null),yi={},QS=typeof Uint8Array>"u"||!wt?Me:wt(Uint8Array),kn={"%AggregateError%":typeof AggregateError>"u"?Me:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Me:ArrayBuffer,"%ArrayIteratorPrototype%":vi&&wt?wt([][Symbol.iterator]()):Me,"%AsyncFromSyncIteratorPrototype%":Me,"%AsyncFunction%":yi,"%AsyncGenerator%":yi,"%AsyncGeneratorFunction%":yi,"%AsyncIteratorPrototype%":yi,"%Atomics%":typeof Atomics>"u"?Me:Atomics,"%BigInt%":typeof BigInt>"u"?Me:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Me:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Me:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Me:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?Me:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Me:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Me:FinalizationRegistry,"%Function%":pd,"%GeneratorFunction%":yi,"%Int8Array%":typeof Int8Array>"u"?Me:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Me:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Me:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":vi&&wt?wt(wt([][Symbol.iterator]())):Me,"%JSON%":typeof JSON=="object"?JSON:Me,"%Map%":typeof Map>"u"?Me:Map,"%MapIteratorPrototype%":typeof Map>"u"||!vi||!wt?Me:wt(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Me:Promise,"%Proxy%":typeof Proxy>"u"?Me:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?Me:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Me:Set,"%SetIteratorPrototype%":typeof Set>"u"||!vi||!wt?Me:wt(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Me:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":vi&&wt?wt(""[Symbol.iterator]()):Me,"%Symbol%":vi?Symbol:Me,"%SyntaxError%":mi,"%ThrowTypeError%":KS,"%TypedArray%":QS,"%TypeError%":_i,"%Uint8Array%":typeof Uint8Array>"u"?Me:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Me:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Me:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Me:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?Me:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Me:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Me:WeakSet};if(wt)try{null.error}catch(t){var JS=wt(wt(t));kn["%Error.prototype%"]=JS}var eA=function t(e){var r;if(e==="%AsyncFunction%")r=Gu("async function () {}");else if(e==="%GeneratorFunction%")r=Gu("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=Gu("async function* () {}");else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var i=t("%AsyncGenerator%");i&&wt&&(r=wt(i.prototype))}return kn[e]=r,r},gd={"%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"]},gs=$u,wa=YS,tA=gs.call(Function.call,Array.prototype.concat),rA=gs.call(Function.apply,Array.prototype.splice),md=gs.call(Function.call,String.prototype.replace),Ta=gs.call(Function.call,String.prototype.slice),nA=gs.call(Function.call,RegExp.prototype.exec),iA=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,sA=/\\(\\)?/g,aA=function(e){var r=Ta(e,0,1),n=Ta(e,-1);if(r==="%"&&n!=="%")throw new mi("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new mi("invalid intrinsic syntax, expected opening `%`");var i=[];return md(e,iA,function(a,u,l,h){i[i.length]=l?md(h,sA,"$1"):u||a}),i},oA=function(e,r){var n=e,i;if(wa(gd,n)&&(i=gd[n],n="%"+i[0]+"%"),wa(kn,n)){var a=kn[n];if(a===yi&&(a=eA(n)),typeof a>"u"&&!r)throw new _i("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:a}}throw new mi("intrinsic "+e+" does not exist!")},Hu=function(e,r){if(typeof e!="string"||e.length===0)throw new _i("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new _i('"allowMissing" argument must be a boolean');if(nA(/^%?[^%]*%?$/,e)===null)throw new mi("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=aA(e),i=n.length>0?n[0]:"",a=oA("%"+i+"%",r),u=a.name,l=a.value,h=!1,p=a.alias;p&&(i=p[0],rA(n,tA([0,1],p)));for(var m=1,c=!0;m<n.length;m+=1){var d=n[m],g=Ta(d,0,1),v=Ta(d,-1);if((g==='"'||g==="'"||g==="`"||v==='"'||v==="'"||v==="`")&&g!==v)throw new mi("property names with quotes must have matching quotes");if((d==="constructor"||!c)&&(h=!0),i+="."+d,u="%"+i+"%",wa(kn,u))l=kn[u];else if(l!=null){if(!(d in l)){if(!r)throw new _i("base intrinsic for "+e+" exists, but the property is not available.");return}if(Ln&&m+1>=n.length){var y=Ln(l,d);c=!!y,c&&"get"in y&&!("originalValue"in y.get)?l=y.get:l=l[d]}else c=wa(l,d),l=l[d];c&&!h&&(kn[u]=l)}}return l},_d={exports:{}};(function(t){var e=$u,r=Hu,n=r("%Function.prototype.apply%"),i=r("%Function.prototype.call%"),a=r("%Reflect.apply%",!0)||e.call(i,n),u=r("%Object.getOwnPropertyDescriptor%",!0),l=r("%Object.defineProperty%",!0),h=r("%Math.max%");if(l)try{l({},"a",{value:1})}catch{l=null}t.exports=function(c){var d=a(e,i,arguments);if(u&&l){var g=u(d,"length");g.configurable&&l(d,"length",{value:1+h(0,c.length-(arguments.length-1))})}return d};var p=function(){return a(e,n,arguments)};l?l(t.exports,"apply",{value:p}):t.exports.apply=p})(_d);var uA=_d.exports,vd=Hu,yd=uA,lA=yd(vd("String.prototype.indexOf")),cA=function(e,r){var n=vd(e,!!r);return typeof n=="function"&&lA(e,".prototype.")>-1?yd(n):n};const hA=J_(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Vu=typeof Map=="function"&&Map.prototype,Xu=Object.getOwnPropertyDescriptor&&Vu?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Sa=Vu&&Xu&&typeof Xu.get=="function"?Xu.get:null,xd=Vu&&Map.prototype.forEach,ju=typeof Set=="function"&&Set.prototype,Wu=Object.getOwnPropertyDescriptor&&ju?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Aa=ju&&Wu&&typeof Wu.get=="function"?Wu.get:null,bd=ju&&Set.prototype.forEach,fA=typeof WeakMap=="function"&&WeakMap.prototype,ms=fA?WeakMap.prototype.has:null,dA=typeof WeakSet=="function"&&WeakSet.prototype,_s=dA?WeakSet.prototype.has:null,pA=typeof WeakRef=="function"&&WeakRef.prototype,wd=pA?WeakRef.prototype.deref:null,gA=Boolean.prototype.valueOf,mA=Object.prototype.toString,_A=Function.prototype.toString,vA=String.prototype.match,qu=String.prototype.slice,dn=String.prototype.replace,yA=String.prototype.toUpperCase,Td=String.prototype.toLowerCase,Sd=RegExp.prototype.test,Ad=Array.prototype.concat,Br=Array.prototype.join,xA=Array.prototype.slice,Ed=Math.floor,Yu=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Ku=Object.getOwnPropertySymbols,Zu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,xi=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Pt=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===xi||"symbol")?Symbol.toStringTag:null,Cd=Object.prototype.propertyIsEnumerable,Id=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function Rd(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||Sd.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-Ed(-t):Ed(t);if(n!==t){var i=String(n),a=qu.call(e,i.length+1);return dn.call(i,r,"$&_")+"."+dn.call(dn.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return dn.call(e,r,"$&_")}var Qu=hA,Pd=Qu.custom,Md=Nd(Pd)?Pd:null,bA=function t(e,r,n,i){var a=r||{};if(pn(a,"quoteStyle")&&a.quoteStyle!=="single"&&a.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(pn(a,"maxStringLength")&&(typeof a.maxStringLength=="number"?a.maxStringLength<0&&a.maxStringLength!==1/0:a.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var u=pn(a,"customInspect")?a.customInspect:!0;if(typeof u!="boolean"&&u!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(pn(a,"indent")&&a.indent!==null&&a.indent!==" "&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(pn(a,"numericSeparator")&&typeof a.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var l=a.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return kd(e,a);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var h=String(e);return l?Rd(e,h):h}if(typeof e=="bigint"){var p=String(e)+"n";return l?Rd(e,p):p}var m=typeof a.depth>"u"?5:a.depth;if(typeof n>"u"&&(n=0),n>=m&&m>0&&typeof e=="object")return Ju(e)?"[Array]":"[Object]";var c=UA(a,n);if(typeof i>"u")i=[];else if(Ld(i,e)>=0)return"[Circular]";function d(X,G,ae){if(G&&(i=xA.call(i),i.push(G)),ae){var se={depth:a.depth};return pn(a,"quoteStyle")&&(se.quoteStyle=a.quoteStyle),t(X,se,n+1,i)}return t(X,a,n+1,i)}if(typeof e=="function"&&!Fd(e)){var g=PA(e),v=Ea(e,d);return"[Function"+(g?": "+g:" (anonymous)")+"]"+(v.length>0?" { "+Br.call(v,", ")+" }":"")}if(Nd(e)){var y=xi?dn.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):Zu.call(e);return typeof e=="object"&&!xi?vs(y):y}if(kA(e)){for(var b="<"+Td.call(String(e.nodeName)),x=e.attributes||[],E=0;E<x.length;E++)b+=" "+x[E].name+"="+Od(wA(x[E].value),"double",a);return b+=">",e.childNodes&&e.childNodes.length&&(b+="..."),b+="</"+Td.call(String(e.nodeName))+">",b}if(Ju(e)){if(e.length===0)return"[]";var T=Ea(e,d);return c&&!BA(T)?"["+tl(T,c)+"]":"[ "+Br.call(T,", ")+" ]"}if(SA(e)){var I=Ea(e,d);return!("cause"in Error.prototype)&&"cause"in e&&!Cd.call(e,"cause")?"{ ["+String(e)+"] "+Br.call(Ad.call("[cause]: "+d(e.cause),I),", ")+" }":I.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+Br.call(I,", ")+" }"}if(typeof e=="object"&&u){if(Md&&typeof e[Md]=="function"&&Qu)return Qu(e,{depth:m-n});if(u!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(MA(e)){var O=[];return xd&&xd.call(e,function(X,G){O.push(d(G,e,!0)+" => "+d(X,e))}),Dd("Map",Sa.call(e),O,c)}if(NA(e)){var F=[];return bd&&bd.call(e,function(X){F.push(d(X,e))}),Dd("Set",Aa.call(e),F,c)}if(OA(e))return el("WeakMap");if(LA(e))return el("WeakSet");if(FA(e))return el("WeakRef");if(EA(e))return vs(d(Number(e)));if(IA(e))return vs(d(Yu.call(e)));if(CA(e))return vs(gA.call(e));if(AA(e))return vs(d(String(e)));if(!TA(e)&&!Fd(e)){var N=Ea(e,d),L=Id?Id(e)===Object.prototype:e instanceof Object||e.constructor===Object,D=e instanceof Object?"":"null prototype",V=!L&&Pt&&Object(e)===e&&Pt in e?qu.call(gn(e),8,-1):D?"Object":"",Y=L||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",ie=Y+(V||D?"["+Br.call(Ad.call([],V||[],D||[]),": ")+"] ":"");return N.length===0?ie+"{}":c?ie+"{"+tl(N,c)+"}":ie+"{ "+Br.call(N,", ")+" }"}return String(e)};function Od(t,e,r){var n=(r.quoteStyle||e)==="double"?'"':"'";return n+t+n}function wA(t){return dn.call(String(t),/"/g,""")}function Ju(t){return gn(t)==="[object Array]"&&(!Pt||!(typeof t=="object"&&Pt in t))}function TA(t){return gn(t)==="[object Date]"&&(!Pt||!(typeof t=="object"&&Pt in t))}function Fd(t){return gn(t)==="[object RegExp]"&&(!Pt||!(typeof t=="object"&&Pt in t))}function SA(t){return gn(t)==="[object Error]"&&(!Pt||!(typeof t=="object"&&Pt in t))}function AA(t){return gn(t)==="[object String]"&&(!Pt||!(typeof t=="object"&&Pt in t))}function EA(t){return gn(t)==="[object Number]"&&(!Pt||!(typeof t=="object"&&Pt in t))}function CA(t){return gn(t)==="[object Boolean]"&&(!Pt||!(typeof t=="object"&&Pt in t))}function Nd(t){if(xi)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!Zu)return!1;try{return Zu.call(t),!0}catch{}return!1}function IA(t){if(!t||typeof t!="object"||!Yu)return!1;try{return Yu.call(t),!0}catch{}return!1}var RA=Object.prototype.hasOwnProperty||function(t){return t in this};function pn(t,e){return RA.call(t,e)}function gn(t){return mA.call(t)}function PA(t){if(t.name)return t.name;var e=vA.call(_A.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function Ld(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function MA(t){if(!Sa||!t||typeof t!="object")return!1;try{Sa.call(t);try{Aa.call(t)}catch{return!0}return t instanceof Map}catch{}return!1}function OA(t){if(!ms||!t||typeof t!="object")return!1;try{ms.call(t,ms);try{_s.call(t,_s)}catch{return!0}return t instanceof WeakMap}catch{}return!1}function FA(t){if(!wd||!t||typeof t!="object")return!1;try{return wd.call(t),!0}catch{}return!1}function NA(t){if(!Aa||!t||typeof t!="object")return!1;try{Aa.call(t);try{Sa.call(t)}catch{return!0}return t instanceof Set}catch{}return!1}function LA(t){if(!_s||!t||typeof t!="object")return!1;try{_s.call(t,_s);try{ms.call(t,ms)}catch{return!0}return t instanceof WeakSet}catch{}return!1}function kA(t){return!t||typeof t!="object"?!1:typeof HTMLElement<"u"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function"}function kd(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return kd(qu.call(t,0,e.maxStringLength),e)+n}var i=dn.call(dn.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,DA);return Od(i,"single",e)}function DA(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+yA.call(e.toString(16))}function vs(t){return"Object("+t+")"}function el(t){return t+" { ? }"}function Dd(t,e,r,n){var i=n?tl(r,n):Br.call(r,", ");return t+" ("+e+") {"+i+"}"}function BA(t){for(var e=0;e<t.length;e++)if(Ld(t[e],`
|
|
33
|
+
*/var ln,Of,ha,nr,ls,Ff,Eu,Nf=function(){return typeof window<"u"},Lf=function(){return ln||Nf()&&(ln=window.gsap)&&ln.registerPlugin&&ln},kf=function(e){return typeof e=="function"},sS=function(e){return console.warn(e)},aS=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],ir=.212671,sr=.71516,ar=.072169,fa=function(e,r){var n=[],i=0,a=0,u,l;for(u=0;u<4;u++){for(l=0;l<5;l++)a=l===4?e[i+4]:0,n[i+l]=e[i]*r[l]+e[i+1]*r[l+5]+e[i+2]*r[l+10]+e[i+3]*r[l+15]+a;i+=5}return n},Df=function(e,r){var n=1-r,i=n*ir,a=n*sr,u=n*ar;return fa([i+r,a,u,0,0,i,a+r,u,0,0,i,a,u+r,0,0,0,0,0,1,0],e)},Bf=function(e,r,n){var i=ha(r),a=i[0]/255,u=i[1]/255,l=i[2]/255,h=1-n;return fa([h+n*a*ir,n*a*sr,n*a*ar,0,0,n*u*ir,h+n*u*sr,n*u*ar,0,0,n*l*ir,n*l*sr,h+n*l*ar,0,0,0,0,0,1,0],e)},Uf=function(e,r){r*=Math.PI/180;var n=Math.cos(r),i=Math.sin(r);return fa([ir+n*(1-ir)+i*-ir,sr+n*-sr+i*-sr,ar+n*-ar+i*(1-ar),0,0,ir+n*-ir+i*.143,sr+n*(1-sr)+i*.14,ar+n*-ar+i*-.283,0,0,ir+n*-ir+i*-(1-ir),sr+n*-sr+i*sr,ar+n*(1-ar)+i*ar,0,0,0,0,0,1,0,0,0,0,0,1],e)},$f=function(e,r){return fa([r,0,0,0,.5*(1-r),0,r,0,0,.5*(1-r),0,0,r,0,.5*(1-r),0,0,0,1,0],e)},Gf=function(e,r){var n=nr.filters[r],i=e.filters||[],a=i.length,u;for(n||sS(r+" not found. PixiPlugin.registerPIXI(PIXI)");--a>-1;)if(i[a]instanceof n)return i[a];return u=new n,r==="BlurFilter"&&(u.blur=0),i.push(u),e.filters=i,u},bt=function(e,r,n,i){r.add(n,e,n[e],i[e]),r._props.push(e)},zf=function(e,r){var n=new nr.filters.ColorMatrixFilter;return n.matrix=r,n.brightness(e,!0),n.matrix},oS=function(e){var r={},n;for(n in e)r[n]=e[n];return r},qt={contrast:1,saturation:1,colorizeAmount:0,colorize:"rgb(255,255,255)",hue:0,brightness:1},uS=function(e,r,n){var i=Gf(e,"ColorMatrixFilter"),a=e._gsColorMatrixFilter=e._gsColorMatrixFilter||oS(qt),u=r.combineCMF&&!("colorMatrixFilter"in r&&!r.colorMatrixFilter),l,h,p;for(p=i.matrix,r.resolution&&(i.resolution=r.resolution),r.matrix&&r.matrix.length===p.length?(h=r.matrix,a.contrast!==1&&bt("contrast",n,a,qt),a.hue&&bt("hue",n,a,qt),a.brightness!==1&&bt("brightness",n,a,qt),a.colorizeAmount&&(bt("colorize",n,a,qt),bt("colorizeAmount",n,a,qt)),a.saturation!==1&&bt("saturation",n,a,qt)):(h=aS.slice(),r.contrast!=null?(h=$f(h,+r.contrast),bt("contrast",n,a,r)):a.contrast!==1&&(u?h=$f(h,a.contrast):bt("contrast",n,a,qt)),r.hue!=null?(h=Uf(h,+r.hue),bt("hue",n,a,r)):a.hue&&(u?h=Uf(h,a.hue):bt("hue",n,a,qt)),r.brightness!=null?(h=zf(+r.brightness,h),bt("brightness",n,a,r)):a.brightness!==1&&(u?h=zf(a.brightness,h):bt("brightness",n,a,qt)),r.colorize!=null?(r.colorizeAmount="colorizeAmount"in r?+r.colorizeAmount:1,h=Bf(h,r.colorize,r.colorizeAmount),bt("colorize",n,a,r),bt("colorizeAmount",n,a,r)):a.colorizeAmount&&(u?h=Bf(h,a.colorize,a.colorizeAmount):(bt("colorize",n,a,qt),bt("colorizeAmount",n,a,qt))),r.saturation!=null?(h=Df(h,+r.saturation),bt("saturation",n,a,r)):a.saturation!==1&&(u?h=Df(h,a.saturation):bt("saturation",n,a,qt))),l=h.length;--l>-1;)h[l]!==p[l]&&n.add(p,l,p[l],h[l],"colorMatrixFilter");n._props.push("colorMatrixFilter")},lS=function(e,r){var n=r.t,i=r.p,a=r.color,u=r.set;u(n,i,a[0]<<16|a[1]<<8|a[2])},cS=function(e,r){var n=r.g;n&&(n.dirty++,n.clearDirty++)},hS=function(e,r){r.t.visible=!!r.t.alpha},Hf=function(e,r,n,i){var a=e[r],u=ha(kf(a)?e[r.indexOf("set")||!kf(e["get"+r.substr(3)])?r:"get"+r.substr(3)]():a),l=ha(n);i._pt=new ls(i._pt,e,r,0,0,lS,{t:e,p:r,color:u,set:Ff(e,r)}),i.add(u,0,u[0],l[0]),i.add(u,1,u[1],l[1]),i.add(u,2,u[2],l[2])},fS={tint:1,lineColor:1,fillColor:1},Vf="position,scale,skew,pivot,anchor,tilePosition,tileScale".split(","),Cu={x:"position",y:"position",tileX:"tilePosition",tileY:"tilePosition"},dS={colorMatrixFilter:1,saturation:1,contrast:1,hue:1,colorize:1,colorizeAmount:1,brightness:1,combineCMF:1},da=Math.PI/180,Xf=function(e){return typeof e=="string"},pS=function(e){return Xf(e)&&e.charAt(1)==="="?e.substr(0,2)+parseFloat(e.substr(2))*da:e*da},gS=function(e,r){return r.set(r.t,r.p,e===1?r.e:Math.round((r.s+r.c*e)*1e5)/1e5,r)},mS=function(e,r,n,i,a,u){var l=360*(u?da:1),h=Xf(a),p=h&&a.charAt(1)==="="?+(a.charAt(0)+"1"):0,m=parseFloat(p?a.substr(2):a)*(u?da:1),c=p?m*p:m-i,d=i+c,g,v;return h&&(g=a.split("_")[1],g==="short"&&(c%=l,c!==c%(l/2)&&(c+=c<0?l:-l)),g==="cw"&&c<0?c=(c+l*1e10)%l-~~(c/l)*l:g==="ccw"&&c>0&&(c=(c-l*1e10)%l-~~(c/l)*l)),e._pt=v=new ls(e._pt,r,n,i,c,gS),v.e=d,v},jf=function(){Nf()&&(Of=window,ln=Lf(),nr=nr||Of.PIXI,Eu=nr&&nr.VERSION&&nr.VERSION.charAt(0)==="4",ha=function(r){return ln.utils.splitColor((r+"").substr(0,2)==="0x"?"#"+r.substr(2):r)})},pa,cs;for(pa=0;pa<Vf.length;pa++)cs=Vf[pa],Cu[cs+"X"]=cs,Cu[cs+"Y"]=cs;var Iu={version:"3.11.5",name:"pixi",register:function(e,r,n){ln=e,ls=n,Ff=r.getSetter,jf()},registerPIXI:function(e){nr=e},init:function(e,r,n,i,a){if(nr||jf(),!nr||!(e instanceof nr.DisplayObject))return console.warn(e,"is not a DisplayObject or PIXI was not found. PixiPlugin.registerPIXI(PIXI);"),!1;var u,l,h,p,m,c,d,g,v;for(c in r){if(u=Cu[c],h=r[c],u)l=~c.charAt(c.length-1).toLowerCase().indexOf("x")?"x":"y",this.add(e[u],l,e[u][l],u==="skew"?pS(h):h,0,0,0,0,0,1);else if(c==="scale"||c==="anchor"||c==="pivot"||c==="tileScale")this.add(e[c],"x",e[c].x,h),this.add(e[c],"y",e[c].y,h);else if(c==="rotation"||c==="angle")mS(this,e,c,e[c],h,c==="rotation");else if(dS[c])p||(uS(e,r.colorMatrixFilter||r,this),p=!0);else if(c==="blur"||c==="blurX"||c==="blurY"||c==="blurPadding"){if(m=Gf(e,"BlurFilter"),this.add(m,c,m[c],h),r.blurPadding!==0)for(d=r.blurPadding||Math.max(m[c],h)*2,g=e.filters.length;--g>-1;)e.filters[g].padding=Math.max(e.filters[g].padding,d)}else if(fS[c])if((c==="lineColor"||c==="fillColor")&&e instanceof nr.Graphics)for(v=(e.geometry||e).graphicsData,this._pt=new ls(this._pt,e,c,0,0,cS,{g:e.geometry||e}),g=v.length;--g>-1;)Hf(Eu?v[g]:v[g][c.substr(0,4)+"Style"],Eu?c:"color",h,this);else Hf(e,c,h,this);else c==="autoAlpha"?(this._pt=new ls(this._pt,e,"visible",0,0,hS),this.add(e,"alpha",e.alpha,h),this._props.push("alpha","visible")):c!=="resolution"&&this.add(e,c,"get",h);this._props.push(c)}}};Lf()&&ln.registerPlugin(Iu),ee.registerPlugin(Iu),Iu.registerPIXI(Gt),ee.registerPlugin(us),us.create("springBounce","0.32, 1.06, 0.61, 0.93"),ee.registerEffect({name:"PULSE",effect(t,e){return ee.timeline().fromTo(t,{width:(e==null?void 0:e.width)*.9,height:(e==null?void 0:e.height)*.9},{width:(e==null?void 0:e.width)*1.1,height:(e==null?void 0:e.height)*1.1,duration:.5,ease:"slow"}).to(t,{...e,duration:.5})}}),ee.registerEffect({name:"SHAKE",effect(t,e){return ee.timeline().to(t,{duration:.1,x:"+=5"}).to(t,{duration:.1,x:"-=10"}).to(t,{duration:.1,x:"+=10"}).to(t,{duration:.1,x:"-=10"}).to(t,{duration:.1,x:"+=5"}).to(t,{...e,duration:.5})}}),ee.registerEffect({name:"SWING",effect(t,e){return ee.timeline().to(t,{duration:.5,rotation:1}).to(t,{duration:.5,rotation:-1}).to(t,{rotation:0,...e,duration:.5})}}),ee.registerEffect({name:"JELLO",effect(t,e){return ee.timeline().to(t,{duration:.3,width:e.width*.5,rotation:-1}).to(t,{duration:.4,width:e.width*1.2,rotation:1}).to(t,{duration:.3,width:e.width,rotation:0}).to(t,{rotation:0,...e,duration:.5})}}),ee.registerEffect({name:"WOOBLE",effect(t,e){return ee.timeline().to(t,{duration:.3,width:e.width*.5,x:e.x*-.5}).to(t,{duration:.3,width:e.width*1.5,x:e.x*1.5}).to(t,{duration:.3,width:e.width*.5,x:e.x*-.01}).to(t,{duration:.3,width:e.width,x:e.x}).to(t,{rotation:0,...e,duration:.5})}}),ee.registerEffect({name:"NONE",effect(t,e){return ee.to(t,{duration:0})}}),ee.registerEffect({name:"FLASH",effect(t,e){return ee.timeline().to(t,{duration:.2,alpha:0}).to(t,{duration:.2,alpha:1}).to(t,{duration:.2,alpha:0}).to(t,{duration:.2,alpha:1}).to(t,{duration:.2,alpha:0}).to(t,{duration:.2,alpha:1,...e})}}),ee.registerEffect({name:"BOUNCE_IN",effect(t,e){return ee.timeline().fromTo(t,{...e,pixi:{x:e==null?void 0:e.x,y:e==null?void 0:e.y,scaleX:1.5,scaleY:1.5}},{...e,pixi:{x:e==null?void 0:e.x,y:e==null?void 0:e.y,scaleX:1,scaleY:1},duration:2,ease:"bounce.out"})}}),ee.registerEffect({name:"BOUNCE_IN_DOWN",effect(t,e){return ee.from(t,{duration:2,ease:"bounce.out",pixi:{...e,x:e==null?void 0:e.x,y:-1500,alpha:0}})}}),ee.registerEffect({name:"BOUNCE_IN_LEFT",effect(t,e){return ee.from(t,{...e,ease:"bounce.out",x:-1500,duration:2,alpha:0})}}),ee.registerEffect({name:"BOUNCE_IN_RIGHT",effect(t,e){return ee.from(t,{...e,ease:"bounce.out",x:1500,duration:2})}}),ee.registerEffect({name:"BOUNCE_IN_UP",effect(t,e){return ee.from(t,{...e,ease:"bounce.out",y:1500,duration:2})}}),ee.registerEffect({name:"BOUNCE_OUT",effect(t,e){return ee.from(t,{...e,ease:"bounce.in",y:2e3,duration:1.5})}}),ee.registerEffect({name:"FADE_IN",effect(t,e){return ee.fromTo(t,{alpha:0},{ease:"power4.in",alpha:1,duration:1,...e})}}),ee.registerEffect({name:"FADE_IN_DOWN",effect(t,e){return ee.fromTo(t,{y:-1e3,alpha:0},{ease:"power4.in",y:0,alpha:1,duration:1,...e})}}),ee.registerEffect({name:"FADE_IN_LEFT",effect(t,e){return ee.fromTo(t,{x:-1e3,alpha:0},{ease:"power4.in",x:0,alpha:1,duration:1,...e})}}),ee.registerEffect({name:"FADE_IN_RIGHT",effect(t,e){return ee.fromTo(t,{x:2e3,alpha:0},{ease:"power4.in",x:0,alpha:1,duration:1,...e})}}),ee.registerEffect({name:"FADE_IN_UP",effect(t,e){return ee.fromTo(t,{y:2e3,alpha:0},{ease:"power4.in",y:0,alpha:1,duration:.8,...e})}}),ee.registerEffect({name:"SPIN",effect(t){return ee.to(t,{rotation:(e,r)=>ee.utils.snap(360,Number(ee.getProperty(r,"rotation"))+360)})}});function Wf(){return{updateEffect:j.useCallback((e,r,n)=>(console.log("useGsapEffect useEffect",r,n),ee.effects[r]&&e?ee.effects[r](e,n):ee.effects.NONE(e,n)),[])}}var Ru=(t=>(t.NONE="NONE",t.FLASH="FLASH",t.PULSE="PULSE",t.SHAKE="SHAKE",t.SWING="SWING",t.JELLO="JELLO",t.WOOBLE="WOOBLE",t.FADE_IN="FADE_IN",t.FADE_OUT="FADE_OUT",t.FADE_IN_OUT="FADE_IN_OUT",t.SLIDE_IN_LEFT="SLIDE_IN_LEFT",t.SLIDE_IN_RIGHT="SLIDE_IN_RIGHT",t.SLIDE_IN_TOP="SLIDE_IN_TOP",t.SLIDE_IN_BOTTOM="SLIDE_IN_BOTTOM",t.SLIDE_OUT_LEFT="SLIDE_OUT_LEFT",t.SLIDE_OUT_RIGHT="SLIDE_OUT_RIGHT",t.SLIDE_OUT_TOP="SLIDE_OUT_TOP",t.SLIDE_OUT_BOTTOM="SLIDE_OUT_BOTTOM",t.ZOOM_IN="ZOOM_IN",t.ZOOM_OUT="ZOOM_OUT",t.ZOOM_IN_OUT="ZOOM_IN_OUT",t.BOUNCE_IN="BOUNCE_IN",t.BOUNCE_OUT="BOUNCE_OUT",t.BOUNCE_IN_OUT="BOUNCE_IN_OUT",t.BOUNCE_IN_DOWN="BOUNCE_IN_DOWN",t.BOUNCE_IN_LEFT="BOUNCE_IN_LEFT",t.BOUNCE_IN_RIGHT="BOUNCE_IN_RIGHT",t.BOUNCE_IN_UP="BOUNCE_IN_UP",t.BOUNCE_OUT_DOWN="BOUNCE_OUT_DOWN",t.BOUNCE_OUT_LEFT="BOUNCE_OUT_LEFT",t.BOUNCE_OUT_RIGHT="BOUNCE_OUT_RIGHT",t.BOUNCE_OUT_UP="BOUNCE_OUT_UP",t.FADE_IN_DOWN="FADE_IN_DOWN",t.FADE_IN_LEFT="FADE_IN_LEFT",t.FADE_IN_RIGHT="FADE_IN_RIGHT",t.FADE_IN_UP="FADE_IN_UP",t.FADE_OUT_DOWN="FADE_OUT_DOWN",t.FADE_OUT_LEFT="FADE_OUT_LEFT",t.FADE_OUT_RIGHT="FADE_OUT_RIGHT",t.FADE_OUT_UP="FADE_OUT_UP",t.ELASTIC_IN="ELASTIC_IN",t.ELASTIC_OUT="ELASTIC_OUT",t.ELASTIC_IN_OUT="ELASTIC_IN_OUT",t.BACK_IN="BACK_IN",t.BACK_OUT="BACK_OUT",t.BACK_IN_OUT="BACK_IN_OUT",t.CIRCULAR_IN="CIRCULAR_IN",t.CIRCULAR_OUT="CIRCULAR_OUT",t.CIRCULAR_IN_OUT="CIRCULAR_IN_OUT",t.EXPO_IN="EXPO_IN",t.EXPO_OUT="EXPO_OUT",t.EXPO_IN_OUT="EXPO_IN_OUT",t.SINE_IN="SINE_IN",t.SINE_OUT="SINE_OUT",t.SINE_IN_OUT="SINE_IN_OUT",t.BOUNCE="BOUNCE",t.ELASTIC="ELASTIC",t.BACK="BACK",t.CIRCULAR="CIRCULAR",t.EXPO="EXPO",t.SINE="SINE",t))(Ru||{});const _S=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],cn=te.forwardRef((t,e)=>{var We,ve,we,De;const[r,n]=te.useState(!1),[i,a]=j.useState(!1),[u,l]=j.useState(!1),[h,p]=j.useState(),m=RT(h,1300),c=j.useRef(null),d=j.useRef(null),g=j.useRef(null),v=j.useRef(null),y=j.useRef(null),b=j.useRef(null),{tl:x}=j.useContext(on),{uniqueId:E,visible:T,startAt:I,transformation:{x:O,y:F,width:N,height:L,scale:D=[1,1],rotation:V=0,effect:Y,overlay:ie,animation:X=Ru.NONE},applyTransformer:G,disabled:ae,pointerdown:se,pointerout:z,pointerover:Q,isText:pe,isDragging:W,isGif:q,onDoubleClick:he,isTextEditMode:fe}=t,me=Wf();ht(Ze.COMPLETE,()=>{c.current}),te.useImperativeHandle(e,()=>({getIsTransformerDragging:()=>i,getIsMouseOverTransformer:()=>u}),[i,u]),te.useEffect(()=>{c.current&&n(!0)},[]),te.useEffect(()=>{p({x:O,y:F,width:N,height:L,animation:X})},[X,O,F,N,L,V,D]),te.useEffect(()=>{if(!d.current)return;const Oe=ee.context(()=>{if(x.current&&m){const{x:Te,y:ge,animation:tt}=m||{},oe=me.updateEffect(c.current,tt,{immediateRender:!1,x:Te,y:ge,overwrite:!0,onUpdate:()=>{var Ie,Ft;console.log("current image ref location",(Ie=c.current)==null?void 0:Ie.x,(Ft=c.current)==null?void 0:Ft.y)}});y.current&&(x.current.remove(y.current),console.log("killing timeline"),y.current.progress(0).kill()),console.log("startAt Anim",I),oe.progress(1),x.current.add(oe,I),y.current=oe}else console.log("no animation"),y.current&&y.current.progress(0).kill()},d.current);return()=>{Oe.revert()}},[I,m]);const be=te.useCallback(()=>{l(!0),Q&&Q()},[]),Ce=te.useCallback(()=>{a(!0)},[]),$e=te.useCallback(Oe=>{t.onAnchorTransformationEnd&&t.onAnchorTransformationEnd(Oe),a(!1)},[]),He=Be.withFilters(Be.Container,{matrix:Gt.filters.ColorMatrixFilter});return console.log("render=> imageRef location",(We=c.current)==null?void 0:We.x,(ve=c.current)==null?void 0:ve.y,O,F,"imagegroup",(we=g.current)==null?void 0:we.x,(De=g.current)==null?void 0:De.y),Ae.jsxs(Be.Container,{ref:d,children:[Ae.jsx(Be.Container,{ref:c,position:[O,F],pivot:[O,F],width:N,height:L,scale:D,rotation:V,...!ae&&T&&!i&&!W&&{interactive:!0,buttonMode:!0,pointerdown:se,pointerover:Q,pointerout:z},children:Ae.jsxs(Be.Container,{ref:b,children:[!q&&Ae.jsx(He,{scale:1,apply:({matrix:Oe})=>{Y===Rn.BlackAndWhite?Oe.desaturate():Y===Rn.Sepia?Oe.sepia():Y===Rn.RetroVintage||Y===Rn.NightVision?Oe.negative():Y===Rn.Normal&&Oe.reset()},matrix:{enabled:!0,matrix:_S},children:Ae.jsx(Be.Container,{ref:g,children:t.children})}),q&&Ae.jsx(Be.Container,{ref:g,children:t.children}),!ss(ie)&&ie!==Au.NONE&&ie!==Au.NORMAL&&Ae.jsx(VT,{overlay:ie,width:N,height:L,x:O,y:F})]})}),G&&T&&!fe&&Ae.jsx(uv,{pixiTransformerRef:v,imageRef:c,isMounted:r,transformCommit:$e,transformChange:Ce,mouseoverEvent:be,uniqueId:E,isText:pe,onDoubleClick:he})]})});cn.whyDidYouRender={logOnDifferentValues:!0,customName:"AbstractContainer"};var Mn=(t=>(t[t.WEBGL_LEGACY=0]="WEBGL_LEGACY",t[t.WEBGL=1]="WEBGL",t[t.WEBGL2=2]="WEBGL2",t))(Mn||{}),qf=(t=>(t[t.UNKNOWN=0]="UNKNOWN",t[t.WEBGL=1]="WEBGL",t[t.CANVAS=2]="CANVAS",t))(qf||{}),Pu=(t=>(t[t.COLOR=16384]="COLOR",t[t.DEPTH=256]="DEPTH",t[t.STENCIL=1024]="STENCIL",t))(Pu||{}),de=(t=>(t[t.NORMAL=0]="NORMAL",t[t.ADD=1]="ADD",t[t.MULTIPLY=2]="MULTIPLY",t[t.SCREEN=3]="SCREEN",t[t.OVERLAY=4]="OVERLAY",t[t.DARKEN=5]="DARKEN",t[t.LIGHTEN=6]="LIGHTEN",t[t.COLOR_DODGE=7]="COLOR_DODGE",t[t.COLOR_BURN=8]="COLOR_BURN",t[t.HARD_LIGHT=9]="HARD_LIGHT",t[t.SOFT_LIGHT=10]="SOFT_LIGHT",t[t.DIFFERENCE=11]="DIFFERENCE",t[t.EXCLUSION=12]="EXCLUSION",t[t.HUE=13]="HUE",t[t.SATURATION=14]="SATURATION",t[t.COLOR=15]="COLOR",t[t.LUMINOSITY=16]="LUMINOSITY",t[t.NORMAL_NPM=17]="NORMAL_NPM",t[t.ADD_NPM=18]="ADD_NPM",t[t.SCREEN_NPM=19]="SCREEN_NPM",t[t.NONE=20]="NONE",t[t.SRC_OVER=0]="SRC_OVER",t[t.SRC_IN=21]="SRC_IN",t[t.SRC_OUT=22]="SRC_OUT",t[t.SRC_ATOP=23]="SRC_ATOP",t[t.DST_OVER=24]="DST_OVER",t[t.DST_IN=25]="DST_IN",t[t.DST_OUT=26]="DST_OUT",t[t.DST_ATOP=27]="DST_ATOP",t[t.ERASE=26]="ERASE",t[t.SUBTRACT=28]="SUBTRACT",t[t.XOR=29]="XOR",t))(de||{}),hn=(t=>(t[t.POINTS=0]="POINTS",t[t.LINES=1]="LINES",t[t.LINE_LOOP=2]="LINE_LOOP",t[t.LINE_STRIP=3]="LINE_STRIP",t[t.TRIANGLES=4]="TRIANGLES",t[t.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",t[t.TRIANGLE_FAN=6]="TRIANGLE_FAN",t))(hn||{}),Z=(t=>(t[t.RGBA=6408]="RGBA",t[t.RGB=6407]="RGB",t[t.RG=33319]="RG",t[t.RED=6403]="RED",t[t.RGBA_INTEGER=36249]="RGBA_INTEGER",t[t.RGB_INTEGER=36248]="RGB_INTEGER",t[t.RG_INTEGER=33320]="RG_INTEGER",t[t.RED_INTEGER=36244]="RED_INTEGER",t[t.ALPHA=6406]="ALPHA",t[t.LUMINANCE=6409]="LUMINANCE",t[t.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",t[t.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",t[t.DEPTH_STENCIL=34041]="DEPTH_STENCIL",t))(Z||{}),fi=(t=>(t[t.TEXTURE_2D=3553]="TEXTURE_2D",t[t.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",t[t.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",t[t.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",t[t.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",t[t.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",t[t.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",t))(fi||{}),Ge=(t=>(t[t.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",t[t.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",t[t.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",t[t.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",t[t.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",t[t.UNSIGNED_INT=5125]="UNSIGNED_INT",t[t.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",t[t.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",t[t.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",t[t.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",t[t.BYTE=5120]="BYTE",t[t.SHORT=5122]="SHORT",t[t.INT=5124]="INT",t[t.FLOAT=5126]="FLOAT",t[t.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",t[t.HALF_FLOAT=36193]="HALF_FLOAT",t))(Ge||{}),Mu=(t=>(t[t.FLOAT=0]="FLOAT",t[t.INT=1]="INT",t[t.UINT=2]="UINT",t))(Mu||{}),kr=(t=>(t[t.NEAREST=0]="NEAREST",t[t.LINEAR=1]="LINEAR",t))(kr||{}),hs=(t=>(t[t.CLAMP=33071]="CLAMP",t[t.REPEAT=10497]="REPEAT",t[t.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT",t))(hs||{}),On=(t=>(t[t.OFF=0]="OFF",t[t.POW2=1]="POW2",t[t.ON=2]="ON",t[t.ON_MANUAL=3]="ON_MANUAL",t))(On||{}),fn=(t=>(t[t.NPM=0]="NPM",t[t.UNPACK=1]="UNPACK",t[t.PMA=2]="PMA",t[t.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",t[t.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",t[t.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA",t))(fn||{}),Fn=(t=>(t[t.NO=0]="NO",t[t.YES=1]="YES",t[t.AUTO=2]="AUTO",t[t.BLEND=0]="BLEND",t[t.CLEAR=1]="CLEAR",t[t.BLIT=2]="BLIT",t))(Fn||{}),Ou=(t=>(t[t.AUTO=0]="AUTO",t[t.MANUAL=1]="MANUAL",t))(Ou||{}),or=(t=>(t.LOW="lowp",t.MEDIUM="mediump",t.HIGH="highp",t))(or||{}),vt=(t=>(t[t.NONE=0]="NONE",t[t.SCISSOR=1]="SCISSOR",t[t.STENCIL=2]="STENCIL",t[t.SPRITE=3]="SPRITE",t[t.COLOR=4]="COLOR",t))(vt||{}),_t=(t=>(t[t.NONE=0]="NONE",t[t.LOW=2]="LOW",t[t.MEDIUM=4]="MEDIUM",t[t.HIGH=8]="HIGH",t))(_t||{}),Dr=(t=>(t[t.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",t[t.ARRAY_BUFFER=34962]="ARRAY_BUFFER",t[t.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER",t))(Dr||{});const Re={ADAPTER:{createCanvas:(t,e)=>{const r=document.createElement("canvas");return r.width=t,r.height=e,r},getCanvasRenderingContext2D:()=>CanvasRenderingContext2D,getWebGLRenderingContext:()=>WebGLRenderingContext,getNavigator:()=>navigator,getBaseUrl:()=>document.baseURI??window.location.href,getFontFaceSet:()=>document.fonts,fetch:(t,e)=>fetch(t,e),parseXML:t=>new DOMParser().parseFromString(t,"text/xml")},RESOLUTION:1,CREATE_IMAGE_BITMAP:!1,ROUND_PIXELS:!1};var Fu=/iPhone/i,Yf=/iPod/i,Kf=/iPad/i,Zf=/\biOS-universal(?:.+)Mac\b/i,Nu=/\bAndroid(?:.+)Mobile\b/i,Qf=/Android/i,di=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,ga=/Silk/i,Xr=/Windows Phone/i,Jf=/\bWindows(?:.+)ARM\b/i,ed=/BlackBerry/i,td=/BB10/i,rd=/Opera Mini/i,nd=/\b(CriOS|Chrome)(?:.+)Mobile/i,id=/Mobile(?:.+)Firefox\b/i,sd=function(t){return typeof t<"u"&&t.platform==="MacIntel"&&typeof t.maxTouchPoints=="number"&&t.maxTouchPoints>1&&typeof MSStream>"u"};function vS(t){return function(e){return e.test(t)}}function ad(t){var e={userAgent:"",platform:"",maxTouchPoints:0};!t&&typeof navigator<"u"?e={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof t=="string"?e.userAgent=t:t&&t.userAgent&&(e={userAgent:t.userAgent,platform:t.platform,maxTouchPoints:t.maxTouchPoints||0});var r=e.userAgent,n=r.split("[FBAN");typeof n[1]<"u"&&(r=n[0]),n=r.split("Twitter"),typeof n[1]<"u"&&(r=n[0]);var i=vS(r),a={apple:{phone:i(Fu)&&!i(Xr),ipod:i(Yf),tablet:!i(Fu)&&(i(Kf)||sd(e))&&!i(Xr),universal:i(Zf),device:(i(Fu)||i(Yf)||i(Kf)||i(Zf)||sd(e))&&!i(Xr)},amazon:{phone:i(di),tablet:!i(di)&&i(ga),device:i(di)||i(ga)},android:{phone:!i(Xr)&&i(di)||!i(Xr)&&i(Nu),tablet:!i(Xr)&&!i(di)&&!i(Nu)&&(i(ga)||i(Qf)),device:!i(Xr)&&(i(di)||i(ga)||i(Nu)||i(Qf))||i(/\bokhttp\b/i)},windows:{phone:i(Xr),tablet:i(Jf),device:i(Xr)||i(Jf)},other:{blackberry:i(ed),blackberry10:i(td),opera:i(rd),firefox:i(id),chrome:i(nd),device:i(ed)||i(td)||i(rd)||i(id)||i(nd)},any:!1,phone:!1,tablet:!1};return a.any=a.apple.device||a.android.device||a.windows.device||a.other.device,a.phone=a.apple.phone||a.android.phone||a.windows.phone,a.tablet=a.apple.tablet||a.android.tablet||a.windows.tablet,a}const pi=(ad.default??ad)(globalThis.navigator);Re.RETINA_PREFIX=/@([0-9\.]+)x/,Re.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT=!1;var od={exports:{}};(function(t){var e=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(h,p,m){this.fn=h,this.context=p,this.once=m||!1}function a(h,p,m,c,d){if(typeof m!="function")throw new TypeError("The listener must be a function");var g=new i(m,c||h,d),v=r?r+p:p;return h._events[v]?h._events[v].fn?h._events[v]=[h._events[v],g]:h._events[v].push(g):(h._events[v]=g,h._eventsCount++),h}function u(h,p){--h._eventsCount===0?h._events=new n:delete h._events[p]}function l(){this._events=new n,this._eventsCount=0}l.prototype.eventNames=function(){var p=[],m,c;if(this._eventsCount===0)return p;for(c in m=this._events)e.call(m,c)&&p.push(r?c.slice(1):c);return Object.getOwnPropertySymbols?p.concat(Object.getOwnPropertySymbols(m)):p},l.prototype.listeners=function(p){var m=r?r+p:p,c=this._events[m];if(!c)return[];if(c.fn)return[c.fn];for(var d=0,g=c.length,v=new Array(g);d<g;d++)v[d]=c[d].fn;return v},l.prototype.listenerCount=function(p){var m=r?r+p:p,c=this._events[m];return c?c.fn?1:c.length:0},l.prototype.emit=function(p,m,c,d,g,v){var y=r?r+p:p;if(!this._events[y])return!1;var b=this._events[y],x=arguments.length,E,T;if(b.fn){switch(b.once&&this.removeListener(p,b.fn,void 0,!0),x){case 1:return b.fn.call(b.context),!0;case 2:return b.fn.call(b.context,m),!0;case 3:return b.fn.call(b.context,m,c),!0;case 4:return b.fn.call(b.context,m,c,d),!0;case 5:return b.fn.call(b.context,m,c,d,g),!0;case 6:return b.fn.call(b.context,m,c,d,g,v),!0}for(T=1,E=new Array(x-1);T<x;T++)E[T-1]=arguments[T];b.fn.apply(b.context,E)}else{var I=b.length,O;for(T=0;T<I;T++)switch(b[T].once&&this.removeListener(p,b[T].fn,void 0,!0),x){case 1:b[T].fn.call(b[T].context);break;case 2:b[T].fn.call(b[T].context,m);break;case 3:b[T].fn.call(b[T].context,m,c);break;case 4:b[T].fn.call(b[T].context,m,c,d);break;default:if(!E)for(O=1,E=new Array(x-1);O<x;O++)E[O-1]=arguments[O];b[T].fn.apply(b[T].context,E)}}return!0},l.prototype.on=function(p,m,c){return a(this,p,m,c,!1)},l.prototype.once=function(p,m,c){return a(this,p,m,c,!0)},l.prototype.removeListener=function(p,m,c,d){var g=r?r+p:p;if(!this._events[g])return this;if(!m)return u(this,g),this;var v=this._events[g];if(v.fn)v.fn===m&&(!d||v.once)&&(!c||v.context===c)&&u(this,g);else{for(var y=0,b=[],x=v.length;y<x;y++)(v[y].fn!==m||d&&!v[y].once||c&&v[y].context!==c)&&b.push(v[y]);b.length?this._events[g]=b.length===1?b[0]:b:u(this,g)}return this},l.prototype.removeAllListeners=function(p){var m;return p?(m=r?r+p:p,this._events[m]&&u(this,m)):(this._events=new n,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=r,l.EventEmitter=l,t.exports=l})(od);var yS=od.exports;const ma=In(yS);var Lu={exports:{}};Lu.exports=_a,Lu.exports.default=_a;function _a(t,e,r){r=r||2;var n=e&&e.length,i=n?e[0]*r:t.length,a=ud(t,0,i,r,!0),u=[];if(!a||a.next===a.prev)return u;var l,h,p,m,c,d,g;if(n&&(a=SS(t,e,a,r)),t.length>80*r){l=p=t[0],h=m=t[1];for(var v=r;v<i;v+=r)c=t[v],d=t[v+1],c<l&&(l=c),d<h&&(h=d),c>p&&(p=c),d>m&&(m=d);g=Math.max(p-l,m-h),g=g!==0?32767/g:0}return fs(a,u,r,l,h,g,0),u}function ud(t,e,r,n,i){var a,u;if(i===Bu(t,e,r,n)>0)for(a=e;a<r;a+=n)u=hd(a,t[a],t[a+1],u);else for(a=r-n;a>=e;a-=n)u=hd(a,t[a],t[a+1],u);return u&&va(u,u.next)&&(ps(u),u=u.next),u}function Nn(t,e){if(!t)return t;e||(e=t);var r=t,n;do if(n=!1,!r.steiner&&(va(r,r.next)||ot(r.prev,r,r.next)===0)){if(ps(r),r=e=r.prev,r===r.next)break;n=!0}else r=r.next;while(n||r!==e);return e}function fs(t,e,r,n,i,a,u){if(t){!u&&a&&RS(t,n,i,a);for(var l=t,h,p;t.prev!==t.next;){if(h=t.prev,p=t.next,a?bS(t,n,i,a):xS(t)){e.push(h.i/r|0),e.push(t.i/r|0),e.push(p.i/r|0),ps(t),t=p.next,l=p.next;continue}if(t=p,t===l){u?u===1?(t=wS(Nn(t),e,r),fs(t,e,r,n,i,a,2)):u===2&&TS(t,e,r,n,i,a):fs(Nn(t),e,r,n,i,a,1);break}}}}function xS(t){var e=t.prev,r=t,n=t.next;if(ot(e,r,n)>=0)return!1;for(var i=e.x,a=r.x,u=n.x,l=e.y,h=r.y,p=n.y,m=i<a?i<u?i:u:a<u?a:u,c=l<h?l<p?l:p:h<p?h:p,d=i>a?i>u?i:u:a>u?a:u,g=l>h?l>p?l:p:h>p?h:p,v=n.next;v!==e;){if(v.x>=m&&v.x<=d&&v.y>=c&&v.y<=g&&gi(i,l,a,h,u,p,v.x,v.y)&&ot(v.prev,v,v.next)>=0)return!1;v=v.next}return!0}function bS(t,e,r,n){var i=t.prev,a=t,u=t.next;if(ot(i,a,u)>=0)return!1;for(var l=i.x,h=a.x,p=u.x,m=i.y,c=a.y,d=u.y,g=l<h?l<p?l:p:h<p?h:p,v=m<c?m<d?m:d:c<d?c:d,y=l>h?l>p?l:p:h>p?h:p,b=m>c?m>d?m:d:c>d?c:d,x=ku(g,v,e,r,n),E=ku(y,b,e,r,n),T=t.prevZ,I=t.nextZ;T&&T.z>=x&&I&&I.z<=E;){if(T.x>=g&&T.x<=y&&T.y>=v&&T.y<=b&&T!==i&&T!==u&&gi(l,m,h,c,p,d,T.x,T.y)&&ot(T.prev,T,T.next)>=0||(T=T.prevZ,I.x>=g&&I.x<=y&&I.y>=v&&I.y<=b&&I!==i&&I!==u&&gi(l,m,h,c,p,d,I.x,I.y)&&ot(I.prev,I,I.next)>=0))return!1;I=I.nextZ}for(;T&&T.z>=x;){if(T.x>=g&&T.x<=y&&T.y>=v&&T.y<=b&&T!==i&&T!==u&&gi(l,m,h,c,p,d,T.x,T.y)&&ot(T.prev,T,T.next)>=0)return!1;T=T.prevZ}for(;I&&I.z<=E;){if(I.x>=g&&I.x<=y&&I.y>=v&&I.y<=b&&I!==i&&I!==u&&gi(l,m,h,c,p,d,I.x,I.y)&&ot(I.prev,I,I.next)>=0)return!1;I=I.nextZ}return!0}function wS(t,e,r){var n=t;do{var i=n.prev,a=n.next.next;!va(i,a)&&ld(i,n,n.next,a)&&ds(i,a)&&ds(a,i)&&(e.push(i.i/r|0),e.push(n.i/r|0),e.push(a.i/r|0),ps(n),ps(n.next),n=t=a),n=n.next}while(n!==t);return Nn(n)}function TS(t,e,r,n,i,a){var u=t;do{for(var l=u.next.next;l!==u.prev;){if(u.i!==l.i&&OS(u,l)){var h=cd(u,l);u=Nn(u,u.next),h=Nn(h,h.next),fs(u,e,r,n,i,a,0),fs(h,e,r,n,i,a,0);return}l=l.next}u=u.next}while(u!==t)}function SS(t,e,r,n){var i=[],a,u,l,h,p;for(a=0,u=e.length;a<u;a++)l=e[a]*n,h=a<u-1?e[a+1]*n:t.length,p=ud(t,l,h,n,!1),p===p.next&&(p.steiner=!0),i.push(MS(p));for(i.sort(AS),a=0;a<i.length;a++)r=ES(i[a],r);return r}function AS(t,e){return t.x-e.x}function ES(t,e){var r=CS(t,e);if(!r)return e;var n=cd(r,t);return Nn(n,n.next),Nn(r,r.next)}function CS(t,e){var r=e,n=t.x,i=t.y,a=-1/0,u;do{if(i<=r.y&&i>=r.next.y&&r.next.y!==r.y){var l=r.x+(i-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(l<=n&&l>a&&(a=l,u=r.x<r.next.x?r:r.next,l===n))return u}r=r.next}while(r!==e);if(!u)return null;var h=u,p=u.x,m=u.y,c=1/0,d;r=u;do n>=r.x&&r.x>=p&&n!==r.x&&gi(i<m?n:a,i,p,m,i<m?a:n,i,r.x,r.y)&&(d=Math.abs(i-r.y)/(n-r.x),ds(r,t)&&(d<c||d===c&&(r.x>u.x||r.x===u.x&&IS(u,r)))&&(u=r,c=d)),r=r.next;while(r!==h);return u}function IS(t,e){return ot(t.prev,t,e.prev)<0&&ot(e.next,t,t.next)<0}function RS(t,e,r,n){var i=t;do i.z===0&&(i.z=ku(i.x,i.y,e,r,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next;while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,PS(i)}function PS(t){var e,r,n,i,a,u,l,h,p=1;do{for(r=t,t=null,a=null,u=0;r;){for(u++,n=r,l=0,e=0;e<p&&(l++,n=n.nextZ,!!n);e++);for(h=p;l>0||h>0&&n;)l!==0&&(h===0||!n||r.z<=n.z)?(i=r,r=r.nextZ,l--):(i=n,n=n.nextZ,h--),a?a.nextZ=i:t=i,i.prevZ=a,a=i;r=n}a.nextZ=null,p*=2}while(u>1);return t}function ku(t,e,r,n,i){return t=(t-r)*i|0,e=(e-n)*i|0,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t|e<<1}function MS(t){var e=t,r=t;do(e.x<r.x||e.x===r.x&&e.y<r.y)&&(r=e),e=e.next;while(e!==t);return r}function gi(t,e,r,n,i,a,u,l){return(i-u)*(e-l)>=(t-u)*(a-l)&&(t-u)*(n-l)>=(r-u)*(e-l)&&(r-u)*(a-l)>=(i-u)*(n-l)}function OS(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!FS(t,e)&&(ds(t,e)&&ds(e,t)&&NS(t,e)&&(ot(t.prev,t,e.prev)||ot(t,e.prev,e))||va(t,e)&&ot(t.prev,t,t.next)>0&&ot(e.prev,e,e.next)>0)}function ot(t,e,r){return(e.y-t.y)*(r.x-e.x)-(e.x-t.x)*(r.y-e.y)}function va(t,e){return t.x===e.x&&t.y===e.y}function ld(t,e,r,n){var i=xa(ot(t,e,r)),a=xa(ot(t,e,n)),u=xa(ot(r,n,t)),l=xa(ot(r,n,e));return!!(i!==a&&u!==l||i===0&&ya(t,r,e)||a===0&&ya(t,n,e)||u===0&&ya(r,t,n)||l===0&&ya(r,e,n))}function ya(t,e,r){return e.x<=Math.max(t.x,r.x)&&e.x>=Math.min(t.x,r.x)&&e.y<=Math.max(t.y,r.y)&&e.y>=Math.min(t.y,r.y)}function xa(t){return t>0?1:t<0?-1:0}function FS(t,e){var r=t;do{if(r.i!==t.i&&r.next.i!==t.i&&r.i!==e.i&&r.next.i!==e.i&&ld(r,r.next,t,e))return!0;r=r.next}while(r!==t);return!1}function ds(t,e){return ot(t.prev,t,t.next)<0?ot(t,e,t.next)>=0&&ot(t,t.prev,e)>=0:ot(t,e,t.prev)<0||ot(t,t.next,e)<0}function NS(t,e){var r=t,n=!1,i=(t.x+e.x)/2,a=(t.y+e.y)/2;do r.y>a!=r.next.y>a&&r.next.y!==r.y&&i<(r.next.x-r.x)*(a-r.y)/(r.next.y-r.y)+r.x&&(n=!n),r=r.next;while(r!==t);return n}function cd(t,e){var r=new Du(t.i,t.x,t.y),n=new Du(e.i,e.x,e.y),i=t.next,a=e.prev;return t.next=e,e.prev=t,r.next=i,i.prev=r,n.next=r,r.prev=n,a.next=n,n.prev=a,n}function hd(t,e,r,n){var i=new Du(t,e,r);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function ps(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function Du(t,e,r){this.i=t,this.x=e,this.y=r,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}_a.deviation=function(t,e,r,n){var i=e&&e.length,a=i?e[0]*r:t.length,u=Math.abs(Bu(t,0,a,r));if(i)for(var l=0,h=e.length;l<h;l++){var p=e[l]*r,m=l<h-1?e[l+1]*r:t.length;u-=Math.abs(Bu(t,p,m,r))}var c=0;for(l=0;l<n.length;l+=3){var d=n[l]*r,g=n[l+1]*r,v=n[l+2]*r;c+=Math.abs((t[d]-t[v])*(t[g+1]-t[d+1])-(t[d]-t[g])*(t[v+1]-t[d+1]))}return u===0&&c===0?0:Math.abs((c-u)/u)};function Bu(t,e,r,n){for(var i=0,a=e,u=r-n;a<r;a+=n)i+=(t[u]-t[a])*(t[a+1]+t[u+1]),u=a;return i}_a.flatten=function(t){for(var e=t[0][0].length,r={vertices:[],holes:[],dimensions:e},n=0,i=0;i<t.length;i++){for(var a=0;a<t[i].length;a++)for(var u=0;u<e;u++)r.vertices.push(t[i][a][u]);i>0&&(n+=t[i-1].length,r.holes.push(n))}return r};var LS=Lu.exports;const kS=In(LS);var ba={exports:{}};/*! https://mths.be/punycode v1.4.1 by @mathias */ba.exports,function(t,e){(function(r){var n=e&&!e.nodeType&&e,i=t&&!t.nodeType&&t,a=typeof Et=="object"&&Et;(a.global===a||a.window===a||a.self===a)&&(r=a);var u,l=2147483647,h=36,p=1,m=26,c=38,d=700,g=72,v=128,y="-",b=/^xn--/,x=/[^\x20-\x7E]/,E=/[\x2E\u3002\uFF0E\uFF61]/g,T={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},I=h-p,O=Math.floor,F=String.fromCharCode,N;function L(W){throw new RangeError(T[W])}function D(W,q){for(var he=W.length,fe=[];he--;)fe[he]=q(W[he]);return fe}function V(W,q){var he=W.split("@"),fe="";he.length>1&&(fe=he[0]+"@",W=he[1]),W=W.replace(E,".");var me=W.split("."),be=D(me,q).join(".");return fe+be}function Y(W){for(var q=[],he=0,fe=W.length,me,be;he<fe;)me=W.charCodeAt(he++),me>=55296&&me<=56319&&he<fe?(be=W.charCodeAt(he++),(be&64512)==56320?q.push(((me&1023)<<10)+(be&1023)+65536):(q.push(me),he--)):q.push(me);return q}function ie(W){return D(W,function(q){var he="";return q>65535&&(q-=65536,he+=F(q>>>10&1023|55296),q=56320|q&1023),he+=F(q),he}).join("")}function X(W){return W-48<10?W-22:W-65<26?W-65:W-97<26?W-97:h}function G(W,q){return W+22+75*(W<26)-((q!=0)<<5)}function ae(W,q,he){var fe=0;for(W=he?O(W/d):W>>1,W+=O(W/q);W>I*m>>1;fe+=h)W=O(W/I);return O(fe+(I+1)*W/(W+c))}function se(W){var q=[],he=W.length,fe,me=0,be=v,Ce=g,$e,He,We,ve,we,De,Oe,Te,ge;for($e=W.lastIndexOf(y),$e<0&&($e=0),He=0;He<$e;++He)W.charCodeAt(He)>=128&&L("not-basic"),q.push(W.charCodeAt(He));for(We=$e>0?$e+1:0;We<he;){for(ve=me,we=1,De=h;We>=he&&L("invalid-input"),Oe=X(W.charCodeAt(We++)),(Oe>=h||Oe>O((l-me)/we))&&L("overflow"),me+=Oe*we,Te=De<=Ce?p:De>=Ce+m?m:De-Ce,!(Oe<Te);De+=h)ge=h-Te,we>O(l/ge)&&L("overflow"),we*=ge;fe=q.length+1,Ce=ae(me-ve,fe,ve==0),O(me/fe)>l-be&&L("overflow"),be+=O(me/fe),me%=fe,q.splice(me++,0,be)}return ie(q)}function z(W){var q,he,fe,me,be,Ce,$e,He,We,ve,we,De=[],Oe,Te,ge,tt;for(W=Y(W),Oe=W.length,q=v,he=0,be=g,Ce=0;Ce<Oe;++Ce)we=W[Ce],we<128&&De.push(F(we));for(fe=me=De.length,me&&De.push(y);fe<Oe;){for($e=l,Ce=0;Ce<Oe;++Ce)we=W[Ce],we>=q&&we<$e&&($e=we);for(Te=fe+1,$e-q>O((l-he)/Te)&&L("overflow"),he+=($e-q)*Te,q=$e,Ce=0;Ce<Oe;++Ce)if(we=W[Ce],we<q&&++he>l&&L("overflow"),we==q){for(He=he,We=h;ve=We<=be?p:We>=be+m?m:We-be,!(He<ve);We+=h)tt=He-ve,ge=h-ve,De.push(F(G(ve+tt%ge,0))),He=O(tt/ge);De.push(F(G(He,0))),be=ae(he,Te,fe==me),he=0,++fe}++he,++q}return De.join("")}function Q(W){return V(W,function(q){return b.test(q)?se(q.slice(4).toLowerCase()):q})}function pe(W){return V(W,function(q){return x.test(q)?"xn--"+z(q):q})}if(u={version:"1.4.1",ucs2:{decode:Y,encode:ie},decode:se,encode:z,toASCII:pe,toUnicode:Q},n&&i)if(t.exports==n)i.exports=u;else for(N in u)u.hasOwnProperty(N)&&(n[N]=u[N]);else r.punycode=u})(Et)}(ba,ba.exports);var DS=ba.exports,BS=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;e[r]=i;for(r in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var u=Object.getOwnPropertyDescriptor(e,r);if(u.value!==i||u.enumerable!==!0)return!1}return!0},fd=typeof Symbol<"u"&&Symbol,US=BS,$S=function(){return typeof fd!="function"||typeof Symbol!="function"||typeof fd("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:US()},dd={foo:{}},GS=Object,zS=function(){return{__proto__:dd}.foo===dd.foo&&!({__proto__:null}instanceof GS)},HS="Function.prototype.bind called on incompatible ",Uu=Array.prototype.slice,VS=Object.prototype.toString,XS="[object Function]",jS=function(e){var r=this;if(typeof r!="function"||VS.call(r)!==XS)throw new TypeError(HS+r);for(var n=Uu.call(arguments,1),i,a=function(){if(this instanceof i){var m=r.apply(this,n.concat(Uu.call(arguments)));return Object(m)===m?m:this}else return r.apply(e,n.concat(Uu.call(arguments)))},u=Math.max(0,r.length-n.length),l=[],h=0;h<u;h++)l.push("$"+h);if(i=Function("binder","return function ("+l.join(",")+"){ return binder.apply(this,arguments); }")(a),r.prototype){var p=function(){};p.prototype=r.prototype,i.prototype=new p,p.prototype=null}return i},WS=jS,$u=Function.prototype.bind||WS,qS=$u,YS=qS.call(Function.call,Object.prototype.hasOwnProperty),Me,mi=SyntaxError,pd=Function,_i=TypeError,Gu=function(t){try{return pd('"use strict"; return ('+t+").constructor;")()}catch{}},Ln=Object.getOwnPropertyDescriptor;if(Ln)try{Ln({},"")}catch{Ln=null}var zu=function(){throw new _i},KS=Ln?function(){try{return arguments.callee,zu}catch{try{return Ln(arguments,"callee").get}catch{return zu}}}():zu,vi=$S(),ZS=zS(),wt=Object.getPrototypeOf||(ZS?function(t){return t.__proto__}:null),yi={},QS=typeof Uint8Array>"u"||!wt?Me:wt(Uint8Array),kn={"%AggregateError%":typeof AggregateError>"u"?Me:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Me:ArrayBuffer,"%ArrayIteratorPrototype%":vi&&wt?wt([][Symbol.iterator]()):Me,"%AsyncFromSyncIteratorPrototype%":Me,"%AsyncFunction%":yi,"%AsyncGenerator%":yi,"%AsyncGeneratorFunction%":yi,"%AsyncIteratorPrototype%":yi,"%Atomics%":typeof Atomics>"u"?Me:Atomics,"%BigInt%":typeof BigInt>"u"?Me:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Me:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Me:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Me:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?Me:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Me:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Me:FinalizationRegistry,"%Function%":pd,"%GeneratorFunction%":yi,"%Int8Array%":typeof Int8Array>"u"?Me:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Me:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Me:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":vi&&wt?wt(wt([][Symbol.iterator]())):Me,"%JSON%":typeof JSON=="object"?JSON:Me,"%Map%":typeof Map>"u"?Me:Map,"%MapIteratorPrototype%":typeof Map>"u"||!vi||!wt?Me:wt(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Me:Promise,"%Proxy%":typeof Proxy>"u"?Me:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?Me:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Me:Set,"%SetIteratorPrototype%":typeof Set>"u"||!vi||!wt?Me:wt(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Me:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":vi&&wt?wt(""[Symbol.iterator]()):Me,"%Symbol%":vi?Symbol:Me,"%SyntaxError%":mi,"%ThrowTypeError%":KS,"%TypedArray%":QS,"%TypeError%":_i,"%Uint8Array%":typeof Uint8Array>"u"?Me:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Me:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Me:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Me:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?Me:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Me:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Me:WeakSet};if(wt)try{null.error}catch(t){var JS=wt(wt(t));kn["%Error.prototype%"]=JS}var eA=function t(e){var r;if(e==="%AsyncFunction%")r=Gu("async function () {}");else if(e==="%GeneratorFunction%")r=Gu("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=Gu("async function* () {}");else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var i=t("%AsyncGenerator%");i&&wt&&(r=wt(i.prototype))}return kn[e]=r,r},gd={"%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"]},gs=$u,wa=YS,tA=gs.call(Function.call,Array.prototype.concat),rA=gs.call(Function.apply,Array.prototype.splice),md=gs.call(Function.call,String.prototype.replace),Ta=gs.call(Function.call,String.prototype.slice),nA=gs.call(Function.call,RegExp.prototype.exec),iA=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,sA=/\\(\\)?/g,aA=function(e){var r=Ta(e,0,1),n=Ta(e,-1);if(r==="%"&&n!=="%")throw new mi("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new mi("invalid intrinsic syntax, expected opening `%`");var i=[];return md(e,iA,function(a,u,l,h){i[i.length]=l?md(h,sA,"$1"):u||a}),i},oA=function(e,r){var n=e,i;if(wa(gd,n)&&(i=gd[n],n="%"+i[0]+"%"),wa(kn,n)){var a=kn[n];if(a===yi&&(a=eA(n)),typeof a>"u"&&!r)throw new _i("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:a}}throw new mi("intrinsic "+e+" does not exist!")},Hu=function(e,r){if(typeof e!="string"||e.length===0)throw new _i("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new _i('"allowMissing" argument must be a boolean');if(nA(/^%?[^%]*%?$/,e)===null)throw new mi("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=aA(e),i=n.length>0?n[0]:"",a=oA("%"+i+"%",r),u=a.name,l=a.value,h=!1,p=a.alias;p&&(i=p[0],rA(n,tA([0,1],p)));for(var m=1,c=!0;m<n.length;m+=1){var d=n[m],g=Ta(d,0,1),v=Ta(d,-1);if((g==='"'||g==="'"||g==="`"||v==='"'||v==="'"||v==="`")&&g!==v)throw new mi("property names with quotes must have matching quotes");if((d==="constructor"||!c)&&(h=!0),i+="."+d,u="%"+i+"%",wa(kn,u))l=kn[u];else if(l!=null){if(!(d in l)){if(!r)throw new _i("base intrinsic for "+e+" exists, but the property is not available.");return}if(Ln&&m+1>=n.length){var y=Ln(l,d);c=!!y,c&&"get"in y&&!("originalValue"in y.get)?l=y.get:l=l[d]}else c=wa(l,d),l=l[d];c&&!h&&(kn[u]=l)}}return l},_d={exports:{}};(function(t){var e=$u,r=Hu,n=r("%Function.prototype.apply%"),i=r("%Function.prototype.call%"),a=r("%Reflect.apply%",!0)||e.call(i,n),u=r("%Object.getOwnPropertyDescriptor%",!0),l=r("%Object.defineProperty%",!0),h=r("%Math.max%");if(l)try{l({},"a",{value:1})}catch{l=null}t.exports=function(c){var d=a(e,i,arguments);if(u&&l){var g=u(d,"length");g.configurable&&l(d,"length",{value:1+h(0,c.length-(arguments.length-1))})}return d};var p=function(){return a(e,n,arguments)};l?l(t.exports,"apply",{value:p}):t.exports.apply=p})(_d);var uA=_d.exports,vd=Hu,yd=uA,lA=yd(vd("String.prototype.indexOf")),cA=function(e,r){var n=vd(e,!!r);return typeof n=="function"&&lA(e,".prototype.")>-1?yd(n):n};const hA=J_(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Vu=typeof Map=="function"&&Map.prototype,Xu=Object.getOwnPropertyDescriptor&&Vu?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Sa=Vu&&Xu&&typeof Xu.get=="function"?Xu.get:null,xd=Vu&&Map.prototype.forEach,ju=typeof Set=="function"&&Set.prototype,Wu=Object.getOwnPropertyDescriptor&&ju?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Aa=ju&&Wu&&typeof Wu.get=="function"?Wu.get:null,bd=ju&&Set.prototype.forEach,fA=typeof WeakMap=="function"&&WeakMap.prototype,ms=fA?WeakMap.prototype.has:null,dA=typeof WeakSet=="function"&&WeakSet.prototype,_s=dA?WeakSet.prototype.has:null,pA=typeof WeakRef=="function"&&WeakRef.prototype,wd=pA?WeakRef.prototype.deref:null,gA=Boolean.prototype.valueOf,mA=Object.prototype.toString,_A=Function.prototype.toString,vA=String.prototype.match,qu=String.prototype.slice,dn=String.prototype.replace,yA=String.prototype.toUpperCase,Td=String.prototype.toLowerCase,Sd=RegExp.prototype.test,Ad=Array.prototype.concat,Br=Array.prototype.join,xA=Array.prototype.slice,Ed=Math.floor,Yu=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Ku=Object.getOwnPropertySymbols,Zu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,xi=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Pt=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===xi||"symbol")?Symbol.toStringTag:null,Cd=Object.prototype.propertyIsEnumerable,Id=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function Rd(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||Sd.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-Ed(-t):Ed(t);if(n!==t){var i=String(n),a=qu.call(e,i.length+1);return dn.call(i,r,"$&_")+"."+dn.call(dn.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return dn.call(e,r,"$&_")}var Qu=hA,Pd=Qu.custom,Md=Nd(Pd)?Pd:null,bA=function t(e,r,n,i){var a=r||{};if(pn(a,"quoteStyle")&&a.quoteStyle!=="single"&&a.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(pn(a,"maxStringLength")&&(typeof a.maxStringLength=="number"?a.maxStringLength<0&&a.maxStringLength!==1/0:a.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var u=pn(a,"customInspect")?a.customInspect:!0;if(typeof u!="boolean"&&u!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(pn(a,"indent")&&a.indent!==null&&a.indent!==" "&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(pn(a,"numericSeparator")&&typeof a.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var l=a.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return kd(e,a);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var h=String(e);return l?Rd(e,h):h}if(typeof e=="bigint"){var p=String(e)+"n";return l?Rd(e,p):p}var m=typeof a.depth>"u"?5:a.depth;if(typeof n>"u"&&(n=0),n>=m&&m>0&&typeof e=="object")return Ju(e)?"[Array]":"[Object]";var c=UA(a,n);if(typeof i>"u")i=[];else if(Ld(i,e)>=0)return"[Circular]";function d(X,G,ae){if(G&&(i=xA.call(i),i.push(G)),ae){var se={depth:a.depth};return pn(a,"quoteStyle")&&(se.quoteStyle=a.quoteStyle),t(X,se,n+1,i)}return t(X,a,n+1,i)}if(typeof e=="function"&&!Fd(e)){var g=PA(e),v=Ea(e,d);return"[Function"+(g?": "+g:" (anonymous)")+"]"+(v.length>0?" { "+Br.call(v,", ")+" }":"")}if(Nd(e)){var y=xi?dn.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):Zu.call(e);return typeof e=="object"&&!xi?vs(y):y}if(kA(e)){for(var b="<"+Td.call(String(e.nodeName)),x=e.attributes||[],E=0;E<x.length;E++)b+=" "+x[E].name+"="+Od(wA(x[E].value),"double",a);return b+=">",e.childNodes&&e.childNodes.length&&(b+="..."),b+="</"+Td.call(String(e.nodeName))+">",b}if(Ju(e)){if(e.length===0)return"[]";var T=Ea(e,d);return c&&!BA(T)?"["+tl(T,c)+"]":"[ "+Br.call(T,", ")+" ]"}if(SA(e)){var I=Ea(e,d);return!("cause"in Error.prototype)&&"cause"in e&&!Cd.call(e,"cause")?"{ ["+String(e)+"] "+Br.call(Ad.call("[cause]: "+d(e.cause),I),", ")+" }":I.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+Br.call(I,", ")+" }"}if(typeof e=="object"&&u){if(Md&&typeof e[Md]=="function"&&Qu)return Qu(e,{depth:m-n});if(u!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(MA(e)){var O=[];return xd&&xd.call(e,function(X,G){O.push(d(G,e,!0)+" => "+d(X,e))}),Dd("Map",Sa.call(e),O,c)}if(NA(e)){var F=[];return bd&&bd.call(e,function(X){F.push(d(X,e))}),Dd("Set",Aa.call(e),F,c)}if(OA(e))return el("WeakMap");if(LA(e))return el("WeakSet");if(FA(e))return el("WeakRef");if(EA(e))return vs(d(Number(e)));if(IA(e))return vs(d(Yu.call(e)));if(CA(e))return vs(gA.call(e));if(AA(e))return vs(d(String(e)));if(!TA(e)&&!Fd(e)){var N=Ea(e,d),L=Id?Id(e)===Object.prototype:e instanceof Object||e.constructor===Object,D=e instanceof Object?"":"null prototype",V=!L&&Pt&&Object(e)===e&&Pt in e?qu.call(gn(e),8,-1):D?"Object":"",Y=L||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",ie=Y+(V||D?"["+Br.call(Ad.call([],V||[],D||[]),": ")+"] ":"");return N.length===0?ie+"{}":c?ie+"{"+tl(N,c)+"}":ie+"{ "+Br.call(N,", ")+" }"}return String(e)};function Od(t,e,r){var n=(r.quoteStyle||e)==="double"?'"':"'";return n+t+n}function wA(t){return dn.call(String(t),/"/g,""")}function Ju(t){return gn(t)==="[object Array]"&&(!Pt||!(typeof t=="object"&&Pt in t))}function TA(t){return gn(t)==="[object Date]"&&(!Pt||!(typeof t=="object"&&Pt in t))}function Fd(t){return gn(t)==="[object RegExp]"&&(!Pt||!(typeof t=="object"&&Pt in t))}function SA(t){return gn(t)==="[object Error]"&&(!Pt||!(typeof t=="object"&&Pt in t))}function AA(t){return gn(t)==="[object String]"&&(!Pt||!(typeof t=="object"&&Pt in t))}function EA(t){return gn(t)==="[object Number]"&&(!Pt||!(typeof t=="object"&&Pt in t))}function CA(t){return gn(t)==="[object Boolean]"&&(!Pt||!(typeof t=="object"&&Pt in t))}function Nd(t){if(xi)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!Zu)return!1;try{return Zu.call(t),!0}catch{}return!1}function IA(t){if(!t||typeof t!="object"||!Yu)return!1;try{return Yu.call(t),!0}catch{}return!1}var RA=Object.prototype.hasOwnProperty||function(t){return t in this};function pn(t,e){return RA.call(t,e)}function gn(t){return mA.call(t)}function PA(t){if(t.name)return t.name;var e=vA.call(_A.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function Ld(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function MA(t){if(!Sa||!t||typeof t!="object")return!1;try{Sa.call(t);try{Aa.call(t)}catch{return!0}return t instanceof Map}catch{}return!1}function OA(t){if(!ms||!t||typeof t!="object")return!1;try{ms.call(t,ms);try{_s.call(t,_s)}catch{return!0}return t instanceof WeakMap}catch{}return!1}function FA(t){if(!wd||!t||typeof t!="object")return!1;try{return wd.call(t),!0}catch{}return!1}function NA(t){if(!Aa||!t||typeof t!="object")return!1;try{Aa.call(t);try{Sa.call(t)}catch{return!0}return t instanceof Set}catch{}return!1}function LA(t){if(!_s||!t||typeof t!="object")return!1;try{_s.call(t,_s);try{ms.call(t,ms)}catch{return!0}return t instanceof WeakSet}catch{}return!1}function kA(t){return!t||typeof t!="object"?!1:typeof HTMLElement<"u"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function"}function kd(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return kd(qu.call(t,0,e.maxStringLength),e)+n}var i=dn.call(dn.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,DA);return Od(i,"single",e)}function DA(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+yA.call(e.toString(16))}function vs(t){return"Object("+t+")"}function el(t){return t+" { ? }"}function Dd(t,e,r,n){var i=n?tl(r,n):Br.call(r,", ");return t+" ("+e+") {"+i+"}"}function BA(t){for(var e=0;e<t.length;e++)if(Ld(t[e],`
|
|
34
34
|
`)>=0)return!1;return!0}function UA(t,e){var r;if(t.indent===" ")r=" ";else if(typeof t.indent=="number"&&t.indent>0)r=Br.call(Array(t.indent+1)," ");else return null;return{base:r,prev:Br.call(Array(e+1),r)}}function tl(t,e){if(t.length===0)return"";var r=`
|
|
35
35
|
`+e.prev+e.base;return r+Br.call(t,","+r)+`
|
|
36
36
|
`+e.prev}function Ea(t,e){var r=Ju(t),n=[];if(r){n.length=t.length;for(var i=0;i<t.length;i++)n[i]=pn(t,i)?e(t[i],t):""}var a=typeof Ku=="function"?Ku(t):[],u;if(xi){u={};for(var l=0;l<a.length;l++)u["$"+a[l]]=a[l]}for(var h in t)pn(t,h)&&(r&&String(Number(h))===h&&h<t.length||xi&&u["$"+h]instanceof Symbol||(Sd.call(/[^\w$]/,h)?n.push(e(h,t)+": "+e(t[h],t)):n.push(h+": "+e(t[h],t))));if(typeof Ku=="function")for(var p=0;p<a.length;p++)Cd.call(t,a[p])&&n.push("["+e(a[p])+"]: "+e(t[a[p]],t));return n}var rl=Hu,bi=cA,$A=bA,GA=rl("%TypeError%"),Ca=rl("%WeakMap%",!0),Ia=rl("%Map%",!0),zA=bi("WeakMap.prototype.get",!0),HA=bi("WeakMap.prototype.set",!0),VA=bi("WeakMap.prototype.has",!0),XA=bi("Map.prototype.get",!0),jA=bi("Map.prototype.set",!0),WA=bi("Map.prototype.has",!0),nl=function(t,e){for(var r=t,n;(n=r.next)!==null;r=n)if(n.key===e)return r.next=n.next,n.next=t.next,t.next=n,n},qA=function(t,e){var r=nl(t,e);return r&&r.value},YA=function(t,e,r){var n=nl(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}},KA=function(t,e){return!!nl(t,e)},ZA=function(){var e,r,n,i={assert:function(a){if(!i.has(a))throw new GA("Side channel does not contain "+$A(a))},get:function(a){if(Ca&&a&&(typeof a=="object"||typeof a=="function")){if(e)return zA(e,a)}else if(Ia){if(r)return XA(r,a)}else if(n)return qA(n,a)},has:function(a){if(Ca&&a&&(typeof a=="object"||typeof a=="function")){if(e)return VA(e,a)}else if(Ia){if(r)return WA(r,a)}else if(n)return KA(n,a);return!1},set:function(a,u){Ca&&a&&(typeof a=="object"||typeof a=="function")?(e||(e=new Ca),HA(e,a,u)):Ia?(r||(r=new Ia),jA(r,a,u)):(n||(n={key:{},next:null}),YA(n,a,u))}};return i},QA=String.prototype.replace,JA=/%20/g,il={RFC1738:"RFC1738",RFC3986:"RFC3986"},sl={default:il.RFC3986,formatters:{RFC1738:function(t){return QA.call(t,JA,"+")},RFC3986:function(t){return String(t)}},RFC1738:il.RFC1738,RFC3986:il.RFC3986},eE=sl,al=Object.prototype.hasOwnProperty,Dn=Array.isArray,Ur=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),tE=function(e){for(;e.length>1;){var r=e.pop(),n=r.obj[r.prop];if(Dn(n)){for(var i=[],a=0;a<n.length;++a)typeof n[a]<"u"&&i.push(n[a]);r.obj[r.prop]=i}}},Bd=function(e,r){for(var n=r&&r.plainObjects?Object.create(null):{},i=0;i<e.length;++i)typeof e[i]<"u"&&(n[i]=e[i]);return n},rE=function t(e,r,n){if(!r)return e;if(typeof r!="object"){if(Dn(e))e.push(r);else if(e&&typeof e=="object")(n&&(n.plainObjects||n.allowPrototypes)||!al.call(Object.prototype,r))&&(e[r]=!0);else return[e,r];return e}if(!e||typeof e!="object")return[e].concat(r);var i=e;return Dn(e)&&!Dn(r)&&(i=Bd(e,n)),Dn(e)&&Dn(r)?(r.forEach(function(a,u){if(al.call(e,u)){var l=e[u];l&&typeof l=="object"&&a&&typeof a=="object"?e[u]=t(l,a,n):e.push(a)}else e[u]=a}),e):Object.keys(r).reduce(function(a,u){var l=r[u];return al.call(a,u)?a[u]=t(a[u],l,n):a[u]=l,a},i)},nE=function(e,r){return Object.keys(r).reduce(function(n,i){return n[i]=r[i],n},e)},iE=function(t,e,r){var n=t.replace(/\+/g," ");if(r==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},sE=function(e,r,n,i,a){if(e.length===0)return e;var u=e;if(typeof e=="symbol"?u=Symbol.prototype.toString.call(e):typeof e!="string"&&(u=String(e)),n==="iso-8859-1")return escape(u).replace(/%u[0-9a-f]{4}/gi,function(m){return"%26%23"+parseInt(m.slice(2),16)+"%3B"});for(var l="",h=0;h<u.length;++h){var p=u.charCodeAt(h);if(p===45||p===46||p===95||p===126||p>=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122||a===eE.RFC1738&&(p===40||p===41)){l+=u.charAt(h);continue}if(p<128){l=l+Ur[p];continue}if(p<2048){l=l+(Ur[192|p>>6]+Ur[128|p&63]);continue}if(p<55296||p>=57344){l=l+(Ur[224|p>>12]+Ur[128|p>>6&63]+Ur[128|p&63]);continue}h+=1,p=65536+((p&1023)<<10|u.charCodeAt(h)&1023),l+=Ur[240|p>>18]+Ur[128|p>>12&63]+Ur[128|p>>6&63]+Ur[128|p&63]}return l},aE=function(e){for(var r=[{obj:{o:e},prop:"o"}],n=[],i=0;i<r.length;++i)for(var a=r[i],u=a.obj[a.prop],l=Object.keys(u),h=0;h<l.length;++h){var p=l[h],m=u[p];typeof m=="object"&&m!==null&&n.indexOf(m)===-1&&(r.push({obj:u,prop:p}),n.push(m))}return tE(r),e},oE=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},uE=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},lE=function(e,r){return[].concat(e,r)},cE=function(e,r){if(Dn(e)){for(var n=[],i=0;i<e.length;i+=1)n.push(r(e[i]));return n}return r(e)},Ud={arrayToObject:Bd,assign:nE,combine:lE,compact:aE,decode:iE,encode:sE,isBuffer:uE,isRegExp:oE,maybeMap:cE,merge:rE},$d=ZA,Ra=Ud,ys=sl,hE=Object.prototype.hasOwnProperty,Gd={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,r){return e+"["+r+"]"},repeat:function(e){return e}},jr=Array.isArray,fE=Array.prototype.push,zd=function(t,e){fE.apply(t,jr(e)?e:[e])},dE=Date.prototype.toISOString,Hd=ys.default,Mt={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:Ra.encode,encodeValuesOnly:!1,format:Hd,formatter:ys.formatters[Hd],indices:!1,serializeDate:function(e){return dE.call(e)},skipNulls:!1,strictNullHandling:!1},pE=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},ol={},gE=function t(e,r,n,i,a,u,l,h,p,m,c,d,g,v,y,b){for(var x=e,E=b,T=0,I=!1;(E=E.get(ol))!==void 0&&!I;){var O=E.get(e);if(T+=1,typeof O<"u"){if(O===T)throw new RangeError("Cyclic object value");I=!0}typeof E.get(ol)>"u"&&(T=0)}if(typeof h=="function"?x=h(r,x):x instanceof Date?x=c(x):n==="comma"&&jr(x)&&(x=Ra.maybeMap(x,function(se){return se instanceof Date?c(se):se})),x===null){if(a)return l&&!v?l(r,Mt.encoder,y,"key",d):r;x=""}if(pE(x)||Ra.isBuffer(x)){if(l){var F=v?r:l(r,Mt.encoder,y,"key",d);return[g(F)+"="+g(l(x,Mt.encoder,y,"value",d))]}return[g(r)+"="+g(String(x))]}var N=[];if(typeof x>"u")return N;var L;if(n==="comma"&&jr(x))v&&l&&(x=Ra.maybeMap(x,l)),L=[{value:x.length>0?x.join(",")||null:void 0}];else if(jr(h))L=h;else{var D=Object.keys(x);L=p?D.sort(p):D}for(var V=i&&jr(x)&&x.length===1?r+"[]":r,Y=0;Y<L.length;++Y){var ie=L[Y],X=typeof ie=="object"&&typeof ie.value<"u"?ie.value:x[ie];if(!(u&&X===null)){var G=jr(x)?typeof n=="function"?n(V,ie):V:V+(m?"."+ie:"["+ie+"]");b.set(e,T);var ae=$d();ae.set(ol,b),zd(N,t(X,G,n,i,a,u,n==="comma"&&v&&jr(x)?null:l,h,p,m,c,d,g,v,y,ae))}}return N},mE=function(e){if(!e)return Mt;if(e.encoder!==null&&typeof e.encoder<"u"&&typeof e.encoder!="function")throw new TypeError("Encoder has to be a function.");var r=e.charset||Mt.charset;if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=ys.default;if(typeof e.format<"u"){if(!hE.call(ys.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var i=ys.formatters[n],a=Mt.filter;return(typeof e.filter=="function"||jr(e.filter))&&(a=e.filter),{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:Mt.addQueryPrefix,allowDots:typeof e.allowDots>"u"?Mt.allowDots:!!e.allowDots,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:Mt.charsetSentinel,delimiter:typeof e.delimiter>"u"?Mt.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:Mt.encode,encoder:typeof e.encoder=="function"?e.encoder:Mt.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:Mt.encodeValuesOnly,filter:a,format:n,formatter:i,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:Mt.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:Mt.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:Mt.strictNullHandling}},_E=function(t,e){var r=t,n=mE(e),i,a;typeof n.filter=="function"?(a=n.filter,r=a("",r)):jr(n.filter)&&(a=n.filter,i=a);var u=[];if(typeof r!="object"||r===null)return"";var l;e&&e.arrayFormat in Gd?l=e.arrayFormat:e&&"indices"in e?l=e.indices?"indices":"repeat":l="indices";var h=Gd[l];if(e&&"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var p=h==="comma"&&e&&e.commaRoundTrip;i||(i=Object.keys(r)),n.sort&&i.sort(n.sort);for(var m=$d(),c=0;c<i.length;++c){var d=i[c];n.skipNulls&&r[d]===null||zd(u,gE(r[d],d,h,p,n.strictNullHandling,n.skipNulls,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,m))}var g=u.join(n.delimiter),v=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?v+="utf8=%26%2310003%3B&":v+="utf8=%E2%9C%93&"),g.length>0?v+g:""},wi=Ud,ul=Object.prototype.hasOwnProperty,vE=Array.isArray,Tt={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:wi.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},yE=function(t){return t.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},Vd=function(t,e){return t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1?t.split(","):t},xE="utf8=%26%2310003%3B",bE="utf8=%E2%9C%93",wE=function(e,r){var n={__proto__:null},i=r.ignoreQueryPrefix?e.replace(/^\?/,""):e,a=r.parameterLimit===1/0?void 0:r.parameterLimit,u=i.split(r.delimiter,a),l=-1,h,p=r.charset;if(r.charsetSentinel)for(h=0;h<u.length;++h)u[h].indexOf("utf8=")===0&&(u[h]===bE?p="utf-8":u[h]===xE&&(p="iso-8859-1"),l=h,h=u.length);for(h=0;h<u.length;++h)if(h!==l){var m=u[h],c=m.indexOf("]="),d=c===-1?m.indexOf("="):c+1,g,v;d===-1?(g=r.decoder(m,Tt.decoder,p,"key"),v=r.strictNullHandling?null:""):(g=r.decoder(m.slice(0,d),Tt.decoder,p,"key"),v=wi.maybeMap(Vd(m.slice(d+1),r),function(y){return r.decoder(y,Tt.decoder,p,"value")})),v&&r.interpretNumericEntities&&p==="iso-8859-1"&&(v=yE(v)),m.indexOf("[]=")>-1&&(v=vE(v)?[v]:v),ul.call(n,g)?n[g]=wi.combine(n[g],v):n[g]=v}return n},TE=function(t,e,r,n){for(var i=n?e:Vd(e,r),a=t.length-1;a>=0;--a){var u,l=t[a];if(l==="[]"&&r.parseArrays)u=[].concat(i);else{u=r.plainObjects?Object.create(null):{};var h=l.charAt(0)==="["&&l.charAt(l.length-1)==="]"?l.slice(1,-1):l,p=parseInt(h,10);!r.parseArrays&&h===""?u={0:i}:!isNaN(p)&&l!==h&&String(p)===h&&p>=0&&r.parseArrays&&p<=r.arrayLimit?(u=[],u[p]=i):h!=="__proto__"&&(u[h]=i)}i=u}return i},SE=function(e,r,n,i){if(e){var a=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,u=/(\[[^[\]]*])/,l=/(\[[^[\]]*])/g,h=n.depth>0&&u.exec(a),p=h?a.slice(0,h.index):a,m=[];if(p){if(!n.plainObjects&&ul.call(Object.prototype,p)&&!n.allowPrototypes)return;m.push(p)}for(var c=0;n.depth>0&&(h=l.exec(a))!==null&&c<n.depth;){if(c+=1,!n.plainObjects&&ul.call(Object.prototype,h[1].slice(1,-1))&&!n.allowPrototypes)return;m.push(h[1])}return h&&m.push("["+a.slice(h.index)+"]"),TE(m,r,n,i)}},AE=function(e){if(!e)return Tt;if(e.decoder!==null&&e.decoder!==void 0&&typeof e.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=typeof e.charset>"u"?Tt.charset:e.charset;return{allowDots:typeof e.allowDots>"u"?Tt.allowDots:!!e.allowDots,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:Tt.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:Tt.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:Tt.arrayLimit,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:Tt.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:Tt.comma,decoder:typeof e.decoder=="function"?e.decoder:Tt.decoder,delimiter:typeof e.delimiter=="string"||wi.isRegExp(e.delimiter)?e.delimiter:Tt.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:Tt.depth,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:Tt.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:Tt.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:Tt.plainObjects,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:Tt.strictNullHandling}},EE=function(t,e){var r=AE(e);if(t===""||t===null||typeof t>"u")return r.plainObjects?Object.create(null):{};for(var n=typeof t=="string"?wE(t,r):t,i=r.plainObjects?Object.create(null):{},a=Object.keys(n),u=0;u<a.length;++u){var l=a[u],h=SE(l,n[l],r,typeof t=="string");i=wi.merge(i,h,r)}return r.allowSparse===!0?i:wi.compact(i)},CE=_E,IE=EE,RE=sl,PE={formats:RE,parse:IE,stringify:CE},ME=DS;function vr(){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 OE=/^([a-z0-9.+-]+:)/i,FE=/:[0-9]*$/,NE=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,LE=["<",">",'"',"`"," ","\r",`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "reacthub-pixitweenjs",
|
|
3
|
-
"version": "0.2.107-alpha.
|
|
3
|
+
"version": "0.2.107-alpha.78",
|
|
4
4
|
"description": "reacthub-pixitweenjs is a library that provides a powerful combination of React, PixiJS, GSAP, and image manipulation capabilities in a timeline sequence. With this library, you can easily create stunning animations and interactive graphics for your React applications",
|
|
5
5
|
"author": "khanzzirfan <reacthub.ai@gmail.com>",
|
|
6
6
|
"main": "dist/index.es.js",
|