(this["webpackJsonp"]=this["webpackJsonp"]||[]).push([["chunk-vendors"],{"00ee":function(e,t,n){var r=n("b622"),i=r("toStringTag"),a={};a[i]="z",e.exports="[object z]"===String(a)},"0366":function(e,t,n){var r=n("4625"),i=n("59ed"),a=n("40d5"),s=r(r.bind);e.exports=function(e,t){return i(e),void 0===t?e:a?s(e,t):function(){return e.apply(t,arguments)}}},"04f8":function(e,t,n){var r=n("2d00"),i=n("d039");e.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},"06cf":function(e,t,n){var r=n("83ab"),i=n("c65b"),a=n("d1e7"),s=n("5c6c"),o=n("fc6a"),A=n("a04b"),l=n("1a2d"),c=n("0cfb"),u=Object.getOwnPropertyDescriptor;t.f=r?u:function(e,t){if(e=o(e),t=A(t),c)try{return u(e,t)}catch(n){}if(l(e,t))return s(!i(a.f,e,t),e[t])}},"07fa":function(e,t,n){var r=n("50c4");e.exports=function(e){return r(e.length)}},"0c12":function(e,t,n){"use strict";n.d(t,"a",(function(){return dt})),n.d(t,"b",(function(){return gt})),n.d(t,"c",(function(){return Te})),n.d(t,"d",(function(){return xe})),n.d(t,"e",(function(){return be})),n.d(t,"f",(function(){return y})),n.d(t,"g",(function(){return ge})),n.d(t,"h",(function(){return le})),n.d(t,"i",(function(){return Dt}));var r=n("5a89"),i="#include \n#define packFloatToRGBA(v) packDepthToRGBA(v)\n#define unpackRGBAToFloat(v) unpackRGBAToDepth(v)\nuniform lowp sampler2D luminanceBuffer0;uniform lowp sampler2D luminanceBuffer1;uniform float minLuminance;uniform float deltaTime;uniform float tau;varying vec2 vUv;void main(){float l0=unpackRGBAToFloat(texture2D(luminanceBuffer0,vUv));\n#if __VERSION__ < 300\nfloat l1=texture2DLodEXT(luminanceBuffer1,vUv,MIP_LEVEL_1X1).r;\n#else\nfloat l1=textureLod(luminanceBuffer1,vUv,MIP_LEVEL_1X1).r;\n#endif\nl0=max(minLuminance,l0);l1=max(minLuminance,l1);float adaptedLum=l0+(l1-l0)*(1.0-exp(-deltaTime*tau));gl_FragColor=(adaptedLum==1.0)?vec4(1.0):packFloatToRGBA(adaptedLum);}",a="varying vec2 vUv;void main(){vUv=position.xy*0.5+0.5;gl_Position=vec4(position.xy,1.0,1.0);}",s=(r["lb"],"#ifdef FRAMEBUFFER_PRECISION_HIGH\nuniform mediump sampler2D inputBuffer;\n#else\nuniform lowp sampler2D inputBuffer;\n#endif\n#if PASS == 1\nuniform vec4 kernel64[32];\n#else\nuniform vec4 kernel16[8];\n#endif\nuniform lowp sampler2D cocBuffer;uniform vec2 texelSize;uniform float scale;varying vec2 vUv;void main(){\n#ifdef FOREGROUND\nvec2 CoCNearFar=texture2D(cocBuffer,vUv).rg;float CoC=CoCNearFar.r*scale;\n#else\nfloat CoC=texture2D(cocBuffer,vUv).g*scale;\n#endif\nif(CoC==0.0){gl_FragColor=texture2D(inputBuffer,vUv);}else{\n#ifdef FOREGROUND\nvec2 step=texelSize*max(CoC,CoCNearFar.g*scale);\n#else\nvec2 step=texelSize*CoC;\n#endif\n#if PASS == 1\nvec4 acc=vec4(0.0);for(int i=0;i<32;++i){vec4 kernel=kernel64[i];vec2 uv=step*kernel.xy+vUv;acc+=texture2D(inputBuffer,uv);uv=step*kernel.zw+vUv;acc+=texture2D(inputBuffer,uv);}gl_FragColor=acc/64.0;\n#else\nvec4 maxValue=texture2D(inputBuffer,vUv);for(int i=0;i<8;++i){vec4 kernel=kernel16[i];vec2 uv=step*kernel.xy+vUv;maxValue=max(texture2D(inputBuffer,uv),maxValue);uv=step*kernel.zw+vUv;maxValue=max(texture2D(inputBuffer,uv),maxValue);}gl_FragColor=maxValue;\n#endif\n}}"); /** * postprocessing v6.29.1 build Thu Oct 27 2022 * https://github.com/pmndrs/postprocessing * Copyright 2015-2022 Raoul van RĂ¼schen * @license Zlib */r["lb"];function o(e,t,n){return e*(t-n)-t}function A(e,t,n){return Math.min(Math.max((e+t)/(t-n),0),1)}var l="#ifdef FRAMEBUFFER_PRECISION_HIGH\nuniform mediump sampler2D inputBuffer;\n#else\nuniform lowp sampler2D inputBuffer;\n#endif\n#ifdef BILATERAL\n#include \nuniform vec2 cameraNearFar;\n#ifdef NORMAL_DEPTH\n#ifdef GL_FRAGMENT_PRECISION_HIGH\nuniform highp sampler2D normalDepthBuffer;\n#else\nuniform mediump sampler2D normalDepthBuffer;\n#endif\nfloat readDepth(const in vec2 uv){return texture2D(normalDepthBuffer,uv).a;}\n#else\n#if DEPTH_PACKING == 3201\nuniform lowp sampler2D depthBuffer;\n#elif defined(GL_FRAGMENT_PRECISION_HIGH)\nuniform highp sampler2D depthBuffer;\n#else\nuniform mediump sampler2D depthBuffer;\n#endif\nfloat readDepth(const in vec2 uv){\n#if DEPTH_PACKING == 3201\nreturn unpackRGBAToDepth(texture2D(depthBuffer,uv));\n#else\nreturn texture2D(depthBuffer,uv).r;\n#endif\n}\n#endif\nfloat getViewZ(const in float depth){\n#ifdef PERSPECTIVE_CAMERA\nreturn perspectiveDepthToViewZ(depth,cameraNearFar.x,cameraNearFar.y);\n#else\nreturn orthographicDepthToViewZ(depth,cameraNearFar.x,cameraNearFar.y);\n#endif\n}\n#ifdef PERSPECTIVE_CAMERA\n#define linearDepth(v) viewZToOrthographicDepth(getViewZ(readDepth(v)), cameraNearFar.x, cameraNearFar.y)\n#else\n#define linearDepth(v) readDepth(v)\n#endif\n#endif\n#define getTexel(v) texture2D(inputBuffer, v)\n#if KERNEL_SIZE == 3\nvarying vec2 vUv00,vUv01,vUv02;varying vec2 vUv03,vUv04,vUv05;varying vec2 vUv06,vUv07,vUv08;\n#elif KERNEL_SIZE == 5 && MAX_VARYING_VECTORS >= 13\nvarying vec2 vUv00,vUv01,vUv02,vUv03,vUv04;varying vec2 vUv05,vUv06,vUv07,vUv08,vUv09;varying vec2 vUv10,vUv11,vUv12,vUv13,vUv14;varying vec2 vUv15,vUv16,vUv17,vUv18,vUv19;varying vec2 vUv20,vUv21,vUv22,vUv23,vUv24;\n#else\nuniform vec2 texelSize;uniform float scale;varying vec2 vUv;\n#endif\nvoid main(){\n#if KERNEL_SIZE == 3\nvec4 c[]=vec4[KERNEL_SIZE_SQ](getTexel(vUv00),getTexel(vUv01),getTexel(vUv02),getTexel(vUv03),getTexel(vUv04),getTexel(vUv05),getTexel(vUv06),getTexel(vUv07),getTexel(vUv08));\n#ifdef BILATERAL\nfloat z[]=float[KERNEL_SIZE_SQ](linearDepth(vUv00),linearDepth(vUv01),linearDepth(vUv02),linearDepth(vUv03),linearDepth(vUv04),linearDepth(vUv05),linearDepth(vUv06),linearDepth(vUv07),linearDepth(vUv08));\n#endif\n#elif KERNEL_SIZE == 5 && MAX_VARYING_VECTORS >= 13\nvec4 c[]=vec4[KERNEL_SIZE_SQ](getTexel(vUv00),getTexel(vUv01),getTexel(vUv02),getTexel(vUv03),getTexel(vUv04),getTexel(vUv05),getTexel(vUv06),getTexel(vUv07),getTexel(vUv08),getTexel(vUv09),getTexel(vUv10),getTexel(vUv11),getTexel(vUv12),getTexel(vUv13),getTexel(vUv14),getTexel(vUv15),getTexel(vUv16),getTexel(vUv17),getTexel(vUv18),getTexel(vUv19),getTexel(vUv20),getTexel(vUv21),getTexel(vUv22),getTexel(vUv23),getTexel(vUv24));\n#ifdef BILATERAL\nfloat z[]=float[KERNEL_SIZE_SQ](linearDepth(vUv00),linearDepth(vUv01),linearDepth(vUv02),linearDepth(vUv03),linearDepth(vUv04),linearDepth(vUv05),linearDepth(vUv06),linearDepth(vUv07),linearDepth(vUv08),linearDepth(vUv09),linearDepth(vUv10),linearDepth(vUv11),linearDepth(vUv12),linearDepth(vUv13),linearDepth(vUv14),linearDepth(vUv15),linearDepth(vUv16),linearDepth(vUv17),linearDepth(vUv18),linearDepth(vUv19),linearDepth(vUv20),linearDepth(vUv21),linearDepth(vUv22),linearDepth(vUv23),linearDepth(vUv24));\n#endif\n#endif\nvec4 result=vec4(0.0);\n#ifdef BILATERAL\nfloat w=0.0;\n#if KERNEL_SIZE == 3 || (KERNEL_SIZE == 5 && MAX_VARYING_VECTORS >= 13)\nfloat centerDepth=z[KERNEL_SIZE_SQ_HALF];for(int i=0;i= 13)\nfor(int i=0;i= 13\nvarying vec2 vUv00,vUv01,vUv02,vUv03,vUv04;varying vec2 vUv05,vUv06,vUv07,vUv08,vUv09;varying vec2 vUv10,vUv11,vUv12,vUv13,vUv14;varying vec2 vUv15,vUv16,vUv17,vUv18,vUv19;varying vec2 vUv20,vUv21,vUv22,vUv23,vUv24;\n#else\nvarying vec2 vUv;\n#endif\nvoid main(){vec2 uv=position.xy*0.5+0.5;\n#if KERNEL_SIZE == 3\nvec2 s=texelSize*scale;vUv00=uv+s*vec2(-1.0,-1.0);vUv01=uv+s*vec2(0.0,-1.0);vUv02=uv+s*vec2(1.0,-1.0);vUv03=uv+s*vec2(-1.0,0.0);vUv04=uv;vUv05=uv+s*vec2(1.0,0.0);vUv06=uv+s*vec2(-1.0,1.0);vUv07=uv+s*vec2(0.0,1.0);vUv08=uv+s*vec2(1.0,1.0);\n#elif KERNEL_SIZE == 5\nvec2 s=texelSize*scale;vUv00=uv+s*vec2(-2.0,-2.0);vUv01=uv+s*vec2(-1.0,-2.0);vUv02=uv+s*vec2(0.0,-2.0);vUv03=uv+s*vec2(1.0,-2.0);vUv04=uv+s*vec2(2.0,-2.0);vUv05=uv+s*vec2(-2.0,-1.0);vUv06=uv+s*vec2(-1.0,-1.0);vUv07=uv+s*vec2(0.0,-1.0);vUv08=uv+s*vec2(1.0,-1.0);vUv09=uv+s*vec2(2.0,-1.0);vUv10=uv+s*vec2(-2.0,0.0);vUv11=uv+s*vec2(-1.0,0.0);vUv12=uv;vUv13=uv+s*vec2(1.0,0.0);vUv14=uv+s*vec2(2.0,0.0);vUv15=uv+s*vec2(-2.0,1.0);vUv16=uv+s*vec2(-1.0,1.0);vUv17=uv+s*vec2(0.0,1.0);vUv18=uv+s*vec2(1.0,1.0);vUv19=uv+s*vec2(2.0,1.0);vUv20=uv+s*vec2(-2.0,2.0);vUv21=uv+s*vec2(-1.0,2.0);vUv22=uv+s*vec2(0.0,2.0);vUv23=uv+s*vec2(1.0,2.0);vUv24=uv+s*vec2(2.0,2.0);\n#else\nvUv=uv;\n#endif\ngl_Position=vec4(position.xy,1.0,1.0);}",u=(r["lb"],"#include \n#include \n#ifdef GL_FRAGMENT_PRECISION_HIGH\nuniform highp sampler2D depthBuffer;\n#else\nuniform mediump sampler2D depthBuffer;\n#endif\nuniform float focusDistance;uniform float focusRange;uniform float cameraNear;uniform float cameraFar;varying vec2 vUv;float readDepth(const in vec2 uv){\n#if DEPTH_PACKING == 3201\nreturn unpackRGBAToDepth(texture2D(depthBuffer,uv));\n#else\nreturn texture2D(depthBuffer,uv).r;\n#endif\n}void main(){float depth=readDepth(vUv);\n#ifdef PERSPECTIVE_CAMERA\nfloat viewZ=perspectiveDepthToViewZ(depth,cameraNear,cameraFar);float linearDepth=viewZToOrthographicDepth(viewZ,cameraNear,cameraFar);\n#else\nfloat linearDepth=depth;\n#endif\nfloat signedDistance=linearDepth-focusDistance;float magnitude=smoothstep(0.0,focusRange,abs(signedDistance));gl_FragColor.rg=magnitude*vec2(step(signedDistance,0.0),step(0.0,signedDistance));}"),h=(r["lb"],{SKIP:9,SET:30,ADD:0,ALPHA:1,AVERAGE:2,COLOR:3,COLOR_BURN:4,COLOR_DODGE:5,DARKEN:6,DIFFERENCE:7,DIVIDE:8,DST:9,EXCLUSION:10,HARD_LIGHT:11,HARD_MIX:12,HUE:13,INVERT:14,INVERT_RGB:15,LIGHTEN:16,LINEAR_BURN:17,LINEAR_DODGE:18,LINEAR_LIGHT:19,LUMINOSITY:20,MULTIPLY:21,NEGATION:22,NORMAL:23,OVERLAY:24,PIN_LIGHT:25,REFLECT:26,SATURATION:27,SCREEN:28,SOFT_LIGHT:29,SRC:30,SUBTRACT:31,VIVID_LIGHT:32}),f={RED:0,GREEN:1,BLUE:2,ALPHA:3},d={FULL:0,SINGLE:1},p={DEFAULT:0,KEEP_MAX_DEPTH:1,DISCARD_MAX_DEPTH:2},m={DEPTH:0,LUMA:1,COLOR:2},g={NONE:0,DEPTH:1,CONVOLUTION:2},v={FRAGMENT_HEAD:"FRAGMENT_HEAD",FRAGMENT_MAIN_UV:"FRAGMENT_MAIN_UV",FRAGMENT_MAIN_IMAGE:"FRAGMENT_MAIN_IMAGE",VERTEX_HEAD:"VERTEX_HEAD",VERTEX_MAIN_SUPPORT:"VERTEX_MAIN_SUPPORT"},y={VERY_SMALL:0,SMALL:1,MEDIUM:2,LARGE:3,VERY_LARGE:4,HUGE:5},x={SCALE_UP:"lut.scaleup"},b={DISCARD:0,MULTIPLY:1,MULTIPLY_RGB_SET_ALPHA:2},w={DEFAULT:0,ESKIL:1},_="#ifdef FRAMEBUFFER_PRECISION_HIGH\nuniform mediump sampler2D inputBuffer;\n#else\nuniform lowp sampler2D inputBuffer;\n#endif\nvarying vec2 vUv0;varying vec2 vUv1;varying vec2 vUv2;varying vec2 vUv3;void main(){vec4 sum=texture2D(inputBuffer,vUv0);sum+=texture2D(inputBuffer,vUv1);sum+=texture2D(inputBuffer,vUv2);sum+=texture2D(inputBuffer,vUv3);gl_FragColor=sum*0.25;\n#include \n}",M="uniform vec4 texelSize;uniform float kernel;uniform float scale;varying vec2 vUv0;varying vec2 vUv1;varying vec2 vUv2;varying vec2 vUv3;void main(){vec2 uv=position.xy*0.5+0.5;vec2 dUv=(texelSize.xy*vec2(kernel)+texelSize.zw)*scale;vUv0=vec2(uv.x-dUv.x,uv.y+dUv.y);vUv1=vec2(uv.x+dUv.x,uv.y+dUv.y);vUv2=vec2(uv.x+dUv.x,uv.y-dUv.y);vUv3=vec2(uv.x-dUv.x,uv.y-dUv.y);gl_Position=vec4(position.xy,1.0,1.0);}",S=[new Float32Array([0,0]),new Float32Array([0,1,1]),new Float32Array([0,1,1,2]),new Float32Array([0,1,2,2,3]),new Float32Array([0,1,2,3,4,4,5]),new Float32Array([0,1,2,3,4,5,7,8,9,10])],E=class extends r["lb"]{constructor(e=new r["xb"]){super({name:"KawaseBlurMaterial",uniforms:{inputBuffer:new r["rb"](null),texelSize:new r["rb"](new r["xb"]),scale:new r["rb"](1),kernel:new r["rb"](0)},blending:r["T"],depthWrite:!1,depthTest:!1,fragmentShader:_,vertexShader:M}),this.toneMapped=!1,this.setTexelSize(e.x,e.y),this.kernelSize=y.MEDIUM}set inputBuffer(e){this.uniforms.inputBuffer.value=e}setInputBuffer(e){this.inputBuffer=e}get kernelSequence(){return S[this.kernelSize]}get scale(){return this.uniforms.scale.value}set scale(e){this.uniforms.scale.value=e}getScale(){return this.uniforms.scale.value}setScale(e){this.uniforms.scale.value=e}getKernel(){return null}get kernel(){return this.uniforms.kernel.value}set kernel(e){this.uniforms.kernel.value=e}setKernel(e){this.kernel=e}setTexelSize(e,t){this.uniforms.texelSize.value.set(e,t,.5*e,.5*t)}setSize(e,t){const n=1/e,r=1/t;this.uniforms.texelSize.value.set(n,r,.5*n,.5*r)}},C="#include \n#include \n#ifdef FRAMEBUFFER_PRECISION_HIGH\nuniform mediump sampler2D inputBuffer;\n#else\nuniform lowp sampler2D inputBuffer;\n#endif\nuniform float opacity;varying vec2 vUv;void main(){vec4 texel=texture2D(inputBuffer,vUv);gl_FragColor=opacity*texel;\n#include \n#include \n}",T=class extends r["lb"]{constructor(){super({name:"CopyMaterial",uniforms:{inputBuffer:new r["rb"](null),opacity:new r["rb"](1)},blending:r["T"],depthWrite:!1,depthTest:!1,fragmentShader:C,vertexShader:a}),this.toneMapped=!1}set inputBuffer(e){this.uniforms.inputBuffer.value=e}setInputBuffer(e){this.uniforms.inputBuffer.value=e}getOpacity(e){return this.uniforms.opacity.value}setOpacity(e){this.uniforms.opacity.value=e}},D="#include \n#include \n#ifdef GL_FRAGMENT_PRECISION_HIGH\nuniform highp sampler2D depthBuffer;\n#else\nuniform mediump sampler2D depthBuffer;\n#endif\nuniform float cameraNear;uniform float cameraFar;varying float vViewZ;varying vec4 vProjTexCoord;void main(){\n#include \nvec2 projTexCoord=(vProjTexCoord.xy/vProjTexCoord.w)*0.5+0.5;projTexCoord=clamp(projTexCoord,0.002,0.998);\n#if DEPTH_PACKING == 3201\nfloat fragCoordZ=unpackRGBAToDepth(texture2D(depthBuffer,projTexCoord));\n#else\nfloat fragCoordZ=texture2D(depthBuffer,projTexCoord).r;\n#endif\n#ifdef PERSPECTIVE_CAMERA\nfloat viewZ=perspectiveDepthToViewZ(fragCoordZ,cameraNear,cameraFar);\n#else\nfloat viewZ=orthographicDepthToViewZ(fragCoordZ,cameraNear,cameraFar);\n#endif\nfloat depthTest=(-vViewZ>-viewZ)?1.0:0.0;gl_FragColor.rg=vec2(0.0,depthTest);}",B="#include \n#include \n#include \n#include \nvarying float vViewZ;varying vec4 vProjTexCoord;void main(){\n#include \n#include \n#include \n#include \n#include \nvViewZ=mvPosition.z;vProjTexCoord=gl_Position;\n#include \n}",L=(r["lb"],"#include \nvarying vec2 vUv;\n#ifdef NORMAL_DEPTH\n#ifdef GL_FRAGMENT_PRECISION_HIGH\nuniform highp sampler2D normalDepthBuffer;\n#else\nuniform mediump sampler2D normalDepthBuffer;\n#endif\nfloat readDepth(const in vec2 uv){return texture2D(normalDepthBuffer,uv).a;}\n#else\n#if INPUT_DEPTH_PACKING == 3201\nuniform lowp sampler2D depthBuffer;\n#elif defined(GL_FRAGMENT_PRECISION_HIGH)\nuniform highp sampler2D depthBuffer;\n#else\nuniform mediump sampler2D depthBuffer;\n#endif\nfloat readDepth(const in vec2 uv){\n#if INPUT_DEPTH_PACKING == 3201\nreturn unpackRGBAToDepth(texture2D(depthBuffer,uv));\n#else\nreturn texture2D(depthBuffer,uv).r;\n#endif\n}\n#endif\nvoid main(){\n#if INPUT_DEPTH_PACKING == OUTPUT_DEPTH_PACKING\ngl_FragColor=texture2D(depthBuffer,vUv);\n#else\nfloat depth=readDepth(vUv);\n#if OUTPUT_DEPTH_PACKING == 3201\ngl_FragColor=(depth==1.0)?vec4(1.0):packDepthToRGBA(depth);\n#else\ngl_FragColor=vec4(vec3(depth),1.0);\n#endif\n#endif\n}"),I="varying vec2 vUv;\n#if DEPTH_COPY_MODE == 1\nuniform vec2 texelPosition;\n#endif\nvoid main(){\n#if DEPTH_COPY_MODE == 1\nvUv=texelPosition;\n#else\nvUv=position.xy*0.5+0.5;\n#endif\ngl_Position=vec4(position.xy,1.0,1.0);}",P=(r["lb"],"#include \n#ifdef GL_FRAGMENT_PRECISION_HIGH\nuniform highp sampler2D depthBuffer;\n#else\nuniform mediump sampler2D depthBuffer;\n#endif\n#ifdef DOWNSAMPLE_NORMALS\nuniform lowp sampler2D normalBuffer;\n#endif\nvarying vec2 vUv0;varying vec2 vUv1;varying vec2 vUv2;varying vec2 vUv3;float readDepth(const in vec2 uv){\n#if DEPTH_PACKING == 3201\nreturn unpackRGBAToDepth(texture2D(depthBuffer,uv));\n#else\nreturn texture2D(depthBuffer,uv).r;\n#endif\n}int findBestDepth(const in float samples[4]){float c=(samples[0]+samples[1]+samples[2]+samples[3])*0.25;float distances[]=float[4](abs(c-samples[0]),abs(c-samples[1]),abs(c-samples[2]),abs(c-samples[3]));float maxDistance=max(max(distances[0],distances[1]),max(distances[2],distances[3]));int remaining[3];int rejected[3];int i,j,k;for(i=0,j=0,k=0;i<4;++i){if(distances[i]\n#include \n#ifdef GL_FRAGMENT_PRECISION_HIGH\nuniform highp sampler2D depthBuffer0;uniform highp sampler2D depthBuffer1;\n#else\nuniform mediump sampler2D depthBuffer0;uniform mediump sampler2D depthBuffer1;\n#endif\nuniform sampler2D inputBuffer;uniform vec2 cameraNearFar;float getViewZ(const in float depth){\n#ifdef PERSPECTIVE_CAMERA\nreturn perspectiveDepthToViewZ(depth,cameraNearFar.x,cameraNearFar.y);\n#else\nreturn orthographicDepthToViewZ(depth,cameraNearFar.x,cameraNearFar.y);\n#endif\n}varying vec2 vUv;void main(){vec2 depth;\n#if DEPTH_PACKING_0 == 3201\ndepth.x=unpackRGBAToDepth(texture2D(depthBuffer0,vUv));\n#else\ndepth.x=texture2D(depthBuffer0,vUv).r;\n#endif\n#if DEPTH_PACKING_1 == 3201\ndepth.y=unpackRGBAToDepth(texture2D(depthBuffer1,vUv));\n#else\ndepth.y=texture2D(depthBuffer1,vUv).r;\n#endif\nbool isMaxDepth=(depth.x==1.0);\n#ifdef PERSPECTIVE_CAMERA\ndepth.x=viewZToOrthographicDepth(getViewZ(depth.x),cameraNearFar.x,cameraNearFar.y);depth.y=viewZToOrthographicDepth(getViewZ(depth.y),cameraNearFar.x,cameraNearFar.y);\n#endif\n#if DEPTH_TEST_STRATEGY == 0\nbool keep=depthTest(depth.x,depth.y);\n#elif DEPTH_TEST_STRATEGY == 1\nbool keep=isMaxDepth||depthTest(depth.x,depth.y);\n#else\nbool keep=!isMaxDepth&&depthTest(depth.x,depth.y);\n#endif\nif(keep){gl_FragColor=texture2D(inputBuffer,vUv);}else{discard;}}"),O=(r["lb"],"#ifdef FRAMEBUFFER_PRECISION_HIGH\nuniform mediump sampler2D inputBuffer;\n#else\nuniform lowp sampler2D inputBuffer;\n#endif\n#define WEIGHT_INNER 0.125\n#define WEIGHT_OUTER 0.0555555\nvarying vec2 vUv;varying vec2 vUv00;varying vec2 vUv01;varying vec2 vUv02;varying vec2 vUv03;varying vec2 vUv04;varying vec2 vUv05;varying vec2 vUv06;varying vec2 vUv07;varying vec2 vUv08;varying vec2 vUv09;varying vec2 vUv10;varying vec2 vUv11;float clampToBorder(const in vec2 uv){return float(uv.s>=0.0&&uv.s<=1.0&&uv.t>=0.0&&uv.t<=1.0);}void main(){vec4 c=vec4(0.0);vec4 w=WEIGHT_INNER*vec4(clampToBorder(vUv00),clampToBorder(vUv01),clampToBorder(vUv02),clampToBorder(vUv03));c+=w.x*texture2D(inputBuffer,vUv00);c+=w.y*texture2D(inputBuffer,vUv01);c+=w.z*texture2D(inputBuffer,vUv02);c+=w.w*texture2D(inputBuffer,vUv03);w=WEIGHT_OUTER*vec4(clampToBorder(vUv04),clampToBorder(vUv05),clampToBorder(vUv06),clampToBorder(vUv07));c+=w.x*texture2D(inputBuffer,vUv04);c+=w.y*texture2D(inputBuffer,vUv05);c+=w.z*texture2D(inputBuffer,vUv06);c+=w.w*texture2D(inputBuffer,vUv07);w=WEIGHT_OUTER*vec4(clampToBorder(vUv08),clampToBorder(vUv09),clampToBorder(vUv10),clampToBorder(vUv11));c+=w.x*texture2D(inputBuffer,vUv08);c+=w.y*texture2D(inputBuffer,vUv09);c+=w.z*texture2D(inputBuffer,vUv10);c+=w.w*texture2D(inputBuffer,vUv11);c+=WEIGHT_OUTER*texture2D(inputBuffer,vUv);gl_FragColor=c;\n#include \n}"),U="uniform vec2 texelSize;varying vec2 vUv;varying vec2 vUv00;varying vec2 vUv01;varying vec2 vUv02;varying vec2 vUv03;varying vec2 vUv04;varying vec2 vUv05;varying vec2 vUv06;varying vec2 vUv07;varying vec2 vUv08;varying vec2 vUv09;varying vec2 vUv10;varying vec2 vUv11;void main(){vUv=position.xy*0.5+0.5;vUv00=vUv+texelSize*vec2(-1.0,1.0);vUv01=vUv+texelSize*vec2(1.0,1.0);vUv02=vUv+texelSize*vec2(-1.0,-1.0);vUv03=vUv+texelSize*vec2(1.0,-1.0);vUv04=vUv+texelSize*vec2(-2.0,2.0);vUv05=vUv+texelSize*vec2(0.0,2.0);vUv06=vUv+texelSize*vec2(2.0,2.0);vUv07=vUv+texelSize*vec2(-2.0,0.0);vUv08=vUv+texelSize*vec2(2.0,0.0);vUv09=vUv+texelSize*vec2(-2.0,-2.0);vUv10=vUv+texelSize*vec2(0.0,-2.0);vUv11=vUv+texelSize*vec2(2.0,-2.0);gl_Position=vec4(position.xy,1.0,1.0);}",F=class extends r["lb"]{constructor(){super({name:"DownsamplingMaterial",uniforms:{inputBuffer:new r["rb"](null),texelSize:new r["rb"](new r["vb"])},blending:r["T"],depthWrite:!1,depthTest:!1,fragmentShader:O,vertexShader:U}),this.toneMapped=!1}set inputBuffer(e){this.uniforms.inputBuffer.value=e}setSize(e,t){this.uniforms.texelSize.value.set(1/e,1/t)}},N="varying vec2 vUv;varying vec2 vUv0;varying vec2 vUv1;\n#if THREE_REVISION < 143\n#define luminance(v) linearToRelativeLuminance(v)\n#endif\n#if EDGE_DETECTION_MODE != 0\nvarying vec2 vUv2;varying vec2 vUv3;varying vec2 vUv4;varying vec2 vUv5;\n#endif\n#if EDGE_DETECTION_MODE == 1\n#include \n#endif\n#if EDGE_DETECTION_MODE == 0 || PREDICATION_MODE == 1\n#ifdef GL_FRAGMENT_PRECISION_HIGH\nuniform highp sampler2D depthBuffer;\n#else\nuniform mediump sampler2D depthBuffer;\n#endif\nfloat readDepth(const in vec2 uv){\n#if DEPTH_PACKING == 3201\nreturn unpackRGBAToDepth(texture2D(depthBuffer,uv));\n#else\nreturn texture2D(depthBuffer,uv).r;\n#endif\n}vec3 gatherNeighbors(){float p=readDepth(vUv);float pLeft=readDepth(vUv0);float pTop=readDepth(vUv1);return vec3(p,pLeft,pTop);}\n#elif PREDICATION_MODE == 2\nuniform sampler2D predicationBuffer;vec3 gatherNeighbors(){float p=texture2D(predicationBuffer,vUv).r;float pLeft=texture2D(predicationBuffer,vUv0).r;float pTop=texture2D(predicationBuffer,vUv1).r;return vec3(p,pLeft,pTop);}\n#endif\n#if PREDICATION_MODE != 0\nvec2 calculatePredicatedThreshold(){vec3 neighbours=gatherNeighbors();vec2 delta=abs(neighbours.xx-neighbours.yz);vec2 edges=step(PREDICATION_THRESHOLD,delta);return PREDICATION_SCALE*EDGE_THRESHOLD*(1.0-PREDICATION_STRENGTH*edges);}\n#endif\n#if EDGE_DETECTION_MODE != 0\nuniform sampler2D inputBuffer;\n#endif\nvoid main(){\n#if EDGE_DETECTION_MODE == 0\nconst vec2 threshold=vec2(DEPTH_THRESHOLD);\n#elif PREDICATION_MODE != 0\nvec2 threshold=calculatePredicatedThreshold();\n#else\nconst vec2 threshold=vec2(EDGE_THRESHOLD);\n#endif\n#if EDGE_DETECTION_MODE == 0\nvec3 neighbors=gatherNeighbors();vec2 delta=abs(neighbors.xx-vec2(neighbors.y,neighbors.z));vec2 edges=step(threshold,delta);if(dot(edges,vec2(1.0))==0.0){discard;}gl_FragColor=vec4(edges,0.0,1.0);\n#elif EDGE_DETECTION_MODE == 1\nfloat l=luminance(texture2D(inputBuffer,vUv).rgb);float lLeft=luminance(texture2D(inputBuffer,vUv0).rgb);float lTop=luminance(texture2D(inputBuffer,vUv1).rgb);vec4 delta;delta.xy=abs(l-vec2(lLeft,lTop));vec2 edges=step(threshold,delta.xy);if(dot(edges,vec2(1.0))==0.0){discard;}float lRight=luminance(texture2D(inputBuffer,vUv2).rgb);float lBottom=luminance(texture2D(inputBuffer,vUv3).rgb);delta.zw=abs(l-vec2(lRight,lBottom));vec2 maxDelta=max(delta.xy,delta.zw);float lLeftLeft=luminance(texture2D(inputBuffer,vUv4).rgb);float lTopTop=luminance(texture2D(inputBuffer,vUv5).rgb);delta.zw=abs(vec2(lLeft,lTop)-vec2(lLeftLeft,lTopTop));maxDelta=max(maxDelta.xy,delta.zw);float finalDelta=max(maxDelta.x,maxDelta.y);edges.xy*=step(finalDelta,LOCAL_CONTRAST_ADAPTATION_FACTOR*delta.xy);gl_FragColor=vec4(edges,0.0,1.0);\n#elif EDGE_DETECTION_MODE == 2\nvec4 delta;vec3 c=texture2D(inputBuffer,vUv).rgb;vec3 cLeft=texture2D(inputBuffer,vUv0).rgb;vec3 t=abs(c-cLeft);delta.x=max(max(t.r,t.g),t.b);vec3 cTop=texture2D(inputBuffer,vUv1).rgb;t=abs(c-cTop);delta.y=max(max(t.r,t.g),t.b);vec2 edges=step(threshold,delta.xy);if(dot(edges,vec2(1.0))==0.0){discard;}vec3 cRight=texture2D(inputBuffer,vUv2).rgb;t=abs(c-cRight);delta.z=max(max(t.r,t.g),t.b);vec3 cBottom=texture2D(inputBuffer,vUv3).rgb;t=abs(c-cBottom);delta.w=max(max(t.r,t.g),t.b);vec2 maxDelta=max(delta.xy,delta.zw);vec3 cLeftLeft=texture2D(inputBuffer,vUv4).rgb;t=abs(c-cLeftLeft);delta.z=max(max(t.r,t.g),t.b);vec3 cTopTop=texture2D(inputBuffer,vUv5).rgb;t=abs(c-cTopTop);delta.w=max(max(t.r,t.g),t.b);maxDelta=max(maxDelta.xy,delta.zw);float finalDelta=max(maxDelta.x,maxDelta.y);edges*=step(finalDelta,LOCAL_CONTRAST_ADAPTATION_FACTOR*delta.xy);gl_FragColor=vec4(edges,0.0,1.0);\n#endif\n}",z="uniform vec2 texelSize;varying vec2 vUv;varying vec2 vUv0;varying vec2 vUv1;\n#if EDGE_DETECTION_MODE != 0\nvarying vec2 vUv2;varying vec2 vUv3;varying vec2 vUv4;varying vec2 vUv5;\n#endif\nvoid main(){vUv=position.xy*0.5+0.5;vUv0=vUv+texelSize*vec2(-1.0,0.0);vUv1=vUv+texelSize*vec2(0.0,-1.0);\n#if EDGE_DETECTION_MODE != 0\nvUv2=vUv+texelSize*vec2(1.0,0.0);vUv3=vUv+texelSize*vec2(0.0,1.0);vUv4=vUv+texelSize*vec2(-2.0,0.0);vUv5=vUv+texelSize*vec2(0.0,-2.0);\n#endif\ngl_Position=vec4(position.xy,1.0,1.0);}",H=(r["lb"],"#include \n#include \n#include \n#define packFloatToRGBA(v) packDepthToRGBA(v)\n#define unpackRGBAToFloat(v) unpackRGBAToDepth(v)\n#ifdef FRAMEBUFFER_PRECISION_HIGH\nuniform mediump sampler2D inputBuffer;\n#else\nuniform lowp sampler2D inputBuffer;\n#endif\n#if DEPTH_PACKING == 3201\nuniform lowp sampler2D depthBuffer;\n#elif defined(GL_FRAGMENT_PRECISION_HIGH)\nuniform highp sampler2D depthBuffer;\n#else\nuniform mediump sampler2D depthBuffer;\n#endif\nuniform vec2 resolution;uniform vec2 texelSize;uniform float cameraNear;uniform float cameraFar;uniform float aspect;uniform float time;varying vec2 vUv;\n#if THREE_REVISION < 143\n#define luminance(v) linearToRelativeLuminance(v)\n#endif\n#if THREE_REVISION >= 137\nvec4 sRGBToLinear(const in vec4 value){return vec4(mix(pow(value.rgb*0.9478672986+vec3(0.0521327014),vec3(2.4)),value.rgb*0.0773993808,vec3(lessThanEqual(value.rgb,vec3(0.04045)))),value.a);}\n#endif\nfloat readDepth(const in vec2 uv){\n#if DEPTH_PACKING == 3201\nreturn unpackRGBAToDepth(texture2D(depthBuffer,uv));\n#else\nreturn texture2D(depthBuffer,uv).r;\n#endif\n}float getViewZ(const in float depth){\n#ifdef PERSPECTIVE_CAMERA\nreturn perspectiveDepthToViewZ(depth,cameraNear,cameraFar);\n#else\nreturn orthographicDepthToViewZ(depth,cameraNear,cameraFar);\n#endif\n}vec3 RGBToHCV(const in vec3 RGB){vec4 P=mix(vec4(RGB.bg,-1.0,2.0/3.0),vec4(RGB.gb,0.0,-1.0/3.0),step(RGB.b,RGB.g));vec4 Q=mix(vec4(P.xyw,RGB.r),vec4(RGB.r,P.yzx),step(P.x,RGB.r));float C=Q.x-min(Q.w,Q.y);float H=abs((Q.w-Q.y)/(6.0*C+EPSILON)+Q.z);return vec3(H,C,Q.x);}vec3 RGBToHSL(const in vec3 RGB){vec3 HCV=RGBToHCV(RGB);float L=HCV.z-HCV.y*0.5;float S=HCV.y/(1.0-abs(L*2.0-1.0)+EPSILON);return vec3(HCV.x,S,L);}vec3 HueToRGB(const in float H){float R=abs(H*6.0-3.0)-1.0;float G=2.0-abs(H*6.0-2.0);float B=2.0-abs(H*6.0-4.0);return clamp(vec3(R,G,B),0.0,1.0);}vec3 HSLToRGB(const in vec3 HSL){vec3 RGB=HueToRGB(HSL.x);float C=(1.0-abs(2.0*HSL.z-1.0))*HSL.y;return(RGB-0.5)*C+HSL.z;}FRAGMENT_HEADvoid main(){FRAGMENT_MAIN_UVvec4 color0=texture2D(inputBuffer,UV);vec4 color1=vec4(0.0);FRAGMENT_MAIN_IMAGEgl_FragColor=color0;\n#ifdef ENCODE_OUTPUT\n#include \n#endif\n#include \n}"),G="uniform vec2 resolution;uniform vec2 texelSize;uniform float cameraNear;uniform float cameraFar;uniform float aspect;uniform float time;varying vec2 vUv;VERTEX_HEADvoid main(){vUv=position.xy*0.5+0.5;VERTEX_MAIN_SUPPORTgl_Position=vec4(position.xy,1.0,1.0);}",V=class extends r["lb"]{constructor(e,t,n,i,a=!1){super({name:"EffectMaterial",defines:{THREE_REVISION:r["cb"].replace(/\D+/g,""),DEPTH_PACKING:"0",ENCODE_OUTPUT:"1"},uniforms:{inputBuffer:new r["rb"](null),depthBuffer:new r["rb"](null),resolution:new r["rb"](new r["vb"]),texelSize:new r["rb"](new r["vb"]),cameraNear:new r["rb"](.3),cameraFar:new r["rb"](1e3),aspect:new r["rb"](1),time:new r["rb"](0)},blending:r["T"],depthWrite:!1,depthTest:!1,dithering:a}),this.toneMapped=!1,e&&this.setShaderParts(e),t&&this.setDefines(t),n&&this.setUniforms(n),this.copyCameraSettings(i)}set inputBuffer(e){this.uniforms.inputBuffer.value=e}setInputBuffer(e){this.uniforms.inputBuffer.value=e}get depthBuffer(){return this.uniforms.depthBuffer.value}set depthBuffer(e){this.uniforms.depthBuffer.value=e}get depthPacking(){return Number(this.defines.DEPTH_PACKING)}set depthPacking(e){this.defines.DEPTH_PACKING=e.toFixed(0),this.needsUpdate=!0}setDepthBuffer(e,t=r["d"]){this.depthBuffer=e,this.depthPacking=t}setShaderData(e){this.setShaderParts(e.shaderParts),this.setDefines(e.defines),this.setUniforms(e.uniforms),this.setExtensions(e.extensions)}setShaderParts(e){var t,n,r,i,a;return this.fragmentShader=H.replace(v.FRAGMENT_HEAD,null!=(t=e.get(v.FRAGMENT_HEAD))?t:"").replace(v.FRAGMENT_MAIN_UV,null!=(n=e.get(v.FRAGMENT_MAIN_UV))?n:"").replace(v.FRAGMENT_MAIN_IMAGE,null!=(r=e.get(v.FRAGMENT_MAIN_IMAGE))?r:""),this.vertexShader=G.replace(v.VERTEX_HEAD,null!=(i=e.get(v.VERTEX_HEAD))?i:"").replace(v.VERTEX_MAIN_SUPPORT,null!=(a=e.get(v.VERTEX_MAIN_SUPPORT))?a:""),this.needsUpdate=!0,this}setDefines(e){for(const t of e.entries())this.defines[t[0]]=t[1];return this.needsUpdate=!0,this}setUniforms(e){for(const t of e.entries())this.uniforms[t[0]]=t[1];return this}setExtensions(e){this.extensions={};for(const t of e)this.extensions[t]=!0;return this}get encodeOutput(){return void 0!==this.defines.ENCODE_OUTPUT}set encodeOutput(e){this.encodeOutput!==e&&(e?this.defines.ENCODE_OUTPUT="1":delete this.defines.ENCODE_OUTPUT,this.needsUpdate=!0)}isOutputEncodingEnabled(e){return this.encodeOutput}setOutputEncodingEnabled(e){this.encodeOutput=e}get time(){return this.uniforms.time.value}set time(e){this.uniforms.time.value=e}setDeltaTime(e){this.uniforms.time.value+=e}adoptCameraSettings(e){this.copyCameraSettings(e)}copyCameraSettings(e){e&&(this.uniforms.cameraNear.value=e.near,this.uniforms.cameraFar.value=e.far,e instanceof r["ab"]?this.defines.PERSPECTIVE_CAMERA="1":delete this.defines.PERSPECTIVE_CAMERA,this.needsUpdate=!0)}setSize(e,t){const n=this.uniforms;n.resolution.value.set(e,t),n.texelSize.value.set(1/e,1/t),n.aspect.value=e/t}static get Section(){return v}},W="#ifdef FRAMEBUFFER_PRECISION_HIGH\nuniform mediump sampler2D inputBuffer;\n#else\nuniform lowp sampler2D inputBuffer;\n#endif\nuniform vec2 kernel[STEPS];varying vec2 vOffset;varying vec2 vUv;void main(){vec4 result=texture2D(inputBuffer,vUv)*kernel[0].y;for(int i=1;i\n}",Q="uniform vec2 texelSize;uniform vec2 direction;uniform float scale;varying vec2 vOffset;varying vec2 vUv;void main(){vOffset=direction*texelSize*scale;vUv=position.xy*0.5+0.5;gl_Position=vec4(position.xy,1.0,1.0);}",j=(r["lb"],"#include \n#include \n#ifdef FRAMEBUFFER_PRECISION_HIGH\nuniform mediump sampler2D inputBuffer;\n#else\nuniform lowp sampler2D inputBuffer;\n#endif\nuniform vec2 lightPosition;uniform float exposure;uniform float decay;uniform float density;uniform float weight;uniform float clampMax;varying vec2 vUv;void main(){vec2 coord=vUv;vec2 delta=lightPosition-coord;delta*=1.0/SAMPLES_FLOAT*density;float illuminationDecay=1.0;vec4 color=vec4(0.0);for(int i=0;i\n}"),Y=(r["lb"],"#include \n#if THREE_REVISION < 143\n#define luminance(v) linearToRelativeLuminance(v)\n#endif\n#ifdef FRAMEBUFFER_PRECISION_HIGH\nuniform mediump sampler2D inputBuffer;\n#else\nuniform lowp sampler2D inputBuffer;\n#endif\n#ifdef RANGE\nuniform vec2 range;\n#elif defined(THRESHOLD)\nuniform float threshold;uniform float smoothing;\n#endif\nvarying vec2 vUv;void main(){vec4 texel=texture2D(inputBuffer,vUv);float l=luminance(texel.rgb);\n#ifdef RANGE\nfloat low=step(range.x,l);float high=step(l,range.y);l*=low*high;\n#elif defined(THRESHOLD)\nl=smoothstep(threshold,threshold+smoothing,l);\n#endif\n#ifdef COLOR\ngl_FragColor=vec4(texel.rgb*l,l);\n#else\ngl_FragColor=vec4(l);\n#endif\n}"),X=class extends r["lb"]{constructor(e=!1,t=null){super({name:"LuminanceMaterial",defines:{THREE_REVISION:r["cb"].replace(/\D+/g,"")},uniforms:{inputBuffer:new r["rb"](null),threshold:new r["rb"](0),smoothing:new r["rb"](1),range:new r["rb"](null)},blending:r["T"],depthWrite:!1,depthTest:!1,fragmentShader:Y,vertexShader:a}),this.toneMapped=!1,this.colorOutput=e,this.luminanceRange=t}set inputBuffer(e){this.uniforms.inputBuffer.value=e}setInputBuffer(e){this.uniforms.inputBuffer.value=e}get threshold(){return this.uniforms.threshold.value}set threshold(e){this.smoothing>0||e>0?this.defines.THRESHOLD="1":delete this.defines.THRESHOLD,this.uniforms.threshold.value=e}getThreshold(){return this.threshold}setThreshold(e){this.threshold=e}get smoothing(){return this.uniforms.smoothing.value}set smoothing(e){this.threshold>0||e>0?this.defines.THRESHOLD="1":delete this.defines.THRESHOLD,this.uniforms.smoothing.value=e}getSmoothingFactor(){return this.smoothing}setSmoothingFactor(e){this.smoothing=e}get useThreshold(){return this.threshold>0||this.smoothing>0}set useThreshold(e){}get colorOutput(){return void 0!==this.defines.COLOR}set colorOutput(e){e?this.defines.COLOR="1":delete this.defines.COLOR,this.needsUpdate=!0}isColorOutputEnabled(e){return this.colorOutput}setColorOutputEnabled(e){this.colorOutput=e}get useRange(){return null!==this.luminanceRange}set useRange(e){this.luminanceRange=null}get luminanceRange(){return this.uniforms.range.value}set luminanceRange(e){null!==e?this.defines.RANGE="1":delete this.defines.RANGE,this.uniforms.range.value=e,this.needsUpdate=!0}getLuminanceRange(){return this.luminanceRange}setLuminanceRange(e){this.luminanceRange=e}},q="#ifdef FRAMEBUFFER_PRECISION_HIGH\nuniform mediump sampler2D inputBuffer;\n#else\nuniform lowp sampler2D inputBuffer;\n#endif\n#ifdef MASK_PRECISION_HIGH\nuniform mediump sampler2D maskTexture;\n#else\nuniform lowp sampler2D maskTexture;\n#endif\n#if MASK_FUNCTION != 0\nuniform float strength;\n#endif\nvarying vec2 vUv;void main(){\n#if COLOR_CHANNEL == 0\nfloat mask=texture2D(maskTexture,vUv).r;\n#elif COLOR_CHANNEL == 1\nfloat mask=texture2D(maskTexture,vUv).g;\n#elif COLOR_CHANNEL == 2\nfloat mask=texture2D(maskTexture,vUv).b;\n#else\nfloat mask=texture2D(maskTexture,vUv).a;\n#endif\n#if MASK_FUNCTION == 0\n#ifdef INVERTED\nmask=step(mask,0.0);\n#else\nmask=1.0-step(mask,0.0);\n#endif\n#else\nmask=clamp(mask*strength,0.0,1.0);\n#ifdef INVERTED\nmask=1.0-mask;\n#endif\n#endif\n#if MASK_FUNCTION == 2\ngl_FragColor=vec4(mask*texture2D(inputBuffer,vUv).rgb,mask);\n#else\ngl_FragColor=mask*texture2D(inputBuffer,vUv);\n#endif\n}",Z=(r["lb"],"uniform lowp sampler2D inputBuffer;varying vec2 vUv0;varying vec2 vUv1;varying vec2 vUv2;varying vec2 vUv3;void main(){vec2 c0=texture2D(inputBuffer,vUv0).rg;vec2 c1=texture2D(inputBuffer,vUv1).rg;vec2 c2=texture2D(inputBuffer,vUv2).rg;vec2 c3=texture2D(inputBuffer,vUv3).rg;float d0=(c0.x-c1.x)*0.5;float d1=(c2.x-c3.x)*0.5;float d=length(vec2(d0,d1));float a0=min(c0.y,c1.y);float a1=min(c2.y,c3.y);float visibilityFactor=min(a0,a1);gl_FragColor.rg=(1.0-visibilityFactor>0.001)?vec2(d,0.0):vec2(0.0,d);}"),K="uniform vec2 texelSize;varying vec2 vUv0;varying vec2 vUv1;varying vec2 vUv2;varying vec2 vUv3;void main(){vec2 uv=position.xy*0.5+0.5;vUv0=vec2(uv.x+texelSize.x,uv.y);vUv1=vec2(uv.x-texelSize.x,uv.y);vUv2=vec2(uv.x,uv.y+texelSize.y);vUv3=vec2(uv.x,uv.y-texelSize.y);gl_Position=vec4(position.xy,1.0,1.0);}",J=(r["lb"],"#define sampleLevelZeroOffset(t, coord, offset) texture2D(t, coord + offset * texelSize)\n#if __VERSION__ < 300\n#define round(v) floor(v + 0.5)\n#endif\n#ifdef FRAMEBUFFER_PRECISION_HIGH\nuniform mediump sampler2D inputBuffer;\n#else\nuniform lowp sampler2D inputBuffer;\n#endif\nuniform lowp sampler2D areaTexture;uniform lowp sampler2D searchTexture;uniform vec2 texelSize;uniform vec2 resolution;varying vec2 vUv;varying vec4 vOffset[3];varying vec2 vPixCoord;void movec(const in bvec2 c,inout vec2 variable,const in vec2 value){if(c.x){variable.x=value.x;}if(c.y){variable.y=value.y;}}void movec(const in bvec4 c,inout vec4 variable,const in vec4 value){movec(c.xy,variable.xy,value.xy);movec(c.zw,variable.zw,value.zw);}vec2 decodeDiagBilinearAccess(in vec2 e){e.r=e.r*abs(5.0*e.r-5.0*0.75);return round(e);}vec4 decodeDiagBilinearAccess(in vec4 e){e.rb=e.rb*abs(5.0*e.rb-5.0*0.75);return round(e);}vec2 searchDiag1(const in vec2 texCoord,const in vec2 dir,out vec2 e){vec4 coord=vec4(texCoord,-1.0,1.0);vec3 t=vec3(texelSize,1.0);for(int i=0;i0.9)){break;}coord.xyz=t*vec3(dir,1.0)+coord.xyz;e=texture2D(inputBuffer,coord.xy).rg;coord.w=dot(e,vec2(0.5));}return coord.zw;}vec2 searchDiag2(const in vec2 texCoord,const in vec2 dir,out vec2 e){vec4 coord=vec4(texCoord,-1.0,1.0);coord.x+=0.25*texelSize.x;vec3 t=vec3(texelSize,1.0);for(int i=0;i0.9)){break;}coord.xyz=t*vec3(dir,1.0)+coord.xyz;e=texture2D(inputBuffer,coord.xy).rg;e=decodeDiagBilinearAccess(e);coord.w=dot(e,vec2(0.5));}return coord.zw;}vec2 areaDiag(const in vec2 dist,const in vec2 e,const in float offset){vec2 texCoord=vec2(AREATEX_MAX_DISTANCE_DIAG,AREATEX_MAX_DISTANCE_DIAG)*e+dist;texCoord=AREATEX_PIXEL_SIZE*texCoord+0.5*AREATEX_PIXEL_SIZE;texCoord.x+=0.5;texCoord.y+=AREATEX_SUBTEX_SIZE*offset;return texture2D(areaTexture,texCoord).rg;}vec2 calculateDiagWeights(const in vec2 texCoord,const in vec2 e,const in vec4 subsampleIndices){vec2 weights=vec2(0.0);vec4 d;vec2 end;if(e.r>0.0){d.xz=searchDiag1(texCoord,vec2(-1.0,1.0),end);d.x+=float(end.y>0.9);}else{d.xz=vec2(0.0);}d.yw=searchDiag1(texCoord,vec2(1.0,-1.0),end);if(d.x+d.y>2.0){vec4 coords=vec4(-d.x+0.25,d.x,d.y,-d.y-0.25)*texelSize.xyxy+texCoord.xyxy;vec4 c;c.xy=sampleLevelZeroOffset(inputBuffer,coords.xy,vec2(-1,0)).rg;c.zw=sampleLevelZeroOffset(inputBuffer,coords.zw,vec2(1,0)).rg;c.yxwz=decodeDiagBilinearAccess(c.xyzw);vec2 cc=vec2(2.0)*c.xz+c.yw;movec(bvec2(step(0.9,d.zw)),cc,vec2(0.0));weights+=areaDiag(d.xy,cc,subsampleIndices.z);}d.xz=searchDiag2(texCoord,vec2(-1.0,-1.0),end);if(sampleLevelZeroOffset(inputBuffer,texCoord,vec2(1,0)).r>0.0){d.yw=searchDiag2(texCoord,vec2(1.0),end);d.y+=float(end.y>0.9);}else{d.yw=vec2(0.0);}if(d.x+d.y>2.0){vec4 coords=vec4(-d.x,-d.x,d.y,d.y)*texelSize.xyxy+texCoord.xyxy;vec4 c;c.x=sampleLevelZeroOffset(inputBuffer,coords.xy,vec2(-1,0)).g;c.y=sampleLevelZeroOffset(inputBuffer,coords.xy,vec2(0,-1)).r;c.zw=sampleLevelZeroOffset(inputBuffer,coords.zw,vec2(1,0)).gr;vec2 cc=vec2(2.0)*c.xz+c.yw;movec(bvec2(step(0.9,d.zw)),cc,vec2(0.0));weights+=areaDiag(d.xy,cc,subsampleIndices.w).gr;}return weights;}float searchLength(const in vec2 e,const in float offset){vec2 scale=SEARCHTEX_SIZE*vec2(0.5,-1.0);vec2 bias=SEARCHTEX_SIZE*vec2(offset,1.0);scale+=vec2(-1.0,1.0);bias+=vec2(0.5,-0.5);scale*=1.0/SEARCHTEX_PACKED_SIZE;bias*=1.0/SEARCHTEX_PACKED_SIZE;return texture2D(searchTexture,scale*e+bias).r;}float searchXLeft(in vec2 texCoord,const in float end){vec2 e=vec2(0.0,1.0);for(int i=0;iend&&e.g>0.8281&&e.r==0.0)){break;}e=texture2D(inputBuffer,texCoord).rg;texCoord=vec2(-2.0,0.0)*texelSize+texCoord;}float offset=-(255.0/127.0)*searchLength(e,0.0)+3.25;return texelSize.x*offset+texCoord.x;}float searchXRight(vec2 texCoord,const in float end){vec2 e=vec2(0.0,1.0);for(int i=0;i0.8281&&e.r==0.0)){break;}e=texture2D(inputBuffer,texCoord).rg;texCoord=vec2(2.0,0.0)*texelSize.xy+texCoord;}float offset=-(255.0/127.0)*searchLength(e,0.5)+3.25;return-texelSize.x*offset+texCoord.x;}float searchYUp(vec2 texCoord,const in float end){vec2 e=vec2(1.0,0.0);for(int i=0;iend&&e.r>0.8281&&e.g==0.0)){break;}e=texture2D(inputBuffer,texCoord).rg;texCoord=-vec2(0.0,2.0)*texelSize.xy+texCoord;}float offset=-(255.0/127.0)*searchLength(e.gr,0.0)+3.25;return texelSize.y*offset+texCoord.y;}float searchYDown(vec2 texCoord,const in float end){vec2 e=vec2(1.0,0.0);for(int i=0;i0.8281&&e.g==0.0)){break;}e=texture2D(inputBuffer,texCoord).rg;texCoord=vec2(0.0,2.0)*texelSize.xy+texCoord;}float offset=-(255.0/127.0)*searchLength(e.gr,0.5)+3.25;return-texelSize.y*offset+texCoord.y;}vec2 area(const in vec2 dist,const in float e1,const in float e2,const in float offset){vec2 texCoord=vec2(AREATEX_MAX_DISTANCE)*round(4.0*vec2(e1,e2))+dist;texCoord=AREATEX_PIXEL_SIZE*texCoord+0.5*AREATEX_PIXEL_SIZE;texCoord.y=AREATEX_SUBTEX_SIZE*offset+texCoord.y;return texture2D(areaTexture,texCoord).rg;}void detectHorizontalCornerPattern(inout vec2 weights,const in vec4 texCoord,const in vec2 d){\n#if !defined(DISABLE_CORNER_DETECTION)\nvec2 leftRight=step(d.xy,d.yx);vec2 rounding=(1.0-CORNER_ROUNDING_NORM)*leftRight;rounding/=leftRight.x+leftRight.y;vec2 factor=vec2(1.0);factor.x-=rounding.x*sampleLevelZeroOffset(inputBuffer,texCoord.xy,vec2(0,1)).r;factor.x-=rounding.y*sampleLevelZeroOffset(inputBuffer,texCoord.zw,vec2(1,1)).r;factor.y-=rounding.x*sampleLevelZeroOffset(inputBuffer,texCoord.xy,vec2(0,-2)).r;factor.y-=rounding.y*sampleLevelZeroOffset(inputBuffer,texCoord.zw,vec2(1,-2)).r;weights*=clamp(factor,0.0,1.0);\n#endif\n}void detectVerticalCornerPattern(inout vec2 weights,const in vec4 texCoord,const in vec2 d){\n#if !defined(DISABLE_CORNER_DETECTION)\nvec2 leftRight=step(d.xy,d.yx);vec2 rounding=(1.0-CORNER_ROUNDING_NORM)*leftRight;rounding/=leftRight.x+leftRight.y;vec2 factor=vec2(1.0);factor.x-=rounding.x*sampleLevelZeroOffset(inputBuffer,texCoord.xy,vec2(1,0)).g;factor.x-=rounding.y*sampleLevelZeroOffset(inputBuffer,texCoord.zw,vec2(1,1)).g;factor.y-=rounding.x*sampleLevelZeroOffset(inputBuffer,texCoord.xy,vec2(-2,0)).g;factor.y-=rounding.y*sampleLevelZeroOffset(inputBuffer,texCoord.zw,vec2(-2,1)).g;weights*=clamp(factor,0.0,1.0);\n#endif\n}void main(){vec4 weights=vec4(0.0);vec4 subsampleIndices=vec4(0.0);vec2 e=texture2D(inputBuffer,vUv).rg;if(e.g>0.0){\n#if !defined(DISABLE_DIAG_DETECTION)\nweights.rg=calculateDiagWeights(vUv,e,subsampleIndices);if(weights.r==-weights.g){\n#endif\nvec2 d;vec3 coords;coords.x=searchXLeft(vOffset[0].xy,vOffset[2].x);coords.y=vOffset[1].y;d.x=coords.x;float e1=texture2D(inputBuffer,coords.xy).r;coords.z=searchXRight(vOffset[0].zw,vOffset[2].y);d.y=coords.z;d=round(resolution.xx*d+-vPixCoord.xx);vec2 sqrtD=sqrt(abs(d));float e2=sampleLevelZeroOffset(inputBuffer,coords.zy,vec2(1,0)).r;weights.rg=area(sqrtD,e1,e2,subsampleIndices.y);coords.y=vUv.y;detectHorizontalCornerPattern(weights.rg,coords.xyzy,d);\n#if !defined(DISABLE_DIAG_DETECTION)\n}else{e.r=0.0;}\n#endif\n}if(e.r>0.0){vec2 d;vec3 coords;coords.y=searchYUp(vOffset[1].xy,vOffset[2].z);coords.x=vOffset[0].x;d.x=coords.y;float e1=texture2D(inputBuffer,coords.xy).g;coords.z=searchYDown(vOffset[1].zw,vOffset[2].w);d.y=coords.z;d=round(resolution.yy*d-vPixCoord.yy);vec2 sqrtD=sqrt(abs(d));float e2=sampleLevelZeroOffset(inputBuffer,coords.xz,vec2(0,1)).g;weights.ba=area(sqrtD,e1,e2,subsampleIndices.x);coords.x=vUv.x;detectVerticalCornerPattern(weights.ba,coords.xyxz,d);}gl_FragColor=weights;}"),$="uniform vec2 texelSize;uniform vec2 resolution;varying vec2 vUv;varying vec4 vOffset[3];varying vec2 vPixCoord;void main(){vUv=position.xy*0.5+0.5;vPixCoord=vUv*resolution;vOffset[0]=vUv.xyxy+texelSize.xyxy*vec4(-0.25,-0.125,1.25,-0.125);vOffset[1]=vUv.xyxy+texelSize.xyxy*vec4(-0.125,-0.25,-0.125,1.25);vOffset[2]=vec4(vOffset[0].xz,vOffset[1].yw)+vec4(-2.0,2.0,-2.0,2.0)*texelSize.xxyy*MAX_SEARCH_STEPS_FLOAT;gl_Position=vec4(position.xy,1.0,1.0);}",ee=(r["lb"],"#include \n#include \n#ifdef NORMAL_DEPTH\n#ifdef GL_FRAGMENT_PRECISION_HIGH\nuniform highp sampler2D normalDepthBuffer;\n#else\nuniform mediump sampler2D normalDepthBuffer;\n#endif\nfloat readDepth(const in vec2 uv){return texture2D(normalDepthBuffer,uv).a;}\n#else\nuniform lowp sampler2D normalBuffer;\n#if DEPTH_PACKING == 3201\nuniform lowp sampler2D depthBuffer;\n#elif defined(GL_FRAGMENT_PRECISION_HIGH)\nuniform highp sampler2D depthBuffer;\n#else\nuniform mediump sampler2D depthBuffer;\n#endif\nfloat readDepth(const in vec2 uv){\n#if DEPTH_PACKING == 3201\nreturn unpackRGBAToDepth(texture2D(depthBuffer,uv));\n#else\nreturn texture2D(depthBuffer,uv).r;\n#endif\n}\n#endif\nuniform lowp sampler2D noiseTexture;uniform mat4 inverseProjectionMatrix;uniform mat4 projectionMatrix;uniform vec2 texelSize;uniform vec2 cameraNearFar;uniform float intensity;uniform float minRadiusScale;uniform float fade;uniform float bias;uniform vec2 distanceCutoff;uniform vec2 proximityCutoff;varying vec2 vUv;varying vec2 vUv2;float getViewZ(const in float depth){\n#ifdef PERSPECTIVE_CAMERA\nreturn perspectiveDepthToViewZ(depth,cameraNearFar.x,cameraNearFar.y);\n#else\nreturn orthographicDepthToViewZ(depth,cameraNearFar.x,cameraNearFar.y);\n#endif\n}vec3 getViewPosition(const in vec2 screenPosition,const in float depth,const in float viewZ){vec4 clipPosition=vec4(vec3(screenPosition,depth)*2.0-1.0,1.0);float clipW=projectionMatrix[2][3]*viewZ+projectionMatrix[3][3];clipPosition*=clipW;return(inverseProjectionMatrix*clipPosition).xyz;}float getAmbientOcclusion(const in vec3 p,const in vec3 n,const in float depth,const in vec2 uv){float radiusScale=1.0-smoothstep(0.0,distanceCutoff.y,depth);radiusScale=radiusScale*(1.0-minRadiusScale)+minRadiusScale;float radius=RADIUS*radiusScale;float noise=texture2D(noiseTexture,vUv2).r;float baseAngle=noise*PI2;float rings=SPIRAL_TURNS*PI2;float occlusion=0.0;int taps=0;for(int i=0;i1.0||coords.t<0.0||coords.t>1.0){continue;}float sampleDepth=readDepth(coords);float viewZ=getViewZ(sampleDepth);\n#ifdef PERSPECTIVE_CAMERA\nfloat linearSampleDepth=viewZToOrthographicDepth(viewZ,cameraNearFar.x,cameraNearFar.y);\n#else\nfloat linearSampleDepth=sampleDepth;\n#endif\nfloat proximity=abs(depth-linearSampleDepth);if(proximity\n}"),re="uniform vec2 texelSize;varying vec2 vUv;varying vec2 vUv0;varying vec2 vUv1;varying vec2 vUv2;varying vec2 vUv3;varying vec2 vUv4;varying vec2 vUv5;varying vec2 vUv6;varying vec2 vUv7;void main(){vUv=position.xy*0.5+0.5;vUv0=vUv+texelSize*vec2(-1.0,1.0);vUv1=vUv+texelSize*vec2(0.0,1.0);vUv2=vUv+texelSize*vec2(1.0,1.0);vUv3=vUv+texelSize*vec2(-1.0,0.0);vUv4=vUv+texelSize*vec2(1.0,0.0);vUv5=vUv+texelSize*vec2(-1.0,-1.0);vUv6=vUv+texelSize*vec2(0.0,-1.0);vUv7=vUv+texelSize*vec2(1.0,-1.0);gl_Position=vec4(position.xy,1.0,1.0);}",ie=class extends r["lb"]{constructor(){super({name:"UpsamplingMaterial",uniforms:{inputBuffer:new r["rb"](null),supportBuffer:new r["rb"](null),texelSize:new r["rb"](new r["vb"]),radius:new r["rb"](.85)},blending:r["T"],depthWrite:!1,depthTest:!1,fragmentShader:ne,vertexShader:re}),this.toneMapped=!1}set inputBuffer(e){this.uniforms.inputBuffer.value=e}set supportBuffer(e){this.uniforms.supportBuffer.value=e}get radius(){return this.uniforms.radius.value}set radius(e){this.uniforms.radius.value=e}setSize(e,t){this.uniforms.texelSize.value.set(1/e,1/t)}},ae=new r["g"],se=null;function oe(){if(null===se){const e=new Float32Array([-1,-1,0,3,-1,0,-1,3,0]),t=new Float32Array([0,0,2,0,0,2]);se=new r["f"],void 0!==se.setAttribute?(se.setAttribute("position",new r["e"](e,3)),se.setAttribute("uv",new r["e"](t,2))):(se.addAttribute("position",new r["e"](e,3)),se.addAttribute("uv",new r["e"](t,2)))}return se}var Ae=class{constructor(e="Pass",t=new r["kb"],n=ae){this.name=e,this.renderer=null,this.scene=t,this.camera=n,this.screen=null,this.rtt=!0,this.needsSwap=!0,this.needsDepthTexture=!1,this.enabled=!0}get renderToScreen(){return!this.rtt}set renderToScreen(e){if(this.rtt===e){const t=this.fullscreenMaterial;null!==t&&(t.needsUpdate=!0),this.rtt=!e}}set mainScene(e){}set mainCamera(e){}setRenderer(e){this.renderer=e}isEnabled(){return this.enabled}setEnabled(e){this.enabled=e}get fullscreenMaterial(){return null!==this.screen?this.screen.material:null}set fullscreenMaterial(e){let t=this.screen;null!==t?t.material=e:(t=new r["L"](oe(),e),t.frustumCulled=!1,null===this.scene&&(this.scene=new r["kb"]),this.scene.add(t),this.screen=t)}getFullscreenMaterial(){return this.fullscreenMaterial}setFullscreenMaterial(e){this.fullscreenMaterial=e}getDepthTexture(){return null}setDepthTexture(e,t=r["d"]){}render(e,t,n,r,i){throw new Error("Render method not implemented!")}setSize(e,t){}initialize(e,t,n){}dispose(){for(const e of Object.keys(this)){const t=this[e],n=t instanceof r["zb"]||t instanceof r["J"]||t instanceof r["pb"]||t instanceof Ae;n&&this[e].dispose()}}},le=class extends Ae{constructor(e,t=!0){super("CopyPass"),this.fullscreenMaterial=new T,this.needsSwap=!1,this.renderTarget=e,void 0===e&&(this.renderTarget=new r["zb"](1,1,{minFilter:r["E"],magFilter:r["E"],stencilBuffer:!1,depthBuffer:!1}),this.renderTarget.texture.name="CopyPass.Target"),this.autoResize=t}get resize(){return this.autoResize}set resize(e){this.autoResize=e}get texture(){return this.renderTarget.texture}getTexture(){return this.renderTarget.texture}setAutoResizeEnabled(e){this.autoResize=e}render(e,t,n,r,i){this.fullscreenMaterial.inputBuffer=t.texture,e.setRenderTarget(this.renderToScreen?null:this.renderTarget),e.render(this.scene,this.camera)}setSize(e,t){this.autoResize&&this.renderTarget.setSize(e,t)}initialize(e,t,n){void 0!==n&&(this.renderTarget.texture.type=n,n!==r["sb"]?this.fullscreenMaterial.defines.FRAMEBUFFER_PRECISION_HIGH="1":e.outputEncoding===r["Bb"]&&(this.renderTarget.texture.encoding=r["Bb"]))}},ce=class extends Ae{constructor(){super("ClearMaskPass",null,null),this.needsSwap=!1}render(e,t,n,r,i){const a=e.state.buffers.stencil;a.setLocked(!1),a.setTest(!1)}},ue=new r["j"],he=class extends Ae{constructor(e=!0,t=!0,n=!1){super("ClearPass",null,null),this.needsSwap=!1,this.color=e,this.depth=t,this.stencil=n,this.overrideClearColor=null,this.overrideClearAlpha=-1}setClearFlags(e,t,n){this.color=e,this.depth=t,this.stencil=n}getOverrideClearColor(){return this.overrideClearColor}setOverrideClearColor(e){this.overrideClearColor=e}getOverrideClearAlpha(){return this.overrideClearAlpha}setOverrideClearAlpha(e){this.overrideClearAlpha=e}render(e,t,n,r,i){const a=this.overrideClearColor,s=this.overrideClearAlpha,o=e.getClearAlpha(),A=null!==a,l=s>=0;A?(e.getClearColor(ue),e.setClearColor(a,l?s:o)):l&&e.setClearAlpha(s),e.setRenderTarget(this.renderToScreen?null:t),e.clear(this.color,this.depth,this.stencil),A?e.setClearColor(ue,o):l&&e.setClearAlpha(o)}},fe=-1,de=class extends r["u"]{constructor(e,t=fe,n=fe,i=1){super(),this.resizable=e,this.baseSize=new r["vb"](1,1),this.preferredSize=new r["vb"](t,n),this.target=this.preferredSize,this.s=i,this.effectiveSize=new r["vb"],this.addEventListener("change",()=>this.updateEffectiveSize()),this.updateEffectiveSize()}updateEffectiveSize(){const e=this.baseSize,t=this.preferredSize,n=this.effectiveSize,r=this.scale;t.width!==fe?n.width=t.width:t.height!==fe?n.width=Math.round(t.height*(e.width/Math.max(e.height,1))):n.width=Math.round(e.width*r),t.height!==fe?n.height=t.height:t.width!==fe?n.height=Math.round(t.width/Math.max(e.width/Math.max(e.height,1),1)):n.height=Math.round(e.height*r)}get width(){return this.effectiveSize.width}set width(e){this.preferredWidth=e}get height(){return this.effectiveSize.height}set height(e){this.preferredHeight=e}getWidth(){return this.width}getHeight(){return this.height}get scale(){return this.s}set scale(e){this.s!==e&&(this.s=e,this.preferredSize.setScalar(fe),this.dispatchEvent({type:"change"}),this.resizable.setSize(this.baseSize.width,this.baseSize.height))}getScale(){return this.scale}setScale(e){this.scale=e}get baseWidth(){return this.baseSize.width}set baseWidth(e){this.baseSize.width!==e&&(this.baseSize.width=e,this.dispatchEvent({type:"change"}),this.resizable.setSize(this.baseSize.width,this.baseSize.height))}getBaseWidth(){return this.baseWidth}setBaseWidth(e){this.baseWidth=e}get baseHeight(){return this.baseSize.height}set baseHeight(e){this.baseSize.height!==e&&(this.baseSize.height=e,this.dispatchEvent({type:"change"}),this.resizable.setSize(this.baseSize.width,this.baseSize.height))}getBaseHeight(){return this.baseHeight}setBaseHeight(e){this.baseHeight=e}setBaseSize(e,t){this.baseSize.width===e&&this.baseSize.height===t||(this.baseSize.set(e,t),this.dispatchEvent({type:"change"}),this.resizable.setSize(this.baseSize.width,this.baseSize.height))}get preferredWidth(){return this.preferredSize.width}set preferredWidth(e){this.preferredSize.width!==e&&(this.preferredSize.width=e,this.dispatchEvent({type:"change"}),this.resizable.setSize(this.baseSize.width,this.baseSize.height))}getPreferredWidth(){return this.preferredWidth}setPreferredWidth(e){this.preferredWidth=e}get preferredHeight(){return this.preferredSize.height}set preferredHeight(e){this.preferredSize.height!==e&&(this.preferredSize.height=e,this.dispatchEvent({type:"change"}),this.resizable.setSize(this.baseSize.width,this.baseSize.height))}getPreferredHeight(){return this.preferredHeight}setPreferredHeight(e){this.preferredHeight=e}setPreferredSize(e,t){this.preferredSize.width===e&&this.preferredSize.height===t||(this.preferredSize.set(e,t),this.dispatchEvent({type:"change"}),this.resizable.setSize(this.baseSize.width,this.baseSize.height))}copy(e){this.s=e.scale,this.baseSize.set(e.baseWidth,e.baseHeight),this.preferredSize.set(e.preferredWidth,e.preferredHeight),this.dispatchEvent({type:"change"}),this.resizable.setSize(this.baseSize.width,this.baseSize.height)}static get AUTO_SIZE(){return fe}},pe=!1,me=class{constructor(e=null){this.originalMaterials=new Map,this.material=null,this.materials=null,this.materialsBackSide=null,this.materialsDoubleSide=null,this.materialsFlatShaded=null,this.materialsFlatShadedBackSide=null,this.materialsFlatShadedDoubleSide=null,this.setMaterial(e),this.meshCount=0,this.replaceMaterial=e=>{if(e.isMesh){let t;if(e.material.flatShading)switch(e.material.side){case r["s"]:t=this.materialsFlatShadedDoubleSide;break;case r["c"]:t=this.materialsFlatShadedBackSide;break;default:t=this.materialsFlatShaded;break}else switch(e.material.side){case r["s"]:t=this.materialsDoubleSide;break;case r["c"]:t=this.materialsBackSide;break;default:t=this.materials;break}this.originalMaterials.set(e,e.material),e.isSkinnedMesh?e.material=t[2]:e.isInstancedMesh?e.material=t[1]:e.material=t[0],++this.meshCount}}}setMaterial(e){if(this.disposeMaterials(),this.material=e,null!==e){const t=this.materials=[e.clone(),e.clone(),e.clone()];for(const n of t)n.uniforms=Object.assign({},e.uniforms),n.side=r["x"];t[2].skinning=!0,this.materialsBackSide=t.map(t=>{const n=t.clone();return n.uniforms=Object.assign({},e.uniforms),n.side=r["c"],n}),this.materialsDoubleSide=t.map(t=>{const n=t.clone();return n.uniforms=Object.assign({},e.uniforms),n.side=r["s"],n}),this.materialsFlatShaded=t.map(t=>{const n=t.clone();return n.uniforms=Object.assign({},e.uniforms),n.flatShading=!0,n}),this.materialsFlatShadedBackSide=t.map(t=>{const n=t.clone();return n.uniforms=Object.assign({},e.uniforms),n.flatShading=!0,n.side=r["c"],n}),this.materialsFlatShadedDoubleSide=t.map(t=>{const n=t.clone();return n.uniforms=Object.assign({},e.uniforms),n.flatShading=!0,n.side=r["s"],n})}}render(e,t,n){const r=e.shadowMap.enabled;if(e.shadowMap.enabled=!1,pe){const r=this.originalMaterials;this.meshCount=0,t.traverse(this.replaceMaterial),e.render(t,n);for(const e of r)e[0].material=e[1];this.meshCount!==r.size&&r.clear()}else{const r=t.overrideMaterial;t.overrideMaterial=this.material,e.render(t,n),t.overrideMaterial=r}e.shadowMap.enabled=r}disposeMaterials(){if(null!==this.material){const e=this.materials.concat(this.materialsBackSide).concat(this.materialsDoubleSide).concat(this.materialsFlatShaded).concat(this.materialsFlatShadedBackSide).concat(this.materialsFlatShadedDoubleSide);for(const t of e)t.dispose()}}dispose(){this.originalMaterials.clear(),this.disposeMaterials()}static get workaroundEnabled(){return pe}static set workaroundEnabled(e){pe=e}},ge=class extends Ae{constructor(e,t,n=null){super("RenderPass",e,t),this.needsSwap=!1,this.clearPass=new he,this.overrideMaterialManager=null===n?null:new me(n),this.ignoreBackground=!1,this.skipShadowMapUpdate=!1,this.selection=null}set mainScene(e){this.scene=e}set mainCamera(e){this.camera=e}get renderToScreen(){return super.renderToScreen}set renderToScreen(e){super.renderToScreen=e,this.clearPass.renderToScreen=e}get overrideMaterial(){const e=this.overrideMaterialManager;return null!==e?e.material:null}set overrideMaterial(e){const t=this.overrideMaterialManager;null!==e?null!==t?t.setMaterial(e):this.overrideMaterialManager=new me(e):null!==t&&(t.dispose(),this.overrideMaterialManager=null)}getOverrideMaterial(){return this.overrideMaterial}setOverrideMaterial(e){this.overrideMaterial=e}get clear(){return this.clearPass.enabled}set clear(e){this.clearPass.enabled=e}getSelection(){return this.selection}setSelection(e){this.selection=e}isBackgroundDisabled(){return this.ignoreBackground}setBackgroundDisabled(e){this.ignoreBackground=e}isShadowMapDisabled(){return this.skipShadowMapUpdate}setShadowMapDisabled(e){this.skipShadowMapUpdate=e}getClearPass(){return this.clearPass}render(e,t,n,r,i){const a=this.scene,s=this.camera,o=this.selection,A=s.layers.mask,l=a.background,c=e.shadowMap.autoUpdate,u=this.renderToScreen?null:t;null!==o&&s.layers.set(o.getLayer()),this.skipShadowMapUpdate&&(e.shadowMap.autoUpdate=!1),(this.ignoreBackground||null!==this.clearPass.overrideClearColor)&&(a.background=null),this.clearPass.enabled&&this.clearPass.render(e,t),e.setRenderTarget(u),null!==this.overrideMaterialManager?this.overrideMaterialManager.render(e,a,s):e.render(a,s),s.layers.mask=A,a.background=l,e.shadowMap.autoUpdate=c}};new Float32Array([255/256/256**3,255/256/65536,255/256/256,255/256]);function ve(e,t,n){for(const r of t){const t="$1"+e+r.charAt(0).toUpperCase()+r.slice(1),i=new RegExp("([^\\.])(\\b"+r+"\\b)","g");for(const e of n.entries())null!==e[1]&&n.set(e[0],e[1].replace(i,t))}}function ye(e,t,n){var i,a,s,o,A;let l=t.getFragmentShader(),c=t.getVertexShader();const u=void 0!==l&&/mainImage/.test(l),h=void 0!==l&&/mainUv/.test(l);if(n.attributes|=t.getAttributes(),void 0===l)throw new Error(`Missing fragment shader (${t.name})`);if(h&&0!==(n.attributes&g.CONVOLUTION))throw new Error(`Effects that transform UVs are incompatible with convolution effects (${t.name})`);if(!u&&!h)throw new Error(`Could not find mainImage or mainUv function (${t.name})`);{const f=/\w+\s+(\w+)\([\w\s,]*\)\s*{/g,d=n.shaderParts;let p=null!=(i=d.get(v.FRAGMENT_HEAD))?i:"",m=null!=(a=d.get(v.FRAGMENT_MAIN_UV))?a:"",y=null!=(s=d.get(v.FRAGMENT_MAIN_IMAGE))?s:"",x=null!=(o=d.get(v.VERTEX_HEAD))?o:"",b=null!=(A=d.get(v.VERTEX_MAIN_SUPPORT))?A:"";const w=new Set,_=new Set;if(h&&(m+=`\t${e}MainUv(UV);\n`,n.uvTransformation=!0),null!==c&&/mainSupport/.test(c)){const t=/mainSupport *\([\w\s]*?uv\s*?\)/.test(c);b+=`\t${e}MainSupport(`,b+=t?"vUv);\n":");\n";for(const e of c.matchAll(/(?:varying\s+\w+\s+([\S\s]*?);)/g))for(const t of e[1].split(/\s*,\s*/))n.varyings.add(t),w.add(t),_.add(t);for(const e of c.matchAll(f))_.add(e[1])}for(const e of l.matchAll(f))_.add(e[1]);for(const e of t.defines.keys())_.add(e.replace(/\([\w\s,]*\)/g,""));for(const e of t.uniforms.keys())_.add(e);_.delete("while"),_.delete("for"),_.delete("if"),t.uniforms.forEach((t,r)=>n.uniforms.set(e+r.charAt(0).toUpperCase()+r.slice(1),t)),t.defines.forEach((t,r)=>n.defines.set(e+r.charAt(0).toUpperCase()+r.slice(1),t));const M=new Map([["fragment",l],["vertex",c]]);ve(e,_,n.defines),ve(e,_,M),l=M.get("fragment"),c=M.get("vertex");const S=t.blendMode;if(n.blendModes.set(S.blendFunction,S),u){null!==t.inputColorSpace&&t.inputColorSpace!==n.colorSpace&&(y+=t.inputColorSpace===r["Bb"]?"color0 = LinearTosRGB(color0);\n\t":"color0 = sRGBToLinear(color0);\n\t"),null!==t.outputColorSpace?n.colorSpace=t.outputColorSpace:null!==t.inputColorSpace&&(n.colorSpace=t.inputColorSpace);const i=/MainImage *\([\w\s,]*?depth[\w\s,]*?\)/;y+=e+"MainImage(color0, UV, ",0!==(n.attributes&g.DEPTH)&&i.test(l)&&(y+="depth, ",n.readDepth=!0),y+="color1);\n\t";const a=e+"BlendOpacity";n.uniforms.set(a,S.opacity),y+=`color0 = blend${S.blendFunction}(color0, color1, ${a});\n\n\t`,p+=`uniform float ${a};\n\n`}if(p+=l+"\n",null!==c&&(x+=c+"\n"),d.set(v.FRAGMENT_HEAD,p),d.set(v.FRAGMENT_MAIN_UV,m),d.set(v.FRAGMENT_MAIN_IMAGE,y),d.set(v.VERTEX_HEAD,x),d.set(v.VERTEX_MAIN_SUPPORT,b),null!==t.extensions)for(const e of t.extensions)n.extensions.add(e)}}var xe=class extends Ae{constructor(e,...t){super("EffectPass"),this.fullscreenMaterial=new V(null,null,null,e),this.listener=e=>this.handleEvent(e),this.effects=[],this.setEffects(t),this.skipRendering=!1,this.minTime=1,this.maxTime=Number.POSITIVE_INFINITY,this.timeScale=1}set mainScene(e){for(const t of this.effects)t.mainScene=e}set mainCamera(e){this.fullscreenMaterial.copyCameraSettings(e);for(const t of this.effects)t.mainCamera=e}get encodeOutput(){return this.fullscreenMaterial.encodeOutput}set encodeOutput(e){this.fullscreenMaterial.encodeOutput=e}get dithering(){return this.fullscreenMaterial.dithering}set dithering(e){const t=this.fullscreenMaterial;t.dithering=e,t.needsUpdate=!0}setEffects(e){for(const t of this.effects)t.removeEventListener("change",this.listener);this.effects=e.sort((e,t)=>t.attributes-e.attributes);for(const t of this.effects)t.addEventListener("change",this.listener)}updateMaterial(){const e=new De;let t=0;for(const r of this.effects)if(r.blendMode.blendFunction===h.DST)e.attributes|=r.getAttributes()&g.DEPTH;else{if(0!==(e.attributes&r.getAttributes()&g.CONVOLUTION))throw new Error(`Convolution effects cannot be merged (${r.name})`);ye("e"+t++,r,e)}let n=e.shaderParts.get(v.FRAGMENT_HEAD),i=e.shaderParts.get(v.FRAGMENT_MAIN_IMAGE),a=e.shaderParts.get(v.FRAGMENT_MAIN_UV);const s=/\bblend\b/g;for(const r of e.blendModes.values())n+=r.getShaderCode().replace(s,"blend"+r.blendFunction)+"\n";0!==(e.attributes&g.DEPTH)?(e.readDepth&&(i="float depth = readDepth(UV);\n\n\t"+i),this.needsDepthTexture=null===this.getDepthTexture()):this.needsDepthTexture=!1,e.colorSpace===r["Bb"]&&(i+="color0 = sRGBToLinear(color0);\n\t"),e.uvTransformation?(a="vec2 transformedUv = vUv;\n"+a,e.defines.set("UV","transformedUv")):e.defines.set("UV","vUv"),e.shaderParts.set(v.FRAGMENT_HEAD,n),e.shaderParts.set(v.FRAGMENT_MAIN_IMAGE,i),e.shaderParts.set(v.FRAGMENT_MAIN_UV,a),e.shaderParts.forEach((e,t,n)=>n.set(t,null==e?void 0:e.trim().replace(/^#/,"\n#"))),this.skipRendering=0===t,this.needsSwap=!this.skipRendering,this.fullscreenMaterial.setShaderData(e)}recompile(){this.updateMaterial()}getDepthTexture(){return this.fullscreenMaterial.depthBuffer}setDepthTexture(e,t=r["d"]){this.fullscreenMaterial.depthBuffer=e,this.fullscreenMaterial.depthPacking=t;for(const n of this.effects)n.setDepthTexture(e,t)}render(e,t,n,r,i){for(const a of this.effects)a.update(e,t,r);if(!this.skipRendering||this.renderToScreen){const i=this.fullscreenMaterial;i.inputBuffer=t.texture,i.time+=r*this.timeScale,e.setRenderTarget(this.renderToScreen?null:n),e.render(this.scene,this.camera)}}setSize(e,t){this.fullscreenMaterial.setSize(e,t);for(const n of this.effects)n.setSize(e,t)}initialize(e,t,n){this.renderer=e;for(const r of this.effects)r.initialize(e,t,n);this.updateMaterial(),void 0!==n&&n!==r["sb"]&&(this.fullscreenMaterial.defines.FRAMEBUFFER_PRECISION_HIGH="1")}dispose(){super.dispose();for(const e of this.effects)e.removeEventListener("change",this.listener),e.dispose()}handleEvent(e){switch(e.type){case"change":this.recompile();break}}},be=class extends Ae{constructor({kernelSize:e=y.MEDIUM,resolutionScale:t=.5,width:n=de.AUTO_SIZE,height:i=de.AUTO_SIZE,resolutionX:a=n,resolutionY:s=i}={}){super("KawaseBlurPass"),this.renderTargetA=new r["zb"](1,1,{depthBuffer:!1}),this.renderTargetA.texture.name="Blur.Target.A",this.renderTargetB=this.renderTargetA.clone(),this.renderTargetB.texture.name="Blur.Target.B";const o=this.resolution=new de(this,a,s,t);o.addEventListener("change",e=>this.setSize(o.baseWidth,o.baseHeight)),this._blurMaterial=new E,this._blurMaterial.kernelSize=e,this.copyMaterial=new T}getResolution(){return this.resolution}get blurMaterial(){return this._blurMaterial}set blurMaterial(e){this._blurMaterial=e}get dithering(){return this.copyMaterial.dithering}set dithering(e){this.copyMaterial.dithering=e}get kernelSize(){return this.blurMaterial.kernelSize}set kernelSize(e){this.blurMaterial.kernelSize=e}get width(){return this.resolution.width}set width(e){this.resolution.preferredWidth=e}get height(){return this.resolution.height}set height(e){this.resolution.preferredHeight=e}get scale(){return this.blurMaterial.scale}set scale(e){this.blurMaterial.scale=e}getScale(){return this.blurMaterial.scale}setScale(e){this.blurMaterial.scale=e}getKernelSize(){return this.kernelSize}setKernelSize(e){this.kernelSize=e}getResolutionScale(){return this.resolution.scale}setResolutionScale(e){this.resolution.scale=e}render(e,t,n,r,i){const a=this.scene,s=this.camera,o=this.renderTargetA,A=this.renderTargetB,l=this.blurMaterial,c=l.kernelSequence;let u=t;this.fullscreenMaterial=l;for(let h=0,f=c.length;hthis.setSize(l.baseWidth,l.baseHeight))}get texture(){return this.renderTarget.texture}getTexture(){return this.renderTarget.texture}getResolution(){return this.resolution}render(e,t,n,r,i){const a=this.fullscreenMaterial;a.inputBuffer=t.texture,e.setRenderTarget(this.renderToScreen?null:this.renderTarget),e.render(this.scene,this.camera)}setSize(e,t){const n=this.resolution;n.setBaseSize(e,t),this.renderTarget.setSize(n.width,n.height)}initialize(e,t,n){void 0!==n&&n!==r["sb"]&&(this.renderTarget.texture.type=n,this.fullscreenMaterial.defines.FRAMEBUFFER_PRECISION_HIGH="1")}},_e=class extends Ae{constructor(e,t){super("MaskPass",e,t),this.needsSwap=!1,this.clearPass=new he(!1,!1,!0),this.inverse=!1}set mainScene(e){this.scene=e}set mainCamera(e){this.camera=e}get inverted(){return this.inverse}set inverted(e){this.inverse=e}get clear(){return this.clearPass.enabled}set clear(e){this.clearPass.enabled=e}getClearPass(){return this.clearPass}isInverted(){return this.inverted}setInverted(e){this.inverted=e}render(e,t,n,r,i){const a=e.getContext(),s=e.state.buffers,o=this.scene,A=this.camera,l=this.clearPass,c=this.inverted?0:1,u=1-c;s.color.setMask(!1),s.depth.setMask(!1),s.color.setLocked(!0),s.depth.setLocked(!0),s.stencil.setTest(!0),s.stencil.setOp(a.REPLACE,a.REPLACE,a.REPLACE),s.stencil.setFunc(a.ALWAYS,c,4294967295),s.stencil.setClear(u),s.stencil.setLocked(!0),this.clearPass.enabled&&(this.renderToScreen?l.render(e,null):(l.render(e,t),l.render(e,n))),this.renderToScreen?(e.setRenderTarget(null),e.render(o,A)):(e.setRenderTarget(t),e.render(o,A),e.setRenderTarget(n),e.render(o,A)),s.color.setLocked(!1),s.depth.setLocked(!1),s.stencil.setLocked(!1),s.stencil.setFunc(a.EQUAL,1,4294967295),s.stencil.setOp(a.KEEP,a.KEEP,a.KEEP),s.stencil.setLocked(!0)}},Me=class extends Ae{constructor(){super("MipmapBlurPass"),this.needsSwap=!1,this.renderTarget=new r["zb"](1,1,{depthBuffer:!1}),this.renderTarget.texture.name="Upsampling.Mipmap0",this.downsamplingMipmaps=[],this.upsamplingMipmaps=[],this.downsamplingMaterial=new F,this.upsamplingMaterial=new ie,this.resolution=new r["vb"]}get texture(){return this.renderTarget.texture}get levels(){return this.downsamplingMipmaps.length}set levels(e){if(this.levels!==e){const t=this.renderTarget;this.dispose(),this.downsamplingMipmaps=[],this.upsamplingMipmaps=[];for(let n=0;n=0;--h){const t=c[h];A.setSize(u.width,u.height),A.inputBuffer=u.texture,A.supportBuffer=l[h].texture,e.setRenderTarget(t),e.render(a,s),u=t}}setSize(e,t){const n=this.resolution;n.set(e,t);let r=n.width,i=n.height;for(let a=0,s=this.downsamplingMipmaps.length;a0&&e>0?(this.inputBuffer.samples=e,this.outputBuffer.samples=e,this.inputBuffer.dispose(),this.outputBuffer.dispose()):n!==e&&(this.inputBuffer.dispose(),this.outputBuffer.dispose(),this.inputBuffer=this.createBuffer(t.depthBuffer,t.stencilBuffer,t.texture.type,e),this.inputBuffer.depthTexture=this.depthTexture,this.outputBuffer=this.inputBuffer.clone())}getTimer(){return this.timer}getRenderer(){return this.renderer}setRenderer(e){if(this.renderer=e,null!==e){const t=e.getSize(new r["vb"]),n=e.getContext().getContextAttributes().alpha,i=this.inputBuffer.texture.type;i===r["sb"]&&e.outputEncoding===r["Bb"]&&(this.inputBuffer.texture.encoding=r["Bb"],this.outputBuffer.texture.encoding=r["Bb"],this.inputBuffer.dispose(),this.outputBuffer.dispose()),e.autoClear=!1,this.setSize(t.width,t.height);for(const r of this.passes)r.initialize(e,n,i)}}replaceRenderer(e,t=!0){const n=this.renderer,r=n.domElement.parentNode;return this.setRenderer(e),t&&null!==r&&(r.removeChild(n.domElement),r.appendChild(e.domElement)),n}createDepthTexture(){const e=this.depthTexture=new r["q"];return this.inputBuffer.depthTexture=e,this.inputBuffer.dispose(),this.inputBuffer.stencilBuffer?(e.format=r["p"],e.type=r["tb"]):e.type=r["ub"],e}deleteDepthTexture(){if(null!==this.depthTexture){this.depthTexture.dispose(),this.depthTexture=null,this.inputBuffer.depthTexture=null,this.inputBuffer.dispose();for(const e of this.passes)e.setDepthTexture(null)}}createBuffer(e,t,n,i){const a=this.renderer,s=null===a?new r["vb"]:a.getDrawingBufferSize(new r["vb"]),o={minFilter:r["E"],magFilter:r["E"],stencilBuffer:t,depthBuffer:e,type:n};let A;return i>0?(A=Number(r["cb"].replace(/\D+/g,""))<138?new r["yb"](s.width,s.height,o):new r["zb"](s.width,s.height,o),A.ignoreDepthForMultisampleCopy=!1,A.samples=i):A=new r["zb"](s.width,s.height,o),n===r["sb"]&&null!==a&&a.outputEncoding===r["Bb"]&&(A.texture.encoding=r["Bb"]),A.texture.name="EffectComposer.Buffer",A.texture.generateMipmaps=!1,A}setMainScene(e){for(const t of this.passes)t.mainScene=e}setMainCamera(e){for(const t of this.passes)t.mainCamera=e}addPass(e,t){const n=this.passes,i=this.renderer,a=i.getDrawingBufferSize(new r["vb"]),s=i.getContext().getContextAttributes().alpha,o=this.inputBuffer.texture.type;if(e.setRenderer(i),e.setSize(a.width,a.height),e.initialize(i,s,o),this.autoRenderToScreen&&(n.length>0&&(n[n.length-1].renderToScreen=!1),e.renderToScreen&&(this.autoRenderToScreen=!1)),void 0!==t?n.splice(t,0,e):n.push(e),this.autoRenderToScreen&&(n[n.length-1].renderToScreen=!0),e.needsDepthTexture||null!==this.depthTexture)if(null===this.depthTexture){const t=this.createDepthTexture();for(e of n)e.setDepthTexture(t)}else e.setDepthTexture(this.depthTexture)}removePass(e){const t=this.passes,n=t.indexOf(e),r=-1!==n,i=r&&t.splice(n,1).length>0;if(i){if(null!==this.depthTexture){const n=(e,t)=>e||t.needsDepthTexture,r=t.reduce(n,!1);r||(e.getDepthTexture()===this.depthTexture&&e.setDepthTexture(null),this.deleteDepthTexture())}this.autoRenderToScreen&&n===t.length&&(e.renderToScreen=!1,t.length>0&&(t[t.length-1].renderToScreen=!0))}}removeAllPasses(){const e=this.passes;this.deleteDepthTexture(),e.length>0&&(this.autoRenderToScreen&&(e[e.length-1].renderToScreen=!1),this.passes=[])}render(e){const t=this.renderer,n=this.copyPass;let r,i,a,s=this.inputBuffer,o=this.outputBuffer,A=!1;void 0===e&&(e=this.timer.update().getDelta());for(const l of this.passes)l.enabled&&(l.render(t,s,o,e,A),l.needsSwap&&(A&&(n.renderToScreen=l.renderToScreen,r=t.getContext(),i=t.state.buffers.stencil,i.setFunc(r.NOTEQUAL,1,4294967295),n.render(t,s,o,e,A),i.setFunc(r.EQUAL,1,4294967295)),a=s,s=o,o=a),l instanceof _e?A=!0:l instanceof ce&&(A=!1))}setSize(e,t,n){const i=this.renderer,a=i.getSize(new r["vb"]);void 0!==e&&void 0!==t||(e=a.width,t=a.height),a.width===e&&a.height===t||i.setSize(e,t,n);const s=i.getDrawingBufferSize(new r["vb"]);this.inputBuffer.setSize(s.width,s.height),this.outputBuffer.setSize(s.width,s.height);for(const r of this.passes)r.setSize(s.width,s.height)}reset(){const e=this.timer.isAutoResetEnabled();this.dispose(),this.autoRenderToScreen=!0,this.timer.setAutoResetEnabled(e)}dispose(){for(const e of this.passes)e.dispose();this.passes=[],null!==this.inputBuffer&&this.inputBuffer.dispose(),null!==this.outputBuffer&&this.outputBuffer.dispose(),this.deleteDepthTexture(),this.copyPass.dispose(),this.timer.dispose()}},De=class{constructor(){this.shaderParts=new Map([[v.FRAGMENT_HEAD,null],[v.FRAGMENT_MAIN_UV,null],[v.FRAGMENT_MAIN_IMAGE,null],[v.VERTEX_HEAD,null],[v.VERTEX_MAIN_SUPPORT,null]]),this.defines=new Map,this.uniforms=new Map,this.blendModes=new Map,this.extensions=new Set,this.attributes=g.NONE,this.varyings=new Set,this.uvTransformation=!1,this.readDepth=!1,this.colorSpace=r["D"]}};function Be(e){let t;if(0===e)t=new Float64Array(0);else if(1===e)t=new Float64Array([1]);else if(e>1){let n=new Float64Array(e),r=new Float64Array(e);for(let i=1;i<=e;++i){for(let e=0;e1020)throw new Error("The kernel size must be in the range [3, 1020]");const n=e+2*t,r=t>0?Be(n).slice(t,-t):Be(n),i=Math.floor((r.length-1)/2),a=r.reduce((e,t)=>e+t,0),s=r.slice(i),o=[...Array(i+1).keys()],A=new Float64Array(Math.floor(o.length/2)),l=new Float64Array(A.length);A[0]=s[0]/a;for(let u=1,h=1,f=o.length-1;ue+t,0)-.5*A[0]);if(0!==c)for(let u=0,h=A.length,f=1/c;uthis.setChanged()),this._inputColorSpace=r["D"],this._outputColorSpace=null}get inputColorSpace(){return this._inputColorSpace}set inputColorSpace(e){this._inputColorSpace=e,this.setChanged()}get outputColorSpace(){return this._outputColorSpace}set outputColorSpace(e){this._outputColorSpace=e,this.setChanged()}set mainScene(e){}set mainCamera(e){}getName(){return this.name}setRenderer(e){this.renderer=e}getDefines(){return this.defines}getUniforms(){return this.uniforms}getExtensions(){return this.extensions}getBlendMode(){return this.blendMode}getAttributes(){return this.attributes}setAttributes(e){this.attributes=e,this.setChanged()}getFragmentShader(){return this.fragmentShader}setFragmentShader(e){this.fragmentShader=e,this.setChanged()}getVertexShader(){return this.vertexShader}setVertexShader(e){this.vertexShader=e,this.setChanged()}setChanged(){this.dispatchEvent({type:"change"})}setDepthTexture(e,t=r["d"]){}update(e,t,n){}setSize(e,t){}initialize(e,t,n){}dispose(){for(const e of Object.keys(this)){const t=this[e],n=t instanceof r["zb"]||t instanceof r["J"]||t instanceof r["pb"]||t instanceof Ae;n&&this[e].dispose()}}},ft="#ifdef FRAMEBUFFER_PRECISION_HIGH\nuniform mediump sampler2D map;\n#else\nuniform lowp sampler2D map;\n#endif\nuniform float intensity;void mainImage(const in vec4 inputColor,const in vec2 uv,out vec4 outputColor){outputColor=texture2D(map,uv)*intensity;}",dt=class extends ht{constructor({blendFunction:e=h.SCREEN,luminanceThreshold:t=.9,luminanceSmoothing:n=.025,mipmapBlur:i=!1,intensity:a=1,radius:s=.85,levels:o=8,kernelSize:A=y.LARGE,resolutionScale:l=.5,width:c=de.AUTO_SIZE,height:u=de.AUTO_SIZE,resolutionX:f=c,resolutionY:d=u}={}){super("BloomEffect",ft,{blendFunction:e,uniforms:new Map([["map",new r["rb"](null)],["intensity",new r["rb"](a)]])}),this.renderTarget=new r["zb"](1,1,{depthBuffer:!1}),this.renderTarget.texture.name="Bloom.Target",this.blurPass=new be({kernelSize:A}),this.luminancePass=new we({colorOutput:!0}),this.luminanceMaterial.threshold=t,this.luminanceMaterial.smoothing=n,this.mipmapBlurPass=new Me,this.mipmapBlurPass.enabled=i,this.mipmapBlurPass.radius=s,this.mipmapBlurPass.levels=o,this.uniforms.get("map").value=i?this.mipmapBlurPass.texture:this.renderTarget.texture;const p=this.resolution=new de(this,f,d,l);p.addEventListener("change",e=>this.setSize(p.baseWidth,p.baseHeight))}get texture(){return this.mipmapBlurPass.enabled?this.mipmapBlurPass.texture:this.renderTarget.texture}getTexture(){return this.texture}getResolution(){return this.resolution}getBlurPass(){return this.blurPass}getLuminancePass(){return this.luminancePass}get luminanceMaterial(){return this.luminancePass.fullscreenMaterial}getLuminanceMaterial(){return this.luminancePass.fullscreenMaterial}get width(){return this.resolution.width}set width(e){this.resolution.preferredWidth=e}get height(){return this.resolution.height}set height(e){this.resolution.preferredHeight=e}get dithering(){return this.blurPass.dithering}set dithering(e){this.blurPass.dithering=e}get kernelSize(){return this.blurPass.kernelSize}set kernelSize(e){this.blurPass.kernelSize=e}get distinction(){return console.warn(this.name,"distinction was removed"),1}set distinction(e){console.warn(this.name,"distinction was removed")}get intensity(){return this.uniforms.get("intensity").value}set intensity(e){this.uniforms.get("intensity").value=e}getIntensity(){return this.intensity}setIntensity(e){this.intensity=e}getResolutionScale(){return this.resolution.scale}setResolutionScale(e){this.resolution.scale=e}update(e,t,n){const r=this.renderTarget,i=this.luminancePass;i.enabled?(i.render(e,t),this.mipmapBlurPass.enabled?this.mipmapBlurPass.render(e,i.renderTarget):this.blurPass.render(e,i.renderTarget,r)):this.mipmapBlurPass.enabled?this.mipmapBlurPass.render(e,t):this.blurPass.render(e,t,r)}setSize(e,t){const n=this.resolution;n.setBaseSize(e,t),this.renderTarget.setSize(n.width,n.height),this.blurPass.resolution.copy(n),this.luminancePass.setSize(e,t),this.mipmapBlurPass.setSize(e,t)}initialize(e,t,n){this.blurPass.initialize(e,t,n),this.luminancePass.initialize(e,t,n),this.mipmapBlurPass.initialize(e,t,n),void 0!==n&&(this.renderTarget.texture.type=n,e.outputEncoding===r["Bb"]&&(this.renderTarget.texture.encoding=r["Bb"]))}},pt="#ifdef RADIAL_MODULATION\nuniform float modulationOffset;\n#endif\nvarying float vActive;varying vec2 vUvR;varying vec2 vUvB;void mainImage(const in vec4 inputColor,const in vec2 uv,out vec4 outputColor){vec2 ra=inputColor.ra;vec2 ba=inputColor.ba;\n#ifdef RADIAL_MODULATION\nconst vec2 center=vec2(0.5);float d=distance(uv,center)*2.0;d=max(d-modulationOffset,0.0);if(vActive>0.0&&d>0.0){ra=texture2D(inputBuffer,mix(uv,vUvR,d)).ra;ba=texture2D(inputBuffer,mix(uv,vUvB,d)).ba;}\n#else\nif(vActive>0.0){ra=texture2D(inputBuffer,vUvR).ra;ba=texture2D(inputBuffer,vUvB).ba;}\n#endif\noutputColor=vec4(ra.x,inputColor.g,ba.x,max(max(ra.y,ba.y),inputColor.a));}",mt="uniform vec2 offset;varying float vActive;varying vec2 vUvR;varying vec2 vUvB;void mainSupport(const in vec2 uv){vec2 shift=offset*vec2(1.0,aspect);vActive=(shift.x!=0.0||shift.y!=0.0)?1.0:0.0;vUvR=uv+shift;vUvB=uv-shift;}",gt=class extends ht{constructor({offset:e=new r["vb"](.001,5e-4),radialModulation:t=!1,modulationOffset:n=.15}={}){super("ChromaticAberrationEffect",pt,{vertexShader:mt,attributes:g.CONVOLUTION,uniforms:new Map([["offset",new r["rb"](e)],["modulationOffset",new r["rb"](n)]])}),this.radialModulation=t}get offset(){return this.uniforms.get("offset").value}set offset(e){this.uniforms.get("offset").value=e}get radialModulation(){return this.defines.has("RADIAL_MODULATION")}set radialModulation(e){e?this.defines.set("RADIAL_MODULATION","1"):this.defines.delete("RADIAL_MODULATION"),this.setChanged()}get modulationOffset(){return this.uniforms.get("modulationOffset").value}set modulationOffset(e){this.uniforms.get("modulationOffset").value=e}getOffset(){return this.offset}setOffset(e){this.offset=e}};function vt(e,t,n){const i=new Map([[r["I"],1],[r["hb"],1],[r["fb"],2],[r["eb"],4]]);let a;if(i.has(t)||console.error("Invalid noise texture format"),n===r["sb"]){a=new Uint8Array(e*i.get(t));for(let e=0,t=a.length;e{const a=URL.createObjectURL(new Blob([bt],{type:"text/javascript"})),s=new Worker(a);s.addEventListener("error",e=>i(e.error)),s.addEventListener("message",t=>{const n=new _t(t.data,e);n.encoding=this.encoding,n.type=this.type,n.name=this.name,URL.revokeObjectURL(a),r(n)});const o=t?[n.data.buffer]:[];s.postMessage({operation:x.SCALE_UP,data:n.data,size:e},o)}),r}applyLUT(e){const t=this.image,n=e.image,i=Math.min(t.width,t.height,t.depth),a=Math.min(n.width,n.height,n.depth);if(i!==a)console.error("Size mismatch");else if(e.type!==r["w"]||this.type!==r["w"])console.error("Both LUTs must be FloatType textures");else if(e.format!==r["eb"]||this.format!==r["eb"])console.error("Both LUTs must be RGBA textures");else{const e=t.data,r=n.data,a=i,s=a**2,o=a-1;for(let t=0,n=a**3;tr){a=new Uint8Array(s.length);for(let e=0;e(n[e+Object(a["k"])(r)]=t(),n),{})}const l=e=>[...o,"baseline","stretch"].includes(e),c=A("align",()=>({type:String,default:null,validator:l})),u=e=>[...o,"space-between","space-around"].includes(e),h=A("justify",()=>({type:String,default:null,validator:u})),f=e=>[...o,"space-between","space-around","stretch"].includes(e),d=A("alignContent",()=>({type:String,default:null,validator:f})),p={align:Object.keys(c),justify:Object.keys(h),alignContent:Object.keys(d)},m={align:"align",justify:"justify",alignContent:"align-content"};function g(e,t,n){let r=m[e];if(null!=n){if(t){const n=t.replace(e,"");r+="-"+n}return r+="-"+n,r.toLowerCase()}}const v=new Map;t["a"]=r["a"].extend({name:"v-row",functional:!0,props:{tag:{type:String,default:"div"},dense:Boolean,noGutters:Boolean,align:{type:String,default:null,validator:l},...c,justify:{type:String,default:null,validator:u},...h,alignContent:{type:String,default:null,validator:f},...d},render(e,{props:t,data:n,children:r}){let a="";for(const i in t)a+=String(t[i]);let s=v.get(a);if(!s){let e;for(e in s=[],p)p[e].forEach(n=>{const r=t[n],i=g(e,n,r);i&&s.push(i)});s.push({"no-gutters":t.noGutters,"row--dense":t.dense,["align-"+t.align]:t.align,["justify-"+t.justify]:t.justify,["align-content-"+t.alignContent]:t.alignContent}),v.set(a,s)}return e(t.tag,Object(i["a"])(n,{staticClass:"row",class:s}),r)}})},"13d2":function(e,t,n){var r=n("d039"),i=n("1626"),a=n("1a2d"),s=n("83ab"),o=n("5e77").CONFIGURABLE,A=n("8925"),l=n("69f3"),c=l.enforce,u=l.get,h=Object.defineProperty,f=s&&!r((function(){return 8!==h((function(){}),"length",{value:8}).length})),d=String(String).split("String"),p=e.exports=function(e,t,n){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!a(e,"name")||o&&e.name!==t)&&(s?h(e,"name",{value:t,configurable:!0}):e.name=t),f&&n&&a(n,"arity")&&e.length!==n.arity&&h(e,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&h(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(i){}var r=c(e);return a(r,"source")||(r.source=d.join("string"==typeof t?t:"")),e};Function.prototype.toString=p((function(){return i(this)&&u(this).source||A(this)}),"toString")},"13d5":function(e,t,n){"use strict";var r=n("23e7"),i=n("d58f").left,a=n("a640"),s=n("2d00"),o=n("605d"),A=a("reduce"),l=!o&&s>79&&s<83;r({target:"Array",proto:!0,forced:!A||l},{reduce:function(e){var t=arguments.length;return i(this,e,t,t>1?arguments[1]:void 0)}})},"14d9":function(e,t,n){"use strict";var r=n("23e7"),i=n("7b0b"),a=n("07fa"),s=n("3a34"),o=n("3511"),A=n("d039"),l=A((function(){return 4294967297!==[].push.call({length:4294967296},1)})),c=!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}();r({target:"Array",proto:!0,arity:1,forced:l||c},{push:function(e){var t=i(this),n=a(t),r=arguments.length;o(n+r);for(var A=0;Am?(a=1,s=0):(a=0,s=1);var g=p-a+u,v=m-s+u,y=p-1+2*u,x=m-1+2*u,b=255&l,w=255&c,_=this.perm[b+this.perm[w]]%12,M=this.perm[b+a+this.perm[w+s]]%12,S=this.perm[b+1+this.perm[w+1]]%12,E=.5-p*p-m*m;E<0?n=0:(E*=E,n=E*E*this.dot(this.grad3[_],p,m));var C=.5-g*g-v*v;C<0?r=0:(C*=C,r=C*C*this.dot(this.grad3[M],g,v));var T=.5-y*y-x*x;return T<0?i=0:(T*=T,i=T*T*this.dot(this.grad3[S],y,x)),70*(n+r+i)},SimplexNoise.prototype.noise3d=function(e,t,n){var r,i,a,s,o,A,l,c,u,h,f=1/3,d=(e+t+n)*f,p=Math.floor(e+d),m=Math.floor(t+d),g=Math.floor(n+d),v=1/6,y=(p+m+g)*v,x=p-y,b=m-y,w=g-y,_=e-x,M=t-b,S=n-w;_>=M?M>=S?(o=1,A=0,l=0,c=1,u=1,h=0):_>=S?(o=1,A=0,l=0,c=1,u=0,h=1):(o=0,A=0,l=1,c=1,u=0,h=1):M1?arguments[1]:void 0)}))},"1d80":function(e,t,n){var r=n("7234"),i=TypeError;e.exports=function(e){if(r(e))throw i("Can't call method on "+e);return e}},"20f6":function(e,t,n){},"23cb":function(e,t,n){var r=n("5926"),i=Math.max,a=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):a(n,t)}},"23e7":function(e,t,n){var r=n("da84"),i=n("06cf").f,a=n("9112"),s=n("cb2d"),o=n("6374"),A=n("e893"),l=n("94ca");e.exports=function(e,t){var n,c,u,h,f,d,p=e.target,m=e.global,g=e.stat;if(c=m?r:g?r[p]||o(p,{}):(r[p]||{}).prototype,c)for(u in t){if(f=t[u],e.dontCallGetSet?(d=i(c,u),h=d&&d.value):h=c[u],n=l(m?u:p+(g?".":"#")+u,e.forced),!n&&void 0!==h){if(typeof f==typeof h)continue;A(f,h)}(e.sham||h&&h.sham)&&a(f,"sham",!0),s(c,u,f,e)}}},"241c":function(e,t,n){var r=n("ca84"),i=n("7839"),a=i.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,a)}},2877:function(e,t,n){"use strict";function r(e,t,n,r,i,a,s,o){var A,l="function"===typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),a&&(l._scopeId="data-v-"+a),s?(A=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},l._ssrRegister=A):i&&(A=o?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i),A)if(l.functional){l._injectStyles=A;var c=l.render;l.render=function(e,t){return A.call(t),c(e,t)}}else{var u=l.beforeCreate;l.beforeCreate=u?[].concat(u,A):[A]}return{exports:e,options:l}}n.d(t,"a",(function(){return r}))},"2b0e":function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return oi})),n.d(t,"b",(function(){return qe})),n.d(t,"c",(function(){return it})); /*! * Vue.js v2.7.14 * (c) 2014-2022 Evan You * Released under the MIT License. */ var r=Object.freeze({}),i=Array.isArray;function a(e){return void 0===e||null===e}function s(e){return void 0!==e&&null!==e}function o(e){return!0===e}function A(e){return!1===e}function l(e){return"string"===typeof e||"number"===typeof e||"symbol"===typeof e||"boolean"===typeof e}function c(e){return"function"===typeof e}function u(e){return null!==e&&"object"===typeof e}var h=Object.prototype.toString;function f(e){return"[object Object]"===h.call(e)}function d(e){return"[object RegExp]"===h.call(e)}function p(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function m(e){return s(e)&&"function"===typeof e.then&&"function"===typeof e.catch}function g(e){return null==e?"":Array.isArray(e)||f(e)&&e.toString===h?JSON.stringify(e,null,2):String(e)}function v(e){var t=parseFloat(e);return isNaN(t)?e:t}function y(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i-1)return e.splice(r,1)}}var w=Object.prototype.hasOwnProperty;function _(e,t){return w.call(e,t)}function M(e){var t=Object.create(null);return function(n){var r=t[n];return r||(t[n]=e(n))}}var S=/-(\w)/g,E=M((function(e){return e.replace(S,(function(e,t){return t?t.toUpperCase():""}))})),C=M((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),T=/\B([A-Z])/g,D=M((function(e){return e.replace(T,"-$1").toLowerCase()}));function B(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n}function L(e,t){return e.bind(t)}var I=Function.prototype.bind?L:B;function P(e,t){t=t||0;var n=e.length-t,r=new Array(n);while(n--)r[n]=e[n+t];return r}function R(e,t){for(var n in t)e[n]=t[n];return e}function k(e){for(var t={},n=0;n0,re=ee&&ee.indexOf("edge/")>0;ee&&ee.indexOf("android");var ie=ee&&/iphone|ipad|ipod|ios/.test(ee);ee&&/chrome\/\d+/.test(ee),ee&&/phantomjs/.test(ee);var ae,se=ee&&ee.match(/firefox\/(\d+)/),oe={}.watch,Ae=!1;if($)try{var le={};Object.defineProperty(le,"passive",{get:function(){Ae=!0}}),window.addEventListener("test-passive",null,le)}catch(oo){}var ce=function(){return void 0===ae&&(ae=!$&&"undefined"!==typeof e&&(e["process"]&&"server"===e["process"].env.VUE_ENV)),ae},ue=$&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function he(e){return"function"===typeof e&&/native code/.test(e.toString())}var fe,de="undefined"!==typeof Symbol&&he(Symbol)&&"undefined"!==typeof Reflect&&he(Reflect.ownKeys);fe="undefined"!==typeof Set&&he(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var pe=null;function me(e){void 0===e&&(e=null),e||pe&&pe._scope.off(),pe=e,e&&e._scope.on()}var ge=function(){function e(e,t,n,r,i,a,s,o){this.tag=e,this.data=t,this.children=n,this.text=r,this.elm=i,this.ns=void 0,this.context=a,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=t&&t.key,this.componentOptions=s,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=o,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1}return Object.defineProperty(e.prototype,"child",{get:function(){return this.componentInstance},enumerable:!1,configurable:!0}),e}(),ve=function(e){void 0===e&&(e="");var t=new ge;return t.text=e,t.isComment=!0,t};function ye(e){return new ge(void 0,void 0,void 0,String(e))}function xe(e){var t=new ge(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}var be=0,we=[],_e=function(){for(var e=0;e0&&(r=vt(r,"".concat(t||"","_").concat(n)),gt(r[0])&>(c)&&(u[A]=ye(c.text+r[0].text),r.shift()),u.push.apply(u,r)):l(r)?gt(c)?u[A]=ye(c.text+r):""!==r&&u.push(ye(r)):gt(r)&>(c)?u[A]=ye(c.text+r.text):(o(e._isVList)&&s(r.tag)&&a(r.key)&&s(t)&&(r.key="__vlist".concat(t,"_").concat(n,"__")),u.push(r)));return u}function yt(e,t){var n,r,a,o,A=null;if(i(e)||"string"===typeof e)for(A=new Array(e.length),n=0,r=e.length;n0,o=t?!!t.$stable:!s,A=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(o&&i&&i!==r&&A===i.$key&&!s&&!i.$hasNormal)return i;for(var l in a={},t)t[l]&&"$"!==l[0]&&(a[l]=Ft(e,n,l,t[l]))}else a={};for(var c in n)c in a||(a[c]=Nt(n,c));return t&&Object.isExtensible(t)&&(t._normalized=a),q(a,"$stable",o),q(a,"$key",A),q(a,"$hasNormal",s),a}function Ft(e,t,n,r){var a=function(){var t=pe;me(e);var n=arguments.length?r.apply(null,arguments):r({});n=n&&"object"===typeof n&&!i(n)?[n]:mt(n);var a=n&&n[0];return me(t),n&&(!a||1===n.length&&a.isComment&&!Ot(a))?void 0:n};return r.proxy&&Object.defineProperty(t,n,{get:a,enumerable:!0,configurable:!0}),a}function Nt(e,t){return function(){return e[t]}}function zt(e){var t=e.$options,n=t.setup;if(n){var r=e._setupContext=Ht(e);me(e),Ee();var i=on(n,null,[e._props||Ge({}),r],e,"setup");if(Ce(),me(),c(i))t.render=i;else if(u(i))if(e._setupState=i,i.__sfc){var a=e._setupProxy={};for(var s in i)"__sfc"!==s&&Ke(a,i,s)}else for(var s in i)X(s)||Ke(e,i,s);else 0}}function Ht(e){return{get attrs(){if(!e._attrsProxy){var t=e._attrsProxy={};q(t,"_v_attr_proxy",!0),Gt(t,e.$attrs,r,e,"$attrs")}return e._attrsProxy},get listeners(){if(!e._listenersProxy){var t=e._listenersProxy={};Gt(t,e.$listeners,r,e,"$listeners")}return e._listenersProxy},get slots(){return Wt(e)},emit:I(e.$emit,e),expose:function(t){t&&Object.keys(t).forEach((function(n){return Ke(e,t,n)}))}}}function Gt(e,t,n,r,i){var a=!1;for(var s in t)s in e?t[s]!==n[s]&&(a=!0):(a=!0,Vt(e,s,r,i));for(var s in e)s in t||(a=!0,delete e[s]);return a}function Vt(e,t,n,r){Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){return n[r][t]}})}function Wt(e){return e._slotsProxy||Qt(e._slotsProxy={},e.$scopedSlots),e._slotsProxy}function Qt(e,t){for(var n in t)e[n]=t[n];for(var n in e)n in t||delete e[n]}function jt(e){e._vnode=null,e._staticTrees=null;var t=e.$options,n=e.$vnode=t._parentVnode,i=n&&n.context;e.$slots=Rt(t._renderChildren,i),e.$scopedSlots=n?Ut(e.$parent,n.data.scopedSlots,e.$slots):r,e._c=function(t,n,r,i){return tn(e,t,n,r,i,!1)},e.$createElement=function(t,n,r,i){return tn(e,t,n,r,i,!0)};var a=n&&n.data;Fe(e,"$attrs",a&&a.attrs||r,null,!0),Fe(e,"$listeners",t._parentListeners||r,null,!0)}var Yt=null;function Xt(e){Pt(e.prototype),e.prototype.$nextTick=function(e){return yn(e,this)},e.prototype._render=function(){var e,t=this,n=t.$options,r=n.render,a=n._parentVnode;a&&t._isMounted&&(t.$scopedSlots=Ut(t.$parent,a.data.scopedSlots,t.$slots,t.$scopedSlots),t._slotsProxy&&Qt(t._slotsProxy,t.$scopedSlots)),t.$vnode=a;try{me(t),Yt=t,e=r.call(t._renderProxy,t.$createElement)}catch(oo){sn(oo,t,"render"),e=t._vnode}finally{Yt=null,me()}return i(e)&&1===e.length&&(e=e[0]),e instanceof ge||(e=ve()),e.parent=a,e}}function qt(e,t){return(e.__esModule||de&&"Module"===e[Symbol.toStringTag])&&(e=e.default),u(e)?t.extend(e):e}function Zt(e,t,n,r,i){var a=ve();return a.asyncFactory=e,a.asyncMeta={data:t,context:n,children:r,tag:i},a}function Kt(e,t){if(o(e.error)&&s(e.errorComp))return e.errorComp;if(s(e.resolved))return e.resolved;var n=Yt;if(n&&s(e.owners)&&-1===e.owners.indexOf(n)&&e.owners.push(n),o(e.loading)&&s(e.loadingComp))return e.loadingComp;if(n&&!s(e.owners)){var r=e.owners=[n],i=!0,A=null,l=null;n.$on("hook:destroyed",(function(){return b(r,n)}));var c=function(e){for(var t=0,n=r.length;t1?P(n):n;for(var r=P(arguments,1),i='event handler for "'.concat(e,'"'),a=0,s=n.length;adocument.createEvent("Event").timeStamp&&($n=function(){return er.now()})}var tr=function(e,t){if(e.post){if(!t.post)return 1}else if(t.post)return-1;return e.id-t.id};function nr(){var e,t;for(Jn=$n(),qn=!0,Qn.sort(tr),Zn=0;ZnZn&&Qn[n].id>e.id)n--;Qn.splice(n+1,0,e)}else Qn.push(e);Xn||(Xn=!0,yn(nr))}}function or(e){var t=e.$options.provide;if(t){var n=c(t)?t.call(e):t;if(!u(n))return;for(var r=At(e),i=de?Reflect.ownKeys(n):Object.keys(n),a=0;a-1)if(a&&!_(i,"default"))s=!1;else if(""===s||s===D(e)){var A=zr(String,i.type);(A<0||o-1)return this;var n=P(arguments,1);return n.unshift(this),c(e.install)?e.install.apply(e,n):c(e)&&e.apply(null,n),t.push(e),this}}function li(e){e.mixin=function(e){return this.options=Pr(this.options,e),this}}function ci(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,i=e._Ctor||(e._Ctor={});if(i[r])return i[r];var a=dr(e)||dr(n.options);var s=function(e){this._init(e)};return s.prototype=Object.create(n.prototype),s.prototype.constructor=s,s.cid=t++,s.options=Pr(n.options,e),s["super"]=n,s.options.props&&ui(s),s.options.computed&&hi(s),s.extend=n.extend,s.mixin=n.mixin,s.use=n.use,W.forEach((function(e){s[e]=n[e]})),a&&(s.options.components[a]=s),s.superOptions=n.options,s.extendOptions=e,s.sealedOptions=R({},s.options),i[r]=s,s}}function ui(e){var t=e.options.props;for(var n in t)Gr(e.prototype,"_props",n)}function hi(e){var t=e.options.computed;for(var n in t)qr(e.prototype,n,t[n])}function fi(e){W.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&f(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&c(n)&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}))}function di(e){return e&&(dr(e.Ctor.options)||e.tag)}function pi(e,t){return i(e)?e.indexOf(t)>-1:"string"===typeof e?e.split(",").indexOf(t)>-1:!!d(e)&&e.test(t)}function mi(e,t){var n=e.cache,r=e.keys,i=e._vnode;for(var a in n){var s=n[a];if(s){var o=s.name;o&&!t(o)&&gi(n,a,r,i)}}}function gi(e,t,n,r){var i=e[t];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),e[t]=null,b(n,t)}ri(oi),ti(oi),Rn(oi),Fn(oi),Xt(oi);var vi=[String,RegExp,Array],yi={name:"keep-alive",abstract:!0,props:{include:vi,exclude:vi,max:[String,Number]},methods:{cacheVNode:function(){var e=this,t=e.cache,n=e.keys,r=e.vnodeToCache,i=e.keyToCache;if(r){var a=r.tag,s=r.componentInstance,o=r.componentOptions;t[i]={name:di(o),tag:a,componentInstance:s},n.push(i),this.max&&n.length>parseInt(this.max)&&gi(t,n[0],n,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)gi(this.cache,e,this.keys)},mounted:function(){var e=this;this.cacheVNode(),this.$watch("include",(function(t){mi(e,(function(e){return pi(t,e)}))})),this.$watch("exclude",(function(t){mi(e,(function(e){return!pi(t,e)}))}))},updated:function(){this.cacheVNode()},render:function(){var e=this.$slots.default,t=Jt(e),n=t&&t.componentOptions;if(n){var r=di(n),i=this,a=i.include,s=i.exclude;if(a&&(!r||!pi(a,r))||s&&r&&pi(s,r))return t;var o=this,A=o.cache,l=o.keys,c=null==t.key?n.Ctor.cid+(n.tag?"::".concat(n.tag):""):t.key;A[c]?(t.componentInstance=A[c].componentInstance,b(l,c),l.push(c)):(this.vnodeToCache=t,this.keyToCache=c),t.data.keepAlive=!0}return t||e&&e[0]}},xi={KeepAlive:yi};function bi(e){var t={get:function(){return j}};Object.defineProperty(e,"config",t),e.util={warn:wr,extend:R,mergeOptions:Pr,defineReactive:Fe},e.set=Ne,e.delete=ze,e.nextTick=yn,e.observable=function(e){return Ue(e),e},e.options=Object.create(null),W.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,R(e.options.components,xi),Ai(e),li(e),ci(e),fi(e)}bi(oi),Object.defineProperty(oi.prototype,"$isServer",{get:ce}),Object.defineProperty(oi.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(oi,"FunctionalRenderContext",{value:cr}),oi.version=wn;var wi=y("style,class"),_i=y("input,textarea,option,select,progress"),Mi=function(e,t,n){return"value"===n&&_i(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},Si=y("contenteditable,draggable,spellcheck"),Ei=y("events,caret,typing,plaintext-only"),Ci=function(e,t){return Ii(t)||"false"===t?"false":"contenteditable"===e&&Ei(t)?t:"true"},Ti=y("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),Di="http://www.w3.org/1999/xlink",Bi=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Li=function(e){return Bi(e)?e.slice(6,e.length):""},Ii=function(e){return null==e||!1===e};function Pi(e){var t=e.data,n=e,r=e;while(s(r.componentInstance))r=r.componentInstance._vnode,r&&r.data&&(t=Ri(r.data,t));while(s(n=n.parent))n&&n.data&&(t=Ri(t,n.data));return ki(t.staticClass,t.class)}function Ri(e,t){return{staticClass:Oi(e.staticClass,t.staticClass),class:s(e.class)?[e.class,t.class]:t.class}}function ki(e,t){return s(e)||s(t)?Oi(e,Ui(t)):""}function Oi(e,t){return e?t?e+" "+t:e:t||""}function Ui(e){return Array.isArray(e)?Fi(e):u(e)?Ni(e):"string"===typeof e?e:""}function Fi(e){for(var t,n="",r=0,i=e.length;r-1?Qi[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Qi[e]=/HTMLUnknownElement/.test(t.toString())}var Yi=y("text,number,password,search,email,tel,url");function Xi(e){if("string"===typeof e){var t=document.querySelector(e);return t||document.createElement("div")}return e}function qi(e,t){var n=document.createElement(e);return"select"!==e||t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n}function Zi(e,t){return document.createElementNS(zi[e],t)}function Ki(e){return document.createTextNode(e)}function Ji(e){return document.createComment(e)}function $i(e,t,n){e.insertBefore(t,n)}function ea(e,t){e.removeChild(t)}function ta(e,t){e.appendChild(t)}function na(e){return e.parentNode}function ra(e){return e.nextSibling}function ia(e){return e.tagName}function aa(e,t){e.textContent=t}function sa(e,t){e.setAttribute(t,"")}var oa=Object.freeze({__proto__:null,createElement:qi,createElementNS:Zi,createTextNode:Ki,createComment:Ji,insertBefore:$i,removeChild:ea,appendChild:ta,parentNode:na,nextSibling:ra,tagName:ia,setTextContent:aa,setStyleScope:sa}),Aa={create:function(e,t){la(t)},update:function(e,t){e.data.ref!==t.data.ref&&(la(e,!0),la(t))},destroy:function(e){la(e,!0)}};function la(e,t){var n=e.data.ref;if(s(n)){var r=e.context,a=e.componentInstance||e.elm,o=t?null:a,A=t?void 0:a;if(c(n))on(n,r,[o],r,"template ref function");else{var l=e.data.refInFor,u="string"===typeof n||"number"===typeof n,h=Xe(n),f=r.$refs;if(u||h)if(l){var d=u?f[n]:n.value;t?i(d)&&b(d,a):i(d)?d.includes(a)||d.push(a):u?(f[n]=[a],ca(r,n,f[n])):n.value=[a]}else if(u){if(t&&f[n]!==a)return;f[n]=A,ca(r,n,o)}else if(h){if(t&&n.value!==a)return;n.value=o}else 0}}}function ca(e,t,n){var r=e._setupState;r&&_(r,t)&&(Xe(r[t])?r[t].value=n:r[t]=n)}var ua=new ge("",{},[]),ha=["create","activate","update","remove","destroy"];function fa(e,t){return e.key===t.key&&e.asyncFactory===t.asyncFactory&&(e.tag===t.tag&&e.isComment===t.isComment&&s(e.data)===s(t.data)&&da(e,t)||o(e.isAsyncPlaceholder)&&a(t.asyncFactory.error))}function da(e,t){if("input"!==e.tag)return!0;var n,r=s(n=e.data)&&s(n=n.attrs)&&n.type,i=s(n=t.data)&&s(n=n.attrs)&&n.type;return r===i||Yi(r)&&Yi(i)}function pa(e,t,n){var r,i,a={};for(r=t;r<=n;++r)i=e[r].key,s(i)&&(a[i]=r);return a}function ma(e){var t,n,r={},A=e.modules,c=e.nodeOps;for(t=0;tp?(u=a(n[v+1])?null:n[v+1].elm,M(e,u,n,f,v,r)):f>v&&E(t,h,p)}function D(e,t,n,r){for(var i=n;i-1?Ca(e,t,n):Ti(t)?Ii(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):Si(t)?e.setAttribute(t,Ci(t,n)):Bi(t)?Ii(n)?e.removeAttributeNS(Di,Li(t)):e.setAttributeNS(Di,t,n):Ca(e,t,n)}function Ca(e,t,n){if(Ii(n))e.removeAttribute(t);else{if(te&&!ne&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var r=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",r)};e.addEventListener("input",r),e.__ieph=!0}e.setAttribute(t,n)}}var Ta={create:Sa,update:Sa};function Da(e,t){var n=t.elm,r=t.data,i=e.data;if(!(a(r.staticClass)&&a(r.class)&&(a(i)||a(i.staticClass)&&a(i.class)))){var o=Pi(t),A=n._transitionClasses;s(A)&&(o=Oi(o,Ui(A))),o!==n._prevClass&&(n.setAttribute("class",o),n._prevClass=o)}}var Ba,La={create:Da,update:Da},Ia="__r",Pa="__c";function Ra(e){if(s(e[Ia])){var t=te?"change":"input";e[t]=[].concat(e[Ia],e[t]||[]),delete e[Ia]}s(e[Pa])&&(e.change=[].concat(e[Pa],e.change||[]),delete e[Pa])}function ka(e,t,n){var r=Ba;return function i(){var a=t.apply(null,arguments);null!==a&&Fa(e,i,n,r)}}var Oa=un&&!(se&&Number(se[1])<=53);function Ua(e,t,n,r){if(Oa){var i=Jn,a=t;t=a._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=i||e.timeStamp<=0||e.target.ownerDocument!==document)return a.apply(this,arguments)}}Ba.addEventListener(e,t,Ae?{capture:n,passive:r}:n)}function Fa(e,t,n,r){(r||Ba).removeEventListener(e,t._wrapper||t,n)}function Na(e,t){if(!a(e.data.on)||!a(t.data.on)){var n=t.data.on||{},r=e.data.on||{};Ba=t.elm||e.elm,Ra(n),ut(n,r,Ua,Fa,ka,t.context),Ba=void 0}}var za,Ha={create:Na,update:Na,destroy:function(e){return Na(e,ua)}};function Ga(e,t){if(!a(e.data.domProps)||!a(t.data.domProps)){var n,r,i=t.elm,A=e.data.domProps||{},l=t.data.domProps||{};for(n in(s(l.__ob__)||o(l._v_attr_proxy))&&(l=t.data.domProps=R({},l)),A)n in l||(i[n]="");for(n in l){if(r=l[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),r===A[n])continue;1===i.childNodes.length&&i.removeChild(i.childNodes[0])}if("value"===n&&"PROGRESS"!==i.tagName){i._value=r;var c=a(r)?"":String(r);Va(i,c)&&(i.value=c)}else if("innerHTML"===n&&Gi(i.tagName)&&a(i.innerHTML)){za=za||document.createElement("div"),za.innerHTML="".concat(r,"");var u=za.firstChild;while(i.firstChild)i.removeChild(i.firstChild);while(u.firstChild)i.appendChild(u.firstChild)}else if(r!==A[n])try{i[n]=r}catch(oo){}}}}function Va(e,t){return!e.composing&&("OPTION"===e.tagName||Wa(e,t)||Qa(e,t))}function Wa(e,t){var n=!0;try{n=document.activeElement!==e}catch(oo){}return n&&e.value!==t}function Qa(e,t){var n=e.value,r=e._vModifiers;if(s(r)){if(r.number)return v(n)!==v(t);if(r.trim)return n.trim()!==t.trim()}return n!==t}var ja={create:Ga,update:Ga},Ya=M((function(e){var t={},n=/;(?![^(]*\))/g,r=/:(.+)/;return e.split(n).forEach((function(e){if(e){var n=e.split(r);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}));function Xa(e){var t=qa(e.style);return e.staticStyle?R(e.staticStyle,t):t}function qa(e){return Array.isArray(e)?k(e):"string"===typeof e?Ya(e):e}function Za(e,t){var n,r={};if(t){var i=e;while(i.componentInstance)i=i.componentInstance._vnode,i&&i.data&&(n=Xa(i.data))&&R(r,n)}(n=Xa(e.data))&&R(r,n);var a=e;while(a=a.parent)a.data&&(n=Xa(a.data))&&R(r,n);return r}var Ka,Ja=/^--/,$a=/\s*!important$/,es=function(e,t,n){if(Ja.test(t))e.style.setProperty(t,n);else if($a.test(n))e.style.setProperty(D(t),n.replace($a,""),"important");else{var r=ns(t);if(Array.isArray(n))for(var i=0,a=n.length;i-1?t.split(as).forEach((function(t){return e.classList.add(t)})):e.classList.add(t);else{var n=" ".concat(e.getAttribute("class")||""," ");n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function os(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(as).forEach((function(t){return e.classList.remove(t)})):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{var n=" ".concat(e.getAttribute("class")||""," "),r=" "+t+" ";while(n.indexOf(r)>=0)n=n.replace(r," ");n=n.trim(),n?e.setAttribute("class",n):e.removeAttribute("class")}}function As(e){if(e){if("object"===typeof e){var t={};return!1!==e.css&&R(t,ls(e.name||"v")),R(t,e),t}return"string"===typeof e?ls(e):void 0}}var ls=M((function(e){return{enterClass:"".concat(e,"-enter"),enterToClass:"".concat(e,"-enter-to"),enterActiveClass:"".concat(e,"-enter-active"),leaveClass:"".concat(e,"-leave"),leaveToClass:"".concat(e,"-leave-to"),leaveActiveClass:"".concat(e,"-leave-active")}})),cs=$&&!ne,us="transition",hs="animation",fs="transition",ds="transitionend",ps="animation",ms="animationend";cs&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(fs="WebkitTransition",ds="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(ps="WebkitAnimation",ms="webkitAnimationEnd"));var gs=$?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function vs(e){gs((function(){gs(e)}))}function ys(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),ss(e,t))}function xs(e,t){e._transitionClasses&&b(e._transitionClasses,t),os(e,t)}function bs(e,t,n){var r=_s(e,t),i=r.type,a=r.timeout,s=r.propCount;if(!i)return n();var o=i===us?ds:ms,A=0,l=function(){e.removeEventListener(o,c),n()},c=function(t){t.target===e&&++A>=s&&l()};setTimeout((function(){A0&&(n=us,c=s,u=a.length):t===hs?l>0&&(n=hs,c=l,u=A.length):(c=Math.max(s,l),n=c>0?s>l?us:hs:null,u=n?n===us?a.length:A.length:0);var h=n===us&&ws.test(r[fs+"Property"]);return{type:n,timeout:c,propCount:u,hasTransform:h}}function Ms(e,t){while(e.length1}function Bs(e,t){!0!==t.data.show&&Es(t)}var Ls=$?{create:Bs,activate:Bs,remove:function(e,t){!0!==e.data.show?Cs(e,t):t()}}:{},Is=[Ta,La,Ha,ja,is,Ls],Ps=Is.concat(Ma),Rs=ma({nodeOps:oa,modules:Ps});ne&&document.addEventListener("selectionchange",(function(){var e=document.activeElement;e&&e.vmodel&&Gs(e,"input")}));var ks={inserted:function(e,t,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?ht(n,"postpatch",(function(){ks.componentUpdated(e,t,n)})):Os(e,t,n.context),e._vOptions=[].map.call(e.options,Ns)):("textarea"===n.tag||Yi(e.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||(e.addEventListener("compositionstart",zs),e.addEventListener("compositionend",Hs),e.addEventListener("change",Hs),ne&&(e.vmodel=!0)))},componentUpdated:function(e,t,n){if("select"===n.tag){Os(e,t,n.context);var r=e._vOptions,i=e._vOptions=[].map.call(e.options,Ns);if(i.some((function(e,t){return!N(e,r[t])}))){var a=e.multiple?t.value.some((function(e){return Fs(e,i)})):t.value!==t.oldValue&&Fs(t.value,i);a&&Gs(e,"change")}}}};function Os(e,t,n){Us(e,t,n),(te||re)&&setTimeout((function(){Us(e,t,n)}),0)}function Us(e,t,n){var r=t.value,i=e.multiple;if(!i||Array.isArray(r)){for(var a,s,o=0,A=e.options.length;o-1,s.selected!==a&&(s.selected=a);else if(N(Ns(s),r))return void(e.selectedIndex!==o&&(e.selectedIndex=o));i||(e.selectedIndex=-1)}}function Fs(e,t){return t.every((function(t){return!N(t,e)}))}function Ns(e){return"_value"in e?e._value:e.value}function zs(e){e.target.composing=!0}function Hs(e){e.target.composing&&(e.target.composing=!1,Gs(e.target,"input"))}function Gs(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function Vs(e){return!e.componentInstance||e.data&&e.data.transition?e:Vs(e.componentInstance._vnode)}var Ws={bind:function(e,t,n){var r=t.value;n=Vs(n);var i=n.data&&n.data.transition,a=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&i?(n.data.show=!0,Es(n,(function(){e.style.display=a}))):e.style.display=r?a:"none"},update:function(e,t,n){var r=t.value,i=t.oldValue;if(!r!==!i){n=Vs(n);var a=n.data&&n.data.transition;a?(n.data.show=!0,r?Es(n,(function(){e.style.display=e.__vOriginalDisplay})):Cs(n,(function(){e.style.display="none"}))):e.style.display=r?e.__vOriginalDisplay:"none"}},unbind:function(e,t,n,r,i){i||(e.style.display=e.__vOriginalDisplay)}},Qs={model:ks,show:Ws},js={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Ys(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?Ys(Jt(t.children)):e}function Xs(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var i=n._parentListeners;for(var r in i)t[E(r)]=i[r];return t}function qs(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}function Zs(e){while(e=e.parent)if(e.data.transition)return!0}function Ks(e,t){return t.key===e.key&&t.tag===e.tag}var Js=function(e){return e.tag||Ot(e)},$s=function(e){return"show"===e.name},eo={name:"transition",props:js,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(Js),n.length)){0;var r=this.mode;0;var i=n[0];if(Zs(this.$vnode))return i;var a=Ys(i);if(!a)return i;if(this._leaving)return qs(e,i);var s="__transition-".concat(this._uid,"-");a.key=null==a.key?a.isComment?s+"comment":s+a.tag:l(a.key)?0===String(a.key).indexOf(s)?a.key:s+a.key:a.key;var o=(a.data||(a.data={})).transition=Xs(this),A=this._vnode,c=Ys(A);if(a.data.directives&&a.data.directives.some($s)&&(a.data.show=!0),c&&c.data&&!Ks(a,c)&&!Ot(c)&&(!c.componentInstance||!c.componentInstance._vnode.isComment)){var u=c.data.transition=R({},o);if("out-in"===r)return this._leaving=!0,ht(u,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),qs(e,i);if("in-out"===r){if(Ot(a))return A;var h,f=function(){h()};ht(o,"afterEnter",f),ht(o,"enterCancelled",f),ht(u,"delayLeave",(function(e){h=e}))}}return i}}},to=R({tag:String,moveClass:String},js);delete to.mode;var no={props:to,beforeMount:function(){var e=this,t=this._update;this._update=function(n,r){var i=On(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,i(),t.call(e,n,r)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],a=this.children=[],s=Xs(this),o=0;o0&&r[0]<4?1:+(r[0]+r[1])),!i&&s&&(r=s.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=s.match(/Chrome\/(\d+)/),r&&(i=+r[1]))),e.exports=i},"2f62":function(e,t,n){"use strict";(function(e){ /*! * vuex v3.6.2 * (c) 2021 Evan You * @license MIT */ function n(e){var t=Number(e.version.split(".")[0]);if(t>=2)e.mixin({beforeCreate:r});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[r].concat(e.init):r,n.call(this,e)}}function r(){var e=this.$options;e.store?this.$store="function"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}var r="undefined"!==typeof window?window:"undefined"!==typeof e?e:{},i=r.__VUE_DEVTOOLS_GLOBAL_HOOK__;function a(e){i&&(e._devtoolHook=i,i.emit("vuex:init",e),i.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,t){i.emit("vuex:mutation",e,t)}),{prepend:!0}),e.subscribeAction((function(e,t){i.emit("vuex:action",e,t)}),{prepend:!0}))}function s(e,t){return e.filter(t)[0]}function o(e,t){if(void 0===t&&(t=[]),null===e||"object"!==typeof e)return e;var n=s(t,(function(t){return t.original===e}));if(n)return n.copy;var r=Array.isArray(e)?[]:{};return t.push({original:e,copy:r}),Object.keys(e).forEach((function(n){r[n]=o(e[n],t)})),r}function A(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function l(e){return null!==e&&"object"===typeof e}function c(e){return e&&"function"===typeof e.then}function u(e,t){return function(){return e(t)}}var h=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"===typeof n?n():n)||{}},f={namespaced:{configurable:!0}};f.namespaced.get=function(){return!!this._rawModule.namespaced},h.prototype.addChild=function(e,t){this._children[e]=t},h.prototype.removeChild=function(e){delete this._children[e]},h.prototype.getChild=function(e){return this._children[e]},h.prototype.hasChild=function(e){return e in this._children},h.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},h.prototype.forEachChild=function(e){A(this._children,e)},h.prototype.forEachGetter=function(e){this._rawModule.getters&&A(this._rawModule.getters,e)},h.prototype.forEachAction=function(e){this._rawModule.actions&&A(this._rawModule.actions,e)},h.prototype.forEachMutation=function(e){this._rawModule.mutations&&A(this._rawModule.mutations,e)},Object.defineProperties(h.prototype,f);var d=function(e){this.register([],e,!1)};function p(e,t,n){if(t.update(n),n.modules)for(var r in n.modules){if(!t.getChild(r))return void 0;p(e.concat(r),t.getChild(r),n.modules[r])}}d.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},d.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,n){return t=t.getChild(n),e+(t.namespaced?n+"/":"")}),"")},d.prototype.update=function(e){p([],this.root,e)},d.prototype.register=function(e,t,n){var r=this;void 0===n&&(n=!0);var i=new h(t,n);if(0===e.length)this.root=i;else{var a=this.get(e.slice(0,-1));a.addChild(e[e.length-1],i)}t.modules&&A(t.modules,(function(t,i){r.register(e.concat(i),t,n)}))},d.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1],r=t.getChild(n);r&&r.runtime&&t.removeChild(n)},d.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return!!t&&t.hasChild(n)};var m;var g=function(e){var t=this;void 0===e&&(e={}),!m&&"undefined"!==typeof window&&window.Vue&&L(window.Vue);var n=e.plugins;void 0===n&&(n=[]);var r=e.strict;void 0===r&&(r=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new d(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new m,this._makeLocalGettersCache=Object.create(null);var i=this,s=this,o=s.dispatch,A=s.commit;this.dispatch=function(e,t){return o.call(i,e,t)},this.commit=function(e,t,n){return A.call(i,e,t,n)},this.strict=r;var l=this._modules.root.state;w(this,l,[],this._modules.root),b(this,l),n.forEach((function(e){return e(t)}));var c=void 0!==e.devtools?e.devtools:m.config.devtools;c&&a(this)},v={state:{configurable:!0}};function y(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function x(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;w(e,n,[],e._modules.root,!0),b(e,n,t)}function b(e,t,n){var r=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var i=e._wrappedGetters,a={};A(i,(function(t,n){a[n]=u(t,e),Object.defineProperty(e.getters,n,{get:function(){return e._vm[n]},enumerable:!0})}));var s=m.config.silent;m.config.silent=!0,e._vm=new m({data:{$$state:t},computed:a}),m.config.silent=s,e.strict&&T(e),r&&(n&&e._withCommit((function(){r._data.$$state=null})),m.nextTick((function(){return r.$destroy()})))}function w(e,t,n,r,i){var a=!n.length,s=e._modules.getNamespace(n);if(r.namespaced&&(e._modulesNamespaceMap[s],e._modulesNamespaceMap[s]=r),!a&&!i){var o=D(t,n.slice(0,-1)),A=n[n.length-1];e._withCommit((function(){m.set(o,A,r.state)}))}var l=r.context=_(e,s,n);r.forEachMutation((function(t,n){var r=s+n;S(e,r,t,l)})),r.forEachAction((function(t,n){var r=t.root?n:s+n,i=t.handler||t;E(e,r,i,l)})),r.forEachGetter((function(t,n){var r=s+n;C(e,r,t,l)})),r.forEachChild((function(r,a){w(e,t,n.concat(a),r,i)}))}function _(e,t,n){var r=""===t,i={dispatch:r?e.dispatch:function(n,r,i){var a=B(n,r,i),s=a.payload,o=a.options,A=a.type;return o&&o.root||(A=t+A),e.dispatch(A,s)},commit:r?e.commit:function(n,r,i){var a=B(n,r,i),s=a.payload,o=a.options,A=a.type;o&&o.root||(A=t+A),e.commit(A,s,o)}};return Object.defineProperties(i,{getters:{get:r?function(){return e.getters}:function(){return M(e,t)}},state:{get:function(){return D(e.state,n)}}}),i}function M(e,t){if(!e._makeLocalGettersCache[t]){var n={},r=t.length;Object.keys(e.getters).forEach((function(i){if(i.slice(0,r)===t){var a=i.slice(r);Object.defineProperty(n,a,{get:function(){return e.getters[i]},enumerable:!0})}})),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function S(e,t,n,r){var i=e._mutations[t]||(e._mutations[t]=[]);i.push((function(t){n.call(e,r.state,t)}))}function E(e,t,n,r){var i=e._actions[t]||(e._actions[t]=[]);i.push((function(t){var i=n.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},t);return c(i)||(i=Promise.resolve(i)),e._devtoolHook?i.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):i}))}function C(e,t,n,r){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(e){return n(r.state,r.getters,e.state,e.getters)})}function T(e){e._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}function D(e,t){return t.reduce((function(e,t){return e[t]}),e)}function B(e,t,n){return l(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}function L(e){m&&e===m||(m=e,n(m))}v.state.get=function(){return this._vm._data.$$state},v.state.set=function(e){0},g.prototype.commit=function(e,t,n){var r=this,i=B(e,t,n),a=i.type,s=i.payload,o=(i.options,{type:a,payload:s}),A=this._mutations[a];A&&(this._withCommit((function(){A.forEach((function(e){e(s)}))})),this._subscribers.slice().forEach((function(e){return e(o,r.state)})))},g.prototype.dispatch=function(e,t){var n=this,r=B(e,t),i=r.type,a=r.payload,s={type:i,payload:a},o=this._actions[i];if(o){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(s,n.state)}))}catch(l){0}var A=o.length>1?Promise.all(o.map((function(e){return e(a)}))):o[0](a);return new Promise((function(e,t){A.then((function(t){try{n._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(s,n.state)}))}catch(l){0}e(t)}),(function(e){try{n._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(s,n.state,e)}))}catch(l){0}t(e)}))}))}},g.prototype.subscribe=function(e,t){return y(e,this._subscribers,t)},g.prototype.subscribeAction=function(e,t){var n="function"===typeof e?{before:e}:e;return y(n,this._actionSubscribers,t)},g.prototype.watch=function(e,t,n){var r=this;return this._watcherVM.$watch((function(){return e(r.state,r.getters)}),t,n)},g.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._vm._data.$$state=e}))},g.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"===typeof e&&(e=[e]),this._modules.register(e,t),w(this,this.state,e,this._modules.get(e),n.preserveState),b(this,this.state)},g.prototype.unregisterModule=function(e){var t=this;"string"===typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){var n=D(t.state,e.slice(0,-1));m.delete(n,e[e.length-1])})),x(this)},g.prototype.hasModule=function(e){return"string"===typeof e&&(e=[e]),this._modules.isRegistered(e)},g.prototype.hotUpdate=function(e){this._modules.update(e),x(this,!0)},g.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(g.prototype,v);var I=N((function(e,t){var n={};return U(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var r=z(this.$store,"mapState",e);if(!r)return;t=r.context.state,n=r.context.getters}return"function"===typeof i?i.call(this,t,n):t[i]},n[r].vuex=!0})),n})),P=N((function(e,t){var n={};return U(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var r=this.$store.commit;if(e){var a=z(this.$store,"mapMutations",e);if(!a)return;r=a.context.commit}return"function"===typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}})),n})),R=N((function(e,t){var n={};return U(t).forEach((function(t){var r=t.key,i=t.val;i=e+i,n[r]=function(){if(!e||z(this.$store,"mapGetters",e))return this.$store.getters[i]},n[r].vuex=!0})),n})),k=N((function(e,t){var n={};return U(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var r=this.$store.dispatch;if(e){var a=z(this.$store,"mapActions",e);if(!a)return;r=a.context.dispatch}return"function"===typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}})),n})),O=function(e){return{mapState:I.bind(null,e),mapGetters:R.bind(null,e),mapMutations:P.bind(null,e),mapActions:k.bind(null,e)}};function U(e){return F(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}function F(e){return Array.isArray(e)||l(e)}function N(e){return function(t,n){return"string"!==typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function z(e,t,n){var r=e._modulesNamespaceMap[n];return r}function H(e){void 0===e&&(e={});var t=e.collapsed;void 0===t&&(t=!0);var n=e.filter;void 0===n&&(n=function(e,t,n){return!0});var r=e.transformer;void 0===r&&(r=function(e){return e});var i=e.mutationTransformer;void 0===i&&(i=function(e){return e});var a=e.actionFilter;void 0===a&&(a=function(e,t){return!0});var s=e.actionTransformer;void 0===s&&(s=function(e){return e});var A=e.logMutations;void 0===A&&(A=!0);var l=e.logActions;void 0===l&&(l=!0);var c=e.logger;return void 0===c&&(c=console),function(e){var u=o(e.state);"undefined"!==typeof c&&(A&&e.subscribe((function(e,a){var s=o(a);if(n(e,u,s)){var A=W(),l=i(e),h="mutation "+e.type+A;G(c,h,t),c.log("%c prev state","color: #9E9E9E; font-weight: bold",r(u)),c.log("%c mutation","color: #03A9F4; font-weight: bold",l),c.log("%c next state","color: #4CAF50; font-weight: bold",r(s)),V(c)}u=s})),l&&e.subscribeAction((function(e,n){if(a(e,n)){var r=W(),i=s(e),o="action "+e.type+r;G(c,o,t),c.log("%c action","color: #03A9F4; font-weight: bold",i),V(c)}})))}}function G(e,t,n){var r=n?e.groupCollapsed:e.group;try{r.call(e,t)}catch(i){e.log(t)}}function V(e){try{e.groupEnd()}catch(t){e.log("—— log end ——")}}function W(){var e=new Date;return" @ "+j(e.getHours(),2)+":"+j(e.getMinutes(),2)+":"+j(e.getSeconds(),2)+"."+j(e.getMilliseconds(),3)}function Q(e,t){return new Array(t+1).join(e)}function j(e,t){return Q("0",t-e.toString().length)+e}var Y={Store:g,install:L,version:"3.6.2",mapState:I,mapMutations:P,mapGetters:R,mapActions:k,createNamespacedHelpers:O,createLogger:H};t["a"]=Y}).call(this,n("c8ba"))},"2fe1":function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n("2b0e"); /** * vue-class-component v7.2.6 * (c) 2015-present Evan You * @license MIT */function i(e){return i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e){return o(e)||A(e)||l()}function o(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t1&&void 0!==arguments[1]?arguments[1]:{};t.name=t.name||e._componentTag||e.name;var n=e.prototype;Object.getOwnPropertyNames(n).forEach((function(e){if("constructor"!==e)if(v.indexOf(e)>-1)t[e]=n[e];else{var r=Object.getOwnPropertyDescriptor(n,e);void 0!==r.value?"function"===typeof r.value?(t.methods||(t.methods={}))[e]=r.value:(t.mixins||(t.mixins=[])).push({data:function(){return a({},e,r.value)}}):(r.get||r.set)&&((t.computed||(t.computed={}))[e]={get:r.get,set:r.set})}})),(t.mixins||(t.mixins=[])).push({data:function(){return g(this,e)}});var i=e.__decorators__;i&&(i.forEach((function(e){return e(t)})),delete e.__decorators__);var s=Object.getPrototypeOf(e.prototype),o=s instanceof r["a"]?s.constructor:r["a"],A=o.extend(t);return b(A,e,o),c()&&u(A,e),A}var x={prototype:!0,arguments:!0,callee:!0,caller:!0};function b(e,t,n){Object.getOwnPropertyNames(t).forEach((function(r){if(!x[r]){var i=Object.getOwnPropertyDescriptor(e,r);if(!i||i.configurable){var a=Object.getOwnPropertyDescriptor(t,r);if(!d){if("cid"===r)return;var s=Object.getOwnPropertyDescriptor(n,r);if(!m(a.value)&&s&&s.value===a.value)return}0,Object.defineProperty(e,r,a)}}}))}function w(e){return"function"===typeof e?y(e):function(t){return y(t,e)}}w.registerHooks=function(e){v.push.apply(v,s(e))},t["b"]=w},"342f":function(e,t,n){var r=n("d066");e.exports=r("navigator","userAgent")||""},3511:function(e,t){var n=TypeError,r=9007199254740991;e.exports=function(e){if(e>r)throw n("Maximum allowed index exceeded");return e}},"36a7":function(e,t,n){},"3a34":function(e,t,n){"use strict";var r=n("83ab"),i=n("e8b5"),a=TypeError,s=Object.getOwnPropertyDescriptor,o=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=o?function(e,t){if(i(e)&&!s(e,"length").writable)throw a("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},"3a9b":function(e,t,n){var r=n("e330");e.exports=r({}.isPrototypeOf)},"3bbe":function(e,t,n){var r=n("1626"),i=String,a=TypeError;e.exports=function(e){if("object"==typeof e||r(e))return e;throw a("Can't set "+i(e)+" as a prototype")}},"3c5d":function(e,t,n){"use strict";var r=n("da84"),i=n("c65b"),a=n("ebb5"),s=n("07fa"),o=n("182d"),A=n("7b0b"),l=n("d039"),c=r.RangeError,u=r.Int8Array,h=u&&u.prototype,f=h&&h.set,d=a.aTypedArray,p=a.exportTypedArrayMethod,m=!l((function(){var e=new Uint8ClampedArray(2);return i(f,e,{length:1,0:3},1),3!==e[1]})),g=m&&a.NATIVE_ARRAY_BUFFER_VIEWS&&l((function(){var e=new u(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]}));p("set",(function(e){d(this);var t=o(arguments.length>1?arguments[1]:void 0,1),n=A(e);if(m)return i(f,this,n,t);var r=this.length,a=s(n),l=0;if(a+t>r)throw c("Wrong length");while(lc)if(o=A[c++],o!=o)return!0}else for(;l>c;c++)if((e||c in A)&&A[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:s(!0),indexOf:s(!1)}},"50c4":function(e,t,n){var r=n("5926"),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},5692:function(e,t,n){var r=n("c430"),i=n("c6cd");(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.26.1",mode:r?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.26.1/LICENSE",source:"https://github.com/zloirock/core-js"})},"56ef":function(e,t,n){var r=n("d066"),i=n("e330"),a=n("241c"),s=n("7418"),o=n("825a"),A=i([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=a.f(o(e)),n=s.f;return n?A(t,n(e)):t}},"577e":function(e,t,n){var r=n("f5df"),i=String;e.exports=function(e){if("Symbol"===r(e))throw TypeError("Cannot convert a Symbol value to a string");return i(e)}},5926:function(e,t,n){var r=n("b42e");e.exports=function(e){var t=+e;return t!==t||0===t?0:r(t)}},"59ed":function(e,t,n){var r=n("1626"),i=n("0d51"),a=TypeError;e.exports=function(e){if(r(e))return e;throw a(i(e)+" is not a function")}},"5a89":function(e,t,n){"use strict";n.d(t,"a",(function(){return U})),n.d(t,"b",(function(){return Xc})),n.d(t,"c",(function(){return u})),n.d(t,"d",(function(){return gt})),n.d(t,"e",(function(){return Ir})),n.d(t,"f",(function(){return Vr})),n.d(t,"g",(function(){return pi})),n.d(t,"h",(function(){return lc})),n.d(t,"i",(function(){return se})),n.d(t,"j",(function(){return tn})),n.d(t,"k",(function(){return Nc})),n.d(t,"l",(function(){return y})),n.d(t,"m",(function(){return cc})),n.d(t,"n",(function(){return Ac})),n.d(t,"o",(function(){return hu})),n.d(t,"p",(function(){return Le})),n.d(t,"q",(function(){return ec})),n.d(t,"r",(function(){return Yc})),n.d(t,"s",(function(){return h})),n.d(t,"t",(function(){return z})),n.d(t,"u",(function(){return Tt})),n.d(t,"v",(function(){return Uc})),n.d(t,"w",(function(){return xe})),n.d(t,"x",(function(){return c})),n.d(t,"y",(function(){return G})),n.d(t,"z",(function(){return H})),n.d(t,"A",(function(){return be})),n.d(t,"B",(function(){return F})),n.d(t,"C",(function(){return N})),n.d(t,"D",(function(){return pt})),n.d(t,"E",(function(){return ue})),n.d(t,"F",(function(){return fe})),n.d(t,"G",(function(){return Rc})),n.d(t,"H",(function(){return Ic})),n.d(t,"I",(function(){return Te})),n.d(t,"J",(function(){return Tr})),n.d(t,"K",(function(){return Wn})),n.d(t,"L",(function(){return ri})),n.d(t,"M",(function(){return Dr})),n.d(t,"N",(function(){return Gl})),n.d(t,"O",(function(){return pc})),n.d(t,"P",(function(){return dc})),n.d(t,"Q",(function(){return fc})),n.d(t,"R",(function(){return Ae})),n.d(t,"S",(function(){return O})),n.d(t,"T",(function(){return d})),n.d(t,"U",(function(){return V})),n.d(t,"V",(function(){return pr})),n.d(t,"W",(function(){return E})),n.d(t,"X",(function(){return B})),n.d(t,"Y",(function(){return bo})),n.d(t,"Z",(function(){return A})),n.d(t,"ab",(function(){return mi})),n.d(t,"bb",(function(){return Li})),n.d(t,"cb",(function(){return r})),n.d(t,"db",(function(){return vt})),n.d(t,"eb",(function(){return Ce})),n.d(t,"fb",(function(){return Re})),n.d(t,"gb",(function(){return Au})),n.d(t,"hb",(function(){return Ie})),n.d(t,"ib",(function(){return ae})),n.d(t,"jb",(function(){return uc})),n.d(t,"kb",(function(){return oc})),n.d(t,"lb",(function(){return di})),n.d(t,"mb",(function(){return kn})),n.d(t,"nb",(function(){return hc})),n.d(t,"ob",(function(){return g})),n.d(t,"pb",(function(){return An})),n.d(t,"qb",(function(){return zc})),n.d(t,"rb",(function(){return ou})),n.d(t,"sb",(function(){return de})),n.d(t,"tb",(function(){return Me})),n.d(t,"ub",(function(){return ye})),n.d(t,"vb",(function(){return zt})),n.d(t,"wb",(function(){return dn})),n.d(t,"xb",(function(){return ln})),n.d(t,"yb",(function(){return uu})),n.d(t,"zb",(function(){return cn})),n.d(t,"Ab",(function(){return ac})),n.d(t,"Bb",(function(){return mt})); /** * @license * Copyright 2010-2022 Three.js Authors * SPDX-License-Identifier: MIT */ const r="148",i=0,a=1,s=2,o=1,A=2,l=3,c=0,u=1,h=2,f=3,d=0,p=1,m=2,g=3,v=4,y=5,x=100,b=101,w=102,_=103,M=104,S=200,E=201,C=202,T=203,D=204,B=205,L=206,I=207,P=208,R=209,k=210,O=0,U=1,F=2,N=3,z=4,H=5,G=6,V=7,W=0,Q=1,j=2,Y=0,X=1,q=2,Z=3,K=4,J=5,$=300,ee=301,te=302,ne=303,re=304,ie=306,ae=1e3,se=1001,oe=1002,Ae=1003,le=1004,ce=1005,ue=1006,he=1007,fe=1008,de=1009,pe=1010,me=1011,ge=1012,ve=1013,ye=1014,xe=1015,be=1016,we=1017,_e=1018,Me=1020,Se=1021,Ee=1022,Ce=1023,Te=1024,De=1025,Be=1026,Le=1027,Ie=1028,Pe=1029,Re=1030,ke=1031,Oe=1033,Ue=33776,Fe=33777,Ne=33778,ze=33779,He=35840,Ge=35841,Ve=35842,We=35843,Qe=36196,je=37492,Ye=37496,Xe=37808,qe=37809,Ze=37810,Ke=37811,Je=37812,$e=37813,et=37814,tt=37815,nt=37816,rt=37817,it=37818,at=37819,st=37820,ot=37821,At=36492,lt=2300,ct=2301,ut=2302,ht=2400,ft=2401,dt=2402,pt=3e3,mt=3001,gt=3200,vt=3201,yt=0,xt=1,bt="srgb",wt="srgb-linear",_t=7680,Mt=519,St=35044,Et="300 es",Ct=1035;class Tt{addEventListener(e,t){void 0===this._listeners&&(this._listeners={});const n=this._listeners;void 0===n[e]&&(n[e]=[]),-1===n[e].indexOf(t)&&n[e].push(t)}hasEventListener(e,t){if(void 0===this._listeners)return!1;const n=this._listeners;return void 0!==n[e]&&-1!==n[e].indexOf(t)}removeEventListener(e,t){if(void 0===this._listeners)return;const n=this._listeners,r=n[e];if(void 0!==r){const e=r.indexOf(t);-1!==e&&r.splice(e,1)}}dispatchEvent(e){if(void 0===this._listeners)return;const t=this._listeners,n=t[e.type];if(void 0!==n){e.target=this;const t=n.slice(0);for(let n=0,r=t.length;n>8&255]+Dt[e>>16&255]+Dt[e>>24&255]+"-"+Dt[255&t]+Dt[t>>8&255]+"-"+Dt[t>>16&15|64]+Dt[t>>24&255]+"-"+Dt[63&n|128]+Dt[n>>8&255]+"-"+Dt[n>>16&255]+Dt[n>>24&255]+Dt[255&r]+Dt[r>>8&255]+Dt[r>>16&255]+Dt[r>>24&255];return i.toLowerCase()}function Pt(e,t,n){return Math.max(t,Math.min(n,e))}function Rt(e,t){return(e%t+t)%t}function kt(e,t,n){return(1-n)*e+n*t}function Ot(e){return 0===(e&e-1)&&0!==e}function Ut(e){return Math.pow(2,Math.floor(Math.log(e)/Math.LN2))}function Ft(e,t){switch(t.constructor){case Float32Array:return e;case Uint16Array:return e/65535;case Uint8Array:return e/255;case Int16Array:return Math.max(e/32767,-1);case Int8Array:return Math.max(e/127,-1);default:throw new Error("Invalid component type.")}}function Nt(e,t){switch(t.constructor){case Float32Array:return e;case Uint16Array:return Math.round(65535*e);case Uint8Array:return Math.round(255*e);case Int16Array:return Math.round(32767*e);case Int8Array:return Math.round(127*e);default:throw new Error("Invalid component type.")}}class zt{constructor(e=0,t=0){zt.prototype.isVector2=!0,this.x=e,this.y=t}get width(){return this.x}set width(e){this.x=e}get height(){return this.y}set height(e){this.y=e}set(e,t){return this.x=e,this.y=t,this}setScalar(e){return this.x=e,this.y=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y)}copy(e){return this.x=e.x,this.y=e.y,this}add(e){return this.x+=e.x,this.y+=e.y,this}addScalar(e){return this.x+=e,this.y+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this}subScalar(e){return this.x-=e,this.y-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this}multiply(e){return this.x*=e.x,this.y*=e.y,this}multiplyScalar(e){return this.x*=e,this.y*=e,this}divide(e){return this.x/=e.x,this.y/=e.y,this}divideScalar(e){return this.multiplyScalar(1/e)}applyMatrix3(e){const t=this.x,n=this.y,r=e.elements;return this.x=r[0]*t+r[3]*n+r[6],this.y=r[1]*t+r[4]*n+r[7],this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this}clampLength(e,t){const n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(e,Math.min(t,n)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(e){return this.x*e.x+this.y*e.y}cross(e){return this.x*e.y-this.y*e.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){const e=Math.atan2(-this.y,-this.x)+Math.PI;return e}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const t=this.x-e.x,n=this.y-e.y;return t*t+n*n}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this}equals(e){return e.x===this.x&&e.y===this.y}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this}rotateAround(e,t){const n=Math.cos(t),r=Math.sin(t),i=this.x-e.x,a=this.y-e.y;return this.x=i*n-a*r+e.x,this.y=i*r+a*n+e.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}}class Ht{constructor(){Ht.prototype.isMatrix3=!0,this.elements=[1,0,0,0,1,0,0,0,1]}set(e,t,n,r,i,a,s,o,A){const l=this.elements;return l[0]=e,l[1]=r,l[2]=s,l[3]=t,l[4]=i,l[5]=o,l[6]=n,l[7]=a,l[8]=A,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(e){const t=this.elements,n=e.elements;return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],this}extractBasis(e,t,n){return e.setFromMatrix3Column(this,0),t.setFromMatrix3Column(this,1),n.setFromMatrix3Column(this,2),this}setFromMatrix4(e){const t=e.elements;return this.set(t[0],t[4],t[8],t[1],t[5],t[9],t[2],t[6],t[10]),this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){const n=e.elements,r=t.elements,i=this.elements,a=n[0],s=n[3],o=n[6],A=n[1],l=n[4],c=n[7],u=n[2],h=n[5],f=n[8],d=r[0],p=r[3],m=r[6],g=r[1],v=r[4],y=r[7],x=r[2],b=r[5],w=r[8];return i[0]=a*d+s*g+o*x,i[3]=a*p+s*v+o*b,i[6]=a*m+s*y+o*w,i[1]=A*d+l*g+c*x,i[4]=A*p+l*v+c*b,i[7]=A*m+l*y+c*w,i[2]=u*d+h*g+f*x,i[5]=u*p+h*v+f*b,i[8]=u*m+h*y+f*w,this}multiplyScalar(e){const t=this.elements;return t[0]*=e,t[3]*=e,t[6]*=e,t[1]*=e,t[4]*=e,t[7]*=e,t[2]*=e,t[5]*=e,t[8]*=e,this}determinant(){const e=this.elements,t=e[0],n=e[1],r=e[2],i=e[3],a=e[4],s=e[5],o=e[6],A=e[7],l=e[8];return t*a*l-t*s*A-n*i*l+n*s*o+r*i*A-r*a*o}invert(){const e=this.elements,t=e[0],n=e[1],r=e[2],i=e[3],a=e[4],s=e[5],o=e[6],A=e[7],l=e[8],c=l*a-s*A,u=s*o-l*i,h=A*i-a*o,f=t*c+n*u+r*h;if(0===f)return this.set(0,0,0,0,0,0,0,0,0);const d=1/f;return e[0]=c*d,e[1]=(r*A-l*n)*d,e[2]=(s*n-r*a)*d,e[3]=u*d,e[4]=(l*t-r*o)*d,e[5]=(r*i-s*t)*d,e[6]=h*d,e[7]=(n*o-A*t)*d,e[8]=(a*t-n*i)*d,this}transpose(){let e;const t=this.elements;return e=t[1],t[1]=t[3],t[3]=e,e=t[2],t[2]=t[6],t[6]=e,e=t[5],t[5]=t[7],t[7]=e,this}getNormalMatrix(e){return this.setFromMatrix4(e).invert().transpose()}transposeIntoArray(e){const t=this.elements;return e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8],this}setUvTransform(e,t,n,r,i,a,s){const o=Math.cos(i),A=Math.sin(i);return this.set(n*o,n*A,-n*(o*a+A*s)+a+e,-r*A,r*o,-r*(-A*a+o*s)+s+t,0,0,1),this}scale(e,t){return this.premultiply(Gt.makeScale(e,t)),this}rotate(e){return this.premultiply(Gt.makeRotation(-e)),this}translate(e,t){return this.premultiply(Gt.makeTranslation(e,t)),this}makeTranslation(e,t){return this.set(1,0,e,0,1,t,0,0,1),this}makeRotation(e){const t=Math.cos(e),n=Math.sin(e);return this.set(t,-n,0,n,t,0,0,0,1),this}makeScale(e,t){return this.set(e,0,0,0,t,0,0,0,1),this}equals(e){const t=this.elements,n=e.elements;for(let r=0;r<9;r++)if(t[r]!==n[r])return!1;return!0}fromArray(e,t=0){for(let n=0;n<9;n++)this.elements[n]=e[n+t];return this}toArray(e=[],t=0){const n=this.elements;return e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=n[3],e[t+4]=n[4],e[t+5]=n[5],e[t+6]=n[6],e[t+7]=n[7],e[t+8]=n[8],e}clone(){return(new this.constructor).fromArray(this.elements)}}const Gt=new Ht;function Vt(e){for(let t=e.length-1;t>=0;--t)if(e[t]>=65535)return!0;return!1}Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array;function Wt(e){return document.createElementNS("http://www.w3.org/1999/xhtml",e)}function Qt(e){return e<.04045?.0773993808*e:Math.pow(.9478672986*e+.0521327014,2.4)}function jt(e){return e<.0031308?12.92*e:1.055*Math.pow(e,.41666)-.055}const Yt={[bt]:{[wt]:Qt},[wt]:{[bt]:jt}},Xt={legacyMode:!0,get workingColorSpace(){return wt},set workingColorSpace(e){console.warn("THREE.ColorManagement: .workingColorSpace is readonly.")},convert:function(e,t,n){if(this.legacyMode||t===n||!t||!n)return e;if(Yt[t]&&void 0!==Yt[t][n]){const r=Yt[t][n];return e.r=r(e.r),e.g=r(e.g),e.b=r(e.b),e}throw new Error("Unsupported color space conversion.")},fromWorkingColorSpace:function(e,t){return this.convert(e,this.workingColorSpace,t)},toWorkingColorSpace:function(e,t){return this.convert(e,t,this.workingColorSpace)}},qt={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},Zt={r:0,g:0,b:0},Kt={h:0,s:0,l:0},Jt={h:0,s:0,l:0};function $t(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+6*(t-e)*(2/3-n):e}function en(e,t){return t.r=e.r,t.g=e.g,t.b=e.b,t}class tn{constructor(e,t,n){return this.isColor=!0,this.r=1,this.g=1,this.b=1,void 0===t&&void 0===n?this.set(e):this.setRGB(e,t,n)}set(e){return e&&e.isColor?this.copy(e):"number"===typeof e?this.setHex(e):"string"===typeof e&&this.setStyle(e),this}setScalar(e){return this.r=e,this.g=e,this.b=e,this}setHex(e,t=bt){return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(255&e)/255,Xt.toWorkingColorSpace(this,t),this}setRGB(e,t,n,r=Xt.workingColorSpace){return this.r=e,this.g=t,this.b=n,Xt.toWorkingColorSpace(this,r),this}setHSL(e,t,n,r=Xt.workingColorSpace){if(e=Rt(e,1),t=Pt(t,0,1),n=Pt(n,0,1),0===t)this.r=this.g=this.b=n;else{const r=n<=.5?n*(1+t):n+t-n*t,i=2*n-r;this.r=$t(i,r,e+1/3),this.g=$t(i,r,e),this.b=$t(i,r,e-1/3)}return Xt.toWorkingColorSpace(this,r),this}setStyle(e,t=bt){function n(t){void 0!==t&&parseFloat(t)<1&&console.warn("THREE.Color: Alpha component of "+e+" will be ignored.")}let r;if(r=/^((?:rgb|hsl)a?)\(([^\)]*)\)/.exec(e)){let e;const i=r[1],a=r[2];switch(i){case"rgb":case"rgba":if(e=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return this.r=Math.min(255,parseInt(e[1],10))/255,this.g=Math.min(255,parseInt(e[2],10))/255,this.b=Math.min(255,parseInt(e[3],10))/255,Xt.toWorkingColorSpace(this,t),n(e[4]),this;if(e=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return this.r=Math.min(100,parseInt(e[1],10))/100,this.g=Math.min(100,parseInt(e[2],10))/100,this.b=Math.min(100,parseInt(e[3],10))/100,Xt.toWorkingColorSpace(this,t),n(e[4]),this;break;case"hsl":case"hsla":if(e=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a)){const r=parseFloat(e[1])/360,i=parseFloat(e[2])/100,a=parseFloat(e[3])/100;return n(e[4]),this.setHSL(r,i,a,t)}break}}else if(r=/^\#([A-Fa-f\d]+)$/.exec(e)){const e=r[1],n=e.length;if(3===n)return this.r=parseInt(e.charAt(0)+e.charAt(0),16)/255,this.g=parseInt(e.charAt(1)+e.charAt(1),16)/255,this.b=parseInt(e.charAt(2)+e.charAt(2),16)/255,Xt.toWorkingColorSpace(this,t),this;if(6===n)return this.r=parseInt(e.charAt(0)+e.charAt(1),16)/255,this.g=parseInt(e.charAt(2)+e.charAt(3),16)/255,this.b=parseInt(e.charAt(4)+e.charAt(5),16)/255,Xt.toWorkingColorSpace(this,t),this}return e&&e.length>0?this.setColorName(e,t):this}setColorName(e,t=bt){const n=qt[e.toLowerCase()];return void 0!==n?this.setHex(n,t):console.warn("THREE.Color: Unknown color "+e),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(e){return this.r=e.r,this.g=e.g,this.b=e.b,this}copySRGBToLinear(e){return this.r=Qt(e.r),this.g=Qt(e.g),this.b=Qt(e.b),this}copyLinearToSRGB(e){return this.r=jt(e.r),this.g=jt(e.g),this.b=jt(e.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(e=bt){return Xt.fromWorkingColorSpace(en(this,Zt),e),Pt(255*Zt.r,0,255)<<16^Pt(255*Zt.g,0,255)<<8^Pt(255*Zt.b,0,255)<<0}getHexString(e=bt){return("000000"+this.getHex(e).toString(16)).slice(-6)}getHSL(e,t=Xt.workingColorSpace){Xt.fromWorkingColorSpace(en(this,Zt),t);const n=Zt.r,r=Zt.g,i=Zt.b,a=Math.max(n,r,i),s=Math.min(n,r,i);let o,A;const l=(s+a)/2;if(s===a)o=0,A=0;else{const e=a-s;switch(A=l<=.5?e/(a+s):e/(2-a-s),a){case n:o=(r-i)/e+(r2048||t.height>2048?(console.warn("THREE.ImageUtils.getDataURL: Image converted to jpg for performance reasons",e),t.toDataURL("image/jpeg",.6)):t.toDataURL("image/png")}static sRGBToLinear(e){if("undefined"!==typeof HTMLImageElement&&e instanceof HTMLImageElement||"undefined"!==typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement||"undefined"!==typeof ImageBitmap&&e instanceof ImageBitmap){const t=Wt("canvas");t.width=e.width,t.height=e.height;const n=t.getContext("2d");n.drawImage(e,0,0,e.width,e.height);const r=n.getImageData(0,0,e.width,e.height),i=r.data;for(let e=0;e0&&(n.userData=this.userData),t||(e.textures[this.uuid]=n),n}dispose(){this.dispatchEvent({type:"dispose"})}transformUv(e){if(this.mapping!==$)return e;if(e.applyMatrix3(this.matrix),e.x<0||e.x>1)switch(this.wrapS){case ae:e.x=e.x-Math.floor(e.x);break;case se:e.x=e.x<0?0:1;break;case oe:1===Math.abs(Math.floor(e.x)%2)?e.x=Math.ceil(e.x)-e.x:e.x=e.x-Math.floor(e.x);break}if(e.y<0||e.y>1)switch(this.wrapT){case ae:e.y=e.y-Math.floor(e.y);break;case se:e.y=e.y<0?0:1;break;case oe:1===Math.abs(Math.floor(e.y)%2)?e.y=Math.ceil(e.y)-e.y:e.y=e.y-Math.floor(e.y);break}return this.flipY&&(e.y=1-e.y),e}set needsUpdate(e){!0===e&&(this.version++,this.source.needsUpdate=!0)}}An.DEFAULT_IMAGE=null,An.DEFAULT_MAPPING=$,An.DEFAULT_ANISOTROPY=1;class ln{constructor(e=0,t=0,n=0,r=1){ln.prototype.isVector4=!0,this.x=e,this.y=t,this.z=n,this.w=r}get width(){return this.z}set width(e){this.z=e}get height(){return this.w}set height(e){this.w=e}set(e,t,n,r){return this.x=e,this.y=t,this.z=n,this.w=r,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this.w=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setW(e){return this.w=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;case 3:this.w=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this.w=void 0!==e.w?e.w:1,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this.w+=e.w,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this.w+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this.w=e.w+t.w,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this.w+=e.w*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this.w-=e.w,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this.w-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this.w=e.w-t.w,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this.w*=e.w,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this.w*=e,this}applyMatrix4(e){const t=this.x,n=this.y,r=this.z,i=this.w,a=e.elements;return this.x=a[0]*t+a[4]*n+a[8]*r+a[12]*i,this.y=a[1]*t+a[5]*n+a[9]*r+a[13]*i,this.z=a[2]*t+a[6]*n+a[10]*r+a[14]*i,this.w=a[3]*t+a[7]*n+a[11]*r+a[15]*i,this}divideScalar(e){return this.multiplyScalar(1/e)}setAxisAngleFromQuaternion(e){this.w=2*Math.acos(e.w);const t=Math.sqrt(1-e.w*e.w);return t<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=e.x/t,this.y=e.y/t,this.z=e.z/t),this}setAxisAngleFromRotationMatrix(e){let t,n,r,i;const a=.01,s=.1,o=e.elements,A=o[0],l=o[4],c=o[8],u=o[1],h=o[5],f=o[9],d=o[2],p=o[6],m=o[10];if(Math.abs(l-u)o&&e>g?eg?o=0?1:-1,r=1-t*t;if(r>Number.EPSILON){const i=Math.sqrt(r),a=Math.atan2(i,t*n);e=Math.sin(e*a)/i,s=Math.sin(s*a)/i}const i=s*n;if(o=o*e+u*i,A=A*e+h*i,l=l*e+f*i,c=c*e+d*i,e===1-s){const e=1/Math.sqrt(o*o+A*A+l*l+c*c);o*=e,A*=e,l*=e,c*=e}}e[t]=o,e[t+1]=A,e[t+2]=l,e[t+3]=c}static multiplyQuaternionsFlat(e,t,n,r,i,a){const s=n[r],o=n[r+1],A=n[r+2],l=n[r+3],c=i[a],u=i[a+1],h=i[a+2],f=i[a+3];return e[t]=s*f+l*c+o*h-A*u,e[t+1]=o*f+l*u+A*c-s*h,e[t+2]=A*f+l*h+s*u-o*c,e[t+3]=l*f-s*c-o*u-A*h,e}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get w(){return this._w}set w(e){this._w=e,this._onChangeCallback()}set(e,t,n,r){return this._x=e,this._y=t,this._z=n,this._w=r,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(e){return this._x=e.x,this._y=e.y,this._z=e.z,this._w=e.w,this._onChangeCallback(),this}setFromEuler(e,t){const n=e._x,r=e._y,i=e._z,a=e._order,s=Math.cos,o=Math.sin,A=s(n/2),l=s(r/2),c=s(i/2),u=o(n/2),h=o(r/2),f=o(i/2);switch(a){case"XYZ":this._x=u*l*c+A*h*f,this._y=A*h*c-u*l*f,this._z=A*l*f+u*h*c,this._w=A*l*c-u*h*f;break;case"YXZ":this._x=u*l*c+A*h*f,this._y=A*h*c-u*l*f,this._z=A*l*f-u*h*c,this._w=A*l*c+u*h*f;break;case"ZXY":this._x=u*l*c-A*h*f,this._y=A*h*c+u*l*f,this._z=A*l*f+u*h*c,this._w=A*l*c-u*h*f;break;case"ZYX":this._x=u*l*c-A*h*f,this._y=A*h*c+u*l*f,this._z=A*l*f-u*h*c,this._w=A*l*c+u*h*f;break;case"YZX":this._x=u*l*c+A*h*f,this._y=A*h*c+u*l*f,this._z=A*l*f-u*h*c,this._w=A*l*c-u*h*f;break;case"XZY":this._x=u*l*c-A*h*f,this._y=A*h*c-u*l*f,this._z=A*l*f+u*h*c,this._w=A*l*c+u*h*f;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+a)}return!1!==t&&this._onChangeCallback(),this}setFromAxisAngle(e,t){const n=t/2,r=Math.sin(n);return this._x=e.x*r,this._y=e.y*r,this._z=e.z*r,this._w=Math.cos(n),this._onChangeCallback(),this}setFromRotationMatrix(e){const t=e.elements,n=t[0],r=t[4],i=t[8],a=t[1],s=t[5],o=t[9],A=t[2],l=t[6],c=t[10],u=n+s+c;if(u>0){const e=.5/Math.sqrt(u+1);this._w=.25/e,this._x=(l-o)*e,this._y=(i-A)*e,this._z=(a-r)*e}else if(n>s&&n>c){const e=2*Math.sqrt(1+n-s-c);this._w=(l-o)/e,this._x=.25*e,this._y=(r+a)/e,this._z=(i+A)/e}else if(s>c){const e=2*Math.sqrt(1+s-n-c);this._w=(i-A)/e,this._x=(r+a)/e,this._y=.25*e,this._z=(o+l)/e}else{const e=2*Math.sqrt(1+c-n-s);this._w=(a-r)/e,this._x=(i+A)/e,this._y=(o+l)/e,this._z=.25*e}return this._onChangeCallback(),this}setFromUnitVectors(e,t){let n=e.dot(t)+1;return nMath.abs(e.z)?(this._x=-e.y,this._y=e.x,this._z=0,this._w=n):(this._x=0,this._y=-e.z,this._z=e.y,this._w=n)):(this._x=e.y*t.z-e.z*t.y,this._y=e.z*t.x-e.x*t.z,this._z=e.x*t.y-e.y*t.x,this._w=n),this.normalize()}angleTo(e){return 2*Math.acos(Math.abs(Pt(this.dot(e),-1,1)))}rotateTowards(e,t){const n=this.angleTo(e);if(0===n)return this;const r=Math.min(1,t/n);return this.slerp(e,r),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(e){return this._x*e._x+this._y*e._y+this._z*e._z+this._w*e._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let e=this.length();return 0===e?(this._x=0,this._y=0,this._z=0,this._w=1):(e=1/e,this._x=this._x*e,this._y=this._y*e,this._z=this._z*e,this._w=this._w*e),this._onChangeCallback(),this}multiply(e){return this.multiplyQuaternions(this,e)}premultiply(e){return this.multiplyQuaternions(e,this)}multiplyQuaternions(e,t){const n=e._x,r=e._y,i=e._z,a=e._w,s=t._x,o=t._y,A=t._z,l=t._w;return this._x=n*l+a*s+r*A-i*o,this._y=r*l+a*o+i*s-n*A,this._z=i*l+a*A+n*o-r*s,this._w=a*l-n*s-r*o-i*A,this._onChangeCallback(),this}slerp(e,t){if(0===t)return this;if(1===t)return this.copy(e);const n=this._x,r=this._y,i=this._z,a=this._w;let s=a*e._w+n*e._x+r*e._y+i*e._z;if(s<0?(this._w=-e._w,this._x=-e._x,this._y=-e._y,this._z=-e._z,s=-s):this.copy(e),s>=1)return this._w=a,this._x=n,this._y=r,this._z=i,this;const o=1-s*s;if(o<=Number.EPSILON){const e=1-t;return this._w=e*a+t*this._w,this._x=e*n+t*this._x,this._y=e*r+t*this._y,this._z=e*i+t*this._z,this.normalize(),this._onChangeCallback(),this}const A=Math.sqrt(o),l=Math.atan2(A,s),c=Math.sin((1-t)*l)/A,u=Math.sin(t*l)/A;return this._w=a*c+this._w*u,this._x=n*c+this._x*u,this._y=r*c+this._y*u,this._z=i*c+this._z*u,this._onChangeCallback(),this}slerpQuaternions(e,t,n){return this.copy(e).slerp(t,n)}random(){const e=Math.random(),t=Math.sqrt(1-e),n=Math.sqrt(e),r=2*Math.PI*Math.random(),i=2*Math.PI*Math.random();return this.set(t*Math.cos(r),n*Math.sin(i),n*Math.cos(i),t*Math.sin(r))}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._w===this._w}fromArray(e,t=0){return this._x=e[t],this._y=e[t+1],this._z=e[t+2],this._w=e[t+3],this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._w,e}fromBufferAttribute(e,t){return this._x=e.getX(t),this._y=e.getY(t),this._z=e.getZ(t),this._w=e.getW(t),this}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}}class dn{constructor(e=0,t=0,n=0){dn.prototype.isVector3=!0,this.x=e,this.y=t,this.z=n}set(e,t,n){return void 0===n&&(n=this.z),this.x=e,this.y=t,this.z=n,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this}multiplyVectors(e,t){return this.x=e.x*t.x,this.y=e.y*t.y,this.z=e.z*t.z,this}applyEuler(e){return this.applyQuaternion(mn.setFromEuler(e))}applyAxisAngle(e,t){return this.applyQuaternion(mn.setFromAxisAngle(e,t))}applyMatrix3(e){const t=this.x,n=this.y,r=this.z,i=e.elements;return this.x=i[0]*t+i[3]*n+i[6]*r,this.y=i[1]*t+i[4]*n+i[7]*r,this.z=i[2]*t+i[5]*n+i[8]*r,this}applyNormalMatrix(e){return this.applyMatrix3(e).normalize()}applyMatrix4(e){const t=this.x,n=this.y,r=this.z,i=e.elements,a=1/(i[3]*t+i[7]*n+i[11]*r+i[15]);return this.x=(i[0]*t+i[4]*n+i[8]*r+i[12])*a,this.y=(i[1]*t+i[5]*n+i[9]*r+i[13])*a,this.z=(i[2]*t+i[6]*n+i[10]*r+i[14])*a,this}applyQuaternion(e){const t=this.x,n=this.y,r=this.z,i=e.x,a=e.y,s=e.z,o=e.w,A=o*t+a*r-s*n,l=o*n+s*t-i*r,c=o*r+i*n-a*t,u=-i*t-a*n-s*r;return this.x=A*o+u*-i+l*-s-c*-a,this.y=l*o+u*-a+c*-i-A*-s,this.z=c*o+u*-s+A*-a-l*-i,this}project(e){return this.applyMatrix4(e.matrixWorldInverse).applyMatrix4(e.projectionMatrix)}unproject(e){return this.applyMatrix4(e.projectionMatrixInverse).applyMatrix4(e.matrixWorld)}transformDirection(e){const t=this.x,n=this.y,r=this.z,i=e.elements;return this.x=i[0]*t+i[4]*n+i[8]*r,this.y=i[1]*t+i[5]*n+i[9]*r,this.z=i[2]*t+i[6]*n+i[10]*r,this.normalize()}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this}divideScalar(e){return this.multiplyScalar(1/e)}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this.z=Math.max(e.z,Math.min(t.z,this.z)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this.z=Math.max(e,Math.min(t,this.z)),this}clampLength(e,t){const n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(e,Math.min(t,n)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this.z=this.z<0?Math.ceil(this.z):Math.floor(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this.z=e.z+(t.z-e.z)*n,this}cross(e){return this.crossVectors(this,e)}crossVectors(e,t){const n=e.x,r=e.y,i=e.z,a=t.x,s=t.y,o=t.z;return this.x=r*o-i*s,this.y=i*a-n*o,this.z=n*s-r*a,this}projectOnVector(e){const t=e.lengthSq();if(0===t)return this.set(0,0,0);const n=e.dot(this)/t;return this.copy(e).multiplyScalar(n)}projectOnPlane(e){return pn.copy(this).projectOnVector(e),this.sub(pn)}reflect(e){return this.sub(pn.copy(e).multiplyScalar(2*this.dot(e)))}angleTo(e){const t=Math.sqrt(this.lengthSq()*e.lengthSq());if(0===t)return Math.PI/2;const n=this.dot(e)/t;return Math.acos(Pt(n,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const t=this.x-e.x,n=this.y-e.y,r=this.z-e.z;return t*t+n*n+r*r}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)+Math.abs(this.z-e.z)}setFromSpherical(e){return this.setFromSphericalCoords(e.radius,e.phi,e.theta)}setFromSphericalCoords(e,t,n){const r=Math.sin(t)*e;return this.x=r*Math.sin(n),this.y=Math.cos(t)*e,this.z=r*Math.cos(n),this}setFromCylindrical(e){return this.setFromCylindricalCoords(e.radius,e.theta,e.y)}setFromCylindricalCoords(e,t,n){return this.x=e*Math.sin(t),this.y=n,this.z=e*Math.cos(t),this}setFromMatrixPosition(e){const t=e.elements;return this.x=t[12],this.y=t[13],this.z=t[14],this}setFromMatrixScale(e){const t=this.setFromMatrixColumn(e,0).length(),n=this.setFromMatrixColumn(e,1).length(),r=this.setFromMatrixColumn(e,2).length();return this.x=t,this.y=n,this.z=r,this}setFromMatrixColumn(e,t){return this.fromArray(e.elements,4*t)}setFromMatrix3Column(e,t){return this.fromArray(e.elements,3*t)}setFromEuler(e){return this.x=e._x,this.y=e._y,this.z=e._z,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){const e=2*(Math.random()-.5),t=Math.random()*Math.PI*2,n=Math.sqrt(1-e**2);return this.x=n*Math.cos(t),this.y=n*Math.sin(t),this.z=e,this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}}const pn=new dn,mn=new fn;class gn{constructor(e=new dn(1/0,1/0,1/0),t=new dn(-1/0,-1/0,-1/0)){this.isBox3=!0,this.min=e,this.max=t}set(e,t){return this.min.copy(e),this.max.copy(t),this}setFromArray(e){let t=1/0,n=1/0,r=1/0,i=-1/0,a=-1/0,s=-1/0;for(let o=0,A=e.length;oi&&(i=A),l>a&&(a=l),c>s&&(s=c)}return this.min.set(t,n,r),this.max.set(i,a,s),this}setFromBufferAttribute(e){let t=1/0,n=1/0,r=1/0,i=-1/0,a=-1/0,s=-1/0;for(let o=0,A=e.count;oi&&(i=A),l>a&&(a=l),c>s&&(s=c)}return this.min.set(t,n,r),this.max.set(i,a,s),this}setFromPoints(e){this.makeEmpty();for(let t=0,n=e.length;tthis.max.x||e.ythis.max.y||e.zthis.max.z)}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y&&this.min.z<=e.min.z&&e.max.z<=this.max.z}getParameter(e,t){return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y),(e.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(e){return!(e.max.xthis.max.x||e.max.ythis.max.y||e.max.zthis.max.z)}intersectsSphere(e){return this.clampPoint(e.center,yn),yn.distanceToSquared(e.center)<=e.radius*e.radius}intersectsPlane(e){let t,n;return e.normal.x>0?(t=e.normal.x*this.min.x,n=e.normal.x*this.max.x):(t=e.normal.x*this.max.x,n=e.normal.x*this.min.x),e.normal.y>0?(t+=e.normal.y*this.min.y,n+=e.normal.y*this.max.y):(t+=e.normal.y*this.max.y,n+=e.normal.y*this.min.y),e.normal.z>0?(t+=e.normal.z*this.min.z,n+=e.normal.z*this.max.z):(t+=e.normal.z*this.max.z,n+=e.normal.z*this.min.z),t<=-e.constant&&n>=-e.constant}intersectsTriangle(e){if(this.isEmpty())return!1;this.getCenter(Cn),Tn.subVectors(this.max,Cn),bn.subVectors(e.a,Cn),wn.subVectors(e.b,Cn),_n.subVectors(e.c,Cn),Mn.subVectors(wn,bn),Sn.subVectors(_n,wn),En.subVectors(bn,_n);let t=[0,-Mn.z,Mn.y,0,-Sn.z,Sn.y,0,-En.z,En.y,Mn.z,0,-Mn.x,Sn.z,0,-Sn.x,En.z,0,-En.x,-Mn.y,Mn.x,0,-Sn.y,Sn.x,0,-En.y,En.x,0];return!!Ln(t,bn,wn,_n,Tn)&&(t=[1,0,0,0,1,0,0,0,1],!!Ln(t,bn,wn,_n,Tn)&&(Dn.crossVectors(Mn,Sn),t=[Dn.x,Dn.y,Dn.z],Ln(t,bn,wn,_n,Tn)))}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){const t=yn.copy(e).clamp(this.min,this.max);return t.sub(e).length()}getBoundingSphere(e){return this.getCenter(e.center),e.radius=.5*this.getSize(yn).length(),e}intersect(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}applyMatrix4(e){return this.isEmpty()||(vn[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),vn[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),vn[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),vn[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),vn[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),vn[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),vn[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),vn[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(vn)),this}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}}const vn=[new dn,new dn,new dn,new dn,new dn,new dn,new dn,new dn],yn=new dn,xn=new gn,bn=new dn,wn=new dn,_n=new dn,Mn=new dn,Sn=new dn,En=new dn,Cn=new dn,Tn=new dn,Dn=new dn,Bn=new dn;function Ln(e,t,n,r,i){for(let a=0,s=e.length-3;a<=s;a+=3){Bn.fromArray(e,a);const s=i.x*Math.abs(Bn.x)+i.y*Math.abs(Bn.y)+i.z*Math.abs(Bn.z),o=t.dot(Bn),A=n.dot(Bn),l=r.dot(Bn);if(Math.max(-Math.max(o,A,l),Math.min(o,A,l))>s)return!1}return!0}const In=new gn,Pn=new dn,Rn=new dn;class kn{constructor(e=new dn,t=-1){this.center=e,this.radius=t}set(e,t){return this.center.copy(e),this.radius=t,this}setFromPoints(e,t){const n=this.center;void 0!==t?n.copy(t):In.setFromPoints(e).getCenter(n);let r=0;for(let i=0,a=e.length;ithis.radius*this.radius&&(t.sub(this.center).normalize(),t.multiplyScalar(this.radius).add(this.center)),t}getBoundingBox(e){return this.isEmpty()?(e.makeEmpty(),e):(e.set(this.center,this.center),e.expandByScalar(this.radius),e)}applyMatrix4(e){return this.center.applyMatrix4(e),this.radius=this.radius*e.getMaxScaleOnAxis(),this}translate(e){return this.center.add(e),this}expandByPoint(e){if(this.isEmpty())return this.center.copy(e),this.radius=0,this;Pn.subVectors(e,this.center);const t=Pn.lengthSq();if(t>this.radius*this.radius){const e=Math.sqrt(t),n=.5*(e-this.radius);this.center.addScaledVector(Pn,n/e),this.radius+=n}return this}union(e){return e.isEmpty()?this:this.isEmpty()?(this.copy(e),this):(!0===this.center.equals(e.center)?this.radius=Math.max(this.radius,e.radius):(Rn.subVectors(e.center,this.center).setLength(e.radius),this.expandByPoint(Pn.copy(e.center).add(Rn)),this.expandByPoint(Pn.copy(e.center).sub(Rn))),this)}equals(e){return e.center.equals(this.center)&&e.radius===this.radius}clone(){return(new this.constructor).copy(this)}}const On=new dn,Un=new dn,Fn=new dn,Nn=new dn,zn=new dn,Hn=new dn,Gn=new dn;class Vn{constructor(e=new dn,t=new dn(0,0,-1)){this.origin=e,this.direction=t}set(e,t){return this.origin.copy(e),this.direction.copy(t),this}copy(e){return this.origin.copy(e.origin),this.direction.copy(e.direction),this}at(e,t){return t.copy(this.direction).multiplyScalar(e).add(this.origin)}lookAt(e){return this.direction.copy(e).sub(this.origin).normalize(),this}recast(e){return this.origin.copy(this.at(e,On)),this}closestPointToPoint(e,t){t.subVectors(e,this.origin);const n=t.dot(this.direction);return n<0?t.copy(this.origin):t.copy(this.direction).multiplyScalar(n).add(this.origin)}distanceToPoint(e){return Math.sqrt(this.distanceSqToPoint(e))}distanceSqToPoint(e){const t=On.subVectors(e,this.origin).dot(this.direction);return t<0?this.origin.distanceToSquared(e):(On.copy(this.direction).multiplyScalar(t).add(this.origin),On.distanceToSquared(e))}distanceSqToSegment(e,t,n,r){Un.copy(e).add(t).multiplyScalar(.5),Fn.copy(t).sub(e).normalize(),Nn.copy(this.origin).sub(Un);const i=.5*e.distanceTo(t),a=-this.direction.dot(Fn),s=Nn.dot(this.direction),o=-Nn.dot(Fn),A=Nn.lengthSq(),l=Math.abs(1-a*a);let c,u,h,f;if(l>0)if(c=a*o-s,u=a*s-o,f=i*l,c>=0)if(u>=-f)if(u<=f){const e=1/l;c*=e,u*=e,h=c*(c+a*u+2*s)+u*(a*c+u+2*o)+A}else u=i,c=Math.max(0,-(a*u+s)),h=-c*c+u*(u+2*o)+A;else u=-i,c=Math.max(0,-(a*u+s)),h=-c*c+u*(u+2*o)+A;else u<=-f?(c=Math.max(0,-(-a*i+s)),u=c>0?-i:Math.min(Math.max(-i,-o),i),h=-c*c+u*(u+2*o)+A):u<=f?(c=0,u=Math.min(Math.max(-i,-o),i),h=u*(u+2*o)+A):(c=Math.max(0,-(a*i+s)),u=c>0?i:Math.min(Math.max(-i,-o),i),h=-c*c+u*(u+2*o)+A);else u=a>0?-i:i,c=Math.max(0,-(a*u+s)),h=-c*c+u*(u+2*o)+A;return n&&n.copy(this.direction).multiplyScalar(c).add(this.origin),r&&r.copy(Fn).multiplyScalar(u).add(Un),h}intersectSphere(e,t){On.subVectors(e.center,this.origin);const n=On.dot(this.direction),r=On.dot(On)-n*n,i=e.radius*e.radius;if(r>i)return null;const a=Math.sqrt(i-r),s=n-a,o=n+a;return s<0&&o<0?null:s<0?this.at(o,t):this.at(s,t)}intersectsSphere(e){return this.distanceSqToPoint(e.center)<=e.radius*e.radius}distanceToPlane(e){const t=e.normal.dot(this.direction);if(0===t)return 0===e.distanceToPoint(this.origin)?0:null;const n=-(this.origin.dot(e.normal)+e.constant)/t;return n>=0?n:null}intersectPlane(e,t){const n=this.distanceToPlane(e);return null===n?null:this.at(n,t)}intersectsPlane(e){const t=e.distanceToPoint(this.origin);if(0===t)return!0;const n=e.normal.dot(this.direction);return n*t<0}intersectBox(e,t){let n,r,i,a,s,o;const A=1/this.direction.x,l=1/this.direction.y,c=1/this.direction.z,u=this.origin;return A>=0?(n=(e.min.x-u.x)*A,r=(e.max.x-u.x)*A):(n=(e.max.x-u.x)*A,r=(e.min.x-u.x)*A),l>=0?(i=(e.min.y-u.y)*l,a=(e.max.y-u.y)*l):(i=(e.max.y-u.y)*l,a=(e.min.y-u.y)*l),n>a||i>r?null:((i>n||isNaN(n))&&(n=i),(a=0?(s=(e.min.z-u.z)*c,o=(e.max.z-u.z)*c):(s=(e.max.z-u.z)*c,o=(e.min.z-u.z)*c),n>o||s>r?null:((s>n||n!==n)&&(n=s),(o=0?n:r,t)))}intersectsBox(e){return null!==this.intersectBox(e,On)}intersectTriangle(e,t,n,r,i){zn.subVectors(t,e),Hn.subVectors(n,e),Gn.crossVectors(zn,Hn);let a,s=this.direction.dot(Gn);if(s>0){if(r)return null;a=1}else{if(!(s<0))return null;a=-1,s=-s}Nn.subVectors(this.origin,e);const o=a*this.direction.dot(Hn.crossVectors(Nn,Hn));if(o<0)return null;const A=a*this.direction.dot(zn.cross(Nn));if(A<0)return null;if(o+A>s)return null;const l=-a*Nn.dot(Gn);return l<0?null:this.at(l/s,i)}applyMatrix4(e){return this.origin.applyMatrix4(e),this.direction.transformDirection(e),this}equals(e){return e.origin.equals(this.origin)&&e.direction.equals(this.direction)}clone(){return(new this.constructor).copy(this)}}class Wn{constructor(){Wn.prototype.isMatrix4=!0,this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}set(e,t,n,r,i,a,s,o,A,l,c,u,h,f,d,p){const m=this.elements;return m[0]=e,m[4]=t,m[8]=n,m[12]=r,m[1]=i,m[5]=a,m[9]=s,m[13]=o,m[2]=A,m[6]=l,m[10]=c,m[14]=u,m[3]=h,m[7]=f,m[11]=d,m[15]=p,this}identity(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}clone(){return(new Wn).fromArray(this.elements)}copy(e){const t=this.elements,n=e.elements;return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],this}copyPosition(e){const t=this.elements,n=e.elements;return t[12]=n[12],t[13]=n[13],t[14]=n[14],this}setFromMatrix3(e){const t=e.elements;return this.set(t[0],t[3],t[6],0,t[1],t[4],t[7],0,t[2],t[5],t[8],0,0,0,0,1),this}extractBasis(e,t,n){return e.setFromMatrixColumn(this,0),t.setFromMatrixColumn(this,1),n.setFromMatrixColumn(this,2),this}makeBasis(e,t,n){return this.set(e.x,t.x,n.x,0,e.y,t.y,n.y,0,e.z,t.z,n.z,0,0,0,0,1),this}extractRotation(e){const t=this.elements,n=e.elements,r=1/Qn.setFromMatrixColumn(e,0).length(),i=1/Qn.setFromMatrixColumn(e,1).length(),a=1/Qn.setFromMatrixColumn(e,2).length();return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t[3]=0,t[4]=n[4]*i,t[5]=n[5]*i,t[6]=n[6]*i,t[7]=0,t[8]=n[8]*a,t[9]=n[9]*a,t[10]=n[10]*a,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromEuler(e){const t=this.elements,n=e.x,r=e.y,i=e.z,a=Math.cos(n),s=Math.sin(n),o=Math.cos(r),A=Math.sin(r),l=Math.cos(i),c=Math.sin(i);if("XYZ"===e.order){const e=a*l,n=a*c,r=s*l,i=s*c;t[0]=o*l,t[4]=-o*c,t[8]=A,t[1]=n+r*A,t[5]=e-i*A,t[9]=-s*o,t[2]=i-e*A,t[6]=r+n*A,t[10]=a*o}else if("YXZ"===e.order){const e=o*l,n=o*c,r=A*l,i=A*c;t[0]=e+i*s,t[4]=r*s-n,t[8]=a*A,t[1]=a*c,t[5]=a*l,t[9]=-s,t[2]=n*s-r,t[6]=i+e*s,t[10]=a*o}else if("ZXY"===e.order){const e=o*l,n=o*c,r=A*l,i=A*c;t[0]=e-i*s,t[4]=-a*c,t[8]=r+n*s,t[1]=n+r*s,t[5]=a*l,t[9]=i-e*s,t[2]=-a*A,t[6]=s,t[10]=a*o}else if("ZYX"===e.order){const e=a*l,n=a*c,r=s*l,i=s*c;t[0]=o*l,t[4]=r*A-n,t[8]=e*A+i,t[1]=o*c,t[5]=i*A+e,t[9]=n*A-r,t[2]=-A,t[6]=s*o,t[10]=a*o}else if("YZX"===e.order){const e=a*o,n=a*A,r=s*o,i=s*A;t[0]=o*l,t[4]=i-e*c,t[8]=r*c+n,t[1]=c,t[5]=a*l,t[9]=-s*l,t[2]=-A*l,t[6]=n*c+r,t[10]=e-i*c}else if("XZY"===e.order){const e=a*o,n=a*A,r=s*o,i=s*A;t[0]=o*l,t[4]=-c,t[8]=A*l,t[1]=e*c+i,t[5]=a*l,t[9]=n*c-r,t[2]=r*c-n,t[6]=s*l,t[10]=i*c+e}return t[3]=0,t[7]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromQuaternion(e){return this.compose(Yn,e,Xn)}lookAt(e,t,n){const r=this.elements;return Kn.subVectors(e,t),0===Kn.lengthSq()&&(Kn.z=1),Kn.normalize(),qn.crossVectors(n,Kn),0===qn.lengthSq()&&(1===Math.abs(n.z)?Kn.x+=1e-4:Kn.z+=1e-4,Kn.normalize(),qn.crossVectors(n,Kn)),qn.normalize(),Zn.crossVectors(Kn,qn),r[0]=qn.x,r[4]=Zn.x,r[8]=Kn.x,r[1]=qn.y,r[5]=Zn.y,r[9]=Kn.y,r[2]=qn.z,r[6]=Zn.z,r[10]=Kn.z,this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){const n=e.elements,r=t.elements,i=this.elements,a=n[0],s=n[4],o=n[8],A=n[12],l=n[1],c=n[5],u=n[9],h=n[13],f=n[2],d=n[6],p=n[10],m=n[14],g=n[3],v=n[7],y=n[11],x=n[15],b=r[0],w=r[4],_=r[8],M=r[12],S=r[1],E=r[5],C=r[9],T=r[13],D=r[2],B=r[6],L=r[10],I=r[14],P=r[3],R=r[7],k=r[11],O=r[15];return i[0]=a*b+s*S+o*D+A*P,i[4]=a*w+s*E+o*B+A*R,i[8]=a*_+s*C+o*L+A*k,i[12]=a*M+s*T+o*I+A*O,i[1]=l*b+c*S+u*D+h*P,i[5]=l*w+c*E+u*B+h*R,i[9]=l*_+c*C+u*L+h*k,i[13]=l*M+c*T+u*I+h*O,i[2]=f*b+d*S+p*D+m*P,i[6]=f*w+d*E+p*B+m*R,i[10]=f*_+d*C+p*L+m*k,i[14]=f*M+d*T+p*I+m*O,i[3]=g*b+v*S+y*D+x*P,i[7]=g*w+v*E+y*B+x*R,i[11]=g*_+v*C+y*L+x*k,i[15]=g*M+v*T+y*I+x*O,this}multiplyScalar(e){const t=this.elements;return t[0]*=e,t[4]*=e,t[8]*=e,t[12]*=e,t[1]*=e,t[5]*=e,t[9]*=e,t[13]*=e,t[2]*=e,t[6]*=e,t[10]*=e,t[14]*=e,t[3]*=e,t[7]*=e,t[11]*=e,t[15]*=e,this}determinant(){const e=this.elements,t=e[0],n=e[4],r=e[8],i=e[12],a=e[1],s=e[5],o=e[9],A=e[13],l=e[2],c=e[6],u=e[10],h=e[14],f=e[3],d=e[7],p=e[11],m=e[15];return f*(+i*o*c-r*A*c-i*s*u+n*A*u+r*s*h-n*o*h)+d*(+t*o*h-t*A*u+i*a*u-r*a*h+r*A*l-i*o*l)+p*(+t*A*c-t*s*h-i*a*c+n*a*h+i*s*l-n*A*l)+m*(-r*s*l-t*o*c+t*s*u+r*a*c-n*a*u+n*o*l)}transpose(){const e=this.elements;let t;return t=e[1],e[1]=e[4],e[4]=t,t=e[2],e[2]=e[8],e[8]=t,t=e[6],e[6]=e[9],e[9]=t,t=e[3],e[3]=e[12],e[12]=t,t=e[7],e[7]=e[13],e[13]=t,t=e[11],e[11]=e[14],e[14]=t,this}setPosition(e,t,n){const r=this.elements;return e.isVector3?(r[12]=e.x,r[13]=e.y,r[14]=e.z):(r[12]=e,r[13]=t,r[14]=n),this}invert(){const e=this.elements,t=e[0],n=e[1],r=e[2],i=e[3],a=e[4],s=e[5],o=e[6],A=e[7],l=e[8],c=e[9],u=e[10],h=e[11],f=e[12],d=e[13],p=e[14],m=e[15],g=c*p*A-d*u*A+d*o*h-s*p*h-c*o*m+s*u*m,v=f*u*A-l*p*A-f*o*h+a*p*h+l*o*m-a*u*m,y=l*d*A-f*c*A+f*s*h-a*d*h-l*s*m+a*c*m,x=f*c*o-l*d*o-f*s*u+a*d*u+l*s*p-a*c*p,b=t*g+n*v+r*y+i*x;if(0===b)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);const w=1/b;return e[0]=g*w,e[1]=(d*u*i-c*p*i-d*r*h+n*p*h+c*r*m-n*u*m)*w,e[2]=(s*p*i-d*o*i+d*r*A-n*p*A-s*r*m+n*o*m)*w,e[3]=(c*o*i-s*u*i-c*r*A+n*u*A+s*r*h-n*o*h)*w,e[4]=v*w,e[5]=(l*p*i-f*u*i+f*r*h-t*p*h-l*r*m+t*u*m)*w,e[6]=(f*o*i-a*p*i-f*r*A+t*p*A+a*r*m-t*o*m)*w,e[7]=(a*u*i-l*o*i+l*r*A-t*u*A-a*r*h+t*o*h)*w,e[8]=y*w,e[9]=(f*c*i-l*d*i-f*n*h+t*d*h+l*n*m-t*c*m)*w,e[10]=(a*d*i-f*s*i+f*n*A-t*d*A-a*n*m+t*s*m)*w,e[11]=(l*s*i-a*c*i-l*n*A+t*c*A+a*n*h-t*s*h)*w,e[12]=x*w,e[13]=(l*d*r-f*c*r+f*n*u-t*d*u-l*n*p+t*c*p)*w,e[14]=(f*s*r-a*d*r-f*n*o+t*d*o+a*n*p-t*s*p)*w,e[15]=(a*c*r-l*s*r+l*n*o-t*c*o-a*n*u+t*s*u)*w,this}scale(e){const t=this.elements,n=e.x,r=e.y,i=e.z;return t[0]*=n,t[4]*=r,t[8]*=i,t[1]*=n,t[5]*=r,t[9]*=i,t[2]*=n,t[6]*=r,t[10]*=i,t[3]*=n,t[7]*=r,t[11]*=i,this}getMaxScaleOnAxis(){const e=this.elements,t=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],n=e[4]*e[4]+e[5]*e[5]+e[6]*e[6],r=e[8]*e[8]+e[9]*e[9]+e[10]*e[10];return Math.sqrt(Math.max(t,n,r))}makeTranslation(e,t,n){return this.set(1,0,0,e,0,1,0,t,0,0,1,n,0,0,0,1),this}makeRotationX(e){const t=Math.cos(e),n=Math.sin(e);return this.set(1,0,0,0,0,t,-n,0,0,n,t,0,0,0,0,1),this}makeRotationY(e){const t=Math.cos(e),n=Math.sin(e);return this.set(t,0,n,0,0,1,0,0,-n,0,t,0,0,0,0,1),this}makeRotationZ(e){const t=Math.cos(e),n=Math.sin(e);return this.set(t,-n,0,0,n,t,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(e,t){const n=Math.cos(t),r=Math.sin(t),i=1-n,a=e.x,s=e.y,o=e.z,A=i*a,l=i*s;return this.set(A*a+n,A*s-r*o,A*o+r*s,0,A*s+r*o,l*s+n,l*o-r*a,0,A*o-r*s,l*o+r*a,i*o*o+n,0,0,0,0,1),this}makeScale(e,t,n){return this.set(e,0,0,0,0,t,0,0,0,0,n,0,0,0,0,1),this}makeShear(e,t,n,r,i,a){return this.set(1,n,i,0,e,1,a,0,t,r,1,0,0,0,0,1),this}compose(e,t,n){const r=this.elements,i=t._x,a=t._y,s=t._z,o=t._w,A=i+i,l=a+a,c=s+s,u=i*A,h=i*l,f=i*c,d=a*l,p=a*c,m=s*c,g=o*A,v=o*l,y=o*c,x=n.x,b=n.y,w=n.z;return r[0]=(1-(d+m))*x,r[1]=(h+y)*x,r[2]=(f-v)*x,r[3]=0,r[4]=(h-y)*b,r[5]=(1-(u+m))*b,r[6]=(p+g)*b,r[7]=0,r[8]=(f+v)*w,r[9]=(p-g)*w,r[10]=(1-(u+d))*w,r[11]=0,r[12]=e.x,r[13]=e.y,r[14]=e.z,r[15]=1,this}decompose(e,t,n){const r=this.elements;let i=Qn.set(r[0],r[1],r[2]).length();const a=Qn.set(r[4],r[5],r[6]).length(),s=Qn.set(r[8],r[9],r[10]).length(),o=this.determinant();o<0&&(i=-i),e.x=r[12],e.y=r[13],e.z=r[14],jn.copy(this);const A=1/i,l=1/a,c=1/s;return jn.elements[0]*=A,jn.elements[1]*=A,jn.elements[2]*=A,jn.elements[4]*=l,jn.elements[5]*=l,jn.elements[6]*=l,jn.elements[8]*=c,jn.elements[9]*=c,jn.elements[10]*=c,t.setFromRotationMatrix(jn),n.x=i,n.y=a,n.z=s,this}makePerspective(e,t,n,r,i,a){const s=this.elements,o=2*i/(t-e),A=2*i/(n-r),l=(t+e)/(t-e),c=(n+r)/(n-r),u=-(a+i)/(a-i),h=-2*a*i/(a-i);return s[0]=o,s[4]=0,s[8]=l,s[12]=0,s[1]=0,s[5]=A,s[9]=c,s[13]=0,s[2]=0,s[6]=0,s[10]=u,s[14]=h,s[3]=0,s[7]=0,s[11]=-1,s[15]=0,this}makeOrthographic(e,t,n,r,i,a){const s=this.elements,o=1/(t-e),A=1/(n-r),l=1/(a-i),c=(t+e)*o,u=(n+r)*A,h=(a+i)*l;return s[0]=2*o,s[4]=0,s[8]=0,s[12]=-c,s[1]=0,s[5]=2*A,s[9]=0,s[13]=-u,s[2]=0,s[6]=0,s[10]=-2*l,s[14]=-h,s[3]=0,s[7]=0,s[11]=0,s[15]=1,this}equals(e){const t=this.elements,n=e.elements;for(let r=0;r<16;r++)if(t[r]!==n[r])return!1;return!0}fromArray(e,t=0){for(let n=0;n<16;n++)this.elements[n]=e[n+t];return this}toArray(e=[],t=0){const n=this.elements;return e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=n[3],e[t+4]=n[4],e[t+5]=n[5],e[t+6]=n[6],e[t+7]=n[7],e[t+8]=n[8],e[t+9]=n[9],e[t+10]=n[10],e[t+11]=n[11],e[t+12]=n[12],e[t+13]=n[13],e[t+14]=n[14],e[t+15]=n[15],e}}const Qn=new dn,jn=new Wn,Yn=new dn(0,0,0),Xn=new dn(1,1,1),qn=new dn,Zn=new dn,Kn=new dn,Jn=new Wn,$n=new fn;class er{constructor(e=0,t=0,n=0,r=er.DefaultOrder){this.isEuler=!0,this._x=e,this._y=t,this._z=n,this._order=r}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get order(){return this._order}set order(e){this._order=e,this._onChangeCallback()}set(e,t,n,r=this._order){return this._x=e,this._y=t,this._z=n,this._order=r,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._order)}copy(e){return this._x=e._x,this._y=e._y,this._z=e._z,this._order=e._order,this._onChangeCallback(),this}setFromRotationMatrix(e,t=this._order,n=!0){const r=e.elements,i=r[0],a=r[4],s=r[8],o=r[1],A=r[5],l=r[9],c=r[2],u=r[6],h=r[10];switch(t){case"XYZ":this._y=Math.asin(Pt(s,-1,1)),Math.abs(s)<.9999999?(this._x=Math.atan2(-l,h),this._z=Math.atan2(-a,i)):(this._x=Math.atan2(u,A),this._z=0);break;case"YXZ":this._x=Math.asin(-Pt(l,-1,1)),Math.abs(l)<.9999999?(this._y=Math.atan2(s,h),this._z=Math.atan2(o,A)):(this._y=Math.atan2(-c,i),this._z=0);break;case"ZXY":this._x=Math.asin(Pt(u,-1,1)),Math.abs(u)<.9999999?(this._y=Math.atan2(-c,h),this._z=Math.atan2(-a,A)):(this._y=0,this._z=Math.atan2(o,i));break;case"ZYX":this._y=Math.asin(-Pt(c,-1,1)),Math.abs(c)<.9999999?(this._x=Math.atan2(u,h),this._z=Math.atan2(o,i)):(this._x=0,this._z=Math.atan2(-a,A));break;case"YZX":this._z=Math.asin(Pt(o,-1,1)),Math.abs(o)<.9999999?(this._x=Math.atan2(-l,A),this._y=Math.atan2(-c,i)):(this._x=0,this._y=Math.atan2(s,h));break;case"XZY":this._z=Math.asin(-Pt(a,-1,1)),Math.abs(a)<.9999999?(this._x=Math.atan2(u,A),this._y=Math.atan2(s,i)):(this._x=Math.atan2(-l,h),this._y=0);break;default:console.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: "+t)}return this._order=t,!0===n&&this._onChangeCallback(),this}setFromQuaternion(e,t,n){return Jn.makeRotationFromQuaternion(e),this.setFromRotationMatrix(Jn,t,n)}setFromVector3(e,t=this._order){return this.set(e.x,e.y,e.z,t)}reorder(e){return $n.setFromEuler(this),this.setFromQuaternion($n,e)}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._order===this._order}fromArray(e){return this._x=e[0],this._y=e[1],this._z=e[2],void 0!==e[3]&&(this._order=e[3]),this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._order,e}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._order}toVector3(){console.error("THREE.Euler: .toVector3() has been removed. Use Vector3.setFromEuler() instead")}}er.DefaultOrder="XYZ",er.RotationOrders=["XYZ","YZX","ZXY","XZY","YXZ","ZYX"];class tr{constructor(){this.mask=1}set(e){this.mask=(1<>>0}enable(e){this.mask|=1<1){for(let e=0;e1){for(let e=0;e0&&(n=n.concat(i))}return n}getWorldPosition(e){return this.updateWorldMatrix(!0,!1),e.setFromMatrixPosition(this.matrixWorld)}getWorldQuaternion(e){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(or,e,Ar),e}getWorldScale(e){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(or,lr,e),e}getWorldDirection(e){this.updateWorldMatrix(!0,!1);const t=this.matrixWorld.elements;return e.set(t[8],t[9],t[10]).normalize()}raycast(){}traverse(e){e(this);const t=this.children;for(let n=0,r=t.length;n0&&(r.userData=this.userData),r.layers=this.layers.mask,r.matrix=this.matrix.toArray(),!1===this.matrixAutoUpdate&&(r.matrixAutoUpdate=!1),this.isInstancedMesh&&(r.type="InstancedMesh",r.count=this.count,r.instanceMatrix=this.instanceMatrix.toJSON(),null!==this.instanceColor&&(r.instanceColor=this.instanceColor.toJSON())),this.isScene)this.background&&(this.background.isColor?r.background=this.background.toJSON():this.background.isTexture&&(r.background=this.background.toJSON(e).uuid)),this.environment&&this.environment.isTexture&&!0!==this.environment.isRenderTargetTexture&&(r.environment=this.environment.toJSON(e).uuid);else if(this.isMesh||this.isLine||this.isPoints){r.geometry=i(e.geometries,this.geometry);const t=this.geometry.parameters;if(void 0!==t&&void 0!==t.shapes){const n=t.shapes;if(Array.isArray(n))for(let t=0,r=n.length;t0){r.children=[];for(let t=0;t0){r.animations=[];for(let t=0;t0&&(n.geometries=t),r.length>0&&(n.materials=r),i.length>0&&(n.textures=i),s.length>0&&(n.images=s),o.length>0&&(n.shapes=o),A.length>0&&(n.skeletons=A),l.length>0&&(n.animations=l),c.length>0&&(n.nodes=c)}return n.object=r,n;function a(e){const t=[];for(const n in e){const r=e[n];delete r.metadata,t.push(r)}return t}}clone(e){return(new this.constructor).copy(this,e)}copy(e,t=!0){if(this.name=e.name,this.up.copy(e.up),this.position.copy(e.position),this.rotation.order=e.rotation.order,this.quaternion.copy(e.quaternion),this.scale.copy(e.scale),this.matrix.copy(e.matrix),this.matrixWorld.copy(e.matrixWorld),this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrixWorldNeedsUpdate=e.matrixWorldNeedsUpdate,this.matrixWorldAutoUpdate=e.matrixWorldAutoUpdate,this.layers.mask=e.layers.mask,this.visible=e.visible,this.castShadow=e.castShadow,this.receiveShadow=e.receiveShadow,this.frustumCulled=e.frustumCulled,this.renderOrder=e.renderOrder,this.userData=JSON.parse(JSON.stringify(e.userData)),!0===t)for(let n=0;n0?r.multiplyScalar(1/Math.sqrt(i)):r.set(0,0,0)}static getBarycoord(e,t,n,r,i){mr.subVectors(r,t),gr.subVectors(n,t),vr.subVectors(e,t);const a=mr.dot(mr),s=mr.dot(gr),o=mr.dot(vr),A=gr.dot(gr),l=gr.dot(vr),c=a*A-s*s;if(0===c)return i.set(-2,-1,-1);const u=1/c,h=(A*o-s*l)*u,f=(a*l-s*o)*u;return i.set(1-h-f,f,h)}static containsPoint(e,t,n,r){return this.getBarycoord(e,t,n,r,yr),yr.x>=0&&yr.y>=0&&yr.x+yr.y<=1}static getUV(e,t,n,r,i,a,s,o){return this.getBarycoord(e,t,n,r,yr),o.set(0,0),o.addScaledVector(i,yr.x),o.addScaledVector(a,yr.y),o.addScaledVector(s,yr.z),o}static isFrontFacing(e,t,n,r){return mr.subVectors(n,t),gr.subVectors(e,t),mr.cross(gr).dot(r)<0}set(e,t,n){return this.a.copy(e),this.b.copy(t),this.c.copy(n),this}setFromPointsAndIndices(e,t,n,r){return this.a.copy(e[t]),this.b.copy(e[n]),this.c.copy(e[r]),this}setFromAttributeAndIndices(e,t,n,r){return this.a.fromBufferAttribute(e,t),this.b.fromBufferAttribute(e,n),this.c.fromBufferAttribute(e,r),this}clone(){return(new this.constructor).copy(this)}copy(e){return this.a.copy(e.a),this.b.copy(e.b),this.c.copy(e.c),this}getArea(){return mr.subVectors(this.c,this.b),gr.subVectors(this.a,this.b),.5*mr.cross(gr).length()}getMidpoint(e){return e.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(e){return Er.getNormal(this.a,this.b,this.c,e)}getPlane(e){return e.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(e,t){return Er.getBarycoord(e,this.a,this.b,this.c,t)}getUV(e,t,n,r,i){return Er.getUV(e,this.a,this.b,this.c,t,n,r,i)}containsPoint(e){return Er.containsPoint(e,this.a,this.b,this.c)}isFrontFacing(e){return Er.isFrontFacing(this.a,this.b,this.c,e)}intersectsBox(e){return e.intersectsTriangle(this)}closestPointToPoint(e,t){const n=this.a,r=this.b,i=this.c;let a,s;xr.subVectors(r,n),br.subVectors(i,n),_r.subVectors(e,n);const o=xr.dot(_r),A=br.dot(_r);if(o<=0&&A<=0)return t.copy(n);Mr.subVectors(e,r);const l=xr.dot(Mr),c=br.dot(Mr);if(l>=0&&c<=l)return t.copy(r);const u=o*c-l*A;if(u<=0&&o>=0&&l<=0)return a=o/(o-l),t.copy(n).addScaledVector(xr,a);Sr.subVectors(e,i);const h=xr.dot(Sr),f=br.dot(Sr);if(f>=0&&h<=f)return t.copy(i);const d=h*A-o*f;if(d<=0&&A>=0&&f<=0)return s=A/(A-f),t.copy(n).addScaledVector(br,s);const p=l*f-h*c;if(p<=0&&c-l>=0&&h-f>=0)return wr.subVectors(i,r),s=(c-l)/(c-l+(h-f)),t.copy(r).addScaledVector(wr,s);const m=1/(p+d+u);return a=d*m,s=u*m,t.copy(n).addScaledVector(xr,a).addScaledVector(br,s)}equals(e){return e.a.equals(this.a)&&e.b.equals(this.b)&&e.c.equals(this.c)}}let Cr=0;class Tr extends Tt{constructor(){super(),this.isMaterial=!0,Object.defineProperty(this,"id",{value:Cr++}),this.uuid=It(),this.name="",this.type="Material",this.blending=p,this.side=c,this.vertexColors=!1,this.opacity=1,this.transparent=!1,this.blendSrc=D,this.blendDst=B,this.blendEquation=x,this.blendSrcAlpha=null,this.blendDstAlpha=null,this.blendEquationAlpha=null,this.depthFunc=N,this.depthTest=!0,this.depthWrite=!0,this.stencilWriteMask=255,this.stencilFunc=Mt,this.stencilRef=0,this.stencilFuncMask=255,this.stencilFail=_t,this.stencilZFail=_t,this.stencilZPass=_t,this.stencilWrite=!1,this.clippingPlanes=null,this.clipIntersection=!1,this.clipShadows=!1,this.shadowSide=null,this.colorWrite=!0,this.precision=null,this.polygonOffset=!1,this.polygonOffsetFactor=0,this.polygonOffsetUnits=0,this.dithering=!1,this.alphaToCoverage=!1,this.premultipliedAlpha=!1,this.visible=!0,this.toneMapped=!0,this.userData={},this.version=0,this._alphaTest=0}get alphaTest(){return this._alphaTest}set alphaTest(e){this._alphaTest>0!==e>0&&this.version++,this._alphaTest=e}onBuild(){}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(e){if(void 0!==e)for(const t in e){const n=e[t];if(void 0===n){console.warn("THREE.Material: '"+t+"' parameter is undefined.");continue}const r=this[t];void 0!==r?r&&r.isColor?r.set(n):r&&r.isVector3&&n&&n.isVector3?r.copy(n):this[t]=n:console.warn("THREE."+this.type+": '"+t+"' is not a property of this material.")}}toJSON(e){const t=void 0===e||"string"===typeof e;t&&(e={textures:{},images:{}});const n={metadata:{version:4.5,type:"Material",generator:"Material.toJSON"}};function r(e){const t=[];for(const n in e){const r=e[n];delete r.metadata,t.push(r)}return t}if(n.uuid=this.uuid,n.type=this.type,""!==this.name&&(n.name=this.name),this.color&&this.color.isColor&&(n.color=this.color.getHex()),void 0!==this.roughness&&(n.roughness=this.roughness),void 0!==this.metalness&&(n.metalness=this.metalness),void 0!==this.sheen&&(n.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(n.sheenColor=this.sheenColor.getHex()),void 0!==this.sheenRoughness&&(n.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(n.emissive=this.emissive.getHex()),this.emissiveIntensity&&1!==this.emissiveIntensity&&(n.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(n.specular=this.specular.getHex()),void 0!==this.specularIntensity&&(n.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(n.specularColor=this.specularColor.getHex()),void 0!==this.shininess&&(n.shininess=this.shininess),void 0!==this.clearcoat&&(n.clearcoat=this.clearcoat),void 0!==this.clearcoatRoughness&&(n.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(n.clearcoatMap=this.clearcoatMap.toJSON(e).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(n.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(e).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(n.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(e).uuid,n.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),void 0!==this.iridescence&&(n.iridescence=this.iridescence),void 0!==this.iridescenceIOR&&(n.iridescenceIOR=this.iridescenceIOR),void 0!==this.iridescenceThicknessRange&&(n.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(n.iridescenceMap=this.iridescenceMap.toJSON(e).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(n.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(e).uuid),this.map&&this.map.isTexture&&(n.map=this.map.toJSON(e).uuid),this.matcap&&this.matcap.isTexture&&(n.matcap=this.matcap.toJSON(e).uuid),this.alphaMap&&this.alphaMap.isTexture&&(n.alphaMap=this.alphaMap.toJSON(e).uuid),this.lightMap&&this.lightMap.isTexture&&(n.lightMap=this.lightMap.toJSON(e).uuid,n.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(n.aoMap=this.aoMap.toJSON(e).uuid,n.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(n.bumpMap=this.bumpMap.toJSON(e).uuid,n.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(n.normalMap=this.normalMap.toJSON(e).uuid,n.normalMapType=this.normalMapType,n.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(n.displacementMap=this.displacementMap.toJSON(e).uuid,n.displacementScale=this.displacementScale,n.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(n.roughnessMap=this.roughnessMap.toJSON(e).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(n.metalnessMap=this.metalnessMap.toJSON(e).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(n.emissiveMap=this.emissiveMap.toJSON(e).uuid),this.specularMap&&this.specularMap.isTexture&&(n.specularMap=this.specularMap.toJSON(e).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(n.specularIntensityMap=this.specularIntensityMap.toJSON(e).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(n.specularColorMap=this.specularColorMap.toJSON(e).uuid),this.envMap&&this.envMap.isTexture&&(n.envMap=this.envMap.toJSON(e).uuid,void 0!==this.combine&&(n.combine=this.combine)),void 0!==this.envMapIntensity&&(n.envMapIntensity=this.envMapIntensity),void 0!==this.reflectivity&&(n.reflectivity=this.reflectivity),void 0!==this.refractionRatio&&(n.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(n.gradientMap=this.gradientMap.toJSON(e).uuid),void 0!==this.transmission&&(n.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(n.transmissionMap=this.transmissionMap.toJSON(e).uuid),void 0!==this.thickness&&(n.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(n.thicknessMap=this.thicknessMap.toJSON(e).uuid),void 0!==this.attenuationDistance&&this.attenuationDistance!==1/0&&(n.attenuationDistance=this.attenuationDistance),void 0!==this.attenuationColor&&(n.attenuationColor=this.attenuationColor.getHex()),void 0!==this.size&&(n.size=this.size),null!==this.shadowSide&&(n.shadowSide=this.shadowSide),void 0!==this.sizeAttenuation&&(n.sizeAttenuation=this.sizeAttenuation),this.blending!==p&&(n.blending=this.blending),this.side!==c&&(n.side=this.side),this.vertexColors&&(n.vertexColors=!0),this.opacity<1&&(n.opacity=this.opacity),!0===this.transparent&&(n.transparent=this.transparent),n.depthFunc=this.depthFunc,n.depthTest=this.depthTest,n.depthWrite=this.depthWrite,n.colorWrite=this.colorWrite,n.stencilWrite=this.stencilWrite,n.stencilWriteMask=this.stencilWriteMask,n.stencilFunc=this.stencilFunc,n.stencilRef=this.stencilRef,n.stencilFuncMask=this.stencilFuncMask,n.stencilFail=this.stencilFail,n.stencilZFail=this.stencilZFail,n.stencilZPass=this.stencilZPass,void 0!==this.rotation&&0!==this.rotation&&(n.rotation=this.rotation),!0===this.polygonOffset&&(n.polygonOffset=!0),0!==this.polygonOffsetFactor&&(n.polygonOffsetFactor=this.polygonOffsetFactor),0!==this.polygonOffsetUnits&&(n.polygonOffsetUnits=this.polygonOffsetUnits),void 0!==this.linewidth&&1!==this.linewidth&&(n.linewidth=this.linewidth),void 0!==this.dashSize&&(n.dashSize=this.dashSize),void 0!==this.gapSize&&(n.gapSize=this.gapSize),void 0!==this.scale&&(n.scale=this.scale),!0===this.dithering&&(n.dithering=!0),this.alphaTest>0&&(n.alphaTest=this.alphaTest),!0===this.alphaToCoverage&&(n.alphaToCoverage=this.alphaToCoverage),!0===this.premultipliedAlpha&&(n.premultipliedAlpha=this.premultipliedAlpha),!0===this.wireframe&&(n.wireframe=this.wireframe),this.wireframeLinewidth>1&&(n.wireframeLinewidth=this.wireframeLinewidth),"round"!==this.wireframeLinecap&&(n.wireframeLinecap=this.wireframeLinecap),"round"!==this.wireframeLinejoin&&(n.wireframeLinejoin=this.wireframeLinejoin),!0===this.flatShading&&(n.flatShading=this.flatShading),!1===this.visible&&(n.visible=!1),!1===this.toneMapped&&(n.toneMapped=!1),!1===this.fog&&(n.fog=!1),Object.keys(this.userData).length>0&&(n.userData=this.userData),t){const t=r(e.textures),i=r(e.images);t.length>0&&(n.textures=t),i.length>0&&(n.images=i)}return n}clone(){return(new this.constructor).copy(this)}copy(e){this.name=e.name,this.blending=e.blending,this.side=e.side,this.vertexColors=e.vertexColors,this.opacity=e.opacity,this.transparent=e.transparent,this.blendSrc=e.blendSrc,this.blendDst=e.blendDst,this.blendEquation=e.blendEquation,this.blendSrcAlpha=e.blendSrcAlpha,this.blendDstAlpha=e.blendDstAlpha,this.blendEquationAlpha=e.blendEquationAlpha,this.depthFunc=e.depthFunc,this.depthTest=e.depthTest,this.depthWrite=e.depthWrite,this.stencilWriteMask=e.stencilWriteMask,this.stencilFunc=e.stencilFunc,this.stencilRef=e.stencilRef,this.stencilFuncMask=e.stencilFuncMask,this.stencilFail=e.stencilFail,this.stencilZFail=e.stencilZFail,this.stencilZPass=e.stencilZPass,this.stencilWrite=e.stencilWrite;const t=e.clippingPlanes;let n=null;if(null!==t){const e=t.length;n=new Array(e);for(let r=0;r!==e;++r)n[r]=t[r].clone()}return this.clippingPlanes=n,this.clipIntersection=e.clipIntersection,this.clipShadows=e.clipShadows,this.shadowSide=e.shadowSide,this.colorWrite=e.colorWrite,this.precision=e.precision,this.polygonOffset=e.polygonOffset,this.polygonOffsetFactor=e.polygonOffsetFactor,this.polygonOffsetUnits=e.polygonOffsetUnits,this.dithering=e.dithering,this.alphaTest=e.alphaTest,this.alphaToCoverage=e.alphaToCoverage,this.premultipliedAlpha=e.premultipliedAlpha,this.visible=e.visible,this.toneMapped=e.toneMapped,this.userData=JSON.parse(JSON.stringify(e.userData)),this}dispose(){this.dispatchEvent({type:"dispose"})}set needsUpdate(e){!0===e&&this.version++}}class Dr extends Tr{constructor(e){super(),this.isMeshBasicMaterial=!0,this.type="MeshBasicMaterial",this.color=new tn(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=W,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.fog=e.fog,this}}const Br=new dn,Lr=new zt;class Ir{constructor(e,t,n=!1){if(Array.isArray(e))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.isBufferAttribute=!0,this.name="",this.array=e,this.itemSize=t,this.count=void 0!==e?e.length/t:0,this.normalized=n,this.usage=St,this.updateRange={offset:0,count:-1},this.version=0}onUploadCallback(){}set needsUpdate(e){!0===e&&this.version++}setUsage(e){return this.usage=e,this}copy(e){return this.name=e.name,this.array=new e.array.constructor(e.array),this.itemSize=e.itemSize,this.count=e.count,this.normalized=e.normalized,this.usage=e.usage,this}copyAt(e,t,n){e*=this.itemSize,n*=t.itemSize;for(let r=0,i=this.itemSize;r0&&(e.userData=this.userData),void 0!==this.parameters){const t=this.parameters;for(const n in t)void 0!==t[n]&&(e[n]=t[n]);return e}e.data={attributes:{}};const t=this.index;null!==t&&(e.data.index={type:t.array.constructor.name,array:Array.prototype.slice.call(t.array)});const n=this.attributes;for(const o in n){const t=n[o];e.data.attributes[o]=t.toJSON(e.data)}const r={};let i=!1;for(const o in this.morphAttributes){const t=this.morphAttributes[o],n=[];for(let r=0,i=t.length;r0&&(r[o]=n,i=!0)}i&&(e.data.morphAttributes=r,e.data.morphTargetsRelative=this.morphTargetsRelative);const a=this.groups;a.length>0&&(e.data.groups=JSON.parse(JSON.stringify(a)));const s=this.boundingSphere;return null!==s&&(e.data.boundingSphere={center:s.center.toArray(),radius:s.radius}),e}clone(){return(new this.constructor).copy(this)}copy(e){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;const t={};this.name=e.name;const n=e.index;null!==n&&this.setIndex(n.clone(t));const r=e.attributes;for(const A in r){const e=r[A];this.setAttribute(A,e.clone(t))}const i=e.morphAttributes;for(const A in i){const e=[],n=i[A];for(let r=0,i=n.length;r0){const e=t[n[0]];if(void 0!==e){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let t=0,n=e.length;tn.far?null:{distance:l,point:ni.clone(),object:e}}function ai(e,t,n,r,i,a,s,o,A){e.getVertexPosition(s,Yr),e.getVertexPosition(o,Xr),e.getVertexPosition(A,qr);const l=ii(e,t,n,r,Yr,Xr,qr,ti);if(l){i&&(Jr.fromBufferAttribute(i,s),$r.fromBufferAttribute(i,o),ei.fromBufferAttribute(i,A),l.uv=Er.getUV(ti,Yr,Xr,qr,Jr,$r,ei,new zt)),a&&(Jr.fromBufferAttribute(a,s),$r.fromBufferAttribute(a,o),ei.fromBufferAttribute(a,A),l.uv2=Er.getUV(ti,Yr,Xr,qr,Jr,$r,ei,new zt));const e={a:s,b:o,c:A,normal:new dn,materialIndex:0};Er.getNormal(Yr,Xr,qr,e.normal),l.face=e}return l}class si extends Vr{constructor(e=1,t=1,n=1,r=1,i=1,a=1){super(),this.type="BoxGeometry",this.parameters={width:e,height:t,depth:n,widthSegments:r,heightSegments:i,depthSegments:a};const s=this;r=Math.floor(r),i=Math.floor(i),a=Math.floor(a);const o=[],A=[],l=[],c=[];let u=0,h=0;function f(e,t,n,r,i,a,f,d,p,m,g){const v=a/p,y=f/m,x=a/2,b=f/2,w=d/2,_=p+1,M=m+1;let S=0,E=0;const C=new dn;for(let s=0;s0?1:-1,l.push(C.x,C.y,C.z),c.push(o/p),c.push(1-s/m),S+=1}}for(let s=0;s0&&(t.defines=this.defines),t.vertexShader=this.vertexShader,t.fragmentShader=this.fragmentShader;const n={};for(const r in this.extensions)!0===this.extensions[r]&&(n[r]=!0);return Object.keys(n).length>0&&(t.extensions=n),t}}class pi extends pr{constructor(){super(),this.isCamera=!0,this.type="Camera",this.matrixWorldInverse=new Wn,this.projectionMatrix=new Wn,this.projectionMatrixInverse=new Wn}copy(e,t){return super.copy(e,t),this.matrixWorldInverse.copy(e.matrixWorldInverse),this.projectionMatrix.copy(e.projectionMatrix),this.projectionMatrixInverse.copy(e.projectionMatrixInverse),this}getWorldDirection(e){this.updateWorldMatrix(!0,!1);const t=this.matrixWorld.elements;return e.set(-t[8],-t[9],-t[10]).normalize()}updateMatrixWorld(e){super.updateMatrixWorld(e),this.matrixWorldInverse.copy(this.matrixWorld).invert()}updateWorldMatrix(e,t){super.updateWorldMatrix(e,t),this.matrixWorldInverse.copy(this.matrixWorld).invert()}clone(){return(new this.constructor).copy(this)}}class mi extends pi{constructor(e=50,t=1,n=.1,r=2e3){super(),this.isPerspectiveCamera=!0,this.type="PerspectiveCamera",this.fov=e,this.zoom=1,this.near=n,this.far=r,this.focus=10,this.aspect=t,this.view=null,this.filmGauge=35,this.filmOffset=0,this.updateProjectionMatrix()}copy(e,t){return super.copy(e,t),this.fov=e.fov,this.zoom=e.zoom,this.near=e.near,this.far=e.far,this.focus=e.focus,this.aspect=e.aspect,this.view=null===e.view?null:Object.assign({},e.view),this.filmGauge=e.filmGauge,this.filmOffset=e.filmOffset,this}setFocalLength(e){const t=.5*this.getFilmHeight()/e;this.fov=2*Lt*Math.atan(t),this.updateProjectionMatrix()}getFocalLength(){const e=Math.tan(.5*Bt*this.fov);return.5*this.getFilmHeight()/e}getEffectiveFOV(){return 2*Lt*Math.atan(Math.tan(.5*Bt*this.fov)/this.zoom)}getFilmWidth(){return this.filmGauge*Math.min(this.aspect,1)}getFilmHeight(){return this.filmGauge/Math.max(this.aspect,1)}setViewOffset(e,t,n,r,i,a){this.aspect=e/t,null===this.view&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=n,this.view.offsetY=r,this.view.width=i,this.view.height=a,this.updateProjectionMatrix()}clearViewOffset(){null!==this.view&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=this.near;let t=e*Math.tan(.5*Bt*this.fov)/this.zoom,n=2*t,r=this.aspect*n,i=-.5*r;const a=this.view;if(null!==this.view&&this.view.enabled){const e=a.fullWidth,s=a.fullHeight;i+=a.offsetX*r/e,t-=a.offsetY*n/s,r*=a.width/e,n*=a.height/s}const s=this.filmOffset;0!==s&&(i+=e*s/this.getFilmWidth()),this.projectionMatrix.makePerspective(i,i+r,t,t-n,e,this.far),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const t=super.toJSON(e);return t.object.fov=this.fov,t.object.zoom=this.zoom,t.object.near=this.near,t.object.far=this.far,t.object.focus=this.focus,t.object.aspect=this.aspect,null!==this.view&&(t.object.view=Object.assign({},this.view)),t.object.filmGauge=this.filmGauge,t.object.filmOffset=this.filmOffset,t}}const gi=-90,vi=1;class yi extends pr{constructor(e,t,n){super(),this.type="CubeCamera",this.renderTarget=n;const r=new mi(gi,vi,e,t);r.layers=this.layers,r.up.set(0,1,0),r.lookAt(1,0,0),this.add(r);const i=new mi(gi,vi,e,t);i.layers=this.layers,i.up.set(0,1,0),i.lookAt(-1,0,0),this.add(i);const a=new mi(gi,vi,e,t);a.layers=this.layers,a.up.set(0,0,-1),a.lookAt(0,1,0),this.add(a);const s=new mi(gi,vi,e,t);s.layers=this.layers,s.up.set(0,0,1),s.lookAt(0,-1,0),this.add(s);const o=new mi(gi,vi,e,t);o.layers=this.layers,o.up.set(0,1,0),o.lookAt(0,0,1),this.add(o);const A=new mi(gi,vi,e,t);A.layers=this.layers,A.up.set(0,1,0),A.lookAt(0,0,-1),this.add(A)}update(e,t){null===this.parent&&this.updateMatrixWorld();const n=this.renderTarget,[r,i,a,s,o,A]=this.children,l=e.getRenderTarget(),c=e.toneMapping,u=e.xr.enabled;e.toneMapping=Y,e.xr.enabled=!1;const h=n.texture.generateMipmaps;n.texture.generateMipmaps=!1,e.setRenderTarget(n,0),e.render(t,r),e.setRenderTarget(n,1),e.render(t,i),e.setRenderTarget(n,2),e.render(t,a),e.setRenderTarget(n,3),e.render(t,s),e.setRenderTarget(n,4),e.render(t,o),n.texture.generateMipmaps=h,e.setRenderTarget(n,5),e.render(t,A),e.setRenderTarget(l),e.toneMapping=c,e.xr.enabled=u,n.texture.needsPMREMUpdate=!0}}class xi extends An{constructor(e,t,n,r,i,a,s,o,A,l){e=void 0!==e?e:[],t=void 0!==t?t:ee,super(e,t,n,r,i,a,s,o,A,l),this.isCubeTexture=!0,this.flipY=!1}get images(){return this.image}set images(e){this.image=e}}class bi extends cn{constructor(e=1,t={}){super(e,e,t),this.isWebGLCubeRenderTarget=!0;const n={width:e,height:e,depth:1},r=[n,n,n,n,n,n];this.texture=new xi(r,t.mapping,t.wrapS,t.wrapT,t.magFilter,t.minFilter,t.format,t.type,t.anisotropy,t.encoding),this.texture.isRenderTargetTexture=!0,this.texture.generateMipmaps=void 0!==t.generateMipmaps&&t.generateMipmaps,this.texture.minFilter=void 0!==t.minFilter?t.minFilter:ue}fromEquirectangularTexture(e,t){this.texture.type=t.type,this.texture.encoding=t.encoding,this.texture.generateMipmaps=t.generateMipmaps,this.texture.minFilter=t.minFilter,this.texture.magFilter=t.magFilter;const n={uniforms:{tEquirect:{value:null}},vertexShader:"\n\n\t\t\t\tvarying vec3 vWorldDirection;\n\n\t\t\t\tvec3 transformDirection( in vec3 dir, in mat4 matrix ) {\n\n\t\t\t\t\treturn normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );\n\n\t\t\t\t}\n\n\t\t\t\tvoid main() {\n\n\t\t\t\t\tvWorldDirection = transformDirection( position, modelMatrix );\n\n\t\t\t\t\t#include \n\t\t\t\t\t#include \n\n\t\t\t\t}\n\t\t\t",fragmentShader:"\n\n\t\t\t\tuniform sampler2D tEquirect;\n\n\t\t\t\tvarying vec3 vWorldDirection;\n\n\t\t\t\t#include \n\n\t\t\t\tvoid main() {\n\n\t\t\t\t\tvec3 direction = normalize( vWorldDirection );\n\n\t\t\t\t\tvec2 sampleUV = equirectUv( direction );\n\n\t\t\t\t\tgl_FragColor = texture2D( tEquirect, sampleUV );\n\n\t\t\t\t}\n\t\t\t"},r=new si(5,5,5),i=new di({name:"CubemapFromEquirect",uniforms:oi(n.uniforms),vertexShader:n.vertexShader,fragmentShader:n.fragmentShader,side:u,blending:d});i.uniforms.tEquirect.value=t;const a=new ri(r,i),s=t.minFilter;t.minFilter===fe&&(t.minFilter=ue);const o=new yi(1,10,this);return o.update(e,a),t.minFilter=s,a.geometry.dispose(),a.material.dispose(),this}clear(e,t,n,r){const i=e.getRenderTarget();for(let a=0;a<6;a++)e.setRenderTarget(this,a),e.clear(t,n,r);e.setRenderTarget(i)}}const wi=new dn,_i=new dn,Mi=new Ht;class Si{constructor(e=new dn(1,0,0),t=0){this.isPlane=!0,this.normal=e,this.constant=t}set(e,t){return this.normal.copy(e),this.constant=t,this}setComponents(e,t,n,r){return this.normal.set(e,t,n),this.constant=r,this}setFromNormalAndCoplanarPoint(e,t){return this.normal.copy(e),this.constant=-t.dot(this.normal),this}setFromCoplanarPoints(e,t,n){const r=wi.subVectors(n,t).cross(_i.subVectors(e,t)).normalize();return this.setFromNormalAndCoplanarPoint(r,e),this}copy(e){return this.normal.copy(e.normal),this.constant=e.constant,this}normalize(){const e=1/this.normal.length();return this.normal.multiplyScalar(e),this.constant*=e,this}negate(){return this.constant*=-1,this.normal.negate(),this}distanceToPoint(e){return this.normal.dot(e)+this.constant}distanceToSphere(e){return this.distanceToPoint(e.center)-e.radius}projectPoint(e,t){return t.copy(this.normal).multiplyScalar(-this.distanceToPoint(e)).add(e)}intersectLine(e,t){const n=e.delta(wi),r=this.normal.dot(n);if(0===r)return 0===this.distanceToPoint(e.start)?t.copy(e.start):null;const i=-(e.start.dot(this.normal)+this.constant)/r;return i<0||i>1?null:t.copy(n).multiplyScalar(i).add(e.start)}intersectsLine(e){const t=this.distanceToPoint(e.start),n=this.distanceToPoint(e.end);return t<0&&n>0||n<0&&t>0}intersectsBox(e){return e.intersectsPlane(this)}intersectsSphere(e){return e.intersectsPlane(this)}coplanarPoint(e){return e.copy(this.normal).multiplyScalar(-this.constant)}applyMatrix4(e,t){const n=t||Mi.getNormalMatrix(e),r=this.coplanarPoint(wi).applyMatrix4(e),i=this.normal.applyMatrix3(n).normalize();return this.constant=-r.dot(i),this}translate(e){return this.constant-=e.dot(this.normal),this}equals(e){return e.normal.equals(this.normal)&&e.constant===this.constant}clone(){return(new this.constructor).copy(this)}}const Ei=new kn,Ci=new dn;class Ti{constructor(e=new Si,t=new Si,n=new Si,r=new Si,i=new Si,a=new Si){this.planes=[e,t,n,r,i,a]}set(e,t,n,r,i,a){const s=this.planes;return s[0].copy(e),s[1].copy(t),s[2].copy(n),s[3].copy(r),s[4].copy(i),s[5].copy(a),this}copy(e){const t=this.planes;for(let n=0;n<6;n++)t[n].copy(e.planes[n]);return this}setFromProjectionMatrix(e){const t=this.planes,n=e.elements,r=n[0],i=n[1],a=n[2],s=n[3],o=n[4],A=n[5],l=n[6],c=n[7],u=n[8],h=n[9],f=n[10],d=n[11],p=n[12],m=n[13],g=n[14],v=n[15];return t[0].setComponents(s-r,c-o,d-u,v-p).normalize(),t[1].setComponents(s+r,c+o,d+u,v+p).normalize(),t[2].setComponents(s+i,c+A,d+h,v+m).normalize(),t[3].setComponents(s-i,c-A,d-h,v-m).normalize(),t[4].setComponents(s-a,c-l,d-f,v-g).normalize(),t[5].setComponents(s+a,c+l,d+f,v+g).normalize(),this}intersectsObject(e){const t=e.geometry;return null===t.boundingSphere&&t.computeBoundingSphere(),Ei.copy(t.boundingSphere).applyMatrix4(e.matrixWorld),this.intersectsSphere(Ei)}intersectsSprite(e){return Ei.center.set(0,0,0),Ei.radius=.7071067811865476,Ei.applyMatrix4(e.matrixWorld),this.intersectsSphere(Ei)}intersectsSphere(e){const t=this.planes,n=e.center,r=-e.radius;for(let i=0;i<6;i++){const e=t[i].distanceToPoint(n);if(e0?e.max.x:e.min.x,Ci.y=r.normal.y>0?e.max.y:e.min.y,Ci.z=r.normal.z>0?e.max.z:e.min.z,r.distanceToPoint(Ci)<0)return!1}return!0}containsPoint(e){const t=this.planes;for(let n=0;n<6;n++)if(t[n].distanceToPoint(e)<0)return!1;return!0}clone(){return(new this.constructor).copy(this)}}function Di(){let e=null,t=!1,n=null,r=null;function i(t,a){n(t,a),r=e.requestAnimationFrame(i)}return{start:function(){!0!==t&&null!==n&&(r=e.requestAnimationFrame(i),t=!0)},stop:function(){e.cancelAnimationFrame(r),t=!1},setAnimationLoop:function(e){n=e},setContext:function(t){e=t}}}function Bi(e,t){const n=t.isWebGL2,r=new WeakMap;function i(t,r){const i=t.array,a=t.usage,s=e.createBuffer();let o;if(e.bindBuffer(r,s),e.bufferData(r,i,a),t.onUploadCallback(),i instanceof Float32Array)o=5126;else if(i instanceof Uint16Array)if(t.isFloat16BufferAttribute){if(!n)throw new Error("THREE.WebGLAttributes: Usage of Float16BufferAttribute requires WebGL2.");o=5131}else o=5123;else if(i instanceof Int16Array)o=5122;else if(i instanceof Uint32Array)o=5125;else if(i instanceof Int32Array)o=5124;else if(i instanceof Int8Array)o=5120;else if(i instanceof Uint8Array)o=5121;else{if(!(i instanceof Uint8ClampedArray))throw new Error("THREE.WebGLAttributes: Unsupported buffer data format: "+i);o=5121}return{buffer:s,type:o,bytesPerElement:i.BYTES_PER_ELEMENT,version:t.version}}function a(t,r,i){const a=r.array,s=r.updateRange;e.bindBuffer(i,t),-1===s.count?e.bufferSubData(i,0,a):(n?e.bufferSubData(i,s.offset*a.BYTES_PER_ELEMENT,a,s.offset,s.count):e.bufferSubData(i,s.offset*a.BYTES_PER_ELEMENT,a.subarray(s.offset,s.offset+s.count)),s.count=-1),r.onUploadCallback()}function s(e){return e.isInterleavedBufferAttribute&&(e=e.data),r.get(e)}function o(t){t.isInterleavedBufferAttribute&&(t=t.data);const n=r.get(t);n&&(e.deleteBuffer(n.buffer),r.delete(t))}function A(e,t){if(e.isGLBufferAttribute){const t=r.get(e);return void((!t||t.version0;m=(e?n:t).get(m)}const v=e.xr,y=v.getSession&&v.getSession();y&&"additive"===y.environmentBlendMode&&(m=null),null===m?g(o,h):m&&m.isColor&&(g(m,1),s=!0),(e.autoClear||s)&&e.clear(e.autoClearColor,e.autoClearDepth,e.autoClearStencil),m&&(m.isCubeTexture||m.mapping===ie)?(void 0===l&&(l=new ri(new si(1,1,1),new di({name:"BackgroundCubeMaterial",uniforms:oi(ho.backgroundCube.uniforms),vertexShader:ho.backgroundCube.vertexShader,fragmentShader:ho.backgroundCube.fragmentShader,side:u,depthTest:!1,depthWrite:!1,fog:!1})),l.geometry.deleteAttribute("normal"),l.geometry.deleteAttribute("uv"),l.onBeforeRender=function(e,t,n){this.matrixWorld.copyPosition(n.matrixWorld)},Object.defineProperty(l.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),i.update(l)),l.material.uniforms.envMap.value=m,l.material.uniforms.flipEnvMap.value=m.isCubeTexture&&!1===m.isRenderTargetTexture?-1:1,l.material.uniforms.backgroundBlurriness.value=a.backgroundBlurriness,l.material.uniforms.backgroundIntensity.value=a.backgroundIntensity,l.material.toneMapped=m.encoding!==mt,f===m&&d===m.version&&p===e.toneMapping||(l.material.needsUpdate=!0,f=m,d=m.version,p=e.toneMapping),l.layers.enableAll(),r.unshift(l,l.geometry,l.material,0,0,null)):m&&m.isTexture&&(void 0===A&&(A=new ri(new Li(2,2),new di({name:"BackgroundMaterial",uniforms:oi(ho.background.uniforms),vertexShader:ho.background.vertexShader,fragmentShader:ho.background.fragmentShader,side:c,depthTest:!1,depthWrite:!1,fog:!1})),A.geometry.deleteAttribute("normal"),Object.defineProperty(A.material,"map",{get:function(){return this.uniforms.t2D.value}}),i.update(A)),A.material.uniforms.t2D.value=m,A.material.uniforms.backgroundIntensity.value=a.backgroundIntensity,A.material.toneMapped=m.encoding!==mt,!0===m.matrixAutoUpdate&&m.updateMatrix(),A.material.uniforms.uvTransform.value.copy(m.matrix),f===m&&d===m.version&&p===e.toneMapping||(A.material.needsUpdate=!0,f=m,d=m.version,p=e.toneMapping),A.layers.enableAll(),r.unshift(A,A.geometry,A.material,0,0,null))}function g(t,n){t.getRGB(fo,ci(e)),r.buffers.color.setClear(fo.r,fo.g,fo.b,n,s)}return{getClearColor:function(){return o},setClearColor:function(e,t=1){o.set(e),h=t,g(o,h)},getClearAlpha:function(){return h},setClearAlpha:function(e){h=e,g(o,h)},render:m}}function mo(e,t,n,r){const i=e.getParameter(34921),a=r.isWebGL2?null:t.get("OES_vertex_array_object"),s=r.isWebGL2||null!==a,o={},A=m(null);let l=A,c=!1;function u(t,r,i,a,o){let A=!1;if(s){const e=p(a,i,r);l!==e&&(l=e,f(l.object)),A=g(t,a,i,o),A&&v(t,a,i,o)}else{const e=!0===r.wireframe;l.geometry===a.id&&l.program===i.id&&l.wireframe===e||(l.geometry=a.id,l.program=i.id,l.wireframe=e,A=!0)}null!==o&&n.update(o,34963),(A||c)&&(c=!1,M(t,r,i,a),null!==o&&e.bindBuffer(34963,n.get(o).buffer))}function h(){return r.isWebGL2?e.createVertexArray():a.createVertexArrayOES()}function f(t){return r.isWebGL2?e.bindVertexArray(t):a.bindVertexArrayOES(t)}function d(t){return r.isWebGL2?e.deleteVertexArray(t):a.deleteVertexArrayOES(t)}function p(e,t,n){const r=!0===n.wireframe;let i=o[e.id];void 0===i&&(i={},o[e.id]=i);let a=i[t.id];void 0===a&&(a={},i[t.id]=a);let s=a[r];return void 0===s&&(s=m(h()),a[r]=s),s}function m(e){const t=[],n=[],r=[];for(let a=0;a=0){const t=i[A];let n=a[A];if(void 0===n&&("instanceMatrix"===A&&e.instanceMatrix&&(n=e.instanceMatrix),"instanceColor"===A&&e.instanceColor&&(n=e.instanceColor)),void 0===t)return!0;if(t.attribute!==n)return!0;if(n&&t.data!==n.data)return!0;s++}}return l.attributesNum!==s||l.index!==r}function v(e,t,n,r){const i={},a=t.attributes;let s=0;const o=n.getAttributes();for(const A in o){const t=o[A];if(t.location>=0){let t=a[A];void 0===t&&("instanceMatrix"===A&&e.instanceMatrix&&(t=e.instanceMatrix),"instanceColor"===A&&e.instanceColor&&(t=e.instanceColor));const n={};n.attribute=t,t&&t.data&&(n.data=t.data),i[A]=n,s++}}l.attributes=i,l.attributesNum=s,l.index=r}function y(){const e=l.newAttributes;for(let t=0,n=e.length;t=0){let a=A[t];if(void 0===a&&("instanceMatrix"===t&&i.instanceMatrix&&(a=i.instanceMatrix),"instanceColor"===t&&i.instanceColor&&(a=i.instanceColor)),void 0!==a){const t=a.normalized,s=a.itemSize,A=n.get(a);if(void 0===A)continue;const l=A.buffer,c=A.type,u=A.bytesPerElement;if(a.isInterleavedBufferAttribute){const n=a.data,A=n.stride,h=a.offset;if(n.isInstancedInterleavedBuffer){for(let e=0;e0&&e.getShaderPrecisionFormat(35632,36338).precision>0)return"highp";t="mediump"}return"mediump"===t&&e.getShaderPrecisionFormat(35633,36337).precision>0&&e.getShaderPrecisionFormat(35632,36337).precision>0?"mediump":"lowp"}const s="undefined"!==typeof WebGL2RenderingContext&&e instanceof WebGL2RenderingContext||"undefined"!==typeof WebGL2ComputeRenderingContext&&e instanceof WebGL2ComputeRenderingContext;let o=void 0!==n.precision?n.precision:"highp";const A=a(o);A!==o&&(console.warn("THREE.WebGLRenderer:",o,"not supported, using",A,"instead."),o=A);const l=s||t.has("WEBGL_draw_buffers"),c=!0===n.logarithmicDepthBuffer,u=e.getParameter(34930),h=e.getParameter(35660),f=e.getParameter(3379),d=e.getParameter(34076),p=e.getParameter(34921),m=e.getParameter(36347),g=e.getParameter(36348),v=e.getParameter(36349),y=h>0,x=s||t.has("OES_texture_float"),b=y&&x,w=s?e.getParameter(36183):0;return{isWebGL2:s,drawBuffers:l,getMaxAnisotropy:i,getMaxPrecision:a,precision:o,logarithmicDepthBuffer:c,maxTextures:u,maxVertexTextures:h,maxTextureSize:f,maxCubemapSize:d,maxAttributes:p,maxVertexUniforms:m,maxVaryings:g,maxFragmentUniforms:v,vertexTextures:y,floatFragmentTextures:x,floatVertexTextures:b,maxSamples:w}}function yo(e){const t=this;let n=null,r=0,i=!1,a=!1;const s=new Si,o=new Ht,A={value:null,needsUpdate:!1};function l(){A.value!==n&&(A.value=n,A.needsUpdate=r>0),t.numPlanes=r,t.numIntersection=0}function c(e,n,r,i){const a=null!==e?e.length:0;let l=null;if(0!==a){if(l=A.value,!0!==i||null===l){const t=r+4*a,i=n.matrixWorldInverse;o.getNormalMatrix(i),(null===l||l.length0){const s=new bi(a.height/2);return s.fromEquirectangularTexture(e,r),t.set(r,s),r.addEventListener("dispose",i),n(s.texture,r.mapping)}return null}}}return r}function i(e){const n=e.target;n.removeEventListener("dispose",i);const r=t.get(n);void 0!==r&&(t.delete(n),r.dispose())}function a(){t=new WeakMap}return{get:r,dispose:a}}class bo extends pi{constructor(e=-1,t=1,n=1,r=-1,i=.1,a=2e3){super(),this.isOrthographicCamera=!0,this.type="OrthographicCamera",this.zoom=1,this.view=null,this.left=e,this.right=t,this.top=n,this.bottom=r,this.near=i,this.far=a,this.updateProjectionMatrix()}copy(e,t){return super.copy(e,t),this.left=e.left,this.right=e.right,this.top=e.top,this.bottom=e.bottom,this.near=e.near,this.far=e.far,this.zoom=e.zoom,this.view=null===e.view?null:Object.assign({},e.view),this}setViewOffset(e,t,n,r,i,a){null===this.view&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=n,this.view.offsetY=r,this.view.width=i,this.view.height=a,this.updateProjectionMatrix()}clearViewOffset(){null!==this.view&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=(this.right-this.left)/(2*this.zoom),t=(this.top-this.bottom)/(2*this.zoom),n=(this.right+this.left)/2,r=(this.top+this.bottom)/2;let i=n-e,a=n+e,s=r+t,o=r-t;if(null!==this.view&&this.view.enabled){const e=(this.right-this.left)/this.view.fullWidth/this.zoom,t=(this.top-this.bottom)/this.view.fullHeight/this.zoom;i+=e*this.view.offsetX,a=i+e*this.view.width,s-=t*this.view.offsetY,o=s-t*this.view.height}this.projectionMatrix.makeOrthographic(i,a,s,o,this.near,this.far),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const t=super.toJSON(e);return t.object.zoom=this.zoom,t.object.left=this.left,t.object.right=this.right,t.object.top=this.top,t.object.bottom=this.bottom,t.object.near=this.near,t.object.far=this.far,null!==this.view&&(t.object.view=Object.assign({},this.view)),t}}const wo=4,_o=[.125,.215,.35,.446,.526,.582],Mo=20,So=new bo,Eo=new tn;let Co=null;const To=(1+Math.sqrt(5))/2,Do=1/To,Bo=[new dn(1,1,1),new dn(-1,1,1),new dn(1,1,-1),new dn(-1,1,-1),new dn(0,To,Do),new dn(0,To,-Do),new dn(Do,0,To),new dn(-Do,0,To),new dn(To,Do,0),new dn(-To,Do,0)];class Lo{constructor(e){this._renderer=e,this._pingPongRenderTarget=null,this._lodMax=0,this._cubeSize=0,this._lodPlanes=[],this._sizeLods=[],this._sigmas=[],this._blurMaterial=null,this._cubemapMaterial=null,this._equirectMaterial=null,this._compileMaterial(this._blurMaterial)}fromScene(e,t=0,n=.1,r=100){Co=this._renderer.getRenderTarget(),this._setSize(256);const i=this._allocateTargets();return i.depthBuffer=!0,this._sceneToCubeUV(e,n,r,i),t>0&&this._blur(i,0,0,t),this._applyPMREM(i),this._cleanup(i),i}fromEquirectangular(e,t=null){return this._fromTexture(e,t)}fromCubemap(e,t=null){return this._fromTexture(e,t)}compileCubemapShader(){null===this._cubemapMaterial&&(this._cubemapMaterial=Uo(),this._compileMaterial(this._cubemapMaterial))}compileEquirectangularShader(){null===this._equirectMaterial&&(this._equirectMaterial=Oo(),this._compileMaterial(this._equirectMaterial))}dispose(){this._dispose(),null!==this._cubemapMaterial&&this._cubemapMaterial.dispose(),null!==this._equirectMaterial&&this._equirectMaterial.dispose()}_setSize(e){this._lodMax=Math.floor(Math.log2(e)),this._cubeSize=Math.pow(2,this._lodMax)}_dispose(){null!==this._blurMaterial&&this._blurMaterial.dispose(),null!==this._pingPongRenderTarget&&this._pingPongRenderTarget.dispose();for(let e=0;e2?n:0,n,n),l.setRenderTarget(r),p&&l.render(d,s),l.render(e,s)}d.geometry.dispose(),d.material.dispose(),l.toneMapping=h,l.autoClear=c,e.background=m}_textureToCubeUV(e,t){const n=this._renderer,r=e.mapping===ee||e.mapping===te;r?(null===this._cubemapMaterial&&(this._cubemapMaterial=Uo()),this._cubemapMaterial.uniforms.flipEnvMap.value=!1===e.isRenderTargetTexture?-1:1):null===this._equirectMaterial&&(this._equirectMaterial=Oo());const i=r?this._cubemapMaterial:this._equirectMaterial,a=new ri(this._lodPlanes[0],i),s=i.uniforms;s["envMap"].value=e;const o=this._cubeSize;Ro(t,0,0,3*o,2*o),n.setRenderTarget(t),n.render(a,So)}_applyPMREM(e){const t=this._renderer,n=t.autoClear;t.autoClear=!1;for(let r=1;rMo&&console.warn(`sigmaRadians, ${i}, is too large and will clip, as it requested ${p} samples when the maximum is set to ${Mo}`);const m=[];let g=0;for(let w=0;wv-wo?r-v+wo:0),b=4*(this._cubeSize-y);Ro(t,x,b,3*y,2*y),o.setRenderTarget(t),o.render(c,So)}}function Io(e){const t=[],n=[],r=[];let i=e;const a=e-wo+1+_o.length;for(let s=0;se-wo?o=_o[s-e+wo-1]:0===s&&(o=0),r.push(o);const A=1/(a-2),l=-A,c=1+A,u=[l,l,c,l,c,c,l,l,c,c,l,c],h=6,f=6,d=3,p=2,m=1,g=new Float32Array(d*f*h),v=new Float32Array(p*f*h),y=new Float32Array(m*f*h);for(let e=0;e2?0:-1,r=[t,n,0,t+2/3,n,0,t+2/3,n+1,0,t,n,0,t+2/3,n+1,0,t,n+1,0];g.set(r,d*f*e),v.set(u,p*f*e);const i=[e,e,e,e,e,e];y.set(i,m*f*e)}const x=new Vr;x.setAttribute("position",new Ir(g,d)),x.setAttribute("uv",new Ir(v,p)),x.setAttribute("faceIndex",new Ir(y,m)),t.push(x),i>wo&&i--}return{lodPlanes:t,sizeLods:n,sigmas:r}}function Po(e,t,n){const r=new cn(e,t,n);return r.texture.mapping=ie,r.texture.name="PMREM.cubeUv",r.scissorTest=!0,r}function Ro(e,t,n,r,i){e.viewport.set(t,n,r,i),e.scissor.set(t,n,r,i)}function ko(e,t,n){const r=new Float32Array(Mo),i=new dn(0,1,0),a=new di({name:"SphericalGaussianBlur",defines:{n:Mo,CUBEUV_TEXEL_WIDTH:1/t,CUBEUV_TEXEL_HEIGHT:1/n,CUBEUV_MAX_MIP:e+".0"},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:r},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:i}},vertexShader:Fo(),fragmentShader:"\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform sampler2D envMap;\n\t\t\tuniform int samples;\n\t\t\tuniform float weights[ n ];\n\t\t\tuniform bool latitudinal;\n\t\t\tuniform float dTheta;\n\t\t\tuniform float mipInt;\n\t\t\tuniform vec3 poleAxis;\n\n\t\t\t#define ENVMAP_TYPE_CUBE_UV\n\t\t\t#include \n\n\t\t\tvec3 getSample( float theta, vec3 axis ) {\n\n\t\t\t\tfloat cosTheta = cos( theta );\n\t\t\t\t// Rodrigues' axis-angle rotation\n\t\t\t\tvec3 sampleDirection = vOutputDirection * cosTheta\n\t\t\t\t\t+ cross( axis, vOutputDirection ) * sin( theta )\n\t\t\t\t\t+ axis * dot( axis, vOutputDirection ) * ( 1.0 - cosTheta );\n\n\t\t\t\treturn bilinearCubeUV( envMap, sampleDirection, mipInt );\n\n\t\t\t}\n\n\t\t\tvoid main() {\n\n\t\t\t\tvec3 axis = latitudinal ? poleAxis : cross( poleAxis, vOutputDirection );\n\n\t\t\t\tif ( all( equal( axis, vec3( 0.0 ) ) ) ) {\n\n\t\t\t\t\taxis = vec3( vOutputDirection.z, 0.0, - vOutputDirection.x );\n\n\t\t\t\t}\n\n\t\t\t\taxis = normalize( axis );\n\n\t\t\t\tgl_FragColor = vec4( 0.0, 0.0, 0.0, 1.0 );\n\t\t\t\tgl_FragColor.rgb += weights[ 0 ] * getSample( 0.0, axis );\n\n\t\t\t\tfor ( int i = 1; i < n; i++ ) {\n\n\t\t\t\t\tif ( i >= samples ) {\n\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t}\n\n\t\t\t\t\tfloat theta = dTheta * float( i );\n\t\t\t\t\tgl_FragColor.rgb += weights[ i ] * getSample( -1.0 * theta, axis );\n\t\t\t\t\tgl_FragColor.rgb += weights[ i ] * getSample( theta, axis );\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t",blending:d,depthTest:!1,depthWrite:!1});return a}function Oo(){return new di({name:"EquirectangularToCubeUV",uniforms:{envMap:{value:null}},vertexShader:Fo(),fragmentShader:"\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform sampler2D envMap;\n\n\t\t\t#include \n\n\t\t\tvoid main() {\n\n\t\t\t\tvec3 outputDirection = normalize( vOutputDirection );\n\t\t\t\tvec2 uv = equirectUv( outputDirection );\n\n\t\t\t\tgl_FragColor = vec4( texture2D ( envMap, uv ).rgb, 1.0 );\n\n\t\t\t}\n\t\t",blending:d,depthTest:!1,depthWrite:!1})}function Uo(){return new di({name:"CubemapToCubeUV",uniforms:{envMap:{value:null},flipEnvMap:{value:-1}},vertexShader:Fo(),fragmentShader:"\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tuniform float flipEnvMap;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform samplerCube envMap;\n\n\t\t\tvoid main() {\n\n\t\t\t\tgl_FragColor = textureCube( envMap, vec3( flipEnvMap * vOutputDirection.x, vOutputDirection.yz ) );\n\n\t\t\t}\n\t\t",blending:d,depthTest:!1,depthWrite:!1})}function Fo(){return"\n\n\t\tprecision mediump float;\n\t\tprecision mediump int;\n\n\t\tattribute float faceIndex;\n\n\t\tvarying vec3 vOutputDirection;\n\n\t\t// RH coordinate system; PMREM face-indexing convention\n\t\tvec3 getDirection( vec2 uv, float face ) {\n\n\t\t\tuv = 2.0 * uv - 1.0;\n\n\t\t\tvec3 direction = vec3( uv, 1.0 );\n\n\t\t\tif ( face == 0.0 ) {\n\n\t\t\t\tdirection = direction.zyx; // ( 1, v, u ) pos x\n\n\t\t\t} else if ( face == 1.0 ) {\n\n\t\t\t\tdirection = direction.xzy;\n\t\t\t\tdirection.xz *= -1.0; // ( -u, 1, -v ) pos y\n\n\t\t\t} else if ( face == 2.0 ) {\n\n\t\t\t\tdirection.x *= -1.0; // ( -u, v, 1 ) pos z\n\n\t\t\t} else if ( face == 3.0 ) {\n\n\t\t\t\tdirection = direction.zyx;\n\t\t\t\tdirection.xz *= -1.0; // ( -1, v, -u ) neg x\n\n\t\t\t} else if ( face == 4.0 ) {\n\n\t\t\t\tdirection = direction.xzy;\n\t\t\t\tdirection.xy *= -1.0; // ( -u, -1, v ) neg y\n\n\t\t\t} else if ( face == 5.0 ) {\n\n\t\t\t\tdirection.z *= -1.0; // ( u, v, -1 ) neg z\n\n\t\t\t}\n\n\t\t\treturn direction;\n\n\t\t}\n\n\t\tvoid main() {\n\n\t\t\tvOutputDirection = getDirection( uv, faceIndex );\n\t\t\tgl_Position = vec4( position, 1.0 );\n\n\t\t}\n\t"}function No(e){let t=new WeakMap,n=null;function r(r){if(r&&r.isTexture){const s=r.mapping,o=s===ne||s===re,A=s===ee||s===te;if(o||A){if(r.isRenderTargetTexture&&!0===r.needsPMREMUpdate){r.needsPMREMUpdate=!1;let i=t.get(r);return null===n&&(n=new Lo(e)),i=o?n.fromEquirectangular(r,i):n.fromCubemap(r,i),t.set(r,i),i.texture}if(t.has(r))return t.get(r).texture;{const s=r.image;if(o&&s&&s.height>0||A&&s&&i(s)){null===n&&(n=new Lo(e));const i=o?n.fromEquirectangular(r):n.fromCubemap(r);return t.set(r,i),r.addEventListener("dispose",a),i.texture}return null}}}return r}function i(e){let t=0;const n=6;for(let r=0;rt.maxTextureSize&&(p=Math.ceil(d/t.maxTextureSize),d=t.maxTextureSize);const m=new Float32Array(d*p*4*i),g=new un(m,d,p,i);g.type=xe,g.needsUpdate=!0;const v=4*h;for(let t=0;t0)return e;const i=t*n;let a=Jo[i];if(void 0===a&&(a=new Float32Array(i),Jo[i]=a),0!==t){r.toArray(a,0);for(let r=1,i=0;r!==t;++r)i+=n,e[r].toArray(a,i)}return a}function iA(e,t){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n":" "} ${e}: ${n[s]}`)}return r.join("\n")}function rl(e){switch(e){case pt:return["Linear","( value )"];case mt:return["sRGB","( value )"];default:return console.warn("THREE.WebGLProgram: Unsupported encoding:",e),["Linear","( value )"]}}function il(e,t,n){const r=e.getShaderParameter(t,35713),i=e.getShaderInfoLog(t).trim();if(r&&""===i)return"";const a=/ERROR: 0:(\d+)/.exec(i);if(a){const r=parseInt(a[1]);return n.toUpperCase()+"\n\n"+i+"\n\n"+nl(e.getShaderSource(t),r)}return i}function al(e,t){const n=rl(t);return"vec4 "+e+"( vec4 value ) { return LinearTo"+n[0]+n[1]+"; }"}function sl(e,t){let n;switch(t){case X:n="Linear";break;case q:n="Reinhard";break;case Z:n="OptimizedCineon";break;case K:n="ACESFilmic";break;case J:n="Custom";break;default:console.warn("THREE.WebGLProgram: Unsupported toneMapping:",t),n="Linear"}return"vec3 "+e+"( vec3 color ) { return "+n+"ToneMapping( color ); }"}function ol(e){const t=[e.extensionDerivatives||e.envMapCubeUVHeight||e.bumpMap||e.tangentSpaceNormalMap||e.clearcoatNormalMap||e.flatShading||"physical"===e.shaderID?"#extension GL_OES_standard_derivatives : enable":"",(e.extensionFragDepth||e.logarithmicDepthBuffer)&&e.rendererExtensionFragDepth?"#extension GL_EXT_frag_depth : enable":"",e.extensionDrawBuffers&&e.rendererExtensionDrawBuffers?"#extension GL_EXT_draw_buffers : require":"",(e.extensionShaderTextureLOD||e.envMap||e.transmission)&&e.rendererExtensionShaderTextureLod?"#extension GL_EXT_shader_texture_lod : enable":""];return t.filter(cl).join("\n")}function Al(e){const t=[];for(const n in e){const r=e[n];!1!==r&&t.push("#define "+n+" "+r)}return t.join("\n")}function ll(e,t){const n={},r=e.getProgramParameter(t,35721);for(let i=0;i/gm;function dl(e){return e.replace(fl,pl)}function pl(e,t){const n=co[t];if(void 0===n)throw new Error("Can not resolve #include <"+t+">");return dl(n)}const ml=/#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*i\s*\+\+\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g;function gl(e){return e.replace(ml,vl)}function vl(e,t,n,r){let i="";for(let a=parseInt(t);a0&&(m+="\n"),g=[f,d].filter(cl).join("\n"),g.length>0&&(g+="\n")):(m=[yl(n),"#define SHADER_NAME "+n.shaderName,d,n.instancing?"#define USE_INSTANCING":"",n.instancingColor?"#define USE_INSTANCING_COLOR":"",n.supportsVertexTextures?"#define VERTEX_TEXTURES":"",n.useFog&&n.fog?"#define USE_FOG":"",n.useFog&&n.fogExp2?"#define FOG_EXP2":"",n.map?"#define USE_MAP":"",n.envMap?"#define USE_ENVMAP":"",n.envMap?"#define "+c:"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMap&&n.objectSpaceNormalMap?"#define OBJECTSPACE_NORMALMAP":"",n.normalMap&&n.tangentSpaceNormalMap?"#define TANGENTSPACE_NORMALMAP":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",n.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",n.displacementMap&&n.supportsVertexTextures?"#define USE_DISPLACEMENTMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.specularIntensityMap?"#define USE_SPECULARINTENSITYMAP":"",n.specularColorMap?"#define USE_SPECULARCOLORMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.transmission?"#define USE_TRANSMISSION":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.thicknessMap?"#define USE_THICKNESSMAP":"",n.sheenColorMap?"#define USE_SHEENCOLORMAP":"",n.sheenRoughnessMap?"#define USE_SHEENROUGHNESSMAP":"",n.vertexTangents?"#define USE_TANGENT":"",n.vertexColors?"#define USE_COLOR":"",n.vertexAlphas?"#define USE_COLOR_ALPHA":"",n.vertexUvs?"#define USE_UV":"",n.uvsVertexOnly?"#define UVS_VERTEX_ONLY":"",n.flatShading?"#define FLAT_SHADED":"",n.skinning?"#define USE_SKINNING":"",n.morphTargets?"#define USE_MORPHTARGETS":"",n.morphNormals&&!1===n.flatShading?"#define USE_MORPHNORMALS":"",n.morphColors&&n.isWebGL2?"#define USE_MORPHCOLORS":"",n.morphTargetsCount>0&&n.isWebGL2?"#define MORPHTARGETS_TEXTURE":"",n.morphTargetsCount>0&&n.isWebGL2?"#define MORPHTARGETS_TEXTURE_STRIDE "+n.morphTextureStride:"",n.morphTargetsCount>0&&n.isWebGL2?"#define MORPHTARGETS_COUNT "+n.morphTargetsCount:"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+A:"",n.sizeAttenuation?"#define USE_SIZEATTENUATION":"",n.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",n.logarithmicDepthBuffer&&n.rendererExtensionFragDepth?"#define USE_LOGDEPTHBUF_EXT":"","uniform mat4 modelMatrix;","uniform mat4 modelViewMatrix;","uniform mat4 projectionMatrix;","uniform mat4 viewMatrix;","uniform mat3 normalMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;","#ifdef USE_INSTANCING","\tattribute mat4 instanceMatrix;","#endif","#ifdef USE_INSTANCING_COLOR","\tattribute vec3 instanceColor;","#endif","attribute vec3 position;","attribute vec3 normal;","attribute vec2 uv;","#ifdef USE_TANGENT","\tattribute vec4 tangent;","#endif","#if defined( USE_COLOR_ALPHA )","\tattribute vec4 color;","#elif defined( USE_COLOR )","\tattribute vec3 color;","#endif","#if ( defined( USE_MORPHTARGETS ) && ! defined( MORPHTARGETS_TEXTURE ) )","\tattribute vec3 morphTarget0;","\tattribute vec3 morphTarget1;","\tattribute vec3 morphTarget2;","\tattribute vec3 morphTarget3;","\t#ifdef USE_MORPHNORMALS","\t\tattribute vec3 morphNormal0;","\t\tattribute vec3 morphNormal1;","\t\tattribute vec3 morphNormal2;","\t\tattribute vec3 morphNormal3;","\t#else","\t\tattribute vec3 morphTarget4;","\t\tattribute vec3 morphTarget5;","\t\tattribute vec3 morphTarget6;","\t\tattribute vec3 morphTarget7;","\t#endif","#endif","#ifdef USE_SKINNING","\tattribute vec4 skinIndex;","\tattribute vec4 skinWeight;","#endif","\n"].filter(cl).join("\n"),g=[f,yl(n),"#define SHADER_NAME "+n.shaderName,d,n.useFog&&n.fog?"#define USE_FOG":"",n.useFog&&n.fogExp2?"#define FOG_EXP2":"",n.map?"#define USE_MAP":"",n.matcap?"#define USE_MATCAP":"",n.envMap?"#define USE_ENVMAP":"",n.envMap?"#define "+l:"",n.envMap?"#define "+c:"",n.envMap?"#define "+u:"",h?"#define CUBEUV_TEXEL_WIDTH "+h.texelWidth:"",h?"#define CUBEUV_TEXEL_HEIGHT "+h.texelHeight:"",h?"#define CUBEUV_MAX_MIP "+h.maxMip+".0":"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMap&&n.objectSpaceNormalMap?"#define OBJECTSPACE_NORMALMAP":"",n.normalMap&&n.tangentSpaceNormalMap?"#define TANGENTSPACE_NORMALMAP":"",n.clearcoat?"#define USE_CLEARCOAT":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.iridescence?"#define USE_IRIDESCENCE":"",n.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",n.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.specularIntensityMap?"#define USE_SPECULARINTENSITYMAP":"",n.specularColorMap?"#define USE_SPECULARCOLORMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.alphaTest?"#define USE_ALPHATEST":"",n.sheen?"#define USE_SHEEN":"",n.sheenColorMap?"#define USE_SHEENCOLORMAP":"",n.sheenRoughnessMap?"#define USE_SHEENROUGHNESSMAP":"",n.transmission?"#define USE_TRANSMISSION":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.thicknessMap?"#define USE_THICKNESSMAP":"",n.decodeVideoTexture?"#define DECODE_VIDEO_TEXTURE":"",n.vertexTangents?"#define USE_TANGENT":"",n.vertexColors||n.instancingColor?"#define USE_COLOR":"",n.vertexAlphas?"#define USE_COLOR_ALPHA":"",n.vertexUvs?"#define USE_UV":"",n.uvsVertexOnly?"#define UVS_VERTEX_ONLY":"",n.gradientMap?"#define USE_GRADIENTMAP":"",n.flatShading?"#define FLAT_SHADED":"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+A:"",n.premultipliedAlpha?"#define PREMULTIPLIED_ALPHA":"",n.physicallyCorrectLights?"#define PHYSICALLY_CORRECT_LIGHTS":"",n.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",n.logarithmicDepthBuffer&&n.rendererExtensionFragDepth?"#define USE_LOGDEPTHBUF_EXT":"","uniform mat4 viewMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;",n.toneMapping!==Y?"#define TONE_MAPPING":"",n.toneMapping!==Y?co["tonemapping_pars_fragment"]:"",n.toneMapping!==Y?sl("toneMapping",n.toneMapping):"",n.dithering?"#define DITHERING":"",n.opaque?"#define OPAQUE":"",co["encodings_pars_fragment"],al("linearToOutputTexel",n.outputEncoding),n.useDepthPacking?"#define DEPTH_PACKING "+n.depthPacking:"","\n"].filter(cl).join("\n")),s=dl(s),s=ul(s,n),s=hl(s,n),o=dl(o),o=ul(o,n),o=hl(o,n),s=gl(s),o=gl(o),n.isWebGL2&&!0!==n.isRawShaderMaterial&&(v="#version 300 es\n",m=["precision mediump sampler2DArray;","#define attribute in","#define varying out","#define texture2D texture"].join("\n")+"\n"+m,g=["#define varying in",n.glslVersion===Et?"":"layout(location = 0) out highp vec4 pc_fragColor;",n.glslVersion===Et?"":"#define gl_FragColor pc_fragColor","#define gl_FragDepthEXT gl_FragDepth","#define texture2D texture","#define textureCube texture","#define texture2DProj textureProj","#define texture2DLodEXT textureLod","#define texture2DProjLodEXT textureProjLod","#define textureCubeLodEXT textureLod","#define texture2DGradEXT textureGrad","#define texture2DProjGradEXT textureProjGrad","#define textureCubeGradEXT textureGrad"].join("\n")+"\n"+g);const y=v+m+s,x=v+g+o,b=el(i,35633,y),w=el(i,35632,x);if(i.attachShader(p,b),i.attachShader(p,w),void 0!==n.index0AttributeName?i.bindAttribLocation(p,0,n.index0AttributeName):!0===n.morphTargets&&i.bindAttribLocation(p,0,"position"),i.linkProgram(p),e.debug.checkShaderErrors){const e=i.getProgramInfoLog(p).trim(),t=i.getShaderInfoLog(b).trim(),n=i.getShaderInfoLog(w).trim();let r=!0,a=!0;if(!1===i.getProgramParameter(p,35714)){r=!1;const t=il(i,b,"vertex"),n=il(i,w,"fragment");console.error("THREE.WebGLProgram: Shader Error "+i.getError()+" - VALIDATE_STATUS "+i.getProgramParameter(p,35715)+"\n\nProgram Info Log: "+e+"\n"+t+"\n"+n)}else""!==e?console.warn("THREE.WebGLProgram: Program Info Log:",e):""!==t&&""!==n||(a=!1);a&&(this.diagnostics={runnable:r,programLog:e,vertexShader:{log:t,prefix:m},fragmentShader:{log:n,prefix:g}})}let _,M;return i.deleteShader(b),i.deleteShader(w),this.getUniforms=function(){return void 0===_&&(_=new $A(i,p)),_},this.getAttributes=function(){return void 0===M&&(M=ll(i,p)),M},this.destroy=function(){r.releaseStatesOfProgram(this),i.deleteProgram(p),this.program=void 0},this.name=n.shaderName,this.id=tl++,this.cacheKey=t,this.usedTimes=1,this.program=p,this.vertexShader=b,this.fragmentShader=w,this}let El=0;class Cl{constructor(){this.shaderCache=new Map,this.materialCache=new Map}update(e){const t=e.vertexShader,n=e.fragmentShader,r=this._getShaderStage(t),i=this._getShaderStage(n),a=this._getShaderCacheForMaterial(e);return!1===a.has(r)&&(a.add(r),r.usedTimes++),!1===a.has(i)&&(a.add(i),i.usedTimes++),this}remove(e){const t=this.materialCache.get(e);for(const n of t)n.usedTimes--,0===n.usedTimes&&this.shaderCache.delete(n.code);return this.materialCache.delete(e),this}getVertexShaderID(e){return this._getShaderStage(e.vertexShader).id}getFragmentShaderID(e){return this._getShaderStage(e.fragmentShader).id}dispose(){this.shaderCache.clear(),this.materialCache.clear()}_getShaderCacheForMaterial(e){const t=this.materialCache;let n=t.get(e);return void 0===n&&(n=new Set,t.set(e,n)),n}_getShaderStage(e){const t=this.shaderCache;let n=t.get(e);return void 0===n&&(n=new Tl(e),t.set(e,n)),n}}class Tl{constructor(e){this.id=El++,this.code=e,this.usedTimes=0}}function Dl(e,t,n,r,i,a,s){const o=new tr,A=new Cl,l=[],c=i.isWebGL2,f=i.logarithmicDepthBuffer,d=i.vertexTextures;let m=i.precision;const g={MeshDepthMaterial:"depth",MeshDistanceMaterial:"distanceRGBA",MeshNormalMaterial:"normal",MeshBasicMaterial:"basic",MeshLambertMaterial:"lambert",MeshPhongMaterial:"phong",MeshToonMaterial:"toon",MeshStandardMaterial:"physical",MeshPhysicalMaterial:"physical",MeshMatcapMaterial:"matcap",LineBasicMaterial:"basic",LineDashedMaterial:"dashed",PointsMaterial:"points",ShadowMaterial:"shadow",SpriteMaterial:"sprite"};function v(a,o,l,v,y){const x=v.fog,b=y.geometry,w=a.isMeshStandardMaterial?v.environment:null,_=(a.isMeshStandardMaterial?n:t).get(a.envMap||w),M=_&&_.mapping===ie?_.image.height:null,S=g[a.type];null!==a.precision&&(m=i.getMaxPrecision(a.precision),m!==a.precision&&console.warn("THREE.WebGLProgram.getParameters:",a.precision,"not supported, using",m,"instead."));const E=b.morphAttributes.position||b.morphAttributes.normal||b.morphAttributes.color,C=void 0!==E?E.length:0;let T,D,B,L,I=0;if(void 0!==b.morphAttributes.position&&(I=1),void 0!==b.morphAttributes.normal&&(I=2),void 0!==b.morphAttributes.color&&(I=3),S){const e=ho[S];T=e.vertexShader,D=e.fragmentShader}else T=a.vertexShader,D=a.fragmentShader,A.update(a),B=A.getVertexShaderID(a),L=A.getFragmentShaderID(a);const P=e.getRenderTarget(),R=a.alphaTest>0,k=a.clearcoat>0,O=a.iridescence>0,U={isWebGL2:c,shaderID:S,shaderName:a.type,vertexShader:T,fragmentShader:D,defines:a.defines,customVertexShaderID:B,customFragmentShaderID:L,isRawShaderMaterial:!0===a.isRawShaderMaterial,glslVersion:a.glslVersion,precision:m,instancing:!0===y.isInstancedMesh,instancingColor:!0===y.isInstancedMesh&&null!==y.instanceColor,supportsVertexTextures:d,outputEncoding:null===P?e.outputEncoding:!0===P.isXRRenderTarget?P.texture.encoding:pt,map:!!a.map,matcap:!!a.matcap,envMap:!!_,envMapMode:_&&_.mapping,envMapCubeUVHeight:M,lightMap:!!a.lightMap,aoMap:!!a.aoMap,emissiveMap:!!a.emissiveMap,bumpMap:!!a.bumpMap,normalMap:!!a.normalMap,objectSpaceNormalMap:a.normalMapType===xt,tangentSpaceNormalMap:a.normalMapType===yt,decodeVideoTexture:!!a.map&&!0===a.map.isVideoTexture&&a.map.encoding===mt,clearcoat:k,clearcoatMap:k&&!!a.clearcoatMap,clearcoatRoughnessMap:k&&!!a.clearcoatRoughnessMap,clearcoatNormalMap:k&&!!a.clearcoatNormalMap,iridescence:O,iridescenceMap:O&&!!a.iridescenceMap,iridescenceThicknessMap:O&&!!a.iridescenceThicknessMap,displacementMap:!!a.displacementMap,roughnessMap:!!a.roughnessMap,metalnessMap:!!a.metalnessMap,specularMap:!!a.specularMap,specularIntensityMap:!!a.specularIntensityMap,specularColorMap:!!a.specularColorMap,opaque:!1===a.transparent&&a.blending===p,alphaMap:!!a.alphaMap,alphaTest:R,gradientMap:!!a.gradientMap,sheen:a.sheen>0,sheenColorMap:!!a.sheenColorMap,sheenRoughnessMap:!!a.sheenRoughnessMap,transmission:a.transmission>0,transmissionMap:!!a.transmissionMap,thicknessMap:!!a.thicknessMap,combine:a.combine,vertexTangents:!!a.normalMap&&!!b.attributes.tangent,vertexColors:a.vertexColors,vertexAlphas:!0===a.vertexColors&&!!b.attributes.color&&4===b.attributes.color.itemSize,vertexUvs:!!a.map||!!a.bumpMap||!!a.normalMap||!!a.specularMap||!!a.alphaMap||!!a.emissiveMap||!!a.roughnessMap||!!a.metalnessMap||!!a.clearcoatMap||!!a.clearcoatRoughnessMap||!!a.clearcoatNormalMap||!!a.iridescenceMap||!!a.iridescenceThicknessMap||!!a.displacementMap||!!a.transmissionMap||!!a.thicknessMap||!!a.specularIntensityMap||!!a.specularColorMap||!!a.sheenColorMap||!!a.sheenRoughnessMap,uvsVertexOnly:!(a.map||a.bumpMap||a.normalMap||a.specularMap||a.alphaMap||a.emissiveMap||a.roughnessMap||a.metalnessMap||a.clearcoatNormalMap||a.iridescenceMap||a.iridescenceThicknessMap||a.transmission>0||a.transmissionMap||a.thicknessMap||a.specularIntensityMap||a.specularColorMap||a.sheen>0||a.sheenColorMap||a.sheenRoughnessMap)&&!!a.displacementMap,fog:!!x,useFog:!0===a.fog,fogExp2:x&&x.isFogExp2,flatShading:!!a.flatShading,sizeAttenuation:a.sizeAttenuation,logarithmicDepthBuffer:f,skinning:!0===y.isSkinnedMesh,morphTargets:void 0!==b.morphAttributes.position,morphNormals:void 0!==b.morphAttributes.normal,morphColors:void 0!==b.morphAttributes.color,morphTargetsCount:C,morphTextureStride:I,numDirLights:o.directional.length,numPointLights:o.point.length,numSpotLights:o.spot.length,numSpotLightMaps:o.spotLightMap.length,numRectAreaLights:o.rectArea.length,numHemiLights:o.hemi.length,numDirLightShadows:o.directionalShadowMap.length,numPointLightShadows:o.pointShadowMap.length,numSpotLightShadows:o.spotShadowMap.length,numSpotLightShadowsWithMaps:o.numSpotLightShadowsWithMaps,numClippingPlanes:s.numPlanes,numClipIntersection:s.numIntersection,dithering:a.dithering,shadowMapEnabled:e.shadowMap.enabled&&l.length>0,shadowMapType:e.shadowMap.type,toneMapping:a.toneMapped?e.toneMapping:Y,physicallyCorrectLights:e.physicallyCorrectLights,premultipliedAlpha:a.premultipliedAlpha,doubleSided:a.side===h,flipSided:a.side===u,useDepthPacking:!!a.depthPacking,depthPacking:a.depthPacking||0,index0AttributeName:a.index0AttributeName,extensionDerivatives:a.extensions&&a.extensions.derivatives,extensionFragDepth:a.extensions&&a.extensions.fragDepth,extensionDrawBuffers:a.extensions&&a.extensions.drawBuffers,extensionShaderTextureLOD:a.extensions&&a.extensions.shaderTextureLOD,rendererExtensionFragDepth:c||r.has("EXT_frag_depth"),rendererExtensionDrawBuffers:c||r.has("WEBGL_draw_buffers"),rendererExtensionShaderTextureLod:c||r.has("EXT_shader_texture_lod"),customProgramCacheKey:a.customProgramCacheKey()};return U}function y(t){const n=[];if(t.shaderID?n.push(t.shaderID):(n.push(t.customVertexShaderID),n.push(t.customFragmentShaderID)),void 0!==t.defines)for(const e in t.defines)n.push(e),n.push(t.defines[e]);return!1===t.isRawShaderMaterial&&(x(n,t),b(n,t),n.push(e.outputEncoding)),n.push(t.customProgramCacheKey),n.join()}function x(e,t){e.push(t.precision),e.push(t.outputEncoding),e.push(t.envMapMode),e.push(t.envMapCubeUVHeight),e.push(t.combine),e.push(t.vertexUvs),e.push(t.fogExp2),e.push(t.sizeAttenuation),e.push(t.morphTargetsCount),e.push(t.morphAttributeCount),e.push(t.numDirLights),e.push(t.numPointLights),e.push(t.numSpotLights),e.push(t.numSpotLightMaps),e.push(t.numHemiLights),e.push(t.numRectAreaLights),e.push(t.numDirLightShadows),e.push(t.numPointLightShadows),e.push(t.numSpotLightShadows),e.push(t.numSpotLightShadowsWithMaps),e.push(t.shadowMapType),e.push(t.toneMapping),e.push(t.numClippingPlanes),e.push(t.numClipIntersection),e.push(t.depthPacking)}function b(e,t){o.disableAll(),t.isWebGL2&&o.enable(0),t.supportsVertexTextures&&o.enable(1),t.instancing&&o.enable(2),t.instancingColor&&o.enable(3),t.map&&o.enable(4),t.matcap&&o.enable(5),t.envMap&&o.enable(6),t.lightMap&&o.enable(7),t.aoMap&&o.enable(8),t.emissiveMap&&o.enable(9),t.bumpMap&&o.enable(10),t.normalMap&&o.enable(11),t.objectSpaceNormalMap&&o.enable(12),t.tangentSpaceNormalMap&&o.enable(13),t.clearcoat&&o.enable(14),t.clearcoatMap&&o.enable(15),t.clearcoatRoughnessMap&&o.enable(16),t.clearcoatNormalMap&&o.enable(17),t.iridescence&&o.enable(18),t.iridescenceMap&&o.enable(19),t.iridescenceThicknessMap&&o.enable(20),t.displacementMap&&o.enable(21),t.specularMap&&o.enable(22),t.roughnessMap&&o.enable(23),t.metalnessMap&&o.enable(24),t.gradientMap&&o.enable(25),t.alphaMap&&o.enable(26),t.alphaTest&&o.enable(27),t.vertexColors&&o.enable(28),t.vertexAlphas&&o.enable(29),t.vertexUvs&&o.enable(30),t.vertexTangents&&o.enable(31),t.uvsVertexOnly&&o.enable(32),e.push(o.mask),o.disableAll(),t.fog&&o.enable(0),t.useFog&&o.enable(1),t.flatShading&&o.enable(2),t.logarithmicDepthBuffer&&o.enable(3),t.skinning&&o.enable(4),t.morphTargets&&o.enable(5),t.morphNormals&&o.enable(6),t.morphColors&&o.enable(7),t.premultipliedAlpha&&o.enable(8),t.shadowMapEnabled&&o.enable(9),t.physicallyCorrectLights&&o.enable(10),t.doubleSided&&o.enable(11),t.flipSided&&o.enable(12),t.useDepthPacking&&o.enable(13),t.dithering&&o.enable(14),t.specularIntensityMap&&o.enable(15),t.specularColorMap&&o.enable(16),t.transmission&&o.enable(17),t.transmissionMap&&o.enable(18),t.thicknessMap&&o.enable(19),t.sheen&&o.enable(20),t.sheenColorMap&&o.enable(21),t.sheenRoughnessMap&&o.enable(22),t.decodeVideoTexture&&o.enable(23),t.opaque&&o.enable(24),e.push(o.mask)}function w(e){const t=g[e.type];let n;if(t){const e=ho[t];n=ui.clone(e.uniforms)}else n=e.uniforms;return n}function _(t,n){let r;for(let e=0,i=l.length;e0?r.push(c):!0===a.transparent?i.push(c):n.push(c)}function A(e,t,a,o,A,l){const c=s(e,t,a,o,A,l);a.transmission>0?r.unshift(c):!0===a.transparent?i.unshift(c):n.unshift(c)}function l(e,t){n.length>1&&n.sort(e||Ll),r.length>1&&r.sort(t||Il),i.length>1&&i.sort(t||Il)}function c(){for(let n=t,r=e.length;n=r.length?(i=new Pl,r.push(i)):i=r[n],i}function n(){e=new WeakMap}return{get:t,dispose:n}}function kl(){const e={};return{get:function(t){if(void 0!==e[t.id])return e[t.id];let n;switch(t.type){case"DirectionalLight":n={direction:new dn,color:new tn};break;case"SpotLight":n={position:new dn,direction:new dn,color:new tn,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case"PointLight":n={position:new dn,color:new tn,distance:0,decay:0};break;case"HemisphereLight":n={direction:new dn,skyColor:new tn,groundColor:new tn};break;case"RectAreaLight":n={color:new tn,position:new dn,halfWidth:new dn,halfHeight:new dn};break}return e[t.id]=n,n}}}function Ol(){const e={};return{get:function(t){if(void 0!==e[t.id])return e[t.id];let n;switch(t.type){case"DirectionalLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new zt};break;case"SpotLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new zt};break;case"PointLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new zt,shadowCameraNear:1,shadowCameraFar:1e3};break}return e[t.id]=n,n}}}let Ul=0;function Fl(e,t){return(t.castShadow?2:0)-(e.castShadow?2:0)+(t.map?1:0)-(e.map?1:0)}function Nl(e,t){const n=new kl,r=Ol(),i={version:0,hash:{directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1,numSpotMaps:-1},ambient:[0,0,0],probe:[],directional:[],directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotLightMap:[],spotShadow:[],spotShadowMap:[],spotLightMatrix:[],rectArea:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[],numSpotLightShadowsWithMaps:0};for(let c=0;c<9;c++)i.probe.push(new dn);const a=new dn,s=new Wn,o=new Wn;function A(a,s){let o=0,A=0,l=0;for(let e=0;e<9;e++)i.probe[e].set(0,0,0);let c=0,u=0,h=0,f=0,d=0,p=0,m=0,g=0,v=0,y=0;a.sort(Fl);const x=!0!==s?Math.PI:1;for(let e=0,t=a.length;e0&&(t.isWebGL2||!0===e.has("OES_texture_float_linear")?(i.rectAreaLTC1=uo.LTC_FLOAT_1,i.rectAreaLTC2=uo.LTC_FLOAT_2):!0===e.has("OES_texture_half_float_linear")?(i.rectAreaLTC1=uo.LTC_HALF_1,i.rectAreaLTC2=uo.LTC_HALF_2):console.error("THREE.WebGLRenderer: Unable to use RectAreaLight. Missing WebGL extensions.")),i.ambient[0]=o,i.ambient[1]=A,i.ambient[2]=l;const b=i.hash;b.directionalLength===c&&b.pointLength===u&&b.spotLength===h&&b.rectAreaLength===f&&b.hemiLength===d&&b.numDirectionalShadows===p&&b.numPointShadows===m&&b.numSpotShadows===g&&b.numSpotMaps===v||(i.directional.length=c,i.spot.length=h,i.rectArea.length=f,i.point.length=u,i.hemi.length=d,i.directionalShadow.length=p,i.directionalShadowMap.length=p,i.pointShadow.length=m,i.pointShadowMap.length=m,i.spotShadow.length=g,i.spotShadowMap.length=g,i.directionalShadowMatrix.length=p,i.pointShadowMatrix.length=m,i.spotLightMatrix.length=g+v-y,i.spotLightMap.length=v,i.numSpotLightShadowsWithMaps=y,b.directionalLength=c,b.pointLength=u,b.spotLength=h,b.rectAreaLength=f,b.hemiLength=d,b.numDirectionalShadows=p,b.numPointShadows=m,b.numSpotShadows=g,b.numSpotMaps=v,i.version=Ul++)}function l(e,t){let n=0,r=0,A=0,l=0,c=0;const u=t.matrixWorldInverse;for(let h=0,f=e.length;h=a.length?(s=new zl(e,t),a.push(s)):s=a[i],s}function i(){n=new WeakMap}return{get:r,dispose:i}}class Gl extends Tr{constructor(e){super(),this.isMeshDepthMaterial=!0,this.type="MeshDepthMaterial",this.depthPacking=gt,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.setValues(e)}copy(e){return super.copy(e),this.depthPacking=e.depthPacking,this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this}}class Vl extends Tr{constructor(e){super(),this.isMeshDistanceMaterial=!0,this.type="MeshDistanceMaterial",this.referencePosition=new dn,this.nearDistance=1,this.farDistance=1e3,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.setValues(e)}copy(e){return super.copy(e),this.referencePosition.copy(e.referencePosition),this.nearDistance=e.nearDistance,this.farDistance=e.farDistance,this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this}}const Wl="void main() {\n\tgl_Position = vec4( position, 1.0 );\n}",Ql="uniform sampler2D shadow_pass;\nuniform vec2 resolution;\nuniform float radius;\n#include \nvoid main() {\n\tconst float samples = float( VSM_SAMPLES );\n\tfloat mean = 0.0;\n\tfloat squared_mean = 0.0;\n\tfloat uvStride = samples <= 1.0 ? 0.0 : 2.0 / ( samples - 1.0 );\n\tfloat uvStart = samples <= 1.0 ? 0.0 : - 1.0;\n\tfor ( float i = 0.0; i < samples; i ++ ) {\n\t\tfloat uvOffset = uvStart + i * uvStride;\n\t\t#ifdef HORIZONTAL_PASS\n\t\t\tvec2 distribution = unpackRGBATo2Half( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( uvOffset, 0.0 ) * radius ) / resolution ) );\n\t\t\tmean += distribution.x;\n\t\t\tsquared_mean += distribution.y * distribution.y + distribution.x * distribution.x;\n\t\t#else\n\t\t\tfloat depth = unpackRGBAToDepth( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( 0.0, uvOffset ) * radius ) / resolution ) );\n\t\t\tmean += depth;\n\t\t\tsquared_mean += depth * depth;\n\t\t#endif\n\t}\n\tmean = mean / samples;\n\tsquared_mean = squared_mean / samples;\n\tfloat std_dev = sqrt( squared_mean - mean * mean );\n\tgl_FragColor = pack2HalfToRGBA( vec2( mean, std_dev ) );\n}";function jl(e,t,n){let r=new Ti;const i=new zt,a=new zt,s=new ln,A=new Gl({depthPacking:vt}),f=new Vl,p={},m=n.maxTextureSize,g={0:u,1:c,2:h},v=new di({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new zt},radius:{value:4}},vertexShader:Wl,fragmentShader:Ql}),y=v.clone();y.defines.HORIZONTAL_PASS=1;const x=new Vr;x.setAttribute("position",new Ir(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));const b=new ri(x,v),w=this;function _(n,r){const a=t.update(b);v.defines.VSM_SAMPLES!==n.blurSamples&&(v.defines.VSM_SAMPLES=n.blurSamples,y.defines.VSM_SAMPLES=n.blurSamples,v.needsUpdate=!0,y.needsUpdate=!0),null===n.mapPass&&(n.mapPass=new cn(i.x,i.y)),v.uniforms.shadow_pass.value=n.map.texture,v.uniforms.resolution.value=n.mapSize,v.uniforms.radius.value=n.radius,e.setRenderTarget(n.mapPass),e.clear(),e.renderBufferDirect(r,null,a,v,b,null),y.uniforms.shadow_pass.value=n.mapPass.texture,y.uniforms.resolution.value=n.mapSize,y.uniforms.radius.value=n.radius,e.setRenderTarget(n.map),e.clear(),e.renderBufferDirect(r,null,a,y,b,null)}function M(t,n,r,i,a,s){let o=null;const c=!0===r.isPointLight?t.customDistanceMaterial:t.customDepthMaterial;if(void 0!==c)o=c;else if(o=!0===r.isPointLight?f:A,e.localClippingEnabled&&!0===n.clipShadows&&Array.isArray(n.clippingPlanes)&&0!==n.clippingPlanes.length||n.displacementMap&&0!==n.displacementScale||n.alphaMap&&n.alphaTest>0||n.map&&n.alphaTest>0){const e=o.uuid,t=n.uuid;let r=p[e];void 0===r&&(r={},p[e]=r);let i=r[t];void 0===i&&(i=o.clone(),r[t]=i),o=i}return o.visible=n.visible,o.wireframe=n.wireframe,o.side=s===l?null!==n.shadowSide?n.shadowSide:n.side:null!==n.shadowSide?n.shadowSide:g[n.side],o.alphaMap=n.alphaMap,o.alphaTest=n.alphaTest,o.map=n.map,o.clipShadows=n.clipShadows,o.clippingPlanes=n.clippingPlanes,o.clipIntersection=n.clipIntersection,o.displacementMap=n.displacementMap,o.displacementScale=n.displacementScale,o.displacementBias=n.displacementBias,o.wireframeLinewidth=n.wireframeLinewidth,o.linewidth=n.linewidth,!0===r.isPointLight&&!0===o.isMeshDistanceMaterial&&(o.referencePosition.setFromMatrixPosition(r.matrixWorld),o.nearDistance=i,o.farDistance=a),o}function S(n,i,a,s,o){if(!1===n.visible)return;const A=n.layers.test(i.layers);if(A&&(n.isMesh||n.isLine||n.isPoints)&&(n.castShadow||n.receiveShadow&&o===l)&&(!n.frustumCulled||r.intersectsObject(n))){n.modelViewMatrix.multiplyMatrices(a.matrixWorldInverse,n.matrixWorld);const r=t.update(n),i=n.material;if(Array.isArray(i)){const t=r.groups;for(let A=0,l=t.length;Am||i.y>m)&&(i.x>m&&(a.x=Math.floor(m/u.x),i.x=a.x*u.x,c.mapSize.x=a.x),i.y>m&&(a.y=Math.floor(m/u.y),i.y=a.y*u.y,c.mapSize.y=a.y)),null===c.map){const e=this.type!==l?{minFilter:Ae,magFilter:Ae}:{};c.map=new cn(i.x,i.y,e),c.map.texture.name=A.name+".shadowMap",c.camera.updateProjectionMatrix()}e.setRenderTarget(c.map),e.clear();const d=c.getViewportCount();for(let e=0;e=1):-1!==pe.indexOf("OpenGL ES")&&(de=parseFloat(/^OpenGL ES (\d)/.exec(pe)[1]),fe=de>=2);let me=null,ge={};const ve=e.getParameter(3088),ye=e.getParameter(2978),xe=(new ln).fromArray(ve),be=(new ln).fromArray(ye);function we(t,n,r){const i=new Uint8Array(4),a=e.createTexture();e.bindTexture(t,a),e.texParameteri(t,10241,9728),e.texParameteri(t,10240,9728);for(let s=0;sr||e.height>r)&&(i=r/Math.max(e.width,e.height)),i<1||!0===t){if("undefined"!==typeof HTMLImageElement&&e instanceof HTMLImageElement||"undefined"!==typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement||"undefined"!==typeof ImageBitmap&&e instanceof ImageBitmap){const r=t?Ut:Math.floor,a=r(i*e.width),s=r(i*e.height);void 0===p&&(p=v(a,s));const o=n?v(a,s):p;o.width=a,o.height=s;const A=o.getContext("2d");return A.drawImage(e,0,0,a,s),console.warn("THREE.WebGLRenderer: Texture has been resized from ("+e.width+"x"+e.height+") to ("+a+"x"+s+")."),o}return"data"in e&&console.warn("THREE.WebGLRenderer: Image in DataTexture is too big ("+e.width+"x"+e.height+")."),e}return e}function x(e){return Ot(e.width)&&Ot(e.height)}function b(e){return!o&&(e.wrapS!==se||e.wrapT!==se||e.minFilter!==Ae&&e.minFilter!==ue)}function w(e,t){return e.generateMipmaps&&t&&e.minFilter!==Ae&&e.minFilter!==ue}function _(t){e.generateMipmap(t)}function M(n,r,i,a,s=!1){if(!1===o)return r;if(null!==n){if(void 0!==e[n])return e[n];console.warn("THREE.WebGLRenderer: Attempt to use non-existing WebGL internal format '"+n+"'")}let A=r;return 6403===r&&(5126===i&&(A=33326),5131===i&&(A=33325),5121===i&&(A=33321)),33319===r&&(5126===i&&(A=33328),5131===i&&(A=33327),5121===i&&(A=33323)),6408===r&&(5126===i&&(A=34836),5131===i&&(A=34842),5121===i&&(A=a===mt&&!1===s?35907:32856),32819===i&&(A=32854),32820===i&&(A=32855)),33325!==A&&33326!==A&&33327!==A&&33328!==A&&34842!==A&&34836!==A||t.get("EXT_color_buffer_float"),A}function S(e,t,n){return!0===w(e,n)||e.isFramebufferTexture&&e.minFilter!==Ae&&e.minFilter!==ue?Math.log2(Math.max(t.width,t.height))+1:void 0!==e.mipmaps&&e.mipmaps.length>0?e.mipmaps.length:e.isCompressedTexture&&Array.isArray(e.image)?t.mipmaps.length:1}function E(e){return e===Ae||e===le||e===ce?9728:9729}function C(e){const t=e.target;t.removeEventListener("dispose",C),D(t),t.isVideoTexture&&d.delete(t)}function T(e){const t=e.target;t.removeEventListener("dispose",T),L(t)}function D(e){const t=r.get(e);if(void 0===t.__webglInit)return;const n=e.source,i=m.get(n);if(i){const r=i[t.__cacheKey];r.usedTimes--,0===r.usedTimes&&B(e),0===Object.keys(i).length&&m.delete(n)}r.remove(e)}function B(t){const n=r.get(t);e.deleteTexture(n.__webglTexture);const i=t.source,a=m.get(i);delete a[n.__cacheKey],s.memory.textures--}function L(t){const n=t.texture,i=r.get(t),a=r.get(n);if(void 0!==a.__webglTexture&&(e.deleteTexture(a.__webglTexture),s.memory.textures--),t.depthTexture&&t.depthTexture.dispose(),t.isWebGLCubeRenderTarget)for(let r=0;r<6;r++)e.deleteFramebuffer(i.__webglFramebuffer[r]),i.__webglDepthbuffer&&e.deleteRenderbuffer(i.__webglDepthbuffer[r]);else{if(e.deleteFramebuffer(i.__webglFramebuffer),i.__webglDepthbuffer&&e.deleteRenderbuffer(i.__webglDepthbuffer),i.__webglMultisampledFramebuffer&&e.deleteFramebuffer(i.__webglMultisampledFramebuffer),i.__webglColorRenderbuffer)for(let t=0;t=A&&console.warn("THREE.WebGLTextures: Trying to use "+e+" texture units while this GPU supports only "+A),I+=1,e}function k(e){const t=[];return t.push(e.wrapS),t.push(e.wrapT),t.push(e.wrapR||0),t.push(e.magFilter),t.push(e.minFilter),t.push(e.anisotropy),t.push(e.internalFormat),t.push(e.format),t.push(e.type),t.push(e.generateMipmaps),t.push(e.premultiplyAlpha),t.push(e.flipY),t.push(e.unpackAlignment),t.push(e.encoding),t.join()}function O(e,t){const i=r.get(e);if(e.isVideoTexture&&ne(e),!1===e.isRenderTargetTexture&&e.version>0&&i.__version!==e.version){const n=e.image;if(null===n)console.warn("THREE.WebGLRenderer: Texture marked for update but no image data found.");else{if(!1!==n.complete)return void W(i,e,t);console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete")}}n.bindTexture(3553,i.__webglTexture,33984+t)}function U(e,t){const i=r.get(e);e.version>0&&i.__version!==e.version?W(i,e,t):n.bindTexture(35866,i.__webglTexture,33984+t)}function F(e,t){const i=r.get(e);e.version>0&&i.__version!==e.version?W(i,e,t):n.bindTexture(32879,i.__webglTexture,33984+t)}function N(e,t){const i=r.get(e);e.version>0&&i.__version!==e.version?Q(i,e,t):n.bindTexture(34067,i.__webglTexture,33984+t)}const z={[ae]:10497,[se]:33071,[oe]:33648},H={[Ae]:9728,[le]:9984,[ce]:9986,[ue]:9729,[he]:9985,[fe]:9987};function G(n,a,s){if(s?(e.texParameteri(n,10242,z[a.wrapS]),e.texParameteri(n,10243,z[a.wrapT]),32879!==n&&35866!==n||e.texParameteri(n,32882,z[a.wrapR]),e.texParameteri(n,10240,H[a.magFilter]),e.texParameteri(n,10241,H[a.minFilter])):(e.texParameteri(n,10242,33071),e.texParameteri(n,10243,33071),32879!==n&&35866!==n||e.texParameteri(n,32882,33071),a.wrapS===se&&a.wrapT===se||console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.wrapS and Texture.wrapT should be set to THREE.ClampToEdgeWrapping."),e.texParameteri(n,10240,E(a.magFilter)),e.texParameteri(n,10241,E(a.minFilter)),a.minFilter!==Ae&&a.minFilter!==ue&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.minFilter should be set to THREE.NearestFilter or THREE.LinearFilter.")),!0===t.has("EXT_texture_filter_anisotropic")){const s=t.get("EXT_texture_filter_anisotropic");if(a.magFilter===Ae)return;if(a.minFilter!==ce&&a.minFilter!==fe)return;if(a.type===xe&&!1===t.has("OES_texture_float_linear"))return;if(!1===o&&a.type===be&&!1===t.has("OES_texture_half_float_linear"))return;(a.anisotropy>1||r.get(a).__currentAnisotropy)&&(e.texParameterf(n,s.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(a.anisotropy,i.getMaxAnisotropy())),r.get(a).__currentAnisotropy=a.anisotropy)}}function V(t,n){let r=!1;void 0===t.__webglInit&&(t.__webglInit=!0,n.addEventListener("dispose",C));const i=n.source;let a=m.get(i);void 0===a&&(a={},m.set(i,a));const o=k(n);if(o!==t.__cacheKey){void 0===a[o]&&(a[o]={texture:e.createTexture(),usedTimes:0},s.memory.textures++,r=!0),a[o].usedTimes++;const i=a[t.__cacheKey];void 0!==i&&(a[t.__cacheKey].usedTimes--,0===i.usedTimes&&B(n)),t.__cacheKey=o,t.__webglTexture=a[o].texture}return r}function W(t,i,s){let A=3553;(i.isDataArrayTexture||i.isCompressedArrayTexture)&&(A=35866),i.isData3DTexture&&(A=32879);const l=V(t,i),u=i.source;n.bindTexture(A,t.__webglTexture,33984+s);const h=r.get(u);if(u.version!==h.__version||!0===l){n.activeTexture(33984+s),e.pixelStorei(37440,i.flipY),e.pixelStorei(37441,i.premultiplyAlpha),e.pixelStorei(3317,i.unpackAlignment),e.pixelStorei(37443,0);const t=b(i)&&!1===x(i.image);let r=y(i.image,t,!1,c);r=re(i,r);const f=x(r)||o,d=a.convert(i.format,i.encoding);let p,m=a.convert(i.type),g=M(i.internalFormat,d,m,i.encoding,i.isVideoTexture);G(A,i,f);const v=i.mipmaps,E=o&&!0!==i.isVideoTexture,C=void 0===h.__version||!0===l,T=S(i,r,f);if(i.isDepthTexture)g=6402,o?g=i.type===xe?36012:i.type===ye?33190:i.type===Me?35056:33189:i.type===xe&&console.error("WebGLRenderer: Floating point depth texture requires WebGL2."),i.format===Be&&6402===g&&i.type!==ge&&i.type!==ye&&(console.warn("THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture."),i.type=ye,m=a.convert(i.type)),i.format===Le&&6402===g&&(g=34041,i.type!==Me&&(console.warn("THREE.WebGLRenderer: Use UnsignedInt248Type for DepthStencilFormat DepthTexture."),i.type=Me,m=a.convert(i.type))),C&&(E?n.texStorage2D(3553,1,g,r.width,r.height):n.texImage2D(3553,0,g,r.width,r.height,0,d,m,null));else if(i.isDataTexture)if(v.length>0&&f){E&&C&&n.texStorage2D(3553,T,g,v[0].width,v[0].height);for(let e=0,t=v.length;e>=1,t>>=1}}else if(v.length>0&&f){E&&C&&n.texStorage2D(3553,T,g,v[0].width,v[0].height);for(let e=0,t=v.length;e0&&C++,n.texStorage2D(34067,C,g,h[0].width,h[0].height));for(let e=0;e<6;e++)if(r){v?n.texSubImage2D(34069+e,0,0,0,h[e].width,h[e].height,p,m,h[e].data):n.texImage2D(34069+e,0,g,h[e].width,h[e].height,0,p,m,h[e].data);for(let t=0;t=34069&&A<=34074)&&e.framebufferTexture2D(36160,o,A,r.get(s).__webglTexture,0),n.bindFramebuffer(36160,null)}function Y(t,n,r){if(e.bindRenderbuffer(36161,t),n.depthBuffer&&!n.stencilBuffer){let i=33189;if(r||te(n)){const t=n.depthTexture;t&&t.isDepthTexture&&(t.type===xe?i=36012:t.type===ye&&(i=33190));const r=ee(n);te(n)?h.renderbufferStorageMultisampleEXT(36161,r,i,n.width,n.height):e.renderbufferStorageMultisample(36161,r,i,n.width,n.height)}else e.renderbufferStorage(36161,i,n.width,n.height);e.framebufferRenderbuffer(36160,36096,36161,t)}else if(n.depthBuffer&&n.stencilBuffer){const i=ee(n);r&&!1===te(n)?e.renderbufferStorageMultisample(36161,i,35056,n.width,n.height):te(n)?h.renderbufferStorageMultisampleEXT(36161,i,35056,n.width,n.height):e.renderbufferStorage(36161,34041,n.width,n.height),e.framebufferRenderbuffer(36160,33306,36161,t)}else{const t=!0===n.isWebGLMultipleRenderTargets?n.texture:[n.texture];for(let i=0;i0&&!1===te(t)){const r=h?A:[A];l.__webglMultisampledFramebuffer=e.createFramebuffer(),l.__webglColorRenderbuffer=[],n.bindFramebuffer(36160,l.__webglMultisampledFramebuffer);for(let n=0;n0&&!1===te(t)){const i=t.isWebGLMultipleRenderTargets?t.texture:[t.texture],a=t.width,s=t.height;let o=16384;const A=[],l=t.stencilBuffer?33306:36096,c=r.get(t),u=!0===t.isWebGLMultipleRenderTargets;if(u)for(let t=0;t0&&!0===t.has("WEBGL_multisampled_render_to_texture")&&!1!==n.__useRenderToTexture}function ne(e){const t=s.render.frame;d.get(e)!==t&&(d.set(e,t),e.update())}function re(e,n){const r=e.encoding,i=e.format,a=e.type;return!0===e.isCompressedTexture||!0===e.isVideoTexture||e.format===Ct||r!==pt&&(r===mt?!1===o?!0===t.has("EXT_sRGB")&&i===Ce?(e.format=Ct,e.minFilter=ue,e.generateMipmaps=!1):n=rn.sRGBToLinear(n):i===Ce&&a===de||console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType."):console.error("THREE.WebGLTextures: Unsupported texture encoding:",r)),n}this.allocateTextureUnit=R,this.resetTextureUnits=P,this.setTexture2D=O,this.setTexture2DArray=U,this.setTexture3D=F,this.setTextureCube=N,this.rebindTextures=Z,this.setupRenderTarget=K,this.updateRenderTargetMipmap=J,this.updateMultisampleRenderTarget=$,this.setupDepthRenderbuffer=q,this.setupFrameBufferTexture=j,this.useMultisampledRTT=te}function ql(e,t,n){const r=n.isWebGL2;function i(n,i=null){let a;if(n===de)return 5121;if(n===we)return 32819;if(n===_e)return 32820;if(n===pe)return 5120;if(n===me)return 5122;if(n===ge)return 5123;if(n===ve)return 5124;if(n===ye)return 5125;if(n===xe)return 5126;if(n===be)return r?5131:(a=t.get("OES_texture_half_float"),null!==a?a.HALF_FLOAT_OES:null);if(n===Se)return 6406;if(n===Ce)return 6408;if(n===Te)return 6409;if(n===De)return 6410;if(n===Be)return 6402;if(n===Le)return 34041;if(n===Ee)return console.warn("THREE.WebGLRenderer: THREE.RGBFormat has been removed. Use THREE.RGBAFormat instead. https://github.com/mrdoob/three.js/pull/23228"),6408;if(n===Ct)return a=t.get("EXT_sRGB"),null!==a?a.SRGB_ALPHA_EXT:null;if(n===Ie)return 6403;if(n===Pe)return 36244;if(n===Re)return 33319;if(n===ke)return 33320;if(n===Oe)return 36249;if(n===Ue||n===Fe||n===Ne||n===ze)if(i===mt){if(a=t.get("WEBGL_compressed_texture_s3tc_srgb"),null===a)return null;if(n===Ue)return a.COMPRESSED_SRGB_S3TC_DXT1_EXT;if(n===Fe)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;if(n===Ne)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;if(n===ze)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT}else{if(a=t.get("WEBGL_compressed_texture_s3tc"),null===a)return null;if(n===Ue)return a.COMPRESSED_RGB_S3TC_DXT1_EXT;if(n===Fe)return a.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(n===Ne)return a.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(n===ze)return a.COMPRESSED_RGBA_S3TC_DXT5_EXT}if(n===He||n===Ge||n===Ve||n===We){if(a=t.get("WEBGL_compressed_texture_pvrtc"),null===a)return null;if(n===He)return a.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(n===Ge)return a.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(n===Ve)return a.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(n===We)return a.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}if(n===Qe)return a=t.get("WEBGL_compressed_texture_etc1"),null!==a?a.COMPRESSED_RGB_ETC1_WEBGL:null;if(n===je||n===Ye){if(a=t.get("WEBGL_compressed_texture_etc"),null===a)return null;if(n===je)return i===mt?a.COMPRESSED_SRGB8_ETC2:a.COMPRESSED_RGB8_ETC2;if(n===Ye)return i===mt?a.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:a.COMPRESSED_RGBA8_ETC2_EAC}if(n===Xe||n===qe||n===Ze||n===Ke||n===Je||n===$e||n===et||n===tt||n===nt||n===rt||n===it||n===at||n===st||n===ot){if(a=t.get("WEBGL_compressed_texture_astc"),null===a)return null;if(n===Xe)return i===mt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:a.COMPRESSED_RGBA_ASTC_4x4_KHR;if(n===qe)return i===mt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:a.COMPRESSED_RGBA_ASTC_5x4_KHR;if(n===Ze)return i===mt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:a.COMPRESSED_RGBA_ASTC_5x5_KHR;if(n===Ke)return i===mt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:a.COMPRESSED_RGBA_ASTC_6x5_KHR;if(n===Je)return i===mt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:a.COMPRESSED_RGBA_ASTC_6x6_KHR;if(n===$e)return i===mt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:a.COMPRESSED_RGBA_ASTC_8x5_KHR;if(n===et)return i===mt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:a.COMPRESSED_RGBA_ASTC_8x6_KHR;if(n===tt)return i===mt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:a.COMPRESSED_RGBA_ASTC_8x8_KHR;if(n===nt)return i===mt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:a.COMPRESSED_RGBA_ASTC_10x5_KHR;if(n===rt)return i===mt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:a.COMPRESSED_RGBA_ASTC_10x6_KHR;if(n===it)return i===mt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:a.COMPRESSED_RGBA_ASTC_10x8_KHR;if(n===at)return i===mt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:a.COMPRESSED_RGBA_ASTC_10x10_KHR;if(n===st)return i===mt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:a.COMPRESSED_RGBA_ASTC_12x10_KHR;if(n===ot)return i===mt?a.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:a.COMPRESSED_RGBA_ASTC_12x12_KHR}if(n===At){if(a=t.get("EXT_texture_compression_bptc"),null===a)return null;if(n===At)return i===mt?a.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT:a.COMPRESSED_RGBA_BPTC_UNORM_EXT}return n===Me?r?34042:(a=t.get("WEBGL_depth_texture"),null!==a?a.UNSIGNED_INT_24_8_WEBGL:null):void 0!==e[n]?e[n]:null}return{convert:i}}class Zl extends mi{constructor(e=[]){super(),this.isArrayCamera=!0,this.cameras=e}}class Kl extends pr{constructor(){super(),this.isGroup=!0,this.type="Group"}}const Jl={type:"move"};class $l{constructor(){this._targetRay=null,this._grip=null,this._hand=null}getHandSpace(){return null===this._hand&&(this._hand=new Kl,this._hand.matrixAutoUpdate=!1,this._hand.visible=!1,this._hand.joints={},this._hand.inputState={pinching:!1}),this._hand}getTargetRaySpace(){return null===this._targetRay&&(this._targetRay=new Kl,this._targetRay.matrixAutoUpdate=!1,this._targetRay.visible=!1,this._targetRay.hasLinearVelocity=!1,this._targetRay.linearVelocity=new dn,this._targetRay.hasAngularVelocity=!1,this._targetRay.angularVelocity=new dn),this._targetRay}getGripSpace(){return null===this._grip&&(this._grip=new Kl,this._grip.matrixAutoUpdate=!1,this._grip.visible=!1,this._grip.hasLinearVelocity=!1,this._grip.linearVelocity=new dn,this._grip.hasAngularVelocity=!1,this._grip.angularVelocity=new dn),this._grip}dispatchEvent(e){return null!==this._targetRay&&this._targetRay.dispatchEvent(e),null!==this._grip&&this._grip.dispatchEvent(e),null!==this._hand&&this._hand.dispatchEvent(e),this}connect(e){if(e&&e.hand){const t=this._hand;if(t)for(const n of e.hand.values())this._getHandJoint(t,n)}return this.dispatchEvent({type:"connected",data:e}),this}disconnect(e){return this.dispatchEvent({type:"disconnected",data:e}),null!==this._targetRay&&(this._targetRay.visible=!1),null!==this._grip&&(this._grip.visible=!1),null!==this._hand&&(this._hand.visible=!1),this}update(e,t,n){let r=null,i=null,a=null;const s=this._targetRay,o=this._grip,A=this._hand;if(e&&"visible-blurred"!==t.session.visibilityState){if(A&&e.hand){a=!0;for(const a of e.hand.values()){const e=t.getJointPose(a,n),r=this._getHandJoint(A,a);null!==e&&(r.matrix.fromArray(e.transform.matrix),r.matrix.decompose(r.position,r.rotation,r.scale),r.jointRadius=e.radius),r.visible=null!==e}const r=A.joints["index-finger-tip"],i=A.joints["thumb-tip"],s=r.position.distanceTo(i.position),o=.02,l=.005;A.inputState.pinching&&s>o+l?(A.inputState.pinching=!1,this.dispatchEvent({type:"pinchend",handedness:e.handedness,target:this})):!A.inputState.pinching&&s<=o-l&&(A.inputState.pinching=!0,this.dispatchEvent({type:"pinchstart",handedness:e.handedness,target:this}))}else null!==o&&e.gripSpace&&(i=t.getPose(e.gripSpace,n),null!==i&&(o.matrix.fromArray(i.transform.matrix),o.matrix.decompose(o.position,o.rotation,o.scale),i.linearVelocity?(o.hasLinearVelocity=!0,o.linearVelocity.copy(i.linearVelocity)):o.hasLinearVelocity=!1,i.angularVelocity?(o.hasAngularVelocity=!0,o.angularVelocity.copy(i.angularVelocity)):o.hasAngularVelocity=!1));null!==s&&(r=t.getPose(e.targetRaySpace,n),null===r&&null!==i&&(r=i),null!==r&&(s.matrix.fromArray(r.transform.matrix),s.matrix.decompose(s.position,s.rotation,s.scale),r.linearVelocity?(s.hasLinearVelocity=!0,s.linearVelocity.copy(r.linearVelocity)):s.hasLinearVelocity=!1,r.angularVelocity?(s.hasAngularVelocity=!0,s.angularVelocity.copy(r.angularVelocity)):s.hasAngularVelocity=!1,this.dispatchEvent(Jl)))}return null!==s&&(s.visible=null!==r),null!==o&&(o.visible=null!==i),null!==A&&(A.visible=null!==a),this}_getHandJoint(e,t){if(void 0===e.joints[t.jointName]){const n=new Kl;n.matrixAutoUpdate=!1,n.visible=!1,e.joints[t.jointName]=n,e.add(n)}return e.joints[t.jointName]}}class ec extends An{constructor(e,t,n,r,i,a,s,o,A,l){if(l=void 0!==l?l:Be,l!==Be&&l!==Le)throw new Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");void 0===n&&l===Be&&(n=ye),void 0===n&&l===Le&&(n=Me),super(null,r,i,a,s,o,l,n,A),this.isDepthTexture=!0,this.image={width:e,height:t},this.magFilter=void 0!==s?s:Ae,this.minFilter=void 0!==o?o:Ae,this.flipY=!1,this.generateMipmaps=!1}}class tc extends Tt{constructor(e,t){super();const n=this;let r=null,i=1,a=null,s="local-floor",o=null,A=null,l=null,c=null,u=null,h=null;const f=t.getContextAttributes();let d=null,p=null;const m=[],g=[],v=new Set,y=new Map,x=new mi;x.layers.enable(1),x.viewport=new ln;const b=new mi;b.layers.enable(2),b.viewport=new ln;const w=[x,b],_=new Zl;_.layers.enable(1),_.layers.enable(2);let M=null,S=null;function E(e){const t=g.indexOf(e.inputSource);if(-1===t)return;const n=m[t];void 0!==n&&n.dispatchEvent({type:e.type,data:e.inputSource})}function C(){r.removeEventListener("select",E),r.removeEventListener("selectstart",E),r.removeEventListener("selectend",E),r.removeEventListener("squeeze",E),r.removeEventListener("squeezestart",E),r.removeEventListener("squeezeend",E),r.removeEventListener("end",C),r.removeEventListener("inputsourceschange",T);for(let e=0;e=0&&(g[r]=null,m[r].disconnect(n))}for(let t=0;t=g.length){g.push(n),r=e;break}if(null===g[e]){g[e]=n,r=e;break}}if(-1===r)break}const i=m[r];i&&i.connect(n)}}this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(e){let t=m[e];return void 0===t&&(t=new $l,m[e]=t),t.getTargetRaySpace()},this.getControllerGrip=function(e){let t=m[e];return void 0===t&&(t=new $l,m[e]=t),t.getGripSpace()},this.getHand=function(e){let t=m[e];return void 0===t&&(t=new $l,m[e]=t),t.getHandSpace()},this.setFramebufferScaleFactor=function(e){i=e,!0===n.isPresenting&&console.warn("THREE.WebXRManager: Cannot change framebuffer scale while presenting.")},this.setReferenceSpaceType=function(e){s=e,!0===n.isPresenting&&console.warn("THREE.WebXRManager: Cannot change reference space type while presenting.")},this.getReferenceSpace=function(){return o||a},this.setReferenceSpace=function(e){o=e},this.getBaseLayer=function(){return null!==c?c:u},this.getBinding=function(){return l},this.getFrame=function(){return h},this.getSession=function(){return r},this.setSession=async function(A){if(r=A,null!==r){if(d=e.getRenderTarget(),r.addEventListener("select",E),r.addEventListener("selectstart",E),r.addEventListener("selectend",E),r.addEventListener("squeeze",E),r.addEventListener("squeezestart",E),r.addEventListener("squeezeend",E),r.addEventListener("end",C),r.addEventListener("inputsourceschange",T),!0!==f.xrCompatible&&await t.makeXRCompatible(),void 0===r.renderState.layers||!1===e.capabilities.isWebGL2){const n={antialias:void 0!==r.renderState.layers||f.antialias,alpha:f.alpha,depth:f.depth,stencil:f.stencil,framebufferScaleFactor:i};u=new XRWebGLLayer(r,t,n),r.updateRenderState({baseLayer:u}),p=new cn(u.framebufferWidth,u.framebufferHeight,{format:Ce,type:de,encoding:e.outputEncoding,stencilBuffer:f.stencil})}else{let n=null,a=null,s=null;f.depth&&(s=f.stencil?35056:33190,n=f.stencil?Le:Be,a=f.stencil?Me:ye);const o={colorFormat:32856,depthFormat:s,scaleFactor:i};l=new XRWebGLBinding(r,t),c=l.createProjectionLayer(o),r.updateRenderState({layers:[c]}),p=new cn(c.textureWidth,c.textureHeight,{format:Ce,type:de,depthTexture:new ec(c.textureWidth,c.textureHeight,a,void 0,void 0,void 0,void 0,void 0,void 0,n),stencilBuffer:f.stencil,encoding:e.outputEncoding,samples:f.antialias?4:0});const A=e.properties.get(p);A.__ignoreDepthValues=c.ignoreDepthValues}p.isXRRenderTarget=!0,this.setFoveation(1),o=null,a=await r.requestReferenceSpace(s),k.setContext(r),k.start(),n.isPresenting=!0,n.dispatchEvent({type:"sessionstart"})}};const D=new dn,B=new dn;function L(e,t,n){D.setFromMatrixPosition(t.matrixWorld),B.setFromMatrixPosition(n.matrixWorld);const r=D.distanceTo(B),i=t.projectionMatrix.elements,a=n.projectionMatrix.elements,s=i[14]/(i[10]-1),o=i[14]/(i[10]+1),A=(i[9]+1)/i[5],l=(i[9]-1)/i[5],c=(i[8]-1)/i[0],u=(a[8]+1)/a[0],h=s*c,f=s*u,d=r/(-c+u),p=d*-c;t.matrixWorld.decompose(e.position,e.quaternion,e.scale),e.translateX(p),e.translateZ(d),e.matrixWorld.compose(e.position,e.quaternion,e.scale),e.matrixWorldInverse.copy(e.matrixWorld).invert();const m=s+d,g=o+d,v=h-p,y=f+(r-p),x=A*o/g*m,b=l*o/g*m;e.projectionMatrix.makePerspective(v,y,x,b,m,g)}function I(e,t){null===t?e.matrixWorld.copy(e.matrix):e.matrixWorld.multiplyMatrices(t.matrixWorld,e.matrix),e.matrixWorldInverse.copy(e.matrixWorld).invert()}this.updateCamera=function(e){if(null===r)return;_.near=b.near=x.near=e.near,_.far=b.far=x.far=e.far,M===_.near&&S===_.far||(r.updateRenderState({depthNear:_.near,depthFar:_.far}),M=_.near,S=_.far);const t=e.parent,n=_.cameras;I(_,t);for(let r=0;re&&(y.set(t,t.lastChangedTime),n.dispatchEvent({type:"planechanged",data:t}))}else v.add(t),y.set(t,r.lastChangedTime),n.dispatchEvent({type:"planeadded",data:t})}h=null}const k=new Di;k.setAnimationLoop(R),this.setAnimationLoop=function(e){P=e},this.dispose=function(){}}}function nc(e,t){function n(t,n){n.color.getRGB(t.fogColor.value,ci(e)),n.isFog?(t.fogNear.value=n.near,t.fogFar.value=n.far):n.isFogExp2&&(t.fogDensity.value=n.density)}function r(e,t,n,r,u){t.isMeshBasicMaterial||t.isMeshLambertMaterial?i(e,t):t.isMeshToonMaterial?(i(e,t),c(e,t)):t.isMeshPhongMaterial?(i(e,t),l(e,t)):t.isMeshStandardMaterial?(i(e,t),h(e,t),t.isMeshPhysicalMaterial&&f(e,t,u)):t.isMeshMatcapMaterial?(i(e,t),d(e,t)):t.isMeshDepthMaterial?i(e,t):t.isMeshDistanceMaterial?(i(e,t),p(e,t)):t.isMeshNormalMaterial?i(e,t):t.isLineBasicMaterial?(a(e,t),t.isLineDashedMaterial&&s(e,t)):t.isPointsMaterial?o(e,t,n,r):t.isSpriteMaterial?A(e,t):t.isShadowMaterial?(e.color.value.copy(t.color),e.opacity.value=t.opacity):t.isShaderMaterial&&(t.uniformsNeedUpdate=!1)}function i(n,r){n.opacity.value=r.opacity,r.color&&n.diffuse.value.copy(r.color),r.emissive&&n.emissive.value.copy(r.emissive).multiplyScalar(r.emissiveIntensity),r.map&&(n.map.value=r.map),r.alphaMap&&(n.alphaMap.value=r.alphaMap),r.bumpMap&&(n.bumpMap.value=r.bumpMap,n.bumpScale.value=r.bumpScale,r.side===u&&(n.bumpScale.value*=-1)),r.displacementMap&&(n.displacementMap.value=r.displacementMap,n.displacementScale.value=r.displacementScale,n.displacementBias.value=r.displacementBias),r.emissiveMap&&(n.emissiveMap.value=r.emissiveMap),r.normalMap&&(n.normalMap.value=r.normalMap,n.normalScale.value.copy(r.normalScale),r.side===u&&n.normalScale.value.negate()),r.specularMap&&(n.specularMap.value=r.specularMap),r.alphaTest>0&&(n.alphaTest.value=r.alphaTest);const i=t.get(r).envMap;if(i&&(n.envMap.value=i,n.flipEnvMap.value=i.isCubeTexture&&!1===i.isRenderTargetTexture?-1:1,n.reflectivity.value=r.reflectivity,n.ior.value=r.ior,n.refractionRatio.value=r.refractionRatio),r.lightMap){n.lightMap.value=r.lightMap;const t=!0!==e.physicallyCorrectLights?Math.PI:1;n.lightMapIntensity.value=r.lightMapIntensity*t}let a,s;r.aoMap&&(n.aoMap.value=r.aoMap,n.aoMapIntensity.value=r.aoMapIntensity),r.map?a=r.map:r.specularMap?a=r.specularMap:r.displacementMap?a=r.displacementMap:r.normalMap?a=r.normalMap:r.bumpMap?a=r.bumpMap:r.roughnessMap?a=r.roughnessMap:r.metalnessMap?a=r.metalnessMap:r.alphaMap?a=r.alphaMap:r.emissiveMap?a=r.emissiveMap:r.clearcoatMap?a=r.clearcoatMap:r.clearcoatNormalMap?a=r.clearcoatNormalMap:r.clearcoatRoughnessMap?a=r.clearcoatRoughnessMap:r.iridescenceMap?a=r.iridescenceMap:r.iridescenceThicknessMap?a=r.iridescenceThicknessMap:r.specularIntensityMap?a=r.specularIntensityMap:r.specularColorMap?a=r.specularColorMap:r.transmissionMap?a=r.transmissionMap:r.thicknessMap?a=r.thicknessMap:r.sheenColorMap?a=r.sheenColorMap:r.sheenRoughnessMap&&(a=r.sheenRoughnessMap),void 0!==a&&(a.isWebGLRenderTarget&&(a=a.texture),!0===a.matrixAutoUpdate&&a.updateMatrix(),n.uvTransform.value.copy(a.matrix)),r.aoMap?s=r.aoMap:r.lightMap&&(s=r.lightMap),void 0!==s&&(s.isWebGLRenderTarget&&(s=s.texture),!0===s.matrixAutoUpdate&&s.updateMatrix(),n.uv2Transform.value.copy(s.matrix))}function a(e,t){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity}function s(e,t){e.dashSize.value=t.dashSize,e.totalSize.value=t.dashSize+t.gapSize,e.scale.value=t.scale}function o(e,t,n,r){let i;e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,e.size.value=t.size*n,e.scale.value=.5*r,t.map&&(e.map.value=t.map),t.alphaMap&&(e.alphaMap.value=t.alphaMap),t.alphaTest>0&&(e.alphaTest.value=t.alphaTest),t.map?i=t.map:t.alphaMap&&(i=t.alphaMap),void 0!==i&&(!0===i.matrixAutoUpdate&&i.updateMatrix(),e.uvTransform.value.copy(i.matrix))}function A(e,t){let n;e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,e.rotation.value=t.rotation,t.map&&(e.map.value=t.map),t.alphaMap&&(e.alphaMap.value=t.alphaMap),t.alphaTest>0&&(e.alphaTest.value=t.alphaTest),t.map?n=t.map:t.alphaMap&&(n=t.alphaMap),void 0!==n&&(!0===n.matrixAutoUpdate&&n.updateMatrix(),e.uvTransform.value.copy(n.matrix))}function l(e,t){e.specular.value.copy(t.specular),e.shininess.value=Math.max(t.shininess,1e-4)}function c(e,t){t.gradientMap&&(e.gradientMap.value=t.gradientMap)}function h(e,n){e.roughness.value=n.roughness,e.metalness.value=n.metalness,n.roughnessMap&&(e.roughnessMap.value=n.roughnessMap),n.metalnessMap&&(e.metalnessMap.value=n.metalnessMap);const r=t.get(n).envMap;r&&(e.envMapIntensity.value=n.envMapIntensity)}function f(e,t,n){e.ior.value=t.ior,t.sheen>0&&(e.sheenColor.value.copy(t.sheenColor).multiplyScalar(t.sheen),e.sheenRoughness.value=t.sheenRoughness,t.sheenColorMap&&(e.sheenColorMap.value=t.sheenColorMap),t.sheenRoughnessMap&&(e.sheenRoughnessMap.value=t.sheenRoughnessMap)),t.clearcoat>0&&(e.clearcoat.value=t.clearcoat,e.clearcoatRoughness.value=t.clearcoatRoughness,t.clearcoatMap&&(e.clearcoatMap.value=t.clearcoatMap),t.clearcoatRoughnessMap&&(e.clearcoatRoughnessMap.value=t.clearcoatRoughnessMap),t.clearcoatNormalMap&&(e.clearcoatNormalScale.value.copy(t.clearcoatNormalScale),e.clearcoatNormalMap.value=t.clearcoatNormalMap,t.side===u&&e.clearcoatNormalScale.value.negate())),t.iridescence>0&&(e.iridescence.value=t.iridescence,e.iridescenceIOR.value=t.iridescenceIOR,e.iridescenceThicknessMinimum.value=t.iridescenceThicknessRange[0],e.iridescenceThicknessMaximum.value=t.iridescenceThicknessRange[1],t.iridescenceMap&&(e.iridescenceMap.value=t.iridescenceMap),t.iridescenceThicknessMap&&(e.iridescenceThicknessMap.value=t.iridescenceThicknessMap)),t.transmission>0&&(e.transmission.value=t.transmission,e.transmissionSamplerMap.value=n.texture,e.transmissionSamplerSize.value.set(n.width,n.height),t.transmissionMap&&(e.transmissionMap.value=t.transmissionMap),e.thickness.value=t.thickness,t.thicknessMap&&(e.thicknessMap.value=t.thicknessMap),e.attenuationDistance.value=t.attenuationDistance,e.attenuationColor.value.copy(t.attenuationColor)),e.specularIntensity.value=t.specularIntensity,e.specularColor.value.copy(t.specularColor),t.specularIntensityMap&&(e.specularIntensityMap.value=t.specularIntensityMap),t.specularColorMap&&(e.specularColorMap.value=t.specularColorMap)}function d(e,t){t.matcap&&(e.matcap.value=t.matcap)}function p(e,t){e.referencePosition.value.copy(t.referencePosition),e.nearDistance.value=t.nearDistance,e.farDistance.value=t.farDistance}return{refreshFogUniforms:n,refreshMaterialUniforms:r}}function rc(e,t,n,r){let i={},a={},s=[];const o=n.isWebGL2?e.getParameter(35375):0;function A(e,t){const n=t.program;r.uniformBlockBinding(e,n)}function l(e,n){let s=i[e.id];void 0===s&&(d(e),s=c(e),i[e.id]=s,e.addEventListener("dispose",m));const o=n.program;r.updateUBOMapping(e,o);const A=t.render.frame;a[e.id]!==A&&(h(e),a[e.id]=A)}function c(t){const n=u();t.__bindingPointIndex=n;const r=e.createBuffer(),i=t.__size,a=t.usage;return e.bindBuffer(35345,r),e.bufferData(35345,i,a),e.bindBuffer(35345,null),e.bindBufferBase(35345,n,r),r}function u(){for(let e=0;e0){i=n%r;const t=r-i;0!==i&&t-s.boundary<0&&(n+=r-i,e.__offset=n)}n+=s.storage}return i=n%r,i>0&&(n+=r-i),e.__size=n,e.__cache={},this}function p(e){const t={boundary:0,storage:0};return"number"===typeof e?(t.boundary=4,t.storage=4):e.isVector2?(t.boundary=8,t.storage=8):e.isVector3||e.isColor?(t.boundary=16,t.storage=12):e.isVector4?(t.boundary=16,t.storage=16):e.isMatrix3?(t.boundary=48,t.storage=48):e.isMatrix4?(t.boundary=64,t.storage=64):e.isTexture?console.warn("THREE.WebGLRenderer: Texture samplers can not be part of an uniforms group."):console.warn("THREE.WebGLRenderer: Unsupported uniform value type.",e),t}function m(t){const n=t.target;n.removeEventListener("dispose",m);const r=s.indexOf(n.__bindingPointIndex);s.splice(r,1),e.deleteBuffer(i[n.id]),delete i[n.id],delete a[n.id]}function g(){for(const t in i)e.deleteBuffer(i[t]);s=[],i={},a={}}return{bind:A,update:l,dispose:g}}function ic(){const e=Wt("canvas");return e.style.display="block",e}function ac(e={}){this.isWebGLRenderer=!0;const t=void 0!==e.canvas?e.canvas:ic(),n=void 0!==e.context?e.context:null,i=void 0===e.depth||e.depth,a=void 0===e.stencil||e.stencil,s=void 0!==e.antialias&&e.antialias,o=void 0===e.premultipliedAlpha||e.premultipliedAlpha,A=void 0!==e.preserveDrawingBuffer&&e.preserveDrawingBuffer,l=void 0!==e.powerPreference?e.powerPreference:"default",h=void 0!==e.failIfMajorPerformanceCaveat&&e.failIfMajorPerformanceCaveat;let d;d=null!==n?n.getContextAttributes().alpha:void 0!==e.alpha&&e.alpha;let p=null,m=null;const g=[],v=[];this.domElement=t,this.debug={checkShaderErrors:!0},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this.outputEncoding=pt,this.physicallyCorrectLights=!1,this.toneMapping=Y,this.toneMappingExposure=1;const y=this;let x=!1,b=0,w=0,_=null,M=-1,S=null;const E=new ln,C=new ln;let T=null,D=t.width,B=t.height,L=1,I=null,P=null;const R=new ln(0,0,D,B),k=new ln(0,0,D,B);let O=!1;const U=new Ti;let F=!1,N=!1,z=null;const H=new Wn,G=new zt,V=new dn,W={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0};function Q(){return null===_?L:1}let j,X,q,Z,K,J,$,ee,te,ne,re,ie,ae,se,oe,Ae,le,ce,ue,he,pe,me,ge,ve,ye=n;function we(e,n){for(let r=0;r0&&Ne(i,t,n),r&&q.viewport(E.copy(r)),i.length>0&&ze(i,t,n),a.length>0&&ze(a,t,n),s.length>0&&ze(s,t,n),q.buffers.depth.setTest(!0),q.buffers.depth.setMask(!0),q.buffers.color.setMask(!0),q.setPolygonOffset(!1)}function Ne(e,t,n){const r=X.isWebGL2;null===z&&(z=new cn(1,1,{generateMipmaps:!0,type:j.has("EXT_color_buffer_half_float")?be:de,minFilter:fe,samples:r&&!0===s?4:0})),y.getDrawingBufferSize(G),r?z.setSize(G.x,G.y):z.setSize(Ut(G.x),Ut(G.y));const i=y.getRenderTarget();y.setRenderTarget(z),y.clear();const a=y.toneMapping;y.toneMapping=Y,ze(e,t,n),y.toneMapping=a,J.updateMultisampleRenderTarget(z),J.updateRenderTargetMipmap(z),y.setRenderTarget(i)}function ze(e,t,n){const r=!0===t.isScene?t.overrideMaterial:null;for(let i=0,a=e.length;i0?v[v.length-1]:null,g.pop(),p=g.length>0?g[g.length-1]:null},this.getActiveCubeFace=function(){return b},this.getActiveMipmapLevel=function(){return w},this.getRenderTarget=function(){return _},this.setRenderTargetTextures=function(e,t,n){K.get(e.texture).__webglTexture=t,K.get(e.depthTexture).__webglTexture=n;const r=K.get(e);r.__hasExternalTextures=!0,r.__hasExternalTextures&&(r.__autoAllocateDepthBuffer=void 0===n,r.__autoAllocateDepthBuffer||!0===j.has("WEBGL_multisampled_render_to_texture")&&(console.warn("THREE.WebGLRenderer: Render-to-texture extension was disabled because an external texture was provided"),r.__useRenderToTexture=!1))},this.setRenderTargetFramebuffer=function(e,t){const n=K.get(e);n.__webglFramebuffer=t,n.__useDefaultFramebuffer=void 0===t},this.setRenderTarget=function(e,t=0,n=0){_=e,b=t,w=n;let r=!0,i=null,a=!1,s=!1;if(e){const n=K.get(e);void 0!==n.__useDefaultFramebuffer?(q.bindFramebuffer(36160,null),r=!1):void 0===n.__webglFramebuffer?J.setupRenderTarget(e):n.__hasExternalTextures&&J.rebindTextures(e,K.get(e.texture).__webglTexture,K.get(e.depthTexture).__webglTexture);const o=e.texture;(o.isData3DTexture||o.isDataArrayTexture||o.isCompressedArrayTexture)&&(s=!0);const A=K.get(e).__webglFramebuffer;e.isWebGLCubeRenderTarget?(i=A[t],a=!0):i=X.isWebGL2&&e.samples>0&&!1===J.useMultisampledRTT(e)?K.get(e).__webglMultisampledFramebuffer:A,E.copy(e.viewport),C.copy(e.scissor),T=e.scissorTest}else E.copy(R).multiplyScalar(L).floor(),C.copy(k).multiplyScalar(L).floor(),T=O;const o=q.bindFramebuffer(36160,i);if(o&&X.drawBuffers&&r&&q.drawBuffers(e,i),q.viewport(E),q.scissor(C),q.setScissorTest(T),a){const r=K.get(e.texture);ye.framebufferTexture2D(36160,36064,34069+t,r.__webglTexture,n)}else if(s){const r=K.get(e.texture),i=t||0;ye.framebufferTextureLayer(36160,36064,r.__webglTexture,n||0,i)}M=-1},this.readRenderTargetPixels=function(e,t,n,r,i,a,s){if(!e||!e.isWebGLRenderTarget)return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");let o=K.get(e).__webglFramebuffer;if(e.isWebGLCubeRenderTarget&&void 0!==s&&(o=o[s]),o){q.bindFramebuffer(36160,o);try{const s=e.texture,o=s.format,A=s.type;if(o!==Ce&&me.convert(o)!==ye.getParameter(35739))return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");const l=A===be&&(j.has("EXT_color_buffer_half_float")||X.isWebGL2&&j.has("EXT_color_buffer_float"));if(A!==de&&me.convert(A)!==ye.getParameter(35738)&&(A!==xe||!(X.isWebGL2||j.has("OES_texture_float")||j.has("WEBGL_color_buffer_float")))&&!l)return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");t>=0&&t<=e.width-r&&n>=0&&n<=e.height-i&&ye.readPixels(t,n,r,i,me.convert(o),me.convert(A),a)}finally{const e=null!==_?K.get(_).__webglFramebuffer:null;q.bindFramebuffer(36160,e)}}},this.copyFramebufferToTexture=function(e,t,n=0){const r=Math.pow(2,-n),i=Math.floor(t.image.width*r),a=Math.floor(t.image.height*r);J.setTexture2D(t,0),ye.copyTexSubImage2D(3553,n,0,0,e.x,e.y,i,a),q.unbindTexture()},this.copyTextureToTexture=function(e,t,n,r=0){const i=t.image.width,a=t.image.height,s=me.convert(n.format),o=me.convert(n.type);J.setTexture2D(n,0),ye.pixelStorei(37440,n.flipY),ye.pixelStorei(37441,n.premultiplyAlpha),ye.pixelStorei(3317,n.unpackAlignment),t.isDataTexture?ye.texSubImage2D(3553,r,e.x,e.y,i,a,s,o,t.image.data):t.isCompressedTexture?ye.compressedTexSubImage2D(3553,r,e.x,e.y,t.mipmaps[0].width,t.mipmaps[0].height,s,t.mipmaps[0].data):ye.texSubImage2D(3553,r,e.x,e.y,s,o,t.image),0===r&&n.generateMipmaps&&ye.generateMipmap(3553),q.unbindTexture()},this.copyTextureToTexture3D=function(e,t,n,r,i=0){if(y.isWebGL1Renderer)return void console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: can only be used with WebGL2.");const a=e.max.x-e.min.x+1,s=e.max.y-e.min.y+1,o=e.max.z-e.min.z+1,A=me.convert(r.format),l=me.convert(r.type);let c;if(r.isData3DTexture)J.setTexture3D(r,0),c=32879;else{if(!r.isDataArrayTexture)return void console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: only supports THREE.DataTexture3D and THREE.DataTexture2DArray.");J.setTexture2DArray(r,0),c=35866}ye.pixelStorei(37440,r.flipY),ye.pixelStorei(37441,r.premultiplyAlpha),ye.pixelStorei(3317,r.unpackAlignment);const u=ye.getParameter(3314),h=ye.getParameter(32878),f=ye.getParameter(3316),d=ye.getParameter(3315),p=ye.getParameter(32877),m=n.isCompressedTexture?n.mipmaps[0]:n.image;ye.pixelStorei(3314,m.width),ye.pixelStorei(32878,m.height),ye.pixelStorei(3316,e.min.x),ye.pixelStorei(3315,e.min.y),ye.pixelStorei(32877,e.min.z),n.isDataTexture||n.isData3DTexture?ye.texSubImage3D(c,i,t.x,t.y,t.z,a,s,o,A,l,m.data):n.isCompressedArrayTexture?(console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: untested support for compressed srcTexture."),ye.compressedTexSubImage3D(c,i,t.x,t.y,t.z,a,s,o,A,m.data)):ye.texSubImage3D(c,i,t.x,t.y,t.z,a,s,o,A,l,m),ye.pixelStorei(3314,u),ye.pixelStorei(32878,h),ye.pixelStorei(3316,f),ye.pixelStorei(3315,d),ye.pixelStorei(32877,p),0===i&&r.generateMipmaps&&ye.generateMipmap(c),q.unbindTexture()},this.initTexture=function(e){e.isCubeTexture?J.setTextureCube(e,0):e.isData3DTexture?J.setTexture3D(e,0):e.isDataArrayTexture||e.isCompressedArrayTexture?J.setTexture2DArray(e,0):J.setTexture2D(e,0),q.unbindTexture()},this.resetState=function(){b=0,w=0,_=null,q.reset(),ge.reset()},"undefined"!==typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}class sc extends ac{}sc.prototype.isWebGL1Renderer=!0;class oc extends pr{constructor(){super(),this.isScene=!0,this.type="Scene",this.background=null,this.environment=null,this.fog=null,this.backgroundBlurriness=0,this.backgroundIntensity=1,this.overrideMaterial=null,"undefined"!==typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}copy(e,t){return super.copy(e,t),null!==e.background&&(this.background=e.background.clone()),null!==e.environment&&(this.environment=e.environment.clone()),null!==e.fog&&(this.fog=e.fog.clone()),this.backgroundBlurriness=e.backgroundBlurriness,this.backgroundIntensity=e.backgroundIntensity,null!==e.overrideMaterial&&(this.overrideMaterial=e.overrideMaterial.clone()),this.matrixAutoUpdate=e.matrixAutoUpdate,this}toJSON(e){const t=super.toJSON(e);return null!==this.fog&&(t.object.fog=this.fog.toJSON()),this.backgroundBlurriness>0&&(t.backgroundBlurriness=this.backgroundBlurriness),1!==this.backgroundIntensity&&(t.backgroundIntensity=this.backgroundIntensity),t}get autoUpdate(){return console.warn("THREE.Scene: autoUpdate was renamed to matrixWorldAutoUpdate in r144."),this.matrixWorldAutoUpdate}set autoUpdate(e){console.warn("THREE.Scene: autoUpdate was renamed to matrixWorldAutoUpdate in r144."),this.matrixWorldAutoUpdate=e}}class Ac extends An{constructor(e=null,t=1,n=1,r,i,a,s,o,A=Ae,l=Ae,c,u){super(null,a,s,o,A,l,r,i,c,u),this.isDataTexture=!0,this.image={data:e,width:t,height:n},this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}class lc extends An{constructor(e,t,n,r,i,a,s,o,A){super(e,t,n,r,i,a,s,o,A),this.isCanvasTexture=!0,this.needsUpdate=!0}}class cc extends Vr{constructor(e=1,t=1,n=1,r=32,i=1,a=!1,s=0,o=2*Math.PI){super(),this.type="CylinderGeometry",this.parameters={radiusTop:e,radiusBottom:t,height:n,radialSegments:r,heightSegments:i,openEnded:a,thetaStart:s,thetaLength:o};const A=this;r=Math.floor(r),i=Math.floor(i);const l=[],c=[],u=[],h=[];let f=0;const d=[],p=n/2;let m=0;function g(){const a=new dn,g=new dn;let v=0;const y=(t-e)/n;for(let A=0;A<=i;A++){const l=[],m=A/i,v=m*(t-e)+e;for(let e=0;e<=r;e++){const t=e/r,i=t*o+s,A=Math.sin(i),d=Math.cos(i);g.x=v*A,g.y=-m*n+p,g.z=v*d,c.push(g.x,g.y,g.z),a.set(A,y,d).normalize(),u.push(a.x,a.y,a.z),h.push(t,1-m),l.push(f++)}d.push(l)}for(let e=0;e0&&v(!0),t>0&&v(!1)),this.setIndex(l),this.setAttribute("position",new kr(c,3)),this.setAttribute("normal",new kr(u,3)),this.setAttribute("uv",new kr(h,2))}static fromJSON(e){return new cc(e.radiusTop,e.radiusBottom,e.height,e.radialSegments,e.heightSegments,e.openEnded,e.thetaStart,e.thetaLength)}}class uc extends Vr{constructor(e=.5,t=1,n=32,r=1,i=0,a=2*Math.PI){super(),this.type="RingGeometry",this.parameters={innerRadius:e,outerRadius:t,thetaSegments:n,phiSegments:r,thetaStart:i,thetaLength:a},n=Math.max(3,n),r=Math.max(1,r);const s=[],o=[],A=[],l=[];let c=e;const u=(t-e)/r,h=new dn,f=new zt;for(let d=0;d<=r;d++){for(let e=0;e<=n;e++){const r=i+e/n*a;h.x=c*Math.cos(r),h.y=c*Math.sin(r),o.push(h.x,h.y,h.z),A.push(0,0,1),f.x=(h.x/t+1)/2,f.y=(h.y/t+1)/2,l.push(f.x,f.y)}c+=u}for(let d=0;d0)&&h.push(t,r,s),(m!==n-1||o=i)break e;{const s=t[1];e=i)break t}a=n,n=0}}while(n>>1;et)--a;if(++a,0!==i||a!==r){i>=a&&(a=Math.max(a,1),i=a-1);const e=this.getValueSize();this.times=mc(n,i,a),this.values=mc(this.values,i*e,a*e)}return this}validate(){let e=!0;const t=this.getValueSize();t-Math.floor(t)!==0&&(console.error("THREE.KeyframeTrack: Invalid value size in track.",this),e=!1);const n=this.times,r=this.values,i=n.length;0===i&&(console.error("THREE.KeyframeTrack: Track is empty.",this),e=!1);let a=null;for(let s=0;s!==i;s++){const t=n[s];if("number"===typeof t&&isNaN(t)){console.error("THREE.KeyframeTrack: Time is not a valid number.",this,s,t),e=!1;break}if(null!==a&&a>t){console.error("THREE.KeyframeTrack: Out of order keys.",this,s,t,a),e=!1;break}a=t}if(void 0!==r&&vc(r))for(let s=0,o=r.length;s!==o;++s){const t=r[s];if(isNaN(t)){console.error("THREE.KeyframeTrack: Value is not a valid number.",this,s,t),e=!1;break}}return e}optimize(){const e=mc(this.times),t=mc(this.values),n=this.getValueSize(),r=this.getInterpolation()===ut,i=e.length-1;let a=1;for(let s=1;s0){e[a]=e[i];for(let e=i*n,r=a*n,s=0;s!==n;++s)t[r+s]=t[e+s];++a}return a!==e.length?(this.times=mc(e,0,a),this.values=mc(t,0,a*n)):(this.times=e,this.values=t),this}clone(){const e=mc(this.times,0),t=mc(this.values,0),n=this.constructor,r=new n(this.name,e,t);return r.createInterpolant=this.createInterpolant,r}}_c.prototype.TimeBufferType=Float32Array,_c.prototype.ValueBufferType=Float32Array,_c.prototype.DefaultInterpolation=ct;class Mc extends _c{}Mc.prototype.ValueTypeName="bool",Mc.prototype.ValueBufferType=Array,Mc.prototype.DefaultInterpolation=lt,Mc.prototype.InterpolantFactoryMethodLinear=void 0,Mc.prototype.InterpolantFactoryMethodSmooth=void 0;class Sc extends _c{}Sc.prototype.ValueTypeName="color";class Ec extends _c{}Ec.prototype.ValueTypeName="number";class Cc extends yc{constructor(e,t,n,r){super(e,t,n,r)}interpolate_(e,t,n,r){const i=this.resultBuffer,a=this.sampleValues,s=this.valueSize,o=(n-t)/(r-t);let A=e*s;for(let l=A+s;A!==l;A+=4)fn.slerpFlat(i,0,a,A-s,a,A,o);return i}}class Tc extends _c{InterpolantFactoryMethodLinear(e){return new Cc(this.times,this.values,this.getValueSize(),e)}}Tc.prototype.ValueTypeName="quaternion",Tc.prototype.DefaultInterpolation=ct,Tc.prototype.InterpolantFactoryMethodSmooth=void 0;class Dc extends _c{}Dc.prototype.ValueTypeName="string",Dc.prototype.ValueBufferType=Array,Dc.prototype.DefaultInterpolation=lt,Dc.prototype.InterpolantFactoryMethodLinear=void 0,Dc.prototype.InterpolantFactoryMethodSmooth=void 0;class Bc extends _c{}Bc.prototype.ValueTypeName="vector";const Lc={enabled:!1,files:{},add:function(e,t){!1!==this.enabled&&(this.files[e]=t)},get:function(e){if(!1!==this.enabled)return this.files[e]},remove:function(e){delete this.files[e]},clear:function(){this.files={}}};class Ic{constructor(e,t,n){const r=this;let i=!1,a=0,s=0,o=void 0;const A=[];this.onStart=void 0,this.onLoad=e,this.onProgress=t,this.onError=n,this.itemStart=function(e){s++,!1===i&&void 0!==r.onStart&&r.onStart(e,a,s),i=!0},this.itemEnd=function(e){a++,void 0!==r.onProgress&&r.onProgress(e,a,s),a===s&&(i=!1,void 0!==r.onLoad&&r.onLoad())},this.itemError=function(e){void 0!==r.onError&&r.onError(e)},this.resolveURL=function(e){return o?o(e):e},this.setURLModifier=function(e){return o=e,this},this.addHandler=function(e,t){return A.push(e,t),this},this.removeHandler=function(e){const t=A.indexOf(e);return-1!==t&&A.splice(t,2),this},this.getHandler=function(e){for(let t=0,n=A.length;t{t&&t(i),this.manager.itemEnd(e)},0),i;if(void 0!==kc[e])return void kc[e].push({onLoad:t,onProgress:n,onError:r});kc[e]=[],kc[e].push({onLoad:t,onProgress:n,onError:r});const a=new Request(e,{headers:new Headers(this.requestHeader),credentials:this.withCredentials?"include":"same-origin"}),s=this.mimeType,o=this.responseType;fetch(a).then(t=>{if(200===t.status||0===t.status){if(0===t.status&&console.warn("THREE.FileLoader: HTTP Status 0 received."),"undefined"===typeof ReadableStream||void 0===t.body||void 0===t.body.getReader)return t;const n=kc[e],r=t.body.getReader(),i=t.headers.get("Content-Length")||t.headers.get("X-File-Size"),a=i?parseInt(i):0,s=0!==a;let o=0;const A=new ReadableStream({start(e){function t(){r.read().then(({done:r,value:i})=>{if(r)e.close();else{o+=i.byteLength;const r=new ProgressEvent("progress",{lengthComputable:s,loaded:o,total:a});for(let e=0,t=n.length;e{switch(o){case"arraybuffer":return e.arrayBuffer();case"blob":return e.blob();case"document":return e.text().then(e=>{const t=new DOMParser;return t.parseFromString(e,s)});case"json":return e.json();default:if(void 0===s)return e.text();{const t=/charset="?([^;"\s]*)"?/i,n=t.exec(s),r=n&&n[1]?n[1].toLowerCase():void 0,i=new TextDecoder(r);return e.arrayBuffer().then(e=>i.decode(e))}}}).then(t=>{Lc.add(e,t);const n=kc[e];delete kc[e];for(let e=0,r=n.length;e{const n=kc[e];if(void 0===n)throw this.manager.itemError(e),t;delete kc[e];for(let e=0,r=n.length;e{this.manager.itemEnd(e)}),this.manager.itemStart(e)}setResponseType(e){return this.responseType=e,this}setMimeType(e){return this.mimeType=e,this}}class Fc extends Rc{constructor(e){super(e)}load(e,t,n,r){void 0!==this.path&&(e=this.path+e),e=this.manager.resolveURL(e);const i=this,a=Lc.get(e);if(void 0!==a)return i.manager.itemStart(e),setTimeout((function(){t&&t(a),i.manager.itemEnd(e)}),0),a;const s=Wt("img");function o(){l(),Lc.add(e,this),t&&t(this),i.manager.itemEnd(e)}function A(t){l(),r&&r(t),i.manager.itemError(e),i.manager.itemEnd(e)}function l(){s.removeEventListener("load",o,!1),s.removeEventListener("error",A,!1)}return s.addEventListener("load",o,!1),s.addEventListener("error",A,!1),"data:"!==e.slice(0,5)&&void 0!==this.crossOrigin&&(s.crossOrigin=this.crossOrigin),i.manager.itemStart(e),s.src=e,s}}class Nc extends Rc{constructor(e){super(e)}load(e,t,n,r){const i=new xi,a=new Fc(this.manager);a.setCrossOrigin(this.crossOrigin),a.setPath(this.path);let s=0;function o(n){a.load(e[n],(function(e){i.images[n]=e,s++,6===s&&(i.needsUpdate=!0,t&&t(i))}),void 0,r)}for(let A=0;As.reduce((e,t)=>(e[t]={type:[Boolean,String,Number],default:!1},e),{}))(),A=(()=>s.reduce((e,t)=>(e["offset"+Object(a["k"])(t)]={type:[String,Number],default:null},e),{}))(),l=(()=>s.reduce((e,t)=>(e["order"+Object(a["k"])(t)]={type:[String,Number],default:null},e),{}))(),c={col:Object.keys(o),offset:Object.keys(A),order:Object.keys(l)};function u(e,t,n){let r=e;if(null!=n&&!1!==n){if(t){const n=t.replace(e,"");r+="-"+n}return"col"!==e||""!==n&&!0!==n?(r+="-"+n,r.toLowerCase()):r.toLowerCase()}}const h=new Map;t["a"]=r["a"].extend({name:"v-col",functional:!0,props:{cols:{type:[Boolean,String,Number],default:!1},...o,offset:{type:[String,Number],default:null},...A,order:{type:[String,Number],default:null},...l,alignSelf:{type:String,default:null,validator:e=>["auto","start","end","center","baseline","stretch"].includes(e)},tag:{type:String,default:"div"}},render(e,{props:t,data:n,children:r,parent:a}){let s="";for(const i in t)s+=String(t[i]);let o=h.get(s);if(!o){let e;for(e in o=[],c)c[e].forEach(n=>{const r=t[n],i=u(e,n,r);i&&o.push(i)});const n=o.some(e=>e.startsWith("col-"));o.push({col:!n||!t.cols,["col-"+t.cols]:t.cols,["offset-"+t.offset]:t.offset,["order-"+t.order]:t.order,["align-self-"+t.alignSelf]:t.alignSelf}),h.set(s,o)}return e(t.tag,Object(i["a"])(n,{class:o}),r)}})},6374:function(e,t,n){var r=n("da84"),i=Object.defineProperty;e.exports=function(e,t){try{i(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},"66cb":function(e,t,n){var r;(function(i){var a=/^\s+/,s=/\s+$/,o=0,A=i.round,l=i.min,c=i.max,u=i.random;function h(e,t){if(e=e||"",t=t||{},e instanceof h)return e;if(!(this instanceof h))return new h(e,t);var n=f(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=A(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=A(this._r)),this._g<1&&(this._g=A(this._g)),this._b<1&&(this._b=A(this._b)),this._ok=n.ok,this._tc_id=o++}function f(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,a=null,s=!1,o=!1;return"string"==typeof e&&(e=Z(e)),"object"==typeof e&&(q(e.r)&&q(e.g)&&q(e.b)?(t=d(e.r,e.g,e.b),s=!0,o="%"===String(e.r).substr(-1)?"prgb":"rgb"):q(e.h)&&q(e.s)&&q(e.v)?(r=Q(e.s),i=Q(e.v),t=v(e.h,r,i),s=!0,o="hsv"):q(e.h)&&q(e.s)&&q(e.l)&&(r=Q(e.s),a=Q(e.l),t=m(e.h,r,a),s=!0,o="hsl"),e.hasOwnProperty("a")&&(n=e.a)),n=F(n),{ok:s,format:e.format||o,r:l(255,c(t.r,0)),g:l(255,c(t.g,0)),b:l(255,c(t.b,0)),a:n}}function d(e,t,n){return{r:255*N(e,255),g:255*N(t,255),b:255*N(n,255)}}function p(e,t,n){e=N(e,255),t=N(t,255),n=N(n,255);var r,i,a=c(e,t,n),s=l(e,t,n),o=(a+s)/2;if(a==s)r=i=0;else{var A=a-s;switch(i=o>.5?A/(2-a-s):A/(a+s),a){case e:r=(t-n)/A+(t1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=N(e,360),t=N(t,100),n=N(n,100),0===t)r=i=a=n;else{var o=n<.5?n*(1+t):n+t-n*t,A=2*n-o;r=s(A,o,e+1/3),i=s(A,o,e),a=s(A,o,e-1/3)}return{r:255*r,g:255*i,b:255*a}}function g(e,t,n){e=N(e,255),t=N(t,255),n=N(n,255);var r,i,a=c(e,t,n),s=l(e,t,n),o=a,A=a-s;if(i=0===a?0:A/a,a==s)r=0;else{switch(a){case e:r=(t-n)/A+(t>1)+720)%360;--t;)r.h=(r.h+i)%360,a.push(h(r));return a}function R(e,t){t=t||6;var n=h(e).toHsv(),r=n.h,i=n.s,a=n.v,s=[],o=1/t;while(t--)s.push(h({h:r,s:i,v:a})),a=(a+o)%1;return s}h.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r,a,s,o=this.toRgb();return e=o.r/255,t=o.g/255,n=o.b/255,r=e<=.03928?e/12.92:i.pow((e+.055)/1.055,2.4),a=t<=.03928?t/12.92:i.pow((t+.055)/1.055,2.4),s=n<=.03928?n/12.92:i.pow((n+.055)/1.055,2.4),.2126*r+.7152*a+.0722*s},setAlpha:function(e){return this._a=F(e),this._roundA=A(100*this._a)/100,this},toHsv:function(){var e=g(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=g(this._r,this._g,this._b),t=A(360*e.h),n=A(100*e.s),r=A(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=p(this._r,this._g,this._b),t=A(360*e.h),n=A(100*e.s),r=A(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return y(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return x(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:A(this._r),g:A(this._g),b:A(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+A(this._r)+", "+A(this._g)+", "+A(this._b)+")":"rgba("+A(this._r)+", "+A(this._g)+", "+A(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:A(100*N(this._r,255))+"%",g:A(100*N(this._g,255))+"%",b:A(100*N(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+A(100*N(this._r,255))+"%, "+A(100*N(this._g,255))+"%, "+A(100*N(this._b,255))+"%)":"rgba("+A(100*N(this._r,255))+"%, "+A(100*N(this._g,255))+"%, "+A(100*N(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(O[y(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+b(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var i=h(e);n="#"+b(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0,i=!t&&r&&("hex"===e||"hex6"===e||"hex3"===e||"hex4"===e||"hex8"===e||"name"===e);return i?"name"===e&&0===this._a?this.toName():this.toRgbString():("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return h(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(S,arguments)},brighten:function(){return this._applyModification(E,arguments)},darken:function(){return this._applyModification(C,arguments)},desaturate:function(){return this._applyModification(w,arguments)},saturate:function(){return this._applyModification(_,arguments)},greyscale:function(){return this._applyModification(M,arguments)},spin:function(){return this._applyModification(T,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(P,arguments)},complement:function(){return this._applyCombination(D,arguments)},monochromatic:function(){return this._applyCombination(R,arguments)},splitcomplement:function(){return this._applyCombination(I,arguments)},triad:function(){return this._applyCombination(B,arguments)},tetrad:function(){return this._applyCombination(L,arguments)}},h.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:Q(e[r]));e=n}return h(e,t)},h.equals=function(e,t){return!(!e||!t)&&h(e).toRgbString()==h(t).toRgbString()},h.random=function(){return h.fromRatio({r:u(),g:u(),b:u()})},h.mix=function(e,t,n){n=0===n?0:n||50;var r=h(e).toRgb(),i=h(t).toRgb(),a=n/100,s={r:(i.r-r.r)*a+r.r,g:(i.g-r.g)*a+r.g,b:(i.b-r.b)*a+r.b,a:(i.a-r.a)*a+r.a};return h(s)},h.readability=function(e,t){var n=h(e),r=h(t);return(i.max(n.getLuminance(),r.getLuminance())+.05)/(i.min(n.getLuminance(),r.getLuminance())+.05)},h.isReadable=function(e,t,n){var r,i,a=h.readability(e,t);switch(i=!1,r=K(n),r.level+r.size){case"AAsmall":case"AAAlarge":i=a>=4.5;break;case"AAlarge":i=a>=3;break;case"AAAsmall":i=a>=7;break}return i},h.mostReadable=function(e,t,n){var r,i,a,s,o=null,A=0;n=n||{},i=n.includeFallbackColors,a=n.level,s=n.size;for(var l=0;lA&&(A=r,o=h(t[l]));return h.isReadable(e,o,{level:a,size:s})||!i?o:(n.includeFallbackColors=!1,h.mostReadable(e,["#fff","#000"],n))};var k=h.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},O=h.hexNames=U(k);function U(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function F(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function N(e,t){G(e)&&(e="100%");var n=V(e);return e=l(t,c(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),i.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function z(e){return l(1,c(0,e))}function H(e){return parseInt(e,16)}function G(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)}function V(e){return"string"===typeof e&&-1!=e.indexOf("%")}function W(e){return 1==e.length?"0"+e:""+e}function Q(e){return e<=1&&(e=100*e+"%"),e}function j(e){return i.round(255*parseFloat(e)).toString(16)}function Y(e){return H(e)/255}var X=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",n="(?:"+t+")|(?:"+e+")",r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",i="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+i),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+i),hsv:new RegExp("hsv"+r),hsva:new RegExp("hsva"+i),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function q(e){return!!X.CSS_UNIT.exec(e)}function Z(e){e=e.replace(a,"").replace(s,"").toLowerCase();var t,n=!1;if(k[e])e=k[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};return(t=X.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=X.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=X.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=X.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=X.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=X.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=X.hex8.exec(e))?{r:H(t[1]),g:H(t[2]),b:H(t[3]),a:Y(t[4]),format:n?"name":"hex8"}:(t=X.hex6.exec(e))?{r:H(t[1]),g:H(t[2]),b:H(t[3]),format:n?"name":"hex"}:(t=X.hex4.exec(e))?{r:H(t[1]+""+t[1]),g:H(t[2]+""+t[2]),b:H(t[3]+""+t[3]),a:Y(t[4]+""+t[4]),format:n?"name":"hex8"}:!!(t=X.hex3.exec(e))&&{r:H(t[1]+""+t[1]),g:H(t[2]+""+t[2]),b:H(t[3]+""+t[3]),format:n?"name":"hex"}}function K(e){var t,n;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA"),"small"!==n&&"large"!==n&&(n="small"),{level:t,size:n}}e.exports?e.exports=h:(r=function(){return h}.call(t,n,t,e),void 0===r||(e.exports=r))})(Math)},"69f3":function(e,t,n){var r,i,a,s=n("cdce"),o=n("da84"),A=n("861d"),l=n("9112"),c=n("1a2d"),u=n("c6cd"),h=n("f772"),f=n("d012"),d="Object already initialized",p=o.TypeError,m=o.WeakMap,g=function(e){return a(e)?i(e):r(e,{})},v=function(e){return function(t){var n;if(!A(t)||(n=i(t)).type!==e)throw p("Incompatible receiver, "+e+" required");return n}};if(s||u.state){var y=u.state||(u.state=new m);y.get=y.get,y.has=y.has,y.set=y.set,r=function(e,t){if(y.has(e))throw p(d);return t.facade=e,y.set(e,t),t},i=function(e){return y.get(e)||{}},a=function(e){return y.has(e)}}else{var x=h("state");f[x]=!0,r=function(e,t){if(c(e,x))throw p(d);return t.facade=e,l(e,x,t),t},i=function(e){return c(e,x)?e[x]:{}},a=function(e){return c(e,x)}}e.exports={set:r,get:i,has:a,enforce:g,getterFor:v}},7156:function(e,t,n){var r=n("1626"),i=n("861d"),a=n("d2bb");e.exports=function(e,t,n){var s,o;return a&&r(s=t.constructor)&&s!==n&&i(o=s.prototype)&&o!==n.prototype&&a(e,o),e}},7234:function(e,t){e.exports=function(e){return null===e||void 0===e}},7418:function(e,t){t.f=Object.getOwnPropertySymbols},7839:function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(e,t,n){var r=n("1d80"),i=Object;e.exports=function(e){return i(r(e))}},"80d2":function(e,t,n){"use strict";n.d(t,"e",(function(){return i})),n.d(t,"f",(function(){return a})),n.d(t,"d",(function(){return s})),n.d(t,"h",(function(){return A})),n.d(t,"a",(function(){return c})),n.d(t,"k",(function(){return u})),n.d(t,"l",(function(){return h})),n.d(t,"g",(function(){return f})),n.d(t,"c",(function(){return d})),n.d(t,"j",(function(){return p})),n.d(t,"b",(function(){return m})),n.d(t,"i",(function(){return g}));n("14d9"),n("13d5"),n("2b0e");let r=!1;try{if("undefined"!==typeof window){const e=Object.defineProperty({},"passive",{get:()=>{r=!0}});window.addEventListener("testListener",e,e),window.removeEventListener("testListener",e,e)}}catch(v){console.warn(v)}function i(e,t,n){const r=t.length-1;if(r<0)return void 0===e?n:e;for(let i=0;ie.replace(l,(e,t)=>t?t.toUpperCase():"");function u(e){return e.charAt(0).toUpperCase()+e.slice(1)}function h(e){return null!=e?Array.isArray(e)?e:[e]:[]}function f(e,t="default",n,r=!1){return e.$scopedSlots.hasOwnProperty(t)?e.$scopedSlots[t](n instanceof Function?n():n):!e.$slots.hasOwnProperty(t)||n&&!r?void 0:e.$slots[t]}function d(e,t=0,n=1){return Math.max(t,Math.min(n,e))}function p(e,t,n="0"){return e+n.repeat(Math.max(0,t-e.length))}function m(e,t=1){const n=[];let r=0;while(r=0&&(t=e.slice(r),e=e.slice(0,r));var i=e.indexOf("?");return i>=0&&(n=e.slice(i+1),e=e.slice(0,i)),{path:e,query:n,hash:t}}function D(e){return e.replace(/\/(?:\s*\/)+/g,"/")}var B=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)},L=Z,I=U,P=F,R=H,k=q,O=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function U(e,t){var n,r=[],i=0,a=0,s="",o=t&&t.delimiter||"/";while(null!=(n=O.exec(e))){var A=n[0],l=n[1],c=n.index;if(s+=e.slice(a,c),a=c+A.length,l)s+=l[1];else{var u=e[a],h=n[2],f=n[3],d=n[4],p=n[5],m=n[6],g=n[7];s&&(r.push(s),s="");var v=null!=h&&null!=u&&u!==h,y="+"===m||"*"===m,x="?"===m||"*"===m,b=n[2]||o,w=d||p;r.push({name:f||i++,prefix:h||"",delimiter:b,optional:x,repeat:y,partial:v,asterisk:!!g,pattern:w?V(w):g?".*":"[^"+G(b)+"]+?"})}}return a1||!M.length)return 0===M.length?e():e("span",{},M)}if("a"===this.tag)_.on=w,_.attrs={href:A,"aria-current":v};else{var S=se(this.$slots.default);if(S){S.isStatic=!1;var E=S.data=r({},S.data);for(var C in E.on=E.on||{},E.on){var T=E.on[C];C in w&&(E.on[C]=Array.isArray(T)?T:[T])}for(var D in w)D in E.on?E.on[D].push(w[D]):E.on[D]=x;var B=S.data.attrs=r({},S.data.attrs);B.href=A,B["aria-current"]=v}else _.on=w}return e(this.tag,_,this.$slots.default)}};function ae(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&(void 0===e.button||0===e.button)){if(e.currentTarget&&e.currentTarget.getAttribute){var t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function se(e){if(e)for(var t,n=0;n-1&&(o.params[u]=n.params[u]);return o.path=J(l.path,o.params,'named route "'+A+'"'),h(l,o,s)}if(o.path){o.params={};for(var f=0;f-1}function je(e,t){return Qe(e)&&e._isRouter&&(null==t||e.type===t)}function Ye(e,t,n){var r=function(i){i>=e.length?n():e[i]?t(e[i],(function(){r(i+1)})):r(i+1)};r(0)}function Xe(e){return function(t,n,r){var i=!1,a=0,s=null;qe(e,(function(e,t,n,o){if("function"===typeof e&&void 0===e.cid){i=!0,a++;var A,l=$e((function(t){Je(t)&&(t=t.default),e.resolved="function"===typeof t?t:ee.extend(t),n.components[o]=t,a--,a<=0&&r()})),c=$e((function(e){var t="Failed to resolve async component "+o+": "+e;s||(s=Qe(e)?e:new Error(t),r(s))}));try{A=e(l,c)}catch(h){c(h)}if(A)if("function"===typeof A.then)A.then(l,c);else{var u=A.component;u&&"function"===typeof u.then&&u.then(l,c)}}})),i||r()}}function qe(e,t){return Ze(e.map((function(e){return Object.keys(e.components).map((function(n){return t(e.components[n],e.instances[n],e,n)}))})))}function Ze(e){return Array.prototype.concat.apply([],e)}var Ke="function"===typeof Symbol&&"symbol"===typeof Symbol.toStringTag;function Je(e){return e.__esModule||Ke&&"Module"===e[Symbol.toStringTag]}function $e(e){var t=!1;return function(){var n=[],r=arguments.length;while(r--)n[r]=arguments[r];if(!t)return t=!0,e.apply(this,n)}}var et=function(e,t){this.router=e,this.base=tt(t),this.current=m,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};function tt(e){if(!e)if(Ae){var t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^https?:\/\/[^\/]+/,"")}else e="/";return"/"!==e.charAt(0)&&(e="/"+e),e.replace(/\/$/,"")}function nt(e,t){var n,r=Math.max(e.length,t.length);for(n=0;n0)){var t=this.router,n=t.options.scrollBehavior,r=Re&&n;r&&this.listeners.push(we());var i=function(){var n=e.current,i=ut(e.base);e.current===m&&i===e._startLocation||e.transitionTo(i,(function(e){r&&_e(t,e,n,!0)}))};window.addEventListener("popstate",i),this.listeners.push((function(){window.removeEventListener("popstate",i)}))}},t.prototype.go=function(e){window.history.go(e)},t.prototype.push=function(e,t,n){var r=this,i=this,a=i.current;this.transitionTo(e,(function(e){ke(D(r.base+e.fullPath)),_e(r.router,e,a,!1),t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var r=this,i=this,a=i.current;this.transitionTo(e,(function(e){Oe(D(r.base+e.fullPath)),_e(r.router,e,a,!1),t&&t(e)}),n)},t.prototype.ensureURL=function(e){if(ut(this.base)!==this.current.fullPath){var t=D(this.base+this.current.fullPath);e?ke(t):Oe(t)}},t.prototype.getCurrentLocation=function(){return ut(this.base)},t}(et);function ut(e){var t=window.location.pathname,n=t.toLowerCase(),r=e.toLowerCase();return!e||n!==r&&0!==n.indexOf(D(r+"/"))||(t=t.slice(e.length)),(t||"/")+window.location.search+window.location.hash}var ht=function(e){function t(t,n,r){e.call(this,t,n),r&&ft(this.base)||dt()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.setupListeners=function(){var e=this;if(!(this.listeners.length>0)){var t=this.router,n=t.options.scrollBehavior,r=Re&&n;r&&this.listeners.push(we());var i=function(){var t=e.current;dt()&&e.transitionTo(pt(),(function(n){r&&_e(e.router,n,t,!0),Re||vt(n.fullPath)}))},a=Re?"popstate":"hashchange";window.addEventListener(a,i),this.listeners.push((function(){window.removeEventListener(a,i)}))}},t.prototype.push=function(e,t,n){var r=this,i=this,a=i.current;this.transitionTo(e,(function(e){gt(e.fullPath),_e(r.router,e,a,!1),t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var r=this,i=this,a=i.current;this.transitionTo(e,(function(e){vt(e.fullPath),_e(r.router,e,a,!1),t&&t(e)}),n)},t.prototype.go=function(e){window.history.go(e)},t.prototype.ensureURL=function(e){var t=this.current.fullPath;pt()!==t&&(e?gt(t):vt(t))},t.prototype.getCurrentLocation=function(){return pt()},t}(et);function ft(e){var t=ut(e);if(!/^\/#/.test(t))return window.location.replace(D(e+"/#"+t)),!0}function dt(){var e=pt();return"/"===e.charAt(0)||(vt("/"+e),!1)}function pt(){var e=window.location.href,t=e.indexOf("#");return t<0?"":(e=e.slice(t+1),e)}function mt(e){var t=window.location.href,n=t.indexOf("#"),r=n>=0?t.slice(0,n):t;return r+"#"+e}function gt(e){Re?ke(mt(e)):window.location.hash=e}function vt(e){Re?Oe(mt(e)):window.location.replace(mt(e))}var yt=function(e){function t(t,n){e.call(this,t,n),this.stack=[],this.index=-1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.push=function(e,t,n){var r=this;this.transitionTo(e,(function(e){r.stack=r.stack.slice(0,r.index+1).concat(e),r.index++,t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var r=this;this.transitionTo(e,(function(e){r.stack=r.stack.slice(0,r.index).concat(e),t&&t(e)}),n)},t.prototype.go=function(e){var t=this,n=this.index+e;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,(function(){var e=t.current;t.index=n,t.updateRoute(r),t.router.afterHooks.forEach((function(t){t&&t(r,e)}))}),(function(e){je(e,Ue.duplicated)&&(t.index=n)}))}},t.prototype.getCurrentLocation=function(){var e=this.stack[this.stack.length-1];return e?e.fullPath:"/"},t.prototype.ensureURL=function(){},t}(et),xt=function(e){void 0===e&&(e={}),this.app=null,this.apps=[],this.options=e,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=fe(e.routes||[],this);var t=e.mode||"hash";switch(this.fallback="history"===t&&!Re&&!1!==e.fallback,this.fallback&&(t="hash"),Ae||(t="abstract"),this.mode=t,t){case"history":this.history=new ct(this,e.base);break;case"hash":this.history=new ht(this,e.base,this.fallback);break;case"abstract":this.history=new yt(this,e.base);break;default:0}},bt={currentRoute:{configurable:!0}};xt.prototype.match=function(e,t,n){return this.matcher.match(e,t,n)},bt.currentRoute.get=function(){return this.history&&this.history.current},xt.prototype.init=function(e){var t=this;if(this.apps.push(e),e.$once("hook:destroyed",(function(){var n=t.apps.indexOf(e);n>-1&&t.apps.splice(n,1),t.app===e&&(t.app=t.apps[0]||null),t.app||t.history.teardown()})),!this.app){this.app=e;var n=this.history;if(n instanceof ct||n instanceof ht){var r=function(e){var r=n.current,i=t.options.scrollBehavior,a=Re&&i;a&&"fullPath"in e&&_e(t,e,r,!1)},i=function(e){n.setupListeners(),r(e)};n.transitionTo(n.getCurrentLocation(),i,i)}n.listen((function(e){t.apps.forEach((function(t){t._route=e}))}))}},xt.prototype.beforeEach=function(e){return _t(this.beforeHooks,e)},xt.prototype.beforeResolve=function(e){return _t(this.resolveHooks,e)},xt.prototype.afterEach=function(e){return _t(this.afterHooks,e)},xt.prototype.onReady=function(e,t){this.history.onReady(e,t)},xt.prototype.onError=function(e){this.history.onError(e)},xt.prototype.push=function(e,t,n){var r=this;if(!t&&!n&&"undefined"!==typeof Promise)return new Promise((function(t,n){r.history.push(e,t,n)}));this.history.push(e,t,n)},xt.prototype.replace=function(e,t,n){var r=this;if(!t&&!n&&"undefined"!==typeof Promise)return new Promise((function(t,n){r.history.replace(e,t,n)}));this.history.replace(e,t,n)},xt.prototype.go=function(e){this.history.go(e)},xt.prototype.back=function(){this.go(-1)},xt.prototype.forward=function(){this.go(1)},xt.prototype.getMatchedComponents=function(e){var t=e?e.matched?e:this.resolve(e).route:this.currentRoute;return t?[].concat.apply([],t.matched.map((function(e){return Object.keys(e.components).map((function(t){return e.components[t]}))}))):[]},xt.prototype.resolve=function(e,t,n){t=t||this.history.current;var r=$(e,t,n,this),i=this.match(r,t),a=i.redirectedFrom||i.fullPath,s=this.history.base,o=Mt(s,a,this.mode);return{location:r,route:i,href:o,normalizedTo:r,resolved:i}},xt.prototype.getRoutes=function(){return this.matcher.getRoutes()},xt.prototype.addRoute=function(e,t){this.matcher.addRoute(e,t),this.history.current!==m&&this.history.transitionTo(this.history.getCurrentLocation())},xt.prototype.addRoutes=function(e){this.matcher.addRoutes(e),this.history.current!==m&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(xt.prototype,bt);var wt=xt;function _t(e,t){return e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function Mt(e,t,n){var r="hash"===n?"#"+t:t;return e?D(e+"/"+r):r}xt.install=oe,xt.version="3.6.5",xt.isNavigationFailure=je,xt.NavigationFailureType=Ue,xt.START_LOCATION=m,Ae&&window.Vue&&window.Vue.use(xt)},"8ea1":function(e,t){var n="object"==typeof document&&document.all,r="undefined"==typeof n&&void 0!==n;e.exports={all:n,IS_HTMLDDA:r}},"8efc":function(e,t,n){},"907a":function(e,t,n){"use strict";var r=n("ebb5"),i=n("07fa"),a=n("5926"),s=r.aTypedArray,o=r.exportTypedArrayMethod;o("at",(function(e){var t=s(this),n=i(t),r=a(e),o=r>=0?r:n+r;return o<0||o>=n?void 0:t[o]}))},"90e3":function(e,t,n){var r=n("e330"),i=0,a=Math.random(),s=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+s(++i+a,36)}},9112:function(e,t,n){var r=n("83ab"),i=n("9bf2"),a=n("5c6c");e.exports=r?function(e,t,n){return i.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},"91fc":function(e,t,n){"use strict";function r(e,t,n){if(e&&e.length){const[r,i]=t,a=Math.PI/180*n,s=Math.cos(a),o=Math.sin(a);e.forEach(e=>{const[t,n]=e;e[0]=(t-r)*s-(n-i)*o+r,e[1]=(t-r)*o+(n-i)*s+i})}}function i(e,t,n){const i=[];e.forEach(e=>i.push(...e)),r(i,t,n)}function a(e){const t=e[0],n=e[1];return Math.sqrt(Math.pow(t[0]-n[0],2)+Math.pow(t[1]-n[1],2))}function s(e,t){const n=t.hachureAngle+90;let a=t.hachureGap;a<0&&(a=4*t.strokeWidth),a=Math.max(a,.1);const s=[0,0];if(n)for(const i of e)r(i,s,n);const A=o(e,a);if(n){for(const t of e)r(t,s,-n);i(A,s,-n)}return A}function o(e,t){const n=[];for(const o of e){const e=[...o];e[0].join(",")!==e[e.length-1].join(",")&&e.push([e[0][0],e[0][1]]),e.length>2&&n.push(e)}const r=[];t=Math.max(t,.1);const i=[];for(const o of n)for(let e=0;ee.ymint.ymin?1:e.xt.x?1:e.ymax===t.ymax?0:(e.ymax-t.ymax)/Math.abs(e.ymax-t.ymax)),!i.length)return r;let a=[],s=i[0].ymin;while(a.length||i.length){if(i.length){let e=-1;for(let n=0;ns)break;e=n}const t=i.splice(0,e+1);t.forEach(e=>{a.push({s:s,edge:e})})}if(a=a.filter(e=>!(e.edge.ymax<=s)),a.sort((e,t)=>e.edge.x===t.edge.x?0:(e.edge.x-t.edge.x)/Math.abs(e.edge.x-t.edge.x)),a.length>1)for(let e=0;e=a.length)break;const n=a[e].edge,i=a[t].edge;r.push([[Math.round(n.x),s],[Math.round(i.x),s]])}s+=t,a.forEach(e=>{e.edge.x=e.edge.x+t*e.edge.islope})}return r}class A{constructor(e){this.helper=e}fillPolygons(e,t){return this._fillPolygons(e,t)}_fillPolygons(e,t){const n=s(e,t),r=this.renderLines(n,t);return{type:"fillSketch",ops:r}}renderLines(e,t){const n=[];for(const r of e)n.push(...this.helper.doubleLineOps(r[0][0],r[0][1],r[1][0],r[1][1],t));return n}}class l extends A{fillPolygons(e,t){let n=t.hachureGap;n<0&&(n=4*t.strokeWidth),n=Math.max(n,.1);const r=Object.assign({},t,{hachureGap:n}),i=s(e,r),o=Math.PI/180*t.hachureAngle,A=[],l=.5*n*Math.cos(o),c=.5*n*Math.sin(o);for(const[s,h]of i)a([s,h])&&A.push([[s[0]-l,s[1]+c],[...h]],[[s[0]+l,s[1]-c],[...h]]);const u=this.renderLines(A,t);return{type:"fillSketch",ops:u}}}class c extends A{fillPolygons(e,t){const n=this._fillPolygons(e,t),r=Object.assign({},t,{hachureAngle:t.hachureAngle+90}),i=this._fillPolygons(e,r);return n.ops=n.ops.concat(i.ops),n}}class u{constructor(e){this.helper=e}fillPolygons(e,t){t=Object.assign({},t,{hachureAngle:0});const n=s(e,t);return this.dotsOnLines(n,t)}dotsOnLines(e,t){const n=[];let r=t.hachureGap;r<0&&(r=4*t.strokeWidth),r=Math.max(r,.1);let i=t.fillWeight;i<0&&(i=t.strokeWidth/2);const s=r/4;for(const o of e){const e=a(o),A=e/r,l=Math.ceil(A)-1,c=e-l*r,u=(o[0][0]+o[1][0])/2-r/4,h=Math.min(o[0][1],o[1][1]);for(let a=0;a{const s=a(e),o=Math.floor(s/(n+r)),A=(s+r-o*(n+r))/2;let l=e[0],c=e[1];l[0]>c[0]&&(l=e[1],c=e[0]);const u=Math.atan((c[1]-l[1])/(c[0]-l[0]));for(let a=0;a{const i=a(e),s=Math.round(i/(2*t));let o=e[0],A=e[1];o[0]>A[0]&&(o=e[1],A=e[0]);const l=Math.atan((A[1]-o[1])/(A[0]-o[0]));for(let a=0;ar%2?e+n:e+t);a.push({key:"C",data:e}),t=e[4],n=e[5];break}case"Q":a.push({key:"Q",data:[...o]}),t=o[2],n=o[3];break;case"q":{const e=o.map((e,r)=>r%2?e+n:e+t);a.push({key:"Q",data:e}),t=e[2],n=e[3];break}case"A":a.push({key:"A",data:[...o]}),t=o[5],n=o[6];break;case"a":t+=o[5],n+=o[6],a.push({key:"A",data:[o[0],o[1],o[2],o[3],o[4],t,n]});break;case"H":a.push({key:"H",data:[...o]}),t=o[0];break;case"h":t+=o[0],a.push({key:"H",data:[t]});break;case"V":a.push({key:"V",data:[...o]}),n=o[0];break;case"v":n+=o[0],a.push({key:"V",data:[n]});break;case"S":a.push({key:"S",data:[...o]}),t=o[2],n=o[3];break;case"s":{const e=o.map((e,r)=>r%2?e+n:e+t);a.push({key:"S",data:e}),t=e[2],n=e[3];break}case"T":a.push({key:"T",data:[...o]}),t=o[0],n=o[1];break;case"t":t+=o[0],n+=o[1],a.push({key:"T",data:[t,n]});break;case"Z":case"z":a.push({key:"Z",data:[]}),t=r,n=i;break}return a}function E(e){const t=[];let n="",r=0,i=0,a=0,s=0,o=0,A=0;for(const{key:l,data:c}of e){switch(l){case"M":t.push({key:"M",data:[...c]}),[r,i]=c,[a,s]=c;break;case"C":t.push({key:"C",data:[...c]}),r=c[4],i=c[5],o=c[2],A=c[3];break;case"L":t.push({key:"L",data:[...c]}),[r,i]=c;break;case"H":r=c[0],t.push({key:"L",data:[r,i]});break;case"V":i=c[0],t.push({key:"L",data:[r,i]});break;case"S":{let e=0,a=0;"C"===n||"S"===n?(e=r+(r-o),a=i+(i-A)):(e=r,a=i),t.push({key:"C",data:[e,a,...c]}),o=c[0],A=c[1],r=c[2],i=c[3];break}case"T":{const[e,a]=c;let s=0,l=0;"Q"===n||"T"===n?(s=r+(r-o),l=i+(i-A)):(s=r,l=i);const u=r+2*(s-r)/3,h=i+2*(l-i)/3,f=e+2*(s-e)/3,d=a+2*(l-a)/3;t.push({key:"C",data:[u,h,f,d,e,a]}),o=s,A=l,r=e,i=a;break}case"Q":{const[e,n,a,s]=c,l=r+2*(e-r)/3,u=i+2*(n-i)/3,h=a+2*(e-a)/3,f=s+2*(n-s)/3;t.push({key:"C",data:[l,u,h,f,a,s]}),o=e,A=n,r=a,i=s;break}case"A":{const e=Math.abs(c[0]),n=Math.abs(c[1]),a=c[2],s=c[3],o=c[4],A=c[5],l=c[6];if(0===e||0===n)t.push({key:"C",data:[r,i,A,l,A,l]}),r=A,i=l;else if(r!==A||i!==l){const c=D(r,i,A,l,e,n,a,s,o);c.forEach((function(e){t.push({key:"C",data:e})})),r=A,i=l}break}case"Z":t.push({key:"Z",data:[]}),r=a,i=s;break}n=l}return t}function C(e){return Math.PI*e/180}function T(e,t,n){const r=e*Math.cos(n)-t*Math.sin(n),i=e*Math.sin(n)+t*Math.cos(n);return[r,i]}function D(e,t,n,r,i,a,s,o,A,l){const c=C(s);let u=[],h=0,f=0,d=0,p=0;if(l)[h,f,d,p]=l;else{[e,t]=T(e,t,-c),[n,r]=T(n,r,-c);const s=(e-n)/2,l=(t-r)/2;let u=s*s/(i*i)+l*l/(a*a);u>1&&(u=Math.sqrt(u),i*=u,a*=u);const m=o===A?-1:1,g=i*i,v=a*a,y=g*v-g*l*l-v*s*s,x=g*l*l+v*s*s,b=m*Math.sqrt(Math.abs(y/x));d=b*i*l/a+(e+n)/2,p=b*-a*s/i+(t+r)/2,h=Math.asin(parseFloat(((t-p)/a).toFixed(9))),f=Math.asin(parseFloat(((r-p)/a).toFixed(9))),ef&&(h-=2*Math.PI),!A&&f>h&&(f-=2*Math.PI)}let m=f-h;if(Math.abs(m)>120*Math.PI/180){const e=f,t=n,o=r;f=A&&f>h?h+120*Math.PI/180*1:h+120*Math.PI/180*-1,n=d+i*Math.cos(f),r=p+a*Math.sin(f),u=D(n,r,t,o,i,a,s,0,A,[f,e,d,p])}m=f-h;const g=Math.cos(h),v=Math.sin(h),y=Math.cos(f),x=Math.sin(f),b=Math.tan(m/4),w=4/3*i*b,_=4/3*a*b,M=[e,t],S=[e+w*v,t-_*g],E=[n+w*x,r-_*y],B=[n,r];if(S[0]=2*M[0]-S[0],S[1]=2*M[1]-S[1],l)return[S,E,B].concat(u);{u=[S,E,B].concat(u);const e=[];for(let t=0;t2){const i=[];for(let t=0;t2*Math.PI&&(f=0,d=2*Math.PI);const p=2*Math.PI/A.curveStepCount,m=Math.min(p/2,(d-f)/2),g=ne(m,l,c,u,h,f,d,1,A);if(!A.disableMultiStroke){const e=ne(m,l,c,u,h,f,d,1.5,A);g.push(...e)}return s&&(o?g.push(...K(l,c,l+u*Math.cos(f),c+h*Math.sin(f),A),...K(l,c,l+u*Math.cos(d),c+h*Math.sin(d),A)):g.push({op:"lineTo",data:[l,c]},{op:"lineTo",data:[l+u*Math.cos(f),c+h*Math.sin(f)]})),{type:"path",ops:g}}function z(e,t){const n=E(S(M(e))),r=[];let i=[0,0],a=[0,0];for(const{key:s,data:o}of n)switch(s){case"M":{const e=1*(t.maxRandomnessOffset||0),n=t.preserveVertices;r.push({op:"move",data:o.map(r=>r+(n?0:Z(e,t)))}),a=[o[0],o[1]],i=[o[0],o[1]];break}case"L":r.push(...K(a[0],a[1],o[0],o[1],t)),a=[o[0],o[1]];break;case"C":{const[e,n,i,s,A,l]=o;r.push(...re(e,n,i,s,A,l,a,t)),a=[A,l];break}case"Z":r.push(...K(a[0],a[1],i[0],i[1],t)),a=[i[0],i[1]];break}return{type:"path",ops:r}}function H(e,t){const n=[];for(const r of e)if(r.length){const e=t.maxRandomnessOffset||0,i=r.length;if(i>2){n.push({op:"move",data:[r[0][0]+Z(e,t),r[0][1]+Z(e,t)]});for(let a=1;a2*Math.PI&&(u=0,h=2*Math.PI);const f=(h-u)/s.curveStepCount,d=[];for(let p=u;p<=h;p+=f)d.push([o+l*Math.cos(p),A+c*Math.sin(p)]);return d.push([o+l*Math.cos(h),A+c*Math.sin(h)]),d.push([o,A]),G([d],s)}function W(e,t){return Z(e,t)}function Q(e,t,n){return q(e,t,n)}function j(e,t,n,r,i){return K(e,t,n,r,i,!0)}function Y(e){const t=Object.assign({},e);return t.randomizer=void 0,e.seed&&(t.seed=e.seed+1),t}function X(e){return e.randomizer||(e.randomizer=new g(e.seed||0)),e.randomizer.next()}function q(e,t,n,r=1){return n.roughness*r*(X(n)*(t-e)+e)}function Z(e,t,n=1){return q(-e,e,t,n)}function K(e,t,n,r,i,a=!1){const s=a?i.disableMultiStrokeFill:i.disableMultiStroke,o=J(e,t,n,r,i,!0,!1);if(s)return o;const A=J(e,t,n,r,i,!0,!0);return o.concat(A)}function J(e,t,n,r,i,a,s){const o=Math.pow(e-n,2)+Math.pow(t-r,2),A=Math.sqrt(o);let l=1;l=A<200?1:A>500?.4:-.0016668*A+1.233334;let c=i.maxRandomnessOffset||0;c*c*100>o&&(c=A/10);const u=c/2,h=.2+.2*X(i);let f=i.bowing*i.maxRandomnessOffset*(r-t)/200,d=i.bowing*i.maxRandomnessOffset*(e-n)/200;f=Z(f,i,l),d=Z(d,i,l);const p=[],m=()=>Z(u,i,l),g=()=>Z(c,i,l),v=i.preserveVertices;return a&&(s?p.push({op:"move",data:[e+(v?0:m()),t+(v?0:m())]}):p.push({op:"move",data:[e+(v?0:Z(c,i,l)),t+(v?0:Z(c,i,l))]})),s?p.push({op:"bcurveTo",data:[f+e+(n-e)*h+m(),d+t+(r-t)*h+m(),f+e+2*(n-e)*h+m(),d+t+2*(r-t)*h+m(),n+(v?0:m()),r+(v?0:m())]}):p.push({op:"bcurveTo",data:[f+e+(n-e)*h+g(),d+t+(r-t)*h+g(),f+e+2*(n-e)*h+g(),d+t+2*(r-t)*h+g(),n+(v?0:g()),r+(v?0:g())]}),p}function $(e,t,n){const r=[];r.push([e[0][0]+Z(t,n),e[0][1]+Z(t,n)]),r.push([e[0][0]+Z(t,n),e[0][1]+Z(t,n)]);for(let i=1;i3){const a=[],s=1-n.curveTightness;i.push({op:"move",data:[e[1][0],e[1][1]]});for(let t=1;t+21&&i.push(n)}else i.push(n);i.push(e[t+3])}else{const r=.5,a=e[t+0],s=e[t+1],o=e[t+2],A=e[t+3],l=le(a,s,r),c=le(s,o,r),u=le(o,A,r),h=le(l,c,r),f=le(c,u,r),d=le(h,f,r);ue([a,l,h,d],0,n,i),ue([d,f,u,A],0,n,i)}return i}function he(e,t){return fe(e,0,e.length,t)}function fe(e,t,n,r,i){const a=i||[],s=e[t],o=e[n-1];let A=0,l=1;for(let c=t+1;cA&&(A=t,l=c)}return Math.sqrt(A)>r?(fe(e,t,l+1,r,a),fe(e,l,n,r,a)):(a.length||a.push(s),a.push(o)),a}function de(e,t=.15,n){const r=[],i=(e.length-1)/3;for(let a=0;a0?fe(r,0,r.length,n):r}function pe(e,t,n){const r=M(e),i=E(S(r)),a=[];let s=[],o=[0,0],A=[];const l=()=>{A.length>=4&&s.push(...de(A,t)),A=[]},c=()=>{l(),s.length&&(a.push(s),s=[])};for(const{key:h,data:f}of i)switch(h){case"M":c(),o=[f[0],f[1]],s.push(o);break;case"L":l(),s.push([f[0],f[1]]);break;case"C":if(!A.length){const e=s.length?s[s.length-1]:o;A.push([e[0],e[1]])}A.push([f[0],f[1]]),A.push([f[2],f[3]]),A.push([f[4],f[5]]);break;case"Z":l(),s.push([o[0],o[1]]);break}if(c(),!n)return a;const u=[];for(const h of a){const e=he(h,n);e.length&&u.push(e)}return u}const me="none";class ge{constructor(e){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1},this.config=e||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return m()}_o(e){return e?Object.assign({},this.defaultOptions,e):this.defaultOptions}_d(e,t,n){return{shape:e,sets:t||[],options:n||this.defaultOptions}}line(e,t,n,r,i){const a=this._o(i);return this._d("line",[L(e,t,n,r,a)],a)}rectangle(e,t,n,r,i){const a=this._o(i),s=[],o=R(e,t,n,r,a);if(a.fill){const i=[[e,t],[e+n,t],[e+n,t+r],[e,t+r]];"solid"===a.fillStyle?s.push(H([i],a)):s.push(G([i],a))}return a.stroke!==me&&s.push(o),this._d("rectangle",s,a)}ellipse(e,t,n,r,i){const a=this._o(i),s=[],o=U(n,r,a),A=F(e,t,a,o);if(a.fill)if("solid"===a.fillStyle){const n=F(e,t,a,o).opset;n.type="fillPath",s.push(n)}else s.push(G([A.estimatedPoints],a));return a.stroke!==me&&s.push(A.opset),this._d("ellipse",s,a)}circle(e,t,n,r){const i=this.ellipse(e,t,n,n,r);return i.shape="circle",i}linearPath(e,t){const n=this._o(t);return this._d("linearPath",[I(e,!1,n)],n)}arc(e,t,n,r,i,a,s=!1,o){const A=this._o(o),l=[],c=N(e,t,n,r,i,a,s,!0,A);if(s&&A.fill)if("solid"===A.fillStyle){const s=Object.assign({},A);s.disableMultiStroke=!0;const o=N(e,t,n,r,i,a,!0,!1,s);o.type="fillPath",l.push(o)}else l.push(V(e,t,n,r,i,a,A));return A.stroke!==me&&l.push(c),this._d("arc",l,A)}curve(e,t){const n=this._o(t),r=[],i=k(e,n);if(n.fill&&n.fill!==me&&e.length>=3){const t=ae(e),i=de(t,10,(1+n.roughness)/2);"solid"===n.fillStyle?r.push(H([i],n)):r.push(G([i],n))}return n.stroke!==me&&r.push(i),this._d("curve",r,n)}polygon(e,t){const n=this._o(t),r=[],i=I(e,!0,n);return n.fill&&("solid"===n.fillStyle?r.push(H([e],n)):r.push(G([e],n))),n.stroke!==me&&r.push(i),this._d("polygon",r,n)}path(e,t){const n=this._o(t),r=[];if(!e)return this._d("path",r,n);e=(e||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const i=n.fill&&"transparent"!==n.fill&&n.fill!==me,a=n.stroke!==me,s=!!(n.simplification&&n.simplification<1),o=s?4-4*n.simplification:(1+n.roughness)/2,A=pe(e,1,o);return i&&("solid"===n.fillStyle?r.push(H(A,n)):r.push(G(A,n))),a&&(s?A.forEach(e=>{r.push(I(e,!1,n))}):r.push(z(e,n))),this._d("path",r,n)}opsToPath(e,t){let n="";for(const r of e.ops){const e="number"===typeof t&&t>=0?r.data.map(e=>+e.toFixed(t)):r.data;switch(r.op){case"move":n+=`M${e[0]} ${e[1]} `;break;case"bcurveTo":n+=`C${e[0]} ${e[1]}, ${e[2]} ${e[3]}, ${e[4]} ${e[5]} `;break;case"lineTo":n+=`L${e[0]} ${e[1]} `;break}}return n.trim()}toPaths(e){const t=e.sets||[],n=e.options||this.defaultOptions,r=[];for(const i of t){let e=null;switch(i.type){case"path":e={d:this.opsToPath(i),stroke:n.stroke,strokeWidth:n.strokeWidth,fill:me};break;case"fillPath":e={d:this.opsToPath(i),stroke:me,strokeWidth:0,fill:n.fill||me};break;case"fillSketch":e=this.fillSketch(i,n);break}e&&r.push(e)}return r}fillSketch(e,t){let n=t.fillWeight;return n<0&&(n=t.strokeWidth/2),{d:this.opsToPath(e),stroke:t.fill||me,strokeWidth:n,fill:me}}}class ve{constructor(e,t){this.canvas=e,this.ctx=this.canvas.getContext("2d"),this.gen=new ge(t)}draw(e){const t=e.sets||[],n=e.options||this.getDefaultOptions(),r=this.ctx,i=e.options.fixedDecimalPlaceDigits;for(const a of t)switch(a.type){case"path":r.save(),r.strokeStyle="none"===n.stroke?"transparent":n.stroke,r.lineWidth=n.strokeWidth,n.strokeLineDash&&r.setLineDash(n.strokeLineDash),n.strokeLineDashOffset&&(r.lineDashOffset=n.strokeLineDashOffset),this._drawToContext(r,a,i),r.restore();break;case"fillPath":{r.save(),r.fillStyle=n.fill||"";const t="curve"===e.shape||"polygon"===e.shape||"path"===e.shape?"evenodd":"nonzero";this._drawToContext(r,a,i,t),r.restore();break}case"fillSketch":this.fillSketch(r,a,n);break}}fillSketch(e,t,n){let r=n.fillWeight;r<0&&(r=n.strokeWidth/2),e.save(),n.fillLineDash&&e.setLineDash(n.fillLineDash),n.fillLineDashOffset&&(e.lineDashOffset=n.fillLineDashOffset),e.strokeStyle=n.fill||"",e.lineWidth=r,this._drawToContext(e,t,n.fixedDecimalPlaceDigits),e.restore()}_drawToContext(e,t,n,r="nonzero"){e.beginPath();for(const i of t.ops){const t="number"===typeof n&&n>=0?i.data.map(e=>+e.toFixed(n)):i.data;switch(i.op){case"move":e.moveTo(t[0],t[1]);break;case"bcurveTo":e.bezierCurveTo(t[0],t[1],t[2],t[3],t[4],t[5]);break;case"lineTo":e.lineTo(t[0],t[1]);break}}"fillPath"===t.type?e.fill(r):e.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(e,t,n,r,i){const a=this.gen.line(e,t,n,r,i);return this.draw(a),a}rectangle(e,t,n,r,i){const a=this.gen.rectangle(e,t,n,r,i);return this.draw(a),a}ellipse(e,t,n,r,i){const a=this.gen.ellipse(e,t,n,r,i);return this.draw(a),a}circle(e,t,n,r){const i=this.gen.circle(e,t,n,r);return this.draw(i),i}linearPath(e,t){const n=this.gen.linearPath(e,t);return this.draw(n),n}polygon(e,t){const n=this.gen.polygon(e,t);return this.draw(n),n}arc(e,t,n,r,i,a,s=!1,o){const A=this.gen.arc(e,t,n,r,i,a,s,o);return this.draw(A),A}curve(e,t){const n=this.gen.curve(e,t);return this.draw(n),n}path(e,t){const n=this.gen.path(e,t);return this.draw(n),n}}const ye="http://www.w3.org/2000/svg";class xe{constructor(e,t){this.svg=e,this.gen=new ge(t)}draw(e){const t=e.sets||[],n=e.options||this.getDefaultOptions(),r=this.svg.ownerDocument||window.document,i=r.createElementNS(ye,"g"),a=e.options.fixedDecimalPlaceDigits;for(const s of t){let t=null;switch(s.type){case"path":t=r.createElementNS(ye,"path"),t.setAttribute("d",this.opsToPath(s,a)),t.setAttribute("stroke",n.stroke),t.setAttribute("stroke-width",n.strokeWidth+""),t.setAttribute("fill","none"),n.strokeLineDash&&t.setAttribute("stroke-dasharray",n.strokeLineDash.join(" ").trim()),n.strokeLineDashOffset&&t.setAttribute("stroke-dashoffset",""+n.strokeLineDashOffset);break;case"fillPath":t=r.createElementNS(ye,"path"),t.setAttribute("d",this.opsToPath(s,a)),t.setAttribute("stroke","none"),t.setAttribute("stroke-width","0"),t.setAttribute("fill",n.fill||""),"curve"!==e.shape&&"polygon"!==e.shape||t.setAttribute("fill-rule","evenodd");break;case"fillSketch":t=this.fillSketch(r,s,n);break}t&&i.appendChild(t)}return i}fillSketch(e,t,n){let r=n.fillWeight;r<0&&(r=n.strokeWidth/2);const i=e.createElementNS(ye,"path");return i.setAttribute("d",this.opsToPath(t,n.fixedDecimalPlaceDigits)),i.setAttribute("stroke",n.fill||""),i.setAttribute("stroke-width",r+""),i.setAttribute("fill","none"),n.fillLineDash&&i.setAttribute("stroke-dasharray",n.fillLineDash.join(" ").trim()),n.fillLineDashOffset&&i.setAttribute("stroke-dashoffset",""+n.fillLineDashOffset),i}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(e,t){return this.gen.opsToPath(e,t)}line(e,t,n,r,i){const a=this.gen.line(e,t,n,r,i);return this.draw(a)}rectangle(e,t,n,r,i){const a=this.gen.rectangle(e,t,n,r,i);return this.draw(a)}ellipse(e,t,n,r,i){const a=this.gen.ellipse(e,t,n,r,i);return this.draw(a)}circle(e,t,n,r){const i=this.gen.circle(e,t,n,r);return this.draw(i)}linearPath(e,t){const n=this.gen.linearPath(e,t);return this.draw(n)}polygon(e,t){const n=this.gen.polygon(e,t);return this.draw(n)}arc(e,t,n,r,i,a,s=!1,o){const A=this.gen.arc(e,t,n,r,i,a,s,o);return this.draw(A)}curve(e,t){const n=this.gen.curve(e,t);return this.draw(n)}path(e,t){const n=this.gen.path(e,t);return this.draw(n)}}t["a"]={canvas(e,t){return new ve(e,t)},svg(e,t){return new xe(e,t)},generator(e){return new ge(e)},newSeed(){return ge.newSeed()}}},9483:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r,i=function(){return Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/))};function a(e,t){void 0===t&&(t={});var n=t.registrationOptions;void 0===n&&(n={}),delete t.registrationOptions;var a=function(e){var n=[],r=arguments.length-1;while(r-- >0)n[r]=arguments[r+1];t&&t[e]&&t[e].apply(t,n)};"serviceWorker"in navigator&&r.then((function(){i()?(A(e,a,n),navigator.serviceWorker.ready.then((function(e){a("ready",e)})).catch((function(e){return s(a,e)}))):(o(e,a,n),navigator.serviceWorker.ready.then((function(e){a("ready",e)})).catch((function(e){return s(a,e)})))}))}function s(e,t){navigator.onLine||e("offline"),e("error",t)}function o(e,t,n){navigator.serviceWorker.register(e,n).then((function(e){t("registered",e),e.waiting?t("updated",e):e.onupdatefound=function(){t("updatefound",e);var n=e.installing;n.onstatechange=function(){"installed"===n.state&&(navigator.serviceWorker.controller?t("updated",e):t("cached",e))}}})).catch((function(e){return s(t,e)}))}function A(e,t,n){fetch(e).then((function(r){404===r.status?(t("error",new Error("Service worker not found at "+e)),l()):-1===r.headers.get("content-type").indexOf("javascript")?(t("error",new Error("Expected "+e+" to have javascript content-type, but received "+r.headers.get("content-type"))),l()):o(e,t,n)})).catch((function(e){return s(t,e)}))}function l(){"serviceWorker"in navigator&&navigator.serviceWorker.ready.then((function(e){e.unregister()})).catch((function(e){return s(emit,e)}))}"undefined"!==typeof window&&(r="undefined"!==typeof Promise?new Promise((function(e){return window.addEventListener("load",e)})):{then:function(e){return window.addEventListener("load",e)}})},"94ca":function(e,t,n){var r=n("d039"),i=n("1626"),a=/#|\.prototype\./,s=function(e,t){var n=A[o(e)];return n==c||n!=l&&(i(t)?r(t):!!t)},o=s.normalize=function(e){return String(e).replace(a,".").toLowerCase()},A=s.data={},l=s.NATIVE="N",c=s.POLYFILL="P";e.exports=s},"95ed":function(e,t,n){},"986a":function(e,t,n){"use strict";var r=n("ebb5"),i=n("a258").findLast,a=r.aTypedArray,s=r.exportTypedArrayMethod;s("findLast",(function(e){return i(a(this),e,arguments.length>1?arguments[1]:void 0)}))},"9ab4":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));function r(e,t,n,r){var i,a=arguments.length,s=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(s=(a<3?i(s):a>3?i(t,n,s):i(t,n))||s);return a>3&&s&&Object.defineProperty(t,n,s),s}},"9bf2":function(e,t,n){var r=n("83ab"),i=n("0cfb"),a=n("aed9"),s=n("825a"),o=n("a04b"),A=TypeError,l=Object.defineProperty,c=Object.getOwnPropertyDescriptor,u="enumerable",h="configurable",f="writable";t.f=r?a?function(e,t,n){if(s(e),t=o(t),s(n),"function"===typeof e&&"prototype"===t&&"value"in n&&f in n&&!n[f]){var r=c(e,t);r&&r[f]&&(e[t]=n.value,n={configurable:h in n?n[h]:r[h],enumerable:u in n?n[u]:r[u],writable:!1})}return l(e,t,n)}:l:function(e,t,n){if(s(e),t=o(t),s(n),i)try{return l(e,t,n)}catch(r){}if("get"in n||"set"in n)throw A("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},"9d01":function(e,t,n){ /*! * tinygradient (v1.1.5) * @copyright 2014-2021 Damien "Mistic" Sorel * @licence MIT */ (function(t,r){e.exports=r(n("66cb"))})(0,(function(e){"use strict";function t(e){return e&&"object"===typeof e&&"default"in e?e:{default:e}}var n=t(e),r={r:256,g:256,b:256,a:1},i={h:360,s:1,v:1,a:1};function a(e,t,n){var r={};for(var i in e)e.hasOwnProperty(i)&&(r[i]=0===n?0:(t[i]-e[i])/n);return r}function s(e,t,n,r){var i={};for(var a in t)t.hasOwnProperty(a)&&(i[a]=e[a]*n+t[a],i[a]=i[a]<0?i[a]+r[a]:1!==r[a]?i[a]%r[a]:i[a]);return i}function o(e,t,i){for(var o=e.color.toRgb(),A=t.color.toRgb(),l=a(o,A,i),c=[e.color],u=1;uu.h&&c.h-u.h>180;l="long"===A&&h||"short"===A&&!h}var f,d=a(c,u,r),p=[e.color];f=c.h<=u.h&&!l||c.h>=u.h&&l?u.h-c.h:l?360-u.h+c.h:360-c.h+u.h,d.h=Math.pow(-1,l?1:0)*Math.abs(f)/r;for(var m=1;m1)throw new Error("Position must be between 0 and 1");for(var o,A,l=0,c=e.length;l=e[l].pos&&t1)throw new Error("Color stops positions must be between 0 and 1");if(e.pos0)if(l=h[d],c=f(l,d,u),c)switch(e){case 0:return l;case 1:return d}return t?-1:void 0}};e.exports={findLast:o(0),findLastIndex:o(1)}},a523:function(e,t,n){"use strict";n("20f6"),n("4b85");var r=n("2b0e");function i(e){return r["a"].extend({name:"v-"+e,functional:!0,props:{id:String,tag:{type:String,default:"div"}},render(t,{props:n,data:r,children:i}){r.staticClass=`${e} ${r.staticClass||""}`.trim();const{attrs:a}=r;if(a){r.attrs={};const e=Object.keys(a).filter(e=>{if("slot"===e)return!1;const t=a[e];return e.startsWith("data-")?(r.attrs[e]=t,!1):t||"string"===typeof t});e.length&&(r.staticClass+=" "+e.join(" "))}return n.id&&(r.domProps=r.domProps||{},r.domProps.id=n.id),t(n.tag,r,i)}})}var a=n("d9f7");t["a"]=i("container").extend({name:"v-container",functional:!0,props:{id:String,tag:{type:String,default:"div"},fluid:{type:Boolean,default:!1}},render(e,{props:t,data:n,children:r}){let i;const{attrs:s}=n;return s&&(n.attrs={},i=Object.keys(s).filter(e=>{if("slot"===e)return!1;const t=s[e];return e.startsWith("data-")?(n.attrs[e]=t,!1):t||"string"===typeof t})),t.id&&(n.domProps=n.domProps||{},n.domProps.id=t.id),e(t.tag,Object(a["a"])(n,{staticClass:"container",class:Array({"container--fluid":t.fluid}).concat(i||[])}),r)}})},a640:function(e,t,n){"use strict";var r=n("d039");e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){return 1},1)}))}},ab36:function(e,t,n){var r=n("861d"),i=n("9112");e.exports=function(e,t){r(t)&&"cause"in t&&i(e,"cause",t.cause)}},adda:function(e,t,n){"use strict";n("14d9"),n("8efc");function r(e,t,n){if("undefined"===typeof window||!("IntersectionObserver"in window))return;const r=t.modifiers||{},a=t.value,{handler:s,options:o}="object"===typeof a?a:{handler:a,options:{}},A=new IntersectionObserver((a=[],o)=>{var A;const l=null===(A=e._observe)||void 0===A?void 0:A[n.context._uid];if(!l)return;const c=a.some(e=>e.isIntersecting);!s||r.quiet&&!l.init||r.once&&!c&&!l.init||s(a,o,c),c&&r.once?i(e,t,n):l.init=!0},o);e._observe=Object(e._observe),e._observe[n.context._uid]={init:!1,observer:A},A.observe(e)}function i(e,t,n){var r;const i=null===(r=e._observe)||void 0===r?void 0:r[n.context._uid];i&&(i.observer.unobserve(e),delete e._observe[n.context._uid])}const a={inserted:r,unbind:i};var s=a,o=(n("36a7"),n("80d2")),A=n("2b0e"),l=A["a"].extend({name:"measurable",props:{height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},computed:{measurableStyles(){const e={},t=Object(o["d"])(this.height),n=Object(o["d"])(this.minHeight),r=Object(o["d"])(this.minWidth),i=Object(o["d"])(this.maxHeight),a=Object(o["d"])(this.maxWidth),s=Object(o["d"])(this.width);return t&&(e.height=t),n&&(e.minHeight=n),r&&(e.minWidth=r),i&&(e.maxHeight=i),a&&(e.maxWidth=a),s&&(e.width=s),e}}});function c(...e){return A["a"].extend({mixins:e})}var u=c(l).extend({name:"v-responsive",props:{aspectRatio:[String,Number],contentClass:String},computed:{computedAspectRatio(){return Number(this.aspectRatio)},aspectStyle(){return this.computedAspectRatio?{paddingBottom:1/this.computedAspectRatio*100+"%"}:void 0},__cachedSizer(){return this.aspectStyle?this.$createElement("div",{style:this.aspectStyle,staticClass:"v-responsive__sizer"}):[]}},methods:{genContent(){return this.$createElement("div",{staticClass:"v-responsive__content",class:this.contentClass},Object(o["g"])(this))}},render(e){return e("div",{staticClass:"v-responsive",style:this.measurableStyles,on:this.$listeners},[this.__cachedSizer,this.genContent()])}}),h=u;const f=A["a"].extend().extend({name:"themeable",provide(){return{theme:this.themeableProvide}},inject:{theme:{default:{isDark:!1}}},props:{dark:{type:Boolean,default:null},light:{type:Boolean,default:null}},data(){return{themeableProvide:{isDark:!1}}},computed:{appIsDark(){return this.$vuetify.theme.dark||!1},isDark(){return!0===this.dark||!0!==this.light&&this.theme.isDark},themeClasses(){return{"theme--dark":this.isDark,"theme--light":!this.isDark}},rootIsDark(){return!0===this.dark||!0!==this.light&&this.appIsDark},rootThemeClasses(){return{"theme--dark":this.rootIsDark,"theme--light":!this.rootIsDark}}},watch:{isDark:{handler(e,t){e!==t&&(this.themeableProvide.isDark=this.isDark)},immediate:!0}}});var d=f;var p=n("d9f7"),m=n("d9bd");const g="undefined"!==typeof window&&"IntersectionObserver"in window;t["a"]=c(h,d).extend({name:"v-img",directives:{intersect:s},props:{alt:String,contain:Boolean,eager:Boolean,gradient:String,lazySrc:String,options:{type:Object,default:()=>({root:void 0,rootMargin:void 0,threshold:void 0})},position:{type:String,default:"center center"},sizes:String,src:{type:[String,Object],default:""},srcset:String,transition:{type:[Boolean,String],default:"fade-transition"}},data(){return{currentSrc:"",image:null,isLoading:!0,calculatedAspectRatio:void 0,naturalWidth:void 0,hasError:!1}},computed:{computedAspectRatio(){return Number(this.normalisedSrc.aspect||this.calculatedAspectRatio)},normalisedSrc(){return this.src&&"object"===typeof this.src?{src:this.src.src,srcset:this.srcset||this.src.srcset,lazySrc:this.lazySrc||this.src.lazySrc,aspect:Number(this.aspectRatio||this.src.aspect)}:{src:this.src,srcset:this.srcset,lazySrc:this.lazySrc,aspect:Number(this.aspectRatio||0)}},__cachedImage(){if(!(this.normalisedSrc.src||this.normalisedSrc.lazySrc||this.gradient))return[];const e=[],t=this.isLoading?this.normalisedSrc.lazySrc:this.currentSrc;this.gradient&&e.push(`linear-gradient(${this.gradient})`),t&&e.push(`url("${t}")`);const n=this.$createElement("div",{staticClass:"v-image__image",class:{"v-image__image--preload":this.isLoading,"v-image__image--contain":this.contain,"v-image__image--cover":!this.contain},style:{backgroundImage:e.join(", "),backgroundPosition:this.position},key:+this.isLoading});return this.transition?this.$createElement("transition",{attrs:{name:this.transition,mode:"in-out"}},[n]):n}},watch:{src(){this.isLoading?this.loadImage():this.init(void 0,void 0,!0)},"$vuetify.breakpoint.width":"getSrc"},mounted(){this.init()},methods:{init(e,t,n){if(!g||n||this.eager){if(this.normalisedSrc.lazySrc){const e=new Image;e.src=this.normalisedSrc.lazySrc,this.pollForSize(e,null)}this.normalisedSrc.src&&this.loadImage()}},onLoad(){this.getSrc(),this.isLoading=!1,this.$emit("load",this.src),this.image&&(this.normalisedSrc.src.endsWith(".svg")||this.normalisedSrc.src.startsWith("data:image/svg+xml"))&&(this.image.naturalHeight&&this.image.naturalWidth?(this.naturalWidth=this.image.naturalWidth,this.calculatedAspectRatio=this.image.naturalWidth/this.image.naturalHeight):this.calculatedAspectRatio=1)},onError(){this.hasError=!0,this.$emit("error",this.src)},getSrc(){this.image&&(this.currentSrc=this.image.currentSrc||this.image.src)},loadImage(){const e=new Image;this.image=e,e.onload=()=>{e.decode?e.decode().catch(e=>{Object(m["b"])("Failed to decode image, trying to render anyway\n\nsrc: "+this.normalisedSrc.src+(e.message?"\nOriginal error: "+e.message:""),this)}).then(this.onLoad):this.onLoad()},e.onerror=this.onError,this.hasError=!1,this.sizes&&(e.sizes=this.sizes),this.normalisedSrc.srcset&&(e.srcset=this.normalisedSrc.srcset),e.src=this.normalisedSrc.src,this.$emit("loadstart",this.normalisedSrc.src),this.aspectRatio||this.pollForSize(e),this.getSrc()},pollForSize(e,t=100){const n=()=>{const{naturalHeight:r,naturalWidth:i}=e;r||i?(this.naturalWidth=i,this.calculatedAspectRatio=i/r):e.complete||!this.isLoading||this.hasError||null==t||setTimeout(n,t)};n()},genContent(){const e=h.options.methods.genContent.call(this);return this.naturalWidth&&this._b(e.data,"div",{style:{width:this.naturalWidth+"px"}}),e},__genPlaceholder(){const e=Object(o["g"])(this,"placeholder");if(e){const t=this.isLoading?[this.$createElement("div",{staticClass:"v-image__placeholder"},e)]:[];return this.transition?this.$createElement("transition",{props:{appear:!0,name:this.transition}},t):t[0]}}},render(e){const t=h.options.render.call(this,e),n=Object(p["a"])(t.data,{staticClass:"v-image",attrs:{"aria-label":this.alt,role:this.alt?"img":void 0},class:this.themeClasses,directives:g?[{name:"intersect",modifiers:{once:!0},value:{handler:this.init,options:this.options}}]:void 0});return t.children=[this.__cachedSizer,this.__cachedImage,this.__genPlaceholder(),this.genContent()],e(t.tag,n,t.children)}})},aeb0:function(e,t,n){var r=n("9bf2").f;e.exports=function(e,t,n){n in e||r(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})}},aed9:function(e,t,n){var r=n("83ab"),i=n("d039");e.exports=r&&i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},b42e:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var t=+e;return(t>0?r:n)(t)}},b622:function(e,t,n){var r=n("da84"),i=n("5692"),a=n("1a2d"),s=n("90e3"),o=n("04f8"),A=n("fdbf"),l=i("wks"),c=r.Symbol,u=c&&c["for"],h=A?c:c&&c.withoutSetter||s;e.exports=function(e){if(!a(l,e)||!o&&"string"!=typeof l[e]){var t="Symbol."+e;o&&a(c,e)?l[e]=c[e]:l[e]=A&&u?u(t):h(t)}return l[e]}},b980:function(e,t,n){var r=n("d039"),i=n("5c6c");e.exports=!r((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",i(1,7)),7!==e.stack)}))},c04e:function(e,t,n){var r=n("c65b"),i=n("861d"),a=n("d9b5"),s=n("dc4a"),o=n("485a"),A=n("b622"),l=TypeError,c=A("toPrimitive");e.exports=function(e,t){if(!i(e)||a(e))return e;var n,A=s(e,c);if(A){if(void 0===t&&(t="default"),n=r(A,e,t),!i(n)||a(n))return n;throw l("Can't convert object to primitive value")}return void 0===t&&(t="number"),o(e,t)}},c430:function(e,t){e.exports=!1},c65b:function(e,t,n){var r=n("40d5"),i=Function.prototype.call;e.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},c6b6:function(e,t,n){var r=n("e330"),i=r({}.toString),a=r("".slice);e.exports=function(e){return a(i(e),8,-1)}},c6cd:function(e,t,n){var r=n("da84"),i=n("6374"),a="__core-js_shared__",s=r[a]||i(a,{});e.exports=s},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},ca84:function(e,t,n){var r=n("e330"),i=n("1a2d"),a=n("fc6a"),s=n("4d64").indexOf,o=n("d012"),A=r([].push);e.exports=function(e,t){var n,r=a(e),l=0,c=[];for(n in r)!i(o,n)&&i(r,n)&&A(c,n);while(t.length>l)i(r,n=t[l++])&&(~s(c,n)||A(c,n));return c}},cb2d:function(e,t,n){var r=n("1626"),i=n("9bf2"),a=n("13d2"),s=n("6374");e.exports=function(e,t,n,o){o||(o={});var A=o.enumerable,l=void 0!==o.name?o.name:t;if(r(n)&&a(n,l,o),o.global)A?e[t]=n:s(t,n);else{try{o.unsafe?e[t]&&(A=!0):delete e[t]}catch(c){}A?e[t]=n:i.f(e,t,{value:n,enumerable:!1,configurable:!o.nonConfigurable,writable:!o.nonWritable})}return e}},cc12:function(e,t,n){var r=n("da84"),i=n("861d"),a=r.document,s=i(a)&&i(a.createElement);e.exports=function(e){return s?a.createElement(e):{}}},cdce:function(e,t,n){var r=n("da84"),i=n("1626"),a=r.WeakMap;e.exports=i(a)&&/native code/.test(String(a))},d012:function(e,t){e.exports={}},d039:function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},d066:function(e,t,n){var r=n("da84"),i=n("1626"),a=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?a(r[e]):r[e]&&r[e][t]}},d1e7:function(e,t,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,a=i&&!r.call({1:2},1);t.f=a?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},d2bb:function(e,t,n){var r=n("e330"),i=n("825a"),a=n("3bbe");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{e=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),e(n,[]),t=n instanceof Array}catch(s){}return function(n,r){return i(n),a(r),t?e(n,r):n.__proto__=r,n}}():void 0)},d58f:function(e,t,n){var r=n("59ed"),i=n("7b0b"),a=n("44ad"),s=n("07fa"),o=TypeError,A=function(e){return function(t,n,A,l){r(n);var c=i(t),u=a(c),h=s(c),f=e?h-1:0,d=e?-1:1;if(A<2)while(1){if(f in u){l=u[f],f+=d;break}if(f+=d,e?f<0:h<=f)throw o("Reduce of empty array with no initial value")}for(;e?f>=0:h>f;f+=d)f in u&&(l=n(l,u[f],f,c));return l}};e.exports={left:A(!1),right:A(!0)}},d9b5:function(e,t,n){var r=n("d066"),i=n("1626"),a=n("3a9b"),s=n("fdbf"),o=Object;e.exports=s?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return i(t)&&a(t.prototype,o(e))}},d9bd:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return s}));n("14d9");var r=n("f309");function i(e,t,n){if(!r["a"].config.silent){if(n&&(t={_isVue:!0,$parent:n,$options:t}),t){if(t.$_alreadyWarned=t.$_alreadyWarned||[],t.$_alreadyWarned.includes(e))return;t.$_alreadyWarned.push(e)}return"[Vuetify] "+e+(t?c(t):"")}}function a(e,t,n){const r=i(e,t,n);null!=r&&console.warn(r)}function s(e,t,n){const r=i(e,t,n);null!=r&&console.error(r)}const o=/(?:^|[-_])(\w)/g,A=e=>e.replace(o,e=>e.toUpperCase()).replace(/[-_]/g,"");function l(e,t){if(e.$root===e)return"";const n="function"===typeof e&&null!=e.cid?e.options:e._isVue?e.$options||e.constructor.options:e||{};let r=n.name||n._componentTag;const i=n.__file;if(!r&&i){const e=i.match(/([^/\\]+)\.vue$/);r=e&&e[1]}return(r?`<${A(r)}>`:"")+(i&&!1!==t?" at "+i:"")}function c(e){if(e._isVue&&e.$parent){const t=[];let n=0;while(e){if(t.length>0){const r=t[t.length-1];if(r.constructor===e.constructor){n++,e=e.$parent;continue}n>0&&(t[t.length-1]=[r,n],n=0)}t.push(e),e=e.$parent}return"\n\nfound in\n\n"+t.map((e,t)=>`${0===t?"---\x3e ":" ".repeat(5+2*t)}${Array.isArray(e)?`${l(e[0])}... (${e[1]} recursive calls)`:l(e)}`).join("\n")}return`\n\n(found in ${l(e)})`}},d9e2:function(e,t,n){var r=n("23e7"),i=n("da84"),a=n("2ba4"),s=n("e5cb"),o="WebAssembly",A=i[o],l=7!==Error("e",{cause:7}).cause,c=function(e,t){var n={};n[e]=s(e,t,l),r({global:!0,constructor:!0,arity:1,forced:l},n)},u=function(e,t){if(A&&A[e]){var n={};n[e]=s(o+"."+e,t,l),r({target:o,stat:!0,constructor:!0,arity:1,forced:l},n)}};c("Error",(function(e){return function(t){return a(e,this,arguments)}})),c("EvalError",(function(e){return function(t){return a(e,this,arguments)}})),c("RangeError",(function(e){return function(t){return a(e,this,arguments)}})),c("ReferenceError",(function(e){return function(t){return a(e,this,arguments)}})),c("SyntaxError",(function(e){return function(t){return a(e,this,arguments)}})),c("TypeError",(function(e){return function(t){return a(e,this,arguments)}})),c("URIError",(function(e){return function(t){return a(e,this,arguments)}})),u("CompileError",(function(e){return function(t){return a(e,this,arguments)}})),u("LinkError",(function(e){return function(t){return a(e,this,arguments)}})),u("RuntimeError",(function(e){return function(t){return a(e,this,arguments)}}))},d9f7:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("80d2");const i={styleList:/;(?![^(]*\))/g,styleProp:/:(.*)/};function a(e){const t={};for(const n of e.split(i.styleList)){let[e,a]=n.split(i.styleProp);e=e.trim(),e&&("string"===typeof a&&(a=a.trim()),t[Object(r["a"])(e)]=a)}return t}function s(){const e={};let t,n=arguments.length;while(n--)for(t of Object.keys(arguments[n]))switch(t){case"class":case"directives":arguments[n][t]&&(e[t]=A(e[t],arguments[n][t]));break;case"style":arguments[n][t]&&(e[t]=o(e[t],arguments[n][t]));break;case"staticClass":if(!arguments[n][t])break;void 0===e[t]&&(e[t]=""),e[t]&&(e[t]+=" "),e[t]+=arguments[n][t].trim();break;case"on":case"nativeOn":arguments[n][t]&&(e[t]=l(e[t],arguments[n][t]));break;case"attrs":case"props":case"domProps":case"scopedSlots":case"staticStyle":case"hook":case"transition":if(!arguments[n][t])break;e[t]||(e[t]={}),e[t]={...arguments[n][t],...e[t]};break;default:e[t]||(e[t]=arguments[n][t])}return e}function o(e,t){return e?t?(e=Object(r["l"])("string"===typeof e?a(e):e),e.concat("string"===typeof t?a(t):t)):e:t}function A(e,t){return t?e&&e?Object(r["l"])(e).concat(t):t:e}function l(...e){if(!e[0])return e[1];if(!e[1])return e[0];const t={};for(let n=2;n--;){const r=e[n];for(const e in r)r[e]&&(t[e]?t[e]=[].concat(r[e],t[e]):t[e]=r[e])}return t}},da84:function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||function(){return this}()||Function("return this")()}).call(this,n("c8ba"))},dc4a:function(e,t,n){var r=n("59ed"),i=n("7234");e.exports=function(e,t){var n=e[t];return i(n)?void 0:r(n)}},e163:function(e,t,n){var r=n("1a2d"),i=n("1626"),a=n("7b0b"),s=n("f772"),o=n("e177"),A=s("IE_PROTO"),l=Object,c=l.prototype;e.exports=o?l.getPrototypeOf:function(e){var t=a(e);if(r(t,A))return t[A];var n=t.constructor;return i(n)&&t instanceof n?n.prototype:t instanceof l?c:null}},e177:function(e,t,n){var r=n("d039");e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},e330:function(e,t,n){var r=n("40d5"),i=Function.prototype,a=i.call,s=r&&i.bind.bind(a,a);e.exports=r?s:function(e){return function(){return a.apply(e,arguments)}}},e391:function(e,t,n){var r=n("577e");e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:r(e)}},e5cb:function(e,t,n){"use strict";var r=n("d066"),i=n("1a2d"),a=n("9112"),s=n("3a9b"),o=n("d2bb"),A=n("e893"),l=n("aeb0"),c=n("7156"),u=n("e391"),h=n("ab36"),f=n("0d26"),d=n("b980"),p=n("83ab"),m=n("c430");e.exports=function(e,t,n,g){var v="stackTraceLimit",y=g?2:1,x=e.split("."),b=x[x.length-1],w=r.apply(null,x);if(w){var _=w.prototype;if(!m&&i(_,"cause")&&delete _.cause,!n)return w;var M=r("Error"),S=t((function(e,t){var n=u(g?t:e,void 0),r=g?new w(e):new w;return void 0!==n&&a(r,"message",n),d&&a(r,"stack",f(r.stack,2)),this&&s(_,this)&&c(r,this,S),arguments.length>y&&h(r,arguments[y]),r}));if(S.prototype=_,"Error"!==b?o?o(S,M):A(S,M,{name:!0}):p&&v in w&&(l(S,w,v),l(S,w,"prepareStackTrace")),A(S,w),!m)try{_.name!==b&&a(_,"name",b),_.constructor=S}catch(E){}return S}}},e893:function(e,t,n){var r=n("1a2d"),i=n("56ef"),a=n("06cf"),s=n("9bf2");e.exports=function(e,t,n){for(var o=i(t),A=s.f,l=a.f,c=0;c>=1;var s=function(){this.perlin_octaves=4,this.perlin_amp_falloff=.5,this.perlin=null};return s.prototype={noiseSeed:function(e){var t=function(){var e,t,n=4294967296;return{setSeed:function(r){t=e=(null==r?Math.random()*n:r)>>>0},getSeed:function(){return e},rand:function(){return(t=(1664525*t+1013904223)%n)/n}}}();t.setSeed(e),this.perlin=new Array(4096);for(var n=0;n<4096;n++)this.perlin[n]=t.rand();return this},get:function(t,r,i){if(r=r||0,i=i||0,null==this.perlin){this.perlin=new Array(4096);for(var s=0;s<4096;s++)this.perlin[s]=Math.random()}t<0&&(t=-t),r<0&&(r=-r),i<0&&(i=-i);for(var o,A,l,c,u,h=Math.floor(t),f=Math.floor(r),d=Math.floor(i),p=t-h,m=r-f,g=i-d,v=0,y=.5,x=function(t){return.5*(1-n[Math.floor(t*a)%e])},b=0;b=1&&(h++,p--),(m*=2)>=1&&(f++,m--),(g*=2)>=1&&(d++,g--)}return v}},s}();e.exports=n},f309:function(e,t,n){"use strict";n.d(t,"a",(function(){return be}));var r={};n.r(r),n.d(r,"linear",(function(){return d})),n.d(r,"easeInQuad",(function(){return p})),n.d(r,"easeOutQuad",(function(){return m})),n.d(r,"easeInOutQuad",(function(){return g})),n.d(r,"easeInCubic",(function(){return v})),n.d(r,"easeOutCubic",(function(){return y})),n.d(r,"easeInOutCubic",(function(){return x})),n.d(r,"easeInQuart",(function(){return b})),n.d(r,"easeOutQuart",(function(){return w})),n.d(r,"easeInOutQuart",(function(){return _})),n.d(r,"easeInQuint",(function(){return M})),n.d(r,"easeOutQuint",(function(){return S})),n.d(r,"easeInOutQuint",(function(){return E}));n("14d9");var i=n("2b0e"),a=n("d9bd");function s(e,t={}){if(s.installed)return;s.installed=!0,i["a"]!==e&&Object(a["a"])("Multiple instances of Vue detected\nSee https://github.com/vuetifyjs/vuetify/issues/4068\n\nIf you're seeing \"$attrs is readonly\", it's caused by this");const n=t.components||{},r=t.directives||{};for(const i in r){const t=r[i];e.directive(i,t)}(function t(n){if(n){for(const r in n){const i=n[r];i&&!t(i.$_vuetify_subcomponents)&&e.component(r,i)}return!0}return!1})(n),e.$_vuetify_installed||(e.$_vuetify_installed=!0,e.mixin({beforeCreate(){const t=this.$options;t.vuetify?(t.vuetify.init(this,this.$ssrContext),this.$vuetify=e.observable(t.vuetify.framework)):this.$vuetify=t.parent&&t.parent.$vuetify||this},beforeMount(){this.$options.vuetify&&this.$el&&this.$el.hasAttribute("data-server-rendered")&&(this.$vuetify.isHydrating=!0,this.$vuetify.breakpoint.update(!0))},mounted(){this.$options.vuetify&&this.$vuetify.isHydrating&&(this.$vuetify.isHydrating=!1,this.$vuetify.breakpoint.update())}}))}n("95ed");var o={badge:"Badge",close:"Close",dataIterator:{noResultsText:"No matching records found",loadingText:"Loading items..."},dataTable:{itemsPerPageText:"Rows per page:",ariaLabel:{sortDescending:"Sorted descending.",sortAscending:"Sorted ascending.",sortNone:"Not sorted.",activateNone:"Activate to remove sorting.",activateDescending:"Activate to sort descending.",activateAscending:"Activate to sort ascending."},sortBy:"Sort by"},dataFooter:{itemsPerPageText:"Items per page:",itemsPerPageAll:"All",nextPage:"Next page",prevPage:"Previous page",firstPage:"First page",lastPage:"Last page",pageText:"{0}-{1} of {2}"},datePicker:{itemsSelected:"{0} selected",nextMonthAriaLabel:"Next month",nextYearAriaLabel:"Next year",prevMonthAriaLabel:"Previous month",prevYearAriaLabel:"Previous year"},noDataText:"No data available",carousel:{prev:"Previous visual",next:"Next visual",ariaLabel:{delimiter:"Carousel slide {0} of {1}"}},calendar:{moreEvents:"{0} more"},fileInput:{counter:"{0} files",counterSize:"{0} files ({1} in total)"},timePicker:{am:"AM",pm:"PM"},pagination:{ariaLabel:{wrapper:"Pagination Navigation",next:"Next page",previous:"Previous page",page:"Goto Page {0}",currentPage:"Current Page, Page {0}"}},rating:{ariaLabel:{icon:"Rating {0} of {1}"}}};const A={breakpoint:{mobileBreakpoint:1264,scrollBarWidth:16,thresholds:{xs:600,sm:960,md:1280,lg:1920}},icons:{iconfont:"mdi",values:{}},lang:{current:"en",locales:{en:o},t:void 0},rtl:!1,theme:{dark:!1,default:"light",disable:!1,options:{cspNonce:void 0,customProperties:void 0,minifyTheme:void 0,themeCache:void 0,variations:!0},themes:{light:{primary:"#1976D2",secondary:"#424242",accent:"#82B1FF",error:"#FF5252",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},dark:{primary:"#2196F3",secondary:"#424242",accent:"#FF4081",error:"#FF5252",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"}}}};var l=n("80d2");class c{constructor(){this.framework={}}init(e,t){}}class u extends c{constructor(e,t){super();const n=Object(l["i"])({},A),{userPreset:r}=t,{preset:i={},...s}=r;null!=i.preset&&Object(a["b"])("Global presets do not support the **preset** option, it can be safely omitted"),t.preset=Object(l["i"])(Object(l["i"])(n,i),s)}}u.property="presets";n("13d5");class h extends c{constructor(){super(...arguments),this.bar=0,this.top=0,this.left=0,this.insetFooter=0,this.right=0,this.bottom=0,this.footer=0,this.application={bar:{},top:{},left:{},insetFooter:{},right:{},bottom:{},footer:{}}}register(e,t,n){this.application[t][e]=n,this.update(t)}unregister(e,t){null!=this.application[t][e]&&(delete this.application[t][e],this.update(t))}update(e){this[e]=Object.values(this.application[e]).reduce((e,t)=>e+t,0)}}h.property="application";class f extends c{constructor(e){super(),this.xs=!1,this.sm=!1,this.md=!1,this.lg=!1,this.xl=!1,this.xsOnly=!1,this.smOnly=!1,this.smAndDown=!1,this.smAndUp=!1,this.mdOnly=!1,this.mdAndDown=!1,this.mdAndUp=!1,this.lgOnly=!1,this.lgAndDown=!1,this.lgAndUp=!1,this.xlOnly=!1,this.name="xs",this.height=0,this.width=0,this.mobile=!0,this.resizeTimeout=0;const{mobileBreakpoint:t,scrollBarWidth:n,thresholds:r}=e[f.property];this.mobileBreakpoint=t,this.scrollBarWidth=n,this.thresholds=r}init(){this.update(),"undefined"!==typeof window&&window.addEventListener("resize",this.onResize.bind(this),{passive:!0})}update(e=!1){const t=e?0:this.getClientHeight(),n=e?0:this.getClientWidth(),r=n=this.thresholds.lg-this.scrollBarWidth;switch(this.height=t,this.width=n,this.xs=r,this.sm=i,this.md=a,this.lg=s,this.xl=o,this.xsOnly=r,this.smOnly=i,this.smAndDown=(r||i)&&!(a||s||o),this.smAndUp=!r&&(i||a||s||o),this.mdOnly=a,this.mdAndDown=(r||i||a)&&!(s||o),this.mdAndUp=!(r||i)&&(a||s||o),this.lgOnly=s,this.lgAndDown=(r||i||a||s)&&!o,this.lgAndUp=!(r||i||a)&&(s||o),this.xlOnly=o,!0){case r:this.name="xs";break;case i:this.name="sm";break;case a:this.name="md";break;case s:this.name="lg";break;default:this.name="xl";break}if("number"===typeof this.mobileBreakpoint)return void(this.mobile=ne,p=e=>e**2,m=e=>e*(2-e),g=e=>e<.5?2*e**2:(4-2*e)*e-1,v=e=>e**3,y=e=>--e**3+1,x=e=>e<.5?4*e**3:(e-1)*(2*e-2)*(2*e-2)+1,b=e=>e**4,w=e=>1- --e**4,_=e=>e<.5?8*e*e*e*e:1-8*--e*e*e*e,M=e=>e**5,S=e=>1+--e**5,E=e=>e<.5?16*e**5:1+16*--e**5;function C(e){if("number"===typeof e)return e;let t=B(e);if(!t)throw"string"===typeof e?new Error(`Target element "${e}" not found.`):new TypeError(`Target must be a Number/Selector/HTMLElement/VueComponent, received ${D(e)} instead.`);let n=0;while(t)n+=t.offsetTop,t=t.offsetParent;return n}function T(e){const t=B(e);if(t)return t;throw"string"===typeof e?new Error(`Container element "${e}" not found.`):new TypeError(`Container must be a Selector/HTMLElement/VueComponent, received ${D(e)} instead.`)}function D(e){return null==e?e:e.constructor.name}function B(e){return"string"===typeof e?document.querySelector(e):e&&e._isVue?e.$el:e instanceof HTMLElement?e:null}function L(e,t={}){const n={container:document.scrollingElement||document.body||document.documentElement,duration:500,offset:0,easing:"easeInOutCubic",appOffset:!0,...t},i=T(n.container);if(n.appOffset&&L.framework.application){const e=i.classList.contains("v-navigation-drawer"),t=i.classList.contains("v-navigation-drawer--clipped"),{bar:r,top:a}=L.framework.application;n.offset+=r,e&&!t||(n.offset+=a)}const a=performance.now();let s;s="number"===typeof e?C(e)-n.offset:C(e)-C(i)-n.offset;const o=i.scrollTop;if(s===o)return Promise.resolve(s);const A="function"===typeof n.easing?n.easing:r[n.easing];if(!A)throw new TypeError(`Easing function "${n.easing}" not found.`);return new Promise(e=>requestAnimationFrame((function t(r){const l=r-a,c=Math.abs(n.duration?Math.min(l/n.duration,1):1);i.scrollTop=Math.floor(o+(s-o)*A(c));const u=i===document.body?document.documentElement.clientHeight:i.clientHeight,h=u+i.scrollTop>=i.scrollHeight;if(1===c||s>i.scrollTop&&h)return e(s);requestAnimationFrame(t)})))}L.framework={},L.init=()=>{};class I extends c{constructor(){return super(),L}}I.property="goTo";const P={complete:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z",cancel:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z",close:"M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z",delete:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z",clear:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z",success:"M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41 10.59L10 14.17L17.59 6.58L19 8L10 17Z",info:"M13,9H11V7H13M13,17H11V11H13M12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2ZM13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",warning:"M13,13H11V7H13M13,17H11V15H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",error:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z",prev:"M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z",next:"M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z",checkboxOn:"M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M19,3H5C3.89,3 3,3.89 3,5V19C3,20.1 3.9,21 5,21H19C20.1,21 21,20.1 21,19V5C21,3.89 20.1,3 19,3Z",checkboxOff:"M19,3H5C3.89,3 3,3.89 3,5V19C3,20.1 3.9,21 5,21H19C20.1,21 21,20.1 21,19V5C21,3.89 20.1,3 19,3M19,5V19H5V5H19Z",checkboxIndeterminate:"M17,13H7V11H17M19,3H5C3.89,3 3,3.89 3,5V19C3,20.1 3.9,21 5,21H19C20.1,21 21,20.1 21,19V5C21,3.89 20.1,3 19,3Z",delimiter:"M12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2Z",sort:"M13,20H11V8L5.5,13.5L4.08,12.08L12,4.16L19.92,12.08L18.5,13.5L13,8V20Z",expand:"M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z",menu:"M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z",subgroup:"M7,10L12,15L17,10H7Z",dropdown:"M7,10L12,15L17,10H7Z",radioOn:"M12,20C7.58,20 4,16.42 4,12C4,7.58 7.58,4 12,4C16.42,4 20,7.58 20,12C20,16.42 16.42,20 12,20M12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2M12,7C9.24,7 7,9.24 7,12C7,14.76 9.24,17 12,17C14.76,17 17,14.76 17,12C17,9.24 14.76,7 12,7Z",radioOff:"M12,20C7.58,20 4,16.42 4,12C4,7.58 7.58,4 12,4C16.42,4 20,7.58 20,12C20,16.42 16.42,20 12,20M12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2Z",edit:"M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z",ratingEmpty:"M12,15.39L8.24,17.66L9.23,13.38L5.91,10.5L10.29,10.13L12,6.09L13.71,10.13L18.09,10.5L14.77,13.38L15.76,17.66M22,9.24L14.81,8.63L12,2L9.19,8.63L2,9.24L7.45,13.97L5.82,21L12,17.27L18.18,21L16.54,13.97L22,9.24Z",ratingFull:"M12,17.27L18.18,21L16.54,13.97L22,9.24L14.81,8.62L12,2L9.19,8.62L2,9.24L7.45,13.97L5.82,21L12,17.27Z",ratingHalf:"M12,15.4V6.1L13.71,10.13L18.09,10.5L14.77,13.39L15.76,17.67M22,9.24L14.81,8.63L12,2L9.19,8.63L2,9.24L7.45,13.97L5.82,21L12,17.27L18.18,21L16.54,13.97L22,9.24Z",loading:"M19,8L15,12H18C18,15.31 15.31,18 12,18C11,18 10.03,17.75 9.2,17.3L7.74,18.76C8.97,19.54 10.43,20 12,20C16.42,20 20,16.42 20,12H23M6,12C6,8.69 8.69,6 12,6C13,6 13.97,6.25 14.8,6.7L16.26,5.24C15.03,4.46 13.57,4 12,4C7.58,4 4,7.58 4,12H1L5,16L9,12",first:"M18.41,16.59L13.82,12L18.41,7.41L17,6L11,12L17,18L18.41,16.59M6,6H8V18H6V6Z",last:"M5.59,7.41L10.18,12L5.59,16.59L7,18L13,12L7,6L5.59,7.41M16,6H18V18H16V6Z",unfold:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z",file:"M16.5,6V17.5C16.5,19.71 14.71,21.5 12.5,21.5C10.29,21.5 8.5,19.71 8.5,17.5V5C8.5,3.62 9.62,2.5 11,2.5C12.38,2.5 13.5,3.62 13.5,5V15.5C13.5,16.05 13.05,16.5 12.5,16.5C11.95,16.5 11.5,16.05 11.5,15.5V6H10V15.5C10,16.88 11.12,18 12.5,18C13.88,18 15,16.88 15,15.5V5C15,2.79 13.21,1 11,1C8.79,1 7,2.79 7,5V17.5C7,20.54 9.46,23 12.5,23C15.54,23 18,20.54 18,17.5V6H16.5Z",plus:"M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z",minus:"M19,13H5V11H19V13Z"};var R=P;const k={complete:"check",cancel:"cancel",close:"close",delete:"cancel",clear:"clear",success:"check_circle",info:"info",warning:"priority_high",error:"warning",prev:"chevron_left",next:"chevron_right",checkboxOn:"check_box",checkboxOff:"check_box_outline_blank",checkboxIndeterminate:"indeterminate_check_box",delimiter:"fiber_manual_record",sort:"arrow_upward",expand:"keyboard_arrow_down",menu:"menu",subgroup:"arrow_drop_down",dropdown:"arrow_drop_down",radioOn:"radio_button_checked",radioOff:"radio_button_unchecked",edit:"edit",ratingEmpty:"star_border",ratingFull:"star",ratingHalf:"star_half",loading:"cached",first:"first_page",last:"last_page",unfold:"unfold_more",file:"attach_file",plus:"add",minus:"remove"};var O=k;const U={complete:"mdi-check",cancel:"mdi-close-circle",close:"mdi-close",delete:"mdi-close-circle",clear:"mdi-close",success:"mdi-check-circle",info:"mdi-information",warning:"mdi-exclamation",error:"mdi-alert",prev:"mdi-chevron-left",next:"mdi-chevron-right",checkboxOn:"mdi-checkbox-marked",checkboxOff:"mdi-checkbox-blank-outline",checkboxIndeterminate:"mdi-minus-box",delimiter:"mdi-circle",sort:"mdi-arrow-up",expand:"mdi-chevron-down",menu:"mdi-menu",subgroup:"mdi-menu-down",dropdown:"mdi-menu-down",radioOn:"mdi-radiobox-marked",radioOff:"mdi-radiobox-blank",edit:"mdi-pencil",ratingEmpty:"mdi-star-outline",ratingFull:"mdi-star",ratingHalf:"mdi-star-half-full",loading:"mdi-cached",first:"mdi-page-first",last:"mdi-page-last",unfold:"mdi-unfold-more-horizontal",file:"mdi-paperclip",plus:"mdi-plus",minus:"mdi-minus"};var F=U;const N={complete:"fas fa-check",cancel:"fas fa-times-circle",close:"fas fa-times",delete:"fas fa-times-circle",clear:"fas fa-times-circle",success:"fas fa-check-circle",info:"fas fa-info-circle",warning:"fas fa-exclamation",error:"fas fa-exclamation-triangle",prev:"fas fa-chevron-left",next:"fas fa-chevron-right",checkboxOn:"fas fa-check-square",checkboxOff:"far fa-square",checkboxIndeterminate:"fas fa-minus-square",delimiter:"fas fa-circle",sort:"fas fa-sort-up",expand:"fas fa-chevron-down",menu:"fas fa-bars",subgroup:"fas fa-caret-down",dropdown:"fas fa-caret-down",radioOn:"far fa-dot-circle",radioOff:"far fa-circle",edit:"fas fa-edit",ratingEmpty:"far fa-star",ratingFull:"fas fa-star",ratingHalf:"fas fa-star-half",loading:"fas fa-sync",first:"fas fa-step-backward",last:"fas fa-step-forward",unfold:"fas fa-arrows-alt-v",file:"fas fa-paperclip",plus:"fas fa-plus",minus:"fas fa-minus"};var z=N;const H={complete:"fa fa-check",cancel:"fa fa-times-circle",close:"fa fa-times",delete:"fa fa-times-circle",clear:"fa fa-times-circle",success:"fa fa-check-circle",info:"fa fa-info-circle",warning:"fa fa-exclamation",error:"fa fa-exclamation-triangle",prev:"fa fa-chevron-left",next:"fa fa-chevron-right",checkboxOn:"fa fa-check-square",checkboxOff:"fa fa-square-o",checkboxIndeterminate:"fa fa-minus-square",delimiter:"fa fa-circle",sort:"fa fa-sort-up",expand:"fa fa-chevron-down",menu:"fa fa-bars",subgroup:"fa fa-caret-down",dropdown:"fa fa-caret-down",radioOn:"fa fa-dot-circle-o",radioOff:"fa fa-circle-o",edit:"fa fa-pencil",ratingEmpty:"fa fa-star-o",ratingFull:"fa fa-star",ratingHalf:"fa fa-star-half-o",loading:"fa fa-refresh",first:"fa fa-step-backward",last:"fa fa-step-forward",unfold:"fa fa-angle-double-down",file:"fa fa-paperclip",plus:"fa fa-plus",minus:"fa fa-minus"};var G=H;function V(e,t){const n={};for(const r in t)n[r]={component:e,props:{icon:t[r].split(" fa-")}};return n}var W=V("font-awesome-icon",z),Q=Object.freeze({mdiSvg:R,md:O,mdi:F,fa:z,fa4:G,faSvg:W});class j extends c{constructor(e){super();const{iconfont:t,values:n,component:r}=e[j.property];this.component=r,this.iconfont=t,this.values=Object(l["i"])(Q[t],n)}}j.property="icons";const Y="$vuetify.",X=Symbol("Lang fallback");function q(e,t,n=!1,r){const i=t.replace(Y,"");let s=Object(l["f"])(e,i,X);return s===X&&(n?(Object(a["a"])(`Translation key "${i}" not found in fallback`),s=t):(Object(a["b"])(`Translation key "${i}" not found, falling back to default`),s=q(r,t,!0,r))),s}class Z extends c{constructor(e){super(),this.defaultLocale="en";const{current:t,locales:n,t:r}=e[Z.property];this.current=t,this.locales=n,this.translator=r||this.defaultTranslator}currentLocale(e){const t=this.locales[this.current],n=this.locales[this.defaultLocale];return q(t,e,!1,n)}t(e,...t){return e.startsWith(Y)?this.translator(e,...t):this.replace(e,t)}defaultTranslator(e,...t){return this.replace(this.currentLocale(e),t)}replace(e,t){return e.replace(/\{(\d+)\}/g,(e,n)=>String(t[+n]))}}Z.property="lang";const K=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]],J=e=>e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055,$=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],ee=e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4;function te(e){const t=Array(3),n=J,r=K;for(let i=0;i<3;++i)t[i]=Math.round(255*Object(l["c"])(n(r[i][0]*e[0]+r[i][1]*e[1]+r[i][2]*e[2])));return(t[0]<<16)+(t[1]<<8)+(t[2]<<0)}function ne(e){const t=[0,0,0],n=ee,r=$,i=n((e>>16&255)/255),a=n((e>>8&255)/255),s=n((e>>0&255)/255);for(let o=0;o<3;++o)t[o]=r[o][0]*i+r[o][1]*a+r[o][2]*s;return t}function re(e){let t;if("number"===typeof e)t=e;else{if("string"!==typeof e)throw new TypeError(`Colors can only be numbers or strings, recieved ${null==e?e:e.constructor.name} instead`);{let n="#"===e[0]?e.substring(1):e;3===n.length&&(n=n.split("").map(e=>e+e).join("")),6!==n.length&&Object(a["b"])(`'${e}' is not a valid rgb color`),t=parseInt(n,16)}}return t<0?(Object(a["b"])(`Colors cannot be negative: '${e}'`),t=0):(t>16777215||isNaN(t))&&(Object(a["b"])(`'${e}' is not a valid rgb color`),t=16777215),t}function ie(e){let t=e.toString(16);return t.length<6&&(t="0".repeat(6-t.length)+t),"#"+t}function ae(e){return ie(re(e))}const se=.20689655172413793,oe=e=>e>se**3?Math.cbrt(e):e/(3*se**2)+4/29,Ae=e=>e>se?e**3:3*se**2*(e-4/29);function le(e){const t=oe,n=t(e[1]);return[116*n-16,500*(t(e[0]/.95047)-n),200*(n-t(e[2]/1.08883))]}function ce(e){const t=Ae,n=(e[0]+16)/116;return[.95047*t(n+e[1]/500),t(n),1.08883*t(n-e[2]/200)]}function ue(e,t=!1,n=!0){const{anchor:r,...i}=e,a=Object.keys(i),s={};for(let o=0;o`\n.v-application .${e} {\n background-color: ${t} !important;\n border-color: ${t} !important;\n}\n.v-application .${e}--text {\n color: ${t} !important;\n caret-color: ${t} !important;\n}`,fe=(e,t,n)=>{const[r,i]=t.split(/(\d)/,2);return`\n.v-application .${e}.${r}-${i} {\n background-color: ${n} !important;\n border-color: ${n} !important;\n}\n.v-application .${e}--text.text--${r}-${i} {\n color: ${n} !important;\n caret-color: ${n} !important;\n}`},de=(e,t="base")=>`--v-${e}-${t}`,pe=(e,t="base")=>`var(${de(e,t)})`;function me(e,t=!1){const{anchor:n,...r}=e,i=Object.keys(r);if(!i.length)return"";let a="",s="";const o=t?pe("anchor"):n;s+=`.v-application a { color: ${o}; }`,t&&(a+=` ${de("anchor")}: ${n};\n`);for(let A=0;A0;--r)n["lighten"+r]=ie(ve(t,r));for(let r=1;r<=4;++r)n["darken"+r]=ie(ye(t,r));return n}function ve(e,t){const n=le(ne(e));return n[0]=n[0]+10*t,te(ce(n))}function ye(e,t){const n=le(ne(e));return n[0]=n[0]-10*t,te(ce(n))}class xe extends c{constructor(e){super(),this.disabled=!1,this.isDark=null,this.unwatch=null,this.vueMeta=null;const{dark:t,disable:n,options:r,themes:i}=e[xe.property];this.dark=Boolean(t),this.defaults=this.themes=i,this.options=r,n?this.disabled=!0:this.themes={dark:this.fillVariant(i.dark,!0),light:this.fillVariant(i.light,!1)}}set css(e){this.vueMeta?this.isVueMeta23&&this.applyVueMeta23():this.checkOrCreateStyleElement()&&(this.styleEl.innerHTML=e)}set dark(e){const t=this.isDark;this.isDark=e,null!=t&&this.applyTheme()}get dark(){return Boolean(this.isDark)}applyTheme(){if(this.disabled)return this.clearCss();this.css=this.generatedStyles}clearCss(){this.css=""}init(e,t){this.disabled||(e.$meta?this.initVueMeta(e):t&&this.initSSR(t),this.initTheme(e))}setTheme(e,t){this.themes[e]=Object.assign(this.themes[e],t),this.applyTheme()}resetThemes(){this.themes.light=Object.assign({},this.defaults.light),this.themes.dark=Object.assign({},this.defaults.dark),this.applyTheme()}checkOrCreateStyleElement(){return this.styleEl=document.getElementById("vuetify-theme-stylesheet"),!!this.styleEl||(this.genStyleElement(),Boolean(this.styleEl))}fillVariant(e={},t){const n=this.themes[t?"dark":"light"];return Object.assign({},n,e)}genStyleElement(){"undefined"!==typeof document&&(this.styleEl=document.createElement("style"),this.styleEl.type="text/css",this.styleEl.id="vuetify-theme-stylesheet",this.options.cspNonce&&this.styleEl.setAttribute("nonce",this.options.cspNonce),document.head.appendChild(this.styleEl))}initVueMeta(e){if(this.vueMeta=e.$meta(),this.isVueMeta23)return void e.$nextTick(()=>{this.applyVueMeta23()});const t="function"===typeof this.vueMeta.getOptions?this.vueMeta.getOptions().keyName:"metaInfo",n=e.$options[t]||{};e.$options[t]=()=>{n.style=n.style||[];const e=n.style.find(e=>"vuetify-theme-stylesheet"===e.id);return e?e.cssText=this.generatedStyles:n.style.push({cssText:this.generatedStyles,type:"text/css",id:"vuetify-theme-stylesheet",nonce:(this.options||{}).cspNonce}),n}}applyVueMeta23(){const{set:e}=this.vueMeta.addApp("vuetify");e({style:[{cssText:this.generatedStyles,type:"text/css",id:"vuetify-theme-stylesheet",nonce:this.options.cspNonce}]})}initSSR(e){const t=this.options.cspNonce?` nonce="${this.options.cspNonce}"`:"";e.head=e.head||"",e.head+=``}initTheme(e){"undefined"!==typeof document&&(this.unwatch&&(this.unwatch(),this.unwatch=null),e.$once("hook:created",()=>{const t=i["a"].observable({themes:this.themes});this.unwatch=e.$watch(()=>t.themes,()=>this.applyTheme(),{deep:!0})}),this.applyTheme())}get currentTheme(){const e=this.dark?"dark":"light";return this.themes[e]}get generatedStyles(){const e=this.parsedTheme,t=this.options||{};let n;return null!=t.themeCache&&(n=t.themeCache.get(e),null!=n)||(n=me(e,t.customProperties),null!=t.minifyTheme&&(n=t.minifyTheme(n)),null!=t.themeCache&&t.themeCache.set(e,n)),n}get parsedTheme(){return ue(this.currentTheme||{},void 0,Object(l["e"])(this.options,["variations"],!0))}get isVueMeta23(){return"function"===typeof this.vueMeta.addApp}}xe.property="theme";class be{constructor(e={}){this.framework={isHydrating:!1},this.installed=[],this.preset={},this.userPreset={},this.userPreset=e,this.use(u),this.use(h),this.use(f),this.use(I),this.use(j),this.use(Z),this.use(xe)}init(e,t){this.installed.forEach(n=>{const r=this.framework[n];r.framework=this.framework,r.init(e,t)}),this.framework.rtl=Boolean(this.preset.rtl)}use(e){const t=e.property;this.installed.includes(t)||(this.framework[t]=new e(this.preset,this),this.installed.push(t))}}be.install=s,be.installed=!1,be.version="2.6.13",be.config={silent:!1}},f5df:function(e,t,n){var r=n("00ee"),i=n("1626"),a=n("c6b6"),s=n("b622"),o=s("toStringTag"),A=Object,l="Arguments"==a(function(){return arguments}()),c=function(e,t){try{return e[t]}catch(n){}};e.exports=r?a:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=c(t=A(e),o))?n:l?a(t):"Object"==(r=a(t))&&i(t.callee)?"Arguments":r}},f75e:function(e,t,n){"use strict";n.d(t,"a",(function(){return I})),n.d(t,"d",(function(){return P})),n.d(t,"e",(function(){return R})),n.d(t,"c",(function(){return k})),n.d(t,"b",(function(){return O}));var r=function(e){e=e||{};var t,n="undefined"!==typeof e?e:{},r={};for(t in n)n.hasOwnProperty(t)&&(r[t]=n[t]);var i,a=[],s="";function o(e){return n["locateFile"]?n["locateFile"](e,s):s+e}document.currentScript&&(s=document.currentScript.src),s=0!==s.indexOf("blob:")?s.substr(0,s.lastIndexOf("/")+1):"",i=function(e,t,n){var r=new XMLHttpRequest;r.open("GET",e,!0),r.responseType="arraybuffer",r.onload=function(){if(200==r.status||0==r.status&&r.response)t(r.response);else{var i=Me(e);i?t(i.buffer):n()}},r.onerror=n,r.send(null)};var A=n["print"]||console.log.bind(console),l=n["printErr"]||console.warn.bind(console);for(t in r)r.hasOwnProperty(t)&&(n[t]=r[t]);r=null,n["arguments"]&&(a=n["arguments"]);var c=0,u=function(e){c=e},h=function(){return c},f=8;function d(e,t,n,r){switch(n=n||"i8","*"===n.charAt(n.length-1)&&(n="i32"),n){case"i1":C[e>>0]=t;break;case"i8":C[e>>0]=t;break;case"i16":D[e>>1]=t;break;case"i32":B[e>>2]=t;break;case"i64":se=[t>>>0,(ae=t,+Z(ae)>=1?ae>0?(0|$(+J(ae/4294967296),4294967295))>>>0:~~+K((ae-+(~~ae>>>0))/4294967296)>>>0:0)],B[e>>2]=se[0],B[e+4>>2]=se[1];break;case"float":L[e>>2]=t;break;case"double":I[e>>3]=t;break;default:Fe("invalid type for setValue: "+n)}}function p(e,t,n){switch(t=t||"i8","*"===t.charAt(t.length-1)&&(t="i32"),t){case"i1":return C[e>>0];case"i8":return C[e>>0];case"i16":return D[e>>1];case"i32":return B[e>>2];case"i64":return B[e>>2];case"float":return L[e>>2];case"double":return I[e>>3];default:Fe("invalid type for getValue: "+t)}return null}var m=!1;function g(e,t){e||Fe("Assertion failed: "+t)}function v(e){var t=n["_"+e];return g(t,"Cannot call unknown function "+e+", make sure it is exported"),t}function y(e,t,n,r,i){var a={string:function(e){var t=0;if(null!==e&&void 0!==e&&0!==e){var n=1+(e.length<<2);t=Be(n),S(e,t,n)}return t},array:function(e){var t=Be(e.length);return P(e,t),t}};function s(e){return"string"===t?_(e):"boolean"===t?Boolean(e):e}var o=v(e),A=[],l=0;if(r)for(var c=0;c=r))++i;if(i-t>16&&e.subarray&&b)return b.decode(e.subarray(t,i));var a="";while(t>10,56320|1023&l)}}else a+=String.fromCharCode((31&s)<<6|o)}else a+=String.fromCharCode(s)}return a}function _(e,t){return e?w(T,e,t):""}function M(e,t,n,r){if(!(r>0))return 0;for(var i=n,a=n+r-1,s=0;s=55296&&o<=57343){var A=e.charCodeAt(++s);o=65536+((1023&o)<<10)|1023&A}if(o<=127){if(n>=a)break;t[n++]=o}else if(o<=2047){if(n+1>=a)break;t[n++]=192|o>>6,t[n++]=128|63&o}else if(o<=65535){if(n+2>=a)break;t[n++]=224|o>>12,t[n++]=128|o>>6&63,t[n++]=128|63&o}else{if(n+3>=a)break;t[n++]=240|o>>18,t[n++]=128|o>>12&63,t[n++]=128|o>>6&63,t[n++]=128|63&o}}return t[n]=0,n-i}function S(e,t,n){return M(e,T,t,n)}var E,C,T,D,B,L,I;"undefined"!==typeof TextDecoder&&new TextDecoder("utf-16le");function P(e,t){C.set(e,t)}function R(e,t){return e%t>0&&(e+=t-e%t),e}function k(e){E=e,n["HEAP8"]=C=new Int8Array(e),n["HEAP16"]=D=new Int16Array(e),n["HEAP32"]=B=new Int32Array(e),n["HEAPU8"]=T=new Uint8Array(e),n["HEAPU16"]=new Uint16Array(e),n["HEAPU32"]=new Uint32Array(e),n["HEAPF32"]=L=new Float32Array(e),n["HEAPF64"]=I=new Float64Array(e)}var O=5266928,U=24016,F=n["TOTAL_MEMORY"]||33554432;function N(e){while(e.length>0){var t=e.shift();if("function"!=typeof t){var r=t.func;"number"===typeof r?void 0===t.arg?n["dynCall_v"](r):n["dynCall_vi"](r,t.arg):r(void 0===t.arg?null:t.arg)}else t()}}E=n["buffer"]?n["buffer"]:new ArrayBuffer(F),F=E.byteLength,k(E),B[U>>2]=O;var z=[],H=[],G=[],V=[];function W(){if(n["preRun"]){"function"==typeof n["preRun"]&&(n["preRun"]=[n["preRun"]]);while(n["preRun"].length)X(n["preRun"].shift())}N(z)}function Q(){N(H)}function j(){N(G)}function Y(){if(n["postRun"]){"function"==typeof n["postRun"]&&(n["postRun"]=[n["postRun"]]);while(n["postRun"].length)q(n["postRun"].shift())}N(V)}function X(e){z.unshift(e)}function q(e){V.unshift(e)}var Z=Math.abs,K=Math.ceil,J=Math.floor,$=Math.min,ee=0,te=null,ne=null;function re(e){ee++,n["monitorRunDependencies"]&&n["monitorRunDependencies"](ee)}function ie(e){if(ee--,n["monitorRunDependencies"]&&n["monitorRunDependencies"](ee),0==ee&&(null!==te&&(clearInterval(te),te=null),ne)){var t=ne;ne=null,t()}}n["preloadedImages"]={},n["preloadedAudios"]={};var ae,se,oe=null,Ae="data:application/octet-stream;base64,";function le(e){return String.prototype.startsWith?e.startsWith(Ae):0===e.indexOf(Ae)}oe="data:application/octet-stream;base64,AAAAAAAAAAACAAAAAwAAAAEAAAAFAAAABAAAAAYAAAAAAAAAAAAAAAAAAAABAAAAAgAAAAMAAAAEAAAABQAAAAYAAAABAAAABAAAAAMAAAAGAAAABQAAAAIAAAAAAAAAAgAAAAMAAAABAAAABAAAAAYAAAAAAAAABQAAAAMAAAAGAAAABAAAAAUAAAAAAAAAAQAAAAIAAAAEAAAABQAAAAYAAAAAAAAAAgAAAAMAAAABAAAABQAAAAIAAAAAAAAAAQAAAAMAAAAGAAAABAAAAAYAAAAAAAAABQAAAAIAAAABAAAABAAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAgAAAAMAAAAAAAAAAAAAAAIAAAAAAAAAAQAAAAMAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAEAAAABgAAAAAAAAAFAAAAAAAAAAAAAAAEAAAABQAAAAAAAAAAAAAAAAAAAAIAAAAAAAAABgAAAAAAAAAGAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAACAAAAAwAAAAQAAAAFAAAABgAAAAEAAAACAAAAAwAAAAQAAAAFAAAABgAAAAAAAAACAAAAAwAAAAQAAAAFAAAABgAAAAAAAAABAAAAAwAAAAQAAAAFAAAABgAAAAAAAAABAAAAAgAAAAQAAAAFAAAABgAAAAAAAAABAAAAAgAAAAMAAAAFAAAABgAAAAAAAAABAAAAAgAAAAMAAAAEAAAABgAAAAAAAAABAAAAAgAAAAMAAAAEAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAADAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAACAAAAAgAAAAAAAAAAAAAABgAAAAAAAAADAAAAAgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAUAAAAEAAAAAAAAAAEAAAAAAAAAAAAAAAUAAAAFAAAAAAAAAAAAAAAAAAAABgAAAAAAAAAEAAAAAAAAAAYAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAUAAAACAAAABAAAAAMAAAAIAAAAAQAAAAcAAAAGAAAACQAAAAAAAAADAAAAAgAAAAIAAAAGAAAACgAAAAsAAAAAAAAAAQAAAAUAAAADAAAADQAAAAEAAAAHAAAABAAAAAwAAAAAAAAABAAAAH8AAAAPAAAACAAAAAMAAAAAAAAADAAAAAUAAAACAAAAEgAAAAoAAAAIAAAAAAAAABAAAAAGAAAADgAAAAsAAAARAAAAAQAAAAkAAAACAAAABwAAABUAAAAJAAAAEwAAAAMAAAANAAAAAQAAAAgAAAAFAAAAFgAAABAAAAAEAAAAAAAAAA8AAAAJAAAAEwAAAA4AAAAUAAAAAQAAAAcAAAAGAAAACgAAAAsAAAAYAAAAFwAAAAUAAAACAAAAEgAAAAsAAAARAAAAFwAAABkAAAACAAAABgAAAAoAAAAMAAAAHAAAAA0AAAAaAAAABAAAAA8AAAADAAAADQAAABoAAAAVAAAAHQAAAAMAAAAMAAAABwAAAA4AAAB/AAAAEQAAABsAAAAJAAAAFAAAAAYAAAAPAAAAFgAAABwAAAAfAAAABAAAAAgAAAAMAAAAEAAAABIAAAAhAAAAHgAAAAgAAAAFAAAAFgAAABEAAAALAAAADgAAAAYAAAAjAAAAGQAAABsAAAASAAAAGAAAAB4AAAAgAAAABQAAAAoAAAAQAAAAEwAAACIAAAAUAAAAJAAAAAcAAAAVAAAACQAAABQAAAAOAAAAEwAAAAkAAAAoAAAAGwAAACQAAAAVAAAAJgAAABMAAAAiAAAADQAAAB0AAAAHAAAAFgAAABAAAAApAAAAIQAAAA8AAAAIAAAAHwAAABcAAAAYAAAACwAAAAoAAAAnAAAAJQAAABkAAAAYAAAAfwAAACAAAAAlAAAACgAAABcAAAASAAAAGQAAABcAAAARAAAACwAAAC0AAAAnAAAAIwAAABoAAAAqAAAAHQAAACsAAAAMAAAAHAAAAA0AAAAbAAAAKAAAACMAAAAuAAAADgAAABQAAAARAAAAHAAAAB8AAAAqAAAALAAAAAwAAAAPAAAAGgAAAB0AAAArAAAAJgAAAC8AAAANAAAAGgAAABUAAAAeAAAAIAAAADAAAAAyAAAAEAAAABIAAAAhAAAAHwAAACkAAAAsAAAANQAAAA8AAAAWAAAAHAAAACAAAAAeAAAAGAAAABIAAAA0AAAAMgAAACUAAAAhAAAAHgAAADEAAAAwAAAAFgAAABAAAAApAAAAIgAAABMAAAAmAAAAFQAAADYAAAAkAAAAMwAAACMAAAAuAAAALQAAADgAAAARAAAAGwAAABkAAAAkAAAAFAAAACIAAAATAAAANwAAACgAAAA2AAAAJQAAACcAAAA0AAAAOQAAABgAAAAXAAAAIAAAACYAAAB/AAAAIgAAADMAAAAdAAAALwAAABUAAAAnAAAAJQAAABkAAAAXAAAAOwAAADkAAAAtAAAAKAAAABsAAAAkAAAAFAAAADwAAAAuAAAANwAAACkAAAAxAAAANQAAAD0AAAAWAAAAIQAAAB8AAAAqAAAAOgAAACsAAAA+AAAAHAAAACwAAAAaAAAAKwAAAD4AAAAvAAAAQAAAABoAAAAqAAAAHQAAACwAAAA1AAAAOgAAAEEAAAAcAAAAHwAAACoAAAAtAAAAJwAAACMAAAAZAAAAPwAAADsAAAA4AAAALgAAADwAAAA4AAAARAAAABsAAAAoAAAAIwAAAC8AAAAmAAAAKwAAAB0AAABFAAAAMwAAAEAAAAAwAAAAMQAAAB4AAAAhAAAAQwAAAEIAAAAyAAAAMQAAAH8AAAA9AAAAQgAAACEAAAAwAAAAKQAAADIAAAAwAAAAIAAAAB4AAABGAAAAQwAAADQAAAAzAAAARQAAADYAAABHAAAAJgAAAC8AAAAiAAAANAAAADkAAABGAAAASgAAACAAAAAlAAAAMgAAADUAAAA9AAAAQQAAAEsAAAAfAAAAKQAAACwAAAA2AAAARwAAADcAAABJAAAAIgAAADMAAAAkAAAANwAAACgAAAA2AAAAJAAAAEgAAAA8AAAASQAAADgAAABEAAAAPwAAAE0AAAAjAAAALgAAAC0AAAA5AAAAOwAAAEoAAABOAAAAJQAAACcAAAA0AAAAOgAAAH8AAAA+AAAATAAAACwAAABBAAAAKgAAADsAAAA/AAAATgAAAE8AAAAnAAAALQAAADkAAAA8AAAASAAAAEQAAABQAAAAKAAAADcAAAAuAAAAPQAAADUAAAAxAAAAKQAAAFEAAABLAAAAQgAAAD4AAAArAAAAOgAAACoAAABSAAAAQAAAAEwAAAA/AAAAfwAAADgAAAAtAAAATwAAADsAAABNAAAAQAAAAC8AAAA+AAAAKwAAAFQAAABFAAAAUgAAAEEAAAA6AAAANQAAACwAAABWAAAATAAAAEsAAABCAAAAQwAAAFEAAABVAAAAMQAAADAAAAA9AAAAQwAAAEIAAAAyAAAAMAAAAFcAAABVAAAARgAAAEQAAAA4AAAAPAAAAC4AAABaAAAATQAAAFAAAABFAAAAMwAAAEAAAAAvAAAAWQAAAEcAAABUAAAARgAAAEMAAAA0AAAAMgAAAFMAAABXAAAASgAAAEcAAABZAAAASQAAAFsAAAAzAAAARQAAADYAAABIAAAAfwAAAEkAAAA3AAAAUAAAADwAAABYAAAASQAAAFsAAABIAAAAWAAAADYAAABHAAAANwAAAEoAAABOAAAAUwAAAFwAAAA0AAAAOQAAAEYAAABLAAAAQQAAAD0AAAA1AAAAXgAAAFYAAABRAAAATAAAAFYAAABSAAAAYAAAADoAAABBAAAAPgAAAE0AAAA/AAAARAAAADgAAABdAAAATwAAAFoAAABOAAAASgAAADsAAAA5AAAAXwAAAFwAAABPAAAATwAAAE4AAAA/AAAAOwAAAF0AAABfAAAATQAAAFAAAABEAAAASAAAADwAAABjAAAAWgAAAFgAAABRAAAAVQAAAF4AAABlAAAAPQAAAEIAAABLAAAAUgAAAGAAAABUAAAAYgAAAD4AAABMAAAAQAAAAFMAAAB/AAAASgAAAEYAAABkAAAAVwAAAFwAAABUAAAARQAAAFIAAABAAAAAYQAAAFkAAABiAAAAVQAAAFcAAABlAAAAZgAAAEIAAABDAAAAUQAAAFYAAABMAAAASwAAAEEAAABoAAAAYAAAAF4AAABXAAAAUwAAAGYAAABkAAAAQwAAAEYAAABVAAAAWAAAAEgAAABbAAAASQAAAGMAAABQAAAAaQAAAFkAAABhAAAAWwAAAGcAAABFAAAAVAAAAEcAAABaAAAATQAAAFAAAABEAAAAagAAAF0AAABjAAAAWwAAAEkAAABZAAAARwAAAGkAAABYAAAAZwAAAFwAAABTAAAATgAAAEoAAABsAAAAZAAAAF8AAABdAAAATwAAAFoAAABNAAAAbQAAAF8AAABqAAAAXgAAAFYAAABRAAAASwAAAGsAAABoAAAAZQAAAF8AAABcAAAATwAAAE4AAABtAAAAbAAAAF0AAABgAAAAaAAAAGIAAABuAAAATAAAAFYAAABSAAAAYQAAAH8AAABiAAAAVAAAAGcAAABZAAAAbwAAAGIAAABuAAAAYQAAAG8AAABSAAAAYAAAAFQAAABjAAAAUAAAAGkAAABYAAAAagAAAFoAAABxAAAAZAAAAGYAAABTAAAAVwAAAGwAAAByAAAAXAAAAGUAAABmAAAAawAAAHAAAABRAAAAVQAAAF4AAABmAAAAZQAAAFcAAABVAAAAcgAAAHAAAABkAAAAZwAAAFsAAABhAAAAWQAAAHQAAABpAAAAbwAAAGgAAABrAAAAbgAAAHMAAABWAAAAXgAAAGAAAABpAAAAWAAAAGcAAABbAAAAcQAAAGMAAAB0AAAAagAAAF0AAABjAAAAWgAAAHUAAABtAAAAcQAAAGsAAAB/AAAAZQAAAF4AAABzAAAAaAAAAHAAAABsAAAAZAAAAF8AAABcAAAAdgAAAHIAAABtAAAAbQAAAGwAAABdAAAAXwAAAHUAAAB2AAAAagAAAG4AAABiAAAAaAAAAGAAAAB3AAAAbwAAAHMAAABvAAAAYQAAAG4AAABiAAAAdAAAAGcAAAB3AAAAcAAAAGsAAABmAAAAZQAAAHgAAABzAAAAcgAAAHEAAABjAAAAdAAAAGkAAAB1AAAAagAAAHkAAAByAAAAcAAAAGQAAABmAAAAdgAAAHgAAABsAAAAcwAAAG4AAABrAAAAaAAAAHgAAAB3AAAAcAAAAHQAAABnAAAAdwAAAG8AAABxAAAAaQAAAHkAAAB1AAAAfwAAAG0AAAB2AAAAcQAAAHkAAABqAAAAdgAAAHgAAABsAAAAcgAAAHUAAAB5AAAAbQAAAHcAAABvAAAAcwAAAG4AAAB5AAAAdAAAAHgAAAB4AAAAcwAAAHIAAABwAAAAeQAAAHcAAAB2AAAAeQAAAHQAAAB4AAAAdwAAAHUAAABxAAAAdgAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAEAAAAFAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAABAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAIAAAAFAAAAAQAAAAAAAAD/////AQAAAAAAAAADAAAABAAAAAIAAAAAAAAAAAAAAAEAAAAAAAAAAQAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAwAAAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAUAAAABAAAAAAAAAAAAAAABAAAAAwAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAMAAAAAAAAAAAAAAAEAAAAAAAAAAwAAAAMAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAMAAAAFAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAABAAAAAAAAAAEAAAAAAAAA/////wMAAAAAAAAABQAAAAIAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAQAAAAFAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAwAAAAMAAAADAAAAAwAAAAAAAAADAAAAAAAAAAAAAAAAAAAAAwAAAAUAAAAFAAAAAAAAAAAAAAADAAAAAwAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAMAAAADAAAAAAAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAUAAAAFAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAABAAAAAAAAAAEAAAAAAAAAAwAAAAMAAAADAAAAAAAAAAMAAAAAAAAAAAAAAP////8DAAAAAAAAAAUAAAACAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAAAAAAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAMAAAAAAAAAAAAAAAAAAAADAAAAAwAAAAAAAAAAAAAAAQAAAAAAAAABAAAAAAAAAAEAAAAAAAAAAAAAAAEAAAADAAAAAAAAAAAAAAABAAAAAAAAAAMAAAADAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAwAAAAMAAAADAAAAAwAAAAAAAAADAAAAAAAAAAAAAAABAAAAAwAAAAAAAAAAAAAAAQAAAAAAAAADAAAAAwAAAAMAAAADAAAAAAAAAAMAAAAAAAAAAAAAAAMAAAAAAAAAAwAAAAAAAAADAAAAAAAAAAAAAAAAAAAAAwAAAAAAAAAAAAAAAwAAAAAAAAADAAAAAAAAAAAAAAAAAAAAAwAAAAMAAAAAAAAA/////wMAAAAAAAAABQAAAAIAAAAAAAAAAAAAAAMAAAAAAAAAAAAAAAMAAAADAAAAAAAAAAAAAAADAAAAAAAAAAAAAAADAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAADAAAABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAUAAAAFAAAAAAAAAAAAAAADAAAAAwAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAADAAAAAAAAAAAAAAABAAAAAAAAAAAAAAADAAAAAAAAAAAAAAADAAAAAwAAAAAAAAAAAAAAAAAAAAMAAAAAAAAAAwAAAAAAAAAAAAAAAwAAAAMAAAADAAAAAAAAAAMAAAAAAAAAAAAAAAMAAAADAAAAAwAAAAAAAAADAAAAAAAAAAAAAAD/////AwAAAAAAAAAFAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAADAAAAAAAAAAAAAAADAAAAAAAAAAMAAAAAAAAAAAAAAAAAAAADAAAAAwAAAAAAAAAAAAAAAwAAAAAAAAADAAAAAAAAAAMAAAAAAAAAAwAAAAMAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAAAAAAAAAAMAAAAAAAAAAwAAAAAAAAAAAAAAAwAAAAAAAAAAAAAAAwAAAAMAAAAAAAAAAwAAAAMAAAADAAAAAAAAAAAAAAADAAAAAAAAAAAAAAAAAAAAAwAAAAAAAAADAAAAAAAAAAAAAAD/////AwAAAAAAAAAFAAAAAgAAAAAAAAAAAAAAAwAAAAMAAAADAAAAAwAAAAMAAAAAAAAAAAAAAAMAAAADAAAAAwAAAAMAAAADAAAAAAAAAAAAAAADAAAAAwAAAAMAAAADAAAAAAAAAAMAAAAAAAAAAwAAAAMAAAADAAAAAwAAAAAAAAADAAAAAAAAAP////8DAAAAAAAAAAUAAAACAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAAAAAAAAAMAAAAAAAAAAwAAAAMAAAADAAAAAAAAAAMAAAAAAAAAAAAAAAMAAAAAAAAAAAAAAAAAAAADAAAAAwAAAAAAAAADAAAAAAAAAAAAAAADAAAAAwAAAAAAAAAAAAAAAwAAAAMAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAAAAAAAAAMAAAADAAAAAAAAAAAAAAAAAAAAAwAAAAAAAAAAAAAAAwAAAAMAAAAAAAAAAAAAAAAAAAADAAAAAAAAAAMAAAAAAAAAAAAAAP////8DAAAAAAAAAAUAAAACAAAAAAAAAAAAAAADAAAAAwAAAAMAAAAAAAAAAAAAAAMAAAAAAAAAAwAAAAMAAAADAAAAAAAAAAAAAAADAAAAAAAAAAAAAAAAAAAAAwAAAAAAAAAAAAAAAwAAAAAAAAADAAAAAAAAAAAAAAAAAAAAAwAAAAMAAAAAAAAAAAAAAAAAAAADAAAAAAAAAAUAAAAAAAAAAAAAAAMAAAADAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAMAAAABAAAAAAAAAAEAAAAAAAAAAAAAAAEAAAADAAAAAQAAAAAAAAABAAAAAAAAAAAAAAADAAAAAAAAAAMAAAAAAAAAAwAAAAAAAAAAAAAAAwAAAAAAAAADAAAAAAAAAAMAAAAAAAAA/////wMAAAAAAAAABQAAAAIAAAAAAAAAAAAAAAAAAAADAAAAAAAAAAAAAAADAAAAAwAAAAAAAAAAAAAAAAAAAAMAAAAAAAAAAwAAAAAAAAAAAAAAAwAAAAAAAAAAAAAAAwAAAAMAAAAAAAAAAAAAAAMAAAADAAAAAwAAAAMAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAAABQAAAAAAAAAAAAAAAwAAAAMAAAADAAAAAwAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAADAAAAAwAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAAAAAAAAAAUAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAUAAAAFAAAAAAAAAAAAAAAAAAAAAwAAAAAAAAAAAAAAAwAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAwAAAAAAAAADAAAAAAAAAAAAAAD/////AwAAAAAAAAAFAAAAAgAAAAAAAAAAAAAAAwAAAAMAAAADAAAAAAAAAAAAAAADAAAAAAAAAAUAAAAAAAAAAAAAAAUAAAAFAAAAAAAAAAAAAAAAAAAAAQAAAAMAAAABAAAAAAAAAAEAAAAAAAAAAwAAAAMAAAADAAAAAAAAAAAAAAADAAAAAAAAAAMAAAADAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAMAAAABAAAAAAAAAAEAAAAAAAAAAwAAAAMAAAADAAAAAwAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAADAAAABQAAAAEAAAAAAAAA/////wMAAAAAAAAABQAAAAIAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAUAAAAFAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAEAAAABQAAAAEAAAAAAAAAAwAAAAMAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAgAAAAUAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAMAAAABAAAAAAAAAAEAAAAAAAAABQAAAAAAAAAAAAAABQAAAAUAAAAAAAAAAAAAAP////8BAAAAAAAAAAMAAAAEAAAAAgAAAAAAAAAAAAAAAQAAAAAAAAAAAAAABQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAUAAAAAAAAAAAAAAAUAAAAFAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAABAAAABQAAAAEAAAAAAAAAAAAAAAEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAAAAAAAAQAAAP//////////AQAAAAEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAABAAAAAQAAAAAAAAAAAAAAAAAAAAMAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAACwAAAAIAAAAAAAAAAAAAAAEAAAACAAAABgAAAAQAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABgAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAEAAAABAAAAAAAAAAAAAAAAAAAABwAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAABgAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAoAAAACAAAAAAAAAAAAAAABAAAAAQAAAAUAAAAGAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAsAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAACwAAAAEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAAAAAIAAAAAAAAAAAAAAAEAAAADAAAABwAAAAYAAAABAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAHAAAAAQAAAAAAAAABAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAMAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAADAAAAAAAAAAEAAAABAAAAAAAAAAAAAAAAAAAABAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAYAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAALAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAOAAAAAgAAAAAAAAAAAAAAAQAAAAAAAAAJAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAABAAAAAQAAAAAAAAAAAAAAAAAAAAwAAAABAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACwAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAANAAAAAgAAAAAAAAAAAAAAAQAAAAQAAAAIAAAACgAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAsAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAJAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAYAAAACAAAAAAAAAAAAAAABAAAACwAAAA8AAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA4AAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAQAAAAAAAAABAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAABAAAAAQAAAAAAAAAAAAAAAAAAAAgAAAABAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAFAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcAAAACAAAAAAAAAAAAAAABAAAADAAAABAAAAAMAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAACgAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAANAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA8AAAAAAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAAPAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAABAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAANAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAIAAAAAAAAAAAAAAAEAAAAKAAAAEwAAAAgAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACQAAAAEAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAARAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAADAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAARAAAAAAAAAAEAAAABAAAAAAAAAAAAAAAAAAAADwAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAABAAAAABAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAJAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA0AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAgAAAAAAAAAAAAAAAQAAAA0AAAARAAAADQAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAABEAAAABAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAATAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAABMAAAAAAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAARAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAADQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACQAAAAIAAAAAAAAAAAAAAAEAAAAOAAAAEgAAAA8AAAABAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAPAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEgAAAAAAAAABAAAAAQAAAAAAAAAAAAAAAAAAABIAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAATAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAEQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAASAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAEgAAAAEAAAAAAAAAAQAAAAAAAAAAAAAAAAAAABMAAAACAAAAAAAAAAAAAAABAAAA//////////8TAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABMAAAABAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAASAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAABIAAAAAAAAAGAAAAAAAAAAhAAAAAAAAAB4AAAAAAAAAIAAAAAMAAAAxAAAAAQAAADAAAAADAAAAMgAAAAMAAAAIAAAAAAAAAAUAAAAFAAAACgAAAAUAAAAWAAAAAAAAABAAAAAAAAAAEgAAAAAAAAApAAAAAQAAACEAAAAAAAAAHgAAAAAAAAAEAAAAAAAAAAAAAAAFAAAAAgAAAAUAAAAPAAAAAQAAAAgAAAAAAAAABQAAAAUAAAAfAAAAAQAAABYAAAAAAAAAEAAAAAAAAAACAAAAAAAAAAYAAAAAAAAADgAAAAAAAAAKAAAAAAAAAAsAAAAAAAAAEQAAAAMAAAAYAAAAAQAAABcAAAADAAAAGQAAAAMAAAAAAAAAAAAAAAEAAAAFAAAACQAAAAUAAAAFAAAAAAAAAAIAAAAAAAAABgAAAAAAAAASAAAAAQAAAAoAAAAAAAAACwAAAAAAAAAEAAAAAQAAAAMAAAAFAAAABwAAAAUAAAAIAAAAAQAAAAAAAAAAAAAAAQAAAAUAAAAQAAAAAQAAAAUAAAAAAAAAAgAAAAAAAAAHAAAAAAAAABUAAAAAAAAAJgAAAAAAAAAJAAAAAAAAABMAAAAAAAAAIgAAAAMAAAAOAAAAAQAAABQAAAADAAAAJAAAAAMAAAADAAAAAAAAAA0AAAAFAAAAHQAAAAUAAAABAAAAAAAAAAcAAAAAAAAAFQAAAAAAAAAGAAAAAQAAAAkAAAAAAAAAEwAAAAAAAAAEAAAAAgAAAAwAAAAFAAAAGgAAAAUAAAAAAAAAAQAAAAMAAAAAAAAADQAAAAUAAAACAAAAAQAAAAEAAAAAAAAABwAAAAAAAAAaAAAAAAAAACoAAAAAAAAAOgAAAAAAAAAdAAAAAAAAACsAAAAAAAAAPgAAAAMAAAAmAAAAAQAAAC8AAAADAAAAQAAAAAMAAAAMAAAAAAAAABwAAAAFAAAALAAAAAUAAAANAAAAAAAAABoAAAAAAAAAKgAAAAAAAAAVAAAAAQAAAB0AAAAAAAAAKwAAAAAAAAAEAAAAAwAAAA8AAAAFAAAAHwAAAAUAAAADAAAAAQAAAAwAAAAAAAAAHAAAAAUAAAAHAAAAAQAAAA0AAAAAAAAAGgAAAAAAAAAfAAAAAAAAACkAAAAAAAAAMQAAAAAAAAAsAAAAAAAAADUAAAAAAAAAPQAAAAMAAAA6AAAAAQAAAEEAAAADAAAASwAAAAMAAAAPAAAAAAAAABYAAAAFAAAAIQAAAAUAAAAcAAAAAAAAAB8AAAAAAAAAKQAAAAAAAAAqAAAAAQAAACwAAAAAAAAANQAAAAAAAAAEAAAABAAAAAgAAAAFAAAAEAAAAAUAAAAMAAAAAQAAAA8AAAAAAAAAFgAAAAUAAAAaAAAAAQAAABwAAAAAAAAAHwAAAAAAAAAyAAAAAAAAADAAAAAAAAAAMQAAAAMAAAAgAAAAAAAAAB4AAAADAAAAIQAAAAMAAAAYAAAAAwAAABIAAAADAAAAEAAAAAMAAABGAAAAAAAAAEMAAAAAAAAAQgAAAAMAAAA0AAAAAwAAADIAAAAAAAAAMAAAAAAAAAAlAAAAAwAAACAAAAAAAAAAHgAAAAMAAABTAAAAAAAAAFcAAAADAAAAVQAAAAMAAABKAAAAAwAAAEYAAAAAAAAAQwAAAAAAAAA5AAAAAQAAADQAAAADAAAAMgAAAAAAAAAZAAAAAAAAABcAAAAAAAAAGAAAAAMAAAARAAAAAAAAAAsAAAADAAAACgAAAAMAAAAOAAAAAwAAAAYAAAADAAAAAgAAAAMAAAAtAAAAAAAAACcAAAAAAAAAJQAAAAMAAAAjAAAAAwAAABkAAAAAAAAAFwAAAAAAAAAbAAAAAwAAABEAAAAAAAAACwAAAAMAAAA/AAAAAAAAADsAAAADAAAAOQAAAAMAAAA4AAAAAwAAAC0AAAAAAAAAJwAAAAAAAAAuAAAAAwAAACMAAAADAAAAGQAAAAAAAAAkAAAAAAAAABQAAAAAAAAADgAAAAMAAAAiAAAAAAAAABMAAAADAAAACQAAAAMAAAAmAAAAAwAAABUAAAADAAAABwAAAAMAAAA3AAAAAAAAACgAAAAAAAAAGwAAAAMAAAA2AAAAAwAAACQAAAAAAAAAFAAAAAAAAAAzAAAAAwAAACIAAAAAAAAAEwAAAAMAAABIAAAAAAAAADwAAAADAAAALgAAAAMAAABJAAAAAwAAADcAAAAAAAAAKAAAAAAAAABHAAAAAwAAADYAAAADAAAAJAAAAAAAAABAAAAAAAAAAC8AAAAAAAAAJgAAAAMAAAA+AAAAAAAAACsAAAADAAAAHQAAAAMAAAA6AAAAAwAAACoAAAADAAAAGgAAAAMAAABUAAAAAAAAAEUAAAAAAAAAMwAAAAMAAABSAAAAAwAAAEAAAAAAAAAALwAAAAAAAABMAAAAAwAAAD4AAAAAAAAAKwAAAAMAAABhAAAAAAAAAFkAAAADAAAARwAAAAMAAABiAAAAAwAAAFQAAAAAAAAARQAAAAAAAABgAAAAAwAAAFIAAAADAAAAQAAAAAAAAABLAAAAAAAAAEEAAAAAAAAAOgAAAAMAAAA9AAAAAAAAADUAAAADAAAALAAAAAMAAAAxAAAAAwAAACkAAAADAAAAHwAAAAMAAABeAAAAAAAAAFYAAAAAAAAATAAAAAMAAABRAAAAAwAAAEsAAAAAAAAAQQAAAAAAAABCAAAAAwAAAD0AAAAAAAAANQAAAAMAAABrAAAAAAAAAGgAAAADAAAAYAAAAAMAAABlAAAAAwAAAF4AAAAAAAAAVgAAAAAAAABVAAAAAwAAAFEAAAADAAAASwAAAAAAAAA5AAAAAAAAADsAAAAAAAAAPwAAAAMAAABKAAAAAAAAAE4AAAADAAAATwAAAAMAAABTAAAAAwAAAFwAAAADAAAAXwAAAAMAAAAlAAAAAAAAACcAAAADAAAALQAAAAMAAAA0AAAAAAAAADkAAAAAAAAAOwAAAAAAAABGAAAAAwAAAEoAAAAAAAAATgAAAAMAAAAYAAAAAAAAABcAAAADAAAAGQAAAAMAAAAgAAAAAwAAACUAAAAAAAAAJwAAAAMAAAAyAAAAAwAAADQAAAAAAAAAOQAAAAAAAAAuAAAAAAAAADwAAAAAAAAASAAAAAMAAAA4AAAAAAAAAEQAAAADAAAAUAAAAAMAAAA/AAAAAwAAAE0AAAADAAAAWgAAAAMAAAAbAAAAAAAAACgAAAADAAAANwAAAAMAAAAjAAAAAAAAAC4AAAAAAAAAPAAAAAAAAAAtAAAAAwAAADgAAAAAAAAARAAAAAMAAAAOAAAAAAAAABQAAAADAAAAJAAAAAMAAAARAAAAAwAAABsAAAAAAAAAKAAAAAMAAAAZAAAAAwAAACMAAAAAAAAALgAAAAAAAABHAAAAAAAAAFkAAAAAAAAAYQAAAAMAAABJAAAAAAAAAFsAAAADAAAAZwAAAAMAAABIAAAAAwAAAFgAAAADAAAAaQAAAAMAAAAzAAAAAAAAAEUAAAADAAAAVAAAAAMAAAA2AAAAAAAAAEcAAAAAAAAAWQAAAAAAAAA3AAAAAwAAAEkAAAAAAAAAWwAAAAMAAAAmAAAAAAAAAC8AAAADAAAAQAAAAAMAAAAiAAAAAwAAADMAAAAAAAAARQAAAAMAAAAkAAAAAwAAADYAAAAAAAAARwAAAAAAAABgAAAAAAAAAGgAAAAAAAAAawAAAAMAAABiAAAAAAAAAG4AAAADAAAAcwAAAAMAAABhAAAAAwAAAG8AAAADAAAAdwAAAAMAAABMAAAAAAAAAFYAAAADAAAAXgAAAAMAAABSAAAAAAAAAGAAAAAAAAAAaAAAAAAAAABUAAAAAwAAAGIAAAAAAAAAbgAAAAMAAAA6AAAAAAAAAEEAAAADAAAASwAAAAMAAAA+AAAAAwAAAEwAAAAAAAAAVgAAAAMAAABAAAAAAwAAAFIAAAAAAAAAYAAAAAAAAABVAAAAAAAAAFcAAAAAAAAAUwAAAAMAAABlAAAAAAAAAGYAAAADAAAAZAAAAAMAAABrAAAAAwAAAHAAAAADAAAAcgAAAAMAAABCAAAAAAAAAEMAAAADAAAARgAAAAMAAABRAAAAAAAAAFUAAAAAAAAAVwAAAAAAAABeAAAAAwAAAGUAAAAAAAAAZgAAAAMAAAAxAAAAAAAAADAAAAADAAAAMgAAAAMAAAA9AAAAAwAAAEIAAAAAAAAAQwAAAAMAAABLAAAAAwAAAFEAAAAAAAAAVQAAAAAAAABfAAAAAAAAAFwAAAAAAAAAUwAAAAAAAABPAAAAAAAAAE4AAAAAAAAASgAAAAMAAAA/AAAAAQAAADsAAAADAAAAOQAAAAMAAABtAAAAAAAAAGwAAAAAAAAAZAAAAAUAAABdAAAAAQAAAF8AAAAAAAAAXAAAAAAAAABNAAAAAQAAAE8AAAAAAAAATgAAAAAAAAB1AAAABAAAAHYAAAAFAAAAcgAAAAUAAABqAAAAAQAAAG0AAAAAAAAAbAAAAAAAAABaAAAAAQAAAF0AAAABAAAAXwAAAAAAAABaAAAAAAAAAE0AAAAAAAAAPwAAAAAAAABQAAAAAAAAAEQAAAAAAAAAOAAAAAMAAABIAAAAAQAAADwAAAADAAAALgAAAAMAAABqAAAAAAAAAF0AAAAAAAAATwAAAAUAAABjAAAAAQAAAFoAAAAAAAAATQAAAAAAAABYAAAAAQAAAFAAAAAAAAAARAAAAAAAAAB1AAAAAwAAAG0AAAAFAAAAXwAAAAUAAABxAAAAAQAAAGoAAAAAAAAAXQAAAAAAAABpAAAAAQAAAGMAAAABAAAAWgAAAAAAAABpAAAAAAAAAFgAAAAAAAAASAAAAAAAAABnAAAAAAAAAFsAAAAAAAAASQAAAAMAAABhAAAAAQAAAFkAAAADAAAARwAAAAMAAABxAAAAAAAAAGMAAAAAAAAAUAAAAAUAAAB0AAAAAQAAAGkAAAAAAAAAWAAAAAAAAABvAAAAAQAAAGcAAAAAAAAAWwAAAAAAAAB1AAAAAgAAAGoAAAAFAAAAWgAAAAUAAAB5AAAAAQAAAHEAAAAAAAAAYwAAAAAAAAB3AAAAAQAAAHQAAAABAAAAaQAAAAAAAAB3AAAAAAAAAG8AAAAAAAAAYQAAAAAAAABzAAAAAAAAAG4AAAAAAAAAYgAAAAMAAABrAAAAAQAAAGgAAAADAAAAYAAAAAMAAAB5AAAAAAAAAHQAAAAAAAAAZwAAAAUAAAB4AAAAAQAAAHcAAAAAAAAAbwAAAAAAAABwAAAAAQAAAHMAAAAAAAAAbgAAAAAAAAB1AAAAAQAAAHEAAAAFAAAAaQAAAAUAAAB2AAAAAQAAAHkAAAAAAAAAdAAAAAAAAAByAAAAAQAAAHgAAAABAAAAdwAAAAAAAAByAAAAAAAAAHAAAAAAAAAAawAAAAAAAABkAAAAAAAAAGYAAAAAAAAAZQAAAAMAAABTAAAAAQAAAFcAAAADAAAAVQAAAAMAAAB2AAAAAAAAAHgAAAAAAAAAcwAAAAUAAABsAAAAAQAAAHIAAAAAAAAAcAAAAAAAAABcAAAAAQAAAGQAAAAAAAAAZgAAAAAAAAB1AAAAAAAAAHkAAAAFAAAAdwAAAAUAAABtAAAAAQAAAHYAAAAAAAAAeAAAAAAAAABfAAAAAQAAAGwAAAABAAAAcgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAEAAAABAAAAAAAAAAAAAAABAAAAAAAAAAEAAAABAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAB+ogX28rbpPxqumpJv+fM/165tC4ns9D+XaEnTqUsEQFrOtNlC4PA/3U+0XG6P9b9TdUUBxTTjP4PUp8ex1ty/B1rD/EN43z+lcDi6LLrZP/a45NWEHMY/oJ5ijLDZ+j/xw3rjxWPjP2B8A46ioQdAotff3wla2z+FMSpA1jj+v6b5Y1mtPbS/cIu8K0F457/2esiyJpDNv98k5Ts2NeA/pvljWa09tD88ClUJ60MDQPZ6yLImkM0/4ONKxa0UBcD2uOTVhBzGv5G7JRxGave/8cN648Vj47+HCwtkjAXIv6LX398JWtu/qyheaCAL9D9TdUUBxTTjv4gyTxslhwVAB1rD/EN4378EH/28teoFwH6iBfbytum/F6ztFYdK/r/Xrm0Liez0vwcS6wNGWeO/Ws602ULg8L9TCtRLiLT8P8pi5RexJsw/BlIKPVwR5T95Wyu0/QjnP5PjoT7YYcu/mBhKZ6zrwj8wRYS7NebuP3qW6geh+Ls/SLrixebL3r+pcyymN9XrPwmkNHp7xec/GWNMZVAA17+82s+x2BLiPwn2ytbJ9ek/LgEH1sMS1j8yp/2LhTfeP+SnWwtQBbu/d38gkp5X7z8ytsuHaADGPzUYObdf1+m/7IauECWhwz+cjSACjzniP76Z+wUhN9K/1+GEKzup67+/GYr/04baPw6idWOvsuc/ZedTWsRa5b/EJQOuRzi0v/OncYhHPes/h49PixY53j+i8wWfC03Nvw2idWOvsue/ZedTWsRa5T/EJQOuRzi0P/KncYhHPeu/iY9PixY53r+i8wWfC03NP9anWwtQBbs/d38gkp5X778ytsuHaADGvzUYObdf1+k/74auECWhw7+cjSACjzniv8CZ+wUhN9I/1uGEKzup6z+/GYr/04bavwmkNHp7xee/F2NMZVAA1z+82s+x2BLivwr2ytbJ9em/KwEH1sMS1r8yp/2LhTfev81i5RexJsy/BlIKPVwR5b95Wyu0/Qjnv5DjoT7YYcs/nBhKZ6zrwr8wRYS7Nebuv3OW6geh+Lu/SLrixebL3j+pcyymN9Xrv8rHIFfWehZAMBwUdlo0DECTUc17EOb2PxpVB1SWChdAzjbhb9pTDUDQhmdvECX5P9FlMKCC9+g/IIAzjELgE0DajDngMv8GQFhWDmDPjNs/y1guLh96EkAxPi8k7DIEQJCc4URlhRhA3eLKKLwkEECqpNAyTBD/P6xpjXcDiwVAFtl//cQm4z+Ibt3XKiYTQM7mCLUb3QdAoM1t8yVv7D8aLZv2Nk8UQEAJPV5nQwxAtSsfTCoE9z9TPjXLXIIWQBVanC5W9AtAYM3d7Adm9j++5mQz1FoWQBUThyaVBghAwH5muQsV7T89Q1qv82MUQJoWGOfNuBdAzrkClkmwDkDQjKq77t37Py+g0dtitsE/ZwAMTwVPEUBojepluNwBQGYbtuW+t9w/HNWIJs6MEkDTNuQUSlgEQKxktPP5TcQ/ixbLB8JjEUCwuWjXMQYCQAS/R09FkRdAowpiZjhhDkB7LmlczD/7P01iQmhhsAVAnrtTwDy84z/Z6jfQ2TgTQChOCXMnWwpAhrW3daoz8z/HYJvVPI4VQLT3ik5FcA5Angi7LOZd+z+NNVzDy5gXQBXdvVTFUA1AYNMgOeYe+T8+qHXGCwkXQKQTOKwa5AJA8gFVoEMW0T+FwzJyttIRQAEAAAD/////BwAAAP////8xAAAA/////1cBAAD/////YQkAAP////+nQQAA/////5HLAQD/////95AMAP/////B9lcAAAAAAAAAAAAAAAAAAgAAAP////8OAAAA/////2IAAAD/////rgIAAP/////CEgAA/////06DAAD/////IpcDAP/////uIRkA/////4LtrwAAAAAAAAAAAAAAAAAAAAAAAgAAAP//////////AQAAAAMAAAD//////////////////////////////////////////////////////////////////////////wEAAAAAAAAAAgAAAP///////////////wMAAAD//////////////////////////////////////////////////////////////////////////wEAAAAAAAAAAgAAAP///////////////wMAAAD//////////////////////////////////////////////////////////////////////////wEAAAAAAAAAAgAAAP///////////////wMAAAD//////////////////////////////////////////////////////////wIAAAD//////////wEAAAAAAAAA/////////////////////wMAAAD/////////////////////////////////////////////////////AwAAAP////////////////////8AAAAA/////////////////////wEAAAD///////////////8CAAAA////////////////////////////////AwAAAP////////////////////8AAAAA////////////////AgAAAAEAAAD/////////////////////////////////////////////////////AwAAAP////////////////////8AAAAA////////////////AgAAAAEAAAD/////////////////////////////////////////////////////AwAAAP////////////////////8AAAAA////////////////AgAAAAEAAAD/////////////////////////////////////////////////////AwAAAP////////////////////8AAAAA////////////////AgAAAAEAAAD/////////////////////////////////////////////////////AQAAAAIAAAD///////////////8AAAAA/////////////////////wMAAAD/////////////////////////////////////////////////////AQAAAAIAAAD///////////////8AAAAA/////////////////////wMAAAD/////////////////////////////////////////////////////AQAAAAIAAAD///////////////8AAAAA/////////////////////wMAAAD/////////////////////////////////////////////////////AQAAAAIAAAD///////////////8AAAAA/////////////////////wMAAAD///////////////////////////////8CAAAA////////////////AQAAAP////////////////////8AAAAA/////////////////////wMAAAD/////////////////////////////////////////////////////AwAAAP////////////////////8AAAAAAQAAAP//////////AgAAAP//////////////////////////////////////////////////////////AwAAAP///////////////wIAAAAAAAAAAQAAAP//////////////////////////////////////////////////////////////////////////AwAAAP///////////////wIAAAAAAAAAAQAAAP//////////////////////////////////////////////////////////////////////////AwAAAP///////////////wIAAAAAAAAAAQAAAP//////////////////////////////////////////////////////////////////////////AwAAAAEAAAD//////////wIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAgAAAAAAAAACAAAAAQAAAAEAAAACAAAAAgAAAAAAAAAFAAAABQAAAAAAAAACAAAAAgAAAAMAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAIAAAABAAAAAgAAAAIAAAACAAAAAAAAAAUAAAAGAAAAAAAAAAIAAAACAAAAAwAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAIAAAAAAAAAAgAAAAEAAAADAAAAAgAAAAIAAAAAAAAABQAAAAcAAAAAAAAAAgAAAAIAAAADAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAgAAAAAAAAACAAAAAQAAAAQAAAACAAAAAgAAAAAAAAAFAAAACAAAAAAAAAACAAAAAgAAAAMAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAACAAAAAAAAAAIAAAABAAAAAAAAAAIAAAACAAAAAAAAAAUAAAAJAAAAAAAAAAIAAAACAAAAAwAAAAUAAAAAAAAAAAAAAAAAAAAAAAAACgAAAAIAAAACAAAAAAAAAAMAAAAOAAAAAgAAAAAAAAACAAAAAwAAAAAAAAAAAAAAAgAAAAIAAAADAAAABgAAAAAAAAAAAAAAAAAAAAAAAAALAAAAAgAAAAIAAAAAAAAAAwAAAAoAAAACAAAAAAAAAAIAAAADAAAAAQAAAAAAAAACAAAAAgAAAAMAAAAHAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAACAAAAAgAAAAAAAAADAAAACwAAAAIAAAAAAAAAAgAAAAMAAAACAAAAAAAAAAIAAAACAAAAAwAAAAgAAAAAAAAAAAAAAAAAAAAAAAAADQAAAAIAAAACAAAAAAAAAAMAAAAMAAAAAgAAAAAAAAACAAAAAwAAAAMAAAAAAAAAAgAAAAIAAAADAAAACQAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAgAAAAIAAAAAAAAAAwAAAA0AAAACAAAAAAAAAAIAAAADAAAABAAAAAAAAAACAAAAAgAAAAMAAAAKAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAACAAAAAgAAAAAAAAADAAAABgAAAAIAAAAAAAAAAgAAAAMAAAAPAAAAAAAAAAIAAAACAAAAAwAAAAsAAAAAAAAAAAAAAAAAAAAAAAAABgAAAAIAAAACAAAAAAAAAAMAAAAHAAAAAgAAAAAAAAACAAAAAwAAABAAAAAAAAAAAgAAAAIAAAADAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAgAAAAIAAAAAAAAAAwAAAAgAAAACAAAAAAAAAAIAAAADAAAAEQAAAAAAAAACAAAAAgAAAAMAAAANAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAACAAAAAgAAAAAAAAADAAAACQAAAAIAAAAAAAAAAgAAAAMAAAASAAAAAAAAAAIAAAACAAAAAwAAAA4AAAAAAAAAAAAAAAAAAAAAAAAACQAAAAIAAAACAAAAAAAAAAMAAAAFAAAAAgAAAAAAAAACAAAAAwAAABMAAAAAAAAAAgAAAAIAAAADAAAADwAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAgAAAAAAAAACAAAAAQAAABMAAAACAAAAAgAAAAAAAAAFAAAACgAAAAAAAAACAAAAAgAAAAMAAAAQAAAAAAAAAAAAAAAAAAAAAAAAABEAAAACAAAAAAAAAAIAAAABAAAADwAAAAIAAAACAAAAAAAAAAUAAAALAAAAAAAAAAIAAAACAAAAAwAAABEAAAAAAAAAAAAAAAAAAAAAAAAAEgAAAAIAAAAAAAAAAgAAAAEAAAAQAAAAAgAAAAIAAAAAAAAABQAAAAwAAAAAAAAAAgAAAAIAAAADAAAAEgAAAAAAAAAAAAAAAAAAAAAAAAATAAAAAgAAAAAAAAACAAAAAQAAABEAAAACAAAAAgAAAAAAAAAFAAAADQAAAAAAAAACAAAAAgAAAAMAAAATAAAAAAAAAAAAAAAAAAAAAAAAAA8AAAACAAAAAAAAAAIAAAABAAAAEgAAAAIAAAACAAAAAAAAAAUAAAAOAAAAAAAAAAIAAAACAAAAAwAAAAIAAAABAAAAAAAAAAEAAAACAAAAAAAAAAAAAAACAAAAAQAAAAAAAAABAAAAAgAAAAEAAAAAAAAAAgAAAAAAAAAFAAAABAAAAAAAAAABAAAABQAAAAAAAAAAAAAABQAAAAQAAAAAAAAAAQAAAAUAAAAEAAAAAAAAAAUAAAAAAAAAAgAAAAEAAAAAAAAAAQAAAAIAAAAAAAAAAAAAAAIAAAABAAAAAAAAAAEAAAACAAAAAQAAAAAAAAACAAAAAgAAAAAAAAABAAAAAAAAAAAAAAAFAAAABAAAAAAAAAABAAAABQAAAAAAAAAAAAAABQAAAAQAAAAAAAAAAQAAAAUAAAAEAAAAAAAAAAUAAAAFAAAAAAAAAAEAAAAAAAAAAAAAAMuhRbbsNlBBYqHW9OmHIkF9XBuqnS31QAK37uYhNMhAOSo3UUupm0DC+6pc6JxvQHV9eseEEEJAzURsCyqlFEB8BQ4NMJjnPyy3tBoS97o/xawXQznRjj89J2K2CZxhP6vX43RIIDQ/S8isgygEBz+LvFHQkmzaPjFFFO7wMq4+AADMLkTtjkIAAOgkJqxhQgAAU7B0MjRCAADwpBcVB0IAAACYP2HaQQAAAIn/Ja5BzczM4Eg6gUHNzMxMU7BTQTMzMzNfgCZBAAAAAEi3+UAAAAAAwGPNQDMzMzMzy6BAmpmZmZkxc0AzMzMzM/NFQDMzMzMzMxlAzczMzMzM7D+ygXSx2U6RQKimJOvQKnpA23hmONTHY0A/AGcxyudNQNb3K647mzZA+S56rrwWIUAm4kUQ+9UJQKre9hGzh/M/BLvoy9WG3T+LmqMf8VHGP2m3nYNV37A/gbFHcyeCmT+cBPWBckiDP61tZACjKW0/q2RbYVUYVj8uDypVyLNAP6jGS5cA5zBBwcqhBdCNGUEGEhQ/JVEDQT6WPnRbNO1AB/AWSJgT1kDfUWNCNLDAQNk+5C33OqlAchWL34QSk0DKvtDIrNV8QNF0G3kFzGVASSeWhBl6UED+/0mNGuk4QGjA/dm/1CJALPLPMql6DEDSHoDrwpP1P2jouzWST+A/egAAAAAAAABKAwAAAAAAAPoWAAAAAAAAyqAAAAAAAAB6ZQQAAAAAAErGHgAAAAAA+mvXAAAAAADK8+MFAAAAAHqqOykAAAAASqmhIAEAAAD6oGvkBwAAAMpm8T43AAAAes+ZuIIBAABKrDQMkwoAAPq1cFUFSgAAyvkUViUGAgAAAAAAAwAAAAYAAAACAAAABQAAAAEAAAAEAAAAAAAAAAAAAAAFAAAAAwAAAAEAAAAGAAAABAAAAAIAAAAAAAAAAAAAAP////8AAAAAAAAAAAAAAAAAAAAAAAAAAP////////////////////////////////////8AAAAA/////wAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAP////8AAAAAAAAAAAEAAAABAAAAAAAAAAAAAAD/////AAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAA/////wUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAP////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/////////////////////////////////////AAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/////////////////////////////////////wAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAUAAAABAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP////////////////////////////////////8AAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAABAAAAAAAAAAAAAAABAAAAAQAAAAEAAAAAAAAAAQAAAAAAAAAFAAAAAQAAAAEAAAAAAAAAAAAAAAEAAAABAAAAAAAAAAEAAAABAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEBAAAAAAABAAEAAAEBAAAAAAABAAAAAQAAAAEAAQAAAAAAAAAAAAAAAAAAAAAEAAAABAAAAAAAAAACAAAAAQAAAAMAAAAOAAAABgAAAAsAAAACAAAABwAAAAEAAAAYAAAABQAAAAoAAAABAAAABgAAAAAAAAAmAAAABwAAAAwAAAADAAAACAAAAAIAAAAxAAAACQAAAA4AAAAAAAAABQAAAAQAAAA6AAAACAAAAA0AAAAEAAAACQAAAAMAAAA/AAAACwAAAAYAAAAPAAAACgAAABAAAABIAAAADAAAAAcAAAAQAAAACwAAABEAAABTAAAACgAAAAUAAAATAAAADgAAAA8AAABhAAAADQAAAAgAAAARAAAADAAAABIAAABrAAAADgAAAAkAAAASAAAADQAAABMAAAB1AAAADwAAABMAAAARAAAAEgAAABAAAAAHAAAABwAAAAEAAAACAAAABAAAAAMAAAAAAAAAAAAAAAcAAAADAAAAAQAAAAIAAAAFAAAABAAAAAAAAAAAAAAAYWxnb3MuYwBfcG9seWZpbGxJbnRlcm5hbABhZGphY2VudEZhY2VEaXJbdG1wRmlqay5mYWNlXVtmaWprLmZhY2VdID09IEtJAGZhY2VpamsuYwBfZmFjZUlqa1BlbnRUb0dlb0JvdW5kYXJ5AGFkamFjZW50RmFjZURpcltjZW50ZXJJSksuZmFjZV1bZmFjZTJdID09IEtJAF9mYWNlSWprVG9HZW9Cb3VuZGFyeQBwb2x5Z29uLT5uZXh0ID09IE5VTEwAbGlua2VkR2VvLmMAYWRkTmV3TGlua2VkUG9seWdvbgBuZXh0ICE9IE5VTEwAbG9vcCAhPSBOVUxMAGFkZE5ld0xpbmtlZExvb3AAcG9seWdvbi0+Zmlyc3QgPT0gTlVMTABhZGRMaW5rZWRMb29wAGNvb3JkICE9IE5VTEwAYWRkTGlua2VkQ29vcmQAbG9vcC0+Zmlyc3QgPT0gTlVMTABpbm5lckxvb3BzICE9IE5VTEwAbm9ybWFsaXplTXVsdGlQb2x5Z29uAGJib3hlcyAhPSBOVUxMAGNhbmRpZGF0ZXMgIT0gTlVMTABmaW5kUG9seWdvbkZvckhvbGUAY2FuZGlkYXRlQkJveGVzICE9IE5VTEwAcmV2RGlyICE9IElOVkFMSURfRElHSVQAbG9jYWxpai5jAGgzVG9Mb2NhbElqawBiYXNlQ2VsbCAhPSBvcmlnaW5CYXNlQ2VsbAAhKG9yaWdpbk9uUGVudCAmJiBpbmRleE9uUGVudCkAcGVudGFnb25Sb3RhdGlvbnMgPj0gMABkaXJlY3Rpb25Sb3RhdGlvbnMgPj0gMABiYXNlQ2VsbCA9PSBvcmlnaW5CYXNlQ2VsbABiYXNlQ2VsbCAhPSBJTlZBTElEX0JBU0VfQ0VMTABsb2NhbElqa1RvSDMAIV9pc0Jhc2VDZWxsUGVudGFnb24oYmFzZUNlbGwpAGJhc2VDZWxsUm90YXRpb25zID49IDAAd2l0aGluUGVudGFnb25Sb3RhdGlvbnMgPj0gMABncmFwaC0+YnVja2V0cyAhPSBOVUxMAHZlcnRleEdyYXBoLmMAaW5pdFZlcnRleEdyYXBoAG5vZGUgIT0gTlVMTABhZGRWZXJ0ZXhOb2Rl";var ce=24032;function ue(e){return e}function he(e){var t=/\b__Z[\w\d_]+/g;return e.replace(t,(function(e){var t=ue(e);return e===t?e:t+" ["+e+"]"}))}function fe(){var e=new Error;if(!e.stack){try{throw new Error(0)}catch(t){e=t}if(!e.stack)return"(no stack trace available)"}return e.stack.toString()}function de(){var e=fe();return n["extraStackTrace"]&&(e+="\n"+n["extraStackTrace"]()),he(e)}function pe(e,t,n,r){Fe("Assertion failed: "+_(e)+", at: "+[t?_(t):"unknown filename",n,r?_(r):"unknown function"])}function me(){return C.length}function ge(e,t,n){T.set(T.subarray(t,t+n),e)}function ve(e){return n["___errno_location"]&&(B[n["___errno_location"]()>>2]=e),e}function ye(e){Fe("OOM")}function xe(e){try{var t=new ArrayBuffer(e);if(t.byteLength!=e)return;return new Int8Array(t).set(C),De(t),k(t),1}catch(n){}}function be(e){var t=me(),n=16777216,r=2147483648-n;if(e>r)return!1;var i=16777216,a=Math.max(t,i);while(a>4,n=(15&a)<<4|s>>2,r=(3&s)<<6|o,l+=String.fromCharCode(t),64!==s&&(l+=String.fromCharCode(n)),64!==o&&(l+=String.fromCharCode(r))}while(c>2]=e,i[s+4>>2]=t,s=0!=(0|a),s&&(i[a>>2]=0),0|pt(e,t))return f=1,B=d,0|f;i[f>>2]=0;e:do{if((0|n)>=1)if(s){c=0,u=1,h=1,o=0,s=e;while(1){if(!(o|c)){if(s=0|H(s,t,4,f),t=0|_(),0==(0|s)&0==(0|t)){s=2;break e}if(0|pt(s,t)){s=1;break e}}if(s=0|H(s,t,0|i[16+(c<<2)>>2],f),t=0|_(),0==(0|s)&0==(0|t)){s=2;break e}if(e=r+(h<<3)|0,i[e>>2]=s,i[e+4>>2]=t,i[a+(h<<2)>>2]=u,o=o+1|0,e=(0|o)==(0|u),A=c+1|0,l=6==(0|A),0|pt(s,t)){s=1;break e}if(u=u+(l&e&1)|0,(0|u)>(0|n)){s=0;break}c=e?l?0:A:c,h=h+1|0,o=e?0:o}}else{c=0,u=1,h=1,o=0,s=e;while(1){if(!(o|c)){if(s=0|H(s,t,4,f),t=0|_(),0==(0|s)&0==(0|t)){s=2;break e}if(0|pt(s,t)){s=1;break e}}if(s=0|H(s,t,0|i[16+(c<<2)>>2],f),t=0|_(),0==(0|s)&0==(0|t)){s=2;break e}if(e=r+(h<<3)|0,i[e>>2]=s,i[e+4>>2]=t,o=o+1|0,e=(0|o)==(0|u),A=c+1|0,l=6==(0|A),0|pt(s,t)){s=1;break e}if(u=u+(l&e&1)|0,(0|u)>(0|n)){s=0;break}c=e?l?0:A:c,h=h+1|0,o=e?0:o}}else s=0}while(0);return f=s,B=d,0|f}function z(e,t,n,r,a,s,o){e|=0,t|=0,n|=0,r|=0,a|=0,s|=0,o|=0;var A=0,l=0,c=0,u=0,h=0,f=0,d=0;if(h=B,B=B+16|0,u=h,0==(0|e)&0==(0|t))B=h;else{if(A=0|zn(0|e,0|t,0|s,((0|s)<0)<<31>>31|0),_(),l=r+(A<<3)|0,f=l,d=0|i[f>>2],f=0|i[f+4>>2],c=(0|d)==(0|e)&(0|f)==(0|t),!(0==(0|d)&0==(0|f)|c))do{A=(A+1|0)%(0|s)|0,l=r+(A<<3)|0,d=l,f=0|i[d>>2],d=0|i[d+4>>2],c=(0|f)==(0|e)&(0|d)==(0|t)}while(!(0==(0|f)&0==(0|d)|c));A=a+(A<<2)|0,c&&(0|i[A>>2])<=(0|o)||(d=l,i[d>>2]=e,i[d+4>>2]=t,i[A>>2]=o,(0|o)>=(0|n)||(d=o+1|0,i[u>>2]=0,f=0|H(e,t,2,u),z(f,0|_(),n,r,a,s,d),i[u>>2]=0,f=0|H(e,t,3,u),z(f,0|_(),n,r,a,s,d),i[u>>2]=0,f=0|H(e,t,1,u),z(f,0|_(),n,r,a,s,d),i[u>>2]=0,f=0|H(e,t,5,u),z(f,0|_(),n,r,a,s,d),i[u>>2]=0,f=0|H(e,t,4,u),z(f,0|_(),n,r,a,s,d),i[u>>2]=0,f=0|H(e,t,6,u),z(f,0|_(),n,r,a,s,d))),B=h}}function H(e,t,n,r){e|=0,t|=0,n|=0,r|=0;var a=0,s=0,o=0,A=0,l=0,c=0,u=0,h=0,f=0,d=0;if((0|i[r>>2])>0){a=0;do{n=0|Se(n),a=a+1|0}while((0|a)<(0|i[r>>2]))}A=0|Hn(0|e,0|t,45),_(),l=127&A,s=0|bt(e,t),a=0|Hn(0|e,0|t,52),_(),a&=15;e:do{if(a)while(1){if(h=3*(15-a|0)|0,f=0|Hn(0|e,0|t,0|h),_(),f&=7,d=0==(0|Ct(a)),a=a+-1|0,u=0|Gn(7,0,0|h),t&=~(0|_()),h=0|Gn(0|i[(d?464:48)+(28*f|0)+(n<<2)>>2],0,0|h),c=0|_(),n=0|i[(d?672:256)+(28*f|0)+(n<<2)>>2],e=h|e&~u,t|=c,!n){n=0;break e}if(!a){o=6;break}}else o=6}while(0);6==(0|o)&&(d=0|i[880+(28*l|0)+(n<<2)>>2],f=0|Gn(0|d,0,45),e|=f,t=0|_()|-1040385&t,n=0|i[4304+(28*l|0)+(n<<2)>>2],127==(127&d|0)&&(d=0|Gn(0|i[880+(28*l|0)+20>>2],0,45),t=0|_()|-1040385&t,n=0|i[4304+(28*l|0)+20>>2],e=0|_t(d|e,t),t=0|_(),i[r>>2]=1+(0|i[r>>2]))),o=0|Hn(0|e,0|t,45),_(),o&=127;e:do{if(0|q(o)){t:do{if(1==(0|bt(e,t))){if((0|l)!=(0|o)){if(0|te(o,0|i[7728+(28*l|0)>>2])){e=0|St(e,t),s=1,t=0|_();break}e=0|_t(e,t),s=1,t=0|_();break}switch(0|s){case 5:e=0|St(e,t),t=0|_(),i[r>>2]=5+(0|i[r>>2]),s=0;break t;case 3:e=0|_t(e,t),t=0|_(),i[r>>2]=1+(0|i[r>>2]),s=0;break t;default:return f=0,d=0,w(0|f),0|d}}else s=0}while(0);if((0|n)>0){a=0;do{e=0|wt(e,t),t=0|_(),a=a+1|0}while((0|a)!=(0|n))}if((0|l)!=(0|o)){if(!(0|Z(o))){if(0!=(0|s)|5!=(0|bt(e,t)))break;i[r>>2]=1+(0|i[r>>2]);break}switch(127&A){case 8:case 118:break e;default:}3!=(0|bt(e,t))&&(i[r>>2]=1+(0|i[r>>2]))}}else if((0|n)>0){a=0;do{e=0|_t(e,t),t=0|_(),a=a+1|0}while((0|a)!=(0|n))}}while(0);return i[r>>2]=((0|i[r>>2])+n|0)%6|0,f=t,d=e,w(0|f),0|d}function G(e,t,n,r){e|=0,t|=0,n|=0,r|=0;var a=0,s=0,o=0,A=0,l=0,c=0,u=0,h=0;if(h=B,B=B+16|0,u=h,!n)return u=r,i[u>>2]=e,i[u+4>>2]=t,u=0,B=h,0|u;i[u>>2]=0;e:do{if(0|pt(e,t))e=1;else{if(s=(0|n)>0,s){a=0,c=e;do{if(c=0|H(c,t,4,u),t=0|_(),0==(0|c)&0==(0|t)){e=2;break e}if(a=a+1|0,0|pt(c,t)){e=1;break e}}while((0|a)<(0|n));if(l=r,i[l>>2]=c,i[l+4>>2]=t,l=n+-1|0,s){s=0,o=1,a=c,e=t;do{if(a=0|H(a,e,2,u),e=0|_(),0==(0|a)&0==(0|e)){e=2;break e}if(A=r+(o<<3)|0,i[A>>2]=a,i[A+4>>2]=e,o=o+1|0,0|pt(a,e)){e=1;break e}s=s+1|0}while((0|s)<(0|n));A=0,s=o;do{if(a=0|H(a,e,3,u),e=0|_(),0==(0|a)&0==(0|e)){e=2;break e}if(o=r+(s<<3)|0,i[o>>2]=a,i[o+4>>2]=e,s=s+1|0,0|pt(a,e)){e=1;break e}A=A+1|0}while((0|A)<(0|n));o=0;do{if(a=0|H(a,e,1,u),e=0|_(),0==(0|a)&0==(0|e)){e=2;break e}if(A=r+(s<<3)|0,i[A>>2]=a,i[A+4>>2]=e,s=s+1|0,0|pt(a,e)){e=1;break e}o=o+1|0}while((0|o)<(0|n));o=0;do{if(a=0|H(a,e,5,u),e=0|_(),0==(0|a)&0==(0|e)){e=2;break e}if(A=r+(s<<3)|0,i[A>>2]=a,i[A+4>>2]=e,s=s+1|0,0|pt(a,e)){e=1;break e}o=o+1|0}while((0|o)<(0|n));o=0;do{if(a=0|H(a,e,4,u),e=0|_(),0==(0|a)&0==(0|e)){e=2;break e}if(A=r+(s<<3)|0,i[A>>2]=a,i[A+4>>2]=e,s=s+1|0,0|pt(a,e)){e=1;break e}o=o+1|0}while((0|o)<(0|n));o=0;while(1){if(a=0|H(a,e,6,u),e=0|_(),0==(0|a)&0==(0|e)){e=2;break e}if((0|o)!=(0|l)){if(A=r+(s<<3)|0,i[A>>2]=a,i[A+4>>2]=e,0|pt(a,e)){e=1;break e}s=s+1|0}if(o=o+1|0,(0|o)>=(0|n)){o=c,s=t;break}}}else o=c,a=c,s=t,e=t}else o=r,i[o>>2]=e,i[o+4>>2]=t,o=e,a=e,s=t,e=t;e=1&((0|o)!=(0|a)|(0|s)!=(0|e))}}while(0);return u=e,B=h,0|u}function V(e,t){e|=0,t|=0;var n=0,r=0,a=0,s=0,o=0,A=0;if(s=B,B=B+48|0,a=s+8|0,r=s,A=e,o=0|i[A+4>>2],n=r,i[n>>2]=i[A>>2],i[n+4>>2]=o,sn(r,a),a=0|Ae(a,t),t=0|i[r>>2],r=0|i[e+8>>2],(0|r)<=0)return A=t,o=(0|a)<(0|A),A=o?A:a,A=A+12|0,B=s,0|A;n=0|i[e+12>>2],e=0;do{t=(0|i[n+(e<<3)>>2])+t|0,e=e+1|0}while((0|e)<(0|r));return A=(0|a)<(0|t),A=A?t:a,A=A+12|0,B=s,0|A}function W(e,t,n){e|=0,t|=0,n|=0;var r=0,a=0,s=0,o=0,A=0,l=0;if(A=B,B=B+48|0,r=A+8|0,a=A,0|Q(e,t,n)){if(l=e,s=0|i[l+4>>2],o=a,i[o>>2]=i[l>>2],i[o+4>>2]=s,sn(a,r),o=0|Ae(r,t),t=0|i[a>>2],s=0|i[e+8>>2],(0|s)>0){a=0|i[e+12>>2],r=0;do{t=(0|i[a+(r<<3)>>2])+t|0,r=r+1|0}while((0|r)!=(0|s))}t=(0|o)<(0|t)?t:o,(0|t)<=-12||(l=t+11|0,jn(0|n,0,8+(((0|l)>0?l:0)<<3)|0)),B=A}else B=A}function Q(e,t,n){e|=0,t|=0,n|=0;var r=0,a=0,s=0,o=0,A=0,l=0,c=0,u=0,h=0,f=0,d=0,p=0,m=0,g=0,v=0,y=0,x=0,b=0,w=0,S=0,E=0,C=0,T=0,D=0,L=0,I=0,P=0,R=0,k=0,O=0;if(O=B,B=B+112|0,I=O+80|0,l=O+72|0,P=O,R=O+56|0,c=e+8|0,k=0|Pn(32+(i[c>>2]<<5)|0),k||M(22848,22448,800,22456),on(e,k),s=e,r=0|i[s+4>>2],A=l,i[A>>2]=i[s>>2],i[A+4>>2]=r,sn(l,I),A=0|Ae(I,t),r=0|i[l>>2],s=0|i[c>>2],(0|s)>0){o=0|i[e+12>>2],a=0;do{r=(0|i[o+(a<<3)>>2])+r|0,a=a+1|0}while((0|a)!=(0|s))}if(A=(0|A)<(0|r)?r:A,L=A+12|0,a=0|kn(L,8),u=0|kn(L,8),i[I>>2]=0,T=e,D=0|i[T+4>>2],r=l,i[r>>2]=i[T>>2],i[r+4>>2]=D,r=0|j(l,L,t,I,a,u),0|r)return Rn(a),Rn(u),Rn(k),k=r,B=O,0|k;e:do{if((0|i[c>>2])>0){s=e+12|0,r=0;while(1){if(o=0|j((0|i[s>>2])+(r<<3)|0,L,t,I,a,u),r=r+1|0,0|o)break;if((0|r)>=(0|i[c>>2]))break e}return Rn(a),Rn(u),Rn(k),k=o,B=O,0|k}}while(0);(0|A)>-12&&jn(0|u,0,((0|L)>1?L:1)<<3|0);e:do{if((0|i[I>>2])>0){D=((0|L)<0)<<31>>31,b=a,w=u,S=a,E=a,C=u,T=a,r=a,g=a,v=u,y=u,x=u,a=u;t:while(1){m=0|i[I>>2],d=0,p=0,s=0;while(1){o=P,A=o+56|0;do{i[o>>2]=0,o=o+4|0}while((0|o)<(0|A));if(t=b+(d<<3)|0,l=0|i[t>>2],t=0|i[t+4>>2],0|N(l,t,1,P,0)){o=P,A=o+56|0;do{i[o>>2]=0,o=o+4|0}while((0|o)<(0|A));o=0|kn(7,4),0|o&&(z(l,t,1,P,o,7,0),Rn(o))}f=0;do{h=P+(f<<3)|0,u=0|i[h>>2],h=0|i[h+4>>2];n:do{if(!(0==(0|u)&0==(0|h))){if(l=0|zn(0|u,0|h,0|L,0|D),_(),o=n+(l<<3)|0,A=o,t=0|i[A>>2],A=0|i[A+4>>2],!(0==(0|t)&0==(0|A))){c=0;while(1){if((0|c)>(0|L))break t;if((0|t)==(0|u)&(0|A)==(0|h))break n;if(l=(l+1|0)%(0|L)|0,o=n+(l<<3)|0,A=o,t=0|i[A>>2],A=0|i[A+4>>2],0==(0|t)&0==(0|A))break;c=c+1|0}}0==(0|u)&0==(0|h)||(Lt(u,h,R),0|An(e,k,R)&&(c=o,i[c>>2]=u,i[c+4>>2]=h,c=w+(s<<3)|0,i[c>>2]=u,i[c+4>>2]=h,s=s+1|0))}}while(0);f=f+1|0}while(f>>>0<7);if(p=p+1|0,(0|p)>=(0|m))break;d=d+1|0}if((0|m)>0&&jn(0|S,0,m<<3|0),i[I>>2]=s,!((0|s)>0))break e;u=a,h=x,f=T,d=y,p=v,m=w,a=g,x=r,y=E,v=S,g=u,r=h,T=C,C=f,E=d,S=p,w=b,b=m}return Rn(E),Rn(C),Rn(k),k=-1,B=O,0|k}r=u}while(0);return Rn(k),Rn(a),Rn(r),k=0,B=O,0|k}function j(e,t,n,r,s,o){e|=0,t|=0,n|=0,r|=0,s|=0,o|=0;var A=0,l=0,c=0,u=0,h=0,f=0,d=0,p=0,m=0,g=0,v=0,y=0,x=0,b=0,w=0,M=0,S=0,E=0,C=0,T=0,D=0,L=0,I=0;if(D=B,B=B+48|0,S=D+32|0,E=D+16|0,C=D,A=0|i[e>>2],(0|A)<=0)return T=0,B=D,0|T;y=e+4|0,x=S+8|0,b=E+8|0,w=C+8|0,M=((0|t)<0)<<31>>31,v=0;e:while(1){l=0|i[y>>2],m=l+(v<<4)|0,i[S>>2]=i[m>>2],i[S+4>>2]=i[m+4>>2],i[S+8>>2]=i[m+8>>2],i[S+12>>2]=i[m+12>>2],(0|v)==(A+-1|0)?(i[E>>2]=i[l>>2],i[E+4>>2]=i[l+4>>2],i[E+8>>2]=i[l+8>>2],i[E+12>>2]=i[l+12>>2]):(m=l+(v+1<<4)|0,i[E>>2]=i[m>>2],i[E+4>>2]=i[m+4>>2],i[E+8>>2]=i[m+8>>2],i[E+12>>2]=i[m+12>>2]),m=0|le(S,E,n);t:do{if((0|m)>0){g=+(0|m),p=0;n:while(1){I=+(m-p|0),L=+(0|p),a[C>>3]=+a[S>>3]*I/g+ +a[E>>3]*L/g,a[w>>3]=+a[x>>3]*I/g+ +a[b>>3]*L/g,f=0|Tt(C,n),d=0|_(),l=0|zn(0|f,0|d,0|t,0|M),_(),A=o+(l<<3)|0,c=A,u=0|i[c>>2],c=0|i[c+4>>2];r:do{if(0==(0|u)&0==(0|c))T=14;else{h=0;while(1){if((0|h)>(0|t)){A=1;break r}if((0|u)==(0|f)&(0|c)==(0|d)){A=7;break r}if(l=(l+1|0)%(0|t)|0,A=o+(l<<3)|0,c=A,u=0|i[c>>2],c=0|i[c+4>>2],0==(0|u)&0==(0|c)){T=14;break}h=h+1|0}}}while(0);switch(14==(0|T)&&(T=0,0==(0|f)&0==(0|d)?A=7:(i[A>>2]=f,i[A+4>>2]=d,A=0|i[r>>2],h=s+(A<<3)|0,i[h>>2]=f,i[h+4>>2]=d,i[r>>2]=A+1,A=0)),7&A){case 7:case 0:break;default:break n}if(p=p+1|0,(0|m)<=(0|p)){T=8;break t}}if(0|A){A=-1,T=20;break e}}else T=8}while(0);if(8==(0|T)&&(T=0),v=v+1|0,A=0|i[e>>2],(0|v)>=(0|A)){A=0,T=20;break}}return 20==(0|T)?(B=D,0|A):0}function Y(e,t,n){e|=0,t|=0,n|=0;var r=0,a=0,s=0,o=0,A=0,l=0,c=0;if(c=B,B=B+176|0,l=c,(0|t)<1)return _n(n,0,0),void(B=c);o=e,o=0|Hn(0|i[o>>2],0|i[o+4>>2],52),_(),_n(n,(0|t)>6?t:6,15&o),o=0;do{if(r=e+(o<<3)|0,It(0|i[r>>2],0|i[r+4>>2],l),r=0|i[l>>2],(0|r)>0){A=0;do{s=l+8+(A<<4)|0,A=A+1|0,r=l+8+(((0|A)%(0|r)|0)<<4)|0,a=0|Tn(n,r,s),a?En(n,a):Cn(n,s,r),r=0|i[l>>2]}while((0|A)<(0|r))}o=o+1|0}while((0|o)!=(0|t));B=c}function X(e,t,n){e|=0,t|=0,n|=0;var r=0,a=0,s=0,o=0;if(s=B,B=B+32|0,r=s,a=s+16|0,Y(e,t,a),i[n>>2]=0,i[n+4>>2]=0,i[n+8>>2]=0,e=0|Sn(a),!e)return Xt(n),Mn(a),void(B=s);do{t=0|Qt(n);do{jt(t,e),o=e+16|0,i[r>>2]=i[o>>2],i[r+4>>2]=i[o+4>>2],i[r+8>>2]=i[o+8>>2],i[r+12>>2]=i[o+12>>2],En(a,e),e=0|Dn(a,r)}while(0!=(0|e));e=0|Sn(a)}while(0!=(0|e));Xt(n),Mn(a),B=s}function q(e){return e|=0,0|i[7728+(28*e|0)+16>>2]}function Z(e){return e|=0,4==(0|e)|117==(0|e)|0}function K(e){return e|=0,0|i[11152+(216*(0|i[e>>2])|0)+(72*(0|i[e+4>>2])|0)+(24*(0|i[e+8>>2])|0)+(i[e+12>>2]<<3)>>2]}function J(e){return e|=0,0|i[11152+(216*(0|i[e>>2])|0)+(72*(0|i[e+4>>2])|0)+(24*(0|i[e+8>>2])|0)+(i[e+12>>2]<<3)+4>>2]}function $(e,t){e|=0,t|=0,e=7728+(28*e|0)|0,i[t>>2]=i[e>>2],i[t+4>>2]=i[e+4>>2],i[t+8>>2]=i[e+8>>2],i[t+12>>2]=i[e+12>>2]}function ee(e,t){e|=0,t|=0;var n=0,r=0;if(t>>>0>20)return t=-1,0|t;do{if((0|i[11152+(216*t|0)>>2])!=(0|e))if((0|i[11152+(216*t|0)+8>>2])!=(0|e))if((0|i[11152+(216*t|0)+16>>2])!=(0|e))if((0|i[11152+(216*t|0)+24>>2])!=(0|e))if((0|i[11152+(216*t|0)+32>>2])!=(0|e))if((0|i[11152+(216*t|0)+40>>2])!=(0|e))if((0|i[11152+(216*t|0)+48>>2])!=(0|e))if((0|i[11152+(216*t|0)+56>>2])!=(0|e))if((0|i[11152+(216*t|0)+64>>2])!=(0|e))if((0|i[11152+(216*t|0)+72>>2])!=(0|e))if((0|i[11152+(216*t|0)+80>>2])!=(0|e))if((0|i[11152+(216*t|0)+88>>2])!=(0|e))if((0|i[11152+(216*t|0)+96>>2])!=(0|e))if((0|i[11152+(216*t|0)+104>>2])!=(0|e))if((0|i[11152+(216*t|0)+112>>2])!=(0|e))if((0|i[11152+(216*t|0)+120>>2])!=(0|e))if((0|i[11152+(216*t|0)+128>>2])!=(0|e)){if((0|i[11152+(216*t|0)+136>>2])!=(0|e)){if((0|i[11152+(216*t|0)+144>>2])==(0|e)){e=0,n=2,r=0;break}if((0|i[11152+(216*t|0)+152>>2])==(0|e)){e=0,n=2,r=1;break}if((0|i[11152+(216*t|0)+160>>2])==(0|e)){e=0,n=2,r=2;break}if((0|i[11152+(216*t|0)+168>>2])==(0|e)){e=1,n=2,r=0;break}if((0|i[11152+(216*t|0)+176>>2])==(0|e)){e=1,n=2,r=1;break}if((0|i[11152+(216*t|0)+184>>2])==(0|e)){e=1,n=2,r=2;break}if((0|i[11152+(216*t|0)+192>>2])==(0|e)){e=2,n=2,r=0;break}if((0|i[11152+(216*t|0)+200>>2])==(0|e)){e=2,n=2,r=1;break}if((0|i[11152+(216*t|0)+208>>2])==(0|e)){e=2,n=2,r=2;break}return e=-1,0|e}e=2,n=1,r=2}else e=2,n=1,r=1;else e=2,n=1,r=0;else e=1,n=1,r=2;else e=1,n=1,r=1;else e=1,n=1,r=0;else e=0,n=1,r=2;else e=0,n=1,r=1;else e=0,n=1,r=0;else e=2,n=0,r=2;else e=2,n=0,r=1;else e=2,n=0,r=0;else e=1,n=0,r=2;else e=1,n=0,r=1;else e=1,n=0,r=0;else e=0,n=0,r=2;else e=0,n=0,r=1;else e=0,n=0,r=0}while(0);return t=0|i[11152+(216*t|0)+(72*n|0)+(24*e|0)+(r<<3)+4>>2],0|t}function te(e,t){return e|=0,t|=0,(0|i[7728+(28*e|0)+20>>2])==(0|t)?(t=1,0|t):(t=(0|i[7728+(28*e|0)+24>>2])==(0|t),0|t)}function ne(e,t){return e|=0,t|=0,0|i[880+(28*e|0)+(t<<2)>>2]}function re(e,t){return e|=0,t|=0,(0|i[880+(28*e|0)>>2])==(0|t)?(t=0,0|t):(0|i[880+(28*e|0)+4>>2])==(0|t)?(t=1,0|t):(0|i[880+(28*e|0)+8>>2])==(0|t)?(t=2,0|t):(0|i[880+(28*e|0)+12>>2])==(0|t)?(t=3,0|t):(0|i[880+(28*e|0)+16>>2])==(0|t)?(t=4,0|t):(0|i[880+(28*e|0)+20>>2])==(0|t)?(t=5,0|t):0|((0|i[880+(28*e|0)+24>>2])==(0|t)?6:7)}function ie(){return 122}function ae(e){e|=0;var t=0,n=0,r=0;t=0;do{Gn(0|t,0,45),r=134225919|_(),n=e+(t<<3)|0,i[n>>2]=-1,i[n+4>>2]=r,t=t+1|0}while(122!=(0|t))}function se(e){return e|=0,+a[e+16>>3]<+a[e+24>>3]|0}function oe(e,t){e|=0,t|=0;var n=0,r=0,i=0;return n=+a[t>>3],n>=+a[e+8>>3]&&n<=+a[e>>3]?(r=+a[e+16>>3],n=+a[e+24>>3],i=+a[t+8>>3],t=i>=n,e=i<=r&1,r>2]=0,o=o+4|0}while((0|o)<(0|c));return Ot(t,s),o=s,c=0|i[o>>2],o=0|i[o+4>>2],Lt(c,o,n),It(c,o,r),u=+Ye(n,r+8|0),a[n>>3]=+a[e>>3],o=n+8|0,a[o>>3]=+a[e+16>>3],a[r>>3]=+a[e+8>>3],c=r+8|0,a[c>>3]=+a[e+24>>3],h=+Ye(n,r),c=~~+v(+h*h/+Vn(+ +A(+(+a[o>>3]-+a[c>>3])/(+a[n>>3]-+a[r>>3])),3)/(u*(2.59807621135*u)*.8)),B=l,0|(0==(0|c)?1:c)}function le(e,t,n){e|=0,t|=0,n|=0;var r=0,a=0,s=0,o=0,A=0,l=0,c=0;A=B,B=B+288|0,r=A+264|0,a=A+96|0,s=A,o=s,l=o+96|0;do{i[o>>2]=0,o=o+4|0}while((0|o)<(0|l));return Ot(n,s),l=s,o=0|i[l>>2],l=0|i[l+4>>2],Lt(o,l,r),It(o,l,a),c=+Ye(r,a+8|0),l=~~+v(+ +Ye(e,t)/(2*c)),B=A,0|(0==(0|l)?1:l)}function ce(e,t,n,r){e|=0,t|=0,n|=0,r|=0,i[e>>2]=t,i[e+4>>2]=n,i[e+8>>2]=r}function ue(e,t){e|=0,t|=0;var n=0,r=0,s=0,o=0,l=0,c=0,u=0,h=0,f=0,d=0,p=0;d=t+8|0,i[d>>2]=0,u=+a[e>>3],l=+A(+u),h=+a[e+8>>3],c=+A(+h)/.8660254037844386,l+=.5*c,n=~~l,e=~~c,l-=+(0|n),c-=+(0|e);do{if(l<.5){if(l<.3333333333333333){if(i[t>>2]=n,c<.5*(l+1)){i[t+4>>2]=e;break}e=e+1|0,i[t+4>>2]=e;break}if(p=1-l,e=(1&!(c>2]=e,p<=c&c<2*l){n=n+1|0,i[t>>2]=n;break}i[t>>2]=n;break}if(!(l<.6666666666666666)){if(n=n+1|0,i[t>>2]=n,c<.5*l){i[t+4>>2]=e;break}e=e+1|0,i[t+4>>2]=e;break}if(c<1-l){if(i[t+4>>2]=e,2*l-1>2]=n;break}}else e=e+1|0,i[t+4>>2]=e;n=n+1|0,i[t>>2]=n}while(0);do{if(u<0){if(1&e){f=(e+1|0)/2|0,f=0|Un(0|n,((0|n)<0)<<31>>31|0,0|f,((0|f)<0)<<31>>31|0),n=~~(+(0|n)-(2*(+(f>>>0)+4294967296*+(0|_()))+1)),i[t>>2]=n;break}f=(0|e)/2|0,f=0|Un(0|n,((0|n)<0)<<31>>31|0,0|f,((0|f)<0)<<31>>31|0),n=~~(+(0|n)-2*(+(f>>>0)+4294967296*+(0|_()))),i[t>>2]=n;break}}while(0);f=t+4|0,h<0&&(n=n-((1|e<<1)/2|0)|0,i[t>>2]=n,e=0-e|0,i[f>>2]=e),r=e-n|0,(0|n)<0?(s=0-n|0,i[f>>2]=r,i[d>>2]=s,i[t>>2]=0,e=r,n=0):s=0,(0|e)<0&&(n=n-e|0,i[t>>2]=n,s=s-e|0,i[d>>2]=s,i[f>>2]=0,e=0),o=n-s|0,r=e-s|0,(0|s)<0&&(i[t>>2]=o,i[f>>2]=r,i[d>>2]=0,e=r,n=o,s=0),r=(0|e)<(0|n)?e:n,r=(0|s)<(0|r)?s:r,(0|r)<=0||(i[t>>2]=n-r,i[f>>2]=e-r,i[d>>2]=s-r)}function he(e){e|=0;var t=0,n=0,r=0,a=0,s=0,o=0;t=0|i[e>>2],o=e+4|0,n=0|i[o>>2],(0|t)<0&&(n=n-t|0,i[o>>2]=n,s=e+8|0,i[s>>2]=(0|i[s>>2])-t,i[e>>2]=0,t=0),(0|n)<0?(t=t-n|0,i[e>>2]=t,s=e+8|0,a=(0|i[s>>2])-n|0,i[s>>2]=a,i[o>>2]=0,n=0):(a=e+8|0,s=a,a=0|i[a>>2]),(0|a)<0&&(t=t-a|0,i[e>>2]=t,n=n-a|0,i[o>>2]=n,i[s>>2]=0,a=0),r=(0|n)<(0|t)?n:t,r=(0|a)<(0|r)?a:r,(0|r)<=0||(i[e>>2]=t-r,i[o>>2]=n-r,i[s>>2]=a-r)}function fe(e,t){e|=0,t|=0;var n=0,r=0;r=0|i[e+8>>2],n=+((0|i[e+4>>2])-r|0),a[t>>3]=+((0|i[e>>2])-r|0)-.5*n,a[t+8>>3]=.8660254037844386*n}function de(e,t,n){e|=0,t|=0,n|=0,i[n>>2]=(0|i[t>>2])+(0|i[e>>2]),i[n+4>>2]=(0|i[t+4>>2])+(0|i[e+4>>2]),i[n+8>>2]=(0|i[t+8>>2])+(0|i[e+8>>2])}function pe(e,t,n){e|=0,t|=0,n|=0,i[n>>2]=(0|i[e>>2])-(0|i[t>>2]),i[n+4>>2]=(0|i[e+4>>2])-(0|i[t+4>>2]),i[n+8>>2]=(0|i[e+8>>2])-(0|i[t+8>>2])}function me(e,t){e|=0,t|=0;var n=0,r=0;n=0|y(0|i[e>>2],t),i[e>>2]=n,n=e+4|0,r=0|y(0|i[n>>2],t),i[n>>2]=r,e=e+8|0,t=0|y(0|i[e>>2],t),i[e>>2]=t}function ge(e){e|=0;var t=0,n=0,r=0,a=0,s=0,o=0,A=0;o=0|i[e>>2],A=(0|o)<0,r=(0|i[e+4>>2])-(A?o:0)|0,s=(0|r)<0,a=(s?0-r|0:0)+((0|i[e+8>>2])-(A?o:0))|0,n=(0|a)<0,e=n?0:a,t=(s?0:r)-(n?a:0)|0,a=(A?0:o)-(s?r:0)-(n?a:0)|0,n=(0|t)<(0|a)?t:a,n=(0|e)<(0|n)?e:n,r=(0|n)>0,e=e-(r?n:0)|0,t=t-(r?n:0)|0;e:do{switch(a-(r?n:0)|0){case 0:switch(0|t){case 0:return A=0==(0|e)?0:1==(0|e)?1:7,0|A;case 1:return A=0==(0|e)?2:1==(0|e)?3:7,0|A;default:break e}case 1:switch(0|t){case 0:return A=0==(0|e)?4:1==(0|e)?5:7,0|A;case 1:if(e)break e;return e=6,0|e;default:break e}default:}}while(0);return A=7,0|A}function ve(e){e|=0;var t=0,n=0,r=0,a=0,s=0,o=0,A=0;o=e+8|0,n=0|i[o>>2],t=(0|i[e>>2])-n|0,A=e+4|0,n=(0|i[A>>2])-n|0,r=0|In(+((3*t|0)-n|0)/7),i[e>>2]=r,t=0|In(+((n<<1)+t|0)/7),i[A>>2]=t,i[o>>2]=0,n=t-r|0,(0|r)<0?(s=0-r|0,i[A>>2]=n,i[o>>2]=s,i[e>>2]=0,t=n,r=0,n=s):n=0,(0|t)<0&&(r=r-t|0,i[e>>2]=r,n=n-t|0,i[o>>2]=n,i[A>>2]=0,t=0),s=r-n|0,a=t-n|0,(0|n)<0?(i[e>>2]=s,i[A>>2]=a,i[o>>2]=0,t=a,a=s,n=0):a=r,r=(0|t)<(0|a)?t:a,r=(0|n)<(0|r)?n:r,(0|r)<=0||(i[e>>2]=a-r,i[A>>2]=t-r,i[o>>2]=n-r)}function ye(e){e|=0;var t=0,n=0,r=0,a=0,s=0,o=0,A=0;o=e+8|0,n=0|i[o>>2],t=(0|i[e>>2])-n|0,A=e+4|0,n=(0|i[A>>2])-n|0,r=0|In(+((t<<1)+n|0)/7),i[e>>2]=r,t=0|In(+((3*n|0)-t|0)/7),i[A>>2]=t,i[o>>2]=0,n=t-r|0,(0|r)<0?(s=0-r|0,i[A>>2]=n,i[o>>2]=s,i[e>>2]=0,t=n,r=0,n=s):n=0,(0|t)<0&&(r=r-t|0,i[e>>2]=r,n=n-t|0,i[o>>2]=n,i[A>>2]=0,t=0),s=r-n|0,a=t-n|0,(0|n)<0?(i[e>>2]=s,i[A>>2]=a,i[o>>2]=0,t=a,a=s,n=0):a=r,r=(0|t)<(0|a)?t:a,r=(0|n)<(0|r)?n:r,(0|r)<=0||(i[e>>2]=a-r,i[A>>2]=t-r,i[o>>2]=n-r)}function xe(e){e|=0;var t=0,n=0,r=0,a=0,s=0,o=0,A=0;t=0|i[e>>2],o=e+4|0,n=0|i[o>>2],A=e+8|0,r=0|i[A>>2],a=n+(3*t|0)|0,i[e>>2]=a,n=r+(3*n|0)|0,i[o>>2]=n,t=(3*r|0)+t|0,i[A>>2]=t,r=n-a|0,(0|a)<0?(t=t-a|0,i[o>>2]=r,i[A>>2]=t,i[e>>2]=0,n=r,r=0):r=a,(0|n)<0&&(r=r-n|0,i[e>>2]=r,t=t-n|0,i[A>>2]=t,i[o>>2]=0,n=0),s=r-t|0,a=n-t|0,(0|t)<0?(i[e>>2]=s,i[o>>2]=a,i[A>>2]=0,r=s,t=0):a=n,n=(0|a)<(0|r)?a:r,n=(0|t)<(0|n)?t:n,(0|n)<=0||(i[e>>2]=r-n,i[o>>2]=a-n,i[A>>2]=t-n)}function be(e){e|=0;var t=0,n=0,r=0,a=0,s=0,o=0,A=0;a=0|i[e>>2],o=e+4|0,t=0|i[o>>2],A=e+8|0,n=0|i[A>>2],r=(3*t|0)+a|0,a=n+(3*a|0)|0,i[e>>2]=a,i[o>>2]=r,t=(3*n|0)+t|0,i[A>>2]=t,n=r-a|0,(0|a)<0?(t=t-a|0,i[o>>2]=n,i[A>>2]=t,i[e>>2]=0,a=0):n=r,(0|n)<0&&(a=a-n|0,i[e>>2]=a,t=t-n|0,i[A>>2]=t,i[o>>2]=0,n=0),s=a-t|0,r=n-t|0,(0|t)<0?(i[e>>2]=s,i[o>>2]=r,i[A>>2]=0,a=s,t=0):r=n,n=(0|r)<(0|a)?r:a,n=(0|t)<(0|n)?t:n,(0|n)<=0||(i[e>>2]=a-n,i[o>>2]=r-n,i[A>>2]=t-n)}function we(e,t){e|=0,t|=0;var n=0,r=0,a=0,s=0,o=0,A=0;(t+-1|0)>>>0>=6||(a=(0|i[15472+(12*t|0)>>2])+(0|i[e>>2])|0,i[e>>2]=a,A=e+4|0,r=(0|i[15472+(12*t|0)+4>>2])+(0|i[A>>2])|0,i[A>>2]=r,o=e+8|0,t=(0|i[15472+(12*t|0)+8>>2])+(0|i[o>>2])|0,i[o>>2]=t,n=r-a|0,(0|a)<0?(t=t-a|0,i[A>>2]=n,i[o>>2]=t,i[e>>2]=0,r=0):(n=r,r=a),(0|n)<0&&(r=r-n|0,i[e>>2]=r,t=t-n|0,i[o>>2]=t,i[A>>2]=0,n=0),s=r-t|0,a=n-t|0,(0|t)<0?(i[e>>2]=s,i[A>>2]=a,i[o>>2]=0,r=s,t=0):a=n,n=(0|a)<(0|r)?a:r,n=(0|t)<(0|n)?t:n,(0|n)<=0||(i[e>>2]=r-n,i[A>>2]=a-n,i[o>>2]=t-n))}function _e(e){e|=0;var t=0,n=0,r=0,a=0,s=0,o=0,A=0;a=0|i[e>>2],o=e+4|0,t=0|i[o>>2],A=e+8|0,n=0|i[A>>2],r=t+a|0,a=n+a|0,i[e>>2]=a,i[o>>2]=r,t=n+t|0,i[A>>2]=t,n=r-a|0,(0|a)<0?(t=t-a|0,i[o>>2]=n,i[A>>2]=t,i[e>>2]=0,r=0):(n=r,r=a),(0|n)<0&&(r=r-n|0,i[e>>2]=r,t=t-n|0,i[A>>2]=t,i[o>>2]=0,n=0),s=r-t|0,a=n-t|0,(0|t)<0?(i[e>>2]=s,i[o>>2]=a,i[A>>2]=0,r=s,t=0):a=n,n=(0|a)<(0|r)?a:r,n=(0|t)<(0|n)?t:n,(0|n)<=0||(i[e>>2]=r-n,i[o>>2]=a-n,i[A>>2]=t-n)}function Me(e){e|=0;var t=0,n=0,r=0,a=0,s=0,o=0,A=0;t=0|i[e>>2],o=e+4|0,r=0|i[o>>2],A=e+8|0,n=0|i[A>>2],a=r+t|0,i[e>>2]=a,r=n+r|0,i[o>>2]=r,t=n+t|0,i[A>>2]=t,n=r-a|0,(0|a)<0?(t=t-a|0,i[o>>2]=n,i[A>>2]=t,i[e>>2]=0,r=0):(n=r,r=a),(0|n)<0&&(r=r-n|0,i[e>>2]=r,t=t-n|0,i[A>>2]=t,i[o>>2]=0,n=0),s=r-t|0,a=n-t|0,(0|t)<0?(i[e>>2]=s,i[o>>2]=a,i[A>>2]=0,r=s,t=0):a=n,n=(0|a)<(0|r)?a:r,n=(0|t)<(0|n)?t:n,(0|n)<=0||(i[e>>2]=r-n,i[o>>2]=a-n,i[A>>2]=t-n)}function Se(e){switch(e|=0,0|e){case 1:e=5;break;case 5:e=4;break;case 4:e=6;break;case 6:e=2;break;case 2:e=3;break;case 3:e=1;break;default:}return 0|e}function Ee(e){switch(e|=0,0|e){case 1:e=3;break;case 3:e=2;break;case 2:e=6;break;case 6:e=4;break;case 4:e=5;break;case 5:e=1;break;default:}return 0|e}function Ce(e){e|=0;var t=0,n=0,r=0,a=0,s=0,o=0,A=0;t=0|i[e>>2],o=e+4|0,n=0|i[o>>2],A=e+8|0,r=0|i[A>>2],a=n+(t<<1)|0,i[e>>2]=a,n=r+(n<<1)|0,i[o>>2]=n,t=(r<<1)+t|0,i[A>>2]=t,r=n-a|0,(0|a)<0?(t=t-a|0,i[o>>2]=r,i[A>>2]=t,i[e>>2]=0,n=r,r=0):r=a,(0|n)<0&&(r=r-n|0,i[e>>2]=r,t=t-n|0,i[A>>2]=t,i[o>>2]=0,n=0),s=r-t|0,a=n-t|0,(0|t)<0?(i[e>>2]=s,i[o>>2]=a,i[A>>2]=0,r=s,t=0):a=n,n=(0|a)<(0|r)?a:r,n=(0|t)<(0|n)?t:n,(0|n)<=0||(i[e>>2]=r-n,i[o>>2]=a-n,i[A>>2]=t-n)}function Te(e){e|=0;var t=0,n=0,r=0,a=0,s=0,o=0,A=0;a=0|i[e>>2],o=e+4|0,t=0|i[o>>2],A=e+8|0,n=0|i[A>>2],r=(t<<1)+a|0,a=n+(a<<1)|0,i[e>>2]=a,i[o>>2]=r,t=(n<<1)+t|0,i[A>>2]=t,n=r-a|0,(0|a)<0?(t=t-a|0,i[o>>2]=n,i[A>>2]=t,i[e>>2]=0,a=0):n=r,(0|n)<0&&(a=a-n|0,i[e>>2]=a,t=t-n|0,i[A>>2]=t,i[o>>2]=0,n=0),s=a-t|0,r=n-t|0,(0|t)<0?(i[e>>2]=s,i[o>>2]=r,i[A>>2]=0,a=s,t=0):r=n,n=(0|r)<(0|a)?r:a,n=(0|t)<(0|n)?t:n,(0|n)<=0||(i[e>>2]=a-n,i[o>>2]=r-n,i[A>>2]=t-n)}function De(e,t){e|=0,t|=0;var n=0,r=0,a=0,s=0,o=0,A=0;return o=(0|i[e>>2])-(0|i[t>>2])|0,A=(0|o)<0,r=(0|i[e+4>>2])-(0|i[t+4>>2])-(A?o:0)|0,s=(0|r)<0,a=(A?0-o|0:0)+(0|i[e+8>>2])-(0|i[t+8>>2])+(s?0-r|0:0)|0,e=(0|a)<0,t=e?0:a,n=(s?0:r)-(e?a:0)|0,a=(A?0:o)-(s?r:0)-(e?a:0)|0,e=(0|n)<(0|a)?n:a,e=(0|t)<(0|e)?t:e,r=(0|e)>0,t=t-(r?e:0)|0,n=n-(r?e:0)|0,e=a-(r?e:0)|0,e=(0|e)>-1?e:0-e|0,n=(0|n)>-1?n:0-n|0,t=(0|t)>-1?t:0-t|0,t=(0|n)>(0|t)?n:t,0|((0|e)>(0|t)?e:t)}function Be(e,t){e|=0,t|=0;var n=0;n=0|i[e+8>>2],i[t>>2]=(0|i[e>>2])-n,i[t+4>>2]=(0|i[e+4>>2])-n}function Le(e,t){e|=0,t|=0;var n=0,r=0,a=0,s=0,o=0,A=0;r=0|i[e>>2],i[t>>2]=r,e=0|i[e+4>>2],o=t+4|0,i[o>>2]=e,A=t+8|0,i[A>>2]=0,n=e-r|0,(0|r)<0?(e=0-r|0,i[o>>2]=n,i[A>>2]=e,i[t>>2]=0,r=0):(n=e,e=0),(0|n)<0&&(r=r-n|0,i[t>>2]=r,e=e-n|0,i[A>>2]=e,i[o>>2]=0,n=0),s=r-e|0,a=n-e|0,(0|e)<0?(i[t>>2]=s,i[o>>2]=a,i[A>>2]=0,n=a,a=s,e=0):a=r,r=(0|n)<(0|a)?n:a,r=(0|e)<(0|r)?e:r,(0|r)<=0||(i[t>>2]=a-r,i[o>>2]=n-r,i[A>>2]=e-r)}function Ie(e){e|=0;var t=0,n=0,r=0,a=0;t=e+8|0,a=0|i[t>>2],n=a-(0|i[e>>2])|0,i[e>>2]=n,r=e+4|0,e=(0|i[r>>2])-a|0,i[r>>2]=e,i[t>>2]=0-(e+n)}function Pe(e){e|=0;var t=0,n=0,r=0,a=0,s=0,o=0,A=0;n=0|i[e>>2],t=0-n|0,i[e>>2]=t,o=e+8|0,i[o>>2]=0,A=e+4|0,r=0|i[A>>2],a=r+n|0,(0|n)>0?(i[A>>2]=a,i[o>>2]=n,i[e>>2]=0,t=0,r=a):n=0,(0|r)<0?(s=t-r|0,i[e>>2]=s,n=n-r|0,i[o>>2]=n,i[A>>2]=0,a=s-n|0,t=0-n|0,(0|n)<0?(i[e>>2]=a,i[A>>2]=t,i[o>>2]=0,r=t,n=0):(r=0,a=s)):a=t,t=(0|r)<(0|a)?r:a,t=(0|n)<(0|t)?n:t,(0|t)<=0||(i[e>>2]=a-t,i[A>>2]=r-t,i[o>>2]=n-t)}function Re(e,t,n){e|=0,t|=0,n|=0;var r=0,i=0;r=B,B=B+16|0,i=r,ke(e,t,n,i),ue(i,n+4|0),B=r}function ke(e,t,n,r){e|=0,t|=0,n|=0,r|=0;var s=0,o=0,A=0,l=0,c=0;if(c=B,B=B+32|0,o=c,xn(e,o),i[n>>2]=0,s=+yn(15888,o),A=+yn(15912,o),A>2]=1,s=A),A=+yn(15936,o),A>2]=2,s=A),A=+yn(15960,o),A>2]=3,s=A),A=+yn(15984,o),A>2]=4,s=A),A=+yn(16008,o),A>2]=5,s=A),A=+yn(16032,o),A>2]=6,s=A),A=+yn(16056,o),A>2]=7,s=A),A=+yn(16080,o),A>2]=8,s=A),A=+yn(16104,o),A>2]=9,s=A),A=+yn(16128,o),A>2]=10,s=A),A=+yn(16152,o),A>2]=11,s=A),A=+yn(16176,o),A>2]=12,s=A),A=+yn(16200,o),A>2]=13,s=A),A=+yn(16224,o),A>2]=14,s=A),A=+yn(16248,o),A>2]=15,s=A),A=+yn(16272,o),A>2]=16,s=A),A=+yn(16296,o),A>2]=17,s=A),A=+yn(16320,o),A>2]=18,s=A),A=+yn(16344,o),A>2]=19,s=A),A=+d(+(1-.5*s)),A<1e-16)return i[r>>2]=0,i[r+4>>2]=0,i[r+8>>2]=0,i[r+12>>2]=0,void(B=c);if(n=0|i[n>>2],s=+a[16368+(24*n|0)>>3],s=+We(s-+We(+qe(15568+(n<<4)|0,e))),l=0|Ct(t)?+We(s+-.3334731722518321):s,s=+f(+A)/.381966011250105,(0|t)>0){o=0;do{s*=2.6457513110645907,o=o+1|0}while((0|o)!=(0|t))}A=+u(+l)*s,a[r>>3]=A,l=+h(+l)*s,a[r+8>>3]=l,B=c}function Oe(e,t,n,r,s){e|=0,t|=0,n|=0,r|=0,s|=0;var o=0,A=0;if(o=+mn(e),o<1e-16)return t=15568+(t<<4)|0,i[s>>2]=i[t>>2],i[s+4>>2]=i[t+4>>2],i[s+8>>2]=i[t+8>>2],void(i[s+12>>2]=i[t+12>>2]);if(A=+g(+ +a[e+8>>3],+ +a[e>>3]),(0|n)>0){e=0;do{o/=2.6457513110645907,e=e+1|0}while((0|e)!=(0|n))}r?(o/=3,n=0==(0|Ct(n)),o=+m(.381966011250105*(n?o:o/2.6457513110645907))):(o=+m(.381966011250105*o),0|Ct(n)&&(A=+We(A+.3334731722518321))),Ze(15568+(t<<4)|0,+We(+a[16368+(24*t|0)>>3]-A),o,s)}function Ue(e,t,n){e|=0,t|=0,n|=0;var r=0,a=0;r=B,B=B+16|0,a=r,fe(e+4|0,a),Oe(a,0|i[e>>2],t,0,n),B=r}function Fe(e,t,n,r,s){e|=0,t|=0,n|=0,r|=0,s|=0;var o=0,A=0,l=0,c=0,u=0,h=0,f=0,d=0,p=0,m=0,g=0,v=0,y=0,x=0,b=0,w=0,_=0,S=0,E=0,C=0,T=0,D=0,L=0,I=0,P=0,R=0,k=0,O=0;if(R=B,B=B+272|0,o=R+256|0,x=R+240|0,L=R,I=R+224|0,P=R+208|0,b=R+176|0,w=R+160|0,_=R+192|0,S=R+144|0,E=R+128|0,C=R+112|0,T=R+96|0,D=R+80|0,i[o>>2]=t,i[x>>2]=i[e>>2],i[x+4>>2]=i[e+4>>2],i[x+8>>2]=i[e+8>>2],i[x+12>>2]=i[e+12>>2],Ne(x,o,L),i[s>>2]=0,x=r+n+(5==(0|r)&1)|0,(0|x)<=(0|n))B=R;else{c=0|i[o>>2],u=I+4|0,h=b+4|0,f=n+5|0,d=16848+(c<<2)|0,p=16928+(c<<2)|0,m=E+8|0,g=C+8|0,v=T+8|0,y=P+4|0,l=n;e:while(1){A=L+(((0|l)%5|0)<<4)|0,i[P>>2]=i[A>>2],i[P+4>>2]=i[A+4>>2],i[P+8>>2]=i[A+8>>2],i[P+12>>2]=i[A+12>>2];do{}while(2==(0|ze(P,c,0,1)));if((0|l)>(0|n)&0!=(0|Ct(t))){if(i[b>>2]=i[P>>2],i[b+4>>2]=i[P+4>>2],i[b+8>>2]=i[P+8>>2],i[b+12>>2]=i[P+12>>2],fe(u,w),r=0|i[b>>2],o=0|i[17008+(80*r|0)+(i[I>>2]<<2)>>2],i[b>>2]=i[18608+(80*r|0)+(20*o|0)>>2],A=0|i[18608+(80*r|0)+(20*o|0)+16>>2],(0|A)>0){e=0;do{_e(h),e=e+1|0}while((0|e)<(0|A))}switch(A=18608+(80*r|0)+(20*o|0)+4|0,i[_>>2]=i[A>>2],i[_+4>>2]=i[A+4>>2],i[_+8>>2]=i[A+8>>2],me(_,3*(0|i[d>>2])|0),de(h,_,h),he(h),fe(h,S),k=+(0|i[p>>2]),a[E>>3]=3*k,a[m>>3]=0,O=-1.5*k,a[C>>3]=O,a[g>>3]=2.598076211353316*k,a[T>>3]=O,a[v>>3]=-2.598076211353316*k,0|i[17008+(80*(0|i[b>>2])|0)+(i[P>>2]<<2)>>2]){case 1:e=C,r=E;break;case 3:e=T,r=C;break;case 2:e=E,r=T;break;default:e=12;break e}gn(w,S,r,e,D),Oe(D,0|i[b>>2],c,1,s+8+(i[s>>2]<<4)|0),i[s>>2]=1+(0|i[s>>2])}if((0|l)<(0|f)&&(fe(y,b),Oe(b,0|i[P>>2],c,1,s+8+(i[s>>2]<<4)|0),i[s>>2]=1+(0|i[s>>2])),i[I>>2]=i[P>>2],i[I+4>>2]=i[P+4>>2],i[I+8>>2]=i[P+8>>2],i[I+12>>2]=i[P+12>>2],l=l+1|0,(0|l)>=(0|x)){e=3;break}}3!=(0|e)?12==(0|e)&&M(22474,22521,581,22531):B=R}}function Ne(e,t,n){e|=0,t|=0,n|=0;var r=0,a=0,s=0,o=0,A=0,l=0;l=B,B=B+128|0,r=l+64|0,a=l,s=r,o=20208,A=s+60|0;do{i[s>>2]=i[o>>2],s=s+4|0,o=o+4|0}while((0|s)<(0|A));s=a,o=20272,A=s+60|0;do{i[s>>2]=i[o>>2],s=s+4|0,o=o+4|0}while((0|s)<(0|A));A=0==(0|Ct(0|i[t>>2])),r=A?r:a,a=e+4|0,Ce(a),Te(a),0|Ct(0|i[t>>2])&&(be(a),i[t>>2]=1+(0|i[t>>2])),i[n>>2]=i[e>>2],t=n+4|0,de(a,r,t),he(t),i[n+16>>2]=i[e>>2],t=n+20|0,de(a,r+12|0,t),he(t),i[n+32>>2]=i[e>>2],t=n+36|0,de(a,r+24|0,t),he(t),i[n+48>>2]=i[e>>2],t=n+52|0,de(a,r+36|0,t),he(t),i[n+64>>2]=i[e>>2],n=n+68|0,de(a,r+48|0,n),he(n),B=l}function ze(e,t,n,r){e|=0,t|=0,n|=0,r|=0;var a=0,s=0,o=0,A=0,l=0,c=0,u=0,h=0,f=0,d=0,p=0;if(p=B,B=B+32|0,f=p+12|0,A=p,d=e+4|0,h=0|i[16928+(t<<2)>>2],u=0!=(0|r),h=u?3*h|0:h,a=0|i[d>>2],c=e+8|0,o=0|i[c>>2],u){if(s=e+12|0,r=0|i[s>>2],a=o+a+r|0,(0|a)==(0|h))return d=1,B=p,0|d;l=s}else l=e+12|0,r=0|i[l>>2],a=o+a+r|0;if((0|a)<=(0|h))return d=0,B=p,0|d;do{if((0|r)>0){if(r=0|i[e>>2],(0|o)>0){s=18608+(80*r|0)+60|0,r=e;break}r=18608+(80*r|0)+40|0,n?(ce(f,h,0,0),pe(d,f,A),Me(A),de(A,f,d),s=r,r=e):(s=r,r=e)}else s=18608+(80*(0|i[e>>2])|0)+20|0,r=e}while(0);if(i[r>>2]=i[s>>2],a=s+16|0,(0|i[a>>2])>0){r=0;do{_e(d),r=r+1|0}while((0|r)<(0|i[a>>2]))}return e=s+4|0,i[f>>2]=i[e>>2],i[f+4>>2]=i[e+4>>2],i[f+8>>2]=i[e+8>>2],t=0|i[16848+(t<<2)>>2],me(f,u?3*t|0:t),de(d,f,d),he(d),r=u&&((0|i[c>>2])+(0|i[d>>2])+(0|i[l>>2])|0)==(0|h)?1:2,d=r,B=p,0|d}function He(e,t){e|=0,t|=0;var n=0;do{n=0|ze(e,t,0,1)}while(2==(0|n));return 0|n}function Ge(e,t,n,r,s){e|=0,t|=0,n|=0,r|=0,s|=0;var o=0,A=0,l=0,c=0,u=0,h=0,f=0,d=0,p=0,m=0,g=0,v=0,y=0,x=0,b=0,w=0,_=0,S=0,E=0,C=0,T=0,D=0,L=0;if(T=B,B=B+240|0,o=T+224|0,_=T+208|0,S=T,E=T+192|0,C=T+176|0,v=T+160|0,y=T+144|0,x=T+128|0,b=T+112|0,w=T+96|0,i[o>>2]=t,i[_>>2]=i[e>>2],i[_+4>>2]=i[e+4>>2],i[_+8>>2]=i[e+8>>2],i[_+12>>2]=i[e+12>>2],Ve(_,o,S),i[s>>2]=0,g=r+n+(6==(0|r)&1)|0,(0|g)<=(0|n))B=T;else{c=0|i[o>>2],u=n+6|0,h=16928+(c<<2)|0,f=y+8|0,d=x+8|0,p=b+8|0,m=E+4|0,A=0,l=n,r=-1;e:while(1){if(o=(0|l)%6|0,e=S+(o<<4)|0,i[E>>2]=i[e>>2],i[E+4>>2]=i[e+4>>2],i[E+8>>2]=i[e+8>>2],i[E+12>>2]=i[e+12>>2],e=A,A=0|ze(E,c,0,1),(0|l)>(0|n)&0!=(0|Ct(t))&&(1!=(0|e)&&(0|i[E>>2])!=(0|r))){switch(fe(S+(((o+5|0)%6|0)<<4)+4|0,C),fe(S+(o<<4)+4|0,v),D=+(0|i[h>>2]),a[y>>3]=3*D,a[f>>3]=0,L=-1.5*D,a[x>>3]=L,a[d>>3]=2.598076211353316*D,a[b>>3]=L,a[p>>3]=-2.598076211353316*D,o=0|i[_>>2],0|i[17008+(80*o|0)+(((0|r)==(0|o)?0|i[E>>2]:r)<<2)>>2]){case 1:e=x,r=y;break;case 3:e=b,r=x;break;case 2:e=y,r=b;break;default:e=8;break e}gn(C,v,r,e,w),0|vn(C,w)||0|vn(v,w)||(Oe(w,0|i[_>>2],c,1,s+8+(i[s>>2]<<4)|0),i[s>>2]=1+(0|i[s>>2]))}if((0|l)<(0|u)&&(fe(m,C),Oe(C,0|i[E>>2],c,1,s+8+(i[s>>2]<<4)|0),i[s>>2]=1+(0|i[s>>2])),l=l+1|0,(0|l)>=(0|g)){e=3;break}r=0|i[E>>2]}3!=(0|e)?8==(0|e)&&M(22557,22521,746,22602):B=T}}function Ve(e,t,n){e|=0,t|=0,n|=0;var r=0,a=0,s=0,o=0,A=0,l=0;l=B,B=B+160|0,r=l+80|0,a=l,s=r,o=20336,A=s+72|0;do{i[s>>2]=i[o>>2],s=s+4|0,o=o+4|0}while((0|s)<(0|A));s=a,o=20416,A=s+72|0;do{i[s>>2]=i[o>>2],s=s+4|0,o=o+4|0}while((0|s)<(0|A));A=0==(0|Ct(0|i[t>>2])),r=A?r:a,a=e+4|0,Ce(a),Te(a),0|Ct(0|i[t>>2])&&(be(a),i[t>>2]=1+(0|i[t>>2])),i[n>>2]=i[e>>2],t=n+4|0,de(a,r,t),he(t),i[n+16>>2]=i[e>>2],t=n+20|0,de(a,r+12|0,t),he(t),i[n+32>>2]=i[e>>2],t=n+36|0,de(a,r+24|0,t),he(t),i[n+48>>2]=i[e>>2],t=n+52|0,de(a,r+36|0,t),he(t),i[n+64>>2]=i[e>>2],t=n+68|0,de(a,r+48|0,t),he(t),i[n+80>>2]=i[e>>2],n=n+84|0,de(a,r+60|0,n),he(n),B=l}function We(e){e=+e;var t=0;return t=e<0?e+6.283185307179586:e,+(e>=6.283185307179586?t+-6.283185307179586:t)}function Qe(e,t){return e|=0,t|=0,+A(+(+a[e>>3]-+a[t>>3]))<17453292519943298e-27?(t=+A(+(+a[e+8>>3]-+a[t+8>>3]))<17453292519943298e-27,0|t):(t=0,0|t)}function je(e,t){e|=0,t|=0;var n=0,r=0,i=0,s=0;return i=+a[t>>3],r=+a[e>>3],s=+h(.5*(i-r)),n=+h(.5*(+a[t+8>>3]-+a[e+8>>3])),n=s*s+n*(+u(+i)*+u(+r)*n),2*+g(+ +l(+n),+ +l(+(1-n)))}function Ye(e,t){e|=0,t|=0;var n=0,r=0,i=0,s=0;return i=+a[t>>3],r=+a[e>>3],s=+h(.5*(i-r)),n=+h(.5*(+a[t+8>>3]-+a[e+8>>3])),n=s*s+n*(+u(+i)*+u(+r)*n),2*+g(+ +l(+n),+ +l(+(1-n)))*6371.007180918475}function Xe(e,t){e|=0,t|=0;var n=0,r=0,i=0,s=0;return i=+a[t>>3],r=+a[e>>3],s=+h(.5*(i-r)),n=+h(.5*(+a[t+8>>3]-+a[e+8>>3])),n=s*s+n*(+u(+i)*+u(+r)*n),2*+g(+ +l(+n),+ +l(+(1-n)))*6371.007180918475*1e3}function qe(e,t){e|=0,t|=0;var n=0,r=0,i=0,s=0,o=0;return s=+a[t>>3],r=+u(+s),i=+a[t+8>>3]-+a[e+8>>3],o=r*+h(+i),n=+a[e>>3],+ +g(+o,+(+h(+s)*+u(+n)-+u(+i)*(r*+h(+n))))}function Ze(e,t,n,r){e|=0,t=+t,n=+n,r|=0;var s=0,o=0,l=0,c=0;if(n<1e-16)return i[r>>2]=i[e>>2],i[r+4>>2]=i[e+4>>2],i[r+8>>2]=i[e+8>>2],void(i[r+12>>2]=i[e+12>>2]);o=t<0?t+6.283185307179586:t,o=t>=6.283185307179586?o+-6.283185307179586:o;do{if(!(o<1e-16)){if(s=+A(+(o+-3.141592653589793))<1e-16,t=+a[e>>3],s){t-=n,a[r>>3]=t,s=r;break}if(l=+u(+n),n=+h(+n),t=l*+h(+t)+ +u(+o)*(n*+u(+t)),t=t>1?1:t,t=+p(+(t<-1?-1:t)),a[r>>3]=t,+A(+(t+-1.5707963267948966))<1e-16)return a[r>>3]=1.5707963267948966,void(a[r+8>>3]=0);if(+A(+(t+1.5707963267948966))<1e-16)return a[r>>3]=-1.5707963267948966,void(a[r+8>>3]=0);if(c=+u(+t),o=n*+h(+o)/c,n=+a[e>>3],t=(l-+h(+t)*+h(+n))/+u(+n)/c,l=o>1?1:o,t=t>1?1:t,t=+a[e+8>>3]+ +g(+(l<-1?-1:l),+(t<-1?-1:t)),t>3.141592653589793)do{t+=-6.283185307179586}while(t>3.141592653589793);if(t<-3.141592653589793)do{t+=6.283185307179586}while(t<-3.141592653589793);return void(a[r+8>>3]=t)}t=+a[e>>3]+n,a[r>>3]=t,s=r}while(0);if(+A(+(t+-1.5707963267948966))<1e-16)return a[s>>3]=1.5707963267948966,void(a[r+8>>3]=0);if(+A(+(t+1.5707963267948966))<1e-16)return a[s>>3]=-1.5707963267948966,void(a[r+8>>3]=0);if(t=+a[e+8>>3],t>3.141592653589793)do{t+=-6.283185307179586}while(t>3.141592653589793);if(t<-3.141592653589793)do{t+=6.283185307179586}while(t<-3.141592653589793);a[r+8>>3]=t}function Ke(e){return e|=0,+ +a[20496+(e<<3)>>3]}function Je(e){return e|=0,+ +a[20624+(e<<3)>>3]}function $e(e){return e|=0,+ +a[20752+(e<<3)>>3]}function et(e){return e|=0,+ +a[20880+(e<<3)>>3]}function tt(e){e|=0;var t=0;return t=21008+(e<<3)|0,e=0|i[t>>2],w(0|i[t+4>>2]),0|e}function nt(e,t,n){e|=0,t|=0,n|=0;var r=0,i=0,s=0,o=0,A=0,c=0,d=0,p=0,v=0,y=0;return y=+a[t>>3],p=+a[e>>3],c=+h(.5*(y-p)),s=+a[t+8>>3],d=+a[e+8>>3],o=+h(.5*(s-d)),A=+u(+p),v=+u(+y),o=c*c+o*(v*A*o),o=2*+g(+ +l(+o),+ +l(+(1-o))),c=+a[n>>3],y=+h(.5*(c-y)),r=+a[n+8>>3],s=+h(.5*(r-s)),i=+u(+c),s=y*y+s*(v*i*s),s=2*+g(+ +l(+s),+ +l(+(1-s))),c=+h(.5*(p-c)),r=+h(.5*(d-r)),r=c*c+r*(A*i*r),r=2*+g(+ +l(+r),+ +l(+(1-r))),i=.5*(o+s+r),4*+m(+ +l(+ +f(.5*i)*+f(.5*(i-o))*+f(.5*(i-s))*+f(.5*(i-r))))}function rt(e,t){e|=0,t|=0;var n=0,r=0,a=0,s=0,o=0;if(s=B,B=B+192|0,r=s+168|0,a=s,Lt(e,t,r),It(e,t,a),t=0|i[a>>2],(0|t)<=0)return n=0,B=s,+n;if(n=+nt(a+8|0,a+8+((1!=(0|t)&1)<<4)|0,r)+0,1==(0|t))return B=s,+n;e=1;do{o=e,e=e+1|0,n+=+nt(a+8+(o<<4)|0,a+8+(((0|e)%(0|t)|0)<<4)|0,r)}while((0|e)<(0|t));return B=s,+n}function it(e,t){e|=0,t|=0;var n=0,r=0,a=0,s=0,o=0;if(s=B,B=B+192|0,r=s+168|0,a=s,Lt(e,t,r),It(e,t,a),t=0|i[a>>2],(0|t)>0){if(n=+nt(a+8|0,a+8+((1!=(0|t)&1)<<4)|0,r)+0,1!=(0|t)){e=1;do{o=e,e=e+1|0,n+=+nt(a+8+(o<<4)|0,a+8+(((0|e)%(0|t)|0)<<4)|0,r)}while((0|e)<(0|t))}}else n=0;return B=s,6371.007180918475*n*6371.007180918475}function at(e,t){e|=0,t|=0;var n=0,r=0,a=0,s=0,o=0;if(s=B,B=B+192|0,r=s+168|0,a=s,Lt(e,t,r),It(e,t,a),t=0|i[a>>2],(0|t)>0){if(n=+nt(a+8|0,a+8+((1!=(0|t)&1)<<4)|0,r)+0,1!=(0|t)){e=1;do{o=e,e=e+1|0,n+=+nt(a+8+(o<<4)|0,a+8+(((0|e)%(0|t)|0)<<4)|0,r)}while((0|e)<(0|t))}}else n=0;return B=s,6371.007180918475*n*6371.007180918475*1e3*1e3}function st(e,t){e|=0,t|=0;var n=0,r=0,s=0,o=0,A=0,c=0,f=0,d=0;if(A=B,B=B+176|0,o=A,Wt(e,t,o),e=0|i[o>>2],(0|e)<=1)return s=0,B=A,+s;t=e+-1|0,e=0,n=0,r=+a[o+8>>3],s=+a[o+16>>3];do{e=e+1|0,f=r,r=+a[o+8+(e<<4)>>3],d=+h(.5*(r-f)),c=s,s=+a[o+8+(e<<4)+8>>3],c=+h(.5*(s-c)),c=d*d+c*(+u(+r)*+u(+f)*c),n+=2*+g(+ +l(+c),+ +l(+(1-c)))}while((0|e)<(0|t));return B=A,+n}function ot(e,t){e|=0,t|=0;var n=0,r=0,s=0,o=0,A=0,c=0,f=0,d=0;if(A=B,B=B+176|0,o=A,Wt(e,t,o),e=0|i[o>>2],(0|e)<=1)return s=0,B=A,+s;t=e+-1|0,e=0,n=0,r=+a[o+8>>3],s=+a[o+16>>3];do{e=e+1|0,f=r,r=+a[o+8+(e<<4)>>3],d=+h(.5*(r-f)),c=s,s=+a[o+8+(e<<4)+8>>3],c=+h(.5*(s-c)),c=d*d+c*(+u(+f)*+u(+r)*c),n+=2*+g(+ +l(+c),+ +l(+(1-c)))}while((0|e)!=(0|t));return d=6371.007180918475*n,B=A,+d}function At(e,t){e|=0,t|=0;var n=0,r=0,s=0,o=0,A=0,c=0,f=0,d=0;if(A=B,B=B+176|0,o=A,Wt(e,t,o),e=0|i[o>>2],(0|e)<=1)return s=0,B=A,+s;t=e+-1|0,e=0,n=0,r=+a[o+8>>3],s=+a[o+16>>3];do{e=e+1|0,f=r,r=+a[o+8+(e<<4)>>3],d=+h(.5*(r-f)),c=s,s=+a[o+8+(e<<4)+8>>3],c=+h(.5*(s-c)),c=d*d+c*(+u(+f)*+u(+r)*c),n+=2*+g(+ +l(+c),+ +l(+(1-c)))}while((0|e)!=(0|t));return d=6371.007180918475*n*1e3,B=A,+d}function lt(e,t){return e|=0,t|=0,t=0|Hn(0|e,0|t,52),_(),15&t|0}function ct(e,t){return e|=0,t|=0,t=0|Hn(0|e,0|t,45),_(),127&t|0}function ut(e,t){e|=0,t|=0;var n=0,r=0,i=0,a=0,s=0,o=0;if(!(!0&134217728==(-16777216&t|0)))return t=0,0|t;if(s=0|Hn(0|e,0|t,45),_(),s&=127,s>>>0>121)return t=0,0|t;n=0|Hn(0|e,0|t,52),_(),n&=15;do{if(0|n){i=1,r=0;while(1){if(a=0|Hn(0|e,0|t,3*(15-i|0)|0),_(),a&=7,0!=(0|a)&(1^r)){if(1==(0|a)&0!=(0|q(s))){o=0,r=13;break}r=1}if(7==(0|a)){o=0,r=13;break}if(!(i>>>0>>0)){r=9;break}i=i+1|0}if(9==(0|r)){if(15!=(0|n))break;return o=1,0|o}if(13==(0|r))return 0|o}}while(0);while(1){if(o=0|Hn(0|e,0|t,3*(14-n|0)|0),_(),!(7==(7&o|0)&!0)){o=0,r=13;break}if(!(n>>>0<14)){o=1,r=13;break}n=n+1|0}return 13==(0|r)?0|o:0}function ht(e,t,n){e|=0,t|=0,n|=0;var r=0,i=0;if(r=0|Hn(0|e,0|t,52),_(),r&=15,(0|r)>=(0|n)){if((0|r)!=(0|n))if(n>>>0<=15){if(i=0|Gn(0|n,0,52),e|=i,t=0|_()|-15728641&t,(0|r)>(0|n))do{i=0|Gn(7,0,3*(14-n|0)|0),n=n+1|0,e|=i,t=0|_()|t}while((0|n)<(0|r))}else t=0,e=0}else t=0,e=0;return w(0|t),0|e}function ft(e,t,n){return e|=0,t|=0,n|=0,e=0|Hn(0|e,0|t,52),_(),e&=15,(0|n)<16&(0|e)<=(0|n)?(n=0|rn(7,n-e|0),0|n):(n=0,0|n)}function dt(e,t,n,r){e|=0,t|=0,n|=0,r|=0;var a=0,s=0,o=0,A=0,l=0,c=0,u=0;if(o=0|Hn(0|e,0|t,52),_(),o&=15,(0|n)<16&(0|o)<=(0|n)){if((0|o)==(0|n))return n=r,i[n>>2]=e,void(i[n+4>>2]=t);if(l=0|rn(7,n-o|0),c=(0|l)/7|0,A=0|Hn(0|e,0|t,45),_(),0|q(127&A)){e:do{if(o){s=1;while(1){if(a=0|Hn(0|e,0|t,3*(15-s|0)|0),_(),a&=7,0|a)break e;if(!(s>>>0>>0)){a=0;break}s=s+1|0}}else a=0}while(0);s=0==(0|a)}else s=0;if(u=0|Gn(o+1|0,0,52),a=0|_()|-15728641&t,A=3*(14-o|0)|0,t=0|Gn(7,0,0|A),t=(u|e)&~t,o=a&~(0|_()),dt(t,o,n,r),a=r+(c<<3)|0,!s)return u=0|Gn(1,0,0|A),dt(u|t,0|_()|o,n,a),u=a+(c<<3)|0,l=0|Gn(2,0,0|A),dt(l|t,0|_()|o,n,u),u=u+(c<<3)|0,l=0|Gn(3,0,0|A),dt(l|t,0|_()|o,n,u),u=u+(c<<3)|0,l=0|Gn(4,0,0|A),dt(l|t,0|_()|o,n,u),u=u+(c<<3)|0,l=0|Gn(5,0,0|A),dt(l|t,0|_()|o,n,u),l=0|Gn(6,0,0|A),void dt(l|t,0|_()|o,n,u+(c<<3)|0);s=a+(c<<3)|0,(0|l)>6&&(l=a+8|0,u=(s>>>0>l>>>0?s:l)+-1+(0-a)|0,jn(0|a,0,u+8&-8|0),a=l+(u>>>3<<3)|0),u=0|Gn(2,0,0|A),dt(u|t,0|_()|o,n,a),u=a+(c<<3)|0,l=0|Gn(3,0,0|A),dt(l|t,0|_()|o,n,u),u=u+(c<<3)|0,l=0|Gn(4,0,0|A),dt(l|t,0|_()|o,n,u),u=u+(c<<3)|0,l=0|Gn(5,0,0|A),dt(l|t,0|_()|o,n,u),l=0|Gn(6,0,0|A),dt(l|t,0|_()|o,n,u+(c<<3)|0)}}function pt(e,t){e|=0,t|=0;var n=0,r=0,i=0;if(i=0|Hn(0|e,0|t,45),_(),!(0|q(127&i)))return i=0,0|i;i=0|Hn(0|e,0|t,52),_(),i&=15;e:do{if(i){r=1;while(1){if(n=0|Hn(0|e,0|t,3*(15-r|0)|0),_(),n&=7,0|n)break e;if(!(r>>>0>>0)){n=0;break}r=r+1|0}}else n=0}while(0);return i=0==(0|n)&1,0|i}function mt(e,t,n){e|=0,t|=0,n|=0;var r=0,i=0;if(r=0|Hn(0|e,0|t,52),_(),r&=15,(0|n)<16&(0|r)<=(0|n)){if((0|r)!=(0|n)&&(i=0|Gn(0|n,0,52),e|=i,t=0|_()|-15728641&t,(0|r)<(0|n)))do{i=0|Gn(7,0,3*(14-r|0)|0),r=r+1|0,e&=~i,t&=~(0|_())}while((0|r)<(0|n))}else t=0,e=0;return w(0|t),0|e}function gt(e,t,n){e|=0,t|=0,n|=0;var r=0,a=0,s=0,o=0,A=0,l=0,c=0,u=0,h=0,f=0,d=0,p=0,m=0,g=0,v=0,y=0,x=0,b=0,w=0,M=0,S=0,E=0;if(!n)return S=0,0|S;if(a=e,r=0|i[a>>2],a=0|i[a+4>>2],!0&0==(15728640&a|0)){if((0|n)<=0)return S=0,0|S;if(S=t,i[S>>2]=r,i[S+4>>2]=a,1==(0|n))return S=0,0|S;r=1;do{w=e+(r<<3)|0,M=0|i[w+4>>2],S=t+(r<<3)|0,i[S>>2]=i[w>>2],i[S+4>>2]=M,r=r+1|0}while((0|r)!=(0|n));return r=0,0|r}if(w=n<<3,M=0|Pn(w),!M)return S=-3,0|S;if(Qn(0|M,0|e,0|w),b=0|kn(n,8),!b)return Rn(M),S=-3,0|S;r=n;e:while(1){o=M,u=0|i[o>>2],o=0|i[o+4>>2],y=0|Hn(0|u,0|o,52),_(),y&=15,x=y+-1|0,v=(0|r)>0;t:do{if(v){if(g=((0|r)<0)<<31>>31,p=0|Gn(0|x,0,52),m=0|_(),x>>>0>15){a=0,e=u,n=o;while(1){if(!(0==(0|e)&0==(0|n))){if(s=0|Hn(0|e,0|n,52),_(),s&=15,A=(0|s)<(0|x),s=(0|s)==(0|x),c=A?0:s?e:0,e=A?0:s?n:0,n=0|zn(0|c,0|e,0|r,0|g),_(),s=b+(n<<3)|0,A=s,l=0|i[A>>2],A=0|i[A+4>>2],0==(0|l)&0==(0|A))n=c;else{p=0,d=n,f=A,n=c;while(1){if((0|p)>(0|r)){S=41;break e}if((0|l)==(0|n)&(-117440513&f|0)==(0|e)){c=0|Hn(0|l,0|f,56),_(),c&=7,h=c+1|0,m=0|Hn(0|l,0|f,45),_();n:do{if(0|q(127&m)){if(l=0|Hn(0|l,0|f,52),_(),l&=15,!l){A=6;break}A=1;while(1){if(m=0|Gn(7,0,3*(15-A|0)|0),!(0==(m&n|0)&0==((0|_())&e|0))){A=7;break n}if(!(A>>>0>>0)){A=6;break}A=A+1|0}}else A=7}while(0);if((c+2|0)>>>0>A>>>0){S=51;break e}m=0|Gn(0|h,0,56),e=0|_()|-117440513&e,A=s,i[A>>2]=0,i[A+4>>2]=0,A=d,n|=m}else A=(d+1|0)%(0|r)|0;if(s=b+(A<<3)|0,f=s,l=0|i[f>>2],f=0|i[f+4>>2],0==(0|l)&0==(0|f))break;p=p+1|0,d=A}}m=s,i[m>>2]=n,i[m+4>>2]=e}if(a=a+1|0,(0|a)>=(0|r))break t;n=M+(a<<3)|0,e=0|i[n>>2],n=0|i[n+4>>2]}}a=0,e=u,n=o;while(1){if(!(0==(0|e)&0==(0|n))){if(A=0|Hn(0|e,0|n,52),_(),A&=15,(0|A)>=(0|x)){if((0|A)!=(0|x)&&(e|=p,n=-15728641&n|m,A>>>0>=y>>>0)){s=x;do{d=0|Gn(7,0,3*(14-s|0)|0),s=s+1|0,e|=d,n=0|_()|n}while(s>>>0>>0)}}else e=0,n=0;if(A=0|zn(0|e,0|n,0|r,0|g),_(),s=b+(A<<3)|0,l=s,c=0|i[l>>2],l=0|i[l+4>>2],!(0==(0|c)&0==(0|l))){d=0;while(1){if((0|d)>(0|r)){S=41;break e}if((0|c)==(0|e)&(-117440513&l|0)==(0|n)){h=0|Hn(0|c,0|l,56),_(),h&=7,f=h+1|0,E=0|Hn(0|c,0|l,45),_();n:do{if(0|q(127&E)){if(c=0|Hn(0|c,0|l,52),_(),c&=15,!c){l=6;break}l=1;while(1){if(E=0|Gn(7,0,3*(15-l|0)|0),!(0==(E&e|0)&0==((0|_())&n|0))){l=7;break n}if(!(l>>>0>>0)){l=6;break}l=l+1|0}}else l=7}while(0);if((h+2|0)>>>0>l>>>0){S=51;break e}E=0|Gn(0|f,0,56),n=0|_()|-117440513&n,f=s,i[f>>2]=0,i[f+4>>2]=0,e|=E}else A=(A+1|0)%(0|r)|0;if(s=b+(A<<3)|0,l=s,c=0|i[l>>2],l=0|i[l+4>>2],0==(0|c)&0==(0|l))break;d=d+1|0}}E=s,i[E>>2]=e,i[E+4>>2]=n}if(a=a+1|0,(0|a)>=(0|r))break t;n=M+(a<<3)|0,e=0|i[n>>2],n=0|i[n+4>>2]}}}while(0);if((r+5|0)>>>0<11){S=99;break}if(m=0|kn((0|r)/6|0,8),!m){S=58;break}t:do{if(v){d=0,f=0;do{if(A=b+(d<<3)|0,e=A,a=0|i[e>>2],e=0|i[e+4>>2],!(0==(0|a)&0==(0|e))){l=0|Hn(0|a,0|e,56),_(),l&=7,n=l+1|0,c=-117440513&e,E=0|Hn(0|a,0|e,45),_();n:do{if(0|q(127&E)){if(h=0|Hn(0|a,0|e,52),_(),h&=15,0|h){s=1;while(1){if(E=0|Gn(7,0,3*(15-s|0)|0),!(0==(a&E|0)&0==(c&(0|_())|0)))break n;if(!(s>>>0>>0))break;s=s+1|0}}e=0|Gn(0|n,0,56),a|=e,e=0|_()|c,n=A,i[n>>2]=a,i[n+4>>2]=e,n=l+2|0}}while(0);7==(0|n)&&(E=m+(f<<3)|0,i[E>>2]=a,i[E+4>>2]=-117440513&e,f=f+1|0)}d=d+1|0}while((0|d)!=(0|r));if(v){if(p=((0|r)<0)<<31>>31,h=0|Gn(0|x,0,52),d=0|_(),x>>>0>15){e=0,a=0;while(1){do{if(!(0==(0|u)&0==(0|o))){l=0|Hn(0|u,0|o,52),_(),l&=15,s=(0|l)<(0|x),l=(0|l)==(0|x),A=s?0:l?u:0,l=s?0:l?o:0,s=0|zn(0|A,0|l,0|r,0|p),_(),n=0;while(1){if((0|n)>(0|r)){S=98;break e}if(E=b+(s<<3)|0,c=0|i[E+4>>2],(-117440513&c|0)==(0|l)&&(0|i[E>>2])==(0|A)){S=70;break}if(s=(s+1|0)%(0|r)|0,E=b+(s<<3)|0,(0|i[E>>2])==(0|A)&&(0|i[E+4>>2])==(0|l))break;n=n+1|0}if(70==(0|S)&&(S=0,!0&100663296==(117440512&c|0)))break;E=t+(a<<3)|0,i[E>>2]=u,i[E+4>>2]=o,a=a+1|0}}while(0);if(e=e+1|0,(0|e)>=(0|r)){r=f;break t}o=M+(e<<3)|0,u=0|i[o>>2],o=0|i[o+4>>2]}}e=0,a=0;while(1){do{if(!(0==(0|u)&0==(0|o))){if(l=0|Hn(0|u,0|o,52),_(),l&=15,(0|l)>=(0|x))if((0|l)!=(0|x))if(n=u|h,s=-15728641&o|d,l>>>0>>0)l=s;else{A=x;do{E=0|Gn(7,0,3*(14-A|0)|0),A=A+1|0,n|=E,s=0|_()|s}while(A>>>0>>0);l=s}else n=u,l=o;else n=0,l=0;A=0|zn(0|n,0|l,0|r,0|p),_(),s=0;while(1){if((0|s)>(0|r)){S=98;break e}if(E=b+(A<<3)|0,c=0|i[E+4>>2],(-117440513&c|0)==(0|l)&&(0|i[E>>2])==(0|n)){S=93;break}if(A=(A+1|0)%(0|r)|0,E=b+(A<<3)|0,(0|i[E>>2])==(0|n)&&(0|i[E+4>>2])==(0|l))break;s=s+1|0}if(93==(0|S)&&(S=0,!0&100663296==(117440512&c|0)))break;E=t+(a<<3)|0,i[E>>2]=u,i[E+4>>2]=o,a=a+1|0}}while(0);if(e=e+1|0,(0|e)>=(0|r)){r=f;break t}o=M+(e<<3)|0,u=0|i[o>>2],o=0|i[o+4>>2]}}else a=0,r=f}else a=0,r=0}while(0);if(jn(0|b,0,0|w),Qn(0|M,0|m,r<<3|0),Rn(m),!r)break;t=t+(a<<3)|0}return 41==(0|S)?(Rn(M),Rn(b),E=-1,0|E):51==(0|S)?(Rn(M),Rn(b),E=-2,0|E):58==(0|S)?(Rn(M),Rn(b),E=-3,0|E):98==(0|S)?(Rn(m),Rn(M),Rn(b),E=-1,0|E):(99==(0|S)&&Qn(0|t,0|M,r<<3|0),Rn(M),Rn(b),E=0,0|E)}function vt(e,t,n,r,a){e|=0,t|=0,n|=0,r|=0,a|=0;var s=0,o=0,A=0,l=0,c=0,u=0;if((0|t)<=0)return a=0,0|a;if((0|a)>=16){s=0;while(1){if(u=e+(s<<3)|0,!(0==(0|i[u>>2])&0==(0|i[u+4>>2]))){s=14;break}if(s=s+1|0,(0|s)>=(0|t)){o=0,s=16;break}}if(14==(0|s))return 0|((0|r)>0?-2:-1);if(16==(0|s))return 0|o}s=0,u=0;e:while(1){c=e+(u<<3)|0,A=c,o=0|i[A>>2],A=0|i[A+4>>2];do{if(!(0==(0|o)&0==(0|A))){if((0|s)>=(0|r)){o=-1,s=16;break e}if(l=0|Hn(0|o,0|A,52),_(),l&=15,(0|l)>(0|a)){o=-2,s=16;break e}if((0|l)==(0|a)){c=n+(s<<3)|0,i[c>>2]=o,i[c+4>>2]=A,s=s+1|0;break}if(o=(0|rn(7,a-l|0))+s|0,(0|o)>(0|r)){o=-1,s=16;break e}dt(0|i[c>>2],0|i[c+4>>2],a,n+(s<<3)|0),s=o}}while(0);if(u=u+1|0,(0|u)>=(0|t)){o=0,s=16;break}}return 16==(0|s)?0|o:0}function yt(e,t,n){e|=0,t|=0,n|=0;var r=0,a=0,s=0,o=0;if((0|t)<=0)return n=0,0|n;if((0|n)>=16){r=0;while(1){if(o=e+(r<<3)|0,!(0==(0|i[o>>2])&0==(0|i[o+4>>2]))){r=-1,a=13;break}if(r=r+1|0,(0|r)>=(0|t)){r=0,a=13;break}}if(13==(0|a))return 0|r}r=0,o=0;e:while(1){a=e+(o<<3)|0,s=0|i[a>>2],a=0|i[a+4>>2];do{if(!(0==(0|s)&0==(0|a))){if(a=0|Hn(0|s,0|a,52),_(),a&=15,(0|a)>(0|n)){r=-1,a=13;break e}if((0|a)==(0|n)){r=r+1|0;break}r=(0|rn(7,n-a|0))+r|0;break}}while(0);if(o=o+1|0,(0|o)>=(0|t)){a=13;break}}return 13==(0|a)?0|r:0}function xt(e,t){return e|=0,t|=0,t=0|Hn(0|e,0|t,52),_(),1&t|0}function bt(e,t){e|=0,t|=0;var n=0,r=0,i=0;if(i=0|Hn(0|e,0|t,52),_(),i&=15,!i)return i=0,0|i;r=1;while(1){if(n=0|Hn(0|e,0|t,3*(15-r|0)|0),_(),n&=7,0|n){r=5;break}if(!(r>>>0>>0)){n=0,r=5;break}r=r+1|0}return 5==(0|r)?0|n:0}function wt(e,t){e|=0,t|=0;var n=0,r=0,i=0,a=0,s=0,o=0,A=0;if(A=0|Hn(0|e,0|t,52),_(),A&=15,!A)return o=t,A=e,w(0|o),0|A;o=1,n=0;while(1){a=3*(15-o|0)|0,r=0|Gn(7,0,0|a),i=0|_(),s=0|Hn(0|e,0|t,0|a),_(),a=0|Gn(0|Se(7&s),0,0|a),s=0|_(),e=a|e&~r,t=s|t&~i;e:do{if(!n)if(0==(a&r|0)&0==(s&i|0))n=0;else if(r=0|Hn(0|e,0|t,52),_(),r&=15,r){n=1;t:while(1){switch(s=0|Hn(0|e,0|t,3*(15-n|0)|0),_(),7&s){case 1:break t;case 0:break;default:n=1;break e}if(!(n>>>0>>0)){n=1;break e}n=n+1|0}n=1;while(1){if(s=3*(15-n|0)|0,i=0|Hn(0|e,0|t,0|s),_(),a=0|Gn(7,0,0|s),t&=~(0|_()),s=0|Gn(0|Se(7&i),0,0|s),e=e&~a|s,t=0|t|_(),!(n>>>0>>0)){n=1;break}n=n+1|0}}else n=1}while(0);if(!(o>>>0>>0))break;o=o+1|0}return w(0|t),0|e}function _t(e,t){e|=0,t|=0;var n=0,r=0,i=0,a=0,s=0;if(r=0|Hn(0|e,0|t,52),_(),r&=15,!r)return n=t,r=e,w(0|n),0|r;n=1;while(1){if(a=3*(15-n|0)|0,s=0|Hn(0|e,0|t,0|a),_(),i=0|Gn(7,0,0|a),t&=~(0|_()),a=0|Gn(0|Se(7&s),0,0|a),e=a|e&~i,t=0|_()|t,!(n>>>0>>0))break;n=n+1|0}return w(0|t),0|e}function Mt(e,t){e|=0,t|=0;var n=0,r=0,i=0,a=0,s=0,o=0,A=0;if(A=0|Hn(0|e,0|t,52),_(),A&=15,!A)return o=t,A=e,w(0|o),0|A;o=1,n=0;while(1){a=3*(15-o|0)|0,r=0|Gn(7,0,0|a),i=0|_(),s=0|Hn(0|e,0|t,0|a),_(),a=0|Gn(0|Ee(7&s),0,0|a),s=0|_(),e=a|e&~r,t=s|t&~i;e:do{if(!n)if(0==(a&r|0)&0==(s&i|0))n=0;else if(r=0|Hn(0|e,0|t,52),_(),r&=15,r){n=1;t:while(1){switch(s=0|Hn(0|e,0|t,3*(15-n|0)|0),_(),7&s){case 1:break t;case 0:break;default:n=1;break e}if(!(n>>>0>>0)){n=1;break e}n=n+1|0}n=1;while(1){if(i=3*(15-n|0)|0,a=0|Gn(7,0,0|i),s=t&~(0|_()),t=0|Hn(0|e,0|t,0|i),_(),t=0|Gn(0|Ee(7&t),0,0|i),e=e&~a|t,t=0|s|_(),!(n>>>0>>0)){n=1;break}n=n+1|0}}else n=1}while(0);if(!(o>>>0>>0))break;o=o+1|0}return w(0|t),0|e}function St(e,t){e|=0,t|=0;var n=0,r=0,i=0,a=0,s=0;if(r=0|Hn(0|e,0|t,52),_(),r&=15,!r)return n=t,r=e,w(0|n),0|r;n=1;while(1){if(s=3*(15-n|0)|0,a=0|Gn(7,0,0|s),i=t&~(0|_()),t=0|Hn(0|e,0|t,0|s),_(),t=0|Gn(0|Ee(7&t),0,0|s),e=t|e&~a,t=0|_()|i,!(n>>>0>>0))break;n=n+1|0}return w(0|t),0|e}function Et(e,t){e|=0,t|=0;var n=0,r=0,a=0,s=0,o=0,A=0,l=0,c=0,u=0;if(l=B,B=B+64|0,A=l+40|0,r=l+24|0,a=l+12|0,s=l,Gn(0|t,0,52),n=134225919|_(),!t)return(0|i[e+4>>2])>2||(0|i[e+8>>2])>2||(0|i[e+12>>2])>2?(o=0,A=0,w(0|o),B=l,0|A):(Gn(0|K(e),0,45),o=0|_()|n,A=-1,w(0|o),B=l,0|A);if(i[A>>2]=i[e>>2],i[A+4>>2]=i[e+4>>2],i[A+8>>2]=i[e+8>>2],i[A+12>>2]=i[e+12>>2],o=A+4|0,(0|t)>0){e=-1;while(1){if(i[r>>2]=i[o>>2],i[r+4>>2]=i[o+4>>2],i[r+8>>2]=i[o+8>>2],1&t?(ve(o),i[a>>2]=i[o>>2],i[a+4>>2]=i[o+4>>2],i[a+8>>2]=i[o+8>>2],xe(a)):(ye(o),i[a>>2]=i[o>>2],i[a+4>>2]=i[o+4>>2],i[a+8>>2]=i[o+8>>2],be(a)),pe(r,a,s),he(s),u=3*(15-t|0)|0,c=0|Gn(7,0,0|u),n&=~(0|_()),u=0|Gn(0|ge(s),0,0|u),e=u|e&~c,n=0|_()|n,!((0|t)>1))break;t=t+-1|0}}else e=-1;e:do{if((0|i[o>>2])<=2&&(0|i[A+8>>2])<=2&&(0|i[A+12>>2])<=2){if(r=0|K(A),t=0|Gn(0|r,0,45),t|=e,e=0|_()|-1040385&n,s=0|J(A),!(0|q(r))){if((0|s)<=0)break;a=0;while(1){if(r=0|Hn(0|t,0|e,52),_(),r&=15,r){n=1;while(1){if(u=3*(15-n|0)|0,A=0|Hn(0|t,0|e,0|u),_(),c=0|Gn(7,0,0|u),e&=~(0|_()),u=0|Gn(0|Se(7&A),0,0|u),t=t&~c|u,e=0|e|_(),!(n>>>0>>0))break;n=n+1|0}}if(a=a+1|0,(0|a)==(0|s))break e}}a=0|Hn(0|t,0|e,52),_(),a&=15;t:do{if(a){n=1;n:while(1){switch(u=0|Hn(0|t,0|e,3*(15-n|0)|0),_(),7&u){case 1:break n;case 0:break;default:break t}if(!(n>>>0>>0))break t;n=n+1|0}if(0|te(r,0|i[A>>2])){n=1;while(1){if(A=3*(15-n|0)|0,c=0|Gn(7,0,0|A),u=e&~(0|_()),e=0|Hn(0|t,0|e,0|A),_(),e=0|Gn(0|Ee(7&e),0,0|A),t=t&~c|e,e=0|u|_(),!(n>>>0>>0))break;n=n+1|0}}else{n=1;while(1){if(u=3*(15-n|0)|0,A=0|Hn(0|t,0|e,0|u),_(),c=0|Gn(7,0,0|u),e&=~(0|_()),u=0|Gn(0|Se(7&A),0,0|u),t=t&~c|u,e=0|e|_(),!(n>>>0>>0))break;n=n+1|0}}}}while(0);if((0|s)>0){n=0;do{t=0|wt(t,e),e=0|_(),n=n+1|0}while((0|n)!=(0|s))}}else t=0,e=0}while(0);return c=e,u=t,w(0|c),B=l,0|u}function Ct(e){return e|=0,0|(0|e)%2}function Tt(e,t){e|=0,t|=0;var n=0,r=0;return r=B,B=B+16|0,n=r,t>>>0<=15&&2146435072!=(2146435072&i[e+4>>2]|0)&&2146435072!=(2146435072&i[e+8+4>>2]|0)?(Re(e,t,n),t=0|Et(n,t),e=0|_()):(e=0,t=0),w(0|e),B=r,0|t}function Dt(e,t,n){e|=0,t|=0,n|=0;var r=0,a=0,s=0,o=0;if(a=n+4|0,s=0|Hn(0|e,0|t,52),_(),s&=15,o=0|Hn(0|e,0|t,45),_(),r=0==(0|s),0|q(127&o)){if(r)return o=1,0|o;r=1}else{if(r)return o=0,0|o;r=0==(0|i[a>>2])&&0==(0|i[n+8>>2])?0!=(0|i[n+12>>2])&1:1}n=1;while(1){if(1&n?xe(a):be(a),o=0|Hn(0|e,0|t,3*(15-n|0)|0),_(),we(a,7&o),!(n>>>0>>0))break;n=n+1|0}return 0|r}function Bt(e,t,n){e|=0,t|=0,n|=0;var r=0,a=0,s=0,o=0,A=0,l=0,c=0,u=0;u=B,B=B+16|0,l=u,c=0|Hn(0|e,0|t,45),_(),c&=127;e:do{if(0!=(0|q(c))&&(s=0|Hn(0|e,0|t,52),_(),s&=15,0!=(0|s))){r=1;t:while(1){switch(A=0|Hn(0|e,0|t,3*(15-r|0)|0),_(),7&A){case 5:break t;case 0:break;default:r=t;break e}if(!(r>>>0>>0)){r=t;break e}r=r+1|0}a=1,r=t;while(1){if(t=3*(15-a|0)|0,o=0|Gn(7,0,0|t),A=r&~(0|_()),r=0|Hn(0|e,0|r,0|t),_(),r=0|Gn(0|Ee(7&r),0,0|t),e=e&~o|r,r=0|A|_(),!(a>>>0>>0))break;a=a+1|0}}else r=t}while(0);if(A=7728+(28*c|0)|0,i[n>>2]=i[A>>2],i[n+4>>2]=i[A+4>>2],i[n+8>>2]=i[A+8>>2],i[n+12>>2]=i[A+12>>2],0|Dt(e,r,n)){if(o=n+4|0,i[l>>2]=i[o>>2],i[l+4>>2]=i[o+4>>2],i[l+8>>2]=i[o+8>>2],s=0|Hn(0|e,0|r,52),_(),A=15&s,1&s?(be(o),s=A+1|0):s=A,0|q(c)){e:do{if(A){t=1;while(1){if(a=0|Hn(0|e,0|r,3*(15-t|0)|0),_(),a&=7,0|a){r=a;break e}if(!(t>>>0>>0)){r=0;break}t=t+1|0}}else r=0}while(0);r=4==(0|r)&1}else r=0;if(0|ze(n,s,r,0)){if(0|q(c))do{}while(0!=(0|ze(n,s,0,0)));(0|s)!=(0|A)&&ye(o)}else(0|s)!=(0|A)&&(i[o>>2]=i[l>>2],i[o+4>>2]=i[l+4>>2],i[o+8>>2]=i[l+8>>2]);B=u}else B=u}function Lt(e,t,n){e|=0,t|=0,n|=0;var r=0,i=0;r=B,B=B+16|0,i=r,Bt(e,t,i),t=0|Hn(0|e,0|t,52),_(),Ue(i,15&t,n),B=r}function It(e,t,n){e|=0,t|=0,n|=0;var r=0,i=0,a=0,s=0,o=0;s=B,B=B+16|0,a=s,Bt(e,t,a),r=0|Hn(0|e,0|t,45),_(),r=0==(0|q(127&r)),i=0|Hn(0|e,0|t,52),_(),i&=15;e:do{if(!r){if(0|i){r=1;while(1){if(o=0|Gn(7,0,3*(15-r|0)|0),!(0==(o&e|0)&0==((0|_())&t|0)))break e;if(!(r>>>0>>0))break;r=r+1|0}}return Fe(a,i,0,5,n),void(B=s)}}while(0);Ge(a,i,0,6,n),B=s}function Pt(e,t){e|=0,t|=0;var n=0,r=0,i=0;if(r=0|Hn(0|e,0|t,45),_(),!(0|q(127&r)))return r=2,0|r;if(r=0|Hn(0|e,0|t,52),_(),r&=15,!r)return r=5,0|r;n=1;while(1){if(i=0|Gn(7,0,3*(15-n|0)|0),!(0==(i&e|0)&0==((0|_())&t|0))){n=2,e=6;break}if(!(n>>>0>>0)){n=5,e=6;break}n=n+1|0}return 6==(0|e)?0|n:0}function Rt(e,t,n){e|=0,t|=0,n|=0;var r=0,a=0,s=0,o=0,A=0,l=0,c=0,u=0,h=0;h=B,B=B+128|0,c=h+112|0,s=h+96|0,u=h,a=0|Hn(0|e,0|t,52),_(),A=15&a,i[c>>2]=A,o=0|Hn(0|e,0|t,45),_(),o&=127;e:do{if(0|q(o)){if(0|A){r=1;while(1){if(l=0|Gn(7,0,3*(15-r|0)|0),!(0==(l&e|0)&0==((0|_())&t|0))){a=0;break e}if(!(r>>>0>>0))break;r=r+1|0}}if(!(1&a))return l=0|Gn(A+1|0,0,52),u=0|_()|-15728641&t,c=0|Gn(7,0,3*(14-A|0)|0),Rt((l|e)&~c,u&~(0|_()),n),void(B=h);a=1}else a=0}while(0);Bt(e,t,s),a?(Ne(s,c,u),l=5):(Ve(s,c,u),l=6);e:do{if(0|q(o))if(A){r=1;while(1){if(o=0|Gn(7,0,3*(15-r|0)|0),!(0==(o&e|0)&0==((0|_())&t|0))){r=8;break e}if(!(r>>>0>>0)){r=20;break}r=r+1|0}}else r=20;else r=8}while(0);if(jn(0|n,-1,0|r),a){a=0;do{s=u+(a<<4)|0,He(s,0|i[c>>2]),s=0|i[s>>2],r=0;while(1){if(o=n+(r<<2)|0,A=0|i[o>>2],-1==(0|A)|(0|A)==(0|s))break;r=r+1|0}i[o>>2]=s,a=a+1|0}while((0|a)!=(0|l))}else{a=0;do{s=u+(a<<4)|0,ze(s,0|i[c>>2],0,1),s=0|i[s>>2],r=0;while(1){if(o=n+(r<<2)|0,A=0|i[o>>2],-1==(0|A)|(0|A)==(0|s))break;r=r+1|0}i[o>>2]=s,a=a+1|0}while((0|a)!=(0|l))}B=h}function kt(){return 12}function Ot(e,t){e|=0,t|=0;var n=0,r=0,a=0,s=0,o=0,A=0,l=0;if(Gn(0|e,0,52),A=134225919|_(),(0|e)<1){r=0,n=0;do{0|q(r)&&(Gn(0|r,0,45),o=0|A|_(),e=t+(n<<3)|0,i[e>>2]=-1,i[e+4>>2]=o,n=n+1|0),r=r+1|0}while(122!=(0|r))}else{o=0,n=0;do{if(0|q(o)){Gn(0|o,0,45),r=1,a=-1,s=0|A|_();while(1){if(l=0|Gn(7,0,3*(15-r|0)|0),a&=~l,s&=~(0|_()),(0|r)==(0|e))break;r=r+1|0}l=t+(n<<3)|0,i[l>>2]=a,i[l+4>>2]=s,n=n+1|0}o=o+1|0}while(122!=(0|o))}}function Ut(e,t,n,r){e|=0,t|=0,n|=0,r|=0;var a=0,s=0,o=0,A=0,l=0,c=0;if(A=B,B=B+64|0,o=A,(0|e)==(0|n)&(0|t)==(0|r)|!1|134217728!=(2013265920&t|0)|!1|134217728!=(2013265920&r|0))return o=0,B=A,0|o;if(a=0|Hn(0|e,0|t,52),_(),a&=15,s=0|Hn(0|n,0|r,52),_(),(0|a)!=(15&s|0))return o=0,B=A,0|o;if(s=a+-1|0,a>>>0>1&&(c=0|ht(e,t,s),l=0|_(),s=0|ht(n,r,s),(0|c)==(0|s)&(0|l)==(0|_()))){if(s=3*(15^a)|0,a=0|Hn(0|e,0|t,0|s),_(),a&=7,s=0|Hn(0|n,0|r,0|s),_(),s&=7,0==(0|a)|0==(0|s))return c=1,B=A,0|c;if((0|i[21136+(a<<2)>>2])==(0|s))return c=1,B=A,0|c;if((0|i[21168+(a<<2)>>2])==(0|s))return c=1,B=A,0|c}a=o,s=a+56|0;do{i[a>>2]=0,a=a+4|0}while((0|a)<(0|s));return U(e,t,1,o),c=o,(0|i[c>>2])==(0|n)&&(0|i[c+4>>2])==(0|r)||(c=o+8|0,(0|i[c>>2])==(0|n)&&(0|i[c+4>>2])==(0|r))||(c=o+16|0,(0|i[c>>2])==(0|n)&&(0|i[c+4>>2])==(0|r))||(c=o+24|0,(0|i[c>>2])==(0|n)&&(0|i[c+4>>2])==(0|r))||(c=o+32|0,(0|i[c>>2])==(0|n)&&(0|i[c+4>>2])==(0|r))||(c=o+40|0,(0|i[c>>2])==(0|n)&&(0|i[c+4>>2])==(0|r))?a=1:(a=o+48|0,a=1&((0|i[a>>2])==(0|n)?(0|i[a+4>>2])==(0|r):0)),c=a,B=A,0|c}function Ft(e,t,n,r){e|=0,t|=0,n|=0,r|=0;var a=0,s=0,o=0,A=0,l=0,c=0,u=0;if(c=B,B=B+16|0,o=c,!(0|Ut(e,t,n,r)))return A=0,l=0,w(0|A),B=c,0|l;A=-2130706433&t,a=0==(0|pt(e,t)),a=a?1:2;while(1){if(i[o>>2]=0,u=0|H(e,t,a,o),s=a+1|0,(0|u)==(0|n)&(0|_())==(0|r))break;if(!(s>>>0<7)){a=0,e=0,l=6;break}a=s}return 6==(0|l)?(w(0|a),B=c,0|e):(u=0|Gn(0|a,0,56),l=0|A|_()|268435456,u|=e,w(0|l),B=c,0|u)}function Nt(e,t){e|=0,t|=0;var n=0;return n=!0&268435456==(2013265920&t|0),w(0|(n?-2130706433&t|134217728:0)),0|(n?e:0)}function zt(e,t){e|=0,t|=0;var n=0,r=0,a=0;return r=B,B=B+16|0,n=r,!0&268435456==(2013265920&t|0)?(a=0|Hn(0|e,0|t,56),_(),i[n>>2]=0,n=0|H(e,-2130706433&t|134217728,7&a,n),t=0|_(),w(0|t),B=r,0|n):(t=0,n=0,w(0|t),B=r,0|n)}function Ht(e,t){e|=0,t|=0;var n=0;if(!(!0&268435456==(2013265920&t|0)))return n=0,0|n;switch(n=0|Hn(0|e,0|t,56),_(),7&n){case 0:case 7:return n=0,0|n;default:}return n=-2130706433&t|134217728,!0&16777216==(117440512&t|0)&0!=(0|pt(e,n))?(n=0,0|n):(n=0|ut(e,n),0|n)}function Gt(e,t,n){e|=0,t|=0,n|=0;var r=0,a=0,s=0,o=0,A=0;s=B,B=B+16|0,r=s,o=!0&268435456==(2013265920&t|0),a=-2130706433&t|134217728,A=n,i[A>>2]=o?e:0,i[A+4>>2]=o?a:0,o?(t=0|Hn(0|e,0|t,56),_(),i[r>>2]=0,e=0|H(e,a,7&t,r),t=0|_()):(e=0,t=0),A=n+8|0,i[A>>2]=e,i[A+4>>2]=t,B=s}function Vt(e,t,n){e|=0,t|=0,n|=0;var r=0,a=0;a=0==(0|pt(e,t)),t&=-2130706433,r=n,i[r>>2]=a?e:0,i[r+4>>2]=a?285212672|t:0,r=n+8|0,i[r>>2]=e,i[r+4>>2]=301989888|t,r=n+16|0,i[r>>2]=e,i[r+4>>2]=318767104|t,r=n+24|0,i[r>>2]=e,i[r+4>>2]=335544320|t,r=n+32|0,i[r>>2]=e,i[r+4>>2]=352321536|t,n=n+40|0,i[n>>2]=e,i[n+4>>2]=369098752|t}function Wt(e,t,n){e|=0,t|=0,n|=0;var r=0,a=0,s=0,o=0,A=0;if(o=B,B=B+16|0,s=o,r=0|Hn(0|e,0|t,56),_(),A=!0&268435456==(2013265920&t|0),a=A?e:0,e=A?-2130706433&t|134217728:0,t=0|wn(a,e,7&r),-1==(0|t))return i[n>>2]=0,void(B=o);Bt(a,e,s),r=0|Hn(0|a,0|e,52),_(),r&=15,0|pt(a,e)?Fe(s,r,t,2,n):Ge(s,r,t,2,n),B=o}function Qt(e){e|=0;var t=0,n=0,r=0;return t=0|kn(1,12),t||M(22691,22646,49,22704),n=e+4|0,r=0|i[n>>2],0|r?(r=r+8|0,i[r>>2]=t,i[n>>2]=t,0|t):(0|i[e>>2]&&M(22721,22646,61,22744),r=e,i[r>>2]=t,i[n>>2]=t,0|t)}function jt(e,t){e|=0,t|=0;var n=0,r=0;return r=0|Pn(24),r||M(22758,22646,78,22772),i[r>>2]=i[t>>2],i[r+4>>2]=i[t+4>>2],i[r+8>>2]=i[t+8>>2],i[r+12>>2]=i[t+12>>2],i[r+16>>2]=0,t=e+4|0,n=0|i[t>>2],0|n?(i[n+16>>2]=r,i[t>>2]=r,0|r):(0|i[e>>2]&&M(22787,22646,82,22772),i[e>>2]=r,i[t>>2]=r,0|r)}function Yt(e){e|=0;var t=0,n=0,r=0,a=0;if(e){r=1;while(1){if(t=0|i[e>>2],0|t)do{if(n=0|i[t>>2],0|n)do{a=n,n=0|i[n+16>>2],Rn(a)}while(0!=(0|n));a=t,t=0|i[t+8>>2],Rn(a)}while(0!=(0|t));if(t=e,e=0|i[e+8>>2],r||Rn(t),!e)break;r=0}}}function Xt(e){e|=0;var t=0,n=0,r=0,s=0,o=0,l=0,c=0,u=0,h=0,f=0,d=0,p=0,m=0,g=0,v=0,y=0,x=0,b=0,w=0,_=0,S=0,E=0,C=0,T=0,D=0,B=0,L=0,I=0,P=0,R=0,k=0,O=0;if(s=e+8|0,0|i[s>>2])return O=1,0|O;if(r=0|i[e>>2],!r)return O=0,0|O;t=r,n=0;do{n=n+1|0,t=0|i[t+8>>2]}while(0!=(0|t));if(n>>>0<2)return O=0,0|O;R=0|Pn(n<<2),R||M(22807,22646,317,22826),P=0|Pn(n<<5),P||M(22848,22646,321,22826),i[e>>2]=0,E=e+4|0,i[E>>2]=0,i[s>>2]=0,n=0,I=0,S=0,d=0;e:while(1){if(f=0|i[r>>2],f){o=0,l=f;do{if(u=+a[l+8>>3],t=l,l=0|i[l+16>>2],h=0==(0|l),s=h?f:l,c=+a[s+8>>3],+A(+(u-c))>3.141592653589793){O=14;break}o+=(c-u)*(+a[t>>3]+ +a[s>>3])}while(!h);if(14==(0|O)){O=0,o=0,t=f;do{_=+a[t+8>>3],L=t+16|0,B=0|i[L>>2],B=0==(0|B)?f:B,w=+a[B+8>>3],o+=(+a[t>>3]+ +a[B>>3])*((w<0?w+6.283185307179586:w)-(_<0?_+6.283185307179586:_)),t=0|i[(0==(0|t)?r:L)>>2]}while(0!=(0|t))}o>0?(i[R+(I<<2)>>2]=r,I=I+1|0,s=S,t=d):O=19}else O=19;if(19==(0|O)){O=0;do{if(!n){if(d){s=E,l=d+8|0,t=r,n=e;break}if(0|i[e>>2]){O=27;break e}s=E,l=e,t=r,n=e;break}if(t=n+8|0,0|i[t>>2]){O=21;break e}if(n=0|kn(1,12),!n){O=23;break e}i[t>>2]=n,s=n+4|0,l=n,t=d}while(0);if(i[l>>2]=r,i[s>>2]=r,l=P+(S<<5)|0,h=0|i[r>>2],h){f=P+(S<<5)+8|0,a[f>>3]=17976931348623157e292,d=P+(S<<5)+24|0,a[d>>3]=17976931348623157e292,a[l>>3]=-17976931348623157e292,p=P+(S<<5)+16|0,a[p>>3]=-17976931348623157e292,x=17976931348623157e292,b=-17976931348623157e292,s=0,m=h,u=17976931348623157e292,v=17976931348623157e292,y=-17976931348623157e292,c=-17976931348623157e292;while(1){if(o=+a[m>>3],_=+a[m+8>>3],m=0|i[m+16>>2],g=0==(0|m),w=+a[(g?h:m)+8>>3],o>3]=o,u=o),_>3]=_,v=_),o>y?a[l>>3]=o:o=y,_>c&&(a[p>>3]=_,c=_),x=_>0&_b?_:b,s|=+A(+(_-w))>3.141592653589793,g)break;y=o}s&&(a[p>>3]=b,a[d>>3]=x)}else i[l>>2]=0,i[l+4>>2]=0,i[l+8>>2]=0,i[l+12>>2]=0,i[l+16>>2]=0,i[l+20>>2]=0,i[l+24>>2]=0,i[l+28>>2]=0;s=S+1|0}if(L=r+8|0,r=0|i[L>>2],i[L>>2]=0,!r){O=45;break}S=s,d=t}if(21==(0|O))M(22624,22646,35,22658);else if(23==(0|O))M(22678,22646,37,22658);else if(27==(0|O))M(22721,22646,61,22744);else if(45==(0|O)){e:do{if((0|I)>0){L=0==(0|s),D=s<<2,B=0==(0|e),T=0,t=0;while(1){if(C=0|i[R+(T<<2)>>2],L)O=73;else{if(S=0|Pn(D),!S){O=50;break}if(E=0|Pn(D),!E){O=52;break}t:do{if(B)n=0;else{s=0,n=0,l=e;while(1){if(r=P+(s<<5)|0,0|qt(0|i[l>>2],r,0|i[C>>2])?(i[S+(n<<2)>>2]=l,i[E+(n<<2)>>2]=r,g=n+1|0):g=n,l=0|i[l+8>>2],!l)break;s=s+1|0,n=g}if((0|g)>0)if(r=0|i[S>>2],1==(0|g))n=r;else{p=0,m=-1,n=r,d=r;while(1){h=0|i[d>>2],r=0,l=0;while(1){if(s=0|i[i[S+(l<<2)>>2]>>2],f=(0|s)==(0|h)?r:r+(1&(0|qt(s,0|i[E+(l<<2)>>2],0|i[h>>2])))|0,l=l+1|0,(0|l)==(0|g))break;r=f}if(s=(0|f)>(0|m),n=s?d:n,r=p+1|0,(0|r)==(0|g))break t;p=r,m=s?f:m,d=0|i[S+(r<<2)>>2]}}else n=0}}while(0);if(Rn(S),Rn(E),n){if(s=n+4|0,r=0|i[s>>2],r)n=r+8|0;else if(0|i[n>>2]){O=70;break}i[n>>2]=C,i[s>>2]=C}else O=73}if(73==(0|O)){if(O=0,t=0|i[C>>2],0|t)do{E=t,t=0|i[t+16>>2],Rn(E)}while(0!=(0|t));Rn(C),t=2}if(T=T+1|0,(0|T)>=(0|I)){k=t;break e}}50==(0|O)?M(22863,22646,249,22882):52==(0|O)?M(22901,22646,252,22882):70==(0|O)&&M(22721,22646,61,22744)}else k=0}while(0);return Rn(R),Rn(P),O=k,0|O}return 0}function qt(e,t,n){e|=0,t|=0,n|=0;var r=0,s=0,o=0,A=0,l=0,c=0,u=0,h=0;if(!(0|oe(t,n)))return e=0,0|e;if(t=0|se(t),u=+a[n>>3],r=+a[n+8>>3],r=t&r<0?r+6.283185307179586:r,e=0|i[e>>2],!e)return e=0,0|e;if(t){t=0,n=e;e:while(1){while(1){if(A=+a[n>>3],c=+a[n+8>>3],n=n+16|0,h=0|i[n>>2],h=0==(0|h)?e:h,o=+a[h>>3],s=+a[h+8>>3],A>o?(l=A,A=c):(l=o,o=A,A=s,s=c),!(ul))break;if(n=0|i[n>>2],!n){n=22;break e}}if(c=s<0?s+6.283185307179586:s,A=A<0?A+6.283185307179586:A,r=A==r|c==r?r+-2220446049250313e-31:r,c+=(u-o)/(l-o)*(A-c),(c<0?c+6.283185307179586:c)>r&&(t^=1),n=0|i[n>>2],!n){n=22;break}}if(22==(0|n))return 0|t}else{t=0,n=e;e:while(1){while(1){if(A=+a[n>>3],c=+a[n+8>>3],n=n+16|0,h=0|i[n>>2],h=0==(0|h)?e:h,o=+a[h>>3],s=+a[h+8>>3],A>o?(l=A,A=c):(l=o,o=A,A=s,s=c),!(ul))break;if(n=0|i[n>>2],!n){n=22;break e}}if(r=A==r|s==r?r+-2220446049250313e-31:r,s+(u-o)/(l-o)*(A-s)>r&&(t^=1),n=0|i[n>>2],!n){n=22;break}}if(22==(0|n))return 0|t}return 0}function Zt(e,t,n,a,s){e|=0,t|=0,n|=0,a|=0,s|=0;var o=0,A=0,l=0,c=0,u=0,h=0,f=0,d=0,p=0,m=0,g=0,v=0,y=0,x=0;if(x=B,B=B+32|0,y=x+16|0,v=x,o=0|Hn(0|e,0|t,52),_(),o&=15,p=0|Hn(0|n,0|a,52),_(),(0|o)!=(15&p|0))return y=1,B=x,0|y;if(u=0|Hn(0|e,0|t,45),_(),u&=127,h=0|Hn(0|n,0|a,45),_(),h&=127,p=(0|u)!=(0|h),p){if(l=0|re(u,h),7==(0|l))return y=2,B=x,0|y;c=0|re(h,u),7==(0|c)?M(22925,22949,151,22959):(m=l,A=c)}else m=0,A=0;f=0|q(u),d=0|q(h),i[y>>2]=0,i[y+4>>2]=0,i[y+8>>2]=0,i[y+12>>2]=0;do{if(m){if(h=0|i[4304+(28*u|0)+(m<<2)>>2],l=(0|h)>0,d)if(l){u=0,c=n,l=a;do{c=0|Mt(c,l),l=0|_(),A=0|Ee(A),1==(0|A)&&(A=0|Ee(1)),u=u+1|0}while((0|u)!=(0|h));h=A,u=c,c=l}else h=A,u=n,c=a;else if(l){u=0,c=n,l=a;do{c=0|St(c,l),l=0|_(),A=0|Ee(A),u=u+1|0}while((0|u)!=(0|h));h=A,u=c,c=l}else h=A,u=n,c=a;if(Dt(u,c,y),p||M(22972,22949,181,22959),l=0!=(0|f),A=0!=(0|d),l&A&&M(22999,22949,182,22959),l){if(A=0|bt(e,t),0|r[22032+(7*A|0)+m>>0]){o=3;break}c=0|i[21200+(28*A|0)+(m<<2)>>2],u=c,g=26}else if(A){if(A=0|bt(u,c),0|r[22032+(7*A|0)+h>>0]){o=4;break}u=0,c=0|i[21200+(28*h|0)+(A<<2)>>2],g=26}else A=0;if(26==(0|g))if((0|c)<=-1&&M(23030,22949,212,22959),(0|u)<=-1&&M(23053,22949,213,22959),(0|c)>0){l=y+4|0,A=0;do{Me(l),A=A+1|0}while((0|A)!=(0|c));A=u}else A=u;if(i[v>>2]=0,i[v+4>>2]=0,i[v+8>>2]=0,we(v,m),0|o)while(1){if(0|Ct(o)?xe(v):be(v),!((0|o)>1))break;o=o+-1|0}if((0|A)>0){o=0;do{Me(v),o=o+1|0}while((0|o)!=(0|A))}g=y+4|0,de(g,v,g),he(g),g=50}else if(Dt(n,a,y),0!=(0|f)&0!=(0|d))if((0|h)!=(0|u)&&M(23077,22949,243,22959),A=0|bt(e,t),o=0|bt(n,a),0|r[22032+(7*A|0)+o>>0])o=5;else if(A=0|i[21200+(28*A|0)+(o<<2)>>2],(0|A)>0){l=y+4|0,o=0;do{Me(l),o=o+1|0}while((0|o)!=(0|A));g=50}else g=50;else g=50}while(0);return 50==(0|g)&&(o=y+4|0,i[s>>2]=i[o>>2],i[s+4>>2]=i[o+4>>2],i[s+8>>2]=i[o+8>>2],o=0),y=o,B=x,0|y}function Kt(e,t,n,r){e|=0,t|=0,n|=0,r|=0;var a=0,s=0,o=0,A=0,l=0,c=0,u=0,h=0,f=0,d=0,p=0,m=0,g=0,v=0,y=0;if(p=B,B=B+48|0,o=p+36|0,A=p+24|0,l=p+12|0,c=p,s=0|Hn(0|e,0|t,52),_(),s&=15,f=0|Hn(0|e,0|t,45),_(),f&=127,u=0|q(f),Gn(0|s,0,52),g=134225919|_(),m=r,i[m>>2]=-1,i[m+4>>2]=g,!s)return(0|i[n>>2])>1||(0|i[n+4>>2])>1||(0|i[n+8>>2])>1?(g=1,B=p,0|g):(a=0|ne(f,0|ge(n)),127==(0|a)?(g=1,B=p,0|g):(d=0|Gn(0|a,0,45),m=0|_(),f=r,m=-1040385&i[f+4>>2]|m,g=r,i[g>>2]=i[f>>2]|d,i[g+4>>2]=m,g=0,B=p,0|g));i[o>>2]=i[n>>2],i[o+4>>2]=i[n+4>>2],i[o+8>>2]=i[n+8>>2];while(1){if(i[A>>2]=i[o>>2],i[A+4>>2]=i[o+4>>2],i[A+8>>2]=i[o+8>>2],0|Ct(s)?(ve(o),i[l>>2]=i[o>>2],i[l+4>>2]=i[o+4>>2],i[l+8>>2]=i[o+8>>2],xe(l)):(ye(o),i[l>>2]=i[o>>2],i[l+4>>2]=i[o+4>>2],i[l+8>>2]=i[o+8>>2],be(l)),pe(A,l,c),he(c),m=r,v=0|i[m>>2],m=0|i[m+4>>2],y=3*(15-s|0)|0,n=0|Gn(7,0,0|y),m&=~(0|_()),y=0|Gn(0|ge(c),0,0|y),m=0|_()|m,g=r,i[g>>2]=y|v&~n,i[g+4>>2]=m,!((0|s)>1))break;s=s+-1|0}e:do{if((0|i[o>>2])<=1&&(0|i[o+4>>2])<=1&&(0|i[o+8>>2])<=1){s=0|ge(o),A=0|ne(f,s),c=127==(0|A)?0:0|q(A);t:do{if(s){if(u){if(o=21408+(28*(0|bt(e,t))|0)+(s<<2)|0,o=0|i[o>>2],(0|o)>0){n=0;do{s=0|Se(s),n=n+1|0}while((0|n)!=(0|o))}if(1==(0|s)){a=3;break e}n=0|ne(f,s),127==(0|n)&&M(23104,22949,376,23134),0|q(n)?M(23147,22949,377,23134):(d=o,h=s,a=n)}else d=0,h=s,a=A;if(l=0|i[4304+(28*f|0)+(h<<2)>>2],(0|l)<=-1&&M(23178,22949,384,23134),!c){if((0|d)<=-1&&M(23030,22949,417,23134),0|d){o=r,s=0,n=0|i[o>>2],o=0|i[o+4>>2];do{n=0|_t(n,o),o=0|_(),y=r,i[y>>2]=n,i[y+4>>2]=o,s=s+1|0}while((0|s)<(0|d))}if((0|l)<=0){s=54;break}o=r,s=0,n=0|i[o>>2],o=0|i[o+4>>2];while(1)if(n=0|_t(n,o),o=0|_(),y=r,i[y>>2]=n,i[y+4>>2]=o,s=s+1|0,(0|s)==(0|l)){s=54;break t}}if(A=0|re(a,f),7==(0|A)&&M(22925,22949,393,23134),s=r,n=0|i[s>>2],s=0|i[s+4>>2],(0|l)>0){o=0;do{n=0|_t(n,s),s=0|_(),y=r,i[y>>2]=n,i[y+4>>2]=s,o=o+1|0}while((0|o)!=(0|l))}if(n=0|bt(n,s),y=0|Z(a),n=0|i[(y?21824:21616)+(28*A|0)+(n<<2)>>2],(0|n)<=-1&&M(23030,22949,412,23134),n){A=r,s=0,o=0|i[A>>2],A=0|i[A+4>>2];do{o=0|wt(o,A),A=0|_(),y=r,i[y>>2]=o,i[y+4>>2]=A,s=s+1|0}while((0|s)<(0|n));s=54}else s=54}else if(0!=(0|u)&0!=(0|c))if(y=0|bt(e,t),s=r,s=21408+(28*y|0)+((0|bt(0|i[s>>2],0|i[s+4>>2]))<<2)|0,s=0|i[s>>2],(0|s)<=-1&&M(23201,22949,433,23134),s){o=r,a=0,n=0|i[o>>2],o=0|i[o+4>>2];do{n=0|_t(n,o),o=0|_(),y=r,i[y>>2]=n,i[y+4>>2]=o,a=a+1|0}while((0|a)<(0|s));a=A,s=54}else a=A,s=55;else a=A,s=54}while(0);if(54==(0|s)&&c&&(s=55),55==(0|s)&&(y=r,1==(0|bt(0|i[y>>2],0|i[y+4>>2])))){a=4;break}y=r,g=0|i[y>>2],y=-1040385&i[y+4>>2],v=0|Gn(0|a,0,45),y=0|y|_(),a=r,i[a>>2]=g|v,i[a+4>>2]=y,a=0}else a=2}while(0);return y=a,B=p,0|y}function Jt(e,t,n,r,i){e|=0,t|=0,n|=0,r|=0,i|=0;var a=0,s=0;return s=B,B=B+16|0,a=s,e=0|Zt(e,t,n,r,a),e||(Be(a,i),e=0),B=s,0|e}function $t(e,t,n,r){e|=0,t|=0,n|=0,r|=0;var i=0,a=0;return i=B,B=B+16|0,a=i,Le(n,a),r=0|Kt(e,t,a,r),B=i,0|r}function en(e,t,n,r){e|=0,t|=0,n|=0,r|=0;var i=0,a=0,s=0;return s=B,B=B+32|0,i=s+12|0,a=s,e=0==(0|Zt(e,t,e,t,i))&&0==(0|Zt(e,t,n,r,a))?0|De(i,a):-1,B=s,0|e}function tn(e,t,n,r){e|=0,t|=0,n|=0,r|=0;var i=0,a=0,s=0;return s=B,B=B+32|0,i=s+12|0,a=s,e=0==(0|Zt(e,t,e,t,i))&&0==(0|Zt(e,t,n,r,a))?0|De(i,a):-1,B=s,(e>>>31^1)+e|0}function nn(e,t,n,r,a){e|=0,t|=0,n|=0,r|=0,a|=0;var s=0,o=0,l=0,c=0,u=0,h=0,f=0,d=0,p=0,m=0,g=0,v=0,y=0,x=0,b=0,w=0,_=0,M=0;if(_=B,B=B+48|0,s=_+24|0,o=_+12|0,w=_,0==(0|Zt(e,t,e,t,s))&&0==(0|Zt(e,t,n,r,o))){if(b=0|De(s,o),(0|b)<0)return w=b,B=_,0|w;i[s>>2]=0,i[s+4>>2]=0,i[s+8>>2]=0,i[o>>2]=0,i[o+4>>2]=0,i[o+8>>2]=0,Zt(e,t,e,t,s),Zt(e,t,n,r,o),Ie(s),Ie(o),b?(h=0|i[s>>2],p=+(0|b),v=s+4|0,f=0|i[v>>2],y=s+8|0,d=0|i[y>>2],x=s,n=h,r=f,s=d,m=+((0|i[o>>2])-h|0)/p,g=+((0|i[o+4>>2])-f|0)/p,p=+((0|i[o+8>>2])-d|0)/p):(r=s+4|0,d=s+8|0,v=r,y=d,x=s,n=0|i[s>>2],r=0|i[r>>2],s=0|i[d>>2],m=0,g=0,p=0),i[w>>2]=n,d=w+4|0,i[d>>2]=r,f=w+8|0,i[f>>2]=s,h=0;while(1){c=+(0|h),M=m*c+ +(0|n),l=g*c+ +(0|i[v>>2]),c=p*c+ +(0|i[y>>2]),r=~~+Wn(+M),o=~~+Wn(+l),n=~~+Wn(+c),M=+A(+(+(0|r)-M)),l=+A(+(+(0|o)-l)),c=+A(+(+(0|n)-c));do{if(!(M>l&M>c)){if(u=0-r|0,l>c){s=u-n|0;break}s=o,n=u-o|0;break}r=0-(o+n)|0,s=o}while(0);if(i[w>>2]=r,i[d>>2]=s,i[f>>2]=n,Pe(w),Kt(e,t,w,a+(h<<3)|0),(0|h)==(0|b))break;h=h+1|0,n=0|i[x>>2]}return w=0,B=_,0|w}return w=-1,B=_,0|w}function rn(e,t){e|=0,t|=0;var n=0;if(!t)return n=1,0|n;n=e,e=1;do{e=0|y(0==(1&t|0)?1:n,e),t>>=1,n=0|y(n,n)}while(0!=(0|t));return 0|e}function an(e,t,n){e|=0,t|=0,n|=0;var r=0,s=0,o=0,A=0,l=0,c=0,u=0,h=0,f=0,d=0;if(!(0|oe(t,n)))return f=0,0|f;if(t=0|se(t),d=+a[n>>3],r=+a[n+8>>3],r=t&r<0?r+6.283185307179586:r,f=0|i[e>>2],(0|f)<=0)return f=0,0|f;if(h=0|i[e+4>>2],t){t=0,n=-1,e=0;e:while(1){u=e;while(1){if(A=+a[h+(u<<4)>>3],c=+a[h+(u<<4)+8>>3],e=(n+2|0)%(0|f)|0,o=+a[h+(e<<4)>>3],s=+a[h+(e<<4)+8>>3],A>o?(l=A,A=c):(l=o,o=A,A=s,s=c),!(dl))break;if(n=u+1|0,!((0|n)<(0|f))){n=22;break e}e=u,u=n,n=e}if(c=s<0?s+6.283185307179586:s,A=A<0?A+6.283185307179586:A,r=A==r|c==r?r+-2220446049250313e-31:r,c+=(d-o)/(l-o)*(A-c),(c<0?c+6.283185307179586:c)>r&&(t^=1),e=u+1|0,(0|e)>=(0|f)){n=22;break}n=u}if(22==(0|n))return 0|t}else{t=0,n=-1,e=0;e:while(1){u=e;while(1){if(A=+a[h+(u<<4)>>3],c=+a[h+(u<<4)+8>>3],e=(n+2|0)%(0|f)|0,o=+a[h+(e<<4)>>3],s=+a[h+(e<<4)+8>>3],A>o?(l=A,A=c):(l=o,o=A,A=s,s=c),!(dl))break;if(n=u+1|0,!((0|n)<(0|f))){n=22;break e}e=u,u=n,n=e}if(r=A==r|s==r?r+-2220446049250313e-31:r,s+(d-o)/(l-o)*(A-s)>r&&(t^=1),e=u+1|0,(0|e)>=(0|f)){n=22;break}n=u}if(22==(0|n))return 0|t}return 0}function sn(e,t){e|=0,t|=0;var n=0,r=0,s=0,o=0,l=0,c=0,u=0,h=0,f=0,d=0,p=0,m=0,g=0,v=0,y=0,x=0,b=0;if(g=0|i[e>>2],!g)return i[t>>2]=0,i[t+4>>2]=0,i[t+8>>2]=0,i[t+12>>2]=0,i[t+16>>2]=0,i[t+20>>2]=0,i[t+24>>2]=0,void(i[t+28>>2]=0);if(v=t+8|0,a[v>>3]=17976931348623157e292,y=t+24|0,a[y>>3]=17976931348623157e292,a[t>>3]=-17976931348623157e292,x=t+16|0,a[x>>3]=-17976931348623157e292,!((0|g)<=0)){p=0|i[e+4>>2],h=17976931348623157e292,f=-17976931348623157e292,d=0,e=-1,o=17976931348623157e292,l=17976931348623157e292,u=-17976931348623157e292,r=-17976931348623157e292,m=0;while(1){if(n=+a[p+(m<<4)>>3],c=+a[p+(m<<4)+8>>3],e=e+2|0,s=+a[p+(((0|e)==(0|g)?0:e)<<4)+8>>3],n>3]=n,o=n),c>3]=c,l=c),n>u?a[t>>3]=n:n=u,c>r&&(a[x>>3]=c,r=c),h=c>0&cf?c:f,d|=+A(+(c-s))>3.141592653589793,e=m+1|0,(0|e)==(0|g))break;b=m,u=n,m=e,e=b}d&&(a[x>>3]=f,a[y>>3]=h)}}function on(e,t){e|=0,t|=0;var n=0,r=0,s=0,o=0,l=0,c=0,u=0,h=0,f=0,d=0,p=0,m=0,g=0,v=0,y=0,x=0,b=0,w=0,_=0,M=0,S=0,E=0;if(g=0|i[e>>2],g){if(v=t+8|0,a[v>>3]=17976931348623157e292,y=t+24|0,a[y>>3]=17976931348623157e292,a[t>>3]=-17976931348623157e292,x=t+16|0,a[x>>3]=-17976931348623157e292,(0|g)>0){s=0|i[e+4>>2],p=17976931348623157e292,m=-17976931348623157e292,r=0,n=-1,u=17976931348623157e292,h=17976931348623157e292,d=-17976931348623157e292,l=-17976931348623157e292,b=0;while(1){if(o=+a[s+(b<<4)>>3],f=+a[s+(b<<4)+8>>3],S=n+2|0,c=+a[s+(((0|S)==(0|g)?0:S)<<4)+8>>3],o>3]=o,u=o),f>3]=f,h=f),o>d?a[t>>3]=o:o=d,f>l&&(a[x>>3]=f,l=f),p=f>0&fm?f:m,r|=+A(+(f-c))>3.141592653589793,n=b+1|0,(0|n)==(0|g))break;S=b,d=o,b=n,n=S}r&&(a[x>>3]=m,a[y>>3]=p)}}else i[t>>2]=0,i[t+4>>2]=0,i[t+8>>2]=0,i[t+12>>2]=0,i[t+16>>2]=0,i[t+20>>2]=0,i[t+24>>2]=0,i[t+28>>2]=0;if(S=e+8|0,n=0|i[S>>2],!((0|n)<=0)){M=e+12|0,_=0;do{if(s=0|i[M>>2],r=_,_=_+1|0,y=t+(_<<5)|0,x=0|i[s+(r<<3)>>2],x){if(b=t+(_<<5)+8|0,a[b>>3]=17976931348623157e292,e=t+(_<<5)+24|0,a[e>>3]=17976931348623157e292,a[y>>3]=-17976931348623157e292,w=t+(_<<5)+16|0,a[w>>3]=-17976931348623157e292,(0|x)>0){g=0|i[s+(r<<3)+4>>2],p=17976931348623157e292,m=-17976931348623157e292,s=0,r=-1,v=0,u=17976931348623157e292,h=17976931348623157e292,f=-17976931348623157e292,l=-17976931348623157e292;while(1){if(o=+a[g+(v<<4)>>3],d=+a[g+(v<<4)+8>>3],r=r+2|0,c=+a[g+(((0|r)==(0|x)?0:r)<<4)+8>>3],o>3]=o,u=o),d>3]=d,h=d),o>f?a[y>>3]=o:o=f,d>l&&(a[w>>3]=d,l=d),p=d>0&dm?d:m,s|=+A(+(d-c))>3.141592653589793,r=v+1|0,(0|r)==(0|x))break;E=v,v=r,f=o,r=E}s&&(a[w>>3]=m,a[e>>3]=p)}}else i[y>>2]=0,i[y+4>>2]=0,i[y+8>>2]=0,i[y+12>>2]=0,i[y+16>>2]=0,i[y+20>>2]=0,i[y+24>>2]=0,i[y+28>>2]=0,n=0|i[S>>2]}while((0|_)<(0|n))}}function An(e,t,n){e|=0,t|=0,n|=0;var r=0,a=0,s=0;if(!(0|an(e,t,n)))return a=0,0|a;if(a=e+8|0,(0|i[a>>2])<=0)return a=1,0|a;r=e+12|0,e=0;while(1){if(s=e,e=e+1|0,0|an((0|i[r>>2])+(s<<3)|0,t+(e<<5)|0,n)){e=0,r=6;break}if((0|e)>=(0|i[a>>2])){e=1,r=6;break}}return 6==(0|r)?0|e:0}function ln(){return 8}function cn(){return 16}function un(){return 168}function hn(){return 8}function fn(){return 16}function dn(){return 12}function pn(){return 8}function mn(e){e|=0;var t=0,n=0;return n=+a[e>>3],t=+a[e+8>>3],+ +l(+(n*n+t*t))}function gn(e,t,n,r,i){e|=0,t|=0,n|=0,r|=0,i|=0;var s=0,o=0,A=0,l=0,c=0,u=0,h=0,f=0;c=+a[e>>3],l=+a[t>>3]-c,A=+a[e+8>>3],o=+a[t+8>>3]-A,h=+a[n>>3],s=+a[r>>3]-h,f=+a[n+8>>3],u=+a[r+8>>3]-f,s=(s*(A-f)-(c-h)*u)/(l*u-o*s),a[i>>3]=c+l*s,a[i+8>>3]=A+o*s}function vn(e,t){return e|=0,t|=0,+a[e>>3]!=+a[t>>3]?(t=0,0|t):(t=+a[e+8>>3]==+a[t+8>>3],0|t)}function yn(e,t){e|=0,t|=0;var n=0,r=0,i=0;return i=+a[e>>3]-+a[t>>3],r=+a[e+8>>3]-+a[t+8>>3],n=+a[e+16>>3]-+a[t+16>>3],+(i*i+r*r+n*n)}function xn(e,t){e|=0,t|=0;var n=0,r=0,i=0;n=+a[e>>3],r=+u(+n),n=+h(+n),a[t+16>>3]=n,n=+a[e+8>>3],i=r*+u(+n),a[t>>3]=i,n=r*+h(+n),a[t+8>>3]=n}function bn(e,t){e|=0,t|=0;var n=0,r=0,a=0,s=0,o=0,A=0,l=0,c=0;if(c=B,B=B+32|0,a=c+16|0,s=c,Bt(e,t,a),o=0|ct(e,t),l=0|bt(e,t),$(o,s),t=0|ee(o,0|i[a>>2]),!(0|q(o)))return l=t,B=c,0|l;do{switch(0|o){case 4:e=0,n=14;break;case 14:e=1,n=14;break;case 24:e=2,n=14;break;case 38:e=3,n=14;break;case 49:e=4,n=14;break;case 58:e=5,n=14;break;case 63:e=6,n=14;break;case 72:e=7,n=14;break;case 83:e=8,n=14;break;case 97:e=9,n=14;break;case 107:e=10,n=14;break;case 117:e=11,n=14;break;default:A=0,r=0}}while(0);return 14==(0|n)&&(A=0|i[22096+(24*e|0)+8>>2],r=0|i[22096+(24*e|0)+16>>2]),e=0|i[a>>2],(0|e)!=(0|i[s>>2])&&(o=0|Z(o),e=0|i[a>>2],o|(0|e)==(0|r)&&(t=(t+1|0)%6|0)),3==(0|l)&(0|e)==(0|r)?(l=(t+5|0)%6|0,B=c,0|l):5==(0|l)&(0|e)==(0|A)?(l=(t+1|0)%6|0,B=c,0|l):(l=t,B=c,0|l)}function wn(e,t,n){e|=0,t|=0,n|=0;var r=0,a=0;return r=0|pt(e,t),(n+-1|0)>>>0>5?(n=-1,0|n):(a=0!=(0|r),1==(0|n)&a?(n=-1,0|n):(r=0|bn(e,t),a?(n=(5-r+(0|i[22384+(n<<2)>>2])|0)%5|0,0|n):(n=(6-r+(0|i[22416+(n<<2)>>2])|0)%6|0,0|n)))}function _n(e,t,n){e|=0,t|=0,n|=0;var r=0;(0|t)>0?(r=0|kn(t,4),i[e>>2]=r,r||M(23230,23253,40,23267)):i[e>>2]=0,i[e+4>>2]=t,i[e+8>>2]=0,i[e+12>>2]=n}function Mn(e){e|=0;var t=0,n=0,r=0,s=0,o=0,l=0,u=0;s=e+4|0,o=e+12|0,l=e+8|0;e:while(1){n=0|i[s>>2],t=0;while(1){if((0|t)>=(0|n))break e;if(r=0|i[e>>2],u=0|i[r+(t<<2)>>2],u)break;t=t+1|0}t=r+(~~(+A(+ +c(10,+ +(15-(0|i[o>>2])|0))*(+a[u>>3]+ +a[u+8>>3]))%+(0|n))>>>0<<2)|0,n=0|i[t>>2];t:do{if(0|n){if(r=u+32|0,(0|n)==(0|u))i[t>>2]=i[r>>2];else{if(n=n+32|0,t=0|i[n>>2],!t)break;while(1){if((0|t)==(0|u))break;if(n=t+32|0,t=0|i[n>>2],!t)break t}i[n>>2]=i[r>>2]}Rn(u),i[l>>2]=(0|i[l>>2])-1}}while(0)}Rn(0|i[e>>2])}function Sn(e){e|=0;var t=0,n=0,r=0;r=0|i[e+4>>2],n=0;while(1){if((0|n)>=(0|r)){t=0,n=4;break}if(t=0|i[(0|i[e>>2])+(n<<2)>>2],t){n=4;break}n=n+1|0}return 4==(0|n)?0|t:0}function En(e,t){e|=0,t|=0;var n=0,r=0,s=0,o=0;if(n=~~(+A(+ +c(10,+ +(15-(0|i[e+12>>2])|0))*(+a[t>>3]+ +a[t+8>>3]))%+(0|i[e+4>>2]))>>>0,n=(0|i[e>>2])+(n<<2)|0,r=0|i[n>>2],!r)return o=1,0|o;o=t+32|0;do{if((0|r)!=(0|t)){if(n=0|i[r+32>>2],!n)return o=1,0|o;s=n;while(1){if((0|s)==(0|t)){s=8;break}if(n=0|i[s+32>>2],!n){n=1,s=10;break}r=s,s=n}if(8==(0|s)){i[r+32>>2]=i[o>>2];break}if(10==(0|s))return 0|n}else i[n>>2]=i[o>>2]}while(0);return Rn(t),o=e+8|0,i[o>>2]=(0|i[o>>2])-1,o=0,0|o}function Cn(e,t,n){e|=0,t|=0,n|=0;var r=0,s=0,o=0,l=0;o=0|Pn(40),o||M(23283,23253,98,23296),i[o>>2]=i[t>>2],i[o+4>>2]=i[t+4>>2],i[o+8>>2]=i[t+8>>2],i[o+12>>2]=i[t+12>>2],s=o+16|0,i[s>>2]=i[n>>2],i[s+4>>2]=i[n+4>>2],i[s+8>>2]=i[n+8>>2],i[s+12>>2]=i[n+12>>2],i[o+32>>2]=0,s=~~(+A(+ +c(10,+ +(15-(0|i[e+12>>2])|0))*(+a[t>>3]+ +a[t+8>>3]))%+(0|i[e+4>>2]))>>>0,s=(0|i[e>>2])+(s<<2)|0,r=0|i[s>>2];do{if(r){while(1){if(0|Qe(r,t)&&0|Qe(r+16|0,n))break;if(s=0|i[r+32>>2],r=0==(0|s)?r:s,!(0|i[r+32>>2])){l=10;break}}if(10==(0|l)){i[r+32>>2]=o;break}return Rn(o),l=r,0|l}i[s>>2]=o}while(0);return l=e+8|0,i[l>>2]=1+(0|i[l>>2]),l=o,0|l}function Tn(e,t,n){e|=0,t|=0,n|=0;var r=0,s=0;if(s=~~(+A(+ +c(10,+ +(15-(0|i[e+12>>2])|0))*(+a[t>>3]+ +a[t+8>>3]))%+(0|i[e+4>>2]))>>>0,s=0|i[(0|i[e>>2])+(s<<2)>>2],!s)return n=0,0|n;if(!n){e=s;while(1){if(0|Qe(e,t)){r=10;break}if(e=0|i[e+32>>2],!e){e=0,r=10;break}}if(10==(0|r))return 0|e}e=s;while(1){if(0|Qe(e,t)&&0|Qe(e+16|0,n)){r=10;break}if(e=0|i[e+32>>2],!e){e=0,r=10;break}}return 10==(0|r)?0|e:0}function Dn(e,t){e|=0,t|=0;var n=0;if(n=~~(+A(+ +c(10,+ +(15-(0|i[e+12>>2])|0))*(+a[t>>3]+ +a[t+8>>3]))%+(0|i[e+4>>2]))>>>0,e=0|i[(0|i[e>>2])+(n<<2)>>2],!e)return n=0,0|n;while(1){if(0|Qe(e,t)){t=5;break}if(e=0|i[e+32>>2],!e){e=0,t=5;break}}return 5==(0|t)?0|e:0}function Bn(){return 23312}function Ln(e){return e=+e,+ +Yn(+e)}function In(e){return e=+e,0|~~+Ln(e)}function Pn(e){e|=0;var t=0,n=0,r=0,a=0,s=0,o=0,A=0,l=0,c=0,u=0,h=0,f=0,d=0,p=0,m=0,g=0,v=0,y=0,x=0,b=0,w=0;w=B,B=B+16|0,f=w;do{if(e>>>0<245){if(c=e>>>0<11?16:e+11&-8,e=c>>>3,h=0|i[5829],n=h>>>e,3&n|0)return t=(1&n^1)+e|0,e=23356+(t<<1<<2)|0,n=e+8|0,r=0|i[n>>2],a=r+8|0,s=0|i[a>>2],(0|s)==(0|e)?i[5829]=h&~(1<>2]=e,i[n>>2]=s),b=t<<3,i[r+4>>2]=3|b,b=r+b+4|0,i[b>>2]=1|i[b>>2],b=a,B=w,0|b;if(u=0|i[5831],c>>>0>u>>>0){if(0|n)return t=2<>>12&16,t>>>=A,n=t>>>5&8,t>>>=n,s=t>>>2&4,t>>>=s,e=t>>>1&2,t>>>=e,r=t>>>1&1,r=(n|A|s|e|r)+(t>>>r)|0,t=23356+(r<<1<<2)|0,e=t+8|0,s=0|i[e>>2],A=s+8|0,n=0|i[A>>2],(0|n)==(0|t)?(e=h&~(1<>2]=t,i[e>>2]=n,e=h),b=r<<3,o=b-c|0,i[s+4>>2]=3|c,a=s+c|0,i[a+4>>2]=1|o,i[s+b>>2]=o,0|u&&(r=0|i[5834],t=u>>>3,n=23356+(t<<1<<2)|0,t=1<>2]):(i[5829]=e|t,t=n,e=n+8|0),i[e>>2]=r,i[t+12>>2]=r,i[r+8>>2]=t,i[r+12>>2]=n),i[5831]=o,i[5834]=a,b=A,B=w,0|b;if(s=0|i[5830],s){n=(s&0-s)-1|0,a=n>>>12&16,n>>>=a,r=n>>>5&8,n>>>=r,o=n>>>2&4,n>>>=o,A=n>>>1&2,n>>>=A,l=n>>>1&1,l=0|i[23620+((r|a|o|A|l)+(n>>>l)<<2)>>2],n=l,A=l,l=(-8&i[l+4>>2])-c|0;while(1){if(e=0|i[n+16>>2],!e&&(e=0|i[n+20>>2],!e))break;o=(-8&i[e+4>>2])-c|0,a=o>>>0>>0,n=e,A=a?e:A,l=a?o:l}if(o=A+c|0,o>>>0>A>>>0){a=0|i[A+24>>2],t=0|i[A+12>>2];do{if((0|t)==(0|A)){if(e=A+20|0,t=0|i[e>>2],!t&&(e=A+16|0,t=0|i[e>>2],!t)){n=0;break}while(1)if(r=t+20|0,n=0|i[r>>2],n)t=n,e=r;else{if(r=t+16|0,n=0|i[r>>2],!n)break;t=n,e=r}i[e>>2]=0,n=t}else n=0|i[A+8>>2],i[n+12>>2]=t,i[t+8>>2]=n,n=t}while(0);do{if(0|a){if(t=0|i[A+28>>2],e=23620+(t<<2)|0,(0|A)==(0|i[e>>2])){if(i[e>>2]=n,!n){i[5830]=s&~(1<>2])==(0|A)?b:a+20|0)>>2]=n,!n)break;i[n+24>>2]=a,t=0|i[A+16>>2],0|t&&(i[n+16>>2]=t,i[t+24>>2]=n),t=0|i[A+20>>2],0|t&&(i[n+20>>2]=t,i[t+24>>2]=n)}}while(0);return l>>>0<16?(b=l+c|0,i[A+4>>2]=3|b,b=A+b+4|0,i[b>>2]=1|i[b>>2]):(i[A+4>>2]=3|c,i[o+4>>2]=1|l,i[o+l>>2]=l,0|u&&(r=0|i[5834],t=u>>>3,n=23356+(t<<1<<2)|0,t=1<>2]):(i[5829]=t|h,t=n,e=n+8|0),i[e>>2]=r,i[t+12>>2]=r,i[r+8>>2]=t,i[r+12>>2]=n),i[5831]=l,i[5834]=o),b=A+8|0,B=w,0|b}h=c}else h=c}else h=c}else if(e>>>0<=4294967231)if(e=e+11|0,c=-8&e,r=0|i[5830],r){a=0-c|0,e>>>=8,e?c>>>0>16777215?l=31:(h=(e+1048320|0)>>>16&8,m=e<>>16&4,m<<=A,l=(m+245760|0)>>>16&2,l=14-(A|h|l)+(m<>>15)|0,l=c>>>(l+7|0)&1|l<<1):l=0,n=0|i[23620+(l<<2)>>2];e:do{if(n){e=0,A=c<<(31==(0|l)?0:25-(l>>>1)|0),s=0;while(1){if(o=(-8&i[n+4>>2])-c|0,o>>>0>>0){if(!o){e=n,a=0,m=65;break e}e=n,a=o}if(m=0|i[n+20>>2],n=0|i[n+16+(A>>>31<<2)>>2],s=0==(0|m)|(0|m)==(0|n)?s:m,!n){n=s,m=61;break}A<<=1}}else n=0,e=0,m=61}while(0);if(61==(0|m)){if(0==(0|n)&0==(0|e)){if(e=2<>>12&16,h>>>=o,s=h>>>5&8,h>>>=s,A=h>>>2&4,h>>>=A,l=h>>>1&2,h>>>=l,n=h>>>1&1,e=0,n=0|i[23620+((s|o|A|l|n)+(h>>>n)<<2)>>2]}n?m=65:(A=e,o=a)}if(65==(0|m)){s=n;while(1){if(h=(-8&i[s+4>>2])-c|0,n=h>>>0>>0,a=n?h:a,e=n?s:e,n=0|i[s+16>>2],n||(n=0|i[s+20>>2]),!n){A=e,o=a;break}s=n}}if(0!=(0|A)&&o>>>0<((0|i[5831])-c|0)>>>0&&(u=A+c|0,u>>>0>A>>>0)){s=0|i[A+24>>2],t=0|i[A+12>>2];do{if((0|t)==(0|A)){if(e=A+20|0,t=0|i[e>>2],!t&&(e=A+16|0,t=0|i[e>>2],!t)){t=0;break}while(1)if(a=t+20|0,n=0|i[a>>2],n)t=n,e=a;else{if(a=t+16|0,n=0|i[a>>2],!n)break;t=n,e=a}i[e>>2]=0}else b=0|i[A+8>>2],i[b+12>>2]=t,i[t+8>>2]=b}while(0);do{if(s){if(e=0|i[A+28>>2],n=23620+(e<<2)|0,(0|A)==(0|i[n>>2])){if(i[n>>2]=t,!t){r&=~(1<>2])==(0|A)?b:s+20|0)>>2]=t,!t)break;i[t+24>>2]=s,e=0|i[A+16>>2],0|e&&(i[t+16>>2]=e,i[e+24>>2]=t),e=0|i[A+20>>2],e&&(i[t+20>>2]=e,i[e+24>>2]=t)}}while(0);e:do{if(o>>>0<16)b=o+c|0,i[A+4>>2]=3|b,b=A+b+4|0,i[b>>2]=1|i[b>>2];else{if(i[A+4>>2]=3|c,i[u+4>>2]=1|o,i[u+o>>2]=o,t=o>>>3,o>>>0<256){n=23356+(t<<1<<2)|0,e=0|i[5829],t=1<>2]):(i[5829]=e|t,t=n,e=n+8|0),i[e>>2]=u,i[t+12>>2]=u,i[u+8>>2]=t,i[u+12>>2]=n;break}if(t=o>>>8,t?o>>>0>16777215?n=31:(x=(t+1048320|0)>>>16&8,b=t<>>16&4,b<<=y,n=(b+245760|0)>>>16&2,n=14-(y|x|n)+(b<>>15)|0,n=o>>>(n+7|0)&1|n<<1):n=0,t=23620+(n<<2)|0,i[u+28>>2]=n,e=u+16|0,i[e+4>>2]=0,i[e>>2]=0,e=1<>2]=u,i[u+24>>2]=t,i[u+12>>2]=u,i[u+8>>2]=u;break}t=0|i[t>>2];t:do{if((-8&i[t+4>>2]|0)!=(0|o)){r=o<<(31==(0|n)?0:25-(n>>>1)|0);while(1){if(n=t+16+(r>>>31<<2)|0,e=0|i[n>>2],!e)break;if((-8&i[e+4>>2]|0)==(0|o)){t=e;break t}r<<=1,t=e}i[n>>2]=u,i[u+24>>2]=t,i[u+12>>2]=u,i[u+8>>2]=u;break e}}while(0);x=t+8|0,b=0|i[x>>2],i[b+12>>2]=u,i[x>>2]=u,i[u+8>>2]=b,i[u+12>>2]=t,i[u+24>>2]=0}}while(0);return b=A+8|0,B=w,0|b}h=c}else h=c;else h=-1}while(0);if(n=0|i[5831],n>>>0>=h>>>0)return t=n-h|0,e=0|i[5834],t>>>0>15?(b=e+h|0,i[5834]=b,i[5831]=t,i[b+4>>2]=1|t,i[e+n>>2]=t,i[e+4>>2]=3|h):(i[5831]=0,i[5834]=0,i[e+4>>2]=3|n,b=e+n+4|0,i[b>>2]=1|i[b>>2]),b=e+8|0,B=w,0|b;if(o=0|i[5832],o>>>0>h>>>0)return y=o-h|0,i[5832]=y,b=0|i[5835],x=b+h|0,i[5835]=x,i[x+4>>2]=1|y,i[b+4>>2]=3|h,b=b+8|0,B=w,0|b;if(0|i[5947]?e=0|i[5949]:(i[5949]=4096,i[5948]=4096,i[5950]=-1,i[5951]=-1,i[5952]=0,i[5940]=0,i[5947]=-16&f^1431655768,e=4096),A=h+48|0,l=h+47|0,s=e+l|0,a=0-e|0,c=s&a,c>>>0<=h>>>0)return b=0,B=w,0|b;if(e=0|i[5939],0|e&&(u=0|i[5937],f=u+c|0,f>>>0<=u>>>0|f>>>0>e>>>0))return b=0,B=w,0|b;e:do{if(4&i[5940])t=0,m=143;else{n=0|i[5835];t:do{if(n){r=23764;while(1){if(f=0|i[r>>2],f>>>0<=n>>>0&&(f+(0|i[r+4>>2])|0)>>>0>n>>>0)break;if(e=0|i[r+8>>2],!e){m=128;break t}r=e}if(t=s-o&a,t>>>0<2147483647)if(e=0|Xn(0|t),(0|e)==((0|i[r>>2])+(0|i[r+4>>2])|0)){if(-1!=(0|e)){o=t,s=e,m=145;break e}}else r=e,m=136;else t=0}else m=128}while(0);do{if(128==(0|m))if(n=0|Xn(0),-1!=(0|n)&&(t=n,d=0|i[5948],p=d+-1|0,t=(0==(p&t|0)?0:(p+t&0-d)-t|0)+c|0,d=0|i[5937],p=t+d|0,t>>>0>h>>>0&t>>>0<2147483647)){if(f=0|i[5939],0|f&&p>>>0<=d>>>0|p>>>0>f>>>0){t=0;break}if(e=0|Xn(0|t),(0|e)==(0|n)){o=t,s=n,m=145;break e}r=e,m=136}else t=0}while(0);do{if(136==(0|m)){if(n=0-t|0,!(A>>>0>t>>>0&t>>>0<2147483647&-1!=(0|r))){if(-1==(0|r)){t=0;break}o=t,s=r,m=145;break e}if(e=0|i[5949],e=l-t+e&0-e,e>>>0>=2147483647){o=t,s=r,m=145;break e}if(-1==(0|Xn(0|e))){Xn(0|n),t=0;break}o=e+t|0,s=r,m=145;break e}}while(0);i[5940]=4|i[5940],m=143}}while(0);if(143==(0|m)&&c>>>0<2147483647&&(y=0|Xn(0|c),p=0|Xn(0),g=p-y|0,v=g>>>0>(h+40|0)>>>0,!(-1==(0|y)|1^v|y>>>0

>>0&-1!=(0|y)&-1!=(0|p)^1))&&(o=v?g:t,s=y,m=145),145==(0|m)){t=(0|i[5937])+o|0,i[5937]=t,t>>>0>(0|i[5938])>>>0&&(i[5938]=t),l=0|i[5835];e:do{if(l){t=23764;while(1){if(e=0|i[t>>2],n=0|i[t+4>>2],(0|s)==(e+n|0)){m=154;break}if(r=0|i[t+8>>2],!r)break;t=r}if(154==(0|m)&&(x=t+4|0,0==(8&i[t+12>>2]|0))&&s>>>0>l>>>0&e>>>0<=l>>>0){i[x>>2]=n+o,b=(0|i[5832])+o|0,y=l+8|0,y=0==(7&y|0)?0:0-y&7,x=l+y|0,y=b-y|0,i[5835]=x,i[5832]=y,i[x+4>>2]=1|y,i[l+b+4>>2]=40,i[5836]=i[5951];break}s>>>0<(0|i[5833])>>>0&&(i[5833]=s),n=s+o|0,t=23764;while(1){if((0|i[t>>2])==(0|n)){m=162;break}if(e=0|i[t+8>>2],!e)break;t=e}if(162==(0|m)&&0==(8&i[t+12>>2]|0)){i[t>>2]=s,u=t+4|0,i[u>>2]=(0|i[u>>2])+o,u=s+8|0,u=s+(0==(7&u|0)?0:0-u&7)|0,t=n+8|0,t=n+(0==(7&t|0)?0:0-t&7)|0,c=u+h|0,A=t-u-h|0,i[u+4>>2]=3|h;t:do{if((0|l)==(0|t))b=(0|i[5832])+A|0,i[5832]=b,i[5835]=c,i[c+4>>2]=1|b;else{if((0|i[5834])==(0|t)){b=(0|i[5831])+A|0,i[5831]=b,i[5834]=c,i[c+4>>2]=1|b,i[c+b>>2]=b;break}if(e=0|i[t+4>>2],1==(3&e|0)){o=-8&e,r=e>>>3;n:do{if(e>>>0<256){if(e=0|i[t+8>>2],n=0|i[t+12>>2],(0|n)==(0|e)){i[5829]=i[5829]&~(1<>2]=n,i[n+8>>2]=e;break}s=0|i[t+24>>2],e=0|i[t+12>>2];do{if((0|e)==(0|t)){if(n=t+16|0,r=n+4|0,e=0|i[r>>2],e)n=r;else if(e=0|i[n>>2],!e){e=0;break}while(1)if(a=e+20|0,r=0|i[a>>2],r)e=r,n=a;else{if(a=e+16|0,r=0|i[a>>2],!r)break;e=r,n=a}i[n>>2]=0}else b=0|i[t+8>>2],i[b+12>>2]=e,i[e+8>>2]=b}while(0);if(!s)break;n=0|i[t+28>>2],r=23620+(n<<2)|0;do{if((0|i[r>>2])==(0|t)){if(i[r>>2]=e,0|e)break;i[5830]=i[5830]&~(1<>2])==(0|t)?b:s+20|0)>>2]=e,!e)break n}while(0);if(i[e+24>>2]=s,n=t+16|0,r=0|i[n>>2],0|r&&(i[e+16>>2]=r,i[r+24>>2]=e),n=0|i[n+4>>2],!n)break;i[e+20>>2]=n,i[n+24>>2]=e}while(0);t=t+o|0,a=o+A|0}else a=A;if(t=t+4|0,i[t>>2]=-2&i[t>>2],i[c+4>>2]=1|a,i[c+a>>2]=a,t=a>>>3,a>>>0<256){n=23356+(t<<1<<2)|0,e=0|i[5829],t=1<>2]):(i[5829]=e|t,t=n,e=n+8|0),i[e>>2]=c,i[t+12>>2]=c,i[c+8>>2]=t,i[c+12>>2]=n;break}t=a>>>8;do{if(t){if(a>>>0>16777215){r=31;break}x=(t+1048320|0)>>>16&8,b=t<>>16&4,b<<=y,r=(b+245760|0)>>>16&2,r=14-(y|x|r)+(b<>>15)|0,r=a>>>(r+7|0)&1|r<<1}else r=0}while(0);if(t=23620+(r<<2)|0,i[c+28>>2]=r,e=c+16|0,i[e+4>>2]=0,i[e>>2]=0,e=0|i[5830],n=1<>2]=c,i[c+24>>2]=t,i[c+12>>2]=c,i[c+8>>2]=c;break}t=0|i[t>>2];n:do{if((-8&i[t+4>>2]|0)!=(0|a)){r=a<<(31==(0|r)?0:25-(r>>>1)|0);while(1){if(n=t+16+(r>>>31<<2)|0,e=0|i[n>>2],!e)break;if((-8&i[e+4>>2]|0)==(0|a)){t=e;break n}r<<=1,t=e}i[n>>2]=c,i[c+24>>2]=t,i[c+12>>2]=c,i[c+8>>2]=c;break t}}while(0);x=t+8|0,b=0|i[x>>2],i[b+12>>2]=c,i[x>>2]=c,i[c+8>>2]=b,i[c+12>>2]=t,i[c+24>>2]=0}}while(0);return b=u+8|0,B=w,0|b}t=23764;while(1){if(e=0|i[t>>2],e>>>0<=l>>>0&&(b=e+(0|i[t+4>>2])|0,b>>>0>l>>>0))break;t=0|i[t+8>>2]}a=b+-47|0,e=a+8|0,e=a+(0==(7&e|0)?0:0-e&7)|0,a=l+16|0,e=e>>>0>>0?l:e,t=e+8|0,n=o+-40|0,y=s+8|0,y=0==(7&y|0)?0:0-y&7,x=s+y|0,y=n-y|0,i[5835]=x,i[5832]=y,i[x+4>>2]=1|y,i[s+n+4>>2]=40,i[5836]=i[5951],n=e+4|0,i[n>>2]=27,i[t>>2]=i[5941],i[t+4>>2]=i[5942],i[t+8>>2]=i[5943],i[t+12>>2]=i[5944],i[5941]=s,i[5942]=o,i[5944]=0,i[5943]=t,t=e+24|0;do{x=t,t=t+4|0,i[t>>2]=7}while((x+8|0)>>>0>>0);if((0|e)!=(0|l)){if(s=e-l|0,i[n>>2]=-2&i[n>>2],i[l+4>>2]=1|s,i[e>>2]=s,t=s>>>3,s>>>0<256){n=23356+(t<<1<<2)|0,e=0|i[5829],t=1<>2]):(i[5829]=e|t,t=n,e=n+8|0),i[e>>2]=l,i[t+12>>2]=l,i[l+8>>2]=t,i[l+12>>2]=n;break}if(t=s>>>8,t?s>>>0>16777215?r=31:(x=(t+1048320|0)>>>16&8,b=t<>>16&4,b<<=y,r=(b+245760|0)>>>16&2,r=14-(y|x|r)+(b<>>15)|0,r=s>>>(r+7|0)&1|r<<1):r=0,n=23620+(r<<2)|0,i[l+28>>2]=r,i[l+20>>2]=0,i[a>>2]=0,t=0|i[5830],e=1<>2]=l,i[l+24>>2]=n,i[l+12>>2]=l,i[l+8>>2]=l;break}t=0|i[n>>2];t:do{if((-8&i[t+4>>2]|0)!=(0|s)){r=s<<(31==(0|r)?0:25-(r>>>1)|0);while(1){if(n=t+16+(r>>>31<<2)|0,e=0|i[n>>2],!e)break;if((-8&i[e+4>>2]|0)==(0|s)){t=e;break t}r<<=1,t=e}i[n>>2]=l,i[l+24>>2]=t,i[l+12>>2]=l,i[l+8>>2]=l;break e}}while(0);x=t+8|0,b=0|i[x>>2],i[b+12>>2]=l,i[x>>2]=l,i[l+8>>2]=b,i[l+12>>2]=t,i[l+24>>2]=0}}else b=0|i[5833],0==(0|b)|s>>>0>>0&&(i[5833]=s),i[5941]=s,i[5942]=o,i[5944]=0,i[5838]=i[5947],i[5837]=-1,i[5842]=23356,i[5841]=23356,i[5844]=23364,i[5843]=23364,i[5846]=23372,i[5845]=23372,i[5848]=23380,i[5847]=23380,i[5850]=23388,i[5849]=23388,i[5852]=23396,i[5851]=23396,i[5854]=23404,i[5853]=23404,i[5856]=23412,i[5855]=23412,i[5858]=23420,i[5857]=23420,i[5860]=23428,i[5859]=23428,i[5862]=23436,i[5861]=23436,i[5864]=23444,i[5863]=23444,i[5866]=23452,i[5865]=23452,i[5868]=23460,i[5867]=23460,i[5870]=23468,i[5869]=23468,i[5872]=23476,i[5871]=23476,i[5874]=23484,i[5873]=23484,i[5876]=23492,i[5875]=23492,i[5878]=23500,i[5877]=23500,i[5880]=23508,i[5879]=23508,i[5882]=23516,i[5881]=23516,i[5884]=23524,i[5883]=23524,i[5886]=23532,i[5885]=23532,i[5888]=23540,i[5887]=23540,i[5890]=23548,i[5889]=23548,i[5892]=23556,i[5891]=23556,i[5894]=23564,i[5893]=23564,i[5896]=23572,i[5895]=23572,i[5898]=23580,i[5897]=23580,i[5900]=23588,i[5899]=23588,i[5902]=23596,i[5901]=23596,i[5904]=23604,i[5903]=23604,b=o+-40|0,y=s+8|0,y=0==(7&y|0)?0:0-y&7,x=s+y|0,y=b-y|0,i[5835]=x,i[5832]=y,i[x+4>>2]=1|y,i[s+b+4>>2]=40,i[5836]=i[5951]}while(0);if(t=0|i[5832],t>>>0>h>>>0)return y=t-h|0,i[5832]=y,b=0|i[5835],x=b+h|0,i[5835]=x,i[x+4>>2]=1|y,i[b+4>>2]=3|h,b=b+8|0,B=w,0|b}return b=0|Bn(),i[b>>2]=12,b=0,B=w,0|b}function Rn(e){e|=0;var t=0,n=0,r=0,a=0,s=0,o=0,A=0,l=0;if(e){n=e+-8|0,a=0|i[5833],e=0|i[e+-4>>2],t=-8&e,l=n+t|0;do{if(1&e)A=n,o=n;else{if(r=0|i[n>>2],!(3&e))return;if(o=n+(0-r)|0,s=r+t|0,o>>>0>>0)return;if((0|i[5834])==(0|o)){if(e=l+4|0,t=0|i[e>>2],3!=(3&t|0)){A=o,t=s;break}return i[5831]=s,i[e>>2]=-2&t,i[o+4>>2]=1|s,void(i[o+s>>2]=s)}if(n=r>>>3,r>>>0<256){if(e=0|i[o+8>>2],t=0|i[o+12>>2],(0|t)==(0|e)){i[5829]=i[5829]&~(1<>2]=t,i[t+8>>2]=e,A=o,t=s;break}a=0|i[o+24>>2],e=0|i[o+12>>2];do{if((0|e)==(0|o)){if(t=o+16|0,n=t+4|0,e=0|i[n>>2],e)t=n;else if(e=0|i[t>>2],!e){e=0;break}while(1)if(r=e+20|0,n=0|i[r>>2],n)e=n,t=r;else{if(r=e+16|0,n=0|i[r>>2],!n)break;e=n,t=r}i[t>>2]=0}else A=0|i[o+8>>2],i[A+12>>2]=e,i[e+8>>2]=A}while(0);if(a){if(t=0|i[o+28>>2],n=23620+(t<<2)|0,(0|i[n>>2])==(0|o)){if(i[n>>2]=e,!e){i[5830]=i[5830]&~(1<>2])==(0|o)?A:a+20|0)>>2]=e,!e){A=o,t=s;break}i[e+24>>2]=a,t=o+16|0,n=0|i[t>>2],0|n&&(i[e+16>>2]=n,i[n+24>>2]=e),t=0|i[t+4>>2],t?(i[e+20>>2]=t,i[t+24>>2]=e,A=o,t=s):(A=o,t=s)}else A=o,t=s}}while(0);if(!(o>>>0>=l>>>0)&&(e=l+4|0,r=0|i[e>>2],1&r)){if(2&r)i[e>>2]=-2&r,i[A+4>>2]=1|t,i[o+t>>2]=t,a=t;else{if((0|i[5835])==(0|l)){if(l=(0|i[5832])+t|0,i[5832]=l,i[5835]=A,i[A+4>>2]=1|l,(0|A)!=(0|i[5834]))return;return i[5834]=0,void(i[5831]=0)}if((0|i[5834])==(0|l))return l=(0|i[5831])+t|0,i[5831]=l,i[5834]=o,i[A+4>>2]=1|l,void(i[o+l>>2]=l);a=(-8&r)+t|0,n=r>>>3;do{if(r>>>0<256){if(t=0|i[l+8>>2],e=0|i[l+12>>2],(0|e)==(0|t)){i[5829]=i[5829]&~(1<>2]=e,i[e+8>>2]=t;break}s=0|i[l+24>>2],e=0|i[l+12>>2];do{if((0|e)==(0|l)){if(t=l+16|0,n=t+4|0,e=0|i[n>>2],e)t=n;else if(e=0|i[t>>2],!e){n=0;break}while(1)if(r=e+20|0,n=0|i[r>>2],n)e=n,t=r;else{if(r=e+16|0,n=0|i[r>>2],!n)break;e=n,t=r}i[t>>2]=0,n=e}else n=0|i[l+8>>2],i[n+12>>2]=e,i[e+8>>2]=n,n=e}while(0);if(0|s){if(e=0|i[l+28>>2],t=23620+(e<<2)|0,(0|i[t>>2])==(0|l)){if(i[t>>2]=n,!n){i[5830]=i[5830]&~(1<>2])==(0|l)?r:s+20|0)>>2]=n,!n)break;i[n+24>>2]=s,e=l+16|0,t=0|i[e>>2],0|t&&(i[n+16>>2]=t,i[t+24>>2]=n),e=0|i[e+4>>2],0|e&&(i[n+20>>2]=e,i[e+24>>2]=n)}}while(0);if(i[A+4>>2]=1|a,i[o+a>>2]=a,(0|A)==(0|i[5834]))return void(i[5831]=a)}if(e=a>>>3,a>>>0<256)return n=23356+(e<<1<<2)|0,t=0|i[5829],e=1<>2]):(i[5829]=t|e,e=n,t=n+8|0),i[t>>2]=A,i[e+12>>2]=A,i[A+8>>2]=e,void(i[A+12>>2]=n);e=a>>>8,e?a>>>0>16777215?r=31:(o=(e+1048320|0)>>>16&8,l=e<>>16&4,l<<=s,r=(l+245760|0)>>>16&2,r=14-(s|o|r)+(l<>>15)|0,r=a>>>(r+7|0)&1|r<<1):r=0,e=23620+(r<<2)|0,i[A+28>>2]=r,i[A+20>>2]=0,i[A+16>>2]=0,t=0|i[5830],n=1<>2];t:do{if((-8&i[e+4>>2]|0)!=(0|a)){r=a<<(31==(0|r)?0:25-(r>>>1)|0);while(1){if(n=e+16+(r>>>31<<2)|0,t=0|i[n>>2],!t)break;if((-8&i[t+4>>2]|0)==(0|a)){e=t;break t}r<<=1,e=t}i[n>>2]=A,i[A+24>>2]=e,i[A+12>>2]=A,i[A+8>>2]=A;break e}}while(0);o=e+8|0,l=0|i[o>>2],i[l+12>>2]=A,i[o>>2]=A,i[A+8>>2]=l,i[A+12>>2]=e,i[A+24>>2]=0}else i[5830]=t|n,i[e>>2]=A,i[A+24>>2]=e,i[A+12>>2]=A,i[A+8>>2]=A}while(0);if(l=(0|i[5837])-1|0,i[5837]=l,!(0|l)){e=23772;while(1){if(e=0|i[e>>2],!e)break;e=e+8|0}i[5837]=-1}}}}function kn(e,t){e|=0,t|=0;var n=0;return e?(n=0|y(t,e),(t|e)>>>0>65535&&(n=(0|(n>>>0)/(e>>>0))==(0|t)?n:-1)):n=0,e=0|Pn(n),e&&3&i[e+-4>>2]?(jn(0|e,0,0|n),0|e):0|e}function On(e,t,n,r){return e|=0,t|=0,n|=0,r|=0,n=e+n>>>0,0|(w(t+r+(n>>>0>>0|0)>>>0|0),0|n)}function Un(e,t,n,r){return e|=0,t|=0,n|=0,r|=0,r=t-r-(n>>>0>e>>>0|0)>>>0,0|(w(0|r),e-n>>>0|0)}function Fn(e){return e|=0,0|(e?31-(0|b(e^e-1))|0:32)}function Nn(e,t,n,r,a){e|=0,t|=0,n|=0,r|=0,a|=0;var s=0,o=0,A=0,l=0,c=0,u=0,h=0,f=0,d=0,p=0;if(u=e,l=t,c=l,o=n,f=r,A=f,!c)return s=0!=(0|a),A?s?(i[a>>2]=0|e,i[a+4>>2]=0&t,f=0,a=0,0|(w(0|f),a)):(f=0,a=0,0|(w(0|f),a)):(s&&(i[a>>2]=(u>>>0)%(o>>>0),i[a+4>>2]=0),f=0,a=(u>>>0)/(o>>>0)>>>0,0|(w(0|f),a));s=0==(0|A);do{if(o){if(!s){if(s=(0|b(0|A))-(0|b(0|c))|0,s>>>0<=31){h=s+1|0,A=31-s|0,t=s-31>>31,o=h,e=u>>>(h>>>0)&t|c<>>(h>>>0),s=0,A=u<>2]=0|e,i[a+4>>2]=l|0&t,f=0,a=0,0|(w(0|f),a)):(f=0,a=0,0|(w(0|f),a))}if(s=o-1|0,s&o|0){A=33+(0|b(0|o))-(0|b(0|c))|0,p=64-A|0,h=32-A|0,l=h>>31,d=A-32|0,t=d>>31,o=A,e=h-1>>31&c>>>(d>>>0)|(c<>>(A>>>0))&t,t&=c>>>(A>>>0),s=u<>>(d>>>0))&l|u<>31;break}return 0|a&&(i[a>>2]=s&u,i[a+4>>2]=0),1==(0|o)?(d=l|0&t,p=0|e,0|(w(0|d),p)):(p=0|Fn(0|o),d=c>>>(p>>>0)|0,p=c<<32-p|u>>>(p>>>0)|0,0|(w(0|d),p))}if(s)return 0|a&&(i[a>>2]=(c>>>0)%(o>>>0),i[a+4>>2]=0),d=0,p=(c>>>0)/(o>>>0)>>>0,0|(w(0|d),p);if(!u)return 0|a&&(i[a>>2]=0,i[a+4>>2]=(c>>>0)%(A>>>0)),d=0,p=(c>>>0)/(A>>>0)>>>0,0|(w(0|d),p);if(s=A-1|0,!(s&A))return 0|a&&(i[a>>2]=0|e,i[a+4>>2]=s&c|0&t),d=0,p=c>>>((0|Fn(0|A))>>>0),0|(w(0|d),p);if(s=(0|b(0|A))-(0|b(0|c))|0,s>>>0<=30){t=s+1|0,A=31-s|0,o=t,e=c<>>(t>>>0),t=c>>>(t>>>0),s=0,A=u<>2]=0|e,i[a+4>>2]=l|0&t,d=0,p=0,0|(w(0|d),p)):(d=0,p=0,0|(w(0|d),p))}while(0);if(o){h=0|n,u=f|0&r,c=0|On(0|h,0|u,-1,-1),n=0|_(),l=A,A=0;do{r=l,l=s>>>31|l<<1,s=A|s<<1,r=e<<1|r>>>31|0,f=e>>>31|t<<1|0,Un(0|c,0|n,0|r,0|f),p=0|_(),d=p>>31|((0|p)<0?-1:0)<<1,A=1&d,e=0|Un(0|r,0|f,d&h|0,(((0|p)<0?-1:0)>>31|((0|p)<0?-1:0)<<1)&u|0),t=0|_(),o=o-1|0}while(0!=(0|o));c=l,l=0}else c=A,l=0,A=0;return o=0,0|a&&(i[a>>2]=e,i[a+4>>2]=t),d=(0|s)>>>31|(c|o)<<1|0&(o<<1|s>>>31)|l,p=-2&(s<<1|0)|A,0|(w(0|d),p)}function zn(e,t,n,r){e|=0,t|=0,n|=0,r|=0;var a=0,s=0;return s=B,B=B+16|0,a=0|s,Nn(e,t,n,r,a),B=s,0|(w(0|i[a+4>>2]),0|i[a>>2])}function Hn(e,t,n){return e|=0,t|=0,n|=0,(0|n)<32?(w(t>>>n|0),e>>>n|(t&(1<>>n-32|0)}function Gn(e,t,n){return e|=0,t|=0,n|=0,(0|n)<32?(w(t<>>32-n|0),e<=0?+o(e+.5):+v(e-.5)}function Qn(e,t,n){e|=0,t|=0,n|=0;var a=0,s=0,o=0;if((0|n)>=8192)return C(0|e,0|t,0|n),0|e;if(o=0|e,s=e+n|0,(3&e)==(3&t)){while(3&e){if(!n)return 0|o;r[e>>0]=0|r[t>>0],e=e+1|0,t=t+1|0,n=n-1|0}n=-4&s|0,a=n-64|0;while((0|e)<=(0|a))i[e>>2]=i[t>>2],i[e+4>>2]=i[t+4>>2],i[e+8>>2]=i[t+8>>2],i[e+12>>2]=i[t+12>>2],i[e+16>>2]=i[t+16>>2],i[e+20>>2]=i[t+20>>2],i[e+24>>2]=i[t+24>>2],i[e+28>>2]=i[t+28>>2],i[e+32>>2]=i[t+32>>2],i[e+36>>2]=i[t+36>>2],i[e+40>>2]=i[t+40>>2],i[e+44>>2]=i[t+44>>2],i[e+48>>2]=i[t+48>>2],i[e+52>>2]=i[t+52>>2],i[e+56>>2]=i[t+56>>2],i[e+60>>2]=i[t+60>>2],e=e+64|0,t=t+64|0;while((0|e)<(0|n))i[e>>2]=i[t>>2],e=e+4|0,t=t+4|0}else{n=s-4|0;while((0|e)<(0|n))r[e>>0]=0|r[t>>0],r[e+1>>0]=0|r[t+1>>0],r[e+2>>0]=0|r[t+2>>0],r[e+3>>0]=0|r[t+3>>0],e=e+4|0,t=t+4|0}while((0|e)<(0|s))r[e>>0]=0|r[t>>0],e=e+1|0,t=t+1|0;return 0|o}function jn(e,t,n){e|=0,t|=0,n|=0;var a=0,s=0,o=0,A=0;if(o=e+n|0,t&=255,(0|n)>=67){while(3&e)r[e>>0]=t,e=e+1|0;a=-4&o|0,A=t|t<<8|t<<16|t<<24,s=a-64|0;while((0|e)<=(0|s))i[e>>2]=A,i[e+4>>2]=A,i[e+8>>2]=A,i[e+12>>2]=A,i[e+16>>2]=A,i[e+20>>2]=A,i[e+24>>2]=A,i[e+28>>2]=A,i[e+32>>2]=A,i[e+36>>2]=A,i[e+40>>2]=A,i[e+44>>2]=A,i[e+48>>2]=A,i[e+52>>2]=A,i[e+56>>2]=A,i[e+60>>2]=A,e=e+64|0;while((0|e)<(0|a))i[e>>2]=A,e=e+4|0}while((0|e)<(0|o))r[e>>0]=t,e=e+1|0;return o-n|0}function Yn(e){return e=+e,e>=0?+o(e+.5):+v(e-.5)}function Xn(e){e|=0;var t=0,n=0,r=0;return r=0|E(),n=0|i[s>>2],t=n+e|0,(0|e)>0&(0|t)<(0|n)|(0|t)<0?(D(0|t),S(12),-1):(0|t)>(0|r)&&!(0|T(0|t))?(S(12),-1):(i[s>>2]=t,0|n)}return{___uremdi3:zn,_bitshift64Lshr:Hn,_bitshift64Shl:Gn,_calloc:kn,_cellAreaKm2:it,_cellAreaM2:at,_cellAreaRads2:rt,_compact:gt,_destroyLinkedPolygon:Yt,_edgeLengthKm:$e,_edgeLengthM:et,_emscripten_replace_memory:L,_exactEdgeLengthKm:ot,_exactEdgeLengthM:At,_exactEdgeLengthRads:st,_experimentalH3ToLocalIj:Jt,_experimentalLocalIjToH3:$t,_free:Rn,_geoToH3:Tt,_getDestinationH3IndexFromUnidirectionalEdge:zt,_getH3IndexesFromUnidirectionalEdge:Gt,_getH3UnidirectionalEdge:Ft,_getH3UnidirectionalEdgeBoundary:Wt,_getH3UnidirectionalEdgesFromHexagon:Vt,_getOriginH3IndexFromUnidirectionalEdge:Nt,_getPentagonIndexes:Ot,_getRes0Indexes:ae,_h3Distance:en,_h3GetBaseCell:ct,_h3GetFaces:Rt,_h3GetResolution:lt,_h3IndexesAreNeighbors:Ut,_h3IsPentagon:pt,_h3IsResClassIII:xt,_h3IsValid:ut,_h3Line:nn,_h3LineSize:tn,_h3SetToLinkedGeo:X,_h3ToCenterChild:mt,_h3ToChildren:dt,_h3ToGeo:Lt,_h3ToGeoBoundary:It,_h3ToParent:ht,_h3UnidirectionalEdgeIsValid:Ht,_hexAreaKm2:Ke,_hexAreaM2:Je,_hexRing:G,_i64Subtract:Un,_kRing:U,_kRingDistances:F,_llvm_minnum_f64:Vn,_llvm_round_f64:Wn,_malloc:Pn,_maxFaceCount:Pt,_maxH3ToChildrenSize:ft,_maxKringSize:O,_maxPolyfillSize:V,_maxUncompactSize:yt,_memcpy:Qn,_memset:jn,_numHexagons:tt,_pentagonIndexCount:kt,_pointDistKm:Ye,_pointDistM:Xe,_pointDistRads:je,_polyfill:W,_res0IndexCount:ie,_round:Yn,_sbrk:Xn,_sizeOfCoordIJ:pn,_sizeOfGeoBoundary:un,_sizeOfGeoCoord:cn,_sizeOfGeoPolygon:fn,_sizeOfGeofence:hn,_sizeOfH3Index:ln,_sizeOfLinkedGeoPolygon:dn,_uncompact:vt,establishStackSpace:k,stackAlloc:I,stackRestore:R,stackSave:P}}(Ee,Ce,E),De=(n["___uremdi3"]=Te["___uremdi3"],n["_bitshift64Lshr"]=Te["_bitshift64Lshr"],n["_bitshift64Shl"]=Te["_bitshift64Shl"],n["_calloc"]=Te["_calloc"],n["_cellAreaKm2"]=Te["_cellAreaKm2"],n["_cellAreaM2"]=Te["_cellAreaM2"],n["_cellAreaRads2"]=Te["_cellAreaRads2"],n["_compact"]=Te["_compact"],n["_destroyLinkedPolygon"]=Te["_destroyLinkedPolygon"],n["_edgeLengthKm"]=Te["_edgeLengthKm"],n["_edgeLengthM"]=Te["_edgeLengthM"],n["_emscripten_replace_memory"]=Te["_emscripten_replace_memory"]),Be=(n["_exactEdgeLengthKm"]=Te["_exactEdgeLengthKm"],n["_exactEdgeLengthM"]=Te["_exactEdgeLengthM"],n["_exactEdgeLengthRads"]=Te["_exactEdgeLengthRads"],n["_experimentalH3ToLocalIj"]=Te["_experimentalH3ToLocalIj"],n["_experimentalLocalIjToH3"]=Te["_experimentalLocalIjToH3"],n["_free"]=Te["_free"],n["_geoToH3"]=Te["_geoToH3"],n["_getDestinationH3IndexFromUnidirectionalEdge"]=Te["_getDestinationH3IndexFromUnidirectionalEdge"],n["_getH3IndexesFromUnidirectionalEdge"]=Te["_getH3IndexesFromUnidirectionalEdge"],n["_getH3UnidirectionalEdge"]=Te["_getH3UnidirectionalEdge"],n["_getH3UnidirectionalEdgeBoundary"]=Te["_getH3UnidirectionalEdgeBoundary"],n["_getH3UnidirectionalEdgesFromHexagon"]=Te["_getH3UnidirectionalEdgesFromHexagon"],n["_getOriginH3IndexFromUnidirectionalEdge"]=Te["_getOriginH3IndexFromUnidirectionalEdge"],n["_getPentagonIndexes"]=Te["_getPentagonIndexes"],n["_getRes0Indexes"]=Te["_getRes0Indexes"],n["_h3Distance"]=Te["_h3Distance"],n["_h3GetBaseCell"]=Te["_h3GetBaseCell"],n["_h3GetFaces"]=Te["_h3GetFaces"],n["_h3GetResolution"]=Te["_h3GetResolution"],n["_h3IndexesAreNeighbors"]=Te["_h3IndexesAreNeighbors"],n["_h3IsPentagon"]=Te["_h3IsPentagon"],n["_h3IsResClassIII"]=Te["_h3IsResClassIII"],n["_h3IsValid"]=Te["_h3IsValid"],n["_h3Line"]=Te["_h3Line"],n["_h3LineSize"]=Te["_h3LineSize"],n["_h3SetToLinkedGeo"]=Te["_h3SetToLinkedGeo"],n["_h3ToCenterChild"]=Te["_h3ToCenterChild"],n["_h3ToChildren"]=Te["_h3ToChildren"],n["_h3ToGeo"]=Te["_h3ToGeo"],n["_h3ToGeoBoundary"]=Te["_h3ToGeoBoundary"],n["_h3ToParent"]=Te["_h3ToParent"],n["_h3UnidirectionalEdgeIsValid"]=Te["_h3UnidirectionalEdgeIsValid"],n["_hexAreaKm2"]=Te["_hexAreaKm2"],n["_hexAreaM2"]=Te["_hexAreaM2"],n["_hexRing"]=Te["_hexRing"],n["_i64Subtract"]=Te["_i64Subtract"],n["_kRing"]=Te["_kRing"],n["_kRingDistances"]=Te["_kRingDistances"],n["_llvm_minnum_f64"]=Te["_llvm_minnum_f64"],n["_llvm_round_f64"]=Te["_llvm_round_f64"],n["_malloc"]=Te["_malloc"],n["_maxFaceCount"]=Te["_maxFaceCount"],n["_maxH3ToChildrenSize"]=Te["_maxH3ToChildrenSize"],n["_maxKringSize"]=Te["_maxKringSize"],n["_maxPolyfillSize"]=Te["_maxPolyfillSize"],n["_maxUncompactSize"]=Te["_maxUncompactSize"],n["_memcpy"]=Te["_memcpy"],n["_memset"]=Te["_memset"],n["_numHexagons"]=Te["_numHexagons"],n["_pentagonIndexCount"]=Te["_pentagonIndexCount"],n["_pointDistKm"]=Te["_pointDistKm"],n["_pointDistM"]=Te["_pointDistM"],n["_pointDistRads"]=Te["_pointDistRads"],n["_polyfill"]=Te["_polyfill"],n["_res0IndexCount"]=Te["_res0IndexCount"],n["_round"]=Te["_round"],n["_sbrk"]=Te["_sbrk"],n["_sizeOfCoordIJ"]=Te["_sizeOfCoordIJ"],n["_sizeOfGeoBoundary"]=Te["_sizeOfGeoBoundary"],n["_sizeOfGeoCoord"]=Te["_sizeOfGeoCoord"],n["_sizeOfGeoPolygon"]=Te["_sizeOfGeoPolygon"],n["_sizeOfGeofence"]=Te["_sizeOfGeofence"],n["_sizeOfH3Index"]=Te["_sizeOfH3Index"],n["_sizeOfLinkedGeoPolygon"]=Te["_sizeOfLinkedGeoPolygon"],n["_uncompact"]=Te["_uncompact"],n["establishStackSpace"]=Te["establishStackSpace"],n["stackAlloc"]=Te["stackAlloc"]),Le=n["stackRestore"]=Te["stackRestore"],Ie=n["stackSave"]=Te["stackSave"];if(n["asm"]=Te,n["cwrap"]=x,n["setValue"]=d,n["getValue"]=p,n["getTempRet0"]=h,oe){le(oe)||(oe=o(oe)),re("memory initializer");var Pe=function(e){e.byteLength&&(e=new Uint8Array(e)),T.set(e,f),n["memoryInitializerRequest"]&&delete n["memoryInitializerRequest"].response,ie("memory initializer")},Re=function(){i(oe,Pe,(function(){throw"could not load memory initializer "+oe}))},ke=Me(oe);if(ke)Pe(ke.buffer);else if(n["memoryInitializerRequest"]){var Oe=function(){var e=n["memoryInitializerRequest"],t=e.response;if(200!==e.status&&0!==e.status){var r=Me(n["memoryInitializerRequestURL"]);if(!r)return console.warn("a problem seems to have happened with Module.memoryInitializerRequest, status: "+e.status+", retrying "+oe),void Re();t=r.buffer}Pe(t)};n["memoryInitializerRequest"].response?setTimeout(Oe,0):n["memoryInitializerRequest"].addEventListener("load",Oe)}else Re()}function Ue(e){function t(){Se||(Se=!0,m||(Q(),j(),n["onRuntimeInitialized"]&&n["onRuntimeInitialized"](),Y()))}e=e||a,ee>0||(W(),ee>0||(n["setStatus"]?(n["setStatus"]("Running..."),setTimeout((function(){setTimeout((function(){n["setStatus"]("")}),1),t()}),1)):t()))}function Fe(e){throw n["onAbort"]&&n["onAbort"](e),e+="",A(e),l(e),m=!0,"abort("+e+"). Build with -s ASSERTIONS=1 for more info."}if(ne=function e(){Se||Ue(),Se||(ne=e)},n["run"]=Ue,n["abort"]=Fe,n["preInit"]){"function"==typeof n["preInit"]&&(n["preInit"]=[n["preInit"]]);while(n["preInit"].length>0)n["preInit"].pop()()}return Ue(),e}("object"===typeof r?r:{}),i="number",a=i,s=i,o=i,A=i,l=i,c=[["sizeOfH3Index",i],["sizeOfGeoCoord",i],["sizeOfGeoBoundary",i],["sizeOfGeoPolygon",i],["sizeOfGeofence",i],["sizeOfLinkedGeoPolygon",i],["sizeOfCoordIJ",i],["h3IsValid",a,[s,o]],["geoToH3",s,[i,i,A]],["h3ToGeo",null,[s,o,l]],["h3ToGeoBoundary",null,[s,o,l]],["maxKringSize",i,[i]],["kRing",null,[s,o,i,l]],["kRingDistances",null,[s,o,i,l,l]],["hexRing",null,[s,o,i,l]],["maxPolyfillSize",i,[l,A]],["polyfill",null,[l,A,l]],["h3SetToLinkedGeo",null,[l,i,l]],["destroyLinkedPolygon",null,[l]],["compact",i,[l,l,i]],["uncompact",i,[l,i,l,i,A]],["maxUncompactSize",i,[l,i,A]],["h3IsPentagon",a,[s,o]],["h3IsResClassIII",a,[s,o]],["h3GetBaseCell",i,[s,o]],["h3GetResolution",i,[s,o]],["maxFaceCount",i,[s,o]],["h3GetFaces",null,[s,o,l]],["h3ToParent",s,[s,o,A]],["h3ToChildren",null,[s,o,A,l]],["h3ToCenterChild",s,[s,o,A]],["maxH3ToChildrenSize",i,[s,o,A]],["h3IndexesAreNeighbors",a,[s,o,s,o]],["getH3UnidirectionalEdge",s,[s,o,s,o]],["getOriginH3IndexFromUnidirectionalEdge",s,[s,o]],["getDestinationH3IndexFromUnidirectionalEdge",s,[s,o]],["h3UnidirectionalEdgeIsValid",a,[s,o]],["getH3IndexesFromUnidirectionalEdge",null,[s,o,l]],["getH3UnidirectionalEdgesFromHexagon",null,[s,o,l]],["getH3UnidirectionalEdgeBoundary",null,[s,o,l]],["h3Distance",i,[s,o,s,o]],["h3Line",i,[s,o,s,o,l]],["h3LineSize",i,[s,o,s,o]],["experimentalH3ToLocalIj",i,[s,o,s,o,l]],["experimentalLocalIjToH3",i,[s,o,l,l]],["hexAreaM2",i,[A]],["hexAreaKm2",i,[A]],["edgeLengthM",i,[A]],["edgeLengthKm",i,[A]],["pointDistM",i,[l,l]],["pointDistKm",i,[l,l]],["pointDistRads",i,[l,l]],["cellAreaM2",i,[s,o]],["cellAreaKm2",i,[s,o]],["cellAreaRads2",i,[s,o]],["exactEdgeLengthM",i,[s,o]],["exactEdgeLengthKm",i,[s,o]],["exactEdgeLengthRads",i,[s,o]],["numHexagons",i,[A]],["getRes0Indexes",null,[l]],["res0IndexCount",i],["getPentagonIndexes",null,[i,l]],["pentagonIndexCount",i]],u={};c.forEach((function(e){u[e[0]]=r.cwrap.apply(r,e)}));var h=16,f=4,d=8,p=u.sizeOfH3Index(),m=u.sizeOfGeoCoord(),g=u.sizeOfGeoBoundary();u.sizeOfGeoPolygon(),u.sizeOfGeofence(),u.sizeOfLinkedGeoPolygon(),u.sizeOfCoordIJ();var v=/[^0-9a-fA-F]/;function y(e){if(Array.isArray(e)&&2===e.length&&Number.isInteger(e[0])&&Number.isInteger(e[1]))return e;if("string"!==typeof e||v.test(e))return[0,0];var t=parseInt(e.substring(0,e.length-8),h),n=parseInt(e.substring(e.length-8),h);return[n,t]}function x(e){if(e>=0)return e.toString(h);e&=2147483647;var t=w(8,e.toString(h)),n=(parseInt(t[0],h)+8).toString(h);return t=n+t.substring(1),t}function b(e,t){return x(t)+w(8,x(e))}function w(e,t){for(var n=e-t.length,r="",i=0;i0&&o.length>i&&!o.warned){o.warned=!0;var A=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");A.name="MaxListenersExceededWarning",A.emitter=e,A.type=t,A.count=o.length,s(A)}return e}function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=f.bind(r);return i.listener=n,r.wrapFn=i,i}function p(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"===typeof i?n?[i.listener||i]:[i]:n?y(i):g(i,i.length)}function m(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"===typeof n)return 1;if(void 0!==n)return n.length}return 0}function g(e,t){for(var n=new Array(t),r=0;r0&&(s=t[0]),s instanceof Error)throw s;var o=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw o.context=s,o}var A=i[e];if(void 0===A)return!1;if("function"===typeof A)a(A,this,t);else{var l=A.length,c=g(A,l);for(n=0;n=0;a--)if(n[a]===t||n[a].listener===t){s=n[a].listener,i=a;break}if(i<0)return this;0===i?n.shift():v(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,s||t)}return this},A.prototype.off=A.prototype.removeListener,A.prototype.removeAllListeners=function(e){var t,n,r;if(n=this._events,void 0===n)return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,a=Object.keys(n);for(r=0;r=0;r--)this.removeListener(e,t[r]);return this},A.prototype.listeners=function(e){return p(this,e,!0)},A.prototype.rawListeners=function(e){return p(this,e,!1)},A.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):m.call(e,t)},A.prototype.listenerCount=m,A.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},fc6a:function(e,t,n){var r=n("44ad"),i=n("1d80");e.exports=function(e){return r(i(e))}},fdbf:function(e,t,n){var r=n("04f8");e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}}]); //# sourceMappingURL=chunk-vendors.c9f85e29.js.map