shop-components 0.0.5 → 0.0.6
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/device-viewer/index.d.ts +1 -2
- package/dist/device-viewer/index.stories.d.ts +1 -1
- package/dist/device-viewer/scene.d.ts +1 -0
- package/dist/device-viewer/slot-item.d.ts +8 -0
- package/dist/shop-components.mjs +2 -2
- package/dist/shop-components.umd.js +1 -1
- package/dist/style.css +1 -0
- package/package.json +2 -1
|
@@ -5,11 +5,10 @@ export interface Props {
|
|
|
5
5
|
count: number;
|
|
6
6
|
onChange: () => {};
|
|
7
7
|
}
|
|
8
|
-
export
|
|
8
|
+
export declare class DeviceViewer extends LitElement {
|
|
9
9
|
scene: Scene3D;
|
|
10
10
|
container: HTMLDivElement | undefined;
|
|
11
11
|
drag: HTMLButtonElement | undefined;
|
|
12
|
-
createRenderRoot(): this;
|
|
13
12
|
constructor();
|
|
14
13
|
protected firstUpdated(_changedProperties: PropertyValues): void;
|
|
15
14
|
protected updated(_changedProperties: PropertyValues): void;
|
package/dist/shop-components.mjs
CHANGED
|
@@ -34507,7 +34507,7 @@ class jH {
|
|
|
34507
34507
|
}
|
|
34508
34508
|
_initPane(e) {
|
|
34509
34509
|
const t = document.createElement("div");
|
|
34510
|
-
t.className = "pane-container", e.append(t),
|
|
34510
|
+
t.className = "pane-container", e.append(t), this.pane = new d7({
|
|
34511
34511
|
container: t
|
|
34512
34512
|
});
|
|
34513
34513
|
const i = {
|
|
@@ -34645,7 +34645,7 @@ class jH {
|
|
|
34645
34645
|
typeof e == "string" || (Array.isArray(e) ? this._outlinePass.selectedObjects = [...e] : this._outlinePass.selectedObjects = [e]);
|
|
34646
34646
|
}
|
|
34647
34647
|
appendTo(e) {
|
|
34648
|
-
e.append(this.renderer.domElement), e.append(this.stats.dom), e.append(this.lines), this.stats.dom.style.bottom = "0", this.stats.dom.style.top = "auto", this.resize(), this._resizeObserver = new ResizeObserver(this.resize), this._resizeObserver.observe(e);
|
|
34648
|
+
e.append(this.renderer.domElement), e.append(this.stats.dom), e.append(this.lines), e.append(this.css2dRenderer.domElement), this.stats.dom.style.bottom = "0", this.stats.dom.style.top = "auto", this.resize(), this._resizeObserver = new ResizeObserver(this.resize), this._resizeObserver.observe(e);
|
|
34649
34649
|
}
|
|
34650
34650
|
add(e) {
|
|
34651
34651
|
this._container.add(e);
|
|
@@ -8024,7 +8024,7 @@ d="${this.getPath(n)}"></path>`)}
|
|
|
8024
8024
|
color *= newPeak * invPeak;
|
|
8025
8025
|
float g = 1. - 3. / (desaturation * extraBrightness + 3.);
|
|
8026
8026
|
return mix(color, vec3(1, 1, 1), g);
|
|
8027
|
-
}`),this.camera.position.set(10,0,-10),this.camera.lookAt(new O),this.ptRenderer=new XE(this.renderer),this.ptRenderer.camera=this.camera,this.ptRenderer.material=new eq,this.ptRenderer.tiles.set(1,1),this.ptRenderer.material.filterGlossyFactor=.6,this.ptRenderer.material.environmentIntensity=this.renderer.toneMappingExposure,this.ptRenderer.material.backgroundAlpha=0,this.ptRenderer.material.environmentBlur=0,this.ptRenderer.material.bounces=6,this.ptRenderer.material.transmissiveBounces=8,this.ptRenderer.alpha=!0,this.fsQuad=new br(new Kn({map:this.ptRenderer.target.texture,blending:Dv})),this.controls.addEventListener("change",()=>{this.sampleCount=0,this.ptRenderer.reset()}),this._composer=new sq(this.renderer),this._composer.setPixelRatio(window.devicePixelRatio),this._composer.addPass(new KE(this.scene,this.camera)),this._composer.addPass(new HE),this._outlinePass=new Br(new ge(window.innerWidth,window.innerHeight),this.scene,this.camera),this._outlinePass.visibleEdgeColor.set(16777215),this._outlinePass.edgeThickness=.5,this._outlinePass.hiddenEdgeColor.set("#666"),this._outlinePass.edgeStrength=3,this._outlinePass.edgeGlow=0,this._composer.addPass(this._outlinePass),this._composer.renderTarget1.texture.colorSpace=yt,this._composer.renderTarget2.texture.colorSpace=yt,this._fxaaPass=new p0(jE),this._composer.addPass(this._fxaaPass),this.scene.add(this._container),this.ticker(),this._loadEnv(),this._initEvents()}get usePathTracing(){return this._usePathTracing}set usePathTracing(e){e?(this.bodyOpacity=1,this.slots.forEach(t=>t.hide()),this.lines.hide()):(this.slots.forEach(t=>t.show()),this.lines.show(),this.opacityCache!==void 0?(this.bodyOpacity=this.opacityCache,this.opacityCache=void 0):this.bodyOpacity=1),this._usePathTracing=e,this.controls.dampingFactor=e?1:Sw,this.sampleCount=0}get slots(){return this._slots}get logos(){return this._logos}get skins(){return this._skins}get fpsAverage(){return LD(this._fpsCache)}set bodyOpacity(e){this._bodyOpacity=e,e<1?this._materialsCache.forEach(t=>{t.mat.transparent=!0,t.mat.opacity=e,t.mat.metalness=0,t.mat.roughness=1,t.mat.color=new ke("#3859be")}):this._materialsCache.forEach(t=>{t.mat.transparent=t.transparent,t.mat.opacity=t.opacity,t.mat.metalness=t.metalness,t.mat.roughness=t.roughness,t.mat.color=t.color})}get bodyOpacity(){return this._bodyOpacity}_initPane(e){const t=document.createElement("div");t.className="pane-container",e.append(t),e.append(this.css2dRenderer.domElement),this.pane=new ID({container:t});const i={color:"#ff0000"};this.pane.addBinding(i,"color"),this.pane.on("change",r=>{var s;if(this.usePathTracing){if(!this.face)return;this.face.material&&!Array.isArray(this.face.material)&&(this.face.material.color.set(r.value),(s=this.sceneInfo.materials.find(o=>{var a;return o.name===((a=this.face)==null?void 0:a.material.name)}))==null||s.color.set(r.value),this.ptRenderer.material.materials.updateFrom(this.sceneInfo.materials,this.sceneInfo.textures),this.sampleCount=0,this.ptRenderer.reset())}else this._container.traverse(o=>{o instanceof Jt&&(Array.isArray(o.material)?o.material.forEach(a=>{a.userData.changeColor&&(a.color.set(r.value),this._materialsCache.forEach((l,u)=>{u===a.uuid&&l.color.set(r.value)}))}):o.material.userData.changeColor&&(o.material.color.set(r.value),this._materialsCache.forEach((a,l)=>{l===o.material.uuid&&a.color.set(r.value)})))})})}showState(){this.stats.dom.style.display="block"}hideState(){this.stats.dom.style.display="none"}_loadEnv(){new IE(new e0).load(W7,t=>{t.mapping=Gh,t.minFilter=ht,t.magFilter=ht,t.colorSpace=yt,t.needsUpdate=!0,this._usePathTracing||(this.scene.environment=t),this.ptRenderer.material.envMapInfo.updateFrom(t),this.ptRenderer.reset()},()=>{},()=>{})}_initEvents(){this.renderer.domElement.addEventListener("pointermove",this._pointermove),this.renderer.domElement.addEventListener("pointerdown",this._pointerdown)}addLogo(e){const t=Y7.load(e);t.flipY=!1,t.colorSpace=yt,this._container.traverse(i=>{var r;i.name.startsWith("LOGO")&&i instanceof Jt&&i.material&&(Array.isArray(i.material)?i.material.forEach(s=>{var o;(o=s.material.map)==null||o.dispose(),s.map=t}):((r=i.material.map)==null||r.dispose(),i.material.map=t))})}async generateBVH(){this.slots.forEach(u=>u.hide()),this.lines.hide(),this.opacityCache=this.bodyOpacity,this.bodyOpacity=1;const e=new nq;this._container.updateMatrixWorld();const{bvh:t,textures:i,materials:r,lights:s}=await e.generate(this._container);this.sceneInfo={materials:r,textures:i};const o=t.geometry,a=this.ptRenderer.material;a.bvh.updateFrom(t),a.attributesArray.updateFrom(o.attributes.normal,o.attributes.tangent,o.attributes.uv,o.attributes.color),a.materialIndexAttribute.updateFrom(o.attributes.materialIndex);const l=window.devicePixelRatio||1;a.textures.setTextures(this.renderer,1024*l,1024*l,i),a.materials.updateFrom(r,i),a.lights.updateFrom(s),a.lightCount=s.length,this.ptRenderer.material.materials.updateFrom(this.sceneInfo.materials,this.sceneInfo.textures),this.ptRenderer.reset(),this.sampleCount=0,e.dispose(),this.usePathTracing=!0}download(){const e=this.renderer.domElement.toDataURL("image/png"),t=document.createElement("a");t.href=e,t.download="transparent-background-object.png",document.body.appendChild(t),t.click(),document.body.removeChild(t)}async addAMR(e){if(!e.endsWith(".sglb"))return console.error("Not valid amr file url.");const i=await new ym({useCache:!0}).loadAsync(e);if(!i.glb)return;const r=i.glb.clone(!0);r.traverse(l=>{if(l instanceof Jt&&(l.material&&(Array.isArray(l.material)||l.material.userData.changeColor&&(this.face=l,this._skins.push({name:l.material.userData.name,target:l}))),l.userData.isLOGO&&(l.material.transparent=!0,this._logos.push({name:l.userData.name,target:l}))),l.name.startsWith("Slot")){const u=l.userData.name;if(u&&l.userData.isSlot){const d=new Q_({name:u,slot:l});d.addEventListener("slot-on-drop",h=>{this.props.useSound&&this._sound.play()}),this.slots.push(d),l.add(d)}}}),r.traverse(l=>{if(l instanceof Jt&&l.material)if(Array.isArray(l.material))l.material.forEach(d=>{this._materialsCache.set(d.uuid,{opacity:d.opacity,transparent:d.transparent,roughness:d.roughness,metalness:d.metalness,color:d.color,mat:d})});else{const u=l.material;this._materialsCache.set(u.uuid,{opacity:u.opacity,transparent:u.transparent,roughness:u.roughness,metalness:u.metalness,color:u.color,mat:u})}}),r.updateMatrixWorld(!0),this._container.updateMatrixWorld(),this.add(r);const s=new qt;s.setFromObject(this._container);const o=new O;s.getSize(o);const a=Math.max(o.x,o.y,o.z);this.controls.minDistance=a*2/3,this.controls.maxDistance=a*2}select(e){typeof e=="string"||(Array.isArray(e)?this._outlinePass.selectedObjects=[...e]:this._outlinePass.selectedObjects=[e])}appendTo(e){e.append(this.renderer.domElement),e.append(this.stats.dom),e.append(this.lines),this.stats.dom.style.bottom="0",this.stats.dom.style.top="auto",this.resize(),this._resizeObserver=new ResizeObserver(this.resize),this._resizeObserver.observe(e)}add(e){this._container.add(e)}updatePosition(){this.lines.forceUpdate()}destroy(){var t,i;this.stats.dom.remove(),this._emitter.removeAllListeners(),(t=this._fitAnimation)==null||t.stop(),this.renderer.domElement.removeEventListener("pointermove",this._pointermove);const e=this.renderer.domElement.parentElement;e&&((i=this._resizeObserver)==null||i.unobserve(e)),this.controls.dispose(),this.renderer.dispose(),this._composer.dispose(),this.scene.traverse(r=>{r instanceof Jt?(r.geometry.dispose(),Array.isArray(r.material)?r.material.forEach(s=>s.dispose()):r.material&&r.material.dispose()):r instanceof Q_&&r.dispose(),r.removeFromParent()})}}var Vs=(n=>(n[n.WEBGL_LEGACY=0]="WEBGL_LEGACY",n[n.WEBGL=1]="WEBGL",n[n.WEBGL2=2]="WEBGL2",n))(Vs||{}),Tw=(n=>(n[n.UNKNOWN=0]="UNKNOWN",n[n.WEBGL=1]="WEBGL",n[n.CANVAS=2]="CANVAS",n))(Tw||{}),Am=(n=>(n[n.COLOR=16384]="COLOR",n[n.DEPTH=256]="DEPTH",n[n.STENCIL=1024]="STENCIL",n))(Am||{}),He=(n=>(n[n.NORMAL=0]="NORMAL",n[n.ADD=1]="ADD",n[n.MULTIPLY=2]="MULTIPLY",n[n.SCREEN=3]="SCREEN",n[n.OVERLAY=4]="OVERLAY",n[n.DARKEN=5]="DARKEN",n[n.LIGHTEN=6]="LIGHTEN",n[n.COLOR_DODGE=7]="COLOR_DODGE",n[n.COLOR_BURN=8]="COLOR_BURN",n[n.HARD_LIGHT=9]="HARD_LIGHT",n[n.SOFT_LIGHT=10]="SOFT_LIGHT",n[n.DIFFERENCE=11]="DIFFERENCE",n[n.EXCLUSION=12]="EXCLUSION",n[n.HUE=13]="HUE",n[n.SATURATION=14]="SATURATION",n[n.COLOR=15]="COLOR",n[n.LUMINOSITY=16]="LUMINOSITY",n[n.NORMAL_NPM=17]="NORMAL_NPM",n[n.ADD_NPM=18]="ADD_NPM",n[n.SCREEN_NPM=19]="SCREEN_NPM",n[n.NONE=20]="NONE",n[n.SRC_OVER=0]="SRC_OVER",n[n.SRC_IN=21]="SRC_IN",n[n.SRC_OUT=22]="SRC_OUT",n[n.SRC_ATOP=23]="SRC_ATOP",n[n.DST_OVER=24]="DST_OVER",n[n.DST_IN=25]="DST_IN",n[n.DST_OUT=26]="DST_OUT",n[n.DST_ATOP=27]="DST_ATOP",n[n.ERASE=26]="ERASE",n[n.SUBTRACT=28]="SUBTRACT",n[n.XOR=29]="XOR",n))(He||{}),Bn=(n=>(n[n.POINTS=0]="POINTS",n[n.LINES=1]="LINES",n[n.LINE_LOOP=2]="LINE_LOOP",n[n.LINE_STRIP=3]="LINE_STRIP",n[n.TRIANGLES=4]="TRIANGLES",n[n.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",n[n.TRIANGLE_FAN=6]="TRIANGLE_FAN",n))(Bn||{}),re=(n=>(n[n.RGBA=6408]="RGBA",n[n.RGB=6407]="RGB",n[n.RG=33319]="RG",n[n.RED=6403]="RED",n[n.RGBA_INTEGER=36249]="RGBA_INTEGER",n[n.RGB_INTEGER=36248]="RGB_INTEGER",n[n.RG_INTEGER=33320]="RG_INTEGER",n[n.RED_INTEGER=36244]="RED_INTEGER",n[n.ALPHA=6406]="ALPHA",n[n.LUMINANCE=6409]="LUMINANCE",n[n.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",n[n.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",n[n.DEPTH_STENCIL=34041]="DEPTH_STENCIL",n))(re||{}),Ka=(n=>(n[n.TEXTURE_2D=3553]="TEXTURE_2D",n[n.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",n[n.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",n[n.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",n[n.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",n[n.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",n[n.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",n[n.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",n[n.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",n))(Ka||{}),Le=(n=>(n[n.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",n[n.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",n[n.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",n[n.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",n[n.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",n[n.UNSIGNED_INT=5125]="UNSIGNED_INT",n[n.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",n[n.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",n[n.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",n[n.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",n[n.BYTE=5120]="BYTE",n[n.SHORT=5122]="SHORT",n[n.INT=5124]="INT",n[n.FLOAT=5126]="FLOAT",n[n.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",n[n.HALF_FLOAT=36193]="HALF_FLOAT",n))(Le||{}),ye=(n=>(n[n.FLOAT=0]="FLOAT",n[n.INT=1]="INT",n[n.UINT=2]="UINT",n))(ye||{}),Ar=(n=>(n[n.NEAREST=0]="NEAREST",n[n.LINEAR=1]="LINEAR",n))(Ar||{}),as=(n=>(n[n.CLAMP=33071]="CLAMP",n[n.REPEAT=10497]="REPEAT",n[n.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT",n))(as||{}),Un=(n=>(n[n.OFF=0]="OFF",n[n.POW2=1]="POW2",n[n.ON=2]="ON",n[n.ON_MANUAL=3]="ON_MANUAL",n))(Un||{}),Hi=(n=>(n[n.NPM=0]="NPM",n[n.UNPACK=1]="UNPACK",n[n.PMA=2]="PMA",n[n.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",n[n.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",n[n.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA",n))(Hi||{}),Jn=(n=>(n[n.NO=0]="NO",n[n.YES=1]="YES",n[n.AUTO=2]="AUTO",n[n.BLEND=0]="BLEND",n[n.CLEAR=1]="CLEAR",n[n.BLIT=2]="BLIT",n))(Jn||{}),Em=(n=>(n[n.AUTO=0]="AUTO",n[n.MANUAL=1]="MANUAL",n))(Em||{}),cn=(n=>(n.LOW="lowp",n.MEDIUM="mediump",n.HIGH="highp",n))(cn||{}),ni=(n=>(n[n.NONE=0]="NONE",n[n.SCISSOR=1]="SCISSOR",n[n.STENCIL=2]="STENCIL",n[n.SPRITE=3]="SPRITE",n[n.COLOR=4]="COLOR",n))(ni||{}),Vt=(n=>(n[n.NONE=0]="NONE",n[n.LOW=2]="LOW",n[n.MEDIUM=4]="MEDIUM",n[n.HIGH=8]="HIGH",n))(Vt||{}),Xn=(n=>(n[n.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",n[n.ARRAY_BUFFER=34962]="ARRAY_BUFFER",n[n.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER",n))(Xn||{});const be={ADAPTER:{createCanvas:(n,e)=>{const t=document.createElement("canvas");return t.width=n,t.height=e,t},getCanvasRenderingContext2D:()=>CanvasRenderingContext2D,getWebGLRenderingContext:()=>WebGLRenderingContext,getNavigator:()=>navigator,getBaseUrl:()=>document.baseURI??window.location.href,getFontFaceSet:()=>document.fonts,fetch:(n,e)=>fetch(n,e),parseXML:n=>new DOMParser().parseFromString(n,"text/xml")},RESOLUTION:1,CREATE_IMAGE_BITMAP:!1,ROUND_PIXELS:!1};var Lm=/iPhone/i,Cw=/iPod/i,Iw=/iPad/i,Mw=/\biOS-universal(?:.+)Mac\b/i,Om=/\bAndroid(?:.+)Mobile\b/i,Pw=/Android/i,ja=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,_c=/Silk/i,Er=/Windows Phone/i,Aw=/\bWindows(?:.+)ARM\b/i,Ew=/BlackBerry/i,Lw=/BB10/i,Ow=/Opera Mini/i,qw=/\b(CriOS|Chrome)(?:.+)Mobile/i,Dw=/Mobile(?:.+)Firefox\b/i,Rw=function(n){return typeof n<"u"&&n.platform==="MacIntel"&&typeof n.maxTouchPoints=="number"&&n.maxTouchPoints>1&&typeof MSStream>"u"};function B7(n){return function(e){return e.test(n)}}function kw(n){var e={userAgent:"",platform:"",maxTouchPoints:0};!n&&typeof navigator<"u"?e={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof n=="string"?e.userAgent=n:n&&n.userAgent&&(e={userAgent:n.userAgent,platform:n.platform,maxTouchPoints:n.maxTouchPoints||0});var t=e.userAgent,i=t.split("[FBAN");typeof i[1]<"u"&&(t=i[0]),i=t.split("Twitter"),typeof i[1]<"u"&&(t=i[0]);var r=B7(t),s={apple:{phone:r(Lm)&&!r(Er),ipod:r(Cw),tablet:!r(Lm)&&(r(Iw)||Rw(e))&&!r(Er),universal:r(Mw),device:(r(Lm)||r(Cw)||r(Iw)||r(Mw)||Rw(e))&&!r(Er)},amazon:{phone:r(ja),tablet:!r(ja)&&r(_c),device:r(ja)||r(_c)},android:{phone:!r(Er)&&r(ja)||!r(Er)&&r(Om),tablet:!r(Er)&&!r(ja)&&!r(Om)&&(r(_c)||r(Pw)),device:!r(Er)&&(r(ja)||r(_c)||r(Om)||r(Pw))||r(/\bokhttp\b/i)},windows:{phone:r(Er),tablet:r(Aw),device:r(Er)||r(Aw)},other:{blackberry:r(Ew),blackberry10:r(Lw),opera:r(Ow),firefox:r(Dw),chrome:r(qw),device:r(Ew)||r(Lw)||r(Ow)||r(Dw)||r(qw)},any:!1,phone:!1,tablet:!1};return s.any=s.apple.device||s.android.device||s.windows.device||s.other.device,s.phone=s.apple.phone||s.android.phone||s.windows.phone,s.tablet=s.apple.tablet||s.android.tablet||s.windows.tablet,s}const U7=kw.default??kw,Lr=U7(globalThis.navigator);be.RETINA_PREFIX=/@([0-9\.]+)x/,be.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT=!1;var Kw={exports:{}};(function(n){var e=Object.prototype.hasOwnProperty,t="~";function i(){}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(t=!1));function r(l,u,d){this.fn=l,this.context=u,this.once=d||!1}function s(l,u,d,h,c){if(typeof d!="function")throw new TypeError("The listener must be a function");var p=new r(d,h||l,c),m=t?t+u:u;return l._events[m]?l._events[m].fn?l._events[m]=[l._events[m],p]:l._events[m].push(p):(l._events[m]=p,l._eventsCount++),l}function o(l,u){--l._eventsCount===0?l._events=new i:delete l._events[u]}function a(){this._events=new i,this._eventsCount=0}a.prototype.eventNames=function(){var u=[],d,h;if(this._eventsCount===0)return u;for(h in d=this._events)e.call(d,h)&&u.push(t?h.slice(1):h);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(d)):u},a.prototype.listeners=function(u){var d=t?t+u:u,h=this._events[d];if(!h)return[];if(h.fn)return[h.fn];for(var c=0,p=h.length,m=new Array(p);c<p;c++)m[c]=h[c].fn;return m},a.prototype.listenerCount=function(u){var d=t?t+u:u,h=this._events[d];return h?h.fn?1:h.length:0},a.prototype.emit=function(u,d,h,c,p,m){var v=t?t+u:u;if(!this._events[v])return!1;var g=this._events[v],f=arguments.length,y,b;if(g.fn){switch(g.once&&this.removeListener(u,g.fn,void 0,!0),f){case 1:return g.fn.call(g.context),!0;case 2:return g.fn.call(g.context,d),!0;case 3:return g.fn.call(g.context,d,h),!0;case 4:return g.fn.call(g.context,d,h,c),!0;case 5:return g.fn.call(g.context,d,h,c,p),!0;case 6:return g.fn.call(g.context,d,h,c,p,m),!0}for(b=1,y=new Array(f-1);b<f;b++)y[b-1]=arguments[b];g.fn.apply(g.context,y)}else{var x=g.length,_;for(b=0;b<x;b++)switch(g[b].once&&this.removeListener(u,g[b].fn,void 0,!0),f){case 1:g[b].fn.call(g[b].context);break;case 2:g[b].fn.call(g[b].context,d);break;case 3:g[b].fn.call(g[b].context,d,h);break;case 4:g[b].fn.call(g[b].context,d,h,c);break;default:if(!y)for(_=1,y=new Array(f-1);_<f;_++)y[_-1]=arguments[_];g[b].fn.apply(g[b].context,y)}}return!0},a.prototype.on=function(u,d,h){return s(this,u,d,h,!1)},a.prototype.once=function(u,d,h){return s(this,u,d,h,!0)},a.prototype.removeListener=function(u,d,h,c){var p=t?t+u:u;if(!this._events[p])return this;if(!d)return o(this,p),this;var m=this._events[p];if(m.fn)m.fn===d&&(!c||m.once)&&(!h||m.context===h)&&o(this,p);else{for(var v=0,g=[],f=m.length;v<f;v++)(m[v].fn!==d||c&&!m[v].once||h&&m[v].context!==h)&&g.push(m[v]);g.length?this._events[p]=g.length===1?g[0]:g:o(this,p)}return this},a.prototype.removeAllListeners=function(u){var d;return u?(d=t?t+u:u,this._events[d]&&o(this,d)):(this._events=new i,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=t,a.EventEmitter=a,n.exports=a})(Kw);var J7=Kw.exports;const ph=hm(J7);var qm={exports:{}};qm.exports=wc,qm.exports.default=wc;function wc(n,e,t){t=t||2;var i=e&&e.length,r=i?e[0]*t:n.length,s=jw(n,0,r,t,!0),o=[];if(!s||s.next===s.prev)return o;var a,l,u,d,h,c,p;if(i&&(s=$7(n,e,s,t)),n.length>80*t){a=u=n[0],l=d=n[1];for(var m=t;m<r;m+=t)h=n[m],c=n[m+1],h<a&&(a=h),c<l&&(l=c),h>u&&(u=h),c>d&&(d=c);p=Math.max(u-a,d-l),p=p!==0?32767/p:0}return fh(s,o,t,a,l,p,0),o}function jw(n,e,t,i,r){var s,o;if(r===km(n,e,t,i)>0)for(s=e;s<t;s+=i)o=Gw(s,n[s],n[s+1],o);else for(s=t-i;s>=e;s-=i)o=Gw(s,n[s],n[s+1],o);return o&&Sc(o,o.next)&&(gh(o),o=o.next),o}function Qs(n,e){if(!n)return n;e||(e=n);var t=n,i;do if(i=!1,!t.steiner&&(Sc(t,t.next)||kt(t.prev,t,t.next)===0)){if(gh(t),t=e=t.prev,t===t.next)break;i=!0}else t=t.next;while(i||t!==e);return e}function fh(n,e,t,i,r,s,o){if(n){!o&&s&&rR(n,i,r,s);for(var a=n,l,u;n.prev!==n.next;){if(l=n.prev,u=n.next,s?Z7(n,i,r,s):X7(n)){e.push(l.i/t|0),e.push(n.i/t|0),e.push(u.i/t|0),gh(n),n=u.next,a=u.next;continue}if(n=u,n===a){o?o===1?(n=V7(Qs(n),e,t),fh(n,e,t,i,r,s,2)):o===2&&Q7(n,e,t,i,r,s):fh(Qs(n),e,t,i,r,s,1);break}}}}function X7(n){var e=n.prev,t=n,i=n.next;if(kt(e,t,i)>=0)return!1;for(var r=e.x,s=t.x,o=i.x,a=e.y,l=t.y,u=i.y,d=r<s?r<o?r:o:s<o?s:o,h=a<l?a<u?a:u:l<u?l:u,c=r>s?r>o?r:o:s>o?s:o,p=a>l?a>u?a:u:l>u?l:u,m=i.next;m!==e;){if(m.x>=d&&m.x<=c&&m.y>=h&&m.y<=p&&Na(r,a,s,l,o,u,m.x,m.y)&&kt(m.prev,m,m.next)>=0)return!1;m=m.next}return!0}function Z7(n,e,t,i){var r=n.prev,s=n,o=n.next;if(kt(r,s,o)>=0)return!1;for(var a=r.x,l=s.x,u=o.x,d=r.y,h=s.y,c=o.y,p=a<l?a<u?a:u:l<u?l:u,m=d<h?d<c?d:c:h<c?h:c,v=a>l?a>u?a:u:l>u?l:u,g=d>h?d>c?d:c:h>c?h:c,f=Dm(p,m,e,t,i),y=Dm(v,g,e,t,i),b=n.prevZ,x=n.nextZ;b&&b.z>=f&&x&&x.z<=y;){if(b.x>=p&&b.x<=v&&b.y>=m&&b.y<=g&&b!==r&&b!==o&&Na(a,d,l,h,u,c,b.x,b.y)&&kt(b.prev,b,b.next)>=0||(b=b.prevZ,x.x>=p&&x.x<=v&&x.y>=m&&x.y<=g&&x!==r&&x!==o&&Na(a,d,l,h,u,c,x.x,x.y)&&kt(x.prev,x,x.next)>=0))return!1;x=x.nextZ}for(;b&&b.z>=f;){if(b.x>=p&&b.x<=v&&b.y>=m&&b.y<=g&&b!==r&&b!==o&&Na(a,d,l,h,u,c,b.x,b.y)&&kt(b.prev,b,b.next)>=0)return!1;b=b.prevZ}for(;x&&x.z<=y;){if(x.x>=p&&x.x<=v&&x.y>=m&&x.y<=g&&x!==r&&x!==o&&Na(a,d,l,h,u,c,x.x,x.y)&&kt(x.prev,x,x.next)>=0)return!1;x=x.nextZ}return!0}function V7(n,e,t){var i=n;do{var r=i.prev,s=i.next.next;!Sc(r,s)&&Nw(r,i,i.next,s)&&mh(r,s)&&mh(s,r)&&(e.push(r.i/t|0),e.push(i.i/t|0),e.push(s.i/t|0),gh(i),gh(i.next),i=n=s),i=i.next}while(i!==n);return Qs(i)}function Q7(n,e,t,i,r,s){var o=n;do{for(var a=o.next.next;a!==o.prev;){if(o.i!==a.i&&aR(o,a)){var l=zw(o,a);o=Qs(o,o.next),l=Qs(l,l.next),fh(o,e,t,i,r,s,0),fh(l,e,t,i,r,s,0);return}a=a.next}o=o.next}while(o!==n)}function $7(n,e,t,i){var r=[],s,o,a,l,u;for(s=0,o=e.length;s<o;s++)a=e[s]*i,l=s<o-1?e[s+1]*i:n.length,u=jw(n,a,l,i,!1),u===u.next&&(u.steiner=!0),r.push(oR(u));for(r.sort(eR),s=0;s<r.length;s++)t=tR(r[s],t);return t}function eR(n,e){return n.x-e.x}function tR(n,e){var t=iR(n,e);if(!t)return e;var i=zw(t,n);return Qs(i,i.next),Qs(t,t.next)}function iR(n,e){var t=e,i=n.x,r=n.y,s=-1/0,o;do{if(r<=t.y&&r>=t.next.y&&t.next.y!==t.y){var a=t.x+(r-t.y)*(t.next.x-t.x)/(t.next.y-t.y);if(a<=i&&a>s&&(s=a,o=t.x<t.next.x?t:t.next,a===i))return o}t=t.next}while(t!==e);if(!o)return null;var l=o,u=o.x,d=o.y,h=1/0,c;t=o;do i>=t.x&&t.x>=u&&i!==t.x&&Na(r<d?i:s,r,u,d,r<d?s:i,r,t.x,t.y)&&(c=Math.abs(r-t.y)/(i-t.x),mh(t,n)&&(c<h||c===h&&(t.x>o.x||t.x===o.x&&nR(o,t)))&&(o=t,h=c)),t=t.next;while(t!==l);return o}function nR(n,e){return kt(n.prev,n,e.prev)<0&&kt(e.next,n,n.next)<0}function rR(n,e,t,i){var r=n;do r.z===0&&(r.z=Dm(r.x,r.y,e,t,i)),r.prevZ=r.prev,r.nextZ=r.next,r=r.next;while(r!==n);r.prevZ.nextZ=null,r.prevZ=null,sR(r)}function sR(n){var e,t,i,r,s,o,a,l,u=1;do{for(t=n,n=null,s=null,o=0;t;){for(o++,i=t,a=0,e=0;e<u&&(a++,i=i.nextZ,!!i);e++);for(l=u;a>0||l>0&&i;)a!==0&&(l===0||!i||t.z<=i.z)?(r=t,t=t.nextZ,a--):(r=i,i=i.nextZ,l--),s?s.nextZ=r:n=r,r.prevZ=s,s=r;t=i}s.nextZ=null,u*=2}while(o>1);return n}function Dm(n,e,t,i,r){return n=(n-t)*r|0,e=(e-i)*r|0,n=(n|n<<8)&16711935,n=(n|n<<4)&252645135,n=(n|n<<2)&858993459,n=(n|n<<1)&1431655765,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,n|e<<1}function oR(n){var e=n,t=n;do(e.x<t.x||e.x===t.x&&e.y<t.y)&&(t=e),e=e.next;while(e!==n);return t}function Na(n,e,t,i,r,s,o,a){return(r-o)*(e-a)>=(n-o)*(s-a)&&(n-o)*(i-a)>=(t-o)*(e-a)&&(t-o)*(s-a)>=(r-o)*(i-a)}function aR(n,e){return n.next.i!==e.i&&n.prev.i!==e.i&&!lR(n,e)&&(mh(n,e)&&mh(e,n)&&hR(n,e)&&(kt(n.prev,n,e.prev)||kt(n,e.prev,e))||Sc(n,e)&&kt(n.prev,n,n.next)>0&&kt(e.prev,e,e.next)>0)}function kt(n,e,t){return(e.y-n.y)*(t.x-e.x)-(e.x-n.x)*(t.y-e.y)}function Sc(n,e){return n.x===e.x&&n.y===e.y}function Nw(n,e,t,i){var r=Cc(kt(n,e,t)),s=Cc(kt(n,e,i)),o=Cc(kt(t,i,n)),a=Cc(kt(t,i,e));return!!(r!==s&&o!==a||r===0&&Tc(n,t,e)||s===0&&Tc(n,i,e)||o===0&&Tc(t,n,i)||a===0&&Tc(t,e,i))}function Tc(n,e,t){return e.x<=Math.max(n.x,t.x)&&e.x>=Math.min(n.x,t.x)&&e.y<=Math.max(n.y,t.y)&&e.y>=Math.min(n.y,t.y)}function Cc(n){return n>0?1:n<0?-1:0}function lR(n,e){var t=n;do{if(t.i!==n.i&&t.next.i!==n.i&&t.i!==e.i&&t.next.i!==e.i&&Nw(t,t.next,n,e))return!0;t=t.next}while(t!==n);return!1}function mh(n,e){return kt(n.prev,n,n.next)<0?kt(n,e,n.next)>=0&&kt(n,n.prev,e)>=0:kt(n,e,n.prev)<0||kt(n,n.next,e)<0}function hR(n,e){var t=n,i=!1,r=(n.x+e.x)/2,s=(n.y+e.y)/2;do t.y>s!=t.next.y>s&&t.next.y!==t.y&&r<(t.next.x-t.x)*(s-t.y)/(t.next.y-t.y)+t.x&&(i=!i),t=t.next;while(t!==n);return i}function zw(n,e){var t=new Rm(n.i,n.x,n.y),i=new Rm(e.i,e.x,e.y),r=n.next,s=e.prev;return n.next=e,e.prev=n,t.next=r,r.prev=t,i.next=t,t.prev=i,s.next=i,i.prev=s,i}function Gw(n,e,t,i){var r=new Rm(n,e,t);return i?(r.next=i.next,r.prev=i,i.next.prev=r,i.next=r):(r.prev=r,r.next=r),r}function gh(n){n.next.prev=n.prev,n.prev.next=n.next,n.prevZ&&(n.prevZ.nextZ=n.nextZ),n.nextZ&&(n.nextZ.prevZ=n.prevZ)}function Rm(n,e,t){this.i=n,this.x=e,this.y=t,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}wc.deviation=function(n,e,t,i){var r=e&&e.length,s=r?e[0]*t:n.length,o=Math.abs(km(n,0,s,t));if(r)for(var a=0,l=e.length;a<l;a++){var u=e[a]*t,d=a<l-1?e[a+1]*t:n.length;o-=Math.abs(km(n,u,d,t))}var h=0;for(a=0;a<i.length;a+=3){var c=i[a]*t,p=i[a+1]*t,m=i[a+2]*t;h+=Math.abs((n[c]-n[m])*(n[p+1]-n[c+1])-(n[c]-n[p])*(n[m+1]-n[c+1]))}return o===0&&h===0?0:Math.abs((h-o)/o)};function km(n,e,t,i){for(var r=0,s=e,o=t-i;s<t;s+=i)r+=(n[o]-n[s])*(n[s+1]+n[o+1]),o=s;return r}wc.flatten=function(n){for(var e=n[0][0].length,t={vertices:[],holes:[],dimensions:e},i=0,r=0;r<n.length;r++){for(var s=0;s<n[r].length;s++)for(var o=0;o<e;o++)t.vertices.push(n[r][s][o]);r>0&&(i+=n[r-1].length,t.holes.push(i))}return t};var uR=qm.exports;const cR=hm(uR);var Ic={exports:{}};/*! https://mths.be/punycode v1.4.1 by @mathias */Ic.exports,function(n,e){(function(t){var i=e&&!e.nodeType&&e,r=n&&!n.nodeType&&n,s=typeof Pr=="object"&⪻(s.global===s||s.window===s||s.self===s)&&(t=s);var o,a=2147483647,l=36,u=1,d=26,h=38,c=700,p=72,m=128,v="-",g=/^xn--/,f=/[^\x20-\x7E]/,y=/[\x2E\u3002\uFF0E\uFF61]/g,b={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},x=l-u,_=Math.floor,S=String.fromCharCode,T;function I(z){throw new RangeError(b[z])}function w(z,H){for(var ee=z.length,Y=[];ee--;)Y[ee]=H(z[ee]);return Y}function C(z,H){var ee=z.split("@"),Y="";ee.length>1&&(Y=ee[0]+"@",z=ee[1]),z=z.replace(y,".");var V=z.split("."),se=w(V,H).join(".");return Y+se}function D(z){for(var H=[],ee=0,Y=z.length,V,se;ee<Y;)V=z.charCodeAt(ee++),V>=55296&&V<=56319&&ee<Y?(se=z.charCodeAt(ee++),(se&64512)==56320?H.push(((V&1023)<<10)+(se&1023)+65536):(H.push(V),ee--)):H.push(V);return H}function E(z){return w(z,function(H){var ee="";return H>65535&&(H-=65536,ee+=S(H>>>10&1023|55296),H=56320|H&1023),ee+=S(H),ee}).join("")}function A(z){return z-48<10?z-22:z-65<26?z-65:z-97<26?z-97:l}function M(z,H){return z+22+75*(z<26)-((H!=0)<<5)}function R(z,H,ee){var Y=0;for(z=ee?_(z/c):z>>1,z+=_(z/H);z>x*d>>1;Y+=l)z=_(z/x);return _(Y+(x+1)*z/(z+h))}function K(z){var H=[],ee=z.length,Y,V=0,se=m,pe=p,me,Me,Ee,we,_e,G,it,Se,Ge;for(me=z.lastIndexOf(v),me<0&&(me=0),Me=0;Me<me;++Me)z.charCodeAt(Me)>=128&&I("not-basic"),H.push(z.charCodeAt(Me));for(Ee=me>0?me+1:0;Ee<ee;){for(we=V,_e=1,G=l;Ee>=ee&&I("invalid-input"),it=A(z.charCodeAt(Ee++)),(it>=l||it>_((a-V)/_e))&&I("overflow"),V+=it*_e,Se=G<=pe?u:G>=pe+d?d:G-pe,!(it<Se);G+=l)Ge=l-Se,_e>_(a/Ge)&&I("overflow"),_e*=Ge;Y=H.length+1,pe=R(V-we,Y,we==0),_(V/Y)>a-se&&I("overflow"),se+=_(V/Y),V%=Y,H.splice(V++,0,se)}return E(H)}function N(z){var H,ee,Y,V,se,pe,me,Me,Ee,we,_e,G=[],it,Se,Ge,Ke;for(z=D(z),it=z.length,H=m,ee=0,se=p,pe=0;pe<it;++pe)_e=z[pe],_e<128&&G.push(S(_e));for(Y=V=G.length,V&&G.push(v);Y<it;){for(me=a,pe=0;pe<it;++pe)_e=z[pe],_e>=H&&_e<me&&(me=_e);for(Se=Y+1,me-H>_((a-ee)/Se)&&I("overflow"),ee+=(me-H)*Se,H=me,pe=0;pe<it;++pe)if(_e=z[pe],_e<H&&++ee>a&&I("overflow"),_e==H){for(Me=ee,Ee=l;we=Ee<=se?u:Ee>=se+d?d:Ee-se,!(Me<we);Ee+=l)Ke=Me-we,Ge=l-we,G.push(S(M(we+Ke%Ge,0))),Me=_(Ke/Ge);G.push(S(M(Me,0))),se=R(ee,Se,Y==V),ee=0,++Y}++ee,++H}return G.join("")}function X(z){return C(z,function(H){return g.test(H)?K(H.slice(4).toLowerCase()):H})}function F(z){return C(z,function(H){return f.test(H)?"xn--"+N(H):H})}if(o={version:"1.4.1",ucs2:{decode:D,encode:E},decode:K,encode:N,toASCII:F,toUnicode:X},i&&r)if(n.exports==i)r.exports=o;else for(T in o)o.hasOwnProperty(T)&&(i[T]=o[T]);else t.punycode=o})(Pr)}(Ic,Ic.exports);var dR=Ic.exports,pR=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),i=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;var r=42;e[t]=r;for(t 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 s=Object.getOwnPropertySymbols(e);if(s.length!==1||s[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==r||o.enumerable!==!0)return!1}return!0},Hw=typeof Symbol<"u"&&Symbol,fR=pR,mR=function(){return typeof Hw!="function"||typeof Symbol!="function"||typeof Hw("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:fR()},Ww={foo:{}},gR=Object,vR=function(){return{__proto__:Ww}.foo===Ww.foo&&!({__proto__:null}instanceof gR)},yR="Function.prototype.bind called on incompatible ",bR=Object.prototype.toString,xR=Math.max,_R="[object Function]",Yw=function(e,t){for(var i=[],r=0;r<e.length;r+=1)i[r]=e[r];for(var s=0;s<t.length;s+=1)i[s+e.length]=t[s];return i},wR=function(e,t){for(var i=[],r=t||0,s=0;r<e.length;r+=1,s+=1)i[s]=e[r];return i},SR=function(n,e){for(var t="",i=0;i<n.length;i+=1)t+=n[i],i+1<n.length&&(t+=e);return t},TR=function(e){var t=this;if(typeof t!="function"||bR.apply(t)!==_R)throw new TypeError(yR+t);for(var i=wR(arguments,1),r,s=function(){if(this instanceof r){var d=t.apply(this,Yw(i,arguments));return Object(d)===d?d:this}return t.apply(e,Yw(i,arguments))},o=xR(0,t.length-i.length),a=[],l=0;l<o;l++)a[l]="$"+l;if(r=Function("binder","return function ("+SR(a,",")+"){ return binder.apply(this,arguments); }")(s),t.prototype){var u=function(){};u.prototype=t.prototype,r.prototype=new u,u.prototype=null}return r},CR=TR,Km=Function.prototype.bind||CR,IR=Function.prototype.call,MR=Object.prototype.hasOwnProperty,PR=Km,AR=PR.call(IR,MR),lt,za=SyntaxError,Fw=Function,Ga=TypeError,jm=function(n){try{return Fw('"use strict"; return ('+n+").constructor;")()}catch{}},$s=Object.getOwnPropertyDescriptor;if($s)try{$s({},"")}catch{$s=null}var Nm=function(){throw new Ga},ER=$s?function(){try{return arguments.callee,Nm}catch{try{return $s(arguments,"callee").get}catch{return Nm}}}():Nm,Ha=mR(),LR=vR(),hi=Object.getPrototypeOf||(LR?function(n){return n.__proto__}:null),Wa={},OR=typeof Uint8Array>"u"||!hi?lt:hi(Uint8Array),eo={"%AggregateError%":typeof AggregateError>"u"?lt:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?lt:ArrayBuffer,"%ArrayIteratorPrototype%":Ha&&hi?hi([][Symbol.iterator]()):lt,"%AsyncFromSyncIteratorPrototype%":lt,"%AsyncFunction%":Wa,"%AsyncGenerator%":Wa,"%AsyncGeneratorFunction%":Wa,"%AsyncIteratorPrototype%":Wa,"%Atomics%":typeof Atomics>"u"?lt:Atomics,"%BigInt%":typeof BigInt>"u"?lt:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?lt:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?lt:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?lt:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?lt:Float32Array,"%Float64Array%":typeof Float64Array>"u"?lt:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?lt:FinalizationRegistry,"%Function%":Fw,"%GeneratorFunction%":Wa,"%Int8Array%":typeof Int8Array>"u"?lt:Int8Array,"%Int16Array%":typeof Int16Array>"u"?lt:Int16Array,"%Int32Array%":typeof Int32Array>"u"?lt:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Ha&&hi?hi(hi([][Symbol.iterator]())):lt,"%JSON%":typeof JSON=="object"?JSON:lt,"%Map%":typeof Map>"u"?lt:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Ha||!hi?lt:hi(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?lt:Promise,"%Proxy%":typeof Proxy>"u"?lt:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?lt:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?lt:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Ha||!hi?lt:hi(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?lt:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Ha&&hi?hi(""[Symbol.iterator]()):lt,"%Symbol%":Ha?Symbol:lt,"%SyntaxError%":za,"%ThrowTypeError%":ER,"%TypedArray%":OR,"%TypeError%":Ga,"%Uint8Array%":typeof Uint8Array>"u"?lt:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?lt:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?lt:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?lt:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?lt:WeakMap,"%WeakRef%":typeof WeakRef>"u"?lt:WeakRef,"%WeakSet%":typeof WeakSet>"u"?lt:WeakSet};if(hi)try{null.error}catch(n){var qR=hi(hi(n));eo["%Error.prototype%"]=qR}var DR=function n(e){var t;if(e==="%AsyncFunction%")t=jm("async function () {}");else if(e==="%GeneratorFunction%")t=jm("function* () {}");else if(e==="%AsyncGeneratorFunction%")t=jm("async function* () {}");else if(e==="%AsyncGenerator%"){var i=n("%AsyncGeneratorFunction%");i&&(t=i.prototype)}else if(e==="%AsyncIteratorPrototype%"){var r=n("%AsyncGenerator%");r&&hi&&(t=hi(r.prototype))}return eo[e]=t,t},Bw={"%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"]},vh=Km,Mc=AR,RR=vh.call(Function.call,Array.prototype.concat),kR=vh.call(Function.apply,Array.prototype.splice),Uw=vh.call(Function.call,String.prototype.replace),Pc=vh.call(Function.call,String.prototype.slice),KR=vh.call(Function.call,RegExp.prototype.exec),jR=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,NR=/\\(\\)?/g,zR=function(e){var t=Pc(e,0,1),i=Pc(e,-1);if(t==="%"&&i!=="%")throw new za("invalid intrinsic syntax, expected closing `%`");if(i==="%"&&t!=="%")throw new za("invalid intrinsic syntax, expected opening `%`");var r=[];return Uw(e,jR,function(s,o,a,l){r[r.length]=a?Uw(l,NR,"$1"):o||s}),r},GR=function(e,t){var i=e,r;if(Mc(Bw,i)&&(r=Bw[i],i="%"+r[0]+"%"),Mc(eo,i)){var s=eo[i];if(s===Wa&&(s=DR(i)),typeof s>"u"&&!t)throw new Ga("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:i,value:s}}throw new za("intrinsic "+e+" does not exist!")},to=function(e,t){if(typeof e!="string"||e.length===0)throw new Ga("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new Ga('"allowMissing" argument must be a boolean');if(KR(/^%?[^%]*%?$/,e)===null)throw new za("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var i=zR(e),r=i.length>0?i[0]:"",s=GR("%"+r+"%",t),o=s.name,a=s.value,l=!1,u=s.alias;u&&(r=u[0],kR(i,RR([0,1],u)));for(var d=1,h=!0;d<i.length;d+=1){var c=i[d],p=Pc(c,0,1),m=Pc(c,-1);if((p==='"'||p==="'"||p==="`"||m==='"'||m==="'"||m==="`")&&p!==m)throw new za("property names with quotes must have matching quotes");if((c==="constructor"||!h)&&(l=!0),r+="."+c,o="%"+r+"%",Mc(eo,o))a=eo[o];else if(a!=null){if(!(c in a)){if(!t)throw new Ga("base intrinsic for "+e+" exists, but the property is not available.");return}if($s&&d+1>=i.length){var v=$s(a,c);h=!!v,h&&"get"in v&&!("originalValue"in v.get)?a=v.get:a=a[c]}else h=Mc(a,c),a=a[c];h&&!l&&(eo[o]=a)}}return a},Jw={exports:{}},HR=to,zm=HR("%Object.defineProperty%",!0),Gm=function(){if(zm)try{return zm({},"a",{value:1}),!0}catch{return!1}return!1};Gm.hasArrayLengthDefineBug=function(){if(!Gm())return null;try{return zm([],"length",{value:1}).length!==1}catch{return!0}};var Xw=Gm,WR=to,Ac=WR("%Object.getOwnPropertyDescriptor%",!0);if(Ac)try{Ac([],"length")}catch{Ac=null}var Zw=Ac,YR=Xw(),Hm=to,yh=YR&&Hm("%Object.defineProperty%",!0);if(yh)try{yh({},"a",{value:1})}catch{yh=!1}var FR=Hm("%SyntaxError%"),Ya=Hm("%TypeError%"),Vw=Zw,BR=function(e,t,i){if(!e||typeof e!="object"&&typeof e!="function")throw new Ya("`obj` must be an object or a function`");if(typeof t!="string"&&typeof t!="symbol")throw new Ya("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Ya("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Ya("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Ya("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Ya("`loose`, if provided, must be a boolean");var r=arguments.length>3?arguments[3]:null,s=arguments.length>4?arguments[4]:null,o=arguments.length>5?arguments[5]:null,a=arguments.length>6?arguments[6]:!1,l=!!Vw&&Vw(e,t);if(yh)yh(e,t,{configurable:o===null&&l?l.configurable:!o,enumerable:r===null&&l?l.enumerable:!r,value:i,writable:s===null&&l?l.writable:!s});else if(a||!r&&!s&&!o)e[t]=i;else throw new FR("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Qw=to,$w=BR,UR=Xw(),eS=Zw,tS=Qw("%TypeError%"),JR=Qw("%Math.floor%"),XR=function(e,t){if(typeof e!="function")throw new tS("`fn` is not a function");if(typeof t!="number"||t<0||t>4294967295||JR(t)!==t)throw new tS("`length` must be a positive 32-bit integer");var i=arguments.length>2&&!!arguments[2],r=!0,s=!0;if("length"in e&&eS){var o=eS(e,"length");o&&!o.configurable&&(r=!1),o&&!o.writable&&(s=!1)}return(r||s||!i)&&(UR?$w(e,"length",t,!0,!0):$w(e,"length",t)),e};(function(n){var e=Km,t=to,i=XR,r=t("%TypeError%"),s=t("%Function.prototype.apply%"),o=t("%Function.prototype.call%"),a=t("%Reflect.apply%",!0)||e.call(o,s),l=t("%Object.defineProperty%",!0),u=t("%Math.max%");if(l)try{l({},"a",{value:1})}catch{l=null}n.exports=function(c){if(typeof c!="function")throw new r("a function is required");var p=a(e,o,arguments);return i(p,1+u(0,c.length-(arguments.length-1)),!0)};var d=function(){return a(e,s,arguments)};l?l(n.exports,"apply",{value:d}):n.exports.apply=d})(Jw);var ZR=Jw.exports,iS=to,nS=ZR,VR=nS(iS("String.prototype.indexOf")),QR=function(e,t){var i=iS(e,!!t);return typeof i=="function"&&VR(e,".prototype.")>-1?nS(i):i};const $R=AD(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Wm=typeof Map=="function"&&Map.prototype,Ym=Object.getOwnPropertyDescriptor&&Wm?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Ec=Wm&&Ym&&typeof Ym.get=="function"?Ym.get:null,rS=Wm&&Map.prototype.forEach,Fm=typeof Set=="function"&&Set.prototype,Bm=Object.getOwnPropertyDescriptor&&Fm?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Lc=Fm&&Bm&&typeof Bm.get=="function"?Bm.get:null,sS=Fm&&Set.prototype.forEach,ek=typeof WeakMap=="function"&&WeakMap.prototype,bh=ek?WeakMap.prototype.has:null,tk=typeof WeakSet=="function"&&WeakSet.prototype,xh=tk?WeakSet.prototype.has:null,ik=typeof WeakRef=="function"&&WeakRef.prototype,oS=ik?WeakRef.prototype.deref:null,nk=Boolean.prototype.valueOf,rk=Object.prototype.toString,sk=Function.prototype.toString,ok=String.prototype.match,Um=String.prototype.slice,ls=String.prototype.replace,ak=String.prototype.toUpperCase,aS=String.prototype.toLowerCase,lS=RegExp.prototype.test,hS=Array.prototype.concat,Zn=Array.prototype.join,lk=Array.prototype.slice,uS=Math.floor,Jm=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Xm=Object.getOwnPropertySymbols,Zm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Fa=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Si=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Fa||!0)?Symbol.toStringTag:null,cS=Object.prototype.propertyIsEnumerable,dS=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(n){return n.__proto__}:null);function pS(n,e){if(n===1/0||n===-1/0||n!==n||n&&n>-1e3&&n<1e3||lS.call(/e/,e))return e;var t=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof n=="number"){var i=n<0?-uS(-n):uS(n);if(i!==n){var r=String(i),s=Um.call(e,r.length+1);return ls.call(r,t,"$&_")+"."+ls.call(ls.call(s,/([0-9]{3})/g,"$&_"),/_$/,"")}}return ls.call(e,t,"$&_")}var Vm=$R,fS=Vm.custom,mS=yS(fS)?fS:null,hk=function n(e,t,i,r){var s=t||{};if(hs(s,"quoteStyle")&&s.quoteStyle!=="single"&&s.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(hs(s,"maxStringLength")&&(typeof s.maxStringLength=="number"?s.maxStringLength<0&&s.maxStringLength!==1/0:s.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var o=hs(s,"customInspect")?s.customInspect:!0;if(typeof o!="boolean"&&o!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(hs(s,"indent")&&s.indent!==null&&s.indent!==" "&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(hs(s,"numericSeparator")&&typeof s.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=s.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 xS(e,s);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var l=String(e);return a?pS(e,l):l}if(typeof e=="bigint"){var u=String(e)+"n";return a?pS(e,u):u}var d=typeof s.depth>"u"?5:s.depth;if(typeof i>"u"&&(i=0),i>=d&&d>0&&typeof e=="object")return Qm(e)?"[Array]":"[Object]";var h=Mk(s,i);if(typeof r>"u")r=[];else if(bS(r,e)>=0)return"[Circular]";function c(A,M,R){if(M&&(r=lk.call(r),r.push(M)),R){var K={depth:s.depth};return hs(s,"quoteStyle")&&(K.quoteStyle=s.quoteStyle),n(A,K,i+1,r)}return n(A,s,i+1,r)}if(typeof e=="function"&&!vS(e)){var p=yk(e),m=Oc(e,c);return"[Function"+(p?": "+p:" (anonymous)")+"]"+(m.length>0?" { "+Zn.call(m,", ")+" }":"")}if(yS(e)){var v=Fa?ls.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):Zm.call(e);return typeof e=="object"&&!Fa?_h(v):v}if(Tk(e)){for(var g="<"+aS.call(String(e.nodeName)),f=e.attributes||[],y=0;y<f.length;y++)g+=" "+f[y].name+"="+gS(uk(f[y].value),"double",s);return g+=">",e.childNodes&&e.childNodes.length&&(g+="..."),g+="</"+aS.call(String(e.nodeName))+">",g}if(Qm(e)){if(e.length===0)return"[]";var b=Oc(e,c);return h&&!Ik(b)?"["+eg(b,h)+"]":"[ "+Zn.call(b,", ")+" ]"}if(dk(e)){var x=Oc(e,c);return!("cause"in Error.prototype)&&"cause"in e&&!cS.call(e,"cause")?"{ ["+String(e)+"] "+Zn.call(hS.call("[cause]: "+c(e.cause),x),", ")+" }":x.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+Zn.call(x,", ")+" }"}if(typeof e=="object"&&o){if(mS&&typeof e[mS]=="function"&&Vm)return Vm(e,{depth:d-i});if(o!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(bk(e)){var _=[];return rS&&rS.call(e,function(A,M){_.push(c(M,e,!0)+" => "+c(A,e))}),_S("Map",Ec.call(e),_,h)}if(wk(e)){var S=[];return sS&&sS.call(e,function(A){S.push(c(A,e))}),_S("Set",Lc.call(e),S,h)}if(xk(e))return $m("WeakMap");if(Sk(e))return $m("WeakSet");if(_k(e))return $m("WeakRef");if(fk(e))return _h(c(Number(e)));if(gk(e))return _h(c(Jm.call(e)));if(mk(e))return _h(nk.call(e));if(pk(e))return _h(c(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(e===Pr)return"{ [object globalThis] }";if(!ck(e)&&!vS(e)){var T=Oc(e,c),I=dS?dS(e)===Object.prototype:e instanceof Object||e.constructor===Object,w=e instanceof Object?"":"null prototype",C=!I&&Si&&Object(e)===e&&Si in e?Um.call(us(e),8,-1):w?"Object":"",D=I||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",E=D+(C||w?"["+Zn.call(hS.call([],C||[],w||[]),": ")+"] ":"");return T.length===0?E+"{}":h?E+"{"+eg(T,h)+"}":E+"{ "+Zn.call(T,", ")+" }"}return String(e)};function gS(n,e,t){var i=(t.quoteStyle||e)==="double"?'"':"'";return i+n+i}function uk(n){return ls.call(String(n),/"/g,""")}function Qm(n){return us(n)==="[object Array]"&&(!Si||!(typeof n=="object"&&Si in n))}function ck(n){return us(n)==="[object Date]"&&(!Si||!(typeof n=="object"&&Si in n))}function vS(n){return us(n)==="[object RegExp]"&&(!Si||!(typeof n=="object"&&Si in n))}function dk(n){return us(n)==="[object Error]"&&(!Si||!(typeof n=="object"&&Si in n))}function pk(n){return us(n)==="[object String]"&&(!Si||!(typeof n=="object"&&Si in n))}function fk(n){return us(n)==="[object Number]"&&(!Si||!(typeof n=="object"&&Si in n))}function mk(n){return us(n)==="[object Boolean]"&&(!Si||!(typeof n=="object"&&Si in n))}function yS(n){if(Fa)return n&&typeof n=="object"&&n instanceof Symbol;if(typeof n=="symbol")return!0;if(!n||typeof n!="object"||!Zm)return!1;try{return Zm.call(n),!0}catch{}return!1}function gk(n){if(!n||typeof n!="object"||!Jm)return!1;try{return Jm.call(n),!0}catch{}return!1}var vk=Object.prototype.hasOwnProperty||function(n){return n in this};function hs(n,e){return vk.call(n,e)}function us(n){return rk.call(n)}function yk(n){if(n.name)return n.name;var e=ok.call(sk.call(n),/^function\s*([\w$]+)/);return e?e[1]:null}function bS(n,e){if(n.indexOf)return n.indexOf(e);for(var t=0,i=n.length;t<i;t++)if(n[t]===e)return t;return-1}function bk(n){if(!Ec||!n||typeof n!="object")return!1;try{Ec.call(n);try{Lc.call(n)}catch{return!0}return n instanceof Map}catch{}return!1}function xk(n){if(!bh||!n||typeof n!="object")return!1;try{bh.call(n,bh);try{xh.call(n,xh)}catch{return!0}return n instanceof WeakMap}catch{}return!1}function _k(n){if(!oS||!n||typeof n!="object")return!1;try{return oS.call(n),!0}catch{}return!1}function wk(n){if(!Lc||!n||typeof n!="object")return!1;try{Lc.call(n);try{Ec.call(n)}catch{return!0}return n instanceof Set}catch{}return!1}function Sk(n){if(!xh||!n||typeof n!="object")return!1;try{xh.call(n,xh);try{bh.call(n,bh)}catch{return!0}return n instanceof WeakSet}catch{}return!1}function Tk(n){return!n||typeof n!="object"?!1:typeof HTMLElement<"u"&&n instanceof HTMLElement?!0:typeof n.nodeName=="string"&&typeof n.getAttribute=="function"}function xS(n,e){if(n.length>e.maxStringLength){var t=n.length-e.maxStringLength,i="... "+t+" more character"+(t>1?"s":"");return xS(Um.call(n,0,e.maxStringLength),e)+i}var r=ls.call(ls.call(n,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Ck);return gS(r,"single",e)}function Ck(n){var e=n.charCodeAt(0),t={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return t?"\\"+t:"\\x"+(e<16?"0":"")+ak.call(e.toString(16))}function _h(n){return"Object("+n+")"}function $m(n){return n+" { ? }"}function _S(n,e,t,i){var r=i?eg(t,i):Zn.call(t,", ");return n+" ("+e+") {"+r+"}"}function Ik(n){for(var e=0;e<n.length;e++)if(bS(n[e],`
|
|
8027
|
+
}`),this.camera.position.set(10,0,-10),this.camera.lookAt(new O),this.ptRenderer=new XE(this.renderer),this.ptRenderer.camera=this.camera,this.ptRenderer.material=new eq,this.ptRenderer.tiles.set(1,1),this.ptRenderer.material.filterGlossyFactor=.6,this.ptRenderer.material.environmentIntensity=this.renderer.toneMappingExposure,this.ptRenderer.material.backgroundAlpha=0,this.ptRenderer.material.environmentBlur=0,this.ptRenderer.material.bounces=6,this.ptRenderer.material.transmissiveBounces=8,this.ptRenderer.alpha=!0,this.fsQuad=new br(new Kn({map:this.ptRenderer.target.texture,blending:Dv})),this.controls.addEventListener("change",()=>{this.sampleCount=0,this.ptRenderer.reset()}),this._composer=new sq(this.renderer),this._composer.setPixelRatio(window.devicePixelRatio),this._composer.addPass(new KE(this.scene,this.camera)),this._composer.addPass(new HE),this._outlinePass=new Br(new ge(window.innerWidth,window.innerHeight),this.scene,this.camera),this._outlinePass.visibleEdgeColor.set(16777215),this._outlinePass.edgeThickness=.5,this._outlinePass.hiddenEdgeColor.set("#666"),this._outlinePass.edgeStrength=3,this._outlinePass.edgeGlow=0,this._composer.addPass(this._outlinePass),this._composer.renderTarget1.texture.colorSpace=yt,this._composer.renderTarget2.texture.colorSpace=yt,this._fxaaPass=new p0(jE),this._composer.addPass(this._fxaaPass),this.scene.add(this._container),this.ticker(),this._loadEnv(),this._initEvents()}get usePathTracing(){return this._usePathTracing}set usePathTracing(e){e?(this.bodyOpacity=1,this.slots.forEach(t=>t.hide()),this.lines.hide()):(this.slots.forEach(t=>t.show()),this.lines.show(),this.opacityCache!==void 0?(this.bodyOpacity=this.opacityCache,this.opacityCache=void 0):this.bodyOpacity=1),this._usePathTracing=e,this.controls.dampingFactor=e?1:Sw,this.sampleCount=0}get slots(){return this._slots}get logos(){return this._logos}get skins(){return this._skins}get fpsAverage(){return LD(this._fpsCache)}set bodyOpacity(e){this._bodyOpacity=e,e<1?this._materialsCache.forEach(t=>{t.mat.transparent=!0,t.mat.opacity=e,t.mat.metalness=0,t.mat.roughness=1,t.mat.color=new ke("#3859be")}):this._materialsCache.forEach(t=>{t.mat.transparent=t.transparent,t.mat.opacity=t.opacity,t.mat.metalness=t.metalness,t.mat.roughness=t.roughness,t.mat.color=t.color})}get bodyOpacity(){return this._bodyOpacity}_initPane(e){const t=document.createElement("div");t.className="pane-container",e.append(t),this.pane=new ID({container:t});const i={color:"#ff0000"};this.pane.addBinding(i,"color"),this.pane.on("change",r=>{var s;if(this.usePathTracing){if(!this.face)return;this.face.material&&!Array.isArray(this.face.material)&&(this.face.material.color.set(r.value),(s=this.sceneInfo.materials.find(o=>{var a;return o.name===((a=this.face)==null?void 0:a.material.name)}))==null||s.color.set(r.value),this.ptRenderer.material.materials.updateFrom(this.sceneInfo.materials,this.sceneInfo.textures),this.sampleCount=0,this.ptRenderer.reset())}else this._container.traverse(o=>{o instanceof Jt&&(Array.isArray(o.material)?o.material.forEach(a=>{a.userData.changeColor&&(a.color.set(r.value),this._materialsCache.forEach((l,u)=>{u===a.uuid&&l.color.set(r.value)}))}):o.material.userData.changeColor&&(o.material.color.set(r.value),this._materialsCache.forEach((a,l)=>{l===o.material.uuid&&a.color.set(r.value)})))})})}showState(){this.stats.dom.style.display="block"}hideState(){this.stats.dom.style.display="none"}_loadEnv(){new IE(new e0).load(W7,t=>{t.mapping=Gh,t.minFilter=ht,t.magFilter=ht,t.colorSpace=yt,t.needsUpdate=!0,this._usePathTracing||(this.scene.environment=t),this.ptRenderer.material.envMapInfo.updateFrom(t),this.ptRenderer.reset()},()=>{},()=>{})}_initEvents(){this.renderer.domElement.addEventListener("pointermove",this._pointermove),this.renderer.domElement.addEventListener("pointerdown",this._pointerdown)}addLogo(e){const t=Y7.load(e);t.flipY=!1,t.colorSpace=yt,this._container.traverse(i=>{var r;i.name.startsWith("LOGO")&&i instanceof Jt&&i.material&&(Array.isArray(i.material)?i.material.forEach(s=>{var o;(o=s.material.map)==null||o.dispose(),s.map=t}):((r=i.material.map)==null||r.dispose(),i.material.map=t))})}async generateBVH(){this.slots.forEach(u=>u.hide()),this.lines.hide(),this.opacityCache=this.bodyOpacity,this.bodyOpacity=1;const e=new nq;this._container.updateMatrixWorld();const{bvh:t,textures:i,materials:r,lights:s}=await e.generate(this._container);this.sceneInfo={materials:r,textures:i};const o=t.geometry,a=this.ptRenderer.material;a.bvh.updateFrom(t),a.attributesArray.updateFrom(o.attributes.normal,o.attributes.tangent,o.attributes.uv,o.attributes.color),a.materialIndexAttribute.updateFrom(o.attributes.materialIndex);const l=window.devicePixelRatio||1;a.textures.setTextures(this.renderer,1024*l,1024*l,i),a.materials.updateFrom(r,i),a.lights.updateFrom(s),a.lightCount=s.length,this.ptRenderer.material.materials.updateFrom(this.sceneInfo.materials,this.sceneInfo.textures),this.ptRenderer.reset(),this.sampleCount=0,e.dispose(),this.usePathTracing=!0}download(){const e=this.renderer.domElement.toDataURL("image/png"),t=document.createElement("a");t.href=e,t.download="transparent-background-object.png",document.body.appendChild(t),t.click(),document.body.removeChild(t)}async addAMR(e){if(!e.endsWith(".sglb"))return console.error("Not valid amr file url.");const i=await new ym({useCache:!0}).loadAsync(e);if(!i.glb)return;const r=i.glb.clone(!0);r.traverse(l=>{if(l instanceof Jt&&(l.material&&(Array.isArray(l.material)||l.material.userData.changeColor&&(this.face=l,this._skins.push({name:l.material.userData.name,target:l}))),l.userData.isLOGO&&(l.material.transparent=!0,this._logos.push({name:l.userData.name,target:l}))),l.name.startsWith("Slot")){const u=l.userData.name;if(u&&l.userData.isSlot){const d=new Q_({name:u,slot:l});d.addEventListener("slot-on-drop",h=>{this.props.useSound&&this._sound.play()}),this.slots.push(d),l.add(d)}}}),r.traverse(l=>{if(l instanceof Jt&&l.material)if(Array.isArray(l.material))l.material.forEach(d=>{this._materialsCache.set(d.uuid,{opacity:d.opacity,transparent:d.transparent,roughness:d.roughness,metalness:d.metalness,color:d.color,mat:d})});else{const u=l.material;this._materialsCache.set(u.uuid,{opacity:u.opacity,transparent:u.transparent,roughness:u.roughness,metalness:u.metalness,color:u.color,mat:u})}}),r.updateMatrixWorld(!0),this._container.updateMatrixWorld(),this.add(r);const s=new qt;s.setFromObject(this._container);const o=new O;s.getSize(o);const a=Math.max(o.x,o.y,o.z);this.controls.minDistance=a*2/3,this.controls.maxDistance=a*2}select(e){typeof e=="string"||(Array.isArray(e)?this._outlinePass.selectedObjects=[...e]:this._outlinePass.selectedObjects=[e])}appendTo(e){e.append(this.renderer.domElement),e.append(this.stats.dom),e.append(this.lines),e.append(this.css2dRenderer.domElement),this.stats.dom.style.bottom="0",this.stats.dom.style.top="auto",this.resize(),this._resizeObserver=new ResizeObserver(this.resize),this._resizeObserver.observe(e)}add(e){this._container.add(e)}updatePosition(){this.lines.forceUpdate()}destroy(){var t,i;this.stats.dom.remove(),this._emitter.removeAllListeners(),(t=this._fitAnimation)==null||t.stop(),this.renderer.domElement.removeEventListener("pointermove",this._pointermove);const e=this.renderer.domElement.parentElement;e&&((i=this._resizeObserver)==null||i.unobserve(e)),this.controls.dispose(),this.renderer.dispose(),this._composer.dispose(),this.scene.traverse(r=>{r instanceof Jt?(r.geometry.dispose(),Array.isArray(r.material)?r.material.forEach(s=>s.dispose()):r.material&&r.material.dispose()):r instanceof Q_&&r.dispose(),r.removeFromParent()})}}var Vs=(n=>(n[n.WEBGL_LEGACY=0]="WEBGL_LEGACY",n[n.WEBGL=1]="WEBGL",n[n.WEBGL2=2]="WEBGL2",n))(Vs||{}),Tw=(n=>(n[n.UNKNOWN=0]="UNKNOWN",n[n.WEBGL=1]="WEBGL",n[n.CANVAS=2]="CANVAS",n))(Tw||{}),Am=(n=>(n[n.COLOR=16384]="COLOR",n[n.DEPTH=256]="DEPTH",n[n.STENCIL=1024]="STENCIL",n))(Am||{}),He=(n=>(n[n.NORMAL=0]="NORMAL",n[n.ADD=1]="ADD",n[n.MULTIPLY=2]="MULTIPLY",n[n.SCREEN=3]="SCREEN",n[n.OVERLAY=4]="OVERLAY",n[n.DARKEN=5]="DARKEN",n[n.LIGHTEN=6]="LIGHTEN",n[n.COLOR_DODGE=7]="COLOR_DODGE",n[n.COLOR_BURN=8]="COLOR_BURN",n[n.HARD_LIGHT=9]="HARD_LIGHT",n[n.SOFT_LIGHT=10]="SOFT_LIGHT",n[n.DIFFERENCE=11]="DIFFERENCE",n[n.EXCLUSION=12]="EXCLUSION",n[n.HUE=13]="HUE",n[n.SATURATION=14]="SATURATION",n[n.COLOR=15]="COLOR",n[n.LUMINOSITY=16]="LUMINOSITY",n[n.NORMAL_NPM=17]="NORMAL_NPM",n[n.ADD_NPM=18]="ADD_NPM",n[n.SCREEN_NPM=19]="SCREEN_NPM",n[n.NONE=20]="NONE",n[n.SRC_OVER=0]="SRC_OVER",n[n.SRC_IN=21]="SRC_IN",n[n.SRC_OUT=22]="SRC_OUT",n[n.SRC_ATOP=23]="SRC_ATOP",n[n.DST_OVER=24]="DST_OVER",n[n.DST_IN=25]="DST_IN",n[n.DST_OUT=26]="DST_OUT",n[n.DST_ATOP=27]="DST_ATOP",n[n.ERASE=26]="ERASE",n[n.SUBTRACT=28]="SUBTRACT",n[n.XOR=29]="XOR",n))(He||{}),Bn=(n=>(n[n.POINTS=0]="POINTS",n[n.LINES=1]="LINES",n[n.LINE_LOOP=2]="LINE_LOOP",n[n.LINE_STRIP=3]="LINE_STRIP",n[n.TRIANGLES=4]="TRIANGLES",n[n.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",n[n.TRIANGLE_FAN=6]="TRIANGLE_FAN",n))(Bn||{}),re=(n=>(n[n.RGBA=6408]="RGBA",n[n.RGB=6407]="RGB",n[n.RG=33319]="RG",n[n.RED=6403]="RED",n[n.RGBA_INTEGER=36249]="RGBA_INTEGER",n[n.RGB_INTEGER=36248]="RGB_INTEGER",n[n.RG_INTEGER=33320]="RG_INTEGER",n[n.RED_INTEGER=36244]="RED_INTEGER",n[n.ALPHA=6406]="ALPHA",n[n.LUMINANCE=6409]="LUMINANCE",n[n.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",n[n.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",n[n.DEPTH_STENCIL=34041]="DEPTH_STENCIL",n))(re||{}),Ka=(n=>(n[n.TEXTURE_2D=3553]="TEXTURE_2D",n[n.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",n[n.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",n[n.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",n[n.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",n[n.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",n[n.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",n[n.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",n[n.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",n))(Ka||{}),Le=(n=>(n[n.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",n[n.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",n[n.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",n[n.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",n[n.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",n[n.UNSIGNED_INT=5125]="UNSIGNED_INT",n[n.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",n[n.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",n[n.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",n[n.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",n[n.BYTE=5120]="BYTE",n[n.SHORT=5122]="SHORT",n[n.INT=5124]="INT",n[n.FLOAT=5126]="FLOAT",n[n.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",n[n.HALF_FLOAT=36193]="HALF_FLOAT",n))(Le||{}),ye=(n=>(n[n.FLOAT=0]="FLOAT",n[n.INT=1]="INT",n[n.UINT=2]="UINT",n))(ye||{}),Ar=(n=>(n[n.NEAREST=0]="NEAREST",n[n.LINEAR=1]="LINEAR",n))(Ar||{}),as=(n=>(n[n.CLAMP=33071]="CLAMP",n[n.REPEAT=10497]="REPEAT",n[n.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT",n))(as||{}),Un=(n=>(n[n.OFF=0]="OFF",n[n.POW2=1]="POW2",n[n.ON=2]="ON",n[n.ON_MANUAL=3]="ON_MANUAL",n))(Un||{}),Hi=(n=>(n[n.NPM=0]="NPM",n[n.UNPACK=1]="UNPACK",n[n.PMA=2]="PMA",n[n.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",n[n.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",n[n.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA",n))(Hi||{}),Jn=(n=>(n[n.NO=0]="NO",n[n.YES=1]="YES",n[n.AUTO=2]="AUTO",n[n.BLEND=0]="BLEND",n[n.CLEAR=1]="CLEAR",n[n.BLIT=2]="BLIT",n))(Jn||{}),Em=(n=>(n[n.AUTO=0]="AUTO",n[n.MANUAL=1]="MANUAL",n))(Em||{}),cn=(n=>(n.LOW="lowp",n.MEDIUM="mediump",n.HIGH="highp",n))(cn||{}),ni=(n=>(n[n.NONE=0]="NONE",n[n.SCISSOR=1]="SCISSOR",n[n.STENCIL=2]="STENCIL",n[n.SPRITE=3]="SPRITE",n[n.COLOR=4]="COLOR",n))(ni||{}),Vt=(n=>(n[n.NONE=0]="NONE",n[n.LOW=2]="LOW",n[n.MEDIUM=4]="MEDIUM",n[n.HIGH=8]="HIGH",n))(Vt||{}),Xn=(n=>(n[n.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",n[n.ARRAY_BUFFER=34962]="ARRAY_BUFFER",n[n.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER",n))(Xn||{});const be={ADAPTER:{createCanvas:(n,e)=>{const t=document.createElement("canvas");return t.width=n,t.height=e,t},getCanvasRenderingContext2D:()=>CanvasRenderingContext2D,getWebGLRenderingContext:()=>WebGLRenderingContext,getNavigator:()=>navigator,getBaseUrl:()=>document.baseURI??window.location.href,getFontFaceSet:()=>document.fonts,fetch:(n,e)=>fetch(n,e),parseXML:n=>new DOMParser().parseFromString(n,"text/xml")},RESOLUTION:1,CREATE_IMAGE_BITMAP:!1,ROUND_PIXELS:!1};var Lm=/iPhone/i,Cw=/iPod/i,Iw=/iPad/i,Mw=/\biOS-universal(?:.+)Mac\b/i,Om=/\bAndroid(?:.+)Mobile\b/i,Pw=/Android/i,ja=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,_c=/Silk/i,Er=/Windows Phone/i,Aw=/\bWindows(?:.+)ARM\b/i,Ew=/BlackBerry/i,Lw=/BB10/i,Ow=/Opera Mini/i,qw=/\b(CriOS|Chrome)(?:.+)Mobile/i,Dw=/Mobile(?:.+)Firefox\b/i,Rw=function(n){return typeof n<"u"&&n.platform==="MacIntel"&&typeof n.maxTouchPoints=="number"&&n.maxTouchPoints>1&&typeof MSStream>"u"};function B7(n){return function(e){return e.test(n)}}function kw(n){var e={userAgent:"",platform:"",maxTouchPoints:0};!n&&typeof navigator<"u"?e={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof n=="string"?e.userAgent=n:n&&n.userAgent&&(e={userAgent:n.userAgent,platform:n.platform,maxTouchPoints:n.maxTouchPoints||0});var t=e.userAgent,i=t.split("[FBAN");typeof i[1]<"u"&&(t=i[0]),i=t.split("Twitter"),typeof i[1]<"u"&&(t=i[0]);var r=B7(t),s={apple:{phone:r(Lm)&&!r(Er),ipod:r(Cw),tablet:!r(Lm)&&(r(Iw)||Rw(e))&&!r(Er),universal:r(Mw),device:(r(Lm)||r(Cw)||r(Iw)||r(Mw)||Rw(e))&&!r(Er)},amazon:{phone:r(ja),tablet:!r(ja)&&r(_c),device:r(ja)||r(_c)},android:{phone:!r(Er)&&r(ja)||!r(Er)&&r(Om),tablet:!r(Er)&&!r(ja)&&!r(Om)&&(r(_c)||r(Pw)),device:!r(Er)&&(r(ja)||r(_c)||r(Om)||r(Pw))||r(/\bokhttp\b/i)},windows:{phone:r(Er),tablet:r(Aw),device:r(Er)||r(Aw)},other:{blackberry:r(Ew),blackberry10:r(Lw),opera:r(Ow),firefox:r(Dw),chrome:r(qw),device:r(Ew)||r(Lw)||r(Ow)||r(Dw)||r(qw)},any:!1,phone:!1,tablet:!1};return s.any=s.apple.device||s.android.device||s.windows.device||s.other.device,s.phone=s.apple.phone||s.android.phone||s.windows.phone,s.tablet=s.apple.tablet||s.android.tablet||s.windows.tablet,s}const U7=kw.default??kw,Lr=U7(globalThis.navigator);be.RETINA_PREFIX=/@([0-9\.]+)x/,be.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT=!1;var Kw={exports:{}};(function(n){var e=Object.prototype.hasOwnProperty,t="~";function i(){}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(t=!1));function r(l,u,d){this.fn=l,this.context=u,this.once=d||!1}function s(l,u,d,h,c){if(typeof d!="function")throw new TypeError("The listener must be a function");var p=new r(d,h||l,c),m=t?t+u:u;return l._events[m]?l._events[m].fn?l._events[m]=[l._events[m],p]:l._events[m].push(p):(l._events[m]=p,l._eventsCount++),l}function o(l,u){--l._eventsCount===0?l._events=new i:delete l._events[u]}function a(){this._events=new i,this._eventsCount=0}a.prototype.eventNames=function(){var u=[],d,h;if(this._eventsCount===0)return u;for(h in d=this._events)e.call(d,h)&&u.push(t?h.slice(1):h);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(d)):u},a.prototype.listeners=function(u){var d=t?t+u:u,h=this._events[d];if(!h)return[];if(h.fn)return[h.fn];for(var c=0,p=h.length,m=new Array(p);c<p;c++)m[c]=h[c].fn;return m},a.prototype.listenerCount=function(u){var d=t?t+u:u,h=this._events[d];return h?h.fn?1:h.length:0},a.prototype.emit=function(u,d,h,c,p,m){var v=t?t+u:u;if(!this._events[v])return!1;var g=this._events[v],f=arguments.length,y,b;if(g.fn){switch(g.once&&this.removeListener(u,g.fn,void 0,!0),f){case 1:return g.fn.call(g.context),!0;case 2:return g.fn.call(g.context,d),!0;case 3:return g.fn.call(g.context,d,h),!0;case 4:return g.fn.call(g.context,d,h,c),!0;case 5:return g.fn.call(g.context,d,h,c,p),!0;case 6:return g.fn.call(g.context,d,h,c,p,m),!0}for(b=1,y=new Array(f-1);b<f;b++)y[b-1]=arguments[b];g.fn.apply(g.context,y)}else{var x=g.length,_;for(b=0;b<x;b++)switch(g[b].once&&this.removeListener(u,g[b].fn,void 0,!0),f){case 1:g[b].fn.call(g[b].context);break;case 2:g[b].fn.call(g[b].context,d);break;case 3:g[b].fn.call(g[b].context,d,h);break;case 4:g[b].fn.call(g[b].context,d,h,c);break;default:if(!y)for(_=1,y=new Array(f-1);_<f;_++)y[_-1]=arguments[_];g[b].fn.apply(g[b].context,y)}}return!0},a.prototype.on=function(u,d,h){return s(this,u,d,h,!1)},a.prototype.once=function(u,d,h){return s(this,u,d,h,!0)},a.prototype.removeListener=function(u,d,h,c){var p=t?t+u:u;if(!this._events[p])return this;if(!d)return o(this,p),this;var m=this._events[p];if(m.fn)m.fn===d&&(!c||m.once)&&(!h||m.context===h)&&o(this,p);else{for(var v=0,g=[],f=m.length;v<f;v++)(m[v].fn!==d||c&&!m[v].once||h&&m[v].context!==h)&&g.push(m[v]);g.length?this._events[p]=g.length===1?g[0]:g:o(this,p)}return this},a.prototype.removeAllListeners=function(u){var d;return u?(d=t?t+u:u,this._events[d]&&o(this,d)):(this._events=new i,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=t,a.EventEmitter=a,n.exports=a})(Kw);var J7=Kw.exports;const ph=hm(J7);var qm={exports:{}};qm.exports=wc,qm.exports.default=wc;function wc(n,e,t){t=t||2;var i=e&&e.length,r=i?e[0]*t:n.length,s=jw(n,0,r,t,!0),o=[];if(!s||s.next===s.prev)return o;var a,l,u,d,h,c,p;if(i&&(s=$7(n,e,s,t)),n.length>80*t){a=u=n[0],l=d=n[1];for(var m=t;m<r;m+=t)h=n[m],c=n[m+1],h<a&&(a=h),c<l&&(l=c),h>u&&(u=h),c>d&&(d=c);p=Math.max(u-a,d-l),p=p!==0?32767/p:0}return fh(s,o,t,a,l,p,0),o}function jw(n,e,t,i,r){var s,o;if(r===km(n,e,t,i)>0)for(s=e;s<t;s+=i)o=Gw(s,n[s],n[s+1],o);else for(s=t-i;s>=e;s-=i)o=Gw(s,n[s],n[s+1],o);return o&&Sc(o,o.next)&&(gh(o),o=o.next),o}function Qs(n,e){if(!n)return n;e||(e=n);var t=n,i;do if(i=!1,!t.steiner&&(Sc(t,t.next)||kt(t.prev,t,t.next)===0)){if(gh(t),t=e=t.prev,t===t.next)break;i=!0}else t=t.next;while(i||t!==e);return e}function fh(n,e,t,i,r,s,o){if(n){!o&&s&&rR(n,i,r,s);for(var a=n,l,u;n.prev!==n.next;){if(l=n.prev,u=n.next,s?Z7(n,i,r,s):X7(n)){e.push(l.i/t|0),e.push(n.i/t|0),e.push(u.i/t|0),gh(n),n=u.next,a=u.next;continue}if(n=u,n===a){o?o===1?(n=V7(Qs(n),e,t),fh(n,e,t,i,r,s,2)):o===2&&Q7(n,e,t,i,r,s):fh(Qs(n),e,t,i,r,s,1);break}}}}function X7(n){var e=n.prev,t=n,i=n.next;if(kt(e,t,i)>=0)return!1;for(var r=e.x,s=t.x,o=i.x,a=e.y,l=t.y,u=i.y,d=r<s?r<o?r:o:s<o?s:o,h=a<l?a<u?a:u:l<u?l:u,c=r>s?r>o?r:o:s>o?s:o,p=a>l?a>u?a:u:l>u?l:u,m=i.next;m!==e;){if(m.x>=d&&m.x<=c&&m.y>=h&&m.y<=p&&Na(r,a,s,l,o,u,m.x,m.y)&&kt(m.prev,m,m.next)>=0)return!1;m=m.next}return!0}function Z7(n,e,t,i){var r=n.prev,s=n,o=n.next;if(kt(r,s,o)>=0)return!1;for(var a=r.x,l=s.x,u=o.x,d=r.y,h=s.y,c=o.y,p=a<l?a<u?a:u:l<u?l:u,m=d<h?d<c?d:c:h<c?h:c,v=a>l?a>u?a:u:l>u?l:u,g=d>h?d>c?d:c:h>c?h:c,f=Dm(p,m,e,t,i),y=Dm(v,g,e,t,i),b=n.prevZ,x=n.nextZ;b&&b.z>=f&&x&&x.z<=y;){if(b.x>=p&&b.x<=v&&b.y>=m&&b.y<=g&&b!==r&&b!==o&&Na(a,d,l,h,u,c,b.x,b.y)&&kt(b.prev,b,b.next)>=0||(b=b.prevZ,x.x>=p&&x.x<=v&&x.y>=m&&x.y<=g&&x!==r&&x!==o&&Na(a,d,l,h,u,c,x.x,x.y)&&kt(x.prev,x,x.next)>=0))return!1;x=x.nextZ}for(;b&&b.z>=f;){if(b.x>=p&&b.x<=v&&b.y>=m&&b.y<=g&&b!==r&&b!==o&&Na(a,d,l,h,u,c,b.x,b.y)&&kt(b.prev,b,b.next)>=0)return!1;b=b.prevZ}for(;x&&x.z<=y;){if(x.x>=p&&x.x<=v&&x.y>=m&&x.y<=g&&x!==r&&x!==o&&Na(a,d,l,h,u,c,x.x,x.y)&&kt(x.prev,x,x.next)>=0)return!1;x=x.nextZ}return!0}function V7(n,e,t){var i=n;do{var r=i.prev,s=i.next.next;!Sc(r,s)&&Nw(r,i,i.next,s)&&mh(r,s)&&mh(s,r)&&(e.push(r.i/t|0),e.push(i.i/t|0),e.push(s.i/t|0),gh(i),gh(i.next),i=n=s),i=i.next}while(i!==n);return Qs(i)}function Q7(n,e,t,i,r,s){var o=n;do{for(var a=o.next.next;a!==o.prev;){if(o.i!==a.i&&aR(o,a)){var l=zw(o,a);o=Qs(o,o.next),l=Qs(l,l.next),fh(o,e,t,i,r,s,0),fh(l,e,t,i,r,s,0);return}a=a.next}o=o.next}while(o!==n)}function $7(n,e,t,i){var r=[],s,o,a,l,u;for(s=0,o=e.length;s<o;s++)a=e[s]*i,l=s<o-1?e[s+1]*i:n.length,u=jw(n,a,l,i,!1),u===u.next&&(u.steiner=!0),r.push(oR(u));for(r.sort(eR),s=0;s<r.length;s++)t=tR(r[s],t);return t}function eR(n,e){return n.x-e.x}function tR(n,e){var t=iR(n,e);if(!t)return e;var i=zw(t,n);return Qs(i,i.next),Qs(t,t.next)}function iR(n,e){var t=e,i=n.x,r=n.y,s=-1/0,o;do{if(r<=t.y&&r>=t.next.y&&t.next.y!==t.y){var a=t.x+(r-t.y)*(t.next.x-t.x)/(t.next.y-t.y);if(a<=i&&a>s&&(s=a,o=t.x<t.next.x?t:t.next,a===i))return o}t=t.next}while(t!==e);if(!o)return null;var l=o,u=o.x,d=o.y,h=1/0,c;t=o;do i>=t.x&&t.x>=u&&i!==t.x&&Na(r<d?i:s,r,u,d,r<d?s:i,r,t.x,t.y)&&(c=Math.abs(r-t.y)/(i-t.x),mh(t,n)&&(c<h||c===h&&(t.x>o.x||t.x===o.x&&nR(o,t)))&&(o=t,h=c)),t=t.next;while(t!==l);return o}function nR(n,e){return kt(n.prev,n,e.prev)<0&&kt(e.next,n,n.next)<0}function rR(n,e,t,i){var r=n;do r.z===0&&(r.z=Dm(r.x,r.y,e,t,i)),r.prevZ=r.prev,r.nextZ=r.next,r=r.next;while(r!==n);r.prevZ.nextZ=null,r.prevZ=null,sR(r)}function sR(n){var e,t,i,r,s,o,a,l,u=1;do{for(t=n,n=null,s=null,o=0;t;){for(o++,i=t,a=0,e=0;e<u&&(a++,i=i.nextZ,!!i);e++);for(l=u;a>0||l>0&&i;)a!==0&&(l===0||!i||t.z<=i.z)?(r=t,t=t.nextZ,a--):(r=i,i=i.nextZ,l--),s?s.nextZ=r:n=r,r.prevZ=s,s=r;t=i}s.nextZ=null,u*=2}while(o>1);return n}function Dm(n,e,t,i,r){return n=(n-t)*r|0,e=(e-i)*r|0,n=(n|n<<8)&16711935,n=(n|n<<4)&252645135,n=(n|n<<2)&858993459,n=(n|n<<1)&1431655765,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,n|e<<1}function oR(n){var e=n,t=n;do(e.x<t.x||e.x===t.x&&e.y<t.y)&&(t=e),e=e.next;while(e!==n);return t}function Na(n,e,t,i,r,s,o,a){return(r-o)*(e-a)>=(n-o)*(s-a)&&(n-o)*(i-a)>=(t-o)*(e-a)&&(t-o)*(s-a)>=(r-o)*(i-a)}function aR(n,e){return n.next.i!==e.i&&n.prev.i!==e.i&&!lR(n,e)&&(mh(n,e)&&mh(e,n)&&hR(n,e)&&(kt(n.prev,n,e.prev)||kt(n,e.prev,e))||Sc(n,e)&&kt(n.prev,n,n.next)>0&&kt(e.prev,e,e.next)>0)}function kt(n,e,t){return(e.y-n.y)*(t.x-e.x)-(e.x-n.x)*(t.y-e.y)}function Sc(n,e){return n.x===e.x&&n.y===e.y}function Nw(n,e,t,i){var r=Cc(kt(n,e,t)),s=Cc(kt(n,e,i)),o=Cc(kt(t,i,n)),a=Cc(kt(t,i,e));return!!(r!==s&&o!==a||r===0&&Tc(n,t,e)||s===0&&Tc(n,i,e)||o===0&&Tc(t,n,i)||a===0&&Tc(t,e,i))}function Tc(n,e,t){return e.x<=Math.max(n.x,t.x)&&e.x>=Math.min(n.x,t.x)&&e.y<=Math.max(n.y,t.y)&&e.y>=Math.min(n.y,t.y)}function Cc(n){return n>0?1:n<0?-1:0}function lR(n,e){var t=n;do{if(t.i!==n.i&&t.next.i!==n.i&&t.i!==e.i&&t.next.i!==e.i&&Nw(t,t.next,n,e))return!0;t=t.next}while(t!==n);return!1}function mh(n,e){return kt(n.prev,n,n.next)<0?kt(n,e,n.next)>=0&&kt(n,n.prev,e)>=0:kt(n,e,n.prev)<0||kt(n,n.next,e)<0}function hR(n,e){var t=n,i=!1,r=(n.x+e.x)/2,s=(n.y+e.y)/2;do t.y>s!=t.next.y>s&&t.next.y!==t.y&&r<(t.next.x-t.x)*(s-t.y)/(t.next.y-t.y)+t.x&&(i=!i),t=t.next;while(t!==n);return i}function zw(n,e){var t=new Rm(n.i,n.x,n.y),i=new Rm(e.i,e.x,e.y),r=n.next,s=e.prev;return n.next=e,e.prev=n,t.next=r,r.prev=t,i.next=t,t.prev=i,s.next=i,i.prev=s,i}function Gw(n,e,t,i){var r=new Rm(n,e,t);return i?(r.next=i.next,r.prev=i,i.next.prev=r,i.next=r):(r.prev=r,r.next=r),r}function gh(n){n.next.prev=n.prev,n.prev.next=n.next,n.prevZ&&(n.prevZ.nextZ=n.nextZ),n.nextZ&&(n.nextZ.prevZ=n.prevZ)}function Rm(n,e,t){this.i=n,this.x=e,this.y=t,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}wc.deviation=function(n,e,t,i){var r=e&&e.length,s=r?e[0]*t:n.length,o=Math.abs(km(n,0,s,t));if(r)for(var a=0,l=e.length;a<l;a++){var u=e[a]*t,d=a<l-1?e[a+1]*t:n.length;o-=Math.abs(km(n,u,d,t))}var h=0;for(a=0;a<i.length;a+=3){var c=i[a]*t,p=i[a+1]*t,m=i[a+2]*t;h+=Math.abs((n[c]-n[m])*(n[p+1]-n[c+1])-(n[c]-n[p])*(n[m+1]-n[c+1]))}return o===0&&h===0?0:Math.abs((h-o)/o)};function km(n,e,t,i){for(var r=0,s=e,o=t-i;s<t;s+=i)r+=(n[o]-n[s])*(n[s+1]+n[o+1]),o=s;return r}wc.flatten=function(n){for(var e=n[0][0].length,t={vertices:[],holes:[],dimensions:e},i=0,r=0;r<n.length;r++){for(var s=0;s<n[r].length;s++)for(var o=0;o<e;o++)t.vertices.push(n[r][s][o]);r>0&&(i+=n[r-1].length,t.holes.push(i))}return t};var uR=qm.exports;const cR=hm(uR);var Ic={exports:{}};/*! https://mths.be/punycode v1.4.1 by @mathias */Ic.exports,function(n,e){(function(t){var i=e&&!e.nodeType&&e,r=n&&!n.nodeType&&n,s=typeof Pr=="object"&⪻(s.global===s||s.window===s||s.self===s)&&(t=s);var o,a=2147483647,l=36,u=1,d=26,h=38,c=700,p=72,m=128,v="-",g=/^xn--/,f=/[^\x20-\x7E]/,y=/[\x2E\u3002\uFF0E\uFF61]/g,b={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},x=l-u,_=Math.floor,S=String.fromCharCode,T;function I(z){throw new RangeError(b[z])}function w(z,H){for(var ee=z.length,Y=[];ee--;)Y[ee]=H(z[ee]);return Y}function C(z,H){var ee=z.split("@"),Y="";ee.length>1&&(Y=ee[0]+"@",z=ee[1]),z=z.replace(y,".");var V=z.split("."),se=w(V,H).join(".");return Y+se}function D(z){for(var H=[],ee=0,Y=z.length,V,se;ee<Y;)V=z.charCodeAt(ee++),V>=55296&&V<=56319&&ee<Y?(se=z.charCodeAt(ee++),(se&64512)==56320?H.push(((V&1023)<<10)+(se&1023)+65536):(H.push(V),ee--)):H.push(V);return H}function E(z){return w(z,function(H){var ee="";return H>65535&&(H-=65536,ee+=S(H>>>10&1023|55296),H=56320|H&1023),ee+=S(H),ee}).join("")}function A(z){return z-48<10?z-22:z-65<26?z-65:z-97<26?z-97:l}function M(z,H){return z+22+75*(z<26)-((H!=0)<<5)}function R(z,H,ee){var Y=0;for(z=ee?_(z/c):z>>1,z+=_(z/H);z>x*d>>1;Y+=l)z=_(z/x);return _(Y+(x+1)*z/(z+h))}function K(z){var H=[],ee=z.length,Y,V=0,se=m,pe=p,me,Me,Ee,we,_e,G,it,Se,Ge;for(me=z.lastIndexOf(v),me<0&&(me=0),Me=0;Me<me;++Me)z.charCodeAt(Me)>=128&&I("not-basic"),H.push(z.charCodeAt(Me));for(Ee=me>0?me+1:0;Ee<ee;){for(we=V,_e=1,G=l;Ee>=ee&&I("invalid-input"),it=A(z.charCodeAt(Ee++)),(it>=l||it>_((a-V)/_e))&&I("overflow"),V+=it*_e,Se=G<=pe?u:G>=pe+d?d:G-pe,!(it<Se);G+=l)Ge=l-Se,_e>_(a/Ge)&&I("overflow"),_e*=Ge;Y=H.length+1,pe=R(V-we,Y,we==0),_(V/Y)>a-se&&I("overflow"),se+=_(V/Y),V%=Y,H.splice(V++,0,se)}return E(H)}function N(z){var H,ee,Y,V,se,pe,me,Me,Ee,we,_e,G=[],it,Se,Ge,Ke;for(z=D(z),it=z.length,H=m,ee=0,se=p,pe=0;pe<it;++pe)_e=z[pe],_e<128&&G.push(S(_e));for(Y=V=G.length,V&&G.push(v);Y<it;){for(me=a,pe=0;pe<it;++pe)_e=z[pe],_e>=H&&_e<me&&(me=_e);for(Se=Y+1,me-H>_((a-ee)/Se)&&I("overflow"),ee+=(me-H)*Se,H=me,pe=0;pe<it;++pe)if(_e=z[pe],_e<H&&++ee>a&&I("overflow"),_e==H){for(Me=ee,Ee=l;we=Ee<=se?u:Ee>=se+d?d:Ee-se,!(Me<we);Ee+=l)Ke=Me-we,Ge=l-we,G.push(S(M(we+Ke%Ge,0))),Me=_(Ke/Ge);G.push(S(M(Me,0))),se=R(ee,Se,Y==V),ee=0,++Y}++ee,++H}return G.join("")}function X(z){return C(z,function(H){return g.test(H)?K(H.slice(4).toLowerCase()):H})}function F(z){return C(z,function(H){return f.test(H)?"xn--"+N(H):H})}if(o={version:"1.4.1",ucs2:{decode:D,encode:E},decode:K,encode:N,toASCII:F,toUnicode:X},i&&r)if(n.exports==i)r.exports=o;else for(T in o)o.hasOwnProperty(T)&&(i[T]=o[T]);else t.punycode=o})(Pr)}(Ic,Ic.exports);var dR=Ic.exports,pR=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),i=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;var r=42;e[t]=r;for(t 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 s=Object.getOwnPropertySymbols(e);if(s.length!==1||s[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==r||o.enumerable!==!0)return!1}return!0},Hw=typeof Symbol<"u"&&Symbol,fR=pR,mR=function(){return typeof Hw!="function"||typeof Symbol!="function"||typeof Hw("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:fR()},Ww={foo:{}},gR=Object,vR=function(){return{__proto__:Ww}.foo===Ww.foo&&!({__proto__:null}instanceof gR)},yR="Function.prototype.bind called on incompatible ",bR=Object.prototype.toString,xR=Math.max,_R="[object Function]",Yw=function(e,t){for(var i=[],r=0;r<e.length;r+=1)i[r]=e[r];for(var s=0;s<t.length;s+=1)i[s+e.length]=t[s];return i},wR=function(e,t){for(var i=[],r=t||0,s=0;r<e.length;r+=1,s+=1)i[s]=e[r];return i},SR=function(n,e){for(var t="",i=0;i<n.length;i+=1)t+=n[i],i+1<n.length&&(t+=e);return t},TR=function(e){var t=this;if(typeof t!="function"||bR.apply(t)!==_R)throw new TypeError(yR+t);for(var i=wR(arguments,1),r,s=function(){if(this instanceof r){var d=t.apply(this,Yw(i,arguments));return Object(d)===d?d:this}return t.apply(e,Yw(i,arguments))},o=xR(0,t.length-i.length),a=[],l=0;l<o;l++)a[l]="$"+l;if(r=Function("binder","return function ("+SR(a,",")+"){ return binder.apply(this,arguments); }")(s),t.prototype){var u=function(){};u.prototype=t.prototype,r.prototype=new u,u.prototype=null}return r},CR=TR,Km=Function.prototype.bind||CR,IR=Function.prototype.call,MR=Object.prototype.hasOwnProperty,PR=Km,AR=PR.call(IR,MR),lt,za=SyntaxError,Fw=Function,Ga=TypeError,jm=function(n){try{return Fw('"use strict"; return ('+n+").constructor;")()}catch{}},$s=Object.getOwnPropertyDescriptor;if($s)try{$s({},"")}catch{$s=null}var Nm=function(){throw new Ga},ER=$s?function(){try{return arguments.callee,Nm}catch{try{return $s(arguments,"callee").get}catch{return Nm}}}():Nm,Ha=mR(),LR=vR(),hi=Object.getPrototypeOf||(LR?function(n){return n.__proto__}:null),Wa={},OR=typeof Uint8Array>"u"||!hi?lt:hi(Uint8Array),eo={"%AggregateError%":typeof AggregateError>"u"?lt:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?lt:ArrayBuffer,"%ArrayIteratorPrototype%":Ha&&hi?hi([][Symbol.iterator]()):lt,"%AsyncFromSyncIteratorPrototype%":lt,"%AsyncFunction%":Wa,"%AsyncGenerator%":Wa,"%AsyncGeneratorFunction%":Wa,"%AsyncIteratorPrototype%":Wa,"%Atomics%":typeof Atomics>"u"?lt:Atomics,"%BigInt%":typeof BigInt>"u"?lt:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?lt:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?lt:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?lt:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?lt:Float32Array,"%Float64Array%":typeof Float64Array>"u"?lt:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?lt:FinalizationRegistry,"%Function%":Fw,"%GeneratorFunction%":Wa,"%Int8Array%":typeof Int8Array>"u"?lt:Int8Array,"%Int16Array%":typeof Int16Array>"u"?lt:Int16Array,"%Int32Array%":typeof Int32Array>"u"?lt:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Ha&&hi?hi(hi([][Symbol.iterator]())):lt,"%JSON%":typeof JSON=="object"?JSON:lt,"%Map%":typeof Map>"u"?lt:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Ha||!hi?lt:hi(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?lt:Promise,"%Proxy%":typeof Proxy>"u"?lt:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?lt:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?lt:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Ha||!hi?lt:hi(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?lt:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Ha&&hi?hi(""[Symbol.iterator]()):lt,"%Symbol%":Ha?Symbol:lt,"%SyntaxError%":za,"%ThrowTypeError%":ER,"%TypedArray%":OR,"%TypeError%":Ga,"%Uint8Array%":typeof Uint8Array>"u"?lt:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?lt:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?lt:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?lt:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?lt:WeakMap,"%WeakRef%":typeof WeakRef>"u"?lt:WeakRef,"%WeakSet%":typeof WeakSet>"u"?lt:WeakSet};if(hi)try{null.error}catch(n){var qR=hi(hi(n));eo["%Error.prototype%"]=qR}var DR=function n(e){var t;if(e==="%AsyncFunction%")t=jm("async function () {}");else if(e==="%GeneratorFunction%")t=jm("function* () {}");else if(e==="%AsyncGeneratorFunction%")t=jm("async function* () {}");else if(e==="%AsyncGenerator%"){var i=n("%AsyncGeneratorFunction%");i&&(t=i.prototype)}else if(e==="%AsyncIteratorPrototype%"){var r=n("%AsyncGenerator%");r&&hi&&(t=hi(r.prototype))}return eo[e]=t,t},Bw={"%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"]},vh=Km,Mc=AR,RR=vh.call(Function.call,Array.prototype.concat),kR=vh.call(Function.apply,Array.prototype.splice),Uw=vh.call(Function.call,String.prototype.replace),Pc=vh.call(Function.call,String.prototype.slice),KR=vh.call(Function.call,RegExp.prototype.exec),jR=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,NR=/\\(\\)?/g,zR=function(e){var t=Pc(e,0,1),i=Pc(e,-1);if(t==="%"&&i!=="%")throw new za("invalid intrinsic syntax, expected closing `%`");if(i==="%"&&t!=="%")throw new za("invalid intrinsic syntax, expected opening `%`");var r=[];return Uw(e,jR,function(s,o,a,l){r[r.length]=a?Uw(l,NR,"$1"):o||s}),r},GR=function(e,t){var i=e,r;if(Mc(Bw,i)&&(r=Bw[i],i="%"+r[0]+"%"),Mc(eo,i)){var s=eo[i];if(s===Wa&&(s=DR(i)),typeof s>"u"&&!t)throw new Ga("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:i,value:s}}throw new za("intrinsic "+e+" does not exist!")},to=function(e,t){if(typeof e!="string"||e.length===0)throw new Ga("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new Ga('"allowMissing" argument must be a boolean');if(KR(/^%?[^%]*%?$/,e)===null)throw new za("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var i=zR(e),r=i.length>0?i[0]:"",s=GR("%"+r+"%",t),o=s.name,a=s.value,l=!1,u=s.alias;u&&(r=u[0],kR(i,RR([0,1],u)));for(var d=1,h=!0;d<i.length;d+=1){var c=i[d],p=Pc(c,0,1),m=Pc(c,-1);if((p==='"'||p==="'"||p==="`"||m==='"'||m==="'"||m==="`")&&p!==m)throw new za("property names with quotes must have matching quotes");if((c==="constructor"||!h)&&(l=!0),r+="."+c,o="%"+r+"%",Mc(eo,o))a=eo[o];else if(a!=null){if(!(c in a)){if(!t)throw new Ga("base intrinsic for "+e+" exists, but the property is not available.");return}if($s&&d+1>=i.length){var v=$s(a,c);h=!!v,h&&"get"in v&&!("originalValue"in v.get)?a=v.get:a=a[c]}else h=Mc(a,c),a=a[c];h&&!l&&(eo[o]=a)}}return a},Jw={exports:{}},HR=to,zm=HR("%Object.defineProperty%",!0),Gm=function(){if(zm)try{return zm({},"a",{value:1}),!0}catch{return!1}return!1};Gm.hasArrayLengthDefineBug=function(){if(!Gm())return null;try{return zm([],"length",{value:1}).length!==1}catch{return!0}};var Xw=Gm,WR=to,Ac=WR("%Object.getOwnPropertyDescriptor%",!0);if(Ac)try{Ac([],"length")}catch{Ac=null}var Zw=Ac,YR=Xw(),Hm=to,yh=YR&&Hm("%Object.defineProperty%",!0);if(yh)try{yh({},"a",{value:1})}catch{yh=!1}var FR=Hm("%SyntaxError%"),Ya=Hm("%TypeError%"),Vw=Zw,BR=function(e,t,i){if(!e||typeof e!="object"&&typeof e!="function")throw new Ya("`obj` must be an object or a function`");if(typeof t!="string"&&typeof t!="symbol")throw new Ya("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Ya("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Ya("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Ya("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Ya("`loose`, if provided, must be a boolean");var r=arguments.length>3?arguments[3]:null,s=arguments.length>4?arguments[4]:null,o=arguments.length>5?arguments[5]:null,a=arguments.length>6?arguments[6]:!1,l=!!Vw&&Vw(e,t);if(yh)yh(e,t,{configurable:o===null&&l?l.configurable:!o,enumerable:r===null&&l?l.enumerable:!r,value:i,writable:s===null&&l?l.writable:!s});else if(a||!r&&!s&&!o)e[t]=i;else throw new FR("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Qw=to,$w=BR,UR=Xw(),eS=Zw,tS=Qw("%TypeError%"),JR=Qw("%Math.floor%"),XR=function(e,t){if(typeof e!="function")throw new tS("`fn` is not a function");if(typeof t!="number"||t<0||t>4294967295||JR(t)!==t)throw new tS("`length` must be a positive 32-bit integer");var i=arguments.length>2&&!!arguments[2],r=!0,s=!0;if("length"in e&&eS){var o=eS(e,"length");o&&!o.configurable&&(r=!1),o&&!o.writable&&(s=!1)}return(r||s||!i)&&(UR?$w(e,"length",t,!0,!0):$w(e,"length",t)),e};(function(n){var e=Km,t=to,i=XR,r=t("%TypeError%"),s=t("%Function.prototype.apply%"),o=t("%Function.prototype.call%"),a=t("%Reflect.apply%",!0)||e.call(o,s),l=t("%Object.defineProperty%",!0),u=t("%Math.max%");if(l)try{l({},"a",{value:1})}catch{l=null}n.exports=function(c){if(typeof c!="function")throw new r("a function is required");var p=a(e,o,arguments);return i(p,1+u(0,c.length-(arguments.length-1)),!0)};var d=function(){return a(e,s,arguments)};l?l(n.exports,"apply",{value:d}):n.exports.apply=d})(Jw);var ZR=Jw.exports,iS=to,nS=ZR,VR=nS(iS("String.prototype.indexOf")),QR=function(e,t){var i=iS(e,!!t);return typeof i=="function"&&VR(e,".prototype.")>-1?nS(i):i};const $R=AD(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Wm=typeof Map=="function"&&Map.prototype,Ym=Object.getOwnPropertyDescriptor&&Wm?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Ec=Wm&&Ym&&typeof Ym.get=="function"?Ym.get:null,rS=Wm&&Map.prototype.forEach,Fm=typeof Set=="function"&&Set.prototype,Bm=Object.getOwnPropertyDescriptor&&Fm?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Lc=Fm&&Bm&&typeof Bm.get=="function"?Bm.get:null,sS=Fm&&Set.prototype.forEach,ek=typeof WeakMap=="function"&&WeakMap.prototype,bh=ek?WeakMap.prototype.has:null,tk=typeof WeakSet=="function"&&WeakSet.prototype,xh=tk?WeakSet.prototype.has:null,ik=typeof WeakRef=="function"&&WeakRef.prototype,oS=ik?WeakRef.prototype.deref:null,nk=Boolean.prototype.valueOf,rk=Object.prototype.toString,sk=Function.prototype.toString,ok=String.prototype.match,Um=String.prototype.slice,ls=String.prototype.replace,ak=String.prototype.toUpperCase,aS=String.prototype.toLowerCase,lS=RegExp.prototype.test,hS=Array.prototype.concat,Zn=Array.prototype.join,lk=Array.prototype.slice,uS=Math.floor,Jm=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Xm=Object.getOwnPropertySymbols,Zm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Fa=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Si=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Fa||!0)?Symbol.toStringTag:null,cS=Object.prototype.propertyIsEnumerable,dS=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(n){return n.__proto__}:null);function pS(n,e){if(n===1/0||n===-1/0||n!==n||n&&n>-1e3&&n<1e3||lS.call(/e/,e))return e;var t=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof n=="number"){var i=n<0?-uS(-n):uS(n);if(i!==n){var r=String(i),s=Um.call(e,r.length+1);return ls.call(r,t,"$&_")+"."+ls.call(ls.call(s,/([0-9]{3})/g,"$&_"),/_$/,"")}}return ls.call(e,t,"$&_")}var Vm=$R,fS=Vm.custom,mS=yS(fS)?fS:null,hk=function n(e,t,i,r){var s=t||{};if(hs(s,"quoteStyle")&&s.quoteStyle!=="single"&&s.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(hs(s,"maxStringLength")&&(typeof s.maxStringLength=="number"?s.maxStringLength<0&&s.maxStringLength!==1/0:s.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var o=hs(s,"customInspect")?s.customInspect:!0;if(typeof o!="boolean"&&o!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(hs(s,"indent")&&s.indent!==null&&s.indent!==" "&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(hs(s,"numericSeparator")&&typeof s.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=s.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 xS(e,s);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var l=String(e);return a?pS(e,l):l}if(typeof e=="bigint"){var u=String(e)+"n";return a?pS(e,u):u}var d=typeof s.depth>"u"?5:s.depth;if(typeof i>"u"&&(i=0),i>=d&&d>0&&typeof e=="object")return Qm(e)?"[Array]":"[Object]";var h=Mk(s,i);if(typeof r>"u")r=[];else if(bS(r,e)>=0)return"[Circular]";function c(A,M,R){if(M&&(r=lk.call(r),r.push(M)),R){var K={depth:s.depth};return hs(s,"quoteStyle")&&(K.quoteStyle=s.quoteStyle),n(A,K,i+1,r)}return n(A,s,i+1,r)}if(typeof e=="function"&&!vS(e)){var p=yk(e),m=Oc(e,c);return"[Function"+(p?": "+p:" (anonymous)")+"]"+(m.length>0?" { "+Zn.call(m,", ")+" }":"")}if(yS(e)){var v=Fa?ls.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):Zm.call(e);return typeof e=="object"&&!Fa?_h(v):v}if(Tk(e)){for(var g="<"+aS.call(String(e.nodeName)),f=e.attributes||[],y=0;y<f.length;y++)g+=" "+f[y].name+"="+gS(uk(f[y].value),"double",s);return g+=">",e.childNodes&&e.childNodes.length&&(g+="..."),g+="</"+aS.call(String(e.nodeName))+">",g}if(Qm(e)){if(e.length===0)return"[]";var b=Oc(e,c);return h&&!Ik(b)?"["+eg(b,h)+"]":"[ "+Zn.call(b,", ")+" ]"}if(dk(e)){var x=Oc(e,c);return!("cause"in Error.prototype)&&"cause"in e&&!cS.call(e,"cause")?"{ ["+String(e)+"] "+Zn.call(hS.call("[cause]: "+c(e.cause),x),", ")+" }":x.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+Zn.call(x,", ")+" }"}if(typeof e=="object"&&o){if(mS&&typeof e[mS]=="function"&&Vm)return Vm(e,{depth:d-i});if(o!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(bk(e)){var _=[];return rS&&rS.call(e,function(A,M){_.push(c(M,e,!0)+" => "+c(A,e))}),_S("Map",Ec.call(e),_,h)}if(wk(e)){var S=[];return sS&&sS.call(e,function(A){S.push(c(A,e))}),_S("Set",Lc.call(e),S,h)}if(xk(e))return $m("WeakMap");if(Sk(e))return $m("WeakSet");if(_k(e))return $m("WeakRef");if(fk(e))return _h(c(Number(e)));if(gk(e))return _h(c(Jm.call(e)));if(mk(e))return _h(nk.call(e));if(pk(e))return _h(c(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(e===Pr)return"{ [object globalThis] }";if(!ck(e)&&!vS(e)){var T=Oc(e,c),I=dS?dS(e)===Object.prototype:e instanceof Object||e.constructor===Object,w=e instanceof Object?"":"null prototype",C=!I&&Si&&Object(e)===e&&Si in e?Um.call(us(e),8,-1):w?"Object":"",D=I||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",E=D+(C||w?"["+Zn.call(hS.call([],C||[],w||[]),": ")+"] ":"");return T.length===0?E+"{}":h?E+"{"+eg(T,h)+"}":E+"{ "+Zn.call(T,", ")+" }"}return String(e)};function gS(n,e,t){var i=(t.quoteStyle||e)==="double"?'"':"'";return i+n+i}function uk(n){return ls.call(String(n),/"/g,""")}function Qm(n){return us(n)==="[object Array]"&&(!Si||!(typeof n=="object"&&Si in n))}function ck(n){return us(n)==="[object Date]"&&(!Si||!(typeof n=="object"&&Si in n))}function vS(n){return us(n)==="[object RegExp]"&&(!Si||!(typeof n=="object"&&Si in n))}function dk(n){return us(n)==="[object Error]"&&(!Si||!(typeof n=="object"&&Si in n))}function pk(n){return us(n)==="[object String]"&&(!Si||!(typeof n=="object"&&Si in n))}function fk(n){return us(n)==="[object Number]"&&(!Si||!(typeof n=="object"&&Si in n))}function mk(n){return us(n)==="[object Boolean]"&&(!Si||!(typeof n=="object"&&Si in n))}function yS(n){if(Fa)return n&&typeof n=="object"&&n instanceof Symbol;if(typeof n=="symbol")return!0;if(!n||typeof n!="object"||!Zm)return!1;try{return Zm.call(n),!0}catch{}return!1}function gk(n){if(!n||typeof n!="object"||!Jm)return!1;try{return Jm.call(n),!0}catch{}return!1}var vk=Object.prototype.hasOwnProperty||function(n){return n in this};function hs(n,e){return vk.call(n,e)}function us(n){return rk.call(n)}function yk(n){if(n.name)return n.name;var e=ok.call(sk.call(n),/^function\s*([\w$]+)/);return e?e[1]:null}function bS(n,e){if(n.indexOf)return n.indexOf(e);for(var t=0,i=n.length;t<i;t++)if(n[t]===e)return t;return-1}function bk(n){if(!Ec||!n||typeof n!="object")return!1;try{Ec.call(n);try{Lc.call(n)}catch{return!0}return n instanceof Map}catch{}return!1}function xk(n){if(!bh||!n||typeof n!="object")return!1;try{bh.call(n,bh);try{xh.call(n,xh)}catch{return!0}return n instanceof WeakMap}catch{}return!1}function _k(n){if(!oS||!n||typeof n!="object")return!1;try{return oS.call(n),!0}catch{}return!1}function wk(n){if(!Lc||!n||typeof n!="object")return!1;try{Lc.call(n);try{Ec.call(n)}catch{return!0}return n instanceof Set}catch{}return!1}function Sk(n){if(!xh||!n||typeof n!="object")return!1;try{xh.call(n,xh);try{bh.call(n,bh)}catch{return!0}return n instanceof WeakSet}catch{}return!1}function Tk(n){return!n||typeof n!="object"?!1:typeof HTMLElement<"u"&&n instanceof HTMLElement?!0:typeof n.nodeName=="string"&&typeof n.getAttribute=="function"}function xS(n,e){if(n.length>e.maxStringLength){var t=n.length-e.maxStringLength,i="... "+t+" more character"+(t>1?"s":"");return xS(Um.call(n,0,e.maxStringLength),e)+i}var r=ls.call(ls.call(n,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Ck);return gS(r,"single",e)}function Ck(n){var e=n.charCodeAt(0),t={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return t?"\\"+t:"\\x"+(e<16?"0":"")+ak.call(e.toString(16))}function _h(n){return"Object("+n+")"}function $m(n){return n+" { ? }"}function _S(n,e,t,i){var r=i?eg(t,i):Zn.call(t,", ");return n+" ("+e+") {"+r+"}"}function Ik(n){for(var e=0;e<n.length;e++)if(bS(n[e],`
|
|
8028
8028
|
`)>=0)return!1;return!0}function Mk(n,e){var t;if(n.indent===" ")t=" ";else if(typeof n.indent=="number"&&n.indent>0)t=Zn.call(Array(n.indent+1)," ");else return null;return{base:t,prev:Zn.call(Array(e+1),t)}}function eg(n,e){if(n.length===0)return"";var t=`
|
|
8029
8029
|
`+e.prev+e.base;return t+Zn.call(n,","+t)+`
|
|
8030
8030
|
`+e.prev}function Oc(n,e){var t=Qm(n),i=[];if(t){i.length=n.length;for(var r=0;r<n.length;r++)i[r]=hs(n,r)?e(n[r],n):""}var s=typeof Xm=="function"?Xm(n):[],o;if(Fa){o={};for(var a=0;a<s.length;a++)o["$"+s[a]]=s[a]}for(var l in n)hs(n,l)&&(t&&String(Number(l))===l&&l<n.length||Fa&&o["$"+l]instanceof Symbol||(lS.call(/[^\w$]/,l)?i.push(e(l,n)+": "+e(n[l],n)):i.push(l+": "+e(n[l],n))));if(typeof Xm=="function")for(var u=0;u<s.length;u++)cS.call(n,s[u])&&i.push("["+e(s[u])+"]: "+e(n[s[u]],n));return i}var tg=to,Ba=QR,Pk=hk,Ak=tg("%TypeError%"),qc=tg("%WeakMap%",!0),Dc=tg("%Map%",!0),Ek=Ba("WeakMap.prototype.get",!0),Lk=Ba("WeakMap.prototype.set",!0),Ok=Ba("WeakMap.prototype.has",!0),qk=Ba("Map.prototype.get",!0),Dk=Ba("Map.prototype.set",!0),Rk=Ba("Map.prototype.has",!0),ig=function(n,e){for(var t=n,i;(i=t.next)!==null;t=i)if(i.key===e)return t.next=i.next,i.next=n.next,n.next=i,i},kk=function(n,e){var t=ig(n,e);return t&&t.value},Kk=function(n,e,t){var i=ig(n,e);i?i.value=t:n.next={key:e,next:n.next,value:t}},jk=function(n,e){return!!ig(n,e)},Nk=function(){var e,t,i,r={assert:function(s){if(!r.has(s))throw new Ak("Side channel does not contain "+Pk(s))},get:function(s){if(qc&&s&&(typeof s=="object"||typeof s=="function")){if(e)return Ek(e,s)}else if(Dc){if(t)return qk(t,s)}else if(i)return kk(i,s)},has:function(s){if(qc&&s&&(typeof s=="object"||typeof s=="function")){if(e)return Ok(e,s)}else if(Dc){if(t)return Rk(t,s)}else if(i)return jk(i,s);return!1},set:function(s,o){qc&&s&&(typeof s=="object"||typeof s=="function")?(e||(e=new qc),Lk(e,s,o)):Dc?(t||(t=new Dc),Dk(t,s,o)):(i||(i={key:{},next:null}),Kk(i,s,o))}};return r},zk=String.prototype.replace,Gk=/%20/g,ng={RFC1738:"RFC1738",RFC3986:"RFC3986"},rg={default:ng.RFC3986,formatters:{RFC1738:function(n){return zk.call(n,Gk,"+")},RFC3986:function(n){return String(n)}},RFC1738:ng.RFC1738,RFC3986:ng.RFC3986},Hk=rg,sg=Object.prototype.hasOwnProperty,io=Array.isArray,Vn=function(){for(var n=[],e=0;e<256;++e)n.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return n}(),Wk=function(e){for(;e.length>1;){var t=e.pop(),i=t.obj[t.prop];if(io(i)){for(var r=[],s=0;s<i.length;++s)typeof i[s]<"u"&&r.push(i[s]);t.obj[t.prop]=r}}},wS=function(e,t){for(var i=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)typeof e[r]<"u"&&(i[r]=e[r]);return i},Yk=function n(e,t,i){if(!t)return e;if(typeof t!="object"){if(io(e))e.push(t);else if(e&&typeof e=="object")(i&&(i.plainObjects||i.allowPrototypes)||!sg.call(Object.prototype,t))&&(e[t]=!0);else return[e,t];return e}if(!e||typeof e!="object")return[e].concat(t);var r=e;return io(e)&&!io(t)&&(r=wS(e,i)),io(e)&&io(t)?(t.forEach(function(s,o){if(sg.call(e,o)){var a=e[o];a&&typeof a=="object"&&s&&typeof s=="object"?e[o]=n(a,s,i):e.push(s)}else e[o]=s}),e):Object.keys(t).reduce(function(s,o){var a=t[o];return sg.call(s,o)?s[o]=n(s[o],a,i):s[o]=a,s},r)},Fk=function(e,t){return Object.keys(t).reduce(function(i,r){return i[r]=t[r],i},e)},Bk=function(n,e,t){var i=n.replace(/\+/g," ");if(t==="iso-8859-1")return i.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(i)}catch{return i}},Uk=function(e,t,i,r,s){if(e.length===0)return e;var o=e;if(typeof e=="symbol"?o=Symbol.prototype.toString.call(e):typeof e!="string"&&(o=String(e)),i==="iso-8859-1")return escape(o).replace(/%u[0-9a-f]{4}/gi,function(d){return"%26%23"+parseInt(d.slice(2),16)+"%3B"});for(var a="",l=0;l<o.length;++l){var u=o.charCodeAt(l);if(u===45||u===46||u===95||u===126||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||s===Hk.RFC1738&&(u===40||u===41)){a+=o.charAt(l);continue}if(u<128){a=a+Vn[u];continue}if(u<2048){a=a+(Vn[192|u>>6]+Vn[128|u&63]);continue}if(u<55296||u>=57344){a=a+(Vn[224|u>>12]+Vn[128|u>>6&63]+Vn[128|u&63]);continue}l+=1,u=65536+((u&1023)<<10|o.charCodeAt(l)&1023),a+=Vn[240|u>>18]+Vn[128|u>>12&63]+Vn[128|u>>6&63]+Vn[128|u&63]}return a},Jk=function(e){for(var t=[{obj:{o:e},prop:"o"}],i=[],r=0;r<t.length;++r)for(var s=t[r],o=s.obj[s.prop],a=Object.keys(o),l=0;l<a.length;++l){var u=a[l],d=o[u];typeof d=="object"&&d!==null&&i.indexOf(d)===-1&&(t.push({obj:o,prop:u}),i.push(d))}return Wk(t),e},Xk=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},Zk=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},Vk=function(e,t){return[].concat(e,t)},Qk=function(e,t){if(io(e)){for(var i=[],r=0;r<e.length;r+=1)i.push(t(e[r]));return i}return t(e)},SS={arrayToObject:wS,assign:Fk,combine:Vk,compact:Jk,decode:Bk,encode:Uk,isBuffer:Zk,isRegExp:Xk,maybeMap:Qk,merge:Yk},TS=Nk,Rc=SS,wh=rg,$k=Object.prototype.hasOwnProperty,CS={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},Or=Array.isArray,eK=Array.prototype.push,IS=function(n,e){eK.apply(n,Or(e)?e:[e])},tK=Date.prototype.toISOString,MS=wh.default,Ti={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:Rc.encode,encodeValuesOnly:!1,format:MS,formatter:wh.formatters[MS],indices:!1,serializeDate:function(e){return tK.call(e)},skipNulls:!1,strictNullHandling:!1},iK=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},og={},nK=function n(e,t,i,r,s,o,a,l,u,d,h,c,p,m,v,g){for(var f=e,y=g,b=0,x=!1;(y=y.get(og))!==void 0&&!x;){var _=y.get(e);if(b+=1,typeof _<"u"){if(_===b)throw new RangeError("Cyclic object value");x=!0}typeof y.get(og)>"u"&&(b=0)}if(typeof l=="function"?f=l(t,f):f instanceof Date?f=h(f):i==="comma"&&Or(f)&&(f=Rc.maybeMap(f,function(K){return K instanceof Date?h(K):K})),f===null){if(s)return a&&!m?a(t,Ti.encoder,v,"key",c):t;f=""}if(iK(f)||Rc.isBuffer(f)){if(a){var S=m?t:a(t,Ti.encoder,v,"key",c);return[p(S)+"="+p(a(f,Ti.encoder,v,"value",c))]}return[p(t)+"="+p(String(f))]}var T=[];if(typeof f>"u")return T;var I;if(i==="comma"&&Or(f))m&&a&&(f=Rc.maybeMap(f,a)),I=[{value:f.length>0?f.join(",")||null:void 0}];else if(Or(l))I=l;else{var w=Object.keys(f);I=u?w.sort(u):w}for(var C=r&&Or(f)&&f.length===1?t+"[]":t,D=0;D<I.length;++D){var E=I[D],A=typeof E=="object"&&typeof E.value<"u"?E.value:f[E];if(!(o&&A===null)){var M=Or(f)?typeof i=="function"?i(C,E):C:C+(d?"."+E:"["+E+"]");g.set(e,b);var R=TS();R.set(og,g),IS(T,n(A,M,i,r,s,o,i==="comma"&&m&&Or(f)?null:a,l,u,d,h,c,p,m,v,R))}}return T},rK=function(e){if(!e)return Ti;if(e.encoder!==null&&typeof e.encoder<"u"&&typeof e.encoder!="function")throw new TypeError("Encoder has to be a function.");var t=e.charset||Ti.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 i=wh.default;if(typeof e.format<"u"){if(!$k.call(wh.formatters,e.format))throw new TypeError("Unknown format option provided.");i=e.format}var r=wh.formatters[i],s=Ti.filter;return(typeof e.filter=="function"||Or(e.filter))&&(s=e.filter),{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:Ti.addQueryPrefix,allowDots:typeof e.allowDots>"u"?Ti.allowDots:!!e.allowDots,charset:t,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:Ti.charsetSentinel,delimiter:typeof e.delimiter>"u"?Ti.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:Ti.encode,encoder:typeof e.encoder=="function"?e.encoder:Ti.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:Ti.encodeValuesOnly,filter:s,format:i,formatter:r,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:Ti.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:Ti.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:Ti.strictNullHandling}},sK=function(n,e){var t=n,i=rK(e),r,s;typeof i.filter=="function"?(s=i.filter,t=s("",t)):Or(i.filter)&&(s=i.filter,r=s);var o=[];if(typeof t!="object"||t===null)return"";var a;e&&e.arrayFormat in CS?a=e.arrayFormat:e&&"indices"in e?a=e.indices?"indices":"repeat":a="indices";var l=CS[a];if(e&&"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var u=l==="comma"&&e&&e.commaRoundTrip;r||(r=Object.keys(t)),i.sort&&r.sort(i.sort);for(var d=TS(),h=0;h<r.length;++h){var c=r[h];i.skipNulls&&t[c]===null||IS(o,nK(t[c],c,l,u,i.strictNullHandling,i.skipNulls,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.format,i.formatter,i.encodeValuesOnly,i.charset,d))}var p=o.join(i.delimiter),m=i.addQueryPrefix===!0?"?":"";return i.charsetSentinel&&(i.charset==="iso-8859-1"?m+="utf8=%26%2310003%3B&":m+="utf8=%E2%9C%93&"),p.length>0?m+p:""},Ua=SS,ag=Object.prototype.hasOwnProperty,oK=Array.isArray,ui={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:Ua.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},aK=function(n){return n.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},PS=function(n,e){return n&&typeof n=="string"&&e.comma&&n.indexOf(",")>-1?n.split(","):n},lK="utf8=%26%2310003%3B",hK="utf8=%E2%9C%93",uK=function(e,t){var i={__proto__:null},r=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,s=t.parameterLimit===1/0?void 0:t.parameterLimit,o=r.split(t.delimiter,s),a=-1,l,u=t.charset;if(t.charsetSentinel)for(l=0;l<o.length;++l)o[l].indexOf("utf8=")===0&&(o[l]===hK?u="utf-8":o[l]===lK&&(u="iso-8859-1"),a=l,l=o.length);for(l=0;l<o.length;++l)if(l!==a){var d=o[l],h=d.indexOf("]="),c=h===-1?d.indexOf("="):h+1,p,m;c===-1?(p=t.decoder(d,ui.decoder,u,"key"),m=t.strictNullHandling?null:""):(p=t.decoder(d.slice(0,c),ui.decoder,u,"key"),m=Ua.maybeMap(PS(d.slice(c+1),t),function(v){return t.decoder(v,ui.decoder,u,"value")})),m&&t.interpretNumericEntities&&u==="iso-8859-1"&&(m=aK(m)),d.indexOf("[]=")>-1&&(m=oK(m)?[m]:m),ag.call(i,p)?i[p]=Ua.combine(i[p],m):i[p]=m}return i},cK=function(n,e,t,i){for(var r=i?e:PS(e,t),s=n.length-1;s>=0;--s){var o,a=n[s];if(a==="[]"&&t.parseArrays)o=[].concat(r);else{o=t.plainObjects?Object.create(null):{};var l=a.charAt(0)==="["&&a.charAt(a.length-1)==="]"?a.slice(1,-1):a,u=parseInt(l,10);!t.parseArrays&&l===""?o={0:r}:!isNaN(u)&&a!==l&&String(u)===l&&u>=0&&t.parseArrays&&u<=t.arrayLimit?(o=[],o[u]=r):l!=="__proto__"&&(o[l]=r)}r=o}return r},dK=function(e,t,i,r){if(e){var s=i.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,o=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,l=i.depth>0&&o.exec(s),u=l?s.slice(0,l.index):s,d=[];if(u){if(!i.plainObjects&&ag.call(Object.prototype,u)&&!i.allowPrototypes)return;d.push(u)}for(var h=0;i.depth>0&&(l=a.exec(s))!==null&&h<i.depth;){if(h+=1,!i.plainObjects&&ag.call(Object.prototype,l[1].slice(1,-1))&&!i.allowPrototypes)return;d.push(l[1])}return l&&d.push("["+s.slice(l.index)+"]"),cK(d,t,i,r)}},pK=function(e){if(!e)return ui;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 t=typeof e.charset>"u"?ui.charset:e.charset;return{allowDots:typeof e.allowDots>"u"?ui.allowDots:!!e.allowDots,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:ui.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:ui.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:ui.arrayLimit,charset:t,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:ui.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:ui.comma,decoder:typeof e.decoder=="function"?e.decoder:ui.decoder,delimiter:typeof e.delimiter=="string"||Ua.isRegExp(e.delimiter)?e.delimiter:ui.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:ui.depth,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:ui.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:ui.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:ui.plainObjects,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:ui.strictNullHandling}},fK=function(n,e){var t=pK(e);if(n===""||n===null||typeof n>"u")return t.plainObjects?Object.create(null):{};for(var i=typeof n=="string"?uK(n,t):n,r=t.plainObjects?Object.create(null):{},s=Object.keys(i),o=0;o<s.length;++o){var a=s[o],l=dK(a,i[a],t,typeof n=="string");r=Ua.merge(r,l,t)}return t.allowSparse===!0?r:Ua.compact(r)},mK=sK,gK=fK,vK=rg,yK={formats:vK,parse:gK,stringify:mK},bK=dR;function qr(){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 xK=/^([a-z0-9.+-]+:)/i,_K=/:[0-9]*$/,wK=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,SK=["<",">",'"',"`"," ","\r",`
|
package/dist/style.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.slot-item{pointer-events:auto;cursor:pointer;font-size:12px;color:#fff;width:12px;height:12px;background:#fff0;border:1px solid #fff;border-radius:50%;transition:background .2s,width .14s,height .14s,border .14s}.slot-item.disable{cursor:not-allowed}.slot-item.hidden{display:none}.slot-item.drag-over{border-color:red}.slot-item.can-install{position:relative;width:34px;height:34px;background:#0066ff1a;border-color:#06f}.slot-item.filled{border-color:#00ff95}.slot-item:hover{background:#ffffff80}.slot-item:hover:after{pointer-events:auto;transition:all .2s ease-in-out;opacity:1;transform:translate3d(-50%,-4px,0)}.slot-item:after{pointer-events:none;content:attr(data-name);transition:all .2s .3s;opacity:0;position:absolute;left:50%;bottom:100%;transform:translate3d(-50%,5px,0);white-space:nowrap;font-size:12px;color:#000;padding:2px 8px;border-radius:2px;background:#fff}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "shop-components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"description": "Shop components",
|
|
5
5
|
"main": "dist/shop-components.umd.js",
|
|
6
6
|
"module": "dist/shop-components.mjs",
|
|
@@ -47,6 +47,7 @@
|
|
|
47
47
|
"pixi-viewport": "^5.0.2",
|
|
48
48
|
"pixi.js": "^7.4.0",
|
|
49
49
|
"stats-fps.js": "0.0.6",
|
|
50
|
+
"stylus": "^0.63.0",
|
|
50
51
|
"three-gpu-pathtracer": "^0.0.17",
|
|
51
52
|
"three-mesh-bvh": "^0.7.0",
|
|
52
53
|
"tweakpane": "^4.0.3",
|