1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7078],{19807:function(t){var e;e=function(){return function(t){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(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.animateOnce())},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){var r;r=function(){return function(t){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(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];
1this.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}])},t.exports=r()}])},t.exports=e()},14649:function(t,e,n){"use strict";n.d(e,{ZA:function(){return a},kX:function(){return h},oY:function(){return i}});var r,i=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-i.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*i.Bounce.In(2*t):.5*i.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}}}}),o=function(){return performance.now()},a=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)||void 0===t||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=o()),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 i=this._tweens[n[r]],a=!e;i&&!1===i.update(t,a)&&!e&&this.remove(i)}n=Object.keys(this._tweensAddedDuringUpdate)}},t}(),s={Linear:function(t,e){var n=t.length-1,r=n*e,i=Math.floor(r),o=s.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=s.Utils.Bernstein,a=0;a<=r;a++)n+=i(1-e,r-a)*i(e,a)*t[a]*o(r,a);return n},CatmullRom:function(t,e){var n=t.length-1,r=n*e,i=Math.floor(r),o=s.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=s.Utils.Factorial;return n(t)/n(e)/n(t-e)},Factorial:(r=[1],function(t){var e=1;if(r[t])return r[t];for(var n=t;n>1;n--)e*=n;return r[t]=e,e}),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}}},l=function(){function t(){}return t.nextId=function(){return t._nextId++},t._nextId=0,t}(),u=new a,h=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=i.Linear.None,this._interpolationFunction=s.Linear,this._chainedTweens=[],this._onStartCallbackFired=!1,this._onEveryStartCallbackFired=!1,this._id=l.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=o()),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 i in this._valuesEnd)r[i]=this._valuesEnd[i];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),l=s?"array":typeof a,u=!s&&Array.isArray(n[o]);if("undefined"!==l&&"function"!==l){if(u){var h=n[o];if(0===h.length)continue;for(var c=[a],f=0,d=h.length;f<d;f+=1){var p=this._handleRelativeValue(a,h[f]);if(isNaN(p)){u=!1,console.warn("Found invalid interpolation list. Skipping.");break}c.push(p)}u&&(n[o]=c)}if(("object"===l||s)&&a&&!u){for(var m in e[o]=s?[]:{},a)e[o][m]=a[m];r[o]=s?[]:{};var h=n[o];if(!this._isDynamic){var g={};for(var m in h)g[m]=h[m];n[o]=h=g}this._setupProperties(a,e[o],h,r[o],i)}else(void 0===e[o]||i)&&(e[o]=a),s||(e[o]*=1),u?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=o()),this._isPaused||!this._isPlaying||(this._isPaused=!0,this._pauseStart=t),this},t.prototype.resume=function(t){return void 0===t&&(t=o()),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)||void 0===t||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=i.Linear.None),this._easingFunction=t,this},t.prototype.interpolation=function(t){return void 0===t&&(t=s.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,i,a=this;if(void 0===e&&(e=o()),void 0===n&&(n=t.autoStartOnUpdate),this._isPaused)return!0;
1if(!this._goToEnd&&!this._isPlaying){if(!n)return!1;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,l=this._duration+(null!==(r=this._repeatDelayTime)&&void 0!==r?r:this._delayTime),u=this._duration+this._repeat*l,h=function(){if(0===a._duration||s>u)return 1;var t=Math.min((s-Math.trunc(s/l)*l)/a._duration,1);return 0===t&&s===a._duration?1:t}(),c=this._easingFunction(h);if(this._updateProperties(this._object,this._valuesStart,this._valuesEnd,c),this._onUpdateCallback&&this._onUpdateCallback(this._object,h),0===this._duration||s>=this._duration){if(this._repeat>0){var f=Math.min(Math.trunc((s-this._duration)/l)+1,this._repeat);for(i in isFinite(this._repeat)&&(this._repeat-=f),this._valuesStartRepeat)this._yoyo||"string"!=typeof this._valuesEnd[i]||(this._valuesStartRepeat[i]=this._valuesStartRepeat[i]+parseFloat(this._valuesEnd[i])),this._yoyo&&this._swapEndStartRepeatValues(i),this._valuesStart[i]=this._valuesStartRepeat[i];this._yoyo&&(this._reversed=!this._reversed),this._startTime+=l*f,this._onRepeatCallback&&this._onRepeatCallback(this._object),this._onEveryStartCallbackFired=!1}else{this._onCompleteCallback&&this._onCompleteCallback(this._object);for(var d=0,p=this._chainedTweens.length;d<p;d++)this._chainedTweens[d].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]),l=Array.isArray(a);!s&&l?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}();l.nextId,u.getAll.bind(u),u.removeAll.bind(u),u.add.bind(u),u.remove.bind(u),u.update.bind(u)},56124:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});var r=function(t){return"function"==typeof t?t:"string"==typeof t?function(e){return e[t]}:function(e){return t}}},48558:function(t,e,n){"use strict";n.d(e,{dU:function(){return 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}}},53797:function(t,e,n){"use strict";function r(t,e){let n=0;if(void 0===e)for(let e of t)(e=+e)&&(n+=e);else{let r=-1;for(let i of t)(i=+e(i,++r,t))&&(n+=i)}return n}n.d(e,{Z:function(){return r}})},75820:function(t,e,n){"use strict";n.d(e,{Z:function(){return y}});var r,i,o,a,s=n(48558),l=n(85661),u=n(91622),h=n(20151),c={sphere:u.Z,point:u.Z,lineStart:function(){c.point=d,c.lineEnd=f},lineEnd:u.Z,polygonStart:u.Z,polygonEnd:u.Z};function f(){c.point=c.lineEnd=u.Z}function d(t,e){t*=l.uR,e*=l.uR,i=t,o=(0,l.O$)(e),a=(0,l.mC)(e),c.point=p}function p(t,e){t*=l.uR,e*=l.uR;var n=(0,l.O$)(e),s=(0,l.mC)(e),u=(0,l.Wn)(t-i),h=(0,l.mC)(u),c=s*(0,l.O$)(u),f=a*n-o*s*h,d=o*n+a*s*h;r.add((0,l.fv)((0,l._b)(c*c+f*f),d)),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.dU,(0,h.Z)(g,c),+r}},75001:function(t,e,n){"use strict";n.d(e,{e:function(){return s}});var r=n(43527),i=n(85661);function o(t,e,n){var o=(0,r.Z)(t,e-i.Ho,n).concat(e);return function(t){return o.map(function(e){return[t,e]})}}function a(t,e,n){var o=(0,r.Z)(t,e-i.Ho,n).concat(e);return function(t){return o.map(function(e){return[e,t]})}}function s(){return(function(){var t,e,n,s,l,u,h,c,f,d,p,m,g=10,y=10,v=90,_=360,b=2.5;function x(){return{type:"MultiLineString",coordinates:H()}}function H(){return(0,r.Z)((0,i.mD)(s/v)*v,n,v).map(p).concat((0,r.Z)((0,i.mD)(c/_)*_,h,_).map(m)).concat((0,r.Z)((0,i.mD)(e/g)*g,t,g).filter(function(t){return(0,i.Wn)(t%v)>i.Ho}).map(f)).concat((0,r.Z)((0,i.mD)(u/y)*y,l,y).filter(function(t){return(0,i.Wn)(t%_)>i.Ho}).map(d))}return x.lines=function(){return H().map(function(t){return{type:"LineString",coordinates:t}})},x.outline=function(){return{type:"Polygon",coordinates:[p(s).concat(m(h).slice(1),p(n).reverse().slice(1),m(c).reverse().slice(1))]}},x.extent=function(t){return arguments.length?x.extentMajor(t).extentMinor(t):x.extentMinor()},x.extentMajor=function(t){return arguments.length?(s=+t[0][0],n=+t[1][0],c=+t[0][1],h=+t[1][1],s>n&&(t=s,s=n,n=t),c>h&&(t=c,c=h,h=t),x.precision(b)):[[s,c],[n,h]]},x.extentMinor=function(n){return arguments.length?(e=+n[0][0],t=+n[1][0],u=+n[0][1],l=+n[1][1],e>t&&(n=e,e=t,t=n),u>l&&(n=u,u=l,l=n),x.precision(b)):[[e,u],[t,l]]},x.step=function(t){return arguments.length?x.stepMajor(t).stepMinor(t):x.stepMinor()},x.stepMajor=function(t){return arguments.length?(v=+t[0],_=+t[1],x):[v,_]},x.stepMinor=function(t){return arguments.length?(g=+t[0],y=+t[1],x):[g,y]},x.precision=function(r){return arguments.length?(b=+r,f=o(u,l,90),d=a(e,t,b),p=o(c,h,90),m=a(s,n,b),x):b},x.extentMajor([[-180,-90+i.Ho],[180,90-i.Ho]]).extentMinor([[-180,-80-i.Ho],[180,80+i.Ho]])})()()}},24906:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(85661);function i(t,e){var n=t[0]*r.uR,i=t[1]*r.uR,o=e[0]*r.uR,a=e[1]*r.uR,s=(0,r.mC)(i),l=(0,r.O$)(i),u=(0,r.mC)(a),h=(0,r.O$)(a),c=s*(0,r.mC)(n),f=s*(0,r.O$)(n),d=u*(0,r.mC)(o),p=u*(0,r.O$)(o),m=2*(0,r.ZR)((0,r._b)((0,r.Jy)(a-i)+s*u*(0,r.Jy)(o-n))),g=(0,r.O$)(m),y=m?function(t){var e=(0,r.O$)(t*=m)/g,n=(0,r.O$)(m-t)/g,i=n*c+e*d,o=n*f+e*p;return[(0,r.fv)(o,i)*r.RW,(0,r.fv)(n*l+e*h,(0,r._b)(i*i+o*o))*r.RW]}:function(){return[n*r.RW,i*r.RW]};return y.distance=m,y}},85661:function(t,e,n){"use strict";n.d(e,{BZ:function(){return l},Ho:function(){return r},Jy:function(){return M},Kh:function(){return w},O$:function(){return _},OR:function(){return H},Qq:function(){return g},RW:function(){return u},Wn:function(){return c},Xx:function(){return b},ZR:function(){return S},_b:function(){return x},_m:function(){return y},aW:function(){return i},cM:function(){return v},fv:function(){return d},mC:function(){return p},mD:function(){return m},ou:function(){return a},pi:function(){return o},pu:function(){return s},uR:function(){return h},z4:function(){return f}});
1var r=1e-6,i=1e-12,o=Math.PI,a=o/2,s=o/4,l=2*o,u=180/o,h=o/180,c=Math.abs,f=Math.atan,d=Math.atan2,p=Math.cos,m=Math.ceil,g=Math.exp,y=Math.hypot,v=Math.log,_=Math.sin,b=Math.sign||function(t){return t>0?1:t<0?-1:0},x=Math.sqrt,H=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 M(t){return(t=_(t/2))*t}},91622:function(t,e,n){"use strict";function r(){}n.d(e,{Z:function(){return r}})},20151:function(t,e,n){"use strict";function r(t,e){t&&o.hasOwnProperty(t.type)&&o[t.type](t,e)}n.d(e,{Z:function(){return l}});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 l(t,e){t&&i.hasOwnProperty(t.type)?i[t.type](t,e):r(t,e)}},77173:function(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,{Z:function(){return r}})},42168:function(t,e,n){"use strict";n.d(e,{Z:function(){return v}});var r,i,o=n(56124);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}function s(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 l(t,e){return t.get(s(t,e))}function u(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 h(t,e,n){return t.set(s(t,e),n),n}function c(t,e){if(t){if("string"==typeof t)return a(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)?a(t,e):void 0}}var f=new WeakMap,d=new WeakMap,p=new WeakMap,m=new WeakMap,g=new WeakMap,y=new WeakMap,v=(r=function t(){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,t),u(this,f,new Map),u(this,d,new Map),u(this,p,function(t){return t}),u(this,m,function(){return{}}),u(this,g,function(){}),u(this,y,function(){})},i=[{key:"getObj",value:function(t){return l(f,this).get(l(p,this).call(this,t))}},{key:"getData",value:function(t){return l(d,this).get(t)}},{key:"entries",value:function(){var t;return((function(t){if(Array.isArray(t))return a(t)})(t=l(d,this).entries())||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.")}()).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=[],l=!0,u=!1;try{for(o=(n=n.call(t)).next;!(l=(r=o.call(n)).done)&&(s.push(r.value),2!==s.length);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(t,2)||c(t,2)||function(){throw TypeError("Invalid attempt to de
1structure 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 h(p,this,(0,o.Z)(t)),this}},{key:"onCreateObj",value:function(t){return h(m,this,t),this}},{key:"onUpdateObj",value:function(t){return h(g,this,t),this}},{key:"onRemoveObj",value:function(t){return h(y,this,t),this}},{key:"digest",value:function(t){var e=this;t.filter(function(t){return!l(f,e).has(l(p,e).call(e,t))}).forEach(function(t){var n=l(m,e).call(e,t);l(f,e).set(l(p,e).call(e,t),n),l(d,e).set(n,t)});var n=new Map(t.map(function(t){return[l(p,e).call(e,t),t]}));return l(f,this).forEach(function(t,r){n.has(r)?l(g,e).call(e,t,n.get(r)):(l(y,e).call(e,t,r),l(f,e).delete(r),l(d,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)}}(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r)},90893:function(t,e,n){"use strict";function r(t,e,n=2){let r,d,p;let y=e&&e.length,_=y?e[0]*n:t.length,b=i(t,0,_,n,!0),x=[];if(!b||b.next===b.prev)return x;if(y&&(b=function(t,e,n,r){let s=[];for(let n=0,o=e.length;n<o;n++){let a=e[n]*r,l=n<o-1?e[n+1]*r:t.length,u=i(t,a,l,r,!1);u===u.next&&(u.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}(u))}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(c(t,r))return r;do{if(c(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
1);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,u=n.x,f=n.y,d=1/0;r=n;do{if(i>=r.x&&r.x>=u&&i!==r.x&&l(o<f?i:a,o,u,f,o<f?a:i,o,r.x,r.y)){var p,g;let e=Math.abs(o-r.y)/(i-r.x);m(r,t)&&(e<d||e===d&&(r.x>n.x||r.x===n.x&&(p=n,g=r,0>h(p.prev,p,g.prev)&&0>h(g.next,p,p.next))))&&(n=r,d=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,b,n)),t.length>80*n){r=t[0],d=t[1];let e=r,i=d;for(let o=n;o<_;o+=n){let n=t[o],a=t[o+1];n<r&&(r=n),a<d&&(d=a),n>e&&(e=n),a>i&&(i=a)}p=0!==(p=Math.max(e-r,i-d))?32767/p:0}return function t(e,n,r,i,a,l,d){if(!e)return;!d&&l&&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;let 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 l=n;for(;s>0||l>0&&a;)0!==s&&(0===l||!a||i.z<=a.z)?(r=i,i=i.nextZ,s--):(r=a,a=a.nextZ,l--),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,l);let p=e;for(;e.prev!==e.next;){let y=e.prev,_=e.next;if(l?function(t,e,n,r){let i=t.prev,o=t.next;if(h(i,t,o)>=0)return!1;let a=i.x,l=t.x,c=o.x,f=i.y,d=t.y,p=o.y,m=Math.min(a,l,c),g=Math.min(f,d,p),y=Math.max(a,l,c),v=Math.max(f,d,p),_=s(m,g,e,n,r),b=s(y,v,e,n,r),x=t.prevZ,H=t.nextZ;for(;x&&x.z>=_&&H&&H.z<=b;){if(x.x>=m&&x.x<=y&&x.y>=g&&x.y<=v&&x!==i&&x!==o&&u(a,f,l,d,c,p,x.x,x.y)&&h(x.prev,x,x.next)>=0||(x=x.prevZ,H.x>=m&&H.x<=y&&H.y>=g&&H.y<=v&&H!==i&&H!==o&&u(a,f,l,d,c,p,H.x,H.y)&&h(H.prev,H,H.next)>=0))return!1;H=H.nextZ}for(;x&&x.z>=_;){if(x.x>=m&&x.x<=y&&x.y>=g&&x.y<=v&&x!==i&&x!==o&&u(a,f,l,d,c,p,x.x,x.y)&&h(x.prev,x,x.next)>=0)return!1;x=x.prevZ}for(;H&&H.z<=b;){if(H.x>=m&&H.x<=y&&H.y>=g&&H.y<=v&&H!==i&&H!==o&&u(a,f,l,d,c,p,H.x,H.y)&&h(H.prev,H,H.next)>=0)return!1;H=H.nextZ}return!0}(e,i,a,l):function(t){let e=t.prev,n=t.next;
1if(h(e,t,n)>=0)return!1;let r=e.x,i=t.x,o=n.x,a=e.y,s=t.y,l=n.y,c=Math.min(r,i,o),f=Math.min(a,s,l),d=Math.max(r,i,o),p=Math.max(a,s,l),m=n.next;for(;m!==e;){if(m.x>=c&&m.x<=d&&m.y>=f&&m.y<=p&&u(r,a,i,s,o,l,m.x,m.y)&&h(m.prev,m,m.next)>=0)return!1;m=m.next}return!0}(e)){n.push(y.i,e.i,_.i),v(e),e=_.next,p=_.next;continue}if((e=_)===p){d?1===d?t(e=function(t,e){let n=t;do{let r=n.prev,i=n.next.next;!c(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,l,2):2===d&&function(e,n,r,i,a,s){let l=e;do{let e=l.next.next;for(;e!==l.prev;){var u,d;if(l.i!==e.i&&(u=l,d=e,u.next.i!==d.i&&u.prev.i!==d.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}(u,d)&&(m(u,d)&&m(d,u)&&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}(u,d)&&(h(u.prev,u,d.prev)||h(u,d.prev,d))||c(u,d)&&h(u.prev,u,u.next)>0&&h(d.prev,d,d.next)>0))){let u=g(l,e);l=o(l,l.next),u=o(u,u.next),t(l,n,r,i,a,s,0),t(u,n,r,i,a,s,0);return}e=e.next}l=l.next}while(l!==e)}(e,n,r,i,a,l):t(o(e),n,r,i,a,l,1);break}}}(b,x,n,r,d,p,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&&c(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&&(c(n,n.next)||0===h(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)&16711935)|t<<4)&252645135)|t<<2)&858993459)|t<<1)&1431655765)|(e=((e=((e=((e=((e=(e-r)*i|0)|e<<8)&16711935)|e<<4)&252645135)|e<<2)&858993459)|e<<1)&1431655765)<<1}function l(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 u(t,e,n,r,i,o,a,s){return!(t===a&&e===s)&&l(t,e,n,r,i,o,a,s)}function h(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function c(t,e){return t.x===e.x&&t.y===e.y}function f(t,e,n,r){let i=p(h(t,e,n)),o=p(h(t,e,r)),a=p(h(n,r,t)),s=p(h(n,r,e));return!!(i!==o&&a!==s||0===i&&d(t,n,e)||0===o&&d(t,r,e)||0===a&&d(n,t,r)||0===s&&d(n,e,r))}function d(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 p(t){return t>0?1:t<0?-1:0}function m(t,e){return 0>h(t.prev,t,t.next)?h(t,e,t.next)>=0&&h(t,t.prev,e)>=0:0>h(t,e,t.prev)||0>h(t,t.next,e)}function g(t,e){let n=_(t.i,t.x,t.y),r=_(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=_(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 _(t,e,n){return{i:t,x:e,y:n,prev:null,next:null,z:0,prevZ:null,nextZ:null,steiner:!1}}function b(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,{ZP:function(){return r},xH:function(){return b}})},60224:function(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,{Z:function(){return 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)}}),l=t.reduce(function(t,e){var r=t,o=e;
1return s.forEach(function(t,e){var a,l=t.keyAccessor;if(t.isProp){var u=o,h=u[l],c=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}(u,[l].map(i));a=h,o=c}else a=l(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)})}(l);var u=l;return a&&(u=[],function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];n.length===s.length?u.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=[],l=!0,u=!1;try{for(o=(n=n.call(t)).next;!(l=(r=o.call(n)).done)&&(s.push(r.value),2!==s.length);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)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]))})}(l),e instanceof Array&&0===e.length&&1===u.length&&(u[0].keys=[])),u}},61062:function(t,e,n){"use strict";n.d(e,{Z:function(){return j}});var r,i=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},o="object"==typeof global&&global&&global.Object===Object&&global,a="object"==typeof self&&self&&self.Object===Object&&self,s=o||a||Function("return this")(),l=function(){return s.Date.now()},u=/\s/,h=function(t){for(var e=t.length;e--&&u.test(t.charAt(e)););return e},c=/^\s+/,f=s.Symbol,d=Object.prototype,p=d.hasOwnProperty,m=d.toString,g=f?f.toStringTag:void 0,y=function(t){var e=p.call(t,g),n=t[g];try{t[g]=void 0;var r=!0}catch(t){}var i=m.call(t);return r&&(e?t[g]=n:delete t[g]),i},v=Object.prototype.toString,_=f?f.toStringTag:void 0,b=function(t){var e;return"symbol"==typeof t||null!=t&&"object"==typeof t&&"[object Symbol]"==(null==(e=t)?void 0===e?"[object Undefined]":"[object Null]":_&&_ in Object(e)?y(e):v.call(e))},x=0/0,H=/^[-+]0x[0-9a-f]+$/i,w=/^0b[01]+$/i,S=/^0o[0-7]+$/i,M=parseInt,E=function(t){if("number"==typeof t)return t;
1if(b(t))return x;if(i(t)){var e,n="function"==typeof t.valueOf?t.valueOf():t;t=i(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=(e=t)?e.slice(0,h(e)+1).replace(c,""):e;var r=w.test(t);return r||S.test(t)?M(t.slice(2),r?2:8):H.test(t)?x:+t},A=Math.max,P=Math.min,T=function(t,e,n){var r,o,a,s,u,h,c=0,f=!1,d=!1,p=!0;if("function"!=typeof t)throw TypeError("Expected a function");function m(e){var n=r,i=o;return r=o=void 0,c=e,s=t.apply(i,n)}function g(t){var n=t-h,r=t-c;return void 0===h||n>=e||n<0||d&&r>=a}function y(){var t,n,r,i=l();if(g(i))return v(i);u=setTimeout(y,(t=i-h,n=i-c,r=e-t,d?P(r,a-n):r))}function v(t){return(u=void 0,p&&r)?m(t):(r=o=void 0,s)}function _(){var t,n=l(),i=g(n);if(r=arguments,o=this,h=n,i){if(void 0===u)return c=t=h,u=setTimeout(y,e),f?m(t):s;if(d)return clearTimeout(u),u=setTimeout(y,e),m(h)}return void 0===u&&(u=setTimeout(y,e)),s}return e=E(e)||0,i(n)&&(f=!!n.leading,a=(d="maxWait"in n)?A(E(n.maxWait)||0,e):a,p="trailing"in n?!!n.trailing:p),_.cancel=function(){void 0!==u&&clearTimeout(u),c=0,r=h=o=u=void 0},_.flush=function(){return void 0===u?s:v(l())},_};function O(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 R=(Object.defineProperty(r=function t(e,n){var r=n.default,i=n.triggerUpdate,o=n.onChange;(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,t),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},"prototype",{writable:!1}),r);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,l=void 0===s?{}:s,u=t.init,h=void 0===u?function(){}:u,c=t.update,f=void 0===c?function(){}:c,d=Object.keys(i).map(function(t){return new R(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,u=r[0],c=void 0===u?{}:u,p=Object.assign({},n instanceof Function?n(c):n,{initialised:!1}),m={};function g(t){return y(t,c),v(),g}var y=function(t,e){h.call(g,t,p,e),p.initialised=!0},v=T(function(){p.initialised&&(f.call(g,p,m),m={})},1);return d.forEach(function(t){var e,n,r,i,o,a,s;g[t.name]=(e=t.name,r=void 0!==(n=t.triggerUpdate)&&n,o=void 0===(i=t.onChange)?function(t,e){}:i,s=void 0===(a=t.defaultVal)?null:a,function(t){var n=p[e];if(!arguments.length)return n;var i=void 0===t?s:t;return p[e]=i,o.call(g,i,p,n),m.hasOwnProperty(e)||(m[e]=n),r&&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,p].concat(r))}}),Object.entries(l).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=[],l=!0,u=!1;try{for(o=(n=n.call(t)).next;!(l=(r=o.call(n)).done)&&(s.push(r.value),2!==s.length);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(t,2)||function(t,e){if(t){if("string"==typeof t)return O(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)?O(t,2):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 d.forEach(function(t){g[t.name](t.defaultVal)}),g},g.resetProps(),p._rerender=v,o&&s&&g(s),g}}},726:function(t,e,n){"use strict";n.d(e,{Z:function(){return ne}});var r,i,o,a,s,l,u,h,c,f,d,p,m,g,y,v,_,b,x,H,w,S,M,E,A,P,T,O,R=n(26241);function j(t){return Array.from(function*(t){for(let e of t)yield*e}(t))}function k(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>
1o&&(n=o),r<o&&(r=o)))}return[n,r]}var z=n(90893);let C=(3+8881784197001252e-31)*11102230246251565e-32;function I(t,e,n,r,i){let o,a,s,l;let u=e[0],h=r[0],c=0,f=0;h>u==h>-u?(o=u,u=e[++c]):(o=h,h=r[++f]);let d=0;if(c<t&&f<n)for(h>u==h>-u?(a=u+o,s=o-(a-u),u=e[++c]):(a=h+o,s=o-(a-h),h=r[++f]),o=a,0!==s&&(i[d++]=s);c<t&&f<n;)h>u==h>-u?(l=(a=o+u)-o,s=o-(a-l)+(u-l),u=e[++c]):(l=(a=o+h)-o,s=o-(a-l)+(h-l),h=r[++f]),o=a,0!==s&&(i[d++]=s);for(;c<t;)l=(a=o+u)-o,s=o-(a-l)+(u-l),u=e[++c],o=a,0!==s&&(i[d++]=s);for(;f<n;)l=(a=o+h)-o,s=o-(a-l)+(h-l),h=r[++f],o=a,0!==s&&(i[d++]=s);return(0!==o||0===d)&&(i[d++]=o),d}function D(t){return new Float64Array(t)}let N=(3+17763568394002505e-31)*11102230246251565e-32,F=(2+13322676295501878e-31)*11102230246251565e-32,U=(9+7105427357601002e-30)*11102230246251565e-32*11102230246251565e-32,L=D(4),B=D(8),Z=D(12),W=D(16),V=D(4);function $(t,e,n,r,i,o){let a=(e-o)*(n-i),s=(t-i)*(r-o),l=a-s,u=Math.abs(a+s);return Math.abs(l)>=N*u?l:-function(t,e,n,r,i,o,a){let s,l,u,h,c,f,d,p,m,g,y,v,_,b,x,H,w,S;let M=t-i,E=n-i,A=e-o,P=r-o;b=M*P,d=(f=134217729*M)-(f-M),p=M-d,m=(f=134217729*P)-(f-P),x=p*(g=P-m)-(b-d*m-p*m-d*g),H=A*E,d=(f=134217729*A)-(f-A),p=A-d,m=(f=134217729*E)-(f-E),y=x-(w=p*(g=E-m)-(H-d*m-p*m-d*g)),c=x-y,L[0]=x-(y+c)+(c-w),c=(v=b+y)-b,y=(_=b-(v-c)+(y-c))-H,c=_-y,L[1]=_-(y+c)+(c-H),c=(S=v+y)-v,L[2]=v-(S-c)+(y-c),L[3]=S;let T=function(t,e){let n=e[0];for(let t=1;t<4;t++)n+=e[t];return n}(0,L),O=F*a;if(T>=O||-T>=O||(c=t-M,s=t-(M+c)+(c-i),c=n-E,u=n-(E+c)+(c-i),c=e-A,l=e-(A+c)+(c-o),c=r-P,h=r-(P+c)+(c-o),0===s&&0===l&&0===u&&0===h)||(O=U*a+C*Math.abs(T),(T+=M*h+P*s-(A*u+E*l))>=O||-T>=O))return T;b=s*P,d=(f=134217729*s)-(f-s),p=s-d,m=(f=134217729*P)-(f-P),x=p*(g=P-m)-(b-d*m-p*m-d*g),H=l*E,d=(f=134217729*l)-(f-l),p=l-d,m=(f=134217729*E)-(f-E),y=x-(w=p*(g=E-m)-(H-d*m-p*m-d*g)),c=x-y,V[0]=x-(y+c)+(c-w),c=(v=b+y)-b,y=(_=b-(v-c)+(y-c))-H,c=_-y,V[1]=_-(y+c)+(c-H),c=(S=v+y)-v,V[2]=v-(S-c)+(y-c),V[3]=S;let R=I(4,L,4,V,B);b=M*h,d=(f=134217729*M)-(f-M),p=M-d,m=(f=134217729*h)-(f-h),x=p*(g=h-m)-(b-d*m-p*m-d*g),H=A*u,d=(f=134217729*A)-(f-A),p=A-d,m=(f=134217729*u)-(f-u),y=x-(w=p*(g=u-m)-(H-d*m-p*m-d*g)),c=x-y,V[0]=x-(y+c)+(c-w),c=(v=b+y)-b,y=(_=b-(v-c)+(y-c))-H,c=_-y,V[1]=_-(y+c)+(c-H),c=(S=v+y)-v,V[2]=v-(S-c)+(y-c),V[3]=S;let j=I(R,B,4,V,Z);b=s*h,d=(f=134217729*s)-(f-s),p=s-d,m=(f=134217729*h)-(f-h),x=p*(g=h-m)-(b-d*m-p*m-d*g),H=l*u,d=(f=134217729*l)-(f-l),p=l-d,m=(f=134217729*u)-(f-u),y=x-(w=p*(g=u-m)-(H-d*m-p*m-d*g)),c=x-y,V[0]=x-(y+c)+(c-w),c=(v=b+y)-b,y=(_=b-(v-c)+(y-c))-H,c=_-y,V[1]=_-(y+c)+(c-H),c=(S=v+y)-v,V[2]=v-(S-c)+(y-c),V[3]=S;let k=I(j,Z,4,V,W);return W[k-1]}(t,e,n,r,i,o,u)}D(4),D(4),D(4),D(4),D(4),D(4),D(4),D(4),D(4),D(8),D(8),D(8),D(4),D(8),D(8),D(8),D(12),D(192),D(192),D(4),D(4),D(4),D(4),D(4),D(4),D(4),D(4),D(8),D(8),D(8),D(8),D(8),D(8),D(8),D(8),D(8),D(4),D(4),D(4),D(8),D(16),D(16),D(16),D(32),D(32),D(48),D(64),D(1152),D(1152),D(4),D(4),D(4),D(4),D(4),D(4),D(4),D(4),D(4),D(4),D(24),D(24),D(24),D(24),D(24),D(24),D(24),D(24),D(24),D(24),D(1152),D(1152),D(1152),D(1152),D(1152),D(2304),D(2304),D(3456),D(5760),D(8),D(8),D(8),D(16),D(24),D(48),D(48),D(96),D(192),D(384),D(384),D(384),D(768),D(96),D(96),D(96),D(1152);let G=new Uint32Array(512);class X{static from(t,e=Q,n=J){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 X(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;let{coords:r,_hullPrev:i,_hullNext:o,_hullTri:a,_hullHash:s}=this,l=r.length>>1,u=1/0,h=1/0,c=-1/0,f=-1/0;for(let t=0;t<l;t++){let e=r[2*t],n=r[2*t+1];e<u&&(u=e),n<h&&(h=n),e>c&&(c=e),n>f&&(f=n),this._ids[t]=t}let d=(u+c)/2,p=(h+f)/2;for(let e=0,n=1/0;e<l;e++){let i=q(d,p,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<l;n++){if(n===t)continue;let o=q(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],_=1/0;for(let i=0;i<l;i++){if(i===t||i===e)continue;let o=function(t,e,n,r,i,o){let a=n-t,s=r-e,l=i-t,u=o-e,h=a*a+s*s,c=l*l+u*u,f=.5/(a*u-s*l),d=(u*h-s*c)*f,p=(a*c-l*h)*f;return d*d+p*p}(m,g,y,v,r[2*i],r[2*i+1]);o<_&&(n=i,_=o)}let b=r[2*n],x=r[2*n+1];if(_===1/0){for(let t=0;t<l;t++)this._dists[t]=r[2*t]-r[0]||r[2*t+1]-r[1];Y(this._ids,this._dists,0,l-1);let t=new Uint32Array(l),e=0;for(let n=0,r=-1/0;n<l;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>
1$(m,g,y,v,b,x)){let t=e,r=y,i=v;e=n,y=b,v=x,n=t,b=r,x=i}let H=function(t,e,n,r,i,o){let a=n-t,s=r-e,l=i-t,u=o-e,h=a*a+s*s,c=l*l+u*u,f=.5/(a*u-s*l);return{x:t+(u*h-s*c)*f,y:e+(a*c-l*h)*f}}(m,g,y,v,b,x);this._cx=H.x,this._cy=H.y;for(let t=0;t<l;t++)this._dists[t]=q(r[2*t],r[2*t+1],H.x,H.y);Y(this._ids,this._dists,0,l-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(b,x)]=n,this.trianglesLen=0,this._addTriangle(t,e,n,-1,-1,-1);for(let l=0,u,h;l<this._ids.length;l++){let c=this._ids[l],f=r[2*c],d=r[2*c+1];if(l>0&&2220446049250313e-31>=Math.abs(f-u)&&2220446049250313e-31>=Math.abs(d-h)||(u=f,h=d,c===t||c===e||c===n))continue;let p=0;for(let t=0,e=this._hashKey(f,d);t<this._hashSize&&(-1===(p=s[(e+t)%this._hashSize])||p===o[p]);t++);let m=p=i[p],g;for(;g=o[m],$(f,d,r[2*m],r[2*m+1],r[2*g],r[2*g+1])>=0;)if((m=g)===p){m=-1;break}if(-1===m)continue;let y=this._addTriangle(m,c,o[m],-1,-1,a[m]);a[c]=this._legalize(y+2),a[m]=y,w++;let v=o[m];for(;g=o[v],0>$(f,d,r[2*v],r[2*v+1],r[2*g],r[2*g+1]);)y=this._addTriangle(v,c,g,a[c],-1,a[v]),a[c]=this._legalize(y+2),o[v]=v,w--,v=g;if(m===p)for(;0>$(f,d,r[2*(g=i[m])],r[2*g+1],r[2*m],r[2*m+1]);)y=this._addTriangle(g,c,m,-1,a[m],a[g]),this._legalize(y+2),a[g]=y,o[m]=m,w--,m=g;this._hullStart=i[c]=m,o[m]=i[v]=c,o[c]=v,s[this._hashKey(f,d)]=c,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=G[--i];continue}let l=a-a%3,u=s+(t+1)%3,h=l+(a+2)%3,c=e[o],f=e[t],d=e[u],p=e[h];if(function(t,e,n,r,i,o,a,s){let l=t-a,u=e-s,h=n-a,c=r-s,f=i-a,d=o-s,p=h*h+c*c,m=f*f+d*d;return l*(c*m-p*d)-u*(h*m-p*f)+(l*l+u*u)*(h*d-c*f)<0}(r[2*c],r[2*c+1],r[2*f],r[2*f+1],r[2*d],r[2*d+1],r[2*p],r[2*p+1])){e[t]=p,e[a]=c;let r=n[h];if(-1===r){let e=this._hullStart;do{if(this._hullTri[e]===h){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,h);let s=l+(a+1)%3;i<G.length&&(G[i++]=s)}else{if(0===i)break;t=G[--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 q(t,e,n,r){let i=t-n,o=e-r;return i*i+o*o}function Y(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;K(t,i,o),e[t[n]]>e[t[r]]&&K(t,n,r),e[t[o]]>e[t[r]]&&K(t,o,r),e[t[n]]>e[t[o]]&&K(t,n,o);let s=t[o],l=e[s];for(;;){do o++;while(e[t[o]]<l);do a--;while(e[t[a]]>l);if(a<o)break;K(t,o,a)}t[n+1]=t[a],t[a]=s,r-o+1>=a-n?(Y(t,e,o,r),Y(t,e,n,a-1)):(Y(t,e,n,a-1),Y(t,e,o,r))}}function K(t,e,n){let r=t[e];t[e]=t[n],t[n]=r}function Q(t){return t[0]}function J(t){return t[1]}var tt,te,tn,tr,ti,to=function(t,e,n={}){if(!t)throw Error("point is required");if(!e)throw Error("polygon is required");
1let 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==(a[0]<=r[0]&&a[1]<=r[1]&&a[2]>=r[0]&&a[3]>=r[1]))return!1;"Polygon"===o&&(s=[s]);let l=!1;for(var u=0;u<s.length;++u){let t=function(t,e){var n,r,i,o,a,s,l,u,h,c=0,f=t[0],d=t[1],p=e.length;for(n=0;n<p;n++){r=0;var m=e[n],g=m.length-1;if((u=m[0])[0]!==m[g][0]&&u[1]!==m[g][1])throw Error("First and last coordinates in a ring must be the same");for(o=u[0]-f,a=u[1]-d;r<g;r++){if(s=(h=m[r+1])[0]-f,l=h[1]-d,0===a&&0===l){if(s<=0&&o>=0||o<=0&&s>=0)return 0}else if(l>=0&&a<=0||l<=0&&a>=0){if(0===(i=$(o,s,a,l,0,0)))return 0;(i>0&&l>0&&a<=0||i<0&&l<=0&&a>0)&&c++}u=h,a=l,o=s}}return c%2!=0}(r,s[u]);if(0===t)return!n.ignoreBoundary;t&&(l=!0)}return l},ta=n(48558),ts=n(85661),tl=n(91622),tu=new ta.dU,th=new ta.dU,tc={point:tl.Z,lineStart:tl.Z,lineEnd:tl.Z,polygonStart:function(){tu=new ta.dU,tc.lineStart=tf,tc.lineEnd=td},polygonEnd:function(){var t=+tu;th.add(t<0?ts.BZ+t:t),this.lineStart=this.lineEnd=this.point=tl.Z},sphere:function(){th.add(ts.BZ)}};function tf(){tc.point=tp}function td(){tm(tt,te)}function tp(t,e){tc.point=tm,tt=t,te=e,t*=ts.uR,e*=ts.uR,tn=t,tr=(0,ts.mC)(e=e/2+ts.pu),ti=(0,ts.O$)(e)}function tm(t,e){t*=ts.uR,e*=ts.uR,e=e/2+ts.pu;var n=t-tn,r=n>=0?1:-1,i=r*n,o=(0,ts.mC)(e),a=(0,ts.O$)(e),s=ti*a,l=tr*o+s*(0,ts.mC)(i),u=s*r*(0,ts.O$)(i);tu.add((0,ts.fv)(u,l)),tn=t,tr=o,ti=a}function tg(t){return[(0,ts.fv)(t[1],t[0]),(0,ts.ZR)(t[2])]}function ty(t){var e=t[0],n=t[1],r=(0,ts.mC)(n);return[r*(0,ts.mC)(e),r*(0,ts.O$)(e),(0,ts.O$)(n)]}function tv(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function t_(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 tx(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function tH(t){var e=(0,ts._b)(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}var tw=n(20151),tS={point:tM,lineStart:tA,lineEnd:tP,polygonStart:function(){tS.point=tT,tS.lineStart=tO,tS.lineEnd=tR,f=new ta.dU,tc.polygonStart()},polygonEnd:function(){tc.polygonEnd(),tS.point=tM,tS.lineStart=tA,tS.lineEnd=tP,tu<0?(i=-(a=180),o=-(s=90)):f>ts.Ho?s=90:f<-ts.Ho&&(o=-90),p[0]=i,p[1]=a},sphere:function(){i=-(a=180),o=-(s=90)}};function tM(t,e){d.push(p=[i=t,a=t]),e<o&&(o=e),e>s&&(s=e)}function tE(t,e){var n=ty([t*ts.uR,e*ts.uR]);if(c){var r=t_(c,n),u=t_([r[1],-r[0],0],r);tH(u),u=tg(u);var h,f=t-l,m=f>0?1:-1,g=u[0]*ts.RW*m,y=(0,ts.Wn)(f)>180;y^(m*l<g&&g<m*t)?(h=u[1]*ts.RW)>s&&(s=h):y^(m*l<(g=(g+360)%360-180)&&g<m*t)?(h=-u[1]*ts.RW)<o&&(o=h):(e<o&&(o=e),e>s&&(s=e)),y?t<l?tj(i,t)>tj(i,a)&&(a=t):tj(t,a)>tj(i,a)&&(i=t):a>=i?(t<i&&(i=t),t>a&&(a=t)):t>l?tj(i,t)>tj(i,a)&&(a=t):tj(t,a)>tj(i,a)&&(i=t)}else d.push(p=[i=t,a=t]);e<o&&(o=e),e>s&&(s=e),c=n,l=t}function tA(){tS.point=tE}function tP(){p[0]=i,p[1]=a,tS.point=tM,c=null}function tT(t,e){if(c){var n=t-l;f.add((0,ts.Wn)(n)>180?n+(n>0?360:-360):n)}else u=t,h=e;tc.point(t,e),tE(t,e)}function tO(){tc.lineStart()}function tR(){tT(u,h),tc.lineEnd(),(0,ts.Wn)(f)>ts.Ho&&(i=-(a=180)),p[0]=i,p[1]=a,c=null}function tj(t,e){return(e-=t)<0?e+360:e}function tk(t,e){return t[0]-e[0]}function tz(t,e){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:e<t[0]||t[1]<e}function tC(t){var e,n,r,l,u,h,c;if(s=a=-(i=o=1/0),d=[],(0,tw.Z)(t,tS),n=d.length){for(d.sort(tk),e=1,u=[r=d[0]];e<n;++e)tz(r,(l=d[e])[0])||tz(r,l[1])?(tj(r[0],l[1])>tj(r[0],r[1])&&(r[1]=l[1]),tj(l[0],r[1])>tj(r[0],r[1])&&(r[0]=l[0])):u.push(r=l);for(h=-1/0,n=u.length-1,e=0,r=u[n];e<=n;r=l,++e)l=u[e],(c=tj(r[1],l[0]))>h&&(h=c,i=l[0],a=r[1])}return d=p=null,i===1/0||o===1/0?[[NaN,NaN],[NaN,NaN]]:[[i,o],[a,s]]}var tI=n(75820),tD=n(24906);function tN(t){return(0,ts.Wn)(t[0])<=ts.pi?t[0]:(0,ts.Xx)(t[0])*(((0,ts.Wn)(t[0])+ts.pi)%ts.BZ-ts.pi)}function tF(t,e){var n=tN(e),r=e[1],i=(0,ts.O$)(r),o=[(0,ts.O$)(n),-(0,ts.mC)(n),0],a=0,s=0,l=new ta.dU;1===i?r=ts.ou+ts.Ho:-1===i&&(r=-ts.ou-ts.Ho);for(var u=0,h=t.length;u<h;++u)if(f=(c=t[u]).length)for(var c,f,d=c[f-1],p=tN(d),m=d[1]/2+ts.pu,g=(0,ts.O$)(m),y=(0,ts.mC)(m),v=0;v<f;++v,p=b,g=H,y=w,d=_){var _=c[v],b=tN(_),x=_[1]/2+ts.pu,H=(0,ts.O$)(x),w=(0,ts.mC)(x),S=b-p,M=S>=0?1:-1,E=M*S,A=E>ts.pi,P=g*H;if(l.add((0,ts.fv)(P*M*(0,ts.O$)(E),y*w+P*(0,ts.mC)(E))),a+=A?S+M*ts.BZ:S,A^p>=n^b>=n){var T=t_(ty(d),ty(_));tH(T);var O=t_(o,T);tH(O);var R=(A^S>=0?-1:1)*(0,ts.ZR)(O[2]);(r>R||r===R&&(T[0]||T[1]))&&(s+=A^S>=0?1:-1)}}return(a<-ts.Ho||a<ts.Ho&&l<-ts.aW)^1&s}var tU={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}},tL={Sphere:function(){return!0},Point:function(t,e){return tZ(t.coordinates,e)},MultiPoint:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)if(tZ(n[r],e))return!0;return!1},LineString:function(t,e){return tW(t.coordinates,e)},MultiLineString:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)if(tW(n[r],e))return!0;return!1},Polygon:function(t,e){return tV(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)if(tV(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&&tL.hasOwnProperty(t.type))&&tL[t.type](t,e)}function tZ(t,e){return 0===(0,tI.Z)(t,e)}function tW(t,e){for(var n,r,i,o=0,a=t.length;o<a;o++){if(0===(r=(0,tI.Z)(t[o],e))||o>0&&(i=(0,tI.Z)(t[o],t[o-1]))>0&&n<=i&&r<=i&&(n+r-i)*(1-Math.pow((n-r)/i,2))<ts.aW*i)return!0;n=r}return!1}function tV(t,e){return!!tF(t.map(t$),tG(e))}function t$(t){return(t=t.map(tG)).pop(),t}function tG(t){return[t[0]*ts.uR,t[1]*ts.uR]}var tX={sphere:tl.Z,point:tq,lineStart:tK,lineEnd:t0,polygonStart:function(){tX.lineStart=t1,tX.lineEnd=t2},polygonEnd:function(){tX.lineStart=tK,tX.lineEnd=t0}};function tq(t,e){t*=ts.uR,e*=ts.uR;var n=(0,ts.mC)(e);tY(n*(0,ts.mC)(t),n*(0,ts.O$)(t),(0,ts.O$)(e))}function tY(t,e,n){++m,y+=(t-y)/m,v+=(e-v)/m,_+=(n-_)/m}function tK(){tX.point=tQ}function tQ(t,e){t*=ts.uR,e*=ts.uR;var n=(0,ts.mC)(e);P=n*(0,ts.mC)(t),T=n*(0,ts.O$)(t),O=(0,ts.O$)(e),tX.point=tJ,tY(P,T,O)}function tJ(t,e){t*=ts.uR,e*=ts.uR;var n=(0,ts.mC)(e),r=n*(0,ts.mC)(t),i=n*(0,ts.O$)(t),o=(0,ts.O$)(e),a=(0,ts.fv)((0,ts._b)((a=T*o-O*i)*a+(a=O*r-P*o)*a+(a=P*i-T*r)*a),P*r+T*i+O*o);g+=a,b+=a*(P+(P=r)),x+=a*(T+(T=i)),H+=a*(O+(O=o)),tY(P,T,O)}function t0(){tX.point=tq}function t1(){tX.point=t3}function t2(){t5(E,A),tX.point=tq}function t3(t,e){E=t,A=e,t*=ts.uR,e*=ts.uR,tX.point=t5;var n=(0,ts.mC)(e);P=n*(0,ts.mC)(t),T=n*(0,ts.O$)(t),O=(0,ts.O$)(e),tY(P,T,O)}function t5(t,e){t*=ts.uR,e*=ts.uR;var n=(0,ts.mC)(e),r=n*(0,ts.mC)(t),i=n*(0,ts.O$)(t),o=(0,ts.O$)(e),a=T*o-O*i,s=O*r-P*o,l=P*i-T*r,u=(0,ts._m)(a,s,l),h=(0,ts.ZR)(u),c=u&&-h/u;w.add(c*a),S.add(c*s),M.add(c*l),g+=h,b+=h*(P+(P=r)),x+=h*(T+(T=i)),H+=h*(O+(O=o)),tY(P,T,O)}function t4(t){m=g=y=v=_=b=x=H=0,w=new ta.dU,S=new ta.dU,M=new ta.dU,(0,tw.Z)(t,tX);var e=+w,n=+S,r=+M,i=(0,ts._m)(e,n,r);return i<ts.aW&&(e=b,n=x,r=H,g<ts.Ho&&(e=y,n=v,r=_),(i=(0,ts._m)(e,n,r))<ts.aW)?[NaN,NaN]:[(0,ts.fv)(n,e)*ts.RW,(0,ts.ZR)(r/i)*ts.RW]}class t6{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=+t,e=+e;let r=t+(n=+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}
1,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 t8{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 t9{constructor(t,[e,n,r,i]=[0,0,960,500]){if(!((r=+r)>=(e=+e))||!((i=+i)>=(n=+n)))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;let{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,l=i.length,u,h;o<l;o+=3,s+=2){let l=2*i[o],c=2*i[o+1],f=2*i[o+2],d=n[l],p=n[l+1],m=n[c],g=n[c+1],y=n[f],v=n[f+1],_=m-d,b=g-p,x=y-d,H=v-p,w=(_*H-b*x)*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-d)*H-(e-p)*x);u=(d+y)/2-i*H,h=(p+v)/2+i*x}else{let t=1/w,e=_*_+b*b,n=x*x+H*H;u=d+(H*e-b*n)*t,h=p+(_*n-x*e)*t}a[s]=u,a[s+1]=h}let s=r[r.length-1],l,u=4*s,h,c=n[2*s],f,d=n[2*s+1];o.fill(0);for(let t=0;t<r.length;++t)s=r[t],l=u,h=c,f=d,u=4*s,c=n[2*s],d=n[2*s+1],o[l+2]=o[u]=f-d,o[l+3]=o[u+1]=c-h}render(t){let e=null==t?t=new t6: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],l=o[i+1],u=o[a],h=o[a+1];this._renderSegment(s,l,u,h,t)}let s,l=i[i.length-1];for(let e=0;e<i.length;++e){s=l;let n=2*Math.floor(r[l=i[e]]/3),u=o[n],h=o[n+1],c=4*s,f=this._project(u,h,a[c+2],a[c+3]);f&&this._renderSegment(u,h,f[0],f[1],t)}return e&&e.value()}renderBounds(t){let e=null==t?t=new t6: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 t6: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]);return 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 t8;return this.renderCell(t,e),e.value()}_renderSegment(t,e,n,r,i){let o;let 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=+e)==e&&(n=+n)==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){t: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 t}}}}_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],l,u=this._regioncode(a,s),h,c=0;for(let f=0;f<n;f+=2)if(i=a,o=s,a=e[f],s=e[f+1],l=u,u=this._regioncode(a,s),0===l&&0===u)h=c,c=0,r?r.push(a,s):r=[a,s];else{let e,n,f,d,p;if(0===l){if(null===(e=this._clipSegment(i,o,a,s,l,u)))continue;[n,f,d,p]=e}else{if(null===(e=this._clipSegment(a,s,i,o,u,l)))continue;[d,p,n,f]=e,h=c,c=this._edgecode(n,f),h&&c&&this._edge(t,h,c,r,r.length),r?r.push(n,f):r=[n,f]}h=c,c=this._edgecode(d,p),h&&c&&this._edge(t,h,c,r,r.length),r?r.push(d,p):r=[d,p]}if(r)h=c,c=this._edgecode(r[0],r[1]),h&&c&&this._edge(t,h,c,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,l,u=i||o;8&u?(s=t+(n-t)*(this.ymax-e)/(r-e),l=this.ymax):4&u?(s=t+(n-t)*(this.ymin-e)/(r-e),l=this.ymin):2&u?(l=e+(r-e)*(this.xmax-t)/(n-t),s=this.xmax):(l=e+(r-e)*(this.xmin-t)/(n-t),s=this.xmin),i?(t=s,e=l,i=this._regioncode(t,e)):(n=s,r=l,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;
1if(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:t===this.xmax?2:0)|(e===this.ymin?4:e===this.ymax?8:0)}_regioncode(t,e){return(t<this.xmin?1:t>this.xmax?2:0)|(e<this.ymin?4:e>this.ymax?8:0)}_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 t7=2*Math.PI,et=Math.pow;function ee(t){return t[0]}function en(t){return t[1]}class er{static from(t,e=ee,n=en,r){return new er("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;for(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 X(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])+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 X(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),l=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)l[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 t9(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 l=s,u=-1;do{if(yield u=o[l],o[l=l%3==2?l-2:l+1]!==t)return;if(-1===(l=i[l])){let e=n[(r[t]+1)%n.length];e!==u&&(yield e);return}}while(l!==s)}find(t,e,n=0){let r;if((t=+t)!=t||(e=+e)!=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:l}=this;if(-1===r[t]||!l.length)return(t+1)%(l.length>>1);let u=t,h=et(e-l[2*t],2)+et(n-l[2*t+1],2),c=r[t],f=c;do{let r=s[f],c=et(e-l[2*r],2)+et(n-l[2*r+1],2);if(c<h&&(h=c,u=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&&et(e-l[2*f],2)+et(n-l[2*f+1],2)<h)return f;break}}while(f!==c);return u}render(t){let e=null==t?t=new t6: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 t6: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,t7)}return n&&n.value()}renderHull(t){let e=null==t?t=new t6: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 t8;return this.renderHull(t),t.value()}renderTriangle(t,e){let n=null==e?e=new t6: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(
1)}*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 t8;return this.renderTriangle(t,e),e.value()}}function ei(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 eo(t,e){return(0,ts.Wn)(t)>ts.pi&&(t-=Math.round(t/ts.BZ)*ts.BZ),[t,e]}function ea(t,e,n){return(t%=ts.BZ)?e||n?ei(el(t),eu(e,n)):el(t):e||n?eu(e,n):eo}function es(t){return function(e,n){return e+=t,(0,ts.Wn)(e)>ts.pi&&(e-=Math.round(e/ts.BZ)*ts.BZ),[e,n]}}function el(t){var e=es(t);return e.invert=es(-t),e}function eu(t,e){var n=(0,ts.mC)(t),r=(0,ts.O$)(t),i=(0,ts.mC)(e),o=(0,ts.O$)(e);function a(t,e){var a=(0,ts.mC)(e),s=(0,ts.mC)(t)*a,l=(0,ts.O$)(t)*a,u=(0,ts.O$)(e),h=u*n+s*r;return[(0,ts.fv)(l*i-h*o,s*n-u*r),(0,ts.ZR)(h*i+l*o)]}return a.invert=function(t,e){var a=(0,ts.mC)(e),s=(0,ts.mC)(t)*a,l=(0,ts.O$)(t)*a,u=(0,ts.O$)(e),h=u*i-l*o;return[(0,ts.fv)(l*i+u*o,s*n+h*r),(0,ts.ZR)(h*n-s*r)]},a}function eh(){var t,e=[];return{point:function(e,n,r){t.push([e,n,r])},lineStart:function(){e.push(t=[])},lineEnd:tl.Z,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,ts.Wn)(t[0]-e[0])<ts.Ho&&(0,ts.Wn)(t[1]-e[1])<ts.Ho}function ef(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 ed(t,e,n,r,i){var o,a,s=[],l=[];if(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*ts.Ho}s.push(n=new ef(r,t,null,!0)),l.push(n.o=new ef(r,null,n,!1)),s.push(n=new ef(a,t,null,!1)),l.push(n.o=new ef(a,null,n,!0))}}),s.length){for(l.sort(e),ep(s),ep(l),o=0,a=l.length;o<a;++o)l[o].e=n=!n;for(var u,h,c=s[0];;){for(var f=c,d=!0;f.v;)if((f=f.n)===c)return;u=f.z,i.lineStart();do{if(f.v=f.o.v=!0,f.e){if(d)for(o=0,a=u.length;o<a;++o)i.point((h=u[o])[0],h[1]);else r(f.x,f.n.x,1,i);f=f.n}else{if(d)for(o=(u=f.p.z).length-1;o>=0;--o)i.point((h=u[o])[0],h[1]);else r(f.x,f.p.x,-1,i);f=f.p}u=(f=f.o).z,d=!d}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 em(t,e,n,r){return function(i){var o,a,s,l=e(i),u=eh(),h=e(u),c=!1,f={point:d,lineStart:m,lineEnd:g,polygonStart:function(){f.point=y,f.lineStart=v,f.lineEnd=_,a=[],o=[]},polygonEnd:function(){f.point=d,f.lineStart=m,f.lineEnd=g,a=j(a);var t=tF(o,r);a.length?(c||(i.polygonStart(),c=!0),ed(a,ey,t,n,i)):t&&(c||(i.polygonStart(),c=!0),i.lineStart(),n(null,null,1,i),i.lineEnd()),c&&(i.polygonEnd(),c=!1),a=o=null},sphere:function(){i.polygonStart(),i.lineStart(),n(null,null,1,i),i.lineEnd(),i.polygonEnd()}};function d(e,n){t(e,n)&&i.point(e,n)}function p(t,e){l.point(t,e)}function m(){f.point=p,l.lineStart()}function g(){f.point=d,l.lineEnd()}function y(t,e){s.push([t,e]),h.point(t,e)}function v(){h.lineStart(),s=[]}function _(){y(s[0][0],s[0][1]),h.lineEnd();var t,e,n,r,l=h.clean(),f=u.result(),d=f.length;if(s.pop(),o.push(s),s=null,d){if(1&l){if((e=(n=f[0]).length-1)>0){for(c||(i.polygonStart(),c=!0),i.lineStart(),t=0;t<e;++t)i.point((r=n[t])[0],r[1]);i.lineEnd()}return}d>1&&2&l&&f.push(f.pop().concat(f.shift())),a.push(f.filter(eg))}}return f}}function eg(t){return t.length>1}function ey(t,e){return((t=t.x)[0]<0?t[1]-ts.ou-ts.Ho:ts.ou-t[1])-((e=e.x)[0]<0?e[1]-ts.ou-ts.Ho:ts.ou-e[1])}eo.invert=eo;var ev=em(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,l,u,h,c,f,d=o>0?ts.pi:-ts.pi,p=(0,ts.Wn)(o-n);(0,ts.Wn)(p-ts.pi)<ts.Ho?(t.point(n,r=(r+a)/2>0?ts.ou:-ts.ou),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(d,r),t.point(o,r),e=0):i!==d&&p>=ts.pi&&((0,ts.Wn)(n-i)<ts.Ho&&(n-=i*ts.Ho),(0,ts.Wn)(o-d)<ts.Ho&&(o-=d*ts.Ho),s=n,l=r,u=o,f=(0,ts.O$)(s-u),r=(0,ts.Wn)(f)>ts.Ho?(0,ts.z4)(((0,ts.O$)(l)*(c=(0,ts.mC)(a))*(0,ts.O$)(u)-(0,ts.O$)(a)*(h=(0,ts.mC)(l))*(0,ts.O$)(s))/(h*c*f)):(l+a)/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*ts.ou,r.point(-ts.pi,i),r.point(0,i),r.point(ts.pi,i),r.point(ts.pi,0),r.point(ts.pi,-i),r.point(0,-i),r.point(-ts.pi,-i),r.point(-ts.pi,0),r.point(-ts.pi,i);else if((0,ts.Wn)(t[0]-e[0])>ts.Ho){var o=t[0]<e[0]?ts.pi:-ts.pi;i=n*o/2,r.point(-o,i),r.point(0,i),r.point(o,i)}else r.point(e[0],e[1])},[-ts.pi,-ts.ou]);function e_(t,e){e=ty(e),e[0]-=t,tH(e);var n=(0,ts.Kh)(-e[1]);return((0>-e[2]?-n:n)+ts.BZ-ts.Ho)%ts.BZ}var eb=t=>t;function ex(t){return function(e){var n=new eH;for(var r in t)n[r]=t[r];return n.stream=e,n}}function eH(){}eH.prototype={constructor:eH,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 ew=1/0,eS=1/0,eM=-1/0,eE=eM,eA={point:function(t,e){t<ew&&(ew=t),t>
1eM&&(eM=t),e<eS&&(eS=e),e>eE&&(eE=e)},lineStart:tl.Z,lineEnd:tl.Z,polygonStart:tl.Z,polygonEnd:tl.Z,result:function(){var t=[[ew,eS],[eM,eE]];return eM=eE=-(eS=ew=1/0),t}};function eP(t,e,n){var r=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=r&&t.clipExtent(null),(0,tw.Z)(n,t.stream(eA)),e(eA.result()),null!=r&&t.clipExtent(r),t}function eT(t,e,n){return eP(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,ts.mC)(30*ts.uR);function eR(t,e){return+e?function(t,e){function n(r,i,o,a,s,l,u,h,c,f,d,p,m,g){var y=u-r,v=h-i,_=y*y+v*v;if(_>4*e&&m--){var b=a+f,x=s+d,H=l+p,w=(0,ts._b)(b*b+x*x+H*H),S=(0,ts.ZR)(H/=w),M=(0,ts.Wn)((0,ts.Wn)(H)-1)<ts.Ho||(0,ts.Wn)(o-c)<ts.Ho?(o+c)/2:(0,ts.fv)(x,b),E=t(M,S),A=E[0],P=E[1],T=A-r,O=P-i,R=v*T-y*O;(R*R/_>e||(0,ts.Wn)((y*T+v*O)/_-.5)>.3||a*f+s*d+l*p<eO)&&(n(r,i,o,a,s,l,A,P,M,b/=w,x/=w,H,m,g),g.point(A,P),n(A,P,M,b,x,H,u,h,c,f,d,p,m,g))}}return function(e){var r,i,o,a,s,l,u,h,c,f,d,p,m={point:g,lineStart:y,lineEnd:_,polygonStart:function(){e.polygonStart(),m.lineStart=b},polygonEnd:function(){e.polygonEnd(),m.lineStart=y}};function g(n,r){n=t(n,r),e.point(n[0],n[1])}function y(){h=NaN,m.point=v,e.lineStart()}function v(r,i){var o=ty([r,i]),a=t(r,i);n(h,c,u,f,d,p,h=a[0],c=a[1],u=r,f=o[0],d=o[1],p=o[2],16,e),e.point(h,c)}function _(){m.point=g,e.lineEnd()}function b(){y(),m.point=x,m.lineEnd=H}function x(t,e){v(r=t,e),i=h,o=c,a=f,s=d,l=p,m.point=v}function H(){n(h,c,u,f,d,p,i,o,r,a,s,l,16,e),m.lineEnd=_,_()}return m}}(t,e):ex({point:function(e,n){e=t(e,n),this.stream.point(e[0],e[1])}})}var ej=ex({point:function(t,e){this.stream.point(t*ts.uR,e*ts.uR)}});function ek(t,e,n,r,i,o){if(!o)return function(t,e,n,r,i){function o(o,a){return[e+t*(o*=r),n-t*(a*=i)]}return o.invert=function(o,a){return[(o-e)/t*r,(n-a)/t*i]},o}(t,e,n,r,i);var a=(0,ts.mC)(o),s=(0,ts.O$)(o),l=a*t,u=s*t,h=a/t,c=s/t,f=(s*n-a*e)/t,d=(s*e+a*n)/t;function p(t,o){return[l*(t*=r)-u*(o*=i)+e,n-u*t-l*o]}return p.invert=function(t,e){return[r*(h*t-c*e+f),i*(d-c*t-h*e)]},p}function ez(t,e){var n=(0,ts.mC)(e),r=1+(0,ts.mC)(t)*n;return[n*(0,ts.O$)(t)/r,(0,ts.O$)(e)/r]}ez.invert=(r=function(t){return 2*(0,ts.z4)(t)},function(t,e){var n=(0,ts._b)(t*t+e*e),i=r(n),o=(0,ts.O$)(i),a=(0,ts.mC)(i);return[(0,ts.fv)(t*o,n*a),(0,ts.ZR)(n&&e*o/n)]});let eC=Math.PI,eI=eC/2,eD=180/eC,eN=eC/180,eF=Math.atan2,eU=Math.cos,eL=Math.max,eB=Math.min,eZ=Math.sin,eW=Math.sign||function(t){return t>0?1:t<0?-1:0},eV=Math.sqrt;function e$(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function eG(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 eX(t,e){return[t[0]+e[0],t[1]+e[1],t[2]+e[2]]}function eq(t){var e=eV(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);return[t[0]/e,t[1]/e,t[2]/e]}function eY(t){var e;return[eF(t[1],t[0])*eD,((e=eL(-1,eB(1,t[2])))>1?eI:e<-1?-eI:Math.asin(e))*eD]}function eK(t){let e=t[0]*eN,n=t[1]*eN,r=eU(n);return[r*eU(e),r*eZ(e),eZ(n)]}function eQ(t){return e$((t=t.map(t=>eK(t)))[0],eG(t[2],t[1]))}function eJ(t,e,n){t=eK(t),e=eK(e),n=eK(n);let r=eW(e$(eG(e,t),n));return eY(eq(eX(t,e)).map(t=>r*t))}var e0=n(86963);function e1(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 e2(t){return(e2=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function e3(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(e3=function(){return!!t})()}function e5(t,e){return(e5=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function e4(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=[],l=!0,u=!1;try{if(o=(n=n.call(t)).next,0===e);else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){u=!0,i=t}
1finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(t,e)||e8(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 e6(t){return function(t){if(Array.isArray(t))return e1(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||e8(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 e8(t,e){if(t){if("string"==typeof t)return e1(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)?e1(t,e):void 0}}function e9(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return n?(e&&tU.hasOwnProperty(e.type)?tU[e.type]:tB)(e,t):to(t,e)}var e7=window.THREE?window.THREE:{BufferGeometry:R.u9r,Float32BufferAttribute:R.a$l},nt=new e7.BufferGeometry().setAttribute?"setAttribute":"addAttribute",ne=function(t){function e(t,n,r,i,o,a,s){!function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,e),l=e2(l=e),(u=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");return function(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,e3()?Reflect.construct(l,[],e2(this).constructor):l.apply(this,void 0))).type="ConicPolygonGeometry",u.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 l,u,h=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.resolution,r=void 0===n?1/0:n,i=t.map(function(t){var e,n=[];return t.forEach(function(t){if(e){var i=180*(0,tI.Z)(t,e)/Math.PI;if(i>r)for(var o=(0,tD.Z)(e,t),a=1/Math.ceil(i/r),s=a;s<1;)n.push(o(s)),s+=a}n.push(e=t)}),n}),o=j(i),a=function(t,e){var n={type:"Polygon",coordinates:t},r=e4(tC(n),2),i=e4(r[0],2),o=i[0],a=i[1],s=e4(r[1],2),l=s[0],u=s[1];if(Math.min(Math.abs(l-o),Math.abs(u-a))<e)return[];var h=o>l||u>=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,l=function(t){return a*(Math.cos((t+90)*Math.PI/180)+1)/2},u=[void 0!==o?Math.ceil(l(o)):0,void 0!==i?Math.floor(l(i)):a-1],h=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},c=[],f=u[0];f<=u[1];f++){var d=f/s*360%360-180;h(d)&&c.push([d,Math.acos(2*f/a-1)/Math.PI*180-90])}return c})(e,{minLng:o,maxLng:l,minLat:a,maxLat:u}).filter(function(t){return e9(t,n,h)})}(t,r),s=[].concat(e6(o),e6(a)),l={type:"Polygon",coordinates:t},u=e4(tC(l),2),h=e4(u[0],2),c=h[0],f=h[1],d=e4(u[1],2),p=d[0],m=d[1],g=c>p||m>=89||f<=-89,y=[];if(g){var v=(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){let e=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]*ts.uR,e[1]*ts.uR),e[0]*=ts.RW,e[1]*=ts.RW,e}return t=ea(t[0]*ts.uR,t[1]*ts.uR,t.length>2?t[2]*ts.uR:0),e.invert=function(e){return e=t.invert(e[0]*ts.uR,e[1]*ts.uR),e[0]*=ts.RW,e[1]*=ts.RW,e},e}(t[e]),r=(function(t){var e,n,r,i,o,a,s,l,u,h,c=150,f=480,d=250,p=0,m=0,g=0,y=0,v=0,_=0,b=1,x=1,H=null,w=ev,S=null,M=eb,E=.5;function A(t){return l(t[0]*ts.uR,t[1]*ts.uR)}function P(t){return(t=l.invert(t[0],t[1]))&&[t[0]*ts.RW,t[1]*ts.RW]}function T(){var t=ek(c,0,0,b,x,_).apply(null,e(p,m)),r=ek(c,f-t[0],d-t[1],b,x,_);return n=ea(g,y,v),s=ei(e,r),l=ei(n,s),a=eR(s,E),O()}function O(){return u=h=null,A}
1return A.stream=function(t){var e;return u&&h===t?u:u=ej((e=n,ex({point:function(t,n){var r=e(t,n);return this.stream.point(r[0],r[1])}}))(w(a(M(h=t)))))},A.preclip=function(t){return arguments.length?(w=t,H=void 0,O()):w},A.postclip=function(t){return arguments.length?(M=t,S=r=i=o=null,O()):M},A.clipAngle=function(t){return arguments.length?(w=+t?function(t){var e=(0,ts.mC)(t),n=2*ts.uR,r=e>0,i=(0,ts.Wn)(e)>ts.Ho;function o(t,n){return(0,ts.mC)(t)*(0,ts.mC)(n)>e}function a(t,n,r){var i=ty(t),o=ty(n),a=[1,0,0],s=t_(i,o),l=tv(s,s),u=s[0],h=l-u*u;if(!h)return!r&&t;var c=t_(a,s),f=tx(a,e*l/h);tb(f,tx(s,-e*u/h));var d=tv(f,c),p=tv(c,c),m=d*d-p*(tv(f,f)-1);if(!(m<0)){var g=(0,ts._b)(m),y=tx(c,(-d-g)/p);if(tb(y,f),y=tg(y),!r)return y;var v,_=t[0],b=n[0],x=t[1],H=n[1];b<_&&(v=_,_=b,b=v);var w=b-_,S=(0,ts.Wn)(w-ts.pi)<ts.Ho,M=S||w<ts.Ho;if(!S&&H<x&&(v=x,x=H,H=v),M?S?x+H>0^y[1]<((0,ts.Wn)(y[0]-_)<ts.Ho?x:H):x<=y[1]&&y[1]<=H:w>ts.pi^(_<=y[0]&&y[0]<=b)){var E=tx(c,(-d+g)/p);return tb(E,f),[y,tg(E)]}}}function s(e,n){var i=r?t:ts.pi-t,o=0;return e<-i?o|=1:e>i&&(o|=2),n<-i?o|=4:n>i&&(o|=8),o}return em(o,function(t){var e,n,l,u,h;return{lineStart:function(){u=l=!1,h=1},point:function(c,f){var d,p,m=[c,f],g=o(c,f),y=r?g?0:s(c,f):g?s(c+(c<0?ts.pi:-ts.pi),f):0;!e&&(u=l=g)&&t.lineStart(),g!==l&&(!(p=a(e,m))||ec(e,p)||ec(m,p))&&(m[2]=1),g!==l?(h=0,g?(t.lineStart(),p=a(m,e),t.point(p[0],p[1])):(p=a(e,m),t.point(p[0],p[1],2),t.lineEnd()),e=p):i&&e&&r^g&&!(y&n)&&(d=a(m,e,!0))&&(h=0,r?(t.lineStart(),t.point(d[0][0],d[0][1]),t.point(d[1][0],d[1][1]),t.lineEnd()):(t.point(d[1][0],d[1][1]),t.lineEnd(),t.lineStart(),t.point(d[0][0],d[0][1],3))),!g||e&&ec(e,m)||t.point(m[0],m[1]),e=m,l=g,n=y},lineEnd:function(){l&&t.lineEnd(),e=null},clean:function(){return h|(u&&l)<<1}}},function(e,r,i,o){!function(t,e,n,r,i,o){if(n){var a=(0,ts.mC)(e),s=(0,ts.O$)(e),l=r*n;null==i?(i=e+r*ts.BZ,o=e-l/2):(i=e_(a,i),o=e_(a,o),(r>0?i<o:i>o)&&(i+=r*ts.BZ));for(var u,h=i;r>0?h>o:h<o;h-=l)u=tg([a,-s*(0,ts.mC)(h),-s*(0,ts.O$)(h)]),t.point(u[0],u[1])}}(o,t,n,i,e,r)},r?[0,-t]:[-ts.pi,t-ts.pi])}(H=t*ts.uR):(H=null,ev),O()):H*ts.RW},A.clipExtent=function(t){return arguments.length?(M=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,u){var h=0,c=0;if(null==i||(h=a(i,s))!==(c=a(o,s))||0>l(i,o)^s>0)do u.point(0===h||3===h?t:n,h>1?r:e);while((h=(h+s+4)%4)!==c);else u.point(o[0],o[1])}function a(r,i){return(0,ts.Wn)(r[0]-t)<ts.Ho?i>0?0:3:(0,ts.Wn)(r[0]-n)<ts.Ho?i>0?2:1:(0,ts.Wn)(r[1]-e)<ts.Ho?i>0?1:0:i>0?3:2}function s(t,e){return l(t.x,e.x)}function l(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 l,u,h,c,f,d,p,m,g,y,v,_=a,b=eh(),x={point:H,lineStart:function(){x.point=w,u&&u.push(h=[]),y=!0,g=!1,p=m=NaN},lineEnd:function(){l&&(w(c,f),d&&g&&b.rejoin(),l.push(b.result())),x.point=H,g&&_.lineEnd()},polygonStart:function(){_=b,l=[],u=[],v=!0},polygonEnd:function(){var e=function(){for(var e=0,n=0,i=u.length;n<i;++n)for(var o,a,s=u[n],l=1,h=s.length,c=s[0],f=c[0],d=c[1];l<h;++l)o=f,a=d,f=(c=s[l])[0],d=c[1],a<=r?d>r&&(f-o)*(r-a)>(d-a)*(t-o)&&++e:d<=r&&(f-o)*(r-a)<(d-a)*(t-o)&&--e;return e}(),n=v&&e,i=(l=j(l)).length;(n||i)&&(a.polygonStart(),n&&(a.lineStart(),o(null,null,1,a),a.lineEnd()),i&&ed(l,s,e,o,a),a.polygonEnd()),_=a,l=u=h=null}};function H(t,e){i(t,e)&&_.point(t,e)}function w(o,a){var s=i(o,a);if(u&&h.push([o,a]),y)c=o,f=a,d=s,y=!1,s&&(_.lineStart(),_.point(o,a));else if(s&&g)_.point(o,a);else{var l=[p=Math.max(-1e9,Math.min(1e9,p)),m=Math.max(-1e9,Math.min(1e9,m))],b=[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],l=t[1],u=e[0],h=e[1],c=0,f=1,d=u-s,p=h-l;if(a=n-s,d||!(a>0)){if(a/=d,d<0){if(a<c)return;a<f&&(f=a)}else if(d>0){if(a>f)return;a>c&&(c=a)}if(a=i-s,d||!(a<0)){if(a/=d,d<0){if(a>f)return;a>c&&(c=a)}else if(d>0){if(a<c)return;a<f&&(f=a)}if(a=r-l,p||!(a>0)){if(a/=p,p<0){if(a<c)return;a<f&&(f=a)}else if(p>0){if(a>f)return;a>c&&(c=a)}if(a=o-l,p||!(a<0)){if(a/=p,p<0){if(a>f)return;a>c&&(c=a)}else if(p>0){if(a<c)return;a<f&&(f=a)}return c>0&&(t[0]=s+c*d,t[1]=l+c*p),f<1&&(e[0]=s+f*d,e[1]=l+f*p),!0}}}}})(l,b,t,e,n,r)?(g||(_.lineStart(),_.point(l[0],l[1])),_.point(b[0],b[1]),s||_.lineEnd(),v=!1):s&&(_.lineStart(),_.point(o,a),v=!1)}p=o,m=a,g=s}return x}}(S=+t[0][0],r=+t[0][1],i=+t[1][0],o=+t[1][1]),O()):null==S?null:[[S,r],[i,o]]},A.scale=function(t){return arguments.length?(c=+t,T()):c},A.translate=function(t){return arguments.length?(f=+t[0],d=+t[1],T()):[f,d]},A.center=function(t){return arguments.length?(p=t[0]%360*ts.uR,m=t[1]%360*ts.uR,T()):[p*ts.RW,m*ts.RW]},A.rotate=function(t){return arguments.length?(g=t[0]%360*ts.uR,y=t[1]%360*ts.uR,v=t.length>2?t[2]%360*ts.uR:0,T()):[g*ts.RW,y*ts.RW,v*ts.RW]},A.angle=function(t){return arguments.length?(_=t%360*ts.uR,T()):_*ts.RW},A.reflectX=function(t){return arguments.length?(b=t?-1:1,T()):b<0},A.reflectY=function(t){return arguments.length?(x=t?-1:1,T()):x<0},A.precision=function(t){return arguments.length?(a=eR(s,E=t*t),O()):(0,ts._b)(E)},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 eP(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 eP(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&&P,T()}})(function(){return ez})().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*eV(o);
1i.forEach(e=>t[e]=[a,0]),t.push([0,a]),t.push([-a,0]),t.push([0,-a]);let s=er.from(t);s.projection=r;let{triangles:l,halfedges:u,inedges:h}=s,c=[];for(let n=0,r=u.length;n<r;n++)if(u[n]<0){let t=n%3==2?n-2:n+1,r=n%3==0?n+2:n-1,i=u[t],o=u[r];u[i]=o,u[o]=i,u[t]=u[r]=-1,l[n]=l[t]=l[r]=e,h[l[i]]=i%3==0?i+2:i-1,h[l[o]]=o%3==0?o+2:o-1,c.push(Math.min(n,t,r)),n+=2-n%3}else l[n]>t.length-3-1&&(l[n]=e);return s}(t),n=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}(e),r=function(t,e){let n=new Set;return 2===e.length?[[0,1]]:(t.forEach(t=>{if(t[0]!==t[1]&&!(0>eQ(t.map(t=>e[t]))))for(let e=0,r;e<3;e++)r=(e+1)%3,n.add(k([t[e],t[r]]).join("-"))}),Array.from(n,t=>t.split("-").map(Number)))}(n,t),i=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}(n,t.length),o=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,l=o,u=eK([r,i]);do a=o,o=null,s=n(u,eK(e[a])),t[a].forEach(t=>{let r=n(u,eK(e[t]));if(r<s){s=r,o=t,l=t;return}});while(null!==o);return l}}(i,t),{polygons:a,centers:s}=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=eK(n[0]),e=eK(n[1]),a=eq(eX(t,e)),s=eq(eG(t,e)),l=eG(a,s),u=[a,eG(a,l),eG(eG(a,l),l),eG(eG(eG(a,l),l),l)].map(eY).map(o);return r.push(u),r.push(u.slice().reverse()),{polygons:r,centers:i}}}function o(t){let n=-1;return 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=eJ(n[t[0][3][0]],n[t[0][3][1]],i[e[0]]),a=eJ(n[t[0][3][2]],n[t[0][3][0]],i[e[0]]),s=o(r),l=o(a);return[e[0],l,e[1],s]}}),centers:i}}(n.map(e=>{let n=e.map(e=>t[e]).map(eK);return eY(eq(eX(eX(eG(n[1],n[0]),eG(n[2],n[1])),eG(n[0],n[2]))))}),n,t),l=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}(a),u=function(t,e){let n;let r=new Set,i=[];t.map(t=>{if(!(eQ(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}(n,t);return{delaunay:e,edges:r,triangles:n,centers:s,neighbors:i,polygons:a,mesh:l,hull:u,urquhart:function(t){let e=new Map,i=new Map;return r.forEach((n,r)=>{let o=n.join("-");e.set(o,t[r]),i.set(o,!0)}),n.forEach(t=>{let n=0,r=-1;for(let i=0;i<3;i++){let o=k([t[i],t[(i+1)%3]]).join("-");e.get(o)>n&&(n=e.get(o),r=o)}i.set(r,!1)}),r.map(t=>i.get(t.join("-")))},find:o}}(e.points)}return e};return e._vx=function(t){return"object"==typeof t&&"type"in t?t4(t)[0]:0 in t?t[0]:void 0},e._vy=function(t){return"object"==typeof t&&"type"in t?t4(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=>eQ(t)>0).map(t=>
1({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,tI.Z)(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,tI.Z)([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})(s).triangles(),_=new Map(s.map(function(t,e){var n=e4(t,2),r=n[0],i=n[1];return["".concat(r,"-").concat(i),e]}));v.features.forEach(function(t){var e,n=t.geometry.coordinates[0].slice(0,3).reverse(),r=[];if(n.forEach(function(t){var e=e4(t,2),n=e[0],i=e[1],o="".concat(n,"-").concat(i);_.has(o)&&r.push(_.get(o))}),3===r.length){if(r.some(function(t){return t<o.length})&&!e9(t.properties.circumcenter,l,g))return;(e=y).push.apply(e,r)}})}else if(a.length){for(var b=X.from(s),x=function(t){var e,n=[2,1,0].map(function(e){return b.triangles[t+e]}),r=n.map(function(t){return s[t]});if(n.some(function(t){return t<o.length})&&!e9([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=+e)>=e&&(++n,r+=e);else{let i=-1;for(let o of t)null!=(o=e(o,++i,t))&&(o=+o)>=o&&(++n,r+=o)}if(n)return r/n}(r,function(e){return e[t]})}),l,g))return 1;(e=y).push.apply(e,e6(n))},H=0,w=b.triangles.length;H<w;H+=3)if(x(H))continue}else{var S=(0,z.xH)(i),M=S.vertices,E=S.holes;y=(0,z.ZP)(M,void 0===E?[]:E,2)}var A=(0,e0.Z)(k(s,function(t){return t[0]}),[0,1]),P=(0,e0.Z)(k(s,function(t){return t[1]}),[0,1]),T=s.map(function(t){var e=e4(t,2),n=e[0],r=e[1];return[A(n),P(r)]});return{contour:i,triangles:{points:s,indices:y,uvs:T}}}(t,{resolution:s=s||5}),c=h.contour,f=h.triangles,d=j(f.uvs),p=[],m=[],g=[],y=0,v=function(t){var e=Math.round(p.length/3),n=g.length;p=p.concat(t.vertices),m=m.concat(t.uvs),g=g.concat(e?t.indices.map(function(t){return t+e}):t.indices),u.addGroup(n,g.length-n,y++)};function _(t,e){var n="function"==typeof e?e:function(){return e},r=t.map(function(t){return t.map(function(t){var e=e4(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,z.xH)(r)}function b(t){var e=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return{indices:e?f.indices:f.indices.slice().reverse(),vertices:_([f.points],t).vertices,uvs:d}}return a&&v(function(){for(var t=_(c,n),e=t.vertices,i=t.holes,o=_(c,r).vertices,a=j([o,e]),s=Math.round(o.length/3),l=new Set(i),u=0,h=[],f=0;f<s;f++){var d=f+1;if(d===s)d=u;else if(l.has(d)){var p=d;d=u,u=p}h.push(f,f+s,d+s),h.push(d+s,d,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:h,vertices:a,uvs:m}}()),i&&v(b(n,!1)),o&&v(b(r,!0)),u.setIndex(g),u[nt]("position",new e7.Float32BufferAttribute(p,3)),u[nt]("uv",new e7.Float32BufferAttribute(m,2)),u.computeVertexNormals(),u}return!function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&e5(t,e)}(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(e7.BufferGeometry)},72046:function(t,e,n){"use strict";n.d(e,{Z:function(){return y}});var r=n(26241),i=n(90893),o=n(75820),a=n(24906),s=n(36790);function l(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 u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function h(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(h=function(){return!!t})()}
1function c(t,e){return(c=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=[],l=!0,u=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(t,e)||d(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 d(t,e){if(t){if("string"==typeof t)return l(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)?l(t,e):void 0}}var p=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.Z)(t,r)/Math.PI;if(i>e)for(var u=(0,a.Z)(r,t),h=r.length>2||t.length>2?(0,s.Z)(r[2]||0,t[2]||0):null,c=h?function(t){var e;return[].concat(function(t){if(Array.isArray(t))return l(t)}(e=u(t))||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||d(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.")}(),[h(t)])}:u,f=1/Math.ceil(i/e),p=f;p<1;)n.push(c(p)),p+=f}n.push(r=t)}),n},m="undefined"!=typeof window&&window.THREE?window.THREE:{BufferGeometry:r.u9r,Float32BufferAttribute:r.a$l},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;!function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,e),n=u(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");return function(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,h()?Reflect.construct(n,[],u(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:_,MultiLineString:function(t,e){var n={vertices:[],indices:[]};return t.map(function(t){return _(t,e)}).forEach(function(t){v(n,f(t,1)[0])}),[n]},Polygon:x,MultiPolygon:function(t,e){var n={vertices:[],indices:[]},r={vertices:[],indices:[]};t.map(function(t){return x(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),l=[],c=[],d=0;function y(t,e){return[{vertices:b(t[1],t[0],e+(t[2]||0)),indices:[]}]}function _(t,e){for(var n=p(t,a).map(function(t){var n=f(t,3),r=n[0],i=n[1],o=n[2];return b(i,r,e+(void 0===o?0:o))}),r=(0,i.xH)([n]).vertices,o=Math.round(r.length/3),s=[],l=1;l<o;l++)s.push(l-1,l);return[{vertices:r,indices:s}]}function x(t,e){for(var n=t.map(function(t){return p(t,a).map(function(t){var n=f(t,3),r=n[0],i=n[1],o=n[2];return b(i,r,e+(void 0===o?0:o))})}),r=(0,i.xH)(n),o=r.vertices,s=r.holes,l=s[0]||1/0,u=o.slice(0,3*l),h=o.slice(3*l),c=new Set(s),d=Math.round(o.length/3),m=[],g=[],y=1;y<d;y++)c.has(y)||(y<l?m.push(y-1,y):g.push(y-1-l,y-l));var v=[{indices:m,vertices:u}];return s.length&&v.push({indices:g,vertices:h}),v}return s.forEach(function(t){var e=l.length;v({indices:l,vertices:c},t),r.addGroup(e,l.length-e,d++)}),l.length&&r.setIndex(l),c.length&&r[g]("position",new m.Float32BufferAttribute(c,3)),r}return!function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(m.BufferGeometry);function v(t,e){var n=Math.round(t.vertices.length/3);_(t.vertices,e.vertices),_(t.indices,e.indices.map(function(t){return t+n}))}function _(t,e){var n,r=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];
1if(!n){if(Array.isArray(t)||(n=d(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 b(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)]}},14685:function(t,e,n){"use strict";n.d(e,{Z:function(){return K}});var r=n(26241);function i(t,e,n,r,i){if(isNaN(e)||isNaN(n)||isNaN(r))return t;var o,a,s,l,u,h,c,f,d,p,m,g,y=t._root,v={data:i},_=t._x0,b=t._y0,x=t._z0,H=t._x1,w=t._y1,S=t._z1;if(!y)return t._root=v,t;for(;y.length;)if((f=e>=(a=(_+H)/2))?_=a:H=a,(d=n>=(s=(b+w)/2))?b=s:w=s,(p=r>=(l=(x+S)/2))?x=l:S=l,o=y,!(y=y[m=p<<2|d<<1|f]))return o[m]=v,t;if(u=+t._x.call(null,y.data),h=+t._y.call(null,y.data),c=+t._z.call(null,y.data),e===u&&n===h&&r===c)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=(_+H)/2))?_=a:H=a,(d=n>=(s=(b+w)/2))?b=s:w=s,(p=r>=(l=(x+S)/2))?x=l:S=l;while((m=p<<2|d<<1|f)==(g=(c>=l)<<2|(h>=s)<<1|u>=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 l(t){return t[1]}function u(t){return t[2]}function h(t,e,n,r){var i=new c(null==e?s:e,null==n?l:n,null==r?u:r,NaN,NaN,NaN,NaN,NaN,NaN);return null==t?i:i.addAll(t)}function c(t,e,n,r,i,o,a,s,l){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=l,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 d=h.prototype=c.prototype;d.copy=function(){var t,e,n=new c(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},d.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)},d.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,l=1/0,u=-1/0,h=-1/0,c=-1/0;for(let i=0,f,d,p,m;i<e;++i)!(isNaN(d=+this._x.call(null,f=t[i]))||isNaN(p=+this._y.call(null,f))||isNaN(m=+this._z.call(null,f)))&&(n[i]=d,r[i]=p,o[i]=m,d<a&&(a=d),d>u&&(u=d),p<s&&(s=p),p>h&&(h=p),m<l&&(l=m),m>c&&(c=m));if(a>u||s>h||l>c)return this;this.cover(a,s,l).cover(u,h,c);for(let a=0;a<e;++a)i(this,n[a],r[a],o[a],t[a]);return this},d.cover=function(t,e,n){if(isNaN(t=+t)||isNaN(e=+e)||isNaN(n=+n))return this;var r=this._x0,i=this._y0,o=this._z0,a=this._x1,s=this._y1,l=this._z1;if(isNaN(r))a=(r=Math.floor(t))+1,s=(i=Math.floor(e))+1,l=(o=Math.floor(n))+1;else{for(var u,h,c=a-r||1,f=this._root;r>t||t>=a||i>e||e>=s||o>n||n>=l;)switch(h=(n<o)<<2|(e<i)<<1|t<r,(u=Array(8))[h]=f,f=u,c*=2,h){case 0:a=r+c,s=i+c,l=o+c;break;case 1:r=a-c,s=i+c,l=o+c;break;case 2:a=r+c,i=s-c,l=o+c;break;case 3:r=a-c,i=s-c,l=o+c;break;case 4:a=r+c,s=i+c,o=l-c;break;case 5:r=a-c,s=i+c,o=l-c;break;case 6:a=r+c,i=s-c,o=l-c;break;case 7:r=a-c,i=s-c,o=l-c}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=l,this},d.data=function(){var t=[];return this.visit(function(e){if(!e.length)do t.push(e.data);while(e=e.next)}),t},d.extent=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1],+t[0][2]).cover(+t[1][0],+t[1][1],
1+t[1][2]):isNaN(this._x0)?void 0:[[this._x0,this._y0,this._z0],[this._x1,this._y1,this._z1]]},d.find=function(t,e,n,r){var i,a,s,l,u,h,c,f,d,p=this._x0,m=this._y0,g=this._z0,y=this._x1,v=this._y1,_=this._z1,b=[],x=this._root;for(x&&b.push(new o(x,p,m,g,y,v,_)),null==r?r=1/0:(p=t-r,m=e-r,g=n-r,y=t+r,v=e+r,_=n+r,r*=r);f=b.pop();)if((x=f.node)&&!((a=f.x0)>y)&&!((s=f.y0)>v)&&!((l=f.z0)>_)&&!((u=f.x1)<p)&&!((h=f.y1)<m)&&!((c=f.z1)<g)){if(x.length){var H=(a+u)/2,w=(s+h)/2,S=(l+c)/2;b.push(new o(x[7],H,w,S,u,h,c),new o(x[6],a,w,S,H,h,c),new o(x[5],H,s,S,u,w,c),new o(x[4],a,s,S,H,w,c),new o(x[3],H,w,l,u,h,S),new o(x[2],a,w,l,H,h,S),new o(x[1],H,s,l,u,w,S),new o(x[0],a,s,l,H,w,S)),(d=(n>=S)<<2|(e>=w)<<1|t>=H)&&(f=b[b.length-1],b[b.length-1]=b[b.length-1-d],b[b.length-1-d]=f)}else{var M=t-+this._x.call(null,x.data),E=e-+this._y.call(null,x.data),A=n-+this._z.call(null,x.data),P=M*M+E*E+A*A;if(P<r){var T=Math.sqrt(r=P);p=t-T,m=e-T,g=n-T,y=t+T,v=e+T,_=n+T,i=x.data}}}return i},d.findAllWithinRadius=function(t,e,n,r){let i=[],o=t-r,s=e-r,l=n-r,u=t+r,h=e+r,c=n+r;return this.visit((f,d,p,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 d>u||p>h||m>c||g<o||y<s||v<l}),i},d.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,l,u,h,c,f,d,p,m,g=this._root,y=this._x0,v=this._y0,_=this._z0,b=this._x1,x=this._y1,H=this._z1;if(!g)return this;if(g.length)for(;;){if((c=o>=(l=(y+b)/2))?y=l:b=l,(f=a>=(u=(v+x)/2))?v=u:x=u,(d=s>=(h=(_+H)/2))?_=h:H=h,e=g,!(g=g[p=d<<2|f<<1|c]))return this;if(!g.length)break;(e[p+1&7]||e[p+2&7]||e[p+3&7]||e[p+4&7]||e[p+5&7]||e[p+6&7]||e[p+7&7])&&(n=e,m=p)}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[p]=i:delete e[p],(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},d.removeAll=function(t){for(var e=0,n=t.length;e<n;++e)this.remove(t[e]);return this},d.root=function(){return this._root},d.size=function(){var t=0;return this.visit(function(e){if(!e.length)do++t;while(e=e.next)}),t},d.visit=function(t){var e,n,r,i,a,s,l,u,h=[],c=this._root;for(c&&h.push(new o(c,this._x0,this._y0,this._z0,this._x1,this._y1,this._z1));e=h.pop();)if(!t(c=e.node,r=e.x0,i=e.y0,a=e.z0,s=e.x1,l=e.y1,u=e.z1)&&c.length){var f=(r+s)/2,d=(i+l)/2,p=(a+u)/2;(n=c[7])&&h.push(new o(n,f,d,p,s,l,u)),(n=c[6])&&h.push(new o(n,r,d,p,f,l,u)),(n=c[5])&&h.push(new o(n,f,i,p,s,d,u)),(n=c[4])&&h.push(new o(n,r,i,p,f,d,u)),(n=c[3])&&h.push(new o(n,f,d,a,s,l,p)),(n=c[2])&&h.push(new o(n,r,d,a,f,l,p)),(n=c[1])&&h.push(new o(n,f,i,a,s,d,p)),(n=c[0])&&h.push(new o(n,r,i,a,f,d,p))}return this},d.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,l=e.y0,u=e.z0,h=e.x1,c=e.y1,f=e.z1,d=(s+h)/2,p=(l+c)/2,m=(u+f)/2;(a=i[0])&&n.push(new o(a,s,l,u,d,p,m)),(a=i[1])&&n.push(new o(a,d,l,u,h,p,m)),(a=i[2])&&n.push(new o(a,s,p,u,d,c,m)),(a=i[3])&&n.push(new o(a,d,p,u,h,c,m)),(a=i[4])&&n.push(new o(a,s,l,m,d,p,f)),(a=i[5])&&n.push(new o(a,d,l,m,h,p,f)),(a=i[6])&&n.push(new o(a,s,p,m,d,c,f)),(a=i[7])&&n.push(new o(a,d,p,m,h,c,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},d.x=function(t){return arguments.length?(this._x=t,this):this._x},d.y=function(t){return arguments.length?(this._y=t,this):this._y},d.z=function(t){return arguments.length?(this._z=t,this):this._z};var p=n(86963),m=n(85661);function g(t,e){return[t,(0,m.cM)((0,m.OR)((m.ou+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 _(t,e){if(e.has(t))throw TypeError("Cannot initialize the same private elements twice on an object")}function b(t,e){return t.get(v(t,e))}function x(t,e,n){_(t,e),e.set(t,n)}function H(t,e,n){return t.set(v(t,e),n),n}function w(t,e,n){return(e=T(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}
1function S(t){return(S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function M(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(M=function(){return!!t})()}function E(t,e){return(E=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=[],l=!0,u=!1;try{if(o=(n=n.call(t)).next,0===e);else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)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 P(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)||O(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 T(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 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.z4)((0,m.Qq)(e))-m.ou]};var R=function(t){t instanceof Array?t.forEach(R):(t.map&&t.map.dispose(),t.dispose())},j=function(t){t.geometry&&t.geometry.dispose(),t.material&&R(t.material),t.texture&&t.texture.dispose(),t.children&&t.children.forEach(j)},k=function(t){if(t&&t.children)for(;t.children.length;){var e=t.children[0];t.remove(e),j(e)}};function z(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 C(t){return t*Math.PI/180}var I=function(t){return 1-(g(0,(.5-t)*Math.PI)[1]/Math.PI+1)/2},D=function(t){return Math.max(0,Math.min(1,I(t)))},N=function(t){return .5-g.invert(0,(2*(1-t)-1)*Math.PI)[1]/Math.PI},F=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,p.Z)().domain([1,0]).range([e,n]).clamp(!0),i=(0,p.Z)().domain([D(e),D(n)]).range([1,0]).clamp(!0),o=t.array,a=0,s=o.length;a<s;a+=2)o[a+1]=i(D(r(o[a+1])));t.needsUpdate=!0},U=function(t,e,n,r){var i=Math.pow(2,t),o=(90-r)/180;e&&(o=Math.max(0,Math.min(1,I(o))));var a=Math.floor(o*i);return[Math.max(0,Math.min(i-1,Math.floor((n+180)*i/360))),a]},L=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),l=360/s,u=180/s,h=void 0===o?s-1:o,c=n,f=Math.min(s-1,void 0===i?s-1:i);c<=f;c++)for(var d=r,p=Math.min(s-1,h);d<=p;d++){var m=d,g=u;e&&(m=0===d?d:N(d/s)*s,g=((d+1===s?d+1:N((d+1)/s)*s)-m)*180/s);var y=-180+(c+.5)*l,v=90-(180*m/s+g/2),_=g;a.push({x:c,y:d,lng:y,lat:v,latLen:_})}return a},B=new WeakMap,Z=new WeakMap,W=new WeakMap,V=new WeakMap,$=new WeakMap,G=new WeakMap,X=new WeakMap,q=new WeakMap,Y=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,l=a.minLevel,u=a.maxLevel,h=a.mercatorProjection;return!function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,n),e=S(e=n),_(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");return function(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,M()?Reflect.construct(e,[],S(this).constructor):e.apply(this,void 0)),Y),Y.add(i),x(o,B,void 0),x(o,Z,void 0),x(o,W,void 0),x(o,V,void 0),x(o,$,{}),x(o,G,void 0),x(o,X,void 0),x(o,q,void 0),w(o,"minLevel",void 0),w(o,"maxLevel",void 0),w(o,"thresholds",P(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(b($,o)).forEac
1h(function(t){t.forEach(function(t){t.obj&&(o.remove(t.obj),k(t.obj),delete t.obj)})}),H($,o,{})}),H(B,o,t),o.tileUrl=s,H(Z,o,void 0===h||h),o.minLevel=void 0===l?0:l,o.maxLevel=void 0===u?17:u,o.level=0,o.add(H(q,o,new r.Kj0(new r.xo$(.99*b(B,o),180,90),new r.vBJ({color:0})))),b(q,o).visible=!1,b(q,o).material.polygonOffset=!0,b(q,o).material.polygonOffsetUnits=3,b(q,o).material.polygonOffsetFactor=1,o}return!function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&E(t,e)}(n,t),e=[{key:"tileUrl",get:function(){return b(W,this)},set:function(t){H(W,this,t),this.updatePov(b(X,this))}},{key:"level",get:function(){return b(V,this)},set:function(t){var e,n=this;b($,this)[t]||v(Y,this,Q).call(this,t);var r=b(V,this);if(H(V,this,t),t!==r&&void 0!==r){if(b(q,this).visible=t>0,b($,this)[t].forEach(function(t){return t.obj&&(t.obj.material.depthWrite=!0)}),r<t&&(null===(e=b($,this)[r])||void 0===e||e.forEach(function(t){return t.obj&&(t.obj.material.depthWrite=!1)})),r>t)for(var i=t+1;i<=r;i++)b($,this)[i]&&b($,this)[i].forEach(function(t){t.obj&&(n.remove(t.obj),k(t.obj),delete t.obj)});v(Y,this,J).call(this)}}},{key:"updatePov",value:function(t){var e,n=this;if(t&&t instanceof r.V1s&&(H(X,this,t),H(G,this,function(i){if(!i.hullPnts){var o=360/Math.pow(2,n.level),a=i.lng,s=i.lat,l=i.latLen,u=a-o/2,h=a+o/2,c=s-l/2,f=s+l/2;i.hullPnts=[[s,a],[c,u],[f,u],[c,h],[f,h]].map(function(t){var e=A(t,2);return z(e[0],e[1],b(B,n))}).map(function(t){var e=t.x,n=t.y,i=t.z;return new r.Pa4(e,n,i)})}return e||(e=new r.iWj,t.updateMatrix(),t.updateMatrixWorld(),e.setFromProjectionMatrix(new r.yGw().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.Pa4))-b(B,this))/b(B,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(Y,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,T(r.key),r)}}(n.prototype,e),Object.defineProperty(n,"prototype",{writable:!1}),n}(r.ZAu);function Q(t){var e=this;if(t>7){b($,this)[t]=[];return}var n=b($,this)[t]=L(t,b(Z,this));n.forEach(function(t){return t.centroid=z(t.lat,t.lng,b(B,e))}),n.octree=h().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&&b($,this).hasOwnProperty(this.level)&&(b(G,this)||!(this.level>6))){var e=b($,this)[this.level];if(b(X,this)){var n=this.worldToLocal(b(X,this).position.clone());if(e.octree){var i,o=this.worldToLocal(b(X,this).position.clone()),a=(o.length()-b(B,this))*3;e=(i=e.octree).findAllWithinRadius.apply(i,P(o).concat([a]))}else{var s,l,u,h,c,f=(h=Math.sqrt((s=n.x)*s+(l=n.y)*l+(u=n.z)*u),{lat:90-180*Math.acos(l/h)/Math.PI,lng:90-180*(c=Math.atan2(u,s))/Math.PI-(c<-Math.PI/2?360:0),r:h}),d=(f.r/b(B,this)-1)*90,p=d/Math.cos(C(f.lat)),m=[f.lng-p,f.lng+p],g=[f.lat+d,f.lat-d],y=A(U(this.level,b(Z,this),m[0],g[0]),2),v=y[0],_=y[1],x=A(U(this.level,b(Z,this),m[1],g[1]),2),H=x[0],w=x[1];e.record||(e.record={});var S=e.record;if(S.hasOwnProperty("".concat(Math.round((v+H)/2),"_").concat(Math.round((_+w)/2)))){for(var M=[],E=v;E<=H;E++)for(var T=_;T<=w;T++){var O="".concat(E,"_").concat(T);S.hasOwnProperty(O)||(S[O]=L(this.level,b(Z,this),E,T,E,T)[0],e.push(S[O])),M.push(S[O])}e=M}else e=L(this.level,b(Z,this),v,_,H,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(b(G,this)||function(){return!0}).forEach(function(e){var n=e.x,i=e.y,o=e.lng,a=e.lat,s=e.latLen,l=360/Math.pow(2,t.level);if(!e.obj){var u=l*(1-t.tileMargin),h=s*(1-t.tileMargin),c=C(o),f=C(-a),d=new r.Kj0(new r.xo$(b(B,t),Math.ceil(u/t.curvatureResolution),Math.ceil(h/t.curvatureResolution),C(90-u/2)+c,C(u),C(90-h/2)+f,C(h)),new r.YBo);if(b(Z,t)){var p=A([a+s/2,a-s/2].map(function(t){return .5-t/180}),2),m=p[0],g=p[1];F(d.geometry.attributes.uv,m,g)}e.obj=d}e.loading||(e.loading=!0,new r.dpR().load(t.tileUrl(n,i,t.level),function(n){var i=e.obj;
1i&&(n.colorSpace=r.KI_,i.material.map=n,i.material.color=null,i.material.needsUpdate=!0,t.add(i)),e.loading=!1}))})}}},32828:function(t,e,n){"use strict";n.d(e,{Fn:function(){return i},If:function(){return o},O$l:function(){return d},Qqt:function(){return u},V7B:function(){return c},ZRM:function(){return s},_b3:function(){return p},e5:function(){return g},fzv:function(){return h},mCk:function(){return l},rNP:function(){return a},tOc:function(){return m},tkI:function(){return f}});var r=n(49200);r.oHn.BRDF_GGX,r.oHn.BRDF_Lambert,r.oHn.BasicPointShadowFilter,r.oHn.BasicShadowFilter,r.oHn.Break,r.oHn.Const,r.oHn.Continue,r.oHn.DFGLUT,r.oHn.D_GGX,r.oHn.Discard,r.oHn.EPSILON,r.oHn.F_Schlick;let i=r.oHn.Fn;r.oHn.INFINITY;let o=r.oHn.If,a=r.oHn.Loop;r.oHn.NodeAccess,r.oHn.NodeShaderStage,r.oHn.NodeType,r.oHn.NodeUpdateType,r.oHn.PCFShadowFilter,r.oHn.PCFSoftShadowFilter,r.oHn.PI,r.oHn.PI2,r.oHn.TWO_PI,r.oHn.HALF_PI,r.oHn.PointShadowFilter,r.oHn.Return,r.oHn.Schlick_to_F0,r.oHn.ShaderNode,r.oHn.Stack,r.oHn.Switch,r.oHn.TBNViewMatrix,r.oHn.VSMShadowFilter,r.oHn.V_GGX_SmithCorrelated,r.oHn.Var,r.oHn.VarIntent,r.oHn.abs,r.oHn.acesFilmicToneMapping,r.oHn.acos,r.oHn.add,r.oHn.addMethodChaining,r.oHn.addNodeElement,r.oHn.agxToneMapping,r.oHn.all,r.oHn.alphaT,r.oHn.and,r.oHn.anisotropy,r.oHn.anisotropyB,r.oHn.anisotropyT,r.oHn.any,r.oHn.append,r.oHn.array,r.oHn.arrayBuffer;let s=r.oHn.asin;r.oHn.assign,r.oHn.atan,r.oHn.atomicAdd,r.oHn.atomicAnd,r.oHn.atomicFunc,r.oHn.atomicLoad,r.oHn.atomicMax,r.oHn.atomicMin,r.oHn.atomicOr,r.oHn.atomicStore,r.oHn.atomicSub,r.oHn.atomicXor,r.oHn.attenuationColor,r.oHn.attenuationDistance,r.oHn.attribute,r.oHn.attributeArray,r.oHn.backgroundBlurriness,r.oHn.backgroundIntensity,r.oHn.backgroundRotation,r.oHn.batch,r.oHn.bentNormalView,r.oHn.billboarding,r.oHn.bitAnd,r.oHn.bitNot,r.oHn.bitOr,r.oHn.bitXor,r.oHn.bitangentGeometry,r.oHn.bitangentLocal,r.oHn.bitangentView,r.oHn.bitangentWorld,r.oHn.bitcast,r.oHn.blendBurn,r.oHn.blendColor,r.oHn.blendDodge,r.oHn.blendOverlay,r.oHn.blendScreen,r.oHn.blur,r.oHn.bool,r.oHn.buffer,r.oHn.bufferAttribute,r.oHn.bumpMap,r.oHn.builtin,r.oHn.builtinAOContext,r.oHn.builtinShadowContext,r.oHn.bvec2,r.oHn.bvec3,r.oHn.bvec4,r.oHn.bypass,r.oHn.cache,r.oHn.call,r.oHn.cameraFar,r.oHn.cameraIndex,r.oHn.cameraNear,r.oHn.cameraNormalMatrix,r.oHn.cameraPosition,r.oHn.cameraProjectionMatrix,r.oHn.cameraProjectionMatrixInverse,r.oHn.cameraViewMatrix,r.oHn.cameraViewport,r.oHn.cameraWorldMatrix,r.oHn.cbrt,r.oHn.cdl,r.oHn.ceil,r.oHn.checker,r.oHn.cineonToneMapping,r.oHn.clamp,r.oHn.clearcoat,r.oHn.clearcoatNormalView,r.oHn.clearcoatRoughness,r.oHn.clipSpace,r.oHn.code,r.oHn.color,r.oHn.colorSpaceToWorking,r.oHn.colorToDirection,r.oHn.compute,r.oHn.computeKernel,r.oHn.computeSkinning,r.oHn.context,r.oHn.convert,r.oHn.convertColorSpace,r.oHn.convertToTexture,r.oHn.countLeadingZeros,r.oHn.countOneBits,r.oHn.countTrailingZeros;let l=r.oHn.cos;r.oHn.cross,r.oHn.cubeTexture,r.oHn.cubeTextureBase,r.oHn.dFdx,r.oHn.dFdy,r.oHn.dashSize,r.oHn.debug,r.oHn.decrement,r.oHn.decrementBefore,r.oHn.defaultBuildStages,r.oHn.defaultShaderStages,r.oHn.defined,r.oHn.degrees,r.oHn.deltaTime,r.oHn.densityFog,r.oHn.densityFogFactor,r.oHn.depth,r.oHn.depthPass,r.oHn.determinant,r.oHn.difference,r.oHn.diffuseColor,r.oHn.directPointLight,r.oHn.directionToColor,r.oHn.directionToFaceDirection,r.oHn.dispersion,r.oHn.distance,r.oHn.div,r.oHn.dot,r.oHn.drawIndex,r.oHn.dynamicBufferAttribute,r.oHn.element,r.oHn.emissive,r.oHn.equal,r.oHn.equirectUV;let u=r.oHn.exp;r.oHn.exp2,r.oHn.exponentialHeightFogFactor,r.oHn.expression,r.oHn.faceDirection,r.oHn.faceForward,r.oHn.faceforward;let h=r.oHn.float;r.oHn.floatBitsToInt,r.oHn.floatBitsToUint,r.oHn.floor,r.oHn.fog,r.oHn.fract,r.oHn.frameGroup,r.oHn.frameId,r.oHn.frontFacing,r.oHn.fwidth,r.oHn.gain,r.oHn.gapSize,r.oHn.getConstNodeType,r.oHn.getCurrentStack,r.oHn.getDirection,r.oHn.getDistanceAttenuation,r.oHn.getGeometryRoughness,r.oHn.getNormalFromDepth,r.oHn.interleavedGradientNoise,r.oHn.vogelDiskSample,r.oHn.getParallaxCorrectNormal,r.oHn.getRoughness,r.oHn.getScreenPosition,r.oHn.getShIrradianceAt,r.oHn.getShadowMaterial,r.oHn.getShadowRenderObjectFunction,r.oHn.getTextureIndex,r.oHn.getViewPosition,r.oHn.globalId,r.oHn.glsl,r.oHn.glslFn,r.oHn.grayscale,r.oHn.greaterThan,r.oHn.greaterThanEqual,r.oHn.hash,r.oHn.highpModelNormalViewMatrix,r.oHn.highpModelViewMatrix,r.oHn.hue,r.oHn.increment,r.oHn.incrementBefore,r.oHn.instance;let c=r.oHn.instanceIndex;r.oHn.instancedArray,r.oHn.instancedBufferAttribute,r.oHn.instancedDynamicBufferAttribute,r.oHn.instancedMesh,r.oHn.int,r.oHn.intBitsToFloat,r.oHn.inverse,r.oHn.inverseSqrt,r.oHn.inversesqrt,r.oHn.invocationLocalIndex,r.oHn.invocationSubgroupIndex,r.oHn.ior,r.oHn.iridescence,r.oHn.iridescenceIOR,r.o
1Hn.iridescenceThickness,r.oHn.ivec2,r.oHn.ivec3,r.oHn.ivec4,r.oHn.js,r.oHn.label,r.oHn.length,r.oHn.lengthSq,r.oHn.lessThan,r.oHn.lessThanEqual,r.oHn.lightPosition,r.oHn.lightProjectionUV,r.oHn.lightShadowMatrix,r.oHn.lightTargetDirection,r.oHn.lightTargetPosition,r.oHn.lightViewPosition,r.oHn.lightingContext,r.oHn.lights,r.oHn.linearDepth,r.oHn.linearToneMapping,r.oHn.localId,r.oHn.log,r.oHn.log2,r.oHn.logarithmicDepthToViewZ,r.oHn.luminance,r.oHn.mat2,r.oHn.mat3,r.oHn.mat4,r.oHn.matcapUV,r.oHn.materialAO,r.oHn.materialAlphaTest,r.oHn.materialAnisotropy,r.oHn.materialAnisotropyVector,r.oHn.materialAttenuationColor,r.oHn.materialAttenuationDistance,r.oHn.materialClearcoat,r.oHn.materialClearcoatNormal,r.oHn.materialClearcoatRoughness,r.oHn.materialColor,r.oHn.materialDispersion,r.oHn.materialEmissive,r.oHn.materialEnvIntensity,r.oHn.materialEnvRotation,r.oHn.materialIOR,r.oHn.materialIridescence,r.oHn.materialIridescenceIOR,r.oHn.materialIridescenceThickness,r.oHn.materialLightMap,r.oHn.materialLineDashOffset,r.oHn.materialLineDashSize,r.oHn.materialLineGapSize,r.oHn.materialLineScale,r.oHn.materialLineWidth,r.oHn.materialMetalness,r.oHn.materialNormal,r.oHn.materialOpacity,r.oHn.materialPointSize,r.oHn.materialReference,r.oHn.materialReflectivity,r.oHn.materialRefractionRatio,r.oHn.materialRotation,r.oHn.materialRoughness,r.oHn.materialSheen,r.oHn.materialSheenRoughness,r.oHn.materialShininess,r.oHn.materialSpecular,r.oHn.materialSpecularColor,r.oHn.materialSpecularIntensity,r.oHn.materialSpecularStrength,r.oHn.materialThickness,r.o
1Hn.materialTransmission,r.oHn.max,r.oHn.maxMipLevel,r.oHn.mediumpModelViewMatrix,r.oHn.metalness,r.oHn.min,r.oHn.mix,r.oHn.mixElement,r.oHn.mod,r.oHn.modInt,r.oHn.modelDirection,r.oHn.modelNormalMatrix,r.oHn.modelPosition,r.oHn.modelRadius,r.oHn.modelScale,r.oHn.modelViewMatrix,r.oHn.modelViewPosition,r.oHn.modelViewProjection,r.oHn.modelWorldMatrix,r.oHn.modelWorldMatrixInverse,r.oHn.morphReference,r.oHn.mrt,r.oHn.mul,r.oHn.mx_aastep,r.oHn.mx_add,r.oHn.mx_atan2,r.oHn.mx_cell_noise_float,r.oHn.mx_contrast,r.oHn.mx_divide,r.oHn.mx_fractal_noise_float,r.oHn.mx_fractal_noise_vec2,r.oHn.mx_fractal_noise_vec3,r.oHn.mx_fractal_noise_vec4,r.oHn.mx_frame,r.oHn.mx_heighttonormal,r.oHn.mx_hsvtorgb,r.oHn.mx_ifequal,r.oHn.mx_ifgreater,r.oHn.mx_ifgreatereq,r.oHn.mx_invert,r.oHn.mx_modulo,r.oHn.mx_multiply,r.oHn.mx_noise_float,r.oHn.mx_noise_vec3,r.oHn.mx_noise_vec4,r.oHn.mx_place2d,r.oHn.mx_power,r.oHn.mx_ramp4,r.oHn.mx_ramplr,r.oHn.mx_ramptb,r.oHn.mx_rgbtohsv,r.oHn.mx_rotate2d,r.oHn.mx_rotate3d,r.oHn.mx_safepower,r.oHn.mx_separate,r.oHn.mx_splitlr,r.oHn.mx_splittb,r.oHn.mx_srgb_texture_to_lin_rec709,r.oHn.mx_subtract,r.oHn.mx_timer,r.oHn.mx_transform_uv,r.oHn.mx_unifiednoise2d,r.oHn.mx_unifiednoise3d,r.oHn.mx_worley_noise_float,r.oHn.mx_worley_noise_vec2,r.oHn.mx_worley_noise_vec3;let f=r.oHn.negate;r.oHn.neutralToneMapping,r.oHn.nodeArray,r.oHn.nodeImmutable,r.oHn.nodeObject,r.oHn.nodeObjectIntent,r.oHn.nodeObjects,r.oHn.nodeProxy,r.oHn.nodeProxyIntent,r.oHn.normalFlat,r.oHn.normalGeometry,r.oHn.normalLocal,r.oHn.normalMap,r.oHn.normalView,r.oHn.normalViewGeometry,r.oHn.normalWorld,r.oHn.normalWorldGeometry,r.oHn.normalize,r.oHn.not,r.oHn.notEqual,r.oHn.numWorkgroups,r.oHn.objectDirection,r.oHn.objectGroup,r.oHn.objectPosition,r.oHn.objectRadius,r.oHn.objectScale,r.oHn.objectViewPosition,r.oHn.objectWorldMatrix,r.oHn.OnBeforeObjectUpdate,r.oHn.OnBeforeMaterialUpdate,r.oHn.OnObjectUpdate,r.oHn.OnMaterialUpdate,r.oHn.oneMinus,r.oHn.or,r.oHn.orthographicDepthToViewZ,r.oHn.oscSawtooth,r.oHn.oscSine,r.oHn.oscSquare,r.oHn.oscTriangle,r.oHn.output,r.oHn.outputStruct,r.oHn.overloadingFn,r.oHn.packHalf2x16,r.oHn.packSnorm2x16,r.oHn.packUnorm2x16,r.oHn.parabola,r.oHn.parallaxDirection,r.oHn.parallaxUV,r.oHn.parameter,r.oHn.pass,r.oHn.passTexture,r.oHn.pcurve,r.oHn.perspectiveDepthToViewZ,r.oHn.pmremTexture,r.oHn.pointShadow,r.oHn.pointUV,r.oHn.pointWidth,r.oHn.positionGeometry,r.oHn.positionLocal,r.oHn.positionPrevious,r.oHn.positionView,r.oHn.positionViewDirection,r.oHn.positionWorld,r.oHn.positionWorldDirection,r.oHn.posterize,r.oHn.pow,r.oHn.pow2,r.oHn.pow3,r.oHn.pow4,r.oHn.premultiplyAlpha,r.oHn.property,r.oHn.radians,r.oHn.rand,r.oHn.range,r.oHn.rangeFog,r.oHn.rangeFogFactor,r.oHn.reciprocal,r.oHn.reference,r.oHn.referenceBuffer,r.oHn.reflect,r.oHn.reflectVector,r.oHn.reflectView,r.oHn.reflector,r.oHn.refract,r.oHn.refractVector,r.oHn.refractView,r.oHn.reinhardToneMapping,r.oHn.remap,r.oHn.remapClamp,r.oHn.renderGroup,r.oHn.renderOutput,r.oHn.rendererReference,r.oHn.replaceDefaultUV,r.oHn.rotate,r.oHn.rotateUV,r.oHn.roughness,r.oHn.round,r.oHn.rtt,r.oHn.sRGBTransferEOTF,r.oHn.sRGBTransferOETF,r.oHn.sample,r.oHn.sampler,r.oHn.samplerComparison,r.oHn.saturate,r.oHn.saturation,r.oHn.screen,r.oHn.screenCoordinate,r.oHn.screenDPR,r.oHn.screenSize,r.oHn.screenUV,r.oHn.select,r.oHn.setCurrentStack,r.oHn.setName,r.oHn.shaderStages,r.oHn.shadow,r.oHn.shadowPositionWorld,r.oHn.shapeCircle,r.oHn.sharedUniformGroup,r.oHn.sheen,r.oHn.sheenRoughness,r.oHn.shiftLeft,r.oHn.shiftRight,r.oHn.shininess,r.oHn.sign;let d=r.oHn.sin;r.oHn.sinc,r.oHn.skinning,r.oHn.smoothstep,r.oHn.smoothstepElement,r.oHn.specularColor,r.oHn.specularF90,r.oHn.spherizeUV,r.oHn.split,r.oHn.spritesheetUV;let p=r.oHn.sqrt;r.oHn.stack,r.oHn.step,r.oHn.stepElement;let m=r.oHn.storage;r.oHn.storageBarrier,r.oHn.storageTexture,r.oHn.string,r.oHn.struct,r.oHn.sub,r.oHn.subgroupAdd,r.oHn.subgroupAll,r.oHn.subgroupAnd,r.oHn.subgroupAny,r.oHn.subgroupBallot,r.oHn.subgroupBroadcast,r.oHn.subgroupBroadcastFirst,r.oHn.subBuild,r.oHn.subgroupElect,r.oHn.subgroupExclusiveAdd,r.oHn.subgroupExclusiveMul,r.oHn.subgroupInclusiveAdd,r.oHn.subgroupInclusiveMul,r.oHn.subgroupIndex,r.oHn.subgroupMax,r.oHn.subgroupMin,r.oHn.subgroupMul,r.oHn.subgroupOr,r.oHn.subgroupShuffle,r.oHn.subgroupShuffleDown,r.oHn.subgroupShuffleUp,r.oHn.subgroupShuffleXor,r.oHn.subgroupSize,r.oHn.subgroupXor,r.oHn.tan,r.oHn.tangentGeometry,r.oHn.tangentLocal,r.oHn.tangentView,r.oHn.tangentWorld,r.oHn.texture,r.oHn.texture3D,r.o
1Hn.textureBarrier,r.oHn.textureBicubic,r.oHn.textureBicubicLevel,r.oHn.textureCubeUV,r.oHn.textureLoad,r.oHn.textureSize,r.oHn.textureLevel,r.oHn.textureStore,r.oHn.thickness,r.oHn.time,r.oHn.toneMapping,r.oHn.toneMappingExposure,r.oHn.toonOutlinePass,r.oHn.transformDirection,r.oHn.transformNormal,r.oHn.transformNormalToView,r.oHn.transformedClearcoatNormalView,r.oHn.transformedNormalView,r.oHn.transformedNormalWorld,r.oHn.transmission,r.oHn.transpose,r.oHn.triNoise3D,r.oHn.triplanarTexture,r.oHn.triplanarTextures,r.oHn.trunc,r.oHn.uint,r.oHn.uintBitsToFloat;let g=r.oHn.uniform;r.oHn.uniformArray,r.oHn.uniformCubeTexture,r.oHn.uniformGroup,r.oHn.uniformFlow,r.oHn.uniformTexture,r.oHn.unpackHalf2x16,r.oHn.unpackSnorm2x16,r.oHn.unpackUnorm2x16,r.oHn.unpremultiplyAlpha,r.oHn.userData,r.oHn.uv,r.oHn.uvec2,r.oHn.uvec3,r.oHn.uvec4,r.oHn.varying,r.oHn.varyingProperty,r.oHn.vec2,r.oHn.vec3,r.oHn.vec4,r.oHn.vectorComponents,r.oHn.velocity,r.oHn.vertexColor,r.oHn.vertexIndex,r.oHn.vertexStage,r.oHn.vibrance,r.oHn.viewZToLogarithmicDepth,r.oHn.viewZToOrthographicDepth,r.oHn.viewZToPerspectiveDepth,r.oHn.viewZToReversedOrthographicDepth,r.oHn.viewZToReversedPerspectiveDepth,r.oHn.viewport,r.oHn.viewportCoordinate,r.oHn.viewportDepthTexture,r.oHn.viewportLinearDepth,r.oHn.viewportMipTexture,r.oHn.viewportOpaqueMipTexture,r.oHn.viewportResolution,r.oHn.viewportSafeUV,r.oHn.viewportSharedTexture,r.oHn.viewportSize,r.oHn.viewportTexture,r.oHn.viewportUV,r.oHn.wgsl,r.oHn.wgslFn,r.oHn.workgroupArray,r.oHn.workgroupBarrier,r.oHn.workgroupId,r.oHn.workingToColorSpace,r.oHn.xor},7416:function(t,e,n){"use strict";n.d(e,{z:function(){return d}});var r=n(26241);let i={type:"change"},o={type:"start"},a={type:"end"},s=new r.zHn,l=new r.JOQ,u=Math.cos(70*r.M8C.DEG2RAD),h=new r.Pa4,c=2*Math.PI,f={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_PAN:4,TOUCH_DOLLY_PAN:5,TOUCH_DOLLY_ROTATE:6};class d extends r.ZXd{set cursorStyle(t){this._cursorStyle=t,"grab"===t?this.domElement.style.cursor="grab":this.domElement.style.cursor="auto"}get cursorStyle(){return this._cursorStyle}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(i),this.update(),this.state=f.NONE}pan(t,e){this._pan(t,e),this.update()}dollyIn(t){this._dollyIn(t),this.update()}dollyOut(t){this._dollyOut(t),this.update()}rotateLeft(t){this._rotateLeft(t),this.update()}rotateUp(t){this._rotateUp(t),this.update()}update(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=this.object.position;h.copy(e).sub(this.target),h.applyQuaternion(this._quat),this._spherical.setFromVector3(h),this.autoRotate&&this.state===f.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,o=this.maxAzimuthAngle;
1isFinite(n)&&isFinite(o)&&(n<-Math.PI?n+=c:n>Math.PI&&(n-=c),o<-Math.PI?o+=c:o>Math.PI&&(o-=c),n<=o?this._spherical.theta=Math.max(n,Math.min(o,this._spherical.theta)):this._spherical.theta=this._spherical.theta>(n+o)/2?Math.max(n,this._spherical.theta):Math.min(o,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 a=!1;if(this.zoomToCursor&&this._performCursorZoom||this.object.isOrthographicCamera)this._spherical.radius=this._clampDistance(this._spherical.radius);else{let t=this._spherical.radius;this._spherical.radius=this._clampDistance(this._spherical.radius*this._scale),a=t!=this._spherical.radius}if(h.setFromSpherical(this._spherical),h.applyQuaternion(this._quatInverse),e.copy(this.target).add(h),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=h.length();t=this._clampDistance(e*this._scale);let n=e-t;this.object.position.addScaledVector(this._dollyDirection,n),this.object.updateMatrixWorld(),a=!!n}else if(this.object.isOrthographicCamera){let e=new r.Pa4(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(),a=n!==this.object.zoom;let i=new r.Pa4(this._mouse.x,this._mouse.y,0);i.unproject(this.object),this.object.position.sub(i).add(e),this.object.updateMatrixWorld(),t=h.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):(s.origin.copy(this.object.position),s.direction.set(0,0,-1).transformDirection(this.object.matrix),Math.abs(this.object.up.dot(s.direction))<u?this.object.lookAt(this.target):(l.setFromNormalAndCoplanarPoint(this.object.up,this.target),s.intersectPlane(l,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(),a=!0)}return this._scale=1,this._performCursorZoom=!1,!!(a||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(i),this._lastPosition.copy(this.object.position),this._lastQuaternion.copy(this.object.quaternion),this._lastTargetPosition.copy(this.target),!0)}_getAutoRotationAngle(t){return null!==t?c/60*this.autoRotateSpeed*t:c/60/60*this.autoRotateSpeed}_getZoomScale(t){return Math.pow(.95,this.zoomSpeed*Math.abs(.01*t))}_rotateLeft(t){this._sphericalDelta.theta-=t}_rotateUp(t){this._sphericalDelta.phi-=t}_panLeft(t,e){h.setFromMatrixColumn(e,0),h.multiplyScalar(-t),this._panOffset.add(h)}_panUp(t,e){!0===this.screenSpacePanning?h.setFromMatrixColumn(e,1):(h.setFromMatrixColumn(e,0),h.crossVectors(this.object.up,h)),h.multiplyScalar(t),this._panOffset.add(h)}_pan(t,e){let n=this.domElement;if(this.object.isPerspectiveCamera){let r=this.object.position;h.copy(r).sub(this.target);let i=h.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(c*this._rotateDelta.x/e.clientHeight),this._rotateUp(c*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(c*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(-c*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(c*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(-c*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;this._dollyStart.set(0,Math.sqrt(n*n+r*r))}_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(c*this._rotateDelta.x/e.clientHeight),this._rotateUp(c*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;this._dollyEnd.set(0,Math.sqrt(n*n+r*r)),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 i=(t.pageX+e.x)*.5,o=(t.pageY+e.y)*.5;this._updateZoomParameters(i,o)}_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){this._pointers.splice(e,1);return}}_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 r.FM8,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}constructor(t,e=null){super(t,e),this.state=f.NONE,this.target=new r.Pa4,this.cursor=new r.Pa4,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
1FT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",BOTTOM:"ArrowDown"},this.mouseButtons={LEFT:r.RsA.ROTATE,MIDDLE:r.RsA.DOLLY,RIGHT:r.RsA.PAN},this.touches={ONE:r.QmN.ROTATE,TWO:r.QmN.DOLLY_PAN},this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this._cursorStyle="auto",this._domElementKeyEvents=null,this._lastPosition=new r.Pa4,this._lastQuaternion=new r._fP,this._lastTargetPosition=new r.Pa4,this._quat=new r._fP().setFromUnitVectors(t.up,new r.Pa4(0,1,0)),this._quatInverse=this._quat.clone().invert(),this._spherical=new r.$V,this._sphericalDelta=new r.$V,this._scale=1,this._panOffset=new r.Pa4,this._rotateStart=new r.FM8,this._rotateEnd=new r.FM8,this._rotateDelta=new r.FM8,this._panStart=new r.FM8,this._panEnd=new r.FM8,this._panDelta=new r.FM8,this._dollyStart=new r.FM8,this._dollyEnd=new r.FM8,this._dollyDelta=new r.FM8,this._dollyDirection=new r.Pa4,this._mouse=new r.FM8,this._performCursorZoom=!1,this._pointers=[],this._pointerPositions={},this._controlActive=!1,this._onPointerMove=m.bind(this),this._onPointerDown=p.bind(this),this._onPointerUp=g.bind(this),this._onContextMenu=w.bind(this),this._onMouseWheel=_.bind(this),this._onKeyDown=b.bind(this),this._onTouchStart=x.bind(this),this._onTouchMove=H.bind(this),this._onMouseDown=y.bind(this),this._onMouseMove=v.bind(this),this._interceptControlDown=S.bind(this),this._interceptControlUp=M.bind(this),null!==this.domElement&&this.connect(this.domElement),this.update()}}function p(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),"grab"!==this._cursorStyle||(this.domElement.style.cursor="grabbing")))}function m(t){!1!==this.enabled&&("touch"===t.pointerType?this._onTouchMove(t):this._onMouseMove(t))}function g(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(a),this.state=f.NONE,"grab"===this._cursorStyle&&(this.domElement.style.cursor="grab");break;case 1:let e=this._pointers[0],n=this._pointerPositions[e];this._onTouchStart({pointerId:e,pageX:n.x,pageY:n.y})}}function y(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 r.RsA.DOLLY:if(!1===this.enableZoom)return;this._handleMouseDownDolly(t),this.state=f.DOLLY;break;case r.RsA.ROTATE:if(t.ctrlKey||t.metaKey||t.shiftKey){if(!1===this.enablePan)return;this._handleMouseDownPan(t),this.state=f.PAN}else{if(!1===this.enableRotate)return;this._handleMouseDownRotate(t),this.state=f.ROTATE}break;case r.RsA.PAN:if(t.ctrlKey||t.metaKey||t.shiftKey){if(!1===this.enableRotate)return;this._handleMouseDownRotate(t),this.state=f.ROTATE}else{if(!1===this.enablePan)return;this._handleMouseDownPan(t),this.state=f.PAN}break;default:this.state=f.NONE}this.state!==f.NONE&&this.dispatchEvent(o)}function v(t){switch(this.state){case f.ROTATE:if(!1===this.enableRotate)return;this._handleMouseMoveRotate(t);break;case f.DOLLY:if(!1===this.enableZoom)return;this._handleMouseMoveDolly(t);break;case f.PAN:if(!1===this.enablePan)return;this._handleMouseMovePan(t)}}function _(t){!1!==this.enabled&&!1!==this.enableZoom&&this.state===f.NONE&&(t.preventDefault(),this.dispatchEvent(o),this._handleMouseWheel(this._customWheelEvent(t)),this.dispatchEvent(a))}function b(t){!1!==this.enabled&&this._handleKeyDown(t)}function x(t){switch(this._trackPointer(t),this._pointers.length){case 1:switch(this.touches.ONE){case r.QmN.ROTATE:if(!1===this.enableRotate)return;this._handleTouchStartRotate(t),this.state=f.TOUCH_ROTATE;break;case r.QmN.PAN:if(!1===this.enablePan)return;this._handleTouchStartPan(t),this.state=f.TOUCH_PAN;break;default:this.state=f.NONE}break;case 2:switch(this.touches.TWO){case r.QmN.DOLLY_PAN:if(!1===this.enableZoom&&!1===this.enablePan)return;this._handleTouchStartDollyPan(t),this.state=f.TOUCH_DOLLY_PAN;break;case r.QmN.DOLLY_ROTATE:if(!1===this.enableZoom&&!1===this.enableRotate)return;this._handleTouchStartDollyRotate(t),this.state=f.TOUCH_DOLLY_ROTATE;break;default:this.state=f.NONE}break;default:this.state=f.NONE}this.state!==f.NONE&&this.dispatchEvent(o)}function H(t){switch(this._trackPointer(t),this.state){case f.TOUCH_ROTATE:if(!1===this.enableRotate)return;this._handleTouchMoveRotate(t),this.update();break;case f.TOUCH_PAN:if(!1===this.enablePan)return;this._handleTouchMovePan(t),this.update();break;case f.TOUCH_DOLLY_PAN:if(!1===this.enableZoom&&!1===this.enablePan)return;this._handleTouchMoveDollyPan(t),this.update();break;case f.TOUCH_DOLLY_ROTATE:if(!1===this.enableZoom&&!1===this.enableRotate)return;this._handleTouchMoveDollyRotate(t),this.update();break;default:this.state=f.NONE}}function w(t){!1!==this.enabled&&t.preventDefault()}
1function S(t){"Control"===t.key&&(this._controlActive=!0,this.domElement.getRootNode().addEventListener("keyup",this._interceptControlUp,{passive:!0,capture:!0}))}function M(t){"Control"===t.key&&(this._controlActive=!1,this.domElement.getRootNode().removeEventListener("keyup",this._interceptControlUp,{passive:!0,capture:!0}))}},53677:function(t,e,n){"use strict";n.d(e,{M:function(){return i}});var r=n(26241);class i extends r.O7d{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"}}},45810:function(t,e,n){"use strict";let r,i;n.d(e,{w:function(){return S}});var o=n(26241),a=n(69385),s=n(69520);let l=new o.Ltg,u=new o.Pa4,h=new o.Pa4,c=new o.Ltg,f=new o.Ltg,d=new o.Ltg,p=new o.Pa4,m=new o.yGw,g=new o.Zzh,y=new o.Pa4,v=new o.ZzF,_=new o.aLr,b=new o.Ltg;function x(t,e,n){return b.set(0,0,-e,1).applyMatrix4(t.projectionMatrix),b.multiplyScalar(1/b.w),b.x=i/n.width,b.y=i/n.height,b.applyMatrix4(t.projectionMatrixInverse),b.multiplyScalar(1/b.w),Math.abs(Math.max(b.x,b.y))}class H extends o.Kj0{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)u.fromBufferAttribute(e,t),h.fromBufferAttribute(n,t),r[i]=0===i?0:r[i-1],r[i+1]=r[i]+u.distanceTo(h);let i=new o.$TI(r,2,1);return t.setAttribute("instanceDistanceStart",new o.kB5(i,1,0)),t.setAttribute("instanceDistanceEnd",new o.kB5(i,1,1)),this}raycast(t,e){let n,a;let s=this.material.worldUnits,l=t.camera;null!==l||s||console.error('LineSegments2: "Raycaster.camera" needs to be set in order to raycast against LineSegments2 while worldUnits is set to false.');let u=void 0!==t.params.Line2&&t.params.Line2.threshold||0;r=t.ray;let h=this.matrixWorld,b=this.geometry,H=this.material;if(i=H.linewidth+u,null===b.boundingSphere&&b.computeBoundingSphere(),_.copy(b.boundingSphere).applyMatrix4(h),s)n=.5*i;else{let t=Math.max(l.near,_.distanceToPoint(r.origin));n=x(l,t,H.resolution)}
1if(_.radius+=n,!1!==r.intersectsSphere(_)){if(null===b.boundingBox&&b.computeBoundingBox(),v.copy(b.boundingBox).applyMatrix4(h),s)a=.5*i;else{let t=Math.max(l.near,v.distanceToPoint(r.origin));a=x(l,t,H.resolution)}v.expandByScalar(a),!1!==r.intersectsBox(v)&&(s?function(t,e){let n=t.matrixWorld,a=t.geometry,s=a.attributes.instanceStart,l=a.attributes.instanceEnd,u=Math.min(a.instanceCount,s.count);for(let a=0;a<u;a++){g.start.fromBufferAttribute(s,a),g.end.fromBufferAttribute(l,a),g.applyMatrix4(n);let u=new o.Pa4,h=new o.Pa4;r.distanceSqToSegment(g.start,g.end,h,u),h.distanceTo(u)<.5*i&&e.push({point:h,pointOnLine:u,distance:r.origin.distanceTo(h),object:t,face:null,faceIndex:a,uv:null,uv1:null})}}(this,e):function(t,e,n){let a=e.projectionMatrix,s=t.material.resolution,l=t.matrixWorld,u=t.geometry,h=u.attributes.instanceStart,v=u.attributes.instanceEnd,_=Math.min(u.instanceCount,h.count),b=-e.near;r.at(1,d),d.w=1,d.applyMatrix4(e.matrixWorldInverse),d.applyMatrix4(a),d.multiplyScalar(1/d.w),d.x*=s.x/2,d.y*=s.y/2,d.z=0,p.copy(d),m.multiplyMatrices(e.matrixWorldInverse,l);for(let e=0;e<_;e++){if(c.fromBufferAttribute(h,e),f.fromBufferAttribute(v,e),c.w=1,f.w=1,c.applyMatrix4(m),f.applyMatrix4(m),c.z>b&&f.z>b)continue;if(c.z>b){let t=c.z-f.z,e=(c.z-b)/t;c.lerp(f,e)}else if(f.z>b){let t=f.z-c.z,e=(f.z-b)/t;f.lerp(c,e)}c.applyMatrix4(a),f.applyMatrix4(a),c.multiplyScalar(1/c.w),f.multiplyScalar(1/f.w),c.x*=s.x/2,c.y*=s.y/2,f.x*=s.x/2,f.y*=s.y/2,g.start.copy(c),g.start.z=0,g.end.copy(f),g.end.z=0;let u=g.closestPointToPointParameter(p,!0);g.at(u,y);let d=o.M8C.lerp(c.z,f.z,u),_=d>=-1&&d<=1,x=p.distanceTo(y)<.5*i;if(_&&x){g.start.fromBufferAttribute(h,e),g.end.fromBufferAttribute(v,e),g.start.applyMatrix4(l),g.end.applyMatrix4(l);let i=new o.Pa4,a=new o.Pa4;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,l,e))}}onBeforeRender(t){let e=this.material.uniforms;e&&e.resolution&&(t.getViewport(l),this.material.uniforms.resolution.value.set(l.z,l.w))}constructor(t=new a.z,e=new s.Y({color:16777215*Math.random()})){super(t,e),this.isLineSegments2=!0,this.type="LineSegments2"}}var w=n(43067);class S extends H{constructor(t=new w.L,e=new s.Y({color:16777215*Math.random()})){super(t,e),this.isLine2=!0,this.type="Line2"}}},43067:function(t,e,n){"use strict";n.d(e,{L:function(){return i}});var r=n(69385);class i extends r.z{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}constructor(){super(),this.isLineGeometry=!0,this.type="LineGeometry"}}},69520:function(t,e,n){"use strict";n.d(e,{Y:function(){return o}});var r=n(84944),i=n(26241);r.rBU.line={worldUnits:{value:1},linewidth:{value:1},resolution:{value:new i.FM8(1,1)},dashOffset:{value:0},dashScale:{value:1},dashSize:{value:1},gapSize:{value:1}},r.Vj0.line={uniforms:i.rDY.merge([r.rBU.common,r.rBU.fog,r.rBU.line]),vertexShader:"\n #include <common>\n #include <color_pars_vertex>\n #include <fog_pars_vertex>\n #include <logdepthbuf_pars_vertex>\n #include <clipping_planes_pars_vertex>\n\n uniform float linewidth;\n uniform vec2 resolution;\n\n attribute vec3 instanceStart;\n attribute vec3 instanceEnd;\n\n attribute vec3 instanceColorStart;\n attribute vec3 instanceColorEnd;\n\n #ifdef WORLD_UNITS\n\n varying vec4 worldPos;\n varying vec3 worldStart;\n varying vec3 worldEnd;\n\n #ifdef USE_DASH\n\n varying vec2 vUv;\n\n #endif\n\n #else\n\n varying vec2 vUv;\n\n #endif\n\n #ifdef USE_DASH\n\n uniform float dashScale;\n attribute float instanceDistanceStart;\n attribute float instanceDistanceEnd;\n varying float vLineDistance;\n\n #endif\n\n void trimSegment( const in vec4 start, inout vec4 end ) {\n\n // trim end segment so it terminates between the camera plane and the near plane\n\n // conservative estimate of the near plane\n float a = projectionMatrix[ 2 ][ 2 ]; // 3nd entry in 3th column\n float b = projectionMatrix[ 3 ][ 2 ]; // 3nd entry in 4th column\n float nearEstimate = - 0.5 * b / a;\n\n float alpha = ( nearEstimate - start.z ) / ( end.z - start.z );\n\n end.xyz = mix( start.xyz, end.xyz, alpha );\n\n }\n\n void main() {\n\n #ifdef USE_COLOR\n\n vColor.xyz = ( position.y < 0.5 ) ? instanceColorStart : instanceColorEnd;\n\n #endif\n\n #ifdef USE_DASH\n\n vLineDistance = ( position.y < 0.5 ) ? dashScale * instanceDistanceStart : dashScale * instanceDistanceEnd;\n vUv = uv;\n\n #endif\n\n float aspect = resolution.x / resolution.y;\n\n // camera space\n vec4 start = modelViewMatrix * vec4( instanceStart, 1.0 );\n vec4 end = modelViewMatrix * vec4( instanceEnd, 1.0 );\n\n #ifdef WORLD_UNITS\n\n worldStart = start.xyz;\n worldEnd = end.xyz;\n\n #else\n\n vUv = uv;\n\n #endif\n\n // special case for perspective projection, and segments that terminate either in, or behind, the camera plane\n // clearly the gpu firmware has a way of addressing this issue when projecting into ndc space\n // but we need to perform ndc-space calculations in the shader, so we must address this issue directly\n // perhaps there is a more elegant solution -- WestLangley\n\n bool perspective = ( projectionMatrix[ 2 ][ 3 ] == - 1.0 ); // 4th entry in the 3rd column\n\n if ( perspective ) {\n\n if ( start.z < 0.0 && end.z >= 0.0 ) {\n\n trimSegment( start, end );\n\n } else if ( end.z < 0.0 && start.z >= 0.0 ) {\n\n trimSegment( end, start );\n\n }\n\n }\n\n // clip space\n vec4 clipStart = projectionMatrix * start;\n vec4 clipEnd = projectionMatrix * end;\n\n // ndc space\n vec3 ndcStart = clipStart.xyz / clipStart.w;\n vec3 ndcEnd = clipEnd.xyz / clipEnd.w;\n\n // direction\n vec2 dir = ndcEnd.xy - ndcStart.xy;\n\n // account for clip-space aspect ratio\n dir.x *= aspect;\n dir = normalize( dir );
1\n\n #ifdef WORLD_UNITS\n\n vec3 worldDir = normalize( end.xyz - start.xyz );\n vec3 tmpFwd = normalize( mix( start.xyz, end.xyz, 0.5 ) );\n vec3 worldUp = normalize( cross( worldDir, tmpFwd ) );\n vec3 worldFwd = cross( worldDir, worldUp );\n worldPos = position.y < 0.5 ? start: end;\n\n // height offset\n float hw = linewidth * 0.5;\n worldPos.xyz += position.x < 0.0 ? hw * worldUp : - hw * worldUp;\n\n // don't extend the line if we're rendering dashes because we\n // won't be rendering the endcaps\n #ifndef USE_DASH\n\n // cap extension\n worldPos.xyz += position.y < 0.5 ? - hw * worldDir : hw * worldDir;\n\n // add width to the box\n worldPos.xyz += worldFwd * hw;\n\n // endcaps\n if ( position.y > 1.0 || position.y < 0.0 ) {\n\n worldPos.xyz -= worldFwd * 2.0 * hw;\n\n }\n\n #endif\n\n // project the worldpos\n vec4 clip = projectionMatrix * worldPos;\n\n // shift the depth of the projected points so the line\n // segments overlap neatly\n vec3 clipPose = ( position.y < 0.5 ) ? ndcStart : ndcEnd;\n clip.z = clipPose.z * clip.w;\n\n #else\n\n vec2 offset = vec2( dir.y, - dir.x );\n // undo aspect ratio adjustment\n dir.x /= aspect;\n offset.x /= aspect;\n\n // sign flip\n if ( position.x < 0.0 ) offset *= - 1.0;\n\n // endcaps\n if ( position.y < 0.0 ) {\n\n offset += - dir;\n\n } else if ( position.y > 1.0 ) {\n\n offset += dir;\n\n }\n\n // adjust for linewidth\n offset *= linewidth;\n\n // adjust for clip-space to screen-space conversion // maybe resolution should be based on viewport ...\n offset /= resolution.y;\n\n // select end\n vec4 clip = ( position.y < 0.5 ) ? clipStart : clipEnd;\n\n // back to clip space\n offset *= clip.w;\n\n clip.xy += offset;\n\n #endif\n\n gl_Position = clip;\n\n vec4 mvPosition = ( position.y < 0.5 ) ? start : end; // this is an approximation\n\n #include <logdepthbuf_vertex>\n #include <clipping_planes_vertex>\n #include <fog_vertex>\n\n }\n ",fragmentShader:"\n uniform vec3 diffuse;\n uniform float opacity;\n uniform float linewidth;\n\n #ifdef USE_DASH\n\n uniform float dashOffset;\n uniform float dashSize;\n uniform float gapSize;\n\n #endif\n\n varying float vLineDistance;\n\n #ifdef WORLD_UNITS\n\n varying vec4 worldPos;\n varying vec3 worldStart;\n varying vec3 worldEnd;\n\n #ifdef USE_DASH\n\n varying vec2 vUv;\n\n #endif\n\n #else\n\n varying vec2 vUv;\n\n #endif\n\n #include <common>\n #include <color_pars_fragment>\n #include <fog_pars_fragment>\n #include <logdepthbuf_pars_fragment>\n #include <clipping_planes_pars_fragment>\n\n vec2 closestLineToLine(vec3 p1, vec3 p2, vec3 p3, vec3 p4) {\n\n float mua;\n float mub;\n\n vec3 p13 = p1 - p3;\n vec3 p43 = p4 - p3;\n\n vec3 p21 = p2 - p1;\n\n float d1343 = dot( p13, p43 );\n float d4321 = dot( p43, p21 );
1\n float d1321 = dot( p13, p21 );\n float d4343 = dot( p43, p43 );\n float d2121 = dot( p21, p21 );\n\n float denom = d2121 * d4343 - d4321 * d4321;\n\n float numer = d1343 * d4321 - d1321 * d4343;\n\n mua = numer / denom;\n mua = clamp( mua, 0.0, 1.0 );\n mub = ( d1343 + d4321 * ( mua ) ) / d4343;\n mub = clamp( mub, 0.0, 1.0 );\n\n return vec2( mua, mub );\n\n }\n\n void main() {\n\n float alpha = opacity;\n vec4 diffuseColor = vec4( diffuse, alpha );\n\n #include <clipping_planes_fragment>\n\n #ifdef USE_DASH\n\n if ( vUv.y < - 1.0 || vUv.y > 1.0 ) discard; // discard endcaps\n\n if ( mod( vLineDistance + dashOffset, dashSize + gapSize ) > dashSize ) discard; // todo - FIX\n\n #endif\n\n #ifdef WORLD_UNITS\n\n // Find the closest points on the view ray and the line segment\n vec3 rayEnd = normalize( worldPos.xyz ) * 1e5;\n vec3 lineDir = worldEnd - worldStart;\n vec2 params = closestLineToLine( worldStart, worldEnd, vec3( 0.0, 0.0, 0.0 ), rayEnd );\n\n vec3 p1 = worldStart + lineDir * params.x;\n vec3 p2 = rayEnd * params.y;\n vec3 delta = p1 - p2;\n float len = length( delta );\n float norm = len / linewidth;\n\n #ifndef USE_DASH\n\n #ifdef USE_ALPHA_TO_COVERAGE\n\n float dnorm = fwidth( norm );\n alpha = 1.0 - smoothstep( 0.5 - dnorm, 0.5 + dnorm, norm );\n\n #else\n\n if ( norm > 0.5 ) {\n\n discard;\n\n }\n\n #endif\n\n #endif\n\n #else\n\n #ifdef USE_ALPHA_TO_COVERAGE\n\n // artifacts appear on some hardware if a derivative is taken within a conditional\n float a = vUv.x;\n float b = ( vUv.y > 0.0 ) ? vUv.y - 1.0 : vUv.y + 1.0;\n float len2 = a * a + b * b;\n float dlen = fwidth( len2 );\n\n if ( abs( vUv.y ) > 1.0 ) {\n\n alpha = 1.0 - smoothstep( 1.0 - dlen, 1.0 + dlen, len2 );\n\n }\n\n #else\n\n if ( abs( vUv.y ) > 1.0 ) {\n\n float a = vUv.x;\n float b = ( vUv.y > 0.0 ) ? vUv.y - 1.0 : vUv.y + 1.0;\n float len2 = a * a + b * b;\n\n if ( len2 > 1.0 ) discard;\n\n }\n\n #endif\n\n #endif\n\n #include <logdepthbuf_fragment>\n #include <color_fragment>\n\n gl_FragColor = vec4( diffuseColor.rgb, alpha );\n\n #include <tonemapping_fragment>\n #include <colorspace_fragment>\n #include <fog_fragment>\n #include <premultiplied_alpha_fragment>\n\n }\n "};class o extends i.jyz{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.worldUnits&&(this.needsUpdate=!0),!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)}constructor(t){super({type:"LineMaterial",uniforms:i.rDY.clone(r.Vj0.line.uniforms),vertexShader:r.Vj0.line.vertexShader,fragmentShader:r.Vj0.line.fragmentShader,clipping:!0}),this.isLineMaterial=!0,this.setValues(t)}}},69385:function(t,e,n){"use strict";n.d(e,{z:function(){return a}});var r=n(26241);let i=new r.ZzF,o=new r.Pa4;
1class a extends r.L5s{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.$TI(e,6,1);return this.setAttribute("instanceStart",new r.kB5(n,3,0)),this.setAttribute("instanceEnd",new r.kB5(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.$TI(e,6,1);return this.setAttribute("instanceColorStart",new r.kB5(n,3,0)),this.setAttribute("instanceColorEnd",new r.kB5(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.Uk6(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.ZzF);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.aLr),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(){}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.a$l([-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.a$l([-1,2,1,2,-1,1,1,1,-1,-1,1,-1,-1,-2,1,-2],2))}}},56058:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(26241);class i{generateShapes(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"ltr",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,l=[],u=0,h=0;("rtl"==i||"tb"==i)&&o.reverse();for(let t=0;t<o.length;t++){let e=o[t];if("\n"===e)u=0,h-=s;else{let t=function(t,e,n,i,o){let a,s,l,u,h,c,f,d;let p=o.glyphs[t]||o.glyphs["?"];if(!p){console.error('THREE.Font: character "'+t+'" does not exists in font family '+o.familyName+".");return}let m=new r.T_1;if(p.o){let t=p._cachedOutline||(p._cachedOutline=p.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":l=t[r++]*e+n,u=t[r++]*e+i,h=t[r++]*e+n,c=t[r++]*e+i,m.quadraticCurveTo(h,c,l,u);break;case"b":l=t[r++]*e+n,u=t[r++]*e+i,h=t[r++]*e+n,c=t[r++]*e+i,f=t[r++]*e+n,d=t[r++]*e+i,m.bezierCurveTo(h,c,f,d,l,u)}}return{offsetX:p.ha*e,path:m}}(e,a,u,h,n);"tb"==i?(u=0,h+=n.ascender*a):u+=t.offsetX,l.push(t.path)}}return l}(t,e,this.data,n);for(let t=0,e=o.length;t<e;t++)i.push(...o[t].toShapes());return i}constructor(t){this.isFont=!0,this.type="Font",this.data=t}}},45474:function(t,e,n){"use strict";n.d(e,{j:function(){return i}});var r=n(26241);class i extends r.Tme{copy(t,e){return super.copy(t,e),this.element=t.element.cloneNode(!0),this.center=t.center,this}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.FM8(.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()})})}}new r.Pa4,new r.yGw,new r.yGw,new r.Pa4,new r.Pa4},38393:function(t,e,n){"use strict";n.r(e),n.d(e,{computeMikkTSpaceTangents:function(){return i},computeMorphedAttributes:function(){return p},deepCloneAttribute:function(){return s},deinterleaveAttribute:function(){return u},deinterleaveGeometry:function(){return h},estimateBytesUsed:function(){return c},interleaveAttributes:function(){return l},mergeAttributes:function(){return a},mergeGeometries:function(){return o},mergeGroups:function(){return m},mergeVertices:function(){return f},toCreasedNormals:function(){return g},toTrianglesDrawMode:function(){return d}});var r=n(26241);function i(t,e){let n=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(!e||!e.isReady)throw Error("BufferGeometryUtils: Initialized MikkTSpace library required.");
1if(!t.hasAttribute("position")||!t.hasAttribute("normal")||!t.hasAttribute("uv"))throw Error('BufferGeometryUtils: Tangents require "position", "normal", and "uv" attributes.');function i(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 o=t.index?t.toNonIndexed():t,a=e.generateTangents(i(o.attributes.position),i(o.attributes.normal),i(o.attributes.uv));if(n)for(let t=3;t<a.length;t+=4)a[t]*=-1;return o.setAttribute("tangent",new r.TlE(a,4)),t!==o&&t.copy(o),t}function o(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=null!==t[0].index,i=new Set(Object.keys(t[0].attributes)),o=new Set(Object.keys(t[0].morphAttributes)),s={},l={},u=t[0].morphTargetsRelative,h=new r.u9r,c=0;for(let r=0;r<t.length;++r){let a=t[r],f=0;if(n!==(null!==a.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 a.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===s[t]&&(s[t]=[]),s[t].push(a.attributes[t]),f++}if(f!==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(u!==a.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 a.morphAttributes){if(!o.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(a.morphAttributes[t])}if(e){let t;if(n)t=a.index.count;else{if(void 0===a.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=a.attributes.position.count}h.addGroup(c,t,r),c+=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 s){let e=a(s[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;let 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),l=new r.TlE(s,n,i),u=0;for(let e=0;e<t.length;++e){let r=t[e];if(r.isInterleavedBufferAttribute){let t=u/n;for(let e=0,i=r.count;e<i;e++)for(let i=0;i<n;i++){let n=r.getComponent(e,i);
1l.setComponent(e+t,i,n)}}else s.set(r.array,u);u+=r.count*n}return void 0!==o&&(l.gpuType=o),l}function s(t){return t.isInstancedInterleavedBufferAttribute||t.isInterleavedBufferAttribute?u(t):t.isInstancedBufferAttribute?new r.lb7().copy(t):new r.TlE().copy(t)}function l(t){let e;let 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.vpT(new e(n),i),a=0,s=[],l=["getX","getY","getZ","getW"],u=["setX","setY","setZ","setW"];for(let e=0,n=t.length;e<n;e++){let n=t[e],i=n.itemSize,h=n.count,c=new r.kB5(o,i,a,n.normalized);s.push(c),a+=i;for(let t=0;t<h;t++)for(let e=0;e<i;e++)c[u[e]](t,n[l[e]](t))}return s}function u(t){let e;let n=t.data.array.constructor,i=t.count,o=t.itemSize,a=t.normalized,s=new n(i*o);e=t.isInstancedInterleavedBufferAttribute?new r.lb7(s,o,a,t.meshPerAttribute):new r.TlE(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 h(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,u(n)),e[t]=r.get(n))}for(let t in n){let e=n[t];e.isInterleavedBufferAttribute&&(r.has(e)||r.set(e,u(e)),n[t]=r.get(e))}}function c(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){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]: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),l={},u={},h=[],c=["getX","getY","getZ","getW"],f=["setX","setY","setZ","setW"];for(let e=0,n=s.length;e<n;e++){let n=s[e],r=t.attributes[n];l[n]=new r.constructor(new r.array.constructor(r.count*r.itemSize),r.itemSize,r.normalized);let i=t.morphAttributes[n];i&&(u[n]||(u[n]=[]),i.forEach((t,e)=>{let r=new t.array.constructor(t.count*t.itemSize);u[n][e]=new t.constructor(r,t.itemSize,t.normalized)}))}let d=.5*e,p=Math.pow(10,Math.log10(1/e)),m=d*p;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+="".concat(~~(r[c[t]](i)*p+m),",")}if(o in n)h.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],h=r.itemSize,d=l[n],p=u[n];for(let t=0;t<h;t++){let e=c[t],n=f[t];if(d[n](a,r[e](i)),o)for(let t=0,r=o.length;t<r;t++)p[t][n](a,o[t][e](i))}}n[o]=a,h.push(a),a++}}let g=t.clone();for(let e in t.attributes){let t=l[e];if(g.setAttribute(e,new t.constructor(t.array.slice(0,a*t.itemSize),t.itemSize,t.normalized)),e in u)for(let t=0;t<u[e].length;t++){let n=u[e][t];g.morphAttributes[e][t]=new n.constructor(n.array.slice(0,a*n.itemSize),n.itemSize,n.normalized)}}return g.setIndex(h),g}function d(t,e){if(e===r.WwZ)return console.warn("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Geometry already defined as triangles."),t;if(e!==r.z$h&&e!==r.UlW)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.z$h)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 p(t){let e,n,i,o,a,s,l,u,h,c;let f=new r.Pa4,d=new r.Pa4,p=new r.Pa4,m=new r.Pa4,g=new r.Pa4,y=new r.Pa4,v=ne
1w r.Pa4,_=new r.Pa4,b=new r.Pa4;function x(t,e,n,r,i,o,a,s){f.fromBufferAttribute(e,i),d.fromBufferAttribute(e,o),p.fromBufferAttribute(e,a);let l=t.morphTargetInfluences;if(n&&l){v.set(0,0,0),_.set(0,0,0),b.set(0,0,0);for(let t=0,e=n.length;t<e;t++){let e=l[t],s=n[t];0!==e&&(m.fromBufferAttribute(s,i),g.fromBufferAttribute(s,o),y.fromBufferAttribute(s,a),r?(v.addScaledVector(m,e),_.addScaledVector(g,e),b.addScaledVector(y,e)):(v.addScaledVector(m.sub(f),e),_.addScaledVector(g.sub(d),e),b.addScaledVector(y.sub(p),e)))}f.add(v),d.add(_),p.add(b)}t.isSkinnedMesh&&(t.applyBoneTransform(i,f),t.applyBoneTransform(o,d),t.applyBoneTransform(a,p)),s[3*i+0]=f.x,s[3*i+1]=f.y,s[3*i+2]=f.z,s[3*o+0]=d.x,s[3*o+1]=d.y,s[3*o+2]=d.z,s[3*a+0]=p.x,s[3*a+1]=p.y,s[3*a+2]=p.z}let H=t.geometry,w=t.material,S=H.index,M=H.attributes.position,E=H.morphAttributes.position,A=H.morphTargetsRelative,P=H.attributes.normal,T=H.morphAttributes.position,O=H.groups,R=H.drawRange,j=new Float32Array(M.count*M.itemSize),k=new Float32Array(P.count*P.itemSize);if(null!==S){if(Array.isArray(w))for(o=0,s=O.length;o<s;o++)for(h=Math.max((u=O[o]).start,R.start),c=Math.min(u.start+u.count,R.start+R.count),a=h,l=c;a<l;a+=3)x(t,M,E,A,e=S.getX(a),n=S.getX(a+1),i=S.getX(a+2),j),x(t,P,T,A,e,n,i,k);else for(h=Math.max(0,R.start),c=Math.min(S.count,R.start+R.count),o=h,s=c;o<s;o+=3)x(t,M,E,A,e=S.getX(o),n=S.getX(o+1),i=S.getX(o+2),j),x(t,P,T,A,e,n,i,k)}else if(Array.isArray(w))for(o=0,s=O.length;o<s;o++)for(h=Math.max((u=O[o]).start,R.start),c=Math.min(u.start+u.count,R.start+R.count),a=h,l=c;a<l;a+=3)x(t,M,E,A,e=a,n=a+1,i=a+2,j),x(t,P,T,A,e,n,i,k);else for(h=Math.max(0,R.start),c=Math.min(M.count,R.start+R.count),o=h,s=c;o<s;o+=3)x(t,M,E,A,e=o,n=o+1,i=o+2,j),x(t,P,T,A,e,n,i,k);return{positionAttribute:M,normalAttribute:P,morphedPositionAttribute:new r.a$l(j,3),morphedNormalAttribute:new r.a$l(k,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){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Math.PI/3,n=Math.cos(e),i=(1+1e-10)*100,o=[new r.Pa4,new r.Pa4,new r.Pa4],a=new r.Pa4,s=new r.Pa4,l=new r.Pa4,u=new r.Pa4;function h(t){let e=~~(t.x*i),n=~~(t.y*i),r=~~(t.z*i);return"".concat(e,",").concat(n,",").concat(r)}let c=t.index?t.toNonIndexed():t,f=c.attributes.position,d={};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),l=o[2].fromBufferAttribute(f,e+2);a.subVectors(l,i),s.subVectors(n,i);let u=new r.Pa4().crossVectors(a,s).normalize();for(let t=0;t<3;t++){let e=h(o[t]);e in d||(d[e]=[]),d[e].push(u)}}let p=new Float32Array(3*f.count),m=new r.TlE(p,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),c=o[2].fromBufferAttribute(f,e+2);a.subVectors(c,i),s.subVectors(r,i),l.crossVectors(a,s).normalize();for(let t=0;t<3;t++){let r=d[h(o[t])];u.set(0,0,0);for(let t=0,e=r.length;t<e;t++){let e=r[t];l.dot(e)>n&&u.add(e)}u.normalize(),m.setXYZ(e+t,u.x,u.y,u.z)}}return c.setAttribute("normal",m),c}},80200:function(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,{Z:function(){return u}});var i,o,a,s=/^\s+/,l=/\s+$/;function u(t,e){if(e=e||{},(t=t||"")instanceof u)return t;if(!(this instanceof u))return new u(t,e);var n,i,o,a,h,c,f,d,p,m,g,y,v,_,b,x,H,w,S,M,A=(i={r:0,g:0,b:0},o=1,a=null,h=null,c=null,f=!1,d=!1,"string"==typeof(n=t)&&(n=function(t){t=t.replace(s,"").replace(l,"").toLowerCase();var e,n=!1;if(E[t])t=E[t],n=!0;else if("transparent"==t)return{r:0,g:0,b:0,a:0,format:"name"};return(e=C.rgb.exec(t))?{r:e[1],g:e[2],b:e[3]}:(e=C.rgba.exec(t))?{r:e[1],g:e[2],b:e[3],a:e[4]}:(e=C.hsl.exec(t))?{h:e[1],s:e[2],l:e[3]}:(e=C.hsla.exec(t))?{h:e[1],s:e[2],l:e[3],a:e[4]}:(e=C.hsv.exec(t))?{h:e[1],s:e[2],v:e[3]}:(e=C.hsva.exec(t))?{h:e[1],s:e[2],v:e[3],a:e[4]}:(e=C.hex8.exec(t))?{r:R(e[1]),g:R(e[2]),b:R(e[3]),a:R(e[4])/255,format:n?"name":"hex8"}:(e=C.hex6.exec(t))?{r:R(e[1]),g:R(e[2]),b:R(e[3]),format:n?"name":"hex"}:(e=C.hex4.exec(t))?{r:R(e[1]+""+e[1]),g:R(e[2]+""+e[2]),b:R(e[3]+""+e[3]),a:R(e[4]+""+e[4])/255,format:n?"name":"hex8"}:!!(e=C.hex3.exec(t))&&{r:R(e[1]+""+e[1]),g:R(e[2]+""+e[2]),b:R(e[3]+""+e[3]),format:n?"name":"hex"}}(n)),"object"==r(n)&&(I(n.r)&&I(n.g)&&I(n.b)?(p=n.r,m=n.g,g=n.b,i={r:255*T(p,255),g:255*T(m,255),b:255*T(g,255)},f=!0,d="%"===String(n.r).substr(-1)?"prgb":"rgb"):I(n.h)&&I(n.s)&&I(n.v)?(a=k(n.s),h=k(n.v),y=n.h,v=a,_=h,y=6*T(y,360),v=T(v,100),_=T(_,100),b=Math.floor(y),x=y-b,H=_*(1-v),w=_*(1-x*v),S=_*(1-(1-x)*v),i={r:255*[_,w,H,H,S,_][M=b%6],g:255*[S,_,_,w,H,H][M],b:255*[H,H,S,_,_,w][M]},f=!0,d="hsv"):I(n.h)&&I(n.s)&&I(n.l)&&(a=k(n.s),c=k(n.l),i=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=T(t,360),e=T(e,100),n=T(n,100),0===e)r=i=o=n;else{var s=n<.5?n*(1+e):n+e-n*e,l=2*n-s;r=a(l,s,t+1/3),i=a(l,s,t),o=a(l,s,t-1/3)}return{r:255*r,g:255*i,b:255*o}}(n.h,a,c),f=!0,d="hsl"),n.hasOwnProperty("a")&&(o=n.a)),o=P(o),{ok:f,format:n.format||d,r:Math.min(255,Math.max(i.r,0)),g:Math.min(255,Math.max(i.g,0)),b:Math.min(255,Math.max(i.b,0)),a:o});this._originalInput=t,this._r=A.r,this._g=A.g,this._b=A.b,this._a=A.a,this._roundA=Math.round(100*this._a)/100,this._format=e.format||A.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=A.ok}function h(t,e,n){var r,i,o=Math.max(t=T(t,255),e=T(e,255),n=T(n,255)),a=Math.min(t,e,n),s=(o+a)/2;if(o==a)r=i=0;else{var l=o-a;switch(i=s>.5?l/(2-o-a):l/(o+a),o){case t:r=(e-n)/l+(e<n?6:0);break;case e:r=(n-t)/l+2;break;case n:r=(t-e)/l+4}r/=6}return{h:r,s:i,l:s}}function c(t,e,n){var r,i,o=Math.max(t=T(t,255),e=T(e,255),n=T(n,255)),a=Math.min(t,e,n),s=o-a;if(i=0===o?0:s/o,o==a)r=0;else{switch(o){case t:r=(e-n)/s+(e<n?6:0);break;case e:r=(n-t)/s+2;break;case n:r=(t-e)/s+4}r/=6}return{h:r,s:i,v:o}}function f(t,e,n,r){var i=[j(Math.round(t).toString(16)),j(Math.round(e).toString(16)),j(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 d(t,e,n,r){return[j(z(r)),j(Math.round(t).toString(16)),j(Math.round(e).toString(16)),j(Math.round(n).toString(16))].join("")}function p(t,e){e=0===e?0:e||10;var n=u(t).toHsl();return n.s-=e/100,n.s=O(n.s),u(n)}function m(t,e){e=0===e?0:e||10;var n=u(t).toHsl();return n.s+=e/100,n.s=O(n.s),u(n)}function g(t){return u(t).desaturate(100)}function y(t,e){e=0===e?0:e||10;var n=u(t).toHsl();return n.l+=e/100,n.l=O(n.l),u(n)}function v(t,e){e=0===e?0:e||10;var n=u(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)))),u(n)}function _(t,e){e=0===e?0:e||10;var n=u(t).toHsl();return n.l-=e/100,n.l=O(n.l),u(n)}function b(t,e){var n=u(t).toHsl(),r=(n.h+e)%360;return n.h=r<0?360+r:r,u(n)}function x(t){var e=u(t).toHsl();return e.h=(e.h+180)%360,u(e)}function H(t,e){if(isNaN(e)||e<=0)throw Error("Argument to polyad must be a positive number");for(var n=u(t).toHsl(),r=[u(t)],i=360/e,o=1;o<e;o++)r.push(u({h:(n.h+o*i)%360,s:n.s,l:n.l}));return r}function w(t){var e=u(t).toHsl(),n=e.h;return[u(t),u({h:(n+72)%360,s:e.s,l:e.l}),u({h:(n+216)%360,s:e.s,l:e.l})]}function S(t,e,n){e=e||6,n=n||30;var r=u(t).toHsl(),i=360/n,o=[u(t)];for(r.h=(r.h-(i*e>>1)+720)%360;--e;)r.h=(r.h+i)%360,o.push(u(r));return o}function M(t,e){e=e||6;for(var n=u(t).toHsv(),r=n.h,i=n.s,o=n.v,a=[],s=1/e;e--;)a.push(u({h:r,s:i,v:o})),o=(o+s)%1;return a}u.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,.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*((e=r.g/255)<=.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=c(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=c(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=h(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=h(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 f(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){var e,n,r,i,o;return e=this._r,n=this._g,r=this._b,i=this._a,o=[j(Math.round(e).toString(16)),j(Math.round(n).toString(16)),j(Math.round(r).toString(16)),j(z(i))],t&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.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*T(this._r,255))+"%",g:Math.round(100*T(this._g,255))+"%",b:Math.round(100*T(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*T(this._r,255))+"%, "+Math.round(100*T(this._g,255))+"%, "+Math.round(100*T(this._b,255))+"%)":"rgba("+Math.round(100*T(this._r,255))+"%, "+Math.round(100*T(this._g,255))+"%, "+Math.round(100*T(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(A[f(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e="#"+d(this._r,this._g,this._b,this._a),n=e,r=this._gradientType?"GradientType = 1, ":"";if(t){var i=u(t);n="#"+d(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 u(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(y,arguments)},brighten:function(){return this._applyModification(v,arguments)},darken:function(){return this._applyModification(_,arguments)},desaturate:function(){return this._applyModification(p,arguments)},saturate:function(){return this._applyModification(m,arguments)},greyscale:function(){return this._applyModification(g,arguments)},spin:function(){return this._applyModification(b,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(S,arguments)},complement:function(){return this._applyCombination(x,arguments)},monochromatic:function(){return this._applyCombination(M,arguments)},splitcomplement:function(){return this._applyCombination(w,arguments)},triad:function(){return this._applyCombination(H,[3])},tetrad:function(){return this._applyCombination(H,[4])}},u.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 u(t,e)},u.equals=function(t,e){return!!t&&!!e&&u(t).toRgbString()==u(e).toRgbString()},u.random=function(){return u.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},u.mix=function(t,e,n){n=0===n?0:n||50;var r=u(t).toRgb(),i=u(e).toRgb(),o=n/100;return u({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})},u.readability=function(t,e){var n=u(t),r=u(e);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)},u.isReadable=function(t,e,n){var r,i,o,a,s,l=u.readability(t,e);switch(s=!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"),a={level:i,size:o}).level+a.size){case"AAsmall":case"AAAlarge":s=l>=4.5;break;case"AAlarge":s=l>=3;break;case"AAAsmall":s=l>=7}return s},u.mostReadable=function(t,e,n){var r,i,o,a,s=null,l=0;i=(n=n||{}).includeFallbackColors,o=n.level,a=n.size;
vendor: 1,583 bytes, line 1
1for(var h=0;h<e.length;h++)(r=u.readability(t,e[h]))>l&&(l=r,s=u(e[h]));return u.isReadable(t,s,{level:o,size:a})||!i?s:(n.includeFallbackColors=!1,u.mostReadable(t,["#fff","#000"],n))};var E=u.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
10",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"},A=u.hexNames=function(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e}(E);function P(t){return(isNaN(t=parseFloat(t))||t<0||t>1)&&(t=1),t}function T(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 O(t){return Math.min(1,Math.max(0,t))}function R(t){return parseInt(t,16)}function j(t){return 1==t.length?"0"+t:""+t}function k(t){return t<=1&&(t=100*t+"%"),t}function z(t){return Math.round(255*parseFloat(t)).toString(16)}var C=(o="[\\s|\\(]+("+(i="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+i+")[,|\\s]+("+i+")\\s*\\)?",a="[\\s|\\(]+("+i+")[,|\\s]+("+i+")[,|\\s]+("+i+")[,|\\s]+("+i+")\\s*\\)?",{CSS_UNIT:new RegExp(i),rgb:RegExp("rgb"+o),rgba:RegExp("rgba"+a),hsl:RegExp("hsl"+o),hsla:RegExp("hsla"+a),hsv:RegExp("hsv"+o),hsva:RegExp("hsva"
1+a),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 I(t){return!!C.CSS_UNIT.exec(t)}}}]);
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.