Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@luma.gl/gltools

Package Overview
Dependencies
Maintainers
6
Versions
92
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@luma.gl/gltools - npm Package Compare versions

Comparing version 8.5.8 to 8.5.9

2

dist/dist.min.js

@@ -1,1 +0,1 @@

!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=27)}([function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){var r=n(28),o=n(29),i=n(20),a=n(30);e.exports=function(e){return r(e)||o(e)||i(e)||a()}},function(e,t,n){"use strict";n.d(t,"d",(function(){return o})),n.d(t,"e",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return c}));var r=n(3);function o(e){return"undefined"!=typeof WebGLRenderingContext&&e instanceof WebGLRenderingContext||("undefined"!=typeof WebGL2RenderingContext&&e instanceof WebGL2RenderingContext||Boolean(e&&Number.isFinite(e._version)))}function i(e){return"undefined"!=typeof WebGL2RenderingContext&&e instanceof WebGL2RenderingContext||Boolean(e&&2===e._version)}function a(e){return i(e)?e:null}function u(e){return Object(r.a)(o(e),"Invalid WebGLRenderingContext"),e}function c(e){return Object(r.a)(i(e),"Requires WebGL2"),e}},function(e,t,n){"use strict";function r(e,t){if(!e)throw new Error(t||"luma.gl: assertion failed.")}n.d(t,"a",(function(){return r}))},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},function(e,t,n){"use strict";n.d(t,"c",(function(){return b})),n.d(t,"e",(function(){return w})),n.d(t,"a",(function(){return A})),n.d(t,"b",(function(){return _})),n.d(t,"d",(function(){return E})),n.d(t,"f",(function(){return S}));var r,o,i,a=n(17),u=n.n(a),c=n(1),f=n.n(c),s=n(0),l=n.n(s),d=n(2),b=(r={},l()(r,3042,!1),l()(r,32773,new Float32Array([0,0,0,0])),l()(r,32777,32774),l()(r,34877,32774),l()(r,32969,1),l()(r,32968,0),l()(r,32971,1),l()(r,32970,0),l()(r,3106,new Float32Array([0,0,0,0])),l()(r,3107,[!0,!0,!0,!0]),l()(r,2884,!1),l()(r,2885,1029),l()(r,2929,!1),l()(r,2931,1),l()(r,2932,513),l()(r,2928,new Float32Array([0,1])),l()(r,2930,!0),l()(r,3024,!0),l()(r,35725,null),l()(r,36006,null),l()(r,36007,null),l()(r,34229,null),l()(r,34964,null),l()(r,32873,null),l()(r,34068,null),l()(r,2886,2305),l()(r,33170,4352),l()(r,2849,1),l()(r,32823,!1),l()(r,32824,0),l()(r,10752,0),l()(r,32926,!1),l()(r,32928,!1),l()(r,32938,1),l()(r,32939,!1),l()(r,3089,!1),l()(r,3088,new Int32Array([0,0,1024,1024])),l()(r,2960,!1),l()(r,2961,0),l()(r,2968,4294967295),l()(r,36005,4294967295),l()(r,2962,519),l()(r,2967,0),l()(r,2963,4294967295),l()(r,34816,519),l()(r,36003,0),l()(r,36004,4294967295),l()(r,2964,7680),l()(r,2965,7680),l()(r,2966,7680),l()(r,34817,7680),l()(r,34818,7680),l()(r,34819,7680),l()(r,2978,[0,0,1024,1024]),l()(r,3333,4),l()(r,3317,4),l()(r,37440,!1),l()(r,37441,!1),l()(r,37443,37444),l()(r,36389,null),l()(r,36662,null),l()(r,36663,null),l()(r,35053,null),l()(r,35055,null),l()(r,35869,null),l()(r,32874,null),l()(r,35723,4352),l()(r,36010,null),l()(r,35977,!1),l()(r,3330,0),l()(r,3332,0),l()(r,3331,0),l()(r,3314,0),l()(r,32878,0),l()(r,3316,0),l()(r,3315,0),l()(r,32877,0),r),v=function(e,t,n){return t?e.enable(n):e.disable(n)},g=function(e,t,n){return e.hint(n,t)},h=function(e,t,n){return e.pixelStorei(n,t)},p=function(e,t,n){var r;return r=36006===n?Object(d.e)(e)?36009:36160:36008,e.bindFramebuffer(r,t)},y=function(e,t,n){var r,o=(r={},l()(r,34964,[34962]),l()(r,36662,[36662]),l()(r,36663,[36663]),l()(r,35053,[35051]),l()(r,35055,[35052]),r)[n];e.bindBuffer(o,t)},m=function(e,t,n){var r,o=(r={},l()(r,32873,[3553]),l()(r,35869,[35866]),l()(r,32874,[32879]),l()(r,34068,[34067]),r)[n];e.bindTexture(o,t)};function x(e){return Array.isArray(e)||ArrayBuffer.isView(e)}var w=(o={},l()(o,3042,v),l()(o,32773,(function(e,t){return e.blendColor.apply(e,f()(t))})),l()(o,32777,"blendEquation"),l()(o,34877,"blendEquation"),l()(o,32969,"blendFunc"),l()(o,32968,"blendFunc"),l()(o,32971,"blendFunc"),l()(o,32970,"blendFunc"),l()(o,3106,(function(e,t){return e.clearColor.apply(e,f()(t))})),l()(o,3107,(function(e,t){return e.colorMask.apply(e,f()(t))})),l()(o,2884,v),l()(o,2885,(function(e,t){return e.cullFace(t)})),l()(o,2929,v),l()(o,2931,(function(e,t){return e.clearDepth(t)})),l()(o,2932,(function(e,t){return e.depthFunc(t)})),l()(o,2928,(function(e,t){return e.depthRange.apply(e,f()(t))})),l()(o,2930,(function(e,t){return e.depthMask(t)})),l()(o,3024,v),l()(o,35723,g),l()(o,35725,(function(e,t){return e.useProgram(t)})),l()(o,36007,(function(e,t){return e.bindRenderbuffer(36161,t)})),l()(o,36389,(function(e,t){return e.bindTransformFeedback&&e.bindTransformFeedback(36386,t)})),l()(o,34229,(function(e,t){return e.bindVertexArray(t)})),l()(o,36006,p),l()(o,36010,p),l()(o,34964,y),l()(o,36662,y),l()(o,36663,y),l()(o,35053,y),l()(o,35055,y),l()(o,32873,m),l()(o,35869,m),l()(o,32874,m),l()(o,34068,m),l()(o,2886,(function(e,t){return e.frontFace(t)})),l()(o,33170,g),l()(o,2849,(function(e,t){return e.lineWidth(t)})),l()(o,32823,v),l()(o,32824,"polygonOffset"),l()(o,10752,"polygonOffset"),l()(o,35977,v),l()(o,32926,v),l()(o,32928,v),l()(o,32938,"sampleCoverage"),l()(o,32939,"sampleCoverage"),l()(o,3089,v),l()(o,3088,(function(e,t){return e.scissor.apply(e,f()(t))})),l()(o,2960,v),l()(o,2961,(function(e,t){return e.clearStencil(t)})),l()(o,2968,(function(e,t){return e.stencilMaskSeparate(1028,t)})),l()(o,36005,(function(e,t){return e.stencilMaskSeparate(1029,t)})),l()(o,2962,"stencilFuncFront"),l()(o,2967,"stencilFuncFront"),l()(o,2963,"stencilFuncFront"),l()(o,34816,"stencilFuncBack"),l()(o,36003,"stencilFuncBack"),l()(o,36004,"stencilFuncBack"),l()(o,2964,"stencilOpFront"),l()(o,2965,"stencilOpFront"),l()(o,2966,"stencilOpFront"),l()(o,34817,"stencilOpBack"),l()(o,34818,"stencilOpBack"),l()(o,34819,"stencilOpBack"),l()(o,2978,(function(e,t){return e.viewport.apply(e,f()(t))})),l()(o,3333,h),l()(o,3317,h),l()(o,37440,h),l()(o,37441,h),l()(o,37443,h),l()(o,3330,h),l()(o,3332,h),l()(o,3331,h),l()(o,3314,h),l()(o,32878,h),l()(o,3316,h),l()(o,3315,h),l()(o,32877,h),l()(o,"framebuffer",(function(e,t){var n=t&&"handle"in t?t.handle:t;return e.bindFramebuffer(36160,n)})),l()(o,"blend",(function(e,t){return t?e.enable(3042):e.disable(3042)})),l()(o,"blendColor",(function(e,t){return e.blendColor.apply(e,f()(t))})),l()(o,"blendEquation",(function(e,t){t=x(t)?t:[t,t],e.blendEquationSeparate.apply(e,f()(t))})),l()(o,"blendFunc",(function(e,t){t=x(t)&&2===t.length?[].concat(f()(t),f()(t)):t,e.blendFuncSeparate.apply(e,f()(t))})),l()(o,"clearColor",(function(e,t){return e.clearColor.apply(e,f()(t))})),l()(o,"clearDepth",(function(e,t){return e.clearDepth(t)})),l()(o,"clearStencil",(function(e,t){return e.clearStencil(t)})),l()(o,"colorMask",(function(e,t){return e.colorMask.apply(e,f()(t))})),l()(o,"cull",(function(e,t){return t?e.enable(2884):e.disable(2884)})),l()(o,"cullFace",(function(e,t){return e.cullFace(t)})),l()(o,"depthTest",(function(e,t){return t?e.enable(2929):e.disable(2929)})),l()(o,"depthFunc",(function(e,t){return e.depthFunc(t)})),l()(o,"depthMask",(function(e,t){return e.depthMask(t)})),l()(o,"depthRange",(function(e,t){return e.depthRange.apply(e,f()(t))})),l()(o,"dither",(function(e,t){return t?e.enable(3024):e.disable(3024)})),l()(o,"derivativeHint",(function(e,t){e.hint(35723,t)})),l()(o,"frontFace",(function(e,t){return e.frontFace(t)})),l()(o,"mipmapHint",(function(e,t){return e.hint(33170,t)})),l()(o,"lineWidth",(function(e,t){return e.lineWidth(t)})),l()(o,"polygonOffsetFill",(function(e,t){return t?e.enable(32823):e.disable(32823)})),l()(o,"polygonOffset",(function(e,t){return e.polygonOffset.apply(e,f()(t))})),l()(o,"sampleCoverage",(function(e,t){return e.sampleCoverage.apply(e,f()(t))})),l()(o,"scissorTest",(function(e,t){return t?e.enable(3089):e.disable(3089)})),l()(o,"scissor",(function(e,t){return e.scissor.apply(e,f()(t))})),l()(o,"stencilTest",(function(e,t){return t?e.enable(2960):e.disable(2960)})),l()(o,"stencilMask",(function(e,t){var n=t=x(t)?t:[t,t],r=u()(n,2),o=r[0],i=r[1];e.stencilMaskSeparate(1028,o),e.stencilMaskSeparate(1029,i)})),l()(o,"stencilFunc",(function(e,t){var n=t=x(t)&&3===t.length?[].concat(f()(t),f()(t)):t,r=u()(n,6),o=r[0],i=r[1],a=r[2],c=r[3],s=r[4],l=r[5];e.stencilFuncSeparate(1028,o,i,a),e.stencilFuncSeparate(1029,c,s,l)})),l()(o,"stencilOp",(function(e,t){var n=t=x(t)&&3===t.length?[].concat(f()(t),f()(t)):t,r=u()(n,6),o=r[0],i=r[1],a=r[2],c=r[3],s=r[4],l=r[5];e.stencilOpSeparate(1028,o,i,a),e.stencilOpSeparate(1029,c,s,l)})),l()(o,"viewport",(function(e,t){return e.viewport.apply(e,f()(t))})),o);function O(e,t,n){return void 0!==t[e]?t[e]:n[e]}var A={blendEquation:function(e,t,n){return e.blendEquationSeparate(O(32777,t,n),O(34877,t,n))},blendFunc:function(e,t,n){return e.blendFuncSeparate(O(32969,t,n),O(32968,t,n),O(32971,t,n),O(32970,t,n))},polygonOffset:function(e,t,n){return e.polygonOffset(O(32824,t,n),O(10752,t,n))},sampleCoverage:function(e,t,n){return e.sampleCoverage(O(32938,t,n),O(32939,t,n))},stencilFuncFront:function(e,t,n){return e.stencilFuncSeparate(1028,O(2962,t,n),O(2967,t,n),O(2963,t,n))},stencilFuncBack:function(e,t,n){return e.stencilFuncSeparate(1029,O(34816,t,n),O(36003,t,n),O(36004,t,n))},stencilOpFront:function(e,t,n){return e.stencilOpSeparate(1028,O(2964,t,n),O(2965,t,n),O(2966,t,n))},stencilOpBack:function(e,t,n){return e.stencilOpSeparate(1029,O(34817,t,n),O(34818,t,n),O(34819,t,n))}},_={enable:function(e,t){return e(l()({},t,!0))},disable:function(e,t){return e(l()({},t,!1))},pixelStorei:function(e,t,n){return e(l()({},t,n))},hint:function(e,t,n){return e(l()({},t,n))},useProgram:function(e,t){return e(l()({},35725,t))},bindRenderbuffer:function(e,t,n){return e(l()({},36007,n))},bindTransformFeedback:function(e,t,n){return e(l()({},36389,n))},bindVertexArray:function(e,t){return e(l()({},34229,t))},bindFramebuffer:function(e,t,n){var r;switch(t){case 36160:return e((r={},l()(r,36006,n),l()(r,36010,n),r));case 36009:return e(l()({},36006,n));case 36008:return e(l()({},36010,n));default:return null}},bindBuffer:function(e,t,n){var r,o=(r={},l()(r,34962,[34964]),l()(r,36662,[36662]),l()(r,36663,[36663]),l()(r,35051,[35053]),l()(r,35052,[35055]),r)[t];return o?e(l()({},o,n)):{valueChanged:!0}},bindTexture:function(e,t,n){var r,o=(r={},l()(r,3553,[32873]),l()(r,35866,[35869]),l()(r,32879,[32874]),l()(r,34067,[34068]),r)[t];return o?e(l()({},o,n)):null},blendColor:function(e,t,n,r,o){return e(l()({},32773,new Float32Array([t,n,r,o])))},blendEquation:function(e,t){var n;return e((n={},l()(n,32777,t),l()(n,34877,t),n))},blendEquationSeparate:function(e,t,n){var r;return e((r={},l()(r,32777,t),l()(r,34877,n),r))},blendFunc:function(e,t,n){var r;return e((r={},l()(r,32969,t),l()(r,32968,n),l()(r,32971,t),l()(r,32970,n),r))},blendFuncSeparate:function(e,t,n,r,o){var i;return e((i={},l()(i,32969,t),l()(i,32968,n),l()(i,32971,r),l()(i,32970,o),i))},clearColor:function(e,t,n,r,o){return e(l()({},3106,new Float32Array([t,n,r,o])))},clearDepth:function(e,t){return e(l()({},2931,t))},clearStencil:function(e,t){return e(l()({},2961,t))},colorMask:function(e,t,n,r,o){return e(l()({},3107,[t,n,r,o]))},cullFace:function(e,t){return e(l()({},2885,t))},depthFunc:function(e,t){return e(l()({},2932,t))},depthRange:function(e,t,n){return e(l()({},2928,new Float32Array([t,n])))},depthMask:function(e,t){return e(l()({},2930,t))},frontFace:function(e,t){return e(l()({},2886,t))},lineWidth:function(e,t){return e(l()({},2849,t))},polygonOffset:function(e,t,n){var r;return e((r={},l()(r,32824,t),l()(r,10752,n),r))},sampleCoverage:function(e,t,n){var r;return e((r={},l()(r,32938,t),l()(r,32939,n),r))},scissor:function(e,t,n,r,o){return e(l()({},3088,new Int32Array([t,n,r,o])))},stencilMask:function(e,t){var n;return e((n={},l()(n,2968,t),l()(n,36005,t),n))},stencilMaskSeparate:function(e,t,n){return e(l()({},1028===t?2968:36005,n))},stencilFunc:function(e,t,n,r){var o;return e((o={},l()(o,2962,t),l()(o,2967,n),l()(o,2963,r),l()(o,34816,t),l()(o,36003,n),l()(o,36004,r),o))},stencilFuncSeparate:function(e,t,n,r,o){var i;return e((i={},l()(i,1028===t?2962:34816,n),l()(i,1028===t?2967:36003,r),l()(i,1028===t?2963:36004,o),i))},stencilOp:function(e,t,n,r){var o;return e((o={},l()(o,2964,t),l()(o,2965,n),l()(o,2966,r),l()(o,34817,t),l()(o,34818,n),l()(o,34819,r),o))},stencilOpSeparate:function(e,t,n,r,o){var i;return e((i={},l()(i,1028===t?2964:34817,n),l()(i,1028===t?2965:34818,r),l()(i,1028===t?2966:34819,o),i))},viewport:function(e,t,n,r,o){return e(l()({},2978,[t,n,r,o]))}},j=function(e,t){return e.isEnabled(t)},E=(i={},l()(i,3042,j),l()(i,2884,j),l()(i,2929,j),l()(i,3024,j),l()(i,32823,j),l()(i,32926,j),l()(i,32928,j),l()(i,3089,j),l()(i,2960,j),l()(i,35977,j),i),S=new Set([34016,36388,36387,35983,35368,34965,35739,35738,3074,34853,34854,34855,34856,34857,34858,34859,34860,34861,34862,34863,34864,34865,34866,34867,34868,35097])},function(e,t,n){e.exports=n(32)},function(e,t,n){"use strict";(function(e){n.d(t,"c",(function(){return g})),n.d(t,"b",(function(){return h})),n.d(t,"a",(function(){return p}));var r=n(11),o=n.n(r),i=n(12),a=n.n(i),u=n(5),c=n(8),f=n(3),s=n(16);function l(e,t){var n=e[t].bind(e);e[t]=function(t){return void 0===t||u.f.has(t)?n(t):(t in e.state.cache||(e.state.cache[t]=n(t)),e.state.enable?e.state.cache[t]:n(t))},Object.defineProperty(e[t],"name",{value:"".concat(t,"-from-cache"),configurable:!1})}function d(e,t,n){if(e[t]){var r=e[t].bind(e);e[t]=function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];var a=n.apply(void 0,[e.state._updateCache].concat(o)),u=a.valueChanged,c=a.oldValue;return u&&r.apply(void 0,o),c},Object.defineProperty(e[t],"name",{value:"".concat(t,"-to-cache"),configurable:!1})}}function b(e){var t=e.useProgram.bind(e);e.useProgram=function(n){e.state.program!==n&&(t(n),e.state.program=n)}}var v=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.copyState,i=void 0!==r&&r,a=n.log,f=void 0===a?function(){}:a;o()(this,e),this.gl=t,this.program=null,this.stateStack=[],this.enable=!0,this.cache=i?Object(c.a)(t):Object.assign({},u.c),this.log=f,this._updateCache=this._updateCache.bind(this),Object.seal(this)}return a()(e,[{key:"push",value:function(){this.stateStack.push({})}},{key:"pop",value:function(){Object(f.a)(this.stateStack.length>0);var e=this.stateStack[this.stateStack.length-1];Object(c.c)(this.gl,e),this.stateStack.pop()}},{key:"_updateCache",value:function(e){var t,n=!1,r=this.stateStack.length>0&&this.stateStack[this.stateStack.length-1];for(var o in e){Object(f.a)(void 0!==o);var i=e[o],a=this.cache[o];Object(s.a)(i,a)||(n=!0,t=a,r&&!(o in r)&&(r[o]=a),this.cache[o]=i)}return{valueChanged:n,oldValue:t}}}]),e}();function g(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.enable,o=void 0===r||r,i=n.copyState;if(Object(f.a)(void 0!==i),!t.state){var a=void 0!==e?e:window,c=a.polyfillContext;for(var s in c&&c(t),t.state=new v(t,{copyState:i}),b(t),u.b){var g=u.b[s];d(t,s,g)}l(t,"getParameter"),l(t,"isEnabled")}return t.state.enable=o,t}function h(e){e.state||g(e,{copyState:!1}),e.state.push()}function p(e){Object(f.a)(e.state),e.state.pop()}}).call(this,n(14))},function(e,t,n){"use strict";n.d(t,"c",(function(){return s})),n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return d})),n.d(t,"d",(function(){return b}));var r=n(5),o=n(7),i=n(3),a=n(2),u=n(16);function c(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t){if(Object(i.a)(Object(a.d)(e),"setParameters requires a WebGL context"),!Object(u.b)(t)){var n={};for(var o in t){var c=Number(o),f=r.e[o];f&&("string"==typeof f?n[f]=!0:f(e,t[o],c))}var s=e.state&&e.state.cache;if(s)for(var l in n){(0,r.a[l])(e,t,s)}}}function l(e,t){if("number"==typeof(t=t||r.c)){var n=t,o=r.d[n];return o?o(e,n):e.getParameter(n)}var i,a={},u=c(Array.isArray(t)?t:Object.keys(t));try{for(u.s();!(i=u.n()).done;){var f=i.value,s=r.d[f];a[f]=s?s(e,Number(f)):e.getParameter(Number(f))}}catch(e){u.e(e)}finally{u.f()}return a}function d(e){s(e,r.c)}function b(e,t,n){if(Object(u.b)(t))return n(e);var r,i=t.nocatch,a=void 0===i||i;if(Object(o.b)(e),s(e,t),a)r=n(e),Object(o.a)(e);else try{r=n(e)}finally{Object(o.a)(e)}return r}},function(e,t,n){"use strict";(function(e,r){n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return u}));var o=n(4),i={self:"undefined"!=typeof self&&self,window:"undefined"!=typeof window&&window,global:void 0!==e&&e,document:"undefined"!=typeof document&&document,process:"object"===(void 0===r?"undefined":n.n(o)()(r))&&r},a=i.window||i.self||i.global,u=i.process||{};console}).call(this,n(14),n(10))},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function u(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var c,f=[],s=!1,l=-1;function d(){s&&c&&(s=!1,c.length?f=c.concat(f):l=-1,f.length&&b())}function b(){if(!s){var e=u(d);s=!0;for(var t=f.length;t;){for(c=f,f=[];++l<t;)c&&c[l].run();l=-1,t=f.length}c=null,s=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function v(e,t){this.fun=e,this.array=t}function g(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];f.push(new v(e,t)),1!==f.length||s||u(b)},v.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return d}));var r,o,i=n(0),a=n.n(i),u=n(3),c=n(2),f=function(e){return Object(c.e)(e)?void 0:0},s=(r={},a()(r,3074,(function(e){return Object(c.e)(e)?void 0:36064})),a()(r,35723,(function(e){return Object(c.e)(e)?void 0:4352})),a()(r,35977,f),a()(r,32937,f),a()(r,36795,(function(e,t){var n=Object(c.e)(e)?e.getExtension("EXT_disjoint_timer_query_webgl2"):e.getExtension("EXT_disjoint_timer_query");return n&&n.GPU_DISJOINT_EXT?t(n.GPU_DISJOINT_EXT):0})),a()(r,37445,(function(e,t){var n=e.getExtension("WEBGL_debug_renderer_info");return t(n&&n.UNMASKED_VENDOR_WEBGL||7936)})),a()(r,37446,(function(e,t){var n=e.getExtension("WEBGL_debug_renderer_info");return t(n&&n.UNMASKED_RENDERER_WEBGL||7937)})),a()(r,34047,(function(e,t){var n=e.luma.extensions.EXT_texture_filter_anisotropic;return n?t(n.MAX_TEXTURE_MAX_ANISOTROPY_EXT):1})),a()(r,32883,f),a()(r,35071,f),a()(r,37447,f),a()(r,36063,(function(e,t){if(!Object(c.e)(e)){var n=e.getExtension("WEBGL_draw_buffers");return n?t(n.MAX_COLOR_ATTACHMENTS_WEBGL):0}})),a()(r,35379,f),a()(r,35374,f),a()(r,35377,f),a()(r,34852,(function(e){if(!Object(c.e)(e)){var t=e.getExtension("WEBGL_draw_buffers");return t?t.MAX_DRAW_BUFFERS_WEBGL:0}})),a()(r,36203,(function(e){return e.getExtension("OES_element_index")?2147483647:65535})),a()(r,33001,(function(e){return e.getExtension("OES_element_index")?16777216:65535})),a()(r,33e3,(function(e){return 16777216})),a()(r,37157,f),a()(r,35373,f),a()(r,35657,f),a()(r,36183,f),a()(r,37137,f),a()(r,34045,f),a()(r,35978,f),a()(r,35979,f),a()(r,35968,f),a()(r,35376,f),a()(r,35375,f),a()(r,35659,f),a()(r,37154,f),a()(r,35371,f),a()(r,35658,f),a()(r,35076,f),a()(r,35077,f),a()(r,35380,f),r);var l=(o={},a()(o,"OES_vertex_array_object",{meta:{suffix:"OES"},createVertexArray:function(){Object(u.a)(!1,"VertexArray requires WebGL2 or OES_vertex_array_object extension")},deleteVertexArray:function(){},bindVertexArray:function(){},isVertexArray:function(){return!1}}),a()(o,"ANGLE_instanced_arrays",{meta:{suffix:"ANGLE"},vertexAttribDivisor:function(e,t){Object(u.a)(0===t,"WebGL instanced rendering not supported")},drawElementsInstanced:function(){},drawArraysInstanced:function(){}}),a()(o,"WEBGL_draw_buffers",{meta:{suffix:"WEBGL"},drawBuffers:function(){Object(u.a)(!1)}}),a()(o,"EXT_disjoint_timer_query",{meta:{suffix:"EXT"},createQuery:function(){Object(u.a)(!1)},deleteQuery:function(){Object(u.a)(!1)},beginQuery:function(){Object(u.a)(!1)},endQuery:function(){},getQuery:function(e,t){return this.getQueryObject(e,t)},getQueryParameter:function(e,t){return this.getQueryObject(e,t)},getQueryObject:function(){}}),o),d={readBuffer:function(e,t,n){Object(c.e)(e)&&t(n)},getVertexAttrib:function(e,t,n,r){var o,i=function(e,t){return{webgl2:Object(c.e)(e),ext:e.getExtension(t)}}(e,"ANGLE_instanced_arrays"),a=i.webgl2,u=i.ext;switch(r){case 35069:o=!!a&&void 0;break;case 35070:o=a||u?void 0:0}return void 0!==o?o:t(n,r)},getProgramParameter:function(e,t,n,r){if(!Object(c.e)(e))switch(r){case 35967:return 35981;case 35971:case 35382:return 0}return t(n,r)},getInternalformatParameter:function(e,t,n,r,o){if(!Object(c.e)(e))switch(o){case 32937:return new Int32Array([0])}return e.getInternalformatParameter(n,r,o)},getTexParameter:function(e,t,n,r){switch(r){case 34046:var o=e.luma.extensions.EXT_texture_filter_anisotropic;r=o&&o.TEXTURE_MAX_ANISOTROPY_EXT||34046}return t(n,r)},getParameter:function(e,t,n){var r=s[n],o="function"==typeof r?r(e,t,n):r;return void 0!==o?o:t(n)},hint:function(e,t,n,r){return t(n,r)}}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";function r(e){for(var t in e)return!1;return!0}function o(e,t){if(e===t)return!0;var n=Array.isArray(e)||ArrayBuffer.isView(e),r=Array.isArray(t)||ArrayBuffer.isView(t);if(n&&r&&e.length===t.length){for(var o=0;o<e.length;++o)if(e[o]!==t[o])return!1;return!0}return!1}n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return o}))},function(e,t,n){var r=n(34),o=n(35),i=n(20),a=n(36);e.exports=function(e,t){return r(e)||o(e,t)||i(e,t)||a()}},function(e,t,n){"use strict";(function(e){var r=n(15);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(t){if("undefined"!=typeof window&&"object"===(0,o.default)(window.process)&&"renderer"===window.process.type)return!0;if(void 0!==e&&"object"===(0,o.default)(e.versions)&&Boolean(e.versions.electron))return!0;var n="object"===("undefined"==typeof navigator?"undefined":(0,o.default)(navigator))&&"string"==typeof navigator.userAgent&&navigator.userAgent,r=t||n;if(r&&r.indexOf("Electron")>=0)return!0;return!1};var o=r(n(4))}).call(this,n(10))},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},function(e,t,n){var r=n(19);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return c}));var r=n(26),o=n(3),i=n(13);function a(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e){e.luma=e.luma||{};var t=e.luma;return t.polyfilled||(Object(r.a)(e),function(e){e.luma.extensions={};var t,n=a(e.getSupportedExtensions()||[]);try{for(n.s();!(t=n.n()).done;){var r=t.value;e.luma[r]=e.getExtension(r)}}catch(e){n.e(e)}finally{n.f()}}(e),function(e,t){var n,r=a(Object.getOwnPropertyNames(t));try{for(r.s();!(n=r.n()).done;){var o=n.value;"overrides"!==o&&f(e,{extension:o,target:e.luma,target2:e})}}catch(e){r.e(e)}finally{r.f()}}(e,i.b),function(e,t){var n=t.target,r=t.target2;Object.keys(i.a).forEach((function(t){if("function"==typeof i.a[t]){var o=e[t]?e[t].bind(e):function(){},a=i.a[t].bind(null,e,o);n[t]=a,r[t]=a}}))}(e,{target:t,target2:e}),t.polyfilled=!0),e}function f(e,t){var n=t.extension,r=t.target,a=t.target2,u=i.b[n];Object(o.a)(u);for(var c=u.meta,f=(void 0===c?{}:c).suffix,s=void 0===f?"":f,l=e.getExtension(n),d=function(){var t=v[b],n="".concat(t).concat(s),o=null;"meta"===t||"function"==typeof e[t]||(l&&"function"==typeof l[n]?o=function(){return l[n].apply(l,arguments)}:"function"==typeof u[t]&&(o=u[t].bind(r))),o&&(r[t]=o,a[t]=o)},b=0,v=Object.keys(u);b<v.length;b++)d()}(void 0!==e?e:window).polyfillContext=c}).call(this,n(14))},function(e,t,n){"use strict";(function(e,r){var o=n(15);Object.defineProperty(t,"__esModule",{value:!0}),t.console=t.process=t.document=t.global=t.window=t.self=void 0;var i=o(n(4)),a={self:"undefined"!=typeof self&&self,window:"undefined"!=typeof window&&window,global:void 0!==e&&e,document:"undefined"!=typeof document&&document,process:"object"===(void 0===r?"undefined":(0,i.default)(r))&&r},u=a.self||a.window||a.global;t.self=u;var c=a.window||a.self||a.global;t.window=c;var f=a.global||a.self||a.window;t.global=f;var s=a.document||{};t.document=s;var l=a.process||{};t.process=l;var d=console;t.console=d}).call(this,n(14),n(10))},function(e,t,n){"use strict";(function(e){var r=n(15);Object.defineProperty(t,"__esModule",{value:!0}),t.default=a,t.isBrowserMainThread=function(){return a()&&"undefined"!=typeof document};var o=r(n(4)),i=r(n(18));function a(){return!("object"===(void 0===e?"undefined":(0,o.default)(e))&&"[object process]"===String(e)&&!e.browser)||(0,i.default)()}}).call(this,n(10))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return a}));var r=n(4),o=n.n(r),i=n(25);function a(){return!("object"===(void 0===e?"undefined":o()(e))&&"[object process]"===String(e)&&!e.browser)||Object(i.a)()}}).call(this,n(10))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i}));var r=n(4),o=n.n(r);function i(t){if("undefined"!=typeof window&&"object"===o()(window.process)&&"renderer"===window.process.type)return!0;if(void 0!==e&&"object"===o()(e.versions)&&Boolean(e.versions.electron))return!0;var n="object"===("undefined"==typeof navigator?"undefined":o()(navigator))&&"string"==typeof navigator.userAgent&&navigator.userAgent,r=t||n;return!!(r&&r.indexOf("Electron")>=0)}}).call(this,n(10))},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(6),o={};function i(e,t){var n;o[e]=!0,void 0!==t&&(n=t,r.global.console&&r.global.console.error&&r.global.console.error(n))}var a=function e(t){var n=t.gl;this.ext=t,this.isAlive=!0,this.hasBeenBound=!1,this.elementArrayBuffer=null,this.attribs=new Array(t.maxVertexAttribs);for(var r=0;r<this.attribs.length;r++){var o=new e.VertexAttrib(n);this.attribs[r]=o}this.maxAttrib=0};(a.VertexAttrib=function(e){this.enabled=!1,this.buffer=null,this.size=4,this.type=5126,this.normalized=!1,this.stride=16,this.offset=0,this.cached="",this.recache()}).prototype.recache=function(){this.cached=[this.size,this.type,this.normalized,this.stride,this.offset].join(":")};var u=function(e){var t=this;this.gl=e,function(e){var t=e.getError;e.getError=function(){var n;do{0!==(n=t.apply(e))&&(o[n]=!0)}while(0!==n);for(n in o)if(o[n])return delete o[n],parseInt(n,10);return 0}}(e);var n=this.original={getParameter:e.getParameter,enableVertexAttribArray:e.enableVertexAttribArray,disableVertexAttribArray:e.disableVertexAttribArray,bindBuffer:e.bindBuffer,getVertexAttrib:e.getVertexAttrib,vertexAttribPointer:e.vertexAttribPointer};e.getParameter=function(e){return e===t.VERTEX_ARRAY_BINDING_OES?t.currentVertexArrayObject===t.defaultVertexArrayObject?null:t.currentVertexArrayObject:n.getParameter.apply(this,arguments)},e.enableVertexAttribArray=function(e){var r=t.currentVertexArrayObject;r.maxAttrib=Math.max(r.maxAttrib,e);var o=r.attribs[e];return o.enabled=!0,n.enableVertexAttribArray.apply(this,arguments)},e.disableVertexAttribArray=function(e){var r=t.currentVertexArrayObject;r.maxAttrib=Math.max(r.maxAttrib,e);var o=r.attribs[e];return o.enabled=!1,n.disableVertexAttribArray.apply(this,arguments)},e.bindBuffer=function(e,r){switch(e){case 34962:t.currentArrayBuffer=r;break;case 34963:t.currentVertexArrayObject.elementArrayBuffer=r}return n.bindBuffer.apply(this,arguments)},e.getVertexAttrib=function(e,r){var o=t.currentVertexArrayObject,i=o.attribs[e];switch(r){case 34975:return i.buffer;case 34338:return i.enabled;case 34339:return i.size;case 34340:return i.stride;case 34341:return i.type;case 34922:return i.normalized;default:return n.getVertexAttrib.apply(this,arguments)}},e.vertexAttribPointer=function(e,r,o,i,a,u){var c=t.currentVertexArrayObject;c.maxAttrib=Math.max(c.maxAttrib,e);var f=c.attribs[e];return f.buffer=t.currentArrayBuffer,f.size=r,f.type=o,f.normalized=i,f.stride=a,f.offset=u,f.recache(),n.vertexAttribPointer.apply(this,arguments)},e.instrumentExtension&&e.instrumentExtension(this,"OES_vertex_array_object"),e.canvas&&e.canvas.addEventListener("webglcontextrestored",(function(){var e;e="OESVertexArrayObject emulation library context restored",r.global.console&&r.global.console.log&&r.global.console.log(e),t.reset_()}),!0),this.reset_()};function c(e){if("function"!=typeof e.createVertexArray){var t=e.getSupportedExtensions;e.getSupportedExtensions=function(){var e=t.call(this)||[];return e.indexOf("OES_vertex_array_object")<0&&e.push("OES_vertex_array_object"),e};var n=e.getExtension;e.getExtension=function(t){var r=n.call(this,t);return r||("OES_vertex_array_object"!==t?null:(e.__OESVertexArrayObject||(this.__OESVertexArrayObject=new u(this)),this.__OESVertexArrayObject))}}}u.prototype.VERTEX_ARRAY_BINDING_OES=34229,u.prototype.reset_=function(){if(void 0!==this.vertexArrayObjects)for(var e=0;e<this.vertexArrayObjects.length;++e)this.vertexArrayObjects.isAlive=!1;var t=this.gl;this.maxVertexAttribs=t.getParameter(34921),this.defaultVertexArrayObject=new a(this),this.currentVertexArrayObject=null,this.currentArrayBuffer=null,this.vertexArrayObjects=[this.defaultVertexArrayObject],this.bindVertexArrayOES(null)},u.prototype.createVertexArrayOES=function(){var e=new a(this);return this.vertexArrayObjects.push(e),e},u.prototype.deleteVertexArrayOES=function(e){e.isAlive=!1,this.vertexArrayObjects.splice(this.vertexArrayObjects.indexOf(e),1),this.currentVertexArrayObject===e&&this.bindVertexArrayOES(null)},u.prototype.isVertexArrayOES=function(e){return!!(e&&e instanceof a&&e.hasBeenBound&&e.ext===this)},u.prototype.bindVertexArrayOES=function(e){var t=this.gl;if(!e||e.isAlive){var n=this.original,r=this.currentVertexArrayObject;this.currentVertexArrayObject=e||this.defaultVertexArrayObject,this.currentVertexArrayObject.hasBeenBound=!0;var o=this.currentVertexArrayObject;if(r!==o){r&&o.elementArrayBuffer===r.elementArrayBuffer||n.bindBuffer.call(t,34963,o.elementArrayBuffer);for(var a=this.currentArrayBuffer,u=Math.max(r?r.maxAttrib:0,o.maxAttrib),c=0;c<=u;c++){var f=o.attribs[c],s=r?r.attribs[c]:null;if(r&&f.enabled===s.enabled||(f.enabled?n.enableVertexAttribArray.call(t,c):n.disableVertexAttribArray.call(t,c)),f.enabled){var l=!1;r&&f.buffer===s.buffer||(a!==f.buffer&&(n.bindBuffer.call(t,34962,f.buffer),a=f.buffer),l=!0),(l||f.cached!==s.cached)&&n.vertexAttribPointer.call(t,c,f.size,f.type,f.normalized,f.stride,f.offset)}}this.currentArrayBuffer!==a&&n.bindBuffer.call(t,34962,this.currentArrayBuffer)}}else i(1282,"bindVertexArrayOES: attempt to bind deleted arrayObject")}},function(e,t,n){(function(t){var r=n(37),o="undefined"==typeof window?t:window;o.luma=o.luma||{},e.exports=Object.assign(o.luma,r)}).call(this,n(14))},function(e,t,n){var r=n(19);e.exports=function(e){if(Array.isArray(e))return r(e)}},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t){},function(e,t,n){"use strict";var r=n(15),o=n(4);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"self",{enumerable:!0,get:function(){return i.self}}),Object.defineProperty(t,"window",{enumerable:!0,get:function(){return i.window}}),Object.defineProperty(t,"global",{enumerable:!0,get:function(){return i.global}}),Object.defineProperty(t,"document",{enumerable:!0,get:function(){return i.document}}),Object.defineProperty(t,"process",{enumerable:!0,get:function(){return i.process}}),Object.defineProperty(t,"console",{enumerable:!0,get:function(){return i.console}}),Object.defineProperty(t,"isBrowser",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"isBrowserMainThread",{enumerable:!0,get:function(){return a.isBrowserMainThread}}),Object.defineProperty(t,"getBrowser",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"isMobile",{enumerable:!0,get:function(){return u.isMobile}}),Object.defineProperty(t,"isElectron",{enumerable:!0,get:function(){return c.default}});var i=n(22),a=s(n(23)),u=s(n(33)),c=r(n(18));function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(f=function(e){return e?n:t})(e)}function s(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=f(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var u=i?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(r,a,u):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}},function(e,t,n){"use strict";var r=n(15);Object.defineProperty(t,"__esModule",{value:!0}),t.isMobile=function(){return void 0!==o.window.orientation},t.default=function(e){if(!e&&!(0,i.default)())return"Node";if((0,a.default)(e))return"Electron";var t="undefined"!=typeof navigator?navigator:{},n=e||t.userAgent||"";if(n.indexOf("Edge")>-1)return"Edge";var r=-1!==n.indexOf("MSIE "),u=-1!==n.indexOf("Trident/");if(r||u)return"IE";if(o.window.chrome)return"Chrome";if(o.window.safari)return"Safari";if(o.window.mozInnerScreenX)return"Firefox";return"Unknown"};var o=n(22),i=r(n(23)),a=r(n(18))},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,n){"use strict";n.r(t),n.d(t,"log",(function(){return V})),n.d(t,"isWebGL",(function(){return I.d})),n.d(t,"isWebGL2",(function(){return I.e})),n.d(t,"getWebGL2Context",(function(){return I.c})),n.d(t,"assertWebGLContext",(function(){return I.b})),n.d(t,"assertWebGL2Context",(function(){return I.a})),n.d(t,"polyfillContext",(function(){return G.a})),n.d(t,"getParameters",(function(){return R.a})),n.d(t,"setParameters",(function(){return R.c})),n.d(t,"resetParameters",(function(){return R.b})),n.d(t,"withParameters",(function(){return R.d})),n.d(t,"trackContextState",(function(){return W.c})),n.d(t,"pushContextState",(function(){return W.b})),n.d(t,"popContextState",(function(){return W.a})),n.d(t,"createGLContext",(function(){return $})),n.d(t,"resizeGLContext",(function(){return te})),n.d(t,"instrumentGLContext",(function(){return Z})),n.d(t,"getContextDebugInfo",(function(){return ee})),n.d(t,"cssToDeviceRatio",(function(){return z})),n.d(t,"cssToDevicePixels",(function(){return H}));var r=n(4),o=n.n(r),i=n(1),a=n.n(i),u=n(0),c=n.n(u),f=n(11),s=n.n(f),l=n(12),d=n.n(l),b=n(24),v=Object(b.a)();function g(e){try{var t=window[e],n="__storage_test__";return t.setItem(n,n),t.removeItem(n),t}catch(e){return null}}var h=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"sessionStorage";s()(this,e),this.storage=g(r),this.id=t,this.config={},Object.assign(this.config,n),this._loadConfiguration()}return d()(e,[{key:"getConfiguration",value:function(){return this.config}},{key:"setConfiguration",value:function(e){return this.config={},this.updateConfiguration(e)}},{key:"updateConfiguration",value:function(e){if(Object.assign(this.config,e),this.storage){var t=JSON.stringify(this.config);this.storage.setItem(this.id,t)}return this}},{key:"_loadConfiguration",value:function(){var e={};if(this.storage){var t=this.storage.getItem(this.id);e=t?JSON.parse(t):{}}return Object.assign(this.config,e),this}}]),e}();function p(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:600,o=e.src.replace(/\(/g,"%28").replace(/\)/g,"%29");e.width>r&&(n=Math.min(n,r/e.width));var i=e.width*n,a=e.height*n,u=["font-size:1px;","padding:".concat(Math.floor(a/2),"px ").concat(Math.floor(i/2),"px;"),"line-height:".concat(a,"px;"),"background:url(".concat(o,");"),"background-size:".concat(i,"px ").concat(a,"px;"),"color:transparent;"].join("");return["".concat(t," %c+"),u]}var y={BLACK:30,RED:31,GREEN:32,YELLOW:33,BLUE:34,MAGENTA:35,CYAN:36,WHITE:37,BRIGHT_BLACK:90,BRIGHT_RED:91,BRIGHT_GREEN:92,BRIGHT_YELLOW:93,BRIGHT_BLUE:94,BRIGHT_MAGENTA:95,BRIGHT_CYAN:96,BRIGHT_WHITE:97};function m(e){return"string"==typeof e?y[e.toUpperCase()]||y.WHITE:e}function x(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return w(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function O(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["constructor"],r=Object.getPrototypeOf(e),o=Object.getOwnPropertyNames(r),i=x(o);try{var a=function(){var r=t.value;"function"==typeof e[r]&&(n.find((function(e){return r===e}))||(e[r]=e[r].bind(e)))};for(i.s();!(t=i.n()).done;)a()}catch(e){i.e(e)}finally{i.f()}}function A(e,t){if(!e)throw new Error(t||"Assertion failed")}var _=n(9);function j(){var e;if(v&&_.b.performance)e=_.b.performance.now();else if(_.a.hrtime){var t=_.a.hrtime();e=1e3*t[0]+t[1]/1e6}else e=Date.now();return e}var E={debug:v&&console.debug||console.log,log:console.log,info:console.info,warn:console.warn,error:console.error},S={enabled:!0,level:0};function k(){}var L={},T={once:!0};function C(e){for(var t in e)for(var n in e[t])return n||"untitled";return"empty"}var B=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{id:""},n=t.id;s()(this,e),this.id=n,this.VERSION="8.5.7",this._startTs=j(),this._deltaTs=j(),this.LOG_THROTTLE_TIMEOUT=0,this._storage=new h("__probe-".concat(this.id,"__"),S),this.userData={},this.timeStamp("".concat(this.id," started")),O(this),Object.seal(this)}return d()(e,[{key:"isEnabled",value:function(){return this._storage.config.enabled}},{key:"getLevel",value:function(){return this._storage.config.level}},{key:"getTotal",value:function(){return Number((j()-this._startTs).toPrecision(10))}},{key:"getDelta",value:function(){return Number((j()-this._deltaTs).toPrecision(10))}},{key:"getPriority",value:function(){return this.level}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._storage.updateConfiguration({enabled:e}),this}},{key:"setLevel",value:function(e){return this._storage.updateConfiguration({level:e}),this}},{key:"assert",value:function(e,t){A(e,t)}},{key:"warn",value:function(e){return this._getLogFunction(0,e,E.warn,arguments,T)}},{key:"error",value:function(e){return this._getLogFunction(0,e,E.error,arguments)}},{key:"deprecated",value:function(e,t){return this.warn("`".concat(e,"` is deprecated and will be removed in a later version. Use `").concat(t,"` instead"))}},{key:"removed",value:function(e,t){return this.error("`".concat(e,"` has been removed. Use `").concat(t,"` instead"))}},{key:"probe",value:function(e,t){return this._getLogFunction(e,t,E.log,arguments,{time:!0,once:!0})}},{key:"log",value:function(e,t){return this._getLogFunction(e,t,E.debug,arguments)}},{key:"info",value:function(e,t){return this._getLogFunction(e,t,console.info,arguments)}},{key:"once",value:function(e,t){return this._getLogFunction(e,t,E.debug||E.info,arguments,T)}},{key:"table",value:function(e,t,n){return t?this._getLogFunction(e,t,console.table||k,n&&[n],{tag:C(t)}):k}},{key:"image",value:function(e){var t=e.logLevel,r=e.priority,o=e.image,i=e.message,u=void 0===i?"":i,c=e.scale,f=void 0===c?1:c;return this._shouldLog(t||r)?v?function(e){var t=e.image,n=e.message,r=void 0===n?"":n,o=e.scale,i=void 0===o?1:o;if("string"==typeof t){var u=new Image;return u.onload=function(){var e,t=p(u,r,i);(e=console).log.apply(e,a()(t))},u.src=t,k}var c=t.nodeName||"";if("img"===c.toLowerCase()){var f;return(f=console).log.apply(f,a()(p(t,r,i))),k}if("canvas"===c.toLowerCase()){var s=new Image;return s.onload=function(){var e;return(e=console).log.apply(e,a()(p(s,r,i)))},s.src=t.toDataURL(),k}return k}({image:o,message:u,scale:f}):function(e){var t=e.image,r=(e.message,e.scale),o=void 0===r?1:r,i=null;try{i=n(31)}catch(e){}if(i)return function(){return i(t,{fit:"box",width:"".concat(Math.round(80*o),"%")}).then((function(e){return console.log(e)}))};return k}({image:o,message:u,scale:f}):k}},{key:"settings",value:function(){console.table?console.table(this._storage.config):console.log(this._storage.config)}},{key:"get",value:function(e){return this._storage.config[e]}},{key:"set",value:function(e,t){this._storage.updateConfiguration(c()({},e,t))}},{key:"time",value:function(e,t){return this._getLogFunction(e,t,console.time?console.time:console.info)}},{key:"timeEnd",value:function(e,t){return this._getLogFunction(e,t,console.timeEnd?console.timeEnd:console.info)}},{key:"timeStamp",value:function(e,t){return this._getLogFunction(e,t,console.timeStamp||k)}},{key:"group",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{collapsed:!1},r=n=P({logLevel:e,message:t,opts:n}),o=r.collapsed;return n.method=(o?console.groupCollapsed:console.group)||console.info,this._getLogFunction(n)}},{key:"groupCollapsed",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.group(e,t,Object.assign({},n,{collapsed:!0}))}},{key:"groupEnd",value:function(e){return this._getLogFunction(e,"",console.groupEnd||k)}},{key:"withGroup",value:function(e,t,n){this.group(e,t)();try{n()}finally{this.groupEnd(e)()}}},{key:"trace",value:function(){console.trace&&console.trace()}},{key:"_shouldLog",value:function(e){return this.isEnabled()&&this.getLevel()>=F(e)}},{key:"_getLogFunction",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4?arguments[4]:void 0;if(this._shouldLog(e)){var i;o=P({logLevel:e,message:t,args:r,opts:o}),A(n=n||o.method),o.total=this.getTotal(),o.delta=this.getDelta(),this._deltaTs=j();var u=o.tag||o.message;if(o.once){if(L[u])return k;L[u]=j()}return t=M(this.id,o.message,o),(i=n).bind.apply(i,[console,t].concat(a()(o.args)))}return k}},{key:"level",set:function(e){this.setLevel(e)},get:function(){return this.getLevel()}},{key:"priority",set:function(e){this.level=e},get:function(){return this.level}}]),e}();function F(e){if(!e)return 0;var t;switch(o()(e)){case"number":t=e;break;case"object":t=e.logLevel||e.priority||0;break;default:return 0}return A(Number.isFinite(t)&&t>=0),t}function P(e){var t=e.logLevel,n=e.message;e.logLevel=F(t);for(var r=e.args?Array.from(e.args):[];r.length&&r.shift()!==n;);switch(e.args=r,o()(t)){case"string":case"function":void 0!==n&&r.unshift(n),e.message=t;break;case"object":Object.assign(e,t)}"function"==typeof e.message&&(e.message=e.message());var i=o()(e.message);return A("string"===i||"object"===i),Object.assign(e,e.opts)}function M(e,t,n){if("string"==typeof t){var r=n.time?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:8,n=Math.max(t-e.length,0);return"".concat(" ".repeat(n)).concat(e)}((u=n.total)<10?"".concat(u.toFixed(2),"ms"):u<100?"".concat(u.toFixed(1),"ms"):u<1e3?"".concat(u.toFixed(0),"ms"):"".concat((u/1e3).toFixed(2),"s")):"";t=n.time?"".concat(e,": ").concat(r," ").concat(t):"".concat(e,": ").concat(t),o=t,i=n.color,a=n.background,v||"string"!=typeof o||(i&&(i=m(i),o="[".concat(i,"m").concat(o,"")),a&&(i=m(a),o="[".concat(a+10,"m").concat(o,""))),t=o}var o,i,a,u;return t}B.VERSION="8.5.7";var V=new B({id:"luma.gl"}),I=n(2),G=n(21),R=n(8),W=n(7),N=n(6),D=n(3);function z(e){var t=e.luma;if(e.canvas&&t){var n=t.canvasSizeInfo.clientWidth;return n?e.drawingBufferWidth/n:1}return 1}function H(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=z(e),o=e.drawingBufferWidth,i=e.drawingBufferHeight;return X(t,r,o,i,n)}function U(e){var t="undefined"==typeof window?1:window.devicePixelRatio||1;return Number.isFinite(e)?e<=0?1:e:e?t:1}function X(e,t,n,r,o){var i,a=q(e[0],t,n),u=Q(e[1],t,r,o),c=q(e[0]+1,t,n),f=c===n-1?c:c-1;return c=Q(e[1]+1,t,r,o),o?(i=u,u=c=0===c?c:c+1):i=c===r-1?c:c-1,{x:a,y:u,width:Math.max(f-a+1,1),height:Math.max(i-u+1,1)}}function q(e,t,n){return Math.min(Math.round(e*t),n-1)}function Q(e,t,n,r){return r?Math.max(0,n-1-Math.round(e*t)):Math.min(Math.round(e*t),n-1)}var Y=Object(N.isBrowser)(),K=Y&&"undefined"!=typeof document,J={webgl2:!0,webgl1:!0,throwOnError:!0,manageState:!0,canvas:null,debug:!1,width:800,height:600};function $(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object(D.a)(Y,"createGLContext only available in the browser.\nCreate your own headless context or use 'createHeadlessContext' from @luma.gl/test-utils");var t,n=e=Object.assign({},J,e),r=n.width,o=n.height;function i(t){if(e.throwOnError)throw new Error(t);return console.error(t),null}e.onError=i;var a=e,u=a.canvas,c=re({canvas:u,width:r,height:o,onError:i});return(t=ne(c,e))?(oe(t=Z(t,e)),t):null}function Z(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e||e._instrumented)return e;e._version=e._version||ie(e),e.luma=e.luma||{},e.luma.canvasSizeInfo=e.luma.canvasSizeInfo||{};var n=t=Object.assign({},J,t),r=n.manageState,o=n.debug;return r&&Object(W.c)(e,{copyState:!1,log:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return V.log.apply(V,[1].concat(t))()}}),Y&&o&&(N.global.makeDebugContext?(e=N.global.makeDebugContext(e,t),V.level=Math.max(V.level,1)):V.warn('WebGL debug mode not activated. import "@luma.gl/debug" to enable.')()),e._instrumented=!0,e}function ee(e){var t=e.getParameter(7936),n=e.getParameter(7937),r=e.getExtension("WEBGL_debug_renderer_info");return{vendor:r&&e.getParameter(r.UNMASKED_VENDOR_WEBGL||7936)||t,renderer:r&&e.getParameter(r.UNMASKED_RENDERER_WEBGL||7937)||n,vendorMasked:t,rendererMasked:n,version:e.getParameter(7938),shadingLanguageVersion:e.getParameter(35724)}}function te(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.canvas){var n=U(t.useDevicePixels);ae(e,n,t)}else{var r=e.getExtension("STACKGL_resize_drawingbuffer");r&&"width"in t&&"height"in t&&r.resize(t.width,t.height)}}function ne(e,t){var n=t.onError,r=null,o=function(e){return r=e.statusMessage||r};e.addEventListener("webglcontextcreationerror",o,!1);var i=t.webgl1,a=void 0===i||i,u=t.webgl2,c=void 0===u||u,f=null;return c&&(f=(f=f||e.getContext("webgl2",t))||e.getContext("experimental-webgl2",t)),a&&(f=(f=f||e.getContext("webgl",t))||e.getContext("experimental-webgl",t)),e.removeEventListener("webglcontextcreationerror",o,!1),f?(t.onContextLost&&e.addEventListener("webglcontextlost",t.onContextLost,!1),t.onContextRestored&&e.addEventListener("webglcontextrestored",t.onContextRestored,!1),f):n("Failed to create ".concat(c&&!a?"WebGL2":"WebGL"," context: ").concat(r||"Unknown error"))}function re(e){var t,n=e.canvas,r=e.width,o=void 0===r?800:r,i=e.height,a=void 0===i?600:i,u=e.onError;"string"==typeof n?(K&&"complete"===document.readyState||u("createGLContext called on canvas '".concat(n,"' before page was loaded")),t=document.getElementById(n)):n?t=n:((t=document.createElement("canvas")).id="lumagl-canvas",t.style.width=Number.isFinite(o)?"".concat(o,"px"):"100%",t.style.height=Number.isFinite(a)?"".concat(a,"px"):"100%",document.body.insertBefore(t,document.body.firstChild));return t}function oe(e){var t=Object(I.e)(e)?"WebGL2":"WebGL1",n=ee(e),r=n?"(".concat(n.vendor,",").concat(n.renderer,")"):"",o=e.debug?" debug":"";V.info(1,"".concat(t).concat(o," context ").concat(r))()}function ie(e){return"undefined"!=typeof WebGL2RenderingContext&&e instanceof WebGL2RenderingContext?2:1}function ae(e,t,n){var r="width"in n?n.width:e.canvas.clientWidth,o="height"in n?n.height:e.canvas.clientHeight;r&&o||(V.log(1,"Canvas clientWidth/clientHeight is 0")(),t=1,r=e.canvas.width||1,o=e.canvas.height||1),e.luma=e.luma||{},e.luma.canvasSizeInfo=e.luma.canvasSizeInfo||{};var i=e.luma.canvasSizeInfo;if(i.clientWidth!==r||i.clientHeight!==o||i.devicePixelRatio!==t){var a=t,u=Math.floor(r*a),c=Math.floor(o*a);e.canvas.width=u,e.canvas.height=c,e.drawingBufferWidth===u&&e.drawingBufferHeight===c||(V.warn("Device pixel ratio clamped")(),a=Math.min(e.drawingBufferWidth/r,e.drawingBufferHeight/o),e.canvas.width=Math.floor(r*a),e.canvas.height=Math.floor(o*a)),Object.assign(e.luma.canvasSizeInfo,{clientWidth:r,clientHeight:o,devicePixelRatio:t})}}}])}));
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=27)}([function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){var r=n(28),o=n(29),i=n(20),a=n(30);e.exports=function(e){return r(e)||o(e)||i(e)||a()}},function(e,t,n){"use strict";n.d(t,"d",(function(){return o})),n.d(t,"e",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return c}));var r=n(3);function o(e){return"undefined"!=typeof WebGLRenderingContext&&e instanceof WebGLRenderingContext||("undefined"!=typeof WebGL2RenderingContext&&e instanceof WebGL2RenderingContext||Boolean(e&&Number.isFinite(e._version)))}function i(e){return"undefined"!=typeof WebGL2RenderingContext&&e instanceof WebGL2RenderingContext||Boolean(e&&2===e._version)}function a(e){return i(e)?e:null}function u(e){return Object(r.a)(o(e),"Invalid WebGLRenderingContext"),e}function c(e){return Object(r.a)(i(e),"Requires WebGL2"),e}},function(e,t,n){"use strict";function r(e,t){if(!e)throw new Error(t||"luma.gl: assertion failed.")}n.d(t,"a",(function(){return r}))},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},function(e,t,n){e.exports=n(32)},function(e,t,n){"use strict";n.d(t,"c",(function(){return b})),n.d(t,"e",(function(){return y})),n.d(t,"a",(function(){return x})),n.d(t,"b",(function(){return w})),n.d(t,"d",(function(){return A}));var r,o,i,a=n(17),u=n.n(a),c=n(1),s=n.n(c),f=n(0),l=n.n(f),d=n(2),b=(r={},l()(r,3042,!1),l()(r,32773,new Float32Array([0,0,0,0])),l()(r,32777,32774),l()(r,34877,32774),l()(r,32969,1),l()(r,32968,0),l()(r,32971,1),l()(r,32970,0),l()(r,3106,new Float32Array([0,0,0,0])),l()(r,3107,[!0,!0,!0,!0]),l()(r,2884,!1),l()(r,2885,1029),l()(r,2929,!1),l()(r,2931,1),l()(r,2932,513),l()(r,2928,new Float32Array([0,1])),l()(r,2930,!0),l()(r,3024,!0),l()(r,36006,null),l()(r,2886,2305),l()(r,33170,4352),l()(r,2849,1),l()(r,32823,!1),l()(r,32824,0),l()(r,10752,0),l()(r,32938,1),l()(r,32939,!1),l()(r,3089,!1),l()(r,3088,new Int32Array([0,0,1024,1024])),l()(r,2960,!1),l()(r,2961,0),l()(r,2968,4294967295),l()(r,36005,4294967295),l()(r,2962,519),l()(r,2967,0),l()(r,2963,4294967295),l()(r,34816,519),l()(r,36003,0),l()(r,36004,4294967295),l()(r,2964,7680),l()(r,2965,7680),l()(r,2966,7680),l()(r,34817,7680),l()(r,34818,7680),l()(r,34819,7680),l()(r,2978,[0,0,1024,1024]),l()(r,3333,4),l()(r,3317,4),l()(r,37440,!1),l()(r,37441,!1),l()(r,37443,37444),l()(r,35723,4352),l()(r,36010,null),l()(r,35977,!1),l()(r,3330,0),l()(r,3332,0),l()(r,3331,0),l()(r,3314,0),l()(r,32878,0),l()(r,3316,0),l()(r,3315,0),l()(r,32877,0),r),v=function(e,t,n){return t?e.enable(n):e.disable(n)},g=function(e,t,n){return e.hint(n,t)},h=function(e,t,n){return e.pixelStorei(n,t)};function p(e){return Array.isArray(e)||ArrayBuffer.isView(e)}var y=(o={},l()(o,3042,v),l()(o,32773,(function(e,t){return e.blendColor.apply(e,s()(t))})),l()(o,32777,"blendEquation"),l()(o,34877,"blendEquation"),l()(o,32969,"blendFunc"),l()(o,32968,"blendFunc"),l()(o,32971,"blendFunc"),l()(o,32970,"blendFunc"),l()(o,3106,(function(e,t){return e.clearColor.apply(e,s()(t))})),l()(o,3107,(function(e,t){return e.colorMask.apply(e,s()(t))})),l()(o,2884,v),l()(o,2885,(function(e,t){return e.cullFace(t)})),l()(o,2929,v),l()(o,2931,(function(e,t){return e.clearDepth(t)})),l()(o,2932,(function(e,t){return e.depthFunc(t)})),l()(o,2928,(function(e,t){return e.depthRange.apply(e,s()(t))})),l()(o,2930,(function(e,t){return e.depthMask(t)})),l()(o,3024,v),l()(o,35723,g),l()(o,36006,(function(e,t){var n=Object(d.e)(e)?36009:36160;return e.bindFramebuffer(n,t)})),l()(o,2886,(function(e,t){return e.frontFace(t)})),l()(o,33170,g),l()(o,2849,(function(e,t){return e.lineWidth(t)})),l()(o,32823,v),l()(o,32824,"polygonOffset"),l()(o,10752,"polygonOffset"),l()(o,35977,v),l()(o,32938,"sampleCoverage"),l()(o,32939,"sampleCoverage"),l()(o,3089,v),l()(o,3088,(function(e,t){return e.scissor.apply(e,s()(t))})),l()(o,2960,v),l()(o,2961,(function(e,t){return e.clearStencil(t)})),l()(o,2968,(function(e,t){return e.stencilMaskSeparate(1028,t)})),l()(o,36005,(function(e,t){return e.stencilMaskSeparate(1029,t)})),l()(o,2962,"stencilFuncFront"),l()(o,2967,"stencilFuncFront"),l()(o,2963,"stencilFuncFront"),l()(o,34816,"stencilFuncBack"),l()(o,36003,"stencilFuncBack"),l()(o,36004,"stencilFuncBack"),l()(o,2964,"stencilOpFront"),l()(o,2965,"stencilOpFront"),l()(o,2966,"stencilOpFront"),l()(o,34817,"stencilOpBack"),l()(o,34818,"stencilOpBack"),l()(o,34819,"stencilOpBack"),l()(o,2978,(function(e,t){return e.viewport.apply(e,s()(t))})),l()(o,3333,h),l()(o,3317,h),l()(o,37440,h),l()(o,37441,h),l()(o,37443,h),l()(o,3330,h),l()(o,3332,h),l()(o,3331,h),l()(o,36010,(function(e,t){return e.bindFramebuffer(36008,t)})),l()(o,3314,h),l()(o,32878,h),l()(o,3316,h),l()(o,3315,h),l()(o,32877,h),l()(o,"framebuffer",(function(e,t){var n=t&&"handle"in t?t.handle:t;return e.bindFramebuffer(36160,n)})),l()(o,"blend",(function(e,t){return t?e.enable(3042):e.disable(3042)})),l()(o,"blendColor",(function(e,t){return e.blendColor.apply(e,s()(t))})),l()(o,"blendEquation",(function(e,t){t=p(t)?t:[t,t],e.blendEquationSeparate.apply(e,s()(t))})),l()(o,"blendFunc",(function(e,t){t=p(t)&&2===t.length?[].concat(s()(t),s()(t)):t,e.blendFuncSeparate.apply(e,s()(t))})),l()(o,"clearColor",(function(e,t){return e.clearColor.apply(e,s()(t))})),l()(o,"clearDepth",(function(e,t){return e.clearDepth(t)})),l()(o,"clearStencil",(function(e,t){return e.clearStencil(t)})),l()(o,"colorMask",(function(e,t){return e.colorMask.apply(e,s()(t))})),l()(o,"cull",(function(e,t){return t?e.enable(2884):e.disable(2884)})),l()(o,"cullFace",(function(e,t){return e.cullFace(t)})),l()(o,"depthTest",(function(e,t){return t?e.enable(2929):e.disable(2929)})),l()(o,"depthFunc",(function(e,t){return e.depthFunc(t)})),l()(o,"depthMask",(function(e,t){return e.depthMask(t)})),l()(o,"depthRange",(function(e,t){return e.depthRange.apply(e,s()(t))})),l()(o,"dither",(function(e,t){return t?e.enable(3024):e.disable(3024)})),l()(o,"derivativeHint",(function(e,t){e.hint(35723,t)})),l()(o,"frontFace",(function(e,t){return e.frontFace(t)})),l()(o,"mipmapHint",(function(e,t){return e.hint(33170,t)})),l()(o,"lineWidth",(function(e,t){return e.lineWidth(t)})),l()(o,"polygonOffsetFill",(function(e,t){return t?e.enable(32823):e.disable(32823)})),l()(o,"polygonOffset",(function(e,t){return e.polygonOffset.apply(e,s()(t))})),l()(o,"sampleCoverage",(function(e,t){return e.sampleCoverage.apply(e,s()(t))})),l()(o,"scissorTest",(function(e,t){return t?e.enable(3089):e.disable(3089)})),l()(o,"scissor",(function(e,t){return e.scissor.apply(e,s()(t))})),l()(o,"stencilTest",(function(e,t){return t?e.enable(2960):e.disable(2960)})),l()(o,"stencilMask",(function(e,t){var n=t=p(t)?t:[t,t],r=u()(n,2),o=r[0],i=r[1];e.stencilMaskSeparate(1028,o),e.stencilMaskSeparate(1029,i)})),l()(o,"stencilFunc",(function(e,t){var n=t=p(t)&&3===t.length?[].concat(s()(t),s()(t)):t,r=u()(n,6),o=r[0],i=r[1],a=r[2],c=r[3],f=r[4],l=r[5];e.stencilFuncSeparate(1028,o,i,a),e.stencilFuncSeparate(1029,c,f,l)})),l()(o,"stencilOp",(function(e,t){var n=t=p(t)&&3===t.length?[].concat(s()(t),s()(t)):t,r=u()(n,6),o=r[0],i=r[1],a=r[2],c=r[3],f=r[4],l=r[5];e.stencilOpSeparate(1028,o,i,a),e.stencilOpSeparate(1029,c,f,l)})),l()(o,"viewport",(function(e,t){return e.viewport.apply(e,s()(t))})),o);function m(e,t,n){return void 0!==t[e]?t[e]:n[e]}var x={blendEquation:function(e,t,n){return e.blendEquationSeparate(m(32777,t,n),m(34877,t,n))},blendFunc:function(e,t,n){return e.blendFuncSeparate(m(32969,t,n),m(32968,t,n),m(32971,t,n),m(32970,t,n))},polygonOffset:function(e,t,n){return e.polygonOffset(m(32824,t,n),m(10752,t,n))},sampleCoverage:function(e,t,n){return e.sampleCoverage(m(32938,t,n),m(32939,t,n))},stencilFuncFront:function(e,t,n){return e.stencilFuncSeparate(1028,m(2962,t,n),m(2967,t,n),m(2963,t,n))},stencilFuncBack:function(e,t,n){return e.stencilFuncSeparate(1029,m(34816,t,n),m(36003,t,n),m(36004,t,n))},stencilOpFront:function(e,t,n){return e.stencilOpSeparate(1028,m(2964,t,n),m(2965,t,n),m(2966,t,n))},stencilOpBack:function(e,t,n){return e.stencilOpSeparate(1029,m(34817,t,n),m(34818,t,n),m(34819,t,n))}},w={enable:function(e,t){return e(l()({},t,!0))},disable:function(e,t){return e(l()({},t,!1))},pixelStorei:function(e,t,n){return e(l()({},t,n))},hint:function(e,t,n){return e(l()({},t,n))},bindFramebuffer:function(e,t,n){var r;switch(t){case 36160:return e((r={},l()(r,36006,n),l()(r,36010,n),r));case 36009:return e(l()({},36006,n));case 36008:return e(l()({},36010,n));default:return null}},blendColor:function(e,t,n,r,o){return e(l()({},32773,new Float32Array([t,n,r,o])))},blendEquation:function(e,t){var n;return e((n={},l()(n,32777,t),l()(n,34877,t),n))},blendEquationSeparate:function(e,t,n){var r;return e((r={},l()(r,32777,t),l()(r,34877,n),r))},blendFunc:function(e,t,n){var r;return e((r={},l()(r,32969,t),l()(r,32968,n),l()(r,32971,t),l()(r,32970,n),r))},blendFuncSeparate:function(e,t,n,r,o){var i;return e((i={},l()(i,32969,t),l()(i,32968,n),l()(i,32971,r),l()(i,32970,o),i))},clearColor:function(e,t,n,r,o){return e(l()({},3106,new Float32Array([t,n,r,o])))},clearDepth:function(e,t){return e(l()({},2931,t))},clearStencil:function(e,t){return e(l()({},2961,t))},colorMask:function(e,t,n,r,o){return e(l()({},3107,[t,n,r,o]))},cullFace:function(e,t){return e(l()({},2885,t))},depthFunc:function(e,t){return e(l()({},2932,t))},depthRange:function(e,t,n){return e(l()({},2928,new Float32Array([t,n])))},depthMask:function(e,t){return e(l()({},2930,t))},frontFace:function(e,t){return e(l()({},2886,t))},lineWidth:function(e,t){return e(l()({},2849,t))},polygonOffset:function(e,t,n){var r;return e((r={},l()(r,32824,t),l()(r,10752,n),r))},sampleCoverage:function(e,t,n){var r;return e((r={},l()(r,32938,t),l()(r,32939,n),r))},scissor:function(e,t,n,r,o){return e(l()({},3088,new Int32Array([t,n,r,o])))},stencilMask:function(e,t){var n;return e((n={},l()(n,2968,t),l()(n,36005,t),n))},stencilMaskSeparate:function(e,t,n){return e(l()({},1028===t?2968:36005,n))},stencilFunc:function(e,t,n,r){var o;return e((o={},l()(o,2962,t),l()(o,2967,n),l()(o,2963,r),l()(o,34816,t),l()(o,36003,n),l()(o,36004,r),o))},stencilFuncSeparate:function(e,t,n,r,o){var i;return e((i={},l()(i,1028===t?2962:34816,n),l()(i,1028===t?2967:36003,r),l()(i,1028===t?2963:36004,o),i))},stencilOp:function(e,t,n,r){var o;return e((o={},l()(o,2964,t),l()(o,2965,n),l()(o,2966,r),l()(o,34817,t),l()(o,34818,n),l()(o,34819,r),o))},stencilOpSeparate:function(e,t,n,r,o){var i;return e((i={},l()(i,1028===t?2964:34817,n),l()(i,1028===t?2965:34818,r),l()(i,1028===t?2966:34819,o),i))},viewport:function(e,t,n,r,o){return e(l()({},2978,[t,n,r,o]))}},O=function(e,t){return e.isEnabled(t)},A=(i={},l()(i,3042,O),l()(i,2884,O),l()(i,2929,O),l()(i,3024,O),l()(i,32823,O),l()(i,32926,O),l()(i,32928,O),l()(i,3089,O),l()(i,2960,O),l()(i,35977,O),i)},function(e,t,n){"use strict";(function(e){n.d(t,"c",(function(){return g})),n.d(t,"b",(function(){return h})),n.d(t,"a",(function(){return p}));var r=n(11),o=n.n(r),i=n(12),a=n.n(i),u=n(6),c=n(8),s=n(3),f=n(16);function l(e,t){var n=e[t].bind(e);e[t]=function(){var t=arguments.length<=0?void 0:arguments[0];return t in e.state.cache&&e.state.enable?e.state.cache[t]:n.apply(void 0,arguments)},Object.defineProperty(e[t],"name",{value:"".concat(t,"-from-cache"),configurable:!1})}function d(e,t,n){var r=e[t].bind(e);e[t]=function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];var a=n.apply(void 0,[e.state._updateCache].concat(o)),u=a.valueChanged,c=a.oldValue;return u&&r.apply(void 0,o),c},Object.defineProperty(e[t],"name",{value:"".concat(t,"-to-cache"),configurable:!1})}function b(e){var t=e.useProgram.bind(e);e.useProgram=function(n){e.state.program!==n&&(t(n),e.state.program=n)}}var v=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.copyState,i=void 0!==r&&r,a=n.log,s=void 0===a?function(){}:a;o()(this,e),this.gl=t,this.program=null,this.stateStack=[],this.enable=!0,this.cache=i?Object(c.a)(t):Object.assign({},u.c),this.log=s,this._updateCache=this._updateCache.bind(this),Object.seal(this)}return a()(e,[{key:"push",value:function(){this.stateStack.push({})}},{key:"pop",value:function(){Object(s.a)(this.stateStack.length>0);var e=this.stateStack[this.stateStack.length-1];Object(c.c)(this.gl,e),this.stateStack.pop()}},{key:"_updateCache",value:function(e){var t,n=!1,r=this.stateStack.length>0&&this.stateStack[this.stateStack.length-1];for(var o in e){Object(s.a)(void 0!==o);var i=e[o],a=this.cache[o];Object(f.a)(i,a)||(n=!0,t=a,r&&!(o in r)&&(r[o]=a),this.cache[o]=i)}return{valueChanged:n,oldValue:t}}}]),e}();function g(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.enable,o=void 0===r||r,i=n.copyState;if(Object(s.a)(void 0!==i),!t.state){var a=void 0!==e?e:window,c=a.polyfillContext;for(var f in c&&c(t),t.state=new v(t,{copyState:i}),b(t),u.b){var g=u.b[f];d(t,f,g)}l(t,"getParameter"),l(t,"isEnabled")}return t.state.enable=o,t}function h(e){e.state||g(e,{copyState:!1}),e.state.push()}function p(e){Object(s.a)(e.state),e.state.pop()}}).call(this,n(14))},function(e,t,n){"use strict";n.d(t,"c",(function(){return f})),n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return d})),n.d(t,"d",(function(){return b}));var r=n(6),o=n(7),i=n(3),a=n(2),u=n(16);function c(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function f(e,t){if(Object(i.a)(Object(a.d)(e),"setParameters requires a WebGL context"),!Object(u.b)(t)){var n={};for(var o in t){var c=Number(o),s=r.e[o];s&&("string"==typeof s?n[s]=!0:s(e,t[o],c))}var f=e.state&&e.state.cache;if(f)for(var l in n){(0,r.a[l])(e,t,f)}}}function l(e,t){if("number"==typeof(t=t||r.c)){var n=t,o=r.d[n];return o?o(e,n):e.getParameter(n)}var i,a={},u=c(Array.isArray(t)?t:Object.keys(t));try{for(u.s();!(i=u.n()).done;){var s=i.value,f=r.d[s];a[s]=f?f(e,Number(s)):e.getParameter(Number(s))}}catch(e){u.e(e)}finally{u.f()}return a}function d(e){f(e,r.c)}function b(e,t,n){if(Object(u.b)(t))return n(e);var r,i=t.nocatch,a=void 0===i||i;if(Object(o.b)(e),f(e,t),a)r=n(e),Object(o.a)(e);else try{r=n(e)}finally{Object(o.a)(e)}return r}},function(e,t,n){"use strict";(function(e,r){n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return u}));var o=n(4),i={self:"undefined"!=typeof self&&self,window:"undefined"!=typeof window&&window,global:void 0!==e&&e,document:"undefined"!=typeof document&&document,process:"object"===(void 0===r?"undefined":n.n(o)()(r))&&r},a=i.window||i.self||i.global,u=i.process||{};console}).call(this,n(14),n(10))},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function u(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var c,s=[],f=!1,l=-1;function d(){f&&c&&(f=!1,c.length?s=c.concat(s):l=-1,s.length&&b())}function b(){if(!f){var e=u(d);f=!0;for(var t=s.length;t;){for(c=s,s=[];++l<t;)c&&c[l].run();l=-1,t=s.length}c=null,f=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function v(e,t){this.fun=e,this.array=t}function g(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];s.push(new v(e,t)),1!==s.length||f||u(b)},v.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return d}));var r,o,i=n(0),a=n.n(i),u=n(3),c=n(2),s=function(e){return Object(c.e)(e)?void 0:0},f=(r={},a()(r,3074,(function(e){return Object(c.e)(e)?void 0:36064})),a()(r,35723,(function(e){return Object(c.e)(e)?void 0:4352})),a()(r,35977,s),a()(r,32937,s),a()(r,36795,(function(e,t){var n=Object(c.e)(e)?e.getExtension("EXT_disjoint_timer_query_webgl2"):e.getExtension("EXT_disjoint_timer_query");return n&&n.GPU_DISJOINT_EXT?t(n.GPU_DISJOINT_EXT):0})),a()(r,37445,(function(e,t){var n=e.getExtension("WEBGL_debug_renderer_info");return t(n&&n.UNMASKED_VENDOR_WEBGL||7936)})),a()(r,37446,(function(e,t){var n=e.getExtension("WEBGL_debug_renderer_info");return t(n&&n.UNMASKED_RENDERER_WEBGL||7937)})),a()(r,34047,(function(e,t){var n=e.luma.extensions.EXT_texture_filter_anisotropic;return n?t(n.MAX_TEXTURE_MAX_ANISOTROPY_EXT):1})),a()(r,32883,s),a()(r,35071,s),a()(r,37447,s),a()(r,36063,(function(e,t){if(!Object(c.e)(e)){var n=e.getExtension("WEBGL_draw_buffers");return n?t(n.MAX_COLOR_ATTACHMENTS_WEBGL):0}})),a()(r,35379,s),a()(r,35374,s),a()(r,35377,s),a()(r,34852,(function(e){if(!Object(c.e)(e)){var t=e.getExtension("WEBGL_draw_buffers");return t?t.MAX_DRAW_BUFFERS_WEBGL:0}})),a()(r,36203,(function(e){return e.getExtension("OES_element_index")?2147483647:65535})),a()(r,33001,(function(e){return e.getExtension("OES_element_index")?16777216:65535})),a()(r,33e3,(function(e){return 16777216})),a()(r,37157,s),a()(r,35373,s),a()(r,35657,s),a()(r,36183,s),a()(r,37137,s),a()(r,34045,s),a()(r,35978,s),a()(r,35979,s),a()(r,35968,s),a()(r,35376,s),a()(r,35375,s),a()(r,35659,s),a()(r,37154,s),a()(r,35371,s),a()(r,35658,s),a()(r,35076,s),a()(r,35077,s),a()(r,35380,s),r);var l=(o={},a()(o,"OES_vertex_array_object",{meta:{suffix:"OES"},createVertexArray:function(){Object(u.a)(!1,"VertexArray requires WebGL2 or OES_vertex_array_object extension")},deleteVertexArray:function(){},bindVertexArray:function(){},isVertexArray:function(){return!1}}),a()(o,"ANGLE_instanced_arrays",{meta:{suffix:"ANGLE"},vertexAttribDivisor:function(e,t){Object(u.a)(0===t,"WebGL instanced rendering not supported")},drawElementsInstanced:function(){},drawArraysInstanced:function(){}}),a()(o,"WEBGL_draw_buffers",{meta:{suffix:"WEBGL"},drawBuffers:function(){Object(u.a)(!1)}}),a()(o,"EXT_disjoint_timer_query",{meta:{suffix:"EXT"},createQuery:function(){Object(u.a)(!1)},deleteQuery:function(){Object(u.a)(!1)},beginQuery:function(){Object(u.a)(!1)},endQuery:function(){},getQuery:function(e,t){return this.getQueryObject(e,t)},getQueryParameter:function(e,t){return this.getQueryObject(e,t)},getQueryObject:function(){}}),o),d={readBuffer:function(e,t,n){Object(c.e)(e)&&t(n)},getVertexAttrib:function(e,t,n,r){var o,i=function(e,t){return{webgl2:Object(c.e)(e),ext:e.getExtension(t)}}(e,"ANGLE_instanced_arrays"),a=i.webgl2,u=i.ext;switch(r){case 35069:o=!!a&&void 0;break;case 35070:o=a||u?void 0:0}return void 0!==o?o:t(n,r)},getProgramParameter:function(e,t,n,r){if(!Object(c.e)(e))switch(r){case 35967:return 35981;case 35971:case 35382:return 0}return t(n,r)},getInternalformatParameter:function(e,t,n,r,o){if(!Object(c.e)(e))switch(o){case 32937:return new Int32Array([0])}return e.getInternalformatParameter(n,r,o)},getTexParameter:function(e,t,n,r){switch(r){case 34046:var o=e.luma.extensions.EXT_texture_filter_anisotropic;r=o&&o.TEXTURE_MAX_ANISOTROPY_EXT||34046}return t(n,r)},getParameter:function(e,t,n){var r=f[n],o="function"==typeof r?r(e,t,n):r;return void 0!==o?o:t(n)},hint:function(e,t,n,r){return t(n,r)}}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";function r(e){for(var t in e)return!1;return!0}function o(e,t){if(e===t)return!0;var n=Array.isArray(e)||ArrayBuffer.isView(e),r=Array.isArray(t)||ArrayBuffer.isView(t);if(n&&r&&e.length===t.length){for(var o=0;o<e.length;++o)if(e[o]!==t[o])return!1;return!0}return!1}n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return o}))},function(e,t,n){var r=n(34),o=n(35),i=n(20),a=n(36);e.exports=function(e,t){return r(e)||o(e,t)||i(e,t)||a()}},function(e,t,n){"use strict";(function(e){var r=n(15);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(t){if("undefined"!=typeof window&&"object"===(0,o.default)(window.process)&&"renderer"===window.process.type)return!0;if(void 0!==e&&"object"===(0,o.default)(e.versions)&&Boolean(e.versions.electron))return!0;var n="object"===("undefined"==typeof navigator?"undefined":(0,o.default)(navigator))&&"string"==typeof navigator.userAgent&&navigator.userAgent,r=t||n;if(r&&r.indexOf("Electron")>=0)return!0;return!1};var o=r(n(4))}).call(this,n(10))},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},function(e,t,n){var r=n(19);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return c}));var r=n(26),o=n(3),i=n(13);function a(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e){e.luma=e.luma||{};var t=e.luma;return t.polyfilled||(Object(r.a)(e),function(e){e.luma.extensions={};var t,n=a(e.getSupportedExtensions()||[]);try{for(n.s();!(t=n.n()).done;){var r=t.value;e.luma[r]=e.getExtension(r)}}catch(e){n.e(e)}finally{n.f()}}(e),function(e,t){var n,r=a(Object.getOwnPropertyNames(t));try{for(r.s();!(n=r.n()).done;){var o=n.value;"overrides"!==o&&s(e,{extension:o,target:e.luma,target2:e})}}catch(e){r.e(e)}finally{r.f()}}(e,i.b),function(e,t){var n=t.target,r=t.target2;Object.keys(i.a).forEach((function(t){if("function"==typeof i.a[t]){var o=e[t]?e[t].bind(e):function(){},a=i.a[t].bind(null,e,o);n[t]=a,r[t]=a}}))}(e,{target:t,target2:e}),t.polyfilled=!0),e}function s(e,t){var n=t.extension,r=t.target,a=t.target2,u=i.b[n];Object(o.a)(u);for(var c=u.meta,s=(void 0===c?{}:c).suffix,f=void 0===s?"":s,l=e.getExtension(n),d=function(){var t=v[b],n="".concat(t).concat(f),o=null;"meta"===t||"function"==typeof e[t]||(l&&"function"==typeof l[n]?o=function(){return l[n].apply(l,arguments)}:"function"==typeof u[t]&&(o=u[t].bind(r))),o&&(r[t]=o,a[t]=o)},b=0,v=Object.keys(u);b<v.length;b++)d()}(void 0!==e?e:window).polyfillContext=c}).call(this,n(14))},function(e,t,n){"use strict";(function(e,r){var o=n(15);Object.defineProperty(t,"__esModule",{value:!0}),t.console=t.process=t.document=t.global=t.window=t.self=void 0;var i=o(n(4)),a={self:"undefined"!=typeof self&&self,window:"undefined"!=typeof window&&window,global:void 0!==e&&e,document:"undefined"!=typeof document&&document,process:"object"===(void 0===r?"undefined":(0,i.default)(r))&&r},u=a.self||a.window||a.global;t.self=u;var c=a.window||a.self||a.global;t.window=c;var s=a.global||a.self||a.window;t.global=s;var f=a.document||{};t.document=f;var l=a.process||{};t.process=l;var d=console;t.console=d}).call(this,n(14),n(10))},function(e,t,n){"use strict";(function(e){var r=n(15);Object.defineProperty(t,"__esModule",{value:!0}),t.default=a,t.isBrowserMainThread=function(){return a()&&"undefined"!=typeof document};var o=r(n(4)),i=r(n(18));function a(){return!("object"===(void 0===e?"undefined":(0,o.default)(e))&&"[object process]"===String(e)&&!e.browser)||(0,i.default)()}}).call(this,n(10))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return a}));var r=n(4),o=n.n(r),i=n(25);function a(){return!("object"===(void 0===e?"undefined":o()(e))&&"[object process]"===String(e)&&!e.browser)||Object(i.a)()}}).call(this,n(10))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i}));var r=n(4),o=n.n(r);function i(t){if("undefined"!=typeof window&&"object"===o()(window.process)&&"renderer"===window.process.type)return!0;if(void 0!==e&&"object"===o()(e.versions)&&Boolean(e.versions.electron))return!0;var n="object"===("undefined"==typeof navigator?"undefined":o()(navigator))&&"string"==typeof navigator.userAgent&&navigator.userAgent,r=t||n;return!!(r&&r.indexOf("Electron")>=0)}}).call(this,n(10))},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(5),o={};function i(e,t){var n;o[e]=!0,void 0!==t&&(n=t,r.global.console&&r.global.console.error&&r.global.console.error(n))}var a=function e(t){var n=t.gl;this.ext=t,this.isAlive=!0,this.hasBeenBound=!1,this.elementArrayBuffer=null,this.attribs=new Array(t.maxVertexAttribs);for(var r=0;r<this.attribs.length;r++){var o=new e.VertexAttrib(n);this.attribs[r]=o}this.maxAttrib=0};(a.VertexAttrib=function(e){this.enabled=!1,this.buffer=null,this.size=4,this.type=5126,this.normalized=!1,this.stride=16,this.offset=0,this.cached="",this.recache()}).prototype.recache=function(){this.cached=[this.size,this.type,this.normalized,this.stride,this.offset].join(":")};var u=function(e){var t=this;this.gl=e,function(e){var t=e.getError;e.getError=function(){var n;do{0!==(n=t.apply(e))&&(o[n]=!0)}while(0!==n);for(n in o)if(o[n])return delete o[n],parseInt(n,10);return 0}}(e);var n=this.original={getParameter:e.getParameter,enableVertexAttribArray:e.enableVertexAttribArray,disableVertexAttribArray:e.disableVertexAttribArray,bindBuffer:e.bindBuffer,getVertexAttrib:e.getVertexAttrib,vertexAttribPointer:e.vertexAttribPointer};e.getParameter=function(e){return e===t.VERTEX_ARRAY_BINDING_OES?t.currentVertexArrayObject===t.defaultVertexArrayObject?null:t.currentVertexArrayObject:n.getParameter.apply(this,arguments)},e.enableVertexAttribArray=function(e){var r=t.currentVertexArrayObject;r.maxAttrib=Math.max(r.maxAttrib,e);var o=r.attribs[e];return o.enabled=!0,n.enableVertexAttribArray.apply(this,arguments)},e.disableVertexAttribArray=function(e){var r=t.currentVertexArrayObject;r.maxAttrib=Math.max(r.maxAttrib,e);var o=r.attribs[e];return o.enabled=!1,n.disableVertexAttribArray.apply(this,arguments)},e.bindBuffer=function(e,r){switch(e){case 34962:t.currentArrayBuffer=r;break;case 34963:t.currentVertexArrayObject.elementArrayBuffer=r}return n.bindBuffer.apply(this,arguments)},e.getVertexAttrib=function(e,r){var o=t.currentVertexArrayObject,i=o.attribs[e];switch(r){case 34975:return i.buffer;case 34338:return i.enabled;case 34339:return i.size;case 34340:return i.stride;case 34341:return i.type;case 34922:return i.normalized;default:return n.getVertexAttrib.apply(this,arguments)}},e.vertexAttribPointer=function(e,r,o,i,a,u){var c=t.currentVertexArrayObject;c.maxAttrib=Math.max(c.maxAttrib,e);var s=c.attribs[e];return s.buffer=t.currentArrayBuffer,s.size=r,s.type=o,s.normalized=i,s.stride=a,s.offset=u,s.recache(),n.vertexAttribPointer.apply(this,arguments)},e.instrumentExtension&&e.instrumentExtension(this,"OES_vertex_array_object"),e.canvas&&e.canvas.addEventListener("webglcontextrestored",(function(){var e;e="OESVertexArrayObject emulation library context restored",r.global.console&&r.global.console.log&&r.global.console.log(e),t.reset_()}),!0),this.reset_()};function c(e){if("function"!=typeof e.createVertexArray){var t=e.getSupportedExtensions;e.getSupportedExtensions=function(){var e=t.call(this)||[];return e.indexOf("OES_vertex_array_object")<0&&e.push("OES_vertex_array_object"),e};var n=e.getExtension;e.getExtension=function(t){var r=n.call(this,t);return r||("OES_vertex_array_object"!==t?null:(e.__OESVertexArrayObject||(this.__OESVertexArrayObject=new u(this)),this.__OESVertexArrayObject))}}}u.prototype.VERTEX_ARRAY_BINDING_OES=34229,u.prototype.reset_=function(){if(void 0!==this.vertexArrayObjects)for(var e=0;e<this.vertexArrayObjects.length;++e)this.vertexArrayObjects.isAlive=!1;var t=this.gl;this.maxVertexAttribs=t.getParameter(34921),this.defaultVertexArrayObject=new a(this),this.currentVertexArrayObject=null,this.currentArrayBuffer=null,this.vertexArrayObjects=[this.defaultVertexArrayObject],this.bindVertexArrayOES(null)},u.prototype.createVertexArrayOES=function(){var e=new a(this);return this.vertexArrayObjects.push(e),e},u.prototype.deleteVertexArrayOES=function(e){e.isAlive=!1,this.vertexArrayObjects.splice(this.vertexArrayObjects.indexOf(e),1),this.currentVertexArrayObject===e&&this.bindVertexArrayOES(null)},u.prototype.isVertexArrayOES=function(e){return!!(e&&e instanceof a&&e.hasBeenBound&&e.ext===this)},u.prototype.bindVertexArrayOES=function(e){var t=this.gl;if(!e||e.isAlive){var n=this.original,r=this.currentVertexArrayObject;this.currentVertexArrayObject=e||this.defaultVertexArrayObject,this.currentVertexArrayObject.hasBeenBound=!0;var o=this.currentVertexArrayObject;if(r!==o){r&&o.elementArrayBuffer===r.elementArrayBuffer||n.bindBuffer.call(t,34963,o.elementArrayBuffer);for(var a=this.currentArrayBuffer,u=Math.max(r?r.maxAttrib:0,o.maxAttrib),c=0;c<=u;c++){var s=o.attribs[c],f=r?r.attribs[c]:null;if(r&&s.enabled===f.enabled||(s.enabled?n.enableVertexAttribArray.call(t,c):n.disableVertexAttribArray.call(t,c)),s.enabled){var l=!1;r&&s.buffer===f.buffer||(a!==s.buffer&&(n.bindBuffer.call(t,34962,s.buffer),a=s.buffer),l=!0),(l||s.cached!==f.cached)&&n.vertexAttribPointer.call(t,c,s.size,s.type,s.normalized,s.stride,s.offset)}}this.currentArrayBuffer!==a&&n.bindBuffer.call(t,34962,this.currentArrayBuffer)}}else i(1282,"bindVertexArrayOES: attempt to bind deleted arrayObject")}},function(e,t,n){(function(t){var r=n(37),o="undefined"==typeof window?t:window;o.luma=o.luma||{},e.exports=Object.assign(o.luma,r)}).call(this,n(14))},function(e,t,n){var r=n(19);e.exports=function(e){if(Array.isArray(e))return r(e)}},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t){},function(e,t,n){"use strict";var r=n(15),o=n(4);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"self",{enumerable:!0,get:function(){return i.self}}),Object.defineProperty(t,"window",{enumerable:!0,get:function(){return i.window}}),Object.defineProperty(t,"global",{enumerable:!0,get:function(){return i.global}}),Object.defineProperty(t,"document",{enumerable:!0,get:function(){return i.document}}),Object.defineProperty(t,"process",{enumerable:!0,get:function(){return i.process}}),Object.defineProperty(t,"console",{enumerable:!0,get:function(){return i.console}}),Object.defineProperty(t,"isBrowser",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"isBrowserMainThread",{enumerable:!0,get:function(){return a.isBrowserMainThread}}),Object.defineProperty(t,"getBrowser",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"isMobile",{enumerable:!0,get:function(){return u.isMobile}}),Object.defineProperty(t,"isElectron",{enumerable:!0,get:function(){return c.default}});var i=n(22),a=f(n(23)),u=f(n(33)),c=r(n(18));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}function f(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var u=i?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(r,a,u):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}},function(e,t,n){"use strict";var r=n(15);Object.defineProperty(t,"__esModule",{value:!0}),t.isMobile=function(){return void 0!==o.window.orientation},t.default=function(e){if(!e&&!(0,i.default)())return"Node";if((0,a.default)(e))return"Electron";var t="undefined"!=typeof navigator?navigator:{},n=e||t.userAgent||"";if(n.indexOf("Edge")>-1)return"Edge";var r=-1!==n.indexOf("MSIE "),u=-1!==n.indexOf("Trident/");if(r||u)return"IE";if(o.window.chrome)return"Chrome";if(o.window.safari)return"Safari";if(o.window.mozInnerScreenX)return"Firefox";return"Unknown"};var o=n(22),i=r(n(23)),a=r(n(18))},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,n){"use strict";n.r(t),n.d(t,"log",(function(){return I})),n.d(t,"isWebGL",(function(){return V.d})),n.d(t,"isWebGL2",(function(){return V.e})),n.d(t,"getWebGL2Context",(function(){return V.c})),n.d(t,"assertWebGLContext",(function(){return V.b})),n.d(t,"assertWebGL2Context",(function(){return V.a})),n.d(t,"polyfillContext",(function(){return G.a})),n.d(t,"getParameters",(function(){return W.a})),n.d(t,"setParameters",(function(){return W.c})),n.d(t,"resetParameters",(function(){return W.b})),n.d(t,"withParameters",(function(){return W.d})),n.d(t,"trackContextState",(function(){return R.c})),n.d(t,"pushContextState",(function(){return R.b})),n.d(t,"popContextState",(function(){return R.a})),n.d(t,"createGLContext",(function(){return $})),n.d(t,"resizeGLContext",(function(){return te})),n.d(t,"instrumentGLContext",(function(){return Z})),n.d(t,"getContextDebugInfo",(function(){return ee})),n.d(t,"cssToDeviceRatio",(function(){return z})),n.d(t,"cssToDevicePixels",(function(){return H}));var r=n(4),o=n.n(r),i=n(1),a=n.n(i),u=n(0),c=n.n(u),s=n(11),f=n.n(s),l=n(12),d=n.n(l),b=n(24),v=Object(b.a)();function g(e){try{var t=window[e],n="__storage_test__";return t.setItem(n,n),t.removeItem(n),t}catch(e){return null}}var h=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"sessionStorage";f()(this,e),this.storage=g(r),this.id=t,this.config={},Object.assign(this.config,n),this._loadConfiguration()}return d()(e,[{key:"getConfiguration",value:function(){return this.config}},{key:"setConfiguration",value:function(e){return this.config={},this.updateConfiguration(e)}},{key:"updateConfiguration",value:function(e){if(Object.assign(this.config,e),this.storage){var t=JSON.stringify(this.config);this.storage.setItem(this.id,t)}return this}},{key:"_loadConfiguration",value:function(){var e={};if(this.storage){var t=this.storage.getItem(this.id);e=t?JSON.parse(t):{}}return Object.assign(this.config,e),this}}]),e}();function p(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:600,o=e.src.replace(/\(/g,"%28").replace(/\)/g,"%29");e.width>r&&(n=Math.min(n,r/e.width));var i=e.width*n,a=e.height*n,u=["font-size:1px;","padding:".concat(Math.floor(a/2),"px ").concat(Math.floor(i/2),"px;"),"line-height:".concat(a,"px;"),"background:url(".concat(o,");"),"background-size:".concat(i,"px ").concat(a,"px;"),"color:transparent;"].join("");return["".concat(t," %c+"),u]}var y={BLACK:30,RED:31,GREEN:32,YELLOW:33,BLUE:34,MAGENTA:35,CYAN:36,WHITE:37,BRIGHT_BLACK:90,BRIGHT_RED:91,BRIGHT_GREEN:92,BRIGHT_YELLOW:93,BRIGHT_BLUE:94,BRIGHT_MAGENTA:95,BRIGHT_CYAN:96,BRIGHT_WHITE:97};function m(e){return"string"==typeof e?y[e.toUpperCase()]||y.WHITE:e}function x(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return w(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function O(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["constructor"],r=Object.getPrototypeOf(e),o=Object.getOwnPropertyNames(r),i=x(o);try{var a=function(){var r=t.value;"function"==typeof e[r]&&(n.find((function(e){return r===e}))||(e[r]=e[r].bind(e)))};for(i.s();!(t=i.n()).done;)a()}catch(e){i.e(e)}finally{i.f()}}function A(e,t){if(!e)throw new Error(t||"Assertion failed")}var _=n(9);function j(){var e;if(v&&_.b.performance)e=_.b.performance.now();else if(_.a.hrtime){var t=_.a.hrtime();e=1e3*t[0]+t[1]/1e6}else e=Date.now();return e}var E={debug:v&&console.debug||console.log,log:console.log,info:console.info,warn:console.warn,error:console.error},S={enabled:!0,level:0};function L(){}var k={},C={once:!0};function B(e){for(var t in e)for(var n in e[t])return n||"untitled";return"empty"}var T=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{id:""},n=t.id;f()(this,e),this.id=n,this.VERSION="8.5.8",this._startTs=j(),this._deltaTs=j(),this.LOG_THROTTLE_TIMEOUT=0,this._storage=new h("__probe-".concat(this.id,"__"),S),this.userData={},this.timeStamp("".concat(this.id," started")),O(this),Object.seal(this)}return d()(e,[{key:"isEnabled",value:function(){return this._storage.config.enabled}},{key:"getLevel",value:function(){return this._storage.config.level}},{key:"getTotal",value:function(){return Number((j()-this._startTs).toPrecision(10))}},{key:"getDelta",value:function(){return Number((j()-this._deltaTs).toPrecision(10))}},{key:"getPriority",value:function(){return this.level}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._storage.updateConfiguration({enabled:e}),this}},{key:"setLevel",value:function(e){return this._storage.updateConfiguration({level:e}),this}},{key:"assert",value:function(e,t){A(e,t)}},{key:"warn",value:function(e){return this._getLogFunction(0,e,E.warn,arguments,C)}},{key:"error",value:function(e){return this._getLogFunction(0,e,E.error,arguments)}},{key:"deprecated",value:function(e,t){return this.warn("`".concat(e,"` is deprecated and will be removed in a later version. Use `").concat(t,"` instead"))}},{key:"removed",value:function(e,t){return this.error("`".concat(e,"` has been removed. Use `").concat(t,"` instead"))}},{key:"probe",value:function(e,t){return this._getLogFunction(e,t,E.log,arguments,{time:!0,once:!0})}},{key:"log",value:function(e,t){return this._getLogFunction(e,t,E.debug,arguments)}},{key:"info",value:function(e,t){return this._getLogFunction(e,t,console.info,arguments)}},{key:"once",value:function(e,t){return this._getLogFunction(e,t,E.debug||E.info,arguments,C)}},{key:"table",value:function(e,t,n){return t?this._getLogFunction(e,t,console.table||L,n&&[n],{tag:B(t)}):L}},{key:"image",value:function(e){var t=e.logLevel,r=e.priority,o=e.image,i=e.message,u=void 0===i?"":i,c=e.scale,s=void 0===c?1:c;return this._shouldLog(t||r)?v?function(e){var t=e.image,n=e.message,r=void 0===n?"":n,o=e.scale,i=void 0===o?1:o;if("string"==typeof t){var u=new Image;return u.onload=function(){var e,t=p(u,r,i);(e=console).log.apply(e,a()(t))},u.src=t,L}var c=t.nodeName||"";if("img"===c.toLowerCase()){var s;return(s=console).log.apply(s,a()(p(t,r,i))),L}if("canvas"===c.toLowerCase()){var f=new Image;return f.onload=function(){var e;return(e=console).log.apply(e,a()(p(f,r,i)))},f.src=t.toDataURL(),L}return L}({image:o,message:u,scale:s}):function(e){var t=e.image,r=(e.message,e.scale),o=void 0===r?1:r,i=null;try{i=n(31)}catch(e){}if(i)return function(){return i(t,{fit:"box",width:"".concat(Math.round(80*o),"%")}).then((function(e){return console.log(e)}))};return L}({image:o,message:u,scale:s}):L}},{key:"settings",value:function(){console.table?console.table(this._storage.config):console.log(this._storage.config)}},{key:"get",value:function(e){return this._storage.config[e]}},{key:"set",value:function(e,t){this._storage.updateConfiguration(c()({},e,t))}},{key:"time",value:function(e,t){return this._getLogFunction(e,t,console.time?console.time:console.info)}},{key:"timeEnd",value:function(e,t){return this._getLogFunction(e,t,console.timeEnd?console.timeEnd:console.info)}},{key:"timeStamp",value:function(e,t){return this._getLogFunction(e,t,console.timeStamp||L)}},{key:"group",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{collapsed:!1},r=n=M({logLevel:e,message:t,opts:n}),o=r.collapsed;return n.method=(o?console.groupCollapsed:console.group)||console.info,this._getLogFunction(n)}},{key:"groupCollapsed",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.group(e,t,Object.assign({},n,{collapsed:!0}))}},{key:"groupEnd",value:function(e){return this._getLogFunction(e,"",console.groupEnd||L)}},{key:"withGroup",value:function(e,t,n){this.group(e,t)();try{n()}finally{this.groupEnd(e)()}}},{key:"trace",value:function(){console.trace&&console.trace()}},{key:"_shouldLog",value:function(e){return this.isEnabled()&&this.getLevel()>=F(e)}},{key:"_getLogFunction",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4?arguments[4]:void 0;if(this._shouldLog(e)){var i;o=M({logLevel:e,message:t,args:r,opts:o}),A(n=n||o.method),o.total=this.getTotal(),o.delta=this.getDelta(),this._deltaTs=j();var u=o.tag||o.message;if(o.once){if(k[u])return L;k[u]=j()}return t=P(this.id,o.message,o),(i=n).bind.apply(i,[console,t].concat(a()(o.args)))}return L}},{key:"level",set:function(e){this.setLevel(e)},get:function(){return this.getLevel()}},{key:"priority",set:function(e){this.level=e},get:function(){return this.level}}]),e}();function F(e){if(!e)return 0;var t;switch(o()(e)){case"number":t=e;break;case"object":t=e.logLevel||e.priority||0;break;default:return 0}return A(Number.isFinite(t)&&t>=0),t}function M(e){var t=e.logLevel,n=e.message;e.logLevel=F(t);for(var r=e.args?Array.from(e.args):[];r.length&&r.shift()!==n;);switch(e.args=r,o()(t)){case"string":case"function":void 0!==n&&r.unshift(n),e.message=t;break;case"object":Object.assign(e,t)}"function"==typeof e.message&&(e.message=e.message());var i=o()(e.message);return A("string"===i||"object"===i),Object.assign(e,e.opts)}function P(e,t,n){if("string"==typeof t){var r=n.time?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:8,n=Math.max(t-e.length,0);return"".concat(" ".repeat(n)).concat(e)}((u=n.total)<10?"".concat(u.toFixed(2),"ms"):u<100?"".concat(u.toFixed(1),"ms"):u<1e3?"".concat(u.toFixed(0),"ms"):"".concat((u/1e3).toFixed(2),"s")):"";t=n.time?"".concat(e,": ").concat(r," ").concat(t):"".concat(e,": ").concat(t),o=t,i=n.color,a=n.background,v||"string"!=typeof o||(i&&(i=m(i),o="[".concat(i,"m").concat(o,"")),a&&(i=m(a),o="[".concat(a+10,"m").concat(o,""))),t=o}var o,i,a,u;return t}T.VERSION="8.5.8";var I=new T({id:"luma.gl"}),V=n(2),G=n(21),W=n(8),R=n(7),N=n(5),D=n(3);function z(e){var t=e.luma;if(e.canvas&&t){var n=t.canvasSizeInfo.clientWidth;return n?e.drawingBufferWidth/n:1}return 1}function H(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=z(e),o=e.drawingBufferWidth,i=e.drawingBufferHeight;return X(t,r,o,i,n)}function U(e){var t="undefined"==typeof window?1:window.devicePixelRatio||1;return Number.isFinite(e)?e<=0?1:e:e?t:1}function X(e,t,n,r,o){var i,a=q(e[0],t,n),u=Q(e[1],t,r,o),c=q(e[0]+1,t,n),s=c===n-1?c:c-1;return c=Q(e[1]+1,t,r,o),o?(i=u,u=c=0===c?c:c+1):i=c===r-1?c:c-1,{x:a,y:u,width:Math.max(s-a+1,1),height:Math.max(i-u+1,1)}}function q(e,t,n){return Math.min(Math.round(e*t),n-1)}function Q(e,t,n,r){return r?Math.max(0,n-1-Math.round(e*t)):Math.min(Math.round(e*t),n-1)}var Y=Object(N.isBrowser)(),K=Y&&"undefined"!=typeof document,J={webgl2:!0,webgl1:!0,throwOnError:!0,manageState:!0,canvas:null,debug:!1,width:800,height:600};function $(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object(D.a)(Y,"createGLContext only available in the browser.\nCreate your own headless context or use 'createHeadlessContext' from @luma.gl/test-utils");var t,n=e=Object.assign({},J,e),r=n.width,o=n.height;function i(t){if(e.throwOnError)throw new Error(t);return console.error(t),null}e.onError=i;var a=e,u=a.canvas,c=re({canvas:u,width:r,height:o,onError:i});return(t=ne(c,e))?(oe(t=Z(t,e)),t):null}function Z(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e||e._instrumented)return e;e._version=e._version||ie(e),e.luma=e.luma||{},e.luma.canvasSizeInfo=e.luma.canvasSizeInfo||{};var n=t=Object.assign({},J,t),r=n.manageState,o=n.debug;return r&&Object(R.c)(e,{copyState:!1,log:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return I.log.apply(I,[1].concat(t))()}}),Y&&o&&(N.global.makeDebugContext?(e=N.global.makeDebugContext(e,t),I.level=Math.max(I.level,1)):I.warn('WebGL debug mode not activated. import "@luma.gl/debug" to enable.')()),e._instrumented=!0,e}function ee(e){var t=e.getParameter(7936),n=e.getParameter(7937),r=e.getExtension("WEBGL_debug_renderer_info");return{vendor:r&&e.getParameter(r.UNMASKED_VENDOR_WEBGL||7936)||t,renderer:r&&e.getParameter(r.UNMASKED_RENDERER_WEBGL||7937)||n,vendorMasked:t,rendererMasked:n,version:e.getParameter(7938),shadingLanguageVersion:e.getParameter(35724)}}function te(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.canvas){var n=U(t.useDevicePixels);ae(e,n,t)}else{var r=e.getExtension("STACKGL_resize_drawingbuffer");r&&"width"in t&&"height"in t&&r.resize(t.width,t.height)}}function ne(e,t){var n=t.onError,r=null,o=function(e){return r=e.statusMessage||r};e.addEventListener("webglcontextcreationerror",o,!1);var i=t.webgl1,a=void 0===i||i,u=t.webgl2,c=void 0===u||u,s=null;return c&&(s=(s=s||e.getContext("webgl2",t))||e.getContext("experimental-webgl2",t)),a&&(s=(s=s||e.getContext("webgl",t))||e.getContext("experimental-webgl",t)),e.removeEventListener("webglcontextcreationerror",o,!1),s?(t.onContextLost&&e.addEventListener("webglcontextlost",t.onContextLost,!1),t.onContextRestored&&e.addEventListener("webglcontextrestored",t.onContextRestored,!1),s):n("Failed to create ".concat(c&&!a?"WebGL2":"WebGL"," context: ").concat(r||"Unknown error"))}function re(e){var t,n=e.canvas,r=e.width,o=void 0===r?800:r,i=e.height,a=void 0===i?600:i,u=e.onError;"string"==typeof n?(K&&"complete"===document.readyState||u("createGLContext called on canvas '".concat(n,"' before page was loaded")),t=document.getElementById(n)):n?t=n:((t=document.createElement("canvas")).id="lumagl-canvas",t.style.width=Number.isFinite(o)?"".concat(o,"px"):"100%",t.style.height=Number.isFinite(a)?"".concat(a,"px"):"100%",document.body.insertBefore(t,document.body.firstChild));return t}function oe(e){var t=Object(V.e)(e)?"WebGL2":"WebGL1",n=ee(e),r=n?"(".concat(n.vendor,",").concat(n.renderer,")"):"",o=e.debug?" debug":"";I.info(1,"".concat(t).concat(o," context ").concat(r))()}function ie(e){return"undefined"!=typeof WebGL2RenderingContext&&e instanceof WebGL2RenderingContext?2:1}function ae(e,t,n){var r="width"in n?n.width:e.canvas.clientWidth,o="height"in n?n.height:e.canvas.clientHeight;r&&o||(I.log(1,"Canvas clientWidth/clientHeight is 0")(),t=1,r=e.canvas.width||1,o=e.canvas.height||1),e.luma=e.luma||{},e.luma.canvasSizeInfo=e.luma.canvasSizeInfo||{};var i=e.luma.canvasSizeInfo;if(i.clientWidth!==r||i.clientHeight!==o||i.devicePixelRatio!==t){var a=t,u=Math.floor(r*a),c=Math.floor(o*a);e.canvas.width=u,e.canvas.height=c,e.drawingBufferWidth===u&&e.drawingBufferHeight===c||(I.warn("Device pixel ratio clamped")(),a=Math.min(e.drawingBufferWidth/r,e.drawingBufferHeight/o),e.canvas.width=Math.floor(r*a),e.canvas.height=Math.floor(o*a)),Object.assign(e.luma.canvasSizeInfo,{clientWidth:r,clientHeight:o,devicePixelRatio:t})}}}])}));

@@ -27,12 +27,10 @@ "use strict";

gl[functionName] = function get(pname) {
if (pname === undefined || _webglParameterTables.NON_CACHE_PARAMETERS.has(pname)) {
return originalGetterFunc(pname);
}
gl[functionName] = function get() {
var pname = arguments.length <= 0 ? undefined : arguments[0];
if (!(pname in gl.state.cache)) {
gl.state.cache[pname] = originalGetterFunc(pname);
return originalGetterFunc.apply(void 0, arguments);
}
return gl.state.enable ? gl.state.cache[pname] : originalGetterFunc(pname);
return gl.state.enable ? gl.state.cache[pname] : originalGetterFunc.apply(void 0, arguments);
};

@@ -47,6 +45,2 @@

function installSetterSpy(gl, functionName, setter) {
if (!gl[functionName]) {
return;
}
var originalSetterFunc = gl[functionName].bind(gl);

@@ -53,0 +47,0 @@

@@ -8,3 +8,3 @@ "use strict";

});
exports.NON_CACHE_PARAMETERS = exports.GL_PARAMETER_GETTERS = exports.GL_HOOKED_SETTERS = exports.GL_COMPOSITE_PARAMETER_SETTERS = exports.GL_PARAMETER_SETTERS = exports.GL_PARAMETER_DEFAULTS = void 0;
exports.GL_PARAMETER_GETTERS = exports.GL_HOOKED_SETTERS = exports.GL_COMPOSITE_PARAMETER_SETTERS = exports.GL_PARAMETER_SETTERS = exports.GL_PARAMETER_DEFAULTS = void 0;

@@ -21,3 +21,3 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));

var GL_PARAMETER_DEFAULTS = (_GL_PARAMETER_DEFAULT = {}, (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 3042, false), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 32773, new Float32Array([0, 0, 0, 0])), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 32777, 32774), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 34877, 32774), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 32969, 1), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 32968, 0), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 32971, 1), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 32970, 0), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 3106, new Float32Array([0, 0, 0, 0])), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 3107, [true, true, true, true]), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 2884, false), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 2885, 1029), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 2929, false), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 2931, 1), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 2932, 513), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 2928, new Float32Array([0, 1])), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 2930, true), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 3024, true), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 35725, null), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 36006, null), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 36007, null), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 34229, null), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 34964, null), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 32873, null), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 34068, null), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 2886, 2305), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 33170, 4352), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 2849, 1), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 32823, false), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 32824, 0), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 10752, 0), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 32926, false), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 32928, false), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 32938, 1.0), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 32939, false), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 3089, false), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 3088, new Int32Array([0, 0, 1024, 1024])), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 2960, false), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 2961, 0), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 2968, 0xffffffff), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 36005, 0xffffffff), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 2962, 519), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 2967, 0), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 2963, 0xffffffff), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 34816, 519), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 36003, 0), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 36004, 0xffffffff), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 2964, 7680), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 2965, 7680), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 2966, 7680), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 34817, 7680), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 34818, 7680), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 34819, 7680), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 2978, [0, 0, 1024, 1024]), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 3333, 4), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 3317, 4), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 37440, false), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 37441, false), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 37443, 37444), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 36389, null), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 36662, null), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 36663, null), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 35053, null), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 35055, null), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 35869, null), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 32874, null), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 35723, 4352), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 36010, null), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 35977, false), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 3330, 0), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 3332, 0), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 3331, 0), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 3314, 0), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 32878, 0), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 3316, 0), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 3315, 0), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 32877, 0), _GL_PARAMETER_DEFAULT);
var GL_PARAMETER_DEFAULTS = (_GL_PARAMETER_DEFAULT = {}, (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 3042, false), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 32773, new Float32Array([0, 0, 0, 0])), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 32777, 32774), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 34877, 32774), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 32969, 1), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 32968, 0), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 32971, 1), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 32970, 0), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 3106, new Float32Array([0, 0, 0, 0])), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 3107, [true, true, true, true]), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 2884, false), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 2885, 1029), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 2929, false), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 2931, 1), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 2932, 513), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 2928, new Float32Array([0, 1])), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 2930, true), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 3024, true), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 36006, null), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 2886, 2305), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 33170, 4352), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 2849, 1), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 32823, false), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 32824, 0), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 10752, 0), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 32938, 1.0), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 32939, false), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 3089, false), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 3088, new Int32Array([0, 0, 1024, 1024])), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 2960, false), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 2961, 0), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 2968, 0xffffffff), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 36005, 0xffffffff), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 2962, 519), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 2967, 0), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 2963, 0xffffffff), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 34816, 519), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 36003, 0), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 36004, 0xffffffff), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 2964, 7680), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 2965, 7680), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 2966, 7680), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 34817, 7680), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 34818, 7680), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 34819, 7680), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 2978, [0, 0, 1024, 1024]), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 3333, 4), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 3317, 4), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 37440, false), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 37441, false), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 37443, 37444), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 35723, 4352), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 36010, null), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 35977, false), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 3330, 0), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 3332, 0), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 3331, 0), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 3314, 0), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 32878, 0), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 3316, 0), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 3315, 0), (0, _defineProperty2.default)(_GL_PARAMETER_DEFAULT, 32877, 0), _GL_PARAMETER_DEFAULT);
exports.GL_PARAMETER_DEFAULTS = GL_PARAMETER_DEFAULTS;

@@ -37,28 +37,11 @@

var bindFramebuffer = function bindFramebuffer(gl, value, key) {
var target;
if (key === 36006) {
target = (0, _webglChecks.isWebGL2)(gl) ? 36009 : 36160;
} else {
target = 36008;
}
var drawFramebuffer = function drawFramebuffer(gl, value) {
var target = (0, _webglChecks.isWebGL2)(gl) ? 36009 : 36160;
return gl.bindFramebuffer(target, value);
};
var bindBuffer = function bindBuffer(gl, value, key) {
var _$36662$36663$;
var target = (_$36662$36663$ = {}, (0, _defineProperty2.default)(_$36662$36663$, 34964, [34962]), (0, _defineProperty2.default)(_$36662$36663$, 36662, [36662]), (0, _defineProperty2.default)(_$36662$36663$, 36663, [36663]), (0, _defineProperty2.default)(_$36662$36663$, 35053, [35051]), (0, _defineProperty2.default)(_$36662$36663$, 35055, [35052]), _$36662$36663$)[key];
gl.bindBuffer(target, value);
var readFramebuffer = function readFramebuffer(gl, value) {
return gl.bindFramebuffer(36008, value);
};
var bindTexture = function bindTexture(gl, value, key) {
var _$35869$32874$;
var target = (_$35869$32874$ = {}, (0, _defineProperty2.default)(_$35869$32874$, 32873, [3553]), (0, _defineProperty2.default)(_$35869$32874$, 35869, [35866]), (0, _defineProperty2.default)(_$35869$32874$, 32874, [32879]), (0, _defineProperty2.default)(_$35869$32874$, 34068, [34067]), _$35869$32874$)[key];
gl.bindTexture(target, value);
};
function isArray(array) {

@@ -84,15 +67,7 @@ return Array.isArray(array) || ArrayBuffer.isView(array);

return gl.depthMask(value);
}), (0, _defineProperty2.default)(_GL_PARAMETER_SETTERS, 3024, enable), (0, _defineProperty2.default)(_GL_PARAMETER_SETTERS, 35723, hint), (0, _defineProperty2.default)(_GL_PARAMETER_SETTERS, 35725, function (gl, value) {
return gl.useProgram(value);
}), (0, _defineProperty2.default)(_GL_PARAMETER_SETTERS, 36007, function (gl, value) {
return gl.bindRenderbuffer(36161, value);
}), (0, _defineProperty2.default)(_GL_PARAMETER_SETTERS, 36389, function (gl, value) {
return gl.bindTransformFeedback && gl.bindTransformFeedback(36386, value);
}), (0, _defineProperty2.default)(_GL_PARAMETER_SETTERS, 34229, function (gl, value) {
return gl.bindVertexArray(value);
}), (0, _defineProperty2.default)(_GL_PARAMETER_SETTERS, 36006, bindFramebuffer), (0, _defineProperty2.default)(_GL_PARAMETER_SETTERS, 36010, bindFramebuffer), (0, _defineProperty2.default)(_GL_PARAMETER_SETTERS, 34964, bindBuffer), (0, _defineProperty2.default)(_GL_PARAMETER_SETTERS, 36662, bindBuffer), (0, _defineProperty2.default)(_GL_PARAMETER_SETTERS, 36663, bindBuffer), (0, _defineProperty2.default)(_GL_PARAMETER_SETTERS, 35053, bindBuffer), (0, _defineProperty2.default)(_GL_PARAMETER_SETTERS, 35055, bindBuffer), (0, _defineProperty2.default)(_GL_PARAMETER_SETTERS, 32873, bindTexture), (0, _defineProperty2.default)(_GL_PARAMETER_SETTERS, 35869, bindTexture), (0, _defineProperty2.default)(_GL_PARAMETER_SETTERS, 32874, bindTexture), (0, _defineProperty2.default)(_GL_PARAMETER_SETTERS, 34068, bindTexture), (0, _defineProperty2.default)(_GL_PARAMETER_SETTERS, 2886, function (gl, value) {
}), (0, _defineProperty2.default)(_GL_PARAMETER_SETTERS, 3024, enable), (0, _defineProperty2.default)(_GL_PARAMETER_SETTERS, 35723, hint), (0, _defineProperty2.default)(_GL_PARAMETER_SETTERS, 36006, drawFramebuffer), (0, _defineProperty2.default)(_GL_PARAMETER_SETTERS, 2886, function (gl, value) {
return gl.frontFace(value);
}), (0, _defineProperty2.default)(_GL_PARAMETER_SETTERS, 33170, hint), (0, _defineProperty2.default)(_GL_PARAMETER_SETTERS, 2849, function (gl, value) {
return gl.lineWidth(value);
}), (0, _defineProperty2.default)(_GL_PARAMETER_SETTERS, 32823, enable), (0, _defineProperty2.default)(_GL_PARAMETER_SETTERS, 32824, 'polygonOffset'), (0, _defineProperty2.default)(_GL_PARAMETER_SETTERS, 10752, 'polygonOffset'), (0, _defineProperty2.default)(_GL_PARAMETER_SETTERS, 35977, enable), (0, _defineProperty2.default)(_GL_PARAMETER_SETTERS, 32926, enable), (0, _defineProperty2.default)(_GL_PARAMETER_SETTERS, 32928, enable), (0, _defineProperty2.default)(_GL_PARAMETER_SETTERS, 32938, 'sampleCoverage'), (0, _defineProperty2.default)(_GL_PARAMETER_SETTERS, 32939, 'sampleCoverage'), (0, _defineProperty2.default)(_GL_PARAMETER_SETTERS, 3089, enable), (0, _defineProperty2.default)(_GL_PARAMETER_SETTERS, 3088, function (gl, value) {
}), (0, _defineProperty2.default)(_GL_PARAMETER_SETTERS, 32823, enable), (0, _defineProperty2.default)(_GL_PARAMETER_SETTERS, 32824, 'polygonOffset'), (0, _defineProperty2.default)(_GL_PARAMETER_SETTERS, 10752, 'polygonOffset'), (0, _defineProperty2.default)(_GL_PARAMETER_SETTERS, 35977, enable), (0, _defineProperty2.default)(_GL_PARAMETER_SETTERS, 32938, 'sampleCoverage'), (0, _defineProperty2.default)(_GL_PARAMETER_SETTERS, 32939, 'sampleCoverage'), (0, _defineProperty2.default)(_GL_PARAMETER_SETTERS, 3089, enable), (0, _defineProperty2.default)(_GL_PARAMETER_SETTERS, 3088, function (gl, value) {
return gl.scissor.apply(gl, (0, _toConsumableArray2.default)(value));

@@ -107,3 +82,3 @@ }), (0, _defineProperty2.default)(_GL_PARAMETER_SETTERS, 2960, enable), (0, _defineProperty2.default)(_GL_PARAMETER_SETTERS, 2961, function (gl, value) {

return gl.viewport.apply(gl, (0, _toConsumableArray2.default)(value));
}), (0, _defineProperty2.default)(_GL_PARAMETER_SETTERS, 3333, pixelStorei), (0, _defineProperty2.default)(_GL_PARAMETER_SETTERS, 3317, pixelStorei), (0, _defineProperty2.default)(_GL_PARAMETER_SETTERS, 37440, pixelStorei), (0, _defineProperty2.default)(_GL_PARAMETER_SETTERS, 37441, pixelStorei), (0, _defineProperty2.default)(_GL_PARAMETER_SETTERS, 37443, pixelStorei), (0, _defineProperty2.default)(_GL_PARAMETER_SETTERS, 3330, pixelStorei), (0, _defineProperty2.default)(_GL_PARAMETER_SETTERS, 3332, pixelStorei), (0, _defineProperty2.default)(_GL_PARAMETER_SETTERS, 3331, pixelStorei), (0, _defineProperty2.default)(_GL_PARAMETER_SETTERS, 3314, pixelStorei), (0, _defineProperty2.default)(_GL_PARAMETER_SETTERS, 32878, pixelStorei), (0, _defineProperty2.default)(_GL_PARAMETER_SETTERS, 3316, pixelStorei), (0, _defineProperty2.default)(_GL_PARAMETER_SETTERS, 3315, pixelStorei), (0, _defineProperty2.default)(_GL_PARAMETER_SETTERS, 32877, pixelStorei), (0, _defineProperty2.default)(_GL_PARAMETER_SETTERS, "framebuffer", function framebuffer(gl, _framebuffer) {
}), (0, _defineProperty2.default)(_GL_PARAMETER_SETTERS, 3333, pixelStorei), (0, _defineProperty2.default)(_GL_PARAMETER_SETTERS, 3317, pixelStorei), (0, _defineProperty2.default)(_GL_PARAMETER_SETTERS, 37440, pixelStorei), (0, _defineProperty2.default)(_GL_PARAMETER_SETTERS, 37441, pixelStorei), (0, _defineProperty2.default)(_GL_PARAMETER_SETTERS, 37443, pixelStorei), (0, _defineProperty2.default)(_GL_PARAMETER_SETTERS, 3330, pixelStorei), (0, _defineProperty2.default)(_GL_PARAMETER_SETTERS, 3332, pixelStorei), (0, _defineProperty2.default)(_GL_PARAMETER_SETTERS, 3331, pixelStorei), (0, _defineProperty2.default)(_GL_PARAMETER_SETTERS, 36010, readFramebuffer), (0, _defineProperty2.default)(_GL_PARAMETER_SETTERS, 3314, pixelStorei), (0, _defineProperty2.default)(_GL_PARAMETER_SETTERS, 32878, pixelStorei), (0, _defineProperty2.default)(_GL_PARAMETER_SETTERS, 3316, pixelStorei), (0, _defineProperty2.default)(_GL_PARAMETER_SETTERS, 3315, pixelStorei), (0, _defineProperty2.default)(_GL_PARAMETER_SETTERS, 32877, pixelStorei), (0, _defineProperty2.default)(_GL_PARAMETER_SETTERS, "framebuffer", function framebuffer(gl, _framebuffer) {
var handle = _framebuffer && 'handle' in _framebuffer ? _framebuffer.handle : _framebuffer;

@@ -250,20 +225,8 @@ return gl.bindFramebuffer(36160, handle);

},
useProgram: function useProgram(update, value) {
return update((0, _defineProperty2.default)({}, 35725, value));
},
bindRenderbuffer: function bindRenderbuffer(update, target, value) {
return update((0, _defineProperty2.default)({}, 36007, value));
},
bindTransformFeedback: function bindTransformFeedback(update, target, value) {
return update((0, _defineProperty2.default)({}, 36389, value));
},
bindVertexArray: function bindVertexArray(update, value) {
return update((0, _defineProperty2.default)({}, 34229, value));
},
bindFramebuffer: function bindFramebuffer(update, target, framebuffer) {
var _update9;
var _update5;
switch (target) {
case 36160:
return update((_update9 = {}, (0, _defineProperty2.default)(_update9, 36006, framebuffer), (0, _defineProperty2.default)(_update9, 36010, framebuffer), _update9));
return update((_update5 = {}, (0, _defineProperty2.default)(_update5, 36006, framebuffer), (0, _defineProperty2.default)(_update5, 36010, framebuffer), _update5));

@@ -280,26 +243,2 @@ case 36009:

},
bindBuffer: function bindBuffer(update, target, buffer) {
var _$36662$36663$2;
var pname = (_$36662$36663$2 = {}, (0, _defineProperty2.default)(_$36662$36663$2, 34962, [34964]), (0, _defineProperty2.default)(_$36662$36663$2, 36662, [36662]), (0, _defineProperty2.default)(_$36662$36663$2, 36663, [36663]), (0, _defineProperty2.default)(_$36662$36663$2, 35051, [35053]), (0, _defineProperty2.default)(_$36662$36663$2, 35052, [35055]), _$36662$36663$2)[target];
if (pname) {
return update((0, _defineProperty2.default)({}, pname, buffer));
}
return {
valueChanged: true
};
},
bindTexture: function bindTexture(update, target, texture) {
var _$35866$32879$;
var pname = (_$35866$32879$ = {}, (0, _defineProperty2.default)(_$35866$32879$, 3553, [32873]), (0, _defineProperty2.default)(_$35866$32879$, 35866, [35869]), (0, _defineProperty2.default)(_$35866$32879$, 32879, [32874]), (0, _defineProperty2.default)(_$35866$32879$, 34067, [34068]), _$35866$32879$)[target];
if (pname) {
return update((0, _defineProperty2.default)({}, pname, texture));
}
return null;
},
blendColor: function blendColor(update, r, g, b, a) {

@@ -309,20 +248,20 @@ return update((0, _defineProperty2.default)({}, 32773, new Float32Array([r, g, b, a])));

blendEquation: function blendEquation(update, mode) {
var _update15;
var _update9;
return update((_update15 = {}, (0, _defineProperty2.default)(_update15, 32777, mode), (0, _defineProperty2.default)(_update15, 34877, mode), _update15));
return update((_update9 = {}, (0, _defineProperty2.default)(_update9, 32777, mode), (0, _defineProperty2.default)(_update9, 34877, mode), _update9));
},
blendEquationSeparate: function blendEquationSeparate(update, modeRGB, modeAlpha) {
var _update16;
var _update10;
return update((_update16 = {}, (0, _defineProperty2.default)(_update16, 32777, modeRGB), (0, _defineProperty2.default)(_update16, 34877, modeAlpha), _update16));
return update((_update10 = {}, (0, _defineProperty2.default)(_update10, 32777, modeRGB), (0, _defineProperty2.default)(_update10, 34877, modeAlpha), _update10));
},
blendFunc: function blendFunc(update, src, dst) {
var _update17;
var _update11;
return update((_update17 = {}, (0, _defineProperty2.default)(_update17, 32969, src), (0, _defineProperty2.default)(_update17, 32968, dst), (0, _defineProperty2.default)(_update17, 32971, src), (0, _defineProperty2.default)(_update17, 32970, dst), _update17));
return update((_update11 = {}, (0, _defineProperty2.default)(_update11, 32969, src), (0, _defineProperty2.default)(_update11, 32968, dst), (0, _defineProperty2.default)(_update11, 32971, src), (0, _defineProperty2.default)(_update11, 32970, dst), _update11));
},
blendFuncSeparate: function blendFuncSeparate(update, srcRGB, dstRGB, srcAlpha, dstAlpha) {
var _update18;
var _update12;
return update((_update18 = {}, (0, _defineProperty2.default)(_update18, 32969, srcRGB), (0, _defineProperty2.default)(_update18, 32968, dstRGB), (0, _defineProperty2.default)(_update18, 32971, srcAlpha), (0, _defineProperty2.default)(_update18, 32970, dstAlpha), _update18));
return update((_update12 = {}, (0, _defineProperty2.default)(_update12, 32969, srcRGB), (0, _defineProperty2.default)(_update12, 32968, dstRGB), (0, _defineProperty2.default)(_update12, 32971, srcAlpha), (0, _defineProperty2.default)(_update12, 32970, dstAlpha), _update12));
},

@@ -360,10 +299,10 @@ clearColor: function clearColor(update, r, g, b, a) {

polygonOffset: function polygonOffset(update, factor, units) {
var _update29;
var _update23;
return update((_update29 = {}, (0, _defineProperty2.default)(_update29, 32824, factor), (0, _defineProperty2.default)(_update29, 10752, units), _update29));
return update((_update23 = {}, (0, _defineProperty2.default)(_update23, 32824, factor), (0, _defineProperty2.default)(_update23, 10752, units), _update23));
},
sampleCoverage: function sampleCoverage(update, value, invert) {
var _update30;
var _update24;
return update((_update30 = {}, (0, _defineProperty2.default)(_update30, 32938, value), (0, _defineProperty2.default)(_update30, 32939, invert), _update30));
return update((_update24 = {}, (0, _defineProperty2.default)(_update24, 32938, value), (0, _defineProperty2.default)(_update24, 32939, invert), _update24));
},

@@ -374,5 +313,5 @@ scissor: function scissor(update, x, y, width, height) {

stencilMask: function stencilMask(update, mask) {
var _update32;
var _update26;
return update((_update32 = {}, (0, _defineProperty2.default)(_update32, 2968, mask), (0, _defineProperty2.default)(_update32, 36005, mask), _update32));
return update((_update26 = {}, (0, _defineProperty2.default)(_update26, 2968, mask), (0, _defineProperty2.default)(_update26, 36005, mask), _update26));
},

@@ -383,20 +322,20 @@ stencilMaskSeparate: function stencilMaskSeparate(update, face, mask) {

stencilFunc: function stencilFunc(update, func, ref, mask) {
var _update34;
var _update28;
return update((_update34 = {}, (0, _defineProperty2.default)(_update34, 2962, func), (0, _defineProperty2.default)(_update34, 2967, ref), (0, _defineProperty2.default)(_update34, 2963, mask), (0, _defineProperty2.default)(_update34, 34816, func), (0, _defineProperty2.default)(_update34, 36003, ref), (0, _defineProperty2.default)(_update34, 36004, mask), _update34));
return update((_update28 = {}, (0, _defineProperty2.default)(_update28, 2962, func), (0, _defineProperty2.default)(_update28, 2967, ref), (0, _defineProperty2.default)(_update28, 2963, mask), (0, _defineProperty2.default)(_update28, 34816, func), (0, _defineProperty2.default)(_update28, 36003, ref), (0, _defineProperty2.default)(_update28, 36004, mask), _update28));
},
stencilFuncSeparate: function stencilFuncSeparate(update, face, func, ref, mask) {
var _update35;
var _update29;
return update((_update35 = {}, (0, _defineProperty2.default)(_update35, face === 1028 ? 2962 : 34816, func), (0, _defineProperty2.default)(_update35, face === 1028 ? 2967 : 36003, ref), (0, _defineProperty2.default)(_update35, face === 1028 ? 2963 : 36004, mask), _update35));
return update((_update29 = {}, (0, _defineProperty2.default)(_update29, face === 1028 ? 2962 : 34816, func), (0, _defineProperty2.default)(_update29, face === 1028 ? 2967 : 36003, ref), (0, _defineProperty2.default)(_update29, face === 1028 ? 2963 : 36004, mask), _update29));
},
stencilOp: function stencilOp(update, fail, zfail, zpass) {
var _update36;
var _update30;
return update((_update36 = {}, (0, _defineProperty2.default)(_update36, 2964, fail), (0, _defineProperty2.default)(_update36, 2965, zfail), (0, _defineProperty2.default)(_update36, 2966, zpass), (0, _defineProperty2.default)(_update36, 34817, fail), (0, _defineProperty2.default)(_update36, 34818, zfail), (0, _defineProperty2.default)(_update36, 34819, zpass), _update36));
return update((_update30 = {}, (0, _defineProperty2.default)(_update30, 2964, fail), (0, _defineProperty2.default)(_update30, 2965, zfail), (0, _defineProperty2.default)(_update30, 2966, zpass), (0, _defineProperty2.default)(_update30, 34817, fail), (0, _defineProperty2.default)(_update30, 34818, zfail), (0, _defineProperty2.default)(_update30, 34819, zpass), _update30));
},
stencilOpSeparate: function stencilOpSeparate(update, face, fail, zfail, zpass) {
var _update37;
var _update31;
return update((_update37 = {}, (0, _defineProperty2.default)(_update37, face === 1028 ? 2964 : 34817, fail), (0, _defineProperty2.default)(_update37, face === 1028 ? 2965 : 34818, zfail), (0, _defineProperty2.default)(_update37, face === 1028 ? 2966 : 34819, zpass), _update37));
return update((_update31 = {}, (0, _defineProperty2.default)(_update31, face === 1028 ? 2964 : 34817, fail), (0, _defineProperty2.default)(_update31, face === 1028 ? 2965 : 34818, zfail), (0, _defineProperty2.default)(_update31, face === 1028 ? 2966 : 34819, zpass), _update31));
},

@@ -415,4 +354,2 @@ viewport: function viewport(update, x, y, width, height) {

exports.GL_PARAMETER_GETTERS = GL_PARAMETER_GETTERS;
var NON_CACHE_PARAMETERS = new Set([34016, 36388, 36387, 35983, 35368, 34965, 35739, 35738, 3074, 34853, 34854, 34855, 34856, 34857, 34858, 34859, 34860, 34861, 34862, 34863, 34864, 34865, 34866, 34867, 34868, 35097]);
exports.NON_CACHE_PARAMETERS = NON_CACHE_PARAMETERS;
//# sourceMappingURL=webgl-parameter-tables.js.map

@@ -1,2 +0,2 @@

import { GL_PARAMETER_DEFAULTS, GL_HOOKED_SETTERS, NON_CACHE_PARAMETERS } from './webgl-parameter-tables';
import { GL_PARAMETER_DEFAULTS, GL_HOOKED_SETTERS } from './webgl-parameter-tables';
import { setParameters, getParameters } from './unified-parameter-api';

@@ -9,12 +9,10 @@ import { assert } from '../utils/assert';

gl[functionName] = function get(pname) {
if (pname === undefined || NON_CACHE_PARAMETERS.has(pname)) {
return originalGetterFunc(pname);
}
gl[functionName] = function get(...params) {
const pname = params[0];
if (!(pname in gl.state.cache)) {
gl.state.cache[pname] = originalGetterFunc(pname);
return originalGetterFunc(...params);
}
return gl.state.enable ? gl.state.cache[pname] : originalGetterFunc(pname);
return gl.state.enable ? gl.state.cache[pname] : originalGetterFunc(...params);
};

@@ -29,6 +27,2 @@

function installSetterSpy(gl, functionName, setter) {
if (!gl[functionName]) {
return;
}
const originalSetterFunc = gl[functionName].bind(gl);

@@ -35,0 +29,0 @@

@@ -21,9 +21,3 @@ import { isWebGL2 } from '../utils/webgl-checks';

[3024]: true,
[35725]: null,
[36006]: null,
[36007]: null,
[34229]: null,
[34964]: null,
[32873]: null,
[34068]: null,
[2886]: 2305,

@@ -35,4 +29,2 @@ [33170]: 4352,

[10752]: 0,
[32926]: false,
[32928]: false,
[32938]: 1.0,

@@ -64,9 +56,2 @@ [32939]: false,

[37443]: 37444,
[36389]: null,
[36662]: null,
[36663]: null,
[35053]: null,
[35055]: null,
[35869]: null,
[32874]: null,
[35723]: 4352,

@@ -91,35 +76,11 @@ [36010]: null,

const bindFramebuffer = (gl, value, key) => {
let target;
if (key === 36006) {
target = isWebGL2(gl) ? 36009 : 36160;
} else {
target = 36008;
}
const drawFramebuffer = (gl, value) => {
const target = isWebGL2(gl) ? 36009 : 36160;
return gl.bindFramebuffer(target, value);
};
const bindBuffer = (gl, value, key) => {
const target = {
[34964]: [34962],
[36662]: [36662],
[36663]: [36663],
[35053]: [35051],
[35055]: [35052]
}[key];
gl.bindBuffer(target, value);
const readFramebuffer = (gl, value) => {
return gl.bindFramebuffer(36008, value);
};
const bindTexture = (gl, value, key) => {
const target = {
[32873]: [3553],
[35869]: [35866],
[32874]: [32879],
[34068]: [34067]
}[key];
gl.bindTexture(target, value);
};
function isArray(array) {

@@ -149,17 +110,3 @@ return Array.isArray(array) || ArrayBuffer.isView(array);

[35723]: hint,
[35725]: (gl, value) => gl.useProgram(value),
[36007]: (gl, value) => gl.bindRenderbuffer(36161, value),
[36389]: (gl, value) => gl.bindTransformFeedback && gl.bindTransformFeedback(36386, value),
[34229]: (gl, value) => gl.bindVertexArray(value),
[36006]: bindFramebuffer,
[36010]: bindFramebuffer,
[34964]: bindBuffer,
[36662]: bindBuffer,
[36663]: bindBuffer,
[35053]: bindBuffer,
[35055]: bindBuffer,
[32873]: bindTexture,
[35869]: bindTexture,
[32874]: bindTexture,
[34068]: bindTexture,
[36006]: drawFramebuffer,
[2886]: (gl, value) => gl.frontFace(value),

@@ -172,4 +119,2 @@ [33170]: hint,

[35977]: enable,
[32926]: enable,
[32928]: enable,
[32938]: 'sampleCoverage',

@@ -204,2 +149,3 @@ [32939]: 'sampleCoverage',

[3331]: pixelStorei,
[36010]: readFramebuffer,
[3314]: pixelStorei,

@@ -295,14 +241,2 @@ [32878]: pixelStorei,

}),
useProgram: (update, value) => update({
[35725]: value
}),
bindRenderbuffer: (update, target, value) => update({
[36007]: value
}),
bindTransformFeedback: (update, target, value) => update({
[36389]: value
}),
bindVertexArray: (update, value) => update({
[34229]: value
}),
bindFramebuffer: (update, target, framebuffer) => {

@@ -330,37 +264,2 @@ switch (target) {

},
bindBuffer: (update, target, buffer) => {
const pname = {
[34962]: [34964],
[36662]: [36662],
[36663]: [36663],
[35051]: [35053],
[35052]: [35055]
}[target];
if (pname) {
return update({
[pname]: buffer
});
}
return {
valueChanged: true
};
},
bindTexture: (update, target, texture) => {
const pname = {
[3553]: [32873],
[35866]: [35869],
[32879]: [32874],
[34067]: [34068]
}[target];
if (pname) {
return update({
[pname]: texture
});
}
return null;
},
blendColor: (update, r, g, b, a) => update({

@@ -482,3 +381,2 @@ [32773]: new Float32Array([r, g, b, a])

};
export const NON_CACHE_PARAMETERS = new Set([34016, 36388, 36387, 35983, 35368, 34965, 35739, 35738, 3074, 34853, 34854, 34855, 34856, 34857, 34858, 34859, 34860, 34861, 34862, 34863, 34864, 34865, 34866, 34867, 34868, 35097]);
//# sourceMappingURL=webgl-parameter-tables.js.map
{
"name": "@luma.gl/gltools",
"version": "8.5.8",
"version": "8.5.9",
"description": "WebGL2 API Polyfills for WebGL1 WebGLRenderingContext",

@@ -32,6 +32,6 @@ "license": "MIT",

"@babel/runtime": "^7.0.0",
"@luma.gl/constants": "8.5.8",
"@luma.gl/constants": "8.5.9",
"probe.gl": "^3.4.0"
},
"gitHead": "ec6897d6a3df73e30a4f31be904b2fba4fcac191"
"gitHead": "8c70c28a90b7507592a6029f51428f7397daed49"
}

@@ -5,7 +5,3 @@ // Support for listening to context state changes and intercepting state queries

import {
GL_PARAMETER_DEFAULTS,
GL_HOOKED_SETTERS,
NON_CACHE_PARAMETERS
} from './webgl-parameter-tables';
import {GL_PARAMETER_DEFAULTS, GL_HOOKED_SETTERS} from './webgl-parameter-tables';
import {setParameters, getParameters} from './unified-parameter-api';

@@ -24,11 +20,9 @@ import {assert} from '../utils/assert';

// Wrap it with a spy so that we can update our state cache when it gets called
gl[functionName] = function get(pname) {
if (pname === undefined || NON_CACHE_PARAMETERS.has(pname)) {
// Invalid or blacklisted parameter, do not cache
return originalGetterFunc(pname);
}
gl[functionName] = function get(...params) {
const pname = params[0];
// WebGL limits are not prepopulated in the cache, it's neither undefined in GL_PARAMETER_DEFAULTS
// nor intercepted by GL_HOOKED_SETTERS. Query the original getter.
if (!(pname in gl.state.cache)) {
// WebGL limits are not prepopulated in the cache, call the original getter when first queried.
gl.state.cache[pname] = originalGetterFunc(pname);
return originalGetterFunc(...params);
}

@@ -41,3 +35,3 @@

: // Optionally call the original function to do a "hard" query from the WebGLRenderingContext
originalGetterFunc(pname);
originalGetterFunc(...params);
};

@@ -57,6 +51,2 @@

// Get the original function from the WebGLRenderingContext
if (!gl[functionName]) {
// This could happen if we try to intercept WebGL2 method on a WebGL1 context
return;
}
const originalSetterFunc = gl[functionName].bind(gl);

@@ -63,0 +53,0 @@

@@ -28,10 +28,4 @@ // Tables describing WebGL parameters

[GL.DITHER]: true,
[GL.CURRENT_PROGRAM]: null,
// FRAMEBUFFER_BINDING and DRAW_FRAMEBUFFER_BINDING(WebGL2) refer same state.
[GL.FRAMEBUFFER_BINDING]: null,
[GL.RENDERBUFFER_BINDING]: null,
[GL.VERTEX_ARRAY_BINDING]: null,
[GL.ARRAY_BUFFER_BINDING]: null,
[GL.TEXTURE_BINDING_2D]: null,
[GL.TEXTURE_BINDING_CUBE_MAP]: null,
[GL.FRONT_FACE]: GL.CCW,

@@ -43,4 +37,2 @@ [GL.GENERATE_MIPMAP_HINT]: GL.DONT_CARE,

[GL.POLYGON_OFFSET_UNITS]: 0,
[GL.SAMPLE_ALPHA_TO_COVERAGE]: false,
[GL.SAMPLE_COVERAGE]: false,
[GL.SAMPLE_COVERAGE_VALUE]: 1.0,

@@ -78,9 +70,2 @@ [GL.SAMPLE_COVERAGE_INVERT]: false,

// gl1: 'OES_standard_derivatives'
[GL.TRANSFORM_FEEDBACK_BINDING]: null,
[GL.COPY_READ_BUFFER_BINDING]: null,
[GL.COPY_WRITE_BUFFER_BINDING]: null,
[GL.PIXEL_PACK_BUFFER_BINDING]: null,
[GL.PIXEL_UNPACK_BUFFER_BINDING]: null,
[GL.TEXTURE_BINDING_2D_ARRAY]: null,
[GL.TEXTURE_BINDING_3D]: null,
[GL.FRAGMENT_SHADER_DERIVATIVE_HINT]: GL.DONT_CARE,

@@ -105,36 +90,10 @@ [GL.READ_FRAMEBUFFER_BINDING]: null,

const bindFramebuffer = (gl, value, key) => {
let target;
if (key === GL.FRAMEBUFFER_BINDING) {
target = isWebGL2(gl) ? GL.DRAW_FRAMEBUFFER : GL.FRAMEBUFFER;
} else {
// GL.READ_FRAMEBUFFER_BINDING
target = GL.READ_FRAMEBUFFER;
}
const drawFramebuffer = (gl, value) => {
const target = isWebGL2(gl) ? GL.DRAW_FRAMEBUFFER : GL.FRAMEBUFFER;
return gl.bindFramebuffer(target, value);
};
const bindBuffer = (gl, value, key) => {
const target = {
[GL.ARRAY_BUFFER_BINDING]: [GL.ARRAY_BUFFER],
[GL.COPY_READ_BUFFER_BINDING]: [GL.COPY_READ_BUFFER],
[GL.COPY_WRITE_BUFFER_BINDING]: [GL.COPY_WRITE_BUFFER],
[GL.PIXEL_PACK_BUFFER_BINDING]: [GL.PIXEL_PACK_BUFFER],
[GL.PIXEL_UNPACK_BUFFER_BINDING]: [GL.PIXEL_UNPACK_BUFFER]
}[key];
gl.bindBuffer(target, value);
const readFramebuffer = (gl, value) => {
return gl.bindFramebuffer(GL.READ_FRAMEBUFFER, value);
};
const bindTexture = (gl, value, key) => {
const target = {
[GL.TEXTURE_BINDING_2D]: [GL.TEXTURE_2D],
[GL.TEXTURE_BINDING_2D_ARRAY]: [GL.TEXTURE_2D_ARRAY],
[GL.TEXTURE_BINDING_3D]: [GL.TEXTURE_3D],
[GL.TEXTURE_BINDING_CUBE_MAP]: [GL.TEXTURE_CUBE_MAP]
}[key];
gl.bindTexture(target, value);
};
// Utility

@@ -168,25 +127,4 @@ function isArray(array) {

[GL.FRAGMENT_SHADER_DERIVATIVE_HINT]: hint,
[GL.CURRENT_PROGRAM]: (gl, value) => gl.useProgram(value),
[GL.RENDERBUFFER_BINDING]: (gl, value) => gl.bindRenderbuffer(GL.RENDERBUFFER, value),
[GL.TRANSFORM_FEEDBACK_BINDING]: (gl, value) =>
gl.bindTransformFeedback && gl.bindTransformFeedback(GL.TRANSFORM_FEEDBACK, value),
[GL.VERTEX_ARRAY_BINDING]: (gl, value) => gl.bindVertexArray(value),
// NOTE: FRAMEBUFFER_BINDING and DRAW_FRAMEBUFFER_BINDING(WebGL2) refer same state.
[GL.FRAMEBUFFER_BINDING]: bindFramebuffer,
[GL.READ_FRAMEBUFFER_BINDING]: bindFramebuffer,
// Buffers
[GL.ARRAY_BUFFER_BINDING]: bindBuffer,
[GL.COPY_READ_BUFFER_BINDING]: bindBuffer,
[GL.COPY_WRITE_BUFFER_BINDING]: bindBuffer,
[GL.PIXEL_PACK_BUFFER_BINDING]: bindBuffer,
[GL.PIXEL_UNPACK_BUFFER_BINDING]: bindBuffer,
// Textures
[GL.TEXTURE_BINDING_2D]: bindTexture,
[GL.TEXTURE_BINDING_2D_ARRAY]: bindTexture,
[GL.TEXTURE_BINDING_3D]: bindTexture,
[GL.TEXTURE_BINDING_CUBE_MAP]: bindTexture,
[GL.FRAMEBUFFER_BINDING]: drawFramebuffer,
[GL.FRONT_FACE]: (gl, value) => gl.frontFace(value),

@@ -199,4 +137,2 @@ [GL.GENERATE_MIPMAP_HINT]: hint,

[GL.RASTERIZER_DISCARD]: enable,
[GL.SAMPLE_ALPHA_TO_COVERAGE]: enable,
[GL.SAMPLE_COVERAGE]: enable,
[GL.SAMPLE_COVERAGE_VALUE]: 'sampleCoverage',

@@ -236,2 +172,3 @@ [GL.SAMPLE_COVERAGE_INVERT]: 'sampleCoverage',

[GL.PACK_SKIP_ROWS]: pixelStorei,
[GL.READ_FRAMEBUFFER_BINDING]: readFramebuffer,
[GL.UNPACK_ROW_LENGTH]: pixelStorei,

@@ -400,18 +337,2 @@ [GL.UNPACK_IMAGE_HEIGHT]: pixelStorei,

// SPECIFIC SETTERS
useProgram: (update, value) =>
update({
[GL.CURRENT_PROGRAM]: value
}),
bindRenderbuffer: (update, target, value) =>
update({
[GL.RENDERBUFFER_BINDING]: value
}),
bindTransformFeedback: (update, target, value) =>
update({
[GL.TRANSFORM_FEEDBACK_BINDING]: value
}),
bindVertexArray: (update, value) =>
update({
[GL.VERTEX_ARRAY_BINDING]: value
}),

@@ -433,34 +354,2 @@ bindFramebuffer: (update, target, framebuffer) => {

},
bindBuffer: (update, target, buffer) => {
const pname = {
[GL.ARRAY_BUFFER]: [GL.ARRAY_BUFFER_BINDING],
[GL.COPY_READ_BUFFER]: [GL.COPY_READ_BUFFER_BINDING],
[GL.COPY_WRITE_BUFFER]: [GL.COPY_WRITE_BUFFER_BINDING],
[GL.PIXEL_PACK_BUFFER]: [GL.PIXEL_PACK_BUFFER_BINDING],
[GL.PIXEL_UNPACK_BUFFER]: [GL.PIXEL_UNPACK_BUFFER_BINDING]
}[target];
if (pname) {
// @ts-ignore
return update({[pname]: buffer});
}
// targets that should not be cached
return {valueChanged: true};
},
bindTexture: (update, target, texture) => {
const pname = {
[GL.TEXTURE_2D]: [GL.TEXTURE_BINDING_2D],
[GL.TEXTURE_2D_ARRAY]: [GL.TEXTURE_BINDING_2D_ARRAY],
[GL.TEXTURE_3D]: [GL.TEXTURE_BINDING_3D],
[GL.TEXTURE_CUBE_MAP]: [GL.TEXTURE_BINDING_CUBE_MAP]
}[target];
if (pname) {
// @ts-ignore
return update({[pname]: texture});
}
return null;
},
blendColor: (update, r, g, b, a) =>

@@ -636,38 +525,1 @@ update({

};
export const NON_CACHE_PARAMETERS = new Set([
// setter not intercepted
GL.ACTIVE_TEXTURE,
GL.TRANSFORM_FEEDBACK_ACTIVE,
GL.TRANSFORM_FEEDBACK_PAUSED,
// setters bindBufferRange/bindBufferBase cannot be pruned based on cache
GL.TRANSFORM_FEEDBACK_BUFFER_BINDING,
GL.UNIFORM_BUFFER_BINDING,
// states depending on VERTEX_ARRAY_BINDING
GL.ELEMENT_ARRAY_BUFFER_BINDING,
// states depending on READ_FRAMEBUFFER_BINDING
GL.IMPLEMENTATION_COLOR_READ_FORMAT,
GL.IMPLEMENTATION_COLOR_READ_TYPE,
// states depending on FRAMEBUFFER_BINDING
GL.READ_BUFFER,
GL.DRAW_BUFFER0,
GL.DRAW_BUFFER1,
GL.DRAW_BUFFER2,
GL.DRAW_BUFFER3,
GL.DRAW_BUFFER4,
GL.DRAW_BUFFER5,
GL.DRAW_BUFFER6,
GL.DRAW_BUFFER7,
GL.DRAW_BUFFER8,
GL.DRAW_BUFFER9,
GL.DRAW_BUFFER10,
GL.DRAW_BUFFER11,
GL.DRAW_BUFFER12,
GL.DRAW_BUFFER13,
GL.DRAW_BUFFER14,
GL.DRAW_BUFFER15,
// states depending on ACTIVE_TEXTURE
GL.SAMPLER_BINDING
]);

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc