diff --git a/docs/appcache/manifest.appcache b/docs/appcache/manifest.appcache index 3dc6e01c..3f177f73 100644 --- a/docs/appcache/manifest.appcache +++ b/docs/appcache/manifest.appcache @@ -1,39 +1,39 @@ CACHE MANIFEST -#ver:2017-9-27 13:49:44 +#ver:2017-9-27 15:41:27 #plugin:4.8.3 CACHE: -../bundle-b83b71fc9f3a320f3b1a.js -../styles-b83b71fc9f3a320f3b1a.css +../bundle-da278108f6437f93dd36.js +../styles-da278108f6437f93dd36.css ../ -../favicon.ico +../fonts/uber.woff ../fonts/uber.svg ../fonts/uber.ttf -../fonts/uber.woff -../images/icon-chart.svg ../images/footer-pattern.gif -../images/icon-custom.svg -../images/icon-layers.svg +../favicon.ico +../images/icon-chart.svg ../images/icon-high-precision.svg -../images/icon-react.svg +../images/icon-layers.svg +../images/icon-custom.svg ../images/hero.jpg +../images/icon-react.svg ../images/uber-logo.png ../images/logo.svg -../images/geospatial-app/geospatial-app.png ../images/mg_arc_2.png -../images/mg_arc_1.png ../images/mg_choropleth.png +../images/mg_arc_1.png +../images/geospatial-app/geospatial-app.png ../images/mg_hex_1.png ../images/mg_hex_2.png ../images/mg_hex_3d.png ../images/mg_hex_3.png ../images/mg_hex_4.png ../images/mg_hex_5.png -../images/mg_path.png ../images/mg_hex_6.png +../images/mg_path.png ../images/mg_scatterplot_1.png -../images/mg_scatterplot_2.png ../images/path.jpg +../images/mg_scatterplot_2.png NETWORK: * \ No newline at end of file diff --git a/docs/bundle-b83b71fc9f3a320f3b1a.js b/docs/bundle-da278108f6437f93dd36.js similarity index 62% rename from docs/bundle-b83b71fc9f3a320f3b1a.js rename to docs/bundle-da278108f6437f93dd36.js index 5214f063..b5e2084c 100644 --- a/docs/bundle-b83b71fc9f3a320f3b1a.js +++ b/docs/bundle-da278108f6437f93dd36.js @@ -14,7 +14,7 @@ var n=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,o=Object.pr * * Copyright (c) 2016 Jorik Tangelder; * Licensed under the MIT license */ -!function(n,r,o,c){"use strict";function l(e,a,i){return setTimeout(_(e,i),a)}function u(e,a,i){return!!Array.isArray(e)&&(s(e,i[a],i),!0)}function s(e,a,i){var t;if(e)if(e.forEach)e.forEach(a,i);else if(e.length!==c)for(t=0;t\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",r=n.console&&(n.console.warn||n.console.log);return r&&r.call(n.console,t,i),e.apply(this,arguments)}}function m(e,a,i){var t,n=a.prototype;t=e.prototype=Object.create(n),t.constructor=e,t._super=n,i&&ge(t,i)}function _(e,a){return function(){return e.apply(a,arguments)}}function g(e,a){return typeof e==ye?e.apply(a?a[0]||c:c,a):e}function d(e,a){return e===c?a:e}function v(e,a,i){s(b(a),function(a){e.addEventListener(a,i,!1)})}function y(e,a,i){s(b(a),function(a){e.removeEventListener(a,i,!1)})}function f(e,a){for(;e;){if(e==a)return!0;e=e.parentNode}return!1}function h(e,a){return e.indexOf(a)>-1}function b(e){return e.trim().split(/\s+/g)}function N(e,a,i){if(e.indexOf&&!i)return e.indexOf(a);for(var t=0;ti[a]}):t.sort()),t}function O(e,a){for(var i,t,n=a[0].toUpperCase()+a.slice(1),r=0;r1&&!i.firstMultiple?i.firstMultiple=C(a):1===n&&(i.firstMultiple=!1);var r=i.firstInput,o=i.firstMultiple,c=o?o.center:r.center,l=a.center=M(t);a.timeStamp=be(),a.deltaTime=a.timeStamp-r.timeStamp,a.angle=G(c,l),a.distance=B(c,l),w(i,a),a.offsetDirection=F(a.deltaX,a.deltaY);var u=P(a.deltaTime,a.deltaX,a.deltaY);a.overallVelocityX=u.x,a.overallVelocityY=u.y,a.overallVelocity=he(u.x)>he(u.y)?u.x:u.y,a.scale=o?U(o.pointers,t):1,a.rotation=o?H(o.pointers,t):0,a.maxPointers=i.prevInput?a.pointers.length>i.prevInput.maxPointers?a.pointers.length:i.prevInput.maxPointers:a.pointers.length,D(i,a);var s=e.element;f(a.srcEvent.target,s)&&(s=a.srcEvent.target),a.target=s}function w(e,a){var i=a.center,t=e.offsetDelta||{},n=e.prevDelta||{},r=e.prevInput||{};a.eventType!==Le&&r.eventType!==we||(n=e.prevDelta={x:r.deltaX||0,y:r.deltaY||0},t=e.offsetDelta={x:i.x,y:i.y}),a.deltaX=n.x+(i.x-t.x),a.deltaY=n.y+(i.y-t.y)}function D(e,a){var i,t,n,r,o=e.lastInterval||a,l=a.timeStamp-o.timeStamp;if(a.eventType!=De&&(l>xe||o.velocity===c)){var u=a.deltaX-o.deltaX,s=a.deltaY-o.deltaY,p=P(l,u,s);t=p.x,n=p.y,i=he(p.x)>he(p.y)?p.x:p.y,r=F(u,s),e.lastInterval=a}else i=o.velocity,t=o.velocityX,n=o.velocityY,r=o.direction;a.velocity=i,a.velocityX=t,a.velocityY=n,a.direction=r}function C(e){for(var a=[],i=0;i=he(a)?e<0?Me:Pe:a<0?Fe:Be}function B(e,a,i){i||(i=ke);var t=a[i[0]]-e[i[0]],n=a[i[1]]-e[i[1]];return Math.sqrt(t*t+n*n)}function G(e,a,i){i||(i=ke);var t=a[i[0]]-e[i[0]],n=a[i[1]]-e[i[1]];return 180*Math.atan2(n,t)/Math.PI}function H(e,a){return G(a[1],a[0],je)+G(e[1],e[0],je)}function U(e,a){return B(a[0],a[1],je)/B(e[0],e[1],je)}function k(){this.evEl=Ye,this.evWin=Ve,this.pressed=!1,I.apply(this,arguments)}function j(){this.evEl=Xe,this.evWin=Ze,I.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function W(){this.evTarget=Qe,this.evWin=Je,this.started=!1,I.apply(this,arguments)}function Y(e,a){var i=E(e.touches),t=E(e.changedTouches);return a&(we|De)&&(i=A(i.concat(t),"identifier",!0)),[i,t]}function V(){this.evTarget=ea,this.targetIds={},I.apply(this,arguments)}function z(e,a){var i=E(e.touches),t=this.targetIds;if(a&(Le|Re)&&1===i.length)return t[i[0].identifier]=!0,[i,i];var n,r,o=E(e.changedTouches),c=[],l=this.target;if(r=i.filter(function(e){return f(e.target,l)}),a===Le)for(n=0;n-1&&t.splice(e,1)};setTimeout(n,aa)}}function q(e){for(var a=e.srcEvent.clientX,i=e.srcEvent.clientY,t=0;t-1&&this.requireFail.splice(a,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(e){function a(a){i.manager.emit(a,e)}var i=this,t=this.state;t=ga&&a(i.options.event+ee(t))},tryEmit:function(e){if(this.canEmit())return this.emit(e);this.state=32},canEmit:function(){for(var e=0;ea.threshold&&n&a.direction},attrTest:function(e){return te.prototype.attrTest.call(this,e)&&(this.state&ma||!(this.state&ma)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var a=ae(e.direction);a&&(e.additionalEvent=this.options.event+a),this._super.emit.call(this,e)}}),m(re,te,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[ca]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||this.state&ma)},emit:function(e){if(1!==e.scale){var a=e.scale<1?"in":"out";e.additionalEvent=this.options.event+a}this._super.emit.call(this,e)}}),m(oe,$,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[ra]},process:function(e){var a=this.options,i=e.pointers.length===a.pointers,t=e.distancea.time;if(this._input=e,!t||!i||e.eventType&(we|De)&&!n)this.reset();else if(e.eventType&Le)this.reset(),this._timer=l(function(){this.state=da,this.tryEmit()},a.time,this);else if(e.eventType&we)return da;return 32},reset:function(){clearTimeout(this._timer)},emit:function(e){this.state===da&&(e&&e.eventType&we?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=be(),this.manager.emit(this.options.event,this._input)))}}),m(ce,te,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[ca]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||this.state&ma)}}),m(le,te,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Ge|He,pointers:1},getTouchAction:function(){return ne.prototype.getTouchAction.call(this)},attrTest:function(e){var a,i=this.options.direction;return i&(Ge|He)?a=e.overallVelocity:i&Ge?a=e.overallVelocityX:i&He&&(a=e.overallVelocityY),this._super.attrTest.call(this,e)&&i&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&he(a)>this.options.velocity&&e.eventType&we},emit:function(e){var a=ae(e.offsetDirection);a&&this.manager.emit(this.options.event+a,e),this.manager.emit(this.options.event,e)}}),m(ue,$,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[oa]},process:function(e){var a=this.options,i=e.pointers.length===a.pointers,t=e.distance1&&void 0!==arguments[1]?arguments[1]:{};n(this,a);var t=r(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,e,i));return t.width=null,t.height=null,t.attachments={},t.readBuffer=A,t.drawBuffers=[A],t.initialize(i),Object.seal(t),t}return o(a,e),E(a,null,[{key:"isSupported",value:function(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=a.colorBufferFloat,t=a.colorBufferHalfFloat;return i&&e.getExtension(Object(p.h)(e)?"EXT_color_buffer_float":"WEBGL_color_buffer_float"),t&&e.getExtension(Object(p.h)(e)?"EXT_color_buffer_float":"EXT_color_buffer_half_float")}}]),E(a,[{key:"initialize",value:function(e){var a=e.width,i=void 0===a?1:a,t=e.height,n=void 0===t?1:t,r=e.attachments,o=void 0===r?null:r,c=e.color,l=void 0===c||c,u=e.depth,s=void 0===u||u,p=e.stencil,m=void 0!==p&&p,_=e.check,g=void 0===_||_,d=e.readBuffer,v=e.drawBuffers;if(b()(i>=0&&n>=0,"Width and height need to be integers"),this.width=i,this.height=n,o)for(var y in o){var f=o[y],h=Array.isArray(f)?f[0]:f;h.resize({width:i,height:n})}else o=this._createDefaultAttachments({color:l,depth:s,stencil:m,width:i,height:n});this.update({clearAttachments:!0,attachments:o,readBuffer:d,drawBuffers:v}),o&&g&&this.checkStatus()}},{key:"update",value:function(e){var a=e.attachments,i=void 0===a?{}:a,t=e.readBuffer,n=e.drawBuffers,r=e.clearAttachments,o=void 0!==r&&r;this.attach(i,{clearAttachments:o});var c=this.gl;return c.bindFramebuffer(36160,this.handle),t&&this._setReadBuffer(t),n&&this._setDrawBuffers(n),c.bindFramebuffer(36160,null),this}},{key:"resize",value:function(e){var a=e.width,i=e.height;f.log.log(2,"Resizing framebuffer "+this.id+" to "+a+"x"+i);for(var t in this.attachments)this.attachments[t].resize({width:a,height:i});return this.width=a,this.height=i,this}},{key:"attach",value:function(e){var a=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=i.clearAttachments,n=void 0!==t&&t,r={};n&&Object.keys(this.attachments).forEach(function(e){r[e]=null}),Object.assign(r,e),this.gl.bindFramebuffer(36160,this.handle);for(var o in r){b()("undefined"!==o,"Misspelled framebuffer binding point?");var c=r[o],l=c;if(l)if(l instanceof v.a)this._attachRenderbuffer({attachment:o,renderbuffer:l});else if(Array.isArray(c)){var u=N(c,3),s=u[0],p=u[1],m=void 0===p?0:p,_=u[2],g=void 0===_?0:_;l=s,this._attachTexture({attachment:o,texture:s,layer:m,level:g})}else this._attachTexture({attachment:o,texture:l,layer:0,level:0});else this._unattach({attachment:o});l&&l.resize({width:this.width,height:this.height})}this.gl.bindFramebuffer(36160,null),Object.assign(this.attachments,e),Object.keys(this.attachments).filter(function(e){return!a.attachments[e]}).forEach(function(e){delete a.attachments[e]})}},{key:"checkStatus",value:function(){var e=this.gl;e.bindFramebuffer(36160,this.handle);var a=e.checkFramebufferStatus(36160);if(e.bindFramebuffer(36160,null),a!==e.FRAMEBUFFER_COMPLETE)throw new Error(u(a));return this}},{key:"clear",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=e.color,i=e.depth,t=e.stencil,n=e.drawBuffers,r=void 0===n?[]:n;return this.gl.bindFramebuffer(36160,this.handle),(a||i||t)&&Object(m.a)({color:a,depth:i,stencil:t}),r.forEach(function(e,a){Object(m.b)({drawBuffer:a,value:e})}),this.gl.bindFramebuffer(36160,null),this}},{key:"readPixels",value:function(e){var a=e.x,i=void 0===a?0:a,t=e.y,n=void 0===t?0:t,r=e.width,o=e.height,c=e.format,u=void 0===c?s.e.RGBA:c,p=e.type,m=e.pixelArray,_=void 0===m?null:m,g=this.gl;if(!_){p=p||g.UNSIGNED_BYTE;var d=Object(y.b)(p,{clamped:!1}),v=l(u);_=_||new d(r*o*v)}return p=p||Object(y.a)(_),this.bind(),this.gl.readPixels(i,n,r,o,u,p,_),this.unbind(),_}},{key:"copyToTexture",value:function(e){var a=e.srcFramebuffer,i=e.x,t=e.y,n=(e.width,e.height,e.texture),r=(e.xoffset,e.yoffset,e.zoffset,e.mipmapLevel),o=void 0===r?0:r,c=e.internalFormat,l=void 0===c?s.e.RGBA:c,u=(e.border,this.gl);switch(u.bindFramebuffer(36160,a.handle),n.target){case 3553:case 34067:u.copyTexSubImage2D(n.target,o,l,i,t,n.width,n.height);break;case 35866:case 32879:u.copyTexSubImage3D(n.target,o,l,i,t,n.width,n.height)}return u.bindFramebuffer(36160,null),this}},{key:"blit",value:function(e){var a=e.srcFramebuffer,i=e.srcX0,t=e.srcY0,n=e.srcX1,r=e.srcY1,o=e.dstX0,c=e.dstY0,l=e.dstX1,u=e.dstY1,m=e.color,_=e.depth,g=e.stencil,d=e.mask,v=void 0===d?0:d,y=e.filter,f=void 0===y?s.e.NEAREST:y,h=this.gl;return b()(Object(p.h)(h),p.b),m&&(v|=16384),_&&(v|=256),g&&(v|=1024),h.bindFramebuffer(36009,a.handle),h.bindFramebuffer(36008,this.handle),h.blitFramebuffer(i,t,n,r,o,c,l,u,v,f),h.bindFramebuffer(36008,null),h.bindFramebuffer(36009,null),this}},{key:"invalidate",value:function(e){var a=e.attachments,i=void 0===a?[]:a,t=e.x,n=void 0===t?0:t,r=e.y,o=void 0===r?0:r,c=e.width,l=e.height,u=this.gl;return b()(Object(p.h)(u,p.b)),u.bindFramebuffer(36009,this.handle),0===n&&0===o&&void 0===c&&void 0===l?u.invalidateFramebuffer(36009,i):u.invalidateFramebuffer(36009,i,n,o,c,l),u.bindFramebuffer(36009,null),this}},{key:"getAttachmentParameter",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=e.target,i=void 0===a?this.target:a,t=e.attachment,n=void 0===t?A:t,r=e.pname,o=this._getAttachmentParameterFallback(r);return null!==o?o:this.gl.getFramebufferAttachmentParameter(i,n,r)}},{key:"getAttachmentParameters",value:function(){var e=(arguments.length>0&&void 0!==arguments[0]&&arguments[0],arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.constructor.ATTACHMENT_PARAMETERS||{}),a={};for(var i in e)a[i]=this.getParameter(i);return this}},{key:"bind",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=e.target,i=void 0===a?36160:a;return this.gl.bindFramebuffer(i,this.handle),this}},{key:"unbind",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=e.target,i=void 0===a?36160:a;return this.gl.bindFramebuffer(i,null),this}},{key:"_createDefaultAttachments",value:function(e){var a=e.color,i=e.depth,n=(e.stencil,e.width),r=e.height,o=null;if(a){var c;o=o||{},o[A]=new d.a(this.gl,{data:null,format:s.e.RGBA,type:s.e.UNSIGNED_BYTE,width:n,height:r,mipmaps:!1,parameters:(c={},t(c,s.e.TEXTURE_MIN_FILTER,s.e.NEAREST),t(c,s.e.TEXTURE_MAG_FILTER,s.e.NEAREST),t(c,s.e.TEXTURE_WRAP_S,s.e.CLAMP_TO_EDGE),t(c,s.e.TEXTURE_WRAP_T,s.e.CLAMP_TO_EDGE),c)})}return i&&(o=o||{},o[36096]=new v.a(this.gl,{format:s.e.DEPTH_COMPONENT16,width:n,height:r})),o}},{key:"_unattach",value:function(e){var a=e.attachment;this.gl.bindRenderbuffer(36161,this.handle),this.gl.framebufferRenderbuffer(36160,a,36161,null),delete this.attachments[a]}},{key:"_attachRenderbuffer",value:function(e){var a=e.attachment,i=void 0===a?A:a,t=e.renderbuffer;this.gl.framebufferRenderbuffer(36160,i,36161,t.handle),this.attachments[i]=t}},{key:"_attachTexture",value:function(e){var a=e.attachment,i=void 0===a?A:a,t=e.texture,n=e.layer,r=e.level,o=this.gl;switch(o.bindTexture(t.target,t.handle),t.target){case 35866:case 32879:o.framebufferTextureLayer(36160,i,t.target,r,n);break;case 34067:var l=c(n);o.framebufferTexture2D(36160,i,l,t.handle,r);break;case 3553:o.framebufferTexture2D(36160,i,3553,t.handle,r);break;default:b()(!1,"Illegal texture type")}o.bindTexture(t.target,null),this.attachments[i]=t}},{key:"_setReadBuffer",value:function(e,a){Object(p.h)(e)?e.readBuffer(a):b()(a===A||a===s.e.BACK,"Multiple render targets not supported"),this.readBuffer=a}},{key:"_setDrawBuffers",value:function(e,a){if(Object(p.h)(e))e.drawBuffers(a);else{var i=e.getExtension("WEBGL_draw_buffers");i?i.drawBuffersWEBGL(a):b()(1===a.length&&(a[0]===A||a[0]===s.e.BACK),"Multiple render targets not supported")}this.drawBuffers=a}},{key:"_getAttachmentParameterFallback",value:function(e){var a=Object(_.b)(this.gl);switch(e){case s.e.FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER:return a.webgl2?null:0;case s.e.FRAMEBUFFER_ATTACHMENT_RED_SIZE:case s.e.FRAMEBUFFER_ATTACHMENT_GREEN_SIZE:case s.e.FRAMEBUFFER_ATTACHMENT_BLUE_SIZE:case s.e.FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE:case s.e.FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE:case s.e.FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE:return a.webgl2?null:8;case s.e.FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE:return a.webgl2?null:s.e.UNSIGNED_INT;case s.e.FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING:return a.webgl2||a.EXT_sRGB?null:s.e.LINEAR;default:return null}}},{key:"_createHandle",value:function(){return this.gl.createFramebuffer()}},{key:"_deleteHandle",value:function(){this.gl.deleteFramebuffer(this.handle)}},{key:"color",get:function(){return this.attachments[A]||null}},{key:"texture",get:function(){return this.attachments[A]||null}},{key:"depth",get:function(){return this.attachments[36096]||null}},{key:"stencil",get:function(){return this.attachments[36128]||null}}]),a}(g.a);a.a=S},function(e,a,i){"use strict";function t(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=a.framebuffer,t=void 0===i?null:i,n=a.color,r=void 0===n?null:n,c=a.depth,u=void 0===c?null:c,_=a.stencil,g=void 0===_?null:_,d={nocatch:!1,framebuffer:t},v=0;r&&(v|=m,!0!==r&&(d.clearColor=r)),u&&(v|=s,!0!==u&&(d.clearDepth=u)),g&&(v|=p,!0!==u&&(d.clearStencil=u)),l()(0!==v,y),Object(o.c)(e,d,function(){e.clear(v)})}function n(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=a.framebuffer,t=void 0===i?null:i,n=a.buffer,c=void 0===n?_:n,s=a.drawBuffer,p=void 0===s?0:s,m=a.value,f=void 0===m?[0,0,0,0]:m;l()(Object(r.h)(e),r.b),Object(o.c)(e,{framebuffer:t},function(){switch(c){case _:switch(f.constructor){case Int32Array:e.clearBufferiv(c,p,f);break;case Uint32Array:e.clearBufferuiv(c,p,f);break;case Float32Array:default:e.clearBufferfv(c,p,f)}break;case g:e.clearBufferfv(g,0,[f]);break;case d:e.clearBufferiv(d,0,[f]);break;case v:var a=u(f,2),i=a[0],t=a[1];e.clearBufferfi(v,0,i,t);break;default:l()(!1,y)}})}a.a=t,a.b=n;var r=i(16),o=i(131),c=i(3),l=i.n(c),u=function(){function e(e,a){var i=[],t=!0,n=!1,r=void 0;try{for(var o,c=e[Symbol.iterator]();!(t=(o=c.next()).done)&&(i.push(o.value),!a||i.length!==a);t=!0);}catch(e){n=!0,r=e}finally{try{!t&&c.return&&c.return()}finally{if(n)throw r}}return i}return function(a,i){if(Array.isArray(a))return a;if(Symbol.iterator in Object(a))return e(a,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=256,p=1024,m=16384,_=6144,g=6145,d=6146,v=34041,y="clear: bad arguments"},function(e,a,i){"use strict";function t(e,a){if(!(e instanceof a))throw new TypeError("Cannot call a class as a function")}function n(e,a){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!a||"object"!=typeof a&&"function"!=typeof a?e:a}function r(e,a){if("function"!=typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function, not "+typeof a);e.prototype=Object.create(a&&a.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(e,a):e.__proto__=a)}function o(e,a,i){return a in e?Object.defineProperty(e,a,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[a]=i,e}function c(e,a,i){var t=i[a];if(!t)return!1;var n=Object(s.h)(e)?t.gl2||t.gl1:t.gl1;return"string"==typeof n?e.getExtension(n):n}var l,u=i(49),s=i(16),p=i(55),m=i(3),_=i.n(m),g=function(){function e(e,a){for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:{};t(this,a);var r=n(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,e,i));return r.initialize(i),Object.seal(r),r}return r(a,e),g(a,null,[{key:"isSupported",value:function(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=a.format;return!i||c(e,i,v)}},{key:"getSamplesForFormat",value:function(e,a){var i=a.format;return e.getInternalformatParameter(36161,i,32937)}}]),g(a,[{key:"initialize",value:function(e){var a=e.format,i=e.width,t=void 0===i?1:i,n=e.height,r=void 0===n?1:n,o=e.samples,c=void 0===o?0:o;return _()(a,"Needs format"),this.gl.bindRenderbuffer(36161,this.handle),0!==c&&Object(s.h)(this.gl)?this.gl.renderbufferStorageMultisample(36161,c,a,t,r):this.gl.renderbufferStorage(36161,a,t,r),this.format=a,this.width=t,this.height=r,this.samples=c,this}},{key:"resize",value:function(e){var a=e.width,i=e.height;return a!==this.width||i!==this.height?this.initialize({width:a,height:i,format:this.format,samples:this.samples}):this}},{key:"_createHandle",value:function(){return this.gl.createRenderbuffer()}},{key:"_deleteHandle",value:function(){this.gl.deleteRenderbuffer(this.handle)}},{key:"_syncHandle",value:function(e){this.format=this.getParameter(36164),this.width=this.getParameter(36162),this.height=this.getParameter(36163),this.samples=this.getParameter(36011)}},{key:"_getParameter",value:function(e){return this.gl.bindRenderbuffer(36161,this.handle),this.gl.getRenderbufferParameter(36161,e)}}]),a}(p.a);a.a=y},function(e,a,i){"use strict";function t(e,a){if(!(e instanceof a))throw new TypeError("Cannot call a class as a function")}function n(e,a){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!a||"object"!=typeof a&&"function"!=typeof a?e:a}function r(e,a){if("function"!=typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function, not "+typeof a);e.prototype=Object.create(a&&a.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(e,a):e.__proto__=a)}i.d(a,"b",function(){return y}),i.d(a,"a",function(){return f});var o=i(106),c=i(16),l=i(55),u=i(19),s=i(3),p=i.n(s),m=function(){function e(e,a){for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:{};n(this,a);var t=r(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,i));return Object(c.isWebGL)(e)?t.gl=e:(p.log.deprecated("Model({gl, ...opts})","Model(gl, {...opts}"),i=Object.assign(e,i),t.gl=i.gl||i.program&&i.program.gl,y()(Object(c.isWebGL)(t.gl),"Not a WebGL context")),t.init(i),t}return o(a,e),f(a,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=e.vs,i=void 0===a?null:a,t=e.fs,n=void 0===t?null:t,r=e.modules,o=void 0===r?null:r,c=e.defines,l=void 0===c?{}:c,s=e.moduleSettings,p=void 0===s?{}:s,m=e.defaultUniforms,_=e.program,g=e.isInstanced,v=void 0!==g&&g,f=e.instanced,h=e.vertexCount,b=void 0===h?void 0:h,N=e.instanceCount,E=void 0===N?0:N,A=e.drawMode,O=e.uniforms,S=void 0===O?{}:O,T=e.attributes,I=void 0===T?{}:T,x=e.geometry,L=void 0===x?null:x,R=e.pickable,w=void 0===R||R,D=e.pick,C=void 0===D?null:D,M=(e.render,e.onBeforeRender),P=void 0===M?function(){}:M,F=e.onAfterRender,B=void 0===F?function(){}:F,G=e.timerQueryEnabled,H=void 0!==G&&G;this._initializeProgram({vs:i,fs:n,modules:o,defines:l,moduleSettings:p,defaultUniforms:m,program:_}),this.uniforms={},S=Object.assign({},this.program.defaultUniforms,S),this.setUniforms(S),this.setUniforms(this.getModuleUniforms()),this.setUniforms(this.getModuleUniforms(p)),f&&(console.warn('Warning: Model constructor: parameter "instanced" renamed to "isInstanced".\nThis will become a hard error in a future version of luma.gl.'),v=v||f),this.buffers={},this.userData={},this.drawParams={},this.dynamic=!1,this.needsRedraw=!0,this.setGeometry(L),this.attributes={},this.setAttributes(I),void 0!==A&&(this.drawMode=Object(u.b)(A)),void 0!==b&&(this.vertexCount=b),this.isInstanced=v,this.instanceCount=E,this.pickable=Boolean(w),this.pick=C||function(){return!1},this.onBeforeRender=P,this.onAfterRender=B,y()(void 0!==this.drawMode&&Number.isFinite(this.vertexCount),"Model needs drawMode and vertexCount"),this.timerQueryEnabled=H&&d.a.isSupported(this.gl,{timer:!0}),this.timeElapsedQuery=void 0,this.lastQueryReturned=!0,this.stats={accumulatedFrameTime:0,averageFrameTime:0,profileFrameCount:0}}},{key:"_initializeProgram",value:function(e){var a=e.vs,i=e.fs,t=e.modules,n=e.defines,r=(e.moduleSettings,e.defaultUniforms),o=e.program;a||(a=m.a.vs),i||(i=m.a.fs),a!==m.b.vs&&i!==m.b.fs||(r=r||m.b.defaultUniforms);var l=Object(_.a)(this.gl,{vs:a,fs:i,modules:t,defines:n});a=l.vs,i=l.fs;var u=l.getUniforms;this.getModuleUniforms=u||function(e){},this.program=o||new c.Program(this.gl,{vs:a,fs:i}),y()(this.program instanceof c.Program,"Model needs a program")}},{key:"destroy",value:function(){this.delete()}},{key:"delete",value:function(){this.program.delete(),Object(g.d)(this.id)}},{key:"setNeedsRedraw",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.needsRedraw=e,this}},{key:"getNeedsRedraw",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=e.clearRedrawFlags,i=void 0!==a&&a,t=!1;return t=t||this.needsRedraw,this.needsRedraw=this.needsRedraw&&!i,t=t||this.geometry.getNeedsRedraw({clearRedrawFlags:i})}},{key:"setDrawMode",value:function(e){return this.drawMode=Object(u.b)(e),this}},{key:"getDrawMode",value:function(){return this.drawMode}},{key:"setVertexCount",value:function(e){return y()(Number.isFinite(e)),this.vertexCount=e,this}},{key:"getVertexCount",value:function(){return this.vertexCount}},{key:"setInstanceCount",value:function(e){return y()(Number.isFinite(e)),this.instanceCount=e,this}},{key:"getInstanceCount",value:function(){return this.instanceCount}},{key:"getProgram",value:function(){return this.program}},{key:"setGeometry",value:function(e){return this.geometry=e,this.vertexCount=e.getVertexCount(),this.drawMode=e.drawMode,this._createBuffersFromAttributeDescriptors(this.geometry.getAttributes()),this.setNeedsRedraw(),this}},{key:"getAttributes",value:function(){return this.attributes}},{key:"setAttributes",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign(this.attributes,e),this._createBuffersFromAttributeDescriptors(e),this.setNeedsRedraw(),this}},{key:"getUniforms",value:function(){return this.uniforms}},{key:"setUniforms",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(c.checkUniformValues)(e,this.id),Object.assign(this.uniforms,e),this.setNeedsRedraw(),this}},{key:"updateModuleSettings",value:function(e){var a=this.getModuleUniforms(e);return this.setUniforms(a)}},{key:"addViewUniforms",value:function(e){var a=e.camera,i=e.viewMatrix,t=e.modelMatrix,n=a?a.getUniforms():{},r=i?this.getCoordinateUniforms(i,t):{};return Object.assign({},e,n,r)}},{key:"draw",value:function(){var e=this,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=a.uniforms,t=void 0===i?{}:i,n=a.attributes,r=void 0===n?{}:n,o=a.samplers,l=void 0===o?{}:o,u=a.parameters,s=void 0===u?{}:u,m=a.settings,_=a.framebuffer,g=void 0===_?null:_;m&&(p.log.deprecated("settings","parameters"),s=m);var d=this.program.gl;return g&&(s=Object.assign(s,{framebuffer:g})),Object(c.withParameters)(d,s,function(){return e.render(t,r,l)})}},{key:"render",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};arguments.length>1&&void 0!==arguments[1]&&arguments[1],arguments.length>2&&void 0!==arguments[2]&&arguments[2],arguments.length>3&&void 0!==arguments[3]&&arguments[3];Object(g.a)(this);var a=this.addViewUniforms(e);Object(g.b)(this.id,a),this.setUniforms(a),p.log.log(2,">>> RENDERING MODEL "+this.id,this),this.setProgramState(),this._logAttributesAndUniforms(3,a),this.onBeforeRender();var i=this.drawParams;i.isInstanced&&!this.isInstanced&&p.log.warn(0,"Found instanced attributes on non-instanced model");var t=i.isIndexed,n=i.indexType,r=this.isInstanced,o=this.instanceCount;return this._timerQueryStart(),this.program.draw({drawMode:this.getDrawMode(),vertexCount:this.getVertexCount(),isIndexed:t,indexType:n,isInstanced:r,instanceCount:o}),this._timerQueryEnd(),this.onAfterRender(),this.unsetProgramState(),this.setNeedsRedraw(!1),p.log.log(2,"<<< RENDERING MODEL "+this.id+" - complete"),this}},{key:"setProgramState",value:function(){var e=this.program;return e.use(),this.drawParams={},e.setBuffers(this.buffers,{drawParams:this.drawParams}),e.setUniforms(this.uniforms,this.samplers),this}},{key:"unsetProgramState",value:function(){return this.program.unsetBuffers(),this}},{key:"_timerQueryStart",value:function(){!0===this.timerQueryEnabled&&(this.timeElapsedQuery||(this.timeElapsedQuery=new d.a(this.gl)),this.lastQueryReturned&&(this.lastQueryReturned=!1,this.timeElapsedQuery.beginTimeElapsedQuery()))}},{key:"_timerQueryEnd",value:function(){if(!0===this.timerQueryEnabled&&(this.timeElapsedQuery.end(),this.timeElapsedQuery.isResultAvailable())){this.lastQueryReturned=!0;var e=this.timeElapsedQuery.getResult();this.stats.lastFrameTime=e,this.stats.accumulatedFrameTime+=e,this.stats.profileFrameCount++,this.stats.averageFrameTime=this.stats.accumulatedFrameTime/this.stats.profileFrameCount,p.log.log(2,"program.id: ",this.program.id),p.log.log(2,"last frame time: "+this.stats.lastFrameTime+"ms"),p.log.log(2,"average frame time "+this.stats.averageFrameTime+"ms"),p.log.log(2,"accumulated frame time: "+this.stats.accumulatedFrameTime+"ms"),p.log.log(2,"profile frame count: "+this.stats.profileFrameCount)}}},{key:"_createBuffersFromAttributeDescriptors",value:function(e){var a=this.program.gl;for(var i in e){var t=e[i];if(t instanceof c.Buffer)this.buffers[i]=t;else{this.buffers[i]=this.buffers[i]||new c.Buffer(a,{target:t.isIndexed?c.GL.ELEMENT_ARRAY_BUFFER:c.GL.ARRAY_BUFFER});this.buffers[i].setData({data:t.value}).setDataLayout(t)}}return this}},{key:"_logAttributesAndUniforms",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(p.log.priority>=e){var i=this._getAttributesTable({header:"Attributes "+this.id,program:this.program,attributes:Object.assign({},this.geometry.attributes,this.attributes)});p.log.table(e,i);var t=Object(l.c)({header:"Uniforms "+this.id,program:this.program,uniforms:Object.assign({},this.uniforms,a)}),n=t.table,r=t.unusedTable,o=t.unusedCount;p.log.table(e,n),p.log.log(e,(o||"No")+" unused uniforms ",r)}Object(g.c)(this,a)}},{key:"_getAttributesTable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=e.attributes,i=e.header,n=void 0===i?"Attributes":i,r=(e.instanced,e.program);y()(r);var o=r._attributeLocations,c=t({},n,{});for(var l in o){var u=a[l],s=o[l];c[l]=this._getAttributeEntry(u,s)}for(var p in a){var m=a[p];c[p]||(c[p]=this._getAttributeEntry(m,null))}return c}},{key:"_getAttributeEntry",value:function(e,a){var i=function(e){return Math.round(10*e)/10},t="NOT PROVIDED",n=0,r="N/A",o="N/A",l="N/A",u="N/A";if(e&&null===a&&(a=e.isIndexed?"ELEMENT_ARRAY_BUFFER":"NOT USED"),e instanceof c.Buffer){var s=e;t=s.layout.type,n=s.layout.instanced,r=s.layout.size,o=i(s.data.length/s.layout.size),l=s.data.length*s.data.BYTES_PER_ELEMENT}else e&&(t=e.value.constructor.name,n=e.instanced,r=e.size,o=i(e.value.length/e.size),l=e.value.length*e.value.BYTES_PER_ELEMENT,u=e.value);t=String(t).replace("Array","");var m=-1!==t.indexOf("nt");return{Location:a+(n?" [instanced]":""),"Type Size x Verts = Bytes":t+" "+r+" x "+o+" = "+l,Value:Object(p.formatValue)(u,{size:r,isInteger:m})}}},{key:"isPickable",value:function(){return this.pickable}},{key:"setPickable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.pickable=Boolean(e),this}},{key:"getGeometry",value:function(){return this.geometry}}]),a}(s.a);a.a=h},function(e,a,i){"use strict";function t(e,a){if(!(e instanceof a))throw new TypeError("Cannot call a class as a function")}function n(e,a){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!a||"object"!=typeof a&&"function"!=typeof a?e:a}function r(e,a){if("function"!=typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function, not "+typeof a);e.prototype=Object.create(a&&a.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(e,a):e.__proto__=a)}var o=i(85),c=function(e){function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t(this,a);for(var i=e.bottomRadius,r=void 0===i?0:i,o=e.topRadius,c=void 0===o?0:o,l=e.height,u=void 0===l?1:l,s=e.nradial,p=void 0===s?10:s,m=e.nvertical,_=void 0===m?10:m,g=e.topCap,d=void 0!==g&&g,v=e.bottomCap,y=void 0!==v&&v,f=(d?2:0)+(y?2:0),h=(p+1)*(_+1+f),b=Math.atan2(r-c,u),N=Math.sin,E=Math.cos,A=Math.PI,O=E(b),S=N(b),T=d?-2:0,I=_+(y?2:0),x=p+1,L=new Float32Array(3*h),R=new Float32Array(3*h),w=new Float32Array(2*h),D=new Uint16Array(p*(_+f)*6),C=0,M=0,P=T;P<=I;P++){var F=P/_,B=u*F,G=void 0;P<0?(B=0,F=1,G=r):P>_?(B=u,F=1,G=c):G=r+P/_*(c-r),-2!==P&&P!==_+2||(G=0,F=0),B-=u/2;for(var H=0;H_?0:U*O,R[C+1]=P<0?-1:P>_?1:S,R[C+2]=P<0||P>_?0:k*O,w[M+0]=H/p,w[M+1]=F,M+=2,C+=3}}for(var j=0;j<_+f;j++)for(var W=0;W80*i){u=m=e[0],s=_=e[1];for(var y=i;ym&&(m=g),d>_&&(_=d);v=Math.max(m-u,_-s)}return o(c,l,i,u,s,v),l}function n(e,a,i,t,n){var r,o;if(n===w(e,a,i,t)>0)for(r=a;r=a;r-=t)o=x(r,e[r],e[r+1],o);return o&&E(o,o.next)&&(L(o),o=o.next),o}function r(e,a){if(!e)return e;a||(a=e);var i,t=e;do{if(i=!1,t.steiner||!E(t,t.next)&&0!==N(t.prev,t,t.next))t=t.next;else{if(L(t),(t=a=t.prev)===t.next)return null;i=!0}}while(i||t!==a);return a}function o(e,a,i,t,n,p,m){if(e){!m&&p&&d(e,t,n,p);for(var _,g,v=e;e.prev!==e.next;)if(_=e.prev,g=e.next,p?l(e,t,n,p):c(e))a.push(_.i/i),a.push(e.i/i),a.push(g.i/i),L(e),e=g.next,v=g.next;else if((e=g)===v){m?1===m?(e=u(e,a,i),o(e,a,i,t,n,p,2)):2===m&&s(e,a,i,t,n,p):o(r(e),a,i,t,n,p,1);break}}}function c(e){var a=e.prev,i=e,t=e.next;if(N(a,i,t)>=0)return!1;for(var n=e.next.next;n!==e.prev;){if(h(a.x,a.y,i.x,i.y,t.x,t.y,n.x,n.y)&&N(n.prev,n,n.next)>=0)return!1;n=n.next}return!0}function l(e,a,i,t){var n=e.prev,r=e,o=e.next;if(N(n,r,o)>=0)return!1;for(var c=n.xr.x?n.x>o.x?n.x:o.x:r.x>o.x?r.x:o.x,s=n.y>r.y?n.y>o.y?n.y:o.y:r.y>o.y?r.y:o.y,p=y(c,l,a,i,t),m=y(u,s,a,i,t),_=e.nextZ;_&&_.z<=m;){if(_!==e.prev&&_!==e.next&&h(n.x,n.y,r.x,r.y,o.x,o.y,_.x,_.y)&&N(_.prev,_,_.next)>=0)return!1;_=_.nextZ}for(_=e.prevZ;_&&_.z>=p;){if(_!==e.prev&&_!==e.next&&h(n.x,n.y,r.x,r.y,o.x,o.y,_.x,_.y)&&N(_.prev,_,_.next)>=0)return!1;_=_.prevZ}return!0}function u(e,a,i){var t=e;do{var n=t.prev,r=t.next.next;!E(n,r)&&A(n,t,t.next,r)&&S(n,r)&&S(r,n)&&(a.push(n.i/i),a.push(t.i/i),a.push(r.i/i),L(t),L(t.next),t=e=r),t=t.next}while(t!==e);return t}function s(e,a,i,t,n,c){var l=e;do{for(var u=l.next.next;u!==l.prev;){if(l.i!==u.i&&b(l,u)){var s=I(l,u);return l=r(l,l.next),s=r(s,s.next),o(l,a,i,t,n,c),void o(s,a,i,t,n,c)}u=u.next}l=l.next}while(l!==e)}function p(e,a,i,t){var o,c,l,u,s,p=[];for(o=0,c=a.length;o=t.next.y){var c=t.x+(r-t.y)*(t.next.x-t.x)/(t.next.y-t.y);if(c<=n&&c>o){if(o=c,c===n){if(r===t.y)return t;if(r===t.next.y)return t.next}i=t.x=t.x&&t.x>=s&&h(ri.x)&&S(t,e)&&(i=t,m=l),t=t.next;return i}function d(e,a,i,t){var n=e;do{null===n.z&&(n.z=y(n.x,n.y,a,i,t)),n.prevZ=n.prev,n.nextZ=n.next,n=n.next}while(n!==e);n.prevZ.nextZ=null,n.prevZ=null,v(n)}function v(e){var a,i,t,n,r,o,c,l,u=1;do{for(i=e,e=null,r=null,o=0;i;){for(o++,t=i,c=0,a=0;a0||l>0&&t;)0===c?(n=t,t=t.nextZ,l--):0!==l&&t?i.z<=t.z?(n=i,i=i.nextZ,c--):(n=t,t=t.nextZ,l--):(n=i,i=i.nextZ,c--),r?r.nextZ=n:e=n,n.prevZ=r,r=n;i=t}r.nextZ=null,u*=2}while(o>1);return e}function y(e,a,i,t,n){return e=32767*(e-i)/n,a=32767*(a-t)/n,e=16711935&(e|e<<8),e=252645135&(e|e<<4),e=858993459&(e|e<<2),e=1431655765&(e|e<<1),a=16711935&(a|a<<8),a=252645135&(a|a<<4),a=858993459&(a|a<<2),a=1431655765&(a|a<<1),e|a<<1}function f(e){var a=e,i=e;do{a.x=0&&(e-o)*(t-c)-(i-o)*(a-c)>=0&&(i-o)*(r-c)-(n-o)*(t-c)>=0}function b(e,a){return e.next.i!==a.i&&e.prev.i!==a.i&&!O(e,a)&&S(e,a)&&S(a,e)&&T(e,a)}function N(e,a,i){return(a.y-e.y)*(i.x-a.x)-(a.x-e.x)*(i.y-a.y)}function E(e,a){return e.x===a.x&&e.y===a.y}function A(e,a,i,t){return!!(E(e,a)&&E(i,t)||E(e,t)&&E(i,a))||N(e,a,i)>0!=N(e,a,t)>0&&N(i,t,e)>0!=N(i,t,a)>0}function O(e,a){var i=e;do{if(i.i!==e.i&&i.next.i!==e.i&&i.i!==a.i&&i.next.i!==a.i&&A(i,i.next,e,a))return!0;i=i.next}while(i!==e);return!1}function S(e,a){return N(e.prev,e,e.next)<0?N(e,a,e.next)>=0&&N(e,e.prev,a)>=0:N(e,a,e.prev)<0||N(e,e.next,a)<0}function T(e,a){var i=e,t=!1,n=(e.x+a.x)/2,r=(e.y+a.y)/2;do{i.y>r!=i.next.y>r&&n<(i.next.x-i.x)*(r-i.y)/(i.next.y-i.y)+i.x&&(t=!t),i=i.next}while(i!==e);return t}function I(e,a){var i=new R(e.i,e.x,e.y),t=new R(a.i,a.x,a.y),n=e.next,r=a.prev;return e.next=a,a.prev=e,i.next=n,n.prev=i,t.next=i,i.prev=t,r.next=t,t.prev=r,t}function x(e,a,i,t){var n=new R(e,a,i);return t?(n.next=t.next,n.prev=t,t.next.prev=n,t.next=n):(n.prev=n,n.next=n),n}function L(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function R(e,a,i){this.i=e,this.x=a,this.y=i,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function w(e,a,i,t){for(var n=0,r=a,o=i-t;r0&&(t+=e[n-1].length,i.holes.push(t))}return i}},function(e,a,i){"use strict";Object.defineProperty(a,"__esModule",{value:!0});a.tooltipStyle={position:"absolute",padding:"4px",background:"rgba(0, 0, 0, 0.8)",color:"#fff",maxWidth:"300px",fontSize:"10px",zIndex:9,pointerEvents:"none"},a.layerControl={borderRadius:3,boxShadow:"0 1px 2px rgba(0, 0, 0, 0.1)",fontFamily:'ff-clan-web-pro, "Helvetica Neue", Helvetica, sans-serif !important',fontSize:"12px",lineHeight:1.833,width:200,position:"absolute",top:"20px",right:"20px",padding:"20px",zIndex:100,background:"white"},a.charts={background:"white",border:"1px solid #C0C0C0",fontFamily:'ff-clan-web-pro, "Helvetica Neue", Helvetica, sans-serif !important',fontSize:"12px",lineHeight:1.833,height:210,padding:"10px",position:"absolute",left:20,top:20,width:500,zIndex:100},a.spinner={animation:"linear 2s infinite",background:"#1EACC7",borderRadius:"50%",height:10,width:10,opacity:.4,position:"absolute",top:70,left:60,transformOrigin:"20px 20px",zIndex:110}},function(e,a,i){"use strict";a.a=function(e,a){return e=+e,a-=e,function(i){return e+a*i}}},function(e,a,i){"use strict";function t(e){var a={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(a[i]="number"==typeof e[i]?e[i]:e[i].val);return a}a.__esModule=!0,a.default=t,e.exports=a.default},function(e,a,i){(function(a){(function(){var i,t,n;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:void 0!==a&&null!==a&&a.hrtime?(e.exports=function(){return(i()-n)/1e6},t=a.hrtime,i=function(){var e;return e=t(),1e9*e[0]+e[1]},n=i()):Date.now?(e.exports=function(){return Date.now()-n},n=Date.now()):(e.exports=function(){return(new Date).getTime()-n},n=(new Date).getTime())}).call(this)}).call(a,i(79))},function(e,a,i){"use strict";function t(e,a){return(a-=e=+e)?function(i){return(i-e)/a}:Object(_.a)(a)}function n(e){return function(a,i){var t=e(a=+a,i=+i);return function(e){return e<=a?0:e>=i?1:t(e)}}}function r(e){return function(a,i){var t=e(a=+a,i=+i);return function(e){return e<=0?a:e>=1?i:t(e)}}}function o(e,a,i,t){var n=e[0],r=e[1],o=a[0],c=a[1];return r2?c:o,s=_=null,l}function l(a){return(s||(s=u(v,y,h?n(e):e,f)))(+a)}var u,s,_,v=d,y=d,f=p.interpolate,h=!1;return l.invert=function(e){return(_||(_=u(y,v,t,h?r(a):a)))(+e)},l.domain=function(e){return arguments.length?(v=m.a.call(e,g.a),i()):v.slice()},l.range=function(e){return arguments.length?(y=m.b.call(e),i()):y.slice()},l.rangeRound=function(e){return y=m.b.call(e),f=p.interpolateRound,i()},l.clamp=function(e){return arguments.length?(h=!!e,i()):h},l.interpolate=function(e){return arguments.length?(f=e,i()):f},i()}a.c=t,a.a=l,a.b=u;var s=i(27),p=i(87),m=i(110),_=i(366),g=i(620),d=[0,1]},function(e,a,i){"use strict";var t=i(1420);i.d(a,"a",function(){return t.a}),i.d(a,"b",function(){return t.b});var n=(i(621),i(622));i.d(a,"c",function(){return n.a});var r=i(1426);i.d(a,"d",function(){return r.a});var o=i(1427);i.d(a,"e",function(){return o.a});var c=i(1428);i.d(a,"f",function(){return c.a})},function(e,a,i){"use strict";var t=i(367);a.a=function(e){return e=Object(t.a)(Math.abs(e)),e?e[1]:NaN}},function(e,a,i){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var t=i(1459);i.d(a,"arc",function(){return t.a});var n=i(632);i.d(a,"area",function(){return n.a});var r=i(370);i.d(a,"line",function(){return r.a});var o=i(1461);i.d(a,"pie",function(){return o.a});var c=i(1464);i.d(a,"areaRadial",function(){return c.a}),i.d(a,"radialArea",function(){return c.a});var l=i(634);i.d(a,"lineRadial",function(){return l.a}),i.d(a,"radialLine",function(){return l.a});var u=i(635);i.d(a,"pointRadial",function(){return u.a});var s=i(1465);i.d(a,"linkHorizontal",function(){return s.a}),i.d(a,"linkVertical",function(){return s.c}),i.d(a,"linkRadial",function(){return s.b});var p=i(1466);i.d(a,"symbol",function(){return p.a}),i.d(a,"symbols",function(){return p.b});var m=i(637);i.d(a,"symbolCircle",function(){return m.a});var _=i(638);i.d(a,"symbolCross",function(){return _.a});var g=i(639);i.d(a,"symbolDiamond",function(){return g.a});var d=i(641);i.d(a,"symbolSquare",function(){return d.a});var v=i(640);i.d(a,"symbolStar",function(){return v.a});var y=i(642);i.d(a,"symbolTriangle",function(){return y.a});var f=i(643);i.d(a,"symbolWye",function(){return f.a});var h=i(1467);i.d(a,"curveBasisClosed",function(){return h.a});var b=i(1468);i.d(a,"curveBasisOpen",function(){return b.a});var N=i(235);i.d(a,"curveBasis",function(){return N.b});var E=i(1469);i.d(a,"curveBundle",function(){return E.a});var A=i(644);i.d(a,"curveCardinalClosed",function(){return A.b});var O=i(645);i.d(a,"curveCardinalOpen",function(){return O.b});var S=i(236);i.d(a,"curveCardinal",function(){return S.b});var T=i(1470);i.d(a,"curveCatmullRomClosed",function(){return T.a});var I=i(1471);i.d(a,"curveCatmullRomOpen",function(){return I.a});var x=i(372);i.d(a,"curveCatmullRom",function(){return x.a});var L=i(1472);i.d(a,"curveLinearClosed",function(){return L.a});var R=i(233);i.d(a,"curveLinear",function(){return R.a});var w=i(1473);i.d(a,"curveMonotoneX",function(){return w.a}),i.d(a,"curveMonotoneY",function(){return w.b});var D=i(1474);i.d(a,"curveNatural",function(){return D.a});var C=i(1475);i.d(a,"curveStep",function(){return C.a}),i.d(a,"curveStepAfter",function(){return C.b}),i.d(a,"curveStepBefore",function(){return C.c});var M=i(1476);i.d(a,"stack",function(){return M.a});var P=i(1477);i.d(a,"stackOffsetExpand",function(){return P.a});var F=i(1478);i.d(a,"stackOffsetDiverging",function(){return F.a});var B=i(172);i.d(a,"stackOffsetNone",function(){return B.a});var G=i(1479);i.d(a,"stackOffsetSilhouette",function(){return G.a});var H=i(1480);i.d(a,"stackOffsetWiggle",function(){return H.a});var U=i(373);i.d(a,"stackOrderAscending",function(){return U.a});var k=i(1481);i.d(a,"stackOrderDescending",function(){return k.a});var j=i(1482);i.d(a,"stackOrderInsideOut",function(){return j.a});var W=i(173);i.d(a,"stackOrderNone",function(){return W.a});var Y=i(1483);i.d(a,"stackOrderReverse",function(){return Y.a})},function(e,a,i){"use strict";function t(e){this._context=e}t.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,a){switch(e=+e,a=+a,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,a):this._context.moveTo(e,a);break;case 1:this._point=2;default:this._context.lineTo(e,a)}}},a.a=function(e){return new t(e)}},function(e,a,i){"use strict";a.a=function(){}},function(e,a,i){"use strict";function t(e,a,i){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+a)/6,(e._y0+4*e._y1+i)/6)}function n(e){this._context=e}a.c=t,a.a=n,n.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:t(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,a){switch(e=+e,a=+a,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,a):this._context.moveTo(e,a);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:t(this,e,a)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=a}},a.b=function(e){return new n(e)}},function(e,a,i){"use strict";function t(e,a,i){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-a),e._y2+e._k*(e._y1-i),e._x2,e._y2)}function n(e,a){this._context=e,this._k=(1-a)/6}a.c=t,a.a=n,n.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:t(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,a){switch(e=+e,a=+a,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,a):this._context.moveTo(e,a);break;case 1:this._point=2,this._x1=e,this._y1=a;break;case 2:this._point=3;default:t(this,e,a)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=a}},a.b=function e(a){function i(e){return new n(e,a)}return i.tension=function(a){return e(+a)},i}(0)},function(e,a,i){"use strict";function t(e,a){return[e>u.o?e-u.w:e<-u.o?e+u.w:e,a]}function n(e,a,i){return(e%=u.w)?a||i?Object(l.a)(o(e),c(a,i)):o(e):a||i?c(a,i):t}function r(e){return function(a,i){return a+=e,[a>u.o?a-u.w:a<-u.o?a+u.w:a,i]}}function o(e){var a=r(e);return a.invert=r(-e),a}function c(e,a){function i(e,a){var i=Object(u.g)(a),c=Object(u.g)(e)*i,l=Object(u.t)(e)*i,s=Object(u.t)(a),p=s*t+c*n;return[Object(u.e)(l*r-p*o,c*t-s*n),Object(u.c)(p*r+l*o)]}var t=Object(u.g)(e),n=Object(u.t)(e),r=Object(u.g)(a),o=Object(u.t)(a);return i.invert=function(e,a){var i=Object(u.g)(a),c=Object(u.g)(e)*i,l=Object(u.t)(e)*i,s=Object(u.t)(a),p=s*r-l*o;return[Object(u.e)(l*r+s*o,c*t+p*n),Object(u.c)(p*t-c*n)]},i}a.b=n;var l=i(655),u=i(6);t.invert=t,a.a=function(e){function a(a){return a=e(a[0]*u.r,a[1]*u.r),a[0]*=u.h,a[1]*=u.h,a}return e=n(e[0]*u.r,e[1]*u.r,e.length>2?e[2]*u.r:0),a.invert=function(a){return a=e.invert(a[0]*u.r,a[1]*u.r),a[0]*=u.h,a[1]*=u.h,a},a}},function(e,a,i){"use strict";function t(e){return function(a){var i=new n;for(var t in e)i[t]=e[t];return i.stream=a,i}}function n(){}a.a=t;n.prototype={constructor:n,point:function(e,a){this.stream.point(e,a)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}}},function(e,a,i){"use strict";a.a=function(e,a,i,t,n){for(var r,o=e.children,c=-1,l=o.length,u=e.value&&(n-i)/e.value;++c0;(r>>>=1)&&(a+=a))1&r&&(i+=a);return i}},function(e,a){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},function(e,a){var i=Math.expm1;e.exports=!i||i(10)>22025.465794806718||i(10)<22025.465794806718||-2e-17!=i(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:Math.exp(e)-1}:i},function(e,a,i){var t=i(59),n=i(58);e.exports=function(e){return function(a,i){var r,o,c=String(n(a)),l=t(i),u=c.length;return l<0||l>=u?e?"":void 0:(r=c.charCodeAt(l),r<55296||r>56319||l+1===u||(o=c.charCodeAt(l+1))<56320||o>57343?e?c.charAt(l):r:e?c.slice(l,l+2):o-56320+(r-55296<<10)+65536)}}},function(e,a,i){"use strict";var t=i(91),n=i(0),r=i(40),o=i(39),c=i(38),l=i(115),u=i(255),s=i(113),p=i(47),m=i(14)("iterator"),_=!([].keys&&"next"in[].keys()),g=function(){return this};e.exports=function(e,a,i,d,v,y,f){u(i,a,d);var h,b,N,E=function(e){if(!_&&e in T)return T[e];switch(e){case"keys":case"values":return function(){return new i(this,e)}}return function(){return new i(this,e)}},A=a+" Iterator",O="values"==v,S=!1,T=e.prototype,I=T[m]||T["@@iterator"]||v&&T[v],x=I||E(v),L=v?O?E("entries"):x:void 0,R="Array"==a?T.entries||I:I;if(R&&(N=p(R.call(new e)))!==Object.prototype&&N.next&&(s(N,A,!0),t||c(N,m)||o(N,m,g)),O&&I&&"values"!==I.name&&(S=!0,x=function(){return I.call(this)}),t&&!f||!_&&!S&&T[m]||o(T,m,x),l[a]=x,l[A]=g,v)if(h={values:O?x:E("values"),keys:y?x:E("keys"),entries:L},f)for(b in h)b in T||r(T,b,h[b]);else n(n.P+n.F*(_||S),a,h);return h}},function(e,a,i){"use strict";var t=i(94),n=i(89),r=i(113),o={};i(39)(o,i(14)("iterator"),function(){return this}),e.exports=function(e,a,i){e.prototype=t(o,{next:n(1,i)}),r(e,a+" Iterator")}},function(e,a,i){var t=i(184),n=i(58);e.exports=function(e,a,i){if(t(a))throw TypeError("String#"+i+" doesn't accept regex!");return String(n(e))}},function(e,a,i){var t=i(14)("match");e.exports=function(e){var a=/./;try{"/./"[e](a)}catch(i){try{return a[t]=!1,!"/./"[e](a)}catch(e){}}return!0}},function(e,a,i){var t=i(115),n=i(14)("iterator"),r=Array.prototype;e.exports=function(e){return void 0!==e&&(t.Array===e||r[n]===e)}},function(e,a,i){"use strict";var t=i(21),n=i(89);e.exports=function(e,a,i){a in e?t.f(e,a,n(0,i)):e[a]=i}},function(e,a,i){var t=i(139),n=i(14)("iterator"),r=i(115);e.exports=i(56).getIteratorMethod=function(e){if(void 0!=e)return e[n]||e["@@iterator"]||r[t(e)]}},function(e,a,i){var t=i(774);e.exports=function(e,a){return new(t(e))(a)}},function(e,a,i){"use strict";var t=i(24),n=i(93),r=i(22);e.exports=function(e){for(var a=t(this),i=r(a.length),o=arguments.length,c=n(o>1?arguments[1]:void 0,i),l=o>2?arguments[2]:void 0,u=void 0===l?i:n(l,i);u>c;)a[c++]=e;return a}},function(e,a,i){"use strict";var t=i(78),n=i(412),r=i(115),o=i(45);e.exports=i(254)(Array,"Array",function(e,a){this._t=o(e),this._i=0,this._k=a},function(){var e=this._t,a=this._k,i=this._i++;return!e||i>=e.length?(this._t=void 0,n(1)):"keys"==a?n(0,i):"values"==a?n(0,e[i]):n(0,[i,e[i]])},"values"),r.Arguments=r.Array,t("keys"),t("values"),t("entries")},function(e,a,i){var t,n,r,o=i(51),c=i(402),l=i(246),u=i(242),s=i(7),p=s.process,m=s.setImmediate,_=s.clearImmediate,g=s.MessageChannel,d=s.Dispatch,v=0,y={},f=function(){var e=+this;if(y.hasOwnProperty(e)){var a=y[e];delete y[e],a()}},h=function(e){f.call(e.data)};m&&_||(m=function(e){for(var a=[],i=1;arguments.length>i;)a.push(arguments[i++]);return y[++v]=function(){c("function"==typeof e?e:Function(e),a)},t(v),v},_=function(e){delete y[e]},"process"==i(52)(p)?t=function(e){p.nextTick(o(f,e,1))}:d&&d.now?t=function(e){d.now(o(f,e,1))}:g?(n=new g,r=n.port2,n.port1.onmessage=h,t=o(r.postMessage,r,1)):s.addEventListener&&"function"==typeof postMessage&&!s.importScripts?(t=function(e){s.postMessage(e+"","*")},s.addEventListener("message",h,!1)):t="onreadystatechange"in u("script")?function(e){l.appendChild(u("script")).onreadystatechange=function(){l.removeChild(this),f.call(e)}}:function(e){setTimeout(o(f,e,1),0)}),e.exports={set:m,clear:_}},function(e,a,i){var t=i(7),n=i(264).set,r=t.MutationObserver||t.WebKitMutationObserver,o=t.process,c=t.Promise,l="process"==i(52)(o);e.exports=function(){var e,a,i,u=function(){var t,n;for(l&&(t=o.domain)&&t.exit();e;){n=e.fn,e=e.next;try{n()}catch(t){throw e?i():a=void 0,t}}a=void 0,t&&t.enter()};if(l)i=function(){o.nextTick(u)};else if(r){var s=!0,p=document.createTextNode("");new r(u).observe(p,{characterData:!0}),i=function(){p.data=s=!s}}else if(c&&c.resolve){var m=c.resolve();i=function(){m.then(u)}}else i=function(){n.call(t,u)};return function(t){var n={fn:t,next:void 0};a&&(a.next=n),e||(e=n,i()),a=n}}},function(e,a,i){"use strict";function t(e){var a,i;this.promise=new e(function(e,t){if(void 0!==a||void 0!==i)throw TypeError("Bad Promise constructor");a=e,i=t}),this.resolve=n(a),this.reject=n(i)}var n=i(33);e.exports.f=function(e){return new t(e)}},function(e,a,i){"use strict";function t(e,a,i){var t,n,r,o=Array(i),c=8*i-a-1,l=(1<>1,s=23===a?G(2,-24)-G(2,-77):0,p=0,m=e<0||0===e&&1/e<0?1:0;for(e=B(e),e!=e||e===P?(n=e!=e?1:0,t=l):(t=H(U(e)/k),e*(r=G(2,-t))<1&&(t--,r*=2),e+=t+u>=1?s/r:s*G(2,1-u),e*r>=2&&(t++,r/=2),t+u>=l?(n=0,t=l):t+u>=1?(n=(e*r-1)*G(2,a),t+=u):(n=e*G(2,u-1)*G(2,a),t=0));a>=8;o[p++]=255&n,n/=256,a-=8);for(t=t<0;o[p++]=255&t,t/=256,c-=8);return o[--p]|=128*m,o}function n(e,a,i){var t,n=8*i-a-1,r=(1<>1,c=n-7,l=i-1,u=e[l--],s=127&u;for(u>>=7;c>0;s=256*s+e[l],l--,c-=8);for(t=s&(1<<-c)-1,s>>=-c,c+=a;c>0;t=256*t+e[l],l--,c-=8);if(0===s)s=1-o;else{if(s===r)return t?NaN:u?-P:P;t+=G(2,a),s-=o}return(u?-1:1)*t*G(2,s-a)}function r(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]}function o(e){return[255&e]}function c(e){return[255&e,e>>8&255]}function l(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function u(e){return t(e,52,8)}function s(e){return t(e,23,4)}function p(e,a,i){T(e[L],a,{get:function(){return this[i]}})}function m(e,a,i,t){var n=+i,r=O(n);if(r+a>e[W])throw M(R);var o=e[j]._b,c=r+e[Y],l=o.slice(c,c+a);return t?l:l.reverse()}function _(e,a,i,t,n,r){var o=+i,c=O(o);if(c+a>e[W])throw M(R);for(var l=e[j]._b,u=c+e[Y],s=t(+n),p=0;pX;)(V=K[X++])in w||f(w,V,F[V]);v||(z.constructor=w)}var Z=new D(new w(2)),q=D[L].setInt8;Z.setInt8(0,2147483648),Z.setInt8(1,2147483649),!Z.getInt8(0)&&Z.getInt8(1)||h(D[L],{setInt8:function(e,a){q.call(this,e,a<<24>>24)},setUint8:function(e,a){q.call(this,e,a<<24>>24)}},!0)}else w=function(e){N(this,w,"ArrayBuffer");var a=O(e);this._b=I.call(Array(a),0),this[W]=a},D=function(e,a,i){N(this,D,"DataView"),N(e,w,"DataView");var t=e[W],n=E(a);if(n<0||n>t)throw M("Wrong offset!");if(i=void 0===i?t-n:A(i),n+i>t)throw M("Wrong length!");this[j]=e,this[Y]=n,this[W]=i},d&&(p(w,"byteLength","_l"),p(D,"buffer","_b"),p(D,"byteLength","_l"),p(D,"byteOffset","_o")),h(D[L],{getInt8:function(e){return m(this,1,e)[0]<<24>>24},getUint8:function(e){return m(this,1,e)[0]},getInt16:function(e){var a=m(this,2,e,arguments[1]);return(a[1]<<8|a[0])<<16>>16},getUint16:function(e){var a=m(this,2,e,arguments[1]);return a[1]<<8|a[0]},getInt32:function(e){return r(m(this,4,e,arguments[1]))},getUint32:function(e){return r(m(this,4,e,arguments[1]))>>>0},getFloat32:function(e){return n(m(this,4,e,arguments[1]),23,4)},getFloat64:function(e){return n(m(this,8,e,arguments[1]),52,8)},setInt8:function(e,a){_(this,1,e,o,a)},setUint8:function(e,a){_(this,1,e,o,a)},setInt16:function(e,a){_(this,2,e,c,a,arguments[2])},setUint16:function(e,a){_(this,2,e,c,a,arguments[2])},setInt32:function(e,a){_(this,4,e,l,a,arguments[2])},setUint32:function(e,a){_(this,4,e,l,a,arguments[2])},setFloat32:function(e,a){_(this,4,e,s,a,arguments[2])},setFloat64:function(e,a){_(this,8,e,u,a,arguments[2])}});x(w,"ArrayBuffer"),x(D,"DataView"),f(D[L],y.VIEW,!0),a.ArrayBuffer=w,a.DataView=D},function(e,a,i){"use strict";function t(){if(c)for(var e in l){var a=l[e],i=c.indexOf(e);if(i>-1||o("96",e),!u.plugins[i]){a.extractEvents||o("97",e),u.plugins[i]=a;var t=a.eventTypes;for(var r in t)n(t[r],a,r)||o("98",r,e)}}}function n(e,a,i){u.eventNameDispatchConfigs.hasOwnProperty(i)&&o("99",i),u.eventNameDispatchConfigs[i]=e;var t=e.phasedRegistrationNames;if(t){for(var n in t)if(t.hasOwnProperty(n)){var c=t[n];r(c,a,i)}return!0}return!!e.registrationName&&(r(e.registrationName,a,i),!0)}function r(e,a,i){u.registrationNameModules[e]&&o("100",e),u.registrationNameModules[e]=a,u.registrationNameDependencies[e]=a.eventTypes[i].dependencies}var o=i(11),c=(i(4),null),l={},u={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:null,injectEventPluginOrder:function(e){c&&o("101"),c=Array.prototype.slice.call(e),t()},injectEventPluginsByName:function(e){var a=!1;for(var i in e)if(e.hasOwnProperty(i)){var n=e[i];l.hasOwnProperty(i)&&l[i]===n||(l[i]&&o("102",i),l[i]=n,a=!0)}a&&t()},getPluginModuleForEvent:function(e){var a=e.dispatchConfig;if(a.registrationName)return u.registrationNameModules[a.registrationName]||null;if(void 0!==a.phasedRegistrationNames){var i=a.phasedRegistrationNames;for(var t in i)if(i.hasOwnProperty(t)){var n=u.registrationNameModules[i[t]];if(n)return n}}return null},_resetEventPlugins:function(){c=null;for(var e in l)l.hasOwnProperty(e)&&delete l[e];u.plugins.length=0;var a=u.eventNameDispatchConfigs;for(var i in a)a.hasOwnProperty(i)&&delete a[i];var t=u.registrationNameModules;for(var n in t)t.hasOwnProperty(n)&&delete t[n]}};e.exports=u},function(e,a,i){"use strict";function t(e){return"topMouseUp"===e||"topTouchEnd"===e||"topTouchCancel"===e}function n(e){return"topMouseMove"===e||"topTouchMove"===e}function r(e){return"topMouseDown"===e||"topTouchStart"===e}function o(e,a,i,t){var n=e.type||"unknown-event";e.currentTarget=y.getNodeFromInstance(t),a?d.invokeGuardedCallbackWithCatch(n,i,e):d.invokeGuardedCallback(n,i,e),e.currentTarget=null}function c(e,a){var i=e._dispatchListeners,t=e._dispatchInstances;if(Array.isArray(i))for(var n=0;n\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",r=n.console&&(n.console.warn||n.console.log);return r&&r.call(n.console,t,i),e.apply(this,arguments)}}function m(e,a,i){var t,n=a.prototype;t=e.prototype=Object.create(n),t.constructor=e,t._super=n,i&&ge(t,i)}function _(e,a){return function(){return e.apply(a,arguments)}}function g(e,a){return typeof e==ye?e.apply(a?a[0]||c:c,a):e}function d(e,a){return e===c?a:e}function v(e,a,i){s(b(a),function(a){e.addEventListener(a,i,!1)})}function y(e,a,i){s(b(a),function(a){e.removeEventListener(a,i,!1)})}function f(e,a){for(;e;){if(e==a)return!0;e=e.parentNode}return!1}function h(e,a){return e.indexOf(a)>-1}function b(e){return e.trim().split(/\s+/g)}function N(e,a,i){if(e.indexOf&&!i)return e.indexOf(a);for(var t=0;ti[a]}):t.sort()),t}function O(e,a){for(var i,t,n=a[0].toUpperCase()+a.slice(1),r=0;r1&&!i.firstMultiple?i.firstMultiple=C(a):1===n&&(i.firstMultiple=!1);var r=i.firstInput,o=i.firstMultiple,c=o?o.center:r.center,l=a.center=M(t);a.timeStamp=be(),a.deltaTime=a.timeStamp-r.timeStamp,a.angle=G(c,l),a.distance=B(c,l),w(i,a),a.offsetDirection=F(a.deltaX,a.deltaY);var u=P(a.deltaTime,a.deltaX,a.deltaY);a.overallVelocityX=u.x,a.overallVelocityY=u.y,a.overallVelocity=he(u.x)>he(u.y)?u.x:u.y,a.scale=o?U(o.pointers,t):1,a.rotation=o?H(o.pointers,t):0,a.maxPointers=i.prevInput?a.pointers.length>i.prevInput.maxPointers?a.pointers.length:i.prevInput.maxPointers:a.pointers.length,D(i,a);var s=e.element;f(a.srcEvent.target,s)&&(s=a.srcEvent.target),a.target=s}function w(e,a){var i=a.center,t=e.offsetDelta||{},n=e.prevDelta||{},r=e.prevInput||{};a.eventType!==Le&&r.eventType!==we||(n=e.prevDelta={x:r.deltaX||0,y:r.deltaY||0},t=e.offsetDelta={x:i.x,y:i.y}),a.deltaX=n.x+(i.x-t.x),a.deltaY=n.y+(i.y-t.y)}function D(e,a){var i,t,n,r,o=e.lastInterval||a,l=a.timeStamp-o.timeStamp;if(a.eventType!=De&&(l>xe||o.velocity===c)){var u=a.deltaX-o.deltaX,s=a.deltaY-o.deltaY,p=P(l,u,s);t=p.x,n=p.y,i=he(p.x)>he(p.y)?p.x:p.y,r=F(u,s),e.lastInterval=a}else i=o.velocity,t=o.velocityX,n=o.velocityY,r=o.direction;a.velocity=i,a.velocityX=t,a.velocityY=n,a.direction=r}function C(e){for(var a=[],i=0;i=he(a)?e<0?Me:Pe:a<0?Fe:Be}function B(e,a,i){i||(i=ke);var t=a[i[0]]-e[i[0]],n=a[i[1]]-e[i[1]];return Math.sqrt(t*t+n*n)}function G(e,a,i){i||(i=ke);var t=a[i[0]]-e[i[0]],n=a[i[1]]-e[i[1]];return 180*Math.atan2(n,t)/Math.PI}function H(e,a){return G(a[1],a[0],je)+G(e[1],e[0],je)}function U(e,a){return B(a[0],a[1],je)/B(e[0],e[1],je)}function k(){this.evEl=Ye,this.evWin=Ve,this.pressed=!1,I.apply(this,arguments)}function j(){this.evEl=Xe,this.evWin=Ze,I.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function W(){this.evTarget=Qe,this.evWin=Je,this.started=!1,I.apply(this,arguments)}function Y(e,a){var i=E(e.touches),t=E(e.changedTouches);return a&(we|De)&&(i=A(i.concat(t),"identifier",!0)),[i,t]}function V(){this.evTarget=ea,this.targetIds={},I.apply(this,arguments)}function z(e,a){var i=E(e.touches),t=this.targetIds;if(a&(Le|Re)&&1===i.length)return t[i[0].identifier]=!0,[i,i];var n,r,o=E(e.changedTouches),c=[],l=this.target;if(r=i.filter(function(e){return f(e.target,l)}),a===Le)for(n=0;n-1&&t.splice(e,1)};setTimeout(n,aa)}}function q(e){for(var a=e.srcEvent.clientX,i=e.srcEvent.clientY,t=0;t-1&&this.requireFail.splice(a,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(e){function a(a){i.manager.emit(a,e)}var i=this,t=this.state;t=ga&&a(i.options.event+ee(t))},tryEmit:function(e){if(this.canEmit())return this.emit(e);this.state=32},canEmit:function(){for(var e=0;ea.threshold&&n&a.direction},attrTest:function(e){return te.prototype.attrTest.call(this,e)&&(this.state&ma||!(this.state&ma)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var a=ae(e.direction);a&&(e.additionalEvent=this.options.event+a),this._super.emit.call(this,e)}}),m(re,te,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[ca]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||this.state&ma)},emit:function(e){if(1!==e.scale){var a=e.scale<1?"in":"out";e.additionalEvent=this.options.event+a}this._super.emit.call(this,e)}}),m(oe,$,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[ra]},process:function(e){var a=this.options,i=e.pointers.length===a.pointers,t=e.distancea.time;if(this._input=e,!t||!i||e.eventType&(we|De)&&!n)this.reset();else if(e.eventType&Le)this.reset(),this._timer=l(function(){this.state=da,this.tryEmit()},a.time,this);else if(e.eventType&we)return da;return 32},reset:function(){clearTimeout(this._timer)},emit:function(e){this.state===da&&(e&&e.eventType&we?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=be(),this.manager.emit(this.options.event,this._input)))}}),m(ce,te,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[ca]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||this.state&ma)}}),m(le,te,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Ge|He,pointers:1},getTouchAction:function(){return ne.prototype.getTouchAction.call(this)},attrTest:function(e){var a,i=this.options.direction;return i&(Ge|He)?a=e.overallVelocity:i&Ge?a=e.overallVelocityX:i&He&&(a=e.overallVelocityY),this._super.attrTest.call(this,e)&&i&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&he(a)>this.options.velocity&&e.eventType&we},emit:function(e){var a=ae(e.offsetDirection);a&&this.manager.emit(this.options.event+a,e),this.manager.emit(this.options.event,e)}}),m(ue,$,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[oa]},process:function(e){var a=this.options,i=e.pointers.length===a.pointers,t=e.distance1&&void 0!==arguments[1]?arguments[1]:{};n(this,a);var t=r(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,e,i));return t.width=null,t.height=null,t.attachments={},t.readBuffer=A,t.drawBuffers=[A],t.initialize(i),Object.seal(t),t}return o(a,e),E(a,null,[{key:"isSupported",value:function(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=a.colorBufferFloat,t=a.colorBufferHalfFloat;return i&&e.getExtension(Object(p.h)(e)?"EXT_color_buffer_float":"WEBGL_color_buffer_float"),t&&e.getExtension(Object(p.h)(e)?"EXT_color_buffer_float":"EXT_color_buffer_half_float")}}]),E(a,[{key:"initialize",value:function(e){var a=e.width,i=void 0===a?1:a,t=e.height,n=void 0===t?1:t,r=e.attachments,o=void 0===r?null:r,c=e.color,l=void 0===c||c,u=e.depth,s=void 0===u||u,p=e.stencil,m=void 0!==p&&p,_=e.check,g=void 0===_||_,d=e.readBuffer,v=e.drawBuffers;if(b()(i>=0&&n>=0,"Width and height need to be integers"),this.width=i,this.height=n,o)for(var y in o){var f=o[y],h=Array.isArray(f)?f[0]:f;h.resize({width:i,height:n})}else o=this._createDefaultAttachments({color:l,depth:s,stencil:m,width:i,height:n});this.update({clearAttachments:!0,attachments:o,readBuffer:d,drawBuffers:v}),o&&g&&this.checkStatus()}},{key:"update",value:function(e){var a=e.attachments,i=void 0===a?{}:a,t=e.readBuffer,n=e.drawBuffers,r=e.clearAttachments,o=void 0!==r&&r;this.attach(i,{clearAttachments:o});var c=this.gl;return c.bindFramebuffer(36160,this.handle),t&&this._setReadBuffer(t),n&&this._setDrawBuffers(n),c.bindFramebuffer(36160,null),this}},{key:"resize",value:function(e){var a=e.width,i=e.height;f.log.log(2,"Resizing framebuffer "+this.id+" to "+a+"x"+i);for(var t in this.attachments)this.attachments[t].resize({width:a,height:i});return this.width=a,this.height=i,this}},{key:"attach",value:function(e){var a=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=i.clearAttachments,n=void 0!==t&&t,r={};n&&Object.keys(this.attachments).forEach(function(e){r[e]=null}),Object.assign(r,e),this.gl.bindFramebuffer(36160,this.handle);for(var o in r){b()("undefined"!==o,"Misspelled framebuffer binding point?");var c=r[o],l=c;if(l)if(l instanceof v.a)this._attachRenderbuffer({attachment:o,renderbuffer:l});else if(Array.isArray(c)){var u=N(c,3),s=u[0],p=u[1],m=void 0===p?0:p,_=u[2],g=void 0===_?0:_;l=s,this._attachTexture({attachment:o,texture:s,layer:m,level:g})}else this._attachTexture({attachment:o,texture:l,layer:0,level:0});else this._unattach({attachment:o});l&&l.resize({width:this.width,height:this.height})}this.gl.bindFramebuffer(36160,null),Object.assign(this.attachments,e),Object.keys(this.attachments).filter(function(e){return!a.attachments[e]}).forEach(function(e){delete a.attachments[e]})}},{key:"checkStatus",value:function(){var e=this.gl;e.bindFramebuffer(36160,this.handle);var a=e.checkFramebufferStatus(36160);if(e.bindFramebuffer(36160,null),a!==e.FRAMEBUFFER_COMPLETE)throw new Error(u(a));return this}},{key:"clear",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=e.color,i=e.depth,t=e.stencil,n=e.drawBuffers,r=void 0===n?[]:n;return this.gl.bindFramebuffer(36160,this.handle),(a||i||t)&&Object(m.a)({color:a,depth:i,stencil:t}),r.forEach(function(e,a){Object(m.b)({drawBuffer:a,value:e})}),this.gl.bindFramebuffer(36160,null),this}},{key:"readPixels",value:function(e){var a=e.x,i=void 0===a?0:a,t=e.y,n=void 0===t?0:t,r=e.width,o=e.height,c=e.format,u=void 0===c?s.e.RGBA:c,p=e.type,m=e.pixelArray,_=void 0===m?null:m,g=this.gl;if(!_){p=p||g.UNSIGNED_BYTE;var d=Object(y.b)(p,{clamped:!1}),v=l(u);_=_||new d(r*o*v)}return p=p||Object(y.a)(_),this.bind(),this.gl.readPixels(i,n,r,o,u,p,_),this.unbind(),_}},{key:"copyToTexture",value:function(e){var a=e.srcFramebuffer,i=e.x,t=e.y,n=(e.width,e.height,e.texture),r=(e.xoffset,e.yoffset,e.zoffset,e.mipmapLevel),o=void 0===r?0:r,c=e.internalFormat,l=void 0===c?s.e.RGBA:c,u=(e.border,this.gl);switch(u.bindFramebuffer(36160,a.handle),n.target){case 3553:case 34067:u.copyTexSubImage2D(n.target,o,l,i,t,n.width,n.height);break;case 35866:case 32879:u.copyTexSubImage3D(n.target,o,l,i,t,n.width,n.height)}return u.bindFramebuffer(36160,null),this}},{key:"blit",value:function(e){var a=e.srcFramebuffer,i=e.srcX0,t=e.srcY0,n=e.srcX1,r=e.srcY1,o=e.dstX0,c=e.dstY0,l=e.dstX1,u=e.dstY1,m=e.color,_=e.depth,g=e.stencil,d=e.mask,v=void 0===d?0:d,y=e.filter,f=void 0===y?s.e.NEAREST:y,h=this.gl;return b()(Object(p.h)(h),p.b),m&&(v|=16384),_&&(v|=256),g&&(v|=1024),h.bindFramebuffer(36009,a.handle),h.bindFramebuffer(36008,this.handle),h.blitFramebuffer(i,t,n,r,o,c,l,u,v,f),h.bindFramebuffer(36008,null),h.bindFramebuffer(36009,null),this}},{key:"invalidate",value:function(e){var a=e.attachments,i=void 0===a?[]:a,t=e.x,n=void 0===t?0:t,r=e.y,o=void 0===r?0:r,c=e.width,l=e.height,u=this.gl;return b()(Object(p.h)(u,p.b)),u.bindFramebuffer(36009,this.handle),0===n&&0===o&&void 0===c&&void 0===l?u.invalidateFramebuffer(36009,i):u.invalidateFramebuffer(36009,i,n,o,c,l),u.bindFramebuffer(36009,null),this}},{key:"getAttachmentParameter",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=e.target,i=void 0===a?this.target:a,t=e.attachment,n=void 0===t?A:t,r=e.pname,o=this._getAttachmentParameterFallback(r);return null!==o?o:this.gl.getFramebufferAttachmentParameter(i,n,r)}},{key:"getAttachmentParameters",value:function(){var e=(arguments.length>0&&void 0!==arguments[0]&&arguments[0],arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.constructor.ATTACHMENT_PARAMETERS||{}),a={};for(var i in e)a[i]=this.getParameter(i);return this}},{key:"bind",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=e.target,i=void 0===a?36160:a;return this.gl.bindFramebuffer(i,this.handle),this}},{key:"unbind",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=e.target,i=void 0===a?36160:a;return this.gl.bindFramebuffer(i,null),this}},{key:"_createDefaultAttachments",value:function(e){var a=e.color,i=e.depth,n=(e.stencil,e.width),r=e.height,o=null;if(a){var c;o=o||{},o[A]=new d.a(this.gl,{data:null,format:s.e.RGBA,type:s.e.UNSIGNED_BYTE,width:n,height:r,mipmaps:!1,parameters:(c={},t(c,s.e.TEXTURE_MIN_FILTER,s.e.NEAREST),t(c,s.e.TEXTURE_MAG_FILTER,s.e.NEAREST),t(c,s.e.TEXTURE_WRAP_S,s.e.CLAMP_TO_EDGE),t(c,s.e.TEXTURE_WRAP_T,s.e.CLAMP_TO_EDGE),c)})}return i&&(o=o||{},o[36096]=new v.a(this.gl,{format:s.e.DEPTH_COMPONENT16,width:n,height:r})),o}},{key:"_unattach",value:function(e){var a=e.attachment;this.gl.bindRenderbuffer(36161,this.handle),this.gl.framebufferRenderbuffer(36160,a,36161,null),delete this.attachments[a]}},{key:"_attachRenderbuffer",value:function(e){var a=e.attachment,i=void 0===a?A:a,t=e.renderbuffer;this.gl.framebufferRenderbuffer(36160,i,36161,t.handle),this.attachments[i]=t}},{key:"_attachTexture",value:function(e){var a=e.attachment,i=void 0===a?A:a,t=e.texture,n=e.layer,r=e.level,o=this.gl;switch(o.bindTexture(t.target,t.handle),t.target){case 35866:case 32879:o.framebufferTextureLayer(36160,i,t.target,r,n);break;case 34067:var l=c(n);o.framebufferTexture2D(36160,i,l,t.handle,r);break;case 3553:o.framebufferTexture2D(36160,i,3553,t.handle,r);break;default:b()(!1,"Illegal texture type")}o.bindTexture(t.target,null),this.attachments[i]=t}},{key:"_setReadBuffer",value:function(e,a){Object(p.h)(e)?e.readBuffer(a):b()(a===A||a===s.e.BACK,"Multiple render targets not supported"),this.readBuffer=a}},{key:"_setDrawBuffers",value:function(e,a){if(Object(p.h)(e))e.drawBuffers(a);else{var i=e.getExtension("WEBGL_draw_buffers");i?i.drawBuffersWEBGL(a):b()(1===a.length&&(a[0]===A||a[0]===s.e.BACK),"Multiple render targets not supported")}this.drawBuffers=a}},{key:"_getAttachmentParameterFallback",value:function(e){var a=Object(_.b)(this.gl);switch(e){case s.e.FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER:return a.webgl2?null:0;case s.e.FRAMEBUFFER_ATTACHMENT_RED_SIZE:case s.e.FRAMEBUFFER_ATTACHMENT_GREEN_SIZE:case s.e.FRAMEBUFFER_ATTACHMENT_BLUE_SIZE:case s.e.FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE:case s.e.FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE:case s.e.FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE:return a.webgl2?null:8;case s.e.FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE:return a.webgl2?null:s.e.UNSIGNED_INT;case s.e.FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING:return a.webgl2||a.EXT_sRGB?null:s.e.LINEAR;default:return null}}},{key:"_createHandle",value:function(){return this.gl.createFramebuffer()}},{key:"_deleteHandle",value:function(){this.gl.deleteFramebuffer(this.handle)}},{key:"color",get:function(){return this.attachments[A]||null}},{key:"texture",get:function(){return this.attachments[A]||null}},{key:"depth",get:function(){return this.attachments[36096]||null}},{key:"stencil",get:function(){return this.attachments[36128]||null}}]),a}(g.a);a.a=S},function(e,a,i){"use strict";function t(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=a.framebuffer,t=void 0===i?null:i,n=a.color,r=void 0===n?null:n,c=a.depth,u=void 0===c?null:c,_=a.stencil,g=void 0===_?null:_,d={nocatch:!1,framebuffer:t},v=0;r&&(v|=m,!0!==r&&(d.clearColor=r)),u&&(v|=s,!0!==u&&(d.clearDepth=u)),g&&(v|=p,!0!==u&&(d.clearStencil=u)),l()(0!==v,y),Object(o.c)(e,d,function(){e.clear(v)})}function n(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=a.framebuffer,t=void 0===i?null:i,n=a.buffer,c=void 0===n?_:n,s=a.drawBuffer,p=void 0===s?0:s,m=a.value,f=void 0===m?[0,0,0,0]:m;l()(Object(r.h)(e),r.b),Object(o.c)(e,{framebuffer:t},function(){switch(c){case _:switch(f.constructor){case Int32Array:e.clearBufferiv(c,p,f);break;case Uint32Array:e.clearBufferuiv(c,p,f);break;case Float32Array:default:e.clearBufferfv(c,p,f)}break;case g:e.clearBufferfv(g,0,[f]);break;case d:e.clearBufferiv(d,0,[f]);break;case v:var a=u(f,2),i=a[0],t=a[1];e.clearBufferfi(v,0,i,t);break;default:l()(!1,y)}})}a.a=t,a.b=n;var r=i(16),o=i(131),c=i(3),l=i.n(c),u=function(){function e(e,a){var i=[],t=!0,n=!1,r=void 0;try{for(var o,c=e[Symbol.iterator]();!(t=(o=c.next()).done)&&(i.push(o.value),!a||i.length!==a);t=!0);}catch(e){n=!0,r=e}finally{try{!t&&c.return&&c.return()}finally{if(n)throw r}}return i}return function(a,i){if(Array.isArray(a))return a;if(Symbol.iterator in Object(a))return e(a,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=256,p=1024,m=16384,_=6144,g=6145,d=6146,v=34041,y="clear: bad arguments"},function(e,a,i){"use strict";function t(e,a){if(!(e instanceof a))throw new TypeError("Cannot call a class as a function")}function n(e,a){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!a||"object"!=typeof a&&"function"!=typeof a?e:a}function r(e,a){if("function"!=typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function, not "+typeof a);e.prototype=Object.create(a&&a.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(e,a):e.__proto__=a)}function o(e,a,i){return a in e?Object.defineProperty(e,a,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[a]=i,e}function c(e,a,i){var t=i[a];if(!t)return!1;var n=Object(s.h)(e)?t.gl2||t.gl1:t.gl1;return"string"==typeof n?e.getExtension(n):n}var l,u=i(49),s=i(16),p=i(55),m=i(3),_=i.n(m),g=function(){function e(e,a){for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:{};t(this,a);var r=n(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,e,i));return r.initialize(i),Object.seal(r),r}return r(a,e),g(a,null,[{key:"isSupported",value:function(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=a.format;return!i||c(e,i,v)}},{key:"getSamplesForFormat",value:function(e,a){var i=a.format;return e.getInternalformatParameter(36161,i,32937)}}]),g(a,[{key:"initialize",value:function(e){var a=e.format,i=e.width,t=void 0===i?1:i,n=e.height,r=void 0===n?1:n,o=e.samples,c=void 0===o?0:o;return _()(a,"Needs format"),this.gl.bindRenderbuffer(36161,this.handle),0!==c&&Object(s.h)(this.gl)?this.gl.renderbufferStorageMultisample(36161,c,a,t,r):this.gl.renderbufferStorage(36161,a,t,r),this.format=a,this.width=t,this.height=r,this.samples=c,this}},{key:"resize",value:function(e){var a=e.width,i=e.height;return a!==this.width||i!==this.height?this.initialize({width:a,height:i,format:this.format,samples:this.samples}):this}},{key:"_createHandle",value:function(){return this.gl.createRenderbuffer()}},{key:"_deleteHandle",value:function(){this.gl.deleteRenderbuffer(this.handle)}},{key:"_syncHandle",value:function(e){this.format=this.getParameter(36164),this.width=this.getParameter(36162),this.height=this.getParameter(36163),this.samples=this.getParameter(36011)}},{key:"_getParameter",value:function(e){return this.gl.bindRenderbuffer(36161,this.handle),this.gl.getRenderbufferParameter(36161,e)}}]),a}(p.a);a.a=y},function(e,a,i){"use strict";function t(e,a){if(!(e instanceof a))throw new TypeError("Cannot call a class as a function")}function n(e,a){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!a||"object"!=typeof a&&"function"!=typeof a?e:a}function r(e,a){if("function"!=typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function, not "+typeof a);e.prototype=Object.create(a&&a.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(e,a):e.__proto__=a)}i.d(a,"b",function(){return y}),i.d(a,"a",function(){return f});var o=i(106),c=i(16),l=i(55),u=i(19),s=i(3),p=i.n(s),m=function(){function e(e,a){for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:{};n(this,a);var t=r(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,i));return Object(c.isWebGL)(e)?t.gl=e:(p.log.deprecated("Model({gl, ...opts})","Model(gl, {...opts}"),i=Object.assign(e,i),t.gl=i.gl||i.program&&i.program.gl,y()(Object(c.isWebGL)(t.gl),"Not a WebGL context")),t.init(i),t}return o(a,e),f(a,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=e.vs,i=void 0===a?null:a,t=e.fs,n=void 0===t?null:t,r=e.modules,o=void 0===r?null:r,c=e.defines,l=void 0===c?{}:c,s=e.moduleSettings,p=void 0===s?{}:s,m=e.defaultUniforms,_=e.program,g=e.isInstanced,v=void 0!==g&&g,f=e.instanced,h=e.vertexCount,b=void 0===h?void 0:h,N=e.instanceCount,E=void 0===N?0:N,A=e.drawMode,O=e.uniforms,S=void 0===O?{}:O,T=e.attributes,I=void 0===T?{}:T,x=e.geometry,L=void 0===x?null:x,R=e.pickable,w=void 0===R||R,D=e.pick,C=void 0===D?null:D,M=(e.render,e.onBeforeRender),P=void 0===M?function(){}:M,F=e.onAfterRender,B=void 0===F?function(){}:F,G=e.timerQueryEnabled,H=void 0!==G&&G;this._initializeProgram({vs:i,fs:n,modules:o,defines:l,moduleSettings:p,defaultUniforms:m,program:_}),this.uniforms={},S=Object.assign({},this.program.defaultUniforms,S),this.setUniforms(S),this.setUniforms(this.getModuleUniforms()),this.setUniforms(this.getModuleUniforms(p)),f&&(console.warn('Warning: Model constructor: parameter "instanced" renamed to "isInstanced".\nThis will become a hard error in a future version of luma.gl.'),v=v||f),this.buffers={},this.userData={},this.drawParams={},this.dynamic=!1,this.needsRedraw=!0,this.setGeometry(L),this.attributes={},this.setAttributes(I),void 0!==A&&(this.drawMode=Object(u.b)(A)),void 0!==b&&(this.vertexCount=b),this.isInstanced=v,this.instanceCount=E,this.pickable=Boolean(w),this.pick=C||function(){return!1},this.onBeforeRender=P,this.onAfterRender=B,y()(void 0!==this.drawMode&&Number.isFinite(this.vertexCount),"Model needs drawMode and vertexCount"),this.timerQueryEnabled=H&&d.a.isSupported(this.gl,{timer:!0}),this.timeElapsedQuery=void 0,this.lastQueryReturned=!0,this.stats={accumulatedFrameTime:0,averageFrameTime:0,profileFrameCount:0}}},{key:"_initializeProgram",value:function(e){var a=e.vs,i=e.fs,t=e.modules,n=e.defines,r=(e.moduleSettings,e.defaultUniforms),o=e.program;a||(a=m.a.vs),i||(i=m.a.fs),a!==m.b.vs&&i!==m.b.fs||(r=r||m.b.defaultUniforms);var l=Object(_.a)(this.gl,{vs:a,fs:i,modules:t,defines:n});a=l.vs,i=l.fs;var u=l.getUniforms;this.getModuleUniforms=u||function(e){},this.program=o||new c.Program(this.gl,{vs:a,fs:i}),y()(this.program instanceof c.Program,"Model needs a program")}},{key:"destroy",value:function(){this.delete()}},{key:"delete",value:function(){this.program.delete(),Object(g.d)(this.id)}},{key:"setNeedsRedraw",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.needsRedraw=e,this}},{key:"getNeedsRedraw",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=e.clearRedrawFlags,i=void 0!==a&&a,t=!1;return t=t||this.needsRedraw,this.needsRedraw=this.needsRedraw&&!i,t=t||this.geometry.getNeedsRedraw({clearRedrawFlags:i})}},{key:"setDrawMode",value:function(e){return this.drawMode=Object(u.b)(e),this}},{key:"getDrawMode",value:function(){return this.drawMode}},{key:"setVertexCount",value:function(e){return y()(Number.isFinite(e)),this.vertexCount=e,this}},{key:"getVertexCount",value:function(){return this.vertexCount}},{key:"setInstanceCount",value:function(e){return y()(Number.isFinite(e)),this.instanceCount=e,this}},{key:"getInstanceCount",value:function(){return this.instanceCount}},{key:"getProgram",value:function(){return this.program}},{key:"setGeometry",value:function(e){return this.geometry=e,this.vertexCount=e.getVertexCount(),this.drawMode=e.drawMode,this._createBuffersFromAttributeDescriptors(this.geometry.getAttributes()),this.setNeedsRedraw(),this}},{key:"getAttributes",value:function(){return this.attributes}},{key:"setAttributes",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign(this.attributes,e),this._createBuffersFromAttributeDescriptors(e),this.setNeedsRedraw(),this}},{key:"getUniforms",value:function(){return this.uniforms}},{key:"setUniforms",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(c.checkUniformValues)(e,this.id),Object.assign(this.uniforms,e),this.setNeedsRedraw(),this}},{key:"updateModuleSettings",value:function(e){var a=this.getModuleUniforms(e);return this.setUniforms(a)}},{key:"addViewUniforms",value:function(e){var a=e.camera,i=e.viewMatrix,t=e.modelMatrix,n=a?a.getUniforms():{},r=i?this.getCoordinateUniforms(i,t):{};return Object.assign({},e,n,r)}},{key:"draw",value:function(){var e=this,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=a.uniforms,t=void 0===i?{}:i,n=a.attributes,r=void 0===n?{}:n,o=a.samplers,l=void 0===o?{}:o,u=a.parameters,s=void 0===u?{}:u,m=a.settings,_=a.framebuffer,g=void 0===_?null:_;m&&(p.log.deprecated("settings","parameters"),s=m);var d=this.program.gl;return g&&(s=Object.assign(s,{framebuffer:g})),Object(c.withParameters)(d,s,function(){return e.render(t,r,l)})}},{key:"render",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};arguments.length>1&&void 0!==arguments[1]&&arguments[1],arguments.length>2&&void 0!==arguments[2]&&arguments[2],arguments.length>3&&void 0!==arguments[3]&&arguments[3];Object(g.a)(this);var a=this.addViewUniforms(e);Object(g.b)(this.id,a),this.setUniforms(a),p.log.log(2,">>> RENDERING MODEL "+this.id,this),this.setProgramState(),this._logAttributesAndUniforms(3,a),this.onBeforeRender();var i=this.drawParams;i.isInstanced&&!this.isInstanced&&p.log.warn(0,"Found instanced attributes on non-instanced model");var t=i.isIndexed,n=i.indexType,r=this.isInstanced,o=this.instanceCount;return this._timerQueryStart(),this.program.draw({drawMode:this.getDrawMode(),vertexCount:this.getVertexCount(),isIndexed:t,indexType:n,isInstanced:r,instanceCount:o}),this._timerQueryEnd(),this.onAfterRender(),this.unsetProgramState(),this.setNeedsRedraw(!1),p.log.log(2,"<<< RENDERING MODEL "+this.id+" - complete"),this}},{key:"setProgramState",value:function(){var e=this.program;return e.use(),this.drawParams={},e.setBuffers(this.buffers,{drawParams:this.drawParams}),e.setUniforms(this.uniforms,this.samplers),this}},{key:"unsetProgramState",value:function(){return this.program.unsetBuffers(),this}},{key:"_timerQueryStart",value:function(){!0===this.timerQueryEnabled&&(this.timeElapsedQuery||(this.timeElapsedQuery=new d.a(this.gl)),this.lastQueryReturned&&(this.lastQueryReturned=!1,this.timeElapsedQuery.beginTimeElapsedQuery()))}},{key:"_timerQueryEnd",value:function(){if(!0===this.timerQueryEnabled&&(this.timeElapsedQuery.end(),this.timeElapsedQuery.isResultAvailable())){this.lastQueryReturned=!0;var e=this.timeElapsedQuery.getResult();this.stats.lastFrameTime=e,this.stats.accumulatedFrameTime+=e,this.stats.profileFrameCount++,this.stats.averageFrameTime=this.stats.accumulatedFrameTime/this.stats.profileFrameCount,p.log.log(2,"program.id: ",this.program.id),p.log.log(2,"last frame time: "+this.stats.lastFrameTime+"ms"),p.log.log(2,"average frame time "+this.stats.averageFrameTime+"ms"),p.log.log(2,"accumulated frame time: "+this.stats.accumulatedFrameTime+"ms"),p.log.log(2,"profile frame count: "+this.stats.profileFrameCount)}}},{key:"_createBuffersFromAttributeDescriptors",value:function(e){var a=this.program.gl;for(var i in e){var t=e[i];if(t instanceof c.Buffer)this.buffers[i]=t;else{this.buffers[i]=this.buffers[i]||new c.Buffer(a,{target:t.isIndexed?c.GL.ELEMENT_ARRAY_BUFFER:c.GL.ARRAY_BUFFER});this.buffers[i].setData({data:t.value}).setDataLayout(t)}}return this}},{key:"_logAttributesAndUniforms",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(p.log.priority>=e){var i=this._getAttributesTable({header:"Attributes "+this.id,program:this.program,attributes:Object.assign({},this.geometry.attributes,this.attributes)});p.log.table(e,i);var t=Object(l.c)({header:"Uniforms "+this.id,program:this.program,uniforms:Object.assign({},this.uniforms,a)}),n=t.table,r=t.unusedTable,o=t.unusedCount;p.log.table(e,n),p.log.log(e,(o||"No")+" unused uniforms ",r)}Object(g.c)(this,a)}},{key:"_getAttributesTable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=e.attributes,i=e.header,n=void 0===i?"Attributes":i,r=(e.instanced,e.program);y()(r);var o=r._attributeLocations,c=t({},n,{});for(var l in o){var u=a[l],s=o[l];c[l]=this._getAttributeEntry(u,s)}for(var p in a){var m=a[p];c[p]||(c[p]=this._getAttributeEntry(m,null))}return c}},{key:"_getAttributeEntry",value:function(e,a){var i=function(e){return Math.round(10*e)/10},t="NOT PROVIDED",n=0,r="N/A",o="N/A",l="N/A",u="N/A";if(e&&null===a&&(a=e.isIndexed?"ELEMENT_ARRAY_BUFFER":"NOT USED"),e instanceof c.Buffer){var s=e;t=s.layout.type,n=s.layout.instanced,r=s.layout.size,o=i(s.data.length/s.layout.size),l=s.data.length*s.data.BYTES_PER_ELEMENT}else e&&(t=e.value.constructor.name,n=e.instanced,r=e.size,o=i(e.value.length/e.size),l=e.value.length*e.value.BYTES_PER_ELEMENT,u=e.value);t=String(t).replace("Array","");var m=-1!==t.indexOf("nt");return{Location:a+(n?" [instanced]":""),"Type Size x Verts = Bytes":t+" "+r+" x "+o+" = "+l,Value:Object(p.formatValue)(u,{size:r,isInteger:m})}}},{key:"isPickable",value:function(){return this.pickable}},{key:"setPickable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.pickable=Boolean(e),this}},{key:"getGeometry",value:function(){return this.geometry}}]),a}(s.a);a.a=h},function(e,a,i){"use strict";function t(e,a){if(!(e instanceof a))throw new TypeError("Cannot call a class as a function")}function n(e,a){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!a||"object"!=typeof a&&"function"!=typeof a?e:a}function r(e,a){if("function"!=typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function, not "+typeof a);e.prototype=Object.create(a&&a.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(e,a):e.__proto__=a)}var o=i(85),c=function(e){function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t(this,a);for(var i=e.bottomRadius,r=void 0===i?0:i,o=e.topRadius,c=void 0===o?0:o,l=e.height,u=void 0===l?1:l,s=e.nradial,p=void 0===s?10:s,m=e.nvertical,_=void 0===m?10:m,g=e.topCap,d=void 0!==g&&g,v=e.bottomCap,y=void 0!==v&&v,f=(d?2:0)+(y?2:0),h=(p+1)*(_+1+f),b=Math.atan2(r-c,u),N=Math.sin,E=Math.cos,A=Math.PI,O=E(b),S=N(b),T=d?-2:0,I=_+(y?2:0),x=p+1,L=new Float32Array(3*h),R=new Float32Array(3*h),w=new Float32Array(2*h),D=new Uint16Array(p*(_+f)*6),C=0,M=0,P=T;P<=I;P++){var F=P/_,B=u*F,G=void 0;P<0?(B=0,F=1,G=r):P>_?(B=u,F=1,G=c):G=r+P/_*(c-r),-2!==P&&P!==_+2||(G=0,F=0),B-=u/2;for(var H=0;H_?0:U*O,R[C+1]=P<0?-1:P>_?1:S,R[C+2]=P<0||P>_?0:k*O,w[M+0]=H/p,w[M+1]=F,M+=2,C+=3}}for(var j=0;j<_+f;j++)for(var W=0;W80*i){u=m=e[0],s=_=e[1];for(var y=i;ym&&(m=g),d>_&&(_=d);v=Math.max(m-u,_-s)}return o(c,l,i,u,s,v),l}function n(e,a,i,t,n){var r,o;if(n===w(e,a,i,t)>0)for(r=a;r=a;r-=t)o=x(r,e[r],e[r+1],o);return o&&E(o,o.next)&&(L(o),o=o.next),o}function r(e,a){if(!e)return e;a||(a=e);var i,t=e;do{if(i=!1,t.steiner||!E(t,t.next)&&0!==N(t.prev,t,t.next))t=t.next;else{if(L(t),(t=a=t.prev)===t.next)return null;i=!0}}while(i||t!==a);return a}function o(e,a,i,t,n,p,m){if(e){!m&&p&&d(e,t,n,p);for(var _,g,v=e;e.prev!==e.next;)if(_=e.prev,g=e.next,p?l(e,t,n,p):c(e))a.push(_.i/i),a.push(e.i/i),a.push(g.i/i),L(e),e=g.next,v=g.next;else if((e=g)===v){m?1===m?(e=u(e,a,i),o(e,a,i,t,n,p,2)):2===m&&s(e,a,i,t,n,p):o(r(e),a,i,t,n,p,1);break}}}function c(e){var a=e.prev,i=e,t=e.next;if(N(a,i,t)>=0)return!1;for(var n=e.next.next;n!==e.prev;){if(h(a.x,a.y,i.x,i.y,t.x,t.y,n.x,n.y)&&N(n.prev,n,n.next)>=0)return!1;n=n.next}return!0}function l(e,a,i,t){var n=e.prev,r=e,o=e.next;if(N(n,r,o)>=0)return!1;for(var c=n.xr.x?n.x>o.x?n.x:o.x:r.x>o.x?r.x:o.x,s=n.y>r.y?n.y>o.y?n.y:o.y:r.y>o.y?r.y:o.y,p=y(c,l,a,i,t),m=y(u,s,a,i,t),_=e.nextZ;_&&_.z<=m;){if(_!==e.prev&&_!==e.next&&h(n.x,n.y,r.x,r.y,o.x,o.y,_.x,_.y)&&N(_.prev,_,_.next)>=0)return!1;_=_.nextZ}for(_=e.prevZ;_&&_.z>=p;){if(_!==e.prev&&_!==e.next&&h(n.x,n.y,r.x,r.y,o.x,o.y,_.x,_.y)&&N(_.prev,_,_.next)>=0)return!1;_=_.prevZ}return!0}function u(e,a,i){var t=e;do{var n=t.prev,r=t.next.next;!E(n,r)&&A(n,t,t.next,r)&&S(n,r)&&S(r,n)&&(a.push(n.i/i),a.push(t.i/i),a.push(r.i/i),L(t),L(t.next),t=e=r),t=t.next}while(t!==e);return t}function s(e,a,i,t,n,c){var l=e;do{for(var u=l.next.next;u!==l.prev;){if(l.i!==u.i&&b(l,u)){var s=I(l,u);return l=r(l,l.next),s=r(s,s.next),o(l,a,i,t,n,c),void o(s,a,i,t,n,c)}u=u.next}l=l.next}while(l!==e)}function p(e,a,i,t){var o,c,l,u,s,p=[];for(o=0,c=a.length;o=t.next.y){var c=t.x+(r-t.y)*(t.next.x-t.x)/(t.next.y-t.y);if(c<=n&&c>o){if(o=c,c===n){if(r===t.y)return t;if(r===t.next.y)return t.next}i=t.x=t.x&&t.x>=s&&h(ri.x)&&S(t,e)&&(i=t,m=l),t=t.next;return i}function d(e,a,i,t){var n=e;do{null===n.z&&(n.z=y(n.x,n.y,a,i,t)),n.prevZ=n.prev,n.nextZ=n.next,n=n.next}while(n!==e);n.prevZ.nextZ=null,n.prevZ=null,v(n)}function v(e){var a,i,t,n,r,o,c,l,u=1;do{for(i=e,e=null,r=null,o=0;i;){for(o++,t=i,c=0,a=0;a0||l>0&&t;)0===c?(n=t,t=t.nextZ,l--):0!==l&&t?i.z<=t.z?(n=i,i=i.nextZ,c--):(n=t,t=t.nextZ,l--):(n=i,i=i.nextZ,c--),r?r.nextZ=n:e=n,n.prevZ=r,r=n;i=t}r.nextZ=null,u*=2}while(o>1);return e}function y(e,a,i,t,n){return e=32767*(e-i)/n,a=32767*(a-t)/n,e=16711935&(e|e<<8),e=252645135&(e|e<<4),e=858993459&(e|e<<2),e=1431655765&(e|e<<1),a=16711935&(a|a<<8),a=252645135&(a|a<<4),a=858993459&(a|a<<2),a=1431655765&(a|a<<1),e|a<<1}function f(e){var a=e,i=e;do{a.x=0&&(e-o)*(t-c)-(i-o)*(a-c)>=0&&(i-o)*(r-c)-(n-o)*(t-c)>=0}function b(e,a){return e.next.i!==a.i&&e.prev.i!==a.i&&!O(e,a)&&S(e,a)&&S(a,e)&&T(e,a)}function N(e,a,i){return(a.y-e.y)*(i.x-a.x)-(a.x-e.x)*(i.y-a.y)}function E(e,a){return e.x===a.x&&e.y===a.y}function A(e,a,i,t){return!!(E(e,a)&&E(i,t)||E(e,t)&&E(i,a))||N(e,a,i)>0!=N(e,a,t)>0&&N(i,t,e)>0!=N(i,t,a)>0}function O(e,a){var i=e;do{if(i.i!==e.i&&i.next.i!==e.i&&i.i!==a.i&&i.next.i!==a.i&&A(i,i.next,e,a))return!0;i=i.next}while(i!==e);return!1}function S(e,a){return N(e.prev,e,e.next)<0?N(e,a,e.next)>=0&&N(e,e.prev,a)>=0:N(e,a,e.prev)<0||N(e,e.next,a)<0}function T(e,a){var i=e,t=!1,n=(e.x+a.x)/2,r=(e.y+a.y)/2;do{i.y>r!=i.next.y>r&&n<(i.next.x-i.x)*(r-i.y)/(i.next.y-i.y)+i.x&&(t=!t),i=i.next}while(i!==e);return t}function I(e,a){var i=new R(e.i,e.x,e.y),t=new R(a.i,a.x,a.y),n=e.next,r=a.prev;return e.next=a,a.prev=e,i.next=n,n.prev=i,t.next=i,i.prev=t,r.next=t,t.prev=r,t}function x(e,a,i,t){var n=new R(e,a,i);return t?(n.next=t.next,n.prev=t,t.next.prev=n,t.next=n):(n.prev=n,n.next=n),n}function L(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function R(e,a,i){this.i=e,this.x=a,this.y=i,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function w(e,a,i,t){for(var n=0,r=a,o=i-t;r0&&(t+=e[n-1].length,i.holes.push(t))}return i}},function(e,a,i){"use strict";Object.defineProperty(a,"__esModule",{value:!0});a.tooltipStyle={position:"absolute",padding:"4px",background:"rgba(0, 0, 0, 0.8)",color:"#fff",maxWidth:"300px",fontSize:"10px",zIndex:9,pointerEvents:"none"},a.layerControl={borderRadius:3,boxShadow:"0 1px 2px rgba(0, 0, 0, 0.1)",fontFamily:'ff-clan-web-pro, "Helvetica Neue", Helvetica, sans-serif !important',fontSize:"12px",lineHeight:1.833,width:200,position:"absolute",top:"20px",right:"20px",padding:"20px",zIndex:100,background:"white"},a.charts={background:"white",border:"1px solid #C0C0C0",fontFamily:'ff-clan-web-pro, "Helvetica Neue", Helvetica, sans-serif !important',fontSize:"12px",lineHeight:1.833,height:210,padding:"10px",position:"absolute",left:20,top:20,width:500,zIndex:100},a.spinner={animation:"linear 2s infinite",background:"#1EACC7",borderRadius:"50%",height:10,width:10,opacity:.4,position:"absolute",top:70,left:60,transformOrigin:"20px 20px",zIndex:110}},function(e,a,i){"use strict";a.a=function(e,a){return e=+e,a-=e,function(i){return e+a*i}}},function(e,a,i){"use strict";function t(e){var a={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(a[i]="number"==typeof e[i]?e[i]:e[i].val);return a}a.__esModule=!0,a.default=t,e.exports=a.default},function(e,a,i){(function(a){(function(){var i,t,n;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:void 0!==a&&null!==a&&a.hrtime?(e.exports=function(){return(i()-n)/1e6},t=a.hrtime,i=function(){var e;return e=t(),1e9*e[0]+e[1]},n=i()):Date.now?(e.exports=function(){return Date.now()-n},n=Date.now()):(e.exports=function(){return(new Date).getTime()-n},n=(new Date).getTime())}).call(this)}).call(a,i(79))},function(e,a,i){"use strict";function t(e,a){return(a-=e=+e)?function(i){return(i-e)/a}:Object(_.a)(a)}function n(e){return function(a,i){var t=e(a=+a,i=+i);return function(e){return e<=a?0:e>=i?1:t(e)}}}function r(e){return function(a,i){var t=e(a=+a,i=+i);return function(e){return e<=0?a:e>=1?i:t(e)}}}function o(e,a,i,t){var n=e[0],r=e[1],o=a[0],c=a[1];return r2?c:o,s=_=null,l}function l(a){return(s||(s=u(v,y,h?n(e):e,f)))(+a)}var u,s,_,v=d,y=d,f=p.interpolate,h=!1;return l.invert=function(e){return(_||(_=u(y,v,t,h?r(a):a)))(+e)},l.domain=function(e){return arguments.length?(v=m.a.call(e,g.a),i()):v.slice()},l.range=function(e){return arguments.length?(y=m.b.call(e),i()):y.slice()},l.rangeRound=function(e){return y=m.b.call(e),f=p.interpolateRound,i()},l.clamp=function(e){return arguments.length?(h=!!e,i()):h},l.interpolate=function(e){return arguments.length?(f=e,i()):f},i()}a.c=t,a.a=l,a.b=u;var s=i(27),p=i(87),m=i(110),_=i(366),g=i(620),d=[0,1]},function(e,a,i){"use strict";var t=i(1420);i.d(a,"a",function(){return t.a}),i.d(a,"b",function(){return t.b});var n=(i(621),i(622));i.d(a,"c",function(){return n.a});var r=i(1426);i.d(a,"d",function(){return r.a});var o=i(1427);i.d(a,"e",function(){return o.a});var c=i(1428);i.d(a,"f",function(){return c.a})},function(e,a,i){"use strict";var t=i(367);a.a=function(e){return e=Object(t.a)(Math.abs(e)),e?e[1]:NaN}},function(e,a,i){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var t=i(1459);i.d(a,"arc",function(){return t.a});var n=i(632);i.d(a,"area",function(){return n.a});var r=i(370);i.d(a,"line",function(){return r.a});var o=i(1461);i.d(a,"pie",function(){return o.a});var c=i(1464);i.d(a,"areaRadial",function(){return c.a}),i.d(a,"radialArea",function(){return c.a});var l=i(634);i.d(a,"lineRadial",function(){return l.a}),i.d(a,"radialLine",function(){return l.a});var u=i(635);i.d(a,"pointRadial",function(){return u.a});var s=i(1465);i.d(a,"linkHorizontal",function(){return s.a}),i.d(a,"linkVertical",function(){return s.c}),i.d(a,"linkRadial",function(){return s.b});var p=i(1466);i.d(a,"symbol",function(){return p.a}),i.d(a,"symbols",function(){return p.b});var m=i(637);i.d(a,"symbolCircle",function(){return m.a});var _=i(638);i.d(a,"symbolCross",function(){return _.a});var g=i(639);i.d(a,"symbolDiamond",function(){return g.a});var d=i(641);i.d(a,"symbolSquare",function(){return d.a});var v=i(640);i.d(a,"symbolStar",function(){return v.a});var y=i(642);i.d(a,"symbolTriangle",function(){return y.a});var f=i(643);i.d(a,"symbolWye",function(){return f.a});var h=i(1467);i.d(a,"curveBasisClosed",function(){return h.a});var b=i(1468);i.d(a,"curveBasisOpen",function(){return b.a});var N=i(235);i.d(a,"curveBasis",function(){return N.b});var E=i(1469);i.d(a,"curveBundle",function(){return E.a});var A=i(644);i.d(a,"curveCardinalClosed",function(){return A.b});var O=i(645);i.d(a,"curveCardinalOpen",function(){return O.b});var S=i(236);i.d(a,"curveCardinal",function(){return S.b});var T=i(1470);i.d(a,"curveCatmullRomClosed",function(){return T.a});var I=i(1471);i.d(a,"curveCatmullRomOpen",function(){return I.a});var x=i(372);i.d(a,"curveCatmullRom",function(){return x.a});var L=i(1472);i.d(a,"curveLinearClosed",function(){return L.a});var R=i(233);i.d(a,"curveLinear",function(){return R.a});var w=i(1473);i.d(a,"curveMonotoneX",function(){return w.a}),i.d(a,"curveMonotoneY",function(){return w.b});var D=i(1474);i.d(a,"curveNatural",function(){return D.a});var C=i(1475);i.d(a,"curveStep",function(){return C.a}),i.d(a,"curveStepAfter",function(){return C.b}),i.d(a,"curveStepBefore",function(){return C.c});var M=i(1476);i.d(a,"stack",function(){return M.a});var P=i(1477);i.d(a,"stackOffsetExpand",function(){return P.a});var F=i(1478);i.d(a,"stackOffsetDiverging",function(){return F.a});var B=i(172);i.d(a,"stackOffsetNone",function(){return B.a});var G=i(1479);i.d(a,"stackOffsetSilhouette",function(){return G.a});var H=i(1480);i.d(a,"stackOffsetWiggle",function(){return H.a});var U=i(373);i.d(a,"stackOrderAscending",function(){return U.a});var k=i(1481);i.d(a,"stackOrderDescending",function(){return k.a});var j=i(1482);i.d(a,"stackOrderInsideOut",function(){return j.a});var W=i(173);i.d(a,"stackOrderNone",function(){return W.a});var Y=i(1483);i.d(a,"stackOrderReverse",function(){return Y.a})},function(e,a,i){"use strict";function t(e){this._context=e}t.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,a){switch(e=+e,a=+a,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,a):this._context.moveTo(e,a);break;case 1:this._point=2;default:this._context.lineTo(e,a)}}},a.a=function(e){return new t(e)}},function(e,a,i){"use strict";a.a=function(){}},function(e,a,i){"use strict";function t(e,a,i){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+a)/6,(e._y0+4*e._y1+i)/6)}function n(e){this._context=e}a.c=t,a.a=n,n.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:t(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,a){switch(e=+e,a=+a,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,a):this._context.moveTo(e,a);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:t(this,e,a)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=a}},a.b=function(e){return new n(e)}},function(e,a,i){"use strict";function t(e,a,i){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-a),e._y2+e._k*(e._y1-i),e._x2,e._y2)}function n(e,a){this._context=e,this._k=(1-a)/6}a.c=t,a.a=n,n.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:t(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,a){switch(e=+e,a=+a,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,a):this._context.moveTo(e,a);break;case 1:this._point=2,this._x1=e,this._y1=a;break;case 2:this._point=3;default:t(this,e,a)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=a}},a.b=function e(a){function i(e){return new n(e,a)}return i.tension=function(a){return e(+a)},i}(0)},function(e,a,i){"use strict";function t(e,a){return[e>u.o?e-u.w:e<-u.o?e+u.w:e,a]}function n(e,a,i){return(e%=u.w)?a||i?Object(l.a)(o(e),c(a,i)):o(e):a||i?c(a,i):t}function r(e){return function(a,i){return a+=e,[a>u.o?a-u.w:a<-u.o?a+u.w:a,i]}}function o(e){var a=r(e);return a.invert=r(-e),a}function c(e,a){function i(e,a){var i=Object(u.g)(a),c=Object(u.g)(e)*i,l=Object(u.t)(e)*i,s=Object(u.t)(a),p=s*t+c*n;return[Object(u.e)(l*r-p*o,c*t-s*n),Object(u.c)(p*r+l*o)]}var t=Object(u.g)(e),n=Object(u.t)(e),r=Object(u.g)(a),o=Object(u.t)(a);return i.invert=function(e,a){var i=Object(u.g)(a),c=Object(u.g)(e)*i,l=Object(u.t)(e)*i,s=Object(u.t)(a),p=s*r-l*o;return[Object(u.e)(l*r+s*o,c*t+p*n),Object(u.c)(p*t-c*n)]},i}a.b=n;var l=i(655),u=i(6);t.invert=t,a.a=function(e){function a(a){return a=e(a[0]*u.r,a[1]*u.r),a[0]*=u.h,a[1]*=u.h,a}return e=n(e[0]*u.r,e[1]*u.r,e.length>2?e[2]*u.r:0),a.invert=function(a){return a=e.invert(a[0]*u.r,a[1]*u.r),a[0]*=u.h,a[1]*=u.h,a},a}},function(e,a,i){"use strict";function t(e){return function(a){var i=new n;for(var t in e)i[t]=e[t];return i.stream=a,i}}function n(){}a.a=t;n.prototype={constructor:n,point:function(e,a){this.stream.point(e,a)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}}},function(e,a,i){"use strict";a.a=function(e,a,i,t,n){for(var r,o=e.children,c=-1,l=o.length,u=e.value&&(n-i)/e.value;++c0;(r>>>=1)&&(a+=a))1&r&&(i+=a);return i}},function(e,a){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},function(e,a){var i=Math.expm1;e.exports=!i||i(10)>22025.465794806718||i(10)<22025.465794806718||-2e-17!=i(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:Math.exp(e)-1}:i},function(e,a,i){var t=i(59),n=i(58);e.exports=function(e){return function(a,i){var r,o,c=String(n(a)),l=t(i),u=c.length;return l<0||l>=u?e?"":void 0:(r=c.charCodeAt(l),r<55296||r>56319||l+1===u||(o=c.charCodeAt(l+1))<56320||o>57343?e?c.charAt(l):r:e?c.slice(l,l+2):o-56320+(r-55296<<10)+65536)}}},function(e,a,i){"use strict";var t=i(91),n=i(0),r=i(40),o=i(39),c=i(38),l=i(115),u=i(255),s=i(113),p=i(47),m=i(14)("iterator"),_=!([].keys&&"next"in[].keys()),g=function(){return this};e.exports=function(e,a,i,d,v,y,f){u(i,a,d);var h,b,N,E=function(e){if(!_&&e in T)return T[e];switch(e){case"keys":case"values":return function(){return new i(this,e)}}return function(){return new i(this,e)}},A=a+" Iterator",O="values"==v,S=!1,T=e.prototype,I=T[m]||T["@@iterator"]||v&&T[v],x=I||E(v),L=v?O?E("entries"):x:void 0,R="Array"==a?T.entries||I:I;if(R&&(N=p(R.call(new e)))!==Object.prototype&&N.next&&(s(N,A,!0),t||c(N,m)||o(N,m,g)),O&&I&&"values"!==I.name&&(S=!0,x=function(){return I.call(this)}),t&&!f||!_&&!S&&T[m]||o(T,m,x),l[a]=x,l[A]=g,v)if(h={values:O?x:E("values"),keys:y?x:E("keys"),entries:L},f)for(b in h)b in T||r(T,b,h[b]);else n(n.P+n.F*(_||S),a,h);return h}},function(e,a,i){"use strict";var t=i(94),n=i(89),r=i(113),o={};i(39)(o,i(14)("iterator"),function(){return this}),e.exports=function(e,a,i){e.prototype=t(o,{next:n(1,i)}),r(e,a+" Iterator")}},function(e,a,i){var t=i(184),n=i(58);e.exports=function(e,a,i){if(t(a))throw TypeError("String#"+i+" doesn't accept regex!");return String(n(e))}},function(e,a,i){var t=i(14)("match");e.exports=function(e){var a=/./;try{"/./"[e](a)}catch(i){try{return a[t]=!1,!"/./"[e](a)}catch(e){}}return!0}},function(e,a,i){var t=i(115),n=i(14)("iterator"),r=Array.prototype;e.exports=function(e){return void 0!==e&&(t.Array===e||r[n]===e)}},function(e,a,i){"use strict";var t=i(21),n=i(89);e.exports=function(e,a,i){a in e?t.f(e,a,n(0,i)):e[a]=i}},function(e,a,i){var t=i(139),n=i(14)("iterator"),r=i(115);e.exports=i(56).getIteratorMethod=function(e){if(void 0!=e)return e[n]||e["@@iterator"]||r[t(e)]}},function(e,a,i){var t=i(774);e.exports=function(e,a){return new(t(e))(a)}},function(e,a,i){"use strict";var t=i(24),n=i(93),r=i(22);e.exports=function(e){for(var a=t(this),i=r(a.length),o=arguments.length,c=n(o>1?arguments[1]:void 0,i),l=o>2?arguments[2]:void 0,u=void 0===l?i:n(l,i);u>c;)a[c++]=e;return a}},function(e,a,i){"use strict";var t=i(78),n=i(412),r=i(115),o=i(45);e.exports=i(254)(Array,"Array",function(e,a){this._t=o(e),this._i=0,this._k=a},function(){var e=this._t,a=this._k,i=this._i++;return!e||i>=e.length?(this._t=void 0,n(1)):"keys"==a?n(0,i):"values"==a?n(0,e[i]):n(0,[i,e[i]])},"values"),r.Arguments=r.Array,t("keys"),t("values"),t("entries")},function(e,a,i){var t,n,r,o=i(51),c=i(402),l=i(246),u=i(242),s=i(7),p=s.process,m=s.setImmediate,_=s.clearImmediate,g=s.MessageChannel,d=s.Dispatch,v=0,y={},f=function(){var e=+this;if(y.hasOwnProperty(e)){var a=y[e];delete y[e],a()}},h=function(e){f.call(e.data)};m&&_||(m=function(e){for(var a=[],i=1;arguments.length>i;)a.push(arguments[i++]);return y[++v]=function(){c("function"==typeof e?e:Function(e),a)},t(v),v},_=function(e){delete y[e]},"process"==i(52)(p)?t=function(e){p.nextTick(o(f,e,1))}:d&&d.now?t=function(e){d.now(o(f,e,1))}:g?(n=new g,r=n.port2,n.port1.onmessage=h,t=o(r.postMessage,r,1)):s.addEventListener&&"function"==typeof postMessage&&!s.importScripts?(t=function(e){s.postMessage(e+"","*")},s.addEventListener("message",h,!1)):t="onreadystatechange"in u("script")?function(e){l.appendChild(u("script")).onreadystatechange=function(){l.removeChild(this),f.call(e)}}:function(e){setTimeout(o(f,e,1),0)}),e.exports={set:m,clear:_}},function(e,a,i){var t=i(7),n=i(264).set,r=t.MutationObserver||t.WebKitMutationObserver,o=t.process,c=t.Promise,l="process"==i(52)(o);e.exports=function(){var e,a,i,u=function(){var t,n;for(l&&(t=o.domain)&&t.exit();e;){n=e.fn,e=e.next;try{n()}catch(t){throw e?i():a=void 0,t}}a=void 0,t&&t.enter()};if(l)i=function(){o.nextTick(u)};else if(r){var s=!0,p=document.createTextNode("");new r(u).observe(p,{characterData:!0}),i=function(){p.data=s=!s}}else if(c&&c.resolve){var m=c.resolve();i=function(){m.then(u)}}else i=function(){n.call(t,u)};return function(t){var n={fn:t,next:void 0};a&&(a.next=n),e||(e=n,i()),a=n}}},function(e,a,i){"use strict";function t(e){var a,i;this.promise=new e(function(e,t){if(void 0!==a||void 0!==i)throw TypeError("Bad Promise constructor");a=e,i=t}),this.resolve=n(a),this.reject=n(i)}var n=i(33);e.exports.f=function(e){return new t(e)}},function(e,a,i){"use strict";function t(e,a,i){var t,n,r,o=Array(i),c=8*i-a-1,l=(1<>1,s=23===a?G(2,-24)-G(2,-77):0,p=0,m=e<0||0===e&&1/e<0?1:0;for(e=B(e),e!=e||e===P?(n=e!=e?1:0,t=l):(t=H(U(e)/k),e*(r=G(2,-t))<1&&(t--,r*=2),e+=t+u>=1?s/r:s*G(2,1-u),e*r>=2&&(t++,r/=2),t+u>=l?(n=0,t=l):t+u>=1?(n=(e*r-1)*G(2,a),t+=u):(n=e*G(2,u-1)*G(2,a),t=0));a>=8;o[p++]=255&n,n/=256,a-=8);for(t=t<0;o[p++]=255&t,t/=256,c-=8);return o[--p]|=128*m,o}function n(e,a,i){var t,n=8*i-a-1,r=(1<>1,c=n-7,l=i-1,u=e[l--],s=127&u;for(u>>=7;c>0;s=256*s+e[l],l--,c-=8);for(t=s&(1<<-c)-1,s>>=-c,c+=a;c>0;t=256*t+e[l],l--,c-=8);if(0===s)s=1-o;else{if(s===r)return t?NaN:u?-P:P;t+=G(2,a),s-=o}return(u?-1:1)*t*G(2,s-a)}function r(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]}function o(e){return[255&e]}function c(e){return[255&e,e>>8&255]}function l(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function u(e){return t(e,52,8)}function s(e){return t(e,23,4)}function p(e,a,i){T(e[L],a,{get:function(){return this[i]}})}function m(e,a,i,t){var n=+i,r=O(n);if(r+a>e[W])throw M(R);var o=e[j]._b,c=r+e[Y],l=o.slice(c,c+a);return t?l:l.reverse()}function _(e,a,i,t,n,r){var o=+i,c=O(o);if(c+a>e[W])throw M(R);for(var l=e[j]._b,u=c+e[Y],s=t(+n),p=0;pX;)(V=K[X++])in w||f(w,V,F[V]);v||(z.constructor=w)}var Z=new D(new w(2)),q=D[L].setInt8;Z.setInt8(0,2147483648),Z.setInt8(1,2147483649),!Z.getInt8(0)&&Z.getInt8(1)||h(D[L],{setInt8:function(e,a){q.call(this,e,a<<24>>24)},setUint8:function(e,a){q.call(this,e,a<<24>>24)}},!0)}else w=function(e){N(this,w,"ArrayBuffer");var a=O(e);this._b=I.call(Array(a),0),this[W]=a},D=function(e,a,i){N(this,D,"DataView"),N(e,w,"DataView");var t=e[W],n=E(a);if(n<0||n>t)throw M("Wrong offset!");if(i=void 0===i?t-n:A(i),n+i>t)throw M("Wrong length!");this[j]=e,this[Y]=n,this[W]=i},d&&(p(w,"byteLength","_l"),p(D,"buffer","_b"),p(D,"byteLength","_l"),p(D,"byteOffset","_o")),h(D[L],{getInt8:function(e){return m(this,1,e)[0]<<24>>24},getUint8:function(e){return m(this,1,e)[0]},getInt16:function(e){var a=m(this,2,e,arguments[1]);return(a[1]<<8|a[0])<<16>>16},getUint16:function(e){var a=m(this,2,e,arguments[1]);return a[1]<<8|a[0]},getInt32:function(e){return r(m(this,4,e,arguments[1]))},getUint32:function(e){return r(m(this,4,e,arguments[1]))>>>0},getFloat32:function(e){return n(m(this,4,e,arguments[1]),23,4)},getFloat64:function(e){return n(m(this,8,e,arguments[1]),52,8)},setInt8:function(e,a){_(this,1,e,o,a)},setUint8:function(e,a){_(this,1,e,o,a)},setInt16:function(e,a){_(this,2,e,c,a,arguments[2])},setUint16:function(e,a){_(this,2,e,c,a,arguments[2])},setInt32:function(e,a){_(this,4,e,l,a,arguments[2])},setUint32:function(e,a){_(this,4,e,l,a,arguments[2])},setFloat32:function(e,a){_(this,4,e,s,a,arguments[2])},setFloat64:function(e,a){_(this,8,e,u,a,arguments[2])}});x(w,"ArrayBuffer"),x(D,"DataView"),f(D[L],y.VIEW,!0),a.ArrayBuffer=w,a.DataView=D},function(e,a,i){"use strict";function t(){if(c)for(var e in l){var a=l[e],i=c.indexOf(e);if(i>-1||o("96",e),!u.plugins[i]){a.extractEvents||o("97",e),u.plugins[i]=a;var t=a.eventTypes;for(var r in t)n(t[r],a,r)||o("98",r,e)}}}function n(e,a,i){u.eventNameDispatchConfigs.hasOwnProperty(i)&&o("99",i),u.eventNameDispatchConfigs[i]=e;var t=e.phasedRegistrationNames;if(t){for(var n in t)if(t.hasOwnProperty(n)){var c=t[n];r(c,a,i)}return!0}return!!e.registrationName&&(r(e.registrationName,a,i),!0)}function r(e,a,i){u.registrationNameModules[e]&&o("100",e),u.registrationNameModules[e]=a,u.registrationNameDependencies[e]=a.eventTypes[i].dependencies}var o=i(11),c=(i(4),null),l={},u={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:null,injectEventPluginOrder:function(e){c&&o("101"),c=Array.prototype.slice.call(e),t()},injectEventPluginsByName:function(e){var a=!1;for(var i in e)if(e.hasOwnProperty(i)){var n=e[i];l.hasOwnProperty(i)&&l[i]===n||(l[i]&&o("102",i),l[i]=n,a=!0)}a&&t()},getPluginModuleForEvent:function(e){var a=e.dispatchConfig;if(a.registrationName)return u.registrationNameModules[a.registrationName]||null;if(void 0!==a.phasedRegistrationNames){var i=a.phasedRegistrationNames;for(var t in i)if(i.hasOwnProperty(t)){var n=u.registrationNameModules[i[t]];if(n)return n}}return null},_resetEventPlugins:function(){c=null;for(var e in l)l.hasOwnProperty(e)&&delete l[e];u.plugins.length=0;var a=u.eventNameDispatchConfigs;for(var i in a)a.hasOwnProperty(i)&&delete a[i];var t=u.registrationNameModules;for(var n in t)t.hasOwnProperty(n)&&delete t[n]}};e.exports=u},function(e,a,i){"use strict";function t(e){return"topMouseUp"===e||"topTouchEnd"===e||"topTouchCancel"===e}function n(e){return"topMouseMove"===e||"topTouchMove"===e}function r(e){return"topMouseDown"===e||"topTouchStart"===e}function o(e,a,i,t){var n=e.type||"unknown-event";e.currentTarget=y.getNodeFromInstance(t),a?d.invokeGuardedCallbackWithCatch(n,i,e):d.invokeGuardedCallback(n,i,e),e.currentTarget=null}function c(e,a){var i=e._dispatchListeners,t=e._dispatchInstances;if(Array.isArray(i))for(var n=0;n=a.length?{value:void 0,done:!0}:(e=t(a,i),this._i+=e.length,{value:e,done:!1})})},function(e,a){var i=Math.ceil,t=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?t:i)(e)}},function(e,a){e.exports=!0},function(e,a,i){var t=i(126),n=i(1098),r=i(314),o=i(304)("IE_PROTO"),c=function(){},l=function(){var e,a=i(508)("iframe"),t=r.length;for(a.style.display="none",i(1102).appendChild(a),a.src="javascript:",e=a.contentWindow.document,e.open(),e.write(" + diff --git a/docs/styles-b83b71fc9f3a320f3b1a.css b/docs/styles-da278108f6437f93dd36.css similarity index 100% rename from docs/styles-b83b71fc9f3a320f3b1a.css rename to docs/styles-da278108f6437f93dd36.css diff --git a/docs/sw.js b/docs/sw.js index 835567dd..2d70bb01 100644 --- a/docs/sw.js +++ b/docs/sw.js @@ -1,3 +1,3 @@ -var __wpo = {"assets":{"main":["./bundle-b83b71fc9f3a320f3b1a.js","./styles-b83b71fc9f3a320f3b1a.css","./","./favicon.ico","./fonts/uber.svg","./fonts/uber.ttf","./fonts/uber.woff","./images/icon-chart.svg","./images/footer-pattern.gif","./images/icon-custom.svg","./images/icon-layers.svg","./images/icon-high-precision.svg","./images/icon-react.svg","./images/hero.jpg","./images/uber-logo.png","./images/logo.svg","./images/geospatial-app/geospatial-app.png","./images/mg_arc_2.png","./images/mg_arc_1.png","./images/mg_choropleth.png","./images/mg_hex_1.png","./images/mg_hex_2.png","./images/mg_hex_3d.png","./images/mg_hex_3.png","./images/mg_hex_4.png","./images/mg_hex_5.png","./images/mg_path.png","./images/mg_hex_6.png","./images/mg_scatterplot_1.png","./images/mg_scatterplot_2.png","./images/path.jpg"],"additional":[],"optional":[]},"externals":[],"hashesMap":{"6c0032108bf3eed5dd9b24f80488b1df9e275dff":"./bundle-b83b71fc9f3a320f3b1a.js","8e826a8c17248b0b5766d9d23040a66655f0c138":"./styles-b83b71fc9f3a320f3b1a.css","95fd4d3f4bf6427bc9b527ee50b901bc1e3a8a8c":"./","850c55a547d04df0d7f051ae68bac005623dd7ac":"./favicon.ico","aa4baf646147478c3d372e263c97c5d8ea3a1bee":"./fonts/uber.svg","479f36f5355c2324f289c38d151e7a9b7aac1802":"./fonts/uber.ttf","cc84ed8ac18d458e9c9238078ecc29fb27cd0509":"./fonts/uber.woff","f48baa4cd5685221cc3951e3060a52732d0d6ef6":"./images/icon-chart.svg","6b89a96ac28a08a4c940140333bfa1d569544e23":"./images/footer-pattern.gif","6701e0473372f042bf28d2ed7eefd93ee91b660e":"./images/icon-custom.svg","e0972c9bc9d52edef881cec0bc507b800f3d179c":"./images/icon-layers.svg","d816ffc6438fa9bfaa9595519454b498847efe28":"./images/icon-high-precision.svg","17b721d8b0031b6a6a68cfc1b2953c2276a85adb":"./images/icon-react.svg","518f4c4873723339df0ff3d72fc95aaeeb996db6":"./images/hero.jpg","70c24db8acfc50d19d73b2c78577c0ba2db7eb57":"./images/uber-logo.png","38ebae81637e793f6b69ce8dba2773ae90578efe":"./images/logo.svg","8ac3b7b81e712b5ae75833edf1f363e629bbda5d":"./images/mg_hex_6.png","eea5cc396a17fb80351aa8d5d4198bfae813a0b7":"./images/mg_arc_2.png","fc25c1d2ab58fbd9bbcb0d04ee79e734b37af75d":"./images/mg_arc_1.png","2dc96d4cc22316ac56091a7a1e8128b7d1a425e4":"./images/mg_choropleth.png","b2988bd5345811f06374a75edeaf437645f34b75":"./images/mg_hex_1.png","4d229d4f8938baf2108c56ddc75a015ed96ce5c9":"./images/mg_hex_2.png","547d8be12556b214ab6d0f5d3ddf8f719c7fed6b":"./images/mg_hex_3d.png","82bd4cd09df01e389f4502304eba46a004db1a4f":"./images/mg_hex_3.png","fca495b06c0f8729c8dd98a352010e11f81730e3":"./images/mg_hex_4.png","5fe88df241a1e396b7ec00b3974aff2d871adc20":"./images/mg_hex_5.png","6852e91cfe2260d557b8b5ef978eb3f06034fa00":"./images/mg_path.png","a07bb10995bf71a663d58da4e841bdea214dbde0":"./images/mg_scatterplot_1.png","a2b2f42eb44738eed510782a6e8760cba5fd2c3f":"./images/mg_scatterplot_2.png","13b2227787277a40e5051981640f2938919e1f6f":"./images/path.jpg"},"strategy":"changed","responseStrategy":"cache-first","version":"2017-9-27 13:49:44","name":"webpack-offline","pluginVersion":"4.8.3","relativePaths":true}; +var __wpo = {"assets":{"main":["./bundle-da278108f6437f93dd36.js","./styles-da278108f6437f93dd36.css","./","./fonts/uber.woff","./fonts/uber.svg","./fonts/uber.ttf","./images/footer-pattern.gif","./favicon.ico","./images/icon-chart.svg","./images/icon-high-precision.svg","./images/icon-layers.svg","./images/icon-custom.svg","./images/hero.jpg","./images/icon-react.svg","./images/uber-logo.png","./images/logo.svg","./images/mg_arc_2.png","./images/mg_choropleth.png","./images/mg_arc_1.png","./images/geospatial-app/geospatial-app.png","./images/mg_hex_1.png","./images/mg_hex_2.png","./images/mg_hex_3d.png","./images/mg_hex_3.png","./images/mg_hex_4.png","./images/mg_hex_5.png","./images/mg_hex_6.png","./images/mg_path.png","./images/mg_scatterplot_1.png","./images/path.jpg","./images/mg_scatterplot_2.png"],"additional":[],"optional":[]},"externals":[],"hashesMap":{"1a6f0386059b30098a7cbdb53bd722981a77954a":"./bundle-da278108f6437f93dd36.js","8e826a8c17248b0b5766d9d23040a66655f0c138":"./styles-da278108f6437f93dd36.css","2034710dad125b15db13010716368a3e9bca9f75":"./","cc84ed8ac18d458e9c9238078ecc29fb27cd0509":"./fonts/uber.woff","aa4baf646147478c3d372e263c97c5d8ea3a1bee":"./fonts/uber.svg","479f36f5355c2324f289c38d151e7a9b7aac1802":"./fonts/uber.ttf","6b89a96ac28a08a4c940140333bfa1d569544e23":"./images/footer-pattern.gif","850c55a547d04df0d7f051ae68bac005623dd7ac":"./favicon.ico","f48baa4cd5685221cc3951e3060a52732d0d6ef6":"./images/icon-chart.svg","d816ffc6438fa9bfaa9595519454b498847efe28":"./images/icon-high-precision.svg","e0972c9bc9d52edef881cec0bc507b800f3d179c":"./images/icon-layers.svg","6701e0473372f042bf28d2ed7eefd93ee91b660e":"./images/icon-custom.svg","518f4c4873723339df0ff3d72fc95aaeeb996db6":"./images/hero.jpg","17b721d8b0031b6a6a68cfc1b2953c2276a85adb":"./images/icon-react.svg","70c24db8acfc50d19d73b2c78577c0ba2db7eb57":"./images/uber-logo.png","38ebae81637e793f6b69ce8dba2773ae90578efe":"./images/logo.svg","eea5cc396a17fb80351aa8d5d4198bfae813a0b7":"./images/mg_arc_2.png","2dc96d4cc22316ac56091a7a1e8128b7d1a425e4":"./images/mg_choropleth.png","fc25c1d2ab58fbd9bbcb0d04ee79e734b37af75d":"./images/mg_arc_1.png","8ac3b7b81e712b5ae75833edf1f363e629bbda5d":"./images/mg_hex_6.png","b2988bd5345811f06374a75edeaf437645f34b75":"./images/mg_hex_1.png","4d229d4f8938baf2108c56ddc75a015ed96ce5c9":"./images/mg_hex_2.png","547d8be12556b214ab6d0f5d3ddf8f719c7fed6b":"./images/mg_hex_3d.png","82bd4cd09df01e389f4502304eba46a004db1a4f":"./images/mg_hex_3.png","fca495b06c0f8729c8dd98a352010e11f81730e3":"./images/mg_hex_4.png","5fe88df241a1e396b7ec00b3974aff2d871adc20":"./images/mg_hex_5.png","6852e91cfe2260d557b8b5ef978eb3f06034fa00":"./images/mg_path.png","a07bb10995bf71a663d58da4e841bdea214dbde0":"./images/mg_scatterplot_1.png","13b2227787277a40e5051981640f2938919e1f6f":"./images/path.jpg","a2b2f42eb44738eed510782a6e8760cba5fd2c3f":"./images/mg_scatterplot_2.png"},"strategy":"changed","responseStrategy":"cache-first","version":"2017-9-27 15:41:27","name":"webpack-offline","pluginVersion":"4.8.3","relativePaths":true}; !function(e){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}var t={};n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get: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,n){return Object.prototype.hasOwnProperty.call(e,n)},n.p="",n(n.s=0)}([function(e,n,t){"use strict";function r(e,n){return caches.match(e,{cacheName:n}).then(function(t){return a()?t:c(t).then(function(t){return caches.open(n).then(function(n){return n.put(e,t)}).then(function(){return t})})}).catch(function(){})}function o(e,n){return e+(-1!==e.indexOf("?")?"&":"?")+"__uncache="+encodeURIComponent(n)}function i(e){return"navigate"===e.mode||e.headers.get("Upgrade-Insecure-Requests")||-1!==(e.headers.get("Accept")||"").indexOf("text/html")}function a(e){return!e||!e.redirected||!e.ok||"opaqueredirect"===e.type}function c(e){return a(e)?Promise.resolve(e):("body"in e?Promise.resolve(e.body):e.blob()).then(function(n){return new Response(n,{headers:e.headers,status:e.status})})}function s(e){return Object.keys(e).reduce(function(n,t){return n[t]=e[t],n},{})}function u(e,n){console.groupCollapsed("[SW]:",e),n.forEach(function(e){console.log("Asset:",e)}),console.groupEnd()}if(function(){var e=ExtendableEvent.prototype.waitUntil,n=FetchEvent.prototype.respondWith,t=new WeakMap;ExtendableEvent.prototype.waitUntil=function(n){var r=this,o=t.get(r);return o?void o.push(Promise.resolve(n)):(o=[Promise.resolve(n)],t.set(r,o),e.call(r,Promise.resolve().then(function e(){var n=o.length;return Promise.all(o.map(function(e){return e.catch(function(){})})).then(function(){return o.length!=n?e():(t.delete(r),Promise.all(o))})})))},FetchEvent.prototype.respondWith=function(e){return this.waitUntil(e),n.call(this,e)}}(),void 0===f)var f=!1;!function(e,n){function t(){if(!R.additional.length)return Promise.resolve();f&&console.log("[SW]:","Caching additional");var e=void 0;return e="changed"===b?l("additional"):a("additional"),e.catch(function(e){console.error("[SW]:","Cache section `additional` failed to load")})}function a(n){var t=R[n];return caches.open(E).then(function(n){return w(n,t,{bust:e.version,request:e.prefetchRequest})}).then(function(){u("Cached assets: "+n,t)}).catch(function(e){throw console.error(e),e})}function l(n){return d().then(function(t){if(!t)return a(n);var r=t[0],o=t[1],i=t[2],c=i.hashmap,s=i.version;if(!i.hashmap||s===e.version)return a(n);var f=Object.keys(c).map(function(e){return c[e]}),l=o.map(function(e){var n=new URL(e.url);return n.search="",n.hash="",n.toString()}),h=R[n],d=[],p=h.filter(function(e){return-1===l.indexOf(e)||-1===f.indexOf(e)});Object.keys(W).forEach(function(e){var n=W[e];if(-1!==h.indexOf(n)&&-1===p.indexOf(n)&&-1===d.indexOf(n)){var t=c[e];t&&-1!==l.indexOf(t)?d.push([t,n]):p.push(n)}}),u("Changed assets: "+n,p),u("Moved assets: "+n,d);var v=Promise.all(d.map(function(e){return r.match(e[0]).then(function(n){return[e[1],n]})}));return caches.open(E).then(function(n){var t=v.then(function(e){return Promise.all(e.map(function(e){return n.put(e[0],e[1])}))});return Promise.all([t,w(n,p,{bust:e.version,request:e.prefetchRequest})])})})}function h(){return caches.keys().then(function(e){var n=e.map(function(e){if(0===e.indexOf(P)&&0!==e.indexOf(E))return console.log("[SW]:","Delete cache:",e),caches.delete(e)});return Promise.all(n)})}function d(){return caches.keys().then(function(e){for(var n=e.length,t=void 0;n--&&(t=e[n],0!==t.indexOf(P)););if(t){var r=void 0;return caches.open(t).then(function(e){return r=e,e.match(new URL(j,location).toString())}).then(function(e){if(e)return Promise.all([r,r.keys(),e.json()])})}})}function p(){return caches.open(E).then(function(n){var t=new Response(JSON.stringify({version:e.version,hashmap:W}));return n.put(new URL(j,location).toString(),t)})}function v(e,n,t){return r(t,E).then(function(r){return r?(f&&console.log("[SW]:","URL ["+t+"]("+n+") from cache"),r):fetch(e.request).then(function(r){return r.ok?(f&&console.log("[SW]:","URL ["+n+"] from network"),t===n&&function(){var t=r.clone(),o=caches.open(E).then(function(e){return e.put(n,t)}).then(function(){console.log("[SW]:","Cache asset: "+n)});e.waitUntil(o)}(),r):(f&&console.log("[SW]:","URL ["+n+"] wrong response: ["+r.status+"] "+r.type),r)})})}function g(e,n,t){return fetch(e.request).then(function(e){if(e.ok)return f&&console.log("[SW]:","URL ["+n+"] from network"),e;throw new Error("Response is not ok")}).catch(function(){return f&&console.log("[SW]:","URL ["+n+"] from cache if possible"),r(t,E)})}function m(e){return e.catch(function(){}).then(function(e){var n=e&&e.ok,t=e&&"opaqueredirect"===e.type;return n||t&&!F?e:(f&&console.log("[SW]:","Loading navigation fallback ["+C+"] from cache"),r(C,E))})}function w(e,n,t){var r=!1!==t.allowLoaders,i=t&&t.bust,a=t.request||{credentials:"omit",mode:"cors"};return Promise.all(n.map(function(e){return i&&(e=o(e,i)),fetch(e,a).then(c)})).then(function(o){if(o.some(function(e){return!e.ok}))return Promise.reject(new Error("Wrong response status"));var i=[],a=o.map(function(t,o){return r&&i.push(y(n[o],t)),e.put(n[o],t)});return i.length?function(){var r=s(t);r.allowLoaders=!1;var o=a;a=Promise.all(i).then(function(t){var i=[].concat.apply([],t);return n.length&&(o=o.concat(w(e,i,r))),Promise.all(o)})}():a=Promise.all(a),a})}function y(e,n){var t=Object.keys(U).map(function(t){if(-1!==U[t].indexOf(e)&&O[t])return O[t](n.clone())}).filter(function(e){return!!e});return Promise.all(t).then(function(e){return[].concat.apply([],e)})}function x(e){var n=e.url,t=new URL(n),r=void 0;r="navigate"===e.mode?"navigate":t.origin===location.origin?"same-origin":"cross-origin";for(var o=0;o