earthsdk3-cesium 3.0.7-beta.23 → 3.0.7-beta.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3343,7 +3343,7 @@ void main() {\r
3343
3343
  v_data0 = vec2(tex.x, tex.y);\r
3344
3344
  v_data1 = vec3(gamma_scale, size, 1.0);\r
3345
3345
  }\r
3346
- `},9037:function(o,i,a){o.exports=function(){return a(9855)('/*! For license information please see d179b5c18890f1583797.worker.js.LICENSE.txt */\n!function(){var t={1795:function(t,e,n){var r=n(5752);function i(t){var e=0;if(t&&t.length>0){e+=Math.abs(o(t[0]));for(var n=1;n<t.length;n++)e-=Math.abs(o(t[n]))}return e}function o(t){var e,n,i,o,s,u,l=0,c=t.length;if(c>2){for(u=0;u<c;u++)u===c-2?(i=c-2,o=c-1,s=0):u===c-1?(i=c-1,o=0,s=1):(i=u,o=u+1,s=u+2),e=t[i],n=t[o],l+=(a(t[s][0])-a(e[0]))*Math.sin(a(n[1]));l=l*r.RADIUS*r.RADIUS/2}return l}function a(t){return t*Math.PI/180}t.exports.geometry=function t(e){var n,r=0;switch(e.type){case"Polygon":return i(e.coordinates);case"MultiPolygon":for(n=0;n<e.coordinates.length;n++)r+=i(e.coordinates[n]);return r;case"Point":case"MultiPoint":case"LineString":case"MultiLineString":return 0;case"GeometryCollection":for(n=0;n<e.geometries.length;n++)r+=t(e.geometries[n]);return r}},t.exports.ring=o},5550:function(t){"use strict";function e(t,e){this.x=t,this.y=e}t.exports=e,e.prototype={clone:function(){return new e(this.x,this.y)},add:function(t){return this.clone()._add(t)},sub:function(t){return this.clone()._sub(t)},multByPoint:function(t){return this.clone()._multByPoint(t)},divByPoint:function(t){return this.clone()._divByPoint(t)},mult:function(t){return this.clone()._mult(t)},div:function(t){return this.clone()._div(t)},rotate:function(t){return this.clone()._rotate(t)},rotateAround:function(t,e){return this.clone()._rotateAround(t,e)},matMult:function(t){return this.clone()._matMult(t)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(t){return this.x===t.x&&this.y===t.y},dist:function(t){return Math.sqrt(this.distSqr(t))},distSqr:function(t){var e=t.x-this.x,n=t.y-this.y;return e*e+n*n},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(t){return Math.atan2(this.y-t.y,this.x-t.x)},angleWith:function(t){return this.angleWithSep(t.x,t.y)},angleWithSep:function(t,e){return Math.atan2(this.x*e-this.y*t,this.x*t+this.y*e)},_matMult:function(t){var e=t[0]*this.x+t[1]*this.y,n=t[2]*this.x+t[3]*this.y;return this.x=e,this.y=n,this},_add:function(t){return this.x+=t.x,this.y+=t.y,this},_sub:function(t){return this.x-=t.x,this.y-=t.y,this},_mult:function(t){return this.x*=t,this.y*=t,this},_div:function(t){return this.x/=t,this.y/=t,this},_multByPoint:function(t){return this.x*=t.x,this.y*=t.y,this},_divByPoint:function(t){return this.x/=t.x,this.y/=t.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var t=this.y;return this.y=this.x,this.x=-t,this},_rotate:function(t){var e=Math.cos(t),n=Math.sin(t),r=e*this.x-n*this.y,i=n*this.x+e*this.y;return this.x=r,this.y=i,this},_rotateAround:function(t,e){var n=Math.cos(t),r=Math.sin(t),i=e.x+n*(this.x-e.x)-r*(this.y-e.y),o=e.y+r*(this.x-e.x)+n*(this.y-e.y);return this.x=i,this.y=o,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},e.convert=function(t){return t instanceof e?t:Array.isArray(t)?new e(t[0],t[1]):t}},3775:function(t){t.exports=function(){function t(t,e,n){n=n||{},this.w=t||64,this.h=e||64,this.autoResize=!!n.autoResize,this.shelves=[],this.freebins=[],this.stats={},this.bins={},this.maxId=0}function e(t,e,n){this.x=0,this.y=t,this.w=this.free=e,this.h=n}function n(t,e,n,r,i,o,a){this.id=t,this.x=e,this.y=n,this.w=r,this.h=i,this.maxw=o||r,this.maxh=a||i,this.refcount=0}return t.prototype.pack=function(t,e){t=[].concat(t),e=e||{};for(var n,r,i,o,a=[],s=0;s<t.length;s++)if(n=t[s].w||t[s].width,r=t[s].h||t[s].height,i=t[s].id,n&&r){if(!(o=this.packOne(n,r,i)))continue;e.inPlace&&(t[s].x=o.x,t[s].y=o.y,t[s].id=o.id),a.push(o)}return this.shrink(),a},t.prototype.packOne=function(t,n,r){var i,o,a,s,u,l,c,f,p={freebin:-1,shelf:-1,waste:1/0},h=0;if("string"==typeof r||"number"==typeof r){if(i=this.getBin(r))return this.ref(i),i;"number"==typeof r&&(this.maxId=Math.max(r,this.maxId))}else r=++this.maxId;for(s=0;s<this.freebins.length;s++){if(n===(i=this.freebins[s]).maxh&&t===i.maxw)return this.allocFreebin(s,t,n,r);n>i.maxh||t>i.maxw||n<=i.maxh&&t<=i.maxw&&(a=i.maxw*i.maxh-t*n)<p.waste&&(p.waste=a,p.freebin=s)}for(s=0;s<this.shelves.length;s++)if(h+=(o=this.shelves[s]).h,!(t>o.free)){if(n===o.h)return this.allocShelf(s,t,n,r);n>o.h||n<o.h&&(a=(o.h-n)*t)<p.waste&&(p.freebin=-1,p.waste=a,p.shelf=s)}return-1!==p.freebin?this.allocFreebin(p.freebin,t,n,r):-1!==p.shelf?this.allocShelf(p.shelf,t,n,r):n<=this.h-h&&t<=this.w?(o=new e(h,this.w,n),this.allocShelf(this.shelves.push(o)-1,t,n,r)):this.autoResize?(u=l=this.h,((c=f=this.w)<=u||t>c)&&(f=2*Math.max(t,c)),(u<c||n>u)&&(l=2*Math.max(n,u)),this.resize(f,l),this.packOne(t,n,r)):null},t.prototype.allocFreebin=function(t,e,n,r){var i=this.freebins.splice(t,1)[0];return i.id=r,i.w=e,i.h=n,i.refcount=0,this.bins[r]=i,this.ref(i),i},t.prototype.allocShelf=function(t,e,n,r){var i=this.shelves[t].alloc(e,n,r);return this.bins[r]=i,this.ref(i),i},t.prototype.shrink=function(){if(this.shelves.length>0){for(var t=0,e=0,n=0;n<this.shelves.length;n++){var r=this.shelves[n];e+=r.h,t=Math.max(r.w-r.free,t)}this.resize(t,e)}},t.prototype.getBin=function(t){return this.bins[t]},t.prototype.ref=function(t){if(1==++t.refcount){var e=t.h;this.stats[e]=1+(0|this.stats[e])}return t.refcount},t.prototype.unref=function(t){return 0===t.refcount?0:(0==--t.refcount&&(this.stats[t.h]--,delete this.bins[t.id],this.freebins.push(t)),t.refcount)},t.prototype.clear=function(){this.shelves=[],this.freebins=[],this.stats={},this.bins={},this.maxId=0},t.prototype.resize=function(t,e){this.w=t,this.h=e;for(var n=0;n<this.shelves.length;n++)this.shelves[n].resize(t);return!0},e.prototype.alloc=function(t,e,r){if(t>this.free||e>this.h)return null;var i=this.x;return this.x+=t,this.free-=t,new n(r,i,this.y,t,e,t,this.h)},e.prototype.resize=function(t){return this.free+=t-this.w,this.w=t,!0},t}()},9874:function(t){function e(t,e,n,r){this.cx=3*t,this.bx=3*(n-t)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*e,this.by=3*(r-e)-this.cy,this.ay=1-this.cy-this.by,this.p1x=t,this.p1y=r,this.p2x=n,this.p2y=r}t.exports=e,e.prototype.sampleCurveX=function(t){return((this.ax*t+this.bx)*t+this.cx)*t},e.prototype.sampleCurveY=function(t){return((this.ay*t+this.by)*t+this.cy)*t},e.prototype.sampleCurveDerivativeX=function(t){return(3*this.ax*t+2*this.bx)*t+this.cx},e.prototype.solveCurveX=function(t,e){var n,r,i,o,a;for(void 0===e&&(e=1e-6),i=t,a=0;a<8;a++){if(o=this.sampleCurveX(i)-t,Math.abs(o)<e)return i;var s=this.sampleCurveDerivativeX(i);if(Math.abs(s)<1e-6)break;i-=o/s}if((i=t)<(n=0))return n;if(i>(r=1))return r;for(;n<r;){if(o=this.sampleCurveX(i),Math.abs(o-t)<e)return i;t>o?n=i:r=i,i=.5*(r-n)+n}return i},e.prototype.solve=function(t,e){return this.sampleCurveY(this.solveCurveX(t,e))}},8929:function(t,e,n){t.exports.VectorTile=n(4054),t.exports.VectorTileFeature=n(6024),t.exports.VectorTileLayer=n(9701)},4054:function(t,e,n){"use strict";var r=n(9701);function i(t,e,n){if(3===t){var i=new r(n,n.readVarint()+n.pos);i.length&&(e[i.name]=i)}}t.exports=function(t,e){this.layers=t.readFields(i,{},e)}},6024:function(t,e,n){"use strict";var r=n(5550);function i(t,e,n,r,i){this.properties={},this.extent=n,this.type=0,this._pbf=t,this._geometry=-1,this._keys=r,this._values=i,t.readFields(o,this,e)}function o(t,e,n){1==t?e.id=n.readVarint():2==t?function(t,e){for(var n=t.readVarint()+t.pos;t.pos<n;){var r=e._keys[t.readVarint()],i=e._values[t.readVarint()];e.properties[r]=i}}(n,e):3==t?e.type=n.readVarint():4==t&&(e._geometry=n.pos)}function a(t){for(var e,n,r=0,i=0,o=t.length,a=o-1;i<o;a=i++)e=t[i],r+=((n=t[a]).x-e.x)*(e.y+n.y);return r}t.exports=i,i.types=["Unknown","Point","LineString","Polygon"],i.prototype.loadGeometry=function(){var t=this._pbf;t.pos=this._geometry;for(var e,n=t.readVarint()+t.pos,i=1,o=0,a=0,s=0,u=[];t.pos<n;){if(o<=0){var l=t.readVarint();i=7&l,o=l>>3}if(o--,1===i||2===i)a+=t.readSVarint(),s+=t.readSVarint(),1===i&&(e&&u.push(e),e=[]),e.push(new r(a,s));else{if(7!==i)throw new Error("unknown command "+i);e&&e.push(e[0].clone())}}return e&&u.push(e),u},i.prototype.bbox=function(){var t=this._pbf;t.pos=this._geometry;for(var e=t.readVarint()+t.pos,n=1,r=0,i=0,o=0,a=1/0,s=-1/0,u=1/0,l=-1/0;t.pos<e;){if(r<=0){var c=t.readVarint();n=7&c,r=c>>3}if(r--,1===n||2===n)(i+=t.readSVarint())<a&&(a=i),i>s&&(s=i),(o+=t.readSVarint())<u&&(u=o),o>l&&(l=o);else if(7!==n)throw new Error("unknown command "+n)}return[a,u,s,l]},i.prototype.toGeoJSON=function(t,e,n){var r,o,s=this.extent*Math.pow(2,n),u=this.extent*t,l=this.extent*e,c=this.loadGeometry(),f=i.types[this.type];function p(t){for(var e=0;e<t.length;e++){var n=t[e],r=180-360*(n.y+l)/s;t[e]=[360*(n.x+u)/s-180,360/Math.PI*Math.atan(Math.exp(r*Math.PI/180))-90]}}switch(this.type){case 1:var h=[];for(r=0;r<c.length;r++)h[r]=c[r][0];p(c=h);break;case 2:for(r=0;r<c.length;r++)p(c[r]);break;case 3:for(c=function(t){var e=t.length;if(e<=1)return[t];for(var n,r,i=[],o=0;o<e;o++){var s=a(t[o]);0!==s&&(void 0===r&&(r=s<0),r===s<0?(n&&i.push(n),n=[t[o]]):n.push(t[o]))}return n&&i.push(n),i}(c),r=0;r<c.length;r++)for(o=0;o<c[r].length;o++)p(c[r][o])}1===c.length?c=c[0]:f="Multi"+f;var y={type:"Feature",geometry:{type:f,coordinates:c},properties:this.properties};return"id"in this&&(y.id=this.id),y}},9701:function(t,e,n){"use strict";var r=n(6024);function i(t,e){this.version=1,this.name=null,this.extent=4096,this.length=0,this._pbf=t,this._keys=[],this._values=[],this._features=[],t.readFields(o,this,e),this.length=this._features.length}function o(t,e,n){15===t?e.version=n.readVarint():1===t?e.name=n.readString():5===t?e.extent=n.readVarint():2===t?e._features.push(n.pos):3===t?e._keys.push(n.readString()):4===t&&e._values.push(function(t){for(var e=null,n=t.readVarint()+t.pos;t.pos<n;){var r=t.readVarint()>>3;e=1===r?t.readString():2===r?t.readFloat():3===r?t.readDouble():4===r?t.readVarint64():5===r?t.readVarint():6===r?t.readSVarint():7===r?t.readBoolean():null}return e}(n))}t.exports=i,i.prototype.feature=function(t){if(t<0||t>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[t];var e=this._pbf.readVarint()+this._pbf.pos;return new r(this._pbf,e,this.extent,this._keys,this._values)}},8583:function(t,e,n){"use strict";var r=n(7418);function i(t,e){if(t===e)return 0;for(var n=t.length,r=e.length,i=0,o=Math.min(n,r);i<o;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?1:0}function o(t){return n.g.Buffer&&"function"==typeof n.g.Buffer.isBuffer?n.g.Buffer.isBuffer(t):!(null==t||!t._isBuffer)}var a=n(69),s=Object.prototype.hasOwnProperty,u=Array.prototype.slice,l="foo"===function(){}.name;function c(t){return Object.prototype.toString.call(t)}function f(t){return!o(t)&&"function"==typeof n.g.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):!!t&&(t instanceof DataView||!!(t.buffer&&t.buffer instanceof ArrayBuffer)))}var p=t.exports=g,h=/\\s*function\\s+([^\\(\\s]*)\\s*/;function y(t){if(a.isFunction(t)){if(l)return t.name;var e=t.toString().match(h);return e&&e[1]}}function d(t,e){return"string"==typeof t?t.length<e?t:t.slice(0,e):t}function v(t){if(l||!a.isFunction(t))return a.inspect(t);var e=y(t);return"[Function"+(e?": "+e:"")+"]"}function m(t,e,n,r,i){throw new p.AssertionError({message:n,actual:t,expected:e,operator:r,stackStartFunction:i})}function g(t,e){t||m(t,!0,e,"==",p.ok)}function b(t,e,n,r){if(t===e)return!0;if(o(t)&&o(e))return 0===i(t,e);if(a.isDate(t)&&a.isDate(e))return t.getTime()===e.getTime();if(a.isRegExp(t)&&a.isRegExp(e))return t.source===e.source&&t.global===e.global&&t.multiline===e.multiline&&t.lastIndex===e.lastIndex&&t.ignoreCase===e.ignoreCase;if(null!==t&&"object"==typeof t||null!==e&&"object"==typeof e){if(f(t)&&f(e)&&c(t)===c(e)&&!(t instanceof Float32Array||t instanceof Float64Array))return 0===i(new Uint8Array(t.buffer),new Uint8Array(e.buffer));if(o(t)!==o(e))return!1;var s=(r=r||{actual:[],expected:[]}).actual.indexOf(t);return-1!==s&&s===r.expected.indexOf(e)||(r.actual.push(t),r.expected.push(e),function(t,e,n,r){if(null==t||null==e)return!1;if(a.isPrimitive(t)||a.isPrimitive(e))return t===e;if(n&&Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1;var i=x(t),o=x(e);if(i&&!o||!i&&o)return!1;if(i)return b(t=u.call(t),e=u.call(e),n);var s,l,c=S(t),f=S(e);if(c.length!==f.length)return!1;for(c.sort(),f.sort(),l=c.length-1;l>=0;l--)if(c[l]!==f[l])return!1;for(l=c.length-1;l>=0;l--)if(!b(t[s=c[l]],e[s],n,r))return!1;return!0}(t,e,n,r))}return n?t===e:t==e}function x(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function w(t,e){if(!t||!e)return!1;if("[object RegExp]"==Object.prototype.toString.call(e))return e.test(t);try{if(t instanceof e)return!0}catch(t){}return!Error.isPrototypeOf(e)&&!0===e.call({},t)}function k(t,e,n,r){var i;if("function"!=typeof e)throw new TypeError(\'"block" argument must be a function\');"string"==typeof n&&(r=n,n=null),i=function(t){var e;try{t()}catch(t){e=t}return e}(e),r=(n&&n.name?" ("+n.name+").":".")+(r?" "+r:"."),t&&!i&&m(i,n,"Missing expected exception"+r);var o="string"==typeof r,s=!t&&i&&!n;if((!t&&a.isError(i)&&o&&w(i,n)||s)&&m(i,n,"Got unwanted exception"+r),t&&i&&n&&!w(i,n)||!t&&i)throw i}p.AssertionError=function(t){this.name="AssertionError",this.actual=t.actual,this.expected=t.expected,this.operator=t.operator,t.message?(this.message=t.message,this.generatedMessage=!1):(this.message=function(t){return d(v(t.actual),128)+" "+t.operator+" "+d(v(t.expected),128)}(this),this.generatedMessage=!0);var e=t.stackStartFunction||m;if(Error.captureStackTrace)Error.captureStackTrace(this,e);else{var n=new Error;if(n.stack){var r=n.stack,i=y(e),o=r.indexOf("\\n"+i);if(o>=0){var a=r.indexOf("\\n",o+1);r=r.substring(a+1)}this.stack=r}}},a.inherits(p.AssertionError,Error),p.fail=m,p.ok=g,p.equal=function(t,e,n){t!=e&&m(t,e,n,"==",p.equal)},p.notEqual=function(t,e,n){t==e&&m(t,e,n,"!=",p.notEqual)},p.deepEqual=function(t,e,n){b(t,e,!1)||m(t,e,n,"deepEqual",p.deepEqual)},p.deepStrictEqual=function(t,e,n){b(t,e,!0)||m(t,e,n,"deepStrictEqual",p.deepStrictEqual)},p.notDeepEqual=function(t,e,n){b(t,e,!1)&&m(t,e,n,"notDeepEqual",p.notDeepEqual)},p.notDeepStrictEqual=function t(e,n,r){b(e,n,!0)&&m(e,n,r,"notDeepStrictEqual",t)},p.strictEqual=function(t,e,n){t!==e&&m(t,e,n,"===",p.strictEqual)},p.notStrictEqual=function(t,e,n){t===e&&m(t,e,n,"!==",p.notStrictEqual)},p.throws=function(t,e,n){k(!0,t,e,n)},p.doesNotThrow=function(t,e,n){k(!1,t,e,n)},p.ifError=function(t){if(t)throw t},p.strict=r((function t(e,n){e||m(e,!0,n,"==",t)}),p,{equal:p.strictEqual,deepEqual:p.deepStrictEqual,notEqual:p.notStrictEqual,notDeepEqual:p.notDeepStrictEqual}),p.strict.strict=p.strict;var S=Object.keys||function(t){var e=[];for(var n in t)s.call(t,n)&&e.push(n);return e}},6076:function(t){"function"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},2014:function(t){t.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},69:function(t,e,n){var r=/%[sdj%]/g;e.format=function(t){if(!v(t)){for(var e=[],n=0;n<arguments.length;n++)e.push(a(arguments[n]));return e.join(" ")}n=1;for(var i=arguments,o=i.length,s=String(t).replace(r,(function(t){if("%%"===t)return"%";if(n>=o)return t;switch(t){case"%s":return String(i[n++]);case"%d":return Number(i[n++]);case"%j":try{return JSON.stringify(i[n++])}catch(t){return"[Circular]"}default:return t}})),u=i[n];n<o;u=i[++n])y(u)||!b(u)?s+=" "+u:s+=" "+a(u);return s},e.deprecate=function(t,r){if(m(n.g.process))return function(){return e.deprecate(t,r).apply(this,arguments)};if(!0===process.noDeprecation)return t;var i=!1;return function(){if(!i){if(process.throwDeprecation)throw new Error(r);process.traceDeprecation?console.trace(r):console.error(r),i=!0}return t.apply(this,arguments)}};var i,o={};function a(t,n){var r={seen:[],stylize:u};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),h(n)?r.showHidden=n:n&&e._extend(r,n),m(r.showHidden)&&(r.showHidden=!1),m(r.depth)&&(r.depth=2),m(r.colors)&&(r.colors=!1),m(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=s),l(r,t,r.depth)}function s(t,e){var n=a.styles[e];return n?"\x1B["+a.colors[n][0]+"m"+t+"\x1B["+a.colors[n][1]+"m":t}function u(t,e){return t}function l(t,n,r){if(t.customInspect&&n&&k(n.inspect)&&n.inspect!==e.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,t);return v(i)||(i=l(t,i,r)),i}var o=function(t,e){if(m(e))return t.stylize("undefined","undefined");if(v(e)){var n="\'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/\'/g,"\\\\\'").replace(/\\\\"/g,\'"\')+"\'";return t.stylize(n,"string")}return d(e)?t.stylize(""+e,"number"):h(e)?t.stylize(""+e,"boolean"):y(e)?t.stylize("null","null"):void 0}(t,n);if(o)return o;var a=Object.keys(n),s=function(t){var e={};return t.forEach((function(t,n){e[t]=!0})),e}(a);if(t.showHidden&&(a=Object.getOwnPropertyNames(n)),w(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return c(n);if(0===a.length){if(k(n)){var u=n.name?": "+n.name:"";return t.stylize("[Function"+u+"]","special")}if(g(n))return t.stylize(RegExp.prototype.toString.call(n),"regexp");if(x(n))return t.stylize(Date.prototype.toString.call(n),"date");if(w(n))return c(n)}var b,S="",_=!1,A=["{","}"];return p(n)&&(_=!0,A=["[","]"]),k(n)&&(S=" [Function"+(n.name?": "+n.name:"")+"]"),g(n)&&(S=" "+RegExp.prototype.toString.call(n)),x(n)&&(S=" "+Date.prototype.toUTCString.call(n)),w(n)&&(S=" "+c(n)),0!==a.length||_&&0!=n.length?r<0?g(n)?t.stylize(RegExp.prototype.toString.call(n),"regexp"):t.stylize("[Object]","special"):(t.seen.push(n),b=_?function(t,e,n,r,i){for(var o=[],a=0,s=e.length;a<s;++a)O(e,String(a))?o.push(f(t,e,n,r,String(a),!0)):o.push("");return i.forEach((function(i){i.match(/^\\d+$/)||o.push(f(t,e,n,r,i,!0))})),o}(t,n,r,s,a):a.map((function(e){return f(t,n,r,s,e,_)})),t.seen.pop(),function(t,e,n){return t.reduce((function(t,e){return e.indexOf("\\n"),t+e.replace(/\\u001b\\[\\d\\d?m/g,"").length+1}),0)>60?n[0]+(""===e?"":e+"\\n ")+" "+t.join(",\\n ")+" "+n[1]:n[0]+e+" "+t.join(", ")+" "+n[1]}(b,S,A)):A[0]+S+A[1]}function c(t){return"["+Error.prototype.toString.call(t)+"]"}function f(t,e,n,r,i,o){var a,s,u;if((u=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?s=u.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):u.set&&(s=t.stylize("[Setter]","special")),O(r,i)||(a="["+i+"]"),s||(t.seen.indexOf(u.value)<0?(s=y(n)?l(t,u.value,null):l(t,u.value,n-1)).indexOf("\\n")>-1&&(s=o?s.split("\\n").map((function(t){return" "+t})).join("\\n").substr(2):"\\n"+s.split("\\n").map((function(t){return" "+t})).join("\\n")):s=t.stylize("[Circular]","special")),m(a)){if(o&&i.match(/^\\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=t.stylize(a,"name")):(a=a.replace(/\'/g,"\\\\\'").replace(/\\\\"/g,\'"\').replace(/(^"|"$)/g,"\'"),a=t.stylize(a,"string"))}return a+": "+s}function p(t){return Array.isArray(t)}function h(t){return"boolean"==typeof t}function y(t){return null===t}function d(t){return"number"==typeof t}function v(t){return"string"==typeof t}function m(t){return void 0===t}function g(t){return b(t)&&"[object RegExp]"===S(t)}function b(t){return"object"==typeof t&&null!==t}function x(t){return b(t)&&"[object Date]"===S(t)}function w(t){return b(t)&&("[object Error]"===S(t)||t instanceof Error)}function k(t){return"function"==typeof t}function S(t){return Object.prototype.toString.call(t)}function _(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(t){if(m(i)&&(i=process.env.NODE_DEBUG||""),t=t.toUpperCase(),!o[t])if(new RegExp("\\\\b"+t+"\\\\b","i").test(i)){var n=process.pid;o[t]=function(){var r=e.format.apply(e,arguments);console.error("%s %d: %s",t,n,r)}}else o[t]=function(){};return o[t]},e.inspect=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.isArray=p,e.isBoolean=h,e.isNull=y,e.isNullOrUndefined=function(t){return null==t},e.isNumber=d,e.isString=v,e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=m,e.isRegExp=g,e.isObject=b,e.isDate=x,e.isError=w,e.isFunction=k,e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=n(2014);var A=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function j(){var t=new Date,e=[_(t.getHours()),_(t.getMinutes()),_(t.getSeconds())].join(":");return[t.getDate(),A[t.getMonth()],e].join(" ")}function O(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){console.log("%s - %s",j(),e.format.apply(e,arguments))},e.inherits=n(6076),e._extend=function(t,e){if(!e||!b(e))return t;for(var n=Object.keys(e),r=n.length;r--;)t[n[r]]=e[n[r]];return t}},4832:function(t,e,n){function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&u(t,e)}function u(t,e){return u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},u(t,e)}function l(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=f(t);if(e){var i=f(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return c(this,n)}}function c(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return t}(t)}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}var p=n(8583),h=n(6693).StructArray,y=n(6693).Struct,d=n(1786).register,v=n(5550),m=function(t){s(n,t);var e=l(n);function n(){return i(this,n),e.apply(this,arguments)}return a(n,[{key:"_refreshViews",value:function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}},{key:"emplaceBack",value:function(t,e){var n=this.length;this.resize(n+1);var r=2*n;return this.int16[r+0]=t,this.int16[r+1]=e,n}}]),n}(h);m.prototype.bytesPerElement=4,d("StructArrayLayout2i4",m);var g=function(t){s(n,t);var e=l(n);function n(){return i(this,n),e.apply(this,arguments)}return a(n,[{key:"_refreshViews",value:function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}},{key:"emplaceBack",value:function(t,e,n,r){var i=this.length;this.resize(i+1);var o=4*i;return this.int16[o+0]=t,this.int16[o+1]=e,this.int16[o+2]=n,this.int16[o+3]=r,i}}]),n}(h);g.prototype.bytesPerElement=8,d("StructArrayLayout4i8",g);var b=function(t){s(n,t);var e=l(n);function n(){return i(this,n),e.apply(this,arguments)}return a(n,[{key:"_refreshViews",value:function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}},{key:"emplaceBack",value:function(t,e,n,r,i,o){var a=this.length;this.resize(a+1);var s=6*a;return this.int16[s+0]=t,this.int16[s+1]=e,this.int16[s+2]=n,this.int16[s+3]=r,this.int16[s+4]=i,this.int16[s+5]=o,a}}]),n}(h);b.prototype.bytesPerElement=12,d("StructArrayLayout2i4i12",b);var x=function(t){s(n,t);var e=l(n);function n(){return i(this,n),e.apply(this,arguments)}return a(n,[{key:"_refreshViews",value:function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}},{key:"emplaceBack",value:function(t,e,n,r,i,o,a,s){var u=this.length;this.resize(u+1);var l=6*u,c=12*u;return this.int16[l+0]=t,this.int16[l+1]=e,this.int16[l+2]=n,this.int16[l+3]=r,this.uint8[c+8]=i,this.uint8[c+9]=o,this.uint8[c+10]=a,this.uint8[c+11]=s,u}}]),n}(h);x.prototype.bytesPerElement=12,d("StructArrayLayout4i4ub12",x);var w=function(t){s(n,t);var e=l(n);function n(){return i(this,n),e.apply(this,arguments)}return a(n,[{key:"_refreshViews",value:function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}},{key:"emplaceBack",value:function(t,e,n,r,i,o,a,s){var u=this.length;this.resize(u+1);var l=8*u;return this.int16[l+0]=t,this.int16[l+1]=e,this.int16[l+2]=n,this.int16[l+3]=r,this.uint16[l+4]=i,this.uint16[l+5]=o,this.uint16[l+6]=a,this.uint16[l+7]=s,u}}]),n}(h);w.prototype.bytesPerElement=16,d("StructArrayLayout4i4ui16",w);var k=function(t){s(n,t);var e=l(n);function n(){return i(this,n),e.apply(this,arguments)}return a(n,[{key:"_refreshViews",value:function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}},{key:"emplaceBack",value:function(t,e,n){var r=this.length;this.resize(r+1);var i=3*r;return this.float32[i+0]=t,this.float32[i+1]=e,this.float32[i+2]=n,r}}]),n}(h);k.prototype.bytesPerElement=12,d("StructArrayLayout3f12",k);var S=function(t){s(n,t);var e=l(n);function n(){return i(this,n),e.apply(this,arguments)}return a(n,[{key:"_refreshViews",value:function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}},{key:"emplaceBack",value:function(t){var e=this.length;this.resize(e+1);var n=1*e;return this.uint32[n+0]=t,e}}]),n}(h);S.prototype.bytesPerElement=4,d("StructArrayLayout1ul4",S);var _=function(t){s(n,t);var e=l(n);function n(){return i(this,n),e.apply(this,arguments)}return a(n,[{key:"_refreshViews",value:function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}},{key:"emplaceBack",value:function(t,e,n,r,i,o,a,s,u,l,c){var f=this.length;this.resize(f+1);var p=12*f,h=6*f;return this.int16[p+0]=t,this.int16[p+1]=e,this.int16[p+2]=n,this.int16[p+3]=r,this.int16[p+4]=i,this.int16[p+5]=o,this.uint32[h+3]=a,this.uint16[p+8]=s,this.uint16[p+9]=u,this.int16[p+10]=l,this.int16[p+11]=c,f}}]),n}(h);_.prototype.bytesPerElement=24,d("StructArrayLayout6i1ul2ui2i24",_);var A=function(t){s(n,t);var e=l(n);function n(){return i(this,n),e.apply(this,arguments)}return a(n,[{key:"_refreshViews",value:function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}},{key:"emplaceBack",value:function(t,e,n,r,i,o){var a=this.length;this.resize(a+1);var s=6*a;return this.int16[s+0]=t,this.int16[s+1]=e,this.int16[s+2]=n,this.int16[s+3]=r,this.int16[s+4]=i,this.int16[s+5]=o,a}}]),n}(h);A.prototype.bytesPerElement=12,d("StructArrayLayout2i2i2i12",A);var j=function(t){s(n,t);var e=l(n);function n(){return i(this,n),e.apply(this,arguments)}return a(n,[{key:"_refreshViews",value:function(){this.uint8=new Uint8Array(this.arrayBuffer)}},{key:"emplaceBack",value:function(t,e){var n=this.length;this.resize(n+1);var r=4*n;return this.uint8[r+0]=t,this.uint8[r+1]=e,n}}]),n}(h);j.prototype.bytesPerElement=4,d("StructArrayLayout2ub4",j);var O=function(t){s(n,t);var e=l(n);function n(){return i(this,n),e.apply(this,arguments)}return a(n,[{key:"_refreshViews",value:function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}},{key:"emplaceBack",value:function(t,e,n,r,i,o,a,s,u,l,c,f,p,h){var y=this.length;this.resize(y+1);var d=20*y,v=10*y,m=40*y;return this.int16[d+0]=t,this.int16[d+1]=e,this.uint16[d+2]=n,this.uint16[d+3]=r,this.uint32[v+2]=i,this.uint32[v+3]=o,this.uint32[v+4]=a,this.uint16[d+10]=s,this.uint16[d+11]=u,this.uint16[d+12]=l,this.float32[v+7]=c,this.float32[v+8]=f,this.uint8[m+36]=p,this.uint8[m+37]=h,y}}]),n}(h);O.prototype.bytesPerElement=40,d("StructArrayLayout2i2ui3ul3ui2f2ub40",O);var T=function(t){s(n,t);var e=l(n);function n(){return i(this,n),e.apply(this,arguments)}return a(n,[{key:"_refreshViews",value:function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}},{key:"emplaceBack",value:function(t){var e=this.length;this.resize(e+1);var n=1*e;return this.float32[n+0]=t,e}}]),n}(h);T.prototype.bytesPerElement=4,d("StructArrayLayout1f4",T);var P=function(t){s(n,t);var e=l(n);function n(){return i(this,n),e.apply(this,arguments)}return a(n,[{key:"_refreshViews",value:function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}},{key:"emplaceBack",value:function(t,e,n){var r=this.length;this.resize(r+1);var i=3*r;return this.int16[i+0]=t,this.int16[i+1]=e,this.int16[i+2]=n,r}}]),n}(h);P.prototype.bytesPerElement=6,d("StructArrayLayout3i6",P);var z=function(t){s(n,t);var e=l(n);function n(){return i(this,n),e.apply(this,arguments)}return a(n,[{key:"_refreshViews",value:function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}},{key:"emplaceBack",value:function(t,e,n){var r=this.length;this.resize(r+1);var i=2*r,o=4*r;return this.uint32[i+0]=t,this.uint16[o+2]=e,this.uint16[o+3]=n,r}}]),n}(h);z.prototype.bytesPerElement=8,d("StructArrayLayout1ul2ui8",z);var I=function(t){s(n,t);var e=l(n);function n(){return i(this,n),e.apply(this,arguments)}return a(n,[{key:"_refreshViews",value:function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}},{key:"emplaceBack",value:function(t,e,n){var r=this.length;this.resize(r+1);var i=3*r;return this.uint16[i+0]=t,this.uint16[i+1]=e,this.uint16[i+2]=n,r}}]),n}(h);I.prototype.bytesPerElement=6,d("StructArrayLayout3ui6",I);var E=function(t){s(n,t);var e=l(n);function n(){return i(this,n),e.apply(this,arguments)}return a(n,[{key:"_refreshViews",value:function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}},{key:"emplaceBack",value:function(t,e){var n=this.length;this.resize(n+1);var r=2*n;return this.uint16[r+0]=t,this.uint16[r+1]=e,n}}]),n}(h);E.prototype.bytesPerElement=4,d("StructArrayLayout2ui4",E);var C=function(t){s(n,t);var e=l(n);function n(){return i(this,n),e.apply(this,arguments)}return a(n,[{key:"_refreshViews",value:function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}},{key:"emplaceBack",value:function(t,e){var n=this.length;this.resize(n+1);var r=2*n;return this.float32[r+0]=t,this.float32[r+1]=e,n}}]),n}(h);C.prototype.bytesPerElement=8,d("StructArrayLayout2f8",C);var M=function(t){s(n,t);var e=l(n);function n(){return i(this,n),e.apply(this,arguments)}return a(n,[{key:"_refreshViews",value:function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}},{key:"emplaceBack",value:function(t,e,n,r){var i=this.length;this.resize(i+1);var o=4*i;return this.float32[o+0]=t,this.float32[o+1]=e,this.float32[o+2]=n,this.float32[o+3]=r,i}}]),n}(h);M.prototype.bytesPerElement=16,d("StructArrayLayout4f16",M);var B=function(t){s(n,t);var e=l(n);function n(){return i(this,n),e.apply(this,arguments)}return a(n,[{key:"anchorPointX",get:function(){return this._structArray.int16[this._pos2+0]},set:function(t){this._structArray.int16[this._pos2+0]=t}},{key:"anchorPointY",get:function(){return this._structArray.int16[this._pos2+1]},set:function(t){this._structArray.int16[this._pos2+1]=t}},{key:"x1",get:function(){return this._structArray.int16[this._pos2+2]},set:function(t){this._structArray.int16[this._pos2+2]=t}},{key:"y1",get:function(){return this._structArray.int16[this._pos2+3]},set:function(t){this._structArray.int16[this._pos2+3]=t}},{key:"x2",get:function(){return this._structArray.int16[this._pos2+4]},set:function(t){this._structArray.int16[this._pos2+4]=t}},{key:"y2",get:function(){return this._structArray.int16[this._pos2+5]},set:function(t){this._structArray.int16[this._pos2+5]=t}},{key:"featureIndex",get:function(){return this._structArray.uint32[this._pos4+3]},set:function(t){this._structArray.uint32[this._pos4+3]=t}},{key:"sourceLayerIndex",get:function(){return this._structArray.uint16[this._pos2+8]},set:function(t){this._structArray.uint16[this._pos2+8]=t}},{key:"bucketIndex",get:function(){return this._structArray.uint16[this._pos2+9]},set:function(t){this._structArray.uint16[this._pos2+9]=t}},{key:"radius",get:function(){return this._structArray.int16[this._pos2+10]},set:function(t){this._structArray.int16[this._pos2+10]=t}},{key:"signedDistanceFromAnchor",get:function(){return this._structArray.int16[this._pos2+11]},set:function(t){this._structArray.int16[this._pos2+11]=t}},{key:"anchorPoint",get:function(){return new v(this.anchorPointX,this.anchorPointY)}}]),n}(y);B.prototype.size=24;var V=function(t){s(n,t);var e=l(n);function n(){return i(this,n),e.apply(this,arguments)}return a(n,[{key:"get",value:function(t){return p(!this.isTransferred),new B(this,t)}}]),n}(_);d("CollisionBoxArray",V);var R=function(t){s(n,t);var e=l(n);function n(){return i(this,n),e.apply(this,arguments)}return a(n,[{key:"anchorX",get:function(){return this._structArray.int16[this._pos2+0]},set:function(t){this._structArray.int16[this._pos2+0]=t}},{key:"anchorY",get:function(){return this._structArray.int16[this._pos2+1]},set:function(t){this._structArray.int16[this._pos2+1]=t}},{key:"glyphStartIndex",get:function(){return this._structArray.uint16[this._pos2+2]},set:function(t){this._structArray.uint16[this._pos2+2]=t}},{key:"numGlyphs",get:function(){return this._structArray.uint16[this._pos2+3]},set:function(t){this._structArray.uint16[this._pos2+3]=t}},{key:"vertexStartIndex",get:function(){return this._structArray.uint32[this._pos4+2]},set:function(t){this._structArray.uint32[this._pos4+2]=t}},{key:"lineStartIndex",get:function(){return this._structArray.uint32[this._pos4+3]},set:function(t){this._structArray.uint32[this._pos4+3]=t}},{key:"lineLength",get:function(){return this._structArray.uint32[this._pos4+4]},set:function(t){this._structArray.uint32[this._pos4+4]=t}},{key:"segment",get:function(){return this._structArray.uint16[this._pos2+10]},set:function(t){this._structArray.uint16[this._pos2+10]=t}},{key:"lowerSize",get:function(){return this._structArray.uint16[this._pos2+11]},set:function(t){this._structArray.uint16[this._pos2+11]=t}},{key:"upperSize",get:function(){return this._structArray.uint16[this._pos2+12]},set:function(t){this._structArray.uint16[this._pos2+12]=t}},{key:"lineOffsetX",get:function(){return this._structArray.float32[this._pos4+7]},set:function(t){this._structArray.float32[this._pos4+7]=t}},{key:"lineOffsetY",get:function(){return this._structArray.float32[this._pos4+8]},set:function(t){this._structArray.float32[this._pos4+8]=t}},{key:"writingMode",get:function(){return this._structArray.uint8[this._pos1+36]},set:function(t){this._structArray.uint8[this._pos1+36]=t}},{key:"hidden",get:function(){return this._structArray.uint8[this._pos1+37]},set:function(t){this._structArray.uint8[this._pos1+37]=t}}]),n}(y);R.prototype.size=40;var L=function(t){s(n,t);var e=l(n);function n(){return i(this,n),e.apply(this,arguments)}return a(n,[{key:"get",value:function(t){return p(!this.isTransferred),new R(this,t)}}]),n}(O);d("PlacedSymbolArray",L);var F=function(t){s(n,t);var e=l(n);function n(){return i(this,n),e.apply(this,arguments)}return a(n,[{key:"offsetX",get:function(){return this._structArray.float32[this._pos4+0]},set:function(t){this._structArray.float32[this._pos4+0]=t}}]),n}(y);F.prototype.size=4;var D=function(t){s(n,t);var e=l(n);function n(){return i(this,n),e.apply(this,arguments)}return a(n,[{key:"getoffsetX",value:function(t){return this.float32[1*t+0]}},{key:"get",value:function(t){return p(!this.isTransferred),new F(this,t)}}]),n}(T);d("GlyphOffsetArray",D);var q=function(t){s(n,t);var e=l(n);function n(){return i(this,n),e.apply(this,arguments)}return a(n,[{key:"x",get:function(){return this._structArray.int16[this._pos2+0]},set:function(t){this._structArray.int16[this._pos2+0]=t}},{key:"y",get:function(){return this._structArray.int16[this._pos2+1]},set:function(t){this._structArray.int16[this._pos2+1]=t}},{key:"tileUnitDistanceFromAnchor",get:function(){return this._structArray.int16[this._pos2+2]},set:function(t){this._structArray.int16[this._pos2+2]=t}}]),n}(y);q.prototype.size=6;var U=function(t){s(n,t);var e=l(n);function n(){return i(this,n),e.apply(this,arguments)}return a(n,[{key:"getx",value:function(t){return this.int16[3*t+0]}},{key:"gety",value:function(t){return this.int16[3*t+1]}},{key:"gettileUnitDistanceFromAnchor",value:function(t){return this.int16[3*t+2]}},{key:"get",value:function(t){return p(!this.isTransferred),new q(this,t)}}]),n}(P);d("SymbolLineVertexArray",U);var N=function(t){s(n,t);var e=l(n);function n(){return i(this,n),e.apply(this,arguments)}return a(n,[{key:"featureIndex",get:function(){return this._structArray.uint32[this._pos4+0]},set:function(t){this._structArray.uint32[this._pos4+0]=t}},{key:"sourceLayerIndex",get:function(){return this._structArray.uint16[this._pos2+2]},set:function(t){this._structArray.uint16[this._pos2+2]=t}},{key:"bucketIndex",get:function(){return this._structArray.uint16[this._pos2+3]},set:function(t){this._structArray.uint16[this._pos2+3]=t}}]),n}(y);N.prototype.size=8;var J=function(t){s(n,t);var e=l(n);function n(){return i(this,n),e.apply(this,arguments)}return a(n,[{key:"get",value:function(t){return p(!this.isTransferred),new N(this,t)}}]),n}(z);d("FeatureIndexArray",J),t.exports={StructArrayLayout2i4:m,StructArrayLayout4i8:g,StructArrayLayout2i4i12:b,StructArrayLayout4i4ub12:x,StructArrayLayout4i4ui16:w,StructArrayLayout3f12:k,StructArrayLayout1ul4:S,StructArrayLayout6i1ul2ui2i24:_,StructArrayLayout2i2i2i12:A,StructArrayLayout2ub4:j,StructArrayLayout2i2ui3ul3ui2f2ub40:O,StructArrayLayout1f4:T,StructArrayLayout3i6:P,StructArrayLayout1ul2ui8:z,StructArrayLayout3ui6:I,StructArrayLayout2ui4:E,StructArrayLayout2f8:C,StructArrayLayout4f16:M,PosArray:m,RasterBoundsArray:g,CircleLayoutArray:m,FillLayoutArray:m,FillExtrusionLayoutArray:b,HeatmapLayoutArray:m,LineLayoutArray:x,SymbolLayoutArray:w,SymbolDynamicLayoutArray:k,SymbolOpacityArray:S,CollisionBoxLayoutArray:A,CollisionCircleLayoutArray:A,CollisionVertexArray:j,TriangleIndexArray:I,LineIndexArray:E,CollisionBoxArray:V,PlacedSymbolArray:L,GlyphOffsetArray:D,SymbolLineVertexArray:U,FeatureIndexArray:J}},3473:function(t,e,n){var r=n(6693).createLayout;t.exports=r([{name:"a_pos",components:2,type:"Int16"}],4)},6677:function(t,e,n){function r(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var a=n(4832).CircleLayoutArray,s=n(3473).members,u=n(8500).SegmentVector,l=n(9063).ProgramConfigurationSet,c=n(9631).TriangleIndexArray,f=n(1438),p=n(900),h=n(1786).register;function y(t,e,n,r,i){t.emplaceBack(2*e+(r+1)/2,2*n+(i+1)/2)}var d=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=e.index,this.layoutVertexArray=new a,this.indexArray=new c,this.segments=new u,this.programConfigurations=new l(s,e.layers,e.zoom)}var e,n;return e=t,(n=[{key:"populate",value:function(t,e){var n,i=r(t);try{for(i.s();!(n=i.n()).done;){var o=n.value,a=o.feature,s=o.index,u=o.sourceLayerIndex;if(this.layers[0]._featureFilter({zoom:this.zoom},a)){var l=f(a);this.addFeature(a,l),e.featureIndex.insert(a,l,s,u,this.index)}}}catch(t){i.e(t)}finally{i.f()}}},{key:"isEmpty",value:function(){return 0===this.layoutVertexArray.length}},{key:"upload",value:function(t){this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,s),this.indexBuffer=t.createIndexBuffer(this.indexArray),this.programConfigurations.upload(t)}},{key:"destroy",value:function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}},{key:"addFeature",value:function(t,e){var n,i=r(e);try{for(i.s();!(n=i.n()).done;){var o,a=r(n.value);try{for(a.s();!(o=a.n()).done;){var s=o.value,u=s.x,l=s.y;if(!(u<0||u>=p||l<0||l>=p)){var c=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray),f=c.vertexLength;y(this.layoutVertexArray,u,l,-1,-1),y(this.layoutVertexArray,u,l,1,-1),y(this.layoutVertexArray,u,l,1,1),y(this.layoutVertexArray,u,l,-1,1),this.indexArray.emplaceBack(f,f+1,f+2),this.indexArray.emplaceBack(f,f+3,f+2),c.vertexLength+=4,c.primitiveLength+=2}}}catch(t){a.e(t)}finally{a.f()}}}catch(t){i.e(t)}finally{i.f()}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t)}}])&&o(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();h("CircleBucket",d,{omit:["layers"]}),t.exports=d},8669:function(t,e,n){var r=n(6693).createLayout;t.exports=r([{name:"a_pos",components:2,type:"Int16"}],4)},9603:function(t,e,n){function r(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var a=n(4832).FillLayoutArray,s=n(8669).members,u=n(8500).SegmentVector,l=n(9063).ProgramConfigurationSet,c=n(9631),f=c.LineIndexArray,p=c.TriangleIndexArray,h=n(1438),y=n(9187),d=n(937),v=n(8583),m=n(1786).register,g=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=e.index,this.layoutVertexArray=new a,this.indexArray=new p,this.indexArray2=new f,this.programConfigurations=new l(s,e.layers,e.zoom),this.segments=new u,this.segments2=new u}var e,n;return e=t,(n=[{key:"populate",value:function(t,e){var n,i=r(t);try{for(i.s();!(n=i.n()).done;){var o=n.value,a=o.feature,s=o.index,u=o.sourceLayerIndex;if(this.layers[0]._featureFilter({zoom:this.zoom},a)){var l=h(a);this.addFeature(a,l),e.featureIndex.insert(a,l,s,u,this.index)}}}catch(t){i.e(t)}finally{i.f()}}},{key:"isEmpty",value:function(){return 0===this.layoutVertexArray.length}},{key:"upload",value:function(t){this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,s),this.indexBuffer=t.createIndexBuffer(this.indexArray),this.indexBuffer2=t.createIndexBuffer(this.indexArray2),this.programConfigurations.upload(t)}},{key:"destroy",value:function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())}},{key:"addFeature",value:function(t,e){var n,i=r(d(e,500));try{for(i.s();!(n=i.n()).done;){var o,a=n.value,s=0,u=r(a);try{for(u.s();!(o=u.n()).done;)s+=o.value.length}catch(t){u.e(t)}finally{u.f()}var l,c=this.segments.prepareSegment(s,this.layoutVertexArray,this.indexArray),f=c.vertexLength,p=[],h=[],m=r(a);try{for(m.s();!(l=m.n()).done;){var g=l.value;if(0!==g.length){g!==a[0]&&h.push(p.length/2);var b=this.segments2.prepareSegment(g.length,this.layoutVertexArray,this.indexArray2),x=b.vertexLength;this.layoutVertexArray.emplaceBack(g[0].x,g[0].y),this.indexArray2.emplaceBack(x+g.length-1,x),p.push(g[0].x),p.push(g[0].y);for(var w=1;w<g.length;w++)this.layoutVertexArray.emplaceBack(g[w].x,g[w].y),this.indexArray2.emplaceBack(x+w-1,x+w),p.push(g[w].x),p.push(g[w].y);b.vertexLength+=g.length,b.primitiveLength+=g.length}}}catch(t){m.e(t)}finally{m.f()}var k=y(p,h);v(k.length%3==0);for(var S=0;S<k.length;S+=3)this.indexArray.emplaceBack(f+k[S],f+k[S+1],f+k[S+2]);c.vertexLength+=s,c.primitiveLength+=k.length/3}}catch(t){i.e(t)}finally{i.f()}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t)}}])&&o(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();m("FillBucket",g,{omit:["layers"]}),t.exports=g},163:function(t,e,n){var r=n(6693).createLayout;t.exports=r([{name:"a_pos",components:2,type:"Int16"},{name:"a_normal_ed",components:4,type:"Int16"}],4)},8294:function(t,e,n){function r(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var a=n(4832).FillExtrusionLayoutArray,s=n(163).members,u=n(8500),l=u.SegmentVector,c=u.MAX_VERTEX_ARRAY_LENGTH,f=n(9063).ProgramConfigurationSet,p=n(9631).TriangleIndexArray,h=n(1438),y=n(900),d=n(9187),v=n(937),m=n(8583),g=n(1786).register,b=Math.pow(2,13);function x(t,e,n,r,i,o,a,s){t.emplaceBack(e,n,2*Math.floor(r*b)+a,i*b*2,o*b*2,Math.round(s))}var w=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=e.index,this.layoutVertexArray=new a,this.indexArray=new p,this.programConfigurations=new f(s,e.layers,e.zoom),this.segments=new l}var e,n;return e=t,(n=[{key:"populate",value:function(t,e){var n,i=r(t);try{for(i.s();!(n=i.n()).done;){var o=n.value,a=o.feature,s=o.index,u=o.sourceLayerIndex;if(this.layers[0]._featureFilter({zoom:this.zoom},a)){var l=h(a);this.addFeature(a,l),e.featureIndex.insert(a,l,s,u,this.index)}}}catch(t){i.e(t)}finally{i.f()}}},{key:"isEmpty",value:function(){return 0===this.layoutVertexArray.length}},{key:"upload",value:function(t){this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,s),this.indexBuffer=t.createIndexBuffer(this.indexArray),this.programConfigurations.upload(t)}},{key:"destroy",value:function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}},{key:"addFeature",value:function(t,e){var n,i,o=r(v(e,500));try{for(o.s();!(n=o.n()).done;){var a,s=n.value,u=0,l=r(s);try{for(l.s();!(a=l.n()).done;)u+=a.value.length}catch(t){l.e(t)}finally{l.f()}var f,p=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray),h=r(s);try{for(h.s();!(f=h.n()).done;){var g=f.value;if(0!==g.length&&!((i=g).every((function(t){return t.x<0}))||i.every((function(t){return t.x>y}))||i.every((function(t){return t.y<0}))||i.every((function(t){return t.y>y}))))for(var b=0,w=0;w<g.length;w++){var S=g[w];if(w>=1){var _=g[w-1];if(!k(S,_)){p.vertexLength+4>c&&(p=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var A=S.sub(_)._perp()._unit(),j=_.dist(S);b+j>32768&&(b=0),x(this.layoutVertexArray,S.x,S.y,A.x,A.y,0,0,b),x(this.layoutVertexArray,S.x,S.y,A.x,A.y,0,1,b),b+=j,x(this.layoutVertexArray,_.x,_.y,A.x,A.y,0,0,b),x(this.layoutVertexArray,_.x,_.y,A.x,A.y,0,1,b);var O=p.vertexLength;this.indexArray.emplaceBack(O,O+1,O+2),this.indexArray.emplaceBack(O+1,O+2,O+3),p.vertexLength+=4,p.primitiveLength+=2}}}}}catch(t){h.e(t)}finally{h.f()}p.vertexLength+u>c&&(p=this.segments.prepareSegment(u,this.layoutVertexArray,this.indexArray));var T,P=[],z=[],I=p.vertexLength,E=r(s);try{for(E.s();!(T=E.n()).done;){var C=T.value;if(0!==C.length){C!==s[0]&&z.push(P.length/2);for(var M=0;M<C.length;M++){var B=C[M];x(this.layoutVertexArray,B.x,B.y,0,0,1,1,0),P.push(B.x),P.push(B.y)}}}}catch(t){E.e(t)}finally{E.f()}var V=d(P,z);m(V.length%3==0);for(var R=0;R<V.length;R+=3)this.indexArray.emplaceBack(I+V[R],I+V[R+1],I+V[R+2]);p.primitiveLength+=V.length/3,p.vertexLength+=u}}catch(t){o.e(t)}finally{o.f()}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t)}}])&&o(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function k(t,e){return t.x===e.x&&(t.x<0||t.x>y)||t.y===e.y&&(t.y<0||t.y>y)}g("FillExtrusionBucket",w,{omit:["layers"]}),t.exports=w},7832:function(t,e,n){function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){return o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},o(t,e)}function a(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return t}(t)}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}var u=n(6677),l=n(1786).register,c=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&o(t,e)}(l,t);var e,n,r,u=(n=l,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=s(n);if(r){var i=s(this).constructor;t=Reflect.construct(e,arguments,i)}else t=e.apply(this,arguments);return a(this,t)});function l(){return i(this,l),u.apply(this,arguments)}return e=l,Object.defineProperty(e,"prototype",{writable:!1}),e}(u);l("HeatmapBucket",c,{omit:["layers"]}),t.exports=c},9379:function(t,e,n){var r=n(6693).createLayout;t.exports=r([{name:"a_pos_normal",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint8"}],4)},6905:function(t,e,n){function r(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var a=n(4832).LineLayoutArray,s=n(9379).members,u=n(8500).SegmentVector,l=n(9063).ProgramConfigurationSet,c=n(9631).TriangleIndexArray,f=n(1438),p=n(900),h=n(8929).VectorTileFeature.types,y=n(1786).register,d=Math.cos(Math.PI/180*37.5),v=Math.pow(2,14)/.5;function m(t,e,n,r,i,o,a){t.emplaceBack(e.x,e.y,r?1:0,i?1:-1,Math.round(63*n.x)+128,Math.round(63*n.y)+128,1+(0===o?0:o<0?-1:1)|(.5*a&63)<<2,.5*a>>6)}var g=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=e.index,this.layoutVertexArray=new a,this.indexArray=new c,this.programConfigurations=new l(s,e.layers,e.zoom),this.segments=new u}var e,n;return e=t,(n=[{key:"populate",value:function(t,e){var n,i=r(t);try{for(i.s();!(n=i.n()).done;){var o=n.value,a=o.feature,s=o.index,u=o.sourceLayerIndex;if(this.layers[0]._featureFilter({zoom:this.zoom},a)){var l=f(a);this.addFeature(a,l),e.featureIndex.insert(a,l,s,u,this.index)}}}catch(t){i.e(t)}finally{i.f()}}},{key:"isEmpty",value:function(){return 0===this.layoutVertexArray.length}},{key:"upload",value:function(t){this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,s),this.indexBuffer=t.createIndexBuffer(this.indexArray),this.programConfigurations.upload(t)}},{key:"destroy",value:function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}},{key:"addFeature",value:function(t,e){var n,i=this.layers[0].layout,o=i.get("line-join").evaluate(t),a=i.get("line-cap"),s=i.get("line-miter-limit"),u=i.get("line-round-limit"),l=r(e);try{for(l.s();!(n=l.n()).done;){var c=n.value;this.addLine(c,t,o,a,s,u)}}catch(t){l.e(t)}finally{l.f()}}},{key:"addLine",value:function(t,e,n,r,i,o){for(var a="Polygon"===h[e.type],s=t.length;s>=2&&t[s-1].equals(t[s-2]);)s--;for(var u=0;u<s-1&&t[u].equals(t[u+1]);)u++;if(!(s<(a?3:2))){"bevel"===n&&(i=1.05);var l=p/(512*this.overscaling)*15,c=t[u],f=this.segments.prepareSegment(10*s,this.layoutVertexArray,this.indexArray);this.distance=0;var y,v,m,g=r,b=a?"butt":r,x=!0,w=void 0,k=void 0,S=void 0,_=void 0;this.e1=this.e2=this.e3=-1,a&&(y=t[s-2],_=c.sub(y)._unit()._perp());for(var A=u;A<s;A++)if(!(k=a&&A===s-1?t[u+1]:t[A+1])||!t[A].equals(k)){_&&(S=_),y&&(w=y),y=t[A],_=k?k.sub(y)._unit()._perp():S;var j=(S=S||_).add(_);0===j.x&&0===j.y||j._unit();var O=j.x*_.x+j.y*_.y,T=0!==O?1/O:1/0,P=O<d&&w&&k;if(P&&A>u){var z=y.dist(w);if(z>2*l){var I=y.sub(y.sub(w)._mult(l/z)._round());this.distance+=I.dist(w),this.addCurrentVertex(I,this.distance,S.mult(1),0,0,!1,f),w=I}}var E=w&&k,C=E?n:k?g:b;if(E&&"round"===C&&(T<o?C="miter":T<=2&&(C="fakeround")),"miter"===C&&T>i&&(C="bevel"),"bevel"===C&&(T>2&&(C="flipbevel"),T<i&&(C="miter")),w&&(this.distance+=y.dist(w)),"miter"===C)j._mult(T),this.addCurrentVertex(y,this.distance,j,0,0,!1,f);else if("flipbevel"===C){if(T>100)j=_.clone().mult(-1);else{var M=S.x*_.y-S.y*_.x>0?-1:1,B=T*S.add(_).mag()/S.sub(_).mag();j._perp()._mult(B*M)}this.addCurrentVertex(y,this.distance,j,0,0,!1,f),this.addCurrentVertex(y,this.distance,j.mult(-1),0,0,!1,f)}else if("bevel"===C||"fakeround"===C){var V=S.x*_.y-S.y*_.x>0,R=-Math.sqrt(T*T-1);if(V?(m=0,v=R):(v=0,m=R),x||this.addCurrentVertex(y,this.distance,S,v,m,!1,f),"fakeround"===C){for(var L=Math.floor(8*(.5-(O-.5))),F=void 0,D=0;D<L;D++)F=_.mult((D+1)/(L+1))._add(S)._unit(),this.addPieSliceVertex(y,this.distance,F,V,f);this.addPieSliceVertex(y,this.distance,j,V,f);for(var q=L-1;q>=0;q--)F=S.mult((q+1)/(L+1))._add(_)._unit(),this.addPieSliceVertex(y,this.distance,F,V,f)}k&&this.addCurrentVertex(y,this.distance,_,-v,-m,!1,f)}else"butt"===C?(x||this.addCurrentVertex(y,this.distance,S,0,0,!1,f),k&&this.addCurrentVertex(y,this.distance,_,0,0,!1,f)):"square"===C?(x||(this.addCurrentVertex(y,this.distance,S,1,1,!1,f),this.e1=this.e2=-1),k&&this.addCurrentVertex(y,this.distance,_,-1,-1,!1,f)):"round"===C&&(x||(this.addCurrentVertex(y,this.distance,S,0,0,!1,f),this.addCurrentVertex(y,this.distance,S,1,1,!0,f),this.e1=this.e2=-1),k&&(this.addCurrentVertex(y,this.distance,_,-1,-1,!0,f),this.addCurrentVertex(y,this.distance,_,0,0,!1,f)));if(P&&A<s-1){var U=y.dist(k);if(U>2*l){var N=y.add(k.sub(y)._mult(l/U)._round());this.distance+=N.dist(y),this.addCurrentVertex(N,this.distance,_.mult(1),0,0,!1,f),y=N}}x=!1}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e)}}},{key:"addCurrentVertex",value:function(t,e,n,r,i,o,a){var s,u=this.layoutVertexArray,l=this.indexArray;s=n.clone(),r&&s._sub(n.perp()._mult(r)),m(u,t,s,o,!1,r,e),this.e3=a.vertexLength++,this.e1>=0&&this.e2>=0&&(l.emplaceBack(this.e1,this.e2,this.e3),a.primitiveLength++),this.e1=this.e2,this.e2=this.e3,s=n.mult(-1),i&&s._sub(n.perp()._mult(i)),m(u,t,s,o,!0,-i,e),this.e3=a.vertexLength++,this.e1>=0&&this.e2>=0&&(l.emplaceBack(this.e1,this.e2,this.e3),a.primitiveLength++),this.e1=this.e2,this.e2=this.e3,e>v/2&&(this.distance=0,this.addCurrentVertex(t,this.distance,n,r,i,o,a))}},{key:"addPieSliceVertex",value:function(t,e,n,r,i){n=n.mult(r?-1:1);var o=this.layoutVertexArray,a=this.indexArray;m(o,t,n,!1,r,0,e),this.e3=i.vertexLength++,this.e1>=0&&this.e2>=0&&(a.emplaceBack(this.e1,this.e2,this.e3),i.primitiveLength++),r?this.e2=this.e3:this.e1=this.e3}}])&&o(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();y("LineBucket",g,{omit:["layers"]}),t.exports=g},1203:function(t,e,n){var r=n(6693).createLayout,i={symbolLayoutAttributes:r([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"}]),dynamicLayoutAttributes:r([{name:"a_projected_pos",components:3,type:"Float32"}],4),placementOpacityAttributes:r([{name:"a_fade_opacity",components:1,type:"Uint32"}],4),collisionVertexAttributes:r([{name:"a_placed",components:2,type:"Uint8"}],4),collisionBox:r([{type:"Int16",name:"anchorPointX"},{type:"Int16",name:"anchorPointY"},{type:"Int16",name:"x1"},{type:"Int16",name:"y1"},{type:"Int16",name:"x2"},{type:"Int16",name:"y2"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"},{type:"Int16",name:"radius"},{type:"Int16",name:"signedDistanceFromAnchor"}]),collisionBoxLayout:r([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4),collisionCircleLayout:r([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4),placement:r([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"hidden"}]),glyphOffset:r([{type:"Float32",name:"offsetX"}]),lineVertex:r([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}])};t.exports=i},5571:function(t,e,n){function r(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var u=n(1203),l=u.symbolLayoutAttributes,c=u.collisionVertexAttributes,f=u.collisionBoxLayout,p=u.collisionCircleLayout,h=u.dynamicLayoutAttributes,y=n(4832),d=y.SymbolLayoutArray,v=y.SymbolDynamicLayoutArray,m=y.SymbolOpacityArray,g=y.CollisionBoxLayoutArray,b=y.CollisionCircleLayoutArray,x=y.CollisionVertexArray,w=y.PlacedSymbolArray,k=y.GlyphOffsetArray,S=y.SymbolLineVertexArray,_=n(5550),A=n(8500).SegmentVector,j=n(9063).ProgramConfigurationSet,O=n(9631),T=O.TriangleIndexArray,P=O.LineIndexArray,z=n(1447),I=n(8376),E=n(6584),C=n(1438),M=n(8929).VectorTileFeature.types,B=n(7899),V=(n(1397),n(724).getSizeData),R=n(1786).register,L=[{name:"a_fade_opacity",components:1,type:"Uint8",offset:0}];function F(t,e,n,r,i,o,a,s){t.emplaceBack(e,n,Math.round(64*r),Math.round(64*i),o,a,s?s[0]:0,s?s[1]:0)}function D(t,e,n){t.emplaceBack(e.x,e.y,n),t.emplaceBack(e.x,e.y,n),t.emplaceBack(e.x,e.y,n),t.emplaceBack(e.x,e.y,n)}var q=function(){function t(e){o(this,t),this.layoutVertexArray=new d,this.indexArray=new T,this.programConfigurations=e,this.segments=new A,this.dynamicLayoutVertexArray=new v,this.opacityVertexArray=new m,this.placedSymbolArray=new w}return s(t,[{key:"upload",value:function(t,e){this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,l.members),this.indexBuffer=t.createIndexBuffer(this.indexArray,e),this.programConfigurations.upload(t),this.dynamicLayoutVertexBuffer=t.createVertexBuffer(this.dynamicLayoutVertexArray,h.members,!0),this.opacityVertexBuffer=t.createVertexBuffer(this.opacityVertexArray,L,!0),this.opacityVertexBuffer.itemSize=1}},{key:"destroy",value:function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.dynamicLayoutVertexBuffer.destroy(),this.opacityVertexBuffer.destroy())}}]),t}();R("SymbolBuffers",q);var U=function(){function t(e,n,r){o(this,t),this.layoutVertexArray=new e,this.layoutAttributes=n,this.indexArray=new r,this.segments=new A,this.collisionVertexArray=new x}return s(t,[{key:"upload",value:function(t){this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,this.layoutAttributes),this.indexBuffer=t.createIndexBuffer(this.indexArray),this.collisionVertexBuffer=t.createVertexBuffer(this.collisionVertexArray,c.members,!0)}},{key:"destroy",value:function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.collisionVertexBuffer.destroy())}}]),t}();R("CollisionBuffers",U);var N=function(){function t(e){o(this,t),this.collisionBoxArray=e.collisionBoxArray,this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=e.index,this.pixelRatio=e.pixelRatio;var n=this.layers[0]._unevaluatedLayout._values;this.textSizeData=V(this.zoom,n["text-size"]),this.iconSizeData=V(this.zoom,n["icon-size"]);var r=this.layers[0].layout;this.sortFeaturesByY=r.get("text-allow-overlap")||r.get("icon-allow-overlap")||r.get("text-ignore-placement")||r.get("icon-ignore-placement")}return s(t,[{key:"createArrays",value:function(){this.text=new q(new j(l.members,this.layers,this.zoom,(function(t){return/^text/.test(t)}))),this.icon=new q(new j(l.members,this.layers,this.zoom,(function(t){return/^icon/.test(t)}))),this.collisionBox=new U(g,f.members,P),this.collisionCircle=new U(b,p.members,T),this.glyphOffsetArray=new k,this.lineVertexArray=new S}},{key:"populate",value:function(t,e){var n=this.layers[0],i=n.layout,o=i.get("text-font"),a=i.get("text-field"),s=i.get("icon-image"),u=("constant"!==a.value.kind||a.value.value.length>0)&&("constant"!==o.value.kind||o.value.value.length>0),l="constant"!==s.value.kind||s.value.value&&s.value.value.length>0;if(this.features=[],u||l){var c,f=e.iconDependencies,p=e.glyphDependencies,h={zoom:this.zoom},y=r(t);try{for(y.s();!(c=y.n()).done;){var d=c.value,v=d.feature,m=d.index,g=d.sourceLayerIndex;if(n._featureFilter(h,v)){var b=void 0;u&&(b=n.getValueAndResolveTokens("text-field",v),b=z(b,n,v));var x=void 0;if(l&&(x=n.getValueAndResolveTokens("icon-image",v)),b||x){var w={text:b,icon:x,index:m,sourceLayerIndex:g,geometry:C(v),properties:v.properties,type:M[v.type]};if(void 0!==v.id&&(w.id=v.id),this.features.push(w),x&&(f[x]=!0),b)for(var k=o.evaluate(v).join(","),S=p[k]=p[k]||{},_="map"===i.get("text-rotation-alignment")&&"line"===i.get("symbol-placement"),A=E.allowsVerticalWritingMode(b),j=0;j<b.length;j++)if(S[b.charCodeAt(j)]=!0,_&&A){var O=B.lookup[b.charAt(j)];O&&(S[O.charCodeAt(0)]=!0)}}}}}catch(t){y.e(t)}finally{y.f()}"line"===i.get("symbol-placement")&&(this.features=I(this.features))}}},{key:"isEmpty",value:function(){return 0===this.symbolInstances.length}},{key:"upload",value:function(t){this.text.upload(t,this.sortFeaturesByY),this.icon.upload(t,this.sortFeaturesByY),this.collisionBox.upload(t),this.collisionCircle.upload(t)}},{key:"destroy",value:function(){this.text.destroy(),this.icon.destroy(),this.collisionBox.destroy(),this.collisionCircle.destroy()}},{key:"addToLineVertexArray",value:function(t,e){var n=this.lineVertexArray.length;if(void 0!==t.segment){for(var r=t.dist(e[t.segment+1]),i=t.dist(e[t.segment]),o={},a=t.segment+1;a<e.length;a++)o[a]={x:e[a].x,y:e[a].y,tileUnitDistanceFromAnchor:r},a<e.length-1&&(r+=e[a+1].dist(e[a]));for(var s=t.segment||0;s>=0;s--)o[s]={x:e[s].x,y:e[s].y,tileUnitDistanceFromAnchor:i},s>0&&(i+=e[s-1].dist(e[s]));for(var u=0;u<e.length;u++){var l=o[u];this.lineVertexArray.emplaceBack(l.x,l.y,l.tileUnitDistanceFromAnchor)}}return{lineStartIndex:n,lineLength:this.lineVertexArray.length-n}}},{key:"addSymbols",value:function(t,e,n,i,o,a,s,u,l,c){var f,p=t.indexArray,h=t.layoutVertexArray,y=t.dynamicLayoutVertexArray,d=t.segments.prepareSegment(4*e.length,t.layoutVertexArray,t.indexArray),v=this.glyphOffsetArray.length,m=d.vertexLength,g=r(e);try{for(g.s();!(f=g.n()).done;){var b=f.value,x=b.tl,w=b.tr,k=b.bl,S=b.br,_=b.tex,A=d.vertexLength,j=b.glyphOffset[1];F(h,u.x,u.y,x.x,j+x.y,_.x,_.y,n),F(h,u.x,u.y,w.x,j+w.y,_.x+_.w,_.y,n),F(h,u.x,u.y,k.x,j+k.y,_.x,_.y+_.h,n),F(h,u.x,u.y,S.x,j+S.y,_.x+_.w,_.y+_.h,n),D(y,u,0),p.emplaceBack(A,A+1,A+2),p.emplaceBack(A+1,A+2,A+3),d.vertexLength+=4,d.primitiveLength+=2,this.glyphOffsetArray.emplaceBack(b.glyphOffset[0])}}catch(t){g.e(t)}finally{g.f()}t.placedSymbolArray.emplaceBack(u.x,u.y,v,this.glyphOffsetArray.length-v,m,l,c,u.segment,n?n[0]:0,n?n[1]:0,i[0],i[1],s,!1),t.programConfigurations.populatePaintArrays(t.layoutVertexArray.length,a)}},{key:"_addCollisionDebugVertex",value:function(t,e,n,r,i){return e.emplaceBack(0,0),t.emplaceBack(n.x,n.y,r.x,r.y,Math.round(i.x),Math.round(i.y))}},{key:"addCollisionDebugVertices",value:function(t,e,n,r,i,o,a,s){var u=i.segments.prepareSegment(4,i.layoutVertexArray,i.indexArray),l=u.vertexLength,c=i.layoutVertexArray,f=i.collisionVertexArray;if(this._addCollisionDebugVertex(c,f,o,a.anchor,new _(t,e)),this._addCollisionDebugVertex(c,f,o,a.anchor,new _(n,e)),this._addCollisionDebugVertex(c,f,o,a.anchor,new _(n,r)),this._addCollisionDebugVertex(c,f,o,a.anchor,new _(t,r)),u.vertexLength+=4,s){var p=i.indexArray;p.emplaceBack(l,l+1,l+2),p.emplaceBack(l,l+2,l+3),u.primitiveLength+=2}else{var h=i.indexArray;h.emplaceBack(l,l+1),h.emplaceBack(l+1,l+2),h.emplaceBack(l+2,l+3),h.emplaceBack(l+3,l),u.primitiveLength+=4}}},{key:"generateCollisionDebugBuffers",value:function(){var t,e=r(this.symbolInstances);try{for(e.s();!(t=e.n()).done;){var n=t.value;n.textCollisionFeature={boxStartIndex:n.textBoxStartIndex,boxEndIndex:n.textBoxEndIndex},n.iconCollisionFeature={boxStartIndex:n.iconBoxStartIndex,boxEndIndex:n.iconBoxEndIndex};for(var i=0;i<2;i++){var o=n[0===i?"textCollisionFeature":"iconCollisionFeature"];if(o)for(var a=o.boxStartIndex;a<o.boxEndIndex;a++){var s=this.collisionBoxArray.get(a),u=s.x1,l=s.y1,c=s.x2,f=s.y2,p=s.radius>0;this.addCollisionDebugVertices(u,l,c,f,p?this.collisionCircle:this.collisionBox,s.anchorPoint,n,p)}}}}catch(t){e.e(t)}finally{e.f()}}},{key:"deserializeCollisionBoxes",value:function(t,e,n,r,i){for(var o={},a=e;a<n;a++){var s=t.get(a);if(0===s.radius){o.textBox={x1:s.x1,y1:s.y1,x2:s.x2,y2:s.y2,anchorPointX:s.anchorPointX,anchorPointY:s.anchorPointY};break}o.textCircles||(o.textCircles=[]),o.textCircles.push(s.anchorPointX,s.anchorPointY,s.radius,s.signedDistanceFromAnchor,1)}for(var u=r;u<i;u++){var l=t.get(u);if(0===l.radius){o.iconBox={x1:l.x1,y1:l.y1,x2:l.x2,y2:l.y2,anchorPointX:l.anchorPointX,anchorPointY:l.anchorPointY};break}}return o}},{key:"hasTextData",value:function(){return this.text.segments.get().length>0}},{key:"hasIconData",value:function(){return this.icon.segments.get().length>0}},{key:"hasCollisionBoxData",value:function(){return this.collisionBox.segments.get().length>0}},{key:"hasCollisionCircleData",value:function(){return this.collisionCircle.segments.get().length>0}},{key:"sortFeatures",value:function(t){var e=this;if(this.sortFeaturesByY&&this.sortedAngle!==t&&(this.sortedAngle=t,!(this.text.segments.get().length>1||this.icon.segments.get().length>1))){for(var n=[],i=0;i<this.symbolInstances.length;i++)n.push(i);var o=Math.sin(t),a=Math.cos(t);n.sort((function(t,n){var r=e.symbolInstances[t],i=e.symbolInstances[n];return(o*r.anchor.x+a*r.anchor.y|0)-(o*i.anchor.x+a*i.anchor.y|0)||i.featureIndex-r.featureIndex})),this.text.indexArray.clear(),this.icon.indexArray.clear();for(var s=0,u=n;s<u.length;s++){var l,c=u[s],f=r(this.symbolInstances[c].placedTextSymbolIndices);try{for(f.s();!(l=f.n()).done;)for(var p=l.value,h=this.text.placedSymbolArray.get(p),y=h.vertexStartIndex+4*h.numGlyphs,d=h.vertexStartIndex;d<y;d+=4)this.text.indexArray.emplaceBack(d,d+1,d+2),this.text.indexArray.emplaceBack(d+1,d+2,d+3)}catch(t){f.e(t)}finally{f.f()}var v=this.icon.placedSymbolArray.get(c);if(v.numGlyphs){var m=v.vertexStartIndex;this.icon.indexArray.emplaceBack(m,m+1,m+2),this.icon.indexArray.emplaceBack(m+1,m+2,m+3)}}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}}}]),t}();R("SymbolBucket",N,{omit:["layers","collisionBoxArray","features","compareText"],shallow:["symbolInstances"]}),N.MAX_GLYPHS=65535,N.addDynamicAttributes=D,t.exports=N},183:function(t,e,n){function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var a=n(5641).RGBAImage,s=n(8316),u=n(1786).register,l=function(){function t(e,n,i){if(r(this,t),e<=0)throw new RangeError("Level must have positive dimension");this.dim=e,this.border=n,this.stride=this.dim+2*this.border,this.data=i||new Int32Array((this.dim+2*this.border)*(this.dim+2*this.border))}return o(t,[{key:"set",value:function(t,e,n){this.data[this._idx(t,e)]=n+65536}},{key:"get",value:function(t,e){return this.data[this._idx(t,e)]-65536}},{key:"_idx",value:function(t,e){if(t<-this.border||t>=this.dim+this.border||e<-this.border||e>=this.dim+this.border)throw new RangeError("out of range source coordinates for DEM data");return(e+this.border)*this.stride+(t+this.border)}}]),t}();u("Level",l);var c=function(){function t(e,n,i){r(this,t),this.uid=e,this.scale=n||1,this.level=i||new l(256,512),this.loaded=!!i}return o(t,[{key:"loadFromImage",value:function(t){if(t.height!==t.width)throw new RangeError("DEM tiles must be square");for(var e=this.level=new l(t.width,t.width/2),n=t.data,r=0;r<e.dim;r++)for(var i=0;i<e.dim;i++){var o=4*(r*e.dim+i);e.set(i,r,this.scale*((256*n[o]*256+256*n[o+1]+n[o+2])/10-1e4))}for(var a=0;a<e.dim;a++)e.set(-1,a,e.get(0,a)),e.set(e.dim,a,e.get(e.dim-1,a)),e.set(a,-1,e.get(a,0)),e.set(a,e.dim,e.get(a,e.dim-1));e.set(-1,-1,e.get(0,0)),e.set(e.dim,-1,e.get(e.dim-1,0)),e.set(-1,e.dim,e.get(0,e.dim-1)),e.set(e.dim,e.dim,e.get(e.dim-1,e.dim-1)),this.loaded=!0}},{key:"getPixels",value:function(){return new a({width:this.level.dim+2*this.level.border,height:this.level.dim+2*this.level.border},new Uint8Array(this.level.data.buffer))}},{key:"backfillBorder",value:function(t,e,n){var r=this.level,i=t.level;if(r.dim!==i.dim)throw new Error("level mismatch (dem dimension)");var o=e*r.dim,a=e*r.dim+r.dim,u=n*r.dim,l=n*r.dim+r.dim;switch(e){case-1:o=a-1;break;case 1:a=o+1}switch(n){case-1:u=l-1;break;case 1:l=u+1}for(var c=s.clamp(o,-r.border,r.dim+r.border),f=s.clamp(a,-r.border,r.dim+r.border),p=s.clamp(u,-r.border,r.dim+r.border),h=s.clamp(l,-r.border,r.dim+r.border),y=-e*r.dim,d=-n*r.dim,v=p;v<h;v++)for(var m=c;m<f;m++)r.set(m,v,i.get(m+y,v+d))}}]),t}();u("DEMData",c),t.exports={DEMData:c,Level:l}},900:function(t){t.exports=8192},5346:function(t,e,n){function r(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}n(5550);var a=n(1438),s=n(900),u=n(1693),l=n(1412),c=n(621),f=n(8929),p=n(3614),h=n(3076),y=n(8316).arraysIntersect,d=(n(4792).OverscaledTileID,n(1786).register),v=n(4832).FeatureIndexArray,m=function(){function t(e,n,r,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.tileID=e,this.overscaling=n,this.x=e.canonical.x,this.y=e.canonical.y,this.z=e.canonical.z,this.grid=r||new l(s,16,0),this.featureIndexArray=i||new v}var e,n;return e=t,(n=[{key:"insert",value:function(t,e,n,r,i){var o=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(n,r,i);for(var a=0;a<e.length;a++){for(var s=e[a],u=[1/0,1/0,-1/0,-1/0],l=0;l<s.length;l++){var c=s[l];u[0]=Math.min(u[0],c.x),u[1]=Math.min(u[1],c.y),u[2]=Math.max(u[2],c.x),u[3]=Math.max(u[3],c.y)}this.grid.insert(o,u[0],u[1],u[2],u[3])}}},{key:"query",value:function(t,e){this.vtLayers||(this.vtLayers=new f.VectorTile(new p(this.rawTileData)).layers,this.sourceLayerCoder=new c(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"]));for(var n={},r=t.params||{},i=s/t.tileSize/t.scale,o=u(r.filter),a=t.queryGeometry,l=t.additionalRadius*i,h=1/0,y=1/0,d=-1/0,v=-1/0,m=0;m<a.length;m++)for(var b=a[m],x=0;x<b.length;x++){var w=b[x];h=Math.min(h,w.x),y=Math.min(y,w.y),d=Math.max(d,w.x),v=Math.max(v,w.y)}var k=this.grid.query(h-l,y-l,d+l,v+l);k.sort(g),this.filterMatching(n,k,this.featureIndexArray,a,o,r.layers,e,t.bearing,i);var S=t.collisionIndex?t.collisionIndex.queryRenderedSymbols(a,this.tileID,s/t.tileSize,t.collisionBoxArray,t.sourceID,t.bucketInstanceIds):[];return S.sort(),this.filterMatching(n,S,t.collisionBoxArray,a,o,r.layers,e,t.bearing,i),n}},{key:"filterMatching",value:function(t,e,n,r,i,o,s,u,l){for(var c,f=0;f<e.length;f++){var p=e[f];if(p!==c){c=p;var d=n.get(p),v=this.bucketLayerIDs[d.bucketIndex];if(!o||y(o,v)){var m=this.sourceLayerCoder.decode(d.sourceLayerIndex),g=this.vtLayers[m].feature(d.featureIndex);if(i({zoom:this.tileID.overscaledZ},g))for(var b=null,x=0;x<v.length;x++){var w=v[x];if(!(o&&o.indexOf(w)<0)){var k=s[w];if(k&&("symbol"===k.type||(b||(b=a(g)),k.queryIntersectsFeature(r,g,b,this.z,u,l)))){var S=new h(g,this.z,this.x,this.y);S.layer=k.serialize();var _=t[w];void 0===_&&(_=t[w]=[]),_.push({featureIndex:p,feature:S})}}}}}}}},{key:"hasLayer",value:function(t){var e,n=r(this.bucketLayerIDs);try{for(n.s();!(e=n.n()).done;){var i,o=r(e.value);try{for(o.s();!(i=o.n()).done;)if(t===i.value)return!0}catch(t){o.e(t)}finally{o.f()}}}catch(t){n.e(t)}finally{n.f()}return!1}}])&&o(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function g(t,e){return e-t}d("FeatureIndex",m,{omit:["rawTileData","sourceLayerCoder","collisionIndex"]}),t.exports=m},9631:function(t,e,n){t.exports={LineIndexArray:n(4832).LineIndexArray,TriangleIndexArray:n(4832).TriangleIndexArray}},1438:function(t,e,n){var r=n(8316),i=n(900),o=(16,{min:-1*Math.pow(2,15),max:Math.pow(2,15)-1});t.exports=function(t){for(var e=i/t.extent,n=t.loadGeometry(),a=0;a<n.length;a++)for(var s=n[a],u=0;u<s.length;u++){var l=s[u];l.x=Math.round(l.x*e),l.y=Math.round(l.y*e),(l.x<o.min||l.x>o.max||l.y<o.min||l.y>o.max)&&r.warnOnce("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return n}},9063:function(t,e,n){function r(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var u=n(9207).j,l=(n(6016),n(1786).register),c=n(5615).PossiblyEvaluatedPropertyValue,f=n(4832),p=f.StructArrayLayout1f4,h=f.StructArrayLayout2f8,y=f.StructArrayLayout4f16;function d(t){return[u(255*t.r,255*t.g),u(255*t.b,255*t.a)]}var v=function(){function t(e,n,r){o(this,t),this.value=e,this.name=n,this.type=r,this.statistics={max:-1/0}}return s(t,[{key:"defines",value:function(){return["#define HAS_UNIFORM_u_".concat(this.name)]}},{key:"populatePaintArray",value:function(){}},{key:"upload",value:function(){}},{key:"destroy",value:function(){}},{key:"setUniforms",value:function(t,e,n,r){var i=r.constantOr(this.value),o=t.gl;"color"===this.type?o.uniform4f(e.uniforms["u_".concat(this.name)],i.r,i.g,i.b,i.a):o.uniform1f(e.uniforms["u_".concat(this.name)],i)}}]),t}(),m=function(){function t(e,n,r){o(this,t),this.expression=e,this.name=n,this.type=r,this.statistics={max:-1/0};var i="color"===r?h:p;this.paintVertexAttributes=[{name:"a_".concat(n),type:"Float32",components:"color"===r?2:1,offset:0}],this.paintVertexArray=new i}return s(t,[{key:"defines",value:function(){return[]}},{key:"populatePaintArray",value:function(t,e){var n=this.paintVertexArray,r=n.length;n.reserve(t);var i=this.expression.evaluate({zoom:0},e);if("color"===this.type)for(var o=d(i),a=r;a<t;a++)n.emplaceBack(o[0],o[1]);else{for(var s=r;s<t;s++)n.emplaceBack(i);this.statistics.max=Math.max(this.statistics.max,i)}}},{key:"upload",value:function(t){this.paintVertexArray&&(this.paintVertexBuffer=t.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes))}},{key:"destroy",value:function(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()}},{key:"setUniforms",value:function(t,e){t.gl.uniform1f(e.uniforms["a_".concat(this.name,"_t")],0)}}]),t}(),g=function(){function t(e,n,r,i,a){o(this,t),this.expression=e,this.name=n,this.type=r,this.useIntegerZoom=i,this.zoom=a,this.statistics={max:-1/0};var s="color"===r?y:h;this.paintVertexAttributes=[{name:"a_".concat(n),type:"Float32",components:"color"===r?4:2,offset:0}],this.paintVertexArray=new s}return s(t,[{key:"defines",value:function(){return[]}},{key:"populatePaintArray",value:function(t,e){var n=this.paintVertexArray,r=n.length;n.reserve(t);var i=this.expression.evaluate({zoom:this.zoom},e),o=this.expression.evaluate({zoom:this.zoom+1},e);if("color"===this.type)for(var a=d(i),s=d(o),u=r;u<t;u++)n.emplaceBack(a[0],a[1],s[0],s[1]);else{for(var l=r;l<t;l++)n.emplaceBack(i,o);this.statistics.max=Math.max(this.statistics.max,i,o)}}},{key:"upload",value:function(t){this.paintVertexArray&&(this.paintVertexBuffer=t.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes))}},{key:"destroy",value:function(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()}},{key:"interpolationFactor",value:function(t){return this.useIntegerZoom?this.expression.interpolationFactor(Math.floor(t),this.zoom,this.zoom+1):this.expression.interpolationFactor(t,this.zoom,this.zoom+1)}},{key:"setUniforms",value:function(t,e,n){t.gl.uniform1f(e.uniforms["a_".concat(this.name,"_t")],this.interpolationFactor(n.zoom))}}]),t}(),b=function(){function t(){o(this,t),this.binders={},this.cacheKey="",this._buffers=[]}return s(t,[{key:"populatePaintArrays",value:function(t,e){for(var n in this.binders)this.binders[n].populatePaintArray(t,e)}},{key:"defines",value:function(){var t=[];for(var e in this.binders)t.push.apply(t,this.binders[e].defines());return t}},{key:"setUniforms",value:function(t,e,n,r){for(var i in this.binders)this.binders[i].setUniforms(t,e,r,n.get(i))}},{key:"getPaintVertexBuffers",value:function(){return this._buffers}},{key:"upload",value:function(t){for(var e in this.binders)this.binders[e].upload(t);var n=[];for(var r in this.binders){var i=this.binders[r];(i instanceof m||i instanceof g)&&i.paintVertexBuffer&&n.push(i.paintVertexBuffer)}this._buffers=n}},{key:"destroy",value:function(){for(var t in this.binders)this.binders[t].destroy()}}],[{key:"createDynamic",value:function(e,n,r){var i=new t,o=[];for(var a in e.paint._values)if(r(a)){var s=e.paint.get(a);if(s instanceof c&&s.property.specification["property-function"]){var u=w(a,e.type),l=s.property.specification.type,f=s.property.useIntegerZoom;"constant"===s.value.kind?(i.binders[a]=new v(s.value,u,l),o.push("/u_".concat(u))):"source"===s.value.kind?(i.binders[a]=new m(s.value,u,l),o.push("/a_".concat(u))):(i.binders[a]=new g(s.value,u,l,f,n),o.push("/z_".concat(u)))}}return i.cacheKey=o.sort().join(""),i}}]),t}(),x=function(){function t(e,n,i){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){return!0};o(this,t),this.programConfigurations={};var s,u=r(n);try{for(u.s();!(s=u.n()).done;){var l=s.value;this.programConfigurations[l.id]=b.createDynamic(l,i,a),this.programConfigurations[l.id].layoutAttributes=e}}catch(t){u.e(t)}finally{u.f()}}return s(t,[{key:"populatePaintArrays",value:function(t,e){for(var n in this.programConfigurations)this.programConfigurations[n].populatePaintArrays(t,e)}},{key:"get",value:function(t){return this.programConfigurations[t]}},{key:"upload",value:function(t){for(var e in this.programConfigurations)this.programConfigurations[e].upload(t)}},{key:"destroy",value:function(){for(var t in this.programConfigurations)this.programConfigurations[t].destroy()}}]),t}();function w(t,e){return{"text-opacity":"opacity","icon-opacity":"opacity","text-color":"fill_color","icon-color":"fill_color","text-halo-color":"halo_color","icon-halo-color":"halo_color","text-halo-blur":"halo_blur","icon-halo-blur":"halo_blur","text-halo-width":"halo_width","icon-halo-width":"halo_width","line-gap-width":"gapwidth"}[t]||t.replace("".concat(e,"-"),"").replace(/-/g,"_")}l("ConstantBinder",v),l("SourceExpressionBinder",m),l("CompositeExpressionBinder",g),l("ProgramConfiguration",b,{omit:["_buffers"]}),l("ProgramConfigurationSet",x),t.exports={ProgramConfiguration:b,ProgramConfigurationSet:x}},8500:function(t,e,n){function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var a=n(8316).warnOnce,s=n(1786).register,u=Math.pow(2,16)-1,l=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];i(this,e),this.segments=t}var n,s;return n=e,(s=[{key:"prepareSegment",value:function(e,n,r){var i=this.segments[this.segments.length-1];return e>u&&a("Max vertices per segment is ".concat(u,": bucket requested ").concat(e)),(!i||i.vertexLength+e>t.exports.MAX_VERTEX_ARRAY_LENGTH)&&(i={vertexOffset:n.length,primitiveOffset:r.length,vertexLength:0,primitiveLength:0},this.segments.push(i)),i}},{key:"get",value:function(){return this.segments}},{key:"destroy",value:function(){var t,e=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,o=function(){};return{s:o,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}(this.segments);try{for(e.s();!(t=e.n()).done;){var n=t.value;for(var i in n.vaos)n.vaos[i].destroy()}}catch(t){e.e(t)}finally{e.f()}}}])&&o(n.prototype,s),Object.defineProperty(n,"prototype",{writable:!1}),e}();s("SegmentVector",l),t.exports={SegmentVector:l,MAX_VERTEX_ARRAY_LENGTH:u}},3892:function(t){function e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var n=function(){function t(e,n,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.column=e,this.row=n,this.zoom=r}var n,r;return n=t,(r=[{key:"clone",value:function(){return new t(this.column,this.row,this.zoom)}},{key:"zoomTo",value:function(t){return this.clone()._zoomTo(t)}},{key:"sub",value:function(t){return this.clone()._sub(t)}},{key:"_zoomTo",value:function(t){var e=Math.pow(2,t-this.zoom);return this.column*=e,this.row*=e,this.zoom=t,this}},{key:"_sub",value:function(t){return t=t.zoomTo(this.zoom),this.column-=t.column,this.row-=t.row,this}}])&&e(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),t}();t.exports=n},5274:function(t,e,n){var r=n(3775),i=n(5641).AlphaImage;t.exports={makeGlyphAtlas:function(t){var e=new i({width:0,height:0}),n={},o=new r(0,0,{autoResize:!0});for(var a in t){var s=t[a],u=n[a]={};for(var l in s){var c=s[+l];if(c&&0!==c.bitmap.width&&0!==c.bitmap.height){var f=o.packOne(c.bitmap.width+2,c.bitmap.height+2);e.resize({width:o.w,height:o.h}),i.copy(c.bitmap,e,{x:0,y:0},{x:f.x+1,y:f.y+1},c.bitmap),u[l]={rect:f,metrics:c.metrics}}}}return o.shrink(),e.resize({width:o.w,height:o.h}),{image:e,positions:n}}}},6542:function(t,e,n){var r=n(3775),i=n(5641).RGBAImage;function o(t,e){var n=e.pixelRatio,r={x:t.x+1,y:t.y+1,w:t.w-2,h:t.h-2};return{pixelRatio:n,textureRect:r,tl:[r.x,r.y],br:[r.x+r.w,r.y+r.h],displaySize:[r.w/n,r.h/n]}}t.exports={imagePosition:o,makeImageAtlas:function(t){var e=new i({width:0,height:0}),n={},a=new r(0,0,{autoResize:!0});for(var s in t){var u=t[s],l=a.packOne(u.data.width+2,u.data.height+2);e.resize({width:a.w,height:a.h}),i.copy(u.data,e,{x:0,y:0},{x:l.x+1,y:l.y+1},u.data),n[s]=o(l,u)}return a.shrink(),e.resize({width:a.w,height:a.h}),{image:e,positions:n}}}},9207:function(t,e,n){var r=n(8316);e.j=function(t,e){return 256*(t=r.clamp(Math.floor(t),0,255))+r.clamp(Math.floor(e),0,255)}},6513:function(t,e,n){function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(){return o="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=a(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},o.apply(this,arguments)}function a(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=l(t)););return t}function s(t,e){return s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},s(t,e)}function u(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return t}(t)}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}var c=n(2341),f=n(7486),p=n(7060),h=n(9937),y=n(5975),d=n(8592).Z;function v(t,e){var n=t.source,r=t.tileID.canonical;if(!this._geoJSONIndexes[n])return e(null,null);var i=this._geoJSONIndexes[n].getTile(r.z,r.x,r.y);if(!i)return e(null,null);var o=new p(i.features),a=h(o);0===a.byteOffset&&a.byteLength===a.buffer.byteLength||(a=new Uint8Array(a)),e(null,{vectorTile:o,rawData:a.buffer})}var m=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(m,t);var e,n,a,p,h=(a=m,p=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=l(a);if(p){var n=l(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return u(this,t)});function m(t,e,n){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,m),r=h.call(this,t,e,v),n&&(r.loadGeoJSON=n),r._geoJSONIndexes={},r}return e=m,(n=[{key:"loadData",value:function(t,e){var n=this;this.loadGeoJSON(t,(function(i,o){if(i||!o)return e(i);if("object"!==r(o))return e(new Error("Input data is not a valid GeoJSON object."));f(o,!0);try{n._geoJSONIndexes[t.source]=t.cluster?y(t.superclusterOptions).load(o.features):d(o,t.geojsonVtOptions)}catch(i){return e(i)}n.loaded[t.source]={},e(null)}))}},{key:"reloadTile",value:function(t,e){var n=this.loaded[t.source],r=t.uid;return n&&n[r]?o(l(m.prototype),"reloadTile",this).call(this,t,e):this.loadTile(t,e)}},{key:"loadGeoJSON",value:function(t,e){if(t.request)c.getJSON(t.request,e);else{if("string"!=typeof t.data)return e(new Error("Input data is not a valid GeoJSON object."));try{return e(null,JSON.parse(t.data))}catch(t){return e(new Error("Input data is not a valid GeoJSON object."))}}}},{key:"removeSource",value:function(t,e){this._geoJSONIndexes[t.source]&&delete this._geoJSONIndexes[t.source],e()}}])&&i(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),m}(n(1015));t.exports=m},7060:function(t,e,n){function r(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var u=n(5550),l=n(8929).VectorTileFeature.prototype.toGeoJSON,c=n(900),f=function(){function t(e){o(this,t),this._feature=e,this.extent=c,this.type=e.type,this.properties=e.tags,"id"in e&&!isNaN(e.id)&&(this.id=parseInt(e.id,10))}return s(t,[{key:"loadGeometry",value:function(){if(1===this._feature.type){var t,e=[],n=r(this._feature.geometry);try{for(n.s();!(t=n.n()).done;){var i=t.value;e.push([new u(i[0],i[1])])}}catch(t){n.e(t)}finally{n.f()}return e}var o,a=[],s=r(this._feature.geometry);try{for(s.s();!(o=s.n()).done;){var l,c=o.value,f=[],p=r(c);try{for(p.s();!(l=p.n()).done;){var h=l.value;f.push(new u(h[0],h[1]))}}catch(t){p.e(t)}finally{p.f()}a.push(f)}}catch(t){s.e(t)}finally{s.f()}return a}},{key:"toGeoJSON",value:function(t,e,n){return l.call(this,t,e,n)}}]),t}(),p=function(){function t(e){o(this,t),this.layers={_geojsonTileLayer:this},this.name="_geojsonTileLayer",this.extent=c,this.length=e.length,this._features=e}return s(t,[{key:"feature",value:function(t){return new f(this._features[t])}}]),t}();t.exports=p},9371:function(t,e,n){function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var i=n(183).DEMData,o=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.loading={},this.loaded={}}var e,n;return e=t,(n=[{key:"loadTile",value:function(t,e){var n=t.source,r=t.uid;this.loading[n]||(this.loading[n]={});var o=new i(r);this.loading[n][r]=o,o.loadFromImage(t.rawImageData),delete this.loading[n][r],this.loaded[n]=this.loaded[n]||{},this.loaded[n][r]=o,e(null,o)}},{key:"removeTile",value:function(t){var e=this.loaded[t.source],n=t.uid;e&&e[n]&&delete e[n]}}])&&r(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();t.exports=o},4781:function(t,e,n){var r=n(2341),i=n(1495),o=n(1362),a=!1,s=null;t.exports.evented=new i,t.exports.registerForPluginAvailability=function(e){return s?e({pluginBlobURL:s,errorCallback:t.exports.errorCallback}):t.exports.evented.once("pluginAvailable",e),e},t.exports.createBlobURL=function(t){return o.URL.createObjectURL(new o.Blob([t.data],{type:"text/javascript"}))},t.exports.clearRTLTextPlugin=function(){a=!1,s=null},t.exports.setRTLTextPlugin=function(e,n){if(a)throw new Error("setRTLTextPlugin cannot be called multiple times.");a=!0,t.exports.errorCallback=n,r.getArrayBuffer({url:e},(function(e,r){e?n(e):r&&(s=t.exports.createBlobURL(r),t.exports.evented.fire("pluginAvailable",{pluginBlobURL:s,errorCallback:n}))}))},t.exports.applyArabicShaping=null,t.exports.processBidirectionalText=null},4792:function(t,e,n){function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var a=n(8620),s=n(8583),u=n(1786).register,l=n(3892),c=function(){function t(e,n,i){r(this,t),s(e>=0&&e<=25),s(n>=0&&n<Math.pow(2,e+1)),s(i>=0&&i<Math.pow(2,e)),this.z=e,this.x=n,this.y=i,this.key=h(0,e,n,i)}return o(t,[{key:"equals",value:function(t){return this.z===t.z&&this.x===t.x&&this.y===t.y}},{key:"url",value:function(t,e){var n=a.getTileBBox(this.x,this.y,this.z),r=function(t,e,n){for(var r,i="",o=t;o>0;o--)i+=(e&(r=1<<o-1)?1:0)+(n&r?2:0);return i}(this.z,this.x,this.y);return t[(this.x+this.y)%t.length].replace("{prefix}",(this.x%16).toString(16)+(this.y%16).toString(16)).replace("{z}",String(this.z)).replace("{x}",String(this.x)).replace("{y}",String("tms"===e?Math.pow(2,this.z)-this.y-1:this.y)).replace("{quadkey}",r).replace("{bbox-epsg-3857}",n)}}]),t}(),f=o((function t(e,n,i){r(this,t),this.wrap=e,this.canonical=n,this.key=h(e,n.z,n.x,n.y),this.posMatrix=i})),p=function(){function t(e,n,i,o,a){r(this,t),s(e>=i),this.overscaledZ=e,this.wrap=n,this.canonical=new c(i,+o,+a),this.key=h(n,e,o,a)}return o(t,[{key:"scaledTo",value:function(e){s(e<=this.overscaledZ);var n=this.canonical.z-e;return e>this.canonical.z?new t(e,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new t(e,this.wrap,e,this.canonical.x>>n,this.canonical.y>>n)}},{key:"isChildOf",value:function(t){var e=this.canonical.z-t.canonical.z;return 0===t.overscaledZ||t.overscaledZ<this.overscaledZ&&t.canonical.x===this.canonical.x>>e&&t.canonical.y===this.canonical.y>>e}},{key:"children",value:function(e){if(this.overscaledZ>=e)return[new t(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var n=this.canonical.z+1,r=2*this.canonical.x,i=2*this.canonical.y;return[new t(n,this.wrap,n,r,i),new t(n,this.wrap,n,r+1,i),new t(n,this.wrap,n,r,i+1),new t(n,this.wrap,n,r+1,i+1)]}},{key:"isLessThan",value:function(t){return this.wrap<t.wrap||!(this.wrap>t.wrap)&&(this.overscaledZ<t.overscaledZ||!(this.overscaledZ>t.overscaledZ)&&(this.canonical.x<t.canonical.x||!(this.canonical.x>t.canonical.x)&&this.canonical.y<t.canonical.y))}},{key:"wrapped",value:function(){return new t(this.overscaledZ,0,this.canonical.z,this.canonical.x,this.canonical.y)}},{key:"overscaleFactor",value:function(){return Math.pow(2,this.overscaledZ-this.canonical.z)}},{key:"toUnwrapped",value:function(){return new f(this.wrap,this.canonical,this.posMatrix)}},{key:"toString",value:function(){return"".concat(this.overscaledZ,"/").concat(this.canonical.x,"/").concat(this.canonical.y)}},{key:"toCoordinate",value:function(){return new l(this.canonical.x+Math.pow(2,this.wrap),this.canonical.y,this.canonical.z)}}]),t}();function h(t,e,n,r){(t*=2)<0&&(t=-1*t-1);var i=1<<e;return 32*(i*i*t+i*r+n)+e}u("CanonicalTileID",c),u("OverscaledTileID",p,{omit:["posMatrix"]}),t.exports={CanonicalTileID:c,OverscaledTileID:p,UnwrappedTileID:f}},1015:function(t,e,n){function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var i=n(2341),o=n(8929),a=n(3614),s=n(8826),u=n(8316);function l(t,e){var n=i.getArrayBuffer(t.request,(function(t,n){t?e(t):n&&e(null,{vectorTile:new o.VectorTile(new a(n.data)),rawData:n.data,cacheControl:n.cacheControl,expires:n.expires})}));return function(){n.abort(),e()}}var c=function(){function t(e,n,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.actor=e,this.layerIndex=n,this.loadVectorData=r||l,this.loading={},this.loaded={}}var e,n;return e=t,(n=[{key:"loadTile",value:function(t,e){var n=this,r=t.source,i=t.uid;this.loading[r]||(this.loading[r]={});var o=this.loading[r][i]=new s(t);o.abort=this.loadVectorData(t,(function(t,a){if(delete n.loading[r][i],t||!a)return e(t);var s=a.rawData,l={};a.expires&&(l.expires=a.expires),a.cacheControl&&(l.cacheControl=a.cacheControl),o.vectorTile=a.vectorTile,o.parse(a.vectorTile,n.layerIndex,n.actor,(function(t,n){if(t||!n)return e(t);e(null,u.extend({rawTileData:s.slice(0)},n,l))})),n.loaded[r]=n.loaded[r]||{},n.loaded[r][i]=o}))}},{key:"reloadTile",value:function(t,e){var n=this.loaded[t.source],r=t.uid,i=this;if(n&&n[r]){var o=n[r];o.showCollisionBoxes=t.showCollisionBoxes,"parsing"===o.status?o.reloadCallback=a.bind(o):"done"===o.status&&o.parse(o.vectorTile,this.layerIndex,this.actor,a.bind(o))}function a(t,n){if(this.reloadCallback){var r=this.reloadCallback;delete this.reloadCallback,this.parse(this.vectorTile,i.layerIndex,i.actor,r)}e(t,n)}}},{key:"abortTile",value:function(t,e){var n=this.loading[t.source],r=t.uid;n&&n[r]&&n[r].abort&&(n[r].abort(),delete n[r]),e()}},{key:"removeTile",value:function(t,e){var n=this.loaded[t.source],r=t.uid;n&&n[r]&&delete n[r],e()}}])&&r(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();t.exports=c},8826:function(t,e,n){function r(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var a=n(5346),s=n(9457).performSymbolLayout,u=n(4832).CollisionBoxArray,l=n(621),c=n(5571),f=n(8316),p=n(8583),h=n(6542).makeImageAtlas,y=n(5274).makeGlyphAtlas,d=n(7627),v=n(4792).OverscaledTileID,m=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.tileID=new v(e.tileID.overscaledZ,e.tileID.wrap,e.tileID.canonical.z,e.tileID.canonical.x,e.tileID.canonical.y),this.uid=e.uid,this.zoom=e.zoom,this.pixelRatio=e.pixelRatio,this.tileSize=e.tileSize,this.source=e.source,this.overscaling=e.overscaling,this.showCollisionBoxes=e.showCollisionBoxes}var e,n;return e=t,(n=[{key:"parse",value:function(t,e,n,i){var o=this;this.status="parsing",this.data=t,this.collisionBoxArray=new u;var d=new l(Object.keys(t.layers).sort()),v=new a(this.tileID,this.overscaling);v.bucketLayerIDs=[];var m,b,x,w={},k={featureIndex:v,iconDependencies:{},glyphDependencies:{}},S=e.familiesBySource[this.source];for(var _ in S){var A=t.layers[_];if(A){1===A.version&&f.warnOnce(\'Vector tile source "\'.concat(this.source,\'" layer "\').concat(_,\'" \')+"does not use vector tile spec v2 and therefore may have some rendering errors.");for(var j=d.encode(_),O=[],T=0;T<A.length;T++){var P=A.feature(T);O.push({feature:P,index:T,sourceLayerIndex:j})}var z,I=r(S[_]);try{for(I.s();!(z=I.n()).done;){var E=z.value,C=E[0];p(C.source===this.source),C.minzoom&&this.zoom<Math.floor(C.minzoom)||C.maxzoom&&this.zoom>=C.maxzoom||"none"!==C.visibility&&(g(E,this.zoom),(w[C.id]=C.createBucket({index:v.bucketLayerIDs.length,layers:E,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray})).populate(O,k),v.bucketLayerIDs.push(E.map((function(t){return t.id}))))}}catch(t){I.e(t)}finally{I.f()}}}var M=f.mapObject(k.glyphDependencies,(function(t){return Object.keys(t).map(Number)}));Object.keys(M).length?n.send("getGlyphs",{uid:this.uid,stacks:M},(function(t,e){m||(m=t,b=e,V.call(o))})):b={};var B=Object.keys(k.iconDependencies);function V(){if(m)return i(m);if(b&&x){var t=y(b),e=h(x);for(var n in w){var r=w[n];r instanceof c&&(g(r.layers,this.zoom),s(r,b,t.positions,x,e.positions,this.showCollisionBoxes))}this.status="done",i(null,{buckets:f.values(w).filter((function(t){return!t.isEmpty()})),featureIndex:v,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:t.image,iconAtlasImage:e.image})}}B.length?n.send("getImages",{icons:B},(function(t,e){m||(m=t,x=e,V.call(o))})):x={},V.call(this)}}])&&o(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function g(t,e){var n,i=new d(e),o=r(t);try{for(o.s();!(n=o.n()).done;)n.value.recalculate(i)}catch(t){o.e(t)}finally{o.f()}}t.exports=m},1737:function(t){t.exports=function(t,e,n){this.message=(t?"".concat(t,": "):"")+n,null!=e&&e.__line__&&(this.line=e.__line__)}},5827:function(t,e,n){function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(t){s=!0,i=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(t,e)||i(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){if(t){if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var s=n(5864).toString,u=n(487),l=(n(8202),n(8583)),c=function(){function t(e,n,r,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.name=e,this.type=n,this._evaluate=r,this.args=i}var e,n,o;return e=t,o=[{key:"parse",value:function(e,n){var o=e[0],a=t.definitions[o];if(!a)return n.error(\'Unknown expression "\'.concat(o,\'". If you wanted a literal array, use ["literal", [...]].\'),0);for(var c=Array.isArray(a)?a[0]:a.type,f=Array.isArray(a)?[[a[1],a[2]]]:a.overloads,p=f.filter((function(t){var n=r(t,1)[0];return!Array.isArray(n)||n.length===e.length-1})),h=[],y=1;y<e.length;y++){var d=e[y],v=void 0;if(1===p.length){var m=p[0][0];v=Array.isArray(m)?m[y-1]:m.type}var g=n.parse(d,1+h.length,v);if(!g)return null;h.push(g)}var b,x=null,w=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=i(t))){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}(p);try{for(w.s();!(b=w.n()).done;){var k=r(b.value,2),S=k[0],_=k[1];if(x=new u(n.registry,n.path,null,n.scope),Array.isArray(S)&&S.length!==h.length)x.error("Expected ".concat(S.length," arguments, but found ").concat(h.length," instead."));else{for(var A=0;A<h.length;A++){var j=Array.isArray(S)?S[A]:S.type,O=h[A];x.concat(A+1).checkSubtype(j,O.type)}if(0===x.errors.length)return new t(o,c,_,h)}}}catch(t){w.e(t)}finally{w.f()}if(l(!x||x.errors.length>0),1===p.length)n.errors.push.apply(n.errors,x.errors);else{var T=(p.length?p:f).map((function(t){var e;return e=r(t,1)[0],Array.isArray(e)?"(".concat(e.map(s).join(", "),")"):"(".concat(s(e.type),"...)")})).join(" | "),P=h.map((function(t){return s(t.type)})).join(", ");n.error("Expected arguments of type ".concat(T,", but found (").concat(P,") instead."))}return null}},{key:"register",value:function(e,n){for(var r in l(!t.definitions),t.definitions=n,n)e[r]=t}}],(n=[{key:"evaluate",value:function(t){return this._evaluate(t,this.args)}},{key:"eachChild",value:function(t){this.args.forEach(t)}},{key:"possibleOutputs",value:function(){return[void 0]}}])&&a(e.prototype,n),o&&a(e,o),Object.defineProperty(e,"prototype",{writable:!1}),t}();t.exports={CompoundExpression:c,varargs:function(t){return{type:t}}}},2779:function(t,e,n){function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var i=n(5864),o=i.toString,a=i.array,s=i.ValueType,u=i.StringType,l=i.NumberType,c=i.BooleanType,f=i.checkSubtype,p=n(1235).typeOf,h=n(7867),y={string:u,number:l,boolean:c},d=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.type=e,this.input=n}var e,n,i;return e=t,i=[{key:"parse",value:function(e,n){if(e.length<2||e.length>4)return n.error("Expected 1, 2, or 3 arguments, but found ".concat(e.length-1," instead."));var r,i;if(e.length>2){var o=e[1];if("string"!=typeof o||!(o in y))return n.error(\'The item type argument of "array" must be one of string, number, boolean\',1);r=y[o]}else r=s;if(e.length>3){if("number"!=typeof e[2]||e[2]<0||e[2]!==Math.floor(e[2]))return n.error(\'The length argument to "array" must be a positive integer literal\',2);i=e[2]}var u=a(r,i),l=n.parse(e[e.length-1],e.length-1,s);return l?new t(u,l):null}}],(n=[{key:"evaluate",value:function(t){var e=this.input.evaluate(t);if(f(this.type,p(e)))throw new h("Expected value to be of type ".concat(o(this.type),", but found ").concat(o(p(e))," instead."));return e}},{key:"eachChild",value:function(t){t(this.input)}},{key:"possibleOutputs",value:function(){return this.input.possibleOutputs()}}])&&r(e.prototype,n),i&&r(e,i),Object.defineProperty(e,"prototype",{writable:!1}),t}();t.exports=d},4434:function(t,e,n){function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var o=n(8583),a=n(5864),s=a.ObjectType,u=a.ValueType,l=a.StringType,c=a.NumberType,f=a.BooleanType,p=n(7867),h=n(5864),y=h.checkSubtype,d=h.toString,v=n(1235).typeOf,m={string:l,number:c,boolean:f,object:s},g=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.type=e,this.args=n}var e,n,a;return e=t,a=[{key:"parse",value:function(e,n){if(e.length<2)return n.error("Expected at least one argument.");var r=e[0];o(m[r],r);for(var i=m[r],a=[],s=1;s<e.length;s++){var l=n.parse(e[s],s,u);if(!l)return null;a.push(l)}return new t(i,a)}}],(n=[{key:"evaluate",value:function(t){for(var e=0;e<this.args.length;e++){var n=this.args[e].evaluate(t);if(!y(this.type,v(n)))return n;if(e===this.args.length-1)throw new p("Expected value to be of type ".concat(d(this.type),", but found ").concat(d(v(n))," instead."))}return o(!1),null}},{key:"eachChild",value:function(t){this.args.forEach(t)}},{key:"possibleOutputs",value:function(){var t,e;return(t=[]).concat.apply(t,function(t){if(Array.isArray(t))return r(t)}(e=this.args.map((function(t){return t.possibleOutputs()})))||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||function(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}}])&&i(e.prototype,n),a&&i(e,a),Object.defineProperty(e,"prototype",{writable:!1}),t}();t.exports=g},4379:function(t,e,n){function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var i=n(5864),o=i.array,a=i.ValueType,s=i.NumberType,u=n(7867),l=function(){function t(e,n,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.type=e,this.index=n,this.input=r}var e,n,i;return e=t,n=[{key:"evaluate",value:function(t){var e=this.index.evaluate(t),n=this.input.evaluate(t);if(e<0||e>=n.length)throw new u("Array index out of bounds: ".concat(e," > ").concat(n.length,"."));if(e!==Math.floor(e))throw new u("Array index must be an integer, but found ".concat(e," instead."));return n[e]}},{key:"eachChild",value:function(t){t(this.index),t(this.input)}},{key:"possibleOutputs",value:function(){return[void 0]}}],i=[{key:"parse",value:function(e,n){if(3!==e.length)return n.error("Expected 2 arguments, but found ".concat(e.length-1," instead."));var r=n.parse(e[1],1,s),i=n.parse(e[2],2,o(n.expectedType||a));return r&&i?new t(i.type.itemType,r,i):null}}],n&&r(e.prototype,n),i&&r(e,i),Object.defineProperty(e,"prototype",{writable:!1}),t}();t.exports=l},8955:function(t,e,n){function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(t){s=!0,i=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(t,e)||o(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=o(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function o(t,e){if(t){if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(t,e):void 0}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var u=n(8583),l=n(5864).BooleanType,c=function(){function t(e,n,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.type=e,this.branches=n,this.otherwise=r}var e,n,c;return e=t,c=[{key:"parse",value:function(e,n){if(e.length<4)return n.error("Expected at least 3 arguments, but found only ".concat(e.length-1,"."));if(e.length%2!=0)return n.error("Expected an odd number of arguments.");var r;n.expectedType&&"value"!==n.expectedType.kind&&(r=n.expectedType);for(var i=[],o=1;o<e.length-1;o+=2){var a=n.parse(e[o],o,l);if(!a)return null;var s=n.parse(e[o+1],o+1,r);if(!s)return null;i.push([a,s]),r=r||s.type}var c=n.parse(e[e.length-1],e.length-1,r);return c?(u(r),new t(r,i,c)):null}}],(n=[{key:"evaluate",value:function(t){var e,n=i(this.branches);try{for(n.s();!(e=n.n()).done;){var o=r(e.value,2),a=o[0],s=o[1];if(a.evaluate(t))return s.evaluate(t)}}catch(t){n.e(t)}finally{n.f()}return this.otherwise.evaluate(t)}},{key:"eachChild",value:function(t){var e,n=i(this.branches);try{for(n.s();!(e=n.n()).done;){var o=r(e.value,2),a=o[0],s=o[1];t(a),t(s)}}catch(t){n.e(t)}finally{n.f()}t(this.otherwise)}},{key:"possibleOutputs",value:function(){var t,e;return(t=[]).concat.apply(t,(e=this.branches.map((function(t){var e=r(t,2);return e[0],e[1].possibleOutputs()})),function(t){if(Array.isArray(t))return a(t)}(e)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||o(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())).concat(this.otherwise.possibleOutputs())}}])&&s(e.prototype,n),c&&s(e,c),Object.defineProperty(e,"prototype",{writable:!1}),t}();t.exports=c},1910:function(t,e,n){function r(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=i(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function i(t,e){if(t){if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var s=n(8583),u=n(5864),l=u.checkSubtype,c=u.ValueType,f=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.type=e,this.args=n}var e,n,u;return e=t,u=[{key:"parse",value:function(e,n){if(e.length<2)return n.error("Expectected at least one argument.");var i=null,o=n.expectedType;o&&"value"!==o.kind&&(i=o);var a,u=[],f=r(e.slice(1));try{for(f.s();!(a=f.n()).done;){var p=a.value,h=n.parse(p,1+u.length,i,void 0,{omitTypeAnnotations:!0});if(!h)return null;i=i||h.type,u.push(h)}}catch(t){f.e(t)}finally{f.f()}s(i);var y=o&&u.some((function(t){return l(o,t.type)}));return new t(y?c:i,u)}}],(n=[{key:"evaluate",value:function(t){var e,n=null,i=r(this.args);try{for(i.s();!(e=i.n()).done&&null===(n=e.value.evaluate(t)););}catch(t){i.e(t)}finally{i.f()}return n}},{key:"eachChild",value:function(t){this.args.forEach(t)}},{key:"possibleOutputs",value:function(){var t,e;return(t=[]).concat.apply(t,function(t){if(Array.isArray(t))return o(t)}(e=this.args.map((function(t){return t.possibleOutputs()})))||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||i(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}}])&&a(e.prototype,n),u&&a(e,u),Object.defineProperty(e,"prototype",{writable:!1}),t}();t.exports=f},3287:function(t,e,n){function r(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=i(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function i(t,e){if(t){if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var s=n(8583),u=n(5864),l=u.ColorType,c=u.ValueType,f=u.NumberType,p=n(1235),h=p.Color,y=p.validateRGBA,d=n(7867),v={"to-number":f,"to-color":l},m=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.type=e,this.args=n}var e,n,u;return e=t,u=[{key:"parse",value:function(e,n){if(e.length<2)return n.error("Expected at least one argument.");var r=e[0];s(v[r],r);for(var i=v[r],o=[],a=1;a<e.length;a++){var u=n.parse(e[a],a,c);if(!u)return null;o.push(u)}return new t(i,o)}}],(n=[{key:"evaluate",value:function(t){if("color"===this.type.kind){var e,n,i,o=r(this.args);try{for(o.s();!(i=o.n()).done;)if(e=i.value.evaluate(t),n=null,"string"==typeof e){var a=t.parseColor(e);if(a)return a}else if(Array.isArray(e)&&!(n=e.length<3||e.length>4?"Invalid rbga value ".concat(JSON.stringify(e),": expected an array containing either three or four numeric values."):y(e[0],e[1],e[2],e[3])))return new h(e[0]/255,e[1]/255,e[2]/255,e[3])}catch(t){o.e(t)}finally{o.f()}throw new d(n||"Could not parse color from value \'".concat("string"==typeof e?e:JSON.stringify(e),"\'"))}var s,u=null,l=r(this.args);try{for(l.s();!(s=l.n()).done;)if(null!==(u=s.value.evaluate(t))){var c=Number(u);if(!isNaN(c))return c}}catch(t){l.e(t)}finally{l.f()}throw new d("Could not convert ".concat(JSON.stringify(u)," to number."))}},{key:"eachChild",value:function(t){this.args.forEach(t)}},{key:"possibleOutputs",value:function(){var t,e;return(t=[]).concat.apply(t,function(t){if(Array.isArray(t))return o(t)}(e=this.args.map((function(t){return t.possibleOutputs()})))||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||i(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}}])&&a(e.prototype,n),u&&a(e,u),Object.defineProperty(e,"prototype",{writable:!1}),t}();t.exports=m},8468:function(t,e,n){function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var i=n(5864),o=i.ValueType,a=i.BooleanType,s=n(5864).toString;function u(t){return"string"===t.kind||"number"===t.kind||"boolean"===t.kind||"null"===t.kind}function l(t){return function(){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),this.type=a,this.lhs=t,this.rhs=n}var n,i,l;return n=e,l=[{key:"parse",value:function(t,n){if(3!==t.length)return n.error("Expected two arguments.");var r=n.parse(t[1],1,o);if(!r)return null;var i=n.parse(t[2],2,o);return i?u(r.type)||u(i.type)?r.type.kind!==i.type.kind&&"value"!==r.type.kind&&"value"!==i.type.kind?n.error("Cannot compare ".concat(s(r.type)," and ").concat(s(i.type),".")):new e(r,i):n.error("Expected at least one argument to be a string, number, boolean, or null, but found (".concat(s(r.type),", ").concat(s(i.type),") instead.")):null}}],(i=[{key:"evaluate",value:function(e){return t(this.lhs.evaluate(e),this.rhs.evaluate(e))}},{key:"eachChild",value:function(t){t(this.lhs),t(this.rhs)}},{key:"possibleOutputs",value:function(){return[!0,!1]}}])&&r(n.prototype,i),l&&r(n,l),Object.defineProperty(n,"prototype",{writable:!1}),e}()}t.exports={Equals:l((function(t,e){return t===e})),NotEquals:l((function(t,e){return t!==e}))}},6416:function(t,e,n){function r(t){return function(t){if(Array.isArray(t))return u(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||s(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=s(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw o}}}}function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function a(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(t){s=!0,i=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(t,e)||s(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){if(t){if("string"==typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var l=n(5864),c=l.NumberType,f=l.StringType,p=l.BooleanType,h=l.ColorType,y=l.ObjectType,d=l.ValueType,v=l.ErrorType,m=l.array,g=l.toString,b=n(1235),x=b.typeOf,w=b.Color,k=b.validateRGBA,S=n(5827),_=S.CompoundExpression,A=S.varargs,j=n(7867),O=n(7591),T=n(941),P=n(4598),z=n(4434),I=n(2779),E=n(3287),C=n(4379),M=n(6436),B=n(8955),V=n(4773),R=n(2955),L=n(1910),F=n(8468),D={"==":F.Equals,"!=":F.NotEquals,array:I,at:C,boolean:z,case:B,coalesce:L,interpolate:R,let:O,literal:P,match:M,number:z,object:z,step:V,string:z,"to-color":E,"to-number":E,var:T};function q(t,e){var n=a(e,4),r=n[0],i=n[1],o=n[2],s=n[3];r=r.evaluate(t),i=i.evaluate(t),o=o.evaluate(t);var u=s?s.evaluate(t):1,l=k(r,i,o,u);if(l)throw new j(l);return new w(r/255*u,i/255*u,o/255*u,u)}function U(t,e){return t in e}function N(t,e){var n=e[t];return void 0===n?null:n}function J(t,e){return a(e,1)[0].evaluate(t).length}function G(t,e){var n=a(e,2),r=n[0],i=n[1];return r.evaluate(t)<i.evaluate(t)}function Z(t,e){var n=a(e,2),r=n[0],i=n[1];return r.evaluate(t)>i.evaluate(t)}function H(t,e){var n=a(e,2),r=n[0],i=n[1];return r.evaluate(t)<=i.evaluate(t)}function W(t,e){var n=a(e,2),r=n[0],i=n[1];return r.evaluate(t)>=i.evaluate(t)}_.register(D,{error:[v,[f],function(t,e){var n=a(e,1)[0];throw new j(n.evaluate(t))}],typeof:[f,[d],function(t,e){var n=a(e,1)[0];return g(x(n.evaluate(t)))}],"to-string":[f,[d],function(t,e){var n=a(e,1)[0],r=o(n=n.evaluate(t));return null===n||"string"===r||"number"===r||"boolean"===r?String(n):n instanceof w?n.toString():JSON.stringify(n)}],"to-boolean":[p,[d],function(t,e){var n=a(e,1)[0];return Boolean(n.evaluate(t))}],"to-rgba":[m(c,4),[h],function(t,e){var n=a(e,1)[0].evaluate(t),r=n.r,i=n.g,o=n.b,s=n.a;return[255*r/s,255*i/s,255*o/s,s]}],rgb:[h,[c,c,c],q],rgba:[h,[c,c,c,c],q],length:{type:c,overloads:[[[f],J],[[m(d)],J]]},has:{type:p,overloads:[[[f],function(t,e){return U(a(e,1)[0].evaluate(t),t.properties())}],[[f,y],function(t,e){var n=a(e,2),r=n[0],i=n[1];return U(r.evaluate(t),i.evaluate(t))}]]},get:{type:d,overloads:[[[f],function(t,e){return N(a(e,1)[0].evaluate(t),t.properties())}],[[f,y],function(t,e){var n=a(e,2),r=n[0],i=n[1];return N(r.evaluate(t),i.evaluate(t))}]]},properties:[y,[],function(t){return t.properties()}],"geometry-type":[f,[],function(t){return t.geometryType()}],id:[d,[],function(t){return t.id()}],zoom:[c,[],function(t){return t.globals.zoom}],"heatmap-density":[c,[],function(t){return t.globals.heatmapDensity||0}],"+":[c,A(c),function(t,e){var n,r=0,o=i(e);try{for(o.s();!(n=o.n()).done;)r+=n.value.evaluate(t)}catch(t){o.e(t)}finally{o.f()}return r}],"*":[c,A(c),function(t,e){var n,r=1,o=i(e);try{for(o.s();!(n=o.n()).done;)r*=n.value.evaluate(t)}catch(t){o.e(t)}finally{o.f()}return r}],"-":{type:c,overloads:[[[c,c],function(t,e){var n=a(e,2),r=n[0],i=n[1];return r.evaluate(t)-i.evaluate(t)}],[[c],function(t,e){return-a(e,1)[0].evaluate(t)}]]},"/":[c,[c,c],function(t,e){var n=a(e,2),r=n[0],i=n[1];return r.evaluate(t)/i.evaluate(t)}],"%":[c,[c,c],function(t,e){var n=a(e,2),r=n[0],i=n[1];return r.evaluate(t)%i.evaluate(t)}],ln2:[c,[],function(){return Math.LN2}],pi:[c,[],function(){return Math.PI}],e:[c,[],function(){return Math.E}],"^":[c,[c,c],function(t,e){var n=a(e,2),r=n[0],i=n[1];return Math.pow(r.evaluate(t),i.evaluate(t))}],sqrt:[c,[c],function(t,e){var n=a(e,1)[0];return Math.sqrt(n.evaluate(t))}],log10:[c,[c],function(t,e){var n=a(e,1)[0];return Math.log10(n.evaluate(t))}],ln:[c,[c],function(t,e){var n=a(e,1)[0];return Math.log(n.evaluate(t))}],log2:[c,[c],function(t,e){var n=a(e,1)[0];return Math.log2(n.evaluate(t))}],sin:[c,[c],function(t,e){var n=a(e,1)[0];return Math.sin(n.evaluate(t))}],cos:[c,[c],function(t,e){var n=a(e,1)[0];return Math.cos(n.evaluate(t))}],tan:[c,[c],function(t,e){var n=a(e,1)[0];return Math.tan(n.evaluate(t))}],asin:[c,[c],function(t,e){var n=a(e,1)[0];return Math.asin(n.evaluate(t))}],acos:[c,[c],function(t,e){var n=a(e,1)[0];return Math.acos(n.evaluate(t))}],atan:[c,[c],function(t,e){var n=a(e,1)[0];return Math.atan(n.evaluate(t))}],min:[c,A(c),function(t,e){return Math.min.apply(Math,r(e.map((function(e){return e.evaluate(t)}))))}],max:[c,A(c),function(t,e){return Math.max.apply(Math,r(e.map((function(e){return e.evaluate(t)}))))}],"filter-==":[p,[f,d],function(t,e){var n=a(e,2),r=n[0],i=n[1];return t.properties()[r.value]===i.value}],"filter-id-==":[p,[d],function(t,e){var n=a(e,1)[0];return t.id()===n.value}],"filter-type-==":[p,[f],function(t,e){var n=a(e,1)[0];return t.geometryType()===n.value}],"filter-<":[p,[f,d],function(t,e){var n=a(e,2),r=n[0],i=n[1],s=t.properties()[r.value],u=i.value;return o(s)===o(u)&&s<u}],"filter-id-<":[p,[d],function(t,e){var n=a(e,1)[0],r=t.id(),i=n.value;return o(r)===o(i)&&r<i}],"filter->":[p,[f,d],function(t,e){var n=a(e,2),r=n[0],i=n[1],s=t.properties()[r.value],u=i.value;return o(s)===o(u)&&s>u}],"filter-id->":[p,[d],function(t,e){var n=a(e,1)[0],r=t.id(),i=n.value;return o(r)===o(i)&&r>i}],"filter-<=":[p,[f,d],function(t,e){var n=a(e,2),r=n[0],i=n[1],s=t.properties()[r.value],u=i.value;return o(s)===o(u)&&s<=u}],"filter-id-<=":[p,[d],function(t,e){var n=a(e,1)[0],r=t.id(),i=n.value;return o(r)===o(i)&&r<=i}],"filter->=":[p,[f,d],function(t,e){var n=a(e,2),r=n[0],i=n[1],s=t.properties()[r.value],u=i.value;return o(s)===o(u)&&s>=u}],"filter-id->=":[p,[d],function(t,e){var n=a(e,1)[0],r=t.id(),i=n.value;return o(r)===o(i)&&r>=i}],"filter-has":[p,[d],function(t,e){return a(e,1)[0].value in t.properties()}],"filter-has-id":[p,[],function(t){return null!==t.id()}],"filter-type-in":[p,[m(f)],function(t,e){return a(e,1)[0].value.indexOf(t.geometryType())>=0}],"filter-id-in":[p,[m(d)],function(t,e){return a(e,1)[0].value.indexOf(t.id())>=0}],"filter-in-small":[p,[f,m(d)],function(t,e){var n=a(e,2),r=n[0];return n[1].value.indexOf(t.properties()[r.value])>=0}],"filter-in-large":[p,[f,m(d)],function(t,e){var n=a(e,2),r=n[0],i=n[1];return function(t,e,n,r){for(;n<=r;){var i=n+r>>1;if(e[i]===t)return!0;e[i]>t?r=i-1:n=i+1}return!1}(t.properties()[r.value],i.value,0,i.value.length-1)}],">":{type:p,overloads:[[[c,c],Z],[[f,f],Z]]},"<":{type:p,overloads:[[[c,c],G],[[f,f],G]]},">=":{type:p,overloads:[[[c,c],W],[[f,f],W]]},"<=":{type:p,overloads:[[[c,c],H],[[f,f],H]]},all:{type:p,overloads:[[[p,p],function(t,e){var n=a(e,2),r=n[0],i=n[1];return r.evaluate(t)&&i.evaluate(t)}],[A(p),function(t,e){var n,r=i(e);try{for(r.s();!(n=r.n()).done;)if(!n.value.evaluate(t))return!1}catch(t){r.e(t)}finally{r.f()}return!0}]]},any:{type:p,overloads:[[[p,p],function(t,e){var n=a(e,2),r=n[0],i=n[1];return r.evaluate(t)||i.evaluate(t)}],[A(p),function(t,e){var n,r=i(e);try{for(r.s();!(n=r.n()).done;)if(n.value.evaluate(t))return!0}catch(t){r.e(t)}finally{r.f()}return!1}]]},"!":[p,[p],function(t,e){return!a(e,1)[0].evaluate(t)}],upcase:[f,[f],function(t,e){return a(e,1)[0].evaluate(t).toUpperCase()}],downcase:[f,[f],function(t,e){return a(e,1)[0].evaluate(t).toLowerCase()}],concat:[f,A(f),function(t,e){return e.map((function(e){return e.evaluate(t)})).join("")}]}),t.exports=D},2955:function(t,e,n){function r(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function i(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(t){if(Array.isArray(t))return t}function a(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=s(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw o}}}}function s(t,e){if(t){if("string"==typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var c=n(9874),f=n(2643),p=n(5864),h=p.toString,y=p.NumberType,d=n(2670).findStopLessThanOrEqualTo,v=function(){function t(e,n,r,u){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.type=e,this.interpolation=n,this.input=r,this.labels=[],this.outputs=[];var l,c,f,p=a(u);try{for(p.s();!(l=p.n()).done;){var h=(c=l.value,f=2,o(c)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(t){s=!0,i=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(c,f)||s(c,f)||i()),y=h[0],d=h[1];this.labels.push(y),this.outputs.push(d)}}catch(t){p.e(t)}finally{p.f()}}var e,n,p;return e=t,p=[{key:"interpolationFactor",value:function(t,e,n,r){var i=0;if("exponential"===t.name)i=m(e,t.base,n,r);else if("linear"===t.name)i=m(e,1,n,r);else if("cubic-bezier"===t.name){var o=t.controlPoints;i=new c(o[0],o[1],o[2],o[3]).solve(m(e,1,n,r))}return i}},{key:"parse",value:function(e,n){var a,u=o(a=e)||r(a)||s(a)||i(),l=u[1],c=u[2],f=u.slice(3);if(!Array.isArray(l)||0===l.length)return n.error("Expected an interpolation type expression.",1);if("linear"===l[0])l={name:"linear"};else if("exponential"===l[0]){var p=l[1];if("number"!=typeof p)return n.error("Exponential interpolation requires a numeric base.",1,1);l={name:"exponential",base:p}}else{if("cubic-bezier"!==l[0])return n.error("Unknown interpolation type ".concat(String(l[0])),1,0);var d=l.slice(1);if(4!==d.length||d.some((function(t){return"number"!=typeof t||t<0||t>1})))return n.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);l={name:"cubic-bezier",controlPoints:d}}if(e.length-1<4)return n.error("Expected at least 4 arguments, but found only ".concat(e.length-1,"."));if((e.length-1)%2!=0)return n.error("Expected an even number of arguments.");if(!(c=n.parse(c,2,y)))return null;var v=[],m=null;n.expectedType&&"value"!==n.expectedType.kind&&(m=n.expectedType);for(var g=0;g<f.length;g+=2){var b=f[g],x=f[g+1],w=g+3,k=g+4;if("number"!=typeof b)return n.error(\'Input/output pairs for "interpolate" expressions must be defined using literal numeric values (not computed expressions) for the input values.\',w);if(v.length&&v[v.length-1][0]>=b)return n.error(\'Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.\',w);var S=n.parse(x,k,m);if(!S)return null;m=m||S.type,v.push([b,S])}return"number"===m.kind||"color"===m.kind||"array"===m.kind&&"number"===m.itemType.kind&&"number"==typeof m.N?new t(m,l,c,v):n.error("Type ".concat(h(m)," is not interpolatable."))}}],(n=[{key:"evaluate",value:function(e){var n=this.labels,r=this.outputs;if(1===n.length)return r[0].evaluate(e);var i=this.input.evaluate(e);if(i<=n[0])return r[0].evaluate(e);var o=n.length;if(i>=n[o-1])return r[o-1].evaluate(e);var a=d(n,i),s=n[a],u=n[a+1],l=t.interpolationFactor(this.interpolation,i,s,u),c=r[a].evaluate(e),p=r[a+1].evaluate(e);return f[this.type.kind.toLowerCase()](c,p,l)}},{key:"eachChild",value:function(t){t(this.input);var e,n=a(this.outputs);try{for(n.s();!(e=n.n()).done;)t(e.value)}catch(t){n.e(t)}finally{n.f()}}},{key:"possibleOutputs",value:function(){var t,e;return(t=[]).concat.apply(t,function(t){if(Array.isArray(t))return u(t)}(e=this.outputs.map((function(t){return t.possibleOutputs()})))||r(e)||s(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}}])&&l(e.prototype,n),p&&l(e,p),Object.defineProperty(e,"prototype",{writable:!1}),t}();function m(t,e,n,r){var i=r-n,o=t-n;return 0===i?0:1===e?o/i:(Math.pow(e,o)-1)/(Math.pow(e,i)-1)}t.exports=v},7591:function(t){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var i=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.type=n.type,this.bindings=[].concat(e),this.result=n}var i,o,a;return i=t,a=[{key:"parse",value:function(n,r){if(n.length<4)return r.error("Expected at least 3 arguments, but found ".concat(n.length-1," instead."));for(var i=[],o=1;o<n.length-1;o+=2){var a=n[o];if("string"!=typeof a)return r.error("Expected string, but found ".concat(e(a)," instead."),o);if(/[^a-zA-Z0-9_]/.test(a))return r.error("Variable names must contain only alphanumeric characters or \'_\'.",o);var s=r.parse(n[o+1],o+1);if(!s)return null;i.push([a,s])}var u=r.parse(n[n.length-1],n.length-1,void 0,i);return u?new t(i,u):null}}],(o=[{key:"evaluate",value:function(t){t.pushScope(this.bindings);var e=this.result.evaluate(t);return t.popScope(),e}},{key:"eachChild",value:function(t){var e,r=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return n(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var i=0,o=function(){};return{s:o,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}(this.bindings);try{for(r.s();!(e=r.n()).done;)t(e.value[1])}catch(t){r.e(t)}finally{r.f()}t(this.result)}},{key:"possibleOutputs",value:function(){return this.result.possibleOutputs()}}])&&r(i.prototype,o),a&&r(i,a),Object.defineProperty(i,"prototype",{writable:!1}),t}();t.exports=i},4598:function(t,e,n){function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var i=n(1235),o=i.isValue,a=i.typeOf,s=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.type=e,this.value=n}var e,n,i;return e=t,i=[{key:"parse",value:function(e,n){if(2!==e.length)return n.error("\'literal\' expression requires exactly one argument, but found ".concat(e.length-1," instead."));if(!o(e[1]))return n.error("invalid value");var r=e[1],i=a(r),s=n.expectedType;return"array"!==i.kind||0!==i.N||!s||"array"!==s.kind||"number"==typeof s.N&&0!==s.N||(i=s),new t(i,r)}}],(n=[{key:"evaluate",value:function(){return this.value}},{key:"eachChild",value:function(){}},{key:"possibleOutputs",value:function(){return[this.value]}}])&&r(e.prototype,n),i&&r(e,i),Object.defineProperty(e,"prototype",{writable:!1}),t}();t.exports=s},6436:function(t,e,n){function r(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=i(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function i(t,e){if(t){if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var s=n(8583),u=n(1235).typeOf,l=function(){function t(e,n,r,i,o,a){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.inputType=e,this.type=n,this.input=r,this.cases=i,this.outputs=o,this.otherwise=a}var e,n,l;return e=t,l=[{key:"parse",value:function(e,n){if(e.length<5)return n.error("Expected at least 4 arguments, but found only ".concat(e.length-1,"."));if(e.length%2!=1)return n.error("Expected an even number of arguments.");var i,o;n.expectedType&&"value"!==n.expectedType.kind&&(o=n.expectedType);for(var a={},l=[],c=2;c<e.length-1;c+=2){var f=e[c],p=e[c+1];Array.isArray(f)||(f=[f]);var h=n.concat(c);if(0===f.length)return h.error("Expected at least one branch label.");var y,d=r(f);try{for(d.s();!(y=d.n()).done;){var v=y.value;if("number"!=typeof v&&"string"!=typeof v)return h.error("Branch labels must be numbers or strings.");if("number"==typeof v&&Math.abs(v)>Number.MAX_SAFE_INTEGER)return h.error("Branch labels must be integers no larger than ".concat(Number.MAX_SAFE_INTEGER,"."));if("number"==typeof v&&Math.floor(v)!==v)return h.error("Numeric branch labels must be integer values.");if(i){if(h.checkSubtype(i,u(v)))return null}else i=u(v);if(void 0!==a[String(v)])return h.error("Branch labels must be unique.");a[String(v)]=l.length}}catch(t){d.e(t)}finally{d.f()}var m=n.parse(p,c,o);if(!m)return null;o=o||m.type,l.push(m)}var g=n.parse(e[1],1,i);if(!g)return null;var b=n.parse(e[e.length-1],e.length-1,o);return b?(s(i&&o),new t(i,o,g,a,l,b)):null}}],(n=[{key:"evaluate",value:function(t){var e=this.input.evaluate(t);return(this.outputs[this.cases[e]]||this.otherwise).evaluate(t)}},{key:"eachChild",value:function(t){t(this.input),this.outputs.forEach(t),t(this.otherwise)}},{key:"possibleOutputs",value:function(){var t,e;return(t=[]).concat.apply(t,(e=this.outputs.map((function(t){return t.possibleOutputs()})),function(t){if(Array.isArray(t))return o(t)}(e)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||i(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())).concat(this.otherwise.possibleOutputs())}}])&&a(e.prototype,n),l&&a(e,l),Object.defineProperty(e,"prototype",{writable:!1}),t}();t.exports=l},4773:function(t,e,n){function r(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function i(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(t){if(Array.isArray(t))return t}function a(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=s(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw o}}}}function s(t,e){if(t){if("string"==typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var c=n(5864).NumberType,f=n(2670).findStopLessThanOrEqualTo,p=function(){function t(e,n,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.type=e,this.input=n,this.labels=[],this.outputs=[];var u,l,c,f=a(r);try{for(f.s();!(u=f.n()).done;){var p=(l=u.value,c=2,o(l)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(t){s=!0,i=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(l,c)||s(l,c)||i()),h=p[0],y=p[1];this.labels.push(h),this.outputs.push(y)}}catch(t){f.e(t)}finally{f.f()}}var e,n,p;return e=t,p=[{key:"parse",value:function(e,n){var a,u=o(a=e)||r(a)||s(a)||i(),l=u[1],f=u.slice(2);if(e.length-1<4)return n.error("Expected at least 4 arguments, but found only ".concat(e.length-1,"."));if((e.length-1)%2!=0)return n.error("Expected an even number of arguments.");if(!(l=n.parse(l,1,c)))return null;var p=[],h=null;n.expectedType&&"value"!==n.expectedType.kind&&(h=n.expectedType),f.unshift(-1/0);for(var y=0;y<f.length;y+=2){var d=f[y],v=f[y+1],m=y+1,g=y+2;if("number"!=typeof d)return n.error(\'Input/output pairs for "step" expressions must be defined using literal numeric values (not computed expressions) for the input values.\',m);if(p.length&&p[p.length-1][0]>=d)return n.error(\'Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.\',m);var b=n.parse(v,g,h);if(!b)return null;h=h||b.type,p.push([d,b])}return new t(h,l,p)}}],(n=[{key:"evaluate",value:function(t){var e=this.labels,n=this.outputs;if(1===e.length)return n[0].evaluate(t);var r=this.input.evaluate(t);if(r<=e[0])return n[0].evaluate(t);var i=e.length;return r>=e[i-1]?n[i-1].evaluate(t):n[f(e,r)].evaluate(t)}},{key:"eachChild",value:function(t){t(this.input);var e,n=a(this.outputs);try{for(n.s();!(e=n.n()).done;)t(e.value)}catch(t){n.e(t)}finally{n.f()}}},{key:"possibleOutputs",value:function(){var t,e;return(t=[]).concat.apply(t,function(t){if(Array.isArray(t))return u(t)}(e=this.outputs.map((function(t){return t.possibleOutputs()})))||r(e)||s(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}}])&&l(e.prototype,n),p&&l(e,p),Object.defineProperty(e,"prototype",{writable:!1}),t}();t.exports=p},941:function(t){function e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var n=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.type=n,this.name=e}var n,r,i;return n=t,i=[{key:"parse",value:function(e,n){if(2!==e.length||"string"!=typeof e[1])return n.error("\'var\' expression requires exactly one string literal argument.");var r=e[1];return n.scope.has(r)?new t(r,n.scope.get(r).type):n.error(\'Unknown variable "\'.concat(r,\'". Make sure "\').concat(r,\'" has been bound in an enclosing "let" expression before using it.\'),1)}}],(r=[{key:"evaluate",value:function(t){return t.scope.get(this.name).evaluate(t)}},{key:"eachChild",value:function(){}},{key:"possibleOutputs",value:function(){return[void 0]}}])&&e(n.prototype,r),i&&e(n,i),Object.defineProperty(n,"prototype",{writable:!1}),t}();t.exports=n},8202:function(t,e,n){function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var i=n(8583),o=n(6393),a=n(1235).Color,s=["Unknown","Point","LineString","Polygon"],u=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.scope=new o,this._parseColorCache={}}var e,n;return e=t,(n=[{key:"id",value:function(){return this.feature&&"id"in this.feature?this.feature.id:null}},{key:"geometryType",value:function(){return this.feature?"number"==typeof this.feature.type?s[this.feature.type]:this.feature.type:null}},{key:"properties",value:function(){return this.feature&&this.feature.properties||{}}},{key:"pushScope",value:function(t){this.scope=this.scope.concat(t)}},{key:"popScope",value:function(){i(this.scope.parent),this.scope=this.scope.parent}},{key:"parseColor",value:function(t){var e=this._parseColorCache[t];return e||(e=this._parseColorCache[t]=a.parse(t)),e}}])&&r(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();t.exports=u},8266:function(t,e,n){function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function o(t,e){return o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},o(t,e)}function a(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return t}(t)}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&l(t.prototype,e),n&&l(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var f=n(8583),p=n(358),h=n(6212),y=n(487),d=n(8202),v=n(5827).CompoundExpression,m=n(4773),g=n(2955),b=n(1910),x=n(7591),w=n(6416),k=n(7546),S=n(7867),_=n(3803),A=_.success,j=_.error,O=function(){function t(e){u(this,t),this.expression=e}return c(t,[{key:"evaluate",value:function(t,e){return this._evaluator||(this._evaluator=new d),this._evaluator.globals=t,this._evaluator.feature=e,this.expression.evaluate(this._evaluator)}}]),t}(),T=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&o(t,e)}(i,t);var e,n,r=(e=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=s(e);if(n){var i=s(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return a(this,t)});function i(t,e){var n,o;return u(this,i),(n=r.call(this,t))._warningHistory={},n._defaultValue="color"===(o=e).type&&B(o.default)?new R(0,0,0,0):"color"===o.type?R.parse(o.default)||null:void 0===o.default?null:o.default,"enum"===e.type&&(n._enumValues=e.values),n}return c(i,[{key:"evaluate",value:function(t,e){this._evaluator||(this._evaluator=new d),this._evaluator.globals=t,this._evaluator.feature=e;try{var n=this.expression.evaluate(this._evaluator);if(null==n)return this._defaultValue;if(this._enumValues&&!(n in this._enumValues))throw new S("Expected value to be one of ".concat(Object.keys(this._enumValues).map((function(t){return JSON.stringify(t)})).join(", "),", but found ").concat(JSON.stringify(n)," instead."));return n}catch(t){return this._warningHistory[t.message]||(this._warningHistory[t.message]=!0,"undefined"!=typeof console&&console.warn(t.message)),this._defaultValue}}}]),i}(O);function P(t){return Array.isArray(t)&&t.length>0&&"string"==typeof t[0]&&t[0]in w}function z(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=new y(w,[],H(e)),i=r.parse(t);return i?!1===n.handleErrors?A(new O(i)):A(new T(i,e)):(f(r.errors.length>0),j(r.errors))}var I=function(){function t(e,n){u(this,t),this.kind=e,this._styleExpression=n}return c(t,[{key:"evaluate",value:function(t,e){return this._styleExpression.evaluate(t,e)}}]),t}(),E=function(){function t(e,n,r){u(this,t),this.kind=e,this.zoomStops=r.labels,this._styleExpression=n,r instanceof g&&(this._interpolationType=r.interpolation)}return c(t,[{key:"evaluate",value:function(t,e){return this._styleExpression.evaluate(t,e)}},{key:"interpolationFactor",value:function(t,e,n){return this._interpolationType?g.interpolationFactor(this._interpolationType,t,e,n):0}}]),t}();function C(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("error"===(t=z(t,e,n)).result)return t;var r=t.value.expression,i=k.isFeatureConstant(r);if(!i&&!e["property-function"])return j([new h("","property expressions not supported")]);var o=k.isGlobalPropertyConstant(r,["zoom"]);if(!o&&!1===e["zoom-function"])return j([new h("","zoom expressions not supported")]);var a=F(r);return a||o?a instanceof h?j([a]):a instanceof g&&"piecewise-constant"===e.function?j([new h("",\'"interpolate" expressions cannot be used with this property\')]):A(a?new E(i?"camera":"composite",t.value,a):new I(i?"constant":"source",t.value)):j([new h("",\'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.\')])}var M=n(7211),B=M.isFunction,V=M.createFunction,R=n(1235).Color,L=function(){function t(e,n){u(this,t),this._parameters=e,this._specification=n,p(this,V(this._parameters,this._specification))}return c(t,null,[{key:"deserialize",value:function(e){return new t(e._parameters,e._specification)}},{key:"serialize",value:function(t){return{_parameters:t._parameters,_specification:t._specification}}}]),t}();function F(t){var e=null;if(t instanceof x)e=F(t.result);else if(t instanceof b){var n,r=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}(t.args);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(e=F(o))break}}catch(t){r.e(t)}finally{r.f()}}else(t instanceof m||t instanceof g)&&t.input instanceof v&&"zoom"===t.input.name&&(e=t);return e instanceof h||t.eachChild((function(t){var n=F(t);n instanceof h?e=n:!e&&n?e=new h("",\'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.\'):e&&n&&e!==n&&(e=new h("",\'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.\'))})),e}t.exports={StyleExpression:O,StyleExpressionWithErrorHandling:T,isExpression:P,createExpression:z,createPropertyExpression:C,normalizePropertyExpression:function(t,e){if(B(t))return new L(t,e);if(P(t)){var n=C(t,e);if("error"===n.result)throw new Error(n.value.map((function(t){return"".concat(t.key,": ").concat(t.message)})).join(", "));return n.value}var r=t;return"string"==typeof t&&"color"===e.type&&(r=R.parse(t)),{kind:"constant",evaluate:function(){return r}}},ZoomConstantExpression:I,ZoomDependentExpression:E,StylePropertyFunction:L};var D=n(5864),q=D.ColorType,U=D.StringType,N=D.NumberType,J=D.BooleanType,G=D.ValueType,Z=D.array;function H(t){var e={color:q,string:U,number:N,enum:U,boolean:J};return"array"===t.type?Z(e[t.value]||G,t.length):e[t.type]||null}},7546:function(t,e,n){var r=n(5827).CompoundExpression;t.exports={isFeatureConstant:function t(e){if(e instanceof r){if("get"===e.name&&1===e.args.length)return!1;if("has"===e.name&&1===e.args.length)return!1;if("properties"===e.name||"geometry-type"===e.name||"id"===e.name)return!1;if(e.name.startsWith("filter-"))return!1}var n=!0;return e.eachChild((function(e){n&&!t(e)&&(n=!1)})),n},isGlobalPropertyConstant:function t(e,n){if(e instanceof r&&n.indexOf(e.name)>=0)return!1;var i=!0;return e.eachChild((function(e){i&&!t(e,n)&&(i=!1)})),i}}},487:function(t,e,n){function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var a=n(6393),s=n(5864).checkSubtype,u=n(6212),l=n(4598),c=n(4434),f=n(2779),p=n(3287),h=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new a,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];i(this,t),this.registry=e,this.path=n,this.key=n.map((function(t){return"[".concat(t,"]")})).join(""),this.scope=o,this.errors=s,this.expectedType=r}var e,h;return e=t,h=[{key:"parse",value:function(t,e,i,o){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},s=this;if(e&&(s=s.concat(e,i,o)),null!==t&&"string"!=typeof t&&"boolean"!=typeof t&&"number"!=typeof t||(t=["literal",t]),Array.isArray(t)){if(0===t.length)return s.error(\'Expected an array with at least one element. If you wanted a literal array, use ["literal", []].\');var u=t[0];if("string"!=typeof u)return s.error("Expression name must be a string, but found ".concat(r(u),\' instead. If you wanted a literal array, use ["literal", [...]].\'),0),null;var h=s.registry[u];if(h){var d=h.parse(t,s);if(!d)return null;if(s.expectedType){var v=s.expectedType,m=d.type;if("string"!==v.kind&&"number"!==v.kind&&"boolean"!==v.kind||"value"!==m.kind)if("array"===v.kind&&"value"===m.kind)a.omitTypeAnnotations||(d=new f(v,d));else if("color"!==v.kind||"value"!==m.kind&&"string"!==m.kind){if(s.checkSubtype(s.expectedType,d.type))return null}else a.omitTypeAnnotations||(d=new p(v,[d]));else a.omitTypeAnnotations||(d=new c(v,[d]))}if(!(d instanceof l)&&y(d)){var g=new(n(8202));try{d=new l(d.type,d.evaluate(g))}catch(t){return s.error(t.message),null}}return d}return s.error(\'Unknown expression "\'.concat(u,\'". If you wanted a literal array, use ["literal", [...]].\'),0)}return void 0===t?s.error("\'undefined\' value invalid. Use null instead."):"object"===r(t)?s.error(\'Bare objects invalid. Use ["literal", {...}] instead.\'):s.error("Expected an array, but found ".concat(r(t)," instead."))}},{key:"concat",value:function(e,n,r){var i="number"==typeof e?this.path.concat(e):this.path,o=r?this.scope.concat(r):this.scope;return new t(this.registry,i,n||null,o,this.errors)}},{key:"error",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var i="".concat(this.key).concat(n.map((function(t){return"[".concat(t,"]")})).join(""));this.errors.push(new u(i,t))}},{key:"checkSubtype",value:function(t,e){var n=s(t,e);return n&&this.error(n),n}}],h&&o(e.prototype,h),Object.defineProperty(e,"prototype",{writable:!1}),t}();function y(t){var e=n(5827).CompoundExpression,r=n(7546),i=r.isGlobalPropertyConstant,o=r.isFeatureConstant;if(t instanceof n(941))return!1;if(t instanceof e&&"error"===t.name)return!1;var a=!0;return t.eachChild((function(t){t instanceof l||(a=!1)})),!!a&&o(t)&&i(t,["zoom","heatmap-density"])}t.exports=h},6212:function(t){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}function n(t,n){if(n&&("object"===e(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return t}(t)}function r(t){var e="function"==typeof Map?new Map:void 0;return r=function(t){if(null===t||(n=t,-1===Function.toString.call(n).indexOf("[native code]")))return t;var n;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return i(t,arguments,s(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),a(r,t)},r(t)}function i(t,e,n){return i=o()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var i=new(Function.bind.apply(t,r));return n&&a(i,n.prototype),i},i.apply(null,arguments)}function o(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function a(t,e){return a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},a(t,e)}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}var u=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e)}(l,t);var e,r,i,u=(e=l,r=o(),function(){var t,i=s(e);if(r){var o=s(this).constructor;t=Reflect.construct(i,arguments,o)}else t=i.apply(this,arguments);return n(this,t)});function l(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),(n=u.call(this,e)).message=e,n.key=t,n}return i=l,Object.defineProperty(i,"prototype",{writable:!1}),i}(r(Error));t.exports=u},7867:function(t){function e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var n=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.name="ExpressionEvaluationError",this.message=e}var n,r;return n=t,(r=[{key:"toJSON",value:function(){return this.message}}])&&e(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),t}();t.exports=n},6393:function(t){function e(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(t){s=!0,i=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(t,e)||r(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=r(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,o=function(){};return{s:o,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function r(t,e){if(t){if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var s=function(){function t(r){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];o(this,t),this.parent=r,this.bindings={};var a,s=n(i);try{for(s.s();!(a=s.n()).done;){var u=e(a.value,2),l=u[0],c=u[1];this.bindings[l]=c}}catch(t){s.e(t)}finally{s.f()}}var r,i;return r=t,(i=[{key:"concat",value:function(e){return new t(this,e)}},{key:"get",value:function(t){if(this.bindings[t])return this.bindings[t];if(this.parent)return this.parent.get(t);throw new Error("".concat(t," not found in scope."))}},{key:"has",value:function(t){return!!this.bindings[t]||!!this.parent&&this.parent.has(t)}}])&&a(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),t}();t.exports=s},2670:function(t,e,n){var r=n(7867);t.exports={findStopLessThanOrEqualTo:function(t,e){for(var n,i,o=0,a=t.length-1,s=0;o<=a;){if(n=t[s=Math.floor((o+a)/2)],i=t[s+1],e===n||e>n&&e<i)return s;if(n<e)o=s+1;else{if(!(n>e))throw new r("Input is not a number.");a=s-1}}return Math.max(s-1,0)}}},5864:function(t){function e(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var n={kind:"null"},r={kind:"number"},i={kind:"string"},o={kind:"boolean"},a={kind:"color"},s={kind:"object"},u={kind:"value"};function l(t,e){return{kind:"array",itemType:t,N:e}}function c(t){if("array"===t.kind){var e=c(t.itemType);return"number"==typeof t.N?"array<".concat(e,", ").concat(t.N,">"):"value"===t.itemType.kind?"array":"array<".concat(e,">")}return t.kind}var f=[n,r,i,o,a,s,l(u)];t.exports={NullType:n,NumberType:r,StringType:i,BooleanType:o,ColorType:a,ObjectType:s,ValueType:u,array:l,ErrorType:{kind:"error"},toString:c,checkSubtype:function t(n,r){if("error"===r.kind)return null;if("array"===n.kind){if("array"===r.kind&&!t(n.itemType,r.itemType)&&("number"!=typeof n.N||n.N===r.N))return null}else{if(n.kind===r.kind)return null;if("value"===n.kind){var i,o=function(t,n){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,n){if(t){if("string"==typeof t)return e(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?e(t,n):void 0}}(t))||n&&t&&"number"==typeof t.length){r&&(t=r);var i=0,o=function(){};return{s:o,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}(f);try{for(o.s();!(i=o.n()).done;)if(!t(i.value,r))return null}catch(t){o.e(t)}finally{o.f()}}}return"Expected ".concat(c(n)," but found ").concat(c(r)," instead.")}}},1235:function(t,e,n){function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function i(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var a=n(8583),s=n(6016),u=n(5864),l=u.NullType,c=u.NumberType,f=u.StringType,p=u.BooleanType,h=u.ColorType,y=u.ObjectType,d=u.ValueType,v=u.array;t.exports={Color:s,validateRGBA:function(t,e,n,r){return"number"==typeof t&&t>=0&&t<=255&&"number"==typeof e&&e>=0&&e<=255&&"number"==typeof n&&n>=0&&n<=255?void 0===r||"number"==typeof r&&r>=0&&r<=1?null:"Invalid rgba value [".concat([t,e,n,r].join(", "),"]: \'a\' must be between 0 and 1."):"Invalid rgba value [".concat(("number"==typeof r?[t,e,n,r]:[t,e,n]).join(", "),"]: \'r\', \'g\', and \'b\' must be between 0 and 255.")},isValue:function t(e){if(null===e)return!0;if("string"==typeof e)return!0;if("boolean"==typeof e)return!0;if("number"==typeof e)return!0;if(e instanceof s)return!0;if(Array.isArray(e)){var n,o=i(e);try{for(o.s();!(n=o.n()).done;)if(!t(n.value))return!1}catch(t){o.e(t)}finally{o.f()}return!0}if("object"===r(e)){for(var a in e)if(!t(e[a]))return!1;return!0}return!1},typeOf:function t(e){if(null===e)return l;if("string"==typeof e)return f;if("boolean"==typeof e)return p;if("number"==typeof e)return c;if(e instanceof s)return h;if(Array.isArray(e)){var n,o,u=e.length,m=i(e);try{for(m.s();!(o=m.n()).done;){var g=t(o.value);if(n){if(n===g)continue;n=d;break}n=g}}catch(t){m.e(t)}finally{m.f()}return v(n||d,u)}return a("object"===r(e)),y}}},1693:function(t,e,n){function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var o=n(8266).createExpression;function a(t){if(!Array.isArray(t)||0===t.length)return!1;switch(t[0]){case"has":return t.length>=2&&"$id"!==t[1]&&"$type"!==t[1];case"in":case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return 3===t.length&&(Array.isArray(t[1])||Array.isArray(t[2]));case"any":case"all":var e,n=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}(t.slice(1));try{for(n.s();!(e=n.n()).done;){var r=e.value;if(!a(r)&&"boolean"!=typeof r)return!1}}catch(t){n.e(t)}finally{n.f()}return!0;default:return!0}}t.exports=function(t){if(!t)return function(){return!0};a(t)||(t=l(t));var e=o(t,s);if("error"===e.result)throw new Error(e.value.map((function(t){return"".concat(t.key,": ").concat(t.message)})).join(", "));return function(t,n){return e.value.evaluate(t,n)}},t.exports.isExpressionFilter=a;var s={type:"boolean",default:!1,function:!0,"property-function":!0,"zoom-function":!0};function u(t,e){return t<e?-1:t>e?1:0}function l(t){if(!t)return!0;var e,n=t[0];return t.length<=1?"any"!==n:"=="===n?c(t[1],t[2],"=="):"!="===n?h(c(t[1],t[2],"==")):"<"===n||">"===n||"<="===n||">="===n?c(t[1],t[2],n):"any"===n?(e=t.slice(1),["any"].concat(e.map(l))):"all"===n?["all"].concat(t.slice(1).map(l)):"none"===n?["all"].concat(t.slice(1).map(l).map(h)):"in"===n?f(t[1],t.slice(2)):"!in"===n?h(f(t[1],t.slice(2))):"has"===n?p(t[1]):"!has"!==n||h(p(t[1]))}function c(t,e,n){switch(t){case"$type":return["filter-type-".concat(n),e];case"$id":return["filter-id-".concat(n),e];default:return["filter-".concat(n),t,e]}}function f(t,e){if(0===e.length)return!1;switch(t){case"$type":return["filter-type-in",["literal",e]];case"$id":return["filter-id-in",["literal",e]];default:return e.length>200&&!e.some((function(t){return r(t)!==r(e[0])}))?["filter-in-large",t,["literal",e.sort(u)]]:["filter-in-small",t,["literal",e]]}}function p(t){switch(t){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",t]}}function h(t){return["!",t]}},7211:function(t,e,n){function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}var o=n(412),a=n(6016),s=n(358),u=n(1278),l=n(2643),c=n(2955);function f(t){return t}function p(t,e,n){return void 0!==t?t:void 0!==e?e:void 0!==n?n:void 0}function h(t,e,n,r,o){return p(i(n)===o?r[n]:void 0,t.default,e.default)}function y(t,e,n){if("number"!==u(n))return p(t.default,e.default);var r=t.stops.length;if(1===r)return t.stops[0][1];if(n<=t.stops[0][0])return t.stops[0][1];if(n>=t.stops[r-1][0])return t.stops[r-1][1];var i=m(t.stops,n);return t.stops[i][1]}function d(t,e,n){var r=void 0!==t.base?t.base:1;if("number"!==u(n))return p(t.default,e.default);var i=t.stops.length;if(1===i)return t.stops[0][1];if(n<=t.stops[0][0])return t.stops[0][1];if(n>=t.stops[i-1][0])return t.stops[i-1][1];var a=m(t.stops,n),s=function(t,e,n,r){var i=r-n,o=t-n;return 0===i?0:1===e?o/i:(Math.pow(e,o)-1)/(Math.pow(e,i)-1)}(n,r,t.stops[a][0],t.stops[a+1][0]),c=t.stops[a][1],h=t.stops[a+1][1],y=l[e.type]||f;if(t.colorSpace&&"rgb"!==t.colorSpace){var d=o[t.colorSpace];y=function(t,e){return d.reverse(d.interpolate(d.forward(t),d.forward(e),s))}}return"function"==typeof c.evaluate?{evaluate:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=c.evaluate.apply(void 0,e),i=h.evaluate.apply(void 0,e);if(void 0!==r&&void 0!==i)return y(r,i,s)}}:y(c,h,s)}function v(t,e,n){return"color"===e.type?n=a.parse(n):u(n)===e.type||"enum"===e.type&&e.values[n]||(n=void 0),p(n,t.default,e.default)}function m(t,e){for(var n,r,i=0,o=t.length-1,a=0;i<=o;){if(n=t[a=Math.floor((i+o)/2)][0],r=t[a+1][0],e===n||e>n&&e<r)return a;n<e?i=a+1:n>e&&(o=a-1)}return Math.max(a-1,0)}t.exports={createFunction:function t(e,n){var u,l,f,m="color"===n.type,g=e.stops&&"object"===i(e.stops[0][0]),b=g||void 0!==e.property,x=g||!b,w=e.type||("interpolated"===n.function?"exponential":"interval");if(m&&((e=s({},e)).stops&&(e.stops=e.stops.map((function(t){return[t[0],a.parse(t[1])]}))),e.default?e.default=a.parse(e.default):e.default=a.parse(n.default)),e.colorSpace&&"rgb"!==e.colorSpace&&!o[e.colorSpace])throw new Error("Unknown color space: ".concat(e.colorSpace));if("exponential"===w)u=d;else if("interval"===w)u=y;else if("categorical"===w){u=h,l=Object.create(null);var k,S=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,o=function(){};return{s:o,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}(e.stops);try{for(S.s();!(k=S.n()).done;){var _=k.value;l[_[0]]=_[1]}}catch(t){S.e(t)}finally{S.f()}f=i(e.stops[0][0])}else{if("identity"!==w)throw new Error(\'Unknown function type "\'.concat(w,\'"\'));u=v}if(g){for(var A={},j=[],O=0;O<e.stops.length;O++){var T=e.stops[O],P=T[0].zoom;void 0===A[P]&&(A[P]={zoom:P,type:e.type,property:e.property,default:e.default,stops:[]},j.push(P)),A[P].stops.push([T[0].value,T[1]])}for(var z=[],I=0,E=j;I<E.length;I++){var C=E[I];z.push([A[C].zoom,t(A[C],n)])}return{kind:"composite",interpolationFactor:c.interpolationFactor.bind(void 0,{name:"linear"}),zoomStops:z.map((function(t){return t[0]})),evaluate:function(t,r){var i=t.zoom;return d({stops:z,base:e.base},n,i).evaluate(i,r)}}}return x?{kind:"camera",interpolationFactor:"exponential"===w?c.interpolationFactor.bind(void 0,{name:"exponential",base:void 0!==e.base?e.base:1}):function(){return 0},zoomStops:e.stops.map((function(t){return t[0]})),evaluate:function(t){var r=t.zoom;return u(e,n,r,l,f)}}:{kind:"source",evaluate:function(t,r){var i=r&&r.properties?r.properties[e.property]:void 0;return void 0===i?p(e.default,n.default):u(e,n,i,l,f)}}},isFunction:function(t){return"object"===i(t)&&null!==t&&!Array.isArray(t)}}},4510:function(t,e,n){function r(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}var a=n(921);function s(t){var e=o(t);if("number"===e||"boolean"===e||"string"===e||null==t)return JSON.stringify(t);if(Array.isArray(t)){var n,i="[",a=r(t);try{for(a.s();!(n=a.n()).done;){var u=n.value;i+="".concat(s(u),",")}}catch(t){a.e(t)}finally{a.f()}return"".concat(i,"]")}for(var l=Object.keys(t).sort(),c="{",f=0;f<l.length;f++)c+="".concat(JSON.stringify(l[f]),":").concat(s(t[l[f]]),",");return"".concat(c,"}")}function u(t){var e,n="",i=r(a);try{for(i.s();!(e=i.n()).done;){var o=e.value;n+="/".concat(s(t[o]))}}catch(t){i.e(t)}finally{i.f()}return n}t.exports=function(t){for(var e={},n=0;n<t.length;n++){var r=u(t[n]),i=e[r];i||(i=e[r]=[]),i.push(t[n])}var o=[];for(var a in e)o.push(e[a]);return o}},5487:function(t,e,n){t.exports=n(556)},6016:function(t,e,n){function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var o=n(5694).parseCSSColor,a=function(){function t(e,n,i){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;r(this,t),this.r=e,this.g=n,this.b=i,this.a=o}var e,n,a;return e=t,a=[{key:"parse",value:function(e){if(e){if(e instanceof t)return e;if("string"==typeof e){var n=o(e);if(n)return new t(n[0]/255*n[3],n[1]/255*n[3],n[2]/255*n[3],n[3])}}}}],(n=[{key:"toString",value:function(){var t=this,e=[this.r,this.g,this.b].map((function(e){return Math.round(255*e/t.a)}));return"rgba(".concat(e.concat(this.a).join(","),")")}}])&&i(e.prototype,n),a&&i(e,a),Object.defineProperty(e,"prototype",{writable:!1}),t}();a.black=new a(0,0,0,1),a.white=new a(1,1,1,1),a.transparent=new a(0,0,0,0),t.exports=a},412:function(t,e,n){var r=n(6016),i=n(2643).number,o=.95047,a=1.08883,s=4/29,u=6/29,l=3*u*u,c=Math.PI/180,f=180/Math.PI;function p(t){return t>.008856451679035631?Math.pow(t,1/3):t/l+s}function h(t){return t>u?t*t*t:l*(t-s)}function y(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function d(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function v(t){var e=d(t.r),n=d(t.g),r=d(t.b),i=p((.4124564*e+.3575761*n+.1804375*r)/o),s=p((.2126729*e+.7151522*n+.072175*r)/1);return{l:116*s-16,a:500*(i-s),b:200*(s-p((.0193339*e+.119192*n+.9503041*r)/a)),alpha:t.a}}function m(t){var e=(t.l+16)/116,n=isNaN(t.a)?e:e+t.a/500,i=isNaN(t.b)?e:e-t.b/200;return e=1*h(e),n=o*h(n),i=a*h(i),new r(y(3.2404542*n-1.5371385*e-.4985314*i),y(-.969266*n+1.8760108*e+.041556*i),y(.0556434*n-.2040259*e+1.0572252*i),t.alpha)}function g(t,e,n){var r=e-t;return t+n*(r>180||r<-180?r-360*Math.round(r/360):r)}t.exports={lab:{forward:v,reverse:m,interpolate:function(t,e,n){return{l:i(t.l,e.l,n),a:i(t.a,e.a,n),b:i(t.b,e.b,n),alpha:i(t.alpha,e.alpha,n)}}},hcl:{forward:function(t){var e=v(t),n=e.l,r=e.a,i=e.b,o=Math.atan2(i,r)*f;return{h:o<0?o+360:o,c:Math.sqrt(r*r+i*i),l:n,alpha:t.a}},reverse:function(t){var e=t.h*c,n=t.c;return m({l:t.l,a:Math.cos(e)*n,b:Math.sin(e)*n,alpha:t.alpha})},interpolate:function(t,e,n){return{h:g(t.h,e.h,n),c:i(t.c,e.c,n),l:i(t.l,e.l,n),alpha:i(t.alpha,e.alpha,n)}}}}},2688:function(t){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}t.exports=function t(n,r){if(Array.isArray(n)){if(!Array.isArray(r)||n.length!==r.length)return!1;for(var i=0;i<n.length;i++)if(!t(n[i],r[i]))return!1;return!0}if("object"===e(n)&&null!==n&&null!==r){if("object"!==e(r))return!1;if(Object.keys(n).length!==Object.keys(r).length)return!1;for(var o in n)if(!t(n[o],r[o]))return!1;return!0}return n===r}},358:function(t){t.exports=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];for(var i=0,o=n;i<o.length;i++){var a=o[i];for(var s in a)t[s]=a[s]}return t}},1278:function(t){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}t.exports=function(t){return t instanceof Number?"number":t instanceof String?"string":t instanceof Boolean?"boolean":Array.isArray(t)?"array":null===t?"null":e(t)}},2643:function(t,e,n){var r=n(6016);function i(t,e,n){return t*(1-n)+e*n}t.exports={number:i,color:function(t,e,n){return new r(i(t.r,e.r,n),i(t.g,e.g,n),i(t.b,e.b,n),i(t.a,e.a,n))},array:function(t,e,n){return t.map((function(t,r){return i(t,e[r],n)}))}}},921:function(t){t.exports=["type","source","source-layer","minzoom","maxzoom","filter","layout"]},3803:function(t){t.exports={success:function(t){return{result:"success",value:t}},error:function(t){return{result:"error",value:t}}}},1602:function(t){function e(t){return t instanceof Number||t instanceof String||t instanceof Boolean?t.valueOf():t}t.exports=e,t.exports.deep=function t(n){return Array.isArray(n)?n.map(t):e(n)}},2400:function(t,e,n){var r=n(358),i=n(1602),o=n(8266).isExpression,a=n(7211).isFunction;t.exports=function(t){var e=n(678),s=n(2803),u=n(2340),l={"*":function(){return[]},array:n(6555),boolean:n(9762),number:n(6901),color:n(4903),constants:n(7889),enum:n(4419),filter:n(3928),function:n(678),layer:n(5873),object:n(2340),source:n(843),light:n(7341),string:n(6216)},c=t.value,f=t.valueSpec,p=t.styleSpec;return f.function&&a(i(c))?e(t):f.function&&o(i.deep(c))?s(t):f.type&&l[f.type]?l[f.type](t):u(r({},t,{valueSpec:f.type?p[f.type]:f}))}},6555:function(t,e,n){var r=n(1278),i=n(2400),o=n(1737);t.exports=function(t){var e=t.value,n=t.valueSpec,a=t.style,s=t.styleSpec,u=t.key,l=t.arrayElementValidator||i;if("array"!==r(e))return[new o(u,e,"array expected, ".concat(r(e)," found"))];if(n.length&&e.length!==n.length)return[new o(u,e,"array length ".concat(n.length," expected, length ").concat(e.length," found"))];if(n["min-length"]&&e.length<n["min-length"])return[new o(u,e,"array length at least ".concat(n["min-length"]," expected, length ").concat(e.length," found"))];var c={type:n.value};s.$version<7&&(c.function=n.function),"object"===r(n.value)&&(c=n.value);for(var f=[],p=0;p<e.length;p++)f=f.concat(l({array:e,arrayIndex:p,value:e[p],valueSpec:c,style:a,styleSpec:s,key:"".concat(u,"[").concat(p,"]")}));return f}},9762:function(t,e,n){var r=n(1278),i=n(1737);t.exports=function(t){var e=t.value,n=t.key,o=r(e);return"boolean"!==o?[new i(n,e,"boolean expected, ".concat(o," found"))]:[]}},4903:function(t,e,n){var r=n(1737),i=n(1278),o=n(5694).parseCSSColor;t.exports=function(t){var e=t.key,n=t.value,a=i(n);return"string"!==a?[new r(e,n,"color expected, ".concat(a," found"))]:null===o(n)?[new r(e,n,\'color expected, "\'.concat(n,\'" found\'))]:[]}},7889:function(t,e,n){var r=n(1737);t.exports=function(t){var e=t.key,n=t.value;return n?[new r(e,n,"constants have been deprecated as of v8")]:[]}},4419:function(t,e,n){var r=n(1737),i=n(1602);t.exports=function(t){var e=t.key,n=t.value,o=t.valueSpec,a=[];return Array.isArray(o.values)?-1===o.values.indexOf(i(n))&&a.push(new r(e,n,"expected one of [".concat(o.values.join(", "),"], ").concat(JSON.stringify(n)," found"))):-1===Object.keys(o.values).indexOf(i(n))&&a.push(new r(e,n,"expected one of [".concat(Object.keys(o.values).join(", "),"], ").concat(JSON.stringify(n)," found"))),a}},2803:function(t,e,n){var r=n(1737),i=n(8266),o=i.createExpression,a=i.createPropertyExpression,s=n(1602);t.exports=function(t){var e=("property"===t.expressionContext?a:o)(s.deep(t.value),t.valueSpec);return"error"===e.result?e.value.map((function(e){return new r("".concat(t.key).concat(e.key),t.value,e.message)})):"property"===t.expressionContext&&"text-font"===t.propertyKey&&-1!==e.value._styleExpression.expression.possibleOutputs().indexOf(void 0)?[new r(t.key,t.value,\'Invalid data expression for "text-font". Output values must be contained as literals within the expression.\')]:[]}},3928:function(t,e,n){var r=n(1737),i=n(2803),o=n(4419),a=n(1278),s=n(1602),u=n(358),l=n(1693).isExpressionFilter;function c(t){var e=t.value,n=t.key;if("array"!==a(e))return[new r(n,e,"array expected, ".concat(a(e)," found"))];var i,u=t.styleSpec,l=[];if(e.length<1)return[new r(n,e,"filter array must have at least 1 element")];switch(l=l.concat(o({key:"".concat(n,"[0]"),value:e[0],valueSpec:u.filter_operator,style:t.style,styleSpec:t.styleSpec})),s(e[0])){case"<":case"<=":case">":case">=":e.length>=2&&"$type"===s(e[1])&&l.push(new r(n,e,\'"$type" cannot be use with operator "\'.concat(e[0],\'"\')));case"==":case"!=":3!==e.length&&l.push(new r(n,e,\'filter array for operator "\'.concat(e[0],\'" must have 3 elements\')));case"in":case"!in":e.length>=2&&"string"!==(i=a(e[1]))&&l.push(new r("".concat(n,"[1]"),e[1],"string expected, ".concat(i," found")));for(var f=2;f<e.length;f++)i=a(e[f]),"$type"===s(e[1])?l=l.concat(o({key:"".concat(n,"[").concat(f,"]"),value:e[f],valueSpec:u.geometry_type,style:t.style,styleSpec:t.styleSpec})):"string"!==i&&"number"!==i&&"boolean"!==i&&l.push(new r("".concat(n,"[").concat(f,"]"),e[f],"string, number, or boolean expected, ".concat(i," found")));break;case"any":case"all":case"none":for(var p=1;p<e.length;p++)l=l.concat(c({key:"".concat(n,"[").concat(p,"]"),value:e[p],style:t.style,styleSpec:t.styleSpec}));break;case"has":case"!has":i=a(e[1]),2!==e.length?l.push(new r(n,e,\'filter array for "\'.concat(e[0],\'" operator must have 2 elements\'))):"string"!==i&&l.push(new r("".concat(n,"[1]"),e[1],"string expected, ".concat(i," found")))}return l}t.exports=function(t){return l(s.deep(t.value))?i(u({},t,{expressionContext:"filter",valueSpec:{value:"boolean"}})):c(t)}},678:function(t,e,n){var r=n(1737),i=n(1278),o=n(2400),a=n(2340),s=n(6555),u=n(6901),l=n(1602);t.exports=function(t){var e,n,c,f=t.valueSpec,p=l(t.value.type),h={},y="categorical"!==p&&void 0===t.value.property,d=!y,v="array"===i(t.value.stops)&&"array"===i(t.value.stops[0])&&"object"===i(t.value.stops[0][0]),m=a({key:t.key,value:t.value,valueSpec:t.styleSpec.function,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{stops:function(t){if("identity"===p)return[new r(t.key,t.value,\'identity function may not have a "stops" property\')];var e=[],n=t.value;return e=e.concat(s({key:t.key,value:n,valueSpec:t.valueSpec,style:t.style,styleSpec:t.styleSpec,arrayElementValidator:g})),"array"===i(n)&&0===n.length&&e.push(new r(t.key,n,"array must have at least one stop")),e},default:function(t){return o({key:t.key,value:t.value,valueSpec:f,style:t.style,styleSpec:t.styleSpec})}}});return"identity"===p&&y&&m.push(new r(t.key,t.value,\'missing required property "property"\')),"identity"===p||t.value.stops||m.push(new r(t.key,t.value,\'missing required property "stops"\')),"exponential"===p&&"piecewise-constant"===t.valueSpec.function&&m.push(new r(t.key,t.value,"exponential functions not supported")),t.styleSpec.$version>=8&&(d&&!t.valueSpec["property-function"]?m.push(new r(t.key,t.value,"property functions not supported")):y&&!t.valueSpec["zoom-function"]&&"heatmap-color"!==t.objectKey&&m.push(new r(t.key,t.value,"zoom functions not supported"))),"categorical"!==p&&!v||void 0!==t.value.property||m.push(new r(t.key,t.value,\'"property" property is required\')),m;function g(t){var e=[],s=t.value,p=t.key;if("array"!==i(s))return[new r(p,s,"array expected, ".concat(i(s)," found"))];if(2!==s.length)return[new r(p,s,"array length 2 expected, length ".concat(s.length," found"))];if(v){if("object"!==i(s[0]))return[new r(p,s,"object expected, ".concat(i(s[0])," found"))];if(void 0===s[0].zoom)return[new r(p,s,"object stop key must have zoom")];if(void 0===s[0].value)return[new r(p,s,"object stop key must have value")];if(c&&c>l(s[0].zoom))return[new r(p,s[0].zoom,"stop zoom values must appear in ascending order")];l(s[0].zoom)!==c&&(c=l(s[0].zoom),n=void 0,h={}),e=e.concat(a({key:"".concat(p,"[0]"),value:s[0],valueSpec:{zoom:{}},style:t.style,styleSpec:t.styleSpec,objectElementValidators:{zoom:u,value:b}}))}else e=e.concat(b({key:"".concat(p,"[0]"),value:s[0],valueSpec:{},style:t.style,styleSpec:t.styleSpec},s));return e.concat(o({key:"".concat(p,"[1]"),value:s[1],valueSpec:f,style:t.style,styleSpec:t.styleSpec}))}function b(t,o){var a=i(t.value),s=l(t.value),u=null!==t.value?t.value:o;if(e){if(a!==e)return[new r(t.key,u,"".concat(a," stop domain type must match previous stop domain type ").concat(e))]}else e=a;if("number"!==a&&"string"!==a&&"boolean"!==a)return[new r(t.key,u,"stop domain value must be a number, string, or boolean")];if("number"!==a&&"categorical"!==p){var c="number expected, ".concat(a," found");return f["property-function"]&&void 0===p&&(c+=\'\\nIf you intended to use a categorical function, specify `"type": "categorical"`.\'),[new r(t.key,u,c)]}return"categorical"!==p||"number"!==a||isFinite(s)&&Math.floor(s)===s?"categorical"!==p&&"number"===a&&void 0!==n&&s<n?[new r(t.key,u,"stop domain values must appear in ascending order")]:(n=s,"categorical"===p&&s in h?[new r(t.key,u,"stop domain values must be unique")]:(h[s]=!0,[])):[new r(t.key,u,"integer expected, found ".concat(s))]}}},9285:function(t,e,n){var r=n(1737),i=n(6216);t.exports=function(t){var e=t.value,n=t.key,o=i(t);return o.length||(-1===e.indexOf("{fontstack}")&&o.push(new r(n,e,\'"glyphs" url must include a "{fontstack}" token\')),-1===e.indexOf("{range}")&&o.push(new r(n,e,\'"glyphs" url must include a "{range}" token\'))),o}},5873:function(t,e,n){var r=n(1737),i=n(1602),o=n(2340),a=n(3928),s=n(55),u=n(1961),l=n(2400),c=n(358);t.exports=function(t){var e=[],n=t.value,f=t.key,p=t.style,h=t.styleSpec;n.type||n.ref||e.push(new r(f,n,\'either "type" or "ref" is required\'));var y,d=i(n.type),v=i(n.ref);if(n.id)for(var m=i(n.id),g=0;g<t.arrayIndex;g++){var b=p.layers[g];i(b.id)===m&&e.push(new r(f,n.id,\'duplicate layer id "\'.concat(n.id,\'", previously used at line \').concat(b.id.__line__)))}if("ref"in n)["type","source","source-layer","filter","layout"].forEach((function(t){t in n&&e.push(new r(f,n[t],\'"\'.concat(t,\'" is prohibited for ref layers\')))})),p.layers.forEach((function(t){i(t.id)===v&&(y=t)})),y?y.ref?e.push(new r(f,n.ref,"ref cannot reference another ref layer")):d=i(y.type):e.push(new r(f,n.ref,\'ref layer "\'.concat(v,\'" not found\')));else if("background"!==d)if(n.source){var x=p.sources&&p.sources[n.source],w=x&&i(x.type);x?"vector"===w&&"raster"===d?e.push(new r(f,n.source,\'layer "\'.concat(n.id,\'" requires a raster source\'))):"raster"===w&&"raster"!==d?e.push(new r(f,n.source,\'layer "\'.concat(n.id,\'" requires a vector source\'))):"vector"!==w||n["source-layer"]?"raster-dem"===w&&"hillshade"!==d&&e.push(new r(f,n.source,"raster-dem source can only be used with layer type \'hillshade\'.")):e.push(new r(f,n,\'layer "\'.concat(n.id,\'" must specify a "source-layer"\'))):e.push(new r(f,n.source,\'source "\'.concat(n.source,\'" not found\')))}else e.push(new r(f,n,\'missing required property "source"\'));return e=e.concat(o({key:f,value:n,valueSpec:h.layer,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{"*":function(){return[]},type:function(){return l({key:"".concat(f,".type"),value:n.type,valueSpec:h.layer.type,style:t.style,styleSpec:t.styleSpec,object:n,objectKey:"type"})},filter:a,layout:function(t){return o({layer:n,key:t.key,value:t.value,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{"*":function(t){return u(c({layerType:d},t))}}})},paint:function(t){return o({layer:n,key:t.key,value:t.value,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{"*":function(t){return s(c({layerType:d},t))}}})}}})),e}},1961:function(t,e,n){var r=n(5720);t.exports=function(t){return r(t,"layout")}},7341:function(t,e,n){var r=n(1737),i=n(1278),o=n(2400);t.exports=function(t){var e=t.value,n=t.styleSpec,a=n.light,s=t.style,u=[],l=i(e);if(void 0===e)return u;if("object"!==l)return u.concat([new r("light",e,"object expected, ".concat(l," found"))]);for(var c in e){var f=c.match(/^(.*)-transition$/);u=f&&a[f[1]]&&a[f[1]].transition?u.concat(o({key:c,value:e[c],valueSpec:n.transition,style:s,styleSpec:n})):a[c]?u.concat(o({key:c,value:e[c],valueSpec:a[c],style:s,styleSpec:n})):u.concat([new r(c,e[c],\'unknown property "\'.concat(c,\'"\'))])}return u}},6901:function(t,e,n){var r=n(1278),i=n(1737);t.exports=function(t){var e=t.key,n=t.value,o=t.valueSpec,a=r(n);return"number"!==a?[new i(e,n,"number expected, ".concat(a," found"))]:"minimum"in o&&n<o.minimum?[new i(e,n,"".concat(n," is less than the minimum value ").concat(o.minimum))]:"maximum"in o&&n>o.maximum?[new i(e,n,"".concat(n," is greater than the maximum value ").concat(o.maximum))]:[]}},2340:function(t,e,n){var r=n(1737),i=n(1278),o=n(2400);t.exports=function(t){var e=t.key,n=t.value,a=t.valueSpec||{},s=t.objectElementValidators||{},u=t.style,l=t.styleSpec,c=[],f=i(n);if("object"!==f)return[new r(e,n,"object expected, ".concat(f," found"))];for(var p in n){var h=p.split(".")[0],y=a[h]||a["*"],d=void 0;if(s[h])d=s[h];else if(a[h])d=o;else if(s["*"])d=s["*"];else{if(!a["*"]){c.push(new r(e,n[p],\'unknown property "\'.concat(p,\'"\')));continue}d=o}c=c.concat(d({key:(e?"".concat(e,"."):e)+p,value:n[p],valueSpec:y,style:u,styleSpec:l,object:n,objectKey:p},n))}for(var v in a)s[v]||a[v].required&&void 0===a[v].default&&void 0===n[v]&&c.push(new r(e,n,\'missing required property "\'.concat(v,\'"\')));return c}},55:function(t,e,n){var r=n(5720);t.exports=function(t){return r(t,"paint")}},5720:function(t,e,n){var r=n(2400),i=n(1737),o=n(1278),a=n(7211).isFunction,s=n(1602);t.exports=function(t,e){var n=t.key,u=t.style,l=t.styleSpec,c=t.value,f=t.objectKey,p=l["".concat(e,"_").concat(t.layerType)];if(!p)return[];var h=f.match(/^(.*)-transition$/);if("paint"===e&&h&&p[h[1]]&&p[h[1]].transition)return r({key:n,value:c,valueSpec:l.transition,style:u,styleSpec:l});var y,d=t.valueSpec||p[f];if(!d)return[new i(n,c,\'unknown property "\'.concat(f,\'"\'))];if("string"===o(c)&&d["property-function"]&&!d.tokens&&(y=/^{([^}]+)}$/.exec(c)))return[new i(n,c,\'"\'.concat(f,\'" does not support interpolation syntax\\n\')+\'Use an identity property function instead: `{ "type": "identity", "property": \'.concat(JSON.stringify(y[1])," }`."))];var v=[];return"symbol"===t.layerType&&("text-field"===f&&u&&!u.glyphs&&v.push(new i(n,c,\'use of "text-field" requires a style "glyphs" property\')),"text-font"===f&&a(s.deep(c))&&"identity"===s(c.type)&&v.push(new i(n,c,\'"text-font" does not support identity functions\'))),v.concat(r({key:t.key,value:c,valueSpec:d,style:u,styleSpec:l,expressionContext:"property",propertyKey:f}))}},843:function(t,e,n){var r=n(1737),i=n(1602),o=n(2340),a=n(4419);t.exports=function(t){var e=t.value,n=t.key,s=t.styleSpec,u=t.style;if(!e.type)return[new r(n,e,\'"type" is required\')];var l=i(e.type),c=[];switch(l){case"vector":case"raster":case"raster-dem":if(c=c.concat(o({key:n,value:e,valueSpec:s["source_".concat(l.replace("-","_"))],style:t.style,styleSpec:s})),"url"in e)for(var f in e)["type","url","tileSize"].indexOf(f)<0&&c.push(new r("".concat(n,".").concat(f),e[f],\'a source with a "url" property may not include a "\'.concat(f,\'" property\')));return c;case"geojson":return o({key:n,value:e,valueSpec:s.source_geojson,style:u,styleSpec:s});case"video":return o({key:n,value:e,valueSpec:s.source_video,style:u,styleSpec:s});case"image":return o({key:n,value:e,valueSpec:s.source_image,style:u,styleSpec:s});case"canvas":return o({key:n,value:e,valueSpec:s.source_canvas,style:u,styleSpec:s});default:return a({key:"".concat(n,".type"),value:e.type,valueSpec:{values:["vector","raster","raster-dem","geojson","video","image","canvas"]},style:u,styleSpec:s})}}},6216:function(t,e,n){var r=n(1278),i=n(1737);t.exports=function(t){var e=t.value,n=t.key,o=r(e);return"string"!==o?[new i(n,e,"string expected, ".concat(o," found"))]:[]}},7250:function(t,e,n){var r=n(7889),i=n(2400),o=n(5487),a=n(9285);function s(t,e){e=e||o;var n=[];return n=n.concat(i({key:"",value:t,valueSpec:e.$root,styleSpec:e,style:t,objectElementValidators:{glyphs:a,"*":function(){return[]}}})),t.constants&&(n=n.concat(r({key:"constants",value:t.constants,style:t,styleSpec:e}))),u(n)}function u(t){return[].concat(t).sort((function(t,e){return t.line-e.line}))}function l(t){return function(){return u(t.apply(this,arguments))}}s.source=l(n(843)),s.light=l(n(7341)),s.layer=l(n(5873)),s.filter=l(n(3928)),s.paintProperty=l(n(55)),s.layoutProperty=l(n(1961)),t.exports=s},7627:function(t,e,n){function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var i=n(2535),o=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.zoom=e,n?(this.now=n.now,this.fadeDuration=n.fadeDuration,this.zoomHistory=n.zoomHistory,this.transition=n.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new i,this.transition={})}var e,n;return e=t,(n=[{key:"crossFadingFactor",value:function(){return 0===this.fadeDuration?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)}}])&&r(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();t.exports=o},3278:function(t,e,n){var r=n(5641).AlphaImage,i=n(3614);function o(t,e,n){1===t&&n.readMessage(a,e)}function a(t,e,n){if(3===t){var i=n.readMessage(s,{}),o=i.id,a=i.bitmap,u=i.width,l=i.height,c=i.left,f=i.top,p=i.advance;e.push({id:o,bitmap:new r({width:u+6,height:l+6},a),metrics:{width:u,height:l,left:c,top:f,advance:p}})}}function s(t,e,n){1===t?e.id=n.readVarint():2===t?e.bitmap=n.readBytes():3===t?e.width=n.readVarint():4===t?e.height=n.readVarint():5===t?e.left=n.readSVarint():6===t?e.top=n.readSVarint():7===t&&(e.advance=n.readVarint())}t.exports=function(t){return new i(t).readFields(o,[])},t.exports.GLYPH_PBF_BORDER=3},5615:function(t,e,n){function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var a=n(8583),s=n(8316),u=s.clone,l=s.extend,c=s.easeCubicInOut,f=n(2643),p=n(8266).normalizePropertyExpression,h=(n(6016),n(1786).register),y=function(){function t(e,n){r(this,t),this.property=e,this.value=n,this.expression=p(void 0===n?e.specification.default:n,e.specification)}return o(t,[{key:"isDataDriven",value:function(){return"source"===this.expression.kind||"composite"===this.expression.kind}},{key:"possiblyEvaluate",value:function(t){return this.property.possiblyEvaluate(this,t)}}]),t}(),d=function(){function t(e){r(this,t),this.property=e,this.value=new y(e,void 0)}return o(t,[{key:"transitioned",value:function(t,e){return new m(this.property,this.value,e,l({},t.transition,this.transition),t.now)}},{key:"untransitioned",value:function(){return new m(this.property,this.value,null,{},0)}}]),t}(),v=function(){function t(e){r(this,t),this._properties=e,this._values=Object.create(e.defaultTransitionablePropertyValues)}return o(t,[{key:"getValue",value:function(t){return u(this._values[t].value.value)}},{key:"setValue",value:function(t,e){this._values.hasOwnProperty(t)||(this._values[t]=new d(this._values[t].property)),this._values[t].value=new y(this._values[t].property,null===e?void 0:u(e))}},{key:"getTransition",value:function(t){return u(this._values[t].transition)}},{key:"setTransition",value:function(t,e){this._values.hasOwnProperty(t)||(this._values[t]=new d(this._values[t].property)),this._values[t].transition=u(e)||void 0}},{key:"serialize",value:function(){for(var t={},e=0,n=Object.keys(this._values);e<n.length;e++){var r=n[e],i=this.getValue(r);void 0!==i&&(t[r]=i);var o=this.getTransition(r);void 0!==o&&(t["".concat(r,"-transition")]=o)}return t}},{key:"transitioned",value:function(t,e){for(var n=new g(this._properties),r=0,i=Object.keys(this._values);r<i.length;r++){var o=i[r];n._values[o]=this._values[o].transitioned(t,e._values[o])}return n}},{key:"untransitioned",value:function(){for(var t=new g(this._properties),e=0,n=Object.keys(this._values);e<n.length;e++){var r=n[e];t._values[r]=this._values[r].untransitioned()}return t}}]),t}(),m=function(){function t(e,n,i,o,a){r(this,t),this.property=e,this.value=n,this.begin=a+o.delay||0,this.end=this.begin+o.duration||0,e.specification.transition&&(o.delay||o.duration)&&(this.prior=i)}return o(t,[{key:"possiblyEvaluate",value:function(t){var e=t.now||0,n=this.value.possiblyEvaluate(t),r=this.prior;if(r){if(e>this.end)return this.prior=null,n;if(this.value.isDataDriven())return this.prior=null,n;if(e<this.begin)return r.possiblyEvaluate(t);var i=(e-this.begin)/(this.end-this.begin);return this.property.interpolate(r.possiblyEvaluate(t),n,c(i))}return n}}]),t}(),g=function(){function t(e){r(this,t),this._properties=e,this._values=Object.create(e.defaultTransitioningPropertyValues)}return o(t,[{key:"possiblyEvaluate",value:function(t){for(var e=new w(this._properties),n=0,r=Object.keys(this._values);n<r.length;n++){var i=r[n];e._values[i]=this._values[i].possiblyEvaluate(t)}return e}},{key:"hasTransition",value:function(){for(var t=0,e=Object.keys(this._values);t<e.length;t++){var n=e[t];if(this._values[n].prior)return!0}return!1}}]),t}(),b=function(){function t(e){r(this,t),this._properties=e,this._values=Object.create(e.defaultPropertyValues)}return o(t,[{key:"getValue",value:function(t){return u(this._values[t].value)}},{key:"setValue",value:function(t,e){this._values[t]=new y(this._values[t].property,null===e?void 0:u(e))}},{key:"serialize",value:function(){for(var t={},e=0,n=Object.keys(this._values);e<n.length;e++){var r=n[e],i=this.getValue(r);void 0!==i&&(t[r]=i)}return t}},{key:"possiblyEvaluate",value:function(t){for(var e=new w(this._properties),n=0,r=Object.keys(this._values);n<r.length;n++){var i=r[n];e._values[i]=this._values[i].possiblyEvaluate(t)}return e}}]),t}(),x=function(){function t(e,n,i){r(this,t),this.property=e,this.value=n,this.globals=i}return o(t,[{key:"isConstant",value:function(){return"constant"===this.value.kind}},{key:"constantOr",value:function(t){return"constant"===this.value.kind?this.value.value:t}},{key:"evaluate",value:function(t){return this.property.evaluate(this.value,this.globals,t)}}]),t}(),w=function(){function t(e){r(this,t),this._properties=e,this._values=Object.create(e.defaultPossiblyEvaluatedValues)}return o(t,[{key:"get",value:function(t){return this._values[t]}}]),t}(),k=function(){function t(e){r(this,t),this.specification=e}return o(t,[{key:"possiblyEvaluate",value:function(t,e){return a(!t.isDataDriven()),t.expression.evaluate(e)}},{key:"interpolate",value:function(t,e,n){var r=f[this.specification.type];return r?r(t,e,n):t}}]),t}(),S=function(){function t(e){r(this,t),this.specification=e}return o(t,[{key:"possiblyEvaluate",value:function(t,e){return"constant"===t.expression.kind||"camera"===t.expression.kind?new x(this,{kind:"constant",value:t.expression.evaluate(e)},e):new x(this,t.expression,e)}},{key:"interpolate",value:function(t,e,n){if("constant"!==t.value.kind||"constant"!==e.value.kind)return t;if(void 0!==t.value.value&&void 0!==e.value.value){var r=f[this.specification.type];return r?new x(this,{kind:"constant",value:r(t.value.value,e.value.value,n)},t.globals):t}}},{key:"evaluate",value:function(t,e,n){return"constant"===t.kind?t.value:t.evaluate(e,n)}}]),t}(),_=function(){function t(e){r(this,t),this.specification=e}return o(t,[{key:"possiblyEvaluate",value:function(t,e){if(void 0!==t.value){if("constant"===t.expression.kind){var n=t.expression.evaluate(e);return this._calculate(n,n,n,e)}return a(!t.isDataDriven()),this._calculate(t.expression.evaluate({zoom:e.zoom-1}),t.expression.evaluate({zoom:e.zoom}),t.expression.evaluate({zoom:e.zoom+1}),e)}}},{key:"_calculate",value:function(t,e,n,r){var i=r.zoom,o=i-Math.floor(i),a=r.crossFadingFactor();return i>r.zoomHistory.lastIntegerZoom?{from:t,to:e,fromScale:2,toScale:1,t:o+(1-o)*a}:{from:n,to:e,fromScale:.5,toScale:1,t:1-(1-a)*o}}},{key:"interpolate",value:function(t){return t}}]),t}(),A=function(){function t(e){r(this,t),this.specification=e}return o(t,[{key:"possiblyEvaluate",value:function(){}},{key:"interpolate",value:function(){}}]),t}(),j=o((function t(e){for(var n in r(this,t),this.properties=e,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},e){var i=e[n],o=this.defaultPropertyValues[n]=new y(i,void 0),a=this.defaultTransitionablePropertyValues[n]=new d(i);this.defaultTransitioningPropertyValues[n]=a.untransitioned(),this.defaultPossiblyEvaluatedValues[n]=o.possiblyEvaluate({})}}));h("DataDrivenProperty",S),h("DataConstantProperty",k),h("CrossFadedProperty",_),h("HeatmapColorProperty",A),t.exports={PropertyValue:y,Transitionable:v,Transitioning:g,Layout:b,PossiblyEvaluatedPropertyValue:x,PossiblyEvaluated:w,DataConstantProperty:k,DataDrivenProperty:S,CrossFadedProperty:_,HeatmapColorProperty:A,Properties:j}},6181:function(t,e,n){var r=n(5550);t.exports={getMaximumPaintValue:function(t,e,n){var r=e.paint.get(t).value;return"constant"===r.kind?r.value:n.programConfigurations.get(e.id).binders[t].statistics.max},translateDistance:function(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])},translate:function(t,e,n,i,o){if(!e[0]&&!e[1])return t;var a=r.convert(e);"viewport"===n&&a._rotate(-i);for(var s=[],u=0;u<t.length;u++){for(var l=t[u],c=[],f=0;f<l.length;f++)c.push(l[f].sub(a._mult(o)));s.push(c)}return s}}},3397:function(t,e,n){function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e){return o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},o(t,e)}function a(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return t}(t)}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}var u=n(8316),l=n(5487),c=n(9571),f=n(1495),p=n(5615),h=p.Layout,y=p.Transitionable,d=(p.Transitioning,p.Properties,"-transition"),v=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&o(t,e)}(v,t);var e,n,r,f,p=(r=v,f=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=s(r);if(f){var n=s(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return a(this,t)});function v(t,e){var n;for(var r in function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,v),(n=p.call(this)).id=t.id,n.metadata=t.metadata,n.type=t.type,n.minzoom=t.minzoom,n.maxzoom=t.maxzoom,n.visibility="visible","background"!==t.type&&(n.source=t.source,n.sourceLayer=t["source-layer"],n.filter=t.filter),n._featureFilter=function(){return!0},e.layout&&(n._unevaluatedLayout=new h(e.layout)),n._transitionablePaint=new y(e.paint),t.paint)n.setPaintProperty(r,t.paint[r],{validate:!1});for(var i in t.layout)n.setLayoutProperty(i,t.layout[i],{validate:!1});return n._transitioningPaint=n._transitionablePaint.untransitioned(),n}return e=v,(n=[{key:"getLayoutProperty",value:function(t){return"visibility"===t?this.visibility:this._unevaluatedLayout.getValue(t)}},{key:"setLayoutProperty",value:function(t,e,n){if(null!=e){var r="layers.".concat(this.id,".layout.").concat(t);if(this._validate(c.layoutProperty,r,t,e,n))return}"visibility"!==t?this._unevaluatedLayout.setValue(t,e):this.visibility="none"===e?e:"visible"}},{key:"getPaintProperty",value:function(t){return u.endsWith(t,d)?this._transitionablePaint.getTransition(t.slice(0,-d.length)):this._transitionablePaint.getValue(t)}},{key:"setPaintProperty",value:function(t,e,n){if(null!=e){var r="layers.".concat(this.id,".paint.").concat(t);if(this._validate(c.paintProperty,r,t,e,n))return}u.endsWith(t,d)?this._transitionablePaint.setTransition(t.slice(0,-d.length),e||void 0):this._transitionablePaint.setValue(t,e)}},{key:"isHidden",value:function(t){return!!(this.minzoom&&t<this.minzoom)||!!(this.maxzoom&&t>=this.maxzoom)||"none"===this.visibility}},{key:"updateTransitions",value:function(t){this._transitioningPaint=this._transitionablePaint.transitioned(t,this._transitioningPaint)}},{key:"hasTransition",value:function(){return this._transitioningPaint.hasTransition()}},{key:"recalculate",value:function(t){this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(t)),this.paint=this._transitioningPaint.possiblyEvaluate(t)}},{key:"serialize",value:function(){var t={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return"none"===this.visibility&&(t.layout=t.layout||{},t.layout.visibility="none"),u.filterObject(t,(function(t,e){return!(void 0===t||"layout"===e&&!Object.keys(t).length||"paint"===e&&!Object.keys(t).length)}))}},{key:"_validate",value:function(t,e,n,r,i){return(!i||!1!==i.validate)&&c.emitErrors(this,t.call(c,{key:e,layerType:this.type,objectKey:n,value:r,styleSpec:l,style:{glyphs:!0,sprite:!0}}))}},{key:"hasOffscreenPass",value:function(){return!1}},{key:"resize",value:function(){}}])&&i(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),v}(f);t.exports=v;var m={circle:n(7342),heatmap:n(9399),hillshade:n(4712),fill:n(2210),"fill-extrusion":n(9993),line:n(990),symbol:n(4195),background:n(9140),raster:n(4544)};v.create=function(t){return new m[t.type](t)}},9140:function(t,e,n){function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function i(t,e){return i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},i(t,e)}function o(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return t}(t)}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}var s=n(3397),u=n(623),l=n(5615),c=(l.Transitionable,l.Transitioning,l.PossiblyEvaluated,function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,t);var e,n,r,s=(n=l,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=a(n);if(r){var i=a(this).constructor;t=Reflect.construct(e,arguments,i)}else t=e.apply(this,arguments);return o(this,t)});function l(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),s.call(this,t,u)}return e=l,Object.defineProperty(e,"prototype",{writable:!1}),e}(s));t.exports=c},623:function(t,e,n){var r=n(5487),i=n(5615),o=i.Properties,a=i.DataConstantProperty,s=(i.DataDrivenProperty,i.CrossFadedProperty),u=(i.HeatmapColorProperty,new o({"background-color":new a(r.paint_background["background-color"]),"background-pattern":new s(r.paint_background["background-pattern"]),"background-opacity":new a(r.paint_background["background-opacity"])}));t.exports={paint:u}},7342:function(t,e,n){function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e){return o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},o(t,e)}function a(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return t}(t)}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}var u=n(3397),l=n(6677),c=n(66).multiPolygonIntersectsBufferedMultiPoint,f=n(6181),p=f.getMaximumPaintValue,h=f.translateDistance,y=f.translate,d=n(7258),v=n(5615),m=(v.Transitionable,v.Transitioning,v.PossiblyEvaluated,function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&o(t,e)}(v,t);var e,n,r,u,f=(r=v,u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=s(r);if(u){var n=s(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return a(this,t)});function v(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,v),f.call(this,t,d)}return e=v,(n=[{key:"createBucket",value:function(t){return new l(t)}},{key:"queryRadius",value:function(t){var e=t;return p("circle-radius",this,e)+p("circle-stroke-width",this,e)+h(this.paint.get("circle-translate"))}},{key:"queryIntersectsFeature",value:function(t,e,n,r,i,o){var a=y(t,this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),i,o),s=this.paint.get("circle-radius").evaluate(e)*o,u=this.paint.get("circle-stroke-width").evaluate(e)*o;return c(a,n,s+u)}}])&&i(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),v}(u));t.exports=m},7258:function(t,e,n){var r=n(5487),i=n(5615),o=i.Properties,a=i.DataConstantProperty,s=i.DataDrivenProperty,u=(i.CrossFadedProperty,i.HeatmapColorProperty,new o({"circle-radius":new s(r.paint_circle["circle-radius"]),"circle-color":new s(r.paint_circle["circle-color"]),"circle-blur":new s(r.paint_circle["circle-blur"]),"circle-opacity":new s(r.paint_circle["circle-opacity"]),"circle-translate":new a(r.paint_circle["circle-translate"]),"circle-translate-anchor":new a(r.paint_circle["circle-translate-anchor"]),"circle-pitch-scale":new a(r.paint_circle["circle-pitch-scale"]),"circle-pitch-alignment":new a(r.paint_circle["circle-pitch-alignment"]),"circle-stroke-width":new s(r.paint_circle["circle-stroke-width"]),"circle-stroke-color":new s(r.paint_circle["circle-stroke-color"]),"circle-stroke-opacity":new s(r.paint_circle["circle-stroke-opacity"])}));t.exports={paint:u}},9993:function(t,e,n){function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e){return o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},o(t,e)}function a(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return t}(t)}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}var u=n(3397),l=n(8294),c=n(66).multiPolygonIntersectsMultiPolygon,f=n(6181),p=f.translateDistance,h=f.translate,y=n(6671),d=n(5615),v=(d.Transitionable,d.Transitioning,d.PossiblyEvaluated,function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&o(t,e)}(d,t);var e,n,r,u,f=(r=d,u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=s(r);if(u){var n=s(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return a(this,t)});function d(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,d),f.call(this,t,y)}return e=d,(n=[{key:"createBucket",value:function(t){return new l(t)}},{key:"queryRadius",value:function(){return p(this.paint.get("fill-extrusion-translate"))}},{key:"queryIntersectsFeature",value:function(t,e,n,r,i,o){var a=h(t,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),i,o);return c(a,n)}},{key:"hasOffscreenPass",value:function(){return 0!==this.paint.get("fill-extrusion-opacity")&&"none"!==this.visibility}},{key:"resize",value:function(){this.viewportFrame&&(this.viewportFrame.destroy(),this.viewportFrame=null)}}])&&i(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),d}(u));t.exports=v},6671:function(t,e,n){var r=n(5487),i=n(5615),o=i.Properties,a=i.DataConstantProperty,s=i.DataDrivenProperty,u=i.CrossFadedProperty,l=(i.HeatmapColorProperty,new o({"fill-extrusion-opacity":new a(r["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new s(r["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new a(r["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new a(r["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new u(r["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new s(r["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new s(r["paint_fill-extrusion"]["fill-extrusion-base"])}));t.exports={paint:l}},2210:function(t,e,n){function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e){return o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},o(t,e)}function a(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return t}(t)}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}var u=n(3397),l=n(9603),c=n(66).multiPolygonIntersectsMultiPolygon,f=n(6181),p=f.translateDistance,h=f.translate,y=n(4987),d=n(5615),v=(d.Transitionable,d.Transitioning,d.PossiblyEvaluated,function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&o(t,e)}(d,t);var e,n,r,u,f=(r=d,u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=s(r);if(u){var n=s(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return a(this,t)});function d(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,d),f.call(this,t,y)}return e=d,(n=[{key:"recalculate",value:function(t){this.paint=this._transitioningPaint.possiblyEvaluate(t),void 0===this._transitionablePaint.getValue("fill-outline-color")&&(this.paint._values["fill-outline-color"]=this.paint._values["fill-color"])}},{key:"createBucket",value:function(t){return new l(t)}},{key:"queryRadius",value:function(){return p(this.paint.get("fill-translate"))}},{key:"queryIntersectsFeature",value:function(t,e,n,r,i,o){var a=h(t,this.paint.get("fill-translate"),this.paint.get("fill-translate-anchor"),i,o);return c(a,n)}}])&&i(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),d}(u));t.exports=v},4987:function(t,e,n){var r=n(5487),i=n(5615),o=i.Properties,a=i.DataConstantProperty,s=i.DataDrivenProperty,u=i.CrossFadedProperty,l=(i.HeatmapColorProperty,new o({"fill-antialias":new a(r.paint_fill["fill-antialias"]),"fill-opacity":new s(r.paint_fill["fill-opacity"]),"fill-color":new s(r.paint_fill["fill-color"]),"fill-outline-color":new s(r.paint_fill["fill-outline-color"]),"fill-translate":new a(r.paint_fill["fill-translate"]),"fill-translate-anchor":new a(r.paint_fill["fill-translate-anchor"]),"fill-pattern":new u(r.paint_fill["fill-pattern"])}));t.exports={paint:l}},9399:function(t,e,n){function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(){return o="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=a(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},o.apply(this,arguments)}function a(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=l(t)););return t}function s(t,e){return s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},s(t,e)}function u(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return t}(t)}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}var c=n(3397),f=n(7832),p=n(5641).RGBAImage,h=n(8758),y=n(5615),d=(y.Transitionable,y.Transitioning,y.PossiblyEvaluated,function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(y,t);var e,n,r,a,c=(r=y,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=l(r);if(a){var n=l(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return u(this,t)});function y(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,y),(e=c.call(this,t,h))._updateColorRamp(),e}return e=y,(n=[{key:"createBucket",value:function(t){return new f(t)}},{key:"setPaintProperty",value:function(t,e,n){o(l(y.prototype),"setPaintProperty",this).call(this,t,e,n),"heatmap-color"===t&&this._updateColorRamp()}},{key:"_updateColorRamp",value:function(){for(var t=this._transitionablePaint._values["heatmap-color"].value.expression,e=new Uint8Array(1024),n=e.length,r=4;r<n;r+=4){var i=t.evaluate({heatmapDensity:r/n});e[r+0]=Math.floor(255*i.r/i.a),e[r+1]=Math.floor(255*i.g/i.a),e[r+2]=Math.floor(255*i.b/i.a),e[r+3]=Math.floor(255*i.a)}this.colorRamp=new p({width:256,height:1},e),this.colorRampTexture=null}},{key:"resize",value:function(){this.heatmapFbo&&(this.heatmapFbo.destroy(),this.heatmapFbo=null)}},{key:"queryRadius",value:function(){return 0}},{key:"queryIntersectsFeature",value:function(){return!1}},{key:"hasOffscreenPass",value:function(){return 0!==this.paint.get("heatmap-opacity")&&"none"!==this.visibility}}])&&i(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),y}(c));t.exports=d},8758:function(t,e,n){var r=n(5487),i=n(5615),o=i.Properties,a=i.DataConstantProperty,s=i.DataDrivenProperty,u=(i.CrossFadedProperty,i.HeatmapColorProperty),l=new o({"heatmap-radius":new s(r.paint_heatmap["heatmap-radius"]),"heatmap-weight":new s(r.paint_heatmap["heatmap-weight"]),"heatmap-intensity":new a(r.paint_heatmap["heatmap-intensity"]),"heatmap-color":new u(r.paint_heatmap["heatmap-color"]),"heatmap-opacity":new a(r.paint_heatmap["heatmap-opacity"])});t.exports={paint:l}},4712:function(t,e,n){function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e){return o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},o(t,e)}function a(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return t}(t)}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}var u=n(3397),l=n(2824),c=n(5615),f=(c.Transitionable,c.Transitioning,c.PossiblyEvaluated,function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&o(t,e)}(f,t);var e,n,r,u,c=(r=f,u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=s(r);if(u){var n=s(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return a(this,t)});function f(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,f),c.call(this,t,l)}return e=f,(n=[{key:"hasOffscreenPass",value:function(){return 0!==this.paint.get("hillshade-exaggeration")&&"none"!==this.visibility}}])&&i(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),f}(u));t.exports=f},2824:function(t,e,n){var r=n(5487),i=n(5615),o=i.Properties,a=i.DataConstantProperty,s=(i.DataDrivenProperty,i.CrossFadedProperty,i.HeatmapColorProperty,new o({"hillshade-illumination-direction":new a(r.paint_hillshade["hillshade-illumination-direction"]),"hillshade-illumination-anchor":new a(r.paint_hillshade["hillshade-illumination-anchor"]),"hillshade-exaggeration":new a(r.paint_hillshade["hillshade-exaggeration"]),"hillshade-shadow-color":new a(r.paint_hillshade["hillshade-shadow-color"]),"hillshade-highlight-color":new a(r.paint_hillshade["hillshade-highlight-color"]),"hillshade-accent-color":new a(r.paint_hillshade["hillshade-accent-color"])}));t.exports={paint:s}},990:function(t,e,n){function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function s(){return s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=u(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},s.apply(this,arguments)}function u(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=h(t)););return t}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}function c(t,e){return c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},c(t,e)}function f(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=h(t);if(e){var i=h(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return p(this,n)}}function p(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return t}(t)}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}var y=n(5550),d=n(3397),v=n(6905),m=n(66).multiPolygonIntersectsBufferedMultiLine,g=n(6181),b=g.getMaximumPaintValue,x=g.translateDistance,w=g.translate,k=n(7822),S=n(8316).extend,_=n(7627),A=n(5615),j=(A.Transitionable,A.Transitioning,A.Layout,A.PossiblyEvaluated,function(t){l(n,t);var e=f(n);function n(){return i(this,n),e.apply(this,arguments)}return a(n,[{key:"possiblyEvaluate",value:function(t,e){return e=new _(Math.floor(e.zoom),{now:e.now,fadeDuration:e.fadeDuration,zoomHistory:e.zoomHistory,transition:e.transition}),s(h(n.prototype),"possiblyEvaluate",this).call(this,t,e)}},{key:"evaluate",value:function(t,e,r){return e=S({},e,{zoom:Math.floor(e.zoom)}),s(h(n.prototype),"evaluate",this).call(this,t,e,r)}}]),n}(A.DataDrivenProperty)),O=new j(k.paint.properties["line-width"].specification);O.useIntegerZoom=!0;var T=function(t){l(n,t);var e=f(n);function n(t){return i(this,n),e.call(this,t,k)}return a(n,[{key:"recalculate",value:function(t){s(h(n.prototype),"recalculate",this).call(this,t),this.paint._values["line-floorwidth"]=O.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,t)}},{key:"createBucket",value:function(t){return new v(t)}},{key:"queryRadius",value:function(t){var e=t,n=P(b("line-width",this,e),b("line-gap-width",this,e)),r=b("line-offset",this,e);return n/2+Math.abs(r)+x(this.paint.get("line-translate"))}},{key:"queryIntersectsFeature",value:function(t,e,n,r,i,o){var a=w(t,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),i,o),s=o/2*P(this.paint.get("line-width").evaluate(e),this.paint.get("line-gap-width").evaluate(e)),u=this.paint.get("line-offset").evaluate(e);return u&&(n=function(t,e){for(var n=[],r=new y(0,0),i=0;i<t.length;i++){for(var o=t[i],a=[],s=0;s<o.length;s++){var u=o[s-1],l=o[s],c=o[s+1],f=0===s?r:l.sub(u)._unit()._perp(),p=s===o.length-1?r:c.sub(l)._unit()._perp(),h=f._add(p)._unit(),d=h.x*p.x+h.y*p.y;h._mult(1/d),a.push(h._mult(e)._add(l))}n.push(a)}return n}(n,u*o)),m(a,n,s)}}]),n}(d);function P(t,e){return e>0?e+2*t:t}t.exports=T},7822:function(t,e,n){var r=n(5487),i=n(5615),o=i.Properties,a=i.DataConstantProperty,s=i.DataDrivenProperty,u=i.CrossFadedProperty,l=(i.HeatmapColorProperty,new o({"line-cap":new a(r.layout_line["line-cap"]),"line-join":new s(r.layout_line["line-join"]),"line-miter-limit":new a(r.layout_line["line-miter-limit"]),"line-round-limit":new a(r.layout_line["line-round-limit"])})),c=new o({"line-opacity":new s(r.paint_line["line-opacity"]),"line-color":new s(r.paint_line["line-color"]),"line-translate":new a(r.paint_line["line-translate"]),"line-translate-anchor":new a(r.paint_line["line-translate-anchor"]),"line-width":new s(r.paint_line["line-width"]),"line-gap-width":new s(r.paint_line["line-gap-width"]),"line-offset":new s(r.paint_line["line-offset"]),"line-blur":new s(r.paint_line["line-blur"]),"line-dasharray":new u(r.paint_line["line-dasharray"]),"line-pattern":new u(r.paint_line["line-pattern"])});t.exports={paint:c,layout:l}},4544:function(t,e,n){function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function i(t,e){return i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},i(t,e)}function o(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return t}(t)}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}var s=n(3397),u=n(3026),l=n(5615),c=(l.Transitionable,l.Transitioning,l.PossiblyEvaluated,function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,t);var e,n,r,s=(n=l,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=a(n);if(r){var i=a(this).constructor;t=Reflect.construct(e,arguments,i)}else t=e.apply(this,arguments);return o(this,t)});function l(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),s.call(this,t,u)}return e=l,Object.defineProperty(e,"prototype",{writable:!1}),e}(s));t.exports=c},3026:function(t,e,n){var r=n(5487),i=n(5615),o=i.Properties,a=i.DataConstantProperty,s=(i.DataDrivenProperty,i.CrossFadedProperty,i.HeatmapColorProperty,new o({"raster-opacity":new a(r.paint_raster["raster-opacity"]),"raster-hue-rotate":new a(r.paint_raster["raster-hue-rotate"]),"raster-brightness-min":new a(r.paint_raster["raster-brightness-min"]),"raster-brightness-max":new a(r.paint_raster["raster-brightness-max"]),"raster-saturation":new a(r.paint_raster["raster-saturation"]),"raster-contrast":new a(r.paint_raster["raster-contrast"]),"raster-fade-duration":new a(r.paint_raster["raster-fade-duration"])}));t.exports={paint:s}},4195:function(t,e,n){function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(){return o="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=a(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},o.apply(this,arguments)}function a(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=l(t)););return t}function s(t,e){return s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},s(t,e)}function u(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return t}(t)}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}var c=n(3397),f=n(5571),p=n(7359),h=n(8266).isExpression,y=n(8583),d=n(9348),v=n(5615),m=(v.Transitionable,v.Transitioning,v.Layout,v.PossiblyEvaluated,function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(v,t);var e,n,r,a,c=(r=v,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=l(r);if(a){var n=l(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return u(this,t)});function v(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,v),c.call(this,t,d)}return e=v,(n=[{key:"recalculate",value:function(t){o(l(v.prototype),"recalculate",this).call(this,t),"auto"===this.layout.get("icon-rotation-alignment")&&("line"===this.layout.get("symbol-placement")?this.layout._values["icon-rotation-alignment"]="map":this.layout._values["icon-rotation-alignment"]="viewport"),"auto"===this.layout.get("text-rotation-alignment")&&("line"===this.layout.get("symbol-placement")?this.layout._values["text-rotation-alignment"]="map":this.layout._values["text-rotation-alignment"]="viewport"),"auto"===this.layout.get("text-pitch-alignment")&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),"auto"===this.layout.get("icon-pitch-alignment")&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment"))}},{key:"getValueAndResolveTokens",value:function(t,e){var n=this.layout.get(t).evaluate(e),r=this._unevaluatedLayout._values[t];return r.isDataDriven()||h(r.value)?n:p(e.properties,n)}},{key:"createBucket",value:function(t){return new f(t)}},{key:"queryRadius",value:function(){return 0}},{key:"queryIntersectsFeature",value:function(){return y(!1),!1}}])&&i(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),v}(c));t.exports=m},9348:function(t,e,n){var r=n(5487),i=n(5615),o=i.Properties,a=i.DataConstantProperty,s=i.DataDrivenProperty,u=(i.CrossFadedProperty,i.HeatmapColorProperty,new o({"symbol-placement":new a(r.layout_symbol["symbol-placement"]),"symbol-spacing":new a(r.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new a(r.layout_symbol["symbol-avoid-edges"]),"icon-allow-overlap":new a(r.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new a(r.layout_symbol["icon-ignore-placement"]),"icon-optional":new a(r.layout_symbol["icon-optional"]),"icon-rotation-alignment":new a(r.layout_symbol["icon-rotation-alignment"]),"icon-size":new s(r.layout_symbol["icon-size"]),"icon-text-fit":new a(r.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new a(r.layout_symbol["icon-text-fit-padding"]),"icon-image":new s(r.layout_symbol["icon-image"]),"icon-rotate":new s(r.layout_symbol["icon-rotate"]),"icon-padding":new a(r.layout_symbol["icon-padding"]),"icon-keep-upright":new a(r.layout_symbol["icon-keep-upright"]),"icon-offset":new s(r.layout_symbol["icon-offset"]),"icon-anchor":new s(r.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new a(r.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new a(r.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new a(r.layout_symbol["text-rotation-alignment"]),"text-field":new s(r.layout_symbol["text-field"]),"text-font":new s(r.layout_symbol["text-font"]),"text-size":new s(r.layout_symbol["text-size"]),"text-max-width":new s(r.layout_symbol["text-max-width"]),"text-line-height":new a(r.layout_symbol["text-line-height"]),"text-letter-spacing":new s(r.layout_symbol["text-letter-spacing"]),"text-justify":new s(r.layout_symbol["text-justify"]),"text-anchor":new s(r.layout_symbol["text-anchor"]),"text-max-angle":new a(r.layout_symbol["text-max-angle"]),"text-rotate":new s(r.layout_symbol["text-rotate"]),"text-padding":new a(r.layout_symbol["text-padding"]),"text-keep-upright":new a(r.layout_symbol["text-keep-upright"]),"text-transform":new s(r.layout_symbol["text-transform"]),"text-offset":new s(r.layout_symbol["text-offset"]),"text-allow-overlap":new a(r.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new a(r.layout_symbol["text-ignore-placement"]),"text-optional":new a(r.layout_symbol["text-optional"])})),l=new o({"icon-opacity":new s(r.paint_symbol["icon-opacity"]),"icon-color":new s(r.paint_symbol["icon-color"]),"icon-halo-color":new s(r.paint_symbol["icon-halo-color"]),"icon-halo-width":new s(r.paint_symbol["icon-halo-width"]),"icon-halo-blur":new s(r.paint_symbol["icon-halo-blur"]),"icon-translate":new a(r.paint_symbol["icon-translate"]),"icon-translate-anchor":new a(r.paint_symbol["icon-translate-anchor"]),"text-opacity":new s(r.paint_symbol["text-opacity"]),"text-color":new s(r.paint_symbol["text-color"]),"text-halo-color":new s(r.paint_symbol["text-halo-color"]),"text-halo-width":new s(r.paint_symbol["text-halo-width"]),"text-halo-blur":new s(r.paint_symbol["text-halo-blur"]),"text-translate":new a(r.paint_symbol["text-translate"]),"text-translate-anchor":new a(r.paint_symbol["text-translate-anchor"])});t.exports={paint:l,layout:u}},9678:function(t,e,n){function r(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var a=n(3397),s=n(8316),u=n(1693),l=n(4510),c=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e&&this.replace(e)}var e,n;return e=t,(n=[{key:"replace",value:function(t){this._layerConfigs={},this._layers={},this.update(t,[])}},{key:"update",value:function(t,e){var n,i=this,o=r(t);try{for(o.s();!(n=o.n()).done;){var c=n.value;this._layerConfigs[c.id]=c;var f=this._layers[c.id]=a.create(c);f._featureFilter=u(f.filter)}}catch(t){o.e(t)}finally{o.f()}var p,h=r(e);try{for(h.s();!(p=h.n()).done;){var y=p.value;delete this._layerConfigs[y],delete this._layers[y]}}catch(t){h.e(t)}finally{h.f()}this.familiesBySource={};var d,v=r(l(s.values(this._layerConfigs)));try{for(v.s();!(d=v.n()).done;){var m=d.value.map((function(t){return i._layers[t.id]})),g=m[0];if("none"!==g.visibility){var b=g.source||"",x=this.familiesBySource[b];x||(x=this.familiesBySource[b]={});var w=g.sourceLayer||"_geojsonTileLayer",k=x[w];k||(k=x[w]=[]),k.push(m)}}}catch(t){v.e(t)}finally{v.f()}}}])&&o(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();t.exports=c},9571:function(t,e,n){function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}t.exports=n(7250),t.exports.emitErrors=function(t,e){if(e&&e.length){var n,i=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,o=function(){};return{s:o,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}(e);try{for(i.s();!(n=i.n()).done;){var o=n.value.message;t.fire("error",{error:new Error(o)})}}catch(t){i.e(t)}finally{i.f()}return!0}return!1}},2535:function(t){function e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var n=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.first=!0}var n,r;return n=t,(r=[{key:"update",value:function(t,e){var n=Math.floor(t);return this.first?(this.first=!1,this.lastIntegerZoom=n,this.lastIntegerZoomTime=0,this.lastZoom=t,this.lastFloorZoom=n,!0):(this.lastFloorZoom>n?(this.lastIntegerZoom=n+1,this.lastIntegerZoomTime=e):this.lastFloorZoom<n&&(this.lastIntegerZoom=n,this.lastIntegerZoomTime=e),t!==this.lastZoom&&(this.lastZoom=t,this.lastFloorZoom=n,!0))}}])&&e(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),t}();t.exports=n},1397:function(t,e,n){function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e){return o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},o(t,e)}function a(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return t}(t)}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}var u=n(5550),l=n(1786).register,c=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&o(t,e)}(c,t);var e,n,r,u,l=(r=c,u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=s(r);if(u){var n=s(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return a(this,t)});function c(t,e,n,r){var i;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),(i=l.call(this,t,e)).angle=n,void 0!==r&&(i.segment=r),i}return e=c,(n=[{key:"clone",value:function(){return new c(this.x,this.y,this.angle,this.segment)}}])&&i(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),c}(u);l("Anchor",c),t.exports=c},2116:function(t){t.exports=function(t,e,n,r,i){if(void 0===e.segment)return!0;for(var o=e,a=e.segment+1,s=0;s>-n/2;){if(--a<0)return!1;s-=t[a].dist(o),o=t[a]}s+=t[a].dist(t[a+1]),a++;for(var u=[],l=0;s<n/2;){var c=t[a-1],f=t[a],p=t[a+1];if(!p)return!1;var h=c.angleTo(f)-f.angleTo(p);for(h=Math.abs((h+3*Math.PI)%(2*Math.PI)-Math.PI),u.push({distance:s,angleDelta:h}),l+=h;s-u[0].distance>r;)l-=u.shift().angleDelta;if(l>i)return!1;a++,s+=f.dist(p)}return!0}},6220:function(t,e,n){var r=n(5550);t.exports=function(t,e,n,i,o){for(var a=[],s=0;s<t.length;s++)for(var u=t[s],l=void 0,c=0;c<u.length-1;c++){var f=u[c],p=u[c+1];f.x<e&&p.x<e||(f.x<e?f=new r(e,f.y+(p.y-f.y)*((e-f.x)/(p.x-f.x)))._round():p.x<e&&(p=new r(e,f.y+(p.y-f.y)*((e-f.x)/(p.x-f.x)))._round()),f.y<n&&p.y<n||(f.y<n?f=new r(f.x+(p.x-f.x)*((n-f.y)/(p.y-f.y)),n)._round():p.y<n&&(p=new r(f.x+(p.x-f.x)*((n-f.y)/(p.y-f.y)),n)._round()),f.x>=i&&p.x>=i||(f.x>=i?f=new r(i,f.y+(p.y-f.y)*((i-f.x)/(p.x-f.x)))._round():p.x>=i&&(p=new r(i,f.y+(p.y-f.y)*((i-f.x)/(p.x-f.x)))._round()),f.y>=o&&p.y>=o||(f.y>=o?f=new r(f.x+(p.x-f.x)*((o-f.y)/(p.y-f.y)),o)._round():p.y>=o&&(p=new r(f.x+(p.x-f.x)*((o-f.y)/(p.y-f.y)),o)._round()),l&&f.equals(l[l.length-1])||(l=[f],a.push(l)),l.push(p)))))}return a}},9786:function(t){function e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var n=function(){function t(e,n,r,i,o,a,s,u,l,c,f){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var p=s.top*u-l,h=s.bottom*u+l,y=s.left*u-l,d=s.right*u+l;if(this.boxStartIndex=e.length,c){var v=h-p,m=d-y;v>0&&(v=Math.max(10*u,v),this._addLineCollisionCircles(e,n,r,r.segment,m,v,i,o,a,f))}else e.emplaceBack(r.x,r.y,y,p,d,h,i,o,a,0,0);this.boxEndIndex=e.length}var n,r;return n=t,(r=[{key:"_addLineCollisionCircles",value:function(t,e,n,r,i,o,a,s,u,l){var c=o/2,f=Math.floor(i/c),p=1+.4*Math.log(l)/Math.LN2,h=Math.floor(f*p/2),y=-o/2,d=n,v=r+1,m=y,g=-i/2,b=g-i/4;do{if(--v<0){if(m>g)return;v=0;break}m-=e[v].dist(d),d=e[v]}while(m>b);for(var x=e[v].dist(e[v+1]),w=-h;w<f+h;w++){var k=w*c,S=g+k;if(k<0&&(S+=k),k>i&&(S+=k-i),!(S<m)){for(;m+x<S;){if(m+=x,1+ ++v>=e.length)return;x=e[v].dist(e[v+1])}var _=S-m,A=e[v],j=e[v+1].sub(A)._unit()._mult(_)._add(A)._round(),O=Math.abs(S-y)<c?0:.8*(S-y);t.emplaceBack(j.x,j.y,-o/2,-o/2,o/2,o/2,a,s,u,o/2,O)}}}}])&&e(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),t}();t.exports=n},5811:function(t,e,n){var r=n(2643).number,i=n(1397),o=n(2116);function a(t,e,n,s,u,l,c,f,p){for(var h=l/2,y=0,d=0;d<t.length-1;d++)y+=t[d].dist(t[d+1]);for(var v=0,m=e-n,g=[],b=0;b<t.length-1;b++){for(var x=t[b],w=t[b+1],k=x.dist(w),S=w.angleTo(x);m+n<v+k;){var _=((m+=n)-v)/k,A=r(x.x,w.x,_),j=r(x.y,w.y,_);if(A>=0&&A<p&&j>=0&&j<p&&m-h>=0&&m+h<=y){var O=new i(A,j,S,b);O._round(),s&&!o(t,O,l,s,u)||g.push(O)}}v+=k}return f||g.length||c||(g=a(t,v/2,n,s,u,l,c,!0,p)),g}t.exports=function(t,e,n,r,i,o,s,u,l){var c=r?.6*o*s:0,f=Math.max(r?r.right-r.left:0,i?i.right-i.left:0),p=0===t[0].x||t[0].x===l||0===t[0].y||t[0].y===l;return e-f*s<e/4&&(e=f*s+e/4),a(t,p?e/2*u%e:(f/2+2*o)*s*u%e,e,c,n,f*s,p,!1,l)}},8376:function(t){t.exports=function(t){var e={},n={},r=[],i=0;function o(e){r.push(t[e]),i++}function a(t,e,i){var o=n[t];return delete n[t],n[e]=o,r[o].geometry[0].pop(),r[o].geometry[0]=r[o].geometry[0].concat(i[0]),o}function s(t,n,i){var o=e[n];return delete e[n],e[t]=o,r[o].geometry[0].shift(),r[o].geometry[0]=i[0].concat(r[o].geometry[0]),o}function u(t,e,n){var r=n?e[0][e[0].length-1]:e[0][0];return"".concat(t,":").concat(r.x,":").concat(r.y)}for(var l=0;l<t.length;l++){var c=t[l],f=c.geometry,p=c.text;if(p){var h=u(p,f),y=u(p,f,!0);if(h in n&&y in e&&n[h]!==e[y]){var d=s(h,y,f),v=a(h,y,r[d].geometry);delete e[h],delete n[y],n[u(p,r[v].geometry,!0)]=v,r[d].geometry=null}else h in n?a(h,y,f):y in e?s(h,y,f):(o(l),e[h]=i-1,n[y]=i-1)}else o(l)}return r.filter((function(t){return t.geometry}))}},9502:function(t,e,n){function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var i=n(1786).register,o=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.opacity=0,this.targetOpacity=0,this.time=0}var e,n;return e=t,(n=[{key:"clone",value:function(){var e=new t;return e.opacity=this.opacity,e.targetOpacity=this.targetOpacity,e.time=this.time,e}}])&&r(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();i("OpacityState",o),t.exports=o},5673:function(t,e,n){var r=n(5550),i=n(3278).GLYPH_PBF_BORDER;t.exports={getIconQuads:function(t,e,n,i,o,a,s){var u,l,c,f,p=e.image,h=n.layout,y=e.top-1/p.pixelRatio,d=e.left-1/p.pixelRatio,v=e.bottom+1/p.pixelRatio,m=e.right+1/p.pixelRatio;if("none"!==h.get("icon-text-fit")&&o){var g=m-d,b=v-y,x=h.get("text-size").evaluate(s)/24,w=o.left*x,k=o.right*x,S=o.top*x,_=k-w,A=o.bottom*x-S,j=h.get("icon-text-fit-padding")[0],O=h.get("icon-text-fit-padding")[1],T=h.get("icon-text-fit-padding")[2],P=h.get("icon-text-fit-padding")[3],z="width"===h.get("icon-text-fit")?.5*(A-b):0,I="height"===h.get("icon-text-fit")?.5*(_-g):0,E="width"===h.get("icon-text-fit")||"both"===h.get("icon-text-fit")?_:g,C="height"===h.get("icon-text-fit")||"both"===h.get("icon-text-fit")?A:b;u=new r(w+I-P,S+z-j),l=new r(w+I+O+E,S+z-j),c=new r(w+I+O+E,S+z+T+C),f=new r(w+I-P,S+z+T+C)}else u=new r(d,y),l=new r(m,y),c=new r(m,v),f=new r(d,v);var M=n.layout.get("icon-rotate").evaluate(s)*Math.PI/180;if(M){var B=Math.sin(M),V=Math.cos(M),R=[V,-B,B,V];u._matMult(R),l._matMult(R),f._matMult(R),c._matMult(R)}return[{tl:u,tr:l,bl:f,br:c,tex:{x:p.textureRect.x-1,y:p.textureRect.y-1,w:p.textureRect.w+2,h:p.textureRect.h+2},writingMode:void 0,glyphOffset:[0,0]}]},getGlyphQuads:function(t,e,n,o,a,s,u){for(var l=n.layout.get("text-rotate").evaluate(s)*Math.PI/180,c=n.layout.get("text-offset").evaluate(s).map((function(t){return 24*t})),f=e.positionedGlyphs,p=[],h=0;h<f.length;h++){var y=f[h],d=u[y.glyph];if(d){var v=d.rect;if(v){var m=i+1,g=d.metrics.advance/2,b=o?[y.x+g,y.y]:[0,0],x=o?[0,0]:[y.x+g+c[0],y.y+c[1]],w=d.metrics.left-m-g+x[0],k=-d.metrics.top-m+x[1],S=w+v.w,_=k+v.h,A=new r(w,k),j=new r(S,k),O=new r(w,_),T=new r(S,_);if(o&&y.vertical){var P=new r(-g,g),z=-Math.PI/2,I=new r(5,0);A._rotateAround(z,P)._add(I),j._rotateAround(z,P)._add(I),O._rotateAround(z,P)._add(I),T._rotateAround(z,P)._add(I)}if(l){var E=Math.sin(l),C=Math.cos(l),M=[C,-E,E,C];A._matMult(M),j._matMult(M),O._matMult(M),T._matMult(M)}p.push({tl:A,tr:j,bl:O,br:T,tex:v,writingMode:e.writingMode,glyphOffset:b})}}}return p}}},976:function(t,e,n){var r,i;function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw o}}}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var u=n(6584),l=n(7899),c=n(4781),f={horizontal:1,vertical:2,horizontalOnly:3};t.exports={shapeText:function(t,e,n,r,i,o,s,p,h,y){var d=t.trim();y===f.vertical&&(d=l(d));var v,m=[],w={positionedGlyphs:m,text:d,top:p[1],bottom:p[1],left:p[0],right:p[0],writingMode:y},k=c.processBidirectionalText;return v=k?k(d,g(d,s,n,e)):function(t,e){var n,r=[],i=0,o=a(e);try{for(o.s();!(n=o.n()).done;){var s=n.value;r.push(t.substring(i,s)),i=s}}catch(t){o.e(t)}finally{o.f()}return i<t.length&&r.push(t.substring(i,t.length)),r}(d,g(d,s,n,e)),function(t,e,n,r,i,o,s,l,c){var p,h=0,y=-17,d=0,v=t.positionedGlyphs,m="right"===o?1:"left"===o?0:.5,g=a(n);try{for(g.s();!(p=g.n()).done;){var w=p.value;if((w=w.trim()).length){for(var k=v.length,S=0;S<w.length;S++){var _=w.charCodeAt(S),A=e[_];A&&(u.charHasUprightVerticalOrientation(_)&&s!==f.horizontal?(v.push({glyph:_,x:h,y:0,vertical:!0}),h+=c+l):(v.push({glyph:_,x:h,y:y,vertical:!1}),h+=A.metrics.advance+l))}if(v.length!==k){var j=h-l;d=Math.max(j,d),x(v,e,k,v.length-1,m)}h=0,y+=r}else y+=r}}catch(t){g.e(t)}finally{g.f()}var O=b(i),T=O.horizontalAlign,P=O.verticalAlign;!function(t,e,n,r,i,o,a){for(var s=(e-n)*i,u=(-r*a+.5)*o,l=0;l<t.length;l++)t[l].x+=s,t[l].y+=u}(v,m,T,P,d,r,n.length);var z=n.length*r;t.top+=-P*z,t.bottom=t.top+z,t.left+=-T*d,t.right=t.left+d}(w,e,v,r,i,o,y,s,h),!!m.length&&w},shapeIcon:function(t,e,n){var r=b(n),i=r.horizontalAlign,o=r.verticalAlign,a=e[0],s=e[1],u=a-t.displaySize[0]*i,l=u+t.displaySize[0],c=s-t.displaySize[1]*o;return{image:t,top:c,bottom:c+t.displaySize[1],left:u,right:l}},WritingMode:f};var p=(o(r={},9,!0),o(r,10,!0),o(r,11,!0),o(r,12,!0),o(r,13,!0),o(r,32,!0),r),h=(o(i={},10,!0),o(i,32,!0),o(i,38,!0),o(i,40,!0),o(i,41,!0),o(i,43,!0),o(i,45,!0),o(i,47,!0),o(i,173,!0),o(i,183,!0),o(i,8203,!0),o(i,8208,!0),o(i,8211,!0),o(i,8231,!0),i);function y(t,e,n,r){var i=Math.pow(t-e,2);return r?t<e?i/2:2*i:i+Math.abs(n)*n}function d(t,e){var n=0;return 10===t&&(n-=1e4),40!==t&&65288!==t||(n+=50),41!==e&&65289!==e||(n+=50),n}function v(t,e,n,r,i,o){var s,u=null,l=y(e,n,i,o),c=a(r);try{for(c.s();!(s=c.n()).done;){var f=s.value,p=y(e-f.x,n,i,o)+f.badness;p<=l&&(u=f,l=p)}}catch(t){c.e(t)}finally{c.f()}return{index:t,x:e,priorBreak:u,badness:l}}function m(t){return t?m(t.priorBreak).concat(t.index):[]}function g(t,e,n,r){if(!n)return[];if(!t)return[];for(var i=[],o=function(t,e,n,r){for(var i=0,o=0;o<t.length;o++){var a=r[t.charCodeAt(o)];a&&(i+=a.metrics.advance+e)}return i/Math.max(1,Math.ceil(i/n))}(t,e,n,r),a=0,s=0;s<t.length;s++){var l=t.charCodeAt(s),c=r[l];c&&!p[l]&&(a+=c.metrics.advance+e),s<t.length-1&&(h[l]||u.charAllowsIdeographicBreaking(l))&&i.push(v(s+1,a,o,i,d(l,t.charCodeAt(s+1)),!1))}return m(v(t.length,a,o,i,0,!0))}function b(t){var e=.5,n=.5;switch(t){case"right":case"top-right":case"bottom-right":e=1;break;case"left":case"top-left":case"bottom-left":e=0}switch(t){case"bottom":case"bottom-right":case"bottom-left":n=1;break;case"top":case"top-right":case"top-left":n=0}return{horizontalAlign:e,verticalAlign:n}}function x(t,e,n,r,i){if(i){var o=e[t[r].glyph];if(o)for(var a=o.metrics.advance,s=(t[r].x+a)*i,u=n;u<=r;u++)t[u].x-=s}}},9457:function(t,e,n){function r(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var o=n(1397),a=n(5811),s=n(6220),u=n(9502),l=n(976),c=l.shapeText,f=l.shapeIcon,p=l.WritingMode,h=n(5673),y=h.getGlyphQuads,d=h.getIconQuads,v=n(9786),m=n(8316),g=n(6584),b=n(8218),x=n(937),w=n(900),k=n(5571),S=n(7627);function _(t,e,n,i,l,c){var f=c.layoutTextSize.evaluate(e),h=c.layoutIconSize.evaluate(e),y=c.textMaxSize.evaluate(e);void 0===y&&(y=f);var g=t.layers[0].layout,S=g.get("text-offset").evaluate(e),_=g.get("icon-offset").evaluate(e),O=f/24,T=t.tilePixelRatio*O,P=t.tilePixelRatio*y/24,z=t.tilePixelRatio*h,I=t.tilePixelRatio*g.get("symbol-spacing"),E=g.get("text-padding")*t.tilePixelRatio,C=g.get("icon-padding")*t.tilePixelRatio,M=g.get("text-max-angle")/180*Math.PI,B="map"===g.get("text-rotation-alignment")&&"line"===g.get("symbol-placement"),V="map"===g.get("icon-rotation-alignment")&&"line"===g.get("symbol-placement"),R=I/2,L=function(r,o){o.x<0||o.x>=w||o.y<0||o.y>=w||t.symbolInstances.push(function(t,e,n,r,i,o,a,s,l,c,f,h,y,g,b,x,w,S,_,j,O,T){var P,z,I=t.addToLineVertexArray(e,n),E=0,C=0,M=0,B=r.horizontal?r.horizontal.text:"",V=[];r.horizontal&&(P=new v(a,n,e,s,l,c,r.horizontal,f,h,y,t.overscaling),C+=A(t,e,r.horizontal,o,y,_,j,g,I,r.vertical?p.horizontal:p.horizontalOnly,V,O,T),r.vertical&&(M+=A(t,e,r.vertical,o,y,_,j,g,I,p.vertical,V,O,T)));var R=P?P.boxStartIndex:t.collisionBoxArray.length,L=P?P.boxEndIndex:t.collisionBoxArray.length;if(i){var F=d(e,i,o,w,r.horizontal,_,j);z=new v(a,n,e,s,l,c,i,b,x,!1,t.overscaling),E=4*F.length;var D=t.iconSizeData,q=null;"source"===D.functionType?q=[10*o.layout.get("icon-size").evaluate(j)]:"composite"===D.functionType&&(q=[10*T.compositeIconSizes[0].evaluate(j),10*T.compositeIconSizes[1].evaluate(j)]),t.addSymbols(t.icon,F,q,S,w,j,!1,e,I.lineStartIndex,I.lineLength)}var U=z?z.boxStartIndex:t.collisionBoxArray.length,N=z?z.boxEndIndex:t.collisionBoxArray.length;return t.glyphOffsetArray.length>=k.MAX_GLYPHS&&m.warnOnce("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),{key:B,textBoxStartIndex:R,textBoxEndIndex:L,iconBoxStartIndex:U,iconBoxEndIndex:N,textOffset:g,iconOffset:S,anchor:e,line:n,featureIndex:s,feature:j,numGlyphVertices:C,numVerticalGlyphVertices:M,numIconVertices:E,textOpacityState:new u,iconOpacityState:new u,isDuplicate:!1,placedTextSymbolIndices:V,crossTileID:0}}(t,o,r,n,i,t.layers[0],t.collisionBoxArray,e.index,e.sourceLayerIndex,t.index,T,E,B,S,z,C,V,_,{zoom:t.zoom},e,l,c))};if("line"===g.get("symbol-placement")){var F,D=r(s(e.geometry,0,0,w,w));try{for(D.s();!(F=D.n()).done;){var q,U=F.value,N=r(a(U,I,M,n.vertical||n.horizontal,i,24,P,t.overscaling,w));try{for(N.s();!(q=N.n()).done;){var J=q.value,G=n.horizontal;G&&j(t,G.text,R,J)||L(U,J)}}catch(t){N.e(t)}finally{N.f()}}}catch(t){D.e(t)}finally{D.f()}}else if("Polygon"===e.type){var Z,H=r(x(e.geometry,0));try{for(H.s();!(Z=H.n()).done;){var W=Z.value,Y=b(W,16);L(W[0],new o(Y.x,Y.y,0))}}catch(t){H.e(t)}finally{H.f()}}else if("LineString"===e.type){var $,K=r(e.geometry);try{for(K.s();!($=K.n()).done;){var X=$.value;L(X,new o(X[0].x,X[0].y,0))}}catch(t){K.e(t)}finally{K.f()}}else if("Point"===e.type){var Q,tt=r(e.geometry);try{for(tt.s();!(Q=tt.n()).done;){var et,nt=r(Q.value);try{for(nt.s();!(et=nt.n()).done;){var rt=et.value;L([rt],new o(rt.x,rt.y,0))}}catch(t){nt.e(t)}finally{nt.f()}}}catch(t){tt.e(t)}finally{tt.f()}}}function A(t,e,n,r,i,o,a,s,u,l,c,f,p){var h=y(e,n,r,i,o,a,f),d=t.textSizeData,v=null;return"source"===d.functionType?v=[10*r.layout.get("text-size").evaluate(a)]:"composite"===d.functionType&&(v=[10*p.compositeTextSizes[0].evaluate(a),10*p.compositeTextSizes[1].evaluate(a)]),t.addSymbols(t.text,h,v,s,i,a,l,e,u.lineStartIndex,u.lineLength),c.push(t.text.placedSymbolArray.length-1),4*h.length}function j(t,e,n,r){var i=t.compareText;if(e in i){for(var o=i[e],a=o.length-1;a>=0;a--)if(r.dist(o[a])<n)return!0}else i[e]=[];return i[e].push(r),!1}n(5550),t.exports={performSymbolLayout:function(t,e,n,i,o,a){t.createArrays(),t.symbolInstances=[];var s=512*t.overscaling;t.tilePixelRatio=w/s,t.compareText={},t.iconsNeedLinear=!1;var u=t.layers[0].layout,l=t.layers[0]._unevaluatedLayout._values,h={};if("composite"===t.textSizeData.functionType){var y=t.textSizeData.zoomRange,d=y.min,v=y.max;h.compositeTextSizes=[l["text-size"].possiblyEvaluate(new S(d)),l["text-size"].possiblyEvaluate(new S(v))]}if("composite"===t.iconSizeData.functionType){var b=t.iconSizeData.zoomRange,x=b.min,k=b.max;h.compositeIconSizes=[l["icon-size"].possiblyEvaluate(new S(x)),l["icon-size"].possiblyEvaluate(new S(k))]}h.layoutTextSize=l["text-size"].possiblyEvaluate(new S(t.zoom+1)),h.layoutIconSize=l["icon-size"].possiblyEvaluate(new S(t.zoom+1)),h.textMaxSize=l["text-size"].possiblyEvaluate(new S(18));var A,j=24,O=u.get("text-line-height")*j,T="map"===u.get("text-rotation-alignment")&&"line"===u.get("symbol-placement"),P=u.get("text-keep-upright"),z=r(t.features);try{for(z.s();!(A=z.n()).done;){var I=A.value,E=u.get("text-font").evaluate(I).join(","),C=e[E]||{},M=n[E]||{},B={},V=I.text;if(V){var R=g.allowsVerticalWritingMode(V),L=u.get("text-offset").evaluate(I).map((function(t){return t*j})),F=u.get("text-letter-spacing").evaluate(I)*j,D=g.allowsLetterSpacing(V)?F:0,q=u.get("text-anchor").evaluate(I),U=u.get("text-justify").evaluate(I),N="line"!==u.get("symbol-placement")?u.get("text-max-width").evaluate(I)*j:0;B.horizontal=c(V,C,N,O,q,U,D,L,j,p.horizontal),R&&T&&P&&(B.vertical=c(V,C,N,O,q,U,D,L,j,p.vertical))}var J=void 0;if(I.icon){var G=i[I.icon];G&&(J=f(o[I.icon],u.get("icon-offset").evaluate(I),u.get("icon-anchor").evaluate(I)),void 0===t.sdfIcons?t.sdfIcons=G.sdf:t.sdfIcons!==G.sdf&&m.warnOnce("Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer"),(G.pixelRatio!==t.pixelRatio||0!==u.get("icon-rotate").constantOr(1))&&(t.iconsNeedLinear=!0))}(B.horizontal||J)&&_(t,I,B,J,M,h)}}catch(t){z.e(t)}finally{z.f()}a&&t.generateCollisionDebugBuffers()}}},724:function(t,e,n){var r=n(8266).normalizePropertyExpression,i=n(2643),o=n(8316);t.exports={getSizeData:function(t,e){var n=e.expression;if("constant"===n.kind)return{functionType:"constant",layoutSize:n.evaluate({zoom:t+1})};if("source"===n.kind)return{functionType:"source"};for(var r=n.zoomStops,i=0;i<r.length&&r[i]<=t;)i++;for(var o=i=Math.max(0,i-1);o<r.length&&r[o]<t+1;)o++;o=Math.min(r.length-1,o);var a={min:r[i],max:r[o]};return"composite"===n.kind?{functionType:"composite",zoomRange:a,propertyValue:e.value}:{functionType:"camera",layoutSize:n.evaluate({zoom:t+1}),zoomRange:a,sizeRange:{min:n.evaluate({zoom:a.min}),max:n.evaluate({zoom:a.max})},propertyValue:e.value}},evaluateSizeForFeature:function(t,e,n){var r=e;return"source"===t.functionType?n.lowerSize/10:"composite"===t.functionType?i.number(n.lowerSize/10,n.upperSize/10,r.uSizeT):r.uSize},evaluateSizeForZoom:function(t,e,n){if("constant"===t.functionType)return{uSizeT:0,uSize:t.layoutSize};if("source"===t.functionType)return{uSizeT:0,uSize:0};if("camera"===t.functionType){var i=t.propertyValue,a=t.zoomRange,s=t.sizeRange,u=r(i,n.specification),l=o.clamp(u.interpolationFactor(e,a.min,a.max),0,1);return{uSizeT:0,uSize:s.min+l*(s.max-s.min)}}var c=t.propertyValue,f=t.zoomRange,p=r(c,n.specification);return{uSizeT:o.clamp(p.interpolationFactor(e,f.min,f.max),0,1),uSize:0}}}},1447:function(t,e,n){var r=n(4781);t.exports=function(t,e,n){var i=e.layout.get("text-transform").evaluate(n);return"uppercase"===i?t=t.toLocaleUpperCase():"lowercase"===i&&(t=t.toLocaleLowerCase()),r.applyArabicShaping&&(t=r.applyArabicShaping(t)),t}},9646:function(t,e,n){function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var i=n(8316),o=n(1786),a=o.serialize,s=o.deserialize,u=function(){function t(e,n,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.target=e,this.parent=n,this.mapId=r,this.callbacks={},this.callbackID=0,i.bindAll(["receive"],this),this.target.addEventListener("message",this.receive,!1)}var e,n;return e=t,(n=[{key:"send",value:function(t,e,n,r){var i=n?"".concat(this.mapId,":").concat(this.callbackID++):null;n&&(this.callbacks[i]=n);var o=[];this.target.postMessage({targetMapId:r,sourceMapId:this.mapId,type:t,id:String(i),data:a(e,o)},o)}},{key:"receive",value:function(t){var e,n=this,r=t.data,i=r.id;if(!r.targetMapId||this.mapId===r.targetMapId){var o=function(t,e){var r=[];n.target.postMessage({sourceMapId:n.mapId,type:"<response>",id:String(i),error:t?String(t):null,data:a(e,r)},r)};if("<response>"===r.type)e=this.callbacks[r.id],delete this.callbacks[r.id],e&&r.error?e(new Error(r.error)):e&&e(null,s(r.data));else if(void 0!==r.id&&this.parent[r.type])this.parent[r.type](r.sourceMapId,s(r.data),o);else if(void 0!==r.id&&this.parent.getWorkerSource){var u=r.type.split(".");this.parent.getWorkerSource(r.sourceMapId,u[0])[u[1]](s(r.data),o)}else this.parent[r.type](s(r.data))}}},{key:"remove",value:function(){this.target.removeEventListener("message",this.receive,!1)}}])&&r(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();t.exports=u},2341:function(t,e,n){function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function i(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return t}(t)}function o(t){var e="function"==typeof Map?new Map:void 0;return o=function(t){if(null===t||(n=t,-1===Function.toString.call(n).indexOf("[native code]")))return t;var n;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return a(t,arguments,l(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),u(r,t)},o(t)}function a(t,e,n){return a=s()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var i=new(Function.bind.apply(t,r));return n&&u(i,n.prototype),i},a.apply(null,arguments)}function s(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function u(t,e){return u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},u(t,e)}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}var c=n(1362),f={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Image:"Image"};e.ResourceType=f,"function"==typeof Object.freeze&&Object.freeze(f);var p=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&u(t,e)}(a,t);var e,n,r,o=(e=a,n=s(),function(){var t,r=l(e);if(n){var o=l(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return i(this,t)});function a(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(n=o.call(this,t)).status=e,n}return r=a,Object.defineProperty(r,"prototype",{writable:!1}),r}(o(Error));function h(t){var e=new c.XMLHttpRequest;for(var n in e.open("GET",t.url,!0),t.headers)e.setRequestHeader(n,t.headers[n]);return e.withCredentials="include"===t.credentials,e}e.getJSON=function(t,e){var n=h(t);return n.setRequestHeader("Accept","application/json"),n.onerror=function(){e(new Error(n.statusText))},n.onload=function(){if(n.status>=200&&n.status<300&&n.response){var t;try{t=JSON.parse(n.response)}catch(t){return e(t)}e(null,t)}else e(new p(n.statusText,n.status))},n.send(),n},e.getArrayBuffer=function(t,e){var n=h(t);return n.responseType="arraybuffer",n.onerror=function(){e(new Error(n.statusText))},n.onload=function(){var t=n.response;if(0===t.byteLength&&200===n.status)return e(new Error("http status 200 returned without content."));n.status>=200&&n.status<300&&n.response?e(null,{data:t,cacheControl:n.getResponseHeader("Cache-Control"),expires:n.getResponseHeader("Expires")}):e(new p(n.statusText,n.status))},n.send(),n},e.getImage=function(t,n){return e.getArrayBuffer(t,(function(t,e){if(t)n(t);else if(e){var r=new c.Image,i=c.URL||c.webkitURL;r.onload=function(){n(null,r),i.revokeObjectURL(r.src)};var o=new c.Blob([new Uint8Array(e.data)],{type:"image/png"});r.cacheControl=e.cacheControl,r.expires=e.expires,r.src=e.data.byteLength?i.createObjectURL(o):"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII="}}))},e.getVideo=function(t,e){var n,r,i=c.document.createElement("video");i.onloadstart=function(){e(null,i)};for(var o=0;o<t.length;o++){var a=c.document.createElement("source");n=t[o],r=void 0,(r=c.document.createElement("a")).href=n,(r.protocol!==c.document.location.protocol||r.host!==c.document.location.host)&&(i.crossOrigin="Anonymous"),a.src=t[o],i.appendChild(a)}return i}},1362:function(t){t.exports=self},937:function(t,e,n){var r=n(8166),i=n(8316).calculateSignedArea;function o(t,e){return e.area-t.area}t.exports=function(t,e){var n=t.length;if(n<=1)return[t];for(var a,s,u=[],l=0;l<n;l++){var c=i(t[l]);0!==c&&(t[l].area=Math.abs(c),void 0===s&&(s=c<0),s===c<0?(a&&u.push(a),a=[t[l]]):a.push(t[l]))}if(a&&u.push(a),e>1)for(var f=0;f<u.length;f++)u[f].length<=e||(r(u[f],e,1,u[f].length-1,o),u[f]=u[f].slice(0,e));return u}},621:function(t,e,n){function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var i=n(8583),o=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._stringToNumber={},this._numberToString=[];for(var n=0;n<e.length;n++){var r=e[n];this._stringToNumber[r]=n,this._numberToString[n]=r}}var e,n;return e=t,(n=[{key:"encode",value:function(t){return i(t in this._stringToNumber),this._stringToNumber[t]}},{key:"decode",value:function(t){return i(t<this._numberToString.length),this._numberToString[t]}}])&&r(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();t.exports=o},1495:function(t,e,n){function r(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var a=n(8316);function s(t,e,n){n[t]=n[t]||[],n[t].push(e)}function u(t,e,n){if(n&&n[t]){var r=n[t].indexOf(e);-1!==r&&n[t].splice(r,1)}}var l=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n;return e=t,(n=[{key:"on",value:function(t,e){return this._listeners=this._listeners||{},s(t,e,this._listeners),this}},{key:"off",value:function(t,e){return u(t,e,this._listeners),u(t,e,this._oneTimeListeners),this}},{key:"once",value:function(t,e){return this._oneTimeListeners=this._oneTimeListeners||{},s(t,e,this._oneTimeListeners),this}},{key:"fire",value:function(t,e){if(this.listens(t)){e=a.extend({},e,{type:t,target:this});var n,i=r(this._listeners&&this._listeners[t]?this._listeners[t].slice():[]);try{for(i.s();!(n=i.n()).done;)n.value.call(this,e)}catch(t){i.e(t)}finally{i.f()}var o,s=r(this._oneTimeListeners&&this._oneTimeListeners[t]?this._oneTimeListeners[t].slice():[]);try{for(s.s();!(o=s.n()).done;){var l=o.value;u(t,l,this._oneTimeListeners),l.call(this,e)}}catch(t){s.e(t)}finally{s.f()}this._eventedParent&&this._eventedParent.fire(t,a.extend({},e,"function"==typeof this._eventedParentData?this._eventedParentData():this._eventedParentData))}else a.endsWith(t,"error")&&console.error(e&&e.error||e||"Empty error event");return this}},{key:"listens",value:function(t){return this._listeners&&this._listeners[t]&&this._listeners[t].length>0||this._oneTimeListeners&&this._oneTimeListeners[t]&&this._oneTimeListeners[t].length>0||this._eventedParent&&this._eventedParent.listens(t)}},{key:"setEventedParent",value:function(t,e){return this._eventedParent=t,this._eventedParentData=e,this}}])&&o(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();t.exports=l},8218:function(t,e,n){var r=n(3842),i=n(5550),o=n(66).distToSegmentSquared;function a(t,e){return e.max-t.max}function s(t,e,n,r){this.p=new i(t,e),this.h=n,this.d=function(t,e){for(var n=!1,r=1/0,i=0;i<e.length;i++)for(var a=e[i],s=0,u=a.length,l=u-1;s<u;l=s++){var c=a[s],f=a[l];c.y>t.y!=f.y>t.y&&t.x<(f.x-c.x)*(t.y-c.y)/(f.y-c.y)+c.x&&(n=!n),r=Math.min(r,o(t,c,f))}return(n?1:-1)*Math.sqrt(r)}(this.p,r),this.max=this.d+this.h*Math.SQRT2}function u(t){for(var e=0,n=0,r=0,i=t[0],o=0,a=i.length,u=a-1;o<a;u=o++){var l=i[o],c=i[u],f=l.x*c.y-c.x*l.y;n+=(l.x+c.x)*f,r+=(l.y+c.y)*f,e+=3*f}return new s(n/e,r/e,0,t)}t.exports=function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=1/0,l=1/0,c=-1/0,f=-1/0,p=t[0],h=0;h<p.length;h++){var y=p[h];(!h||y.x<o)&&(o=y.x),(!h||y.y<l)&&(l=y.y),(!h||y.x>c)&&(c=y.x),(!h||y.y>f)&&(f=y.y)}var d=c-o,v=f-l,m=Math.min(d,v),g=m/2,b=new r(null,a);if(0===m)return new i(o,l);for(var x=o;x<c;x+=m)for(var w=l;w<f;w+=m)b.push(new s(x+g,w+g,g,t));for(var k=u(t),S=b.length;b.length;){var _=b.pop();(_.d>k.d||!k.d)&&(k=_,n&&console.log("found best %d after %d probes",Math.round(1e4*_.d)/1e4,S)),_.max-k.d<=e||(g=_.h/2,b.push(new s(_.p.x-g,_.p.y-g,g,t)),b.push(new s(_.p.x+g,_.p.y-g,g,t)),b.push(new s(_.p.x-g,_.p.y+g,g,t)),b.push(new s(_.p.x+g,_.p.y+g,g,t)),S+=4)}return n&&(console.log("num probes: ".concat(S)),console.log("best distance: ".concat(k.d))),k.p}},5641:function(t,e,n){function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var a=n(8583),s=n(1786).register;function u(t,e,n,r){var i=e.width,o=e.height;if(r){if(r.length!==i*o*n)throw new RangeError("mismatched image size")}else r=new Uint8Array(i*o*n);return t.width=i,t.height=o,t.data=r,t}function l(t,e,n){var r=e.width,i=e.height;if(r!==t.width||i!==t.height){var o=u({},{width:r,height:i},n);c(t,o,{x:0,y:0},{x:0,y:0},{width:Math.min(t.width,r),height:Math.min(t.height,i)},n),t.width=r,t.height=i,t.data=o.data}}function c(t,e,n,r,i,o){if(0===i.width||0===i.height)return e;if(i.width>t.width||i.height>t.height||n.x>t.width-i.width||n.y>t.height-i.height)throw new RangeError("out of range source coordinates for image copy");if(i.width>e.width||i.height>e.height||r.x>e.width-i.width||r.y>e.height-i.height)throw new RangeError("out of range destination coordinates for image copy");var s=t.data,u=e.data;a(s!==u);for(var l=0;l<i.height;l++)for(var c=((n.y+l)*t.width+n.x)*o,f=((r.y+l)*e.width+r.x)*o,p=0;p<i.width*o;p++)u[f+p]=s[c+p];return e}var f=function(){function t(e,n){r(this,t),u(this,e,1,n)}return o(t,[{key:"resize",value:function(t){l(this,t,1)}},{key:"clone",value:function(){return new t({width:this.width,height:this.height},new Uint8Array(this.data))}}],[{key:"copy",value:function(t,e,n,r,i){c(t,e,n,r,i,1)}}]),t}(),p=function(){function t(e,n){r(this,t),u(this,e,4,n)}return o(t,[{key:"resize",value:function(t){l(this,t,4)}},{key:"clone",value:function(){return new t({width:this.width,height:this.height},new Uint8Array(this.data))}}],[{key:"copy",value:function(t,e,n,r,i){c(t,e,n,r,i,4)}}]),t}();s("AlphaImage",f),s("RGBAImage",p),t.exports={AlphaImage:f,RGBAImage:p}},66:function(t,e,n){var r=n(8316).isCounterClockwise;function i(t,e,n){if(t.length>1){if(o(t,e))return!0;for(var r=0;r<e.length;r++)if(s(e[r],t,n))return!0}for(var i=0;i<t.length;i++)if(s(t[i],e,n))return!0;return!1}function o(t,e){if(0===t.length||0===e.length)return!1;for(var n=0;n<t.length-1;n++)for(var r=t[n],i=t[n+1],o=0;o<e.length-1;o++)if(a(r,i,e[o],e[o+1]))return!0;return!1}function a(t,e,n,i){return r(t,n,i)!==r(e,n,i)&&r(t,e,n)!==r(t,e,i)}function s(t,e,n){var r=n*n;if(1===e.length)return t.distSqr(e[0])<r;for(var i=1;i<e.length;i++)if(u(t,e[i-1],e[i])<r)return!0;return!1}function u(t,e,n){var r=e.distSqr(n);if(0===r)return t.distSqr(e);var i=((t.x-e.x)*(n.x-e.x)+(t.y-e.y)*(n.y-e.y))/r;return i<0?t.distSqr(e):i>1?t.distSqr(n):t.distSqr(n.sub(e)._mult(i)._add(e))}function l(t,e){for(var n,r,i,o=!1,a=0;a<t.length;a++)for(var s=0,u=(n=t[a]).length-1;s<n.length;u=s++)r=n[s],i=n[u],r.y>e.y!=i.y>e.y&&e.x<(i.x-r.x)*(e.y-r.y)/(i.y-r.y)+r.x&&(o=!o);return o}function c(t,e){for(var n=!1,r=0,i=t.length-1;r<t.length;i=r++){var o=t[r],a=t[i];o.y>e.y!=a.y>e.y&&e.x<(a.x-o.x)*(e.y-o.y)/(a.y-o.y)+o.x&&(n=!n)}return n}t.exports={multiPolygonIntersectsBufferedMultiPoint:function(t,e,n){for(var r=0;r<t.length;r++)for(var i=t[r],o=0;o<e.length;o++)for(var a=e[o],u=0;u<a.length;u++){var l=a[u];if(c(i,l))return!0;if(s(l,i,n))return!0}return!1},multiPolygonIntersectsMultiPolygon:function(t,e){if(1===t.length&&1===t[0].length)return l(e,t[0][0]);for(var n=0;n<e.length;n++)for(var r=e[n],i=0;i<r.length;i++)if(l(t,r[i]))return!0;for(var a=0;a<t.length;a++){for(var s=t[a],u=0;u<s.length;u++)if(l(e,s[u]))return!0;for(var c=0;c<e.length;c++)if(o(s,e[c]))return!0}return!1},multiPolygonIntersectsBufferedMultiLine:function(t,e,n){for(var r=0;r<e.length;r++)for(var o=e[r],a=0;a<t.length;a++){var s=t[a];if(s.length>=3)for(var u=0;u<o.length;u++)if(c(s,o[u]))return!0;if(i(s,o,n))return!0}return!1},polygonIntersectsPolygon:function(t,e){for(var n=0;n<t.length;n++)if(c(e,t[n]))return!0;for(var r=0;r<e.length;r++)if(c(t,e[r]))return!0;return!!o(t,e)},distToSegmentSquared:u}},5534:function(t){t.exports={"Latin-1 Supplement":function(t){return t>=128&&t<=255},Arabic:function(t){return t>=1536&&t<=1791},"Arabic Supplement":function(t){return t>=1872&&t<=1919},"Arabic Extended-A":function(t){return t>=2208&&t<=2303},"Hangul Jamo":function(t){return t>=4352&&t<=4607},"Unified Canadian Aboriginal Syllabics":function(t){return t>=5120&&t<=5759},"Unified Canadian Aboriginal Syllabics Extended":function(t){return t>=6320&&t<=6399},"General Punctuation":function(t){return t>=8192&&t<=8303},"Letterlike Symbols":function(t){return t>=8448&&t<=8527},"Number Forms":function(t){return t>=8528&&t<=8591},"Miscellaneous Technical":function(t){return t>=8960&&t<=9215},"Control Pictures":function(t){return t>=9216&&t<=9279},"Optical Character Recognition":function(t){return t>=9280&&t<=9311},"Enclosed Alphanumerics":function(t){return t>=9312&&t<=9471},"Geometric Shapes":function(t){return t>=9632&&t<=9727},"Miscellaneous Symbols":function(t){return t>=9728&&t<=9983},"Miscellaneous Symbols and Arrows":function(t){return t>=11008&&t<=11263},"CJK Radicals Supplement":function(t){return t>=11904&&t<=12031},"Kangxi Radicals":function(t){return t>=12032&&t<=12255},"Ideographic Description Characters":function(t){return t>=12272&&t<=12287},"CJK Symbols and Punctuation":function(t){return t>=12288&&t<=12351},Hiragana:function(t){return t>=12352&&t<=12447},Katakana:function(t){return t>=12448&&t<=12543},Bopomofo:function(t){return t>=12544&&t<=12591},"Hangul Compatibility Jamo":function(t){return t>=12592&&t<=12687},Kanbun:function(t){return t>=12688&&t<=12703},"Bopomofo Extended":function(t){return t>=12704&&t<=12735},"CJK Strokes":function(t){return t>=12736&&t<=12783},"Katakana Phonetic Extensions":function(t){return t>=12784&&t<=12799},"Enclosed CJK Letters and Months":function(t){return t>=12800&&t<=13055},"CJK Compatibility":function(t){return t>=13056&&t<=13311},"CJK Unified Ideographs Extension A":function(t){return t>=13312&&t<=19903},"Yijing Hexagram Symbols":function(t){return t>=19904&&t<=19967},"CJK Unified Ideographs":function(t){return t>=19968&&t<=40959},"Yi Syllables":function(t){return t>=40960&&t<=42127},"Yi Radicals":function(t){return t>=42128&&t<=42191},"Hangul Jamo Extended-A":function(t){return t>=43360&&t<=43391},"Hangul Syllables":function(t){return t>=44032&&t<=55215},"Hangul Jamo Extended-B":function(t){return t>=55216&&t<=55295},"Private Use Area":function(t){return t>=57344&&t<=63743},"CJK Compatibility Ideographs":function(t){return t>=63744&&t<=64255},"Arabic Presentation Forms-A":function(t){return t>=64336&&t<=65023},"Vertical Forms":function(t){return t>=65040&&t<=65055},"CJK Compatibility Forms":function(t){return t>=65072&&t<=65103},"Small Form Variants":function(t){return t>=65104&&t<=65135},"Arabic Presentation Forms-B":function(t){return t>=65136&&t<=65279},"Halfwidth and Fullwidth Forms":function(t){return t>=65280&&t<=65519}}},6584:function(t,e,n){function r(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var o=n(5534);t.exports.allowsIdeographicBreaking=function(t){var n,i=r(t);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(!e.charAllowsIdeographicBreaking(o.charCodeAt(0)))return!1}}catch(t){i.e(t)}finally{i.f()}return!0},t.exports.allowsVerticalWritingMode=function(t){var n,i=r(t);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(e.charHasUprightVerticalOrientation(o.charCodeAt(0)))return!0}}catch(t){i.e(t)}finally{i.f()}return!1},t.exports.allowsLetterSpacing=function(t){var n,i=r(t);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(!e.charAllowsLetterSpacing(o.charCodeAt(0)))return!1}}catch(t){i.e(t)}finally{i.f()}return!0},t.exports.charAllowsLetterSpacing=function(t){return!(o.Arabic(t)||o["Arabic Supplement"](t)||o["Arabic Extended-A"](t)||o["Arabic Presentation Forms-A"](t)||o["Arabic Presentation Forms-B"](t))},t.exports.charAllowsIdeographicBreaking=function(t){return!!(!(t<11904)&&(o["Bopomofo Extended"](t)||o.Bopomofo(t)||o["CJK Compatibility Forms"](t)||o["CJK Compatibility Ideographs"](t)||o["CJK Compatibility"](t)||o["CJK Radicals Supplement"](t)||o["CJK Strokes"](t)||o["CJK Symbols and Punctuation"](t)||o["CJK Unified Ideographs Extension A"](t)||o["CJK Unified Ideographs"](t)||o["Enclosed CJK Letters and Months"](t)||o["Halfwidth and Fullwidth Forms"](t)||o.Hiragana(t)||o["Ideographic Description Characters"](t)||o["Kangxi Radicals"](t)||o["Katakana Phonetic Extensions"](t)||o.Katakana(t)||o["Vertical Forms"](t)||o["Yi Radicals"](t)||o["Yi Syllables"](t)))},e.charHasUprightVerticalOrientation=function(t){return!!(746===t||747===t||!(t<4352)&&(o["Bopomofo Extended"](t)||o.Bopomofo(t)||o["CJK Compatibility Forms"](t)&&!(t>=65097&&t<=65103)||o["CJK Compatibility Ideographs"](t)||o["CJK Compatibility"](t)||o["CJK Radicals Supplement"](t)||o["CJK Strokes"](t)||!(!o["CJK Symbols and Punctuation"](t)||t>=12296&&t<=12305||t>=12308&&t<=12319||12336===t)||o["CJK Unified Ideographs Extension A"](t)||o["CJK Unified Ideographs"](t)||o["Enclosed CJK Letters and Months"](t)||o["Hangul Compatibility Jamo"](t)||o["Hangul Jamo Extended-A"](t)||o["Hangul Jamo Extended-B"](t)||o["Hangul Jamo"](t)||o["Hangul Syllables"](t)||o.Hiragana(t)||o["Ideographic Description Characters"](t)||o.Kanbun(t)||o["Kangxi Radicals"](t)||o["Katakana Phonetic Extensions"](t)||o.Katakana(t)&&12540!==t||!(!o["Halfwidth and Fullwidth Forms"](t)||65288===t||65289===t||65293===t||t>=65306&&t<=65310||65339===t||65341===t||65343===t||t>=65371&&t<=65503||65507===t||t>=65512&&t<=65519)||!(!o["Small Form Variants"](t)||t>=65112&&t<=65118||t>=65123&&t<=65126)||o["Unified Canadian Aboriginal Syllabics"](t)||o["Unified Canadian Aboriginal Syllabics Extended"](t)||o["Vertical Forms"](t)||o["Yijing Hexagram Symbols"](t)||o["Yi Syllables"](t)||o["Yi Radicals"](t)))},e.charHasNeutralVerticalOrientation=function(t){return!!(o["Latin-1 Supplement"](t)&&(167===t||169===t||174===t||177===t||188===t||189===t||190===t||215===t||247===t)||o["General Punctuation"](t)&&(8214===t||8224===t||8225===t||8240===t||8241===t||8251===t||8252===t||8258===t||8263===t||8264===t||8265===t||8273===t)||o["Letterlike Symbols"](t)||o["Number Forms"](t)||o["Miscellaneous Technical"](t)&&(t>=8960&&t<=8967||t>=8972&&t<=8991||t>=8996&&t<=9e3||9003===t||t>=9085&&t<=9114||t>=9150&&t<=9165||9167===t||t>=9169&&t<=9179||t>=9186&&t<=9215)||o["Control Pictures"](t)&&9251!==t||o["Optical Character Recognition"](t)||o["Enclosed Alphanumerics"](t)||o["Geometric Shapes"](t)||o["Miscellaneous Symbols"](t)&&!(t>=9754&&t<=9759)||o["Miscellaneous Symbols and Arrows"](t)&&(t>=11026&&t<=11055||t>=11088&&t<=11097||t>=11192&&t<=11243)||o["CJK Symbols and Punctuation"](t)||o.Katakana(t)||o["Private Use Area"](t)||o["CJK Compatibility Forms"](t)||o["Small Form Variants"](t)||o["Halfwidth and Fullwidth Forms"](t)||8734===t||8756===t||8757===t||t>=9984&&t<=10087||t>=10102&&t<=10131||65532===t||65533===t)},e.charHasRotatedVerticalOrientation=function(t){return!(e.charHasUprightVerticalOrientation(t)||e.charHasNeutralVerticalOrientation(t))}},6693:function(t,e,n){function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function i(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var a=n(8583),s={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},u=i((function t(e,n){o(this,t),this._structArray=e,this._pos1=n*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8})),l=function(){function t(){o(this,t),this.isTransferred=!1,this.capacity=-1,this.resize(0)}return i(t,[{key:"_trim",value:function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())}},{key:"clear",value:function(){this.length=0}},{key:"resize",value:function(t){a(!this.isTransferred),this.reserve(t),this.length=t}},{key:"reserve",value:function(t){if(t>this.capacity){this.capacity=Math.max(t,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var e=this.uint8;this._refreshViews(),e&&this.uint8.set(e)}}},{key:"_refreshViews",value:function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")}}],[{key:"serialize",value:function(t,e){return a(!t.isTransferred),t._trim(),e&&(t.isTransferred=!0,e.push(t.arrayBuffer)),{length:t.length,arrayBuffer:t.arrayBuffer}}},{key:"deserialize",value:function(t){var e=Object.create(this.prototype);return e.arrayBuffer=t.arrayBuffer,e.length=t.length,e.capacity=t.arrayBuffer.byteLength/e.bytesPerElement,e._refreshViews(),e}}]),t}();function c(t){return s[t].BYTES_PER_ELEMENT}function f(t,e){return Math.ceil(t/e)*e}t.exports.StructArray=l,t.exports.Struct=u,t.exports.viewTypes=s,t.exports.createLayout=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=0,r=0,i=t.map((function(t){a(t.name.length);var i=c(t.type),o=n=f(n,Math.max(e,i)),s=t.components||1;return r=Math.max(r,i),n+=i*s,{name:t.name,type:t.type,components:s,offset:o}})),o=f(n,Math.max(r,e));return{members:i,size:o,alignment:e}}},7359:function(t){t.exports=function(t,e){return e.replace(/{([^{}]+)}/g,(function(e,n){return n in t?String(t[n]):""})).replace(/FORMAT_NUMBER\\(([^\\)]+)\\)/g,(function(t,e){return function(t){t=t.split(",");var e=parseFloat(t[0]);return t[2]&&(e*=parseFloat(t[2])),e<1e3?Math.round(e):e<1e5?(e/1e3).toFixed(1)+"K":e<1e6?Math.round(e/1e3)+"K":e<1e9?(e/1e6).toFixed(2)+"M":e<1e12?(e=Math.round(e/1e6).toFixed(0)).slice(0,-3)+","+e.slice(-4,-1)+"M":"HUGE_NUM"}(e)}))}},8316:function(t,e,n){function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}var o=n(9874),a=n(3892);n(5550),e.easeCubicInOut=function(t){if(t<=0)return 0;if(t>=1)return 1;var e=t*t,n=e*t;return 4*(t<.5?n:3*(t-e)+n-.75)},e.bezier=function(t,e,n,r){var i=new o(t,e,n,r);return function(t){return i.solve(t)}},e.ease=e.bezier(.25,.1,.25,1),e.clamp=function(t,e,n){return Math.min(n,Math.max(e,t))},e.wrap=function(t,e,n){var r=n-e,i=((t-e)%r+r)%r+e;return i===e?n:i},e.asyncAll=function(t,e,n){if(!t.length)return n(null,[]);var r=t.length,i=new Array(t.length),o=null;t.forEach((function(t,a){e(t,(function(t,e){t&&(o=t),i[a]=e,0==--r&&n(o,i)}))}))},e.values=function(t){var e=[];for(var n in t)e.push(t[n]);return e},e.keysDifference=function(t,e){var n=[];for(var r in t)r in e||n.push(r);return n},e.extend=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];for(var i=0,o=n;i<o.length;i++){var a=o[i];for(var s in a)t[s]=a[s]}return t},e.pick=function(t,e){for(var n={},r=0;r<e.length;r++){var i=e[r];i in t&&(n[i]=t[i])}return n};var s=1;e.uniqueId=function(){return s++},e.bindAll=function(t,e){t.forEach((function(t){e[t]&&(e[t]=e[t].bind(e))}))},e.getCoordinatesCenter=function(t){for(var e=1/0,n=1/0,r=-1/0,i=-1/0,o=0;o<t.length;o++)e=Math.min(e,t[o].column),n=Math.min(n,t[o].row),r=Math.max(r,t[o].column),i=Math.max(i,t[o].row);var s=r-e,u=i-n,l=Math.max(s,u),c=Math.max(0,Math.floor(-Math.log(l)/Math.LN2));return new a((e+r)/2,(n+i)/2,0).zoomTo(c)},e.endsWith=function(t,e){return-1!==t.indexOf(e,t.length-e.length)},e.mapObject=function(t,e,n){var r={};for(var i in t)r[i]=e.call(n||this,t[i],i,t);return r},e.filterObject=function(t,e,n){var r={};for(var i in t)e.call(n||this,t[i],i,t)&&(r[i]=t[i]);return r},e.deepEqual=n(2688),e.clone=function(t){return Array.isArray(t)?t.map(e.clone):"object"===i(t)&&t?e.mapObject(t,e.clone):t},e.arraysIntersect=function(t,e){for(var n=0;n<t.length;n++)if(e.indexOf(t[n])>=0)return!0;return!1};var u={};e.warnOnce=function(t){u[t]||("undefined"!=typeof console&&console.warn(t),u[t]=!0)},e.isCounterClockwise=function(t,e,n){return(n.y-t.y)*(e.x-t.x)>(e.y-t.y)*(n.x-t.x)},e.calculateSignedArea=function(t){for(var e,n,r=0,i=0,o=t.length,a=o-1;i<o;a=i++)e=t[i],r+=((n=t[a]).x-e.x)*(e.y+n.y);return r},e.isClosedPolygon=function(t){if(t.length<4)return!1;var n=t[0],r=t[t.length-1];return!(Math.abs(n.x-r.x)>0||Math.abs(n.y-r.y)>0)&&Math.abs(e.calculateSignedArea(t))>.01},e.sphericalToCartesian=function(t){var e,n,i=(n=3,function(t){if(Array.isArray(t))return t}(e=t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(t){s=!0,i=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,n)||function(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=i[0],a=i[1],s=i[2];return a+=90,a*=Math.PI/180,s*=Math.PI/180,{x:o*Math.cos(a)*Math.sin(s),y:o*Math.sin(a)*Math.sin(s),z:o*Math.cos(s)}},e.parseCacheControl=function(t){var e={};if(t.replace(/(?:^|(?:\\s*\\,\\s*))([^\\x00-\\x20\\(\\)<>@\\,;\\:\\\\"\\/\\[\\]\\?\\=\\{\\}\\x7F]+)(?:\\=(?:([^\\x00-\\x20\\(\\)<>@\\,;\\:\\\\"\\/\\[\\]\\?\\=\\{\\}\\x7F]+)|(?:\\"((?:[^"\\\\]|\\\\.)*)\\")))?/g,(function(t,n,r,i){var o=r||i;return e[n]=!o||o.toLowerCase(),""})),e["max-age"]){var n=parseInt(e["max-age"],10);isNaN(n)?delete e["max-age"]:e["max-age"]=n}return e}},3076:function(t){function e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var n=function(){function t(e,n,r,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.type="Feature",this._vectorTileFeature=e,e._z=n,e._x=r,e._y=i,this.properties=e.properties,null!=e.id&&(this.id=e.id)}var n,r;return n=t,(r=[{key:"geometry",get:function(){return void 0===this._geometry&&(this._geometry=this._vectorTileFeature.toGeoJSON(this._vectorTileFeature._x,this._vectorTileFeature._y,this._vectorTileFeature._z).geometry),this._geometry},set:function(t){this._geometry=t}},{key:"toJSON",value:function(){var t={geometry:this.geometry};for(var e in this)"_geometry"!==e&&"_vectorTileFeature"!==e&&(t[e]=this[e]);return t}}])&&e(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),t}();t.exports=n},7899:function(t,e,n){var r=n(6584);t.exports=function(e){for(var n="",i=0;i<e.length;i++){var o=e.charCodeAt(i+1)||null,a=e.charCodeAt(i-1)||null;o&&r.charHasRotatedVerticalOrientation(o)&&!t.exports.lookup[e[i+1]]||a&&r.charHasRotatedVerticalOrientation(a)&&!t.exports.lookup[e[i-1]]||!t.exports.lookup[e[i]]?n+=e[i]:n+=t.exports.lookup[e[i]]}return n},t.exports.lookup={"!":"︕","#":"#",$:"$","%":"%","&":"&","(":"︵",")":"︶","*":"*","+":"+",",":"︐","-":"︲",".":"・","/":"/",":":"︓",";":"︔","<":"︿","=":"=",">":"﹀","?":"︖","@":"@","[":"﹇","\\\\":"\","]":"﹈","^":"^",_:"︳","`":"`","{":"︷","|":"―","}":"︸","~":"~","¢":"¢","£":"£","¥":"¥","¦":"¦","¬":"¬","¯":" ̄","–":"︲","—":"︱","‘":"﹃","’":"﹄","“":"﹁","”":"﹂","…":"︙","‧":"・","₩":"₩","、":"︑","。":"︒","〈":"︿","〉":"﹀","《":"︽","》":"︾","「":"﹁","」":"﹂","『":"﹃","』":"﹄","【":"︻","】":"︼","〔":"︹","〕":"︺","〖":"︗","〗":"︘","!":"︕","(":"︵",")":"︶",",":"︐","-":"︲",".":"・",":":"︓",";":"︔","<":"︿",">":"﹀","?":"︖","[":"﹇","]":"﹈","_":"︳","{":"︷","|":"―","}":"︸","⦅":"︵","⦆":"︶","。":"︒","「":"﹁","」":"﹂"}},1786:function(t,e,n){function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var o=n(8583),a=n(1412),s=n(6016),u=n(8266),l=u.StylePropertyFunction,c=u.StyleExpression,f=u.StyleExpressionWithErrorHandling,p=u.ZoomDependentExpression,h=u.ZoomConstantExpression,y=n(5827).CompoundExpression,d=n(6416),v=n(1362).ImageData,m={};function g(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};o(!m[t],"".concat(t," is already registered.")),Object.defineProperty(e,"_classRegistryKey",{value:t,writeable:!1}),m[t]={klass:e,omit:n.omit||[],shallow:n.shallow||[]}}for(var b in g("Object",Object),a.serialize=function(t,e){var n=t.toArrayBuffer();return e&&e.push(n),n},a.deserialize=function(t){return new a(t)},g("Grid",a),g("Color",s),g("StylePropertyFunction",l),g("StyleExpression",c,{omit:["_evaluator"]}),g("StyleExpressionWithErrorHandling",f,{omit:["_evaluator"]}),g("ZoomDependentExpression",p),g("ZoomConstantExpression",h),g("CompoundExpression",y,{omit:["_evaluate"]}),d)d[b]._classRegistryKey||g("Expression_".concat(b),d[b]);t.exports={register:g,serialize:function t(e,n){if(null==e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||e instanceof Boolean||e instanceof Number||e instanceof String||e instanceof Date||e instanceof RegExp)return e;if(e instanceof ArrayBuffer)return n&&n.push(e),e;if(ArrayBuffer.isView(e)){var a=e;return n&&n.push(a.buffer),a}if(e instanceof v)return n&&n.push(e.data.buffer),e;if(Array.isArray(e)){var s,u=[],l=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}(e);try{for(l.s();!(s=l.n()).done;){var c=s.value;u.push(t(c,n))}}catch(t){l.e(t)}finally{l.f()}return u}if("object"===r(e)){var f=e.constructor,p=f._classRegistryKey;if(!p)throw new Error("can\'t serialize object of unregistered class");o(m[p]);var h={};if(f.serialize)h._serialized=f.serialize(e,n);else for(var y in e)if(e.hasOwnProperty(y)&&!(m[p].omit.indexOf(y)>=0)){var d=e[y];h[y]=m[p].shallow.indexOf(y)>=0?d:t(d,n)}return{name:p,properties:h}}throw new Error("can\'t serialize object of type ".concat(r(e)))},deserialize:function t(e){if(null==e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||e instanceof Boolean||e instanceof Number||e instanceof String||e instanceof Date||e instanceof RegExp||e instanceof ArrayBuffer||ArrayBuffer.isView(e)||e instanceof v)return e;if(Array.isArray(e))return e.map((function(e){return t(e)}));if("object"===r(e)){var n=e,i=n.name,o=n.properties;if(!i)throw new Error("can\'t deserialize object of anonymous class");var a=m[i].klass;if(!a)throw new Error("can\'t deserialize unregistered class ".concat(i));if(a.deserialize)return a.deserialize(o._serialized);for(var s=Object.create(a.prototype),u=0,l=Object.keys(o);u<l.length;u++){var c=l[u];s[c]=m[i].shallow.indexOf(c)>=0?o[c]:t(o[c])}return s}throw new Error("can\'t deserialize object of type ".concat(r(e)))}}},5694:function(t,e){var n={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],rebeccapurple:[102,51,153,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function r(t){return(t=Math.round(t))<0?0:t>255?255:t}function i(t){return t<0?0:t>1?1:t}function o(t){return"%"===t[t.length-1]?r(parseFloat(t)/100*255):r(parseInt(t))}function a(t){return"%"===t[t.length-1]?i(parseFloat(t)/100):i(parseFloat(t))}function s(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}try{e.parseCSSColor=function(t){var e,i=t.replace(/ /g,"").toLowerCase();if(i in n)return n[i].slice();if("#"===i[0])return 4===i.length?(e=parseInt(i.substr(1),16))>=0&&e<=4095?[(3840&e)>>4|(3840&e)>>8,240&e|(240&e)>>4,15&e|(15&e)<<4,1]:null:7===i.length&&(e=parseInt(i.substr(1),16))>=0&&e<=16777215?[(16711680&e)>>16,(65280&e)>>8,255&e,1]:null;var u=i.indexOf("("),l=i.indexOf(")");if(-1!==u&&l+1===i.length){var c=i.substr(0,u),f=i.substr(u+1,l-(u+1)).split(","),p=1;switch(c){case"rgba":if(4!==f.length)return null;p=a(f.pop());case"rgb":return 3!==f.length?null:[o(f[0]),o(f[1]),o(f[2]),p];case"hsla":if(4!==f.length)return null;p=a(f.pop());case"hsl":if(3!==f.length)return null;var h=(parseFloat(f[0])%360+360)%360/360,y=a(f[1]),d=a(f[2]),v=d<=.5?d*(y+1):d+y-d*y,m=2*d-v;return[r(255*s(m,v,h+1/3)),r(255*s(m,v,h)),r(255*s(m,v,h-1/3)),p];default:return null}}return null}}catch(t){}},9187:function(t){"use strict";function e(t,e,o){o=o||2;var a,s,u,f,h,y,d,v=e&&e.length,m=v?e[0]*o:t.length,g=n(t,0,m,o,!0),b=[];if(!g||g.next===g.prev)return b;if(v&&(g=function(t,e,i,o){var a,s,u,f=[];for(a=0,s=e.length;a<s;a++)(u=n(t,e[a]*o,a<s-1?e[a+1]*o:t.length,o,!1))===u.next&&(u.steiner=!0),f.push(p(u));for(f.sort(l),a=0;a<f.length;a++)c(f[a],i),i=r(i,i.next);return i}(t,e,g,o)),t.length>80*o){a=u=t[0],s=f=t[1];for(var x=o;x<m;x+=o)(h=t[x])<a&&(a=h),(y=t[x+1])<s&&(s=y),h>u&&(u=h),y>f&&(f=y);d=0!==(d=Math.max(u-a,f-s))?1/d:0}return i(g,b,o,a,s,d),b}function n(t,e,n,r,i){var o,a;if(i===S(t,e,n,r)>0)for(o=e;o<n;o+=r)a=x(o,t[o],t[o+1],a);else for(o=n-r;o>=e;o-=r)a=x(o,t[o],t[o+1],a);return a&&v(a,a.next)&&(w(a),a=a.next),a}function r(t,e){if(!t)return t;e||(e=t);var n,r=t;do{if(n=!1,r.steiner||!v(r,r.next)&&0!==d(r.prev,r,r.next))r=r.next;else{if(w(r),(r=e=r.prev)===r.next)break;n=!0}}while(n||r!==e);return e}function i(t,e,n,l,c,p,h){if(t){!h&&p&&function(t,e,n,r){var i=t;do{null===i.z&&(i.z=f(i.x,i.y,e,n,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,function(t){var e,n,r,i,o,a,s,u,l=1;do{for(n=t,t=null,o=null,a=0;n;){for(a++,r=n,s=0,e=0;e<l&&(s++,r=r.nextZ);e++);for(u=l;s>0||u>0&&r;)0!==s&&(0===u||!r||n.z<=r.z)?(i=n,n=n.nextZ,s--):(i=r,r=r.nextZ,u--),o?o.nextZ=i:t=i,i.prevZ=o,o=i;n=r}o.nextZ=null,l*=2}while(a>1)}(i)}(t,l,c,p);for(var y,d,v=t;t.prev!==t.next;)if(y=t.prev,d=t.next,p?a(t,l,c,p):o(t))e.push(y.i/n),e.push(t.i/n),e.push(d.i/n),w(t),t=d.next,v=d.next;else if((t=d)===v){h?1===h?i(t=s(t,e,n),e,n,l,c,p,2):2===h&&u(t,e,n,l,c,p):i(r(t),e,n,l,c,p,1);break}}}function o(t){var e=t.prev,n=t,r=t.next;if(d(e,n,r)>=0)return!1;for(var i=t.next.next;i!==t.prev;){if(h(e.x,e.y,n.x,n.y,r.x,r.y,i.x,i.y)&&d(i.prev,i,i.next)>=0)return!1;i=i.next}return!0}function a(t,e,n,r){var i=t.prev,o=t,a=t.next;if(d(i,o,a)>=0)return!1;for(var s=i.x<o.x?i.x<a.x?i.x:a.x:o.x<a.x?o.x:a.x,u=i.y<o.y?i.y<a.y?i.y:a.y:o.y<a.y?o.y:a.y,l=i.x>o.x?i.x>a.x?i.x:a.x:o.x>a.x?o.x:a.x,c=i.y>o.y?i.y>a.y?i.y:a.y:o.y>a.y?o.y:a.y,p=f(s,u,e,n,r),y=f(l,c,e,n,r),v=t.prevZ,m=t.nextZ;v&&v.z>=p&&m&&m.z<=y;){if(v!==t.prev&&v!==t.next&&h(i.x,i.y,o.x,o.y,a.x,a.y,v.x,v.y)&&d(v.prev,v,v.next)>=0)return!1;if(v=v.prevZ,m!==t.prev&&m!==t.next&&h(i.x,i.y,o.x,o.y,a.x,a.y,m.x,m.y)&&d(m.prev,m,m.next)>=0)return!1;m=m.nextZ}for(;v&&v.z>=p;){if(v!==t.prev&&v!==t.next&&h(i.x,i.y,o.x,o.y,a.x,a.y,v.x,v.y)&&d(v.prev,v,v.next)>=0)return!1;v=v.prevZ}for(;m&&m.z<=y;){if(m!==t.prev&&m!==t.next&&h(i.x,i.y,o.x,o.y,a.x,a.y,m.x,m.y)&&d(m.prev,m,m.next)>=0)return!1;m=m.nextZ}return!0}function s(t,e,n){var r=t;do{var i=r.prev,o=r.next.next;!v(i,o)&&m(i,r,r.next,o)&&g(i,o)&&g(o,i)&&(e.push(i.i/n),e.push(r.i/n),e.push(o.i/n),w(r),w(r.next),r=t=o),r=r.next}while(r!==t);return r}function u(t,e,n,o,a,s){var u=t;do{for(var l=u.next.next;l!==u.prev;){if(u.i!==l.i&&y(u,l)){var c=b(u,l);return u=r(u,u.next),c=r(c,c.next),i(u,e,n,o,a,s),void i(c,e,n,o,a,s)}l=l.next}u=u.next}while(u!==t)}function l(t,e){return t.x-e.x}function c(t,e){if(e=function(t,e){var n,r=e,i=t.x,o=t.y,a=-1/0;do{if(o<=r.y&&o>=r.next.y&&r.next.y!==r.y){var s=r.x+(o-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(s<=i&&s>a){if(a=s,s===i){if(o===r.y)return r;if(o===r.next.y)return r.next}n=r.x<r.next.x?r:r.next}}r=r.next}while(r!==e);if(!n)return null;if(i===a)return n.prev;var u,l=n,c=n.x,f=n.y,p=1/0;for(r=n.next;r!==l;)i>=r.x&&r.x>=c&&i!==r.x&&h(o<f?i:a,o,c,f,o<f?a:i,o,r.x,r.y)&&((u=Math.abs(o-r.y)/(i-r.x))<p||u===p&&r.x>n.x)&&g(r,t)&&(n=r,p=u),r=r.next;return n}(t,e),e){var n=b(e,t);r(n,n.next)}}function f(t,e,n,r,i){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-n)*i)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-r)*i)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function p(t){var e=t,n=t;do{(e.x<n.x||e.x===n.x&&e.y<n.y)&&(n=e),e=e.next}while(e!==t);return n}function h(t,e,n,r,i,o,a,s){return(i-a)*(e-s)-(t-a)*(o-s)>=0&&(t-a)*(r-s)-(n-a)*(e-s)>=0&&(n-a)*(o-s)-(i-a)*(r-s)>=0}function y(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var n=t;do{if(n.i!==t.i&&n.next.i!==t.i&&n.i!==e.i&&n.next.i!==e.i&&m(n,n.next,t,e))return!0;n=n.next}while(n!==t);return!1}(t,e)&&g(t,e)&&g(e,t)&&function(t,e){var n=t,r=!1,i=(t.x+e.x)/2,o=(t.y+e.y)/2;do{n.y>o!=n.next.y>o&&n.next.y!==n.y&&i<(n.next.x-n.x)*(o-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==t);return r}(t,e)}function d(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function v(t,e){return t.x===e.x&&t.y===e.y}function m(t,e,n,r){return!!(v(t,e)&&v(n,r)||v(t,r)&&v(n,e))||d(t,e,n)>0!=d(t,e,r)>0&&d(n,r,t)>0!=d(n,r,e)>0}function g(t,e){return d(t.prev,t,t.next)<0?d(t,e,t.next)>=0&&d(t,t.prev,e)>=0:d(t,e,t.prev)<0||d(t,t.next,e)<0}function b(t,e){var n=new k(t.i,t.x,t.y),r=new k(e.i,e.x,e.y),i=t.next,o=e.prev;return t.next=e,e.prev=t,n.next=i,i.prev=n,r.next=n,n.prev=r,o.next=r,r.prev=o,r}function x(t,e,n,r){var i=new k(t,e,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function w(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function k(t,e,n){this.i=t,this.x=e,this.y=n,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function S(t,e,n,r){for(var i=0,o=e,a=n-r;o<n;o+=r)i+=(t[a]-t[o])*(t[o+1]+t[a+1]),a=o;return i}t.exports=e,t.exports.default=e,e.deviation=function(t,e,n,r){var i=e&&e.length,o=i?e[0]*n:t.length,a=Math.abs(S(t,0,o,n));if(i)for(var s=0,u=e.length;s<u;s++){var l=e[s]*n,c=s<u-1?e[s+1]*n:t.length;a-=Math.abs(S(t,l,c,n))}var f=0;for(s=0;s<r.length;s+=3){var p=r[s]*n,h=r[s+1]*n,y=r[s+2]*n;f+=Math.abs((t[p]-t[y])*(t[h+1]-t[p+1])-(t[p]-t[h])*(t[y+1]-t[p+1]))}return 0===a&&0===f?0:Math.abs((f-a)/a)},e.flatten=function(t){for(var e=t[0][0].length,n={vertices:[],holes:[],dimensions:e},r=0,i=0;i<t.length;i++){for(var o=0;o<t[i].length;o++)for(var a=0;a<e;a++)n.vertices.push(t[i][o][a]);i>0&&(r+=t[i-1].length,n.holes.push(r))}return n}},7486:function(t,e,n){var r=n(1795);function i(t,e){return function(n){return t(n,e)}}function o(t,e){e=!!e,t[0]=a(t[0],e);for(var n=1;n<t.length;n++)t[n]=a(t[n],!e);return t}function a(t,e){return function(t){return r.ring(t)>=0}(t)===e?t:t.reverse()}t.exports=function t(e,n){switch(e&&e.type||null){case"FeatureCollection":return e.features=e.features.map(i(t,n)),e;case"Feature":return e.geometry=t(e.geometry,n),e;case"Polygon":case"MultiPolygon":return function(t,e){return"Polygon"===t.type?t.coordinates=o(t.coordinates,e):"MultiPolygon"===t.type&&(t.coordinates=t.coordinates.map(i(o,e))),t}(e,n);default:return e}}},8592:function(t,e,n){"use strict";function r(t,e,n,o){for(var a,s=o,u=n-e>>1,l=n-e,c=t[e],f=t[e+1],p=t[n],h=t[n+1],y=e+3;y<n;y+=3){var d=i(t[y],t[y+1],c,f,p,h);if(d>s)a=y,s=d;else if(d===s){var v=Math.abs(y-u);v<l&&(a=y,l=v)}}s>o&&(a-e>3&&r(t,e,a,o),t[a+2]=s,n-a>3&&r(t,a,n,o))}function i(t,e,n,r,i,o){var a=i-n,s=o-r;if(0!==a||0!==s){var u=((t-n)*a+(e-r)*s)/(a*a+s*s);u>1?(n=i,r=o):u>0&&(n+=a*u,r+=s*u)}return(a=t-n)*a+(s=e-r)*s}function o(t,e,n,r){var i={id:void 0===t?null:t,type:e,geometry:n,tags:r,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(t){var e=t.geometry,n=t.type;if("Point"===n||"MultiPoint"===n||"LineString"===n)a(t,e);else if("Polygon"===n||"MultiLineString"===n)for(var r=0;r<e.length;r++)a(t,e[r]);else if("MultiPolygon"===n)for(r=0;r<e.length;r++)for(var i=0;i<e[r].length;i++)a(t,e[r][i])}(i),i}function a(t,e){for(var n=0;n<e.length;n+=3)t.minX=Math.min(t.minX,e[n]),t.minY=Math.min(t.minY,e[n+1]),t.maxX=Math.max(t.maxX,e[n]),t.maxY=Math.max(t.maxY,e[n+1])}function s(t,e,n,r){if(e.geometry){var i=e.geometry.coordinates,a=e.geometry.type,f=Math.pow(n.tolerance/((1<<n.maxZoom)*n.extent),2),p=[],h=e.id;if(n.promoteId?h=e.properties[n.promoteId]:n.generateId&&(h=r||0),"Point"===a)u(i,p);else if("MultiPoint"===a)for(var y=0;y<i.length;y++)u(i[y],p);else if("LineString"===a)l(i,p,f,!1);else if("MultiLineString"===a){if(n.lineMetrics){for(y=0;y<i.length;y++)p=[],l(i[y],p,f,!1),t.push(o(h,"LineString",p,e.properties));return}c(i,p,f,!1)}else if("Polygon"===a)c(i,p,f,!0);else{if("MultiPolygon"!==a){if("GeometryCollection"===a){for(y=0;y<e.geometry.geometries.length;y++)s(t,{id:h,geometry:e.geometry.geometries[y],properties:e.properties},n,r);return}throw new Error("Input data is not a valid GeoJSON object.")}for(y=0;y<i.length;y++){var d=[];c(i[y],d,f,!0),p.push(d)}}t.push(o(h,a,p,e.properties))}}function u(t,e){e.push(f(t[0])),e.push(p(t[1])),e.push(0)}function l(t,e,n,i){for(var o,a,s=0,u=0;u<t.length;u++){var l=f(t[u][0]),c=p(t[u][1]);e.push(l),e.push(c),e.push(0),u>0&&(s+=i?(o*c-l*a)/2:Math.sqrt(Math.pow(l-o,2)+Math.pow(c-a,2))),o=l,a=c}var h=e.length-3;e[2]=1,r(e,0,h,n),e[h+2]=1,e.size=Math.abs(s),e.start=0,e.end=e.size}function c(t,e,n,r){for(var i=0;i<t.length;i++){var o=[];l(t[i],o,n,r),e.push(o)}}function f(t){return t/360+.5}function p(t){var e=Math.sin(t*Math.PI/180),n=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return n<0?0:n>1?1:n}function h(t,e,n,r,i,a,s,u){if(r/=e,a>=(n/=e)&&s<r)return t;if(s<n||a>=r)return null;for(var l=[],c=0;c<t.length;c++){var f=t[c],p=f.geometry,h=f.type,v=0===i?f.minX:f.minY,g=0===i?f.maxX:f.maxY;if(v>=n&&g<r)l.push(f);else if(!(g<n||v>=r)){var b=[];if("Point"===h||"MultiPoint"===h)y(p,b,n,r,i);else if("LineString"===h)d(p,b,n,r,i,!1,u.lineMetrics);else if("MultiLineString"===h)m(p,b,n,r,i,!1);else if("Polygon"===h)m(p,b,n,r,i,!0);else if("MultiPolygon"===h)for(var x=0;x<p.length;x++){var w=[];m(p[x],w,n,r,i,!0),w.length&&b.push(w)}if(b.length){if(u.lineMetrics&&"LineString"===h){for(x=0;x<b.length;x++)l.push(o(f.id,h,b[x],f.tags));continue}"LineString"!==h&&"MultiLineString"!==h||(1===b.length?(h="LineString",b=b[0]):h="MultiLineString"),"Point"!==h&&"MultiPoint"!==h||(h=3===b.length?"Point":"MultiPoint"),l.push(o(f.id,h,b,f.tags))}}}return l.length?l:null}function y(t,e,n,r,i){for(var o=0;o<t.length;o+=3){var a=t[o+i];a>=n&&a<=r&&(e.push(t[o]),e.push(t[o+1]),e.push(t[o+2]))}}function d(t,e,n,r,i,o,a){for(var s,u,l=v(t),c=0===i?b:x,f=t.start,p=0;p<t.length-3;p+=3){var h=t[p],y=t[p+1],d=t[p+2],m=t[p+3],w=t[p+4],k=0===i?h:y,S=0===i?m:w,_=!1;a&&(s=Math.sqrt(Math.pow(h-m,2)+Math.pow(y-w,2))),k<n?S>n&&(u=c(l,h,y,m,w,n),a&&(l.start=f+s*u)):k>r?S<r&&(u=c(l,h,y,m,w,r),a&&(l.start=f+s*u)):g(l,h,y,d),S<n&&k>=n&&(u=c(l,h,y,m,w,n),_=!0),S>r&&k<=r&&(u=c(l,h,y,m,w,r),_=!0),!o&&_&&(a&&(l.end=f+s*u),e.push(l),l=v(t)),a&&(f+=s)}var A=t.length-3;h=t[A],y=t[A+1],d=t[A+2],(k=0===i?h:y)>=n&&k<=r&&g(l,h,y,d),A=l.length-3,o&&A>=3&&(l[A]!==l[0]||l[A+1]!==l[1])&&g(l,l[0],l[1],l[2]),l.length&&e.push(l)}function v(t){var e=[];return e.size=t.size,e.start=t.start,e.end=t.end,e}function m(t,e,n,r,i,o){for(var a=0;a<t.length;a++)d(t[a],e,n,r,i,o,!1)}function g(t,e,n,r){t.push(e),t.push(n),t.push(r)}function b(t,e,n,r,i,o){var a=(o-e)/(r-e);return t.push(o),t.push(n+(i-n)*a),t.push(1),a}function x(t,e,n,r,i,o){var a=(o-n)/(i-n);return t.push(e+(r-e)*a),t.push(o),t.push(1),a}function w(t,e){for(var n=[],r=0;r<t.length;r++){var i,a=t[r],s=a.type;if("Point"===s||"MultiPoint"===s||"LineString"===s)i=k(a.geometry,e);else if("MultiLineString"===s||"Polygon"===s){i=[];for(var u=0;u<a.geometry.length;u++)i.push(k(a.geometry[u],e))}else if("MultiPolygon"===s)for(i=[],u=0;u<a.geometry.length;u++){for(var l=[],c=0;c<a.geometry[u].length;c++)l.push(k(a.geometry[u][c],e));i.push(l)}n.push(o(a.id,s,i,a.tags))}return n}function k(t,e){var n=[];n.size=t.size,void 0!==t.start&&(n.start=t.start,n.end=t.end);for(var r=0;r<t.length;r+=3)n.push(t[r]+e,t[r+1],t[r+2]);return n}function S(t,e){if(t.transformed)return t;var n,r,i,o=1<<t.z,a=t.x,s=t.y;for(n=0;n<t.features.length;n++){var u=t.features[n],l=u.geometry,c=u.type;if(u.geometry=[],1===c)for(r=0;r<l.length;r+=2)u.geometry.push(_(l[r],l[r+1],e,o,a,s));else for(r=0;r<l.length;r++){var f=[];for(i=0;i<l[r].length;i+=2)f.push(_(l[r][i],l[r][i+1],e,o,a,s));u.geometry.push(f)}}return t.transformed=!0,t}function _(t,e,n,r,i,o){return[Math.round(n*(t*r-i)),Math.round(n*(e*r-o))]}function A(t,e,n,r,i){for(var o=e===i.maxZoom?0:i.tolerance/((1<<e)*i.extent),a={features:[],numPoints:0,numSimplified:0,numFeatures:0,source:null,x:n,y:r,z:e,transformed:!1,minX:2,minY:1,maxX:-1,maxY:0},s=0;s<t.length;s++){a.numFeatures++,j(a,t[s],o,i);var u=t[s].minX,l=t[s].minY,c=t[s].maxX,f=t[s].maxY;u<a.minX&&(a.minX=u),l<a.minY&&(a.minY=l),c>a.maxX&&(a.maxX=c),f>a.maxY&&(a.maxY=f)}return a}function j(t,e,n,r){var i=e.geometry,o=e.type,a=[];if("Point"===o||"MultiPoint"===o)for(var s=0;s<i.length;s+=3)a.push(i[s]),a.push(i[s+1]),t.numPoints++,t.numSimplified++;else if("LineString"===o)O(a,i,t,n,!1,!1);else if("MultiLineString"===o||"Polygon"===o)for(s=0;s<i.length;s++)O(a,i[s],t,n,"Polygon"===o,0===s);else if("MultiPolygon"===o)for(var u=0;u<i.length;u++){var l=i[u];for(s=0;s<l.length;s++)O(a,l[s],t,n,!0,0===s)}if(a.length){var c=e.tags||null;if("LineString"===o&&r.lineMetrics){for(var f in c={},e.tags)c[f]=e.tags[f];c.mapbox_clip_start=i.start/i.size,c.mapbox_clip_end=i.end/i.size}var p={geometry:a,type:"Polygon"===o||"MultiPolygon"===o?3:"LineString"===o||"MultiLineString"===o?2:1,tags:c};null!==e.id&&(p.id=e.id),t.features.push(p)}}function O(t,e,n,r,i,o){var a=r*r;if(r>0&&e.size<(i?a:r))n.numPoints+=e.length/3;else{for(var s=[],u=0;u<e.length;u+=3)(0===r||e[u+2]>a)&&(n.numSimplified++,s.push(e[u]),s.push(e[u+1])),n.numPoints++;i&&function(t,e){for(var n=0,r=0,i=t.length,o=i-2;r<i;o=r,r+=2)n+=(t[r]-t[o])*(t[r+1]+t[o+1]);if(n>0===e)for(r=0,i=t.length;r<i/2;r+=2){var a=t[r],s=t[r+1];t[r]=t[i-2-r],t[r+1]=t[i-1-r],t[i-2-r]=a,t[i-1-r]=s}}(s,o),t.push(s)}}function T(t,e){return new P(t,e)}function P(t,e){var n=(e=this.options=function(t,e){for(var n in e)t[n]=e[n];return t}(Object.create(this.options),e)).debug;if(n&&console.time("preprocess data"),e.maxZoom<0||e.maxZoom>24)throw new Error("maxZoom should be in the 0-24 range");if(e.promoteId&&e.generateId)throw new Error("promoteId and generateId cannot be used together.");var r=function(t,e){var n=[];if("FeatureCollection"===t.type)for(var r=0;r<t.features.length;r++)s(n,t.features[r],e,r);else"Feature"===t.type?s(n,t,e):s(n,{geometry:t},e);return n}(t,e);this.tiles={},this.tileCoords=[],n&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",e.indexMaxZoom,e.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),r=function(t,e){var n=e.buffer/e.extent,r=t,i=h(t,1,-1-n,n,0,-1,2,e),o=h(t,1,1-n,2+n,0,-1,2,e);return(i||o)&&(r=h(t,1,-n,1+n,0,-1,2,e)||[],i&&(r=w(i,1).concat(r)),o&&(r=r.concat(w(o,-1)))),r}(r,e),r.length&&this.splitTile(r,0,0,0),n&&(r.length&&console.log("features: %d, points: %d",this.tiles[0].numFeatures,this.tiles[0].numPoints),console.timeEnd("generate tiles"),console.log("tiles generated:",this.total,JSON.stringify(this.stats)))}function z(t,e,n){return 32*((1<<t)*n+e)+t}n.d(e,{Z:function(){return T}}),P.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},P.prototype.splitTile=function(t,e,n,r,i,o,a){for(var s=[t,e,n,r],u=this.options,l=u.debug;s.length;){r=s.pop(),n=s.pop(),e=s.pop(),t=s.pop();var c=1<<e,f=z(e,n,r),p=this.tiles[f];if(!p&&(l>1&&console.time("creation"),p=this.tiles[f]=A(t,e,n,r,u),this.tileCoords.push({z:e,x:n,y:r}),l)){l>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",e,n,r,p.numFeatures,p.numPoints,p.numSimplified),console.timeEnd("creation"));var y="z"+e;this.stats[y]=(this.stats[y]||0)+1,this.total++}if(p.source=t,i){if(e===u.maxZoom||e===i)continue;var d=1<<i-e;if(n!==Math.floor(o/d)||r!==Math.floor(a/d))continue}else if(e===u.indexMaxZoom||p.numPoints<=u.indexMaxPoints)continue;if(p.source=null,0!==t.length){l>1&&console.time("clipping");var v,m,g,b,x,w,k=.5*u.buffer/u.extent,S=.5-k,_=.5+k,j=1+k;v=m=g=b=null,x=h(t,c,n-k,n+_,0,p.minX,p.maxX,u),w=h(t,c,n+S,n+j,0,p.minX,p.maxX,u),t=null,x&&(v=h(x,c,r-k,r+_,1,p.minY,p.maxY,u),m=h(x,c,r+S,r+j,1,p.minY,p.maxY,u),x=null),w&&(g=h(w,c,r-k,r+_,1,p.minY,p.maxY,u),b=h(w,c,r+S,r+j,1,p.minY,p.maxY,u),w=null),l>1&&console.timeEnd("clipping"),s.push(v||[],e+1,2*n,2*r),s.push(m||[],e+1,2*n,2*r+1),s.push(g||[],e+1,2*n+1,2*r),s.push(b||[],e+1,2*n+1,2*r+1)}}},P.prototype.getTile=function(t,e,n){var r=this.options,i=r.extent,o=r.debug;if(t<0||t>24)return null;var a=1<<t,s=z(t,e=(e%a+a)%a,n);if(this.tiles[s])return S(this.tiles[s],i);o>1&&console.log("drilling down to z%d-%d-%d",t,e,n);for(var u,l=t,c=e,f=n;!u&&l>0;)l--,c=Math.floor(c/2),f=Math.floor(f/2),u=this.tiles[z(l,c,f)];return u&&u.source?(o>1&&console.log("found parent tile z%d-%d-%d",l,c,f),o>1&&console.time("drilling down"),this.splitTile(u.source,l,c,f,t,e,n),o>1&&console.timeEnd("drilling down"),this.tiles[s]?S(this.tiles[s],i):null):null}},1412:function(t){"use strict";function e(t,e,n){var r=this.cells=[];if(t instanceof ArrayBuffer){this.arrayBuffer=t;var i=new Int32Array(this.arrayBuffer);t=i[0],e=i[1],n=i[2],this.d=e+2*n;for(var o=0;o<this.d*this.d;o++){var a=i[3+o],s=i[3+o+1];r.push(a===s?null:i.subarray(a,s))}var u=i[3+r.length],l=i[3+r.length+1];this.keys=i.subarray(u,l),this.bboxes=i.subarray(l),this.insert=this._insertReadonly}else{this.d=e+2*n;for(var c=0;c<this.d*this.d;c++)r.push([]);this.keys=[],this.bboxes=[]}this.n=e,this.extent=t,this.padding=n,this.scale=e/t,this.uid=0;var f=n/e*t;this.min=-f,this.max=t+f}t.exports=e,e.prototype.insert=function(t,e,n,r,i){this._forEachCell(e,n,r,i,this._insertCell,this.uid++),this.keys.push(t),this.bboxes.push(e),this.bboxes.push(n),this.bboxes.push(r),this.bboxes.push(i)},e.prototype._insertReadonly=function(){throw"Cannot insert into a GridIndex created from an ArrayBuffer."},e.prototype._insertCell=function(t,e,n,r,i,o){this.cells[i].push(o)},e.prototype.query=function(t,e,n,r,i){var o=this.min,a=this.max;if(t<=o&&e<=o&&a<=n&&a<=r&&!i)return Array.prototype.slice.call(this.keys);var s=[];return this._forEachCell(t,e,n,r,this._queryCell,s,{},i),s},e.prototype._queryCell=function(t,e,n,r,i,o,a,s){var u=this.cells[i];if(null!==u)for(var l=this.keys,c=this.bboxes,f=0;f<u.length;f++){var p=u[f];if(void 0===a[p]){var h=4*p;(s?s(c[h+0],c[h+1],c[h+2],c[h+3]):t<=c[h+2]&&e<=c[h+3]&&n>=c[h+0]&&r>=c[h+1])?(a[p]=!0,o.push(l[p])):a[p]=!1}}},e.prototype._forEachCell=function(t,e,n,r,i,o,a,s){for(var u=this._convertToCellCoord(t),l=this._convertToCellCoord(e),c=this._convertToCellCoord(n),f=this._convertToCellCoord(r),p=u;p<=c;p++)for(var h=l;h<=f;h++){var y=this.d*h+p;if((!s||s(this._convertFromCellCoord(p),this._convertFromCellCoord(h),this._convertFromCellCoord(p+1),this._convertFromCellCoord(h+1)))&&i.call(this,t,e,n,r,y,o,a,s))return}},e.prototype._convertFromCellCoord=function(t){return(t-this.padding)/this.scale},e.prototype._convertToCellCoord=function(t){return Math.max(0,Math.min(this.d-1,Math.floor(t*this.scale)+this.padding))},e.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var t=this.cells,e=3+this.cells.length+1+1,n=0,r=0;r<this.cells.length;r++)n+=this.cells[r].length;var i=new Int32Array(e+n+this.keys.length+this.bboxes.length);i[0]=this.extent,i[1]=this.n,i[2]=this.padding;for(var o=e,a=0;a<t.length;a++){var s=t[a];i[3+a]=o,i.set(s,o),o+=s.length}return i[3+t.length]=o,i.set(this.keys,o),o+=this.keys.length,i[3+t.length+1]=o,i.set(this.bboxes,o),o+=this.bboxes.length,i.buffer}},645:function(t,e){e.read=function(t,e,n,r,i){var o,a,s=8*i-r-1,u=(1<<s)-1,l=u>>1,c=-7,f=n?i-1:0,p=n?-1:1,h=t[e+f];for(f+=p,o=h&(1<<-c)-1,h>>=-c,c+=s;c>0;o=256*o+t[e+f],f+=p,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+t[e+f],f+=p,c-=8);if(0===o)o=1-l;else{if(o===u)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),o-=l}return(h?-1:1)*a*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var a,s,u,l=8*o-i-1,c=(1<<l)-1,f=c>>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,y=r?1:-1,d=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),(e+=a+f>=1?p/u:p*Math.pow(2,1-f))*u>=2&&(a++,u/=2),a+f>=c?(s=0,a=c):a+f>=1?(s=(e*u-1)*Math.pow(2,i),a+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;t[n+h]=255&s,h+=y,s/=256,i-=8);for(a=a<<i|s,l+=i;l>0;t[n+h]=255&a,h+=y,a/=256,l-=8);t[n+h-y]|=128*d}},9945:function(t,e,n){"use strict";var r=n(1308),i=n(3981),o=n(3823);function a(t,e,n,i,o){e=e||s,n=n||u,o=o||Array,this.nodeSize=i||64,this.points=t,this.ids=new o(t.length),this.coords=new o(2*t.length);for(var a=0;a<t.length;a++)this.ids[a]=a,this.coords[2*a]=e(t[a]),this.coords[2*a+1]=n(t[a]);r(this.ids,this.coords,this.nodeSize,0,this.ids.length-1,0)}function s(t){return t[0]}function u(t){return t[1]}t.exports=function(t,e,n,r,i){return new a(t,e,n,r,i)},a.prototype={range:function(t,e,n,r){return i(this.ids,this.coords,t,e,n,r,this.nodeSize)},within:function(t,e,n){return o(this.ids,this.coords,t,e,n,this.nodeSize)}}},3981:function(t){"use strict";t.exports=function(t,e,n,r,i,o,a){for(var s,u,l=[0,t.length-1,0],c=[];l.length;){var f=l.pop(),p=l.pop(),h=l.pop();if(p-h<=a)for(var y=h;y<=p;y++)s=e[2*y],u=e[2*y+1],s>=n&&s<=i&&u>=r&&u<=o&&c.push(t[y]);else{var d=Math.floor((h+p)/2);s=e[2*d],u=e[2*d+1],s>=n&&s<=i&&u>=r&&u<=o&&c.push(t[d]);var v=(f+1)%2;(0===f?n<=s:r<=u)&&(l.push(h),l.push(d-1),l.push(v)),(0===f?i>=s:o>=u)&&(l.push(d+1),l.push(p),l.push(v))}}return c}},1308:function(t){"use strict";function e(t,r,i,o,a,s){for(;a>o;){if(a-o>600){var u=a-o+1,l=i-o+1,c=Math.log(u),f=.5*Math.exp(2*c/3),p=.5*Math.sqrt(c*f*(u-f)/u)*(l-u/2<0?-1:1);e(t,r,i,Math.max(o,Math.floor(i-l*f/u+p)),Math.min(a,Math.floor(i+(u-l)*f/u+p)),s)}var h=r[2*i+s],y=o,d=a;for(n(t,r,o,i),r[2*a+s]>h&&n(t,r,o,a);y<d;){for(n(t,r,y,d),y++,d--;r[2*y+s]<h;)y++;for(;r[2*d+s]>h;)d--}r[2*o+s]===h?n(t,r,o,d):n(t,r,++d,a),d<=i&&(o=d+1),i<=d&&(a=d-1)}}function n(t,e,n,i){r(t,n,i),r(e,2*n,2*i),r(e,2*n+1,2*i+1)}function r(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}t.exports=function t(n,r,i,o,a,s){if(!(a-o<=i)){var u=Math.floor((o+a)/2);e(n,r,u,o,a,s%2),t(n,r,i,o,u-1,s+1),t(n,r,i,u+1,a,s+1)}}},3823:function(t){"use strict";function e(t,e,n,r){var i=t-n,o=e-r;return i*i+o*o}t.exports=function(t,n,r,i,o,a){for(var s=[0,t.length-1,0],u=[],l=o*o;s.length;){var c=s.pop(),f=s.pop(),p=s.pop();if(f-p<=a)for(var h=p;h<=f;h++)e(n[2*h],n[2*h+1],r,i)<=l&&u.push(t[h]);else{var y=Math.floor((p+f)/2),d=n[2*y],v=n[2*y+1];e(d,v,r,i)<=l&&u.push(t[y]);var m=(c+1)%2;(0===c?r-o<=d:i-o<=v)&&(s.push(p),s.push(y-1),s.push(m)),(0===c?r+o>=d:i+o>=v)&&(s.push(y+1),s.push(f),s.push(m))}}return u}},7418:function(t){"use strict";var e=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,o){for(var a,s,u=i(t),l=1;l<arguments.length;l++){for(var c in a=Object(arguments[l]))n.call(a,c)&&(u[c]=a[c]);if(e){s=e(a);for(var f=0;f<s.length;f++)r.call(a,s[f])&&(u[s[f]]=a[s[f]])}}return u}},3614:function(t,e,n){"use strict";t.exports=i;var r=n(645);function i(t){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(t)?t:new Uint8Array(t||0),this.pos=0,this.type=0,this.length=this.buf.length}i.Varint=0,i.Fixed64=1,i.Bytes=2,i.Fixed32=5;var o=4294967296,a=1/o;function s(t){return t.type===i.Bytes?t.readVarint()+t.pos:t.pos+1}function u(t,e,n){return n?4294967296*e+(t>>>0):4294967296*(e>>>0)+(t>>>0)}function l(t,e,n){var r=e<=16383?1:e<=2097151?2:e<=268435455?3:Math.floor(Math.log(e)/(7*Math.LN2));n.realloc(r);for(var i=n.pos-1;i>=t;i--)n.buf[i+r]=n.buf[i]}function c(t,e){for(var n=0;n<t.length;n++)e.writeVarint(t[n])}function f(t,e){for(var n=0;n<t.length;n++)e.writeSVarint(t[n])}function p(t,e){for(var n=0;n<t.length;n++)e.writeFloat(t[n])}function h(t,e){for(var n=0;n<t.length;n++)e.writeDouble(t[n])}function y(t,e){for(var n=0;n<t.length;n++)e.writeBoolean(t[n])}function d(t,e){for(var n=0;n<t.length;n++)e.writeFixed32(t[n])}function v(t,e){for(var n=0;n<t.length;n++)e.writeSFixed32(t[n])}function m(t,e){for(var n=0;n<t.length;n++)e.writeFixed64(t[n])}function g(t,e){for(var n=0;n<t.length;n++)e.writeSFixed64(t[n])}function b(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16)+16777216*t[e+3]}function x(t,e,n){t[n]=e,t[n+1]=e>>>8,t[n+2]=e>>>16,t[n+3]=e>>>24}function w(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16)+(t[e+3]<<24)}i.prototype={destroy:function(){this.buf=null},readFields:function(t,e,n){for(n=n||this.length;this.pos<n;){var r=this.readVarint(),i=r>>3,o=this.pos;this.type=7&r,t(i,e,this),this.pos===o&&this.skip(r)}return e},readMessage:function(t,e){return this.readFields(t,e,this.readVarint()+this.pos)},readFixed32:function(){var t=b(this.buf,this.pos);return this.pos+=4,t},readSFixed32:function(){var t=w(this.buf,this.pos);return this.pos+=4,t},readFixed64:function(){var t=b(this.buf,this.pos)+b(this.buf,this.pos+4)*o;return this.pos+=8,t},readSFixed64:function(){var t=b(this.buf,this.pos)+w(this.buf,this.pos+4)*o;return this.pos+=8,t},readFloat:function(){var t=r.read(this.buf,this.pos,!0,23,4);return this.pos+=4,t},readDouble:function(){var t=r.read(this.buf,this.pos,!0,52,8);return this.pos+=8,t},readVarint:function(t){var e,n,r=this.buf;return e=127&(n=r[this.pos++]),n<128?e:(e|=(127&(n=r[this.pos++]))<<7,n<128?e:(e|=(127&(n=r[this.pos++]))<<14,n<128?e:(e|=(127&(n=r[this.pos++]))<<21,n<128?e:function(t,e,n){var r,i,o=n.buf;if(r=(112&(i=o[n.pos++]))>>4,i<128)return u(t,r,e);if(r|=(127&(i=o[n.pos++]))<<3,i<128)return u(t,r,e);if(r|=(127&(i=o[n.pos++]))<<10,i<128)return u(t,r,e);if(r|=(127&(i=o[n.pos++]))<<17,i<128)return u(t,r,e);if(r|=(127&(i=o[n.pos++]))<<24,i<128)return u(t,r,e);if(r|=(1&(i=o[n.pos++]))<<31,i<128)return u(t,r,e);throw new Error("Expected varint not more than 10 bytes")}(e|=(15&(n=r[this.pos]))<<28,t,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var t=this.readVarint();return t%2==1?(t+1)/-2:t/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var t=this.readVarint()+this.pos,e=function(t,e,n){for(var r="",i=e;i<n;){var o,a,s,u=t[i],l=null,c=u>239?4:u>223?3:u>191?2:1;if(i+c>n)break;1===c?u<128&&(l=u):2===c?128==(192&(o=t[i+1]))&&(l=(31&u)<<6|63&o)<=127&&(l=null):3===c?(o=t[i+1],a=t[i+2],128==(192&o)&&128==(192&a)&&((l=(15&u)<<12|(63&o)<<6|63&a)<=2047||l>=55296&&l<=57343)&&(l=null)):4===c&&(o=t[i+1],a=t[i+2],s=t[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&((l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)<=65535||l>=1114112)&&(l=null)),null===l?(l=65533,c=1):l>65535&&(l-=65536,r+=String.fromCharCode(l>>>10&1023|55296),l=56320|1023&l),r+=String.fromCharCode(l),i+=c}return r}(this.buf,this.pos,t);return this.pos=t,e},readBytes:function(){var t=this.readVarint()+this.pos,e=this.buf.subarray(this.pos,t);return this.pos=t,e},readPackedVarint:function(t,e){if(this.type!==i.Bytes)return t.push(this.readVarint(e));var n=s(this);for(t=t||[];this.pos<n;)t.push(this.readVarint(e));return t},readPackedSVarint:function(t){if(this.type!==i.Bytes)return t.push(this.readSVarint());var e=s(this);for(t=t||[];this.pos<e;)t.push(this.readSVarint());return t},readPackedBoolean:function(t){if(this.type!==i.Bytes)return t.push(this.readBoolean());var e=s(this);for(t=t||[];this.pos<e;)t.push(this.readBoolean());return t},readPackedFloat:function(t){if(this.type!==i.Bytes)return t.push(this.readFloat());var e=s(this);for(t=t||[];this.pos<e;)t.push(this.readFloat());return t},readPackedDouble:function(t){if(this.type!==i.Bytes)return t.push(this.readDouble());var e=s(this);for(t=t||[];this.pos<e;)t.push(this.readDouble());return t},readPackedFixed32:function(t){if(this.type!==i.Bytes)return t.push(this.readFixed32());var e=s(this);for(t=t||[];this.pos<e;)t.push(this.readFixed32());return t},readPackedSFixed32:function(t){if(this.type!==i.Bytes)return t.push(this.readSFixed32());var e=s(this);for(t=t||[];this.pos<e;)t.push(this.readSFixed32());return t},readPackedFixed64:function(t){if(this.type!==i.Bytes)return t.push(this.readFixed64());var e=s(this);for(t=t||[];this.pos<e;)t.push(this.readFixed64());return t},readPackedSFixed64:function(t){if(this.type!==i.Bytes)return t.push(this.readSFixed64());var e=s(this);for(t=t||[];this.pos<e;)t.push(this.readSFixed64());return t},skip:function(t){var e=7&t;if(e===i.Varint)for(;this.buf[this.pos++]>127;);else if(e===i.Bytes)this.pos=this.readVarint()+this.pos;else if(e===i.Fixed32)this.pos+=4;else{if(e!==i.Fixed64)throw new Error("Unimplemented type: "+e);this.pos+=8}},writeTag:function(t,e){this.writeVarint(t<<3|e)},realloc:function(t){for(var e=this.length||16;e<this.pos+t;)e*=2;if(e!==this.length){var n=new Uint8Array(e);n.set(this.buf),this.buf=n,this.length=e}},finish:function(){return this.length=this.pos,this.pos=0,this.buf.subarray(0,this.length)},writeFixed32:function(t){this.realloc(4),x(this.buf,t,this.pos),this.pos+=4},writeSFixed32:function(t){this.realloc(4),x(this.buf,t,this.pos),this.pos+=4},writeFixed64:function(t){this.realloc(8),x(this.buf,-1&t,this.pos),x(this.buf,Math.floor(t*a),this.pos+4),this.pos+=8},writeSFixed64:function(t){this.realloc(8),x(this.buf,-1&t,this.pos),x(this.buf,Math.floor(t*a),this.pos+4),this.pos+=8},writeVarint:function(t){(t=+t||0)>268435455||t<0?function(t,e){var n,r;if(t>=0?(n=t%4294967296|0,r=t/4294967296|0):(r=~(-t/4294967296),4294967295^(n=~(-t%4294967296))?n=n+1|0:(n=0,r=r+1|0)),t>=0x10000000000000000||t<-0x10000000000000000)throw new Error("Given varint doesn\'t fit into 10 bytes");e.realloc(10),function(t,e,n){n.buf[n.pos++]=127&t|128,t>>>=7,n.buf[n.pos++]=127&t|128,t>>>=7,n.buf[n.pos++]=127&t|128,t>>>=7,n.buf[n.pos++]=127&t|128,t>>>=7,n.buf[n.pos]=127&t}(n,0,e),function(t,e){var n=(7&t)<<4;e.buf[e.pos++]|=n|((t>>>=3)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t)))))}(r,e)}(t,this):(this.realloc(4),this.buf[this.pos++]=127&t|(t>127?128:0),t<=127||(this.buf[this.pos++]=127&(t>>>=7)|(t>127?128:0),t<=127||(this.buf[this.pos++]=127&(t>>>=7)|(t>127?128:0),t<=127||(this.buf[this.pos++]=t>>>7&127))))},writeSVarint:function(t){this.writeVarint(t<0?2*-t-1:2*t)},writeBoolean:function(t){this.writeVarint(Boolean(t))},writeString:function(t){t=String(t),this.realloc(4*t.length),this.pos++;var e=this.pos;this.pos=function(t,e,n){for(var r,i,o=0;o<e.length;o++){if((r=e.charCodeAt(o))>55295&&r<57344){if(!i){r>56319||o+1===e.length?(t[n++]=239,t[n++]=191,t[n++]=189):i=r;continue}if(r<56320){t[n++]=239,t[n++]=191,t[n++]=189,i=r;continue}r=i-55296<<10|r-56320|65536,i=null}else i&&(t[n++]=239,t[n++]=191,t[n++]=189,i=null);r<128?t[n++]=r:(r<2048?t[n++]=r>>6|192:(r<65536?t[n++]=r>>12|224:(t[n++]=r>>18|240,t[n++]=r>>12&63|128),t[n++]=r>>6&63|128),t[n++]=63&r|128)}return n}(this.buf,t,this.pos);var n=this.pos-e;n>=128&&l(e,n,this),this.pos=e-1,this.writeVarint(n),this.pos+=n},writeFloat:function(t){this.realloc(4),r.write(this.buf,t,this.pos,!0,23,4),this.pos+=4},writeDouble:function(t){this.realloc(8),r.write(this.buf,t,this.pos,!0,52,8),this.pos+=8},writeBytes:function(t){var e=t.length;this.writeVarint(e),this.realloc(e);for(var n=0;n<e;n++)this.buf[this.pos++]=t[n]},writeRawMessage:function(t,e){this.pos++;var n=this.pos;t(e,this);var r=this.pos-n;r>=128&&l(n,r,this),this.pos=n-1,this.writeVarint(r),this.pos+=r},writeMessage:function(t,e,n){this.writeTag(t,i.Bytes),this.writeRawMessage(e,n)},writePackedVarint:function(t,e){e.length&&this.writeMessage(t,c,e)},writePackedSVarint:function(t,e){e.length&&this.writeMessage(t,f,e)},writePackedBoolean:function(t,e){e.length&&this.writeMessage(t,y,e)},writePackedFloat:function(t,e){e.length&&this.writeMessage(t,p,e)},writePackedDouble:function(t,e){e.length&&this.writeMessage(t,h,e)},writePackedFixed32:function(t,e){e.length&&this.writeMessage(t,d,e)},writePackedSFixed32:function(t,e){e.length&&this.writeMessage(t,v,e)},writePackedFixed64:function(t,e){e.length&&this.writeMessage(t,m,e)},writePackedSFixed64:function(t,e){e.length&&this.writeMessage(t,g,e)},writeBytesField:function(t,e){this.writeTag(t,i.Bytes),this.writeBytes(e)},writeFixed32Field:function(t,e){this.writeTag(t,i.Fixed32),this.writeFixed32(e)},writeSFixed32Field:function(t,e){this.writeTag(t,i.Fixed32),this.writeSFixed32(e)},writeFixed64Field:function(t,e){this.writeTag(t,i.Fixed64),this.writeFixed64(e)},writeSFixed64Field:function(t,e){this.writeTag(t,i.Fixed64),this.writeSFixed64(e)},writeVarintField:function(t,e){this.writeTag(t,i.Varint),this.writeVarint(e)},writeSVarintField:function(t,e){this.writeTag(t,i.Varint),this.writeSVarint(e)},writeStringField:function(t,e){this.writeTag(t,i.Bytes),this.writeString(e)},writeFloatField:function(t,e){this.writeTag(t,i.Fixed32),this.writeFloat(e)},writeDoubleField:function(t,e){this.writeTag(t,i.Fixed64),this.writeDouble(e)},writeBooleanField:function(t,e){this.writeVarintField(t,Boolean(e))}}},8166:function(t){t.exports=function(){"use strict";function t(n,r,i,o,a){for(;o>i;){if(o-i>600){var s=o-i+1,u=r-i+1,l=Math.log(s),c=.5*Math.exp(2*l/3),f=.5*Math.sqrt(l*c*(s-c)/s)*(u-s/2<0?-1:1);t(n,r,Math.max(i,Math.floor(r-u*c/s+f)),Math.min(o,Math.floor(r+(s-u)*c/s+f)),a)}var p=n[r],h=i,y=o;for(e(n,i,r),a(n[o],p)>0&&e(n,i,o);h<y;){for(e(n,h,y),h++,y--;a(n[h],p)<0;)h++;for(;a(n[y],p)>0;)y--}0===a(n[i],p)?e(n,i,y):e(n,++y,o),y<=r&&(i=y+1),r<=y&&(o=y-1)}}function e(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function n(t,e){return t<e?-1:t>e?1:0}return function(e,r,i,o,a){t(e,r,i||0,o||e.length-1,a||n)}}()},5975:function(t,e,n){"use strict";var r=n(9945);function i(t){this.options=f(Object.create(this.options),t),this.trees=new Array(this.options.maxZoom+1)}function o(t,e,n,r,i){return{x:t,y:e,zoom:1/0,id:r,properties:i,parentId:-1,numPoints:n}}function a(t,e){var n=t.geometry.coordinates;return{x:l(n[0]),y:c(n[1]),zoom:1/0,id:e,parentId:-1}}function s(t){return{type:"Feature",properties:u(t),geometry:{type:"Point",coordinates:[(r=t.x,360*(r-.5)),(e=t.y,n=(180-360*e)*Math.PI/180,360*Math.atan(Math.exp(n))/Math.PI-90)]}};var e,n,r}function u(t){var e=t.numPoints,n=e>=1e4?Math.round(e/1e3)+"k":e>=1e3?Math.round(e/100)/10+"k":e;return f(f({},t.properties),{cluster:!0,cluster_id:t.id,point_count:e,point_count_abbreviated:n})}function l(t){return t/360+.5}function c(t){var e=Math.sin(t*Math.PI/180),n=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return n<0?0:n>1?1:n}function f(t,e){for(var n in e)t[n]=e[n];return t}function p(t){return t.x}function h(t){return t.y}t.exports=function(t){return new i(t)},i.prototype={options:{minZoom:0,maxZoom:16,radius:40,extent:512,nodeSize:64,log:!1,reduce:null,initial:function(){return{}},map:function(t){return t}},load:function(t){var e=this.options.log;e&&console.time("total time");var n="prepare "+t.length+" points";e&&console.time(n),this.points=t;var i=t.map(a);e&&console.timeEnd(n);for(var o=this.options.maxZoom;o>=this.options.minZoom;o--){var s=+Date.now();this.trees[o+1]=r(i,p,h,this.options.nodeSize,Float32Array),i=this._cluster(i,o),e&&console.log("z%d: %d clusters in %dms",o,i.length,+Date.now()-s)}return this.trees[this.options.minZoom]=r(i,p,h,this.options.nodeSize,Float32Array),e&&console.timeEnd("total time"),this},getClusters:function(t,e){for(var n=this.trees[this._limitZoom(e)],r=n.range(l(t[0]),c(t[3]),l(t[2]),c(t[1])),i=[],o=0;o<r.length;o++){var a=n.points[r[o]];i.push(a.numPoints?s(a):this.points[a.id])}return i},getChildren:function(t,e){for(var n=this.trees[e+1].points[t],r=this.options.radius/(this.options.extent*Math.pow(2,e)),i=this.trees[e+1].within(n.x,n.y,r),o=[],a=0;a<i.length;a++){var u=this.trees[e+1].points[i[a]];u.parentId===t&&o.push(u.numPoints?s(u):this.points[u.id])}return o},getLeaves:function(t,e,n,r){n=n||10,r=r||0;var i=[];return this._appendLeaves(i,t,e,n,r,0),i},getTile:function(t,e,n){var r=this.trees[this._limitZoom(t)],i=Math.pow(2,t),o=this.options.extent,a=this.options.radius/o,s=(n-a)/i,u=(n+1+a)/i,l={features:[]};return this._addTileFeatures(r.range((e-a)/i,s,(e+1+a)/i,u),r.points,e,n,i,l),0===e&&this._addTileFeatures(r.range(1-a/i,s,1,u),r.points,i,n,i,l),e===i-1&&this._addTileFeatures(r.range(0,s,a/i,u),r.points,-1,n,i,l),l.features.length?l:null},getClusterExpansionZoom:function(t,e){for(;e<this.options.maxZoom;){var n=this.getChildren(t,e);if(e++,1!==n.length)break;t=n[0].properties.cluster_id}return e},_appendLeaves:function(t,e,n,r,i,o){for(var a=this.getChildren(e,n),s=0;s<a.length;s++){var u=a[s].properties;if(u.cluster?o+u.point_count<=i?o+=u.point_count:o=this._appendLeaves(t,u.cluster_id,n+1,r,i,o):o<i?o++:t.push(a[s]),t.length===r)break}return o},_addTileFeatures:function(t,e,n,r,i,o){for(var a=0;a<t.length;a++){var s=e[t[a]];o.features.push({type:1,geometry:[[Math.round(this.options.extent*(s.x*i-n)),Math.round(this.options.extent*(s.y*i-r))]],tags:s.numPoints?u(s):this.points[s.id].properties})}},_limitZoom:function(t){return Math.max(this.options.minZoom,Math.min(t,this.options.maxZoom+1))},_cluster:function(t,e){for(var n=[],r=this.options.radius/(this.options.extent*Math.pow(2,e)),i=0;i<t.length;i++){var a=t[i];if(!(a.zoom<=e)){a.zoom=e;var s=this.trees[e+1],u=s.within(a.x,a.y,r),l=a.numPoints||1,c=a.x*l,f=a.y*l,p=null;this.options.reduce&&(p=this.options.initial(),this._accumulate(p,a));for(var h=0;h<u.length;h++){var y=s.points[u[h]];if(e<y.zoom){var d=y.numPoints||1;y.zoom=e,c+=y.x*d,f+=y.y*d,l+=d,y.parentId=i,this.options.reduce&&this._accumulate(p,y)}}1===l?n.push(a):(a.parentId=i,n.push(o(c/l,f/l,l,i,p)))}}return n},_accumulate:function(t,e){var n=e.numPoints?e.properties:this.options.map(this.points[e.id].properties);this.options.reduce(t,n)}}},3842:function(t){"use strict";function e(t,r){if(!(this instanceof e))return new e(t,r);if(this.data=t||[],this.length=this.data.length,this.compare=r||n,this.length>0)for(var i=(this.length>>1)-1;i>=0;i--)this._down(i)}function n(t,e){return t<e?-1:t>e?1:0}t.exports=e,t.exports.default=e,e.prototype={push:function(t){this.data.push(t),this.length++,this._up(this.length-1)},pop:function(){if(0!==this.length){var t=this.data[0];return this.length--,this.length>0&&(this.data[0]=this.data[this.length],this._down(0)),this.data.pop(),t}},peek:function(){return this.data[0]},_up:function(t){for(var e=this.data,n=this.compare,r=e[t];t>0;){var i=t-1>>1,o=e[i];if(n(r,o)>=0)break;e[t]=o,t=i}e[t]=r},_down:function(t){for(var e=this.data,n=this.compare,r=this.length>>1,i=e[t];t<r;){var o=1+(t<<1),a=o+1,s=e[o];if(a<this.length&&n(e[a],s)<0&&(o=a,s=e[a]),n(s,i)>=0)break;e[t]=s,t=o}e[t]=i}}},9937:function(t,e,n){var r=n(3614),i=n(770);function o(t){var e=new r;return function(t,e){for(var n in t.layers)e.writeMessage(3,a,t.layers[n])}(t,e),e.finish()}function a(t,e){var n;e.writeVarintField(15,t.version||1),e.writeStringField(1,t.name||""),e.writeVarintField(5,t.extent||4096);var r={keys:[],values:[],keycache:{},valuecache:{}};for(n=0;n<t.length;n++)r.feature=t.feature(n),e.writeMessage(2,s,r);var i=r.keys;for(n=0;n<i.length;n++)e.writeStringField(3,i[n]);var o=r.values;for(n=0;n<o.length;n++)e.writeMessage(4,p,o[n])}function s(t,e){var n=t.feature;void 0!==n.id&&e.writeVarintField(1,n.id),e.writeMessage(2,u,t),e.writeVarintField(3,n.type),e.writeMessage(4,f,n)}function u(t,e){var n=t.feature,r=t.keys,i=t.values,o=t.keycache,a=t.valuecache;for(var s in n.properties){var u=o[s];void 0===u&&(r.push(s),u=r.length-1,o[s]=u),e.writeVarint(u);var l=n.properties[s],c=typeof l;"string"!==c&&"boolean"!==c&&"number"!==c&&(l=JSON.stringify(l));var f=c+":"+l,p=a[f];void 0===p&&(i.push(l),p=i.length-1,a[f]=p),e.writeVarint(p)}}function l(t,e){return(e<<3)+(7&t)}function c(t){return t<<1^t>>31}function f(t,e){for(var n=t.loadGeometry(),r=t.type,i=0,o=0,a=n.length,s=0;s<a;s++){var u=n[s],f=1;1===r&&(f=u.length),e.writeVarint(l(1,f));for(var p=3===r?u.length-1:u.length,h=0;h<p;h++){1===h&&1!==r&&e.writeVarint(l(2,p-1));var y=u[h].x-i,d=u[h].y-o;e.writeVarint(c(y)),e.writeVarint(c(d)),i+=y,o+=d}3===r&&e.writeVarint(l(7,1))}}function p(t,e){var n=typeof t;"string"===n?e.writeStringField(1,t):"boolean"===n?e.writeBooleanField(7,t):"number"===n&&(t%1!=0?e.writeDoubleField(3,t):t<0?e.writeSVarintField(6,t):e.writeVarintField(5,t))}t.exports=o,t.exports.fromVectorTileJs=o,t.exports.fromGeojsonVt=function(t,e){e=e||{};var n={};for(var r in t)n[r]=new i(t[r].features,e),n[r].name=r,n[r].version=e.version,n[r].extent=e.extent;return o({layers:n})},t.exports.GeoJSONWrapper=i},770:function(t,e,n){"use strict";var r=n(5550),i=n(8929).VectorTileFeature;function o(t,e){this.options=e||{},this.features=t,this.length=t.length}function a(t,e){this.id="number"==typeof t.id?t.id:void 0,this.type=t.type,this.rawGeometry=1===t.type?[t.geometry]:t.geometry,this.properties=t.tags,this.extent=e||4096}t.exports=o,o.prototype.feature=function(t){return new a(this.features[t],this.options.extent)},a.prototype.loadGeometry=function(){var t=this.rawGeometry;this.geometry=[];for(var e=0;e<t.length;e++){for(var n=t[e],i=[],o=0;o<n.length;o++)i.push(new r(n[o][0],n[o][1]));this.geometry.push(i)}return this.geometry},a.prototype.bbox=function(){this.geometry||this.loadGeometry();for(var t=this.geometry,e=1/0,n=-1/0,r=1/0,i=-1/0,o=0;o<t.length;o++)for(var a=t[o],s=0;s<a.length;s++){var u=a[s];e=Math.min(e,u.x),n=Math.max(n,u.x),r=Math.min(r,u.y),i=Math.max(i,u.y)}return[e,r,n,i]},a.prototype.toGeoJSON=i.prototype.toGeoJSON},5752:function(t){t.exports.RADIUS=6378137,t.exports.FLATTENING=1/298.257223563,t.exports.POLAR_RADIUS=6356752.3142},8620:function(t,e,n){"use strict";function r(t,e,n,r,o,a){return a=a||{},t+"?"+["bbox="+i(n,r,o),"format="+(a.format||"image/png"),"service="+(a.service||"WMS"),"version="+(a.version||"1.1.1"),"request="+(a.request||"GetMap"),"srs="+(a.srs||"EPSG:3857"),"width="+(a.width||256),"height="+(a.height||256),"layers="+e].join("&")}function i(t,e,n){var r=o(256*t,256*(e=Math.pow(2,n)-e-1),n),i=o(256*(t+1),256*(e+1),n);return r[0]+","+r[1]+","+i[0]+","+i[1]}function o(t,e,n){var r=2*Math.PI*6378137/256/Math.pow(2,n);return[t*r-2*Math.PI*6378137/2,e*r-2*Math.PI*6378137/2]}n.r(e),n.d(e,{getMercCoords:function(){return o},getTileBBox:function(){return i},getURL:function(){return r}})},556:function(t){"use strict";t.exports=JSON.parse(\'{"$version":8,"$root":{"version":{"required":true,"type":"enum","values":[8],"doc":"Style specification version number. Must be 8.","example":8},"name":{"type":"string","doc":"A human-readable name for the style.","example":"Bright"},"metadata":{"type":"*","doc":"Arbitrary properties useful to track with the stylesheet, but do not influence rendering. Properties should be prefixed to avoid collisions, like \\\'mapbox:\\\'."},"center":{"type":"array","value":"number","doc":"Default map center in longitude and latitude. The style center will be used only if the map has not been positioned by other means (e.g. map options or user interaction).","example":[-73.9749,40.7736]},"zoom":{"type":"number","doc":"Default zoom level. The style zoom will be used only if the map has not been positioned by other means (e.g. map options or user interaction).","example":12.5},"bearing":{"type":"number","default":0,"period":360,"units":"degrees","doc":"Default bearing, in degrees. The bearing is the compass direction that is \\\\"up\\\\"; for example, a bearing of 90° orients the map so that east is up. This value will be used only if the map has not been positioned by other means (e.g. map options or user interaction).","example":29},"pitch":{"type":"number","default":0,"units":"degrees","doc":"Default pitch, in degrees. Zero is perpendicular to the surface, for a look straight down at the map, while a greater value like 60 looks ahead towards the horizon. The style pitch will be used only if the map has not been positioned by other means (e.g. map options or user interaction).","example":50},"light":{"type":"light","doc":"The global light source.","example":{"anchor":"viewport","color":"white","intensity":0.4}},"sources":{"required":true,"type":"sources","doc":"Data source specifications.","example":{"mapbox-streets":{"type":"vector","url":"mapbox://mapbox.mapbox-streets-v6"}}},"sprite":{"type":"string","doc":"A base URL for retrieving the sprite image and metadata. The extensions `.png`, `.json` and scale factor `@2x.png` will be automatically appended. This property is required if any layer uses the `background-pattern`, `fill-pattern`, `line-pattern`, `fill-extrusion-pattern`, or `icon-image` properties.","example":"mapbox://sprites/mapbox/bright-v8"},"glyphs":{"type":"string","doc":"A URL template for loading signed-distance-field glyph sets in PBF format. The URL must include `{fontstack}` and `{range}` tokens. This property is required if any layer uses the `text-field` layout property.","example":"mapbox://fonts/mapbox/{fontstack}/{range}.pbf"},"transition":{"type":"transition","doc":"A global transition definition to use as a default across properties.","example":{"duration":300,"delay":0}},"layers":{"required":true,"type":"array","value":"layer","doc":"Layers will be drawn in the order of this array.","example":[{"id":"water","source":"mapbox-streets","source-layer":"water","type":"fill","paint":{"fill-color":"#00ffff"}}]}},"sources":{"*":{"type":"source","doc":"Specification of a data source. For vector and raster sources, either TileJSON or a URL to a TileJSON must be provided. For image and video sources, a URL must be provided. For GeoJSON sources, a URL or inline GeoJSON must be provided."}},"source":["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image","source_canvas"],"source_vector":{"type":{"required":true,"type":"enum","values":{"vector":{"doc":"A vector tile source."}},"doc":"The type of the source."},"url":{"type":"string","doc":"A URL to a TileJSON resource. Supported protocols are `http:`, `https:`, and `mapbox://<mapid>`."},"tiles":{"type":"array","value":"string","doc":"An array of one or more tile source URLs, as in the TileJSON spec."},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.0511,180,85.0511],"doc":"An array containing the longitude and latitude of the southwest and northeast corners of the source\\\'s bounding box in the following order: `[sw.lng, sw.lat, ne.lng, ne.lat]`. When this property is included in a source, no tiles outside of the given bounds are requested by Mapbox GL."},"minzoom":{"type":"number","default":0,"doc":"Minimum zoom level for which tiles are available, as in the TileJSON spec."},"maxzoom":{"type":"number","default":22,"doc":"Maximum zoom level for which tiles are available, as in the TileJSON spec. Data from tiles at the maxzoom are used when displaying the map at higher zoom levels."},"attribution":{"type":"string","doc":"Contains an attribution to be displayed when the map is shown to a user."},"*":{"type":"*","doc":"Other keys to configure the data source."}},"source_raster":{"type":{"required":true,"type":"enum","values":{"raster":{"doc":"A raster tile source."}},"doc":"The type of the source."},"url":{"type":"string","doc":"A URL to a TileJSON resource. Supported protocols are `http:`, `https:`, and `mapbox://<mapid>`."},"tiles":{"type":"array","value":"string","doc":"An array of one or more tile source URLs, as in the TileJSON spec."},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.0511,180,85.0511],"doc":"An array containing the longitude and latitude of the southwest and northeast corners of the source\\\'s bounding box in the following order: `[sw.lng, sw.lat, ne.lng, ne.lat]`. When this property is included in a source, no tiles outside of the given bounds are requested by Mapbox GL."},"minzoom":{"type":"number","default":0,"doc":"Minimum zoom level for which tiles are available, as in the TileJSON spec."},"maxzoom":{"type":"number","default":22,"doc":"Maximum zoom level for which tiles are available, as in the TileJSON spec. Data from tiles at the maxzoom are used when displaying the map at higher zoom levels."},"tileSize":{"type":"number","default":512,"units":"pixels","doc":"The minimum visual size to display tiles for this layer. Only configurable for raster layers."},"scheme":{"type":"enum","values":{"xyz":{"doc":"Slippy map tilenames scheme."},"tms":{"doc":"OSGeo spec scheme."}},"default":"xyz","doc":"Influences the y direction of the tile coordinates. The global-mercator (aka Spherical Mercator) profile is assumed."},"attribution":{"type":"string","doc":"Contains an attribution to be displayed when the map is shown to a user."},"*":{"type":"*","doc":"Other keys to configure the data source."}},"source_raster_dem":{"type":{"required":true,"type":"enum","values":{"raster-dem":{"doc":"A raster DEM source using Mapbox Terrain RGB"}},"doc":"The type of the source."},"url":{"type":"string","doc":"A URL to a TileJSON resource. Supported protocols are `http:`, `https:`, and `mapbox://<mapid>`."},"tiles":{"type":"array","value":"string","doc":"An array of one or more tile source URLs, as in the TileJSON spec."},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.0511,180,85.0511],"doc":"An array containing the longitude and latitude of the southwest and northeast corners of the source\\\'s bounding box in the following order: `[sw.lng, sw.lat, ne.lng, ne.lat]`. When this property is included in a source, no tiles outside of the given bounds are requested by Mapbox GL."},"minzoom":{"type":"number","default":0,"doc":"Minimum zoom level for which tiles are available, as in the TileJSON spec."},"maxzoom":{"type":"number","default":22,"doc":"Maximum zoom level for which tiles are available, as in the TileJSON spec. Data from tiles at the maxzoom are used when displaying the map at higher zoom levels."},"tileSize":{"type":"number","default":512,"units":"pixels","doc":"The minimum visual size to display tiles for this layer. Only configurable for raster layers."},"attribution":{"type":"string","doc":"Contains an attribution to be displayed when the map is shown to a user."},"*":{"type":"*","doc":"Other keys to configure the data source."}},"source_geojson":{"type":{"required":true,"type":"enum","values":{"geojson":{"doc":"A GeoJSON data source."}},"doc":"The data type of the GeoJSON source."},"data":{"type":"*","doc":"A URL to a GeoJSON file, or inline GeoJSON."},"maxzoom":{"type":"number","default":18,"doc":"Maximum zoom level at which to create vector tiles (higher means greater detail at high zoom levels)."},"buffer":{"type":"number","default":128,"maximum":512,"minimum":0,"doc":"Size of the tile buffer on each side. A value of 0 produces no buffer. A value of 512 produces a buffer as wide as the tile itself. Larger values produce fewer rendering artifacts near tile edges and slower performance."},"tolerance":{"type":"number","default":0.375,"doc":"Douglas-Peucker simplification tolerance (higher means simpler geometries and faster performance)."},"cluster":{"type":"boolean","default":false,"doc":"If the data is a collection of point features, setting this to true clusters the points by radius into groups."},"clusterRadius":{"type":"number","default":50,"minimum":0,"doc":"Radius of each cluster if clustering is enabled. A value of 512 indicates a radius equal to the width of a tile."},"clusterMaxZoom":{"type":"number","doc":"Max zoom on which to cluster points if clustering is enabled. Defaults to one zoom less than maxzoom (so that last zoom features are not clustered)."}},"source_video":{"type":{"required":true,"type":"enum","values":{"video":{"doc":"A video data source."}},"doc":"The data type of the video source."},"urls":{"required":true,"type":"array","value":"string","doc":"URLs to video content in order of preferred format."},"coordinates":{"required":true,"doc":"Corners of video specified in longitude, latitude pairs.","type":"array","length":4,"value":{"type":"array","length":2,"value":"number","doc":"A single longitude, latitude pair."}}},"source_image":{"type":{"required":true,"type":"enum","values":{"image":{"doc":"An image data source."}},"doc":"The data type of the image source."},"url":{"required":true,"type":"string","doc":"URL that points to an image."},"coordinates":{"required":true,"doc":"Corners of image specified in longitude, latitude pairs.","type":"array","length":4,"value":{"type":"array","length":2,"value":"number","doc":"A single longitude, latitude pair."}}},"source_canvas":{"type":{"required":true,"type":"enum","values":{"canvas":{"doc":"A canvas data source."}},"doc":"The data type of the canvas source."},"coordinates":{"required":true,"doc":"Corners of canvas specified in longitude, latitude pairs.","type":"array","length":4,"value":{"type":"array","length":2,"value":"number","doc":"A single longitude, latitude pair."}},"animate":{"type":"boolean","default":"true","doc":"Whether the canvas source is animated. If the canvas is static, `animate` should be set to `false` to improve performance."},"canvas":{"type":"string","required":true,"doc":"HTML ID of the canvas from which to read pixels."}},"layer":{"id":{"type":"string","doc":"Unique layer name.","required":true},"type":{"type":"enum","values":{"fill":{"doc":"A filled polygon with an optional stroked border.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"}}},"line":{"doc":"A stroked line.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"}}},"symbol":{"doc":"An icon or a text label.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"}}},"circle":{"doc":"A filled circle.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"}}},"heatmap":{"doc":"A heatmap.","sdk-support":{"basic functionality":{"js":"0.41.0"}}},"fill-extrusion":{"doc":"An extruded (3D) polygon.","sdk-support":{"basic functionality":{"js":"0.27.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"}}},"raster":{"doc":"Raster map textures such as satellite imagery.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"}}},"hillshade":{"doc":"Client-side hillshading visualization based on DEM data. Currently, the implementation only supports Mapbox Terrain RGB tiles","sdk-support":{"basic functionality":{"js":"0.43.0"}}},"background":{"doc":"The background color or pattern of the map.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"}}}},"doc":"Rendering type of this layer.","required":true},"metadata":{"type":"*","doc":"Arbitrary properties useful to track with the layer, but do not influence rendering. Properties should be prefixed to avoid collisions, like \\\'mapbox:\\\'."},"source":{"type":"string","doc":"Name of a source description to be used for this layer. Required for all layer types except `background`."},"source-layer":{"type":"string","doc":"Layer to use from a vector tile source. Required for vector tile sources; prohibited for all other source types, including GeoJSON sources."},"minzoom":{"type":"number","minimum":0,"maximum":24,"doc":"The minimum zoom level on which the layer gets parsed and appears on."},"maxzoom":{"type":"number","minimum":0,"maximum":24,"doc":"The maximum zoom level on which the layer gets parsed and appears on."},"filter":{"type":"filter","doc":"A expression specifying conditions on source features. Only features that match the filter are displayed."},"layout":{"type":"layout","doc":"Layout properties for the layer."},"paint":{"type":"paint","doc":"Default paint properties for this layer."}},"layout":["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],"layout_background":{"visibility":{"type":"enum","values":{"visible":{"doc":"The layer is shown."},"none":{"doc":"The layer is not shown."}},"default":"visible","doc":"Whether this layer is displayed.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"}}}},"layout_fill":{"visibility":{"type":"enum","values":{"visible":{"doc":"The layer is shown."},"none":{"doc":"The layer is not shown."}},"default":"visible","doc":"Whether this layer is displayed.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"}}}},"layout_circle":{"visibility":{"type":"enum","values":{"visible":{"doc":"The layer is shown."},"none":{"doc":"The layer is not shown."}},"default":"visible","doc":"Whether this layer is displayed.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"}}}},"layout_heatmap":{"visibility":{"type":"enum","values":{"visible":{"doc":"The layer is shown."},"none":{"doc":"The layer is not shown."}},"default":"visible","doc":"Whether this layer is displayed.","sdk-support":{"basic functionality":{"js":"0.41.0"}}}},"layout_fill-extrusion":{"visibility":{"type":"enum","values":{"visible":{"doc":"The layer is shown."},"none":{"doc":"The layer is not shown."}},"default":"visible","doc":"Whether this layer is displayed.","sdk-support":{"basic functionality":{"js":"0.27.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"}}}},"layout_line":{"line-cap":{"type":"enum","function":"piecewise-constant","zoom-function":true,"values":{"butt":{"doc":"A cap with a squared-off end which is drawn to the exact endpoint of the line."},"round":{"doc":"A cap with a rounded end which is drawn beyond the endpoint of the line at a radius of one-half of the line\\\'s width and centered on the endpoint of the line."},"square":{"doc":"A cap with a squared-off end which is drawn beyond the endpoint of the line at a distance of one-half of the line\\\'s width."}},"default":"butt","doc":"The display of line endings.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"line-join":{"type":"enum","function":"piecewise-constant","zoom-function":true,"property-function":true,"values":{"bevel":{"doc":"A join with a squared-off end which is drawn beyond the endpoint of the line at a distance of one-half of the line\\\'s width."},"round":{"doc":"A join with a rounded end which is drawn beyond the endpoint of the line at a radius of one-half of the line\\\'s width and centered on the endpoint of the line."},"miter":{"doc":"A join with a sharp, angled corner which is drawn with the outer sides beyond the endpoint of the path until they meet."}},"default":"miter","doc":"The display of lines when joining.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.40.0","android":"5.2.0","ios":"3.7.0","macos":"0.6.0"}}},"line-miter-limit":{"type":"number","default":2,"function":"interpolated","zoom-function":true,"doc":"Used to automatically convert miter joins to bevel joins for sharp angles.","requires":[{"line-join":"miter"}],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"line-round-limit":{"type":"number","default":1.05,"function":"interpolated","zoom-function":true,"doc":"Used to automatically convert round joins to miter joins for shallow angles.","requires":[{"line-join":"round"}],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"visibility":{"type":"enum","values":{"visible":{"doc":"The layer is shown."},"none":{"doc":"The layer is not shown."}},"default":"visible","doc":"Whether this layer is displayed.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}}},"layout_symbol":{"symbol-placement":{"type":"enum","function":"piecewise-constant","zoom-function":true,"values":{"point":{"doc":"The label is placed at the point where the geometry is located."},"line":{"doc":"The label is placed along the line of the geometry. Can only be used on `LineString` and `Polygon` geometries."}},"default":"point","doc":"Label placement relative to its geometry.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"symbol-spacing":{"type":"number","default":250,"minimum":1,"function":"interpolated","zoom-function":true,"units":"pixels","doc":"Distance between two symbol anchors.","requires":[{"symbol-placement":"line"}],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"symbol-avoid-edges":{"type":"boolean","function":"piecewise-constant","zoom-function":true,"default":false,"doc":"If true, the symbols will not cross tile edges to avoid mutual collisions. Recommended in layers that don\\\'t have enough padding in the vector tile to prevent collisions, or if it is a point symbol layer placed after a line symbol layer.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"icon-allow-overlap":{"type":"boolean","function":"piecewise-constant","zoom-function":true,"default":false,"doc":"If true, the icon will be visible even if it collides with other previously drawn symbols.","requires":["icon-image"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"icon-ignore-placement":{"type":"boolean","function":"piecewise-constant","zoom-function":true,"default":false,"doc":"If true, other symbols can be visible even if they collide with the icon.","requires":["icon-image"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"icon-optional":{"type":"boolean","function":"piecewise-constant","zoom-function":true,"default":false,"doc":"If true, text will display without their corresponding icons when the icon collides with other symbols and the text does not.","requires":["icon-image","text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"icon-rotation-alignment":{"type":"enum","function":"piecewise-constant","zoom-function":true,"values":{"map":{"doc":"When `symbol-placement` is set to `point`, aligns icons east-west. When `symbol-placement` is set to `line`, aligns icon x-axes with the line."},"viewport":{"doc":"Produces icons whose x-axes are aligned with the x-axis of the viewport, regardless of the value of `symbol-placement`."},"auto":{"doc":"When `symbol-placement` is set to `point`, this is equivalent to `viewport`. When `symbol-placement` is set to `line`, this is equivalent to `map`."}},"default":"auto","doc":"In combination with `symbol-placement`, determines the rotation behavior of icons.","requires":["icon-image"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"`auto` value":{"js":"0.25.0","android":"4.2.0","ios":"3.4.0","macos":"0.3.0"},"data-driven styling":{}}},"icon-size":{"type":"number","default":1,"minimum":0,"function":"interpolated","zoom-function":true,"property-function":true,"units":"factor of the original icon size","doc":"Scales the original size of the icon by the provided factor. The new pixel size of the image will be the original pixel size multiplied by `icon-size`. 1 is the original size; 3 triples the size of the image.","requires":["icon-image"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.35.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"}}},"icon-text-fit":{"type":"enum","function":"piecewise-constant","zoom-function":true,"values":{"none":{"doc":"The icon is displayed at its intrinsic aspect ratio."},"width":{"doc":"The icon is scaled in the x-dimension to fit the width of the text."},"height":{"doc":"The icon is scaled in the y-dimension to fit the height of the text."},"both":{"doc":"The icon is scaled in both x- and y-dimensions."}},"default":"none","doc":"Scales the icon to fit around the associated text.","requires":["icon-image","text-field"],"sdk-support":{"basic functionality":{"js":"0.21.0","android":"4.2.0","ios":"3.4.0","macos":"0.2.1"},"data-driven styling":{}}},"icon-text-fit-padding":{"type":"array","value":"number","length":4,"default":[0,0,0,0],"units":"pixels","function":"interpolated","zoom-function":true,"doc":"Size of the additional area added to dimensions determined by `icon-text-fit`, in clockwise order: top, right, bottom, left.","requires":["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],"sdk-support":{"basic functionality":{"js":"0.21.0","android":"4.2.0","ios":"3.4.0","macos":"0.2.1"},"data-driven styling":{}}},"icon-image":{"type":"string","function":"piecewise-constant","zoom-function":true,"property-function":true,"doc":"Name of image in sprite to use for drawing an image background. Within literal values and zoom functions, property names enclosed in curly brackets (e.g. `{token}`) are replaced with the value of the named property. Expressions and property functions do not support this syntax; for equivalent functionality in expressions, use the [`concat`](#expressions-concat) and [`get`](#expressions-get) operators.","tokens":true,"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.35.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"}}},"icon-rotate":{"type":"number","default":0,"period":360,"function":"interpolated","zoom-function":true,"property-function":true,"units":"degrees","doc":"Rotates the icon clockwise.","requires":["icon-image"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.21.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"icon-padding":{"type":"number","default":2,"minimum":0,"function":"interpolated","zoom-function":true,"units":"pixels","doc":"Size of the additional area around the icon bounding box used for detecting symbol collisions.","requires":["icon-image"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"icon-keep-upright":{"type":"boolean","function":"piecewise-constant","zoom-function":true,"default":false,"doc":"If true, the icon may be flipped to prevent it from being rendered upside-down.","requires":["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":"line"}],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"icon-offset":{"type":"array","value":"number","length":2,"default":[0,0],"function":"interpolated","zoom-function":true,"property-function":true,"doc":"Offset distance of icon from its anchor. Positive values indicate right and down, while negative values indicate left and up. Each component is multiplied by the value of `icon-size` to obtain the final offset in pixels. When combined with `icon-rotate` the offset will be as if the rotated direction was up.","requires":["icon-image"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.29.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"icon-anchor":{"type":"enum","function":"piecewise-constant","zoom-function":true,"property-function":true,"values":{"center":{"doc":"The center of the icon is placed closest to the anchor."},"left":{"doc":"The left side of the icon is placed closest to the anchor."},"right":{"doc":"The right side of the icon is placed closest to the anchor."},"top":{"doc":"The top of the icon is placed closest to the anchor."},"bottom":{"doc":"The bottom of the icon is placed closest to the anchor."},"top-left":{"doc":"The top left corner of the icon is placed closest to the anchor."},"top-right":{"doc":"The top right corner of the icon is placed closest to the anchor."},"bottom-left":{"doc":"The bottom left corner of the icon is placed closest to the anchor."},"bottom-right":{"doc":"The bottom right corner of the icon is placed closest to the anchor."}},"default":"center","doc":"Part of the icon placed closest to the anchor.","requires":["icon-image"],"sdk-support":{"basic functionality":{"js":"0.40.0","android":"5.2.0","ios":"3.7.0","macos":"0.6.0"},"data-driven styling":{"js":"0.40.0","android":"5.2.0","ios":"3.7.0","macos":"0.6.0"}}},"icon-pitch-alignment":{"type":"enum","function":"piecewise-constant","zoom-function":true,"values":{"map":{"doc":"The icon is aligned to the plane of the map."},"viewport":{"doc":"The icon is aligned to the plane of the viewport."},"auto":{"doc":"Automatically matches the value of `icon-rotation-alignment`."}},"default":"auto","doc":"Orientation of icon when map is pitched.","requires":["icon-image"],"sdk-support":{"basic functionality":{"js":"0.39.0","android":"5.2.0","ios":"3.7.0","macos":"0.6.0"},"data-driven styling":{}}},"text-pitch-alignment":{"type":"enum","function":"piecewise-constant","zoom-function":true,"values":{"map":{"doc":"The text is aligned to the plane of the map."},"viewport":{"doc":"The text is aligned to the plane of the viewport."},"auto":{"doc":"Automatically matches the value of `text-rotation-alignment`."}},"default":"auto","doc":"Orientation of text when map is pitched.","requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.21.0","android":"4.2.0","ios":"3.4.0","macos":"0.2.1"},"`auto` value":{"js":"0.25.0","android":"4.2.0","ios":"3.4.0","macos":"0.3.0"},"data-driven styling":{}}},"text-rotation-alignment":{"type":"enum","function":"piecewise-constant","zoom-function":true,"values":{"map":{"doc":"When `symbol-placement` is set to `point`, aligns text east-west. When `symbol-placement` is set to `line`, aligns text x-axes with the line."},"viewport":{"doc":"Produces glyphs whose x-axes are aligned with the x-axis of the viewport, regardless of the value of `symbol-placement`."},"auto":{"doc":"When `symbol-placement` is set to `point`, this is equivalent to `viewport`. When `symbol-placement` is set to `line`, this is equivalent to `map`."}},"default":"auto","doc":"In combination with `symbol-placement`, determines the rotation behavior of the individual glyphs forming the text.","requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"`auto` value":{"js":"0.25.0","android":"4.2.0","ios":"3.4.0","macos":"0.3.0"},"data-driven styling":{}}},"text-field":{"type":"string","function":"piecewise-constant","zoom-function":true,"property-function":true,"default":"","tokens":true,"doc":"Value to use for a text label. Within literal values and zoom functions, property names enclosed in curly brackets (e.g. `{token}`) are replaced with the value of the named property. Expressions and property functions do not support this syntax; for equivalent functionality in expressions, use the [`concat`](#expressions-concat) and [`get`](#expressions-get) operators.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.33.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"text-font":{"type":"array","value":"string","function":"piecewise-constant","zoom-function":true,"property-function":true,"default":["Open Sans Regular","Arial Unicode MS Regular"],"doc":"Font stack to use for displaying text.","requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"text-size":{"type":"number","default":16,"minimum":0,"units":"pixels","function":"interpolated","zoom-function":true,"property-function":true,"doc":"Font size.","requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.35.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"}}},"text-max-width":{"type":"number","default":10,"minimum":0,"units":"ems","function":"interpolated","zoom-function":true,"property-function":true,"doc":"The maximum line width for text wrapping.","requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.40.0","android":"5.2.0","ios":"3.7.0","macos":"0.6.0"}}},"text-line-height":{"type":"number","default":1.2,"units":"ems","function":"interpolated","zoom-function":true,"doc":"Text leading value for multi-line text.","requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"text-letter-spacing":{"type":"number","default":0,"units":"ems","function":"interpolated","zoom-function":true,"property-function":true,"doc":"Text tracking amount.","requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.40.0","android":"5.2.0","ios":"3.7.0","macos":"0.6.0"}}},"text-justify":{"type":"enum","function":"piecewise-constant","zoom-function":true,"property-function":true,"values":{"left":{"doc":"The text is aligned to the left."},"center":{"doc":"The text is centered."},"right":{"doc":"The text is aligned to the right."}},"default":"center","doc":"Text justification options.","requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.39.0","android":"5.2.0","ios":"3.7.0","macos":"0.6.0"}}},"text-anchor":{"type":"enum","function":"piecewise-constant","zoom-function":true,"property-function":true,"values":{"center":{"doc":"The center of the text is placed closest to the anchor."},"left":{"doc":"The left side of the text is placed closest to the anchor."},"right":{"doc":"The right side of the text is placed closest to the anchor."},"top":{"doc":"The top of the text is placed closest to the anchor."},"bottom":{"doc":"The bottom of the text is placed closest to the anchor."},"top-left":{"doc":"The top left corner of the text is placed closest to the anchor."},"top-right":{"doc":"The top right corner of the text is placed closest to the anchor."},"bottom-left":{"doc":"The bottom left corner of the text is placed closest to the anchor."},"bottom-right":{"doc":"The bottom right corner of the text is placed closest to the anchor."}},"default":"center","doc":"Part of the text placed closest to the anchor.","requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.39.0","android":"5.2.0","ios":"3.7.0","macos":"0.6.0"}}},"text-max-angle":{"type":"number","default":45,"units":"degrees","function":"interpolated","zoom-function":true,"doc":"Maximum angle change between adjacent characters.","requires":["text-field",{"symbol-placement":"line"}],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"text-rotate":{"type":"number","default":0,"period":360,"units":"degrees","function":"interpolated","zoom-function":true,"property-function":true,"doc":"Rotates the text clockwise.","requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.35.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"}}},"text-padding":{"type":"number","default":2,"minimum":0,"units":"pixels","function":"interpolated","zoom-function":true,"doc":"Size of the additional area around the text bounding box used for detecting symbol collisions.","requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"text-keep-upright":{"type":"boolean","function":"piecewise-constant","zoom-function":true,"default":true,"doc":"If true, the text may be flipped vertically to prevent it from being rendered upside-down.","requires":["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":"line"}],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"text-transform":{"type":"enum","function":"piecewise-constant","zoom-function":true,"property-function":true,"values":{"none":{"doc":"The text is not altered."},"uppercase":{"doc":"Forces all letters to be displayed in uppercase."},"lowercase":{"doc":"Forces all letters to be displayed in lowercase."}},"default":"none","doc":"Specifies how to capitalize text, similar to the CSS `text-transform` property.","requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.33.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"text-offset":{"type":"array","doc":"Offset distance of text from its anchor. Positive values indicate right and down, while negative values indicate left and up.","value":"number","units":"ems","function":"interpolated","zoom-function":true,"property-function":true,"length":2,"default":[0,0],"requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.35.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"}}},"text-allow-overlap":{"type":"boolean","function":"piecewise-constant","zoom-function":true,"default":false,"doc":"If true, the text will be visible even if it collides with other previously drawn symbols.","requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"text-ignore-placement":{"type":"boolean","function":"piecewise-constant","zoom-function":true,"default":false,"doc":"If true, other symbols can be visible even if they collide with the text.","requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"text-optional":{"type":"boolean","function":"piecewise-constant","zoom-function":true,"default":false,"doc":"If true, icons will display without their corresponding text when the text collides with other symbols and the icon does not.","requires":["text-field","icon-image"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"visibility":{"type":"enum","values":{"visible":{"doc":"The layer is shown."},"none":{"doc":"The layer is not shown."}},"default":"visible","doc":"Whether this layer is displayed.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}}},"layout_raster":{"visibility":{"type":"enum","values":{"visible":{"doc":"The layer is shown."},"none":{"doc":"The layer is not shown."}},"default":"visible","doc":"Whether this layer is displayed.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}}},"layout_hillshade":{"visibility":{"type":"enum","values":{"visible":{"doc":"The layer is shown."},"none":{"doc":"The layer is not shown."}},"default":"visible","doc":"Whether this layer is displayed.","sdk-support":{"basic functionality":{"js":"0.43.0"},"data-driven styling":{}}}},"filter":{"type":"array","value":"*","doc":"A filter selects specific features from a layer."},"filter_operator":{"type":"enum","values":{"==":{"doc":"`[\\\\"==\\\\", key, value]` equality: `feature[key] = value`"},"!=":{"doc":"`[\\\\"!=\\\\", key, value]` inequality: `feature[key] ≠ value`"},">":{"doc":"`[\\\\">\\\\", key, value]` greater than: `feature[key] > value`"},">=":{"doc":"`[\\\\">=\\\\", key, value]` greater than or equal: `feature[key] ≥ value`"},"<":{"doc":"`[\\\\"<\\\\", key, value]` less than: `feature[key] < value`"},"<=":{"doc":"`[\\\\"<=\\\\", key, value]` less than or equal: `feature[key] ≤ value`"},"in":{"doc":"`[\\\\"in\\\\", key, v0, ..., vn]` set inclusion: `feature[key] ∈ {v0, ..., vn}`"},"!in":{"doc":"`[\\\\"!in\\\\", key, v0, ..., vn]` set exclusion: `feature[key] ∉ {v0, ..., vn}`"},"all":{"doc":"`[\\\\"all\\\\", f0, ..., fn]` logical `AND`: `f0 ∧ ... ∧ fn`"},"any":{"doc":"`[\\\\"any\\\\", f0, ..., fn]` logical `OR`: `f0 ∨ ... ∨ fn`"},"none":{"doc":"`[\\\\"none\\\\", f0, ..., fn]` logical `NOR`: `¬f0 ∧ ... ∧ ¬fn`"},"has":{"doc":"`[\\\\"has\\\\", key]` `feature[key]` exists"},"!has":{"doc":"`[\\\\"!has\\\\", key]` `feature[key]` does not exist"}},"doc":"The filter operator."},"geometry_type":{"type":"enum","values":{"Point":{"doc":"Filter to point geometries."},"LineString":{"doc":"Filter to line geometries."},"Polygon":{"doc":"Filter to polygon geometries."}},"doc":"The geometry type for the filter to select."},"function":{"expression":{"type":"expression","doc":"An expression."},"stops":{"type":"array","doc":"An array of stops.","value":"function_stop"},"base":{"type":"number","default":1,"minimum":0,"doc":"The exponential base of the interpolation curve. It controls the rate at which the result increases. Higher values make the result increase more towards the high end of the range. With `1` the stops are interpolated linearly."},"property":{"type":"string","doc":"The name of a feature property to use as the function input.","default":"$zoom"},"type":{"type":"enum","values":{"identity":{"doc":"Return the input value as the output value."},"exponential":{"doc":"Generate an output by interpolating between stops just less than and just greater than the function input."},"interval":{"doc":"Return the output value of the stop just less than the function input."},"categorical":{"doc":"Return the output value of the stop equal to the function input."}},"doc":"The interpolation strategy to use in function evaluation.","default":"exponential"},"colorSpace":{"type":"enum","values":{"rgb":{"doc":"Use the RGB color space to interpolate color values"},"lab":{"doc":"Use the LAB color space to interpolate color values."},"hcl":{"doc":"Use the HCL color space to interpolate color values, interpolating the Hue, Chroma, and Luminance channels individually."}},"doc":"The color space in which colors interpolated. Interpolating colors in perceptual color spaces like LAB and HCL tend to produce color ramps that look more consistent and produce colors that can be differentiated more easily than those interpolated in RGB space.","default":"rgb"},"default":{"type":"*","required":false,"doc":"A value to serve as a fallback function result when a value isn\\\'t otherwise available. It is used in the following circumstances:\\\\n* In categorical functions, when the feature value does not match any of the stop domain values.\\\\n* In property and zoom-and-property functions, when a feature does not contain a value for the specified property.\\\\n* In identity functions, when the feature value is not valid for the style property (for example, if the function is being used for a `circle-color` property but the feature property value is not a string or not a valid color).\\\\n* In interval or exponential property and zoom-and-property functions, when the feature value is not numeric.\\\\nIf no default is provided, the style property\\\'s default is used in these circumstances."}},"function_stop":{"type":"array","minimum":0,"maximum":22,"value":["number","color"],"length":2,"doc":"Zoom level and value pair."},"expression":{"type":"array","value":"*","minimum":1,"doc":"An expression defines a function that can be used for data-driven style properties or feature filters."},"expression_name":{"doc":"","type":"enum","values":{"let":{"doc":"Binds expressions to named variables, which can then be referenced in the result expression using [\\\\"var\\\\", \\\\"variable_name\\\\"].","group":"Variable binding"},"var":{"doc":"References variable bound using \\\\"let\\\\".","group":"Variable binding"},"literal":{"doc":"Provides a literal array or object value.","group":"Types"},"array":{"doc":"Asserts that the input is an array (optionally with a specific item type and length). If, when the input expression is evaluated, it is not of the asserted type, then this assertion will cause the whole expression to be aborted.","group":"Types"},"at":{"doc":"Retrieves an item from an array.","group":"Lookup"},"case":{"doc":"Selects the first output whose corresponding test condition evaluates to true.","group":"Decision"},"match":{"doc":"Selects the output whose label value matches the input value, or the fallback value if no match is found. The `input` can be any string or number expression (e.g. `[\\\\"get\\\\", \\\\"building_type\\\\"]`). Each label can either be a single literal value or an array of values.","group":"Decision"},"coalesce":{"doc":"Evaluates each expression in turn until the first non-null value is obtained, and returns that value.","group":"Decision"},"step":{"doc":"Produces discrete, stepped results by evaluating a piecewise-constant function defined by pairs of input and output values (\\\\"stops\\\\"). The `input` may be any numeric expression (e.g., `[\\\\"get\\\\", \\\\"population\\\\"]`). Stop inputs must be numeric literals in strictly ascending order. Returns the output value of the stop just less than the input, or the first input if the input is less than the first stop.","group":"Ramps, scales, curves"},"interpolate":{"doc":"Produces continuous, smooth results by interpolating between pairs of input and output values (\\\\"stops\\\\"). The `input` may be any numeric expression (e.g., `[\\\\"get\\\\", \\\\"population\\\\"]`). Stop inputs must be numeric literals in strictly ascending order. The output type must be `number`, `array<number>`, or `color`.\\\\n\\\\nInterpolation types:\\\\n- `[\\\\"linear\\\\"]`: interpolates linearly between the pair of stops just less than and just greater than the input.\\\\n- `[\\\\"exponential\\\\", base]`: interpolates exponentially between the stops just less than and just greater than the input. `base` controls the rate at which the output increases: higher values make the output increase more towards the high end of the range. With values close to 1 the output increases linearly.\\\\n- `[\\\\"cubic-bezier\\\\", x1, y1, x2, y2]`: interpolates using the cubic bezier curve defined by the given control points.","group":"Ramps, scales, curves"},"ln2":{"doc":"Returns mathematical constant ln(2).","group":"Math"},"pi":{"doc":"Returns the mathematical constant pi.","group":"Math"},"e":{"doc":"Returns the mathematical constant e.","group":"Math"},"typeof":{"doc":"Returns a string describing the type of the given value.","group":"Types"},"string":{"doc":"Asserts that the input value is a string. If multiple values are provided, each one is evaluated in order until a string value is obtained. If none of the inputs are strings, the expression is an error.","group":"Types"},"number":{"doc":"Asserts that the input value is a number. If multiple values are provided, each one is evaluated in order until a number value is obtained. If none of the inputs are numbers, the expression is an error.","group":"Types"},"boolean":{"doc":"Asserts that the input value is a boolean. If multiple values are provided, each one is evaluated in order until a boolean value is obtained. If none of the inputs are booleans, the expression is an error.","group":"Types"},"object":{"doc":"Asserts that the input value is an object. If it is not, the expression is an error.","group":"Types"},"to-string":{"doc":"Converts the input value to a string. If the input is `null`, the result is `\\\\"null\\\\"`. If the input is a boolean, the result is `\\\\"true\\\\"` or `\\\\"false\\\\"`. If the input is a number, it is converted to a string as specified by the [\\\\"NumberToString\\\\" algorithm](https://tc39.github.io/ecma262/#sec-tostring-applied-to-the-number-type) of the ECMAScript Language Specification. If the input is a color, it is converted to a string of the form `\\\\"rgba(r,g,b,a)\\\\"`, where `r`, `g`, and `b` are numerals ranging from 0 to 255, and `a` ranges from 0 to 1. Otherwise, the input is converted to a string in the format specified by the [`JSON.stringify`](https://tc39.github.io/ecma262/#sec-json.stringify) function of the ECMAScript Language Specification.","group":"Types"},"to-number":{"doc":"Converts the input value to a number, if possible. If the input is `null` or `false`, the result is 0. If the input is `true`, the result is 1. If the input is a string, it is converted to a number as specified by the [\\\\"ToNumber Applied to the String Type\\\\" algorithm](https://tc39.github.io/ecma262/#sec-tonumber-applied-to-the-string-type) of the ECMAScript Language Specification. If multiple values are provided, each one is evaluated in order until the first successful conversion is obtained. If none of the inputs can be converted, the expression is an error.","group":"Types"},"to-boolean":{"doc":"Converts the input value to a boolean. The result is `false` when then input is an empty string, 0, `false`, `null`, or `NaN`; otherwise it is `true`.","group":"Types"},"to-rgba":{"doc":"Returns a four-element array containing the input color\\\'s red, green, blue, and alpha components, in that order.","group":"Color"},"to-color":{"doc":"Converts the input value to a color. If multiple values are provided, each one is evaluated in order until the first successful conversion is obtained. If none of the inputs can be converted, the expression is an error.","group":"Types"},"rgb":{"doc":"Creates a color value from red, green, and blue components, which must range between 0 and 255, and an alpha component of 1. If any component is out of range, the expression is an error.","group":"Color"},"rgba":{"doc":"Creates a color value from red, green, blue components, which must range between 0 and 255, and an alpha component which must range between 0 and 1. If any component is out of range, the expression is an error.","group":"Color"},"get":{"doc":"Retrieves a property value from the current feature\\\'s properties, or from another object if a second argument is provided. Returns null if the requested property is missing.","group":"Lookup"},"has":{"doc":"Tests for the presence of an property value in the current feature\\\'s properties, or from another object if a second argument is provided.","group":"Lookup"},"length":{"doc":"Gets the length of an array or string.","group":"Lookup"},"properties":{"doc":"Gets the feature properties object. Note that in some cases, it may be more efficient to use [\\\\"get\\\\", \\\\"property_name\\\\"] directly.","group":"Feature data"},"geometry-type":{"doc":"Gets the feature\\\'s geometry type: Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon.","group":"Feature data"},"id":{"doc":"Gets the feature\\\'s id, if it has one.","group":"Feature data"},"zoom":{"doc":"Gets the current zoom level. Note that in style layout and paint properties, [\\\\"zoom\\\\"] may only appear as the input to a top-level \\\\"step\\\\" or \\\\"interpolate\\\\" expression.","group":"Zoom"},"heatmap-density":{"doc":"Gets the kernel density estimation of a pixel in a heatmap layer, which is a relative measure of how many data points are crowded around a particular pixel. Can only be used in the `heatmap-color` property.","group":"Heatmap"},"+":{"doc":"Returns the sum of the inputs.","group":"Math"},"*":{"doc":"Returns the product of the inputs.","group":"Math"},"-":{"doc":"For two inputs, returns the result of subtracting the second input from the first. For a single input, returns the result of subtracting it from 0.","group":"Math"},"/":{"doc":"Returns the result of floating point division of the first input by the second.","group":"Math"},"%":{"doc":"Returns the remainder after integer division of the first input by the second.","group":"Math"},"^":{"doc":"Returns the result of raising the first input to the power specified by the second.","group":"Math"},"sqrt":{"doc":"Returns the square root of the input.","group":"Math"},"log10":{"doc":"Returns the base-ten logarithm of the input.","group":"Math"},"ln":{"doc":"Returns the natural logarithm of the input.","group":"Math"},"log2":{"doc":"Returns the base-two logarithm of the input.","group":"Math"},"sin":{"doc":"Returns the sine of the input.","group":"Math"},"cos":{"doc":"Returns the cosine of the input.","group":"Math"},"tan":{"doc":"Returns the tangent of the input.","group":"Math"},"asin":{"doc":"Returns the arcsine of the input.","group":"Math"},"acos":{"doc":"Returns the arccosine of the input.","group":"Math"},"atan":{"doc":"Returns the arctangent of the input.","group":"Math"},"min":{"doc":"Returns the minimum value of the inputs.","group":"Math"},"max":{"doc":"Returns the maximum value of the inputs.","group":"Math"},"==":{"doc":"Returns `true` if the input values are equal, `false` otherwise. The inputs must be numbers, strings, or booleans, and both of the same type.","group":"Decision"},"!=":{"doc":"Returns `true` if the input values are not equal, `false` otherwise. The inputs must be numbers, strings, or booleans, and both of the same type.","group":"Decision"},">":{"doc":"Returns `true` if the first input is strictly greater than the second, `false` otherwise. The inputs must be numbers or strings, and both of the same type.","group":"Decision"},"<":{"doc":"Returns `true` if the first input is strictly less than the second, `false` otherwise. The inputs must be numbers or strings, and both of the same type.","group":"Decision"},">=":{"doc":"Returns `true` if the first input is greater than or equal to the second, `false` otherwise. The inputs must be numbers or strings, and both of the same type.","group":"Decision"},"<=":{"doc":"Returns `true` if the first input is less than or equal to the second, `false` otherwise. The inputs must be numbers or strings, and both of the same type.","group":"Decision"},"all":{"doc":"Returns `true` if all the inputs are `true`, `false` otherwise. The inputs are evaluated in order, and evaluation is short-circuiting: once an input expression evaluates to `false`, the result is `false` and no further input expressions are evaluated.","group":"Decision"},"any":{"doc":"Returns `true` if any of the inputs are `true`, `false` otherwise. The inputs are evaluated in order, and evaluation is short-circuiting: once an input expression evaluates to `true`, the result is `true` and no further input expressions are evaluated.","group":"Decision"},"!":{"doc":"Logical negation. Returns `true` if the input is `false`, and `false` if the input is `true`.","group":"Decision"},"upcase":{"doc":"Returns the input string converted to uppercase. Follows the Unicode Default Case Conversion algorithm and the locale-insensitive case mappings in the Unicode Character Database.","group":"String"},"downcase":{"doc":"Returns the input string converted to lowercase. Follows the Unicode Default Case Conversion algorithm and the locale-insensitive case mappings in the Unicode Character Database.","group":"String"},"concat":{"doc":"Returns a string consisting of the concatenation of the inputs.","group":"String"}}},"light":{"anchor":{"type":"enum","default":"viewport","values":{"map":{"doc":"The position of the light source is aligned to the rotation of the map."},"viewport":{"doc":"The position of the light source is aligned to the rotation of the viewport."}},"transition":false,"zoom-function":true,"property-function":false,"function":"piecewise-constant","doc":"Whether extruded geometries are lit relative to the map or viewport.","example":"map","sdk-support":{"basic functionality":{"js":"0.27.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"}}},"position":{"type":"array","default":[1.15,210,30],"length":3,"value":"number","transition":true,"function":"interpolated","zoom-function":true,"property-function":false,"doc":"Position of the light source relative to lit (extruded) geometries, in [r radial coordinate, a azimuthal angle, p polar angle] where r indicates the distance from the center of the base of an object to its light, a indicates the position of the light relative to 0° (0° when `light.anchor` is set to `viewport` corresponds to the top of the viewport, or 0° when `light.anchor` is set to `map` corresponds to due north, and degrees proceed clockwise), and p indicates the height of the light (from 0°, directly above, to 180°, directly below).","example":[1.5,90,80],"sdk-support":{"basic functionality":{"js":"0.27.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"}}},"color":{"type":"color","default":"#ffffff","function":"interpolated","zoom-function":true,"property-function":false,"transition":true,"doc":"Color tint for lighting extruded geometries.","sdk-support":{"basic functionality":{"js":"0.27.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"}}},"intensity":{"type":"number","default":0.5,"minimum":0,"maximum":1,"function":"interpolated","zoom-function":true,"property-function":false,"transition":true,"doc":"Intensity of lighting (on a scale from 0 to 1). Higher numbers will present as more extreme contrast.","sdk-support":{"basic functionality":{"js":"0.27.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"}}}},"paint":["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],"paint_fill":{"fill-antialias":{"type":"boolean","function":"piecewise-constant","zoom-function":true,"default":true,"doc":"Whether or not the fill should be antialiased.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"fill-opacity":{"type":"number","function":"interpolated","zoom-function":true,"property-function":true,"default":1,"minimum":0,"maximum":1,"doc":"The opacity of the entire fill layer. In contrast to the `fill-color`, this value will also affect the 1px stroke around the fill, if the stroke is used.","transition":true,"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.21.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"fill-color":{"type":"color","default":"#000000","doc":"The color of the filled part of this layer. This color can be specified as `rgba` with an alpha component and the color\\\'s opacity will not affect the opacity of the 1px stroke, if it is used.","function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"requires":[{"!":"fill-pattern"}],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.19.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"fill-outline-color":{"type":"color","doc":"The outline color of the fill. Matches the value of `fill-color` if unspecified.","function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"requires":[{"!":"fill-pattern"},{"fill-antialias":true}],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.19.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"fill-translate":{"type":"array","value":"number","length":2,"default":[0,0],"function":"interpolated","zoom-function":true,"transition":true,"units":"pixels","doc":"The geometry\\\'s offset. Values are [x, y] where negatives indicate left and up, respectively.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"fill-translate-anchor":{"type":"enum","function":"piecewise-constant","zoom-function":true,"values":{"map":{"doc":"The fill is translated relative to the map."},"viewport":{"doc":"The fill is translated relative to the viewport."}},"doc":"Controls the frame of reference for `fill-translate`.","default":"map","requires":["fill-translate"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"fill-pattern":{"type":"string","function":"piecewise-constant","zoom-function":true,"transition":true,"doc":"Name of image in sprite to use for drawing image fills. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512).","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}}},"paint_fill-extrusion":{"fill-extrusion-opacity":{"type":"number","function":"interpolated","zoom-function":true,"property-function":false,"default":1,"minimum":0,"maximum":1,"doc":"The opacity of the entire fill extrusion layer. This is rendered on a per-layer, not per-feature, basis, and data-driven styling is not available.","transition":true,"sdk-support":{"basic functionality":{"js":"0.27.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"}}},"fill-extrusion-color":{"type":"color","default":"#000000","doc":"The base color of the extruded fill. The extrusion\\\'s surfaces will be shaded differently based on this color in combination with the root `light` settings. If this color is specified as `rgba` with an alpha component, the alpha component will be ignored; use `fill-extrusion-opacity` to set layer opacity.","function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"requires":[{"!":"fill-extrusion-pattern"}],"sdk-support":{"basic functionality":{"js":"0.27.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"},"data-driven styling":{"js":"0.27.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"}}},"fill-extrusion-translate":{"type":"array","value":"number","length":2,"default":[0,0],"function":"interpolated","zoom-function":true,"transition":true,"units":"pixels","doc":"The geometry\\\'s offset. Values are [x, y] where negatives indicate left and up (on the flat plane), respectively.","sdk-support":{"basic functionality":{"js":"0.27.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"},"data-driven styling":{}}},"fill-extrusion-translate-anchor":{"type":"enum","function":"piecewise-constant","zoom-function":true,"values":{"map":{"doc":"The fill extrusion is translated relative to the map."},"viewport":{"doc":"The fill extrusion is translated relative to the viewport."}},"doc":"Controls the frame of reference for `fill-extrusion-translate`.","default":"map","requires":["fill-extrusion-translate"],"sdk-support":{"basic functionality":{"js":"0.27.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"},"data-driven styling":{}}},"fill-extrusion-pattern":{"type":"string","function":"piecewise-constant","zoom-function":true,"transition":true,"doc":"Name of image in sprite to use for drawing images on extruded fills. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512).","sdk-support":{"basic functionality":{"js":"0.27.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"},"data-driven styling":{}}},"fill-extrusion-height":{"type":"number","function":"interpolated","zoom-function":true,"property-function":true,"default":0,"minimum":0,"units":"meters","doc":"The height with which to extrude this layer.","transition":true,"sdk-support":{"basic functionality":{"js":"0.27.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"},"data-driven styling":{"js":"0.27.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"}}},"fill-extrusion-base":{"type":"number","function":"interpolated","zoom-function":true,"property-function":true,"default":0,"minimum":0,"units":"meters","doc":"The height with which to extrude the base of this layer. Must be less than or equal to `fill-extrusion-height`.","transition":true,"requires":["fill-extrusion-height"],"sdk-support":{"basic functionality":{"js":"0.27.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"},"data-driven styling":{"js":"0.27.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"}}}},"paint_line":{"line-opacity":{"type":"number","doc":"The opacity at which the line will be drawn.","function":"interpolated","zoom-function":true,"property-function":true,"default":1,"minimum":0,"maximum":1,"transition":true,"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.29.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"line-color":{"type":"color","doc":"The color with which the line will be drawn.","default":"#000000","function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"requires":[{"!":"line-pattern"}],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.23.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"line-translate":{"type":"array","value":"number","length":2,"default":[0,0],"function":"interpolated","zoom-function":true,"transition":true,"units":"pixels","doc":"The geometry\\\'s offset. Values are [x, y] where negatives indicate left and up, respectively.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"line-translate-anchor":{"type":"enum","function":"piecewise-constant","zoom-function":true,"values":{"map":{"doc":"The line is translated relative to the map."},"viewport":{"doc":"The line is translated relative to the viewport."}},"doc":"Controls the frame of reference for `line-translate`.","default":"map","requires":["line-translate"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"line-width":{"type":"number","default":1,"minimum":0,"function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"units":"pixels","doc":"Stroke thickness.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.39.0"}}},"line-gap-width":{"type":"number","default":0,"minimum":0,"doc":"Draws a line casing outside of a line\\\'s actual path. Value indicates the width of the inner gap.","function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"units":"pixels","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.29.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"line-offset":{"type":"number","default":0,"doc":"The line\\\'s offset. For linear features, a positive value offsets the line to the right, relative to the direction of the line, and a negative value to the left. For polygon features, a positive value results in an inset, and a negative value results in an outset.","function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"units":"pixels","sdk-support":{"basic functionality":{"js":"0.12.1","android":"3.0.0","ios":"3.1.0","macos":"0.1.0"},"data-driven styling":{"js":"0.29.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"line-blur":{"type":"number","default":0,"minimum":0,"function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"units":"pixels","doc":"Blur applied to the line, in pixels.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.29.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"line-dasharray":{"type":"array","value":"number","function":"piecewise-constant","zoom-function":true,"doc":"Specifies the lengths of the alternating dashes and gaps that form the dash pattern. The lengths are later scaled by the line width. To convert a dash length to pixels, multiply the length by the current line width.","minimum":0,"transition":true,"units":"line widths","requires":[{"!":"line-pattern"}],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"line-pattern":{"type":"string","function":"piecewise-constant","zoom-function":true,"transition":true,"doc":"Name of image in sprite to use for drawing image lines. For seamless patterns, image width must be a factor of two (2, 4, 8, ..., 512).","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}}},"paint_circle":{"circle-radius":{"type":"number","default":5,"minimum":0,"function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"units":"pixels","doc":"Circle radius.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.18.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"circle-color":{"type":"color","default":"#000000","doc":"The fill color of the circle.","function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.18.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"circle-blur":{"type":"number","default":0,"doc":"Amount to blur the circle. 1 blurs the circle such that only the centerpoint is full opacity.","function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.20.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"circle-opacity":{"type":"number","doc":"The opacity at which the circle will be drawn.","default":1,"minimum":0,"maximum":1,"function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.20.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"circle-translate":{"type":"array","value":"number","length":2,"default":[0,0],"function":"interpolated","zoom-function":true,"transition":true,"units":"pixels","doc":"The geometry\\\'s offset. Values are [x, y] where negatives indicate left and up, respectively.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"circle-translate-anchor":{"type":"enum","function":"piecewise-constant","zoom-function":true,"values":{"map":{"doc":"The circle is translated relative to the map."},"viewport":{"doc":"The circle is translated relative to the viewport."}},"doc":"Controls the frame of reference for `circle-translate`.","default":"map","requires":["circle-translate"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"circle-pitch-scale":{"type":"enum","function":"piecewise-constant","zoom-function":true,"values":{"map":{"doc":"Circles are scaled according to their apparent distance to the camera."},"viewport":{"doc":"Circles are not scaled."}},"default":"map","doc":"Controls the scaling behavior of the circle when the map is pitched.","sdk-support":{"basic functionality":{"js":"0.21.0","android":"4.2.0","ios":"3.4.0","macos":"0.2.1"},"data-driven styling":{}}},"circle-pitch-alignment":{"type":"enum","function":"piecewise-constant","zoom-function":true,"values":{"map":{"doc":"The circle is aligned to the plane of the map."},"viewport":{"doc":"The circle is aligned to the plane of the viewport."}},"default":"viewport","doc":"Orientation of circle when map is pitched.","sdk-support":{"basic functionality":{"js":"0.39.0","android":"5.2.0","ios":"3.7.0","macos":"0.6.0"},"data-driven styling":{}}},"circle-stroke-width":{"type":"number","default":0,"minimum":0,"function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"units":"pixels","doc":"The width of the circle\\\'s stroke. Strokes are placed outside of the `circle-radius`.","sdk-support":{"basic functionality":{"js":"0.29.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"},"data-driven styling":{"js":"0.29.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"circle-stroke-color":{"type":"color","default":"#000000","doc":"The stroke color of the circle.","function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"sdk-support":{"basic functionality":{"js":"0.29.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"},"data-driven styling":{"js":"0.29.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"circle-stroke-opacity":{"type":"number","doc":"The opacity of the circle\\\'s stroke.","default":1,"minimum":0,"maximum":1,"function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"sdk-support":{"basic functionality":{"js":"0.29.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"},"data-driven styling":{"js":"0.29.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}}},"paint_heatmap":{"heatmap-radius":{"type":"number","default":30,"minimum":1,"function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"units":"pixels","doc":"Radius of influence of one heatmap point in pixels. Increasing the value makes the heatmap smoother, but less detailed.","sdk-support":{"basic functionality":{"js":"0.41.0"},"data-driven styling":{}}},"heatmap-weight":{"type":"number","default":1,"minimum":0,"function":"interpolated","zoom-function":true,"property-function":true,"transition":false,"doc":"A measure of how much an individual point contributes to the heatmap. A value of 10 would be equivalent to having 10 points of weight 1 in the same spot. Especially useful when combined with clustering.","sdk-support":{"basic functionality":{"js":"0.41.0"},"data-driven styling":{"js":"0.41.0"}}},"heatmap-intensity":{"type":"number","default":1,"minimum":0,"function":"interpolated","zoom-function":true,"property-function":false,"transition":true,"doc":"Similar to `heatmap-weight` but controls the intensity of the heatmap globally. Primarily used for adjusting the heatmap based on zoom level.","sdk-support":{"basic functionality":{"js":"0.41.0"},"data-driven styling":{}}},"heatmap-color":{"type":"color","default":["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",0.1,"royalblue",0.3,"cyan",0.5,"lime",0.7,"yellow",1,"red"],"doc":"Defines the color of each pixel based on its density value in a heatmap. Should be an expression that uses `[\\\\"heatmap-density\\\\"]` as input.","function":"interpolated","zoom-function":false,"property-function":false,"transition":false,"sdk-support":{"basic functionality":{"js":"0.41.0"},"data-driven styling":{}}},"heatmap-opacity":{"type":"number","doc":"The global opacity at which the heatmap layer will be drawn.","default":1,"minimum":0,"maximum":1,"function":"interpolated","zoom-function":true,"property-function":false,"transition":true,"sdk-support":{"basic functionality":{"js":"0.41.0"},"data-driven styling":{}}}},"paint_symbol":{"icon-opacity":{"doc":"The opacity at which the icon will be drawn.","type":"number","default":1,"minimum":0,"maximum":1,"function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"requires":["icon-image"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.33.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"icon-color":{"type":"color","default":"#000000","function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"doc":"The color of the icon. This can only be used with sdf icons.","requires":["icon-image"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.33.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"icon-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"doc":"The color of the icon\\\'s halo. Icon halos can only be used with SDF icons.","requires":["icon-image"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.33.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"icon-halo-width":{"type":"number","default":0,"minimum":0,"function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"units":"pixels","doc":"Distance of halo to the icon outline.","requires":["icon-image"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.33.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"icon-halo-blur":{"type":"number","default":0,"minimum":0,"function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"units":"pixels","doc":"Fade out the halo towards the outside.","requires":["icon-image"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.33.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"icon-translate":{"type":"array","value":"number","length":2,"default":[0,0],"function":"interpolated","zoom-function":true,"transition":true,"units":"pixels","doc":"Distance that the icon\\\'s anchor is moved from its original placement. Positive values indicate right and down, while negative values indicate left and up.","requires":["icon-image"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"icon-translate-anchor":{"type":"enum","function":"piecewise-constant","zoom-function":true,"values":{"map":{"doc":"Icons are translated relative to the map."},"viewport":{"doc":"Icons are translated relative to the viewport."}},"doc":"Controls the frame of reference for `icon-translate`.","default":"map","requires":["icon-image","icon-translate"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"text-opacity":{"type":"number","doc":"The opacity at which the text will be drawn.","default":1,"minimum":0,"maximum":1,"function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.33.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"text-color":{"type":"color","doc":"The color with which the text will be drawn.","default":"#000000","function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.33.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"text-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"doc":"The color of the text\\\'s halo, which helps it stand out from backgrounds.","requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.33.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"text-halo-width":{"type":"number","default":0,"minimum":0,"function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"units":"pixels","doc":"Distance of halo to the font outline. Max text halo width is 1/4 of the font-size.","requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.33.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"text-halo-blur":{"type":"number","default":0,"minimum":0,"function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"units":"pixels","doc":"The halo\\\'s fadeout distance towards the outside.","requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.33.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"text-translate":{"type":"array","value":"number","length":2,"default":[0,0],"function":"interpolated","zoom-function":true,"transition":true,"units":"pixels","doc":"Distance that the text\\\'s anchor is moved from its original placement. Positive values indicate right and down, while negative values indicate left and up.","requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"text-translate-anchor":{"type":"enum","function":"piecewise-constant","zoom-function":true,"values":{"map":{"doc":"The text is translated relative to the map."},"viewport":{"doc":"The text is translated relative to the viewport."}},"doc":"Controls the frame of reference for `text-translate`.","default":"map","requires":["text-field","text-translate"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}}},"paint_raster":{"raster-opacity":{"type":"number","doc":"The opacity at which the image will be drawn.","default":1,"minimum":0,"maximum":1,"function":"interpolated","zoom-function":true,"transition":true,"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"raster-hue-rotate":{"type":"number","default":0,"period":360,"function":"interpolated","zoom-function":true,"transition":true,"units":"degrees","doc":"Rotates hues around the color wheel.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"raster-brightness-min":{"type":"number","function":"interpolated","zoom-function":true,"doc":"Increase or reduce the brightness of the image. The value is the minimum brightness.","default":0,"minimum":0,"maximum":1,"transition":true,"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"raster-brightness-max":{"type":"number","function":"interpolated","zoom-function":true,"doc":"Increase or reduce the brightness of the image. The value is the maximum brightness.","default":1,"minimum":0,"maximum":1,"transition":true,"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"raster-saturation":{"type":"number","doc":"Increase or reduce the saturation of the image.","default":0,"minimum":-1,"maximum":1,"function":"interpolated","zoom-function":true,"transition":true,"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"raster-contrast":{"type":"number","doc":"Increase or reduce the contrast of the image.","default":0,"minimum":-1,"maximum":1,"function":"interpolated","zoom-function":true,"transition":true,"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"raster-fade-duration":{"type":"number","default":300,"minimum":0,"function":"interpolated","zoom-function":true,"transition":false,"units":"milliseconds","doc":"Fade duration when a new tile is added.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}}},"paint_hillshade":{"hillshade-illumination-direction":{"type":"number","default":335,"minimum":0,"maximum":359,"doc":"The direction of the light source used to generate the hillshading with 0 as the top of the viewport if `hillshade-illumination-anchor` is set to `viewport` and due north if `hillshade-illumination-anchor` is set to `map`.","function":"interpolated","zoom-function":true,"transition":false},"hillshade-illumination-anchor":{"type":"enum","function":"piecewise-constant","zoom-function":true,"values":{"map":{"doc":"The hillshade illumination is relative to the north direction."},"viewport":{"doc":"The hillshade illumination is relative to the top of the viewport."}},"default":"viewport","doc":"Direction of light source when map is rotated."},"hillshade-exaggeration":{"type":"number","doc":"Intensity of the hillshade","default":0.5,"minimum":0,"maximum":1,"function":"interpolated","zoom-function":true,"transition":true},"hillshade-shadow-color":{"type":"color","default":"#000000","doc":"The shading color of areas that face away from the light source.","function":"interpolated","zoom-function":true,"transition":true},"hillshade-highlight-color":{"type":"color","default":"#FFFFFF","doc":"The shading color of areas that faces towards the light source.","function":"interpolated","zoom-function":true,"transition":true},"hillshade-accent-color":{"type":"color","default":"#000000","doc":"The shading color used to accentuate rugged terrain like sharp cliffs and gorges.","function":"interpolated","zoom-function":true,"transition":true}},"paint_background":{"background-color":{"type":"color","default":"#000000","doc":"The color with which the background will be drawn.","function":"interpolated","zoom-function":true,"transition":true,"requires":[{"!":"background-pattern"}],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"}}},"background-pattern":{"type":"string","function":"piecewise-constant","zoom-function":true,"transition":true,"doc":"Name of image in sprite to use for drawing an image background. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512).","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"}}},"background-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"doc":"The opacity at which the background will be drawn.","function":"interpolated","zoom-function":true,"transition":true,"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"}}}},"transition":{"duration":{"type":"number","default":300,"minimum":0,"units":"milliseconds","doc":"Time allotted for transitions to complete."},"delay":{"type":"number","default":0,"minimum":0,"units":"milliseconds","doc":"Length of time before a transition begins."}}}\')}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={exports:{}};return t[r].call(o.exports,o,o.exports,n),o.exports}n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var e=n(9646),r=n(9678),i=n(1015),o=n(9371),a=n(6513),s=n(8583),u=n(4781);new(function(){function n(t){var r=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),this.self=t,this.actor=new e(t,this),this.layerIndexes={},this.workerSourceTypes={vector:i,geojson:a},this.workerSources={},this.demWorkerSources={},this.self.registerWorkerSource=function(t,e){if(r.workerSourceTypes[t])throw new Error(\'Worker source with name "\'.concat(t,\'" already registered.\'));r.workerSourceTypes[t]=e},this.self.registerRTLTextPlugin=function(t){if(u.applyArabicShaping||u.processBidirectionalText)throw new Error("RTL text plugin already registered.");u.applyArabicShaping=t.applyArabicShaping,u.processBidirectionalText=t.processBidirectionalText}}var l,c;return l=n,(c=[{key:"setLayers",value:function(t,e,n){this.getLayerIndex(t).replace(e),n()}},{key:"updateLayers",value:function(t,e,n){this.getLayerIndex(t).update(e.layers,e.removedIds),n()}},{key:"loadTile",value:function(t,e,n){s(e.type),this.getWorkerSource(t,e.type).loadTile(e,n)}},{key:"loadDEMTile",value:function(t,e,n){this.getDEMWorkerSource(t).loadTile(e,n)}},{key:"reloadTile",value:function(t,e,n){s(e.type),this.getWorkerSource(t,e.type).reloadTile(e,n)}},{key:"abortTile",value:function(t,e,n){s(e.type),this.getWorkerSource(t,e.type).abortTile(e,n)}},{key:"removeTile",value:function(t,e,n){s(e.type),this.getWorkerSource(t,e.type).removeTile(e,n)}},{key:"removeDEMTile",value:function(t,e){this.getDEMWorkerSource(t).removeTile(e)}},{key:"removeSource",value:function(t,e,n){s(e.type);var r=this.getWorkerSource(t,e.type);void 0!==r.removeSource?r.removeSource(e,n):n()}},{key:"loadWorkerSource",value:function(t,e,n){try{this.self.importScripts(e.url),n()}catch(t){n(t)}}},{key:"loadRTLTextPlugin",value:function(t,e,n){try{u.applyArabicShaping||u.processBidirectionalText||(this.self.importScripts(e),u.applyArabicShaping&&u.processBidirectionalText||n(new Error("RTL Text Plugin failed to import scripts from ".concat(e))))}catch(t){n(t)}}},{key:"getLayerIndex",value:function(t){var e=this.layerIndexes[t];return e||(e=this.layerIndexes[t]=new r),e}},{key:"getWorkerSource",value:function(t,e){var n=this;if(this.workerSources[t]||(this.workerSources[t]={}),!this.workerSources[t][e]){var r={send:function(e,r,i){n.actor.send(e,r,i,t)}};this.workerSources[t][e]=new this.workerSourceTypes[e](r,this.getLayerIndex(t))}return this.workerSources[t][e]}},{key:"getDEMWorkerSource",value:function(t){return this.demWorkerSources[t]||(this.demWorkerSources[t]=new o),this.demWorkerSources[t]}}])&&t(l.prototype,c),Object.defineProperty(l,"prototype",{writable:!1}),n}())(self)}()}();\n//# sourceMappingURL=d179b5c18890f1583797.worker.js.map',null)}},9855:function(o){var i=window.URL||window.webkitURL;o.exports=function(a,l){try{try{var h;try{(h=new(window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder)).append(a),h=h.getBlob()}catch{h=new Blob([a])}return new Worker(i.createObjectURL(h))}catch{return new Worker("data:application/javascript,"+encodeURIComponent(a))}}catch{if(!l)throw Error("Inline worker is not supported");return new Worker(l)}}},8620:function(o,i,a){function l(u,y,v,g,m,p){return p=p||{},u+"?"+["bbox="+h(v,g,m),"format="+(p.format||"image/png"),"service="+(p.service||"WMS"),"version="+(p.version||"1.1.1"),"request="+(p.request||"GetMap"),"srs="+(p.srs||"EPSG:3857"),"width="+(p.width||256),"height="+(p.height||256),"layers="+y].join("&")}function h(u,y,v){var g=f(256*u,256*(y=Math.pow(2,v)-y-1),v),m=f(256*(u+1),256*(y+1),v);return g[0]+","+g[1]+","+m[0]+","+m[1]}function f(u,y,v){var g=2*Math.PI*6378137/256/Math.pow(2,v);return[u*g-2*Math.PI*6378137/2,y*g-2*Math.PI*6378137/2]}a.r(i),a.d(i,{getMercCoords:function(){return f},getTileBBox:function(){return h},getURL:function(){return l}})},4147:function(o){o.exports={i8:"0.3.4"}},556:function(o){o.exports=JSON.parse('{"$version":8,"$root":{"version":{"required":true,"type":"enum","values":[8],"doc":"Style specification version number. Must be 8.","example":8},"name":{"type":"string","doc":"A human-readable name for the style.","example":"Bright"},"metadata":{"type":"*","doc":"Arbitrary properties useful to track with the stylesheet, but do not influence rendering. Properties should be prefixed to avoid collisions, like \'mapbox:\'."},"center":{"type":"array","value":"number","doc":"Default map center in longitude and latitude. The style center will be used only if the map has not been positioned by other means (e.g. map options or user interaction).","example":[-73.9749,40.7736]},"zoom":{"type":"number","doc":"Default zoom level. The style zoom will be used only if the map has not been positioned by other means (e.g. map options or user interaction).","example":12.5},"bearing":{"type":"number","default":0,"period":360,"units":"degrees","doc":"Default bearing, in degrees. The bearing is the compass direction that is \\"up\\"; for example, a bearing of 90° orients the map so that east is up. This value will be used only if the map has not been positioned by other means (e.g. map options or user interaction).","example":29},"pitch":{"type":"number","default":0,"units":"degrees","doc":"Default pitch, in degrees. Zero is perpendicular to the surface, for a look straight down at the map, while a greater value like 60 looks ahead towards the horizon. The style pitch will be used only if the map has not been positioned by other means (e.g. map options or user interaction).","example":50},"light":{"type":"light","doc":"The global light source.","example":{"anchor":"viewport","color":"white","intensity":0.4}},"sources":{"required":true,"type":"sources","doc":"Data source specifications.","example":{"mapbox-streets":{"type":"vector","url":"mapbox://mapbox.mapbox-streets-v6"}}},"sprite":{"type":"string","doc":"A base URL for retrieving the sprite image and metadata. The extensions `.png`, `.json` and scale factor `@2x.png` will be automatically appended. This property is required if any layer uses the `background-pattern`, `fill-pattern`, `line-pattern`, `fill-extrusion-pattern`, or `icon-image` properties.","example":"mapbox://sprites/mapbox/bright-v8"},"glyphs":{"type":"string","doc":"A URL template for loading signed-distance-field glyph sets in PBF format. The URL must include `{fontstack}` and `{range}` tokens. This property is required if any layer uses the `text-field` layout property.","example":"mapbox://fonts/mapbox/{fontstack}/{range}.pbf"},"transition":{"type":"transition","doc":"A global transition definition to use as a default across properties.","example":{"duration":300,"delay":0}},"layers":{"required":true,"type":"array","value":"layer","doc":"Layers will be drawn in the order of this array.","example":[{"id":"water","source":"mapbox-streets","source-layer":"water","type":"fill","paint":{"fill-color":"#00ffff"}}]}},"sources":{"*":{"type":"source","doc":"Specification of a data source. For vector and raster sources, either TileJSON or a URL to a TileJSON must be provided. For image and video sources, a URL must be provided. For GeoJSON sources, a URL or inline GeoJSON must be provided."}},"source":["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image","source_canvas"],"source_vector":{"type":{"required":true,"type":"enum","values":{"vector":{"doc":"A vector tile source."}},"doc":"The type of the source."},"url":{"type":"string","doc":"A URL to a TileJSON resource. Supported protocols are `http:`, `https:`, and `mapbox://<mapid>`."},"tiles":{"type":"array","value":"string","doc":"An array of one or more tile source URLs, as in the TileJSON spec."},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.0511,180,85.0511],"doc":"An array containing the longitude and latitude of the southwest and northeast corners of the source\'s bounding box in the following order: `[sw.lng, sw.lat, ne.lng, ne.lat]`. When this property is included in a source, no tiles outside of the given bounds are requested by Mapbox GL."},"minzoom":{"type":"number","default":0,"doc":"Minimum zoom level for which tiles are available, as in the TileJSON spec."},"maxzoom":{"type":"number","default":22,"doc":"Maximum zoom level for which tiles are available, as in the TileJSON spec. Data from tiles at the maxzoom are used when displaying the map at higher zoom levels."},"attribution":{"type":"string","doc":"Contains an attribution to be displayed when the map is shown to a user."},"*":{"type":"*","doc":"Other keys to configure the data source."}},"source_raster":{"type":{"required":true,"type":"enum","values":{"raster":{"doc":"A raster tile source."}},"doc":"The type of the source."},"url":{"type":"string","doc":"A URL to a TileJSON resource. Supported protocols are `http:`, `https:`, and `mapbox://<mapid>`."},"tiles":{"type":"array","value":"string","doc":"An array of one or more tile source URLs, as in the TileJSON spec."},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.0511,180,85.0511],"doc":"An array containing the longitude and latitude of the southwest and northeast corners of the source\'s bounding box in the following order: `[sw.lng, sw.lat, ne.lng, ne.lat]`. When this property is included in a source, no tiles outside of the given bounds are requested by Mapbox GL."},"minzoom":{"type":"number","default":0,"doc":"Minimum zoom level for which tiles are available, as in the TileJSON spec."},"maxzoom":{"type":"number","default":22,"doc":"Maximum zoom level for which tiles are available, as in the TileJSON spec. Data from tiles at the maxzoom are used when displaying the map at higher zoom levels."},"tileSize":{"type":"number","default":512,"units":"pixels","doc":"The minimum visual size to display tiles for this layer. Only configurable for raster layers."},"scheme":{"type":"enum","values":{"xyz":{"doc":"Slippy map tilenames scheme."},"tms":{"doc":"OSGeo spec scheme."}},"default":"xyz","doc":"Influences the y direction of the tile coordinates. The global-mercator (aka Spherical Mercator) profile is assumed."},"attribution":{"type":"string","doc":"Contains an attribution to be displayed when the map is shown to a user."},"*":{"type":"*","doc":"Other keys to configure the data source."}},"source_raster_dem":{"type":{"required":true,"type":"enum","values":{"raster-dem":{"doc":"A raster DEM source using Mapbox Terrain RGB"}},"doc":"The type of the source."},"url":{"type":"string","doc":"A URL to a TileJSON resource. Supported protocols are `http:`, `https:`, and `mapbox://<mapid>`."},"tiles":{"type":"array","value":"string","doc":"An array of one or more tile source URLs, as in the TileJSON spec."},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.0511,180,85.0511],"doc":"An array containing the longitude and latitude of the southwest and northeast corners of the source\'s bounding box in the following order: `[sw.lng, sw.lat, ne.lng, ne.lat]`. When this property is included in a source, no tiles outside of the given bounds are requested by Mapbox GL."},"minzoom":{"type":"number","default":0,"doc":"Minimum zoom level for which tiles are available, as in the TileJSON spec."},"maxzoom":{"type":"number","default":22,"doc":"Maximum zoom level for which tiles are available, as in the TileJSON spec. Data from tiles at the maxzoom are used when displaying the map at higher zoom levels."},"tileSize":{"type":"number","default":512,"units":"pixels","doc":"The minimum visual size to display tiles for this layer. Only configurable for raster layers."},"attribution":{"type":"string","doc":"Contains an attribution to be displayed when the map is shown to a user."},"*":{"type":"*","doc":"Other keys to configure the data source."}},"source_geojson":{"type":{"required":true,"type":"enum","values":{"geojson":{"doc":"A GeoJSON data source."}},"doc":"The data type of the GeoJSON source."},"data":{"type":"*","doc":"A URL to a GeoJSON file, or inline GeoJSON."},"maxzoom":{"type":"number","default":18,"doc":"Maximum zoom level at which to create vector tiles (higher means greater detail at high zoom levels)."},"buffer":{"type":"number","default":128,"maximum":512,"minimum":0,"doc":"Size of the tile buffer on each side. A value of 0 produces no buffer. A value of 512 produces a buffer as wide as the tile itself. Larger values produce fewer rendering artifacts near tile edges and slower performance."},"tolerance":{"type":"number","default":0.375,"doc":"Douglas-Peucker simplification tolerance (higher means simpler geometries and faster performance)."},"cluster":{"type":"boolean","default":false,"doc":"If the data is a collection of point features, setting this to true clusters the points by radius into groups."},"clusterRadius":{"type":"number","default":50,"minimum":0,"doc":"Radius of each cluster if clustering is enabled. A value of 512 indicates a radius equal to the width of a tile."},"clusterMaxZoom":{"type":"number","doc":"Max zoom on which to cluster points if clustering is enabled. Defaults to one zoom less than maxzoom (so that last zoom features are not clustered)."}},"source_video":{"type":{"required":true,"type":"enum","values":{"video":{"doc":"A video data source."}},"doc":"The data type of the video source."},"urls":{"required":true,"type":"array","value":"string","doc":"URLs to video content in order of preferred format."},"coordinates":{"required":true,"doc":"Corners of video specified in longitude, latitude pairs.","type":"array","length":4,"value":{"type":"array","length":2,"value":"number","doc":"A single longitude, latitude pair."}}},"source_image":{"type":{"required":true,"type":"enum","values":{"image":{"doc":"An image data source."}},"doc":"The data type of the image source."},"url":{"required":true,"type":"string","doc":"URL that points to an image."},"coordinates":{"required":true,"doc":"Corners of image specified in longitude, latitude pairs.","type":"array","length":4,"value":{"type":"array","length":2,"value":"number","doc":"A single longitude, latitude pair."}}},"source_canvas":{"type":{"required":true,"type":"enum","values":{"canvas":{"doc":"A canvas data source."}},"doc":"The data type of the canvas source."},"coordinates":{"required":true,"doc":"Corners of canvas specified in longitude, latitude pairs.","type":"array","length":4,"value":{"type":"array","length":2,"value":"number","doc":"A single longitude, latitude pair."}},"animate":{"type":"boolean","default":"true","doc":"Whether the canvas source is animated. If the canvas is static, `animate` should be set to `false` to improve performance."},"canvas":{"type":"string","required":true,"doc":"HTML ID of the canvas from which to read pixels."}},"layer":{"id":{"type":"string","doc":"Unique layer name.","required":true},"type":{"type":"enum","values":{"fill":{"doc":"A filled polygon with an optional stroked border.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"}}},"line":{"doc":"A stroked line.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"}}},"symbol":{"doc":"An icon or a text label.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"}}},"circle":{"doc":"A filled circle.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"}}},"heatmap":{"doc":"A heatmap.","sdk-support":{"basic functionality":{"js":"0.41.0"}}},"fill-extrusion":{"doc":"An extruded (3D) polygon.","sdk-support":{"basic functionality":{"js":"0.27.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"}}},"raster":{"doc":"Raster map textures such as satellite imagery.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"}}},"hillshade":{"doc":"Client-side hillshading visualization based on DEM data. Currently, the implementation only supports Mapbox Terrain RGB tiles","sdk-support":{"basic functionality":{"js":"0.43.0"}}},"background":{"doc":"The background color or pattern of the map.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"}}}},"doc":"Rendering type of this layer.","required":true},"metadata":{"type":"*","doc":"Arbitrary properties useful to track with the layer, but do not influence rendering. Properties should be prefixed to avoid collisions, like \'mapbox:\'."},"source":{"type":"string","doc":"Name of a source description to be used for this layer. Required for all layer types except `background`."},"source-layer":{"type":"string","doc":"Layer to use from a vector tile source. Required for vector tile sources; prohibited for all other source types, including GeoJSON sources."},"minzoom":{"type":"number","minimum":0,"maximum":24,"doc":"The minimum zoom level on which the layer gets parsed and appears on."},"maxzoom":{"type":"number","minimum":0,"maximum":24,"doc":"The maximum zoom level on which the layer gets parsed and appears on."},"filter":{"type":"filter","doc":"A expression specifying conditions on source features. Only features that match the filter are displayed."},"layout":{"type":"layout","doc":"Layout properties for the layer."},"paint":{"type":"paint","doc":"Default paint properties for this layer."}},"layout":["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],"layout_background":{"visibility":{"type":"enum","values":{"visible":{"doc":"The layer is shown."},"none":{"doc":"The layer is not shown."}},"default":"visible","doc":"Whether this layer is displayed.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"}}}},"layout_fill":{"visibility":{"type":"enum","values":{"visible":{"doc":"The layer is shown."},"none":{"doc":"The layer is not shown."}},"default":"visible","doc":"Whether this layer is displayed.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"}}}},"layout_circle":{"visibility":{"type":"enum","values":{"visible":{"doc":"The layer is shown."},"none":{"doc":"The layer is not shown."}},"default":"visible","doc":"Whether this layer is displayed.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"}}}},"layout_heatmap":{"visibility":{"type":"enum","values":{"visible":{"doc":"The layer is shown."},"none":{"doc":"The layer is not shown."}},"default":"visible","doc":"Whether this layer is displayed.","sdk-support":{"basic functionality":{"js":"0.41.0"}}}},"layout_fill-extrusion":{"visibility":{"type":"enum","values":{"visible":{"doc":"The layer is shown."},"none":{"doc":"The layer is not shown."}},"default":"visible","doc":"Whether this layer is displayed.","sdk-support":{"basic functionality":{"js":"0.27.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"}}}},"layout_line":{"line-cap":{"type":"enum","function":"piecewise-constant","zoom-function":true,"values":{"butt":{"doc":"A cap with a squared-off end which is drawn to the exact endpoint of the line."},"round":{"doc":"A cap with a rounded end which is drawn beyond the endpoint of the line at a radius of one-half of the line\'s width and centered on the endpoint of the line."},"square":{"doc":"A cap with a squared-off end which is drawn beyond the endpoint of the line at a distance of one-half of the line\'s width."}},"default":"butt","doc":"The display of line endings.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"line-join":{"type":"enum","function":"piecewise-constant","zoom-function":true,"property-function":true,"values":{"bevel":{"doc":"A join with a squared-off end which is drawn beyond the endpoint of the line at a distance of one-half of the line\'s width."},"round":{"doc":"A join with a rounded end which is drawn beyond the endpoint of the line at a radius of one-half of the line\'s width and centered on the endpoint of the line."},"miter":{"doc":"A join with a sharp, angled corner which is drawn with the outer sides beyond the endpoint of the path until they meet."}},"default":"miter","doc":"The display of lines when joining.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.40.0","android":"5.2.0","ios":"3.7.0","macos":"0.6.0"}}},"line-miter-limit":{"type":"number","default":2,"function":"interpolated","zoom-function":true,"doc":"Used to automatically convert miter joins to bevel joins for sharp angles.","requires":[{"line-join":"miter"}],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"line-round-limit":{"type":"number","default":1.05,"function":"interpolated","zoom-function":true,"doc":"Used to automatically convert round joins to miter joins for shallow angles.","requires":[{"line-join":"round"}],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"visibility":{"type":"enum","values":{"visible":{"doc":"The layer is shown."},"none":{"doc":"The layer is not shown."}},"default":"visible","doc":"Whether this layer is displayed.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}}},"layout_symbol":{"symbol-placement":{"type":"enum","function":"piecewise-constant","zoom-function":true,"values":{"point":{"doc":"The label is placed at the point where the geometry is located."},"line":{"doc":"The label is placed along the line of the geometry. Can only be used on `LineString` and `Polygon` geometries."}},"default":"point","doc":"Label placement relative to its geometry.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"symbol-spacing":{"type":"number","default":250,"minimum":1,"function":"interpolated","zoom-function":true,"units":"pixels","doc":"Distance between two symbol anchors.","requires":[{"symbol-placement":"line"}],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"symbol-avoid-edges":{"type":"boolean","function":"piecewise-constant","zoom-function":true,"default":false,"doc":"If true, the symbols will not cross tile edges to avoid mutual collisions. Recommended in layers that don\'t have enough padding in the vector tile to prevent collisions, or if it is a point symbol layer placed after a line symbol layer.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"icon-allow-overlap":{"type":"boolean","function":"piecewise-constant","zoom-function":true,"default":false,"doc":"If true, the icon will be visible even if it collides with other previously drawn symbols.","requires":["icon-image"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"icon-ignore-placement":{"type":"boolean","function":"piecewise-constant","zoom-function":true,"default":false,"doc":"If true, other symbols can be visible even if they collide with the icon.","requires":["icon-image"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"icon-optional":{"type":"boolean","function":"piecewise-constant","zoom-function":true,"default":false,"doc":"If true, text will display without their corresponding icons when the icon collides with other symbols and the text does not.","requires":["icon-image","text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"icon-rotation-alignment":{"type":"enum","function":"piecewise-constant","zoom-function":true,"values":{"map":{"doc":"When `symbol-placement` is set to `point`, aligns icons east-west. When `symbol-placement` is set to `line`, aligns icon x-axes with the line."},"viewport":{"doc":"Produces icons whose x-axes are aligned with the x-axis of the viewport, regardless of the value of `symbol-placement`."},"auto":{"doc":"When `symbol-placement` is set to `point`, this is equivalent to `viewport`. When `symbol-placement` is set to `line`, this is equivalent to `map`."}},"default":"auto","doc":"In combination with `symbol-placement`, determines the rotation behavior of icons.","requires":["icon-image"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"`auto` value":{"js":"0.25.0","android":"4.2.0","ios":"3.4.0","macos":"0.3.0"},"data-driven styling":{}}},"icon-size":{"type":"number","default":1,"minimum":0,"function":"interpolated","zoom-function":true,"property-function":true,"units":"factor of the original icon size","doc":"Scales the original size of the icon by the provided factor. The new pixel size of the image will be the original pixel size multiplied by `icon-size`. 1 is the original size; 3 triples the size of the image.","requires":["icon-image"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.35.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"}}},"icon-text-fit":{"type":"enum","function":"piecewise-constant","zoom-function":true,"values":{"none":{"doc":"The icon is displayed at its intrinsic aspect ratio."},"width":{"doc":"The icon is scaled in the x-dimension to fit the width of the text."},"height":{"doc":"The icon is scaled in the y-dimension to fit the height of the text."},"both":{"doc":"The icon is scaled in both x- and y-dimensions."}},"default":"none","doc":"Scales the icon to fit around the associated text.","requires":["icon-image","text-field"],"sdk-support":{"basic functionality":{"js":"0.21.0","android":"4.2.0","ios":"3.4.0","macos":"0.2.1"},"data-driven styling":{}}},"icon-text-fit-padding":{"type":"array","value":"number","length":4,"default":[0,0,0,0],"units":"pixels","function":"interpolated","zoom-function":true,"doc":"Size of the additional area added to dimensions determined by `icon-text-fit`, in clockwise order: top, right, bottom, left.","requires":["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],"sdk-support":{"basic functionality":{"js":"0.21.0","android":"4.2.0","ios":"3.4.0","macos":"0.2.1"},"data-driven styling":{}}},"icon-image":{"type":"string","function":"piecewise-constant","zoom-function":true,"property-function":true,"doc":"Name of image in sprite to use for drawing an image background. Within literal values and zoom functions, property names enclosed in curly brackets (e.g. `{token}`) are replaced with the value of the named property. Expressions and property functions do not support this syntax; for equivalent functionality in expressions, use the [`concat`](#expressions-concat) and [`get`](#expressions-get) operators.","tokens":true,"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.35.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"}}},"icon-rotate":{"type":"number","default":0,"period":360,"function":"interpolated","zoom-function":true,"property-function":true,"units":"degrees","doc":"Rotates the icon clockwise.","requires":["icon-image"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.21.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"icon-padding":{"type":"number","default":2,"minimum":0,"function":"interpolated","zoom-function":true,"units":"pixels","doc":"Size of the additional area around the icon bounding box used for detecting symbol collisions.","requires":["icon-image"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"icon-keep-upright":{"type":"boolean","function":"piecewise-constant","zoom-function":true,"default":false,"doc":"If true, the icon may be flipped to prevent it from being rendered upside-down.","requires":["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":"line"}],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"icon-offset":{"type":"array","value":"number","length":2,"default":[0,0],"function":"interpolated","zoom-function":true,"property-function":true,"doc":"Offset distance of icon from its anchor. Positive values indicate right and down, while negative values indicate left and up. Each component is multiplied by the value of `icon-size` to obtain the final offset in pixels. When combined with `icon-rotate` the offset will be as if the rotated direction was up.","requires":["icon-image"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.29.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"icon-anchor":{"type":"enum","function":"piecewise-constant","zoom-function":true,"property-function":true,"values":{"center":{"doc":"The center of the icon is placed closest to the anchor."},"left":{"doc":"The left side of the icon is placed closest to the anchor."},"right":{"doc":"The right side of the icon is placed closest to the anchor."},"top":{"doc":"The top of the icon is placed closest to the anchor."},"bottom":{"doc":"The bottom of the icon is placed closest to the anchor."},"top-left":{"doc":"The top left corner of the icon is placed closest to the anchor."},"top-right":{"doc":"The top right corner of the icon is placed closest to the anchor."},"bottom-left":{"doc":"The bottom left corner of the icon is placed closest to the anchor."},"bottom-right":{"doc":"The bottom right corner of the icon is placed closest to the anchor."}},"default":"center","doc":"Part of the icon placed closest to the anchor.","requires":["icon-image"],"sdk-support":{"basic functionality":{"js":"0.40.0","android":"5.2.0","ios":"3.7.0","macos":"0.6.0"},"data-driven styling":{"js":"0.40.0","android":"5.2.0","ios":"3.7.0","macos":"0.6.0"}}},"icon-pitch-alignment":{"type":"enum","function":"piecewise-constant","zoom-function":true,"values":{"map":{"doc":"The icon is aligned to the plane of the map."},"viewport":{"doc":"The icon is aligned to the plane of the viewport."},"auto":{"doc":"Automatically matches the value of `icon-rotation-alignment`."}},"default":"auto","doc":"Orientation of icon when map is pitched.","requires":["icon-image"],"sdk-support":{"basic functionality":{"js":"0.39.0","android":"5.2.0","ios":"3.7.0","macos":"0.6.0"},"data-driven styling":{}}},"text-pitch-alignment":{"type":"enum","function":"piecewise-constant","zoom-function":true,"values":{"map":{"doc":"The text is aligned to the plane of the map."},"viewport":{"doc":"The text is aligned to the plane of the viewport."},"auto":{"doc":"Automatically matches the value of `text-rotation-alignment`."}},"default":"auto","doc":"Orientation of text when map is pitched.","requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.21.0","android":"4.2.0","ios":"3.4.0","macos":"0.2.1"},"`auto` value":{"js":"0.25.0","android":"4.2.0","ios":"3.4.0","macos":"0.3.0"},"data-driven styling":{}}},"text-rotation-alignment":{"type":"enum","function":"piecewise-constant","zoom-function":true,"values":{"map":{"doc":"When `symbol-placement` is set to `point`, aligns text east-west. When `symbol-placement` is set to `line`, aligns text x-axes with the line."},"viewport":{"doc":"Produces glyphs whose x-axes are aligned with the x-axis of the viewport, regardless of the value of `symbol-placement`."},"auto":{"doc":"When `symbol-placement` is set to `point`, this is equivalent to `viewport`. When `symbol-placement` is set to `line`, this is equivalent to `map`."}},"default":"auto","doc":"In combination with `symbol-placement`, determines the rotation behavior of the individual glyphs forming the text.","requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"`auto` value":{"js":"0.25.0","android":"4.2.0","ios":"3.4.0","macos":"0.3.0"},"data-driven styling":{}}},"text-field":{"type":"string","function":"piecewise-constant","zoom-function":true,"property-function":true,"default":"","tokens":true,"doc":"Value to use for a text label. Within literal values and zoom functions, property names enclosed in curly brackets (e.g. `{token}`) are replaced with the value of the named property. Expressions and property functions do not support this syntax; for equivalent functionality in expressions, use the [`concat`](#expressions-concat) and [`get`](#expressions-get) operators.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.33.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"text-font":{"type":"array","value":"string","function":"piecewise-constant","zoom-function":true,"property-function":true,"default":["Open Sans Regular","Arial Unicode MS Regular"],"doc":"Font stack to use for displaying text.","requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"text-size":{"type":"number","default":16,"minimum":0,"units":"pixels","function":"interpolated","zoom-function":true,"property-function":true,"doc":"Font size.","requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.35.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"}}},"text-max-width":{"type":"number","default":10,"minimum":0,"units":"ems","function":"interpolated","zoom-function":true,"property-function":true,"doc":"The maximum line width for text wrapping.","requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.40.0","android":"5.2.0","ios":"3.7.0","macos":"0.6.0"}}},"text-line-height":{"type":"number","default":1.2,"units":"ems","function":"interpolated","zoom-function":true,"doc":"Text leading value for multi-line text.","requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"text-letter-spacing":{"type":"number","default":0,"units":"ems","function":"interpolated","zoom-function":true,"property-function":true,"doc":"Text tracking amount.","requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.40.0","android":"5.2.0","ios":"3.7.0","macos":"0.6.0"}}},"text-justify":{"type":"enum","function":"piecewise-constant","zoom-function":true,"property-function":true,"values":{"left":{"doc":"The text is aligned to the left."},"center":{"doc":"The text is centered."},"right":{"doc":"The text is aligned to the right."}},"default":"center","doc":"Text justification options.","requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.39.0","android":"5.2.0","ios":"3.7.0","macos":"0.6.0"}}},"text-anchor":{"type":"enum","function":"piecewise-constant","zoom-function":true,"property-function":true,"values":{"center":{"doc":"The center of the text is placed closest to the anchor."},"left":{"doc":"The left side of the text is placed closest to the anchor."},"right":{"doc":"The right side of the text is placed closest to the anchor."},"top":{"doc":"The top of the text is placed closest to the anchor."},"bottom":{"doc":"The bottom of the text is placed closest to the anchor."},"top-left":{"doc":"The top left corner of the text is placed closest to the anchor."},"top-right":{"doc":"The top right corner of the text is placed closest to the anchor."},"bottom-left":{"doc":"The bottom left corner of the text is placed closest to the anchor."},"bottom-right":{"doc":"The bottom right corner of the text is placed closest to the anchor."}},"default":"center","doc":"Part of the text placed closest to the anchor.","requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.39.0","android":"5.2.0","ios":"3.7.0","macos":"0.6.0"}}},"text-max-angle":{"type":"number","default":45,"units":"degrees","function":"interpolated","zoom-function":true,"doc":"Maximum angle change between adjacent characters.","requires":["text-field",{"symbol-placement":"line"}],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"text-rotate":{"type":"number","default":0,"period":360,"units":"degrees","function":"interpolated","zoom-function":true,"property-function":true,"doc":"Rotates the text clockwise.","requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.35.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"}}},"text-padding":{"type":"number","default":2,"minimum":0,"units":"pixels","function":"interpolated","zoom-function":true,"doc":"Size of the additional area around the text bounding box used for detecting symbol collisions.","requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"text-keep-upright":{"type":"boolean","function":"piecewise-constant","zoom-function":true,"default":true,"doc":"If true, the text may be flipped vertically to prevent it from being rendered upside-down.","requires":["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":"line"}],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"text-transform":{"type":"enum","function":"piecewise-constant","zoom-function":true,"property-function":true,"values":{"none":{"doc":"The text is not altered."},"uppercase":{"doc":"Forces all letters to be displayed in uppercase."},"lowercase":{"doc":"Forces all letters to be displayed in lowercase."}},"default":"none","doc":"Specifies how to capitalize text, similar to the CSS `text-transform` property.","requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.33.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"text-offset":{"type":"array","doc":"Offset distance of text from its anchor. Positive values indicate right and down, while negative values indicate left and up.","value":"number","units":"ems","function":"interpolated","zoom-function":true,"property-function":true,"length":2,"default":[0,0],"requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.35.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"}}},"text-allow-overlap":{"type":"boolean","function":"piecewise-constant","zoom-function":true,"default":false,"doc":"If true, the text will be visible even if it collides with other previously drawn symbols.","requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"text-ignore-placement":{"type":"boolean","function":"piecewise-constant","zoom-function":true,"default":false,"doc":"If true, other symbols can be visible even if they collide with the text.","requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"text-optional":{"type":"boolean","function":"piecewise-constant","zoom-function":true,"default":false,"doc":"If true, icons will display without their corresponding text when the text collides with other symbols and the icon does not.","requires":["text-field","icon-image"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"visibility":{"type":"enum","values":{"visible":{"doc":"The layer is shown."},"none":{"doc":"The layer is not shown."}},"default":"visible","doc":"Whether this layer is displayed.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}}},"layout_raster":{"visibility":{"type":"enum","values":{"visible":{"doc":"The layer is shown."},"none":{"doc":"The layer is not shown."}},"default":"visible","doc":"Whether this layer is displayed.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}}},"layout_hillshade":{"visibility":{"type":"enum","values":{"visible":{"doc":"The layer is shown."},"none":{"doc":"The layer is not shown."}},"default":"visible","doc":"Whether this layer is displayed.","sdk-support":{"basic functionality":{"js":"0.43.0"},"data-driven styling":{}}}},"filter":{"type":"array","value":"*","doc":"A filter selects specific features from a layer."},"filter_operator":{"type":"enum","values":{"==":{"doc":"`[\\"==\\", key, value]` equality: `feature[key] = value`"},"!=":{"doc":"`[\\"!=\\", key, value]` inequality: `feature[key] ≠ value`"},">":{"doc":"`[\\">\\", key, value]` greater than: `feature[key] > value`"},">=":{"doc":"`[\\">=\\", key, value]` greater than or equal: `feature[key] ≥ value`"},"<":{"doc":"`[\\"<\\", key, value]` less than: `feature[key] < value`"},"<=":{"doc":"`[\\"<=\\", key, value]` less than or equal: `feature[key] ≤ value`"},"in":{"doc":"`[\\"in\\", key, v0, ..., vn]` set inclusion: `feature[key] ∈ {v0, ..., vn}`"},"!in":{"doc":"`[\\"!in\\", key, v0, ..., vn]` set exclusion: `feature[key] ∉ {v0, ..., vn}`"},"all":{"doc":"`[\\"all\\", f0, ..., fn]` logical `AND`: `f0 ∧ ... ∧ fn`"},"any":{"doc":"`[\\"any\\", f0, ..., fn]` logical `OR`: `f0 ∨ ... ∨ fn`"},"none":{"doc":"`[\\"none\\", f0, ..., fn]` logical `NOR`: `¬f0 ∧ ... ∧ ¬fn`"},"has":{"doc":"`[\\"has\\", key]` `feature[key]` exists"},"!has":{"doc":"`[\\"!has\\", key]` `feature[key]` does not exist"}},"doc":"The filter operator."},"geometry_type":{"type":"enum","values":{"Point":{"doc":"Filter to point geometries."},"LineString":{"doc":"Filter to line geometries."},"Polygon":{"doc":"Filter to polygon geometries."}},"doc":"The geometry type for the filter to select."},"function":{"expression":{"type":"expression","doc":"An expression."},"stops":{"type":"array","doc":"An array of stops.","value":"function_stop"},"base":{"type":"number","default":1,"minimum":0,"doc":"The exponential base of the interpolation curve. It controls the rate at which the result increases. Higher values make the result increase more towards the high end of the range. With `1` the stops are interpolated linearly."},"property":{"type":"string","doc":"The name of a feature property to use as the function input.","default":"$zoom"},"type":{"type":"enum","values":{"identity":{"doc":"Return the input value as the output value."},"exponential":{"doc":"Generate an output by interpolating between stops just less than and just greater than the function input."},"interval":{"doc":"Return the output value of the stop just less than the function input."},"categorical":{"doc":"Return the output value of the stop equal to the function input."}},"doc":"The interpolation strategy to use in function evaluation.","default":"exponential"},"colorSpace":{"type":"enum","values":{"rgb":{"doc":"Use the RGB color space to interpolate color values"},"lab":{"doc":"Use the LAB color space to interpolate color values."},"hcl":{"doc":"Use the HCL color space to interpolate color values, interpolating the Hue, Chroma, and Luminance channels individually."}},"doc":"The color space in which colors interpolated. Interpolating colors in perceptual color spaces like LAB and HCL tend to produce color ramps that look more consistent and produce colors that can be differentiated more easily than those interpolated in RGB space.","default":"rgb"},"default":{"type":"*","required":false,"doc":"A value to serve as a fallback function result when a value isn\'t otherwise available. It is used in the following circumstances:\\n* In categorical functions, when the feature value does not match any of the stop domain values.\\n* In property and zoom-and-property functions, when a feature does not contain a value for the specified property.\\n* In identity functions, when the feature value is not valid for the style property (for example, if the function is being used for a `circle-color` property but the feature property value is not a string or not a valid color).\\n* In interval or exponential property and zoom-and-property functions, when the feature value is not numeric.\\nIf no default is provided, the style property\'s default is used in these circumstances."}},"function_stop":{"type":"array","minimum":0,"maximum":22,"value":["number","color"],"length":2,"doc":"Zoom level and value pair."},"expression":{"type":"array","value":"*","minimum":1,"doc":"An expression defines a function that can be used for data-driven style properties or feature filters."},"expression_name":{"doc":"","type":"enum","values":{"let":{"doc":"Binds expressions to named variables, which can then be referenced in the result expression using [\\"var\\", \\"variable_name\\"].","group":"Variable binding"},"var":{"doc":"References variable bound using \\"let\\".","group":"Variable binding"},"literal":{"doc":"Provides a literal array or object value.","group":"Types"},"array":{"doc":"Asserts that the input is an array (optionally with a specific item type and length). If, when the input expression is evaluated, it is not of the asserted type, then this assertion will cause the whole expression to be aborted.","group":"Types"},"at":{"doc":"Retrieves an item from an array.","group":"Lookup"},"case":{"doc":"Selects the first output whose corresponding test condition evaluates to true.","group":"Decision"},"match":{"doc":"Selects the output whose label value matches the input value, or the fallback value if no match is found. The `input` can be any string or number expression (e.g. `[\\"get\\", \\"building_type\\"]`). Each label can either be a single literal value or an array of values.","group":"Decision"},"coalesce":{"doc":"Evaluates each expression in turn until the first non-null value is obtained, and returns that value.","group":"Decision"},"step":{"doc":"Produces discrete, stepped results by evaluating a piecewise-constant function defined by pairs of input and output values (\\"stops\\"). The `input` may be any numeric expression (e.g., `[\\"get\\", \\"population\\"]`). Stop inputs must be numeric literals in strictly ascending order. Returns the output value of the stop just less than the input, or the first input if the input is less than the first stop.","group":"Ramps, scales, curves"},"interpolate":{"doc":"Produces continuous, smooth results by interpolating between pairs of input and output values (\\"stops\\"). The `input` may be any numeric expression (e.g., `[\\"get\\", \\"population\\"]`). Stop inputs must be numeric literals in strictly ascending order. The output type must be `number`, `array<number>`, or `color`.\\n\\nInterpolation types:\\n- `[\\"linear\\"]`: interpolates linearly between the pair of stops just less than and just greater than the input.\\n- `[\\"exponential\\", base]`: interpolates exponentially between the stops just less than and just greater than the input. `base` controls the rate at which the output increases: higher values make the output increase more towards the high end of the range. With values close to 1 the output increases linearly.\\n- `[\\"cubic-bezier\\", x1, y1, x2, y2]`: interpolates using the cubic bezier curve defined by the given control points.","group":"Ramps, scales, curves"},"ln2":{"doc":"Returns mathematical constant ln(2).","group":"Math"},"pi":{"doc":"Returns the mathematical constant pi.","group":"Math"},"e":{"doc":"Returns the mathematical constant e.","group":"Math"},"typeof":{"doc":"Returns a string describing the type of the given value.","group":"Types"},"string":{"doc":"Asserts that the input value is a string. If multiple values are provided, each one is evaluated in order until a string value is obtained. If none of the inputs are strings, the expression is an error.","group":"Types"},"number":{"doc":"Asserts that the input value is a number. If multiple values are provided, each one is evaluated in order until a number value is obtained. If none of the inputs are numbers, the expression is an error.","group":"Types"},"boolean":{"doc":"Asserts that the input value is a boolean. If multiple values are provided, each one is evaluated in order until a boolean value is obtained. If none of the inputs are booleans, the expression is an error.","group":"Types"},"object":{"doc":"Asserts that the input value is an object. If it is not, the expression is an error.","group":"Types"},"to-string":{"doc":"Converts the input value to a string. If the input is `null`, the result is `\\"null\\"`. If the input is a boolean, the result is `\\"true\\"` or `\\"false\\"`. If the input is a number, it is converted to a string as specified by the [\\"NumberToString\\" algorithm](https://tc39.github.io/ecma262/#sec-tostring-applied-to-the-number-type) of the ECMAScript Language Specification. If the input is a color, it is converted to a string of the form `\\"rgba(r,g,b,a)\\"`, where `r`, `g`, and `b` are numerals ranging from 0 to 255, and `a` ranges from 0 to 1. Otherwise, the input is converted to a string in the format specified by the [`JSON.stringify`](https://tc39.github.io/ecma262/#sec-json.stringify) function of the ECMAScript Language Specification.","group":"Types"},"to-number":{"doc":"Converts the input value to a number, if possible. If the input is `null` or `false`, the result is 0. If the input is `true`, the result is 1. If the input is a string, it is converted to a number as specified by the [\\"ToNumber Applied to the String Type\\" algorithm](https://tc39.github.io/ecma262/#sec-tonumber-applied-to-the-string-type) of the ECMAScript Language Specification. If multiple values are provided, each one is evaluated in order until the first successful conversion is obtained. If none of the inputs can be converted, the expression is an error.","group":"Types"},"to-boolean":{"doc":"Converts the input value to a boolean. The result is `false` when then input is an empty string, 0, `false`, `null`, or `NaN`; otherwise it is `true`.","group":"Types"},"to-rgba":{"doc":"Returns a four-element array containing the input color\'s red, green, blue, and alpha components, in that order.","group":"Color"},"to-color":{"doc":"Converts the input value to a color. If multiple values are provided, each one is evaluated in order until the first successful conversion is obtained. If none of the inputs can be converted, the expression is an error.","group":"Types"},"rgb":{"doc":"Creates a color value from red, green, and blue components, which must range between 0 and 255, and an alpha component of 1. If any component is out of range, the expression is an error.","group":"Color"},"rgba":{"doc":"Creates a color value from red, green, blue components, which must range between 0 and 255, and an alpha component which must range between 0 and 1. If any component is out of range, the expression is an error.","group":"Color"},"get":{"doc":"Retrieves a property value from the current feature\'s properties, or from another object if a second argument is provided. Returns null if the requested property is missing.","group":"Lookup"},"has":{"doc":"Tests for the presence of an property value in the current feature\'s properties, or from another object if a second argument is provided.","group":"Lookup"},"length":{"doc":"Gets the length of an array or string.","group":"Lookup"},"properties":{"doc":"Gets the feature properties object. Note that in some cases, it may be more efficient to use [\\"get\\", \\"property_name\\"] directly.","group":"Feature data"},"geometry-type":{"doc":"Gets the feature\'s geometry type: Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon.","group":"Feature data"},"id":{"doc":"Gets the feature\'s id, if it has one.","group":"Feature data"},"zoom":{"doc":"Gets the current zoom level. Note that in style layout and paint properties, [\\"zoom\\"] may only appear as the input to a top-level \\"step\\" or \\"interpolate\\" expression.","group":"Zoom"},"heatmap-density":{"doc":"Gets the kernel density estimation of a pixel in a heatmap layer, which is a relative measure of how many data points are crowded around a particular pixel. Can only be used in the `heatmap-color` property.","group":"Heatmap"},"+":{"doc":"Returns the sum of the inputs.","group":"Math"},"*":{"doc":"Returns the product of the inputs.","group":"Math"},"-":{"doc":"For two inputs, returns the result of subtracting the second input from the first. For a single input, returns the result of subtracting it from 0.","group":"Math"},"/":{"doc":"Returns the result of floating point division of the first input by the second.","group":"Math"},"%":{"doc":"Returns the remainder after integer division of the first input by the second.","group":"Math"},"^":{"doc":"Returns the result of raising the first input to the power specified by the second.","group":"Math"},"sqrt":{"doc":"Returns the square root of the input.","group":"Math"},"log10":{"doc":"Returns the base-ten logarithm of the input.","group":"Math"},"ln":{"doc":"Returns the natural logarithm of the input.","group":"Math"},"log2":{"doc":"Returns the base-two logarithm of the input.","group":"Math"},"sin":{"doc":"Returns the sine of the input.","group":"Math"},"cos":{"doc":"Returns the cosine of the input.","group":"Math"},"tan":{"doc":"Returns the tangent of the input.","group":"Math"},"asin":{"doc":"Returns the arcsine of the input.","group":"Math"},"acos":{"doc":"Returns the arccosine of the input.","group":"Math"},"atan":{"doc":"Returns the arctangent of the input.","group":"Math"},"min":{"doc":"Returns the minimum value of the inputs.","group":"Math"},"max":{"doc":"Returns the maximum value of the inputs.","group":"Math"},"==":{"doc":"Returns `true` if the input values are equal, `false` otherwise. The inputs must be numbers, strings, or booleans, and both of the same type.","group":"Decision"},"!=":{"doc":"Returns `true` if the input values are not equal, `false` otherwise. The inputs must be numbers, strings, or booleans, and both of the same type.","group":"Decision"},">":{"doc":"Returns `true` if the first input is strictly greater than the second, `false` otherwise. The inputs must be numbers or strings, and both of the same type.","group":"Decision"},"<":{"doc":"Returns `true` if the first input is strictly less than the second, `false` otherwise. The inputs must be numbers or strings, and both of the same type.","group":"Decision"},">=":{"doc":"Returns `true` if the first input is greater than or equal to the second, `false` otherwise. The inputs must be numbers or strings, and both of the same type.","group":"Decision"},"<=":{"doc":"Returns `true` if the first input is less than or equal to the second, `false` otherwise. The inputs must be numbers or strings, and both of the same type.","group":"Decision"},"all":{"doc":"Returns `true` if all the inputs are `true`, `false` otherwise. The inputs are evaluated in order, and evaluation is short-circuiting: once an input expression evaluates to `false`, the result is `false` and no further input expressions are evaluated.","group":"Decision"},"any":{"doc":"Returns `true` if any of the inputs are `true`, `false` otherwise. The inputs are evaluated in order, and evaluation is short-circuiting: once an input expression evaluates to `true`, the result is `true` and no further input expressions are evaluated.","group":"Decision"},"!":{"doc":"Logical negation. Returns `true` if the input is `false`, and `false` if the input is `true`.","group":"Decision"},"upcase":{"doc":"Returns the input string converted to uppercase. Follows the Unicode Default Case Conversion algorithm and the locale-insensitive case mappings in the Unicode Character Database.","group":"String"},"downcase":{"doc":"Returns the input string converted to lowercase. Follows the Unicode Default Case Conversion algorithm and the locale-insensitive case mappings in the Unicode Character Database.","group":"String"},"concat":{"doc":"Returns a string consisting of the concatenation of the inputs.","group":"String"}}},"light":{"anchor":{"type":"enum","default":"viewport","values":{"map":{"doc":"The position of the light source is aligned to the rotation of the map."},"viewport":{"doc":"The position of the light source is aligned to the rotation of the viewport."}},"transition":false,"zoom-function":true,"property-function":false,"function":"piecewise-constant","doc":"Whether extruded geometries are lit relative to the map or viewport.","example":"map","sdk-support":{"basic functionality":{"js":"0.27.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"}}},"position":{"type":"array","default":[1.15,210,30],"length":3,"value":"number","transition":true,"function":"interpolated","zoom-function":true,"property-function":false,"doc":"Position of the light source relative to lit (extruded) geometries, in [r radial coordinate, a azimuthal angle, p polar angle] where r indicates the distance from the center of the base of an object to its light, a indicates the position of the light relative to 0° (0° when `light.anchor` is set to `viewport` corresponds to the top of the viewport, or 0° when `light.anchor` is set to `map` corresponds to due north, and degrees proceed clockwise), and p indicates the height of the light (from 0°, directly above, to 180°, directly below).","example":[1.5,90,80],"sdk-support":{"basic functionality":{"js":"0.27.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"}}},"color":{"type":"color","default":"#ffffff","function":"interpolated","zoom-function":true,"property-function":false,"transition":true,"doc":"Color tint for lighting extruded geometries.","sdk-support":{"basic functionality":{"js":"0.27.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"}}},"intensity":{"type":"number","default":0.5,"minimum":0,"maximum":1,"function":"interpolated","zoom-function":true,"property-function":false,"transition":true,"doc":"Intensity of lighting (on a scale from 0 to 1). Higher numbers will present as more extreme contrast.","sdk-support":{"basic functionality":{"js":"0.27.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"}}}},"paint":["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],"paint_fill":{"fill-antialias":{"type":"boolean","function":"piecewise-constant","zoom-function":true,"default":true,"doc":"Whether or not the fill should be antialiased.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"fill-opacity":{"type":"number","function":"interpolated","zoom-function":true,"property-function":true,"default":1,"minimum":0,"maximum":1,"doc":"The opacity of the entire fill layer. In contrast to the `fill-color`, this value will also affect the 1px stroke around the fill, if the stroke is used.","transition":true,"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.21.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"fill-color":{"type":"color","default":"#000000","doc":"The color of the filled part of this layer. This color can be specified as `rgba` with an alpha component and the color\'s opacity will not affect the opacity of the 1px stroke, if it is used.","function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"requires":[{"!":"fill-pattern"}],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.19.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"fill-outline-color":{"type":"color","doc":"The outline color of the fill. Matches the value of `fill-color` if unspecified.","function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"requires":[{"!":"fill-pattern"},{"fill-antialias":true}],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.19.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"fill-translate":{"type":"array","value":"number","length":2,"default":[0,0],"function":"interpolated","zoom-function":true,"transition":true,"units":"pixels","doc":"The geometry\'s offset. Values are [x, y] where negatives indicate left and up, respectively.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"fill-translate-anchor":{"type":"enum","function":"piecewise-constant","zoom-function":true,"values":{"map":{"doc":"The fill is translated relative to the map."},"viewport":{"doc":"The fill is translated relative to the viewport."}},"doc":"Controls the frame of reference for `fill-translate`.","default":"map","requires":["fill-translate"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"fill-pattern":{"type":"string","function":"piecewise-constant","zoom-function":true,"transition":true,"doc":"Name of image in sprite to use for drawing image fills. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512).","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}}},"paint_fill-extrusion":{"fill-extrusion-opacity":{"type":"number","function":"interpolated","zoom-function":true,"property-function":false,"default":1,"minimum":0,"maximum":1,"doc":"The opacity of the entire fill extrusion layer. This is rendered on a per-layer, not per-feature, basis, and data-driven styling is not available.","transition":true,"sdk-support":{"basic functionality":{"js":"0.27.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"}}},"fill-extrusion-color":{"type":"color","default":"#000000","doc":"The base color of the extruded fill. The extrusion\'s surfaces will be shaded differently based on this color in combination with the root `light` settings. If this color is specified as `rgba` with an alpha component, the alpha component will be ignored; use `fill-extrusion-opacity` to set layer opacity.","function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"requires":[{"!":"fill-extrusion-pattern"}],"sdk-support":{"basic functionality":{"js":"0.27.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"},"data-driven styling":{"js":"0.27.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"}}},"fill-extrusion-translate":{"type":"array","value":"number","length":2,"default":[0,0],"function":"interpolated","zoom-function":true,"transition":true,"units":"pixels","doc":"The geometry\'s offset. Values are [x, y] where negatives indicate left and up (on the flat plane), respectively.","sdk-support":{"basic functionality":{"js":"0.27.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"},"data-driven styling":{}}},"fill-extrusion-translate-anchor":{"type":"enum","function":"piecewise-constant","zoom-function":true,"values":{"map":{"doc":"The fill extrusion is translated relative to the map."},"viewport":{"doc":"The fill extrusion is translated relative to the viewport."}},"doc":"Controls the frame of reference for `fill-extrusion-translate`.","default":"map","requires":["fill-extrusion-translate"],"sdk-support":{"basic functionality":{"js":"0.27.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"},"data-driven styling":{}}},"fill-extrusion-pattern":{"type":"string","function":"piecewise-constant","zoom-function":true,"transition":true,"doc":"Name of image in sprite to use for drawing images on extruded fills. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512).","sdk-support":{"basic functionality":{"js":"0.27.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"},"data-driven styling":{}}},"fill-extrusion-height":{"type":"number","function":"interpolated","zoom-function":true,"property-function":true,"default":0,"minimum":0,"units":"meters","doc":"The height with which to extrude this layer.","transition":true,"sdk-support":{"basic functionality":{"js":"0.27.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"},"data-driven styling":{"js":"0.27.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"}}},"fill-extrusion-base":{"type":"number","function":"interpolated","zoom-function":true,"property-function":true,"default":0,"minimum":0,"units":"meters","doc":"The height with which to extrude the base of this layer. Must be less than or equal to `fill-extrusion-height`.","transition":true,"requires":["fill-extrusion-height"],"sdk-support":{"basic functionality":{"js":"0.27.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"},"data-driven styling":{"js":"0.27.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"}}}},"paint_line":{"line-opacity":{"type":"number","doc":"The opacity at which the line will be drawn.","function":"interpolated","zoom-function":true,"property-function":true,"default":1,"minimum":0,"maximum":1,"transition":true,"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.29.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"line-color":{"type":"color","doc":"The color with which the line will be drawn.","default":"#000000","function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"requires":[{"!":"line-pattern"}],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.23.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"line-translate":{"type":"array","value":"number","length":2,"default":[0,0],"function":"interpolated","zoom-function":true,"transition":true,"units":"pixels","doc":"The geometry\'s offset. Values are [x, y] where negatives indicate left and up, respectively.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"line-translate-anchor":{"type":"enum","function":"piecewise-constant","zoom-function":true,"values":{"map":{"doc":"The line is translated relative to the map."},"viewport":{"doc":"The line is translated relative to the viewport."}},"doc":"Controls the frame of reference for `line-translate`.","default":"map","requires":["line-translate"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"line-width":{"type":"number","default":1,"minimum":0,"function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"units":"pixels","doc":"Stroke thickness.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.39.0"}}},"line-gap-width":{"type":"number","default":0,"minimum":0,"doc":"Draws a line casing outside of a line\'s actual path. Value indicates the width of the inner gap.","function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"units":"pixels","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.29.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"line-offset":{"type":"number","default":0,"doc":"The line\'s offset. For linear features, a positive value offsets the line to the right, relative to the direction of the line, and a negative value to the left. For polygon features, a positive value results in an inset, and a negative value results in an outset.","function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"units":"pixels","sdk-support":{"basic functionality":{"js":"0.12.1","android":"3.0.0","ios":"3.1.0","macos":"0.1.0"},"data-driven styling":{"js":"0.29.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"line-blur":{"type":"number","default":0,"minimum":0,"function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"units":"pixels","doc":"Blur applied to the line, in pixels.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.29.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"line-dasharray":{"type":"array","value":"number","function":"piecewise-constant","zoom-function":true,"doc":"Specifies the lengths of the alternating dashes and gaps that form the dash pattern. The lengths are later scaled by the line width. To convert a dash length to pixels, multiply the length by the current line width.","minimum":0,"transition":true,"units":"line widths","requires":[{"!":"line-pattern"}],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"line-pattern":{"type":"string","function":"piecewise-constant","zoom-function":true,"transition":true,"doc":"Name of image in sprite to use for drawing image lines. For seamless patterns, image width must be a factor of two (2, 4, 8, ..., 512).","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}}},"paint_circle":{"circle-radius":{"type":"number","default":5,"minimum":0,"function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"units":"pixels","doc":"Circle radius.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.18.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"circle-color":{"type":"color","default":"#000000","doc":"The fill color of the circle.","function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.18.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"circle-blur":{"type":"number","default":0,"doc":"Amount to blur the circle. 1 blurs the circle such that only the centerpoint is full opacity.","function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.20.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"circle-opacity":{"type":"number","doc":"The opacity at which the circle will be drawn.","default":1,"minimum":0,"maximum":1,"function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.20.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"circle-translate":{"type":"array","value":"number","length":2,"default":[0,0],"function":"interpolated","zoom-function":true,"transition":true,"units":"pixels","doc":"The geometry\'s offset. Values are [x, y] where negatives indicate left and up, respectively.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"circle-translate-anchor":{"type":"enum","function":"piecewise-constant","zoom-function":true,"values":{"map":{"doc":"The circle is translated relative to the map."},"viewport":{"doc":"The circle is translated relative to the viewport."}},"doc":"Controls the frame of reference for `circle-translate`.","default":"map","requires":["circle-translate"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"circle-pitch-scale":{"type":"enum","function":"piecewise-constant","zoom-function":true,"values":{"map":{"doc":"Circles are scaled according to their apparent distance to the camera."},"viewport":{"doc":"Circles are not scaled."}},"default":"map","doc":"Controls the scaling behavior of the circle when the map is pitched.","sdk-support":{"basic functionality":{"js":"0.21.0","android":"4.2.0","ios":"3.4.0","macos":"0.2.1"},"data-driven styling":{}}},"circle-pitch-alignment":{"type":"enum","function":"piecewise-constant","zoom-function":true,"values":{"map":{"doc":"The circle is aligned to the plane of the map."},"viewport":{"doc":"The circle is aligned to the plane of the viewport."}},"default":"viewport","doc":"Orientation of circle when map is pitched.","sdk-support":{"basic functionality":{"js":"0.39.0","android":"5.2.0","ios":"3.7.0","macos":"0.6.0"},"data-driven styling":{}}},"circle-stroke-width":{"type":"number","default":0,"minimum":0,"function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"units":"pixels","doc":"The width of the circle\'s stroke. Strokes are placed outside of the `circle-radius`.","sdk-support":{"basic functionality":{"js":"0.29.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"},"data-driven styling":{"js":"0.29.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"circle-stroke-color":{"type":"color","default":"#000000","doc":"The stroke color of the circle.","function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"sdk-support":{"basic functionality":{"js":"0.29.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"},"data-driven styling":{"js":"0.29.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"circle-stroke-opacity":{"type":"number","doc":"The opacity of the circle\'s stroke.","default":1,"minimum":0,"maximum":1,"function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"sdk-support":{"basic functionality":{"js":"0.29.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"},"data-driven styling":{"js":"0.29.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}}},"paint_heatmap":{"heatmap-radius":{"type":"number","default":30,"minimum":1,"function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"units":"pixels","doc":"Radius of influence of one heatmap point in pixels. Increasing the value makes the heatmap smoother, but less detailed.","sdk-support":{"basic functionality":{"js":"0.41.0"},"data-driven styling":{}}},"heatmap-weight":{"type":"number","default":1,"minimum":0,"function":"interpolated","zoom-function":true,"property-function":true,"transition":false,"doc":"A measure of how much an individual point contributes to the heatmap. A value of 10 would be equivalent to having 10 points of weight 1 in the same spot. Especially useful when combined with clustering.","sdk-support":{"basic functionality":{"js":"0.41.0"},"data-driven styling":{"js":"0.41.0"}}},"heatmap-intensity":{"type":"number","default":1,"minimum":0,"function":"interpolated","zoom-function":true,"property-function":false,"transition":true,"doc":"Similar to `heatmap-weight` but controls the intensity of the heatmap globally. Primarily used for adjusting the heatmap based on zoom level.","sdk-support":{"basic functionality":{"js":"0.41.0"},"data-driven styling":{}}},"heatmap-color":{"type":"color","default":["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",0.1,"royalblue",0.3,"cyan",0.5,"lime",0.7,"yellow",1,"red"],"doc":"Defines the color of each pixel based on its density value in a heatmap. Should be an expression that uses `[\\"heatmap-density\\"]` as input.","function":"interpolated","zoom-function":false,"property-function":false,"transition":false,"sdk-support":{"basic functionality":{"js":"0.41.0"},"data-driven styling":{}}},"heatmap-opacity":{"type":"number","doc":"The global opacity at which the heatmap layer will be drawn.","default":1,"minimum":0,"maximum":1,"function":"interpolated","zoom-function":true,"property-function":false,"transition":true,"sdk-support":{"basic functionality":{"js":"0.41.0"},"data-driven styling":{}}}},"paint_symbol":{"icon-opacity":{"doc":"The opacity at which the icon will be drawn.","type":"number","default":1,"minimum":0,"maximum":1,"function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"requires":["icon-image"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.33.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"icon-color":{"type":"color","default":"#000000","function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"doc":"The color of the icon. This can only be used with sdf icons.","requires":["icon-image"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.33.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"icon-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"doc":"The color of the icon\'s halo. Icon halos can only be used with SDF icons.","requires":["icon-image"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.33.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"icon-halo-width":{"type":"number","default":0,"minimum":0,"function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"units":"pixels","doc":"Distance of halo to the icon outline.","requires":["icon-image"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.33.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"icon-halo-blur":{"type":"number","default":0,"minimum":0,"function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"units":"pixels","doc":"Fade out the halo towards the outside.","requires":["icon-image"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.33.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"icon-translate":{"type":"array","value":"number","length":2,"default":[0,0],"function":"interpolated","zoom-function":true,"transition":true,"units":"pixels","doc":"Distance that the icon\'s anchor is moved from its original placement. Positive values indicate right and down, while negative values indicate left and up.","requires":["icon-image"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"icon-translate-anchor":{"type":"enum","function":"piecewise-constant","zoom-function":true,"values":{"map":{"doc":"Icons are translated relative to the map."},"viewport":{"doc":"Icons are translated relative to the viewport."}},"doc":"Controls the frame of reference for `icon-translate`.","default":"map","requires":["icon-image","icon-translate"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"text-opacity":{"type":"number","doc":"The opacity at which the text will be drawn.","default":1,"minimum":0,"maximum":1,"function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.33.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"text-color":{"type":"color","doc":"The color with which the text will be drawn.","default":"#000000","function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.33.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"text-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"doc":"The color of the text\'s halo, which helps it stand out from backgrounds.","requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.33.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"text-halo-width":{"type":"number","default":0,"minimum":0,"function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"units":"pixels","doc":"Distance of halo to the font outline. Max text halo width is 1/4 of the font-size.","requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.33.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"text-halo-blur":{"type":"number","default":0,"minimum":0,"function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"units":"pixels","doc":"The halo\'s fadeout distance towards the outside.","requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.33.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"text-translate":{"type":"array","value":"number","length":2,"default":[0,0],"function":"interpolated","zoom-function":true,"transition":true,"units":"pixels","doc":"Distance that the text\'s anchor is moved from its original placement. Positive values indicate right and down, while negative values indicate left and up.","requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"text-translate-anchor":{"type":"enum","function":"piecewise-constant","zoom-function":true,"values":{"map":{"doc":"The text is translated relative to the map."},"viewport":{"doc":"The text is translated relative to the viewport."}},"doc":"Controls the frame of reference for `text-translate`.","default":"map","requires":["text-field","text-translate"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}}},"paint_raster":{"raster-opacity":{"type":"number","doc":"The opacity at which the image will be drawn.","default":1,"minimum":0,"maximum":1,"function":"interpolated","zoom-function":true,"transition":true,"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"raster-hue-rotate":{"type":"number","default":0,"period":360,"function":"interpolated","zoom-function":true,"transition":true,"units":"degrees","doc":"Rotates hues around the color wheel.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"raster-brightness-min":{"type":"number","function":"interpolated","zoom-function":true,"doc":"Increase or reduce the brightness of the image. The value is the minimum brightness.","default":0,"minimum":0,"maximum":1,"transition":true,"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"raster-brightness-max":{"type":"number","function":"interpolated","zoom-function":true,"doc":"Increase or reduce the brightness of the image. The value is the maximum brightness.","default":1,"minimum":0,"maximum":1,"transition":true,"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"raster-saturation":{"type":"number","doc":"Increase or reduce the saturation of the image.","default":0,"minimum":-1,"maximum":1,"function":"interpolated","zoom-function":true,"transition":true,"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"raster-contrast":{"type":"number","doc":"Increase or reduce the contrast of the image.","default":0,"minimum":-1,"maximum":1,"function":"interpolated","zoom-function":true,"transition":true,"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"raster-fade-duration":{"type":"number","default":300,"minimum":0,"function":"interpolated","zoom-function":true,"transition":false,"units":"milliseconds","doc":"Fade duration when a new tile is added.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}}},"paint_hillshade":{"hillshade-illumination-direction":{"type":"number","default":335,"minimum":0,"maximum":359,"doc":"The direction of the light source used to generate the hillshading with 0 as the top of the viewport if `hillshade-illumination-anchor` is set to `viewport` and due north if `hillshade-illumination-anchor` is set to `map`.","function":"interpolated","zoom-function":true,"transition":false},"hillshade-illumination-anchor":{"type":"enum","function":"piecewise-constant","zoom-function":true,"values":{"map":{"doc":"The hillshade illumination is relative to the north direction."},"viewport":{"doc":"The hillshade illumination is relative to the top of the viewport."}},"default":"viewport","doc":"Direction of light source when map is rotated."},"hillshade-exaggeration":{"type":"number","doc":"Intensity of the hillshade","default":0.5,"minimum":0,"maximum":1,"function":"interpolated","zoom-function":true,"transition":true},"hillshade-shadow-color":{"type":"color","default":"#000000","doc":"The shading color of areas that face away from the light source.","function":"interpolated","zoom-function":true,"transition":true},"hillshade-highlight-color":{"type":"color","default":"#FFFFFF","doc":"The shading color of areas that faces towards the light source.","function":"interpolated","zoom-function":true,"transition":true},"hillshade-accent-color":{"type":"color","default":"#000000","doc":"The shading color used to accentuate rugged terrain like sharp cliffs and gorges.","function":"interpolated","zoom-function":true,"transition":true}},"paint_background":{"background-color":{"type":"color","default":"#000000","doc":"The color with which the background will be drawn.","function":"interpolated","zoom-function":true,"transition":true,"requires":[{"!":"background-pattern"}],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"}}},"background-pattern":{"type":"string","function":"piecewise-constant","zoom-function":true,"transition":true,"doc":"Name of image in sprite to use for drawing an image background. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512).","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"}}},"background-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"doc":"The opacity at which the background will be drawn.","function":"interpolated","zoom-function":true,"transition":true,"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"}}}},"transition":{"duration":{"type":"number","default":300,"minimum":0,"units":"milliseconds","doc":"Time allotted for transitions to complete."},"delay":{"type":"number","default":0,"minimum":0,"units":"milliseconds","doc":"Length of time before a transition begins."}}}')}},r={};function s(o){var i=r[o];if(i!==void 0)return i.exports;var a=r[o]={exports:{}};return e[o].call(a.exports,a,a.exports,s),a.exports}return s.d=function(o,i){for(var a in i)s.o(i,a)&&!s.o(o,a)&&Object.defineProperty(o,a,{enumerable:!0,get:i[a]})},s.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),s.o=function(o,i){return Object.prototype.hasOwnProperty.call(o,i)},s.r=function(o){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},s(5579)}()})}(Sy)),Sy.exports}var TN=PN();const BN=document.createElement("canvas");class Ey{constructor(n){N(this,"mapboxRenderer");N(this,"ready");N(this,"readyPromise");N(this,"rectangle");N(this,"tileSize");N(this,"tileWidth");N(this,"tileHeight");N(this,"maximumLevel");N(this,"minimumLevel");N(this,"tileDiscardPolicy");N(this,"credit");N(this,"proxy");N(this,"layerStyle");N(this,"hasAlphaChannel");N(this,"sourceFilter");N(this,"tilingScheme");N(this,"_destroyed",!1);N(this,"_error");N(this,"_style");N(this,"_accessToken");N(this,"_enablePickFeatures");this.ready=!1,this.tilingScheme=n.tilingScheme??new Me.WebMercatorTilingScheme,this.rectangle=n.rectangle??this.tilingScheme.rectangle,this.rectangle=Me.Rectangle.intersection(this.rectangle,this.tilingScheme.rectangle),this.tileSize=this.tileWidth=this.tileHeight=n.tileSize||256,this.maximumLevel=n.maximumLevel??18,this.minimumLevel=n.minimumLevel??0,this.tileDiscardPolicy=void 0,this._error=new Me.Event,this.credit=new Me.Credit(n.credit||"",!1),this.proxy=new Me.DefaultProxy(""),this.hasAlphaChannel=n.hasAlphaChannel??!0,this.sourceFilter=n.sourceFilter,this._accessToken=n.accessToken,this._enablePickFeatures=n.enablePickFeatures??!0,this.layerStyle=n.layerStyle??[],Me.defined(n.style)&&(this.readyPromise=this._build(n.style,n).then(()=>!0))}get style(){return this._style}get isDestroyed(){return this._destroyed}get errorEvent(){return this._error}async _build(n,e={}){const r=await this._preLoad(n);r.layers=this.layerStyle.length!=0?this.layerStyle:r.layers,this._style=r,this.mapboxRenderer=new TN.BasicRenderer({style:r,canvas:BN,token:e.accessToken,transformRequest:e.transformRequest}),e.showCanvas&&this.mapboxRenderer.showCanvasForDebug(),await this.mapboxRenderer._style.loadedPromise,this.readyPromise=Promise.resolve(!0),this.ready=!0}static async fromUrl(n,e={}){const r=new Ey(e);return await r._build(n,e),r}_preLoad(n){let e=n;if(typeof n=="string"&&(n.endsWith(".json")||n.startsWith("mapbox://")?n=new Me.Resource({url:n}):n.endsWith(".pbf")&&(n={version:8,sources:{customSource:{type:"vector",scheme:"tms",tiles:[n]}},layers:this.layerStyle},e=n)),n instanceof Me.Resource){const r="https://api.mapbox.com/";n.url.startsWith("mapbox://")&&(n.url=n.url.replace("mapbox://",r)),this._accessToken&&n.appendQueryParameters({access_token:this._accessToken}),e=n.fetchJson()}return Promise.resolve(e).catch(r=>{throw this._error.raiseEvent(r),r})}_createTile(){const n=document.createElement("canvas");return n.width=this.tileSize,n.height=this.tileSize,n.style.imageRendering="pixelated",n}_resetTileCache(){Object.values(this.mapboxRenderer._style.sourceCaches).forEach(n=>n._tileCache.reset())}_getTilesSpec(n,e){const{x:r,y:s,level:o}=n,i=this.tileSize,a=[],l=this.tilingScheme.getNumberOfXTilesAtLevel(o)-1,h=this.tilingScheme.getNumberOfYTilesAtLevel(o)-1;for(let f=-1;f<=1;f++){let u=r+f;u<0&&(u=l),u>l&&(u=0);for(let y=-1;y<=1;y++){let v=s+y;v<0||v>h||a.push({source:e,z:o,x:u,y:v,left:0+f*i,top:0+y*i,size:i})}}return a}requestImage(n,e,r,s=!0){if(r<this.minimumLevel||r>this.maximumLevel)return;this.mapboxRenderer.filterForZoom(r);const o=this.mapboxRenderer.getVisibleSources(r).reduce((i,a)=>i.concat(this._getTilesSpec({x:n,y:e,level:r},a)),[]);return new Promise((i,a)=>{const l=this._createTile(),h=l.getContext("2d");h&&(h.globalCompositeOperation="copy");const f=this.mapboxRenderer.renderTiles(h,{srcLeft:0,srcTop:0,width:this.tileSize,height:this.tileSize,destLeft:0,destTop:0},o,u=>{typeof u=="string"&&!u.endsWith("tiles not available")?a(void 0):s?(f.consumer.ctx=null,i(l),this.mapboxRenderer.releaseRender(f),this._resetTileCache()):i(f)})})}pickFeatures(n,e,r,s,o){var i;if(this._enablePickFeatures)return(i=this.requestImage(n,e,r,!1))==null?void 0:i.then(a=>{let l=this.mapboxRenderer.getVisibleSources(r);l=this.sourceFilter?this.sourceFilter(l):l;const h=[],f=Me.Math.toDegrees(s),u=Me.Math.toDegrees(o);return l.forEach(y=>{const v=new Me.ImageryLayerFeatureInfo;v.data=this.mapboxRenderer.queryRenderedFeatures({source:y,renderedZoom:r,lng:f,lat:u,tileZ:r});const g=Object.keys(v.data)[0];v.name=g;const m=v.data[g];m&&(v.configureDescriptionFromProperties((m==null?void 0:m.length)===1?m[0]:m),h.push(v))}),a.consumer.ctx=void 0,this.mapboxRenderer.releaseRender(a),this._resetTileCache(),h.length?h:void 0})}destroy(){this.mapboxRenderer._cancelAllPendingRenders(),this._resetTileCache(),this._destroyed=!0}}function IN(t,n){let e;return n===0?e=F.JulianDate.toIso8601(t.stop):e=F.JulianDate.toIso8601(t.start),{Time:e}}function rS(t){if(t.type==="fromIso8601")return F.TimeIntervalCollection.fromIso8601({iso8601:t.iso8601,isStartIncluded:t.isStartIncluded,isStopIncluded:t.isStopIncluded,leadingInterval:t.leadingInterval,trailingInterval:t.trailingInterval,dataCallback:IN})}const{getStrFromEnv:Kd}=Q.ESSceneObject.context;function FN(t){const n=Object.entries(t).map(([e,r])=>{try{const s=r&&Function(`"use strict";return (${r})`)();return[e,s]}catch(s){console.error(`getCustomTagsFromJson error: ${s}`,s);return}}).filter(e=>!!e);return Object.fromEntries(n)}async function kN(t,n){var e,r;if(t.type==="WebMapTileServiceImageryProvider")return new F.WebMapTileServiceImageryProvider({url:Qn(t.url),format:t.format??"image/jpeg",layer:t.layer,style:t.style,tileMatrixSetID:t.tileMatrixSetID,tileMatrixLabels:t.tileMatrixLabels,clock:t.times&&((e=n.viewer)==null?void 0:e.clock),times:t.times&&rS(t.times),dimensions:t.dimensions,tileWidth:t.tileWidth??256,tileHeight:t.tileHeight??256,tilingScheme:t.tilingScheme&&Br(t.tilingScheme),rectangle:t.rectangle&&Bt(t.rectangle),minimumLevel:t.minimumLevel??0,maximumLevel:t.maximumLevel,ellipsoid:t.ellipsoid&&et(t.ellipsoid),credit:t.credit,subdomains:t.subdomains});if(t.type==="TileMapServiceImageryProvider")return t.url?await F.TileMapServiceImageryProvider.fromUrl(Qn(t.url),{fileExtension:t.fileExtension,credit:t.credit,minimumLevel:t.minimumLevel,maximumLevel:t.maximumLevel,rectangle:t.rectangle&&Bt(t.rectangle),tilingScheme:t.tilingScheme&&Br(t.tilingScheme),ellipsoid:t.ellipsoid&&et(t.ellipsoid),tileWidth:t.tileWidth,tileHeight:t.tileHeight,flipXY:t.flipXY}):void 0;if(t.type==="UrlTemplateImageryProvider"){const s=t.customTags&&FN(t.customTags);return console.log(Qn(t.url),"111"),new F.UrlTemplateImageryProvider({url:Qn(t.url),credit:t.credit,minimumLevel:t.minimumLevel,maximumLevel:t.maximumLevel,rectangle:t.rectangle&&Bt(t.rectangle),tilingScheme:t.tilingScheme&&Br(t.tilingScheme),ellipsoid:t.ellipsoid&&et(t.ellipsoid),tileWidth:t.tileWidth,tileHeight:t.tileHeight,subdomains:t.subdomains,hasAlphaChannel:t.hasAlphaChannel,pickFeaturesUrl:t.pickFeaturesUrl,enablePickFeatures:t.enablePickFeatures,urlSchemeZeroPadding:t.urlSchemeZeroPadding,customTags:s})}else{if(t.type==="GridImageryProvider")return new F.GridImageryProvider({tilingScheme:t.tilingScheme&&Br(t.tilingScheme),ellipsoid:t.ellipsoid&&et(t.ellipsoid),tileWidth:t.tileWidth,tileHeight:t.tileHeight,cells:t.cells,color:t.color&&Oe(t.color),glowColor:t.glowColor&&Oe(t.glowColor),backgroundColor:t.backgroundColor&&Oe(t.backgroundColor),canvasSize:t.canvasSize,glowWidth:t.glowWidth});if(t.type==="ArcGisMapServerImageryProvider")return t.url?await F.ArcGisMapServerImageryProvider.fromUrl(Qn(t.url),{token:t.token,usePreCachedTilesIfAvailable:t.usePreCachedTilesIfAvailable,layers:t.layers,enablePickFeatures:t.enablePickFeatures,rectangle:t.rectangle&&Bt(t.rectangle),tilingScheme:t.tilingScheme&&Br(t.tilingScheme),ellipsoid:t.ellipsoid&&et(t.ellipsoid),credit:t.credit,tileWidth:t.tileWidth,tileHeight:t.tileHeight,maximumLevel:t.maximumLevel}):void 0;if(t.type==="BingMapsImageryProvider")return t.url?await F.BingMapsImageryProvider.fromUrl(Qn(t.url),{key:t.key,tileProtocol:t.tileProtocol,mapStyle:t.mapStyle&&F.BingMapsStyle[t.mapStyle],culture:t.culture,ellipsoid:t.ellipsoid&&et(t.ellipsoid)}):void 0;if(t.type==="GoogleEarthEnterpriseImageryProvider"){if(!t.url)return;const s=await F.GoogleEarthEnterpriseMetadata.fromUrl(Qn(t.url));return await F.GoogleEarthEnterpriseImageryProvider.fromMetadata(s,{ellipsoid:t.ellipsoid&&et(t.ellipsoid),credit:t.credit})}else{if(t.type==="IonImageryProvider")return await F.IonImageryProvider.fromAssetId(t.assetId,{accessToken:t.accessToken,server:t.server});if(t.type==="MapboxImageryProvider")return new F.MapboxImageryProvider({url:t.url&&Kd(t.url),mapId:t.mapId,accessToken:t.accessToken,format:t.format,ellipsoid:t.ellipsoid&&et(t.ellipsoid),minimumLevel:t.minimumLevel,maximumLevel:t.maximumLevel,rectangle:t.rectangle&&Bt(t.rectangle),credit:t.credit});if(t.type==="MapboxStyleImageryProvider")return new F.MapboxStyleImageryProvider({url:t.url&&Kd(t.url),username:t.username,styleId:t.styleId,accessToken:t.accessToken,tilesize:t.tilesize,scaleFactor:t.scaleFactor,rectangle:t.rectangle&&Bt(t.rectangle),credit:t.credit,ellipsoid:t.ellipsoid&&et(t.ellipsoid),minimumLevel:t.minimumLevel,maximumLevel:t.maximumLevel});if(t.type==="OpenStreetMapImageryProvider")return new F.OpenStreetMapImageryProvider({url:Kd(t.url),rectangle:t.rectangle&&Bt(t.rectangle),credit:t.credit,ellipsoid:t.ellipsoid&&et(t.ellipsoid),minimumLevel:t.minimumLevel,maximumLevel:t.maximumLevel,fileExtension:t.fileExtension});if(t.type==="SingleTileImageryProvider")return new F.SingleTileImageryProvider({url:Qn(t.url),rectangle:t.rectangle&&Bt(t.rectangle),credit:t.credit,ellipsoid:t.ellipsoid&&et(t.ellipsoid)});if(t.type==="TileCoordinatesImageryProvider")return new F.TileCoordinatesImageryProvider({tilingScheme:t.tilingScheme&&Br(t.tilingScheme),ellipsoid:t.ellipsoid&&et(t.ellipsoid),color:t.color&&Oe(t.color),tileWidth:t.tileWidth,tileHeight:t.tileHeight});if(t.type==="WebMapServiceImageryProvider")return new F.WebMapServiceImageryProvider({url:Qn(t.url),layers:t.layers,enablePickFeatures:t.enablePickFeatures,rectangle:t.rectangle&&Bt(t.rectangle),tilingScheme:t.tilingScheme&&Br(t.tilingScheme),ellipsoid:t.ellipsoid&&et(t.ellipsoid),minimumLevel:t.minimumLevel,maximumLevel:t.maximumLevel,tileWidth:t.tileWidth,tileHeight:t.tileHeight,crs:t.crs,srs:t.srs,credit:t.credit,subdomains:t.subdomains,clock:t.times&&((r=n.viewer)==null?void 0:r.clock),times:t.times&&rS(t.times),parameters:t.parameters,getFeatureInfoParameters:t.getFeatureInfoParameters});if(t.type==="BDImageryProvider")return new qd({url:t.url&&Kd(t.url),ellipsoid:t.ellipsoid&&et(t.ellipsoid),wgs84:t.wgs84});if(t.type==="GeHistoryImagery")return new SN({indexTime:t.indexTime});if(t.type==="ArcgisHistoryImagery")return new EN({indexTimeID:t.indexTimeID});if(t.type==="MVTImageryProvider")return t.url?await Ey.fromUrl(t.url,{maximumLevel:t.maximumLevel,minimumLevel:t.minimumLevel,tileSize:t.tileSize,accessToken:t.accessToken,enablePickFeatures:t.enablePickFeatures,rectangle:t.rectangle&&Bt(t.rectangle),layerStyle:t.style}):void 0}}}function MN(t,n){n.type}class iS extends F.WebMercatorTilingScheme{constructor(n){super(n);var e=this._projection;e.s_project=e.project,e.project=function(o){var i={};return i=xy(F.Math.toDegrees(o.longitude),F.Math.toDegrees(o.latitude)),e.s_project(new F.Cartographic(F.Math.toRadians(i[0]),F.Math.toRadians(i[1])))},e.s_unproject=e.unproject,e.unproject=function(o){var i=e.s_unproject(o),a={};return a=_y(F.Math.toDegrees(i.longitude),F.Math.toDegrees(i.latitude)),new F.Cartographic(F.Math.toRadians(a[0]),F.Math.toRadians(a[1]))};var r=this._projection.unproject(this._rectangleSouthwestInMeters),s=this._projection.unproject(this._rectangleNortheastInMeters);this._rectangle=new F.Rectangle(r.longitude,r.latitude,s.longitude,s.latitude)}}class oS extends F.WebMercatorTilingScheme{constructor(n){super(n);var e=this._projection;e.s_project=e.project,e.project=function(r){var s={};return s=_y(F.Math.toDegrees(r.longitude),F.Math.toDegrees(r.latitude)),e.s_project(new F.Cartographic(F.Math.toRadians(s[0]),F.Math.toRadians(s[1])))},e.s_unproject=e.unproject,e.unproject=function(r){var s=e.s_unproject(r),o={};return o=xy(F.Math.toDegrees(s.longitude),F.Math.toDegrees(s.latitude)),new F.Cartographic(F.Math.toRadians(o[0]),F.Math.toRadians(o[1]))}}}function ON(t){if(t.type==="GeographicTilingScheme")return"new Cesium.GeographicTilingScheme()";if(t.type==="WebMercatorTilingScheme")return"new Cesium.WebMercatorTilingScheme()"}class vo extends E.Destroyable{constructor(e,r){super();N(this,"_flyToEvent",this.disposeVar(new E.Event));N(this,"_layer",this.disposeVar(E.react(void 0)));const s=e.viewer;if(!s)return;const o=Gn(s);if(!o)return;const{imageriesManager:i}=o;i.add(this),this.dispose(()=>i.delete(this));const a=()=>{this.layer&&(this.layer=void 0)};this.dispose(a);const l=()=>{this.layer&&(this.layer.alpha=this.alpha??1,this.layer.nightAlpha=this.nightAlpha??1,this.layer.dayAlpha=this.dayAlpha??1,this.layer.brightness=this.brightness??1,this.layer.contrast=this.contrast??1,this.layer.hue=this.hue??0,this.layer.saturation=this.saturation??1,this.layer.gamma=this.gamma??1,this.layer.splitDirection=this.splitDirection&&F.SplitDirection[this.splitDirection]||F.SplitDirection.NONE,this.layer.minificationFilter=this.minificationFilter&&F.TextureMinificationFilter[this.minificationFilter]||F.TextureMinificationFilter.LINEAR,this.layer.magnificationFilter=this.magnificationFilter&&F.TextureMagnificationFilter[this.magnificationFilter]||F.TextureMagnificationFilter.LINEAR,this.layer.show=this.show??!0,this.layer.maximumAnisotropy=this.maximumAnisotropy,this.layer.minimumTerrainLevel=this.minimumTerrainLevel,this.layer.maximumTerrainLevel=this.maximumTerrainLevel,this.layer.colorToAlpha=this.colorToAlpha&&toColor(this.colorToAlpha),this.layer.colorToAlphaThreshold=this.colorToAlphaThreshold??.004,this.imageryProvider&&MN(this.layer.imageryProvider,this.imageryProvider))};let h=!1;const f=this.disposeVar(E.createProcessingFromAsyncFunc(async(m,p)=>{if(p){if(h=!0,a(),!this.imageryProvider)return;const d=await m.promise(kN(this.imageryProvider,e));if(!d){console.error("createImageryProviderFromJson error!");return}this.layer=new F.ImageryLayer(d),F.ImageryLayer.prototype&&(this.layer.ESSceneObjectID=r),h=!1}l()}));f.restart(void 0,!0);const u=this.disposeVar(new E.Event),y=this.disposeVar(new E.Event);this.dispose(this.imageryProviderChanged.disposableOn((m,p)=>{u.emit()})),this.dispose(Q.ESSceneObject.context.environmentVariablesChanged.disposableOn(()=>{u.emit()}));const v=this.disposeVar(E.createNextAnimateFrameEvent(this.rectangleChanged,u));this.dispose(v.disposableOn(()=>{f.restart(void 0,!0)}));const g=this.disposeVar(E.createNextAnimateFrameEvent(this.alphaChanged,this.nightAlphaChanged,this.dayAlphaChanged,this.brightnessChanged,this.contrastChanged,this.hueChanged,this.saturationChanged,this.gammaChanged,this.splitDirectionChanged,this.minificationFilterChanged,this.magnificationFilterChanged,this.showChanged,this.maximumAnisotropyChanged,this.minimumTerrainLevelChanged,this.maximumTerrainLevelChanged,this.cutoutRectangleChanged,this.colorToAlphaChanged,this.colorToAlphaThresholdChanged,y));this.dispose(g.disposableOn(()=>{h||f.restart(void 0,!1)})),this.dispose(this.flyToEvent.disposableOn(m=>{if(!e.actived)return;const{viewer:p}=e;p&&p.camera.flyTo({destination:this.rectangle&&!jp(this.rectangle)?Bt(this.rectangle):F.Camera.DEFAULT_VIEW_RECTANGLE,duration:m})}))}get flyToEvent(){return this._flyToEvent}flyTo(e){this._flyToEvent.emit(e)}get layer(){return this._layer.value}set layer(e){this._layer.value=e}get layerChanged(){return this._layer.changed}}N(vo,"defaults",{show:!0,rectangle:[-180,-90,180,90],alpha:1,nightAlpha:1,dayAlpha:1,brightness:1,contrast:1,hue:0,saturation:1,gamma:1,splitDirection:"NONE",minificationFilter:"LINEAR",magnificationFilter:"LINEAR",maximumAnisotropy:0,minimumTerrainLevel:0,maximumTerrainLevel:0,cutoutRectangle:[1,1,1,1],colorToAlpha:[1,1,1,.5],colorToAlphaThreshold:.004,imageryProvider:{type:"TileMapServiceImageryProvider"},zIndex:0,hasAlphaChannel:!0,pickFeaturesUrl:""}),(t=>{t.createDefaultProps=()=>({show:void 0,rectangle:E.reactArrayWithUndefined(void 0),alpha:void 0,nightAlpha:void 0,dayAlpha:void 0,brightness:void 0,contrast:void 0,hue:void 0,saturation:void 0,gamma:void 0,splitDirection:void 0,minificationFilter:void 0,magnificationFilter:void 0,maximumAnisotropy:void 0,minimumTerrainLevel:void 0,maximumTerrainLevel:void 0,cutoutRectangle:E.reactArrayWithUndefined(void 0),colorToAlpha:E.reactArrayWithUndefined(void 0),colorToAlphaThreshold:void 0,imageryProvider:E.reactJsonWithUndefined(void 0),zIndex:0,hasAlphaChannel:void 0,pickFeaturesUrl:void 0})})(vo||(vo={})),E.extendClassProps(vo.prototype,vo.createDefaultProps);const Py=F.ApproximateTerrainHeights,DN=F.ComponentDatatype,Gr=F.defaultValue,ln=F.defined,RN=F.destroyObject,Ty=F.DeveloperError,UN=F.deprecationWarning,LN=F.GeometryInstance,zN=F.GeometryInstanceAttribute,NN=F.GroundPolylineGeometry,Su=F.DrawCommand,aS=F.Pass,sS=F.RenderState,VN=F.ShaderProgram,Eu=F.ShaderSource;let By=F._shadersPolylineShadowVolumeFS;const QN=F._shadersPolylineShadowVolumeMorphFS,HN=F._shadersPolylineShadowVolumeMorphVS;let Iy=F._shadersPolylineShadowVolumeVS;const lS=F.BlendingState,Fy=F.ClassificationType,jN=F.CullFace,uS=F.PolylineColorAppearance,GN=F.PolylineMaterialAppearance,wo=F.Primitive,zs=F.SceneMode,cS=F.StencilConstants,hS=F.StencilFunction,Ns=F.StencilOperation;Iy=Iy.replace("width = width * max(0.0, czm_metersPerPixel(positionEC));",""),By=By.replace("float halfMaxWidth = v_startPlaneNormalEcAndHalfWidth.w * czm_metersPerPixel(eyeCoordinate);","float halfMaxWidth = v_startPlaneNormalEcAndHalfWidth.w;");function Wr(t){t=Gr(t,Gr.EMPTY_OBJECT),this.geometryInstances=t.geometryInstances,this._hasPerInstanceColors=!0;let n=t.appearance;ln(n)||(n=new GN),this.appearance=n,this.show=Gr(t.show,!0),this.classificationType=Gr(t.classificationType,Fy.BOTH),this.debugShowBoundingVolume=Gr(t.debugShowBoundingVolume,!1),this._debugShowShadowVolume=Gr(t.debugShowShadowVolume,!1),this._primitiveOptions={geometryInstances:void 0,appearance:void 0,vertexCacheOptimize:!1,interleave:Gr(t.interleave,!1),releaseGeometryInstances:Gr(t.releaseGeometryInstances,!0),allowPicking:Gr(t.allowPicking,!0),asynchronous:Gr(t.asynchronous,!0),compressVertices:!1,_createShaderProgramFunction:void 0,_createCommandsFunction:void 0,_updateAndQueueCommandsFunction:void 0},this._zIndex=void 0,this._ready=!1;const e=this;this._readyPromise=new Promise((r,s)=>{e._completeLoad=()=>{this._ready=!0,this.releaseGeometryInstances&&(this.geometryInstances=void 0);const o=this._error;ln(o)?s(o):r(this)}}),this._primitive=void 0,this._sp=void 0,this._sp2D=void 0,this._spMorph=void 0,this._renderState=fS(!1),this._renderState3DTiles=fS(!0),this._renderStateMorph=sS.fromCache({cull:{enabled:!0,face:jN.FRONT},depthTest:{enabled:!0},blending:lS.PRE_MULTIPLIED_ALPHA_BLEND,depthMask:!1})}Object.defineProperties(Wr.prototype,{interleave:{get:function(){return this._primitiveOptions.interleave}},releaseGeometryInstances:{get:function(){return this._primitiveOptions.releaseGeometryInstances}},allowPicking:{get:function(){return this._primitiveOptions.allowPicking}},asynchronous:{get:function(){return this._primitiveOptions.asynchronous}},ready:{get:function(){return this._ready}},readyPromise:{get:function(){return UN("GroundPolylinePrimitive.readyPromise","GroundPolylinePrimitive.readyPromise was deprecated in CesiumJS 1.104. It will be removed in 1.107. Wait for GroundPolylinePrimitive.ready to return true instead."),this._readyPromise}},debugShowShadowVolume:{get:function(){return this._debugShowShadowVolume}}}),Wr.initializeTerrainHeights=function(){return Py.initialize()};function WN(t,n,e){const r=n.context,s=t._primitive,o=s._attributeLocations;let i=s._batchTable.getVertexShaderCallback()(Iy);i=wo._appendShowToShader(s,i),i=wo._appendDistanceDisplayConditionToShader(s,i),i=wo._modifyShaderPosition(t,i,n.scene3DOnly);let a=s._batchTable.getVertexShaderCallback()(HN);a=wo._appendShowToShader(s,a),a=wo._appendDistanceDisplayConditionToShader(s,a),a=wo._modifyShaderPosition(t,a,n.scene3DOnly);let l=s._batchTable.getVertexShaderCallback()(By);const h=[`GLOBE_MINIMUM_ALTITUDE ${n.mapProjection.ellipsoid.minimumRadius.toFixed(1)}`];let f="",u="";ln(e.material)?(u=ln(e.material)?e.material.shaderSource:"",u.search(/in\s+float\s+v_polylineAngle;/g)!==-1&&h.push("ANGLE_VARYING"),u.search(/in\s+float\s+v_width;/g)!==-1&&h.push("WIDTH_VARYING")):f="PER_INSTANCE_COLOR",h.push(f);const y=t.debugShowShadowVolume?["DEBUG_SHOW_VOLUME",f]:[f],v=new Eu({defines:h,sources:[i]}),g=new Eu({defines:y,sources:[u,l]});t._sp=VN.replaceCache({context:r,shaderProgram:s._sp,vertexShaderSource:v,fragmentShaderSource:g,attributeLocations:o});let m=r.shaderCache.getDerivedShaderProgram(t._sp,"2dColor");if(!ln(m)){const d=new Eu({defines:h.concat(["COLUMBUS_VIEW_2D"]),sources:[i]});m=r.shaderCache.createDerivedShaderProgram(t._sp,"2dColor",{context:r,shaderProgram:t._sp2D,vertexShaderSource:d,fragmentShaderSource:g,attributeLocations:o})}t._sp2D=m;let p=r.shaderCache.getDerivedShaderProgram(t._sp,"MorphColor");if(!ln(p)){const d=new Eu({defines:h.concat([`MAX_TERRAIN_HEIGHT ${Py._defaultMaxTerrainHeight.toFixed(1)}`]),sources:[a]});l=s._batchTable.getVertexShaderCallback()(QN);const c=new Eu({defines:y,sources:[u,l]});p=r.shaderCache.createDerivedShaderProgram(t._sp,"MorphColor",{context:r,shaderProgram:t._spMorph,vertexShaderSource:d,fragmentShaderSource:c,attributeLocations:o})}t._spMorph=p}function fS(t){return sS.fromCache({cull:{enabled:!0},blending:lS.PRE_MULTIPLIED_ALPHA_BLEND,depthMask:!1,stencilTest:{enabled:t,frontFunction:hS.EQUAL,frontOperation:{fail:Ns.KEEP,zFail:Ns.KEEP,zPass:Ns.KEEP},backFunction:hS.EQUAL,backOperation:{fail:Ns.KEEP,zFail:Ns.KEEP,zPass:Ns.KEEP},reference:cS.CESIUM_3D_TILE_MASK,mask:cS.CESIUM_3D_TILE_MASK}})}function qN(t,n,e,r,s,o){const i=t._primitive,a=i._va.length;s.length=a,o.length=a;const h=n instanceof uS?{}:e._uniforms,f=i._batchTable.getUniformMapCallback()(h);for(let u=0;u<a;u++){const y=i._va[u];let v=s[u];ln(v)||(v=s[u]=new Su({owner:t,primitiveType:i._primitiveType})),v.vertexArray=y,v.renderState=t._renderState,v.shaderProgram=t._sp,v.uniformMap=f,v.pass=aS.TERRAIN_CLASSIFICATION,v.pickId="czm_batchTable_pickColor(v_endPlaneNormalEcAndBatchId.w)";const g=Su.shallowClone(v,v.derivedCommands.tileset);g.renderState=t._renderState3DTiles,g.pass=aS.CESIUM_3D_TILE_CLASSIFICATION,v.derivedCommands.tileset=g;const m=Su.shallowClone(v,v.derivedCommands.color2D);m.shaderProgram=t._sp2D,v.derivedCommands.color2D=m;const p=Su.shallowClone(g,g.derivedCommands.color2D);p.shaderProgram=t._sp2D,g.derivedCommands.color2D=p;const d=Su.shallowClone(v,v.derivedCommands.colorMorph);d.renderState=t._renderStateMorph,d.shaderProgram=t._spMorph,d.pickId="czm_batchTable_pickColor(v_batchId)",v.derivedCommands.colorMorph=d}}function dS(t,n,e,r,s,o,i){e.mode===zs.MORPHING?n=n.derivedCommands.colorMorph:e.mode!==zs.SCENE3D&&(n=n.derivedCommands.color2D),n.modelMatrix=r,n.boundingVolume=o,n.cull=s,n.debugShowBoundingVolume=i,e.commandList.push(n)}function KN(t,n,e,r,s,o,i){const a=t._primitive;wo._updateBoundingVolumes(a,n,s);let l;n.mode===zs.SCENE3D?l=a._boundingSphereWC:n.mode===zs.COLUMBUS_VIEW?l=a._boundingSphereCV:n.mode===zs.SCENE2D&&ln(a._boundingSphere2D)?l=a._boundingSphere2D:ln(a._boundingSphereMorph)&&(l=a._boundingSphereMorph);const h=n.mode===zs.MORPHING,f=t.classificationType,u=f!==Fy.CESIUM_3D_TILE,y=f!==Fy.TERRAIN&&!h;let v;const g=n.passes;if(g.render||g.pick&&a.allowPicking){const m=e.length;for(let p=0;p<m;++p){const d=l[p];u&&(v=e[p],dS(t,v,n,s,o,d,i)),y&&(v=e[p].derivedCommands.tileset,dS(t,v,n,s,o,d,i))}}}Wr.prototype.update=function(t){if(!ln(this._primitive)&&!ln(this.geometryInstances))return;if(!Py.initialized){if(!this.asynchronous)throw new Ty("For synchronous GroundPolylinePrimitives, you must call GroundPolylinePrimitives.initializeTerrainHeights() and wait for the returned promise to resolve.");Wr.initializeTerrainHeights();return}let n;const e=this,r=this._primitiveOptions;if(!ln(this._primitive)){const s=Array.isArray(this.geometryInstances)?this.geometryInstances:[this.geometryInstances],o=s.length,i=new Array(o);let a;for(n=0;n<o;++n)if(a=s[n].attributes,!ln(a)||!ln(a.color)){this._hasPerInstanceColors=!1;break}for(n=0;n<o;++n){const l=s[n];a={};const h=l.attributes;for(const f in h)h.hasOwnProperty(f)&&(a[f]=h[f]);ln(a.width)||(a.width=new zN({componentDatatype:DN.UNSIGNED_BYTE,componentsPerAttribute:1,value:[l.geometry.width]})),l.geometry._scene3DOnly=t.scene3DOnly,NN.setProjectionAndEllipsoid(l.geometry,t.mapProjection),i[n]=new LN({geometry:l.geometry,attributes:a,id:l.id,pickPrimitive:e})}r.geometryInstances=i,r.appearance=this.appearance,r._createShaderProgramFunction=function(l,h,f){WN(e,h,f)},r._createCommandsFunction=function(l,h,f,u,y,v,g){qN(e,h,f,u,v,g)},r._updateAndQueueCommandsFunction=function(l,h,f,u,y,v,g,m){KN(e,h,f,u,y,v,g)},this._primitive=new wo(r)}if(this.appearance instanceof uS&&!this._hasPerInstanceColors)throw new Ty("All GeometryInstances must have color attributes to use PolylineColorAppearance with GroundPolylinePrimitive.");this._primitive.appearance=this.appearance,this._primitive.show=this.show,this._primitive.debugShowBoundingVolume=this.debugShowBoundingVolume,this._primitive.update(t),t.afterRender.push(()=>{!this._ready&&ln(this._primitive)&&this._primitive.ready&&this._completeLoad()})},Wr.prototype.getGeometryInstanceAttributes=function(t){if(!ln(this._primitive))throw new Ty("must call update before calling getGeometryInstanceAttributes");return this._primitive.getGeometryInstanceAttributes(t)},Wr.isSupported=function(t){return t.frameState.context.depthTexture},Wr.prototype.isDestroyed=function(){return!1},Wr.prototype.destroy=function(){return this._primitive=this._primitive&&this._primitive.destroy(),this._sp=this._sp&&this._sp.destroy(),this._sp2D=void 0,this._spMorph=void 0,RN(this)};class ma extends E.Destroyable{constructor(n){super();const e=n.viewer;if(!e){console.warn("viewer is undefined!");return}const r=e.scene.globe,s=-414,o=8777;let i={};const a=()=>{var f,u,y,v,g;if(!e)return;let h;do{const m=this.shadingMode||"none";if(!(this.show??!0)||m==="none"&&!this.enableContour)break;let p;this.enableContour?(m==="elevation"?(h=XN(),p=h.materials.elevationRampMaterial.uniforms,p.minimumHeight=((f=this.elevationParam)==null?void 0:f.minHeight)??s,p.maximumHeight=((u=this.elevationParam)==null?void 0:u.maxHeight)??o,i=h.materials.contourMaterial.uniforms):m==="slope"?(h=$N(),p=h.materials.slopeRampMaterial.uniforms,i=h.materials.contourMaterial.uniforms):m==="aspect"?(h=ZN(),p=h.materials.aspectRampMaterial.uniforms,i=h.materials.contourMaterial.uniforms):(h=F.Material.fromType("ElevationContour"),i=h.uniforms),i.width=this.contourWidth,i.spacing=this.contourSpacing,i.color=F.Color.fromCartesian4(F.Cartesian4.fromArray(this.contourColor))):m==="elevation"?(h=F.Material.fromType("ElevationRamp"),p=h.uniforms,p.minimumHeight=((y=this.elevationParam)==null?void 0:y.minHeight)??s,p.maximumHeight=((v=this.elevationParam)==null?void 0:v.maxHeight)??o):m==="slope"?(h=F.Material.fromType("SlopeRamp"),p=h.uniforms):m==="aspect"&&(h=F.Material.fromType("AspectRamp"),p=h.uniforms),m!=="none"&&(p.image=pS(m),m==="elevation"&&((g=this.elevationParam)==null?void 0:g.color)!==void 0&&(p.image=Array.isArray(this.elevationParam.color)?pS(m,this.elevationParam.color):this.elevationParam.color))}while(!1);r.material=h};a();const l=this.disposeVar(E.createNextAnimateFrameEvent(this.contourColorChanged,this.contourSpacingChanged,this.contourWidthChanged,this.enableContourChanged,this.shadingModeChanged,this.showChanged,this.elevationParamChanged));this.dispose(l.disposableOn(a)),this.dispose(()=>r.material=void 0)}}N(ma,"defaults",{show:!1,enableContour:!1,contourSpacing:150,contourWidth:2,contourColor:[1,0,0,1],shadingMode:"none"}),(t=>{t.createDefaultProps=()=>({show:void 0,shadingMode:void 0,enableContour:!1,contourSpacing:150,contourWidth:2,contourColor:[1,0,0,1],elevationParam:E.reactJsonWithUndefined(void 0)})})(ma||(ma={})),E.extendClassProps(ma.prototype,ma.createDefaultProps);function XN(){return new F.Material({fabric:{type:"ElevationColorContour",materials:{contourMaterial:{type:"ElevationContour"},elevationRampMaterial:{type:"ElevationRamp"}},components:{diffuse:"contourMaterial.alpha == 0.0 ? elevationRampMaterial.diffuse : contourMaterial.diffuse",alpha:"max(contourMaterial.alpha, elevationRampMaterial.alpha)"}},translucent:!1})}function $N(){return new F.Material({fabric:{type:"SlopeColorContour",materials:{contourMaterial:{type:"ElevationContour"},slopeRampMaterial:{type:"SlopeRamp"}},components:{diffuse:"contourMaterial.alpha == 0.0 ? slopeRampMaterial.diffuse : contourMaterial.diffuse",alpha:"max(contourMaterial.alpha, slopeRampMaterial.alpha)"}},translucent:!1})}function ZN(){return new F.Material({fabric:{type:"AspectColorContour",materials:{contourMaterial:{type:"ElevationContour"},aspectRampMaterial:{type:"AspectRamp"}},components:{diffuse:"contourMaterial.alpha == 0.0 ? aspectRampMaterial.diffuse : contourMaterial.diffuse",alpha:"max(contourMaterial.alpha, aspectRampMaterial.alpha)"}},translucent:!1})}const YN=[0,.045,.1,.15,.37,.54,1],JN=[0,.29,.5,Math.sqrt(2)/2,.87,.91,1],eV=[0,.2,.4,.6,.8,.9,1];function pS(t,n){const e=document.createElement("canvas");e.width=100,e.height=1;const r=e.getContext("2d");let s;if(t==="elevation")s=YN;else if(t==="slope")s=JN;else if(t==="aspect")s=eV;else throw new Error("values未赋值!");const o=r.createLinearGradient(0,0,100,0);return o.addColorStop(s[0],n!=null&&n[0]?Qi(n==null?void 0:n[0]):"#000000"),o.addColorStop(s[1],n!=null&&n[1]?Qi(n==null?void 0:n[1]):"#2747E0"),o.addColorStop(s[2],n!=null&&n[2]?Qi(n==null?void 0:n[2]):"#D33B7D"),o.addColorStop(s[3],n!=null&&n[3]?Qi(n==null?void 0:n[3]):"#D33038"),o.addColorStop(s[4],n!=null&&n[4]?Qi(n==null?void 0:n[4]):"#FF9742"),o.addColorStop(s[5],n!=null&&n[5]?Qi(n==null?void 0:n[5]):"#ffd700"),o.addColorStop(s[6],n!=null&&n[6]?Qi(n==null?void 0:n[6]):"#ffffff"),r.fillStyle=o,r.fillRect(0,0,100,1),e}class Vs extends E.Destroyable{constructor(e){super();N(this,"_geoPath");N(this,"_geoPolyline");N(this,"_geoCanvasPointPoi");N(this,"_player");N(this,"_flyToEvent",this.disposeVar(new E.Event));N(this,"_currentDistance",this.disposeVar(E.react(0)));N(this,"_ratio",this.disposeVar(Q.PlayerProperty.createPlayingRatio([this,"currentTime"],[this,"duration"])));this._geoPath=this.disposeVar(new Q.ESPathImpl),this._geoPolyline=this.disposeVar(new lt(e)),this._geoCanvasPointPoi=this.disposeVar(new Xi(e)),this._player=this.disposeVar(new Q.Player),this._geoPolyline.show=!1,this.dispose(E.bind([this._geoPolyline,"positions"],[this,"positions"])),this.dispose(E.track([this._geoPath,"currentTime"],[this,"currentDistance"])),this.dispose(E.track([this._geoPath,"leadTime"],[this,"leadTime"])),this.dispose(E.track([this._geoPath,"trailTime"],[this,"trailTime"])),this.dispose(E.track([this._geoPath,"show"],[this,"show"])),this.dispose(E.track([this._geoPath,"polylineShow"],[this,"polylineShow"])),this.dispose(E.track([this._geoPath,"currentPoiShow"],[this,"currentPoiShow"])),this.dispose(E.track([this._geoPath,"width"],[this,"width"])),this.dispose(E.track([this._geoPath,"ground"],[this,"ground"])),this.dispose(E.track([this._geoPath,"color"],[this,"color"])),this.dispose(E.track([this._geoPath,"hasDash"],[this,"hasDash"])),this.dispose(E.track([this._geoPath,"gapColor"],[this,"gapColor"])),this.dispose(E.track([this._geoPath,"dashLength"],[this,"dashLength"])),this.dispose(E.track([this._geoPath,"dashPattern"],[this,"dashPattern"])),this.dispose(E.track([this._geoPath,"hasArrow"],[this,"hasArrow"])),this.dispose(E.track([this._geoPath,"depthTest"],[this,"depthTest"])),this.dispose(E.track([this._geoPath,"arcType"],[this,"arcType"])),this.dispose(E.track([this._geoPath,"allowPicking"],[this,"allowPicking"]));{const r=()=>{this._geoCanvasPointPoi.show=(this.show??!0)&&(this.currentPoiShow??!0)};r(),this.dispose(this.showChanged.disposableOn(r)),this.dispose(this.currentPoiShowChanged.disposableOn(r))}this.dispose(E.track([this._geoCanvasPointPoi,"position"],[this,"currentPosition"]));{const r=()=>{if(this.positions){const o=this.granularity*Math.PI/180,i=Rp(this.positions,this.arcType??"GEODESIC",o);if(i){this._geoPath.timePosRots=i.timePosRots,this.rotationRadius.some(a=>a>0)?(this._geoPath.addAroundPoints(this.rotationRadius,!0),this._geoPath.computeRotIfUndefinedUsingLerp(!0),this._geoPath.rotLerpMode="Lerp"):(this._geoPath.computeRotIfUndefinedUsingPrevLine(!0),this._geoPath.rotLerpMode=this.rotLerpMode);return}}this._geoPath.timePosRots=[]};r();const s=this.disposeVar(E.createNextAnimateFrameEvent(this.positionsChanged,this.arcTypeChanged,this.granularityChanged,this.rotationRadiusChanged,this.rotLerpModeChanged));this.dispose(s.disposableOn(r))}{const r=()=>{if((this._player.duration??3e3)<=0){this.currentDistance=0;return}const s=this.totalDistance*((this._player.currentTime??0)/(this._player.duration??3e3));Math.abs(s-this.currentDistance)>.01&&(this.currentDistance=s)};r(),this.dispose(this._player.currentTimeChanged.disposableOn(r))}{const r=()=>{if(this.totalDistance<=0){this._player.currentTime=0;return}const s=this.currentDistance/this.totalDistance*(this.duration??3e3);Math.abs(s-(this._player.currentTime??0))>.01&&(this._player.currentTime=s)};r(),this.dispose(this.currentDistanceChanged.disposableOn(r))}this.dispose(E.bind([this._player,"loop"],[this,"loop"])),this.dispose(E.bind([this._player,"currentTime"],[this,"currentTime"])),this.dispose(E.bind([this._player,"duration"],[this,"duration"])),this.dispose(E.bind([this._player,"playing"],[this,"playing"])),this.dispose(E.bind([this._player,"speed"],[this,"speed"])),this.dispose(this._flyToEvent.disposableOn(r=>{this._geoPolyline.flyTo(r)}))}get geoPath(){return this._geoPath}get geoPolyline(){return this._geoPolyline}get geoCanvasPointPoi(){return this._geoCanvasPointPoi}get player(){return this._player}get currentInfo(){return this._geoPath.currentInfo}get currentInfoChanged(){return this._geoPath.currentInfoChanged}get currentIndex(){return this._geoPath.currentIndex}get currentIndexChanged(){return this._geoPath.currentIndexChanged}get currentPosition(){return this._geoPath.currentPosition}get currentPositionChanged(){return this._geoPath.currentPositionChanged}get currentRotation(){return this._geoPath.currentRotation}get currentRotationChanged(){return this._geoPath.currentRotationChanged}get accumDistances(){return this._geoPath.accumDistances}get accumDistancesChanged(){return this._geoPath.accumDistancesChanged}get totalDistance(){return this._geoPath.totalDistance}get totalDistanceChanged(){return this._geoPath.totalDistanceChanged}get flyToEvent(){return this._flyToEvent}flyTo(e){this._flyToEvent.emit(e)}subPath(e,r){const s=this._geoPath.subPath(e,r);if(s)return s.map(o=>o[1])}get currentDistance(){return this._currentDistance.value}set currentDistance(e){this._currentDistance.value=e}get currentDistanceChanged(){return this._currentDistance.changed}get ratio(){return this._ratio.value}set ratio(e){this._ratio.value=e}get ratioChanged(){return this._ratio.changed}get timePosRots(){return this.geoPath.timePosRots}}(t=>{t.createDefaultProps=()=>({show:!0,allowPicking:!1,currentPoiShow:!0,polylineShow:!0,positions:E.reactPositions(void 0),width:1,ground:!1,color:E.reactArray([1,1,1,1]),hasDash:!1,gapColor:E.reactArray([0,0,0,0]),dashLength:16,dashPattern:255,hasArrow:!1,arcType:"GEODESIC",granularity:1,loop:!1,currentTime:0,duration:3e3,speed:1,playing:!1,depthTest:!1,leadTime:0,trailTime:0,rotationRadius:[0],rotLerpMode:"Next"})})(Vs||(Vs={})),E.extendClassProps(Vs.prototype,Vs.createDefaultProps);class Ze extends dr{constructor(e,r){super(e,r);N(this,"_smoothMoving");if(this._smoothMoving=this.disposeVar(new F2(this.czmViewer)),this.d(this._smoothMoving.currentPositionChanged.don(o=>{o&&(this.sceneObject.position=o)})),this.d(this._smoothMoving.currentRotationChanged.don(o=>{o&&this._smoothMoving.isRotating&&(this.sceneObject.rotation=o)})),this.d(this._smoothMoving.currentHeadingChanged.don(o=>{if(o!==void 0&&!this._smoothMoving.isRotating){const i=this.sceneObject.rotation;this.sceneObject.rotation=[o-90,i[1],i[2]]}})),!r.viewer){console.warn("viewer is undefined!");return}this.d(e.smoothMoveEvent.don((o,i)=>{this.smoothMove(o,i*1e3)})),this.d(e.smoothMoveWithRotationEvent.don((o,i,a)=>{this.smoothMoveWithRotation(o,i,a*1e3)})),this.d(e.smoothMoveOnGroundEvent.don((o,i,a)=>{this.smoothMoveOnGround(o,i,a*1e3)})),this.d(e.smoothMoveWithRotationOnGroundEvent.don((o,i,a,l)=>{this.smoothMoveWithRotationOnGround(o,i,a,l*1e3)})),this.d(e.calcFlyToParamEvent.don(()=>{if(!e.useCalcFlyToParamInESObjectWithLocation)return;if(!e.position){console.warn(`!sceneObject(${e.name}-${e.id}).position`);return}const o=r.calcFlyToParam(e.position);if(!o){console.warn("czmViewer.calcFlyToParam error.");return}e.flyToParam=o})),this.d(e.automaticLandingEvent.don(o=>{const i=[e.position[0],e.position[1]],a=r.getTerrainHeight(i);a?e.position=[...i,a]:console.warn("不存在相交"),e.collision=o}));{const o=this.dv(E.createNextAnimateFrameEvent(e.minVisibleDistanceChanged,e.maxVisibleDistanceChanged));this.d(o.don(()=>this.visibleDistance(e,r))),this.d(r.cameraChanged.don(()=>this.visibleDistance(e,r)))}}smoothMove(e,r){this._smoothMoving.isGround=!1,this._smoothMoving.isRotating=!1,this._smoothMoving.restart(this.sceneObject.position,this.sceneObject.rotation,0),this._smoothMoving.restart(e,this.sceneObject.rotation,r)}smoothMoveWithRotation(e,r,s){this._smoothMoving.isGround=!1,this._smoothMoving.isRotating=!0,this._smoothMoving.restart(this.sceneObject.position,this.sceneObject.rotation,0),this._smoothMoving.restart(e,r,s)}smoothMoveOnGround(e,r,s){const o=this.czmViewer.getTerrainHeight([e,r])??0;this._smoothMoving.isGround=!0,this._smoothMoving.isRotating=!1,this._smoothMoving.restart(this.sceneObject.position,this.sceneObject.rotation,0),this._smoothMoving.restart([e,r,o],this.sceneObject.rotation,s)}smoothMoveWithRotationOnGround(e,r,s,o){const i=this.czmViewer.getTerrainHeight([r,s])??0;this._smoothMoving.isGround=!0,this._smoothMoving.isRotating=!0,this._smoothMoving.restart(this.sceneObject.position,this.sceneObject.rotation,0),this._smoothMoving.restart([r,s,i],e,o)}visibleDistance(e,r){var o;const s=Ze.getInnerCzmObjects(this);if((o=r.viewer)!=null&&o.camera&&e.show&&s.length!=0){const i=Q.getDistancesFromPositions([e.position,Nn(r.viewer.camera)],"NONE")[0];let a=!1;e.minVisibleDistance<e.maxVisibleDistance?a=e.minVisibleDistance<i&&i<e.maxVisibleDistance:e.maxVisibleDistance==0&&(a=i>e.minVisibleDistance),s.forEach(l=>{if(l instanceof wt)return;const h=e.show&&a;Reflect.has(l,"showHelper")&&(l.showHelper=h),Reflect.has(l,"enabled")&&(l.enabled=h),Reflect.has(l,"show")&&(l.show=h)})}}static getInnerCzmObjects(e){const r=[];for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(!s.includes("czmViewer")&&s.includes("czm")||!Number.isNaN(+s)?Array.isArray(e[s])?r.push(...Ze.getInnerCzmObjects(e[s])):r.push(e[s]):e[s]&&e[s].obj&&r.push(...Ze.getInnerCzmObjects(e[s].obj)));return r}flyTo(e,r){const{sceneObject:s,czmViewer:o}=this;if(!o.actived)return!1;if(s.flyToParam&&s.position){const{position:i,flyToParam:a}=s,{distance:l,heading:h,pitch:f,flyDuration:u,hDelta:y,pDelta:v}=a;return this.flyToWithPromise(r,i,l,[h,f,0],e??u,y,v),!0}return super.flyTo(e,r)}flyIn(e,r){const{sceneObject:s,czmViewer:o}=this;if(!o.actived)return!1;if(!s.flyInParam&&s.position&&s.rotation){const i=e??1,a=[...s.rotation];return a[0]+=90,this.flyToWithPromise(r,s.position,void 0,a,i),!0}return super.flyIn(e,r)}}class xn extends dr{constructor(n,e){if(super(n,e),!e.viewer){console.warn("viewer is undefined!");return}}}class Pu extends Ze{constructor(e,r){super(e,r);N(this,"_lastHoverResult",this.disposeVar(E.react(void 0)));if(!r.viewer){console.warn("viewer is undefined!");return}this.ad(r.hoverEvent.don(async o=>{const i=await r.pick(o.screenPosition,"innerHoverEvent");this.lastHoverResult=Object.assign({},i,o)}))}get lastHoverResult(){return this._lastHoverResult.value}set lastHoverResult(e){this._lastHoverResult.value=e}get lastHoverResultChanged(){return this._lastHoverResult.changed}}class Xd extends Ze{constructor(n,e){if(super(n,e),!e.viewer){console.warn("viewer is undefined!");return}}}function tV(t){return[t.urlChanged,t.classificationTypeChanged,t.ellipsoidChanged,t.modelUpAxisChanged,t.modelForwardAxisChanged,t.cullWithChildrenBoundsChanged,t.enableShowOutlineChanged,t.projectTo2DChanged,t.debugHeatmapTilePropertyNameChanged,t.enableDebugWireframeChanged,t.vectorClassificationOnlyChanged,t.vectorKeepDecodedPositionsChanged]}function AS(t,n){const e=n;if(e.modelMatrix){F.Matrix4.clone(F.Matrix4.fromArray(e.modelMatrix),t.modelMatrix);return}if(!e.position){F.Matrix4.clone(F.Matrix4.IDENTITY,t.modelMatrix);return}let r=t._root.transform;const s=At({initialRotation:"yForwardzUp",rotation:[0,0,0],position:e.origin});(s&&!s.equalsEpsilon(r,.001)||r.equals(F.Matrix4.IDENTITY))&&s&&(r=s);const o=At({initialRotation:"yForwardzUp",rotation:e.rotation,position:e.position});if(!o){console.warn("modelMatrix is undefined!");return}const i=F.Matrix4.inverseTransformation(r,new F.Matrix4);F.Matrix4.multiply(o,i,t.modelMatrix)}class nV extends E.Destroyable{constructor(n,e,r){super(),this._tileset=n,this._czm3DTiles=e,this._updateMatrixEvent=r;{const s=()=>{const i=F.Matrix4.inverseTransformation(n.clippingPlanesOriginMatrix,new F.Matrix4);if(!n.clippingPlanes){n.clippingPlanes=xl(e.clippingPlanes??{enabled:!1},i);return}Nh(n.clippingPlanes,e.clippingPlanes,i)};s();const o=this.disposeVar(E.createNextAnimateFrameEvent(e.clippingPlanesChanged,e.originRootTransformInvChanged,this._updateMatrixEvent));this.dispose(o.disposableOn(s))}}get tileset(){return this._tileset}get czm3DTiles(){return this._czm3DTiles}}class rV extends E.Destroyable{constructor(n,e){super(),this._tileset=n,this._czm3DTiles=e;const{tileset:r,czm3DTiles:s}=this;{const o=()=>{if(!r.clippingPlanes){r.clippingPlanes=xl(s.clippingPlanes??{enabled:!1});return}Nh(r.clippingPlanes,s.clippingPlanes)};o(),this.dispose(s.clippingPlanesChanged.disposableOn(o))}}get tileset(){return this._tileset}get czm3DTiles(){return this._czm3DTiles}}class iV extends E.Destroyable{constructor(n,e){super(),this._tileset=n,this._czm3DTiles=e;const{tileset:r,czmCzm3DTiles:s}=this;{const o=()=>{r.clippingPolygons=s.clippingPolygons?Vh(s.clippingPolygons):new F.ClippingPolygonCollection};o(),this.dispose(s.clippingPolygonsChanged.disposableOn(o))}}get tileset(){return this._tileset}get czmCzm3DTiles(){return this._czm3DTiles}}class oV extends E.Destroyable{constructor(n,e){super(),this._nativeTilesetReadyResetting=n,this._czmFlattenedPlane=e;const{tileset:r}=this;this.setFlattened(!0),this.dispose(()=>{this.setFlattened(!1)});{const s=()=>{const o=this._czmFlattenedPlane.finalMatrix?F.Matrix4.toArray(this._czmFlattenedPlane.finalMatrix):[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];this.setElevationMatrix(o)};s(),this.dispose(this._czmFlattenedPlane.finalMatrixChanged.disposableOn(s))}{const s=()=>{const i=[...this._czmFlattenedPlane.minSize,...this._czmFlattenedPlane.maxSize];this.setFlattenedBound(i)};s();const o=this.disposeVar(E.createNextAnimateFrameEvent(this._czmFlattenedPlane.minSizeChanged,this._czmFlattenedPlane.maxSizeChanged));this.dispose(o.disposableOn(s))}r.xbsjGetFlattenedTextureFunc=()=>{const{sceneObject:s}=this._czmFlattenedPlane.czmTextureWithId;return s?window.czmTexture[s.id].texture:void 0},this.dispose(()=>r.xbsjGetFlattenedTextureFunc=void 0);{const s=()=>{const o=this._czmFlattenedPlane.computedCustomShader;this._nativeTilesetReadyResetting.flattenedCustomShader=o&&new o(this.czm3DTiles,this.czm3DTiles.czmViewer)};s(),this.dispose(this._czmFlattenedPlane.computedCustomShaderChanged.disposableOn(s)),this.dispose(()=>this._nativeTilesetReadyResetting.flattenedCustomShader=void 0)}}get czm3DTiles(){return this._nativeTilesetReadyResetting.czm3DTiles}get tileset(){return this._nativeTilesetReadyResetting.tileset}get czmFlattenedPlane(){return this._czmFlattenedPlane}setFlattened(n){this.tileset.xbsjFlattened=n}setFlattenedBound(n){this.tileset.xbsjFlattenedBound=F.Cartesian4.fromArray(n)}setElevationMatrix(n){this.tileset.xbsjElevationMatrix=F.Matrix4.fromArray(n)}}function aV(t,n){t.show=n.show??!0,t.colorBlendMode=F.Cesium3DTileColorBlendMode[n.colorBlendMode??"HIGHLIGHT"],t.shadows=(n.shadows&&cn.shadowPropsMap[n.shadows])??cn.shadowPropsMap.ENABLED,t.maximumScreenSpaceError=n.maximumScreenSpaceError??16,t.maximumMemoryUsage=n.maximumMemoryUsage??it.defaults.maximumMemoryUsage,t.cacheBytes=n.cacheBytes??it.defaults.cacheBytes,t.maximumCacheOverflowBytes=n.maximumCacheOverflowBytes??it.defaults.maximumCacheOverflowBytes,t.cullRequestsWhileMoving=n.cullRequestsWhileMoving??!0,t.cullRequestsWhileMovingMultiplier=n.cullRequestsWhileMovingMultiplier??60,t.preloadWhenHidden=n.preloadWhenHidden??!1,t.preloadFlightDestinations=n.preloadFlightDestinations??!0,t.preferLeaves=n.preferLeaves??!1,t.dynamicScreenSpaceError=n.dynamicScreenSpaceError??!1,t.dynamicScreenSpaceErrorDensity=n.dynamicScreenSpaceErrorDensity??.00278,t.dynamicScreenSpaceErrorFactor=n.dynamicScreenSpaceErrorFactor??4,t.dynamicScreenSpaceErrorHeightFalloff=n.dynamicScreenSpaceErrorHeightFalloff??.25,t.progressiveResolutionHeightFraction=n.progressiveResolutionHeightFraction??.3,t.foveatedScreenSpaceError=n.foveatedScreenSpaceError??!0,t.foveatedConeSize=n.foveatedConeSize??.1,t.foveatedMinimumScreenSpaceErrorRelaxation=n.foveatedMinimumScreenSpaceErrorRelaxation??0,t.foveatedTimeDelay=n.foveatedTimeDelay??.2,t.skipLevelOfDetail=n.skipLevelOfDetail??!1,t.baseScreenSpaceError=n.baseScreenSpaceError??1024,t.skipScreenSpaceErrorFactor=n.skipScreenSpaceErrorFactor??16,t.skipLevels=n.skipLevels??1,t.immediatelyLoadDesiredLevelOfDetail=n.immediatelyLoadDesiredLevelOfDetail??!1,t.loadSiblings=n.loadSiblings??!1,t.lightColor=(n.lightColor&&pr(n.lightColor))??it.defaults.lightColor,t.backFaceCulling=n.backFaceCulling??!0,t.showOutline=n.showOutline??!0,t.outlineColor=Oe(n.outlineColor??it.defaults.outlineColor),t.featureIdLabel=n.featureIdLabel??it.defaults.featureIdLabel,t.instanceFeatureIdLabel=n.instanceFeatureIdLabel??it.defaults.instanceFeatureIdLabel,t.showCreditsOnScreen=n.showCreditsOnScreen??!1,t.splitDirection=F.SplitDirection[n.splitDirection??it.defaults.splitDirection],t.debugFreezeFrame=n.debugFreezeFrame??!1,t.debugColorizeTiles=n.debugColorizeTiles??!1,t.debugWireframe=n.debugWireframe??!1,t.debugShowBoundingVolume=n.debugShowBoundingVolume??!1,t.debugShowContentBoundingVolume=n.debugShowContentBoundingVolume??!1,t.debugShowViewerRequestVolume=n.debugShowViewerRequestVolume??!1,t.debugShowGeometricError=n.debugShowGeometricError??!1,t.debugShowRenderingStatistics=n.debugShowRenderingStatistics??!1,t.debugShowMemoryUsage=n.debugShowMemoryUsage??!1,t.debugShowUrl=n.debugShowUrl??!1}function sV(t){return[t.showChanged,t.colorBlendModeChanged,t.shadowsChanged,t.maximumScreenSpaceErrorChanged,t.maximumMemoryUsageChanged,t.cacheBytesChanged,t.maximumCacheOverflowBytesChanged,t.cullRequestsWhileMovingChanged,t.cullRequestsWhileMovingMultiplierChanged,t.preloadWhenHiddenChanged,t.preloadFlightDestinationsChanged,t.preferLeavesChanged,t.dynamicScreenSpaceErrorChanged,t.dynamicScreenSpaceErrorDensityChanged,t.dynamicScreenSpaceErrorFactorChanged,t.dynamicScreenSpaceErrorHeightFalloffChanged,t.progressiveResolutionHeightFractionChanged,t.foveatedScreenSpaceErrorChanged,t.foveatedConeSizeChanged,t.foveatedMinimumScreenSpaceErrorRelaxationChanged,t.foveatedTimeDelayChanged,t.skipLevelOfDetailChanged,t.baseScreenSpaceErrorChanged,t.skipScreenSpaceErrorFactorChanged,t.skipLevelsChanged,t.immediatelyLoadDesiredLevelOfDetailChanged,t.loadSiblingsChanged,t.lightColorChanged,t.backFaceCullingChanged,t.showOutlineChanged,t.outlineColorChanged,t.featureIdLabelChanged,t.instanceFeatureIdLabelChanged,t.showCreditsOnScreenChanged,t.splitDirectionChanged,t.debugFreezeFrameChanged,t.debugColorizeTilesChanged,t.debugWireframeChanged,t.debugShowBoundingVolumeChanged,t.debugShowContentBoundingVolumeChanged,t.debugShowViewerRequestVolumeChanged,t.debugShowGeometricErrorChanged,t.debugShowRenderingStatisticsChanged,t.debugShowMemoryUsageChanged,t.debugShowUrlChanged,t.enableShowOutlineChanged]}function lV(t,n){console.warn("Czm3DTiles暂不支持pointCloudShading属性"),t.pointCloudShading=new F.PointCloudShading(n.pointCloudShading)}function uV(t,n){var r,s,o;t.imageBasedLighting.imageBasedLightingFactor=rt(((r=n.imageBasedLighting)==null?void 0:r.imageBasedLightingFactor)??[1,1]),t.imageBasedLighting.specularEnvironmentMaps=(s=n.imageBasedLighting)==null?void 0:s.specularEnvironmentMaps;const e=(o=n.imageBasedLighting)==null?void 0:o.sphericalHarmonicCoefficients;t.imageBasedLighting.sphericalHarmonicCoefficients=e&&Qp(e)}class cV extends E.Destroyable{constructor(e,r,s,o){super();N(this,"_clippingPlanesCollectionResetting");N(this,"_clippingPolygonCollectionResetting");N(this,"_flattenedCustomShader",this.disposeVar(E.react(void 0)));this._tileset=e,this._czm3DTiles=r,this._czmNativeViewer=s,this._czmViewer=o,this._clippingPolygonCollectionResetting=new iV(this.tileset,this.czm3DTiles);const{tileset:i,czm3DTiles:a}=this;{const p=this.disposeVar(E.createNextAnimateFrameEvent(this.czm3DTiles.positionChanged,this.czm3DTiles.rotationChanged,this.czm3DTiles.modelMatrixChanged,this.czm3DTiles.originChanged));AS(this.tileset,this.czm3DTiles),this.dispose(p.disposableOn(()=>AS(this.tileset,this.czm3DTiles))),this._clippingPlanesCollectionResetting=this.disposeVar(new E.ObjResettingWithEvent(this.czm3DTiles.absoluteClippingPlanesChanged,()=>this.czm3DTiles.absoluteClippingPlanes?new nV(this.tileset,this.czm3DTiles,p):new rV(this.tileset,this.czm3DTiles)))}this.disposeVar(new E.ObjResettingWithEvent(this.czm3DTiles.czmFlattenedPlaneWithId.sceneObjectChanged,()=>{const{sceneObject:p}=this.czm3DTiles.czmFlattenedPlaneWithId;if(!p)return;let d;Q.registerCreatedEventUpdate(this,p,()=>{const c=o.getEngineObject(p);if(p instanceof Q.ES3DTileset&&(d=c.flattenedPlane),!!d)return new oV(this,d)})}));const l=this.disposeVar(E.createNextAnimateFrameEvent(...sV(a)));Q.registerEventUpdate(this,l,()=>{aV(i,a)}),Q.registerEventUpdate(this,a.foveatedInterpolationCallbackChanged,()=>{i.foveatedInterpolationCallback=a.foveatedInterpolationCallback}),Q.registerEventUpdate(this,a.styleChanged,()=>{i.style=a.style}),Q.registerEventUpdate(this,a.pointCloudShadingChanged,()=>{lV(i,a)}),Q.registerEventUpdate(this,a.imageBasedLightingChanged,()=>{uV(i,a)}),Q.registerEventUpdate(this,a.environmentMapManagerChanged,()=>{Vp(i.environmentMapManager,a)});let h=[],f,u,y=!0,v=()=>{var p;return(p=o.viewer)==null?void 0:p.scene.postUpdate.addEventListener(d=>{i._selectedTiles.length===h.length&&h.every(c=>i._selectedTiles.includes(c))||(h.splice(0,h.length,...i._selectedTiles),i._selectedTiles.forEach(c=>{Pl(c.content._model,f)}))})};const g=()=>{u&&(u(),u=void 0),h=[],f=void 0};this.ad(g);const m=(p,d)=>{d=="default"?p._contentState=F.Cesium3DTileContentState.UNLOADED:p.content&&Reflect.has(p.content,"_model")&&!Pl(p.content._model,d)&&y&&(y=!1),p.children&&p.children.forEach(c=>{m(c,d)})};this.ad(a.setMaterialEvent.don(async p=>{let d,c;if(y=!0,p=="default")g(),d=c=void 0,m(i.root,"default");else{f={};for(const w in p){const b=p[w];f[w]={...b},Reflect.has(b,"baseColorTexture")&&(b.baseColorTexture==null?f[w].baseColorTexture=void 0:b.baseColorTexture.value!=""&&(d=Tl(this._czmViewer.viewer,b.baseColorTexture,{magFilter:b.magFilter,minFilter:b.minFilter}))),Reflect.has(b,"normalTexture")&&(b.normalTexture==null?f[w].normalTexture=void 0:b.normalTexture.value!=""&&(c=Tl(this._czmViewer.viewer,b.normalTexture,{magFilter:b.magFilter,minFilter:b.minFilter})));const _=await Promise.allSettled([d,c]);d=_[0].value,c=_[1].value,d!=null&&(f[w].baseColorTexture=d),c!=null&&(f[w].normalTexture=c)}m(i.root,f),u||(u=v())}const A=Q.ESSceneObject.getSceneObject(this.czm3DTiles.id);A&&A instanceof Q.ES3DTileset&&A.setMaterialInfoEvent.emit({type:y?"success":"warn",message:y?"完成":"部分材质颜色纹理设置失败,请检查原始模型中材质是否具有baseColorTexture属性"})}));{const p=()=>{var c,A;if(this.flattenedCustomShader){i.customShader=(c=this.flattenedCustomShader)==null?void 0:c.customShader,a.customShaderInstance&&console.warn("压平shader和Czm3DTiles的customShader冲突,优先使用压平shader!");return}i.customShader=(A=a.customShaderInstance)==null?void 0:A.customShader};p();const d=this.disposeVar(E.createNextAnimateFrameEvent(a.customShaderInstanceChanged,this.flattenedCustomShaderChanged));this.dispose(d.disposableOn(p))}this.dispose(a.flyToEvent.disposableOn(p=>{a.czmViewer.actived&&this.tileset&&this._czmNativeViewer.camera.flyToBoundingSphere(this.tileset.boundingSphere,{duration:(p??1e3)/1e3})}))}get tileset(){return this._tileset}get czm3DTiles(){return this._czm3DTiles}get clippingPlanesCollectionResetting(){return this._clippingPlanesCollectionResetting}get clippingPolygonCollectionResetting(){return this._clippingPolygonCollectionResetting}get flattenedCustomShader(){return this._flattenedCustomShader.value}set flattenedCustomShader(e){this._flattenedCustomShader.value=e}get flattenedCustomShaderChanged(){return this._flattenedCustomShader.changed}}function hV(t){const{imageBasedLightingFactor:n,sphericalHarmonicCoefficients:e,specularEnvironmentMaps:r}=t,s={imageBasedLightingFactor:n&&new F.Cartesian2(n[0],n[1]),sphericalHarmonicCoefficients:e&&e.map(o=>new F.Cartesian3(o[0],o[1],o[2])),specularEnvironmentMaps:r&&Q.ESSceneObject.context.getStrFromEnv(r)};return new F.ImageBasedLighting(s)}async function fV(t,n,e){let r="";if(typeof n!="string"?typeof n=="object"&&n.url&&(r=new F.Resource({url:n.url,headers:n.headers,queryParameters:n.queryParameters,templateValues:n.templateValues,proxy:n.proxy,retryCallback:n.retryCallback,retryAttempts:n.retryAttempts,request:n.request,parseUrl:n.parseUrl})):r=n,typeof n=="string"&&n.startsWith("ion://")){const i=+n.substring(6);try{r=await F.IonResource.fromAssetId(i)}catch(a){console.error(`Ion资源未能获取到 error: ${a}`,a);return}}const s=await F.Cesium3DTileset.fromUrl(r,{show:t.show,shadows:t.shadows&&cn.shadowPropsMap[t.shadows],maximumScreenSpaceError:t.maximumScreenSpaceError,maximumMemoryUsage:t.maximumMemoryUsage,cacheBytes:t.cacheBytes,maximumCacheOverflowBytes:t.maximumCacheOverflowBytes,cullWithChildrenBounds:t.cullWithChildrenBounds,cullRequestsWhileMoving:t.cullRequestsWhileMoving,cullRequestsWhileMovingMultiplier:t.cullRequestsWhileMovingMultiplier,preloadWhenHidden:t.preloadWhenHidden,preloadFlightDestinations:t.preloadFlightDestinations,preferLeaves:t.preferLeaves,dynamicScreenSpaceError:t.dynamicScreenSpaceError,dynamicScreenSpaceErrorDensity:t.dynamicScreenSpaceErrorDensity,dynamicScreenSpaceErrorFactor:t.dynamicScreenSpaceErrorFactor,dynamicScreenSpaceErrorHeightFalloff:t.dynamicScreenSpaceErrorHeightFalloff,progressiveResolutionHeightFraction:t.progressiveResolutionHeightFraction,foveatedScreenSpaceError:t.foveatedScreenSpaceError,foveatedConeSize:t.foveatedConeSize,foveatedMinimumScreenSpaceErrorRelaxation:t.foveatedMinimumScreenSpaceErrorRelaxation,foveatedInterpolationCallback:t.foveatedInterpolationCallbackStr&&Function('"use strict";return ('+t.foveatedInterpolationCallbackStr+")")(),foveatedTimeDelay:t.foveatedTimeDelay,skipLevelOfDetail:t.skipLevelOfDetail,baseScreenSpaceError:t.baseScreenSpaceError,skipScreenSpaceErrorFactor:t.skipScreenSpaceErrorFactor,skipLevels:t.skipLevels,immediatelyLoadDesiredLevelOfDetail:t.immediatelyLoadDesiredLevelOfDetail,loadSiblings:t.loadSiblings,classificationType:cn.classificationTypeMap[t.classificationType??it.defaults.classificationType],lightColor:t.lightColor&&Tr(t.lightColor),backFaceCulling:t.backFaceCulling??it.defaults.backFaceCulling,showOutline:t.showOutline??it.defaults.showOutline,debugHeatmapTilePropertyName:t.debugHeatmapTilePropertyName,debugFreezeFrame:t.debugFreezeFrame,debugColorizeTiles:t.debugColorizeTiles,debugWireframe:t.debugWireframe,debugShowBoundingVolume:t.debugShowBoundingVolume,debugShowContentBoundingVolume:t.debugShowContentBoundingVolume,debugShowViewerRequestVolume:t.debugShowViewerRequestVolume,debugShowGeometricError:t.debugShowGeometricError,debugShowRenderingStatistics:t.debugShowRenderingStatistics,debugShowMemoryUsage:t.debugShowMemoryUsage,debugShowUrl:t.debugShowUrl,customShader:e,ellipsoid:et(t.ellipsoid??it.defaults.ellipsoid),modelMatrix:t.modelMatrix&&F.Matrix4.fromArray(t.modelMatrix),clippingPlanes:t.clippingPlanes&&xl(t.clippingPlanes),clippingPolygons:t.clippingPolygons&&Vh(t.clippingPolygons),imageBasedLighting:t.imageBasedLighting&&hV(t.imageBasedLighting),splitDirection:F.SplitDirection[t.splitDirection??it.defaults.splitDirection],modelUpAxis:t.modelUpAxis&&F.Axis[t.modelUpAxis],modelForwardAxis:t.modelForwardAxis&&F.Axis[t.modelForwardAxis],featureIdLabel:t.featureIdLabel??it.defaults.featureIdLabel,instanceFeatureIdLabel:t.instanceFeatureIdLabel??it.defaults.instanceFeatureIdLabel,outlineColor:t.outlineColor&&Oe(t.outlineColor),pointCloudShading:t.pointCloudShading,enableShowOutline:t.enableShowOutline,vectorClassificationOnly:t.vectorClassificationOnly,vectorKeepDecodedPositions:t.vectorKeepDecodedPositions,showCreditsOnScreen:t.showCreditsOnScreen,projectTo2D:t.projectTo2D,enableDebugWireframe:t.enableDebugWireframe});return F.Cesium3DTileset.prototype&&(s.ESSceneObjectID=t.id),s}class dV extends E.Destroyable{constructor(e,r,s,o){var l;super();N(this,"_tileset",this.disposeVar(E.react(void 0)));N(this,"_readyResetting");if(this._url=e,this._czm3DTiles=r,this._czmNativeViewer=s,this._czmViewer=o,this._readyResetting=this.disposeVar(new E.ObjResettingWithEvent(this.tilesetChanged,()=>{if(this.tileset)return new cV(this.tileset,this.czm3DTiles,this._czmNativeViewer,this._czmViewer)})),!this.url)throw new Error("!url");const i=(l=this.czm3DTiles.customShaderInstance)==null?void 0:l.customShader;this.disposeVar(E.createProcessingFromAsyncFunc(async h=>{const f=await h.promise(fV(this.czm3DTiles,this.url,i));f&&(f.style=this.czm3DTiles.style,f.foveatedInterpolationCallback=this.czm3DTiles.foveatedInterpolationCallback,this._czmNativeViewer.scene.primitives.add(f),this.dispose(()=>this._czmNativeViewer.scene.primitives.remove(f)),this._tileset.value=f,this.czm3DTiles.notifyCzmTilesetReady(f,this.czm3DTiles))})).start()}get url(){return this._url}get czm3DTiles(){return this._czm3DTiles}get czmViewer(){return this.czm3DTiles.czmViewer}get tileset(){return this._tileset.value}set tileset(e){this._tileset.value=e}get tilesetChanged(){return this._tileset.changed}get readyResetting(){return this._readyResetting}}function pV(t){if(t)try{return new F.Cesium3DTileStyle(t)}catch(n){console.error(`Cesium3DTiles style error: ${n}`,n);return}}class AV extends E.Destroyable{constructor(n,e){super(),this.dv(new E.ObjResettingWithEvent(e.clippingPolygonsIdChanged,(r,s)=>{if(!(!r||r===s||r&&r.length===0))return new mV(n,e)}))}}class mV extends E.Destroyable{constructor(n,e){super(),this._czmViewer=n;const r=e.clippingPolygonsId;this.d(()=>e.clippingPolygons=void 0);const s=i=>{const a=this.dv(E.createNextAnimateFrameEvent(i.positionsChanged,i.reverseChanged,i.enabledChanged,i.showHelperChanged));this.dv(new E.ObjResettingWithEvent(a,()=>new yV(n,i,e)))},o=i=>{let a;i instanceof Q.ESExcavate&&Q.registerCreatedEventUpdate(this,i,()=>{a=n.getEngineObject(i).czmPolygonClipping,s(a)}),i instanceof Q.ESHole&&Q.registerCreatedEventUpdate(this,i.excavate,()=>{a=n.getEngineObject(i.excavate).czmPolygonClipping,s(a)})};for(let i=0;i<r.length;i++){const a=r[i],l=Q.ESSceneObject.getSceneObjById(a);l&&o(l)}}}class yV extends E.Destroyable{constructor(n,e,r){super(),this._czmViewer=n;const s=r.clippingPolygonsId,o=e.enabled?e.reverse:void 0;if(s&&s.length>0){const i={polygons:[],enabled:!0,inverse:!1};for(let a=0;a<s.length;a++){const l=s[a],h=Q.ESSceneObject.getSceneObjById(l);if(!h)return;let f;do{if(h instanceof Q.ESExcavate){f=n.getEngineObject(h).czmPolygonClipping;break}if(h instanceof Q.ESHole){f=n.getEngineObject(h.excavate).czmPolygonClipping;break}}while(!1);if(!f)return;f&&f.positions&&f.positions.length>=3&&f.enabled&&(i.polygons[a]={positions:f.positions},i.inverse=o??f.reverse)}r.clippingPolygons=i}}}function mS(t){let n;try{n=t&&Function('"use strict";return ('+t+")")()}catch{n=void 0}return n||F.Math.lerp}const yS=`
3346
+ `},9037:function(o,i,a){o.exports=function(){return a(9855)('/*! For license information please see d179b5c18890f1583797.worker.js.LICENSE.txt */\n!function(){var t={1795:function(t,e,n){var r=n(5752);function i(t){var e=0;if(t&&t.length>0){e+=Math.abs(o(t[0]));for(var n=1;n<t.length;n++)e-=Math.abs(o(t[n]))}return e}function o(t){var e,n,i,o,s,u,l=0,c=t.length;if(c>2){for(u=0;u<c;u++)u===c-2?(i=c-2,o=c-1,s=0):u===c-1?(i=c-1,o=0,s=1):(i=u,o=u+1,s=u+2),e=t[i],n=t[o],l+=(a(t[s][0])-a(e[0]))*Math.sin(a(n[1]));l=l*r.RADIUS*r.RADIUS/2}return l}function a(t){return t*Math.PI/180}t.exports.geometry=function t(e){var n,r=0;switch(e.type){case"Polygon":return i(e.coordinates);case"MultiPolygon":for(n=0;n<e.coordinates.length;n++)r+=i(e.coordinates[n]);return r;case"Point":case"MultiPoint":case"LineString":case"MultiLineString":return 0;case"GeometryCollection":for(n=0;n<e.geometries.length;n++)r+=t(e.geometries[n]);return r}},t.exports.ring=o},5550:function(t){"use strict";function e(t,e){this.x=t,this.y=e}t.exports=e,e.prototype={clone:function(){return new e(this.x,this.y)},add:function(t){return this.clone()._add(t)},sub:function(t){return this.clone()._sub(t)},multByPoint:function(t){return this.clone()._multByPoint(t)},divByPoint:function(t){return this.clone()._divByPoint(t)},mult:function(t){return this.clone()._mult(t)},div:function(t){return this.clone()._div(t)},rotate:function(t){return this.clone()._rotate(t)},rotateAround:function(t,e){return this.clone()._rotateAround(t,e)},matMult:function(t){return this.clone()._matMult(t)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(t){return this.x===t.x&&this.y===t.y},dist:function(t){return Math.sqrt(this.distSqr(t))},distSqr:function(t){var e=t.x-this.x,n=t.y-this.y;return e*e+n*n},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(t){return Math.atan2(this.y-t.y,this.x-t.x)},angleWith:function(t){return this.angleWithSep(t.x,t.y)},angleWithSep:function(t,e){return Math.atan2(this.x*e-this.y*t,this.x*t+this.y*e)},_matMult:function(t){var e=t[0]*this.x+t[1]*this.y,n=t[2]*this.x+t[3]*this.y;return this.x=e,this.y=n,this},_add:function(t){return this.x+=t.x,this.y+=t.y,this},_sub:function(t){return this.x-=t.x,this.y-=t.y,this},_mult:function(t){return this.x*=t,this.y*=t,this},_div:function(t){return this.x/=t,this.y/=t,this},_multByPoint:function(t){return this.x*=t.x,this.y*=t.y,this},_divByPoint:function(t){return this.x/=t.x,this.y/=t.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var t=this.y;return this.y=this.x,this.x=-t,this},_rotate:function(t){var e=Math.cos(t),n=Math.sin(t),r=e*this.x-n*this.y,i=n*this.x+e*this.y;return this.x=r,this.y=i,this},_rotateAround:function(t,e){var n=Math.cos(t),r=Math.sin(t),i=e.x+n*(this.x-e.x)-r*(this.y-e.y),o=e.y+r*(this.x-e.x)+n*(this.y-e.y);return this.x=i,this.y=o,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},e.convert=function(t){return t instanceof e?t:Array.isArray(t)?new e(t[0],t[1]):t}},3775:function(t){t.exports=function(){function t(t,e,n){n=n||{},this.w=t||64,this.h=e||64,this.autoResize=!!n.autoResize,this.shelves=[],this.freebins=[],this.stats={},this.bins={},this.maxId=0}function e(t,e,n){this.x=0,this.y=t,this.w=this.free=e,this.h=n}function n(t,e,n,r,i,o,a){this.id=t,this.x=e,this.y=n,this.w=r,this.h=i,this.maxw=o||r,this.maxh=a||i,this.refcount=0}return t.prototype.pack=function(t,e){t=[].concat(t),e=e||{};for(var n,r,i,o,a=[],s=0;s<t.length;s++)if(n=t[s].w||t[s].width,r=t[s].h||t[s].height,i=t[s].id,n&&r){if(!(o=this.packOne(n,r,i)))continue;e.inPlace&&(t[s].x=o.x,t[s].y=o.y,t[s].id=o.id),a.push(o)}return this.shrink(),a},t.prototype.packOne=function(t,n,r){var i,o,a,s,u,l,c,f,p={freebin:-1,shelf:-1,waste:1/0},h=0;if("string"==typeof r||"number"==typeof r){if(i=this.getBin(r))return this.ref(i),i;"number"==typeof r&&(this.maxId=Math.max(r,this.maxId))}else r=++this.maxId;for(s=0;s<this.freebins.length;s++){if(n===(i=this.freebins[s]).maxh&&t===i.maxw)return this.allocFreebin(s,t,n,r);n>i.maxh||t>i.maxw||n<=i.maxh&&t<=i.maxw&&(a=i.maxw*i.maxh-t*n)<p.waste&&(p.waste=a,p.freebin=s)}for(s=0;s<this.shelves.length;s++)if(h+=(o=this.shelves[s]).h,!(t>o.free)){if(n===o.h)return this.allocShelf(s,t,n,r);n>o.h||n<o.h&&(a=(o.h-n)*t)<p.waste&&(p.freebin=-1,p.waste=a,p.shelf=s)}return-1!==p.freebin?this.allocFreebin(p.freebin,t,n,r):-1!==p.shelf?this.allocShelf(p.shelf,t,n,r):n<=this.h-h&&t<=this.w?(o=new e(h,this.w,n),this.allocShelf(this.shelves.push(o)-1,t,n,r)):this.autoResize?(u=l=this.h,((c=f=this.w)<=u||t>c)&&(f=2*Math.max(t,c)),(u<c||n>u)&&(l=2*Math.max(n,u)),this.resize(f,l),this.packOne(t,n,r)):null},t.prototype.allocFreebin=function(t,e,n,r){var i=this.freebins.splice(t,1)[0];return i.id=r,i.w=e,i.h=n,i.refcount=0,this.bins[r]=i,this.ref(i),i},t.prototype.allocShelf=function(t,e,n,r){var i=this.shelves[t].alloc(e,n,r);return this.bins[r]=i,this.ref(i),i},t.prototype.shrink=function(){if(this.shelves.length>0){for(var t=0,e=0,n=0;n<this.shelves.length;n++){var r=this.shelves[n];e+=r.h,t=Math.max(r.w-r.free,t)}this.resize(t,e)}},t.prototype.getBin=function(t){return this.bins[t]},t.prototype.ref=function(t){if(1==++t.refcount){var e=t.h;this.stats[e]=1+(0|this.stats[e])}return t.refcount},t.prototype.unref=function(t){return 0===t.refcount?0:(0==--t.refcount&&(this.stats[t.h]--,delete this.bins[t.id],this.freebins.push(t)),t.refcount)},t.prototype.clear=function(){this.shelves=[],this.freebins=[],this.stats={},this.bins={},this.maxId=0},t.prototype.resize=function(t,e){this.w=t,this.h=e;for(var n=0;n<this.shelves.length;n++)this.shelves[n].resize(t);return!0},e.prototype.alloc=function(t,e,r){if(t>this.free||e>this.h)return null;var i=this.x;return this.x+=t,this.free-=t,new n(r,i,this.y,t,e,t,this.h)},e.prototype.resize=function(t){return this.free+=t-this.w,this.w=t,!0},t}()},9874:function(t){function e(t,e,n,r){this.cx=3*t,this.bx=3*(n-t)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*e,this.by=3*(r-e)-this.cy,this.ay=1-this.cy-this.by,this.p1x=t,this.p1y=r,this.p2x=n,this.p2y=r}t.exports=e,e.prototype.sampleCurveX=function(t){return((this.ax*t+this.bx)*t+this.cx)*t},e.prototype.sampleCurveY=function(t){return((this.ay*t+this.by)*t+this.cy)*t},e.prototype.sampleCurveDerivativeX=function(t){return(3*this.ax*t+2*this.bx)*t+this.cx},e.prototype.solveCurveX=function(t,e){var n,r,i,o,a;for(void 0===e&&(e=1e-6),i=t,a=0;a<8;a++){if(o=this.sampleCurveX(i)-t,Math.abs(o)<e)return i;var s=this.sampleCurveDerivativeX(i);if(Math.abs(s)<1e-6)break;i-=o/s}if((i=t)<(n=0))return n;if(i>(r=1))return r;for(;n<r;){if(o=this.sampleCurveX(i),Math.abs(o-t)<e)return i;t>o?n=i:r=i,i=.5*(r-n)+n}return i},e.prototype.solve=function(t,e){return this.sampleCurveY(this.solveCurveX(t,e))}},8929:function(t,e,n){t.exports.VectorTile=n(4054),t.exports.VectorTileFeature=n(6024),t.exports.VectorTileLayer=n(9701)},4054:function(t,e,n){"use strict";var r=n(9701);function i(t,e,n){if(3===t){var i=new r(n,n.readVarint()+n.pos);i.length&&(e[i.name]=i)}}t.exports=function(t,e){this.layers=t.readFields(i,{},e)}},6024:function(t,e,n){"use strict";var r=n(5550);function i(t,e,n,r,i){this.properties={},this.extent=n,this.type=0,this._pbf=t,this._geometry=-1,this._keys=r,this._values=i,t.readFields(o,this,e)}function o(t,e,n){1==t?e.id=n.readVarint():2==t?function(t,e){for(var n=t.readVarint()+t.pos;t.pos<n;){var r=e._keys[t.readVarint()],i=e._values[t.readVarint()];e.properties[r]=i}}(n,e):3==t?e.type=n.readVarint():4==t&&(e._geometry=n.pos)}function a(t){for(var e,n,r=0,i=0,o=t.length,a=o-1;i<o;a=i++)e=t[i],r+=((n=t[a]).x-e.x)*(e.y+n.y);return r}t.exports=i,i.types=["Unknown","Point","LineString","Polygon"],i.prototype.loadGeometry=function(){var t=this._pbf;t.pos=this._geometry;for(var e,n=t.readVarint()+t.pos,i=1,o=0,a=0,s=0,u=[];t.pos<n;){if(o<=0){var l=t.readVarint();i=7&l,o=l>>3}if(o--,1===i||2===i)a+=t.readSVarint(),s+=t.readSVarint(),1===i&&(e&&u.push(e),e=[]),e.push(new r(a,s));else{if(7!==i)throw new Error("unknown command "+i);e&&e.push(e[0].clone())}}return e&&u.push(e),u},i.prototype.bbox=function(){var t=this._pbf;t.pos=this._geometry;for(var e=t.readVarint()+t.pos,n=1,r=0,i=0,o=0,a=1/0,s=-1/0,u=1/0,l=-1/0;t.pos<e;){if(r<=0){var c=t.readVarint();n=7&c,r=c>>3}if(r--,1===n||2===n)(i+=t.readSVarint())<a&&(a=i),i>s&&(s=i),(o+=t.readSVarint())<u&&(u=o),o>l&&(l=o);else if(7!==n)throw new Error("unknown command "+n)}return[a,u,s,l]},i.prototype.toGeoJSON=function(t,e,n){var r,o,s=this.extent*Math.pow(2,n),u=this.extent*t,l=this.extent*e,c=this.loadGeometry(),f=i.types[this.type];function p(t){for(var e=0;e<t.length;e++){var n=t[e],r=180-360*(n.y+l)/s;t[e]=[360*(n.x+u)/s-180,360/Math.PI*Math.atan(Math.exp(r*Math.PI/180))-90]}}switch(this.type){case 1:var h=[];for(r=0;r<c.length;r++)h[r]=c[r][0];p(c=h);break;case 2:for(r=0;r<c.length;r++)p(c[r]);break;case 3:for(c=function(t){var e=t.length;if(e<=1)return[t];for(var n,r,i=[],o=0;o<e;o++){var s=a(t[o]);0!==s&&(void 0===r&&(r=s<0),r===s<0?(n&&i.push(n),n=[t[o]]):n.push(t[o]))}return n&&i.push(n),i}(c),r=0;r<c.length;r++)for(o=0;o<c[r].length;o++)p(c[r][o])}1===c.length?c=c[0]:f="Multi"+f;var y={type:"Feature",geometry:{type:f,coordinates:c},properties:this.properties};return"id"in this&&(y.id=this.id),y}},9701:function(t,e,n){"use strict";var r=n(6024);function i(t,e){this.version=1,this.name=null,this.extent=4096,this.length=0,this._pbf=t,this._keys=[],this._values=[],this._features=[],t.readFields(o,this,e),this.length=this._features.length}function o(t,e,n){15===t?e.version=n.readVarint():1===t?e.name=n.readString():5===t?e.extent=n.readVarint():2===t?e._features.push(n.pos):3===t?e._keys.push(n.readString()):4===t&&e._values.push(function(t){for(var e=null,n=t.readVarint()+t.pos;t.pos<n;){var r=t.readVarint()>>3;e=1===r?t.readString():2===r?t.readFloat():3===r?t.readDouble():4===r?t.readVarint64():5===r?t.readVarint():6===r?t.readSVarint():7===r?t.readBoolean():null}return e}(n))}t.exports=i,i.prototype.feature=function(t){if(t<0||t>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[t];var e=this._pbf.readVarint()+this._pbf.pos;return new r(this._pbf,e,this.extent,this._keys,this._values)}},8583:function(t,e,n){"use strict";var r=n(7418);function i(t,e){if(t===e)return 0;for(var n=t.length,r=e.length,i=0,o=Math.min(n,r);i<o;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?1:0}function o(t){return n.g.Buffer&&"function"==typeof n.g.Buffer.isBuffer?n.g.Buffer.isBuffer(t):!(null==t||!t._isBuffer)}var a=n(69),s=Object.prototype.hasOwnProperty,u=Array.prototype.slice,l="foo"===function(){}.name;function c(t){return Object.prototype.toString.call(t)}function f(t){return!o(t)&&"function"==typeof n.g.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):!!t&&(t instanceof DataView||!!(t.buffer&&t.buffer instanceof ArrayBuffer)))}var p=t.exports=g,h=/\\s*function\\s+([^\\(\\s]*)\\s*/;function y(t){if(a.isFunction(t)){if(l)return t.name;var e=t.toString().match(h);return e&&e[1]}}function d(t,e){return"string"==typeof t?t.length<e?t:t.slice(0,e):t}function v(t){if(l||!a.isFunction(t))return a.inspect(t);var e=y(t);return"[Function"+(e?": "+e:"")+"]"}function m(t,e,n,r,i){throw new p.AssertionError({message:n,actual:t,expected:e,operator:r,stackStartFunction:i})}function g(t,e){t||m(t,!0,e,"==",p.ok)}function b(t,e,n,r){if(t===e)return!0;if(o(t)&&o(e))return 0===i(t,e);if(a.isDate(t)&&a.isDate(e))return t.getTime()===e.getTime();if(a.isRegExp(t)&&a.isRegExp(e))return t.source===e.source&&t.global===e.global&&t.multiline===e.multiline&&t.lastIndex===e.lastIndex&&t.ignoreCase===e.ignoreCase;if(null!==t&&"object"==typeof t||null!==e&&"object"==typeof e){if(f(t)&&f(e)&&c(t)===c(e)&&!(t instanceof Float32Array||t instanceof Float64Array))return 0===i(new Uint8Array(t.buffer),new Uint8Array(e.buffer));if(o(t)!==o(e))return!1;var s=(r=r||{actual:[],expected:[]}).actual.indexOf(t);return-1!==s&&s===r.expected.indexOf(e)||(r.actual.push(t),r.expected.push(e),function(t,e,n,r){if(null==t||null==e)return!1;if(a.isPrimitive(t)||a.isPrimitive(e))return t===e;if(n&&Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1;var i=x(t),o=x(e);if(i&&!o||!i&&o)return!1;if(i)return b(t=u.call(t),e=u.call(e),n);var s,l,c=S(t),f=S(e);if(c.length!==f.length)return!1;for(c.sort(),f.sort(),l=c.length-1;l>=0;l--)if(c[l]!==f[l])return!1;for(l=c.length-1;l>=0;l--)if(!b(t[s=c[l]],e[s],n,r))return!1;return!0}(t,e,n,r))}return n?t===e:t==e}function x(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function w(t,e){if(!t||!e)return!1;if("[object RegExp]"==Object.prototype.toString.call(e))return e.test(t);try{if(t instanceof e)return!0}catch(t){}return!Error.isPrototypeOf(e)&&!0===e.call({},t)}function k(t,e,n,r){var i;if("function"!=typeof e)throw new TypeError(\'"block" argument must be a function\');"string"==typeof n&&(r=n,n=null),i=function(t){var e;try{t()}catch(t){e=t}return e}(e),r=(n&&n.name?" ("+n.name+").":".")+(r?" "+r:"."),t&&!i&&m(i,n,"Missing expected exception"+r);var o="string"==typeof r,s=!t&&i&&!n;if((!t&&a.isError(i)&&o&&w(i,n)||s)&&m(i,n,"Got unwanted exception"+r),t&&i&&n&&!w(i,n)||!t&&i)throw i}p.AssertionError=function(t){this.name="AssertionError",this.actual=t.actual,this.expected=t.expected,this.operator=t.operator,t.message?(this.message=t.message,this.generatedMessage=!1):(this.message=function(t){return d(v(t.actual),128)+" "+t.operator+" "+d(v(t.expected),128)}(this),this.generatedMessage=!0);var e=t.stackStartFunction||m;if(Error.captureStackTrace)Error.captureStackTrace(this,e);else{var n=new Error;if(n.stack){var r=n.stack,i=y(e),o=r.indexOf("\\n"+i);if(o>=0){var a=r.indexOf("\\n",o+1);r=r.substring(a+1)}this.stack=r}}},a.inherits(p.AssertionError,Error),p.fail=m,p.ok=g,p.equal=function(t,e,n){t!=e&&m(t,e,n,"==",p.equal)},p.notEqual=function(t,e,n){t==e&&m(t,e,n,"!=",p.notEqual)},p.deepEqual=function(t,e,n){b(t,e,!1)||m(t,e,n,"deepEqual",p.deepEqual)},p.deepStrictEqual=function(t,e,n){b(t,e,!0)||m(t,e,n,"deepStrictEqual",p.deepStrictEqual)},p.notDeepEqual=function(t,e,n){b(t,e,!1)&&m(t,e,n,"notDeepEqual",p.notDeepEqual)},p.notDeepStrictEqual=function t(e,n,r){b(e,n,!0)&&m(e,n,r,"notDeepStrictEqual",t)},p.strictEqual=function(t,e,n){t!==e&&m(t,e,n,"===",p.strictEqual)},p.notStrictEqual=function(t,e,n){t===e&&m(t,e,n,"!==",p.notStrictEqual)},p.throws=function(t,e,n){k(!0,t,e,n)},p.doesNotThrow=function(t,e,n){k(!1,t,e,n)},p.ifError=function(t){if(t)throw t},p.strict=r((function t(e,n){e||m(e,!0,n,"==",t)}),p,{equal:p.strictEqual,deepEqual:p.deepStrictEqual,notEqual:p.notStrictEqual,notDeepEqual:p.notDeepStrictEqual}),p.strict.strict=p.strict;var S=Object.keys||function(t){var e=[];for(var n in t)s.call(t,n)&&e.push(n);return e}},6076:function(t){"function"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},2014:function(t){t.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},69:function(t,e,n){var r=/%[sdj%]/g;e.format=function(t){if(!v(t)){for(var e=[],n=0;n<arguments.length;n++)e.push(a(arguments[n]));return e.join(" ")}n=1;for(var i=arguments,o=i.length,s=String(t).replace(r,(function(t){if("%%"===t)return"%";if(n>=o)return t;switch(t){case"%s":return String(i[n++]);case"%d":return Number(i[n++]);case"%j":try{return JSON.stringify(i[n++])}catch(t){return"[Circular]"}default:return t}})),u=i[n];n<o;u=i[++n])y(u)||!b(u)?s+=" "+u:s+=" "+a(u);return s},e.deprecate=function(t,r){if(m(n.g.process))return function(){return e.deprecate(t,r).apply(this,arguments)};if(!0===process.noDeprecation)return t;var i=!1;return function(){if(!i){if(process.throwDeprecation)throw new Error(r);process.traceDeprecation?console.trace(r):console.error(r),i=!0}return t.apply(this,arguments)}};var i,o={};function a(t,n){var r={seen:[],stylize:u};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),h(n)?r.showHidden=n:n&&e._extend(r,n),m(r.showHidden)&&(r.showHidden=!1),m(r.depth)&&(r.depth=2),m(r.colors)&&(r.colors=!1),m(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=s),l(r,t,r.depth)}function s(t,e){var n=a.styles[e];return n?"\x1B["+a.colors[n][0]+"m"+t+"\x1B["+a.colors[n][1]+"m":t}function u(t,e){return t}function l(t,n,r){if(t.customInspect&&n&&k(n.inspect)&&n.inspect!==e.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,t);return v(i)||(i=l(t,i,r)),i}var o=function(t,e){if(m(e))return t.stylize("undefined","undefined");if(v(e)){var n="\'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/\'/g,"\\\\\'").replace(/\\\\"/g,\'"\')+"\'";return t.stylize(n,"string")}return d(e)?t.stylize(""+e,"number"):h(e)?t.stylize(""+e,"boolean"):y(e)?t.stylize("null","null"):void 0}(t,n);if(o)return o;var a=Object.keys(n),s=function(t){var e={};return t.forEach((function(t,n){e[t]=!0})),e}(a);if(t.showHidden&&(a=Object.getOwnPropertyNames(n)),w(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return c(n);if(0===a.length){if(k(n)){var u=n.name?": "+n.name:"";return t.stylize("[Function"+u+"]","special")}if(g(n))return t.stylize(RegExp.prototype.toString.call(n),"regexp");if(x(n))return t.stylize(Date.prototype.toString.call(n),"date");if(w(n))return c(n)}var b,S="",_=!1,A=["{","}"];return p(n)&&(_=!0,A=["[","]"]),k(n)&&(S=" [Function"+(n.name?": "+n.name:"")+"]"),g(n)&&(S=" "+RegExp.prototype.toString.call(n)),x(n)&&(S=" "+Date.prototype.toUTCString.call(n)),w(n)&&(S=" "+c(n)),0!==a.length||_&&0!=n.length?r<0?g(n)?t.stylize(RegExp.prototype.toString.call(n),"regexp"):t.stylize("[Object]","special"):(t.seen.push(n),b=_?function(t,e,n,r,i){for(var o=[],a=0,s=e.length;a<s;++a)O(e,String(a))?o.push(f(t,e,n,r,String(a),!0)):o.push("");return i.forEach((function(i){i.match(/^\\d+$/)||o.push(f(t,e,n,r,i,!0))})),o}(t,n,r,s,a):a.map((function(e){return f(t,n,r,s,e,_)})),t.seen.pop(),function(t,e,n){return t.reduce((function(t,e){return e.indexOf("\\n"),t+e.replace(/\\u001b\\[\\d\\d?m/g,"").length+1}),0)>60?n[0]+(""===e?"":e+"\\n ")+" "+t.join(",\\n ")+" "+n[1]:n[0]+e+" "+t.join(", ")+" "+n[1]}(b,S,A)):A[0]+S+A[1]}function c(t){return"["+Error.prototype.toString.call(t)+"]"}function f(t,e,n,r,i,o){var a,s,u;if((u=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?s=u.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):u.set&&(s=t.stylize("[Setter]","special")),O(r,i)||(a="["+i+"]"),s||(t.seen.indexOf(u.value)<0?(s=y(n)?l(t,u.value,null):l(t,u.value,n-1)).indexOf("\\n")>-1&&(s=o?s.split("\\n").map((function(t){return" "+t})).join("\\n").substr(2):"\\n"+s.split("\\n").map((function(t){return" "+t})).join("\\n")):s=t.stylize("[Circular]","special")),m(a)){if(o&&i.match(/^\\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=t.stylize(a,"name")):(a=a.replace(/\'/g,"\\\\\'").replace(/\\\\"/g,\'"\').replace(/(^"|"$)/g,"\'"),a=t.stylize(a,"string"))}return a+": "+s}function p(t){return Array.isArray(t)}function h(t){return"boolean"==typeof t}function y(t){return null===t}function d(t){return"number"==typeof t}function v(t){return"string"==typeof t}function m(t){return void 0===t}function g(t){return b(t)&&"[object RegExp]"===S(t)}function b(t){return"object"==typeof t&&null!==t}function x(t){return b(t)&&"[object Date]"===S(t)}function w(t){return b(t)&&("[object Error]"===S(t)||t instanceof Error)}function k(t){return"function"==typeof t}function S(t){return Object.prototype.toString.call(t)}function _(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(t){if(m(i)&&(i=process.env.NODE_DEBUG||""),t=t.toUpperCase(),!o[t])if(new RegExp("\\\\b"+t+"\\\\b","i").test(i)){var n=process.pid;o[t]=function(){var r=e.format.apply(e,arguments);console.error("%s %d: %s",t,n,r)}}else o[t]=function(){};return o[t]},e.inspect=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.isArray=p,e.isBoolean=h,e.isNull=y,e.isNullOrUndefined=function(t){return null==t},e.isNumber=d,e.isString=v,e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=m,e.isRegExp=g,e.isObject=b,e.isDate=x,e.isError=w,e.isFunction=k,e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=n(2014);var A=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function j(){var t=new Date,e=[_(t.getHours()),_(t.getMinutes()),_(t.getSeconds())].join(":");return[t.getDate(),A[t.getMonth()],e].join(" ")}function O(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){console.log("%s - %s",j(),e.format.apply(e,arguments))},e.inherits=n(6076),e._extend=function(t,e){if(!e||!b(e))return t;for(var n=Object.keys(e),r=n.length;r--;)t[n[r]]=e[n[r]];return t}},4832:function(t,e,n){function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&u(t,e)}function u(t,e){return u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},u(t,e)}function l(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=f(t);if(e){var i=f(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return c(this,n)}}function c(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return t}(t)}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}var p=n(8583),h=n(6693).StructArray,y=n(6693).Struct,d=n(1786).register,v=n(5550),m=function(t){s(n,t);var e=l(n);function n(){return i(this,n),e.apply(this,arguments)}return a(n,[{key:"_refreshViews",value:function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}},{key:"emplaceBack",value:function(t,e){var n=this.length;this.resize(n+1);var r=2*n;return this.int16[r+0]=t,this.int16[r+1]=e,n}}]),n}(h);m.prototype.bytesPerElement=4,d("StructArrayLayout2i4",m);var g=function(t){s(n,t);var e=l(n);function n(){return i(this,n),e.apply(this,arguments)}return a(n,[{key:"_refreshViews",value:function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}},{key:"emplaceBack",value:function(t,e,n,r){var i=this.length;this.resize(i+1);var o=4*i;return this.int16[o+0]=t,this.int16[o+1]=e,this.int16[o+2]=n,this.int16[o+3]=r,i}}]),n}(h);g.prototype.bytesPerElement=8,d("StructArrayLayout4i8",g);var b=function(t){s(n,t);var e=l(n);function n(){return i(this,n),e.apply(this,arguments)}return a(n,[{key:"_refreshViews",value:function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}},{key:"emplaceBack",value:function(t,e,n,r,i,o){var a=this.length;this.resize(a+1);var s=6*a;return this.int16[s+0]=t,this.int16[s+1]=e,this.int16[s+2]=n,this.int16[s+3]=r,this.int16[s+4]=i,this.int16[s+5]=o,a}}]),n}(h);b.prototype.bytesPerElement=12,d("StructArrayLayout2i4i12",b);var x=function(t){s(n,t);var e=l(n);function n(){return i(this,n),e.apply(this,arguments)}return a(n,[{key:"_refreshViews",value:function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}},{key:"emplaceBack",value:function(t,e,n,r,i,o,a,s){var u=this.length;this.resize(u+1);var l=6*u,c=12*u;return this.int16[l+0]=t,this.int16[l+1]=e,this.int16[l+2]=n,this.int16[l+3]=r,this.uint8[c+8]=i,this.uint8[c+9]=o,this.uint8[c+10]=a,this.uint8[c+11]=s,u}}]),n}(h);x.prototype.bytesPerElement=12,d("StructArrayLayout4i4ub12",x);var w=function(t){s(n,t);var e=l(n);function n(){return i(this,n),e.apply(this,arguments)}return a(n,[{key:"_refreshViews",value:function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}},{key:"emplaceBack",value:function(t,e,n,r,i,o,a,s){var u=this.length;this.resize(u+1);var l=8*u;return this.int16[l+0]=t,this.int16[l+1]=e,this.int16[l+2]=n,this.int16[l+3]=r,this.uint16[l+4]=i,this.uint16[l+5]=o,this.uint16[l+6]=a,this.uint16[l+7]=s,u}}]),n}(h);w.prototype.bytesPerElement=16,d("StructArrayLayout4i4ui16",w);var k=function(t){s(n,t);var e=l(n);function n(){return i(this,n),e.apply(this,arguments)}return a(n,[{key:"_refreshViews",value:function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}},{key:"emplaceBack",value:function(t,e,n){var r=this.length;this.resize(r+1);var i=3*r;return this.float32[i+0]=t,this.float32[i+1]=e,this.float32[i+2]=n,r}}]),n}(h);k.prototype.bytesPerElement=12,d("StructArrayLayout3f12",k);var S=function(t){s(n,t);var e=l(n);function n(){return i(this,n),e.apply(this,arguments)}return a(n,[{key:"_refreshViews",value:function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}},{key:"emplaceBack",value:function(t){var e=this.length;this.resize(e+1);var n=1*e;return this.uint32[n+0]=t,e}}]),n}(h);S.prototype.bytesPerElement=4,d("StructArrayLayout1ul4",S);var _=function(t){s(n,t);var e=l(n);function n(){return i(this,n),e.apply(this,arguments)}return a(n,[{key:"_refreshViews",value:function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}},{key:"emplaceBack",value:function(t,e,n,r,i,o,a,s,u,l,c){var f=this.length;this.resize(f+1);var p=12*f,h=6*f;return this.int16[p+0]=t,this.int16[p+1]=e,this.int16[p+2]=n,this.int16[p+3]=r,this.int16[p+4]=i,this.int16[p+5]=o,this.uint32[h+3]=a,this.uint16[p+8]=s,this.uint16[p+9]=u,this.int16[p+10]=l,this.int16[p+11]=c,f}}]),n}(h);_.prototype.bytesPerElement=24,d("StructArrayLayout6i1ul2ui2i24",_);var A=function(t){s(n,t);var e=l(n);function n(){return i(this,n),e.apply(this,arguments)}return a(n,[{key:"_refreshViews",value:function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}},{key:"emplaceBack",value:function(t,e,n,r,i,o){var a=this.length;this.resize(a+1);var s=6*a;return this.int16[s+0]=t,this.int16[s+1]=e,this.int16[s+2]=n,this.int16[s+3]=r,this.int16[s+4]=i,this.int16[s+5]=o,a}}]),n}(h);A.prototype.bytesPerElement=12,d("StructArrayLayout2i2i2i12",A);var j=function(t){s(n,t);var e=l(n);function n(){return i(this,n),e.apply(this,arguments)}return a(n,[{key:"_refreshViews",value:function(){this.uint8=new Uint8Array(this.arrayBuffer)}},{key:"emplaceBack",value:function(t,e){var n=this.length;this.resize(n+1);var r=4*n;return this.uint8[r+0]=t,this.uint8[r+1]=e,n}}]),n}(h);j.prototype.bytesPerElement=4,d("StructArrayLayout2ub4",j);var O=function(t){s(n,t);var e=l(n);function n(){return i(this,n),e.apply(this,arguments)}return a(n,[{key:"_refreshViews",value:function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}},{key:"emplaceBack",value:function(t,e,n,r,i,o,a,s,u,l,c,f,p,h){var y=this.length;this.resize(y+1);var d=20*y,v=10*y,m=40*y;return this.int16[d+0]=t,this.int16[d+1]=e,this.uint16[d+2]=n,this.uint16[d+3]=r,this.uint32[v+2]=i,this.uint32[v+3]=o,this.uint32[v+4]=a,this.uint16[d+10]=s,this.uint16[d+11]=u,this.uint16[d+12]=l,this.float32[v+7]=c,this.float32[v+8]=f,this.uint8[m+36]=p,this.uint8[m+37]=h,y}}]),n}(h);O.prototype.bytesPerElement=40,d("StructArrayLayout2i2ui3ul3ui2f2ub40",O);var T=function(t){s(n,t);var e=l(n);function n(){return i(this,n),e.apply(this,arguments)}return a(n,[{key:"_refreshViews",value:function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}},{key:"emplaceBack",value:function(t){var e=this.length;this.resize(e+1);var n=1*e;return this.float32[n+0]=t,e}}]),n}(h);T.prototype.bytesPerElement=4,d("StructArrayLayout1f4",T);var P=function(t){s(n,t);var e=l(n);function n(){return i(this,n),e.apply(this,arguments)}return a(n,[{key:"_refreshViews",value:function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}},{key:"emplaceBack",value:function(t,e,n){var r=this.length;this.resize(r+1);var i=3*r;return this.int16[i+0]=t,this.int16[i+1]=e,this.int16[i+2]=n,r}}]),n}(h);P.prototype.bytesPerElement=6,d("StructArrayLayout3i6",P);var z=function(t){s(n,t);var e=l(n);function n(){return i(this,n),e.apply(this,arguments)}return a(n,[{key:"_refreshViews",value:function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}},{key:"emplaceBack",value:function(t,e,n){var r=this.length;this.resize(r+1);var i=2*r,o=4*r;return this.uint32[i+0]=t,this.uint16[o+2]=e,this.uint16[o+3]=n,r}}]),n}(h);z.prototype.bytesPerElement=8,d("StructArrayLayout1ul2ui8",z);var I=function(t){s(n,t);var e=l(n);function n(){return i(this,n),e.apply(this,arguments)}return a(n,[{key:"_refreshViews",value:function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}},{key:"emplaceBack",value:function(t,e,n){var r=this.length;this.resize(r+1);var i=3*r;return this.uint16[i+0]=t,this.uint16[i+1]=e,this.uint16[i+2]=n,r}}]),n}(h);I.prototype.bytesPerElement=6,d("StructArrayLayout3ui6",I);var E=function(t){s(n,t);var e=l(n);function n(){return i(this,n),e.apply(this,arguments)}return a(n,[{key:"_refreshViews",value:function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}},{key:"emplaceBack",value:function(t,e){var n=this.length;this.resize(n+1);var r=2*n;return this.uint16[r+0]=t,this.uint16[r+1]=e,n}}]),n}(h);E.prototype.bytesPerElement=4,d("StructArrayLayout2ui4",E);var C=function(t){s(n,t);var e=l(n);function n(){return i(this,n),e.apply(this,arguments)}return a(n,[{key:"_refreshViews",value:function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}},{key:"emplaceBack",value:function(t,e){var n=this.length;this.resize(n+1);var r=2*n;return this.float32[r+0]=t,this.float32[r+1]=e,n}}]),n}(h);C.prototype.bytesPerElement=8,d("StructArrayLayout2f8",C);var M=function(t){s(n,t);var e=l(n);function n(){return i(this,n),e.apply(this,arguments)}return a(n,[{key:"_refreshViews",value:function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}},{key:"emplaceBack",value:function(t,e,n,r){var i=this.length;this.resize(i+1);var o=4*i;return this.float32[o+0]=t,this.float32[o+1]=e,this.float32[o+2]=n,this.float32[o+3]=r,i}}]),n}(h);M.prototype.bytesPerElement=16,d("StructArrayLayout4f16",M);var B=function(t){s(n,t);var e=l(n);function n(){return i(this,n),e.apply(this,arguments)}return a(n,[{key:"anchorPointX",get:function(){return this._structArray.int16[this._pos2+0]},set:function(t){this._structArray.int16[this._pos2+0]=t}},{key:"anchorPointY",get:function(){return this._structArray.int16[this._pos2+1]},set:function(t){this._structArray.int16[this._pos2+1]=t}},{key:"x1",get:function(){return this._structArray.int16[this._pos2+2]},set:function(t){this._structArray.int16[this._pos2+2]=t}},{key:"y1",get:function(){return this._structArray.int16[this._pos2+3]},set:function(t){this._structArray.int16[this._pos2+3]=t}},{key:"x2",get:function(){return this._structArray.int16[this._pos2+4]},set:function(t){this._structArray.int16[this._pos2+4]=t}},{key:"y2",get:function(){return this._structArray.int16[this._pos2+5]},set:function(t){this._structArray.int16[this._pos2+5]=t}},{key:"featureIndex",get:function(){return this._structArray.uint32[this._pos4+3]},set:function(t){this._structArray.uint32[this._pos4+3]=t}},{key:"sourceLayerIndex",get:function(){return this._structArray.uint16[this._pos2+8]},set:function(t){this._structArray.uint16[this._pos2+8]=t}},{key:"bucketIndex",get:function(){return this._structArray.uint16[this._pos2+9]},set:function(t){this._structArray.uint16[this._pos2+9]=t}},{key:"radius",get:function(){return this._structArray.int16[this._pos2+10]},set:function(t){this._structArray.int16[this._pos2+10]=t}},{key:"signedDistanceFromAnchor",get:function(){return this._structArray.int16[this._pos2+11]},set:function(t){this._structArray.int16[this._pos2+11]=t}},{key:"anchorPoint",get:function(){return new v(this.anchorPointX,this.anchorPointY)}}]),n}(y);B.prototype.size=24;var V=function(t){s(n,t);var e=l(n);function n(){return i(this,n),e.apply(this,arguments)}return a(n,[{key:"get",value:function(t){return p(!this.isTransferred),new B(this,t)}}]),n}(_);d("CollisionBoxArray",V);var R=function(t){s(n,t);var e=l(n);function n(){return i(this,n),e.apply(this,arguments)}return a(n,[{key:"anchorX",get:function(){return this._structArray.int16[this._pos2+0]},set:function(t){this._structArray.int16[this._pos2+0]=t}},{key:"anchorY",get:function(){return this._structArray.int16[this._pos2+1]},set:function(t){this._structArray.int16[this._pos2+1]=t}},{key:"glyphStartIndex",get:function(){return this._structArray.uint16[this._pos2+2]},set:function(t){this._structArray.uint16[this._pos2+2]=t}},{key:"numGlyphs",get:function(){return this._structArray.uint16[this._pos2+3]},set:function(t){this._structArray.uint16[this._pos2+3]=t}},{key:"vertexStartIndex",get:function(){return this._structArray.uint32[this._pos4+2]},set:function(t){this._structArray.uint32[this._pos4+2]=t}},{key:"lineStartIndex",get:function(){return this._structArray.uint32[this._pos4+3]},set:function(t){this._structArray.uint32[this._pos4+3]=t}},{key:"lineLength",get:function(){return this._structArray.uint32[this._pos4+4]},set:function(t){this._structArray.uint32[this._pos4+4]=t}},{key:"segment",get:function(){return this._structArray.uint16[this._pos2+10]},set:function(t){this._structArray.uint16[this._pos2+10]=t}},{key:"lowerSize",get:function(){return this._structArray.uint16[this._pos2+11]},set:function(t){this._structArray.uint16[this._pos2+11]=t}},{key:"upperSize",get:function(){return this._structArray.uint16[this._pos2+12]},set:function(t){this._structArray.uint16[this._pos2+12]=t}},{key:"lineOffsetX",get:function(){return this._structArray.float32[this._pos4+7]},set:function(t){this._structArray.float32[this._pos4+7]=t}},{key:"lineOffsetY",get:function(){return this._structArray.float32[this._pos4+8]},set:function(t){this._structArray.float32[this._pos4+8]=t}},{key:"writingMode",get:function(){return this._structArray.uint8[this._pos1+36]},set:function(t){this._structArray.uint8[this._pos1+36]=t}},{key:"hidden",get:function(){return this._structArray.uint8[this._pos1+37]},set:function(t){this._structArray.uint8[this._pos1+37]=t}}]),n}(y);R.prototype.size=40;var L=function(t){s(n,t);var e=l(n);function n(){return i(this,n),e.apply(this,arguments)}return a(n,[{key:"get",value:function(t){return p(!this.isTransferred),new R(this,t)}}]),n}(O);d("PlacedSymbolArray",L);var F=function(t){s(n,t);var e=l(n);function n(){return i(this,n),e.apply(this,arguments)}return a(n,[{key:"offsetX",get:function(){return this._structArray.float32[this._pos4+0]},set:function(t){this._structArray.float32[this._pos4+0]=t}}]),n}(y);F.prototype.size=4;var D=function(t){s(n,t);var e=l(n);function n(){return i(this,n),e.apply(this,arguments)}return a(n,[{key:"getoffsetX",value:function(t){return this.float32[1*t+0]}},{key:"get",value:function(t){return p(!this.isTransferred),new F(this,t)}}]),n}(T);d("GlyphOffsetArray",D);var q=function(t){s(n,t);var e=l(n);function n(){return i(this,n),e.apply(this,arguments)}return a(n,[{key:"x",get:function(){return this._structArray.int16[this._pos2+0]},set:function(t){this._structArray.int16[this._pos2+0]=t}},{key:"y",get:function(){return this._structArray.int16[this._pos2+1]},set:function(t){this._structArray.int16[this._pos2+1]=t}},{key:"tileUnitDistanceFromAnchor",get:function(){return this._structArray.int16[this._pos2+2]},set:function(t){this._structArray.int16[this._pos2+2]=t}}]),n}(y);q.prototype.size=6;var U=function(t){s(n,t);var e=l(n);function n(){return i(this,n),e.apply(this,arguments)}return a(n,[{key:"getx",value:function(t){return this.int16[3*t+0]}},{key:"gety",value:function(t){return this.int16[3*t+1]}},{key:"gettileUnitDistanceFromAnchor",value:function(t){return this.int16[3*t+2]}},{key:"get",value:function(t){return p(!this.isTransferred),new q(this,t)}}]),n}(P);d("SymbolLineVertexArray",U);var N=function(t){s(n,t);var e=l(n);function n(){return i(this,n),e.apply(this,arguments)}return a(n,[{key:"featureIndex",get:function(){return this._structArray.uint32[this._pos4+0]},set:function(t){this._structArray.uint32[this._pos4+0]=t}},{key:"sourceLayerIndex",get:function(){return this._structArray.uint16[this._pos2+2]},set:function(t){this._structArray.uint16[this._pos2+2]=t}},{key:"bucketIndex",get:function(){return this._structArray.uint16[this._pos2+3]},set:function(t){this._structArray.uint16[this._pos2+3]=t}}]),n}(y);N.prototype.size=8;var J=function(t){s(n,t);var e=l(n);function n(){return i(this,n),e.apply(this,arguments)}return a(n,[{key:"get",value:function(t){return p(!this.isTransferred),new N(this,t)}}]),n}(z);d("FeatureIndexArray",J),t.exports={StructArrayLayout2i4:m,StructArrayLayout4i8:g,StructArrayLayout2i4i12:b,StructArrayLayout4i4ub12:x,StructArrayLayout4i4ui16:w,StructArrayLayout3f12:k,StructArrayLayout1ul4:S,StructArrayLayout6i1ul2ui2i24:_,StructArrayLayout2i2i2i12:A,StructArrayLayout2ub4:j,StructArrayLayout2i2ui3ul3ui2f2ub40:O,StructArrayLayout1f4:T,StructArrayLayout3i6:P,StructArrayLayout1ul2ui8:z,StructArrayLayout3ui6:I,StructArrayLayout2ui4:E,StructArrayLayout2f8:C,StructArrayLayout4f16:M,PosArray:m,RasterBoundsArray:g,CircleLayoutArray:m,FillLayoutArray:m,FillExtrusionLayoutArray:b,HeatmapLayoutArray:m,LineLayoutArray:x,SymbolLayoutArray:w,SymbolDynamicLayoutArray:k,SymbolOpacityArray:S,CollisionBoxLayoutArray:A,CollisionCircleLayoutArray:A,CollisionVertexArray:j,TriangleIndexArray:I,LineIndexArray:E,CollisionBoxArray:V,PlacedSymbolArray:L,GlyphOffsetArray:D,SymbolLineVertexArray:U,FeatureIndexArray:J}},3473:function(t,e,n){var r=n(6693).createLayout;t.exports=r([{name:"a_pos",components:2,type:"Int16"}],4)},6677:function(t,e,n){function r(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var a=n(4832).CircleLayoutArray,s=n(3473).members,u=n(8500).SegmentVector,l=n(9063).ProgramConfigurationSet,c=n(9631).TriangleIndexArray,f=n(1438),p=n(900),h=n(1786).register;function y(t,e,n,r,i){t.emplaceBack(2*e+(r+1)/2,2*n+(i+1)/2)}var d=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=e.index,this.layoutVertexArray=new a,this.indexArray=new c,this.segments=new u,this.programConfigurations=new l(s,e.layers,e.zoom)}var e,n;return e=t,(n=[{key:"populate",value:function(t,e){var n,i=r(t);try{for(i.s();!(n=i.n()).done;){var o=n.value,a=o.feature,s=o.index,u=o.sourceLayerIndex;if(this.layers[0]._featureFilter({zoom:this.zoom},a)){var l=f(a);this.addFeature(a,l),e.featureIndex.insert(a,l,s,u,this.index)}}}catch(t){i.e(t)}finally{i.f()}}},{key:"isEmpty",value:function(){return 0===this.layoutVertexArray.length}},{key:"upload",value:function(t){this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,s),this.indexBuffer=t.createIndexBuffer(this.indexArray),this.programConfigurations.upload(t)}},{key:"destroy",value:function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}},{key:"addFeature",value:function(t,e){var n,i=r(e);try{for(i.s();!(n=i.n()).done;){var o,a=r(n.value);try{for(a.s();!(o=a.n()).done;){var s=o.value,u=s.x,l=s.y;if(!(u<0||u>=p||l<0||l>=p)){var c=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray),f=c.vertexLength;y(this.layoutVertexArray,u,l,-1,-1),y(this.layoutVertexArray,u,l,1,-1),y(this.layoutVertexArray,u,l,1,1),y(this.layoutVertexArray,u,l,-1,1),this.indexArray.emplaceBack(f,f+1,f+2),this.indexArray.emplaceBack(f,f+3,f+2),c.vertexLength+=4,c.primitiveLength+=2}}}catch(t){a.e(t)}finally{a.f()}}}catch(t){i.e(t)}finally{i.f()}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t)}}])&&o(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();h("CircleBucket",d,{omit:["layers"]}),t.exports=d},8669:function(t,e,n){var r=n(6693).createLayout;t.exports=r([{name:"a_pos",components:2,type:"Int16"}],4)},9603:function(t,e,n){function r(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var a=n(4832).FillLayoutArray,s=n(8669).members,u=n(8500).SegmentVector,l=n(9063).ProgramConfigurationSet,c=n(9631),f=c.LineIndexArray,p=c.TriangleIndexArray,h=n(1438),y=n(9187),d=n(937),v=n(8583),m=n(1786).register,g=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=e.index,this.layoutVertexArray=new a,this.indexArray=new p,this.indexArray2=new f,this.programConfigurations=new l(s,e.layers,e.zoom),this.segments=new u,this.segments2=new u}var e,n;return e=t,(n=[{key:"populate",value:function(t,e){var n,i=r(t);try{for(i.s();!(n=i.n()).done;){var o=n.value,a=o.feature,s=o.index,u=o.sourceLayerIndex;if(this.layers[0]._featureFilter({zoom:this.zoom},a)){var l=h(a);this.addFeature(a,l),e.featureIndex.insert(a,l,s,u,this.index)}}}catch(t){i.e(t)}finally{i.f()}}},{key:"isEmpty",value:function(){return 0===this.layoutVertexArray.length}},{key:"upload",value:function(t){this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,s),this.indexBuffer=t.createIndexBuffer(this.indexArray),this.indexBuffer2=t.createIndexBuffer(this.indexArray2),this.programConfigurations.upload(t)}},{key:"destroy",value:function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())}},{key:"addFeature",value:function(t,e){var n,i=r(d(e,500));try{for(i.s();!(n=i.n()).done;){var o,a=n.value,s=0,u=r(a);try{for(u.s();!(o=u.n()).done;)s+=o.value.length}catch(t){u.e(t)}finally{u.f()}var l,c=this.segments.prepareSegment(s,this.layoutVertexArray,this.indexArray),f=c.vertexLength,p=[],h=[],m=r(a);try{for(m.s();!(l=m.n()).done;){var g=l.value;if(0!==g.length){g!==a[0]&&h.push(p.length/2);var b=this.segments2.prepareSegment(g.length,this.layoutVertexArray,this.indexArray2),x=b.vertexLength;this.layoutVertexArray.emplaceBack(g[0].x,g[0].y),this.indexArray2.emplaceBack(x+g.length-1,x),p.push(g[0].x),p.push(g[0].y);for(var w=1;w<g.length;w++)this.layoutVertexArray.emplaceBack(g[w].x,g[w].y),this.indexArray2.emplaceBack(x+w-1,x+w),p.push(g[w].x),p.push(g[w].y);b.vertexLength+=g.length,b.primitiveLength+=g.length}}}catch(t){m.e(t)}finally{m.f()}var k=y(p,h);v(k.length%3==0);for(var S=0;S<k.length;S+=3)this.indexArray.emplaceBack(f+k[S],f+k[S+1],f+k[S+2]);c.vertexLength+=s,c.primitiveLength+=k.length/3}}catch(t){i.e(t)}finally{i.f()}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t)}}])&&o(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();m("FillBucket",g,{omit:["layers"]}),t.exports=g},163:function(t,e,n){var r=n(6693).createLayout;t.exports=r([{name:"a_pos",components:2,type:"Int16"},{name:"a_normal_ed",components:4,type:"Int16"}],4)},8294:function(t,e,n){function r(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var a=n(4832).FillExtrusionLayoutArray,s=n(163).members,u=n(8500),l=u.SegmentVector,c=u.MAX_VERTEX_ARRAY_LENGTH,f=n(9063).ProgramConfigurationSet,p=n(9631).TriangleIndexArray,h=n(1438),y=n(900),d=n(9187),v=n(937),m=n(8583),g=n(1786).register,b=Math.pow(2,13);function x(t,e,n,r,i,o,a,s){t.emplaceBack(e,n,2*Math.floor(r*b)+a,i*b*2,o*b*2,Math.round(s))}var w=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=e.index,this.layoutVertexArray=new a,this.indexArray=new p,this.programConfigurations=new f(s,e.layers,e.zoom),this.segments=new l}var e,n;return e=t,(n=[{key:"populate",value:function(t,e){var n,i=r(t);try{for(i.s();!(n=i.n()).done;){var o=n.value,a=o.feature,s=o.index,u=o.sourceLayerIndex;if(this.layers[0]._featureFilter({zoom:this.zoom},a)){var l=h(a);this.addFeature(a,l),e.featureIndex.insert(a,l,s,u,this.index)}}}catch(t){i.e(t)}finally{i.f()}}},{key:"isEmpty",value:function(){return 0===this.layoutVertexArray.length}},{key:"upload",value:function(t){this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,s),this.indexBuffer=t.createIndexBuffer(this.indexArray),this.programConfigurations.upload(t)}},{key:"destroy",value:function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}},{key:"addFeature",value:function(t,e){var n,i,o=r(v(e,500));try{for(o.s();!(n=o.n()).done;){var a,s=n.value,u=0,l=r(s);try{for(l.s();!(a=l.n()).done;)u+=a.value.length}catch(t){l.e(t)}finally{l.f()}var f,p=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray),h=r(s);try{for(h.s();!(f=h.n()).done;){var g=f.value;if(0!==g.length&&!((i=g).every((function(t){return t.x<0}))||i.every((function(t){return t.x>y}))||i.every((function(t){return t.y<0}))||i.every((function(t){return t.y>y}))))for(var b=0,w=0;w<g.length;w++){var S=g[w];if(w>=1){var _=g[w-1];if(!k(S,_)){p.vertexLength+4>c&&(p=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var A=S.sub(_)._perp()._unit(),j=_.dist(S);b+j>32768&&(b=0),x(this.layoutVertexArray,S.x,S.y,A.x,A.y,0,0,b),x(this.layoutVertexArray,S.x,S.y,A.x,A.y,0,1,b),b+=j,x(this.layoutVertexArray,_.x,_.y,A.x,A.y,0,0,b),x(this.layoutVertexArray,_.x,_.y,A.x,A.y,0,1,b);var O=p.vertexLength;this.indexArray.emplaceBack(O,O+1,O+2),this.indexArray.emplaceBack(O+1,O+2,O+3),p.vertexLength+=4,p.primitiveLength+=2}}}}}catch(t){h.e(t)}finally{h.f()}p.vertexLength+u>c&&(p=this.segments.prepareSegment(u,this.layoutVertexArray,this.indexArray));var T,P=[],z=[],I=p.vertexLength,E=r(s);try{for(E.s();!(T=E.n()).done;){var C=T.value;if(0!==C.length){C!==s[0]&&z.push(P.length/2);for(var M=0;M<C.length;M++){var B=C[M];x(this.layoutVertexArray,B.x,B.y,0,0,1,1,0),P.push(B.x),P.push(B.y)}}}}catch(t){E.e(t)}finally{E.f()}var V=d(P,z);m(V.length%3==0);for(var R=0;R<V.length;R+=3)this.indexArray.emplaceBack(I+V[R],I+V[R+1],I+V[R+2]);p.primitiveLength+=V.length/3,p.vertexLength+=u}}catch(t){o.e(t)}finally{o.f()}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t)}}])&&o(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function k(t,e){return t.x===e.x&&(t.x<0||t.x>y)||t.y===e.y&&(t.y<0||t.y>y)}g("FillExtrusionBucket",w,{omit:["layers"]}),t.exports=w},7832:function(t,e,n){function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){return o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},o(t,e)}function a(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return t}(t)}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}var u=n(6677),l=n(1786).register,c=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&o(t,e)}(l,t);var e,n,r,u=(n=l,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=s(n);if(r){var i=s(this).constructor;t=Reflect.construct(e,arguments,i)}else t=e.apply(this,arguments);return a(this,t)});function l(){return i(this,l),u.apply(this,arguments)}return e=l,Object.defineProperty(e,"prototype",{writable:!1}),e}(u);l("HeatmapBucket",c,{omit:["layers"]}),t.exports=c},9379:function(t,e,n){var r=n(6693).createLayout;t.exports=r([{name:"a_pos_normal",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint8"}],4)},6905:function(t,e,n){function r(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var a=n(4832).LineLayoutArray,s=n(9379).members,u=n(8500).SegmentVector,l=n(9063).ProgramConfigurationSet,c=n(9631).TriangleIndexArray,f=n(1438),p=n(900),h=n(8929).VectorTileFeature.types,y=n(1786).register,d=Math.cos(Math.PI/180*37.5),v=Math.pow(2,14)/.5;function m(t,e,n,r,i,o,a){t.emplaceBack(e.x,e.y,r?1:0,i?1:-1,Math.round(63*n.x)+128,Math.round(63*n.y)+128,1+(0===o?0:o<0?-1:1)|(.5*a&63)<<2,.5*a>>6)}var g=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=e.index,this.layoutVertexArray=new a,this.indexArray=new c,this.programConfigurations=new l(s,e.layers,e.zoom),this.segments=new u}var e,n;return e=t,(n=[{key:"populate",value:function(t,e){var n,i=r(t);try{for(i.s();!(n=i.n()).done;){var o=n.value,a=o.feature,s=o.index,u=o.sourceLayerIndex;if(this.layers[0]._featureFilter({zoom:this.zoom},a)){var l=f(a);this.addFeature(a,l),e.featureIndex.insert(a,l,s,u,this.index)}}}catch(t){i.e(t)}finally{i.f()}}},{key:"isEmpty",value:function(){return 0===this.layoutVertexArray.length}},{key:"upload",value:function(t){this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,s),this.indexBuffer=t.createIndexBuffer(this.indexArray),this.programConfigurations.upload(t)}},{key:"destroy",value:function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}},{key:"addFeature",value:function(t,e){var n,i=this.layers[0].layout,o=i.get("line-join").evaluate(t),a=i.get("line-cap"),s=i.get("line-miter-limit"),u=i.get("line-round-limit"),l=r(e);try{for(l.s();!(n=l.n()).done;){var c=n.value;this.addLine(c,t,o,a,s,u)}}catch(t){l.e(t)}finally{l.f()}}},{key:"addLine",value:function(t,e,n,r,i,o){for(var a="Polygon"===h[e.type],s=t.length;s>=2&&t[s-1].equals(t[s-2]);)s--;for(var u=0;u<s-1&&t[u].equals(t[u+1]);)u++;if(!(s<(a?3:2))){"bevel"===n&&(i=1.05);var l=p/(512*this.overscaling)*15,c=t[u],f=this.segments.prepareSegment(10*s,this.layoutVertexArray,this.indexArray);this.distance=0;var y,v,m,g=r,b=a?"butt":r,x=!0,w=void 0,k=void 0,S=void 0,_=void 0;this.e1=this.e2=this.e3=-1,a&&(y=t[s-2],_=c.sub(y)._unit()._perp());for(var A=u;A<s;A++)if(!(k=a&&A===s-1?t[u+1]:t[A+1])||!t[A].equals(k)){_&&(S=_),y&&(w=y),y=t[A],_=k?k.sub(y)._unit()._perp():S;var j=(S=S||_).add(_);0===j.x&&0===j.y||j._unit();var O=j.x*_.x+j.y*_.y,T=0!==O?1/O:1/0,P=O<d&&w&&k;if(P&&A>u){var z=y.dist(w);if(z>2*l){var I=y.sub(y.sub(w)._mult(l/z)._round());this.distance+=I.dist(w),this.addCurrentVertex(I,this.distance,S.mult(1),0,0,!1,f),w=I}}var E=w&&k,C=E?n:k?g:b;if(E&&"round"===C&&(T<o?C="miter":T<=2&&(C="fakeround")),"miter"===C&&T>i&&(C="bevel"),"bevel"===C&&(T>2&&(C="flipbevel"),T<i&&(C="miter")),w&&(this.distance+=y.dist(w)),"miter"===C)j._mult(T),this.addCurrentVertex(y,this.distance,j,0,0,!1,f);else if("flipbevel"===C){if(T>100)j=_.clone().mult(-1);else{var M=S.x*_.y-S.y*_.x>0?-1:1,B=T*S.add(_).mag()/S.sub(_).mag();j._perp()._mult(B*M)}this.addCurrentVertex(y,this.distance,j,0,0,!1,f),this.addCurrentVertex(y,this.distance,j.mult(-1),0,0,!1,f)}else if("bevel"===C||"fakeround"===C){var V=S.x*_.y-S.y*_.x>0,R=-Math.sqrt(T*T-1);if(V?(m=0,v=R):(v=0,m=R),x||this.addCurrentVertex(y,this.distance,S,v,m,!1,f),"fakeround"===C){for(var L=Math.floor(8*(.5-(O-.5))),F=void 0,D=0;D<L;D++)F=_.mult((D+1)/(L+1))._add(S)._unit(),this.addPieSliceVertex(y,this.distance,F,V,f);this.addPieSliceVertex(y,this.distance,j,V,f);for(var q=L-1;q>=0;q--)F=S.mult((q+1)/(L+1))._add(_)._unit(),this.addPieSliceVertex(y,this.distance,F,V,f)}k&&this.addCurrentVertex(y,this.distance,_,-v,-m,!1,f)}else"butt"===C?(x||this.addCurrentVertex(y,this.distance,S,0,0,!1,f),k&&this.addCurrentVertex(y,this.distance,_,0,0,!1,f)):"square"===C?(x||(this.addCurrentVertex(y,this.distance,S,1,1,!1,f),this.e1=this.e2=-1),k&&this.addCurrentVertex(y,this.distance,_,-1,-1,!1,f)):"round"===C&&(x||(this.addCurrentVertex(y,this.distance,S,0,0,!1,f),this.addCurrentVertex(y,this.distance,S,1,1,!0,f),this.e1=this.e2=-1),k&&(this.addCurrentVertex(y,this.distance,_,-1,-1,!0,f),this.addCurrentVertex(y,this.distance,_,0,0,!1,f)));if(P&&A<s-1){var U=y.dist(k);if(U>2*l){var N=y.add(k.sub(y)._mult(l/U)._round());this.distance+=N.dist(y),this.addCurrentVertex(N,this.distance,_.mult(1),0,0,!1,f),y=N}}x=!1}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e)}}},{key:"addCurrentVertex",value:function(t,e,n,r,i,o,a){var s,u=this.layoutVertexArray,l=this.indexArray;s=n.clone(),r&&s._sub(n.perp()._mult(r)),m(u,t,s,o,!1,r,e),this.e3=a.vertexLength++,this.e1>=0&&this.e2>=0&&(l.emplaceBack(this.e1,this.e2,this.e3),a.primitiveLength++),this.e1=this.e2,this.e2=this.e3,s=n.mult(-1),i&&s._sub(n.perp()._mult(i)),m(u,t,s,o,!0,-i,e),this.e3=a.vertexLength++,this.e1>=0&&this.e2>=0&&(l.emplaceBack(this.e1,this.e2,this.e3),a.primitiveLength++),this.e1=this.e2,this.e2=this.e3,e>v/2&&(this.distance=0,this.addCurrentVertex(t,this.distance,n,r,i,o,a))}},{key:"addPieSliceVertex",value:function(t,e,n,r,i){n=n.mult(r?-1:1);var o=this.layoutVertexArray,a=this.indexArray;m(o,t,n,!1,r,0,e),this.e3=i.vertexLength++,this.e1>=0&&this.e2>=0&&(a.emplaceBack(this.e1,this.e2,this.e3),i.primitiveLength++),r?this.e2=this.e3:this.e1=this.e3}}])&&o(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();y("LineBucket",g,{omit:["layers"]}),t.exports=g},1203:function(t,e,n){var r=n(6693).createLayout,i={symbolLayoutAttributes:r([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"}]),dynamicLayoutAttributes:r([{name:"a_projected_pos",components:3,type:"Float32"}],4),placementOpacityAttributes:r([{name:"a_fade_opacity",components:1,type:"Uint32"}],4),collisionVertexAttributes:r([{name:"a_placed",components:2,type:"Uint8"}],4),collisionBox:r([{type:"Int16",name:"anchorPointX"},{type:"Int16",name:"anchorPointY"},{type:"Int16",name:"x1"},{type:"Int16",name:"y1"},{type:"Int16",name:"x2"},{type:"Int16",name:"y2"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"},{type:"Int16",name:"radius"},{type:"Int16",name:"signedDistanceFromAnchor"}]),collisionBoxLayout:r([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4),collisionCircleLayout:r([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4),placement:r([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"hidden"}]),glyphOffset:r([{type:"Float32",name:"offsetX"}]),lineVertex:r([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}])};t.exports=i},5571:function(t,e,n){function r(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var u=n(1203),l=u.symbolLayoutAttributes,c=u.collisionVertexAttributes,f=u.collisionBoxLayout,p=u.collisionCircleLayout,h=u.dynamicLayoutAttributes,y=n(4832),d=y.SymbolLayoutArray,v=y.SymbolDynamicLayoutArray,m=y.SymbolOpacityArray,g=y.CollisionBoxLayoutArray,b=y.CollisionCircleLayoutArray,x=y.CollisionVertexArray,w=y.PlacedSymbolArray,k=y.GlyphOffsetArray,S=y.SymbolLineVertexArray,_=n(5550),A=n(8500).SegmentVector,j=n(9063).ProgramConfigurationSet,O=n(9631),T=O.TriangleIndexArray,P=O.LineIndexArray,z=n(1447),I=n(8376),E=n(6584),C=n(1438),M=n(8929).VectorTileFeature.types,B=n(7899),V=(n(1397),n(724).getSizeData),R=n(1786).register,L=[{name:"a_fade_opacity",components:1,type:"Uint8",offset:0}];function F(t,e,n,r,i,o,a,s){t.emplaceBack(e,n,Math.round(64*r),Math.round(64*i),o,a,s?s[0]:0,s?s[1]:0)}function D(t,e,n){t.emplaceBack(e.x,e.y,n),t.emplaceBack(e.x,e.y,n),t.emplaceBack(e.x,e.y,n),t.emplaceBack(e.x,e.y,n)}var q=function(){function t(e){o(this,t),this.layoutVertexArray=new d,this.indexArray=new T,this.programConfigurations=e,this.segments=new A,this.dynamicLayoutVertexArray=new v,this.opacityVertexArray=new m,this.placedSymbolArray=new w}return s(t,[{key:"upload",value:function(t,e){this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,l.members),this.indexBuffer=t.createIndexBuffer(this.indexArray,e),this.programConfigurations.upload(t),this.dynamicLayoutVertexBuffer=t.createVertexBuffer(this.dynamicLayoutVertexArray,h.members,!0),this.opacityVertexBuffer=t.createVertexBuffer(this.opacityVertexArray,L,!0),this.opacityVertexBuffer.itemSize=1}},{key:"destroy",value:function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.dynamicLayoutVertexBuffer.destroy(),this.opacityVertexBuffer.destroy())}}]),t}();R("SymbolBuffers",q);var U=function(){function t(e,n,r){o(this,t),this.layoutVertexArray=new e,this.layoutAttributes=n,this.indexArray=new r,this.segments=new A,this.collisionVertexArray=new x}return s(t,[{key:"upload",value:function(t){this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,this.layoutAttributes),this.indexBuffer=t.createIndexBuffer(this.indexArray),this.collisionVertexBuffer=t.createVertexBuffer(this.collisionVertexArray,c.members,!0)}},{key:"destroy",value:function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.collisionVertexBuffer.destroy())}}]),t}();R("CollisionBuffers",U);var N=function(){function t(e){o(this,t),this.collisionBoxArray=e.collisionBoxArray,this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=e.index,this.pixelRatio=e.pixelRatio;var n=this.layers[0]._unevaluatedLayout._values;this.textSizeData=V(this.zoom,n["text-size"]),this.iconSizeData=V(this.zoom,n["icon-size"]);var r=this.layers[0].layout;this.sortFeaturesByY=r.get("text-allow-overlap")||r.get("icon-allow-overlap")||r.get("text-ignore-placement")||r.get("icon-ignore-placement")}return s(t,[{key:"createArrays",value:function(){this.text=new q(new j(l.members,this.layers,this.zoom,(function(t){return/^text/.test(t)}))),this.icon=new q(new j(l.members,this.layers,this.zoom,(function(t){return/^icon/.test(t)}))),this.collisionBox=new U(g,f.members,P),this.collisionCircle=new U(b,p.members,T),this.glyphOffsetArray=new k,this.lineVertexArray=new S}},{key:"populate",value:function(t,e){var n=this.layers[0],i=n.layout,o=i.get("text-font"),a=i.get("text-field"),s=i.get("icon-image"),u=("constant"!==a.value.kind||a.value.value.length>0)&&("constant"!==o.value.kind||o.value.value.length>0),l="constant"!==s.value.kind||s.value.value&&s.value.value.length>0;if(this.features=[],u||l){var c,f=e.iconDependencies,p=e.glyphDependencies,h={zoom:this.zoom},y=r(t);try{for(y.s();!(c=y.n()).done;){var d=c.value,v=d.feature,m=d.index,g=d.sourceLayerIndex;if(n._featureFilter(h,v)){var b=void 0;u&&(b=n.getValueAndResolveTokens("text-field",v),b=z(b,n,v));var x=void 0;if(l&&(x=n.getValueAndResolveTokens("icon-image",v)),b||x){var w={text:b,icon:x,index:m,sourceLayerIndex:g,geometry:C(v),properties:v.properties,type:M[v.type]};if(void 0!==v.id&&(w.id=v.id),this.features.push(w),x&&(f[x]=!0),b)for(var k=o.evaluate(v).join(","),S=p[k]=p[k]||{},_="map"===i.get("text-rotation-alignment")&&"line"===i.get("symbol-placement"),A=E.allowsVerticalWritingMode(b),j=0;j<b.length;j++)if(S[b.charCodeAt(j)]=!0,_&&A){var O=B.lookup[b.charAt(j)];O&&(S[O.charCodeAt(0)]=!0)}}}}}catch(t){y.e(t)}finally{y.f()}"line"===i.get("symbol-placement")&&(this.features=I(this.features))}}},{key:"isEmpty",value:function(){return 0===this.symbolInstances.length}},{key:"upload",value:function(t){this.text.upload(t,this.sortFeaturesByY),this.icon.upload(t,this.sortFeaturesByY),this.collisionBox.upload(t),this.collisionCircle.upload(t)}},{key:"destroy",value:function(){this.text.destroy(),this.icon.destroy(),this.collisionBox.destroy(),this.collisionCircle.destroy()}},{key:"addToLineVertexArray",value:function(t,e){var n=this.lineVertexArray.length;if(void 0!==t.segment){for(var r=t.dist(e[t.segment+1]),i=t.dist(e[t.segment]),o={},a=t.segment+1;a<e.length;a++)o[a]={x:e[a].x,y:e[a].y,tileUnitDistanceFromAnchor:r},a<e.length-1&&(r+=e[a+1].dist(e[a]));for(var s=t.segment||0;s>=0;s--)o[s]={x:e[s].x,y:e[s].y,tileUnitDistanceFromAnchor:i},s>0&&(i+=e[s-1].dist(e[s]));for(var u=0;u<e.length;u++){var l=o[u];this.lineVertexArray.emplaceBack(l.x,l.y,l.tileUnitDistanceFromAnchor)}}return{lineStartIndex:n,lineLength:this.lineVertexArray.length-n}}},{key:"addSymbols",value:function(t,e,n,i,o,a,s,u,l,c){var f,p=t.indexArray,h=t.layoutVertexArray,y=t.dynamicLayoutVertexArray,d=t.segments.prepareSegment(4*e.length,t.layoutVertexArray,t.indexArray),v=this.glyphOffsetArray.length,m=d.vertexLength,g=r(e);try{for(g.s();!(f=g.n()).done;){var b=f.value,x=b.tl,w=b.tr,k=b.bl,S=b.br,_=b.tex,A=d.vertexLength,j=b.glyphOffset[1];F(h,u.x,u.y,x.x,j+x.y,_.x,_.y,n),F(h,u.x,u.y,w.x,j+w.y,_.x+_.w,_.y,n),F(h,u.x,u.y,k.x,j+k.y,_.x,_.y+_.h,n),F(h,u.x,u.y,S.x,j+S.y,_.x+_.w,_.y+_.h,n),D(y,u,0),p.emplaceBack(A,A+1,A+2),p.emplaceBack(A+1,A+2,A+3),d.vertexLength+=4,d.primitiveLength+=2,this.glyphOffsetArray.emplaceBack(b.glyphOffset[0])}}catch(t){g.e(t)}finally{g.f()}t.placedSymbolArray.emplaceBack(u.x,u.y,v,this.glyphOffsetArray.length-v,m,l,c,u.segment,n?n[0]:0,n?n[1]:0,i[0],i[1],s,!1),t.programConfigurations.populatePaintArrays(t.layoutVertexArray.length,a)}},{key:"_addCollisionDebugVertex",value:function(t,e,n,r,i){return e.emplaceBack(0,0),t.emplaceBack(n.x,n.y,r.x,r.y,Math.round(i.x),Math.round(i.y))}},{key:"addCollisionDebugVertices",value:function(t,e,n,r,i,o,a,s){var u=i.segments.prepareSegment(4,i.layoutVertexArray,i.indexArray),l=u.vertexLength,c=i.layoutVertexArray,f=i.collisionVertexArray;if(this._addCollisionDebugVertex(c,f,o,a.anchor,new _(t,e)),this._addCollisionDebugVertex(c,f,o,a.anchor,new _(n,e)),this._addCollisionDebugVertex(c,f,o,a.anchor,new _(n,r)),this._addCollisionDebugVertex(c,f,o,a.anchor,new _(t,r)),u.vertexLength+=4,s){var p=i.indexArray;p.emplaceBack(l,l+1,l+2),p.emplaceBack(l,l+2,l+3),u.primitiveLength+=2}else{var h=i.indexArray;h.emplaceBack(l,l+1),h.emplaceBack(l+1,l+2),h.emplaceBack(l+2,l+3),h.emplaceBack(l+3,l),u.primitiveLength+=4}}},{key:"generateCollisionDebugBuffers",value:function(){var t,e=r(this.symbolInstances);try{for(e.s();!(t=e.n()).done;){var n=t.value;n.textCollisionFeature={boxStartIndex:n.textBoxStartIndex,boxEndIndex:n.textBoxEndIndex},n.iconCollisionFeature={boxStartIndex:n.iconBoxStartIndex,boxEndIndex:n.iconBoxEndIndex};for(var i=0;i<2;i++){var o=n[0===i?"textCollisionFeature":"iconCollisionFeature"];if(o)for(var a=o.boxStartIndex;a<o.boxEndIndex;a++){var s=this.collisionBoxArray.get(a),u=s.x1,l=s.y1,c=s.x2,f=s.y2,p=s.radius>0;this.addCollisionDebugVertices(u,l,c,f,p?this.collisionCircle:this.collisionBox,s.anchorPoint,n,p)}}}}catch(t){e.e(t)}finally{e.f()}}},{key:"deserializeCollisionBoxes",value:function(t,e,n,r,i){for(var o={},a=e;a<n;a++){var s=t.get(a);if(0===s.radius){o.textBox={x1:s.x1,y1:s.y1,x2:s.x2,y2:s.y2,anchorPointX:s.anchorPointX,anchorPointY:s.anchorPointY};break}o.textCircles||(o.textCircles=[]),o.textCircles.push(s.anchorPointX,s.anchorPointY,s.radius,s.signedDistanceFromAnchor,1)}for(var u=r;u<i;u++){var l=t.get(u);if(0===l.radius){o.iconBox={x1:l.x1,y1:l.y1,x2:l.x2,y2:l.y2,anchorPointX:l.anchorPointX,anchorPointY:l.anchorPointY};break}}return o}},{key:"hasTextData",value:function(){return this.text.segments.get().length>0}},{key:"hasIconData",value:function(){return this.icon.segments.get().length>0}},{key:"hasCollisionBoxData",value:function(){return this.collisionBox.segments.get().length>0}},{key:"hasCollisionCircleData",value:function(){return this.collisionCircle.segments.get().length>0}},{key:"sortFeatures",value:function(t){var e=this;if(this.sortFeaturesByY&&this.sortedAngle!==t&&(this.sortedAngle=t,!(this.text.segments.get().length>1||this.icon.segments.get().length>1))){for(var n=[],i=0;i<this.symbolInstances.length;i++)n.push(i);var o=Math.sin(t),a=Math.cos(t);n.sort((function(t,n){var r=e.symbolInstances[t],i=e.symbolInstances[n];return(o*r.anchor.x+a*r.anchor.y|0)-(o*i.anchor.x+a*i.anchor.y|0)||i.featureIndex-r.featureIndex})),this.text.indexArray.clear(),this.icon.indexArray.clear();for(var s=0,u=n;s<u.length;s++){var l,c=u[s],f=r(this.symbolInstances[c].placedTextSymbolIndices);try{for(f.s();!(l=f.n()).done;)for(var p=l.value,h=this.text.placedSymbolArray.get(p),y=h.vertexStartIndex+4*h.numGlyphs,d=h.vertexStartIndex;d<y;d+=4)this.text.indexArray.emplaceBack(d,d+1,d+2),this.text.indexArray.emplaceBack(d+1,d+2,d+3)}catch(t){f.e(t)}finally{f.f()}var v=this.icon.placedSymbolArray.get(c);if(v.numGlyphs){var m=v.vertexStartIndex;this.icon.indexArray.emplaceBack(m,m+1,m+2),this.icon.indexArray.emplaceBack(m+1,m+2,m+3)}}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}}}]),t}();R("SymbolBucket",N,{omit:["layers","collisionBoxArray","features","compareText"],shallow:["symbolInstances"]}),N.MAX_GLYPHS=65535,N.addDynamicAttributes=D,t.exports=N},183:function(t,e,n){function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var a=n(5641).RGBAImage,s=n(8316),u=n(1786).register,l=function(){function t(e,n,i){if(r(this,t),e<=0)throw new RangeError("Level must have positive dimension");this.dim=e,this.border=n,this.stride=this.dim+2*this.border,this.data=i||new Int32Array((this.dim+2*this.border)*(this.dim+2*this.border))}return o(t,[{key:"set",value:function(t,e,n){this.data[this._idx(t,e)]=n+65536}},{key:"get",value:function(t,e){return this.data[this._idx(t,e)]-65536}},{key:"_idx",value:function(t,e){if(t<-this.border||t>=this.dim+this.border||e<-this.border||e>=this.dim+this.border)throw new RangeError("out of range source coordinates for DEM data");return(e+this.border)*this.stride+(t+this.border)}}]),t}();u("Level",l);var c=function(){function t(e,n,i){r(this,t),this.uid=e,this.scale=n||1,this.level=i||new l(256,512),this.loaded=!!i}return o(t,[{key:"loadFromImage",value:function(t){if(t.height!==t.width)throw new RangeError("DEM tiles must be square");for(var e=this.level=new l(t.width,t.width/2),n=t.data,r=0;r<e.dim;r++)for(var i=0;i<e.dim;i++){var o=4*(r*e.dim+i);e.set(i,r,this.scale*((256*n[o]*256+256*n[o+1]+n[o+2])/10-1e4))}for(var a=0;a<e.dim;a++)e.set(-1,a,e.get(0,a)),e.set(e.dim,a,e.get(e.dim-1,a)),e.set(a,-1,e.get(a,0)),e.set(a,e.dim,e.get(a,e.dim-1));e.set(-1,-1,e.get(0,0)),e.set(e.dim,-1,e.get(e.dim-1,0)),e.set(-1,e.dim,e.get(0,e.dim-1)),e.set(e.dim,e.dim,e.get(e.dim-1,e.dim-1)),this.loaded=!0}},{key:"getPixels",value:function(){return new a({width:this.level.dim+2*this.level.border,height:this.level.dim+2*this.level.border},new Uint8Array(this.level.data.buffer))}},{key:"backfillBorder",value:function(t,e,n){var r=this.level,i=t.level;if(r.dim!==i.dim)throw new Error("level mismatch (dem dimension)");var o=e*r.dim,a=e*r.dim+r.dim,u=n*r.dim,l=n*r.dim+r.dim;switch(e){case-1:o=a-1;break;case 1:a=o+1}switch(n){case-1:u=l-1;break;case 1:l=u+1}for(var c=s.clamp(o,-r.border,r.dim+r.border),f=s.clamp(a,-r.border,r.dim+r.border),p=s.clamp(u,-r.border,r.dim+r.border),h=s.clamp(l,-r.border,r.dim+r.border),y=-e*r.dim,d=-n*r.dim,v=p;v<h;v++)for(var m=c;m<f;m++)r.set(m,v,i.get(m+y,v+d))}}]),t}();u("DEMData",c),t.exports={DEMData:c,Level:l}},900:function(t){t.exports=8192},5346:function(t,e,n){function r(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}n(5550);var a=n(1438),s=n(900),u=n(1693),l=n(1412),c=n(621),f=n(8929),p=n(3614),h=n(3076),y=n(8316).arraysIntersect,d=(n(4792).OverscaledTileID,n(1786).register),v=n(4832).FeatureIndexArray,m=function(){function t(e,n,r,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.tileID=e,this.overscaling=n,this.x=e.canonical.x,this.y=e.canonical.y,this.z=e.canonical.z,this.grid=r||new l(s,16,0),this.featureIndexArray=i||new v}var e,n;return e=t,(n=[{key:"insert",value:function(t,e,n,r,i){var o=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(n,r,i);for(var a=0;a<e.length;a++){for(var s=e[a],u=[1/0,1/0,-1/0,-1/0],l=0;l<s.length;l++){var c=s[l];u[0]=Math.min(u[0],c.x),u[1]=Math.min(u[1],c.y),u[2]=Math.max(u[2],c.x),u[3]=Math.max(u[3],c.y)}this.grid.insert(o,u[0],u[1],u[2],u[3])}}},{key:"query",value:function(t,e){this.vtLayers||(this.vtLayers=new f.VectorTile(new p(this.rawTileData)).layers,this.sourceLayerCoder=new c(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"]));for(var n={},r=t.params||{},i=s/t.tileSize/t.scale,o=u(r.filter),a=t.queryGeometry,l=t.additionalRadius*i,h=1/0,y=1/0,d=-1/0,v=-1/0,m=0;m<a.length;m++)for(var b=a[m],x=0;x<b.length;x++){var w=b[x];h=Math.min(h,w.x),y=Math.min(y,w.y),d=Math.max(d,w.x),v=Math.max(v,w.y)}var k=this.grid.query(h-l,y-l,d+l,v+l);k.sort(g),this.filterMatching(n,k,this.featureIndexArray,a,o,r.layers,e,t.bearing,i);var S=t.collisionIndex?t.collisionIndex.queryRenderedSymbols(a,this.tileID,s/t.tileSize,t.collisionBoxArray,t.sourceID,t.bucketInstanceIds):[];return S.sort(),this.filterMatching(n,S,t.collisionBoxArray,a,o,r.layers,e,t.bearing,i),n}},{key:"filterMatching",value:function(t,e,n,r,i,o,s,u,l){for(var c,f=0;f<e.length;f++){var p=e[f];if(p!==c){c=p;var d=n.get(p),v=this.bucketLayerIDs[d.bucketIndex];if(!o||y(o,v)){var m=this.sourceLayerCoder.decode(d.sourceLayerIndex),g=this.vtLayers[m].feature(d.featureIndex);if(i({zoom:this.tileID.overscaledZ},g))for(var b=null,x=0;x<v.length;x++){var w=v[x];if(!(o&&o.indexOf(w)<0)){var k=s[w];if(k&&("symbol"===k.type||(b||(b=a(g)),k.queryIntersectsFeature(r,g,b,this.z,u,l)))){var S=new h(g,this.z,this.x,this.y);S.layer=k.serialize();var _=t[w];void 0===_&&(_=t[w]=[]),_.push({featureIndex:p,feature:S})}}}}}}}},{key:"hasLayer",value:function(t){var e,n=r(this.bucketLayerIDs);try{for(n.s();!(e=n.n()).done;){var i,o=r(e.value);try{for(o.s();!(i=o.n()).done;)if(t===i.value)return!0}catch(t){o.e(t)}finally{o.f()}}}catch(t){n.e(t)}finally{n.f()}return!1}}])&&o(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function g(t,e){return e-t}d("FeatureIndex",m,{omit:["rawTileData","sourceLayerCoder","collisionIndex"]}),t.exports=m},9631:function(t,e,n){t.exports={LineIndexArray:n(4832).LineIndexArray,TriangleIndexArray:n(4832).TriangleIndexArray}},1438:function(t,e,n){var r=n(8316),i=n(900),o=(16,{min:-1*Math.pow(2,15),max:Math.pow(2,15)-1});t.exports=function(t){for(var e=i/t.extent,n=t.loadGeometry(),a=0;a<n.length;a++)for(var s=n[a],u=0;u<s.length;u++){var l=s[u];l.x=Math.round(l.x*e),l.y=Math.round(l.y*e),(l.x<o.min||l.x>o.max||l.y<o.min||l.y>o.max)&&r.warnOnce("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return n}},9063:function(t,e,n){function r(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var u=n(9207).j,l=(n(6016),n(1786).register),c=n(5615).PossiblyEvaluatedPropertyValue,f=n(4832),p=f.StructArrayLayout1f4,h=f.StructArrayLayout2f8,y=f.StructArrayLayout4f16;function d(t){return[u(255*t.r,255*t.g),u(255*t.b,255*t.a)]}var v=function(){function t(e,n,r){o(this,t),this.value=e,this.name=n,this.type=r,this.statistics={max:-1/0}}return s(t,[{key:"defines",value:function(){return["#define HAS_UNIFORM_u_".concat(this.name)]}},{key:"populatePaintArray",value:function(){}},{key:"upload",value:function(){}},{key:"destroy",value:function(){}},{key:"setUniforms",value:function(t,e,n,r){var i=r.constantOr(this.value),o=t.gl;"color"===this.type?o.uniform4f(e.uniforms["u_".concat(this.name)],i.r,i.g,i.b,i.a):o.uniform1f(e.uniforms["u_".concat(this.name)],i)}}]),t}(),m=function(){function t(e,n,r){o(this,t),this.expression=e,this.name=n,this.type=r,this.statistics={max:-1/0};var i="color"===r?h:p;this.paintVertexAttributes=[{name:"a_".concat(n),type:"Float32",components:"color"===r?2:1,offset:0}],this.paintVertexArray=new i}return s(t,[{key:"defines",value:function(){return[]}},{key:"populatePaintArray",value:function(t,e){var n=this.paintVertexArray,r=n.length;n.reserve(t);var i=this.expression.evaluate({zoom:0},e);if("color"===this.type)for(var o=d(i),a=r;a<t;a++)n.emplaceBack(o[0],o[1]);else{for(var s=r;s<t;s++)n.emplaceBack(i);this.statistics.max=Math.max(this.statistics.max,i)}}},{key:"upload",value:function(t){this.paintVertexArray&&(this.paintVertexBuffer=t.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes))}},{key:"destroy",value:function(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()}},{key:"setUniforms",value:function(t,e){t.gl.uniform1f(e.uniforms["a_".concat(this.name,"_t")],0)}}]),t}(),g=function(){function t(e,n,r,i,a){o(this,t),this.expression=e,this.name=n,this.type=r,this.useIntegerZoom=i,this.zoom=a,this.statistics={max:-1/0};var s="color"===r?y:h;this.paintVertexAttributes=[{name:"a_".concat(n),type:"Float32",components:"color"===r?4:2,offset:0}],this.paintVertexArray=new s}return s(t,[{key:"defines",value:function(){return[]}},{key:"populatePaintArray",value:function(t,e){var n=this.paintVertexArray,r=n.length;n.reserve(t);var i=this.expression.evaluate({zoom:this.zoom},e),o=this.expression.evaluate({zoom:this.zoom+1},e);if("color"===this.type)for(var a=d(i),s=d(o),u=r;u<t;u++)n.emplaceBack(a[0],a[1],s[0],s[1]);else{for(var l=r;l<t;l++)n.emplaceBack(i,o);this.statistics.max=Math.max(this.statistics.max,i,o)}}},{key:"upload",value:function(t){this.paintVertexArray&&(this.paintVertexBuffer=t.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes))}},{key:"destroy",value:function(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()}},{key:"interpolationFactor",value:function(t){return this.useIntegerZoom?this.expression.interpolationFactor(Math.floor(t),this.zoom,this.zoom+1):this.expression.interpolationFactor(t,this.zoom,this.zoom+1)}},{key:"setUniforms",value:function(t,e,n){t.gl.uniform1f(e.uniforms["a_".concat(this.name,"_t")],this.interpolationFactor(n.zoom))}}]),t}(),b=function(){function t(){o(this,t),this.binders={},this.cacheKey="",this._buffers=[]}return s(t,[{key:"populatePaintArrays",value:function(t,e){for(var n in this.binders)this.binders[n].populatePaintArray(t,e)}},{key:"defines",value:function(){var t=[];for(var e in this.binders)t.push.apply(t,this.binders[e].defines());return t}},{key:"setUniforms",value:function(t,e,n,r){for(var i in this.binders)this.binders[i].setUniforms(t,e,r,n.get(i))}},{key:"getPaintVertexBuffers",value:function(){return this._buffers}},{key:"upload",value:function(t){for(var e in this.binders)this.binders[e].upload(t);var n=[];for(var r in this.binders){var i=this.binders[r];(i instanceof m||i instanceof g)&&i.paintVertexBuffer&&n.push(i.paintVertexBuffer)}this._buffers=n}},{key:"destroy",value:function(){for(var t in this.binders)this.binders[t].destroy()}}],[{key:"createDynamic",value:function(e,n,r){var i=new t,o=[];for(var a in e.paint._values)if(r(a)){var s=e.paint.get(a);if(s instanceof c&&s.property.specification["property-function"]){var u=w(a,e.type),l=s.property.specification.type,f=s.property.useIntegerZoom;"constant"===s.value.kind?(i.binders[a]=new v(s.value,u,l),o.push("/u_".concat(u))):"source"===s.value.kind?(i.binders[a]=new m(s.value,u,l),o.push("/a_".concat(u))):(i.binders[a]=new g(s.value,u,l,f,n),o.push("/z_".concat(u)))}}return i.cacheKey=o.sort().join(""),i}}]),t}(),x=function(){function t(e,n,i){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){return!0};o(this,t),this.programConfigurations={};var s,u=r(n);try{for(u.s();!(s=u.n()).done;){var l=s.value;this.programConfigurations[l.id]=b.createDynamic(l,i,a),this.programConfigurations[l.id].layoutAttributes=e}}catch(t){u.e(t)}finally{u.f()}}return s(t,[{key:"populatePaintArrays",value:function(t,e){for(var n in this.programConfigurations)this.programConfigurations[n].populatePaintArrays(t,e)}},{key:"get",value:function(t){return this.programConfigurations[t]}},{key:"upload",value:function(t){for(var e in this.programConfigurations)this.programConfigurations[e].upload(t)}},{key:"destroy",value:function(){for(var t in this.programConfigurations)this.programConfigurations[t].destroy()}}]),t}();function w(t,e){return{"text-opacity":"opacity","icon-opacity":"opacity","text-color":"fill_color","icon-color":"fill_color","text-halo-color":"halo_color","icon-halo-color":"halo_color","text-halo-blur":"halo_blur","icon-halo-blur":"halo_blur","text-halo-width":"halo_width","icon-halo-width":"halo_width","line-gap-width":"gapwidth"}[t]||t.replace("".concat(e,"-"),"").replace(/-/g,"_")}l("ConstantBinder",v),l("SourceExpressionBinder",m),l("CompositeExpressionBinder",g),l("ProgramConfiguration",b,{omit:["_buffers"]}),l("ProgramConfigurationSet",x),t.exports={ProgramConfiguration:b,ProgramConfigurationSet:x}},8500:function(t,e,n){function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var a=n(8316).warnOnce,s=n(1786).register,u=Math.pow(2,16)-1,l=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];i(this,e),this.segments=t}var n,s;return n=e,(s=[{key:"prepareSegment",value:function(e,n,r){var i=this.segments[this.segments.length-1];return e>u&&a("Max vertices per segment is ".concat(u,": bucket requested ").concat(e)),(!i||i.vertexLength+e>t.exports.MAX_VERTEX_ARRAY_LENGTH)&&(i={vertexOffset:n.length,primitiveOffset:r.length,vertexLength:0,primitiveLength:0},this.segments.push(i)),i}},{key:"get",value:function(){return this.segments}},{key:"destroy",value:function(){var t,e=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,o=function(){};return{s:o,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}(this.segments);try{for(e.s();!(t=e.n()).done;){var n=t.value;for(var i in n.vaos)n.vaos[i].destroy()}}catch(t){e.e(t)}finally{e.f()}}}])&&o(n.prototype,s),Object.defineProperty(n,"prototype",{writable:!1}),e}();s("SegmentVector",l),t.exports={SegmentVector:l,MAX_VERTEX_ARRAY_LENGTH:u}},3892:function(t){function e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var n=function(){function t(e,n,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.column=e,this.row=n,this.zoom=r}var n,r;return n=t,(r=[{key:"clone",value:function(){return new t(this.column,this.row,this.zoom)}},{key:"zoomTo",value:function(t){return this.clone()._zoomTo(t)}},{key:"sub",value:function(t){return this.clone()._sub(t)}},{key:"_zoomTo",value:function(t){var e=Math.pow(2,t-this.zoom);return this.column*=e,this.row*=e,this.zoom=t,this}},{key:"_sub",value:function(t){return t=t.zoomTo(this.zoom),this.column-=t.column,this.row-=t.row,this}}])&&e(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),t}();t.exports=n},5274:function(t,e,n){var r=n(3775),i=n(5641).AlphaImage;t.exports={makeGlyphAtlas:function(t){var e=new i({width:0,height:0}),n={},o=new r(0,0,{autoResize:!0});for(var a in t){var s=t[a],u=n[a]={};for(var l in s){var c=s[+l];if(c&&0!==c.bitmap.width&&0!==c.bitmap.height){var f=o.packOne(c.bitmap.width+2,c.bitmap.height+2);e.resize({width:o.w,height:o.h}),i.copy(c.bitmap,e,{x:0,y:0},{x:f.x+1,y:f.y+1},c.bitmap),u[l]={rect:f,metrics:c.metrics}}}}return o.shrink(),e.resize({width:o.w,height:o.h}),{image:e,positions:n}}}},6542:function(t,e,n){var r=n(3775),i=n(5641).RGBAImage;function o(t,e){var n=e.pixelRatio,r={x:t.x+1,y:t.y+1,w:t.w-2,h:t.h-2};return{pixelRatio:n,textureRect:r,tl:[r.x,r.y],br:[r.x+r.w,r.y+r.h],displaySize:[r.w/n,r.h/n]}}t.exports={imagePosition:o,makeImageAtlas:function(t){var e=new i({width:0,height:0}),n={},a=new r(0,0,{autoResize:!0});for(var s in t){var u=t[s],l=a.packOne(u.data.width+2,u.data.height+2);e.resize({width:a.w,height:a.h}),i.copy(u.data,e,{x:0,y:0},{x:l.x+1,y:l.y+1},u.data),n[s]=o(l,u)}return a.shrink(),e.resize({width:a.w,height:a.h}),{image:e,positions:n}}}},9207:function(t,e,n){var r=n(8316);e.j=function(t,e){return 256*(t=r.clamp(Math.floor(t),0,255))+r.clamp(Math.floor(e),0,255)}},6513:function(t,e,n){function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(){return o="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=a(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},o.apply(this,arguments)}function a(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=l(t)););return t}function s(t,e){return s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},s(t,e)}function u(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return t}(t)}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}var c=n(2341),f=n(7486),p=n(7060),h=n(9937),y=n(5975),d=n(8592).Z;function v(t,e){var n=t.source,r=t.tileID.canonical;if(!this._geoJSONIndexes[n])return e(null,null);var i=this._geoJSONIndexes[n].getTile(r.z,r.x,r.y);if(!i)return e(null,null);var o=new p(i.features),a=h(o);0===a.byteOffset&&a.byteLength===a.buffer.byteLength||(a=new Uint8Array(a)),e(null,{vectorTile:o,rawData:a.buffer})}var m=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(m,t);var e,n,a,p,h=(a=m,p=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=l(a);if(p){var n=l(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return u(this,t)});function m(t,e,n){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,m),r=h.call(this,t,e,v),n&&(r.loadGeoJSON=n),r._geoJSONIndexes={},r}return e=m,(n=[{key:"loadData",value:function(t,e){var n=this;this.loadGeoJSON(t,(function(i,o){if(i||!o)return e(i);if("object"!==r(o))return e(new Error("Input data is not a valid GeoJSON object."));f(o,!0);try{n._geoJSONIndexes[t.source]=t.cluster?y(t.superclusterOptions).load(o.features):d(o,t.geojsonVtOptions)}catch(i){return e(i)}n.loaded[t.source]={},e(null)}))}},{key:"reloadTile",value:function(t,e){var n=this.loaded[t.source],r=t.uid;return n&&n[r]?o(l(m.prototype),"reloadTile",this).call(this,t,e):this.loadTile(t,e)}},{key:"loadGeoJSON",value:function(t,e){if(t.request)c.getJSON(t.request,e);else{if("string"!=typeof t.data)return e(new Error("Input data is not a valid GeoJSON object."));try{return e(null,JSON.parse(t.data))}catch(t){return e(new Error("Input data is not a valid GeoJSON object."))}}}},{key:"removeSource",value:function(t,e){this._geoJSONIndexes[t.source]&&delete this._geoJSONIndexes[t.source],e()}}])&&i(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),m}(n(1015));t.exports=m},7060:function(t,e,n){function r(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var u=n(5550),l=n(8929).VectorTileFeature.prototype.toGeoJSON,c=n(900),f=function(){function t(e){o(this,t),this._feature=e,this.extent=c,this.type=e.type,this.properties=e.tags,"id"in e&&!isNaN(e.id)&&(this.id=parseInt(e.id,10))}return s(t,[{key:"loadGeometry",value:function(){if(1===this._feature.type){var t,e=[],n=r(this._feature.geometry);try{for(n.s();!(t=n.n()).done;){var i=t.value;e.push([new u(i[0],i[1])])}}catch(t){n.e(t)}finally{n.f()}return e}var o,a=[],s=r(this._feature.geometry);try{for(s.s();!(o=s.n()).done;){var l,c=o.value,f=[],p=r(c);try{for(p.s();!(l=p.n()).done;){var h=l.value;f.push(new u(h[0],h[1]))}}catch(t){p.e(t)}finally{p.f()}a.push(f)}}catch(t){s.e(t)}finally{s.f()}return a}},{key:"toGeoJSON",value:function(t,e,n){return l.call(this,t,e,n)}}]),t}(),p=function(){function t(e){o(this,t),this.layers={_geojsonTileLayer:this},this.name="_geojsonTileLayer",this.extent=c,this.length=e.length,this._features=e}return s(t,[{key:"feature",value:function(t){return new f(this._features[t])}}]),t}();t.exports=p},9371:function(t,e,n){function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var i=n(183).DEMData,o=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.loading={},this.loaded={}}var e,n;return e=t,(n=[{key:"loadTile",value:function(t,e){var n=t.source,r=t.uid;this.loading[n]||(this.loading[n]={});var o=new i(r);this.loading[n][r]=o,o.loadFromImage(t.rawImageData),delete this.loading[n][r],this.loaded[n]=this.loaded[n]||{},this.loaded[n][r]=o,e(null,o)}},{key:"removeTile",value:function(t){var e=this.loaded[t.source],n=t.uid;e&&e[n]&&delete e[n]}}])&&r(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();t.exports=o},4781:function(t,e,n){var r=n(2341),i=n(1495),o=n(1362),a=!1,s=null;t.exports.evented=new i,t.exports.registerForPluginAvailability=function(e){return s?e({pluginBlobURL:s,errorCallback:t.exports.errorCallback}):t.exports.evented.once("pluginAvailable",e),e},t.exports.createBlobURL=function(t){return o.URL.createObjectURL(new o.Blob([t.data],{type:"text/javascript"}))},t.exports.clearRTLTextPlugin=function(){a=!1,s=null},t.exports.setRTLTextPlugin=function(e,n){if(a)throw new Error("setRTLTextPlugin cannot be called multiple times.");a=!0,t.exports.errorCallback=n,r.getArrayBuffer({url:e},(function(e,r){e?n(e):r&&(s=t.exports.createBlobURL(r),t.exports.evented.fire("pluginAvailable",{pluginBlobURL:s,errorCallback:n}))}))},t.exports.applyArabicShaping=null,t.exports.processBidirectionalText=null},4792:function(t,e,n){function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var a=n(8620),s=n(8583),u=n(1786).register,l=n(3892),c=function(){function t(e,n,i){r(this,t),s(e>=0&&e<=25),s(n>=0&&n<Math.pow(2,e+1)),s(i>=0&&i<Math.pow(2,e)),this.z=e,this.x=n,this.y=i,this.key=h(0,e,n,i)}return o(t,[{key:"equals",value:function(t){return this.z===t.z&&this.x===t.x&&this.y===t.y}},{key:"url",value:function(t,e){var n=a.getTileBBox(this.x,this.y,this.z),r=function(t,e,n){for(var r,i="",o=t;o>0;o--)i+=(e&(r=1<<o-1)?1:0)+(n&r?2:0);return i}(this.z,this.x,this.y);return t[(this.x+this.y)%t.length].replace("{prefix}",(this.x%16).toString(16)+(this.y%16).toString(16)).replace("{z}",String(this.z)).replace("{x}",String(this.x)).replace("{y}",String("tms"===e?Math.pow(2,this.z)-this.y-1:this.y)).replace("{quadkey}",r).replace("{bbox-epsg-3857}",n)}}]),t}(),f=o((function t(e,n,i){r(this,t),this.wrap=e,this.canonical=n,this.key=h(e,n.z,n.x,n.y),this.posMatrix=i})),p=function(){function t(e,n,i,o,a){r(this,t),s(e>=i),this.overscaledZ=e,this.wrap=n,this.canonical=new c(i,+o,+a),this.key=h(n,e,o,a)}return o(t,[{key:"scaledTo",value:function(e){s(e<=this.overscaledZ);var n=this.canonical.z-e;return e>this.canonical.z?new t(e,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new t(e,this.wrap,e,this.canonical.x>>n,this.canonical.y>>n)}},{key:"isChildOf",value:function(t){var e=this.canonical.z-t.canonical.z;return 0===t.overscaledZ||t.overscaledZ<this.overscaledZ&&t.canonical.x===this.canonical.x>>e&&t.canonical.y===this.canonical.y>>e}},{key:"children",value:function(e){if(this.overscaledZ>=e)return[new t(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var n=this.canonical.z+1,r=2*this.canonical.x,i=2*this.canonical.y;return[new t(n,this.wrap,n,r,i),new t(n,this.wrap,n,r+1,i),new t(n,this.wrap,n,r,i+1),new t(n,this.wrap,n,r+1,i+1)]}},{key:"isLessThan",value:function(t){return this.wrap<t.wrap||!(this.wrap>t.wrap)&&(this.overscaledZ<t.overscaledZ||!(this.overscaledZ>t.overscaledZ)&&(this.canonical.x<t.canonical.x||!(this.canonical.x>t.canonical.x)&&this.canonical.y<t.canonical.y))}},{key:"wrapped",value:function(){return new t(this.overscaledZ,0,this.canonical.z,this.canonical.x,this.canonical.y)}},{key:"overscaleFactor",value:function(){return Math.pow(2,this.overscaledZ-this.canonical.z)}},{key:"toUnwrapped",value:function(){return new f(this.wrap,this.canonical,this.posMatrix)}},{key:"toString",value:function(){return"".concat(this.overscaledZ,"/").concat(this.canonical.x,"/").concat(this.canonical.y)}},{key:"toCoordinate",value:function(){return new l(this.canonical.x+Math.pow(2,this.wrap),this.canonical.y,this.canonical.z)}}]),t}();function h(t,e,n,r){(t*=2)<0&&(t=-1*t-1);var i=1<<e;return 32*(i*i*t+i*r+n)+e}u("CanonicalTileID",c),u("OverscaledTileID",p,{omit:["posMatrix"]}),t.exports={CanonicalTileID:c,OverscaledTileID:p,UnwrappedTileID:f}},1015:function(t,e,n){function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var i=n(2341),o=n(8929),a=n(3614),s=n(8826),u=n(8316);function l(t,e){var n=i.getArrayBuffer(t.request,(function(t,n){t?e(t):n&&e(null,{vectorTile:new o.VectorTile(new a(n.data)),rawData:n.data,cacheControl:n.cacheControl,expires:n.expires})}));return function(){n.abort(),e()}}var c=function(){function t(e,n,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.actor=e,this.layerIndex=n,this.loadVectorData=r||l,this.loading={},this.loaded={}}var e,n;return e=t,(n=[{key:"loadTile",value:function(t,e){var n=this,r=t.source,i=t.uid;this.loading[r]||(this.loading[r]={});var o=this.loading[r][i]=new s(t);o.abort=this.loadVectorData(t,(function(t,a){if(delete n.loading[r][i],t||!a)return e(t);var s=a.rawData,l={};a.expires&&(l.expires=a.expires),a.cacheControl&&(l.cacheControl=a.cacheControl),o.vectorTile=a.vectorTile,o.parse(a.vectorTile,n.layerIndex,n.actor,(function(t,n){if(t||!n)return e(t);e(null,u.extend({rawTileData:s.slice(0)},n,l))})),n.loaded[r]=n.loaded[r]||{},n.loaded[r][i]=o}))}},{key:"reloadTile",value:function(t,e){var n=this.loaded[t.source],r=t.uid,i=this;if(n&&n[r]){var o=n[r];o.showCollisionBoxes=t.showCollisionBoxes,"parsing"===o.status?o.reloadCallback=a.bind(o):"done"===o.status&&o.parse(o.vectorTile,this.layerIndex,this.actor,a.bind(o))}function a(t,n){if(this.reloadCallback){var r=this.reloadCallback;delete this.reloadCallback,this.parse(this.vectorTile,i.layerIndex,i.actor,r)}e(t,n)}}},{key:"abortTile",value:function(t,e){var n=this.loading[t.source],r=t.uid;n&&n[r]&&n[r].abort&&(n[r].abort(),delete n[r]),e()}},{key:"removeTile",value:function(t,e){var n=this.loaded[t.source],r=t.uid;n&&n[r]&&delete n[r],e()}}])&&r(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();t.exports=c},8826:function(t,e,n){function r(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var a=n(5346),s=n(9457).performSymbolLayout,u=n(4832).CollisionBoxArray,l=n(621),c=n(5571),f=n(8316),p=n(8583),h=n(6542).makeImageAtlas,y=n(5274).makeGlyphAtlas,d=n(7627),v=n(4792).OverscaledTileID,m=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.tileID=new v(e.tileID.overscaledZ,e.tileID.wrap,e.tileID.canonical.z,e.tileID.canonical.x,e.tileID.canonical.y),this.uid=e.uid,this.zoom=e.zoom,this.pixelRatio=e.pixelRatio,this.tileSize=e.tileSize,this.source=e.source,this.overscaling=e.overscaling,this.showCollisionBoxes=e.showCollisionBoxes}var e,n;return e=t,(n=[{key:"parse",value:function(t,e,n,i){var o=this;this.status="parsing",this.data=t,this.collisionBoxArray=new u;var d=new l(Object.keys(t.layers).sort()),v=new a(this.tileID,this.overscaling);v.bucketLayerIDs=[];var m,b,x,w={},k={featureIndex:v,iconDependencies:{},glyphDependencies:{}},S=e.familiesBySource[this.source];for(var _ in S){var A=t.layers[_];if(A){1===A.version&&f.warnOnce(\'Vector tile source "\'.concat(this.source,\'" layer "\').concat(_,\'" \')+"does not use vector tile spec v2 and therefore may have some rendering errors.");for(var j=d.encode(_),O=[],T=0;T<A.length;T++){var P=A.feature(T);O.push({feature:P,index:T,sourceLayerIndex:j})}var z,I=r(S[_]);try{for(I.s();!(z=I.n()).done;){var E=z.value,C=E[0];p(C.source===this.source),C.minzoom&&this.zoom<Math.floor(C.minzoom)||C.maxzoom&&this.zoom>=C.maxzoom||"none"!==C.visibility&&(g(E,this.zoom),(w[C.id]=C.createBucket({index:v.bucketLayerIDs.length,layers:E,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray})).populate(O,k),v.bucketLayerIDs.push(E.map((function(t){return t.id}))))}}catch(t){I.e(t)}finally{I.f()}}}var M=f.mapObject(k.glyphDependencies,(function(t){return Object.keys(t).map(Number)}));Object.keys(M).length?n.send("getGlyphs",{uid:this.uid,stacks:M},(function(t,e){m||(m=t,b=e,V.call(o))})):b={};var B=Object.keys(k.iconDependencies);function V(){if(m)return i(m);if(b&&x){var t=y(b),e=h(x);for(var n in w){var r=w[n];r instanceof c&&(g(r.layers,this.zoom),s(r,b,t.positions,x,e.positions,this.showCollisionBoxes))}this.status="done",i(null,{buckets:f.values(w).filter((function(t){return!t.isEmpty()})),featureIndex:v,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:t.image,iconAtlasImage:e.image})}}B.length?n.send("getImages",{icons:B},(function(t,e){m||(m=t,x=e,V.call(o))})):x={},V.call(this)}}])&&o(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function g(t,e){var n,i=new d(e),o=r(t);try{for(o.s();!(n=o.n()).done;)n.value.recalculate(i)}catch(t){o.e(t)}finally{o.f()}}t.exports=m},1737:function(t){t.exports=function(t,e,n){this.message=(t?"".concat(t,": "):"")+n,null!=e&&e.__line__&&(this.line=e.__line__)}},5827:function(t,e,n){function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(t){s=!0,i=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(t,e)||i(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){if(t){if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var s=n(5864).toString,u=n(487),l=(n(8202),n(8583)),c=function(){function t(e,n,r,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.name=e,this.type=n,this._evaluate=r,this.args=i}var e,n,o;return e=t,o=[{key:"parse",value:function(e,n){var o=e[0],a=t.definitions[o];if(!a)return n.error(\'Unknown expression "\'.concat(o,\'". If you wanted a literal array, use ["literal", [...]].\'),0);for(var c=Array.isArray(a)?a[0]:a.type,f=Array.isArray(a)?[[a[1],a[2]]]:a.overloads,p=f.filter((function(t){var n=r(t,1)[0];return!Array.isArray(n)||n.length===e.length-1})),h=[],y=1;y<e.length;y++){var d=e[y],v=void 0;if(1===p.length){var m=p[0][0];v=Array.isArray(m)?m[y-1]:m.type}var g=n.parse(d,1+h.length,v);if(!g)return null;h.push(g)}var b,x=null,w=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=i(t))){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}(p);try{for(w.s();!(b=w.n()).done;){var k=r(b.value,2),S=k[0],_=k[1];if(x=new u(n.registry,n.path,null,n.scope),Array.isArray(S)&&S.length!==h.length)x.error("Expected ".concat(S.length," arguments, but found ").concat(h.length," instead."));else{for(var A=0;A<h.length;A++){var j=Array.isArray(S)?S[A]:S.type,O=h[A];x.concat(A+1).checkSubtype(j,O.type)}if(0===x.errors.length)return new t(o,c,_,h)}}}catch(t){w.e(t)}finally{w.f()}if(l(!x||x.errors.length>0),1===p.length)n.errors.push.apply(n.errors,x.errors);else{var T=(p.length?p:f).map((function(t){var e;return e=r(t,1)[0],Array.isArray(e)?"(".concat(e.map(s).join(", "),")"):"(".concat(s(e.type),"...)")})).join(" | "),P=h.map((function(t){return s(t.type)})).join(", ");n.error("Expected arguments of type ".concat(T,", but found (").concat(P,") instead."))}return null}},{key:"register",value:function(e,n){for(var r in l(!t.definitions),t.definitions=n,n)e[r]=t}}],(n=[{key:"evaluate",value:function(t){return this._evaluate(t,this.args)}},{key:"eachChild",value:function(t){this.args.forEach(t)}},{key:"possibleOutputs",value:function(){return[void 0]}}])&&a(e.prototype,n),o&&a(e,o),Object.defineProperty(e,"prototype",{writable:!1}),t}();t.exports={CompoundExpression:c,varargs:function(t){return{type:t}}}},2779:function(t,e,n){function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var i=n(5864),o=i.toString,a=i.array,s=i.ValueType,u=i.StringType,l=i.NumberType,c=i.BooleanType,f=i.checkSubtype,p=n(1235).typeOf,h=n(7867),y={string:u,number:l,boolean:c},d=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.type=e,this.input=n}var e,n,i;return e=t,i=[{key:"parse",value:function(e,n){if(e.length<2||e.length>4)return n.error("Expected 1, 2, or 3 arguments, but found ".concat(e.length-1," instead."));var r,i;if(e.length>2){var o=e[1];if("string"!=typeof o||!(o in y))return n.error(\'The item type argument of "array" must be one of string, number, boolean\',1);r=y[o]}else r=s;if(e.length>3){if("number"!=typeof e[2]||e[2]<0||e[2]!==Math.floor(e[2]))return n.error(\'The length argument to "array" must be a positive integer literal\',2);i=e[2]}var u=a(r,i),l=n.parse(e[e.length-1],e.length-1,s);return l?new t(u,l):null}}],(n=[{key:"evaluate",value:function(t){var e=this.input.evaluate(t);if(f(this.type,p(e)))throw new h("Expected value to be of type ".concat(o(this.type),", but found ").concat(o(p(e))," instead."));return e}},{key:"eachChild",value:function(t){t(this.input)}},{key:"possibleOutputs",value:function(){return this.input.possibleOutputs()}}])&&r(e.prototype,n),i&&r(e,i),Object.defineProperty(e,"prototype",{writable:!1}),t}();t.exports=d},4434:function(t,e,n){function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var o=n(8583),a=n(5864),s=a.ObjectType,u=a.ValueType,l=a.StringType,c=a.NumberType,f=a.BooleanType,p=n(7867),h=n(5864),y=h.checkSubtype,d=h.toString,v=n(1235).typeOf,m={string:l,number:c,boolean:f,object:s},g=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.type=e,this.args=n}var e,n,a;return e=t,a=[{key:"parse",value:function(e,n){if(e.length<2)return n.error("Expected at least one argument.");var r=e[0];o(m[r],r);for(var i=m[r],a=[],s=1;s<e.length;s++){var l=n.parse(e[s],s,u);if(!l)return null;a.push(l)}return new t(i,a)}}],(n=[{key:"evaluate",value:function(t){for(var e=0;e<this.args.length;e++){var n=this.args[e].evaluate(t);if(!y(this.type,v(n)))return n;if(e===this.args.length-1)throw new p("Expected value to be of type ".concat(d(this.type),", but found ").concat(d(v(n))," instead."))}return o(!1),null}},{key:"eachChild",value:function(t){this.args.forEach(t)}},{key:"possibleOutputs",value:function(){var t,e;return(t=[]).concat.apply(t,function(t){if(Array.isArray(t))return r(t)}(e=this.args.map((function(t){return t.possibleOutputs()})))||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||function(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}}])&&i(e.prototype,n),a&&i(e,a),Object.defineProperty(e,"prototype",{writable:!1}),t}();t.exports=g},4379:function(t,e,n){function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var i=n(5864),o=i.array,a=i.ValueType,s=i.NumberType,u=n(7867),l=function(){function t(e,n,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.type=e,this.index=n,this.input=r}var e,n,i;return e=t,n=[{key:"evaluate",value:function(t){var e=this.index.evaluate(t),n=this.input.evaluate(t);if(e<0||e>=n.length)throw new u("Array index out of bounds: ".concat(e," > ").concat(n.length,"."));if(e!==Math.floor(e))throw new u("Array index must be an integer, but found ".concat(e," instead."));return n[e]}},{key:"eachChild",value:function(t){t(this.index),t(this.input)}},{key:"possibleOutputs",value:function(){return[void 0]}}],i=[{key:"parse",value:function(e,n){if(3!==e.length)return n.error("Expected 2 arguments, but found ".concat(e.length-1," instead."));var r=n.parse(e[1],1,s),i=n.parse(e[2],2,o(n.expectedType||a));return r&&i?new t(i.type.itemType,r,i):null}}],n&&r(e.prototype,n),i&&r(e,i),Object.defineProperty(e,"prototype",{writable:!1}),t}();t.exports=l},8955:function(t,e,n){function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(t){s=!0,i=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(t,e)||o(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=o(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function o(t,e){if(t){if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(t,e):void 0}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var u=n(8583),l=n(5864).BooleanType,c=function(){function t(e,n,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.type=e,this.branches=n,this.otherwise=r}var e,n,c;return e=t,c=[{key:"parse",value:function(e,n){if(e.length<4)return n.error("Expected at least 3 arguments, but found only ".concat(e.length-1,"."));if(e.length%2!=0)return n.error("Expected an odd number of arguments.");var r;n.expectedType&&"value"!==n.expectedType.kind&&(r=n.expectedType);for(var i=[],o=1;o<e.length-1;o+=2){var a=n.parse(e[o],o,l);if(!a)return null;var s=n.parse(e[o+1],o+1,r);if(!s)return null;i.push([a,s]),r=r||s.type}var c=n.parse(e[e.length-1],e.length-1,r);return c?(u(r),new t(r,i,c)):null}}],(n=[{key:"evaluate",value:function(t){var e,n=i(this.branches);try{for(n.s();!(e=n.n()).done;){var o=r(e.value,2),a=o[0],s=o[1];if(a.evaluate(t))return s.evaluate(t)}}catch(t){n.e(t)}finally{n.f()}return this.otherwise.evaluate(t)}},{key:"eachChild",value:function(t){var e,n=i(this.branches);try{for(n.s();!(e=n.n()).done;){var o=r(e.value,2),a=o[0],s=o[1];t(a),t(s)}}catch(t){n.e(t)}finally{n.f()}t(this.otherwise)}},{key:"possibleOutputs",value:function(){var t,e;return(t=[]).concat.apply(t,(e=this.branches.map((function(t){var e=r(t,2);return e[0],e[1].possibleOutputs()})),function(t){if(Array.isArray(t))return a(t)}(e)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||o(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())).concat(this.otherwise.possibleOutputs())}}])&&s(e.prototype,n),c&&s(e,c),Object.defineProperty(e,"prototype",{writable:!1}),t}();t.exports=c},1910:function(t,e,n){function r(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=i(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function i(t,e){if(t){if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var s=n(8583),u=n(5864),l=u.checkSubtype,c=u.ValueType,f=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.type=e,this.args=n}var e,n,u;return e=t,u=[{key:"parse",value:function(e,n){if(e.length<2)return n.error("Expectected at least one argument.");var i=null,o=n.expectedType;o&&"value"!==o.kind&&(i=o);var a,u=[],f=r(e.slice(1));try{for(f.s();!(a=f.n()).done;){var p=a.value,h=n.parse(p,1+u.length,i,void 0,{omitTypeAnnotations:!0});if(!h)return null;i=i||h.type,u.push(h)}}catch(t){f.e(t)}finally{f.f()}s(i);var y=o&&u.some((function(t){return l(o,t.type)}));return new t(y?c:i,u)}}],(n=[{key:"evaluate",value:function(t){var e,n=null,i=r(this.args);try{for(i.s();!(e=i.n()).done&&null===(n=e.value.evaluate(t)););}catch(t){i.e(t)}finally{i.f()}return n}},{key:"eachChild",value:function(t){this.args.forEach(t)}},{key:"possibleOutputs",value:function(){var t,e;return(t=[]).concat.apply(t,function(t){if(Array.isArray(t))return o(t)}(e=this.args.map((function(t){return t.possibleOutputs()})))||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||i(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}}])&&a(e.prototype,n),u&&a(e,u),Object.defineProperty(e,"prototype",{writable:!1}),t}();t.exports=f},3287:function(t,e,n){function r(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=i(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function i(t,e){if(t){if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var s=n(8583),u=n(5864),l=u.ColorType,c=u.ValueType,f=u.NumberType,p=n(1235),h=p.Color,y=p.validateRGBA,d=n(7867),v={"to-number":f,"to-color":l},m=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.type=e,this.args=n}var e,n,u;return e=t,u=[{key:"parse",value:function(e,n){if(e.length<2)return n.error("Expected at least one argument.");var r=e[0];s(v[r],r);for(var i=v[r],o=[],a=1;a<e.length;a++){var u=n.parse(e[a],a,c);if(!u)return null;o.push(u)}return new t(i,o)}}],(n=[{key:"evaluate",value:function(t){if("color"===this.type.kind){var e,n,i,o=r(this.args);try{for(o.s();!(i=o.n()).done;)if(e=i.value.evaluate(t),n=null,"string"==typeof e){var a=t.parseColor(e);if(a)return a}else if(Array.isArray(e)&&!(n=e.length<3||e.length>4?"Invalid rbga value ".concat(JSON.stringify(e),": expected an array containing either three or four numeric values."):y(e[0],e[1],e[2],e[3])))return new h(e[0]/255,e[1]/255,e[2]/255,e[3])}catch(t){o.e(t)}finally{o.f()}throw new d(n||"Could not parse color from value \'".concat("string"==typeof e?e:JSON.stringify(e),"\'"))}var s,u=null,l=r(this.args);try{for(l.s();!(s=l.n()).done;)if(null!==(u=s.value.evaluate(t))){var c=Number(u);if(!isNaN(c))return c}}catch(t){l.e(t)}finally{l.f()}throw new d("Could not convert ".concat(JSON.stringify(u)," to number."))}},{key:"eachChild",value:function(t){this.args.forEach(t)}},{key:"possibleOutputs",value:function(){var t,e;return(t=[]).concat.apply(t,function(t){if(Array.isArray(t))return o(t)}(e=this.args.map((function(t){return t.possibleOutputs()})))||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||i(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}}])&&a(e.prototype,n),u&&a(e,u),Object.defineProperty(e,"prototype",{writable:!1}),t}();t.exports=m},8468:function(t,e,n){function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var i=n(5864),o=i.ValueType,a=i.BooleanType,s=n(5864).toString;function u(t){return"string"===t.kind||"number"===t.kind||"boolean"===t.kind||"null"===t.kind}function l(t){return function(){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),this.type=a,this.lhs=t,this.rhs=n}var n,i,l;return n=e,l=[{key:"parse",value:function(t,n){if(3!==t.length)return n.error("Expected two arguments.");var r=n.parse(t[1],1,o);if(!r)return null;var i=n.parse(t[2],2,o);return i?u(r.type)||u(i.type)?r.type.kind!==i.type.kind&&"value"!==r.type.kind&&"value"!==i.type.kind?n.error("Cannot compare ".concat(s(r.type)," and ").concat(s(i.type),".")):new e(r,i):n.error("Expected at least one argument to be a string, number, boolean, or null, but found (".concat(s(r.type),", ").concat(s(i.type),") instead.")):null}}],(i=[{key:"evaluate",value:function(e){return t(this.lhs.evaluate(e),this.rhs.evaluate(e))}},{key:"eachChild",value:function(t){t(this.lhs),t(this.rhs)}},{key:"possibleOutputs",value:function(){return[!0,!1]}}])&&r(n.prototype,i),l&&r(n,l),Object.defineProperty(n,"prototype",{writable:!1}),e}()}t.exports={Equals:l((function(t,e){return t===e})),NotEquals:l((function(t,e){return t!==e}))}},6416:function(t,e,n){function r(t){return function(t){if(Array.isArray(t))return u(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||s(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=s(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw o}}}}function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function a(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(t){s=!0,i=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(t,e)||s(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){if(t){if("string"==typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var l=n(5864),c=l.NumberType,f=l.StringType,p=l.BooleanType,h=l.ColorType,y=l.ObjectType,d=l.ValueType,v=l.ErrorType,m=l.array,g=l.toString,b=n(1235),x=b.typeOf,w=b.Color,k=b.validateRGBA,S=n(5827),_=S.CompoundExpression,A=S.varargs,j=n(7867),O=n(7591),T=n(941),P=n(4598),z=n(4434),I=n(2779),E=n(3287),C=n(4379),M=n(6436),B=n(8955),V=n(4773),R=n(2955),L=n(1910),F=n(8468),D={"==":F.Equals,"!=":F.NotEquals,array:I,at:C,boolean:z,case:B,coalesce:L,interpolate:R,let:O,literal:P,match:M,number:z,object:z,step:V,string:z,"to-color":E,"to-number":E,var:T};function q(t,e){var n=a(e,4),r=n[0],i=n[1],o=n[2],s=n[3];r=r.evaluate(t),i=i.evaluate(t),o=o.evaluate(t);var u=s?s.evaluate(t):1,l=k(r,i,o,u);if(l)throw new j(l);return new w(r/255*u,i/255*u,o/255*u,u)}function U(t,e){return t in e}function N(t,e){var n=e[t];return void 0===n?null:n}function J(t,e){return a(e,1)[0].evaluate(t).length}function G(t,e){var n=a(e,2),r=n[0],i=n[1];return r.evaluate(t)<i.evaluate(t)}function Z(t,e){var n=a(e,2),r=n[0],i=n[1];return r.evaluate(t)>i.evaluate(t)}function H(t,e){var n=a(e,2),r=n[0],i=n[1];return r.evaluate(t)<=i.evaluate(t)}function W(t,e){var n=a(e,2),r=n[0],i=n[1];return r.evaluate(t)>=i.evaluate(t)}_.register(D,{error:[v,[f],function(t,e){var n=a(e,1)[0];throw new j(n.evaluate(t))}],typeof:[f,[d],function(t,e){var n=a(e,1)[0];return g(x(n.evaluate(t)))}],"to-string":[f,[d],function(t,e){var n=a(e,1)[0],r=o(n=n.evaluate(t));return null===n||"string"===r||"number"===r||"boolean"===r?String(n):n instanceof w?n.toString():JSON.stringify(n)}],"to-boolean":[p,[d],function(t,e){var n=a(e,1)[0];return Boolean(n.evaluate(t))}],"to-rgba":[m(c,4),[h],function(t,e){var n=a(e,1)[0].evaluate(t),r=n.r,i=n.g,o=n.b,s=n.a;return[255*r/s,255*i/s,255*o/s,s]}],rgb:[h,[c,c,c],q],rgba:[h,[c,c,c,c],q],length:{type:c,overloads:[[[f],J],[[m(d)],J]]},has:{type:p,overloads:[[[f],function(t,e){return U(a(e,1)[0].evaluate(t),t.properties())}],[[f,y],function(t,e){var n=a(e,2),r=n[0],i=n[1];return U(r.evaluate(t),i.evaluate(t))}]]},get:{type:d,overloads:[[[f],function(t,e){return N(a(e,1)[0].evaluate(t),t.properties())}],[[f,y],function(t,e){var n=a(e,2),r=n[0],i=n[1];return N(r.evaluate(t),i.evaluate(t))}]]},properties:[y,[],function(t){return t.properties()}],"geometry-type":[f,[],function(t){return t.geometryType()}],id:[d,[],function(t){return t.id()}],zoom:[c,[],function(t){return t.globals.zoom}],"heatmap-density":[c,[],function(t){return t.globals.heatmapDensity||0}],"+":[c,A(c),function(t,e){var n,r=0,o=i(e);try{for(o.s();!(n=o.n()).done;)r+=n.value.evaluate(t)}catch(t){o.e(t)}finally{o.f()}return r}],"*":[c,A(c),function(t,e){var n,r=1,o=i(e);try{for(o.s();!(n=o.n()).done;)r*=n.value.evaluate(t)}catch(t){o.e(t)}finally{o.f()}return r}],"-":{type:c,overloads:[[[c,c],function(t,e){var n=a(e,2),r=n[0],i=n[1];return r.evaluate(t)-i.evaluate(t)}],[[c],function(t,e){return-a(e,1)[0].evaluate(t)}]]},"/":[c,[c,c],function(t,e){var n=a(e,2),r=n[0],i=n[1];return r.evaluate(t)/i.evaluate(t)}],"%":[c,[c,c],function(t,e){var n=a(e,2),r=n[0],i=n[1];return r.evaluate(t)%i.evaluate(t)}],ln2:[c,[],function(){return Math.LN2}],pi:[c,[],function(){return Math.PI}],e:[c,[],function(){return Math.E}],"^":[c,[c,c],function(t,e){var n=a(e,2),r=n[0],i=n[1];return Math.pow(r.evaluate(t),i.evaluate(t))}],sqrt:[c,[c],function(t,e){var n=a(e,1)[0];return Math.sqrt(n.evaluate(t))}],log10:[c,[c],function(t,e){var n=a(e,1)[0];return Math.log10(n.evaluate(t))}],ln:[c,[c],function(t,e){var n=a(e,1)[0];return Math.log(n.evaluate(t))}],log2:[c,[c],function(t,e){var n=a(e,1)[0];return Math.log2(n.evaluate(t))}],sin:[c,[c],function(t,e){var n=a(e,1)[0];return Math.sin(n.evaluate(t))}],cos:[c,[c],function(t,e){var n=a(e,1)[0];return Math.cos(n.evaluate(t))}],tan:[c,[c],function(t,e){var n=a(e,1)[0];return Math.tan(n.evaluate(t))}],asin:[c,[c],function(t,e){var n=a(e,1)[0];return Math.asin(n.evaluate(t))}],acos:[c,[c],function(t,e){var n=a(e,1)[0];return Math.acos(n.evaluate(t))}],atan:[c,[c],function(t,e){var n=a(e,1)[0];return Math.atan(n.evaluate(t))}],min:[c,A(c),function(t,e){return Math.min.apply(Math,r(e.map((function(e){return e.evaluate(t)}))))}],max:[c,A(c),function(t,e){return Math.max.apply(Math,r(e.map((function(e){return e.evaluate(t)}))))}],"filter-==":[p,[f,d],function(t,e){var n=a(e,2),r=n[0],i=n[1];return t.properties()[r.value]===i.value}],"filter-id-==":[p,[d],function(t,e){var n=a(e,1)[0];return t.id()===n.value}],"filter-type-==":[p,[f],function(t,e){var n=a(e,1)[0];return t.geometryType()===n.value}],"filter-<":[p,[f,d],function(t,e){var n=a(e,2),r=n[0],i=n[1],s=t.properties()[r.value],u=i.value;return o(s)===o(u)&&s<u}],"filter-id-<":[p,[d],function(t,e){var n=a(e,1)[0],r=t.id(),i=n.value;return o(r)===o(i)&&r<i}],"filter->":[p,[f,d],function(t,e){var n=a(e,2),r=n[0],i=n[1],s=t.properties()[r.value],u=i.value;return o(s)===o(u)&&s>u}],"filter-id->":[p,[d],function(t,e){var n=a(e,1)[0],r=t.id(),i=n.value;return o(r)===o(i)&&r>i}],"filter-<=":[p,[f,d],function(t,e){var n=a(e,2),r=n[0],i=n[1],s=t.properties()[r.value],u=i.value;return o(s)===o(u)&&s<=u}],"filter-id-<=":[p,[d],function(t,e){var n=a(e,1)[0],r=t.id(),i=n.value;return o(r)===o(i)&&r<=i}],"filter->=":[p,[f,d],function(t,e){var n=a(e,2),r=n[0],i=n[1],s=t.properties()[r.value],u=i.value;return o(s)===o(u)&&s>=u}],"filter-id->=":[p,[d],function(t,e){var n=a(e,1)[0],r=t.id(),i=n.value;return o(r)===o(i)&&r>=i}],"filter-has":[p,[d],function(t,e){return a(e,1)[0].value in t.properties()}],"filter-has-id":[p,[],function(t){return null!==t.id()}],"filter-type-in":[p,[m(f)],function(t,e){return a(e,1)[0].value.indexOf(t.geometryType())>=0}],"filter-id-in":[p,[m(d)],function(t,e){return a(e,1)[0].value.indexOf(t.id())>=0}],"filter-in-small":[p,[f,m(d)],function(t,e){var n=a(e,2),r=n[0];return n[1].value.indexOf(t.properties()[r.value])>=0}],"filter-in-large":[p,[f,m(d)],function(t,e){var n=a(e,2),r=n[0],i=n[1];return function(t,e,n,r){for(;n<=r;){var i=n+r>>1;if(e[i]===t)return!0;e[i]>t?r=i-1:n=i+1}return!1}(t.properties()[r.value],i.value,0,i.value.length-1)}],">":{type:p,overloads:[[[c,c],Z],[[f,f],Z]]},"<":{type:p,overloads:[[[c,c],G],[[f,f],G]]},">=":{type:p,overloads:[[[c,c],W],[[f,f],W]]},"<=":{type:p,overloads:[[[c,c],H],[[f,f],H]]},all:{type:p,overloads:[[[p,p],function(t,e){var n=a(e,2),r=n[0],i=n[1];return r.evaluate(t)&&i.evaluate(t)}],[A(p),function(t,e){var n,r=i(e);try{for(r.s();!(n=r.n()).done;)if(!n.value.evaluate(t))return!1}catch(t){r.e(t)}finally{r.f()}return!0}]]},any:{type:p,overloads:[[[p,p],function(t,e){var n=a(e,2),r=n[0],i=n[1];return r.evaluate(t)||i.evaluate(t)}],[A(p),function(t,e){var n,r=i(e);try{for(r.s();!(n=r.n()).done;)if(n.value.evaluate(t))return!0}catch(t){r.e(t)}finally{r.f()}return!1}]]},"!":[p,[p],function(t,e){return!a(e,1)[0].evaluate(t)}],upcase:[f,[f],function(t,e){return a(e,1)[0].evaluate(t).toUpperCase()}],downcase:[f,[f],function(t,e){return a(e,1)[0].evaluate(t).toLowerCase()}],concat:[f,A(f),function(t,e){return e.map((function(e){return e.evaluate(t)})).join("")}]}),t.exports=D},2955:function(t,e,n){function r(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function i(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(t){if(Array.isArray(t))return t}function a(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=s(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw o}}}}function s(t,e){if(t){if("string"==typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var c=n(9874),f=n(2643),p=n(5864),h=p.toString,y=p.NumberType,d=n(2670).findStopLessThanOrEqualTo,v=function(){function t(e,n,r,u){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.type=e,this.interpolation=n,this.input=r,this.labels=[],this.outputs=[];var l,c,f,p=a(u);try{for(p.s();!(l=p.n()).done;){var h=(c=l.value,f=2,o(c)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(t){s=!0,i=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(c,f)||s(c,f)||i()),y=h[0],d=h[1];this.labels.push(y),this.outputs.push(d)}}catch(t){p.e(t)}finally{p.f()}}var e,n,p;return e=t,p=[{key:"interpolationFactor",value:function(t,e,n,r){var i=0;if("exponential"===t.name)i=m(e,t.base,n,r);else if("linear"===t.name)i=m(e,1,n,r);else if("cubic-bezier"===t.name){var o=t.controlPoints;i=new c(o[0],o[1],o[2],o[3]).solve(m(e,1,n,r))}return i}},{key:"parse",value:function(e,n){var a,u=o(a=e)||r(a)||s(a)||i(),l=u[1],c=u[2],f=u.slice(3);if(!Array.isArray(l)||0===l.length)return n.error("Expected an interpolation type expression.",1);if("linear"===l[0])l={name:"linear"};else if("exponential"===l[0]){var p=l[1];if("number"!=typeof p)return n.error("Exponential interpolation requires a numeric base.",1,1);l={name:"exponential",base:p}}else{if("cubic-bezier"!==l[0])return n.error("Unknown interpolation type ".concat(String(l[0])),1,0);var d=l.slice(1);if(4!==d.length||d.some((function(t){return"number"!=typeof t||t<0||t>1})))return n.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);l={name:"cubic-bezier",controlPoints:d}}if(e.length-1<4)return n.error("Expected at least 4 arguments, but found only ".concat(e.length-1,"."));if((e.length-1)%2!=0)return n.error("Expected an even number of arguments.");if(!(c=n.parse(c,2,y)))return null;var v=[],m=null;n.expectedType&&"value"!==n.expectedType.kind&&(m=n.expectedType);for(var g=0;g<f.length;g+=2){var b=f[g],x=f[g+1],w=g+3,k=g+4;if("number"!=typeof b)return n.error(\'Input/output pairs for "interpolate" expressions must be defined using literal numeric values (not computed expressions) for the input values.\',w);if(v.length&&v[v.length-1][0]>=b)return n.error(\'Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.\',w);var S=n.parse(x,k,m);if(!S)return null;m=m||S.type,v.push([b,S])}return"number"===m.kind||"color"===m.kind||"array"===m.kind&&"number"===m.itemType.kind&&"number"==typeof m.N?new t(m,l,c,v):n.error("Type ".concat(h(m)," is not interpolatable."))}}],(n=[{key:"evaluate",value:function(e){var n=this.labels,r=this.outputs;if(1===n.length)return r[0].evaluate(e);var i=this.input.evaluate(e);if(i<=n[0])return r[0].evaluate(e);var o=n.length;if(i>=n[o-1])return r[o-1].evaluate(e);var a=d(n,i),s=n[a],u=n[a+1],l=t.interpolationFactor(this.interpolation,i,s,u),c=r[a].evaluate(e),p=r[a+1].evaluate(e);return f[this.type.kind.toLowerCase()](c,p,l)}},{key:"eachChild",value:function(t){t(this.input);var e,n=a(this.outputs);try{for(n.s();!(e=n.n()).done;)t(e.value)}catch(t){n.e(t)}finally{n.f()}}},{key:"possibleOutputs",value:function(){var t,e;return(t=[]).concat.apply(t,function(t){if(Array.isArray(t))return u(t)}(e=this.outputs.map((function(t){return t.possibleOutputs()})))||r(e)||s(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}}])&&l(e.prototype,n),p&&l(e,p),Object.defineProperty(e,"prototype",{writable:!1}),t}();function m(t,e,n,r){var i=r-n,o=t-n;return 0===i?0:1===e?o/i:(Math.pow(e,o)-1)/(Math.pow(e,i)-1)}t.exports=v},7591:function(t){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var i=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.type=n.type,this.bindings=[].concat(e),this.result=n}var i,o,a;return i=t,a=[{key:"parse",value:function(n,r){if(n.length<4)return r.error("Expected at least 3 arguments, but found ".concat(n.length-1," instead."));for(var i=[],o=1;o<n.length-1;o+=2){var a=n[o];if("string"!=typeof a)return r.error("Expected string, but found ".concat(e(a)," instead."),o);if(/[^a-zA-Z0-9_]/.test(a))return r.error("Variable names must contain only alphanumeric characters or \'_\'.",o);var s=r.parse(n[o+1],o+1);if(!s)return null;i.push([a,s])}var u=r.parse(n[n.length-1],n.length-1,void 0,i);return u?new t(i,u):null}}],(o=[{key:"evaluate",value:function(t){t.pushScope(this.bindings);var e=this.result.evaluate(t);return t.popScope(),e}},{key:"eachChild",value:function(t){var e,r=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return n(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var i=0,o=function(){};return{s:o,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}(this.bindings);try{for(r.s();!(e=r.n()).done;)t(e.value[1])}catch(t){r.e(t)}finally{r.f()}t(this.result)}},{key:"possibleOutputs",value:function(){return this.result.possibleOutputs()}}])&&r(i.prototype,o),a&&r(i,a),Object.defineProperty(i,"prototype",{writable:!1}),t}();t.exports=i},4598:function(t,e,n){function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var i=n(1235),o=i.isValue,a=i.typeOf,s=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.type=e,this.value=n}var e,n,i;return e=t,i=[{key:"parse",value:function(e,n){if(2!==e.length)return n.error("\'literal\' expression requires exactly one argument, but found ".concat(e.length-1," instead."));if(!o(e[1]))return n.error("invalid value");var r=e[1],i=a(r),s=n.expectedType;return"array"!==i.kind||0!==i.N||!s||"array"!==s.kind||"number"==typeof s.N&&0!==s.N||(i=s),new t(i,r)}}],(n=[{key:"evaluate",value:function(){return this.value}},{key:"eachChild",value:function(){}},{key:"possibleOutputs",value:function(){return[this.value]}}])&&r(e.prototype,n),i&&r(e,i),Object.defineProperty(e,"prototype",{writable:!1}),t}();t.exports=s},6436:function(t,e,n){function r(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=i(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function i(t,e){if(t){if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var s=n(8583),u=n(1235).typeOf,l=function(){function t(e,n,r,i,o,a){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.inputType=e,this.type=n,this.input=r,this.cases=i,this.outputs=o,this.otherwise=a}var e,n,l;return e=t,l=[{key:"parse",value:function(e,n){if(e.length<5)return n.error("Expected at least 4 arguments, but found only ".concat(e.length-1,"."));if(e.length%2!=1)return n.error("Expected an even number of arguments.");var i,o;n.expectedType&&"value"!==n.expectedType.kind&&(o=n.expectedType);for(var a={},l=[],c=2;c<e.length-1;c+=2){var f=e[c],p=e[c+1];Array.isArray(f)||(f=[f]);var h=n.concat(c);if(0===f.length)return h.error("Expected at least one branch label.");var y,d=r(f);try{for(d.s();!(y=d.n()).done;){var v=y.value;if("number"!=typeof v&&"string"!=typeof v)return h.error("Branch labels must be numbers or strings.");if("number"==typeof v&&Math.abs(v)>Number.MAX_SAFE_INTEGER)return h.error("Branch labels must be integers no larger than ".concat(Number.MAX_SAFE_INTEGER,"."));if("number"==typeof v&&Math.floor(v)!==v)return h.error("Numeric branch labels must be integer values.");if(i){if(h.checkSubtype(i,u(v)))return null}else i=u(v);if(void 0!==a[String(v)])return h.error("Branch labels must be unique.");a[String(v)]=l.length}}catch(t){d.e(t)}finally{d.f()}var m=n.parse(p,c,o);if(!m)return null;o=o||m.type,l.push(m)}var g=n.parse(e[1],1,i);if(!g)return null;var b=n.parse(e[e.length-1],e.length-1,o);return b?(s(i&&o),new t(i,o,g,a,l,b)):null}}],(n=[{key:"evaluate",value:function(t){var e=this.input.evaluate(t);return(this.outputs[this.cases[e]]||this.otherwise).evaluate(t)}},{key:"eachChild",value:function(t){t(this.input),this.outputs.forEach(t),t(this.otherwise)}},{key:"possibleOutputs",value:function(){var t,e;return(t=[]).concat.apply(t,(e=this.outputs.map((function(t){return t.possibleOutputs()})),function(t){if(Array.isArray(t))return o(t)}(e)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||i(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())).concat(this.otherwise.possibleOutputs())}}])&&a(e.prototype,n),l&&a(e,l),Object.defineProperty(e,"prototype",{writable:!1}),t}();t.exports=l},4773:function(t,e,n){function r(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function i(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(t){if(Array.isArray(t))return t}function a(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=s(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw o}}}}function s(t,e){if(t){if("string"==typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var c=n(5864).NumberType,f=n(2670).findStopLessThanOrEqualTo,p=function(){function t(e,n,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.type=e,this.input=n,this.labels=[],this.outputs=[];var u,l,c,f=a(r);try{for(f.s();!(u=f.n()).done;){var p=(l=u.value,c=2,o(l)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(t){s=!0,i=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(l,c)||s(l,c)||i()),h=p[0],y=p[1];this.labels.push(h),this.outputs.push(y)}}catch(t){f.e(t)}finally{f.f()}}var e,n,p;return e=t,p=[{key:"parse",value:function(e,n){var a,u=o(a=e)||r(a)||s(a)||i(),l=u[1],f=u.slice(2);if(e.length-1<4)return n.error("Expected at least 4 arguments, but found only ".concat(e.length-1,"."));if((e.length-1)%2!=0)return n.error("Expected an even number of arguments.");if(!(l=n.parse(l,1,c)))return null;var p=[],h=null;n.expectedType&&"value"!==n.expectedType.kind&&(h=n.expectedType),f.unshift(-1/0);for(var y=0;y<f.length;y+=2){var d=f[y],v=f[y+1],m=y+1,g=y+2;if("number"!=typeof d)return n.error(\'Input/output pairs for "step" expressions must be defined using literal numeric values (not computed expressions) for the input values.\',m);if(p.length&&p[p.length-1][0]>=d)return n.error(\'Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.\',m);var b=n.parse(v,g,h);if(!b)return null;h=h||b.type,p.push([d,b])}return new t(h,l,p)}}],(n=[{key:"evaluate",value:function(t){var e=this.labels,n=this.outputs;if(1===e.length)return n[0].evaluate(t);var r=this.input.evaluate(t);if(r<=e[0])return n[0].evaluate(t);var i=e.length;return r>=e[i-1]?n[i-1].evaluate(t):n[f(e,r)].evaluate(t)}},{key:"eachChild",value:function(t){t(this.input);var e,n=a(this.outputs);try{for(n.s();!(e=n.n()).done;)t(e.value)}catch(t){n.e(t)}finally{n.f()}}},{key:"possibleOutputs",value:function(){var t,e;return(t=[]).concat.apply(t,function(t){if(Array.isArray(t))return u(t)}(e=this.outputs.map((function(t){return t.possibleOutputs()})))||r(e)||s(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}}])&&l(e.prototype,n),p&&l(e,p),Object.defineProperty(e,"prototype",{writable:!1}),t}();t.exports=p},941:function(t){function e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var n=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.type=n,this.name=e}var n,r,i;return n=t,i=[{key:"parse",value:function(e,n){if(2!==e.length||"string"!=typeof e[1])return n.error("\'var\' expression requires exactly one string literal argument.");var r=e[1];return n.scope.has(r)?new t(r,n.scope.get(r).type):n.error(\'Unknown variable "\'.concat(r,\'". Make sure "\').concat(r,\'" has been bound in an enclosing "let" expression before using it.\'),1)}}],(r=[{key:"evaluate",value:function(t){return t.scope.get(this.name).evaluate(t)}},{key:"eachChild",value:function(){}},{key:"possibleOutputs",value:function(){return[void 0]}}])&&e(n.prototype,r),i&&e(n,i),Object.defineProperty(n,"prototype",{writable:!1}),t}();t.exports=n},8202:function(t,e,n){function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var i=n(8583),o=n(6393),a=n(1235).Color,s=["Unknown","Point","LineString","Polygon"],u=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.scope=new o,this._parseColorCache={}}var e,n;return e=t,(n=[{key:"id",value:function(){return this.feature&&"id"in this.feature?this.feature.id:null}},{key:"geometryType",value:function(){return this.feature?"number"==typeof this.feature.type?s[this.feature.type]:this.feature.type:null}},{key:"properties",value:function(){return this.feature&&this.feature.properties||{}}},{key:"pushScope",value:function(t){this.scope=this.scope.concat(t)}},{key:"popScope",value:function(){i(this.scope.parent),this.scope=this.scope.parent}},{key:"parseColor",value:function(t){var e=this._parseColorCache[t];return e||(e=this._parseColorCache[t]=a.parse(t)),e}}])&&r(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();t.exports=u},8266:function(t,e,n){function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function o(t,e){return o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},o(t,e)}function a(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return t}(t)}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&l(t.prototype,e),n&&l(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var f=n(8583),p=n(358),h=n(6212),y=n(487),d=n(8202),v=n(5827).CompoundExpression,m=n(4773),g=n(2955),b=n(1910),x=n(7591),w=n(6416),k=n(7546),S=n(7867),_=n(3803),A=_.success,j=_.error,O=function(){function t(e){u(this,t),this.expression=e}return c(t,[{key:"evaluate",value:function(t,e){return this._evaluator||(this._evaluator=new d),this._evaluator.globals=t,this._evaluator.feature=e,this.expression.evaluate(this._evaluator)}}]),t}(),T=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&o(t,e)}(i,t);var e,n,r=(e=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=s(e);if(n){var i=s(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return a(this,t)});function i(t,e){var n,o;return u(this,i),(n=r.call(this,t))._warningHistory={},n._defaultValue="color"===(o=e).type&&B(o.default)?new R(0,0,0,0):"color"===o.type?R.parse(o.default)||null:void 0===o.default?null:o.default,"enum"===e.type&&(n._enumValues=e.values),n}return c(i,[{key:"evaluate",value:function(t,e){this._evaluator||(this._evaluator=new d),this._evaluator.globals=t,this._evaluator.feature=e;try{var n=this.expression.evaluate(this._evaluator);if(null==n)return this._defaultValue;if(this._enumValues&&!(n in this._enumValues))throw new S("Expected value to be one of ".concat(Object.keys(this._enumValues).map((function(t){return JSON.stringify(t)})).join(", "),", but found ").concat(JSON.stringify(n)," instead."));return n}catch(t){return this._warningHistory[t.message]||(this._warningHistory[t.message]=!0,"undefined"!=typeof console&&console.warn(t.message)),this._defaultValue}}}]),i}(O);function P(t){return Array.isArray(t)&&t.length>0&&"string"==typeof t[0]&&t[0]in w}function z(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=new y(w,[],H(e)),i=r.parse(t);return i?!1===n.handleErrors?A(new O(i)):A(new T(i,e)):(f(r.errors.length>0),j(r.errors))}var I=function(){function t(e,n){u(this,t),this.kind=e,this._styleExpression=n}return c(t,[{key:"evaluate",value:function(t,e){return this._styleExpression.evaluate(t,e)}}]),t}(),E=function(){function t(e,n,r){u(this,t),this.kind=e,this.zoomStops=r.labels,this._styleExpression=n,r instanceof g&&(this._interpolationType=r.interpolation)}return c(t,[{key:"evaluate",value:function(t,e){return this._styleExpression.evaluate(t,e)}},{key:"interpolationFactor",value:function(t,e,n){return this._interpolationType?g.interpolationFactor(this._interpolationType,t,e,n):0}}]),t}();function C(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("error"===(t=z(t,e,n)).result)return t;var r=t.value.expression,i=k.isFeatureConstant(r);if(!i&&!e["property-function"])return j([new h("","property expressions not supported")]);var o=k.isGlobalPropertyConstant(r,["zoom"]);if(!o&&!1===e["zoom-function"])return j([new h("","zoom expressions not supported")]);var a=F(r);return a||o?a instanceof h?j([a]):a instanceof g&&"piecewise-constant"===e.function?j([new h("",\'"interpolate" expressions cannot be used with this property\')]):A(a?new E(i?"camera":"composite",t.value,a):new I(i?"constant":"source",t.value)):j([new h("",\'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.\')])}var M=n(7211),B=M.isFunction,V=M.createFunction,R=n(1235).Color,L=function(){function t(e,n){u(this,t),this._parameters=e,this._specification=n,p(this,V(this._parameters,this._specification))}return c(t,null,[{key:"deserialize",value:function(e){return new t(e._parameters,e._specification)}},{key:"serialize",value:function(t){return{_parameters:t._parameters,_specification:t._specification}}}]),t}();function F(t){var e=null;if(t instanceof x)e=F(t.result);else if(t instanceof b){var n,r=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}(t.args);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(e=F(o))break}}catch(t){r.e(t)}finally{r.f()}}else(t instanceof m||t instanceof g)&&t.input instanceof v&&"zoom"===t.input.name&&(e=t);return e instanceof h||t.eachChild((function(t){var n=F(t);n instanceof h?e=n:!e&&n?e=new h("",\'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.\'):e&&n&&e!==n&&(e=new h("",\'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.\'))})),e}t.exports={StyleExpression:O,StyleExpressionWithErrorHandling:T,isExpression:P,createExpression:z,createPropertyExpression:C,normalizePropertyExpression:function(t,e){if(B(t))return new L(t,e);if(P(t)){var n=C(t,e);if("error"===n.result)throw new Error(n.value.map((function(t){return"".concat(t.key,": ").concat(t.message)})).join(", "));return n.value}var r=t;return"string"==typeof t&&"color"===e.type&&(r=R.parse(t)),{kind:"constant",evaluate:function(){return r}}},ZoomConstantExpression:I,ZoomDependentExpression:E,StylePropertyFunction:L};var D=n(5864),q=D.ColorType,U=D.StringType,N=D.NumberType,J=D.BooleanType,G=D.ValueType,Z=D.array;function H(t){var e={color:q,string:U,number:N,enum:U,boolean:J};return"array"===t.type?Z(e[t.value]||G,t.length):e[t.type]||null}},7546:function(t,e,n){var r=n(5827).CompoundExpression;t.exports={isFeatureConstant:function t(e){if(e instanceof r){if("get"===e.name&&1===e.args.length)return!1;if("has"===e.name&&1===e.args.length)return!1;if("properties"===e.name||"geometry-type"===e.name||"id"===e.name)return!1;if(e.name.startsWith("filter-"))return!1}var n=!0;return e.eachChild((function(e){n&&!t(e)&&(n=!1)})),n},isGlobalPropertyConstant:function t(e,n){if(e instanceof r&&n.indexOf(e.name)>=0)return!1;var i=!0;return e.eachChild((function(e){i&&!t(e,n)&&(i=!1)})),i}}},487:function(t,e,n){function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var a=n(6393),s=n(5864).checkSubtype,u=n(6212),l=n(4598),c=n(4434),f=n(2779),p=n(3287),h=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new a,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];i(this,t),this.registry=e,this.path=n,this.key=n.map((function(t){return"[".concat(t,"]")})).join(""),this.scope=o,this.errors=s,this.expectedType=r}var e,h;return e=t,h=[{key:"parse",value:function(t,e,i,o){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},s=this;if(e&&(s=s.concat(e,i,o)),null!==t&&"string"!=typeof t&&"boolean"!=typeof t&&"number"!=typeof t||(t=["literal",t]),Array.isArray(t)){if(0===t.length)return s.error(\'Expected an array with at least one element. If you wanted a literal array, use ["literal", []].\');var u=t[0];if("string"!=typeof u)return s.error("Expression name must be a string, but found ".concat(r(u),\' instead. If you wanted a literal array, use ["literal", [...]].\'),0),null;var h=s.registry[u];if(h){var d=h.parse(t,s);if(!d)return null;if(s.expectedType){var v=s.expectedType,m=d.type;if("string"!==v.kind&&"number"!==v.kind&&"boolean"!==v.kind||"value"!==m.kind)if("array"===v.kind&&"value"===m.kind)a.omitTypeAnnotations||(d=new f(v,d));else if("color"!==v.kind||"value"!==m.kind&&"string"!==m.kind){if(s.checkSubtype(s.expectedType,d.type))return null}else a.omitTypeAnnotations||(d=new p(v,[d]));else a.omitTypeAnnotations||(d=new c(v,[d]))}if(!(d instanceof l)&&y(d)){var g=new(n(8202));try{d=new l(d.type,d.evaluate(g))}catch(t){return s.error(t.message),null}}return d}return s.error(\'Unknown expression "\'.concat(u,\'". If you wanted a literal array, use ["literal", [...]].\'),0)}return void 0===t?s.error("\'undefined\' value invalid. Use null instead."):"object"===r(t)?s.error(\'Bare objects invalid. Use ["literal", {...}] instead.\'):s.error("Expected an array, but found ".concat(r(t)," instead."))}},{key:"concat",value:function(e,n,r){var i="number"==typeof e?this.path.concat(e):this.path,o=r?this.scope.concat(r):this.scope;return new t(this.registry,i,n||null,o,this.errors)}},{key:"error",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var i="".concat(this.key).concat(n.map((function(t){return"[".concat(t,"]")})).join(""));this.errors.push(new u(i,t))}},{key:"checkSubtype",value:function(t,e){var n=s(t,e);return n&&this.error(n),n}}],h&&o(e.prototype,h),Object.defineProperty(e,"prototype",{writable:!1}),t}();function y(t){var e=n(5827).CompoundExpression,r=n(7546),i=r.isGlobalPropertyConstant,o=r.isFeatureConstant;if(t instanceof n(941))return!1;if(t instanceof e&&"error"===t.name)return!1;var a=!0;return t.eachChild((function(t){t instanceof l||(a=!1)})),!!a&&o(t)&&i(t,["zoom","heatmap-density"])}t.exports=h},6212:function(t){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}function n(t,n){if(n&&("object"===e(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return t}(t)}function r(t){var e="function"==typeof Map?new Map:void 0;return r=function(t){if(null===t||(n=t,-1===Function.toString.call(n).indexOf("[native code]")))return t;var n;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return i(t,arguments,s(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),a(r,t)},r(t)}function i(t,e,n){return i=o()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var i=new(Function.bind.apply(t,r));return n&&a(i,n.prototype),i},i.apply(null,arguments)}function o(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function a(t,e){return a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},a(t,e)}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}var u=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e)}(l,t);var e,r,i,u=(e=l,r=o(),function(){var t,i=s(e);if(r){var o=s(this).constructor;t=Reflect.construct(i,arguments,o)}else t=i.apply(this,arguments);return n(this,t)});function l(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),(n=u.call(this,e)).message=e,n.key=t,n}return i=l,Object.defineProperty(i,"prototype",{writable:!1}),i}(r(Error));t.exports=u},7867:function(t){function e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var n=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.name="ExpressionEvaluationError",this.message=e}var n,r;return n=t,(r=[{key:"toJSON",value:function(){return this.message}}])&&e(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),t}();t.exports=n},6393:function(t){function e(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(t){s=!0,i=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(t,e)||r(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=r(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,o=function(){};return{s:o,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function r(t,e){if(t){if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var s=function(){function t(r){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];o(this,t),this.parent=r,this.bindings={};var a,s=n(i);try{for(s.s();!(a=s.n()).done;){var u=e(a.value,2),l=u[0],c=u[1];this.bindings[l]=c}}catch(t){s.e(t)}finally{s.f()}}var r,i;return r=t,(i=[{key:"concat",value:function(e){return new t(this,e)}},{key:"get",value:function(t){if(this.bindings[t])return this.bindings[t];if(this.parent)return this.parent.get(t);throw new Error("".concat(t," not found in scope."))}},{key:"has",value:function(t){return!!this.bindings[t]||!!this.parent&&this.parent.has(t)}}])&&a(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),t}();t.exports=s},2670:function(t,e,n){var r=n(7867);t.exports={findStopLessThanOrEqualTo:function(t,e){for(var n,i,o=0,a=t.length-1,s=0;o<=a;){if(n=t[s=Math.floor((o+a)/2)],i=t[s+1],e===n||e>n&&e<i)return s;if(n<e)o=s+1;else{if(!(n>e))throw new r("Input is not a number.");a=s-1}}return Math.max(s-1,0)}}},5864:function(t){function e(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var n={kind:"null"},r={kind:"number"},i={kind:"string"},o={kind:"boolean"},a={kind:"color"},s={kind:"object"},u={kind:"value"};function l(t,e){return{kind:"array",itemType:t,N:e}}function c(t){if("array"===t.kind){var e=c(t.itemType);return"number"==typeof t.N?"array<".concat(e,", ").concat(t.N,">"):"value"===t.itemType.kind?"array":"array<".concat(e,">")}return t.kind}var f=[n,r,i,o,a,s,l(u)];t.exports={NullType:n,NumberType:r,StringType:i,BooleanType:o,ColorType:a,ObjectType:s,ValueType:u,array:l,ErrorType:{kind:"error"},toString:c,checkSubtype:function t(n,r){if("error"===r.kind)return null;if("array"===n.kind){if("array"===r.kind&&!t(n.itemType,r.itemType)&&("number"!=typeof n.N||n.N===r.N))return null}else{if(n.kind===r.kind)return null;if("value"===n.kind){var i,o=function(t,n){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,n){if(t){if("string"==typeof t)return e(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?e(t,n):void 0}}(t))||n&&t&&"number"==typeof t.length){r&&(t=r);var i=0,o=function(){};return{s:o,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}(f);try{for(o.s();!(i=o.n()).done;)if(!t(i.value,r))return null}catch(t){o.e(t)}finally{o.f()}}}return"Expected ".concat(c(n)," but found ").concat(c(r)," instead.")}}},1235:function(t,e,n){function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function i(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var a=n(8583),s=n(6016),u=n(5864),l=u.NullType,c=u.NumberType,f=u.StringType,p=u.BooleanType,h=u.ColorType,y=u.ObjectType,d=u.ValueType,v=u.array;t.exports={Color:s,validateRGBA:function(t,e,n,r){return"number"==typeof t&&t>=0&&t<=255&&"number"==typeof e&&e>=0&&e<=255&&"number"==typeof n&&n>=0&&n<=255?void 0===r||"number"==typeof r&&r>=0&&r<=1?null:"Invalid rgba value [".concat([t,e,n,r].join(", "),"]: \'a\' must be between 0 and 1."):"Invalid rgba value [".concat(("number"==typeof r?[t,e,n,r]:[t,e,n]).join(", "),"]: \'r\', \'g\', and \'b\' must be between 0 and 255.")},isValue:function t(e){if(null===e)return!0;if("string"==typeof e)return!0;if("boolean"==typeof e)return!0;if("number"==typeof e)return!0;if(e instanceof s)return!0;if(Array.isArray(e)){var n,o=i(e);try{for(o.s();!(n=o.n()).done;)if(!t(n.value))return!1}catch(t){o.e(t)}finally{o.f()}return!0}if("object"===r(e)){for(var a in e)if(!t(e[a]))return!1;return!0}return!1},typeOf:function t(e){if(null===e)return l;if("string"==typeof e)return f;if("boolean"==typeof e)return p;if("number"==typeof e)return c;if(e instanceof s)return h;if(Array.isArray(e)){var n,o,u=e.length,m=i(e);try{for(m.s();!(o=m.n()).done;){var g=t(o.value);if(n){if(n===g)continue;n=d;break}n=g}}catch(t){m.e(t)}finally{m.f()}return v(n||d,u)}return a("object"===r(e)),y}}},1693:function(t,e,n){function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var o=n(8266).createExpression;function a(t){if(!Array.isArray(t)||0===t.length)return!1;switch(t[0]){case"has":return t.length>=2&&"$id"!==t[1]&&"$type"!==t[1];case"in":case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return 3===t.length&&(Array.isArray(t[1])||Array.isArray(t[2]));case"any":case"all":var e,n=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}(t.slice(1));try{for(n.s();!(e=n.n()).done;){var r=e.value;if(!a(r)&&"boolean"!=typeof r)return!1}}catch(t){n.e(t)}finally{n.f()}return!0;default:return!0}}t.exports=function(t){if(!t)return function(){return!0};a(t)||(t=l(t));var e=o(t,s);if("error"===e.result)throw new Error(e.value.map((function(t){return"".concat(t.key,": ").concat(t.message)})).join(", "));return function(t,n){return e.value.evaluate(t,n)}},t.exports.isExpressionFilter=a;var s={type:"boolean",default:!1,function:!0,"property-function":!0,"zoom-function":!0};function u(t,e){return t<e?-1:t>e?1:0}function l(t){if(!t)return!0;var e,n=t[0];return t.length<=1?"any"!==n:"=="===n?c(t[1],t[2],"=="):"!="===n?h(c(t[1],t[2],"==")):"<"===n||">"===n||"<="===n||">="===n?c(t[1],t[2],n):"any"===n?(e=t.slice(1),["any"].concat(e.map(l))):"all"===n?["all"].concat(t.slice(1).map(l)):"none"===n?["all"].concat(t.slice(1).map(l).map(h)):"in"===n?f(t[1],t.slice(2)):"!in"===n?h(f(t[1],t.slice(2))):"has"===n?p(t[1]):"!has"!==n||h(p(t[1]))}function c(t,e,n){switch(t){case"$type":return["filter-type-".concat(n),e];case"$id":return["filter-id-".concat(n),e];default:return["filter-".concat(n),t,e]}}function f(t,e){if(0===e.length)return!1;switch(t){case"$type":return["filter-type-in",["literal",e]];case"$id":return["filter-id-in",["literal",e]];default:return e.length>200&&!e.some((function(t){return r(t)!==r(e[0])}))?["filter-in-large",t,["literal",e.sort(u)]]:["filter-in-small",t,["literal",e]]}}function p(t){switch(t){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",t]}}function h(t){return["!",t]}},7211:function(t,e,n){function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}var o=n(412),a=n(6016),s=n(358),u=n(1278),l=n(2643),c=n(2955);function f(t){return t}function p(t,e,n){return void 0!==t?t:void 0!==e?e:void 0!==n?n:void 0}function h(t,e,n,r,o){return p(i(n)===o?r[n]:void 0,t.default,e.default)}function y(t,e,n){if("number"!==u(n))return p(t.default,e.default);var r=t.stops.length;if(1===r)return t.stops[0][1];if(n<=t.stops[0][0])return t.stops[0][1];if(n>=t.stops[r-1][0])return t.stops[r-1][1];var i=m(t.stops,n);return t.stops[i][1]}function d(t,e,n){var r=void 0!==t.base?t.base:1;if("number"!==u(n))return p(t.default,e.default);var i=t.stops.length;if(1===i)return t.stops[0][1];if(n<=t.stops[0][0])return t.stops[0][1];if(n>=t.stops[i-1][0])return t.stops[i-1][1];var a=m(t.stops,n),s=function(t,e,n,r){var i=r-n,o=t-n;return 0===i?0:1===e?o/i:(Math.pow(e,o)-1)/(Math.pow(e,i)-1)}(n,r,t.stops[a][0],t.stops[a+1][0]),c=t.stops[a][1],h=t.stops[a+1][1],y=l[e.type]||f;if(t.colorSpace&&"rgb"!==t.colorSpace){var d=o[t.colorSpace];y=function(t,e){return d.reverse(d.interpolate(d.forward(t),d.forward(e),s))}}return"function"==typeof c.evaluate?{evaluate:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=c.evaluate.apply(void 0,e),i=h.evaluate.apply(void 0,e);if(void 0!==r&&void 0!==i)return y(r,i,s)}}:y(c,h,s)}function v(t,e,n){return"color"===e.type?n=a.parse(n):u(n)===e.type||"enum"===e.type&&e.values[n]||(n=void 0),p(n,t.default,e.default)}function m(t,e){for(var n,r,i=0,o=t.length-1,a=0;i<=o;){if(n=t[a=Math.floor((i+o)/2)][0],r=t[a+1][0],e===n||e>n&&e<r)return a;n<e?i=a+1:n>e&&(o=a-1)}return Math.max(a-1,0)}t.exports={createFunction:function t(e,n){var u,l,f,m="color"===n.type,g=e.stops&&"object"===i(e.stops[0][0]),b=g||void 0!==e.property,x=g||!b,w=e.type||("interpolated"===n.function?"exponential":"interval");if(m&&((e=s({},e)).stops&&(e.stops=e.stops.map((function(t){return[t[0],a.parse(t[1])]}))),e.default?e.default=a.parse(e.default):e.default=a.parse(n.default)),e.colorSpace&&"rgb"!==e.colorSpace&&!o[e.colorSpace])throw new Error("Unknown color space: ".concat(e.colorSpace));if("exponential"===w)u=d;else if("interval"===w)u=y;else if("categorical"===w){u=h,l=Object.create(null);var k,S=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,o=function(){};return{s:o,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}(e.stops);try{for(S.s();!(k=S.n()).done;){var _=k.value;l[_[0]]=_[1]}}catch(t){S.e(t)}finally{S.f()}f=i(e.stops[0][0])}else{if("identity"!==w)throw new Error(\'Unknown function type "\'.concat(w,\'"\'));u=v}if(g){for(var A={},j=[],O=0;O<e.stops.length;O++){var T=e.stops[O],P=T[0].zoom;void 0===A[P]&&(A[P]={zoom:P,type:e.type,property:e.property,default:e.default,stops:[]},j.push(P)),A[P].stops.push([T[0].value,T[1]])}for(var z=[],I=0,E=j;I<E.length;I++){var C=E[I];z.push([A[C].zoom,t(A[C],n)])}return{kind:"composite",interpolationFactor:c.interpolationFactor.bind(void 0,{name:"linear"}),zoomStops:z.map((function(t){return t[0]})),evaluate:function(t,r){var i=t.zoom;return d({stops:z,base:e.base},n,i).evaluate(i,r)}}}return x?{kind:"camera",interpolationFactor:"exponential"===w?c.interpolationFactor.bind(void 0,{name:"exponential",base:void 0!==e.base?e.base:1}):function(){return 0},zoomStops:e.stops.map((function(t){return t[0]})),evaluate:function(t){var r=t.zoom;return u(e,n,r,l,f)}}:{kind:"source",evaluate:function(t,r){var i=r&&r.properties?r.properties[e.property]:void 0;return void 0===i?p(e.default,n.default):u(e,n,i,l,f)}}},isFunction:function(t){return"object"===i(t)&&null!==t&&!Array.isArray(t)}}},4510:function(t,e,n){function r(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}var a=n(921);function s(t){var e=o(t);if("number"===e||"boolean"===e||"string"===e||null==t)return JSON.stringify(t);if(Array.isArray(t)){var n,i="[",a=r(t);try{for(a.s();!(n=a.n()).done;){var u=n.value;i+="".concat(s(u),",")}}catch(t){a.e(t)}finally{a.f()}return"".concat(i,"]")}for(var l=Object.keys(t).sort(),c="{",f=0;f<l.length;f++)c+="".concat(JSON.stringify(l[f]),":").concat(s(t[l[f]]),",");return"".concat(c,"}")}function u(t){var e,n="",i=r(a);try{for(i.s();!(e=i.n()).done;){var o=e.value;n+="/".concat(s(t[o]))}}catch(t){i.e(t)}finally{i.f()}return n}t.exports=function(t){for(var e={},n=0;n<t.length;n++){var r=u(t[n]),i=e[r];i||(i=e[r]=[]),i.push(t[n])}var o=[];for(var a in e)o.push(e[a]);return o}},5487:function(t,e,n){t.exports=n(556)},6016:function(t,e,n){function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var o=n(5694).parseCSSColor,a=function(){function t(e,n,i){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;r(this,t),this.r=e,this.g=n,this.b=i,this.a=o}var e,n,a;return e=t,a=[{key:"parse",value:function(e){if(e){if(e instanceof t)return e;if("string"==typeof e){var n=o(e);if(n)return new t(n[0]/255*n[3],n[1]/255*n[3],n[2]/255*n[3],n[3])}}}}],(n=[{key:"toString",value:function(){var t=this,e=[this.r,this.g,this.b].map((function(e){return Math.round(255*e/t.a)}));return"rgba(".concat(e.concat(this.a).join(","),")")}}])&&i(e.prototype,n),a&&i(e,a),Object.defineProperty(e,"prototype",{writable:!1}),t}();a.black=new a(0,0,0,1),a.white=new a(1,1,1,1),a.transparent=new a(0,0,0,0),t.exports=a},412:function(t,e,n){var r=n(6016),i=n(2643).number,o=.95047,a=1.08883,s=4/29,u=6/29,l=3*u*u,c=Math.PI/180,f=180/Math.PI;function p(t){return t>.008856451679035631?Math.pow(t,1/3):t/l+s}function h(t){return t>u?t*t*t:l*(t-s)}function y(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function d(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function v(t){var e=d(t.r),n=d(t.g),r=d(t.b),i=p((.4124564*e+.3575761*n+.1804375*r)/o),s=p((.2126729*e+.7151522*n+.072175*r)/1);return{l:116*s-16,a:500*(i-s),b:200*(s-p((.0193339*e+.119192*n+.9503041*r)/a)),alpha:t.a}}function m(t){var e=(t.l+16)/116,n=isNaN(t.a)?e:e+t.a/500,i=isNaN(t.b)?e:e-t.b/200;return e=1*h(e),n=o*h(n),i=a*h(i),new r(y(3.2404542*n-1.5371385*e-.4985314*i),y(-.969266*n+1.8760108*e+.041556*i),y(.0556434*n-.2040259*e+1.0572252*i),t.alpha)}function g(t,e,n){var r=e-t;return t+n*(r>180||r<-180?r-360*Math.round(r/360):r)}t.exports={lab:{forward:v,reverse:m,interpolate:function(t,e,n){return{l:i(t.l,e.l,n),a:i(t.a,e.a,n),b:i(t.b,e.b,n),alpha:i(t.alpha,e.alpha,n)}}},hcl:{forward:function(t){var e=v(t),n=e.l,r=e.a,i=e.b,o=Math.atan2(i,r)*f;return{h:o<0?o+360:o,c:Math.sqrt(r*r+i*i),l:n,alpha:t.a}},reverse:function(t){var e=t.h*c,n=t.c;return m({l:t.l,a:Math.cos(e)*n,b:Math.sin(e)*n,alpha:t.alpha})},interpolate:function(t,e,n){return{h:g(t.h,e.h,n),c:i(t.c,e.c,n),l:i(t.l,e.l,n),alpha:i(t.alpha,e.alpha,n)}}}}},2688:function(t){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}t.exports=function t(n,r){if(Array.isArray(n)){if(!Array.isArray(r)||n.length!==r.length)return!1;for(var i=0;i<n.length;i++)if(!t(n[i],r[i]))return!1;return!0}if("object"===e(n)&&null!==n&&null!==r){if("object"!==e(r))return!1;if(Object.keys(n).length!==Object.keys(r).length)return!1;for(var o in n)if(!t(n[o],r[o]))return!1;return!0}return n===r}},358:function(t){t.exports=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];for(var i=0,o=n;i<o.length;i++){var a=o[i];for(var s in a)t[s]=a[s]}return t}},1278:function(t){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}t.exports=function(t){return t instanceof Number?"number":t instanceof String?"string":t instanceof Boolean?"boolean":Array.isArray(t)?"array":null===t?"null":e(t)}},2643:function(t,e,n){var r=n(6016);function i(t,e,n){return t*(1-n)+e*n}t.exports={number:i,color:function(t,e,n){return new r(i(t.r,e.r,n),i(t.g,e.g,n),i(t.b,e.b,n),i(t.a,e.a,n))},array:function(t,e,n){return t.map((function(t,r){return i(t,e[r],n)}))}}},921:function(t){t.exports=["type","source","source-layer","minzoom","maxzoom","filter","layout"]},3803:function(t){t.exports={success:function(t){return{result:"success",value:t}},error:function(t){return{result:"error",value:t}}}},1602:function(t){function e(t){return t instanceof Number||t instanceof String||t instanceof Boolean?t.valueOf():t}t.exports=e,t.exports.deep=function t(n){return Array.isArray(n)?n.map(t):e(n)}},2400:function(t,e,n){var r=n(358),i=n(1602),o=n(8266).isExpression,a=n(7211).isFunction;t.exports=function(t){var e=n(678),s=n(2803),u=n(2340),l={"*":function(){return[]},array:n(6555),boolean:n(9762),number:n(6901),color:n(4903),constants:n(7889),enum:n(4419),filter:n(3928),function:n(678),layer:n(5873),object:n(2340),source:n(843),light:n(7341),string:n(6216)},c=t.value,f=t.valueSpec,p=t.styleSpec;return f.function&&a(i(c))?e(t):f.function&&o(i.deep(c))?s(t):f.type&&l[f.type]?l[f.type](t):u(r({},t,{valueSpec:f.type?p[f.type]:f}))}},6555:function(t,e,n){var r=n(1278),i=n(2400),o=n(1737);t.exports=function(t){var e=t.value,n=t.valueSpec,a=t.style,s=t.styleSpec,u=t.key,l=t.arrayElementValidator||i;if("array"!==r(e))return[new o(u,e,"array expected, ".concat(r(e)," found"))];if(n.length&&e.length!==n.length)return[new o(u,e,"array length ".concat(n.length," expected, length ").concat(e.length," found"))];if(n["min-length"]&&e.length<n["min-length"])return[new o(u,e,"array length at least ".concat(n["min-length"]," expected, length ").concat(e.length," found"))];var c={type:n.value};s.$version<7&&(c.function=n.function),"object"===r(n.value)&&(c=n.value);for(var f=[],p=0;p<e.length;p++)f=f.concat(l({array:e,arrayIndex:p,value:e[p],valueSpec:c,style:a,styleSpec:s,key:"".concat(u,"[").concat(p,"]")}));return f}},9762:function(t,e,n){var r=n(1278),i=n(1737);t.exports=function(t){var e=t.value,n=t.key,o=r(e);return"boolean"!==o?[new i(n,e,"boolean expected, ".concat(o," found"))]:[]}},4903:function(t,e,n){var r=n(1737),i=n(1278),o=n(5694).parseCSSColor;t.exports=function(t){var e=t.key,n=t.value,a=i(n);return"string"!==a?[new r(e,n,"color expected, ".concat(a," found"))]:null===o(n)?[new r(e,n,\'color expected, "\'.concat(n,\'" found\'))]:[]}},7889:function(t,e,n){var r=n(1737);t.exports=function(t){var e=t.key,n=t.value;return n?[new r(e,n,"constants have been deprecated as of v8")]:[]}},4419:function(t,e,n){var r=n(1737),i=n(1602);t.exports=function(t){var e=t.key,n=t.value,o=t.valueSpec,a=[];return Array.isArray(o.values)?-1===o.values.indexOf(i(n))&&a.push(new r(e,n,"expected one of [".concat(o.values.join(", "),"], ").concat(JSON.stringify(n)," found"))):-1===Object.keys(o.values).indexOf(i(n))&&a.push(new r(e,n,"expected one of [".concat(Object.keys(o.values).join(", "),"], ").concat(JSON.stringify(n)," found"))),a}},2803:function(t,e,n){var r=n(1737),i=n(8266),o=i.createExpression,a=i.createPropertyExpression,s=n(1602);t.exports=function(t){var e=("property"===t.expressionContext?a:o)(s.deep(t.value),t.valueSpec);return"error"===e.result?e.value.map((function(e){return new r("".concat(t.key).concat(e.key),t.value,e.message)})):"property"===t.expressionContext&&"text-font"===t.propertyKey&&-1!==e.value._styleExpression.expression.possibleOutputs().indexOf(void 0)?[new r(t.key,t.value,\'Invalid data expression for "text-font". Output values must be contained as literals within the expression.\')]:[]}},3928:function(t,e,n){var r=n(1737),i=n(2803),o=n(4419),a=n(1278),s=n(1602),u=n(358),l=n(1693).isExpressionFilter;function c(t){var e=t.value,n=t.key;if("array"!==a(e))return[new r(n,e,"array expected, ".concat(a(e)," found"))];var i,u=t.styleSpec,l=[];if(e.length<1)return[new r(n,e,"filter array must have at least 1 element")];switch(l=l.concat(o({key:"".concat(n,"[0]"),value:e[0],valueSpec:u.filter_operator,style:t.style,styleSpec:t.styleSpec})),s(e[0])){case"<":case"<=":case">":case">=":e.length>=2&&"$type"===s(e[1])&&l.push(new r(n,e,\'"$type" cannot be use with operator "\'.concat(e[0],\'"\')));case"==":case"!=":3!==e.length&&l.push(new r(n,e,\'filter array for operator "\'.concat(e[0],\'" must have 3 elements\')));case"in":case"!in":e.length>=2&&"string"!==(i=a(e[1]))&&l.push(new r("".concat(n,"[1]"),e[1],"string expected, ".concat(i," found")));for(var f=2;f<e.length;f++)i=a(e[f]),"$type"===s(e[1])?l=l.concat(o({key:"".concat(n,"[").concat(f,"]"),value:e[f],valueSpec:u.geometry_type,style:t.style,styleSpec:t.styleSpec})):"string"!==i&&"number"!==i&&"boolean"!==i&&l.push(new r("".concat(n,"[").concat(f,"]"),e[f],"string, number, or boolean expected, ".concat(i," found")));break;case"any":case"all":case"none":for(var p=1;p<e.length;p++)l=l.concat(c({key:"".concat(n,"[").concat(p,"]"),value:e[p],style:t.style,styleSpec:t.styleSpec}));break;case"has":case"!has":i=a(e[1]),2!==e.length?l.push(new r(n,e,\'filter array for "\'.concat(e[0],\'" operator must have 2 elements\'))):"string"!==i&&l.push(new r("".concat(n,"[1]"),e[1],"string expected, ".concat(i," found")))}return l}t.exports=function(t){return l(s.deep(t.value))?i(u({},t,{expressionContext:"filter",valueSpec:{value:"boolean"}})):c(t)}},678:function(t,e,n){var r=n(1737),i=n(1278),o=n(2400),a=n(2340),s=n(6555),u=n(6901),l=n(1602);t.exports=function(t){var e,n,c,f=t.valueSpec,p=l(t.value.type),h={},y="categorical"!==p&&void 0===t.value.property,d=!y,v="array"===i(t.value.stops)&&"array"===i(t.value.stops[0])&&"object"===i(t.value.stops[0][0]),m=a({key:t.key,value:t.value,valueSpec:t.styleSpec.function,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{stops:function(t){if("identity"===p)return[new r(t.key,t.value,\'identity function may not have a "stops" property\')];var e=[],n=t.value;return e=e.concat(s({key:t.key,value:n,valueSpec:t.valueSpec,style:t.style,styleSpec:t.styleSpec,arrayElementValidator:g})),"array"===i(n)&&0===n.length&&e.push(new r(t.key,n,"array must have at least one stop")),e},default:function(t){return o({key:t.key,value:t.value,valueSpec:f,style:t.style,styleSpec:t.styleSpec})}}});return"identity"===p&&y&&m.push(new r(t.key,t.value,\'missing required property "property"\')),"identity"===p||t.value.stops||m.push(new r(t.key,t.value,\'missing required property "stops"\')),"exponential"===p&&"piecewise-constant"===t.valueSpec.function&&m.push(new r(t.key,t.value,"exponential functions not supported")),t.styleSpec.$version>=8&&(d&&!t.valueSpec["property-function"]?m.push(new r(t.key,t.value,"property functions not supported")):y&&!t.valueSpec["zoom-function"]&&"heatmap-color"!==t.objectKey&&m.push(new r(t.key,t.value,"zoom functions not supported"))),"categorical"!==p&&!v||void 0!==t.value.property||m.push(new r(t.key,t.value,\'"property" property is required\')),m;function g(t){var e=[],s=t.value,p=t.key;if("array"!==i(s))return[new r(p,s,"array expected, ".concat(i(s)," found"))];if(2!==s.length)return[new r(p,s,"array length 2 expected, length ".concat(s.length," found"))];if(v){if("object"!==i(s[0]))return[new r(p,s,"object expected, ".concat(i(s[0])," found"))];if(void 0===s[0].zoom)return[new r(p,s,"object stop key must have zoom")];if(void 0===s[0].value)return[new r(p,s,"object stop key must have value")];if(c&&c>l(s[0].zoom))return[new r(p,s[0].zoom,"stop zoom values must appear in ascending order")];l(s[0].zoom)!==c&&(c=l(s[0].zoom),n=void 0,h={}),e=e.concat(a({key:"".concat(p,"[0]"),value:s[0],valueSpec:{zoom:{}},style:t.style,styleSpec:t.styleSpec,objectElementValidators:{zoom:u,value:b}}))}else e=e.concat(b({key:"".concat(p,"[0]"),value:s[0],valueSpec:{},style:t.style,styleSpec:t.styleSpec},s));return e.concat(o({key:"".concat(p,"[1]"),value:s[1],valueSpec:f,style:t.style,styleSpec:t.styleSpec}))}function b(t,o){var a=i(t.value),s=l(t.value),u=null!==t.value?t.value:o;if(e){if(a!==e)return[new r(t.key,u,"".concat(a," stop domain type must match previous stop domain type ").concat(e))]}else e=a;if("number"!==a&&"string"!==a&&"boolean"!==a)return[new r(t.key,u,"stop domain value must be a number, string, or boolean")];if("number"!==a&&"categorical"!==p){var c="number expected, ".concat(a," found");return f["property-function"]&&void 0===p&&(c+=\'\\nIf you intended to use a categorical function, specify `"type": "categorical"`.\'),[new r(t.key,u,c)]}return"categorical"!==p||"number"!==a||isFinite(s)&&Math.floor(s)===s?"categorical"!==p&&"number"===a&&void 0!==n&&s<n?[new r(t.key,u,"stop domain values must appear in ascending order")]:(n=s,"categorical"===p&&s in h?[new r(t.key,u,"stop domain values must be unique")]:(h[s]=!0,[])):[new r(t.key,u,"integer expected, found ".concat(s))]}}},9285:function(t,e,n){var r=n(1737),i=n(6216);t.exports=function(t){var e=t.value,n=t.key,o=i(t);return o.length||(-1===e.indexOf("{fontstack}")&&o.push(new r(n,e,\'"glyphs" url must include a "{fontstack}" token\')),-1===e.indexOf("{range}")&&o.push(new r(n,e,\'"glyphs" url must include a "{range}" token\'))),o}},5873:function(t,e,n){var r=n(1737),i=n(1602),o=n(2340),a=n(3928),s=n(55),u=n(1961),l=n(2400),c=n(358);t.exports=function(t){var e=[],n=t.value,f=t.key,p=t.style,h=t.styleSpec;n.type||n.ref||e.push(new r(f,n,\'either "type" or "ref" is required\'));var y,d=i(n.type),v=i(n.ref);if(n.id)for(var m=i(n.id),g=0;g<t.arrayIndex;g++){var b=p.layers[g];i(b.id)===m&&e.push(new r(f,n.id,\'duplicate layer id "\'.concat(n.id,\'", previously used at line \').concat(b.id.__line__)))}if("ref"in n)["type","source","source-layer","filter","layout"].forEach((function(t){t in n&&e.push(new r(f,n[t],\'"\'.concat(t,\'" is prohibited for ref layers\')))})),p.layers.forEach((function(t){i(t.id)===v&&(y=t)})),y?y.ref?e.push(new r(f,n.ref,"ref cannot reference another ref layer")):d=i(y.type):e.push(new r(f,n.ref,\'ref layer "\'.concat(v,\'" not found\')));else if("background"!==d)if(n.source){var x=p.sources&&p.sources[n.source],w=x&&i(x.type);x?"vector"===w&&"raster"===d?e.push(new r(f,n.source,\'layer "\'.concat(n.id,\'" requires a raster source\'))):"raster"===w&&"raster"!==d?e.push(new r(f,n.source,\'layer "\'.concat(n.id,\'" requires a vector source\'))):"vector"!==w||n["source-layer"]?"raster-dem"===w&&"hillshade"!==d&&e.push(new r(f,n.source,"raster-dem source can only be used with layer type \'hillshade\'.")):e.push(new r(f,n,\'layer "\'.concat(n.id,\'" must specify a "source-layer"\'))):e.push(new r(f,n.source,\'source "\'.concat(n.source,\'" not found\')))}else e.push(new r(f,n,\'missing required property "source"\'));return e=e.concat(o({key:f,value:n,valueSpec:h.layer,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{"*":function(){return[]},type:function(){return l({key:"".concat(f,".type"),value:n.type,valueSpec:h.layer.type,style:t.style,styleSpec:t.styleSpec,object:n,objectKey:"type"})},filter:a,layout:function(t){return o({layer:n,key:t.key,value:t.value,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{"*":function(t){return u(c({layerType:d},t))}}})},paint:function(t){return o({layer:n,key:t.key,value:t.value,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{"*":function(t){return s(c({layerType:d},t))}}})}}})),e}},1961:function(t,e,n){var r=n(5720);t.exports=function(t){return r(t,"layout")}},7341:function(t,e,n){var r=n(1737),i=n(1278),o=n(2400);t.exports=function(t){var e=t.value,n=t.styleSpec,a=n.light,s=t.style,u=[],l=i(e);if(void 0===e)return u;if("object"!==l)return u.concat([new r("light",e,"object expected, ".concat(l," found"))]);for(var c in e){var f=c.match(/^(.*)-transition$/);u=f&&a[f[1]]&&a[f[1]].transition?u.concat(o({key:c,value:e[c],valueSpec:n.transition,style:s,styleSpec:n})):a[c]?u.concat(o({key:c,value:e[c],valueSpec:a[c],style:s,styleSpec:n})):u.concat([new r(c,e[c],\'unknown property "\'.concat(c,\'"\'))])}return u}},6901:function(t,e,n){var r=n(1278),i=n(1737);t.exports=function(t){var e=t.key,n=t.value,o=t.valueSpec,a=r(n);return"number"!==a?[new i(e,n,"number expected, ".concat(a," found"))]:"minimum"in o&&n<o.minimum?[new i(e,n,"".concat(n," is less than the minimum value ").concat(o.minimum))]:"maximum"in o&&n>o.maximum?[new i(e,n,"".concat(n," is greater than the maximum value ").concat(o.maximum))]:[]}},2340:function(t,e,n){var r=n(1737),i=n(1278),o=n(2400);t.exports=function(t){var e=t.key,n=t.value,a=t.valueSpec||{},s=t.objectElementValidators||{},u=t.style,l=t.styleSpec,c=[],f=i(n);if("object"!==f)return[new r(e,n,"object expected, ".concat(f," found"))];for(var p in n){var h=p.split(".")[0],y=a[h]||a["*"],d=void 0;if(s[h])d=s[h];else if(a[h])d=o;else if(s["*"])d=s["*"];else{if(!a["*"]){c.push(new r(e,n[p],\'unknown property "\'.concat(p,\'"\')));continue}d=o}c=c.concat(d({key:(e?"".concat(e,"."):e)+p,value:n[p],valueSpec:y,style:u,styleSpec:l,object:n,objectKey:p},n))}for(var v in a)s[v]||a[v].required&&void 0===a[v].default&&void 0===n[v]&&c.push(new r(e,n,\'missing required property "\'.concat(v,\'"\')));return c}},55:function(t,e,n){var r=n(5720);t.exports=function(t){return r(t,"paint")}},5720:function(t,e,n){var r=n(2400),i=n(1737),o=n(1278),a=n(7211).isFunction,s=n(1602);t.exports=function(t,e){var n=t.key,u=t.style,l=t.styleSpec,c=t.value,f=t.objectKey,p=l["".concat(e,"_").concat(t.layerType)];if(!p)return[];var h=f.match(/^(.*)-transition$/);if("paint"===e&&h&&p[h[1]]&&p[h[1]].transition)return r({key:n,value:c,valueSpec:l.transition,style:u,styleSpec:l});var y,d=t.valueSpec||p[f];if(!d)return[new i(n,c,\'unknown property "\'.concat(f,\'"\'))];if("string"===o(c)&&d["property-function"]&&!d.tokens&&(y=/^{([^}]+)}$/.exec(c)))return[new i(n,c,\'"\'.concat(f,\'" does not support interpolation syntax\\n\')+\'Use an identity property function instead: `{ "type": "identity", "property": \'.concat(JSON.stringify(y[1])," }`."))];var v=[];return"symbol"===t.layerType&&("text-field"===f&&u&&!u.glyphs&&v.push(new i(n,c,\'use of "text-field" requires a style "glyphs" property\')),"text-font"===f&&a(s.deep(c))&&"identity"===s(c.type)&&v.push(new i(n,c,\'"text-font" does not support identity functions\'))),v.concat(r({key:t.key,value:c,valueSpec:d,style:u,styleSpec:l,expressionContext:"property",propertyKey:f}))}},843:function(t,e,n){var r=n(1737),i=n(1602),o=n(2340),a=n(4419);t.exports=function(t){var e=t.value,n=t.key,s=t.styleSpec,u=t.style;if(!e.type)return[new r(n,e,\'"type" is required\')];var l=i(e.type),c=[];switch(l){case"vector":case"raster":case"raster-dem":if(c=c.concat(o({key:n,value:e,valueSpec:s["source_".concat(l.replace("-","_"))],style:t.style,styleSpec:s})),"url"in e)for(var f in e)["type","url","tileSize"].indexOf(f)<0&&c.push(new r("".concat(n,".").concat(f),e[f],\'a source with a "url" property may not include a "\'.concat(f,\'" property\')));return c;case"geojson":return o({key:n,value:e,valueSpec:s.source_geojson,style:u,styleSpec:s});case"video":return o({key:n,value:e,valueSpec:s.source_video,style:u,styleSpec:s});case"image":return o({key:n,value:e,valueSpec:s.source_image,style:u,styleSpec:s});case"canvas":return o({key:n,value:e,valueSpec:s.source_canvas,style:u,styleSpec:s});default:return a({key:"".concat(n,".type"),value:e.type,valueSpec:{values:["vector","raster","raster-dem","geojson","video","image","canvas"]},style:u,styleSpec:s})}}},6216:function(t,e,n){var r=n(1278),i=n(1737);t.exports=function(t){var e=t.value,n=t.key,o=r(e);return"string"!==o?[new i(n,e,"string expected, ".concat(o," found"))]:[]}},7250:function(t,e,n){var r=n(7889),i=n(2400),o=n(5487),a=n(9285);function s(t,e){e=e||o;var n=[];return n=n.concat(i({key:"",value:t,valueSpec:e.$root,styleSpec:e,style:t,objectElementValidators:{glyphs:a,"*":function(){return[]}}})),t.constants&&(n=n.concat(r({key:"constants",value:t.constants,style:t,styleSpec:e}))),u(n)}function u(t){return[].concat(t).sort((function(t,e){return t.line-e.line}))}function l(t){return function(){return u(t.apply(this,arguments))}}s.source=l(n(843)),s.light=l(n(7341)),s.layer=l(n(5873)),s.filter=l(n(3928)),s.paintProperty=l(n(55)),s.layoutProperty=l(n(1961)),t.exports=s},7627:function(t,e,n){function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var i=n(2535),o=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.zoom=e,n?(this.now=n.now,this.fadeDuration=n.fadeDuration,this.zoomHistory=n.zoomHistory,this.transition=n.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new i,this.transition={})}var e,n;return e=t,(n=[{key:"crossFadingFactor",value:function(){return 0===this.fadeDuration?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)}}])&&r(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();t.exports=o},3278:function(t,e,n){var r=n(5641).AlphaImage,i=n(3614);function o(t,e,n){1===t&&n.readMessage(a,e)}function a(t,e,n){if(3===t){var i=n.readMessage(s,{}),o=i.id,a=i.bitmap,u=i.width,l=i.height,c=i.left,f=i.top,p=i.advance;e.push({id:o,bitmap:new r({width:u+6,height:l+6},a),metrics:{width:u,height:l,left:c,top:f,advance:p}})}}function s(t,e,n){1===t?e.id=n.readVarint():2===t?e.bitmap=n.readBytes():3===t?e.width=n.readVarint():4===t?e.height=n.readVarint():5===t?e.left=n.readSVarint():6===t?e.top=n.readSVarint():7===t&&(e.advance=n.readVarint())}t.exports=function(t){return new i(t).readFields(o,[])},t.exports.GLYPH_PBF_BORDER=3},5615:function(t,e,n){function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var a=n(8583),s=n(8316),u=s.clone,l=s.extend,c=s.easeCubicInOut,f=n(2643),p=n(8266).normalizePropertyExpression,h=(n(6016),n(1786).register),y=function(){function t(e,n){r(this,t),this.property=e,this.value=n,this.expression=p(void 0===n?e.specification.default:n,e.specification)}return o(t,[{key:"isDataDriven",value:function(){return"source"===this.expression.kind||"composite"===this.expression.kind}},{key:"possiblyEvaluate",value:function(t){return this.property.possiblyEvaluate(this,t)}}]),t}(),d=function(){function t(e){r(this,t),this.property=e,this.value=new y(e,void 0)}return o(t,[{key:"transitioned",value:function(t,e){return new m(this.property,this.value,e,l({},t.transition,this.transition),t.now)}},{key:"untransitioned",value:function(){return new m(this.property,this.value,null,{},0)}}]),t}(),v=function(){function t(e){r(this,t),this._properties=e,this._values=Object.create(e.defaultTransitionablePropertyValues)}return o(t,[{key:"getValue",value:function(t){return u(this._values[t].value.value)}},{key:"setValue",value:function(t,e){this._values.hasOwnProperty(t)||(this._values[t]=new d(this._values[t].property)),this._values[t].value=new y(this._values[t].property,null===e?void 0:u(e))}},{key:"getTransition",value:function(t){return u(this._values[t].transition)}},{key:"setTransition",value:function(t,e){this._values.hasOwnProperty(t)||(this._values[t]=new d(this._values[t].property)),this._values[t].transition=u(e)||void 0}},{key:"serialize",value:function(){for(var t={},e=0,n=Object.keys(this._values);e<n.length;e++){var r=n[e],i=this.getValue(r);void 0!==i&&(t[r]=i);var o=this.getTransition(r);void 0!==o&&(t["".concat(r,"-transition")]=o)}return t}},{key:"transitioned",value:function(t,e){for(var n=new g(this._properties),r=0,i=Object.keys(this._values);r<i.length;r++){var o=i[r];n._values[o]=this._values[o].transitioned(t,e._values[o])}return n}},{key:"untransitioned",value:function(){for(var t=new g(this._properties),e=0,n=Object.keys(this._values);e<n.length;e++){var r=n[e];t._values[r]=this._values[r].untransitioned()}return t}}]),t}(),m=function(){function t(e,n,i,o,a){r(this,t),this.property=e,this.value=n,this.begin=a+o.delay||0,this.end=this.begin+o.duration||0,e.specification.transition&&(o.delay||o.duration)&&(this.prior=i)}return o(t,[{key:"possiblyEvaluate",value:function(t){var e=t.now||0,n=this.value.possiblyEvaluate(t),r=this.prior;if(r){if(e>this.end)return this.prior=null,n;if(this.value.isDataDriven())return this.prior=null,n;if(e<this.begin)return r.possiblyEvaluate(t);var i=(e-this.begin)/(this.end-this.begin);return this.property.interpolate(r.possiblyEvaluate(t),n,c(i))}return n}}]),t}(),g=function(){function t(e){r(this,t),this._properties=e,this._values=Object.create(e.defaultTransitioningPropertyValues)}return o(t,[{key:"possiblyEvaluate",value:function(t){for(var e=new w(this._properties),n=0,r=Object.keys(this._values);n<r.length;n++){var i=r[n];e._values[i]=this._values[i].possiblyEvaluate(t)}return e}},{key:"hasTransition",value:function(){for(var t=0,e=Object.keys(this._values);t<e.length;t++){var n=e[t];if(this._values[n].prior)return!0}return!1}}]),t}(),b=function(){function t(e){r(this,t),this._properties=e,this._values=Object.create(e.defaultPropertyValues)}return o(t,[{key:"getValue",value:function(t){return u(this._values[t].value)}},{key:"setValue",value:function(t,e){this._values[t]=new y(this._values[t].property,null===e?void 0:u(e))}},{key:"serialize",value:function(){for(var t={},e=0,n=Object.keys(this._values);e<n.length;e++){var r=n[e],i=this.getValue(r);void 0!==i&&(t[r]=i)}return t}},{key:"possiblyEvaluate",value:function(t){for(var e=new w(this._properties),n=0,r=Object.keys(this._values);n<r.length;n++){var i=r[n];e._values[i]=this._values[i].possiblyEvaluate(t)}return e}}]),t}(),x=function(){function t(e,n,i){r(this,t),this.property=e,this.value=n,this.globals=i}return o(t,[{key:"isConstant",value:function(){return"constant"===this.value.kind}},{key:"constantOr",value:function(t){return"constant"===this.value.kind?this.value.value:t}},{key:"evaluate",value:function(t){return this.property.evaluate(this.value,this.globals,t)}}]),t}(),w=function(){function t(e){r(this,t),this._properties=e,this._values=Object.create(e.defaultPossiblyEvaluatedValues)}return o(t,[{key:"get",value:function(t){return this._values[t]}}]),t}(),k=function(){function t(e){r(this,t),this.specification=e}return o(t,[{key:"possiblyEvaluate",value:function(t,e){return a(!t.isDataDriven()),t.expression.evaluate(e)}},{key:"interpolate",value:function(t,e,n){var r=f[this.specification.type];return r?r(t,e,n):t}}]),t}(),S=function(){function t(e){r(this,t),this.specification=e}return o(t,[{key:"possiblyEvaluate",value:function(t,e){return"constant"===t.expression.kind||"camera"===t.expression.kind?new x(this,{kind:"constant",value:t.expression.evaluate(e)},e):new x(this,t.expression,e)}},{key:"interpolate",value:function(t,e,n){if("constant"!==t.value.kind||"constant"!==e.value.kind)return t;if(void 0!==t.value.value&&void 0!==e.value.value){var r=f[this.specification.type];return r?new x(this,{kind:"constant",value:r(t.value.value,e.value.value,n)},t.globals):t}}},{key:"evaluate",value:function(t,e,n){return"constant"===t.kind?t.value:t.evaluate(e,n)}}]),t}(),_=function(){function t(e){r(this,t),this.specification=e}return o(t,[{key:"possiblyEvaluate",value:function(t,e){if(void 0!==t.value){if("constant"===t.expression.kind){var n=t.expression.evaluate(e);return this._calculate(n,n,n,e)}return a(!t.isDataDriven()),this._calculate(t.expression.evaluate({zoom:e.zoom-1}),t.expression.evaluate({zoom:e.zoom}),t.expression.evaluate({zoom:e.zoom+1}),e)}}},{key:"_calculate",value:function(t,e,n,r){var i=r.zoom,o=i-Math.floor(i),a=r.crossFadingFactor();return i>r.zoomHistory.lastIntegerZoom?{from:t,to:e,fromScale:2,toScale:1,t:o+(1-o)*a}:{from:n,to:e,fromScale:.5,toScale:1,t:1-(1-a)*o}}},{key:"interpolate",value:function(t){return t}}]),t}(),A=function(){function t(e){r(this,t),this.specification=e}return o(t,[{key:"possiblyEvaluate",value:function(){}},{key:"interpolate",value:function(){}}]),t}(),j=o((function t(e){for(var n in r(this,t),this.properties=e,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},e){var i=e[n],o=this.defaultPropertyValues[n]=new y(i,void 0),a=this.defaultTransitionablePropertyValues[n]=new d(i);this.defaultTransitioningPropertyValues[n]=a.untransitioned(),this.defaultPossiblyEvaluatedValues[n]=o.possiblyEvaluate({})}}));h("DataDrivenProperty",S),h("DataConstantProperty",k),h("CrossFadedProperty",_),h("HeatmapColorProperty",A),t.exports={PropertyValue:y,Transitionable:v,Transitioning:g,Layout:b,PossiblyEvaluatedPropertyValue:x,PossiblyEvaluated:w,DataConstantProperty:k,DataDrivenProperty:S,CrossFadedProperty:_,HeatmapColorProperty:A,Properties:j}},6181:function(t,e,n){var r=n(5550);t.exports={getMaximumPaintValue:function(t,e,n){var r=e.paint.get(t).value;return"constant"===r.kind?r.value:n.programConfigurations.get(e.id).binders[t].statistics.max},translateDistance:function(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])},translate:function(t,e,n,i,o){if(!e[0]&&!e[1])return t;var a=r.convert(e);"viewport"===n&&a._rotate(-i);for(var s=[],u=0;u<t.length;u++){for(var l=t[u],c=[],f=0;f<l.length;f++)c.push(l[f].sub(a._mult(o)));s.push(c)}return s}}},3397:function(t,e,n){function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e){return o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},o(t,e)}function a(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return t}(t)}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}var u=n(8316),l=n(5487),c=n(9571),f=n(1495),p=n(5615),h=p.Layout,y=p.Transitionable,d=(p.Transitioning,p.Properties,"-transition"),v=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&o(t,e)}(v,t);var e,n,r,f,p=(r=v,f=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=s(r);if(f){var n=s(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return a(this,t)});function v(t,e){var n;for(var r in function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,v),(n=p.call(this)).id=t.id,n.metadata=t.metadata,n.type=t.type,n.minzoom=t.minzoom,n.maxzoom=t.maxzoom,n.visibility="visible","background"!==t.type&&(n.source=t.source,n.sourceLayer=t["source-layer"],n.filter=t.filter),n._featureFilter=function(){return!0},e.layout&&(n._unevaluatedLayout=new h(e.layout)),n._transitionablePaint=new y(e.paint),t.paint)n.setPaintProperty(r,t.paint[r],{validate:!1});for(var i in t.layout)n.setLayoutProperty(i,t.layout[i],{validate:!1});return n._transitioningPaint=n._transitionablePaint.untransitioned(),n}return e=v,(n=[{key:"getLayoutProperty",value:function(t){return"visibility"===t?this.visibility:this._unevaluatedLayout.getValue(t)}},{key:"setLayoutProperty",value:function(t,e,n){if(null!=e){var r="layers.".concat(this.id,".layout.").concat(t);if(this._validate(c.layoutProperty,r,t,e,n))return}"visibility"!==t?this._unevaluatedLayout.setValue(t,e):this.visibility="none"===e?e:"visible"}},{key:"getPaintProperty",value:function(t){return u.endsWith(t,d)?this._transitionablePaint.getTransition(t.slice(0,-d.length)):this._transitionablePaint.getValue(t)}},{key:"setPaintProperty",value:function(t,e,n){if(null!=e){var r="layers.".concat(this.id,".paint.").concat(t);if(this._validate(c.paintProperty,r,t,e,n))return}u.endsWith(t,d)?this._transitionablePaint.setTransition(t.slice(0,-d.length),e||void 0):this._transitionablePaint.setValue(t,e)}},{key:"isHidden",value:function(t){return!!(this.minzoom&&t<this.minzoom)||!!(this.maxzoom&&t>=this.maxzoom)||"none"===this.visibility}},{key:"updateTransitions",value:function(t){this._transitioningPaint=this._transitionablePaint.transitioned(t,this._transitioningPaint)}},{key:"hasTransition",value:function(){return this._transitioningPaint.hasTransition()}},{key:"recalculate",value:function(t){this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(t)),this.paint=this._transitioningPaint.possiblyEvaluate(t)}},{key:"serialize",value:function(){var t={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return"none"===this.visibility&&(t.layout=t.layout||{},t.layout.visibility="none"),u.filterObject(t,(function(t,e){return!(void 0===t||"layout"===e&&!Object.keys(t).length||"paint"===e&&!Object.keys(t).length)}))}},{key:"_validate",value:function(t,e,n,r,i){return(!i||!1!==i.validate)&&c.emitErrors(this,t.call(c,{key:e,layerType:this.type,objectKey:n,value:r,styleSpec:l,style:{glyphs:!0,sprite:!0}}))}},{key:"hasOffscreenPass",value:function(){return!1}},{key:"resize",value:function(){}}])&&i(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),v}(f);t.exports=v;var m={circle:n(7342),heatmap:n(9399),hillshade:n(4712),fill:n(2210),"fill-extrusion":n(9993),line:n(990),symbol:n(4195),background:n(9140),raster:n(4544)};v.create=function(t){return new m[t.type](t)}},9140:function(t,e,n){function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function i(t,e){return i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},i(t,e)}function o(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return t}(t)}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}var s=n(3397),u=n(623),l=n(5615),c=(l.Transitionable,l.Transitioning,l.PossiblyEvaluated,function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,t);var e,n,r,s=(n=l,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=a(n);if(r){var i=a(this).constructor;t=Reflect.construct(e,arguments,i)}else t=e.apply(this,arguments);return o(this,t)});function l(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),s.call(this,t,u)}return e=l,Object.defineProperty(e,"prototype",{writable:!1}),e}(s));t.exports=c},623:function(t,e,n){var r=n(5487),i=n(5615),o=i.Properties,a=i.DataConstantProperty,s=(i.DataDrivenProperty,i.CrossFadedProperty),u=(i.HeatmapColorProperty,new o({"background-color":new a(r.paint_background["background-color"]),"background-pattern":new s(r.paint_background["background-pattern"]),"background-opacity":new a(r.paint_background["background-opacity"])}));t.exports={paint:u}},7342:function(t,e,n){function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e){return o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},o(t,e)}function a(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return t}(t)}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}var u=n(3397),l=n(6677),c=n(66).multiPolygonIntersectsBufferedMultiPoint,f=n(6181),p=f.getMaximumPaintValue,h=f.translateDistance,y=f.translate,d=n(7258),v=n(5615),m=(v.Transitionable,v.Transitioning,v.PossiblyEvaluated,function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&o(t,e)}(v,t);var e,n,r,u,f=(r=v,u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=s(r);if(u){var n=s(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return a(this,t)});function v(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,v),f.call(this,t,d)}return e=v,(n=[{key:"createBucket",value:function(t){return new l(t)}},{key:"queryRadius",value:function(t){var e=t;return p("circle-radius",this,e)+p("circle-stroke-width",this,e)+h(this.paint.get("circle-translate"))}},{key:"queryIntersectsFeature",value:function(t,e,n,r,i,o){var a=y(t,this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),i,o),s=this.paint.get("circle-radius").evaluate(e)*o,u=this.paint.get("circle-stroke-width").evaluate(e)*o;return c(a,n,s+u)}}])&&i(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),v}(u));t.exports=m},7258:function(t,e,n){var r=n(5487),i=n(5615),o=i.Properties,a=i.DataConstantProperty,s=i.DataDrivenProperty,u=(i.CrossFadedProperty,i.HeatmapColorProperty,new o({"circle-radius":new s(r.paint_circle["circle-radius"]),"circle-color":new s(r.paint_circle["circle-color"]),"circle-blur":new s(r.paint_circle["circle-blur"]),"circle-opacity":new s(r.paint_circle["circle-opacity"]),"circle-translate":new a(r.paint_circle["circle-translate"]),"circle-translate-anchor":new a(r.paint_circle["circle-translate-anchor"]),"circle-pitch-scale":new a(r.paint_circle["circle-pitch-scale"]),"circle-pitch-alignment":new a(r.paint_circle["circle-pitch-alignment"]),"circle-stroke-width":new s(r.paint_circle["circle-stroke-width"]),"circle-stroke-color":new s(r.paint_circle["circle-stroke-color"]),"circle-stroke-opacity":new s(r.paint_circle["circle-stroke-opacity"])}));t.exports={paint:u}},9993:function(t,e,n){function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e){return o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},o(t,e)}function a(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return t}(t)}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}var u=n(3397),l=n(8294),c=n(66).multiPolygonIntersectsMultiPolygon,f=n(6181),p=f.translateDistance,h=f.translate,y=n(6671),d=n(5615),v=(d.Transitionable,d.Transitioning,d.PossiblyEvaluated,function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&o(t,e)}(d,t);var e,n,r,u,f=(r=d,u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=s(r);if(u){var n=s(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return a(this,t)});function d(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,d),f.call(this,t,y)}return e=d,(n=[{key:"createBucket",value:function(t){return new l(t)}},{key:"queryRadius",value:function(){return p(this.paint.get("fill-extrusion-translate"))}},{key:"queryIntersectsFeature",value:function(t,e,n,r,i,o){var a=h(t,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),i,o);return c(a,n)}},{key:"hasOffscreenPass",value:function(){return 0!==this.paint.get("fill-extrusion-opacity")&&"none"!==this.visibility}},{key:"resize",value:function(){this.viewportFrame&&(this.viewportFrame.destroy(),this.viewportFrame=null)}}])&&i(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),d}(u));t.exports=v},6671:function(t,e,n){var r=n(5487),i=n(5615),o=i.Properties,a=i.DataConstantProperty,s=i.DataDrivenProperty,u=i.CrossFadedProperty,l=(i.HeatmapColorProperty,new o({"fill-extrusion-opacity":new a(r["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new s(r["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new a(r["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new a(r["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new u(r["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new s(r["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new s(r["paint_fill-extrusion"]["fill-extrusion-base"])}));t.exports={paint:l}},2210:function(t,e,n){function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e){return o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},o(t,e)}function a(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return t}(t)}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}var u=n(3397),l=n(9603),c=n(66).multiPolygonIntersectsMultiPolygon,f=n(6181),p=f.translateDistance,h=f.translate,y=n(4987),d=n(5615),v=(d.Transitionable,d.Transitioning,d.PossiblyEvaluated,function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&o(t,e)}(d,t);var e,n,r,u,f=(r=d,u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=s(r);if(u){var n=s(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return a(this,t)});function d(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,d),f.call(this,t,y)}return e=d,(n=[{key:"recalculate",value:function(t){this.paint=this._transitioningPaint.possiblyEvaluate(t),void 0===this._transitionablePaint.getValue("fill-outline-color")&&(this.paint._values["fill-outline-color"]=this.paint._values["fill-color"])}},{key:"createBucket",value:function(t){return new l(t)}},{key:"queryRadius",value:function(){return p(this.paint.get("fill-translate"))}},{key:"queryIntersectsFeature",value:function(t,e,n,r,i,o){var a=h(t,this.paint.get("fill-translate"),this.paint.get("fill-translate-anchor"),i,o);return c(a,n)}}])&&i(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),d}(u));t.exports=v},4987:function(t,e,n){var r=n(5487),i=n(5615),o=i.Properties,a=i.DataConstantProperty,s=i.DataDrivenProperty,u=i.CrossFadedProperty,l=(i.HeatmapColorProperty,new o({"fill-antialias":new a(r.paint_fill["fill-antialias"]),"fill-opacity":new s(r.paint_fill["fill-opacity"]),"fill-color":new s(r.paint_fill["fill-color"]),"fill-outline-color":new s(r.paint_fill["fill-outline-color"]),"fill-translate":new a(r.paint_fill["fill-translate"]),"fill-translate-anchor":new a(r.paint_fill["fill-translate-anchor"]),"fill-pattern":new u(r.paint_fill["fill-pattern"])}));t.exports={paint:l}},9399:function(t,e,n){function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(){return o="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=a(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},o.apply(this,arguments)}function a(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=l(t)););return t}function s(t,e){return s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},s(t,e)}function u(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return t}(t)}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}var c=n(3397),f=n(7832),p=n(5641).RGBAImage,h=n(8758),y=n(5615),d=(y.Transitionable,y.Transitioning,y.PossiblyEvaluated,function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(y,t);var e,n,r,a,c=(r=y,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=l(r);if(a){var n=l(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return u(this,t)});function y(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,y),(e=c.call(this,t,h))._updateColorRamp(),e}return e=y,(n=[{key:"createBucket",value:function(t){return new f(t)}},{key:"setPaintProperty",value:function(t,e,n){o(l(y.prototype),"setPaintProperty",this).call(this,t,e,n),"heatmap-color"===t&&this._updateColorRamp()}},{key:"_updateColorRamp",value:function(){for(var t=this._transitionablePaint._values["heatmap-color"].value.expression,e=new Uint8Array(1024),n=e.length,r=4;r<n;r+=4){var i=t.evaluate({heatmapDensity:r/n});e[r+0]=Math.floor(255*i.r/i.a),e[r+1]=Math.floor(255*i.g/i.a),e[r+2]=Math.floor(255*i.b/i.a),e[r+3]=Math.floor(255*i.a)}this.colorRamp=new p({width:256,height:1},e),this.colorRampTexture=null}},{key:"resize",value:function(){this.heatmapFbo&&(this.heatmapFbo.destroy(),this.heatmapFbo=null)}},{key:"queryRadius",value:function(){return 0}},{key:"queryIntersectsFeature",value:function(){return!1}},{key:"hasOffscreenPass",value:function(){return 0!==this.paint.get("heatmap-opacity")&&"none"!==this.visibility}}])&&i(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),y}(c));t.exports=d},8758:function(t,e,n){var r=n(5487),i=n(5615),o=i.Properties,a=i.DataConstantProperty,s=i.DataDrivenProperty,u=(i.CrossFadedProperty,i.HeatmapColorProperty),l=new o({"heatmap-radius":new s(r.paint_heatmap["heatmap-radius"]),"heatmap-weight":new s(r.paint_heatmap["heatmap-weight"]),"heatmap-intensity":new a(r.paint_heatmap["heatmap-intensity"]),"heatmap-color":new u(r.paint_heatmap["heatmap-color"]),"heatmap-opacity":new a(r.paint_heatmap["heatmap-opacity"])});t.exports={paint:l}},4712:function(t,e,n){function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e){return o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},o(t,e)}function a(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return t}(t)}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}var u=n(3397),l=n(2824),c=n(5615),f=(c.Transitionable,c.Transitioning,c.PossiblyEvaluated,function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&o(t,e)}(f,t);var e,n,r,u,c=(r=f,u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=s(r);if(u){var n=s(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return a(this,t)});function f(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,f),c.call(this,t,l)}return e=f,(n=[{key:"hasOffscreenPass",value:function(){return 0!==this.paint.get("hillshade-exaggeration")&&"none"!==this.visibility}}])&&i(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),f}(u));t.exports=f},2824:function(t,e,n){var r=n(5487),i=n(5615),o=i.Properties,a=i.DataConstantProperty,s=(i.DataDrivenProperty,i.CrossFadedProperty,i.HeatmapColorProperty,new o({"hillshade-illumination-direction":new a(r.paint_hillshade["hillshade-illumination-direction"]),"hillshade-illumination-anchor":new a(r.paint_hillshade["hillshade-illumination-anchor"]),"hillshade-exaggeration":new a(r.paint_hillshade["hillshade-exaggeration"]),"hillshade-shadow-color":new a(r.paint_hillshade["hillshade-shadow-color"]),"hillshade-highlight-color":new a(r.paint_hillshade["hillshade-highlight-color"]),"hillshade-accent-color":new a(r.paint_hillshade["hillshade-accent-color"])}));t.exports={paint:s}},990:function(t,e,n){function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function s(){return s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=u(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},s.apply(this,arguments)}function u(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=h(t)););return t}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}function c(t,e){return c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},c(t,e)}function f(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=h(t);if(e){var i=h(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return p(this,n)}}function p(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return t}(t)}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}var y=n(5550),d=n(3397),v=n(6905),m=n(66).multiPolygonIntersectsBufferedMultiLine,g=n(6181),b=g.getMaximumPaintValue,x=g.translateDistance,w=g.translate,k=n(7822),S=n(8316).extend,_=n(7627),A=n(5615),j=(A.Transitionable,A.Transitioning,A.Layout,A.PossiblyEvaluated,function(t){l(n,t);var e=f(n);function n(){return i(this,n),e.apply(this,arguments)}return a(n,[{key:"possiblyEvaluate",value:function(t,e){return e=new _(Math.floor(e.zoom),{now:e.now,fadeDuration:e.fadeDuration,zoomHistory:e.zoomHistory,transition:e.transition}),s(h(n.prototype),"possiblyEvaluate",this).call(this,t,e)}},{key:"evaluate",value:function(t,e,r){return e=S({},e,{zoom:Math.floor(e.zoom)}),s(h(n.prototype),"evaluate",this).call(this,t,e,r)}}]),n}(A.DataDrivenProperty)),O=new j(k.paint.properties["line-width"].specification);O.useIntegerZoom=!0;var T=function(t){l(n,t);var e=f(n);function n(t){return i(this,n),e.call(this,t,k)}return a(n,[{key:"recalculate",value:function(t){s(h(n.prototype),"recalculate",this).call(this,t),this.paint._values["line-floorwidth"]=O.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,t)}},{key:"createBucket",value:function(t){return new v(t)}},{key:"queryRadius",value:function(t){var e=t,n=P(b("line-width",this,e),b("line-gap-width",this,e)),r=b("line-offset",this,e);return n/2+Math.abs(r)+x(this.paint.get("line-translate"))}},{key:"queryIntersectsFeature",value:function(t,e,n,r,i,o){var a=w(t,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),i,o),s=o/2*P(this.paint.get("line-width").evaluate(e),this.paint.get("line-gap-width").evaluate(e)),u=this.paint.get("line-offset").evaluate(e);return u&&(n=function(t,e){for(var n=[],r=new y(0,0),i=0;i<t.length;i++){for(var o=t[i],a=[],s=0;s<o.length;s++){var u=o[s-1],l=o[s],c=o[s+1],f=0===s?r:l.sub(u)._unit()._perp(),p=s===o.length-1?r:c.sub(l)._unit()._perp(),h=f._add(p)._unit(),d=h.x*p.x+h.y*p.y;h._mult(1/d),a.push(h._mult(e)._add(l))}n.push(a)}return n}(n,u*o)),m(a,n,s)}}]),n}(d);function P(t,e){return e>0?e+2*t:t}t.exports=T},7822:function(t,e,n){var r=n(5487),i=n(5615),o=i.Properties,a=i.DataConstantProperty,s=i.DataDrivenProperty,u=i.CrossFadedProperty,l=(i.HeatmapColorProperty,new o({"line-cap":new a(r.layout_line["line-cap"]),"line-join":new s(r.layout_line["line-join"]),"line-miter-limit":new a(r.layout_line["line-miter-limit"]),"line-round-limit":new a(r.layout_line["line-round-limit"])})),c=new o({"line-opacity":new s(r.paint_line["line-opacity"]),"line-color":new s(r.paint_line["line-color"]),"line-translate":new a(r.paint_line["line-translate"]),"line-translate-anchor":new a(r.paint_line["line-translate-anchor"]),"line-width":new s(r.paint_line["line-width"]),"line-gap-width":new s(r.paint_line["line-gap-width"]),"line-offset":new s(r.paint_line["line-offset"]),"line-blur":new s(r.paint_line["line-blur"]),"line-dasharray":new u(r.paint_line["line-dasharray"]),"line-pattern":new u(r.paint_line["line-pattern"])});t.exports={paint:c,layout:l}},4544:function(t,e,n){function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function i(t,e){return i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},i(t,e)}function o(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return t}(t)}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}var s=n(3397),u=n(3026),l=n(5615),c=(l.Transitionable,l.Transitioning,l.PossiblyEvaluated,function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,t);var e,n,r,s=(n=l,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=a(n);if(r){var i=a(this).constructor;t=Reflect.construct(e,arguments,i)}else t=e.apply(this,arguments);return o(this,t)});function l(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),s.call(this,t,u)}return e=l,Object.defineProperty(e,"prototype",{writable:!1}),e}(s));t.exports=c},3026:function(t,e,n){var r=n(5487),i=n(5615),o=i.Properties,a=i.DataConstantProperty,s=(i.DataDrivenProperty,i.CrossFadedProperty,i.HeatmapColorProperty,new o({"raster-opacity":new a(r.paint_raster["raster-opacity"]),"raster-hue-rotate":new a(r.paint_raster["raster-hue-rotate"]),"raster-brightness-min":new a(r.paint_raster["raster-brightness-min"]),"raster-brightness-max":new a(r.paint_raster["raster-brightness-max"]),"raster-saturation":new a(r.paint_raster["raster-saturation"]),"raster-contrast":new a(r.paint_raster["raster-contrast"]),"raster-fade-duration":new a(r.paint_raster["raster-fade-duration"])}));t.exports={paint:s}},4195:function(t,e,n){function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(){return o="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=a(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},o.apply(this,arguments)}function a(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=l(t)););return t}function s(t,e){return s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},s(t,e)}function u(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return t}(t)}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}var c=n(3397),f=n(5571),p=n(7359),h=n(8266).isExpression,y=n(8583),d=n(9348),v=n(5615),m=(v.Transitionable,v.Transitioning,v.Layout,v.PossiblyEvaluated,function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(v,t);var e,n,r,a,c=(r=v,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=l(r);if(a){var n=l(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return u(this,t)});function v(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,v),c.call(this,t,d)}return e=v,(n=[{key:"recalculate",value:function(t){o(l(v.prototype),"recalculate",this).call(this,t),"auto"===this.layout.get("icon-rotation-alignment")&&("line"===this.layout.get("symbol-placement")?this.layout._values["icon-rotation-alignment"]="map":this.layout._values["icon-rotation-alignment"]="viewport"),"auto"===this.layout.get("text-rotation-alignment")&&("line"===this.layout.get("symbol-placement")?this.layout._values["text-rotation-alignment"]="map":this.layout._values["text-rotation-alignment"]="viewport"),"auto"===this.layout.get("text-pitch-alignment")&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),"auto"===this.layout.get("icon-pitch-alignment")&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment"))}},{key:"getValueAndResolveTokens",value:function(t,e){var n=this.layout.get(t).evaluate(e),r=this._unevaluatedLayout._values[t];return r.isDataDriven()||h(r.value)?n:p(e.properties,n)}},{key:"createBucket",value:function(t){return new f(t)}},{key:"queryRadius",value:function(){return 0}},{key:"queryIntersectsFeature",value:function(){return y(!1),!1}}])&&i(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),v}(c));t.exports=m},9348:function(t,e,n){var r=n(5487),i=n(5615),o=i.Properties,a=i.DataConstantProperty,s=i.DataDrivenProperty,u=(i.CrossFadedProperty,i.HeatmapColorProperty,new o({"symbol-placement":new a(r.layout_symbol["symbol-placement"]),"symbol-spacing":new a(r.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new a(r.layout_symbol["symbol-avoid-edges"]),"icon-allow-overlap":new a(r.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new a(r.layout_symbol["icon-ignore-placement"]),"icon-optional":new a(r.layout_symbol["icon-optional"]),"icon-rotation-alignment":new a(r.layout_symbol["icon-rotation-alignment"]),"icon-size":new s(r.layout_symbol["icon-size"]),"icon-text-fit":new a(r.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new a(r.layout_symbol["icon-text-fit-padding"]),"icon-image":new s(r.layout_symbol["icon-image"]),"icon-rotate":new s(r.layout_symbol["icon-rotate"]),"icon-padding":new a(r.layout_symbol["icon-padding"]),"icon-keep-upright":new a(r.layout_symbol["icon-keep-upright"]),"icon-offset":new s(r.layout_symbol["icon-offset"]),"icon-anchor":new s(r.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new a(r.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new a(r.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new a(r.layout_symbol["text-rotation-alignment"]),"text-field":new s(r.layout_symbol["text-field"]),"text-font":new s(r.layout_symbol["text-font"]),"text-size":new s(r.layout_symbol["text-size"]),"text-max-width":new s(r.layout_symbol["text-max-width"]),"text-line-height":new a(r.layout_symbol["text-line-height"]),"text-letter-spacing":new s(r.layout_symbol["text-letter-spacing"]),"text-justify":new s(r.layout_symbol["text-justify"]),"text-anchor":new s(r.layout_symbol["text-anchor"]),"text-max-angle":new a(r.layout_symbol["text-max-angle"]),"text-rotate":new s(r.layout_symbol["text-rotate"]),"text-padding":new a(r.layout_symbol["text-padding"]),"text-keep-upright":new a(r.layout_symbol["text-keep-upright"]),"text-transform":new s(r.layout_symbol["text-transform"]),"text-offset":new s(r.layout_symbol["text-offset"]),"text-allow-overlap":new a(r.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new a(r.layout_symbol["text-ignore-placement"]),"text-optional":new a(r.layout_symbol["text-optional"])})),l=new o({"icon-opacity":new s(r.paint_symbol["icon-opacity"]),"icon-color":new s(r.paint_symbol["icon-color"]),"icon-halo-color":new s(r.paint_symbol["icon-halo-color"]),"icon-halo-width":new s(r.paint_symbol["icon-halo-width"]),"icon-halo-blur":new s(r.paint_symbol["icon-halo-blur"]),"icon-translate":new a(r.paint_symbol["icon-translate"]),"icon-translate-anchor":new a(r.paint_symbol["icon-translate-anchor"]),"text-opacity":new s(r.paint_symbol["text-opacity"]),"text-color":new s(r.paint_symbol["text-color"]),"text-halo-color":new s(r.paint_symbol["text-halo-color"]),"text-halo-width":new s(r.paint_symbol["text-halo-width"]),"text-halo-blur":new s(r.paint_symbol["text-halo-blur"]),"text-translate":new a(r.paint_symbol["text-translate"]),"text-translate-anchor":new a(r.paint_symbol["text-translate-anchor"])});t.exports={paint:l,layout:u}},9678:function(t,e,n){function r(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var a=n(3397),s=n(8316),u=n(1693),l=n(4510),c=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e&&this.replace(e)}var e,n;return e=t,(n=[{key:"replace",value:function(t){this._layerConfigs={},this._layers={},this.update(t,[])}},{key:"update",value:function(t,e){var n,i=this,o=r(t);try{for(o.s();!(n=o.n()).done;){var c=n.value;this._layerConfigs[c.id]=c;var f=this._layers[c.id]=a.create(c);f._featureFilter=u(f.filter)}}catch(t){o.e(t)}finally{o.f()}var p,h=r(e);try{for(h.s();!(p=h.n()).done;){var y=p.value;delete this._layerConfigs[y],delete this._layers[y]}}catch(t){h.e(t)}finally{h.f()}this.familiesBySource={};var d,v=r(l(s.values(this._layerConfigs)));try{for(v.s();!(d=v.n()).done;){var m=d.value.map((function(t){return i._layers[t.id]})),g=m[0];if("none"!==g.visibility){var b=g.source||"",x=this.familiesBySource[b];x||(x=this.familiesBySource[b]={});var w=g.sourceLayer||"_geojsonTileLayer",k=x[w];k||(k=x[w]=[]),k.push(m)}}}catch(t){v.e(t)}finally{v.f()}}}])&&o(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();t.exports=c},9571:function(t,e,n){function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}t.exports=n(7250),t.exports.emitErrors=function(t,e){if(e&&e.length){var n,i=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,o=function(){};return{s:o,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}(e);try{for(i.s();!(n=i.n()).done;){var o=n.value.message;t.fire("error",{error:new Error(o)})}}catch(t){i.e(t)}finally{i.f()}return!0}return!1}},2535:function(t){function e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var n=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.first=!0}var n,r;return n=t,(r=[{key:"update",value:function(t,e){var n=Math.floor(t);return this.first?(this.first=!1,this.lastIntegerZoom=n,this.lastIntegerZoomTime=0,this.lastZoom=t,this.lastFloorZoom=n,!0):(this.lastFloorZoom>n?(this.lastIntegerZoom=n+1,this.lastIntegerZoomTime=e):this.lastFloorZoom<n&&(this.lastIntegerZoom=n,this.lastIntegerZoomTime=e),t!==this.lastZoom&&(this.lastZoom=t,this.lastFloorZoom=n,!0))}}])&&e(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),t}();t.exports=n},1397:function(t,e,n){function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e){return o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},o(t,e)}function a(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return t}(t)}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}var u=n(5550),l=n(1786).register,c=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&o(t,e)}(c,t);var e,n,r,u,l=(r=c,u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=s(r);if(u){var n=s(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return a(this,t)});function c(t,e,n,r){var i;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),(i=l.call(this,t,e)).angle=n,void 0!==r&&(i.segment=r),i}return e=c,(n=[{key:"clone",value:function(){return new c(this.x,this.y,this.angle,this.segment)}}])&&i(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),c}(u);l("Anchor",c),t.exports=c},2116:function(t){t.exports=function(t,e,n,r,i){if(void 0===e.segment)return!0;for(var o=e,a=e.segment+1,s=0;s>-n/2;){if(--a<0)return!1;s-=t[a].dist(o),o=t[a]}s+=t[a].dist(t[a+1]),a++;for(var u=[],l=0;s<n/2;){var c=t[a-1],f=t[a],p=t[a+1];if(!p)return!1;var h=c.angleTo(f)-f.angleTo(p);for(h=Math.abs((h+3*Math.PI)%(2*Math.PI)-Math.PI),u.push({distance:s,angleDelta:h}),l+=h;s-u[0].distance>r;)l-=u.shift().angleDelta;if(l>i)return!1;a++,s+=f.dist(p)}return!0}},6220:function(t,e,n){var r=n(5550);t.exports=function(t,e,n,i,o){for(var a=[],s=0;s<t.length;s++)for(var u=t[s],l=void 0,c=0;c<u.length-1;c++){var f=u[c],p=u[c+1];f.x<e&&p.x<e||(f.x<e?f=new r(e,f.y+(p.y-f.y)*((e-f.x)/(p.x-f.x)))._round():p.x<e&&(p=new r(e,f.y+(p.y-f.y)*((e-f.x)/(p.x-f.x)))._round()),f.y<n&&p.y<n||(f.y<n?f=new r(f.x+(p.x-f.x)*((n-f.y)/(p.y-f.y)),n)._round():p.y<n&&(p=new r(f.x+(p.x-f.x)*((n-f.y)/(p.y-f.y)),n)._round()),f.x>=i&&p.x>=i||(f.x>=i?f=new r(i,f.y+(p.y-f.y)*((i-f.x)/(p.x-f.x)))._round():p.x>=i&&(p=new r(i,f.y+(p.y-f.y)*((i-f.x)/(p.x-f.x)))._round()),f.y>=o&&p.y>=o||(f.y>=o?f=new r(f.x+(p.x-f.x)*((o-f.y)/(p.y-f.y)),o)._round():p.y>=o&&(p=new r(f.x+(p.x-f.x)*((o-f.y)/(p.y-f.y)),o)._round()),l&&f.equals(l[l.length-1])||(l=[f],a.push(l)),l.push(p)))))}return a}},9786:function(t){function e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var n=function(){function t(e,n,r,i,o,a,s,u,l,c,f){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var p=s.top*u-l,h=s.bottom*u+l,y=s.left*u-l,d=s.right*u+l;if(this.boxStartIndex=e.length,c){var v=h-p,m=d-y;v>0&&(v=Math.max(10*u,v),this._addLineCollisionCircles(e,n,r,r.segment,m,v,i,o,a,f))}else e.emplaceBack(r.x,r.y,y,p,d,h,i,o,a,0,0);this.boxEndIndex=e.length}var n,r;return n=t,(r=[{key:"_addLineCollisionCircles",value:function(t,e,n,r,i,o,a,s,u,l){var c=o/2,f=Math.floor(i/c),p=1+.4*Math.log(l)/Math.LN2,h=Math.floor(f*p/2),y=-o/2,d=n,v=r+1,m=y,g=-i/2,b=g-i/4;do{if(--v<0){if(m>g)return;v=0;break}m-=e[v].dist(d),d=e[v]}while(m>b);for(var x=e[v].dist(e[v+1]),w=-h;w<f+h;w++){var k=w*c,S=g+k;if(k<0&&(S+=k),k>i&&(S+=k-i),!(S<m)){for(;m+x<S;){if(m+=x,1+ ++v>=e.length)return;x=e[v].dist(e[v+1])}var _=S-m,A=e[v],j=e[v+1].sub(A)._unit()._mult(_)._add(A)._round(),O=Math.abs(S-y)<c?0:.8*(S-y);t.emplaceBack(j.x,j.y,-o/2,-o/2,o/2,o/2,a,s,u,o/2,O)}}}}])&&e(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),t}();t.exports=n},5811:function(t,e,n){var r=n(2643).number,i=n(1397),o=n(2116);function a(t,e,n,s,u,l,c,f,p){for(var h=l/2,y=0,d=0;d<t.length-1;d++)y+=t[d].dist(t[d+1]);for(var v=0,m=e-n,g=[],b=0;b<t.length-1;b++){for(var x=t[b],w=t[b+1],k=x.dist(w),S=w.angleTo(x);m+n<v+k;){var _=((m+=n)-v)/k,A=r(x.x,w.x,_),j=r(x.y,w.y,_);if(A>=0&&A<p&&j>=0&&j<p&&m-h>=0&&m+h<=y){var O=new i(A,j,S,b);O._round(),s&&!o(t,O,l,s,u)||g.push(O)}}v+=k}return f||g.length||c||(g=a(t,v/2,n,s,u,l,c,!0,p)),g}t.exports=function(t,e,n,r,i,o,s,u,l){var c=r?.6*o*s:0,f=Math.max(r?r.right-r.left:0,i?i.right-i.left:0),p=0===t[0].x||t[0].x===l||0===t[0].y||t[0].y===l;return e-f*s<e/4&&(e=f*s+e/4),a(t,p?e/2*u%e:(f/2+2*o)*s*u%e,e,c,n,f*s,p,!1,l)}},8376:function(t){t.exports=function(t){var e={},n={},r=[],i=0;function o(e){r.push(t[e]),i++}function a(t,e,i){var o=n[t];return delete n[t],n[e]=o,r[o].geometry[0].pop(),r[o].geometry[0]=r[o].geometry[0].concat(i[0]),o}function s(t,n,i){var o=e[n];return delete e[n],e[t]=o,r[o].geometry[0].shift(),r[o].geometry[0]=i[0].concat(r[o].geometry[0]),o}function u(t,e,n){var r=n?e[0][e[0].length-1]:e[0][0];return"".concat(t,":").concat(r.x,":").concat(r.y)}for(var l=0;l<t.length;l++){var c=t[l],f=c.geometry,p=c.text;if(p){var h=u(p,f),y=u(p,f,!0);if(h in n&&y in e&&n[h]!==e[y]){var d=s(h,y,f),v=a(h,y,r[d].geometry);delete e[h],delete n[y],n[u(p,r[v].geometry,!0)]=v,r[d].geometry=null}else h in n?a(h,y,f):y in e?s(h,y,f):(o(l),e[h]=i-1,n[y]=i-1)}else o(l)}return r.filter((function(t){return t.geometry}))}},9502:function(t,e,n){function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var i=n(1786).register,o=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.opacity=0,this.targetOpacity=0,this.time=0}var e,n;return e=t,(n=[{key:"clone",value:function(){var e=new t;return e.opacity=this.opacity,e.targetOpacity=this.targetOpacity,e.time=this.time,e}}])&&r(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();i("OpacityState",o),t.exports=o},5673:function(t,e,n){var r=n(5550),i=n(3278).GLYPH_PBF_BORDER;t.exports={getIconQuads:function(t,e,n,i,o,a,s){var u,l,c,f,p=e.image,h=n.layout,y=e.top-1/p.pixelRatio,d=e.left-1/p.pixelRatio,v=e.bottom+1/p.pixelRatio,m=e.right+1/p.pixelRatio;if("none"!==h.get("icon-text-fit")&&o){var g=m-d,b=v-y,x=h.get("text-size").evaluate(s)/24,w=o.left*x,k=o.right*x,S=o.top*x,_=k-w,A=o.bottom*x-S,j=h.get("icon-text-fit-padding")[0],O=h.get("icon-text-fit-padding")[1],T=h.get("icon-text-fit-padding")[2],P=h.get("icon-text-fit-padding")[3],z="width"===h.get("icon-text-fit")?.5*(A-b):0,I="height"===h.get("icon-text-fit")?.5*(_-g):0,E="width"===h.get("icon-text-fit")||"both"===h.get("icon-text-fit")?_:g,C="height"===h.get("icon-text-fit")||"both"===h.get("icon-text-fit")?A:b;u=new r(w+I-P,S+z-j),l=new r(w+I+O+E,S+z-j),c=new r(w+I+O+E,S+z+T+C),f=new r(w+I-P,S+z+T+C)}else u=new r(d,y),l=new r(m,y),c=new r(m,v),f=new r(d,v);var M=n.layout.get("icon-rotate").evaluate(s)*Math.PI/180;if(M){var B=Math.sin(M),V=Math.cos(M),R=[V,-B,B,V];u._matMult(R),l._matMult(R),f._matMult(R),c._matMult(R)}return[{tl:u,tr:l,bl:f,br:c,tex:{x:p.textureRect.x-1,y:p.textureRect.y-1,w:p.textureRect.w+2,h:p.textureRect.h+2},writingMode:void 0,glyphOffset:[0,0]}]},getGlyphQuads:function(t,e,n,o,a,s,u){for(var l=n.layout.get("text-rotate").evaluate(s)*Math.PI/180,c=n.layout.get("text-offset").evaluate(s).map((function(t){return 24*t})),f=e.positionedGlyphs,p=[],h=0;h<f.length;h++){var y=f[h],d=u[y.glyph];if(d){var v=d.rect;if(v){var m=i+1,g=d.metrics.advance/2,b=o?[y.x+g,y.y]:[0,0],x=o?[0,0]:[y.x+g+c[0],y.y+c[1]],w=d.metrics.left-m-g+x[0],k=-d.metrics.top-m+x[1],S=w+v.w,_=k+v.h,A=new r(w,k),j=new r(S,k),O=new r(w,_),T=new r(S,_);if(o&&y.vertical){var P=new r(-g,g),z=-Math.PI/2,I=new r(5,0);A._rotateAround(z,P)._add(I),j._rotateAround(z,P)._add(I),O._rotateAround(z,P)._add(I),T._rotateAround(z,P)._add(I)}if(l){var E=Math.sin(l),C=Math.cos(l),M=[C,-E,E,C];A._matMult(M),j._matMult(M),O._matMult(M),T._matMult(M)}p.push({tl:A,tr:j,bl:O,br:T,tex:v,writingMode:e.writingMode,glyphOffset:b})}}}return p}}},976:function(t,e,n){var r,i;function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw o}}}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var u=n(6584),l=n(7899),c=n(4781),f={horizontal:1,vertical:2,horizontalOnly:3};t.exports={shapeText:function(t,e,n,r,i,o,s,p,h,y){var d=t.trim();y===f.vertical&&(d=l(d));var v,m=[],w={positionedGlyphs:m,text:d,top:p[1],bottom:p[1],left:p[0],right:p[0],writingMode:y},k=c.processBidirectionalText;return v=k?k(d,g(d,s,n,e)):function(t,e){var n,r=[],i=0,o=a(e);try{for(o.s();!(n=o.n()).done;){var s=n.value;r.push(t.substring(i,s)),i=s}}catch(t){o.e(t)}finally{o.f()}return i<t.length&&r.push(t.substring(i,t.length)),r}(d,g(d,s,n,e)),function(t,e,n,r,i,o,s,l,c){var p,h=0,y=-17,d=0,v=t.positionedGlyphs,m="right"===o?1:"left"===o?0:.5,g=a(n);try{for(g.s();!(p=g.n()).done;){var w=p.value;if((w=w.trim()).length){for(var k=v.length,S=0;S<w.length;S++){var _=w.charCodeAt(S),A=e[_];A&&(u.charHasUprightVerticalOrientation(_)&&s!==f.horizontal?(v.push({glyph:_,x:h,y:0,vertical:!0}),h+=c+l):(v.push({glyph:_,x:h,y:y,vertical:!1}),h+=A.metrics.advance+l))}if(v.length!==k){var j=h-l;d=Math.max(j,d),x(v,e,k,v.length-1,m)}h=0,y+=r}else y+=r}}catch(t){g.e(t)}finally{g.f()}var O=b(i),T=O.horizontalAlign,P=O.verticalAlign;!function(t,e,n,r,i,o,a){for(var s=(e-n)*i,u=(-r*a+.5)*o,l=0;l<t.length;l++)t[l].x+=s,t[l].y+=u}(v,m,T,P,d,r,n.length);var z=n.length*r;t.top+=-P*z,t.bottom=t.top+z,t.left+=-T*d,t.right=t.left+d}(w,e,v,r,i,o,y,s,h),!!m.length&&w},shapeIcon:function(t,e,n){var r=b(n),i=r.horizontalAlign,o=r.verticalAlign,a=e[0],s=e[1],u=a-t.displaySize[0]*i,l=u+t.displaySize[0],c=s-t.displaySize[1]*o;return{image:t,top:c,bottom:c+t.displaySize[1],left:u,right:l}},WritingMode:f};var p=(o(r={},9,!0),o(r,10,!0),o(r,11,!0),o(r,12,!0),o(r,13,!0),o(r,32,!0),r),h=(o(i={},10,!0),o(i,32,!0),o(i,38,!0),o(i,40,!0),o(i,41,!0),o(i,43,!0),o(i,45,!0),o(i,47,!0),o(i,173,!0),o(i,183,!0),o(i,8203,!0),o(i,8208,!0),o(i,8211,!0),o(i,8231,!0),i);function y(t,e,n,r){var i=Math.pow(t-e,2);return r?t<e?i/2:2*i:i+Math.abs(n)*n}function d(t,e){var n=0;return 10===t&&(n-=1e4),40!==t&&65288!==t||(n+=50),41!==e&&65289!==e||(n+=50),n}function v(t,e,n,r,i,o){var s,u=null,l=y(e,n,i,o),c=a(r);try{for(c.s();!(s=c.n()).done;){var f=s.value,p=y(e-f.x,n,i,o)+f.badness;p<=l&&(u=f,l=p)}}catch(t){c.e(t)}finally{c.f()}return{index:t,x:e,priorBreak:u,badness:l}}function m(t){return t?m(t.priorBreak).concat(t.index):[]}function g(t,e,n,r){if(!n)return[];if(!t)return[];for(var i=[],o=function(t,e,n,r){for(var i=0,o=0;o<t.length;o++){var a=r[t.charCodeAt(o)];a&&(i+=a.metrics.advance+e)}return i/Math.max(1,Math.ceil(i/n))}(t,e,n,r),a=0,s=0;s<t.length;s++){var l=t.charCodeAt(s),c=r[l];c&&!p[l]&&(a+=c.metrics.advance+e),s<t.length-1&&(h[l]||u.charAllowsIdeographicBreaking(l))&&i.push(v(s+1,a,o,i,d(l,t.charCodeAt(s+1)),!1))}return m(v(t.length,a,o,i,0,!0))}function b(t){var e=.5,n=.5;switch(t){case"right":case"top-right":case"bottom-right":e=1;break;case"left":case"top-left":case"bottom-left":e=0}switch(t){case"bottom":case"bottom-right":case"bottom-left":n=1;break;case"top":case"top-right":case"top-left":n=0}return{horizontalAlign:e,verticalAlign:n}}function x(t,e,n,r,i){if(i){var o=e[t[r].glyph];if(o)for(var a=o.metrics.advance,s=(t[r].x+a)*i,u=n;u<=r;u++)t[u].x-=s}}},9457:function(t,e,n){function r(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var o=n(1397),a=n(5811),s=n(6220),u=n(9502),l=n(976),c=l.shapeText,f=l.shapeIcon,p=l.WritingMode,h=n(5673),y=h.getGlyphQuads,d=h.getIconQuads,v=n(9786),m=n(8316),g=n(6584),b=n(8218),x=n(937),w=n(900),k=n(5571),S=n(7627);function _(t,e,n,i,l,c){var f=c.layoutTextSize.evaluate(e),h=c.layoutIconSize.evaluate(e),y=c.textMaxSize.evaluate(e);void 0===y&&(y=f);var g=t.layers[0].layout,S=g.get("text-offset").evaluate(e),_=g.get("icon-offset").evaluate(e),O=f/24,T=t.tilePixelRatio*O,P=t.tilePixelRatio*y/24,z=t.tilePixelRatio*h,I=t.tilePixelRatio*g.get("symbol-spacing"),E=g.get("text-padding")*t.tilePixelRatio,C=g.get("icon-padding")*t.tilePixelRatio,M=g.get("text-max-angle")/180*Math.PI,B="map"===g.get("text-rotation-alignment")&&"line"===g.get("symbol-placement"),V="map"===g.get("icon-rotation-alignment")&&"line"===g.get("symbol-placement"),R=I/2,L=function(r,o){o.x<0||o.x>=w||o.y<0||o.y>=w||t.symbolInstances.push(function(t,e,n,r,i,o,a,s,l,c,f,h,y,g,b,x,w,S,_,j,O,T){var P,z,I=t.addToLineVertexArray(e,n),E=0,C=0,M=0,B=r.horizontal?r.horizontal.text:"",V=[];r.horizontal&&(P=new v(a,n,e,s,l,c,r.horizontal,f,h,y,t.overscaling),C+=A(t,e,r.horizontal,o,y,_,j,g,I,r.vertical?p.horizontal:p.horizontalOnly,V,O,T),r.vertical&&(M+=A(t,e,r.vertical,o,y,_,j,g,I,p.vertical,V,O,T)));var R=P?P.boxStartIndex:t.collisionBoxArray.length,L=P?P.boxEndIndex:t.collisionBoxArray.length;if(i){var F=d(e,i,o,w,r.horizontal,_,j);z=new v(a,n,e,s,l,c,i,b,x,!1,t.overscaling),E=4*F.length;var D=t.iconSizeData,q=null;"source"===D.functionType?q=[10*o.layout.get("icon-size").evaluate(j)]:"composite"===D.functionType&&(q=[10*T.compositeIconSizes[0].evaluate(j),10*T.compositeIconSizes[1].evaluate(j)]),t.addSymbols(t.icon,F,q,S,w,j,!1,e,I.lineStartIndex,I.lineLength)}var U=z?z.boxStartIndex:t.collisionBoxArray.length,N=z?z.boxEndIndex:t.collisionBoxArray.length;return t.glyphOffsetArray.length>=k.MAX_GLYPHS&&m.warnOnce("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),{key:B,textBoxStartIndex:R,textBoxEndIndex:L,iconBoxStartIndex:U,iconBoxEndIndex:N,textOffset:g,iconOffset:S,anchor:e,line:n,featureIndex:s,feature:j,numGlyphVertices:C,numVerticalGlyphVertices:M,numIconVertices:E,textOpacityState:new u,iconOpacityState:new u,isDuplicate:!1,placedTextSymbolIndices:V,crossTileID:0}}(t,o,r,n,i,t.layers[0],t.collisionBoxArray,e.index,e.sourceLayerIndex,t.index,T,E,B,S,z,C,V,_,{zoom:t.zoom},e,l,c))};if("line"===g.get("symbol-placement")){var F,D=r(s(e.geometry,0,0,w,w));try{for(D.s();!(F=D.n()).done;){var q,U=F.value,N=r(a(U,I,M,n.vertical||n.horizontal,i,24,P,t.overscaling,w));try{for(N.s();!(q=N.n()).done;){var J=q.value,G=n.horizontal;G&&j(t,G.text,R,J)||L(U,J)}}catch(t){N.e(t)}finally{N.f()}}}catch(t){D.e(t)}finally{D.f()}}else if("Polygon"===e.type){var Z,H=r(x(e.geometry,0));try{for(H.s();!(Z=H.n()).done;){var W=Z.value,Y=b(W,16);L(W[0],new o(Y.x,Y.y,0))}}catch(t){H.e(t)}finally{H.f()}}else if("LineString"===e.type){var $,K=r(e.geometry);try{for(K.s();!($=K.n()).done;){var X=$.value;L(X,new o(X[0].x,X[0].y,0))}}catch(t){K.e(t)}finally{K.f()}}else if("Point"===e.type){var Q,tt=r(e.geometry);try{for(tt.s();!(Q=tt.n()).done;){var et,nt=r(Q.value);try{for(nt.s();!(et=nt.n()).done;){var rt=et.value;L([rt],new o(rt.x,rt.y,0))}}catch(t){nt.e(t)}finally{nt.f()}}}catch(t){tt.e(t)}finally{tt.f()}}}function A(t,e,n,r,i,o,a,s,u,l,c,f,p){var h=y(e,n,r,i,o,a,f),d=t.textSizeData,v=null;return"source"===d.functionType?v=[10*r.layout.get("text-size").evaluate(a)]:"composite"===d.functionType&&(v=[10*p.compositeTextSizes[0].evaluate(a),10*p.compositeTextSizes[1].evaluate(a)]),t.addSymbols(t.text,h,v,s,i,a,l,e,u.lineStartIndex,u.lineLength),c.push(t.text.placedSymbolArray.length-1),4*h.length}function j(t,e,n,r){var i=t.compareText;if(e in i){for(var o=i[e],a=o.length-1;a>=0;a--)if(r.dist(o[a])<n)return!0}else i[e]=[];return i[e].push(r),!1}n(5550),t.exports={performSymbolLayout:function(t,e,n,i,o,a){t.createArrays(),t.symbolInstances=[];var s=512*t.overscaling;t.tilePixelRatio=w/s,t.compareText={},t.iconsNeedLinear=!1;var u=t.layers[0].layout,l=t.layers[0]._unevaluatedLayout._values,h={};if("composite"===t.textSizeData.functionType){var y=t.textSizeData.zoomRange,d=y.min,v=y.max;h.compositeTextSizes=[l["text-size"].possiblyEvaluate(new S(d)),l["text-size"].possiblyEvaluate(new S(v))]}if("composite"===t.iconSizeData.functionType){var b=t.iconSizeData.zoomRange,x=b.min,k=b.max;h.compositeIconSizes=[l["icon-size"].possiblyEvaluate(new S(x)),l["icon-size"].possiblyEvaluate(new S(k))]}h.layoutTextSize=l["text-size"].possiblyEvaluate(new S(t.zoom+1)),h.layoutIconSize=l["icon-size"].possiblyEvaluate(new S(t.zoom+1)),h.textMaxSize=l["text-size"].possiblyEvaluate(new S(18));var A,j=24,O=u.get("text-line-height")*j,T="map"===u.get("text-rotation-alignment")&&"line"===u.get("symbol-placement"),P=u.get("text-keep-upright"),z=r(t.features);try{for(z.s();!(A=z.n()).done;){var I=A.value,E=u.get("text-font").evaluate(I).join(","),C=e[E]||{},M=n[E]||{},B={},V=I.text;if(V){var R=g.allowsVerticalWritingMode(V),L=u.get("text-offset").evaluate(I).map((function(t){return t*j})),F=u.get("text-letter-spacing").evaluate(I)*j,D=g.allowsLetterSpacing(V)?F:0,q=u.get("text-anchor").evaluate(I),U=u.get("text-justify").evaluate(I),N="line"!==u.get("symbol-placement")?u.get("text-max-width").evaluate(I)*j:0;B.horizontal=c(V,C,N,O,q,U,D,L,j,p.horizontal),R&&T&&P&&(B.vertical=c(V,C,N,O,q,U,D,L,j,p.vertical))}var J=void 0;if(I.icon){var G=i[I.icon];G&&(J=f(o[I.icon],u.get("icon-offset").evaluate(I),u.get("icon-anchor").evaluate(I)),void 0===t.sdfIcons?t.sdfIcons=G.sdf:t.sdfIcons!==G.sdf&&m.warnOnce("Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer"),(G.pixelRatio!==t.pixelRatio||0!==u.get("icon-rotate").constantOr(1))&&(t.iconsNeedLinear=!0))}(B.horizontal||J)&&_(t,I,B,J,M,h)}}catch(t){z.e(t)}finally{z.f()}a&&t.generateCollisionDebugBuffers()}}},724:function(t,e,n){var r=n(8266).normalizePropertyExpression,i=n(2643),o=n(8316);t.exports={getSizeData:function(t,e){var n=e.expression;if("constant"===n.kind)return{functionType:"constant",layoutSize:n.evaluate({zoom:t+1})};if("source"===n.kind)return{functionType:"source"};for(var r=n.zoomStops,i=0;i<r.length&&r[i]<=t;)i++;for(var o=i=Math.max(0,i-1);o<r.length&&r[o]<t+1;)o++;o=Math.min(r.length-1,o);var a={min:r[i],max:r[o]};return"composite"===n.kind?{functionType:"composite",zoomRange:a,propertyValue:e.value}:{functionType:"camera",layoutSize:n.evaluate({zoom:t+1}),zoomRange:a,sizeRange:{min:n.evaluate({zoom:a.min}),max:n.evaluate({zoom:a.max})},propertyValue:e.value}},evaluateSizeForFeature:function(t,e,n){var r=e;return"source"===t.functionType?n.lowerSize/10:"composite"===t.functionType?i.number(n.lowerSize/10,n.upperSize/10,r.uSizeT):r.uSize},evaluateSizeForZoom:function(t,e,n){if("constant"===t.functionType)return{uSizeT:0,uSize:t.layoutSize};if("source"===t.functionType)return{uSizeT:0,uSize:0};if("camera"===t.functionType){var i=t.propertyValue,a=t.zoomRange,s=t.sizeRange,u=r(i,n.specification),l=o.clamp(u.interpolationFactor(e,a.min,a.max),0,1);return{uSizeT:0,uSize:s.min+l*(s.max-s.min)}}var c=t.propertyValue,f=t.zoomRange,p=r(c,n.specification);return{uSizeT:o.clamp(p.interpolationFactor(e,f.min,f.max),0,1),uSize:0}}}},1447:function(t,e,n){var r=n(4781);t.exports=function(t,e,n){var i=e.layout.get("text-transform").evaluate(n);return"uppercase"===i?t=t.toLocaleUpperCase():"lowercase"===i&&(t=t.toLocaleLowerCase()),r.applyArabicShaping&&(t=r.applyArabicShaping(t)),t}},9646:function(t,e,n){function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var i=n(8316),o=n(1786),a=o.serialize,s=o.deserialize,u=function(){function t(e,n,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.target=e,this.parent=n,this.mapId=r,this.callbacks={},this.callbackID=0,i.bindAll(["receive"],this),this.target.addEventListener("message",this.receive,!1)}var e,n;return e=t,(n=[{key:"send",value:function(t,e,n,r){var i=n?"".concat(this.mapId,":").concat(this.callbackID++):null;n&&(this.callbacks[i]=n);var o=[];this.target.postMessage({targetMapId:r,sourceMapId:this.mapId,type:t,id:String(i),data:a(e,o)},o)}},{key:"receive",value:function(t){var e,n=this,r=t.data,i=r.id;if(!r.targetMapId||this.mapId===r.targetMapId){var o=function(t,e){var r=[];n.target.postMessage({sourceMapId:n.mapId,type:"<response>",id:String(i),error:t?String(t):null,data:a(e,r)},r)};if("<response>"===r.type)e=this.callbacks[r.id],delete this.callbacks[r.id],e&&r.error?e(new Error(r.error)):e&&e(null,s(r.data));else if(void 0!==r.id&&this.parent[r.type])this.parent[r.type](r.sourceMapId,s(r.data),o);else if(void 0!==r.id&&this.parent.getWorkerSource){var u=r.type.split(".");this.parent.getWorkerSource(r.sourceMapId,u[0])[u[1]](s(r.data),o)}else this.parent[r.type](s(r.data))}}},{key:"remove",value:function(){this.target.removeEventListener("message",this.receive,!1)}}])&&r(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();t.exports=u},2341:function(t,e,n){function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function i(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return t}(t)}function o(t){var e="function"==typeof Map?new Map:void 0;return o=function(t){if(null===t||(n=t,-1===Function.toString.call(n).indexOf("[native code]")))return t;var n;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return a(t,arguments,l(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),u(r,t)},o(t)}function a(t,e,n){return a=s()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var i=new(Function.bind.apply(t,r));return n&&u(i,n.prototype),i},a.apply(null,arguments)}function s(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function u(t,e){return u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},u(t,e)}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}var c=n(1362),f={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Image:"Image"};e.ResourceType=f,"function"==typeof Object.freeze&&Object.freeze(f);var p=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&u(t,e)}(a,t);var e,n,r,o=(e=a,n=s(),function(){var t,r=l(e);if(n){var o=l(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return i(this,t)});function a(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(n=o.call(this,t)).status=e,n}return r=a,Object.defineProperty(r,"prototype",{writable:!1}),r}(o(Error));function h(t){var e=new c.XMLHttpRequest;for(var n in e.open("GET",t.url,!0),t.headers)e.setRequestHeader(n,t.headers[n]);return e.withCredentials="include"===t.credentials,e}e.getJSON=function(t,e){var n=h(t);return n.setRequestHeader("Accept","application/json"),n.onerror=function(){e(new Error(n.statusText))},n.onload=function(){if(n.status>=200&&n.status<300&&n.response){var t;try{t=JSON.parse(n.response)}catch(t){return e(t)}e(null,t)}else e(new p(n.statusText,n.status))},n.send(),n},e.getArrayBuffer=function(t,e){var n=h(t);return n.responseType="arraybuffer",n.onerror=function(){e(new Error(n.statusText))},n.onload=function(){var t=n.response;if(0===t.byteLength&&200===n.status)return e(new Error("http status 200 returned without content."));n.status>=200&&n.status<300&&n.response?e(null,{data:t,cacheControl:n.getResponseHeader("Cache-Control"),expires:n.getResponseHeader("Expires")}):e(new p(n.statusText,n.status))},n.send(),n},e.getImage=function(t,n){return e.getArrayBuffer(t,(function(t,e){if(t)n(t);else if(e){var r=new c.Image,i=c.URL||c.webkitURL;r.onload=function(){n(null,r),i.revokeObjectURL(r.src)};var o=new c.Blob([new Uint8Array(e.data)],{type:"image/png"});r.cacheControl=e.cacheControl,r.expires=e.expires,r.src=e.data.byteLength?i.createObjectURL(o):"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII="}}))},e.getVideo=function(t,e){var n,r,i=c.document.createElement("video");i.onloadstart=function(){e(null,i)};for(var o=0;o<t.length;o++){var a=c.document.createElement("source");n=t[o],r=void 0,(r=c.document.createElement("a")).href=n,(r.protocol!==c.document.location.protocol||r.host!==c.document.location.host)&&(i.crossOrigin="Anonymous"),a.src=t[o],i.appendChild(a)}return i}},1362:function(t){t.exports=self},937:function(t,e,n){var r=n(8166),i=n(8316).calculateSignedArea;function o(t,e){return e.area-t.area}t.exports=function(t,e){var n=t.length;if(n<=1)return[t];for(var a,s,u=[],l=0;l<n;l++){var c=i(t[l]);0!==c&&(t[l].area=Math.abs(c),void 0===s&&(s=c<0),s===c<0?(a&&u.push(a),a=[t[l]]):a.push(t[l]))}if(a&&u.push(a),e>1)for(var f=0;f<u.length;f++)u[f].length<=e||(r(u[f],e,1,u[f].length-1,o),u[f]=u[f].slice(0,e));return u}},621:function(t,e,n){function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var i=n(8583),o=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._stringToNumber={},this._numberToString=[];for(var n=0;n<e.length;n++){var r=e[n];this._stringToNumber[r]=n,this._numberToString[n]=r}}var e,n;return e=t,(n=[{key:"encode",value:function(t){return i(t in this._stringToNumber),this._stringToNumber[t]}},{key:"decode",value:function(t){return i(t<this._numberToString.length),this._numberToString[t]}}])&&r(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();t.exports=o},1495:function(t,e,n){function r(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var a=n(8316);function s(t,e,n){n[t]=n[t]||[],n[t].push(e)}function u(t,e,n){if(n&&n[t]){var r=n[t].indexOf(e);-1!==r&&n[t].splice(r,1)}}var l=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n;return e=t,(n=[{key:"on",value:function(t,e){return this._listeners=this._listeners||{},s(t,e,this._listeners),this}},{key:"off",value:function(t,e){return u(t,e,this._listeners),u(t,e,this._oneTimeListeners),this}},{key:"once",value:function(t,e){return this._oneTimeListeners=this._oneTimeListeners||{},s(t,e,this._oneTimeListeners),this}},{key:"fire",value:function(t,e){if(this.listens(t)){e=a.extend({},e,{type:t,target:this});var n,i=r(this._listeners&&this._listeners[t]?this._listeners[t].slice():[]);try{for(i.s();!(n=i.n()).done;)n.value.call(this,e)}catch(t){i.e(t)}finally{i.f()}var o,s=r(this._oneTimeListeners&&this._oneTimeListeners[t]?this._oneTimeListeners[t].slice():[]);try{for(s.s();!(o=s.n()).done;){var l=o.value;u(t,l,this._oneTimeListeners),l.call(this,e)}}catch(t){s.e(t)}finally{s.f()}this._eventedParent&&this._eventedParent.fire(t,a.extend({},e,"function"==typeof this._eventedParentData?this._eventedParentData():this._eventedParentData))}else a.endsWith(t,"error")&&console.error(e&&e.error||e||"Empty error event");return this}},{key:"listens",value:function(t){return this._listeners&&this._listeners[t]&&this._listeners[t].length>0||this._oneTimeListeners&&this._oneTimeListeners[t]&&this._oneTimeListeners[t].length>0||this._eventedParent&&this._eventedParent.listens(t)}},{key:"setEventedParent",value:function(t,e){return this._eventedParent=t,this._eventedParentData=e,this}}])&&o(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();t.exports=l},8218:function(t,e,n){var r=n(3842),i=n(5550),o=n(66).distToSegmentSquared;function a(t,e){return e.max-t.max}function s(t,e,n,r){this.p=new i(t,e),this.h=n,this.d=function(t,e){for(var n=!1,r=1/0,i=0;i<e.length;i++)for(var a=e[i],s=0,u=a.length,l=u-1;s<u;l=s++){var c=a[s],f=a[l];c.y>t.y!=f.y>t.y&&t.x<(f.x-c.x)*(t.y-c.y)/(f.y-c.y)+c.x&&(n=!n),r=Math.min(r,o(t,c,f))}return(n?1:-1)*Math.sqrt(r)}(this.p,r),this.max=this.d+this.h*Math.SQRT2}function u(t){for(var e=0,n=0,r=0,i=t[0],o=0,a=i.length,u=a-1;o<a;u=o++){var l=i[o],c=i[u],f=l.x*c.y-c.x*l.y;n+=(l.x+c.x)*f,r+=(l.y+c.y)*f,e+=3*f}return new s(n/e,r/e,0,t)}t.exports=function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=1/0,l=1/0,c=-1/0,f=-1/0,p=t[0],h=0;h<p.length;h++){var y=p[h];(!h||y.x<o)&&(o=y.x),(!h||y.y<l)&&(l=y.y),(!h||y.x>c)&&(c=y.x),(!h||y.y>f)&&(f=y.y)}var d=c-o,v=f-l,m=Math.min(d,v),g=m/2,b=new r(null,a);if(0===m)return new i(o,l);for(var x=o;x<c;x+=m)for(var w=l;w<f;w+=m)b.push(new s(x+g,w+g,g,t));for(var k=u(t),S=b.length;b.length;){var _=b.pop();(_.d>k.d||!k.d)&&(k=_,n&&console.log("found best %d after %d probes",Math.round(1e4*_.d)/1e4,S)),_.max-k.d<=e||(g=_.h/2,b.push(new s(_.p.x-g,_.p.y-g,g,t)),b.push(new s(_.p.x+g,_.p.y-g,g,t)),b.push(new s(_.p.x-g,_.p.y+g,g,t)),b.push(new s(_.p.x+g,_.p.y+g,g,t)),S+=4)}return n&&(console.log("num probes: ".concat(S)),console.log("best distance: ".concat(k.d))),k.p}},5641:function(t,e,n){function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var a=n(8583),s=n(1786).register;function u(t,e,n,r){var i=e.width,o=e.height;if(r){if(r.length!==i*o*n)throw new RangeError("mismatched image size")}else r=new Uint8Array(i*o*n);return t.width=i,t.height=o,t.data=r,t}function l(t,e,n){var r=e.width,i=e.height;if(r!==t.width||i!==t.height){var o=u({},{width:r,height:i},n);c(t,o,{x:0,y:0},{x:0,y:0},{width:Math.min(t.width,r),height:Math.min(t.height,i)},n),t.width=r,t.height=i,t.data=o.data}}function c(t,e,n,r,i,o){if(0===i.width||0===i.height)return e;if(i.width>t.width||i.height>t.height||n.x>t.width-i.width||n.y>t.height-i.height)throw new RangeError("out of range source coordinates for image copy");if(i.width>e.width||i.height>e.height||r.x>e.width-i.width||r.y>e.height-i.height)throw new RangeError("out of range destination coordinates for image copy");var s=t.data,u=e.data;a(s!==u);for(var l=0;l<i.height;l++)for(var c=((n.y+l)*t.width+n.x)*o,f=((r.y+l)*e.width+r.x)*o,p=0;p<i.width*o;p++)u[f+p]=s[c+p];return e}var f=function(){function t(e,n){r(this,t),u(this,e,1,n)}return o(t,[{key:"resize",value:function(t){l(this,t,1)}},{key:"clone",value:function(){return new t({width:this.width,height:this.height},new Uint8Array(this.data))}}],[{key:"copy",value:function(t,e,n,r,i){c(t,e,n,r,i,1)}}]),t}(),p=function(){function t(e,n){r(this,t),u(this,e,4,n)}return o(t,[{key:"resize",value:function(t){l(this,t,4)}},{key:"clone",value:function(){return new t({width:this.width,height:this.height},new Uint8Array(this.data))}}],[{key:"copy",value:function(t,e,n,r,i){c(t,e,n,r,i,4)}}]),t}();s("AlphaImage",f),s("RGBAImage",p),t.exports={AlphaImage:f,RGBAImage:p}},66:function(t,e,n){var r=n(8316).isCounterClockwise;function i(t,e,n){if(t.length>1){if(o(t,e))return!0;for(var r=0;r<e.length;r++)if(s(e[r],t,n))return!0}for(var i=0;i<t.length;i++)if(s(t[i],e,n))return!0;return!1}function o(t,e){if(0===t.length||0===e.length)return!1;for(var n=0;n<t.length-1;n++)for(var r=t[n],i=t[n+1],o=0;o<e.length-1;o++)if(a(r,i,e[o],e[o+1]))return!0;return!1}function a(t,e,n,i){return r(t,n,i)!==r(e,n,i)&&r(t,e,n)!==r(t,e,i)}function s(t,e,n){var r=n*n;if(1===e.length)return t.distSqr(e[0])<r;for(var i=1;i<e.length;i++)if(u(t,e[i-1],e[i])<r)return!0;return!1}function u(t,e,n){var r=e.distSqr(n);if(0===r)return t.distSqr(e);var i=((t.x-e.x)*(n.x-e.x)+(t.y-e.y)*(n.y-e.y))/r;return i<0?t.distSqr(e):i>1?t.distSqr(n):t.distSqr(n.sub(e)._mult(i)._add(e))}function l(t,e){for(var n,r,i,o=!1,a=0;a<t.length;a++)for(var s=0,u=(n=t[a]).length-1;s<n.length;u=s++)r=n[s],i=n[u],r.y>e.y!=i.y>e.y&&e.x<(i.x-r.x)*(e.y-r.y)/(i.y-r.y)+r.x&&(o=!o);return o}function c(t,e){for(var n=!1,r=0,i=t.length-1;r<t.length;i=r++){var o=t[r],a=t[i];o.y>e.y!=a.y>e.y&&e.x<(a.x-o.x)*(e.y-o.y)/(a.y-o.y)+o.x&&(n=!n)}return n}t.exports={multiPolygonIntersectsBufferedMultiPoint:function(t,e,n){for(var r=0;r<t.length;r++)for(var i=t[r],o=0;o<e.length;o++)for(var a=e[o],u=0;u<a.length;u++){var l=a[u];if(c(i,l))return!0;if(s(l,i,n))return!0}return!1},multiPolygonIntersectsMultiPolygon:function(t,e){if(1===t.length&&1===t[0].length)return l(e,t[0][0]);for(var n=0;n<e.length;n++)for(var r=e[n],i=0;i<r.length;i++)if(l(t,r[i]))return!0;for(var a=0;a<t.length;a++){for(var s=t[a],u=0;u<s.length;u++)if(l(e,s[u]))return!0;for(var c=0;c<e.length;c++)if(o(s,e[c]))return!0}return!1},multiPolygonIntersectsBufferedMultiLine:function(t,e,n){for(var r=0;r<e.length;r++)for(var o=e[r],a=0;a<t.length;a++){var s=t[a];if(s.length>=3)for(var u=0;u<o.length;u++)if(c(s,o[u]))return!0;if(i(s,o,n))return!0}return!1},polygonIntersectsPolygon:function(t,e){for(var n=0;n<t.length;n++)if(c(e,t[n]))return!0;for(var r=0;r<e.length;r++)if(c(t,e[r]))return!0;return!!o(t,e)},distToSegmentSquared:u}},5534:function(t){t.exports={"Latin-1 Supplement":function(t){return t>=128&&t<=255},Arabic:function(t){return t>=1536&&t<=1791},"Arabic Supplement":function(t){return t>=1872&&t<=1919},"Arabic Extended-A":function(t){return t>=2208&&t<=2303},"Hangul Jamo":function(t){return t>=4352&&t<=4607},"Unified Canadian Aboriginal Syllabics":function(t){return t>=5120&&t<=5759},"Unified Canadian Aboriginal Syllabics Extended":function(t){return t>=6320&&t<=6399},"General Punctuation":function(t){return t>=8192&&t<=8303},"Letterlike Symbols":function(t){return t>=8448&&t<=8527},"Number Forms":function(t){return t>=8528&&t<=8591},"Miscellaneous Technical":function(t){return t>=8960&&t<=9215},"Control Pictures":function(t){return t>=9216&&t<=9279},"Optical Character Recognition":function(t){return t>=9280&&t<=9311},"Enclosed Alphanumerics":function(t){return t>=9312&&t<=9471},"Geometric Shapes":function(t){return t>=9632&&t<=9727},"Miscellaneous Symbols":function(t){return t>=9728&&t<=9983},"Miscellaneous Symbols and Arrows":function(t){return t>=11008&&t<=11263},"CJK Radicals Supplement":function(t){return t>=11904&&t<=12031},"Kangxi Radicals":function(t){return t>=12032&&t<=12255},"Ideographic Description Characters":function(t){return t>=12272&&t<=12287},"CJK Symbols and Punctuation":function(t){return t>=12288&&t<=12351},Hiragana:function(t){return t>=12352&&t<=12447},Katakana:function(t){return t>=12448&&t<=12543},Bopomofo:function(t){return t>=12544&&t<=12591},"Hangul Compatibility Jamo":function(t){return t>=12592&&t<=12687},Kanbun:function(t){return t>=12688&&t<=12703},"Bopomofo Extended":function(t){return t>=12704&&t<=12735},"CJK Strokes":function(t){return t>=12736&&t<=12783},"Katakana Phonetic Extensions":function(t){return t>=12784&&t<=12799},"Enclosed CJK Letters and Months":function(t){return t>=12800&&t<=13055},"CJK Compatibility":function(t){return t>=13056&&t<=13311},"CJK Unified Ideographs Extension A":function(t){return t>=13312&&t<=19903},"Yijing Hexagram Symbols":function(t){return t>=19904&&t<=19967},"CJK Unified Ideographs":function(t){return t>=19968&&t<=40959},"Yi Syllables":function(t){return t>=40960&&t<=42127},"Yi Radicals":function(t){return t>=42128&&t<=42191},"Hangul Jamo Extended-A":function(t){return t>=43360&&t<=43391},"Hangul Syllables":function(t){return t>=44032&&t<=55215},"Hangul Jamo Extended-B":function(t){return t>=55216&&t<=55295},"Private Use Area":function(t){return t>=57344&&t<=63743},"CJK Compatibility Ideographs":function(t){return t>=63744&&t<=64255},"Arabic Presentation Forms-A":function(t){return t>=64336&&t<=65023},"Vertical Forms":function(t){return t>=65040&&t<=65055},"CJK Compatibility Forms":function(t){return t>=65072&&t<=65103},"Small Form Variants":function(t){return t>=65104&&t<=65135},"Arabic Presentation Forms-B":function(t){return t>=65136&&t<=65279},"Halfwidth and Fullwidth Forms":function(t){return t>=65280&&t<=65519}}},6584:function(t,e,n){function r(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var o=n(5534);t.exports.allowsIdeographicBreaking=function(t){var n,i=r(t);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(!e.charAllowsIdeographicBreaking(o.charCodeAt(0)))return!1}}catch(t){i.e(t)}finally{i.f()}return!0},t.exports.allowsVerticalWritingMode=function(t){var n,i=r(t);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(e.charHasUprightVerticalOrientation(o.charCodeAt(0)))return!0}}catch(t){i.e(t)}finally{i.f()}return!1},t.exports.allowsLetterSpacing=function(t){var n,i=r(t);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(!e.charAllowsLetterSpacing(o.charCodeAt(0)))return!1}}catch(t){i.e(t)}finally{i.f()}return!0},t.exports.charAllowsLetterSpacing=function(t){return!(o.Arabic(t)||o["Arabic Supplement"](t)||o["Arabic Extended-A"](t)||o["Arabic Presentation Forms-A"](t)||o["Arabic Presentation Forms-B"](t))},t.exports.charAllowsIdeographicBreaking=function(t){return!!(!(t<11904)&&(o["Bopomofo Extended"](t)||o.Bopomofo(t)||o["CJK Compatibility Forms"](t)||o["CJK Compatibility Ideographs"](t)||o["CJK Compatibility"](t)||o["CJK Radicals Supplement"](t)||o["CJK Strokes"](t)||o["CJK Symbols and Punctuation"](t)||o["CJK Unified Ideographs Extension A"](t)||o["CJK Unified Ideographs"](t)||o["Enclosed CJK Letters and Months"](t)||o["Halfwidth and Fullwidth Forms"](t)||o.Hiragana(t)||o["Ideographic Description Characters"](t)||o["Kangxi Radicals"](t)||o["Katakana Phonetic Extensions"](t)||o.Katakana(t)||o["Vertical Forms"](t)||o["Yi Radicals"](t)||o["Yi Syllables"](t)))},e.charHasUprightVerticalOrientation=function(t){return!!(746===t||747===t||!(t<4352)&&(o["Bopomofo Extended"](t)||o.Bopomofo(t)||o["CJK Compatibility Forms"](t)&&!(t>=65097&&t<=65103)||o["CJK Compatibility Ideographs"](t)||o["CJK Compatibility"](t)||o["CJK Radicals Supplement"](t)||o["CJK Strokes"](t)||!(!o["CJK Symbols and Punctuation"](t)||t>=12296&&t<=12305||t>=12308&&t<=12319||12336===t)||o["CJK Unified Ideographs Extension A"](t)||o["CJK Unified Ideographs"](t)||o["Enclosed CJK Letters and Months"](t)||o["Hangul Compatibility Jamo"](t)||o["Hangul Jamo Extended-A"](t)||o["Hangul Jamo Extended-B"](t)||o["Hangul Jamo"](t)||o["Hangul Syllables"](t)||o.Hiragana(t)||o["Ideographic Description Characters"](t)||o.Kanbun(t)||o["Kangxi Radicals"](t)||o["Katakana Phonetic Extensions"](t)||o.Katakana(t)&&12540!==t||!(!o["Halfwidth and Fullwidth Forms"](t)||65288===t||65289===t||65293===t||t>=65306&&t<=65310||65339===t||65341===t||65343===t||t>=65371&&t<=65503||65507===t||t>=65512&&t<=65519)||!(!o["Small Form Variants"](t)||t>=65112&&t<=65118||t>=65123&&t<=65126)||o["Unified Canadian Aboriginal Syllabics"](t)||o["Unified Canadian Aboriginal Syllabics Extended"](t)||o["Vertical Forms"](t)||o["Yijing Hexagram Symbols"](t)||o["Yi Syllables"](t)||o["Yi Radicals"](t)))},e.charHasNeutralVerticalOrientation=function(t){return!!(o["Latin-1 Supplement"](t)&&(167===t||169===t||174===t||177===t||188===t||189===t||190===t||215===t||247===t)||o["General Punctuation"](t)&&(8214===t||8224===t||8225===t||8240===t||8241===t||8251===t||8252===t||8258===t||8263===t||8264===t||8265===t||8273===t)||o["Letterlike Symbols"](t)||o["Number Forms"](t)||o["Miscellaneous Technical"](t)&&(t>=8960&&t<=8967||t>=8972&&t<=8991||t>=8996&&t<=9e3||9003===t||t>=9085&&t<=9114||t>=9150&&t<=9165||9167===t||t>=9169&&t<=9179||t>=9186&&t<=9215)||o["Control Pictures"](t)&&9251!==t||o["Optical Character Recognition"](t)||o["Enclosed Alphanumerics"](t)||o["Geometric Shapes"](t)||o["Miscellaneous Symbols"](t)&&!(t>=9754&&t<=9759)||o["Miscellaneous Symbols and Arrows"](t)&&(t>=11026&&t<=11055||t>=11088&&t<=11097||t>=11192&&t<=11243)||o["CJK Symbols and Punctuation"](t)||o.Katakana(t)||o["Private Use Area"](t)||o["CJK Compatibility Forms"](t)||o["Small Form Variants"](t)||o["Halfwidth and Fullwidth Forms"](t)||8734===t||8756===t||8757===t||t>=9984&&t<=10087||t>=10102&&t<=10131||65532===t||65533===t)},e.charHasRotatedVerticalOrientation=function(t){return!(e.charHasUprightVerticalOrientation(t)||e.charHasNeutralVerticalOrientation(t))}},6693:function(t,e,n){function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function i(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var a=n(8583),s={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},u=i((function t(e,n){o(this,t),this._structArray=e,this._pos1=n*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8})),l=function(){function t(){o(this,t),this.isTransferred=!1,this.capacity=-1,this.resize(0)}return i(t,[{key:"_trim",value:function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())}},{key:"clear",value:function(){this.length=0}},{key:"resize",value:function(t){a(!this.isTransferred),this.reserve(t),this.length=t}},{key:"reserve",value:function(t){if(t>this.capacity){this.capacity=Math.max(t,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var e=this.uint8;this._refreshViews(),e&&this.uint8.set(e)}}},{key:"_refreshViews",value:function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")}}],[{key:"serialize",value:function(t,e){return a(!t.isTransferred),t._trim(),e&&(t.isTransferred=!0,e.push(t.arrayBuffer)),{length:t.length,arrayBuffer:t.arrayBuffer}}},{key:"deserialize",value:function(t){var e=Object.create(this.prototype);return e.arrayBuffer=t.arrayBuffer,e.length=t.length,e.capacity=t.arrayBuffer.byteLength/e.bytesPerElement,e._refreshViews(),e}}]),t}();function c(t){return s[t].BYTES_PER_ELEMENT}function f(t,e){return Math.ceil(t/e)*e}t.exports.StructArray=l,t.exports.Struct=u,t.exports.viewTypes=s,t.exports.createLayout=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=0,r=0,i=t.map((function(t){a(t.name.length);var i=c(t.type),o=n=f(n,Math.max(e,i)),s=t.components||1;return r=Math.max(r,i),n+=i*s,{name:t.name,type:t.type,components:s,offset:o}})),o=f(n,Math.max(r,e));return{members:i,size:o,alignment:e}}},7359:function(t){t.exports=function(t,e){return e.replace(/{([^{}]+)}/g,(function(e,n){return n in t?String(t[n]):""})).replace(/FORMAT_NUMBER\\(([^\\)]+)\\)/g,(function(t,e){return function(t){t=t.split(",");var e=parseFloat(t[0]);return t[2]&&(e*=parseFloat(t[2])),e<1e3?Math.round(e):e<1e5?(e/1e3).toFixed(1)+"K":e<1e6?Math.round(e/1e3)+"K":e<1e9?(e/1e6).toFixed(2)+"M":e<1e12?(e=Math.round(e/1e6).toFixed(0)).slice(0,-3)+","+e.slice(-4,-1)+"M":"HUGE_NUM"}(e)}))}},8316:function(t,e,n){function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}var o=n(9874),a=n(3892);n(5550),e.easeCubicInOut=function(t){if(t<=0)return 0;if(t>=1)return 1;var e=t*t,n=e*t;return 4*(t<.5?n:3*(t-e)+n-.75)},e.bezier=function(t,e,n,r){var i=new o(t,e,n,r);return function(t){return i.solve(t)}},e.ease=e.bezier(.25,.1,.25,1),e.clamp=function(t,e,n){return Math.min(n,Math.max(e,t))},e.wrap=function(t,e,n){var r=n-e,i=((t-e)%r+r)%r+e;return i===e?n:i},e.asyncAll=function(t,e,n){if(!t.length)return n(null,[]);var r=t.length,i=new Array(t.length),o=null;t.forEach((function(t,a){e(t,(function(t,e){t&&(o=t),i[a]=e,0==--r&&n(o,i)}))}))},e.values=function(t){var e=[];for(var n in t)e.push(t[n]);return e},e.keysDifference=function(t,e){var n=[];for(var r in t)r in e||n.push(r);return n},e.extend=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];for(var i=0,o=n;i<o.length;i++){var a=o[i];for(var s in a)t[s]=a[s]}return t},e.pick=function(t,e){for(var n={},r=0;r<e.length;r++){var i=e[r];i in t&&(n[i]=t[i])}return n};var s=1;e.uniqueId=function(){return s++},e.bindAll=function(t,e){t.forEach((function(t){e[t]&&(e[t]=e[t].bind(e))}))},e.getCoordinatesCenter=function(t){for(var e=1/0,n=1/0,r=-1/0,i=-1/0,o=0;o<t.length;o++)e=Math.min(e,t[o].column),n=Math.min(n,t[o].row),r=Math.max(r,t[o].column),i=Math.max(i,t[o].row);var s=r-e,u=i-n,l=Math.max(s,u),c=Math.max(0,Math.floor(-Math.log(l)/Math.LN2));return new a((e+r)/2,(n+i)/2,0).zoomTo(c)},e.endsWith=function(t,e){return-1!==t.indexOf(e,t.length-e.length)},e.mapObject=function(t,e,n){var r={};for(var i in t)r[i]=e.call(n||this,t[i],i,t);return r},e.filterObject=function(t,e,n){var r={};for(var i in t)e.call(n||this,t[i],i,t)&&(r[i]=t[i]);return r},e.deepEqual=n(2688),e.clone=function(t){return Array.isArray(t)?t.map(e.clone):"object"===i(t)&&t?e.mapObject(t,e.clone):t},e.arraysIntersect=function(t,e){for(var n=0;n<t.length;n++)if(e.indexOf(t[n])>=0)return!0;return!1};var u={};e.warnOnce=function(t){u[t]||("undefined"!=typeof console&&console.warn(t),u[t]=!0)},e.isCounterClockwise=function(t,e,n){return(n.y-t.y)*(e.x-t.x)>(e.y-t.y)*(n.x-t.x)},e.calculateSignedArea=function(t){for(var e,n,r=0,i=0,o=t.length,a=o-1;i<o;a=i++)e=t[i],r+=((n=t[a]).x-e.x)*(e.y+n.y);return r},e.isClosedPolygon=function(t){if(t.length<4)return!1;var n=t[0],r=t[t.length-1];return!(Math.abs(n.x-r.x)>0||Math.abs(n.y-r.y)>0)&&Math.abs(e.calculateSignedArea(t))>.01},e.sphericalToCartesian=function(t){var e,n,i=(n=3,function(t){if(Array.isArray(t))return t}(e=t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(t){s=!0,i=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,n)||function(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=i[0],a=i[1],s=i[2];return a+=90,a*=Math.PI/180,s*=Math.PI/180,{x:o*Math.cos(a)*Math.sin(s),y:o*Math.sin(a)*Math.sin(s),z:o*Math.cos(s)}},e.parseCacheControl=function(t){var e={};if(t.replace(/(?:^|(?:\\s*\\,\\s*))([^\\x00-\\x20\\(\\)<>@\\,;\\:\\\\"\\/\\[\\]\\?\\=\\{\\}\\x7F]+)(?:\\=(?:([^\\x00-\\x20\\(\\)<>@\\,;\\:\\\\"\\/\\[\\]\\?\\=\\{\\}\\x7F]+)|(?:\\"((?:[^"\\\\]|\\\\.)*)\\")))?/g,(function(t,n,r,i){var o=r||i;return e[n]=!o||o.toLowerCase(),""})),e["max-age"]){var n=parseInt(e["max-age"],10);isNaN(n)?delete e["max-age"]:e["max-age"]=n}return e}},3076:function(t){function e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var n=function(){function t(e,n,r,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.type="Feature",this._vectorTileFeature=e,e._z=n,e._x=r,e._y=i,this.properties=e.properties,null!=e.id&&(this.id=e.id)}var n,r;return n=t,(r=[{key:"geometry",get:function(){return void 0===this._geometry&&(this._geometry=this._vectorTileFeature.toGeoJSON(this._vectorTileFeature._x,this._vectorTileFeature._y,this._vectorTileFeature._z).geometry),this._geometry},set:function(t){this._geometry=t}},{key:"toJSON",value:function(){var t={geometry:this.geometry};for(var e in this)"_geometry"!==e&&"_vectorTileFeature"!==e&&(t[e]=this[e]);return t}}])&&e(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),t}();t.exports=n},7899:function(t,e,n){var r=n(6584);t.exports=function(e){for(var n="",i=0;i<e.length;i++){var o=e.charCodeAt(i+1)||null,a=e.charCodeAt(i-1)||null;o&&r.charHasRotatedVerticalOrientation(o)&&!t.exports.lookup[e[i+1]]||a&&r.charHasRotatedVerticalOrientation(a)&&!t.exports.lookup[e[i-1]]||!t.exports.lookup[e[i]]?n+=e[i]:n+=t.exports.lookup[e[i]]}return n},t.exports.lookup={"!":"︕","#":"#",$:"$","%":"%","&":"&","(":"︵",")":"︶","*":"*","+":"+",",":"︐","-":"︲",".":"・","/":"/",":":"︓",";":"︔","<":"︿","=":"=",">":"﹀","?":"︖","@":"@","[":"﹇","\\\\":"\","]":"﹈","^":"^",_:"︳","`":"`","{":"︷","|":"―","}":"︸","~":"~","¢":"¢","£":"£","¥":"¥","¦":"¦","¬":"¬","¯":" ̄","–":"︲","—":"︱","‘":"﹃","’":"﹄","“":"﹁","”":"﹂","…":"︙","‧":"・","₩":"₩","、":"︑","。":"︒","〈":"︿","〉":"﹀","《":"︽","》":"︾","「":"﹁","」":"﹂","『":"﹃","』":"﹄","【":"︻","】":"︼","〔":"︹","〕":"︺","〖":"︗","〗":"︘","!":"︕","(":"︵",")":"︶",",":"︐","-":"︲",".":"・",":":"︓",";":"︔","<":"︿",">":"﹀","?":"︖","[":"﹇","]":"﹈","_":"︳","{":"︷","|":"―","}":"︸","⦅":"︵","⦆":"︶","。":"︒","「":"﹁","」":"﹂"}},1786:function(t,e,n){function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var o=n(8583),a=n(1412),s=n(6016),u=n(8266),l=u.StylePropertyFunction,c=u.StyleExpression,f=u.StyleExpressionWithErrorHandling,p=u.ZoomDependentExpression,h=u.ZoomConstantExpression,y=n(5827).CompoundExpression,d=n(6416),v=n(1362).ImageData,m={};function g(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};o(!m[t],"".concat(t," is already registered.")),Object.defineProperty(e,"_classRegistryKey",{value:t,writeable:!1}),m[t]={klass:e,omit:n.omit||[],shallow:n.shallow||[]}}for(var b in g("Object",Object),a.serialize=function(t,e){var n=t.toArrayBuffer();return e&&e.push(n),n},a.deserialize=function(t){return new a(t)},g("Grid",a),g("Color",s),g("StylePropertyFunction",l),g("StyleExpression",c,{omit:["_evaluator"]}),g("StyleExpressionWithErrorHandling",f,{omit:["_evaluator"]}),g("ZoomDependentExpression",p),g("ZoomConstantExpression",h),g("CompoundExpression",y,{omit:["_evaluate"]}),d)d[b]._classRegistryKey||g("Expression_".concat(b),d[b]);t.exports={register:g,serialize:function t(e,n){if(null==e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||e instanceof Boolean||e instanceof Number||e instanceof String||e instanceof Date||e instanceof RegExp)return e;if(e instanceof ArrayBuffer)return n&&n.push(e),e;if(ArrayBuffer.isView(e)){var a=e;return n&&n.push(a.buffer),a}if(e instanceof v)return n&&n.push(e.data.buffer),e;if(Array.isArray(e)){var s,u=[],l=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}(e);try{for(l.s();!(s=l.n()).done;){var c=s.value;u.push(t(c,n))}}catch(t){l.e(t)}finally{l.f()}return u}if("object"===r(e)){var f=e.constructor,p=f._classRegistryKey;if(!p)throw new Error("can\'t serialize object of unregistered class");o(m[p]);var h={};if(f.serialize)h._serialized=f.serialize(e,n);else for(var y in e)if(e.hasOwnProperty(y)&&!(m[p].omit.indexOf(y)>=0)){var d=e[y];h[y]=m[p].shallow.indexOf(y)>=0?d:t(d,n)}return{name:p,properties:h}}throw new Error("can\'t serialize object of type ".concat(r(e)))},deserialize:function t(e){if(null==e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||e instanceof Boolean||e instanceof Number||e instanceof String||e instanceof Date||e instanceof RegExp||e instanceof ArrayBuffer||ArrayBuffer.isView(e)||e instanceof v)return e;if(Array.isArray(e))return e.map((function(e){return t(e)}));if("object"===r(e)){var n=e,i=n.name,o=n.properties;if(!i)throw new Error("can\'t deserialize object of anonymous class");var a=m[i].klass;if(!a)throw new Error("can\'t deserialize unregistered class ".concat(i));if(a.deserialize)return a.deserialize(o._serialized);for(var s=Object.create(a.prototype),u=0,l=Object.keys(o);u<l.length;u++){var c=l[u];s[c]=m[i].shallow.indexOf(c)>=0?o[c]:t(o[c])}return s}throw new Error("can\'t deserialize object of type ".concat(r(e)))}}},5694:function(t,e){var n={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],rebeccapurple:[102,51,153,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function r(t){return(t=Math.round(t))<0?0:t>255?255:t}function i(t){return t<0?0:t>1?1:t}function o(t){return"%"===t[t.length-1]?r(parseFloat(t)/100*255):r(parseInt(t))}function a(t){return"%"===t[t.length-1]?i(parseFloat(t)/100):i(parseFloat(t))}function s(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}try{e.parseCSSColor=function(t){var e,i=t.replace(/ /g,"").toLowerCase();if(i in n)return n[i].slice();if("#"===i[0])return 4===i.length?(e=parseInt(i.substr(1),16))>=0&&e<=4095?[(3840&e)>>4|(3840&e)>>8,240&e|(240&e)>>4,15&e|(15&e)<<4,1]:null:7===i.length&&(e=parseInt(i.substr(1),16))>=0&&e<=16777215?[(16711680&e)>>16,(65280&e)>>8,255&e,1]:null;var u=i.indexOf("("),l=i.indexOf(")");if(-1!==u&&l+1===i.length){var c=i.substr(0,u),f=i.substr(u+1,l-(u+1)).split(","),p=1;switch(c){case"rgba":if(4!==f.length)return null;p=a(f.pop());case"rgb":return 3!==f.length?null:[o(f[0]),o(f[1]),o(f[2]),p];case"hsla":if(4!==f.length)return null;p=a(f.pop());case"hsl":if(3!==f.length)return null;var h=(parseFloat(f[0])%360+360)%360/360,y=a(f[1]),d=a(f[2]),v=d<=.5?d*(y+1):d+y-d*y,m=2*d-v;return[r(255*s(m,v,h+1/3)),r(255*s(m,v,h)),r(255*s(m,v,h-1/3)),p];default:return null}}return null}}catch(t){}},9187:function(t){"use strict";function e(t,e,o){o=o||2;var a,s,u,f,h,y,d,v=e&&e.length,m=v?e[0]*o:t.length,g=n(t,0,m,o,!0),b=[];if(!g||g.next===g.prev)return b;if(v&&(g=function(t,e,i,o){var a,s,u,f=[];for(a=0,s=e.length;a<s;a++)(u=n(t,e[a]*o,a<s-1?e[a+1]*o:t.length,o,!1))===u.next&&(u.steiner=!0),f.push(p(u));for(f.sort(l),a=0;a<f.length;a++)c(f[a],i),i=r(i,i.next);return i}(t,e,g,o)),t.length>80*o){a=u=t[0],s=f=t[1];for(var x=o;x<m;x+=o)(h=t[x])<a&&(a=h),(y=t[x+1])<s&&(s=y),h>u&&(u=h),y>f&&(f=y);d=0!==(d=Math.max(u-a,f-s))?1/d:0}return i(g,b,o,a,s,d),b}function n(t,e,n,r,i){var o,a;if(i===S(t,e,n,r)>0)for(o=e;o<n;o+=r)a=x(o,t[o],t[o+1],a);else for(o=n-r;o>=e;o-=r)a=x(o,t[o],t[o+1],a);return a&&v(a,a.next)&&(w(a),a=a.next),a}function r(t,e){if(!t)return t;e||(e=t);var n,r=t;do{if(n=!1,r.steiner||!v(r,r.next)&&0!==d(r.prev,r,r.next))r=r.next;else{if(w(r),(r=e=r.prev)===r.next)break;n=!0}}while(n||r!==e);return e}function i(t,e,n,l,c,p,h){if(t){!h&&p&&function(t,e,n,r){var i=t;do{null===i.z&&(i.z=f(i.x,i.y,e,n,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,function(t){var e,n,r,i,o,a,s,u,l=1;do{for(n=t,t=null,o=null,a=0;n;){for(a++,r=n,s=0,e=0;e<l&&(s++,r=r.nextZ);e++);for(u=l;s>0||u>0&&r;)0!==s&&(0===u||!r||n.z<=r.z)?(i=n,n=n.nextZ,s--):(i=r,r=r.nextZ,u--),o?o.nextZ=i:t=i,i.prevZ=o,o=i;n=r}o.nextZ=null,l*=2}while(a>1)}(i)}(t,l,c,p);for(var y,d,v=t;t.prev!==t.next;)if(y=t.prev,d=t.next,p?a(t,l,c,p):o(t))e.push(y.i/n),e.push(t.i/n),e.push(d.i/n),w(t),t=d.next,v=d.next;else if((t=d)===v){h?1===h?i(t=s(t,e,n),e,n,l,c,p,2):2===h&&u(t,e,n,l,c,p):i(r(t),e,n,l,c,p,1);break}}}function o(t){var e=t.prev,n=t,r=t.next;if(d(e,n,r)>=0)return!1;for(var i=t.next.next;i!==t.prev;){if(h(e.x,e.y,n.x,n.y,r.x,r.y,i.x,i.y)&&d(i.prev,i,i.next)>=0)return!1;i=i.next}return!0}function a(t,e,n,r){var i=t.prev,o=t,a=t.next;if(d(i,o,a)>=0)return!1;for(var s=i.x<o.x?i.x<a.x?i.x:a.x:o.x<a.x?o.x:a.x,u=i.y<o.y?i.y<a.y?i.y:a.y:o.y<a.y?o.y:a.y,l=i.x>o.x?i.x>a.x?i.x:a.x:o.x>a.x?o.x:a.x,c=i.y>o.y?i.y>a.y?i.y:a.y:o.y>a.y?o.y:a.y,p=f(s,u,e,n,r),y=f(l,c,e,n,r),v=t.prevZ,m=t.nextZ;v&&v.z>=p&&m&&m.z<=y;){if(v!==t.prev&&v!==t.next&&h(i.x,i.y,o.x,o.y,a.x,a.y,v.x,v.y)&&d(v.prev,v,v.next)>=0)return!1;if(v=v.prevZ,m!==t.prev&&m!==t.next&&h(i.x,i.y,o.x,o.y,a.x,a.y,m.x,m.y)&&d(m.prev,m,m.next)>=0)return!1;m=m.nextZ}for(;v&&v.z>=p;){if(v!==t.prev&&v!==t.next&&h(i.x,i.y,o.x,o.y,a.x,a.y,v.x,v.y)&&d(v.prev,v,v.next)>=0)return!1;v=v.prevZ}for(;m&&m.z<=y;){if(m!==t.prev&&m!==t.next&&h(i.x,i.y,o.x,o.y,a.x,a.y,m.x,m.y)&&d(m.prev,m,m.next)>=0)return!1;m=m.nextZ}return!0}function s(t,e,n){var r=t;do{var i=r.prev,o=r.next.next;!v(i,o)&&m(i,r,r.next,o)&&g(i,o)&&g(o,i)&&(e.push(i.i/n),e.push(r.i/n),e.push(o.i/n),w(r),w(r.next),r=t=o),r=r.next}while(r!==t);return r}function u(t,e,n,o,a,s){var u=t;do{for(var l=u.next.next;l!==u.prev;){if(u.i!==l.i&&y(u,l)){var c=b(u,l);return u=r(u,u.next),c=r(c,c.next),i(u,e,n,o,a,s),void i(c,e,n,o,a,s)}l=l.next}u=u.next}while(u!==t)}function l(t,e){return t.x-e.x}function c(t,e){if(e=function(t,e){var n,r=e,i=t.x,o=t.y,a=-1/0;do{if(o<=r.y&&o>=r.next.y&&r.next.y!==r.y){var s=r.x+(o-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(s<=i&&s>a){if(a=s,s===i){if(o===r.y)return r;if(o===r.next.y)return r.next}n=r.x<r.next.x?r:r.next}}r=r.next}while(r!==e);if(!n)return null;if(i===a)return n.prev;var u,l=n,c=n.x,f=n.y,p=1/0;for(r=n.next;r!==l;)i>=r.x&&r.x>=c&&i!==r.x&&h(o<f?i:a,o,c,f,o<f?a:i,o,r.x,r.y)&&((u=Math.abs(o-r.y)/(i-r.x))<p||u===p&&r.x>n.x)&&g(r,t)&&(n=r,p=u),r=r.next;return n}(t,e),e){var n=b(e,t);r(n,n.next)}}function f(t,e,n,r,i){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-n)*i)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-r)*i)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function p(t){var e=t,n=t;do{(e.x<n.x||e.x===n.x&&e.y<n.y)&&(n=e),e=e.next}while(e!==t);return n}function h(t,e,n,r,i,o,a,s){return(i-a)*(e-s)-(t-a)*(o-s)>=0&&(t-a)*(r-s)-(n-a)*(e-s)>=0&&(n-a)*(o-s)-(i-a)*(r-s)>=0}function y(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var n=t;do{if(n.i!==t.i&&n.next.i!==t.i&&n.i!==e.i&&n.next.i!==e.i&&m(n,n.next,t,e))return!0;n=n.next}while(n!==t);return!1}(t,e)&&g(t,e)&&g(e,t)&&function(t,e){var n=t,r=!1,i=(t.x+e.x)/2,o=(t.y+e.y)/2;do{n.y>o!=n.next.y>o&&n.next.y!==n.y&&i<(n.next.x-n.x)*(o-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==t);return r}(t,e)}function d(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function v(t,e){return t.x===e.x&&t.y===e.y}function m(t,e,n,r){return!!(v(t,e)&&v(n,r)||v(t,r)&&v(n,e))||d(t,e,n)>0!=d(t,e,r)>0&&d(n,r,t)>0!=d(n,r,e)>0}function g(t,e){return d(t.prev,t,t.next)<0?d(t,e,t.next)>=0&&d(t,t.prev,e)>=0:d(t,e,t.prev)<0||d(t,t.next,e)<0}function b(t,e){var n=new k(t.i,t.x,t.y),r=new k(e.i,e.x,e.y),i=t.next,o=e.prev;return t.next=e,e.prev=t,n.next=i,i.prev=n,r.next=n,n.prev=r,o.next=r,r.prev=o,r}function x(t,e,n,r){var i=new k(t,e,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function w(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function k(t,e,n){this.i=t,this.x=e,this.y=n,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function S(t,e,n,r){for(var i=0,o=e,a=n-r;o<n;o+=r)i+=(t[a]-t[o])*(t[o+1]+t[a+1]),a=o;return i}t.exports=e,t.exports.default=e,e.deviation=function(t,e,n,r){var i=e&&e.length,o=i?e[0]*n:t.length,a=Math.abs(S(t,0,o,n));if(i)for(var s=0,u=e.length;s<u;s++){var l=e[s]*n,c=s<u-1?e[s+1]*n:t.length;a-=Math.abs(S(t,l,c,n))}var f=0;for(s=0;s<r.length;s+=3){var p=r[s]*n,h=r[s+1]*n,y=r[s+2]*n;f+=Math.abs((t[p]-t[y])*(t[h+1]-t[p+1])-(t[p]-t[h])*(t[y+1]-t[p+1]))}return 0===a&&0===f?0:Math.abs((f-a)/a)},e.flatten=function(t){for(var e=t[0][0].length,n={vertices:[],holes:[],dimensions:e},r=0,i=0;i<t.length;i++){for(var o=0;o<t[i].length;o++)for(var a=0;a<e;a++)n.vertices.push(t[i][o][a]);i>0&&(r+=t[i-1].length,n.holes.push(r))}return n}},7486:function(t,e,n){var r=n(1795);function i(t,e){return function(n){return t(n,e)}}function o(t,e){e=!!e,t[0]=a(t[0],e);for(var n=1;n<t.length;n++)t[n]=a(t[n],!e);return t}function a(t,e){return function(t){return r.ring(t)>=0}(t)===e?t:t.reverse()}t.exports=function t(e,n){switch(e&&e.type||null){case"FeatureCollection":return e.features=e.features.map(i(t,n)),e;case"Feature":return e.geometry=t(e.geometry,n),e;case"Polygon":case"MultiPolygon":return function(t,e){return"Polygon"===t.type?t.coordinates=o(t.coordinates,e):"MultiPolygon"===t.type&&(t.coordinates=t.coordinates.map(i(o,e))),t}(e,n);default:return e}}},8592:function(t,e,n){"use strict";function r(t,e,n,o){for(var a,s=o,u=n-e>>1,l=n-e,c=t[e],f=t[e+1],p=t[n],h=t[n+1],y=e+3;y<n;y+=3){var d=i(t[y],t[y+1],c,f,p,h);if(d>s)a=y,s=d;else if(d===s){var v=Math.abs(y-u);v<l&&(a=y,l=v)}}s>o&&(a-e>3&&r(t,e,a,o),t[a+2]=s,n-a>3&&r(t,a,n,o))}function i(t,e,n,r,i,o){var a=i-n,s=o-r;if(0!==a||0!==s){var u=((t-n)*a+(e-r)*s)/(a*a+s*s);u>1?(n=i,r=o):u>0&&(n+=a*u,r+=s*u)}return(a=t-n)*a+(s=e-r)*s}function o(t,e,n,r){var i={id:void 0===t?null:t,type:e,geometry:n,tags:r,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(t){var e=t.geometry,n=t.type;if("Point"===n||"MultiPoint"===n||"LineString"===n)a(t,e);else if("Polygon"===n||"MultiLineString"===n)for(var r=0;r<e.length;r++)a(t,e[r]);else if("MultiPolygon"===n)for(r=0;r<e.length;r++)for(var i=0;i<e[r].length;i++)a(t,e[r][i])}(i),i}function a(t,e){for(var n=0;n<e.length;n+=3)t.minX=Math.min(t.minX,e[n]),t.minY=Math.min(t.minY,e[n+1]),t.maxX=Math.max(t.maxX,e[n]),t.maxY=Math.max(t.maxY,e[n+1])}function s(t,e,n,r){if(e.geometry){var i=e.geometry.coordinates,a=e.geometry.type,f=Math.pow(n.tolerance/((1<<n.maxZoom)*n.extent),2),p=[],h=e.id;if(n.promoteId?h=e.properties[n.promoteId]:n.generateId&&(h=r||0),"Point"===a)u(i,p);else if("MultiPoint"===a)for(var y=0;y<i.length;y++)u(i[y],p);else if("LineString"===a)l(i,p,f,!1);else if("MultiLineString"===a){if(n.lineMetrics){for(y=0;y<i.length;y++)p=[],l(i[y],p,f,!1),t.push(o(h,"LineString",p,e.properties));return}c(i,p,f,!1)}else if("Polygon"===a)c(i,p,f,!0);else{if("MultiPolygon"!==a){if("GeometryCollection"===a){for(y=0;y<e.geometry.geometries.length;y++)s(t,{id:h,geometry:e.geometry.geometries[y],properties:e.properties},n,r);return}throw new Error("Input data is not a valid GeoJSON object.")}for(y=0;y<i.length;y++){var d=[];c(i[y],d,f,!0),p.push(d)}}t.push(o(h,a,p,e.properties))}}function u(t,e){e.push(f(t[0])),e.push(p(t[1])),e.push(0)}function l(t,e,n,i){for(var o,a,s=0,u=0;u<t.length;u++){var l=f(t[u][0]),c=p(t[u][1]);e.push(l),e.push(c),e.push(0),u>0&&(s+=i?(o*c-l*a)/2:Math.sqrt(Math.pow(l-o,2)+Math.pow(c-a,2))),o=l,a=c}var h=e.length-3;e[2]=1,r(e,0,h,n),e[h+2]=1,e.size=Math.abs(s),e.start=0,e.end=e.size}function c(t,e,n,r){for(var i=0;i<t.length;i++){var o=[];l(t[i],o,n,r),e.push(o)}}function f(t){return t/360+.5}function p(t){var e=Math.sin(t*Math.PI/180),n=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return n<0?0:n>1?1:n}function h(t,e,n,r,i,a,s,u){if(r/=e,a>=(n/=e)&&s<r)return t;if(s<n||a>=r)return null;for(var l=[],c=0;c<t.length;c++){var f=t[c],p=f.geometry,h=f.type,v=0===i?f.minX:f.minY,g=0===i?f.maxX:f.maxY;if(v>=n&&g<r)l.push(f);else if(!(g<n||v>=r)){var b=[];if("Point"===h||"MultiPoint"===h)y(p,b,n,r,i);else if("LineString"===h)d(p,b,n,r,i,!1,u.lineMetrics);else if("MultiLineString"===h)m(p,b,n,r,i,!1);else if("Polygon"===h)m(p,b,n,r,i,!0);else if("MultiPolygon"===h)for(var x=0;x<p.length;x++){var w=[];m(p[x],w,n,r,i,!0),w.length&&b.push(w)}if(b.length){if(u.lineMetrics&&"LineString"===h){for(x=0;x<b.length;x++)l.push(o(f.id,h,b[x],f.tags));continue}"LineString"!==h&&"MultiLineString"!==h||(1===b.length?(h="LineString",b=b[0]):h="MultiLineString"),"Point"!==h&&"MultiPoint"!==h||(h=3===b.length?"Point":"MultiPoint"),l.push(o(f.id,h,b,f.tags))}}}return l.length?l:null}function y(t,e,n,r,i){for(var o=0;o<t.length;o+=3){var a=t[o+i];a>=n&&a<=r&&(e.push(t[o]),e.push(t[o+1]),e.push(t[o+2]))}}function d(t,e,n,r,i,o,a){for(var s,u,l=v(t),c=0===i?b:x,f=t.start,p=0;p<t.length-3;p+=3){var h=t[p],y=t[p+1],d=t[p+2],m=t[p+3],w=t[p+4],k=0===i?h:y,S=0===i?m:w,_=!1;a&&(s=Math.sqrt(Math.pow(h-m,2)+Math.pow(y-w,2))),k<n?S>n&&(u=c(l,h,y,m,w,n),a&&(l.start=f+s*u)):k>r?S<r&&(u=c(l,h,y,m,w,r),a&&(l.start=f+s*u)):g(l,h,y,d),S<n&&k>=n&&(u=c(l,h,y,m,w,n),_=!0),S>r&&k<=r&&(u=c(l,h,y,m,w,r),_=!0),!o&&_&&(a&&(l.end=f+s*u),e.push(l),l=v(t)),a&&(f+=s)}var A=t.length-3;h=t[A],y=t[A+1],d=t[A+2],(k=0===i?h:y)>=n&&k<=r&&g(l,h,y,d),A=l.length-3,o&&A>=3&&(l[A]!==l[0]||l[A+1]!==l[1])&&g(l,l[0],l[1],l[2]),l.length&&e.push(l)}function v(t){var e=[];return e.size=t.size,e.start=t.start,e.end=t.end,e}function m(t,e,n,r,i,o){for(var a=0;a<t.length;a++)d(t[a],e,n,r,i,o,!1)}function g(t,e,n,r){t.push(e),t.push(n),t.push(r)}function b(t,e,n,r,i,o){var a=(o-e)/(r-e);return t.push(o),t.push(n+(i-n)*a),t.push(1),a}function x(t,e,n,r,i,o){var a=(o-n)/(i-n);return t.push(e+(r-e)*a),t.push(o),t.push(1),a}function w(t,e){for(var n=[],r=0;r<t.length;r++){var i,a=t[r],s=a.type;if("Point"===s||"MultiPoint"===s||"LineString"===s)i=k(a.geometry,e);else if("MultiLineString"===s||"Polygon"===s){i=[];for(var u=0;u<a.geometry.length;u++)i.push(k(a.geometry[u],e))}else if("MultiPolygon"===s)for(i=[],u=0;u<a.geometry.length;u++){for(var l=[],c=0;c<a.geometry[u].length;c++)l.push(k(a.geometry[u][c],e));i.push(l)}n.push(o(a.id,s,i,a.tags))}return n}function k(t,e){var n=[];n.size=t.size,void 0!==t.start&&(n.start=t.start,n.end=t.end);for(var r=0;r<t.length;r+=3)n.push(t[r]+e,t[r+1],t[r+2]);return n}function S(t,e){if(t.transformed)return t;var n,r,i,o=1<<t.z,a=t.x,s=t.y;for(n=0;n<t.features.length;n++){var u=t.features[n],l=u.geometry,c=u.type;if(u.geometry=[],1===c)for(r=0;r<l.length;r+=2)u.geometry.push(_(l[r],l[r+1],e,o,a,s));else for(r=0;r<l.length;r++){var f=[];for(i=0;i<l[r].length;i+=2)f.push(_(l[r][i],l[r][i+1],e,o,a,s));u.geometry.push(f)}}return t.transformed=!0,t}function _(t,e,n,r,i,o){return[Math.round(n*(t*r-i)),Math.round(n*(e*r-o))]}function A(t,e,n,r,i){for(var o=e===i.maxZoom?0:i.tolerance/((1<<e)*i.extent),a={features:[],numPoints:0,numSimplified:0,numFeatures:0,source:null,x:n,y:r,z:e,transformed:!1,minX:2,minY:1,maxX:-1,maxY:0},s=0;s<t.length;s++){a.numFeatures++,j(a,t[s],o,i);var u=t[s].minX,l=t[s].minY,c=t[s].maxX,f=t[s].maxY;u<a.minX&&(a.minX=u),l<a.minY&&(a.minY=l),c>a.maxX&&(a.maxX=c),f>a.maxY&&(a.maxY=f)}return a}function j(t,e,n,r){var i=e.geometry,o=e.type,a=[];if("Point"===o||"MultiPoint"===o)for(var s=0;s<i.length;s+=3)a.push(i[s]),a.push(i[s+1]),t.numPoints++,t.numSimplified++;else if("LineString"===o)O(a,i,t,n,!1,!1);else if("MultiLineString"===o||"Polygon"===o)for(s=0;s<i.length;s++)O(a,i[s],t,n,"Polygon"===o,0===s);else if("MultiPolygon"===o)for(var u=0;u<i.length;u++){var l=i[u];for(s=0;s<l.length;s++)O(a,l[s],t,n,!0,0===s)}if(a.length){var c=e.tags||null;if("LineString"===o&&r.lineMetrics){for(var f in c={},e.tags)c[f]=e.tags[f];c.mapbox_clip_start=i.start/i.size,c.mapbox_clip_end=i.end/i.size}var p={geometry:a,type:"Polygon"===o||"MultiPolygon"===o?3:"LineString"===o||"MultiLineString"===o?2:1,tags:c};null!==e.id&&(p.id=e.id),t.features.push(p)}}function O(t,e,n,r,i,o){var a=r*r;if(r>0&&e.size<(i?a:r))n.numPoints+=e.length/3;else{for(var s=[],u=0;u<e.length;u+=3)(0===r||e[u+2]>a)&&(n.numSimplified++,s.push(e[u]),s.push(e[u+1])),n.numPoints++;i&&function(t,e){for(var n=0,r=0,i=t.length,o=i-2;r<i;o=r,r+=2)n+=(t[r]-t[o])*(t[r+1]+t[o+1]);if(n>0===e)for(r=0,i=t.length;r<i/2;r+=2){var a=t[r],s=t[r+1];t[r]=t[i-2-r],t[r+1]=t[i-1-r],t[i-2-r]=a,t[i-1-r]=s}}(s,o),t.push(s)}}function T(t,e){return new P(t,e)}function P(t,e){var n=(e=this.options=function(t,e){for(var n in e)t[n]=e[n];return t}(Object.create(this.options),e)).debug;if(n&&console.time("preprocess data"),e.maxZoom<0||e.maxZoom>24)throw new Error("maxZoom should be in the 0-24 range");if(e.promoteId&&e.generateId)throw new Error("promoteId and generateId cannot be used together.");var r=function(t,e){var n=[];if("FeatureCollection"===t.type)for(var r=0;r<t.features.length;r++)s(n,t.features[r],e,r);else"Feature"===t.type?s(n,t,e):s(n,{geometry:t},e);return n}(t,e);this.tiles={},this.tileCoords=[],n&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",e.indexMaxZoom,e.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),r=function(t,e){var n=e.buffer/e.extent,r=t,i=h(t,1,-1-n,n,0,-1,2,e),o=h(t,1,1-n,2+n,0,-1,2,e);return(i||o)&&(r=h(t,1,-n,1+n,0,-1,2,e)||[],i&&(r=w(i,1).concat(r)),o&&(r=r.concat(w(o,-1)))),r}(r,e),r.length&&this.splitTile(r,0,0,0),n&&(r.length&&console.log("features: %d, points: %d",this.tiles[0].numFeatures,this.tiles[0].numPoints),console.timeEnd("generate tiles"),console.log("tiles generated:",this.total,JSON.stringify(this.stats)))}function z(t,e,n){return 32*((1<<t)*n+e)+t}n.d(e,{Z:function(){return T}}),P.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},P.prototype.splitTile=function(t,e,n,r,i,o,a){for(var s=[t,e,n,r],u=this.options,l=u.debug;s.length;){r=s.pop(),n=s.pop(),e=s.pop(),t=s.pop();var c=1<<e,f=z(e,n,r),p=this.tiles[f];if(!p&&(l>1&&console.time("creation"),p=this.tiles[f]=A(t,e,n,r,u),this.tileCoords.push({z:e,x:n,y:r}),l)){l>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",e,n,r,p.numFeatures,p.numPoints,p.numSimplified),console.timeEnd("creation"));var y="z"+e;this.stats[y]=(this.stats[y]||0)+1,this.total++}if(p.source=t,i){if(e===u.maxZoom||e===i)continue;var d=1<<i-e;if(n!==Math.floor(o/d)||r!==Math.floor(a/d))continue}else if(e===u.indexMaxZoom||p.numPoints<=u.indexMaxPoints)continue;if(p.source=null,0!==t.length){l>1&&console.time("clipping");var v,m,g,b,x,w,k=.5*u.buffer/u.extent,S=.5-k,_=.5+k,j=1+k;v=m=g=b=null,x=h(t,c,n-k,n+_,0,p.minX,p.maxX,u),w=h(t,c,n+S,n+j,0,p.minX,p.maxX,u),t=null,x&&(v=h(x,c,r-k,r+_,1,p.minY,p.maxY,u),m=h(x,c,r+S,r+j,1,p.minY,p.maxY,u),x=null),w&&(g=h(w,c,r-k,r+_,1,p.minY,p.maxY,u),b=h(w,c,r+S,r+j,1,p.minY,p.maxY,u),w=null),l>1&&console.timeEnd("clipping"),s.push(v||[],e+1,2*n,2*r),s.push(m||[],e+1,2*n,2*r+1),s.push(g||[],e+1,2*n+1,2*r),s.push(b||[],e+1,2*n+1,2*r+1)}}},P.prototype.getTile=function(t,e,n){var r=this.options,i=r.extent,o=r.debug;if(t<0||t>24)return null;var a=1<<t,s=z(t,e=(e%a+a)%a,n);if(this.tiles[s])return S(this.tiles[s],i);o>1&&console.log("drilling down to z%d-%d-%d",t,e,n);for(var u,l=t,c=e,f=n;!u&&l>0;)l--,c=Math.floor(c/2),f=Math.floor(f/2),u=this.tiles[z(l,c,f)];return u&&u.source?(o>1&&console.log("found parent tile z%d-%d-%d",l,c,f),o>1&&console.time("drilling down"),this.splitTile(u.source,l,c,f,t,e,n),o>1&&console.timeEnd("drilling down"),this.tiles[s]?S(this.tiles[s],i):null):null}},1412:function(t){"use strict";function e(t,e,n){var r=this.cells=[];if(t instanceof ArrayBuffer){this.arrayBuffer=t;var i=new Int32Array(this.arrayBuffer);t=i[0],e=i[1],n=i[2],this.d=e+2*n;for(var o=0;o<this.d*this.d;o++){var a=i[3+o],s=i[3+o+1];r.push(a===s?null:i.subarray(a,s))}var u=i[3+r.length],l=i[3+r.length+1];this.keys=i.subarray(u,l),this.bboxes=i.subarray(l),this.insert=this._insertReadonly}else{this.d=e+2*n;for(var c=0;c<this.d*this.d;c++)r.push([]);this.keys=[],this.bboxes=[]}this.n=e,this.extent=t,this.padding=n,this.scale=e/t,this.uid=0;var f=n/e*t;this.min=-f,this.max=t+f}t.exports=e,e.prototype.insert=function(t,e,n,r,i){this._forEachCell(e,n,r,i,this._insertCell,this.uid++),this.keys.push(t),this.bboxes.push(e),this.bboxes.push(n),this.bboxes.push(r),this.bboxes.push(i)},e.prototype._insertReadonly=function(){throw"Cannot insert into a GridIndex created from an ArrayBuffer."},e.prototype._insertCell=function(t,e,n,r,i,o){this.cells[i].push(o)},e.prototype.query=function(t,e,n,r,i){var o=this.min,a=this.max;if(t<=o&&e<=o&&a<=n&&a<=r&&!i)return Array.prototype.slice.call(this.keys);var s=[];return this._forEachCell(t,e,n,r,this._queryCell,s,{},i),s},e.prototype._queryCell=function(t,e,n,r,i,o,a,s){var u=this.cells[i];if(null!==u)for(var l=this.keys,c=this.bboxes,f=0;f<u.length;f++){var p=u[f];if(void 0===a[p]){var h=4*p;(s?s(c[h+0],c[h+1],c[h+2],c[h+3]):t<=c[h+2]&&e<=c[h+3]&&n>=c[h+0]&&r>=c[h+1])?(a[p]=!0,o.push(l[p])):a[p]=!1}}},e.prototype._forEachCell=function(t,e,n,r,i,o,a,s){for(var u=this._convertToCellCoord(t),l=this._convertToCellCoord(e),c=this._convertToCellCoord(n),f=this._convertToCellCoord(r),p=u;p<=c;p++)for(var h=l;h<=f;h++){var y=this.d*h+p;if((!s||s(this._convertFromCellCoord(p),this._convertFromCellCoord(h),this._convertFromCellCoord(p+1),this._convertFromCellCoord(h+1)))&&i.call(this,t,e,n,r,y,o,a,s))return}},e.prototype._convertFromCellCoord=function(t){return(t-this.padding)/this.scale},e.prototype._convertToCellCoord=function(t){return Math.max(0,Math.min(this.d-1,Math.floor(t*this.scale)+this.padding))},e.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var t=this.cells,e=3+this.cells.length+1+1,n=0,r=0;r<this.cells.length;r++)n+=this.cells[r].length;var i=new Int32Array(e+n+this.keys.length+this.bboxes.length);i[0]=this.extent,i[1]=this.n,i[2]=this.padding;for(var o=e,a=0;a<t.length;a++){var s=t[a];i[3+a]=o,i.set(s,o),o+=s.length}return i[3+t.length]=o,i.set(this.keys,o),o+=this.keys.length,i[3+t.length+1]=o,i.set(this.bboxes,o),o+=this.bboxes.length,i.buffer}},645:function(t,e){e.read=function(t,e,n,r,i){var o,a,s=8*i-r-1,u=(1<<s)-1,l=u>>1,c=-7,f=n?i-1:0,p=n?-1:1,h=t[e+f];for(f+=p,o=h&(1<<-c)-1,h>>=-c,c+=s;c>0;o=256*o+t[e+f],f+=p,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+t[e+f],f+=p,c-=8);if(0===o)o=1-l;else{if(o===u)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),o-=l}return(h?-1:1)*a*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var a,s,u,l=8*o-i-1,c=(1<<l)-1,f=c>>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,y=r?1:-1,d=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),(e+=a+f>=1?p/u:p*Math.pow(2,1-f))*u>=2&&(a++,u/=2),a+f>=c?(s=0,a=c):a+f>=1?(s=(e*u-1)*Math.pow(2,i),a+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;t[n+h]=255&s,h+=y,s/=256,i-=8);for(a=a<<i|s,l+=i;l>0;t[n+h]=255&a,h+=y,a/=256,l-=8);t[n+h-y]|=128*d}},9945:function(t,e,n){"use strict";var r=n(1308),i=n(3981),o=n(3823);function a(t,e,n,i,o){e=e||s,n=n||u,o=o||Array,this.nodeSize=i||64,this.points=t,this.ids=new o(t.length),this.coords=new o(2*t.length);for(var a=0;a<t.length;a++)this.ids[a]=a,this.coords[2*a]=e(t[a]),this.coords[2*a+1]=n(t[a]);r(this.ids,this.coords,this.nodeSize,0,this.ids.length-1,0)}function s(t){return t[0]}function u(t){return t[1]}t.exports=function(t,e,n,r,i){return new a(t,e,n,r,i)},a.prototype={range:function(t,e,n,r){return i(this.ids,this.coords,t,e,n,r,this.nodeSize)},within:function(t,e,n){return o(this.ids,this.coords,t,e,n,this.nodeSize)}}},3981:function(t){"use strict";t.exports=function(t,e,n,r,i,o,a){for(var s,u,l=[0,t.length-1,0],c=[];l.length;){var f=l.pop(),p=l.pop(),h=l.pop();if(p-h<=a)for(var y=h;y<=p;y++)s=e[2*y],u=e[2*y+1],s>=n&&s<=i&&u>=r&&u<=o&&c.push(t[y]);else{var d=Math.floor((h+p)/2);s=e[2*d],u=e[2*d+1],s>=n&&s<=i&&u>=r&&u<=o&&c.push(t[d]);var v=(f+1)%2;(0===f?n<=s:r<=u)&&(l.push(h),l.push(d-1),l.push(v)),(0===f?i>=s:o>=u)&&(l.push(d+1),l.push(p),l.push(v))}}return c}},1308:function(t){"use strict";function e(t,r,i,o,a,s){for(;a>o;){if(a-o>600){var u=a-o+1,l=i-o+1,c=Math.log(u),f=.5*Math.exp(2*c/3),p=.5*Math.sqrt(c*f*(u-f)/u)*(l-u/2<0?-1:1);e(t,r,i,Math.max(o,Math.floor(i-l*f/u+p)),Math.min(a,Math.floor(i+(u-l)*f/u+p)),s)}var h=r[2*i+s],y=o,d=a;for(n(t,r,o,i),r[2*a+s]>h&&n(t,r,o,a);y<d;){for(n(t,r,y,d),y++,d--;r[2*y+s]<h;)y++;for(;r[2*d+s]>h;)d--}r[2*o+s]===h?n(t,r,o,d):n(t,r,++d,a),d<=i&&(o=d+1),i<=d&&(a=d-1)}}function n(t,e,n,i){r(t,n,i),r(e,2*n,2*i),r(e,2*n+1,2*i+1)}function r(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}t.exports=function t(n,r,i,o,a,s){if(!(a-o<=i)){var u=Math.floor((o+a)/2);e(n,r,u,o,a,s%2),t(n,r,i,o,u-1,s+1),t(n,r,i,u+1,a,s+1)}}},3823:function(t){"use strict";function e(t,e,n,r){var i=t-n,o=e-r;return i*i+o*o}t.exports=function(t,n,r,i,o,a){for(var s=[0,t.length-1,0],u=[],l=o*o;s.length;){var c=s.pop(),f=s.pop(),p=s.pop();if(f-p<=a)for(var h=p;h<=f;h++)e(n[2*h],n[2*h+1],r,i)<=l&&u.push(t[h]);else{var y=Math.floor((p+f)/2),d=n[2*y],v=n[2*y+1];e(d,v,r,i)<=l&&u.push(t[y]);var m=(c+1)%2;(0===c?r-o<=d:i-o<=v)&&(s.push(p),s.push(y-1),s.push(m)),(0===c?r+o>=d:i+o>=v)&&(s.push(y+1),s.push(f),s.push(m))}}return u}},7418:function(t){"use strict";var e=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,o){for(var a,s,u=i(t),l=1;l<arguments.length;l++){for(var c in a=Object(arguments[l]))n.call(a,c)&&(u[c]=a[c]);if(e){s=e(a);for(var f=0;f<s.length;f++)r.call(a,s[f])&&(u[s[f]]=a[s[f]])}}return u}},3614:function(t,e,n){"use strict";t.exports=i;var r=n(645);function i(t){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(t)?t:new Uint8Array(t||0),this.pos=0,this.type=0,this.length=this.buf.length}i.Varint=0,i.Fixed64=1,i.Bytes=2,i.Fixed32=5;var o=4294967296,a=1/o;function s(t){return t.type===i.Bytes?t.readVarint()+t.pos:t.pos+1}function u(t,e,n){return n?4294967296*e+(t>>>0):4294967296*(e>>>0)+(t>>>0)}function l(t,e,n){var r=e<=16383?1:e<=2097151?2:e<=268435455?3:Math.floor(Math.log(e)/(7*Math.LN2));n.realloc(r);for(var i=n.pos-1;i>=t;i--)n.buf[i+r]=n.buf[i]}function c(t,e){for(var n=0;n<t.length;n++)e.writeVarint(t[n])}function f(t,e){for(var n=0;n<t.length;n++)e.writeSVarint(t[n])}function p(t,e){for(var n=0;n<t.length;n++)e.writeFloat(t[n])}function h(t,e){for(var n=0;n<t.length;n++)e.writeDouble(t[n])}function y(t,e){for(var n=0;n<t.length;n++)e.writeBoolean(t[n])}function d(t,e){for(var n=0;n<t.length;n++)e.writeFixed32(t[n])}function v(t,e){for(var n=0;n<t.length;n++)e.writeSFixed32(t[n])}function m(t,e){for(var n=0;n<t.length;n++)e.writeFixed64(t[n])}function g(t,e){for(var n=0;n<t.length;n++)e.writeSFixed64(t[n])}function b(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16)+16777216*t[e+3]}function x(t,e,n){t[n]=e,t[n+1]=e>>>8,t[n+2]=e>>>16,t[n+3]=e>>>24}function w(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16)+(t[e+3]<<24)}i.prototype={destroy:function(){this.buf=null},readFields:function(t,e,n){for(n=n||this.length;this.pos<n;){var r=this.readVarint(),i=r>>3,o=this.pos;this.type=7&r,t(i,e,this),this.pos===o&&this.skip(r)}return e},readMessage:function(t,e){return this.readFields(t,e,this.readVarint()+this.pos)},readFixed32:function(){var t=b(this.buf,this.pos);return this.pos+=4,t},readSFixed32:function(){var t=w(this.buf,this.pos);return this.pos+=4,t},readFixed64:function(){var t=b(this.buf,this.pos)+b(this.buf,this.pos+4)*o;return this.pos+=8,t},readSFixed64:function(){var t=b(this.buf,this.pos)+w(this.buf,this.pos+4)*o;return this.pos+=8,t},readFloat:function(){var t=r.read(this.buf,this.pos,!0,23,4);return this.pos+=4,t},readDouble:function(){var t=r.read(this.buf,this.pos,!0,52,8);return this.pos+=8,t},readVarint:function(t){var e,n,r=this.buf;return e=127&(n=r[this.pos++]),n<128?e:(e|=(127&(n=r[this.pos++]))<<7,n<128?e:(e|=(127&(n=r[this.pos++]))<<14,n<128?e:(e|=(127&(n=r[this.pos++]))<<21,n<128?e:function(t,e,n){var r,i,o=n.buf;if(r=(112&(i=o[n.pos++]))>>4,i<128)return u(t,r,e);if(r|=(127&(i=o[n.pos++]))<<3,i<128)return u(t,r,e);if(r|=(127&(i=o[n.pos++]))<<10,i<128)return u(t,r,e);if(r|=(127&(i=o[n.pos++]))<<17,i<128)return u(t,r,e);if(r|=(127&(i=o[n.pos++]))<<24,i<128)return u(t,r,e);if(r|=(1&(i=o[n.pos++]))<<31,i<128)return u(t,r,e);throw new Error("Expected varint not more than 10 bytes")}(e|=(15&(n=r[this.pos]))<<28,t,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var t=this.readVarint();return t%2==1?(t+1)/-2:t/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var t=this.readVarint()+this.pos,e=function(t,e,n){for(var r="",i=e;i<n;){var o,a,s,u=t[i],l=null,c=u>239?4:u>223?3:u>191?2:1;if(i+c>n)break;1===c?u<128&&(l=u):2===c?128==(192&(o=t[i+1]))&&(l=(31&u)<<6|63&o)<=127&&(l=null):3===c?(o=t[i+1],a=t[i+2],128==(192&o)&&128==(192&a)&&((l=(15&u)<<12|(63&o)<<6|63&a)<=2047||l>=55296&&l<=57343)&&(l=null)):4===c&&(o=t[i+1],a=t[i+2],s=t[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&((l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)<=65535||l>=1114112)&&(l=null)),null===l?(l=65533,c=1):l>65535&&(l-=65536,r+=String.fromCharCode(l>>>10&1023|55296),l=56320|1023&l),r+=String.fromCharCode(l),i+=c}return r}(this.buf,this.pos,t);return this.pos=t,e},readBytes:function(){var t=this.readVarint()+this.pos,e=this.buf.subarray(this.pos,t);return this.pos=t,e},readPackedVarint:function(t,e){if(this.type!==i.Bytes)return t.push(this.readVarint(e));var n=s(this);for(t=t||[];this.pos<n;)t.push(this.readVarint(e));return t},readPackedSVarint:function(t){if(this.type!==i.Bytes)return t.push(this.readSVarint());var e=s(this);for(t=t||[];this.pos<e;)t.push(this.readSVarint());return t},readPackedBoolean:function(t){if(this.type!==i.Bytes)return t.push(this.readBoolean());var e=s(this);for(t=t||[];this.pos<e;)t.push(this.readBoolean());return t},readPackedFloat:function(t){if(this.type!==i.Bytes)return t.push(this.readFloat());var e=s(this);for(t=t||[];this.pos<e;)t.push(this.readFloat());return t},readPackedDouble:function(t){if(this.type!==i.Bytes)return t.push(this.readDouble());var e=s(this);for(t=t||[];this.pos<e;)t.push(this.readDouble());return t},readPackedFixed32:function(t){if(this.type!==i.Bytes)return t.push(this.readFixed32());var e=s(this);for(t=t||[];this.pos<e;)t.push(this.readFixed32());return t},readPackedSFixed32:function(t){if(this.type!==i.Bytes)return t.push(this.readSFixed32());var e=s(this);for(t=t||[];this.pos<e;)t.push(this.readSFixed32());return t},readPackedFixed64:function(t){if(this.type!==i.Bytes)return t.push(this.readFixed64());var e=s(this);for(t=t||[];this.pos<e;)t.push(this.readFixed64());return t},readPackedSFixed64:function(t){if(this.type!==i.Bytes)return t.push(this.readSFixed64());var e=s(this);for(t=t||[];this.pos<e;)t.push(this.readSFixed64());return t},skip:function(t){var e=7&t;if(e===i.Varint)for(;this.buf[this.pos++]>127;);else if(e===i.Bytes)this.pos=this.readVarint()+this.pos;else if(e===i.Fixed32)this.pos+=4;else{if(e!==i.Fixed64)throw new Error("Unimplemented type: "+e);this.pos+=8}},writeTag:function(t,e){this.writeVarint(t<<3|e)},realloc:function(t){for(var e=this.length||16;e<this.pos+t;)e*=2;if(e!==this.length){var n=new Uint8Array(e);n.set(this.buf),this.buf=n,this.length=e}},finish:function(){return this.length=this.pos,this.pos=0,this.buf.subarray(0,this.length)},writeFixed32:function(t){this.realloc(4),x(this.buf,t,this.pos),this.pos+=4},writeSFixed32:function(t){this.realloc(4),x(this.buf,t,this.pos),this.pos+=4},writeFixed64:function(t){this.realloc(8),x(this.buf,-1&t,this.pos),x(this.buf,Math.floor(t*a),this.pos+4),this.pos+=8},writeSFixed64:function(t){this.realloc(8),x(this.buf,-1&t,this.pos),x(this.buf,Math.floor(t*a),this.pos+4),this.pos+=8},writeVarint:function(t){(t=+t||0)>268435455||t<0?function(t,e){var n,r;if(t>=0?(n=t%4294967296|0,r=t/4294967296|0):(r=~(-t/4294967296),4294967295^(n=~(-t%4294967296))?n=n+1|0:(n=0,r=r+1|0)),t>=0x10000000000000000||t<-0x10000000000000000)throw new Error("Given varint doesn\'t fit into 10 bytes");e.realloc(10),function(t,e,n){n.buf[n.pos++]=127&t|128,t>>>=7,n.buf[n.pos++]=127&t|128,t>>>=7,n.buf[n.pos++]=127&t|128,t>>>=7,n.buf[n.pos++]=127&t|128,t>>>=7,n.buf[n.pos]=127&t}(n,0,e),function(t,e){var n=(7&t)<<4;e.buf[e.pos++]|=n|((t>>>=3)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t)))))}(r,e)}(t,this):(this.realloc(4),this.buf[this.pos++]=127&t|(t>127?128:0),t<=127||(this.buf[this.pos++]=127&(t>>>=7)|(t>127?128:0),t<=127||(this.buf[this.pos++]=127&(t>>>=7)|(t>127?128:0),t<=127||(this.buf[this.pos++]=t>>>7&127))))},writeSVarint:function(t){this.writeVarint(t<0?2*-t-1:2*t)},writeBoolean:function(t){this.writeVarint(Boolean(t))},writeString:function(t){t=String(t),this.realloc(4*t.length),this.pos++;var e=this.pos;this.pos=function(t,e,n){for(var r,i,o=0;o<e.length;o++){if((r=e.charCodeAt(o))>55295&&r<57344){if(!i){r>56319||o+1===e.length?(t[n++]=239,t[n++]=191,t[n++]=189):i=r;continue}if(r<56320){t[n++]=239,t[n++]=191,t[n++]=189,i=r;continue}r=i-55296<<10|r-56320|65536,i=null}else i&&(t[n++]=239,t[n++]=191,t[n++]=189,i=null);r<128?t[n++]=r:(r<2048?t[n++]=r>>6|192:(r<65536?t[n++]=r>>12|224:(t[n++]=r>>18|240,t[n++]=r>>12&63|128),t[n++]=r>>6&63|128),t[n++]=63&r|128)}return n}(this.buf,t,this.pos);var n=this.pos-e;n>=128&&l(e,n,this),this.pos=e-1,this.writeVarint(n),this.pos+=n},writeFloat:function(t){this.realloc(4),r.write(this.buf,t,this.pos,!0,23,4),this.pos+=4},writeDouble:function(t){this.realloc(8),r.write(this.buf,t,this.pos,!0,52,8),this.pos+=8},writeBytes:function(t){var e=t.length;this.writeVarint(e),this.realloc(e);for(var n=0;n<e;n++)this.buf[this.pos++]=t[n]},writeRawMessage:function(t,e){this.pos++;var n=this.pos;t(e,this);var r=this.pos-n;r>=128&&l(n,r,this),this.pos=n-1,this.writeVarint(r),this.pos+=r},writeMessage:function(t,e,n){this.writeTag(t,i.Bytes),this.writeRawMessage(e,n)},writePackedVarint:function(t,e){e.length&&this.writeMessage(t,c,e)},writePackedSVarint:function(t,e){e.length&&this.writeMessage(t,f,e)},writePackedBoolean:function(t,e){e.length&&this.writeMessage(t,y,e)},writePackedFloat:function(t,e){e.length&&this.writeMessage(t,p,e)},writePackedDouble:function(t,e){e.length&&this.writeMessage(t,h,e)},writePackedFixed32:function(t,e){e.length&&this.writeMessage(t,d,e)},writePackedSFixed32:function(t,e){e.length&&this.writeMessage(t,v,e)},writePackedFixed64:function(t,e){e.length&&this.writeMessage(t,m,e)},writePackedSFixed64:function(t,e){e.length&&this.writeMessage(t,g,e)},writeBytesField:function(t,e){this.writeTag(t,i.Bytes),this.writeBytes(e)},writeFixed32Field:function(t,e){this.writeTag(t,i.Fixed32),this.writeFixed32(e)},writeSFixed32Field:function(t,e){this.writeTag(t,i.Fixed32),this.writeSFixed32(e)},writeFixed64Field:function(t,e){this.writeTag(t,i.Fixed64),this.writeFixed64(e)},writeSFixed64Field:function(t,e){this.writeTag(t,i.Fixed64),this.writeSFixed64(e)},writeVarintField:function(t,e){this.writeTag(t,i.Varint),this.writeVarint(e)},writeSVarintField:function(t,e){this.writeTag(t,i.Varint),this.writeSVarint(e)},writeStringField:function(t,e){this.writeTag(t,i.Bytes),this.writeString(e)},writeFloatField:function(t,e){this.writeTag(t,i.Fixed32),this.writeFloat(e)},writeDoubleField:function(t,e){this.writeTag(t,i.Fixed64),this.writeDouble(e)},writeBooleanField:function(t,e){this.writeVarintField(t,Boolean(e))}}},8166:function(t){t.exports=function(){"use strict";function t(n,r,i,o,a){for(;o>i;){if(o-i>600){var s=o-i+1,u=r-i+1,l=Math.log(s),c=.5*Math.exp(2*l/3),f=.5*Math.sqrt(l*c*(s-c)/s)*(u-s/2<0?-1:1);t(n,r,Math.max(i,Math.floor(r-u*c/s+f)),Math.min(o,Math.floor(r+(s-u)*c/s+f)),a)}var p=n[r],h=i,y=o;for(e(n,i,r),a(n[o],p)>0&&e(n,i,o);h<y;){for(e(n,h,y),h++,y--;a(n[h],p)<0;)h++;for(;a(n[y],p)>0;)y--}0===a(n[i],p)?e(n,i,y):e(n,++y,o),y<=r&&(i=y+1),r<=y&&(o=y-1)}}function e(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function n(t,e){return t<e?-1:t>e?1:0}return function(e,r,i,o,a){t(e,r,i||0,o||e.length-1,a||n)}}()},5975:function(t,e,n){"use strict";var r=n(9945);function i(t){this.options=f(Object.create(this.options),t),this.trees=new Array(this.options.maxZoom+1)}function o(t,e,n,r,i){return{x:t,y:e,zoom:1/0,id:r,properties:i,parentId:-1,numPoints:n}}function a(t,e){var n=t.geometry.coordinates;return{x:l(n[0]),y:c(n[1]),zoom:1/0,id:e,parentId:-1}}function s(t){return{type:"Feature",properties:u(t),geometry:{type:"Point",coordinates:[(r=t.x,360*(r-.5)),(e=t.y,n=(180-360*e)*Math.PI/180,360*Math.atan(Math.exp(n))/Math.PI-90)]}};var e,n,r}function u(t){var e=t.numPoints,n=e>=1e4?Math.round(e/1e3)+"k":e>=1e3?Math.round(e/100)/10+"k":e;return f(f({},t.properties),{cluster:!0,cluster_id:t.id,point_count:e,point_count_abbreviated:n})}function l(t){return t/360+.5}function c(t){var e=Math.sin(t*Math.PI/180),n=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return n<0?0:n>1?1:n}function f(t,e){for(var n in e)t[n]=e[n];return t}function p(t){return t.x}function h(t){return t.y}t.exports=function(t){return new i(t)},i.prototype={options:{minZoom:0,maxZoom:16,radius:40,extent:512,nodeSize:64,log:!1,reduce:null,initial:function(){return{}},map:function(t){return t}},load:function(t){var e=this.options.log;e&&console.time("total time");var n="prepare "+t.length+" points";e&&console.time(n),this.points=t;var i=t.map(a);e&&console.timeEnd(n);for(var o=this.options.maxZoom;o>=this.options.minZoom;o--){var s=+Date.now();this.trees[o+1]=r(i,p,h,this.options.nodeSize,Float32Array),i=this._cluster(i,o),e&&console.log("z%d: %d clusters in %dms",o,i.length,+Date.now()-s)}return this.trees[this.options.minZoom]=r(i,p,h,this.options.nodeSize,Float32Array),e&&console.timeEnd("total time"),this},getClusters:function(t,e){for(var n=this.trees[this._limitZoom(e)],r=n.range(l(t[0]),c(t[3]),l(t[2]),c(t[1])),i=[],o=0;o<r.length;o++){var a=n.points[r[o]];i.push(a.numPoints?s(a):this.points[a.id])}return i},getChildren:function(t,e){for(var n=this.trees[e+1].points[t],r=this.options.radius/(this.options.extent*Math.pow(2,e)),i=this.trees[e+1].within(n.x,n.y,r),o=[],a=0;a<i.length;a++){var u=this.trees[e+1].points[i[a]];u.parentId===t&&o.push(u.numPoints?s(u):this.points[u.id])}return o},getLeaves:function(t,e,n,r){n=n||10,r=r||0;var i=[];return this._appendLeaves(i,t,e,n,r,0),i},getTile:function(t,e,n){var r=this.trees[this._limitZoom(t)],i=Math.pow(2,t),o=this.options.extent,a=this.options.radius/o,s=(n-a)/i,u=(n+1+a)/i,l={features:[]};return this._addTileFeatures(r.range((e-a)/i,s,(e+1+a)/i,u),r.points,e,n,i,l),0===e&&this._addTileFeatures(r.range(1-a/i,s,1,u),r.points,i,n,i,l),e===i-1&&this._addTileFeatures(r.range(0,s,a/i,u),r.points,-1,n,i,l),l.features.length?l:null},getClusterExpansionZoom:function(t,e){for(;e<this.options.maxZoom;){var n=this.getChildren(t,e);if(e++,1!==n.length)break;t=n[0].properties.cluster_id}return e},_appendLeaves:function(t,e,n,r,i,o){for(var a=this.getChildren(e,n),s=0;s<a.length;s++){var u=a[s].properties;if(u.cluster?o+u.point_count<=i?o+=u.point_count:o=this._appendLeaves(t,u.cluster_id,n+1,r,i,o):o<i?o++:t.push(a[s]),t.length===r)break}return o},_addTileFeatures:function(t,e,n,r,i,o){for(var a=0;a<t.length;a++){var s=e[t[a]];o.features.push({type:1,geometry:[[Math.round(this.options.extent*(s.x*i-n)),Math.round(this.options.extent*(s.y*i-r))]],tags:s.numPoints?u(s):this.points[s.id].properties})}},_limitZoom:function(t){return Math.max(this.options.minZoom,Math.min(t,this.options.maxZoom+1))},_cluster:function(t,e){for(var n=[],r=this.options.radius/(this.options.extent*Math.pow(2,e)),i=0;i<t.length;i++){var a=t[i];if(!(a.zoom<=e)){a.zoom=e;var s=this.trees[e+1],u=s.within(a.x,a.y,r),l=a.numPoints||1,c=a.x*l,f=a.y*l,p=null;this.options.reduce&&(p=this.options.initial(),this._accumulate(p,a));for(var h=0;h<u.length;h++){var y=s.points[u[h]];if(e<y.zoom){var d=y.numPoints||1;y.zoom=e,c+=y.x*d,f+=y.y*d,l+=d,y.parentId=i,this.options.reduce&&this._accumulate(p,y)}}1===l?n.push(a):(a.parentId=i,n.push(o(c/l,f/l,l,i,p)))}}return n},_accumulate:function(t,e){var n=e.numPoints?e.properties:this.options.map(this.points[e.id].properties);this.options.reduce(t,n)}}},3842:function(t){"use strict";function e(t,r){if(!(this instanceof e))return new e(t,r);if(this.data=t||[],this.length=this.data.length,this.compare=r||n,this.length>0)for(var i=(this.length>>1)-1;i>=0;i--)this._down(i)}function n(t,e){return t<e?-1:t>e?1:0}t.exports=e,t.exports.default=e,e.prototype={push:function(t){this.data.push(t),this.length++,this._up(this.length-1)},pop:function(){if(0!==this.length){var t=this.data[0];return this.length--,this.length>0&&(this.data[0]=this.data[this.length],this._down(0)),this.data.pop(),t}},peek:function(){return this.data[0]},_up:function(t){for(var e=this.data,n=this.compare,r=e[t];t>0;){var i=t-1>>1,o=e[i];if(n(r,o)>=0)break;e[t]=o,t=i}e[t]=r},_down:function(t){for(var e=this.data,n=this.compare,r=this.length>>1,i=e[t];t<r;){var o=1+(t<<1),a=o+1,s=e[o];if(a<this.length&&n(e[a],s)<0&&(o=a,s=e[a]),n(s,i)>=0)break;e[t]=s,t=o}e[t]=i}}},9937:function(t,e,n){var r=n(3614),i=n(770);function o(t){var e=new r;return function(t,e){for(var n in t.layers)e.writeMessage(3,a,t.layers[n])}(t,e),e.finish()}function a(t,e){var n;e.writeVarintField(15,t.version||1),e.writeStringField(1,t.name||""),e.writeVarintField(5,t.extent||4096);var r={keys:[],values:[],keycache:{},valuecache:{}};for(n=0;n<t.length;n++)r.feature=t.feature(n),e.writeMessage(2,s,r);var i=r.keys;for(n=0;n<i.length;n++)e.writeStringField(3,i[n]);var o=r.values;for(n=0;n<o.length;n++)e.writeMessage(4,p,o[n])}function s(t,e){var n=t.feature;void 0!==n.id&&e.writeVarintField(1,n.id),e.writeMessage(2,u,t),e.writeVarintField(3,n.type),e.writeMessage(4,f,n)}function u(t,e){var n=t.feature,r=t.keys,i=t.values,o=t.keycache,a=t.valuecache;for(var s in n.properties){var u=o[s];void 0===u&&(r.push(s),u=r.length-1,o[s]=u),e.writeVarint(u);var l=n.properties[s],c=typeof l;"string"!==c&&"boolean"!==c&&"number"!==c&&(l=JSON.stringify(l));var f=c+":"+l,p=a[f];void 0===p&&(i.push(l),p=i.length-1,a[f]=p),e.writeVarint(p)}}function l(t,e){return(e<<3)+(7&t)}function c(t){return t<<1^t>>31}function f(t,e){for(var n=t.loadGeometry(),r=t.type,i=0,o=0,a=n.length,s=0;s<a;s++){var u=n[s],f=1;1===r&&(f=u.length),e.writeVarint(l(1,f));for(var p=3===r?u.length-1:u.length,h=0;h<p;h++){1===h&&1!==r&&e.writeVarint(l(2,p-1));var y=u[h].x-i,d=u[h].y-o;e.writeVarint(c(y)),e.writeVarint(c(d)),i+=y,o+=d}3===r&&e.writeVarint(l(7,1))}}function p(t,e){var n=typeof t;"string"===n?e.writeStringField(1,t):"boolean"===n?e.writeBooleanField(7,t):"number"===n&&(t%1!=0?e.writeDoubleField(3,t):t<0?e.writeSVarintField(6,t):e.writeVarintField(5,t))}t.exports=o,t.exports.fromVectorTileJs=o,t.exports.fromGeojsonVt=function(t,e){e=e||{};var n={};for(var r in t)n[r]=new i(t[r].features,e),n[r].name=r,n[r].version=e.version,n[r].extent=e.extent;return o({layers:n})},t.exports.GeoJSONWrapper=i},770:function(t,e,n){"use strict";var r=n(5550),i=n(8929).VectorTileFeature;function o(t,e){this.options=e||{},this.features=t,this.length=t.length}function a(t,e){this.id="number"==typeof t.id?t.id:void 0,this.type=t.type,this.rawGeometry=1===t.type?[t.geometry]:t.geometry,this.properties=t.tags,this.extent=e||4096}t.exports=o,o.prototype.feature=function(t){return new a(this.features[t],this.options.extent)},a.prototype.loadGeometry=function(){var t=this.rawGeometry;this.geometry=[];for(var e=0;e<t.length;e++){for(var n=t[e],i=[],o=0;o<n.length;o++)i.push(new r(n[o][0],n[o][1]));this.geometry.push(i)}return this.geometry},a.prototype.bbox=function(){this.geometry||this.loadGeometry();for(var t=this.geometry,e=1/0,n=-1/0,r=1/0,i=-1/0,o=0;o<t.length;o++)for(var a=t[o],s=0;s<a.length;s++){var u=a[s];e=Math.min(e,u.x),n=Math.max(n,u.x),r=Math.min(r,u.y),i=Math.max(i,u.y)}return[e,r,n,i]},a.prototype.toGeoJSON=i.prototype.toGeoJSON},5752:function(t){t.exports.RADIUS=6378137,t.exports.FLATTENING=1/298.257223563,t.exports.POLAR_RADIUS=6356752.3142},8620:function(t,e,n){"use strict";function r(t,e,n,r,o,a){return a=a||{},t+"?"+["bbox="+i(n,r,o),"format="+(a.format||"image/png"),"service="+(a.service||"WMS"),"version="+(a.version||"1.1.1"),"request="+(a.request||"GetMap"),"srs="+(a.srs||"EPSG:3857"),"width="+(a.width||256),"height="+(a.height||256),"layers="+e].join("&")}function i(t,e,n){var r=o(256*t,256*(e=Math.pow(2,n)-e-1),n),i=o(256*(t+1),256*(e+1),n);return r[0]+","+r[1]+","+i[0]+","+i[1]}function o(t,e,n){var r=2*Math.PI*6378137/256/Math.pow(2,n);return[t*r-2*Math.PI*6378137/2,e*r-2*Math.PI*6378137/2]}n.r(e),n.d(e,{getMercCoords:function(){return o},getTileBBox:function(){return i},getURL:function(){return r}})},556:function(t){"use strict";t.exports=JSON.parse(\'{"$version":8,"$root":{"version":{"required":true,"type":"enum","values":[8],"doc":"Style specification version number. Must be 8.","example":8},"name":{"type":"string","doc":"A human-readable name for the style.","example":"Bright"},"metadata":{"type":"*","doc":"Arbitrary properties useful to track with the stylesheet, but do not influence rendering. Properties should be prefixed to avoid collisions, like \\\'mapbox:\\\'."},"center":{"type":"array","value":"number","doc":"Default map center in longitude and latitude. The style center will be used only if the map has not been positioned by other means (e.g. map options or user interaction).","example":[-73.9749,40.7736]},"zoom":{"type":"number","doc":"Default zoom level. The style zoom will be used only if the map has not been positioned by other means (e.g. map options or user interaction).","example":12.5},"bearing":{"type":"number","default":0,"period":360,"units":"degrees","doc":"Default bearing, in degrees. The bearing is the compass direction that is \\\\"up\\\\"; for example, a bearing of 90° orients the map so that east is up. This value will be used only if the map has not been positioned by other means (e.g. map options or user interaction).","example":29},"pitch":{"type":"number","default":0,"units":"degrees","doc":"Default pitch, in degrees. Zero is perpendicular to the surface, for a look straight down at the map, while a greater value like 60 looks ahead towards the horizon. The style pitch will be used only if the map has not been positioned by other means (e.g. map options or user interaction).","example":50},"light":{"type":"light","doc":"The global light source.","example":{"anchor":"viewport","color":"white","intensity":0.4}},"sources":{"required":true,"type":"sources","doc":"Data source specifications.","example":{"mapbox-streets":{"type":"vector","url":"mapbox://mapbox.mapbox-streets-v6"}}},"sprite":{"type":"string","doc":"A base URL for retrieving the sprite image and metadata. The extensions `.png`, `.json` and scale factor `@2x.png` will be automatically appended. This property is required if any layer uses the `background-pattern`, `fill-pattern`, `line-pattern`, `fill-extrusion-pattern`, or `icon-image` properties.","example":"mapbox://sprites/mapbox/bright-v8"},"glyphs":{"type":"string","doc":"A URL template for loading signed-distance-field glyph sets in PBF format. The URL must include `{fontstack}` and `{range}` tokens. This property is required if any layer uses the `text-field` layout property.","example":"mapbox://fonts/mapbox/{fontstack}/{range}.pbf"},"transition":{"type":"transition","doc":"A global transition definition to use as a default across properties.","example":{"duration":300,"delay":0}},"layers":{"required":true,"type":"array","value":"layer","doc":"Layers will be drawn in the order of this array.","example":[{"id":"water","source":"mapbox-streets","source-layer":"water","type":"fill","paint":{"fill-color":"#00ffff"}}]}},"sources":{"*":{"type":"source","doc":"Specification of a data source. For vector and raster sources, either TileJSON or a URL to a TileJSON must be provided. For image and video sources, a URL must be provided. For GeoJSON sources, a URL or inline GeoJSON must be provided."}},"source":["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image","source_canvas"],"source_vector":{"type":{"required":true,"type":"enum","values":{"vector":{"doc":"A vector tile source."}},"doc":"The type of the source."},"url":{"type":"string","doc":"A URL to a TileJSON resource. Supported protocols are `http:`, `https:`, and `mapbox://<mapid>`."},"tiles":{"type":"array","value":"string","doc":"An array of one or more tile source URLs, as in the TileJSON spec."},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.0511,180,85.0511],"doc":"An array containing the longitude and latitude of the southwest and northeast corners of the source\\\'s bounding box in the following order: `[sw.lng, sw.lat, ne.lng, ne.lat]`. When this property is included in a source, no tiles outside of the given bounds are requested by Mapbox GL."},"minzoom":{"type":"number","default":0,"doc":"Minimum zoom level for which tiles are available, as in the TileJSON spec."},"maxzoom":{"type":"number","default":22,"doc":"Maximum zoom level for which tiles are available, as in the TileJSON spec. Data from tiles at the maxzoom are used when displaying the map at higher zoom levels."},"attribution":{"type":"string","doc":"Contains an attribution to be displayed when the map is shown to a user."},"*":{"type":"*","doc":"Other keys to configure the data source."}},"source_raster":{"type":{"required":true,"type":"enum","values":{"raster":{"doc":"A raster tile source."}},"doc":"The type of the source."},"url":{"type":"string","doc":"A URL to a TileJSON resource. Supported protocols are `http:`, `https:`, and `mapbox://<mapid>`."},"tiles":{"type":"array","value":"string","doc":"An array of one or more tile source URLs, as in the TileJSON spec."},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.0511,180,85.0511],"doc":"An array containing the longitude and latitude of the southwest and northeast corners of the source\\\'s bounding box in the following order: `[sw.lng, sw.lat, ne.lng, ne.lat]`. When this property is included in a source, no tiles outside of the given bounds are requested by Mapbox GL."},"minzoom":{"type":"number","default":0,"doc":"Minimum zoom level for which tiles are available, as in the TileJSON spec."},"maxzoom":{"type":"number","default":22,"doc":"Maximum zoom level for which tiles are available, as in the TileJSON spec. Data from tiles at the maxzoom are used when displaying the map at higher zoom levels."},"tileSize":{"type":"number","default":512,"units":"pixels","doc":"The minimum visual size to display tiles for this layer. Only configurable for raster layers."},"scheme":{"type":"enum","values":{"xyz":{"doc":"Slippy map tilenames scheme."},"tms":{"doc":"OSGeo spec scheme."}},"default":"xyz","doc":"Influences the y direction of the tile coordinates. The global-mercator (aka Spherical Mercator) profile is assumed."},"attribution":{"type":"string","doc":"Contains an attribution to be displayed when the map is shown to a user."},"*":{"type":"*","doc":"Other keys to configure the data source."}},"source_raster_dem":{"type":{"required":true,"type":"enum","values":{"raster-dem":{"doc":"A raster DEM source using Mapbox Terrain RGB"}},"doc":"The type of the source."},"url":{"type":"string","doc":"A URL to a TileJSON resource. Supported protocols are `http:`, `https:`, and `mapbox://<mapid>`."},"tiles":{"type":"array","value":"string","doc":"An array of one or more tile source URLs, as in the TileJSON spec."},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.0511,180,85.0511],"doc":"An array containing the longitude and latitude of the southwest and northeast corners of the source\\\'s bounding box in the following order: `[sw.lng, sw.lat, ne.lng, ne.lat]`. When this property is included in a source, no tiles outside of the given bounds are requested by Mapbox GL."},"minzoom":{"type":"number","default":0,"doc":"Minimum zoom level for which tiles are available, as in the TileJSON spec."},"maxzoom":{"type":"number","default":22,"doc":"Maximum zoom level for which tiles are available, as in the TileJSON spec. Data from tiles at the maxzoom are used when displaying the map at higher zoom levels."},"tileSize":{"type":"number","default":512,"units":"pixels","doc":"The minimum visual size to display tiles for this layer. Only configurable for raster layers."},"attribution":{"type":"string","doc":"Contains an attribution to be displayed when the map is shown to a user."},"*":{"type":"*","doc":"Other keys to configure the data source."}},"source_geojson":{"type":{"required":true,"type":"enum","values":{"geojson":{"doc":"A GeoJSON data source."}},"doc":"The data type of the GeoJSON source."},"data":{"type":"*","doc":"A URL to a GeoJSON file, or inline GeoJSON."},"maxzoom":{"type":"number","default":18,"doc":"Maximum zoom level at which to create vector tiles (higher means greater detail at high zoom levels)."},"buffer":{"type":"number","default":128,"maximum":512,"minimum":0,"doc":"Size of the tile buffer on each side. A value of 0 produces no buffer. A value of 512 produces a buffer as wide as the tile itself. Larger values produce fewer rendering artifacts near tile edges and slower performance."},"tolerance":{"type":"number","default":0.375,"doc":"Douglas-Peucker simplification tolerance (higher means simpler geometries and faster performance)."},"cluster":{"type":"boolean","default":false,"doc":"If the data is a collection of point features, setting this to true clusters the points by radius into groups."},"clusterRadius":{"type":"number","default":50,"minimum":0,"doc":"Radius of each cluster if clustering is enabled. A value of 512 indicates a radius equal to the width of a tile."},"clusterMaxZoom":{"type":"number","doc":"Max zoom on which to cluster points if clustering is enabled. Defaults to one zoom less than maxzoom (so that last zoom features are not clustered)."}},"source_video":{"type":{"required":true,"type":"enum","values":{"video":{"doc":"A video data source."}},"doc":"The data type of the video source."},"urls":{"required":true,"type":"array","value":"string","doc":"URLs to video content in order of preferred format."},"coordinates":{"required":true,"doc":"Corners of video specified in longitude, latitude pairs.","type":"array","length":4,"value":{"type":"array","length":2,"value":"number","doc":"A single longitude, latitude pair."}}},"source_image":{"type":{"required":true,"type":"enum","values":{"image":{"doc":"An image data source."}},"doc":"The data type of the image source."},"url":{"required":true,"type":"string","doc":"URL that points to an image."},"coordinates":{"required":true,"doc":"Corners of image specified in longitude, latitude pairs.","type":"array","length":4,"value":{"type":"array","length":2,"value":"number","doc":"A single longitude, latitude pair."}}},"source_canvas":{"type":{"required":true,"type":"enum","values":{"canvas":{"doc":"A canvas data source."}},"doc":"The data type of the canvas source."},"coordinates":{"required":true,"doc":"Corners of canvas specified in longitude, latitude pairs.","type":"array","length":4,"value":{"type":"array","length":2,"value":"number","doc":"A single longitude, latitude pair."}},"animate":{"type":"boolean","default":"true","doc":"Whether the canvas source is animated. If the canvas is static, `animate` should be set to `false` to improve performance."},"canvas":{"type":"string","required":true,"doc":"HTML ID of the canvas from which to read pixels."}},"layer":{"id":{"type":"string","doc":"Unique layer name.","required":true},"type":{"type":"enum","values":{"fill":{"doc":"A filled polygon with an optional stroked border.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"}}},"line":{"doc":"A stroked line.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"}}},"symbol":{"doc":"An icon or a text label.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"}}},"circle":{"doc":"A filled circle.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"}}},"heatmap":{"doc":"A heatmap.","sdk-support":{"basic functionality":{"js":"0.41.0"}}},"fill-extrusion":{"doc":"An extruded (3D) polygon.","sdk-support":{"basic functionality":{"js":"0.27.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"}}},"raster":{"doc":"Raster map textures such as satellite imagery.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"}}},"hillshade":{"doc":"Client-side hillshading visualization based on DEM data. Currently, the implementation only supports Mapbox Terrain RGB tiles","sdk-support":{"basic functionality":{"js":"0.43.0"}}},"background":{"doc":"The background color or pattern of the map.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"}}}},"doc":"Rendering type of this layer.","required":true},"metadata":{"type":"*","doc":"Arbitrary properties useful to track with the layer, but do not influence rendering. Properties should be prefixed to avoid collisions, like \\\'mapbox:\\\'."},"source":{"type":"string","doc":"Name of a source description to be used for this layer. Required for all layer types except `background`."},"source-layer":{"type":"string","doc":"Layer to use from a vector tile source. Required for vector tile sources; prohibited for all other source types, including GeoJSON sources."},"minzoom":{"type":"number","minimum":0,"maximum":24,"doc":"The minimum zoom level on which the layer gets parsed and appears on."},"maxzoom":{"type":"number","minimum":0,"maximum":24,"doc":"The maximum zoom level on which the layer gets parsed and appears on."},"filter":{"type":"filter","doc":"A expression specifying conditions on source features. Only features that match the filter are displayed."},"layout":{"type":"layout","doc":"Layout properties for the layer."},"paint":{"type":"paint","doc":"Default paint properties for this layer."}},"layout":["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],"layout_background":{"visibility":{"type":"enum","values":{"visible":{"doc":"The layer is shown."},"none":{"doc":"The layer is not shown."}},"default":"visible","doc":"Whether this layer is displayed.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"}}}},"layout_fill":{"visibility":{"type":"enum","values":{"visible":{"doc":"The layer is shown."},"none":{"doc":"The layer is not shown."}},"default":"visible","doc":"Whether this layer is displayed.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"}}}},"layout_circle":{"visibility":{"type":"enum","values":{"visible":{"doc":"The layer is shown."},"none":{"doc":"The layer is not shown."}},"default":"visible","doc":"Whether this layer is displayed.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"}}}},"layout_heatmap":{"visibility":{"type":"enum","values":{"visible":{"doc":"The layer is shown."},"none":{"doc":"The layer is not shown."}},"default":"visible","doc":"Whether this layer is displayed.","sdk-support":{"basic functionality":{"js":"0.41.0"}}}},"layout_fill-extrusion":{"visibility":{"type":"enum","values":{"visible":{"doc":"The layer is shown."},"none":{"doc":"The layer is not shown."}},"default":"visible","doc":"Whether this layer is displayed.","sdk-support":{"basic functionality":{"js":"0.27.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"}}}},"layout_line":{"line-cap":{"type":"enum","function":"piecewise-constant","zoom-function":true,"values":{"butt":{"doc":"A cap with a squared-off end which is drawn to the exact endpoint of the line."},"round":{"doc":"A cap with a rounded end which is drawn beyond the endpoint of the line at a radius of one-half of the line\\\'s width and centered on the endpoint of the line."},"square":{"doc":"A cap with a squared-off end which is drawn beyond the endpoint of the line at a distance of one-half of the line\\\'s width."}},"default":"butt","doc":"The display of line endings.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"line-join":{"type":"enum","function":"piecewise-constant","zoom-function":true,"property-function":true,"values":{"bevel":{"doc":"A join with a squared-off end which is drawn beyond the endpoint of the line at a distance of one-half of the line\\\'s width."},"round":{"doc":"A join with a rounded end which is drawn beyond the endpoint of the line at a radius of one-half of the line\\\'s width and centered on the endpoint of the line."},"miter":{"doc":"A join with a sharp, angled corner which is drawn with the outer sides beyond the endpoint of the path until they meet."}},"default":"miter","doc":"The display of lines when joining.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.40.0","android":"5.2.0","ios":"3.7.0","macos":"0.6.0"}}},"line-miter-limit":{"type":"number","default":2,"function":"interpolated","zoom-function":true,"doc":"Used to automatically convert miter joins to bevel joins for sharp angles.","requires":[{"line-join":"miter"}],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"line-round-limit":{"type":"number","default":1.05,"function":"interpolated","zoom-function":true,"doc":"Used to automatically convert round joins to miter joins for shallow angles.","requires":[{"line-join":"round"}],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"visibility":{"type":"enum","values":{"visible":{"doc":"The layer is shown."},"none":{"doc":"The layer is not shown."}},"default":"visible","doc":"Whether this layer is displayed.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}}},"layout_symbol":{"symbol-placement":{"type":"enum","function":"piecewise-constant","zoom-function":true,"values":{"point":{"doc":"The label is placed at the point where the geometry is located."},"line":{"doc":"The label is placed along the line of the geometry. Can only be used on `LineString` and `Polygon` geometries."}},"default":"point","doc":"Label placement relative to its geometry.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"symbol-spacing":{"type":"number","default":250,"minimum":1,"function":"interpolated","zoom-function":true,"units":"pixels","doc":"Distance between two symbol anchors.","requires":[{"symbol-placement":"line"}],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"symbol-avoid-edges":{"type":"boolean","function":"piecewise-constant","zoom-function":true,"default":false,"doc":"If true, the symbols will not cross tile edges to avoid mutual collisions. Recommended in layers that don\\\'t have enough padding in the vector tile to prevent collisions, or if it is a point symbol layer placed after a line symbol layer.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"icon-allow-overlap":{"type":"boolean","function":"piecewise-constant","zoom-function":true,"default":false,"doc":"If true, the icon will be visible even if it collides with other previously drawn symbols.","requires":["icon-image"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"icon-ignore-placement":{"type":"boolean","function":"piecewise-constant","zoom-function":true,"default":false,"doc":"If true, other symbols can be visible even if they collide with the icon.","requires":["icon-image"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"icon-optional":{"type":"boolean","function":"piecewise-constant","zoom-function":true,"default":false,"doc":"If true, text will display without their corresponding icons when the icon collides with other symbols and the text does not.","requires":["icon-image","text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"icon-rotation-alignment":{"type":"enum","function":"piecewise-constant","zoom-function":true,"values":{"map":{"doc":"When `symbol-placement` is set to `point`, aligns icons east-west. When `symbol-placement` is set to `line`, aligns icon x-axes with the line."},"viewport":{"doc":"Produces icons whose x-axes are aligned with the x-axis of the viewport, regardless of the value of `symbol-placement`."},"auto":{"doc":"When `symbol-placement` is set to `point`, this is equivalent to `viewport`. When `symbol-placement` is set to `line`, this is equivalent to `map`."}},"default":"auto","doc":"In combination with `symbol-placement`, determines the rotation behavior of icons.","requires":["icon-image"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"`auto` value":{"js":"0.25.0","android":"4.2.0","ios":"3.4.0","macos":"0.3.0"},"data-driven styling":{}}},"icon-size":{"type":"number","default":1,"minimum":0,"function":"interpolated","zoom-function":true,"property-function":true,"units":"factor of the original icon size","doc":"Scales the original size of the icon by the provided factor. The new pixel size of the image will be the original pixel size multiplied by `icon-size`. 1 is the original size; 3 triples the size of the image.","requires":["icon-image"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.35.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"}}},"icon-text-fit":{"type":"enum","function":"piecewise-constant","zoom-function":true,"values":{"none":{"doc":"The icon is displayed at its intrinsic aspect ratio."},"width":{"doc":"The icon is scaled in the x-dimension to fit the width of the text."},"height":{"doc":"The icon is scaled in the y-dimension to fit the height of the text."},"both":{"doc":"The icon is scaled in both x- and y-dimensions."}},"default":"none","doc":"Scales the icon to fit around the associated text.","requires":["icon-image","text-field"],"sdk-support":{"basic functionality":{"js":"0.21.0","android":"4.2.0","ios":"3.4.0","macos":"0.2.1"},"data-driven styling":{}}},"icon-text-fit-padding":{"type":"array","value":"number","length":4,"default":[0,0,0,0],"units":"pixels","function":"interpolated","zoom-function":true,"doc":"Size of the additional area added to dimensions determined by `icon-text-fit`, in clockwise order: top, right, bottom, left.","requires":["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],"sdk-support":{"basic functionality":{"js":"0.21.0","android":"4.2.0","ios":"3.4.0","macos":"0.2.1"},"data-driven styling":{}}},"icon-image":{"type":"string","function":"piecewise-constant","zoom-function":true,"property-function":true,"doc":"Name of image in sprite to use for drawing an image background. Within literal values and zoom functions, property names enclosed in curly brackets (e.g. `{token}`) are replaced with the value of the named property. Expressions and property functions do not support this syntax; for equivalent functionality in expressions, use the [`concat`](#expressions-concat) and [`get`](#expressions-get) operators.","tokens":true,"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.35.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"}}},"icon-rotate":{"type":"number","default":0,"period":360,"function":"interpolated","zoom-function":true,"property-function":true,"units":"degrees","doc":"Rotates the icon clockwise.","requires":["icon-image"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.21.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"icon-padding":{"type":"number","default":2,"minimum":0,"function":"interpolated","zoom-function":true,"units":"pixels","doc":"Size of the additional area around the icon bounding box used for detecting symbol collisions.","requires":["icon-image"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"icon-keep-upright":{"type":"boolean","function":"piecewise-constant","zoom-function":true,"default":false,"doc":"If true, the icon may be flipped to prevent it from being rendered upside-down.","requires":["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":"line"}],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"icon-offset":{"type":"array","value":"number","length":2,"default":[0,0],"function":"interpolated","zoom-function":true,"property-function":true,"doc":"Offset distance of icon from its anchor. Positive values indicate right and down, while negative values indicate left and up. Each component is multiplied by the value of `icon-size` to obtain the final offset in pixels. When combined with `icon-rotate` the offset will be as if the rotated direction was up.","requires":["icon-image"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.29.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"icon-anchor":{"type":"enum","function":"piecewise-constant","zoom-function":true,"property-function":true,"values":{"center":{"doc":"The center of the icon is placed closest to the anchor."},"left":{"doc":"The left side of the icon is placed closest to the anchor."},"right":{"doc":"The right side of the icon is placed closest to the anchor."},"top":{"doc":"The top of the icon is placed closest to the anchor."},"bottom":{"doc":"The bottom of the icon is placed closest to the anchor."},"top-left":{"doc":"The top left corner of the icon is placed closest to the anchor."},"top-right":{"doc":"The top right corner of the icon is placed closest to the anchor."},"bottom-left":{"doc":"The bottom left corner of the icon is placed closest to the anchor."},"bottom-right":{"doc":"The bottom right corner of the icon is placed closest to the anchor."}},"default":"center","doc":"Part of the icon placed closest to the anchor.","requires":["icon-image"],"sdk-support":{"basic functionality":{"js":"0.40.0","android":"5.2.0","ios":"3.7.0","macos":"0.6.0"},"data-driven styling":{"js":"0.40.0","android":"5.2.0","ios":"3.7.0","macos":"0.6.0"}}},"icon-pitch-alignment":{"type":"enum","function":"piecewise-constant","zoom-function":true,"values":{"map":{"doc":"The icon is aligned to the plane of the map."},"viewport":{"doc":"The icon is aligned to the plane of the viewport."},"auto":{"doc":"Automatically matches the value of `icon-rotation-alignment`."}},"default":"auto","doc":"Orientation of icon when map is pitched.","requires":["icon-image"],"sdk-support":{"basic functionality":{"js":"0.39.0","android":"5.2.0","ios":"3.7.0","macos":"0.6.0"},"data-driven styling":{}}},"text-pitch-alignment":{"type":"enum","function":"piecewise-constant","zoom-function":true,"values":{"map":{"doc":"The text is aligned to the plane of the map."},"viewport":{"doc":"The text is aligned to the plane of the viewport."},"auto":{"doc":"Automatically matches the value of `text-rotation-alignment`."}},"default":"auto","doc":"Orientation of text when map is pitched.","requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.21.0","android":"4.2.0","ios":"3.4.0","macos":"0.2.1"},"`auto` value":{"js":"0.25.0","android":"4.2.0","ios":"3.4.0","macos":"0.3.0"},"data-driven styling":{}}},"text-rotation-alignment":{"type":"enum","function":"piecewise-constant","zoom-function":true,"values":{"map":{"doc":"When `symbol-placement` is set to `point`, aligns text east-west. When `symbol-placement` is set to `line`, aligns text x-axes with the line."},"viewport":{"doc":"Produces glyphs whose x-axes are aligned with the x-axis of the viewport, regardless of the value of `symbol-placement`."},"auto":{"doc":"When `symbol-placement` is set to `point`, this is equivalent to `viewport`. When `symbol-placement` is set to `line`, this is equivalent to `map`."}},"default":"auto","doc":"In combination with `symbol-placement`, determines the rotation behavior of the individual glyphs forming the text.","requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"`auto` value":{"js":"0.25.0","android":"4.2.0","ios":"3.4.0","macos":"0.3.0"},"data-driven styling":{}}},"text-field":{"type":"string","function":"piecewise-constant","zoom-function":true,"property-function":true,"default":"","tokens":true,"doc":"Value to use for a text label. Within literal values and zoom functions, property names enclosed in curly brackets (e.g. `{token}`) are replaced with the value of the named property. Expressions and property functions do not support this syntax; for equivalent functionality in expressions, use the [`concat`](#expressions-concat) and [`get`](#expressions-get) operators.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.33.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"text-font":{"type":"array","value":"string","function":"piecewise-constant","zoom-function":true,"property-function":true,"default":["Open Sans Regular","Arial Unicode MS Regular"],"doc":"Font stack to use for displaying text.","requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"text-size":{"type":"number","default":16,"minimum":0,"units":"pixels","function":"interpolated","zoom-function":true,"property-function":true,"doc":"Font size.","requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.35.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"}}},"text-max-width":{"type":"number","default":10,"minimum":0,"units":"ems","function":"interpolated","zoom-function":true,"property-function":true,"doc":"The maximum line width for text wrapping.","requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.40.0","android":"5.2.0","ios":"3.7.0","macos":"0.6.0"}}},"text-line-height":{"type":"number","default":1.2,"units":"ems","function":"interpolated","zoom-function":true,"doc":"Text leading value for multi-line text.","requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"text-letter-spacing":{"type":"number","default":0,"units":"ems","function":"interpolated","zoom-function":true,"property-function":true,"doc":"Text tracking amount.","requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.40.0","android":"5.2.0","ios":"3.7.0","macos":"0.6.0"}}},"text-justify":{"type":"enum","function":"piecewise-constant","zoom-function":true,"property-function":true,"values":{"left":{"doc":"The text is aligned to the left."},"center":{"doc":"The text is centered."},"right":{"doc":"The text is aligned to the right."}},"default":"center","doc":"Text justification options.","requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.39.0","android":"5.2.0","ios":"3.7.0","macos":"0.6.0"}}},"text-anchor":{"type":"enum","function":"piecewise-constant","zoom-function":true,"property-function":true,"values":{"center":{"doc":"The center of the text is placed closest to the anchor."},"left":{"doc":"The left side of the text is placed closest to the anchor."},"right":{"doc":"The right side of the text is placed closest to the anchor."},"top":{"doc":"The top of the text is placed closest to the anchor."},"bottom":{"doc":"The bottom of the text is placed closest to the anchor."},"top-left":{"doc":"The top left corner of the text is placed closest to the anchor."},"top-right":{"doc":"The top right corner of the text is placed closest to the anchor."},"bottom-left":{"doc":"The bottom left corner of the text is placed closest to the anchor."},"bottom-right":{"doc":"The bottom right corner of the text is placed closest to the anchor."}},"default":"center","doc":"Part of the text placed closest to the anchor.","requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.39.0","android":"5.2.0","ios":"3.7.0","macos":"0.6.0"}}},"text-max-angle":{"type":"number","default":45,"units":"degrees","function":"interpolated","zoom-function":true,"doc":"Maximum angle change between adjacent characters.","requires":["text-field",{"symbol-placement":"line"}],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"text-rotate":{"type":"number","default":0,"period":360,"units":"degrees","function":"interpolated","zoom-function":true,"property-function":true,"doc":"Rotates the text clockwise.","requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.35.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"}}},"text-padding":{"type":"number","default":2,"minimum":0,"units":"pixels","function":"interpolated","zoom-function":true,"doc":"Size of the additional area around the text bounding box used for detecting symbol collisions.","requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"text-keep-upright":{"type":"boolean","function":"piecewise-constant","zoom-function":true,"default":true,"doc":"If true, the text may be flipped vertically to prevent it from being rendered upside-down.","requires":["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":"line"}],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"text-transform":{"type":"enum","function":"piecewise-constant","zoom-function":true,"property-function":true,"values":{"none":{"doc":"The text is not altered."},"uppercase":{"doc":"Forces all letters to be displayed in uppercase."},"lowercase":{"doc":"Forces all letters to be displayed in lowercase."}},"default":"none","doc":"Specifies how to capitalize text, similar to the CSS `text-transform` property.","requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.33.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"text-offset":{"type":"array","doc":"Offset distance of text from its anchor. Positive values indicate right and down, while negative values indicate left and up.","value":"number","units":"ems","function":"interpolated","zoom-function":true,"property-function":true,"length":2,"default":[0,0],"requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.35.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"}}},"text-allow-overlap":{"type":"boolean","function":"piecewise-constant","zoom-function":true,"default":false,"doc":"If true, the text will be visible even if it collides with other previously drawn symbols.","requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"text-ignore-placement":{"type":"boolean","function":"piecewise-constant","zoom-function":true,"default":false,"doc":"If true, other symbols can be visible even if they collide with the text.","requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"text-optional":{"type":"boolean","function":"piecewise-constant","zoom-function":true,"default":false,"doc":"If true, icons will display without their corresponding text when the text collides with other symbols and the icon does not.","requires":["text-field","icon-image"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"visibility":{"type":"enum","values":{"visible":{"doc":"The layer is shown."},"none":{"doc":"The layer is not shown."}},"default":"visible","doc":"Whether this layer is displayed.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}}},"layout_raster":{"visibility":{"type":"enum","values":{"visible":{"doc":"The layer is shown."},"none":{"doc":"The layer is not shown."}},"default":"visible","doc":"Whether this layer is displayed.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}}},"layout_hillshade":{"visibility":{"type":"enum","values":{"visible":{"doc":"The layer is shown."},"none":{"doc":"The layer is not shown."}},"default":"visible","doc":"Whether this layer is displayed.","sdk-support":{"basic functionality":{"js":"0.43.0"},"data-driven styling":{}}}},"filter":{"type":"array","value":"*","doc":"A filter selects specific features from a layer."},"filter_operator":{"type":"enum","values":{"==":{"doc":"`[\\\\"==\\\\", key, value]` equality: `feature[key] = value`"},"!=":{"doc":"`[\\\\"!=\\\\", key, value]` inequality: `feature[key] ≠ value`"},">":{"doc":"`[\\\\">\\\\", key, value]` greater than: `feature[key] > value`"},">=":{"doc":"`[\\\\">=\\\\", key, value]` greater than or equal: `feature[key] ≥ value`"},"<":{"doc":"`[\\\\"<\\\\", key, value]` less than: `feature[key] < value`"},"<=":{"doc":"`[\\\\"<=\\\\", key, value]` less than or equal: `feature[key] ≤ value`"},"in":{"doc":"`[\\\\"in\\\\", key, v0, ..., vn]` set inclusion: `feature[key] ∈ {v0, ..., vn}`"},"!in":{"doc":"`[\\\\"!in\\\\", key, v0, ..., vn]` set exclusion: `feature[key] ∉ {v0, ..., vn}`"},"all":{"doc":"`[\\\\"all\\\\", f0, ..., fn]` logical `AND`: `f0 ∧ ... ∧ fn`"},"any":{"doc":"`[\\\\"any\\\\", f0, ..., fn]` logical `OR`: `f0 ∨ ... ∨ fn`"},"none":{"doc":"`[\\\\"none\\\\", f0, ..., fn]` logical `NOR`: `¬f0 ∧ ... ∧ ¬fn`"},"has":{"doc":"`[\\\\"has\\\\", key]` `feature[key]` exists"},"!has":{"doc":"`[\\\\"!has\\\\", key]` `feature[key]` does not exist"}},"doc":"The filter operator."},"geometry_type":{"type":"enum","values":{"Point":{"doc":"Filter to point geometries."},"LineString":{"doc":"Filter to line geometries."},"Polygon":{"doc":"Filter to polygon geometries."}},"doc":"The geometry type for the filter to select."},"function":{"expression":{"type":"expression","doc":"An expression."},"stops":{"type":"array","doc":"An array of stops.","value":"function_stop"},"base":{"type":"number","default":1,"minimum":0,"doc":"The exponential base of the interpolation curve. It controls the rate at which the result increases. Higher values make the result increase more towards the high end of the range. With `1` the stops are interpolated linearly."},"property":{"type":"string","doc":"The name of a feature property to use as the function input.","default":"$zoom"},"type":{"type":"enum","values":{"identity":{"doc":"Return the input value as the output value."},"exponential":{"doc":"Generate an output by interpolating between stops just less than and just greater than the function input."},"interval":{"doc":"Return the output value of the stop just less than the function input."},"categorical":{"doc":"Return the output value of the stop equal to the function input."}},"doc":"The interpolation strategy to use in function evaluation.","default":"exponential"},"colorSpace":{"type":"enum","values":{"rgb":{"doc":"Use the RGB color space to interpolate color values"},"lab":{"doc":"Use the LAB color space to interpolate color values."},"hcl":{"doc":"Use the HCL color space to interpolate color values, interpolating the Hue, Chroma, and Luminance channels individually."}},"doc":"The color space in which colors interpolated. Interpolating colors in perceptual color spaces like LAB and HCL tend to produce color ramps that look more consistent and produce colors that can be differentiated more easily than those interpolated in RGB space.","default":"rgb"},"default":{"type":"*","required":false,"doc":"A value to serve as a fallback function result when a value isn\\\'t otherwise available. It is used in the following circumstances:\\\\n* In categorical functions, when the feature value does not match any of the stop domain values.\\\\n* In property and zoom-and-property functions, when a feature does not contain a value for the specified property.\\\\n* In identity functions, when the feature value is not valid for the style property (for example, if the function is being used for a `circle-color` property but the feature property value is not a string or not a valid color).\\\\n* In interval or exponential property and zoom-and-property functions, when the feature value is not numeric.\\\\nIf no default is provided, the style property\\\'s default is used in these circumstances."}},"function_stop":{"type":"array","minimum":0,"maximum":22,"value":["number","color"],"length":2,"doc":"Zoom level and value pair."},"expression":{"type":"array","value":"*","minimum":1,"doc":"An expression defines a function that can be used for data-driven style properties or feature filters."},"expression_name":{"doc":"","type":"enum","values":{"let":{"doc":"Binds expressions to named variables, which can then be referenced in the result expression using [\\\\"var\\\\", \\\\"variable_name\\\\"].","group":"Variable binding"},"var":{"doc":"References variable bound using \\\\"let\\\\".","group":"Variable binding"},"literal":{"doc":"Provides a literal array or object value.","group":"Types"},"array":{"doc":"Asserts that the input is an array (optionally with a specific item type and length). If, when the input expression is evaluated, it is not of the asserted type, then this assertion will cause the whole expression to be aborted.","group":"Types"},"at":{"doc":"Retrieves an item from an array.","group":"Lookup"},"case":{"doc":"Selects the first output whose corresponding test condition evaluates to true.","group":"Decision"},"match":{"doc":"Selects the output whose label value matches the input value, or the fallback value if no match is found. The `input` can be any string or number expression (e.g. `[\\\\"get\\\\", \\\\"building_type\\\\"]`). Each label can either be a single literal value or an array of values.","group":"Decision"},"coalesce":{"doc":"Evaluates each expression in turn until the first non-null value is obtained, and returns that value.","group":"Decision"},"step":{"doc":"Produces discrete, stepped results by evaluating a piecewise-constant function defined by pairs of input and output values (\\\\"stops\\\\"). The `input` may be any numeric expression (e.g., `[\\\\"get\\\\", \\\\"population\\\\"]`). Stop inputs must be numeric literals in strictly ascending order. Returns the output value of the stop just less than the input, or the first input if the input is less than the first stop.","group":"Ramps, scales, curves"},"interpolate":{"doc":"Produces continuous, smooth results by interpolating between pairs of input and output values (\\\\"stops\\\\"). The `input` may be any numeric expression (e.g., `[\\\\"get\\\\", \\\\"population\\\\"]`). Stop inputs must be numeric literals in strictly ascending order. The output type must be `number`, `array<number>`, or `color`.\\\\n\\\\nInterpolation types:\\\\n- `[\\\\"linear\\\\"]`: interpolates linearly between the pair of stops just less than and just greater than the input.\\\\n- `[\\\\"exponential\\\\", base]`: interpolates exponentially between the stops just less than and just greater than the input. `base` controls the rate at which the output increases: higher values make the output increase more towards the high end of the range. With values close to 1 the output increases linearly.\\\\n- `[\\\\"cubic-bezier\\\\", x1, y1, x2, y2]`: interpolates using the cubic bezier curve defined by the given control points.","group":"Ramps, scales, curves"},"ln2":{"doc":"Returns mathematical constant ln(2).","group":"Math"},"pi":{"doc":"Returns the mathematical constant pi.","group":"Math"},"e":{"doc":"Returns the mathematical constant e.","group":"Math"},"typeof":{"doc":"Returns a string describing the type of the given value.","group":"Types"},"string":{"doc":"Asserts that the input value is a string. If multiple values are provided, each one is evaluated in order until a string value is obtained. If none of the inputs are strings, the expression is an error.","group":"Types"},"number":{"doc":"Asserts that the input value is a number. If multiple values are provided, each one is evaluated in order until a number value is obtained. If none of the inputs are numbers, the expression is an error.","group":"Types"},"boolean":{"doc":"Asserts that the input value is a boolean. If multiple values are provided, each one is evaluated in order until a boolean value is obtained. If none of the inputs are booleans, the expression is an error.","group":"Types"},"object":{"doc":"Asserts that the input value is an object. If it is not, the expression is an error.","group":"Types"},"to-string":{"doc":"Converts the input value to a string. If the input is `null`, the result is `\\\\"null\\\\"`. If the input is a boolean, the result is `\\\\"true\\\\"` or `\\\\"false\\\\"`. If the input is a number, it is converted to a string as specified by the [\\\\"NumberToString\\\\" algorithm](https://tc39.github.io/ecma262/#sec-tostring-applied-to-the-number-type) of the ECMAScript Language Specification. If the input is a color, it is converted to a string of the form `\\\\"rgba(r,g,b,a)\\\\"`, where `r`, `g`, and `b` are numerals ranging from 0 to 255, and `a` ranges from 0 to 1. Otherwise, the input is converted to a string in the format specified by the [`JSON.stringify`](https://tc39.github.io/ecma262/#sec-json.stringify) function of the ECMAScript Language Specification.","group":"Types"},"to-number":{"doc":"Converts the input value to a number, if possible. If the input is `null` or `false`, the result is 0. If the input is `true`, the result is 1. If the input is a string, it is converted to a number as specified by the [\\\\"ToNumber Applied to the String Type\\\\" algorithm](https://tc39.github.io/ecma262/#sec-tonumber-applied-to-the-string-type) of the ECMAScript Language Specification. If multiple values are provided, each one is evaluated in order until the first successful conversion is obtained. If none of the inputs can be converted, the expression is an error.","group":"Types"},"to-boolean":{"doc":"Converts the input value to a boolean. The result is `false` when then input is an empty string, 0, `false`, `null`, or `NaN`; otherwise it is `true`.","group":"Types"},"to-rgba":{"doc":"Returns a four-element array containing the input color\\\'s red, green, blue, and alpha components, in that order.","group":"Color"},"to-color":{"doc":"Converts the input value to a color. If multiple values are provided, each one is evaluated in order until the first successful conversion is obtained. If none of the inputs can be converted, the expression is an error.","group":"Types"},"rgb":{"doc":"Creates a color value from red, green, and blue components, which must range between 0 and 255, and an alpha component of 1. If any component is out of range, the expression is an error.","group":"Color"},"rgba":{"doc":"Creates a color value from red, green, blue components, which must range between 0 and 255, and an alpha component which must range between 0 and 1. If any component is out of range, the expression is an error.","group":"Color"},"get":{"doc":"Retrieves a property value from the current feature\\\'s properties, or from another object if a second argument is provided. Returns null if the requested property is missing.","group":"Lookup"},"has":{"doc":"Tests for the presence of an property value in the current feature\\\'s properties, or from another object if a second argument is provided.","group":"Lookup"},"length":{"doc":"Gets the length of an array or string.","group":"Lookup"},"properties":{"doc":"Gets the feature properties object. Note that in some cases, it may be more efficient to use [\\\\"get\\\\", \\\\"property_name\\\\"] directly.","group":"Feature data"},"geometry-type":{"doc":"Gets the feature\\\'s geometry type: Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon.","group":"Feature data"},"id":{"doc":"Gets the feature\\\'s id, if it has one.","group":"Feature data"},"zoom":{"doc":"Gets the current zoom level. Note that in style layout and paint properties, [\\\\"zoom\\\\"] may only appear as the input to a top-level \\\\"step\\\\" or \\\\"interpolate\\\\" expression.","group":"Zoom"},"heatmap-density":{"doc":"Gets the kernel density estimation of a pixel in a heatmap layer, which is a relative measure of how many data points are crowded around a particular pixel. Can only be used in the `heatmap-color` property.","group":"Heatmap"},"+":{"doc":"Returns the sum of the inputs.","group":"Math"},"*":{"doc":"Returns the product of the inputs.","group":"Math"},"-":{"doc":"For two inputs, returns the result of subtracting the second input from the first. For a single input, returns the result of subtracting it from 0.","group":"Math"},"/":{"doc":"Returns the result of floating point division of the first input by the second.","group":"Math"},"%":{"doc":"Returns the remainder after integer division of the first input by the second.","group":"Math"},"^":{"doc":"Returns the result of raising the first input to the power specified by the second.","group":"Math"},"sqrt":{"doc":"Returns the square root of the input.","group":"Math"},"log10":{"doc":"Returns the base-ten logarithm of the input.","group":"Math"},"ln":{"doc":"Returns the natural logarithm of the input.","group":"Math"},"log2":{"doc":"Returns the base-two logarithm of the input.","group":"Math"},"sin":{"doc":"Returns the sine of the input.","group":"Math"},"cos":{"doc":"Returns the cosine of the input.","group":"Math"},"tan":{"doc":"Returns the tangent of the input.","group":"Math"},"asin":{"doc":"Returns the arcsine of the input.","group":"Math"},"acos":{"doc":"Returns the arccosine of the input.","group":"Math"},"atan":{"doc":"Returns the arctangent of the input.","group":"Math"},"min":{"doc":"Returns the minimum value of the inputs.","group":"Math"},"max":{"doc":"Returns the maximum value of the inputs.","group":"Math"},"==":{"doc":"Returns `true` if the input values are equal, `false` otherwise. The inputs must be numbers, strings, or booleans, and both of the same type.","group":"Decision"},"!=":{"doc":"Returns `true` if the input values are not equal, `false` otherwise. The inputs must be numbers, strings, or booleans, and both of the same type.","group":"Decision"},">":{"doc":"Returns `true` if the first input is strictly greater than the second, `false` otherwise. The inputs must be numbers or strings, and both of the same type.","group":"Decision"},"<":{"doc":"Returns `true` if the first input is strictly less than the second, `false` otherwise. The inputs must be numbers or strings, and both of the same type.","group":"Decision"},">=":{"doc":"Returns `true` if the first input is greater than or equal to the second, `false` otherwise. The inputs must be numbers or strings, and both of the same type.","group":"Decision"},"<=":{"doc":"Returns `true` if the first input is less than or equal to the second, `false` otherwise. The inputs must be numbers or strings, and both of the same type.","group":"Decision"},"all":{"doc":"Returns `true` if all the inputs are `true`, `false` otherwise. The inputs are evaluated in order, and evaluation is short-circuiting: once an input expression evaluates to `false`, the result is `false` and no further input expressions are evaluated.","group":"Decision"},"any":{"doc":"Returns `true` if any of the inputs are `true`, `false` otherwise. The inputs are evaluated in order, and evaluation is short-circuiting: once an input expression evaluates to `true`, the result is `true` and no further input expressions are evaluated.","group":"Decision"},"!":{"doc":"Logical negation. Returns `true` if the input is `false`, and `false` if the input is `true`.","group":"Decision"},"upcase":{"doc":"Returns the input string converted to uppercase. Follows the Unicode Default Case Conversion algorithm and the locale-insensitive case mappings in the Unicode Character Database.","group":"String"},"downcase":{"doc":"Returns the input string converted to lowercase. Follows the Unicode Default Case Conversion algorithm and the locale-insensitive case mappings in the Unicode Character Database.","group":"String"},"concat":{"doc":"Returns a string consisting of the concatenation of the inputs.","group":"String"}}},"light":{"anchor":{"type":"enum","default":"viewport","values":{"map":{"doc":"The position of the light source is aligned to the rotation of the map."},"viewport":{"doc":"The position of the light source is aligned to the rotation of the viewport."}},"transition":false,"zoom-function":true,"property-function":false,"function":"piecewise-constant","doc":"Whether extruded geometries are lit relative to the map or viewport.","example":"map","sdk-support":{"basic functionality":{"js":"0.27.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"}}},"position":{"type":"array","default":[1.15,210,30],"length":3,"value":"number","transition":true,"function":"interpolated","zoom-function":true,"property-function":false,"doc":"Position of the light source relative to lit (extruded) geometries, in [r radial coordinate, a azimuthal angle, p polar angle] where r indicates the distance from the center of the base of an object to its light, a indicates the position of the light relative to 0° (0° when `light.anchor` is set to `viewport` corresponds to the top of the viewport, or 0° when `light.anchor` is set to `map` corresponds to due north, and degrees proceed clockwise), and p indicates the height of the light (from 0°, directly above, to 180°, directly below).","example":[1.5,90,80],"sdk-support":{"basic functionality":{"js":"0.27.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"}}},"color":{"type":"color","default":"#ffffff","function":"interpolated","zoom-function":true,"property-function":false,"transition":true,"doc":"Color tint for lighting extruded geometries.","sdk-support":{"basic functionality":{"js":"0.27.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"}}},"intensity":{"type":"number","default":0.5,"minimum":0,"maximum":1,"function":"interpolated","zoom-function":true,"property-function":false,"transition":true,"doc":"Intensity of lighting (on a scale from 0 to 1). Higher numbers will present as more extreme contrast.","sdk-support":{"basic functionality":{"js":"0.27.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"}}}},"paint":["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],"paint_fill":{"fill-antialias":{"type":"boolean","function":"piecewise-constant","zoom-function":true,"default":true,"doc":"Whether or not the fill should be antialiased.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"fill-opacity":{"type":"number","function":"interpolated","zoom-function":true,"property-function":true,"default":1,"minimum":0,"maximum":1,"doc":"The opacity of the entire fill layer. In contrast to the `fill-color`, this value will also affect the 1px stroke around the fill, if the stroke is used.","transition":true,"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.21.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"fill-color":{"type":"color","default":"#000000","doc":"The color of the filled part of this layer. This color can be specified as `rgba` with an alpha component and the color\\\'s opacity will not affect the opacity of the 1px stroke, if it is used.","function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"requires":[{"!":"fill-pattern"}],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.19.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"fill-outline-color":{"type":"color","doc":"The outline color of the fill. Matches the value of `fill-color` if unspecified.","function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"requires":[{"!":"fill-pattern"},{"fill-antialias":true}],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.19.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"fill-translate":{"type":"array","value":"number","length":2,"default":[0,0],"function":"interpolated","zoom-function":true,"transition":true,"units":"pixels","doc":"The geometry\\\'s offset. Values are [x, y] where negatives indicate left and up, respectively.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"fill-translate-anchor":{"type":"enum","function":"piecewise-constant","zoom-function":true,"values":{"map":{"doc":"The fill is translated relative to the map."},"viewport":{"doc":"The fill is translated relative to the viewport."}},"doc":"Controls the frame of reference for `fill-translate`.","default":"map","requires":["fill-translate"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"fill-pattern":{"type":"string","function":"piecewise-constant","zoom-function":true,"transition":true,"doc":"Name of image in sprite to use for drawing image fills. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512).","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}}},"paint_fill-extrusion":{"fill-extrusion-opacity":{"type":"number","function":"interpolated","zoom-function":true,"property-function":false,"default":1,"minimum":0,"maximum":1,"doc":"The opacity of the entire fill extrusion layer. This is rendered on a per-layer, not per-feature, basis, and data-driven styling is not available.","transition":true,"sdk-support":{"basic functionality":{"js":"0.27.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"}}},"fill-extrusion-color":{"type":"color","default":"#000000","doc":"The base color of the extruded fill. The extrusion\\\'s surfaces will be shaded differently based on this color in combination with the root `light` settings. If this color is specified as `rgba` with an alpha component, the alpha component will be ignored; use `fill-extrusion-opacity` to set layer opacity.","function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"requires":[{"!":"fill-extrusion-pattern"}],"sdk-support":{"basic functionality":{"js":"0.27.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"},"data-driven styling":{"js":"0.27.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"}}},"fill-extrusion-translate":{"type":"array","value":"number","length":2,"default":[0,0],"function":"interpolated","zoom-function":true,"transition":true,"units":"pixels","doc":"The geometry\\\'s offset. Values are [x, y] where negatives indicate left and up (on the flat plane), respectively.","sdk-support":{"basic functionality":{"js":"0.27.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"},"data-driven styling":{}}},"fill-extrusion-translate-anchor":{"type":"enum","function":"piecewise-constant","zoom-function":true,"values":{"map":{"doc":"The fill extrusion is translated relative to the map."},"viewport":{"doc":"The fill extrusion is translated relative to the viewport."}},"doc":"Controls the frame of reference for `fill-extrusion-translate`.","default":"map","requires":["fill-extrusion-translate"],"sdk-support":{"basic functionality":{"js":"0.27.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"},"data-driven styling":{}}},"fill-extrusion-pattern":{"type":"string","function":"piecewise-constant","zoom-function":true,"transition":true,"doc":"Name of image in sprite to use for drawing images on extruded fills. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512).","sdk-support":{"basic functionality":{"js":"0.27.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"},"data-driven styling":{}}},"fill-extrusion-height":{"type":"number","function":"interpolated","zoom-function":true,"property-function":true,"default":0,"minimum":0,"units":"meters","doc":"The height with which to extrude this layer.","transition":true,"sdk-support":{"basic functionality":{"js":"0.27.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"},"data-driven styling":{"js":"0.27.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"}}},"fill-extrusion-base":{"type":"number","function":"interpolated","zoom-function":true,"property-function":true,"default":0,"minimum":0,"units":"meters","doc":"The height with which to extrude the base of this layer. Must be less than or equal to `fill-extrusion-height`.","transition":true,"requires":["fill-extrusion-height"],"sdk-support":{"basic functionality":{"js":"0.27.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"},"data-driven styling":{"js":"0.27.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"}}}},"paint_line":{"line-opacity":{"type":"number","doc":"The opacity at which the line will be drawn.","function":"interpolated","zoom-function":true,"property-function":true,"default":1,"minimum":0,"maximum":1,"transition":true,"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.29.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"line-color":{"type":"color","doc":"The color with which the line will be drawn.","default":"#000000","function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"requires":[{"!":"line-pattern"}],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.23.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"line-translate":{"type":"array","value":"number","length":2,"default":[0,0],"function":"interpolated","zoom-function":true,"transition":true,"units":"pixels","doc":"The geometry\\\'s offset. Values are [x, y] where negatives indicate left and up, respectively.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"line-translate-anchor":{"type":"enum","function":"piecewise-constant","zoom-function":true,"values":{"map":{"doc":"The line is translated relative to the map."},"viewport":{"doc":"The line is translated relative to the viewport."}},"doc":"Controls the frame of reference for `line-translate`.","default":"map","requires":["line-translate"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"line-width":{"type":"number","default":1,"minimum":0,"function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"units":"pixels","doc":"Stroke thickness.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.39.0"}}},"line-gap-width":{"type":"number","default":0,"minimum":0,"doc":"Draws a line casing outside of a line\\\'s actual path. Value indicates the width of the inner gap.","function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"units":"pixels","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.29.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"line-offset":{"type":"number","default":0,"doc":"The line\\\'s offset. For linear features, a positive value offsets the line to the right, relative to the direction of the line, and a negative value to the left. For polygon features, a positive value results in an inset, and a negative value results in an outset.","function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"units":"pixels","sdk-support":{"basic functionality":{"js":"0.12.1","android":"3.0.0","ios":"3.1.0","macos":"0.1.0"},"data-driven styling":{"js":"0.29.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"line-blur":{"type":"number","default":0,"minimum":0,"function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"units":"pixels","doc":"Blur applied to the line, in pixels.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.29.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"line-dasharray":{"type":"array","value":"number","function":"piecewise-constant","zoom-function":true,"doc":"Specifies the lengths of the alternating dashes and gaps that form the dash pattern. The lengths are later scaled by the line width. To convert a dash length to pixels, multiply the length by the current line width.","minimum":0,"transition":true,"units":"line widths","requires":[{"!":"line-pattern"}],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"line-pattern":{"type":"string","function":"piecewise-constant","zoom-function":true,"transition":true,"doc":"Name of image in sprite to use for drawing image lines. For seamless patterns, image width must be a factor of two (2, 4, 8, ..., 512).","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}}},"paint_circle":{"circle-radius":{"type":"number","default":5,"minimum":0,"function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"units":"pixels","doc":"Circle radius.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.18.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"circle-color":{"type":"color","default":"#000000","doc":"The fill color of the circle.","function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.18.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"circle-blur":{"type":"number","default":0,"doc":"Amount to blur the circle. 1 blurs the circle such that only the centerpoint is full opacity.","function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.20.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"circle-opacity":{"type":"number","doc":"The opacity at which the circle will be drawn.","default":1,"minimum":0,"maximum":1,"function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.20.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"circle-translate":{"type":"array","value":"number","length":2,"default":[0,0],"function":"interpolated","zoom-function":true,"transition":true,"units":"pixels","doc":"The geometry\\\'s offset. Values are [x, y] where negatives indicate left and up, respectively.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"circle-translate-anchor":{"type":"enum","function":"piecewise-constant","zoom-function":true,"values":{"map":{"doc":"The circle is translated relative to the map."},"viewport":{"doc":"The circle is translated relative to the viewport."}},"doc":"Controls the frame of reference for `circle-translate`.","default":"map","requires":["circle-translate"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"circle-pitch-scale":{"type":"enum","function":"piecewise-constant","zoom-function":true,"values":{"map":{"doc":"Circles are scaled according to their apparent distance to the camera."},"viewport":{"doc":"Circles are not scaled."}},"default":"map","doc":"Controls the scaling behavior of the circle when the map is pitched.","sdk-support":{"basic functionality":{"js":"0.21.0","android":"4.2.0","ios":"3.4.0","macos":"0.2.1"},"data-driven styling":{}}},"circle-pitch-alignment":{"type":"enum","function":"piecewise-constant","zoom-function":true,"values":{"map":{"doc":"The circle is aligned to the plane of the map."},"viewport":{"doc":"The circle is aligned to the plane of the viewport."}},"default":"viewport","doc":"Orientation of circle when map is pitched.","sdk-support":{"basic functionality":{"js":"0.39.0","android":"5.2.0","ios":"3.7.0","macos":"0.6.0"},"data-driven styling":{}}},"circle-stroke-width":{"type":"number","default":0,"minimum":0,"function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"units":"pixels","doc":"The width of the circle\\\'s stroke. Strokes are placed outside of the `circle-radius`.","sdk-support":{"basic functionality":{"js":"0.29.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"},"data-driven styling":{"js":"0.29.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"circle-stroke-color":{"type":"color","default":"#000000","doc":"The stroke color of the circle.","function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"sdk-support":{"basic functionality":{"js":"0.29.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"},"data-driven styling":{"js":"0.29.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"circle-stroke-opacity":{"type":"number","doc":"The opacity of the circle\\\'s stroke.","default":1,"minimum":0,"maximum":1,"function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"sdk-support":{"basic functionality":{"js":"0.29.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"},"data-driven styling":{"js":"0.29.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}}},"paint_heatmap":{"heatmap-radius":{"type":"number","default":30,"minimum":1,"function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"units":"pixels","doc":"Radius of influence of one heatmap point in pixels. Increasing the value makes the heatmap smoother, but less detailed.","sdk-support":{"basic functionality":{"js":"0.41.0"},"data-driven styling":{}}},"heatmap-weight":{"type":"number","default":1,"minimum":0,"function":"interpolated","zoom-function":true,"property-function":true,"transition":false,"doc":"A measure of how much an individual point contributes to the heatmap. A value of 10 would be equivalent to having 10 points of weight 1 in the same spot. Especially useful when combined with clustering.","sdk-support":{"basic functionality":{"js":"0.41.0"},"data-driven styling":{"js":"0.41.0"}}},"heatmap-intensity":{"type":"number","default":1,"minimum":0,"function":"interpolated","zoom-function":true,"property-function":false,"transition":true,"doc":"Similar to `heatmap-weight` but controls the intensity of the heatmap globally. Primarily used for adjusting the heatmap based on zoom level.","sdk-support":{"basic functionality":{"js":"0.41.0"},"data-driven styling":{}}},"heatmap-color":{"type":"color","default":["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",0.1,"royalblue",0.3,"cyan",0.5,"lime",0.7,"yellow",1,"red"],"doc":"Defines the color of each pixel based on its density value in a heatmap. Should be an expression that uses `[\\\\"heatmap-density\\\\"]` as input.","function":"interpolated","zoom-function":false,"property-function":false,"transition":false,"sdk-support":{"basic functionality":{"js":"0.41.0"},"data-driven styling":{}}},"heatmap-opacity":{"type":"number","doc":"The global opacity at which the heatmap layer will be drawn.","default":1,"minimum":0,"maximum":1,"function":"interpolated","zoom-function":true,"property-function":false,"transition":true,"sdk-support":{"basic functionality":{"js":"0.41.0"},"data-driven styling":{}}}},"paint_symbol":{"icon-opacity":{"doc":"The opacity at which the icon will be drawn.","type":"number","default":1,"minimum":0,"maximum":1,"function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"requires":["icon-image"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.33.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"icon-color":{"type":"color","default":"#000000","function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"doc":"The color of the icon. This can only be used with sdf icons.","requires":["icon-image"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.33.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"icon-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"doc":"The color of the icon\\\'s halo. Icon halos can only be used with SDF icons.","requires":["icon-image"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.33.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"icon-halo-width":{"type":"number","default":0,"minimum":0,"function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"units":"pixels","doc":"Distance of halo to the icon outline.","requires":["icon-image"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.33.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"icon-halo-blur":{"type":"number","default":0,"minimum":0,"function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"units":"pixels","doc":"Fade out the halo towards the outside.","requires":["icon-image"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.33.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"icon-translate":{"type":"array","value":"number","length":2,"default":[0,0],"function":"interpolated","zoom-function":true,"transition":true,"units":"pixels","doc":"Distance that the icon\\\'s anchor is moved from its original placement. Positive values indicate right and down, while negative values indicate left and up.","requires":["icon-image"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"icon-translate-anchor":{"type":"enum","function":"piecewise-constant","zoom-function":true,"values":{"map":{"doc":"Icons are translated relative to the map."},"viewport":{"doc":"Icons are translated relative to the viewport."}},"doc":"Controls the frame of reference for `icon-translate`.","default":"map","requires":["icon-image","icon-translate"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"text-opacity":{"type":"number","doc":"The opacity at which the text will be drawn.","default":1,"minimum":0,"maximum":1,"function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.33.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"text-color":{"type":"color","doc":"The color with which the text will be drawn.","default":"#000000","function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.33.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"text-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"doc":"The color of the text\\\'s halo, which helps it stand out from backgrounds.","requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.33.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"text-halo-width":{"type":"number","default":0,"minimum":0,"function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"units":"pixels","doc":"Distance of halo to the font outline. Max text halo width is 1/4 of the font-size.","requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.33.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"text-halo-blur":{"type":"number","default":0,"minimum":0,"function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"units":"pixels","doc":"The halo\\\'s fadeout distance towards the outside.","requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.33.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"text-translate":{"type":"array","value":"number","length":2,"default":[0,0],"function":"interpolated","zoom-function":true,"transition":true,"units":"pixels","doc":"Distance that the text\\\'s anchor is moved from its original placement. Positive values indicate right and down, while negative values indicate left and up.","requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"text-translate-anchor":{"type":"enum","function":"piecewise-constant","zoom-function":true,"values":{"map":{"doc":"The text is translated relative to the map."},"viewport":{"doc":"The text is translated relative to the viewport."}},"doc":"Controls the frame of reference for `text-translate`.","default":"map","requires":["text-field","text-translate"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}}},"paint_raster":{"raster-opacity":{"type":"number","doc":"The opacity at which the image will be drawn.","default":1,"minimum":0,"maximum":1,"function":"interpolated","zoom-function":true,"transition":true,"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"raster-hue-rotate":{"type":"number","default":0,"period":360,"function":"interpolated","zoom-function":true,"transition":true,"units":"degrees","doc":"Rotates hues around the color wheel.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"raster-brightness-min":{"type":"number","function":"interpolated","zoom-function":true,"doc":"Increase or reduce the brightness of the image. The value is the minimum brightness.","default":0,"minimum":0,"maximum":1,"transition":true,"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"raster-brightness-max":{"type":"number","function":"interpolated","zoom-function":true,"doc":"Increase or reduce the brightness of the image. The value is the maximum brightness.","default":1,"minimum":0,"maximum":1,"transition":true,"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"raster-saturation":{"type":"number","doc":"Increase or reduce the saturation of the image.","default":0,"minimum":-1,"maximum":1,"function":"interpolated","zoom-function":true,"transition":true,"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"raster-contrast":{"type":"number","doc":"Increase or reduce the contrast of the image.","default":0,"minimum":-1,"maximum":1,"function":"interpolated","zoom-function":true,"transition":true,"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"raster-fade-duration":{"type":"number","default":300,"minimum":0,"function":"interpolated","zoom-function":true,"transition":false,"units":"milliseconds","doc":"Fade duration when a new tile is added.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}}},"paint_hillshade":{"hillshade-illumination-direction":{"type":"number","default":335,"minimum":0,"maximum":359,"doc":"The direction of the light source used to generate the hillshading with 0 as the top of the viewport if `hillshade-illumination-anchor` is set to `viewport` and due north if `hillshade-illumination-anchor` is set to `map`.","function":"interpolated","zoom-function":true,"transition":false},"hillshade-illumination-anchor":{"type":"enum","function":"piecewise-constant","zoom-function":true,"values":{"map":{"doc":"The hillshade illumination is relative to the north direction."},"viewport":{"doc":"The hillshade illumination is relative to the top of the viewport."}},"default":"viewport","doc":"Direction of light source when map is rotated."},"hillshade-exaggeration":{"type":"number","doc":"Intensity of the hillshade","default":0.5,"minimum":0,"maximum":1,"function":"interpolated","zoom-function":true,"transition":true},"hillshade-shadow-color":{"type":"color","default":"#000000","doc":"The shading color of areas that face away from the light source.","function":"interpolated","zoom-function":true,"transition":true},"hillshade-highlight-color":{"type":"color","default":"#FFFFFF","doc":"The shading color of areas that faces towards the light source.","function":"interpolated","zoom-function":true,"transition":true},"hillshade-accent-color":{"type":"color","default":"#000000","doc":"The shading color used to accentuate rugged terrain like sharp cliffs and gorges.","function":"interpolated","zoom-function":true,"transition":true}},"paint_background":{"background-color":{"type":"color","default":"#000000","doc":"The color with which the background will be drawn.","function":"interpolated","zoom-function":true,"transition":true,"requires":[{"!":"background-pattern"}],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"}}},"background-pattern":{"type":"string","function":"piecewise-constant","zoom-function":true,"transition":true,"doc":"Name of image in sprite to use for drawing an image background. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512).","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"}}},"background-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"doc":"The opacity at which the background will be drawn.","function":"interpolated","zoom-function":true,"transition":true,"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"}}}},"transition":{"duration":{"type":"number","default":300,"minimum":0,"units":"milliseconds","doc":"Time allotted for transitions to complete."},"delay":{"type":"number","default":0,"minimum":0,"units":"milliseconds","doc":"Length of time before a transition begins."}}}\')}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={exports:{}};return t[r].call(o.exports,o,o.exports,n),o.exports}n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var e=n(9646),r=n(9678),i=n(1015),o=n(9371),a=n(6513),s=n(8583),u=n(4781);new(function(){function n(t){var r=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),this.self=t,this.actor=new e(t,this),this.layerIndexes={},this.workerSourceTypes={vector:i,geojson:a},this.workerSources={},this.demWorkerSources={},this.self.registerWorkerSource=function(t,e){if(r.workerSourceTypes[t])throw new Error(\'Worker source with name "\'.concat(t,\'" already registered.\'));r.workerSourceTypes[t]=e},this.self.registerRTLTextPlugin=function(t){if(u.applyArabicShaping||u.processBidirectionalText)throw new Error("RTL text plugin already registered.");u.applyArabicShaping=t.applyArabicShaping,u.processBidirectionalText=t.processBidirectionalText}}var l,c;return l=n,(c=[{key:"setLayers",value:function(t,e,n){this.getLayerIndex(t).replace(e),n()}},{key:"updateLayers",value:function(t,e,n){this.getLayerIndex(t).update(e.layers,e.removedIds),n()}},{key:"loadTile",value:function(t,e,n){s(e.type),this.getWorkerSource(t,e.type).loadTile(e,n)}},{key:"loadDEMTile",value:function(t,e,n){this.getDEMWorkerSource(t).loadTile(e,n)}},{key:"reloadTile",value:function(t,e,n){s(e.type),this.getWorkerSource(t,e.type).reloadTile(e,n)}},{key:"abortTile",value:function(t,e,n){s(e.type),this.getWorkerSource(t,e.type).abortTile(e,n)}},{key:"removeTile",value:function(t,e,n){s(e.type),this.getWorkerSource(t,e.type).removeTile(e,n)}},{key:"removeDEMTile",value:function(t,e){this.getDEMWorkerSource(t).removeTile(e)}},{key:"removeSource",value:function(t,e,n){s(e.type);var r=this.getWorkerSource(t,e.type);void 0!==r.removeSource?r.removeSource(e,n):n()}},{key:"loadWorkerSource",value:function(t,e,n){try{this.self.importScripts(e.url),n()}catch(t){n(t)}}},{key:"loadRTLTextPlugin",value:function(t,e,n){try{u.applyArabicShaping||u.processBidirectionalText||(this.self.importScripts(e),u.applyArabicShaping&&u.processBidirectionalText||n(new Error("RTL Text Plugin failed to import scripts from ".concat(e))))}catch(t){n(t)}}},{key:"getLayerIndex",value:function(t){var e=this.layerIndexes[t];return e||(e=this.layerIndexes[t]=new r),e}},{key:"getWorkerSource",value:function(t,e){var n=this;if(this.workerSources[t]||(this.workerSources[t]={}),!this.workerSources[t][e]){var r={send:function(e,r,i){n.actor.send(e,r,i,t)}};this.workerSources[t][e]=new this.workerSourceTypes[e](r,this.getLayerIndex(t))}return this.workerSources[t][e]}},{key:"getDEMWorkerSource",value:function(t){return this.demWorkerSources[t]||(this.demWorkerSources[t]=new o),this.demWorkerSources[t]}}])&&t(l.prototype,c),Object.defineProperty(l,"prototype",{writable:!1}),n}())(self)}()}();\n//# sourceMappingURL=d179b5c18890f1583797.worker.js.map',null)}},9855:function(o){var i=window.URL||window.webkitURL;o.exports=function(a,l){try{try{var h;try{(h=new(window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder)).append(a),h=h.getBlob()}catch{h=new Blob([a])}return new Worker(i.createObjectURL(h))}catch{return new Worker("data:application/javascript,"+encodeURIComponent(a))}}catch{if(!l)throw Error("Inline worker is not supported");return new Worker(l)}}},8620:function(o,i,a){function l(u,y,v,g,m,p){return p=p||{},u+"?"+["bbox="+h(v,g,m),"format="+(p.format||"image/png"),"service="+(p.service||"WMS"),"version="+(p.version||"1.1.1"),"request="+(p.request||"GetMap"),"srs="+(p.srs||"EPSG:3857"),"width="+(p.width||256),"height="+(p.height||256),"layers="+y].join("&")}function h(u,y,v){var g=f(256*u,256*(y=Math.pow(2,v)-y-1),v),m=f(256*(u+1),256*(y+1),v);return g[0]+","+g[1]+","+m[0]+","+m[1]}function f(u,y,v){var g=2*Math.PI*6378137/256/Math.pow(2,v);return[u*g-2*Math.PI*6378137/2,y*g-2*Math.PI*6378137/2]}a.r(i),a.d(i,{getMercCoords:function(){return f},getTileBBox:function(){return h},getURL:function(){return l}})},4147:function(o){o.exports={i8:"0.3.4"}},556:function(o){o.exports=JSON.parse('{"$version":8,"$root":{"version":{"required":true,"type":"enum","values":[8],"doc":"Style specification version number. Must be 8.","example":8},"name":{"type":"string","doc":"A human-readable name for the style.","example":"Bright"},"metadata":{"type":"*","doc":"Arbitrary properties useful to track with the stylesheet, but do not influence rendering. Properties should be prefixed to avoid collisions, like \'mapbox:\'."},"center":{"type":"array","value":"number","doc":"Default map center in longitude and latitude. The style center will be used only if the map has not been positioned by other means (e.g. map options or user interaction).","example":[-73.9749,40.7736]},"zoom":{"type":"number","doc":"Default zoom level. The style zoom will be used only if the map has not been positioned by other means (e.g. map options or user interaction).","example":12.5},"bearing":{"type":"number","default":0,"period":360,"units":"degrees","doc":"Default bearing, in degrees. The bearing is the compass direction that is \\"up\\"; for example, a bearing of 90° orients the map so that east is up. This value will be used only if the map has not been positioned by other means (e.g. map options or user interaction).","example":29},"pitch":{"type":"number","default":0,"units":"degrees","doc":"Default pitch, in degrees. Zero is perpendicular to the surface, for a look straight down at the map, while a greater value like 60 looks ahead towards the horizon. The style pitch will be used only if the map has not been positioned by other means (e.g. map options or user interaction).","example":50},"light":{"type":"light","doc":"The global light source.","example":{"anchor":"viewport","color":"white","intensity":0.4}},"sources":{"required":true,"type":"sources","doc":"Data source specifications.","example":{"mapbox-streets":{"type":"vector","url":"mapbox://mapbox.mapbox-streets-v6"}}},"sprite":{"type":"string","doc":"A base URL for retrieving the sprite image and metadata. The extensions `.png`, `.json` and scale factor `@2x.png` will be automatically appended. This property is required if any layer uses the `background-pattern`, `fill-pattern`, `line-pattern`, `fill-extrusion-pattern`, or `icon-image` properties.","example":"mapbox://sprites/mapbox/bright-v8"},"glyphs":{"type":"string","doc":"A URL template for loading signed-distance-field glyph sets in PBF format. The URL must include `{fontstack}` and `{range}` tokens. This property is required if any layer uses the `text-field` layout property.","example":"mapbox://fonts/mapbox/{fontstack}/{range}.pbf"},"transition":{"type":"transition","doc":"A global transition definition to use as a default across properties.","example":{"duration":300,"delay":0}},"layers":{"required":true,"type":"array","value":"layer","doc":"Layers will be drawn in the order of this array.","example":[{"id":"water","source":"mapbox-streets","source-layer":"water","type":"fill","paint":{"fill-color":"#00ffff"}}]}},"sources":{"*":{"type":"source","doc":"Specification of a data source. For vector and raster sources, either TileJSON or a URL to a TileJSON must be provided. For image and video sources, a URL must be provided. For GeoJSON sources, a URL or inline GeoJSON must be provided."}},"source":["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image","source_canvas"],"source_vector":{"type":{"required":true,"type":"enum","values":{"vector":{"doc":"A vector tile source."}},"doc":"The type of the source."},"url":{"type":"string","doc":"A URL to a TileJSON resource. Supported protocols are `http:`, `https:`, and `mapbox://<mapid>`."},"tiles":{"type":"array","value":"string","doc":"An array of one or more tile source URLs, as in the TileJSON spec."},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.0511,180,85.0511],"doc":"An array containing the longitude and latitude of the southwest and northeast corners of the source\'s bounding box in the following order: `[sw.lng, sw.lat, ne.lng, ne.lat]`. When this property is included in a source, no tiles outside of the given bounds are requested by Mapbox GL."},"minzoom":{"type":"number","default":0,"doc":"Minimum zoom level for which tiles are available, as in the TileJSON spec."},"maxzoom":{"type":"number","default":22,"doc":"Maximum zoom level for which tiles are available, as in the TileJSON spec. Data from tiles at the maxzoom are used when displaying the map at higher zoom levels."},"attribution":{"type":"string","doc":"Contains an attribution to be displayed when the map is shown to a user."},"*":{"type":"*","doc":"Other keys to configure the data source."}},"source_raster":{"type":{"required":true,"type":"enum","values":{"raster":{"doc":"A raster tile source."}},"doc":"The type of the source."},"url":{"type":"string","doc":"A URL to a TileJSON resource. Supported protocols are `http:`, `https:`, and `mapbox://<mapid>`."},"tiles":{"type":"array","value":"string","doc":"An array of one or more tile source URLs, as in the TileJSON spec."},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.0511,180,85.0511],"doc":"An array containing the longitude and latitude of the southwest and northeast corners of the source\'s bounding box in the following order: `[sw.lng, sw.lat, ne.lng, ne.lat]`. When this property is included in a source, no tiles outside of the given bounds are requested by Mapbox GL."},"minzoom":{"type":"number","default":0,"doc":"Minimum zoom level for which tiles are available, as in the TileJSON spec."},"maxzoom":{"type":"number","default":22,"doc":"Maximum zoom level for which tiles are available, as in the TileJSON spec. Data from tiles at the maxzoom are used when displaying the map at higher zoom levels."},"tileSize":{"type":"number","default":512,"units":"pixels","doc":"The minimum visual size to display tiles for this layer. Only configurable for raster layers."},"scheme":{"type":"enum","values":{"xyz":{"doc":"Slippy map tilenames scheme."},"tms":{"doc":"OSGeo spec scheme."}},"default":"xyz","doc":"Influences the y direction of the tile coordinates. The global-mercator (aka Spherical Mercator) profile is assumed."},"attribution":{"type":"string","doc":"Contains an attribution to be displayed when the map is shown to a user."},"*":{"type":"*","doc":"Other keys to configure the data source."}},"source_raster_dem":{"type":{"required":true,"type":"enum","values":{"raster-dem":{"doc":"A raster DEM source using Mapbox Terrain RGB"}},"doc":"The type of the source."},"url":{"type":"string","doc":"A URL to a TileJSON resource. Supported protocols are `http:`, `https:`, and `mapbox://<mapid>`."},"tiles":{"type":"array","value":"string","doc":"An array of one or more tile source URLs, as in the TileJSON spec."},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.0511,180,85.0511],"doc":"An array containing the longitude and latitude of the southwest and northeast corners of the source\'s bounding box in the following order: `[sw.lng, sw.lat, ne.lng, ne.lat]`. When this property is included in a source, no tiles outside of the given bounds are requested by Mapbox GL."},"minzoom":{"type":"number","default":0,"doc":"Minimum zoom level for which tiles are available, as in the TileJSON spec."},"maxzoom":{"type":"number","default":22,"doc":"Maximum zoom level for which tiles are available, as in the TileJSON spec. Data from tiles at the maxzoom are used when displaying the map at higher zoom levels."},"tileSize":{"type":"number","default":512,"units":"pixels","doc":"The minimum visual size to display tiles for this layer. Only configurable for raster layers."},"attribution":{"type":"string","doc":"Contains an attribution to be displayed when the map is shown to a user."},"*":{"type":"*","doc":"Other keys to configure the data source."}},"source_geojson":{"type":{"required":true,"type":"enum","values":{"geojson":{"doc":"A GeoJSON data source."}},"doc":"The data type of the GeoJSON source."},"data":{"type":"*","doc":"A URL to a GeoJSON file, or inline GeoJSON."},"maxzoom":{"type":"number","default":18,"doc":"Maximum zoom level at which to create vector tiles (higher means greater detail at high zoom levels)."},"buffer":{"type":"number","default":128,"maximum":512,"minimum":0,"doc":"Size of the tile buffer on each side. A value of 0 produces no buffer. A value of 512 produces a buffer as wide as the tile itself. Larger values produce fewer rendering artifacts near tile edges and slower performance."},"tolerance":{"type":"number","default":0.375,"doc":"Douglas-Peucker simplification tolerance (higher means simpler geometries and faster performance)."},"cluster":{"type":"boolean","default":false,"doc":"If the data is a collection of point features, setting this to true clusters the points by radius into groups."},"clusterRadius":{"type":"number","default":50,"minimum":0,"doc":"Radius of each cluster if clustering is enabled. A value of 512 indicates a radius equal to the width of a tile."},"clusterMaxZoom":{"type":"number","doc":"Max zoom on which to cluster points if clustering is enabled. Defaults to one zoom less than maxzoom (so that last zoom features are not clustered)."}},"source_video":{"type":{"required":true,"type":"enum","values":{"video":{"doc":"A video data source."}},"doc":"The data type of the video source."},"urls":{"required":true,"type":"array","value":"string","doc":"URLs to video content in order of preferred format."},"coordinates":{"required":true,"doc":"Corners of video specified in longitude, latitude pairs.","type":"array","length":4,"value":{"type":"array","length":2,"value":"number","doc":"A single longitude, latitude pair."}}},"source_image":{"type":{"required":true,"type":"enum","values":{"image":{"doc":"An image data source."}},"doc":"The data type of the image source."},"url":{"required":true,"type":"string","doc":"URL that points to an image."},"coordinates":{"required":true,"doc":"Corners of image specified in longitude, latitude pairs.","type":"array","length":4,"value":{"type":"array","length":2,"value":"number","doc":"A single longitude, latitude pair."}}},"source_canvas":{"type":{"required":true,"type":"enum","values":{"canvas":{"doc":"A canvas data source."}},"doc":"The data type of the canvas source."},"coordinates":{"required":true,"doc":"Corners of canvas specified in longitude, latitude pairs.","type":"array","length":4,"value":{"type":"array","length":2,"value":"number","doc":"A single longitude, latitude pair."}},"animate":{"type":"boolean","default":"true","doc":"Whether the canvas source is animated. If the canvas is static, `animate` should be set to `false` to improve performance."},"canvas":{"type":"string","required":true,"doc":"HTML ID of the canvas from which to read pixels."}},"layer":{"id":{"type":"string","doc":"Unique layer name.","required":true},"type":{"type":"enum","values":{"fill":{"doc":"A filled polygon with an optional stroked border.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"}}},"line":{"doc":"A stroked line.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"}}},"symbol":{"doc":"An icon or a text label.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"}}},"circle":{"doc":"A filled circle.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"}}},"heatmap":{"doc":"A heatmap.","sdk-support":{"basic functionality":{"js":"0.41.0"}}},"fill-extrusion":{"doc":"An extruded (3D) polygon.","sdk-support":{"basic functionality":{"js":"0.27.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"}}},"raster":{"doc":"Raster map textures such as satellite imagery.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"}}},"hillshade":{"doc":"Client-side hillshading visualization based on DEM data. Currently, the implementation only supports Mapbox Terrain RGB tiles","sdk-support":{"basic functionality":{"js":"0.43.0"}}},"background":{"doc":"The background color or pattern of the map.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"}}}},"doc":"Rendering type of this layer.","required":true},"metadata":{"type":"*","doc":"Arbitrary properties useful to track with the layer, but do not influence rendering. Properties should be prefixed to avoid collisions, like \'mapbox:\'."},"source":{"type":"string","doc":"Name of a source description to be used for this layer. Required for all layer types except `background`."},"source-layer":{"type":"string","doc":"Layer to use from a vector tile source. Required for vector tile sources; prohibited for all other source types, including GeoJSON sources."},"minzoom":{"type":"number","minimum":0,"maximum":24,"doc":"The minimum zoom level on which the layer gets parsed and appears on."},"maxzoom":{"type":"number","minimum":0,"maximum":24,"doc":"The maximum zoom level on which the layer gets parsed and appears on."},"filter":{"type":"filter","doc":"A expression specifying conditions on source features. Only features that match the filter are displayed."},"layout":{"type":"layout","doc":"Layout properties for the layer."},"paint":{"type":"paint","doc":"Default paint properties for this layer."}},"layout":["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],"layout_background":{"visibility":{"type":"enum","values":{"visible":{"doc":"The layer is shown."},"none":{"doc":"The layer is not shown."}},"default":"visible","doc":"Whether this layer is displayed.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"}}}},"layout_fill":{"visibility":{"type":"enum","values":{"visible":{"doc":"The layer is shown."},"none":{"doc":"The layer is not shown."}},"default":"visible","doc":"Whether this layer is displayed.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"}}}},"layout_circle":{"visibility":{"type":"enum","values":{"visible":{"doc":"The layer is shown."},"none":{"doc":"The layer is not shown."}},"default":"visible","doc":"Whether this layer is displayed.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"}}}},"layout_heatmap":{"visibility":{"type":"enum","values":{"visible":{"doc":"The layer is shown."},"none":{"doc":"The layer is not shown."}},"default":"visible","doc":"Whether this layer is displayed.","sdk-support":{"basic functionality":{"js":"0.41.0"}}}},"layout_fill-extrusion":{"visibility":{"type":"enum","values":{"visible":{"doc":"The layer is shown."},"none":{"doc":"The layer is not shown."}},"default":"visible","doc":"Whether this layer is displayed.","sdk-support":{"basic functionality":{"js":"0.27.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"}}}},"layout_line":{"line-cap":{"type":"enum","function":"piecewise-constant","zoom-function":true,"values":{"butt":{"doc":"A cap with a squared-off end which is drawn to the exact endpoint of the line."},"round":{"doc":"A cap with a rounded end which is drawn beyond the endpoint of the line at a radius of one-half of the line\'s width and centered on the endpoint of the line."},"square":{"doc":"A cap with a squared-off end which is drawn beyond the endpoint of the line at a distance of one-half of the line\'s width."}},"default":"butt","doc":"The display of line endings.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"line-join":{"type":"enum","function":"piecewise-constant","zoom-function":true,"property-function":true,"values":{"bevel":{"doc":"A join with a squared-off end which is drawn beyond the endpoint of the line at a distance of one-half of the line\'s width."},"round":{"doc":"A join with a rounded end which is drawn beyond the endpoint of the line at a radius of one-half of the line\'s width and centered on the endpoint of the line."},"miter":{"doc":"A join with a sharp, angled corner which is drawn with the outer sides beyond the endpoint of the path until they meet."}},"default":"miter","doc":"The display of lines when joining.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.40.0","android":"5.2.0","ios":"3.7.0","macos":"0.6.0"}}},"line-miter-limit":{"type":"number","default":2,"function":"interpolated","zoom-function":true,"doc":"Used to automatically convert miter joins to bevel joins for sharp angles.","requires":[{"line-join":"miter"}],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"line-round-limit":{"type":"number","default":1.05,"function":"interpolated","zoom-function":true,"doc":"Used to automatically convert round joins to miter joins for shallow angles.","requires":[{"line-join":"round"}],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"visibility":{"type":"enum","values":{"visible":{"doc":"The layer is shown."},"none":{"doc":"The layer is not shown."}},"default":"visible","doc":"Whether this layer is displayed.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}}},"layout_symbol":{"symbol-placement":{"type":"enum","function":"piecewise-constant","zoom-function":true,"values":{"point":{"doc":"The label is placed at the point where the geometry is located."},"line":{"doc":"The label is placed along the line of the geometry. Can only be used on `LineString` and `Polygon` geometries."}},"default":"point","doc":"Label placement relative to its geometry.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"symbol-spacing":{"type":"number","default":250,"minimum":1,"function":"interpolated","zoom-function":true,"units":"pixels","doc":"Distance between two symbol anchors.","requires":[{"symbol-placement":"line"}],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"symbol-avoid-edges":{"type":"boolean","function":"piecewise-constant","zoom-function":true,"default":false,"doc":"If true, the symbols will not cross tile edges to avoid mutual collisions. Recommended in layers that don\'t have enough padding in the vector tile to prevent collisions, or if it is a point symbol layer placed after a line symbol layer.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"icon-allow-overlap":{"type":"boolean","function":"piecewise-constant","zoom-function":true,"default":false,"doc":"If true, the icon will be visible even if it collides with other previously drawn symbols.","requires":["icon-image"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"icon-ignore-placement":{"type":"boolean","function":"piecewise-constant","zoom-function":true,"default":false,"doc":"If true, other symbols can be visible even if they collide with the icon.","requires":["icon-image"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"icon-optional":{"type":"boolean","function":"piecewise-constant","zoom-function":true,"default":false,"doc":"If true, text will display without their corresponding icons when the icon collides with other symbols and the text does not.","requires":["icon-image","text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"icon-rotation-alignment":{"type":"enum","function":"piecewise-constant","zoom-function":true,"values":{"map":{"doc":"When `symbol-placement` is set to `point`, aligns icons east-west. When `symbol-placement` is set to `line`, aligns icon x-axes with the line."},"viewport":{"doc":"Produces icons whose x-axes are aligned with the x-axis of the viewport, regardless of the value of `symbol-placement`."},"auto":{"doc":"When `symbol-placement` is set to `point`, this is equivalent to `viewport`. When `symbol-placement` is set to `line`, this is equivalent to `map`."}},"default":"auto","doc":"In combination with `symbol-placement`, determines the rotation behavior of icons.","requires":["icon-image"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"`auto` value":{"js":"0.25.0","android":"4.2.0","ios":"3.4.0","macos":"0.3.0"},"data-driven styling":{}}},"icon-size":{"type":"number","default":1,"minimum":0,"function":"interpolated","zoom-function":true,"property-function":true,"units":"factor of the original icon size","doc":"Scales the original size of the icon by the provided factor. The new pixel size of the image will be the original pixel size multiplied by `icon-size`. 1 is the original size; 3 triples the size of the image.","requires":["icon-image"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.35.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"}}},"icon-text-fit":{"type":"enum","function":"piecewise-constant","zoom-function":true,"values":{"none":{"doc":"The icon is displayed at its intrinsic aspect ratio."},"width":{"doc":"The icon is scaled in the x-dimension to fit the width of the text."},"height":{"doc":"The icon is scaled in the y-dimension to fit the height of the text."},"both":{"doc":"The icon is scaled in both x- and y-dimensions."}},"default":"none","doc":"Scales the icon to fit around the associated text.","requires":["icon-image","text-field"],"sdk-support":{"basic functionality":{"js":"0.21.0","android":"4.2.0","ios":"3.4.0","macos":"0.2.1"},"data-driven styling":{}}},"icon-text-fit-padding":{"type":"array","value":"number","length":4,"default":[0,0,0,0],"units":"pixels","function":"interpolated","zoom-function":true,"doc":"Size of the additional area added to dimensions determined by `icon-text-fit`, in clockwise order: top, right, bottom, left.","requires":["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],"sdk-support":{"basic functionality":{"js":"0.21.0","android":"4.2.0","ios":"3.4.0","macos":"0.2.1"},"data-driven styling":{}}},"icon-image":{"type":"string","function":"piecewise-constant","zoom-function":true,"property-function":true,"doc":"Name of image in sprite to use for drawing an image background. Within literal values and zoom functions, property names enclosed in curly brackets (e.g. `{token}`) are replaced with the value of the named property. Expressions and property functions do not support this syntax; for equivalent functionality in expressions, use the [`concat`](#expressions-concat) and [`get`](#expressions-get) operators.","tokens":true,"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.35.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"}}},"icon-rotate":{"type":"number","default":0,"period":360,"function":"interpolated","zoom-function":true,"property-function":true,"units":"degrees","doc":"Rotates the icon clockwise.","requires":["icon-image"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.21.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"icon-padding":{"type":"number","default":2,"minimum":0,"function":"interpolated","zoom-function":true,"units":"pixels","doc":"Size of the additional area around the icon bounding box used for detecting symbol collisions.","requires":["icon-image"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"icon-keep-upright":{"type":"boolean","function":"piecewise-constant","zoom-function":true,"default":false,"doc":"If true, the icon may be flipped to prevent it from being rendered upside-down.","requires":["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":"line"}],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"icon-offset":{"type":"array","value":"number","length":2,"default":[0,0],"function":"interpolated","zoom-function":true,"property-function":true,"doc":"Offset distance of icon from its anchor. Positive values indicate right and down, while negative values indicate left and up. Each component is multiplied by the value of `icon-size` to obtain the final offset in pixels. When combined with `icon-rotate` the offset will be as if the rotated direction was up.","requires":["icon-image"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.29.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"icon-anchor":{"type":"enum","function":"piecewise-constant","zoom-function":true,"property-function":true,"values":{"center":{"doc":"The center of the icon is placed closest to the anchor."},"left":{"doc":"The left side of the icon is placed closest to the anchor."},"right":{"doc":"The right side of the icon is placed closest to the anchor."},"top":{"doc":"The top of the icon is placed closest to the anchor."},"bottom":{"doc":"The bottom of the icon is placed closest to the anchor."},"top-left":{"doc":"The top left corner of the icon is placed closest to the anchor."},"top-right":{"doc":"The top right corner of the icon is placed closest to the anchor."},"bottom-left":{"doc":"The bottom left corner of the icon is placed closest to the anchor."},"bottom-right":{"doc":"The bottom right corner of the icon is placed closest to the anchor."}},"default":"center","doc":"Part of the icon placed closest to the anchor.","requires":["icon-image"],"sdk-support":{"basic functionality":{"js":"0.40.0","android":"5.2.0","ios":"3.7.0","macos":"0.6.0"},"data-driven styling":{"js":"0.40.0","android":"5.2.0","ios":"3.7.0","macos":"0.6.0"}}},"icon-pitch-alignment":{"type":"enum","function":"piecewise-constant","zoom-function":true,"values":{"map":{"doc":"The icon is aligned to the plane of the map."},"viewport":{"doc":"The icon is aligned to the plane of the viewport."},"auto":{"doc":"Automatically matches the value of `icon-rotation-alignment`."}},"default":"auto","doc":"Orientation of icon when map is pitched.","requires":["icon-image"],"sdk-support":{"basic functionality":{"js":"0.39.0","android":"5.2.0","ios":"3.7.0","macos":"0.6.0"},"data-driven styling":{}}},"text-pitch-alignment":{"type":"enum","function":"piecewise-constant","zoom-function":true,"values":{"map":{"doc":"The text is aligned to the plane of the map."},"viewport":{"doc":"The text is aligned to the plane of the viewport."},"auto":{"doc":"Automatically matches the value of `text-rotation-alignment`."}},"default":"auto","doc":"Orientation of text when map is pitched.","requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.21.0","android":"4.2.0","ios":"3.4.0","macos":"0.2.1"},"`auto` value":{"js":"0.25.0","android":"4.2.0","ios":"3.4.0","macos":"0.3.0"},"data-driven styling":{}}},"text-rotation-alignment":{"type":"enum","function":"piecewise-constant","zoom-function":true,"values":{"map":{"doc":"When `symbol-placement` is set to `point`, aligns text east-west. When `symbol-placement` is set to `line`, aligns text x-axes with the line."},"viewport":{"doc":"Produces glyphs whose x-axes are aligned with the x-axis of the viewport, regardless of the value of `symbol-placement`."},"auto":{"doc":"When `symbol-placement` is set to `point`, this is equivalent to `viewport`. When `symbol-placement` is set to `line`, this is equivalent to `map`."}},"default":"auto","doc":"In combination with `symbol-placement`, determines the rotation behavior of the individual glyphs forming the text.","requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"`auto` value":{"js":"0.25.0","android":"4.2.0","ios":"3.4.0","macos":"0.3.0"},"data-driven styling":{}}},"text-field":{"type":"string","function":"piecewise-constant","zoom-function":true,"property-function":true,"default":"","tokens":true,"doc":"Value to use for a text label. Within literal values and zoom functions, property names enclosed in curly brackets (e.g. `{token}`) are replaced with the value of the named property. Expressions and property functions do not support this syntax; for equivalent functionality in expressions, use the [`concat`](#expressions-concat) and [`get`](#expressions-get) operators.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.33.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"text-font":{"type":"array","value":"string","function":"piecewise-constant","zoom-function":true,"property-function":true,"default":["Open Sans Regular","Arial Unicode MS Regular"],"doc":"Font stack to use for displaying text.","requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"text-size":{"type":"number","default":16,"minimum":0,"units":"pixels","function":"interpolated","zoom-function":true,"property-function":true,"doc":"Font size.","requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.35.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"}}},"text-max-width":{"type":"number","default":10,"minimum":0,"units":"ems","function":"interpolated","zoom-function":true,"property-function":true,"doc":"The maximum line width for text wrapping.","requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.40.0","android":"5.2.0","ios":"3.7.0","macos":"0.6.0"}}},"text-line-height":{"type":"number","default":1.2,"units":"ems","function":"interpolated","zoom-function":true,"doc":"Text leading value for multi-line text.","requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"text-letter-spacing":{"type":"number","default":0,"units":"ems","function":"interpolated","zoom-function":true,"property-function":true,"doc":"Text tracking amount.","requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.40.0","android":"5.2.0","ios":"3.7.0","macos":"0.6.0"}}},"text-justify":{"type":"enum","function":"piecewise-constant","zoom-function":true,"property-function":true,"values":{"left":{"doc":"The text is aligned to the left."},"center":{"doc":"The text is centered."},"right":{"doc":"The text is aligned to the right."}},"default":"center","doc":"Text justification options.","requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.39.0","android":"5.2.0","ios":"3.7.0","macos":"0.6.0"}}},"text-anchor":{"type":"enum","function":"piecewise-constant","zoom-function":true,"property-function":true,"values":{"center":{"doc":"The center of the text is placed closest to the anchor."},"left":{"doc":"The left side of the text is placed closest to the anchor."},"right":{"doc":"The right side of the text is placed closest to the anchor."},"top":{"doc":"The top of the text is placed closest to the anchor."},"bottom":{"doc":"The bottom of the text is placed closest to the anchor."},"top-left":{"doc":"The top left corner of the text is placed closest to the anchor."},"top-right":{"doc":"The top right corner of the text is placed closest to the anchor."},"bottom-left":{"doc":"The bottom left corner of the text is placed closest to the anchor."},"bottom-right":{"doc":"The bottom right corner of the text is placed closest to the anchor."}},"default":"center","doc":"Part of the text placed closest to the anchor.","requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.39.0","android":"5.2.0","ios":"3.7.0","macos":"0.6.0"}}},"text-max-angle":{"type":"number","default":45,"units":"degrees","function":"interpolated","zoom-function":true,"doc":"Maximum angle change between adjacent characters.","requires":["text-field",{"symbol-placement":"line"}],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"text-rotate":{"type":"number","default":0,"period":360,"units":"degrees","function":"interpolated","zoom-function":true,"property-function":true,"doc":"Rotates the text clockwise.","requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.35.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"}}},"text-padding":{"type":"number","default":2,"minimum":0,"units":"pixels","function":"interpolated","zoom-function":true,"doc":"Size of the additional area around the text bounding box used for detecting symbol collisions.","requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"text-keep-upright":{"type":"boolean","function":"piecewise-constant","zoom-function":true,"default":true,"doc":"If true, the text may be flipped vertically to prevent it from being rendered upside-down.","requires":["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":"line"}],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"text-transform":{"type":"enum","function":"piecewise-constant","zoom-function":true,"property-function":true,"values":{"none":{"doc":"The text is not altered."},"uppercase":{"doc":"Forces all letters to be displayed in uppercase."},"lowercase":{"doc":"Forces all letters to be displayed in lowercase."}},"default":"none","doc":"Specifies how to capitalize text, similar to the CSS `text-transform` property.","requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.33.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"text-offset":{"type":"array","doc":"Offset distance of text from its anchor. Positive values indicate right and down, while negative values indicate left and up.","value":"number","units":"ems","function":"interpolated","zoom-function":true,"property-function":true,"length":2,"default":[0,0],"requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.35.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"}}},"text-allow-overlap":{"type":"boolean","function":"piecewise-constant","zoom-function":true,"default":false,"doc":"If true, the text will be visible even if it collides with other previously drawn symbols.","requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"text-ignore-placement":{"type":"boolean","function":"piecewise-constant","zoom-function":true,"default":false,"doc":"If true, other symbols can be visible even if they collide with the text.","requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"text-optional":{"type":"boolean","function":"piecewise-constant","zoom-function":true,"default":false,"doc":"If true, icons will display without their corresponding text when the text collides with other symbols and the icon does not.","requires":["text-field","icon-image"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"visibility":{"type":"enum","values":{"visible":{"doc":"The layer is shown."},"none":{"doc":"The layer is not shown."}},"default":"visible","doc":"Whether this layer is displayed.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}}},"layout_raster":{"visibility":{"type":"enum","values":{"visible":{"doc":"The layer is shown."},"none":{"doc":"The layer is not shown."}},"default":"visible","doc":"Whether this layer is displayed.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}}},"layout_hillshade":{"visibility":{"type":"enum","values":{"visible":{"doc":"The layer is shown."},"none":{"doc":"The layer is not shown."}},"default":"visible","doc":"Whether this layer is displayed.","sdk-support":{"basic functionality":{"js":"0.43.0"},"data-driven styling":{}}}},"filter":{"type":"array","value":"*","doc":"A filter selects specific features from a layer."},"filter_operator":{"type":"enum","values":{"==":{"doc":"`[\\"==\\", key, value]` equality: `feature[key] = value`"},"!=":{"doc":"`[\\"!=\\", key, value]` inequality: `feature[key] ≠ value`"},">":{"doc":"`[\\">\\", key, value]` greater than: `feature[key] > value`"},">=":{"doc":"`[\\">=\\", key, value]` greater than or equal: `feature[key] ≥ value`"},"<":{"doc":"`[\\"<\\", key, value]` less than: `feature[key] < value`"},"<=":{"doc":"`[\\"<=\\", key, value]` less than or equal: `feature[key] ≤ value`"},"in":{"doc":"`[\\"in\\", key, v0, ..., vn]` set inclusion: `feature[key] ∈ {v0, ..., vn}`"},"!in":{"doc":"`[\\"!in\\", key, v0, ..., vn]` set exclusion: `feature[key] ∉ {v0, ..., vn}`"},"all":{"doc":"`[\\"all\\", f0, ..., fn]` logical `AND`: `f0 ∧ ... ∧ fn`"},"any":{"doc":"`[\\"any\\", f0, ..., fn]` logical `OR`: `f0 ∨ ... ∨ fn`"},"none":{"doc":"`[\\"none\\", f0, ..., fn]` logical `NOR`: `¬f0 ∧ ... ∧ ¬fn`"},"has":{"doc":"`[\\"has\\", key]` `feature[key]` exists"},"!has":{"doc":"`[\\"!has\\", key]` `feature[key]` does not exist"}},"doc":"The filter operator."},"geometry_type":{"type":"enum","values":{"Point":{"doc":"Filter to point geometries."},"LineString":{"doc":"Filter to line geometries."},"Polygon":{"doc":"Filter to polygon geometries."}},"doc":"The geometry type for the filter to select."},"function":{"expression":{"type":"expression","doc":"An expression."},"stops":{"type":"array","doc":"An array of stops.","value":"function_stop"},"base":{"type":"number","default":1,"minimum":0,"doc":"The exponential base of the interpolation curve. It controls the rate at which the result increases. Higher values make the result increase more towards the high end of the range. With `1` the stops are interpolated linearly."},"property":{"type":"string","doc":"The name of a feature property to use as the function input.","default":"$zoom"},"type":{"type":"enum","values":{"identity":{"doc":"Return the input value as the output value."},"exponential":{"doc":"Generate an output by interpolating between stops just less than and just greater than the function input."},"interval":{"doc":"Return the output value of the stop just less than the function input."},"categorical":{"doc":"Return the output value of the stop equal to the function input."}},"doc":"The interpolation strategy to use in function evaluation.","default":"exponential"},"colorSpace":{"type":"enum","values":{"rgb":{"doc":"Use the RGB color space to interpolate color values"},"lab":{"doc":"Use the LAB color space to interpolate color values."},"hcl":{"doc":"Use the HCL color space to interpolate color values, interpolating the Hue, Chroma, and Luminance channels individually."}},"doc":"The color space in which colors interpolated. Interpolating colors in perceptual color spaces like LAB and HCL tend to produce color ramps that look more consistent and produce colors that can be differentiated more easily than those interpolated in RGB space.","default":"rgb"},"default":{"type":"*","required":false,"doc":"A value to serve as a fallback function result when a value isn\'t otherwise available. It is used in the following circumstances:\\n* In categorical functions, when the feature value does not match any of the stop domain values.\\n* In property and zoom-and-property functions, when a feature does not contain a value for the specified property.\\n* In identity functions, when the feature value is not valid for the style property (for example, if the function is being used for a `circle-color` property but the feature property value is not a string or not a valid color).\\n* In interval or exponential property and zoom-and-property functions, when the feature value is not numeric.\\nIf no default is provided, the style property\'s default is used in these circumstances."}},"function_stop":{"type":"array","minimum":0,"maximum":22,"value":["number","color"],"length":2,"doc":"Zoom level and value pair."},"expression":{"type":"array","value":"*","minimum":1,"doc":"An expression defines a function that can be used for data-driven style properties or feature filters."},"expression_name":{"doc":"","type":"enum","values":{"let":{"doc":"Binds expressions to named variables, which can then be referenced in the result expression using [\\"var\\", \\"variable_name\\"].","group":"Variable binding"},"var":{"doc":"References variable bound using \\"let\\".","group":"Variable binding"},"literal":{"doc":"Provides a literal array or object value.","group":"Types"},"array":{"doc":"Asserts that the input is an array (optionally with a specific item type and length). If, when the input expression is evaluated, it is not of the asserted type, then this assertion will cause the whole expression to be aborted.","group":"Types"},"at":{"doc":"Retrieves an item from an array.","group":"Lookup"},"case":{"doc":"Selects the first output whose corresponding test condition evaluates to true.","group":"Decision"},"match":{"doc":"Selects the output whose label value matches the input value, or the fallback value if no match is found. The `input` can be any string or number expression (e.g. `[\\"get\\", \\"building_type\\"]`). Each label can either be a single literal value or an array of values.","group":"Decision"},"coalesce":{"doc":"Evaluates each expression in turn until the first non-null value is obtained, and returns that value.","group":"Decision"},"step":{"doc":"Produces discrete, stepped results by evaluating a piecewise-constant function defined by pairs of input and output values (\\"stops\\"). The `input` may be any numeric expression (e.g., `[\\"get\\", \\"population\\"]`). Stop inputs must be numeric literals in strictly ascending order. Returns the output value of the stop just less than the input, or the first input if the input is less than the first stop.","group":"Ramps, scales, curves"},"interpolate":{"doc":"Produces continuous, smooth results by interpolating between pairs of input and output values (\\"stops\\"). The `input` may be any numeric expression (e.g., `[\\"get\\", \\"population\\"]`). Stop inputs must be numeric literals in strictly ascending order. The output type must be `number`, `array<number>`, or `color`.\\n\\nInterpolation types:\\n- `[\\"linear\\"]`: interpolates linearly between the pair of stops just less than and just greater than the input.\\n- `[\\"exponential\\", base]`: interpolates exponentially between the stops just less than and just greater than the input. `base` controls the rate at which the output increases: higher values make the output increase more towards the high end of the range. With values close to 1 the output increases linearly.\\n- `[\\"cubic-bezier\\", x1, y1, x2, y2]`: interpolates using the cubic bezier curve defined by the given control points.","group":"Ramps, scales, curves"},"ln2":{"doc":"Returns mathematical constant ln(2).","group":"Math"},"pi":{"doc":"Returns the mathematical constant pi.","group":"Math"},"e":{"doc":"Returns the mathematical constant e.","group":"Math"},"typeof":{"doc":"Returns a string describing the type of the given value.","group":"Types"},"string":{"doc":"Asserts that the input value is a string. If multiple values are provided, each one is evaluated in order until a string value is obtained. If none of the inputs are strings, the expression is an error.","group":"Types"},"number":{"doc":"Asserts that the input value is a number. If multiple values are provided, each one is evaluated in order until a number value is obtained. If none of the inputs are numbers, the expression is an error.","group":"Types"},"boolean":{"doc":"Asserts that the input value is a boolean. If multiple values are provided, each one is evaluated in order until a boolean value is obtained. If none of the inputs are booleans, the expression is an error.","group":"Types"},"object":{"doc":"Asserts that the input value is an object. If it is not, the expression is an error.","group":"Types"},"to-string":{"doc":"Converts the input value to a string. If the input is `null`, the result is `\\"null\\"`. If the input is a boolean, the result is `\\"true\\"` or `\\"false\\"`. If the input is a number, it is converted to a string as specified by the [\\"NumberToString\\" algorithm](https://tc39.github.io/ecma262/#sec-tostring-applied-to-the-number-type) of the ECMAScript Language Specification. If the input is a color, it is converted to a string of the form `\\"rgba(r,g,b,a)\\"`, where `r`, `g`, and `b` are numerals ranging from 0 to 255, and `a` ranges from 0 to 1. Otherwise, the input is converted to a string in the format specified by the [`JSON.stringify`](https://tc39.github.io/ecma262/#sec-json.stringify) function of the ECMAScript Language Specification.","group":"Types"},"to-number":{"doc":"Converts the input value to a number, if possible. If the input is `null` or `false`, the result is 0. If the input is `true`, the result is 1. If the input is a string, it is converted to a number as specified by the [\\"ToNumber Applied to the String Type\\" algorithm](https://tc39.github.io/ecma262/#sec-tonumber-applied-to-the-string-type) of the ECMAScript Language Specification. If multiple values are provided, each one is evaluated in order until the first successful conversion is obtained. If none of the inputs can be converted, the expression is an error.","group":"Types"},"to-boolean":{"doc":"Converts the input value to a boolean. The result is `false` when then input is an empty string, 0, `false`, `null`, or `NaN`; otherwise it is `true`.","group":"Types"},"to-rgba":{"doc":"Returns a four-element array containing the input color\'s red, green, blue, and alpha components, in that order.","group":"Color"},"to-color":{"doc":"Converts the input value to a color. If multiple values are provided, each one is evaluated in order until the first successful conversion is obtained. If none of the inputs can be converted, the expression is an error.","group":"Types"},"rgb":{"doc":"Creates a color value from red, green, and blue components, which must range between 0 and 255, and an alpha component of 1. If any component is out of range, the expression is an error.","group":"Color"},"rgba":{"doc":"Creates a color value from red, green, blue components, which must range between 0 and 255, and an alpha component which must range between 0 and 1. If any component is out of range, the expression is an error.","group":"Color"},"get":{"doc":"Retrieves a property value from the current feature\'s properties, or from another object if a second argument is provided. Returns null if the requested property is missing.","group":"Lookup"},"has":{"doc":"Tests for the presence of an property value in the current feature\'s properties, or from another object if a second argument is provided.","group":"Lookup"},"length":{"doc":"Gets the length of an array or string.","group":"Lookup"},"properties":{"doc":"Gets the feature properties object. Note that in some cases, it may be more efficient to use [\\"get\\", \\"property_name\\"] directly.","group":"Feature data"},"geometry-type":{"doc":"Gets the feature\'s geometry type: Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon.","group":"Feature data"},"id":{"doc":"Gets the feature\'s id, if it has one.","group":"Feature data"},"zoom":{"doc":"Gets the current zoom level. Note that in style layout and paint properties, [\\"zoom\\"] may only appear as the input to a top-level \\"step\\" or \\"interpolate\\" expression.","group":"Zoom"},"heatmap-density":{"doc":"Gets the kernel density estimation of a pixel in a heatmap layer, which is a relative measure of how many data points are crowded around a particular pixel. Can only be used in the `heatmap-color` property.","group":"Heatmap"},"+":{"doc":"Returns the sum of the inputs.","group":"Math"},"*":{"doc":"Returns the product of the inputs.","group":"Math"},"-":{"doc":"For two inputs, returns the result of subtracting the second input from the first. For a single input, returns the result of subtracting it from 0.","group":"Math"},"/":{"doc":"Returns the result of floating point division of the first input by the second.","group":"Math"},"%":{"doc":"Returns the remainder after integer division of the first input by the second.","group":"Math"},"^":{"doc":"Returns the result of raising the first input to the power specified by the second.","group":"Math"},"sqrt":{"doc":"Returns the square root of the input.","group":"Math"},"log10":{"doc":"Returns the base-ten logarithm of the input.","group":"Math"},"ln":{"doc":"Returns the natural logarithm of the input.","group":"Math"},"log2":{"doc":"Returns the base-two logarithm of the input.","group":"Math"},"sin":{"doc":"Returns the sine of the input.","group":"Math"},"cos":{"doc":"Returns the cosine of the input.","group":"Math"},"tan":{"doc":"Returns the tangent of the input.","group":"Math"},"asin":{"doc":"Returns the arcsine of the input.","group":"Math"},"acos":{"doc":"Returns the arccosine of the input.","group":"Math"},"atan":{"doc":"Returns the arctangent of the input.","group":"Math"},"min":{"doc":"Returns the minimum value of the inputs.","group":"Math"},"max":{"doc":"Returns the maximum value of the inputs.","group":"Math"},"==":{"doc":"Returns `true` if the input values are equal, `false` otherwise. The inputs must be numbers, strings, or booleans, and both of the same type.","group":"Decision"},"!=":{"doc":"Returns `true` if the input values are not equal, `false` otherwise. The inputs must be numbers, strings, or booleans, and both of the same type.","group":"Decision"},">":{"doc":"Returns `true` if the first input is strictly greater than the second, `false` otherwise. The inputs must be numbers or strings, and both of the same type.","group":"Decision"},"<":{"doc":"Returns `true` if the first input is strictly less than the second, `false` otherwise. The inputs must be numbers or strings, and both of the same type.","group":"Decision"},">=":{"doc":"Returns `true` if the first input is greater than or equal to the second, `false` otherwise. The inputs must be numbers or strings, and both of the same type.","group":"Decision"},"<=":{"doc":"Returns `true` if the first input is less than or equal to the second, `false` otherwise. The inputs must be numbers or strings, and both of the same type.","group":"Decision"},"all":{"doc":"Returns `true` if all the inputs are `true`, `false` otherwise. The inputs are evaluated in order, and evaluation is short-circuiting: once an input expression evaluates to `false`, the result is `false` and no further input expressions are evaluated.","group":"Decision"},"any":{"doc":"Returns `true` if any of the inputs are `true`, `false` otherwise. The inputs are evaluated in order, and evaluation is short-circuiting: once an input expression evaluates to `true`, the result is `true` and no further input expressions are evaluated.","group":"Decision"},"!":{"doc":"Logical negation. Returns `true` if the input is `false`, and `false` if the input is `true`.","group":"Decision"},"upcase":{"doc":"Returns the input string converted to uppercase. Follows the Unicode Default Case Conversion algorithm and the locale-insensitive case mappings in the Unicode Character Database.","group":"String"},"downcase":{"doc":"Returns the input string converted to lowercase. Follows the Unicode Default Case Conversion algorithm and the locale-insensitive case mappings in the Unicode Character Database.","group":"String"},"concat":{"doc":"Returns a string consisting of the concatenation of the inputs.","group":"String"}}},"light":{"anchor":{"type":"enum","default":"viewport","values":{"map":{"doc":"The position of the light source is aligned to the rotation of the map."},"viewport":{"doc":"The position of the light source is aligned to the rotation of the viewport."}},"transition":false,"zoom-function":true,"property-function":false,"function":"piecewise-constant","doc":"Whether extruded geometries are lit relative to the map or viewport.","example":"map","sdk-support":{"basic functionality":{"js":"0.27.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"}}},"position":{"type":"array","default":[1.15,210,30],"length":3,"value":"number","transition":true,"function":"interpolated","zoom-function":true,"property-function":false,"doc":"Position of the light source relative to lit (extruded) geometries, in [r radial coordinate, a azimuthal angle, p polar angle] where r indicates the distance from the center of the base of an object to its light, a indicates the position of the light relative to 0° (0° when `light.anchor` is set to `viewport` corresponds to the top of the viewport, or 0° when `light.anchor` is set to `map` corresponds to due north, and degrees proceed clockwise), and p indicates the height of the light (from 0°, directly above, to 180°, directly below).","example":[1.5,90,80],"sdk-support":{"basic functionality":{"js":"0.27.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"}}},"color":{"type":"color","default":"#ffffff","function":"interpolated","zoom-function":true,"property-function":false,"transition":true,"doc":"Color tint for lighting extruded geometries.","sdk-support":{"basic functionality":{"js":"0.27.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"}}},"intensity":{"type":"number","default":0.5,"minimum":0,"maximum":1,"function":"interpolated","zoom-function":true,"property-function":false,"transition":true,"doc":"Intensity of lighting (on a scale from 0 to 1). Higher numbers will present as more extreme contrast.","sdk-support":{"basic functionality":{"js":"0.27.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"}}}},"paint":["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],"paint_fill":{"fill-antialias":{"type":"boolean","function":"piecewise-constant","zoom-function":true,"default":true,"doc":"Whether or not the fill should be antialiased.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"fill-opacity":{"type":"number","function":"interpolated","zoom-function":true,"property-function":true,"default":1,"minimum":0,"maximum":1,"doc":"The opacity of the entire fill layer. In contrast to the `fill-color`, this value will also affect the 1px stroke around the fill, if the stroke is used.","transition":true,"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.21.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"fill-color":{"type":"color","default":"#000000","doc":"The color of the filled part of this layer. This color can be specified as `rgba` with an alpha component and the color\'s opacity will not affect the opacity of the 1px stroke, if it is used.","function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"requires":[{"!":"fill-pattern"}],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.19.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"fill-outline-color":{"type":"color","doc":"The outline color of the fill. Matches the value of `fill-color` if unspecified.","function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"requires":[{"!":"fill-pattern"},{"fill-antialias":true}],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.19.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"fill-translate":{"type":"array","value":"number","length":2,"default":[0,0],"function":"interpolated","zoom-function":true,"transition":true,"units":"pixels","doc":"The geometry\'s offset. Values are [x, y] where negatives indicate left and up, respectively.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"fill-translate-anchor":{"type":"enum","function":"piecewise-constant","zoom-function":true,"values":{"map":{"doc":"The fill is translated relative to the map."},"viewport":{"doc":"The fill is translated relative to the viewport."}},"doc":"Controls the frame of reference for `fill-translate`.","default":"map","requires":["fill-translate"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"fill-pattern":{"type":"string","function":"piecewise-constant","zoom-function":true,"transition":true,"doc":"Name of image in sprite to use for drawing image fills. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512).","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}}},"paint_fill-extrusion":{"fill-extrusion-opacity":{"type":"number","function":"interpolated","zoom-function":true,"property-function":false,"default":1,"minimum":0,"maximum":1,"doc":"The opacity of the entire fill extrusion layer. This is rendered on a per-layer, not per-feature, basis, and data-driven styling is not available.","transition":true,"sdk-support":{"basic functionality":{"js":"0.27.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"}}},"fill-extrusion-color":{"type":"color","default":"#000000","doc":"The base color of the extruded fill. The extrusion\'s surfaces will be shaded differently based on this color in combination with the root `light` settings. If this color is specified as `rgba` with an alpha component, the alpha component will be ignored; use `fill-extrusion-opacity` to set layer opacity.","function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"requires":[{"!":"fill-extrusion-pattern"}],"sdk-support":{"basic functionality":{"js":"0.27.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"},"data-driven styling":{"js":"0.27.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"}}},"fill-extrusion-translate":{"type":"array","value":"number","length":2,"default":[0,0],"function":"interpolated","zoom-function":true,"transition":true,"units":"pixels","doc":"The geometry\'s offset. Values are [x, y] where negatives indicate left and up (on the flat plane), respectively.","sdk-support":{"basic functionality":{"js":"0.27.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"},"data-driven styling":{}}},"fill-extrusion-translate-anchor":{"type":"enum","function":"piecewise-constant","zoom-function":true,"values":{"map":{"doc":"The fill extrusion is translated relative to the map."},"viewport":{"doc":"The fill extrusion is translated relative to the viewport."}},"doc":"Controls the frame of reference for `fill-extrusion-translate`.","default":"map","requires":["fill-extrusion-translate"],"sdk-support":{"basic functionality":{"js":"0.27.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"},"data-driven styling":{}}},"fill-extrusion-pattern":{"type":"string","function":"piecewise-constant","zoom-function":true,"transition":true,"doc":"Name of image in sprite to use for drawing images on extruded fills. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512).","sdk-support":{"basic functionality":{"js":"0.27.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"},"data-driven styling":{}}},"fill-extrusion-height":{"type":"number","function":"interpolated","zoom-function":true,"property-function":true,"default":0,"minimum":0,"units":"meters","doc":"The height with which to extrude this layer.","transition":true,"sdk-support":{"basic functionality":{"js":"0.27.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"},"data-driven styling":{"js":"0.27.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"}}},"fill-extrusion-base":{"type":"number","function":"interpolated","zoom-function":true,"property-function":true,"default":0,"minimum":0,"units":"meters","doc":"The height with which to extrude the base of this layer. Must be less than or equal to `fill-extrusion-height`.","transition":true,"requires":["fill-extrusion-height"],"sdk-support":{"basic functionality":{"js":"0.27.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"},"data-driven styling":{"js":"0.27.0","android":"5.1.0","ios":"3.6.0","macos":"0.5.0"}}}},"paint_line":{"line-opacity":{"type":"number","doc":"The opacity at which the line will be drawn.","function":"interpolated","zoom-function":true,"property-function":true,"default":1,"minimum":0,"maximum":1,"transition":true,"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.29.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"line-color":{"type":"color","doc":"The color with which the line will be drawn.","default":"#000000","function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"requires":[{"!":"line-pattern"}],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.23.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"line-translate":{"type":"array","value":"number","length":2,"default":[0,0],"function":"interpolated","zoom-function":true,"transition":true,"units":"pixels","doc":"The geometry\'s offset. Values are [x, y] where negatives indicate left and up, respectively.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"line-translate-anchor":{"type":"enum","function":"piecewise-constant","zoom-function":true,"values":{"map":{"doc":"The line is translated relative to the map."},"viewport":{"doc":"The line is translated relative to the viewport."}},"doc":"Controls the frame of reference for `line-translate`.","default":"map","requires":["line-translate"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"line-width":{"type":"number","default":1,"minimum":0,"function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"units":"pixels","doc":"Stroke thickness.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.39.0"}}},"line-gap-width":{"type":"number","default":0,"minimum":0,"doc":"Draws a line casing outside of a line\'s actual path. Value indicates the width of the inner gap.","function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"units":"pixels","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.29.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"line-offset":{"type":"number","default":0,"doc":"The line\'s offset. For linear features, a positive value offsets the line to the right, relative to the direction of the line, and a negative value to the left. For polygon features, a positive value results in an inset, and a negative value results in an outset.","function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"units":"pixels","sdk-support":{"basic functionality":{"js":"0.12.1","android":"3.0.0","ios":"3.1.0","macos":"0.1.0"},"data-driven styling":{"js":"0.29.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"line-blur":{"type":"number","default":0,"minimum":0,"function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"units":"pixels","doc":"Blur applied to the line, in pixels.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.29.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"line-dasharray":{"type":"array","value":"number","function":"piecewise-constant","zoom-function":true,"doc":"Specifies the lengths of the alternating dashes and gaps that form the dash pattern. The lengths are later scaled by the line width. To convert a dash length to pixels, multiply the length by the current line width.","minimum":0,"transition":true,"units":"line widths","requires":[{"!":"line-pattern"}],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"line-pattern":{"type":"string","function":"piecewise-constant","zoom-function":true,"transition":true,"doc":"Name of image in sprite to use for drawing image lines. For seamless patterns, image width must be a factor of two (2, 4, 8, ..., 512).","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}}},"paint_circle":{"circle-radius":{"type":"number","default":5,"minimum":0,"function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"units":"pixels","doc":"Circle radius.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.18.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"circle-color":{"type":"color","default":"#000000","doc":"The fill color of the circle.","function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.18.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"circle-blur":{"type":"number","default":0,"doc":"Amount to blur the circle. 1 blurs the circle such that only the centerpoint is full opacity.","function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.20.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"circle-opacity":{"type":"number","doc":"The opacity at which the circle will be drawn.","default":1,"minimum":0,"maximum":1,"function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.20.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"circle-translate":{"type":"array","value":"number","length":2,"default":[0,0],"function":"interpolated","zoom-function":true,"transition":true,"units":"pixels","doc":"The geometry\'s offset. Values are [x, y] where negatives indicate left and up, respectively.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"circle-translate-anchor":{"type":"enum","function":"piecewise-constant","zoom-function":true,"values":{"map":{"doc":"The circle is translated relative to the map."},"viewport":{"doc":"The circle is translated relative to the viewport."}},"doc":"Controls the frame of reference for `circle-translate`.","default":"map","requires":["circle-translate"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"circle-pitch-scale":{"type":"enum","function":"piecewise-constant","zoom-function":true,"values":{"map":{"doc":"Circles are scaled according to their apparent distance to the camera."},"viewport":{"doc":"Circles are not scaled."}},"default":"map","doc":"Controls the scaling behavior of the circle when the map is pitched.","sdk-support":{"basic functionality":{"js":"0.21.0","android":"4.2.0","ios":"3.4.0","macos":"0.2.1"},"data-driven styling":{}}},"circle-pitch-alignment":{"type":"enum","function":"piecewise-constant","zoom-function":true,"values":{"map":{"doc":"The circle is aligned to the plane of the map."},"viewport":{"doc":"The circle is aligned to the plane of the viewport."}},"default":"viewport","doc":"Orientation of circle when map is pitched.","sdk-support":{"basic functionality":{"js":"0.39.0","android":"5.2.0","ios":"3.7.0","macos":"0.6.0"},"data-driven styling":{}}},"circle-stroke-width":{"type":"number","default":0,"minimum":0,"function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"units":"pixels","doc":"The width of the circle\'s stroke. Strokes are placed outside of the `circle-radius`.","sdk-support":{"basic functionality":{"js":"0.29.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"},"data-driven styling":{"js":"0.29.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"circle-stroke-color":{"type":"color","default":"#000000","doc":"The stroke color of the circle.","function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"sdk-support":{"basic functionality":{"js":"0.29.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"},"data-driven styling":{"js":"0.29.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"circle-stroke-opacity":{"type":"number","doc":"The opacity of the circle\'s stroke.","default":1,"minimum":0,"maximum":1,"function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"sdk-support":{"basic functionality":{"js":"0.29.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"},"data-driven styling":{"js":"0.29.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}}},"paint_heatmap":{"heatmap-radius":{"type":"number","default":30,"minimum":1,"function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"units":"pixels","doc":"Radius of influence of one heatmap point in pixels. Increasing the value makes the heatmap smoother, but less detailed.","sdk-support":{"basic functionality":{"js":"0.41.0"},"data-driven styling":{}}},"heatmap-weight":{"type":"number","default":1,"minimum":0,"function":"interpolated","zoom-function":true,"property-function":true,"transition":false,"doc":"A measure of how much an individual point contributes to the heatmap. A value of 10 would be equivalent to having 10 points of weight 1 in the same spot. Especially useful when combined with clustering.","sdk-support":{"basic functionality":{"js":"0.41.0"},"data-driven styling":{"js":"0.41.0"}}},"heatmap-intensity":{"type":"number","default":1,"minimum":0,"function":"interpolated","zoom-function":true,"property-function":false,"transition":true,"doc":"Similar to `heatmap-weight` but controls the intensity of the heatmap globally. Primarily used for adjusting the heatmap based on zoom level.","sdk-support":{"basic functionality":{"js":"0.41.0"},"data-driven styling":{}}},"heatmap-color":{"type":"color","default":["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",0.1,"royalblue",0.3,"cyan",0.5,"lime",0.7,"yellow",1,"red"],"doc":"Defines the color of each pixel based on its density value in a heatmap. Should be an expression that uses `[\\"heatmap-density\\"]` as input.","function":"interpolated","zoom-function":false,"property-function":false,"transition":false,"sdk-support":{"basic functionality":{"js":"0.41.0"},"data-driven styling":{}}},"heatmap-opacity":{"type":"number","doc":"The global opacity at which the heatmap layer will be drawn.","default":1,"minimum":0,"maximum":1,"function":"interpolated","zoom-function":true,"property-function":false,"transition":true,"sdk-support":{"basic functionality":{"js":"0.41.0"},"data-driven styling":{}}}},"paint_symbol":{"icon-opacity":{"doc":"The opacity at which the icon will be drawn.","type":"number","default":1,"minimum":0,"maximum":1,"function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"requires":["icon-image"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.33.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"icon-color":{"type":"color","default":"#000000","function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"doc":"The color of the icon. This can only be used with sdf icons.","requires":["icon-image"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.33.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"icon-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"doc":"The color of the icon\'s halo. Icon halos can only be used with SDF icons.","requires":["icon-image"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.33.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"icon-halo-width":{"type":"number","default":0,"minimum":0,"function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"units":"pixels","doc":"Distance of halo to the icon outline.","requires":["icon-image"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.33.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"icon-halo-blur":{"type":"number","default":0,"minimum":0,"function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"units":"pixels","doc":"Fade out the halo towards the outside.","requires":["icon-image"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.33.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"icon-translate":{"type":"array","value":"number","length":2,"default":[0,0],"function":"interpolated","zoom-function":true,"transition":true,"units":"pixels","doc":"Distance that the icon\'s anchor is moved from its original placement. Positive values indicate right and down, while negative values indicate left and up.","requires":["icon-image"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"icon-translate-anchor":{"type":"enum","function":"piecewise-constant","zoom-function":true,"values":{"map":{"doc":"Icons are translated relative to the map."},"viewport":{"doc":"Icons are translated relative to the viewport."}},"doc":"Controls the frame of reference for `icon-translate`.","default":"map","requires":["icon-image","icon-translate"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"text-opacity":{"type":"number","doc":"The opacity at which the text will be drawn.","default":1,"minimum":0,"maximum":1,"function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.33.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"text-color":{"type":"color","doc":"The color with which the text will be drawn.","default":"#000000","function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.33.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"text-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"doc":"The color of the text\'s halo, which helps it stand out from backgrounds.","requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.33.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"text-halo-width":{"type":"number","default":0,"minimum":0,"function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"units":"pixels","doc":"Distance of halo to the font outline. Max text halo width is 1/4 of the font-size.","requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.33.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"text-halo-blur":{"type":"number","default":0,"minimum":0,"function":"interpolated","zoom-function":true,"property-function":true,"transition":true,"units":"pixels","doc":"The halo\'s fadeout distance towards the outside.","requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{"js":"0.33.0","android":"5.0.0","ios":"3.5.0","macos":"0.4.0"}}},"text-translate":{"type":"array","value":"number","length":2,"default":[0,0],"function":"interpolated","zoom-function":true,"transition":true,"units":"pixels","doc":"Distance that the text\'s anchor is moved from its original placement. Positive values indicate right and down, while negative values indicate left and up.","requires":["text-field"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"text-translate-anchor":{"type":"enum","function":"piecewise-constant","zoom-function":true,"values":{"map":{"doc":"The text is translated relative to the map."},"viewport":{"doc":"The text is translated relative to the viewport."}},"doc":"Controls the frame of reference for `text-translate`.","default":"map","requires":["text-field","text-translate"],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}}},"paint_raster":{"raster-opacity":{"type":"number","doc":"The opacity at which the image will be drawn.","default":1,"minimum":0,"maximum":1,"function":"interpolated","zoom-function":true,"transition":true,"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"raster-hue-rotate":{"type":"number","default":0,"period":360,"function":"interpolated","zoom-function":true,"transition":true,"units":"degrees","doc":"Rotates hues around the color wheel.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"raster-brightness-min":{"type":"number","function":"interpolated","zoom-function":true,"doc":"Increase or reduce the brightness of the image. The value is the minimum brightness.","default":0,"minimum":0,"maximum":1,"transition":true,"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"raster-brightness-max":{"type":"number","function":"interpolated","zoom-function":true,"doc":"Increase or reduce the brightness of the image. The value is the maximum brightness.","default":1,"minimum":0,"maximum":1,"transition":true,"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"raster-saturation":{"type":"number","doc":"Increase or reduce the saturation of the image.","default":0,"minimum":-1,"maximum":1,"function":"interpolated","zoom-function":true,"transition":true,"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"raster-contrast":{"type":"number","doc":"Increase or reduce the contrast of the image.","default":0,"minimum":-1,"maximum":1,"function":"interpolated","zoom-function":true,"transition":true,"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}},"raster-fade-duration":{"type":"number","default":300,"minimum":0,"function":"interpolated","zoom-function":true,"transition":false,"units":"milliseconds","doc":"Fade duration when a new tile is added.","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"},"data-driven styling":{}}}},"paint_hillshade":{"hillshade-illumination-direction":{"type":"number","default":335,"minimum":0,"maximum":359,"doc":"The direction of the light source used to generate the hillshading with 0 as the top of the viewport if `hillshade-illumination-anchor` is set to `viewport` and due north if `hillshade-illumination-anchor` is set to `map`.","function":"interpolated","zoom-function":true,"transition":false},"hillshade-illumination-anchor":{"type":"enum","function":"piecewise-constant","zoom-function":true,"values":{"map":{"doc":"The hillshade illumination is relative to the north direction."},"viewport":{"doc":"The hillshade illumination is relative to the top of the viewport."}},"default":"viewport","doc":"Direction of light source when map is rotated."},"hillshade-exaggeration":{"type":"number","doc":"Intensity of the hillshade","default":0.5,"minimum":0,"maximum":1,"function":"interpolated","zoom-function":true,"transition":true},"hillshade-shadow-color":{"type":"color","default":"#000000","doc":"The shading color of areas that face away from the light source.","function":"interpolated","zoom-function":true,"transition":true},"hillshade-highlight-color":{"type":"color","default":"#FFFFFF","doc":"The shading color of areas that faces towards the light source.","function":"interpolated","zoom-function":true,"transition":true},"hillshade-accent-color":{"type":"color","default":"#000000","doc":"The shading color used to accentuate rugged terrain like sharp cliffs and gorges.","function":"interpolated","zoom-function":true,"transition":true}},"paint_background":{"background-color":{"type":"color","default":"#000000","doc":"The color with which the background will be drawn.","function":"interpolated","zoom-function":true,"transition":true,"requires":[{"!":"background-pattern"}],"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"}}},"background-pattern":{"type":"string","function":"piecewise-constant","zoom-function":true,"transition":true,"doc":"Name of image in sprite to use for drawing an image background. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512).","sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"}}},"background-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"doc":"The opacity at which the background will be drawn.","function":"interpolated","zoom-function":true,"transition":true,"sdk-support":{"basic functionality":{"js":"0.10.0","android":"2.0.1","ios":"2.0.0","macos":"0.1.0"}}}},"transition":{"duration":{"type":"number","default":300,"minimum":0,"units":"milliseconds","doc":"Time allotted for transitions to complete."},"delay":{"type":"number","default":0,"minimum":0,"units":"milliseconds","doc":"Length of time before a transition begins."}}}')}},r={};function s(o){var i=r[o];if(i!==void 0)return i.exports;var a=r[o]={exports:{}};return e[o].call(a.exports,a,a.exports,s),a.exports}return s.d=function(o,i){for(var a in i)s.o(i,a)&&!s.o(o,a)&&Object.defineProperty(o,a,{enumerable:!0,get:i[a]})},s.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),s.o=function(o,i){return Object.prototype.hasOwnProperty.call(o,i)},s.r=function(o){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},s(5579)}()})}(Sy)),Sy.exports}var TN=PN();const BN=document.createElement("canvas");class Ey{constructor(n){N(this,"mapboxRenderer");N(this,"ready");N(this,"readyPromise");N(this,"rectangle");N(this,"tileSize");N(this,"tileWidth");N(this,"tileHeight");N(this,"maximumLevel");N(this,"minimumLevel");N(this,"tileDiscardPolicy");N(this,"credit");N(this,"proxy");N(this,"layerStyle");N(this,"hasAlphaChannel");N(this,"sourceFilter");N(this,"tilingScheme");N(this,"_destroyed",!1);N(this,"_error");N(this,"_style");N(this,"_accessToken");N(this,"_enablePickFeatures");this.ready=!1,this.tilingScheme=n.tilingScheme??new Me.WebMercatorTilingScheme,this.rectangle=n.rectangle??this.tilingScheme.rectangle,this.rectangle=Me.Rectangle.intersection(this.rectangle,this.tilingScheme.rectangle),this.tileSize=this.tileWidth=this.tileHeight=n.tileSize||256,this.maximumLevel=n.maximumLevel??18,this.minimumLevel=n.minimumLevel??0,this.tileDiscardPolicy=void 0,this._error=new Me.Event,this.credit=new Me.Credit(n.credit||"",!1),this.proxy=new Me.DefaultProxy(""),this.hasAlphaChannel=n.hasAlphaChannel??!0,this.sourceFilter=n.sourceFilter,this._accessToken=n.accessToken,this._enablePickFeatures=n.enablePickFeatures??!0,this.layerStyle=n.layerStyle??[],Me.defined(n.style)&&(this.readyPromise=this._build(n.style,n).then(()=>!0))}get style(){return this._style}get isDestroyed(){return this._destroyed}get errorEvent(){return this._error}async _build(n,e={}){const r=await this._preLoad(n);r.layers=this.layerStyle.length!=0?this.layerStyle:r.layers,this._style=r,this.mapboxRenderer=new TN.BasicRenderer({style:r,canvas:BN,token:e.accessToken,transformRequest:e.transformRequest}),e.showCanvas&&this.mapboxRenderer.showCanvasForDebug(),await this.mapboxRenderer._style.loadedPromise,this.readyPromise=Promise.resolve(!0),this.ready=!0}static async fromUrl(n,e={}){const r=new Ey(e);return await r._build(n,e),r}_preLoad(n){let e=n;if(typeof n=="string"&&(n.endsWith(".json")||n.startsWith("mapbox://")?n=new Me.Resource({url:n}):n.endsWith(".pbf")&&(n={version:8,sources:{customSource:{type:"vector",scheme:"tms",tiles:[n]}},layers:this.layerStyle},e=n)),n instanceof Me.Resource){const r="https://api.mapbox.com/";n.url.startsWith("mapbox://")&&(n.url=n.url.replace("mapbox://",r)),this._accessToken&&n.appendQueryParameters({access_token:this._accessToken}),e=n.fetchJson()}return Promise.resolve(e).catch(r=>{throw this._error.raiseEvent(r),r})}_createTile(){const n=document.createElement("canvas");return n.width=this.tileSize,n.height=this.tileSize,n.style.imageRendering="pixelated",n}_resetTileCache(){Object.values(this.mapboxRenderer._style.sourceCaches).forEach(n=>n._tileCache.reset())}_getTilesSpec(n,e){const{x:r,y:s,level:o}=n,i=this.tileSize,a=[],l=this.tilingScheme.getNumberOfXTilesAtLevel(o)-1,h=this.tilingScheme.getNumberOfYTilesAtLevel(o)-1;for(let f=-1;f<=1;f++){let u=r+f;u<0&&(u=l),u>l&&(u=0);for(let y=-1;y<=1;y++){let v=s+y;v<0||v>h||a.push({source:e,z:o,x:u,y:v,left:0+f*i,top:0+y*i,size:i})}}return a}requestImage(n,e,r,s=!0){if(r<this.minimumLevel||r>this.maximumLevel)return;this.mapboxRenderer.filterForZoom(r);const o=this.mapboxRenderer.getVisibleSources(r).reduce((i,a)=>i.concat(this._getTilesSpec({x:n,y:e,level:r},a)),[]);return new Promise((i,a)=>{const l=this._createTile(),h=l.getContext("2d");h&&(h.globalCompositeOperation="copy");const f=this.mapboxRenderer.renderTiles(h,{srcLeft:0,srcTop:0,width:this.tileSize,height:this.tileSize,destLeft:0,destTop:0},o,u=>{typeof u=="string"&&!u.endsWith("tiles not available")?a(void 0):s?(f.consumer.ctx=null,i(l),this.mapboxRenderer.releaseRender(f),this._resetTileCache()):i(f)})})}pickFeatures(n,e,r,s,o){var i;if(this._enablePickFeatures)return(i=this.requestImage(n,e,r,!1))==null?void 0:i.then(a=>{let l=this.mapboxRenderer.getVisibleSources(r);l=this.sourceFilter?this.sourceFilter(l):l;const h=[],f=Me.Math.toDegrees(s),u=Me.Math.toDegrees(o);return l.forEach(y=>{const v=new Me.ImageryLayerFeatureInfo;v.data=this.mapboxRenderer.queryRenderedFeatures({source:y,renderedZoom:r,lng:f,lat:u,tileZ:r});const g=Object.keys(v.data)[0];v.name=g;const m=v.data[g];m&&(v.configureDescriptionFromProperties((m==null?void 0:m.length)===1?m[0]:m),h.push(v))}),a.consumer.ctx=void 0,this.mapboxRenderer.releaseRender(a),this._resetTileCache(),h.length?h:void 0})}destroy(){this.mapboxRenderer._cancelAllPendingRenders(),this._resetTileCache(),this._destroyed=!0}}function IN(t,n){let e;return n===0?e=F.JulianDate.toIso8601(t.stop):e=F.JulianDate.toIso8601(t.start),{Time:e}}function rS(t){if(t.type==="fromIso8601")return F.TimeIntervalCollection.fromIso8601({iso8601:t.iso8601,isStartIncluded:t.isStartIncluded,isStopIncluded:t.isStopIncluded,leadingInterval:t.leadingInterval,trailingInterval:t.trailingInterval,dataCallback:IN})}const{getStrFromEnv:Kd}=Q.ESSceneObject.context;function FN(t){const n=Object.entries(t).map(([e,r])=>{try{const s=r&&Function(`"use strict";return (${r})`)();return[e,s]}catch(s){console.error(`getCustomTagsFromJson error: ${s}`,s);return}}).filter(e=>!!e);return Object.fromEntries(n)}async function kN(t,n){var e,r;if(t.type==="WebMapTileServiceImageryProvider")return new F.WebMapTileServiceImageryProvider({url:Qn(t.url),format:t.format??"image/jpeg",layer:t.layer,style:t.style,tileMatrixSetID:t.tileMatrixSetID,tileMatrixLabels:t.tileMatrixLabels,clock:t.times&&((e=n.viewer)==null?void 0:e.clock),times:t.times&&rS(t.times),dimensions:t.dimensions,tileWidth:t.tileWidth??256,tileHeight:t.tileHeight??256,tilingScheme:t.tilingScheme&&Br(t.tilingScheme),rectangle:t.rectangle&&Bt(t.rectangle),minimumLevel:t.minimumLevel??0,maximumLevel:t.maximumLevel,ellipsoid:t.ellipsoid&&et(t.ellipsoid),credit:t.credit,subdomains:t.subdomains});if(t.type==="TileMapServiceImageryProvider")return t.url?await F.TileMapServiceImageryProvider.fromUrl(Qn(t.url),{fileExtension:t.fileExtension,credit:t.credit,minimumLevel:t.minimumLevel,maximumLevel:t.maximumLevel,rectangle:t.rectangle&&Bt(t.rectangle),tilingScheme:t.tilingScheme&&Br(t.tilingScheme),ellipsoid:t.ellipsoid&&et(t.ellipsoid),tileWidth:t.tileWidth,tileHeight:t.tileHeight,flipXY:t.flipXY}):void 0;if(t.type==="UrlTemplateImageryProvider"){const s=t.customTags&&FN(t.customTags);return console.log(Qn(t.url),"111"),new F.UrlTemplateImageryProvider({url:Qn(t.url),credit:t.credit,minimumLevel:t.minimumLevel,maximumLevel:t.maximumLevel,rectangle:t.rectangle&&Bt(t.rectangle),tilingScheme:t.tilingScheme&&Br(t.tilingScheme),ellipsoid:t.ellipsoid&&et(t.ellipsoid),tileWidth:t.tileWidth,tileHeight:t.tileHeight,subdomains:t.subdomains,hasAlphaChannel:t.hasAlphaChannel,pickFeaturesUrl:t.pickFeaturesUrl,enablePickFeatures:t.enablePickFeatures,urlSchemeZeroPadding:t.urlSchemeZeroPadding,customTags:s})}else{if(t.type==="GridImageryProvider")return new F.GridImageryProvider({tilingScheme:t.tilingScheme&&Br(t.tilingScheme),ellipsoid:t.ellipsoid&&et(t.ellipsoid),tileWidth:t.tileWidth,tileHeight:t.tileHeight,cells:t.cells,color:t.color&&Oe(t.color),glowColor:t.glowColor&&Oe(t.glowColor),backgroundColor:t.backgroundColor&&Oe(t.backgroundColor),canvasSize:t.canvasSize,glowWidth:t.glowWidth});if(t.type==="ArcGisMapServerImageryProvider")return t.url?await F.ArcGisMapServerImageryProvider.fromUrl(Qn(t.url),{token:t.token,usePreCachedTilesIfAvailable:t.usePreCachedTilesIfAvailable,layers:t.layers,enablePickFeatures:t.enablePickFeatures,rectangle:t.rectangle&&Bt(t.rectangle),tilingScheme:t.tilingScheme&&Br(t.tilingScheme),ellipsoid:t.ellipsoid&&et(t.ellipsoid),credit:t.credit,tileWidth:t.tileWidth,tileHeight:t.tileHeight,maximumLevel:t.maximumLevel}):void 0;if(t.type==="BingMapsImageryProvider")return t.url?await F.BingMapsImageryProvider.fromUrl(Qn(t.url),{key:t.key,tileProtocol:t.tileProtocol,mapStyle:t.mapStyle&&F.BingMapsStyle[t.mapStyle],culture:t.culture,ellipsoid:t.ellipsoid&&et(t.ellipsoid)}):void 0;if(t.type==="GoogleEarthEnterpriseImageryProvider"){if(!t.url)return;const s=await F.GoogleEarthEnterpriseMetadata.fromUrl(Qn(t.url));return await F.GoogleEarthEnterpriseImageryProvider.fromMetadata(s,{ellipsoid:t.ellipsoid&&et(t.ellipsoid),credit:t.credit})}else{if(t.type==="IonImageryProvider")return await F.IonImageryProvider.fromAssetId(t.assetId,{accessToken:t.accessToken,server:t.server});if(t.type==="MapboxImageryProvider")return new F.MapboxImageryProvider({url:t.url&&Kd(t.url),mapId:t.mapId,accessToken:t.accessToken,format:t.format,ellipsoid:t.ellipsoid&&et(t.ellipsoid),minimumLevel:t.minimumLevel,maximumLevel:t.maximumLevel,rectangle:t.rectangle&&Bt(t.rectangle),credit:t.credit});if(t.type==="MapboxStyleImageryProvider")return new F.MapboxStyleImageryProvider({url:t.url&&Kd(t.url),username:t.username,styleId:t.styleId,accessToken:t.accessToken,tilesize:t.tilesize,scaleFactor:t.scaleFactor,rectangle:t.rectangle&&Bt(t.rectangle),credit:t.credit,ellipsoid:t.ellipsoid&&et(t.ellipsoid),minimumLevel:t.minimumLevel,maximumLevel:t.maximumLevel});if(t.type==="OpenStreetMapImageryProvider")return new F.OpenStreetMapImageryProvider({url:Kd(t.url),rectangle:t.rectangle&&Bt(t.rectangle),credit:t.credit,ellipsoid:t.ellipsoid&&et(t.ellipsoid),minimumLevel:t.minimumLevel,maximumLevel:t.maximumLevel,fileExtension:t.fileExtension});if(t.type==="SingleTileImageryProvider")return new F.SingleTileImageryProvider({url:Qn(t.url),rectangle:t.rectangle&&Bt(t.rectangle),credit:t.credit,ellipsoid:t.ellipsoid&&et(t.ellipsoid)});if(t.type==="TileCoordinatesImageryProvider")return new F.TileCoordinatesImageryProvider({tilingScheme:t.tilingScheme&&Br(t.tilingScheme),ellipsoid:t.ellipsoid&&et(t.ellipsoid),color:t.color&&Oe(t.color),tileWidth:t.tileWidth,tileHeight:t.tileHeight});if(t.type==="WebMapServiceImageryProvider")return new F.WebMapServiceImageryProvider({url:Qn(t.url),layers:t.layers,enablePickFeatures:t.enablePickFeatures,rectangle:t.rectangle&&Bt(t.rectangle),tilingScheme:t.tilingScheme&&Br(t.tilingScheme),ellipsoid:t.ellipsoid&&et(t.ellipsoid),minimumLevel:t.minimumLevel,maximumLevel:t.maximumLevel,tileWidth:t.tileWidth,tileHeight:t.tileHeight,crs:t.crs,srs:t.srs,credit:t.credit,subdomains:t.subdomains,clock:t.times&&((r=n.viewer)==null?void 0:r.clock),times:t.times&&rS(t.times),parameters:t.parameters,getFeatureInfoParameters:t.getFeatureInfoParameters});if(t.type==="BDImageryProvider")return new qd({url:t.url&&Kd(t.url),ellipsoid:t.ellipsoid&&et(t.ellipsoid),wgs84:t.wgs84});if(t.type==="GeHistoryImagery")return new SN({indexTime:t.indexTime});if(t.type==="ArcgisHistoryImagery")return new EN({indexTimeID:t.indexTimeID});if(t.type==="MVTImageryProvider")return t.url?await Ey.fromUrl(t.url,{maximumLevel:t.maximumLevel,minimumLevel:t.minimumLevel,tileSize:t.tileSize,accessToken:t.accessToken,enablePickFeatures:t.enablePickFeatures,rectangle:t.rectangle&&Bt(t.rectangle),layerStyle:t.style}):void 0}}}function MN(t,n){n.type}class iS extends F.WebMercatorTilingScheme{constructor(n){super(n);var e=this._projection;e.s_project=e.project,e.project=function(o){var i={};return i=xy(F.Math.toDegrees(o.longitude),F.Math.toDegrees(o.latitude)),e.s_project(new F.Cartographic(F.Math.toRadians(i[0]),F.Math.toRadians(i[1])))},e.s_unproject=e.unproject,e.unproject=function(o){var i=e.s_unproject(o),a={};return a=_y(F.Math.toDegrees(i.longitude),F.Math.toDegrees(i.latitude)),new F.Cartographic(F.Math.toRadians(a[0]),F.Math.toRadians(a[1]))};var r=this._projection.unproject(this._rectangleSouthwestInMeters),s=this._projection.unproject(this._rectangleNortheastInMeters);this._rectangle=new F.Rectangle(r.longitude,r.latitude,s.longitude,s.latitude)}}class oS extends F.WebMercatorTilingScheme{constructor(n){super(n);var e=this._projection;e.s_project=e.project,e.project=function(r){var s={};return s=_y(F.Math.toDegrees(r.longitude),F.Math.toDegrees(r.latitude)),e.s_project(new F.Cartographic(F.Math.toRadians(s[0]),F.Math.toRadians(s[1])))},e.s_unproject=e.unproject,e.unproject=function(r){var s=e.s_unproject(r),o={};return o=xy(F.Math.toDegrees(s.longitude),F.Math.toDegrees(s.latitude)),new F.Cartographic(F.Math.toRadians(o[0]),F.Math.toRadians(o[1]))}}}function ON(t){if(t.type==="GeographicTilingScheme")return"new Cesium.GeographicTilingScheme()";if(t.type==="WebMercatorTilingScheme")return"new Cesium.WebMercatorTilingScheme()"}class vo extends E.Destroyable{constructor(e,r){super();N(this,"_flyToEvent",this.disposeVar(new E.Event));N(this,"_layer",this.disposeVar(E.react(void 0)));const s=e.viewer;if(!s)return;const o=Gn(s);if(!o)return;const{imageriesManager:i}=o;i.add(this),this.dispose(()=>i.delete(this));const a=()=>{this.layer&&(this.layer=void 0)};this.dispose(a);const l=()=>{this.layer&&(this.layer.alpha=this.alpha??1,this.layer.nightAlpha=this.nightAlpha??1,this.layer.dayAlpha=this.dayAlpha??1,this.layer.brightness=this.brightness??1,this.layer.contrast=this.contrast??1,this.layer.hue=this.hue??0,this.layer.saturation=this.saturation??1,this.layer.gamma=this.gamma??1,this.layer.splitDirection=this.splitDirection&&F.SplitDirection[this.splitDirection]||F.SplitDirection.NONE,this.layer.minificationFilter=this.minificationFilter&&F.TextureMinificationFilter[this.minificationFilter]||F.TextureMinificationFilter.LINEAR,this.layer.magnificationFilter=this.magnificationFilter&&F.TextureMagnificationFilter[this.magnificationFilter]||F.TextureMagnificationFilter.LINEAR,this.layer.show=this.show??!0,this.layer.maximumAnisotropy=this.maximumAnisotropy,this.layer.minimumTerrainLevel=this.minimumTerrainLevel,this.layer.maximumTerrainLevel=this.maximumTerrainLevel,this.layer.colorToAlpha=this.colorToAlpha&&toColor(this.colorToAlpha),this.layer.colorToAlphaThreshold=this.colorToAlphaThreshold??.004,this.imageryProvider&&MN(this.layer.imageryProvider,this.imageryProvider))};let h=!1;const f=this.disposeVar(E.createProcessingFromAsyncFunc(async(m,p)=>{if(p){if(h=!0,a(),!this.imageryProvider)return;const d=await m.promise(kN(this.imageryProvider,e));if(!d){console.error("createImageryProviderFromJson error!");return}this.layer=new F.ImageryLayer(d),F.ImageryLayer.prototype&&(this.layer.ESSceneObjectID=r),h=!1}l()}));f.restart(void 0,!0);const u=this.disposeVar(new E.Event),y=this.disposeVar(new E.Event);this.dispose(this.imageryProviderChanged.disposableOn((m,p)=>{u.emit()})),this.dispose(Q.ESSceneObject.context.environmentVariablesChanged.disposableOn(()=>{u.emit()}));const v=this.disposeVar(E.createNextAnimateFrameEvent(this.rectangleChanged,u));this.dispose(v.disposableOn(()=>{f.restart(void 0,!0)}));const g=this.disposeVar(E.createNextAnimateFrameEvent(this.alphaChanged,this.nightAlphaChanged,this.dayAlphaChanged,this.brightnessChanged,this.contrastChanged,this.hueChanged,this.saturationChanged,this.gammaChanged,this.splitDirectionChanged,this.minificationFilterChanged,this.magnificationFilterChanged,this.showChanged,this.maximumAnisotropyChanged,this.minimumTerrainLevelChanged,this.maximumTerrainLevelChanged,this.cutoutRectangleChanged,this.colorToAlphaChanged,this.colorToAlphaThresholdChanged,y));this.dispose(g.disposableOn(()=>{h||f.restart(void 0,!1)})),this.dispose(this.flyToEvent.disposableOn(m=>{if(!e.actived)return;const{viewer:p}=e;p&&p.camera.flyTo({destination:this.rectangle&&!jp(this.rectangle)?Bt(this.rectangle):F.Camera.DEFAULT_VIEW_RECTANGLE,duration:m})}))}get flyToEvent(){return this._flyToEvent}flyTo(e){this._flyToEvent.emit(e)}get layer(){return this._layer.value}set layer(e){this._layer.value=e}get layerChanged(){return this._layer.changed}}N(vo,"defaults",{show:!0,rectangle:[-180,-90,180,90],alpha:1,nightAlpha:1,dayAlpha:1,brightness:1,contrast:1,hue:0,saturation:1,gamma:1,splitDirection:"NONE",minificationFilter:"LINEAR",magnificationFilter:"LINEAR",maximumAnisotropy:0,minimumTerrainLevel:0,maximumTerrainLevel:0,cutoutRectangle:[1,1,1,1],colorToAlpha:[1,1,1,.5],colorToAlphaThreshold:.004,imageryProvider:{type:"TileMapServiceImageryProvider"},zIndex:0,hasAlphaChannel:!0,pickFeaturesUrl:""}),(t=>{t.createDefaultProps=()=>({show:void 0,rectangle:E.reactArrayWithUndefined(void 0),alpha:void 0,nightAlpha:void 0,dayAlpha:void 0,brightness:void 0,contrast:void 0,hue:void 0,saturation:void 0,gamma:void 0,splitDirection:void 0,minificationFilter:void 0,magnificationFilter:void 0,maximumAnisotropy:void 0,minimumTerrainLevel:void 0,maximumTerrainLevel:void 0,cutoutRectangle:E.reactArrayWithUndefined(void 0),colorToAlpha:E.reactArrayWithUndefined(void 0),colorToAlphaThreshold:void 0,imageryProvider:E.reactJsonWithUndefined(void 0),zIndex:0,hasAlphaChannel:void 0,pickFeaturesUrl:void 0})})(vo||(vo={})),E.extendClassProps(vo.prototype,vo.createDefaultProps);const Py=F.ApproximateTerrainHeights,DN=F.ComponentDatatype,Gr=F.defaultValue,ln=F.defined,RN=F.destroyObject,Ty=F.DeveloperError,UN=F.deprecationWarning,LN=F.GeometryInstance,zN=F.GeometryInstanceAttribute,NN=F.GroundPolylineGeometry,Su=F.DrawCommand,aS=F.Pass,sS=F.RenderState,VN=F.ShaderProgram,Eu=F.ShaderSource;let By=F._shadersPolylineShadowVolumeFS;const QN=F._shadersPolylineShadowVolumeMorphFS,HN=F._shadersPolylineShadowVolumeMorphVS;let Iy=F._shadersPolylineShadowVolumeVS;const lS=F.BlendingState,Fy=F.ClassificationType,jN=F.CullFace,uS=F.PolylineColorAppearance,GN=F.PolylineMaterialAppearance,wo=F.Primitive,zs=F.SceneMode,cS=F.StencilConstants,hS=F.StencilFunction,Ns=F.StencilOperation;Iy=Iy.replace("width = width * max(0.0, czm_metersPerPixel(positionEC));",""),By=By.replace("float halfMaxWidth = v_startPlaneNormalEcAndHalfWidth.w * czm_metersPerPixel(eyeCoordinate);","float halfMaxWidth = v_startPlaneNormalEcAndHalfWidth.w;");function Wr(t){t=Gr(t,Gr.EMPTY_OBJECT),this.geometryInstances=t.geometryInstances,this._hasPerInstanceColors=!0;let n=t.appearance;ln(n)||(n=new GN),this.appearance=n,this.show=Gr(t.show,!0),this.classificationType=Gr(t.classificationType,Fy.BOTH),this.debugShowBoundingVolume=Gr(t.debugShowBoundingVolume,!1),this._debugShowShadowVolume=Gr(t.debugShowShadowVolume,!1),this._primitiveOptions={geometryInstances:void 0,appearance:void 0,vertexCacheOptimize:!1,interleave:Gr(t.interleave,!1),releaseGeometryInstances:Gr(t.releaseGeometryInstances,!0),allowPicking:Gr(t.allowPicking,!0),asynchronous:Gr(t.asynchronous,!0),compressVertices:!1,_createShaderProgramFunction:void 0,_createCommandsFunction:void 0,_updateAndQueueCommandsFunction:void 0},this._zIndex=void 0,this._ready=!1;const e=this;this._readyPromise=new Promise((r,s)=>{e._completeLoad=()=>{this._ready=!0,this.releaseGeometryInstances&&(this.geometryInstances=void 0);const o=this._error;ln(o)?s(o):r(this)}}),this._primitive=void 0,this._sp=void 0,this._sp2D=void 0,this._spMorph=void 0,this._renderState=fS(!1),this._renderState3DTiles=fS(!0),this._renderStateMorph=sS.fromCache({cull:{enabled:!0,face:jN.FRONT},depthTest:{enabled:!0},blending:lS.PRE_MULTIPLIED_ALPHA_BLEND,depthMask:!1})}Object.defineProperties(Wr.prototype,{interleave:{get:function(){return this._primitiveOptions.interleave}},releaseGeometryInstances:{get:function(){return this._primitiveOptions.releaseGeometryInstances}},allowPicking:{get:function(){return this._primitiveOptions.allowPicking}},asynchronous:{get:function(){return this._primitiveOptions.asynchronous}},ready:{get:function(){return this._ready}},readyPromise:{get:function(){return UN("GroundPolylinePrimitive.readyPromise","GroundPolylinePrimitive.readyPromise was deprecated in CesiumJS 1.104. It will be removed in 1.107. Wait for GroundPolylinePrimitive.ready to return true instead."),this._readyPromise}},debugShowShadowVolume:{get:function(){return this._debugShowShadowVolume}}}),Wr.initializeTerrainHeights=function(){return Py.initialize()};function WN(t,n,e){const r=n.context,s=t._primitive,o=s._attributeLocations;let i=s._batchTable.getVertexShaderCallback()(Iy);i=wo._appendShowToShader(s,i),i=wo._appendDistanceDisplayConditionToShader(s,i),i=wo._modifyShaderPosition(t,i,n.scene3DOnly);let a=s._batchTable.getVertexShaderCallback()(HN);a=wo._appendShowToShader(s,a),a=wo._appendDistanceDisplayConditionToShader(s,a),a=wo._modifyShaderPosition(t,a,n.scene3DOnly);let l=s._batchTable.getVertexShaderCallback()(By);const h=[`GLOBE_MINIMUM_ALTITUDE ${n.mapProjection.ellipsoid.minimumRadius.toFixed(1)}`];let f="",u="";ln(e.material)?(u=ln(e.material)?e.material.shaderSource:"",u.search(/in\s+float\s+v_polylineAngle;/g)!==-1&&h.push("ANGLE_VARYING"),u.search(/in\s+float\s+v_width;/g)!==-1&&h.push("WIDTH_VARYING")):f="PER_INSTANCE_COLOR",h.push(f);const y=t.debugShowShadowVolume?["DEBUG_SHOW_VOLUME",f]:[f],v=new Eu({defines:h,sources:[i]}),g=new Eu({defines:y,sources:[u,l]});t._sp=VN.replaceCache({context:r,shaderProgram:s._sp,vertexShaderSource:v,fragmentShaderSource:g,attributeLocations:o});let m=r.shaderCache.getDerivedShaderProgram(t._sp,"2dColor");if(!ln(m)){const d=new Eu({defines:h.concat(["COLUMBUS_VIEW_2D"]),sources:[i]});m=r.shaderCache.createDerivedShaderProgram(t._sp,"2dColor",{context:r,shaderProgram:t._sp2D,vertexShaderSource:d,fragmentShaderSource:g,attributeLocations:o})}t._sp2D=m;let p=r.shaderCache.getDerivedShaderProgram(t._sp,"MorphColor");if(!ln(p)){const d=new Eu({defines:h.concat([`MAX_TERRAIN_HEIGHT ${Py._defaultMaxTerrainHeight.toFixed(1)}`]),sources:[a]});l=s._batchTable.getVertexShaderCallback()(QN);const c=new Eu({defines:y,sources:[u,l]});p=r.shaderCache.createDerivedShaderProgram(t._sp,"MorphColor",{context:r,shaderProgram:t._spMorph,vertexShaderSource:d,fragmentShaderSource:c,attributeLocations:o})}t._spMorph=p}function fS(t){return sS.fromCache({cull:{enabled:!0},blending:lS.PRE_MULTIPLIED_ALPHA_BLEND,depthMask:!1,stencilTest:{enabled:t,frontFunction:hS.EQUAL,frontOperation:{fail:Ns.KEEP,zFail:Ns.KEEP,zPass:Ns.KEEP},backFunction:hS.EQUAL,backOperation:{fail:Ns.KEEP,zFail:Ns.KEEP,zPass:Ns.KEEP},reference:cS.CESIUM_3D_TILE_MASK,mask:cS.CESIUM_3D_TILE_MASK}})}function qN(t,n,e,r,s,o){const i=t._primitive,a=i._va.length;s.length=a,o.length=a;const h=n instanceof uS?{}:e._uniforms,f=i._batchTable.getUniformMapCallback()(h);for(let u=0;u<a;u++){const y=i._va[u];let v=s[u];ln(v)||(v=s[u]=new Su({owner:t,primitiveType:i._primitiveType})),v.vertexArray=y,v.renderState=t._renderState,v.shaderProgram=t._sp,v.uniformMap=f,v.pass=aS.TERRAIN_CLASSIFICATION,v.pickId="czm_batchTable_pickColor(v_endPlaneNormalEcAndBatchId.w)";const g=Su.shallowClone(v,v.derivedCommands.tileset);g.renderState=t._renderState3DTiles,g.pass=aS.CESIUM_3D_TILE_CLASSIFICATION,v.derivedCommands.tileset=g;const m=Su.shallowClone(v,v.derivedCommands.color2D);m.shaderProgram=t._sp2D,v.derivedCommands.color2D=m;const p=Su.shallowClone(g,g.derivedCommands.color2D);p.shaderProgram=t._sp2D,g.derivedCommands.color2D=p;const d=Su.shallowClone(v,v.derivedCommands.colorMorph);d.renderState=t._renderStateMorph,d.shaderProgram=t._spMorph,d.pickId="czm_batchTable_pickColor(v_batchId)",v.derivedCommands.colorMorph=d}}function dS(t,n,e,r,s,o,i){e.mode===zs.MORPHING?n=n.derivedCommands.colorMorph:e.mode!==zs.SCENE3D&&(n=n.derivedCommands.color2D),n.modelMatrix=r,n.boundingVolume=o,n.cull=s,n.debugShowBoundingVolume=i,e.commandList.push(n)}function KN(t,n,e,r,s,o,i){const a=t._primitive;wo._updateBoundingVolumes(a,n,s);let l;n.mode===zs.SCENE3D?l=a._boundingSphereWC:n.mode===zs.COLUMBUS_VIEW?l=a._boundingSphereCV:n.mode===zs.SCENE2D&&ln(a._boundingSphere2D)?l=a._boundingSphere2D:ln(a._boundingSphereMorph)&&(l=a._boundingSphereMorph);const h=n.mode===zs.MORPHING,f=t.classificationType,u=f!==Fy.CESIUM_3D_TILE,y=f!==Fy.TERRAIN&&!h;let v;const g=n.passes;if(g.render||g.pick&&a.allowPicking){const m=e.length;for(let p=0;p<m;++p){const d=l[p];u&&(v=e[p],dS(t,v,n,s,o,d,i)),y&&(v=e[p].derivedCommands.tileset,dS(t,v,n,s,o,d,i))}}}Wr.prototype.update=function(t){if(!ln(this._primitive)&&!ln(this.geometryInstances))return;if(!Py.initialized){if(!this.asynchronous)throw new Ty("For synchronous GroundPolylinePrimitives, you must call GroundPolylinePrimitives.initializeTerrainHeights() and wait for the returned promise to resolve.");Wr.initializeTerrainHeights();return}let n;const e=this,r=this._primitiveOptions;if(!ln(this._primitive)){const s=Array.isArray(this.geometryInstances)?this.geometryInstances:[this.geometryInstances],o=s.length,i=new Array(o);let a;for(n=0;n<o;++n)if(a=s[n].attributes,!ln(a)||!ln(a.color)){this._hasPerInstanceColors=!1;break}for(n=0;n<o;++n){const l=s[n];a={};const h=l.attributes;for(const f in h)h.hasOwnProperty(f)&&(a[f]=h[f]);ln(a.width)||(a.width=new zN({componentDatatype:DN.UNSIGNED_BYTE,componentsPerAttribute:1,value:[l.geometry.width]})),l.geometry._scene3DOnly=t.scene3DOnly,NN.setProjectionAndEllipsoid(l.geometry,t.mapProjection),i[n]=new LN({geometry:l.geometry,attributes:a,id:l.id,pickPrimitive:e})}r.geometryInstances=i,r.appearance=this.appearance,r._createShaderProgramFunction=function(l,h,f){WN(e,h,f)},r._createCommandsFunction=function(l,h,f,u,y,v,g){qN(e,h,f,u,v,g)},r._updateAndQueueCommandsFunction=function(l,h,f,u,y,v,g,m){KN(e,h,f,u,y,v,g)},this._primitive=new wo(r)}if(this.appearance instanceof uS&&!this._hasPerInstanceColors)throw new Ty("All GeometryInstances must have color attributes to use PolylineColorAppearance with GroundPolylinePrimitive.");this._primitive.appearance=this.appearance,this._primitive.show=this.show,this._primitive.debugShowBoundingVolume=this.debugShowBoundingVolume,this._primitive.update(t),t.afterRender.push(()=>{!this._ready&&ln(this._primitive)&&this._primitive.ready&&this._completeLoad()})},Wr.prototype.getGeometryInstanceAttributes=function(t){if(!ln(this._primitive))throw new Ty("must call update before calling getGeometryInstanceAttributes");return this._primitive.getGeometryInstanceAttributes(t)},Wr.isSupported=function(t){return t.frameState.context.depthTexture},Wr.prototype.isDestroyed=function(){return!1},Wr.prototype.destroy=function(){return this._primitive=this._primitive&&this._primitive.destroy(),this._sp=this._sp&&this._sp.destroy(),this._sp2D=void 0,this._spMorph=void 0,RN(this)};class ma extends E.Destroyable{constructor(n){super();const e=n.viewer;if(!e){console.warn("viewer is undefined!");return}const r=e.scene.globe,s=-414,o=8777;let i={};const a=()=>{var f,u,y,v,g;if(!e)return;let h;do{const m=this.shadingMode||"none";if(!(this.show??!0)||m==="none"&&!this.enableContour)break;let p;this.enableContour?(m==="elevation"?(h=XN(),p=h.materials.elevationRampMaterial.uniforms,p.minimumHeight=((f=this.elevationParam)==null?void 0:f.minHeight)??s,p.maximumHeight=((u=this.elevationParam)==null?void 0:u.maxHeight)??o,i=h.materials.contourMaterial.uniforms):m==="slope"?(h=$N(),p=h.materials.slopeRampMaterial.uniforms,i=h.materials.contourMaterial.uniforms):m==="aspect"?(h=ZN(),p=h.materials.aspectRampMaterial.uniforms,i=h.materials.contourMaterial.uniforms):(h=F.Material.fromType("ElevationContour"),i=h.uniforms),i.width=this.contourWidth,i.spacing=this.contourSpacing,i.color=F.Color.fromCartesian4(F.Cartesian4.fromArray(this.contourColor))):m==="elevation"?(h=F.Material.fromType("ElevationRamp"),p=h.uniforms,p.minimumHeight=((y=this.elevationParam)==null?void 0:y.minHeight)??s,p.maximumHeight=((v=this.elevationParam)==null?void 0:v.maxHeight)??o):m==="slope"?(h=F.Material.fromType("SlopeRamp"),p=h.uniforms):m==="aspect"&&(h=F.Material.fromType("AspectRamp"),p=h.uniforms),m!=="none"&&(p.image=pS(m),m==="elevation"&&((g=this.elevationParam)==null?void 0:g.color)!==void 0&&(p.image=Array.isArray(this.elevationParam.color)?pS(m,this.elevationParam.color):this.elevationParam.color))}while(!1);r.material=h};a();const l=this.disposeVar(E.createNextAnimateFrameEvent(this.contourColorChanged,this.contourSpacingChanged,this.contourWidthChanged,this.enableContourChanged,this.shadingModeChanged,this.showChanged,this.elevationParamChanged));this.dispose(l.disposableOn(a)),this.dispose(()=>r.material=void 0)}}N(ma,"defaults",{show:!1,enableContour:!1,contourSpacing:150,contourWidth:2,contourColor:[1,0,0,1],shadingMode:"none"}),(t=>{t.createDefaultProps=()=>({show:void 0,shadingMode:void 0,enableContour:!1,contourSpacing:150,contourWidth:2,contourColor:[1,0,0,1],elevationParam:E.reactJsonWithUndefined(void 0)})})(ma||(ma={})),E.extendClassProps(ma.prototype,ma.createDefaultProps);function XN(){return new F.Material({fabric:{type:"ElevationColorContour",materials:{contourMaterial:{type:"ElevationContour"},elevationRampMaterial:{type:"ElevationRamp"}},components:{diffuse:"contourMaterial.alpha == 0.0 ? elevationRampMaterial.diffuse : contourMaterial.diffuse",alpha:"max(contourMaterial.alpha, elevationRampMaterial.alpha)"}},translucent:!1})}function $N(){return new F.Material({fabric:{type:"SlopeColorContour",materials:{contourMaterial:{type:"ElevationContour"},slopeRampMaterial:{type:"SlopeRamp"}},components:{diffuse:"contourMaterial.alpha == 0.0 ? slopeRampMaterial.diffuse : contourMaterial.diffuse",alpha:"max(contourMaterial.alpha, slopeRampMaterial.alpha)"}},translucent:!1})}function ZN(){return new F.Material({fabric:{type:"AspectColorContour",materials:{contourMaterial:{type:"ElevationContour"},aspectRampMaterial:{type:"AspectRamp"}},components:{diffuse:"contourMaterial.alpha == 0.0 ? aspectRampMaterial.diffuse : contourMaterial.diffuse",alpha:"max(contourMaterial.alpha, aspectRampMaterial.alpha)"}},translucent:!1})}const YN=[0,.045,.1,.15,.37,.54,1],JN=[0,.29,.5,Math.sqrt(2)/2,.87,.91,1],eV=[0,.2,.4,.6,.8,.9,1];function pS(t,n){const e=document.createElement("canvas");e.width=100,e.height=1;const r=e.getContext("2d");let s;if(t==="elevation")s=YN;else if(t==="slope")s=JN;else if(t==="aspect")s=eV;else throw new Error("values未赋值!");const o=r.createLinearGradient(0,0,100,0);return o.addColorStop(s[0],n!=null&&n[0]?Qi(n==null?void 0:n[0]):"#000000"),o.addColorStop(s[1],n!=null&&n[1]?Qi(n==null?void 0:n[1]):"#2747E0"),o.addColorStop(s[2],n!=null&&n[2]?Qi(n==null?void 0:n[2]):"#D33B7D"),o.addColorStop(s[3],n!=null&&n[3]?Qi(n==null?void 0:n[3]):"#D33038"),o.addColorStop(s[4],n!=null&&n[4]?Qi(n==null?void 0:n[4]):"#FF9742"),o.addColorStop(s[5],n!=null&&n[5]?Qi(n==null?void 0:n[5]):"#ffd700"),o.addColorStop(s[6],n!=null&&n[6]?Qi(n==null?void 0:n[6]):"#ffffff"),r.fillStyle=o,r.fillRect(0,0,100,1),e}class Vs extends E.Destroyable{constructor(e){super();N(this,"_geoPath");N(this,"_geoPolyline");N(this,"_geoCanvasPointPoi");N(this,"_player");N(this,"_flyToEvent",this.disposeVar(new E.Event));N(this,"_currentDistance",this.disposeVar(E.react(0)));N(this,"_ratio",this.disposeVar(Q.PlayerProperty.createPlayingRatio([this,"currentTime"],[this,"duration"])));this._geoPath=this.disposeVar(new Q.ESPathImpl),this._geoPolyline=this.disposeVar(new lt(e)),this._geoCanvasPointPoi=this.disposeVar(new Xi(e)),this._player=this.disposeVar(new Q.Player),this._geoPolyline.show=!1,this.dispose(E.bind([this._geoPolyline,"positions"],[this,"positions"])),this.dispose(E.track([this._geoPath,"currentTime"],[this,"currentDistance"])),this.dispose(E.track([this._geoPath,"leadTime"],[this,"leadTime"])),this.dispose(E.track([this._geoPath,"trailTime"],[this,"trailTime"])),this.dispose(E.track([this._geoPath,"show"],[this,"show"])),this.dispose(E.track([this._geoPath,"polylineShow"],[this,"polylineShow"])),this.dispose(E.track([this._geoPath,"currentPoiShow"],[this,"currentPoiShow"])),this.dispose(E.track([this._geoPath,"width"],[this,"width"])),this.dispose(E.track([this._geoPath,"ground"],[this,"ground"])),this.dispose(E.track([this._geoPath,"color"],[this,"color"])),this.dispose(E.track([this._geoPath,"hasDash"],[this,"hasDash"])),this.dispose(E.track([this._geoPath,"gapColor"],[this,"gapColor"])),this.dispose(E.track([this._geoPath,"dashLength"],[this,"dashLength"])),this.dispose(E.track([this._geoPath,"dashPattern"],[this,"dashPattern"])),this.dispose(E.track([this._geoPath,"hasArrow"],[this,"hasArrow"])),this.dispose(E.track([this._geoPath,"depthTest"],[this,"depthTest"])),this.dispose(E.track([this._geoPath,"arcType"],[this,"arcType"])),this.dispose(E.track([this._geoPath,"allowPicking"],[this,"allowPicking"]));{const r=()=>{this._geoCanvasPointPoi.show=(this.show??!0)&&(this.currentPoiShow??!0)};r(),this.dispose(this.showChanged.disposableOn(r)),this.dispose(this.currentPoiShowChanged.disposableOn(r))}this.dispose(E.track([this._geoCanvasPointPoi,"position"],[this,"currentPosition"]));{const r=()=>{if(this.positions){const o=this.granularity*Math.PI/180,i=Rp(this.positions,this.arcType??"GEODESIC",o);if(i){this._geoPath.timePosRots=i.timePosRots,this.rotationRadius.some(a=>a>0)?(this._geoPath.addAroundPoints(this.rotationRadius,!0),this._geoPath.computeRotIfUndefinedUsingLerp(!0),this._geoPath.rotLerpMode="Lerp"):(this._geoPath.computeRotIfUndefinedUsingPrevLine(!0),this._geoPath.rotLerpMode=this.rotLerpMode);return}}this._geoPath.timePosRots=[]};r();const s=this.disposeVar(E.createNextAnimateFrameEvent(this.positionsChanged,this.arcTypeChanged,this.granularityChanged,this.rotationRadiusChanged,this.rotLerpModeChanged));this.dispose(s.disposableOn(r))}{const r=()=>{if((this._player.duration??3e3)<=0){this.currentDistance=0;return}const s=this.totalDistance*((this._player.currentTime??0)/(this._player.duration??3e3));Math.abs(s-this.currentDistance)>.01&&(this.currentDistance=s)};r(),this.dispose(this._player.currentTimeChanged.disposableOn(r))}{const r=()=>{if(this.totalDistance<=0){this._player.currentTime=0;return}const s=this.currentDistance/this.totalDistance*(this.duration??3e3);Math.abs(s-(this._player.currentTime??0))>.01&&(this._player.currentTime=s)};r(),this.dispose(this.currentDistanceChanged.disposableOn(r))}this.dispose(E.bind([this._player,"loop"],[this,"loop"])),this.dispose(E.bind([this._player,"currentTime"],[this,"currentTime"])),this.dispose(E.bind([this._player,"duration"],[this,"duration"])),this.dispose(E.bind([this._player,"playing"],[this,"playing"])),this.dispose(E.bind([this._player,"speed"],[this,"speed"])),this.dispose(this._flyToEvent.disposableOn(r=>{this._geoPolyline.flyTo(r)}))}get geoPath(){return this._geoPath}get geoPolyline(){return this._geoPolyline}get geoCanvasPointPoi(){return this._geoCanvasPointPoi}get player(){return this._player}get currentInfo(){return this._geoPath.currentInfo}get currentInfoChanged(){return this._geoPath.currentInfoChanged}get currentIndex(){return this._geoPath.currentIndex}get currentIndexChanged(){return this._geoPath.currentIndexChanged}get currentPosition(){return this._geoPath.currentPosition}get currentPositionChanged(){return this._geoPath.currentPositionChanged}get currentRotation(){return this._geoPath.currentRotation}get currentRotationChanged(){return this._geoPath.currentRotationChanged}get accumDistances(){return this._geoPath.accumDistances}get accumDistancesChanged(){return this._geoPath.accumDistancesChanged}get totalDistance(){return this._geoPath.totalDistance}get totalDistanceChanged(){return this._geoPath.totalDistanceChanged}get flyToEvent(){return this._flyToEvent}flyTo(e){this._flyToEvent.emit(e)}subPath(e,r){const s=this._geoPath.subPath(e,r);if(s)return s.map(o=>o[1])}get currentDistance(){return this._currentDistance.value}set currentDistance(e){this._currentDistance.value=e}get currentDistanceChanged(){return this._currentDistance.changed}get ratio(){return this._ratio.value}set ratio(e){this._ratio.value=e}get ratioChanged(){return this._ratio.changed}get timePosRots(){return this.geoPath.timePosRots}}(t=>{t.createDefaultProps=()=>({show:!0,allowPicking:!1,currentPoiShow:!0,polylineShow:!0,positions:E.reactPositions(void 0),width:1,ground:!1,color:E.reactArray([1,1,1,1]),hasDash:!1,gapColor:E.reactArray([0,0,0,0]),dashLength:16,dashPattern:255,hasArrow:!1,arcType:"GEODESIC",granularity:1,loop:!1,currentTime:0,duration:3e3,speed:1,playing:!1,depthTest:!1,leadTime:0,trailTime:0,rotationRadius:[0],rotLerpMode:"Next"})})(Vs||(Vs={})),E.extendClassProps(Vs.prototype,Vs.createDefaultProps);class Ze extends dr{constructor(e,r){super(e,r);N(this,"_smoothMoving");if(this._smoothMoving=this.disposeVar(new F2(this.czmViewer)),this.d(this._smoothMoving.currentPositionChanged.don(o=>{o&&(this.sceneObject.position=o)})),this.d(this._smoothMoving.currentRotationChanged.don(o=>{o&&this._smoothMoving.isRotating&&(this.sceneObject.rotation=o)})),this.d(this._smoothMoving.currentHeadingChanged.don(o=>{if(o!==void 0&&!this._smoothMoving.isRotating){const i=this.sceneObject.rotation;this.sceneObject.rotation=[o-90,i[1],i[2]]}})),!r.viewer){console.warn("viewer is undefined!");return}this.d(e.smoothMoveEvent.don((o,i)=>{this.smoothMove(o,i*1e3)})),this.d(e.smoothMoveWithRotationEvent.don((o,i,a)=>{this.smoothMoveWithRotation(o,i,a*1e3)})),this.d(e.smoothMoveOnGroundEvent.don((o,i,a)=>{this.smoothMoveOnGround(o,i,a*1e3)})),this.d(e.smoothMoveWithRotationOnGroundEvent.don((o,i,a,l)=>{this.smoothMoveWithRotationOnGround(o,i,a,l*1e3)})),this.d(e.calcFlyToParamEvent.don(()=>{if(!e.useCalcFlyToParamInESObjectWithLocation)return;if(!e.position){console.warn(`!sceneObject(${e.name}-${e.id}).position`);return}const o=r.calcFlyToParam(e.position);if(!o){console.warn("czmViewer.calcFlyToParam error.");return}e.flyToParam=o})),this.d(e.automaticLandingEvent.don(o=>{const i=[e.position[0],e.position[1]],a=r.getTerrainHeight(i);a?e.position=[...i,a]:console.warn("不存在相交"),e.collision=o}));{const o=this.dv(E.createNextAnimateFrameEvent(e.minVisibleDistanceChanged,e.maxVisibleDistanceChanged));this.d(o.don(()=>this.visibleDistance(e,r))),this.d(r.cameraChanged.don(()=>this.visibleDistance(e,r)))}}smoothMove(e,r){this._smoothMoving.isGround=!1,this._smoothMoving.isRotating=!1,this._smoothMoving.restart(this.sceneObject.position,this.sceneObject.rotation,0),this._smoothMoving.restart(e,this.sceneObject.rotation,r)}smoothMoveWithRotation(e,r,s){this._smoothMoving.isGround=!1,this._smoothMoving.isRotating=!0,this._smoothMoving.restart(this.sceneObject.position,this.sceneObject.rotation,0),this._smoothMoving.restart(e,r,s)}smoothMoveOnGround(e,r,s){const o=this.czmViewer.getTerrainHeight([e,r])??0;this._smoothMoving.isGround=!0,this._smoothMoving.isRotating=!1,this._smoothMoving.restart(this.sceneObject.position,this.sceneObject.rotation,0),this._smoothMoving.restart([e,r,o],this.sceneObject.rotation,s)}smoothMoveWithRotationOnGround(e,r,s,o){const i=this.czmViewer.getTerrainHeight([r,s])??0;this._smoothMoving.isGround=!0,this._smoothMoving.isRotating=!0,this._smoothMoving.restart(this.sceneObject.position,this.sceneObject.rotation,0),this._smoothMoving.restart([r,s,i],e,o)}visibleDistance(e,r){var o;const s=Ze.getInnerCzmObjects(this);if((o=r.viewer)!=null&&o.camera&&e.show&&s.length!=0){const i=Q.getDistancesFromPositions([e.position,Nn(r.viewer.camera)],"NONE")[0];let a=!1;e.minVisibleDistance<e.maxVisibleDistance?a=e.minVisibleDistance<i&&i<e.maxVisibleDistance:e.maxVisibleDistance==0&&(a=i>e.minVisibleDistance),s.forEach(l=>{if(l instanceof wt)return;const h=e.show&&a;Reflect.has(l,"showHelper")&&(l.showHelper=h),Reflect.has(l,"enabled")&&(l.enabled=h),Reflect.has(l,"show")&&(l.show=h)})}}static getInnerCzmObjects(e){const r=[];for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(!s.includes("czmViewer")&&s.includes("czm")||!Number.isNaN(+s)?Array.isArray(e[s])?r.push(...Ze.getInnerCzmObjects(e[s])):r.push(e[s]):e[s]&&e[s].obj&&r.push(...Ze.getInnerCzmObjects(e[s].obj)));return r}flyTo(e,r){const{sceneObject:s,czmViewer:o}=this;if(!o.actived)return!1;if(s.flyToParam&&s.position){const{position:i,flyToParam:a}=s,{distance:l,heading:h,pitch:f,flyDuration:u,hDelta:y,pDelta:v}=a;return this.flyToWithPromise(r,i,l,[h,f,0],e??u,y,v),!0}return super.flyTo(e,r)}flyIn(e,r){const{sceneObject:s,czmViewer:o}=this;if(!o.actived)return!1;if(!s.flyInParam&&s.position&&s.rotation){const i=e??1,a=[...s.rotation];return a[0]+=90,this.flyToWithPromise(r,s.position,void 0,a,i),!0}return super.flyIn(e,r)}}class xn extends dr{constructor(n,e){if(super(n,e),!e.viewer){console.warn("viewer is undefined!");return}}}class Pu extends Ze{constructor(e,r){super(e,r);N(this,"_lastHoverResult",this.disposeVar(E.react(void 0)));if(!r.viewer){console.warn("viewer is undefined!");return}const o=this.ad(E.createProcessingFromAsyncFunc(async(i,a)=>{const l=await i.promise(r.pick(a.screenPosition,"innerHoverEvent"));this.lastHoverResult=Object.assign({},l,a)}));this.ad(r.pointerMoveEvent.don(async i=>{!o.isRunning&&o.restart(void 0,i)}))}get lastHoverResult(){return this._lastHoverResult.value}set lastHoverResult(e){this._lastHoverResult.value=e}get lastHoverResultChanged(){return this._lastHoverResult.changed}}class Xd extends Ze{constructor(n,e){if(super(n,e),!e.viewer){console.warn("viewer is undefined!");return}}}function tV(t){return[t.urlChanged,t.classificationTypeChanged,t.ellipsoidChanged,t.modelUpAxisChanged,t.modelForwardAxisChanged,t.cullWithChildrenBoundsChanged,t.enableShowOutlineChanged,t.projectTo2DChanged,t.debugHeatmapTilePropertyNameChanged,t.enableDebugWireframeChanged,t.vectorClassificationOnlyChanged,t.vectorKeepDecodedPositionsChanged]}function AS(t,n){const e=n;if(e.modelMatrix){F.Matrix4.clone(F.Matrix4.fromArray(e.modelMatrix),t.modelMatrix);return}if(!e.position){F.Matrix4.clone(F.Matrix4.IDENTITY,t.modelMatrix);return}let r=t._root.transform;const s=At({initialRotation:"yForwardzUp",rotation:[0,0,0],position:e.origin});(s&&!s.equalsEpsilon(r,.001)||r.equals(F.Matrix4.IDENTITY))&&s&&(r=s);const o=At({initialRotation:"yForwardzUp",rotation:e.rotation,position:e.position});if(!o){console.warn("modelMatrix is undefined!");return}const i=F.Matrix4.inverseTransformation(r,new F.Matrix4);F.Matrix4.multiply(o,i,t.modelMatrix)}class nV extends E.Destroyable{constructor(n,e,r){super(),this._tileset=n,this._czm3DTiles=e,this._updateMatrixEvent=r;{const s=()=>{const i=F.Matrix4.inverseTransformation(n.clippingPlanesOriginMatrix,new F.Matrix4);if(!n.clippingPlanes){n.clippingPlanes=xl(e.clippingPlanes??{enabled:!1},i);return}Nh(n.clippingPlanes,e.clippingPlanes,i)};s();const o=this.disposeVar(E.createNextAnimateFrameEvent(e.clippingPlanesChanged,e.originRootTransformInvChanged,this._updateMatrixEvent));this.dispose(o.disposableOn(s))}}get tileset(){return this._tileset}get czm3DTiles(){return this._czm3DTiles}}class rV extends E.Destroyable{constructor(n,e){super(),this._tileset=n,this._czm3DTiles=e;const{tileset:r,czm3DTiles:s}=this;{const o=()=>{if(!r.clippingPlanes){r.clippingPlanes=xl(s.clippingPlanes??{enabled:!1});return}Nh(r.clippingPlanes,s.clippingPlanes)};o(),this.dispose(s.clippingPlanesChanged.disposableOn(o))}}get tileset(){return this._tileset}get czm3DTiles(){return this._czm3DTiles}}class iV extends E.Destroyable{constructor(n,e){super(),this._tileset=n,this._czm3DTiles=e;const{tileset:r,czmCzm3DTiles:s}=this;{const o=()=>{r.clippingPolygons=s.clippingPolygons?Vh(s.clippingPolygons):new F.ClippingPolygonCollection};o(),this.dispose(s.clippingPolygonsChanged.disposableOn(o))}}get tileset(){return this._tileset}get czmCzm3DTiles(){return this._czm3DTiles}}class oV extends E.Destroyable{constructor(n,e){super(),this._nativeTilesetReadyResetting=n,this._czmFlattenedPlane=e;const{tileset:r}=this;this.setFlattened(!0),this.dispose(()=>{this.setFlattened(!1)});{const s=()=>{const o=this._czmFlattenedPlane.finalMatrix?F.Matrix4.toArray(this._czmFlattenedPlane.finalMatrix):[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];this.setElevationMatrix(o)};s(),this.dispose(this._czmFlattenedPlane.finalMatrixChanged.disposableOn(s))}{const s=()=>{const i=[...this._czmFlattenedPlane.minSize,...this._czmFlattenedPlane.maxSize];this.setFlattenedBound(i)};s();const o=this.disposeVar(E.createNextAnimateFrameEvent(this._czmFlattenedPlane.minSizeChanged,this._czmFlattenedPlane.maxSizeChanged));this.dispose(o.disposableOn(s))}r.xbsjGetFlattenedTextureFunc=()=>{const{sceneObject:s}=this._czmFlattenedPlane.czmTextureWithId;return s?window.czmTexture[s.id].texture:void 0},this.dispose(()=>r.xbsjGetFlattenedTextureFunc=void 0);{const s=()=>{const o=this._czmFlattenedPlane.computedCustomShader;this._nativeTilesetReadyResetting.flattenedCustomShader=o&&new o(this.czm3DTiles,this.czm3DTiles.czmViewer)};s(),this.dispose(this._czmFlattenedPlane.computedCustomShaderChanged.disposableOn(s)),this.dispose(()=>this._nativeTilesetReadyResetting.flattenedCustomShader=void 0)}}get czm3DTiles(){return this._nativeTilesetReadyResetting.czm3DTiles}get tileset(){return this._nativeTilesetReadyResetting.tileset}get czmFlattenedPlane(){return this._czmFlattenedPlane}setFlattened(n){this.tileset.xbsjFlattened=n}setFlattenedBound(n){this.tileset.xbsjFlattenedBound=F.Cartesian4.fromArray(n)}setElevationMatrix(n){this.tileset.xbsjElevationMatrix=F.Matrix4.fromArray(n)}}function aV(t,n){t.show=n.show??!0,t.colorBlendMode=F.Cesium3DTileColorBlendMode[n.colorBlendMode??"HIGHLIGHT"],t.shadows=(n.shadows&&cn.shadowPropsMap[n.shadows])??cn.shadowPropsMap.ENABLED,t.maximumScreenSpaceError=n.maximumScreenSpaceError??16,t.maximumMemoryUsage=n.maximumMemoryUsage??it.defaults.maximumMemoryUsage,t.cacheBytes=n.cacheBytes??it.defaults.cacheBytes,t.maximumCacheOverflowBytes=n.maximumCacheOverflowBytes??it.defaults.maximumCacheOverflowBytes,t.cullRequestsWhileMoving=n.cullRequestsWhileMoving??!0,t.cullRequestsWhileMovingMultiplier=n.cullRequestsWhileMovingMultiplier??60,t.preloadWhenHidden=n.preloadWhenHidden??!1,t.preloadFlightDestinations=n.preloadFlightDestinations??!0,t.preferLeaves=n.preferLeaves??!1,t.dynamicScreenSpaceError=n.dynamicScreenSpaceError??!1,t.dynamicScreenSpaceErrorDensity=n.dynamicScreenSpaceErrorDensity??.00278,t.dynamicScreenSpaceErrorFactor=n.dynamicScreenSpaceErrorFactor??4,t.dynamicScreenSpaceErrorHeightFalloff=n.dynamicScreenSpaceErrorHeightFalloff??.25,t.progressiveResolutionHeightFraction=n.progressiveResolutionHeightFraction??.3,t.foveatedScreenSpaceError=n.foveatedScreenSpaceError??!0,t.foveatedConeSize=n.foveatedConeSize??.1,t.foveatedMinimumScreenSpaceErrorRelaxation=n.foveatedMinimumScreenSpaceErrorRelaxation??0,t.foveatedTimeDelay=n.foveatedTimeDelay??.2,t.skipLevelOfDetail=n.skipLevelOfDetail??!1,t.baseScreenSpaceError=n.baseScreenSpaceError??1024,t.skipScreenSpaceErrorFactor=n.skipScreenSpaceErrorFactor??16,t.skipLevels=n.skipLevels??1,t.immediatelyLoadDesiredLevelOfDetail=n.immediatelyLoadDesiredLevelOfDetail??!1,t.loadSiblings=n.loadSiblings??!1,t.lightColor=(n.lightColor&&pr(n.lightColor))??it.defaults.lightColor,t.backFaceCulling=n.backFaceCulling??!0,t.showOutline=n.showOutline??!0,t.outlineColor=Oe(n.outlineColor??it.defaults.outlineColor),t.featureIdLabel=n.featureIdLabel??it.defaults.featureIdLabel,t.instanceFeatureIdLabel=n.instanceFeatureIdLabel??it.defaults.instanceFeatureIdLabel,t.showCreditsOnScreen=n.showCreditsOnScreen??!1,t.splitDirection=F.SplitDirection[n.splitDirection??it.defaults.splitDirection],t.debugFreezeFrame=n.debugFreezeFrame??!1,t.debugColorizeTiles=n.debugColorizeTiles??!1,t.debugWireframe=n.debugWireframe??!1,t.debugShowBoundingVolume=n.debugShowBoundingVolume??!1,t.debugShowContentBoundingVolume=n.debugShowContentBoundingVolume??!1,t.debugShowViewerRequestVolume=n.debugShowViewerRequestVolume??!1,t.debugShowGeometricError=n.debugShowGeometricError??!1,t.debugShowRenderingStatistics=n.debugShowRenderingStatistics??!1,t.debugShowMemoryUsage=n.debugShowMemoryUsage??!1,t.debugShowUrl=n.debugShowUrl??!1}function sV(t){return[t.showChanged,t.colorBlendModeChanged,t.shadowsChanged,t.maximumScreenSpaceErrorChanged,t.maximumMemoryUsageChanged,t.cacheBytesChanged,t.maximumCacheOverflowBytesChanged,t.cullRequestsWhileMovingChanged,t.cullRequestsWhileMovingMultiplierChanged,t.preloadWhenHiddenChanged,t.preloadFlightDestinationsChanged,t.preferLeavesChanged,t.dynamicScreenSpaceErrorChanged,t.dynamicScreenSpaceErrorDensityChanged,t.dynamicScreenSpaceErrorFactorChanged,t.dynamicScreenSpaceErrorHeightFalloffChanged,t.progressiveResolutionHeightFractionChanged,t.foveatedScreenSpaceErrorChanged,t.foveatedConeSizeChanged,t.foveatedMinimumScreenSpaceErrorRelaxationChanged,t.foveatedTimeDelayChanged,t.skipLevelOfDetailChanged,t.baseScreenSpaceErrorChanged,t.skipScreenSpaceErrorFactorChanged,t.skipLevelsChanged,t.immediatelyLoadDesiredLevelOfDetailChanged,t.loadSiblingsChanged,t.lightColorChanged,t.backFaceCullingChanged,t.showOutlineChanged,t.outlineColorChanged,t.featureIdLabelChanged,t.instanceFeatureIdLabelChanged,t.showCreditsOnScreenChanged,t.splitDirectionChanged,t.debugFreezeFrameChanged,t.debugColorizeTilesChanged,t.debugWireframeChanged,t.debugShowBoundingVolumeChanged,t.debugShowContentBoundingVolumeChanged,t.debugShowViewerRequestVolumeChanged,t.debugShowGeometricErrorChanged,t.debugShowRenderingStatisticsChanged,t.debugShowMemoryUsageChanged,t.debugShowUrlChanged,t.enableShowOutlineChanged]}function lV(t,n){console.warn("Czm3DTiles暂不支持pointCloudShading属性"),t.pointCloudShading=new F.PointCloudShading(n.pointCloudShading)}function uV(t,n){var r,s,o;t.imageBasedLighting.imageBasedLightingFactor=rt(((r=n.imageBasedLighting)==null?void 0:r.imageBasedLightingFactor)??[1,1]),t.imageBasedLighting.specularEnvironmentMaps=(s=n.imageBasedLighting)==null?void 0:s.specularEnvironmentMaps;const e=(o=n.imageBasedLighting)==null?void 0:o.sphericalHarmonicCoefficients;t.imageBasedLighting.sphericalHarmonicCoefficients=e&&Qp(e)}class cV extends E.Destroyable{constructor(e,r,s,o){super();N(this,"_clippingPlanesCollectionResetting");N(this,"_clippingPolygonCollectionResetting");N(this,"_flattenedCustomShader",this.disposeVar(E.react(void 0)));this._tileset=e,this._czm3DTiles=r,this._czmNativeViewer=s,this._czmViewer=o,this._clippingPolygonCollectionResetting=new iV(this.tileset,this.czm3DTiles);const{tileset:i,czm3DTiles:a}=this;{const p=this.disposeVar(E.createNextAnimateFrameEvent(this.czm3DTiles.positionChanged,this.czm3DTiles.rotationChanged,this.czm3DTiles.modelMatrixChanged,this.czm3DTiles.originChanged));AS(this.tileset,this.czm3DTiles),this.dispose(p.disposableOn(()=>AS(this.tileset,this.czm3DTiles))),this._clippingPlanesCollectionResetting=this.disposeVar(new E.ObjResettingWithEvent(this.czm3DTiles.absoluteClippingPlanesChanged,()=>this.czm3DTiles.absoluteClippingPlanes?new nV(this.tileset,this.czm3DTiles,p):new rV(this.tileset,this.czm3DTiles)))}this.disposeVar(new E.ObjResettingWithEvent(this.czm3DTiles.czmFlattenedPlaneWithId.sceneObjectChanged,()=>{const{sceneObject:p}=this.czm3DTiles.czmFlattenedPlaneWithId;if(!p)return;let d;Q.registerCreatedEventUpdate(this,p,()=>{const c=o.getEngineObject(p);if(p instanceof Q.ES3DTileset&&(d=c.flattenedPlane),!!d)return new oV(this,d)})}));const l=this.disposeVar(E.createNextAnimateFrameEvent(...sV(a)));Q.registerEventUpdate(this,l,()=>{aV(i,a)}),Q.registerEventUpdate(this,a.foveatedInterpolationCallbackChanged,()=>{i.foveatedInterpolationCallback=a.foveatedInterpolationCallback}),Q.registerEventUpdate(this,a.styleChanged,()=>{i.style=a.style}),Q.registerEventUpdate(this,a.pointCloudShadingChanged,()=>{lV(i,a)}),Q.registerEventUpdate(this,a.imageBasedLightingChanged,()=>{uV(i,a)}),Q.registerEventUpdate(this,a.environmentMapManagerChanged,()=>{Vp(i.environmentMapManager,a)});let h=[],f,u,y=!0,v=()=>{var p;return(p=o.viewer)==null?void 0:p.scene.postUpdate.addEventListener(d=>{i._selectedTiles.length===h.length&&h.every(c=>i._selectedTiles.includes(c))||(h.splice(0,h.length,...i._selectedTiles),i._selectedTiles.forEach(c=>{Pl(c.content._model,f)}))})};const g=()=>{u&&(u(),u=void 0),h=[],f=void 0};this.ad(g);const m=(p,d)=>{d=="default"?p._contentState=F.Cesium3DTileContentState.UNLOADED:p.content&&Reflect.has(p.content,"_model")&&!Pl(p.content._model,d)&&y&&(y=!1),p.children&&p.children.forEach(c=>{m(c,d)})};this.ad(a.setMaterialEvent.don(async p=>{let d,c;if(y=!0,p=="default")g(),d=c=void 0,m(i.root,"default");else{f={};for(const w in p){const b=p[w];f[w]={...b},Reflect.has(b,"baseColorTexture")&&(b.baseColorTexture==null?f[w].baseColorTexture=void 0:b.baseColorTexture.value!=""&&(d=Tl(this._czmViewer.viewer,b.baseColorTexture,{magFilter:b.magFilter,minFilter:b.minFilter}))),Reflect.has(b,"normalTexture")&&(b.normalTexture==null?f[w].normalTexture=void 0:b.normalTexture.value!=""&&(c=Tl(this._czmViewer.viewer,b.normalTexture,{magFilter:b.magFilter,minFilter:b.minFilter})));const _=await Promise.allSettled([d,c]);d=_[0].value,c=_[1].value,d!=null&&(f[w].baseColorTexture=d),c!=null&&(f[w].normalTexture=c)}m(i.root,f),u||(u=v())}const A=Q.ESSceneObject.getSceneObject(this.czm3DTiles.id);A&&A instanceof Q.ES3DTileset&&A.setMaterialInfoEvent.emit({type:y?"success":"warn",message:y?"完成":"部分材质颜色纹理设置失败,请检查原始模型中材质是否具有baseColorTexture属性"})}));{const p=()=>{var c,A;if(this.flattenedCustomShader){i.customShader=(c=this.flattenedCustomShader)==null?void 0:c.customShader,a.customShaderInstance&&console.warn("压平shader和Czm3DTiles的customShader冲突,优先使用压平shader!");return}i.customShader=(A=a.customShaderInstance)==null?void 0:A.customShader};p();const d=this.disposeVar(E.createNextAnimateFrameEvent(a.customShaderInstanceChanged,this.flattenedCustomShaderChanged));this.dispose(d.disposableOn(p))}this.dispose(a.flyToEvent.disposableOn(p=>{a.czmViewer.actived&&this.tileset&&this._czmNativeViewer.camera.flyToBoundingSphere(this.tileset.boundingSphere,{duration:(p??1e3)/1e3})}))}get tileset(){return this._tileset}get czm3DTiles(){return this._czm3DTiles}get clippingPlanesCollectionResetting(){return this._clippingPlanesCollectionResetting}get clippingPolygonCollectionResetting(){return this._clippingPolygonCollectionResetting}get flattenedCustomShader(){return this._flattenedCustomShader.value}set flattenedCustomShader(e){this._flattenedCustomShader.value=e}get flattenedCustomShaderChanged(){return this._flattenedCustomShader.changed}}function hV(t){const{imageBasedLightingFactor:n,sphericalHarmonicCoefficients:e,specularEnvironmentMaps:r}=t,s={imageBasedLightingFactor:n&&new F.Cartesian2(n[0],n[1]),sphericalHarmonicCoefficients:e&&e.map(o=>new F.Cartesian3(o[0],o[1],o[2])),specularEnvironmentMaps:r&&Q.ESSceneObject.context.getStrFromEnv(r)};return new F.ImageBasedLighting(s)}async function fV(t,n,e){let r="";if(typeof n!="string"?typeof n=="object"&&n.url&&(r=new F.Resource({url:n.url,headers:n.headers,queryParameters:n.queryParameters,templateValues:n.templateValues,proxy:n.proxy,retryCallback:n.retryCallback,retryAttempts:n.retryAttempts,request:n.request,parseUrl:n.parseUrl})):r=n,typeof n=="string"&&n.startsWith("ion://")){const i=+n.substring(6);try{r=await F.IonResource.fromAssetId(i)}catch(a){console.error(`Ion资源未能获取到 error: ${a}`,a);return}}const s=await F.Cesium3DTileset.fromUrl(r,{show:t.show,shadows:t.shadows&&cn.shadowPropsMap[t.shadows],maximumScreenSpaceError:t.maximumScreenSpaceError,maximumMemoryUsage:t.maximumMemoryUsage,cacheBytes:t.cacheBytes,maximumCacheOverflowBytes:t.maximumCacheOverflowBytes,cullWithChildrenBounds:t.cullWithChildrenBounds,cullRequestsWhileMoving:t.cullRequestsWhileMoving,cullRequestsWhileMovingMultiplier:t.cullRequestsWhileMovingMultiplier,preloadWhenHidden:t.preloadWhenHidden,preloadFlightDestinations:t.preloadFlightDestinations,preferLeaves:t.preferLeaves,dynamicScreenSpaceError:t.dynamicScreenSpaceError,dynamicScreenSpaceErrorDensity:t.dynamicScreenSpaceErrorDensity,dynamicScreenSpaceErrorFactor:t.dynamicScreenSpaceErrorFactor,dynamicScreenSpaceErrorHeightFalloff:t.dynamicScreenSpaceErrorHeightFalloff,progressiveResolutionHeightFraction:t.progressiveResolutionHeightFraction,foveatedScreenSpaceError:t.foveatedScreenSpaceError,foveatedConeSize:t.foveatedConeSize,foveatedMinimumScreenSpaceErrorRelaxation:t.foveatedMinimumScreenSpaceErrorRelaxation,foveatedInterpolationCallback:t.foveatedInterpolationCallbackStr&&Function('"use strict";return ('+t.foveatedInterpolationCallbackStr+")")(),foveatedTimeDelay:t.foveatedTimeDelay,skipLevelOfDetail:t.skipLevelOfDetail,baseScreenSpaceError:t.baseScreenSpaceError,skipScreenSpaceErrorFactor:t.skipScreenSpaceErrorFactor,skipLevels:t.skipLevels,immediatelyLoadDesiredLevelOfDetail:t.immediatelyLoadDesiredLevelOfDetail,loadSiblings:t.loadSiblings,classificationType:cn.classificationTypeMap[t.classificationType??it.defaults.classificationType],lightColor:t.lightColor&&Tr(t.lightColor),backFaceCulling:t.backFaceCulling??it.defaults.backFaceCulling,showOutline:t.showOutline??it.defaults.showOutline,debugHeatmapTilePropertyName:t.debugHeatmapTilePropertyName,debugFreezeFrame:t.debugFreezeFrame,debugColorizeTiles:t.debugColorizeTiles,debugWireframe:t.debugWireframe,debugShowBoundingVolume:t.debugShowBoundingVolume,debugShowContentBoundingVolume:t.debugShowContentBoundingVolume,debugShowViewerRequestVolume:t.debugShowViewerRequestVolume,debugShowGeometricError:t.debugShowGeometricError,debugShowRenderingStatistics:t.debugShowRenderingStatistics,debugShowMemoryUsage:t.debugShowMemoryUsage,debugShowUrl:t.debugShowUrl,customShader:e,ellipsoid:et(t.ellipsoid??it.defaults.ellipsoid),modelMatrix:t.modelMatrix&&F.Matrix4.fromArray(t.modelMatrix),clippingPlanes:t.clippingPlanes&&xl(t.clippingPlanes),clippingPolygons:t.clippingPolygons&&Vh(t.clippingPolygons),imageBasedLighting:t.imageBasedLighting&&hV(t.imageBasedLighting),splitDirection:F.SplitDirection[t.splitDirection??it.defaults.splitDirection],modelUpAxis:t.modelUpAxis&&F.Axis[t.modelUpAxis],modelForwardAxis:t.modelForwardAxis&&F.Axis[t.modelForwardAxis],featureIdLabel:t.featureIdLabel??it.defaults.featureIdLabel,instanceFeatureIdLabel:t.instanceFeatureIdLabel??it.defaults.instanceFeatureIdLabel,outlineColor:t.outlineColor&&Oe(t.outlineColor),pointCloudShading:t.pointCloudShading,enableShowOutline:t.enableShowOutline,vectorClassificationOnly:t.vectorClassificationOnly,vectorKeepDecodedPositions:t.vectorKeepDecodedPositions,showCreditsOnScreen:t.showCreditsOnScreen,projectTo2D:t.projectTo2D,enableDebugWireframe:t.enableDebugWireframe});return F.Cesium3DTileset.prototype&&(s.ESSceneObjectID=t.id),s}class dV extends E.Destroyable{constructor(e,r,s,o){var l;super();N(this,"_tileset",this.disposeVar(E.react(void 0)));N(this,"_readyResetting");if(this._url=e,this._czm3DTiles=r,this._czmNativeViewer=s,this._czmViewer=o,this._readyResetting=this.disposeVar(new E.ObjResettingWithEvent(this.tilesetChanged,()=>{if(this.tileset)return new cV(this.tileset,this.czm3DTiles,this._czmNativeViewer,this._czmViewer)})),!this.url)throw new Error("!url");const i=(l=this.czm3DTiles.customShaderInstance)==null?void 0:l.customShader;this.disposeVar(E.createProcessingFromAsyncFunc(async h=>{const f=await h.promise(fV(this.czm3DTiles,this.url,i));f&&(f.style=this.czm3DTiles.style,f.foveatedInterpolationCallback=this.czm3DTiles.foveatedInterpolationCallback,this._czmNativeViewer.scene.primitives.add(f),this.dispose(()=>this._czmNativeViewer.scene.primitives.remove(f)),this._tileset.value=f,this.czm3DTiles.notifyCzmTilesetReady(f,this.czm3DTiles))})).start()}get url(){return this._url}get czm3DTiles(){return this._czm3DTiles}get czmViewer(){return this.czm3DTiles.czmViewer}get tileset(){return this._tileset.value}set tileset(e){this._tileset.value=e}get tilesetChanged(){return this._tileset.changed}get readyResetting(){return this._readyResetting}}function pV(t){if(t)try{return new F.Cesium3DTileStyle(t)}catch(n){console.error(`Cesium3DTiles style error: ${n}`,n);return}}class AV extends E.Destroyable{constructor(n,e){super(),this.dv(new E.ObjResettingWithEvent(e.clippingPolygonsIdChanged,(r,s)=>{if(!(!r||r===s||r&&r.length===0))return new mV(n,e)}))}}class mV extends E.Destroyable{constructor(n,e){super(),this._czmViewer=n;const r=e.clippingPolygonsId;this.d(()=>e.clippingPolygons=void 0);const s=i=>{const a=this.dv(E.createNextAnimateFrameEvent(i.positionsChanged,i.reverseChanged,i.enabledChanged,i.showHelperChanged));this.dv(new E.ObjResettingWithEvent(a,()=>new yV(n,i,e)))},o=i=>{let a;i instanceof Q.ESExcavate&&Q.registerCreatedEventUpdate(this,i,()=>{a=n.getEngineObject(i).czmPolygonClipping,s(a)}),i instanceof Q.ESHole&&Q.registerCreatedEventUpdate(this,i.excavate,()=>{a=n.getEngineObject(i.excavate).czmPolygonClipping,s(a)})};for(let i=0;i<r.length;i++){const a=r[i],l=Q.ESSceneObject.getSceneObjById(a);l&&o(l)}}}class yV extends E.Destroyable{constructor(n,e,r){super(),this._czmViewer=n;const s=r.clippingPolygonsId,o=e.enabled?e.reverse:void 0;if(s&&s.length>0){const i={polygons:[],enabled:!0,inverse:!1};for(let a=0;a<s.length;a++){const l=s[a],h=Q.ESSceneObject.getSceneObjById(l);if(!h)return;let f;do{if(h instanceof Q.ESExcavate){f=n.getEngineObject(h).czmPolygonClipping;break}if(h instanceof Q.ESHole){f=n.getEngineObject(h.excavate).czmPolygonClipping;break}}while(!1);if(!f)return;f&&f.positions&&f.positions.length>=3&&f.enabled&&(i.polygons[a]={positions:f.positions},i.inverse=o??f.reverse)}r.clippingPolygons=i}}}function mS(t){let n;try{n=t&&Function('"use strict";return ('+t+")")()}catch{n=void 0}return n||F.Math.lerp}const yS=`
3347
3347
  // shader定义请参见文档:https://github.com/CesiumGS/cesium/tree/main/Documentation/CustomShaderGuide#customshader-documentation
3348
3348
  class CityShaderInstance extends xbsj['xr-base-utils'].Destroyable {
3349
3349
  constructor(sceneObject, viewer) {
@@ -4894,10 +4894,10 @@ void main()
4894
4894
  {
4895
4895
  out_FragColor = u_color;
4896
4896
  }
4897
- `,uniformMap:{u_color:[1,1,0,1]},name:"CzmCustomPrimitive_47fd",attributes:{position:{typedArray:{type:"Float32Array",array:[0,0,0,0,0,1]},componentsPerAttribute:3}}},mt,t)}class Cj extends E.HasOwner{constructor(n){super(n);const{czmViewer:e}=this.owner;let r;this.dispose(()=>this.owner.hoveredPlaneType="none");const s=this._createRotatorMoveProcessing();this.dispose(e.pointerMoveEvent.disposableOn(o=>{const i=r=this._getStartInfo(o.pointerEvent);i&&(this.owner.hoveredPlaneType=i.currentPlaneType)})),this.dispose(e.pointerDownEvent.disposableOn(o=>{r&&r.currentPlaneType!=="none"&&(s.restart(void 0,e,r),r=void 0)})),this.dispose(e.dblclickEvent.disposableOn(o=>{do{const i=this._getStartInfo(o.pointerEvent);if(!i||i.currentPlaneType==="none")break;const{currentPlaneType:a}=i,l=[...this.owner.selfRotation];l[Er.rotationNum[a]]=0,this.owner.selfRotation=l;return}while(!1);this.owner.enabled=!1}))}_createRotatorMoveProcessing(){return this.ad(E.createProcessingFromAsyncFunc(async(n,e,r)=>{const s=this.owner.circles[r.currentPlaneType];e.incrementDisabledInputStack(),n.disposer.dispose(()=>e.decrementDisabledInputStack()),n.disposer.dispose(e.pointerMoveEvent.don(o=>{if(r&&o.pointerEvent){const{offsetX:i,offsetY:a}=o.pointerEvent,l=[i,a],{currentPlaneType:h}=r;if(h==="none")return;const f=this.owner.getPlane(h);if(!r.currentV)return;const u=f.pick(l);if(!u||!this.owner.cartesian)return;const y=F.Cartesian3.subtract(r.currentV,this.owner.cartesian,new F.Cartesian3);F.Cartesian3.normalize(y,y);const v=F.Cartesian3.subtract(u,this.owner.cartesian,new F.Cartesian3);if(F.Cartesian3.normalize(v,v),!f.normal||!f.origin)return;const g=N0(y,v,f.normal),m=N0(f.origin,y,f.normal),p=N0(f.origin,v,f.normal);{const d=[...this.owner.selfRotation];d[Er.rotationNum[h]]=r.startRotation+g,this.owner.selfRotation=d,s.circleStartRotation=m,s.circleEndRotation=p}}})),this.owner.movingPlaneType=r.currentPlaneType,n.disposer.dispose(()=>{this.owner.movingPlaneType="none"}),n.disposer.dispose(()=>{s.circleStartRotation=0,s.circleEndRotation=0}),await E.step(n,o=>new Promise((i,a)=>{o.disposer.dispose(a),o.disposer.dispose(e.pointerUpEvent.don(()=>{i()})),o.disposer.dispose(e.pointerOutEvent.don(()=>{i()}))}))}))}_pickPlane(n,e,r,s,o){const i=this.owner.cartesian;if(!i)return;const{selfRotation:a}=this.owner,l=this.owner.getPlane(r).pick(s);if(!l)return;const h=F.Cartesian3.distance(i,l),f=o/4,u=f*3/128;if(!(h>=f-u&&h<=f+u))return;const v=F.Cartesian3.distance(e.camera.positionWC,l);n.currentD2c<=v||(n.currentPlaneType=r,n.currentD2c=v,n.currentV=l,n.startRotation=a[Er.rotationNum[r]])}_getStartInfo(n){var f;const{czmViewer:e}=this.owner,r=(f=e.viewer)==null?void 0:f.scene;if(!this.owner.position||!this.owner.cartesian)return;const s=ii(r,this.owner.cartesian,this.owner.pixelSize);if(!s)return;const{offsetX:o,offsetY:i}=n,a=[o,i],l=n.pointerId,h={currentPlaneType:"none",currentD2c:Number.POSITIVE_INFINITY,currentV:void 0,startRotation:0,pointerId:l};return this._pickPlane(h,r,"heading",a,s),this._pickPlane(h,r,"pitch",a,s),this._pickPlane(h,r,"roll",a,s),h}}function N0(t,n,e){const r=F.Cartesian3.cross(n,t,new F.Cartesian3);if(r.equals(F.Cartesian3.ZERO))return 0;F.Cartesian3.normalize(r,r);const s=F.Cartesian3.dot(r,e);let o=Math.acos(F.Cartesian3.dot(t,n))*180/Math.PI;return o=s>0?o:-o,o}const La=class La extends $n{constructor(e){super();N(this,"_hoveredPlaneType",this.disposeVar(E.react("none")));N(this,"_movingPlaneType",this.disposeVar(E.react("none")));N(this,"_circles");N(this,"_czmCameraModel");N(this,"_cartesian");N(this,"_planes",{heading:this.disposeVar(new vj(this)),pitch:this.disposeVar(new wj(this)),roll:this.disposeVar(new bj(this))});N(this,"_rotatorRunningResetting");this._czmViewer=e;const r=this._czmViewer;if(this._rotatorRunningResetting=this.disposeVar(new E.ObjResettingWithEvent(this.enabledChanged,()=>{if(this.enabled)return new Cj(this)})),this._circles={heading:this._createRotatorCircle(r,"heading"),pitch:this._createRotatorCircle(r,"pitch"),roll:this._createRotatorCircle(r,"roll")},!!r.viewer){{const o=()=>{this._cartesian=this.position&&Tt(this.position)||void 0};o(),this.dispose(this.positionChanged.disposableOn(o))}this._createCameraModel(r)}}get hoveredPlaneType(){return this._hoveredPlaneType.value}set hoveredPlaneType(e){this._hoveredPlaneType.value=e}get hoveredPlaneTypeChanged(){return this._hoveredPlaneType.changed}get movingPlaneType(){return this._movingPlaneType.value}set movingPlaneType(e){this._movingPlaneType.value=e}get movingPlaneTypeChanged(){return this._movingPlaneType.changed}get circles(){return this._circles}get czmCameraModel(){return this._czmCameraModel}get cartesian(){return this._cartesian}get czmViewer(){return this._czmViewer}getPlane(e){return this._planes[e]}get rotatorRunningResetting(){return this._rotatorRunningResetting}_createCameraModel(e){this._czmCameraModel=new tn(e),this._czmCameraModel.url="${earthsdk3-assets-script-dir}/assets/glb/camera1/camera1.gltf",this._czmCameraModel.localRotation=[90,0,0],this._czmCameraModel.allowPicking=!1,this._czmCameraModel.opaquePass="OVERLAY",this.dispose(E.track([this._czmCameraModel,"pixelSize"],[this,"pixelSize"],r=>r*.1)),this.dispose(E.track([this._czmCameraModel,"position"],[this,"position"])),this.dispose(E.track([this._czmCameraModel,"rotation"],[this,"rotation"]));{const r=()=>{const s=At({rotation:this.selfRotation});if(!s)throw new Error("!rm");this._czmCameraModel&&(this._czmCameraModel.localModelMatrix=F.Matrix4.toArray(s))};r(),this.dispose(this.selfRotationChanged.disposableOn(r))}{const r=()=>{this.circles.heading.show=this.enabled,this.circles.pitch.show=this.enabled,this.circles.roll.show=this.enabled,this._czmCameraModel&&(this._czmCameraModel.show=this.enabled&&this.showHelper)};r(),this.dispose(this.enabledChanged.disposableOn(r)),this.dispose(this.showHelperChanged.disposableOn(r))}}_createRotatorCircle(e,r){const s=this.ad(new ll(e));this.dispose(E.track([s,"position"],[this,"position"])),this.dispose(E.track([s,"pixelSize"],[this,"pixelSize"])),this.dispose(E.track([s,"debug"],[this,"debug"])),this.dispose(E.track([s,"rotation"],[this,"rotation"]));{const o=()=>{s.selfRotation=La.rotationFuncs[r](this.selfRotation),s.circleRotation=this.selfRotation[La.rotationNum[r]]};o(),this.dispose(this.selfRotationChanged.disposableOn(o))}{const o=()=>{const i=this.movingPlaneType===r,a=this.hoveredPlaneType===r,h=[0,0,0,i||a?1:.8];h[La.rotationNum[r]]=1,s.color=h};o(),this.dispose(this.movingPlaneTypeChanged.disposableOn(o)),this.dispose(this.hoveredPlaneTypeChanged.disposableOn(o))}return s}};N(La,"rotationNum",{heading:0,pitch:1,roll:2}),N(La,"rotationFuncs",{heading:([e,r,s])=>[0,0,0],pitch:([e,r,s])=>[e,0,-90],roll:([e,r,s])=>[e,r+90,0]});let Er=La;(t=>{t.createDefaultProps=()=>({...$n.createDefaultProps(),rotation:E.reactArray([0,0,0]),selfRotation:E.reactArray([0,0,0]),pixelSize:300,showHelper:!1,debug:!1})})(Er||(Er={})),E.extendClassProps(Er.prototype,Er.createDefaultProps);const za=class za extends E.Destroyable{get startPosition(){return this.positions&&this.positions[0]}set startPosition(n){this.positions=[n??za.defaults.positions[0],this.stopPosition??za.defaults.positions[1]]}get startPositionChanged(){return this.positionsChanged}get stopPosition(){return this.positions&&this.positions[1]}set stopPosition(n){this.positions=[this.startPosition??za.defaults.positions[0],n??za.defaults.positions[1]]}get stopPositionChanged(){return this.positionsChanged}constructor(n,e){if(super(),!n.viewer)return;const s=this.ad(new lt(n,e));s.arcType="RHUMB";const o=this.ad(new nr(n,e));this.ad(E.track([s,"allowPicking"],[this,"allowPicking"])),this.ad(E.track([o,"allowPicking"],[this,"allowPicking"]));{const i=()=>{s.show=o.show=this.show};i(),this.ad(this.showChanged.don(i))}{const i=()=>{s.width=this.width/2,o.pixelSize=this.width};i(),this.ad(this.widthChanged.don(i))}{const i=()=>{s.color=o.color=this.color};i(),this.ad(this.colorChanged.don(i))}{const i=()=>{s.positions=this.positions,o.position=this.stopPosition};i(),this.dispose(this.startPositionChanged.disposableOn(i)),this.dispose(this.stopPositionChanged.disposableOn(i))}}};N(za,"defaults",{positions:[[0,0,0],[0,0,1e6]]});let Ia=za;(t=>{t.createDefaultProps=()=>({show:!0,allowPicking:!1,positions:E.reactPositions(t.defaults.positions),width:10,color:E.reactArray([1,0,0,1])})})(Ia||(Ia={})),E.extendClassProps(Ia.prototype,Ia.createDefaultProps);class Fi extends $n{constructor(e){super();N(this,"_lastPosition");N(this,"_opInfo",{step:this.ad(E.react(!1)),moved:this.ad(E.react(!1)),constraintMode:this.disposeVar(E.react("none")),originPosition:this.disposeVar(E.reactArray([0,0,0])),originHeading:this.disposeVar(E.react(0)),originDimensions:this.disposeVar(E.reactArray([1,1,1])),draggingStartPosition:this.disposeVar(E.reactArray([0,0,0])),movingPosition:this.disposeVar(E.reactArray([0,0,0])),targetPosition:this.disposeVar(E.reactArray([0,0,0])),targetHeading:this.disposeVar(E.react(0))});N(this,"_scaleAxis");N(this,"_pickingXYProcessing",e=>this.disposeVar(new E.Processing((r,s,o)=>{const i=[0,0,0],a=new F.Cartographic;return e.pointerMoveEvent.disposableOn(l=>{if(!l.pointerEvent||!e.viewer)return;const h=pr(E.getDomEventCurrentTargetPos(l.pointerEvent));if(!ja(e.viewer.scene,h,this._opInfo.originPosition.value[2],a))return;Qa(a,i),this._opInfo.constraintMode.value==="x"?Ho(this._opInfo.originPosition.value,this._opInfo.originHeading.value,i,i):this._opInfo.constraintMode.value==="y"?Ho(this._opInfo.originPosition.value,this._opInfo.originHeading.value+90,i,i):this._opInfo.constraintMode.value==="xy"||console.warn("should not be here!"),this._opInfo.movingPosition.value=i,this._lastPosition||(this._lastPosition=[...this._opInfo.draggingStartPosition.value]);const f=[0,0,0];Q.geoRhumbDestination(i,o,s,f),this._opInfo.targetPosition.value=f;let u=this.scale[0],y=this.scale[1];const v=Q.geoDistance(f,this._opInfo.originPosition.value)-Q.geoDistance(this._lastPosition,this._opInfo.originPosition.value);this._lastPosition=[...f];const g=this._opInfo.originDimensions.value[0]/100;v!=0&&this._opInfo.constraintMode.value==="y"&&(v>0?u+=g:u-=g),v!=0&&this._opInfo.constraintMode.value==="x"&&(v>0?y+=g:y-=g),u<=0&&(u+=g),y<=0&&(y+=g),this.scale=[u??1,y??1,this.scale[2]??1]})})));N(this,"_pickingZProcessing",e=>this.disposeVar(new E.Processing(()=>{const r=new F.Cartesian3,s=[0,0,0];return e.pointerMoveEvent.disposableOn(o=>{if(!o.pointerEvent||!e.viewer)return;const i=pr(E.getDomEventCurrentTargetPos(o.pointerEvent));if(!Hh(e.viewer.scene,Tt(this._opInfo.originPosition.value),i,r))return;this._lastPosition||(this._lastPosition=[...this._opInfo.draggingStartPosition.value]);const a=this._opInfo.originPosition.value[2]-this._opInfo.draggingStartPosition.value[2];if(He(r,s)){this._opInfo.movingPosition.value=s;const l=this._opInfo.originPosition.value;this._opInfo.targetPosition.value=[l[0],l[1],s[2]+a];let h=this.scale[2];const f=s[2]-this._lastPosition[2];this._lastPosition=[...s];const u=this._opInfo.originDimensions.value[0]/100;f!=0&&(f>0?h+=u:h-=u),h<=0&&(h+=u),this.scale=[this.scale[0]??1,this.scale[1]??1,h??1]}})})));const r=e.viewer;if(!r)return;const{scene:s}=r;this.ad(new zp(e,this.positionReact,this._opInfo.originDimensions,this.axisPixelSize)),this.ad(e.dblclickEvent.don(()=>{this.enabled=!1})),this._scaleAxis={zAxis:this._createScaleAxis(e,"zAxis"),yAxis:this._createScaleAxis(e,"yAxis"),xAxis:this._createScaleAxis(e,"xAxis")};{const h=()=>{if(!this._scaleAxis)return;const{zAxis:f,yAxis:u,xAxis:y}=this._scaleAxis,v=this._opInfo.constraintMode.value,g=this._opInfo.step;f.color=[0,0,1,.99],u.color=[0,1,0,.99],y.color=[1,0,0,.99],v==="x"?y.color=g?[1,1,0,.8]:[1,1,0,.99]:v==="y"?u.color=g?[1,1,0,.8]:[1,1,0,.99]:v==="z"&&(f.color=g?[1,1,0,.8]:[1,1,0,.99])};h(),this.dispose(this._opInfo.constraintMode.changed.disposableOn(h)),this.dispose(this._opInfo.step.changed.disposableOn(h))}{const h=()=>{if(!this._scaleAxis)return;const{position:u=Fi.defaults.position}=this,{zAxis:y,yAxis:v,xAxis:g}=this._scaleAxis;y.startPosition=v.startPosition=g.startPosition=u;const[m,p,d]=u;y.stopPosition=[m,p,d+this._opInfo.originDimensions.value[2]];const c=Q.geoRhumbDestination(u,this._opInfo.originDimensions.value[0],90);c&&(g.stopPosition=c);const A=Q.geoRhumbDestination(u,this._opInfo.originDimensions.value[1],0);A&&(v.stopPosition=A)};h();const f=this.ad(E.createNextAnimateFrameEvent(this.positionChanged,this._opInfo.originDimensions.changed));this.ad(f.don(h))}{const h=()=>{if(this._opInfo.constraintMode.value==="none"){this._opInfo.moved.value=!1;return}if(this._opInfo.originHeading.value!==this._opInfo.targetHeading.value){this._opInfo.moved.value=!0;return}if(!this._opInfo.originPosition.value.every((f,u)=>f===this._opInfo.targetPosition.value[u])){this._opInfo.moved.value=!0;return}};h(),this.dispose(this._opInfo.originHeading.changed.disposableOn(h)),this.dispose(this._opInfo.originPosition.changed.disposableOn(h)),this.dispose(this._opInfo.targetHeading.changed.disposableOn(h)),this.dispose(this._opInfo.targetPosition.changed.disposableOn(h))}const o=this._pickingXYProcessing(e),i=this._pickingZProcessing(e),a=this.disposeVar(E.createProcessingFromAsyncFunc(async h=>{do this._opInfo.step.value=!0,this._opInfo.constraintMode.value="none",h.disposer.dispose(()=>{this._opInfo.constraintMode.value="none"}),await E.step(h,async f=>{const u=()=>{const g=[...this.position??Fi.defaults.position];e.editingHeightOffset&&(g[2]-=e.editingHeightOffset),this._opInfo.targetPosition.value=this._opInfo.originPosition.value=g};f.disposer.dispose((u(),this.positionChanged.disposableOn(u)));const y={constraintMode:"none",startDragPos:[0,0,0]},v=g=>{if(!this.position)return;const m={position:this.position,dimensions:this._opInfo.originDimensions.value,heading:0};Pp(g,s,m,this.axisSnapPixelSize,y),this._opInfo.constraintMode.value=y.constraintMode,this._opInfo.movingPosition.value=this._opInfo.draggingStartPosition.value=y.startDragPos};f.disposer.dispose(e.pointerMoveEvent.disposableOn(g=>{g.pointerEvent&&v(g.pointerEvent)})),await E.step(f,g=>new Promise((m,p)=>{g.disposer.dispose(p),g.disposer.dispose(e.pointerDownEvent.don(d=>{d.pointerEvent&&v(d.pointerEvent),d.pointerEvent&&d.pointerEvent.button===0&&y.constraintMode!=="none"&&m()}))}))}),this._opInfo.step.value=!1,await E.step(h,async f=>{if(e.incrementDisabledInputStack(),f.disposer.dispose(()=>e.decrementDisabledInputStack()),["x","y"].includes(this._opInfo.constraintMode.value)){const u=Q.geoRhumbHeading(this._opInfo.draggingStartPosition.value,this._opInfo.originPosition.value),y=Q.geoRhumbDistance(this._opInfo.draggingStartPosition.value,this._opInfo.originPosition.value);o.restart(void 0,u,y),f.disposer.dispose(()=>o.cancel())}else this._opInfo.constraintMode.value==="z"&&(i.restart(),f.disposer.dispose(()=>i.cancel()));await E.step(f,u=>new Promise((y,v)=>{u.disposer.dispose(v),u.disposer.dispose(e.pointerUpEvent.don(()=>{y()})),u.disposer.dispose(e.pointerOutEvent.don(()=>{y()}))})),this._lastPosition=void 0});while(!0)})),l=()=>{this.enabled?a.restart():a.isRunning&&a.cancel()};l(),this.dispose(this.enabledChanged.disposableOn(l))}get scaleAxis(){return this._scaleAxis}_createScaleAxis(e,r){const s=this.ad(new Ia(e));return s.width=10,this.ad(E.track([s,"show"],[this,"enabled"])),s}}(t=>{t.createDefaultProps=()=>({...$n.createDefaultProps(),scale:E.reactArray([1,1,1]),axisPixelSize:100,axisSnapPixelSize:5})})(Fi||(Fi={})),E.extendClassProps(Fi.prototype,Fi.createDefaultProps);const Vo=class Vo extends En{constructor(e){super();N(this,"_editingPoints",this.disposeVar(new E.ObservableArray));N(this,"_cancelEvent",this.disposeVar(new E.Event));N(this,"_currentProcess");N(this,"_menuPoiEnabled",this.disposeVar(E.react(!1)));N(this,"_status",this.disposeVar(E.react("None")));N(this,"_positionsChanged",this.ad(new E.Event));N(this,"_cursorInfo");this._czmViewer=e,this.enabled=!1,this.createPolyline(e),this._createCursorInfo(e),this.dispose(()=>this.resetPositions()),this.dispose(()=>this.editingPoints.length=0),this.dispose(this.editingPoints.changedEvent.disposableOn(()=>this.positionsChanged.emit())),this.dispose(this.editingPoints.toChangeEvent.disposableOn(r=>{for(let{start:s,deleteCount:o,items:i}of r){for(const a of i)a.menuPoi.enabled=this.menuPoiEnabled??!1;for(let a=s;a<s+o;++a)this.editingPoints.get(a).destroy()}})),this.dispose(this.menuPoiEnabledChanged.disposableOn(()=>{for(let r of this.editingPoints)r.menuPoi.enabled=this.menuPoiEnabled??!1})),this.dispose(e.dblclickEvent.don(r=>{this.ad(E.nextAnimateFrame(()=>{var s;((s=r.pointerEvent)==null?void 0:s.button)===0&&this.enabled&&this.currentProcess&&this.currentProcess.cancel()}))})),this.dispose(this.enabledChanged.disposableOn(r=>{this._currentProcess&&(r?this._currentProcess.restart():this._currentProcess.isRunning&&this._currentProcess.cancel())}));{const r=()=>{this.polylineShow=this.czmViewer.editingLineShow};r(),this.ad(this.czmViewer.editingLineShowChanged.don(r))}}get editingPoints(){return this._editingPoints}get cancelEvent(){return this._cancelEvent}cancel(){this._cancelEvent.emit()}get currentProcess(){return this._currentProcess}set currentProcess(e){this._currentProcess=e}get menuPoiEnabled(){return this._menuPoiEnabled.value}set menuPoiEnabled(e){this._menuPoiEnabled.value=e}get menuPoiEnabledChanged(){return this._menuPoiEnabled.changed}get status(){return this._status.value}get statusChanged(){return this._status.changed}set status(e){this._status.value=e}getPositions(){const e=[];for(let r of this._editingPoints)r.position&&e.push([...r.position]);return e}resetPositions(e){if(this.enabled??Vo.defaults.enabled)return console.warn("MultiPointsEditing.resetPositions error: this.enabled === true"),!1;const r=e||[];return!(r.length===this.editingPoints.length&&r.every((s,o)=>s.every((i,a)=>{const l=this.editingPoints.get(o);return l.position&&l.position[a]===i})))}forceResetPositions(e){(this.enabled??Vo.defaults.enabled)&&(this.enabled=!1),this.resetPositions(e)}get positions(){return this.getPositions()}set positions(e){this.resetPositions(e)}get positionsChanged(){return this._positionsChanged}get czmViewer(){return this._czmViewer}get cursorInfo(){return this._cursorInfo}createPolyline(e){const r=this.ad(new lt(e));this.ad(E.track([r,"color"],[this,"polylineColor"])),this.ad(E.track([r,"width"],[this,"polylineWidth"])),this.ad(E.track([r,"show"],[this,"polylineShow"])),this.ad(E.track([r,"arcType"],[this,"polylineArcType"])),this.ad(E.track([r,"loop"],[this,"loop"]));{const s=()=>{const o=[];for(const i of this.getPositions())i[2]-=e.editingHeightOffset??0,o.push(i);r.positions=o};s(),this.ad(this.positionsChanged.don(s))}}_createCursorInfo(e){const r=this._cursorInfo=this.ad(new E.CursorInfo(e.container,E.CursorFloatDiv));this.dispose(this.statusChanged.disposableOn(()=>{const s=this.status;if(r){if(!this.hideCursorInfo){r.show=!1;return}s==="Adding"?(r.text="右键/BackSpace键:删除上一个控制点;Esc键或左键双击:退出添加状态,进入修改状态",r.show=!0):s==="Modifying"||s==="Modifying_Point"?(r.text="Esc键或左键双击:退出编辑状态",r.show=!0):s==="None"&&(r.text="",r.show=!1)}}))}};N(Vo,"baseImageUrl","${earthsdk3-assets-script-dir}/assets/img/"),N(Vo,"defaults",{...En.defaults,debug:!1,polylineShow:!1,polylineWidth:1,polylineColor:[1,1,1,1],polylineArcType:"GEODESIC",maxPointsNum:Number.MAX_SAFE_INTEGER,loop:!1,firstControlPointImageUrl:Vo.baseImageUrl+"point-green.png",otherControlPointImageUrl:Vo.baseImageUrl+"point-yellow.png"});let cr=Vo;(t=>{t.createDefaultProps=()=>({...En.createDefaultProps(),loop:!1,debug:!1,polylineShow:!0,polylineWidth:1,polylineColor:E.reactArray([1,1,1,1]),polylineArcType:"GEODESIC",maxPointsNum:Number.MAX_SAFE_INTEGER,firstControlPointImageUrl:t.baseImageUrl+"point-green.png",otherControlPointImageUrl:t.baseImageUrl+"point-yellow.png",hideCursorInfo:!1,middlePointShow:!0})})(cr||(cr={})),E.extendClassProps(cr.prototype,cr.createDefaultProps);let Sj=0;class m2 extends E.Destroyable{constructor(e,r){super();N(this,"_position",this.disposeVar(E.reactArrayWithUndefined(void 0)));N(this,"_id",Sj++);N(this,"_menuPoi");r&&(this.position=r),e.debug&&console.log(`PolylinePositionEditor creating! ${this.id}`),this.dispose(()=>{e.debug&&console.log(`PolylinePositionEditor destroying! ${this.id}`)});const s=this._menuPoi=this.ad(new os(e.czmViewer));s.enabled=!1,this.ad(E.track([s,"show"],[e,"enabled"]));{const o=()=>{if(this.position===void 0){s.position=void 0;return}const i=[...this.position];i[2]-=e.czmViewer.editingHeightOffset??0,s.position=i,e.positionsChanged.emit()};o(),this.d(this.positionChanged.don(o))}{const o=()=>{const i=e.editingPoints.indexOf(this)+1;i!==0&&(s.title=`控制点${i}`,i===1?s.imageUri=e.firstControlPointImageUrl??cr.defaults.firstControlPointImageUrl:s.imageUri=e.otherControlPointImageUrl??cr.defaults.otherControlPointImageUrl)};o(),this.dispose(e.editingPoints.changedEvent.disposableOn(o))}}get position(){return this._position.value}set position(e){this._position.value=e}get positionChanged(){return this._position.changed}get id(){return this._id}get menuPoi(){return this._menuPoi}}class y2 extends m2{constructor(n,e){super(n,e)}}class Lt extends cr{constructor(e){super(e);N(this,"_deletePreviousPointWhileAddingEvent",this.disposeVar(new E.Event));N(this,"placeEditing");if(!e.viewer)return;const r=this.placeEditing=this.ad(new Sr(e));r.enabled=!1,this.currentProcess=this.disposeVar(E.createProcessingFromAsyncFunc(async s=>{s.disposer.dispose(()=>{(this.debug??Lt.defaults.debug)&&console.log("---editing canceled~~~"),this.status="None",this.enabled=!1}),(this.debug??Lt.defaults.debug)&&console.log("直接进入Adding状态"),this.status="Adding",await s.promise(E.step(s,async o=>{const i=o.disposer,a=i.ad(this._addingEditingProcessing());i.dispose(()=>"adding canceled!"),i.dispose(this.cancelEvent.disposableOn(()=>a.cancel())),await o.promise(new Promise(l=>{i.dispose(a.completeEvent.disposableOnce(l))}))}))})),this.dispose(e.clickEvent.don(s=>{var o;((o=s.pointerEvent)==null?void 0:o.button)===2&&this.deletePreviousPointWhileAdding()}))}deletePreviousPointWhileAdding(){this._deletePreviousPointWhileAddingEvent.emit()}resetPositions(e){if(!super.resetPositions(e))return!0;const r=e?e.map(s=>new y2(this,s)):[];return this.editingPoints.splice(0,this.editingPoints.length,...r),!0}_addingEditingProcessing(){const e=()=>{if(this.maxPointsNum!==void 0)return this.editingPoints.length>=this.maxPointsNum&&(this.debug??Lt.defaults.debug)&&console.log("impl.positionEditors.length >= impl.maxPointsNum"),this.editingPoints.length>=this.maxPointsNum},r=E.createProcessingFromAsyncFunc(async s=>{let o=this.editingPoints.length;this.menuPoiEnabled=!1;do if(!await s.promise(E.step(s,async a=>{let l;!e()&&(l=a.disposer.disposeVar(new Ej(this,o)));const f=a.disposer.disposeVar(new Tj(this,o));return a.disposer.dispose(this._deletePreviousPointWhileAddingEvent.disposableOn(()=>f.do())),await a.promise(new Promise(u=>{l&&a.disposer.dispose(l.overEvent.disposableOnce(y=>{y?(o++,u(!0)):u(!1)})),a.disposer.dispose(f.overEvent.disposableOnce(y=>{y?(o--,u(!0)):u(!1)})),a.disposer.dispose(this.cancelEvent.disposableOn(()=>u(!1)))}))})))break;while(!0)});return r.start(),r}}(t=>{t.createDefaultProps=()=>({...cr.createDefaultProps()})})(Lt||(Lt={})),E.extendClassProps(Lt.prototype,Lt.createDefaultProps);class Ej extends E.Destroyable{constructor(e,r){super();N(this,"_overEvent",this.disposeVar(new E.Event));const{placeEditing:s}=e;let o=new y2(e,void 0);e.editingPoints.splice(r,0,o);const i=()=>{(e.debug??Lt.defaults.debug)&&console.log("delete currentPosEditor");const h=e.editingPoints.indexOf(o);if(h===-1)throw new Error("currentPosEditor not found");e.editingPoints.splice(h,1)};if(s.enabled??!1)throw console.error("placeEditing.enabled is true!"),new Error("placeEditing.enabled is true!");this.dispose(E.track([o,"position"],[s,"position"])),s.enabled=!0;let a=!1;const l=()=>{i(),this._overEvent.emit(!1)};this.dispose(()=>{s.enabled=!1,!a&&l()}),this.dispose(s.overEvent.disposableOnce(()=>{a=!0,o.position===void 0?l():this._overEvent.emit(!0)})),(e.debug??Lt.defaults.debug)&&console.log(`PointAdding creating! index(${r})`),this.dispose(()=>{(e.debug??Lt.defaults.debug)&&console.log(`PointAdding destroying! index(${r})`)})}get overEvent(){return this._overEvent}}function Pj(t,n){const e=t.editingPoints,r=n-1;return r<0?(console.warn("previousIndex < 0, cannot delete the point!"),!1):(e.splice(r,1),!0)}class Tj extends E.Destroyable{constructor(e,r){super();N(this,"_overEvent",this.disposeVar(new E.Event));N(this,"_doEvent",this.disposeVar(new E.Event));this.dispose(this._doEvent.disposableOn(()=>this._overEvent.emit(Pj(e,r)))),(e.debug??Lt.defaults.debug)&&console.log(`PreviousPointDeleting creating! currentIndex(${r})`),this.dispose(()=>{(e.debug??Lt.defaults.debug)&&console.log(`PreviousPointDeleting destroying! currentIndex(${r})`)})}get overEvent(){return this._overEvent}do(){return this._doEvent.emit()}}class g2 extends Lt{constructor(n){super(n),this.loop=!1}}class v2 extends Lt{constructor(n){super(n),this.loop=!0}}class Ap extends m2{constructor(n,e){super(n,e);{const{menuPoi:r}=this;r.commands=[["add","增加控制点","",ht.baseImageUrl+"add.png"],["delete","删除当前控制点","",ht.baseImageUrl+"delete.png"],["modify","修改当前控制点","",ht.baseImageUrl+"modify.png"]],r.clickCommandName="modify",r.rightClickCommandName="delete",this.dispose(r.commandEvent.disposableOn(s=>{n.menuPoiCommand(this,s)})),this.dispose(r.dbclickEvent.disposableOn(()=>{n.menuPoiCommand(this,"dbClick")}))}if(n.middlePointShow){const r=this.ad(new Rr(n.czmViewer));{r.imageUri=n.firstControlPointImageUrl??ht.defaults.firstControlPointImageUrl,r.tooltip="点击增加一个控制点",r.bgColor=[0,0,0,.6],r.fgColor=[1,1,1,1],r.size=[8,8],r.originRatioAndOffset=[.5,.5,0,0];{const s=()=>{if(!(n.enabled??ht.defaults.enabled)){r.enabled=!1,r.show=!1;return}do{const i=n.editingPoints.indexOf(this);if(i===-1)break;const a=n.editingPoints.length;if(a===0){console.error("impl.positionEditors.length === 0!");break}if(!(n.loop??ht.defaults.loop)&&i+1>=a)break;const h=this.position;if(!h)break;let f=(i+1)%a;const y=n.editingPoints.get(f).position;if(!y)break;const v=Fp(h,y);if(!v)break;v[2]-=n.czmViewer.editingHeightOffset??0,r.position=v;const g=n.editingPoints.length<(n.maxPointsNum??ht.defaults.maxPointsNum);r.enabled=g,r.show=g;return}while(!1);r.enabled=!1,r.show=!1};s(),this.dispose(n.positionsChanged.disposableOn(s)),this.dispose(n.loopChanged.disposableOn(s)),this.dispose(n.enabledChanged.disposableOn(s))}this.dispose(r.clickEvent.disposableOn(s=>{if(s.button!==0||n.editingPoints.length>=(n.maxPointsNum??ht.defaults.maxPointsNum))return;const o=n.editingPoints.indexOf(this);if(o===-1)return;const i=r.position?[...r.position]:void 0;i&&(i[2]+=n.czmViewer.editingHeightOffset??0);let a=new Ap(n,i);n.editingPoints.splice(o+1,0,a),n.modify(a)}))}}}}class ht extends cr{constructor(e){super(e);N(this,"_menuPoiCommand",this.disposeVar(new E.Event));N(this,"_forceModifyPosEditorEvent",this.disposeVar(new E.Event));N(this,"_overEvent",this.disposeVar(new E.Event));N(this,"translationEditing");{const s=this.ad(E.createNextAnimateFrameEvent(this.moveWithFirstPositionChanged,this.editingPoints.changedEvent));this.ad(new E.ObjResettingWithEvent(s,()=>{if(!(!this.moveWithFirstPosition||this.editingPoints.length<=1))return new Bj(this.editingPoints.get(0),this)}))}const r=this.translationEditing=this.disposeVar(new Ii(e));r.enabled=!1,this.currentProcess=this.disposeVar(E.createProcessingFromAsyncFunc(async s=>{s.disposer.dispose(()=>{(this.debug??ht.defaults.debug)&&console.log("---editing canceled~~~"),this.status="None",this.enabled=!1});let o=-1;do if((this.debug??ht.defaults.debug)&&console.log("进入Modifying修改状态"),this.status="Modifying",o=await s.promise(E.step(s,async i=>{const a=i.disposer,l=a.ad(new Ij(this));return a.dispose(()=>"modifying canceled!"),this.editingPoints.length>0&&l.modify(this.editingPoints.get(o===-1||o>=this.editingPoints.length?0:o)),a.dispose(this.cancelEvent.disposableOn(()=>l.cancel())),a.dispose(this._forceModifyPosEditorEvent.disposableOn(f=>l.modify(f))),await i.promise(new Promise(f=>{a.dispose(l.overEvent.disposableOnce(u=>{f(u)}))}))})),o===-1){(this.debug??ht.defaults.debug)&&console.log("退出编辑状态");break}else{if(this.editingPoints.length>=(this.maxPointsNum??ht.defaults.maxPointsNum))return;if(this.editingPoints.length===0){console.error("impl.positionEditors.length === 0!");return}this.loop??ht.defaults.loop;const a=this.editingPoints.get(o-1).position;if(!a)return;let l=o%this.editingPoints.length;const f=this.editingPoints.get(l).position;if(!f)return;const u=Fp(a,f);if(!u)return;u&&(u[2]+=this.czmViewer.editingHeightOffset??0);let y=new Ap(this,u);this.editingPoints.splice(o,0,y)}while(!0);this.status="None",this.enabled=!1}))}menuPoiCommand(e,r){this._menuPoiCommand.emit(e,r)}modify(e){this._forceModifyPosEditorEvent.emit(e)}resetPositions(e){if(!super.resetPositions(e))return!0;const r=e?e.map(s=>new Ap(this,s)):[];return this.editingPoints.splice(0,this.editingPoints.length,...r),!0}get overEvent(){return this._overEvent}}(t=>{t.createDefaultProps=()=>({...cr.createDefaultProps(),moveWithFirstPosition:!1})})(ht||(ht={})),E.extendClassProps(ht.prototype,ht.createDefaultProps);class Bj extends E.Destroyable{constructor(n,e){super(),this._firstPositionEditor=n,this.multiPointsModifyEditing=e,this._firstPositionEditor.positionChanged.disposableOn((r,s)=>{if(r===void 0||s===void 0)return;var o=[r[0]-s[0],r[1]-s[1],r[2]-s[2]];const i=this.multiPointsModifyEditing.editingPoints.length;for(let a=1;a<i;a++){const l=this.multiPointsModifyEditing.editingPoints.get(a),h=l.position;h!==void 0&&(l.position=[h[0]+o[0],h[1]+o[1],h[2]+o[2]])}})}}class Ij extends E.Destroyable{constructor(e){super();N(this,"_overEvent",this.disposeVar(new E.Event));N(this,"_cancelEvent",this.disposeVar(new E.Event));N(this,"_forceModifyPosEditorEvent",this.disposeVar(new E.Event));e.menuPoiEnabled=!0,this.dispose(()=>e.menuPoiEnabled=!1);let r;const s=()=>{r==null||r.destroy(),r=void 0,e.status="Modifying"};this.dispose(s);const o=i=>{s(),e.status="Modifying_Point",r=new Fj(e,i),r.dispose(r.overEvent.disposableOn(()=>{s()}))};this.dispose(this._forceModifyPosEditorEvent.disposableOn(o)),this.dispose(e._menuPoiCommand.disposableOn((i,a)=>{if(a==="delete"){if(e.editingPoints.length<=2)return;const l=e.editingPoints.indexOf(i);if(l===-1)throw console.error("posEditor not found"),new Error("posEditor not found");e.editingPoints.splice(l,1)}else if(a==="modify")o(i);else if(a==="add"){const l=e.editingPoints.indexOf(i);if(l===-1)throw console.error("posEditor not found"),new Error("posEditor not found");this._overEvent.emit(l+1)}else a==="dbClick"?this._overEvent.emit(-1):alert(`未知的commandName(${a})`)})),this.dispose(this._cancelEvent.disposableOn(()=>{this._overEvent.emit(-1)}))}get overEvent(){return this._overEvent}cancel(){this._cancelEvent.emit()}modify(e){this._forceModifyPosEditorEvent.emit(e)}}class Fj extends E.Destroyable{constructor(e,r){super();N(this,"_overEvent",this.disposeVar(new E.Event));this._modifying=e,this._posEditor=r,this.dispose(this._posEditor.toDestroyEvent.disposableOn(()=>{this._overEvent.emit()}));const{translationEditing:s}=this._modifying;if(s.enabled=!0,s.heading=0,this.dispose(()=>{s.enabled=!1}),!this._posEditor.position)throw console.error("!this._posEditor.position"),new Error("!this._posEditor.position");s.position=this._posEditor.position,this.dispose(E.track([this._posEditor,"position"],[s,"position"])),this.dispose(s.enabledChanged.disposableOnce(o=>{o||this._overEvent.emit()}))}get overEvent(){return this._overEvent}}class w2 extends ht{constructor(n){super(n),this.loop=!1}}class b2 extends ht{constructor(n){super(n),this.loop=!0}}class ul extends Lt{init(){const n=this.startPosition;if(!n)return;const e=this.distance,r=this.rotation,s=e*Math.cos(r[1]*Math.PI/180),o=Q.geoDestination(n,s,r[0]);if(!o){this.positions=[n];return}const i=e*Math.sin(r[1]*Math.PI/180);o[2]+=i,this.positions=[n,o],this.editingPoints.length==2&&(this.editingPoints.get(0).position=n,this.editingPoints.get(1).position=o)}constructor(n){super(n),this.loop=!0,this.maxPointsNum=2;{const e=()=>{if(!this.positions||this.positions.length==0){this.distance=1,this.rotation=[90,0,0],this.startPosition=[0,0,0];return}if(this.positions.length==1){this.distance=1,this.rotation=[90,0,0];return}this.startPosition=this.positions[0],this.endPosition=this.positions[1];const r=Q.geoHeading(this.startPosition,this.endPosition),s=Q.geoDistance(this.startPosition,this.endPosition);if(s<=0){this.rotation=[90,0,0],this.distance=1;return}const o=this.endPosition[2]-this.startPosition[2],i=Math.atan(o/s)*180/Math.PI,a=Math.sqrt(s*s+o*o);this.rotation=[r,i,0],this.distance=a};e(),this.ad(this.positionsChanged.don(e))}}}(t=>{t.createDefaultProps=()=>({...Lt.createDefaultProps(),startPosition:E.reactArrayWithUndefined(void 0),endPosition:E.reactArrayWithUndefined(void 0),rotation:E.reactArray([90,0,0]),distance:E.react(1)})})(ul||(ul={})),E.extendClassProps(ul.prototype,ul.createDefaultProps);class Fa extends ht{init(){const n=this.startPosition;if(!n)return;const e=this.distance,r=this.rotation,s=e*Math.cos(r[1]*Math.PI/180),o=Q.geoDestination(n,s,r[0]);if(!o){this.positions=[n];return}const i=e*Math.sin(r[1]*Math.PI/180);o[2]+=i,this.positions=[n,o],this.editingPoints.length==2&&(this.editingPoints.get(0).position=n,this.editingPoints.get(1).position=o)}constructor(n){super(n),this.loop=!0,this.maxPointsNum=2,this.middlePointShow=!1,this.moveWithFirstPosition=!0;{const e=()=>{do{if(!this.positions||this.positions.length==0){this.distance=1,this.rotation=[90,0,0],this.startPosition=[0,0,0];break}if(this.startPosition=this.positions[0],this.positions.length==1){this.editingPoints.get(0).menuPoi.commands=[["add","增加控制点","",ht.baseImageUrl+"add.png"],["delete","删除当前控制点","",ht.baseImageUrl+"delete.png"],["modify","修改当前控制点","",ht.baseImageUrl+"modify.png"]],this.rotation=[90,0,0],this.distance=1;break}this.endPosition=this.positions[1];for(let l of this.editingPoints)l.menuPoi.commands=[["delete","删除当前控制点","",ht.baseImageUrl+"delete.png"],["modify","修改当前控制点","",ht.baseImageUrl+"modify.png"]];const r=Q.geoHeading(this.startPosition,this.endPosition),s=Q.geoDistance(this.startPosition,this.endPosition);if(Math.abs(s)<=0){this.rotation=[90,0,0],this.distance=1;return}const o=this.endPosition[2]-this.startPosition[2],i=Math.atan(o/s)*180/Math.PI,a=Math.sqrt(s*s+o*o);this.rotation=[r,i,0],this.distance=a}while(!1)};this.ad(this.positionsChanged.don(e))}}}(t=>{t.createDefaultProps=()=>({...ht.createDefaultProps(),startPosition:E.reactArrayWithUndefined(void 0),endPosition:E.reactArrayWithUndefined(void 0),rotation:E.reactArray([0,0,0]),distance:E.react(0)})})(Fa||(Fa={})),E.extendClassProps(Fa.prototype,Fa.createDefaultProps);class _2 extends Lt{constructor(n){super(n),this.loop=!1,this.polylineShow=!1}}class x2 extends ht{constructor(n){super(n),this.loop=!1,this.polylineShow=!1,this.middlePointShow=!1}}class cl extends Lt{constructor(n){super(n),n.viewer||(this.loop=!1);{const e=()=>{if(!this.positions||this.positions.length<2){this.visibilityPositions=void 0;return}const r=[...this.positions[0]];r[2]-=n.editingHeightOffset??0,this.visibilityPositions=this.positions.map(s=>(s[2]-=n.editingHeightOffset??0,[r,s]))};e(),this.ad(this.positionsChanged.don(e))}}createPolyline(n){const e=this.ad(new gr(n));e.topOrBottom="bottom",this.ad(E.track([e,"color"],[this,"polylineColor"])),this.ad(E.track([e,"width"],[this,"polylineWidth"])),this.ad(E.track([e,"show"],[this,"polylineShow"])),this.ad(E.track([e,"arcType"],[this,"polylineArcType"])),this.ad(E.track([e,"loop"],[this,"loop"])),this.ad(E.track([e,"positions"],[this,"visibilityPositions"]))}}(t=>{t.createDefaultProps=()=>({...Lt.createDefaultProps(),visibilityPositions:E.reactPositionsSet(void 0)})})(cl||(cl={})),E.extendClassProps(cl.prototype,cl.createDefaultProps);class hl extends ht{constructor(n){if(super(n),!!n.viewer){this.loop=!1,this.middlePointShow=!1;{const e=()=>{if(!this.positions||this.positions.length<2)return;const r=[...this.positions[0]];r[2]-=n.editingHeightOffset??0,this.visibilityPositions=this.positions.map(s=>(s[2]-=n.editingHeightOffset??0,[r,s]))};e(),this.ad(this.positionsChanged.don(e))}}}createPolyline(n){const e=this.ad(new gr(n));e.topOrBottom="bottom",this.ad(E.track([e,"color"],[this,"polylineColor"])),this.ad(E.track([e,"width"],[this,"polylineWidth"])),this.ad(E.track([e,"show"],[this,"polylineShow"])),this.ad(E.track([e,"arcType"],[this,"polylineArcType"])),this.ad(E.track([e,"loop"],[this,"loop"])),this.ad(E.track([e,"positions"],[this,"visibilityPositions"]))}}(t=>{t.createDefaultProps=()=>({...ht.createDefaultProps(),visibilityPositions:E.reactPositionsSet(void 0)})})(hl||(hl={})),E.extendClassProps(hl.prototype,hl.createDefaultProps);class C2 extends Fa{constructor(n){super(n),this.firstControlPointImageUrl=this.otherControlPointImageUrl,this.translationEditing.xAxisShow=!1,this.translationEditing.yAxisShow=!1,this.translationEditing.zAxisShow=!0,this.translationEditing.showCircle=!1,this.rotation=[0,90,0]}}class vn extends Q.EngineObject{constructor(e,r,s){super(e,r,s??!0);N(this,"_supportEditing",this.disposeVar(E.react(!0)));N(this,"_currentEditing",this.disposeVar(E.react(void 0)));this.ad(this.supportEditingChanged.don(()=>{this.destroy()})),this.ad(this.toDestroyEvent.don(()=>{var o;if(this.currentEditing){if(this.currentEditing instanceof Lt&&((o=this.currentEditing.currentProcess)!=null&&o.isRunning))if(this.currentEditing.currentProcess.cancel(),e!=null&&e.position){if(this.currentEditing.positions.length>1)return;e.position=this.currentEditing.positions[0]??[0,0,0],e!=null&&e.rotation&&(e.rotation=[0,0,0]),e!=null&&e.far&&(e.far=1),e!=null&&e.radius&&(e.radius=1),e!=null&&e.distance&&(e.distance=1)}else e.points=this.currentEditing.positions;this.currentEditing instanceof Sr&&this.currentEditing.enabled&&(e.position=[0,0,0])}}))}get supportEditing(){return this._supportEditing.value}set supportEditing(e){this._supportEditing.value=e}get supportEditingChanged(){return this._supportEditing.changed}get currentEditing(){return this._currentEditing.value}set currentEditing(e){this._currentEditing.value=e}get currentEditingChanged(){return this._currentEditing.changed}}const Ch=class Ch extends vn{constructor(n,e){super(n,e,!0);const r=this.currentEditing=this.ad(new Sr(e));this.ad(e.clickEvent.don(s=>{var o;((o=s.pointerEvent)==null?void 0:o.button)==2&&(r.enabled=!0)}));do{if(Reflect.has(n,"position")){this.ad(E.bind([r,"position"],[n,"position"])),r.enabled=!r.position||Q.equalsN3(r.position,[0,0,0]);break}this.supportEditing=!1}while(!1)}};N(Ch,"type",Ch.registerEditing("ESCesiumViewer",Q.ESJEditingMode.Place,Ch));let V0=Ch;const Sh=class Sh extends vn{constructor(n,e){super(n,e,!0);const r=this.currentEditing=this.ad(new Er(e));r.rotation=[90,0,0],this.ad(r.enabledChanged.don(s=>{!s&&this.ad(E.nextAnimateFrame(()=>{this.destroy()}))}));do{if(n instanceof Q.ES3DTileset){Q.registerCreatedEventUpdate(this,n,()=>{const s=e.getEngineObject(n);s&&(this.ad(E.bind([r,"position"],[s.czm3DTiles,"position"])),this.ad(E.bind([r,"selfRotation"],[n,"rotation"])))});break}if(Reflect.has(n,"position")&&Reflect.has(n,"rotation")){this.ad(E.bind([r,"position"],[n,"position"])),this.ad(E.bind([r,"selfRotation"],[n,"rotation"]));break}this.supportEditing=!1}while(!1)}};N(Sh,"type",Sh.registerEditing("ESCesiumViewer",Q.ESJEditingMode.Rotation,Sh));let Q0=Sh;const Eh=class Eh extends vn{constructor(n,e){super(n,e,!0);const r=this.currentEditing=this.ad(new Fi(e));this.ad(r.enabledChanged.don(s=>{!s&&this.ad(E.nextAnimateFrame(()=>{this.destroy()}))}));do{if(Reflect.has(n,"position")&&Reflect.has(n,"scale")){this.ad(E.bind([r,"position"],[n,"position"])),this.ad(E.bind([r,"scale"],[n,"scale"]));break}this.supportEditing=!1}while(!1)}};N(Eh,"type",Eh.registerEditing("ESCesiumViewer",Q.ESJEditingMode.Scale,Eh));let H0=Eh;const Ph=class Ph extends vn{constructor(n,e){super(Array.isArray(n)?n[0]:n,e,!0);const r=this.currentEditing=this.ad(new Ii(e));this.ad(r.enabledChanged.don(s=>{!s&&this.ad(E.nextAnimateFrame(()=>{this.destroy()}))}));do{if(Array.isArray(n)){const s=[];for(let o=0;o<n.length;o++){const i=n[o];Reflect.has(i,"position")?s.push(i.position):i.points&&s.push(...i.points)}r.position=Q.getMinMaxCorner(s).center,this.ad(r.positionChanged.disposableOn((o,i)=>{if(!(!o||!i)){var a=Tn({originPosition:i},[o])[0][0];n.forEach(l=>{if(Reflect.has(l,"position")){const h=Tn({originPosition:i},[l.position])[0][0];l.position=Vi({originPosition:i},[[h[0]+a[0],h[1]+a[1],h[2]+a[2]]])[0][0]}else if(Reflect.has(l,"points")&&l.points){const h=Tn({originPosition:i},l.points)[0];l.points=Vi({originPosition:i},h.map(f=>[f[0]+a[0],f[1]+a[1],f[2]+a[2]]))[0]}})}}));break}if(Reflect.has(n,"position")){this.ad(E.bind([r,"position"],[n,"position"]));break}if(n instanceof Q.ES3DTileset){Q.registerCreatedEventUpdate(this,n,()=>{const s=e.getEngineObject(n);this.ad(E.bind([r,"position"],[s.czm3DTiles,"position"]))});break}if(Reflect.has(n,"points")){if(n.points===void 0||n.points.length===0){this.destroy();break}r.position=Q.getMinMaxCorner(n.points).center,this.ad(r.positionChanged.disposableOn((s,o)=>{if(s===void 0||o===void 0||n.points===void 0||n.points.length===0){this.destroy();return}var i=Tn({originPosition:o},[s])[0][0];const a=Tn({originPosition:o},n.points)[0];n.points=Vi({originPosition:o},a.map(l=>[l[0]+i[0],l[1]+i[1],l[2]+i[2]]))[0]}));break}this.supportEditing=!1}while(!1)}};N(Ph,"type",Ph.registerEditing("ESCesiumViewer",Q.ESJEditingMode.Translation,Ph));let mp=Ph;const Th=class Th extends vn{constructor(n,e){super(n,e,!0);const r=this.currentEditing=this.ad(new ul(e));this.ad(r.enabledChanged.don(s=>{!s&&this.ad(E.nextAnimateFrame(()=>{this.destroy()}))}));do{if(Reflect.has(n,"position")){this.ad(E.bind([r,"startPosition"],[n,"position"])),this.ad(jt([r,"rotation"],[n,"rotation"]));do{if(Reflect.has(n,"far")){this.ad(E.bind([r,"distance"],[n,"far"]));break}if(Reflect.has(n,"radius")){this.ad(E.bind([r,"distance"],[n,"radius"]));break}if(Reflect.has(n,"distance")){this.ad(E.bind([r,"distance"],[n,"distance"]));break}const s=Tt(n.position);if(F.Cartesian3.ZERO.equals(s)||!e.viewer)return;r.distance=ii(e.viewer.scene,s,100)??1}while(!1);break}if(Reflect.has(n,"points")){const s=()=>r.positions=n.points??[];s(),this.ad(n.pointsChanged.don(()=>!r.enabled&&s())),this.ad(E.track([n,"points"],[r,"positions"]));break}this.supportEditing=!1}while(!1);r.startPosition&&!Q.equalsN3(r.startPosition,[0,0,0])&&r.init(),r.enabled=!0}};N(Th,"type",Th.registerEditing("ESCesiumViewer",Q.ESJEditingMode.DoublePointsAppend,Th));let j0=Th;const Bh=class Bh extends vn{constructor(n,e){var o;if(super(n,e,!0),!e.viewer)return;const r=this.currentEditing=this.ad(new Fa(e));do{if(Reflect.has(n,"position")){this.ad(E.bind([r,"startPosition"],[n,"position"])),this.ad(jt([r,"rotation"],[n,"rotation"]));do{if(Reflect.has(n,"far")){this.ad(E.bind([r,"distance"],[n,"far"]));break}if(Reflect.has(n,"radius")){this.ad(E.bind([r,"distance"],[n,"radius"]));break}if(Reflect.has(n,"distance")){this.ad(E.bind([r,"distance"],[n,"distance"]));break}const i=Tt(n.position);if(F.Cartesian3.ZERO.equals(i)||!e.viewer)return;r.distance=ii(e.viewer.scene,i,100)??1}while(!1);break}if(Reflect.has(n,"points")&&((o=n.points)==null?void 0:o.length)==2){r.moveWithFirstPosition=!1;const i=()=>r.positions=n.points??[];i(),this.ad(n.pointsChanged.don(()=>!r.enabled&&i())),this.ad(E.track([n,"points"],[r,"positions"]));break}this.supportEditing=!1;return}while(!1);r.init(),r.enabled=!0;const s=this.ad(E.createNextAnimateFrameEvent(r.enabledChanged,r.startPositionChanged));this.ad(s.don(()=>{(!r.enabled||!r.startPosition||Q.equalsN3(r.startPosition,[0,0,0]))&&this.destroy()}))}};N(Bh,"type",Bh.registerEditing("ESCesiumViewer",Q.ESJEditingMode.DoublePointsModify,Bh));let G0=Bh;const Ih=class Ih extends vn{constructor(n,e){super(n,e,!0);const r=this.currentEditing=this.ad(new v2(e));this.ad(r.enabledChanged.don(s=>{!s&&this.ad(E.nextAnimateFrame(()=>{this.destroy()}))}));do{if(Reflect.has(n,"points")){const s=()=>r.positions=n.points??[];s(),this.ad(n.pointsChanged.don(()=>!r.enabled&&s())),r.enabled=!0,this.ad(E.track([n,"points"],[r,"positions"]));break}this.supportEditing=!1}while(!1)}};N(Ih,"type",Ih.registerEditing("ESCesiumViewer",Q.ESJEditingMode.CircularAppend,Ih));let W0=Ih;const Fh=class Fh extends vn{constructor(n,e){super(n,e,!0);const r=this.currentEditing=this.ad(new b2(e));this.ad(r.enabledChanged.don(s=>{!s&&this.ad(E.nextAnimateFrame(()=>{this.destroy()}))}));do{if(Reflect.has(n,"points")){const s=()=>r.positions=n.points??[];s(),this.ad(n.pointsChanged.don(()=>!r.enabled&&s())),r.enabled=!0,this.ad(E.track([n,"points"],[r,"positions"]));break}this.supportEditing=!1}while(!1)}};N(Fh,"type",Fh.registerEditing("ESCesiumViewer",Q.ESJEditingMode.CircularInsert,Fh));let q0=Fh;const kh=class kh extends vn{constructor(n,e){super(n,e,!0);const r=this.currentEditing=this.ad(new g2(e));this.ad(r.enabledChanged.don(s=>{!s&&this.ad(E.nextAnimateFrame(()=>{this.destroy()}))}));do{if(Reflect.has(n,"points")){const s=()=>r.positions=n.points??[];s(),this.ad(n.pointsChanged.don(()=>!r.enabled&&s())),r.enabled=!0,this.ad(E.track([n,"points"],[r,"positions"]));break}this.supportEditing=!1}while(!1)}};N(kh,"type",kh.registerEditing("ESCesiumViewer",Q.ESJEditingMode.LineStringAppend,kh));let K0=kh;const Mh=class Mh extends vn{constructor(n,e){super(n,e,!0);const r=this.currentEditing=this.ad(new w2(e));this.ad(r.enabledChanged.don(s=>{!s&&this.ad(E.nextAnimateFrame(()=>{this.destroy()}))}));do{if(Reflect.has(n,"points")){const s=()=>r.positions=n.points??[];s(),this.ad(n.pointsChanged.don(()=>!r.enabled&&s())),r.enabled=!0,this.ad(E.track([n,"points"],[r,"positions"]));break}this.supportEditing=!1}while(!1)}};N(Mh,"type",Mh.registerEditing("ESCesiumViewer",Q.ESJEditingMode.LineStringInsert,Mh));let X0=Mh;const Oh=class Oh extends vn{constructor(n,e){super(n,e,!0);const r=this.currentEditing=this.ad(new _2(e));this.ad(r.enabledChanged.don(s=>{!s&&this.ad(E.nextAnimateFrame(()=>{this.destroy()}))}));do{if(Reflect.has(n,"points")){const s=()=>r.positions=n.points??[];s(),this.ad(n.pointsChanged.don(()=>!r.enabled&&s())),r.enabled=!0,this.ad(E.track([n,"points"],[r,"positions"]));break}this.supportEditing=!1}while(!1)}};N(Oh,"type",Oh.registerEditing("ESCesiumViewer",Q.ESJEditingMode.ScatterAppend,Oh));let $0=Oh;const Dh=class Dh extends vn{constructor(n,e){super(n,e,!0);const r=this.currentEditing=this.ad(new x2(e));this.ad(r.enabledChanged.don(s=>{!s&&this.ad(E.nextAnimateFrame(()=>{this.destroy()}))}));do{if(Reflect.has(n,"points")){const s=()=>r.positions=n.points??[];s(),this.ad(n.pointsChanged.don(()=>!r.enabled&&s())),r.enabled=!0,this.ad(E.track([n,"points"],[r,"positions"]));break}this.supportEditing=!1}while(!1)}};N(Dh,"type",Dh.registerEditing("ESCesiumViewer",Q.ESJEditingMode.ScatterModify,Dh));let Z0=Dh;const Rh=class Rh extends vn{constructor(n,e){super(n,e,!0);const r=this.currentEditing=this.ad(new cl(e));this.ad(r.enabledChanged.don(s=>{!s&&this.ad(E.nextAnimateFrame(()=>{this.destroy()}))}));do{if(Reflect.has(n,"points")){const s=()=>r.positions=n.points??[];s(),this.ad(n.pointsChanged.don(()=>!r.enabled&&s())),r.enabled=!0,this.ad(E.track([n,"points"],[r,"positions"]));break}this.supportEditing=!1}while(!1)}};N(Rh,"type",Rh.registerEditing("ESCesiumViewer",Q.ESJEditingMode.VisibilityAppend,Rh));let Y0=Rh;const Uh=class Uh extends vn{constructor(n,e){super(n,e,!0);const r=this.currentEditing=this.ad(new hl(e));this.ad(r.enabledChanged.don(s=>{!s&&this.ad(E.nextAnimateFrame(()=>{this.destroy()}))}));do{if(Reflect.has(n,"points")){const s=()=>r.positions=n.points??[];s(),this.ad(n.pointsChanged.don(()=>!r.enabled&&s())),r.enabled=!0,this.ad(E.track([n,"points"],[r,"positions"]));break}this.supportEditing=!1}while(!1)}};N(Uh,"type",Uh.registerEditing("ESCesiumViewer",Q.ESJEditingMode.VisibilityModify,Uh));let J0=Uh;const Lh=class Lh extends vn{constructor(n,e){if(super(n,e,!0),!e.viewer)return;const r=this.currentEditing=this.ad(new C2(e));do{if(Reflect.has(n,"points")){const o=Reflect.has(n,"extrudedHeight"),i=Reflect.has(n,"height"),a=Reflect.has(n,"perPositionHeight")?n.perPositionHeight:!o,l=n instanceof Q.ESClassification||n instanceof Q.ESPolygonFence;let h=Q.getMinMaxCorner(n.points).center,f=[...h],u=l?n.points[0][2]:0;a?o?f[2]=n.extrudedHeight:f[2]=n.height+u:(i&&(h[2]=n.height),o&&(f[2]=n.extrudedHeight)),r.startPosition=h,r.distance=f[2]-h[2],r.moveWithFirstPosition=!1;let y=[...h];this.ad(r.positionsChanged.don(()=>{r.positions.length===2&&(a?(n.points=n.points.map(v=>[v[0],v[1],v[2]+r.positions[0][2]-y[2]]),o?n.extrudedHeight=r.positions[1][2]:i&&(n.height=r.positions[1][2]-(l?r.positions[0][2]:0))):(i&&(n.height=r.positions[0][2]),o&&(n.extrudedHeight=r.positions[1][2])),y=[...r.positions[0]])}));break}this.supportEditing=!1;return}while(!1);r.init(),r.enabled=!0;const s=this.ad(E.createNextAnimateFrameEvent(r.enabledChanged,r.startPositionChanged));this.ad(s.don(()=>{(!r.enabled||!r.startPosition||Q.equalsN3(r.startPosition,[0,0,0]))&&this.destroy()}))}};N(Lh,"type",Lh.registerEditing("ESCesiumViewer",Q.ESJEditingMode.HeightModify,Lh));let ew=Lh;function S2(){const t=E.createProcessingFromAsyncFunc(async(n,e,r,s,o=!0)=>{const i=Array.isArray(s)?[...s]:[s],a=r.editingID;e.editingEvent.emit({objectIDs:[r.id.split("_")[0]],editingID:a,type:"start",add:{modes:i}});const l=()=>{e.notSupportEditingCount=0,e.editingEvent.emit({objectIDs:[r.id.split("_")[0]],editingID:a,type:"end",add:{modes:i}}),t.isRunning&&t.cancel()};n.disposer.ad(l),n.disposer.ad(r.toDestroyEvent.don(l)),n.disposer.ad(e.keyDownEvent.don(f=>{f.code=="Escape"&&l()}));let h=0;do{const f=i[h%i.length],u=await E.step(n,async y=>{const v=y.disposer,g=Q.EngineObject.contextEditing.getEngineObjConstructor(f,e.typeName);if(!g||!r.supportEditingModes().includes(f))return console.log(`未找到编辑模式或不支持当前编辑模式${f},已跳过当前编辑模式,请检查输入`),e.editingEvent.emit({objectIDs:[r.id.split("_")[0]],editingID:a,type:"changedFailed",add:{cMode:f,cIndex:h}}),e.notSupportEditingCount++,!1;const m=new g(r,e);if(v.ad(()=>{!m.isDestroyed()&&m.destroy()}),m.supportEditing)e.editingEvent.emit({objectIDs:[r.id.split("_")[0]],editingID:a,type:"changed",add:{cMode:f,cIndex:h}}),e.notSupportEditingCount=0;else return console.log(`未找到编辑模式或不支持当前编辑模式${f},已跳过当前编辑模式,请检查输入`),e.editingEvent.emit({objectIDs:[r.id.split("_")[0]],editingID:a,type:"changedFailed",add:{cMode:f,cIndex:h}}),e.notSupportEditingCount++,!1;return await y.promise(new Promise(d=>{m.isDestroyed()&&d(!1),v.ad(m.toDestroyEvent.don(()=>{console.log(`编辑模式${f}结束`),d(!1)})),o&&(v.ad(e.keyDownEvent.don(c=>{c.code=="Space"&&(console.log(`编辑模式${f}结束`),d(!1))})),v.ad(e.dblclickEvent.don(()=>d(!0))))}))});if(o&&u||!o&&h==i.length-1||e.notSupportEditingCount==i.length)break;h++}while(!0)});return t}function E2(){const t=E.createProcessingFromAsyncFunc(async(n,e,r,s)=>{e.editingEvent.emit({objectIDs:r.map(a=>a.id.split("_")[0]),editingID:s,type:"start"});const o=()=>{e.editingEvent.emit({objectIDs:r.map(a=>a.id.split("_")[0]),editingID:s,type:"end"}),t.isRunning&&t.cancel()};n.disposer.ad(o),n.disposer.ad(e.keyDownEvent.don(a=>{a.code=="Escape"&&o()}));const i=new mp(r,e);n.disposer.ad(()=>{!i.isDestroyed()&&i.destroy()}),await n.promise(new Promise(a=>{i.isDestroyed()&&a(),n.disposer.ad(i.toDestroyEvent.don(()=>{console.log("移动结束"),a()})),n.disposer.ad(e.dblclickEvent.don(()=>a()))}))});return t}ue.copyright=void 0;try{const t="earthsdk3-cesium",n="3.0.7-beta.23",e="2025-06-17T00:37:35.000Z",r="北京西部世界科技有限公司",s="地球可视化实验室 (EarthSDK&CesiumLab) https://www.bjxbsj.cn",o="2c5a9444b24a8f9bdcd1c4dbe41e51985efa239a",a=((Date.now()-1750120655e3)/36e5).toFixed(1),l=`%c🌏 ${t}%c ${n}.${o.slice(0,8)}.${e} (距今${a}个小时)
4897
+ `,uniformMap:{u_color:[1,1,0,1]},name:"CzmCustomPrimitive_47fd",attributes:{position:{typedArray:{type:"Float32Array",array:[0,0,0,0,0,1]},componentsPerAttribute:3}}},mt,t)}class Cj extends E.HasOwner{constructor(n){super(n);const{czmViewer:e}=this.owner;let r;this.dispose(()=>this.owner.hoveredPlaneType="none");const s=this._createRotatorMoveProcessing();this.dispose(e.pointerMoveEvent.disposableOn(o=>{const i=r=this._getStartInfo(o.pointerEvent);i&&(this.owner.hoveredPlaneType=i.currentPlaneType)})),this.dispose(e.pointerDownEvent.disposableOn(o=>{r&&r.currentPlaneType!=="none"&&(s.restart(void 0,e,r),r=void 0)})),this.dispose(e.dblclickEvent.disposableOn(o=>{do{const i=this._getStartInfo(o.pointerEvent);if(!i||i.currentPlaneType==="none")break;const{currentPlaneType:a}=i,l=[...this.owner.selfRotation];l[Er.rotationNum[a]]=0,this.owner.selfRotation=l;return}while(!1);this.owner.enabled=!1}))}_createRotatorMoveProcessing(){return this.ad(E.createProcessingFromAsyncFunc(async(n,e,r)=>{const s=this.owner.circles[r.currentPlaneType];e.incrementDisabledInputStack(),n.disposer.dispose(()=>e.decrementDisabledInputStack()),n.disposer.dispose(e.pointerMoveEvent.don(o=>{if(r&&o.pointerEvent){const{offsetX:i,offsetY:a}=o.pointerEvent,l=[i,a],{currentPlaneType:h}=r;if(h==="none")return;const f=this.owner.getPlane(h);if(!r.currentV)return;const u=f.pick(l);if(!u||!this.owner.cartesian)return;const y=F.Cartesian3.subtract(r.currentV,this.owner.cartesian,new F.Cartesian3);F.Cartesian3.normalize(y,y);const v=F.Cartesian3.subtract(u,this.owner.cartesian,new F.Cartesian3);if(F.Cartesian3.normalize(v,v),!f.normal||!f.origin)return;const g=N0(y,v,f.normal),m=N0(f.origin,y,f.normal),p=N0(f.origin,v,f.normal);{const d=[...this.owner.selfRotation];d[Er.rotationNum[h]]=r.startRotation+g,this.owner.selfRotation=d,s.circleStartRotation=m,s.circleEndRotation=p}}})),this.owner.movingPlaneType=r.currentPlaneType,n.disposer.dispose(()=>{this.owner.movingPlaneType="none"}),n.disposer.dispose(()=>{s.circleStartRotation=0,s.circleEndRotation=0}),await E.step(n,o=>new Promise((i,a)=>{o.disposer.dispose(a),o.disposer.dispose(e.pointerUpEvent.don(()=>{i()})),o.disposer.dispose(e.pointerOutEvent.don(()=>{i()}))}))}))}_pickPlane(n,e,r,s,o){const i=this.owner.cartesian;if(!i)return;const{selfRotation:a}=this.owner,l=this.owner.getPlane(r).pick(s);if(!l)return;const h=F.Cartesian3.distance(i,l),f=o/4,u=f*3/128;if(!(h>=f-u&&h<=f+u))return;const v=F.Cartesian3.distance(e.camera.positionWC,l);n.currentD2c<=v||(n.currentPlaneType=r,n.currentD2c=v,n.currentV=l,n.startRotation=a[Er.rotationNum[r]])}_getStartInfo(n){var f;const{czmViewer:e}=this.owner,r=(f=e.viewer)==null?void 0:f.scene;if(!this.owner.position||!this.owner.cartesian)return;const s=ii(r,this.owner.cartesian,this.owner.pixelSize);if(!s)return;const{offsetX:o,offsetY:i}=n,a=[o,i],l=n.pointerId,h={currentPlaneType:"none",currentD2c:Number.POSITIVE_INFINITY,currentV:void 0,startRotation:0,pointerId:l};return this._pickPlane(h,r,"heading",a,s),this._pickPlane(h,r,"pitch",a,s),this._pickPlane(h,r,"roll",a,s),h}}function N0(t,n,e){const r=F.Cartesian3.cross(n,t,new F.Cartesian3);if(r.equals(F.Cartesian3.ZERO))return 0;F.Cartesian3.normalize(r,r);const s=F.Cartesian3.dot(r,e);let o=Math.acos(F.Cartesian3.dot(t,n))*180/Math.PI;return o=s>0?o:-o,o}const La=class La extends $n{constructor(e){super();N(this,"_hoveredPlaneType",this.disposeVar(E.react("none")));N(this,"_movingPlaneType",this.disposeVar(E.react("none")));N(this,"_circles");N(this,"_czmCameraModel");N(this,"_cartesian");N(this,"_planes",{heading:this.disposeVar(new vj(this)),pitch:this.disposeVar(new wj(this)),roll:this.disposeVar(new bj(this))});N(this,"_rotatorRunningResetting");this._czmViewer=e;const r=this._czmViewer;if(this._rotatorRunningResetting=this.disposeVar(new E.ObjResettingWithEvent(this.enabledChanged,()=>{if(this.enabled)return new Cj(this)})),this._circles={heading:this._createRotatorCircle(r,"heading"),pitch:this._createRotatorCircle(r,"pitch"),roll:this._createRotatorCircle(r,"roll")},!!r.viewer){{const o=()=>{this._cartesian=this.position&&Tt(this.position)||void 0};o(),this.dispose(this.positionChanged.disposableOn(o))}this._createCameraModel(r)}}get hoveredPlaneType(){return this._hoveredPlaneType.value}set hoveredPlaneType(e){this._hoveredPlaneType.value=e}get hoveredPlaneTypeChanged(){return this._hoveredPlaneType.changed}get movingPlaneType(){return this._movingPlaneType.value}set movingPlaneType(e){this._movingPlaneType.value=e}get movingPlaneTypeChanged(){return this._movingPlaneType.changed}get circles(){return this._circles}get czmCameraModel(){return this._czmCameraModel}get cartesian(){return this._cartesian}get czmViewer(){return this._czmViewer}getPlane(e){return this._planes[e]}get rotatorRunningResetting(){return this._rotatorRunningResetting}_createCameraModel(e){this._czmCameraModel=new tn(e),this._czmCameraModel.url="${earthsdk3-assets-script-dir}/assets/glb/camera1/camera1.gltf",this._czmCameraModel.localRotation=[90,0,0],this._czmCameraModel.allowPicking=!1,this._czmCameraModel.opaquePass="OVERLAY",this.dispose(E.track([this._czmCameraModel,"pixelSize"],[this,"pixelSize"],r=>r*.1)),this.dispose(E.track([this._czmCameraModel,"position"],[this,"position"])),this.dispose(E.track([this._czmCameraModel,"rotation"],[this,"rotation"]));{const r=()=>{const s=At({rotation:this.selfRotation});if(!s)throw new Error("!rm");this._czmCameraModel&&(this._czmCameraModel.localModelMatrix=F.Matrix4.toArray(s))};r(),this.dispose(this.selfRotationChanged.disposableOn(r))}{const r=()=>{this.circles.heading.show=this.enabled,this.circles.pitch.show=this.enabled,this.circles.roll.show=this.enabled,this._czmCameraModel&&(this._czmCameraModel.show=this.enabled&&this.showHelper)};r(),this.dispose(this.enabledChanged.disposableOn(r)),this.dispose(this.showHelperChanged.disposableOn(r))}}_createRotatorCircle(e,r){const s=this.ad(new ll(e));this.dispose(E.track([s,"position"],[this,"position"])),this.dispose(E.track([s,"pixelSize"],[this,"pixelSize"])),this.dispose(E.track([s,"debug"],[this,"debug"])),this.dispose(E.track([s,"rotation"],[this,"rotation"]));{const o=()=>{s.selfRotation=La.rotationFuncs[r](this.selfRotation),s.circleRotation=this.selfRotation[La.rotationNum[r]]};o(),this.dispose(this.selfRotationChanged.disposableOn(o))}{const o=()=>{const i=this.movingPlaneType===r,a=this.hoveredPlaneType===r,h=[0,0,0,i||a?1:.8];h[La.rotationNum[r]]=1,s.color=h};o(),this.dispose(this.movingPlaneTypeChanged.disposableOn(o)),this.dispose(this.hoveredPlaneTypeChanged.disposableOn(o))}return s}};N(La,"rotationNum",{heading:0,pitch:1,roll:2}),N(La,"rotationFuncs",{heading:([e,r,s])=>[0,0,0],pitch:([e,r,s])=>[e,0,-90],roll:([e,r,s])=>[e,r+90,0]});let Er=La;(t=>{t.createDefaultProps=()=>({...$n.createDefaultProps(),rotation:E.reactArray([0,0,0]),selfRotation:E.reactArray([0,0,0]),pixelSize:300,showHelper:!1,debug:!1})})(Er||(Er={})),E.extendClassProps(Er.prototype,Er.createDefaultProps);const za=class za extends E.Destroyable{get startPosition(){return this.positions&&this.positions[0]}set startPosition(n){this.positions=[n??za.defaults.positions[0],this.stopPosition??za.defaults.positions[1]]}get startPositionChanged(){return this.positionsChanged}get stopPosition(){return this.positions&&this.positions[1]}set stopPosition(n){this.positions=[this.startPosition??za.defaults.positions[0],n??za.defaults.positions[1]]}get stopPositionChanged(){return this.positionsChanged}constructor(n,e){if(super(),!n.viewer)return;const s=this.ad(new lt(n,e));s.arcType="RHUMB";const o=this.ad(new nr(n,e));this.ad(E.track([s,"allowPicking"],[this,"allowPicking"])),this.ad(E.track([o,"allowPicking"],[this,"allowPicking"]));{const i=()=>{s.show=o.show=this.show};i(),this.ad(this.showChanged.don(i))}{const i=()=>{s.width=this.width/2,o.pixelSize=this.width};i(),this.ad(this.widthChanged.don(i))}{const i=()=>{s.color=o.color=this.color};i(),this.ad(this.colorChanged.don(i))}{const i=()=>{s.positions=this.positions,o.position=this.stopPosition};i(),this.dispose(this.startPositionChanged.disposableOn(i)),this.dispose(this.stopPositionChanged.disposableOn(i))}}};N(za,"defaults",{positions:[[0,0,0],[0,0,1e6]]});let Ia=za;(t=>{t.createDefaultProps=()=>({show:!0,allowPicking:!1,positions:E.reactPositions(t.defaults.positions),width:10,color:E.reactArray([1,0,0,1])})})(Ia||(Ia={})),E.extendClassProps(Ia.prototype,Ia.createDefaultProps);class Fi extends $n{constructor(e){super();N(this,"_lastPosition");N(this,"_opInfo",{step:this.ad(E.react(!1)),moved:this.ad(E.react(!1)),constraintMode:this.disposeVar(E.react("none")),originPosition:this.disposeVar(E.reactArray([0,0,0])),originHeading:this.disposeVar(E.react(0)),originDimensions:this.disposeVar(E.reactArray([1,1,1])),draggingStartPosition:this.disposeVar(E.reactArray([0,0,0])),movingPosition:this.disposeVar(E.reactArray([0,0,0])),targetPosition:this.disposeVar(E.reactArray([0,0,0])),targetHeading:this.disposeVar(E.react(0))});N(this,"_scaleAxis");N(this,"_pickingXYProcessing",e=>this.disposeVar(new E.Processing((r,s,o)=>{const i=[0,0,0],a=new F.Cartographic;return e.pointerMoveEvent.disposableOn(l=>{if(!l.pointerEvent||!e.viewer)return;const h=pr(E.getDomEventCurrentTargetPos(l.pointerEvent));if(!ja(e.viewer.scene,h,this._opInfo.originPosition.value[2],a))return;Qa(a,i),this._opInfo.constraintMode.value==="x"?Ho(this._opInfo.originPosition.value,this._opInfo.originHeading.value,i,i):this._opInfo.constraintMode.value==="y"?Ho(this._opInfo.originPosition.value,this._opInfo.originHeading.value+90,i,i):this._opInfo.constraintMode.value==="xy"||console.warn("should not be here!"),this._opInfo.movingPosition.value=i,this._lastPosition||(this._lastPosition=[...this._opInfo.draggingStartPosition.value]);const f=[0,0,0];Q.geoRhumbDestination(i,o,s,f),this._opInfo.targetPosition.value=f;let u=this.scale[0],y=this.scale[1];const v=Q.geoDistance(f,this._opInfo.originPosition.value)-Q.geoDistance(this._lastPosition,this._opInfo.originPosition.value);this._lastPosition=[...f];const g=this._opInfo.originDimensions.value[0]/100;v!=0&&this._opInfo.constraintMode.value==="y"&&(v>0?u+=g:u-=g),v!=0&&this._opInfo.constraintMode.value==="x"&&(v>0?y+=g:y-=g),u<=0&&(u+=g),y<=0&&(y+=g),this.scale=[u??1,y??1,this.scale[2]??1]})})));N(this,"_pickingZProcessing",e=>this.disposeVar(new E.Processing(()=>{const r=new F.Cartesian3,s=[0,0,0];return e.pointerMoveEvent.disposableOn(o=>{if(!o.pointerEvent||!e.viewer)return;const i=pr(E.getDomEventCurrentTargetPos(o.pointerEvent));if(!Hh(e.viewer.scene,Tt(this._opInfo.originPosition.value),i,r))return;this._lastPosition||(this._lastPosition=[...this._opInfo.draggingStartPosition.value]);const a=this._opInfo.originPosition.value[2]-this._opInfo.draggingStartPosition.value[2];if(He(r,s)){this._opInfo.movingPosition.value=s;const l=this._opInfo.originPosition.value;this._opInfo.targetPosition.value=[l[0],l[1],s[2]+a];let h=this.scale[2];const f=s[2]-this._lastPosition[2];this._lastPosition=[...s];const u=this._opInfo.originDimensions.value[0]/100;f!=0&&(f>0?h+=u:h-=u),h<=0&&(h+=u),this.scale=[this.scale[0]??1,this.scale[1]??1,h??1]}})})));const r=e.viewer;if(!r)return;const{scene:s}=r;this.ad(new zp(e,this.positionReact,this._opInfo.originDimensions,this.axisPixelSize)),this.ad(e.dblclickEvent.don(()=>{this.enabled=!1})),this._scaleAxis={zAxis:this._createScaleAxis(e,"zAxis"),yAxis:this._createScaleAxis(e,"yAxis"),xAxis:this._createScaleAxis(e,"xAxis")};{const h=()=>{if(!this._scaleAxis)return;const{zAxis:f,yAxis:u,xAxis:y}=this._scaleAxis,v=this._opInfo.constraintMode.value,g=this._opInfo.step;f.color=[0,0,1,.99],u.color=[0,1,0,.99],y.color=[1,0,0,.99],v==="x"?y.color=g?[1,1,0,.8]:[1,1,0,.99]:v==="y"?u.color=g?[1,1,0,.8]:[1,1,0,.99]:v==="z"&&(f.color=g?[1,1,0,.8]:[1,1,0,.99])};h(),this.dispose(this._opInfo.constraintMode.changed.disposableOn(h)),this.dispose(this._opInfo.step.changed.disposableOn(h))}{const h=()=>{if(!this._scaleAxis)return;const{position:u=Fi.defaults.position}=this,{zAxis:y,yAxis:v,xAxis:g}=this._scaleAxis;y.startPosition=v.startPosition=g.startPosition=u;const[m,p,d]=u;y.stopPosition=[m,p,d+this._opInfo.originDimensions.value[2]];const c=Q.geoRhumbDestination(u,this._opInfo.originDimensions.value[0],90);c&&(g.stopPosition=c);const A=Q.geoRhumbDestination(u,this._opInfo.originDimensions.value[1],0);A&&(v.stopPosition=A)};h();const f=this.ad(E.createNextAnimateFrameEvent(this.positionChanged,this._opInfo.originDimensions.changed));this.ad(f.don(h))}{const h=()=>{if(this._opInfo.constraintMode.value==="none"){this._opInfo.moved.value=!1;return}if(this._opInfo.originHeading.value!==this._opInfo.targetHeading.value){this._opInfo.moved.value=!0;return}if(!this._opInfo.originPosition.value.every((f,u)=>f===this._opInfo.targetPosition.value[u])){this._opInfo.moved.value=!0;return}};h(),this.dispose(this._opInfo.originHeading.changed.disposableOn(h)),this.dispose(this._opInfo.originPosition.changed.disposableOn(h)),this.dispose(this._opInfo.targetHeading.changed.disposableOn(h)),this.dispose(this._opInfo.targetPosition.changed.disposableOn(h))}const o=this._pickingXYProcessing(e),i=this._pickingZProcessing(e),a=this.disposeVar(E.createProcessingFromAsyncFunc(async h=>{do this._opInfo.step.value=!0,this._opInfo.constraintMode.value="none",h.disposer.dispose(()=>{this._opInfo.constraintMode.value="none"}),await E.step(h,async f=>{const u=()=>{const g=[...this.position??Fi.defaults.position];e.editingHeightOffset&&(g[2]-=e.editingHeightOffset),this._opInfo.targetPosition.value=this._opInfo.originPosition.value=g};f.disposer.dispose((u(),this.positionChanged.disposableOn(u)));const y={constraintMode:"none",startDragPos:[0,0,0]},v=g=>{if(!this.position)return;const m={position:this.position,dimensions:this._opInfo.originDimensions.value,heading:0};Pp(g,s,m,this.axisSnapPixelSize,y),this._opInfo.constraintMode.value=y.constraintMode,this._opInfo.movingPosition.value=this._opInfo.draggingStartPosition.value=y.startDragPos};f.disposer.dispose(e.pointerMoveEvent.disposableOn(g=>{g.pointerEvent&&v(g.pointerEvent)})),await E.step(f,g=>new Promise((m,p)=>{g.disposer.dispose(p),g.disposer.dispose(e.pointerDownEvent.don(d=>{d.pointerEvent&&v(d.pointerEvent),d.pointerEvent&&d.pointerEvent.button===0&&y.constraintMode!=="none"&&m()}))}))}),this._opInfo.step.value=!1,await E.step(h,async f=>{if(e.incrementDisabledInputStack(),f.disposer.dispose(()=>e.decrementDisabledInputStack()),["x","y"].includes(this._opInfo.constraintMode.value)){const u=Q.geoRhumbHeading(this._opInfo.draggingStartPosition.value,this._opInfo.originPosition.value),y=Q.geoRhumbDistance(this._opInfo.draggingStartPosition.value,this._opInfo.originPosition.value);o.restart(void 0,u,y),f.disposer.dispose(()=>o.cancel())}else this._opInfo.constraintMode.value==="z"&&(i.restart(),f.disposer.dispose(()=>i.cancel()));await E.step(f,u=>new Promise((y,v)=>{u.disposer.dispose(v),u.disposer.dispose(e.pointerUpEvent.don(()=>{y()})),u.disposer.dispose(e.pointerOutEvent.don(()=>{y()}))})),this._lastPosition=void 0});while(!0)})),l=()=>{this.enabled?a.restart():a.isRunning&&a.cancel()};l(),this.dispose(this.enabledChanged.disposableOn(l))}get scaleAxis(){return this._scaleAxis}_createScaleAxis(e,r){const s=this.ad(new Ia(e));return s.width=10,this.ad(E.track([s,"show"],[this,"enabled"])),s}}(t=>{t.createDefaultProps=()=>({...$n.createDefaultProps(),scale:E.reactArray([1,1,1]),axisPixelSize:100,axisSnapPixelSize:5})})(Fi||(Fi={})),E.extendClassProps(Fi.prototype,Fi.createDefaultProps);const Vo=class Vo extends En{constructor(e){super();N(this,"_editingPoints",this.disposeVar(new E.ObservableArray));N(this,"_cancelEvent",this.disposeVar(new E.Event));N(this,"_currentProcess");N(this,"_menuPoiEnabled",this.disposeVar(E.react(!1)));N(this,"_status",this.disposeVar(E.react("None")));N(this,"_positionsChanged",this.ad(new E.Event));N(this,"_cursorInfo");this._czmViewer=e,this.enabled=!1,this.createPolyline(e),this._createCursorInfo(e),this.dispose(()=>this.resetPositions()),this.dispose(()=>this.editingPoints.length=0),this.dispose(this.editingPoints.changedEvent.disposableOn(()=>this.positionsChanged.emit())),this.dispose(this.editingPoints.toChangeEvent.disposableOn(r=>{for(let{start:s,deleteCount:o,items:i}of r){for(const a of i)a.menuPoi.enabled=this.menuPoiEnabled??!1;for(let a=s;a<s+o;++a)this.editingPoints.get(a).destroy()}})),this.dispose(this.menuPoiEnabledChanged.disposableOn(()=>{for(let r of this.editingPoints)r.menuPoi.enabled=this.menuPoiEnabled??!1})),this.dispose(e.dblclickEvent.don(r=>{this.ad(E.nextAnimateFrame(()=>{var s;((s=r.pointerEvent)==null?void 0:s.button)===0&&this.enabled&&this.currentProcess&&this.currentProcess.cancel()}))})),this.dispose(this.enabledChanged.disposableOn(r=>{this._currentProcess&&(r?this._currentProcess.restart():this._currentProcess.isRunning&&this._currentProcess.cancel())}));{const r=()=>{this.polylineShow=this.czmViewer.editingLineShow};r(),this.ad(this.czmViewer.editingLineShowChanged.don(r))}}get editingPoints(){return this._editingPoints}get cancelEvent(){return this._cancelEvent}cancel(){this._cancelEvent.emit()}get currentProcess(){return this._currentProcess}set currentProcess(e){this._currentProcess=e}get menuPoiEnabled(){return this._menuPoiEnabled.value}set menuPoiEnabled(e){this._menuPoiEnabled.value=e}get menuPoiEnabledChanged(){return this._menuPoiEnabled.changed}get status(){return this._status.value}get statusChanged(){return this._status.changed}set status(e){this._status.value=e}getPositions(){const e=[];for(let r of this._editingPoints)r.position&&e.push([...r.position]);return e}resetPositions(e){if(this.enabled??Vo.defaults.enabled)return console.warn("MultiPointsEditing.resetPositions error: this.enabled === true"),!1;const r=e||[];return!(r.length===this.editingPoints.length&&r.every((s,o)=>s.every((i,a)=>{const l=this.editingPoints.get(o);return l.position&&l.position[a]===i})))}forceResetPositions(e){(this.enabled??Vo.defaults.enabled)&&(this.enabled=!1),this.resetPositions(e)}get positions(){return this.getPositions()}set positions(e){this.resetPositions(e)}get positionsChanged(){return this._positionsChanged}get czmViewer(){return this._czmViewer}get cursorInfo(){return this._cursorInfo}createPolyline(e){const r=this.ad(new lt(e));this.ad(E.track([r,"color"],[this,"polylineColor"])),this.ad(E.track([r,"width"],[this,"polylineWidth"])),this.ad(E.track([r,"show"],[this,"polylineShow"])),this.ad(E.track([r,"arcType"],[this,"polylineArcType"])),this.ad(E.track([r,"loop"],[this,"loop"]));{const s=()=>{const o=[];for(const i of this.getPositions())i[2]-=e.editingHeightOffset??0,o.push(i);r.positions=o};s(),this.ad(this.positionsChanged.don(s))}}_createCursorInfo(e){const r=this._cursorInfo=this.ad(new E.CursorInfo(e.container,E.CursorFloatDiv));this.dispose(this.statusChanged.disposableOn(()=>{const s=this.status;if(r){if(!this.hideCursorInfo){r.show=!1;return}s==="Adding"?(r.text="右键/BackSpace键:删除上一个控制点;Esc键或左键双击:退出添加状态,进入修改状态",r.show=!0):s==="Modifying"||s==="Modifying_Point"?(r.text="Esc键或左键双击:退出编辑状态",r.show=!0):s==="None"&&(r.text="",r.show=!1)}}))}};N(Vo,"baseImageUrl","${earthsdk3-assets-script-dir}/assets/img/"),N(Vo,"defaults",{...En.defaults,debug:!1,polylineShow:!1,polylineWidth:1,polylineColor:[1,1,1,1],polylineArcType:"GEODESIC",maxPointsNum:Number.MAX_SAFE_INTEGER,loop:!1,firstControlPointImageUrl:Vo.baseImageUrl+"point-green.png",otherControlPointImageUrl:Vo.baseImageUrl+"point-yellow.png"});let cr=Vo;(t=>{t.createDefaultProps=()=>({...En.createDefaultProps(),loop:!1,debug:!1,polylineShow:!0,polylineWidth:1,polylineColor:E.reactArray([1,1,1,1]),polylineArcType:"GEODESIC",maxPointsNum:Number.MAX_SAFE_INTEGER,firstControlPointImageUrl:t.baseImageUrl+"point-green.png",otherControlPointImageUrl:t.baseImageUrl+"point-yellow.png",hideCursorInfo:!1,middlePointShow:!0})})(cr||(cr={})),E.extendClassProps(cr.prototype,cr.createDefaultProps);let Sj=0;class m2 extends E.Destroyable{constructor(e,r){super();N(this,"_position",this.disposeVar(E.reactArrayWithUndefined(void 0)));N(this,"_id",Sj++);N(this,"_menuPoi");r&&(this.position=r),e.debug&&console.log(`PolylinePositionEditor creating! ${this.id}`),this.dispose(()=>{e.debug&&console.log(`PolylinePositionEditor destroying! ${this.id}`)});const s=this._menuPoi=this.ad(new os(e.czmViewer));s.enabled=!1,this.ad(E.track([s,"show"],[e,"enabled"]));{const o=()=>{if(this.position===void 0){s.position=void 0;return}const i=[...this.position];i[2]-=e.czmViewer.editingHeightOffset??0,s.position=i,e.positionsChanged.emit()};o(),this.d(this.positionChanged.don(o))}{const o=()=>{const i=e.editingPoints.indexOf(this)+1;i!==0&&(s.title=`控制点${i}`,i===1?s.imageUri=e.firstControlPointImageUrl??cr.defaults.firstControlPointImageUrl:s.imageUri=e.otherControlPointImageUrl??cr.defaults.otherControlPointImageUrl)};o(),this.dispose(e.editingPoints.changedEvent.disposableOn(o))}}get position(){return this._position.value}set position(e){this._position.value=e}get positionChanged(){return this._position.changed}get id(){return this._id}get menuPoi(){return this._menuPoi}}class y2 extends m2{constructor(n,e){super(n,e)}}class Lt extends cr{constructor(e){super(e);N(this,"_deletePreviousPointWhileAddingEvent",this.disposeVar(new E.Event));N(this,"placeEditing");if(!e.viewer)return;const r=this.placeEditing=this.ad(new Sr(e));r.enabled=!1,this.currentProcess=this.disposeVar(E.createProcessingFromAsyncFunc(async s=>{s.disposer.dispose(()=>{(this.debug??Lt.defaults.debug)&&console.log("---editing canceled~~~"),this.status="None",this.enabled=!1}),(this.debug??Lt.defaults.debug)&&console.log("直接进入Adding状态"),this.status="Adding",await s.promise(E.step(s,async o=>{const i=o.disposer,a=i.ad(this._addingEditingProcessing());i.dispose(()=>"adding canceled!"),i.dispose(this.cancelEvent.disposableOn(()=>a.cancel())),await o.promise(new Promise(l=>{i.dispose(a.completeEvent.disposableOnce(l))}))}))})),this.dispose(e.clickEvent.don(s=>{var o;((o=s.pointerEvent)==null?void 0:o.button)===2&&this.deletePreviousPointWhileAdding()}))}deletePreviousPointWhileAdding(){this._deletePreviousPointWhileAddingEvent.emit()}resetPositions(e){if(!super.resetPositions(e))return!0;const r=e?e.map(s=>new y2(this,s)):[];return this.editingPoints.splice(0,this.editingPoints.length,...r),!0}_addingEditingProcessing(){const e=()=>{if(this.maxPointsNum!==void 0)return this.editingPoints.length>=this.maxPointsNum&&(this.debug??Lt.defaults.debug)&&console.log("impl.positionEditors.length >= impl.maxPointsNum"),this.editingPoints.length>=this.maxPointsNum},r=E.createProcessingFromAsyncFunc(async s=>{let o=this.editingPoints.length;this.menuPoiEnabled=!1;do if(!await s.promise(E.step(s,async a=>{let l;!e()&&(l=a.disposer.disposeVar(new Ej(this,o)));const f=a.disposer.disposeVar(new Tj(this,o));return a.disposer.dispose(this._deletePreviousPointWhileAddingEvent.disposableOn(()=>f.do())),await a.promise(new Promise(u=>{l&&a.disposer.dispose(l.overEvent.disposableOnce(y=>{y?(o++,u(!0)):u(!1)})),a.disposer.dispose(f.overEvent.disposableOnce(y=>{y?(o--,u(!0)):u(!1)})),a.disposer.dispose(this.cancelEvent.disposableOn(()=>u(!1)))}))})))break;while(!0)});return r.start(),r}}(t=>{t.createDefaultProps=()=>({...cr.createDefaultProps()})})(Lt||(Lt={})),E.extendClassProps(Lt.prototype,Lt.createDefaultProps);class Ej extends E.Destroyable{constructor(e,r){super();N(this,"_overEvent",this.disposeVar(new E.Event));const{placeEditing:s}=e;let o=new y2(e,void 0);e.editingPoints.splice(r,0,o);const i=()=>{(e.debug??Lt.defaults.debug)&&console.log("delete currentPosEditor");const h=e.editingPoints.indexOf(o);if(h===-1)throw new Error("currentPosEditor not found");e.editingPoints.splice(h,1)};if(s.enabled??!1)throw console.error("placeEditing.enabled is true!"),new Error("placeEditing.enabled is true!");this.dispose(E.track([o,"position"],[s,"position"])),s.enabled=!0;let a=!1;const l=()=>{i(),this._overEvent.emit(!1)};this.dispose(()=>{s.enabled=!1,!a&&l()}),this.dispose(s.overEvent.disposableOnce(()=>{a=!0,o.position===void 0?l():this._overEvent.emit(!0)})),(e.debug??Lt.defaults.debug)&&console.log(`PointAdding creating! index(${r})`),this.dispose(()=>{(e.debug??Lt.defaults.debug)&&console.log(`PointAdding destroying! index(${r})`)})}get overEvent(){return this._overEvent}}function Pj(t,n){const e=t.editingPoints,r=n-1;return r<0?(console.warn("previousIndex < 0, cannot delete the point!"),!1):(e.splice(r,1),!0)}class Tj extends E.Destroyable{constructor(e,r){super();N(this,"_overEvent",this.disposeVar(new E.Event));N(this,"_doEvent",this.disposeVar(new E.Event));this.dispose(this._doEvent.disposableOn(()=>this._overEvent.emit(Pj(e,r)))),(e.debug??Lt.defaults.debug)&&console.log(`PreviousPointDeleting creating! currentIndex(${r})`),this.dispose(()=>{(e.debug??Lt.defaults.debug)&&console.log(`PreviousPointDeleting destroying! currentIndex(${r})`)})}get overEvent(){return this._overEvent}do(){return this._doEvent.emit()}}class g2 extends Lt{constructor(n){super(n),this.loop=!1}}class v2 extends Lt{constructor(n){super(n),this.loop=!0}}class Ap extends m2{constructor(n,e){super(n,e);{const{menuPoi:r}=this;r.commands=[["add","增加控制点","",ht.baseImageUrl+"add.png"],["delete","删除当前控制点","",ht.baseImageUrl+"delete.png"],["modify","修改当前控制点","",ht.baseImageUrl+"modify.png"]],r.clickCommandName="modify",r.rightClickCommandName="delete",this.dispose(r.commandEvent.disposableOn(s=>{n.menuPoiCommand(this,s)})),this.dispose(r.dbclickEvent.disposableOn(()=>{n.menuPoiCommand(this,"dbClick")}))}if(n.middlePointShow){const r=this.ad(new Rr(n.czmViewer));{r.imageUri=n.firstControlPointImageUrl??ht.defaults.firstControlPointImageUrl,r.tooltip="点击增加一个控制点",r.bgColor=[0,0,0,.6],r.fgColor=[1,1,1,1],r.size=[8,8],r.originRatioAndOffset=[.5,.5,0,0];{const s=()=>{if(!(n.enabled??ht.defaults.enabled)){r.enabled=!1,r.show=!1;return}do{const i=n.editingPoints.indexOf(this);if(i===-1)break;const a=n.editingPoints.length;if(a===0){console.error("impl.positionEditors.length === 0!");break}if(!(n.loop??ht.defaults.loop)&&i+1>=a)break;const h=this.position;if(!h)break;let f=(i+1)%a;const y=n.editingPoints.get(f).position;if(!y)break;const v=Fp(h,y);if(!v)break;v[2]-=n.czmViewer.editingHeightOffset??0,r.position=v;const g=n.editingPoints.length<(n.maxPointsNum??ht.defaults.maxPointsNum);r.enabled=g,r.show=g;return}while(!1);r.enabled=!1,r.show=!1};s(),this.dispose(n.positionsChanged.disposableOn(s)),this.dispose(n.loopChanged.disposableOn(s)),this.dispose(n.enabledChanged.disposableOn(s))}this.dispose(r.clickEvent.disposableOn(s=>{if(s.button!==0||n.editingPoints.length>=(n.maxPointsNum??ht.defaults.maxPointsNum))return;const o=n.editingPoints.indexOf(this);if(o===-1)return;const i=r.position?[...r.position]:void 0;i&&(i[2]+=n.czmViewer.editingHeightOffset??0);let a=new Ap(n,i);n.editingPoints.splice(o+1,0,a),n.modify(a)}))}}}}class ht extends cr{constructor(e){super(e);N(this,"_menuPoiCommand",this.disposeVar(new E.Event));N(this,"_forceModifyPosEditorEvent",this.disposeVar(new E.Event));N(this,"_overEvent",this.disposeVar(new E.Event));N(this,"translationEditing");{const s=this.ad(E.createNextAnimateFrameEvent(this.moveWithFirstPositionChanged,this.editingPoints.changedEvent));this.ad(new E.ObjResettingWithEvent(s,()=>{if(!(!this.moveWithFirstPosition||this.editingPoints.length<=1))return new Bj(this.editingPoints.get(0),this)}))}const r=this.translationEditing=this.disposeVar(new Ii(e));r.enabled=!1,this.currentProcess=this.disposeVar(E.createProcessingFromAsyncFunc(async s=>{s.disposer.dispose(()=>{(this.debug??ht.defaults.debug)&&console.log("---editing canceled~~~"),this.status="None",this.enabled=!1});let o=-1;do if((this.debug??ht.defaults.debug)&&console.log("进入Modifying修改状态"),this.status="Modifying",o=await s.promise(E.step(s,async i=>{const a=i.disposer,l=a.ad(new Ij(this));return a.dispose(()=>"modifying canceled!"),this.editingPoints.length>0&&l.modify(this.editingPoints.get(o===-1||o>=this.editingPoints.length?0:o)),a.dispose(this.cancelEvent.disposableOn(()=>l.cancel())),a.dispose(this._forceModifyPosEditorEvent.disposableOn(f=>l.modify(f))),await i.promise(new Promise(f=>{a.dispose(l.overEvent.disposableOnce(u=>{f(u)}))}))})),o===-1){(this.debug??ht.defaults.debug)&&console.log("退出编辑状态");break}else{if(this.editingPoints.length>=(this.maxPointsNum??ht.defaults.maxPointsNum))return;if(this.editingPoints.length===0){console.error("impl.positionEditors.length === 0!");return}this.loop??ht.defaults.loop;const a=this.editingPoints.get(o-1).position;if(!a)return;let l=o%this.editingPoints.length;const f=this.editingPoints.get(l).position;if(!f)return;const u=Fp(a,f);if(!u)return;u&&(u[2]+=this.czmViewer.editingHeightOffset??0);let y=new Ap(this,u);this.editingPoints.splice(o,0,y)}while(!0);this.status="None",this.enabled=!1}))}menuPoiCommand(e,r){this._menuPoiCommand.emit(e,r)}modify(e){this._forceModifyPosEditorEvent.emit(e)}resetPositions(e){if(!super.resetPositions(e))return!0;const r=e?e.map(s=>new Ap(this,s)):[];return this.editingPoints.splice(0,this.editingPoints.length,...r),!0}get overEvent(){return this._overEvent}}(t=>{t.createDefaultProps=()=>({...cr.createDefaultProps(),moveWithFirstPosition:!1})})(ht||(ht={})),E.extendClassProps(ht.prototype,ht.createDefaultProps);class Bj extends E.Destroyable{constructor(n,e){super(),this._firstPositionEditor=n,this.multiPointsModifyEditing=e,this._firstPositionEditor.positionChanged.disposableOn((r,s)=>{if(r===void 0||s===void 0)return;var o=[r[0]-s[0],r[1]-s[1],r[2]-s[2]];const i=this.multiPointsModifyEditing.editingPoints.length;for(let a=1;a<i;a++){const l=this.multiPointsModifyEditing.editingPoints.get(a),h=l.position;h!==void 0&&(l.position=[h[0]+o[0],h[1]+o[1],h[2]+o[2]])}})}}class Ij extends E.Destroyable{constructor(e){super();N(this,"_overEvent",this.disposeVar(new E.Event));N(this,"_cancelEvent",this.disposeVar(new E.Event));N(this,"_forceModifyPosEditorEvent",this.disposeVar(new E.Event));e.menuPoiEnabled=!0,this.dispose(()=>e.menuPoiEnabled=!1);let r;const s=()=>{r==null||r.destroy(),r=void 0,e.status="Modifying"};this.dispose(s);const o=i=>{s(),e.status="Modifying_Point",r=new Fj(e,i),r.dispose(r.overEvent.disposableOn(()=>{s()}))};this.dispose(this._forceModifyPosEditorEvent.disposableOn(o)),this.dispose(e._menuPoiCommand.disposableOn((i,a)=>{if(a==="delete"){if(e.editingPoints.length<=2)return;const l=e.editingPoints.indexOf(i);if(l===-1)throw console.error("posEditor not found"),new Error("posEditor not found");e.editingPoints.splice(l,1)}else if(a==="modify")o(i);else if(a==="add"){const l=e.editingPoints.indexOf(i);if(l===-1)throw console.error("posEditor not found"),new Error("posEditor not found");this._overEvent.emit(l+1)}else a==="dbClick"?this._overEvent.emit(-1):alert(`未知的commandName(${a})`)})),this.dispose(this._cancelEvent.disposableOn(()=>{this._overEvent.emit(-1)}))}get overEvent(){return this._overEvent}cancel(){this._cancelEvent.emit()}modify(e){this._forceModifyPosEditorEvent.emit(e)}}class Fj extends E.Destroyable{constructor(e,r){super();N(this,"_overEvent",this.disposeVar(new E.Event));this._modifying=e,this._posEditor=r,this.dispose(this._posEditor.toDestroyEvent.disposableOn(()=>{this._overEvent.emit()}));const{translationEditing:s}=this._modifying;if(s.enabled=!0,s.heading=0,this.dispose(()=>{s.enabled=!1}),!this._posEditor.position)throw console.error("!this._posEditor.position"),new Error("!this._posEditor.position");s.position=this._posEditor.position,this.dispose(E.track([this._posEditor,"position"],[s,"position"])),this.dispose(s.enabledChanged.disposableOnce(o=>{o||this._overEvent.emit()}))}get overEvent(){return this._overEvent}}class w2 extends ht{constructor(n){super(n),this.loop=!1}}class b2 extends ht{constructor(n){super(n),this.loop=!0}}class ul extends Lt{init(){const n=this.startPosition;if(!n)return;const e=this.distance,r=this.rotation,s=e*Math.cos(r[1]*Math.PI/180),o=Q.geoDestination(n,s,r[0]);if(!o){this.positions=[n];return}const i=e*Math.sin(r[1]*Math.PI/180);o[2]+=i,this.positions=[n,o],this.editingPoints.length==2&&(this.editingPoints.get(0).position=n,this.editingPoints.get(1).position=o)}constructor(n){super(n),this.loop=!0,this.maxPointsNum=2;{const e=()=>{if(!this.positions||this.positions.length==0){this.distance=1,this.rotation=[90,0,0],this.startPosition=[0,0,0];return}if(this.positions.length==1){this.distance=1,this.rotation=[90,0,0];return}this.startPosition=this.positions[0],this.endPosition=this.positions[1];const r=Q.geoHeading(this.startPosition,this.endPosition),s=Q.geoDistance(this.startPosition,this.endPosition);if(s<=0){this.rotation=[90,0,0],this.distance=1;return}const o=this.endPosition[2]-this.startPosition[2],i=Math.atan(o/s)*180/Math.PI,a=Math.sqrt(s*s+o*o);this.rotation=[r,i,0],this.distance=a};e(),this.ad(this.positionsChanged.don(e))}}}(t=>{t.createDefaultProps=()=>({...Lt.createDefaultProps(),startPosition:E.reactArrayWithUndefined(void 0),endPosition:E.reactArrayWithUndefined(void 0),rotation:E.reactArray([90,0,0]),distance:E.react(1)})})(ul||(ul={})),E.extendClassProps(ul.prototype,ul.createDefaultProps);class Fa extends ht{init(){const n=this.startPosition;if(!n)return;const e=this.distance,r=this.rotation,s=e*Math.cos(r[1]*Math.PI/180),o=Q.geoDestination(n,s,r[0]);if(!o){this.positions=[n];return}const i=e*Math.sin(r[1]*Math.PI/180);o[2]+=i,this.positions=[n,o],this.editingPoints.length==2&&(this.editingPoints.get(0).position=n,this.editingPoints.get(1).position=o)}constructor(n){super(n),this.loop=!0,this.maxPointsNum=2,this.middlePointShow=!1,this.moveWithFirstPosition=!0;{const e=()=>{do{if(!this.positions||this.positions.length==0){this.distance=1,this.rotation=[90,0,0],this.startPosition=[0,0,0];break}if(this.startPosition=this.positions[0],this.positions.length==1){this.editingPoints.get(0).menuPoi.commands=[["add","增加控制点","",ht.baseImageUrl+"add.png"],["delete","删除当前控制点","",ht.baseImageUrl+"delete.png"],["modify","修改当前控制点","",ht.baseImageUrl+"modify.png"]],this.rotation=[90,0,0],this.distance=1;break}this.endPosition=this.positions[1];for(let l of this.editingPoints)l.menuPoi.commands=[["delete","删除当前控制点","",ht.baseImageUrl+"delete.png"],["modify","修改当前控制点","",ht.baseImageUrl+"modify.png"]];const r=Q.geoHeading(this.startPosition,this.endPosition),s=Q.geoDistance(this.startPosition,this.endPosition);if(Math.abs(s)<=0){this.rotation=[90,0,0],this.distance=1;return}const o=this.endPosition[2]-this.startPosition[2],i=Math.atan(o/s)*180/Math.PI,a=Math.sqrt(s*s+o*o);this.rotation=[r,i,0],this.distance=a}while(!1)};this.ad(this.positionsChanged.don(e))}}}(t=>{t.createDefaultProps=()=>({...ht.createDefaultProps(),startPosition:E.reactArrayWithUndefined(void 0),endPosition:E.reactArrayWithUndefined(void 0),rotation:E.reactArray([0,0,0]),distance:E.react(0)})})(Fa||(Fa={})),E.extendClassProps(Fa.prototype,Fa.createDefaultProps);class _2 extends Lt{constructor(n){super(n),this.loop=!1,this.polylineShow=!1}}class x2 extends ht{constructor(n){super(n),this.loop=!1,this.polylineShow=!1,this.middlePointShow=!1}}class cl extends Lt{constructor(n){super(n),n.viewer||(this.loop=!1);{const e=()=>{if(!this.positions||this.positions.length<2){this.visibilityPositions=void 0;return}const r=[...this.positions[0]];r[2]-=n.editingHeightOffset??0,this.visibilityPositions=this.positions.map(s=>(s[2]-=n.editingHeightOffset??0,[r,s]))};e(),this.ad(this.positionsChanged.don(e))}}createPolyline(n){const e=this.ad(new gr(n));e.topOrBottom="bottom",this.ad(E.track([e,"color"],[this,"polylineColor"])),this.ad(E.track([e,"width"],[this,"polylineWidth"])),this.ad(E.track([e,"show"],[this,"polylineShow"])),this.ad(E.track([e,"arcType"],[this,"polylineArcType"])),this.ad(E.track([e,"loop"],[this,"loop"])),this.ad(E.track([e,"positions"],[this,"visibilityPositions"]))}}(t=>{t.createDefaultProps=()=>({...Lt.createDefaultProps(),visibilityPositions:E.reactPositionsSet(void 0)})})(cl||(cl={})),E.extendClassProps(cl.prototype,cl.createDefaultProps);class hl extends ht{constructor(n){if(super(n),!!n.viewer){this.loop=!1,this.middlePointShow=!1;{const e=()=>{if(!this.positions||this.positions.length<2)return;const r=[...this.positions[0]];r[2]-=n.editingHeightOffset??0,this.visibilityPositions=this.positions.map(s=>(s[2]-=n.editingHeightOffset??0,[r,s]))};e(),this.ad(this.positionsChanged.don(e))}}}createPolyline(n){const e=this.ad(new gr(n));e.topOrBottom="bottom",this.ad(E.track([e,"color"],[this,"polylineColor"])),this.ad(E.track([e,"width"],[this,"polylineWidth"])),this.ad(E.track([e,"show"],[this,"polylineShow"])),this.ad(E.track([e,"arcType"],[this,"polylineArcType"])),this.ad(E.track([e,"loop"],[this,"loop"])),this.ad(E.track([e,"positions"],[this,"visibilityPositions"]))}}(t=>{t.createDefaultProps=()=>({...ht.createDefaultProps(),visibilityPositions:E.reactPositionsSet(void 0)})})(hl||(hl={})),E.extendClassProps(hl.prototype,hl.createDefaultProps);class C2 extends Fa{constructor(n){super(n),this.firstControlPointImageUrl=this.otherControlPointImageUrl,this.translationEditing.xAxisShow=!1,this.translationEditing.yAxisShow=!1,this.translationEditing.zAxisShow=!0,this.translationEditing.showCircle=!1,this.rotation=[0,90,0]}}class vn extends Q.EngineObject{constructor(e,r,s){super(e,r,s??!0);N(this,"_supportEditing",this.disposeVar(E.react(!0)));N(this,"_currentEditing",this.disposeVar(E.react(void 0)));this.ad(this.supportEditingChanged.don(()=>{this.destroy()})),this.ad(this.toDestroyEvent.don(()=>{var o;if(this.currentEditing){if(this.currentEditing instanceof Lt&&((o=this.currentEditing.currentProcess)!=null&&o.isRunning))if(this.currentEditing.currentProcess.cancel(),e!=null&&e.position){if(this.currentEditing.positions.length>1)return;e.position=this.currentEditing.positions[0]??[0,0,0],e!=null&&e.rotation&&(e.rotation=[0,0,0]),e!=null&&e.far&&(e.far=1),e!=null&&e.radius&&(e.radius=1),e!=null&&e.distance&&(e.distance=1)}else e.points=this.currentEditing.positions;this.currentEditing instanceof Sr&&this.currentEditing.enabled&&(e.position=[0,0,0])}}))}get supportEditing(){return this._supportEditing.value}set supportEditing(e){this._supportEditing.value=e}get supportEditingChanged(){return this._supportEditing.changed}get currentEditing(){return this._currentEditing.value}set currentEditing(e){this._currentEditing.value=e}get currentEditingChanged(){return this._currentEditing.changed}}const Ch=class Ch extends vn{constructor(n,e){super(n,e,!0);const r=this.currentEditing=this.ad(new Sr(e));this.ad(e.clickEvent.don(s=>{var o;((o=s.pointerEvent)==null?void 0:o.button)==2&&(r.enabled=!0)}));do{if(Reflect.has(n,"position")){this.ad(E.bind([r,"position"],[n,"position"])),r.enabled=!r.position||Q.equalsN3(r.position,[0,0,0]);break}this.supportEditing=!1}while(!1)}};N(Ch,"type",Ch.registerEditing("ESCesiumViewer",Q.ESJEditingMode.Place,Ch));let V0=Ch;const Sh=class Sh extends vn{constructor(n,e){super(n,e,!0);const r=this.currentEditing=this.ad(new Er(e));r.rotation=[90,0,0],this.ad(r.enabledChanged.don(s=>{!s&&this.ad(E.nextAnimateFrame(()=>{this.destroy()}))}));do{if(n instanceof Q.ES3DTileset){Q.registerCreatedEventUpdate(this,n,()=>{const s=e.getEngineObject(n);s&&(this.ad(E.bind([r,"position"],[s.czm3DTiles,"position"])),this.ad(E.bind([r,"selfRotation"],[n,"rotation"])))});break}if(Reflect.has(n,"position")&&Reflect.has(n,"rotation")){this.ad(E.bind([r,"position"],[n,"position"])),this.ad(E.bind([r,"selfRotation"],[n,"rotation"]));break}this.supportEditing=!1}while(!1)}};N(Sh,"type",Sh.registerEditing("ESCesiumViewer",Q.ESJEditingMode.Rotation,Sh));let Q0=Sh;const Eh=class Eh extends vn{constructor(n,e){super(n,e,!0);const r=this.currentEditing=this.ad(new Fi(e));this.ad(r.enabledChanged.don(s=>{!s&&this.ad(E.nextAnimateFrame(()=>{this.destroy()}))}));do{if(Reflect.has(n,"position")&&Reflect.has(n,"scale")){this.ad(E.bind([r,"position"],[n,"position"])),this.ad(E.bind([r,"scale"],[n,"scale"]));break}this.supportEditing=!1}while(!1)}};N(Eh,"type",Eh.registerEditing("ESCesiumViewer",Q.ESJEditingMode.Scale,Eh));let H0=Eh;const Ph=class Ph extends vn{constructor(n,e){super(Array.isArray(n)?n[0]:n,e,!0);const r=this.currentEditing=this.ad(new Ii(e));this.ad(r.enabledChanged.don(s=>{!s&&this.ad(E.nextAnimateFrame(()=>{this.destroy()}))}));do{if(Array.isArray(n)){const s=[];for(let o=0;o<n.length;o++){const i=n[o];Reflect.has(i,"position")?s.push(i.position):i.points&&s.push(...i.points)}r.position=Q.getMinMaxCorner(s).center,this.ad(r.positionChanged.disposableOn((o,i)=>{if(!(!o||!i)){var a=Tn({originPosition:i},[o])[0][0];n.forEach(l=>{if(Reflect.has(l,"position")){const h=Tn({originPosition:i},[l.position])[0][0];l.position=Vi({originPosition:i},[[h[0]+a[0],h[1]+a[1],h[2]+a[2]]])[0][0]}else if(Reflect.has(l,"points")&&l.points){const h=Tn({originPosition:i},l.points)[0];l.points=Vi({originPosition:i},h.map(f=>[f[0]+a[0],f[1]+a[1],f[2]+a[2]]))[0]}})}}));break}if(Reflect.has(n,"position")){this.ad(E.bind([r,"position"],[n,"position"]));break}if(n instanceof Q.ES3DTileset){Q.registerCreatedEventUpdate(this,n,()=>{const s=e.getEngineObject(n);this.ad(E.bind([r,"position"],[s.czm3DTiles,"position"]))});break}if(Reflect.has(n,"points")){if(n.points===void 0||n.points.length===0){this.destroy();break}r.position=Q.getMinMaxCorner(n.points).center,this.ad(r.positionChanged.disposableOn((s,o)=>{if(s===void 0||o===void 0||n.points===void 0||n.points.length===0){this.destroy();return}var i=Tn({originPosition:o},[s])[0][0];const a=Tn({originPosition:o},n.points)[0];n.points=Vi({originPosition:o},a.map(l=>[l[0]+i[0],l[1]+i[1],l[2]+i[2]]))[0]}));break}this.supportEditing=!1}while(!1)}};N(Ph,"type",Ph.registerEditing("ESCesiumViewer",Q.ESJEditingMode.Translation,Ph));let mp=Ph;const Th=class Th extends vn{constructor(n,e){super(n,e,!0);const r=this.currentEditing=this.ad(new ul(e));this.ad(r.enabledChanged.don(s=>{!s&&this.ad(E.nextAnimateFrame(()=>{this.destroy()}))}));do{if(Reflect.has(n,"position")){this.ad(E.bind([r,"startPosition"],[n,"position"])),this.ad(jt([r,"rotation"],[n,"rotation"]));do{if(Reflect.has(n,"far")){this.ad(E.bind([r,"distance"],[n,"far"]));break}if(Reflect.has(n,"radius")){this.ad(E.bind([r,"distance"],[n,"radius"]));break}if(Reflect.has(n,"distance")){this.ad(E.bind([r,"distance"],[n,"distance"]));break}const s=Tt(n.position);if(F.Cartesian3.ZERO.equals(s)||!e.viewer)return;r.distance=ii(e.viewer.scene,s,100)??1}while(!1);break}if(Reflect.has(n,"points")){const s=()=>r.positions=n.points??[];s(),this.ad(n.pointsChanged.don(()=>!r.enabled&&s())),this.ad(E.track([n,"points"],[r,"positions"]));break}this.supportEditing=!1}while(!1);r.startPosition&&!Q.equalsN3(r.startPosition,[0,0,0])&&r.init(),r.enabled=!0}};N(Th,"type",Th.registerEditing("ESCesiumViewer",Q.ESJEditingMode.DoublePointsAppend,Th));let j0=Th;const Bh=class Bh extends vn{constructor(n,e){var o;if(super(n,e,!0),!e.viewer)return;const r=this.currentEditing=this.ad(new Fa(e));do{if(Reflect.has(n,"position")){this.ad(E.bind([r,"startPosition"],[n,"position"])),this.ad(jt([r,"rotation"],[n,"rotation"]));do{if(Reflect.has(n,"far")){this.ad(E.bind([r,"distance"],[n,"far"]));break}if(Reflect.has(n,"radius")){this.ad(E.bind([r,"distance"],[n,"radius"]));break}if(Reflect.has(n,"distance")){this.ad(E.bind([r,"distance"],[n,"distance"]));break}const i=Tt(n.position);if(F.Cartesian3.ZERO.equals(i)||!e.viewer)return;r.distance=ii(e.viewer.scene,i,100)??1}while(!1);break}if(Reflect.has(n,"points")&&((o=n.points)==null?void 0:o.length)==2){r.moveWithFirstPosition=!1;const i=()=>r.positions=n.points??[];i(),this.ad(n.pointsChanged.don(()=>!r.enabled&&i())),this.ad(E.track([n,"points"],[r,"positions"]));break}this.supportEditing=!1;return}while(!1);r.init(),r.enabled=!0;const s=this.ad(E.createNextAnimateFrameEvent(r.enabledChanged,r.startPositionChanged));this.ad(s.don(()=>{(!r.enabled||!r.startPosition||Q.equalsN3(r.startPosition,[0,0,0]))&&this.destroy()}))}};N(Bh,"type",Bh.registerEditing("ESCesiumViewer",Q.ESJEditingMode.DoublePointsModify,Bh));let G0=Bh;const Ih=class Ih extends vn{constructor(n,e){super(n,e,!0);const r=this.currentEditing=this.ad(new v2(e));this.ad(r.enabledChanged.don(s=>{!s&&this.ad(E.nextAnimateFrame(()=>{this.destroy()}))}));do{if(Reflect.has(n,"points")){const s=()=>r.positions=n.points??[];s(),this.ad(n.pointsChanged.don(()=>!r.enabled&&s())),r.enabled=!0,this.ad(E.track([n,"points"],[r,"positions"]));break}this.supportEditing=!1}while(!1)}};N(Ih,"type",Ih.registerEditing("ESCesiumViewer",Q.ESJEditingMode.CircularAppend,Ih));let W0=Ih;const Fh=class Fh extends vn{constructor(n,e){super(n,e,!0);const r=this.currentEditing=this.ad(new b2(e));this.ad(r.enabledChanged.don(s=>{!s&&this.ad(E.nextAnimateFrame(()=>{this.destroy()}))}));do{if(Reflect.has(n,"points")){const s=()=>r.positions=n.points??[];s(),this.ad(n.pointsChanged.don(()=>!r.enabled&&s())),r.enabled=!0,this.ad(E.track([n,"points"],[r,"positions"]));break}this.supportEditing=!1}while(!1)}};N(Fh,"type",Fh.registerEditing("ESCesiumViewer",Q.ESJEditingMode.CircularInsert,Fh));let q0=Fh;const kh=class kh extends vn{constructor(n,e){super(n,e,!0);const r=this.currentEditing=this.ad(new g2(e));this.ad(r.enabledChanged.don(s=>{!s&&this.ad(E.nextAnimateFrame(()=>{this.destroy()}))}));do{if(Reflect.has(n,"points")){const s=()=>r.positions=n.points??[];s(),this.ad(n.pointsChanged.don(()=>!r.enabled&&s())),r.enabled=!0,this.ad(E.track([n,"points"],[r,"positions"]));break}this.supportEditing=!1}while(!1)}};N(kh,"type",kh.registerEditing("ESCesiumViewer",Q.ESJEditingMode.LineStringAppend,kh));let K0=kh;const Mh=class Mh extends vn{constructor(n,e){super(n,e,!0);const r=this.currentEditing=this.ad(new w2(e));this.ad(r.enabledChanged.don(s=>{!s&&this.ad(E.nextAnimateFrame(()=>{this.destroy()}))}));do{if(Reflect.has(n,"points")){const s=()=>r.positions=n.points??[];s(),this.ad(n.pointsChanged.don(()=>!r.enabled&&s())),r.enabled=!0,this.ad(E.track([n,"points"],[r,"positions"]));break}this.supportEditing=!1}while(!1)}};N(Mh,"type",Mh.registerEditing("ESCesiumViewer",Q.ESJEditingMode.LineStringInsert,Mh));let X0=Mh;const Oh=class Oh extends vn{constructor(n,e){super(n,e,!0);const r=this.currentEditing=this.ad(new _2(e));this.ad(r.enabledChanged.don(s=>{!s&&this.ad(E.nextAnimateFrame(()=>{this.destroy()}))}));do{if(Reflect.has(n,"points")){const s=()=>r.positions=n.points??[];s(),this.ad(n.pointsChanged.don(()=>!r.enabled&&s())),r.enabled=!0,this.ad(E.track([n,"points"],[r,"positions"]));break}this.supportEditing=!1}while(!1)}};N(Oh,"type",Oh.registerEditing("ESCesiumViewer",Q.ESJEditingMode.ScatterAppend,Oh));let $0=Oh;const Dh=class Dh extends vn{constructor(n,e){super(n,e,!0);const r=this.currentEditing=this.ad(new x2(e));this.ad(r.enabledChanged.don(s=>{!s&&this.ad(E.nextAnimateFrame(()=>{this.destroy()}))}));do{if(Reflect.has(n,"points")){const s=()=>r.positions=n.points??[];s(),this.ad(n.pointsChanged.don(()=>!r.enabled&&s())),r.enabled=!0,this.ad(E.track([n,"points"],[r,"positions"]));break}this.supportEditing=!1}while(!1)}};N(Dh,"type",Dh.registerEditing("ESCesiumViewer",Q.ESJEditingMode.ScatterModify,Dh));let Z0=Dh;const Rh=class Rh extends vn{constructor(n,e){super(n,e,!0);const r=this.currentEditing=this.ad(new cl(e));this.ad(r.enabledChanged.don(s=>{!s&&this.ad(E.nextAnimateFrame(()=>{this.destroy()}))}));do{if(Reflect.has(n,"points")){const s=()=>r.positions=n.points??[];s(),this.ad(n.pointsChanged.don(()=>!r.enabled&&s())),r.enabled=!0,this.ad(E.track([n,"points"],[r,"positions"]));break}this.supportEditing=!1}while(!1)}};N(Rh,"type",Rh.registerEditing("ESCesiumViewer",Q.ESJEditingMode.VisibilityAppend,Rh));let Y0=Rh;const Uh=class Uh extends vn{constructor(n,e){super(n,e,!0);const r=this.currentEditing=this.ad(new hl(e));this.ad(r.enabledChanged.don(s=>{!s&&this.ad(E.nextAnimateFrame(()=>{this.destroy()}))}));do{if(Reflect.has(n,"points")){const s=()=>r.positions=n.points??[];s(),this.ad(n.pointsChanged.don(()=>!r.enabled&&s())),r.enabled=!0,this.ad(E.track([n,"points"],[r,"positions"]));break}this.supportEditing=!1}while(!1)}};N(Uh,"type",Uh.registerEditing("ESCesiumViewer",Q.ESJEditingMode.VisibilityModify,Uh));let J0=Uh;const Lh=class Lh extends vn{constructor(n,e){if(super(n,e,!0),!e.viewer)return;const r=this.currentEditing=this.ad(new C2(e));do{if(Reflect.has(n,"points")){const o=Reflect.has(n,"extrudedHeight"),i=Reflect.has(n,"height"),a=Reflect.has(n,"perPositionHeight")?n.perPositionHeight:!o,l=n instanceof Q.ESClassification||n instanceof Q.ESPolygonFence;let h=Q.getMinMaxCorner(n.points).center,f=[...h],u=l?n.points[0][2]:0;a?o?f[2]=n.extrudedHeight:f[2]=n.height+u:(i&&(h[2]=n.height),o&&(f[2]=n.extrudedHeight)),r.startPosition=h,r.distance=f[2]-h[2],r.moveWithFirstPosition=!1;let y=[...h];this.ad(r.positionsChanged.don(()=>{r.positions.length===2&&(a?(n.points=n.points.map(v=>[v[0],v[1],v[2]+r.positions[0][2]-y[2]]),o?n.extrudedHeight=r.positions[1][2]:i&&(n.height=r.positions[1][2]-(l?r.positions[0][2]:0))):(i&&(n.height=r.positions[0][2]),o&&(n.extrudedHeight=r.positions[1][2])),y=[...r.positions[0]])}));break}this.supportEditing=!1;return}while(!1);r.init(),r.enabled=!0;const s=this.ad(E.createNextAnimateFrameEvent(r.enabledChanged,r.startPositionChanged));this.ad(s.don(()=>{(!r.enabled||!r.startPosition||Q.equalsN3(r.startPosition,[0,0,0]))&&this.destroy()}))}};N(Lh,"type",Lh.registerEditing("ESCesiumViewer",Q.ESJEditingMode.HeightModify,Lh));let ew=Lh;function S2(){const t=E.createProcessingFromAsyncFunc(async(n,e,r,s,o=!0)=>{const i=Array.isArray(s)?[...s]:[s],a=r.editingID;e.editingEvent.emit({objectIDs:[r.id.split("_")[0]],editingID:a,type:"start",add:{modes:i}});const l=()=>{e.notSupportEditingCount=0,e.editingEvent.emit({objectIDs:[r.id.split("_")[0]],editingID:a,type:"end",add:{modes:i}}),t.isRunning&&t.cancel()};n.disposer.ad(l),n.disposer.ad(r.toDestroyEvent.don(l)),n.disposer.ad(e.keyDownEvent.don(f=>{f.code=="Escape"&&l()}));let h=0;do{const f=i[h%i.length],u=await E.step(n,async y=>{const v=y.disposer,g=Q.EngineObject.contextEditing.getEngineObjConstructor(f,e.typeName);if(!g||!r.supportEditingModes().includes(f))return console.log(`未找到编辑模式或不支持当前编辑模式${f},已跳过当前编辑模式,请检查输入`),e.editingEvent.emit({objectIDs:[r.id.split("_")[0]],editingID:a,type:"changedFailed",add:{cMode:f,cIndex:h}}),e.notSupportEditingCount++,!1;const m=new g(r,e);if(v.ad(()=>{!m.isDestroyed()&&m.destroy()}),m.supportEditing)e.editingEvent.emit({objectIDs:[r.id.split("_")[0]],editingID:a,type:"changed",add:{cMode:f,cIndex:h}}),e.notSupportEditingCount=0;else return console.log(`未找到编辑模式或不支持当前编辑模式${f},已跳过当前编辑模式,请检查输入`),e.editingEvent.emit({objectIDs:[r.id.split("_")[0]],editingID:a,type:"changedFailed",add:{cMode:f,cIndex:h}}),e.notSupportEditingCount++,!1;return await y.promise(new Promise(d=>{m.isDestroyed()&&d(!1),v.ad(m.toDestroyEvent.don(()=>{console.log(`编辑模式${f}结束`),d(!1)})),o&&(v.ad(e.keyDownEvent.don(c=>{c.code=="Space"&&(console.log(`编辑模式${f}结束`),d(!1))})),v.ad(e.dblclickEvent.don(()=>d(!0))))}))});if(o&&u||!o&&h==i.length-1||e.notSupportEditingCount==i.length)break;h++}while(!0)});return t}function E2(){const t=E.createProcessingFromAsyncFunc(async(n,e,r,s)=>{e.editingEvent.emit({objectIDs:r.map(a=>a.id.split("_")[0]),editingID:s,type:"start"});const o=()=>{e.editingEvent.emit({objectIDs:r.map(a=>a.id.split("_")[0]),editingID:s,type:"end"}),t.isRunning&&t.cancel()};n.disposer.ad(o),n.disposer.ad(e.keyDownEvent.don(a=>{a.code=="Escape"&&o()}));const i=new mp(r,e);n.disposer.ad(()=>{!i.isDestroyed()&&i.destroy()}),await n.promise(new Promise(a=>{i.isDestroyed()&&a(),n.disposer.ad(i.toDestroyEvent.don(()=>{console.log("移动结束"),a()})),n.disposer.ad(e.dblclickEvent.don(()=>a()))}))});return t}ue.copyright=void 0;try{const t="earthsdk3-cesium",n="3.0.7-beta.24",e="2025-06-17T01:44:02.000Z",r="北京西部世界科技有限公司",s="地球可视化实验室 (EarthSDK&CesiumLab) https://www.bjxbsj.cn",o="987d11c994df191cfd9dfffe6892b13b5c765e81",a=((Date.now()-1750124642e3)/36e5).toFixed(1),l=`%c🌏 ${t}%c ${n}.${o.slice(0,8)}.${e} (距今${a}个小时)
4898
4898
  %c${s?s+`
4899
4899
  `:""}当前网站正在使用${t},此软件版权归${r}所有
4900
- `;ue.copyright=Object.freeze({get owner(){return"北京西部世界科技有限公司"},get ownerlink(){return OWNERLINK_},get gituri(){return GITURI_&&GITURI_.replace("${commitId}","2c5a9444b24a8f9bdcd1c4dbe41e51985efa239a")},get info(){return l},get date(){return"2025-06-17T00:37:35.000Z"},get author(){return"suplyang"},get version(){return"3.0.7-beta.23"},get name(){return"earthsdk3-cesium"},get commitId(){return"2c5a9444b24a8f9bdcd1c4dbe41e51985efa239a"},print(){console.info(this.info,`
4900
+ `;ue.copyright=Object.freeze({get owner(){return"北京西部世界科技有限公司"},get ownerlink(){return OWNERLINK_},get gituri(){return GITURI_&&GITURI_.replace("${commitId}","987d11c994df191cfd9dfffe6892b13b5c765e81")},get info(){return l},get date(){return"2025-06-17T01:44:02.000Z"},get author(){return"suplyang"},get version(){return"3.0.7-beta.24"},get name(){return"earthsdk3-cesium"},get commitId(){return"987d11c994df191cfd9dfffe6892b13b5c765e81"},print(){console.info(this.info,`
4901
4901
  font-size: 18px;
4902
4902
  font-weight: 1000;
4903
4903
  line-height: 1;