@deck.gl/google-maps
Advanced tools
Comparing version 8.10.0-alpha.4 to 8.10.0-alpha.5
@@ -7,4 +7,4 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
else root['deck'] = factory();})(globalThis, function () { | ||
"use strict";var __exports__=(()=>{var fe=Object.create;var J=Object.defineProperty;var he=Object.getOwnPropertyDescriptor;var le=Object.getOwnPropertyNames;var ve=Object.getPrototypeOf,pe=Object.prototype.hasOwnProperty;var Er=(r,t)=>()=>(t||r((t={exports:{}}).exports,t),t.exports),ue=(r,t)=>{for(var a in t)J(r,a,{get:t[a],enumerable:!0})},H=(r,t,a,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let e of le(t))!pe.call(r,e)&&e!==a&&J(r,e,{get:()=>t[e],enumerable:!(n=he(t,e))||n.enumerable});return r},Y=(r,t,a)=>(H(r,t,"default"),a&&H(a,t,"default")),rr=(r,t,a)=>(a=r!=null?fe(ve(r)):{},H(t||!r||!r.__esModule?J(a,"default",{value:r,enumerable:!0}):a,r)),xe=r=>H(J({},"__esModule",{value:!0}),r);var er=Er((He,_r)=>{_r.exports=globalThis.deck});var Pr=Er((st,wr)=>{wr.exports=globalThis.luma});var Q={};ue(Q,{GoogleMapsOverlay:()=>oe});var V={},Rr=rr(er());Y(V,rr(er()));if(!Rr.Layer)throw new Error("@deck.gl/core is not found");Y(Q,V);function lr(r,t){if(r==null)return{};var a={},n=Object.keys(r),e,i;for(i=0;i<n.length;i++)e=n[i],!(t.indexOf(e)>=0)&&(a[e]=r[e]);return a}function vr(r,t){if(r==null)return{};var a=lr(r,t),n,e;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);for(e=0;e<i.length;e++)n=i[e],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(r,n)&&(a[n]=r[n])}return a}function N(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function Lr(r,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}function b(r,t,a){return t&&Lr(r.prototype,t),a&&Lr(r,a),r}function I(r,t,a){return t in r?Object.defineProperty(r,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[t]=a,r}var Z=rr(Pr());var ne=rr(er());function X(r,t){return X=Object.setPrototypeOf||function(n,e){return n.__proto__=e,n},X(r,t)}function j(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),t&&X(r,t)}function F(r){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?F=function(a){return typeof a}:F=function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},F(r)}function pr(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function q(r,t){if(t&&(F(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pr(r)}function R(r){return R=Object.setPrototypeOf?Object.getPrototypeOf:function(a){return a.__proto__||Object.getPrototypeOf(a)},R(r)}function tr(r,t){if(!r)throw new Error("math.gl assertion ".concat(t))}var gt=1/Math.PI*180,Mt=1/180*Math.PI,w={EPSILON:1e-12,debug:!1,precision:4,printTypes:!1,printDegrees:!1,printRowMajor:!0};function Ar(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=t.precision,n=a===void 0?w.precision:a;return r=me(r),"".concat(parseFloat(r.toPrecision(n)))}function $(r){return Array.isArray(r)||ArrayBuffer.isView(r)&&!(r instanceof DataView)}function ur(r,t,a){var n=w.EPSILON;a&&(w.EPSILON=a);try{if(r===t)return!0;if($(r)&&$(t)){if(r.length!==t.length)return!1;for(var e=0;e<r.length;++e)if(!ur(r[e],t[e]))return!1;return!0}return r&&r.equals?r.equals(t):t&&t.equals?t.equals(r):typeof r=="number"&&typeof t=="number"?Math.abs(r-t)<=w.EPSILON*Math.max(1,Math.abs(r),Math.abs(t)):!1}finally{w.EPSILON=n}}function me(r){return Math.round(r/w.EPSILON)*w.EPSILON}function ye(r){var t=ge();return function(){var n=R(r),e;if(t){var i=R(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return q(this,e)}}function ge(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Me(r){function t(){var a=Reflect.construct(r,Array.from(arguments));return Object.setPrototypeOf(a,Object.getPrototypeOf(this)),a}return t.prototype=Object.create(r.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(t,r):t.__proto__=r,t}var nr=function(r){j(a,r);var t=ye(a);function a(){return N(this,a),t.apply(this,arguments)}return b(a,[{key:"clone",value:function(){return new this.constructor().copy(this)}},{key:"fromArray",value:function(e){for(var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,s=0;s<this.ELEMENTS;++s)this[s]=e[s+i];return this.check()}},{key:"toArray",value:function(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,s=0;s<this.ELEMENTS;++s)e[i+s]=this[s];return e}},{key:"from",value:function(e){return Array.isArray(e)?this.copy(e):this.fromObject(e)}},{key:"to",value:function(e){return e===this?this:$(e)?this.toArray(e):this.toObject(e)}},{key:"toTarget",value:function(e){return e?this.to(e):this}},{key:"toFloat32Array",value:function(){return new Float32Array(this)}},{key:"toString",value:function(){return this.formatString(w)}},{key:"formatString",value:function(e){for(var i="",s=0;s<this.ELEMENTS;++s)i+=(s>0?", ":"")+Ar(this[s],e);return"".concat(e.printTypes?this.constructor.name:"","[").concat(i,"]")}},{key:"equals",value:function(e){if(!e||this.length!==e.length)return!1;for(var i=0;i<this.ELEMENTS;++i)if(!ur(this[i],e[i]))return!1;return!0}},{key:"exactEquals",value:function(e){if(!e||this.length!==e.length)return!1;for(var i=0;i<this.ELEMENTS;++i)if(this[i]!==e[i])return!1;return!0}},{key:"negate",value:function(){for(var e=0;e<this.ELEMENTS;++e)this[e]=-this[e];return this.check()}},{key:"lerp",value:function(e,i,s){if(s===void 0)return this.lerp(this,e,i);for(var c=0;c<this.ELEMENTS;++c){var o=e[c];this[c]=o+s*(i[c]-o)}return this.check()}},{key:"min",value:function(e){for(var i=0;i<this.ELEMENTS;++i)this[i]=Math.min(e[i],this[i]);return this.check()}},{key:"max",value:function(e){for(var i=0;i<this.ELEMENTS;++i)this[i]=Math.max(e[i],this[i]);return this.check()}},{key:"clamp",value:function(e,i){for(var s=0;s<this.ELEMENTS;++s)this[s]=Math.min(Math.max(this[s],e[s]),i[s]);return this.check()}},{key:"add",value:function(){for(var e=arguments.length,i=new Array(e),s=0;s<e;s++)i[s]=arguments[s];for(var c=0,o=i;c<o.length;c++)for(var h=o[c],f=0;f<this.ELEMENTS;++f)this[f]+=h[f];return this.check()}},{key:"subtract",value:function(){for(var e=arguments.length,i=new Array(e),s=0;s<e;s++)i[s]=arguments[s];for(var c=0,o=i;c<o.length;c++)for(var h=o[c],f=0;f<this.ELEMENTS;++f)this[f]-=h[f];return this.check()}},{key:"scale",value:function(e){if(typeof e=="number")for(var i=0;i<this.ELEMENTS;++i)this[i]*=e;else for(var s=0;s<this.ELEMENTS&&s<e.length;++s)this[s]*=e[s];return this.check()}},{key:"multiplyByScalar",value:function(e){for(var i=0;i<this.ELEMENTS;++i)this[i]*=e;return this.check()}},{key:"check",value:function(){if(w.debug&&!this.validate())throw new Error("math.gl: ".concat(this.constructor.name," some fields set to invalid numbers'"));return this}},{key:"validate",value:function(){for(var e=this.length===this.ELEMENTS,i=0;i<this.ELEMENTS;++i)e=e&&Number.isFinite(this[i]);return e}},{key:"sub",value:function(e){return this.subtract(e)}},{key:"setScalar",value:function(e){for(var i=0;i<this.ELEMENTS;++i)this[i]=e;return this.check()}},{key:"addScalar",value:function(e){for(var i=0;i<this.ELEMENTS;++i)this[i]+=e;return this.check()}},{key:"subScalar",value:function(e){return this.addScalar(-e)}},{key:"multiplyScalar",value:function(e){for(var i=0;i<this.ELEMENTS;++i)this[i]*=e;return this.check()}},{key:"divideScalar",value:function(e){return this.multiplyByScalar(1/e)}},{key:"clampScalar",value:function(e,i){for(var s=0;s<this.ELEMENTS;++s)this[s]=Math.min(Math.max(this[s],e),i);return this.check()}},{key:"elements",get:function(){return this}}]),a}(Me(Array));function de(r,t){if(r.length!==t)return!1;for(var a=0;a<r.length;++a)if(!Number.isFinite(r[a]))return!1;return!0}function C(r){if(!Number.isFinite(r))throw new Error("Invalid number ".concat(r));return r}function ar(r,t){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";if(w.debug&&!de(r,t))throw new Error("math.gl: ".concat(a," some fields set to invalid numbers'"));return r}function ke(r){var t=Oe();return function(){var n=R(r),e;if(t){var i=R(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return q(this,e)}}function Oe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var Sr=function(r){j(a,r);var t=ke(a);function a(){return N(this,a),t.apply(this,arguments)}return b(a,[{key:"x",get:function(){return this[0]},set:function(e){this[0]=C(e)}},{key:"y",get:function(){return this[1]},set:function(e){this[1]=C(e)}},{key:"len",value:function(){return Math.sqrt(this.lengthSquared())}},{key:"magnitude",value:function(){return this.len()}},{key:"lengthSquared",value:function(){for(var e=0,i=0;i<this.ELEMENTS;++i)e+=this[i]*this[i];return e}},{key:"magnitudeSquared",value:function(){return this.lengthSquared()}},{key:"distance",value:function(e){return Math.sqrt(this.distanceSquared(e))}},{key:"distanceSquared",value:function(e){for(var i=0,s=0;s<this.ELEMENTS;++s){var c=this[s]-e[s];i+=c*c}return C(i)}},{key:"dot",value:function(e){for(var i=0,s=0;s<this.ELEMENTS;++s)i+=this[s]*e[s];return C(i)}},{key:"normalize",value:function(){var e=this.magnitude();if(e!==0)for(var i=0;i<this.ELEMENTS;++i)this[i]/=e;return this.check()}},{key:"multiply",value:function(){for(var e=arguments.length,i=new Array(e),s=0;s<e;s++)i[s]=arguments[s];for(var c=0,o=i;c<o.length;c++)for(var h=o[c],f=0;f<this.ELEMENTS;++f)this[f]*=h[f];return this.check()}},{key:"divide",value:function(){for(var e=arguments.length,i=new Array(e),s=0;s<e;s++)i[s]=arguments[s];for(var c=0,o=i;c<o.length;c++)for(var h=o[c],f=0;f<this.ELEMENTS;++f)this[f]/=h[f];return this.check()}},{key:"lengthSq",value:function(){return this.lengthSquared()}},{key:"distanceTo",value:function(e){return this.distance(e)}},{key:"distanceToSquared",value:function(e){return this.distanceSquared(e)}},{key:"getComponent",value:function(e){return tr(e>=0&&e<this.ELEMENTS,"index is out of range"),C(this[e])}},{key:"setComponent",value:function(e,i){return tr(e>=0&&e<this.ELEMENTS,"index is out of range"),this[e]=i,this.check()}},{key:"addVectors",value:function(e,i){return this.copy(e).add(i)}},{key:"subVectors",value:function(e,i){return this.copy(e).subtract(i)}},{key:"multiplyVectors",value:function(e,i){return this.copy(e).multiply(i)}},{key:"addScaledVector",value:function(e,i){return this.add(new this.constructor(e).multiplyScalar(i))}}]),a}(nr);var W=1e-6,D=typeof Float32Array<"u"?Float32Array:Array;var Dt=Math.PI/180;Math.hypot||(Math.hypot=function(){for(var r=0,t=arguments.length;t--;)r+=arguments[t]*arguments[t];return Math.sqrt(r)});function Ee(){var r=new D(2);return D!=Float32Array&&(r[0]=0,r[1]=0),r}function zr(r,t,a){var n=t[0],e=t[1];return r[0]=a[0]*n+a[2]*e,r[1]=a[1]*n+a[3]*e,r}function Nr(r,t,a){var n=t[0],e=t[1];return r[0]=a[0]*n+a[2]*e+a[4],r[1]=a[1]*n+a[3]*e+a[5],r}function br(r,t,a){var n=t[0],e=t[1];return r[0]=a[0]*n+a[3]*e+a[6],r[1]=a[1]*n+a[4]*e+a[7],r}function sr(r,t,a){var n=t[0],e=t[1];return r[0]=a[0]*n+a[4]*e+a[12],r[1]=a[1]*n+a[5]*e+a[13],r}var It=function(){var r=Ee();return function(t,a,n,e,i,s){var c,o;for(a||(a=2),n||(n=0),e?o=Math.min(e*a+n,t.length):o=t.length,c=n;c<o;c+=a)r[0]=t[c],r[1]=t[c+1],i(r,r,s),t[c]=r[0],t[c+1]=r[1];return t}}();function cr(r,t,a){var n=t[0],e=t[1],i=a[3]*n+a[7]*e||1;return r[0]=(a[0]*n+a[4]*e)/i,r[1]=(a[1]*n+a[5]*e)/i,r}function jr(r,t,a){var n=t[0],e=t[1],i=t[2],s=a[3]*n+a[7]*e+a[11]*i||1;return r[0]=(a[0]*n+a[4]*e+a[8]*i)/s,r[1]=(a[1]*n+a[5]*e+a[9]*i)/s,r[2]=(a[2]*n+a[6]*e+a[10]*i)/s,r}function _e(r){var t=Re();return function(){var n=R(r),e;if(t){var i=R(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return q(this,e)}}function Re(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var G=function(r){j(a,r);var t=_e(a);function a(){var n,e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return N(this,a),n=t.call(this,2),$(e)&&arguments.length===1?n.copy(e):(w.debug&&(C(e),C(i)),n[0]=e,n[1]=i),n}return b(a,[{key:"set",value:function(e,i){return this[0]=e,this[1]=i,this.check()}},{key:"copy",value:function(e){return this[0]=e[0],this[1]=e[1],this.check()}},{key:"fromObject",value:function(e){return w.debug&&(C(e.x),C(e.y)),this[0]=e.x,this[1]=e.y,this.check()}},{key:"toObject",value:function(e){return e.x=this[0],e.y=this[1],e}},{key:"ELEMENTS",get:function(){return 2}},{key:"horizontalAngle",value:function(){return Math.atan2(this.y,this.x)}},{key:"verticalAngle",value:function(){return Math.atan2(this.x,this.y)}},{key:"transform",value:function(e){return this.transformAsPoint(e)}},{key:"transformAsPoint",value:function(e){return sr(this,this,e),this.check()}},{key:"transformAsVector",value:function(e){return cr(this,this,e),this.check()}},{key:"transformByMatrix3",value:function(e){return br(this,this,e),this.check()}},{key:"transformByMatrix2x3",value:function(e){return Nr(this,this,e),this.check()}},{key:"transformByMatrix2",value:function(e){return zr(this,this,e),this.check()}}]),a}(Sr);function Le(){var r=new D(3);return D!=Float32Array&&(r[0]=0,r[1]=0,r[2]=0),r}function qr(r,t,a){var n=t[0],e=t[1],i=t[2],s=a[3]*n+a[7]*e+a[11]*i+a[15];return s=s||1,r[0]=(a[0]*n+a[4]*e+a[8]*i+a[12])/s,r[1]=(a[1]*n+a[5]*e+a[9]*i+a[13])/s,r[2]=(a[2]*n+a[6]*e+a[10]*i+a[14])/s,r}var Ht=function(){var r=Le();return function(t,a,n,e,i,s){var c,o;for(a||(a=3),n||(n=0),e?o=Math.min(e*a+n,t.length):o=t.length,c=n;c<o;c+=a)r[0]=t[c],r[1]=t[c+1],r[2]=t[c+2],i(r,r,s),t[c]=r[0],t[c+1]=r[1],t[c+2]=r[2];return t}}();function Pe(r){var t=Ae();return function(){var n=R(r),e;if(t){var i=R(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return q(this,e)}}function Ae(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var Vr=function(r){j(a,r);var t=Pe(a);function a(){return N(this,a),t.apply(this,arguments)}return b(a,[{key:"toString",value:function(){var e="[";if(w.printRowMajor){e+="row-major:";for(var i=0;i<this.RANK;++i)for(var s=0;s<this.RANK;++s)e+=" ".concat(this[s*this.RANK+i])}else{e+="column-major:";for(var c=0;c<this.ELEMENTS;++c)e+=" ".concat(this[c])}return e+="]",e}},{key:"getElementIndex",value:function(e,i){return i*this.RANK+e}},{key:"getElement",value:function(e,i){return this[i*this.RANK+e]}},{key:"setElement",value:function(e,i,s){return this[i*this.RANK+e]=C(s),this}},{key:"getColumn",value:function(e){for(var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Array(this.RANK).fill(-0),s=e*this.RANK,c=0;c<this.RANK;++c)i[c]=this[s+c];return i}},{key:"setColumn",value:function(e,i){for(var s=e*this.RANK,c=0;c<this.RANK;++c)this[s+c]=i[c];return this}}]),a}(nr);function Se(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=1,r[6]=0,r[7]=0,r[8]=0,r[9]=0,r[10]=1,r[11]=0,r[12]=0,r[13]=0,r[14]=0,r[15]=1,r}function Dr(r,t){if(r===t){var a=t[1],n=t[2],e=t[3],i=t[6],s=t[7],c=t[11];r[1]=t[4],r[2]=t[8],r[3]=t[12],r[4]=a,r[6]=t[9],r[7]=t[13],r[8]=n,r[9]=i,r[11]=t[14],r[12]=e,r[13]=s,r[14]=c}else r[0]=t[0],r[1]=t[4],r[2]=t[8],r[3]=t[12],r[4]=t[1],r[5]=t[5],r[6]=t[9],r[7]=t[13],r[8]=t[2],r[9]=t[6],r[10]=t[10],r[11]=t[14],r[12]=t[3],r[13]=t[7],r[14]=t[11],r[15]=t[15];return r}function Ir(r,t){var a=t[0],n=t[1],e=t[2],i=t[3],s=t[4],c=t[5],o=t[6],h=t[7],f=t[8],l=t[9],v=t[10],p=t[11],u=t[12],y=t[13],x=t[14],M=t[15],O=a*c-n*s,m=a*o-e*s,g=a*h-i*s,d=n*o-e*c,k=n*h-i*c,A=e*h-i*o,_=f*y-l*u,S=f*x-v*u,P=f*M-p*u,L=l*x-v*y,T=l*M-p*y,z=v*M-p*x,E=O*z-m*T+g*L+d*P-k*S+A*_;return E?(E=1/E,r[0]=(c*z-o*T+h*L)*E,r[1]=(e*T-n*z-i*L)*E,r[2]=(y*A-x*k+M*d)*E,r[3]=(v*k-l*A-p*d)*E,r[4]=(o*P-s*z-h*S)*E,r[5]=(a*z-e*P+i*S)*E,r[6]=(x*g-u*A-M*m)*E,r[7]=(f*A-v*g+p*m)*E,r[8]=(s*T-c*P+h*_)*E,r[9]=(n*P-a*T-i*_)*E,r[10]=(u*k-y*g+M*O)*E,r[11]=(l*g-f*k-p*O)*E,r[12]=(c*S-s*L-o*_)*E,r[13]=(a*L-n*S+e*_)*E,r[14]=(y*m-u*d-x*O)*E,r[15]=(f*d-l*m+v*O)*E,r):null}function Yr(r){var t=r[0],a=r[1],n=r[2],e=r[3],i=r[4],s=r[5],c=r[6],o=r[7],h=r[8],f=r[9],l=r[10],v=r[11],p=r[12],u=r[13],y=r[14],x=r[15],M=t*s-a*i,O=t*c-n*i,m=t*o-e*i,g=a*c-n*s,d=a*o-e*s,k=n*o-e*c,A=h*u-f*p,_=h*y-l*p,S=h*x-v*p,P=f*y-l*u,L=f*x-v*u,T=l*x-v*y;return M*T-O*L+m*P+g*S-d*_+k*A}function xr(r,t,a){var n=t[0],e=t[1],i=t[2],s=t[3],c=t[4],o=t[5],h=t[6],f=t[7],l=t[8],v=t[9],p=t[10],u=t[11],y=t[12],x=t[13],M=t[14],O=t[15],m=a[0],g=a[1],d=a[2],k=a[3];return r[0]=m*n+g*c+d*l+k*y,r[1]=m*e+g*o+d*v+k*x,r[2]=m*i+g*h+d*p+k*M,r[3]=m*s+g*f+d*u+k*O,m=a[4],g=a[5],d=a[6],k=a[7],r[4]=m*n+g*c+d*l+k*y,r[5]=m*e+g*o+d*v+k*x,r[6]=m*i+g*h+d*p+k*M,r[7]=m*s+g*f+d*u+k*O,m=a[8],g=a[9],d=a[10],k=a[11],r[8]=m*n+g*c+d*l+k*y,r[9]=m*e+g*o+d*v+k*x,r[10]=m*i+g*h+d*p+k*M,r[11]=m*s+g*f+d*u+k*O,m=a[12],g=a[13],d=a[14],k=a[15],r[12]=m*n+g*c+d*l+k*y,r[13]=m*e+g*o+d*v+k*x,r[14]=m*i+g*h+d*p+k*M,r[15]=m*s+g*f+d*u+k*O,r}function Wr(r,t,a){var n=a[0],e=a[1],i=a[2],s,c,o,h,f,l,v,p,u,y,x,M;return t===r?(r[12]=t[0]*n+t[4]*e+t[8]*i+t[12],r[13]=t[1]*n+t[5]*e+t[9]*i+t[13],r[14]=t[2]*n+t[6]*e+t[10]*i+t[14],r[15]=t[3]*n+t[7]*e+t[11]*i+t[15]):(s=t[0],c=t[1],o=t[2],h=t[3],f=t[4],l=t[5],v=t[6],p=t[7],u=t[8],y=t[9],x=t[10],M=t[11],r[0]=s,r[1]=c,r[2]=o,r[3]=h,r[4]=f,r[5]=l,r[6]=v,r[7]=p,r[8]=u,r[9]=y,r[10]=x,r[11]=M,r[12]=s*n+f*e+u*i+t[12],r[13]=c*n+l*e+y*i+t[13],r[14]=o*n+v*e+x*i+t[14],r[15]=h*n+p*e+M*i+t[15]),r}function Fr(r,t,a){var n=a[0],e=a[1],i=a[2];return r[0]=t[0]*n,r[1]=t[1]*n,r[2]=t[2]*n,r[3]=t[3]*n,r[4]=t[4]*e,r[5]=t[5]*e,r[6]=t[6]*e,r[7]=t[7]*e,r[8]=t[8]*i,r[9]=t[9]*i,r[10]=t[10]*i,r[11]=t[11]*i,r[12]=t[12],r[13]=t[13],r[14]=t[14],r[15]=t[15],r}function Br(r,t,a,n){var e=n[0],i=n[1],s=n[2],c=Math.hypot(e,i,s),o,h,f,l,v,p,u,y,x,M,O,m,g,d,k,A,_,S,P,L,T,z,E,K;return c<W?null:(c=1/c,e*=c,i*=c,s*=c,o=Math.sin(a),h=Math.cos(a),f=1-h,l=t[0],v=t[1],p=t[2],u=t[3],y=t[4],x=t[5],M=t[6],O=t[7],m=t[8],g=t[9],d=t[10],k=t[11],A=e*e*f+h,_=i*e*f+s*o,S=s*e*f-i*o,P=e*i*f-s*o,L=i*i*f+h,T=s*i*f+e*o,z=e*s*f+i*o,E=i*s*f-e*o,K=s*s*f+h,r[0]=l*A+y*_+m*S,r[1]=v*A+x*_+g*S,r[2]=p*A+M*_+d*S,r[3]=u*A+O*_+k*S,r[4]=l*P+y*L+m*T,r[5]=v*P+x*L+g*T,r[6]=p*P+M*L+d*T,r[7]=u*P+O*L+k*T,r[8]=l*z+y*E+m*K,r[9]=v*z+x*E+g*K,r[10]=p*z+M*E+d*K,r[11]=u*z+O*E+k*K,t!==r&&(r[12]=t[12],r[13]=t[13],r[14]=t[14],r[15]=t[15]),r)}function Zr(r,t,a){var n=Math.sin(a),e=Math.cos(a),i=t[4],s=t[5],c=t[6],o=t[7],h=t[8],f=t[9],l=t[10],v=t[11];return t!==r&&(r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[12]=t[12],r[13]=t[13],r[14]=t[14],r[15]=t[15]),r[4]=i*e+h*n,r[5]=s*e+f*n,r[6]=c*e+l*n,r[7]=o*e+v*n,r[8]=h*e-i*n,r[9]=f*e-s*n,r[10]=l*e-c*n,r[11]=v*e-o*n,r}function $r(r,t,a){var n=Math.sin(a),e=Math.cos(a),i=t[0],s=t[1],c=t[2],o=t[3],h=t[8],f=t[9],l=t[10],v=t[11];return t!==r&&(r[4]=t[4],r[5]=t[5],r[6]=t[6],r[7]=t[7],r[12]=t[12],r[13]=t[13],r[14]=t[14],r[15]=t[15]),r[0]=i*e-h*n,r[1]=s*e-f*n,r[2]=c*e-l*n,r[3]=o*e-v*n,r[8]=i*n+h*e,r[9]=s*n+f*e,r[10]=c*n+l*e,r[11]=o*n+v*e,r}function Kr(r,t,a){var n=Math.sin(a),e=Math.cos(a),i=t[0],s=t[1],c=t[2],o=t[3],h=t[4],f=t[5],l=t[6],v=t[7];return t!==r&&(r[8]=t[8],r[9]=t[9],r[10]=t[10],r[11]=t[11],r[12]=t[12],r[13]=t[13],r[14]=t[14],r[15]=t[15]),r[0]=i*e+h*n,r[1]=s*e+f*n,r[2]=c*e+l*n,r[3]=o*e+v*n,r[4]=h*e-i*n,r[5]=f*e-s*n,r[6]=l*e-c*n,r[7]=v*e-o*n,r}function Xr(r,t){var a=t[0],n=t[1],e=t[2],i=t[3],s=a+a,c=n+n,o=e+e,h=a*s,f=n*s,l=n*c,v=e*s,p=e*c,u=e*o,y=i*s,x=i*c,M=i*o;return r[0]=1-l-u,r[1]=f+M,r[2]=v-x,r[3]=0,r[4]=f-M,r[5]=1-h-u,r[6]=p+y,r[7]=0,r[8]=v+x,r[9]=p-y,r[10]=1-h-l,r[11]=0,r[12]=0,r[13]=0,r[14]=0,r[15]=1,r}function Gr(r,t,a,n,e,i,s){var c=1/(a-t),o=1/(e-n),h=1/(i-s);return r[0]=i*2*c,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=i*2*o,r[6]=0,r[7]=0,r[8]=(a+t)*c,r[9]=(e+n)*o,r[10]=(s+i)*h,r[11]=-1,r[12]=0,r[13]=0,r[14]=s*i*2*h,r[15]=0,r}function Te(r,t,a,n,e){var i=1/Math.tan(t/2),s;return r[0]=i/a,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=i,r[6]=0,r[7]=0,r[8]=0,r[9]=0,r[11]=-1,r[12]=0,r[13]=0,r[15]=0,e!=null&&e!==1/0?(s=1/(n-e),r[10]=(e+n)*s,r[14]=2*e*n*s):(r[10]=-1,r[14]=-2*n),r}var Ur=Te;function ze(r,t,a,n,e,i,s){var c=1/(t-a),o=1/(n-e),h=1/(i-s);return r[0]=-2*c,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=-2*o,r[6]=0,r[7]=0,r[8]=0,r[9]=0,r[10]=2*h,r[11]=0,r[12]=(t+a)*c,r[13]=(e+n)*o,r[14]=(s+i)*h,r[15]=1,r}var Qr=ze;function Hr(r,t,a,n){var e,i,s,c,o,h,f,l,v,p,u=t[0],y=t[1],x=t[2],M=n[0],O=n[1],m=n[2],g=a[0],d=a[1],k=a[2];return Math.abs(u-g)<W&&Math.abs(y-d)<W&&Math.abs(x-k)<W?Se(r):(f=u-g,l=y-d,v=x-k,p=1/Math.hypot(f,l,v),f*=p,l*=p,v*=p,e=O*v-m*l,i=m*f-M*v,s=M*l-O*f,p=Math.hypot(e,i,s),p?(p=1/p,e*=p,i*=p,s*=p):(e=0,i=0,s=0),c=l*s-v*i,o=v*e-f*s,h=f*i-l*e,p=Math.hypot(c,o,h),p?(p=1/p,c*=p,o*=p,h*=p):(c=0,o=0,h=0),r[0]=e,r[1]=c,r[2]=f,r[3]=0,r[4]=i,r[5]=o,r[6]=l,r[7]=0,r[8]=s,r[9]=h,r[10]=v,r[11]=0,r[12]=-(e*u+i*y+s*x),r[13]=-(c*u+o*y+h*x),r[14]=-(f*u+l*y+v*x),r[15]=1,r)}function be(){var r=new D(4);return D!=Float32Array&&(r[0]=0,r[1]=0,r[2]=0,r[3]=0),r}function Jr(r,t,a){var n=t[0],e=t[1],i=t[2],s=t[3];return r[0]=a[0]*n+a[4]*e+a[8]*i+a[12]*s,r[1]=a[1]*n+a[5]*e+a[9]*i+a[13]*s,r[2]=a[2]*n+a[6]*e+a[10]*i+a[14]*s,r[3]=a[3]*n+a[7]*e+a[11]*i+a[15]*s,r}var fn=function(){var r=be();return function(t,a,n,e,i,s){var c,o;for(a||(a=4),n||(n=0),e?o=Math.min(e*a+n,t.length):o=t.length,c=n;c<o;c+=a)r[0]=t[c],r[1]=t[c+1],r[2]=t[c+2],r[3]=t[c+3],i(r,r,s),t[c]=r[0],t[c+1]=r[1],t[c+2]=r[2],t[c+3]=r[3];return t}}();function je(r){var t=qe();return function(){var n=R(r),e;if(t){var i=R(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return q(this,e)}}function qe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var gr;(function(r){r[r.COL0ROW0=0]="COL0ROW0",r[r.COL0ROW1=1]="COL0ROW1",r[r.COL0ROW2=2]="COL0ROW2",r[r.COL0ROW3=3]="COL0ROW3",r[r.COL1ROW0=4]="COL1ROW0",r[r.COL1ROW1=5]="COL1ROW1",r[r.COL1ROW2=6]="COL1ROW2",r[r.COL1ROW3=7]="COL1ROW3",r[r.COL2ROW0=8]="COL2ROW0",r[r.COL2ROW1=9]="COL2ROW1",r[r.COL2ROW2=10]="COL2ROW2",r[r.COL2ROW3=11]="COL2ROW3",r[r.COL3ROW0=12]="COL3ROW0",r[r.COL3ROW1=13]="COL3ROW1",r[r.COL3ROW2=14]="COL3ROW2",r[r.COL3ROW3=15]="COL3ROW3"})(gr||(gr={}));var Ve=45*Math.PI/180,De=1,mr=.1,yr=500,Ie=Object.freeze([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),U=function(r){j(a,r);var t=je(a);function a(n){var e;return N(this,a),e=t.call(this,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0),arguments.length===1&&Array.isArray(n)?e.copy(n):e.identity(),e}return b(a,[{key:"ELEMENTS",get:function(){return 16}},{key:"RANK",get:function(){return 4}},{key:"INDICES",get:function(){return gr}},{key:"copy",value:function(e){return this[0]=e[0],this[1]=e[1],this[2]=e[2],this[3]=e[3],this[4]=e[4],this[5]=e[5],this[6]=e[6],this[7]=e[7],this[8]=e[8],this[9]=e[9],this[10]=e[10],this[11]=e[11],this[12]=e[12],this[13]=e[13],this[14]=e[14],this[15]=e[15],this.check()}},{key:"set",value:function(e,i,s,c,o,h,f,l,v,p,u,y,x,M,O,m){return this[0]=e,this[1]=i,this[2]=s,this[3]=c,this[4]=o,this[5]=h,this[6]=f,this[7]=l,this[8]=v,this[9]=p,this[10]=u,this[11]=y,this[12]=x,this[13]=M,this[14]=O,this[15]=m,this.check()}},{key:"setRowMajor",value:function(e,i,s,c,o,h,f,l,v,p,u,y,x,M,O,m){return this[0]=e,this[1]=o,this[2]=v,this[3]=x,this[4]=i,this[5]=h,this[6]=p,this[7]=M,this[8]=s,this[9]=f,this[10]=u,this[11]=O,this[12]=c,this[13]=l,this[14]=y,this[15]=m,this.check()}},{key:"toRowMajor",value:function(e){return e[0]=this[0],e[1]=this[4],e[2]=this[8],e[3]=this[12],e[4]=this[1],e[5]=this[5],e[6]=this[9],e[7]=this[13],e[8]=this[2],e[9]=this[6],e[10]=this[10],e[11]=this[14],e[12]=this[3],e[13]=this[7],e[14]=this[11],e[15]=this[15],e}},{key:"identity",value:function(){return this.copy(Ie)}},{key:"fromObject",value:function(e){return this.check()}},{key:"fromQuaternion",value:function(e){return Xr(this,e),this.check()}},{key:"frustum",value:function(e){var i=e.left,s=e.right,c=e.bottom,o=e.top,h=e.near,f=h===void 0?mr:h,l=e.far,v=l===void 0?yr:l;return v===1/0?Fe(this,i,s,c,o,f):Gr(this,i,s,c,o,f,v),this.check()}},{key:"lookAt",value:function(e){var i=e.eye,s=e.center,c=s===void 0?[0,0,0]:s,o=e.up,h=o===void 0?[0,1,0]:o;return Hr(this,i,c,h),this.check()}},{key:"ortho",value:function(e){var i=e.left,s=e.right,c=e.bottom,o=e.top,h=e.near,f=h===void 0?mr:h,l=e.far,v=l===void 0?yr:l;return Qr(this,i,s,c,o,f,v),this.check()}},{key:"orthographic",value:function(e){var i=e.fovy,s=i===void 0?Ve:i,c=e.aspect,o=c===void 0?De:c,h=e.focalDistance,f=h===void 0?1:h,l=e.near,v=l===void 0?mr:l,p=e.far,u=p===void 0?yr:p;re(s);var y=s/2,x=f*Math.tan(y),M=x*o;return this.ortho({left:-M,right:M,bottom:-x,top:x,near:v,far:u})}},{key:"perspective",value:function(e){var i=e.fovy,s=i===void 0?45*Math.PI/180:i,c=e.aspect,o=c===void 0?1:c,h=e.near,f=h===void 0?.1:h,l=e.far,v=l===void 0?500:l;return re(s),Ur(this,s,o,f,v),this.check()}},{key:"determinant",value:function(){return Yr(this)}},{key:"getScale",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[-0,-0,-0];return e[0]=Math.sqrt(this[0]*this[0]+this[1]*this[1]+this[2]*this[2]),e[1]=Math.sqrt(this[4]*this[4]+this[5]*this[5]+this[6]*this[6]),e[2]=Math.sqrt(this[8]*this[8]+this[9]*this[9]+this[10]*this[10]),e}},{key:"getTranslation",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[-0,-0,-0];return e[0]=this[12],e[1]=this[13],e[2]=this[14],e}},{key:"getRotation",value:function(e,i){e=e||[-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0],i=i||[-0,-0,-0];var s=this.getScale(i),c=1/s[0],o=1/s[1],h=1/s[2];return e[0]=this[0]*c,e[1]=this[1]*o,e[2]=this[2]*h,e[3]=0,e[4]=this[4]*c,e[5]=this[5]*o,e[6]=this[6]*h,e[7]=0,e[8]=this[8]*c,e[9]=this[9]*o,e[10]=this[10]*h,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}},{key:"getRotationMatrix3",value:function(e,i){e=e||[-0,-0,-0,-0,-0,-0,-0,-0,-0],i=i||[-0,-0,-0];var s=this.getScale(i),c=1/s[0],o=1/s[1],h=1/s[2];return e[0]=this[0]*c,e[1]=this[1]*o,e[2]=this[2]*h,e[3]=this[4]*c,e[4]=this[5]*o,e[5]=this[6]*h,e[6]=this[8]*c,e[7]=this[9]*o,e[8]=this[10]*h,e}},{key:"transpose",value:function(){return Dr(this,this),this.check()}},{key:"invert",value:function(){return Ir(this,this),this.check()}},{key:"multiplyLeft",value:function(e){return xr(this,e,this),this.check()}},{key:"multiplyRight",value:function(e){return xr(this,this,e),this.check()}},{key:"rotateX",value:function(e){return Zr(this,this,e),this.check()}},{key:"rotateY",value:function(e){return $r(this,this,e),this.check()}},{key:"rotateZ",value:function(e){return Kr(this,this,e),this.check()}},{key:"rotateXYZ",value:function(e){return this.rotateX(e[0]).rotateY(e[1]).rotateZ(e[2])}},{key:"rotateAxis",value:function(e,i){return Br(this,this,e,i),this.check()}},{key:"scale",value:function(e){return Fr(this,this,Array.isArray(e)?e:[e,e,e]),this.check()}},{key:"translate",value:function(e){return Wr(this,this,e),this.check()}},{key:"transform",value:function(e,i){return e.length===4?(i=Jr(i||[-0,-0,-0,-0],e,this),ar(i,4),i):this.transformAsPoint(e,i)}},{key:"transformAsPoint",value:function(e,i){var s=e.length,c;switch(s){case 2:c=sr(i||[-0,-0],e,this);break;case 3:c=qr(i||[-0,-0,-0],e,this);break;default:throw new Error("Illegal vector")}return ar(c,e.length),c}},{key:"transformAsVector",value:function(e,i){var s;switch(e.length){case 2:s=cr(i||[-0,-0],e,this);break;case 3:s=jr(i||[-0,-0,-0],e,this);break;default:throw new Error("Illegal vector")}return ar(s,e.length),s}},{key:"transformPoint",value:function(e,i){return this.transformAsPoint(e,i)}},{key:"transformVector",value:function(e,i){return this.transformAsPoint(e,i)}},{key:"transformDirection",value:function(e,i){return this.transformAsVector(e,i)}},{key:"makeRotationX",value:function(e){return this.identity().rotateX(e)}},{key:"makeTranslation",value:function(e,i,s){return this.identity().translate([e,i,s])}}],[{key:"IDENTITY",get:function(){return We()}},{key:"ZERO",get:function(){return Ye()}}]),a}(Vr);var or,fr;function Ye(){return or||(or=new U([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),Object.freeze(or)),or}function We(){return fr||(fr=new U,Object.freeze(fr)),fr}function re(r){if(r>Math.PI*2)throw Error("expected radians")}function Fe(r,t,a,n,e,i){var s=2*i/(a-t),c=2*i/(e-n),o=(a+t)/(a-t),h=(e+n)/(e-n),f=-1,l=-1,v=-2*i;return r[0]=s,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=c,r[6]=0,r[7]=0,r[8]=o,r[9]=h,r[10]=f,r[11]=l,r[12]=0,r[13]=0,r[14]=v,r[15]=0,r}function ee(r,t){var a=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);t&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})),a.push.apply(a,n)}return a}function te(r){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?ee(Object(a),!0).forEach(function(n){I(r,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(a)):ee(Object(a)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(a,n))})}return r}var Mr=85.05113;function kr(r,t,a,n){if(a){if(a.userData._googleMap===r)return a;hr(a)}var e={click:null,rightclick:null,dblclick:null,mousemove:null,mouseout:null},i=new ne.Deck(te(te({},n),{},{useDevicePixels:n.interleaved?!0:n.useDevicePixels,style:n.interleaved?null:{pointerEvents:"none"},parent:Be(t,n.style),initialViewState:{longitude:0,latitude:0,zoom:1},controller:!1})),s=function(h){e[h]=r.addListener(h,function(f){return $e(i,h,f)})};for(var c in e)s(c);return i.userData._googleMap=r,i.userData._eventListeners=e,i}function Be(r,t){var a=document.createElement("div");if(a.style.position="absolute",Object.assign(a.style,t),"getPanes"in r){var n;(n=r.getPanes())===null||n===void 0||n.overlayLayer.appendChild(a)}else{var e;(e=r.getMap())===null||e===void 0||e.getDiv().appendChild(a)}return a}function hr(r){var t=r.userData._eventListeners;for(var a in t)t[a]&&t[a].remove();r.finalize()}function ae(r,t){var a=ie(r),n=a.width,e=a.height,i=t.getProjection(),s=r.getBounds();if(!s)return{width:n,height:e,left:0,top:0};var c=s.getNorthEast(),o=s.getSouthWest(),h=i.fromLatLngToDivPixel(c),f=i.fromLatLngToDivPixel(o),l=dr(i,n/2,e/2),v=new google.maps.LatLng(0,l[0]),p=i.fromLatLngToContainerPixel(v),u=i.fromLatLngToDivPixel(v);if(!h||!f||!u||!p)return{width:n,height:e,left:0,top:0};var y=Math.round(u.x-p.x),x=u.y-p.y,M=dr(i,n/2,0),O=dr(i,n/2,e),m=l[1],g=l[0];if(Math.abs(m)>Mr){m=m>0?Mr:-Mr;var d=new google.maps.LatLng(m,g),k=i.fromLatLngToContainerPixel(d);x+=k.y-e/2}x=Math.round(x);var A=new G(M).sub(O),_=180*A.verticalAngle()/Math.PI;_<0&&(_+=360);var S=r.getHeading()||0,P=r.getZoom()-1,L;if(_===0)L=e?(f.y-h.y)/e:1;else if(_===S){var T=new G([h.x,h.y]).sub([f.x,f.y]).len(),z=new G([n,-e]).len();L=z?T/z:1}return P+=Math.log2(L||1),{width:n,height:e,left:y,top:x,zoom:P,bearing:_,pitch:r.getTilt(),latitude:m,longitude:g}}function Or(r,t){var a=ie(r),n=a.width,e=a.height,i=t.getCameraParams(),s=i.center,c=i.heading,o=i.tilt,h=i.zoom,f=25,l=e?n/e:1,v=.75,p=3e14,u=new U().perspective({fovy:f*Math.PI/180,aspect:l,near:v,far:p}),y=.5*u[5];return{width:n,height:e,viewState:{altitude:y,bearing:c,latitude:s.lat(),longitude:s.lng(),pitch:o,projectionMatrix:u,repeat:!0,zoom:h-1}}}function ie(r){var t=r.getDiv().firstChild;return{width:t.offsetWidth,height:t.offsetHeight}}function dr(r,t,a){var n=new google.maps.Point(t,a),e=r.fromContainerPixelToLatLng(n);return[e.lng(),e.lat()]}function Ze(r,t){if(r.pixel)return r.pixel;var a=t.getViewports()[0].project([r.latLng.lng(),r.latLng.lat()]);return{x:a[0],y:a[1]}}function $e(r,t,a){if(r.isInitialized){var n={type:t,offsetCenter:Ze(a,r),srcEvent:a};switch(t){case"click":case"rightclick":n.type="click",n.tapCount=1,r._onPointerDown(n),r._onEvent(n);break;case"dblclick":n.type="click",n.tapCount=2,r._onEvent(n);break;case"mousemove":n.type="pointermove",r._onPointerMove(n);break;case"mouseout":n.type="pointerleave",r._onPointerMove(n);break;default:return}}}var Ke=["width","height","left","top"];function se(r,t){var a=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);t&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})),a.push.apply(a,n)}return a}function B(r){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?se(Object(a),!0).forEach(function(n){I(r,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(a)):se(Object(a)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(a,n))})}return r}var Xe=function(){return!1},Ge={depthMask:!0,depthTest:!0,blend:!0,blendFunc:[770,771,1,771],blendEquation:32774};function ce(){}var Ue={interleaved:!0},oe=function(){function r(t){N(this,r),I(this,"props",{}),I(this,"_map",null),I(this,"_deck",null),I(this,"_overlay",null),this.setProps(B(B({},Ue),t))}return b(r,[{key:"setMap",value:function(a){var n=this;if(a!==this._map){var e=google.maps.RenderingType,i=e.VECTOR,s=e.UNINITIALIZED;if(this._map){var c;!a&&this._map.getRenderingType()===i&&this.props.interleaved&&this._overlay.requestRedraw(),(c=this._overlay)===null||c===void 0||c.setMap(null),this._map=null}if(a){this._map=a;var o=a.getRenderingType();o!==s?this._createOverlay(a):a.addListener("renderingtype_changed",function(){n._createOverlay(a)})}}}},{key:"setProps",value:function(a){if(Object.assign(this.props,a),this._deck){if(a.style){var n=this._deck.canvas.parentElement.style;Object.assign(n,a.style),a.style=null}this._deck.setProps(a)}}},{key:"pickObject",value:function(a){return this._deck&&this._deck.pickObject(a)}},{key:"pickMultipleObjects",value:function(a){return this._deck&&this._deck.pickMultipleObjects(a)}},{key:"pickObjects",value:function(a){return this._deck&&this._deck.pickObjects(a)}},{key:"finalize",value:function(){this.setMap(null),this._deck&&(hr(this._deck),this._deck=null)}},{key:"_createOverlay",value:function(a){var n=this.props.interleaved,e=google.maps.RenderingType,i=e.VECTOR,s=e.UNINITIALIZED,c=a.getRenderingType();if(c!==s){var o=c===i&&google.maps.WebGLOverlayView,h=o?google.maps.WebGLOverlayView:google.maps.OverlayView,f=new h;f instanceof google.maps.WebGLOverlayView?(n?(f.onAdd=ce,f.onContextRestored=this._onContextRestored.bind(this),f.onDraw=this._onDrawVectorInterleaved.bind(this)):(f.onAdd=this._onAdd.bind(this),f.onContextRestored=ce,f.onDraw=this._onDrawVectorOverlay.bind(this)),f.onContextLost=this._onContextLost.bind(this)):(f.onAdd=this._onAdd.bind(this),f.draw=this._onDrawRaster.bind(this)),f.onRemove=this._onRemove.bind(this),this._overlay=f,this._overlay.setMap(a)}}},{key:"_onAdd",value:function(){this._deck=kr(this._map,this._overlay,this._deck,this.props)}},{key:"_onContextRestored",value:function(a){var n=this,e=a.gl;if(!(!this._map||!this._overlay)){var i=function(){n._overlay&&n._overlay.requestRedraw()},s=kr(this._map,this._overlay,this._deck,B({gl:e,_customRender:i},this.props));this._deck=s;var c=s.animationLoop;c._renderFrame=function(){var o=e.getParameter(34964);(0,Z.withParameters)(e,{},function(){c.onRender()}),e.bindBuffer(34962,o)}}}},{key:"_onContextLost",value:function(){this._deck&&(hr(this._deck),this._deck=null)}},{key:"_onRemove",value:function(){var a;(a=this._deck)===null||a===void 0||a.setProps({layerFilter:Xe})}},{key:"_onDrawRaster",value:function(){if(!(!this._deck||!this._map)){var a=this._deck,n=ae(this._map,this._overlay),e=n.width,i=n.height,s=n.left,c=n.top,o=vr(n,Ke),h=a.canvas.parentElement.style;h.left="".concat(s,"px"),h.top="".concat(c,"px");var f=1e4;a.setProps({width:e,height:i,viewState:B({altitude:f,repeat:!0},o)}),a.redraw()}}},{key:"_onDrawVectorInterleaved",value:function(a){var n=a.gl,e=a.transformer;if(!(!this._deck||!this._map)){var i=this._deck;if(i.setProps(B(B({},Or(this._map,e)),{},{width:null,height:null})),i.isInitialized){var s=(0,Z.getParameters)(n,36006);i.setProps({_framebuffer:s}),i.needsRedraw({clearRedrawFlags:!0}),(0,Z.setParameters)(n,{viewport:[0,0,n.canvas.width,n.canvas.height],scissor:[0,0,n.canvas.width,n.canvas.height],stencilFunc:[519,0,255,519,0,255]}),(0,Z.withParameters)(n,Ge,function(){i._drawLayers("google-vector",{clearCanvas:!1})})}}}},{key:"_onDrawVectorOverlay",value:function(a){var n=a.transformer;if(!(!this._deck||!this._map)){var e=this._deck;e.setProps(B({},Or(this._map,n))),e.redraw()}}}]),r}();return xe(Q);})(); | ||
"use strict";var __exports__=(()=>{var yt=Object.create;var Z=Object.defineProperty;var mt=Object.getOwnPropertyDescriptor;var gt=Object.getOwnPropertyNames;var Mt=Object.getPrototypeOf,dt=Object.prototype.hasOwnProperty;var Sr=(r,t)=>()=>(t||r((t={exports:{}}).exports,t),t.exports),Ot=(r,t)=>{for(var i in t)Z(r,i,{get:t[i],enumerable:!0})},B=(r,t,i,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of gt(t))!dt.call(r,a)&&a!==i&&Z(r,a,{get:()=>t[a],enumerable:!(n=mt(t,a))||n.enumerable});return r},j=(r,t,i)=>(B(r,t,"default"),i&&B(i,t,"default")),$=(r,t,i)=>(i=r!=null?yt(Mt(r)):{},B(t||!r||!r.__esModule?Z(i,"default",{value:r,enumerable:!0}):i,r)),_t=r=>B(Z({},"__esModule",{value:!0}),r);var K=Sr((Ne,Lr)=>{Lr.exports=globalThis.deck});var Tr=Sr((qe,Ar)=>{Ar.exports=globalThis.luma});var F={};Ot(F,{GoogleMapsOverlay:()=>xt});var z={},br=$(K());j(z,$(K()));if(!br.Layer)throw new Error("@deck.gl/core is not found");j(F,z);var D=$(Tr());var ht=$(K());function X(r,t){if(!r)throw new Error("math.gl assertion ".concat(t))}var De=1/Math.PI*180,Ie=1/180*Math.PI,P={EPSILON:1e-12,debug:!1,precision:4,printTypes:!1,printDegrees:!1,printRowMajor:!0};function kr(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=t.precision,n=i===void 0?P.precision:i;return r=Et(r),"".concat(parseFloat(r.toPrecision(n)))}function I(r){return Array.isArray(r)||ArrayBuffer.isView(r)&&!(r instanceof DataView)}function pr(r,t,i){var n=P.EPSILON;i&&(P.EPSILON=i);try{if(r===t)return!0;if(I(r)&&I(t)){if(r.length!==t.length)return!1;for(var a=0;a<r.length;++a)if(!pr(r[a],t[a]))return!1;return!0}return r&&r.equals?r.equals(t):t&&t.equals?t.equals(r):typeof r=="number"&&typeof t=="number"?Math.abs(r-t)<=P.EPSILON*Math.max(1,Math.abs(r),Math.abs(t)):!1}finally{P.EPSILON=n}}function Et(r){return Math.round(r/P.EPSILON)*P.EPSILON}function G(r){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?G=function(i){return typeof i}:G=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},G(r)}function wt(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function zr(r,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}function Rt(r,t,i){return t&&zr(r.prototype,t),i&&zr(r,i),r}function Pt(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),t&&ur(r,t)}function ur(r,t){return ur=Object.setPrototypeOf||function(n,a){return n.__proto__=a,n},ur(r,t)}function St(r){var t=At();return function(){var n=U(r),a;if(t){var e=U(this).constructor;a=Reflect.construct(n,arguments,e)}else a=n.apply(this,arguments);return Lt(this,a)}}function Lt(r,t){if(t&&(G(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return bt(r)}function bt(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function At(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function U(r){return U=Object.setPrototypeOf?Object.getPrototypeOf:function(i){return i.__proto__||Object.getPrototypeOf(i)},U(r)}function Tt(r){function t(){var i=Reflect.construct(r,Array.from(arguments));return Object.setPrototypeOf(i,Object.getPrototypeOf(this)),i}return t.prototype=Object.create(r.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(t,r):t.__proto__=r,t}var Q=function(r){Pt(i,r);var t=St(i);function i(){return wt(this,i),t.apply(this,arguments)}var n=i.prototype;return n.clone=function(){return new this.constructor().copy(this)},n.fromArray=function(e){for(var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,f=0;f<this.ELEMENTS;++f)this[f]=e[f+o];return this.check()},n.toArray=function(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,f=0;f<this.ELEMENTS;++f)e[o+f]=this[f];return e},n.from=function(e){return Array.isArray(e)?this.copy(e):this.fromObject(e)},n.to=function(e){return e===this?this:I(e)?this.toArray(e):this.toObject(e)},n.toTarget=function(e){return e?this.to(e):this},n.toFloat32Array=function(){return new Float32Array(this)},n.toString=function(){return this.formatString(P)},n.formatString=function(e){for(var o="",f=0;f<this.ELEMENTS;++f)o+=(f>0?", ":"")+kr(this[f],e);return"".concat(e.printTypes?this.constructor.name:"","[").concat(o,"]")},n.equals=function(e){if(!e||this.length!==e.length)return!1;for(var o=0;o<this.ELEMENTS;++o)if(!pr(this[o],e[o]))return!1;return!0},n.exactEquals=function(e){if(!e||this.length!==e.length)return!1;for(var o=0;o<this.ELEMENTS;++o)if(this[o]!==e[o])return!1;return!0},n.negate=function(){for(var e=0;e<this.ELEMENTS;++e)this[e]=-this[e];return this.check()},n.lerp=function(e,o,f){if(f===void 0)return this.lerp(this,e,o);for(var c=0;c<this.ELEMENTS;++c){var s=e[c];this[c]=s+f*(o[c]-s)}return this.check()},n.min=function(e){for(var o=0;o<this.ELEMENTS;++o)this[o]=Math.min(e[o],this[o]);return this.check()},n.max=function(e){for(var o=0;o<this.ELEMENTS;++o)this[o]=Math.max(e[o],this[o]);return this.check()},n.clamp=function(e,o){for(var f=0;f<this.ELEMENTS;++f)this[f]=Math.min(Math.max(this[f],e[f]),o[f]);return this.check()},n.add=function(){for(var e=arguments.length,o=new Array(e),f=0;f<e;f++)o[f]=arguments[f];for(var c=0,s=o;c<s.length;c++)for(var h=s[c],l=0;l<this.ELEMENTS;++l)this[l]+=h[l];return this.check()},n.subtract=function(){for(var e=arguments.length,o=new Array(e),f=0;f<e;f++)o[f]=arguments[f];for(var c=0,s=o;c<s.length;c++)for(var h=s[c],l=0;l<this.ELEMENTS;++l)this[l]-=h[l];return this.check()},n.scale=function(e){if(typeof e=="number")for(var o=0;o<this.ELEMENTS;++o)this[o]*=e;else for(var f=0;f<this.ELEMENTS&&f<e.length;++f)this[f]*=e[f];return this.check()},n.multiplyByScalar=function(e){for(var o=0;o<this.ELEMENTS;++o)this[o]*=e;return this.check()},n.check=function(){if(P.debug&&!this.validate())throw new Error("math.gl: ".concat(this.constructor.name," some fields set to invalid numbers'"));return this},n.validate=function(){for(var e=this.length===this.ELEMENTS,o=0;o<this.ELEMENTS;++o)e=e&&Number.isFinite(this[o]);return e},n.sub=function(e){return this.subtract(e)},n.setScalar=function(e){for(var o=0;o<this.ELEMENTS;++o)this[o]=e;return this.check()},n.addScalar=function(e){for(var o=0;o<this.ELEMENTS;++o)this[o]+=e;return this.check()},n.subScalar=function(e){return this.addScalar(-e)},n.multiplyScalar=function(e){for(var o=0;o<this.ELEMENTS;++o)this[o]*=e;return this.check()},n.divideScalar=function(e){return this.multiplyByScalar(1/e)},n.clampScalar=function(e,o){for(var f=0;f<this.ELEMENTS;++f)this[f]=Math.min(Math.max(this[f],e),o);return this.check()},Rt(i,[{key:"elements",get:function(){return this}}]),i}(Tt(Array));function kt(r,t){if(r.length!==t)return!1;for(var i=0;i<r.length;++i)if(!Number.isFinite(r[i]))return!1;return!0}function k(r){if(!Number.isFinite(r))throw new Error("Invalid number ".concat(r));return r}function H(r,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";if(P.debug&&!kt(r,t))throw new Error("math.gl: ".concat(i," some fields set to invalid numbers'"));return r}function J(r){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?J=function(i){return typeof i}:J=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},J(r)}function zt(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function Nr(r,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}function Nt(r,t,i){return t&&Nr(r.prototype,t),i&&Nr(r,i),r}function jt(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),t&&xr(r,t)}function xr(r,t){return xr=Object.setPrototypeOf||function(n,a){return n.__proto__=a,n},xr(r,t)}function qt(r){var t=It();return function(){var n=rr(r),a;if(t){var e=rr(this).constructor;a=Reflect.construct(n,arguments,e)}else a=n.apply(this,arguments);return Vt(this,a)}}function Vt(r,t){if(t&&(J(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Dt(r)}function Dt(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function It(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function rr(r){return rr=Object.setPrototypeOf?Object.getPrototypeOf:function(i){return i.__proto__||Object.getPrototypeOf(i)},rr(r)}var jr=function(r){jt(i,r);var t=qt(i);function i(){return zt(this,i),t.apply(this,arguments)}var n=i.prototype;return n.len=function(){return Math.sqrt(this.lengthSquared())},n.magnitude=function(){return this.len()},n.lengthSquared=function(){for(var e=0,o=0;o<this.ELEMENTS;++o)e+=this[o]*this[o];return e},n.magnitudeSquared=function(){return this.lengthSquared()},n.distance=function(e){return Math.sqrt(this.distanceSquared(e))},n.distanceSquared=function(e){for(var o=0,f=0;f<this.ELEMENTS;++f){var c=this[f]-e[f];o+=c*c}return k(o)},n.dot=function(e){for(var o=0,f=0;f<this.ELEMENTS;++f)o+=this[f]*e[f];return k(o)},n.normalize=function(){var e=this.magnitude();if(e!==0)for(var o=0;o<this.ELEMENTS;++o)this[o]/=e;return this.check()},n.multiply=function(){for(var e=arguments.length,o=new Array(e),f=0;f<e;f++)o[f]=arguments[f];for(var c=0,s=o;c<s.length;c++)for(var h=s[c],l=0;l<this.ELEMENTS;++l)this[l]*=h[l];return this.check()},n.divide=function(){for(var e=arguments.length,o=new Array(e),f=0;f<e;f++)o[f]=arguments[f];for(var c=0,s=o;c<s.length;c++)for(var h=s[c],l=0;l<this.ELEMENTS;++l)this[l]/=h[l];return this.check()},n.lengthSq=function(){return this.lengthSquared()},n.distanceTo=function(e){return this.distance(e)},n.distanceToSquared=function(e){return this.distanceSquared(e)},n.getComponent=function(e){return X(e>=0&&e<this.ELEMENTS,"index is out of range"),k(this[e])},n.setComponent=function(e,o){return X(e>=0&&e<this.ELEMENTS,"index is out of range"),this[e]=o,this.check()},n.addVectors=function(e,o){return this.copy(e).add(o)},n.subVectors=function(e,o){return this.copy(e).subtract(o)},n.multiplyVectors=function(e,o){return this.copy(e).multiply(o)},n.addScaledVector=function(e,o){return this.add(new this.constructor(e).multiplyScalar(o))},Nt(i,[{key:"x",get:function(){return this[0]},set:function(e){this[0]=k(e)}},{key:"y",get:function(){return this[1]},set:function(e){this[1]=k(e)}}]),i}(Q);var q=1e-6,N=typeof Float32Array<"u"?Float32Array:Array;var Ge=Math.PI/180;Math.hypot||(Math.hypot=function(){for(var r=0,t=arguments.length;t--;)r+=arguments[t]*arguments[t];return Math.sqrt(r)});function Yt(){var r=new N(2);return N!=Float32Array&&(r[0]=0,r[1]=0),r}function Vr(r,t,i){var n=t[0],a=t[1];return r[0]=i[0]*n+i[2]*a,r[1]=i[1]*n+i[3]*a,r}function Dr(r,t,i){var n=t[0],a=t[1];return r[0]=i[0]*n+i[2]*a+i[4],r[1]=i[1]*n+i[3]*a+i[5],r}function Ir(r,t,i){var n=t[0],a=t[1];return r[0]=i[0]*n+i[3]*a+i[6],r[1]=i[1]*n+i[4]*a+i[7],r}function er(r,t,i){var n=t[0],a=t[1];return r[0]=i[0]*n+i[4]*a+i[12],r[1]=i[1]*n+i[5]*a+i[13],r}var Ue=function(){var r=Yt();return function(t,i,n,a,e,o){var f,c;for(i||(i=2),n||(n=0),a?c=Math.min(a*i+n,t.length):c=t.length,f=n;f<c;f+=i)r[0]=t[f],r[1]=t[f+1],e(r,r,o),t[f]=r[0],t[f+1]=r[1];return t}}();function nr(r,t,i){var n=t[0],a=t[1],e=i[3]*n+i[7]*a||1;return r[0]=(i[0]*n+i[4]*a)/e,r[1]=(i[1]*n+i[5]*a)/e,r}function Cr(r,t,i){var n=t[0],a=t[1],e=t[2],o=i[3]*n+i[7]*a+i[11]*e||1;return r[0]=(i[0]*n+i[4]*a+i[8]*e)/o,r[1]=(i[1]*n+i[5]*a+i[9]*e)/o,r[2]=(i[2]*n+i[6]*a+i[10]*e)/o,r}function ir(r){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ir=function(i){return typeof i}:ir=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},ir(r)}function Ct(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function Wr(r,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}function Wt(r,t,i){return t&&Wr(r.prototype,t),i&&Wr(r,i),r}function Ft(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),t&&yr(r,t)}function yr(r,t){return yr=Object.setPrototypeOf||function(n,a){return n.__proto__=a,n},yr(r,t)}function Bt(r){var t=Kt();return function(){var n=ar(r),a;if(t){var e=ar(this).constructor;a=Reflect.construct(n,arguments,e)}else a=n.apply(this,arguments);return Zt(this,a)}}function Zt(r,t){if(t&&(ir(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $t(r)}function $t(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function Kt(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ar(r){return ar=Object.setPrototypeOf?Object.getPrototypeOf:function(i){return i.__proto__||Object.getPrototypeOf(i)},ar(r)}var C=function(r){Ft(i,r);var t=Bt(i);function i(){var a,e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Ct(this,i),a=t.call(this,2),I(e)&&arguments.length===1?a.copy(e):(P.debug&&(k(e),k(o)),a[0]=e,a[1]=o),a}var n=i.prototype;return n.set=function(e,o){return this[0]=e,this[1]=o,this.check()},n.copy=function(e){return this[0]=e[0],this[1]=e[1],this.check()},n.fromObject=function(e){return P.debug&&(k(e.x),k(e.y)),this[0]=e.x,this[1]=e.y,this.check()},n.toObject=function(e){return e.x=this[0],e.y=this[1],e},n.horizontalAngle=function(){return Math.atan2(this.y,this.x)},n.verticalAngle=function(){return Math.atan2(this.x,this.y)},n.transform=function(e){return this.transformAsPoint(e)},n.transformAsPoint=function(e){return er(this,this,e),this.check()},n.transformAsVector=function(e){return nr(this,this,e),this.check()},n.transformByMatrix3=function(e){return Ir(this,this,e),this.check()},n.transformByMatrix2x3=function(e){return Dr(this,this,e),this.check()},n.transformByMatrix2=function(e){return Vr(this,this,e),this.check()},Wt(i,[{key:"ELEMENTS",get:function(){return 2}}]),i}(jr);function Xt(){var r=new N(3);return N!=Float32Array&&(r[0]=0,r[1]=0,r[2]=0),r}function Fr(r,t,i){var n=t[0],a=t[1],e=t[2],o=i[3]*n+i[7]*a+i[11]*e+i[15];return o=o||1,r[0]=(i[0]*n+i[4]*a+i[8]*e+i[12])/o,r[1]=(i[1]*n+i[5]*a+i[9]*e+i[13])/o,r[2]=(i[2]*n+i[6]*a+i[10]*e+i[14])/o,r}var nn=function(){var r=Xt();return function(t,i,n,a,e,o){var f,c;for(i||(i=3),n||(n=0),a?c=Math.min(a*i+n,t.length):c=t.length,f=n;f<c;f+=i)r[0]=t[f],r[1]=t[f+1],r[2]=t[f+2],e(r,r,o),t[f]=r[0],t[f+1]=r[1],t[f+2]=r[2];return t}}();function or(r){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?or=function(i){return typeof i}:or=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},or(r)}function Ut(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function Qt(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),t&&mr(r,t)}function mr(r,t){return mr=Object.setPrototypeOf||function(n,a){return n.__proto__=a,n},mr(r,t)}function Ht(r){var t=te();return function(){var n=fr(r),a;if(t){var e=fr(this).constructor;a=Reflect.construct(n,arguments,e)}else a=n.apply(this,arguments);return Jt(this,a)}}function Jt(r,t){if(t&&(or(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return re(r)}function re(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function te(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function fr(r){return fr=Object.setPrototypeOf?Object.getPrototypeOf:function(i){return i.__proto__||Object.getPrototypeOf(i)},fr(r)}var Br=function(r){Qt(i,r);var t=Ht(i);function i(){return Ut(this,i),t.apply(this,arguments)}var n=i.prototype;return n.toString=function(){var e="[";if(P.printRowMajor){e+="row-major:";for(var o=0;o<this.RANK;++o)for(var f=0;f<this.RANK;++f)e+=" ".concat(this[f*this.RANK+o])}else{e+="column-major:";for(var c=0;c<this.ELEMENTS;++c)e+=" ".concat(this[c])}return e+="]",e},n.getElementIndex=function(e,o){return o*this.RANK+e},n.getElement=function(e,o){return this[o*this.RANK+e]},n.setElement=function(e,o,f){return this[o*this.RANK+e]=k(f),this},n.getColumn=function(e){for(var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Array(this.RANK).fill(-0),f=e*this.RANK,c=0;c<this.RANK;++c)o[c]=this[f+c];return o},n.setColumn=function(e,o){for(var f=e*this.RANK,c=0;c<this.RANK;++c)this[f+c]=o[c];return this},i}(Q);function ee(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=1,r[6]=0,r[7]=0,r[8]=0,r[9]=0,r[10]=1,r[11]=0,r[12]=0,r[13]=0,r[14]=0,r[15]=1,r}function Zr(r,t){if(r===t){var i=t[1],n=t[2],a=t[3],e=t[6],o=t[7],f=t[11];r[1]=t[4],r[2]=t[8],r[3]=t[12],r[4]=i,r[6]=t[9],r[7]=t[13],r[8]=n,r[9]=e,r[11]=t[14],r[12]=a,r[13]=o,r[14]=f}else r[0]=t[0],r[1]=t[4],r[2]=t[8],r[3]=t[12],r[4]=t[1],r[5]=t[5],r[6]=t[9],r[7]=t[13],r[8]=t[2],r[9]=t[6],r[10]=t[10],r[11]=t[14],r[12]=t[3],r[13]=t[7],r[14]=t[11],r[15]=t[15];return r}function $r(r,t){var i=t[0],n=t[1],a=t[2],e=t[3],o=t[4],f=t[5],c=t[6],s=t[7],h=t[8],l=t[9],v=t[10],p=t[11],u=t[12],m=t[13],y=t[14],M=t[15],_=i*f-n*o,x=i*c-a*o,g=i*s-e*o,d=n*c-a*f,O=n*s-e*f,L=a*s-e*c,w=h*m-l*u,b=h*y-v*u,S=h*M-p*u,R=l*y-v*m,A=l*M-p*m,T=v*M-p*y,E=_*T-x*A+g*R+d*S-O*b+L*w;return E?(E=1/E,r[0]=(f*T-c*A+s*R)*E,r[1]=(a*A-n*T-e*R)*E,r[2]=(m*L-y*O+M*d)*E,r[3]=(v*O-l*L-p*d)*E,r[4]=(c*S-o*T-s*b)*E,r[5]=(i*T-a*S+e*b)*E,r[6]=(y*g-u*L-M*x)*E,r[7]=(h*L-v*g+p*x)*E,r[8]=(o*A-f*S+s*w)*E,r[9]=(n*S-i*A-e*w)*E,r[10]=(u*O-m*g+M*_)*E,r[11]=(l*g-h*O-p*_)*E,r[12]=(f*b-o*R-c*w)*E,r[13]=(i*R-n*b+a*w)*E,r[14]=(m*x-u*d-y*_)*E,r[15]=(h*d-l*x+v*_)*E,r):null}function Kr(r){var t=r[0],i=r[1],n=r[2],a=r[3],e=r[4],o=r[5],f=r[6],c=r[7],s=r[8],h=r[9],l=r[10],v=r[11],p=r[12],u=r[13],m=r[14],y=r[15],M=t*o-i*e,_=t*f-n*e,x=t*c-a*e,g=i*f-n*o,d=i*c-a*o,O=n*c-a*f,L=s*u-h*p,w=s*m-l*p,b=s*y-v*p,S=h*m-l*u,R=h*y-v*u,A=l*y-v*m;return M*A-_*R+x*S+g*b-d*w+O*L}function gr(r,t,i){var n=t[0],a=t[1],e=t[2],o=t[3],f=t[4],c=t[5],s=t[6],h=t[7],l=t[8],v=t[9],p=t[10],u=t[11],m=t[12],y=t[13],M=t[14],_=t[15],x=i[0],g=i[1],d=i[2],O=i[3];return r[0]=x*n+g*f+d*l+O*m,r[1]=x*a+g*c+d*v+O*y,r[2]=x*e+g*s+d*p+O*M,r[3]=x*o+g*h+d*u+O*_,x=i[4],g=i[5],d=i[6],O=i[7],r[4]=x*n+g*f+d*l+O*m,r[5]=x*a+g*c+d*v+O*y,r[6]=x*e+g*s+d*p+O*M,r[7]=x*o+g*h+d*u+O*_,x=i[8],g=i[9],d=i[10],O=i[11],r[8]=x*n+g*f+d*l+O*m,r[9]=x*a+g*c+d*v+O*y,r[10]=x*e+g*s+d*p+O*M,r[11]=x*o+g*h+d*u+O*_,x=i[12],g=i[13],d=i[14],O=i[15],r[12]=x*n+g*f+d*l+O*m,r[13]=x*a+g*c+d*v+O*y,r[14]=x*e+g*s+d*p+O*M,r[15]=x*o+g*h+d*u+O*_,r}function Xr(r,t,i){var n=i[0],a=i[1],e=i[2],o,f,c,s,h,l,v,p,u,m,y,M;return t===r?(r[12]=t[0]*n+t[4]*a+t[8]*e+t[12],r[13]=t[1]*n+t[5]*a+t[9]*e+t[13],r[14]=t[2]*n+t[6]*a+t[10]*e+t[14],r[15]=t[3]*n+t[7]*a+t[11]*e+t[15]):(o=t[0],f=t[1],c=t[2],s=t[3],h=t[4],l=t[5],v=t[6],p=t[7],u=t[8],m=t[9],y=t[10],M=t[11],r[0]=o,r[1]=f,r[2]=c,r[3]=s,r[4]=h,r[5]=l,r[6]=v,r[7]=p,r[8]=u,r[9]=m,r[10]=y,r[11]=M,r[12]=o*n+h*a+u*e+t[12],r[13]=f*n+l*a+m*e+t[13],r[14]=c*n+v*a+y*e+t[14],r[15]=s*n+p*a+M*e+t[15]),r}function Gr(r,t,i){var n=i[0],a=i[1],e=i[2];return r[0]=t[0]*n,r[1]=t[1]*n,r[2]=t[2]*n,r[3]=t[3]*n,r[4]=t[4]*a,r[5]=t[5]*a,r[6]=t[6]*a,r[7]=t[7]*a,r[8]=t[8]*e,r[9]=t[9]*e,r[10]=t[10]*e,r[11]=t[11]*e,r[12]=t[12],r[13]=t[13],r[14]=t[14],r[15]=t[15],r}function Ur(r,t,i,n){var a=n[0],e=n[1],o=n[2],f=Math.hypot(a,e,o),c,s,h,l,v,p,u,m,y,M,_,x,g,d,O,L,w,b,S,R,A,T,E,Y;return f<q?null:(f=1/f,a*=f,e*=f,o*=f,c=Math.sin(i),s=Math.cos(i),h=1-s,l=t[0],v=t[1],p=t[2],u=t[3],m=t[4],y=t[5],M=t[6],_=t[7],x=t[8],g=t[9],d=t[10],O=t[11],L=a*a*h+s,w=e*a*h+o*c,b=o*a*h-e*c,S=a*e*h-o*c,R=e*e*h+s,A=o*e*h+a*c,T=a*o*h+e*c,E=e*o*h-a*c,Y=o*o*h+s,r[0]=l*L+m*w+x*b,r[1]=v*L+y*w+g*b,r[2]=p*L+M*w+d*b,r[3]=u*L+_*w+O*b,r[4]=l*S+m*R+x*A,r[5]=v*S+y*R+g*A,r[6]=p*S+M*R+d*A,r[7]=u*S+_*R+O*A,r[8]=l*T+m*E+x*Y,r[9]=v*T+y*E+g*Y,r[10]=p*T+M*E+d*Y,r[11]=u*T+_*E+O*Y,t!==r&&(r[12]=t[12],r[13]=t[13],r[14]=t[14],r[15]=t[15]),r)}function Qr(r,t,i){var n=Math.sin(i),a=Math.cos(i),e=t[4],o=t[5],f=t[6],c=t[7],s=t[8],h=t[9],l=t[10],v=t[11];return t!==r&&(r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[12]=t[12],r[13]=t[13],r[14]=t[14],r[15]=t[15]),r[4]=e*a+s*n,r[5]=o*a+h*n,r[6]=f*a+l*n,r[7]=c*a+v*n,r[8]=s*a-e*n,r[9]=h*a-o*n,r[10]=l*a-f*n,r[11]=v*a-c*n,r}function Hr(r,t,i){var n=Math.sin(i),a=Math.cos(i),e=t[0],o=t[1],f=t[2],c=t[3],s=t[8],h=t[9],l=t[10],v=t[11];return t!==r&&(r[4]=t[4],r[5]=t[5],r[6]=t[6],r[7]=t[7],r[12]=t[12],r[13]=t[13],r[14]=t[14],r[15]=t[15]),r[0]=e*a-s*n,r[1]=o*a-h*n,r[2]=f*a-l*n,r[3]=c*a-v*n,r[8]=e*n+s*a,r[9]=o*n+h*a,r[10]=f*n+l*a,r[11]=c*n+v*a,r}function Jr(r,t,i){var n=Math.sin(i),a=Math.cos(i),e=t[0],o=t[1],f=t[2],c=t[3],s=t[4],h=t[5],l=t[6],v=t[7];return t!==r&&(r[8]=t[8],r[9]=t[9],r[10]=t[10],r[11]=t[11],r[12]=t[12],r[13]=t[13],r[14]=t[14],r[15]=t[15]),r[0]=e*a+s*n,r[1]=o*a+h*n,r[2]=f*a+l*n,r[3]=c*a+v*n,r[4]=s*a-e*n,r[5]=h*a-o*n,r[6]=l*a-f*n,r[7]=v*a-c*n,r}function rt(r,t){var i=t[0],n=t[1],a=t[2],e=t[3],o=i+i,f=n+n,c=a+a,s=i*o,h=n*o,l=n*f,v=a*o,p=a*f,u=a*c,m=e*o,y=e*f,M=e*c;return r[0]=1-l-u,r[1]=h+M,r[2]=v-y,r[3]=0,r[4]=h-M,r[5]=1-s-u,r[6]=p+m,r[7]=0,r[8]=v+y,r[9]=p-m,r[10]=1-s-l,r[11]=0,r[12]=0,r[13]=0,r[14]=0,r[15]=1,r}function tt(r,t,i,n,a,e,o){var f=1/(i-t),c=1/(a-n),s=1/(e-o);return r[0]=e*2*f,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=e*2*c,r[6]=0,r[7]=0,r[8]=(i+t)*f,r[9]=(a+n)*c,r[10]=(o+e)*s,r[11]=-1,r[12]=0,r[13]=0,r[14]=o*e*2*s,r[15]=0,r}function ne(r,t,i,n,a){var e=1/Math.tan(t/2),o;return r[0]=e/i,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=e,r[6]=0,r[7]=0,r[8]=0,r[9]=0,r[11]=-1,r[12]=0,r[13]=0,r[15]=0,a!=null&&a!==1/0?(o=1/(n-a),r[10]=(a+n)*o,r[14]=2*a*n*o):(r[10]=-1,r[14]=-2*n),r}var et=ne;function ie(r,t,i,n,a,e,o){var f=1/(t-i),c=1/(n-a),s=1/(e-o);return r[0]=-2*f,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=-2*c,r[6]=0,r[7]=0,r[8]=0,r[9]=0,r[10]=2*s,r[11]=0,r[12]=(t+i)*f,r[13]=(a+n)*c,r[14]=(o+e)*s,r[15]=1,r}var nt=ie;function it(r,t,i,n){var a,e,o,f,c,s,h,l,v,p,u=t[0],m=t[1],y=t[2],M=n[0],_=n[1],x=n[2],g=i[0],d=i[1],O=i[2];return Math.abs(u-g)<q&&Math.abs(m-d)<q&&Math.abs(y-O)<q?ee(r):(h=u-g,l=m-d,v=y-O,p=1/Math.hypot(h,l,v),h*=p,l*=p,v*=p,a=_*v-x*l,e=x*h-M*v,o=M*l-_*h,p=Math.hypot(a,e,o),p?(p=1/p,a*=p,e*=p,o*=p):(a=0,e=0,o=0),f=l*o-v*e,c=v*a-h*o,s=h*e-l*a,p=Math.hypot(f,c,s),p?(p=1/p,f*=p,c*=p,s*=p):(f=0,c=0,s=0),r[0]=a,r[1]=f,r[2]=h,r[3]=0,r[4]=e,r[5]=c,r[6]=l,r[7]=0,r[8]=o,r[9]=s,r[10]=v,r[11]=0,r[12]=-(a*u+e*m+o*y),r[13]=-(f*u+c*m+s*y),r[14]=-(h*u+l*m+v*y),r[15]=1,r)}function oe(){var r=new N(4);return N!=Float32Array&&(r[0]=0,r[1]=0,r[2]=0,r[3]=0),r}function at(r,t,i){var n=t[0],a=t[1],e=t[2],o=t[3];return r[0]=i[0]*n+i[4]*a+i[8]*e+i[12]*o,r[1]=i[1]*n+i[5]*a+i[9]*e+i[13]*o,r[2]=i[2]*n+i[6]*a+i[10]*e+i[14]*o,r[3]=i[3]*n+i[7]*a+i[11]*e+i[15]*o,r}var sn=function(){var r=oe();return function(t,i,n,a,e,o){var f,c;for(i||(i=4),n||(n=0),a?c=Math.min(a*i+n,t.length):c=t.length,f=n;f<c;f+=i)r[0]=t[f],r[1]=t[f+1],r[2]=t[f+2],r[3]=t[f+3],e(r,r,o),t[f]=r[0],t[f+1]=r[1],t[f+2]=r[2],t[f+3]=r[3];return t}}();function hr(r){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?hr=function(i){return typeof i}:hr=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},hr(r)}function ce(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function ot(r,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}function se(r,t,i){return t&&ot(r.prototype,t),i&&ot(r,i),r}function he(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),t&&Or(r,t)}function Or(r,t){return Or=Object.setPrototypeOf||function(n,a){return n.__proto__=a,n},Or(r,t)}function le(r){var t=ue();return function(){var n=lr(r),a;if(t){var e=lr(this).constructor;a=Reflect.construct(n,arguments,e)}else a=n.apply(this,arguments);return ve(this,a)}}function ve(r,t){if(t&&(hr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pe(r)}function pe(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function ue(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function lr(r){return lr=Object.setPrototypeOf?Object.getPrototypeOf:function(i){return i.__proto__||Object.getPrototypeOf(i)},lr(r)}var _r;(function(r){r[r.COL0ROW0=0]="COL0ROW0",r[r.COL0ROW1=1]="COL0ROW1",r[r.COL0ROW2=2]="COL0ROW2",r[r.COL0ROW3=3]="COL0ROW3",r[r.COL1ROW0=4]="COL1ROW0",r[r.COL1ROW1=5]="COL1ROW1",r[r.COL1ROW2=6]="COL1ROW2",r[r.COL1ROW3=7]="COL1ROW3",r[r.COL2ROW0=8]="COL2ROW0",r[r.COL2ROW1=9]="COL2ROW1",r[r.COL2ROW2=10]="COL2ROW2",r[r.COL2ROW3=11]="COL2ROW3",r[r.COL3ROW0=12]="COL3ROW0",r[r.COL3ROW1=13]="COL3ROW1",r[r.COL3ROW2=14]="COL3ROW2",r[r.COL3ROW3=15]="COL3ROW3"})(_r||(_r={}));var xe=45*Math.PI/180,ye=1,Mr=.1,dr=500,me=Object.freeze([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),W=function(r){he(i,r);var t=le(i);function i(a){var e;return ce(this,i),e=t.call(this,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0),arguments.length===1&&Array.isArray(a)?e.copy(a):e.identity(),e}var n=i.prototype;return n.copy=function(e){return this[0]=e[0],this[1]=e[1],this[2]=e[2],this[3]=e[3],this[4]=e[4],this[5]=e[5],this[6]=e[6],this[7]=e[7],this[8]=e[8],this[9]=e[9],this[10]=e[10],this[11]=e[11],this[12]=e[12],this[13]=e[13],this[14]=e[14],this[15]=e[15],this.check()},n.set=function(e,o,f,c,s,h,l,v,p,u,m,y,M,_,x,g){return this[0]=e,this[1]=o,this[2]=f,this[3]=c,this[4]=s,this[5]=h,this[6]=l,this[7]=v,this[8]=p,this[9]=u,this[10]=m,this[11]=y,this[12]=M,this[13]=_,this[14]=x,this[15]=g,this.check()},n.setRowMajor=function(e,o,f,c,s,h,l,v,p,u,m,y,M,_,x,g){return this[0]=e,this[1]=s,this[2]=p,this[3]=M,this[4]=o,this[5]=h,this[6]=u,this[7]=_,this[8]=f,this[9]=l,this[10]=m,this[11]=x,this[12]=c,this[13]=v,this[14]=y,this[15]=g,this.check()},n.toRowMajor=function(e){return e[0]=this[0],e[1]=this[4],e[2]=this[8],e[3]=this[12],e[4]=this[1],e[5]=this[5],e[6]=this[9],e[7]=this[13],e[8]=this[2],e[9]=this[6],e[10]=this[10],e[11]=this[14],e[12]=this[3],e[13]=this[7],e[14]=this[11],e[15]=this[15],e},n.identity=function(){return this.copy(me)},n.fromObject=function(e){return this.check()},n.fromQuaternion=function(e){return rt(this,e),this.check()},n.frustum=function(e){var o=e.left,f=e.right,c=e.bottom,s=e.top,h=e.near,l=h===void 0?Mr:h,v=e.far,p=v===void 0?dr:v;return p===1/0?de(this,o,f,c,s,l):tt(this,o,f,c,s,l,p),this.check()},n.lookAt=function(e){var o=e.eye,f=e.center,c=f===void 0?[0,0,0]:f,s=e.up,h=s===void 0?[0,1,0]:s;return it(this,o,c,h),this.check()},n.ortho=function(e){var o=e.left,f=e.right,c=e.bottom,s=e.top,h=e.near,l=h===void 0?Mr:h,v=e.far,p=v===void 0?dr:v;return nt(this,o,f,c,s,l,p),this.check()},n.orthographic=function(e){var o=e.fovy,f=o===void 0?xe:o,c=e.aspect,s=c===void 0?ye:c,h=e.focalDistance,l=h===void 0?1:h,v=e.near,p=v===void 0?Mr:v,u=e.far,m=u===void 0?dr:u;ft(f);var y=f/2,M=l*Math.tan(y),_=M*s;return this.ortho({left:-_,right:_,bottom:-M,top:M,near:p,far:m})},n.perspective=function(e){var o=e.fovy,f=o===void 0?45*Math.PI/180:o,c=e.aspect,s=c===void 0?1:c,h=e.near,l=h===void 0?.1:h,v=e.far,p=v===void 0?500:v;return ft(f),et(this,f,s,l,p),this.check()},n.determinant=function(){return Kr(this)},n.getScale=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[-0,-0,-0];return e[0]=Math.sqrt(this[0]*this[0]+this[1]*this[1]+this[2]*this[2]),e[1]=Math.sqrt(this[4]*this[4]+this[5]*this[5]+this[6]*this[6]),e[2]=Math.sqrt(this[8]*this[8]+this[9]*this[9]+this[10]*this[10]),e},n.getTranslation=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[-0,-0,-0];return e[0]=this[12],e[1]=this[13],e[2]=this[14],e},n.getRotation=function(e,o){e=e||[-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0,-0],o=o||[-0,-0,-0];var f=this.getScale(o),c=1/f[0],s=1/f[1],h=1/f[2];return e[0]=this[0]*c,e[1]=this[1]*s,e[2]=this[2]*h,e[3]=0,e[4]=this[4]*c,e[5]=this[5]*s,e[6]=this[6]*h,e[7]=0,e[8]=this[8]*c,e[9]=this[9]*s,e[10]=this[10]*h,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},n.getRotationMatrix3=function(e,o){e=e||[-0,-0,-0,-0,-0,-0,-0,-0,-0],o=o||[-0,-0,-0];var f=this.getScale(o),c=1/f[0],s=1/f[1],h=1/f[2];return e[0]=this[0]*c,e[1]=this[1]*s,e[2]=this[2]*h,e[3]=this[4]*c,e[4]=this[5]*s,e[5]=this[6]*h,e[6]=this[8]*c,e[7]=this[9]*s,e[8]=this[10]*h,e},n.transpose=function(){return Zr(this,this),this.check()},n.invert=function(){return $r(this,this),this.check()},n.multiplyLeft=function(e){return gr(this,e,this),this.check()},n.multiplyRight=function(e){return gr(this,this,e),this.check()},n.rotateX=function(e){return Qr(this,this,e),this.check()},n.rotateY=function(e){return Hr(this,this,e),this.check()},n.rotateZ=function(e){return Jr(this,this,e),this.check()},n.rotateXYZ=function(e){return this.rotateX(e[0]).rotateY(e[1]).rotateZ(e[2])},n.rotateAxis=function(e,o){return Ur(this,this,e,o),this.check()},n.scale=function(e){return Gr(this,this,Array.isArray(e)?e:[e,e,e]),this.check()},n.translate=function(e){return Xr(this,this,e),this.check()},n.transform=function(e,o){return e.length===4?(o=at(o||[-0,-0,-0,-0],e,this),H(o,4),o):this.transformAsPoint(e,o)},n.transformAsPoint=function(e,o){var f=e.length,c;switch(f){case 2:c=er(o||[-0,-0],e,this);break;case 3:c=Fr(o||[-0,-0,-0],e,this);break;default:throw new Error("Illegal vector")}return H(c,e.length),c},n.transformAsVector=function(e,o){var f;switch(e.length){case 2:f=nr(o||[-0,-0],e,this);break;case 3:f=Cr(o||[-0,-0,-0],e,this);break;default:throw new Error("Illegal vector")}return H(f,e.length),f},n.transformPoint=function(e,o){return this.transformAsPoint(e,o)},n.transformVector=function(e,o){return this.transformAsPoint(e,o)},n.transformDirection=function(e,o){return this.transformAsVector(e,o)},n.makeRotationX=function(e){return this.identity().rotateX(e)},n.makeTranslation=function(e,o,f){return this.identity().translate([e,o,f])},se(i,[{key:"ELEMENTS",get:function(){return 16}},{key:"RANK",get:function(){return 4}},{key:"INDICES",get:function(){return _r}}],[{key:"IDENTITY",get:function(){return Me()}},{key:"ZERO",get:function(){return ge()}}]),i}(Br);var cr,sr;function ge(){return cr||(cr=new W([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),Object.freeze(cr)),cr}function Me(){return sr||(sr=new W,Object.freeze(sr)),sr}function ft(r){if(r>Math.PI*2)throw Error("expected radians")}function de(r,t,i,n,a,e){var o=2*e/(i-t),f=2*e/(a-n),c=(i+t)/(i-t),s=(a+n)/(a-n),h=-1,l=-1,v=-2*e;return r[0]=o,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=f,r[6]=0,r[7]=0,r[8]=c,r[9]=s,r[10]=h,r[11]=l,r[12]=0,r[13]=0,r[14]=v,r[15]=0,r}function ct(r,t){var i=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable})),i.push.apply(i,n)}return i}function st(r){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?ct(Object(i),!0).forEach(function(n){Oe(r,n,i[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(i)):ct(Object(i)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(i,n))})}return r}function Oe(r,t,i){return t in r?Object.defineProperty(r,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[t]=i,r}var Er=85.05113;function Rr(r,t,i,n){if(i){if(i.userData._googleMap===r)return i;vr(i)}var a={click:null,rightclick:null,dblclick:null,mousemove:null,mouseout:null},e=new ht.Deck(st(st({},n),{},{useDevicePixels:n.interleaved?!0:n.useDevicePixels,style:n.interleaved?null:{pointerEvents:"none"},parent:_e(t,n.style),initialViewState:{longitude:0,latitude:0,zoom:1},controller:!1})),o=function(s){a[s]=r.addListener(s,function(h){return we(e,s,h)})};for(var f in a)o(f);return e.userData._googleMap=r,e.userData._eventListeners=a,e}function _e(r,t){var i=document.createElement("div");if(i.style.position="absolute",Object.assign(i.style,t),"getPanes"in r){var n;(n=r.getPanes())===null||n===void 0||n.overlayLayer.appendChild(i)}else{var a;(a=r.getMap())===null||a===void 0||a.getDiv().appendChild(i)}return i}function vr(r){var t=r.userData._eventListeners;for(var i in t)t[i]&&t[i].remove();r.finalize()}function lt(r,t){var i=vt(r),n=i.width,a=i.height,e=t.getProjection(),o=r.getBounds();if(!o)return{width:n,height:a,left:0,top:0};var f=o.getNorthEast(),c=o.getSouthWest(),s=e.fromLatLngToDivPixel(f),h=e.fromLatLngToDivPixel(c),l=wr(e,n/2,a/2),v=new google.maps.LatLng(0,l[0]),p=e.fromLatLngToContainerPixel(v),u=e.fromLatLngToDivPixel(v);if(!s||!h||!u||!p)return{width:n,height:a,left:0,top:0};var m=Math.round(u.x-p.x),y=u.y-p.y,M=wr(e,n/2,0),_=wr(e,n/2,a),x=l[1],g=l[0];if(Math.abs(x)>Er){x=x>0?Er:-Er;var d=new google.maps.LatLng(x,g),O=e.fromLatLngToContainerPixel(d);y+=O.y-a/2}y=Math.round(y);var L=new C(M).sub(_),w=180*L.verticalAngle()/Math.PI;w<0&&(w+=360);var b=r.getHeading()||0,S=r.getZoom()-1,R;if(w===0)R=a?(h.y-s.y)/a:1;else if(w===b){var A=new C([s.x,s.y]).sub([h.x,h.y]).len(),T=new C([n,-a]).len();R=T?A/T:1}return S+=Math.log2(R||1),{width:n,height:a,left:m,top:y,zoom:S,bearing:w,pitch:r.getTilt(),latitude:x,longitude:g}}function Pr(r,t){var i=vt(r),n=i.width,a=i.height,e=t.getCameraParams(),o=e.center,f=e.heading,c=e.tilt,s=e.zoom,h=25,l=a?n/a:1,v=.75,p=3e14,u=new W().perspective({fovy:h*Math.PI/180,aspect:l,near:v,far:p}),m=.5*u[5];return{width:n,height:a,viewState:{altitude:m,bearing:f,latitude:o.lat(),longitude:o.lng(),pitch:c,projectionMatrix:u,repeat:!0,zoom:s-1}}}function vt(r){var t=r.getDiv().firstChild;return{width:t.offsetWidth,height:t.offsetHeight}}function wr(r,t,i){var n=new google.maps.Point(t,i),a=r.fromContainerPixelToLatLng(n);return[a.lng(),a.lat()]}function Ee(r,t){if(r.pixel)return r.pixel;var i=t.getViewports()[0].project([r.latLng.lng(),r.latLng.lat()]);return{x:i[0],y:i[1]}}function we(r,t,i){if(r.isInitialized){var n={type:t,offsetCenter:Ee(i,r),srcEvent:i};switch(t){case"click":case"rightclick":n.type="click",n.tapCount=1,r._onPointerDown(n),r._onEvent(n);break;case"dblclick":n.type="click",n.tapCount=2,r._onEvent(n);break;case"mousemove":n.type="pointermove",r._onPointerMove(n);break;case"mouseout":n.type="pointerleave",r._onPointerMove(n);break;default:return}}}var Re=["width","height","left","top"];function Pe(r,t){if(r==null)return{};var i=Se(r,t),n,a;if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(r);for(a=0;a<e.length;a++)n=e[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(r,n)&&(i[n]=r[n])}return i}function Se(r,t){if(r==null)return{};var i={},n=Object.keys(r),a,e;for(e=0;e<n.length;e++)a=n[e],!(t.indexOf(a)>=0)&&(i[a]=r[a]);return i}function pt(r,t){var i=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable})),i.push.apply(i,n)}return i}function V(r){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?pt(Object(i),!0).forEach(function(n){Le(r,n,i[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(i)):pt(Object(i)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(i,n))})}return r}function Le(r,t,i){return t in r?Object.defineProperty(r,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[t]=i,r}function be(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}var Ae=function(){return!1},Te={depthMask:!0,depthTest:!0,blend:!0,blendFunc:[770,771,1,771],blendEquation:32774};function ut(){}var ke={interleaved:!0},xt=function(){function r(i){be(this,r),this.props={},this._map=null,this._deck=null,this._overlay=null,this.setProps(V(V({},ke),i))}var t=r.prototype;return t.setMap=function(n){var a=this;if(n!==this._map){var e=google.maps.RenderingType,o=e.VECTOR,f=e.UNINITIALIZED;if(this._map){var c;!n&&this._map.getRenderingType()===o&&this.props.interleaved&&this._overlay.requestRedraw(),(c=this._overlay)===null||c===void 0||c.setMap(null),this._map=null}if(n){this._map=n;var s=n.getRenderingType();s!==f?this._createOverlay(n):n.addListener("renderingtype_changed",function(){a._createOverlay(n)})}}},t.setProps=function(n){if(Object.assign(this.props,n),this._deck){if(n.style){var a=this._deck.canvas.parentElement.style;Object.assign(a,n.style),n.style=null}this._deck.setProps(n)}},t.pickObject=function(n){return this._deck&&this._deck.pickObject(n)},t.pickMultipleObjects=function(n){return this._deck&&this._deck.pickMultipleObjects(n)},t.pickObjects=function(n){return this._deck&&this._deck.pickObjects(n)},t.finalize=function(){this.setMap(null),this._deck&&(vr(this._deck),this._deck=null)},t._createOverlay=function(n){var a=this.props.interleaved,e=google.maps.RenderingType,o=e.VECTOR,f=e.UNINITIALIZED,c=n.getRenderingType();if(c!==f){var s=c===o&&google.maps.WebGLOverlayView,h=s?google.maps.WebGLOverlayView:google.maps.OverlayView,l=new h;l instanceof google.maps.WebGLOverlayView?(a?(l.onAdd=ut,l.onContextRestored=this._onContextRestored.bind(this),l.onDraw=this._onDrawVectorInterleaved.bind(this)):(l.onAdd=this._onAdd.bind(this),l.onContextRestored=ut,l.onDraw=this._onDrawVectorOverlay.bind(this)),l.onContextLost=this._onContextLost.bind(this)):(l.onAdd=this._onAdd.bind(this),l.draw=this._onDrawRaster.bind(this)),l.onRemove=this._onRemove.bind(this),this._overlay=l,this._overlay.setMap(n)}},t._onAdd=function(){this._deck=Rr(this._map,this._overlay,this._deck,this.props)},t._onContextRestored=function(n){var a=this,e=n.gl;if(!(!this._map||!this._overlay)){var o=function(){a._overlay&&a._overlay.requestRedraw()},f=Rr(this._map,this._overlay,this._deck,V({gl:e,_customRender:o},this.props));this._deck=f;var c=f.animationLoop;c._renderFrame=function(){var s=e.getParameter(34964);(0,D.withParameters)(e,{},function(){c.onRender()}),e.bindBuffer(34962,s)}}},t._onContextLost=function(){this._deck&&(vr(this._deck),this._deck=null)},t._onRemove=function(){var n;(n=this._deck)===null||n===void 0||n.setProps({layerFilter:Ae})},t._onDrawRaster=function(){if(!(!this._deck||!this._map)){var n=this._deck,a=lt(this._map,this._overlay),e=a.width,o=a.height,f=a.left,c=a.top,s=Pe(a,Re),h=n.canvas.parentElement.style;h.left="".concat(f,"px"),h.top="".concat(c,"px");var l=1e4;n.setProps({width:e,height:o,viewState:V({altitude:l,repeat:!0},s)}),n.redraw()}},t._onDrawVectorInterleaved=function(n){var a=n.gl,e=n.transformer;if(!(!this._deck||!this._map)){var o=this._deck;if(o.setProps(V(V({},Pr(this._map,e)),{},{width:null,height:null})),o.isInitialized){var f=(0,D.getParameters)(a,36006);o.setProps({_framebuffer:f}),o.needsRedraw({clearRedrawFlags:!0}),(0,D.setParameters)(a,{viewport:[0,0,a.canvas.width,a.canvas.height],scissor:[0,0,a.canvas.width,a.canvas.height],stencilFunc:[519,0,255,519,0,255]}),(0,D.withParameters)(a,Te,function(){o._drawLayers("google-vector",{clearCanvas:!1})})}}},t._onDrawVectorOverlay=function(n){var a=n.transformer;if(!(!this._deck||!this._map)){var e=this._deck;e.setProps(V({},Pr(this._map,a))),e.redraw()}},r}();return _t(F);})(); | ||
return __exports__; | ||
}); |
@@ -12,8 +12,6 @@ "use strict"; | ||
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty")); | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); | ||
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty")); | ||
var _core = require("@luma.gl/core"); | ||
@@ -50,260 +48,247 @@ | ||
(0, _classCallCheck2.default)(this, GoogleMapsOverlay); | ||
(0, _defineProperty2.default)(this, "props", {}); | ||
(0, _defineProperty2.default)(this, "_map", null); | ||
(0, _defineProperty2.default)(this, "_deck", null); | ||
(0, _defineProperty2.default)(this, "_overlay", null); | ||
this.props = {}; | ||
this._map = null; | ||
this._deck = null; | ||
this._overlay = null; | ||
this.setProps(_objectSpread(_objectSpread({}, defaultProps), props)); | ||
} | ||
(0, _createClass2.default)(GoogleMapsOverlay, [{ | ||
key: "setMap", | ||
value: function setMap(map) { | ||
var _this = this; | ||
var _proto = GoogleMapsOverlay.prototype; | ||
if (map === this._map) { | ||
return; | ||
} | ||
_proto.setMap = function setMap(map) { | ||
var _this = this; | ||
var _google$maps$Renderin = google.maps.RenderingType, | ||
VECTOR = _google$maps$Renderin.VECTOR, | ||
UNINITIALIZED = _google$maps$Renderin.UNINITIALIZED; | ||
if (map === this._map) { | ||
return; | ||
} | ||
if (this._map) { | ||
var _this$_overlay; | ||
var _google$maps$Renderin = google.maps.RenderingType, | ||
VECTOR = _google$maps$Renderin.VECTOR, | ||
UNINITIALIZED = _google$maps$Renderin.UNINITIALIZED; | ||
if (!map && this._map.getRenderingType() === VECTOR && this.props.interleaved) { | ||
this._overlay.requestRedraw(); | ||
} | ||
if (this._map) { | ||
var _this$_overlay; | ||
(_this$_overlay = this._overlay) === null || _this$_overlay === void 0 ? void 0 : _this$_overlay.setMap(null); | ||
this._map = null; | ||
if (!map && this._map.getRenderingType() === VECTOR && this.props.interleaved) { | ||
this._overlay.requestRedraw(); | ||
} | ||
if (map) { | ||
this._map = map; | ||
var renderingType = map.getRenderingType(); | ||
(_this$_overlay = this._overlay) === null || _this$_overlay === void 0 ? void 0 : _this$_overlay.setMap(null); | ||
this._map = null; | ||
} | ||
if (renderingType !== UNINITIALIZED) { | ||
this._createOverlay(map); | ||
} else { | ||
map.addListener('renderingtype_changed', function () { | ||
_this._createOverlay(map); | ||
}); | ||
} | ||
if (map) { | ||
this._map = map; | ||
var renderingType = map.getRenderingType(); | ||
if (renderingType !== UNINITIALIZED) { | ||
this._createOverlay(map); | ||
} else { | ||
map.addListener('renderingtype_changed', function () { | ||
_this._createOverlay(map); | ||
}); | ||
} | ||
} | ||
}, { | ||
key: "setProps", | ||
value: function setProps(props) { | ||
Object.assign(this.props, props); | ||
}; | ||
if (this._deck) { | ||
if (props.style) { | ||
var parentStyle = this._deck.canvas.parentElement.style; | ||
Object.assign(parentStyle, props.style); | ||
props.style = null; | ||
} | ||
_proto.setProps = function setProps(props) { | ||
Object.assign(this.props, props); | ||
this._deck.setProps(props); | ||
if (this._deck) { | ||
if (props.style) { | ||
var parentStyle = this._deck.canvas.parentElement.style; | ||
Object.assign(parentStyle, props.style); | ||
props.style = null; | ||
} | ||
this._deck.setProps(props); | ||
} | ||
}, { | ||
key: "pickObject", | ||
value: function pickObject(params) { | ||
return this._deck && this._deck.pickObject(params); | ||
} | ||
}, { | ||
key: "pickMultipleObjects", | ||
value: function pickMultipleObjects(params) { | ||
return this._deck && this._deck.pickMultipleObjects(params); | ||
} | ||
}, { | ||
key: "pickObjects", | ||
value: function pickObjects(params) { | ||
return this._deck && this._deck.pickObjects(params); | ||
} | ||
}, { | ||
key: "finalize", | ||
value: function finalize() { | ||
this.setMap(null); | ||
}; | ||
if (this._deck) { | ||
(0, _utils.destroyDeckInstance)(this._deck); | ||
this._deck = null; | ||
} | ||
_proto.pickObject = function pickObject(params) { | ||
return this._deck && this._deck.pickObject(params); | ||
}; | ||
_proto.pickMultipleObjects = function pickMultipleObjects(params) { | ||
return this._deck && this._deck.pickMultipleObjects(params); | ||
}; | ||
_proto.pickObjects = function pickObjects(params) { | ||
return this._deck && this._deck.pickObjects(params); | ||
}; | ||
_proto.finalize = function finalize() { | ||
this.setMap(null); | ||
if (this._deck) { | ||
(0, _utils.destroyDeckInstance)(this._deck); | ||
this._deck = null; | ||
} | ||
}, { | ||
key: "_createOverlay", | ||
value: function _createOverlay(map) { | ||
var interleaved = this.props.interleaved; | ||
var _google$maps$Renderin2 = google.maps.RenderingType, | ||
VECTOR = _google$maps$Renderin2.VECTOR, | ||
UNINITIALIZED = _google$maps$Renderin2.UNINITIALIZED; | ||
var renderingType = map.getRenderingType(); | ||
}; | ||
if (renderingType === UNINITIALIZED) { | ||
return; | ||
} | ||
_proto._createOverlay = function _createOverlay(map) { | ||
var interleaved = this.props.interleaved; | ||
var _google$maps$Renderin2 = google.maps.RenderingType, | ||
VECTOR = _google$maps$Renderin2.VECTOR, | ||
UNINITIALIZED = _google$maps$Renderin2.UNINITIALIZED; | ||
var renderingType = map.getRenderingType(); | ||
var isVectorMap = renderingType === VECTOR && google.maps.WebGLOverlayView; | ||
var OverlayView = isVectorMap ? google.maps.WebGLOverlayView : google.maps.OverlayView; | ||
var overlay = new OverlayView(); | ||
if (renderingType === UNINITIALIZED) { | ||
return; | ||
} | ||
if (overlay instanceof google.maps.WebGLOverlayView) { | ||
if (interleaved) { | ||
overlay.onAdd = noop; | ||
overlay.onContextRestored = this._onContextRestored.bind(this); | ||
overlay.onDraw = this._onDrawVectorInterleaved.bind(this); | ||
} else { | ||
overlay.onAdd = this._onAdd.bind(this); | ||
overlay.onContextRestored = noop; | ||
overlay.onDraw = this._onDrawVectorOverlay.bind(this); | ||
} | ||
var isVectorMap = renderingType === VECTOR && google.maps.WebGLOverlayView; | ||
var OverlayView = isVectorMap ? google.maps.WebGLOverlayView : google.maps.OverlayView; | ||
var overlay = new OverlayView(); | ||
overlay.onContextLost = this._onContextLost.bind(this); | ||
if (overlay instanceof google.maps.WebGLOverlayView) { | ||
if (interleaved) { | ||
overlay.onAdd = noop; | ||
overlay.onContextRestored = this._onContextRestored.bind(this); | ||
overlay.onDraw = this._onDrawVectorInterleaved.bind(this); | ||
} else { | ||
overlay.onAdd = this._onAdd.bind(this); | ||
overlay.draw = this._onDrawRaster.bind(this); | ||
overlay.onContextRestored = noop; | ||
overlay.onDraw = this._onDrawVectorOverlay.bind(this); | ||
} | ||
overlay.onRemove = this._onRemove.bind(this); | ||
this._overlay = overlay; | ||
this._overlay.setMap(map); | ||
overlay.onContextLost = this._onContextLost.bind(this); | ||
} else { | ||
overlay.onAdd = this._onAdd.bind(this); | ||
overlay.draw = this._onDrawRaster.bind(this); | ||
} | ||
}, { | ||
key: "_onAdd", | ||
value: function _onAdd() { | ||
this._deck = (0, _utils.createDeckInstance)(this._map, this._overlay, this._deck, this.props); | ||
} | ||
}, { | ||
key: "_onContextRestored", | ||
value: function _onContextRestored(_ref) { | ||
var _this2 = this; | ||
var gl = _ref.gl; | ||
overlay.onRemove = this._onRemove.bind(this); | ||
this._overlay = overlay; | ||
if (!this._map || !this._overlay) { | ||
return; | ||
} | ||
this._overlay.setMap(map); | ||
}; | ||
var _customRender = function _customRender() { | ||
if (_this2._overlay) { | ||
_this2._overlay.requestRedraw(); | ||
} | ||
}; | ||
_proto._onAdd = function _onAdd() { | ||
this._deck = (0, _utils.createDeckInstance)(this._map, this._overlay, this._deck, this.props); | ||
}; | ||
var deck = (0, _utils.createDeckInstance)(this._map, this._overlay, this._deck, _objectSpread({ | ||
gl: gl, | ||
_customRender: _customRender | ||
}, this.props)); | ||
this._deck = deck; | ||
var animationLoop = deck.animationLoop; | ||
_proto._onContextRestored = function _onContextRestored(_ref) { | ||
var _this2 = this; | ||
animationLoop._renderFrame = function () { | ||
var ab = gl.getParameter(34964); | ||
(0, _core.withParameters)(gl, {}, function () { | ||
animationLoop.onRender(); | ||
}); | ||
gl.bindBuffer(34962, ab); | ||
}; | ||
var gl = _ref.gl; | ||
if (!this._map || !this._overlay) { | ||
return; | ||
} | ||
}, { | ||
key: "_onContextLost", | ||
value: function _onContextLost() { | ||
if (this._deck) { | ||
(0, _utils.destroyDeckInstance)(this._deck); | ||
this._deck = null; | ||
var _customRender = function _customRender() { | ||
if (_this2._overlay) { | ||
_this2._overlay.requestRedraw(); | ||
} | ||
} | ||
}, { | ||
key: "_onRemove", | ||
value: function _onRemove() { | ||
var _this$_deck; | ||
}; | ||
(_this$_deck = this._deck) === null || _this$_deck === void 0 ? void 0 : _this$_deck.setProps({ | ||
layerFilter: HIDE_ALL_LAYERS | ||
var deck = (0, _utils.createDeckInstance)(this._map, this._overlay, this._deck, _objectSpread({ | ||
gl: gl, | ||
_customRender: _customRender | ||
}, this.props)); | ||
this._deck = deck; | ||
var animationLoop = deck.animationLoop; | ||
animationLoop._renderFrame = function () { | ||
var ab = gl.getParameter(34964); | ||
(0, _core.withParameters)(gl, {}, function () { | ||
animationLoop.onRender(); | ||
}); | ||
gl.bindBuffer(34962, ab); | ||
}; | ||
}; | ||
_proto._onContextLost = function _onContextLost() { | ||
if (this._deck) { | ||
(0, _utils.destroyDeckInstance)(this._deck); | ||
this._deck = null; | ||
} | ||
}, { | ||
key: "_onDrawRaster", | ||
value: function _onDrawRaster() { | ||
if (!this._deck || !this._map) { | ||
return; | ||
} | ||
}; | ||
var deck = this._deck; | ||
_proto._onRemove = function _onRemove() { | ||
var _this$_deck; | ||
var _getViewPropsFromOver = (0, _utils.getViewPropsFromOverlay)(this._map, this._overlay), | ||
width = _getViewPropsFromOver.width, | ||
height = _getViewPropsFromOver.height, | ||
left = _getViewPropsFromOver.left, | ||
top = _getViewPropsFromOver.top, | ||
rest = (0, _objectWithoutProperties2.default)(_getViewPropsFromOver, _excluded); | ||
(_this$_deck = this._deck) === null || _this$_deck === void 0 ? void 0 : _this$_deck.setProps({ | ||
layerFilter: HIDE_ALL_LAYERS | ||
}); | ||
}; | ||
var parentStyle = deck.canvas.parentElement.style; | ||
parentStyle.left = "".concat(left, "px"); | ||
parentStyle.top = "".concat(top, "px"); | ||
var altitude = 10000; | ||
deck.setProps({ | ||
width: width, | ||
height: height, | ||
viewState: _objectSpread({ | ||
altitude: altitude, | ||
repeat: true | ||
}, rest) | ||
}); | ||
deck.redraw(); | ||
_proto._onDrawRaster = function _onDrawRaster() { | ||
if (!this._deck || !this._map) { | ||
return; | ||
} | ||
}, { | ||
key: "_onDrawVectorInterleaved", | ||
value: function _onDrawVectorInterleaved(_ref2) { | ||
var gl = _ref2.gl, | ||
transformer = _ref2.transformer; | ||
if (!this._deck || !this._map) { | ||
return; | ||
} | ||
var deck = this._deck; | ||
var deck = this._deck; | ||
deck.setProps(_objectSpread(_objectSpread({}, (0, _utils.getViewPropsFromCoordinateTransformer)(this._map, transformer)), {}, { | ||
width: null, | ||
height: null | ||
})); | ||
var _getViewPropsFromOver = (0, _utils.getViewPropsFromOverlay)(this._map, this._overlay), | ||
width = _getViewPropsFromOver.width, | ||
height = _getViewPropsFromOver.height, | ||
left = _getViewPropsFromOver.left, | ||
top = _getViewPropsFromOver.top, | ||
rest = (0, _objectWithoutProperties2.default)(_getViewPropsFromOver, _excluded); | ||
if (deck.isInitialized) { | ||
var _framebuffer = (0, _core.getParameters)(gl, 36006); | ||
var parentStyle = deck.canvas.parentElement.style; | ||
parentStyle.left = "".concat(left, "px"); | ||
parentStyle.top = "".concat(top, "px"); | ||
var altitude = 10000; | ||
deck.setProps({ | ||
width: width, | ||
height: height, | ||
viewState: _objectSpread({ | ||
altitude: altitude, | ||
repeat: true | ||
}, rest) | ||
}); | ||
deck.redraw(); | ||
}; | ||
deck.setProps({ | ||
_framebuffer: _framebuffer | ||
_proto._onDrawVectorInterleaved = function _onDrawVectorInterleaved(_ref2) { | ||
var gl = _ref2.gl, | ||
transformer = _ref2.transformer; | ||
if (!this._deck || !this._map) { | ||
return; | ||
} | ||
var deck = this._deck; | ||
deck.setProps(_objectSpread(_objectSpread({}, (0, _utils.getViewPropsFromCoordinateTransformer)(this._map, transformer)), {}, { | ||
width: null, | ||
height: null | ||
})); | ||
if (deck.isInitialized) { | ||
var _framebuffer = (0, _core.getParameters)(gl, 36006); | ||
deck.setProps({ | ||
_framebuffer: _framebuffer | ||
}); | ||
deck.needsRedraw({ | ||
clearRedrawFlags: true | ||
}); | ||
(0, _core.setParameters)(gl, { | ||
viewport: [0, 0, gl.canvas.width, gl.canvas.height], | ||
scissor: [0, 0, gl.canvas.width, gl.canvas.height], | ||
stencilFunc: [519, 0, 255, 519, 0, 255] | ||
}); | ||
(0, _core.withParameters)(gl, GL_STATE, function () { | ||
deck._drawLayers('google-vector', { | ||
clearCanvas: false | ||
}); | ||
deck.needsRedraw({ | ||
clearRedrawFlags: true | ||
}); | ||
(0, _core.setParameters)(gl, { | ||
viewport: [0, 0, gl.canvas.width, gl.canvas.height], | ||
scissor: [0, 0, gl.canvas.width, gl.canvas.height], | ||
stencilFunc: [519, 0, 255, 519, 0, 255] | ||
}); | ||
(0, _core.withParameters)(gl, GL_STATE, function () { | ||
deck._drawLayers('google-vector', { | ||
clearCanvas: false | ||
}); | ||
}); | ||
} | ||
}); | ||
} | ||
}, { | ||
key: "_onDrawVectorOverlay", | ||
value: function _onDrawVectorOverlay(_ref3) { | ||
var transformer = _ref3.transformer; | ||
}; | ||
if (!this._deck || !this._map) { | ||
return; | ||
} | ||
_proto._onDrawVectorOverlay = function _onDrawVectorOverlay(_ref3) { | ||
var transformer = _ref3.transformer; | ||
var deck = this._deck; | ||
deck.setProps(_objectSpread({}, (0, _utils.getViewPropsFromCoordinateTransformer)(this._map, transformer))); | ||
deck.redraw(); | ||
if (!this._deck || !this._map) { | ||
return; | ||
} | ||
}]); | ||
var deck = this._deck; | ||
deck.setProps(_objectSpread({}, (0, _utils.getViewPropsFromCoordinateTransformer)(this._map, transformer))); | ||
deck.redraw(); | ||
}; | ||
return GoogleMapsOverlay; | ||
@@ -310,0 +295,0 @@ }(); |
@@ -1,2 +0,1 @@ | ||
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty"; | ||
import { getParameters, setParameters, withParameters } from '@luma.gl/core'; | ||
@@ -22,10 +21,6 @@ import { createDeckInstance, destroyDeckInstance, getViewPropsFromOverlay, getViewPropsFromCoordinateTransformer } from './utils'; | ||
constructor(props) { | ||
_defineProperty(this, "props", {}); | ||
_defineProperty(this, "_map", null); | ||
_defineProperty(this, "_deck", null); | ||
_defineProperty(this, "_overlay", null); | ||
this.props = {}; | ||
this._map = null; | ||
this._deck = null; | ||
this._overlay = null; | ||
this.setProps({ ...defaultProps, | ||
@@ -212,4 +207,4 @@ ...props | ||
const parentStyle = deck.canvas.parentElement.style; | ||
parentStyle.left = "".concat(left, "px"); | ||
parentStyle.top = "".concat(top, "px"); | ||
parentStyle.left = `${left}px`; | ||
parentStyle.top = `${top}px`; | ||
const altitude = 10000; | ||
@@ -216,0 +211,0 @@ deck.setProps({ |
@@ -5,3 +5,3 @@ { | ||
"license": "MIT", | ||
"version": "8.10.0-alpha.4", | ||
"version": "8.10.0-alpha.5", | ||
"publishConfig": { | ||
@@ -45,3 +45,3 @@ "access": "public" | ||
}, | ||
"gitHead": "8195f543d7673ab0d6755f316c4ad516cff4f049" | ||
"gitHead": "7fce975a84ff492e83bcd2206bedd9ccd4264f50" | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
229034
3888
1