PageSourceSearch

https://www.jxtech.ai/_next/static/chunks/3178.c3386b08d0ef88f0.js

js jxtech.ai collected 2026-10-05 14:53:51 UTC 326,613 bytes, 393 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3178],{473:(t,e,n)=>{"use strict";n.d(e,{G:()=>o});var r=n(87548),i=n(85339);r.fCn.line={worldUnits:{value:1},linewidth:{value:1},resolution:{value:new i.I9Y(1,1)},dashOffset:{value:0},dashScale:{value:1},dashSize:{value:1},gapSize:{value:1}},r.zkh.line={uniforms:i.LlO.merge([r.fCn.common,r.fCn.fog,r.fCn.line]),vertexShader:`
2		#include <common>
3		#include <color_pars_vertex>
4		#include <fog_pars_vertex>
5		#include <logdepthbuf_pars_vertex>
6		#include <clipping_planes_pars_vertex>
7
8		uniform float linewidth;
9		uniform vec2 resolution;
10
11		attribute vec3 instanceStart;
12		attribute vec3 instanceEnd;
13
14		attribute vec3 instanceColorStart;
15		attribute vec3 instanceColorEnd;
16
17		#ifdef WORLD_UNITS
18
19			varying vec4 worldPos;
20			varying vec3 worldStart;
21			varying vec3 worldEnd;
22
23			#ifdef USE_DASH
24
25				varying vec2 vUv;
26
27			#endif
28
29		#else
30
31			varying vec2 vUv;
32
33		#endif
34
35		#ifdef USE_DASH
36
37			uniform float dashScale;
38			attribute float instanceDistanceStart;
39			attribute float instanceDistanceEnd;
40			varying float vLineDistance;
41
42		#endif
43
44		void trimSegment( const in vec4 start, inout vec4 end ) {
45
46			// trim end segment so it terminates between the camera plane and the near plane
47
48			// conservative estimate of the near plane
49			float a = projectionMatrix[ 2 ][ 2 ]; // 3nd entry in 3th column
50			float b = projectionMatrix[ 3 ][ 2 ]; // 3nd entry in 4th column
51			float nearEstimate = - 0.5 * b / a;
52
53			float alpha = ( nearEstimate - start.z ) / ( end.z - start.z );
54
55			end.xyz = mix( start.xyz, end.xyz, alpha );
56
57		}
58
59		void main() {
60
61			#ifdef USE_COLOR
62
63				vColor.xyz = ( position.y < 0.5 ) ? instanceColorStart : instanceColorEnd;
64
65			#endif
66
67			#ifdef USE_DASH
68
69				vLineDistance = ( position.y < 0.5 ) ? dashScale * instanceDistanceStart : dashScale * instanceDistanceEnd;
70				vUv = uv;
71
72			#endif
73
74			float aspect = resolution.x / resolution.y;
75
76			// camera space
77			vec4 start = modelViewMatrix * vec4( instanceStart, 1.0 );
78			vec4 end = modelViewMatrix * vec4( instanceEnd, 1.0 );
79
80			#ifdef WORLD_UNITS
81
82				worldStart = start.xyz;
83				worldEnd = end.xyz;
84
85			#else
86
87				vUv = uv;
88
89			#endif
90
91			// special case for perspective projection, and segments that terminate either in, or behind, the camera plane
92			// clearly the gpu firmware has a way of addressing this issue when projecting into ndc space
93			// but we need to perform ndc-space calculations in the shader, so we must address this issue directly
94			// perhaps there is a more elegant solution -- WestLangley
95
96			bool perspective = ( projectionMatrix[ 2 ][ 3 ] == - 1.0 ); // 4th entry in the 3rd column
97
98			if ( perspective ) {
99
100				if ( start.z < 0.0 && end.z >= 0.0 ) {
101
102					trimSegment( start, end );
103
104				} else if ( end.z < 0.0 && start.z >= 0.0 ) {
105
106					trimSegment( end, start );
107
108				}
109
110			}
111
112			// clip space
113			vec4 clipStart = projectionMatrix * start;
114			vec4 clipEnd = projectionMatrix * end;
115
116			// ndc space
117			vec3 ndcStart = clipStart.xyz / clipStart.w;
118			vec3 ndcEnd = clipEnd.xyz / clipEnd.w;
119
120			// direction
121			vec2 dir = ndcEnd.xy - ndcStart.xy;
122
123			// account for clip-space aspect ratio
124			dir.x *= aspect;
125			dir = normalize( dir );
126
127			#ifdef WORLD_UNITS
128
129				vec3 worldDir = normalize( end.xyz - start.xyz );
130				vec3 tmpFwd = normalize( mix( start.xyz, end.xyz, 0.5 ) );
131				vec3 worldUp = normalize( cross( worldDir, tmpFwd ) );
132				vec3 worldFwd = cross( worldDir, worldUp );
133				worldPos = position.y < 0.5 ? start: end;
134
135				// height offset
136				float hw = linewidth * 0.5;
137				worldPos.xyz += position.x < 0.0 ? hw * worldUp : - hw * worldUp;
138
139				// don't extend the line if we're rendering dashes because we
140				// won't be rendering the endcaps
141				#ifndef USE_DASH
142
143					// cap extension
144					worldPos.xyz += position.y < 0.5 ? - hw * worldDir : hw * worldDir;
145
146					// add width to the box
147					worldPos.xyz += worldFwd * hw;
148
149					// endcaps
150					if ( position.y > 1.0 || position.y < 0.0 ) {
151
152						worldPos.xyz -= worldFwd * 2.0 * hw;
153
154					}
155
156				#endif
157
158				// project the worldpos
159				vec4 clip = projectionMatrix * worldPos;
160
161				// shift the depth of the projected points so the line
162				// segments overlap neatly
163				vec3 clipPose = ( position.y < 0.5 ) ? ndcStart : ndcEnd;
164				clip.z = clipPose.z * clip.w;
165
166			#else
167
168				vec2 offset = vec2( dir.y, - dir.x );
169				// undo aspect ratio adjustment
170				dir.x /= aspect;
171				offset.x /= aspect;
172
173				// sign flip
174				if ( position.x < 0.0 ) offset *= - 1.0;
175
176				// endcaps
177				if ( position.y < 0.0 ) {
178
179					offset += - dir;
180
181				} else if ( position.y > 1.0 ) {
182
183					offset += dir;
184
185				}
186
187				// adjust for linewidth
188				offset *= linewidth;
189
190				// adjust for clip-space to screen-space conversion // maybe resolution should be based on viewport ...
191				offset /= resolution.y;
192
193				// select end
194				vec4 clip = ( position.y < 0.5 ) ? clipStart : clipEnd;
195
196				// back to clip space
197				offset *= clip.w;
198
199				clip.xy += offset;
200
201			#endif
202
203			gl_Position = clip;
204
205			vec4 mvPosition = ( position.y < 0.5 ) ? start : end; // this is an approximation
206
207			#include <logdepthbuf_vertex>
208			#include <clipping_planes_vertex>
209			#include <fog_vertex>
210
211		}
212		`,fragmentShader:`
213		uniform vec3 diffuse;
214		uniform float opacity;
215		uniform float linewidth;
216
217		#ifdef USE_DASH
218
219			uniform float dashOffset;
220			uniform float dashSize;
221			uniform float gapSize;
222
223		#endif
224
225		varying float vLineDistance;
226
227		#ifdef WORLD_UNITS
228
229			varying vec4 worldPos;
230			varying vec3 worldStart;
231			varying vec3 worldEnd;
232
233			#ifdef USE_DASH
234
235				varying vec2 vUv;
236
237			#endif
238
239		#else
240
241			varying vec2 vUv;
242
243		#endif
244
245		#include <common>
246		#include <color_pars_fragment>
247		#include <fog_pars_fragment>
248		#include <logdepthbuf_pars_fragment>
249		#include <clipping_planes_pars_fragment>
250
251		vec2 closestLineToLine(vec3 p1, vec3 p2, vec3 p3, vec3 p4) {
252
253			float mua;
254			float mub;
255
256			vec3 p13 = p1 - p3;
257			vec3 p43 = p4 - p3;
258
259			vec3 p21 = p2 - p1;
260
261			float d1343 = dot( p13, p43 );
262			float d4321 = dot( p43, p21 );
263			float d1321 = dot( p13, p21 );
264			float d4343 = dot( p43, p43 );
265			float d2121 = dot( p21, p21 );
266
267			float denom = d2121 * d4343 - d4321 * d4321;
268
269			float numer = d1343 * d4321 - d1321 * d4343;
270
271			mua = numer / denom;
272			mua = clamp( mua, 0.0, 1.0 );
273			mub = ( d1343 + d4321 * ( mua ) ) / d4343;
274			mub = clamp( mub, 0.0, 1.0 );
275
276			return vec2( mua, mub );
277
278		}
279
280		void main() {
281
282			float alpha = opacity;
283			vec4 diffuseColor = vec4( diffuse, alpha );
284
285			#include <clipping_planes_fragment>
286
287			#ifdef USE_DASH
288
289				if ( vUv.y < - 1.0 || vUv.y > 1.0 ) discard; // discard endcaps
290
291				if ( mod( vLineDistance + dashOffset, dashSize + gapSize ) > dashSize ) discard; // todo - FIX
292
293			#endif
294
295			#ifdef WORLD_UNITS
296
297				// Find the closest points on the view ray and the line segment
298				vec3 rayEnd = normalize( worldPos.xyz ) * 1e5;
299				vec3 lineDir = worldEnd - worldStart;
300				vec2 params = closestLineToLine( worldStart, worldEnd, vec3( 0.0, 0.0, 0.0 ), rayEnd );
301
302				vec3 p1 = worldStart + lineDir * params.x;
303				vec3 p2 = rayEnd * params.y;
304				vec3 delta = p1 - p2;
305				float len = length( delta );
306				float norm = len / linewidth;
307
308				#ifndef USE_DASH
309
310					#ifdef USE_ALPHA_TO_COVERAGE
311
312						float dnorm = fwidth( norm );
313						alpha = 1.0 - smoothstep( 0.5 - dnorm, 0.5 + dnorm, norm );
314
315					#else
316
317						if ( norm > 0.5 ) {
318
319							discard;
320
321						}
322
323					#endif
324
325				#endif
326
327			#else
328
329				#ifdef USE_ALPHA_TO_COVERAGE
330
331					// artifacts appear on some hardware if a derivative is taken within a conditional
332					float a = vUv.x;
333					float b = ( vUv.y > 0.0 ) ? vUv.y - 1.0 : vUv.y + 1.0;
334					float len2 = a * a + b * b;
335					float dlen = fwidth( len2 );
336
337					if ( abs( vUv.y ) > 1.0 ) {
338
339						alpha = 1.0 - smoothstep( 1.0 - dlen, 1.0 + dlen, len2 );
340
341					}
342
343				#else
344
345					if ( abs( vUv.y ) > 1.0 ) {
346
347						float a = vUv.x;
348						float b = ( vUv.y > 0.0 ) ? vUv.y - 1.0 : vUv.y + 1.0;
349						float len2 = a * a + b * b;
350
351						if ( len2 > 1.0 ) discard;
352
353					}
354
355				#endif
356
357			#endif
358
359			#include <logdepthbuf_fragment>
360			#include <color_fragment>
361
362			gl_FragColor = vec4( diffuseColor.rgb, alpha );
363
364			#include <tonemapping_fragment>
365			#include <colorspace_fragment>
366			#include <fog_fragment>
367			#include <premultiplied_alpha_fragment>
368
369		}
370		`};class o extends i.BKk{constructor(t){super({type:"LineMaterial",uniforms:i.LlO.clone(r.zkh.line.uniforms),vertexShader:r.zkh.line.vertexShader,fragmentShader:r.zkh.line.fragmentShader,clipping:!0}),this.isLineMaterial=!0,this.setValues(t)}get color(){return this.uniforms.diffuse.value}set color(t){this.uniforms.diffuse.value=t}get worldUnits(){return"WORLD_UNITS"in this.defines}set worldUnits(t){!0===t?this.defines.WORLD_UNITS="":delete this.defines.WORLD_UNITS}get linewidth(){return this.uniforms.linewidth.value}set linewidth(t){this.uniforms.linewidth&&(this.uniforms.linewidth.value=t)}get dashed(){return"USE_DASH"in this.defines}set dashed(t){!0===t!==this.dashed&&(this.needsUpdate=!0),!0===t?this.defines.USE_DASH="":delete this.defines.USE_DASH}get dashScale(){return this.uniforms.dashScale.value}set dashScale(t){this.uniforms.dashScale.value=t}get dashSize(){return this.uniforms.dashSize.value}set dashSize(t){this.uniforms.dashSize.value=t}get dashOffset(){return this.uniforms.dashOffset.value}set dashOffset(t){this.uniforms.dashOffset.value=t}get gapSize(){return this.uniforms.gapSize.value}set gapSize(t){this.uniforms.gapSize.value=t}get opacity(){return this.uniforms.opacity.value}set opacity(t){this.uniforms&&(this.uniforms.opacity.value=t)}get resolution(){return this.uniforms.resolution.value}set resolution(t){this.uniforms.resolution.value.copy(t)}get alphaToCoverage(){return"USE_ALPHA_TO_COVERAGE"in this.defines}set alphaToCoverage(t){this.defines&&(!0===t!==this.alphaToCoverage&&(this.needsUpdate=!0),!0===t?this.defines.USE_ALPHA_TO_COVERAGE="":delete this.defines.USE_ALPHA_TO_COVERAGE)}}},1529:(t,e,n)=>{"use strict";n.d(e,{A:()=>y});var r,i,o,a,s=n(52038),u=n(61409),l=n(21755),c=n(15651),h={sphere:l.A,point:l.A,lineStart:function(){h.point=p,h.lineEnd=f},lineEnd:l.A,polygonStart:l.A,polygonEnd:l.A};function f(){h.point=h.lineEnd=l.A}function p(t,e){t*=u.F2,e*=u.F2,i=t,o=(0,u.F8)(e),a=(0,u.gn)(e),h.point=d}function d(t,e){t*=u.F2,e*=u.F2;var n=(0,u.F8)(e),s=(0,u.gn)(e),l=(0,u.tn)(t-i),c=(0,u.gn)(l),h=s*(0,u.F8)(l),f=a*n-o*s*c,p=o*n+a*s*c;r.add((0,u.FP)((0,u.RZ)(h*h+f*f),p)),i=t,o=n,a=s}var m=[null,null],g={type:"LineString",coordinates:m};function y(t,e){return m[0]=t,m[1]=e,r=new s.ph,(0,c.A)(g,h),+r}},5874:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(61409);function i(t,e){var n=t[0]*r.F2,i=t[1]*r.F2,o=e[0]*r.F2,a=e[1]*r.F2,s=(0,r.gn)(i),u=(0,r.F8)(i),l=(0,r.gn)(a),c=(0,r.F8)(a),h=s*(0,r.gn)(n),f=s*(0,r.F8)(n),p=l*(0,r.gn)(o),d=l*(0,r.F8)(o),m=2*(0,r.qR)((0,r.RZ)((0,r.bo)(a-i)+s*l*(0,r.bo)(o-n))),g=(0,r.F8)(m),y=m?function(t){var e=(0,r.F8)(t*=m)/g,n=(0,r.F8)(m-t)/g,i=n*h+e*p,o=n*f+e*d;return[(0,r.FP)(o,i)*r.uj,(0,r.FP)(n*u+e*c,(0,r.RZ)(i*i+o*o))*r.uj]}:function(){return[n*r.uj,i*r.uj]};return y.distance=m,y}},6256:(t,e,n)=>{"use strict";function r(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}n.d(e,{C:()=>r})},7813:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});var r=function(t){return"function"==typeof t?t:"string"==typeof t?function(e){return e[t]}:function(e){return t}}},10915:(t,e,n)=>{"use strict";n.d(e,{B:()=>c,v:()=>i});var r=n(85339);class i extends r.B69{constructor(t=document.createElement("div")){super(),this.isCSS2DObject=!0,this.element=t,this.element.style.position="absolute",this.element.style.userSelect="none",this.element.setAttribute("draggable",!1),this.center=new r.I9Y(.5,.5),this.addEventListener("removed",function(){this.traverse(function(t){t.element&&t.element instanceof t.element.ownerDocument.defaultView.Element&&null!==t.element.parentNode&&t.element.remove()})})}copy(t,e){return super.copy(t,e),this.element=t.element.cloneNode(!0),this.center=t.center,this}}let o=new r.Pq0,a=new r.kn4,s=new r.kn4,u=new r.Pq0,l=new r.Pq0;class c{constructor(t={}){let e,n,r,i,c=this,h={objects:new WeakMap},f=void 0!==t.element?t.element:document.createElement("div");f.style.overflow="hidden",this.domElement=f,this.sortObjects=!0,this.get
370Size=function(){return{width:e,height:n}},this.render=function(t,e){!0===t.matrixWorldAutoUpdate&&t.updateMatrixWorld(),null===e.parent&&!0===e.matrixWorldAutoUpdate&&e.updateMatrixWorld(),a.copy(e.matrixWorldInverse),s.multiplyMatrices(e.projectionMatrix,a),function t(e,n,a){if(!1===e.visible)return void function t(e){e.isCSS2DObject&&(e.element.style.display="none");for(let n=0,r=e.children.length;n<r;n++)t(e.children[n])}(e);if(e.isCSS2DObject){var p,d;o.setFromMatrixPosition(e.matrixWorld),o.applyMatrix4(s);let t=o.z>=-1&&o.z<=1&&!0===e.layers.test(a.layers),m=e.element;m.style.display=!0===t?"":"none",!0===t&&(e.onBeforeRender(c,n,a),m.style.transform="translate("+-100*e.center.x+"%,"+-100*e.center.y+"%)translate("+(o.x*r+r)+"px,"+(-o.y*i+i)+"px)",m.parentNode!==f&&f.appendChild(m),e.onAfterRender(c,n,a));let g={distanceToCameraSquared:(p=a,d=e,u.setFromMatrixPosition(p.matrixWorld),l.setFromMatrixPosition(d.matrixWorld),u.distanceToSquared(l))};h.objects.set(e,g)}for(let r=0,i=e.children.length;r<i;r++)t(e.children[r],n,a)}(t,t,e),this.sortObjects&&function(t){let e=(function(t){let e=[];return t.traverseVisible(function(t){t.isCSS2DObject&&e.push(t)}),e})(t).sort(function(t,e){return t.renderOrder!==e.renderOrder?e.renderOrder-t.renderOrder:h.objects.get(t).distanceToCameraSquared-h.objects.get(e).distanceToCameraSquared}),n=e.length;for(let t=0,r=e.length;t<r;t++)e[t].element.style.zIndex=n-t}(t)},this.setSize=function(t,o){e=t,n=o,r=e/2,i=n/2,f.style.width=t+"px",f.style.height=o+"px"}}}},11406:(t,e,n)=>{"use strict";n.d(e,{A:()=>j});let r=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};var i="object"==typeof global&&global&&global.Object===Object&&global,o="object"==typeof self&&self&&self.Object===Object&&self,a=i||o||Function("return this")();let s=function(){return a.Date.now()};var u=/\s/;let l=function(t){for(var e=t.length;e--&&u.test(t.charAt(e)););return e};var c=/^\s+/,h=a.Symbol,f=Object.prototype,p=f.hasOwnProperty,d=f.toString,m=h?h.toStringTag:void 0;let g=function(t){var e=p.call(t,m),n=t[m];try{t[m]=void 0;var r=!0}catch(t){}var i=d.call(t);return r&&(e?t[m]=n:delete t[m]),i};var y=Object.prototype.toString,v=h?h.toStringTag:void 0;let b=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":v&&v in Object(t)?g(t):y.call(t)},_=function(t){return"symbol"==typeof t||null!=t&&"object"==typeof t&&"[object Symbol]"==b(t)};var E=0/0,x=/^[-+]0x[0-9a-f]+$/i,w=/^0b[01]+$/i,S=/^0o[0-7]+$/i,P=parseInt;let M=function(t){if("number"==typeof t)return t;if(_(t))return E;if(r(t)){var e,n="function"==typeof t.valueOf?t.valueOf():t;t=r(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=(e=t)?e.slice(0,l(e)+1).replace(c,""):e;var i=w.test(t);return i||S.test(t)?P(t.slice(2),i?2:8):x.test(t)?E:+t};var A=Math.max,T=Math.min;let O=function(t,e,n){var i,o,a,u,l,c,h=0,f=!1,p=!1,d=!0;if("function"!=typeof t)throw TypeError("Expected a function");function m(e){var n=i,r=o;return i=o=void 0,h=e,u=t.apply(r,n)}function g(t){var n=t-c,r=t-h;return void 0===c||n>=e||n<0||p&&r>=a}function y(){var t,n,r,i=s();if(g(i))return v(i);l=setTimeout(y,(t=i-c,n=i-h,r=e-t,p?T(r,a-n):r))}function v(t){return(l=void 0,d&&i)?m(t):(i=o=void 0,u)}function b(){var t,n=s(),r=g(n);if(i=arguments,o=this,c=n,r){if(void 0===l)return h=t=c,l=setTimeout(y,e),f?m(t):u;if(p)return clearTimeout(l),l=setTimeout(y,e),m(c)}return void 0===l&&(l=setTimeout(y,e)),u}return e=M(e)||0,r(n)&&(f=!!n.leading,a=(p="maxWait"in n)?A(M(n.maxWait)||0,e):a,d="trailing"in n?!!n.trailing:d),b.cancel=function(){void 0!==l&&clearTimeout(l),h=0,i=c=o=l=void 0},b.flush=function(){return void 0===l?u:v(s())},b};function k(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var C=function(t,e,n){return Object.defineProperty(t,"prototype",{writable:!1}),t}(function t(e,n){var r=n.default,i=n.triggerUpdate,o=n.onChange;if(!(this instanceof t))throw TypeError("Cannot call a class as a function");this.name=e,this.defaultVal=void 0===r?null:r,this.triggerUpdate=void 0===i||i,this.onChange=void 0===o?function(t,e){}:o});function j(t){var e=t.stateInit,n=void 0===e?function(){return{}}:e,r=t.props,i=void 0===r?{}:r,o=t.methods,a=void 0===o?{}:o,s=t.aliases,u=void 0===s?{}:s,l=t.init,c=void 0===l?function(){}:l,h=t.update,f=void 0===h?function(){}:h,p=Object.keys(i).map(function(t){return new C(t,i[t])});return function t(){for(var e=arguments.length,r=Array(e),i=0;i<e;i++)r[i]=arguments[i];var o=!!(this instanceof t?this.constructor:void 0),s=o?r.shift():void 0,l=r[0],h=void 0===l?{}:l,d=Object.assign({},n instanceof Function?n(h):n,{initialised:!1}),m={};function g(t){return y(t,h),v(),g}var y=function(t,e){c.call(g,t,d,e),d.initialised=!0},v=O(function(){d.initialised&&(f.call(g,d,m),m={})},1);return p.forEach(function(t){var e,n,r,i,o,a,s,u;g[t.name]=(n=(e=t).name,i=void 0!==(r=e.triggerUpdate)&&r,a=void 0===(o=e.onCh
370ange)?function(t,e){}:o,u=void 0===(s=e.defaultVal)?null:s,function(t){var e=d[n];if(!arguments.length)return e;var r=void 0===t?u:t;return d[n]=r,a.call(g,r,d,e),m.hasOwnProperty(n)||(m[n]=e),i&&v(),g})}),Object.keys(a).forEach(function(t){g[t]=function(){for(var e,n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return(e=a[t]).call.apply(e,[g,d].concat(r))}}),Object.entries(u).forEach(function(t){var e=function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,l=!1;try{o=(n=n.call(t)).next,!1;for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(t,2)||function(t,e){if(t){if("string"==typeof t)return k(t,2);var n=({}).toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?k(t,e):void 0}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),n=e[0],r=e[1];return g[n]=g[r]}),g.resetProps=function(){return p.forEach(function(t){g[t.name](t.defaultVal)}),g},g.resetProps(),d._rerender=v,o&&s&&g(s),g}}},12339:(t,e,n)=>{"use strict";function r(t){return"rgb("+Math.max(0,Math.min(255,Math.round(34.61+(t=Math.max(0,Math.min(1,t)))*(1172.33-t*(10793.56-t*(33300.12-t*(38394.49-14825.05*t)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+t*(557.33+t*(1225.33-t*(3574.96-t*(1073.77+707.56*t)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+t*(3211.1-t*(15327.97-t*(27814-t*(22569.18-6838.66*t)))))))+")"}n.d(e,{A:()=>r})},12758:(t,e,n)=>{t.exports=n(19298)()},15651:(t,e,n)=>{"use strict";function r(t,e){t&&o.hasOwnProperty(t.type)&&o[t.type](t,e)}n.d(e,{A:()=>u});var i={Feature:function(t,e){r(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,i=-1,o=n.length;++i<o;)r(n[i].geometry,e)}},o={Sphere:function(t,e){e.sphere()},Point:function(t,e){t=t.coordinates,e.point(t[0],t[1],t[2])},MultiPoint:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)t=n[r],e.point(t[0],t[1],t[2])},LineString:function(t,e){a(t.coordinates,e,0)},MultiLineString:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)a(n[r],e,0)},Polygon:function(t,e){s(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)s(n[r],e)},GeometryCollection:function(t,e){for(var n=t.geometries,i=-1,o=n.length;++i<o;)r(n[i],e)}};function a(t,e,n){var r,i=-1,o=t.length-n;for(e.lineStart();++i<o;)r=t[i],e.point(r[0],r[1],r[2]);e.lineEnd()}function s(t,e){var n=-1,r=t.length;for(e.polygonStart();++n<r;)a(t[n],e,1);e.polygonEnd()}function u(t,e){t&&i.hasOwnProperty(t.type)?i[t.type](t,e):r(t,e)}},16394:(t,e,n)=>{"use strict";function r(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function i(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function o(t){let e,n,o;function s(t,r,i=0,o=t.length){if(i<o){if(0!==e(r,r))return o;do{let e=i+o>>>1;0>n(t[e],r)?i=e+1:o=e}while(i<o)}return i}return 2!==t.length?(e=r,n=(e,n)=>r(t(e),n),o=(e,n)=>t(e)-n):(e=t===r||t===i?t:a,n=t,o=t),{left:s,center:function(t,e,n=0,r=t.length){let i=s(t,e,n,r-1);return i>n&&o(t[i-1],e)>-o(t[i],e)?i-1:i},right:function(t,r,i=0,o=t.length){if(i<o){if(0!==e(r,r))return o;do{let e=i+o>>>1;0>=n(t[e],r)?i=e+1:o=e}while(i<o)}return i}}}function a(){return 0}n.d(e,{Ay:()=>l});let s=o(r),u=s.right;s.left,o(function(t){return null===t?NaN:+t}).center;let l=u},17228:(t,e,n)=>{"use strict";function r(t,e,n){t*=1,e*=1,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((e-t)/n)),o=Array(i);++r<i;)o[r]=t+r*n;return o}n.d(e,{q:()=>s});var i=n(61409);function o(t,e,n){var o=r(t,e-i.Ni,n).concat(e);return function(t){return o.map(function(e){return[t,e]})}}function a(t,e,n){var o=r(t,e-i.Ni,n).concat(e);return function(t){return o.map(function(e){return[e,t]})}}function s(){return(function(){var t,e,n,s,u,l,c,h,f,p,d,m,g=10,y=10,v=90,b=360,_=2.5;function E(){return{type:"MultiLineString",coordinates:x()}}function x(){return r((0,i.mk)(s/v)*v,n,v).map(d).concat(r((0,i.mk)(h/b)*b,c,b).map(m)).concat(r((0,i.mk)(e/g)*g,t,g).filter(function(t){return(0,i.tn
370)(t%v)>i.Ni}).map(f)).concat(r((0,i.mk)(l/y)*y,u,y).filter(function(t){return(0,i.tn)(t%b)>i.Ni}).map(p))}return E.lines=function(){return x().map(function(t){return{type:"LineString",coordinates:t}})},E.outline=function(){return{type:"Polygon",coordinates:[d(s).concat(m(c).slice(1),d(n).reverse().slice(1),m(h).reverse().slice(1))]}},E.extent=function(t){return arguments.length?E.extentMajor(t).extentMinor(t):E.extentMinor()},E.extentMajor=function(t){return arguments.length?(s=+t[0][0],n=+t[1][0],h=+t[0][1],c=+t[1][1],s>n&&(t=s,s=n,n=t),h>c&&(t=h,h=c,c=t),E.precision(_)):[[s,h],[n,c]]},E.extentMinor=function(n){return arguments.length?(e=+n[0][0],t=+n[1][0],l=+n[0][1],u=+n[1][1],e>t&&(n=e,e=t,t=n),l>u&&(n=l,l=u,u=n),E.precision(_)):[[e,l],[t,u]]},E.step=function(t){return arguments.length?E.stepMajor(t).stepMinor(t):E.stepMinor()},E.stepMajor=function(t){return arguments.length?(v=+t[0],b=+t[1],E):[v,b]},E.stepMinor=function(t){return arguments.length?(g=+t[0],y=+t[1],E):[g,y]},E.precision=function(r){return arguments.length?(_=+r,f=o(l,u,90),p=a(e,t,_),d=o(h,c,90),m=a(s,n,_),E):_},E.extentMajor([[-180,-90+i.Ni],[180,90-i.Ni]]).extentMinor([[-180,-80-i.Ni],[180,80+i.Ni]])})()()}},17593:(t,e,n)=>{"use strict";n.d(e,{A:()=>function t(){var e=(function(){var t,e,n,r,i,o,a=y,s=y,u=p.A,l=v;function c(){var t,e,n,u=Math.min(a.length,s.length);return l!==v&&(t=a[0],e=a[u-1],t>e&&(n=t,t=e,e=n),l=function(n){return Math.max(t,Math.min(e,n))}),r=u>2?E:_,i=o=null,h}function h(e){return null==e||isNaN(e*=1)?n:(i||(i=r(a.map(t),s,u)))(t(l(e)))}return h.invert=function(n){return l(e((o||(o=r(s,a.map(t),d.A)))(n)))},h.domain=function(t){return arguments.length?(a=Array.from(t,g),c()):a.slice()},h.range=function(t){return arguments.length?(s=Array.from(t),c()):s.slice()},h.rangeRound=function(t){return s=Array.from(t),u=m,c()},h.clamp=function(t){return arguments.length?(l=!!t||v,c()):l!==v},h.interpolate=function(t){return arguments.length?(u=t,c()):u},h.unknown=function(t){return arguments.length?(n=t,h):n},function(n,r){return t=n,e=r,c()}})()(v,v);return e.copy=function(){return t().domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())},x.C.apply(e,arguments),R(e)},C:()=>R});let r=Math.sqrt(50),i=Math.sqrt(10),o=Math.sqrt(2);function a(t,e,n){let s,u,l,c=(e-t)/Math.max(0,n),h=Math.floor(Math.log10(c)),f=c/Math.pow(10,h),p=f>=r?10:f>=i?5:f>=o?2:1;return(h<0?(s=Math.round(t*(l=Math.pow(10,-h)/p)),u=Math.round(e*l),s/l<t&&++s,u/l>e&&--u,l=-l):(s=Math.round(t/(l=Math.pow(10,h)*p)),u=Math.round(e/l),s*l<t&&++s,u*l>e&&--u),u<s&&.5<=n&&n<2)?a(t,e,2*n):[s,u,l]}function s(t,e,n){return a(t*=1,e*=1,n*=1)[2]}var u,l,c,h,f=n(16394),p=n(97668),d=n(71716);function m(t,e){return t*=1,e*=1,function(n){return Math.round(t*(1-n)+e*n)}}function g(t){return+t}var y=[0,1];function v(t){return t}function b(t,e){var n;return(e-=t*=1)?function(n){return(n-t)/e}:(n=isNaN(e)?NaN:.5,function(){return n})}function _(t,e,n){var r=t[0],i=t[1],o=e[0],a=e[1];return i<r?(r=b(i,r),o=n(a,o)):(r=b(r,i),o=n(o,a)),function(t){return o(r(t))}}function E(t,e,n){var r=Math.min(t.length,e.length)-1,i=Array(r),o=Array(r),a=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++a<r;)i[a]=b(t[a],t[a+1]),o[a]=n(e[a],e[a+1]);return function(e){var n=(0,f.Ay)(t,e,1,r)-1;return o[n](i[n](e))}}var x=n(6256),w=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function S(t){var e;if(!(e=w.exec(t)))throw Error("invalid format: "+t);return new P({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function P(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function M(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function A(t){return(t=M(Math.abs(t)))?t[1]:NaN}function T(t,e){var n=M(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+Array(i-r.length+2).join("0")}S.prototype=P.prototype,P.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?""
370:Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};let O={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>T(100*t,e),r:T,s:function(t,e){var n=M(t,e);if(!n)return t+"";var r=n[0],i=n[1],o=i-(u=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+Array(1-o).join("0")+M(t,Math.max(0,e+o-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function k(t){return t}var C=Array.prototype.map,j=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function R(t){var e=t.domain;return t.ticks=function(t){var n=e();return function(t,e,n){if(e*=1,t*=1,!((n*=1)>0))return[];if(t===e)return[t];let r=e<t,[i,o,s]=r?a(e,t,n):a(t,e,n);if(!(o>=i))return[];let u=o-i+1,l=Array(u);if(r)if(s<0)for(let t=0;t<u;++t)l[t]=-((o-t)/s);else for(let t=0;t<u;++t)l[t]=(o-t)*s;else if(s<0)for(let t=0;t<u;++t)l[t]=-((i+t)/s);else for(let t=0;t<u;++t)l[t]=(i+t)*s;return l}(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return function(t,e,n,r){var i,o,a=function(t,e,n){e*=1,t*=1,n*=1;let r=e<t,i=r?s(e,t,n):s(t,e,n);return(r?-1:1)*(i<0?-(1/i):i)}(t,e,n);switch((r=S(null==r?",f":r)).type){case"s":var u=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(o=Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(A(u)/3)))-A(Math.abs(a))))||(r.precision=o),h(r,u);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=Math.max(0,A(Math.abs(Math.max(Math.abs(t),Math.abs(e)))-(i=Math.abs(i=a)))-A(i))+1)||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=Math.max(0,-A(Math.abs(a))))||(r.precision=o-("%"===r.type)*2)}return c(r)}(r[0],r[r.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var r,i,o=e(),a=0,u=o.length-1,l=o[a],c=o[u],h=10;for(c<l&&(i=l,l=c,c=i,i=a,a=u,u=i);h-- >0;){if((i=s(l,c,n))===r)return o[a]=l,o[u]=c,e(o);if(i>0)l=Math.floor(l/i)*i,c=Math.ceil(c/i)*i;else if(i<0)l=Math.ceil(l*i)/i,c=Math.floor(c*i)/i;else break;r=i}return t},t}c=(l=function(t){var e,n,r,i=void 0===t.grouping||void 0===t.thousands?k:(e=C.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var i=t.length,o=[],a=0,s=e[0],u=0;i>0&&s>0&&(u+s+1>r&&(s=Math.max(1,r-u)),o.push(t.substring(i-=s,i+s)),!((u+=s+1)>r));)s=e[a=(a+1)%e.length];return o.reverse().join(n)}),o=void 0===t.currency?"":t.currency[0]+"",a=void 0===t.currency?"":t.currency[1]+"",s=void 0===t.decimal?".":t.decimal+"",l=void 0===t.numerals?k:(r=C.call(t.numerals,String),function(t){return t.replace(/[0-9]/g,function(t){return r[+t]})}),c=void 0===t.percent?"%":t.percent+"",h=void 0===t.minus?"−":t.minus+"",f=void 0===t.nan?"NaN":t.nan+"";function p(t){var e=(t=S(t)).fill,n=t.align,r=t.sign,p=t.symbol,d=t.zero,m=t.width,g=t.comma,y=t.precision,v=t.trim,b=t.type;"n"===b?(g=!0,b="g"):O[b]||(void 0===y&&(y=12),v=!0,b="g"),(d||"0"===e&&"="===n)&&(d=!0,e="0",n="=");var _="$"===p?o:"#"===p&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",E="$"===p?a:/[%p]/.test(b)?c:"",x=O[b],w=/[defgprs%]/.test(b);function P(t){var o,a,c,p=_,S=E;
370if("c"===b)S=x(t)+S,t="";else{var P=(t*=1)<0||1/t<0;if(t=isNaN(t)?f:x(Math.abs(t),y),v&&(t=function(t){t:for(var e,n=t.length,r=1,i=-1;r<n;++r)switch(t[r]){case".":i=e=r;break;case"0":0===i&&(i=r),e=r;break;default:if(!+t[r])break t;i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),P&&0==+t&&"+"!==r&&(P=!1),p=(P?"("===r?r:h:"-"===r||"("===r?"":r)+p,S=("s"===b?j[8+u/3]:"")+S+(P&&"("===r?")":""),w){for(o=-1,a=t.length;++o<a;)if(48>(c=t.charCodeAt(o))||c>57){S=(46===c?s+t.slice(o+1):t.slice(o))+S,t=t.slice(0,o);break}}}g&&!d&&(t=i(t,1/0));var M=p.length+t.length+S.length,A=M<m?Array(m-M+1).join(e):"";switch(g&&d&&(t=i(A+t,A.length?m-S.length:1/0),A=""),n){case"<":t=p+t+S+A;break;case"=":t=p+A+t+S;break;case"^":t=A.slice(0,M=A.length>>1)+p+t+S+A.slice(M);break;default:t=A+p+t+S}return l(t)}return y=void 0===y?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),P.toString=function(){return t+""},P}return{format:p,formatPrefix:function(t,e){var n=p(((t=S(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(A(e)/3))),i=Math.pow(10,-r),o=j[8+r/3];return function(t){return n(i*t)+o}}}}({thousands:",",grouping:[3],currency:["$",""]})).format,h=l.formatPrefix},19298:(t,e,n)=>{"use strict";var r=n(53341);function i(){}function o(){}o.resetWarningCache=i,t.exports=function(){function t(t,e,n,i,o,a){if(a!==r){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function e(){return t}t.isRequired=t;var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:o,resetWarningCache:i}
370;return n.PropTypes=n,n}},21375:(t,e,n)=>{"use strict";n.r(e),n.d(e,{computeMikkTSpaceTangents:()=>i,computeMorphedAttributes:()=>d,deepCloneAttribute:()=>s,deinterleaveAttribute:()=>l,deinterleaveGeometry:()=>c,estimateBytesUsed:()=>h,interleaveAttributes:()=>u,mergeAttributes:()=>a,mergeGeometries:()=>o,mergeGroups:()=>m,mergeVertices:()=>f,toCreasedNormals:()=>g,toTrianglesDrawMode:()=>p});var r=n(85339);function i(t,e,n=!0){if(!e||!e.isReady)throw Error("BufferGeometryUtils: Initialized MikkTSpace library required.");if(!t.hasAttribute("position")||!t.hasAttribute("normal")||!t.hasAttribute("uv"))throw Error('BufferGeometryUtils: Tangents require "position", "normal", and "uv" attributes.');function o(t){if(t.normalized||t.isInterleavedBufferAttribute){let e=new Float32Array(t.count*t.itemSize);for(let n=0,r=0;n<t.count;n++)e[r++]=t.getX(n),e[r++]=t.getY(n),t.itemSize>2&&(e[r++]=t.getZ(n));return e}return t.array instanceof Float32Array?t.array:new Float32Array(t.array)}let a=t.index?t.toNonIndexed():t,s=e.generateTangents(o(a.attributes.position),o(a.attributes.normal),o(a.attributes.uv));if(n)for(let t=3;t<s.length;t+=4)s[t]*=-1;return a.setAttribute("tangent",new r.THS(s,4)),t!==a&&t.copy(a),t}function o(t,e=!1){let n=null!==t[0].index,i=new Set(Object.keys(t[0].attributes)),s=new Set(Object.keys(t[0].morphAttributes)),u={},l={},c=t[0].morphTargetsRelative,h=new r.LoY,f=0;for(let r=0;r<t.length;++r){let o=t[r],a=0;if(n!==(null!==o.index))return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index "+r+". All geometries must have compatible attributes; make sure index attribute exists among all geometries, or in none of them."),null;for(let t in o.attributes){if(!i.has(t))return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index "+r+'. All geometries must have compatible attributes; make sure "'+t+'" attribute exists among all geometries, or in none of them.'),null;void 0===u[t]&&(u[t]=[]),u[t].push(o.attributes[t]),a++}if(a!==i.size)return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index "+r+". Make sure all geometries have the same number of attributes."),null;if(c!==o.morphTargetsRelative)return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index "+r+". .morphTargetsRelative must be consistent throughout all geometries."),null;for(let t in o.morphAttributes){if(!s.has(t))return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index "+r+".  .morphAttributes must be consistent throughout all geometries."),null;void 0===l[t]&&(l[t]=[]),l[t].push(o.morphAttributes[t])}if(e){let t;if(n)t=o.index.count;else{if(void 0===o.attributes.position)return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index "+r+". The geometry must have either an index or a position attribute"),null;t=o.attributes.position.count}h.addGroup(f,t,r),f+=t}}if(n){let e=0,n=[];for(let r=0;r<t.length;++r){let i=t[r].index;for(let t=0;t<i.count;++t)n.push(i.getX(t)+e);e+=t[r].attributes.position.count}h.setIndex(n)}for(let t in u){let e=a(u[t]);if(!e)return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed while trying to merge the "+t+" attribute."),null;h.setAttribute(t,e)}for(let t in l){let e=l[t][0].length;if(0===e)break;h.morphAttributes=h.morphAttributes||{},h.morphAttributes[t]=[];for(let n=0;n<e;++n){let e=[];for(let r=0;r<l[t].length;++r)e.push(l[t][r][n]);let r=a(e);if(!r)return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed while trying to merge the "+t+" morphAttribute."),null;h.morphAttributes[t].push(r)}}return h}function a(t){let e,n,i,o=-1,a=0;for(let r=0;r<t.length;++r){let s=t[r];if(void 0===e&&(e=s.array.constructor),e!==s.array.constructor)return console.error("THREE.BufferGeometryUtils: .mergeAttributes() failed. BufferAttribute.array must be of consistent array types across matching attributes."),null;if(void 0===n&&(n=s.itemSize),n!==s.itemSize)return console.error("THREE.BufferGeometryUtils: .mergeAttributes() failed. BufferAttribute.itemSize must be consistent across matching attributes."),null;if(void 0===i&&(i=s.normalized),i!==s.normalized)return console.error("THREE.BufferGeometryUtils: .mergeAttributes() failed. BufferAttribute.normalized must be consistent across matching attributes."),null;if(-1===o&&(o=s.gpuType),o!==s.gpuType)return console.error("THREE.BufferGeometryUtils: .mergeAttributes() failed. BufferAttribute.gpuType must be consistent across matching attributes."),null;a+=s.count*n}let s=new e(a),u=new r.THS(s,n,i),l=0;for(let e=0;e<t.length;++e){let r=t[e];if(r.isInterleavedBufferAttribute){let t=l/n;for(let e=0,i=r.count;e<i;e++)for(let i=0;i<n;i++){let n=r.getComponent(e,i);
370u.setComponent(e+t,i,n)}}else s.set(r.array,l);l+=r.count*n}return void 0!==o&&(u.gpuType=o),u}function s(t){return t.isInstancedInterleavedBufferAttribute||t.isInterleavedBufferAttribute?l(t):t.isInstancedBufferAttribute?new r.uWO().copy(t):new r.THS().copy(t)}function u(t){let e,n=0,i=0;for(let r=0,o=t.length;r<o;++r){let o=t[r];if(void 0===e&&(e=o.array.constructor),e!==o.array.constructor)return console.error("AttributeBuffers of different types cannot be interleaved"),null;n+=o.array.length,i+=o.itemSize}let o=new r.eB$(new e(n),i),a=0,s=[],u=["getX","getY","getZ","getW"],l=["setX","setY","setZ","setW"];for(let e=0,n=t.length;e<n;e++){let n=t[e],i=n.itemSize,c=n.count,h=new r.eHs(o,i,a,n.normalized);s.push(h),a+=i;for(let t=0;t<c;t++)for(let e=0;e<i;e++)h[l[e]](t,n[u[e]](t))}return s}function l(t){let e,n=t.data.array.constructor,i=t.count,o=t.itemSize,a=t.normalized,s=new n(i*o);e=t.isInstancedInterleavedBufferAttribute?new r.uWO(s,o,a,t.meshPerAttribute):new r.THS(s,o,a);for(let n=0;n<i;n++)e.setX(n,t.getX(n)),o>=2&&e.setY(n,t.getY(n)),o>=3&&e.setZ(n,t.getZ(n)),o>=4&&e.setW(n,t.getW(n));return e}function c(t){let e=t.attributes,n=t.morphTargets,r=new Map;for(let t in e){let n=e[t];n.isInterleavedBufferAttribute&&(r.has(n)||r.set(n,l(n)),e[t]=r.get(n))}for(let t in n){let e=n[t];e.isInterleavedBufferAttribute&&(r.has(e)||r.set(e,l(e)),n[t]=r.get(e))}}function h(t){let e=0;for(let n in t.attributes){let r=t.getAttribute(n);e+=r.count*r.itemSize*r.array.BYTES_PER_ELEMENT}let n=t.getIndex();return e+(n?n.count*n.itemSize*n.array.BYTES_PER_ELEMENT:0)}function f(t,e=1e-4){e=Math.max(e,Number.EPSILON);let n={},r=t.getIndex(),i=t.getAttribute("position"),o=r?r.count:i.count,a=0,s=Object.keys(t.attributes),u={},l={},c=[],h=["getX","getY","getZ","getW"],p=["setX","setY","setZ","setW"];for(let e=0,n=s.length;e<n;e++){let n=s[e],r=t.attributes[n];u[n]=new r.constructor(new r.array.constructor(r.count*r.itemSize),r.itemSize,r.normalized);let i=t.morphAttributes[n];i&&(l[n]||(l[n]=[]),i.forEach((t,e)=>{let r=new t.array.constructor(t.count*t.itemSize);l[n][e]=new t.constructor(r,t.itemSize,t.normalized)}))}let d=.5*e,m=Math.pow(10,Math.log10(1/e)),g=d*m;for(let e=0;e<o;e++){let i=r?r.getX(e):e,o="";for(let e=0,n=s.length;e<n;e++){let n=s[e],r=t.getAttribute(n),a=r.itemSize;for(let t=0;t<a;t++)o+=`${~~(r[h[t]](i)*m+g)},`}if(o in n)c.push(n[o]);else{for(let e=0,n=s.length;e<n;e++){let n=s[e],r=t.getAttribute(n),o=t.morphAttributes[n],c=r.itemSize,f=u[n],d=l[n];for(let t=0;t<c;t++){let e=h[t],n=p[t];if(f[n](a,r[e](i)),o)for(let t=0,r=o.length;t<r;t++)d[t][n](a,o[t][e](i))}}n[o]=a,c.push(a),a++}}let y=t.clone();for(let e in t.attributes){let t=u[e];if(y.setAttribute(e,new t.constructor(t.array.slice(0,a*t.itemSize),t.itemSize,t.normalized)),e in l)for(let t=0;t<l[e].length;t++){let n=l[e][t];y.morphAttributes[e][t]=new n.constructor(n.array.slice(0,a*n.itemSize),n.itemSize,n.normalized)}}return y.setIndex(c),y}function p(t,e){if(e===r.RJ4)return console.warn("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Geometry already defined as triangles."),t;if(e!==r.rYR&&e!==r.O49)return console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Unknown draw mode:",e),t;{let n=t.getIndex();if(null===n){let e=[],r=t.getAttribute("position");if(void 0===r)return console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Undefined position attribute. Processing not possible."),t;for(let t=0;t<r.count;t++)e.push(t);t.setIndex(e),n=t.getIndex()}let i=n.count-2,o=[];if(e===r.rYR)for(let t=1;t<=i;t++)o.push(n.getX(0)),o.push(n.getX(t)),o.push(n.getX(t+1));else for(let t=0;t<i;t++)t%2==0?(o.push(n.getX(t)),o.push(n.getX(t+1)),o.push(n.getX(t+2))):(o.push(n.getX(t+2)),o.push(n.getX(t+1)),o.push(n.getX(t)));o.length/3!==i&&console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Unable to generate correct amount of triangles.");let a=t.clone();return a.setIndex(o),a.clearGroups(),a}}function d(t){let e,n,i,o,a,s,u,l,c,h,f=new r.Pq0,p=new r.Pq0,d=new r.Pq0,m=new r.Pq0,g=new r.Pq0,y=new r.Pq0,v=new r.Pq0,b=new r.Pq0,_=new r.Pq0;function E(t,e,n,r,i,o,a,s){f.fromBufferAttribute(e,i),p.fromBufferAttribute(e,o),d.fromBufferAttribute(e,a);let u=t.morphTargetInfluences;if(n&&u){v.set(0,0,0),b.set(0,0,0),_.set(0,0,0);for(let t=0,e=n.length;t<e;t++){let e=u[t],s=n[t];0!==e&&(m.fromBufferAttribute(s,i),g.fromBufferAttribute(s,o),y.fromBufferAttribute(s,a),r?(v.addScaledVector(m,e),b.addScaledVector(g,e),_.addScaledVector(y,e)):(v.addScaledVector(m.sub(f),e),b.addScaledVector(g.sub(p),e),_.addScaledVector(y.sub(d),e)))}f.add(v),p.add(b),d.add(_)}t.isSkinnedMesh&&(t.applyBoneTransform(i,f),t.applyBoneTransform(o,p),t.applyBoneTransform(a,d)),s[3*i+0]=f.x,s[3*i+1]=f.y,s[3*i+2]=f.z,s[3*o+0]=p.x,s[3*o+1]=p.y,s[3*o+2]=p.z,s[3*a+0]=d.x,s[3*a+1]=d.y,s[3*a+2]=d.z}let x=t.geometry,w=t.material,S=x.index,P=x.attributes.position,M=x.morphAttributes.position,A=x.morphTargetsRelative,T=x.attributes.normal,O=x.morphAttributes.position,k=x.groups,C=x.drawRange,j=new Float32Array(P.count*P.itemSize),R=new Float32Array(T.count*T.itemSize);if(null!==S)if(Array.isArray(w))for(o=0,s=k.length;o<s;o++)for(c=Math.max((l=k[o]).start,C.start),h=Math.min(l.start+l.count,C.start+C.count),a=c,u=h;a<u;a+=3)e=S.getX(a),E(t,P,M,A,e,n=S.getX(a+1),i=S.getX(a+2),j),E(t,T,O,A,e,n,i,R);else for(c=Math.max(0,C.start),h=Math.min(S.count,C.start+C.count),o=c,s=h;o<s;o+=3)e=S.getX(o),E(t,P,M,A,e,n=S.getX(o+1),i=S.getX(o+2),j),E(t,T,O,A,e,n,i,R);else if(Array.isArray(w))for(o=0,s=k.length;o<s;o++)for(c=Math.max((l=k[o]).start,C.start),h=Math.min(l.start+l.count,C.start+C.count),a=c,u=h;a<u;a+=3)E(t,P,M,A,e=a,n=a+1,i=a+2,j),E(t,T,O,A,e,n,i,R);else for(c=Math.max(0,C.start),h=Math.min(P.count,C.start+C.count),o=c,s=h;o<s;o+=3)E(t,P,M,A,e=o,n=o+1,i=o+2,j),E(t,T,O,A,e,n,i,R);return{positionAttribute:P,normalAttribute:T,morphedPositionAttribute:new r.qtW(j,3),morphedNormalAttribute:new r.qtW(R,3)}}function m(t){if(0===t.groups.length)return console.warn("THREE.BufferGeometryUtils.mergeGroups(): No groups are defined. Nothing to merge."),t;let e=t.groups;if(e=e.sort((t,e)=>t.materialIndex!==e.materialIndex?t.materialIndex-e.materialIndex:t.start-e.start),null===t.getIndex()){let e=t.getAttribute("position"),n=[];for(let t=0;t<e.count;t+=3)n.push(t,t+1,t+2);t.setIndex(n)}let n=t.getIndex(),r=[];for(let t=0;t<e.length;t++){let i=e[t],o=i.start,a=o+i.count;for(let t=o;t<a;t++)r.push(n.getX(t))}t.dispose(),t.setIndex(r);let i=0;for(let t=0;t<e.length;t++){let n=e[t];n.start=i,i+=n.count}let o=e[0];t.groups=[o];for(let n=1;n<e.length;n++){let r=e[n];o.materialIndex===r.materialIndex?o.count+=r.count:(o=r,t.groups.push(o))}return t}function g(t,e=Math.PI/3){let n=Math.cos(e),i=(1+1e-10)*100,o=[new r.Pq0,new r.Pq0,new r.Pq0],a=new r.Pq0,s=new r.Pq0,u=new r.Pq0,l=new r.Pq0;function c(t){let e=~~(t.x*i),n=~~(t.y*i),r=~~(t.z*i);return`${e},${n},${r}`}let h=t.index?t.toNonIndexed():t,f=h.attributes.position,p={};for(let t=0,e=f.count/3;t<e;t++){let e=3*t,n=o[0].fromBufferAttribute(f,e+0),i=o[1].fromBufferAttribute(f,e+1),u=o[2].fromBufferAttribute(f,e+2);a.subVectors(u,i),s.subVectors(n,i);let l=new r.Pq0().crossVectors(a,s).normalize();for(let t=0;t<3;t++){let e=c(o[t]);e in p||(p[e]=[]),p[e].push(l)}}let d=new Float32Array(3*f.count),m=new r.THS(d,3,!1);for(let t=0,e=f.count/3;t<e;t++){let e=3*t,r=o[0].fromBufferAttribute(f,e+0),i=o[1].fromBufferAttribute(f,e+1),h=o[2].fromBufferAttribute(f,e+2);a.subVectors(h,i),s.subVectors(r,i),u.crossVectors(a,s).normalize();for(let t=0;t<3;t++){let r=p[c(o[t])];l.set(0,0,0);for(let t=0,e=r.length;t<e;t++){let e=r[t];u.dot(e)>n&&l.add(e)}l.normalize(),m.setXYZ(e+t,l.x,l.y,l.z)}}return h.setAttribute("normal",m),h}},21755:(t,e,n)=>{"use strict";function r(){}n.d(e,{A:()=>r})},24770:(t,e,n)=>{"use strict";let r,i;n.d(e,{X:()=>S});var o=n(85339),a=n(35330),s=n(473);let u=new o.IUQ,l=new o.Pq0,c=new o.Pq0,h=new o.IUQ,f=new o.IUQ,p=new o.IUQ,d=new o.Pq0,m=new o.kn4,g=new o.cZY,y=new o.Pq0,v=new o.NRn,b=new o.iyt,_=new o.IUQ;function E(t,e,n){return _.set(0,0,-e,1).applyMatrix4(t.projectionMatrix),_.multiplyScalar(1/_.w),_.x=i/n.width,_.y=i/n.height,_.applyMatrix4(t.projectionMatrixInverse),_.multiplyScalar(1/_.w),Math.abs(Math.max(_.x,_.y))}class x extends o.eaF{constructor(t=new a.n,e=new s.G({color:0xffffff*Math.random()})){super(t,e),this.isLineSegments2=!0,this.type="LineSegments2"}computeLineDistances(){let t=this.geometry,e=t.attributes.instanceStart,n=t.attributes.instanceEnd,r=new Float32Array(2*e.count);for(let t=0,i=0,o=e.count;t<o;t++,i+=2)l.fromBufferAttribute(e,t),c.fromBufferAttribute(n,t),r[i]=0===i?0:r[i-1],r[
370i+1]=r[i]+l.distanceTo(c);let i=new o.LuO(r,2,1);return t.setAttribute("instanceDistanceStart",new o.eHs(i,1,0)),t.setAttribute("instanceDistanceEnd",new o.eHs(i,1,1)),this}raycast(t,e){let n,a,s=this.material.worldUnits,u=t.camera;null!==u||s||console.error('LineSegments2: "Raycaster.camera" needs to be set in order to raycast against LineSegments2 while worldUnits is set to false.');let l=void 0!==t.params.Line2&&t.params.Line2.threshold||0;r=t.ray;let c=this.matrixWorld,_=this.geometry,x=this.material;if(i=x.linewidth+l,null===_.boundingSphere&&_.computeBoundingSphere(),b.copy(_.boundingSphere).applyMatrix4(c),s)n=.5*i;else{let t=Math.max(u.near,b.distanceToPoint(r.origin));n=E(u,t,x.resolution)}if(b.radius+=n,!1!==r.intersectsSphere(b)){if(null===_.boundingBox&&_.computeBoundingBox(),v.copy(_.boundingBox).applyMatrix4(c),s)a=.5*i;else{let t=Math.max(u.near,v.distanceToPoint(r.origin));a=E(u,t,x.resolution)}v.expandByScalar(a),!1!==r.intersectsBox(v)&&(s?function(t,e){let n=t.matrixWorld,a=t.geometry,s=a.attributes.instanceStart,u=a.attributes.instanceEnd,l=Math.min(a.instanceCount,s.count);for(let a=0;a<l;a++){g.start.fromBufferAttribute(s,a),g.end.fromBufferAttribute(u,a),g.applyMatrix4(n);let l=new o.Pq0,c=new o.Pq0;r.distanceSqToSegment(g.start,g.end,c,l),c.distanceTo(l)<.5*i&&e.push({point:c,pointOnLine:l,distance:r.origin.distanceTo(c),object:t,face:null,faceIndex:a,uv:null,uv1:null})}}(this,e):function(t,e,n){let a=e.projectionMatrix,s=t.material.resolution,u=t.matrixWorld,l=t.geometry,c=l.attributes.instanceStart,v=l.attributes.instanceEnd,b=Math.min(l.instanceCount,c.count),_=-e.near;r.at(1,p),p.w=1,p.applyMatrix4(e.matrixWorldInverse),p.applyMatrix4(a),p.multiplyScalar(1/p.w),p.x*=s.x/2,p.y*=s.y/2,p.z=0,d.copy(p),m.multiplyMatrices(e.matrixWorldInverse,u);for(let e=0;e<b;e++){if(h.fromBufferAttribute(c,e),f.fromBufferAttribute(v,e),h.w=1,f.w=1,h.applyMatrix4(m),f.applyMatrix4(m),h.z>_&&f.z>_)continue;if(h.z>_){let t=h.z-f.z,e=(h.z-_)/t;h.lerp(f,e)}else if(f.z>_){let t=f.z-h.z,e=(f.z-_)/t;f.lerp(h,e)}h.applyMatrix4(a),f.applyMatrix4(a),h.multiplyScalar(1/h.w),f.multiplyScalar(1/f.w),h.x*=s.x/2,h.y*=s.y/2,f.x*=s.x/2,f.y*=s.y/2,g.start.copy(h),g.start.z=0,g.end.copy(f),g.end.z=0;let l=g.closestPointToPointParameter(d,!0);g.at(l,y);let p=o.cj9.lerp(h.z,f.z,l),b=p>=-1&&p<=1,E=d.distanceTo(y)<.5*i;if(b&&E){g.start.fromBufferAttribute(c,e),g.end.fromBufferAttribute(v,e),g.start.applyMatrix4(u),g.end.applyMatrix4(u);let i=new o.Pq0,a=new o.Pq0;r.distanceSqToSegment(g.start,g.end,a,i),n.push({point:a,pointOnLine:i,distance:r.origin.distanceTo(a),object:t,face:null,faceIndex:e,uv:null,uv1:null})}}}(this,u,e))}}onBeforeRender(t){let e=this.material.uniforms;e&&e.resolution&&(t.getViewport(u),this.material.uniforms.resolution.value.set(u.z,u.w))}}var w=n(64596);class S extends x{constructor(t=new w.v,e=new s.G({color:0xffffff*Math.random()})){super(t,e),this.isLine2=!0,this.type="Line2"}}},24905:(t,e,n)=>{"use strict";n.d(e,{GS:()=>r,K:()=>l,YJ:()=>o});var r=Object.freeze({Linear:Object.freeze({None:function(t){return t},In:function(t){return t},Out:function(t){return t},InOut:function(t){return t}}),Quadratic:Object.freeze({In:function(t){return t*t},Out:function(t){return t*(2-t)},InOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)}}),Cubic:Object.freeze({In:function(t){return t*t*t},Out:function(t){return--t*t*t+1},InOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)}}),Quartic:Object.freeze({In:function(t){return t*t*t*t},Out:function(t){return 1- --t*t*t*t},InOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)}}),Quintic:Object.freeze({In:function(t){return t*t*t*t*t},Out:function(t){return--t*t*t*t*t+1},InOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)}}),Sinusoidal:Object.freeze({In:function(t){return 1-Math.sin((1-t)*Math.PI/2)},Out:function(t){return Math.sin(t*Math.PI/2)},InOut:function(t){return .5*(1-Math.sin(Math.PI*(.5-t)))}}),Exponential:Object.freeze({In:function(t){return 0===t?0:Math.pow(1024,t-1)},Out:function(t){return 1===t?1:1-Math.pow(2,-10*t)},InOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)}}),Circular:Object.freeze({In:function(t){return 1-Math.sqrt(1-t*t)},Out:function(t){return Math.sqrt(1- --t*t)},InOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)}}),Elastic:Object.freeze({In:function(t){return 0===t?0:1===t?1:-Math.pow(2,10*(t-1))*Math.sin((t-1.1)*5*Math.PI)},Out:function(t){return 0===t?0:1===t?1:Math.pow(2,-10*t)*Math.sin((t-.1)*5*Math.PI)+1},InOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?-.5*Math.pow(2,10*(t-1))*Math.sin((t-1.1)*5*Math.PI):.5*Math.pow(2,-10*(t-1))*Math.sin((t-1.1)*5*Math.PI)+1}}),Back:Object.freeze({In:function(t){return 1===t?1:t*t*(2.70158*t-1.70158)},Out:function(t){return 0===t?0:--t*t*(2.70158*t+1.70158)+1},InOut:function(t){return(t*=2)<1?t*t*(3.5949095*t-2.5949095)*.5:.5*((t-=2)*t*(3.5949095*t+2.5949095)+2)}}),Bounce:Object.freeze({In:function(t){return 1-r.Bounce.Out(1-t)},Out:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},InOut:function(t){return t<.5?.5*r.Bounce.In(2*t):.5*r.Bounce.Out(2*t-1)+.5}}),generatePow:function(t){return void 0===t&&(t=4),t=(t=t<Number.EPSILON?Number.EPSILON:t)>1e4?1e4:t,{In:function(e){return Math.pow(e,t)},Out:function(e){return 1-Math.pow(1-e,t)},InOut:function(e){return e<.5?Math.pow(2*e,t)/2:(1-Math.pow(2-2*e,t))/2+.5}}}}),i=function(){return performance.now()},o=function(){function t(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._tweens={},this._tweensAddedDuringUpdate={},this.add.apply(this,t)}return t.prototype.getAll=function(){var t=this;return Object.keys(this._tweens).map(function(e){return t._tweens[e]})},t.prototype.removeAll=function(){this._tweens={}},t.prototype.add=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];for(var r=0;r<e.length;r++){var i=e[r];null==(t=i._group)||t.remove(i),i._group=this,this._tweens[i.getId()]=i,this._tweensAddedDuringUpdate[i.getId()]=i}},t.prototype.remove=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0;n<t.length;n++){var r=t[n];r._group=void 0,delete this._tweens[r.getId()],delete this._tweensAddedDuringUpdate[r.getId()]}},t.prototype.allStopped=function(){return this.getAll().every(function(t){return!t.isPlaying()})},t.prototype.update=function(t,e){void 0===t&&(t=i()),void 0===e&&(e=!0);var n=Object.keys(this._tweens);if(0!==n.length)for(;n.length>0;){this._tweensAddedDuringUpdate={};for(var r=0;r<n.length;r++){var o=this._tweens[n[r]],a=!e;o&&!1===o.update(t,a)&&!e&&this.remove(o)}n=Object.keys(this._tweensAddedDuringUpdate)}},t}(),a={Linear:function(t,e){var n=t.length-1,r=n*e,i=Math.floor(r),o=a.Utils.Linear;return e<0?o(t[0],t[1],r):e>1?o(t[n],t[n-1],n-r):o(t[i],t[i+1>n?n:i+1],r-i)},Bezier:function(t,e){for(var n=0,r=t.length-1,i=Math.pow,o=a.Utils.Bernstein,s=0;s<=r;s++)n+=i(1-e,r-s)*i(e,s)*t[s]*o(r,s);return n},CatmullRom:function(t,e){var n=t.length-1,r=n*e,i=Math.floor(r),o=a.Utils.CatmullRom;return t[0]===t[n]?(e<0&&(i=Math.floor(r=n*(1+e))),o(t[(i-1+n)%n],t[i],t[(i+1)%n],t[(i+2)%n],r-i)):e<0?t[0]-(o(t[0],t[0],t[1],t[1],-r)-t[0]):e>1?t[n]-(o(t[n],t[n],t[n-1],t[n-1],r-n)-t[n]):o(t[i?i-1:0],t[i],t[n<i+1?n:i+1],t[n<i+2?n:i+2],r-i)},Utils:{Linear:function(t,e,n){return(e-t)*n+t},Bernstein:function(t,e){var n=a.Utils.Factorial;return n(t)/n(e)/n(t-e)},Factorial:function(){var t=[1];return function(e){var n=1;if(t[e])return t[e];for(var r=e;r>1;r--)n*=r;return t[e]=n,n}}(),CatmullRom:function(t,e,n,r,i){var o=(n-t)*.5,a=(r-e)*.5,s=i*i;return i*s*(2*e-2*n+o+a)+(-3*e+3*n-2*o-a)*s+o*i+e}}},s=function(){function t(){}return t.nextId=function(){return t._nextId++},t._nextId=0,t}(),u=new o,l=function(){function t(t,e){this._isPaused=!1,this._pauseStart=0,this._valuesStart={},this._valuesEnd={},this._valuesStartRepeat={},this._duration=1e3,this._isDynamic=!1,this._initialRepeat=0,this._repeat=0,this._yoyo=!1,this._isPlaying=!1,this._reversed=!1,this._delayTime=0,this._startTime=0,this._easingFunction=r.Linear.None,this._interpolationFunction=a.Linear,this._chainedTweens=[],this._onStartCallbackFired=!1,this._onEveryStartCallbackFired=!1,this._id=s.nextId(),this._isChainStopped=!1,this._propertiesAreSetUp=!1,this._goToEnd=!1,this._object=t,"object"==typeof e?(this._group=e,e.add(this)):!0===e&&(this._group=u,u.add(this))}return t.prototype.getId=function(){return this._id},t.prototype.isPlaying=function(){return this._isPlaying},t.prototype.isPaused=function(){return this._isPaused},t.prototype.getDuration=function(){return this._duration},t.prototype.to=function(t,e){if(void 0===e&&(e=1e3),this._isPlaying)throw Error("Can not call Tween.to() while Tween is already started or paused. Stop the Tween first.");return this._valuesEnd=t,this._propertiesAreSetUp=!1,this._duration=e<0?0:e,this},t.prototype.duration=function(t){return void 0===t&&(t=1e3),this._duration=t<0?0:t,this},t.prototype.dynamic=function(t){return void 0===t&&(t=!1),this._isDynamic=t,this},t.prototype.start=function(t,e){if(void 0===t&&(t=i()),void 0===e&&(e=!1),this._isPlaying)return this;if(this._repeat=this._initialRepeat,this._reversed)for(var n in this._reversed=!1,this._valuesStartRepeat)this._swapEndStartRepeatValues(n),this._valuesStart[n]=this._valuesStartRepeat[n];if(this._isPlaying=!0,this._isPaused=!1,this._onStartCallbackFired=!1,this._onEveryStartCallbackFired=!1,this._isChainStopped=!1,this._startTime=t,this._startTime+=this._delayTime,!this._propertiesAreSetUp||e){if(this._propertiesAreSetUp=!0,!this._isDynamic){var r={};for(var o in this._valuesEnd)r[o]=this._valuesEnd[o];this._valuesEnd=r}this._setupProperties(this._object,this._valuesStart,this._valuesEnd,this._valuesStartRepeat,e)}return this},t.prototype.startFromCurrentValues=function(t){return this.start(t,!0)},t.prototype._setupProperties=function(t,e,n,r,i){for(var o in n){var a=t[o],s=Array.isArray(a),u=s?"array":typeof a,l=!s&&Array.isArray(n[o]);if("undefined"!==u&&"function"!==u){if(l){var c=n[o];if(0===c.length)continue;for(var h=[a],f=0,p=c.length;f<p;f+=1){var d=this._handleRelativeValue(a,c[f]);if(isNaN(d)){l=!1,console.warn("Found invalid interpolation list. Skipping.");break}h.push(d)}l&&(n[o]=h)}if(("object"===u||s)&&a&&!l){for(var m in e[o]=s?[]:{},a)e[o][m]=a[m];r[o]=s?[]:{};var c=n[o];if(!this._isDynamic){var g={};for(var m in c)g[m]=c[m];n[o]=c=g}this._setupProperties(a,e[o],c,r[o],i)}else(void 0===e[o]||i)&&(e[o]=a),s||(e[o]*=1),l?r[o]=n[o].slice().reverse():r[o]=e[o]||0}}},t.prototype.stop=function(){return this._isChainStopped||(this._isChainStopped=!0,this.stopChainedTweens()),this._isPlaying&&(this._isPlaying=!1,this._isPaused=!1,this._onStopCallback&&this._onStopCallback(this._object)),this},t.prototype.end=function(){return this._goToEnd=!0,this.update(this._startTime+this._duration),this},t.prototype.pause=function(t){return void 0===t&&(t=i()),this._isPaused||!this._isPlaying||(this._isPaused=!0,this._pauseStart=t),this},t.prototype.resume=function(t){return void 0===t&&(t=i()),this._isPaused&&this._isPlaying&&(this._isPaused=!1,this._startTime+=t-this._pauseStart,this._pauseStart=0),this},t.prototype.stopChainedTweens=function(){for(var t=0,e=this._chainedTweens.length;t<e;t++)this._chainedTweens[t].stop();return this},t.prototype.group=function(t){return t?t.add(this):console.warn("tween.group() without args has been removed, use group.add(tween) instead."),this},t.prototype.remove=function(){var t;return null==(t=this._group)||t.remove(this),this},t.prototype.delay=function(t){return void 0===t&&(t=0),this._delayTime=t,this},t.prototype.repeat=function(t){return void 0===t&&(t=0),this._initialRepeat=t,this._repeat=t,this},t.prototype.repeatDelay=function(t){return this._repeatDelayTime=t,this},t.prototype.yoyo=function(t){return void 0===t&&(t=!1),this._yoyo=t,this},t.prototype.easing=function(t){return void 0===t&&(t=r.Linear.None),this._easingFunction=t,this},t.prototype.interpolation=function(t){return void 0===t&&(t=a.Linear),this._interpolationFunction=t,this},t.prototype.chain=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return this._chainedTweens=t,this},t.prototype.onStart=function(t){return this._onStartCallback=t,this},t.prototype.onEveryStart=function(t){return this._onEveryStartCallback=t,this},t.prototype.onUpdate=function(t){return this._onUpdateCallback=t,this},t.prototype.onRepeat=function(t){return this._onRepeatCallback=t,this},t.prototype.onComplete=function(t){return this._onCompleteCallback=t,this},t.prototype.onStop=function(t){return this._onStopCallback=t,this},t.prototype.update=function(e,n){var r,o,a=this;if(void 0===e&&(e=i()),void 0===n&&(n=t.autoStartOnUpdate),this._isPaused)return!0;
370if(!this._goToEnd&&!this._isPlaying)if(!n)return!1;else this.start(e,!0);if(this._goToEnd=!1,e<this._startTime)return!0;!1===this._onStartCallbackFired&&(this._onStartCallback&&this._onStartCallback(this._object),this._onStartCallbackFired=!0),!1===this._onEveryStartCallbackFired&&(this._onEveryStartCallback&&this._onEveryStartCallback(this._object),this._onEveryStartCallbackFired=!0);var s=e-this._startTime,u=this._duration+(null!=(r=this._repeatDelayTime)?r:this._delayTime),l=this._duration+this._repeat*u,c=function(){if(0===a._duration||s>l)return 1;var t=Math.trunc(s/u),e=Math.min((s-t*u)/a._duration,1);return 0===e&&s===a._duration?1:e}(),h=this._easingFunction(c);if(this._updateProperties(this._object,this._valuesStart,this._valuesEnd,h),this._onUpdateCallback&&this._onUpdateCallback(this._object,c),0===this._duration||s>=this._duration)if(this._repeat>0){var f=Math.min(Math.trunc((s-this._duration)/u)+1,this._repeat);for(o in isFinite(this._repeat)&&(this._repeat-=f),this._valuesStartRepeat)this._yoyo||"string"!=typeof this._valuesEnd[o]||(this._valuesStartRepeat[o]=this._valuesStartRepeat[o]+parseFloat(this._valuesEnd[o])),this._yoyo&&this._swapEndStartRepeatValues(o),this._valuesStart[o]=this._valuesStartRepeat[o];this._yoyo&&(this._reversed=!this._reversed),this._startTime+=u*f,this._onRepeatCallback&&this._onRepeatCallback(this._object),this._onEveryStartCallbackFired=!1}else{this._onCompleteCallback&&this._onCompleteCallback(this._object);for(var p=0,d=this._chainedTweens.length;p<d;p++)this._chainedTweens[p].start(this._startTime+this._duration,!1);return this._isPlaying=!1,!1}return!0},t.prototype._updateProperties=function(t,e,n,r){for(var i in n)if(void 0!==e[i]){var o=e[i]||0,a=n[i],s=Array.isArray(t[i]),u=Array.isArray(a);!s&&u?t[i]=this._interpolationFunction(a,r):"object"==typeof a&&a?this._updateProperties(t[i],o,a,r):"number"==typeof(a=this._handleRelativeValue(o,a))&&(t[i]=o+(a-o)*r)}},t.prototype._handleRelativeValue=function(t,e){return"string"!=typeof e?e:"+"===e.charAt(0)||"-"===e.charAt(0)?t+parseFloat(e):parseFloat(e)},t.prototype._swapEndStartRepeatValues=function(t){var e=this._valuesStartRepeat[t],n=this._valuesEnd[t];"string"==typeof n?this._valuesStartRepeat[t]=this._valuesStartRepeat[t]+parseFloat(n):this._valuesStartRepeat[t]=this._valuesEnd[t],this._valuesEnd[t]=e},t.autoStartOnUpdate=!1,t}();s.nextId,u.getAll.bind(u),u.removeAll.bind(u),u.add.bind(u),u.remove.bind(u),u.update.bind(u)},31096:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>nq});var r=n(12115);function i(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(t,e)||o(t,e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){if(t){if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var s=function(t,e){var n,r=new Set(e);return Object.assign.apply(Object,[{}].concat(function(t){if(Array.isArray(t))return a(t)}(n=Object.entries(t).filter(function(t){var e=i(t,1)[0];return!r.has(e)}).map(function(t){var e,n,r,o=i(t,2),a=o[0],s=o[1];return n={},(r="symbol"==typeof(e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(r=a,"string"))?e:String(e))in n?Object.defineProperty(n,r,{value:s,enumerable:!0,configurable:!0,writable:!0}):n[r]=s,n}))||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(n)||o(n)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))};function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function l(t){return function(t){if(Array.isArray(t))return u(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||c(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,e){if(t){if("string"==typeof t)return u(t,e);var n=({}).toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}}function h(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.useEffect,i=(0,r.useRef)(),o=(0,r.useRef)(!1),a=(0,r.useRef)(!1),s=function(t){if(Array.isArray(t))return t}(e=(0,r.useState)(0))||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,l=!1;try{o=(n=n.call(t)).next,!1;for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){l=!0,i=t}
370finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,2)||c(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();s[0];var u=s[1];o.current&&(a.current=!0),n(function(){return o.current||(i.current=t(),o.current=!0),u(function(t){return t+1}),function(){a.current&&i.current&&i.current()}},[])}var f=n(85339),p=n(10915),d=n(80681),m=n(87548),g=n(82752);let y={type:"change"},v={type:"start"},b={type:"end"},_={NONE:-1,ROTATE:0,ZOOM:1,PAN:2,TOUCH_ROTATE:3,TOUCH_ZOOM_PAN:4},E=new f.I9Y,x=new f.I9Y,w=new f.Pq0,S=new f.Pq0,P=new f.Pq0,M=new f.PTz,A=new f.Pq0,T=new f.Pq0,O=new f.Pq0,k=new f.Pq0;class C extends f.H2z{constructor(t,e=null){super(t,e),this.screen={left:0,top:0,width:0,height:0},this.rotateSpeed=1,this.zoomSpeed=1.2,this.panSpeed=.3,this.noRotate=!1,this.noZoom=!1,this.noPan=!1,this.staticMoving=!1,this.dynamicDampingFactor=.2,this.minDistance=0,this.maxDistance=1/0,this.minZoom=0,this.maxZoom=1/0,this.keys=["KeyA","KeyS","KeyD"],this.mouseButtons={LEFT:f.kBv.ROTATE,MIDDLE:f.kBv.DOLLY,RIGHT:f.kBv.PAN},this.target=new f.Pq0,this.state=_.NONE,this.keyState=_.NONE,this._lastPosition=new f.Pq0,this._lastZoom=1,this._touchZoomDistanceStart=0,this._touchZoomDistanceEnd=0,this._lastAngle=0,this._eye=new f.Pq0,this._movePrev=new f.I9Y,this._moveCurr=new f.I9Y,this._lastAxis=new f.Pq0,this._zoomStart=new f.I9Y,this._zoomEnd=new f.I9Y,this._panStart=new f.I9Y,this._panEnd=new f.I9Y,this._pointers=[],this._pointerPositions={},this._onPointerMove=R.bind(this),this._onPointerDown=j.bind(this),this._onPointerUp=D.bind(this),this._onPointerCancel=L.bind(this),this._onContextMenu=H.bind(this),this._onMouseWheel=B.bind(this),this._onKeyDown=N.bind(this),this._onKeyUp=I.bind(this),this._onTouchStart=q.bind(this),this._onTouchMove=G.bind(this),this._onTouchEnd=V.bind(this),this._onMouseDown=F.bind(this),this._onMouseMove=z.bind(this),this._onMouseUp=U.bind(this),this._target0=this.target.clone(),this._position0=this.object.position.clone(),this._up0=this.object.up.clone(),this._zoom0=this.object.zoom,null!==e&&(this.connect(e),this.handleResize()),this.update()}connect(t){super.connect(t),window.addEventListener("keydown",this._onKeyDown),window.addEventListener("keyup",this._onKeyUp),this.domElement.addEventListener("pointerdown",this._onPointerDown),this.domElement.addEventListener("pointercancel",this._onPointerCancel),this.domElement.addEventListener("wheel",this._onMouseWheel,{passive:!1}),this.domElement.addEventListener("contextmenu",this._onContextMenu),this.domElement.style.touchAction="none"}disconnect(){window.removeEventListener("keydown",this._onKeyDown),window.removeEventListener("keyup",this._onKeyUp),this.domElement.removeEventListener("pointerdown",this._onPointerDown),this.domElement.ownerDocument.removeEventListener("pointermove",this._onPointerMove),this.domElement.ownerDocument.removeEventListener("pointerup",this._onPointerUp),this.domElement.removeEventListener("pointercancel",this._onPointerCancel),this.domElement.removeEventListener("wheel",this._onMouseWheel),this.domElement.removeEventListener("contextmenu",this._onContextMenu),this.domElement.style.touchAction="auto"}dispose(){this.disconnect()}handleResize(){let t=this.domElement.getBoundingClientRect(),e=this.domElement.ownerDocument.documentElement;this.screen.left=t.left+window.pageXOffset-e.clientLeft,this.screen.top=t.top+window.pageYOffset-e.clientTop,this.screen.width=t.width,this.screen.height=t.height}update(){this._eye.subVectors(this.object.position,this.target),this.noRotate||this._rotateCamera(),this.noZoom||this._zoomCamera(),this.noPan||this._panCamera(),this.object.position.addVectors(this.target,this._eye),this.object.isPerspectiveCamera?(this._checkDistances(),this.object.lookAt(this.target),this._lastPosition.distanceToSquared(this.object.position)>1e-6&&(this.dispatchEvent(y),this._lastPosition.copy(this.object.position))):this.object.isOrthographicCamera?(this.object.lookAt(this.target),(this._lastPosition.distanceToSquared(this.object.position)>1e-6||this._lastZoom!==this.object.zoom)&&(this.dispatchEvent(y),this._lastPosition.copy(this.object.position),this._lastZoom=this.object.zoom)):console.warn("THREE.TrackballControls: Unsupported camera type.")}
vendor: 4,687 bytes, line 370
370reset(){this.state=_.NONE,this.keyState=_.NONE,this.target.copy(this._target0),this.object.position.copy(this._position0),this.object.up.copy(this._up0),this.object.zoom=this._zoom0,this.object.updateProjectionMatrix(),this._eye.subVectors(this.object.position,this.target),this.object.lookAt(this.target),this.dispatchEvent(y),this._lastPosition.copy(this.object.position),this._lastZoom=this.object.zoom}_panCamera(){if(x.copy(this._panEnd).sub(this._panStart),x.lengthSq()){if(this.object.isOrthographicCamera){let t=(this.object.right-this.object.left)/this.object.zoom/this.domElement.clientWidth,e=(this.object.top-this.object.bottom)/this.object.zoom/this.domElement.clientWidth;x.x*=t,x.y*=e}x.multiplyScalar(this._eye.length()*this.panSpeed),S.copy(this._eye).cross(this.object.up).setLength(x.x),S.add(w.copy(this.object.up).setLength(x.y)),this.object.position.add(S),this.target.add(S),this.staticMoving?this._panStart.copy(this._panEnd):this._panStart.add(x.subVectors(this._panEnd,this._panStart).multiplyScalar(this.dynamicDampingFactor))}}_rotateCamera(){k.set(this._moveCurr.x-this._movePrev.x,this._moveCurr.y-this._movePrev.y,0);let t=k.length();t?(this._eye.copy(this.object.position).sub(this.target),A.copy(this._eye).normalize(),T.copy(this.object.up).normalize(),O.crossVectors(T,A).normalize(),T.setLength(this._moveCurr.y-this._movePrev.y),O.setLength(this._moveCurr.x-this._movePrev.x),k.copy(T.add(O)),P.crossVectors(k,this._eye).normalize(),t*=this.rotateSpeed,M.setFromAxisAngle(P,t),this._eye.applyQuaternion(M),this.object.up.applyQuaternion(M),this._lastAxis.copy(P),this._lastAngle=t):!this.staticMoving&&this._lastAngle&&(this._lastAngle*=Math.sqrt(1-this.dynamicDampingFactor),this._eye.copy(this.object.position).sub(this.target),M.setFromAxisAngle(this._lastAxis,this._lastAngle),this._eye.applyQuaternion(M),this.object.up.applyQuaternion(M)),this._movePrev.copy(this._moveCurr)}_zoomCamera(){let t;this.state===_.TOUCH_ZOOM_PAN?(t=this._touchZoomDistanceStart/this._touchZoomDistanceEnd,this._touchZoomDistanceStart=this._touchZoomDistanceEnd,this.object.isPerspectiveCamera?this._eye.multiplyScalar(t):this.object.isOrthographicCamera?(this.object.zoom=f.cj9.clamp(this.object.zoom/t,this.minZoom,this.maxZoom),this._lastZoom!==this.object.zoom&&this.object.updateProjectionMatrix()):console.warn("THREE.TrackballControls: Unsupported camera type")):(1!=(t=1+(this._zoomEnd.y-this._zoomStart.y)*this.zoomSpeed)&&t>0&&(this.object.isPerspectiveCamera?this._eye.multiplyScalar(t):this.object.isOrthographicCamera?(this.object.zoom=f.cj9.clamp(this.object.zoom/t,this.minZoom,this.maxZoom),this._lastZoom!==this.object.zoom&&this.object.updateProjectionMatrix()):console.warn("THREE.TrackballControls: Unsupported camera type")),this.staticMoving?this._zoomStart.copy(this._zoomEnd):this._zoomStart.y+=(this._zoomEnd.y-this._zoomStart.y)*this.dynamicDampingFactor)}_getMouseOnScreen(t,e){return E.set((t-this.screen.left)/this.screen.width,(e-this.screen.top)/this.screen.height),E}_getMouseOnCircle(t,e){return E.set((t-.5*this.screen.width-this.screen.left)/(.5*this.screen.width),(this.screen.height+2*(this.screen.top-e))/this.screen.width),E}_addPointer(t){this._pointers.push(t)}_removePointer(t){delete this._pointerPositions[t.pointerId];for(let e=0;e<this._pointers.length;e++)if(this._pointers[e].pointerId==t.pointerId)return void this._pointers.splice(e,1)}_trackPointer(t){let e=this._pointerPositions[t.pointerId];void 0===e&&(e=new f.I9Y,this._pointerPositions[t.pointerId]=e),e.set(t.pageX,t.pageY)}_getSecondPointerPosition(t){let e=t.pointerId===this._pointers[0].pointerId?this._pointers[1]:this._pointers[0];return this._pointerPositions[e.pointerId]}_checkDistances(){this.noZoom&&this.noPan||(this._eye.lengthSq()>this.maxDistance*this.maxDistance&&(this.object.position.addVectors(this.target,this._eye.setLength(this.maxDistance)),this._zoomStart.copy(this._zoomEnd)),this._eye.lengthSq()<this.minDistance*this.minDistance&&(this.object.position.addVectors(this.target,this._eye.setLength(this.minDistance)),this._zoomStart.copy(this._zoomEnd)))}}function j(t){!1!==this.enabled&&(0===this._pointers.length&&(this.domElement.setPointerCapture(t.pointerId),this.domElement.ownerDocument.addEventListener("pointermove",this._onPointerMove),this.domElement.ownerDocument.addEventListener("pointerup",this._onPointerUp)),this._addPointer(t),"touch"===t.pointerType?this._onTouchStart(t):this._onMouseDown(t))}function R(t){!1!==this.enabled&&("touch"===t.pointerType?this._onTouchMove(t):this._onMouseMove(t))}function D(t){!1!==this.enabled&&("touch"===t.pointerType?this._onTouchEnd(t):this._onMouseUp(),this._removePointer(t),
3700===this._pointers.length&&(this.domElement.releasePointerCapture(t.pointerId),this.domElement.ownerDocument.removeEventListener("pointermove",this._onPointerMove),this.domElement.ownerDocument.removeEventListener("pointerup",this._onPointerUp)))}function L(t){this._removePointer(t)}function I(){!1!==this.enabled&&(this.keyState=_.NONE,window.addEventListener("keydown",this._onKeyDown))}function N(t){!1!==this.enabled&&(window.removeEventListener("keydown",this._onKeyDown),this.keyState===_.NONE&&(t.code!==this.keys[_.ROTATE]||this.noRotate?t.code!==this.keys[_.ZOOM]||this.noZoom?t.code!==this.keys[_.PAN]||this.noPan||(this.keyState=_.PAN):this.keyState=_.ZOOM:this.keyState=_.ROTATE))}function F(t){let e;switch(t.button){case 0:e=this.mouseButtons.LEFT;break;case 1:e=this.mouseButtons.MIDDLE;break;case 2:e=this.mouseButtons.RIGHT;break;default:e=-1}switch(e){case f.kBv.DOLLY:this.state=_.ZOOM;break;case f.kBv.ROTATE:this.state=_.ROTATE;break;case f.kBv.PAN:this.state=_.PAN;break;default:this.state=_.NONE}let n=this.keyState!==_.NONE?this.keyState:this.state;n!==_.ROTATE||this.noRotate?n!==_.ZOOM||this.noZoom?n!==_.PAN||this.noPan||(this._panStart.copy(this._getMouseOnScreen(t.pageX,t.pageY)),this._panEnd.copy(this._panStart)):(this._zoomStart.copy(this._getMouseOnScreen(t.pageX,t.pageY)),this._zoomEnd.copy(this._zoomStart)):(this._moveCurr.copy(this._getMouseOnCircle(t.pageX,t.pageY)),this._movePrev.copy(this._moveCurr)),this.dispatchEvent(v)}function z(t){let e=this.keyState!==_.NONE?this.keyState:this.state;e!==_.ROTATE||this.noRotate?e!==_.ZOOM||this.noZoom?e!==_.PAN||this.noPan||this._panEnd.copy(this._getMouseOnScreen(t.pageX,t.pageY)):this._zoomEnd.copy(this._getMouseOnScreen(t.pageX,t.pageY)):(this._movePrev.copy(this._moveCurr),this._moveCurr.copy(this._getMouseOnCircle(t.pageX,t.pageY)))}function U(){this.state=_.NONE,this.dispatchEvent(b)}function B(t){if(!1!==this.enabled&&!0!==this.noZoom){switch(t.preventDefault(),t.deltaMode){case 2:this._zoomStart.y-=.025*t.deltaY;break;case 1:this._zoomStart.y-=.01*t.deltaY;break;default:this._zoomStart.y-=25e-5*t.deltaY}this.dispatchEvent(v),this.dispatchEvent(b)}}function H(t){!1!==this.enabled&&t.preventDefault()}function q(t){if(this._trackPointer(t),1===this._pointers.length)this.state=_.TOUCH_ROTATE,this._moveCurr.copy(this._getMouseOnCircle(this._pointers[0].pageX,this._pointers[0].pageY)),this._movePrev.copy(this._moveCurr);else{this.state=_.TOUCH_ZOOM_PAN;let t=this._pointers[0].pageX-this._pointers[1].pageX,e=this._pointers[0].pageY-this._pointers[1].pageY;this._touchZoomDistanceEnd=this._touchZoomDistanceStart=Math.sqrt(t*t+e*e);let n=(this._pointers[0].pageX+this._pointers[1].pageX)/2,r=(this._pointers[0].pageY+this._pointers[1].pageY)/2;this._panStart.copy(this._getMouseOnScreen(n,r)),this._panEnd.copy(this._panStart)}this.dispatchEvent(v)}function G(t){if(this._trackPointer(t),1===this._pointers.length)this._movePrev.copy(this._moveCurr),this._moveCurr.copy(this._getMouseOnCircle(t.pageX,t.pageY));else{let e=this._getSecondPointerPosition(t),n=t.pageX-e.x,r=t.pageY-e.y;this._touchZoomDistanceEnd=Math.sqrt(n*n+r*r);let i=(t.pageX+e.x)/2,o=(t.pageY+e.y)/2;this._panEnd.copy(this._getMouseOnScreen(i,o))}}function V(t){switch(this._pointers.length){case 0:this.state=_.NONE;break;case 1:this.state=_.TOUCH_ROTATE,this._moveCurr.copy(this._getMouseOnCircle(t.pageX,t.pageY)),this._movePrev.copy(this._moveCurr);break;case 2:this.state=_.TOUCH_ZOOM_PAN;for(let e=0;e<this._pointers.length;e++)if(this._pointers[e].pointerId!==t.pointerId){let t=this._pointerPositions[this._pointers[e].pointerId];this._moveCurr.copy(this._getMouseOnCircle(t.x,t.y)),this._movePrev.copy(this._moveCurr);break}}this.dispatchEvent(b)}let W={type:"change"},Y={type:"start"},Z={type:"end"},$=new f.RlV,X=new f.Zcv,K=Math.cos(70*f.cj9.DEG2RAD),Q=new f.Pq0,J=2*Math.PI,tt={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_PAN:4,TOUCH_DOLLY_PAN:5,TOUCH_DOLLY_ROTATE:6};class te extends f.H2z{constructor(t,e=null){super(t,e),this.state=tt.NONE,this.target=new f.Pq0,this.cursor=new f.Pq0,this.minDistance=0,this.maxDistance=1/0,this.minZoom=0,this.maxZoom=1/0,this.minTargetRadius=0,this.maxTargetRadius=1/0,this.minPolarAngle=0,this.maxPolarAngle=Math.PI,this.minAzimuthAngle=-1/0,this.maxAzimuthAngle=1/0,this.enableDamping=!1,this.dampingFactor=.05,this.enableZoom=!0,this.zoomSpeed=1,this.enableRotate=!0,this.rotateSpeed=1,this.keyRotateSpeed=1,this.enablePan=!0,this.panSpeed=1,this.screenSpacePanning=!0,this.keyPanSpeed=7,this.zoomToCursor=!1,this.autoRotate=!1,this.autoRotateSpeed=2,this.keys={LE
370FT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",BOTTOM:"ArrowDown"},this.mouseButtons={LEFT:f.kBv.ROTATE,MIDDLE:f.kBv.DOLLY,RIGHT:f.kBv.PAN},this.touches={ONE:f.wtR.ROTATE,TWO:f.wtR.DOLLY_PAN},this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this._domElementKeyEvents=null,this._lastPosition=new f.Pq0,this._lastQuaternion=new f.PTz,this._lastTargetPosition=new f.Pq0,this._quat=new f.PTz().setFromUnitVectors(t.up,new f.Pq0(0,1,0)),this._quatInverse=this._quat.clone().invert(),this._spherical=new f.YHV,this._sphericalDelta=new f.YHV,this._scale=1,this._panOffset=new f.Pq0,this._rotateStart=new f.I9Y,this._rotateEnd=new f.I9Y,this._rotateDelta=new f.I9Y,this._panStart=new f.I9Y,this._panEnd=new f.I9Y,this._panDelta=new f.I9Y,this._dollyStart=new f.I9Y,this._dollyEnd=new f.I9Y,this._dollyDelta=new f.I9Y,this._dollyDirection=new f.Pq0,this._mouse=new f.I9Y,this._performCursorZoom=!1,this._pointers=[],this._pointerPositions={},this._controlActive=!1,this._onPointerMove=tr.bind(this),this._onPointerDown=tn.bind(this),this._onPointerUp=ti.bind(this),this._onContextMenu=th.bind(this),this._onMouseWheel=ts.bind(this),this._onKeyDown=tu.bind(this),this._onTouchStart=tl.bind(this),this._onTouchMove=tc.bind(this),this._onMouseDown=to.bind(this),this._onMouseMove=ta.bind(this),this._interceptControlDown=tf.bind(this),this._interceptControlUp=tp.bind(this),null!==this.domElement&&this.connect(this.domElement),this.update()}connect(t){super.connect(t),this.domElement.addEventListener("pointerdown",this._onPointerDown),this.domElement.addEventListener("pointercancel",this._onPointerUp),this.domElement.addEventListener("contextmenu",this._onContextMenu),this.domElement.addEventListener("wheel",this._onMouseWheel,{passive:!1}),this.domElement.getRootNode().addEventListener("keydown",this._interceptControlDown,{passive:!0,capture:!0}),this.domElement.style.touchAction="none"}disconnect(){this.domElement.removeEventListener("pointerdown",this._onPointerDown),this.domElement.ownerDocument.removeEventListener("pointermove",this._onPointerMove),this.domElement.ownerDocument.removeEventListener("pointerup",this._onPointerUp),this.domElement.removeEventListener("pointercancel",this._onPointerUp),this.domElement.removeEventListener("wheel",this._onMouseWheel),this.domElement.removeEventListener("contextmenu",this._onContextMenu),this.stopListenToKeyEvents(),this.domElement.getRootNode().removeEventListener("keydown",this._interceptControlDown,{capture:!0}),this.domElement.style.touchAction="auto"}dispose(){this.disconnect()}getPolarAngle(){return this._spherical.phi}getAzimuthalAngle(){return this._spherical.theta}getDistance(){return this.object.position.distanceTo(this.target)}listenToKeyEvents(t){t.addEventListener("keydown",this._onKeyDown),this._domElementKeyEvents=t}stopListenToKeyEvents(){null!==this._domElementKeyEvents&&(this._domElementKeyEvents.removeEventListener("keydown",this._onKeyDown),this._domElementKeyEvents=null)}saveState(){this.target0.copy(this.target),this.position0.copy(this.object.position),this.zoom0=this.object.zoom}reset(){this.target.copy(this.target0),this.object.position.copy(this.position0),this.object.zoom=this.zoom0,this.object.updateProjectionMatrix(),this.dispatchEvent(W),this.update(),this.state=tt.NONE}update(t=null){let e=this.object.position;Q.copy(e).sub(this.target),Q.applyQuaternion(this._quat),this._spherical.setFromVector3(Q),this.autoRotate&&this.state===tt.NONE&&this._rotateLeft(this._getAutoRotationAngle(t)),this.enableDamping?(this._spherical.theta+=this._sphericalDelta.theta*this.dampingFactor,this._spherical.phi+=this._sphericalDelta.phi*this.dampingFactor):(this._spherical.theta+=this._sphericalDelta.theta,this._spherical.phi+=this._sphericalDelta.phi);let n=this.minAzimuthAngle,r=this.maxAzimuthAngle;isFinite(n)&&isFinite(r)&&(n<-Math.PI?n+=J:n>Math.PI&&(n-=J),r<-Math.PI?r+=J:r>Math.PI&&(r-=J),n<=r?this._spherical.theta=Math.max(n,Math.min(r,this._spherical.theta)):this._spherical.theta=this._spherical.theta>(n+r)/2?Math.max(n,this._spherical.theta):Math.min(r,this._spherical.theta)),this._spherical.phi=Math.max(this.minPolarAngle,Math.min(this.maxPolarAngle,this._spherical.phi)),this._spherical.makeSafe(),!0===this.enableDamping?this.target.addScaledVector(this._panOffset,this.dampingFactor):this.target.add(this._panOffset),this.target.sub(this.cursor),this.target.clampLength(this.minTargetRadius,this.maxTargetRadius),this.target.add(this.cursor);let i=!1;if(this.zoomToCursor&&this._performCursorZoom||this.object.isOrthographicCamera)this._spherical.radiu
370s=this._clampDistance(this._spherical.radius);else{let t=this._spherical.radius;this._spherical.radius=this._clampDistance(this._spherical.radius*this._scale),i=t!=this._spherical.radius}if(Q.setFromSpherical(this._spherical),Q.applyQuaternion(this._quatInverse),e.copy(this.target).add(Q),this.object.lookAt(this.target),!0===this.enableDamping?(this._sphericalDelta.theta*=1-this.dampingFactor,this._sphericalDelta.phi*=1-this.dampingFactor,this._panOffset.multiplyScalar(1-this.dampingFactor)):(this._sphericalDelta.set(0,0,0),this._panOffset.set(0,0,0)),this.zoomToCursor&&this._performCursorZoom){let t=null;if(this.object.isPerspectiveCamera){let e=Q.length();t=this._clampDistance(e*this._scale);let n=e-t;this.object.position.addScaledVector(this._dollyDirection,n),this.object.updateMatrixWorld(),i=!!n}else if(this.object.isOrthographicCamera){let e=new f.Pq0(this._mouse.x,this._mouse.y,0);e.unproject(this.object);let n=this.object.zoom;this.object.zoom=Math.max(this.minZoom,Math.min(this.maxZoom,this.object.zoom/this._scale)),this.object.updateProjectionMatrix(),i=n!==this.object.zoom;let r=new f.Pq0(this._mouse.x,this._mouse.y,0);r.unproject(this.object),this.object.position.sub(r).add(e),this.object.updateMatrixWorld(),t=Q.length()}else console.warn("WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled."),this.zoomToCursor=!1;null!==t&&(this.screenSpacePanning?this.target.set(0,0,-1).transformDirection(this.object.matrix).multiplyScalar(t).add(this.object.position):($.origin.copy(this.object.position),$.direction.set(0,0,-1).transformDirection(this.object.matrix),Math.abs(this.object.up.dot($.direction))<K?this.object.lookAt(this.target):(X.setFromNormalAndCoplanarPoint(this.object.up,this.target),$.intersectPlane(X,this.target))))}else if(this.object.isOrthographicCamera){let t=this.object.zoom;this.object.zoom=Math.max(this.minZoom,Math.min(this.maxZoom,this.object.zoom/this._scale)),t!==this.object.zoom&&(this.object.updateProjectionMatrix(),i=!0)}return this._scale=1,this._performCursorZoom=!1,!!(i||this._lastPosition.distanceToSquared(this.object.position)>1e-6||8*(1-this._lastQuaternion.dot(this.object.quaternion))>1e-6||this._lastTargetPosition.distanceToSquared(this.target)>1e-6)&&(this.dispatchEvent(W),this._lastPosition.copy(this.object.position),this._lastQuaternion.copy(this.object.quaternion),this._lastTargetPosition.copy(this.target),!0)}_getAutoRotationAngle(t){return null!==t?J/60*this.autoRotateSpeed*t:J/60/60*this.autoRotateSpeed}_getZoomScale(t){let e=Math.abs(.01*t);return Math.pow(.95,this.zoomSpeed*e)}_rotateLeft(t){this._sphericalDelta.theta-=t}_rotateUp(t){this._sphericalDelta.phi-=t}_panLeft(t,e){Q.setFromMatrixColumn(e,0),Q.multiplyScalar(-t),this._panOffset.add(Q)}_panUp(t,e){!0===this.screenSpacePanning?Q.setFromMatrixColumn(e,1):(Q.setFromMatrixColumn(e,0),Q.crossVectors(this.object.up,Q)),Q.multiplyScalar(t),this._panOffset.add(Q)}_pan(t,e){let n=this.domElement;if(this.object.isPerspectiveCamera){let r=this.object.position;Q.copy(r).sub(this.target);let i=Q.length();i*=Math.tan(this.object.fov/2*Math.PI/180),this._panLeft(2*t*i/n.clientHeight,this.object.matrix),this._panUp(2*e*i/n.clientHeight,this.object.matrix)}else this.object.isOrthographicCamera?(this._panLeft(t*(this.object.right-this.object.left)/this.object.zoom/n.clientWidth,this.object.matrix),this._panUp(e*(this.object.top-this.object.bottom)/this.object.zoom/n.clientHeight,this.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),this.enablePan=!1)}_dollyOut(t){this.object.isPerspectiveCamera||this.object.isOrthographicCamera?this._scale/=t:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),this.enableZoom=!1)}_dollyIn(t){this.object.isPerspectiveCamera||this.object.isOrthographicCamera?this._scale*=t:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),this.enableZoom=!1)}_updateZoomParameters(t,e){if(!this.zoomToCursor)return;this._performCursorZoom=!0;let n=this.domElement.getBoundingClientRect(),r=t-n.left,i=e-n.top,o=n.width,a=n.height;this._mouse.x=r/o*2-1,this._mouse.y=-(i/a*2)+1,this._dollyDirection.set(this._mouse.x,this._mouse.y,1).unproject(this.object).sub(this.object.position).normalize()}_clampDistance(t){return Math.max(this.minDistance,Math.min(this.maxDistance,t))}_handleMouseDownRotate(t){this._rotateStart.set(t.clientX,t.clientY)}_handleMouseDownDolly(t){this._updateZoomParameters(t.clientX,t.clientX),this._dollyStart.set(t.clientX,t.clientY)}_handleMouseDownPan(t){this._panStart.set(t.clientX,t.clientY)}_handleMouseMoveRotate(t){this._rotateEnd.set(t.clientX,t.clientY),this._rotateDelta.subVectors(this._rotateEnd,this._rotateStart).multiplyScalar(this.rotateSpeed);let e=this.domElement;this._rotateLeft(J*this._rotateDelta.x/e.clientHeight),this._rotateUp(J*this._rotateDelta.y/e.clientHeight),this._rotateStart.copy(this._rotateEnd),this.update()}_handleMouseMoveDolly(t){this._dollyEnd.set(t.clientX,t.clientY),this._dollyDelta.subVectors(this._dollyEnd,this._dollyStart),this._dollyDelta.y>0?this._dollyOut(this._getZoomScale(this._dollyDelta.y)):this._dollyDelta.y<0&&this._dollyIn(this._getZoomScale(this._dollyDelta.y)),this._dollyStart.copy(this._dollyEnd),this.update()}_handleMouseMovePan(t){this._panEnd.set(t.clientX,t.clientY),this._panDelta.subVectors(this._panEnd,this._panStart).multiplyScalar(this.panSpeed),this._pan(this._panDelta.x,this._panDelta.y),this._panStart.copy(this._panEnd),this.update()}_handleMouseWheel(t){this._updateZoomParameters(t.clientX,t.clientY),t.deltaY<0?this._dollyIn(this._getZoomScale(t.deltaY)):t.deltaY>0&&this._dollyOut(this._getZoomScale(t.deltaY)),this.update()}_handleKeyDown(t){let e=!1;switch(t.code){case this.keys.UP:t.ctrlKey||t.metaKey||t.shiftKey?this.enableRotate&&this._rotateUp(J*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(0,this.keyPanSpeed),e=!0;break;case this.keys.BOTTOM:t.ctrlKey||t.metaKey||t.shiftKey?this.enableRotate&&this._rotateUp(-J*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(0,-this.keyPanSpeed),e=!0;break;case this.keys.LEFT:t.ctrlKey||t.metaKey||t.shiftKey?this.enableRotate&&this._rotateLeft(J*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(this.keyPanSpeed,0),e=!0;break;case this.keys.RIGHT:t.ctrlKey||t.metaKey||t.shiftKey?this.enableRotate&&this._rotateLeft(-J*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(-this.keyPanSpeed,0),e=!0}e&&(t.preventDefault(),this.update())}_handleTouchStartRotate(t){if(1===this._pointers.length)this._rotateStart.set(t.pageX,t.pageY);else{let e=this._getSecondPointerPosition(t),n=.5*(t.pageX+e.x),r=.5*(t.pageY+e.y);this._rotateStart.set(n,r)}}_handleTouchStartPan(t){if(1===this._pointers.length)this._panStart.set(t.pageX,t.pageY);else{let e=this._getSecondPointerPosition(t),n=.5*(t.pageX+e.x),r=.5*(t.pageY+e.y);this._panStart.set(n,r)}}_handleTouchStartDolly(t){let e=this._getSecondPointerPosition(t),n=t.pageX-e.x,r=t.pageY-e.y,i=Math.sqrt(n*n+r*r);this._dollyStart.set(0,i)}_handleTouchStartDollyPan(t){this.enableZoom&&this._handleTouchStartDolly(t),this.enablePan&&this._handleTouchStartPan(t)}_handleTouchStartDollyRotate(t){this.enableZoom&&this._handleTouchStartDolly(t),this.enableRotate&&this._handleTouchStartRotate(t)}_handleTouchMoveRotate(t){if(1==this._pointers.length)this._rotateEnd.set(t.pageX,t.pageY);else{let e=this._getSecondPointerPosition(t),n=.5*(t.pageX+e.x),r=.5*(t.pageY+e.y);this._rotateEnd.set(n,r)}this._rotateDelta.subVectors(this._rotateEnd,this._rotateStart).multiplyScalar(this.rotateSpeed);let e=this.domElement;this._rotateLeft(J*this._rotateDelta.x/e.clientHeight),this._rotateUp(J*this._rotateDelta.y/e.clientHeight),this._rotateStart.copy(this._rotateEnd)}_handleTouchMovePan(t){if(1===this._pointers.length)this._panEnd.set(t.pageX,t.pageY);else{let e=this._getSecondPointerPosition(t),n=.5*(t.pageX+e.x),r=.5*(t.pageY+e.y);this._panEnd.set(n,r)}this._panDelta.subVectors(this._panEnd,this._panStart).multiplyScalar(this.panSpeed),this._pan(this._panDelta.x,this._panDelta.y),this._panStart.copy(this._panEnd)}_handleTouchMoveDolly(t){let e=this._getSecondPointerPosition(t),n=t.pageX-e.x,r=t.pageY-e.y,i=Math.sqrt(n*n+r*r);this._dollyEnd.set(0,i),this._dollyDelta.set(0,Math.pow(this._dollyEnd.y/this._dollyStart.y,this.zoomSpeed)),this._dollyOut(this._dollyDelta.y),this._dollyStart.copy(this._dollyEnd);let o=(t.pageX+e.x)*.5,a=(t.pageY+e.y)*.5;this._updateZoomParameters(o,a)}_handleTouchMoveDollyPan(t){this.enableZoom&&this._handleTouchMoveDolly(t),this.enablePan&&this._handleTouchMovePan(t)}_handleTouchMoveDollyRotate(t){this.enableZoom&&this._handleTouchMoveDolly(t),this.enableRotate&&this._handleTouchMoveRotate(t)}_addPointer(t){this._pointers.push(t.pointerId)}_removePointer(t){delete this._pointerPositions[t.pointerId];for(let e=0;e<this._pointers.length;e++)if(this._pointers[e]==t.pointerId)return void this._pointers.splice(e,1)}_isTrackingPointer(t){for(let e=0;e<this._pointers.length;e++)if(this._pointers[e]==t.pointerId)return!0;return!1}_trackPointer(t){let e=this._pointerPositions[t.pointerId];void 0===e&&(e=new f.I9Y,this._pointerPositions[t.pointerId]=e),e.set(t.pageX,t.pageY)}_getSecondPointerPosition(t){let e=t.pointerId===this._pointers[0]?this._pointers[1]:this._pointers[0];return this._pointerPositions[e]}_customWheelEvent(t){let e=t.deltaMode,n={clientX:t.clientX,clientY:t.clientY,deltaY:t.deltaY};switch(e){case 1:n.deltaY*=16;break;case 2:n.deltaY*=100}return t.ctrlKey&&!this._controlActive&&(n.deltaY*=10),n}}function tn(t){!1!==this.enabled&&(0===this._pointers.length&&(this.domElement.setPointerCapture(t.pointerId),this.domElement.ownerDocument.addEventListener("pointermove",this._onPointerMove),this.domElement.ownerDocument.addEventListener("pointerup",this._onPointerUp)),this._isTrackingPointer(t)||(this._addPointer(t),"touch"===t.pointerType?this._onTouchStart(t):this._onMouseDown(t)))}function tr(t){!1!==this.enabled&&("touch"===t.pointerType?this._onTouchMove(t):this._onMouseMove(t))}function ti(t){switch(this._removePointer(t),this._pointers.length){case 0:this.domElement.releasePointerCapture(t.pointerId),this.domElement.ownerDocument.removeEventListener("pointermove",this._onPointerMove),this.domElement.ownerDocument.removeEventListener("pointerup",this._onPointerUp),this.dispatchEvent(Z),this.state=tt.NONE;break;case 1:let e=this._pointers[0],n=this._pointerPositions[e];this._onTouchStart({pointerId:e,pageX:n.x,pageY:n.y})}}function to(t){let e;switch(t.button){case 0:e=this.mouseButtons.LEFT;break;case 1:e=this.mouseButtons.MIDDLE;break;case 2:e=this.mouseButtons.RIGHT;break;default:e=-1}switch(e){case f.kBv.DOLLY:if(!1===this.enableZoom)return;this._handleMouseDownDolly(t),this.state=tt.DOLLY;break;case f.kBv.ROTATE:if(t.ctrlKey||t.metaKey||t.shiftKey){if(!1===this.enablePan)return;this._handleMouseDownPan(t),this.state=tt.PAN}else{if(!1===this.enableRotate)return;this._handleMouseDownRotate(t),this.state=tt.ROTATE}break;case f.kBv.PAN:if(t.ctrlKey||t.metaKey||t.shiftKey){if(!1===this.enableRotate)return;this._handleMouseDownRotate(t),this.state=tt.ROTATE}else{if(!1===this.enablePan)return;this._handleMouseDownPan(t),this.state=tt.PAN}break;default:this.state=tt.NONE}this.state!==tt.NONE&&this.dispatchEvent(Y)}function ta(t){switch(this.state){case tt.ROTATE:if(!1===this.enableRotate)return;this._handleMouseMoveRotate(t);break;case tt.DOLLY:if(!1===this.enableZoom)return;this._handleMouseMoveDolly(t);break;case tt.PAN:if(!1===this.enablePan)return;this._handleMouseMovePan(t)}}function ts(t){!1!==this.enabled&&!1!==this.enableZoom&&this.state===tt.NONE&&(t.preventDefault(),this.dispatchEvent(Y),this._handleMouseWheel(this._customWheelEvent(t)),this.dispatchEvent(Z))}function tu(t){!1!==this.enabled&&this._handleKeyDown(t)}function tl(t){switch(this._trackPointer(t),this._pointers.length){case 1:switch(this.touches.ONE){case f.wtR.ROTATE:if(!1===this.enableRotate)return;this._handleTouchStartRotate(t),this.state=tt.TOUCH_ROTATE;break;case f.wtR.PAN:if(!1===this.enablePan)return;this._handleTouchStartPan(t),this.state=tt.TOUCH_PAN;break;default:this.state=tt.NONE}break;case 2:switch(this.touches.TWO){case f.wtR.DOLLY_PAN:if(!1===this.enableZoom&&!1===this.enablePan)return;this._handleTouchStartDollyPan(t),this.state=tt.TOUCH_DOLLY_PAN;break;case f.wtR.DOLLY_ROTATE:if(!1===this.enableZoom&&!1===this.enableRotate)return;this._handleTouchStartDollyRotate(t),this.state=tt.TOUCH_DOLLY_ROTATE;break;default:this.state=tt.NONE}break;default:this.state=tt.NONE}this.state!==tt.NONE&&this.dispatchEvent(Y)}function tc(t){switch(this._trackPointer(t),this.state){case tt.TOUC
370H_ROTATE:if(!1===this.enableRotate)return;this._handleTouchMoveRotate(t),this.update();break;case tt.TOUCH_PAN:if(!1===this.enablePan)return;this._handleTouchMovePan(t),this.update();break;case tt.TOUCH_DOLLY_PAN:if(!1===this.enableZoom&&!1===this.enablePan)return;this._handleTouchMoveDollyPan(t),this.update();break;case tt.TOUCH_DOLLY_ROTATE:if(!1===this.enableZoom&&!1===this.enableRotate)return;this._handleTouchMoveDollyRotate(t),this.update();break;default:this.state=tt.NONE}}function th(t){!1!==this.enabled&&t.preventDefault()}function tf(t){"Control"===t.key&&(this._controlActive=!0,this.domElement.getRootNode().addEventListener("keyup",this._interceptControlUp,{passive:!0,capture:!0}))}function tp(t){"Control"===t.key&&(this._controlActive=!1,this.domElement.getRootNode().removeEventListener("keyup",this._interceptControlUp,{passive:!0,capture:!0}))}let td={type:"change"},tm=new f.PTz;class tg extends f.H2z{constructor(t,e=null){super(t,e),this.movementSpeed=1,this.rollSpeed=.005,this.dragToLook=!1,this.autoForward=!1,this._moveState={up:0,down:0,left:0,right:0,forward:0,back:0,pitchUp:0,pitchDown:0,yawLeft:0,yawRight:0,rollLeft:0,rollRight:0},this._moveVector=new f.Pq0(0,0,0),this._rotationVector=new f.Pq0(0,0,0),this._lastQuaternion=new f.PTz,this._lastPosition=new f.Pq0,this._status=0,this._onKeyDown=ty.bind(this),this._onKeyUp=tv.bind(this),this._onPointerMove=t_.bind(this),this._onPointerDown=tb.bind(this),this._onPointerUp=tE.bind(this),this._onPointerCancel=tx.bind(this),this._onContextMenu=tw.bind(this),null!==e&&this.connect(e)}connect(t){super.connect(t),window.addEventListener("keydown",this._onKeyDown),window.addEventListener("keyup",this._onKeyUp),this.domElement.addEventListener("pointermove",this._onPointerMove),this.domElement.addEventListener("pointerdown",this._onPointerDown),this.domElement.addEventListener("pointerup",this._onPointerUp),this.domElement.addEventListener("pointercancel",this._onPointerCancel),this.domElement.addEventListener("contextmenu",this._onContextMenu)}disconnect(){window.removeEventListener("keydown",this._onKeyDown),window.removeEventListener("keyup",this._onKeyUp),this.domElement.removeEventListener("pointermove",this._onPointerMove),this.domElement.removeEventListener("pointerdown",this._onPointerDown),this.domElement.removeEventListener("pointerup",this._onPointerUp),this.domElement.removeEventListener("pointercancel",this._onPointerCancel),this.domElement.removeEventListener("contextmenu",this._onContextMenu)}dispose(){this.disconnect()}update(t){if(!1===this.enabled)return;let e=this.object,n=t*this.movementSpeed,r=t*this.rollSpeed;e.translateX(this._moveVector.x*n),e.translateY(this._moveVector.y*n),e.translateZ(this._moveVector.z*n),tm.set(this._rotationVector.x*r,this._rotationVector.y*r,this._rotationVector.z*r,1).normalize(),e.quaternion.multiply(tm),(this._lastPosition.distanceToSquared(e.position)>1e-6||8*(1-this._lastQuaternion.dot(e.quaternion))>1e-6)&&(this.dispatchEvent(td),this._lastQuaternion.copy(e.quaternion),this._lastPosition.copy(e.position))}_updateMovementVector(){let t=this._moveState.forward||this.autoForward&&!this._moveState.back?1:0;this._moveVector.x=-this._moveState.left+this._moveState.right,this._moveVector.y=-this._moveState.down+this._moveState.up,this._moveVector.z=-t+this._moveState.back}_updateRotationVector(){this._rotationVector.x=-this._moveState.pitchDown+this._moveState.pitchUp,this._rotationVector.y=-this._moveState.yawRight+this._moveState.yawLeft,this._rotationVector.z=-this._moveState.rollRight+this._moveState.rollLeft}_getContainerDimensions(){return this.domElement!=document?{size:[this.domElement.offsetWidth,this.domElement.offsetHeight],offset:[this.domElement.offsetLeft,this.domElement.offsetTop]}:{size:[window.innerWidth,window.innerHeight],offset:[0,0]}}}function ty(t){if(!t.altKey&&!1!==this.enabled){switch(t.code){case"ShiftLeft":case"ShiftRight":this.movementSpeedMultiplier=.1;break;case"KeyW":this._moveState.forward=1;break;case"KeyS":this._moveState.back=1;break;case"KeyA":this._moveState.left=1;break;case"KeyD":this._moveState.right=1;break;case"KeyR":this._moveState.up=1;break;case"KeyF":this._moveState.down=1;break;case"ArrowUp":this._moveState.pitchUp=1;break;case"ArrowDown":this._moveState.pitchDown=1;break;case"ArrowLeft":this._moveState.yawLeft=1;break;case"ArrowRight":this._moveState.yawRight=1;break;case"KeyQ":this._moveState.rollLeft=1;break;case"KeyE":this._moveState.rollRight=1}this._updateMovementVector(),this._updateRotationVector()}}function tv(t){if(!1!==this.enabled){switch(t.code){case"ShiftLeft":case"ShiftRight":this.movementSpeedMultiplier=1;break;case"KeyW":this._moveState.forward=0;break;case"KeyS":this._moveState.back=0;break;case"KeyA":this._moveState.left=0;break;case"KeyD":this._moveState.right=0;break;case"KeyR":this._moveState.up=0;break;case"KeyF":this._moveState.down=0;break;case"ArrowUp":this._moveState.pitchUp=0;break;case"ArrowDown":this._moveState.pitchDown=0;break;case"ArrowLeft":this._moveState.yawLeft=0;break;case"ArrowRight":this._moveState.yawRight=0;break;case"KeyQ":this._moveState.rollLeft=0;break;case"KeyE":this._moveState.rollRight=0}this._updateMovementVector(),this._updateRotationVector()}}function tb(t){if(!1!==this.enabled)if(this.dragToLook)this._status++;else{switch(t.button){case 0:this._moveState.forward=1;break;case 2:this._moveState.back=1}this._updateMovementVector()}}function t_(t){if(!1!==this.enabled&&(!this.dragToLook||this._status>0)){let e=this._getContainerDimensions(),n=e.size[0]/2,r=e.size[1]/2;this._moveState.yawLeft=-(t.pageX-e.offset[0]-n)/n,this._moveState.pitchDown=(t.pageY-e.offset[1]-r)/r,this._updateRotationVector()}}function tE(t){if(!1!==this.enabled){if(this.dragToLook)this._status--,this._moveState.yawLeft=this._moveState.pitchDown=0;else{switch(t.button){case 0:this._moveState.forward=0;break;case 2:this._moveState.back=0}this._updateMovementVector()}this._updateRotationVector()}}function tx(){!1!==this.enabled&&(this.dragToLook?(this._status=0,this._moveState.yawLeft=this._moveState.pitchDown=0):(this._moveState.forward=0,this._moveState.back=0,this._updateMovementVector()),this._updateRotationVector())}function tw(t){!1!==this.enabled&&t.preventDefault()}let tS={name:"CopyShader",uniforms:{tDiffuse:{value:null},opacity:{value:1}},vertexShader:`
371
372		varying vec2 vUv;
373
374		void main() {
375
376			vUv = uv;
377			gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );
378
379		}`,fragmentShader:`
380
381		uniform float opacity;
382
383		uniform sampler2D tDiffuse;
384
385		varying vec2 vUv;
386
387		void main() {
388
389			vec4 texel = texture2D( tDiffuse, vUv );
390			gl_FragColor = opacity * texel;
391
392
393		}`};class tP{constructor(){this.isPass=!0,this.enabled=!0,this.needsSwap=!0,this.clear=!1,this.renderToScreen=!1}setSize(){}render(){console.error("THREE.Pass: .render() must be implemented in derived pass.")}dispose(){}}let tM=new f.qUd(-1,1,1,-1,0,1);class tA extends f.LoY{constructor(){super(),this.setAttribute("position",new f.qtW([-1,3,0,-1,-1,0,3,-1,0],3)),this.setAttribute("uv",new f.qtW([0,2,0,0,2,0],2))}}let tT=new tA;class tO{constructor(t){this._mesh=new f.eaF(tT,t)}dispose(){this._mesh.geometry.dispose()}render(t){t.render(this._mesh,tM)}get material(){return this._mesh.material}set material(t){this._mesh.material=t}}class tk extends tP{constructor(t,e="tDiffuse"){super(),this.textureID=e,this.uniforms=null,this.material=null,t instanceof f.BKk?(this.uniforms=t.uniforms,this.material=t):t&&(this.uniforms=f.LlO.clone(t.uniforms),this.material=new f.BKk({name:void 0!==t.name?t.name:"unspecified",defines:Object.assign({},t.defines),uniforms:this.uniforms,vertexShader:t.vertexShader,fragmentShader:t.fragmentShader})),this._fsQuad=new tO(this.material)}render(t,e,n){this.uniforms[this.textureID]&&(this.uniforms[this.textureID].value=n.texture),this._fsQuad.material=this.material,this.renderToScreen?t.setRenderTarget(null):(t.setRenderTarget(e),this.clear&&t.clear(t.autoClearColor,t.autoClearDepth,t.autoClearStencil)),this._fsQuad.render(t)}dispose(){this.material.dispose(),this._fsQuad.dispose()}}class tC extends tP{constructor(t,e){super(),this.scene=t,this.camera=e,this.clear=!0,this.needsSwap=!1,this.inverse=!1}render(t,e,n){let r,i,o=t.getContext(),a=t.state;a.buffers.color.setMask(!1),a.buffers.depth.setMask(!1),a.buffers.color.setLocked(!0),a.buffers.depth.setLocked(!0),this.inverse?(r=0,i=1):(r=1,i=0),a.buffers.stencil.setTest(!0),a.buffers.stencil.setOp(o.REPLACE,o.REPLACE,o.REPLACE),a.buffers.stencil.setFunc(o.ALWAYS,r,0xffffffff),a.buffers.stencil.setClear(i),a.buffers.stencil.setLocked(!0),t.setRenderTarget(n),this.clear&&t.clear(),t.render(this.scene,this.camera),t.setRenderTarget(e),this.clear&&t.clear(),t.render(this.scene,this.camera),a.buffers.color.setLocked(!1),a.buffers.depth.setLocked(!1),a.buffers.color.setMask(!0),a.buffers.depth.setMask(!0),a.buffers.stencil.setLocked(!1),a.buffers.stencil.setFunc(o.EQUAL,1,0xffffffff),a.buffers.stencil.setOp(o.KEEP,o.KEEP,o.KEEP),a.buffers.stencil.setLocked(!0)}}class tj extends tP{constructor(){super(),this.needsSwap=!1}render(t){t.state.buffers.stencil.setLocked(!1),t.state.buffers.stencil.setTest(!1)}}class tR{constructor(t,e){if(this.renderer=t,this._pixelRatio=t.getPixelRatio(),void 0===e){let n=t.getSize(new f.I9Y);this._width=n.width,this._height=n.height,(e=new f.nWS(this._width*this._pixelRatio,this._height*this._pixelRatio,{type:f.ix0})).texture.name="EffectComposer.rt1"}else this._width=e.width,this._height=e.height;this.renderTarget1=e,this.renderTarget2=e.clone(),this.renderTarget2.texture.name="EffectComposer.rt2",this.writeBuffer=this.renderTarget1,this.readBuffer=this.renderTarget2,this.renderToScreen=!0,this.passes=[],this.copyPass=new tk(tS),this.copyPass.material.blending=f.XIg,this.clock=new f.zD7}swapBuffers(){let t=this.readBuffer;this.readBuffer=this.writeBuffer,this.writeBuffer=t}addPass(t){this.passes.push(t),t.setSize(this._width*this._pixelRatio,this._height*this._pixelRatio)}insertPass(t,e){this.passes.splice(e,0,t),t.setSize(this._width*this._pixelRatio,this._height*this._pixelRatio)}removePass(t){let e=this.passes.indexOf(t);-1!==e&&this.passes.splice(e,1)}isLastEnabledPass(t){for(let e=t+1;e<this.passes.length;e++)if(this.passes[e].enabled)return!1;return!0}render(t){void 0===t&&(t=this.clock.getDelta());let e=this.renderer.getRenderTarget(),n=!1;for(let e=0,r=this.passes.length;e<r;e++){let r=this.passes[e];if(!1!==r.enabled){if(r.renderToScreen=this.renderToScreen&&this.isLastEnabledPass(e),r.render(this.renderer,this.writeBuffer,this.readBuffer,t,n),r.needsSwap){if(n){let e=this.renderer.getContext(),n=this.renderer.state.buffers.stencil;n.setFunc(e.NOTEQUAL,1,0xffffffff),this.copyPass.render(this.renderer,this.writeBuffer,this.readBuffer,t),n.setFunc(e.EQUAL,1,0xffffffff)}this.swapBuffers()}void 0!==tC&&(r instanceof tC?n=!0:r instanceof tj&&(n=!1))}}this.renderer.setRenderTarget(e)}reset(t){if(void 0===t){let e=this.renderer.getSize(new f.I9Y);this._pixelRatio=this.renderer.getPixelRatio(),this._width=e.width,this._height=e.height,(t=this.renderTarget1.clone()).setSize(this._width*this._pixelRatio,this._height*this._pixelRatio)}this.renderTarget1.dispose(),this.renderTarget2.dispose(),this.renderTarget1=t,this.renderTarget2=t.clone(),this.writeBuffer=this.renderTarget1,this.readBuffer=this.renderTarget2}setSize(t,e){this._width=t,this._height=e;let n=this._width*this._pixelRatio,r=this._height*this._pixelRatio;this.renderTarget1.setSize(n,r),this.renderTarget2.setSize(n,r);for(let t=0;t<this.passes.length;t++)this.passes[t].setSize(n,r)}setPixelRatio(t){this._pixelRatio=t,this.setSize(this._width,this._height)}dispose(){this.renderTarget1.dispose(),this.renderTarget2.dispose(),this.copyPass.dispose()}}class tD extends tP{constructor(t,e,n=null,r=null,i=null){super(),this.scene=t,this.camera=e,this.overrideMaterial=n,this.clearColor=r,this.clearAlpha=i,this.clear=!0,this.clearDepth=!1,this.needsSwap=!1,this.isRenderPass=!0,this._oldClearColor=new f.Q1f}render(t,e,n){let r,i,o=t.autoClear;t.autoClear=!1,null!==this.overrideMaterial&&(i=this.scene.overrideMaterial,this.scene.overrideMaterial=this.overrideMaterial),null!==this.clearColor&&(t.getClearColor(this._oldClearColor),t.setClearColor(this.clearColor,t.getClearAlpha())),null!==this.clearAlpha&&
393(r=t.getClearAlpha(),t.setClearAlpha(this.clearAlpha)),!0==this.clearDepth&&t.clearDepth(),t.setRenderTarget(this.renderToScreen?null:n),!0===this.clear&&t.clear(t.autoClearColor,t.autoClearDepth,t.autoClearStencil),t.render(this.scene,this.camera),null!==this.clearColor&&t.setClearColor(this._oldClearColor),null!==this.clearAlpha&&t.setClearAlpha(r),null!==this.overrideMaterial&&(this.scene.overrideMaterial=i),t.autoClear=o}}function tL(){return(tL=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(null,arguments)}function tI(t,e){return(tI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function tN(t){return(tN=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function tF(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(tF=function(){return!!t})()}function tz(t){var e="function"==typeof Map?new Map:void 0;return(tz=function(t){if(null===t||!function(t){try{return -1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return function(t,e,n){if(tF())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,e);var i=new(t.bind.apply(t,r));return n&&tI(i,n.prototype),i}(t,arguments,tN(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),tI(n,t)})(t)}var tU=function(t){function e(e){var n=t.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+e+" for more information.")||this;if(void 0===n)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return n}return e.prototype=Object.create(t.prototype),e.prototype.constructor=e,tI(e,t),e}(tz(Error));function tB(t,e){return t.substr(-e.length)===e}var tH=/^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/;function tq(t){return"string"!=typeof t?t:t.match(tH)?parseFloat(t):t}var tG=function(t){return function(e,n){void 0===n&&(n="16px");var r=e,i=n;if("string"==typeof e){if(!tB(e,"px"))throw new tU(69,t,e);r=tq(e)}if("string"==typeof n){if(!tB(n,"px"))throw new tU(70,t,n);i=tq(n)}if("string"==typeof r)throw new tU(71,e,t);if("string"==typeof i)throw new tU(72,n,t);return""+r/i+t}};function tV(t){return Math.round(255*t)}function tW(t,e,n){return tV(t)+","+tV(e)+","+tV(n)}function tY(t,e,n,r){if(void 0===r&&(r=tW),0===e)return r(n,n,n);var i=(t%360+360)%360/60,o=(1-Math.abs(2*n-1))*e,a=o*(1-Math.abs(i%2-1)),s=0,u=0,l=0;i>=0&&i<1?(s=o,u=a):i>=1&&i<2?(s=a,u=o):i>=2&&i<3?(u=o,l=a):i>=3&&i<4?(u=a,l=o):i>=4&&i<5?(s=a,l=o):i>=5&&i<6&&(s=o,l=a);var c=n-o/2;return r(s+c,u+c,l+c)}tG("em"),tG("rem");var tZ={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",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:"ff00ff",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:"90ee9
3930",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:"639",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"},t$=/^#[a-fA-F0-9]{6}$/,tX=/^#[a-fA-F0-9]{8}$/,tK=/^#[a-fA-F0-9]{3}$/,tQ=/^#[a-fA-F0-9]{4}$/,tJ=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,t0=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,t1=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,t2=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function t3(t){if("string"!=typeof t)throw new tU(3);var e=function(t){if("string"!=typeof t)return t;var e=t.toLowerCase();return tZ[e]?"#"+tZ[e]:t}(t);if(e.match(t$))return{red:parseInt(""+e[1]+e[2],16),green:parseInt(""+e[3]+e[4],16),blue:parseInt(""+e[5]+e[6],16)};if(e.match(tX)){var n=parseFloat((parseInt(""+e[7]+e[8],16)/255).toFixed(2));return{red:parseInt(""+e[1]+e[2],16),green:parseInt(""+e[3]+e[4],16),blue:parseInt(""+e[5]+e[6],16),alph
vendor: 1,110 bytes, line 393
393a:n}}if(e.match(tK))return{red:parseInt(""+e[1]+e[1],16),green:parseInt(""+e[2]+e[2],16),blue:parseInt(""+e[3]+e[3],16)};if(e.match(tQ)){var r=parseFloat((parseInt(""+e[4]+e[4],16)/255).toFixed(2));return{red:parseInt(""+e[1]+e[1],16),green:parseInt(""+e[2]+e[2],16),blue:parseInt(""+e[3]+e[3],16),alpha:r}}var i=tJ.exec(e);if(i)return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10)};var o=t0.exec(e.substring(0,50));if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10),alpha:parseFloat(""+o[4])>1?parseFloat(""+o[4])/100:parseFloat(""+o[4])};var a=t1.exec(e);if(a){var s="rgb("+tY(parseInt(""+a[1],10),parseInt(""+a[2],10)/100,parseInt(""+a[3],10)/100)+")",u=tJ.exec(s);if(!u)throw new tU(4,e,s);return{red:parseInt(""+u[1],10),green:parseInt(""+u[2],10),blue:parseInt(""+u[3],10)}}var l=t2.exec(e.substring(0,50));if(l){var c="rgb("+tY(parseInt(""+l[1],10),parseInt(""+l[2],10)/100,parseInt(""+l[3],10)/100)+")",h=tJ.exec(c);if(!h)throw new tU(4,e,c);return{red:parseInt(""+h[1],10),green:parseInt(""+h[2],10),blue:parseInt(""+h[3],10),alph
393a:parseFloat(""+l[4])>1?parseFloat(""+l[4])/100:parseFloat(""+l[4])}}throw new tU(5)}function t5(t){return function(t){var e,n=t.red/255,r=t.green/255,i=t.blue/255,o=Math.max(n,r,i),a=Math.min(n,r,i),s=(o+a)/2;if(o===a)if(void 0!==t.alpha)return{hue:0,saturation:0,lightness:s,alpha:t.alpha};else return{hue:0,saturation:0,lightness:s};var u=o-a,l=s>.5?u/(2-o-a):u/(o+a);switch(o){case n:e=(r-i)/u+6*(r<i);break;case r:e=(i-n)/u+2;break;default:e=(n-r)/u+4}return(e*=60,void 0!==t.alpha)?{hue:e,saturation:l,lightness:s,alpha:t.alpha}:{hue:e,saturation:l,lightness:s}}(t3(t))}var t8=function(t){return 7===t.length&&t[1]===t[2]&&t[3]===t[4]&&t[5]===t[6]?"#"+t[1]+t[3]+t[5]:t};function t4(t){var e=t.toString(16);return 1===e.length?"0"+e:e}function t6(t){return t4(Math.round(255*t))}function t9(t,e,n){return t8("#"+t6(t)+t6(e)+t6(n))}function t7(t,e,n){if("number"==typeof t&&"number"==typeof e&&"number"==typeof n)return t8("#"+t4(t)+t4(e)+t4(n));if("object"==typeof t&&void 0===e&&void 0===n)return t8("#"+t4(t.red)+t4(t.green)+t4(t.blue));throw new tU(6)}function et(t,e,n,r){if("string"==typeof t&&"number"==typeof e){var i=t3(t);return"rgba("+i.red+","+i.green+","+i.blue+","+e+")"}if("number"==typeof t&&"number"==typeof e&&"number"==typeof n&&"number"==typeof r)return r>=1?t7(t,e,n):"rgba("+t+","+e+","+n+","+r+")";if("object"==typeof t&&void 0===e&&void 0===n&&void 0===r)return t.alpha>=1?t7(t.red,t.green,t.blue):"rgba("+t.red+","+t.green+","+t.blue+","+t.alpha+")";throw new tU(7)}function ee(t){if("object"!=typeof t)throw new tU(8);if("number"==typeof t.red&&"number"==typeof t.green&&"number"==typeof t.blue&&"number"==typeof t.alpha)return et(t);if("number"==typeof t.red&&"number"==typeof t.green&&"number"==typeof t.blue&&("number"!=typeof t.alpha||void 0===t.alpha))return t7(t);if("number"==typeof t.hue&&"number"==typeof t.saturation&&"number"==typeof t.lightness&&"number"==typeof t.alpha)return function(t,e,n,r){if("object"==typeof t){var i;return t.alpha>=1?(i=t.hue,tY(i,t.saturation,t.lightness,t9)):"rgba("+tY(t.hue,t.saturation,t.lightness)+","+t.alpha+")"}throw new tU(2)}(t);if("number"==typeof t.hue&&"number"==typeof t.saturation&&"number"==typeof t.lightness&&("number"!=typeof t.alpha||void 0===t.alpha))return function(t,e,n){if("object"==typeof t){var r;return r=t.hue,tY(r,t.saturation,t.lightness,t9)}throw new tU(1)}(t);throw new tU(8)}function en(t){return function t(e,n,r){return function(){var i=r.concat(Array.prototype.slice.call(arguments));return i.length>=n?e.apply(this,i):t(e,n,i)}}(t,t.length,[])}function er(t,e,n){return Math.max(t,Math.min(e,n))}en(function(t,e){if("transparent"===e)return e;var n=t5(e);return ee(tL({},n,{hue:n.hue+parseFloat(t)}))}),en(function(t,e){if("transparent"===e)return e;var n=t5(e);return ee(tL({},n,{lightness:er(0,1,n.lightness-parseFloat(t))}))}),en(function(t,e){if("transparent"===e)return e;var n=t5(e);return ee(tL({},n,{saturation:er(0,1,n.saturation-parseFloat(t))}))}),en(function(t,e){if("transparent"===e)return e;var n=t5(e);return ee(tL({},n,{lightness:er(0,1,n.lightness+parseFloat(t))}))});var ei=en(function(t,e,n){if("transparent"===e)return n;if("transparent"===n)return e;if(0===t)return n;var r=t3(e),i=tL({},r,{alpha:"number"==typeof r.alpha?r.alpha:1}),o=t3(n),a=tL({},o,{alpha:"number"==typeof o.alpha?o.alpha:1}),s=i.alpha-a.alpha,u=2*parseFloat(t)-1,l=((u*s==-1?u:u+s)/(1+u*s)+1)/2,c=1-l;return et({red:Math.floor(i.red*l+a.red*c),green:Math.floor(i.green*l+a.green*c),blue:Math.floor(i.blue*l+a.blue*c),alpha:i.alpha*parseFloat(t)+a.alpha*(1-parseFloat(t))})}),eo=en(function(t,e){if("transparent"===e)return e;var n=t3(e),r="number"==typeof n.alpha?n.alpha:1;return et(tL({},n,{alpha:er(0,1,(100*r+100*parseFloat(t))/100)}))});en(function(t,e){if("transparent"===e)return e;var n=t5(e);return ee(tL({},n,{saturation:er(0,1,n.saturation+parseFloat(t))}))}),en(function(t,e){return"transparent"===e?e:ee(tL({},t5(e),{hue:parseFloat(t)}))}),en(function(t,e){return"transparent"===e?e:ee(tL({},t5(e),{lightness:parseFloat(t)}))}),en(function(t,e){return"transparent"===e?e:ee(tL({},t5(e),{saturation:parseFloat(t)}))}),en(function(t,e){return"transparent"===e?e:ei(parseFloat(t),"rgb(0, 0, 0)",e)}),en(function(t,e){return"transparent"===e?e:ei(parseFloat(t),"rgb(255, 255, 255)",e)}),en(function(t,e){if("transparent"===e)return e;
393var n=t3(e),r="number"==typeof n.alpha?n.alpha:1;return et(tL({},n,{alpha:er(0,1,(100*r-100*parseFloat(t)).toFixed(2)/100)}))});var ea=n(24905),es=n(7813),eu=n(11406);function el(){}function ec(t){return null==t?el:function(){return this.querySelector(t)}}function eh(){return[]}function ef(t){return function(e){return e.matches(t)}}var ep=Array.prototype.find;function ed(){return this.firstElementChild}var em=Array.prototype.filter;function eg(){return Array.from(this.children)}function ey(t){return Array(t.length)}function ev(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function eb(t,e,n,r,i,o){for(var a,s=0,u=e.length,l=o.length;s<l;++s)(a=e[s])?(a.__data__=o[s],r[s]=a):n[s]=new ev(t,o[s]);for(;s<u;++s)(a=e[s])&&(i[s]=a)}function e_(t,e,n,r,i,o,a){var s,u,l,c=new Map,h=e.length,f=o.length,p=Array(h);for(s=0;s<h;++s)(u=e[s])&&(p[s]=l=a.call(u,u.__data__,s,e)+"",c.has(l)?i[s]=u:c.set(l,u));for(s=0;s<f;++s)l=a.call(t,o[s],s,o)+"",(u=c.get(l))?(r[s]=u,u.__data__=o[s],c.delete(l)):n[s]=new ev(t,o[s]);for(s=0;s<h;++s)(u=e[s])&&c.get(p[s])===u&&(i[s]=u)}function eE(t){return t.__data__}function ex(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}ev.prototype={constructor:ev,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var ew="http://www.w3.org/1999/xhtml";let eS={svg:"http://www.w3.org/2000/svg",xhtml:ew,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function eP(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),eS.hasOwnProperty(e)?{space:eS[e],local:t}:t}function eM(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function eA(t){return t.trim().split(/^|\s+/)}function eT(t){return t.classList||new eO(t)}function eO(t){this._node=t,this._names=eA(t.getAttribute("class")||"")}function ek(t,e){for(var n=eT(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function eC(t,e){for(var n=eT(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function ej(){this.textContent=""}function eR(){this.innerHTML=""}function eD(){this.nextSibling&&this.parentNode.appendChild(this)}function eL(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function eI(t){var e=eP(t);return(e.local?function(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}:function(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===ew&&e.documentElement.namespaceURI===ew?e.createElement(t):e.createElementNS(n,t)}})(e)}function eN(){return null}function eF(){var t=this.parentNode;t&&t.removeChild(this)}function ez(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function eU(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function eB(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,o=e.length;r<o;++r)(n=e[r],t.type&&n.type!==t.type||n.name!==t.name)?e[++i]=n:this.removeEventListener(n.type,n.listener,n.options);++i?e.length=i:delete this.__on}}}function eH(t,e,n){return function(){var r,i=this.__on,o=function(t){e.call(this,t,this.__data__)};if(i){for(var a=0,s=i.length;a<s;++a)if((r=i[a]).type===t.type&&r.name===t.name){this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=o,r.options=n),r.value=e;return}}this.addEventListener(t.type,o,n),r={type:t.type,name:t.name,value:e,listener:o,options:n},i?i.push(r):this.__on=[r]}}function eq(t,e,n){var r=eM(t),i=r.CustomEvent;"function"==typeof i?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}eO.prototype={add:function(t){0>this._names.indexOf(t)&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var eG=[null];function eV(t,e){this._groups=t,this._parents=e}eV.prototype=(function(){return new eV([[document.documentElement]],eG)}).prototype={constructor:eV,select:function(t){"function"!=typeof t&&(t=ec(t));for(var e=this._groups,n=e.length,r=Array(n),i=0;i<n;++i)for(var o,a,s=e[i],u=s.length,l=r[i]=Array(u),c=0;c<u;++c)(o=s[c])&&(a=t.call(o,o.__data__,c,s))&&("__data__"in o&&(a.__data__=o.__data__),l[c]=a);return new eV(r,this._parents)},selectAll:function(t){"function"==typeof t?(a=t,t=function(){var t;return t=a.apply(this,arguments),null==t?[]:Array.isArray(t)?t:Array.from(t)}):t=null==(s=t)?eh:function(){return this.querySelectorAll(s)};for(var e=this._groups,n=e.length,r=[],i=[],o=0;o<n;++o)for(var a,s,u,l=e[o],c=l.length,h=0;h<c;++h)(u=l[h])&&(r.push(t.call(u,u.__data__,h,l)),i.push(u));return new eV(r,i)},selectChild:function(t){var e;return this.select(null==t?ed:(e="function"==typeof t?t:ef(t),function(){return ep.call(this.children,e)}))},selectChildren:function(t){var e;return this.selectAll(null==t?eg:(e="function"==typeof t?t:ef(t),function(){return em.call(this.children,e)}))},filter:function(t){var e;"function"!=typeof t&&(e=t,t=function(){return this.matches(e)});for(var n=this._groups,r=n.length,i=Array(r),o=0;o<r;++o)for(var a,s=n[o],u=s.length,l=i[o]=[],c=0;c<u;++c)(a=s[c])&&t.call(a,a.__data__,c,s)&&l.push(a);return new eV(i,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,eE);var n=e?e_:eb,r=this._parents,i=this._groups;"function"!=typeof t&&(v=t,t=function(){return v});for(var o=i.length,a=Array(o),s=Array(o),u=Array(o),l=0;l<o;++l){var c=r[l],h=i[l],f=h.length,p="object"==typeof(y=t.call(c,c&&c.__data__,l,r))&&"length"in y?y:Array.from(y),d=p.length,m=s[l]=Array(d),g=a[l]=Array(d);n(c,h,m,g,u[l]=Array(f),p,e);for(var y,v,b,_,E=0,x=0;E<d;++E)if(b=m[E]){for(E>=x&&(x=E+1);!(_=g[x])&&++x<d;);b._next=_||null}}return(a=new eV(a,r))._enter=s,a._exit=u,a},enter:function(){return new eV(this._enter||this._groups.map(ey),this._parents)},exit:function(){return new eV(this._exit||this._groups.map(ey),this._parents)},join:function(t,e,n){var r=this.enter(),i=this,o=this.exit();return"function"==typeof t?(r=t(r))&&(r=r.selection()):r=r.append(t+""),null!=e&&(i=e(i))&&(i=i.selection()),null==n?o.remove():n(o),r&&i?r.merge(i).order():i},merge:function(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,i=n.length,o=r.length,a=Math.min(i,o),s=Array(i),u=0;u<a;++u)for(var l,c=n[u],h=r[u],f=c.length,p=s[u]=Array(f),d=0;d<f;++d)(l=c[d]||h[d])&&(p[d]=l);for(;u<i;++u)s[u]=n[u];return new eV(s,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,i=t[e],o=i.length-1,a=i[o];--o>=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=ex);for(var n=this._groups,r=n.length,i=Array(r),o=0;o<r;++o){for(var a,s=n[o],u=s.length,l=i[o]=Array(u),c=0;c<u;++c)(a=s[c])&&(l[c]=a);l.sort(e)}return new eV(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null},size:function(){let t=0;for(let e of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i,o=e[n],a=0,s=o.length;a<s;++a)(i=o[a])&&t.call(i,i.__data__,a,o);return this},attr:function(t,e){var n=eP(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==e?n.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}}:"function"==typeof e?n.local?function(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}:function(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}:n.local?function(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}:function(t,e){return function(){this.setAttribute(t,e)}})(n,e))},style:function(t,e,n){var r,i;return arguments.length>1?this.each((null==e?function(t){return function(){this.style.removeProperty(t)}}:"function"==typeof e?function(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}:function(t,e,n){return function(){this.style.setProperty(t,e,n)}})(t,e,null==n?"":n)):(r=this.node(),i=t,r.style.getPropertyValue(i)||eM(r).getComputedStyle(r,null).getPropertyValue(i))},property:function(t,e){return arguments.length>1?this.each((null==e?function(t){return function(){delete this[t]}}:"function"==typeof e?function(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}:function(t,e){return function(){this[t]=e}})(t,e)):this.node()[t]},classed:function(t,e){var n=eA(t+"");
393if(arguments.length<2){for(var r=eT(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof e?function(t,e){return function(){(e.apply(this,arguments)?ek:eC)(this,t)}}:e?function(t){return function(){ek(this,t)}}:function(t){return function(){eC(this,t)}})(n,e))},text:function(t){return arguments.length?this.each(null==t?ej:("function"==typeof t?function(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}:function(t){return function(){this.textContent=t}})(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?eR:("function"==typeof t?function(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}:function(t){return function(){this.innerHTML=t}})(t)):this.node().innerHTML},raise:function(){return this.each(eD)},lower:function(){return this.each(eL)},append:function(t){var e="function"==typeof t?t:eI(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function(t,e){var n="function"==typeof t?t:eI(t),r=null==e?eN:"function"==typeof e?e:ec(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})},remove:function(){return this.each(eF)},clone:function(t){return this.select(t?eU:ez)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var r,i,o=(t+"").trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}),a=o.length;if(arguments.length<2){var s=this.node().__on;if(s){for(var u,l=0,c=s.length;l<c;++l)for(r=0,u=s[l];r<a;++r)if((i=o[r]).type===u.type&&i.name===u.name)return u.value}return}for(r=0,s=e?eH:eB;r<a;++r)this.each(s(o[r],e,n));return this},dispatch:function(t,e){return this.each(("function"==typeof e?function(t,e){return function(){return eq(this,t,e.apply(this,arguments))}}:function(t,e){return function(){return eq(this,t,e)}})(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r,i=t[e],o=0,a=i.length;o<a;++o)(r=i[o])&&(yield r)}};var eW,eY,eZ,e$,eX,eK,eQ,eJ,e0,e1,e2,e3={},e5=[],e8=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,e4=Array.isArray;function e6(t,e){for(var n in e)t[n]=e[n];return t}function e9(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function e7(t,e,n,r,i){var o={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==i?++eZ:i,__i:-1,__u:0};return null==i&&null!=eY.vnode&&eY.vnode(o),o}function nt(t){return t.children}function ne(t,e){this.props=t,this.context=e}function nn(t,e){if(null==e)return t.__?nn(t.__,t.__i+1):null;for(var n;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e)return n.__e;return"function"==typeof t.type?nn(t):null}function nr(t){(!t.__d&&(t.__d=!0)&&e$.push(t)&&!ni.__r++||eX!=eY.debounceRendering)&&((eX=eY.debounceRendering)||eK)(ni)}function ni(){for(var t,e,n,r,i,o,a=1;e$.length;)e$.length>a&&e$.sort(eQ),t=e$.shift(),a=e$.length,t.__d&&(e=void 0,r=(n=t.__v).__e,i=[],o=[],t.__P&&((e=e6({},n)).__v=n.__v+1,eY.vnode&&eY.vnode(e),nl(t.__P,e,n,t.__n,t.__P.namespaceURI,32&n.__u?[r]:null,i,null==r?nn(n):r,!!(32&n.__u),o),e.__v=n.__v,e.__.__k[e.__i]=e,nc(i,e,o),e.__e!=r&&function t(e){var n,r;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,n=0;n<e.__k.length;n++)if(null!=(r=e.__k[n])&&null!=r.__e){e.__e=e.__c.base=r.__e;break}return t(e)}}(e)));ni.__r=0}function no(t,e,n,r,i,o,a,s,u,l,c){var h,f,p,d,m,g,y=r&&r.__k||e5,v=e.length;for(u=function(t,e,n,r,i){var o,a,s,u,l,c=n.length,h=c,f=0;for(t.__k=Array(i),o=0;o<i;o++)null!=(a=e[o])&&"boolean"!=typeof a&&"function"!=typeof a?(u=o+f,(a=t.__k[o]="string"==typeof a||"number"==typeof a||"bigint"==typeof a||a.constructor==String?e7(null,a,null,null,null):e4(a)?e7(nt,{children:a},null,null,null):null==a.constructor&&a.__b>0?e7(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a).__=t,a.__b=t.__b+1,s=null,-1!=(l=a.__i=function(t,e,n,r){var i,o,a=t.key,s=t.type,u=e[n];if(null===u&&null==t.key||u&&a==u.key&&s==u.type&&0==(2&u.__u))return n;if(r>+(null!=u&&0==(2&u.__u)))for(i=n-1,o=n+1;i>=0||o<e.length;){if(i>=0){if((u=e[i])&&0==(2&u.__u)&&a==u.key&&s==u.type)return i;i--}if(o<e.length){if((u=e[o])&&0==(2&u.__u)&&a==u.key&&s==u.type)return o;o++}}return -1}(a,n,u,h))&&(h--,(s=n[l])&&(s.__u|=2)),null==s||null==s.__v?(-1==l&&(i>c?f--:i<c&&f++),"function"!=typeof a.type&&(a.__u|=4)):l!=u&&(l==u-1?f--:l==u+1?f++:(l>u?f--:f++,a.__u|=4))):t.__k[o]=null;if(h)for(o=0;o<c;o++)null!=(s=n[o])&&0==(2&s.__u)&&(s.__e==r&&(r=nn(s)),function t(e,n,r){var i,o;if(eY.unmount&&eY.unmount(e),(i=e.ref)&&(i.current&&i.current!=e.__e||nh(i,null,n)),null!=(i=e.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(t){eY.__e(t,n)}i.base=i.__P=null}if(i=e.__k)for(o=0;o<i.length;o++)i[o]&&t(i[o],n,r||"function"!=typeof e.type);r||e9(e.__e),e.__c=e.__=e.__e=void 0}(s,s));return r}(n,e,y,u,v),h=0;h<v;
vendor: 5,091 bytes, line 393
393h++)null!=(p=n.__k[h])&&(f=-1==p.__i?e3:y[p.__i]||e3,p.__i=h,g=nl(t,p,f,i,o,a,s,u,l,c),d=p.__e,p.ref&&f.ref!=p.ref&&(f.ref&&nh(f.ref,null,p),c.push(p.ref,p.__c||d,p)),null==m&&null!=d&&(m=d),4&p.__u||f.__k===p.__k?u=function t(e,n,r){var i,o;if("function"==typeof e.type){for(i=e.__k,o=0;i&&o<i.length;o++)i[o]&&(i[o].__=e,n=t(i[o],n,r));return n}e.__e!=n&&(n&&e.type&&!r.contains(n)&&(n=nn(e)),r.insertBefore(e.__e,n||null),n=e.__e);do n=n&&n.nextSibling;while(null!=n&&8==n.nodeType);return n}(p,u,t):"function"==typeof p.type&&void 0!==g?u=g:d&&(u=d.nextSibling),p.__u&=-7);return n.__e=m,u}function na(t,e,n){"-"==e[0]?t.setProperty(e,null==n?"":n):t[e]=null==n?"":"number"!=typeof n||e8.test(e)?n:n+"px"}function ns(t,e,n,r,i){var o,a;e:if("style"==e)if("string"==typeof n)t.style.cssText=n;else{if("string"==typeof r&&(t.style.cssText=r=""),r)for(e in r)n&&e in n||na(t.style,e,"");if(n)for(e in n)r&&n[e]==r[e]||na(t.style,e,n[e])}else if("o"==e[0]&&"n"==e[1])o=e!=(e=e.replace(eJ,"$1")),e=(a=e.toLowerCase())in t||"onFocusOut"==e||"onFocusIn"==e?a.slice(2):e.slice(2),t.l||(t.l={}),t.l[e+o]=n,n?r?n.u=r.u:(n.u=e0,t.addEventListener(e,o?e2:e1,o)):t.removeEventListener(e,o?e2:e1,o);else{if("http://www.w3.org/2000/svg"==i)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=e&&"height"!=e&&"href"!=e&&"list"!=e&&"form"!=e&&"tabIndex"!=e&&"download"!=e&&"rowSpan"!=e&&"colSpan"!=e&&"role"!=e&&"popover"!=e&&e in t)try{t[e]=null==n?"":n;break e}catch(t){}"function"==typeof n||(null==n||!1===n&&"-"!=e[4]?t.removeAttribute(e):t.setAttribute(e,"popover"==e&&1==n?"":n))}}function nu(t){return function(e){if(this.l){var n=this.l[e.type+t];if(null==e.t)e.t=e0++;else if(e.t<n.u)return;return n(eY.event?eY.event(e):e)}}}function nl(t,e,n,r,i,o,a,s,u,l){var c,h,f,p,d,m,g,y,v,b,_,E,x,w,S,P,M,A=e.type;if(null!=e.constructor)return null;128&n.__u&&(u=!!(32&n.__u),o=[s=e.__e=n.__e]),(c=eY.__b)&&c(e);e:if("function"==typeof A)try{if(y=e.props,v="prototype"in A&&A.prototype.render,b=(c=A.contextType)&&r[c.__c],_=c?b?b.props.value:c.__:r,n.__c?g=(h=e.__c=n.__c).__=h.__E:(v?e.__c=h=new A(y,_):(e.__c=h=new ne(y,_),h.constructor=A,h.render=nf),b&&b.sub(h),h.props=y,h.state||(h.state={}),h.context=_,h.__n=r,f=h.__d=!0,h.__h=[],h._sb=[]),v&&null==h.__s&&(h.__s=h.state),v&&null!=A.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=e6({},h.__s)),e6(h.__s,A.getDerivedStateFromProps(y,h.__s))),p=h.props,d=h.state,h.__v=e,f)v&&null==A.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),v&&null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(v&&null==A.getDerivedStateFromProps&&y!==p&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(y,_),!h.__e&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(y,h.__s,_)||e.__v==n.__v){for(e.__v!=n.__v&&(h.props=y,h.state=h.__s,h.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.some(function(t){t&&(t.__=e)}),E=0;E<h._sb.length;E++)h.__h.push(h._sb[E]);h._sb=[],h.__h.length&&a.push(h);break e}null!=h.componentWillUpdate&&h.componentWillUpdate(y,h.__s,_),v&&null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(p,d,m)})}if(h.context=_,h.props=y,h.__P=t,h.__e=!1,x=eY.__r,w=0,v){for(h.state=h.__s,h.__d=!1,x&&x(e),c=h.render(h.props,h.state,h.context),S=0;S<h._sb.length;S++)h.__h.push(h._sb[S]);h._sb=[]}else do h.__d=!1,x&&x(e),c=h.render(h.props,h.state,h.context),h.state=h.__s;while(h.__d&&++w<25);h.state=h.__s,null!=h.getChildContext&&(r=e6(e6({},r),h.getChildContext())),v&&!f&&null!=h.getSnapshotBeforeUpdate&&(m=h.getSnapshotBeforeUpdate(p,d)),P=c,null!=c&&c.type===nt&&null==c.key&&(P=function t(e){return"object"!=typeof e||null==e||e.__b&&e.__b>0?e:e4(e)?e.map(t):e6({},e)}(c.props.children)),s=no(t,e4(P)?P:[P],e,n,r,i,o,a,s,u,l),h.base=e.__e,e.__u&=-161,h.__h.length&&a.push(h),g&&(h.__E=h.__=null)}catch(t){if(e.__v=null,u||null!=o)if(t.then){for(e.__u|=u?160:128;s&&8==s.nodeType&&s.nextSibling;)s=s.nextSibling;o[o.indexOf(s)]=null,e.__e=s}else for(M=o.length;M--;)e9(o[M]);else e.__e=n.__e,e.__k=n.__k;eY.__e(t,e,n)}else null==o&&e.__v==n.__v?(e.__k=n.__k,e.__e=n.__e):s=e.__e=function(t,e,n,r,i,o,a,s,u){var l,c,h,f,p,d,m,g=n.props,y=e.props,v=e.type;if("svg"==v?i="http://www.w3.org/2000/svg":"math"==v?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),null!=o){for(l=0;l<o.length;l++)if((p=o[l])&&"setAttribute"in p==!!v&&(v?p.localName==v:3==p.nodeType)){t=p,o[l]=null;break}}if(null==t){if(null==v)return document.createTextNode(y);t=document.createElementNS(i,v,y.is&&y),s&&(eY.__m&&eY.__m(e,o),s=!1),o=null}if(null==v)g===y||s&&t.data==y||(t.data=y);else{if(o=o&&eW.call(t.childNodes),g=n.props||e3,!s&&null!=o)for(g={},l=0;l<t.attributes.length;l++)g[(p=t.attributes[l]).name]=p.value;for(l in g)if(p=g[l],"children"==l);else if("dangerouslySetInnerHTML"==l)h=p;else if(!(l in y)){if("value"==l&&"defaultValue"in y||"checked"==l&&"defaultChecked"in y)continue;ns(t,l,null,p,i)}for(l in y)p=y[l],"children"==l?f=p:"dangerouslySetInnerHTML"==l?c=p:"value"==l?d=p:"checked"==l?m=p:s&&"function"!=typeof p||g[l]===
vendor: 2,536 bytes, line 393
393p||ns(t,l,p,g[l],i);if(c)s||h&&(c.__html==h.__html||c.__html==t.innerHTML)||(t.innerHTML=c.__html),e.__k=[];else if(h&&(t.innerHTML=""),no("template"==e.type?t.content:t,e4(f)?f:[f],e,n,r,"foreignObject"==v?"http://www.w3.org/1999/xhtml":i,o,a,o?o[0]:n.__k&&nn(n,0),s,u),null!=o)for(l=o.length;l--;)e9(o[l]);s||(l="value","progress"==v&&null==d?t.removeAttribute("value"):null==d||d===t[l]&&("progress"!=v||d)&&("option"!=v||d==g[l])||ns(t,l,d,g[l],i),l="checked",null!=m&&m!=t[l]&&ns(t,l,m,g[l],i))}return t}(n.__e,e,n,r,i,o,a,u,l);return(c=eY.diffed)&&c(e),128&e.__u?void 0:s}function nc(t,e,n){for(var r=0;r<n.length;r++)nh(n[r],n[++r],n[++r]);eY.__c&&eY.__c(e,t),t.some(function(e){try{t=e.__h,e.__h=[],t.some(function(t){t.call(e)})}catch(t){eY.__e(t,e.__v)}})}function nh(t,e,n){try{if("function"==typeof t){var r="function"==typeof t.__u;r&&t.__u(),r&&null==e||(t.__u=t(e))}else t.current=e}catch(t){eY.__e(t,n)}}function nf(t,e,n){return this.constructor(t,n)}function np(t,e,n){var r,i,o,a,s=e6({},t.props);for(o in t.type&&t.type.defaultProps&&(a=t.type.defaultProps),e)"key"==o?r=e[o]:"ref"==o?i=e[o]:s[o]=void 0===e[o]&&null!=a?a[o]:e[o];return arguments.length>2&&(s.children=arguments.length>3?eW.call(arguments,2):n),e7(t.type,s,r||t.key,i||t.ref,null)}function nd(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function nm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function ng(t){return(ng="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}eW=e5.slice,eY={__e:function(t,e,n,r){for(var i,o,a;e=e.__;)if((i=e.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(t)),a=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(t,r||{}),a=i.__d),a)return i.__E=i}catch(e){t=e}throw t}},eZ=0,ne.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=e6({},this.state),"function"==typeof t&&(t=t(e6({},n),this.props)),t&&e6(n,t),null!=t&&this.__v&&(e&&this._sb.push(e),nr(this))},ne.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),nr(this))},ne.prototype.render=nt,e$=[],eK="function"==typeof Promise?Promise.prototype.then.bind(Prom
393ise.resolve()):setTimeout,eQ=function(t,e){return t.__v.__b-e.__v.__b},ni.__r=0,eJ=/(PointerCapture)$|Capture$/i,e0=0,e1=nu(!1),e2=nu(!0);var ny=function(t){if("object"!==ng(t))return t;var e,n=np(t);return n.props&&(n.props=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?nm(Object(n),!0).forEach(function(e){var r,i;r=e,i=n[e],(r=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e);if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(r))in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):nm(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({},n.props),null!=n&&null!=(e=n.props)&&e.children&&(n.props.children=Array.isArray(n.props.children)?n.props.children.map(ny):ny(n.props.children))),n},nv=function(t){var e;return null!=(e=np(t))&&null==e.constructor},nb=function(t,e){var n,r,i,o,a,s;delete e.__k,n=ny(t),(r=e)==document&&(r=document.documentElement),eY.__&&eY.__(n,r),o=i&&i.__k||r.__k,a=[],s=[],nl(r,n=(i||r).__k=function(t,e,n){var r,i,o,a={};for(o in e)"key"==o?r=e[o]:"ref"==o?i=e[o]:a[o]=e[o];if(arguments.length>2&&(a.children=arguments.length>3?eW.call(arguments,2):n),"function"==typeof t&&null!=t.defaultProps)for(o in t.defaultProps)void 0===a[o]&&(a[o]=t.defaultProps[o]);return e7(t,a,r,i,null)}(nt,null,[n]),o||e3,e3,r.namespaceURI,i?[i]:o?null:r.firstChild?eW.call(r.childNodes):null,a,i?i:o?o.__e:r.firstChild,!1,s),nc(a,n,s)};!function(t,e){void 0===e&&(e={});var n=e.insertAt;if("undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=t:i.appendChild(document.createTextNode(t))}}(".float-tooltip-kap {\n  position: absolute;\n  width: max-content; /* prevent shrinking near right edge */\n  max-width: max(50%, 150px);\n  padding: 3px 5px;\n  border-radius: 3px;\n  font: 12px sans-serif;\n  color: #eee;\n  background: rgba(0,0,0,0.6);\n  pointer-events: none;\n}\n");var n_=(0,eu.A)({props:{content:{default:!1},offsetX:{triggerUpdate:!1},offsetY:{triggerUpdate:!1}},init:function(t,e){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=r.style,o="string"==typeof(n=t&&"object"===ng(t)&&t.node&&"function"==typeof t.node?t.node():t)?new eV([[document.querySelector(n)]],[document.documentElement]):new eV([[n]],eG);"static"===o.style("position")&&o.style("position","relative"),e.tooltipEl=o.append("div").attr("class","float-tooltip-kap"),Object.entries(void 0===i?{}:i).forEach(function(t){var n=function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,l=!1;try{o=(n=n.call(t)).next,!1;for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(t,2)||function(t,e){if(t){if("string"==typeof t)return nd(t,2);var n=({}).toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?nd(t,e):void 0}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),r=n[0],i=n[1];return e.tooltipEl.style(r,i)}),e.tooltipEl.style("left","-10000px").style("display","none");var a="tooltip-".concat(Math.round(1e12*Math.random()));e.mouseInside=!1,o.on("mousemove.".concat(a),function(t){e.mouseInside=!0;var n=function(t,e){if(t=function(t){let e;for(;e=t.sourceEvent;)t=e;return t}(t),void 0===e&&(e=t.currentTarget),e){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,[(r=r.matrixTransform(e.getScreenCTM().inverse())).x,r.y]}if(e.getBoundingClientRect){var i=e.getBoundingClientRect();return[t.clientX-i.left-e.clientLeft,t.clientY-i.top-e.clientTop]}}return[t.pageX,t.pageY]}(t),r=o.node(),i=r.offsetWidth,a=r.offsetHeight,s=[null===e.offsetX||void 0===e.offsetX?"-".concat(n[0]/i*100,"%"):"number"==typeof e.offsetX?"calc(-50% + ".concat(e.offsetX,"px)"):e.offsetX,null===e.offsetY||void 0===e.offsetY?a>130&&a-n[1]<100?"calc(-100% - 6px)":"21px":"number"==typeof e.offsetY?e.offsetY<0?"calc(-100% - ".concat(Math.abs(e.offsetY),"px)"):"".concat(e.offsetY,"px"):e.offsetY];e.tooltipEl.style("left",n[0]+"px").style("top",n[1]+"px").style("transform","translate(".concat(s.join(","),")")),e.content&&e.tooltipEl.style("display","inline")}),o.on("mouseover.".concat(a),function(){e.mouseInside=!0,e.content&&e.tooltipEl.style("display","inline")}),o.on("mouseout.".concat(a),function(){e.mouseInside=!1,e.tooltipEl.style("display","none")})},update:function(t){t.tooltipEl.style("display",t.content&&t.mouseInside?"inline":"none"),t.content?t.content instanceof HTMLElement?(t.tooltipEl.text(""),t.tooltipEl.append(function(){return t.content})):"string"==typeof t.content?t.tooltipEl.html(t.content):nv(t.content)?(t.tooltipEl.text(""),nb(t.content,t.tooltipEl.node())):(t.tooltipEl.style("display","none"),console.warn("Tooltip content is invali
393d, skipping.",t.content,t.content.toString())):t.tooltipEl.text("")}});function nE(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function nx(t){return function(t){if(Array.isArray(t))return nE(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||nw(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function nw(t,e){if(t){if("string"==typeof t)return nE(t,e);var n=({}).toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?nE(t,e):void 0}}!function(t,e){void 0===e&&(e={});var n=e.insertAt;if("undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=t:i.appendChild(document.createTextNode(t))}}(".scene-nav-info {\n  position: absolute;\n  bottom: 5px;\n  width: 100%;\n  text-align: center;\n  color: slategrey;\n  opacity: 0.7;\n  font-size: 10px;\n  font-family: sans-serif;\n  pointer-events: none;\n  user-select: none;\n}\n\n.scene-container canvas:focus {\n  outline: none;\n}");var nS=window.THREE?window.THREE:{WebGLRenderer:m.JeP,Scene:f.Z58,PerspectiveCamera:f.ubm,Raycaster:f.tBo,SRGBColorSpace:f.er$,TextureLoader:f.Tap,Vector2:f.I9Y,Vector3:f.Pq0,Box3:f.NRn,Color:f.Q1f,Mesh:f.eaF,SphereGeometry:f.Gu$,MeshBasicMaterial:f.V9B,BackSide:f.hsX,Clock:f.zD7},nP=(0,eu.A)({props:{width:{default:window.innerWidth,onChange:function(t,e,n){isNaN(t)&&(e.width=n)}},height:{default:window.innerHeight,onChange:function(t,e,n){isNaN(t)&&(e.height=n)}},viewOffset:{default:[0,0]},backgroundColor:{default:"#000011"},backgroundImageUrl:{},onBackgroundImageLoaded:{},showNavInfo:{default:!0},skyRadius:{default:5e4},objects:{default:[]},lights:{default:[]},enablePointerInteraction:{default:!0,onChange:function(t,e){e.hoverObj=null,e.tooltip&&e.tooltip.content(null)},triggerUpdate:!1},pointerRaycasterThrottleMs:{default:50,triggerUpdate:!1},lineHoverPrecision:{default:1,triggerUpdate:!1},pointsHoverPrecision:{default:1,triggerUpdate:!1},hoverOrderComparator:{triggerUpdate:!1},hoverFilter:{default:function(){return!0},triggerUpdate:!1},tooltipContent:{triggerUpdate:!1},hoverDuringDrag:{default:!1,triggerUpdate:!1},clickAfterDrag:{default:!1,triggerUpdate:!1},onHover:{default:function(){},triggerUpdate:!1},onClick:{default:function(){},triggerUpdate:!1},onRightClick:{triggerUpdate:!1}},methods:{tick:function(t){if(t.initialised){t.controls.enabled&&t.controls.update&&t.controls.update(Math.min(1,t.clock.getDelta())),t.postProcessingComposer?t.postProcessingComposer.render():t.renderer.render(t.scene,t.camera),t.extraRenderers.forEach(function(e){return e.render(t.scene,t.camera)});var e=+new Date;if(t.enablePointerInteraction&&e-t.lastRaycasterCheck>=t.pointerRaycasterThrottleMs){t.lastRaycasterCheck=e;var n=null;if(t.hoverDuringDrag||!t.isPointerDragging){var r=this.intersectingObjects(t.pointerPos.x,t.pointerPos.y);t.hoverOrderComparator&&r.sort(function(e,n){return t.hoverOrderComparator(e.object,n.object)});var i=r.find(function(e){return t.hoverFilter(e.object)})||null;n=i?i.object:null,t.intersection=i||null}n!==t.hoverObj&&(t.onHover(n,t.hoverObj,t.intersection),t.tooltip.content(n&&(0,es.A)(t.tooltipContent)(n,t.intersection)||null),t.hoverObj=n)}t.tweenGroup.update()}return this},getPointerPos:function(t){var e=t.pointerPos;return{x:e.x,y:e.y}},cameraPosition:function(t,e,n,r){var i=t.camera;if(e&&t.initialised){var o=n||{x:0,y:0,z:0};if(r){var a=Object.assign({},i.position),s=c();t.tweenGroup.add(new ea.K(a).to(e,r).easing(ea.GS.Quadratic.Out).onUpdate(u).start()),t.tweenGroup.add(new ea.K(s).to(o,r/3).easing(ea.GS.Quadratic.Out).onUpdate(l).start())}else u(e),l(o);return this}return Object.assign({},i.position,{lookAt:c()});function u(t){var e=t.x,n=t.y,r=t.z;void 0!==e&&(i.position.x=e),void 0!==n&&(i.position.y=n),void 0!==r&&(i.position.z=r)}function l(e){var n=new nS.Vector3(e.x,e.y,e.z);t.controls.target?t.controls.target=n:i.lookAt(n)}function c(){return Object.assign(new nS.Vector3(0,0,-1e3).applyQuaternion(i.quaternion).add(i.position))}},zoomToFit:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,r=arguments.length,i=Array(r>3?r-3:0),o=3;o<r;o++)i[o-3]=arguments[o];return this.fitToBbox(this.getBbox.apply(this,i),e,n)},fitToBbox:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10,i=t.camera;if(e){var o=new nS.Vector3(0,0,0),a=2*Math.max.apply(Math,nx(Object.entries(e).map(function(t){var e=function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,l=!1;try{o=(n=n.call(t)).next,!1;for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){l=!0,i=t}
393finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(t,2)||nw(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),n=e[0],r=e[1];return Math.max.apply(Math,nx(r.map(function(t){return Math.abs(o[n]-t)})))})))/Math.atan((1-2*r/t.height)*i.fov*Math.PI/180),s=a/i.aspect,u=Math.max(a,s);if(u>0){var l=o.clone().sub(i.position).normalize().multiplyScalar(-u);this.cameraPosition(l,o,n)}}return this},getBbox:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return!0},n=new nS.Box3(new nS.Vector3(0,0,0),new nS.Vector3(0,0,0)),r=t.objects.filter(e);return r.length?(r.forEach(function(t){return n.expandByObject(t)}),Object.assign.apply(Object,nx(["x","y","z"].map(function(t){var e,r,i,o;return e={},r=t,i=[n.min[t],n.max[t]],(r="symbol"==typeof(o=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e);if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(r,"string"))?o:o+"")in e?Object.defineProperty(e,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[r]=i,e})))):null},getScreenCoords:function(t,e,n,r){var i=new nS.Vector3(e,n,r);return i.project(this.camera()),{x:(i.x+1)*t.width/2,y:-(i.y-1)*t.height/2}},getSceneCoords:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=new nS.Vector2(e/t.width*2-1,-(2*(n/t.height))+1),o=new nS.Raycaster;return o.setFromCamera(i,t.camera),Object.assign({},o.ray.at(r,new nS.Vector3))},intersectingObjects:function(t,e,n){var r=new nS.Vector2(e/t.width*2-1,-(2*(n/t.height))+1),i=new nS.Raycaster;return i.params.Line.threshold=t.lineHoverPrecision,i.params.Points.threshold=t.pointsHoverPrecision,i.setFromCamera(r,t.camera),i.intersectObjects(t.objects,!0)},renderer:function(t){return t.renderer},scene:function(t){return t.scene},camera:function(t){return t.camera},postProcessingComposer:function(t){return t.postProcessingComposer},controls:function(t){return t.controls},tbControls:function(t){return t.controls}},stateInit:function(){return{scene:new nS.Scene,camera:new nS.PerspectiveCamera,clock:new nS.Clock,tweenGroup:new ea.YJ,lastRaycasterCheck:0}},init:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.controlType,i=void 0===r?"trackball":r,o=n.useWebGPU,a=n.rendererConfig,s=n.extraRenderers,u=n.waitForLoadComplete;t.innerHTML="",t.appendChild(e.container=document.createElement("div")),e.container.className="scene-container",e.container.style.position="relative",e.container.appendChild(e.navInfo=document.createElement("div")),e.navInfo.className="scene-nav-info",e.navInfo.textContent=({orbit:"Left-click: rotate, Mouse-wheel/middle-click: zoom, Right-click: pan",trackball:"Left-click: rotate, Mouse-wheel/middle-click: zoom, Right-click: pan",fly:"WASD: move, R|F: up | down, Q|E: roll, up|down: pitch, left|right: yaw"})[i]||"",e.navInfo.style.display=e.showNavInfo?null:"none",e.tooltip=new n_(e.container),e.pointerPos=new nS.Vector2,e.pointerPos.x=-2,e.pointerPos.y=-2,["pointermove","pointerdown"].forEach(function(t){return e.container.addEventListener(t,function(n){if("pointerdown"===t&&(e.isPointerPressed=!0),!e.isPointerDragging&&"pointermove"===n.type&&(n.pressure>0||e.isPointerPressed)&&("touch"!==n.pointerType||void 0===n.movementX||[n.movementX,n.movementY].some(function(t){return Math.abs(t)>1}))&&(e.isPointerDragging=!0),e.enablePointerInteraction){var r,i,o,a=(r=e.container.getBoundingClientRect(),i=window.pageXOffset||document.documentElement.scrollLeft,o=window.pageYOffset||document.documentElement.scrollTop,{top:r.top+o,left:r.left+i});e.pointerPos.x=n.pageX-a.left,e.pointerPos.y=n.pageY-a.top}},{passive:!0})}),e.container.addEventListener("pointerup",function(t){e.isPointerPressed&&(e.isPointerPressed=!1,(!e.isPointerDragging||(e.isPointerDragging=!1,e.clickAfterDrag))&&requestAnimationFrame(function(){0===t.button&&e.onClick(e.hoverObj||null,t,e.intersection),2===t.button&&e.onRightClick&&e.onRightClick(e.hoverObj||null,t,e.intersection)}))},{passive:!0,capture:!0}),e.container.addEventListener("contextmenu",function(t){e.onRightClick&&t.preventDefault()}),e.renderer=new(void 0!==o&&o?g.uV1:nS.WebGLRenderer)(Object.assign({antialias:!0,alpha:!0},void 0===a?{}:a)),e.renderer.setPixelRatio(Math.min(2,window.devicePixelRatio)),e.container.appendChild(e.renderer.domElement),e.extraRenderers=void 0===s?[]:s,e.extraRenderers.forEac
393h(function(t){t.domElement.style.position="absolute",t.domElement.style.top="0px",t.domElement.style.pointerEvents="none",e.container.appendChild(t.domElement)}),e.postProcessingComposer=new tR(e.renderer),e.postProcessingComposer.addPass(new tD(e.scene,e.camera)),e.controls=new({trackball:C,orbit:te,fly:tg})[i](e.camera,e.renderer.domElement),"fly"===i&&(e.controls.movementSpeed=300,e.controls.rollSpeed=Math.PI/6,e.controls.dragToLook=!0),("trackball"===i||"orbit"===i)&&(e.controls.minDistance=.1,e.controls.maxDistance=e.skyRadius,e.controls.addEventListener("start",function(){e.controlsEngaged=!0}),e.controls.addEventListener("change",function(){e.controlsEngaged&&(e.controlsDragging=!0)}),e.controls.addEventListener("end",function(){e.controlsEngaged=!1,e.controlsDragging=!1})),[e.renderer,e.postProcessingComposer].concat(nx(e.extraRenderers)).forEach(function(t){return t.setSize(e.width,e.height)}),e.camera.aspect=e.width/e.height,e.camera.updateProjectionMatrix(),e.camera.position.z=1e3,e.scene.add(e.skysphere=new nS.Mesh),e.skysphere.visible=!1,e.loadComplete=e.scene.visible=!(void 0===u||u),window.scene=e.scene},update:function(t,e){if(t.width&&t.height&&(e.hasOwnProperty("width")||e.hasOwnProperty("height"))){var n,r=t.width,i=t.height;t.container.style.width="".concat(r,"px"),t.container.style.height="".concat(i,"px"),[t.renderer,t.postProcessingComposer].concat(nx(t.extraRenderers)).forEach(function(t){return t.setSize(r,i)}),t.camera.aspect=r/i;var o=t.viewOffset.slice(0,2);o.some(function(t){return t})&&(n=t.camera).setViewOffset.apply(n,[r,i].concat(nx(o),[r,i])),t.camera.updateProjectionMatrix()}if(e.hasOwnProperty("viewOffset")){var a,s=t.width,u=t.height,l=t.viewOffset.slice(0,2);l.some(function(t){return t})?(a=t.camera).setViewOffset.apply(a,[s,u].concat(nx(l),[s,u])):t.camera.clearViewOffset()}if(e.hasOwnProperty("skyRadius")&&t.skyRadius&&(t.controls.hasOwnProperty("maxDistance")&&e.skyRadius&&(t.controls.maxDistance=Math.min(t.controls.maxDistance,t.skyRadius)),t.camera.far=2.5*t.skyRadius,t.camera.updateProjectionMatrix(),t.skysphere.geometry=new nS.SphereGeometry(t.skyRadius)),e.hasOwnProperty("backgroundColor")){var c=t3(t.backgroundColor).alpha;void 0===c&&(c=1),t.renderer.setClearColor(new nS.Color(eo(1,t.backgroundColor)),c)}function h(){t.loadComplete=t.scene.visible=!0}e.hasOwnProperty("backgroundImageUrl")&&(t.backgroundImageUrl?new nS.TextureLoader().load(t.backgroundImageUrl,function(e){e.colorSpace=nS.SRGBColorSpace,t.skysphere.material=new nS.MeshBasicMaterial({map:e,side:nS.BackSide}),t.skysphere.visible=!0,t.onBackgroundImageLoaded&&setTimeout(t.onBackgroundImageLoaded),t.loadComplete||h()}):(t.skysphere.visible=!1,t.skysphere.material.map=null,t.loadComplete||h())),e.hasOwnProperty("showNavInfo")&&(t.navInfo.style.display=t.showNavInfo?null:"none"),e.hasOwnProperty("lights")&&((e.lights||[]).forEach(function(e){return t.scene.remove(e)}),t.lights.forEach(function(e){return t.scene.add(e)})),e.hasOwnProperty("objects")&&((e.objects||[]).forEach(function(e){return t.scene.remove(e)}),t.objects.forEach(function(e){return t.scene.add(e)}))}});function nM(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function nA(t,e,n){var r;return(e="symbol"==typeof(r=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e);if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"))?r:r+"")in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function nT(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function nO(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?nT(Object(n),!0).forEach(function(e){nA(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):nT(Object(n)).forEac
393h(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function nk(t){return function(t){if(Array.isArray(t))return nM(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return nM(t,void 0);var n=({}).toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?nM(t,e):void 0}}(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function nC(t,e){var n=new e;return n._destructor&&n._destructor(),{linkProp:function(e){return{default:n[e](),onChange:function(n,r){r[t][e](n)},triggerUpdate:!1}},linkMethod:function(e){return function(n){for(var r=n[t],i=arguments.length,o=Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];var s=r[e].apply(r,o);return s===r?this:s}}}}!function(t,e){void 0===e&&(e={});var n=e.insertAt;if("undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=t:i.appendChild(document.createTextNode(t))}}(".scene-container .clickable {\n  cursor: pointer;\n}");var nj=["rendererConfig","waitForGlobeReady"],nR=nO(nO({},window.THREE?window.THREE:{AmbientLight:f.$p8,DirectionalLight:f.ZyN,Vector2:f.I9Y,REVISION:f.sPf}),{},{CSS2DRenderer:p.B}),nD=nC("globe",d.A),nL=Object.assign.apply(Object,nk(["globeImageUrl","bumpImageUrl","globeTileEngineUrl","globeTileEngineMaxLevel","showGlobe","showGraticules","showAtmosphere","atmosphereColor","atmosphereAltitude","onGlobeReady","pointsData","pointLat","pointLng","pointColor","pointAltitude","pointRadius","pointResolution","pointsMerge","pointsTransitionDuration","arcsData","arcStartLat","arcStartLng","arcEndLat","arcEndLng","arcColor","arcAltitude","arcAltitudeAutoScale","arcStroke","arcCurveResolution","arcCircularResolution","arcDashLength","arcDashGap","arcDashInitialGap","arcDashAnimateTime","arcsTransitionDuration","polygonsData","polygonGeoJsonGeometry","polygonCapColor","polygonCapMaterial","polygonSideColor","polygonSideMaterial","polygonStrokeColor","polygonAltitude","polygonCapCurvatureResolution","polygonsTransitionDuration","pathsData","pathPoints","pathPointLat","pathPointLng","pathPointAlt","pathResolution","pathColor","pathStroke","pathDashLength","pathDashGap","pathDashInitialGap","pathDashAnimateTime","pathTransitionDuration","heatmapsData","heatmapPoints","heatmapPointLat","heatmapPointLng","heatmapPointWeight","heatmapBandwidth","heatmapColorFn","heatmapColorSaturation","heatmapBaseAltitude","heatmapTopAltitude","heatmapsTransitionDuration","hexBinPointsData","hexBinPointLat","hexBinPointLng","hexBinPointWeight","hexBinResolution","hexMargin","hexTopCurvatureResolution","hexTopColor","hexSideColor","hexAltitude","hexBinMerge","hexTransitionDuration","hexPolygonsData","hexPolygonGeoJsonGeometry","hexPolygonColor","hexPolygonAltitude","hexPolygonResolution","hexPolygonMargin","hexPolygonUseDots","hexPolygonCurvatureResolution","hexPolygonDotResolution","hexPolygonsTransitionDuration","tilesData","tileLat","tileLng","tileAltitude","tileWidth","tileHeight","tileUseGlobeProjection","tileMaterial","tileCurvatureResolution","tilesTransitionDuration","particlesData","particlesList","particleLat","particleLng","particleAltitude","particlesSize","particlesSizeAttenuation","particlesColor","particlesTexture","ringsData","ringLat","ringLng","ringAltitude","ringColor","ringResolution","ringMaxRadius","ringPropagationSpeed","ringRepeatPeriod","labelsData","labelLat","labelLng","labelAltitude","labelRotation","labelText","labelSize","labelTypeFace","labelColor","labelResolution","labelIncludeDot","labelDotRadius","labelDotOrientation","labelsTransitionDuration","htmlElementsData","htmlLat","htmlLng","htmlAltitude","htmlElement","htmlElementVisibilityModifier","htmlTransitionDuration","objectsData","objectLat","objectLng","objectAltitude","objectRotation","objectFacesSurface","objectThreeOb
393ject","customLayerData","customThreeObject","customThreeObjectUpdate"].map(function(t){return nA({},t,nD.linkProp(t))}))),nI=Object.assign.apply(Object,nk(["globeMaterial","getGlobeRadius","getCoords","toGeoCoords"].map(function(t){return nA({},t,nD.linkMethod(t))}))),nN=nC("renderObjs",nP),nF=Object.assign.apply(Object,nk(["width","height","backgroundColor","backgroundImageUrl","enablePointerInteraction"].map(function(t){return nA({},t,nN.linkProp(t))}))),nz=Object.assign.apply(Object,nk(["lights","postProcessingComposer"].map(function(t){return nA({},t,nN.linkMethod(t))}))),nU=(0,eu.A)({props:nO(nO({onZoom:{triggerUpdate:!1},onGlobeClick:{triggerUpdate:!1},onGlobeRightClick:{triggerUpdate:!1},pointLabel:{default:"name",triggerUpdate:!1},onPointClick:{triggerUpdate:!1},onPointRightClick:{triggerUpdate:!1},onPointHover:{triggerUpdate:!1},arcLabel:{default:"name",triggerUpdate:!1},onArcClick:{triggerUpdate:!1},onArcRightClick:{triggerUpdate:!1},onArcHover:{triggerUpdate:!1},polygonLabel:{default:"name",triggerUpdate:!1},onPolygonClick:{triggerUpdate:!1},onPolygonRightClick:{triggerUpdate:!1},onPolygonHover:{triggerUpdate:!1},pathLabel:{default:"name",triggerUpdate:!1},onPathClick:{triggerUpdate:!1},onPathRightClick:{triggerUpdate:!1},onPathHover:{triggerUpdate:!1},onHeatmapClick:{triggerUpdate:!1},onHeatmapRightClick:{triggerUpdate:!1},onHeatmapHover:{triggerUpdate:!1},hexLabel:{triggerUpdate:!1},onHexClick:{triggerUpdate:!1},onHexRightClick:{triggerUpdate:!1},onHexHover:{triggerUpdate:!1},hexPolygonLabel:{triggerUpdate:!1},onHexPolygonClick:{triggerUpdate:!1},onHexPolygonRightClick:{triggerUpdate:!1},onHexPolygonHover:{triggerUpdate:!1},tileLabel:{default:"name",triggerUpdate:!1},onTileClick:{triggerUpdate:!1},onTileRightClick:{triggerUpdate:!1},onTileHover:{triggerUpdate:!1},particleLabel:{default:"name",triggerUpdate:!1},onParticleClick:{triggerUpdate:!1},onParticleRightClick:{triggerUpdate:!1},onParticleHover:{triggerUpdate:!1},labelLabel:{triggerUpdate:!1},onLabelClick:{triggerUpdate:!1},onLabelRightClick:{triggerUpdate:!1},onLabelHover:{triggerUpdate:!1},objectLabel:{default:"name",triggerUpdate:!1},onObjectClick:{triggerUpdate:!1},onObjectRightClick:{triggerUpdate:!1},onObjectHover:{triggerUpdate:!1},customLayerLabel:{default:"name",triggerUpdate:!1},onCustomLayerClick:{triggerUpdate:!1},onCustomLayerRightClick:{triggerUpdate:!1},onCustomLayerHover:{triggerUpdate:!1},pointerEventsFilter:{default:function(){return!0},triggerUpdate:!1},lineHoverPrecision:{default:.2,triggerUpdate:!1,onChange:function(t,e){e.renderObjs.lineHoverPrecision(t),e.renderObjs.pointsHoverPrecision(t)}},globeOffset:{default:[0,0],triggerUpdate:!1,onChange:function(t,e){return Array.isArray(t)&&2===t.length&&e.renderObjs.viewOffset(t.map(function(t){return-t}))}}},nL),nF),methods:nO(nO({pauseAnimation:function(t){var e;return null!==t.animationFrameRequestId&&(cancelAnimationFrame(t.animationFrameRequestId),t.animationFrameRequestId=null),null==(e=t.globe)||e.pauseAnimation(),this},resumeAnimation:function(t){var e;return null===t.animationFrameRequestId&&this._animationCycle(),null==(e=t.globe)||e.resumeAnimation(),this},_animationCycle:function(t){t.renderObjs.tick(),t.tweenGroup.update(),t.animationFrameRequestId=requestAnimationFrame(this._animationCycle)},pointOfView:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=t.globe.toGeoCoords(t.renderObjs.cameraPosition());if(void 0===e.lat&&void 0===e.lng&&void 0===e.altitude)return r;var i=Object.assign({},r,e);if(["lat","lng","altitude"].forEach(function(t){return i[t]=+i[t]}),n){for(;r.lng-i.lng>180;)r.lng-=360;for(;r.lng-i.lng<-180;)r.lng+=360;t.tweenGroup.add(new ea.K(r).to(i,n).easing(ea.GS.Cubic.InOut).onUpdate(o).start())}else o(i);return this;function o(e){var n=e.lat,r=e.lng,i=e.altitude;t.renderObjs.cameraPosition(t.globe.getCoords(n,r,i)),t.globe.setPointOfVie
393w(t.renderObjs.camera())}},getScreenCoords:function(t){for(var e,n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var o=(e=t.globe).getCoords.apply(e,r);return t.renderObjs.getScreenCoords(o.x,o.y,o.z)},toGlobeCoords:function(t,e,n){var r=t.renderObjs.intersectingObjects(e,n).find(function(t){return"globe"===(t.object.__globeObjType||t.object.parent.__globeObjType)});if(!r)return null;var i=t.globe.toGeoCoords(r.point);return{lat:i.lat,lng:i.lng}},scene:function(t){return t.renderObjs.scene()},camera:function(t){return t.renderObjs.camera()},renderer:function(t){return t.renderObjs.renderer()},controls:function(t){return t.renderObjs.controls()},_destructor:function(t){t.globe._destructor(),this.pauseAnimation(),this.pointsData([]),this.arcsData([]),this.polygonsData([]),this.pathsData([]),this.heatmapsData([]),this.hexBinPointsData([]),this.hexPolygonsData([]),this.tilesData([]),this.particlesData([]),this.labelsData([]),this.htmlElementsData([]),this.objectsData([]),this.customLayerData([])}},nI),nz),stateInit:function(t){var e=t.rendererConfig,n=t.waitForGlobeReady,r=void 0===n||n,i=function(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n={};for(var r in t)if(({}).hasOwnProperty.call(t,r)){if(-1!==e.indexOf(r))continue;n[r]=t[r]}return n}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],-1===e.indexOf(n)&&({}).propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(t,nj),o=new d.A(nO({waitForGlobeReady:r},i));return{globe:o,renderObjs:nP({controlType:"orbit",rendererConfig:e,waitForLoadComplete:r,extraRenderers:[new nR.CSS2DRenderer]}).skyRadius(500*o.getGlobeRadius()).showNavInfo(!1).objects([o]).lights([new nR.AmbientLight(0xcccccc,Math.PI),new nR.DirectionalLight(0xffffff,.6*Math.PI)]),tweenGroup:new ea.YJ}},init:function(t,e){var n=this;t.innerHTML="",t.appendChild(e.container=document.createElement("div")),e.container.style.position="relative";var r=document.createElement("div");e.container.appendChild(r),e.renderObjs(r),e.globe.rendererSize(e.renderObjs.renderer().getSize(new nR.Vector2)),this.pointOfView({altitude:2.5});var i=e.globe.getGlobeRadius(),o=e.renderObjs.controls();e.renderObjs.camera().near=.05,o.minDistance=i+Math.max(.001,1.1*e.renderObjs.camera().near),o.maxDistance=100*i,o.enablePan=!1,o.enableDamping=!0,o.dampingFactor=.1,o.rotateSpeed=.3,o.zoomSpeed=.3,o.zoomToCursor=!0,o.addEventListener("change",function(){o.target.setScalar(0);var t=n.pointOfView();o.rotateSpeed=.3*t.altitude,o.zoomSpeed=.5*Math.sqrt(t.altitude),e.globe.setPointOfVie
393w(e.renderObjs.camera()),e.onZoom&&e.onZoom(t)});var a=function(t){for(var e=t;e&&!e.hasOwnProperty("__globeObjType");)e=e.parent;return e},s={point:function(t){return t},arc:function(t){return t},polygon:function(t){return t.data},path:function(t){return t},heatmap:function(t){return t},hexbin:function(t){return t},hexPolygon:function(t){return t},tile:function(t){return t},particles:function(t,e){return e&&e.hasOwnProperty("index")&&!(t.length<=e.index)?t[e.index]:t},label:function(t){return t},object:function(t){return t},custom:function(t){return t}};nR.REVISION<155&&(e.renderObjs.renderer().useLegacyLights=!1),e.renderObjs.hoverFilter(function(t){var n=a(t);if(!n)return!1;var r=n.__globeObjType;if("globe"!==r&&!s.hasOwnProperty(r))return!1;var i=s.hasOwnProperty(r)&&n.__data?s[r](n.__data):null;return!(["points","hexBinPoints"].some(function(t){return t===r})&&Array.isArray(i))&&e.pointerEventsFilter(n,i)}).tooltipContent(function(t,n){var r={point:e.pointLabel,arc:e.arcLabel,polygon:e.polygonLabel,path:e.pathLabel,hexbin:e.hexLabel,hexPolygon:e.hexPolygonLabel,tile:e.tileLabel,particles:e.particleLabel,label:e.labelLabel,object:e.objectLabel,custom:e.customLayerLabel},i=a(t),o=i&&i.__globeObjType;return i&&o&&r.hasOwnProperty(o)&&s.hasOwnProperty(o)&&(0,es.A)(r[o])(s[o](i.__data,n))||""}).onHover(function(t,n,r){var i={point:e.onPointHover,arc:e.onArcHover,polygon:e.onPolygonHover,path:e.onPathHover,heatmap:e.onHeatmapHover,hexbin:e.onHexHover,hexPolygon:e.onHexPolygonHover,tile:e.onTileHover,particles:e.onParticleHover,label:e.onLabelHover,object:e.onObjectHover,custom:e.onCustomLayerHover},o={globe:e.onGlobeClick,point:e.onPointClick,arc:e.onArcClick,polygon:e.onPolygonClick,path:e.onPathClick,heatmap:e.onHeatmapClick,hexbin:e.onHexClick,hexPolygon:e.onHexPolygonClick,tile:e.onTileClick,particles:e.onParticleClick,label:e.onLabelClick,object:e.onObjectClick,custom:e.onCustomLayerClick},u=a(t);if(u&&!i.hasOwnProperty(u.__globeObjType)&&(u=null),u!==e.hoverObj){var l=e.hoverObj?e.hoverObj.__globeObjType:null,c=e.hoverData,h=u?u.__globeObjType:null,f=u?s[h](u.__data,r):null;l&&l!==h&&i[l]&&i[l](null,c||null),h&&i[h]&&i[h](f,l===h?c:null),e.renderObjs.renderer().domElement.classList[h&&o[h]?"add":"remove"]("clickable"),e.hoverObj=u,e.hoverData=f}}).onClick(function(t,r,i){if(t){var o={globe:e.onGlobeClick,point:e.onPointClick,arc:e.onArcClick,polygon:e.onPolygonClick,path:e.onPathClick,heatmap:e.onHeatmapClick,hexbin:e.onHexClick,hexPolygon:e.onHexPolygonClick,tile:e.onTileClick,particles:e.onParticleClick,label:e.onLabelClick,object:e.onObjectClick,custom:e.onCustomLayerClick},u=a(t),l=u.__globeObjType;if(u&&o.hasOwnProperty(l)&&o[l]){var c=[r],h=null!=i&&i.isVector3?i:null==i?void 0:i.point;if("globe"===l){var f=n.toGeoCoords(h),p=f.lat,d=f.lng;c.unshift({lat:p,lng:d})}else c.push(n.toGeoCoords(h));s.hasOwnProperty(l)&&c.unshift(s[l](u.__data,i)),o[l].apply(o,c)}}}).onRightClick(function(t,r,i){if(t){var o={globe:e.onGlobeRightClick,point:e.onPointRightClick,arc:e.onArcRightClick,polygon:e.onPolygonRightClick,path:e.onPathRightClick,heatmap:e.onHeatmapRightClick,hexbin:e.onHexRightClick,hexPolygon:e.onHexPolygonRightClick,tile:e.onTileRightClick,particles:e.onParticleRightClick,label:e.onLabelRightClick,object:e.onObjectRightClick,custom:e.onCustomLayerRightClick},u=a(t),l=u.__globeObjType;if(u&&o.hasOwnProperty(l)&&o[l]){var c=[r],h=null!=i&&i.isVector3?i:null==i?void 0:i.point;if("globe"===l){var f=n.toGeoCoords(h),p=f.lat,d=f.lng;c.unshift({lat:p,lng:d})}else c.push(n.toGeoCoords(h));s.hasOwnProperty(l)&&c.unshift(s[l](u.__data,i)),o[l].apply(o,c)}}}),this._animationCycle()}}),nB=n(12758),nH={width:nB.number,height:nB.number,globeOffset:nB.arrayOf(nB.number),backgroundColor:nB.string,backgroundImageUrl:nB.string,globeImageUrl:nB.string,bumpImageUrl:nB.string,globeTileEngineUrl:nB.func,showGlobe:nB.bool,showGraticules:nB.bool,showAtmosphere:nB.bool,atmosphereColor:nB.string,atmosphereAltitude:nB.number,globeMaterial:nB.object,onGlobeReady:nB.func,onGlobeClick:nB.func,onGlobeRightClick:nB.func,pointsData:nB.arrayOf(nB.object),pointLat:nB.oneOfType([nB.number,nB.string,nB.func
393]),pointLng:nB.oneOfType([nB.number,nB.string,nB.func]),pointColor:nB.oneOfType([nB.string,nB.func]),pointAltitude:nB.oneOfType([nB.number,nB.string,nB.func]),pointRadius:nB.oneOfType([nB.number,nB.string,nB.func]),pointResolution:nB.number,pointsMerge:nB.bool,pointsTransitionDuration:nB.number,pointLabel:nB.oneOfType([nB.string,nB.func]),onPointClick:nB.func,onPointRightClick:nB.func,onPointHover:nB.func,arcsData:nB.arrayOf(nB.object),arcStartLat:nB.oneOfType([nB.number,nB.string,nB.func]),arcStartLng:nB.oneOfType([nB.number,nB.string,nB.func]),arcEndLat:nB.oneOfType([nB.number,nB.string,nB.func]),arcEndLng:nB.oneOfType([nB.number,nB.string,nB.func]),arcColor:nB.oneOfType([nB.string,nB.arrayOf(nB.string),nB.func]),arcAltitude:nB.oneOfType([nB.number,nB.string,nB.func]),arcAltitudeAutoScale:nB.oneOfType([nB.number,nB.string,nB.func]),arcStroke:nB.oneOfType([nB.number,nB.string,nB.func]),arcCurveResolution:nB.number,arcCircularResolution:nB.number,arcDashLength:nB.oneOfType([nB.number,nB.string,nB.func]),arcDashGap:nB.oneOfType([nB.number,nB.string,nB.func]),arcDashInitialGap:nB.oneOfType([nB.number,nB.string,nB.func]),arcDashAnimateTime:nB.oneOfType([nB.number,nB.string,nB.func]),arcsTransitionDuration:nB.number,arcLabel:nB.oneOfType([nB.string,nB.func]),onArcClick:nB.func,onArcRightClick:nB.func,onArcHover:nB.func,polygonsData:nB.arrayOf(nB.object),polygonGeoJsonGeometry:nB.oneOfType([nB.string,nB.func]),polygonCapColor:nB.oneOfType([nB.string,nB.func]),polygonCapMaterial:nB.oneOfType([nB.object,nB.string,nB.func]),polygonSideColor:nB.oneOfType([nB.string,nB.func]),polygonSideMaterial:nB.oneOfType([nB.object,nB.string,nB.func]),polygonStrokeColor:nB.oneOfType([nB.string,nB.func]),polygonAltitude:nB.oneOfType([nB.number,nB.string,nB.func]),polygonCapCurvatureResolution:nB.oneOfType([nB.number,nB.string,nB.func]),polygonsTransitionDuration:nB.number,polygonLabel:nB.oneOfType([nB.string,nB.func]),onPolygonClick:nB.func,onPolygonRightClick:nB.func,onPolygonHover:nB.func,pathsData:nB.array,pathPoints:nB.oneOfType([nB.array,nB.string,nB.func]),pathPointLat:nB.oneOfType([nB.number,nB.string,nB.func]),pathPointLng:nB.oneOfType([nB.number,nB.string,nB.func]),pathPointAlt:nB.oneOfType([nB.number,nB.string,nB.func]),pathResolution:nB.number,pathColor:nB.oneOfType([nB.string,nB.arrayOf(nB.string),nB.func]),pathStroke:nB.oneOfType([nB.number,nB.string,nB.func]),pathDashLength:nB.oneOfType([nB.number,nB.string,nB.func]),pathDashGap:nB.oneOfType([nB.number,nB.string,nB.func]),pathDashInitialGap:nB.oneOfType([nB.number,nB.string,nB.func]),pathDashAnimateTime:nB.oneOfType([nB.number,nB.string,nB.func]),pathTransitionDuration:nB.number,pathLabel:nB.oneOfType([nB.string,nB.func]),onPathClick:nB.func,onPathRightClick:nB.func,onPathHover:nB.func,heatmapsData:nB.array,heatmapPoints:nB.oneOfType([nB.array,nB.string,nB.func]),heatmapPointLat:nB.oneOfType([nB.number,nB.string,nB.func]),heatmapPointLng:nB.oneOfType([nB.number,nB.string,nB.func]),heatmapPointWeight:nB.oneOfType([nB.number,nB.string,nB.func]),heatmapBandwidth:nB.oneOfType([nB.number,nB.string,nB.func]),heatmapColorFn:nB.oneOfType([nB.string,nB.func]),heatmapColorSaturation:nB.oneOfType([nB.number,nB.string,nB.func]),heatmapBaseAltitude:nB.oneOfType([nB.number,nB.string,nB.func]),heatmapTopAltitude:nB.oneOfType([nB.number,nB.string,nB.func]),heatmapsTransitionDuration:nB.number,onHeatmapClick:nB.func,onHeatmapRightClick:nB.func,onHeatmapHover:nB.func,hexBinPointsData:nB.arrayOf(nB.object),hexBinPointLat:nB.oneOfType([nB.number,nB.string,nB.func]),hexBinPointLng:nB.oneOfType([nB.number,nB.string,nB.func]),hexBinPointWeight:nB.oneOfType([nB.number,nB.string,nB.func]),hexBinResolution:nB.number,hexMargin:nB.oneOfType([nB.number,nB.func]),hexTopColor:nB.func,hexSideColor:nB.func,hexAltitude:nB.oneOfType([nB.number,nB.func]),hexTopCurvatureResolution:nB.number,hexBinMerge:nB.bool,hexTransitionDuration:nB.number,hexLabel:nB.oneOfType([nB.string,nB.func]),onHexClick:nB.func,onHexRightClick:nB.func,onHexHover:nB.func,hexPolygonsData:nB.arrayOf(nB.object),hexPolygonGeoJsonGeometry:nB.oneOfType([nB.string,nB.func
393]),hexPolygonColor:nB.oneOfType([nB.string,nB.func]),hexPolygonAltitude:nB.oneOfType([nB.number,nB.string,nB.func]),hexPolygonResolution:nB.oneOfType([nB.number,nB.string,nB.func]),hexPolygonMargin:nB.oneOfType([nB.number,nB.string,nB.func]),hexPolygonUseDots:nB.oneOfType([nB.bool,nB.string,nB.func]),hexPolygonCurvatureResolution:nB.oneOfType([nB.number,nB.string,nB.func]),hexPolygonDotResolution:nB.oneOfType([nB.number,nB.string,nB.func]),hexPolygonsTransitionDuration:nB.number,hexPolygonLabel:nB.oneOfType([nB.string,nB.func]),onHexPolygonClick:nB.func,onHexPolygonRightClick:nB.func,onHexPolygonHover:nB.func,tilesData:nB.arrayOf(nB.object),tileLat:nB.oneOfType([nB.number,nB.string,nB.func]),tileLng:nB.oneOfType([nB.number,nB.string,nB.func]),tileAltitude:nB.oneOfType([nB.number,nB.string,nB.func]),tileWidth:nB.oneOfType([nB.number,nB.string,nB.func]),tileHeight:nB.oneOfType([nB.number,nB.string,nB.func]),tileUseGlobeProjection:nB.oneOfType([nB.bool,nB.string,nB.func]),tileMaterial:nB.oneOfType([nB.object,nB.string,nB.func]),tileCurvatureResolution:nB.oneOfType([nB.number,nB.string,nB.func]),tilesTransitionDuration:nB.number,tileLabel:nB.oneOfType([nB.string,nB.func]),onTileClick:nB.func,onTileRightClick:nB.func,onTileHover:nB.func,particlesData:nB.arrayOf(nB.object),particlesList:nB.oneOfType([nB.string,nB.func]),particleLat:nB.oneOfType([nB.number,nB.string,nB.func]),particleLng:nB.oneOfType([nB.number,nB.string,nB.func]),particleAltitude:nB.oneOfType([nB.number,nB.string,nB.func]),particlesSize:nB.oneOfType([nB.number,nB.string,nB.func]),particlesSizeAttenuation:nB.oneOfType([nB.bool,nB.string,nB.func]),particlesColor:nB.oneOfType([nB.string,nB.func]),particlesTexture:nB.oneOfType([nB.string,nB.func]),particleLabel:nB.oneOfType([nB.string,nB.func]),onParticleClick:nB.func,onParticleRightClick:nB.func,onParticleHover:nB.func,ringsData:nB.arrayOf(nB.object),ringLat:nB.oneOfType([nB.number,nB.string,nB.func]),ringLng:nB.oneOfType([nB.number,nB.string,nB.func]),ringAltitude:nB.oneOfType([nB.number,nB.string,nB.func]),ringColor:nB.oneOfType([nB.string,nB.arrayOf(nB.string),nB.func]),ringResolution:nB.number,ringMaxRadius:nB.oneOfType([nB.number,nB.string,nB.func]),ringPropagationSpeed:nB.oneOfType([nB.number,nB.string,nB.func]),ringRepeatPeriod:nB.oneOfType([nB.number,nB.string,nB.func]),labelsData:nB.arrayOf(nB.object),labelLat:nB.oneOfType([nB.number,nB.string,nB.func]),labelLng:nB.oneOfType([nB.number,nB.string,nB.func]),labelAltitude:nB.oneOfType([nB.number,nB.string,nB.func]),labelRotation:nB.oneOfType([nB.number,nB.string,nB.func]),labelText:nB.oneOfType([nB.string,nB.func]),labelSize:nB.oneOfType([nB.number,nB.string,nB.func]),labelTypeFace:nB.object,labelColor:nB.oneOfType([nB.string,nB.func]),labelResolution:nB.number,labelIncludeDot:nB.oneOfType([nB.bool,nB.string,nB.func]),labelDotRadius:nB.oneOfType([nB.number,nB.string,nB.func]),labelDotOrientation:nB.oneOfType([nB.string,nB.func]),labelsTransitionDuration:nB.number,labelLabel:nB.oneOfType([nB.string,nB.func]),onLabelClick:nB.func,onLabelRightClick:nB.func,onLabelHover:nB.func,htmlElementsData:nB.arrayOf(nB.object),htmlLat:nB.oneOfType([nB.number,nB.string,nB.func]),htmlLng:nB.oneOfType([nB.number,nB.string,nB.func]),htmlAltitude:nB.oneOfType([nB.number,nB.string,nB.func]),htmlElement:nB.oneOfType([nB.string,nB.func]),htmlElementVisibilityModifier:nB.func,htmlTransitionDuration:nB.number,objectsData:nB.arrayOf(nB.object),objectLat:nB.oneOfType([nB.number,nB.string,nB.func]),objectLng:nB.oneOfType([nB.number,nB.string,nB.func]),objectAltitude:nB.oneOfType([nB.number,nB.string,nB.func]),objectRotation:nB.oneOfType([nB.shape({x:nB.number,y:nB.number,z:nB.number}),nB.string,nB.func]),objectFacesSurface:nB.oneOfType([nB.bool,nB.string,nB.func]),objectThreeObject:nB.oneOfType([nB.object,nB.string,nB.func]),objectLabel:nB.oneOfType([nB.string,nB.func]),onObjectClick:nB.func,onObjectRightClick:nB.func,onObjectHover:nB.func,customLayerData:nB.arrayOf(nB.object),customThreeObject:nB.oneOfType([nB.object,nB.string,nB.func]),customThreeObjectUpdate:nB.oneOfType([nB.string,nB.func
393]),customLayerLabel:nB.oneOfType([nB.string,nB.func]),onCustomLayerClick:nB.func,onCustomLayerRightClick:nB.func,onCustomLayerHover:nB.func,enablePointerInteraction:nB.bool,pointerEventsFilter:nB.func,lineHoverPrecision:nB.number,onZoom:nB.func},nq=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.wrapperElementType,i=void 0===n?"div":n,o=e.nodeMapper,a=void 0===o?function(t){return t}:o,u=e.methodNames,c=void 0===u?[]:u,f=e.initPropNames,p=void 0===f?[]:f;return(0,r.forwardRef)(function(e,n){var o=(0,r.useRef)(),u=(0,r.useMemo)(function(){return t(Object.fromEntries(p.filter(function(t){return e.hasOwnProperty(t)}).map(function(t){return[t,e[t]]})))},[]);h(function(){u(a(o.current))},r.useLayoutEffect),h(function(){return u._destructor instanceof Function?u._destructor:void 0});var f=(0,r.useCallback)(function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return u[t]instanceof Function?u[t].apply(u,n):void 0},[u]),d=(0,r.useRef)({});return Object.keys(s(e,[].concat(l(c),l(p)))).filter(function(t){return d.current[t]!==e[t]}).forEach(function(t){return f(t,e[t])}),d.current=e,(0,r.useImperativeHandle)(n,function(){return Object.fromEntries(c.map(function(t){return[t,function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return f.apply(void 0,[t].concat(n))}]}))},[f]),r.createElement(i,{ref:o})})}(nU,{methodNames:["pauseAnimation","resumeAnimation","pointOfView","lights","scene","camera","renderer","postProcessingComposer","controls","getGlobeRadius","getCoords","getScreenCoords","toGeoCoords","toGlobeCoords"],initPropNames:["animateIn","waitForGlobeReady","rendererConfig"]});nq.displayName="Globe",nq.propTypes=nH},35330:(t,e,n)=>{"use strict";n.d(e,{n:()=>a});var r=n(85339);let i=new r.NRn,o=new r.Pq0;class a extends r.CmU{constructor(){super(),this.isLineSegmentsGeometry=!0,this.type="LineSegmentsGeometry",this.setIndex([0,2,1,2,3,1,2,4,3,4,5,3,4,6,5,6,7,5]),this.setAttribute("position",new r.qtW([-1,2,0,1,2,0,-1,1,0,1,1,0,-1,0,0,1,0,0,-1,-1,0,1,-1,0],3)),this.setAttribute("uv",new r.qtW([-1,2,1,2,-1,1,1,1,-1,-1,1,-1,-1,-2,1,-2],2))}applyMatrix4(t){let e=this.attributes.instanceStart,n=this.attributes.instanceEnd;return void 0!==e&&(e.applyMatrix4(t),n.applyMatrix4(t),e.needsUpdate=!0),null!==this.boundingBox&&this.computeBoundingBox(),null!==this.boundingSphere&&this.computeBoundingSphere(),this}setPositions(t){let e;t instanceof Float32Array?e=t:Array.isArray(t)&&(e=new Float32Array(t));let n=new r.LuO(e,6,1);return this.setAttribute("instanceStart",new r.eHs(n,3,0)),this.setAttribute("instanceEnd",new r.eHs(n,3,3)),this.instanceCount=this.attributes.instanceStart.count,this.computeBoundingBox(),this.computeBoundingSphere(),this}setColors(t){let e;t instanceof Float32Array?e=t:Array.isArray(t)&&(e=new Float32Array(t));let n=new r.LuO(e,6,1);return this.setAttribute("instanceColorStart",new r.eHs(n,3,0)),this.setAttribute("instanceColorEnd",new r.eHs(n,3,3)),this}fromWireframeGeometry(t){return this.setPositions(t.attributes.position.array),this}fromEdgesGeometry(t){return this.setPositions(t.attributes.position.array),this}fromMesh(t){return this.fromWireframeGeometry(new r.XJ7(t.geometry)),this}fromLineSegments(t){let e=t.geometry;return this.setPositions(e.attributes.position.array),this}computeBoundingBox(){null===this.boundingBox&&(this.boundingBox=new r.NRn);let t=this.attributes.instanceStart,e=this.attributes.instanceEnd;void 0!==t&&void 0!==e&&(this.boundingBox.setFromBufferAttribute(t),i.setFromBufferAttribute(e),this.boundingBox.union(i))}computeBoundingSphere(){null===this.boundingSphere&&(this.boundingSphere=new r.iyt),null===this.boundingBox&&this.computeBoundingBox();let t=this.attributes.instanceStart,e=this.attributes.instanceEnd;if(void 0!==t&&void 0!==e){let n=this.boundingSphere.center;this.boundingBox.getCenter(n);let r=0;for(let i=0,a=t.count;i<a;i++)o.fromBufferAttribute(t,i),r=Math.max(r,n.distanceToSquared(o)),o.fromBufferAttribute(e,i),r=Math.max(r,n.distanceToSquared(o));this.boundingSphere.radius=Math.sqrt(r),isNaN(this.boundingSphere.radius)&&console.error("THREE.LineSegmentsGeometry.computeBoundingSphere(): Computed radius is NaN. The instanced position data is likely to have NaN values.",this)}}toJSON(){}}},46555:function(t){t.exports=function(){var t=[function(t,e,n){"use strict";var r=n(1),i=function(){function t(t,e,n){void 0===t&&(t=NaN),void 0===e&&(e=NaN),void 0===n&&(n=!1),this._minFPS=e,this._maxFPS=t,this._timeScale=1,this._currentTick=0,this._currentTime=0,this._tickDeltaTime=0,this._isRunning=!1,this._maxInterval=isNaN(this._minFPS)?NaN:1e3/this._minFPS,this._minInterval=isNaN(this._maxFPS)?NaN:1e3/this._maxFPS,this._onResume=new r.default,this._onPause=new r.default,this._onTick=new r.default,this._onTickOncePerFrame=new r.default,n||this.resume()}return t.prototype.updateOnce=function(t){t(this.currentTimeSeconds,this.tickDeltaTimeSeconds,this.currentTick)},t.prototype.resume=function(){this._isRunning||(this._isRunning=!0,this._lastTimeUpdated=this.getTimer(),this._onResume.dispatch(),this.animateO
393nce())},t.prototype.pause=function(){this._isRunning&&(this._isRunning=!1,this._onPause.dispatch(),window.cancelAnimationFrame(this._animationFrameHandle))},t.prototype.dispose=function(){this.pause(),this._onResume.removeAll(),this._onPause.removeAll(),this._onTick.removeAll()},Object.defineProperty(t.prototype,"currentTick",{get:function(){return this._currentTick},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentTimeSeconds",{get:function(){return this._currentTime/1e3},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tickDeltaTimeSeconds",{get:function(){return this._tickDeltaTime/1e3},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"timeScale",{get:function(){return this._timeScale},set:function(t){this._timeScale!==t&&(this._timeScale=t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onResume",{get:function(){return this._onResume},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onPause",{get:function(){return this._onPause},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onTick",{get:function(){return this._onTick},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onTickOncePerFrame",{get:function(){return this._onTickOncePerFrame},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isRunning",{get:function(){return this._isRunning},enumerable:!0,configurable:!0}),t.prototype.animateOnce=function(){var t=this;this._animationFrameHandle=window.requestAnimationFrame(function(){return t.onFrame()})},t.prototype.onFrame=function(){if(this._now=this.getTimer(),this._frameDeltaTime=this._now-this._lastTimeUpdated,isNaN(this._minInterval)||this._frameDeltaTime>=this._minInterval)if(isNaN(this._maxInterval))this.update(this._frameDeltaTime*this._timeScale,!0),this._lastTimeUpdated=this._now;else for(this._interval=Math.min(this._frameDeltaTime,this._maxInterval);this._now>=this._lastTimeUpdated+this._interval;)this.update(this._interval*this._timeScale,this._now<=this._lastTimeUpdated+2*this._maxInterval),this._lastTimeUpdated+=this._interval;this._isRunning&&this.animateOnce()},t.prototype.update=function(t,e){void 0===e&&(e=!0),this._currentTick++,this._currentTime+=t,this._tickDeltaTime=t,this._onTick.dispatch(this.currentTimeSeconds,this.tickDeltaTimeSeconds,this.currentTick),e&&this._onTickOncePerFrame.dispatch(this.currentTimeSeconds,this.tickDeltaTimeSeconds,this.currentTick)},t.prototype.getTimer=function(){return Date.now()},t}();Object.defineProperty(e,"__esModule",{value:!0}),e.default=i},function(t,e,n){t.exports=function(){var t=[function(t,e){"use strict";var n=function(){function t(){this.functions=[]}return t.prototype.add=function(t){return -1===this.functions.indexOf(t)&&(this.functions.push(t),!0)},t.prototype.remove=function(t){var e=this.functions.indexOf(t);return e>-1&&(this.functions.splice(e,1),!0)},t.prototype.removeAll=function(){return this.functions.length>0&&(this.functions.length=0,!0)},t.prototype.dispatch=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.functions.concat().forEach(function(e){e.apply(void 0,t)})},Object.defineProperty(t.prototype,"numItems",{get:function(){return this.functions.length},enumerable:!0,configurable:!0}),t}();Object.defineProperty(e,"__esModule",{value:!0}),e.default=n}];function e(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return t[r].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}()}];function e(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return t[r].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}()},50205:(t,e,n)=>{"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}n.d(e,{A:()=>a});var i=/^\s+/,o=/\s+$/;function a(t,e){if(e=e||{},(t=t||"")instanceof a)return t;if(!(this instanceof a))return new a(t,e);var n,s,u,l,c,h,f,p,d,m,g,y,v,b,_,E,x,S,A,O,C=(s={r:0,g:0,b:0},u=1,l=null,c=null,h=null,f=!1,p=!1,"string"==typeof(n=t)&&(n=function(t){t=t.replace(i,"").replace(o,"").toLowerCase();var e,n=!1;if(w[t])t=w[t],n=!0;else if("transparent"==t)return{r:0,g:0,b:0,a:0,format:"name"};return(e=j.rgb.exec(t))?{r:e[1],g:e[2],b:e[3]}:(e=j.rgba.exec(t))?{r:e[1],g:e[2],b:e[3],a:e[4]}:(e=j.hsl.exec(t))?{h:e[1],s:e[2],l:e[3]}:(e=j.hsla.exec(t))?{h:e[1],s:e[2],l:e[3],a:e[4]}:(e=j.hsv.exec(t))?{h:e[1],s:e[2],v:e[3]}:(e=j.hsva.exec(t))?{h:e[1],s:e[2],v:e[3],a:e[4]}:(e=j.hex8.exec(t))?{r:T(e[1]),g:T(e[2]),b:T(e[3]),a:T(e[4])/255,format:n?"name":"hex8"}:(e=j.hex6.exec(t))?{r:T(e[1]),g:T(e[2]),b:T(e[3]),format:n?"name":"hex"}:(e=j.hex4.exec(t))?{r:T(e[1]+""+e[1]),g:T(e[2]+""+e[2]),b:T(e[3]+""+e[3]),a:T(e[4]+""+e[4])/255,format:n?"name":"hex8"}:!!(e=j.hex3.exec(t))&&{r:T(e[1]+""+e[1]),g:T(e[2]+""+e[2]),b:T(e[3]+""+e[3]),format:n?"name":"hex"}}(n)),"object"==r(n)&&(R(n.r)&&R(n.g)&&R(n.b)?(d=n.r,m=n.g,g=n.b,s={r:255*M(d,255),g:255*M(m,255),b:255*M(g,255)},f=!0,p="%"===String(n.r).substr(-1)?"prgb":"rgb"):R(n.h)&&R(n.s)&&R(n.v)?(l=k(n.s),c=k(n.v),y=n.h,v=l,b=c,y=6*M(y,360),v=M(v,100),b=M(b,100),_=Math.floor(y),E=y-_,x=b*(1-v),S=b*(1-E*v),A=b*(1-(1-E)*v),s={r:255*[b,S,x,x,A,b][O=_%6],g:255*[A,b,b,S,x,x][O],b:255*[x,x,A,b,b,S][O]}
393,f=!0,p="hsv"):R(n.h)&&R(n.s)&&R(n.l)&&(l=k(n.s),h=k(n.l),s=function(t,e,n){var r,i,o;function a(t,e,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?t+(e-t)*6*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}if(t=M(t,360),e=M(e,100),n=M(n,100),0===e)r=i=o=n;else{var s=n<.5?n*(1+e):n+e-n*e,u=2*n-s;r=a(u,s,t+1/3),i=a(u,s,t),o=a(u,s,t-1/3)}return{r:255*r,g:255*i,b:255*o}}(n.h,l,h),f=!0,p="hsl"),n.hasOwnProperty("a")&&(u=n.a)),u=P(u),{ok:f,format:n.format||p,r:Math.min(255,Math.max(s.r,0)),g:Math.min(255,Math.max(s.g,0)),b:Math.min(255,Math.max(s.b,0)),a:u});this._originalInput=t,this._r=C.r,this._g=C.g,this._b=C.b,this._a=C.a,this._roundA=Math.round(100*this._a)/100,this._format=e.format||C.format,this._gradientType=e.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=C.ok}function s(t,e,n){t=M(t,255);var r,i,o=Math.max(t,e=M(e,255),n=M(n,255)),a=Math.min(t,e,n),s=(o+a)/2;if(o==a)r=i=0;else{var u=o-a;switch(i=s>.5?u/(2-o-a):u/(o+a),o){case t:r=(e-n)/u+6*(e<n);break;case e:r=(n-t)/u+2;break;case n:r=(t-e)/u+4}r/=6}return{h:r,s:i,l:s}}function u(t,e,n){t=M(t,255);var r,i=Math.max(t,e=M(e,255),n=M(n,255)),o=Math.min(t,e,n),a=i-o;if(i==o)r=0;else{switch(i){case t:r=(e-n)/a+6*(e<n);break;case e:r=(n-t)/a+2;break;case n:r=(t-e)/a+4}r/=6}return{h:r,s:0===i?0:a/i,v:i}}function l(t,e,n,r){var i=[O(Math.round(t).toString(16)),O(Math.round(e).toString(16)),O(Math.round(n).toString(16))];return r&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function c(t,e,n,r){return[O(C(r)),O(Math.round(t).toString(16)),O(Math.round(e).toString(16)),O(Math.round(n).toString(16))].join("")}function h(t,e){e=0===e?0:e||10;var n=a(t).toHsl();return n.s-=e/100,n.s=A(n.s),a(n)}function f(t,e){e=0===e?0:e||10;var n=a(t).toHsl();return n.s+=e/100,n.s=A(n.s),a(n)}function p(t){return a(t).desaturate(100)}function d(t,e){e=0===e?0:e||10;var n=a(t).toHsl();return n.l+=e/100,n.l=A(n.l),a(n)}function m(t,e){e=0===e?0:e||10;var n=a(t).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-(e/100*255)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-(e/100*255)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-(e/100*255)))),a(n)}function g(t,e){e=0===e?0:e||10;var n=a(t).toHsl();return n.l-=e/100,n.l=A(n.l),a(n)}function y(t,e){var n=a(t).toHsl(),r=(n.h+e)%360;return n.h=r<0?360+r:r,a(n)}function v(t){var e=a(t).toHsl();return e.h=(e.h+180)%360,a(e)}function b(t,e){if(isNaN(e)||e<=0)throw Error("Argument to polyad must be a positive number");for(var n=a(t).toHsl(),r=[a(t)],i=360/e,o=1;o<e;o++)r.push(a({h:(n.h+o*i)%360,s:n.s,l:n.l}));return r}function _(t){var e=a(t).toHsl(),n=e.h;return[a(t),a({h:(n+72)%360,s:e.s,l:e.l}),a({h:(n+216)%360,s:e.s,l:e.l})]}function E(t,e,n){e=e||6,n=n||30;var r=a(t).toHsl(),i=360/n,o=[a(t)];for(r.h=(r.h-(i*e>>1)+720)%360;--e;)r.h=(r.h+i)%360,o.push(a(r));return o}function x(t,e){e=e||6;for(var n=a(t).toHsv(),r=n.h,i=n.s,o=n.v,s=[],u=1/e;e--;)s.push(a({h:r,s:i,v:o})),o=(o+u)%1;return s}a.prototype={isDark:function(){return 128>this.getBrightness()},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 t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var t,e,n,r=this.toRgb();return t=r.r/255,e=r.g/255,.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.0722*((n=r.b/255)<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},setAlpha:function(t){return this._a=P(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=u(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=u(this._r,this._g,this._b),e=Math.round(360*t.h),n=Math.round(100*t.s),r=Math.round(100*t.v);return 1==this._a?"hsv("+e+", "+n+"%, "+r+"%)":"hsva("+e+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var t=s(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=s(this._r,this._g,this._b),e=Math.round(360*t.h),n=Math.round(100*t.s),r=Math.round(100*t.l);return 1==this._a?"hsl("+e+", "+n+"%, "+r+"%)":"hsla("+e+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(t){return l(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){var e,n,r,i,o,a;return e=this._r,n=this._g,r=this._b,i=this._a,o=t,a=[O(Math.round(e).toString(16)),O(Math.round(n).toString(16)),O(Math.round(r).toString(16)),O(C(i))],o&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*M(this._r,255))+"%",g:Math.round(100*M(this._g,255))+"%",b:Math.round(100*M(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*M(this._r,255))+"%, "+Math.round(100*M(this._g,255))+"%, "+Math.round(100*M(this._b,255))+"%)":"rgba("+Math.round(100*M(this._r,255))+"%, "+Math.round(100*M(this._g,255))+"%, "+Math.round(100*M(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(S[l(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e="#"+c(this._r,this._g,this._b,this._a),n=e,r=this._gradientType?"GradientType = 1, ":"";if(t){var i=a(t);n="#"+c(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+e+",endColorstr="+n+")"},toString:function(t){var e=!!t;t=t||this._format;var n=!1,r=this._a<1&&this._a>=0;return!e&&r&&("hex"===t||"hex6"===t||"hex3"===t||"hex4"===t||"hex8"===t||"name"===t)?"name"===t&&0===this._a?this.toName():this.toRgbString():("rgb"===t&&(n=this.toRgbString()),"prgb"===t&&(n=this.toPercentageRgbString()),("hex"===t||"hex6"===t)&&(n=this.toHexString()),"hex3"===t&&(n=this.toHexString(!0)),"hex4"===t&&(n=this.toHex8String(!0)),"hex8"===t&&(n=this.toHex8String()),"name"===t&&(n=this.toName()),"hsl"===t&&(n=this.toHslString()),"hsv"===t&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return a(this.toString())},_applyModification:function(t,e){var n=t.apply(null,[this].concat([].slice.call(e)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(d,arguments)},brighten:function(){return this._applyModification(m,arguments)},darken:function(){return this._applyModification(g,arguments)},desaturate:function(){return this._applyModification(h,arguments)},saturate:function(){return this._applyModification(f,arguments)},greyscale:function(){return this._applyModification(p,arguments)},spin:function(){return this._applyModification(y,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(E,arguments)},complement:function(){return this._applyCombination(v,arguments)},monochromatic:function(){return this._applyCombination(x,arguments)},splitcomplement:function(){return this._applyCombination(_,arguments)},triad:function(){return this._applyCombination(b,[3])},tetrad:function(){return this._applyCombination(b,[4])}},a.fromRatio=function(t,e){if("object"==r(t)){var n={};for(var i in t)t.hasOwnProperty(i)&&("a"===i?n[i]=t[i]:n[i]=k(t[i]));t=n}return a(t,e)},a.equals=function(t,e){return!!t&&!!e&&a(t).toRgbString()==a(e).toRgbString()},a.random=function(){return a.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},a.mix=function(t,e,n){n=0===n?0:n||50;var r=a(t).toRgb(),i=a(e).toRgb(),o=n/100;return a({r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a})},a.readability=function(t,e){var n=a(t),r=a(e);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)},a.isReadable=function(t,e,n){var r,i,o,s,u,l=a.readability(t,e);switch(u=!1,(i=((r=(r=n)||{level:"AA",size:"small"}).level||"AA").toUpperCase(),o=(r.size||"small").toLowerCase(),"AA"!==i&&"AAA"!==i&&(i="AA"),"small"!==o&&"large"!==o&&(o="small"),s={level:i,size:o}).level+s.size){case"AAsmall":case"AAAlarge":u=l>=4.5;break;case"AAlarge":u=l>=3;break;case"AAAsmall":u=l>=7}return u},a.mostReadable=function(t,e,n){var r,i,o,s,u=null,l=0;i=(n=n||{}).includeFallbackColors,o=n.level,s=n.size;
vendor: 1,583 bytes, line 393
393for(var c=0;c<e.length;c++)(r=a.readability(t,e[c]))>l&&(l=r,u=a(e[c]));return a.isReadable(t,u,{level:o,size:s})||!i?u:(n.includeFallbackColors=!1,a.mostReadable(t,["#fff","#000"],n))};var w=a.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:"90ee9
3930",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"},S=a.hexNames=function(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e}(w);function P(t){return(isNaN(t=parseFloat(t))||t<0||t>1)&&(t=1),t}function M(t,e){"string"==typeof(n=t)&&-1!=n.indexOf(".")&&1===parseFloat(n)&&(t="100%");var n,r,i="string"==typeof(r=t)&&-1!=r.indexOf("%");return(t=Math.min(e,Math.max(0,parseFloat(t))),i&&(t=parseInt(t*e,10)/100),1e-6>Math.abs(t-e))?1:t%e/parseFloat(e)}function A(t){return Math.min(1,Math.max(0,t))}function T(t){return parseInt(t,16)}function O(t){return 1==t.length?"0"+t:""+t}function k(t){return t<=1&&(t=100*t+"%"),t}function C(t){return Math.round(255*parseFloat(t)).toString(16)}var j=function(){var t="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)",e="[\\s|\\(]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")\\s*\\)?",n="[\\s|\\(]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")\\s*\\)?";return{CSS_UNIT:new RegExp(t),rgb:RegExp("rgb"+e),rgba:RegExp("rgba"+n),hsl:RegExp("hsl"+e),hsla:RegExp("hsla"+n),hsv:RegExp("hsv"+e),hsva:RegExp("hsva"
393+n),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 R(t){return!!j.CSS_UNIT.exec(t)}},52038:(t,e,n)=>{"use strict";n.d(e,{ph:()=>r});class r{constructor(){this._partials=new Float64Array(32),this._n=0}add(t){let e=this._partials,n=0;for(let r=0;r<this._n&&r<32;r++){let i=e[r],o=t+i,a=Math.abs(t)<Math.abs(i)?t-(o-i):i-(o-t);a&&(e[n++]=a),t=o}return e[n]=t,this._n=n+1,this}valueOf(){let t=this._partials,e=this._n,n,r,i,o=0;if(e>0){for(o=t[--e];e>0&&(o=(n=o)+(r=t[--e]),!(i=r-(o-n))););e>0&&(i<0&&t[e-1]<0||i>0&&t[e-1]>0)&&(n=o+(r=2*i),r==n-o&&(o=n))}return o}}},53341:t=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},58093:(t,e,n)=>{"use strict";n.d(e,{A:()=>g});var r=n(7813);function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function o(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw TypeError("Private element is not present on this object")}function a(t,e){return t.get(o(t,e))}function s(t,e,n){(function(t,e){if(e.has(t))throw TypeError("Cannot initialize the same private elements twice on an object")})(t,e),e.set(t,n)}function u(t,e,n){return t.set(o(t,e),n),n}function l(t,e){if(t){if("string"==typeof t)return i(t,e);var n=({}).toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}var c=new WeakMap,h=new WeakMap,f=new WeakMap,p=new WeakMap,d=new WeakMap,m=new WeakMap,g=function(){var t,e;return t=function t(){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");s(this,c,new Map),s(this,h,new Map),s(this,f,function(t){return t}),s(this,p,function(){return{}}),s(this,d,function(){}),s(this,m,function(){})},e=[{key:"getObj",value:function(t){return a(c,this).get(a(f,this).call(this,t))}},{key:"getData",value:function(t){return a(h,this).get(t)}},{key:"entries",value:function(){var t;return((function(t){if(Array.isArray(t))return i(t)})(t=a(h,this).entries())||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||l(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map(function(t){var e=function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,l=!1;try{o=(n=n.call(t)).next,!1;for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(t,2)||l(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),n=e[0];return[e[1],n]})}},{key:"id",value:function(t){return u(f,this,(0,r.A)(t)),this}},{key:"onCreateObj",value:function(t){return u(p,this,t),this}},{key:"onUpdateObj",value:function(t){return u(d,this,t),this}},{key:"onRemoveObj",value:function(t){return u(m,this,t),this}},{key:"digest",value:function(t){var e=this;t.filter(function(t){return!a(c,e).has(a(f,e).call(e,t))}).forEach(function(t){var n=a(p,e).call(e,t);a(c,e).set(a(f,e).call(e,t),n),a(h,e).set(n,t)});var n=new Map(t.map(function(t){return[a(f,e).call(e,t),t]}));return a(c,this).forEach(function(t,r){n.has(r)?a(d,e).call(e,t,n.get(r)):(a(m,e).call(e,t,r),a(c,e).delete(r),a(h,e).delete(t))}),this}},{key:"clear",value:function(){return this.digest([]),this}}],function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e);if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==typeof e?e:e+""}(r.key),r)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}()},61409:(t,e,n)=>{"use strict";n.d(e,{$t:()=>i,F2:()=>c,F8:()=>b,FA:()=>u,FP:()=>p,HQ:()=>w,Ml:()=>x,Ni:()=>
393r,RZ:()=>E,Rm:()=>v,TW:()=>a,_S:()=>_,bo:()=>P,dY:()=>y,gn:()=>d,gz:()=>s,mk:()=>m,oN:()=>g,pi:()=>o,qR:()=>S,rY:()=>f,tn:()=>h,uj:()=>l});var r=1e-6,i=1e-12,o=Math.PI,a=o/2,s=o/4,u=2*o,l=180/o,c=o/180,h=Math.abs,f=Math.atan,p=Math.atan2,d=Math.cos,m=Math.ceil,g=Math.exp,y=Math.hypot,v=Math.log,b=Math.sin,_=Math.sign||function(t){return t>0?1:t<0?-1:0},E=Math.sqrt,x=Math.tan;function w(t){return t>1?0:t<-1?o:Math.acos(t)}function S(t){return t>1?a:t<-1?-a:Math.asin(t)}function P(t){return(t=b(t/2))*t}},64596:(t,e,n)=>{"use strict";n.d(e,{v:()=>i});var r=n(35330);class i extends r.n{constructor(){super(),this.isLineGeometry=!0,this.type="LineGeometry"}setPositions(t){let e=t.length-3,n=new Float32Array(2*e);for(let r=0;r<e;r+=3)n[2*r]=t[r],n[2*r+1]=t[r+1],n[2*r+2]=t[r+2],n[2*r+3]=t[r+3],n[2*r+4]=t[r+4],n[2*r+5]=t[r+5];return super.setPositions(n),this}setColors(t){let e=t.length-3,n=new Float32Array(2*e);for(let r=0;r<e;r+=3)n[2*r]=t[r],n[2*r+1]=t[r+1],n[2*r+2]=t[r+2],n[2*r+3]=t[r+3],n[2*r+4]=t[r+4],n[2*r+5]=t[r+5];return super.setColors(n),this}setFromPoints(t){let e=t.length-1,n=new Float32Array(6*e);for(let r=0;r<e;r++)n[6*r]=t[r].x,n[6*r+1]=t[r].y,n[6*r+2]=t[r].z||0,n[6*r+3]=t[r+1].x,n[6*r+4]=t[r+1].y,n[6*r+5]=t[r+1].z||0;return super.setPositions(n),this}fromLine(t){let e=t.geometry;return this.setPositions(e.attributes.position.array),this}}},71716:(t,e,n)=>{"use strict";function r(t,e){return t*=1,e*=1,function(n){return t*(1-n)+e*n}}n.d(e,{A:()=>r})},71841:(t,e,n)=>{"use strict";n.d(e,{K:()=>i});var r=n(85339);r.aHM;class i{constructor(t){this.isFont=!0,this.type="Font",this.data=t}generateShapes(t,e=100,n="ltr"){let i=[],o=function(t,e,n,i){let o=Array.from(t),a=e/n.resolution,s=(n.boundingBox.yMax-n.boundingBox.yMin+n.underlineThickness)*a,u=[],l=0,c=0;("rtl"==i||"tb"==i)&&o.reverse();for(let t=0;t<o.length;t++){let e=o[t];if("\n"===e)l=0,c-=s;else{let t=function(t,e,n,i,o){let a,s,u,l,c,h,f,p,d=o.glyphs[t]||o.glyphs["?"];if(!d)return void console.error('THREE.Font: character "'+t+'" does not exists in font family '+o.familyName+".");let m=new r.Ld9;if(d.o){let t=d._cachedOutline||(d._cachedOutline=d.o.split(" "));for(let r=0,o=t.length;r<o;)switch(t[r++]){case"m":a=t[r++]*e+n,s=t[r++]*e+i,m.moveTo(a,s);break;case"l":a=t[r++]*e+n,s=t[r++]*e+i,m.lineTo(a,s);break;case"q":u=t[r++]*e+n,l=t[r++]*e+i,c=t[r++]*e+n,h=t[r++]*e+i,m.quadraticCurveTo(c,h,u,l);break;case"b":u=t[r++]*e+n,l=t[r++]*e+i,c=t[r++]*e+n,h=t[r++]*e+i,f=t[r++]*e+n,p=t[r++]*e+i,m.bezierCurveTo(c,h,f,p,u,l)}}return{offsetX:d.ha*e,path:m}}(e,a,l,c,n);"tb"==i?(l=0,c+=n.ascender*a):l+=t.offsetX,u.push(t.path)}}return u}(t,e,this.data,n);for(let t=0,e=o.length;t<e;t++)i.push(...o[t].toShapes());return i}}},73382:(t,e,n)=>{"use strict";n.d(e,{$:()=>a,A:()=>o});var r=n(97668),i=n(84121);function o(t,e){return((0,i.p)(e)?i.A:a)(t,e)}function a(t,e){var n,i=e?e.length:0,o=t?Math.min(i,t.length):0,a=Array(o),s=Array(i);for(n=0;n<o;++n)a[n]=(0,r.A)(t[n],e[n]);for(;n<i;++n)s[n]=e[n];return function(t){for(n=0;n<o;++n)s[n]=a[n](t);return s}}},73653:(t,e,n)=>{"use strict";n.d(e,{A:()=>y});var r=n(85339),i=n(91268),o=n(1529),a=n(5874),s=n(71716);function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(c=function(){return!!t})()}
393function h(t,e){return(h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function f(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(t,e)||p(t,e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(t,e){if(t){if("string"==typeof t)return u(t,e);var n=({}).toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}}var d=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=[],r=null;return t.forEach(function(t){if(r){var i=180*(0,o.A)(t,r)/Math.PI;if(i>e)for(var l=(0,a.A)(r,t),c=r.length>2||t.length>2?(0,s.A)(r[2]||0,t[2]||0):null,h=c?function(t){var e;return[].concat(function(t){if(Array.isArray(t))return u(t)}(e=l(t))||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||p(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[c(t)])}:l,f=1/Math.ceil(i/e),d=f;d<1;)n.push(h(d)),d+=f}n.push(r=t)}),n},m="undefined"!=typeof window&&window.THREE?window.THREE:{BufferGeometry:r.LoY,Float32BufferAttribute:r.qtW},g=new m.BufferGeometry().setAttribute?"setAttribute":"addAttribute",y=function(t){function e(t){var n,r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5;if(!(this instanceof e))throw TypeError("Cannot call a class as a function");n=l(n=e),(r=function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(this,c()?Reflect.construct(n,[],l(this).constructor):n.apply(this,void 0))).type="GeoJsonGeometry",r.parameters={geoJson:t,radius:o,resolution:a};var s=(({Point:y,MultiPoint:function(t,e){var n={vertices:[],indices:[]};return t.map(function(t){return y(t,e)}).forEach(function(t){v(n,f(t,1)[0])}),[n]},LineString:b,MultiLineString:function(t,e){var n={vertices:[],indices:[]};return t.map(function(t){return b(t,e)}).forEach(function(t){v(n,f(t,1)[0])}),[n]},Polygon:E,MultiPolygon:function(t,e){var n={vertices:[],indices:[]},r={vertices:[],indices:[]};t.map(function(t){return E(t,e)}).forEach(function(t){var e=f(t,2),i=e[0],o=e[1];v(n,i),o&&v(r,o)});var i=[n];return r.vertices.length&&i.push(r),i}})[t.type]||function(){return[]})(t.coordinates,o),u=[],h=[],p=0;function y(t,e){return[{vertices:_(t[1],t[0],e+(t[2]||0)),indices:[]}]}function b(t,e){for(var n=d(t,a).map(function(t){var n=f(t,3),r=n[0],i=n[1],o=n[2];return _(i,r,e+(void 0===o?0:o))}),r=(0,i.Bq)([n]).vertices,o=Math.round(r.length/3),s=[],u=1;u<o;u++)s.push(u-1,u);return[{vertices:r,indices:s}]}function E(t,e){for(var n=t.map(function(t){return d(t,a).map(function(t){var n=f(t,3),r=n[0],i=n[1],o=n[2];return _(i,r,e+(void 0===o?0:o))})}),r=(0,i.Bq)(n),o=r.vertices,s=r.holes,u=s[0]||1/0,l=o.slice(0,3*u),c=o.slice(3*u),h=new Set(s),p=Math.round(o.length/3),m=[],g=[],y=1;y<p;y++)h.has(y)||(y<u?m.push(y-1,y):g.push(y-1-u,y-u));var v=[{indices:m,vertices:l}];return s.length&&v.push({indices:g,vertices:c}),v}return s.forEach(function(t){var e=u.length;v({indices:u,vertices:h},t),r.addGroup(e,u.length-e,p++)}),u.length&&r.setIndex(u),h.length&&r[g]("position",new m.Float32BufferAttribute(h,3)),r}if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");return e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(m.BufferGeometry);function v(t,e){var n=Math.round(t.vertices.length/3);b(t.vertices,e.vertices),b(t.indices,e.indices.map(function(t){return t+n}))}function b(t,e){var n,r=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];
393if(!n){if(Array.isArray(t)||(n=p(t))){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}(e);try{for(r.s();!(n=r.n()).done;){var i=n.value;t.push(i)}}catch(t){r.e(t)}finally{r.f()}}function _(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=(90-t)*Math.PI/180,i=(90-e)*Math.PI/180;return[n*Math.sin(r)*Math.cos(i),n*Math.cos(r),n*Math.sin(r)*Math.sin(i)]}},73690:(t,e,n)=>{"use strict";function r(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function i(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function o(){}n.d(e,{Ay:()=>b,Qh:()=>x});var a="\\s*([+-]?\\d+)\\s*",s="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",u="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",l=/^#([0-9a-f]{3,8})$/,c=RegExp(`^rgb\\(${a},${a},${a}\\)$`),h=RegExp(`^rgb\\(${u},${u},${u}\\)$`),f=RegExp(`^rgba\\(${a},${a},${a},${s}\\)$`),p=RegExp(`^rgba\\(${u},${u},${u},${s}\\)$`),d=RegExp(`^hsl\\(${s},${u},${u}\\)$`),m=RegExp(`^hsla\\(${s},${u},${u},${s}\\)$`),g={aliceblue:0xf0f8ff,antiquewhite:0xfaebd7,aqua:65535,aquamarine:8388564,azure:0xf0ffff,beige:0xf5f5dc,bisque:0xffe4c4,black:0,blanchedalmond:0xffebcd,blue:255,blueviolet:9055202,brown:0xa52a2a,burlywood:0xdeb887,cadetblue:6266528,chartreuse:8388352,chocolate:0xd2691e,coral:0xff7f50,cornflowerblue:6591981,cornsilk:0xfff8dc,crimson:0xdc143c,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:0xb8860b,darkgray:0xa9a9a9,darkgreen:25600,darkgrey:0xa9a9a9,darkkhaki:0xbdb76b,darkmagenta:9109643,darkolivegreen:5597999,darkorange:0xff8c00,darkorchid:0x9932cc,darkred:9109504,darksalmon:0xe9967a,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:0xff1493,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:0xb22222,floralwhite:0xfffaf0,forestgreen:2263842,fuchsia:0xff00ff,gainsboro:0xdcdcdc,ghostwhite:0xf8f8ff,gold:0xffd700,goldenrod:0xdaa520,gray:8421504,green:32768,greenyellow:0xadff2f,grey:8421504,honeydew:0xf0fff0,hotpink:0xff69b4,indianred:0xcd5c5c,indigo:4915330,ivory:0xfffff0,khaki:0xf0e68c,lavender:0xe6e6fa,lavenderblush:0xfff0f5,lawngreen:8190976,lemonchiffon:0xfffacd,lightblue:0xadd8e6,lightcoral:0xf08080,lightcyan:0xe0ffff,lightgoldenrodyellow:0xfafad2,lightgray:0xd3d3d3,lightgreen:9498256,lightgrey:0xd3d3d3,lightpink:0xffb6c1,lightsalmon:0xffa07a,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:0xb0c4de,lightyellow:0xffffe0,lime:65280,limegreen:3329330,linen:0xfaf0e6,magenta:0xff00ff,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:0xba55d3,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:0xc71585,midnightblue:1644912,mintcream:0xf5fffa,mistyrose:0xffe4e1,moccasin:0xffe4b5,navajowhite:0xffdead,navy:128,oldlace:0xfdf5e6,olive:8421376,olivedrab:7048739,orange:0xffa500,orangered:0xff4500,orchid:0xda70d6,palegoldenrod:0xeee8aa,palegreen:0x98fb98,paleturquoise:0xafeeee,palevioletred:0xdb7093,papayawhip:0xffefd5,peachpuff:0xffdab9,peru:0xcd853f,pink:0xffc0cb,plum:0xdda0dd,powderblue:0xb0e0e6,purple:8388736,rebeccapurple:6697881,red:0xff0000,rosybrown:0xbc8f8f,royalblue:4286945,saddlebrown:9127187,salmon:0xfa8072,sandybrown:0xf4a460,seagreen:3050327,seashell:0xfff5ee,sienna:0xa0522d,silver:0xc0c0c0,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:0xfffafa,springgreen:65407,steelblue:4620980,tan:0xd2b48c,teal:32896,thistle:0xd8bfd8,tomato:0xff6347,turquoise:4251856,violet:0xee82ee,wheat:0xf5deb3,white:0xffffff,whitesmoke:0xf5f5f5,yellow:0xffff00,yellowgreen:0x9acd32};function y(){return this.rgb().formatHex()}function v(){return this.rgb().formatRgb()}function b(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=l.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?_(e):3===n?
393new w(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?E(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?E(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=c.exec(t))?new w(e[1],e[2],e[3],1):(e=h.exec(t))?new w(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=f.exec(t))?E(e[1],e[2],e[3],e[4]):(e=p.exec(t))?E(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=d.exec(t))?O(e[1],e[2]/100,e[3]/100,1):(e=m.exec(t))?O(e[1],e[2]/100,e[3]/100,e[4]):g.hasOwnProperty(t)?_(g[t]):"transparent"===t?new w(NaN,NaN,NaN,0):null}function _(t){return new w(t>>16&255,t>>8&255,255&t,1)}function E(t,e,n,r){return r<=0&&(t=e=n=NaN),new w(t,e,n,r)}function x(t,e,n,r){var i;return 1==arguments.length?((i=t)instanceof o||(i=b(i)),i)?new w((i=i.rgb()).r,i.g,i.b,i.opacity):new w:new w(t,e,n,null==r?1:r)}function w(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function S(){return`#${T(this.r)}${T(this.g)}${T(this.b)}`}function P(){let t=M(this.opacity);return`${1===t?"rgb(":"rgba("}${A(this.r)}, ${A(this.g)}, ${A(this.b)}${1===t?")":`, ${t})`}`}function M(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function A(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function T(t){return((t=A(t))<16?"0":"")+t.toString(16)}function O(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new C(t,e,n,r)}function k(t){if(t instanceof C)return new C(t.h,t.s,t.l,t.opacity);if(t instanceof o||(t=b(t)),!t)return new C;if(t instanceof C)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),a=Math.max(e,n,r),s=NaN,u=a-i,l=(a+i)/2;return u?(s=e===a?(n-r)/u+(n<r)*6:n===a?(r-e)/u+2:(e-n)/u+4,u/=l<.5?a+i:2-a-i,s*=60):u=l>0&&l<1?0:s,new C(s,u,l,t.opacity)}function C(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function j(t){return(t=(t||0)%360)<0?t+360:t}function R(t){return Math.max(0,Math.min(1,t||0))}function D(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}r(o,b,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:y,formatHex:y,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return k(this).formatHsl()},formatRgb:v,toString:v}),r(w,x,i(o,{brighter(t){return t=null==t?1.4285714285714286:Math.pow(1.4285714285714286,t),new w(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new w(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new w(A(this.r),A(this.g),A(this.b),M(this.opacity))},displayable(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:S,formatHex:S,formatHex8:function(){return`#${T(this.r)}${T(this.g)}${T(this.b)}${T((isNaN(this.opacity)?1:this.opacity)*255)}`},formatRgb:P,toString:P})),r(C,function(t,e,n,r){return 1==arguments.length?k(t):new C(t,e,n,null==r?1:r)},i(o,{brighter(t){return t=null==t?1.4285714285714286:Math.pow(1.4285714285714286,t),new C(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new C(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new w(D(t>=240?t-240:t+120,i,r),D(t,i,r),D(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new C(j(this.h),R(this.s),R(this.l),M(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let t=M(this.opacity);return`${1===t?"hsl(":"hsla("}${j(this.h)}, ${100*R(this.s)}%, ${100*R(this.l)}%${1===t?")":`, ${t})`}`}}))},79300:(t,e,n)=>{"use strict";n.d(e,{A:()=>nt});var r,i,o,a,s,u,l,c,h,f,p,d,m,g,y,v,b,_,E,x,w,S,P,M,A,T,O,k=n(85339);function C(t){return Array.from(function*(t){for(let e of t)yield*e}(t))}function j(t,e){let n,r;if(void 0===e)for(let e of t)null!=e&&(void 0===n?e>=e&&(n=r=e):(n>e&&(n=e),r<e&&(r=e)));else{let i=-1;for(let o of t)null!=(o=e(o,++i,t))&&(void 0===n?o>=o&&(n=r=o):(n>o&&(n=o),r<o&&(r=o)))}return[n,r]}var R=n(91268);let D=(3+8881784197001252e-31)*11102230246251565e-32;function L(t,e,n,r,i){let o,a,s,u,l=e[0],c=r[0],h=0,f=0;c>l==c>-l?(o=l,l=e[++h]):(o=c,c=r[++f]);let p=0;if(h<t&&f<n)for(c>l==c>-l?(a=l+o,s=o-(a-l),l=e[++h]):(a=c+o,s=o-(a-c),c=r[++f]),o=a,0!==s&&(i[p++]=s);h<t&&f<n;)c>l==c>-l?(u=(a=o+l)-o,s=o-(a-u)+(l-u),l=e[++h]):(u=(a=o+c)-o,s=o-(a-u)+(c-u),c=r[++f]),o=a,0!==s&&(i[p++]=s);for(;h<t;)u=(a=o+l)-o,s=o-(a-u)+(l-u),l=e[++h],o=a,0!==s&&(i[p++]=s);for(;f<n;)u=(a=o+c)-o,s=o-(a-u)+(c-u),c=r[++f],o=a,0!==s&&(i[p++]=s);return(0!==o||0===p)&&(i[p++]=o),p}function I(t){return new Float64Array(t)}let N=(3+17763568394002505e-31)*11102230246251565e-32,F=(2+13322676295501878e-31)*11102230246251565e-32,z=(9+7105427357601002e-30)*11102230246251565e-32*11102230246251565e-32,U=I(4),B=I(8),H=I(12),q=I(16),G=I(4);function V(t,e,n,r,i,o){let a=(e-o)*(n-i),s=(t-i)*(r-o),u=a-s,l=Math.abs(a+s);return Math.abs(u)>=N*l?u:-function(t,e,n,r,i,o,a){let s,u,l,c,h,f,p,d,m,g,y,v,b,_,E,x,w,S,P=t-i,M=n-i,A=e-o,T=r-o;_=P*T,p=(f=0x8000001*P)-(f-P),d=P-p,m=(f=0x8000001*T)-(f-T),E=d*(g=T-m)-(_-p*m-d*m-p*g),x=A*M,p=(f=0x8000001*A)-(f-A),d=A-p,m=(f=0x8000001*M)-(f-M),y=E-(w=d*(g=M-m)-(x-p*m-d*m-p*g)),h=E-y,U[0]=E-(y+h)+(h-w),h=(v=_+y)-_,y=(b=_-(v-h)+(y-h))-x,h=b-y,U[1]=b-(y+h)+(h-x),h=(S=v+y)-v,U[2]=v-(S-h)+(y-h),U[3]=S;let O=function(t,e){let n=e[0];for(let t=1;t<4;t++)n+=e[t];return n}(0,U),k=F*a;if(O>=k||-O>=k||(h=t-P,s=t-(P+h)+(h-i),h=n-M,l=n-(M+h)+(h-i),h=e-A,u=e-(A+h)+(h-o),h=r-T,c=r-(T+h)+(h-o),0===s&&0===u&&0===l&&0===c)||(k=z*a+D*Math.abs(O),(O+=P*c+T*s-(A*l+M*u))>=k||-O>=k))return O;_=s*T,p=(f=0x8000001*s)-(f-s),d=s-p,m=(f=0x8000001*T)-(f-T),E=d*(g=T-m)-(_-p*m-d*m-p*g),x=u*M,p=(f=0x8000001*u)-(f-u),d=u-p,m=(f=0x8000001*M)-(f-M),y=E-(w=d*(g=M-m)-(x-p*m-d*m-p*g)),h=E-y,G[0]=E-(y+h)+(h-w),h=(v=_+y)-_,y=(b=_-(v-h)+(y-h))-x,h=b-y,G[1]=b-(y+h)+(h-x),h=(S=v+y)-v,G[2]=v-(S-h)+(y-h),G[3]=S;let C=L(4,U,4,G,B);_=P*c,p=(f=0x8000001*P)-(f-P),d=P-p,m=(f=0x8000001*c)-(f-c),E=d*(g=c-m)-(_-p*m-d*m-p*g),x=A*l,p=(f=0x8000001*A)-(f-A),d=A-p,m=(f=0x8000001*l)-(f-l),y=E-(w=d*(g=l-m)-(x-p*m-d*m-p*g)),h=E-y,G[0]=E-(y+h)+(h-w),h=(v=_+y)-_,y=(b=_-(v-h)+(y-h))-x,h=b-y,G[1]=b-(y+h)+(h-x),h=(S=v+y)-v,G[2]=v-(S-h)+(y-h),G[3]=S;let j=L(C,B,4,G,H);_=s*c,p=(f=0x8000001*s)-(f-s),d=s-p,m=(f=0x8000001*c)-(f-c),E=d*(g=c-m)-(_-p*m-d*m-p*g),x=u*l,p=(f=0x8000001*u)-(f-u),d=u-p,m=(f=0x8000001*l)-(f-l),y=E-(w=d*(g=l-m)-(x-p*m-d*m-p*g)),h=E-y,G[0]=E-(y+h)+(h-w),h=(v=_+y)-_,y=(b=_-(v-h)+(y-h))-x,h=b-y,G[1]=b-(y+h)+(h-x),h=(S=v+y)-v,G[2]=v-(S-h)+(y-h),G[3]=S;let R=L(j,H,4,G,q);return q[R-1]}(t,e,n,r,i,o,l)}I(4),I(4),I(4),I(4),I(4),I(4),I(4),I(4),I(4),I(8),I(8),I(8),I(4),I(8),I(8),I(8),I(12),I(192),I(192),I(4),I(4),I(4),I(4),I(4),I(4),I(4),I(4),I(8),I(8),I(8),I(8),I(8),I(8),I(8),I(8),I(8),I(4),I(4),I(4),I(8),I(16),I(16),I(16),I(32),I(32),I(48),I(64),I(1152),I(1152),I(4),I(4),I(4),I(4),I(4),I(4),I(4),I(4),I(4),I(4),I(24),I(24),I(24),I(24),I(24),I(24),I(24),I(24),I(24),I(24),I(1152),I(1152),I(1152),I(1152),I(1152),I(2304),I(2304),I(3456),I(5760),I(8),I(8),I(8),I(16),I(24),I(48),I(48),I(96),I(192),I(384),I(384),I(384),I(768),I(96),I(96),I(96),I(1152);let W=new Uint32Array(512);class Y{static from(t,e=K,n=Q){let r=t.length,i=new Float64Array(2*r);for(let o=0;o<r;o++){let r=t[o];i[2*o]=e(r),i[2*o+1]=n(r)}return new Y(i)}constructor(t){let e=t.length>>1;if(e>0&&"number"!=typeof t[0])throw Error("Expected coords to contain numbers.");this.coords=t;let n=Math.max(2*e-5,0);this._triangles=new Uint32Array(3*n),this._halfedges=new Int32Array(3*n),this._hashSize=Math.ceil(Math.sqrt(e)),this._hullPrev=new Uint32Array(e),this._hullNext=new Uint32Array(e),this._hullTri=new Uint32Array(e),this._hullHash=new Int32Array(this._hashSize),this._ids=new Uint32Array(e),this._dists=new Float64Array(e),this.update()}update(){let t,e,n,{coords:r,_hullPrev:i,_hullNext:o,_hullTri:a,_hullHash:s}=this,u=r.length>>1,l=1/0,c=1/0,h=-1/0,f=-1/0;for(let t=0;t<u;t++){let e=r[2*t],n=r[2*t+1];e<l&&(l=e),n<c&&(c=n),e>h&&(h=e),n>f&&(f=n),this._ids[t]=t}let p=(l+h)/2,d=(c+f)/2;for(let e=0,n=1/0;e<u;e++){let i=Z(p,d,r[2*e],r[2*e+1]);i<n&&(t=e,n=i)}let m=r[2*t],g=r[2*t+1];for(let n=0,i=1/0;n<u;n++){if(n===t)continue;let o=Z(m,g,r[2*n],r[2*n+1]);o<i&&o>0&&(e=n,i=o)}let y=r[2*e],v=r[2*e+1],b=1/0;for(let i=0;i<u;i++){if(i===t||i===e)continue;let o=function(t,e,n,r,i,o){let a=n-t,s=r-e,u=i-t,l=o-e,c=a*a+s*s,h=u*u+l*l,f=.5/(a*l-s*u),p=(l*c-s*h)*f,d=(a*h-u*c)*f;
393return p*p+d*d}(m,g,y,v,r[2*i],r[2*i+1]);o<b&&(n=i,b=o)}let _=r[2*n],E=r[2*n+1];if(b===1/0){for(let t=0;t<u;t++)this._dists[t]=r[2*t]-r[0]||r[2*t+1]-r[1];$(this._ids,this._dists,0,u-1);let t=new Uint32Array(u),e=0;for(let n=0,r=-1/0;n<u;n++){let i=this._ids[n],o=this._dists[i];o>r&&(t[e++]=i,r=o)}this.hull=t.subarray(0,e),this.triangles=new Uint32Array(0),this.halfedges=new Uint32Array(0);return}if(0>V(m,g,y,v,_,E)){let t=e,r=y,i=v;e=n,y=_,v=E,n=t,_=r,E=i}let x=function(t,e,n,r,i,o){let a=n-t,s=r-e,u=i-t,l=o-e,c=a*a+s*s,h=u*u+l*l,f=.5/(a*l-s*u);return{x:t+(l*c-s*h)*f,y:e+(a*h-u*c)*f}}(m,g,y,v,_,E);this._cx=x.x,this._cy=x.y;for(let t=0;t<u;t++)this._dists[t]=Z(r[2*t],r[2*t+1],x.x,x.y);$(this._ids,this._dists,0,u-1),this._hullStart=t;let w=3;o[t]=i[n]=e,o[e]=i[t]=n,o[n]=i[e]=t,a[t]=0,a[e]=1,a[n]=2,s.fill(-1),s[this._hashKey(m,g)]=t,s[this._hashKey(y,v)]=e,s[this._hashKey(_,E)]=n,this.trianglesLen=0,this._addTriangle(t,e,n,-1,-1,-1);for(let u=0,l,c;u<this._ids.length;u++){let h=this._ids[u],f=r[2*h],p=r[2*h+1];if(u>0&&2220446049250313e-31>=Math.abs(f-l)&&2220446049250313e-31>=Math.abs(p-c)||(l=f,c=p,h===t||h===e||h===n))continue;let d=0;for(let t=0,e=this._hashKey(f,p);t<this._hashSize&&(-1===(d=s[(e+t)%this._hashSize])||d===o[d]);t++);let m=d=i[d],g;for(;g=o[m],V(f,p,r[2*m],r[2*m+1],r[2*g],r[2*g+1])>=0;)if((m=g)===d){m=-1;break}if(-1===m)continue;let y=this._addTriangle(m,h,o[m],-1,-1,a[m]);a[h]=this._legalize(y+2),a[m]=y,w++;let v=o[m];for(;g=o[v],0>V(f,p,r[2*v],r[2*v+1],r[2*g],r[2*g+1]);)y=this._addTriangle(v,h,g,a[h],-1,a[v]),a[h]=this._legalize(y+2),o[v]=v,w--,v=g;if(m===d)for(;0>V(f,p,r[2*(g=i[m])],r[2*g+1],r[2*m],r[2*m+1]);)y=this._addTriangle(g,h,m,-1,a[m],a[g]),this._legalize(y+2),a[g]=y,o[m]=m,w--,m=g;this._hullStart=i[h]=m,o[m]=i[v]=h,o[h]=v,s[this._hashKey(f,p)]=h,s[this._hashKey(r[2*m],r[2*m+1])]=m}this.hull=new Uint32Array(w);for(let t=0,e=this._hullStart;t<w;t++)this.hull[t]=e,e=o[e];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)}_hashKey(t,e){return Math.floor(function(t,e){let n=t/(Math.abs(t)+Math.abs(e));return(e>0?3-n:1+n)/4}(t-this._cx,e-this._cy)*this._hashSize)%this._hashSize}_legalize(t){let{_triangles:e,_halfedges:n,coords:r}=this,i=0,o=0;for(;;){let a=n[t],s=t-t%3;if(o=s+(t+2)%3,-1===a){if(0===i)break;t=W[--i];continue}let u=a-a%3,l=s+(t+1)%3,c=u+(a+2)%3,h=e[o],f=e[t],p=e[l],d=e[c];if(function(t,e,n,r,i,o,a,s){let u=t-a,l=e-s,c=n-a,h=r-s,f=i-a,p=o-s,d=c*c+h*h,m=f*f+p*p;return u*(h*m-d*p)-l*(c*m-d*f)+(u*u+l*l)*(c*p-h*f)<0}(r[2*h],r[2*h+1],r[2*f],r[2*f+1],r[2*p],r[2*p+1],r[2*d],r[2*d+1])){e[t]=d,e[a]=h;let r=n[c];if(-1===r){let e=this._hullStart;do{if(this._hullTri[e]===c){this._hullTri[e]=t;break}e=this._hullPrev[e]}while(e!==this._hullStart)}this._link(t,r),this._link(a,n[o]),this._link(o,c);let s=u+(a+1)%3;i<W.length&&(W[i++]=s)}else{if(0===i)break;t=W[--i]}}return o}_link(t,e){this._halfedges[t]=e,-1!==e&&(this._halfedges[e]=t)}_addTriangle(t,e,n,r,i,o){let a=this.trianglesLen;return this._triangles[a]=t,this._triangles[a+1]=e,this._triangles[a+2]=n,this._link(a,r),this._link(a+1,i),this._link(a+2,o),this.trianglesLen+=3,a}}function Z(t,e,n,r){let i=t-n,o=e-r;return i*i+o*o}function $(t,e,n,r){if(r-n<=20)for(let i=n+1;i<=r;i++){let r=t[i],o=e[r],a=i-1;for(;a>=n&&e[t[a]]>o;)t[a+1]=t[a--];t[a+1]=r}else{let i=n+r>>1,o=n+1,a=r;X(t,i,o),e[t[n]]>e[t[r]]&&X(t,n,r),e[t[o]]>e[t[r]]&&X(t,o,r),e[t[n]]>e[t[o]]&&X(t,n,o);let s=t[o],u=e[s];for(;;){do o++;while(e[t[o]]<u);do a--;while(e[t[a]]>u);if(a<o)break;X(t,o,a)}t[n+1]=t[a],t[a]=s,r-o+1>=a-n?($(t,e,o,r),$(t,e,n,a-1)):($(t,e,n,a-1),$(t,e,o,r))}}function X(t,e,n){let r=t[e];t[e]=t[n],t[n]=r}function K(t){return t[0]}function Q(t){return t[1]}var J,tt,te,tn,tr,ti=function(t,e,n={}){if(!t)throw Error("point is required");if(!e)throw Error("polygon is required");
393let r=function(t){if(!t)throw Error("coord is required");if(!Array.isArray(t)){if("Feature"===t.type&&null!==t.geometry&&"Point"===t.geometry.type)return[...t.geometry.coordinates];if("Point"===t.type)return[...t.coordinates]}if(Array.isArray(t)&&t.length>=2&&!Array.isArray(t[0])&&!Array.isArray(t[1]))return[...t];throw Error("coord must be GeoJSON Point or an Array of numbers")}(t),i="Feature"===e.type?e.geometry:e,o=i.type,a=e.bbox,s=i.coordinates;if(a&&!1==(l=r,(c=a)[0]<=l[0]&&c[1]<=l[1]&&c[2]>=l[0]&&c[3]>=l[1]))return!1;"Polygon"===o&&(s=[s]);let u=!1;for(var l,c,h=0;h<s.length;++h){let t=function(t,e){var n,r,i,o,a,s,u,l,c,h=0,f=t[0],p=t[1],d=e.length;for(n=0;n<d;n++){r=0;var m=e[n],g=m.length-1;if((l=m[0])[0]!==m[g][0]&&l[1]!==m[g][1])throw Error("First and last coordinates in a ring must be the same");for(o=l[0]-f,a=l[1]-p;r<g;r++){if(s=(c=m[r+1])[0]-f,u=c[1]-p,0===a&&0===u){if(s<=0&&o>=0||o<=0&&s>=0)return 0}else if(u>=0&&a<=0||u<=0&&a>=0){if(0===(i=V(o,s,a,u,0,0)))return 0;(i>0&&u>0&&a<=0||i<0&&u<=0&&a>0)&&h++}l=c,a=u,o=s}}return h%2!=0}(r,s[h]);if(0===t)return!n.ignoreBoundary;t&&(u=!0)}return u},to=n(52038),ta=n(61409),ts=n(21755),tu=new to.ph,tl=new to.ph,tc={point:ts.A,lineStart:ts.A,lineEnd:ts.A,polygonStart:function(){tu=new to.ph,tc.lineStart=th,tc.lineEnd=tf},polygonEnd:function(){var t=+tu;tl.add(t<0?ta.FA+t:t),this.lineStart=this.lineEnd=this.point=ts.A},sphere:function(){tl.add(ta.FA)}};function th(){tc.point=tp}function tf(){td(J,tt)}function tp(t,e){tc.point=td,J=t,tt=e,t*=ta.F2,e*=ta.F2,te=t,tn=(0,ta.gn)(e=e/2+ta.gz),tr=(0,ta.F8)(e)}function td(t,e){t*=ta.F2,e*=ta.F2,e=e/2+ta.gz;var n=t-te,r=n>=0?1:-1,i=r*n,o=(0,ta.gn)(e),a=(0,ta.F8)(e),s=tr*a,u=tn*o+s*(0,ta.gn)(i),l=s*r*(0,ta.F8)(i);tu.add((0,ta.FP)(l,u)),te=t,tn=o,tr=a}function tm(t){return[(0,ta.FP)(t[1],t[0]),(0,ta.qR)(t[2])]}function tg(t){var e=t[0],n=t[1],r=(0,ta.gn)(n);return[r*(0,ta.gn)(e),r*(0,ta.F8)(e),(0,ta.F8)(n)]}function ty(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function tv(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function tb(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function t_(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function tE(t){var e=(0,ta.RZ)(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}var tx=n(15651),tw={point:tS,lineStart:tM,lineEnd:tA,polygonStart:function(){tw.point=tT,tw.lineStart=tO,tw.lineEnd=tk,h=new to.ph,tc.polygonStart()},polygonEnd:function(){tc.polygonEnd(),tw.point=tS,tw.lineStart=tM,tw.lineEnd=tA,tu<0?(r=-(o=180),i=-(a=90)):h>ta.Ni?a=90:h<-ta.Ni&&(i=-90),p[0]=r,p[1]=o},sphere:function(){r=-(o=180),i=-(a=90)}};function tS(t,e){f.push(p=[r=t,o=t]),e<i&&(i=e),e>a&&(a=e)}function tP(t,e){var n=tg([t*ta.F2,e*ta.F2]);if(c){var u=tv(c,n),l=tv([u[1],-u[0],0],u);tE(l),l=tm(l);var h,d=t-s,m=d>0?1:-1,g=l[0]*ta.uj*m,y=(0,ta.tn)(d)>180;y^(m*s<g&&g<m*t)?(h=l[1]*ta.uj)>a&&(a=h):y^(m*s<(g=(g+360)%360-180)&&g<m*t)?(h=-l[1]*ta.uj)<i&&(i=h):(e<i&&(i=e),e>a&&(a=e)),y?t<s?tC(r,t)>tC(r,o)&&(o=t):tC(t,o)>tC(r,o)&&(r=t):o>=r?(t<r&&(r=t),t>o&&(o=t)):t>s?tC(r,t)>tC(r,o)&&(o=t):tC(t,o)>tC(r,o)&&(r=t)}else f.push(p=[r=t,o=t]);e<i&&(i=e),e>a&&(a=e),c=n,s=t}function tM(){tw.point=tP}function tA(){p[0]=r,p[1]=o,tw.point=tS,c=null}function tT(t,e){if(c){var n=t-s;h.add((0,ta.tn)(n)>180?n+(n>0?360:-360):n)}else u=t,l=e;tc.point(t,e),tP(t,e)}function tO(){tc.lineStart()}function tk(){tT(u,l),tc.lineEnd(),(0,ta.tn)(h)>ta.Ni&&(r=-(o=180)),p[0]=r,p[1]=o,c=null}function tC(t,e){return(e-=t)<0?e+360:e}function tj(t,e){return t[0]-e[0]}function tR(t,e){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:e<t[0]||t[1]<e}function tD(t){var e,n,s,u,l,c,h;if(a=o=-(r=i=1/0),f=[],(0,tx.A)(t,tw),n=f.length){for(f.sort(tj),e=1,l=[s=f[0]];e<n;++e)tR(s,(u=f[e])[0])||tR(s,u[1])?(tC(s[0],u[1])>tC(s[0],s[1])&&(s[1]=u[1]),tC(u[0],s[1])>tC(s[0],s[1])&&(s[0]=u[0])):l.push(s=u);for(c=-1/0,n=l.length-1,e=0,s=l[n];e<=n;s=u,++e)u=l[e],(h=tC(s[1],u[0]))>c&&(c=h,r=u[0],o=s[1])}return f=p=null,r===1/0||i===1/0?[[NaN,NaN],[NaN,NaN]]:[[r,i],[o,a]]}var tL=n(1529),tI=n(5874);function tN(t){return(0,ta.tn)(t[0])<=ta.pi?t[0]:(0,ta._S)(t[0])*(((0,ta.tn)(t[0])+ta.pi)%ta.FA-ta.pi)}function tF(t,e){var n=tN(e),r=e[1],i=(0,ta.F8)(r),o=[(0,ta.F8)(n),-(0,ta.gn)(n),0],a=0,s=0,u=new to.ph;1===i?r=ta.TW+ta.Ni:-1===i&&(r=-ta.TW-ta.Ni);for(var l=0,c=t.length;l<c;
393++l)if(f=(h=t[l]).length)for(var h,f,p=h[f-1],d=tN(p),m=p[1]/2+ta.gz,g=(0,ta.F8)(m),y=(0,ta.gn)(m),v=0;v<f;++v,d=_,g=x,y=w,p=b){var b=h[v],_=tN(b),E=b[1]/2+ta.gz,x=(0,ta.F8)(E),w=(0,ta.gn)(E),S=_-d,P=S>=0?1:-1,M=P*S,A=M>ta.pi,T=g*x;if(u.add((0,ta.FP)(T*P*(0,ta.F8)(M),y*w+T*(0,ta.gn)(M))),a+=A?S+P*ta.FA:S,A^d>=n^_>=n){var O=tv(tg(p),tg(b));tE(O);var k=tv(o,O);tE(k);var C=(A^S>=0?-1:1)*(0,ta.qR)(k[2]);(r>C||r===C&&(O[0]||O[1]))&&(s+=A^S>=0?1:-1)}}return(a<-ta.Ni||a<ta.Ni&&u<-ta.$t)^1&s}var tz={Feature:function(t,e){return tB(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r<i;)if(tB(n[r].geometry,e))return!0;return!1}},tU={Sphere:function(){return!0},Point:function(t,e){return tH(t.coordinates,e)},MultiPoint:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)if(tH(n[r],e))return!0;return!1},LineString:function(t,e){return tq(t.coordinates,e)},MultiLineString:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)if(tq(n[r],e))return!0;return!1},Polygon:function(t,e){return tG(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)if(tG(n[r],e))return!0;return!1},GeometryCollection:function(t,e){for(var n=t.geometries,r=-1,i=n.length;++r<i;)if(tB(n[r],e))return!0;return!1}};function tB(t,e){return!!(t&&tU.hasOwnProperty(t.type))&&tU[t.type](t,e)}function tH(t,e){return 0===(0,tL.A)(t,e)}function tq(t,e){for(var n,r,i,o=0,a=t.length;o<a;o++){if(0===(r=(0,tL.A)(t[o],e))||o>0&&(i=(0,tL.A)(t[o],t[o-1]))>0&&n<=i&&r<=i&&(n+r-i)*(1-Math.pow((n-r)/i,2))<ta.$t*i)return!0;n=r}return!1}function tG(t,e){return!!tF(t.map(tV),tW(e))}function tV(t){return(t=t.map(tW)).pop(),t}function tW(t){return[t[0]*ta.F2,t[1]*ta.F2]}var tY={sphere:ts.A,point:tZ,lineStart:tX,lineEnd:tJ,polygonStart:function(){tY.lineStart=t0,tY.lineEnd=t1},polygonEnd:function(){tY.lineStart=tX,tY.lineEnd=tJ}};function tZ(t,e){t*=ta.F2,e*=ta.F2;var n=(0,ta.gn)(e);t$(n*(0,ta.gn)(t),n*(0,ta.F8)(t),(0,ta.F8)(e))}function t$(t,e,n){++d,g+=(t-g)/d,y+=(e-y)/d,v+=(n-v)/d}function tX(){tY.point=tK}function tK(t,e){t*=ta.F2,e*=ta.F2;var n=(0,ta.gn)(e);A=n*(0,ta.gn)(t),T=n*(0,ta.F8)(t),O=(0,ta.F8)(e),tY.point=tQ,t$(A,T,O)}function tQ(t,e){t*=ta.F2,e*=ta.F2;var n=(0,ta.gn)(e),r=n*(0,ta.gn)(t),i=n*(0,ta.F8)(t),o=(0,ta.F8)(e),a=(0,ta.FP)((0,ta.RZ)((a=T*o-O*i)*a+(a=O*r-A*o)*a+(a=A*i-T*r)*a),A*r+T*i+O*o);m+=a,b+=a*(A+(A=r)),_+=a*(T+(T=i)),E+=a*(O+(O=o)),t$(A,T,O)}function tJ(){tY.point=tZ}function t0(){tY.point=t2}function t1(){t3(P,M),tY.point=tZ}function t2(t,e){P=t,M=e,t*=ta.F2,e*=ta.F2,tY.point=t3;var n=(0,ta.gn)(e);A=n*(0,ta.gn)(t),T=n*(0,ta.F8)(t),O=(0,ta.F8)(e),t$(A,T,O)}function t3(t,e){t*=ta.F2,e*=ta.F2;var n=(0,ta.gn)(e),r=n*(0,ta.gn)(t),i=n*(0,ta.F8)(t),o=(0,ta.F8)(e),a=T*o-O*i,s=O*r-A*o,u=A*i-T*r,l=(0,ta.dY)(a,s,u),c=(0,ta.qR)(l),h=l&&-c/l;x.add(h*a),w.add(h*s),S.add(h*u),m+=c,b+=c*(A+(A=r)),_+=c*(T+(T=i)),E+=c*(O+(O=o)),t$(A,T,O)}function t5(t){d=m=g=y=v=b=_=E=0,x=new to.ph,w=new to.ph,S=new to.ph,(0,tx.A)(t,tY);var e=+x,n=+w,r=+S,i=(0,ta.dY)(e,n,r);return i<ta.$t&&(e=b,n=_,r=E,m<ta.Ni&&(e=g,n=y,r=v),(i=(0,ta.dY)(e,n,r))<ta.$t)?[NaN,NaN]:[(0,ta.FP)(n,e)*ta.uj,(0,ta.qR)(r/i)*ta.uj]}class t8{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(t,e){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(t,e){this._+=`L${this._x1=+t},${this._y1=+e}`}arc(t,e,n){t*=1,e*=1,n*=1;let r=t+n,i=e;if(n<0)throw Error("negative radius");null===this._x1?this._+=`M${r},${i}`:(Math.abs(this._x1-r)>1e-6||Math.abs(this._y1-i)>1e-6)&&(this._+="L"+r+","+i),n&&(this._+=`A${n},${n},0,1,1,${t-n},${e}A${n},${n},0,1,1,${this._x1=r},${this._y1=i}`)}rect(t,e,n,r){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${+n}v${+r}h${-n}Z`}value(){return this._||null}}class t4{constructor(){this._=[]}moveTo(t,e){this._.push([t,e])}closePath(){this._.push(this._[0].slice())}lineTo(t,e){this._.push([t,e])}value(){return this._.length?this._:null}}class t6{constructor(t,[e,n,r,i]=[0,0,960,500]){if(!((r*=1)>=(e*=1))||!((i*=1)>=(n*=1)))throw Error("invalid bounds");this.delaunay=t,this._circumcenters=new Float64Array(2*t.points.length),this.vectors=new Float64Array(2*t.points.length),this.xmax=r,this.xmin=e,this.ymax=i,this.ymin=n,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){let t,e,{delaunay:{points:n,hull:r,triangles:i},vectors:o}=this,a=this.circumcenters=this._circumcenters.subarray(0,i.length/3*2);for(let o=0,s=0,u=i.length,l,c;o<u;o+=3,s+=2){let u=2*i[o],h=2*i[o+1],f=2*i[o+2],p=n[u],d=n[u+1],m=n[h],g=n[h+1],y=n[f],v=n[f+1],b=m-p,_=g-d,E=y-p,x=v-d,w=(b*x-_*E)*2;if(1e-9>Math.abs(w)){if(void 0===t){for(let i of(t=e=0,r))t+=n[2*i],e+=n[2*i+1];t/=r.length,e/=r.length}let i=1e9*Math.sign((t-p)*x-(e-d)*E);l=(p+y)/2-i*x,c=(d+v)/2+i*E}else{let t=1/w,e=b*b+_*_,n=E*E+x*x;l=p+(x*e-_*n)*t,c=d+(b*n-E*e)*t}a[s]=l,a[s+1]=c}let s=r[r.length-1],u,l=4*s,c,h=n[2*s],f,p=n[2*s+1];o.fill(0);for(let t=0;t<r.length;++t)s=r[t],u=l,c=h,f=p,l=4*s,h=n[2*s],p=n[2*s+1],o[u+2]=o[l]=f-p,o[u+3]=o[l+1]=h-c}render(t){let e=null==t?t=new t8:void 0,{delaunay:{halfedges:n,inedges:r,hull:i},circumcenters:o,vectors:a}=this;if(i.length<=1)return null;for(let e=0,r=n.length;e<r;++e){let r=n[e];if(r<e)continue;let i=2*Math.floor(e/3),a=2*Math.floor(r/3),s=o[i],u=o[i+1],l=o[a],c=o[a+1];this._renderSegment(s,u,l,c,t)}let s,u=i[i.length-1];for(let e=0;e<i.length;++e){s=u;let n=2*Math.floor(r[u=i[e]]/3),l=o[n],c=o[n+1],h=4*s,f=this._project(l,c,a[h+2],a[h+3]);f&&this._renderSegment(l,c,f[0],f[1],t)}return e&&e.value()}renderBounds(t){let e=null==t?t=new t8:void 0;return t.rect(this.xmin,this.ymin,this.xmax-this.xmin,this.ymax-this.ymin),e&&e.value()}renderCell(t,e){let n=null==e?e=new t8:void 0,r=this._clip(t);if(null===r||!r.length)return;e.moveTo(r[0],r[1]);let i=r.length;for(;r[0]===r[i-2]&&r[1]===r[i-1]&&i>1;)i-=2;for(let t=2;t<i;t+=2)(r[t]!==r[t-2]||r[t+1]!==r[t-1])&&e.lineTo(r[t],r[t+1]);
393return e.closePath(),n&&n.value()}*cellPolygons(){let{delaunay:{points:t}}=this;for(let e=0,n=t.length/2;e<n;++e){let t=this.cellPolygon(e);t&&(t.index=e,yield t)}}cellPolygon(t){let e=new t4;return this.renderCell(t,e),e.value()}_renderSegment(t,e,n,r,i){let o,a=this._regioncode(t,e),s=this._regioncode(n,r);0===a&&0===s?(i.moveTo(t,e),i.lineTo(n,r)):(o=this._clipSegment(t,e,n,r,a,s))&&(i.moveTo(o[0],o[1]),i.lineTo(o[2],o[3]))}contains(t,e,n){return(e*=1)==e&&(n*=1)==n&&this.delaunay._step(t,e,n)===t}*neighbors(t){let e=this._clip(t);if(e)for(let n of this.delaunay.neighbors(t)){let t=this._clip(n);if(t){n:for(let r=0,i=e.length;r<i;r+=2)for(let o=0,a=t.length;o<a;o+=2)if(e[r]===t[o]&&e[r+1]===t[o+1]&&e[(r+2)%i]===t[(o+a-2)%a]&&e[(r+3)%i]===t[(o+a-1)%a]){yield n;break n}}}}_cell(t){let{circumcenters:e,delaunay:{inedges:n,halfedges:r,triangles:i}}=this,o=n[t];if(-1===o)return null;let a=[],s=o;do{let n=Math.floor(s/3);if(a.push(e[2*n],e[2*n+1]),i[s=s%3==2?s-2:s+1]!==t)break;s=r[s]}while(s!==o&&-1!==s);return a}_clip(t){if(0===t&&1===this.delaunay.hull.length)return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];let e=this._cell(t);if(null===e)return null;let{vectors:n}=this,r=4*t;return this._simplify(n[r]||n[r+1]?this._clipInfinite(t,e,n[r],n[r+1],n[r+2],n[r+3]):this._clipFinite(t,e))}_clipFinite(t,e){let n=e.length,r=null,i,o,a=e[n-2],s=e[n-1],u,l=this._regioncode(a,s),c,h=0;for(let f=0;f<n;f+=2)if(i=a,o=s,a=e[f],s=e[f+1],u=l,l=this._regioncode(a,s),0===u&&0===l)c=h,h=0,r?r.push(a,s):r=[a,s];else{let e,n,f,p,d;if(0===u){if(null===(e=this._clipSegment(i,o,a,s,u,l)))continue;[n,f,p,d]=e}else{if(null===(e=this._clipSegment(a,s,i,o,l,u)))continue;[p,d,n,f]=e,c=h,h=this._edgecode(n,f),c&&h&&this._edge(t,c,h,r,r.length),r?r.push(n,f):r=[n,f]}c=h,h=this._edgecode(p,d),c&&h&&this._edge(t,c,h,r,r.length),r?r.push(p,d):r=[p,d]}if(r)c=h,h=this._edgecode(r[0],r[1]),c&&h&&this._edge(t,c,h,r,r.length);else if(this.contains(t,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2))return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];return r}_clipSegment(t,e,n,r,i,o){let a=i<o;for(a&&([t,e,n,r,i,o]=[n,r,t,e,o,i]);;){if(0===i&&0===o)return a?[n,r,t,e]:[t,e,n,r];if(i&o)return null;let s,u,l=i||o;8&l?(s=t+(n-t)*(this.ymax-e)/(r-e),u=this.ymax):4&l?(s=t+(n-t)*(this.ymin-e)/(r-e),u=this.ymin):2&l?(u=e+(r-e)*(this.xmax-t)/(n-t),s=this.xmax):(u=e+(r-e)*(this.xmin-t)/(n-t),s=this.xmin),i?(t=s,e=u,i=this._regioncode(t,e)):(n=s,r=u,o=this._regioncode(n,r))}}_clipInfinite(t,e,n,r,i,o){let a=Array.from(e),s;if((s=this._project(a[0],a[1],n,r))&&a.unshift(s[0],s[1]),(s=this._project(a[a.length-2],a[a.length-1],i,o))&&a.push(s[0],s[1]),a=this._clipFinite(t,a))for(let e=0,n=a.length,r,i=this._edgecode(a[n-2],a[n-1]);e<n;e+=2)r=i,i=this._edgecode(a[e],a[e+1]),r&&i&&(e=this._edge(t,r,i,a,e),n=a.length);else this.contains(t,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2)&&(a=[this.xmin,this.ymin,this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax]);return a}_edge(t,e,n,r,i){for(;e!==n;){let n,o;switch(e){case 5:e=4;continue;case 4:e=6,n=this.xmax,o=this.ymin;break;case 6:e=2;continue;case 2:e=10,n=this.xmax,o=this.ymax;break;case 10:e=8;continue;case 8:e=9,n=this.xmin,o=this.ymax;break;case 9:e=1;continue;case 1:e=5,n=this.xmin,o=this.ymin}(r[i]!==n||r[i+1]!==o)&&this.contains(t,n,o)&&(r.splice(i,0,n,o),i+=2)}return i}_project(t,e,n,r){let i=1/0,o,a,s;if(r<0){if(e<=this.ymin)return null;(o=(this.ymin-e)/r)<i&&(s=this.ymin,a=t+(i=o)*n)}else if(r>0){if(e>=this.ymax)return null;(o=(this.ymax-e)/r)<i&&(s=this.ymax,a=t+(i=o)*n)}if(n>0){if(t>=this.xmax)return null;(o=(this.xmax-t)/n)<i&&(a=this.xmax,s=e+(i=o)*r)}else if(n<0){if(t<=this.xmin)return null;(o=(this.xmin-t)/n)<i&&(a=this.xmin,s=e+(i=o)*r)}return[a,s]}_edgecode(t,e){return(t===this.xmin?1:2*(t===this.xmax))|(e===this.ymin?4:8*(e===this.ymax))}_regioncode(t,e){return(t<this.xmin?1:2*(t>this.xmax))|(e<this.ymin?4:8*(e>this.ymax))}_simplify(t){if(t&&t.length>4){for(let e=0;e<t.length;e+=2){let n=(e+2)%t.length,r=(e+4)%t.length;(t[e]===t[n]&&t[n]===t[r]||t[e+1]===t[n+1]&&t[n+1]===t[r+1])&&(t.splice(n,2),e-=2)}t.length||(t=null)}return t}}let t9=2*Math.PI,t7=Math.pow;function et(t){return t[0]}function ee(t){return t[1]}class en{static from(t,e=et,n=ee,r){return new en("length"in t?function(t,e,n,r){let i=t.length,o=new Float64Array(2*i);for(let a=0;a<i;++a){let i=t[a];o[2*a]=e.call(r,i,a,t),o[2*a+1]=n.call(r,i,a,t)}return o}(t,e,n,r):Float64Array.from(function*(t,e,n,r){let i=0;
393for(let o of t)yield e.call(r,o,i,t),yield n.call(r,o,i,t),++i}(t,e,n,r)))}constructor(t){this._delaunator=new Y(t),this.inedges=new Int32Array(t.length/2),this._hullIndex=new Int32Array(t.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){let t=this._delaunator,e=this.points;if(t.hull&&t.hull.length>2&&function(t){let{triangles:e,coords:n}=t;for(let t=0;t<e.length;t+=3){let r=2*e[t],i=2*e[t+1],o=2*e[t+2];if((n[o]-n[r])*(n[i+1]-n[r+1])-(n[i]-n[r])*(n[o+1]-n[r+1])>1e-10)return!1}return!0}(t)){this.collinear=Int32Array.from({length:e.length/2},(t,e)=>e).sort((t,n)=>e[2*t]-e[2*n]||e[2*t+1]-e[2*n+1]);let t=this.collinear[0],i=this.collinear[this.collinear.length-1],o=[e[2*t],e[2*t+1],e[2*i],e[2*i+1]],a=1e-8*Math.hypot(o[3]-o[1],o[2]-o[0]);for(let t=0,i=e.length/2;t<i;++t){var n,r;let i=(n=e[2*t],[n+Math.sin(n+(r=e[2*t+1]))*a,r+Math.cos(n-r)*a]);e[2*t]=i[0],e[2*t+1]=i[1]}this._delaunator=new Y(e)}else delete this.collinear;let i=this.halfedges=this._delaunator.halfedges,o=this.hull=this._delaunator.hull,a=this.triangles=this._delaunator.triangles,s=this.inedges.fill(-1),u=this._hullIndex.fill(-1);for(let t=0,e=i.length;t<e;++t){let e=a[t%3==2?t-2:t+1];(-1===i[t]||-1===s[e])&&(s[e]=t)}for(let t=0,e=o.length;t<e;++t)u[o[t]]=t;o.length<=2&&o.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=o[0],s[o[0]]=1,2===o.length&&(s[o[1]]=0,this.triangles[1]=o[1],this.triangles[2]=o[1]))}voronoi(t){return new t6(this,t)}*neighbors(t){let{inedges:e,hull:n,_hullIndex:r,halfedges:i,triangles:o,collinear:a}=this;if(a){let e=a.indexOf(t);e>0&&(yield a[e-1]),e<a.length-1&&(yield a[e+1]);return}let s=e[t];if(-1===s)return;let u=s,l=-1;do{if(yield l=o[u],o[u=u%3==2?u-2:u+1]!==t)return;if(-1===(u=i[u])){let e=n[(r[t]+1)%n.length];e!==l&&(yield e);return}}while(u!==s)}find(t,e,n=0){let r;if((t*=1)!=t||(e*=1)!=e)return -1;let i=n;for(;(r=this._step(n,t,e))>=0&&r!==n&&r!==i;)n=r;return r}_step(t,e,n){let{inedges:r,hull:i,_hullIndex:o,halfedges:a,triangles:s,points:u}=this;if(-1===r[t]||!u.length)return(t+1)%(u.length>>1);let l=t,c=t7(e-u[2*t],2)+t7(n-u[2*t+1],2),h=r[t],f=h;do{let r=s[f],h=t7(e-u[2*r],2)+t7(n-u[2*r+1],2);if(h<c&&(c=h,l=r),s[f=f%3==2?f-2:f+1]!==t)break;if(-1===(f=a[f])){if((f=i[(o[t]+1)%i.length])!==r&&t7(e-u[2*f],2)+t7(n-u[2*f+1],2)<c)return f;break}}while(f!==h);return l}render(t){let e=null==t?t=new t8:void 0,{points:n,halfedges:r,triangles:i}=this;for(let e=0,o=r.length;e<o;++e){let o=r[e];if(o<e)continue;let a=2*i[e],s=2*i[o];t.moveTo(n[a],n[a+1]),t.lineTo(n[s],n[s+1])}return this.renderHull(t),e&&e.value()}renderPoints(t,e){void 0!==e||t&&"function"==typeof t.moveTo||(e=t,t=null),e=void 0==e?2:+e;let n=null==t?t=new t8:void 0,{points:r}=this;for(let n=0,i=r.length;n<i;n+=2){let i=r[n],o=r[n+1];t.moveTo(i+e,o),t.arc(i,o,e,0,t9)}return n&&n.value()}renderHull(t){let e=null==t?t=new t8:void 0,{hull:n,points:r}=this,i=2*n[0],o=n.length;t.moveTo(r[i],r[i+1]);for(let e=1;e<o;++e){let i=2*n[e];t.lineTo(r[i],r[i+1])}return t.closePath(),e&&e.value()}hullPolygon(){let t=new t4;return this.renderHull(t),t.value()}renderTriangle(t,e){let n=null==e?e=new t8:void 0,{points:r,triangles:i}=this,o=2*i[t*=3],a=2*i[t+1],s=2*i[t+2];return e.moveTo(r[o],r[o+1]),e.lineTo(r[a],r[a+1]),e.lineTo(r[s],r[s+1]),e.closePath(),n&&n.value()}*trianglePolygons(){let{triangles:t}=this;for(let e=0,n=t.length/3;e<n;++e)yield this.trianglePolygon(e)}trianglePolygon(t){let e=new t4;return this.renderTriangle(t,e),e.value()}}function er(t,e){function n(n,r){return e((n=t(n,r))[0],n[1])}return t.invert&&e.invert&&(n.invert=function(n,r){return(n=e.invert(n,r))&&t.invert(n[0],n[1])}),n}function ei(t,e){return(0,ta.tn)(t)>ta.pi&&(t-=Math.round(t/ta.FA)*ta.FA),[t,e]}function eo(t,e,n){return(t%=ta.FA)?e||n?er(es(t),eu(e,n)):es(t):e||n?eu(e,n):ei}function ea(t){return function(e,n){return e+=t,(0,ta.tn)(e)>ta.pi&&(e-=Math.round(e/ta.FA)*ta.FA),[e,n]}}function es(t){var e=ea(t);return e.invert=ea(-t),e}function eu(t,e){var n=(0,ta.gn)(t),r=(0,ta.F8)(t),i=(0,ta.gn)(e),o=(0,ta.F8)(e);function a(t,e){var a=(0,ta.gn)(e),s=(0,ta.gn)(t)*a,u=(0,ta.F8)(t)*a,l=(0,ta.F8)(e),c=l*n+s*r;return[(0,ta.FP)(u*i-c*o,s*n-l*r),(0,ta.qR)(c*i+u*o)]}return a.invert=function(t,e){var a=(0,ta.gn)(e),s=(0,ta.gn)(t)*a,u=(0,ta.F8)(t)*a,l=(0,ta.F8)(e),c=l*i-u*o;return[(0,ta.FP)(u*i+l*o,s*n+c*r),(0,ta.qR)(c*n-s*r)]},a}function el(){var t,e=[];return{point:function(e,n,r){t.push([e,n,r])},lineStart:function(){e.push(t=[])},lineEnd:ts.A,rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}}function ec(t,e){return(0,ta.tn)(t[0]-e[0])<ta.Ni&&(0,ta.tn)(t[1]-e[1])<ta.Ni}function eh(t,e,n,r){this.x=t,this.z=e,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function ef(t,e,n,r,i){var o,a,s=[],u=[];
393if(t.forEach(function(t){if(!((e=t.length-1)<=0)){var e,n,r=t[0],a=t[e];if(ec(r,a)){if(!r[2]&&!a[2]){for(i.lineStart(),o=0;o<e;++o)i.point((r=t[o])[0],r[1]);i.lineEnd();return}a[0]+=2*ta.Ni}s.push(n=new eh(r,t,null,!0)),u.push(n.o=new eh(r,null,n,!1)),s.push(n=new eh(a,t,null,!1)),u.push(n.o=new eh(a,null,n,!0))}}),s.length){for(u.sort(e),ep(s),ep(u),o=0,a=u.length;o<a;++o)u[o].e=n=!n;for(var l,c,h=s[0];;){for(var f=h,p=!0;f.v;)if((f=f.n)===h)return;l=f.z,i.lineStart();do{if(f.v=f.o.v=!0,f.e){if(p)for(o=0,a=l.length;o<a;++o)i.point((c=l[o])[0],c[1]);else r(f.x,f.n.x,1,i);f=f.n}else{if(p)for(o=(l=f.p.z).length-1;o>=0;--o)i.point((c=l[o])[0],c[1]);else r(f.x,f.p.x,-1,i);f=f.p}l=(f=f.o).z,p=!p}while(!f.v);i.lineEnd()}}}function ep(t){if(e=t.length){for(var e,n,r=0,i=t[0];++r<e;)i.n=n=t[r],n.p=i,i=n;i.n=n=t[0],n.p=i}}function ed(t,e,n,r){return function(i){var o,a,s,u=e(i),l=el(),c=e(l),h=!1,f={point:p,lineStart:m,lineEnd:g,polygonStart:function(){f.point=y,f.lineStart=v,f.lineEnd=b,a=[],o=[]},polygonEnd:function(){f.point=p,f.lineStart=m,f.lineEnd=g,a=C(a);var t=tF(o,r);a.length?(h||(i.polygonStart(),h=!0),ef(a,eg,t,n,i)):t&&(h||(i.polygonStart(),h=!0),i.lineStart(),n(null,null,1,i),i.lineEnd()),h&&(i.polygonEnd(),h=!1),a=o=null},sphere:function(){i.polygonStart(),i.lineStart(),n(null,null,1,i),i.lineEnd(),i.polygonEnd()}};function p(e,n){t(e,n)&&i.point(e,n)}function d(t,e){u.point(t,e)}function m(){f.point=d,u.lineStart()}function g(){f.point=p,u.lineEnd()}function y(t,e){s.push([t,e]),c.point(t,e)}function v(){c.lineStart(),s=[]}function b(){y(s[0][0],s[0][1]),c.lineEnd();var t,e,n,r,u=c.clean(),f=l.result(),p=f.length;if(s.pop(),o.push(s),s=null,p){if(1&u){if((e=(n=f[0]).length-1)>0){for(h||(i.polygonStart(),h=!0),i.lineStart(),t=0;t<e;++t)i.point((r=n[t])[0],r[1]);i.lineEnd()}return}p>1&&2&u&&f.push(f.pop().concat(f.shift())),a.push(f.filter(em))}}return f}}function em(t){return t.length>1}function eg(t,e){return((t=t.x)[0]<0?t[1]-ta.TW-ta.Ni:ta.TW-t[1])-((e=e.x)[0]<0?e[1]-ta.TW-ta.Ni:ta.TW-e[1])}ei.invert=ei;let ey=ed(function(){return!0},function(t){var e,n=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(o,a){var s,u,l,c,h,f,p,d=o>0?ta.pi:-ta.pi,m=(0,ta.tn)(o-n);(0,ta.tn)(m-ta.pi)<ta.Ni?(t.point(n,r=(r+a)/2>0?ta.TW:-ta.TW),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(d,r),t.point(o,r),e=0):i!==d&&m>=ta.pi&&((0,ta.tn)(n-i)<ta.Ni&&(n-=i*ta.Ni),(0,ta.tn)(o-d)<ta.Ni&&(o-=d*ta.Ni),s=n,u=r,l=o,c=a,p=(0,ta.F8)(s-l),r=(0,ta.tn)(p)>ta.Ni?(0,ta.rY)(((0,ta.F8)(u)*(f=(0,ta.gn)(c))*(0,ta.F8)(l)-(0,ta.F8)(c)*(h=(0,ta.gn)(u))*(0,ta.F8)(s))/(h*f*p)):(u+c)/2,t.point(i,r),t.lineEnd(),t.lineStart(),t.point(d,r),e=0),t.point(n=o,r=a),i=d},lineEnd:function(){t.lineEnd(),n=r=NaN},clean:function(){return 2-e}}},function(t,e,n,r){var i;if(null==t)i=n*ta.TW,r.point(-ta.pi,i),r.point(0,i),r.point(ta.pi,i),r.point(ta.pi,0),r.point(ta.pi,-i),r.point(0,-i),r.point(-ta.pi,-i),r.point(-ta.pi,0),r.point(-ta.pi,i);else if((0,ta.tn)(t[0]-e[0])>ta.Ni){var o=t[0]<e[0]?ta.pi:-ta.pi;i=n*o/2,r.point(-o,i),r.point(0,i),r.point(o,i)}else r.point(e[0],e[1])},[-ta.pi,-ta.TW]);function ev(t,e){e=tg(e),e[0]-=t,tE(e);var n=(0,ta.HQ)(-e[1]);return((0>-e[2]?-n:n)+ta.FA-ta.Ni)%ta.FA}let eb=t=>t;function e_(t){return function(e){var n=new eE;for(var r in t)n[r]=t[r];return n.stream=e,n}}function eE(){}eE.prototype={constructor:eE,point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var ex=1/0,ew=1/0,eS=-1/0,eP=eS,eM={point:function(t,e){t<ex&&(ex=t),t>eS&&(eS=t),e<ew&&(ew=e),e>eP&&(eP=e)},lineStart:ts.A,lineEnd:ts.A,polygonStart:ts.A,polygonEnd:ts.A,result:function(){var t=[[ex,ew],[eS,eP]];return eS=eP=-(ew=ex=1/0),t}};function eA(t,e,n){var r=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=r&&t.clipExtent(null),(0,tx.A)(n,t.stream(eM)),e(eM.result()),null!=r&&t.clipExtent(r),t}function eT(t,e,n){return eA(t,function(n){var r=e[1][0]-e[0][0],i=e[1][1]-e[0][1],o=Math.min(r/(n[1][0]-n[0][0]),i/(n[1][1]-n[0][1])),a=+e[0][0]+(r-o*(n[1][0]+n[0][0]))/2,s=+e[0][1]+(i-o*(n[1][1]+n[0][1]))/2;t.scale(150*o).translate([a,s])},n)}var eO=(0,ta.gn)(30*ta.F2);function ek(t,e){var n;return+e?function(t,e){function n(r,i,o,a,s,u,l,c,h,f,p,d,m,g){var y=l-r,v=c-i,b=y*y+v*v;if(b>4*e&&m--){var _=a+f,E=s+p,x=u+d,w=(0,ta.RZ)(_*_+E*E+x*x),S=(0,ta.qR)(x/=w),P=(0,ta.tn)((0,ta.tn)(x)-1)<ta.Ni||(0,ta.tn)(o-h)<ta.Ni?(o+h)/2:(0,ta.FP)(E,_),M=t(P,S),A=M[0],T=M[1],O=A-r,k=T-i,C=v*O-y*k;(C*C/b>e||(0,ta.tn)((y*O+v*k)/b-.5)>.3||a*f+s*p+u*d<eO)&&(n(r,i,o,a,s,u,A,T,P,_/=w,E/=w,x,m,g),g.point(A,T),n(A,T,P,_,E,x,l,c,h,f,p,d,m,g))}}return function(e){var r,i,o,a,s,u,l,c,h,f,p,d,m={point:g,lineStart:y,lineEnd:b,polygonStart:function(){e.polygonStart(),m.lineStart=_},polygonEnd:function(){e.polygonEnd(),m.lineStart=y}};function g(n,r){n=t(n,r),e.point(n[0],n[1])}function y(){c=NaN,m.point=v,e.lineStart()}function v(r,i){var o=tg([r,i]),a=t(r,i);
393n(c,h,l,f,p,d,c=a[0],h=a[1],l=r,f=o[0],p=o[1],d=o[2],16,e),e.point(c,h)}function b(){m.point=g,e.lineEnd()}function _(){y(),m.point=E,m.lineEnd=x}function E(t,e){v(r=t,e),i=c,o=h,a=f,s=p,u=d,m.point=v}function x(){n(c,h,l,f,p,d,i,o,r,a,s,u,16,e),m.lineEnd=b,b()}return m}}(t,e):(n=t,e_({point:function(t,e){t=n(t,e),this.stream.point(t[0],t[1])}}))}var eC=e_({point:function(t,e){this.stream.point(t*ta.F2,e*ta.F2)}});function ej(t,e,n,r,i,o){if(!o){function a(o,a){return[e+t*(o*=r),n-t*(a*=i)]}return a.invert=function(o,a){return[(o-e)/t*r,(n-a)/t*i]},a}var s=(0,ta.gn)(o),u=(0,ta.F8)(o),l=s*t,c=u*t,h=s/t,f=u/t,p=(u*n-s*e)/t,d=(u*e+s*n)/t;function m(t,o){return[l*(t*=r)-c*(o*=i)+e,n-c*t-l*o]}return m.invert=function(t,e){return[r*(h*t-f*e+p),i*(d-f*t-h*e)]},m}function eR(t,e){var n=(0,ta.gn)(e),r=1+(0,ta.gn)(t)*n;return[n*(0,ta.F8)(t)/r,(0,ta.F8)(e)/r]}eR.invert=function(t,e){var n=(0,ta.RZ)(t*t+e*e),r=function(t){return 2*(0,ta.rY)(t)}(n),i=(0,ta.F8)(r),o=(0,ta.gn)(r);return[(0,ta.FP)(t*i,n*o),(0,ta.qR)(n&&e*i/n)]};let eD=Math.PI,eL=eD/2,eI=180/eD,eN=eD/180,eF=Math.atan2,ez=Math.cos,eU=Math.max,eB=Math.min,eH=Math.sin,eq=Math.sign||function(t){return t>0?1:t<0?-1:0},eG=Math.sqrt;function eV(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function eW(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function eY(t,e){return[t[0]+e[0],t[1]+e[1],t[2]+e[2]]}function eZ(t){var e=eG(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);return[t[0]/e,t[1]/e,t[2]/e]}function e$(t){var e;return[eF(t[1],t[0])*eI,((e=eU(-1,eB(1,t[2])))>1?eL:e<-1?-eL:Math.asin(e))*eI]}function eX(t){let e=t[0]*eN,n=t[1]*eN,r=ez(n);return[r*ez(e),r*eH(e),eH(n)]}function eK(t){return eV((t=t.map(t=>eX(t)))[0],eW(t[2],t[1]))}function eQ(t,e,n){t=eX(t),e=eX(e),n=eX(n);let r=eq(eV(eW(e,t),n));return e$(eZ(eY(t,e)).map(t=>r*t))}var eJ=n(17593);function e0(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function e1(t){return(e1=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function e2(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(e2=function(){return!!t})()}function e3(t,e){return(e3=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function e5(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e);else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(t,e)||e4(t,e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function e8(t){return function(t){if(Array.isArray(t))return e0(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||e4(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function e4(t,e){if(t){if("string"==typeof t)return e0(t,e);var n=({}).toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?e0(t,e):void 0}}function e6(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return n?(e&&tz.hasOwnProperty(e.type)?tz[e.type]:tB)(e,t):ti(t,e)}var e9=window.THREE?window.THREE:{BufferGeometry:k.LoY,Float32BufferAttribute:k.qtW},e7=new e9.BufferGeometry().setAttribute?"setAttribute":"addAttribute",nt=function(t){function e(t,n,r,i,o,a,s){if
393(!(this instanceof e))throw TypeError("Cannot call a class as a function");u=e1(u=e),(l=function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(this,e2()?Reflect.construct(u,[],e1(this).constructor):u.apply(this,void 0))).type="ConicPolygonGeometry",l.parameters={polygonGeoJson:t,bottomHeight:n,topHeight:r,closedBottom:i,closedTop:o,includeSides:a,curvatureResolution:s},n=n||0,r=r||1,i=void 0===i||i,o=void 0===o||o,a=void 0===a||a;var u,l,c=function(t){var e,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.resolution,o=void 0===i?1/0:i,a=(e=t,n=o,e.map(function(t){var e,r=[];return t.forEach(function(t){if(e){var i=180*(0,tL.A)(t,e)/Math.PI;if(i>n)for(var o=(0,tI.A)(e,t),a=1/Math.ceil(i/n),s=a;s<1;)r.push(o(s)),s+=a}r.push(e=t)}),r})),s=C(a),u=function(t,e){var n={type:"Polygon",coordinates:t},r=e5(tD(n),2),i=e5(r[0],2),o=i[0],a=i[1],s=e5(r[1],2),u=s[0],l=s[1];if(Math.min(Math.abs(u-o),Math.abs(l-a))<e)return[];var c=o>u||l>=89||a<=-89;return(function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.minLng,r=e.maxLng,i=e.minLat,o=e.maxLat,a=Math.round(Math.pow(360/t,2)/Math.PI),s=(1+Math.sqrt(5))/2,u=function(t){return a*(Math.cos((t+90)*Math.PI/180)+1)/2},l=[void 0!==o?Math.ceil(u(o)):0,void 0!==i?Math.floor(u(i)):a-1],c=void 0===n&&void 0===r?function(){return!0}:void 0===n?function(t){return t<=r}:void 0===r?function(t){return t>=n}:r>=n?function(t){return t>=n&&t<=r}:function(t){return t>=n||t<=r},h=[],f=l[0];f<=l[1];f++){var p=f/s*360%360-180;c(p)&&h.push([p,Math.acos(2*f/a-1)/Math.PI*180-90])}return h})(e,{minLng:o,maxLng:u,minLat:a,maxLat:l}).filter(function(t){return e6(t,n,c)})}(t,o),l=[].concat(e8(s),e8(u)),c={type:"Polygon",coordinates:t},h=e5(tD(c),2),f=e5(h[0],2),p=f[0],d=f[1],m=e5(h[1],2),g=m[0],y=m[1],v=p>g||y>=89||d<=-89,b=[];if(v){var _=(function(t){let e=function(t){if(e.delaunay=null,e._data=t,"object"==typeof e._data&&"FeatureCollection"===e._data.type&&(e._data=e._data.features),"object"==typeof e._data){let t=e._data.map(t=>[e._vx(t),e._vy(t),t]).filter(t=>isFinite(t[0]+t[1]));e.points=t.map(t=>[t[0],t[1]]),e.valid=t.map(t=>t[2]),e.delaunay=function(t){var e,n,r,i;let o=function(t){if(t.length<2)return{};let e=0;for(;isNaN(t[e][0]+t[e][1])&&e++<t.length;);let n=function(t){function e(e){return e=t(e[0]*ta.F2,e[1]*ta.F2),e[0]*=ta.uj,e[1]*=ta.uj,e}return t=eo(t[0]*ta.F2,t[1]*ta.F2,t.length>2?t[2]*ta.F2:0),e.invert=function(e){return e=t.invert(e[0]*ta.F2,e[1]*ta.F2),e[0]*=ta.uj,e[1]*=ta.uj,e},e}(t[e]),r=(function(t){var e,n,r,i,o,a,s,u,l,c,h=150,f=480,p=250,d=0,m=0,g=0,y=0,v=0,b=0,_=1,E=1,x=null,w=ey,S=null,P=eb,M=.5;function A(t){return u(t[0]*ta.F2,t[1]*ta.F2)}function T(t){return(t=u.invert(t[0],t[1]))&&[t[0]*ta.uj,t[1]*ta.uj]}function O(){var t=ej(h,0,0,_,E,b).apply(null,e(d,m)),r=ej(h,f-t[0],p-t[1],_,E,b);return n=eo(g,y,v),s=er(e,r),u=er(n,s),a=ek(s,M),k()}function k(){return l=c=null,A}return A.stream=function(t){var e;return l&&c===t?l:l=eC((e=n,e_({point:function(t,n){var r=e(t,n);return this.stream.point(r[0],r[1])}}))(w(a(P(c=t)))))},A.preclip=function(t){return arguments.length?(w=t,x=void 0,k()):w},A.postclip=function(t){return arguments.length?(P=t,S=r=i=o=null,k()):P},A.clipAngle=function(t){return arguments.length?(w=+t?function(t){var e=(0,ta.gn)(t),n=2*ta.F2,r=e>0,i=(0,ta.tn)(e)>ta.Ni;function o(t,n){return(0,ta.gn)(t)*(0,ta.gn)(n)>e}function a(t,n,r){var i=tg(t),o=tg(n),a=[1,0,0],s=tv(i,o),u=ty(s,s),l=s[0],c=u-l*l;if(!c)return!r&&t;var h=tv(a,s),f=t_(a,e*u/c);tb(f,t_(s,-e*l/c));var p=ty(f,h),d=ty(h,h),m=p*p-d*(ty(f,f)-1);if(!(m<0)){var g=(0,ta.RZ)(m),y=t_(h,(-p-g)/d);if(tb(y,f),y=tm(y),!r)return y;var v,b=t[0],_=n[0],E=t[1],x=n[1];_<b&&(v=b,b=_,_=v);var w=_-b,S=(0,ta.tn)(w-ta.pi)<ta.Ni,P=S||w<ta.Ni;if(!S&&x<E&&(v=E,E=x,x=v),P?S?E+x>0^y[1]<((0,ta.tn)(y[0]-b)<ta.Ni?E:x):E<=y[1]&&y[1]<=x:w>ta.pi^(b<=y[0]&&y[0]<=_)){var M=t_(h,(-p+g)/d);return tb(M,f),[y,tm(M)]}}}function s(e,n){var i=r?t:ta.pi-t,o=0;return e<-i?o|=1:e>i&&(o|=2),n<-i?o|=4:n>i&&(o|=8),o}return ed(o,function(t){var e,n,u,l,c;return{lineStart:function(){l=u=!1,c=1},point:function(h,f){var p,d,m=[h,f],g=o(h,f),y=r?g?0:s(h,f):g?s(h+(h<0?ta.pi:-ta.pi),f):0;!e&&(l=u=g)&&t.lineStart(),g!==u&&(!(d=a(e,m))||ec(e,d)||ec(m,d))&&(m[2]=1),g!==u?(c=0,g?(t.lineStart(),d=a(m,e),t.point(d[0],d[1])):(d=a(e,m),t.point(d[0],d[1],2),t.lineEnd()),e=d):i&&e&&r^g&&!(y&n)&&(p=a(m,e,!0))&&(c=0,r?(t.lineStart(),t.point(p[0][0],p[0][1]),t.point(p[1][0],p[1][1]),t.lineEnd()):(t.point(p[1][0],p[1][1]),t.lineEnd(),t.lineStart(),t.point(p[0][0],p[0][1],3))),!g||e&&ec(e,m)||t.point(m[0],m[1]),e=m,u=g,n=y},lineEnd:function(){u&&t.lineEnd(),e=null},clean:function(){return c|(l&&u)<<1}}},function(e,r,i,o){!function(t,e,n,r,i,o){if(n){var a=(0,ta.gn)(e),s=(0,ta.F8)(e),u=r*n;null==i?(i=e+r*ta.FA,o=e-u/2):(i=ev(a,i),o=ev(a,o),(r>0?i<o:i>o)&&(i+=r*ta.FA));for(var l,c=i;r>0?c>o:c<o;c-=u)l=tm([a,-s*(0,ta.gn)(c),-s*(0,ta.F8)(c)]),t.point(l[0],l[1])}}(o,t,n,i,e,r)},r?[0,-t]:[-ta.pi,t-ta.pi])}(x=t*ta.F2):(x=null,ey),k()):x*ta.uj},A.clipExtent=function(t){return arguments.length?(P=null==t?(S=r=i=o=null,eb):function(t,e,n,r){function i(i,o){return t<=i&&i<=n&&e<=o&&o<=r}function o(i,o,s,l){var c=0,h=0;if(null==i||(c=a(i,s))!==(h=a(o,s))||0>u(i,o)^s>0)do l.point(0===c||3===c?t:n,c>1?r:e);while((c=(c+s+4)%4)!==h);else l.point(o[0],o[1])}function a(r,i){return(0,ta.tn)(r[0]-t)<ta.Ni?i>0?0:3:(0,ta.tn)(r[0]-n)<ta.Ni?i>0?2:1:(0,ta.tn)(r[1]-e)<ta.Ni?+(i>0):i>0?3:2}function s(t,e){return u(t.x,e.x)}function u(t,e){var n=a(t,1),r=a(e,1);return n!==r?n-r:0===n?e[1]-t[1]:1===n?t[0]-e[0]:2===n?t[1]-e[1]:e[0]-t[0]}return function(a){var u,l,c,h,f,p,d,m,g,y,v,b=a,_=el(),E={point:x,lineStart:function(){E.point=w,l&&l.push(c=[]),y=!0,g=!1,d=m=NaN},lineEnd:function(){u&&(w(h,f),p&&g&&_.rejoin(),u.push(_.result())),E.point=x,g&&b.lineEnd()},polygonStart:function(){b=_,u=[],l=[],v=!0},polygonEnd:function(){var e=function(){for(var e=0,n=0,i=l.length;n<i;++n)for(var o,a,s=l[n],u=1,c=s.length,h=s[0],f=h[0],p=h[1];u<c;++u)o=f,a=p,f=(h=s[u])[0],p=h[1],a<=r?p>r&&(f-o)*(r-a)>(p-a)*(t-o)&&++e:p<=r&&(f-o)*(r-a)<(p-a)*(t-o)&&--e;return e}(),n=v&&e,i=(u=C(u)).length;
393(n||i)&&(a.polygonStart(),n&&(a.lineStart(),o(null,null,1,a),a.lineEnd()),i&&ef(u,s,e,o,a),a.polygonEnd()),b=a,u=l=c=null}};function x(t,e){i(t,e)&&b.point(t,e)}function w(o,a){var s=i(o,a);if(l&&c.push([o,a]),y)h=o,f=a,p=s,y=!1,s&&(b.lineStart(),b.point(o,a));else if(s&&g)b.point(o,a);else{var u=[d=Math.max(-1e9,Math.min(1e9,d)),m=Math.max(-1e9,Math.min(1e9,m))],_=[o=Math.max(-1e9,Math.min(1e9,o)),a=Math.max(-1e9,Math.min(1e9,a))];!function(t,e,n,r,i,o){var a,s=t[0],u=t[1],l=e[0],c=e[1],h=0,f=1,p=l-s,d=c-u;if(a=n-s,!p&&a>0)return;if(a/=p,p<0){if(a<h)return;a<f&&(f=a)}else if(p>0){if(a>f)return;a>h&&(h=a)}if(a=i-s,p||!(a<0)){if(a/=p,p<0){if(a>f)return;a>h&&(h=a)}else if(p>0){if(a<h)return;a<f&&(f=a)}if(a=r-u,d||!(a>0)){if(a/=d,d<0){if(a<h)return;a<f&&(f=a)}else if(d>0){if(a>f)return;a>h&&(h=a)}if(a=o-u,d||!(a<0)){if(a/=d,d<0){if(a>f)return;a>h&&(h=a)}else if(d>0){if(a<h)return;a<f&&(f=a)}return h>0&&(t[0]=s+h*p,t[1]=u+h*d),f<1&&(e[0]=s+f*p,e[1]=u+f*d),!0}}}}(u,_,t,e,n,r)?s&&(b.lineStart(),b.point(o,a),v=!1):(g||(b.lineStart(),b.point(u[0],u[1])),b.point(_[0],_[1]),s||b.lineEnd(),v=!1)}d=o,m=a,g=s}return E}}(S=+t[0][0],r=+t[0][1],i=+t[1][0],o=+t[1][1]),k()):null==S?null:[[S,r],[i,o]]},A.scale=function(t){return arguments.length?(h=+t,O()):h},A.translate=function(t){return arguments.length?(f=+t[0],p=+t[1],O()):[f,p]},A.center=function(t){return arguments.length?(d=t[0]%360*ta.F2,m=t[1]%360*ta.F2,O()):[d*ta.uj,m*ta.uj]},A.rotate=function(t){return arguments.length?(g=t[0]%360*ta.F2,y=t[1]%360*ta.F2,v=t.length>2?t[2]%360*ta.F2:0,O()):[g*ta.uj,y*ta.uj,v*ta.uj]},A.angle=function(t){return arguments.length?(b=t%360*ta.F2,O()):b*ta.uj},A.reflectX=function(t){return arguments.length?(_=t?-1:1,O()):_<0},A.reflectY=function(t){return arguments.length?(E=t?-1:1,O()):E<0},A.precision=function(t){return arguments.length?(a=ek(s,M=t*t),k()):(0,ta.RZ)(M)},A.fitExtent=function(t,e){return eT(A,t,e)},A.fitSize=function(t,e){return eT(A,[[0,0],t],e)},A.fitWidth=function(t,e){return eA(A,function(e){var n=+t,r=n/(e[1][0]-e[0][0]),i=(n-r*(e[1][0]+e[0][0]))/2,o=-r*e[0][1];A.scale(150*r).translate([i,o])},e)},A.fitHeight=function(t,e){return eA(A,function(e){var n=+t,r=n/(e[1][1]-e[0][1]),i=-r*e[0][0],o=(n-r*(e[1][1]+e[0][1]))/2;A.scale(150*r).translate([i,o])},e)},function(){return e=t.apply(this,arguments),A.invert=e.invert&&T,O()}})(function(){return eR})().scale(250).clipAngle(142).translate([0,0]).scale(1).rotate(n.invert([180,0]));t=t.map(r);let i=[],o=1;for(let e=0,n=t.length;e<n;e++){let n=t[e][0]**2+t[e][1]**2;!isFinite(n)||n>1e32?i.push(e):n>o&&(o=n)}let a=1e6*eG(o);i.forEach(e=>t[e]=[a,0]),t.push([0,a]),t.push([-a,0]),t.push([0,-a]);let s=en.from(t);s.projection=r;let{triangles:u,halfedges:l,inedges:c}=s,h=[];for(let n=0,r=l.length;n<r;n++)if(l[n]<0){let t=n%3==2?n-2:n+1,r=n%3==0?n+2:n-1,i=l[t],o=l[r];l[i]=o,l[o]=i,l[t]=l[r]=-1,u[n]=u[t]=u[r]=e,c[u[i]]=i%3==0?i+2:i-1,c[u[o]]=o%3==0?o+2:o-1,h.push(Math.min(n,t,r)),n+=2-n%3}else u[n]>t.length-3-1&&(u[n]=e);return s}(t),a=function(t){let{triangles:e}=t;if(!e)return[];let n=[];for(let t=0,r=e.length/3;t<r;t++){let r=e[3*t],i=e[3*t+1],o=e[3*t+2];r!==i&&i!==o&&n.push([r,o,i])}return n}(o),s=function(t,e){let n=new Set;return 2===e.length?[[0,1]]:(t.forEach(t=>{if(t[0]!==t[1]&&!(0>eK(t.map(t=>e[t]))))for(let e=0,r;e<3;e++)r=(e+1)%3,n.add(j([t[e],t[r]]).join("-"))}),Array.from(n,t=>t.split("-").map(Number)))}(a,t),u=function(t,e){let n=[];return t.forEach(t=>{for(let e=0;e<3;e++){let r=t[e],i=t[(e+1)%3];n[r]=n[r]||[],n[r].push(i)}}),0===t.length&&(2===e?(n[0]=[1],n[1]=[0]):1===e&&(n[0]=[])),n}(a,t.length),l=function(t,e){function n(t,e){let n=t[0]-e[0],r=t[1]-e[1],i=t[2]-e[2];return n*n+r*r+i*i}return function(r,i,o){void 0===o&&(o=0);let a,s,u=o,l=eX([r,i]);do a=o,o=null,s=n(l,eX(e[a])),t[a].forEach(t=>{let r=n(l,eX(e[t]));if(r<s){s=r,o=t,u=t;return}});while(null!==o);return u}}(u,t),{polygons:c,centers:h}=function(t,e,n){let r=[],i=t.slice();if(0===e.length){if(n.length<2)return{polygons:r,centers:i};if(2===n.length){let t=eX(n[0]),e=eX(n[1]),a=eZ(eY(t,e)),s=eZ(eW(t,e)),u=eW(a,s),l=[a,eW(a,u),eW(eW(a,u),u),eW(eW(eW(a,u),u),u)].map(e$).map(o);return r.push(l),r.push(l.slice().reverse()),{polygons:r,centers:i}}}function o(t){let n=-1;
393return i.slice(e.length,1/0).forEach((r,i)=>{r[0]===t[0]&&r[1]===t[1]&&(n=i+e.length)}),n<0&&(n=i.length,i.push(t)),n}return e.forEach((t,e)=>{for(let n=0;n<3;n++){let i=t[n],o=t[(n+1)%3],a=t[(n+2)%3];r[i]=r[i]||[],r[i].push([o,a,e,[i,o,a]])}}),{polygons:r.map(t=>{let e=[t[0][2]],r=t[0][1];for(let n=1;n<t.length;n++)for(let n=0;n<t.length;n++)if(t[n][0]==r){r=t[n][1],e.push(t[n][2]);break}if(e.length>2)return e;if(2==e.length){let r=eQ(n[t[0][3][0]],n[t[0][3][1]],i[e[0]]),a=eQ(n[t[0][3][2]],n[t[0][3][0]],i[e[0]]),s=o(r),u=o(a);return[e[0],u,e[1],s]}}),centers:i}}((e=a,n=t,e.map(t=>{let e=t.map(t=>n[t]).map(eX);return e$(eZ(eY(eY(eW(e[1],e[0]),eW(e[2],e[1])),eW(e[0],e[2]))))})),a,t),f=function(t){let e=[];return t.forEach(t=>{if(!t)return;let n=t[t.length-1];for(let r of t)r>n&&e.push([n,r]),n=r}),e}(c),p=function(t,e){let n,r=new Set,i=[];t.map(t=>{if(!(eK(t.map(t=>e[t>e.length?0:t]))>1e-12))for(let e=0;e<3;e++){let n=[t[e],t[(e+1)%3]],i=`${n[0]}-${n[1]}`;r.has(i)?r.delete(i):r.add(`${n[1]}-${n[0]}`)}});let o=new Map;if(r.forEach(t=>{t=t.split("-").map(Number),o.set(t[0],t[1]),n=t[0]}),void 0===n)return i;let a=n;do{i.push(a);let t=o.get(a);o.set(a,-1),a=t}while(a>-1&&a!==n);return i}(a,t),d=(r=s,i=a,function(t){let e=new Map,n=new Map;return r.forEach((r,i)=>{let o=r.join("-");e.set(o,t[i]),n.set(o,!0)}
393),i.forEach(t=>{let r=0,i=-1;for(let n=0;n<3;n++){let o=j([t[n],t[(n+1)%3]]).join("-");e.get(o)>r&&(r=e.get(o),i=o)}n.set(i,!1)}),r.map(t=>n.get(t.join("-")))});return{delaunay:o,edges:s,triangles:a,centers:h,neighbors:u,polygons:c,mesh:f,hull:p,urquhart:d,find:l}}(e.points)}return e};return e._vx=function(t){return"object"==typeof t&&"type"in t?t5(t)[0]:0 in t?t[0]:void 0},e._vy=function(t){return"object"==typeof t&&"type"in t?t5(t)[1]:1 in t?t[1]:void 0},e.x=function(t){return t?(e._vx=t,e):e._vx},e.y=function(t){return t?(e._vy=t,e):e._vy},e.polygons=function(t){if(void 0!==t&&e(t),!e.delaunay)return!1;let n={type:"FeatureCollection",features:[]};return 0===e.valid.length||(e.delaunay.polygons.forEach((t,r)=>n.features.push({type:"Feature",geometry:t?{type:"Polygon",coordinates:[[...t,t[0]].map(t=>e.delaunay.centers[t])]}:null,properties:{site:e.valid[r],sitecoordinates:e.points[r],neighbours:e.delaunay.neighbors[r]}})),1===e.valid.length&&n.features.push({type:"Feature",geometry:{type:"Sphere"},properties:{site:e.valid[0],sitecoordinates:e.points[0],neighbours:[]}})),n},e.triangles=function(t){return void 0!==t&&e(t),!!e.delaunay&&{type:"FeatureCollection",features:e.delaunay.triangles.map((t,n)=>((t=t.map(t=>e.points[t])).center=e.delaunay.centers[n],t)).filter(t=>eK(t)>0).map(t=>({type:"Feature",properties:{circumcenter:t.center},geometry:{type:"Polygon",coordinates:[[...t,t[0]]]}}))}},e.links=function(t){if(void 0!==t&&e(t),!e.delaunay)return!1;let n=e.delaunay.edges.map(t=>(0,tL.A)(e.points[t[0]],e.points[t[1]])),r=e.delaunay.urquhart(n);return{type:"FeatureCollection",features:e.delaunay.edges.map((t,i)=>({type:"Feature",properties:{source:e.valid[t[0]],target:e.valid[t[1]],length:n[i],urquhart:!!r[i]},geometry:{type:"LineString",coordinates:[e.points[t[0]],e.points[t[1]]]}}))}},e.mesh=function(t){return void 0!==t&&e(t),!!e.delaunay&&{type:"MultiLineString",coordinates:e.delaunay.edges.map(t=>[e.points[t[0]],e.points[t[1]]])}},e.cellMesh=function(t){if(void 0!==t&&e(t),!e.delaunay)return!1;let{centers:n,polygons:r}=e.delaunay,i=[];for(let t of r)if(t)for(let e=t.length,r=t[e-1],o=t[0],a=0;a<e;r=o,o=t[++a])o>r&&i.push([n[r],n[o]]);return{type:"MultiLineString",coordinates:i}},e._found=void 0,e.find=function(t,n,r){if(e._found=e.delaunay.find(t,n,e._found),!r||(0,tL.A)([t,n],e.points[e._found])<r)return e._found},e.hull=function(t){void 0!==t&&e(t);let n=e.delaunay.hull,r=e.points;return 0===n.length?null:{type:"Polygon",coordinates:[[...n.map(t=>r[t]),r[n[0]]]]}},t?e(t):e})(l).triangles(),E=new Map(l.map(function(t,e){var n=e5(t,2),r=n[0],i=n[1];return["".concat(r,"-").concat(i),e]}));_.features.forEach(function(t){var e,n=t.geometry.coordinates[0].slice(0,3).reverse(),r=[];if(n.forEach(function(t){var e=e5(t,2),n=e[0],i=e[1],o="".concat(n,"-").concat(i);E.has(o)&&r.push(E.get(o))}),3===r.length){if(r.some(function(t){return t<s.length})&&!e6(t.properties.circumcenter,c,v))return;(e=b).push.apply(e,r)}})}else if(u.length){for(var x=Y.from(l),w=function(t){var e,n=[2,1,0].map(function(e){return x.triangles[t+e]}),r=n.map(function(t){return l[t]});if(n.some(function(t){return t<s.length})&&!e6([0,1].map(function(t){return function(t,e){let n=0,r=0;if(void 0===e)for(let e of t)null!=e&&(e*=1)>=e&&(++n,r+=e);else{let i=-1;for(let o of t)null!=(o=e(o,++i,t))&&(o*=1)>=o&&(++n,r+=o)}if(n)return r/n}(r,function(e){return e[t]})}),c,v))return 1;(e=b).push.apply(e,e8(n))},S=0,P=x.triangles.length;S<P;S+=3)if(w(S))continue}else{var M=(0,R.Bq)(a),A=M.vertices,T=M.holes;b=(0,R.Ay)(A,void 0===T?[]:T,2)}var O=(0,eJ.A)(j(l,function(t){return t[0]}),[0,1]),k=(0,eJ.A)(j(l,function(t){return t[1]}),[0,1]),D=l.map(function(t){var e=e5(t,2),n=e[0],r=e[1];return[O(n),k(r)]});return{contour:a,triangles:{points:l,indices:b,uvs:D}}}(t,{resolution:s=s||5}),h=c.contour,f=c.triangles,p=C(f.uvs),d=[],m=[],g=[],y=0,v=function(t){var e=Math.round(d.length/3),n=g.length;d=d.concat(t.vertices),m=m.concat(t.uvs),g=g.concat(e?t.indices.map(function(t){return t+e}):t.indices),l.addGroup(n,g.length-n,y++)};function b(t,e){var n="function"==typeof e?e:function(){return e},r=t.map(function(t){return t.map(function(t){var e=e5(t,2),r=e[0],i=e[1];return function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=(90-t)*Math.PI/180,i=(90-e)*Math.PI/180;return[n*Math.sin(r)*Math.cos(i),n*Math.cos(r),n*Math.sin(r)*Math.sin(i)]}(i,r,n(r,i))})});return(0,R.Bq)(r)}function _(t){var e=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return{indices:e?f.indices:f.indices.slice().reverse(),vertices:b([f.points],t).vertices,uvs:p}}return a&&v(function(){for(var t=b(h,n),e=t.vertices,i=t.holes,o=b(h,r).vertices,a=C([o,e]),s=Math.round(o.length/3),u=new Set(i),l=0,c=[],f=0;f<s;f++){var p=f+1;if(p===s)p=l;else if(u.has(p)){var d=p;p=l,l=d}c.push(f,f+s,p+s),c.push(p+s,p,f)}for(var m=[],g=1;g>=0;g--)for(var y=0;y<s;y+=1)m.push(y/(s-1),g);return{indices:c,vertices:a,uvs:m}}()),i&&v(_(n,!1)),o&&v(_(r,!0)),l.setIndex(g),l[e7]("position",new e9.Float32BufferAttribute(d,3)),l[e7]("uv",new e9.Float32BufferAttribute(m,2)),l.computeVertexNormals(),l}if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");return e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&e3(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(e9.BufferGeometry)},81456:(t,e,n)=>{"use strict";n.d(e,{A:()=>K});var r=n(85339);function i(t,e,n,r,i){if(isNaN(e)||isNaN(n)||isNaN(r))return t;var o,a,s,u,l,c,h,f,p,d,m,g,y=t._root,v={data:i},b=t._x0,_=t._y0,E=t._z0,x=t._x1,w=t._y1,S=t._z1;if(!y)return t._root=v,t;for(;y.length;)if((f=e>=(a=(b+x)/2))?b=a:x=a,(p=n>=(s=(_+w)/2))?_=s:w=s,(d=r>=(u=(E+S)/2))?E=u:S=u,o=y,!(y=y[m=d<<2|p<<1|f]))return o[m]=v,t;if(l=+t._x.call(null,y.data),c=+t._y.call(null,y.data),h=+t._z.call(null,y.data),e===l&&n===c&&r===h)return v.next=y,o?o[m]=v:t._root=v,t;do o=o?o[m]=Array(8):t._root=Array(8),(f=e>=(a=(b+x)/2))?b=a:x=a,(p=n>=(s=(_+w)/2))?_=s:w=s,(d=r>=(u=(E+S)/2))?E=u:S=u;while((m=d<<2|p<<1|f)==(g=(h>=u)<<2|(c>=s)<<1|l>=a));return o[g]=y,o[m]=v,t}function o(t,e,n,r,i,o,a){this.node=t,this.x0=e,this.y0=n,this.z0=r,this.x1=i,this.y1=o,this.z1=a}let a=(t,e,n,r,i,o)=>Math.sqrt((t-r)**2+(e-i)**2+(n-o)**2);function s(t){return t[0]}function u(t){return t[1]}function l(t){return t[2]}function c(t,e,n,r){var i=new h(null==e?s:e,null==n?u:n,null==r?l:r,NaN,NaN,NaN,NaN,NaN,NaN);return null==t?i:i.addAll(t)}function h(t,e,n,r,i,o,a,s,u){this._x=t,this._y=e,this._z=n,this._x0=r,this._y0=i,this._z0=o,this._x1=a,this._y1=s,this._z1=u,this._root=void 0}function f(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e}var p=c.prototype=h.prototype;p.copy=function(){var t,e,n=new h(this._x,this._y,this._z,this._x0,this._y0,this._z0,this._x1,this._y1,this._z1),r=this._root;if(!r)return n;if(!r.length)return n._root=f(r),n;for(t=[{source:r,target:n._root=Array(8)}];r=t.pop();)for(var i=0;i<8;++i)(e=r.source[i])&&(e.length?t.push({source:e,target:r.target[i]=Array(8)}):r.target[i]=f(e));return n},p.add=function(t){let e=+this._x.call(null,t),n=+this._y.call(null,t),r=+this._z.call(null,t);return i(this.cover(e,n,r),e,n,r,t)},p.addAll=function(t){Array.isArray(t)||(t=Array.from(t));let e=t.length,n=new Float64Array(e),r=new Float64Array(e),o=new Float64Array(e),a=1/0,s=1/0,u=1/0,l=-1/0,c=-1/0,h=-1/0;for(let i=0,f,p,d,m;i<e;++i)!(isNaN(p=+this._x.call(null,f=t[i]))||isNaN(d=+this._y.call(null,f))||isNaN(m=+this._z.call(null,f)))&&(n[i]=p,r[i]=d,o[i]=m,p<a&&(a=p),p>l&&(l=p),d<s&&(s=d),d>c&&(c=d),m<u&&(u=m),m>h&&(h=m));if(a>l||s>c||u>h)return this;this.cover(a,s,u).cover(l,c,h);for(let a=0;a<e;++a)i(this,n[a],r[a],o[a],t[a]);return this},p.cover=function(t,e,n){if(isNaN(t*=1)||isNaN(e*=1)||isNaN(n*=1))return this;var r=this._x0,i=this._y0,o=this._z0,a=this._x1,s=this._y1,u=this._z1;if(isNaN(r))a=(r=Math.floor(t))+1,s=(i=Math.floor(e))+1,u=(o=Math.floor(n))+1;else{for(var l,c,h=a-r||1,f=this._root;r>t||t>=a||i>e||e>=s||o>n||n>=u;)switch(c=(n<o)<<2|(e<i)<<1|t<r,(l=Array(8))[c]=f,f=l,h*=2,c){case 0:a=r+h,s=i+h,u=o+h;break;case 1:r=a-h,s=i+h,u=o+h;break;case 2:a=r+h,i=s-h,u=o+h;break;case 3:r=a-h,i=s-h,u=o+h;break;case 4:a=r+h,s=i+h,o=u-h;break;case 5:r=a-h,s=i+h,o=u-h;break;case 6:a=r+h,i=s-h,o=u-h;break;case 7:r=a-h,i=s-h,o=u-h}this._root&&this._root.length&&(this._root=f)}return this._x0=r,this._y0=i,this._z0=o,this._x1=a,this._y1=s,this._z1=u,this},p.data=function(){var t=[];return this.visit(function(e){if(!e.length)do t.push(e.data);while(e=e.next)}),t},p.extent=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1],
393+t[0][2]).cover(+t[1][0],+t[1][1],+t[1][2]):isNaN(this._x0)?void 0:[[this._x0,this._y0,this._z0],[this._x1,this._y1,this._z1]]},p.find=function(t,e,n,r){var i,a,s,u,l,c,h,f,p,d=this._x0,m=this._y0,g=this._z0,y=this._x1,v=this._y1,b=this._z1,_=[],E=this._root;for(E&&_.push(new o(E,d,m,g,y,v,b)),null==r?r=1/0:(d=t-r,m=e-r,g=n-r,y=t+r,v=e+r,b=n+r,r*=r);f=_.pop();)if((E=f.node)&&!((a=f.x0)>y)&&!((s=f.y0)>v)&&!((u=f.z0)>b)&&!((l=f.x1)<d)&&!((c=f.y1)<m)&&!((h=f.z1)<g))if(E.length){var x=(a+l)/2,w=(s+c)/2,S=(u+h)/2;_.push(new o(E[7],x,w,S,l,c,h),new o(E[6],a,w,S,x,c,h),new o(E[5],x,s,S,l,w,h),new o(E[4],a,s,S,x,w,h),new o(E[3],x,w,u,l,c,S),new o(E[2],a,w,u,x,c,S),new o(E[1],x,s,u,l,w,S),new o(E[0],a,s,u,x,w,S)),(p=(n>=S)<<2|(e>=w)<<1|t>=x)&&(f=_[_.length-1],_[_.length-1]=_[_.length-1-p],_[_.length-1-p]=f)}else{var P=t-this._x.call(null,E.data),M=e-this._y.call(null,E.data),A=n-this._z.call(null,E.data),T=P*P+M*M+A*A;if(T<r){var O=Math.sqrt(r=T);d=t-O,m=e-O,g=n-O,y=t+O,v=e+O,b=n+O,i=E.data}}return i},p.findAllWithinRadius=function(t,e,n,r){let i=[],o=t-r,s=e-r,u=n-r,l=t+r,c=e+r,h=n+r;return this.visit((f,p,d,m,g,y,v)=>{if(!f.length)do{let o=f.data;a(t,e,n,this._x(o),this._y(o),this._z(o))<=r&&i.push(o)}while(f=f.next);return p>l||d>c||m>h||g<o||y<s||v<u}),i},p.remove=function(t){if(isNaN(o=+this._x.call(null,t))||isNaN(a=+this._y.call(null,t))||isNaN(s=+this._z.call(null,t)))return this;var e,n,r,i,o,a,s,u,l,c,h,f,p,d,m,g=this._root,y=this._x0,v=this._y0,b=this._z0,_=this._x1,E=this._y1,x=this._z1;if(!g)return this;if(g.length)for(;;){if((h=o>=(u=(y+_)/2))?y=u:_=u,(f=a>=(l=(v+E)/2))?v=l:E=l,(p=s>=(c=(b+x)/2))?b=c:x=c,e=g,!(g=g[d=p<<2|f<<1|h]))return this;if(!g.length)break;(e[d+1&7]||e[d+2&7]||e[d+3&7]||e[d+4&7]||e[d+5&7]||e[d+6&7]||e[d+7&7])&&(n=e,m=d)}for(;g.data!==t;)if(r=g,!(g=g.next))return this;return((i=g.next)&&delete g.next,r)?i?r.next=i:delete r.next:e?(i?e[d]=i:delete e[d],(g=e[0]||e[1]||e[2]||e[3]||e[4]||e[5]||e[6]||e[7])&&g===(e[7]||e[6]||e[5]||e[4]||e[3]||e[2]||e[1]||e[0])&&!g.length&&(n?n[m]=g:this._root=g)):this._root=i,this},p.removeAll=function(t){for(var e=0,n=t.length;e<n;++e)this.remove(t[e]);return this},p.root=function(){return this._root},p.size=function(){var t=0;return this.visit(function(e){if(!e.length)do++t;while(e=e.next)}),t},p.visit=function(t){var e,n,r,i,a,s,u,l,c=[],h=this._root;for(h&&c.push(new o(h,this._x0,this._y0,this._z0,this._x1,this._y1,this._z1));e=c.pop();)if(!t(h=e.node,r=e.x0,i=e.y0,a=e.z0,s=e.x1,u=e.y1,l=e.z1)&&h.length){var f=(r+s)/2,p=(i+u)/2,d=(a+l)/2;(n=h[7])&&c.push(new o(n,f,p,d,s,u,l)),(n=h[6])&&c.push(new o(n,r,p,d,f,u,l)),(n=h[5])&&c.push(new o(n,f,i,d,s,p,l)),(n=h[4])&&c.push(new o(n,r,i,d,f,p,l)),(n=h[3])&&c.push(new o(n,f,p,a,s,u,d)),(n=h[2])&&c.push(new o(n,r,p,a,f,u,d)),(n=h[1])&&c.push(new o(n,f,i,a,s,p,d)),(n=h[0])&&c.push(new o(n,r,i,a,f,p,d))}return this},p.visitAfter=function(t){var e,n=[],r=[];for(this._root&&n.push(new o(this._root,this._x0,this._y0,this._z0,this._x1,this._y1,this._z1));e=n.pop();){var i=e.node;if(i.length){var a,s=e.x0,u=e.y0,l=e.z0,c=e.x1,h=e.y1,f=e.z1,p=(s+c)/2,d=(u+h)/2,m=(l+f)/2;(a=i[0])&&n.push(new o(a,s,u,l,p,d,m)),(a=i[1])&&n.push(new o(a,p,u,l,c,d,m)),(a=i[2])&&n.push(new o(a,s,d,l,p,h,m)),(a=i[3])&&n.push(new o(a,p,d,l,c,h,m)),(a=i[4])&&n.push(new o(a,s,u,m,p,d,f)),(a=i[5])&&n.push(new o(a,p,u,m,c,d,f)),(a=i[6])&&n.push(new o(a,s,d,m,p,h,f)),(a=i[7])&&n.push(new o(a,p,d,m,c,h,f))}r.push(e)}for(;e=r.pop();)t(e.node,e.x0,e.y0,e.z0,e.x1,e.y1,e.z1);return this},p.x=function(t){return arguments.length?(this._x=t,this):this._x},p.y=function(t){return arguments.length?(this._y=t,this):this._y},p.z=function(t){return arguments.length?(this._z=t,this):this._z};var d=n(17593),m=n(61409);function g(t,e){return[t,(0,m.Rm)((0,m.Ml)((m.TW+e)/2))]}function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function v(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw TypeError("Private element is not present on this object")}function b(t,e){if(e.has(t))throw TypeError("Cannot initialize the same private elements twice on an object")}function _(t,e){return t.get(v(t,e))}function E(t,e,n){b(t,e),e.set(t,n)}function x(t,e,n){return t.set(v(t,e),n),n}function w(t,e,n){return(e=O(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}
393function S(t){return(S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function P(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(P=function(){return!!t})()}function M(t,e){return(M=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function A(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e);else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(t,e)||k(t,e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function T(t){return function(t){if(Array.isArray(t))return y(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||k(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e);if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==typeof e?e:e+""}function k(t,e){if(t){if("string"==typeof t)return y(t,e);var n=({}).toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(t,e):void 0}}g.invert=function(t,e){return[t,2*(0,m.rY)((0,m.oN)(e))-m.TW]};var C=function(t){t instanceof Array?t.forEach(C):(t.map&&t.map.dispose(),t.dispose())},j=function(t){t.geometry&&t.geometry.dispose(),t.material&&C(t.material),t.texture&&t.texture.dispose(),t.children&&t.children.forEach(j)},R=function(t){if(t&&t.children)for(;t.children.length;){var e=t.children[0];t.remove(e),j(e)}};function D(t,e,n){var r=(90-t)*Math.PI/180,i=(90-e)*Math.PI/180;return{x:n*Math.sin(r)*Math.cos(i),y:n*Math.cos(r),z:n*Math.sin(r)*Math.sin(i)}}function L(t){return t*Math.PI/180}var I=function(t){return 1-(g(0,(.5-t)*Math.PI)[1]/Math.PI+1)/2},N=function(t){return Math.max(0,Math.min(1,I(t)))},F=function(t){return .5-g.invert(0,(2*(1-t)-1)*Math.PI)[1]/Math.PI},z=function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=(0,d.A)().domain([1,0]).range([e,n]).clamp(!0),i=(0,d.A)().domain([N(e),N(n)]).range([1,0]).clamp(!0),o=t.array,a=0,s=o.length;a<s;a+=2)o[a+1]=i(N(r(o[a+1])));t.needsUpdate=!0},U=function(t,e,n,r){var i=Math.pow(2,t),o=Math.max(0,Math.min(i-1,Math.floor((n+180)*i/360))),a=(90-r)/180;return e&&(a=Math.max(0,Math.min(1,I(a)))),[o,Math.floor(a*i)]},B=function(t,e){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,a=[],s=Math.pow(2,t),u=360/s,l=180/s,c=void 0===o?s-1:o,h=n,f=Math.min(s-1,void 0===i?s-1:i);h<=f;h++)for(var p=r,d=Math.min(s-1,c);p<=d;p++){var m=p,g=l;e&&(m=0===p?p:F(p/s)*s,g=((p+1===s?p+1:F((p+1)/s)*s)-m)*180/s);var y=-180+(h+.5)*u,v=90-(180*m/s+g/2),b=g;a.push({x:h,y:p,lng:y,lat:v,latLen:b})}return a},H=new WeakMap,q=new WeakMap,G=new WeakMap,V=new WeakMap,W=new WeakMap,Y=new WeakMap,Z=new WeakMap,$=new WeakMap,X=new WeakSet,K=function(t){var e;function n(t){var e,i,o,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=a.tileUrl,u=a.minLevel,l=a.maxLevel,c=a.mercatorProjection;if(!(this instanceof n))throw TypeError("Cannot call a class as a function");return e=S(e=n),b(i=o=function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(this,P()?Reflect.construct(e,[],S(this).constructor):e.apply(this,void 0)),X),X.add(i),E(o,H,void 0),E(o,q,void 0),E(o,G,void 0),E(o,V,void 0),E(o,W,{}),E(o,Y,void 0),E(o,Z,void 0),E(o,$,void 0),w(o,"minLevel",void 0),w(o,"maxLevel",void 0),w(o,"thresholds",T(Array(30)).map(function(t,e){return 8/Math.pow(2,e)})),w(o,"curvatureResolution",5),w(o,"tileMargin",0),w(o,"clearTiles",function(){Object.values(_(W,o)).forEac
393h(function(t){t.forEach(function(t){t.obj&&(o.remove(t.obj),R(t.obj),delete t.obj)})}),x(W,o,{})}),x(H,o,t),o.tileUrl=s,x(q,o,void 0===c||c),o.minLevel=void 0===u?0:u,o.maxLevel=void 0===l?17:l,o.level=0,o.add(x($,o,new r.eaF(new r.Gu$(.99*_(H,o),180,90),new r.V9B({color:0})))),_($,o).visible=!1,_($,o).material.polygonOffset=!0,_($,o).material.polygonOffsetUnits=3,_($,o).material.polygonOffsetFactor=1,o}if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");return n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),t&&M(n,t),e=[{key:"tileUrl",get:function(){return _(G,this)},set:function(t){x(G,this,t),this.updatePov(_(Z,this))}},{key:"level",get:function(){return _(V,this)},set:function(t){var e=this;_(W,this)[t]||v(X,this,Q).call(this,t);var n=_(V,this);if(x(V,this,t),t!==n&&void 0!==n){if(_($,this).visible=t>0,_(W,this)[t].forEach(function(t){return t.obj&&(t.obj.material.depthWrite=!0)}
393),n<t&&_(W,this)[n].forEach(function(t){return t.obj&&(t.obj.material.depthWrite=!1)}),n>t)for(var r=t+1;r<=n;r++)_(W,this)[r]&&_(W,this)[r].forEach(function(t){t.obj&&(e.remove(t.obj),R(t.obj),delete t.obj)});v(X,this,J).call(this)}}},{key:"updatePov",value:function(t){var e,n=this;if(t&&t instanceof r.i7d&&(x(Z,this,t),x(Y,this,function(i){if(!i.hullPnts){var o=360/Math.pow(2,n.level),a=i.lng,s=i.lat,u=i.latLen,l=a-o/2,c=a+o/2,h=s-u/2,f=s+u/2;i.hullPnts=[[s,a],[h,l],[f,l],[h,c],[f,c]].map(function(t){var e=A(t,2);return D(e[0],e[1],_(H,n))}).map(function(t){var e=t.x,n=t.y,i=t.z;return new r.Pq0(e,n,i)})}return e||(e=new r.PPD,t.updateMatrix(),t.updateMatrixWorld(),e.setFromProjectionMatrix(new r.kn4().multiplyMatrices(t.projectionMatrix,t.matrixWorldInverse))),i.hullPnts.some(function(t){return e.containsPoint(t.clone().applyMatrix4(n.matrixWorld))})}),this.tileUrl)){var i=(t.position.clone().distanceTo(this.getWorldPosition(new r.Pq0))-_(H,this))/_(H,this),o=this.thresholds.findIndex(function(t){return t&&t<=i});this.level=Math.min(this.maxLevel,Math.max(this.minLevel,o<0?this.thresholds.length:o)),v(X,this,J).call(this)}}}],function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,O(r.key),r)}}(n.prototype,e),Object.defineProperty(n,"prototype",{writable:!1}),n}(r.YJl);function Q(t){var e=this;if(t>7){_(W,this)[t]=[];return}var n=_(W,this)[t]=B(t,_(q,this));n.forEach(function(t){return t.centroid=D(t.lat,t.lng,_(H,e))}),n.octree=c().x(function(t){return t.centroid.x}).y(function(t){return t.centroid.y}).z(function(t){return t.centroid.z}).addAll(n)}function J(){var t=this;if(this.tileUrl&&void 0!==this.level&&_(W,this).hasOwnProperty(this.level)&&(_(Y,this)||!(this.level>6))){var e=_(W,this)[this.level];if(_(Z,this)){var n=this.worldToLocal(_(Z,this).position.clone());if(e.octree){var i,o=this.worldToLocal(_(Z,this).position.clone()),a=(o.length()-_(H,this))*3;e=(i=e.octree).findAllWithinRadius.apply(i,T(o).concat([a]))}else{var s,u,l,c,h,f=(s=n.x,c=Math.sqrt(s*s+(u=n.y)*u+(l=n.z)*l),{lat:90-180*Math.acos(u/c)/Math.PI,lng:90-180*(h=Math.atan2(l,s))/M
393ath.PI-360*(h<-Math.PI/2),r:c}),p=(f.r/_(H,this)-1)*90,d=p/Math.cos(L(f.lat)),m=[f.lng-d,f.lng+d],g=[f.lat+p,f.lat-p],y=A(U(this.level,_(q,this),m[0],g[0]),2),v=y[0],b=y[1],E=A(U(this.level,_(q,this),m[1],g[1]),2),x=E[0],w=E[1];e.record||(e.record={});var S=e.record;if(S.hasOwnProperty("".concat(Math.round((v+x)/2),"_").concat(Math.round((b+w)/2)))){for(var P=[],M=v;M<=x;M++)for(var O=b;O<=w;O++){var k="".concat(M,"_").concat(O);S.hasOwnProperty(k)||(S[k]=B(this.level,_(q,this),M,O,M,O)[0],e.push(S[k])),P.push(S[k])}e=P}else e=B(this.level,_(q,this),v,b,x,w).map(function(t){var n="".concat(t.x,"_").concat(t.y);return S.hasOwnProperty(n)?S[n]:(S[n]=t,e.push(t),t)})}}e.filter(function(t){return!t.obj}).filter(_(Y,this)||function(){return!0}).forEach(function(e){var n=e.x,i=e.y,o=e.lng,a=e.lat,s=e.latLen,u=360/Math.pow(2,t.level);if(!e.obj){var l=u*(1-t.tileMargin),c=s*(1-t.tileMargin),h=L(o),f=L(-a),p=new r.eaF(new r.Gu$(_(H,t),Math.ceil(l/t.curvatureResolution),Math.ceil(c/t.curvatureResolution),L(90-l/2)+h,L(l),L(90-c/2)+f,L(c)),new r.G_z);if(_(q,t)){var d=A([a+s/2,a-s/2].map(function(t){return .5-t/180}),2),m=d[0],g=d[1];z(p.geometry.attributes.uv,m,g)}e.obj=p}e.loading||(e.loading=!0,new r.Tap().load(t.tileUrl(n,i,t.level),function(n){var i=e.obj;i&&(n.colorSpace=r.er$,i.material.map=n,i.material.color=null,i.material.needsUpdate=!0,t.add(i)),e.loading=!1}))})}}},84121:(t,e,n)=>{"use strict";function r(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,i=e.slice();return function(o){for(n=0;n<r;++n)i[n]=t[n]*(1-o)+e[n]*o;return i}}function i(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}n.d(e,{A:()=>r,p:()=>i})},84997:(t,e,n)=>{"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function i(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e);if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==typeof e?e:e+""}function o(t,e){if(t){if("string"==typeof t)return r(t,e);var n=({}).toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}n.d(e,{A:()=>a});var a=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=!(arguments.length>2)||void 0===arguments[2]||arguments[2],a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=(e instanceof Array?e.length?e:[void 0]:[e]).map(function(t){return{keyAccessor:t,isProp:!(t instanceof Function)}}),u=t.reduce(function(t,e){var r=t,o=e;return s.forEach(function(t,e){var a,u=t.keyAccessor;if(t.isProp){var l=o,c=l[u],h=function(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n={};for(var r in t)if(({}).hasOwnProperty.call(t,r)){if(e.includes(r))continue;n[r]=t[r]}return n}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.includes(n)||({}).propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(l,[u].map(i));a=c,o=h}else a=u(o,e);e+1<s.length?(r.hasOwnProperty(a)||(r[a]={}),r=r[a]):n?(r.hasOwnProperty(a)||(r[a]=[]),r[a].push(o)):r[a]=o}),t},{});n instanceof Function&&function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;r===s.length?Object.keys(e).forEach(function(t){return e[t]=n(e[t])}):Object.values(e).forEach(function(e){return t(e,r+1)})}(u);var l=u;return a&&(l=[],!function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];n.length===s.length?l.push({keys:n,vals:e}):Object.entries(e).forEach(function(e){var i=function(t){if(Array.isArray(t))return t}(e)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,l=!1;try{o=(n=n.call(t)).next,!1;for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){l=!0,i=t}
393finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,2)||o(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),a=i[0];return t(i[1],[].concat(function(t){if(Array.isArray(t))return r(t)}(n)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(n)||o(n)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[a]))})}(u),e instanceof Array&&0===e.length&&1===l.length&&(l[0].keys=[])),l}},87696:(t,e,n)=>{"use strict";n.d(e,{_:()=>i});var r=n(85339);class i extends r.QCA{constructor(t,e={}){let n=e.font;if(void 0===n)super();else{let r=n.generateShapes(t,e.size,e.direction);void 0===e.depth&&(e.depth=50),void 0===e.bevelThickness&&(e.bevelThickness=10),void 0===e.bevelSize&&(e.bevelSize=8),void 0===e.bevelEnabled&&(e.bevelEnabled=!1),super(r,e)}this.type="TextGeometry"}}},91268:(t,e,n)=>{"use strict";function r(t,e,n=2){let p,d,y,b=e&&e.length,_=b?e[0]*n:t.length,E=i(t,0,_,n,!0),x=[];if(!E||E.next===E.prev)return x;if(b&&(E=function(t,e,n,r){let s=[];for(let n=0,o=e.length;n<o;n++){let a=e[n]*r,u=n<o-1?e[n+1]*r:t.length,l=i(t,a,u,r,!1);l===l.next&&(l.steiner=!0),s.push(function(t){let e=t,n=t;do(e.x<n.x||e.x===n.x&&e.y<n.y)&&(n=e),e=e.next;while(e!==t);return n}(l))}s.sort(a);for(let t=0;t<s.length;t++)n=function(t,e){let n=function(t,e){let n,r=e,i=t.x,o=t.y,a=-1/0;if(h(t,r))return r;do{if(h(t,r.next))return r.next;if(o<=r.y&&o>=r.next.y&&r.next.y!==r.y){let t=r.x+(o-r.y)*(r.next.x-r.x)/(r.next.y-r.y
393);if(t<=i&&t>a&&(a=t,n=r.x<r.next.x?r:r.next,t===i))return n}r=r.next}while(r!==e);if(!n)return null;let s=n,l=n.x,f=n.y,p=1/0;r=n;do{if(i>=r.x&&r.x>=l&&i!==r.x&&u(o<f?i:a,o,l,f,o<f?a:i,o,r.x,r.y)){var d,g;let e=Math.abs(o-r.y)/(i-r.x);m(r,t)&&(e<p||e===p&&(r.x>n.x||r.x===n.x&&(d=n,g=r,0>c(d.prev,d,g.prev)&&0>c(g.next,d,d.next))))&&(n=r,p=e)}r=r.next}while(r!==s);return n}(t,e);if(!n)return e;let r=g(n,t);return o(r,r.next),o(n,n.next)}(s[t],n);return n}(t,e,E,n)),t.length>80*n){p=1/0,d=1/0;let e=-1/0,r=-1/0;for(let i=n;i<_;i+=n){let n=t[i],o=t[i+1];n<p&&(p=n),o<d&&(d=o),n>e&&(e=n),o>r&&(r=o)}y=0!==(y=Math.max(e-p,r-d))?32767/y:0}return function t(e,n,r,i,a,u,p){if(!e)return;!p&&u&&function(t,e,n,r){let i=t;do 0===i.z&&(i.z=s(i.x,i.y,e,n,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next;while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,function(t){let e,n=1;do{let r,i=t;t=null;let o=null;for(e=0;i;){e++;let a=i,s=0;for(let t=0;t<n&&(s++,a=a.nextZ);t++);let u=n;for(;s>0||u>0&&a;)0!==s&&(0===u||!a||i.z<=a.z)?(r=i,i=i.nextZ,s--):(r=a,a=a.nextZ,u--),o?o.nextZ=r:t=r,r.prevZ=o,o=r;i=a}o.nextZ=null,n*=2}while(e>1)}(i)}(e,i,a,u);let d=e;for(;e.prev!==e.next;){let y=e.prev,b=e.next;if(u?function(t,e,n,r){let i=t.prev,o=t.next;if(c(i,t,o)>=0)return!1;let a=i.x,u=t.x,h=o.x,f=i.y,p=t.y,d=o.y,m=Math.min(a,u,h),g=Math.min(f,p,d),y=Math.max(a,u,h),v=Math.max(f,p,d),b=s(m,g,e,n,r),_=s(y,v,e,n,r),E=t.prevZ,x=t.nextZ;for(;E&&E.z>=b&&x&&x.z<=_;){if(E.x>=m&&E.x<=y&&E.y>=g&&E.y<=v&&E!==i&&E!==o&&l(a,f,u,p,h,d,E.x,E.y)&&c(E.prev,E,E.next)>=0||(E=E.prevZ,x.x>=m&&x.x<=y&&x.y>=g&&x.y<=v&&x!==i&&x!==o&&l(a,f,u,p,h,d,x.x,x.y)&&c(x.prev,x,x.next)>=0))return!1;x=x.nextZ}for(;E&&E.z>=b;){if(E.x>=m&&E.x<=y&&E.y>=g&&E.y<=v&&E!==i&&E!==o&&l(a,f,u,p,h,d,E.x,E.y)&&c(E.prev,E,E.next)>=0)return!1;E=E.prevZ}for(;x&&x.z<=_;){if(x.x>=m&&x.x<=y&&x.y>=g&&x.y<=v&&x!==i&&x!==o&&l(a,f,u,p,h,d,x.x,x.y)&&c(x.prev,x,x.next)>=0)return!1;x=x.nextZ}return!0}(e,i,a,u):function(t){let e=t.prev,n=t.next;if(c(e,t,n)>=0)return!1;let r=e.x,i=t.x,o=n.x,a=e.y,s=t.y,u=n.y,h=Math.min(r,i,o),f=Math.min(a,s,u),p=Math.max(r,i,o),d=Math.max(a,s,u),m=n.next;for(;m!==e;){if(m.x>=h&&m.x<=p&&m.y>=f&&m.y<=d&&l(r,a,i,s,o,u,m.x,m.y)&&c(m.prev,m,m.next)>=0)return!1;m=m.next}return!0}(e)){n.push(y.i,e.i,b.i),v(e),e=b.next,d=b.next;continue}if((e=b)===d){p?1===p?t(e=function(t,e){let n=t;do{let r=n.prev,i=n.next.next;!h(r,i)&&f(r,n,n.next,i)&&m(r,i)&&m(i,r)&&(e.push(r.i,n.i,i.i),v(n),v(n.next),n=t=i),n=n.next}while(n!==t);return o(n)}(o(e),n),n,r,i,a,u,2):2===p&&function(e,n,r,i,a,s){let u=e;do{let e=u.next.next;for(;e!==u.prev;){var l,p;if(u.i!==e.i&&(l=u,p=e,l.next.i!==p.i&&l.prev.i!==p.i&&!function(t,e){let n=t;do{if(n.i!==t.i&&n.next.i!==t.i&&n.i!==e.i&&n.next.i!==e.i&&f(n,n.next,t,e))return!0;n=n.next}while(n!==t);return!1}(l,p)&&(m(l,p)&&m(p,l)&&function(t,e){let n=t,r=!1,i=(t.x+e.x)/2,o=(t.y+e.y)/2;do n.y>o!=n.next.y>o&&n.next.y!==n.y&&i<(n.next.x-n.x)*(o-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next;while(n!==t);return r}(l,p)&&(c(l.prev,l,p.prev)||c(l,p.prev,p))||h(l,p)&&c(l.prev,l,l.next)>0&&c(p.prev,p,p.next)>0))){let l=g(u,e);u=o(u,u.next),l=o(l,l.next),t(u,n,r,i,a,s,0),t(l,n,r,i,a,s,0);return}e=e.next}u=u.next}while(u!==e)}(e,n,r,i,a,u):t(o(e),n,r,i,a,u,1);break}}}(E,x,n,p,d,y,0),x}function i(t,e,n,r,i){let o;if(i===function(t,e,n,r){let i=0;for(let o=e,a=n-r;o<n;o+=r)i+=(t[a]-t[o])*(t[o+1]+t[a+1]),a=o;return i}(t,e,n,r)>0)for(let i=e;i<n;i+=r)o=y(i/r|0,t[i],t[i+1],o);else for(let i=n-r;i>=e;i-=r)o=y(i/r|0,t[i],t[i+1],o);return o&&h(o,o.next)&&(v(o),o=o.next),o}function o(t,e){if(!t)return t;e||(e=t);let n=t,r;do if(r=!1,!n.steiner&&(h(n,n.next)||0===c(n.prev,n,n.next))){if(v(n),(n=e=n.prev)===n.next)break;r=!0}else n=n.next;while(r||n!==e);return e}function a(t,e){let n=t.x-e.x;return 0===n&&0==(n=t.y-e.y)&&(n=(t.next.y-t.y)/(t.next.x-t.x)-(e.next.y-e.y)/(e.next.x-e.x)),n}function s(t,e,n,r,i){return(t=((t=((t=((t=((t=(t-n)*i|0)|t<<8)&0xff00ff)|t<<4)&0xf0f0f0f)|t<<2)&0x33333333)|t<<1)&0x55555555)|(e=((e=((e=((e=((e=(e-r)*i|0)|e<<8)&0xff00ff)|e<<4)&0xf0f0f0f)|e<<2)&0x33333333)|e<<1)&0x55555555)<<1}function u(t,e,n,r,i,o,a,s){return(i-a)*(e-s)>=(t-a)*(o-s)&&(t-a)*(r-s)>=(n-a)*(e-s)&&(n-a)*(o-s)>=(i-a)*(r-s)}function l(t,e,n,r,i,o,a,s){return(t!==a||e!==s)&&u(t,e,n,r,i,o,a,s)}function c(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function h(t,e){return t.x===e.x&&t.y===e.y}function f(t,e,n,r){let i=d(c(t,e,n)),o=d(c(t,e,r)),a=d(c(n,r,t)),s=d(c(n,r,e));return!!(i!==o&&a!==s||0===i&&p(t,n,e)||0===o&&p(t,r,e)||0===a&&p(n,t,r)||0===s&&p(n,e,r))}function p(t,e,n){return e.x<=Math.max(t.x,n.x)&&e.x>=Math.min(t.x,n.x)&&e.y<=Math.max(t.y,n.y)&&e.y>=Math.min(t.y,n.y)}function d(t){return t>0?1:t<0?-1:0}function m(t,e){return 0>c(t.prev,t,t.next)?c(t,e,t.next)>=0&&c(t,t.prev,e)>=0:0>c(t,e,t.prev)||0>c(t,t.next,e)}function g(t,e){let n=b(t.i,t.x,t.y),r=b(e.i,e.x,e.y),i=t.next,o=e.prev;return t.next=e,e.prev=t,n.next=i,i.prev=n,r.next=n,n.prev=r,o.next=r,r.prev=o,r}function y(t,e,n,r){let i=b(t,e,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function v(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function b(t,e,n){return{i:t,x:e,y:n,prev:null,next:null,z:0,prevZ:null,nextZ:null,steiner:!1}}function _(t){let e=[],n=[],r=t[0][0].length,i=0,o=0;for(let a of t){for(let t of a)for(let n=0;n<r;n++)e.push(t[n]);o&&(i+=o,n.push(i)),o=a.length}return{vertices:e,holes:n,dimensions:r}}n.d(e,{Ay:()=>r,Bq:()=>_})},96635:(t,e,n)=>{"use strict";n.d(e,{F8e:()=>p,FZF:()=>a,Fn:()=>i,IGN:()=>m,If:()=>o,PiW:()=>g,RZD:()=>d,cGD:()=>h,fVC:()=>c,gnS:()=>u,oNF:()=>l,qRo:()=>s,zed:()=>f});var r=n(82752);r.uuE.BRDF_GGX,r.uuE.BRDF_Lambert,r.uuE.BasicPointShadowFilter,r.uuE.BasicShadowFilter,r.uuE.Break,r.uuE.Const,r.uuE.Continue,r.uuE.DFGLUT,r.uuE.D_GGX,r.uuE.Discard,r.uuE.EPSILON,r.uuE.F_Schlick;let i=r.uuE.Fn;r.uuE.INFINITY;let o=r.uuE.If,a=r.uuE.Loop;r.uuE.NodeAccess,r.uuE.NodeShaderStage,r.uuE.NodeType,r.uuE.NodeUpdateType,r.uuE.PCFShadowFilter,r.uuE.PCFSoftShadowFilter,r.uuE.PI,r.uuE.PI2,r.uuE.TWO_PI,r.uuE.HALF_PI,r.uuE.PointShadowFilter,r.uuE.Return,r.uuE.Schlick_to_F0,r.uuE.ScriptableNodeResources,r.uuE.ShaderNode,r.uuE.Stack,r.uuE.Switch,r.uuE.TBNViewMatrix,r.uuE.VSMShadowFilter,r.uuE.V_GGX_SmithCorrelated,r.uuE.Var,r.uuE.V
393arIntent,r.uuE.abs,r.uuE.acesFilmicToneMapping,r.uuE.acos,r.uuE.add,r.uuE.addMethodChaining,r.uuE.addNodeElement,r.uuE.agxToneMapping,r.uuE.all,r.uuE.alphaT,r.uuE.and,r.uuE.anisotropy,r.uuE.anisotropyB,r.uuE.anisotropyT,r.uuE.any,r.uuE.append,r.uuE.array,r.uuE.arrayBuffer;let s=r.uuE.asin;r.uuE.assign,r.uuE.atan,r.uuE.atan2,r.uuE.atomicAdd,r.uuE.atomicAnd,r.uuE.atomicFunc,r.uuE.atomicLoad,r.uuE.atomicMax,r.uuE.atomicMin,r.uuE.atomicOr,r.uuE.atomicStore,r.uuE.atomicSub,r.uuE.atomicXor,r.uuE.attenuationColor,r.uuE.attenuationDistance,r.uuE.attribute,r.uuE.attributeArray,r.uuE.backgroundBlurriness,r.uuE.backgroundIntensity,r.uuE.backgroundRotation,r.uuE.batch,r.uuE.bentNormalView,r.uuE.billboarding,r.uuE.bitAnd,r.uuE.bitNot,r.uuE.bitOr,r.uuE.bitXor,r.uuE.bitangentGeometry,r.uuE.bitangentLocal,r.uuE.bitangentView,r.uuE.bitangentWorld,r.uuE.bitcast,r.uuE.blendBurn,r.uuE.blendColor,r.uuE.blendDodge,r.uuE.blendOverlay,r.uuE.blendScreen,r.uuE.blur,r.uuE.bool,r.uuE.buffer,r.uuE.bufferAttribute,r.uuE.bumpMap,r.uuE.burn,r.uuE.builtin,r.uuE.builtinAOContext,r.uuE.builtinShadowContext,r.uuE.bvec2,r.uuE.bvec3,r.uuE.bvec4,r.uuE.bypass,r.uuE.cache,r.uuE.call,r.uuE.cameraFar,r.uuE.cameraIndex,r.uuE.cameraNear,r.uuE.cameraNormalMatrix,r.uuE.cameraPosition,r.uuE.cameraProjectionMatrix,r.uuE.cameraProjectionMatrixInverse,r.uuE.cameraViewMatrix,r.uuE.cameraViewport,r.uuE.cameraWorldMatrix,r.uuE.cbrt,r.uuE.cdl,r.uuE.ceil,r.uuE.checker,r.uuE.cineonToneMapping,r.uuE.clamp,r.uuE.clearcoat,r.uuE.clearcoatNormalView,r.uuE.clearcoatRoughness,r.uuE.code,r.uuE.color,r.uuE.colorSpaceToWorking,r.uuE.colorToDirection,r.uuE.compute,r.uuE.computeKernel,r.uuE.computeSkinning,r.uuE.context,r.uuE.convert,r.uuE.convertColorSpace,r.uuE.convertToTexture,r.uuE.countLeadingZeros,r.uuE.countOneBits,r.uuE.countTrailingZeros;let u=r.uuE.cos;r.uuE.cross,r.uuE.cubeTexture,r.uuE.cubeTextureBase,r.uuE.dFdx,r.uuE.dFdy,r.uuE.dashSize,r.uuE.debug,r.uuE.decrement,r.uuE.decrementBefore,r.uuE.defaultBuildStages,r.uuE.defaultShaderStages,r.uuE.defined,r.uuE.degrees,r.uuE.deltaTime,r.uuE.densityFog,r.uuE.densityFogFactor,r.uuE.depth,r.uuE.depthPass,r.uuE.determinant,r.uuE.difference,r.uuE.diffuseColor,r.uuE.directPointLight,r.uuE.directionToColor,r.uuE.directionToFaceDirection,r.uuE.dispersion,r.uuE.distance,r.uuE.div,r.uuE.dodge,r.uuE.dot,r.uuE.drawIndex,r.uuE.dynamicBufferAttribute,r.uuE.element,r.uuE.emissive,r.uuE.equal,r.uuE.equals,r.uuE.equirectUV;let l=r.uuE.exp;r.uuE.exp2,r.uuE.expression,r.uuE.faceDirection,r.uuE.faceForward,r.uuE.faceforward;let c=r.uuE.float;r.uuE.floatBitsToInt,r.uuE.floatBitsToUint,r.uuE.floor,r.uuE.fog,r.uuE.fract,r.uuE.frameGroup,r.uuE.frameId,r.uuE.frontFacing,r.uuE.fwidth,r.uuE.gain,r.uuE.gapSize,r.uuE.getConstNodeType,r.uuE.getCurrentStack,r.uuE.getDirection,r.uuE.getDistanceAttenuation,r.uuE.getGeometryRoughness,r.uuE.getNormalFromDepth,r.uuE.interleavedGradientNoise,r.uuE.vogelDiskSample,r.uuE.getParallaxCorrectNormal,r.uuE.getRoughness,r.uuE.getScreenPosition,r.uuE.getShIrradianceAt,r.uuE.getShadowMaterial,r.uuE.getShadowRenderObjectFunction,r.uuE.getTextureIndex,r.uuE.getViewPosition,r.uuE.globalId,r.uuE.glsl,r.uuE.glslFn,r.uuE.grayscale,r.uuE.greaterThan,r.uuE.greaterThanEqual,r.uuE.hash,r.uuE.highpModelNormalViewMatrix,r.uuE.highpModelViewMatrix,r.uuE.hue,r.uuE.increment,r.uuE.incrementBefore,r.uuE.instance;let h=r.uuE.instanceIndex;r.uuE.instancedArray,r.uuE.instancedBufferAttribute,r.uuE.instancedDynamicBufferAttribute,r.uuE.instancedMesh,r.uuE.int,r.uuE.intBitsToFloat,r.uuE.inverse,r.uuE.inverseSqrt,r.uuE.inversesqrt,r.uuE.invocationLocalIndex,r.uuE.invocationSubgroupIndex,r.uuE.ior,r.uuE.iridescence,r.uuE.iridescenceIOR,r.uuE.iridescenceThickness,r.uuE.ivec2,r.uuE.ivec3,r.uuE.ivec4,r.uuE.js,r.uuE.label,r.uuE.length,r.uuE.lengthSq,r.uuE.lessThan,r.uuE.lessThanEqual,r.uuE.lightPosition,r.uuE.lightProjectionUV,r.uuE.lightShadowMatrix,r.uuE.lightTargetDirection,r.uuE.lightTargetPosition,r.uuE.lightViewPosition,r.uuE.lightingContext,r.uuE.lights,r.uuE.linearDepth,r.uuE.linearToneMapping,r.uuE.localId,r.uuE.log,r.uuE.log2,r.uuE.logarithmicDepthToViewZ,r.uuE.luminance,r.uuE.mat2,r.uuE.mat3,r.uuE.mat4,r.uuE.matcapUV,r.uuE.materialAO,r.uuE.materialAlphaTest,r.uuE.materialAnisotropy,r.uuE.materialAnisotropyVector,r.uuE.materialAttenuationColor,r.uuE.materialAttenuationDistance,r.uuE.materialClearcoat,r.uuE.materialClearcoatNormal,r.uuE.materialClearcoatRoughness,r.uuE.materialColor,r.uuE.materialDispersion,r.uuE.materialEmissive,r.uuE.materialEnvIntensity,r.uuE.materialEnvRotation,r.uuE.materialIOR,r.uuE.materialIridescence,r.uuE.materialIridescenceIOR,r.uuE.materialIridescenceThickness,r.uuE.materialLightMap,r.uuE.materialLineDashOffset,r.uuE.materialLineDashSize,r.uuE.materialLineGapSize,r.uuE.materialLineScale,r.uuE.materialLineWidth,r.uuE.materialMetalness,r.uuE.materialNormal,r.uuE.materialOpacity,r.uuE.materialPointSize,r.uuE.materialReference,r.uuE.materialReflectivity,r.uuE.materialRefractionRatio,r.uuE.materialRotation,r.uuE.materialRoughness,r.uuE.materialSheen,r.uuE.materialSheenRoughness,r.uuE.materialShininess,r.uuE.materialSpecular,r.uuE.materialSpecularColor,r.uuE.materialSpecularIntensity,r.uuE.materialSpecularStrength,r.uuE.materialThickness,r.uuE.materialTransmission,r.uuE.max,r.uuE.maxMipLevel,r.uuE.mediumpModelViewMatrix,r.uuE.metalness,r.uuE.min,r.uuE.mix,r.uuE.mixElement,r.uuE.mod,r.uuE.modInt,r.uuE.modelDirection,r.uuE.modelNormalMatrix,r.uuE.modelPosition,r.uuE.modelRadius,r.uuE.modelScale,r.uuE.modelViewMatrix,r.uuE.modelViewPosition,r.uuE.modelViewProjection,r.uuE.modelWorldMatrix,r.uuE.modelWorldMatrixInverse,r.uuE.morphReference,r.uuE.mrt,r.uuE.mul,r.uuE.mx_aastep,r.uuE.mx_add,r.uuE.mx_atan2,r.uuE.mx_cell_noise_float,r.uuE.mx_contrast,r.uuE.mx_divide,r.uuE.mx_fractal_noise_float,r.uuE.mx_fractal_noise_vec2,r.uuE.mx_fractal_noise_vec3,r.uuE.mx_fractal_noise_vec4,r.uuE.mx_frame,r.uuE.mx_heighttonormal,r.uuE.mx_hsvtorgb,r.uuE.mx_ifequal,r.uuE.mx_ifgreater,r.uuE.mx_ifgreatereq,r.uuE.mx_invert,r.uuE.mx_modulo,r.uuE.mx_multiply,r.uuE.mx_noise_float,r.uuE.mx_noise_vec3,r.uuE.mx_noise_vec4,r.uuE.mx_place2d,r.uuE.mx_power,r.uuE.mx_ramp4,r.uuE.mx_ramplr,r.uuE.mx_ramptb,r.uuE.mx_rgbtohsv,r.uuE.mx_rotate2d,r.uuE.mx_rotate3d,r.uuE.mx_safepower,r.uuE.mx_separate,r.uuE.mx_splitlr,r.uuE.mx_splittb,r.uuE.mx_srgb_texture_to_lin_rec709,r.uuE.mx_subtract,r.uuE.mx_timer,r.uuE.mx_transform_uv,r.uuE.mx_unifiednoise2d,r.uuE.mx_unifiednoise3d,r.uuE.mx_worley_noise_float,r.uuE.mx_worley_noise_vec2,r.uuE.mx_worley_noise_vec3;let f=r.uuE.negate;r.uuE.neutralToneMapping,r.uuE.nodeArray,r.uuE.nodeImmutable,r.uuE.nodeObject,r.uuE.nodeObjectIntent,r.uuE.nodeObjects,r.uuE.nodeProxy,r.uuE.nodeProxyIntent,r.uuE.normalFlat,r.uuE.normalGeometry,r.uuE.normalLocal,r.uuE.normalMap,r.uuE.normalView,r.uuE.normalViewGeometry,r.uuE.normalWorld,r.uuE.normalWorldGeometry,r.uuE.normalize,r.uuE.not,r.uuE.notEqual,r.uuE.numWorkgroups,r.uuE.objectDirection,r.uuE.objectGroup,r.uuE.objectPosition,r.uuE.objectRadius,r.uuE.objectScale,r.uuE.objectViewPosition,r.uuE.objectWorldMatrix,r.uuE.OnBeforeObjectUpdate,r.uuE.OnBeforeMaterialUpdate,r.uuE.OnObjectUpdate,r.uuE.OnMaterialUpdate,r.uuE.oneMinus,r.uuE.or,r.uuE.orthographicDepthToViewZ,r.uuE.oscSawtooth,r.uuE.oscSine,r.uuE.oscSquare,r.uuE.oscTriangle,r.uuE.output,r.uuE.outputStruct,r.uuE.overlay,r.uuE.overloadingFn,r.uuE.packHalf2x16,r.uuE.packSnorm2x16,r.uuE.packUnorm2x16,r.uuE.parabola,r.uuE.parallaxDirection,r.uuE.parallaxUV,r.uuE.parameter,r.uuE.pass,r.uuE.passTexture,r.uuE.pcurve,r.uuE.perspectiveDepthToViewZ,r.uuE.pmremTexture,r.uuE.pointShadow,r.uuE.pointUV,r.uuE.pointWidth,r.uuE.positionGeometry,r.uuE.positionLocal,r.uuE.positionPrevious,r.uuE.positionView,r.uuE.positionViewDirection,r.uuE.positionWorld,r.uuE.positionWorldDirection,r.uuE.posterize,r.uuE.pow,r.uuE.pow2,r.uuE.pow3,r.uuE.pow4,r.uuE.premultiplyAlpha,r.uuE.property,r.uuE.radians,r.uuE.rand,r.uuE.range,r.uuE.rangeFog,r.uuE.rangeFogFactor,r.uuE.reciprocal,r.uuE.reference,r.uuE.referenceBuffer,r.uuE.reflect,r.uuE.reflectVector,r.uuE.reflectView,r.uuE.reflector,r.uuE.refract,r.uuE.refractVector,r.uuE.refractView,r.uuE.reinhardToneMapping,r.uuE.remap,r.uuE.remapClamp,r.uuE.renderGroup,r.uuE.renderOutput,r.uuE.rendererReference,r.uuE.replaceDefaultUV,r.uuE.rotate,r.uuE.rotateUV,r.uuE.roughness,r.uuE.round,r.uuE.rtt,r.uuE.sRGBTransferEOTF,r.uuE.sRGBTransferOETF,r.uuE.sample,r.uuE.sampler,r.uuE.samplerComparison,r.uuE.saturate,r.uuE.saturation,r.uuE.screen,r.uuE.screenCoordinate,r.uuE.screenDPR,r.uuE.screenSize,r.uuE.screenUV,r.uuE.scriptable,r.uuE.scriptableValue,r.uuE.select,r.uuE.setCurrentStack,r.uuE.setName,r.uuE.shaderStages,r.uuE.shadow,r.uuE.shadowPositionWorld,r.uuE.shapeCircle,r.uuE.sharedUniformGroup,r.uuE.sheen,r.uuE.sheenRoughness,r.uuE.shiftLeft,r.uuE.shiftRight,r.uuE.shininess,r.uuE.sign;let p=r.uuE.sin;r.uuE.sinc,r.uuE.skinning,r.uuE.smoothstep,r.uuE.smoothstepElement,r.uuE.specularColor,r.uuE.specularF90,r.uuE.spherizeUV,r.uuE.split,r.uuE.spritesheetUV;let d=r.uuE.sqrt;r.uuE.stack,r.uuE.step,r.uuE.stepElement;let m=r.uuE.storage;r.uuE.storageBarrier,r.uuE.storageObject,r.uuE.storageTexture,r.uuE.string,r.uuE.struct,r.uuE.sub,r.uuE.subgroupAdd,r.uuE.subgroupAll,r.uuE.subgroupAnd,r.uuE.subgroupAny,r.uuE.subgroupBallot,r.uuE.subgroupBroadcast,r.uuE.subgroupBroadcastFirst,r.uuE.subBuild,r.uuE.subgroupElect,r.uuE.subgroupExclusiveAdd,r.uuE.subgroupExclusiveMul,r.uuE.subgroupInclusiveAdd,r.uuE.subgroupInclusiveMul,r.uuE.subgroupIndex,r.uuE.subgroupMax,r.uuE.subgroupMin,r.uuE.subgroupMul,r.uuE.subgroupOr,r.uuE.subgroupShuffle,r.uuE.subgroupShuffleDown,r.uuE.subgroupShuffleUp,r.uuE.subgroupShuffleXor,r.uuE.subgroupSize,r.uuE.subgroupXor,r.uuE.tan,r.uuE.tangentGeometry,r.uuE.tangentLocal,r.uuE.tangentView,r.uuE.tangentWorld,r.uuE.texture,r.uuE.texture3D,r.uuE.textureBarrier,r.uuE.textureBicubic,r.uuE.textureBicubicLevel,r.uuE.textureCubeUV,r.uuE.textureLoad,r.uuE.textureSize,r.uuE.textureLevel,r.uuE.textureStore,r.uuE.thickness,r.uuE.time,r.uuE.toneMapping,r.uuE.toneMappingExposure,r.uuE.toonOutlinePass,r.uuE.transformDirection,r.uuE.transformNormal,r.uuE.transformNormalToView,r.uuE.transformedClearcoatNormalView,r.uuE.transformedNormalView,r.uuE.transformedNormalWorld,r.uuE.transmission,r.uuE.transpose,r.uuE.triNoise3D,r.uuE.triplanarTexture,r.uuE.triplanarTextures,r.uuE.trunc,r.uuE.uint,r.uuE.uintBitsToFloat;let g=r.uuE.uniform;r.uuE.uniformArray,r.uuE.uniformCubeTexture,r.uuE.uniformGroup,r.uuE.uniformFlow,r.uuE.uniformTexture,r.uuE.unpackHalf2x16,r.uuE.unpackSnorm2x16,r.uuE.unpackUnorm2x16,r.uuE.unpremultiplyAlpha,r.uuE.userData,r.uuE.uv,r.uuE.uvec2,r.uuE.uvec3,r.uuE.uvec4,r.uuE.varying,r.uuE.varyingProperty,r.uuE.vec2,r.uuE.vec3,r.uuE.vec4,r.uuE.vectorComponents,r.uuE.velocity,r.uuE.vertexColor,r.uuE.vertexIndex,r.uuE.vertexStage,r.uuE.vibrance,r.uuE.viewZToLogarithmicDepth,r.uuE.viewZToOrthographicDepth,r.uuE.viewZToPerspectiveDepth,r.uuE.viewport,r.uuE.viewportCoordinate,r.uuE.viewportDepthTexture,r.uuE.viewportLinearDepth,r.uuE.viewportMipTexture,r.uuE.viewportResolution,r.uuE.viewportSafeUV,r.uuE.viewportSharedTexture,r.uuE.viewportSize,r.uuE.viewportTexture,r.uuE.viewportUV,r.uuE.wgsl,r.uuE.wgslFn,r.uuE.workgroupArray,r.uuE.workgroupBarrier,r.uuE.workgroupId,r.uuE.workingToColorSpace,r.uuE.xor},96663:(t,e,n)=>{"use strict";function r(t,e){let n;if(void 0===e)for(let e of t)null!=e&&(n<e||void 0===n&&e>=e)&&(n=e);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n<i||void 0===n&&i>=i)&&(n=i)}return n}n.d(e,{A:()=>r})},97613:(t,e,n)=>{"use strict";n.d(e,{A:()=>function t(){var e,n=0,a=1,s=1,u=[.5],l=[0,1];function c(t){return null!=t&&t<=t?l[(0,r.Ay)(u,t,0,s)]:e}function h(){var t=-1;for(u=Array(s);++t<s;)u[t]=((t+1)*a-(t-s)*n)/(s+1);return c}return c.domain=function(t){return arguments.length?([n,a]=t,n*=1,a*=1,h()):[n,a]},c.range=function(t){return arguments.length?(s=(l=Array.from(t)).length-1,h()):l.slice()},c.invertExtent=function(t){var e=l.indexOf(t);return e<0?[NaN,NaN]:e<1?[n,u[0]]:e>=s?[u[s-1],a]:[u[e-1],u[e]]},c.unknown=function(t){return arguments.length&&(e=t),c},c.thresholds=function(){return u.slice()},c.copy=function(){return t().domain([n,a]).range(l).unknown(e)},o.C.apply((0,i.C)(c),arguments)}});var r=n(16394),i=n(17593),o=n(6256)},97668:(t,e,n)=>{"use strict";n.d(e,{A:()=>function t(e,n){var i,a=typeof n;return null==n||"boolean"===a?o(n):("number"===a?c.A:"string"===a?(i=(0,r.Ay)(n))?(n=i,s):function(t,e){var n,r,i,o,a,s=h.lastIndex=f.lastIndex=0,u=-1,l=[],p=[];for(t+="",e+="";(i=h.exec(t))&&(o=f.exec(e));)(a=o.index)>s&&(a=e.slice(s,a),l[u]?l[u]+=a:l[++u]=a),(i=i[0])===(o=o[0])?l[u]?l[u]+=o:l[++u]=o:(l[++u]=null,p.push({i:u,x:(0,c.A)(i,o)})),s=f.lastIndex;return s<e.length&&(a=e.slice(s),l[u]?l[u]+=a:l[++u]=a),l.length<2?p[0]?(n=p[0].x,function(t){return n(t)+""}):(r=e,function(){return r}):(e=p.length,function(t){for(var n,r=0;r<e;++r)l[(n=p[r]).i]=n.x(t);return l.join("")})}:n instanceof r.Ay?s:n instanceof Date?function(t,e){var n=new Date;return t*=1,e*=1,function(r){return n.setTime(t*(1-r)+e*r),n}}:(0,p.p)(n)?p.A:Array.isArray(n)?l.$:"function"!=typeof n.valueOf&&"function"!=typeof n.toString||isNaN(n)?function(e,n){var r,i={},o={};for(r in(null===e||"object"!=typeof e)&&(e={}),(null===n||"object"!=typeof n)&&(n={}),n)r in e?i[r]=t(e[r],n[r]):o[r]=n[r];return function(t){for(r in i)o[r]=i[r](t);return o}}:c.A)(e,n)}});var r=n(73690);function i(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}let o=t=>()=>t;function a(t,e){var n=e-t;return n?function(e){return t+e*n}:o(isNaN(t)?e:t)}let s=function t(e){var n,i=1==(n=+e)?a:function(t,e){var r,i,a;
393return e-t?(r=t,i=e,r=Math.pow(r,a=n),i=Math.pow(i,a)-r,a=1/a,function(t){return Math.pow(r+t*i,a)}):o(isNaN(t)?e:t)};function s(t,e){var n=i((t=(0,r.Qh)(t)).r,(e=(0,r.Qh)(e)).r),o=i(t.g,e.g),s=i(t.b,e.b),u=a(t.opacity,e.opacity);return function(e){return t.r=n(e),t.g=o(e),t.b=s(e),t.opacity=u(e),t+""}}return s.gamma=t,s}(1);function u(t){return function(e){var n,i,o=e.length,a=Array(o),s=Array(o),u=Array(o);for(n=0;n<o;++n)i=(0,r.Qh)(e[n]),a[n]=i.r||0,s[n]=i.g||0,u[n]=i.b||0;return a=t(a),s=t(s),u=t(u),i.opacity=1,function(t){return i.r=a(t),i.g=s(t),i.b=u(t),i+""}}}u(function(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),o=t[r],a=t[r+1],s=r>0?t[r-1]:2*o-a,u=r<e-1?t[r+2]:2*a-o;return i((n-r/e)*e,s,o,a,u)}}),u(function(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),o=t[(r+e-1)%e],a=t[r%e],s=t[(r+1)%e],u=t[(r+2)%e];return i((n-r/e)*e,o,a,s,u)}});var l=n(73382),c=n(71716),h=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,f=RegExp(h.source,"g"),p=n(84121)},98338:(t,e,n)=>{"use strict";function r(t,e){let n=0;if(void 0===e)for(let e of t)(e*=1)&&(n+=e);else{let r=-1;for(let i of t)(i=+e(i,++r,t))&&(n+=i)}return n}n.d(e,{A:()=>r})}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.