<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">/*! For license information please see script.js.LICENSE.txt */
var lib;(self.webpackChunklib=self.webpackChunklib||[]).push([[335],{7509:(t,e,r)=&gt;{var i={"./arrow.svg":2334};function n(t){var e=o(t);return r(e)}function o(t){if(!r.o(i,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return i[t]}n.keys=function(){return Object.keys(i)},n.resolve=o,t.exports=n,n.id=7509},1022:(t,e,r)=&gt;{var i={"./flags/ln_ar.png":8125,"./flags/ln_cs.png":5458,"./flags/ln_da.png":1202,"./flags/ln_de.png":6638,"./flags/ln_el.png":7058,"./flags/ln_en.png":7005,"./flags/ln_es.png":6388,"./flags/ln_fr.png":5288,"./flags/ln_he.png":249,"./flags/ln_hu.png":4391,"./flags/ln_it.png":5982,"./flags/ln_ja.png":8127,"./flags/ln_ko.png":5039,"./flags/ln_nl.png":8497,"./flags/ln_no.png":6404,"./flags/ln_pl.png":7793,"./flags/ln_pt.png":543,"./flags/ln_ru.png":3093,"./flags/ln_sv.png":8632,"./flags/ln_tr.png":6685,"./flags/ln_uk.png":9454,"./flags/ln_zh.png":1800,"./visa.png":9301};function n(t){var e=o(t);return r(e)}function o(t){if(!r.o(i,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return i[t]}n.keys=function(){return Object.keys(i)},n.resolve=o,t.exports=n,n.id=1022},9317:(t,e,r)=&gt;{var i={"./24-hour-check-in.svg":1350,"./air-conditioning.svg":919,"./airports.svg":3125,"./amenities-1.svg":3177,"./amenities-2.svg":9522,"./amenities-3.svg":9042,"./amenities-3114.svg":4675,"./amenities-492.svg":1820,"./amenities.svg":3560,"./apartment-mark.svg":6859,"./bathroom.svg":4113,"./bathtub.svg":611,"./bed-3.svg":26,"./bed.svg":1434,"./bedding.svg":2429,"./breakfast-included.svg":9629,"./breakfast-not-incl.svg":9080,"./breakfast.svg":7992,"./browser-1.svg":3134,"./business-facilities.svg":9753,"./calendar.svg":1343,"./checked.svg":4356,"./child-friendly.svg":8790,"./clock.svg":2426,"./close-button.svg":5820,"./credit-card.svg":7370,"./cutlery.svg":9695,"./dining.svg":3001,"./down-arrow.svg":2806,"./dustpan.svg":6104,"./early-late.svg":7546,"./email.svg":613,"./error.svg":5736,"./exit-popup-close.svg":6010,"./eye.svg":3367,"./facebook-logo.svg":6882,"./fitness-center-gym.svg":3670,"./free.svg":9445,"./general.svg":2277,"./globe-phone.svg":5164,"./google-plus-logo.svg":8396,"./home.svg":4547,"./icon-logo.svg":8104,"./info-point.svg":5808,"./info.svg":3644,"./instagram-big-logo.svg":6832,"./internet.svg":4246,"./key-card.svg":1901,"./like.svg":3460,"./linkedin-letters.svg":5876,"./living-room.svg":9716,"./loading.svg":1856,"./local_attractions.svg":8194,"./location.svg":1700,"./mail.svg":5917,"./map-footer.svg":8398,"./map.svg":2869,"./mastercard.svg":8877,"./media.svg":7147,"./menu.svg":7320,"./nearby.svg":9744,"./no-pets-allowed.svg":1944,"./no-smoking.svg":7372,"./overview.svg":4852,"./parking.svg":2220,"./pay-at-hotel.svg":4946,"./pci.svg":6898,"./pets-allowed.svg":3727,"./phone.svg":1935,"./photo-camera.svg":4082,"./placeholder.svg":6002,"./private-beach.svg":239,"./question.svg":7396,"./rate-info.svg":6983,"./restaurant-bar.svg":7179,"./review.svg":847,"./rocking-horse.svg":2370,"./room.svg":4195,"./shuttle.svg":7270,"./ski.svg":4648,"./skype.svg":4902,"./smoking-allowed.svg":7906,"./sofa-2.svg":7563,"./spa.svg":7436,"./square.svg":7904,"./stairs.svg":1223,"./support.svg":8983,"./swimming-pool.svg":313,"./tennis.svg":1878,"./train.svg":1578,"./tripadvisor-3-1-copy-4.svg":3818,"./tripadvisor.svg":9315,"./twitter.svg":6095,"./user-2.svg":5489,"./user.svg":2616,"./visa.svg":5357,"./wheelchair-access.svg":5450,"./wi-fi.svg":6984,"./youtube-play.svg":5533};function n(t){var e=o(t);return r(e)}function o(t){if(!r.o(i,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return i[t]}n.keys=function(){return Object.keys(i)},n.resolve=o,t.exports=n,n.id=9317},9275:(t,e,r)=&gt;{var i={"./404.png":4285,"./Email_footer.png":3108,"./Number_footer.png":7678,"./apartment-placeholder.png":2038,"./apartment_number.png":3543,"./businesswoman-mobile.jpg":3507,"./businesswoman.jpg":5165,"./clock-1.png":6589,"./down-arrow-grey.png":5675,"./down-arrow.png":1746,"./header-bg.jpg":4468};function n(t){var e=o(t);return r(e)}function o(t){if(!r.o(i,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return i[t]}n.keys=function(){return Object.keys(i)},n.resolve=o,t.exports=n,n.id=9275},2991:(t,e,r)=&gt;{"use strict";r.d(e,{R:()=&gt;o});var i=r(1422),n={};function o(){return(0,i.KV)()?r.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:n}},1422:(t,e,r)=&gt;{"use strict";function i(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function n(t,e){return t.require(e)}r.d(e,{KV:()=&gt;i,l$:()=&gt;n}),t=r.hmd(t)},1170:(t,e,r)=&gt;{"use strict";r.d(e,{yW:()=&gt;l,ph:()=&gt;u});var i=r(2991),n=r(1422);t=r.hmd(t);var o={nowSeconds:function(){return Date.now()/1e3}};var a=(0,n.KV)()?function(){try{return(0,n.l$)(t,"perf_hooks").performance}catch(t){return}}():function(){var t=(0,i.R)().performance;if(t&amp;&amp;t.now)return{now:function(){return t.now()},timeOrigin:Date.now()-t.now()}}(),s=void 0===a?o:{nowSeconds:function(){return(a.timeOrigin+a.now())/1e3}},l=o.nowSeconds.bind(o),u=s.nowSeconds.bind(s);!function(){var t=(0,i.R)().performance;if(t&amp;&amp;t.now){var e=36e5,r=t.now(),n=Date.now(),o=t.timeOrigin?Math.abs(t.timeOrigin+r-n):e,a=o&lt;e,s=t.timing&amp;&amp;t.timing.navigationStart,l="number"==typeof s?Math.abs(s+r-n):e;return a||l&lt;e?o&lt;=l?("timeOrigin",t.timeOrigin):("navigationStart",s):("dateNow",n)}"none"}()},6265:(t,e,r)=&gt;{function i(t){return t.keys().map(t)}r(8026),r(45),i(r(1022)),i(r(7509))},45:(t,e,r)=&gt;{"use strict";r.r(e);r(1703);var i=r(9755);function n(t,e,r,i,n,o,a){try{var s=t[o](a),l=s.value}catch(t){return void r(t)}s.done?e(l):Promise.resolve(l).then(i,n)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(i,o){var a=t.apply(e,r);function s(t){n(a,i,o,s,l,"next",t)}function l(t){n(a,i,o,s,l,"throw",t)}s(void 0)}))}}setTimeout(o((function*(){var{default:t}=yield r.e(268).then(r.bind(r,4268));new t;var{default:e}=yield r.e(991).then(r.bind(r,991));new e({isMobile:!(i(window).width()&gt;767)})})),0)},1703:(t,e,r)=&gt;{var i=r(9755);window.onerror=(t,e,r,n,o)=&gt;{var a,s,l="";return l+=null!=t?t:"Error w/o msg.",l+=null!=e?" uri: "+e:" uri: "+window.location.href,null!=r&amp;&amp;(l+=" line: "+r),null!=n&amp;&amp;(l+=" column: "+n),null!=o&amp;&amp;void 0!==o.stack&amp;&amp;(l+=" stack: "+o.stack),a=l,void 0===(s=travel.options).wslogs&amp;&amp;i.ajax({method:"post",url:"/",data:{page:"stat",id:s.logId,t:"ev",c:"Error",a,r:Math.floor(1e5*Math.random())}}),!0}},2281:(t,e,r)=&gt;{function i(t){return t.keys().map(t)}r(2047),r(4817),i(r(9275)),i(r(9317))},4817:(t,e,r)=&gt;{"use strict";r.r(e);var i=r(5362);function n(t,e,r,i,n,o,a){try{var s=t[o](a),l=s.value}catch(t){return void r(t)}s.done?e(l):Promise.resolve(l).then(i,n)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(i,o){var a=t.apply(e,r);function s(t){n(a,i,o,s,l,"next",t)}function l(t){n(a,i,o,s,l,"throw",t)}s(void 0)}))}}var a=100,s=t=&gt;new Promise((e=&gt;setTimeout(e,t)));function l(t){return u.apply(this,arguments)}function u(){return(u=o((function*(t){var e=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:a,r=arguments.length&gt;2&amp;&amp;void 0!==arguments[2]?arguments[2]:3e3;try{var i=yield t();return i}catch(i){if(yield s(r),0===e)throw new Error(i);return yield l(t,e-1,r)}}))).apply(this,arguments)}function c(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&amp;&amp;(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,i)}return r}function p(t){for(var e=1;e&lt;arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?c(Object(r),!0).forEach((function(e){h(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function h(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function d(t,e,r,i,n,o,a){try{var s=t[o](a),l=s.value}catch(t){return void r(t)}s.done?e(l):Promise.resolve(l).then(i,n)}function f(t){return function(){var e=this,r=arguments;return new Promise((function(i,n){var o=t.apply(e,r);function a(t){d(o,i,n,a,s,"next",t)}function s(t){d(o,i,n,a,s,"throw",t)}a(void 0)}))}}function m(){return(m=f((function*(t){var e=window.location.protocol+"//"+window.location.host+"/",r=yield fetch(e,{body:(0,i.Z)(t),method:"POST"});if(!r.ok)throw travel.log("Network error: ".concat(r.status," - ").concat(r.statusText)),new Error("Response ".concat(r.status," - ").concat(r.statusText))}))).apply(this,arguments)}var y=((t,e,r)=&gt;o((function*(){for(var i=arguments.length,n=new Array(i),a=0;a&lt;i;a++)n[a]=arguments[a];return yield l(o((function*(){return yield t(...n)})),e,r)})))((function(t){return m.apply(this,arguments)}),10,500);const g=t=&gt;{var e=t||{tob:travel.options.tob,logId:travel.options.logId,wslogs:travel.options.track};if(!e.tob&amp;&amp;e.logId&amp;&amp;e.wslogs){var r=window.performance||window.webkitPerformance||window.msPerformance||window.mozPerformance,i={page:"time",id:e.logId,r:Math.floor(1e7*Math.random())};if(r&amp;&amp;r.timing){var n=r.timing.toJSON(),o=n.navigationStart;Object.keys(n).filter((t=&gt;n[t])).forEach((t=&gt;n[t]-=o)),i=p(p({},i),n)}else i.navigationStart=12345;y(i)}};var v=function(t,e){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&amp;&amp;function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&amp;&amp;(t[r]=e[r])})(t,e)};function _(t,e){function r(){this.constructor=t}v(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var x,b,w=function(){return(w=Object.assign||function(t){for(var e,r=1,i=arguments.length;r&lt;i;r++)for(var n in e=arguments[r])Object.prototype.hasOwnProperty.call(e,n)&amp;&amp;(t[n]=e[n]);return t}).apply(this,arguments)};function S(t){var e="function"==typeof Symbol&amp;&amp;Symbol.iterator,r=e&amp;&amp;t[e],i=0;if(r)return r.call(t);if(t&amp;&amp;"number"==typeof t.length)return{next:function(){return t&amp;&amp;i&gt;=t.length&amp;&amp;(t=void 0),{value:t&amp;&amp;t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function E(t,e){var r="function"==typeof Symbol&amp;&amp;t[Symbol.iterator];if(!r)return t;var i,n,o=r.call(t),a=[];try{for(;(void 0===e||e-- &gt;0)&amp;&amp;!(i=o.next()).done;)a.push(i.value)}catch(t){n={error:t}}finally{try{i&amp;&amp;!i.done&amp;&amp;(r=o.return)&amp;&amp;r.call(o)}finally{if(n)throw n.error}}return a}function k(){for(var t=[],e=0;e&lt;arguments.length;e++)t=t.concat(E(arguments[e]));return t}!function(t){t.Ok="ok",t.Exited="exited",t.Crashed="crashed",t.Abnormal="abnormal"}(x||(x={})),function(t){t.Ok="ok",t.Errored="errored",t.Crashed="crashed"}(b||(b={}));var T=r(2991);function A(){var t=(0,T.R)(),e=t.crypto||t.msCrypto;if(void 0!==e&amp;&amp;e.getRandomValues){var r=new Uint16Array(8);e.getRandomValues(r),r[3]=4095&amp;r[3]|16384,r[4]=16383&amp;r[4]|32768;var i=function(t){for(var e=t.toString(16);e.length&lt;4;)e="0"+e;return e};return i(r[0])+i(r[1])+i(r[2])+i(r[3])+i(r[4])+i(r[5])+i(r[6])+i(r[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"===t?e:3&amp;e|8).toString(16)}))}function C(t){if(!t)return{};var e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};var r=e[6]||"",i=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],relative:e[5]+r+i}}function I(t){if(t.message)return t.message;if(t.exception&amp;&amp;t.exception.values&amp;&amp;t.exception.values[0]){var e=t.exception.values[0];return e.type&amp;&amp;e.value?e.type+": "+e.value:e.type||e.value||t.event_id||"&lt;unknown&gt;"}return t.event_id||"&lt;unknown&gt;"}function P(t,e,r){t.exception=t.exception||{},t.exception.values=t.exception.values||[],t.exception.values[0]=t.exception.values[0]||{},t.exception.values[0].value=t.exception.values[0].value||e||"",t.exception.values[0].type=t.exception.values[0].type||r||"Error"}function M(t,e){var r;if(t.exception&amp;&amp;t.exception.values){var i=t.exception.values[0],n=i.mechanism;if(i.mechanism=w(w(w({},{type:"generic",handled:!0}),n),e),e&amp;&amp;"data"in e){var o=w(w({},null===(r=n)||void 0===r?void 0:r.data),e.data);i.mechanism.data=o}}}function z(t){var e;if(null===(e=t)||void 0===e?void 0:e.__sentry_captured__)return!0;try{Object.defineProperty(t,"__sentry_captured__",{value:!0})}catch(t){}return!1}var D=r(1170),L=(0,T.R)(),R="Sentry Logger ";function O(t){var e=(0,T.R)();if(!("console"in e))return t();var r=e.console,i={};["debug","info","warn","error","log","assert"].forEach((function(t){t in e.console&amp;&amp;r[t].__sentry_original__&amp;&amp;(i[t]=r[t],r[t]=r[t].__sentry_original__)}));var n=t();return Object.keys(i).forEach((function(t){r[t]=i[t]})),n}var B=function(){function t(){this._enabled=!1}return t.prototype.disable=function(){this._enabled=!1},t.prototype.enable=function(){this._enabled=!0},t.prototype.log=function(){for(var t=[],e=0;e&lt;arguments.length;e++)t[e]=arguments[e];this._enabled&amp;&amp;O((function(){L.console.log(R+"[Log]: "+t.join(" "))}))},t.prototype.warn=function(){for(var t=[],e=0;e&lt;arguments.length;e++)t[e]=arguments[e];this._enabled&amp;&amp;O((function(){L.console.warn(R+"[Warn]: "+t.join(" "))}))},t.prototype.error=function(){for(var t=[],e=0;e&lt;arguments.length;e++)t[e]=arguments[e];this._enabled&amp;&amp;O((function(){L.console.error(R+"[Error]: "+t.join(" "))}))},t}();L.__SENTRY__=L.__SENTRY__||{};var F=L.__SENTRY__.logger||(L.__SENTRY__.logger=new B),j=r(1422);function U(t){switch(Object.prototype.toString.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return $(t,Error)}}function N(t){return"[object ErrorEvent]"===Object.prototype.toString.call(t)}function V(t){return"[object DOMError]"===Object.prototype.toString.call(t)}function q(t){return"[object String]"===Object.prototype.toString.call(t)}function W(t){return null===t||"object"!=typeof t&amp;&amp;"function"!=typeof t}function G(t){return"[object Object]"===Object.prototype.toString.call(t)}function H(t){return"undefined"!=typeof Event&amp;&amp;$(t,Event)}function Z(t){return"undefined"!=typeof Element&amp;&amp;$(t,Element)}function X(t){return Boolean(t&amp;&amp;t.then&amp;&amp;"function"==typeof t.then)}function $(t,e){try{return t instanceof e}catch(t){return!1}}var Y=function(){function t(t){var e=this;this._state="PENDING",this._handlers=[],this._resolve=function(t){e._setResult("RESOLVED",t)},this._reject=function(t){e._setResult("REJECTED",t)},this._setResult=function(t,r){"PENDING"===e._state&amp;&amp;(X(r)?r.then(e._resolve,e._reject):(e._state=t,e._value=r,e._executeHandlers()))},this._attachHandler=function(t){e._handlers=e._handlers.concat(t),e._executeHandlers()},this._executeHandlers=function(){if("PENDING"!==e._state){var t=e._handlers.slice();e._handlers=[],t.forEach((function(t){t.done||("RESOLVED"===e._state&amp;&amp;t.onfulfilled&amp;&amp;t.onfulfilled(e._value),"REJECTED"===e._state&amp;&amp;t.onrejected&amp;&amp;t.onrejected(e._value),t.done=!0)}))}};try{t(this._resolve,this._reject)}catch(t){this._reject(t)}}return t.resolve=function(e){return new t((function(t){t(e)}))},t.reject=function(e){return new t((function(t,r){r(e)}))},t.all=function(e){return new t((function(r,i){if(Array.isArray(e))if(0!==e.length){var n=e.length,o=[];e.forEach((function(e,a){t.resolve(e).then((function(t){o[a]=t,0===(n-=1)&amp;&amp;r(o)})).then(null,i)}))}else r([]);else i(new TypeError("Promise.all requires an array as input."))}))},t.prototype.then=function(e,r){var i=this;return new t((function(t,n){i._attachHandler({done:!1,onfulfilled:function(r){if(e)try{return void t(e(r))}catch(t){return void n(t)}else t(r)},onrejected:function(e){if(r)try{return void t(r(e))}catch(t){return void n(t)}else n(e)}})}))},t.prototype.catch=function(t){return this.then((function(t){return t}),t)},t.prototype.finally=function(e){var r=this;return new t((function(t,i){var n,o;return r.then((function(t){o=!1,n=t,e&amp;&amp;e()}),(function(t){o=!0,n=t,e&amp;&amp;e()})).then((function(){o?i(n):t(n)}))}))},t.prototype.toString=function(){return"[object SyncPromise]"},t}(),K=function(){function t(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._contexts={}}return t.clone=function(e){var r=new t;return e&amp;&amp;(r._breadcrumbs=k(e._breadcrumbs),r._tags=w({},e._tags),r._extra=w({},e._extra),r._contexts=w({},e._contexts),r._user=e._user,r._level=e._level,r._span=e._span,r._session=e._session,r._transactionName=e._transactionName,r._fingerprint=e._fingerprint,r._eventProcessors=k(e._eventProcessors),r._requestSession=e._requestSession),r},t.prototype.addScopeListener=function(t){this._scopeListeners.push(t)},t.prototype.addEventProcessor=function(t){return this._eventProcessors.push(t),this},t.prototype.setUser=function(t){return this._user=t||{},this._session&amp;&amp;this._session.update({user:t}),this._notifyScopeListeners(),this},t.prototype.getUser=function(){return this._user},t.prototype.getRequestSession=function(){return this._requestSession},t.prototype.setRequestSession=function(t){return this._requestSession=t,this},t.prototype.setTags=function(t){return this._tags=w(w({},this._tags),t),this._notifyScopeListeners(),this},t.prototype.setTag=function(t,e){var r;return this._tags=w(w({},this._tags),((r={})[t]=e,r)),this._notifyScopeListeners(),this},t.prototype.setExtras=function(t){return this._extra=w(w({},this._extra),t),this._notifyScopeListeners(),this},t.prototype.setExtra=function(t,e){var r;return this._extra=w(w({},this._extra),((r={})[t]=e,r)),this._notifyScopeListeners(),this},t.prototype.setFingerprint=function(t){return this._fingerprint=t,this._notifyScopeListeners(),this},t.prototype.setLevel=function(t){return this._level=t,this._notifyScopeListeners(),this},t.prototype.setTransactionName=function(t){return this._transactionName=t,this._notifyScopeListeners(),this},t.prototype.setTransaction=function(t){return this.setTransactionName(t)},t.prototype.setContext=function(t,e){var r;return null===e?delete this._contexts[t]:this._contexts=w(w({},this._contexts),((r={})[t]=e,r)),this._notifyScopeListeners(),this},t.prototype.setSpan=function(t){return this._span=t,this._notifyScopeListeners(),this},t.prototype.getSpan=function(){return this._span},t.prototype.getTransaction=function(){var t,e,r,i,n=this.getSpan();return(null===(t=n)||void 0===t?void 0:t.transaction)?null===(e=n)||void 0===e?void 0:e.transaction:(null===(i=null===(r=n)||void 0===r?void 0:r.spanRecorder)||void 0===i?void 0:i.spans[0])?n.spanRecorder.spans[0]:void 0},t.prototype.setSession=function(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this},t.prototype.getSession=function(){return this._session},t.prototype.update=function(e){if(!e)return this;if("function"==typeof e){var r=e(this);return r instanceof t?r:this}return e instanceof t?(this._tags=w(w({},this._tags),e._tags),this._extra=w(w({},this._extra),e._extra),this._contexts=w(w({},this._contexts),e._contexts),e._user&amp;&amp;Object.keys(e._user).length&amp;&amp;(this._user=e._user),e._level&amp;&amp;(this._level=e._level),e._fingerprint&amp;&amp;(this._fingerprint=e._fingerprint),e._requestSession&amp;&amp;(this._requestSession=e._requestSession)):G(e)&amp;&amp;(e=e,this._tags=w(w({},this._tags),e.tags),this._extra=w(w({},this._extra),e.extra),this._contexts=w(w({},this._contexts),e.contexts),e.user&amp;&amp;(this._user=e.user),e.level&amp;&amp;(this._level=e.level),e.fingerprint&amp;&amp;(this._fingerprint=e.fingerprint),e.requestSession&amp;&amp;(this._requestSession=e.requestSession)),this},t.prototype.clear=function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this},t.prototype.addBreadcrumb=function(t,e){var r="number"==typeof e?Math.min(e,100):100;if(r&lt;=0)return this;var i=w({timestamp:(0,D.yW)()},t);return this._breadcrumbs=k(this._breadcrumbs,[i]).slice(-r),this._notifyScopeListeners(),this},t.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},t.prototype.applyToEvent=function(t,e){var r;if(this._extra&amp;&amp;Object.keys(this._extra).length&amp;&amp;(t.extra=w(w({},this._extra),t.extra)),this._tags&amp;&amp;Object.keys(this._tags).length&amp;&amp;(t.tags=w(w({},this._tags),t.tags)),this._user&amp;&amp;Object.keys(this._user).length&amp;&amp;(t.user=w(w({},this._user),t.user)),this._contexts&amp;&amp;Object.keys(this._contexts).length&amp;&amp;(t.contexts=w(w({},this._contexts),t.contexts)),this._level&amp;&amp;(t.level=this._level),this._transactionName&amp;&amp;(t.transaction=this._transactionName),this._span){t.contexts=w({trace:this._span.getTraceContext()},t.contexts);var i=null===(r=this._span.transaction)||void 0===r?void 0:r.name;i&amp;&amp;(t.tags=w({transaction:i},t.tags))}return this._applyFingerprint(t),t.breadcrumbs=k(t.breadcrumbs||[],this._breadcrumbs),t.breadcrumbs=t.breadcrumbs.length&gt;0?t.breadcrumbs:void 0,this._notifyEventProcessors(k(J(),this._eventProcessors),t,e)},t.prototype._notifyEventProcessors=function(t,e,r,i){var n=this;return void 0===i&amp;&amp;(i=0),new Y((function(o,a){var s=t[i];if(null===e||"function"!=typeof s)o(e);else{var l=s(w({},e),r);X(l)?l.then((function(e){return n._notifyEventProcessors(t,e,r,i+1).then(o)})).then(null,a):n._notifyEventProcessors(t,l,r,i+1).then(o).then(null,a)}}))},t.prototype._notifyScopeListeners=function(){var t=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((function(e){e(t)})),this._notifyingListeners=!1)},t.prototype._applyFingerprint=function(t){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],this._fingerprint&amp;&amp;(t.fingerprint=t.fingerprint.concat(this._fingerprint)),t.fingerprint&amp;&amp;!t.fingerprint.length&amp;&amp;delete t.fingerprint},t}();function J(){var t=(0,T.R)();return t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.globalEventProcessors=t.__SENTRY__.globalEventProcessors||[],t.__SENTRY__.globalEventProcessors}function Q(t){J().push(t)}function tt(t,e){try{for(var r=t,i=[],n=0,o=0,a=" &gt; ".length,s=void 0;r&amp;&amp;n++&lt;5&amp;&amp;!("html"===(s=et(r,e))||n&gt;1&amp;&amp;o+i.length*a+s.length&gt;=80);)i.push(s),o+=s.length,r=r.parentNode;return i.reverse().join(" &gt; ")}catch(t){return"&lt;unknown&gt;"}}function et(t,e){var r,i,n,o,a,s,l,u=t,c=[];if(!u||!u.tagName)return"";c.push(u.tagName.toLowerCase());var p=(null===(r=e)||void 0===r?void 0:r.length)?e.filter((function(t){return u.getAttribute(t)})).map((function(t){return[t,u.getAttribute(t)]})):null;if(null===(i=p)||void 0===i?void 0:i.length)p.forEach((function(t){c.push("["+t[0]+'="'+t[1]+'"]')}));else if(u.id&amp;&amp;c.push("#"+u.id),(n=u.className)&amp;&amp;q(n))for(o=n.split(/\s+/),l=0;l&lt;o.length;l++)c.push("."+o[l]);var h=["type","name","title","alt"];for(l=0;l&lt;h.length;l++)a=h[l],(s=u.getAttribute(a))&amp;&amp;c.push("["+a+'="'+s+'"]');return c.join("")}var rt=function(){function t(){this._hasWeakSet="function"==typeof WeakSet,this._inner=this._hasWeakSet?new WeakSet:[]}return t.prototype.memoize=function(t){if(this._hasWeakSet)return!!this._inner.has(t)||(this._inner.add(t),!1);for(var e=0;e&lt;this._inner.length;e++){if(this._inner[e]===t)return!0}return this._inner.push(t),!1},t.prototype.unmemoize=function(t){if(this._hasWeakSet)this._inner.delete(t);else for(var e=0;e&lt;this._inner.length;e++)if(this._inner[e]===t){this._inner.splice(e,1);break}},t}(),it="&lt;anonymous&gt;";function nt(t){try{return t&amp;&amp;"function"==typeof t&amp;&amp;t.name||it}catch(t){return it}}function ot(t,e){return void 0===e&amp;&amp;(e=0),"string"!=typeof t||0===e||t.length&lt;=e?t:t.substr(0,e)+"..."}function at(t,e){if(!Array.isArray(t))return"";for(var r=[],i=0;i&lt;t.length;i++){var n=t[i];try{r.push(String(n))}catch(t){r.push("[value cannot be serialized]")}}return r.join(e)}function st(t,e){return!!q(t)&amp;&amp;(r=e,"[object RegExp]"===Object.prototype.toString.call(r)?e.test(t):"string"==typeof e&amp;&amp;-1!==t.indexOf(e));var r}function lt(t,e,r){if(e in t){var i=t[e],n=r(i);if("function"==typeof n)try{n.prototype=n.prototype||{},Object.defineProperties(n,{__sentry_original__:{enumerable:!1,value:i}})}catch(t){}t[e]=n}}function ut(t){if(U(t)){var e=t,r={message:e.message,name:e.name,stack:e.stack};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&amp;&amp;(r[i]=e[i]);return r}if(H(t)){var n=t,o={};o.type=n.type;try{o.target=Z(n.target)?tt(n.target):Object.prototype.toString.call(n.target)}catch(t){o.target="&lt;unknown&gt;"}try{o.currentTarget=Z(n.currentTarget)?tt(n.currentTarget):Object.prototype.toString.call(n.currentTarget)}catch(t){o.currentTarget="&lt;unknown&gt;"}for(var a in"undefined"!=typeof CustomEvent&amp;&amp;$(t,CustomEvent)&amp;&amp;(o.detail=n.detail),n)Object.prototype.hasOwnProperty.call(n,a)&amp;&amp;(o[a]=n[a]);return o}return t}function ct(t){return function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(t))}function pt(t,e,r){void 0===e&amp;&amp;(e=3),void 0===r&amp;&amp;(r=102400);var i=ft(t,e);return ct(i)&gt;r?pt(t,e-1,r):i}function ht(t,e){return"domain"===e&amp;&amp;t&amp;&amp;"object"==typeof t&amp;&amp;t._events?"[Domain]":"domainEmitter"===e?"[DomainEmitter]":void 0!==r.g&amp;&amp;t===r.g?"[Global]":"undefined"!=typeof window&amp;&amp;t===window?"[Window]":"undefined"!=typeof document&amp;&amp;t===document?"[Document]":G(i=t)&amp;&amp;"nativeEvent"in i&amp;&amp;"preventDefault"in i&amp;&amp;"stopPropagation"in i?"[SyntheticEvent]":"number"==typeof t&amp;&amp;t!=t?"[NaN]":void 0===t?"[undefined]":"function"==typeof t?"[Function: "+nt(t)+"]":"symbol"==typeof t?"["+String(t)+"]":"bigint"==typeof t?"[BigInt: "+String(t)+"]":t;var i}function dt(t,e,r,i){if(void 0===r&amp;&amp;(r=1/0),void 0===i&amp;&amp;(i=new rt),0===r)return function(t){var e=Object.prototype.toString.call(t);if("string"==typeof t)return t;if("[object Object]"===e)return"[Object]";if("[object Array]"===e)return"[Array]";var r=ht(t);return W(r)?r:e}(e);if(null!=e&amp;&amp;"function"==typeof e.toJSON)return e.toJSON();var n=ht(e,t);if(W(n))return n;var o=ut(e),a=Array.isArray(e)?[]:{};if(i.memoize(e))return"[Circular ~]";for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&amp;&amp;(a[s]=dt(s,o[s],r-1,i));return i.unmemoize(e),a}function ft(t,e){try{return JSON.parse(JSON.stringify(t,(function(t,r){return dt(t,r,e)})))}catch(t){return"**non-serializable**"}}function mt(t,e){void 0===e&amp;&amp;(e=40);var r=Object.keys(ut(t));if(r.sort(),!r.length)return"[object has no keys]";if(r[0].length&gt;=e)return ot(r[0],e);for(var i=r.length;i&gt;0;i--){var n=r.slice(0,i).join(", ");if(!(n.length&gt;e))return i===r.length?n:ot(n,e)}return""}function yt(t){var e,r;if(G(t)){var i=t,n={};try{for(var o=S(Object.keys(i)),a=o.next();!a.done;a=o.next()){var s=a.value;void 0!==i[s]&amp;&amp;(n[s]=yt(i[s]))}}catch(t){e={error:t}}finally{try{a&amp;&amp;!a.done&amp;&amp;(r=o.return)&amp;&amp;r.call(o)}finally{if(e)throw e.error}}return n}return Array.isArray(t)?t.map(yt):t}var gt=function(){function t(t){this.errors=0,this.sid=A(),this.duration=0,this.status=x.Ok,this.init=!0,this.ignoreDuration=!1;var e=(0,D.ph)();this.timestamp=e,this.started=e,t&amp;&amp;this.update(t)}return t.prototype.update=function(t){if(void 0===t&amp;&amp;(t={}),t.user&amp;&amp;(!this.ipAddress&amp;&amp;t.user.ip_address&amp;&amp;(this.ipAddress=t.user.ip_address),this.did||t.did||(this.did=t.user.id||t.user.email||t.user.username)),this.timestamp=t.timestamp||(0,D.ph)(),t.ignoreDuration&amp;&amp;(this.ignoreDuration=t.ignoreDuration),t.sid&amp;&amp;(this.sid=32===t.sid.length?t.sid:A()),void 0!==t.init&amp;&amp;(this.init=t.init),!this.did&amp;&amp;t.did&amp;&amp;(this.did=""+t.did),"number"==typeof t.started&amp;&amp;(this.started=t.started),this.ignoreDuration)this.duration=void 0;else if("number"==typeof t.duration)this.duration=t.duration;else{var e=this.timestamp-this.started;this.duration=e&gt;=0?e:0}t.release&amp;&amp;(this.release=t.release),t.environment&amp;&amp;(this.environment=t.environment),!this.ipAddress&amp;&amp;t.ipAddress&amp;&amp;(this.ipAddress=t.ipAddress),!this.userAgent&amp;&amp;t.userAgent&amp;&amp;(this.userAgent=t.userAgent),"number"==typeof t.errors&amp;&amp;(this.errors=t.errors),t.status&amp;&amp;(this.status=t.status)},t.prototype.close=function(t){t?this.update({status:t}):this.status===x.Ok?this.update({status:x.Exited}):this.update()},t.prototype.toJSON=function(){return yt({sid:""+this.sid,init:this.init,started:new Date(1e3*this.started).toISOString(),timestamp:new Date(1e3*this.timestamp).toISOString(),status:this.status,errors:this.errors,did:"number"==typeof this.did||"string"==typeof this.did?""+this.did:void 0,duration:this.duration,attrs:yt({release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent})})},t}(),vt=function(){function t(t,e,r){void 0===e&amp;&amp;(e=new K),void 0===r&amp;&amp;(r=4),this._version=r,this._stack=[{}],this.getStackTop().scope=e,t&amp;&amp;this.bindClient(t)}return t.prototype.isOlderThan=function(t){return this._version&lt;t},t.prototype.bindClient=function(t){this.getStackTop().client=t,t&amp;&amp;t.setupIntegrations&amp;&amp;t.setupIntegrations()},t.prototype.pushScope=function(){var t=K.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:t}),t},t.prototype.popScope=function(){return!(this.getStack().length&lt;=1)&amp;&amp;!!this.getStack().pop()},t.prototype.withScope=function(t){var e=this.pushScope();try{t(e)}finally{this.popScope()}},t.prototype.getClient=function(){return this.getStackTop().client},t.prototype.getScope=function(){return this.getStackTop().scope},t.prototype.getStack=function(){return this._stack},t.prototype.getStackTop=function(){return this._stack[this._stack.length-1]},t.prototype.captureException=function(t,e){var r=this._lastEventId=A(),i=e;if(!e){var n=void 0;try{throw new Error("Sentry syntheticException")}catch(t){n=t}i={originalException:t,syntheticException:n}}return this._invokeClient("captureException",t,w(w({},i),{event_id:r})),r},t.prototype.captureMessage=function(t,e,r){var i=this._lastEventId=A(),n=r;if(!r){var o=void 0;try{throw new Error(t)}catch(t){o=t}n={originalException:t,syntheticException:o}}return this._invokeClient("captureMessage",t,e,w(w({},n),{event_id:i})),i},t.prototype.captureEvent=function(t,e){var r=A();return"transaction"!==t.type&amp;&amp;(this._lastEventId=r),this._invokeClient("captureEvent",t,w(w({},e),{event_id:r})),r},t.prototype.lastEventId=function(){return this._lastEventId},t.prototype.addBreadcrumb=function(t,e){var r=this.getStackTop(),i=r.scope,n=r.client;if(i&amp;&amp;n){var o=n.getOptions&amp;&amp;n.getOptions()||{},a=o.beforeBreadcrumb,s=void 0===a?null:a,l=o.maxBreadcrumbs,u=void 0===l?100:l;if(!(u&lt;=0)){var c=(0,D.yW)(),p=w({timestamp:c},t),h=s?O((function(){return s(p,e)})):p;null!==h&amp;&amp;i.addBreadcrumb(h,u)}}},t.prototype.setUser=function(t){var e=this.getScope();e&amp;&amp;e.setUser(t)},t.prototype.setTags=function(t){var e=this.getScope();e&amp;&amp;e.setTags(t)},t.prototype.setExtras=function(t){var e=this.getScope();e&amp;&amp;e.setExtras(t)},t.prototype.setTag=function(t,e){var r=this.getScope();r&amp;&amp;r.setTag(t,e)},t.prototype.setExtra=function(t,e){var r=this.getScope();r&amp;&amp;r.setExtra(t,e)},t.prototype.setContext=function(t,e){var r=this.getScope();r&amp;&amp;r.setContext(t,e)},t.prototype.configureScope=function(t){var e=this.getStackTop(),r=e.scope,i=e.client;r&amp;&amp;i&amp;&amp;t(r)},t.prototype.run=function(t){var e=xt(this);try{t(this)}finally{xt(e)}},t.prototype.getIntegration=function(t){var e=this.getClient();if(!e)return null;try{return e.getIntegration(t)}catch(e){return F.warn("Cannot retrieve integration "+t.id+" from the current Hub"),null}},t.prototype.startSpan=function(t){return this._callExtensionMethod("startSpan",t)},t.prototype.startTransaction=function(t,e){return this._callExtensionMethod("startTransaction",t,e)},t.prototype.traceHeaders=function(){return this._callExtensionMethod("traceHeaders")},t.prototype.captureSession=function(t){if(void 0===t&amp;&amp;(t=!1),t)return this.endSession();this._sendSessionUpdate()},t.prototype.endSession=function(){var t,e,r,i,n;null===(r=null===(e=null===(t=this.getStackTop())||void 0===t?void 0:t.scope)||void 0===e?void 0:e.getSession())||void 0===r||r.close(),this._sendSessionUpdate(),null===(n=null===(i=this.getStackTop())||void 0===i?void 0:i.scope)||void 0===n||n.setSession()},t.prototype.startSession=function(t){var e=this.getStackTop(),r=e.scope,i=e.client,n=i&amp;&amp;i.getOptions()||{},o=n.release,a=n.environment,s=((0,T.R)().navigator||{}).userAgent,l=new gt(w(w(w({release:o,environment:a},r&amp;&amp;{user:r.getUser()}),s&amp;&amp;{userAgent:s}),t));if(r){var u=r.getSession&amp;&amp;r.getSession();u&amp;&amp;u.status===x.Ok&amp;&amp;u.update({status:x.Exited}),this.endSession(),r.setSession(l)}return l},t.prototype._sendSessionUpdate=function(){var t=this.getStackTop(),e=t.scope,r=t.client;if(e){var i=e.getSession&amp;&amp;e.getSession();i&amp;&amp;r&amp;&amp;r.captureSession&amp;&amp;r.captureSession(i)}},t.prototype._invokeClient=function(t){for(var e,r=[],i=1;i&lt;arguments.length;i++)r[i-1]=arguments[i];var n=this.getStackTop(),o=n.scope,a=n.client;a&amp;&amp;a[t]&amp;&amp;(e=a)[t].apply(e,k(r,[o]))},t.prototype._callExtensionMethod=function(t){for(var e=[],r=1;r&lt;arguments.length;r++)e[r-1]=arguments[r];var i=_t(),n=i.__SENTRY__;if(n&amp;&amp;n.extensions&amp;&amp;"function"==typeof n.extensions[t])return n.extensions[t].apply(this,e);F.warn("Extension method "+t+" couldn't be found, doing nothing.")},t}();function _t(){var t=(0,T.R)();return t.__SENTRY__=t.__SENTRY__||{extensions:{},hub:void 0},t}function xt(t){var e=_t(),r=St(e);return Et(e,t),r}function bt(){var t=_t();return wt(t)&amp;&amp;!St(t).isOlderThan(4)||Et(t,new vt),(0,j.KV)()?function(t){var e,r,i;try{var n=null===(i=null===(r=null===(e=_t().__SENTRY__)||void 0===e?void 0:e.extensions)||void 0===r?void 0:r.domain)||void 0===i?void 0:i.active;if(!n)return St(t);if(!wt(n)||St(n).isOlderThan(4)){var o=St(t).getStackTop();Et(n,new vt(o.client,K.clone(o.scope)))}return St(n)}catch(e){return St(t)}}(t):St(t)}function wt(t){return!!(t&amp;&amp;t.__SENTRY__&amp;&amp;t.__SENTRY__.hub)}function St(t){return t&amp;&amp;t.__SENTRY__&amp;&amp;t.__SENTRY__.hub||(t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.hub=new vt),t.__SENTRY__.hub}function Et(t,e){return!!t&amp;&amp;(t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.hub=e,!0)}var kt,Tt=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],At=function(){function t(e){void 0===e&amp;&amp;(e={}),this._options=e,this.name=t.id}return t.prototype.setupOnce=function(){Q((function(e){var r=bt();if(!r)return e;var i=r.getIntegration(t);if(i){var n=r.getClient(),o=n?n.getOptions():{},a="function"==typeof i._mergeOptions?i._mergeOptions(o):{};return"function"!=typeof i._shouldDropEvent?e:i._shouldDropEvent(e,a)?null:e}return e}))},t.prototype._shouldDropEvent=function(t,e){return this._isSentryError(t,e)?(F.warn("Event dropped due to being internal Sentry Error.\nEvent: "+I(t)),!0):this._isIgnoredError(t,e)?(F.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+I(t)),!0):this._isDeniedUrl(t,e)?(F.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: "+I(t)+".\nUrl: "+this._getEventFilterUrl(t)),!0):!this._isAllowedUrl(t,e)&amp;&amp;(F.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: "+I(t)+".\nUrl: "+this._getEventFilterUrl(t)),!0)},t.prototype._isSentryError=function(t,e){if(!e.ignoreInternal)return!1;try{return t&amp;&amp;t.exception&amp;&amp;t.exception.values&amp;&amp;t.exception.values[0]&amp;&amp;"SentryError"===t.exception.values[0].type||!1}catch(t){return!1}},t.prototype._isIgnoredError=function(t,e){return!(!e.ignoreErrors||!e.ignoreErrors.length)&amp;&amp;this._getPossibleEventMessages(t).some((function(t){return e.ignoreErrors.some((function(e){return st(t,e)}))}))},t.prototype._isDeniedUrl=function(t,e){if(!e.denyUrls||!e.denyUrls.length)return!1;var r=this._getEventFilterUrl(t);return!!r&amp;&amp;e.denyUrls.some((function(t){return st(r,t)}))},t.prototype._isAllowedUrl=function(t,e){if(!e.allowUrls||!e.allowUrls.length)return!0;var r=this._getEventFilterUrl(t);return!r||e.allowUrls.some((function(t){return st(r,t)}))},t.prototype._mergeOptions=function(t){return void 0===t&amp;&amp;(t={}),{allowUrls:k(this._options.whitelistUrls||[],this._options.allowUrls||[],t.whitelistUrls||[],t.allowUrls||[]),denyUrls:k(this._options.blacklistUrls||[],this._options.denyUrls||[],t.blacklistUrls||[],t.denyUrls||[]),ignoreErrors:k(this._options.ignoreErrors||[],t.ignoreErrors||[],Tt),ignoreInternal:void 0===this._options.ignoreInternal||this._options.ignoreInternal}},t.prototype._getPossibleEventMessages=function(t){if(t.message)return[t.message];if(t.exception)try{var e=t.exception.values&amp;&amp;t.exception.values[0]||{},r=e.type,i=void 0===r?"":r,n=e.value,o=void 0===n?"":n;return[""+o,i+": "+o]}catch(e){return F.error("Cannot extract message for event "+I(t)),[]}return[]},t.prototype._getLastValidUrl=function(t){var e,r;void 0===t&amp;&amp;(t=[]);for(var i=t.length-1;i&gt;=0;i--){var n=t[i];if("&lt;anonymous&gt;"!==(null===(e=n)||void 0===e?void 0:e.filename)&amp;&amp;"[native code]"!==(null===(r=n)||void 0===r?void 0:r.filename))return n.filename||null}return null},t.prototype._getEventFilterUrl=function(t){try{if(t.stacktrace){var e=t.stacktrace.frames;return this._getLastValidUrl(e)}if(t.exception){var r=t.exception.values&amp;&amp;t.exception.values[0].stacktrace&amp;&amp;t.exception.values[0].stacktrace.frames;return this._getLastValidUrl(r)}return null}catch(e){return F.error("Cannot extract url for event "+I(t)),null}},t.id="InboundFilters",t}(),Ct=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){kt=Function.prototype.toString,Function.prototype.toString=function(){for(var t=[],e=0;e&lt;arguments.length;e++)t[e]=arguments[e];var r=this.__sentry_original__||this;return kt.apply(r,t)}},t.id="FunctionToString",t}();function It(){if(!("fetch"in(0,T.R)()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(t){return!1}}function Pt(t){return t&amp;&amp;/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function Mt(){if(!It())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(t){return!1}}var zt,Dt=(0,T.R)(),Lt={},Rt={};function Ot(t){if(!Rt[t])switch(Rt[t]=!0,t){case"console":!function(){if(!("console"in Dt))return;["debug","info","warn","error","log","assert"].forEach((function(t){t in Dt.console&amp;&amp;lt(Dt.console,t,(function(e){return function(){for(var r=[],i=0;i&lt;arguments.length;i++)r[i]=arguments[i];Ft("console",{args:r,level:t}),e&amp;&amp;Function.prototype.apply.call(e,Dt.console,r)}}))}))}();break;case"dom":!function(){if(!("document"in Dt))return;var t=Ft.bind(null,"dom"),e=qt(t,!0);Dt.document.addEventListener("click",e,!1),Dt.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach((function(e){var r=Dt[e]&amp;&amp;Dt[e].prototype;r&amp;&amp;r.hasOwnProperty&amp;&amp;r.hasOwnProperty("addEventListener")&amp;&amp;(lt(r,"addEventListener",(function(e){return function(r,i,n){if("click"===r||"keypress"==r)try{var o=this,a=o.__sentry_instrumentation_handlers__=o.__sentry_instrumentation_handlers__||{},s=a[r]=a[r]||{refCount:0};if(!s.handler){var l=qt(t);s.handler=l,e.call(this,r,l,n)}s.refCount+=1}catch(t){}return e.call(this,r,i,n)}})),lt(r,"removeEventListener",(function(t){return function(e,r,i){if("click"===e||"keypress"==e)try{var n=this,o=n.__sentry_instrumentation_handlers__||{},a=o[e];a&amp;&amp;(a.refCount-=1,a.refCount&lt;=0&amp;&amp;(t.call(this,e,a.handler,i),a.handler=void 0,delete o[e]),0===Object.keys(o).length&amp;&amp;delete n.__sentry_instrumentation_handlers__)}catch(t){}return t.call(this,e,r,i)}})))}))}();break;case"xhr":!function(){if(!("XMLHttpRequest"in Dt))return;var t=[],e=[],r=XMLHttpRequest.prototype;lt(r,"open",(function(r){return function(){for(var i=[],n=0;n&lt;arguments.length;n++)i[n]=arguments[n];var o=this,a=i[1];o.__sentry_xhr__={method:q(i[0])?i[0].toUpperCase():i[0],url:i[1]},q(a)&amp;&amp;"POST"===o.__sentry_xhr__.method&amp;&amp;a.match(/sentry_key/)&amp;&amp;(o.__sentry_own_request__=!0);var s=function(){if(4===o.readyState){try{o.__sentry_xhr__&amp;&amp;(o.__sentry_xhr__.status_code=o.status)}catch(t){}try{var r=t.indexOf(o);if(-1!==r){t.splice(r);var n=e.splice(r)[0];o.__sentry_xhr__&amp;&amp;void 0!==n[0]&amp;&amp;(o.__sentry_xhr__.body=n[0])}}catch(t){}Ft("xhr",{args:i,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:o})}};return"onreadystatechange"in o&amp;&amp;"function"==typeof o.onreadystatechange?lt(o,"onreadystatechange",(function(t){return function(){for(var e=[],r=0;r&lt;arguments.length;r++)e[r]=arguments[r];return s(),t.apply(o,e)}})):o.addEventListener("readystatechange",s),r.apply(o,i)}})),lt(r,"send",(function(r){return function(){for(var i=[],n=0;n&lt;arguments.length;n++)i[n]=arguments[n];return t.push(this),e.push(i),Ft("xhr",{args:i,startTimestamp:Date.now(),xhr:this}),r.apply(this,i)}}))}();break;case"fetch":!function(){if(!function(){if(!It())return!1;var t=(0,T.R)();if(Pt(t.fetch))return!0;var e=!1,r=t.document;if(r&amp;&amp;"function"==typeof r.createElement)try{var i=r.createElement("iframe");i.hidden=!0,r.head.appendChild(i),i.contentWindow&amp;&amp;i.contentWindow.fetch&amp;&amp;(e=Pt(i.contentWindow.fetch)),r.head.removeChild(i)}catch(t){F.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return e}())return;lt(Dt,"fetch",(function(t){return function(){for(var e=[],r=0;r&lt;arguments.length;r++)e[r]=arguments[r];var i={args:e,fetchData:{method:jt(e),url:Ut(e)},startTimestamp:Date.now()};return Ft("fetch",w({},i)),t.apply(Dt,e).then((function(t){return Ft("fetch",w(w({},i),{endTimestamp:Date.now(),response:t})),t}),(function(t){throw Ft("fetch",w(w({},i),{endTimestamp:Date.now(),error:t})),t}))}}))}();break;case"history":!function(){if(!function(){var t=(0,T.R)(),e=t.chrome,r=e&amp;&amp;e.app&amp;&amp;e.app.runtime,i="history"in t&amp;&amp;!!t.history.pushState&amp;&amp;!!t.history.replaceState;return!r&amp;&amp;i}())return;var t=Dt.onpopstate;function e(t){return function(){for(var e=[],r=0;r&lt;arguments.length;r++)e[r]=arguments[r];var i=e.length&gt;2?e[2]:void 0;if(i){var n=zt,o=String(i);zt=o,Ft("history",{from:n,to:o})}return t.apply(this,e)}}Dt.onpopstate=function(){for(var e=[],r=0;r&lt;arguments.length;r++)e[r]=arguments[r];var i=Dt.location.href,n=zt;if(zt=i,Ft("history",{from:n,to:i}),t)try{return t.apply(this,e)}catch(t){}},lt(Dt.history,"pushState",e),lt(Dt.history,"replaceState",e)}();break;case"error":Wt=Dt.onerror,Dt.onerror=function(t,e,r,i,n){return Ft("error",{column:i,error:n,line:r,msg:t,url:e}),!!Wt&amp;&amp;Wt.apply(this,arguments)};break;case"unhandledrejection":Gt=Dt.onunhandledrejection,Dt.onunhandledrejection=function(t){return Ft("unhandledrejection",t),!Gt||Gt.apply(this,arguments)};break;default:F.warn("unknown instrumentation type:",t)}}function Bt(t){t&amp;&amp;"string"==typeof t.type&amp;&amp;"function"==typeof t.callback&amp;&amp;(Lt[t.type]=Lt[t.type]||[],Lt[t.type].push(t.callback),Ot(t.type))}function Ft(t,e){var r,i;if(t&amp;&amp;Lt[t])try{for(var n=S(Lt[t]||[]),o=n.next();!o.done;o=n.next()){var a=o.value;try{a(e)}catch(e){F.error("Error while triggering instrumentation handler.\nType: "+t+"\nName: "+nt(a)+"\nError: "+e)}}}catch(t){r={error:t}}finally{try{o&amp;&amp;!o.done&amp;&amp;(i=n.return)&amp;&amp;i.call(n)}finally{if(r)throw r.error}}}function jt(t){return void 0===t&amp;&amp;(t=[]),"Request"in Dt&amp;&amp;$(t[0],Request)&amp;&amp;t[0].method?String(t[0].method).toUpperCase():t[1]&amp;&amp;t[1].method?String(t[1].method).toUpperCase():"GET"}function Ut(t){return void 0===t&amp;&amp;(t=[]),"string"==typeof t[0]?t[0]:"Request"in Dt&amp;&amp;$(t[0],Request)?t[0].url:String(t[0])}var Nt,Vt;function qt(t,e){return void 0===e&amp;&amp;(e=!1),function(r){if(r&amp;&amp;Vt!==r&amp;&amp;!function(t){if("keypress"!==t.type)return!1;try{var e=t.target;if(!e||!e.tagName)return!0;if("INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable)return!1}catch(t){}return!0}(r)){var i="keypress"===r.type?"input":r.type;(void 0===Nt||function(t,e){if(!t)return!0;if(t.type!==e.type)return!0;try{if(t.target!==e.target)return!0}catch(t){}return!1}(Vt,r))&amp;&amp;(t({event:r,name:i,global:e}),Vt=r),clearTimeout(Nt),Nt=Dt.setTimeout((function(){Nt=void 0}),1e3)}}}var Wt=null;var Gt=null;var Ht,Zt="6.16.1";!function(t){t.BeforeSend="before_send",t.EventProcessor="event_processor",t.NetworkError="network_error",t.QueueOverflow="queue_overflow",t.RateLimitBackoff="ratelimit_backoff",t.SampleRate="sample_rate"}(Ht||(Ht={}));var Xt=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){return t.__proto__=e,t}:function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(t,r)||(t[r]=e[r]);return t});var $t=function(t){function e(e){var r=this.constructor,i=t.call(this,e)||this;return i.message=e,i.name=r.prototype.constructor.name,Xt(i,r.prototype),i}return _(e,t),e}(Error),Yt=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/,Kt="Invalid Dsn",Jt=function(){function t(t){"string"==typeof t?this._fromString(t):this._fromComponents(t),this._validate()}return t.prototype.toString=function(t){void 0===t&amp;&amp;(t=!1);var e=this,r=e.host,i=e.path,n=e.pass,o=e.port,a=e.projectId;return e.protocol+"://"+e.publicKey+(t&amp;&amp;n?":"+n:"")+"@"+r+(o?":"+o:"")+"/"+(i?i+"/":i)+a},t.prototype._fromString=function(t){var e=Yt.exec(t);if(!e)throw new $t(Kt);var r=E(e.slice(1),6),i=r[0],n=r[1],o=r[2],a=void 0===o?"":o,s=r[3],l=r[4],u=void 0===l?"":l,c="",p=r[5],h=p.split("/");if(h.length&gt;1&amp;&amp;(c=h.slice(0,-1).join("/"),p=h.pop()),p){var d=p.match(/^\d+/);d&amp;&amp;(p=d[0])}this._fromComponents({host:s,pass:a,path:c,projectId:p,port:u,protocol:i,publicKey:n})},t.prototype._fromComponents=function(t){"user"in t&amp;&amp;!("publicKey"in t)&amp;&amp;(t.publicKey=t.user),this.user=t.publicKey||"",this.protocol=t.protocol,this.publicKey=t.publicKey||"",this.pass=t.pass||"",this.host=t.host,this.port=t.port||"",this.path=t.path||"",this.projectId=t.projectId},t.prototype._validate=function(){var t=this;if(["protocol","publicKey","host","projectId"].forEach((function(e){if(!t[e])throw new $t("Invalid Dsn: "+e+" missing")})),!this.projectId.match(/^\d+$/))throw new $t("Invalid Dsn: Invalid projectId "+this.projectId);if("http"!==this.protocol&amp;&amp;"https"!==this.protocol)throw new $t("Invalid Dsn: Invalid protocol "+this.protocol);if(this.port&amp;&amp;isNaN(parseInt(this.port,10)))throw new $t("Invalid Dsn: Invalid port "+this.port)},t}(),Qt=[];function te(t){return t.reduce((function(t,e){return t.every((function(t){return e.name!==t.name}))&amp;&amp;t.push(e),t}),[])}function ee(t){var e={};return function(t){var e=t.defaultIntegrations&amp;&amp;k(t.defaultIntegrations)||[],r=t.integrations,i=k(te(e));Array.isArray(r)?i=k(i.filter((function(t){return r.every((function(e){return e.name!==t.name}))})),te(r)):"function"==typeof r&amp;&amp;(i=r(i),i=Array.isArray(i)?i:[i]);var n=i.map((function(t){return t.name})),o="Debug";return-1!==n.indexOf(o)&amp;&amp;i.push.apply(i,k(i.splice(n.indexOf(o),1))),i}(t).forEach((function(t){e[t.name]=t,function(t){-1===Qt.indexOf(t.name)&amp;&amp;(t.setupOnce(Q,bt),Qt.push(t.name),F.log("Integration installed: "+t.name))}(t)})),Object.defineProperty(e,"initialized",{value:!0}),e}var re,ie="Not capturing exception because it's already been captured.",ne=function(){function t(t,e){this._integrations={},this._numProcessing=0,this._backend=new t(e),this._options=e,e.dsn&amp;&amp;(this._dsn=new Jt(e.dsn))}return t.prototype.captureException=function(t,e,r){var i=this;if(!z(t)){var n=e&amp;&amp;e.event_id;return this._process(this._getBackend().eventFromException(t,e).then((function(t){return i._captureEvent(t,e,r)})).then((function(t){n=t}))),n}F.log(ie)},t.prototype.captureMessage=function(t,e,r,i){var n=this,o=r&amp;&amp;r.event_id,a=W(t)?this._getBackend().eventFromMessage(String(t),e,r):this._getBackend().eventFromException(t,r);return this._process(a.then((function(t){return n._captureEvent(t,r,i)})).then((function(t){o=t}))),o},t.prototype.captureEvent=function(t,e,r){var i;if(!(null===(i=e)||void 0===i?void 0:i.originalException)||!z(e.originalException)){var n=e&amp;&amp;e.event_id;return this._process(this._captureEvent(t,e,r).then((function(t){n=t}))),n}F.log(ie)},t.prototype.captureSession=function(t){this._isEnabled()?"string"!=typeof t.release?F.warn("Discarded session because of missing or non-string release"):(this._sendSession(t),t.update({init:!1})):F.warn("SDK not enabled, will not capture session.")},t.prototype.getDsn=function(){return this._dsn},t.prototype.getOptions=function(){return this._options},t.prototype.getTransport=function(){return this._getBackend().getTransport()},t.prototype.flush=function(t){var e=this;return this._isClientDoneProcessing(t).then((function(r){return e.getTransport().close(t).then((function(t){return r&amp;&amp;t}))}))},t.prototype.close=function(t){var e=this;return this.flush(t).then((function(t){return e.getOptions().enabled=!1,t}))},t.prototype.setupIntegrations=function(){this._isEnabled()&amp;&amp;!this._integrations.initialized&amp;&amp;(this._integrations=ee(this._options))},t.prototype.getIntegration=function(t){try{return this._integrations[t.id]||null}catch(e){return F.warn("Cannot retrieve integration "+t.id+" from the current Client"),null}},t.prototype._updateSessionFromEvent=function(t,e){var r,i,n=!1,o=!1,a=e.exception&amp;&amp;e.exception.values;if(a){o=!0;try{for(var s=S(a),l=s.next();!l.done;l=s.next()){var u=l.value.mechanism;if(u&amp;&amp;!1===u.handled){n=!0;break}}}catch(t){r={error:t}}finally{try{l&amp;&amp;!l.done&amp;&amp;(i=s.return)&amp;&amp;i.call(s)}finally{if(r)throw r.error}}}var c=t.status===x.Ok;(c&amp;&amp;0===t.errors||c&amp;&amp;n)&amp;&amp;(t.update(w(w({},n&amp;&amp;{status:x.Crashed}),{errors:t.errors||Number(o||n)})),this.captureSession(t))},t.prototype._sendSession=function(t){this._getBackend().sendSession(t)},t.prototype._isClientDoneProcessing=function(t){var e=this;return new Y((function(r){var i=0,n=setInterval((function(){0==e._numProcessing?(clearInterval(n),r(!0)):(i+=1,t&amp;&amp;i&gt;=t&amp;&amp;(clearInterval(n),r(!1)))}),1)}))},t.prototype._getBackend=function(){return this._backend},t.prototype._isEnabled=function(){return!1!==this.getOptions().enabled&amp;&amp;void 0!==this._dsn},t.prototype._prepareEvent=function(t,e,r){var i=this,n=this.getOptions().normalizeDepth,o=void 0===n?3:n,a=w(w({},t),{event_id:t.event_id||(r&amp;&amp;r.event_id?r.event_id:A()),timestamp:t.timestamp||(0,D.yW)()});this._applyClientOptions(a),this._applyIntegrationsMetadata(a);var s=e;r&amp;&amp;r.captureContext&amp;&amp;(s=K.clone(s).update(r.captureContext));var l=Y.resolve(a);return s&amp;&amp;(l=s.applyToEvent(a,r)),l.then((function(t){return"number"==typeof o&amp;&amp;o&gt;0?i._normalizeEvent(t,o):t}))},t.prototype._normalizeEvent=function(t,e){if(!t)return null;var r=w(w(w(w(w({},t),t.breadcrumbs&amp;&amp;{breadcrumbs:t.breadcrumbs.map((function(t){return w(w({},t),t.data&amp;&amp;{data:ft(t.data,e)})}))}),t.user&amp;&amp;{user:ft(t.user,e)}),t.contexts&amp;&amp;{contexts:ft(t.contexts,e)}),t.extra&amp;&amp;{extra:ft(t.extra,e)});t.contexts&amp;&amp;t.contexts.trace&amp;&amp;(r.contexts.trace=t.contexts.trace);var i=this.getOptions()._experiments;return(void 0===i?{}:i).ensureNoCircularStructures?ft(r):r},t.prototype._applyClientOptions=function(t){var e=this.getOptions(),r=e.environment,i=e.release,n=e.dist,o=e.maxValueLength,a=void 0===o?250:o;"environment"in t||(t.environment="environment"in e?r:"production"),void 0===t.release&amp;&amp;void 0!==i&amp;&amp;(t.release=i),void 0===t.dist&amp;&amp;void 0!==n&amp;&amp;(t.dist=n),t.message&amp;&amp;(t.message=ot(t.message,a));var s=t.exception&amp;&amp;t.exception.values&amp;&amp;t.exception.values[0];s&amp;&amp;s.value&amp;&amp;(s.value=ot(s.value,a));var l=t.request;l&amp;&amp;l.url&amp;&amp;(l.url=ot(l.url,a))},t.prototype._applyIntegrationsMetadata=function(t){var e=Object.keys(this._integrations);e.length&gt;0&amp;&amp;(t.sdk=t.sdk||{},t.sdk.integrations=k(t.sdk.integrations||[],e))},t.prototype._sendEvent=function(t){this._getBackend().sendEvent(t)},t.prototype._captureEvent=function(t,e,r){return this._processEvent(t,e,r).then((function(t){return t.event_id}),(function(t){F.error(t)}))},t.prototype._processEvent=function(t,e,r){var i,n,o=this,a=this.getOptions(),s=a.beforeSend,l=a.sampleRate,u=this.getTransport();if(!this._isEnabled())return Y.reject(new $t("SDK not enabled, will not capture event."));var c="transaction"===t.type;return!c&amp;&amp;"number"==typeof l&amp;&amp;Math.random()&gt;l?(null===(n=(i=u).recordLostEvent)||void 0===n||n.call(i,Ht.SampleRate,"event"),Y.reject(new $t("Discarding event because it's not included in the random sample (sampling rate = "+l+")"))):this._prepareEvent(t,r,e).then((function(r){var i,n;if(null===r)throw null===(n=(i=u).recordLostEvent)||void 0===n||n.call(i,Ht.EventProcessor,t.type||"event"),new $t("An event processor returned null, will not send event.");if(e&amp;&amp;e.data&amp;&amp;!0===e.data.__sentry__||c||!s)return r;var a=s(r,e);return o._ensureBeforeSendRv(a)})).then((function(e){var i,n;if(null===e)throw null===(n=(i=u).recordLostEvent)||void 0===n||n.call(i,Ht.BeforeSend,t.type||"event"),new $t("`beforeSend` returned `null`, will not send event.");var a=r&amp;&amp;r.getSession&amp;&amp;r.getSession();return!c&amp;&amp;a&amp;&amp;o._updateSessionFromEvent(a,e),o._sendEvent(e),e})).then(null,(function(t){if(t instanceof $t)throw t;throw o.captureException(t,{data:{__sentry__:!0},originalException:t}),new $t("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+t)}))},t.prototype._process=function(t){var e=this;this._numProcessing+=1,t.then((function(t){return e._numProcessing-=1,t}),(function(t){return e._numProcessing-=1,t}))},t.prototype._ensureBeforeSendRv=function(t){var e="`beforeSend` method has to return `null` or a valid event.";if(X(t))return t.then((function(t){if(!G(t)&amp;&amp;null!==t)throw new $t(e);return t}),(function(t){throw new $t("beforeSend rejected with "+t)}));if(!G(t)&amp;&amp;null!==t)throw new $t(e);return t},t}();!function(t){t.Unknown="unknown",t.Skipped="skipped",t.Success="success",t.RateLimit="rate_limit",t.Invalid="invalid",t.Failed="failed"}(re||(re={})),function(t){t.fromHttpCode=function(e){return e&gt;=200&amp;&amp;e&lt;300?t.Success:429===e?t.RateLimit:e&gt;=400&amp;&amp;e&lt;500?t.Invalid:e&gt;=500?t.Failed:t.Unknown}}(re||(re={}));var oe,ae=function(){function t(){}return t.prototype.sendEvent=function(t){return Y.resolve({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:re.Skipped})},t.prototype.close=function(t){return Y.resolve(!0)},t}(),se=function(){function t(t){this._options=t,this._options.dsn||F.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}return t.prototype.eventFromException=function(t,e){throw new $t("Backend has to implement `eventFromException` method")},t.prototype.eventFromMessage=function(t,e,r){throw new $t("Backend has to implement `eventFromMessage` method")},t.prototype.sendEvent=function(t){this._transport.sendEvent(t).then(null,(function(t){F.error("Error while sending event: "+t)}))},t.prototype.sendSession=function(t){this._transport.sendSession?this._transport.sendSession(t).then(null,(function(t){F.error("Error while sending session: "+t)})):F.warn("Dropping session because custom transport doesn't implement sendSession")},t.prototype.getTransport=function(){return this._transport},t.prototype._setupTransport=function(){return new ae},t}();!function(t){t.Fatal="fatal",t.Error="error",t.Warning="warning",t.Log="log",t.Info="info",t.Debug="debug",t.Critical="critical"}(oe||(oe={})),function(t){t.fromString=function(e){switch(e){case"debug":return t.Debug;case"info":return t.Info;case"warn":case"warning":return t.Warning;case"error":return t.Error;case"fatal":return t.Fatal;case"critical":return t.Critical;case"log":default:return t.Log}}}(oe||(oe={}));var le="?",ue=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|&lt;anonymous&gt;|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,ce=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,pe=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,he=/(\S+) line (\d+)(?: &gt; eval line \d+)* &gt; eval/i,de=/\((\S*)(?::(\d+))(?::(\d+))\)/,fe=/Minified React error #\d+;/i;function me(t){var e=null,r=0;t&amp;&amp;("number"==typeof t.framesToPop?r=t.framesToPop:fe.test(t.message)&amp;&amp;(r=1));try{if(e=function(t){if(!t||!t.stacktrace)return null;for(var e,r=t.stacktrace,i=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,n=/ line (\d+), column (\d+)\s*(?:in (?:&lt;anonymous function: ([^&gt;]+)&gt;|([^)]+))\((.*)\))? in (.*):\s*$/i,o=r.split("\n"),a=[],s=0;s&lt;o.length;s+=2){var l=null;(e=i.exec(o[s]))?l={url:e[2],func:e[3],args:[],line:+e[1],column:null}:(e=n.exec(o[s]))&amp;&amp;(l={url:e[6],func:e[3]||e[4],args:e[5]?e[5].split(","):[],line:+e[1],column:+e[2]}),l&amp;&amp;(!l.func&amp;&amp;l.line&amp;&amp;(l.func=le),a.push(l))}if(!a.length)return null;return{message:ve(t),name:t.name,stack:a}}(t))return ge(e,r)}catch(t){}try{if(e=function(t){var e,r;if(!t||!t.stack)return null;for(var i,n,o,a=[],s=t.stack.split("\n"),l=0;l&lt;s.length;++l){if(n=ue.exec(s[l])){var u=n[2]&amp;&amp;0===n[2].indexOf("native");n[2]&amp;&amp;0===n[2].indexOf("eval")&amp;&amp;(i=de.exec(n[2]))&amp;&amp;(n[2]=i[1],n[3]=i[2],n[4]=i[3]);var c=n[2]&amp;&amp;0===n[2].indexOf("address at ")?n[2].substr("address at ".length):n[2],p=n[1]||le;p=(e=E(ye(p,c),2))[0],o={url:c=e[1],func:p,args:u?[n[2]]:[],line:n[3]?+n[3]:null,column:n[4]?+n[4]:null}}else if(n=pe.exec(s[l]))o={url:n[2],func:n[1]||le,args:[],line:+n[3],column:n[4]?+n[4]:null};else{if(!(n=ce.exec(s[l])))continue;n[3]&amp;&amp;n[3].indexOf(" &gt; eval")&gt;-1&amp;&amp;(i=he.exec(n[3]))?(n[1]=n[1]||"eval",n[3]=i[1],n[4]=i[2],n[5]=""):0!==l||n[5]||void 0===t.columnNumber||(a[0].column=t.columnNumber+1);c=n[3],p=n[1]||le;p=(r=E(ye(p,c),2))[0],o={url:c=r[1],func:p,args:n[2]?n[2].split(","):[],line:n[4]?+n[4]:null,column:n[5]?+n[5]:null}}!o.func&amp;&amp;o.line&amp;&amp;(o.func=le),a.push(o)}if(!a.length)return null;return{message:ve(t),name:t.name,stack:a}}(t))return ge(e,r)}catch(t){}return{message:ve(t),name:t&amp;&amp;t.name,stack:[],failed:!0}}var ye=function(t,e){var r=-1!==t.indexOf("safari-extension"),i=-1!==t.indexOf("safari-web-extension");return r||i?[-1!==t.indexOf("@")?t.split("@")[0]:le,r?"safari-extension:"+e:"safari-web-extension:"+e]:[t,e]};function ge(t,e){try{return w(w({},t),{stack:t.stack.slice(e)})}catch(e){return t}}function ve(t){var e=t&amp;&amp;t.message;return e?e.error&amp;&amp;"string"==typeof e.error.message?e.error.message:e:"No error message"}function _e(t){var e=be(t.stack),r={type:t.name,value:t.message};return e&amp;&amp;e.length&amp;&amp;(r.stacktrace={frames:e}),void 0===r.type&amp;&amp;""===r.value&amp;&amp;(r.value="Unrecoverable error caught"),r}function xe(t){return{exception:{values:[_e(t)]}}}function be(t){if(!t||!t.length)return[];var e=t,r=e[0].func||"",i=e[e.length-1].func||"";return-1===r.indexOf("captureMessage")&amp;&amp;-1===r.indexOf("captureException")||(e=e.slice(1)),-1!==i.indexOf("sentryWrapped")&amp;&amp;(e=e.slice(0,-1)),e.slice(0,50).map((function(t){return{colno:null===t.column?void 0:t.column,filename:t.url||e[0].url,function:t.func||"?",in_app:!0,lineno:null===t.line?void 0:t.line}})).reverse()}function we(t,e,r){var i,n;if(void 0===r&amp;&amp;(r={}),N(t)&amp;&amp;t.error)return i=xe(me(t=t.error));if(V(t)||(n=t,"[object DOMException]"===Object.prototype.toString.call(n))){var o=t;if("stack"in t)i=xe(me(t));else{var a=o.name||(V(o)?"DOMError":"DOMException"),s=o.message?a+": "+o.message:a;P(i=Se(s,e,r),s)}return"code"in o&amp;&amp;(i.tags=w(w({},i.tags),{"DOMException.code":""+o.code})),i}return U(t)?i=xe(me(t)):G(t)||H(t)?(M(i=function(t,e,r){var i={exception:{values:[{type:H(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:"Non-Error "+(r?"promise rejection":"exception")+" captured with keys: "+mt(t)}]},extra:{__serialized__:pt(t)}};if(e){var n=be(me(e).stack);i.stacktrace={frames:n}}return i}(t,e,r.rejection),{synthetic:!0}),i):(P(i=Se(t,e,r),""+t,void 0),M(i,{synthetic:!0}),i)}function Se(t,e,r){void 0===r&amp;&amp;(r={});var i={message:t};if(r.attachStacktrace&amp;&amp;e){var n=be(me(e).stack);i.stacktrace={frames:n}}return i}function Ee(t){if(t.metadata&amp;&amp;t.metadata.sdk){var e=t.metadata.sdk;return{name:e.name,version:e.version}}}function ke(t,e){return e?(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name,t.sdk.version=t.sdk.version||e.version,t.sdk.integrations=k(t.sdk.integrations||[],e.integrations||[]),t.sdk.packages=k(t.sdk.packages||[],e.packages||[]),t):t}function Te(t,e){var r=Ee(e),i="aggregates"in t?"sessions":"session";return{body:JSON.stringify(w(w({sent_at:(new Date).toISOString()},r&amp;&amp;{sdk:r}),e.forceEnvelope()&amp;&amp;{dsn:e.getDsn().toString()}))+"\n"+JSON.stringify({type:i})+"\n"+JSON.stringify(t),type:i,url:e.getEnvelopeEndpointWithUrlEncodedAuth()}}function Ae(t,e){var r=Ee(e),i=t.type||"event",n="transaction"===i||e.forceEnvelope(),o=t.debug_meta||{},a=o.transactionSampling,s=function(t,e){var r={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&amp;&amp;e.indexOf(i)&lt;0&amp;&amp;(r[i]=t[i]);if(null!=t&amp;&amp;"function"==typeof Object.getOwnPropertySymbols){var n=0;for(i=Object.getOwnPropertySymbols(t);n&lt;i.length;n++)e.indexOf(i[n])&lt;0&amp;&amp;Object.prototype.propertyIsEnumerable.call(t,i[n])&amp;&amp;(r[i[n]]=t[i[n]])}return r}(o,["transactionSampling"]),l=a||{},u=l.method,c=l.rate;0===Object.keys(s).length?delete t.debug_meta:t.debug_meta=s;var p={body:JSON.stringify(r?ke(t,e.metadata.sdk):t),type:i,url:n?e.getEnvelopeEndpointWithUrlEncodedAuth():e.getStoreEndpointWithUrlEncodedAuth()};if(n){var h=JSON.stringify(w(w({event_id:t.event_id,sent_at:(new Date).toISOString()},r&amp;&amp;{sdk:r}),e.forceEnvelope()&amp;&amp;{dsn:e.getDsn().toString()}))+"\n"+JSON.stringify({type:i,sample_rates:[{id:u,rate:c}]})+"\n"+p.body;p.body=h}return p}var Ce=function(){function t(t,e,r){void 0===e&amp;&amp;(e={}),this.dsn=t,this._dsnObject=new Jt(t),this.metadata=e,this._tunnel=r}return t.prototype.getDsn=function(){return this._dsnObject},t.prototype.forceEnvelope=function(){return!!this._tunnel},t.prototype.getBaseApiEndpoint=function(){var t=this.getDsn(),e=t.protocol?t.protocol+":":"",r=t.port?":"+t.port:"";return e+"//"+t.host+r+(t.path?"/"+t.path:"")+"/api/"},t.prototype.getStoreEndpoint=function(){return this._getIngestEndpoint("store")},t.prototype.getStoreEndpointWithUrlEncodedAuth=function(){return this.getStoreEndpoint()+"?"+this._encodedAuth()},t.prototype.getEnvelopeEndpointWithUrlEncodedAuth=function(){return this.forceEnvelope()?this._tunnel:this._getEnvelopeEndpoint()+"?"+this._encodedAuth()},t.prototype.getStoreEndpointPath=function(){var t=this.getDsn();return(t.path?"/"+t.path:"")+"/api/"+t.projectId+"/store/"},t.prototype.getRequestHeaders=function(t,e){var r=this.getDsn(),i=["Sentry sentry_version=7"];return i.push("sentry_client="+t+"/"+e),i.push("sentry_key="+r.publicKey),r.pass&amp;&amp;i.push("sentry_secret="+r.pass),{"Content-Type":"application/json","X-Sentry-Auth":i.join(", ")}},t.prototype.getReportDialogEndpoint=function(t){void 0===t&amp;&amp;(t={});var e=this.getDsn(),r=this.getBaseApiEndpoint()+"embed/error-page/",i=[];for(var n in i.push("dsn="+e.toString()),t)if("dsn"!==n)if("user"===n){if(!t.user)continue;t.user.name&amp;&amp;i.push("name="+encodeURIComponent(t.user.name)),t.user.email&amp;&amp;i.push("email="+encodeURIComponent(t.user.email))}else i.push(encodeURIComponent(n)+"="+encodeURIComponent(t[n]));return i.length?r+"?"+i.join("&amp;"):r},t.prototype._getEnvelopeEndpoint=function(){return this._getIngestEndpoint("envelope")},t.prototype._getIngestEndpoint=function(t){return this._tunnel?this._tunnel:""+this.getBaseApiEndpoint()+this.getDsn().projectId+"/"+t+"/"},t.prototype._encodedAuth=function(){var t,e={sentry_key:this.getDsn().publicKey,sentry_version:"7"};return t=e,Object.keys(t).map((function(e){return encodeURIComponent(e)+"="+encodeURIComponent(t[e])})).join("&amp;")},t}(),Ie=function(){function t(t){this._limit=t,this._buffer=[]}return t.prototype.isReady=function(){return void 0===this._limit||this.length()&lt;this._limit},t.prototype.add=function(t){var e=this;if(!this.isReady())return Y.reject(new $t("Not adding Promise due to buffer limit reached."));var r=t();return-1===this._buffer.indexOf(r)&amp;&amp;this._buffer.push(r),r.then((function(){return e.remove(r)})).then(null,(function(){return e.remove(r).then(null,(function(){}))})),r},t.prototype.remove=function(t){return this._buffer.splice(this._buffer.indexOf(t),1)[0]},t.prototype.length=function(){return this._buffer.length},t.prototype.drain=function(t){var e=this;return new Y((function(r){var i=setTimeout((function(){t&amp;&amp;t&gt;0&amp;&amp;r(!1)}),t);Y.all(e._buffer).then((function(){clearTimeout(i),r(!0)})).then(null,(function(){r(!0)}))}))},t}();var Pe,Me=(0,T.R)();function ze(){var t,e;if(Pe)return Pe;if(Pt(Me.fetch))return Pe=Me.fetch.bind(Me);var r=Me.document,i=Me.fetch;if("function"==typeof(null===(t=r)||void 0===t?void 0:t.createElement))try{var n=r.createElement("iframe");n.hidden=!0,r.head.appendChild(n),(null===(e=n.contentWindow)||void 0===e?void 0:e.fetch)&amp;&amp;(i=n.contentWindow.fetch),r.head.removeChild(n)}catch(t){F.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return Pe=i.bind(Me)}function De(t,e){if("[object Navigator]"===Object.prototype.toString.call(Me&amp;&amp;Me.navigator)&amp;&amp;"function"==typeof Me.navigator.sendBeacon)return Me.navigator.sendBeacon.bind(Me.navigator)(t,e);if(It()){var r=ze();r(t,{body:e,method:"POST",credentials:"omit",keepalive:!0}).then(null,(function(t){console.error(t)}))}else;}var Le={event:"error",transaction:"transaction",session:"session",attachment:"attachment"},Re=(0,T.R)(),Oe=function(){function t(t){var e=this;this.options=t,this._buffer=new Ie(30),this._rateLimits={},this._outcomes={},this._api=new Ce(t.dsn,t._metadata,t.tunnel),this.url=this._api.getStoreEndpointWithUrlEncodedAuth(),this.options.sendClientReports&amp;&amp;Re.document&amp;&amp;Re.document.addEventListener("visibilitychange",(function(){"hidden"===Re.document.visibilityState&amp;&amp;e._flushOutcomes()}))}return t.prototype.sendEvent=function(t){throw new $t("Transport Class has to implement `sendEvent` method")},t.prototype.close=function(t){return this._buffer.drain(t)},t.prototype.recordLostEvent=function(t,e){var r;if(this.options.sendClientReports){var i=Le[e]+":"+t;F.log("Adding outcome: "+i),this._outcomes[i]=(null!=(r=this._outcomes[i])?r:0)+1}},t.prototype._flushOutcomes=function(){if(this.options.sendClientReports){var t=this._outcomes;if(this._outcomes={},Object.keys(t).length){F.log("Flushing outcomes:\n"+JSON.stringify(t,null,2));var e=this._api.getEnvelopeEndpointWithUrlEncodedAuth(),r=JSON.stringify(w({},this.options.tunnel&amp;&amp;{dsn:this._api.getDsn().toString()}))+"\n"+JSON.stringify({type:"client_report"})+"\n"+JSON.stringify({timestamp:(0,D.yW)(),discarded_events:Object.keys(t).map((function(e){var r=E(e.split(":"),2),i=r[0];return{reason:r[1],category:i,quantity:t[e]}}))});try{De(e,r)}catch(t){F.error(t)}}else F.log("No outcomes to flush")}},t.prototype._handleResponse=function(t){var e=t.requestType,r=t.response,i=t.headers,n=t.resolve,o=t.reject,a=re.fromHttpCode(r.status);this._handleRateLimit(i)&amp;&amp;F.warn("Too many "+e+" requests, backing off until: "+this._disabledUntil(e)),a!==re.Success?o(r):n({status:a})},t.prototype._disabledUntil=function(t){var e=Le[t];return this._rateLimits[e]||this._rateLimits.all},t.prototype._isRateLimited=function(t){return this._disabledUntil(t)&gt;new Date(Date.now())},t.prototype._handleRateLimit=function(t){var e,r,i,n,o=Date.now(),a=t["x-sentry-rate-limits"],s=t["retry-after"];if(a){try{for(var l=S(a.trim().split(",")),u=l.next();!u.done;u=l.next()){var c=u.value.split(":",2),p=parseInt(c[0],10),h=1e3*(isNaN(p)?60:p);try{for(var d=(i=void 0,S(c[1].split(";"))),f=d.next();!f.done;f=d.next()){var m=f.value;this._rateLimits[m||"all"]=new Date(o+h)}}catch(t){i={error:t}}finally{try{f&amp;&amp;!f.done&amp;&amp;(n=d.return)&amp;&amp;n.call(d)}finally{if(i)throw i.error}}}}catch(t){e={error:t}}finally{try{u&amp;&amp;!u.done&amp;&amp;(r=l.return)&amp;&amp;r.call(l)}finally{if(e)throw e.error}}return!0}return!!s&amp;&amp;(this._rateLimits.all=new Date(o+function(t,e){if(!e)return 6e4;var r=parseInt(""+e,10);if(!isNaN(r))return 1e3*r;var i=Date.parse(""+e);return isNaN(i)?6e4:i-t}(o,s)),!0)},t}(),Be=function(t){function e(e,r){void 0===r&amp;&amp;(r=ze());var i=t.call(this,e)||this;return i._fetch=r,i}return _(e,t),e.prototype.sendEvent=function(t){return this._sendRequest(Ae(t,this._api),t)},e.prototype.sendSession=function(t){return this._sendRequest(Te(t,this._api),t)},e.prototype._sendRequest=function(t,e){var r=this;if(this._isRateLimited(t.type))return this.recordLostEvent(Ht.RateLimitBackoff,t.type),Promise.reject({event:e,type:t.type,reason:"Transport for "+t.type+" requests locked till "+this._disabledUntil(t.type)+" due to too many requests.",status:429});var i={body:t.body,method:"POST",referrerPolicy:Mt()?"origin":""};return void 0!==this.options.fetchParameters&amp;&amp;Object.assign(i,this.options.fetchParameters),void 0!==this.options.headers&amp;&amp;(i.headers=this.options.headers),this._buffer.add((function(){return new Y((function(e,n){r._fetch(t.url,i).then((function(i){var o={"x-sentry-rate-limits":i.headers.get("X-Sentry-Rate-Limits"),"retry-after":i.headers.get("Retry-After")};r._handleResponse({requestType:t.type,response:i,headers:o,resolve:e,reject:n})})).catch(n)}))})).then(void 0,(function(e){throw e instanceof $t?r.recordLostEvent(Ht.QueueOverflow,t.type):r.recordLostEvent(Ht.NetworkError,t.type),e}))},e}(Oe),Fe=function(t){function e(){return null!==t&amp;&amp;t.apply(this,arguments)||this}return _(e,t),e.prototype.sendEvent=function(t){return this._sendRequest(Ae(t,this._api),t)},e.prototype.sendSession=function(t){return this._sendRequest(Te(t,this._api),t)},e.prototype._sendRequest=function(t,e){var r=this;return this._isRateLimited(t.type)?(this.recordLostEvent(Ht.RateLimitBackoff,t.type),Promise.reject({event:e,type:t.type,reason:"Transport for "+t.type+" requests locked till "+this._disabledUntil(t.type)+" due to too many requests.",status:429})):this._buffer.add((function(){return new Y((function(e,i){var n=new XMLHttpRequest;for(var o in n.onreadystatechange=function(){if(4===n.readyState){var o={"x-sentry-rate-limits":n.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":n.getResponseHeader("Retry-After")};r._handleResponse({requestType:t.type,response:n,headers:o,resolve:e,reject:i})}},n.open("POST",t.url),r.options.headers)Object.prototype.hasOwnProperty.call(r.options.headers,o)&amp;&amp;n.setRequestHeader(o,r.options.headers[o]);n.send(t.body)}))})).then(void 0,(function(e){throw e instanceof $t?r.recordLostEvent(Ht.QueueOverflow,t.type):r.recordLostEvent(Ht.NetworkError,t.type),e}))},e}(Oe),je=function(t){function e(){return null!==t&amp;&amp;t.apply(this,arguments)||this}return _(e,t),e.prototype.eventFromException=function(t,e){return function(t,e,r){var i=we(e,r&amp;&amp;r.syntheticException||void 0,{attachStacktrace:t.attachStacktrace});return M(i),i.level=oe.Error,r&amp;&amp;r.event_id&amp;&amp;(i.event_id=r.event_id),Y.resolve(i)}(this._options,t,e)},e.prototype.eventFromMessage=function(t,e,r){return void 0===e&amp;&amp;(e=oe.Info),function(t,e,r,i){void 0===r&amp;&amp;(r=oe.Info);var n=Se(e,i&amp;&amp;i.syntheticException||void 0,{attachStacktrace:t.attachStacktrace});return n.level=r,i&amp;&amp;i.event_id&amp;&amp;(n.event_id=i.event_id),Y.resolve(n)}(this._options,t,e,r)},e.prototype._setupTransport=function(){if(!this._options.dsn)return t.prototype._setupTransport.call(this);var e=w(w({},this._options.transportOptions),{dsn:this._options.dsn,tunnel:this._options.tunnel,sendClientReports:this._options.sendClientReports,_metadata:this._options._metadata});return this._options.transport?new this._options.transport(e):It()?new Be(e):new Fe(e)},e}(se);function Ue(t){for(var e=[],r=1;r&lt;arguments.length;r++)e[r-1]=arguments[r];var i=bt();if(i&amp;&amp;i[t])return i[t].apply(i,k(e));throw new Error("No hub defined or "+t+" was not found on the hub, please open a bug report.")}function Ne(t,e){var r;try{throw new Error("Sentry syntheticException")}catch(t){r=t}return Ue("captureException",t,{captureContext:e,originalException:t,syntheticException:r})}function Ve(t){Ue("withScope",t)}var qe=(0,T.R)(),We=0;function Ge(){return We&gt;0}function He(){We+=1,setTimeout((function(){We-=1}))}function Ze(t,e,r){if(void 0===e&amp;&amp;(e={}),"function"!=typeof t)return t;try{if(t.__sentry__)return t;if(t.__sentry_wrapped__)return t.__sentry_wrapped__}catch(e){return t}var i=function(){var i=Array.prototype.slice.call(arguments);try{r&amp;&amp;"function"==typeof r&amp;&amp;r.apply(this,arguments);var n=i.map((function(t){return Ze(t,e)}));return t.handleEvent?t.handleEvent.apply(this,n):t.apply(this,n)}catch(t){throw He(),Ve((function(r){r.addEventProcessor((function(t){var r=w({},t);return e.mechanism&amp;&amp;(P(r,void 0,void 0),M(r,e.mechanism)),r.extra=w(w({},r.extra),{arguments:i}),r})),Ne(t)})),t}};try{for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&amp;&amp;(i[n]=t[n])}catch(t){}t.prototype=t.prototype||{},i.prototype=t.prototype,Object.defineProperty(t,"__sentry_wrapped__",{enumerable:!1,value:i}),Object.defineProperties(i,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:t}});try{Object.getOwnPropertyDescriptor(i,"name").configurable&amp;&amp;Object.defineProperty(i,"name",{get:function(){return t.name}})}catch(t){}return i}var Xe=function(){function t(e){this.name=t.id,this._options=w({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},e)}return t.prototype.addSentryBreadcrumb=function(t){this._options.sentry&amp;&amp;bt().addBreadcrumb({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:I(t)},{event:t})},t.prototype.setupOnce=function(){var t=this;this._options.console&amp;&amp;Bt({callback:function(){for(var e=[],r=0;r&lt;arguments.length;r++)e[r]=arguments[r];t._consoleBreadcrumb.apply(t,k(e))},type:"console"}),this._options.dom&amp;&amp;Bt({callback:function(){for(var e=[],r=0;r&lt;arguments.length;r++)e[r]=arguments[r];t._domBreadcrumb.apply(t,k(e))},type:"dom"}),this._options.xhr&amp;&amp;Bt({callback:function(){for(var e=[],r=0;r&lt;arguments.length;r++)e[r]=arguments[r];t._xhrBreadcrumb.apply(t,k(e))},type:"xhr"}),this._options.fetch&amp;&amp;Bt({callback:function(){for(var e=[],r=0;r&lt;arguments.length;r++)e[r]=arguments[r];t._fetchBreadcrumb.apply(t,k(e))},type:"fetch"}),this._options.history&amp;&amp;Bt({callback:function(){for(var e=[],r=0;r&lt;arguments.length;r++)e[r]=arguments[r];t._historyBreadcrumb.apply(t,k(e))},type:"history"})},t.prototype._consoleBreadcrumb=function(t){var e={category:"console",data:{arguments:t.args,logger:"console"},level:oe.fromString(t.level),message:at(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;e.message="Assertion failed: "+(at(t.args.slice(1)," ")||"console.assert"),e.data.arguments=t.args.slice(1)}bt().addBreadcrumb(e,{input:t.args,level:t.level})},t.prototype._domBreadcrumb=function(t){var e,r="object"==typeof this._options.dom?this._options.dom.serializeAttribute:void 0;"string"==typeof r&amp;&amp;(r=[r]);try{e=t.event.target?tt(t.event.target,r):tt(t.event,r)}catch(t){e="&lt;unknown&gt;"}0!==e.length&amp;&amp;bt().addBreadcrumb({category:"ui."+t.name,message:e},{event:t.event,name:t.name,global:t.global})},t.prototype._xhrBreadcrumb=function(t){if(t.endTimestamp){if(t.xhr.__sentry_own_request__)return;var e=t.xhr.__sentry_xhr__||{},r=e.method,i=e.url,n=e.status_code,o=e.body;bt().addBreadcrumb({category:"xhr",data:{method:r,url:i,status_code:n},type:"http"},{xhr:t.xhr,input:o})}else;},t.prototype._fetchBreadcrumb=function(t){t.endTimestamp&amp;&amp;(t.fetchData.url.match(/sentry_key/)&amp;&amp;"POST"===t.fetchData.method||(t.error?bt().addBreadcrumb({category:"fetch",data:t.fetchData,level:oe.Error,type:"http"},{data:t.error,input:t.args}):bt().addBreadcrumb({category:"fetch",data:w(w({},t.fetchData),{status_code:t.response.status}),type:"http"},{input:t.args,response:t.response})))},t.prototype._historyBreadcrumb=function(t){var e=(0,T.R)(),r=t.from,i=t.to,n=C(e.location.href),o=C(r),a=C(i);o.path||(o=n),n.protocol===a.protocol&amp;&amp;n.host===a.host&amp;&amp;(i=a.relative),n.protocol===o.protocol&amp;&amp;n.host===o.host&amp;&amp;(r=o.relative),bt().addBreadcrumb({category:"navigation",data:{from:r,to:i}})},t.id="Breadcrumbs",t}(),$e=function(t){function e(e){void 0===e&amp;&amp;(e={});return e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:Zt}],version:Zt},t.call(this,je,e)||this}return _(e,t),e.prototype.showReportDialog=function(t){void 0===t&amp;&amp;(t={}),(0,T.R)().document&amp;&amp;(this._isEnabled()?function(t){if(void 0===t&amp;&amp;(t={}),qe.document)if(t.eventId)if(t.dsn){var e=qe.document.createElement("script");e.async=!0,e.src=new Ce(t.dsn).getReportDialogEndpoint(t),t.onLoad&amp;&amp;(e.onload=t.onLoad);var r=qe.document.head||qe.document.body;r&amp;&amp;r.appendChild(e)}else F.error("Missing dsn option in showReportDialog call");else F.error("Missing eventId option in showReportDialog call")}(w(w({},t),{dsn:t.dsn||this.getDsn()})):F.error("Trying to call showReportDialog with Sentry Client disabled"))},e.prototype._prepareEvent=function(e,r,i){return e.platform=e.platform||"javascript",t.prototype._prepareEvent.call(this,e,r,i)},e.prototype._sendEvent=function(e){var r=this.getIntegration(Xe);r&amp;&amp;r.addSentryBreadcrumb(e),t.prototype._sendEvent.call(this,e)},e}(ne),Ye=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],Ke=function(){function t(e){this.name=t.id,this._options=w({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},e)}return t.prototype.setupOnce=function(){var t=(0,T.R)();(this._options.setTimeout&amp;&amp;lt(t,"setTimeout",this._wrapTimeFunction.bind(this)),this._options.setInterval&amp;&amp;lt(t,"setInterval",this._wrapTimeFunction.bind(this)),this._options.requestAnimationFrame&amp;&amp;lt(t,"requestAnimationFrame",this._wrapRAF.bind(this)),this._options.XMLHttpRequest&amp;&amp;"XMLHttpRequest"in t&amp;&amp;lt(XMLHttpRequest.prototype,"send",this._wrapXHR.bind(this)),this._options.eventTarget)&amp;&amp;(Array.isArray(this._options.eventTarget)?this._options.eventTarget:Ye).forEach(this._wrapEventTarget.bind(this))},t.prototype._wrapTimeFunction=function(t){return function(){for(var e=[],r=0;r&lt;arguments.length;r++)e[r]=arguments[r];var i=e[0];return e[0]=Ze(i,{mechanism:{data:{function:nt(t)},handled:!0,type:"instrument"}}),t.apply(this,e)}},t.prototype._wrapRAF=function(t){return function(e){return t.call(this,Ze(e,{mechanism:{data:{function:"requestAnimationFrame",handler:nt(t)},handled:!0,type:"instrument"}}))}},t.prototype._wrapEventTarget=function(t){var e=(0,T.R)(),r=e[t]&amp;&amp;e[t].prototype;r&amp;&amp;r.hasOwnProperty&amp;&amp;r.hasOwnProperty("addEventListener")&amp;&amp;(lt(r,"addEventListener",(function(e){return function(r,i,n){try{"function"==typeof i.handleEvent&amp;&amp;(i.handleEvent=Ze(i.handleEvent.bind(i),{mechanism:{data:{function:"handleEvent",handler:nt(i),target:t},handled:!0,type:"instrument"}}))}catch(t){}return e.call(this,r,Ze(i,{mechanism:{data:{function:"addEventListener",handler:nt(i),target:t},handled:!0,type:"instrument"}}),n)}})),lt(r,"removeEventListener",(function(t){return function(e,r,i){var n,o=r;try{var a=null===(n=o)||void 0===n?void 0:n.__sentry_wrapped__;a&amp;&amp;t.call(this,e,a,i)}catch(t){}return t.call(this,e,o,i)}})))},t.prototype._wrapXHR=function(t){return function(){for(var e=[],r=0;r&lt;arguments.length;r++)e[r]=arguments[r];var i=this,n=["onload","onerror","onprogress","onreadystatechange"];return n.forEach((function(t){t in i&amp;&amp;"function"==typeof i[t]&amp;&amp;lt(i,t,(function(e){var r={mechanism:{data:{function:t,handler:nt(e)},handled:!0,type:"instrument"}};return e.__sentry_original__&amp;&amp;(r.mechanism.data.handler=nt(e.__sentry_original__)),Ze(e,r)}))})),t.apply(this,e)}},t.id="TryCatch",t}(),Je=function(){function t(e){this.name=t.id,this._onErrorHandlerInstalled=!1,this._onUnhandledRejectionHandlerInstalled=!1,this._options=w({onerror:!0,onunhandledrejection:!0},e)}return t.prototype.setupOnce=function(){Error.stackTraceLimit=50,this._options.onerror&amp;&amp;(F.log("Global Handler attached: onerror"),this._installGlobalOnErrorHandler()),this._options.onunhandledrejection&amp;&amp;(F.log("Global Handler attached: onunhandledrejection"),this._installGlobalOnUnhandledRejectionHandler())},t.prototype._installGlobalOnErrorHandler=function(){var e=this;this._onErrorHandlerInstalled||(Bt({callback:function(r){var i=r.error,n=bt(),o=n.getIntegration(t),a=i&amp;&amp;!0===i.__sentry_own_request__;if(o&amp;&amp;!Ge()&amp;&amp;!a){var s=n.getClient(),l=void 0===i&amp;&amp;q(r.msg)?e._eventFromIncompleteOnError(r.msg,r.url,r.line,r.column):e._enhanceEventWithInitialFrame(we(i||r.msg,void 0,{attachStacktrace:s&amp;&amp;s.getOptions().attachStacktrace,rejection:!1}),r.url,r.line,r.column);M(l,{handled:!1,type:"onerror"}),n.captureEvent(l,{originalException:i})}},type:"error"}),this._onErrorHandlerInstalled=!0)},t.prototype._installGlobalOnUnhandledRejectionHandler=function(){var e=this;this._onUnhandledRejectionHandlerInstalled||(Bt({callback:function(r){var i=r;try{"reason"in r?i=r.reason:"detail"in r&amp;&amp;"reason"in r.detail&amp;&amp;(i=r.detail.reason)}catch(t){}var n=bt(),o=n.getIntegration(t),a=i&amp;&amp;!0===i.__sentry_own_request__;if(!o||Ge()||a)return!0;var s=n.getClient(),l=W(i)?e._eventFromRejectionWithPrimitive(i):we(i,void 0,{attachStacktrace:s&amp;&amp;s.getOptions().attachStacktrace,rejection:!0});l.level=oe.Error,M(l,{handled:!1,type:"onunhandledrejection"}),n.captureEvent(l,{originalException:i})},type:"unhandledrejection"}),this._onUnhandledRejectionHandlerInstalled=!0)},t.prototype._eventFromIncompleteOnError=function(t,e,r,i){var n,o=N(t)?t.message:t,a=o.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);a&amp;&amp;(n=a[1],o=a[2]);var s={exception:{values:[{type:n||"Error",value:o}]}};return this._enhanceEventWithInitialFrame(s,e,r,i)},t.prototype._eventFromRejectionWithPrimitive=function(t){return{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(t)}]}}},t.prototype._enhanceEventWithInitialFrame=function(t,e,r,i){t.exception=t.exception||{},t.exception.values=t.exception.values||[],t.exception.values[0]=t.exception.values[0]||{},t.exception.values[0].stacktrace=t.exception.values[0].stacktrace||{},t.exception.values[0].stacktrace.frames=t.exception.values[0].stacktrace.frames||[];var n=isNaN(parseInt(i,10))?void 0:i,o=isNaN(parseInt(r,10))?void 0:r,a=q(e)&amp;&amp;e.length&gt;0?e:function(){var t=(0,T.R)();try{return t.document.location.href}catch(t){return""}}();return 0===t.exception.values[0].stacktrace.frames.length&amp;&amp;t.exception.values[0].stacktrace.frames.push({colno:n,filename:a,function:"?",in_app:!0,lineno:o}),t},t.id="GlobalHandlers",t}(),Qe=function(){function t(e){void 0===e&amp;&amp;(e={}),this.name=t.id,this._key=e.key||"cause",this._limit=e.limit||5}return t.prototype.setupOnce=function(){Q((function(e,r){var i=bt().getIntegration(t);if(i){var n=i._handler&amp;&amp;i._handler.bind(i);return"function"==typeof n?n(e,r):e}return e}))},t.prototype._handler=function(t,e){if(!(t.exception&amp;&amp;t.exception.values&amp;&amp;e&amp;&amp;$(e.originalException,Error)))return t;var r=this._walkErrorTree(e.originalException,this._key);return t.exception.values=k(r,t.exception.values),t},t.prototype._walkErrorTree=function(t,e,r){if(void 0===r&amp;&amp;(r=[]),!$(t[e],Error)||r.length+1&gt;=this._limit)return r;var i=_e(me(t[e]));return this._walkErrorTree(t[e],e,k([i],r))},t.id="LinkedErrors",t}(),tr=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(e,r){e((function(e){var i=r().getIntegration(t);if(i){try{if(i._shouldDropEvent(e,i._previousEvent))return F.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(t){return i._previousEvent=e}return i._previousEvent=e}return e}))},t.prototype._shouldDropEvent=function(t,e){return!!e&amp;&amp;(!!this._isSameMessageEvent(t,e)||!!this._isSameExceptionEvent(t,e))},t.prototype._isSameMessageEvent=function(t,e){var r=t.message,i=e.message;return!(!r&amp;&amp;!i)&amp;&amp;(!(r&amp;&amp;!i||!r&amp;&amp;i)&amp;&amp;(r===i&amp;&amp;(!!this._isSameFingerprint(t,e)&amp;&amp;!!this._isSameStacktrace(t,e))))},t.prototype._getFramesFromEvent=function(t){var e=t.exception;if(e)try{return e.values[0].stacktrace.frames}catch(t){return}else if(t.stacktrace)return t.stacktrace.frames},t.prototype._isSameStacktrace=function(t,e){var r=this._getFramesFromEvent(t),i=this._getFramesFromEvent(e);if(!r&amp;&amp;!i)return!0;if(r&amp;&amp;!i||!r&amp;&amp;i)return!1;if(r=r,(i=i).length!==r.length)return!1;for(var n=0;n&lt;i.length;n++){var o=i[n],a=r[n];if(o.filename!==a.filename||o.lineno!==a.lineno||o.colno!==a.colno||o.function!==a.function)return!1}return!0},t.prototype._getExceptionFromEvent=function(t){return t.exception&amp;&amp;t.exception.values&amp;&amp;t.exception.values[0]},t.prototype._isSameExceptionEvent=function(t,e){var r=this._getExceptionFromEvent(e),i=this._getExceptionFromEvent(t);return!(!r||!i)&amp;&amp;(r.type===i.type&amp;&amp;r.value===i.value&amp;&amp;(!!this._isSameFingerprint(t,e)&amp;&amp;!!this._isSameStacktrace(t,e)))},t.prototype._isSameFingerprint=function(t,e){var r=t.fingerprint,i=e.fingerprint;if(!r&amp;&amp;!i)return!0;if(r&amp;&amp;!i||!r&amp;&amp;i)return!1;r=r,i=i;try{return!(r.join("")!==i.join(""))}catch(t){return!1}},t.id="Dedupe",t}(),er=(0,T.R)(),rr=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){Q((function(e){var r,i,n;if(bt().getIntegration(t)){if(!er.navigator&amp;&amp;!er.location&amp;&amp;!er.document)return e;var o=(null===(r=e.request)||void 0===r?void 0:r.url)||(null===(i=er.location)||void 0===i?void 0:i.href),a=(er.document||{}).referrer,s=(er.navigator||{}).userAgent,l=w(w(w({},null===(n=e.request)||void 0===n?void 0:n.headers),a&amp;&amp;{Referer:a}),s&amp;&amp;{"User-Agent":s}),u=w(w({},o&amp;&amp;{url:o}),{headers:l});return w(w({},e),{request:u})}return e}))},t.id="UserAgent",t}(),ir=[new At,new Ct,new Ke,new Xe,new Je,new Qe,new tr,new rr];function nr(t){if(void 0===t&amp;&amp;(t={}),void 0===t.defaultIntegrations&amp;&amp;(t.defaultIntegrations=ir),void 0===t.release){var e=(0,T.R)();e.SENTRY_RELEASE&amp;&amp;e.SENTRY_RELEASE.id&amp;&amp;(t.release=e.SENTRY_RELEASE.id)}void 0===t.autoSessionTracking&amp;&amp;(t.autoSessionTracking=!0),void 0===t.sendClientReports&amp;&amp;(t.sendClientReports=!0),function(t,e){var r;!0===e.debug&amp;&amp;F.enable();var i=bt();null===(r=i.getScope())||void 0===r||r.update(e.initialScope);var n=new t(e);i.bindClient(n)}($e,t),t.autoSessionTracking&amp;&amp;function(){if(void 0===(0,T.R)().document)return void F.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");var t=bt();if("function"!=typeof t.startSession||"function"!=typeof t.captureSession)return;t.startSession({ignoreDuration:!0}),t.captureSession(),Bt({callback:function(e){var r=e.from,i=e.to;void 0!==r&amp;&amp;r!==i&amp;&amp;(t.startSession({ignoreDuration:!0}),t.captureSession())},type:"history"})}()}function or(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&amp;&amp;(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,i)}return r}function ar(t){for(var e=1;e&lt;arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?or(Object(r),!0).forEach((function(e){sr(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):or(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function sr(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}const lr=function(t,e){if(t){var r=new IntersectionObserver(((t,r)=&gt;{t.forEach((t=&gt;{t.isIntersecting&amp;&amp;(e(),r.unobserve(t.target))}))}),{root:null,rootMargin:"0px 0px 200px 0px",threshold:0});return r.observe(t),r}};var ur=r(5755);function cr(t){return getComputedStyle(t)}function pr(t,e){for(var r in e){var i=e[r];"number"==typeof i&amp;&amp;(i+="px"),t.style[r]=i}return t}function hr(t){var e=document.createElement("div");return e.className=t,e}var dr="undefined"!=typeof Element&amp;&amp;(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function fr(t,e){if(!dr)throw new Error("No element matching method supported");return dr.call(t,e)}function mr(t){t.remove?t.remove():t.parentNode&amp;&amp;t.parentNode.removeChild(t)}function yr(t,e){return Array.prototype.filter.call(t.children,(function(t){return fr(t,e)}))}var gr="ps",vr="ps__rtl",_r={thumb:function(t){return"ps__thumb-"+t},rail:function(t){return"ps__rail-"+t},consuming:"ps__child--consume"},xr={focus:"ps--focus",clicking:"ps--clicking",active:function(t){return"ps--active-"+t},scrolling:function(t){return"ps--scrolling-"+t}},br={x:null,y:null};function wr(t,e){var r=t.element.classList,i=xr.scrolling(e);r.contains(i)?clearTimeout(br[e]):r.add(i)}function Sr(t,e){br[e]=setTimeout((function(){return t.isAlive&amp;&amp;t.element.classList.remove(xr.scrolling(e))}),t.settings.scrollingThreshold)}var Er=function(t){this.element=t,this.handlers={}},kr={isEmpty:{configurable:!0}};Er.prototype.bind=function(t,e){void 0===this.handlers[t]&amp;&amp;(this.handlers[t]=[]),this.handlers[t].push(e),this.element.addEventListener(t,e,!1)},Er.prototype.unbind=function(t,e){var r=this;this.handlers[t]=this.handlers[t].filter((function(i){return!(!e||i===e)||(r.element.removeEventListener(t,i,!1),!1)}))},Er.prototype.unbindAll=function(){for(var t in this.handlers)this.unbind(t)},kr.isEmpty.get=function(){var t=this;return Object.keys(this.handlers).every((function(e){return 0===t.handlers[e].length}))},Object.defineProperties(Er.prototype,kr);var Tr=function(){this.eventElements=[]};function Ar(t){if("function"==typeof window.CustomEvent)return new CustomEvent(t);var e=document.createEvent("CustomEvent");return e.initCustomEvent(t,!1,!1,void 0),e}function Cr(t,e,r,i,n){var o;if(void 0===i&amp;&amp;(i=!0),void 0===n&amp;&amp;(n=!1),"top"===e)o=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==e)throw new Error("A proper axis should be provided");o=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function(t,e,r,i,n){var o=r[0],a=r[1],s=r[2],l=r[3],u=r[4],c=r[5];void 0===i&amp;&amp;(i=!0);void 0===n&amp;&amp;(n=!1);var p=t.element;t.reach[l]=null,p[s]&lt;1&amp;&amp;(t.reach[l]="start");p[s]&gt;t[o]-t[a]-1&amp;&amp;(t.reach[l]="end");e&amp;&amp;(p.dispatchEvent(Ar("ps-scroll-"+l)),e&lt;0?p.dispatchEvent(Ar("ps-scroll-"+u)):e&gt;0&amp;&amp;p.dispatchEvent(Ar("ps-scroll-"+c)),i&amp;&amp;function(t,e){wr(t,e),Sr(t,e)}(t,l));t.reach[l]&amp;&amp;(e||n)&amp;&amp;p.dispatchEvent(Ar("ps-"+l+"-reach-"+t.reach[l]))}(t,r,o,i,n)}function Ir(t){return parseInt(t,10)||0}Tr.prototype.eventElement=function(t){var e=this.eventElements.filter((function(e){return e.element===t}))[0];return e||(e=new Er(t),this.eventElements.push(e)),e},Tr.prototype.bind=function(t,e,r){this.eventElement(t).bind(e,r)},Tr.prototype.unbind=function(t,e,r){var i=this.eventElement(t);i.unbind(e,r),i.isEmpty&amp;&amp;this.eventElements.splice(this.eventElements.indexOf(i),1)},Tr.prototype.unbindAll=function(){this.eventElements.forEach((function(t){return t.unbindAll()})),this.eventElements=[]},Tr.prototype.once=function(t,e,r){var i=this.eventElement(t),n=function(t){i.unbind(e,n),r(t)};i.bind(e,n)};var Pr={isWebKit:"undefined"!=typeof document&amp;&amp;"WebkitAppearance"in document.documentElement.style,supportsTouch:"undefined"!=typeof window&amp;&amp;("ontouchstart"in window||"maxTouchPoints"in window.navigator&amp;&amp;window.navigator.maxTouchPoints&gt;0||window.DocumentTouch&amp;&amp;document instanceof window.DocumentTouch),supportsIePointer:"undefined"!=typeof navigator&amp;&amp;navigator.msMaxTouchPoints,isChrome:"undefined"!=typeof navigator&amp;&amp;/Chrome/i.test(navigator&amp;&amp;navigator.userAgent)};function Mr(t){var e=t.element,r=Math.floor(e.scrollTop),i=e.getBoundingClientRect();t.containerWidth=Math.ceil(i.width),t.containerHeight=Math.ceil(i.height),t.contentWidth=e.scrollWidth,t.contentHeight=e.scrollHeight,e.contains(t.scrollbarXRail)||(yr(e,_r.rail("x")).forEach((function(t){return mr(t)})),e.appendChild(t.scrollbarXRail)),e.contains(t.scrollbarYRail)||(yr(e,_r.rail("y")).forEach((function(t){return mr(t)})),e.appendChild(t.scrollbarYRail)),!t.settings.suppressScrollX&amp;&amp;t.containerWidth+t.settings.scrollXMarginOffset&lt;t.contentWidth?(t.scrollbarXActive=!0,t.railXWidth=t.containerWidth-t.railXMarginWidth,t.railXRatio=t.containerWidth/t.railXWidth,t.scrollbarXWidth=zr(t,Ir(t.railXWidth*t.containerWidth/t.contentWidth)),t.scrollbarXLeft=Ir((t.negativeScrollAdjustment+e.scrollLeft)*(t.railXWidth-t.scrollbarXWidth)/(t.contentWidth-t.containerWidth))):t.scrollbarXActive=!1,!t.settings.suppressScrollY&amp;&amp;t.containerHeight+t.settings.scrollYMarginOffset&lt;t.contentHeight?(t.scrollbarYActive=!0,t.railYHeight=t.containerHeight-t.railYMarginHeight,t.railYRatio=t.containerHeight/t.railYHeight,t.scrollbarYHeight=zr(t,Ir(t.railYHeight*t.containerHeight/t.contentHeight)),t.scrollbarYTop=Ir(r*(t.railYHeight-t.scrollbarYHeight)/(t.contentHeight-t.containerHeight))):t.scrollbarYActive=!1,t.scrollbarXLeft&gt;=t.railXWidth-t.scrollbarXWidth&amp;&amp;(t.scrollbarXLeft=t.railXWidth-t.scrollbarXWidth),t.scrollbarYTop&gt;=t.railYHeight-t.scrollbarYHeight&amp;&amp;(t.scrollbarYTop=t.railYHeight-t.scrollbarYHeight),function(t,e){var r={width:e.railXWidth},i=Math.floor(t.scrollTop);e.isRtl?r.left=e.negativeScrollAdjustment+t.scrollLeft+e.containerWidth-e.contentWidth:r.left=t.scrollLeft;e.isScrollbarXUsingBottom?r.bottom=e.scrollbarXBottom-i:r.top=e.scrollbarXTop+i;pr(e.scrollbarXRail,r);var n={top:i,height:e.railYHeight};e.isScrollbarYUsingRight?e.isRtl?n.right=e.contentWidth-(e.negativeScrollAdjustment+t.scrollLeft)-e.scrollbarYRight-e.scrollbarYOuterWidth-9:n.right=e.scrollbarYRight-t.scrollLeft:e.isRtl?n.left=e.negativeScrollAdjustment+t.scrollLeft+2*e.containerWidth-e.contentWidth-e.scrollbarYLeft-e.scrollbarYOuterWidth:n.left=e.scrollbarYLeft+t.scrollLeft;pr(e.scrollbarYRail,n),pr(e.scrollbarX,{left:e.scrollbarXLeft,width:e.scrollbarXWidth-e.railBorderXWidth}),pr(e.scrollbarY,{top:e.scrollbarYTop,height:e.scrollbarYHeight-e.railBorderYWidth})}(e,t),t.scrollbarXActive?e.classList.add(xr.active("x")):(e.classList.remove(xr.active("x")),t.scrollbarXWidth=0,t.scrollbarXLeft=0,e.scrollLeft=!0===t.isRtl?t.contentWidth:0),t.scrollbarYActive?e.classList.add(xr.active("y")):(e.classList.remove(xr.active("y")),t.scrollbarYHeight=0,t.scrollbarYTop=0,e.scrollTop=0)}function zr(t,e){return t.settings.minScrollbarLength&amp;&amp;(e=Math.max(e,t.settings.minScrollbarLength)),t.settings.maxScrollbarLength&amp;&amp;(e=Math.min(e,t.settings.maxScrollbarLength)),e}function Dr(t,e){var r=e[0],i=e[1],n=e[2],o=e[3],a=e[4],s=e[5],l=e[6],u=e[7],c=e[8],p=t.element,h=null,d=null,f=null;function m(e){e.touches&amp;&amp;e.touches[0]&amp;&amp;(e[n]=e.touches[0].pageY),p[l]=h+f*(e[n]-d),wr(t,u),Mr(t),e.stopPropagation(),e.preventDefault()}function y(){Sr(t,u),t[c].classList.remove(xr.clicking),t.event.unbind(t.ownerDocument,"mousemove",m)}function g(e,a){h=p[l],a&amp;&amp;e.touches&amp;&amp;(e[n]=e.touches[0].pageY),d=e[n],f=(t[i]-t[r])/(t[o]-t[s]),a?t.event.bind(t.ownerDocument,"touchmove",m):(t.event.bind(t.ownerDocument,"mousemove",m),t.event.once(t.ownerDocument,"mouseup",y),e.preventDefault()),t[c].classList.add(xr.clicking),e.stopPropagation()}t.event.bind(t[a],"mousedown",(function(t){g(t)})),t.event.bind(t[a],"touchstart",(function(t){g(t,!0)}))}var Lr={"click-rail":function(t){t.element,t.event.bind(t.scrollbarY,"mousedown",(function(t){return t.stopPropagation()})),t.event.bind(t.scrollbarYRail,"mousedown",(function(e){var r=e.pageY-window.pageYOffset-t.scrollbarYRail.getBoundingClientRect().top&gt;t.scrollbarYTop?1:-1;t.element.scrollTop+=r*t.containerHeight,Mr(t),e.stopPropagation()})),t.event.bind(t.scrollbarX,"mousedown",(function(t){return t.stopPropagation()})),t.event.bind(t.scrollbarXRail,"mousedown",(function(e){var r=e.pageX-window.pageXOffset-t.scrollbarXRail.getBoundingClientRect().left&gt;t.scrollbarXLeft?1:-1;t.element.scrollLeft+=r*t.containerWidth,Mr(t),e.stopPropagation()}))},"drag-thumb":function(t){Dr(t,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),Dr(t,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function(t){var e=t.element;t.event.bind(t.ownerDocument,"keydown",(function(r){if(!(r.isDefaultPrevented&amp;&amp;r.isDefaultPrevented()||r.defaultPrevented)&amp;&amp;(fr(e,":hover")||fr(t.scrollbarX,":focus")||fr(t.scrollbarY,":focus"))){var i,n=document.activeElement?document.activeElement:t.ownerDocument.activeElement;if(n){if("IFRAME"===n.tagName)n=n.contentDocument.activeElement;else for(;n.shadowRoot;)n=n.shadowRoot.activeElement;if(fr(i=n,"input,[contenteditable]")||fr(i,"select,[contenteditable]")||fr(i,"textarea,[contenteditable]")||fr(i,"button,[contenteditable]"))return}var o=0,a=0;switch(r.which){case 37:o=r.metaKey?-t.contentWidth:r.altKey?-t.containerWidth:-30;break;case 38:a=r.metaKey?t.contentHeight:r.altKey?t.containerHeight:30;break;case 39:o=r.metaKey?t.contentWidth:r.altKey?t.containerWidth:30;break;case 40:a=r.metaKey?-t.contentHeight:r.altKey?-t.containerHeight:-30;break;case 32:a=r.shiftKey?t.containerHeight:-t.containerHeight;break;case 33:a=t.containerHeight;break;case 34:a=-t.containerHeight;break;case 36:a=t.contentHeight;break;case 35:a=-t.contentHeight;break;default:return}t.settings.suppressScrollX&amp;&amp;0!==o||t.settings.suppressScrollY&amp;&amp;0!==a||(e.scrollTop-=a,e.scrollLeft+=o,Mr(t),function(r,i){var n=Math.floor(e.scrollTop);if(0===r){if(!t.scrollbarYActive)return!1;if(0===n&amp;&amp;i&gt;0||n&gt;=t.contentHeight-t.containerHeight&amp;&amp;i&lt;0)return!t.settings.wheelPropagation}var o=e.scrollLeft;if(0===i){if(!t.scrollbarXActive)return!1;if(0===o&amp;&amp;r&lt;0||o&gt;=t.contentWidth-t.containerWidth&amp;&amp;r&gt;0)return!t.settings.wheelPropagation}return!0}(o,a)&amp;&amp;r.preventDefault())}}))},wheel:function(t){var e=t.element;function r(r){var i=function(t){var e=t.deltaX,r=-1*t.deltaY;return void 0!==e&amp;&amp;void 0!==r||(e=-1*t.wheelDeltaX/6,r=t.wheelDeltaY/6),t.deltaMode&amp;&amp;1===t.deltaMode&amp;&amp;(e*=10,r*=10),e!=e&amp;&amp;r!=r&amp;&amp;(e=0,r=t.wheelDelta),t.shiftKey?[-r,-e]:[e,r]}(r),n=i[0],o=i[1];if(!function(t,r,i){if(!Pr.isWebKit&amp;&amp;e.querySelector("select:focus"))return!0;if(!e.contains(t))return!1;for(var n=t;n&amp;&amp;n!==e;){if(n.classList.contains(_r.consuming))return!0;var o=cr(n);if(i&amp;&amp;o.overflowY.match(/(scroll|auto)/)){var a=n.scrollHeight-n.clientHeight;if(a&gt;0&amp;&amp;(n.scrollTop&gt;0&amp;&amp;i&lt;0||n.scrollTop&lt;a&amp;&amp;i&gt;0))return!0}if(r&amp;&amp;o.overflowX.match(/(scroll|auto)/)){var s=n.scrollWidth-n.clientWidth;if(s&gt;0&amp;&amp;(n.scrollLeft&gt;0&amp;&amp;r&lt;0||n.scrollLeft&lt;s&amp;&amp;r&gt;0))return!0}n=n.parentNode}return!1}(r.target,n,o)){var a=!1;t.settings.useBothWheelAxes?t.scrollbarYActive&amp;&amp;!t.scrollbarXActive?(o?e.scrollTop-=o*t.settings.wheelSpeed:e.scrollTop+=n*t.settings.wheelSpeed,a=!0):t.scrollbarXActive&amp;&amp;!t.scrollbarYActive&amp;&amp;(n?e.scrollLeft+=n*t.settings.wheelSpeed:e.scrollLeft-=o*t.settings.wheelSpeed,a=!0):(e.scrollTop-=o*t.settings.wheelSpeed,e.scrollLeft+=n*t.settings.wheelSpeed),Mr(t),(a=a||function(r,i){var n=Math.floor(e.scrollTop),o=0===e.scrollTop,a=n+e.offsetHeight===e.scrollHeight,s=0===e.scrollLeft,l=e.scrollLeft+e.offsetWidth===e.scrollWidth;return!(Math.abs(i)&gt;Math.abs(r)?o||a:s||l)||!t.settings.wheelPropagation}(n,o))&amp;&amp;!r.ctrlKey&amp;&amp;(r.stopPropagation(),r.preventDefault())}}void 0!==window.onwheel?t.event.bind(e,"wheel",r):void 0!==window.onmousewheel&amp;&amp;t.event.bind(e,"mousewheel",r)},touch:function(t){if(Pr.supportsTouch||Pr.supportsIePointer){var e=t.element,r={},i=0,n={},o=null;Pr.supportsTouch?(t.event.bind(e,"touchstart",u),t.event.bind(e,"touchmove",c),t.event.bind(e,"touchend",p)):Pr.supportsIePointer&amp;&amp;(window.PointerEvent?(t.event.bind(e,"pointerdown",u),t.event.bind(e,"pointermove",c),t.event.bind(e,"pointerup",p)):window.MSPointerEvent&amp;&amp;(t.event.bind(e,"MSPointerDown",u),t.event.bind(e,"MSPointerMove",c),t.event.bind(e,"MSPointerUp",p)))}function a(r,i){e.scrollTop-=i,e.scrollLeft-=r,Mr(t)}function s(t){return t.targetTouches?t.targetTouches[0]:t}function l(t){return(!t.pointerType||"pen"!==t.pointerType||0!==t.buttons)&amp;&amp;(!(!t.targetTouches||1!==t.targetTouches.length)||!(!t.pointerType||"mouse"===t.pointerType||t.pointerType===t.MSPOINTER_TYPE_MOUSE))}function u(t){if(l(t)){var e=s(t);r.pageX=e.pageX,r.pageY=e.pageY,i=(new Date).getTime(),null!==o&amp;&amp;clearInterval(o)}}function c(o){if(l(o)){var u=s(o),c={pageX:u.pageX,pageY:u.pageY},p=c.pageX-r.pageX,h=c.pageY-r.pageY;if(function(t,r,i){if(!e.contains(t))return!1;for(var n=t;n&amp;&amp;n!==e;){if(n.classList.contains(_r.consuming))return!0;var o=cr(n);if(i&amp;&amp;o.overflowY.match(/(scroll|auto)/)){var a=n.scrollHeight-n.clientHeight;if(a&gt;0&amp;&amp;(n.scrollTop&gt;0&amp;&amp;i&lt;0||n.scrollTop&lt;a&amp;&amp;i&gt;0))return!0}if(r&amp;&amp;o.overflowX.match(/(scroll|auto)/)){var s=n.scrollWidth-n.clientWidth;if(s&gt;0&amp;&amp;(n.scrollLeft&gt;0&amp;&amp;r&lt;0||n.scrollLeft&lt;s&amp;&amp;r&gt;0))return!0}n=n.parentNode}return!1}(o.target,p,h))return;a(p,h),r=c;var d=(new Date).getTime(),f=d-i;f&gt;0&amp;&amp;(n.x=p/f,n.y=h/f,i=d),function(r,i){var n=Math.floor(e.scrollTop),o=e.scrollLeft,a=Math.abs(r),s=Math.abs(i);if(s&gt;a){if(i&lt;0&amp;&amp;n===t.contentHeight-t.containerHeight||i&gt;0&amp;&amp;0===n)return 0===window.scrollY&amp;&amp;i&gt;0&amp;&amp;Pr.isChrome}else if(a&gt;s&amp;&amp;(r&lt;0&amp;&amp;o===t.contentWidth-t.containerWidth||r&gt;0&amp;&amp;0===o))return!0;return!0}(p,h)&amp;&amp;o.preventDefault()}}function p(){t.settings.swipeEasing&amp;&amp;(clearInterval(o),o=setInterval((function(){t.isInitialized?clearInterval(o):n.x||n.y?Math.abs(n.x)&lt;.01&amp;&amp;Math.abs(n.y)&lt;.01?clearInterval(o):(a(30*n.x,30*n.y),n.x*=.8,n.y*=.8):clearInterval(o)}),10))}}},Rr=function(t,e){var r=this;if(void 0===e&amp;&amp;(e={}),"string"==typeof t&amp;&amp;(t=document.querySelector(t)),!t||!t.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var i in this.element=t,t.classList.add(gr),this.settings={handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1},e)this.settings[i]=e[i];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var n,o,a=function(){return t.classList.add(xr.focus)},s=function(){return t.classList.remove(xr.focus)};this.isRtl="rtl"===cr(t).direction,!0===this.isRtl&amp;&amp;t.classList.add(vr),this.isNegativeScroll=(o=t.scrollLeft,t.scrollLeft=-1,n=t.scrollLeft&lt;0,t.scrollLeft=o,n),this.negativeScrollAdjustment=this.isNegativeScroll?t.scrollWidth-t.clientWidth:0,this.event=new Tr,this.ownerDocument=t.ownerDocument||document,this.scrollbarXRail=hr(_r.rail("x")),t.appendChild(this.scrollbarXRail),this.scrollbarX=hr(_r.thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",a),this.event.bind(this.scrollbarX,"blur",s),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var l=cr(this.scrollbarXRail);this.scrollbarXBottom=parseInt(l.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=Ir(l.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=Ir(l.borderLeftWidth)+Ir(l.borderRightWidth),pr(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=Ir(l.marginLeft)+Ir(l.marginRight),pr(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=hr(_r.rail("y")),t.appendChild(this.scrollbarYRail),this.scrollbarY=hr(_r.thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",a),this.event.bind(this.scrollbarY,"blur",s),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var u=cr(this.scrollbarYRail);this.scrollbarYRight=parseInt(u.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=Ir(u.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function(t){var e=cr(t);return Ir(e.width)+Ir(e.paddingLeft)+Ir(e.paddingRight)+Ir(e.borderLeftWidth)+Ir(e.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=Ir(u.borderTopWidth)+Ir(u.borderBottomWidth),pr(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=Ir(u.marginTop)+Ir(u.marginBottom),pr(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:t.scrollLeft&lt;=0?"start":t.scrollLeft&gt;=this.contentWidth-this.containerWidth?"end":null,y:t.scrollTop&lt;=0?"start":t.scrollTop&gt;=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach((function(t){return Lr[t](r)})),this.lastScrollTop=Math.floor(t.scrollTop),this.lastScrollLeft=t.scrollLeft,this.event.bind(this.element,"scroll",(function(t){return r.onScroll(t)})),Mr(this)};Rr.prototype.update=function(){this.isAlive&amp;&amp;(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,pr(this.scrollbarXRail,{display:"block"}),pr(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=Ir(cr(this.scrollbarXRail).marginLeft)+Ir(cr(this.scrollbarXRail).marginRight),this.railYMarginHeight=Ir(cr(this.scrollbarYRail).marginTop)+Ir(cr(this.scrollbarYRail).marginBottom),pr(this.scrollbarXRail,{display:"none"}),pr(this.scrollbarYRail,{display:"none"}),Mr(this),Cr(this,"top",0,!1,!0),Cr(this,"left",0,!1,!0),pr(this.scrollbarXRail,{display:""}),pr(this.scrollbarYRail,{display:""}))},Rr.prototype.onScroll=function(t){this.isAlive&amp;&amp;(Mr(this),Cr(this,"top",this.element.scrollTop-this.lastScrollTop),Cr(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},Rr.prototype.destroy=function(){this.isAlive&amp;&amp;(this.event.unbindAll(),mr(this.scrollbarX),mr(this.scrollbarY),mr(this.scrollbarXRail),mr(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},Rr.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter((function(t){return!t.match(/^ps([-_].+|)$/)})).join(" ")};const Or=Rr;var Br=r(9755);r.e(660).then(r.bind(r,4660));r(686);var Fr=r(9755);var jr=r(2302),Ur=r(9755);r.e(410).then(r.bind(r,4410));var Nr=r(9755);var Vr=r(8378),qr=r(9866),Wr=r(8601),Gr=r(9755);function Hr(t,e,r,i,n,o,a){try{var s=t[o](a),l=s.value}catch(t){return void r(t)}s.done?e(l):Promise.resolve(l).then(i,n)}var Zr=t=&gt;{var e=t=&gt;{var e=travel.options.clickTrip;Gr.cookie("click-trip",1,Gr.extend({expires:3,path:"/"},travel.options.staticDomain?{domain:"."+travel.options.hotelDestinationDomainName}:{})),Gr.get("/metric.php",{page:"stat",fn:"increment",mn:"clickunder.click-trip_counter",args:{}},(function(t,e,r){travel.log(t,e,r)}));var r=Gr('input[name="from"]',t).val(),i=Gr('input[name="to"]',t).val(),n=Gr('input[name="adults"]',t).val(),o=Gr('input[name="children"]',t).val();if(travel.options.clickunderUrl&amp;&amp;!travel.isMobile())return a=travel.options.clickunderUrl,a+="?"+Gr(t).serialize(),a+="&amp;sid="+travel.options.siteId,a+="&amp;hid="+travel.options.objectId,e.subAccount&amp;&amp;(a+="&amp;subacc="+e.subAccount),a;var a="";return"countryEmptyBcomID"===e.hotelBookingDestinationType?a="https://www.booking.com/country/"+e.hotelBookingCityId+".html?":(a="https://www.booking.com/searchresults.html?",a+="&amp;dest_type="+e.hotelBookingDestinationType,a+="&amp;dest_id="+e.hotelBookingCityId),a+="&amp;aid=1549630",e.hotelBookingId&amp;&amp;(a+="&amp;highlighted_hotels="+e.hotelBookingId),a+="&amp;checkin="+r,a+="&amp;checkout="+i,a+="&amp;group_adults="+n,a+="&amp;group_children="+o,Gr(".j-children-select").each((function(){a+="&amp;age="+Gr(this).find("option:selected").val()})),e.subAccount&amp;&amp;(a+="&amp;label=",a+=e.subAccount,travel.isMobile()&amp;&amp;(a+="-mob")),a};(function(){var r,i=(r=function*(){t.on("submit",(t=&gt;{if(t.isDefaultPrevented()&amp;&amp;0==t.result)return!1;t.preventDefault();var r=Gr(t.target),i=location.pathname||"/",n=r.attr("action");i+="?"+r.serialize(),i+="&amp;_"+(new Date).getTime(),i+="&amp;clirder=1",i+=n;var o=e(r);return(0,Vr.L)({category:"clickunder",action:"open",id:travel.options.logId,h:travel.options.hotelExtId,labelData:(0,qr.Z)({},o)}),1===travel.options.device||2===travel.options.device?((0,Wr.d8)("hotelName",travel.options.hotelName,{domain:"."+travel.options.siteDomain}),(0,Wr.d8)("connectUrl",o,{domain:"."+travel.options.siteDomain}),(0,Wr.d8)("sourceUrl",document.location.origin+i,{domain:"."+travel.options.siteDomain}),window.open("".concat(window.location.protocol,"//").concat(travel.options.siteDomain,"/connect/")),location.href=i):(window.open(i),location.href=o),!1}))},function(){var t=this,e=arguments;return new Promise((function(i,n){var o=r.apply(t,e);function a(t){Hr(o,i,n,a,s,"next",t)}function s(t){Hr(o,i,n,a,s,"throw",t)}a(void 0)}))});return function(){return i.apply(this,arguments)}})()()},Xr=r(9755);function $r(t,e,r,i,n,o,a){try{var s=t[o](a),l=s.value}catch(t){return void r(t)}s.done?e(l):Promise.resolve(l).then(i,n)}function Yr(t){return function(){var e=this,r=arguments;return new Promise((function(i,n){var o=t.apply(e,r);function a(t){$r(o,i,n,a,s,"next",t)}function s(t){$r(o,i,n,a,s,"throw",t)}a(void 0)}))}}function Kr(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&amp;&amp;(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,i)}return r}function Jr(t){for(var e=1;e&lt;arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Kr(Object(r),!0).forEach((function(e){Qr(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Kr(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Qr(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var ti=r(9755);var ei=r(9755);var ri=r(9755);var ii=r(6158),ni=r.n(ii),oi=r(9755);var ai=r(9755);var si=r(9755);var li=r(9755);var ui=r(9755);var ci,pi,hi,di,fi=r(9755);function mi(t,e,r,i,n,o,a){try{var s=t[o](a),l=s.value}catch(t){return void r(t)}s.done?e(l):Promise.resolve(l).then(i,n)}function yi(t){return function(){var e=this,r=arguments;return new Promise((function(i,n){var o=t.apply(e,r);function a(t){mi(o,i,n,a,s,"next",t)}function s(t){mi(o,i,n,a,s,"throw",t)}a(void 0)}))}}ci={path:"sdebug"},di=(null===(pi=travel.options)||void 0===pi?void 0:pi.nid)||(null===(hi=travel.opts)||void 0===hi?void 0:hi.nid),nr({dsn:ar({publicKey:"240c0ff5301d4c8fa78e9acc9b19e028",protocol:location.protocol.replace(":",""),host:location.host,path:"slog",projectId:"25"},ci)}),di&amp;&amp;Ue("configureScope",(t=&gt;t.setTag("networkID",di))),g(),fi.extend(window.travel,{log(){if("undefined"!=typeof console&amp;&amp;console.log&amp;&amp;travel.options.devel){var t=[].slice.call(arguments,0);console.log.apply(console,t)}},isMobile:()=&gt;fi(window).width()&lt;=767,isTablet:()=&gt;fi(window).width()&lt;=1040}),setTimeout(yi((function*(){var{default:t}=yield r.e(755).then(r.bind(r,3755));new t;var{default:e}=yield r.e(536).then(r.bind(r,9536));new e;var{showCookiePolicyIfNeed:i}=yield r.e(934).then(r.bind(r,5934));i({autoClose:!0}),yield r.e(767).then(r.bind(r,6767))})),0),new ur.default,travel.isTablet()||0===Br(".j-local-attractions").length||new Or(".j-local-attractions",{suppressScrollX:!0}),new class{constructor(t){this.cache={},this.options=t||{},this.init()}init(){this.initializeCache()}initializeCache(){this.cache.document=Fr(document),this.cache.window=Fr(window),this.cache.select=Fr("select")}initializeEvents(){this.cache.select.not(".js-select").select2({})}},travel.isMobile()&amp;&amp;(lr(document.querySelector('.j-accordion-wrapper[data-accordion="footer"]'),yi((function*(){var{initMobileAccordion:t}=yield r.e(50).then(r.bind(r,8050));t("footer")}))),lr(document.querySelector('.j-accordion-wrapper[data-accordion="header"]'),yi((function*(){var{initMobileAccordion:t}=yield r.e(50).then(r.bind(r,8050));t("header")}))),lr(document.querySelector('.j-accordion-wrapper[data-accordion="amenities"]'),yi((function*(){var{initMobileAccordion:t}=yield r.e(50).then(r.bind(r,8050));t("amenities")})))),new jr.default,new class{constructor(t){this.cache={},this.options=t||{},this.init()}init(){this.initializeCache(),this.initializeEvents()}initializeCache(){this.initCalendarLanguage(),this.cache.availForm=Ur(".j-avail-form"),this.cache.dateFrom=".j-date-from",this.cache.dateFromField=".j-date-from-field",this.cache.dateToField=".j-date-to-field",this.cache.dateFromDayField=".j-date-from-day",this.cache.dateFromMonthField=".j-date-from-month",this.cache.dateFromWeekFeild=".j-date-from-week",this.cache.dateTo=".j-date-to",this.cache.dateToDayField=".j-date-to-day",this.cache.dateToMonthField=".j-date-to-month",this.cache.dateToWeekField=".j-date-to-week",this.cache.openCalendarBtn=".j-open-calendar",this.cache.guestsFieldWrapper=".j-guests-wrapper",this.cache.customArrowLeft='&lt;svg class="datepicker__custom-arrow datepicker__custom-arrow--left icon-down-arrow"&gt;\n             \t&lt;use xlink:href="/new/designs/70/build/icons-sprite.svg#down-arrow"&gt;&lt;/use&gt;\n             &lt;/svg&gt;',this.cache.customArrowRight='&lt;svg class="datepicker__custom-arrow datepicker__custom-arrow--right icon-down-arrow"&gt;\n             \t&lt;use xlink:href="/new/designs/70/build/icons-sprite.svg#down-arrow"&gt;&lt;/use&gt;\n             &lt;/svg&gt;'}initializeEvents(){this.cache.availForm.each(((t,e)=&gt;{this.initCalendar(t,e)}))}initCalendar(t,e){var r=new Date,i=Ur(e).find(this.cache.dateFrom),n=Ur(e).find(this.cache.dateTo),o=Ur(e).find(this.cache.dateFromField),a=Ur(e).find(this.cache.dateToField),s=Ur(e).find(this.cache.openCalendarBtn),l={autoClose:!0,stickyMonths:!0,hoveringTooltip:!1,language:"ar"==travel.options.language?"ar2":travel.options.language,maxDays:30,minDays:2,showTopbar:!1,showShortcuts:!1,customArrowPrevSymbol:this.cache.customArrowLeft,customArrowNextSymbol:this.cache.customArrowRight,singleMonth:!1,startDate:r,container:e,startOfWeek:"monday",getValue:()=&gt;i.val()&amp;&amp;n.val()?"".concat(i.val()," to ").concat(n.val()):"",setValue:(t,r,o)=&gt;{i.val(r),n.val(o),this.writeValueToField(Ur(e),r,o)}};travel.isMobile()?l.singleMonth=!0:l.singleMonth=!1,Ur(s).dateRangePicker(l).bind("datepicker-first-date-selected",((t,r)=&gt;{this.writeValueToField(Ur(e),r.date1,n.val()),o.removeClass("is-active"),a.addClass("is-active")})).bind("datepicker-change",((t,r)=&gt;{this.writeValueToField(Ur(e),r.date1,r.date2),s.removeClass("is-active")})).bind("datepicker-close",(()=&gt;{s.removeClass("is-active")})).bind("datepicker-open",(()=&gt;{o.addClass("is-active"),Ur(this.cache.guestsFieldWrapper).removeClass("is-open")})),s.on("click",(t=&gt;{t.stopPropagation(),s.data("dateRangePicker").open()})),this.writeValueToField(Ur(e),i.val(),n.val())}writeValueToField(t,e,r){var i="en"===travel.options.language?"default":travel.options.language,n=t.find(this.cache.dateFromDayField),o=t.find(this.cache.dateFromMonthField),a=t.find(this.cache.dateFromWeekFeild),s=t.find(this.cache.dateToDayField),l=t.find(this.cache.dateToMonthField),u=t.find(this.cache.dateToWeekField),c=this.parseDate(e),p=this.parseDate(r);n.html(c.day),o.html(Ur.dateRangePickerLanguages[i]["month-name"][c.month]),travel.isMobile()&amp;&amp;void 0!==Ur.dateRangePickerLanguages[i]["day-names-short"]?a.html(Ur.dateRangePickerLanguages[i]["day-names-short"][c.week]):a.html(Ur.dateRangePickerLanguages[i]["day-name"][c.week]),s.html(p.day),l.html(Ur.dateRangePickerLanguages[i]["month-name"][p.month]),travel.isMobile()&amp;&amp;void 0!==Ur.dateRangePickerLanguages[i]["day-names-short"]?u.html(Ur.dateRangePickerLanguages[i]["day-names-short"][p.week]):u.html(Ur.dateRangePickerLanguages[i]["day-name"][p.week])}parseDate(t){var e=new Date(t);return{day:e.getDate(),month:e.getMonth(),week:e.getDay()}}initCalendarLanguage(){Ur.dateRangePickerLanguages.ko={selected:"기간:",day:"일",days:"일간",apply:"닫기","week-1":"월","week-2":"화","week-3":"수","week-4":"목","week-5":"금","week-6":"토","week-7":"일","week-number":"주","month-name":["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],shortcuts:"단축키들",past:"지난(오늘기준)",following:"이후(오늘기준)",previous:"이전","prev-week":"1주","prev-month":"1달","prev-year":"1년",next:"다음","next-week":"1주","next-month":"1달","next-year":"1년","less-than":"날짜 범위는 %d 일보다 많을 수 없습니다","more-than":"날짜 범위는 %d 일보다 작을 수 없습니다","default-more":"날짜 범위를 %d 일보다 길게 선택해 주세요","default-single":"날짜를 선택해 주세요","default-less":"%d 일보다 작은 날짜를 선택해 주세요","default-range":"%d와 %d 일 사이의 날짜 범위를 선택해 주세요","default-default":"날짜 범위를 선택해 주세요",time:"시각",hour:"시",minute:"분","day-name":["일요일","월요일","화요일","수요일","목요일","금요일","토요일"],"day-names-short":["토","일","월","화","수","목","금"]},Ur.dateRangePickerLanguages.uk={selected:"Вибрано:",day:"День",days:"Днів",apply:"Застосувати","week-1":"пн","week-2":"вт","week-3":"ср","week-4":"чт","week-5":"пт","week-6":"сб","week-7":"нд","month-name":["січень","лютий","березень","квітень","травень","червень","липень","серпень","вересень","жовтень","листопад","грудень"],shortcuts:"Швидкий вибір","custom-values":"Значення користувача",past:"Минулі",following:"Наступні",previous:"&amp;nbsp;&amp;nbsp;&amp;nbsp;","prev-week":"Тиждень","prev-month":"Місяць","prev-year":"Рік",next:"&amp;nbsp;&amp;nbsp;&amp;nbsp;","next-week":"Тиждень","next-month":"Місяць","next-year":"Рік","less-than":"Діапазон не може бути більш ніж %d днів","more-than":"Діапазон не може бути меньш ніж %d днів","default-more":"Будь ласка виберіть діапазон більше %d днів","default-single":"Будь ласка виберіть дату","default-less":"Будь ласка виберіть діапазон менше %d днів","default-range":"Будь ласка виберіть діапазон між %d та %d днями","default-default":"Будь ласка виберіть діапазон",time:"Час",hour:"Години",minute:"Хвилини","day-name":["неділя","понеділок","вівторок","середа","четвер","п’ятниця","субота"],"day-names-short":["Нд","Пн","Вт","Ср","Чт","Пт","Сб"]},Ur.dateRangePickerLanguages.sv={selected:"Selected:",day:"Day",days:"Days",apply:"Close","week-7":"Sö","week-1":"Må","week-2":"Ti","week-3":"On","week-4":"To","week-5":"Fr","week-6":"Lö","week-number":"Ve","month-name":["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"],shortcuts:"Shortcuts","custom-values":"Custom Values",past:"Past",following:"Following",previous:"Previous","prev-week":"Week","prev-month":"Month","prev-year":"Year",next:"Next","next-week":"Week","next-month":"Month","next-year":"Year","less-than":"Date range should not be more than %d days","more-than":"Date range should not be less than %d days","default-more":"Please select a date range longer than %d days","default-single":"Please select a date","default-less":"Please select a date range less than %d days","default-range":"Please select a date range between %d and %d days","default-default":"Please select a date range",time:"Time",hour:"Hour",minute:"Minute","day-name":["Söndag","Måndag","Tisdag","Onsdag","Torsdag","Fredag","Lördag"],"day-names-short":["Sön","Mån","Tis","Ons","Tor","Fre","Lör"]},Ur.dateRangePickerLanguages.cs={selected:"Selected:",day:"Day",days:"Days",apply:"Close","week-7":"ne","week-1":"po","week-2":"út","week-3":"st","week-4":"čt","week-5":"pá","week-6":"so","week-number":"Týd","month-name":["leden","únor","březen","duben","květen","červen","červenec","srpen","září","říjen","listopad","prosinec"],shortcuts:"Shortcuts","custom-values":"Custom Values",past:"Past",following:"Following",previous:"Previous","prev-week":"Week","prev-month":"Month","prev-year":"Year",next:"Next","next-week":"Week","next-month":"Month","next-year":"Year","less-than":"Date range should not be more than %d days","more-than":"Date range should not be less than %d days","default-more":"Please select a date range longer than %d days","default-single":"Please select a date","default-less":"Please select a date range less than %d days","default-range":"Please select a date range between %d and %d days","default-default":"Please select a date range",time:"Time",hour:"Hour",minute:"Minute","day-name":["neděle","pondělí","úterý","středa","čtvrtek","pátek","sobota"],"day-names-short":["ne","po","út","st","čt","pá","so"]},Ur.dateRangePickerLanguages.zh=Ur.dateRangePickerLanguages.cn,Ur.dateRangePickerLanguages.zh["day-name"]=["星期一","星期二","星期三","星期四","星期五","星期六","星期日"],Ur.dateRangePickerLanguages.el={selected:"Selected:",day:"Day",days:"Days",apply:"Close","week-7":"Κυ","week-1":"Δε","week-2":"Τρ","week-3":"Τε","week-4":"Πε","week-5":"Πα","week-6":"Σα","week-number":"Εβδ","month-name":["Ιανουάριος","Φεβρουάριος","Μάρτιος","Απρίλιος","Μάιος","Ιούνιος","Ιούλιος","Αύγουστος","Σεπτέμβριος","Οκτώβριος","Νοέμβριος","Δεκέμβριος"],shortcuts:"Shortcuts","custom-values":"Custom Values",past:"Past",following:"Following",previous:"Previous","prev-week":"Week","prev-month":"Month","prev-year":"Year",next:"Next","next-week":"Week","next-month":"Month","next-year":"Year","less-than":"Date range should not be more than %d days","more-than":"Date range should not be less than %d days","default-more":"Please select a date range longer than %d days","default-single":"Please select a date","default-less":"Please select a date range less than %d days","default-range":"Please select a date range between %d and %d days","default-default":"Please select a date range",time:"Time",hour:"Hour",minute:"Minute","day-name":["Κυριακή","Δευτέρα","Τρίτη","Τετάρτη","Πέμπτη","Παρασκευή","Σάββατο"],"day-names-short":["Κυρ","Δευ","Τρι","Τετ","Πεμ","Παρ","Σαβ"]},Ur.dateRangePickerLanguages.tr={selected:"Selected:",day:"Day",days:"Days",apply:"Close","week-1":"Pt","week-2":"Sa","week-3":"Ça","week-4":"Pe","week-5":"Cu","week-6":"Ct","week-7":"Pz","week-number":"Hf","month-name":["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"],shortcuts:"Shortcuts","custom-values":"Custom Values",past:"Past",following:"Following",previous:"Previous","prev-week":"Week","prev-month":"Month","prev-year":"Year",next:"Next","next-week":"Week","next-month":"Month","next-year":"Year","less-than":"Date range should not be more than %d days","more-than":"Date range should not be less than %d days","default-more":"Please select a date range longer than %d days","default-single":"Please select a date","default-less":"Please select a date range less than %d days","default-range":"Please select a date range between %d and %d days","default-default":"Please select a date range",time:"Time",hour:"Hour",minute:"Minute","day-name":["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"],"day-names-short":["Pz","Pt","Sa","Ça","Pe","Cu","Ct"]},Ur.dateRangePickerLanguages.ar=Ur.dateRangePickerLanguages.ar2={selected:"Selected:",day:"Day",days:"Days",apply:"Close","week-1":"الاثنين","week-2":"الثلاثاء","week-3":"الأربعاء","week-4":"الخميس","week-5":"الجمعة","week-6":"السبت","week-7":"الأحد","week-number":"أسبوع","month-name":["كانون الثاني","شباط","آذار","نيسان","مايو","حزيران","تموز","آب","أيلول","تشرين الأول","تشرين الثاني","كانون الأول"],shortcuts:"Shortcuts","custom-values":"Custom Values",past:"Past",following:"Following",previous:"Previous","prev-week":"Week","prev-month":"Month","prev-year":"Year",next:"Next","next-week":"Week","next-month":"Month","next-year":"Year","less-than":"Date range should not be more than %d days","more-than":"Date range should not be less than %d days","default-more":"Please select a date range longer than %d days","default-single":"Please select a date","default-less":"Please select a date range less than %d days","default-range":"Please select a date range between %d and %d days","default-default":"Please select a date range",time:"Time",hour:"Hour",minute:"Minute","day-name":["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],"day-names-short":["أحد","اثنين","ثلاثاء","أربعاء","خميس","جمعة","سبت"]},Ur.dateRangePickerLanguages.he={selected:"Selected:",day:"Day",days:"Days",apply:"Close","week-1":"ב'","week-2":"ג'","week-3":"ד'","week-4":"ה'","week-5":"ו'","week-6":"שבת","week-7":"א'","week-number":"Wk","month-name":["ינואר","פברואר","מרץ","אפריל","מאי","יוני","יולי","אוגוסט","ספטמבר","אוקטובר","נובמבר","דצמבר"],shortcuts:"Shortcuts","custom-values":"Custom Values",past:"Past",following:"Following",previous:"Previous","prev-week":"Week","prev-month":"Month","prev-year":"Year",next:"Next","next-week":"Week","next-month":"Month","next-year":"Year","less-than":"Date range should not be more than %d days","more-than":"Date range should not be less than %d days","default-more":"Please select a date range longer than %d days","default-single":"Please select a date","default-less":"Please select a date range less than %d days","default-range":"Please select a date range between %d and %d days","default-default":"Please select a date range",time:"Time",hour:"Hour",minute:"Minute","day-name":["ראשון","שני","שלישי","רביעי","חמישי","שישי","שבת"],"day-names-short":["א'","ב'","ג'","ד'","ה'","ו'","שבת"]},Ur.dateRangePickerLanguages.fr={selected:"Selected:",day:"Day",days:"Days",apply:"Close","week-7":"D","week-1":"L","week-2":"M","week-3":"M","week-4":"J","week-5":"V","week-6":"S","week-number":"Sem.","month-name":["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"],shortcuts:"Shortcuts","custom-values":"Custom Values",past:"Past",following:"Following",previous:"Previous","prev-week":"Week","prev-month":"Month","prev-year":"Year",next:"Next","next-week":"Week","next-month":"Month","next-year":"Year","less-than":"Date range should not be more than %d days","more-than":"Date range should not be less than %d days","default-more":"Please select a date range longer than %d days","default-single":"Please select a date","default-less":"Please select a date range less than %d days","default-range":"Please select a date range between %d and %d days","default-default":"Please select a date range",time:"Time",hour:"Hour",minute:"Minute","day-name":["Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi"],"day-names-short":["dim.","lun.","mar.","mer.","jeu.","ven.","sam."]},Ur.dateRangePickerLanguages.ja={selected:"選択しました:",day:"日",days:"日々",apply:"閉じる","week-1":"月","week-2":"火","week-3":"水","week-4":"木","week-5":"金","week-6":"土","week-7":"日","month-name":["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],shortcuts:"クイック選択",past:"過去",following:"将来",previous:"&amp;nbsp;&amp;nbsp;&amp;nbsp;","prev-week":"先週、","prev-month":"先月","prev-year":"昨年",next:"&amp;nbsp;&amp;nbsp;&amp;nbsp;","next-week":"来週","next-month":"来月","next-year":"来年","less-than":"日付の範囲は ％d 日以上にすべきではありません","more-than":"日付の範囲は ％d 日を下回ってはいけません","default-more":"％d 日よりも長い期間を選択してください","default-less":"％d 日未満の期間を選択してください","default-range":"％d と％ d日の間の日付範囲を選択してください","default-single":"日付を選択してください","default-default":"日付範囲を選択してください",time:"時間",hour:"時間",minute:"分","day-name":["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"],"day-names-short":["日","月","火","水","木","金","土"]},Ur.dateRangePickerLanguages.br={selected:"Selected:",day:"Day",days:"Days",apply:"Close","week-7":"Do","week-1":"Se","week-2":"Te","week-3":"Qa","week-4":"Qi","week-5":"Sx","week-6":"Sa","month-name":["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],shortcuts:"Shortcuts","custom-values":"Custom Values",past:"Past",following:"Following",previous:"Previous","prev-week":"Week","prev-month":"Month","prev-year":"Year",next:"Next","next-week":"Week","next-month":"Month","next-year":"Year","less-than":"Date range should not be more than %d days","more-than":"Date range should not be less than %d days","default-more":"Please select a date range longer than %d days","default-single":"Please select a date","default-less":"Please select a date range less than %d days","default-range":"Please select a date range between %d and %d days","default-default":"Please select a date range",time:"Time",hour:"Hour",minute:"Minute","day-name":["Domingo","Segunda-feira","Terça-feira","Quarta-feira","Quinta-feira","Sexta-feira","Sábado"],"day-names-short":["Dom","Seg","Terç","Qua","Qui","Sex","Sáb"]},Ur.dateRangePickerLanguages.us={selected:"Selected:",day:"Day",days:"Days",apply:"Close","week-1":"mo","week-2":"tu","week-3":"we","week-4":"th","week-5":"fr","week-6":"sa","week-7":"su","week-number":"W","month-name":["january","february","march","april","may","june","july","august","september","october","november","december"],shortcuts:"Shortcuts","custom-values":"Custom Values",past:"Past",following:"Following",previous:"Previous","prev-week":"Week","prev-month":"Month","prev-year":"Year",next:"Next","next-week":"Week","next-month":"Month","next-year":"Year","less-than":"Date range should not be more than %d days","more-than":"Date range should not be less than %d days","default-more":"Please select a date range longer than %d days","default-single":"Please select a date","default-less":"Please select a date range less than %d days","default-range":"Please select a date range between %d and %d days","default-default":"Please select a date range",time:"Time",hour:"Hour",minute:"Minute"},Ur.dateRangePickerLanguages.default["day-name"]=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Ur.dateRangePickerLanguages.default["day-names-short"]=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Ur.dateRangePickerLanguages.de["day-name"]=["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],Ur.dateRangePickerLanguages.es["day-name"]=["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"],Ur.dateRangePickerLanguages.it["day-name"]=["Domenica","Lunedì","Martedì","Mercoledì","Giovedì","Venerdì","Sabato"],Ur.dateRangePickerLanguages.nl["day-name"]=["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"],Ur.dateRangePickerLanguages.pt["day-name"]=["Domingo","Segunda-feira","Terça-feira","Quarta-feira","Quinta-feira","Sexta-feira","Sábado"],Ur.dateRangePickerLanguages.no["day-name"]=["søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag"],Ur.dateRangePickerLanguages.da["day-name"]=["Søndag","Mandag","Tirsdag","Onsdag","Torsdag","Fredag","Lørdag"],Ur.dateRangePickerLanguages.hu["day-name"]=["Vasárnap","Hétfő","Kedd","Szerda","Csütörtök","Péntek","Szombat"],Ur.dateRangePickerLanguages.pl["day-name"]=["Niedziela","Poniedziałek","Wtorek","Środa","Czwartek","Piątek","Sobota"],Ur.dateRangePickerLanguages.ru["day-name"]=["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"],Ur.dateRangePickerLanguages.br["day-name"]=["Domingo","Segunda-feira","Terça-feira","Quarta-feira","Quinta-feira","Sexta-feira","Sábado"],Ur.dateRangePickerLanguages.us["day-name"]=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]}};var gi=new class{constructor(t){this.cache={},this.options=t||{},this.init()}init(){this.initializeCache(),this.initializeEvents()}initializeCache(){this.cache.document=Nr(document),this.cache.window=Nr(window),this.cache.body=Nr("body"),this.cache.isRtl=Nr('[dir="rtl"]').length,this.cache.availForm=Nr(".j-avail-form"),this.cache.guestsWrapper=".j-guests-wrapper",this.cache.guestsField=Nr(".j-guests-field"),this.cache.guestsFieldNumber=".j-guests-field-number",this.cache.guestsDropdown=".j-guest-dropdown",this.cache.guestDropdownBtnMinus=".j-guest-btn-minus",this.cache.guestDropdownBtnPlus=".j-guest-btn-plus",this.cache.guestDropdownCount=".j-guest-count",this.cache.guestDropdownInput=".j-guest-input",this.cache.guestDropdownError=".j-guest-child-error",this.cache.guestDropdownErrorPlural=".j-guest-child-error-plural",this.cache.guestChildTitle=".j-guest-child-title",this.cache.mainBookingBtn=".j-main-booking-btn",this.cache.dropdownSelect=".j-dropdown-select",this.cache.guestParametres={isCheckAvailDone:travel.options.availableParams.use,minChildren:travel.options.guestsInfo.minChildrenCount,minAdults:1,maxChildren:travel.options.guestsInfo.maxChildrenCount,maxAdults:10}}initializeEvents(){this.actionOpenField(),this.cache.availForm.each(((t,e)=&gt;{this.actionCount(Nr(e)),"1"===this.cache.guestParametres.isCheckAvailDone&amp;&amp;this.addSelectAfterCheckAvail(Nr(e))}))}actionOpenField(){this.cache.guestsField.on("click",(t=&gt;{var e=Nr(t.target);Nr(this.cache.guestsWrapper).hasClass("is-error")||(Nr(this.cache.guestsWrapper).not(e.closest(this.cache.guestsWrapper)).removeClass("is-open"),e.closest(this.cache.guestsWrapper).toggleClass("is-open"))}))}actionCount(t){var e=this;Nr(this.cache.guestDropdownBtnMinus,t).on("click",(r=&gt;{var i=Nr(r.target).attr("data-guest-type");if("children"===i){var n=Nr(r.target).closest(".j-guests-wrapper").find(".j-guest-count").attr("data-guest-value"),o=e.cache.guestParametres.minChildren;n&gt;o&amp;&amp;(this.removeSelect(t,n),n--,e.insertTextInBlock(Nr(r.target),n),this.validateChildrenSelect(t)),n===o&amp;&amp;Nr(this.cache.guestChildTitle,t).hide()}else if("adults"===i){var a=Nr(r.target).closest(".j-guests-wrapper").find(".j-guest-count").attr("data-guest-value");a&gt;e.cache.guestParametres.minAdults&amp;&amp;(a--,e.insertTextInBlock(Nr(r.target),a))}})),Nr(this.cache.guestDropdownBtnPlus,t).on("click",(r=&gt;{var i=Nr(r.target).attr("data-guest-type");if("children"===i){var n=Nr(r.target).closest(".j-guests-wrapper").find(".j-guest-count").attr("data-guest-value");n&lt;e.cache.guestParametres.maxChildren&amp;&amp;(n++,Nr(this.cache.guestChildTitle,t).show(),e.insertTextInBlock(Nr(r.target),n),this.generateSelect(n,t))}else if("adults"===i){var o=Nr(r.target).closest(".j-guests-wrapper").find(".j-guest-count").attr("data-guest-value");o&lt;e.cache.guestParametres.maxAdults&amp;&amp;(o++,e.insertTextInBlock(Nr(r.target),o))}})),this.cache.document.on("click",(e=&gt;{0===Nr(e.target).closest(".j-guests-wrapper").length&amp;&amp;this.validateChildrenSelect(t)&amp;&amp;Nr(".j-guests-wrapper",t).removeClass("is-open")}))}insertTextInBlock(t,e){t.closest(".j-guests-wrapper").find(".j-guest-count").attr("data-guest-value",e),t.closest(".j-guests-wrapper").find(".j-guest-count").html(e),t.closest(".j-guests-wrapper").find(".j-guests-field-number").html(e),t.closest(".j-guests-wrapper").find(".j-guest-input").val(e)}createSelect(t,e){var r=Nr('&lt;select class="datepicker__dropdown-select-native j-children-select j-select-index-'.concat(t,'" name="childAge').concat(t,'" data-select="').concat(t,'"&gt;&lt;/select&gt;')),i='&lt;option value=""&gt;-&lt;/option&gt;\n                             &lt;option value="0" '.concat(0===e?"selected":null,"&gt;&lt; 1&lt;/option&gt;");r.append(i);for(var n=1;n&lt;17;n++){var o='&lt;option value="'.concat(n,'" ').concat(e===n?"selected":null,"&gt;").concat(n,"&lt;/option&gt;");r.append(o)}return r.on("change",(t=&gt;{Nr(t.target).closest(".j-guests-wrapper").hasClass("is-error")&amp;&amp;this.validateChildrenSelect(t.target.closest(".j-avail-form"))})),r}generateSelect(t,e,r){var i=this.createSelect(t,r);Nr(this.cache.dropdownSelect,e).append(i),travel.isTablet()||i.select2({minimumResultsForSearch:-1,theme:"default j-select-index-".concat(t),width:"calc(33.33% - 7px)"})}removeSelect(t,e){Nr(this.cache.dropdownSelect,t).children(".j-select-index-".concat(e)).remove()}validateChildrenSelect(t){var e=Nr(".j-guest-child-error-hide",t),r=Nr(".j-guest-child-error",t),i=Nr(".j-guest-child-error-plural",t),n=Nr(".j-dropdown-select",t),o=Nr(".j-open-calendar",t),a=0;return Nr(".j-children-select",t).each((function(){var t=travel.isTablet()?Nr(this):Nr(this).next(".select2").find(".select2-selection.select2-selection--single");Nr(this).val()?t.removeClass("is-error"):(t.addClass("is-error"),a++)})),e.hide(),1===a?r.show():a&gt;1&amp;&amp;i.show(),a&gt;0?(Nr(this.cache.mainBookingBtn,t).attr("disabled","disabled"),n.addClass("is-error"),n.closest(this.cache.guestsWrapper).addClass("is-error"),o.addClass("is-no-click"),!1):(Nr(this.cache.mainBookingBtn,t).removeAttr("disabled"),n.removeClass("is-error"),n.closest(this.cache.guestsWrapper).removeClass("is-error"),o.removeClass("is-no-click"),!0)}addTextAfterAvail(t,e,r){var i=Nr(".j-guests-field-number[data-guest-type = ".concat(r,"]"),t),n=Nr(".j-guest-count[data-guest-type = ".concat(r,"]"),t),o=Nr(".j-guest-input[name = ".concat(r,"]"),t);i.html(e),n.html(e),n.attr("data-guest-value",e),o.val(e)}addSelectAfterCheckAvail(t){var e=travel.options.availableParams,r=parseInt(e.guestsAdults);this.addTextAfterAvail(t,r,"adults");var i=parseInt(e.guestsChildren);if(0!==i){Nr(this.cache.guestChildTitle,t).show();for(var n=1;n&lt;i+1;n++)this.generateSelect(n,t,parseInt(e["guestsChildAge"+n])),this.addTextAfterAvail(t,n,"children")}}};new class{constructor(t){this.cache={},this.options=t||{},this.init()}init(){this.initializeCache(),this.initializeEvents(),this.loadRooms()}initializeCache(){this.cache.HTML=Xr("html"),this.cache.BODY=Xr("body"),this.cache.roomsContent=Xr(".js-cont-rooms"),this.cache.loaderPosition=0,this.cache.vLoaderProcess=Xr(".j-rooms-loader"),this.cache.isRTL="22"===travel.options.languageId||"25"===travel.options.languageId,this.cache.forms=Xr(".j-avail-form"),this.cache.availPopup=Xr(".js-popup").filter('[data-popup="avail-form"]')}initializeEvents(){travel.options.clickTrip&amp;&amp;1!=Xr.cookie("click-trip")&amp;&amp;Zr(this.cache.forms),this.cache.forms.on("submit",(t=&gt;{var e=Xr(t.target),r={from:e.find("#d_from").val(),to:e.find("#d_to").val(),adults:e.find("#adults").val(),children:e.find("#child").val()};if(this.dateRangeValidation(r.from,r.to))return!1;if(!this.options.guests.validateChildrenSelect(e))return!1;"1"===Xr.cookie("redirect")&amp;&amp;Xr.cookie("redirect","0");for(var i=e.find(".js-child-age-selects"),n=1;n&lt;=parseInt(r.children);n++)r["childAge"+n]=i.find("select[name=childAge"+n+"]").val();this.checkAvail(r),this.cache.availPopup.hasClass("is-open")&amp;&amp;(this.cache.availPopup.removeClass("is-open"),this.cache.BODY.hasClass("is-disable-scroll")&amp;&amp;this.cache.BODY.removeClass("is-disable-scroll"))}))}ajaxErrorCallback(t,e,r,i){var n,o=arguments.length&gt;4&amp;&amp;void 0!==arguments[4]?arguments[4]:{},a=t;r&amp;&amp;(a+=", text: "+r),i&amp;&amp;(a+=", error: "+i);try{var s=Jr(Jr({},{error_source_url:window.location.href,error_data:null,error_url:null}),o);n=JSON.stringify(s)}catch(t){n="Error. Fail to generate additional_data."}e&amp;&amp;(void 0!==e.status&amp;&amp;(a+=", status: "+e.status),void 0!==e.statusText&amp;&amp;(a+=", statustext: "+e.statusText),void 0!==e.responseText&amp;&amp;(a+=", response: "+e.responseText)),n&amp;&amp;(a+=", additional_data: ".concat(btoa(n))),Xr.ajax({method:"post",url:"/",data:{page:"stat",id:travel.options.logId,t:"ev",c:"Error",a,r:Math.floor(1e5*Math.random())}})}xhrStop(){this.xhr&amp;&amp;(this.xhr.abort(),this.xhr=null)}checkAvail(t){this.params=t;var e=this.cache.roomsContent.empty();this.cache.vLoaderProcess.css("display","flex"),this.cache.loaderPosition=this.cache.vLoaderProcess.offset().top,this.cache.BODY.addClass("is-disable-scroll"),this.avHotelReq(t,e)}getAvailMappedParams(t){var e={dataFrom:"from",dataTo:"to",guestsAdults:"adults",guestsChildren:"children"};if((t=t||{}).guestsChildren)for(var r=1;r&lt;=t.guestsChildren;r++)e["guestsChildAge"+r]="childAge"+r;var i={};return Xr.each(t,((t,r)=&gt;{var n=e[t]||t;i[n]=r})),i}loadRooms(){var t=this;if("hotel"===travel.options.typeObject&amp;&amp;!Xr(".js-err-dates-limit").length)if(0!==parseInt(travel.options.availableParams.use||0))setTimeout((function(){var e=t.getAvailMappedParams(travel.options.availableParams);t.checkAvail(e)}),500);else{var e={adults:travel.options.availableParams.guestsAdults};t.getRoomsWoDates(e)}}getRoomsWoDates(t){var e=this;this.xhrStop(),this.xhr=Xr.ajax({type:"GET",url:"/check_avail.php",data:Xr.extend({page:"rooms",hotel_id:travel.options.objectId,from:"",to:"",currency:travel.options.currencyId||1,lang_id:travel.options.languageId,use_dates:0,r:Math.random()},t||{}),success:function(r){if(r.length&lt;16)setTimeout((function(){e.getRoomsWoDates(t)}),3e3);else{var i=e.cache.roomsContent;i.html(r),e.initRoomsScripts(i),e.cache.vLoaderProcess.hide(),e.cache.BODY.removeClass("is-disable-scroll").scrollTop(e.cache.loaderPosition)}},error:function(){setTimeout((function(){e.getRoomsWoDates(t)}),3e3)}})}avHotelReq(t,e,r){var i=this;999===(r=r||0)&amp;&amp;(r=0),0===r&amp;&amp;Xr.ajax({type:"GET",url:"/check_avail.php",data:{page:"check"},dataType:"xml",success:function(t){},error:function(t,e,r){i.ajaxErrorCallback("AvailErrorCheck (xml)",t,e,r,{error_data:{page:"check"},error_url:"/check_avail.php"})}}),this.xhrStop(),this.xhr=Xr.ajax({type:"GET",url:"/check/",data:Xr.extend({page:"search",hotel_id:travel.options.objectId,lang:travel.options.languageId,t:2,r:Math.random(),cnt:r},t),dataType:"json",success:function(r){var n=r.jid||"";""!==n?i.avHotelGet(n,e):r.bad_id?(i.cache.vLoaderProcess.hide(),i.cache.BODY.removeClass("is-disable-scroll").scrollTop(i.cache.loaderPosition)):r.bot||r.error?i.avHotelResult(n,e):setTimeout((function(){i.avHotelReq(t,e,999)}),3e3)},error:function(n,o,a){i.ajaxErrorCallback("AvailError (json)",n,o,a,{error_url:"/check/"}),setTimeout((function(){i.avHotelReq(t,e,r+1)}),3e3)}})}avHotelGet(t,e){var r=this;this.xhrStop(),this.xhr=Xr.ajax({type:"GET",url:"/check/",data:{page:"search",jid:t,t:2,r:Math.random()},dataType:"json",success:function(i){i.done||i.bot||i.error?r.avHotelResult(t,e):i.bad_id?(r.cache.vLoaderProcess.hide(),r.cache.BODY.removeClass("is-disable-scroll").scrollTop(r.cache.loaderPosition)):(i.progress,setTimeout((function(){r.avHotelGet(t,e)}),1e3)),Xr(".js-navigation-item[data-scroll-section=rooms]").trigger("click")},error:function(i,n,o){r.ajaxErrorCallback("AvailError (avhotel)",i,n,o,{error_url:"/check/"}),setTimeout((function(){r.avHotelGet(t,e)}),3e3)}})}avHotelResult(t,e){var i=this;this.xhrStop(),this.xhr=Xr.ajax({type:"GET",url:"/check/",data:{page:"search_list",h:travel.options.objectId,lang:travel.options.languageId,currency:travel.options.currencyId,jid:t,t:2,r:Math.random()},dataType:"html"}).done((function(t){e.html(t),i.initRoomsScripts(e),i.cache.vLoaderProcess.hide(),i.cache.BODY.removeClass("is-disable-scroll").scrollTop(i.cache.loaderPosition),Xr(".j-side-menu-link[data-menu-target-block=rooms]").trigger("click"),Xr(".js-try-other-dates").hide(),-1!==t.search("unavailable")?(setTimeout((function(){i.cache.vLoaderProcess.css("display","flex"),i.cache.loaderPosition=i.cache.vLoaderProcess.offset().top,i.cache.BODY.addClass("is-disable-scroll"),i.altHotelReq(e)}),2e3),Yr((function*(){var{default:t}=yield r.e(106).then(r.bind(r,7106));t()}))()):-1!==t.search("\x3c!--bookingcom_avail--\x3e")||t.search("\x3c!--bookednet_avail--\x3e")})).fail((function(){}))}hotelListReq(){var t={};if(travel.options.availableParams.guestsChildren)for(var e=travel.options.availableParams.guestsChildren,r=1;r&lt;=e;r++){var i="childAge"+r,n=travel.options.availableParams["guestsChildAge".concat(r)];t[i]=n||null}Xr.ajax({type:"GET",url:"/check/",data:Jr(Jr({page:"search",from:travel.options.availableParams.dataFrom,to:travel.options.availableParams.dataTo,adults:travel.options.availableParams.guestsAdults,children:travel.options.availableParams.guestsChildren||null},t),{},{dest_id:travel.options.hotelDestinationId,lang:travel.options.languageId,t:1,use:1,r:Math.random()}),dataType:"json",success:function(t){setTimeout((function(){Xr(".js-splash-wrapper").show()}),500);var e=Xr(".js-hotel-list-redirect").attr("href");t.jid&amp;&amp;(e+="&amp;jid="+t.jid),setTimeout((function(){"book"!==travel.options.page&amp;&amp;(Xr.cookie("redirect","1"),window.location.href=e)}),2e3)},error:function(t,e,r){}})}altHotelReq(t){var e=this;this.xhrStop(),this.xhr=Xr.ajax({type:"GET",url:"/check/",data:Xr.extend({page:"search_alt",hotel_id:travel.options.objectId,lang:travel.options.languageId,t:1,r:Math.random()},this.params),dataType:"json",success:function(r){var i=r.jid||"";""!==i?e.altHotelGet(i,t):r.bad_id||(r.bot||r.error||r.no_hotels?e.altHotelResult(i,t):setTimeout((function(){e.altHotelReq(t)}),3e3))},error:function(r,i,n){e.ajaxErrorCallback("AvailError (althotel)",r,i,n,{error_url:"/check/"}),setTimeout((function(){e.altHotelReq(t)}),3e3)}}),Xr(".js-navigation-item[data-scroll-section=rooms]").trigger("click")}altHotelGet(t,e){var r=this;this.xhrStop(),this.xhr=Xr.ajax({type:"GET",url:"/check/",data:{page:"search_alt",jid:t,t:1,r:Math.random()},dataType:"json",success:function(i){i.done||i.bot||i.error||i.no_hotels?r.altHotelResult(t,e):i.bad_id||(i.progress,setTimeout((function(){r.altHotelGet(t,e)}),3e3))},error:function(i,n,o){r.ajaxErrorCallback("AvailError (althotel2)",i,n,o),setTimeout((function(){r.altHotelGet(t,e)}),3e3)}})}altHotelResult(t,e){var r=this;this.xhrStop(),this.xhr=Xr.get("/check/",{page:"search_list",hotel_id:travel.options.objectId,lang:travel.options.languageId,currency:travel.options.currencyId,d:travel.options.hotelDestinationId||"",na:1,jid:t,t:1,r:Math.random()},(function(t){e.html(t),r.initRoomsScripts(e),r.cache.vLoaderProcess.hide(),r.cache.BODY.removeClass("is-disable-scroll").scrollTop(r.cache.loaderPosition),Xr(".js-navigation-item[data-scroll-section=rooms]").trigger("click")})).fail((function(){setTimeout((function(){r.altHotelResult(t,e)}),3e3)}))}dateRangeValidation(t,e){var r=new Date(t).getTime();return(new Date(e).getTime()-r)/24/60/60/1e3&gt;30}initRoomsScripts(){return Yr((function*(){yield Promise.resolve().then(r.bind(r,2302)).then((t=&gt;{var{default:e}=t;new e})),yield Promise.resolve().then(r.bind(r,5755)).then((t=&gt;{var{default:e}=t;new e})),yield r.e(838).then(r.bind(r,6838)).then((t=&gt;{var{default:e}=t;new e}));var{initMobileAccordion:t}=yield r.e(50).then(r.bind(r,8050));t("rooms")}))()}}({guests:gi}),new class{constructor(t){this.cache={},this.options=t||{},this.init()}init(){this.initializeCache(),this.initializeEvents()}initializeCache(){this.cache.document=ti(document),this.cache.window=ti(window),this.cache.body=ti("body"),this.cache.isRtl=ti('[dir="rtl"]').length,this.cache.formWrapper=".j-main-container",this.cache.formContainer=".j-main-container .j-form-container",this.cache.containerBtnOpenFormModal=".j-btn-open-form-container"}initializeEvents(){this.fixedStateForm(),this.showHideBtnOpenFormModal()}fixedStateForm(){if(!travel.isMobile()&amp;&amp;0!==ti(this.cache.formContainer).length){var t=this,e=ti(this.cache.formContainer).offset().top;this.cache.document.on("scroll",(()=&gt;{this.cache.document.scrollTop()&gt;=e?(ti(t.cache.formWrapper).addClass("is-fixed-form"),ti(".j-side-menu").addClass("is-fixed-form")):(ti(t.cache.formWrapper).removeClass("is-fixed-form"),ti(".j-side-menu").removeClass("is-fixed-form"))}))}}showHideBtnOpenFormModal(){var t=this.cache.document.scrollTop();this.cache.document.on("scroll",(()=&gt;{var e=this.cache.document.scrollTop();if(0!==ti(this.cache.formContainer).length){var r=ti(this.cache.formContainer).offset().top+ti(this.cache.formContainer).outerHeight();travel.isMobile()&amp;&amp;e&gt;=r?ti(this.cache.containerBtnOpenFormModal).addClass("is-show"):ti(this.cache.containerBtnOpenFormModal).removeClass("is-show"),e&gt;t?(ti(this.cache.containerBtnOpenFormModal).addClass("is-hide"),ti(this.cache.formWrapper).addClass("is-hide")):(ti(this.cache.containerBtnOpenFormModal).removeClass("is-hide"),ti(this.cache.formWrapper).removeClass("is-hide")),t=e}}))}},new class{constructor(t){this.cache={},this.options=t||{},this.init()}init(){this.initializeCache(),this.initializeEvents()}initializeCache(){this.cache.document=ei(document),this.cache.window=ei(window),this.cache.body=ei("body"),this.cache.isRtl=ei('[dir="rtl"]').length,this.cache.sideMenu=ei(".j-side-menu"),this.cache.sideMenuBtn=ei(".j-side-menu-btn"),this.cache.sideMenuItem=ei(".j-side-menu-item"),this.cache.sideMenuLink=ei(".j-side-menu-link"),this.cache.sideMenuLinkTarget=ei(".j-blocks-link-target"),this.cache.mainContainer=ei(".j-main-container"),this.cache.formContainer=ei(".j-form-container")}initializeEvents(){this.mobileMenuOpen(),this.changeMenuStatePosition(),this.scrollToTargetBlock()}mobileMenuOpen(){this.cache.sideMenu.on("mouseenter",(function(){ei(this).addClass("is-active is-show")})),this.cache.sideMenu.on("mouseleave",(function(){ei(this).removeClass("is-active is-show")}))}changeMenuStatePosition(){var t=this,e=0,r=this.cache.document.scrollTop();this.cache.document.on("scroll",(()=&gt;{var i=this.cache.document.scrollTop();if(0!==this.cache.mainContainer.length){var n=this.cache.mainContainer.offset().top;i&gt;=n?(this.cache.sideMenu.addClass("is-fixed"),travel.isTablet()&amp;&amp;this.cache.sideMenu.show("slow")):(this.cache.sideMenu.removeClass("is-fixed"),travel.isTablet()&amp;&amp;this.cache.sideMenu.hide("slow")),this.cache.sideMenuLink.each((function(){var r=ei(this),n=r.attr("data-menu-target-block"),o=ei(".j-blocks-link-target[data-name-block ="+n+"]");o.offset().top-135&lt;=i&amp;&amp;o.offset().top+o.height()-135&gt;i?r.addClass("is-item-now"):r.removeClass("is-item-now"),travel.isTablet()&amp;&amp;(o.offset().top-t.cache.sideMenu.outerHeight()&lt;=i&amp;&amp;o.offset().top+o.height()-t.cache.sideMenu.outerHeight()&gt;i?(r.addClass("is-item-now"),r.hasClass("is-item-now")&amp;&amp;(e=r.closest(".j-side-menu-item")[0].offsetLeft),ei(".j-menu-page-list").scrollLeft(e)):r.removeClass("is-item-now"))})),i&gt;r?this.cache.sideMenu.addClass("is-hide"):this.cache.sideMenu.removeClass("is-hide"),r=i}}))}scrollToTargetBlock(){this.cache.sideMenuItem.on("click",(t=&gt;{t.preventDefault();var e=ei(t.target).closest(".j-side-menu-link").attr("data-menu-target-block"),r=ei(".j-blocks-link-target[data-name-block ="+e+"]").offset().top;travel.isTablet()&amp;&amp;(r-=this.cache.sideMenu.height()),travel.isTablet()||(r-=this.cache.formContainer.outerHeight()),this.cache.body.animate({scrollTop:r},500)}))}},new class{constructor(t){this.cache={},this.options=t||{},this.init()}init(){this.initializeCache(),this.initializeEvents()}initializeCache(){this.cache.document=ri(document),this.cache.window=ri(window),this.cache.body=ri("body"),this.cache.isRtl=ri('[dir="rtl"]').length,this.cache.overviewBtnMore=ri(".j-article-btn-more"),this.cache.overviewDescription=".j-article-description",this.cache.overviewDescriptionDyn=ri(".j-article-description-dynamic"),this.cache.openBlockBtnMore=ri(".j-block-open-btn-more"),this.cache.openBlockWrapper=ri(".j-block-wrapper"),this.cache.sideMenu=".j-side-menu",this.cache.mainFormContainer=".j-main-container",this.cache.formContainer=".j-form-container",this.cache.btnOpenFormContainer=".j-btn-open-form-container"}initializeEvents(){this.openDescription(),this.isHideBlockMore(),this.openBlockMore()}openDescription(){var t=0;this.cache.overviewBtnMore.on("click",(e=&gt;{t=ri(e.target).closest(this.cache.overviewDescription).offset().top,travel.isMobile()&amp;&amp;(t=t-ri(this.cache.btnOpenFormContainer).outerHeight()-ri(this.cache.sideMenu).outerHeight()),travel.isTablet()&amp;&amp;ri(this.cache.mainFormContainer).hasClass("is-fixed-form")&amp;&amp;(t=t-ri(this.cache.formContainer).outerHeight()-ri(this.cache.sideMenu).outerHeight()),!travel.isTablet()&amp;&amp;ri(this.cache.mainFormContainer).hasClass("is-fixed-form")&amp;&amp;(t-=ri(this.cache.formContainer).outerHeight()),ri(e.target).closest(this.cache.overviewDescription).toggleClass("is-show"),ri(e.target).closest(this.cache.overviewDescription).hasClass("is-show")||this.cache.body.scrollTop(t)})),this.cache.overviewDescriptionDyn.on("click",".j-article-btn-more",(e=&gt;{t=ri(e.target).closest(this.cache.overviewDescription).offset().top,travel.isTablet()&amp;&amp;ri(this.cache.mainFormContainer).hasClass("is-fixed-form")&amp;&amp;(t=t-ri(this.cache.formContainer).outerHeight()-ri(this.cache.sideMenu).outerHeight()),!travel.isTablet()&amp;&amp;ri(this.cache.mainFormContainer).hasClass("is-fixed-form")&amp;&amp;(t-=ri(this.cache.formContainer).outerHeight()),ri(e.target).closest(this.cache.overviewDescription).toggleClass("is-show"),ri(e.target).closest(this.cache.overviewDescription).hasClass("is-show")||this.cache.body.scrollTop(t)}))}isHideBlockMore(){this.cache.openBlockWrapper.each((function(){ri(this).outerHeight()&gt;300&amp;&amp;ri(this).addClass("is-hide")}))}openBlockMore(){this.cache.openBlockBtnMore.on("click",(t=&gt;{ri(t.target).closest(".j-block-wrapper").hasClass("is-hide")&amp;&amp;ri(t.target).closest(".j-block-wrapper").toggleClass("is-show")}))}},new class{constructor(t){this.cache={},this.options=t||{},this.init()}init(){this.initializeCache(),this.initHotelMap()}initializeCache(){this.cache.map=oi(".js-mapbox"),this.cache.lat=travel.options.mapParameters.hotelLatitude,this.cache.long=travel.options.mapParameters.hotelLongitude}initHotelMap(){if(this.cache.map.length){var t,e=new(ni().Map)({container:"mapbox",zoom:15,minZoom:11,maxZoom:20,center:[this.cache.long,this.cache.lat],customAttribution:['&lt;a href="https://daylightmap.org/" target="_blank"&gt;DaylightMap&lt;/a&gt;','Building data -                     &lt;a href="https://github.com/microsoft/AustraliaBuildingFootprints/" target="_blank"&gt;Australia&lt;/a&gt;,                     &lt;a href="https://github.com/microsoft/CanadianBuildingFootprints" target="_blank"&gt;Canada&lt;/a&gt;,                     &lt;a href="https://github.com/microsoft/Uganda-Tanzania-Building-Footprints" target="_blank"&gt;Uganda/Tanzania&lt;/a&gt;,                     &lt;a href="https://github.com/microsoft/USBuildingFootprints" target="_blank"&gt;US&lt;/a&gt;'],style:"/map-styles/70/jupiter.json",pitch:10,bearing:0,transformRequest:(t,e)=&gt;{var r=t;return"Tile"===e&amp;&amp;-1!==t.indexOf("/tiles-data/map2/")?r=location.origin+t:"SpriteJSON"!==e&amp;&amp;"SpriteImage"!==e||-1===t.indexOf("/maps-data/mapboxgl/sprite")||(r=t.replace("https://",location.origin+"/")),{url:r}}}),r=document.createElement("div");if(r.className="marker marker--hotel",r.innerHTML='&lt;svg width="41px" height="55px" viewBox="0 0 41 55" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"&gt; \x3c!-- Generator: Sketch 51.3 (57544) - http://www.bohemiancoding.com/sketch --\x3e &lt;title&gt;Apartment_placeholder&lt;/title&gt; &lt;desc&gt;Created with Sketch.&lt;/desc&gt; &lt;defs&gt;&lt;/defs&gt; &lt;g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"&gt; &lt;g id="A_Hotel-page" transform="translate(-919.000000, -3033.000000)" fill="#333E50" fill-rule="nonzero"&gt; &lt;g id="Map" transform="translate(112.000000, 2824.000000)"&gt; &lt;g transform="translate(570.000000, 59.000000)" id="Apartment_placeholder"&gt; &lt;g transform="translate(257.500000, 177.500000) rotate(-360.000000) translate(-257.500000, -177.500000) translate(237.000000, 150.000000)"&gt; &lt;path d="M34.4934845,5.64192706 C30.6772004,2.00385339 25.6028701,0 20.2061261,0 C14.8083283,0 9.73505175,2.00385339 5.91876767,5.64192706 C-1.14378124,12.3736691 -2.02146336,25.0396296 4.01800111,32.7135343 L20.2061261,55 L36.3700173,32.7446719 C42.4337155,25.0396296 41.5560334,12.3736691 34.4934845,5.64192706 Z M20.3926203,26.1153825 C16.3266236,26.1153825 13.0171404,22.9604434 13.0171404,19.084318 C13.0171404,15.2081926 16.3266236,12.0532535 20.3926203,12.0532535 C24.4586171,12.0532535 27.7681003,15.2081926 27.7681003,19.084318 C27.7681003,22.9604434 24.4586171,26.1153825 20.3926203,26.1153825 Z" id="Shape"&gt;&lt;/path&gt; &lt;/g&gt; &lt;/g&gt; &lt;/g&gt; &lt;/g&gt; &lt;/g&gt; &lt;/svg&gt;',new(ni().Marker)({element:r}).setLngLat([this.cache.long,this.cache.lat]).addTo(e),e.addControl(new(ni().NavigationControl),"bottom-right"),travel.isMobile())e.dragPan.disable(),e.on("touchstart",(function(t){var r=t.originalEvent;r&amp;&amp;"touches"in r&amp;&amp;(r.touches.length&gt;1?(r.stopImmediatePropagation(),e.dragPan.enable()):e.dragPan.disable())}));else e.scrollZoom.disable(),e.on("mouseover",(function(){t=setTimeout((function(){e.scrollZoom.enable()}),1e3)})),e.on("mouseout",(function(){clearTimeout(t),e.scrollZoom.disable()}));e.on("load",(function(){oi(".mapboxgl-ctrl-logo").remove()}))}}},new class{constructor(t){this.cache={},this.options=t||{},this.init()}init(){this.initializeCache(),this.initializeEvents()}initializeCache(){this.cache.seoOpenBtn=ai(".j-seo-links-title"),this.cache.seoLinksContainer=ai(".j-seo-links-container"),this.cache.seoLinksBlock=ai(".j-seo-links-block")}initializeEvents(){"9"!=travel.options.siteNetworkId&amp;&amp;this.hideSeoContainer(),this.openHideSeoContainer()}hideSeoContainer(){this.cache.seoLinksContainer.addClass("is-hide")}openHideSeoContainer(){this.cache.seoOpenBtn.on("click",(t=&gt;{ai(t.target).closest(this.cache.seoLinksBlock).toggleClass("is-open").find(this.cache.seoLinksContainer).toggleClass("is-hide")}))}},new class{constructor(t){this.cache={},this.options=t||{},this.init()}init(){this.initializeEvents()}initializeEvents(){this.contactsForm(travel.options),travel.isTablet()||si(".js-feedback-select").select2({minimumResultsForSearch:-1,dropdownParent:si(".js-feedback-select-container")})}contactsForm(t){si("#form-feedback").each((function(){var e=si(this);e.validate({rules:{f_name:"required",f_email:{required:!0,email:!0},f_subject:"required",f_message:"required"},messages:{f_name:t.alertMessages.messageName,f_email:t.alertMessages.messageEmail,f_message:t.alertMessages.messageMessage,f_subject:t.alertMessages.messageSubject},showErrors:function(){this.defaultShowErrors()}}),si('&lt;input type="hidden" name="'+t.stopSpamKey+'" value="'+t.stopSpamValue+'" /&gt;').appendTo(e),0===e.find("[name=page]").length&amp;&amp;"hotel"===t.typeObject&amp;&amp;e.append('&lt;input type="hidden" name="page" value=""/&gt;')}))}},new class{constructor(t){this.cache={},this.options=t||{},this.init()}init(){this.initializeCache(),this.initializeEvents()}initializeCache(){this.cache.document=li(document),this.cache.window=li(window),this.cache.body=li("body"),this.cache.isRtl=li('[dir="rtl"]').length,this.cache.amenitiesBoxItem=".j-amenities-box-item"}initializeEvents(){this.showHideBoxItemAbstract()}showHideBoxItemAbstract(){li(this.cache.amenitiesBoxItem).on("click",(t=&gt;{li(t.target).closest(this.cache.amenitiesBoxItem).toggleClass("is-show")})),this.cache.document.on("click",(t=&gt;{0===li(t.target).closest(this.cache.amenitiesBoxItem).length&amp;&amp;li(this.cache.amenitiesBoxItem).removeClass("is-show")})),travel.isTablet()||(li(this.cache.amenitiesBoxItem).on("mouseenter",(t=&gt;{li(t.target).closest(this.cache.amenitiesBoxItem).addClass("is-show")})),li(this.cache.amenitiesBoxItem).on("mouseleave",(t=&gt;{li(t.target).closest(this.cache.amenitiesBoxItem).removeClass("is-show")})))}},new class{constructor(t){this.options=t||{},this.cache={},this.init()}init(){this.initializeCache(),this.initializeEvents()}initializeCache(){this.cache.page=travel.options.page,this.cache.importantInformationContainer=ui(".j-important-information-container"),this.cache.openBlockBtnMore=".j-important-information .j-block-open-btn-more",this.cache.openBlockWrapperClass=".j-important-information"}initializeEvents(){"book"!==this.cache.page&amp;&amp;"group_book"!==this.cache.page&amp;&amp;this.importantInformation()}importantInformation(){var t=this;ui.ajax({type:"GET",url:"/static.php",data:{page:"important_information_page",r:Math.random(),hotel_id:travel.options.objectId},dataType:"html"}).done((function(e){""!==e&amp;&amp;(t.cache.importantInformationContainer.removeClass("important-information__container--full-width"),t.cache.importantInformationContainer.append(e),t.openBlockMore(),t.isHideBlockMore())})).fail((function(){setTimeout((()=&gt;{t.importantInformation()}),3e3)}))}openBlockMore(){ui(this.cache.openBlockBtnMore).on("click",(t=&gt;{ui(t.target).closest(".j-block-wrapper").hasClass("is-hide")&amp;&amp;ui(t.target).closest(".j-block-wrapper").toggleClass("is-show")}))}isHideBlockMore(){ui(this.cache.openBlockWrapperClass).outerHeight()&gt;300&amp;&amp;ui(this.cache.openBlockWrapperClass).addClass("is-hide")}}},2302:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;n});var i=r(9755);class n{constructor(t){this.cache={},this.options=t||{},this.init()}init(){this.initializeCache(),this.initializeEvents()}initializeCache(){this.cache.document=i(document),this.cache.window=i(window),this.cache.body=i("body"),this.cache.isRtl=i('[dir="rtl"]').length,this.cache.overviewGalleryNearby=i(".j-gallery-nearby-hotels-slider"),this.cache.overviewGallery=i(".j-gallery-slider"),this.cache.overviewGalleryModal=i(".j-modal-gallery-slider"),this.cache.allImgBtn=i(".j-all-img-btn"),this.cache.sliderNav=i(".j-slider-nav"),this.cache.modalWrapper=i(".j-modal"),this.cache.sliderCount=".j-gallery-count",this.cache.sliderWrapper=".j-gallery-wrapper",this.cache.customSliderArrowNext='&lt;button type="button" class="slick-next"&gt;\n                &lt;svg class="page__gallery-arrow-icon icon-down-arrow"&gt;\n                    &lt;use xlink:href="/new/designs/70/build/icons-sprite.svg#down-arrow"&gt;&lt;/use&gt;\n                &lt;/svg&gt;\n            &lt;/button&gt;',this.cache.customSliderArrowPrev='&lt;button type="button" class="slick-prev"&gt;\n                &lt;svg class="page__gallery-arrow-icon icon-down-arrow"&gt;\n                    &lt;use xlink:href="/new/designs/70/build/icons-sprite.svg#down-arrow"&gt;&lt;/use&gt;\n                &lt;/svg&gt;\n            &lt;/button&gt;'}initializeEvents(){this.cache.document.ready((()=&gt;{this.initSlick()}))}initSlick(){var t=this;this.cache.overviewGalleryNearby.on("init",(function(e,r){i(this).closest(t.cache.sliderWrapper).find(t.cache.sliderCount).text(parseInt(r.currentSlide+1)+" of "+r.slideCount)})),this.cache.overviewGalleryNearby.not(".slick-initialized").slick({lazyLoad:"ondemand",dots:!0,arrows:!0,infinite:!0,slidesToShow:3,slidesToScroll:3,focusOnSelect:!0,autoplay:!1,nextArrow:this.cache.customSliderArrowNext,prevArrow:this.cache.customSliderArrowPrev,responsive:[{breakpoint:1040,settings:{slidesToShow:2,slidesToScroll:2}},{breakpoint:768,settings:{dots:!1,slidesToShow:1,slidesToScroll:1}}]}),this.cache.overviewGalleryNearby.on("afterChange",(function(e,r){i(this).closest(t.cache.sliderWrapper).find(t.cache.sliderCount).text(parseInt(r.currentSlide+1)+" of "+r.slideCount)})),this.cache.overviewGallery.on("init",(function(e,r){i(this).closest(t.cache.sliderWrapper).find(t.cache.sliderCount).text(parseInt(r.currentSlide+1)+" of "+r.slideCount)})),i(this.cache.sliderWrapper).each((function(){var e=i(this).find(t.cache.overviewGallery),r=i(this).find(t.cache.sliderNav),n=10;r.find(".page__modal-item").length&lt;10&amp;&amp;(n=r.children(".page__modal-item").length,r.addClass("page__modal-nav-slider--few-item"),r.find(".slick-track").addClass("slick-track--no-transform")),e.not(".slick-initialized").slick({lazyLoad:"ondemand",dots:!1,arrows:!0,infinite:!0,slidesToShow:1,slidesToScroll:1,asNavFor:r[0],focusOnSelect:!0,nextArrow:t.cache.customSliderArrowNext,prevArrow:t.cache.customSliderArrowPrev}),r.not(".slick-initialized").slick({lazyLoad:"ondemand",infinite:!0,slidesToShow:n,slidesToScroll:1,arrows:!1,asNavFor:e[0],dots:!1,focusOnSelect:!0}),r.find(".page__modal-item").length&lt;10&amp;&amp;r.find(".slick-track").addClass("slick-track--no-transform")})),this.cache.overviewGallery.on("afterChange",(function(e,r){i(this).closest(t.cache.sliderWrapper).find(t.cache.sliderCount).text(parseInt(r.currentSlide+1)+" of "+r.slideCount)}))}}},5755:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;o});var i=r(9755);function n(t,e,r,i,n,o,a){try{var s=t[o](a),l=s.value}catch(t){return void r(t)}s.done?e(l):Promise.resolve(l).then(i,n)}class o{constructor(t){this.cache={},this.options=t||{},this.init()}init(){this.initializeCache(),this.initializeEvents()}initializeCache(){this.cache.document=i(document),this.cache.window=i(window),this.cache.body=i("body"),this.cache.isRtl=i('[dir="rtl"]').length,this.cache.modal=i(".j-modal"),this.cache.btnOpen=i(".j-modal-btn-open"),this.cache.btnClose=i(".j-modal-btn-close"),this.cache.modalPosition=0}initializeEvents(){this.openModal(),this.closeModal()}openModal(){this.cache.btnOpen.on("click",(t=&gt;{var e=i(t.target),r=e.attr("data-modal"),n=i(".j-modal[data-modal-block ="+r+"]"),o=e.siblings(".j-gallery-slider").slick("slickCurrentSlide");("check-avail-form-modal"!==r||travel.isMobile())&amp;&amp;(this.cache.body.addClass("is-disable-scroll"),this.cache.window.addClass("is-disable-scroll"),n.show(),this.cache.modalPosition=n.offset().top,n.find(".j-gallery-slider").slick("setPosition"),n.find(".j-gallery-slider").slick("slickGoTo",o),n.find(".j-slider-nav").slick("setPosition"),n.find(".j-slider-nav").slick("slickGoTo",o))}))}closeModal(){var t=this;this.cache.btnClose.on("click",function(){var e,o=(e=function*(e){var n=i(e.target),o=n.closest(".j-modal").attr("data-modal-block"),a=i(".j-modal[data-modal-block ="+o+"]"),s=n.closest(".j-modal").find(".j-gallery-slider").slick("slickCurrentSlide"),l=i("[data-name-block ="+o+"]");a.hide(),l.find(".j-gallery-slider").slick("setPosition"),l.find(".j-gallery-slider").slick("slickGoTo",s),t.cache.body.removeClass("is-disable-scroll"),t.cache.body.scrollTop(t.cache.modalPosition);var{default:u}=yield r.e(171).then(r.bind(r,9171)),c=new u;!1!==c.getUrlParams("sendc")&amp;&amp;c.updateQueryStringParam("sendc",null)},function(){var t=this,r=arguments;return new Promise((function(i,o){var a=e.apply(t,r);function s(t){n(a,i,o,s,l,"next",t)}function l(t){n(a,i,o,s,l,"throw",t)}s(void 0)}))});return function(t){return o.apply(this,arguments)}}())}}},8378:(t,e,r)=&gt;{"use strict";r.d(e,{L:()=&gt;n});var i=r(5362),n=t=&gt;{var{id:e,h:r,category:n,action:o,labelData:a}=t,s="".concat(window.location.protocol,"//").concat(window.location.host,"/"),l={page:"stat",t:"ev",id:e,h:r,c:n,a:o,l:a,r:Math.floor(1e5*Math.random())};return fetch(s,{method:"POST",body:(0,i.Z)(l)})}},5362:(t,e,r)=&gt;{"use strict";r.d(e,{Z:()=&gt;i});const i=t=&gt;{var e=new FormData;return Object.keys(t).forEach((r=&gt;e.append(r,t[r]))),e}},8601:(t,e,r)=&gt;{"use strict";function i(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&amp;&amp;(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,i)}return r}function n(t){for(var e=1;e&lt;arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?i(Object(r),!0).forEach((function(e){o(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function o(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}r.d(e,{ej:()=&gt;a,d8:()=&gt;s});var a=t=&gt;{var e=document.cookie.match(new RegExp("(?:^|; )"+t.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,"\\$1")+"=([^;]*)"));return e?decodeURIComponent(e[1]):void 0},s=function(t,e){var r=arguments.length&gt;2&amp;&amp;void 0!==arguments[2]?arguments[2]:{};(r=n({path:"/"},r)).expires instanceof Date&amp;&amp;(r.expires=r.expires.toUTCString());var i=encodeURIComponent(t)+"="+encodeURIComponent(e);for(var o in r){i+="; "+o;var a=r[o];!0!==a&amp;&amp;(i+="="+a)}document.cookie=i}},9866:(t,e,r)=&gt;{"use strict";r.d(e,{Z:()=&gt;u});var i=r(3060);function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&amp;&amp;(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,i)}return r}function o(t){for(var e=1;e&lt;arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?n(Object(r),!0).forEach((function(e){a(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function a(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var s="[type]||[device]||[btest]||[langid]||[city_id]||[hotel_id]||[wsl]||[affid]||[href]",l="[type]||[device]||[btest]||[langid]||[city_id]||[site_id]||[wsl]||[affid]||[href]";const u=function(){var t,e=arguments.length&gt;0&amp;&amp;void 0!==arguments[0]?arguments[0]:{},r=arguments.length&gt;1?arguments[1]:void 0,n=arguments.length&gt;2&amp;&amp;void 0!==arguments[2]?arguments[2]:"hotel",a="hotel"===n?s:l;try{var u,c,p,h,d,f,m,y,g,v;t={type:"clicktrip",device:null===(u=travel.options)||void 0===u?void 0:u.device,btest:null!==(c=travel.options)&amp;&amp;void 0!==c&amp;&amp;c.btest?null===(p=travel.options)||void 0===p?void 0:p.btest.id:!(null===(h=travel.options)||void 0===h||!h.btest),langid:null===(d=travel.options)||void 0===d?void 0:d.languageId,city_id:(null===(f=travel.options)||void 0===f?void 0:f.hotelDestinationId)||null,hotel_id:(null===(m=travel.options)||void 0===m?void 0:m.hotelExtId)||null,site_id:(null===(y=travel.options)||void 0===y?void 0:y.siteId)||null,wsl:null===(g=travel.options)||void 0===g?void 0:g.track,affid:null===(v=travel.options)||void 0===v?void 0:v.nid,href:encodeURIComponent(r)}}catch(t){throw new Error("Fail to create defaultOptions: wrong global object params",t)}var _=o(o({},t),e),x=(0,i.n)(_);if(!x.success)throw new Error("Fail to validate object. Invalid keys: ".concat(x.inValidKeys.join(", ")));return Object.entries(_).forEach((t=&gt;{var[e,r]=t;return a=a.replace("[".concat(e,"]"),r)})),a}},3060:(t,e,r)=&gt;{"use strict";r.d(e,{n:()=&gt;i});var i=function(t){var e=arguments.length&gt;1&amp;&amp;void 0!==arguments[1]?arguments[1]:void 0,r={success:!0,inValidKeys:[]};for(var i in t)t[i]===e&amp;&amp;(r.success=!1,r.inValidKeys.push(i));return r}},8125:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i=r.p+"images/ln_ar.png"},5458:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i=r.p+"images/ln_cs.png"},1202:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i=r.p+"images/ln_da.png"},6638:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i=r.p+"images/ln_de.png"},7058:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i=r.p+"images/ln_el.png"},7005:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i=r.p+"images/ln_en.png"},6388:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i=r.p+"images/ln_es.png"},5288:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i=r.p+"images/ln_fr.png"},249:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i=r.p+"images/ln_he.png"},4391:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i=r.p+"images/ln_hu.png"},5982:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i=r.p+"images/ln_it.png"},8127:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i=r.p+"images/ln_ja.png"},5039:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i=r.p+"images/ln_ko.png"},8497:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i=r.p+"images/ln_nl.png"},6404:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i=r.p+"images/ln_no.png"},7793:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i=r.p+"images/ln_pl.png"},543:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i=r.p+"images/ln_pt.png"},3093:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i=r.p+"images/ln_ru.png"},8632:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i=r.p+"images/ln_sv.png"},6685:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i=r.p+"images/ln_tr.png"},9454:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i=r.p+"images/ln_uk.png"},1800:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i=r.p+"images/ln_zh.png"},9301:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i=r.p+"images/visa.png"},4285:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i=r.p+"images/404.png"},3108:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i=r.p+"images/Email_footer.png"},7678:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i=r.p+"images/Number_footer.png"},2038:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i=r.p+"images/apartment-placeholder.png"},3543:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i=r.p+"images/apartment_number.png"},3507:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i=r.p+"images/businesswoman-mobile.jpg"},5165:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i=r.p+"images/businesswoman.jpg"},6589:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i=r.p+"images/clock-1.png"},5675:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i=r.p+"images/down-arrow-grey.png"},1746:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i=r.p+"images/down-arrow.png"},4468:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i=r.p+"images/header-bg.jpg"},6158:function(t){t.exports=function(){"use strict";var t,e,r;function i(i,n){if(t)if(e){var o="var sharedChunk = {}; ("+t+")(sharedChunk); ("+e+")(sharedChunk);",a={};t(a),(r=n(a)).workerUrl=window.URL.createObjectURL(new Blob([o],{type:"text/javascript"}))}else e=n;else t=n}return i(["exports"],(function(t){function e(t,e){return t(e={exports:{}},e.exports),e.exports}var r=i;function i(t,e,r,i){this.cx=3*t,this.bx=3*(r-t)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*e,this.by=3*(i-e)-this.cy,this.ay=1-this.cy-this.by,this.p1x=t,this.p1y=i,this.p2x=r,this.p2y=i}i.prototype.sampleCurveX=function(t){return((this.ax*t+this.bx)*t+this.cx)*t},i.prototype.sampleCurveY=function(t){return((this.ay*t+this.by)*t+this.cy)*t},i.prototype.sampleCurveDerivativeX=function(t){return(3*this.ax*t+2*this.bx)*t+this.cx},i.prototype.solveCurveX=function(t,e){var r,i,n,o,a;for(void 0===e&amp;&amp;(e=1e-6),n=t,a=0;a&lt;8;a++){if(o=this.sampleCurveX(n)-t,Math.abs(o)&lt;e)return n;var s=this.sampleCurveDerivativeX(n);if(Math.abs(s)&lt;1e-6)break;n-=o/s}if((n=t)&lt;(r=0))return r;if(n&gt;(i=1))return i;for(;r&lt;i;){if(o=this.sampleCurveX(n),Math.abs(o-t)&lt;e)return n;t&gt;o?r=n:i=n,n=.5*(i-r)+r}return n},i.prototype.solve=function(t,e){return this.sampleCurveY(this.solveCurveX(t,e))};var n=o;function o(t,e){this.x=t,this.y=e}function a(t,e){if(Array.isArray(t)){if(!Array.isArray(e)||t.length!==e.length)return!1;for(var r=0;r&lt;t.length;r++)if(!a(t[r],e[r]))return!1;return!0}if("object"==typeof t&amp;&amp;null!==t&amp;&amp;null!==e){if("object"!=typeof e)return!1;if(Object.keys(t).length!==Object.keys(e).length)return!1;for(var i in t)if(!a(t[i],e[i]))return!1;return!0}return t===e}function s(t,e,i,n){var o=new r(t,e,i,n);return function(t){return o.solve(t)}}o.prototype={clone:function(){return new o(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&amp;&amp;this.y===t.y},dist:function(t){return Math.sqrt(this.distSqr(t))},distSqr:function(t){var e=t.x-this.x,r=t.y-this.y;return e*e+r*r},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,r=t[2]*this.x+t[3]*this.y;return this.x=e,this.y=r,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),r=Math.sin(t),i=e*this.x-r*this.y,n=r*this.x+e*this.y;return this.x=i,this.y=n,this},_rotateAround:function(t,e){var r=Math.cos(t),i=Math.sin(t),n=e.x+r*(this.x-e.x)-i*(this.y-e.y),o=e.y+i*(this.x-e.x)+r*(this.y-e.y);return this.x=n,this.y=o,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},o.convert=function(t){return t instanceof o?t:Array.isArray(t)?new o(t[0],t[1]):t};var l=s(.25,.1,.25,1);function u(t,e,r){return Math.min(r,Math.max(e,t))}function c(t,e,r){var i=r-e,n=((t-e)%i+i)%i+e;return n===e?r:n}function p(t){for(var e=[],r=arguments.length-1;r-- &gt;0;)e[r]=arguments[r+1];for(var i=0,n=e;i&lt;n.length;i+=1){var o=n[i];for(var a in o)t[a]=o[a]}return t}var h=1;function d(){return h++}function f(){return function t(e){return e?(e^16*Math.random()&gt;&gt;e/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,t)}()}function m(t){return!!t&amp;&amp;/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(t)}function y(t,e){t.forEach((function(t){e[t]&amp;&amp;(e[t]=e[t].bind(e))}))}function g(t,e){return-1!==t.indexOf(e,t.length-e.length)}function v(t,e,r){var i={};for(var n in t)i[n]=e.call(r||this,t[n],n,t);return i}function _(t,e,r){var i={};for(var n in t)e.call(r||this,t[n],n,t)&amp;&amp;(i[n]=t[n]);return i}function x(t){return Array.isArray(t)?t.map(x):"object"==typeof t&amp;&amp;t?v(t,x):t}var b={};function w(t){b[t]||("undefined"!=typeof console&amp;&amp;console.warn(t),b[t]=!0)}function S(t,e,r){return(r.y-t.y)*(e.x-t.x)&gt;(e.y-t.y)*(r.x-t.x)}function E(t){for(var e=0,r=0,i=t.length,n=i-1,o=void 0,a=void 0;r&lt;i;n=r++)o=t[r],e+=((a=t[n]).x-o.x)*(o.y+a.y);return e}function k(t){var e={};if(t.replace(/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)&lt;&gt;@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)&lt;&gt;@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,(function(t,r,i,n){var o=i||n;return e[r]=!o||o.toLowerCase(),""})),e["max-age"]){var r=parseInt(e["max-age"],10);isNaN(r)?delete e["max-age"]:e["max-age"]=r}return e}function T(t){try{var e=self[t];return e.setItem("_mapbox_test_",1),e.removeItem("_mapbox_test_"),!0}catch(t){return!1}}var A,C,I,P,M=self.performance&amp;&amp;self.performance.now?self.performance.now.bind(self.performance):Date.now.bind(Date),z=self.requestAnimationFrame||self.mozRequestAnimationFrame||self.webkitRequestAnimationFrame||self.msRequestAnimationFrame,D=self.cancelAnimationFrame||self.mozCancelAnimationFrame||self.webkitCancelAnimationFrame||self.msCancelAnimationFrame,L={now:M,frame:function(t){var e=z(t);return{cancel:function(){return D(e)}}},getImageData:function(t){var e=self.document.createElement("canvas"),r=e.getContext("2d");if(!r)throw new Error("failed to create canvas 2d context");return e.width=t.width,e.height=t.height,r.drawImage(t,0,0,t.width,t.height),r.getImageData(0,0,t.width,t.height)},resolveURL:function(t){return A||(A=self.document.createElement("a")),A.href=t,A.href},hardwareConcurrency:self.navigator.hardwareConcurrency||4,get devicePixelRatio(){return self.devicePixelRatio},get prefersReducedMotion(){return!!self.matchMedia&amp;&amp;(null==C&amp;&amp;(C=self.matchMedia("(prefers-reduced-motion: reduce)")),C.matches)}},R={API_URL:"https://api.mapbox.com",get EVENTS_URL(){return this.API_URL?0===this.API_URL.indexOf("https://api.mapbox.cn")?"https://events.mapbox.cn/events/v2":0===this.API_URL.indexOf("https://api.mapbox.com")?"https://events.mapbox.com/events/v2":null:null},FEEDBACK_URL:"https://apps.mapbox.com/feedback",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},O={supported:!1,testSupport:function(t){!B&amp;&amp;P&amp;&amp;(F?j(t):I=t)}},B=!1,F=!1;function j(t){var e=t.createTexture();t.bindTexture(t.TEXTURE_2D,e);try{if(t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,P),t.isContextLost())return;O.supported=!0}catch(t){}t.deleteTexture(e),B=!0}self.document&amp;&amp;((P=self.document.createElement("img")).onload=function(){I&amp;&amp;j(I),I=null,F=!0},P.onerror=function(){B=!0,I=null},P.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");var U="01",N=function(t,e){this._transformRequestFn=t,this._customAccessToken=e,this._createSkuToken()};function V(t){return 0===t.indexOf("mapbox:")}N.prototype._createSkuToken=function(){var t=function(){for(var t="",e=0;e&lt;10;e++)t+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(62*Math.random())];return{token:["1",U,t].join(""),tokenExpiresAt:Date.now()+432e5}}();this._skuToken=t.token,this._skuTokenExpiresAt=t.tokenExpiresAt},N.prototype._isSkuTokenExpired=function(){return Date.now()&gt;this._skuTokenExpiresAt},N.prototype.transformRequest=function(t,e){return this._transformRequestFn&amp;&amp;this._transformRequestFn(t,e)||{url:t}},N.prototype.normalizeStyleURL=function(t,e){if(!V(t))return t;var r=H(t);return r.path="/styles/v1"+r.path,this._makeAPIURL(r,this._customAccessToken||e)},N.prototype.normalizeGlyphsURL=function(t,e){if(!V(t))return t;var r=H(t);return r.path="/fonts/v1"+r.path,this._makeAPIURL(r,this._customAccessToken||e)},N.prototype.normalizeSourceURL=function(t,e){if(!V(t))return t;var r=H(t);return r.path="/v4/"+r.authority+".json",r.params.push("secure"),this._makeAPIURL(r,this._customAccessToken||e)},N.prototype.normalizeSpriteURL=function(t,e,r,i){var n=H(t);return V(t)?(n.path="/styles/v1"+n.path+"/sprite"+e+r,this._makeAPIURL(n,this._customAccessToken||i)):(n.path+=""+e+r,Z(n))},N.prototype.normalizeTileURL=function(t,e,r){if(this._isSkuTokenExpired()&amp;&amp;this._createSkuToken(),!e||!V(e))return t;var i=H(t),n=L.devicePixelRatio&gt;=2||512===r?"@2x":"",o=O.supported?".webp":"$1";return i.path=i.path.replace(/(\.(png|jpg)\d*)(?=$)/,""+n+o),i.path=i.path.replace(/^.+\/v4\//,"/"),i.path="/v4"+i.path,R.REQUIRE_ACCESS_TOKEN&amp;&amp;(R.ACCESS_TOKEN||this._customAccessToken)&amp;&amp;this._skuToken&amp;&amp;i.params.push("sku="+this._skuToken),this._makeAPIURL(i,this._customAccessToken)},N.prototype.canonicalizeTileURL=function(t){var e=H(t);if(!e.path.match(/(^\/v4\/)/)||!e.path.match(/\.[\w]+$/))return t;var r="mapbox://tiles/";r+=e.path.replace("/v4/","");var i=e.params.filter((function(t){return!t.match(/^access_token=/)}));return i.length&amp;&amp;(r+="?"+i.join("&amp;")),r},N.prototype.canonicalizeTileset=function(t,e){if(!V(e))return t.tiles||[];for(var r=[],i=0,n=t.tiles;i&lt;n.length;i+=1){var o=n[i],a=this.canonicalizeTileURL(o);r.push(a)}return r},N.prototype._makeAPIURL=function(t,e){var r="See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes",i=H(R.API_URL);if(t.protocol=i.protocol,t.authority=i.authority,"/"!==i.path&amp;&amp;(t.path=""+i.path+t.path),!R.REQUIRE_ACCESS_TOKEN)return Z(t);if(!(e=e||R.ACCESS_TOKEN))throw new Error("An API access token is required to use Mapbox GL. "+r);if("s"===e[0])throw new Error("Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). "+r);return t.params=t.params.filter((function(t){return-1===t.indexOf("access_token")})),t.params.push("access_token="+e),Z(t)};var q=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function W(t){return q.test(t)}var G=/^(\w+):\/\/([^\/?]*)(\/[^?]+)?\??(.+)?/;function H(t){var e=t.match(G);if(!e)throw new Error("Unable to parse URL object");return{protocol:e[1],authority:e[2],path:e[3]||"/",params:e[4]?e[4].split("&amp;"):[]}}function Z(t){var e=t.params.length?"?"+t.params.join("&amp;"):"";return t.protocol+"://"+t.authority+t.path+e}function X(t){if(!t)return null;var e,r=t.split(".");if(!r||3!==r.length)return null;try{return JSON.parse((e=r[1],decodeURIComponent(self.atob(e).split("").map((function(t){return"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)})).join(""))))}catch(t){return null}}var $=function(t){this.type=t,this.anonId=null,this.eventData={},this.queue=[],this.pendingRequest=null};$.prototype.getStorageKey=function(t){var e,r=X(R.ACCESS_TOKEN),i="";return r&amp;&amp;r.u?(e=r.u,i=self.btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,(function(t,e){return String.fromCharCode(Number("0x"+e))})))):i=R.ACCESS_TOKEN||"",t?"mapbox.eventData."+t+":"+i:"mapbox.eventData:"+i},$.prototype.fetchEventData=function(){var t=T("localStorage"),e=this.getStorageKey(),r=this.getStorageKey("uuid");if(t)try{var i=self.localStorage.getItem(e);i&amp;&amp;(this.eventData=JSON.parse(i));var n=self.localStorage.getItem(r);n&amp;&amp;(this.anonId=n)}catch(t){w("Unable to read from LocalStorage")}},$.prototype.saveEventData=function(){var t=T("localStorage"),e=this.getStorageKey(),r=this.getStorageKey("uuid");if(t)try{self.localStorage.setItem(r,this.anonId),Object.keys(this.eventData).length&gt;=1&amp;&amp;self.localStorage.setItem(e,JSON.stringify(this.eventData))}catch(t){w("Unable to write to LocalStorage")}},$.prototype.processRequests=function(t){},$.prototype.postEvent=function(t,e,r,i){var n=this;if(R.EVENTS_URL){var o=H(R.EVENTS_URL);o.params.push("access_token="+(i||R.ACCESS_TOKEN||""));var a={event:this.type,created:new Date(t).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:"1.3.1",skuId:U,userId:this.anonId},s=e?p(a,e):a,l={url:Z(o),headers:{"Content-Type":"text/plain"},body:JSON.stringify([s])};this.pendingRequest=_t(l,(function(t){n.pendingRequest=null,r(t),n.saveEventData(),n.processRequests(i)}))}},$.prototype.queueRequest=function(t,e){this.queue.push(t),this.processRequests(e)};var Y,K=function(t){function e(){t.call(this,"map.load"),this.success={},this.skuToken=""}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.postMapLoadEvent=function(t,e,r,i){this.skuToken=r,(R.EVENTS_URL&amp;&amp;i||R.ACCESS_TOKEN&amp;&amp;Array.isArray(t)&amp;&amp;t.some((function(t){return V(t)||W(t)})))&amp;&amp;this.queueRequest({id:e,timestamp:Date.now()},i)},e.prototype.processRequests=function(t){var e=this;if(!this.pendingRequest&amp;&amp;0!==this.queue.length){var r=this.queue.shift(),i=r.id,n=r.timestamp;i&amp;&amp;this.success[i]||(this.anonId||this.fetchEventData(),m(this.anonId)||(this.anonId=f()),this.postEvent(n,{skuToken:this.skuToken},(function(t){t||i&amp;&amp;(e.success[i]=!0)}),t))}},e}($),J=new(function(t){function e(e){t.call(this,"appUserTurnstile"),this._customAccessToken=e}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.postTurnstileEvent=function(t,e){R.EVENTS_URL&amp;&amp;R.ACCESS_TOKEN&amp;&amp;Array.isArray(t)&amp;&amp;t.some((function(t){return V(t)||W(t)}))&amp;&amp;this.queueRequest(Date.now(),e)},e.prototype.processRequests=function(t){var e=this;if(!this.pendingRequest&amp;&amp;0!==this.queue.length){this.anonId&amp;&amp;this.eventData.lastSuccess&amp;&amp;this.eventData.tokenU||this.fetchEventData();var r=X(R.ACCESS_TOKEN),i=r?r.u:R.ACCESS_TOKEN,n=i!==this.eventData.tokenU;m(this.anonId)||(this.anonId=f(),n=!0);var o=this.queue.shift();if(this.eventData.lastSuccess){var a=new Date(this.eventData.lastSuccess),s=new Date(o),l=(o-this.eventData.lastSuccess)/864e5;n=n||l&gt;=1||l&lt;-1||a.getDate()!==s.getDate()}else n=!0;if(!n)return this.processRequests();this.postEvent(o,{"enabled.telemetry":!1},(function(t){t||(e.eventData.lastSuccess=o,e.eventData.tokenU=i)}),t)}},e}($)),Q=J.postTurnstileEvent.bind(J),tt=new K,et=tt.postMapLoadEvent.bind(tt),rt="mapbox-tiles",it=500,nt=50,ot=42e4;function at(t,e,r){if(self.caches){var i={status:e.status,statusText:e.statusText,headers:new self.Headers};e.headers.forEach((function(t,e){return i.headers.set(e,t)}));var n=k(e.headers.get("Cache-Control")||"");n["no-store"]||(n["max-age"]&amp;&amp;i.headers.set("Expires",new Date(r+1e3*n["max-age"]).toUTCString()),new Date(i.headers.get("Expires")).getTime()-r&lt;ot||function(t,e){if(void 0===Y)try{new Response(new ReadableStream),Y=!0}catch(t){Y=!1}Y?e(t.body):t.blob().then(e)}(e,(function(e){var r=new self.Response(e,i);self.caches.open(rt).then((function(e){return e.put(st(t.url),r)}))})))}}function st(t){var e=t.indexOf("?");return e&lt;0?t:t.slice(0,e)}function lt(t,e){if(!self.caches)return e(null);var r=st(t.url);self.caches.open(rt).catch(e).then((function(t){t.match(r).catch(e).then((function(i){var n=function(t){if(!t)return!1;var e=new Date(t.headers.get("Expires")),r=k(t.headers.get("Cache-Control")||"");return e&gt;Date.now()&amp;&amp;!r["no-cache"]}(i);t.delete(r),n&amp;&amp;t.put(r,i.clone()),e(null,i,n)}))}))}var ut=1/0,ct={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Image:"Image"};"function"==typeof Object.freeze&amp;&amp;Object.freeze(ct);var pt=function(t){function e(e,r,i){401===r&amp;&amp;W(i)&amp;&amp;(e+=": you may have provided an invalid Mapbox access token. See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes"),t.call(this,e),this.status=r,this.url=i,this.name=this.constructor.name,this.message=e}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.toString=function(){return this.name+": "+this.message+" ("+this.status+"): "+this.url},e}(Error);function ht(){return"undefined"!=typeof WorkerGlobalScope&amp;&amp;"undefined"!=typeof self&amp;&amp;self instanceof WorkerGlobalScope}var dt=ht()?function(){return self.worker&amp;&amp;self.worker.referrer}:function(){return("blob:"===self.location.protocol?self.parent:self).location.href};function ft(t,e){var r,i=new self.AbortController,n=new self.Request(t.url,{method:t.method||"GET",body:t.body,credentials:t.credentials,headers:t.headers,referrer:dt(),signal:i.signal}),o=!1,a=!1,s=(r=n.url).indexOf("sku=")&gt;0&amp;&amp;W(r);"json"===t.type&amp;&amp;n.headers.set("Accept","application/json");var l=function(r,i,o){if(!a){if(r&amp;&amp;"SecurityError"!==r.message&amp;&amp;w(r),i&amp;&amp;o)return u(i);var l=Date.now();self.fetch(n).then((function(r){if(r.ok){var i=s?r.clone():null;return u(r,i,l)}return e(new pt(r.statusText,r.status,t.url))})).catch((function(t){20!==t.code&amp;&amp;e(new Error(t.message))}))}},u=function(r,i,s){("arrayBuffer"===t.type?r.arrayBuffer():"json"===t.type?r.json():r.text()).then((function(t){a||(i&amp;&amp;s&amp;&amp;at(n,i,s),o=!0,e(null,t,r.headers.get("Cache-Control"),r.headers.get("Expires")))})).catch((function(t){return e(new Error(t.message))}))};return s?lt(n,l):l(null,null),{cancel:function(){a=!0,o||i.abort()}}}var mt,yt,gt=function(t,e){if(r=t.url,!(/^file:/.test(r)||/^file:/.test(dt())&amp;&amp;!/^\w+:/.test(r))){if(self.fetch&amp;&amp;self.Request&amp;&amp;self.AbortController&amp;&amp;self.Request.prototype.hasOwnProperty("signal"))return ft(t,e);if(ht()&amp;&amp;self.worker&amp;&amp;self.worker.actor)return self.worker.actor.send("getResource",t,e)}var r;return function(t,e){var r=new self.XMLHttpRequest;for(var i in r.open(t.method||"GET",t.url,!0),"arrayBuffer"===t.type&amp;&amp;(r.responseType="arraybuffer"),t.headers)r.setRequestHeader(i,t.headers[i]);return"json"===t.type&amp;&amp;(r.responseType="text",r.setRequestHeader("Accept","application/json")),r.withCredentials="include"===t.credentials,r.onerror=function(){e(new Error(r.statusText))},r.onload=function(){if((r.status&gt;=200&amp;&amp;r.status&lt;300||0===r.status)&amp;&amp;null!==r.response){var i=r.response;if("json"===t.type)try{i=JSON.parse(r.response)}catch(t){return e(t)}e(null,i,r.getResponseHeader("Cache-Control"),r.getResponseHeader("Expires"))}else e(new pt(r.statusText,r.status,t.url))},r.send(t.body),{cancel:function(){return r.abort()}}}(t,e)},vt=function(t,e){return gt(p(t,{type:"arrayBuffer"}),e)},_t=function(t,e){return gt(p(t,{method:"POST"}),e)};mt=[],yt=0;var xt=function(t,e){if(yt&gt;=R.MAX_PARALLEL_IMAGE_REQUESTS){var r={requestParameters:t,callback:e,cancelled:!1,cancel:function(){this.cancelled=!0}};return mt.push(r),r}yt++;var i=!1,n=function(){if(!i)for(i=!0,yt--;mt.length&amp;&amp;yt&lt;R.MAX_PARALLEL_IMAGE_REQUESTS;){var t=mt.shift(),e=t.requestParameters,r=t.callback;t.cancelled||(t.cancel=xt(e,r).cancel)}},o=vt(t,(function(t,r,i,o){if(n(),t)e(t);else if(r){var a=new self.Image,s=self.URL||self.webkitURL;a.onload=function(){e(null,a),s.revokeObjectURL(a.src)},a.onerror=function(){return e(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))};var l=new self.Blob([new Uint8Array(r)],{type:"image/png"});a.cacheControl=i,a.expires=o,a.src=r.byteLength?s.createObjectURL(l):"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII="}}));return{cancel:function(){o.cancel(),n()}}};function bt(t,e,r){r[t]&amp;&amp;-1!==r[t].indexOf(e)||(r[t]=r[t]||[],r[t].push(e))}function wt(t,e,r){if(r&amp;&amp;r[t]){var i=r[t].indexOf(e);-1!==i&amp;&amp;r[t].splice(i,1)}}var St=function(t,e){void 0===e&amp;&amp;(e={}),p(this,e),this.type=t},Et=function(t){function e(e,r){void 0===r&amp;&amp;(r={}),t.call(this,"error",p({error:e},r))}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e}(St),kt=function(){};kt.prototype.on=function(t,e){return this._listeners=this._listeners||{},bt(t,e,this._listeners),this},kt.prototype.off=function(t,e){return wt(t,e,this._listeners),wt(t,e,this._oneTimeListeners),this},kt.prototype.once=function(t,e){return this._oneTimeListeners=this._oneTimeListeners||{},bt(t,e,this._oneTimeListeners),this},kt.prototype.fire=function(t,e){"string"==typeof t&amp;&amp;(t=new St(t,e||{}));var r=t.type;if(this.listens(r)){t.target=this;for(var i=0,n=this._listeners&amp;&amp;this._listeners[r]?this._listeners[r].slice():[];i&lt;n.length;i+=1)n[i].call(this,t);for(var o=0,a=this._oneTimeListeners&amp;&amp;this._oneTimeListeners[r]?this._oneTimeListeners[r].slice():[];o&lt;a.length;o+=1){var s=a[o];wt(r,s,this._oneTimeListeners),s.call(this,t)}var l=this._eventedParent;l&amp;&amp;(p(t,"function"==typeof this._eventedParentData?this._eventedParentData():this._eventedParentData),l.fire(t))}else t instanceof Et&amp;&amp;console.error(t.error);return this},kt.prototype.listens=function(t){return this._listeners&amp;&amp;this._listeners[t]&amp;&amp;this._listeners[t].length&gt;0||this._oneTimeListeners&amp;&amp;this._oneTimeListeners[t]&amp;&amp;this._oneTimeListeners[t].length&gt;0||this._eventedParent&amp;&amp;this._eventedParent.listens(t)},kt.prototype.setEventedParent=function(t,e){return this._eventedParent=t,this._eventedParentData=e,this};var Tt={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},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:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"string",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"},{"!":"text-variable-anchor"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_operator:{type:"enum",values:{"==":{},"!=":{},"&gt;":{},"&gt;=":{},"&lt;":{},"&lt;=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:22,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},expression_name:{type:"enum",values:{let:{group:"Variable binding"},var:{group:"Variable binding"},literal:{group:"Types"},array:{group:"Types"},at:{group:"Lookup"},case:{group:"Decision"},match:{group:"Decision"},coalesce:{group:"Decision"},step:{group:"Ramps, scales, curves"},interpolate:{group:"Ramps, scales, curves"},"interpolate-hcl":{group:"Ramps, scales, curves"},"interpolate-lab":{group:"Ramps, scales, curves"},ln2:{group:"Math"},pi:{group:"Math"},e:{group:"Math"},typeof:{group:"Types"},string:{group:"Types"},number:{group:"Types"},boolean:{group:"Types"},object:{group:"Types"},collator:{group:"Types"},format:{group:"Types"},"number-format":{group:"Types"},"to-string":{group:"Types"},"to-number":{group:"Types"},"to-boolean":{group:"Types"},"to-rgba":{group:"Color"},"to-color":{group:"Types"},rgb:{group:"Color"},rgba:{group:"Color"},get:{group:"Lookup"},has:{group:"Lookup"},length:{group:"Lookup"},properties:{group:"Feature data"},"feature-state":{group:"Feature data"},"geometry-type":{group:"Feature data"},id:{group:"Feature data"},zoom:{group:"Zoom"},"heatmap-density":{group:"Heatmap"},"line-progress":{group:"Feature data"},accumulated:{group:"Feature data"},"+":{group:"Math"},"*":{group:"Math"},"-":{group:"Math"},"/":{group:"Math"},"%":{group:"Math"},"^":{group:"Math"},sqrt:{group:"Math"},log10:{group:"Math"},ln:{group:"Math"},log2:{group:"Math"},sin:{group:"Math"},cos:{group:"Math"},tan:{group:"Math"},asin:{group:"Math"},acos:{group:"Math"},atan:{group:"Math"},min:{group:"Math"},max:{group:"Math"},round:{group:"Math"},abs:{group:"Math"},ceil:{group:"Math"},floor:{group:"Math"},"==":{group:"Decision"},"!=":{group:"Decision"},"&gt;":{group:"Decision"},"&lt;":{group:"Decision"},"&gt;=":{group:"Decision"},"&lt;=":{group:"Decision"},all:{group:"Decision"},any:{group:"Decision"},"!":{group:"Decision"},"is-supported-script":{group:"String"},upcase:{group:"String"},downcase:{group:"String"},concat:{group:"String"},"resolved-locale":{group:"String"}}},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!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",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"string",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"string",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"string",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"string",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}}},At=function(t,e,r,i){this.message=(t?t+": ":"")+r,i&amp;&amp;(this.identifier=i),null!=e&amp;&amp;e.__line__&amp;&amp;(this.line=e.__line__)};function Ct(t){var e=t.key,r=t.value;return r?[new At(e,r,"constants have been deprecated as of v8")]:[]}function It(t){for(var e=[],r=arguments.length-1;r-- &gt;0;)e[r]=arguments[r+1];for(var i=0,n=e;i&lt;n.length;i+=1){var o=n[i];for(var a in o)t[a]=o[a]}return t}function Pt(t){return t instanceof Number||t instanceof String||t instanceof Boolean}function Mt(t){return Pt(t)?t.valueOf():t}function zt(t){if(Array.isArray(t))return t.map(zt);if(t instanceof Object&amp;&amp;!Pt(t)){var e={};for(var r in t)e[r]=zt(t[r]);return e}return Mt(t)}var Dt=function(t){function e(e,r){t.call(this,r),this.message=r,this.key=e}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e}(Error),Lt=function(t,e){void 0===e&amp;&amp;(e=[]),this.parent=t,this.bindings={};for(var r=0,i=e;r&lt;i.length;r+=1){var n=i[r],o=n[0],a=n[1];this.bindings[o]=a}};Lt.prototype.concat=function(t){return new Lt(this,t)},Lt.prototype.get=function(t){if(this.bindings[t])return this.bindings[t];if(this.parent)return this.parent.get(t);throw new Error(t+" not found in scope.")},Lt.prototype.has=function(t){return!!this.bindings[t]||!!this.parent&amp;&amp;this.parent.has(t)};var Rt={kind:"null"},Ot={kind:"number"},Bt={kind:"string"},Ft={kind:"boolean"},jt={kind:"color"},Ut={kind:"object"},Nt={kind:"value"},Vt={kind:"collator"},qt={kind:"formatted"};function Wt(t,e){return{kind:"array",itemType:t,N:e}}function Gt(t){if("array"===t.kind){var e=Gt(t.itemType);return"number"==typeof t.N?"array&lt;"+e+", "+t.N+"&gt;":"value"===t.itemType.kind?"array":"array&lt;"+e+"&gt;"}return t.kind}var Ht=[Rt,Ot,Bt,Ft,jt,qt,Ut,Wt(Nt)];function Zt(t,e){if("error"===e.kind)return null;if("array"===t.kind){if("array"===e.kind&amp;&amp;(0===e.N&amp;&amp;"value"===e.itemType.kind||!Zt(t.itemType,e.itemType))&amp;&amp;("number"!=typeof t.N||t.N===e.N))return null}else{if(t.kind===e.kind)return null;if("value"===t.kind)for(var r=0,i=Ht;r&lt;i.length;r+=1)if(!Zt(i[r],e))return null}return"Expected "+Gt(t)+" but found "+Gt(e)+" instead."}var Xt=e((function(t,e){var r={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 i(t){return(t=Math.round(t))&lt;0?0:t&gt;255?255:t}function n(t){return t&lt;0?0:t&gt;1?1:t}function o(t){return"%"===t[t.length-1]?i(parseFloat(t)/100*255):i(parseInt(t))}function a(t){return"%"===t[t.length-1]?n(parseFloat(t)/100):n(parseFloat(t))}function s(t,e,r){return r&lt;0?r+=1:r&gt;1&amp;&amp;(r-=1),6*r&lt;1?t+(e-t)*r*6:2*r&lt;1?e:3*r&lt;2?t+(e-t)*(2/3-r)*6:t}try{e.parseCSSColor=function(t){var e,n=t.replace(/ /g,"").toLowerCase();if(n in r)return r[n].slice();if("#"===n[0])return 4===n.length?(e=parseInt(n.substr(1),16))&gt;=0&amp;&amp;e&lt;=4095?[(3840&amp;e)&gt;&gt;4|(3840&amp;e)&gt;&gt;8,240&amp;e|(240&amp;e)&gt;&gt;4,15&amp;e|(15&amp;e)&lt;&lt;4,1]:null:7===n.length&amp;&amp;(e=parseInt(n.substr(1),16))&gt;=0&amp;&amp;e&lt;=16777215?[(16711680&amp;e)&gt;&gt;16,(65280&amp;e)&gt;&gt;8,255&amp;e,1]:null;var l=n.indexOf("("),u=n.indexOf(")");if(-1!==l&amp;&amp;u+1===n.length){var c=n.substr(0,l),p=n.substr(l+1,u-(l+1)).split(","),h=1;switch(c){case"rgba":if(4!==p.length)return null;h=a(p.pop());case"rgb":return 3!==p.length?null:[o(p[0]),o(p[1]),o(p[2]),h];case"hsla":if(4!==p.length)return null;h=a(p.pop());case"hsl":if(3!==p.length)return null;var d=(parseFloat(p[0])%360+360)%360/360,f=a(p[1]),m=a(p[2]),y=m&lt;=.5?m*(f+1):m+f-m*f,g=2*m-y;return[i(255*s(g,y,d+1/3)),i(255*s(g,y,d)),i(255*s(g,y,d-1/3)),h];default:return null}}return null}}catch(t){}})).parseCSSColor,$t=function(t,e,r,i){void 0===i&amp;&amp;(i=1),this.r=t,this.g=e,this.b=r,this.a=i};$t.parse=function(t){if(t){if(t instanceof $t)return t;if("string"==typeof t){var e=Xt(t);if(e)return new $t(e[0]/255*e[3],e[1]/255*e[3],e[2]/255*e[3],e[3])}}},$t.prototype.toString=function(){var t=this.toArray(),e=t[0],r=t[1],i=t[2],n=t[3];return"rgba("+Math.round(e)+","+Math.round(r)+","+Math.round(i)+","+n+")"},$t.prototype.toArray=function(){var t=this.r,e=this.g,r=this.b,i=this.a;return 0===i?[0,0,0,0]:[255*t/i,255*e/i,255*r/i,i]},$t.black=new $t(0,0,0,1),$t.white=new $t(1,1,1,1),$t.transparent=new $t(0,0,0,0),$t.red=new $t(1,0,0,1);var Yt=function(t,e,r){this.sensitivity=t?e?"variant":"case":e?"accent":"base",this.locale=r,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};Yt.prototype.compare=function(t,e){return this.collator.compare(t,e)},Yt.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var Kt=function(t,e,r,i){this.text=t,this.scale=e,this.fontStack=r,this.textColor=i},Jt=function(t){this.sections=t};function Qt(t,e,r,i){return"number"==typeof t&amp;&amp;t&gt;=0&amp;&amp;t&lt;=255&amp;&amp;"number"==typeof e&amp;&amp;e&gt;=0&amp;&amp;e&lt;=255&amp;&amp;"number"==typeof r&amp;&amp;r&gt;=0&amp;&amp;r&lt;=255?void 0===i||"number"==typeof i&amp;&amp;i&gt;=0&amp;&amp;i&lt;=1?null:"Invalid rgba value ["+[t,e,r,i].join(", ")+"]: 'a' must be between 0 and 1.":"Invalid rgba value ["+("number"==typeof i?[t,e,r,i]:[t,e,r]).join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}function te(t){if(null===t)return Rt;if("string"==typeof t)return Bt;if("boolean"==typeof t)return Ft;if("number"==typeof t)return Ot;if(t instanceof $t)return jt;if(t instanceof Yt)return Vt;if(t instanceof Jt)return qt;if(Array.isArray(t)){for(var e,r=t.length,i=0,n=t;i&lt;n.length;i+=1){var o=te(n[i]);if(e){if(e===o)continue;e=Nt;break}e=o}return Wt(e||Nt,r)}return Ut}function ee(t){var e=typeof t;return null===t?"":"string"===e||"number"===e||"boolean"===e?String(t):t instanceof $t||t instanceof Jt?t.toString():JSON.stringify(t)}Jt.fromString=function(t){return new Jt([new Kt(t,null,null,null)])},Jt.prototype.toString=function(){return this.sections.map((function(t){return t.text})).join("")},Jt.prototype.serialize=function(){for(var t=["format"],e=0,r=this.sections;e&lt;r.length;e+=1){var i=r[e];t.push(i.text);var n={};i.fontStack&amp;&amp;(n["text-font"]=["literal",i.fontStack.split(",")]),i.scale&amp;&amp;(n["font-scale"]=i.scale),i.textColor&amp;&amp;(n["text-color"]=["rgba"].concat(i.textColor.toArray())),t.push(n)}return t};var re=function(t,e){this.type=t,this.value=e};re.parse=function(t,e){if(2!==t.length)return e.error("'literal' expression requires exactly one argument, but found "+(t.length-1)+" instead.");if(!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 $t)return!0;if(e instanceof Yt)return!0;if(e instanceof Jt)return!0;if(Array.isArray(e)){for(var r=0,i=e;r&lt;i.length;r+=1)if(!t(i[r]))return!1;return!0}if("object"==typeof e){for(var n in e)if(!t(e[n]))return!1;return!0}return!1}(t[1]))return e.error("invalid value");var r=t[1],i=te(r),n=e.expectedType;return"array"!==i.kind||0!==i.N||!n||"array"!==n.kind||"number"==typeof n.N&amp;&amp;0!==n.N||(i=n),new re(i,r)},re.prototype.evaluate=function(){return this.value},re.prototype.eachChild=function(){},re.prototype.possibleOutputs=function(){return[this.value]},re.prototype.serialize=function(){return"array"===this.type.kind||"object"===this.type.kind?["literal",this.value]:this.value instanceof $t?["rgba"].concat(this.value.toArray()):this.value instanceof Jt?this.value.serialize():this.value};var ie=function(t){this.name="ExpressionEvaluationError",this.message=t};ie.prototype.toJSON=function(){return this.message};var ne={string:Bt,number:Ot,boolean:Ft,object:Ut},oe=function(t,e){this.type=t,this.args=e};oe.parse=function(t,e){if(t.length&lt;2)return e.error("Expected at least one argument.");var r,i=1,n=t[0];if("array"===n){var o,a;if(t.length&gt;2){var s=t[1];if("string"!=typeof s||!(s in ne)||"object"===s)return e.error('The item type argument of "array" must be one of string, number, boolean',1);o=ne[s],i++}else o=Nt;if(t.length&gt;3){if(null!==t[2]&amp;&amp;("number"!=typeof t[2]||t[2]&lt;0||t[2]!==Math.floor(t[2])))return e.error('The length argument to "array" must be a positive integer literal',2);a=t[2],i++}r=Wt(o,a)}else r=ne[n];for(var l=[];i&lt;t.length;i++){var u=e.parse(t[i],i,Nt);if(!u)return null;l.push(u)}return new oe(r,l)},oe.prototype.evaluate=function(t){for(var e=0;e&lt;this.args.length;e++){var r=this.args[e].evaluate(t);if(!Zt(this.type,te(r)))return r;if(e===this.args.length-1)throw new ie("Expected value to be of type "+Gt(this.type)+", but found "+Gt(te(r))+" instead.")}return null},oe.prototype.eachChild=function(t){this.args.forEach(t)},oe.prototype.possibleOutputs=function(){var t;return(t=[]).concat.apply(t,this.args.map((function(t){return t.possibleOutputs()})))},oe.prototype.serialize=function(){var t=this.type,e=[t.kind];if("array"===t.kind){var r=t.itemType;if("string"===r.kind||"number"===r.kind||"boolean"===r.kind){e.push(r.kind);var i=t.N;("number"==typeof i||this.args.length&gt;1)&amp;&amp;e.push(i)}}return e.concat(this.args.map((function(t){return t.serialize()})))};var ae=function(t){this.type=qt,this.sections=t};ae.parse=function(t,e){if(t.length&lt;3)return e.error("Expected at least two arguments.");if((t.length-1)%2!=0)return e.error("Expected an even number of arguments.");for(var r=[],i=1;i&lt;t.length-1;i+=2){var n=e.parse(t[i],1,Nt);if(!n)return null;var o=n.type.kind;if("string"!==o&amp;&amp;"value"!==o&amp;&amp;"null"!==o)return e.error("Formatted text type must be 'string', 'value', or 'null'.");var a=t[i+1];if("object"!=typeof a||Array.isArray(a))return e.error("Format options argument must be an object.");var s=null;if(a["font-scale"]&amp;&amp;!(s=e.parse(a["font-scale"],1,Ot)))return null;var l=null;if(a["text-font"]&amp;&amp;!(l=e.parse(a["text-font"],1,Wt(Bt))))return null;var u=null;if(a["text-color"]&amp;&amp;!(u=e.parse(a["text-color"],1,jt)))return null;r.push({text:n,scale:s,font:l,textColor:u})}return new ae(r)},ae.prototype.evaluate=function(t){return new Jt(this.sections.map((function(e){return new Kt(ee(e.text.evaluate(t)),e.scale?e.scale.evaluate(t):null,e.font?e.font.evaluate(t).join(","):null,e.textColor?e.textColor.evaluate(t):null)})))},ae.prototype.eachChild=function(t){for(var e=0,r=this.sections;e&lt;r.length;e+=1){var i=r[e];t(i.text),i.scale&amp;&amp;t(i.scale),i.font&amp;&amp;t(i.font),i.textColor&amp;&amp;t(i.textColor)}},ae.prototype.possibleOutputs=function(){return[void 0]},ae.prototype.serialize=function(){for(var t=["format"],e=0,r=this.sections;e&lt;r.length;e+=1){var i=r[e];t.push(i.text.serialize());var n={};i.scale&amp;&amp;(n["font-scale"]=i.scale.serialize()),i.font&amp;&amp;(n["text-font"]=i.font.serialize()),i.textColor&amp;&amp;(n["text-color"]=i.textColor.serialize()),t.push(n)}return t};var se={"to-boolean":Ft,"to-color":jt,"to-number":Ot,"to-string":Bt},le=function(t,e){this.type=t,this.args=e};le.parse=function(t,e){if(t.length&lt;2)return e.error("Expected at least one argument.");var r=t[0];if(("to-boolean"===r||"to-string"===r)&amp;&amp;2!==t.length)return e.error("Expected one argument.");for(var i=se[r],n=[],o=1;o&lt;t.length;o++){var a=e.parse(t[o],o,Nt);if(!a)return null;n.push(a)}return new le(i,n)},le.prototype.evaluate=function(t){if("boolean"===this.type.kind)return Boolean(this.args[0].evaluate(t));if("color"===this.type.kind){for(var e,r,i=0,n=this.args;i&lt;n.length;i+=1){if(r=null,(e=n[i].evaluate(t))instanceof $t)return e;if("string"==typeof e){var o=t.parseColor(e);if(o)return o}else if(Array.isArray(e)&amp;&amp;!(r=e.length&lt;3||e.length&gt;4?"Invalid rbga value "+JSON.stringify(e)+": expected an array containing either three or four numeric values.":Qt(e[0],e[1],e[2],e[3])))return new $t(e[0]/255,e[1]/255,e[2]/255,e[3])}throw new ie(r||"Could not parse color from value '"+("string"==typeof e?e:String(JSON.stringify(e)))+"'")}if("number"===this.type.kind){for(var a=null,s=0,l=this.args;s&lt;l.length;s+=1){if(null===(a=l[s].evaluate(t)))return 0;var u=Number(a);if(!isNaN(u))return u}throw new ie("Could not convert "+JSON.stringify(a)+" to number.")}return"formatted"===this.type.kind?Jt.fromString(ee(this.args[0].evaluate(t))):ee(this.args[0].evaluate(t))},le.prototype.eachChild=function(t){this.args.forEach(t)},le.prototype.possibleOutputs=function(){var t;return(t=[]).concat.apply(t,this.args.map((function(t){return t.possibleOutputs()})))},le.prototype.serialize=function(){if("formatted"===this.type.kind)return new ae([{text:this.args[0],scale:null,font:null,textColor:null}]).serialize();var t=["to-"+this.type.kind];return this.eachChild((function(e){t.push(e.serialize())})),t};var ue=["Unknown","Point","LineString","Polygon"],ce=function(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={}};ce.prototype.id=function(){return this.feature&amp;&amp;"id"in this.feature?this.feature.id:null},ce.prototype.geometryType=function(){return this.feature?"number"==typeof this.feature.type?ue[this.feature.type]:this.feature.type:null},ce.prototype.properties=function(){return this.feature&amp;&amp;this.feature.properties||{}},ce.prototype.parseColor=function(t){var e=this._parseColorCache[t];return e||(e=this._parseColorCache[t]=$t.parse(t)),e};var pe=function(t,e,r,i){this.name=t,this.type=e,this._evaluate=r,this.args=i};pe.prototype.evaluate=function(t){return this._evaluate(t,this.args)},pe.prototype.eachChild=function(t){this.args.forEach(t)},pe.prototype.possibleOutputs=function(){return[void 0]},pe.prototype.serialize=function(){return[this.name].concat(this.args.map((function(t){return t.serialize()})))},pe.parse=function(t,e){var r,i=t[0],n=pe.definitions[i];if(!n)return e.error('Unknown expression "'+i+'". If you wanted a literal array, use ["literal", [...]].',0);for(var o=Array.isArray(n)?n[0]:n.type,a=Array.isArray(n)?[[n[1],n[2]]]:n.overloads,s=a.filter((function(e){var r=e[0];return!Array.isArray(r)||r.length===t.length-1})),l=null,u=0,c=s;u&lt;c.length;u+=1){var p=c[u],h=p[0],d=p[1];l=new ge(e.registry,e.path,null,e.scope);for(var f=[],m=!1,y=1;y&lt;t.length;y++){var g=t[y],v=Array.isArray(h)?h[y-1]:h.type,_=l.parse(g,1+f.length,v);if(!_){m=!0;break}f.push(_)}if(!m)if(Array.isArray(h)&amp;&amp;h.length!==f.length)l.error("Expected "+h.length+" arguments, but found "+f.length+" instead.");else{for(var x=0;x&lt;f.length;x++){var b=Array.isArray(h)?h[x]:h.type,w=f[x];l.concat(x+1).checkSubtype(b,w.type)}if(0===l.errors.length)return new pe(i,o,d,f)}}if(1===s.length)(r=e.errors).push.apply(r,l.errors);else{for(var S=(s.length?s:a).map((function(t){var e;return e=t[0],Array.isArray(e)?"("+e.map(Gt).join(", ")+")":"("+Gt(e.type)+"...)"})).join(" | "),E=[],k=1;k&lt;t.length;k++){var T=e.parse(t[k],1+E.length);if(!T)return null;E.push(Gt(T.type))}e.error("Expected arguments of type "+S+", but found ("+E.join(", ")+") instead.")}return null},pe.register=function(t,e){for(var r in pe.definitions=e,e)t[r]=pe};var he=function(t,e,r){this.type=Vt,this.locale=r,this.caseSensitive=t,this.diacriticSensitive=e};function de(t){if(t instanceof pe){if("get"===t.name&amp;&amp;1===t.args.length)return!1;if("feature-state"===t.name)return!1;if("has"===t.name&amp;&amp;1===t.args.length)return!1;if("properties"===t.name||"geometry-type"===t.name||"id"===t.name)return!1;if(/^filter-/.test(t.name))return!1}var e=!0;return t.eachChild((function(t){e&amp;&amp;!de(t)&amp;&amp;(e=!1)})),e}function fe(t){if(t instanceof pe&amp;&amp;"feature-state"===t.name)return!1;var e=!0;return t.eachChild((function(t){e&amp;&amp;!fe(t)&amp;&amp;(e=!1)})),e}function me(t,e){if(t instanceof pe&amp;&amp;e.indexOf(t.name)&gt;=0)return!1;var r=!0;return t.eachChild((function(t){r&amp;&amp;!me(t,e)&amp;&amp;(r=!1)})),r}he.parse=function(t,e){if(2!==t.length)return e.error("Expected one argument.");var r=t[1];if("object"!=typeof r||Array.isArray(r))return e.error("Collator options argument must be an object.");var i=e.parse(void 0!==r["case-sensitive"]&amp;&amp;r["case-sensitive"],1,Ft);if(!i)return null;var n=e.parse(void 0!==r["diacritic-sensitive"]&amp;&amp;r["diacritic-sensitive"],1,Ft);if(!n)return null;var o=null;return r.locale&amp;&amp;!(o=e.parse(r.locale,1,Bt))?null:new he(i,n,o)},he.prototype.evaluate=function(t){return new Yt(this.caseSensitive.evaluate(t),this.diacriticSensitive.evaluate(t),this.locale?this.locale.evaluate(t):null)},he.prototype.eachChild=function(t){t(this.caseSensitive),t(this.diacriticSensitive),this.locale&amp;&amp;t(this.locale)},he.prototype.possibleOutputs=function(){return[void 0]},he.prototype.serialize=function(){var t={};return t["case-sensitive"]=this.caseSensitive.serialize(),t["diacritic-sensitive"]=this.diacriticSensitive.serialize(),this.locale&amp;&amp;(t.locale=this.locale.serialize()),["collator",t]};var ye=function(t,e){this.type=e.type,this.name=t,this.boundExpression=e};ye.parse=function(t,e){if(2!==t.length||"string"!=typeof t[1])return e.error("'var' expression requires exactly one string literal argument.");var r=t[1];return e.scope.has(r)?new ye(r,e.scope.get(r)):e.error('Unknown variable "'+r+'". Make sure "'+r+'" has been bound in an enclosing "let" expression before using it.',1)},ye.prototype.evaluate=function(t){return this.boundExpression.evaluate(t)},ye.prototype.eachChild=function(){},ye.prototype.possibleOutputs=function(){return[void 0]},ye.prototype.serialize=function(){return["var",this.name]};var ge=function(t,e,r,i,n){void 0===e&amp;&amp;(e=[]),void 0===i&amp;&amp;(i=new Lt),void 0===n&amp;&amp;(n=[]),this.registry=t,this.path=e,this.key=e.map((function(t){return"["+t+"]"})).join(""),this.scope=i,this.errors=n,this.expectedType=r};function ve(t,e){for(var r,i,n=t.length-1,o=0,a=n,s=0;o&lt;=a;)if(r=t[s=Math.floor((o+a)/2)],i=t[s+1],r&lt;=e){if(s===n||e&lt;i)return s;o=s+1}else{if(!(r&gt;e))throw new ie("Input is not a number.");a=s-1}return 0}ge.prototype.parse=function(t,e,r,i,n){return void 0===n&amp;&amp;(n={}),e?this.concat(e,r,i)._parse(t,n):this._parse(t,n)},ge.prototype._parse=function(t,e){function r(t,e,r){return"assert"===r?new oe(e,[t]):"coerce"===r?new le(e,[t]):t}if(null!==t&amp;&amp;"string"!=typeof t&amp;&amp;"boolean"!=typeof t&amp;&amp;"number"!=typeof t||(t=["literal",t]),Array.isArray(t)){if(0===t.length)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var i=t[0];if("string"!=typeof i)return this.error("Expression name must be a string, but found "+typeof i+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var n=this.registry[i];if(n){var o=n.parse(t,this);if(!o)return null;if(this.expectedType){var a=this.expectedType,s=o.type;if("string"!==a.kind&amp;&amp;"number"!==a.kind&amp;&amp;"boolean"!==a.kind&amp;&amp;"object"!==a.kind&amp;&amp;"array"!==a.kind||"value"!==s.kind)if("color"!==a.kind&amp;&amp;"formatted"!==a.kind||"value"!==s.kind&amp;&amp;"string"!==s.kind){if(this.checkSubtype(a,s))return null}else o=r(o,a,e.typeAnnotation||"coerce");else o=r(o,a,e.typeAnnotation||"assert")}if(!(o instanceof re)&amp;&amp;function t(e){if(e instanceof ye)return t(e.boundExpression);if(e instanceof pe&amp;&amp;"error"===e.name)return!1;if(e instanceof he)return!1;var r=e instanceof le||e instanceof oe,i=!0;return e.eachChild((function(e){i=r?i&amp;&amp;t(e):i&amp;&amp;e instanceof re})),!!i&amp;&amp;de(e)&amp;&amp;me(e,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"])}(o)){var l=new ce;try{o=new re(o.type,o.evaluate(l))}catch(t){return this.error(t.message),null}}return o}return this.error('Unknown expression "'+i+'". If you wanted a literal array, use ["literal", [...]].',0)}return void 0===t?this.error("'undefined' value invalid. Use null instead."):"object"==typeof t?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error("Expected an array, but found "+typeof t+" instead.")},ge.prototype.concat=function(t,e,r){var i="number"==typeof t?this.path.concat(t):this.path,n=r?this.scope.concat(r):this.scope;return new ge(this.registry,i,e||null,n,this.errors)},ge.prototype.error=function(t){for(var e=[],r=arguments.length-1;r-- &gt;0;)e[r]=arguments[r+1];var i=""+this.key+e.map((function(t){return"["+t+"]"})).join("");this.errors.push(new Dt(i,t))},ge.prototype.checkSubtype=function(t,e){var r=Zt(t,e);return r&amp;&amp;this.error(r),r};var _e=function(t,e,r){this.type=t,this.input=e,this.labels=[],this.outputs=[];for(var i=0,n=r;i&lt;n.length;i+=1){var o=n[i],a=o[0],s=o[1];this.labels.push(a),this.outputs.push(s)}};function xe(t,e,r){return t*(1-r)+e*r}_e.parse=function(t,e){if(t.length-1&lt;4)return e.error("Expected at least 4 arguments, but found only "+(t.length-1)+".");if((t.length-1)%2!=0)return e.error("Expected an even number of arguments.");var r=e.parse(t[1],1,Ot);if(!r)return null;var i=[],n=null;e.expectedType&amp;&amp;"value"!==e.expectedType.kind&amp;&amp;(n=e.expectedType);for(var o=1;o&lt;t.length;o+=2){var a=1===o?-1/0:t[o],s=t[o+1],l=o,u=o+1;if("number"!=typeof a)return e.error('Input/output pairs for "step" expressions must be defined using literal numeric values (not computed expressions) for the input values.',l);if(i.length&amp;&amp;i[i.length-1][0]&gt;=a)return e.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',l);var c=e.parse(s,u,n);if(!c)return null;n=n||c.type,i.push([a,c])}return new _e(n,r,i)},_e.prototype.evaluate=function(t){var e=this.labels,r=this.outputs;if(1===e.length)return r[0].evaluate(t);var i=this.input.evaluate(t);if(i&lt;=e[0])return r[0].evaluate(t);var n=e.length;return i&gt;=e[n-1]?r[n-1].evaluate(t):r[ve(e,i)].evaluate(t)},_e.prototype.eachChild=function(t){t(this.input);for(var e=0,r=this.outputs;e&lt;r.length;e+=1)t(r[e])},_e.prototype.possibleOutputs=function(){var t;return(t=[]).concat.apply(t,this.outputs.map((function(t){return t.possibleOutputs()})))},_e.prototype.serialize=function(){for(var t=["step",this.input.serialize()],e=0;e&lt;this.labels.length;e++)e&gt;0&amp;&amp;t.push(this.labels[e]),t.push(this.outputs[e].serialize());return t};var be=Object.freeze({number:xe,color:function(t,e,r){return new $t(xe(t.r,e.r,r),xe(t.g,e.g,r),xe(t.b,e.b,r),xe(t.a,e.a,r))},array:function(t,e,r){return t.map((function(t,i){return xe(t,e[i],r)}))}}),we=.95047,Se=1,Ee=1.08883,ke=4/29,Te=6/29,Ae=3*Te*Te,Ce=Te*Te*Te,Ie=Math.PI/180,Pe=180/Math.PI;function Me(t){return t&gt;Ce?Math.pow(t,1/3):t/Ae+ke}function ze(t){return t&gt;Te?t*t*t:Ae*(t-ke)}function De(t){return 255*(t&lt;=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Le(t){return(t/=255)&lt;=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Re(t){var e=Le(t.r),r=Le(t.g),i=Le(t.b),n=Me((.4124564*e+.3575761*r+.1804375*i)/we),o=Me((.2126729*e+.7151522*r+.072175*i)/Se);return{l:116*o-16,a:500*(n-o),b:200*(o-Me((.0193339*e+.119192*r+.9503041*i)/Ee)),alpha:t.a}}function Oe(t){var e=(t.l+16)/116,r=isNaN(t.a)?e:e+t.a/500,i=isNaN(t.b)?e:e-t.b/200;return e=Se*ze(e),r=we*ze(r),i=Ee*ze(i),new $t(De(3.2404542*r-1.5371385*e-.4985314*i),De(-.969266*r+1.8760108*e+.041556*i),De(.0556434*r-.2040259*e+1.0572252*i),t.alpha)}function Be(t,e,r){var i=e-t;return t+r*(i&gt;180||i&lt;-180?i-360*Math.round(i/360):i)}var Fe={forward:Re,reverse:Oe,interpolate:function(t,e,r){return{l:xe(t.l,e.l,r),a:xe(t.a,e.a,r),b:xe(t.b,e.b,r),alpha:xe(t.alpha,e.alpha,r)}}},je={forward:function(t){var e=Re(t),r=e.l,i=e.a,n=e.b,o=Math.atan2(n,i)*Pe;return{h:o&lt;0?o+360:o,c:Math.sqrt(i*i+n*n),l:r,alpha:t.a}},reverse:function(t){var e=t.h*Ie,r=t.c;return Oe({l:t.l,a:Math.cos(e)*r,b:Math.sin(e)*r,alpha:t.alpha})},interpolate:function(t,e,r){return{h:Be(t.h,e.h,r),c:xe(t.c,e.c,r),l:xe(t.l,e.l,r),alpha:xe(t.alpha,e.alpha,r)}}},Ue=Object.freeze({lab:Fe,hcl:je}),Ne=function(t,e,r,i,n){this.type=t,this.operator=e,this.interpolation=r,this.input=i,this.labels=[],this.outputs=[];for(var o=0,a=n;o&lt;a.length;o+=1){var s=a[o],l=s[0],u=s[1];this.labels.push(l),this.outputs.push(u)}};function Ve(t,e,r,i){var n=i-r,o=t-r;return 0===n?0:1===e?o/n:(Math.pow(e,o)-1)/(Math.pow(e,n)-1)}Ne.interpolationFactor=function(t,e,i,n){var o=0;if("exponential"===t.name)o=Ve(e,t.base,i,n);else if("linear"===t.name)o=Ve(e,1,i,n);else if("cubic-bezier"===t.name){var a=t.controlPoints;o=new r(a[0],a[1],a[2],a[3]).solve(Ve(e,1,i,n))}return o},Ne.parse=function(t,e){var r=t[0],i=t[1],n=t[2],o=t.slice(3);if(!Array.isArray(i)||0===i.length)return e.error("Expected an interpolation type expression.",1);if("linear"===i[0])i={name:"linear"};else if("exponential"===i[0]){var a=i[1];if("number"!=typeof a)return e.error("Exponential interpolation requires a numeric base.",1,1);i={name:"exponential",base:a}}else{if("cubic-bezier"!==i[0])return e.error("Unknown interpolation type "+String(i[0]),1,0);var s=i.slice(1);if(4!==s.length||s.some((function(t){return"number"!=typeof t||t&lt;0||t&gt;1})))return e.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);i={name:"cubic-bezier",controlPoints:s}}if(t.length-1&lt;4)return e.error("Expected at least 4 arguments, but found only "+(t.length-1)+".");if((t.length-1)%2!=0)return e.error("Expected an even number of arguments.");if(!(n=e.parse(n,2,Ot)))return null;var l=[],u=null;"interpolate-hcl"===r||"interpolate-lab"===r?u=jt:e.expectedType&amp;&amp;"value"!==e.expectedType.kind&amp;&amp;(u=e.expectedType);for(var c=0;c&lt;o.length;c+=2){var p=o[c],h=o[c+1],d=c+3,f=c+4;if("number"!=typeof p)return e.error('Input/output pairs for "interpolate" expressions must be defined using literal numeric values (not computed expressions) for the input values.',d);if(l.length&amp;&amp;l[l.length-1][0]&gt;=p)return e.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',d);var m=e.parse(h,f,u);if(!m)return null;u=u||m.type,l.push([p,m])}return"number"===u.kind||"color"===u.kind||"array"===u.kind&amp;&amp;"number"===u.itemType.kind&amp;&amp;"number"==typeof u.N?new Ne(u,r,i,n,l):e.error("Type "+Gt(u)+" is not interpolatable.")},Ne.prototype.evaluate=function(t){var e=this.labels,r=this.outputs;if(1===e.length)return r[0].evaluate(t);var i=this.input.evaluate(t);if(i&lt;=e[0])return r[0].evaluate(t);var n=e.length;if(i&gt;=e[n-1])return r[n-1].evaluate(t);var o=ve(e,i),a=e[o],s=e[o+1],l=Ne.interpolationFactor(this.interpolation,i,a,s),u=r[o].evaluate(t),c=r[o+1].evaluate(t);return"interpolate"===this.operator?be[this.type.kind.toLowerCase()](u,c,l):"interpolate-hcl"===this.operator?je.reverse(je.interpolate(je.forward(u),je.forward(c),l)):Fe.reverse(Fe.interpolate(Fe.forward(u),Fe.forward(c),l))},Ne.prototype.eachChild=function(t){t(this.input);for(var e=0,r=this.outputs;e&lt;r.length;e+=1)t(r[e])},Ne.prototype.possibleOutputs=function(){var t;return(t=[]).concat.apply(t,this.outputs.map((function(t){return t.possibleOutputs()})))},Ne.prototype.serialize=function(){var t;t="linear"===this.interpolation.name?["linear"]:"exponential"===this.interpolation.name?1===this.interpolation.base?["linear"]:["exponential",this.interpolation.base]:["cubic-bezier"].concat(this.interpolation.controlPoints);for(var e=[this.operator,t,this.input.serialize()],r=0;r&lt;this.labels.length;r++)e.push(this.labels[r],this.outputs[r].serialize());return e};var qe=function(t,e){this.type=t,this.args=e};qe.parse=function(t,e){if(t.length&lt;2)return e.error("Expectected at least one argument.");var r=null,i=e.expectedType;i&amp;&amp;"value"!==i.kind&amp;&amp;(r=i);for(var n=[],o=0,a=t.slice(1);o&lt;a.length;o+=1){var s=a[o],l=e.parse(s,1+n.length,r,void 0,{typeAnnotation:"omit"});if(!l)return null;r=r||l.type,n.push(l)}var u=i&amp;&amp;n.some((function(t){return Zt(i,t.type)}));return new qe(u?Nt:r,n)},qe.prototype.evaluate=function(t){for(var e=null,r=0,i=this.args;r&lt;i.length&amp;&amp;null===(e=i[r].evaluate(t));r+=1);return e},qe.prototype.eachChild=function(t){this.args.forEach(t)},qe.prototype.possibleOutputs=function(){var t;return(t=[]).concat.apply(t,this.args.map((function(t){return t.possibleOutputs()})))},qe.prototype.serialize=function(){var t=["coalesce"];return this.eachChild((function(e){t.push(e.serialize())})),t};var We=function(t,e){this.type=e.type,this.bindings=[].concat(t),this.result=e};We.prototype.evaluate=function(t){return this.result.evaluate(t)},We.prototype.eachChild=function(t){for(var e=0,r=this.bindings;e&lt;r.length;e+=1)t(r[e][1]);t(this.result)},We.parse=function(t,e){if(t.length&lt;4)return e.error("Expected at least 3 arguments, but found "+(t.length-1)+" instead.");for(var r=[],i=1;i&lt;t.length-1;i+=2){var n=t[i];if("string"!=typeof n)return e.error("Expected string, but found "+typeof n+" instead.",i);if(/[^a-zA-Z0-9_]/.test(n))return e.error("Variable names must contain only alphanumeric characters or '_'.",i);var o=e.parse(t[i+1],i+1);if(!o)return null;r.push([n,o])}var a=e.parse(t[t.length-1],t.length-1,e.expectedType,r);return a?new We(r,a):null},We.prototype.possibleOutputs=function(){return this.result.possibleOutputs()},We.prototype.serialize=function(){for(var t=["let"],e=0,r=this.bindings;e&lt;r.length;e+=1){var i=r[e],n=i[0],o=i[1];t.push(n,o.serialize())}return t.push(this.result.serialize()),t};var Ge=function(t,e,r){this.type=t,this.index=e,this.input=r};Ge.parse=function(t,e){if(3!==t.length)return e.error("Expected 2 arguments, but found "+(t.length-1)+" instead.");var r=e.parse(t[1],1,Ot),i=e.parse(t[2],2,Wt(e.expectedType||Nt));if(!r||!i)return null;var n=i.type;return new Ge(n.itemType,r,i)},Ge.prototype.evaluate=function(t){var e=this.index.evaluate(t),r=this.input.evaluate(t);if(e&lt;0)throw new ie("Array index out of bounds: "+e+" &lt; 0.");if(e&gt;=r.length)throw new ie("Array index out of bounds: "+e+" &gt; "+(r.length-1)+".");if(e!==Math.floor(e))throw new ie("Array index must be an integer, but found "+e+" instead.");return r[e]},Ge.prototype.eachChild=function(t){t(this.index),t(this.input)},Ge.prototype.possibleOutputs=function(){return[void 0]},Ge.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var He=function(t,e,r,i,n,o){this.inputType=t,this.type=e,this.input=r,this.cases=i,this.outputs=n,this.otherwise=o};He.parse=function(t,e){if(t.length&lt;5)return e.error("Expected at least 4 arguments, but found only "+(t.length-1)+".");if(t.length%2!=1)return e.error("Expected an even number of arguments.");var r,i;e.expectedType&amp;&amp;"value"!==e.expectedType.kind&amp;&amp;(i=e.expectedType);for(var n={},o=[],a=2;a&lt;t.length-1;a+=2){var s=t[a],l=t[a+1];Array.isArray(s)||(s=[s]);var u=e.concat(a);if(0===s.length)return u.error("Expected at least one branch label.");for(var c=0,p=s;c&lt;p.length;c+=1){var h=p[c];if("number"!=typeof h&amp;&amp;"string"!=typeof h)return u.error("Branch labels must be numbers or strings.");if("number"==typeof h&amp;&amp;Math.abs(h)&gt;Number.MAX_SAFE_INTEGER)return u.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if("number"==typeof h&amp;&amp;Math.floor(h)!==h)return u.error("Numeric branch labels must be integer values.");if(r){if(u.checkSubtype(r,te(h)))return null}else r=te(h);if(void 0!==n[String(h)])return u.error("Branch labels must be unique.");n[String(h)]=o.length}var d=e.parse(l,a,i);if(!d)return null;i=i||d.type,o.push(d)}var f=e.parse(t[1],1,Nt);if(!f)return null;var m=e.parse(t[t.length-1],t.length-1,i);return m?"value"!==f.type.kind&amp;&amp;e.concat(1).checkSubtype(r,f.type)?null:new He(r,i,f,n,o,m):null},He.prototype.evaluate=function(t){var e=this.input.evaluate(t);return(te(e)===this.inputType&amp;&amp;this.outputs[this.cases[e]]||this.otherwise).evaluate(t)},He.prototype.eachChild=function(t){t(this.input),this.outputs.forEach(t),t(this.otherwise)},He.prototype.possibleOutputs=function(){var t;return(t=[]).concat.apply(t,this.outputs.map((function(t){return t.possibleOutputs()}))).concat(this.otherwise.possibleOutputs())},He.prototype.serialize=function(){for(var t=this,e=["match",this.input.serialize()],r=[],i={},n=0,o=Object.keys(this.cases).sort();n&lt;o.length;n+=1){var a=o[n];void 0===(p=i[this.cases[a]])?(i[this.cases[a]]=r.length,r.push([this.cases[a],[a]])):r[p][1].push(a)}for(var s=function(e){return"number"===t.inputType.kind?Number(e):e},l=0,u=r;l&lt;u.length;l+=1){var c=u[l],p=c[0],h=c[1];1===h.length?e.push(s(h[0])):e.push(h.map(s)),e.push(this.outputs[outputIndex$1].serialize())}return e.push(this.otherwise.serialize()),e};var Ze=function(t,e,r){this.type=t,this.branches=e,this.otherwise=r};function Xe(t,e){return"=="===t||"!="===t?"boolean"===e.kind||"string"===e.kind||"number"===e.kind||"null"===e.kind||"value"===e.kind:"string"===e.kind||"number"===e.kind||"value"===e.kind}function $e(t,e,r,i){return 0===i.compare(e,r)}function Ye(t,e,r){var i="=="!==t&amp;&amp;"!="!==t;return function(){function n(t,e,r){this.type=Ft,this.lhs=t,this.rhs=e,this.collator=r,this.hasUntypedArgument="value"===t.type.kind||"value"===e.type.kind}return n.parse=function(t,e){if(3!==t.length&amp;&amp;4!==t.length)return e.error("Expected two or three arguments.");var r=t[0],o=e.parse(t[1],1,Nt);if(!o)return null;if(!Xe(r,o.type))return e.concat(1).error('"'+r+"\" comparisons are not supported for type '"+Gt(o.type)+"'.");var a=e.parse(t[2],2,Nt);if(!a)return null;if(!Xe(r,a.type))return e.concat(2).error('"'+r+"\" comparisons are not supported for type '"+Gt(a.type)+"'.");if(o.type.kind!==a.type.kind&amp;&amp;"value"!==o.type.kind&amp;&amp;"value"!==a.type.kind)return e.error("Cannot compare types '"+Gt(o.type)+"' and '"+Gt(a.type)+"'.");i&amp;&amp;("value"===o.type.kind&amp;&amp;"value"!==a.type.kind?o=new oe(a.type,[o]):"value"!==o.type.kind&amp;&amp;"value"===a.type.kind&amp;&amp;(a=new oe(o.type,[a])));var s=null;if(4===t.length){if("string"!==o.type.kind&amp;&amp;"string"!==a.type.kind&amp;&amp;"value"!==o.type.kind&amp;&amp;"value"!==a.type.kind)return e.error("Cannot use collator to compare non-string types.");if(!(s=e.parse(t[3],3,Vt)))return null}return new n(o,a,s)},n.prototype.evaluate=function(n){var o=this.lhs.evaluate(n),a=this.rhs.evaluate(n);if(i&amp;&amp;this.hasUntypedArgument){var s=te(o),l=te(a);if(s.kind!==l.kind||"string"!==s.kind&amp;&amp;"number"!==s.kind)throw new ie('Expected arguments for "'+t+'" to be (string, string) or (number, number), but found ('+s.kind+", "+l.kind+") instead.")}if(this.collator&amp;&amp;!i&amp;&amp;this.hasUntypedArgument){var u=te(o),c=te(a);if("string"!==u.kind||"string"!==c.kind)return e(n,o,a)}return this.collator?r(n,o,a,this.collator.evaluate(n)):e(n,o,a)},n.prototype.eachChild=function(t){t(this.lhs),t(this.rhs),this.collator&amp;&amp;t(this.collator)},n.prototype.possibleOutputs=function(){return[!0,!1]},n.prototype.serialize=function(){var e=[t];return this.eachChild((function(t){e.push(t.serialize())})),e},n}()}Ze.parse=function(t,e){if(t.length&lt;4)return e.error("Expected at least 3 arguments, but found only "+(t.length-1)+".");if(t.length%2!=0)return e.error("Expected an odd number of arguments.");var r;e.expectedType&amp;&amp;"value"!==e.expectedType.kind&amp;&amp;(r=e.expectedType);for(var i=[],n=1;n&lt;t.length-1;n+=2){var o=e.parse(t[n],n,Ft);if(!o)return null;var a=e.parse(t[n+1],n+1,r);if(!a)return null;i.push([o,a]),r=r||a.type}var s=e.parse(t[t.length-1],t.length-1,r);return s?new Ze(r,i,s):null},Ze.prototype.evaluate=function(t){for(var e=0,r=this.branches;e&lt;r.length;e+=1){var i=r[e],n=i[0],o=i[1];if(n.evaluate(t))return o.evaluate(t)}return this.otherwise.evaluate(t)},Ze.prototype.eachChild=function(t){for(var e=0,r=this.branches;e&lt;r.length;e+=1){var i=r[e],n=i[0],o=i[1];t(n),t(o)}t(this.otherwise)},Ze.prototype.possibleOutputs=function(){var t;return(t=[]).concat.apply(t,this.branches.map((function(t){return t[0],t[1].possibleOutputs()}))).concat(this.otherwise.possibleOutputs())},Ze.prototype.serialize=function(){var t=["case"];return this.eachChild((function(e){t.push(e.serialize())})),t};var Ke=Ye("==",(function(t,e,r){return e===r}),$e),Je=Ye("!=",(function(t,e,r){return e!==r}),(function(t,e,r,i){return!$e(0,e,r,i)})),Qe=Ye("&lt;",(function(t,e,r){return e&lt;r}),(function(t,e,r,i){return i.compare(e,r)&lt;0})),tr=Ye("&gt;",(function(t,e,r){return e&gt;r}),(function(t,e,r,i){return i.compare(e,r)&gt;0})),er=Ye("&lt;=",(function(t,e,r){return e&lt;=r}),(function(t,e,r,i){return i.compare(e,r)&lt;=0})),rr=Ye("&gt;=",(function(t,e,r){return e&gt;=r}),(function(t,e,r,i){return i.compare(e,r)&gt;=0})),ir=function(t,e,r,i,n){this.type=Bt,this.number=t,this.locale=e,this.currency=r,this.minFractionDigits=i,this.maxFractionDigits=n};ir.parse=function(t,e){if(3!==t.length)return e.error("Expected two arguments.");var r=e.parse(t[1],1,Ot);if(!r)return null;var i=t[2];if("object"!=typeof i||Array.isArray(i))return e.error("NumberFormat options argument must be an object.");var n=null;if(i.locale&amp;&amp;!(n=e.parse(i.locale,1,Bt)))return null;var o=null;if(i.currency&amp;&amp;!(o=e.parse(i.currency,1,Bt)))return null;var a=null;if(i["min-fraction-digits"]&amp;&amp;!(a=e.parse(i["min-fraction-digits"],1,Ot)))return null;var s=null;return i["max-fraction-digits"]&amp;&amp;!(s=e.parse(i["max-fraction-digits"],1,Ot))?null:new ir(r,n,o,a,s)},ir.prototype.evaluate=function(t){return new Intl.NumberFormat(this.locale?this.locale.evaluate(t):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(t):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(t):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(t):void 0}).format(this.number.evaluate(t))},ir.prototype.eachChild=function(t){t(this.number),this.locale&amp;&amp;t(this.locale),this.currency&amp;&amp;t(this.currency),this.minFractionDigits&amp;&amp;t(this.minFractionDigits),this.maxFractionDigits&amp;&amp;t(this.maxFractionDigits)},ir.prototype.possibleOutputs=function(){return[void 0]},ir.prototype.serialize=function(){var t={};return this.locale&amp;&amp;(t.locale=this.locale.serialize()),this.currency&amp;&amp;(t.currency=this.currency.serialize()),this.minFractionDigits&amp;&amp;(t["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&amp;&amp;(t["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),t]};var nr=function(t){this.type=Ot,this.input=t};nr.parse=function(t,e){if(2!==t.length)return e.error("Expected 1 argument, but found "+(t.length-1)+" instead.");var r=e.parse(t[1],1);return r?"array"!==r.type.kind&amp;&amp;"string"!==r.type.kind&amp;&amp;"value"!==r.type.kind?e.error("Expected argument of type string or array, but found "+Gt(r.type)+" instead."):new nr(r):null},nr.prototype.evaluate=function(t){var e=this.input.evaluate(t);if("string"==typeof e)return e.length;if(Array.isArray(e))return e.length;throw new ie("Expected value to be of type string or array, but found "+Gt(te(e))+" instead.")},nr.prototype.eachChild=function(t){t(this.input)},nr.prototype.possibleOutputs=function(){return[void 0]},nr.prototype.serialize=function(){var t=["length"];return this.eachChild((function(e){t.push(e.serialize())})),t};var or={"==":Ke,"!=":Je,"&gt;":tr,"&lt;":Qe,"&gt;=":rr,"&lt;=":er,array:oe,at:Ge,boolean:oe,case:Ze,coalesce:qe,collator:he,format:ae,interpolate:Ne,"interpolate-hcl":Ne,"interpolate-lab":Ne,length:nr,let:We,literal:re,match:He,number:oe,"number-format":ir,object:oe,step:_e,string:oe,"to-boolean":le,"to-color":le,"to-number":le,"to-string":le,var:ye};function ar(t,e){var r=e[0],i=e[1],n=e[2],o=e[3];r=r.evaluate(t),i=i.evaluate(t),n=n.evaluate(t);var a=o?o.evaluate(t):1,s=Qt(r,i,n,a);if(s)throw new ie(s);return new $t(r/255*a,i/255*a,n/255*a,a)}function sr(t,e){return t in e}function lr(t,e){var r=e[t];return void 0===r?null:r}function ur(t){return{type:t}}function cr(t){return{result:"success",value:t}}function pr(t){return{result:"error",value:t}}function hr(t){return"data-driven"===t["property-type"]||"cross-faded-data-driven"===t["property-type"]}function dr(t){return!!t.expression&amp;&amp;t.expression.parameters.indexOf("zoom")&gt;-1}function fr(t){return!!t.expression&amp;&amp;t.expression.interpolated}function mr(t){return t instanceof Number?"number":t instanceof String?"string":t instanceof Boolean?"boolean":Array.isArray(t)?"array":null===t?"null":typeof t}function yr(t){return"object"==typeof t&amp;&amp;null!==t&amp;&amp;!Array.isArray(t)}function gr(t){return t}function vr(t,e,r){return void 0!==t?t:void 0!==e?e:void 0!==r?r:void 0}function _r(t,e,r,i,n){return vr(typeof r===n?i[r]:void 0,t.default,e.default)}function xr(t,e,r){if("number"!==mr(r))return vr(t.default,e.default);var i=t.stops.length;if(1===i)return t.stops[0][1];if(r&lt;=t.stops[0][0])return t.stops[0][1];if(r&gt;=t.stops[i-1][0])return t.stops[i-1][1];var n=ve(t.stops.map((function(t){return t[0]})),r);return t.stops[n][1]}function br(t,e,r){var i=void 0!==t.base?t.base:1;if("number"!==mr(r))return vr(t.default,e.default);var n=t.stops.length;if(1===n)return t.stops[0][1];if(r&lt;=t.stops[0][0])return t.stops[0][1];if(r&gt;=t.stops[n-1][0])return t.stops[n-1][1];var o=ve(t.stops.map((function(t){return t[0]})),r),a=function(t,e,r,i){var n=i-r,o=t-r;return 0===n?0:1===e?o/n:(Math.pow(e,o)-1)/(Math.pow(e,n)-1)}(r,i,t.stops[o][0],t.stops[o+1][0]),s=t.stops[o][1],l=t.stops[o+1][1],u=be[e.type]||gr;if(t.colorSpace&amp;&amp;"rgb"!==t.colorSpace){var c=Ue[t.colorSpace];u=function(t,e){return c.reverse(c.interpolate(c.forward(t),c.forward(e),a))}}return"function"==typeof s.evaluate?{evaluate:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var r=s.evaluate.apply(void 0,t),i=l.evaluate.apply(void 0,t);if(void 0!==r&amp;&amp;void 0!==i)return u(r,i,a)}}:u(s,l,a)}function wr(t,e,r){return"color"===e.type?r=$t.parse(r):"formatted"===e.type?r=Jt.fromString(r.toString()):mr(r)===e.type||"enum"===e.type&amp;&amp;e.values[r]||(r=void 0),vr(r,t.default,e.default)}pe.register(or,{error:[{kind:"error"},[Bt],function(t,e){var r=e[0];throw new ie(r.evaluate(t))}],typeof:[Bt,[Nt],function(t,e){return Gt(te(e[0].evaluate(t)))}],"to-rgba":[Wt(Ot,4),[jt],function(t,e){return e[0].evaluate(t).toArray()}],rgb:[jt,[Ot,Ot,Ot],ar],rgba:[jt,[Ot,Ot,Ot,Ot],ar],has:{type:Ft,overloads:[[[Bt],function(t,e){return sr(e[0].evaluate(t),t.properties())}],[[Bt,Ut],function(t,e){var r=e[0],i=e[1];return sr(r.evaluate(t),i.evaluate(t))}]]},get:{type:Nt,overloads:[[[Bt],function(t,e){return lr(e[0].evaluate(t),t.properties())}],[[Bt,Ut],function(t,e){var r=e[0],i=e[1];return lr(r.evaluate(t),i.evaluate(t))}]]},"feature-state":[Nt,[Bt],function(t,e){return lr(e[0].evaluate(t),t.featureState||{})}],properties:[Ut,[],function(t){return t.properties()}],"geometry-type":[Bt,[],function(t){return t.geometryType()}],id:[Nt,[],function(t){return t.id()}],zoom:[Ot,[],function(t){return t.globals.zoom}],"heatmap-density":[Ot,[],function(t){return t.globals.heatmapDensity||0}],"line-progress":[Ot,[],function(t){return t.globals.lineProgress||0}],accumulated:[Nt,[],function(t){return void 0===t.globals.accumulated?null:t.globals.accumulated}],"+":[Ot,ur(Ot),function(t,e){for(var r=0,i=0,n=e;i&lt;n.length;i+=1)r+=n[i].evaluate(t);return r}],"*":[Ot,ur(Ot),function(t,e){for(var r=1,i=0,n=e;i&lt;n.length;i+=1)r*=n[i].evaluate(t);return r}],"-":{type:Ot,overloads:[[[Ot,Ot],function(t,e){var r=e[0],i=e[1];return r.evaluate(t)-i.evaluate(t)}],[[Ot],function(t,e){return-e[0].evaluate(t)}]]},"/":[Ot,[Ot,Ot],function(t,e){var r=e[0],i=e[1];return r.evaluate(t)/i.evaluate(t)}],"%":[Ot,[Ot,Ot],function(t,e){var r=e[0],i=e[1];return r.evaluate(t)%i.evaluate(t)}],ln2:[Ot,[],function(){return Math.LN2}],pi:[Ot,[],function(){return Math.PI}],e:[Ot,[],function(){return Math.E}],"^":[Ot,[Ot,Ot],function(t,e){var r=e[0],i=e[1];return Math.pow(r.evaluate(t),i.evaluate(t))}],sqrt:[Ot,[Ot],function(t,e){var r=e[0];return Math.sqrt(r.evaluate(t))}],log10:[Ot,[Ot],function(t,e){var r=e[0];return Math.log(r.evaluate(t))/Math.LN10}],ln:[Ot,[Ot],function(t,e){var r=e[0];return Math.log(r.evaluate(t))}],log2:[Ot,[Ot],function(t,e){var r=e[0];return Math.log(r.evaluate(t))/Math.LN2}],sin:[Ot,[Ot],function(t,e){var r=e[0];return Math.sin(r.evaluate(t))}],cos:[Ot,[Ot],function(t,e){var r=e[0];return Math.cos(r.evaluate(t))}],tan:[Ot,[Ot],function(t,e){var r=e[0];return Math.tan(r.evaluate(t))}],asin:[Ot,[Ot],function(t,e){var r=e[0];return Math.asin(r.evaluate(t))}],acos:[Ot,[Ot],function(t,e){var r=e[0];return Math.acos(r.evaluate(t))}],atan:[Ot,[Ot],function(t,e){var r=e[0];return Math.atan(r.evaluate(t))}],min:[Ot,ur(Ot),function(t,e){return Math.min.apply(Math,e.map((function(e){return e.evaluate(t)})))}],max:[Ot,ur(Ot),function(t,e){return Math.max.apply(Math,e.map((function(e){return e.evaluate(t)})))}],abs:[Ot,[Ot],function(t,e){var r=e[0];return Math.abs(r.evaluate(t))}],round:[Ot,[Ot],function(t,e){var r=e[0].evaluate(t);return r&lt;0?-Math.round(-r):Math.round(r)}],floor:[Ot,[Ot],function(t,e){var r=e[0];return Math.floor(r.evaluate(t))}],ceil:[Ot,[Ot],function(t,e){var r=e[0];return Math.ceil(r.evaluate(t))}],"filter-==":[Ft,[Bt,Nt],function(t,e){var r=e[0],i=e[1];return t.properties()[r.value]===i.value}],"filter-id-==":[Ft,[Nt],function(t,e){var r=e[0];return t.id()===r.value}],"filter-type-==":[Ft,[Bt],function(t,e){var r=e[0];return t.geometryType()===r.value}],"filter-&lt;":[Ft,[Bt,Nt],function(t,e){var r=e[0],i=e[1],n=t.properties()[r.value],o=i.value;return typeof n==typeof o&amp;&amp;n&lt;o}],"filter-id-&lt;":[Ft,[Nt],function(t,e){var r=e[0],i=t.id(),n=r.value;return typeof i==typeof n&amp;&amp;i&lt;n}],"filter-&gt;":[Ft,[Bt,Nt],function(t,e){var r=e[0],i=e[1],n=t.properties()[r.value],o=i.value;return typeof n==typeof o&amp;&amp;n&gt;o}],"filter-id-&gt;":[Ft,[Nt],function(t,e){var r=e[0],i=t.id(),n=r.value;return typeof i==typeof n&amp;&amp;i&gt;n}],"filter-&lt;=":[Ft,[Bt,Nt],function(t,e){var r=e[0],i=e[1],n=t.properties()[r.value],o=i.value;return typeof n==typeof o&amp;&amp;n&lt;=o}],"filter-id-&lt;=":[Ft,[Nt],function(t,e){var r=e[0],i=t.id(),n=r.value;return typeof i==typeof n&amp;&amp;i&lt;=n}],"filter-&gt;=":[Ft,[Bt,Nt],function(t,e){var r=e[0],i=e[1],n=t.properties()[r.value],o=i.value;return typeof n==typeof o&amp;&amp;n&gt;=o}],"filter-id-&gt;=":[Ft,[Nt],function(t,e){var r=e[0],i=t.id(),n=r.value;return typeof i==typeof n&amp;&amp;i&gt;=n}],"filter-has":[Ft,[Nt],function(t,e){return e[0].value in t.properties()}],"filter-has-id":[Ft,[],function(t){return null!==t.id()}],"filter-type-in":[Ft,[Wt(Bt)],function(t,e){return e[0].value.indexOf(t.geometryType())&gt;=0}],"filter-id-in":[Ft,[Wt(Nt)],function(t,e){return e[0].value.indexOf(t.id())&gt;=0}],"filter-in-small":[Ft,[Bt,Wt(Nt)],function(t,e){var r=e[0];return e[1].value.indexOf(t.properties()[r.value])&gt;=0}],"filter-in-large":[Ft,[Bt,Wt(Nt)],function(t,e){var r=e[0],i=e[1];return function(t,e,r,i){for(;r&lt;=i;){var n=r+i&gt;&gt;1;if(e[n]===t)return!0;e[n]&gt;t?i=n-1:r=n+1}return!1}(t.properties()[r.value],i.value,0,i.value.length-1)}],all:{type:Ft,overloads:[[[Ft,Ft],function(t,e){var r=e[0],i=e[1];return r.evaluate(t)&amp;&amp;i.evaluate(t)}],[ur(Ft),function(t,e){for(var r=0,i=e;r&lt;i.length;r+=1)if(!i[r].evaluate(t))return!1;return!0}]]},any:{type:Ft,overloads:[[[Ft,Ft],function(t,e){var r=e[0],i=e[1];return r.evaluate(t)||i.evaluate(t)}],[ur(Ft),function(t,e){for(var r=0,i=e;r&lt;i.length;r+=1)if(i[r].evaluate(t))return!0;return!1}]]},"!":[Ft,[Ft],function(t,e){return!e[0].evaluate(t)}],"is-supported-script":[Ft,[Bt],function(t,e){var r=e[0],i=t.globals&amp;&amp;t.globals.isSupportedScript;return!i||i(r.evaluate(t))}],upcase:[Bt,[Bt],function(t,e){return e[0].evaluate(t).toUpperCase()}],downcase:[Bt,[Bt],function(t,e){return e[0].evaluate(t).toLowerCase()}],concat:[Bt,ur(Nt),function(t,e){return e.map((function(e){return ee(e.evaluate(t))})).join("")}],"resolved-locale":[Bt,[Vt],function(t,e){return e[0].evaluate(t).resolvedLocale()}]});var Sr=function(t,e){this.expression=t,this._warningHistory={},this._evaluator=new ce,this._defaultValue=e?function(t){return"color"===t.type&amp;&amp;yr(t.default)?new $t(0,0,0,0):"color"===t.type?$t.parse(t.default)||null:void 0===t.default?null:t.default}(e):null,this._enumValues=e&amp;&amp;"enum"===e.type?e.values:null};function Er(t){return Array.isArray(t)&amp;&amp;t.length&gt;0&amp;&amp;"string"==typeof t[0]&amp;&amp;t[0]in or}function kr(t,e){var r=new ge(or,[],e?function(t){var e={color:jt,string:Bt,number:Ot,enum:Bt,boolean:Ft,formatted:qt};return"array"===t.type?Wt(e[t.value]||Nt,t.length):e[t.type]}(e):void 0),i=r.parse(t,void 0,void 0,void 0,e&amp;&amp;"string"===e.type?{typeAnnotation:"coerce"}:void 0);return i?cr(new Sr(i,e)):pr(r.errors)}Sr.prototype.evaluateWithoutErrorHandling=function(t,e,r,i){return this._evaluator.globals=t,this._evaluator.feature=e,this._evaluator.featureState=r,this._evaluator.formattedSection=i,this.expression.evaluate(this._evaluator)},Sr.prototype.evaluate=function(t,e,r,i){this._evaluator.globals=t,this._evaluator.feature=e||null,this._evaluator.featureState=r||null,this._evaluator.formattedSection=i||null;try{var n=this.expression.evaluate(this._evaluator);if(null==n)return this._defaultValue;if(this._enumValues&amp;&amp;!(n in this._enumValues))throw new ie("Expected value to be one of "+Object.keys(this._enumValues).map((function(t){return JSON.stringify(t)})).join(", ")+", but found "+JSON.stringify(n)+" instead.");return n}catch(t){return this._warningHistory[t.message]||(this._warningHistory[t.message]=!0,"undefined"!=typeof console&amp;&amp;console.warn(t.message)),this._defaultValue}};var Tr=function(t,e){this.kind=t,this._styleExpression=e,this.isStateDependent="constant"!==t&amp;&amp;!fe(e.expression)};Tr.prototype.evaluateWithoutErrorHandling=function(t,e,r,i){return this._styleExpression.evaluateWithoutErrorHandling(t,e,r,i)},Tr.prototype.evaluate=function(t,e,r,i){return this._styleExpression.evaluate(t,e,r,i)};var Ar=function(t,e,r,i){this.kind=t,this.zoomStops=r,this._styleExpression=e,this.isStateDependent="camera"!==t&amp;&amp;!fe(e.expression),this.interpolationType=i};function Cr(t,e){if("error"===(t=kr(t,e)).result)return t;var r=t.value.expression,i=de(r);if(!i&amp;&amp;!hr(e))return pr([new Dt("","data expressions not supported")]);var n=me(r,["zoom"]);if(!n&amp;&amp;!dr(e))return pr([new Dt("","zoom expressions not supported")]);var o=function t(e){var r=null;if(e instanceof We)r=t(e.result);else if(e instanceof qe)for(var i=0,n=e.args;i&lt;n.length;i+=1){var o=n[i];if(r=t(o))break}else(e instanceof _e||e instanceof Ne)&amp;&amp;e.input instanceof pe&amp;&amp;"zoom"===e.input.name&amp;&amp;(r=e);return r instanceof Dt||e.eachChild((function(e){var i=t(e);i instanceof Dt?r=i:!r&amp;&amp;i?r=new Dt("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):r&amp;&amp;i&amp;&amp;r!==i&amp;&amp;(r=new Dt("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))})),r}(r);if(!o&amp;&amp;!n)return pr([new Dt("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(o instanceof Dt)return pr([o]);if(o instanceof Ne&amp;&amp;!fr(e))return pr([new Dt("",'"interpolate" expressions cannot be used with this property')]);if(!o)return cr(new Tr(i?"constant":"source",t.value));var a=o instanceof Ne?o.interpolation:void 0;return cr(new Ar(i?"camera":"composite",t.value,o.labels,a))}Ar.prototype.evaluateWithoutErrorHandling=function(t,e,r,i){return this._styleExpression.evaluateWithoutErrorHandling(t,e,r,i)},Ar.prototype.evaluate=function(t,e,r,i){return this._styleExpression.evaluate(t,e,r,i)},Ar.prototype.interpolationFactor=function(t,e,r){return this.interpolationType?Ne.interpolationFactor(this.interpolationType,t,e,r):0};var Ir=function(t,e){this._parameters=t,this._specification=e,It(this,function t(e,r){var i,n,o,a="color"===r.type,s=e.stops&amp;&amp;"object"==typeof e.stops[0][0],l=s||void 0!==e.property,u=s||!l,c=e.type||(fr(r)?"exponential":"interval");if(a&amp;&amp;((e=It({},e)).stops&amp;&amp;(e.stops=e.stops.map((function(t){return[t[0],$t.parse(t[1])]}))),e.default?e.default=$t.parse(e.default):e.default=$t.parse(r.default)),e.colorSpace&amp;&amp;"rgb"!==e.colorSpace&amp;&amp;!Ue[e.colorSpace])throw new Error("Unknown color space: "+e.colorSpace);if("exponential"===c)i=br;else if("interval"===c)i=xr;else if("categorical"===c){i=_r,n=Object.create(null);for(var p=0,h=e.stops;p&lt;h.length;p+=1){var d=h[p];n[d[0]]=d[1]}o=typeof e.stops[0][0]}else{if("identity"!==c)throw new Error('Unknown function type "'+c+'"');i=wr}if(s){for(var f={},m=[],y=0;y&lt;e.stops.length;y++){var g=e.stops[y],v=g[0].zoom;void 0===f[v]&amp;&amp;(f[v]={zoom:v,type:e.type,property:e.property,default:e.default,stops:[]},m.push(v)),f[v].stops.push([g[0].value,g[1]])}for(var _=[],x=0,b=m;x&lt;b.length;x+=1){var w=b[x];_.push([f[w].zoom,t(f[w],r)])}var S={name:"linear"};return{kind:"composite",interpolationType:S,interpolationFactor:Ne.interpolationFactor.bind(void 0,S),zoomStops:_.map((function(t){return t[0]})),evaluate:function(t,i){var n=t.zoom;return br({stops:_,base:e.base},r,n).evaluate(n,i)}}}if(u){var E="exponential"===c?{name:"exponential",base:void 0!==e.base?e.base:1}:null;return{kind:"camera",interpolationType:E,interpolationFactor:Ne.interpolationFactor.bind(void 0,E),zoomStops:e.stops.map((function(t){return t[0]})),evaluate:function(t){var a=t.zoom;return i(e,r,a,n,o)}}}return{kind:"source",evaluate:function(t,a){var s=a&amp;&amp;a.properties?a.properties[e.property]:void 0;return void 0===s?vr(e.default,r.default):i(e,r,s,n,o)}}}(this._parameters,this._specification))};function Pr(t){var e=t.key,r=t.value,i=t.valueSpec||{},n=t.objectElementValidators||{},o=t.style,a=t.styleSpec,s=[],l=mr(r);if("object"!==l)return[new At(e,r,"object expected, "+l+" found")];for(var u in r){var c=u.split(".")[0],p=i[c]||i["*"],h=void 0;if(n[c])h=n[c];else if(i[c])h=ti;else if(n["*"])h=n["*"];else{if(!i["*"]){s.push(new At(e,r[u],'unknown property "'+u+'"'));continue}h=ti}s=s.concat(h({key:(e?e+".":e)+u,value:r[u],valueSpec:p,style:o,styleSpec:a,object:r,objectKey:u},r))}for(var d in i)n[d]||i[d].required&amp;&amp;void 0===i[d].default&amp;&amp;void 0===r[d]&amp;&amp;s.push(new At(e,r,'missing required property "'+d+'"'));return s}function Mr(t){var e=t.value,r=t.valueSpec,i=t.style,n=t.styleSpec,o=t.key,a=t.arrayElementValidator||ti;if("array"!==mr(e))return[new At(o,e,"array expected, "+mr(e)+" found")];if(r.length&amp;&amp;e.length!==r.length)return[new At(o,e,"array length "+r.length+" expected, length "+e.length+" found")];if(r["min-length"]&amp;&amp;e.length&lt;r["min-length"])return[new At(o,e,"array length at least "+r["min-length"]+" expected, length "+e.length+" found")];var s={type:r.value,values:r.values};n.$version&lt;7&amp;&amp;(s.function=r.function),"object"===mr(r.value)&amp;&amp;(s=r.value);for(var l=[],u=0;u&lt;e.length;u++)l=l.concat(a({array:e,arrayIndex:u,value:e[u],valueSpec:s,style:i,styleSpec:n,key:o+"["+u+"]"}));return l}function zr(t){var e=t.key,r=t.value,i=t.valueSpec,n=mr(r);return"number"!==n?[new At(e,r,"number expected, "+n+" found")]:"minimum"in i&amp;&amp;r&lt;i.minimum?[new At(e,r,r+" is less than the minimum value "+i.minimum)]:"maximum"in i&amp;&amp;r&gt;i.maximum?[new At(e,r,r+" is greater than the maximum value "+i.maximum)]:[]}function Dr(t){var e,r,i,n=t.valueSpec,o=Mt(t.value.type),a={},s="categorical"!==o&amp;&amp;void 0===t.value.property,l=!s,u="array"===mr(t.value.stops)&amp;&amp;"array"===mr(t.value.stops[0])&amp;&amp;"object"===mr(t.value.stops[0][0]),c=Pr({key:t.key,value:t.value,valueSpec:t.styleSpec.function,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{stops:function(t){if("identity"===o)return[new At(t.key,t.value,'identity function may not have a "stops" property')];var e=[],r=t.value;return e=e.concat(Mr({key:t.key,value:r,valueSpec:t.valueSpec,style:t.style,styleSpec:t.styleSpec,arrayElementValidator:p})),"array"===mr(r)&amp;&amp;0===r.length&amp;&amp;e.push(new At(t.key,r,"array must have at least one stop")),e},default:function(t){return ti({key:t.key,value:t.value,valueSpec:n,style:t.style,styleSpec:t.styleSpec})}}});return"identity"===o&amp;&amp;s&amp;&amp;c.push(new At(t.key,t.value,'missing required property "property"')),"identity"===o||t.value.stops||c.push(new At(t.key,t.value,'missing required property "stops"')),"exponential"===o&amp;&amp;t.valueSpec.expression&amp;&amp;!fr(t.valueSpec)&amp;&amp;c.push(new At(t.key,t.value,"exponential functions not supported")),t.styleSpec.$version&gt;=8&amp;&amp;(l&amp;&amp;!hr(t.valueSpec)?c.push(new At(t.key,t.value,"property functions not supported")):s&amp;&amp;!dr(t.valueSpec)&amp;&amp;c.push(new At(t.key,t.value,"zoom functions not supported"))),"categorical"!==o&amp;&amp;!u||void 0!==t.value.property||c.push(new At(t.key,t.value,'"property" property is required')),c;function p(t){var e=[],o=t.value,s=t.key;if("array"!==mr(o))return[new At(s,o,"array expected, "+mr(o)+" found")];if(2!==o.length)return[new At(s,o,"array length 2 expected, length "+o.length+" found")];if(u){if("object"!==mr(o[0]))return[new At(s,o,"object expected, "+mr(o[0])+" found")];if(void 0===o[0].zoom)return[new At(s,o,"object stop key must have zoom")];if(void 0===o[0].value)return[new At(s,o,"object stop key must have value")];if(i&amp;&amp;i&gt;Mt(o[0].zoom))return[new At(s,o[0].zoom,"stop zoom values must appear in ascending order")];Mt(o[0].zoom)!==i&amp;&amp;(i=Mt(o[0].zoom),r=void 0,a={}),e=e.concat(Pr({key:s+"[0]",value:o[0],valueSpec:{zoom:{}},style:t.style,styleSpec:t.styleSpec,objectElementValidators:{zoom:zr,value:h}}))}else e=e.concat(h({key:s+"[0]",value:o[0],valueSpec:{},style:t.style,styleSpec:t.styleSpec},o));return Er(zt(o[1]))?e.concat([new At(s+"[1]",o[1],"expressions are not allowed in function stops.")]):e.concat(ti({key:s+"[1]",value:o[1],valueSpec:n,style:t.style,styleSpec:t.styleSpec}))}function h(t,i){var s=mr(t.value),l=Mt(t.value),u=null!==t.value?t.value:i;if(e){if(s!==e)return[new At(t.key,u,s+" stop domain type must match previous stop domain type "+e)]}else e=s;if("number"!==s&amp;&amp;"string"!==s&amp;&amp;"boolean"!==s)return[new At(t.key,u,"stop domain value must be a number, string, or boolean")];if("number"!==s&amp;&amp;"categorical"!==o){var c="number expected, "+s+" found";return hr(n)&amp;&amp;void 0===o&amp;&amp;(c+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new At(t.key,u,c)]}return"categorical"!==o||"number"!==s||isFinite(l)&amp;&amp;Math.floor(l)===l?"categorical"!==o&amp;&amp;"number"===s&amp;&amp;void 0!==r&amp;&amp;l&lt;r?[new At(t.key,u,"stop domain values must appear in ascending order")]:(r=l,"categorical"===o&amp;&amp;l in a?[new At(t.key,u,"stop domain values must be unique")]:(a[l]=!0,[])):[new At(t.key,u,"integer expected, found "+l)]}}function Lr(t){var e=("property"===t.expressionContext?Cr:kr)(zt(t.value),t.valueSpec);if("error"===e.result)return e.value.map((function(e){return new At(""+t.key+e.key,t.value,e.message)}));var r=e.value.expression||e.value._styleExpression.expression;if("property"===t.expressionContext&amp;&amp;"text-font"===t.propertyKey&amp;&amp;-1!==r.possibleOutputs().indexOf(void 0))return[new At(t.key,t.value,'Invalid data expression for "'+t.propertyKey+'". Output values must be contained as literals within the expression.')];if("property"===t.expressionContext&amp;&amp;"layout"===t.propertyType&amp;&amp;!fe(r))return[new At(t.key,t.value,'"feature-state" data expressions are not supported with layout properties.')];if("filter"===t.expressionContext&amp;&amp;!fe(r))return[new At(t.key,t.value,'"feature-state" data expressions are not supported with filters.')];if(t.expressionContext&amp;&amp;0===t.expressionContext.indexOf("cluster")){if(!me(r,["zoom","feature-state"]))return[new At(t.key,t.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if("cluster-initial"===t.expressionContext&amp;&amp;!de(r))return[new At(t.key,t.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function Rr(t){var e=t.key,r=t.value,i=t.valueSpec,n=[];return Array.isArray(i.values)?-1===i.values.indexOf(Mt(r))&amp;&amp;n.push(new At(e,r,"expected one of ["+i.values.join(", ")+"], "+JSON.stringify(r)+" found")):-1===Object.keys(i.values).indexOf(Mt(r))&amp;&amp;n.push(new At(e,r,"expected one of ["+Object.keys(i.values).join(", ")+"], "+JSON.stringify(r)+" found")),n}function Or(t){if(!0===t||!1===t)return!0;if(!Array.isArray(t)||0===t.length)return!1;switch(t[0]){case"has":return t.length&gt;=2&amp;&amp;"$id"!==t[1]&amp;&amp;"$type"!==t[1];case"in":case"!in":case"!has":case"none":return!1;case"==":case"!=":case"&gt;":case"&gt;=":case"&lt;":case"&lt;=":return 3!==t.length||Array.isArray(t[1])||Array.isArray(t[2]);case"any":case"all":for(var e=0,r=t.slice(1);e&lt;r.length;e+=1){var i=r[e];if(!Or(i)&amp;&amp;"boolean"!=typeof i)return!1}return!0;default:return!0}}Ir.deserialize=function(t){return new Ir(t._parameters,t._specification)},Ir.serialize=function(t){return{_parameters:t._parameters,_specification:t._specification}};var Br={type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}};function Fr(t){if(null==t)return function(){return!0};Or(t)||(t=Ur(t));var e=kr(t,Br);if("error"===e.result)throw new Error(e.value.map((function(t){return t.key+": "+t.message})).join(", "));return function(t,r){return e.value.evaluate(t,r)}}function jr(t,e){return t&lt;e?-1:t&gt;e?1:0}function Ur(t){if(!t)return!0;var e,r=t[0];return t.length&lt;=1?"any"!==r:"=="===r?Nr(t[1],t[2],"=="):"!="===r?Wr(Nr(t[1],t[2],"==")):"&lt;"===r||"&gt;"===r||"&lt;="===r||"&gt;="===r?Nr(t[1],t[2],r):"any"===r?(e=t.slice(1),["any"].concat(e.map(Ur))):"all"===r?["all"].concat(t.slice(1).map(Ur)):"none"===r?["all"].concat(t.slice(1).map(Ur).map(Wr)):"in"===r?Vr(t[1],t.slice(2)):"!in"===r?Wr(Vr(t[1],t.slice(2))):"has"===r?qr(t[1]):"!has"!==r||Wr(qr(t[1]))}function Nr(t,e,r){switch(t){case"$type":return["filter-type-"+r,e];case"$id":return["filter-id-"+r,e];default:return["filter-"+r,t,e]}}function Vr(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&gt;200&amp;&amp;!e.some((function(t){return typeof t!=typeof e[0]}))?["filter-in-large",t,["literal",e.sort(jr)]]:["filter-in-small",t,["literal",e]]}}function qr(t){switch(t){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",t]}}function Wr(t){return["!",t]}function Gr(t){return Or(zt(t.value))?Lr(It({},t,{expressionContext:"filter",valueSpec:{value:"boolean"}})):function t(e){var r=e.value,i=e.key;if("array"!==mr(r))return[new At(i,r,"array expected, "+mr(r)+" found")];var n,o=e.styleSpec,a=[];if(r.length&lt;1)return[new At(i,r,"filter array must have at least 1 element")];switch(a=a.concat(Rr({key:i+"[0]",value:r[0],valueSpec:o.filter_operator,style:e.style,styleSpec:e.styleSpec})),Mt(r[0])){case"&lt;":case"&lt;=":case"&gt;":case"&gt;=":r.length&gt;=2&amp;&amp;"$type"===Mt(r[1])&amp;&amp;a.push(new At(i,r,'"$type" cannot be use with operator "'+r[0]+'"'));case"==":case"!=":3!==r.length&amp;&amp;a.push(new At(i,r,'filter array for operator "'+r[0]+'" must have 3 elements'));case"in":case"!in":r.length&gt;=2&amp;&amp;"string"!==(n=mr(r[1]))&amp;&amp;a.push(new At(i+"[1]",r[1],"string expected, "+n+" found"));for(var s=2;s&lt;r.length;s++)n=mr(r[s]),"$type"===Mt(r[1])?a=a.concat(Rr({key:i+"["+s+"]",value:r[s],valueSpec:o.geometry_type,style:e.style,styleSpec:e.styleSpec})):"string"!==n&amp;&amp;"number"!==n&amp;&amp;"boolean"!==n&amp;&amp;a.push(new At(i+"["+s+"]",r[s],"string, number, or boolean expected, "+n+" found"));break;case"any":case"all":case"none":for(var l=1;l&lt;r.length;l++)a=a.concat(t({key:i+"["+l+"]",value:r[l],style:e.style,styleSpec:e.styleSpec}));break;case"has":case"!has":n=mr(r[1]),2!==r.length?a.push(new At(i,r,'filter array for "'+r[0]+'" operator must have 2 elements')):"string"!==n&amp;&amp;a.push(new At(i+"[1]",r[1],"string expected, "+n+" found"))}return a}(t)}function Hr(t,e){var r=t.key,i=t.style,n=t.styleSpec,o=t.value,a=t.objectKey,s=n[e+"_"+t.layerType];if(!s)return[];var l=a.match(/^(.*)-transition$/);if("paint"===e&amp;&amp;l&amp;&amp;s[l[1]]&amp;&amp;s[l[1]].transition)return ti({key:r,value:o,valueSpec:n.transition,style:i,styleSpec:n});var u,c=t.valueSpec||s[a];if(!c)return[new At(r,o,'unknown property "'+a+'"')];if("string"===mr(o)&amp;&amp;hr(c)&amp;&amp;!c.tokens&amp;&amp;(u=/^{([^}]+)}$/.exec(o)))return[new At(r,o,'"'+a+'" does not support interpolation syntax\nUse an identity property function instead: `{ "type": "identity", "property": '+JSON.stringify(u[1])+" }`.")];var p=[];return"symbol"===t.layerType&amp;&amp;("text-field"===a&amp;&amp;i&amp;&amp;!i.glyphs&amp;&amp;p.push(new At(r,o,'use of "text-field" requires a style "glyphs" property')),"text-font"===a&amp;&amp;yr(zt(o))&amp;&amp;"identity"===Mt(o.type)&amp;&amp;p.push(new At(r,o,'"text-font" does not support identity functions'))),p.concat(ti({key:t.key,value:o,valueSpec:c,style:i,styleSpec:n,expressionContext:"property",propertyType:e,propertyKey:a}))}function Zr(t){return Hr(t,"paint")}function Xr(t){return Hr(t,"layout")}function $r(t){var e=[],r=t.value,i=t.key,n=t.style,o=t.styleSpec;r.type||r.ref||e.push(new At(i,r,'either "type" or "ref" is required'));var a,s=Mt(r.type),l=Mt(r.ref);if(r.id)for(var u=Mt(r.id),c=0;c&lt;t.arrayIndex;c++){var p=n.layers[c];Mt(p.id)===u&amp;&amp;e.push(new At(i,r.id,'duplicate layer id "'+r.id+'", previously used at line '+p.id.__line__))}if("ref"in r)["type","source","source-layer","filter","layout"].forEach((function(t){t in r&amp;&amp;e.push(new At(i,r[t],'"'+t+'" is prohibited for ref layers'))})),n.layers.forEach((function(t){Mt(t.id)===l&amp;&amp;(a=t)})),a?a.ref?e.push(new At(i,r.ref,"ref cannot reference another ref layer")):s=Mt(a.type):e.push(new At(i,r.ref,'ref layer "'+l+'" not found'));else if("background"!==s)if(r.source){var h=n.sources&amp;&amp;n.sources[r.source],d=h&amp;&amp;Mt(h.type);h?"vector"===d&amp;&amp;"raster"===s?e.push(new At(i,r.source,'layer "'+r.id+'" requires a raster source')):"raster"===d&amp;&amp;"raster"!==s?e.push(new At(i,r.source,'layer "'+r.id+'" requires a vector source')):"vector"!==d||r["source-layer"]?"raster-dem"===d&amp;&amp;"hillshade"!==s?e.push(new At(i,r.source,"raster-dem source can only be used with layer type 'hillshade'.")):"line"!==s||!r.paint||!r.paint["line-gradient"]||"geojson"===d&amp;&amp;h.lineMetrics||e.push(new At(i,r,'layer "'+r.id+'" specifies a line-gradient, which requires a GeoJSON source with `lineMetrics` enabled.')):e.push(new At(i,r,'layer "'+r.id+'" must specify a "source-layer"')):e.push(new At(i,r.source,'source "'+r.source+'" not found'))}else e.push(new At(i,r,'missing required property "source"'));return e=e.concat(Pr({key:i,value:r,valueSpec:o.layer,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{"*":function(){return[]},type:function(){return ti({key:i+".type",value:r.type,valueSpec:o.layer.type,style:t.style,styleSpec:t.styleSpec,object:r,objectKey:"type"})},filter:Gr,layout:function(t){return Pr({layer:r,key:t.key,value:t.value,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{"*":function(t){return Xr(It({layerType:s},t))}}})},paint:function(t){return Pr({layer:r,key:t.key,value:t.value,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{"*":function(t){return Zr(It({layerType:s},t))}}})}}}))}function Yr(t){var e=t.value,r=t.key,i=t.styleSpec,n=t.style;if(!e.type)return[new At(r,e,'"type" is required')];var o,a=Mt(e.type);switch(a){case"vector":case"raster":case"raster-dem":return Pr({key:r,value:e,valueSpec:i["source_"+a.replace("-","_")],style:t.style,styleSpec:i});case"geojson":if(o=Pr({key:r,value:e,valueSpec:i.source_geojson,style:n,styleSpec:i}),e.cluster)for(var s in e.clusterProperties){var l=e.clusterProperties[s],u=l[0],c=l[1],p="string"==typeof u?[u,["accumulated"],["get",s]]:u;o.push.apply(o,Lr({key:r+"."+s+".map",value:c,expressionContext:"cluster-map"})),o.push.apply(o,Lr({key:r+"."+s+".reduce",value:p,expressionContext:"cluster-reduce"}))}return o;case"video":return Pr({key:r,value:e,valueSpec:i.source_video,style:n,styleSpec:i});case"image":return Pr({key:r,value:e,valueSpec:i.source_image,style:n,styleSpec:i});case"canvas":return[new At(r,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas")];default:return Rr({key:r+".type",value:e.type,valueSpec:{values:["vector","raster","raster-dem","geojson","video","image"]},style:n,styleSpec:i})}}function Kr(t){var e=t.value,r=t.styleSpec,i=r.light,n=t.style,o=[],a=mr(e);if(void 0===e)return o;if("object"!==a)return o.concat([new At("light",e,"object expected, "+a+" found")]);for(var s in e){var l=s.match(/^(.*)-transition$/);o=l&amp;&amp;i[l[1]]&amp;&amp;i[l[1]].transition?o.concat(ti({key:s,value:e[s],valueSpec:r.transition,style:n,styleSpec:r})):i[s]?o.concat(ti({key:s,value:e[s],valueSpec:i[s],style:n,styleSpec:r})):o.concat([new At(s,e[s],'unknown property "'+s+'"')])}return o}function Jr(t){var e=t.value,r=t.key,i=mr(e);return"string"!==i?[new At(r,e,"string expected, "+i+" found")]:[]}var Qr={"*":function(){return[]},array:Mr,boolean:function(t){var e=t.value,r=t.key,i=mr(e);return"boolean"!==i?[new At(r,e,"boolean expected, "+i+" found")]:[]},number:zr,color:function(t){var e=t.key,r=t.value,i=mr(r);return"string"!==i?[new At(e,r,"color expected, "+i+" found")]:null===Xt(r)?[new At(e,r,'color expected, "'+r+'" found')]:[]},constants:Ct,enum:Rr,filter:Gr,function:Dr,layer:$r,object:Pr,source:Yr,light:Kr,string:Jr,formatted:function(t){return 0===Jr(t).length?[]:Lr(t)}};function ti(t){var e=t.value,r=t.valueSpec,i=t.styleSpec;return r.expression&amp;&amp;yr(Mt(e))?Dr(t):r.expression&amp;&amp;Er(zt(e))?Lr(t):r.type&amp;&amp;Qr[r.type]?Qr[r.type](t):Pr(It({},t,{valueSpec:r.type?i[r.type]:r}))}function ei(t){var e=t.value,r=t.key,i=Jr(t);return i.length||(-1===e.indexOf("{fontstack}")&amp;&amp;i.push(new At(r,e,'"glyphs" url must include a "{fontstack}" token')),-1===e.indexOf("{range}")&amp;&amp;i.push(new At(r,e,'"glyphs" url must include a "{range}" token'))),i}function ri(t,e){e=e||Tt;var r=[];return r=r.concat(ti({key:"",value:t,valueSpec:e.$root,styleSpec:e,style:t,objectElementValidators:{glyphs:ei,"*":function(){return[]}}})),t.constants&amp;&amp;(r=r.concat(Ct({key:"constants",value:t.constants,style:t,styleSpec:e}))),ii(r)}function ii(t){return[].concat(t).sort((function(t,e){return t.line-e.line}))}function ni(t){return function(){for(var e=[],r=arguments.length;r--;)e[r]=arguments[r];return ii(t.apply(this,e))}}ri.source=ni(Yr),ri.light=ni(Kr),ri.layer=ni($r),ri.filter=ni(Gr),ri.paintProperty=ni(Zr),ri.layoutProperty=ni(Xr);var oi=ri,ai=oi.light,si=oi.paintProperty,li=oi.layoutProperty;function ui(t,e){var r=!1;if(e&amp;&amp;e.length)for(var i=0,n=e;i&lt;n.length;i+=1){var o=n[i];t.fire(new Et(new Error(o.message))),r=!0}return r}var ci=hi,pi=3;function hi(t,e,r){var i=this.cells=[];if(t instanceof ArrayBuffer){this.arrayBuffer=t;var n=new Int32Array(this.arrayBuffer);t=n[0],e=n[1],r=n[2],this.d=e+2*r;for(var o=0;o&lt;this.d*this.d;o++){var a=n[pi+o],s=n[pi+o+1];i.push(a===s?null:n.subarray(a,s))}var l=n[pi+i.length],u=n[pi+i.length+1];this.keys=n.subarray(l,u),this.bboxes=n.subarray(u),this.insert=this._insertReadonly}else{this.d=e+2*r;for(var c=0;c&lt;this.d*this.d;c++)i.push([]);this.keys=[],this.bboxes=[]}this.n=e,this.extent=t,this.padding=r,this.scale=e/t,this.uid=0;var p=r/e*t;this.min=-p,this.max=t+p}hi.prototype.insert=function(t,e,r,i,n){this._forEachCell(e,r,i,n,this._insertCell,this.uid++),this.keys.push(t),this.bboxes.push(e),this.bboxes.push(r),this.bboxes.push(i),this.bboxes.push(n)},hi.prototype._insertReadonly=function(){throw"Cannot insert into a GridIndex created from an ArrayBuffer."},hi.prototype._insertCell=function(t,e,r,i,n,o){this.cells[n].push(o)},hi.prototype.query=function(t,e,r,i,n){var o=this.min,a=this.max;if(t&lt;=o&amp;&amp;e&lt;=o&amp;&amp;a&lt;=r&amp;&amp;a&lt;=i&amp;&amp;!n)return Array.prototype.slice.call(this.keys);var s=[];return this._forEachCell(t,e,r,i,this._queryCell,s,{},n),s},hi.prototype._queryCell=function(t,e,r,i,n,o,a,s){var l=this.cells[n];if(null!==l)for(var u=this.keys,c=this.bboxes,p=0;p&lt;l.length;p++){var h=l[p];if(void 0===a[h]){var d=4*h;(s?s(c[d+0],c[d+1],c[d+2],c[d+3]):t&lt;=c[d+2]&amp;&amp;e&lt;=c[d+3]&amp;&amp;r&gt;=c[d+0]&amp;&amp;i&gt;=c[d+1])?(a[h]=!0,o.push(u[h])):a[h]=!1}}},hi.prototype._forEachCell=function(t,e,r,i,n,o,a,s){for(var l=this._convertToCellCoord(t),u=this._convertToCellCoord(e),c=this._convertToCellCoord(r),p=this._convertToCellCoord(i),h=l;h&lt;=c;h++)for(var d=u;d&lt;=p;d++){var f=this.d*d+h;if((!s||s(this._convertFromCellCoord(h),this._convertFromCellCoord(d),this._convertFromCellCoord(h+1),this._convertFromCellCoord(d+1)))&amp;&amp;n.call(this,t,e,r,i,f,o,a,s))return}},hi.prototype._convertFromCellCoord=function(t){return(t-this.padding)/this.scale},hi.prototype._convertToCellCoord=function(t){return Math.max(0,Math.min(this.d-1,Math.floor(t*this.scale)+this.padding))},hi.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var t=this.cells,e=pi+this.cells.length+1+1,r=0,i=0;i&lt;this.cells.length;i++)r+=this.cells[i].length;var n=new Int32Array(e+r+this.keys.length+this.bboxes.length);n[0]=this.extent,n[1]=this.n,n[2]=this.padding;for(var o=e,a=0;a&lt;t.length;a++){var s=t[a];n[pi+a]=o,n.set(s,o),o+=s.length}return n[pi+t.length]=o,n.set(this.keys,o),o+=this.keys.length,n[pi+t.length+1]=o,n.set(this.bboxes,o),o+=this.bboxes.length,n.buffer};var di=self.ImageData,fi={};function mi(t,e,r){void 0===r&amp;&amp;(r={}),Object.defineProperty(e,"_classRegistryKey",{value:t,writeable:!1}),fi[t]={klass:e,omit:r.omit||[],shallow:r.shallow||[]}}for(var yi in mi("Object",Object),ci.serialize=function(t,e){var r=t.toArrayBuffer();return e&amp;&amp;e.push(r),{buffer:r}},ci.deserialize=function(t){return new ci(t.buffer)},mi("Grid",ci),mi("Color",$t),mi("Error",Error),mi("StylePropertyFunction",Ir),mi("StyleExpression",Sr,{omit:["_evaluator"]}),mi("ZoomDependentExpression",Ar),mi("ZoomConstantExpression",Tr),mi("CompoundExpression",pe,{omit:["_evaluate"]}),or)or[yi]._classRegistryKey||mi("Expression_"+yi,or[yi]);function gi(t,e){if(null==t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||t instanceof Boolean||t instanceof Number||t instanceof String||t instanceof Date||t instanceof RegExp)return t;if(t instanceof ArrayBuffer)return e&amp;&amp;e.push(t),t;if(ArrayBuffer.isView(t)){var r=t;return e&amp;&amp;e.push(r.buffer),r}if(t instanceof di)return e&amp;&amp;e.push(t.data.buffer),t;if(Array.isArray(t)){for(var i=[],n=0,o=t;n&lt;o.length;n+=1){var a=o[n];i.push(gi(a,e))}return i}if("object"==typeof t){var s=t.constructor,l=s._classRegistryKey;if(!l)throw new Error("can't serialize object of unregistered class");var u=s.serialize?s.serialize(t,e):{};if(!s.serialize){for(var c in t)if(t.hasOwnProperty(c)&amp;&amp;!(fi[l].omit.indexOf(c)&gt;=0)){var p=t[c];u[c]=fi[l].shallow.indexOf(c)&gt;=0?p:gi(p,e)}t instanceof Error&amp;&amp;(u.message=t.message)}if(u.$name)throw new Error("$name property is reserved for worker serialization logic.");return"Object"!==l&amp;&amp;(u.$name=l),u}throw new Error("can't serialize object of type "+typeof t)}function vi(t){if(null==t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||t instanceof Boolean||t instanceof Number||t instanceof String||t instanceof Date||t instanceof RegExp||t instanceof ArrayBuffer||ArrayBuffer.isView(t)||t instanceof di)return t;if(Array.isArray(t))return t.map(vi);if("object"==typeof t){var e=t.$name||"Object",r=fi[e].klass;if(!r)throw new Error("can't deserialize unregistered class "+e);if(r.deserialize)return r.deserialize(t);for(var i=Object.create(r.prototype),n=0,o=Object.keys(t);n&lt;o.length;n+=1){var a=o[n];if("$name"!==a){var s=t[a];i[a]=fi[e].shallow.indexOf(a)&gt;=0?s:vi(s)}}return i}throw new Error("can't deserialize object of type "+typeof t)}var _i=function(){this.first=!0};_i.prototype.update=function(t,e){var r=Math.floor(t);return this.first?(this.first=!1,this.lastIntegerZoom=r,this.lastIntegerZoomTime=0,this.lastZoom=t,this.lastFloorZoom=r,!0):(this.lastFloorZoom&gt;r?(this.lastIntegerZoom=r+1,this.lastIntegerZoomTime=e):this.lastFloorZoom&lt;r&amp;&amp;(this.lastIntegerZoom=r,this.lastIntegerZoomTime=e),t!==this.lastZoom&amp;&amp;(this.lastZoom=t,this.lastFloorZoom=r,!0))};var xi={"Latin-1 Supplement":function(t){return t&gt;=128&amp;&amp;t&lt;=255},Arabic:function(t){return t&gt;=1536&amp;&amp;t&lt;=1791},"Arabic Supplement":function(t){return t&gt;=1872&amp;&amp;t&lt;=1919},"Arabic Extended-A":function(t){return t&gt;=2208&amp;&amp;t&lt;=2303},"Hangul Jamo":function(t){return t&gt;=4352&amp;&amp;t&lt;=4607},"Unified Canadian Aboriginal Syllabics":function(t){return t&gt;=5120&amp;&amp;t&lt;=5759},Khmer:function(t){return t&gt;=6016&amp;&amp;t&lt;=6143},"Unified Canadian Aboriginal Syllabics Extended":function(t){return t&gt;=6320&amp;&amp;t&lt;=6399},"General Punctuation":function(t){return t&gt;=8192&amp;&amp;t&lt;=8303},"Letterlike Symbols":function(t){return t&gt;=8448&amp;&amp;t&lt;=8527},"Number Forms":function(t){return t&gt;=8528&amp;&amp;t&lt;=8591},"Miscellaneous Technical":function(t){return t&gt;=8960&amp;&amp;t&lt;=9215},"Control Pictures":function(t){return t&gt;=9216&amp;&amp;t&lt;=9279},"Optical Character Recognition":function(t){return t&gt;=9280&amp;&amp;t&lt;=9311},"Enclosed Alphanumerics":function(t){return t&gt;=9312&amp;&amp;t&lt;=9471},"Geometric Shapes":function(t){return t&gt;=9632&amp;&amp;t&lt;=9727},"Miscellaneous Symbols":function(t){return t&gt;=9728&amp;&amp;t&lt;=9983},"Miscellaneous Symbols and Arrows":function(t){return t&gt;=11008&amp;&amp;t&lt;=11263},"CJK Radicals Supplement":function(t){return t&gt;=11904&amp;&amp;t&lt;=12031},"Kangxi Radicals":function(t){return t&gt;=12032&amp;&amp;t&lt;=12255},"Ideographic Description Characters":function(t){return t&gt;=12272&amp;&amp;t&lt;=12287},"CJK Symbols and Punctuation":function(t){return t&gt;=12288&amp;&amp;t&lt;=12351},Hiragana:function(t){return t&gt;=12352&amp;&amp;t&lt;=12447},Katakana:function(t){return t&gt;=12448&amp;&amp;t&lt;=12543},Bopomofo:function(t){return t&gt;=12544&amp;&amp;t&lt;=12591},"Hangul Compatibility Jamo":function(t){return t&gt;=12592&amp;&amp;t&lt;=12687},Kanbun:function(t){return t&gt;=12688&amp;&amp;t&lt;=12703},"Bopomofo Extended":function(t){return t&gt;=12704&amp;&amp;t&lt;=12735},"CJK Strokes":function(t){return t&gt;=12736&amp;&amp;t&lt;=12783},"Katakana Phonetic Extensions":function(t){return t&gt;=12784&amp;&amp;t&lt;=12799},"Enclosed CJK Letters and Months":function(t){return t&gt;=12800&amp;&amp;t&lt;=13055},"CJK Compatibility":function(t){return t&gt;=13056&amp;&amp;t&lt;=13311},"CJK Unified Ideographs Extension A":function(t){return t&gt;=13312&amp;&amp;t&lt;=19903},"Yijing Hexagram Symbols":function(t){return t&gt;=19904&amp;&amp;t&lt;=19967},"CJK Unified Ideographs":function(t){return t&gt;=19968&amp;&amp;t&lt;=40959},"Yi Syllables":function(t){return t&gt;=40960&amp;&amp;t&lt;=42127},"Yi Radicals":function(t){return t&gt;=42128&amp;&amp;t&lt;=42191},"Hangul Jamo Extended-A":function(t){return t&gt;=43360&amp;&amp;t&lt;=43391},"Hangul Syllables":function(t){return t&gt;=44032&amp;&amp;t&lt;=55215},"Hangul Jamo Extended-B":function(t){return t&gt;=55216&amp;&amp;t&lt;=55295},"Private Use Area":function(t){return t&gt;=57344&amp;&amp;t&lt;=63743},"CJK Compatibility Ideographs":function(t){return t&gt;=63744&amp;&amp;t&lt;=64255},"Arabic Presentation Forms-A":function(t){return t&gt;=64336&amp;&amp;t&lt;=65023},"Vertical Forms":function(t){return t&gt;=65040&amp;&amp;t&lt;=65055},"CJK Compatibility Forms":function(t){return t&gt;=65072&amp;&amp;t&lt;=65103},"Small Form Variants":function(t){return t&gt;=65104&amp;&amp;t&lt;=65135},"Arabic Presentation Forms-B":function(t){return t&gt;=65136&amp;&amp;t&lt;=65279},"Halfwidth and Fullwidth Forms":function(t){return t&gt;=65280&amp;&amp;t&lt;=65519}};function bi(t){for(var e=0,r=t;e&lt;r.length;e+=1)if(Si(r[e].charCodeAt(0)))return!0;return!1}function wi(t){return!(xi.Arabic(t)||xi["Arabic Supplement"](t)||xi["Arabic Extended-A"](t)||xi["Arabic Presentation Forms-A"](t)||xi["Arabic Presentation Forms-B"](t))}function Si(t){return!(746!==t&amp;&amp;747!==t&amp;&amp;(t&lt;4352||!(xi["Bopomofo Extended"](t)||xi.Bopomofo(t)||xi["CJK Compatibility Forms"](t)&amp;&amp;!(t&gt;=65097&amp;&amp;t&lt;=65103)||xi["CJK Compatibility Ideographs"](t)||xi["CJK Compatibility"](t)||xi["CJK Radicals Supplement"](t)||xi["CJK Strokes"](t)||!(!xi["CJK Symbols and Punctuation"](t)||t&gt;=12296&amp;&amp;t&lt;=12305||t&gt;=12308&amp;&amp;t&lt;=12319||12336===t)||xi["CJK Unified Ideographs Extension A"](t)||xi["CJK Unified Ideographs"](t)||xi["Enclosed CJK Letters and Months"](t)||xi["Hangul Compatibility Jamo"](t)||xi["Hangul Jamo Extended-A"](t)||xi["Hangul Jamo Extended-B"](t)||xi["Hangul Jamo"](t)||xi["Hangul Syllables"](t)||xi.Hiragana(t)||xi["Ideographic Description Characters"](t)||xi.Kanbun(t)||xi["Kangxi Radicals"](t)||xi["Katakana Phonetic Extensions"](t)||xi.Katakana(t)&amp;&amp;12540!==t||!(!xi["Halfwidth and Fullwidth Forms"](t)||65288===t||65289===t||65293===t||t&gt;=65306&amp;&amp;t&lt;=65310||65339===t||65341===t||65343===t||t&gt;=65371&amp;&amp;t&lt;=65503||65507===t||t&gt;=65512&amp;&amp;t&lt;=65519)||!(!xi["Small Form Variants"](t)||t&gt;=65112&amp;&amp;t&lt;=65118||t&gt;=65123&amp;&amp;t&lt;=65126)||xi["Unified Canadian Aboriginal Syllabics"](t)||xi["Unified Canadian Aboriginal Syllabics Extended"](t)||xi["Vertical Forms"](t)||xi["Yijing Hexagram Symbols"](t)||xi["Yi Syllables"](t)||xi["Yi Radicals"](t))))}function Ei(t){return!(Si(t)||function(t){return!!(xi["Latin-1 Supplement"](t)&amp;&amp;(167===t||169===t||174===t||177===t||188===t||189===t||190===t||215===t||247===t)||xi["General Punctuation"](t)&amp;&amp;(8214===t||8224===t||8225===t||8240===t||8241===t||8251===t||8252===t||8258===t||8263===t||8264===t||8265===t||8273===t)||xi["Letterlike Symbols"](t)||xi["Number Forms"](t)||xi["Miscellaneous Technical"](t)&amp;&amp;(t&gt;=8960&amp;&amp;t&lt;=8967||t&gt;=8972&amp;&amp;t&lt;=8991||t&gt;=8996&amp;&amp;t&lt;=9e3||9003===t||t&gt;=9085&amp;&amp;t&lt;=9114||t&gt;=9150&amp;&amp;t&lt;=9165||9167===t||t&gt;=9169&amp;&amp;t&lt;=9179||t&gt;=9186&amp;&amp;t&lt;=9215)||xi["Control Pictures"](t)&amp;&amp;9251!==t||xi["Optical Character Recognition"](t)||xi["Enclosed Alphanumerics"](t)||xi["Geometric Shapes"](t)||xi["Miscellaneous Symbols"](t)&amp;&amp;!(t&gt;=9754&amp;&amp;t&lt;=9759)||xi["Miscellaneous Symbols and Arrows"](t)&amp;&amp;(t&gt;=11026&amp;&amp;t&lt;=11055||t&gt;=11088&amp;&amp;t&lt;=11097||t&gt;=11192&amp;&amp;t&lt;=11243)||xi["CJK Symbols and Punctuation"](t)||xi.Katakana(t)||xi["Private Use Area"](t)||xi["CJK Compatibility Forms"](t)||xi["Small Form Variants"](t)||xi["Halfwidth and Fullwidth Forms"](t)||8734===t||8756===t||8757===t||t&gt;=9984&amp;&amp;t&lt;=10087||t&gt;=10102&amp;&amp;t&lt;=10131||65532===t||65533===t)}(t))}function ki(t,e){return!(!e&amp;&amp;(t&gt;=1424&amp;&amp;t&lt;=2303||xi["Arabic Presentation Forms-A"](t)||xi["Arabic Presentation Forms-B"](t))||t&gt;=2304&amp;&amp;t&lt;=3583||t&gt;=3840&amp;&amp;t&lt;=4255||xi.Khmer(t))}var Ti,Ai=!1,Ci=null,Ii=!1,Pi=new kt,Mi={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return Ii||null!=Mi.applyArabicShaping}},zi=function(t,e){this.zoom=t,e?(this.now=e.now,this.fadeDuration=e.fadeDuration,this.zoomHistory=e.zoomHistory,this.transition=e.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new _i,this.transition={})};zi.prototype.isSupportedScript=function(t){return function(t,e){for(var r=0,i=t;r&lt;i.length;r+=1)if(!ki(i[r].charCodeAt(0),e))return!1;return!0}(t,Mi.isLoaded())},zi.prototype.crossFadingFactor=function(){return 0===this.fadeDuration?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)},zi.prototype.getCrossfadeParameters=function(){var t=this.zoom,e=t-Math.floor(t),r=this.crossFadingFactor();return t&gt;this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:e+(1-e)*r}:{fromScale:.5,toScale:1,t:1-(1-r)*e}};var Di=function(t,e){this.property=t,this.value=e,this.expression=function(t,e){if(yr(t))return new Ir(t,e);if(Er(t)){var r=Cr(t,e);if("error"===r.result)throw new Error(r.value.map((function(t){return t.key+": "+t.message})).join(", "));return r.value}var i=t;return"string"==typeof t&amp;&amp;"color"===e.type&amp;&amp;(i=$t.parse(t)),{kind:"constant",evaluate:function(){return i}}}(void 0===e?t.specification.default:e,t.specification)};Di.prototype.isDataDriven=function(){return"source"===this.expression.kind||"composite"===this.expression.kind},Di.prototype.possiblyEvaluate=function(t){return this.property.possiblyEvaluate(this,t)};var Li=function(t){this.property=t,this.value=new Di(t,void 0)};Li.prototype.transitioned=function(t,e){return new Oi(this.property,this.value,e,p({},t.transition,this.transition),t.now)},Li.prototype.untransitioned=function(){return new Oi(this.property,this.value,null,{},0)};var Ri=function(t){this._properties=t,this._values=Object.create(t.defaultTransitionablePropertyValues)};Ri.prototype.getValue=function(t){return x(this._values[t].value.value)},Ri.prototype.setValue=function(t,e){this._values.hasOwnProperty(t)||(this._values[t]=new Li(this._values[t].property)),this._values[t].value=new Di(this._values[t].property,null===e?void 0:x(e))},Ri.prototype.getTransition=function(t){return x(this._values[t].transition)},Ri.prototype.setTransition=function(t,e){this._values.hasOwnProperty(t)||(this._values[t]=new Li(this._values[t].property)),this._values[t].transition=x(e)||void 0},Ri.prototype.serialize=function(){for(var t={},e=0,r=Object.keys(this._values);e&lt;r.length;e+=1){var i=r[e],n=this.getValue(i);void 0!==n&amp;&amp;(t[i]=n);var o=this.getTransition(i);void 0!==o&amp;&amp;(t[i+"-transition"]=o)}return t},Ri.prototype.transitioned=function(t,e){for(var r=new Bi(this._properties),i=0,n=Object.keys(this._values);i&lt;n.length;i+=1){var o=n[i];r._values[o]=this._values[o].transitioned(t,e._values[o])}return r},Ri.prototype.untransitioned=function(){for(var t=new Bi(this._properties),e=0,r=Object.keys(this._values);e&lt;r.length;e+=1){var i=r[e];t._values[i]=this._values[i].untransitioned()}return t};var Oi=function(t,e,r,i,n){this.property=t,this.value=e,this.begin=n+i.delay||0,this.end=this.begin+i.duration||0,t.specification.transition&amp;&amp;(i.delay||i.duration)&amp;&amp;(this.prior=r)};Oi.prototype.possiblyEvaluate=function(t){var e=t.now||0,r=this.value.possiblyEvaluate(t),i=this.prior;if(i){if(e&gt;this.end)return this.prior=null,r;if(this.value.isDataDriven())return this.prior=null,r;if(e&lt;this.begin)return i.possiblyEvaluate(t);var n=(e-this.begin)/(this.end-this.begin);return this.property.interpolate(i.possiblyEvaluate(t),r,function(t){if(t&lt;=0)return 0;if(t&gt;=1)return 1;var e=t*t,r=e*t;return 4*(t&lt;.5?r:3*(t-e)+r-.75)}(n))}return r};var Bi=function(t){this._properties=t,this._values=Object.create(t.defaultTransitioningPropertyValues)};Bi.prototype.possiblyEvaluate=function(t){for(var e=new Ui(this._properties),r=0,i=Object.keys(this._values);r&lt;i.length;r+=1){var n=i[r];e._values[n]=this._values[n].possiblyEvaluate(t)}return e},Bi.prototype.hasTransition=function(){for(var t=0,e=Object.keys(this._values);t&lt;e.length;t+=1){var r=e[t];if(this._values[r].prior)return!0}return!1};var Fi=function(t){this._properties=t,this._values=Object.create(t.defaultPropertyValues)};Fi.prototype.getValue=function(t){return x(this._values[t].value)},Fi.prototype.setValue=function(t,e){this._values[t]=new Di(this._values[t].property,null===e?void 0:x(e))},Fi.prototype.serialize=function(){for(var t={},e=0,r=Object.keys(this._values);e&lt;r.length;e+=1){var i=r[e],n=this.getValue(i);void 0!==n&amp;&amp;(t[i]=n)}return t},Fi.prototype.possiblyEvaluate=function(t){for(var e=new Ui(this._properties),r=0,i=Object.keys(this._values);r&lt;i.length;r+=1){var n=i[r];e._values[n]=this._values[n].possiblyEvaluate(t)}return e};var ji=function(t,e,r){this.property=t,this.value=e,this.parameters=r};ji.prototype.isConstant=function(){return"constant"===this.value.kind},ji.prototype.constantOr=function(t){return"constant"===this.value.kind?this.value.value:t},ji.prototype.evaluate=function(t,e){return this.property.evaluate(this.value,this.parameters,t,e)};var Ui=function(t){this._properties=t,this._values=Object.create(t.defaultPossiblyEvaluatedValues)};Ui.prototype.get=function(t){return this._values[t]};var Ni=function(t){this.specification=t};Ni.prototype.possiblyEvaluate=function(t,e){return t.expression.evaluate(e)},Ni.prototype.interpolate=function(t,e,r){var i=be[this.specification.type];return i?i(t,e,r):t};var Vi=function(t,e){this.specification=t,this.overrides=e};Vi.prototype.possiblyEvaluate=function(t,e){return"constant"===t.expression.kind||"camera"===t.expression.kind?new ji(this,{kind:"constant",value:t.expression.evaluate(e)},e):new ji(this,t.expression,e)},Vi.prototype.interpolate=function(t,e,r){if("constant"!==t.value.kind||"constant"!==e.value.kind)return t;if(void 0===t.value.value||void 0===e.value.value)return new ji(this,{kind:"constant",value:void 0},t.parameters);var i=be[this.specification.type];return i?new ji(this,{kind:"constant",value:i(t.value.value,e.value.value,r)},t.parameters):t},Vi.prototype.evaluate=function(t,e,r,i){return"constant"===t.kind?t.value:t.evaluate(e,r,i)};var qi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.possiblyEvaluate=function(t,e){if(void 0===t.value)return new ji(this,{kind:"constant",value:void 0},e);if("constant"===t.expression.kind){var r=t.expression.evaluate(e),i=this._calculate(r,r,r,e);return new ji(this,{kind:"constant",value:i},e)}if("camera"===t.expression.kind){var n=this._calculate(t.expression.evaluate({zoom:e.zoom-1}),t.expression.evaluate({zoom:e.zoom}),t.expression.evaluate({zoom:e.zoom+1}),e);return new ji(this,{kind:"constant",value:n},e)}return new ji(this,t.expression,e)},e.prototype.evaluate=function(t,e,r,i){if("source"===t.kind){var n=t.evaluate(e,r,i);return this._calculate(n,n,n,e)}return"composite"===t.kind?this._calculate(t.evaluate({zoom:Math.floor(e.zoom)-1},r,i),t.evaluate({zoom:Math.floor(e.zoom)},r,i),t.evaluate({zoom:Math.floor(e.zoom)+1},r,i),e):t.value},e.prototype._calculate=function(t,e,r,i){return i.zoom&gt;i.zoomHistory.lastIntegerZoom?{from:t,to:e}:{from:r,to:e}},e.prototype.interpolate=function(t){return t},e}(Vi),Wi=function(t){this.specification=t};Wi.prototype.possiblyEvaluate=function(t,e){if(void 0!==t.value){if("constant"===t.expression.kind){var r=t.expression.evaluate(e);return this._calculate(r,r,r,e)}return this._calculate(t.expression.evaluate(new zi(Math.floor(e.zoom-1),e)),t.expression.evaluate(new zi(Math.floor(e.zoom),e)),t.expression.evaluate(new zi(Math.floor(e.zoom+1),e)),e)}},Wi.prototype._calculate=function(t,e,r,i){return i.zoom&gt;i.zoomHistory.lastIntegerZoom?{from:t,to:e}:{from:r,to:e}},Wi.prototype.interpolate=function(t){return t};var Gi=function(t){this.specification=t};Gi.prototype.possiblyEvaluate=function(t,e){return!!t.expression.evaluate(e)},Gi.prototype.interpolate=function(){return!1};var Hi=function(t){for(var e in this.properties=t,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[],t){var r=t[e];r.specification.overridable&amp;&amp;this.overridableProperties.push(e);var i=this.defaultPropertyValues[e]=new Di(r,void 0),n=this.defaultTransitionablePropertyValues[e]=new Li(r);this.defaultTransitioningPropertyValues[e]=n.untransitioned(),this.defaultPossiblyEvaluatedValues[e]=i.possiblyEvaluate({})}};mi("DataDrivenProperty",Vi),mi("DataConstantProperty",Ni),mi("CrossFadedDataDrivenProperty",qi),mi("CrossFadedProperty",Wi),mi("ColorRampProperty",Gi);var Zi=function(t){function e(e,r){if(t.call(this),this.id=e.id,this.type=e.type,this._featureFilter=function(){return!0},"custom"!==e.type&amp;&amp;(e=e,this.metadata=e.metadata,this.minzoom=e.minzoom,this.maxzoom=e.maxzoom,"background"!==e.type&amp;&amp;(this.source=e.source,this.sourceLayer=e["source-layer"],this.filter=e.filter),r.layout&amp;&amp;(this._unevaluatedLayout=new Fi(r.layout)),r.paint)){for(var i in this._transitionablePaint=new Ri(r.paint),e.paint)this.setPaintProperty(i,e.paint[i],{validate:!1});for(var n in e.layout)this.setLayoutProperty(n,e.layout[n],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned()}}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},e.prototype.getLayoutProperty=function(t){return"visibility"===t?this.visibility:this._unevaluatedLayout.getValue(t)},e.prototype.setLayoutProperty=function(t,e,r){if(void 0===r&amp;&amp;(r={}),null!=e){var i="layers."+this.id+".layout."+t;if(this._validate(li,i,t,e,r))return}"visibility"!==t?this._unevaluatedLayout.setValue(t,e):this.visibility=e},e.prototype.getPaintProperty=function(t){return g(t,"-transition")?this._transitionablePaint.getTransition(t.slice(0,-"-transition".length)):this._transitionablePaint.getValue(t)},e.prototype.setPaintProperty=function(t,e,r){if(void 0===r&amp;&amp;(r={}),null!=e){var i="layers."+this.id+".paint."+t;if(this._validate(si,i,t,e,r))return!1}if(g(t,"-transition"))return this._transitionablePaint.setTransition(t.slice(0,-"-transition".length),e||void 0),!1;var n=this._transitionablePaint._values[t],o="cross-faded-data-driven"===n.property.specification["property-type"],a=n.value.isDataDriven(),s=n.value;this._transitionablePaint.setValue(t,e),this._handleSpecialPaintPropertyUpdate(t);var l=this._transitionablePaint._values[t].value;return l.isDataDriven()||a||o||this._handleOverridablePaintPropertyUpdate(t,s,l)},e.prototype._handleSpecialPaintPropertyUpdate=function(t){},e.prototype._handleOverridablePaintPropertyUpdate=function(t,e,r){return!1},e.prototype.isHidden=function(t){return!!(this.minzoom&amp;&amp;t&lt;this.minzoom)||!!(this.maxzoom&amp;&amp;t&gt;=this.maxzoom)||"none"===this.visibility},e.prototype.updateTransitions=function(t){this._transitioningPaint=this._transitionablePaint.transitioned(t,this._transitioningPaint)},e.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},e.prototype.recalculate=function(t){t.getCrossfadeParameters&amp;&amp;(this._crossfadeParameters=t.getCrossfadeParameters()),this._unevaluatedLayout&amp;&amp;(this.layout=this._unevaluatedLayout.possiblyEvaluate(t)),this.paint=this._transitioningPaint.possiblyEvaluate(t)},e.prototype.serialize=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&amp;&amp;this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&amp;&amp;this._transitionablePaint.serialize()};return this.visibility&amp;&amp;(t.layout=t.layout||{},t.layout.visibility=this.visibility),_(t,(function(t,e){return!(void 0===t||"layout"===e&amp;&amp;!Object.keys(t).length||"paint"===e&amp;&amp;!Object.keys(t).length)}))},e.prototype._validate=function(t,e,r,i,n){return void 0===n&amp;&amp;(n={}),(!n||!1!==n.validate)&amp;&amp;ui(this,t.call(oi,{key:e,layerType:this.type,objectKey:r,value:i,styleSpec:Tt,style:{glyphs:!0,sprite:!0}}))},e.prototype.is3D=function(){return!1},e.prototype.isTileClipped=function(){return!1},e.prototype.hasOffscreenPass=function(){return!1},e.prototype.resize=function(){},e.prototype.isStateDependent=function(){for(var t in this.paint._values){var e=this.paint.get(t);if(e instanceof ji&amp;&amp;hr(e.property.specification)&amp;&amp;("source"===e.value.kind||"composite"===e.value.kind)&amp;&amp;e.value.isStateDependent)return!0}return!1},e}(kt),Xi={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},$i=function(t,e){this._structArray=t,this._pos1=e*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},Yi=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};function Ki(t,e){void 0===e&amp;&amp;(e=1);var r=0,i=0;return{members:t.map((function(t){var n,o=(n=t.type,Xi[n].BYTES_PER_ELEMENT),a=r=Ji(r,Math.max(e,o)),s=t.components||1;return i=Math.max(i,o),r+=o*s,{name:t.name,type:t.type,components:s,offset:a}})),size:Ji(r,Math.max(i,e)),alignment:e}}function Ji(t,e){return Math.ceil(t/e)*e}Yi.serialize=function(t,e){return t._trim(),e&amp;&amp;(t.isTransferred=!0,e.push(t.arrayBuffer)),{length:t.length,arrayBuffer:t.arrayBuffer}},Yi.deserialize=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},Yi.prototype._trim=function(){this.length!==this.capacity&amp;&amp;(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},Yi.prototype.clear=function(){this.length=0},Yi.prototype.resize=function(t){this.reserve(t),this.length=t},Yi.prototype.reserve=function(t){if(t&gt;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&amp;&amp;this.uint8.set(e)}},Yi.prototype._refreshViews=function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")};var Qi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e){var r=this.length;return this.resize(r+1),this.emplace(r,t,e)},e.prototype.emplace=function(t,e,r){var i=2*t;return this.int16[i+0]=e,this.int16[i+1]=r,t},e}(Yi);Qi.prototype.bytesPerElement=4,mi("StructArrayLayout2i4",Qi);var tn=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,i){var n=this.length;return this.resize(n+1),this.emplace(n,t,e,r,i)},e.prototype.emplace=function(t,e,r,i,n){var o=4*t;return this.int16[o+0]=e,this.int16[o+1]=r,this.int16[o+2]=i,this.int16[o+3]=n,t},e}(Yi);tn.prototype.bytesPerElement=8,mi("StructArrayLayout4i8",tn);var en=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,i,n,o){var a=this.length;return this.resize(a+1),this.emplace(a,t,e,r,i,n,o)},e.prototype.emplace=function(t,e,r,i,n,o,a){var s=6*t;return this.int16[s+0]=e,this.int16[s+1]=r,this.int16[s+2]=i,this.int16[s+3]=n,this.int16[s+4]=o,this.int16[s+5]=a,t},e}(Yi);en.prototype.bytesPerElement=12,mi("StructArrayLayout2i4i12",en);var rn=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,i,n,o){var a=this.length;return this.resize(a+1),this.emplace(a,t,e,r,i,n,o)},e.prototype.emplace=function(t,e,r,i,n,o,a){var s=4*t,l=8*t;return this.int16[s+0]=e,this.int16[s+1]=r,this.uint8[l+4]=i,this.uint8[l+5]=n,this.uint8[l+6]=o,this.uint8[l+7]=a,t},e}(Yi);rn.prototype.bytesPerElement=8,mi("StructArrayLayout2i4ub8",rn);var nn=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,i,n,o,a,s){var l=this.length;return this.resize(l+1),this.emplace(l,t,e,r,i,n,o,a,s)},e.prototype.emplace=function(t,e,r,i,n,o,a,s,l){var u=8*t;return this.uint16[u+0]=e,this.uint16[u+1]=r,this.uint16[u+2]=i,this.uint16[u+3]=n,this.uint16[u+4]=o,this.uint16[u+5]=a,this.uint16[u+6]=s,this.uint16[u+7]=l,t},e}(Yi);nn.prototype.bytesPerElement=16,mi("StructArrayLayout8ui16",nn);var on=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,i,n,o,a,s){var l=this.length;return this.resize(l+1),this.emplace(l,t,e,r,i,n,o,a,s)},e.prototype.emplace=function(t,e,r,i,n,o,a,s,l){var u=8*t;return this.int16[u+0]=e,this.int16[u+1]=r,this.int16[u+2]=i,this.int16[u+3]=n,this.uint16[u+4]=o,this.uint16[u+5]=a,this.uint16[u+6]=s,this.uint16[u+7]=l,t},e}(Yi);on.prototype.bytesPerElement=16,mi("StructArrayLayout4i4ui16",on);var an=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r){var i=this.length;return this.resize(i+1),this.emplace(i,t,e,r)},e.prototype.emplace=function(t,e,r,i){var n=3*t;return this.float32[n+0]=e,this.float32[n+1]=r,this.float32[n+2]=i,t},e}(Yi);an.prototype.bytesPerElement=12,mi("StructArrayLayout3f12",an);var sn=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t){var e=this.length;return this.resize(e+1),this.emplace(e,t)},e.prototype.emplace=function(t,e){var r=1*t;return this.uint32[r+0]=e,t},e}(Yi);sn.prototype.bytesPerElement=4,mi("StructArrayLayout1ul4",sn);var ln=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=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)},e.prototype.emplaceBack=function(t,e,r,i,n,o,a,s,l,u,c){var p=this.length;return this.resize(p+1),this.emplace(p,t,e,r,i,n,o,a,s,l,u,c)},e.prototype.emplace=function(t,e,r,i,n,o,a,s,l,u,c,p){var h=12*t,d=6*t;return this.int16[h+0]=e,this.int16[h+1]=r,this.int16[h+2]=i,this.int16[h+3]=n,this.int16[h+4]=o,this.int16[h+5]=a,this.uint32[d+3]=s,this.uint16[h+8]=l,this.uint16[h+9]=u,this.int16[h+10]=c,this.int16[h+11]=p,t},e}(Yi);ln.prototype.bytesPerElement=24,mi("StructArrayLayout6i1ul2ui2i24",ln);var un=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,i,n,o){var a=this.length;return this.resize(a+1),this.emplace(a,t,e,r,i,n,o)},e.prototype.emplace=function(t,e,r,i,n,o,a){var s=6*t;return this.int16[s+0]=e,this.int16[s+1]=r,this.int16[s+2]=i,this.int16[s+3]=n,this.int16[s+4]=o,this.int16[s+5]=a,t},e}(Yi);un.prototype.bytesPerElement=12,mi("StructArrayLayout2i2i2i12",un);var cn=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,i){var n=this.length;return this.resize(n+1),this.emplace(n,t,e,r,i)},e.prototype.emplace=function(t,e,r,i,n){var o=12*t,a=3*t;return this.uint8[o+0]=e,this.uint8[o+1]=r,this.float32[a+1]=i,this.float32[a+2]=n,t},e}(Yi);cn.prototype.bytesPerElement=12,mi("StructArrayLayout2ub2f12",cn);var pn=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=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)},e.prototype.emplaceBack=function(t,e,r,i,n,o,a,s,l,u,c,p,h,d,f,m){var y=this.length;return this.resize(y+1),this.emplace(y,t,e,r,i,n,o,a,s,l,u,c,p,h,d,f,m)},e.prototype.emplace=function(t,e,r,i,n,o,a,s,l,u,c,p,h,d,f,m,y){var g=22*t,v=11*t,_=44*t;return this.int16[g+0]=e,this.int16[g+1]=r,this.uint16[g+2]=i,this.uint16[g+3]=n,this.uint32[v+2]=o,this.uint32[v+3]=a,this.uint32[v+4]=s,this.uint16[g+10]=l,this.uint16[g+11]=u,this.uint16[g+12]=c,this.float32[v+7]=p,this.float32[v+8]=h,this.uint8[_+36]=d,this.uint8[_+37]=f,this.uint8[_+38]=m,this.uint32[v+10]=y,t},e}(Yi);pn.prototype.bytesPerElement=44,mi("StructArrayLayout2i2ui3ul3ui2f3ub1ul44",pn);var hn=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=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)},e.prototype.emplaceBack=function(t,e,r,i,n,o,a,s,l,u,c,p,h,d,f,m,y,g,v,_){var x=this.length;return this.resize(x+1),this.emplace(x,t,e,r,i,n,o,a,s,l,u,c,p,h,d,f,m,y,g,v,_)},e.prototype.emplace=function(t,e,r,i,n,o,a,s,l,u,c,p,h,d,f,m,y,g,v,_,x){var b=24*t,w=12*t;return this.int16[b+0]=e,this.int16[b+1]=r,this.int16[b+2]=i,this.int16[b+3]=n,this.int16[b+4]=o,this.int16[b+5]=a,this.uint16[b+6]=s,this.uint16[b+7]=l,this.uint16[b+8]=u,this.uint16[b+9]=c,this.uint16[b+10]=p,this.uint16[b+11]=h,this.uint16[b+12]=d,this.uint16[b+13]=f,this.uint16[b+14]=m,this.uint16[b+15]=y,this.uint16[b+16]=g,this.uint32[w+9]=v,this.float32[w+10]=_,this.float32[w+11]=x,t},e}(Yi);hn.prototype.bytesPerElement=48,mi("StructArrayLayout6i11ui1ul2f48",hn);var dn=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t){var e=this.length;return this.resize(e+1),this.emplace(e,t)},e.prototype.emplace=function(t,e){var r=1*t;return this.float32[r+0]=e,t},e}(Yi);dn.prototype.bytesPerElement=4,mi("StructArrayLayout1f4",dn);var fn=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r){var i=this.length;return this.resize(i+1),this.emplace(i,t,e,r)},e.prototype.emplace=function(t,e,r,i){var n=3*t;return this.int16[n+0]=e,this.int16[n+1]=r,this.int16[n+2]=i,t},e}(Yi);fn.prototype.bytesPerElement=6,mi("StructArrayLayout3i6",fn);var mn=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r){var i=this.length;return this.resize(i+1),this.emplace(i,t,e,r)},e.prototype.emplace=function(t,e,r,i){var n=2*t,o=4*t;return this.uint32[n+0]=e,this.uint16[o+2]=r,this.uint16[o+3]=i,t},e}(Yi);mn.prototype.bytesPerElement=8,mi("StructArrayLayout1ul2ui8",mn);var yn=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r){var i=this.length;return this.resize(i+1),this.emplace(i,t,e,r)},e.prototype.emplace=function(t,e,r,i){var n=3*t;return this.uint16[n+0]=e,this.uint16[n+1]=r,this.uint16[n+2]=i,t},e}(Yi);yn.prototype.bytesPerElement=6,mi("StructArrayLayout3ui6",yn);var gn=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e){var r=this.length;return this.resize(r+1),this.emplace(r,t,e)},e.prototype.emplace=function(t,e,r){var i=2*t;return this.uint16[i+0]=e,this.uint16[i+1]=r,t},e}(Yi);gn.prototype.bytesPerElement=4,mi("StructArrayLayout2ui4",gn);var vn=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t){var e=this.length;return this.resize(e+1),this.emplace(e,t)},e.prototype.emplace=function(t,e){var r=1*t;return this.uint16[r+0]=e,t},e}(Yi);vn.prototype.bytesPerElement=2,mi("StructArrayLayout1ui2",vn);var _n=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e){var r=this.length;return this.resize(r+1),this.emplace(r,t,e)},e.prototype.emplace=function(t,e,r){var i=2*t;return this.float32[i+0]=e,this.float32[i+1]=r,t},e}(Yi);_n.prototype.bytesPerElement=8,mi("StructArrayLayout2f8",_n);var xn=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,i){var n=this.length;return this.resize(n+1),this.emplace(n,t,e,r,i)},e.prototype.emplace=function(t,e,r,i,n){var o=4*t;return this.float32[o+0]=e,this.float32[o+1]=r,this.float32[o+2]=i,this.float32[o+3]=n,t},e}(Yi);xn.prototype.bytesPerElement=16,mi("StructArrayLayout4f16",xn);var bn=function(t){function e(){t.apply(this,arguments)}t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e;var r={anchorPointX:{configurable:!0},anchorPointY:{configurable:!0},x1:{configurable:!0},y1:{configurable:!0},x2:{configurable:!0},y2:{configurable:!0},featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0},radius:{configurable:!0},signedDistanceFromAnchor:{configurable:!0},anchorPoint:{configurable:!0}};return r.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},r.anchorPointX.set=function(t){this._structArray.int16[this._pos2+0]=t},r.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},r.anchorPointY.set=function(t){this._structArray.int16[this._pos2+1]=t},r.x1.get=function(){return this._structArray.int16[this._pos2+2]},r.x1.set=function(t){this._structArray.int16[this._pos2+2]=t},r.y1.get=function(){return this._structArray.int16[this._pos2+3]},r.y1.set=function(t){this._structArray.int16[this._pos2+3]=t},r.x2.get=function(){return this._structArray.int16[this._pos2+4]},r.x2.set=function(t){this._structArray.int16[this._pos2+4]=t},r.y2.get=function(){return this._structArray.int16[this._pos2+5]},r.y2.set=function(t){this._structArray.int16[this._pos2+5]=t},r.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},r.featureIndex.set=function(t){this._structArray.uint32[this._pos4+3]=t},r.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},r.sourceLayerIndex.set=function(t){this._structArray.uint16[this._pos2+8]=t},r.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},r.bucketIndex.set=function(t){this._structArray.uint16[this._pos2+9]=t},r.radius.get=function(){return this._structArray.int16[this._pos2+10]},r.radius.set=function(t){this._structArray.int16[this._pos2+10]=t},r.signedDistanceFromAnchor.get=function(){return this._structArray.int16[this._pos2+11]},r.signedDistanceFromAnchor.set=function(t){this._structArray.int16[this._pos2+11]=t},r.anchorPoint.get=function(){return new n(this.anchorPointX,this.anchorPointY)},Object.defineProperties(e.prototype,r),e}($i);bn.prototype.size=24;var wn=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.get=function(t){return new bn(this,t)},e}(ln);mi("CollisionBoxArray",wn);var Sn=function(t){function e(){t.apply(this,arguments)}t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e;var r={anchorX:{configurable:!0},anchorY:{configurable:!0},glyphStartIndex:{configurable:!0},numGlyphs:{configurable:!0},vertexStartIndex:{configurable:!0},lineStartIndex:{configurable:!0},lineLength:{configurable:!0},segment:{configurable:!0},lowerSize:{configurable:!0},upperSize:{configurable:!0},lineOffsetX:{configurable:!0},lineOffsetY:{configurable:!0},writingMode:{configurable:!0},placedOrientation:{configurable:!0},hidden:{configurable:!0},crossTileID:{configurable:!0}};return r.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},r.anchorX.set=function(t){this._structArray.int16[this._pos2+0]=t},r.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},r.anchorY.set=function(t){this._structArray.int16[this._pos2+1]=t},r.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},r.glyphStartIndex.set=function(t){this._structArray.uint16[this._pos2+2]=t},r.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},r.numGlyphs.set=function(t){this._structArray.uint16[this._pos2+3]=t},r.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},r.vertexStartIndex.set=function(t){this._structArray.uint32[this._pos4+2]=t},r.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},r.lineStartIndex.set=function(t){this._structArray.uint32[this._pos4+3]=t},r.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},r.lineLength.set=function(t){this._structArray.uint32[this._pos4+4]=t},r.segment.get=function(){return this._structArray.uint16[this._pos2+10]},r.segment.set=function(t){this._structArray.uint16[this._pos2+10]=t},r.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},r.lowerSize.set=function(t){this._structArray.uint16[this._pos2+11]=t},r.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},r.upperSize.set=function(t){this._structArray.uint16[this._pos2+12]=t},r.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},r.lineOffsetX.set=function(t){this._structArray.float32[this._pos4+7]=t},r.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},r.lineOffsetY.set=function(t){this._structArray.float32[this._pos4+8]=t},r.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},r.writingMode.set=function(t){this._structArray.uint8[this._pos1+36]=t},r.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},r.placedOrientation.set=function(t){this._structArray.uint8[this._pos1+37]=t},r.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},r.hidden.set=function(t){this._structArray.uint8[this._pos1+38]=t},r.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},r.crossTileID.set=function(t){this._structArray.uint32[this._pos4+10]=t},Object.defineProperties(e.prototype,r),e}($i);Sn.prototype.size=44;var En=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.get=function(t){return new Sn(this,t)},e}(pn);mi("PlacedSymbolArray",En);var kn=function(t){function e(){t.apply(this,arguments)}t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e;var r={anchorX:{configurable:!0},anchorY:{configurable:!0},rightJustifiedTextSymbolIndex:{configurable:!0},centerJustifiedTextSymbolIndex:{configurable:!0},leftJustifiedTextSymbolIndex:{configurable:!0},verticalPlacedTextSymbolIndex:{configurable:!0},key:{configurable:!0},textBoxStartIndex:{configurable:!0},textBoxEndIndex:{configurable:!0},verticalTextBoxStartIndex:{configurable:!0},verticalTextBoxEndIndex:{configurable:!0},iconBoxStartIndex:{configurable:!0},iconBoxEndIndex:{configurable:!0},featureIndex:{configurable:!0},numHorizontalGlyphVertices:{configurable:!0},numVerticalGlyphVertices:{configurable:!0},numIconVertices:{configurable:!0},crossTileID:{configurable:!0},textBoxScale:{configurable:!0},radialTextOffset:{configurable:!0}};return r.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},r.anchorX.set=function(t){this._structArray.int16[this._pos2+0]=t},r.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},r.anchorY.set=function(t){this._structArray.int16[this._pos2+1]=t},r.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},r.rightJustifiedTextSymbolIndex.set=function(t){this._structArray.int16[this._pos2+2]=t},r.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},r.centerJustifiedTextSymbolIndex.set=function(t){this._structArray.int16[this._pos2+3]=t},r.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},r.leftJustifiedTextSymbolIndex.set=function(t){this._structArray.int16[this._pos2+4]=t},r.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},r.verticalPlacedTextSymbolIndex.set=function(t){this._structArray.int16[this._pos2+5]=t},r.key.get=function(){return this._structArray.uint16[this._pos2+6]},r.key.set=function(t){this._structArray.uint16[this._pos2+6]=t},r.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+7]},r.textBoxStartIndex.set=function(t){this._structArray.uint16[this._pos2+7]=t},r.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+8]},r.textBoxEndIndex.set=function(t){this._structArray.uint16[this._pos2+8]=t},r.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},r.verticalTextBoxStartIndex.set=function(t){this._structArray.uint16[this._pos2+9]=t},r.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},r.verticalTextBoxEndIndex.set=function(t){this._structArray.uint16[this._pos2+10]=t},r.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},r.iconBoxStartIndex.set=function(t){this._structArray.uint16[this._pos2+11]=t},r.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},r.iconBoxEndIndex.set=function(t){this._structArray.uint16[this._pos2+12]=t},r.featureIndex.get=function(){return this._structArray.uint16[this._pos2+13]},r.featureIndex.set=function(t){this._structArray.uint16[this._pos2+13]=t},r.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+14]},r.numHorizontalGlyphVertices.set=function(t){this._structArray.uint16[this._pos2+14]=t},r.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+15]},r.numVerticalGlyphVertices.set=function(t){this._structArray.uint16[this._pos2+15]=t},r.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+16]},r.numIconVertices.set=function(t){this._structArray.uint16[this._pos2+16]=t},r.crossTileID.get=function(){return this._structArray.uint32[this._pos4+9]},r.crossTileID.set=function(t){this._structArray.uint32[this._pos4+9]=t},r.textBoxScale.get=function(){return this._structArray.float32[this._pos4+10]},r.textBoxScale.set=function(t){this._structArray.float32[this._pos4+10]=t},r.radialTextOffset.get=function(){return this._structArray.float32[this._pos4+11]},r.radialTextOffset.set=function(t){this._structArray.float32[this._pos4+11]=t},Object.defineProperties(e.prototype,r),e}($i);kn.prototype.size=48;var Tn=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.get=function(t){return new kn(this,t)},e}(hn);mi("SymbolInstanceArray",Tn);var An=function(t){function e(){t.apply(this,arguments)}t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e;var r={offsetX:{configurable:!0}};return r.offsetX.get=function(){return this._structArray.float32[this._pos4+0]},r.offsetX.set=function(t){this._structArray.float32[this._pos4+0]=t},Object.defineProperties(e.prototype,r),e}($i);An.prototype.size=4;var Cn=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getoffsetX=function(t){return this.float32[1*t+0]},e.prototype.get=function(t){return new An(this,t)},e}(dn);mi("GlyphOffsetArray",Cn);var In=function(t){function e(){t.apply(this,arguments)}t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e;var r={x:{configurable:!0},y:{configurable:!0},tileUnitDistanceFromAnchor:{configurable:!0}};return r.x.get=function(){return this._structArray.int16[this._pos2+0]},r.x.set=function(t){this._structArray.int16[this._pos2+0]=t},r.y.get=function(){return this._structArray.int16[this._pos2+1]},r.y.set=function(t){this._structArray.int16[this._pos2+1]=t},r.tileUnitDistanceFromAnchor.get=function(){return this._structArray.int16[this._pos2+2]},r.tileUnitDistanceFromAnchor.set=function(t){this._structArray.int16[this._pos2+2]=t},Object.defineProperties(e.prototype,r),e}($i);In.prototype.size=6;var Pn=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getx=function(t){return this.int16[3*t+0]},e.prototype.gety=function(t){return this.int16[3*t+1]},e.prototype.gettileUnitDistanceFromAnchor=function(t){return this.int16[3*t+2]},e.prototype.get=function(t){return new In(this,t)},e}(fn);mi("SymbolLineVertexArray",Pn);var Mn=function(t){function e(){t.apply(this,arguments)}t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e;var r={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return r.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},r.featureIndex.set=function(t){this._structArray.uint32[this._pos4+0]=t},r.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},r.sourceLayerIndex.set=function(t){this._structArray.uint16[this._pos2+2]=t},r.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},r.bucketIndex.set=function(t){this._structArray.uint16[this._pos2+3]=t},Object.defineProperties(e.prototype,r),e}($i);Mn.prototype.size=8;var zn=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.get=function(t){return new Mn(this,t)},e}(mn);mi("FeatureIndexArray",zn);var Dn=Ki([{name:"a_pos",components:2,type:"Int16"}],4).members,Ln=function(t){void 0===t&amp;&amp;(t=[]),this.segments=t};function Rn(t,e){return 256*(t=u(Math.floor(t),0,255))+u(Math.floor(e),0,255)}Ln.prototype.prepareSegment=function(t,e,r,i){var n=this.segments[this.segments.length-1];return t&gt;Ln.MAX_VERTEX_ARRAY_LENGTH&amp;&amp;w("Max vertices per segment is "+Ln.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+t),(!n||n.vertexLength+t&gt;Ln.MAX_VERTEX_ARRAY_LENGTH||n.sortKey!==i)&amp;&amp;(n={vertexOffset:e.length,primitiveOffset:r.length,vertexLength:0,primitiveLength:0},void 0!==i&amp;&amp;(n.sortKey=i),this.segments.push(n)),n},Ln.prototype.get=function(){return this.segments},Ln.prototype.destroy=function(){for(var t=0,e=this.segments;t&lt;e.length;t+=1){var r=e[t];for(var i in r.vaos)r.vaos[i].destroy()}},Ln.simpleSegment=function(t,e,r,i){return new Ln([{vertexOffset:t,primitiveOffset:e,vertexLength:r,primitiveLength:i,vaos:{},sortKey:0}])},Ln.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,mi("SegmentVector",Ln);var On=function(){this.ids=[],this.positions=[],this.indexed=!1};function Bn(t,e,r){var i=t[e];t[e]=t[r],t[r]=i}On.prototype.add=function(t,e,r,i){this.ids.push(t),this.positions.push(e,r,i)},On.prototype.getPositions=function(t){for(var e=0,r=this.ids.length-1;e&lt;r;){var i=e+r&gt;&gt;1;this.ids[i]&gt;=t?r=i:e=i+1}for(var n=[];this.ids[e]===t;){var o=this.positions[3*e],a=this.positions[3*e+1],s=this.positions[3*e+2];n.push({index:o,start:a,end:s}),e++}return n},On.serialize=function(t,e){var r=new Float64Array(t.ids),i=new Uint32Array(t.positions);return function t(e,r,i,n){if(!(i&gt;=n)){for(var o=e[i+n&gt;&gt;1],a=i-1,s=n+1;;){do{a++}while(e[a]&lt;o);do{s--}while(e[s]&gt;o);if(a&gt;=s)break;Bn(e,a,s),Bn(r,3*a,3*s),Bn(r,3*a+1,3*s+1),Bn(r,3*a+2,3*s+2)}t(e,r,i,s),t(e,r,s+1,n)}}(r,i,0,r.length-1),e.push(r.buffer,i.buffer),{ids:r,positions:i}},On.deserialize=function(t){var e=new On;return e.ids=t.ids,e.positions=t.positions,e.indexed=!0,e},mi("FeaturePositionMap",On);var Fn=function(t,e){this.gl=t.gl,this.location=e},jn=function(t){function e(e,r){t.call(this,e,r),this.current=0}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.set=function(t){this.current!==t&amp;&amp;(this.current=t,this.gl.uniform1i(this.location,t))},e}(Fn),Un=function(t){function e(e,r){t.call(this,e,r),this.current=0}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.set=function(t){this.current!==t&amp;&amp;(this.current=t,this.gl.uniform1f(this.location,t))},e}(Fn),Nn=function(t){function e(e,r){t.call(this,e,r),this.current=[0,0]}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.set=function(t){t[0]===this.current[0]&amp;&amp;t[1]===this.current[1]||(this.current=t,this.gl.uniform2f(this.location,t[0],t[1]))},e}(Fn),Vn=function(t){function e(e,r){t.call(this,e,r),this.current=[0,0,0]}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.set=function(t){t[0]===this.current[0]&amp;&amp;t[1]===this.current[1]&amp;&amp;t[2]===this.current[2]||(this.current=t,this.gl.uniform3f(this.location,t[0],t[1],t[2]))},e}(Fn),qn=function(t){function e(e,r){t.call(this,e,r),this.current=[0,0,0,0]}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.set=function(t){t[0]===this.current[0]&amp;&amp;t[1]===this.current[1]&amp;&amp;t[2]===this.current[2]&amp;&amp;t[3]===this.current[3]||(this.current=t,this.gl.uniform4f(this.location,t[0],t[1],t[2],t[3]))},e}(Fn),Wn=function(t){function e(e,r){t.call(this,e,r),this.current=$t.transparent}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.set=function(t){t.r===this.current.r&amp;&amp;t.g===this.current.g&amp;&amp;t.b===this.current.b&amp;&amp;t.a===this.current.a||(this.current=t,this.gl.uniform4f(this.location,t.r,t.g,t.b,t.a))},e}(Fn),Gn=new Float32Array(16),Hn=function(t){function e(e,r){t.call(this,e,r),this.current=Gn}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.set=function(t){if(t[12]!==this.current[12]||t[0]!==this.current[0])return this.current=t,void this.gl.uniformMatrix4fv(this.location,!1,t);for(var e=1;e&lt;16;e++)if(t[e]!==this.current[e]){this.current=t,this.gl.uniformMatrix4fv(this.location,!1,t);break}},e}(Fn);function Zn(t){return[Rn(255*t.r,255*t.g),Rn(255*t.b,255*t.a)]}var Xn=function(t,e,r){this.value=t,this.names=e,this.uniformNames=this.names.map((function(t){return"u_"+t})),this.type=r,this.maxValue=-1/0};Xn.prototype.defines=function(){return this.names.map((function(t){return"#define HAS_UNIFORM_u_"+t}))},Xn.prototype.setConstantPatternPositions=function(){},Xn.prototype.populatePaintArray=function(){},Xn.prototype.updatePaintArray=function(){},Xn.prototype.upload=function(){},Xn.prototype.destroy=function(){},Xn.prototype.setUniforms=function(t,e,r,i){e.set(i.constantOr(this.value))},Xn.prototype.getBinding=function(t,e){return"color"===this.type?new Wn(t,e):new Un(t,e)},Xn.serialize=function(t){var e=t.value,r=t.names,i=t.type;return{value:gi(e),names:r,type:i}},Xn.deserialize=function(t){var e=t.value,r=t.names,i=t.type;return new Xn(vi(e),r,i)};var $n=function(t,e,r){this.value=t,this.names=e,this.uniformNames=this.names.map((function(t){return"u_"+t})),this.type=r,this.maxValue=-1/0,this.patternPositions={patternTo:null,patternFrom:null}};$n.prototype.defines=function(){return this.names.map((function(t){return"#define HAS_UNIFORM_u_"+t}))},$n.prototype.populatePaintArray=function(){},$n.prototype.updatePaintArray=function(){},$n.prototype.upload=function(){},$n.prototype.destroy=function(){},$n.prototype.setConstantPatternPositions=function(t,e){this.patternPositions.patternTo=t.tlbr,this.patternPositions.patternFrom=e.tlbr},$n.prototype.setUniforms=function(t,e,r,i,n){var o=this.patternPositions;"u_pattern_to"===n&amp;&amp;o.patternTo&amp;&amp;e.set(o.patternTo),"u_pattern_from"===n&amp;&amp;o.patternFrom&amp;&amp;e.set(o.patternFrom)},$n.prototype.getBinding=function(t,e){return new qn(t,e)};var Yn=function(t,e,r,i){this.expression=t,this.names=e,this.type=r,this.uniformNames=this.names.map((function(t){return"a_"+t})),this.maxValue=-1/0,this.paintVertexAttributes=e.map((function(t){return{name:"a_"+t,type:"Float32",components:"color"===r?2:1,offset:0}})),this.paintVertexArray=new i};Yn.prototype.defines=function(){return[]},Yn.prototype.setConstantPatternPositions=function(){},Yn.prototype.populatePaintArray=function(t,e,r,i){var n=this.paintVertexArray,o=n.length;n.reserve(t);var a=this.expression.evaluate(new zi(0),e,{},i);if("color"===this.type)for(var s=Zn(a),l=o;l&lt;t;l++)n.emplaceBack(s[0],s[1]);else{for(var u=o;u&lt;t;u++)n.emplaceBack(a);this.maxValue=Math.max(this.maxValue,a)}},Yn.prototype.updatePaintArray=function(t,e,r,i){var n=this.paintVertexArray,o=this.expression.evaluate({zoom:0},r,i);if("color"===this.type)for(var a=Zn(o),s=t;s&lt;e;s++)n.emplace(s,a[0],a[1]);else{for(var l=t;l&lt;e;l++)n.emplace(l,o);this.maxValue=Math.max(this.maxValue,o)}},Yn.prototype.upload=function(t){this.paintVertexArray&amp;&amp;this.paintVertexArray.arrayBuffer&amp;&amp;(this.paintVertexBuffer&amp;&amp;this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=t.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))},Yn.prototype.destroy=function(){this.paintVertexBuffer&amp;&amp;this.paintVertexBuffer.destroy()},Yn.prototype.setUniforms=function(t,e){e.set(0)},Yn.prototype.getBinding=function(t,e){return new Un(t,e)};var Kn=function(t,e,r,i,n,o){this.expression=t,this.names=e,this.uniformNames=this.names.map((function(t){return"u_"+t+"_t"})),this.type=r,this.useIntegerZoom=i,this.zoom=n,this.maxValue=-1/0;var a=o;this.paintVertexAttributes=e.map((function(t){return{name:"a_"+t,type:"Float32",components:"color"===r?4:2,offset:0}})),this.paintVertexArray=new a};Kn.prototype.defines=function(){return[]},Kn.prototype.setConstantPatternPositions=function(){},Kn.prototype.populatePaintArray=function(t,e,r,i){var n=this.paintVertexArray,o=n.length;n.reserve(t);var a=this.expression.evaluate(new zi(this.zoom),e,{},i),s=this.expression.evaluate(new zi(this.zoom+1),e,{},i);if("color"===this.type)for(var l=Zn(a),u=Zn(s),c=o;c&lt;t;c++)n.emplaceBack(l[0],l[1],u[0],u[1]);else{for(var p=o;p&lt;t;p++)n.emplaceBack(a,s);this.maxValue=Math.max(this.maxValue,a,s)}},Kn.prototype.updatePaintArray=function(t,e,r,i){var n=this.paintVertexArray,o=this.expression.evaluate({zoom:this.zoom},r,i),a=this.expression.evaluate({zoom:this.zoom+1},r,i);if("color"===this.type)for(var s=Zn(o),l=Zn(a),u=t;u&lt;e;u++)n.emplace(u,s[0],s[1],l[0],l[1]);else{for(var c=t;c&lt;e;c++)n.emplace(c,o,a);this.maxValue=Math.max(this.maxValue,o,a)}},Kn.prototype.upload=function(t){this.paintVertexArray&amp;&amp;this.paintVertexArray.arrayBuffer&amp;&amp;(this.paintVertexBuffer&amp;&amp;this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=t.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))},Kn.prototype.destroy=function(){this.paintVertexBuffer&amp;&amp;this.paintVertexBuffer.destroy()},Kn.prototype.interpolationFactor=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)},Kn.prototype.setUniforms=function(t,e,r){e.set(this.interpolationFactor(r.zoom))},Kn.prototype.getBinding=function(t,e){return new Un(t,e)};var Jn=function(t,e,r,i,n,o,a){this.expression=t,this.names=e,this.type=r,this.uniformNames=this.names.map((function(t){return"u_"+t+"_t"})),this.useIntegerZoom=i,this.zoom=n,this.maxValue=-1/0,this.layerId=a,this.paintVertexAttributes=e.map((function(t){return{name:"a_"+t,type:"Uint16",components:4,offset:0}})),this.zoomInPaintVertexArray=new o,this.zoomOutPaintVertexArray=new o};Jn.prototype.defines=function(){return[]},Jn.prototype.setConstantPatternPositions=function(){},Jn.prototype.populatePaintArray=function(t,e,r){var i=this.zoomInPaintVertexArray,n=this.zoomOutPaintVertexArray,o=this.layerId,a=i.length;if(i.reserve(t),n.reserve(t),r&amp;&amp;e.patterns&amp;&amp;e.patterns[o]){var s=e.patterns[o],l=s.min,u=s.mid,c=s.max,p=r[l],h=r[u],d=r[c];if(!p||!h||!d)return;for(var f=a;f&lt;t;f++)i.emplaceBack(h.tl[0],h.tl[1],h.br[0],h.br[1],p.tl[0],p.tl[1],p.br[0],p.br[1]),n.emplaceBack(h.tl[0],h.tl[1],h.br[0],h.br[1],d.tl[0],d.tl[1],d.br[0],d.br[1])}},Jn.prototype.updatePaintArray=function(t,e,r,i,n){var o=this.zoomInPaintVertexArray,a=this.zoomOutPaintVertexArray,s=this.layerId;if(n&amp;&amp;r.patterns&amp;&amp;r.patterns[s]){var l=r.patterns[s],u=l.min,c=l.mid,p=l.max,h=n[u],d=n[c],f=n[p];if(!h||!d||!f)return;for(var m=t;m&lt;e;m++)o.emplace(m,d.tl[0],d.tl[1],d.br[0],d.br[1],h.tl[0],h.tl[1],h.br[0],h.br[1]),a.emplace(m,d.tl[0],d.tl[1],d.br[0],d.br[1],f.tl[0],f.tl[1],f.br[0],f.br[1])}},Jn.prototype.upload=function(t){this.zoomInPaintVertexArray&amp;&amp;this.zoomInPaintVertexArray.arrayBuffer&amp;&amp;this.zoomOutPaintVertexArray&amp;&amp;this.zoomOutPaintVertexArray.arrayBuffer&amp;&amp;(this.zoomInPaintVertexBuffer=t.createVertexBuffer(this.zoomInPaintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent),this.zoomOutPaintVertexBuffer=t.createVertexBuffer(this.zoomOutPaintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))},Jn.prototype.destroy=function(){this.zoomOutPaintVertexBuffer&amp;&amp;this.zoomOutPaintVertexBuffer.destroy(),this.zoomInPaintVertexBuffer&amp;&amp;this.zoomInPaintVertexBuffer.destroy()},Jn.prototype.setUniforms=function(t,e){e.set(0)},Jn.prototype.getBinding=function(t,e){return new Un(t,e)};var Qn=function(){this.binders={},this.cacheKey="",this._buffers=[],this._featureMap=new On,this._bufferOffset=0};Qn.createDynamic=function(t,e,r){var i=new Qn,n=[];for(var o in t.paint._values)if(r(o)){var a=t.paint.get(o);if(a instanceof ji&amp;&amp;hr(a.property.specification)){var s=eo(o,t.type),l=a.property.specification.type,u=a.property.useIntegerZoom;if("cross-faded"===a.property.specification["property-type"]||"cross-faded-data-driven"===a.property.specification["property-type"])if("constant"===a.value.kind)i.binders[o]=new $n(a.value.value,s,l),n.push("/u_"+o);else{var c=ro(o,l,"source");i.binders[o]=new Jn(a.value,s,l,u,e,c,t.id),n.push("/a_"+o)}else if("constant"===a.value.kind)i.binders[o]=new Xn(a.value.value,s,l),n.push("/u_"+o);else if("source"===a.value.kind){var p=ro(o,l,"source");i.binders[o]=new Yn(a.value,s,l,p),n.push("/a_"+o)}else{var h=ro(o,l,"composite");i.binders[o]=new Kn(a.value,s,l,u,e,h),n.push("/z_"+o)}}}return i.cacheKey=n.sort().join(""),i},Qn.prototype.populatePaintArrays=function(t,e,r,i,n){for(var o in this.binders)this.binders[o].populatePaintArray(t,e,i,n);void 0!==e.id&amp;&amp;this._featureMap.add(+e.id,r,this._bufferOffset,t),this._bufferOffset=t},Qn.prototype.setConstantPatternPositions=function(t,e){for(var r in this.binders)this.binders[r].setConstantPatternPositions(t,e)},Qn.prototype.updatePaintArrays=function(t,e,r,i){var n=!1;for(var o in t)for(var a=0,s=this._featureMap.getPositions(+o);a&lt;s.length;a+=1){var l=s[a],u=e.feature(l.index);for(var c in this.binders){var p=this.binders[c];if(!(p instanceof Xn||p instanceof $n)&amp;&amp;!0===p.expression.isStateDependent){var h=r.paint.get(c);p.expression=h.value,p.updatePaintArray(l.start,l.end,u,t[o],i),n=!0}}}return n},Qn.prototype.defines=function(){var t=[];for(var e in this.binders)t.push.apply(t,this.binders[e].defines());return t},Qn.prototype.getPaintVertexBuffers=function(){return this._buffers},Qn.prototype.getUniforms=function(t,e){var r=[];for(var i in this.binders)for(var n=this.binders[i],o=0,a=n.uniformNames;o&lt;a.length;o+=1){var s=a[o];if(e[s]){var l=n.getBinding(t,e[s]);r.push({name:s,property:i,binding:l})}}return r},Qn.prototype.setUniforms=function(t,e,r,i){for(var n=0,o=e;n&lt;o.length;n+=1){var a=o[n],s=a.name,l=a.property,u=a.binding;this.binders[l].setUniforms(t,u,i,r.get(l),s)}},Qn.prototype.updatePatternPaintBuffers=function(t){var e=[];for(var r in this.binders){var i=this.binders[r];if(i instanceof Jn){var n=2===t.fromScale?i.zoomInPaintVertexBuffer:i.zoomOutPaintVertexBuffer;n&amp;&amp;e.push(n)}else(i instanceof Yn||i instanceof Kn)&amp;&amp;i.paintVertexBuffer&amp;&amp;e.push(i.paintVertexBuffer)}this._buffers=e},Qn.prototype.upload=function(t){for(var e in this.binders)this.binders[e].upload(t);var r=[];for(var i in this.binders){var n=this.binders[i];(n instanceof Yn||n instanceof Kn)&amp;&amp;n.paintVertexBuffer&amp;&amp;r.push(n.paintVertexBuffer)}this._buffers=r},Qn.prototype.destroy=function(){for(var t in this.binders)this.binders[t].destroy()};var to=function(t,e,r,i){void 0===i&amp;&amp;(i=function(){return!0}),this.programConfigurations={};for(var n=0,o=e;n&lt;o.length;n+=1){var a=o[n];this.programConfigurations[a.id]=Qn.createDynamic(a,r,i),this.programConfigurations[a.id].layoutAttributes=t}this.needsUpload=!1};function eo(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"],"line-pattern":["pattern_to","pattern_from"],"fill-pattern":["pattern_to","pattern_from"],"fill-extrusion-pattern":["pattern_to","pattern_from"]}[t]||[t.replace(e+"-","").replace(/-/g,"_")]}function ro(t,e,r){var i={color:{source:_n,composite:xn},number:{source:dn,composite:_n}},n=function(t){return{"line-pattern":{source:nn,composite:nn},"fill-pattern":{source:nn,composite:nn},"fill-extrusion-pattern":{source:nn,composite:nn}}[t]}(t);return n&amp;&amp;n[r]||i[e][r]}to.prototype.populatePaintArrays=function(t,e,r,i,n){for(var o in this.programConfigurations)this.programConfigurations[o].populatePaintArrays(t,e,r,i,n);this.needsUpload=!0},to.prototype.updatePaintArrays=function(t,e,r,i){for(var n=0,o=r;n&lt;o.length;n+=1){var a=o[n];this.needsUpload=this.programConfigurations[a.id].updatePaintArrays(t,e,a,i)||this.needsUpload}},to.prototype.get=function(t){return this.programConfigurations[t]},to.prototype.upload=function(t){if(this.needsUpload){for(var e in this.programConfigurations)this.programConfigurations[e].upload(t);this.needsUpload=!1}},to.prototype.destroy=function(){for(var t in this.programConfigurations)this.programConfigurations[t].destroy()},mi("ConstantBinder",Xn),mi("CrossFadedConstantBinder",$n),mi("SourceExpressionBinder",Yn),mi("CrossFadedCompositeBinder",Jn),mi("CompositeExpressionBinder",Kn),mi("ProgramConfiguration",Qn,{omit:["_buffers"]}),mi("ProgramConfigurationSet",to);var io,no=8192,oo=(io=15,{min:-1*Math.pow(2,io-1),max:Math.pow(2,io-1)-1});function ao(t){for(var e=no/t.extent,r=t.loadGeometry(),i=0;i&lt;r.length;i++)for(var n=r[i],o=0;o&lt;n.length;o++){var a=n[o];a.x=Math.round(a.x*e),a.y=Math.round(a.y*e),(a.x&lt;oo.min||a.x&gt;oo.max||a.y&lt;oo.min||a.y&gt;oo.max)&amp;&amp;(w("Geometry exceeds allowed extent, reduce your vector tile buffer size"),a.x=u(a.x,oo.min,oo.max),a.y=u(a.y,oo.min,oo.max))}return r}function so(t,e,r,i,n){t.emplaceBack(2*e+(i+1)/2,2*r+(n+1)/2)}var lo=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=t.index,this.hasPattern=!1,this.layoutVertexArray=new Qi,this.indexArray=new yn,this.segments=new Ln,this.programConfigurations=new to(Dn,t.layers,t.zoom),this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id}))};function uo(t,e){for(var r=0;r&lt;t.length;r++)if(_o(e,t[r]))return!0;for(var i=0;i&lt;e.length;i++)if(_o(t,e[i]))return!0;return!!fo(t,e)}function co(t,e,r){return!!_o(t,e)||!!yo(e,t,r)}function po(t,e){if(1===t.length)return vo(e,t[0]);for(var r=0;r&lt;e.length;r++)for(var i=e[r],n=0;n&lt;i.length;n++)if(_o(t,i[n]))return!0;for(var o=0;o&lt;t.length;o++)if(vo(e,t[o]))return!0;for(var a=0;a&lt;e.length;a++)if(fo(t,e[a]))return!0;return!1}function ho(t,e,r){if(t.length&gt;1){if(fo(t,e))return!0;for(var i=0;i&lt;e.length;i++)if(yo(e[i],t,r))return!0}for(var n=0;n&lt;t.length;n++)if(yo(t[n],e,r))return!0;return!1}function fo(t,e){if(0===t.length||0===e.length)return!1;for(var r=0;r&lt;t.length-1;r++)for(var i=t[r],n=t[r+1],o=0;o&lt;e.length-1;o++)if(mo(i,n,e[o],e[o+1]))return!0;return!1}function mo(t,e,r,i){return S(t,r,i)!==S(e,r,i)&amp;&amp;S(t,e,r)!==S(t,e,i)}function yo(t,e,r){var i=r*r;if(1===e.length)return t.distSqr(e[0])&lt;i;for(var n=1;n&lt;e.length;n++)if(go(t,e[n-1],e[n])&lt;i)return!0;return!1}function go(t,e,r){var i=e.distSqr(r);if(0===i)return t.distSqr(e);var n=((t.x-e.x)*(r.x-e.x)+(t.y-e.y)*(r.y-e.y))/i;return n&lt;0?t.distSqr(e):n&gt;1?t.distSqr(r):t.distSqr(r.sub(e)._mult(n)._add(e))}function vo(t,e){for(var r,i,n,o=!1,a=0;a&lt;t.length;a++)for(var s=0,l=(r=t[a]).length-1;s&lt;r.length;l=s++)i=r[s],n=r[l],i.y&gt;e.y!=n.y&gt;e.y&amp;&amp;e.x&lt;(n.x-i.x)*(e.y-i.y)/(n.y-i.y)+i.x&amp;&amp;(o=!o);return o}function _o(t,e){for(var r=!1,i=0,n=t.length-1;i&lt;t.length;n=i++){var o=t[i],a=t[n];o.y&gt;e.y!=a.y&gt;e.y&amp;&amp;e.x&lt;(a.x-o.x)*(e.y-o.y)/(a.y-o.y)+o.x&amp;&amp;(r=!r)}return r}function xo(t,e,r){var i=r[0],n=r[2];if(t.x&lt;i.x&amp;&amp;e.x&lt;i.x||t.x&gt;n.x&amp;&amp;e.x&gt;n.x||t.y&lt;i.y&amp;&amp;e.y&lt;i.y||t.y&gt;n.y&amp;&amp;e.y&gt;n.y)return!1;var o=S(t,e,r[0]);return o!==S(t,e,r[1])||o!==S(t,e,r[2])||o!==S(t,e,r[3])}function bo(t,e,r){var i=e.paint.get(t).value;return"constant"===i.kind?i.value:r.programConfigurations.get(e.id).binders[t].maxValue}function wo(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function So(t,e,r,i,o){if(!e[0]&amp;&amp;!e[1])return t;var a=n.convert(e)._mult(o);"viewport"===r&amp;&amp;a._rotate(-i);for(var s=[],l=0;l&lt;t.length;l++){var u=t[l];s.push(u.sub(a))}return s}lo.prototype.populate=function(t,e){var r=this.layers[0],i=[],n=null;"circle"===r.type&amp;&amp;(n=r.layout.get("circle-sort-key"));for(var o=0,a=t;o&lt;a.length;o+=1){var s=a[o],l=s.feature,u=s.index,c=s.sourceLayerIndex;if(this.layers[0]._featureFilter(new zi(this.zoom),l)){var p=ao(l),h=n?n.evaluate(l,{}):void 0,d={id:l.id,properties:l.properties,type:l.type,sourceLayerIndex:c,index:u,geometry:p,patterns:{},sortKey:h};i.push(d)}}n&amp;&amp;i.sort((function(t,e){return t.sortKey-e.sortKey}));for(var f=0,m=i;f&lt;m.length;f+=1){var y=m[f],g=y,v=g.geometry,_=g.index,x=g.sourceLayerIndex,b=t[_].feature;this.addFeature(y,v,_),e.featureIndex.insert(b,v,_,x,this.index)}},lo.prototype.update=function(t,e,r){this.stateDependentLayers.length&amp;&amp;this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,r)},lo.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},lo.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},lo.prototype.upload=function(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,Dn),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0},lo.prototype.destroy=function(){this.layoutVertexBuffer&amp;&amp;(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())},lo.prototype.addFeature=function(t,e,r){for(var i=0,n=e;i&lt;n.length;i+=1)for(var o=0,a=n[i];o&lt;a.length;o+=1){var s=a[o],l=s.x,u=s.y;if(!(l&lt;0||l&gt;=no||u&lt;0||u&gt;=no)){var c=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,t.sortKey),p=c.vertexLength;so(this.layoutVertexArray,l,u,-1,-1),so(this.layoutVertexArray,l,u,1,-1),so(this.layoutVertexArray,l,u,1,1),so(this.layoutVertexArray,l,u,-1,1),this.indexArray.emplaceBack(p,p+1,p+2),this.indexArray.emplaceBack(p,p+3,p+2),c.vertexLength+=4,c.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,r,{})},mi("CircleBucket",lo,{omit:["layers"]});var Eo,ko=new Hi({"circle-sort-key":new Vi(Tt.layout_circle["circle-sort-key"])}),To={paint:new Hi({"circle-radius":new Vi(Tt.paint_circle["circle-radius"]),"circle-color":new Vi(Tt.paint_circle["circle-color"]),"circle-blur":new Vi(Tt.paint_circle["circle-blur"]),"circle-opacity":new Vi(Tt.paint_circle["circle-opacity"]),"circle-translate":new Ni(Tt.paint_circle["circle-translate"]),"circle-translate-anchor":new Ni(Tt.paint_circle["circle-translate-anchor"]),"circle-pitch-scale":new Ni(Tt.paint_circle["circle-pitch-scale"]),"circle-pitch-alignment":new Ni(Tt.paint_circle["circle-pitch-alignment"]),"circle-stroke-width":new Vi(Tt.paint_circle["circle-stroke-width"]),"circle-stroke-color":new Vi(Tt.paint_circle["circle-stroke-color"]),"circle-stroke-opacity":new Vi(Tt.paint_circle["circle-stroke-opacity"])}),layout:ko},Ao="undefined"!=typeof Float32Array?Float32Array:Array;function Co(t,e,r){var i=e[0],n=e[1],o=e[2],a=e[3];return t[0]=r[0]*i+r[4]*n+r[8]*o+r[12]*a,t[1]=r[1]*i+r[5]*n+r[9]*o+r[13]*a,t[2]=r[2]*i+r[6]*n+r[10]*o+r[14]*a,t[3]=r[3]*i+r[7]*n+r[11]*o+r[15]*a,t}Math.PI,Eo=new Ao(3),Ao!=Float32Array&amp;&amp;(Eo[0]=0,Eo[1]=0,Eo[2]=0),function(){var t=new Ao(4);Ao!=Float32Array&amp;&amp;(t[0]=0,t[1]=0,t[2]=0,t[3]=0)}();var Io=function(t){function e(e){t.call(this,e,To)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.createBucket=function(t){return new lo(t)},e.prototype.queryRadius=function(t){var e=t;return bo("circle-radius",this,e)+bo("circle-stroke-width",this,e)+wo(this.paint.get("circle-translate"))},e.prototype.queryIntersectsFeature=function(t,e,r,i,n,o,a,s){for(var l=So(t,this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),o.angle,a),u=this.paint.get("circle-radius").evaluate(e,r)+this.paint.get("circle-stroke-width").evaluate(e,r),c="map"===this.paint.get("circle-pitch-alignment"),p=c?l:function(t,e){return t.map((function(t){return Po(t,e)}))}(l,s),h=c?u*a:u,d=0,f=i;d&lt;f.length;d+=1)for(var m=0,y=f[d];m&lt;y.length;m+=1){var g=y[m],v=c?g:Po(g,s),_=h,x=Co([],[g.x,g.y,0,1],s);if("viewport"===this.paint.get("circle-pitch-scale")&amp;&amp;"map"===this.paint.get("circle-pitch-alignment")?_*=x[3]/o.cameraToCenterDistance:"map"===this.paint.get("circle-pitch-scale")&amp;&amp;"viewport"===this.paint.get("circle-pitch-alignment")&amp;&amp;(_*=o.cameraToCenterDistance/x[3]),co(p,v,_))return!0}return!1},e}(Zi);function Po(t,e){var r=Co([],[t.x,t.y,0,1],e);return new n(r[0]/r[3],r[1]/r[3])}var Mo=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e}(lo);function zo(t,e,r,i){var n=e.width,o=e.height;if(i){if(i instanceof Uint8ClampedArray)i=new Uint8Array(i.buffer);else if(i.length!==n*o*r)throw new RangeError("mismatched image size")}else i=new Uint8Array(n*o*r);return t.width=n,t.height=o,t.data=i,t}function Do(t,e,r){var i=e.width,n=e.height;if(i!==t.width||n!==t.height){var o=zo({},{width:i,height:n},r);Lo(t,o,{x:0,y:0},{x:0,y:0},{width:Math.min(t.width,i),height:Math.min(t.height,n)},r),t.width=i,t.height=n,t.data=o.data}}function Lo(t,e,r,i,n,o){if(0===n.width||0===n.height)return e;if(n.width&gt;t.width||n.height&gt;t.height||r.x&gt;t.width-n.width||r.y&gt;t.height-n.height)throw new RangeError("out of range source coordinates for image copy");if(n.width&gt;e.width||n.height&gt;e.height||i.x&gt;e.width-n.width||i.y&gt;e.height-n.height)throw new RangeError("out of range destination coordinates for image copy");for(var a=t.data,s=e.data,l=0;l&lt;n.height;l++)for(var u=((r.y+l)*t.width+r.x)*o,c=((i.y+l)*e.width+i.x)*o,p=0;p&lt;n.width*o;p++)s[c+p]=a[u+p];return e}mi("HeatmapBucket",Mo,{omit:["layers"]});var Ro=function(t,e){zo(this,t,1,e)};Ro.prototype.resize=function(t){Do(this,t,1)},Ro.prototype.clone=function(){return new Ro({width:this.width,height:this.height},new Uint8Array(this.data))},Ro.copy=function(t,e,r,i,n){Lo(t,e,r,i,n,1)};var Oo=function(t,e){zo(this,t,4,e)};Oo.prototype.resize=function(t){Do(this,t,4)},Oo.prototype.replace=function(t,e){e?this.data.set(t):t instanceof Uint8ClampedArray?this.data=new Uint8Array(t.buffer):this.data=t},Oo.prototype.clone=function(){return new Oo({width:this.width,height:this.height},new Uint8Array(this.data))},Oo.copy=function(t,e,r,i,n){Lo(t,e,r,i,n,4)},mi("AlphaImage",Ro),mi("RGBAImage",Oo);var Bo={paint:new Hi({"heatmap-radius":new Vi(Tt.paint_heatmap["heatmap-radius"]),"heatmap-weight":new Vi(Tt.paint_heatmap["heatmap-weight"]),"heatmap-intensity":new Ni(Tt.paint_heatmap["heatmap-intensity"]),"heatmap-color":new Gi(Tt.paint_heatmap["heatmap-color"]),"heatmap-opacity":new Ni(Tt.paint_heatmap["heatmap-opacity"])})};function Fo(t,e){for(var r=new Uint8Array(1024),i={},n=0,o=0;n&lt;256;n++,o+=4){i[e]=n/255;var a=t.evaluate(i);r[o+0]=Math.floor(255*a.r/a.a),r[o+1]=Math.floor(255*a.g/a.a),r[o+2]=Math.floor(255*a.b/a.a),r[o+3]=Math.floor(255*a.a)}return new Oo({width:256,height:1},r)}var jo=function(t){function e(e){t.call(this,e,Bo),this._updateColorRamp()}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.createBucket=function(t){return new Mo(t)},e.prototype._handleSpecialPaintPropertyUpdate=function(t){"heatmap-color"===t&amp;&amp;this._updateColorRamp()},e.prototype._updateColorRamp=function(){var t=this._transitionablePaint._values["heatmap-color"].value.expression;this.colorRamp=Fo(t,"heatmapDensity"),this.colorRampTexture=null},e.prototype.resize=function(){this.heatmapFbo&amp;&amp;(this.heatmapFbo.destroy(),this.heatmapFbo=null)},e.prototype.queryRadius=function(){return 0},e.prototype.queryIntersectsFeature=function(){return!1},e.prototype.hasOffscreenPass=function(){return 0!==this.paint.get("heatmap-opacity")&amp;&amp;"none"!==this.visibility},e}(Zi),Uo={paint:new Hi({"hillshade-illumination-direction":new Ni(Tt.paint_hillshade["hillshade-illumination-direction"]),"hillshade-illumination-anchor":new Ni(Tt.paint_hillshade["hillshade-illumination-anchor"]),"hillshade-exaggeration":new Ni(Tt.paint_hillshade["hillshade-exaggeration"]),"hillshade-shadow-color":new Ni(Tt.paint_hillshade["hillshade-shadow-color"]),"hillshade-highlight-color":new Ni(Tt.paint_hillshade["hillshade-highlight-color"]),"hillshade-accent-color":new Ni(Tt.paint_hillshade["hillshade-accent-color"])})},No=function(t){function e(e){t.call(this,e,Uo)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.hasOffscreenPass=function(){return 0!==this.paint.get("hillshade-exaggeration")&amp;&amp;"none"!==this.visibility},e}(Zi),Vo=Ki([{name:"a_pos",components:2,type:"Int16"}],4).members,qo=Go,Wo=Go;function Go(t,e,r){r=r||2;var i,n,o,a,s,l,u,c=e&amp;&amp;e.length,p=c?e[0]*r:t.length,h=Ho(t,0,p,r,!0),d=[];if(!h||h.next===h.prev)return d;if(c&amp;&amp;(h=function(t,e,r,i){var n,o,a,s=[];for(n=0,o=e.length;n&lt;o;n++)(a=Ho(t,e[n]*i,n&lt;o-1?e[n+1]*i:t.length,i,!1))===a.next&amp;&amp;(a.steiner=!0),s.push(ra(a));for(s.sort(Qo),n=0;n&lt;s.length;n++)ta(s[n],r),r=Zo(r,r.next);return r}(t,e,h,r)),t.length&gt;80*r){i=o=t[0],n=a=t[1];for(var f=r;f&lt;p;f+=r)(s=t[f])&lt;i&amp;&amp;(i=s),(l=t[f+1])&lt;n&amp;&amp;(n=l),s&gt;o&amp;&amp;(o=s),l&gt;a&amp;&amp;(a=l);u=0!==(u=Math.max(o-i,a-n))?1/u:0}return Xo(h,d,r,i,n,u),d}function Ho(t,e,r,i,n){var o,a;if(n===da(t,e,r,i)&gt;0)for(o=e;o&lt;r;o+=i)a=ca(o,t[o],t[o+1],a);else for(o=r-i;o&gt;=e;o-=i)a=ca(o,t[o],t[o+1],a);return a&amp;&amp;aa(a,a.next)&amp;&amp;(pa(a),a=a.next),a}function Zo(t,e){if(!t)return t;e||(e=t);var r,i=t;do{if(r=!1,i.steiner||!aa(i,i.next)&amp;&amp;0!==oa(i.prev,i,i.next))i=i.next;else{if(pa(i),(i=e=i.prev)===i.next)break;r=!0}}while(r||i!==e);return e}function Xo(t,e,r,i,n,o,a){if(t){!a&amp;&amp;o&amp;&amp;function(t,e,r,i){var n=t;do{null===n.z&amp;&amp;(n.z=ea(n.x,n.y,e,r,i)),n.prevZ=n.prev,n.nextZ=n.next,n=n.next}while(n!==t);n.prevZ.nextZ=null,n.prevZ=null,function(t){var e,r,i,n,o,a,s,l,u=1;do{for(r=t,t=null,o=null,a=0;r;){for(a++,i=r,s=0,e=0;e&lt;u&amp;&amp;(s++,i=i.nextZ);e++);for(l=u;s&gt;0||l&gt;0&amp;&amp;i;)0!==s&amp;&amp;(0===l||!i||r.z&lt;=i.z)?(n=r,r=r.nextZ,s--):(n=i,i=i.nextZ,l--),o?o.nextZ=n:t=n,n.prevZ=o,o=n;r=i}o.nextZ=null,u*=2}while(a&gt;1)}(n)}(t,i,n,o);for(var s,l,u=t;t.prev!==t.next;)if(s=t.prev,l=t.next,o?Yo(t,i,n,o):$o(t))e.push(s.i/r),e.push(t.i/r),e.push(l.i/r),pa(t),t=l.next,u=l.next;else if((t=l)===u){a?1===a?Xo(t=Ko(t,e,r),e,r,i,n,o,2):2===a&amp;&amp;Jo(t,e,r,i,n,o):Xo(Zo(t),e,r,i,n,o,1);break}}}function $o(t){var e=t.prev,r=t,i=t.next;if(oa(e,r,i)&gt;=0)return!1;for(var n=t.next.next;n!==t.prev;){if(ia(e.x,e.y,r.x,r.y,i.x,i.y,n.x,n.y)&amp;&amp;oa(n.prev,n,n.next)&gt;=0)return!1;n=n.next}return!0}function Yo(t,e,r,i){var n=t.prev,o=t,a=t.next;if(oa(n,o,a)&gt;=0)return!1;for(var s=n.x&lt;o.x?n.x&lt;a.x?n.x:a.x:o.x&lt;a.x?o.x:a.x,l=n.y&lt;o.y?n.y&lt;a.y?n.y:a.y:o.y&lt;a.y?o.y:a.y,u=n.x&gt;o.x?n.x&gt;a.x?n.x:a.x:o.x&gt;a.x?o.x:a.x,c=n.y&gt;o.y?n.y&gt;a.y?n.y:a.y:o.y&gt;a.y?o.y:a.y,p=ea(s,l,e,r,i),h=ea(u,c,e,r,i),d=t.prevZ,f=t.nextZ;d&amp;&amp;d.z&gt;=p&amp;&amp;f&amp;&amp;f.z&lt;=h;){if(d!==t.prev&amp;&amp;d!==t.next&amp;&amp;ia(n.x,n.y,o.x,o.y,a.x,a.y,d.x,d.y)&amp;&amp;oa(d.prev,d,d.next)&gt;=0)return!1;if(d=d.prevZ,f!==t.prev&amp;&amp;f!==t.next&amp;&amp;ia(n.x,n.y,o.x,o.y,a.x,a.y,f.x,f.y)&amp;&amp;oa(f.prev,f,f.next)&gt;=0)return!1;f=f.nextZ}for(;d&amp;&amp;d.z&gt;=p;){if(d!==t.prev&amp;&amp;d!==t.next&amp;&amp;ia(n.x,n.y,o.x,o.y,a.x,a.y,d.x,d.y)&amp;&amp;oa(d.prev,d,d.next)&gt;=0)return!1;d=d.prevZ}for(;f&amp;&amp;f.z&lt;=h;){if(f!==t.prev&amp;&amp;f!==t.next&amp;&amp;ia(n.x,n.y,o.x,o.y,a.x,a.y,f.x,f.y)&amp;&amp;oa(f.prev,f,f.next)&gt;=0)return!1;f=f.nextZ}return!0}function Ko(t,e,r){var i=t;do{var n=i.prev,o=i.next.next;!aa(n,o)&amp;&amp;sa(n,i,i.next,o)&amp;&amp;la(n,o)&amp;&amp;la(o,n)&amp;&amp;(e.push(n.i/r),e.push(i.i/r),e.push(o.i/r),pa(i),pa(i.next),i=t=o),i=i.next}while(i!==t);return i}function Jo(t,e,r,i,n,o){var a=t;do{for(var s=a.next.next;s!==a.prev;){if(a.i!==s.i&amp;&amp;na(a,s)){var l=ua(a,s);return a=Zo(a,a.next),l=Zo(l,l.next),Xo(a,e,r,i,n,o),void Xo(l,e,r,i,n,o)}s=s.next}a=a.next}while(a!==t)}function Qo(t,e){return t.x-e.x}function ta(t,e){if(e=function(t,e){var r,i=e,n=t.x,o=t.y,a=-1/0;do{if(o&lt;=i.y&amp;&amp;o&gt;=i.next.y&amp;&amp;i.next.y!==i.y){var s=i.x+(o-i.y)*(i.next.x-i.x)/(i.next.y-i.y);if(s&lt;=n&amp;&amp;s&gt;a){if(a=s,s===n){if(o===i.y)return i;if(o===i.next.y)return i.next}r=i.x&lt;i.next.x?i:i.next}}i=i.next}while(i!==e);if(!r)return null;if(n===a)return r.prev;var l,u=r,c=r.x,p=r.y,h=1/0;for(i=r.next;i!==u;)n&gt;=i.x&amp;&amp;i.x&gt;=c&amp;&amp;n!==i.x&amp;&amp;ia(o&lt;p?n:a,o,c,p,o&lt;p?a:n,o,i.x,i.y)&amp;&amp;((l=Math.abs(o-i.y)/(n-i.x))&lt;h||l===h&amp;&amp;i.x&gt;r.x)&amp;&amp;la(i,t)&amp;&amp;(r=i,h=l),i=i.next;return r}(t,e)){var r=ua(e,t);Zo(r,r.next)}}function ea(t,e,r,i,n){return(t=1431655765&amp;((t=858993459&amp;((t=252645135&amp;((t=16711935&amp;((t=32767*(t-r)*n)|t&lt;&lt;8))|t&lt;&lt;4))|t&lt;&lt;2))|t&lt;&lt;1))|(e=1431655765&amp;((e=858993459&amp;((e=252645135&amp;((e=16711935&amp;((e=32767*(e-i)*n)|e&lt;&lt;8))|e&lt;&lt;4))|e&lt;&lt;2))|e&lt;&lt;1))&lt;&lt;1}function ra(t){var e=t,r=t;do{(e.x&lt;r.x||e.x===r.x&amp;&amp;e.y&lt;r.y)&amp;&amp;(r=e),e=e.next}while(e!==t);return r}function ia(t,e,r,i,n,o,a,s){return(n-a)*(e-s)-(t-a)*(o-s)&gt;=0&amp;&amp;(t-a)*(i-s)-(r-a)*(e-s)&gt;=0&amp;&amp;(r-a)*(o-s)-(n-a)*(i-s)&gt;=0}function na(t,e){return t.next.i!==e.i&amp;&amp;t.prev.i!==e.i&amp;&amp;!function(t,e){var r=t;do{if(r.i!==t.i&amp;&amp;r.next.i!==t.i&amp;&amp;r.i!==e.i&amp;&amp;r.next.i!==e.i&amp;&amp;sa(r,r.next,t,e))return!0;r=r.next}while(r!==t);return!1}(t,e)&amp;&amp;la(t,e)&amp;&amp;la(e,t)&amp;&amp;function(t,e){var r=t,i=!1,n=(t.x+e.x)/2,o=(t.y+e.y)/2;do{r.y&gt;o!=r.next.y&gt;o&amp;&amp;r.next.y!==r.y&amp;&amp;n&lt;(r.next.x-r.x)*(o-r.y)/(r.next.y-r.y)+r.x&amp;&amp;(i=!i),r=r.next}while(r!==t);return i}(t,e)}function oa(t,e,r){return(e.y-t.y)*(r.x-e.x)-(e.x-t.x)*(r.y-e.y)}function aa(t,e){return t.x===e.x&amp;&amp;t.y===e.y}function sa(t,e,r,i){return!!(aa(t,e)&amp;&amp;aa(r,i)||aa(t,i)&amp;&amp;aa(r,e))||oa(t,e,r)&gt;0!=oa(t,e,i)&gt;0&amp;&amp;oa(r,i,t)&gt;0!=oa(r,i,e)&gt;0}function la(t,e){return oa(t.prev,t,t.next)&lt;0?oa(t,e,t.next)&gt;=0&amp;&amp;oa(t,t.prev,e)&gt;=0:oa(t,e,t.prev)&lt;0||oa(t,t.next,e)&lt;0}function ua(t,e){var r=new ha(t.i,t.x,t.y),i=new ha(e.i,e.x,e.y),n=t.next,o=e.prev;return t.next=e,e.prev=t,r.next=n,n.prev=r,i.next=r,r.prev=i,o.next=i,i.prev=o,i}function ca(t,e,r,i){var n=new ha(t,e,r);return i?(n.next=i.next,n.prev=i,i.next.prev=n,i.next=n):(n.prev=n,n.next=n),n}function pa(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&amp;&amp;(t.prevZ.nextZ=t.nextZ),t.nextZ&amp;&amp;(t.nextZ.prevZ=t.prevZ)}function ha(t,e,r){this.i=t,this.x=e,this.y=r,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function da(t,e,r,i){for(var n=0,o=e,a=r-i;o&lt;r;o+=i)n+=(t[a]-t[o])*(t[o+1]+t[a+1]),a=o;return n}function fa(t,e,r,i,n){!function t(e,r,i,n,o){for(;n&gt;i;){if(n-i&gt;600){var a=n-i+1,s=r-i+1,l=Math.log(a),u=.5*Math.exp(2*l/3),c=.5*Math.sqrt(l*u*(a-u)/a)*(s-a/2&lt;0?-1:1);t(e,r,Math.max(i,Math.floor(r-s*u/a+c)),Math.min(n,Math.floor(r+(a-s)*u/a+c)),o)}var p=e[r],h=i,d=n;for(ma(e,i,r),o(e[n],p)&gt;0&amp;&amp;ma(e,i,n);h&lt;d;){for(ma(e,h,d),h++,d--;o(e[h],p)&lt;0;)h++;for(;o(e[d],p)&gt;0;)d--}0===o(e[i],p)?ma(e,i,d):ma(e,++d,n),d&lt;=r&amp;&amp;(i=d+1),r&lt;=d&amp;&amp;(n=d-1)}}(t,e,r||0,i||t.length-1,n||ya)}function ma(t,e,r){var i=t[e];t[e]=t[r],t[r]=i}function ya(t,e){return t&lt;e?-1:t&gt;e?1:0}function ga(t,e){var r=t.length;if(r&lt;=1)return[t];for(var i,n,o=[],a=0;a&lt;r;a++){var s=E(t[a]);0!==s&amp;&amp;(t[a].area=Math.abs(s),void 0===n&amp;&amp;(n=s&lt;0),n===s&lt;0?(i&amp;&amp;o.push(i),i=[t[a]]):i.push(t[a]))}if(i&amp;&amp;o.push(i),e&gt;1)for(var l=0;l&lt;o.length;l++)o[l].length&lt;=e||(fa(o[l],e,1,o[l].length-1,va),o[l]=o[l].slice(0,e));return o}function va(t,e){return e.area-t.area}function _a(t,e,r){for(var i=r.patternDependencies,n=!1,o=0,a=e;o&lt;a.length;o+=1){var s=a[o].paint.get(t+"-pattern");s.isConstant()||(n=!0);var l=s.constantOr(null);l&amp;&amp;(n=!0,i[l.to]=!0,i[l.from]=!0)}return n}function xa(t,e,r,i,n){for(var o=n.patternDependencies,a=0,s=e;a&lt;s.length;a+=1){var l=s[a],u=l.paint.get(t+"-pattern").value;if("constant"!==u.kind){var c=u.evaluate({zoom:i-1},r,{}),p=u.evaluate({zoom:i},r,{}),h=u.evaluate({zoom:i+1},r,{});o[c]=!0,o[p]=!0,o[h]=!0,r.patterns[l.id]={min:c,mid:p,max:h}}}return r}Go.deviation=function(t,e,r,i){var n=e&amp;&amp;e.length,o=n?e[0]*r:t.length,a=Math.abs(da(t,0,o,r));if(n)for(var s=0,l=e.length;s&lt;l;s++){var u=e[s]*r,c=s&lt;l-1?e[s+1]*r:t.length;a-=Math.abs(da(t,u,c,r))}var p=0;for(s=0;s&lt;i.length;s+=3){var h=i[s]*r,d=i[s+1]*r,f=i[s+2]*r;p+=Math.abs((t[h]-t[f])*(t[d+1]-t[h+1])-(t[h]-t[d])*(t[f+1]-t[h+1]))}return 0===a&amp;&amp;0===p?0:Math.abs((p-a)/a)},Go.flatten=function(t){for(var e=t[0][0].length,r={vertices:[],holes:[],dimensions:e},i=0,n=0;n&lt;t.length;n++){for(var o=0;o&lt;t[n].length;o++)for(var a=0;a&lt;e;a++)r.vertices.push(t[n][o][a]);n&gt;0&amp;&amp;(i+=t[n-1].length,r.holes.push(i))}return r},qo.default=Wo;var ba=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=t.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new Qi,this.indexArray=new yn,this.indexArray2=new gn,this.programConfigurations=new to(Vo,t.layers,t.zoom),this.segments=new Ln,this.segments2=new Ln,this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id}))};ba.prototype.populate=function(t,e){this.hasPattern=_a("fill",this.layers,e);for(var r=this.layers[0].layout.get("fill-sort-key"),i=[],n=0,o=t;n&lt;o.length;n+=1){var a=o[n],s=a.feature,l=a.index,u=a.sourceLayerIndex;if(this.layers[0]._featureFilter(new zi(this.zoom),s)){var c=ao(s),p=r?r.evaluate(s,{}):void 0,h={id:s.id,properties:s.properties,type:s.type,sourceLayerIndex:u,index:l,geometry:c,patterns:{},sortKey:p};i.push(h)}}r&amp;&amp;i.sort((function(t,e){return t.sortKey-e.sortKey}));for(var d=0,f=i;d&lt;f.length;d+=1){var m=f[d],y=m,g=y.geometry,v=y.index,_=y.sourceLayerIndex;if(this.hasPattern){var x=xa("fill",this.layers,m,this.zoom,e);this.patternFeatures.push(x)}else this.addFeature(m,g,v,{});var b=t[v].feature;e.featureIndex.insert(b,g,v,_,this.index)}},ba.prototype.update=function(t,e,r){this.stateDependentLayers.length&amp;&amp;this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,r)},ba.prototype.addFeatures=function(t,e){for(var r=0,i=this.patternFeatures;r&lt;i.length;r+=1){var n=i[r];this.addFeature(n,n.geometry,n.index,e)}},ba.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},ba.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},ba.prototype.upload=function(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,Vo),this.indexBuffer=t.createIndexBuffer(this.indexArray),this.indexBuffer2=t.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(t),this.uploaded=!0},ba.prototype.destroy=function(){this.layoutVertexBuffer&amp;&amp;(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())},ba.prototype.addFeature=function(t,e,r,i){for(var n=0,o=ga(e,500);n&lt;o.length;n+=1){for(var a=o[n],s=0,l=0,u=a;l&lt;u.length;l+=1)s+=u[l].length;for(var c=this.segments.prepareSegment(s,this.layoutVertexArray,this.indexArray),p=c.vertexLength,h=[],d=[],f=0,m=a;f&lt;m.length;f+=1){var y=m[f];if(0!==y.length){y!==a[0]&amp;&amp;d.push(h.length/2);var g=this.segments2.prepareSegment(y.length,this.layoutVertexArray,this.indexArray2),v=g.vertexLength;this.layoutVertexArray.emplaceBack(y[0].x,y[0].y),this.indexArray2.emplaceBack(v+y.length-1,v),h.push(y[0].x),h.push(y[0].y);for(var _=1;_&lt;y.length;_++)this.layoutVertexArray.emplaceBack(y[_].x,y[_].y),this.indexArray2.emplaceBack(v+_-1,v+_),h.push(y[_].x),h.push(y[_].y);g.vertexLength+=y.length,g.primitiveLength+=y.length}}for(var x=qo(h,d),b=0;b&lt;x.length;b+=3)this.indexArray.emplaceBack(p+x[b],p+x[b+1],p+x[b+2]);c.vertexLength+=s,c.primitiveLength+=x.length/3}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,r,i)},mi("FillBucket",ba,{omit:["layers","patternFeatures"]});var wa=new Hi({"fill-sort-key":new Vi(Tt.layout_fill["fill-sort-key"])}),Sa={paint:new Hi({"fill-antialias":new Ni(Tt.paint_fill["fill-antialias"]),"fill-opacity":new Vi(Tt.paint_fill["fill-opacity"]),"fill-color":new Vi(Tt.paint_fill["fill-color"]),"fill-outline-color":new Vi(Tt.paint_fill["fill-outline-color"]),"fill-translate":new Ni(Tt.paint_fill["fill-translate"]),"fill-translate-anchor":new Ni(Tt.paint_fill["fill-translate-anchor"]),"fill-pattern":new qi(Tt.paint_fill["fill-pattern"])}),layout:wa},Ea=function(t){function e(e){t.call(this,e,Sa)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.recalculate=function(e){t.prototype.recalculate.call(this,e);var r=this.paint._values["fill-outline-color"];"constant"===r.value.kind&amp;&amp;void 0===r.value.value&amp;&amp;(this.paint._values["fill-outline-color"]=this.paint._values["fill-color"])},e.prototype.createBucket=function(t){return new ba(t)},e.prototype.queryRadius=function(){return wo(this.paint.get("fill-translate"))},e.prototype.queryIntersectsFeature=function(t,e,r,i,n,o,a){return po(So(t,this.paint.get("fill-translate"),this.paint.get("fill-translate-anchor"),o.angle,a),i)},e.prototype.isTileClipped=function(){return!0},e}(Zi),ka=Ki([{name:"a_pos",components:2,type:"Int16"},{name:"a_normal_ed",components:4,type:"Int16"}],4).members,Ta=Aa;function Aa(t,e,r,i,n){this.properties={},this.extent=r,this.type=0,this._pbf=t,this._geometry=-1,this._keys=i,this._values=n,t.readFields(Ca,this,e)}function Ca(t,e,r){1==t?e.id=r.readVarint():2==t?function(t,e){for(var r=t.readVarint()+t.pos;t.pos&lt;r;){var i=e._keys[t.readVarint()],n=e._values[t.readVarint()];e.properties[i]=n}}(r,e):3==t?e.type=r.readVarint():4==t&amp;&amp;(e._geometry=r.pos)}function Ia(t){for(var e,r,i=0,n=0,o=t.length,a=o-1;n&lt;o;a=n++)e=t[n],i+=((r=t[a]).x-e.x)*(e.y+r.y);return i}Aa.types=["Unknown","Point","LineString","Polygon"],Aa.prototype.loadGeometry=function(){var t=this._pbf;t.pos=this._geometry;for(var e,r=t.readVarint()+t.pos,i=1,o=0,a=0,s=0,l=[];t.pos&lt;r;){if(o&lt;=0){var u=t.readVarint();i=7&amp;u,o=u&gt;&gt;3}if(o--,1===i||2===i)a+=t.readSVarint(),s+=t.readSVarint(),1===i&amp;&amp;(e&amp;&amp;l.push(e),e=[]),e.push(new n(a,s));else{if(7!==i)throw new Error("unknown command "+i);e&amp;&amp;e.push(e[0].clone())}}return e&amp;&amp;l.push(e),l},Aa.prototype.bbox=function(){var t=this._pbf;t.pos=this._geometry;for(var e=t.readVarint()+t.pos,r=1,i=0,n=0,o=0,a=1/0,s=-1/0,l=1/0,u=-1/0;t.pos&lt;e;){if(i&lt;=0){var c=t.readVarint();r=7&amp;c,i=c&gt;&gt;3}if(i--,1===r||2===r)(n+=t.readSVarint())&lt;a&amp;&amp;(a=n),n&gt;s&amp;&amp;(s=n),(o+=t.readSVarint())&lt;l&amp;&amp;(l=o),o&gt;u&amp;&amp;(u=o);else if(7!==r)throw new Error("unknown command "+r)}return[a,l,s,u]},Aa.prototype.toGeoJSON=function(t,e,r){var i,n,o=this.extent*Math.pow(2,r),a=this.extent*t,s=this.extent*e,l=this.loadGeometry(),u=Aa.types[this.type];function c(t){for(var e=0;e&lt;t.length;e++){var r=t[e],i=180-360*(r.y+s)/o;t[e]=[360*(r.x+a)/o-180,360/Math.PI*Math.atan(Math.exp(i*Math.PI/180))-90]}}switch(this.type){case 1:var p=[];for(i=0;i&lt;l.length;i++)p[i]=l[i][0];c(l=p);break;case 2:for(i=0;i&lt;l.length;i++)c(l[i]);break;case 3:for(l=function(t){var e=t.length;if(e&lt;=1)return[t];for(var r,i,n=[],o=0;o&lt;e;o++){var a=Ia(t[o]);0!==a&amp;&amp;(void 0===i&amp;&amp;(i=a&lt;0),i===a&lt;0?(r&amp;&amp;n.push(r),r=[t[o]]):r.push(t[o]))}return r&amp;&amp;n.push(r),n}(l),i=0;i&lt;l.length;i++)for(n=0;n&lt;l[i].length;n++)c(l[i][n])}1===l.length?l=l[0]:u="Multi"+u;var h={type:"Feature",geometry:{type:u,coordinates:l},properties:this.properties};return"id"in this&amp;&amp;(h.id=this.id),h};var Pa=Ma;function Ma(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(za,this,e),this.length=this._features.length}function za(t,e,r){15===t?e.version=r.readVarint():1===t?e.name=r.readString():5===t?e.extent=r.readVarint():2===t?e._features.push(r.pos):3===t?e._keys.push(r.readString()):4===t&amp;&amp;e._values.push(function(t){for(var e=null,r=t.readVarint()+t.pos;t.pos&lt;r;){var i=t.readVarint()&gt;&gt;3;e=1===i?t.readString():2===i?t.readFloat():3===i?t.readDouble():4===i?t.readVarint64():5===i?t.readVarint():6===i?t.readSVarint():7===i?t.readBoolean():null}return e}(r))}function Da(t,e,r){if(3===t){var i=new Pa(r,r.readVarint()+r.pos);i.length&amp;&amp;(e[i.name]=i)}}Ma.prototype.feature=function(t){if(t&lt;0||t&gt;=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 Ta(this._pbf,e,this.extent,this._keys,this._values)};var La={VectorTile:function(t,e){this.layers=t.readFields(Da,{},e)},VectorTileFeature:Ta,VectorTileLayer:Pa},Ra=La.VectorTileFeature.types,Oa=Math.pow(2,13);function Ba(t,e,r,i,n,o,a,s){t.emplaceBack(e,r,2*Math.floor(i*Oa)+a,n*Oa*2,o*Oa*2,Math.round(s))}var Fa=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=t.index,this.hasPattern=!1,this.layoutVertexArray=new en,this.indexArray=new yn,this.programConfigurations=new to(ka,t.layers,t.zoom),this.segments=new Ln,this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id}))};function ja(t,e){return t.x===e.x&amp;&amp;(t.x&lt;0||t.x&gt;no)||t.y===e.y&amp;&amp;(t.y&lt;0||t.y&gt;no)}function Ua(t){return t.every((function(t){return t.x&lt;0}))||t.every((function(t){return t.x&gt;no}))||t.every((function(t){return t.y&lt;0}))||t.every((function(t){return t.y&gt;no}))}Fa.prototype.populate=function(t,e){this.features=[],this.hasPattern=_a("fill-extrusion",this.layers,e);for(var r=0,i=t;r&lt;i.length;r+=1){var n=i[r],o=n.feature,a=n.index,s=n.sourceLayerIndex;if(this.layers[0]._featureFilter(new zi(this.zoom),o)){var l=ao(o),u={sourceLayerIndex:s,index:a,geometry:l,properties:o.properties,type:o.type,patterns:{}};void 0!==o.id&amp;&amp;(u.id=o.id),this.hasPattern?this.features.push(xa("fill-extrusion",this.layers,u,this.zoom,e)):this.addFeature(u,l,a,{}),e.featureIndex.insert(o,l,a,s,this.index,!0)}}},Fa.prototype.addFeatures=function(t,e){for(var r=0,i=this.features;r&lt;i.length;r+=1){var n=i[r],o=n.geometry;this.addFeature(n,o,n.index,e)}},Fa.prototype.update=function(t,e,r){this.stateDependentLayers.length&amp;&amp;this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,r)},Fa.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},Fa.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},Fa.prototype.upload=function(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,ka),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0},Fa.prototype.destroy=function(){this.layoutVertexBuffer&amp;&amp;(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())},Fa.prototype.addFeature=function(t,e,r,i){for(var n=0,o=ga(e,500);n&lt;o.length;n+=1){for(var a=o[n],s=0,l=0,u=a;l&lt;u.length;l+=1)s+=u[l].length;for(var c=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray),p=0,h=a;p&lt;h.length;p+=1){var d=h[p];if(0!==d.length&amp;&amp;!Ua(d))for(var f=0,m=0;m&lt;d.length;m++){var y=d[m];if(m&gt;=1){var g=d[m-1];if(!ja(y,g)){c.vertexLength+4&gt;Ln.MAX_VERTEX_ARRAY_LENGTH&amp;&amp;(c=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var v=y.sub(g)._perp()._unit(),_=g.dist(y);f+_&gt;32768&amp;&amp;(f=0),Ba(this.layoutVertexArray,y.x,y.y,v.x,v.y,0,0,f),Ba(this.layoutVertexArray,y.x,y.y,v.x,v.y,0,1,f),f+=_,Ba(this.layoutVertexArray,g.x,g.y,v.x,v.y,0,0,f),Ba(this.layoutVertexArray,g.x,g.y,v.x,v.y,0,1,f);var x=c.vertexLength;this.indexArray.emplaceBack(x,x+2,x+1),this.indexArray.emplaceBack(x+1,x+2,x+3),c.vertexLength+=4,c.primitiveLength+=2}}}}if(c.vertexLength+s&gt;Ln.MAX_VERTEX_ARRAY_LENGTH&amp;&amp;(c=this.segments.prepareSegment(s,this.layoutVertexArray,this.indexArray)),"Polygon"===Ra[t.type]){for(var b=[],w=[],S=c.vertexLength,E=0,k=a;E&lt;k.length;E+=1){var T=k[E];if(0!==T.length){T!==a[0]&amp;&amp;w.push(b.length/2);for(var A=0;A&lt;T.length;A++){var C=T[A];Ba(this.layoutVertexArray,C.x,C.y,0,0,1,1,0),b.push(C.x),b.push(C.y)}}}for(var I=qo(b,w),P=0;P&lt;I.length;P+=3)this.indexArray.emplaceBack(S+I[P],S+I[P+2],S+I[P+1]);c.primitiveLength+=I.length/3,c.vertexLength+=s}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,r,i)},mi("FillExtrusionBucket",Fa,{omit:["layers","features"]});var Na={paint:new Hi({"fill-extrusion-opacity":new Ni(Tt["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new Vi(Tt["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new Ni(Tt["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new Ni(Tt["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new qi(Tt["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new Vi(Tt["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new Vi(Tt["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new Ni(Tt["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])})},Va=function(t){function e(e){t.call(this,e,Na)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.createBucket=function(t){return new Fa(t)},e.prototype.queryRadius=function(){return wo(this.paint.get("fill-extrusion-translate"))},e.prototype.is3D=function(){return!0},e.prototype.queryIntersectsFeature=function(t,e,r,i,o,a,s,l){var u=So(t,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),a.angle,s),c=this.paint.get("fill-extrusion-height").evaluate(e,r),p=this.paint.get("fill-extrusion-base").evaluate(e,r),h=function(t,e,r,i){for(var o=[],a=0,s=t;a&lt;s.length;a+=1){var l=s[a],u=[l.x,l.y,i,1];Co(u,u,e),o.push(new n(u[0]/u[3],u[1]/u[3]))}return o}(u,l,0,0),d=function(t,e,r,i){for(var o=[],a=[],s=i[8]*e,l=i[9]*e,u=i[10]*e,c=i[11]*e,p=i[8]*r,h=i[9]*r,d=i[10]*r,f=i[11]*r,m=0,y=t;m&lt;y.length;m+=1){for(var g=[],v=[],_=0,x=y[m];_&lt;x.length;_+=1){var b=x[_],w=b.x,S=b.y,E=i[0]*w+i[4]*S+i[12],k=i[1]*w+i[5]*S+i[13],T=i[2]*w+i[6]*S+i[14],A=i[3]*w+i[7]*S+i[15],C=T+u,I=A+c,P=E+p,M=k+h,z=T+d,D=A+f,L=new n((E+s)/I,(k+l)/I);L.z=C/I,g.push(L);var R=new n(P/D,M/D);R.z=z/D,v.push(R)}o.push(g),a.push(v)}return[o,a]}(i,p,c,l);return function(t,e,r){var i=1/0;po(r,e)&amp;&amp;(i=Wa(r,e[0]));for(var n=0;n&lt;e.length;n++)for(var o=e[n],a=t[n],s=0;s&lt;o.length-1;s++){var l=o[s],u=o[s+1],c=a[s],p=[l,u,a[s+1],c,l];uo(r,p)&amp;&amp;(i=Math.min(i,Wa(r,p)))}return i!==1/0&amp;&amp;i}(d[0],d[1],h)},e}(Zi);function qa(t,e){return t.x*e.x+t.y*e.y}function Wa(t,e){if(1===t.length){var r=e[0],i=e[1],n=e[3],o=t[0],a=i.sub(r),s=n.sub(r),l=o.sub(r),u=qa(a,a),c=qa(a,s),p=qa(s,s),h=qa(l,a),d=qa(l,s),f=u*p-c*c,m=(p*h-c*d)/f,y=(u*d-c*h)/f,g=1-m-y;return r.z*g+i.z*m+n.z*y}for(var v=1/0,_=0,x=e;_&lt;x.length;_+=1){var b=x[_];v=Math.min(v,b.z)}return v}var Ga=Ki([{name:"a_pos_normal",components:2,type:"Int16"},{name:"a_data",components:4,type:"Uint8"}],4).members,Ha=La.VectorTileFeature.types,Za=Math.cos(Math.PI/180*37.5),Xa=Math.pow(2,14)/.5,$a=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=t.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new rn,this.indexArray=new yn,this.programConfigurations=new to(Ga,t.layers,t.zoom),this.segments=new Ln,this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id}))};$a.prototype.populate=function(t,e){this.hasPattern=_a("line",this.layers,e);for(var r=this.layers[0].layout.get("line-sort-key"),i=[],n=0,o=t;n&lt;o.length;n+=1){var a=o[n],s=a.feature,l=a.index,u=a.sourceLayerIndex;if(this.layers[0]._featureFilter(new zi(this.zoom),s)){var c=ao(s),p=r?r.evaluate(s,{}):void 0,h={id:s.id,properties:s.properties,type:s.type,sourceLayerIndex:u,index:l,geometry:c,patterns:{},sortKey:p};i.push(h)}}r&amp;&amp;i.sort((function(t,e){return t.sortKey-e.sortKey}));for(var d=0,f=i;d&lt;f.length;d+=1){var m=f[d],y=m,g=y.geometry,v=y.index,_=y.sourceLayerIndex;if(this.hasPattern){var x=xa("line",this.layers,m,this.zoom,e);this.patternFeatures.push(x)}else this.addFeature(m,g,v,{});var b=t[v].feature;e.featureIndex.insert(b,g,v,_,this.index)}},$a.prototype.update=function(t,e,r){this.stateDependentLayers.length&amp;&amp;this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,r)},$a.prototype.addFeatures=function(t,e){for(var r=0,i=this.patternFeatures;r&lt;i.length;r+=1){var n=i[r];this.addFeature(n,n.geometry,n.index,e)}},$a.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},$a.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},$a.prototype.upload=function(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,Ga),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0},$a.prototype.destroy=function(){this.layoutVertexBuffer&amp;&amp;(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())},$a.prototype.addFeature=function(t,e,r,i){for(var n=this.layers[0].layout,o=n.get("line-join").evaluate(t,{}),a=n.get("line-cap"),s=n.get("line-miter-limit"),l=n.get("line-round-limit"),u=0,c=e;u&lt;c.length;u+=1){var p=c[u];this.addLine(p,t,o,a,s,l,r,i)}},$a.prototype.addLine=function(t,e,r,i,n,o,a,s){if(this.distance=0,this.scaledDistance=0,this.totalDistance=0,e.properties&amp;&amp;e.properties.hasOwnProperty("mapbox_clip_start")&amp;&amp;e.properties.hasOwnProperty("mapbox_clip_end")){this.clipStart=+e.properties.mapbox_clip_start,this.clipEnd=+e.properties.mapbox_clip_end;for(var l=0;l&lt;t.length-1;l++)this.totalDistance+=t[l].dist(t[l+1])}for(var u="Polygon"===Ha[e.type],c=t.length;c&gt;=2&amp;&amp;t[c-1].equals(t[c-2]);)c--;for(var p=0;p&lt;c-1&amp;&amp;t[p].equals(t[p+1]);)p++;if(!(c&lt;(u?3:2))){"bevel"===r&amp;&amp;(n=1.05);var h,d=no/(512*this.overscaling)*15,f=this.segments.prepareSegment(10*c,this.layoutVertexArray,this.indexArray),m=void 0,y=void 0,g=void 0,v=void 0;this.e1=this.e2=-1,u&amp;&amp;(h=t[c-2],v=t[p].sub(h)._unit()._perp());for(var _=p;_&lt;c;_++)if(!(y=u&amp;&amp;_===c-1?t[p+1]:t[_+1])||!t[_].equals(y)){v&amp;&amp;(g=v),h&amp;&amp;(m=h),h=t[_],v=y?y.sub(h)._unit()._perp():g;var x=(g=g||v).add(v);0===x.x&amp;&amp;0===x.y||x._unit();var b=g.x*v.x+g.y*v.y,w=x.x*v.x+x.y*v.y,S=0!==w?1/w:1/0,E=2*Math.sqrt(2-2*w),k=w&lt;Za&amp;&amp;m&amp;&amp;y,T=g.x*v.y-g.y*v.x&gt;0;if(k&amp;&amp;_&gt;p){var A=h.dist(m);if(A&gt;2*d){var C=h.sub(h.sub(m)._mult(d/A)._round());this.updateDistance(m,C),this.addCurrentVertex(C,g,0,0,f),m=C}}var I=m&amp;&amp;y,P=I?r:u?"butt":i;if(I&amp;&amp;"round"===P&amp;&amp;(S&lt;o?P="miter":S&lt;=2&amp;&amp;(P="fakeround")),"miter"===P&amp;&amp;S&gt;n&amp;&amp;(P="bevel"),"bevel"===P&amp;&amp;(S&gt;2&amp;&amp;(P="flipbevel"),S&lt;n&amp;&amp;(P="miter")),m&amp;&amp;this.updateDistance(m,h),"miter"===P)x._mult(S),this.addCurrentVertex(h,x,0,0,f);else if("flipbevel"===P){if(S&gt;100)x=v.mult(-1);else{var M=S*g.add(v).mag()/g.sub(v).mag();x._perp()._mult(M*(T?-1:1))}this.addCurrentVertex(h,x,0,0,f),this.addCurrentVertex(h,x.mult(-1),0,0,f)}else if("bevel"===P||"fakeround"===P){var z=-Math.sqrt(S*S-1),D=T?z:0,L=T?0:z;if(m&amp;&amp;this.addCurrentVertex(h,g,D,L,f),"fakeround"===P)for(var R=Math.round(180*E/Math.PI/20),O=1;O&lt;R;O++){var B=O/R;if(.5!==B){var F=B-.5;B+=B*F*(B-1)*((1.0904+b*(b*(3.55645-1.43519*b)-3.2452))*F*F+(.848013+b*(.215638*b-1.06021)))}var j=v.sub(g)._mult(B)._add(g)._unit()._mult(T?-1:1);this.addHalfVertex(h,j.x,j.y,!1,T,0,f)}y&amp;&amp;this.addCurrentVertex(h,v,-D,-L,f)}else if("butt"===P)this.addCurrentVertex(h,x,0,0,f);else if("square"===P){var U=m?1:-1;this.addCurrentVertex(h,x,U,U,f)}else"round"===P&amp;&amp;(m&amp;&amp;(this.addCurrentVertex(h,g,0,0,f),this.addCurrentVertex(h,g,1,1,f,!0)),y&amp;&amp;(this.addCurrentVertex(h,v,-1,-1,f,!0),this.addCurrentVertex(h,v,0,0,f)));if(k&amp;&amp;_&lt;c-1){var N=h.dist(y);if(N&gt;2*d){var V=h.add(y.sub(h)._mult(d/N)._round());this.updateDistance(h,V),this.addCurrentVertex(V,v,0,0,f),h=V}}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,a,s)}},$a.prototype.addCurrentVertex=function(t,e,r,i,n,o){void 0===o&amp;&amp;(o=!1);var a=e.x+e.y*r,s=e.y-e.x*r,l=-e.x+e.y*i,u=-e.y-e.x*i;this.addHalfVertex(t,a,s,o,!1,r,n),this.addHalfVertex(t,l,u,o,!0,-i,n),this.distance&gt;Xa/2&amp;&amp;0===this.totalDistance&amp;&amp;(this.distance=0,this.addCurrentVertex(t,e,r,i,n,o))},$a.prototype.addHalfVertex=function(t,e,r,i,n,o,a){var s=t.x,l=t.y,u=.5*this.scaledDistance;this.layoutVertexArray.emplaceBack((s&lt;&lt;1)+(i?1:0),(l&lt;&lt;1)+(n?1:0),Math.round(63*e)+128,Math.round(63*r)+128,1+(0===o?0:o&lt;0?-1:1)|(63&amp;u)&lt;&lt;2,u&gt;&gt;6);var c=a.vertexLength++;this.e1&gt;=0&amp;&amp;this.e2&gt;=0&amp;&amp;(this.indexArray.emplaceBack(this.e1,this.e2,c),a.primitiveLength++),n?this.e2=c:this.e1=c},$a.prototype.updateDistance=function(t,e){this.distance+=t.dist(e),this.scaledDistance=this.totalDistance&gt;0?(this.clipStart+(this.clipEnd-this.clipStart)*this.distance/this.totalDistance)*(Xa-1):this.distance},mi("LineBucket",$a,{omit:["layers","patternFeatures"]});var Ya=new Hi({"line-cap":new Ni(Tt.layout_line["line-cap"]),"line-join":new Vi(Tt.layout_line["line-join"]),"line-miter-limit":new Ni(Tt.layout_line["line-miter-limit"]),"line-round-limit":new Ni(Tt.layout_line["line-round-limit"]),"line-sort-key":new Vi(Tt.layout_line["line-sort-key"])}),Ka={paint:new Hi({"line-opacity":new Vi(Tt.paint_line["line-opacity"]),"line-color":new Vi(Tt.paint_line["line-color"]),"line-translate":new Ni(Tt.paint_line["line-translate"]),"line-translate-anchor":new Ni(Tt.paint_line["line-translate-anchor"]),"line-width":new Vi(Tt.paint_line["line-width"]),"line-gap-width":new Vi(Tt.paint_line["line-gap-width"]),"line-offset":new Vi(Tt.paint_line["line-offset"]),"line-blur":new Vi(Tt.paint_line["line-blur"]),"line-dasharray":new Wi(Tt.paint_line["line-dasharray"]),"line-pattern":new qi(Tt.paint_line["line-pattern"]),"line-gradient":new Gi(Tt.paint_line["line-gradient"])}),layout:Ya},Ja=new(function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.possiblyEvaluate=function(e,r){return r=new zi(Math.floor(r.zoom),{now:r.now,fadeDuration:r.fadeDuration,zoomHistory:r.zoomHistory,transition:r.transition}),t.prototype.possiblyEvaluate.call(this,e,r)},e.prototype.evaluate=function(e,r,i,n){return r=p({},r,{zoom:Math.floor(r.zoom)}),t.prototype.evaluate.call(this,e,r,i,n)},e}(Vi))(Ka.paint.properties["line-width"].specification);Ja.useIntegerZoom=!0;var Qa=function(t){function e(e){t.call(this,e,Ka)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._handleSpecialPaintPropertyUpdate=function(t){"line-gradient"===t&amp;&amp;this._updateGradient()},e.prototype._updateGradient=function(){var t=this._transitionablePaint._values["line-gradient"].value.expression;this.gradient=Fo(t,"lineProgress"),this.gradientTexture=null},e.prototype.recalculate=function(e){t.prototype.recalculate.call(this,e),this.paint._values["line-floorwidth"]=Ja.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,e)},e.prototype.createBucket=function(t){return new $a(t)},e.prototype.queryRadius=function(t){var e=t,r=ts(bo("line-width",this,e),bo("line-gap-width",this,e)),i=bo("line-offset",this,e);return r/2+Math.abs(i)+wo(this.paint.get("line-translate"))},e.prototype.queryIntersectsFeature=function(t,e,r,i,o,a,s){var l=So(t,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),a.angle,s),u=s/2*ts(this.paint.get("line-width").evaluate(e,r),this.paint.get("line-gap-width").evaluate(e,r)),c=this.paint.get("line-offset").evaluate(e,r);return c&amp;&amp;(i=function(t,e){for(var r=[],i=new n(0,0),o=0;o&lt;t.length;o++){for(var a=t[o],s=[],l=0;l&lt;a.length;l++){var u=a[l-1],c=a[l],p=a[l+1],h=0===l?i:c.sub(u)._unit()._perp(),d=l===a.length-1?i:p.sub(c)._unit()._perp(),f=h._add(d)._unit(),m=f.x*d.x+f.y*d.y;f._mult(1/m),s.push(f._mult(e)._add(c))}r.push(s)}return r}(i,c*s)),function(t,e,r){for(var i=0;i&lt;e.length;i++){var n=e[i];if(t.length&gt;=3)for(var o=0;o&lt;n.length;o++)if(_o(t,n[o]))return!0;if(ho(t,n,r))return!0}return!1}(l,i,u)},e.prototype.isTileClipped=function(){return!0},e}(Zi);function ts(t,e){return e&gt;0?e+2*t:t}var es=Ki([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"}]),rs=Ki([{name:"a_projected_pos",components:3,type:"Float32"}],4),is=(Ki([{name:"a_fade_opacity",components:1,type:"Uint32"}],4),Ki([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"}])),ns=(Ki([{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"}]),Ki([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4)),os=Ki([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4);function as(t,e,r){return t.sections.forEach((function(t){t.text=function(t,e,r){var i=e.layout.get("text-transform").evaluate(r,{});return"uppercase"===i?t=t.toLocaleUpperCase():"lowercase"===i&amp;&amp;(t=t.toLocaleLowerCase()),Mi.applyArabicShaping&amp;&amp;(t=Mi.applyArabicShaping(t)),t}(t.text,e,r)})),t}Ki([{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:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"}]),Ki([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint32",name:"crossTileID"},{type:"Float32",name:"textBoxScale"},{type:"Float32",name:"radialTextOffset"}]),Ki([{type:"Float32",name:"offsetX"}]),Ki([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]);var ss={"!":"︕","#":"＃",$:"＄","%":"％","&amp;":"＆","(":"︵",")":"︶","*":"＊","+":"＋",",":"︐","-":"︲",".":"・","/":"／",":":"︓",";":"︔","&lt;":"︿","=":"＝","&gt;":"﹀","?":"︖","@":"＠","[":"﹇","\\":"＼","]":"﹈","^":"＾",_:"︳","`":"｀","{":"︷","|":"―","}":"︸","~":"～","¢":"￠","£":"￡","¥":"￥","¦":"￤","¬":"￢","¯":"￣","–":"︲","—":"︱","‘":"﹃","’":"﹄","“":"﹁","”":"﹂","…":"︙","‧":"・","₩":"￦","、":"︑","。":"︒","〈":"︿","〉":"﹀","《":"︽","》":"︾","「":"﹁","」":"﹂","『":"﹃","』":"﹄","【":"︻","】":"︼","〔":"︹","〕":"︺","〖":"︗","〗":"︘","！":"︕","（":"︵","）":"︶","，":"︐","－":"︲","．":"・","：":"︓","；":"︔","＜":"︿","＞":"﹀","？":"︖","［":"﹇","］":"﹈","＿":"︳","｛":"︷","｜":"―","｝":"︸","｟":"︵","｠":"︶","｡":"︒","｢":"﹁","｣":"﹂"},ls=24,us={horizontal:1,vertical:2,horizontalOnly:3},cs=function(){this.text="",this.sectionIndex=[],this.sections=[]};function ps(t,e,r,i,n,o,a,s,l,u,c){var p,h=cs.fromFeature(t,r);u===us.vertical&amp;&amp;h.verticalizePunctuation();var d=Mi.processBidirectionalText,f=Mi.processStyledBidirectionalText;if(d&amp;&amp;1===h.sections.length){p=[];for(var m=0,y=d(h.toString(),gs(h,s,i,e));m&lt;y.length;m+=1){var g=y[m],v=new cs;v.text=g,v.sections=h.sections;for(var _=0;_&lt;g.length;_++)v.sectionIndex.push(0);p.push(v)}}else if(f){p=[];for(var x=0,b=f(h.text,h.sectionIndex,gs(h,s,i,e));x&lt;b.length;x+=1){var w=b[x],S=new cs;S.text=w[0],S.sectionIndex=w[1],S.sections=h.sections,p.push(S)}}else p=function(t,e){for(var r=[],i=t.text,n=0,o=0,a=e;o&lt;a.length;o+=1){var s=a[o];r.push(t.substring(n,s)),n=s}return n&lt;i.length&amp;&amp;r.push(t.substring(n,i.length)),r}(h,gs(h,s,i,e));var E=[],k={positionedGlyphs:E,text:h.toString(),top:l[1],bottom:l[1],left:l[0],right:l[0],writingMode:u,lineCount:p.length,yOffset:-17};return function(t,e,r,i,n,o,a,s,l){for(var u=0,c=t.yOffset,p=0,h=t.positionedGlyphs,d="right"===o?1:"left"===o?0:.5,f=0,m=r;f&lt;m.length;f+=1){var y=m[f];y.trim();var g=y.getMaxScale();if(y.length()){for(var v=h.length,_=0;_&lt;y.length();_++){var x=y.getSection(_),b=y.getSectionIndex(_),w=y.getCharCode(_),S=24*(g-x.scale),E=e[x.fontStack],k=E&amp;&amp;E[w];k&amp;&amp;(a===us.horizontal||!l&amp;&amp;!Si(w)||l&amp;&amp;(hs[w]||(A=w,xi.Arabic(A)||xi["Arabic Supplement"](A)||xi["Arabic Extended-A"](A)||xi["Arabic Presentation Forms-A"](A)||xi["Arabic Presentation Forms-B"](A)))?(h.push({glyph:w,x:u,y:c+S,vertical:!1,scale:x.scale,fontStack:x.fontStack,sectionIndex:b}),u+=k.metrics.advance*x.scale+s):(h.push({glyph:w,x:u,y:c+S,vertical:!0,scale:x.scale,fontStack:x.fontStack,sectionIndex:b}),u+=ls*x.scale+s))}if(h.length!==v){var T=u-s;p=Math.max(T,p),_s(h,e,v,h.length-1,d)}u=0,c+=i*g}else c+=i}var A,C=vs(n),I=C.horizontalAlign,P=C.verticalAlign;!function(t,e,r,i,n,o,a){for(var s=(e-r)*n,l=(-i*a+.5)*o,u=0;u&lt;t.length;u++)t[u].x+=s,t[u].y+=l}(h,d,I,P,p,i,r.length);var M=c-t.yOffset;t.top+=-P*M,t.bottom=t.top+M,t.left+=-I*p,t.right=t.left+p}(k,e,p,n,o,a,u,s,c),!!E.length&amp;&amp;k}cs.fromFeature=function(t,e){for(var r=new cs,i=0;i&lt;t.sections.length;i++){var n=t.sections[i];r.sections.push({scale:n.scale||1,fontStack:n.fontStack||e}),r.text+=n.text;for(var o=0;o&lt;n.text.length;o++)r.sectionIndex.push(i)}return r},cs.prototype.length=function(){return this.text.length},cs.prototype.getSection=function(t){return this.sections[this.sectionIndex[t]]},cs.prototype.getSectionIndex=function(t){return this.sectionIndex[t]},cs.prototype.getCharCode=function(t){return this.text.charCodeAt(t)},cs.prototype.verticalizePunctuation=function(){this.text=function(t){for(var e="",r=0;r&lt;t.length;r++){var i=t.charCodeAt(r+1)||null,n=t.charCodeAt(r-1)||null;i&amp;&amp;Ei(i)&amp;&amp;!ss[t[r+1]]||n&amp;&amp;Ei(n)&amp;&amp;!ss[t[r-1]]||!ss[t[r]]?e+=t[r]:e+=ss[t[r]]}return e}(this.text)},cs.prototype.trim=function(){for(var t=0,e=0;e&lt;this.text.length&amp;&amp;hs[this.text.charCodeAt(e)];e++)t++;for(var r=this.text.length,i=this.text.length-1;i&gt;=0&amp;&amp;i&gt;=t&amp;&amp;hs[this.text.charCodeAt(i)];i--)r--;this.text=this.text.substring(t,r),this.sectionIndex=this.sectionIndex.slice(t,r)},cs.prototype.substring=function(t,e){var r=new cs;return r.text=this.text.substring(t,e),r.sectionIndex=this.sectionIndex.slice(t,e),r.sections=this.sections,r},cs.prototype.toString=function(){return this.text},cs.prototype.getMaxScale=function(){var t=this;return this.sectionIndex.reduce((function(e,r){return Math.max(e,t.sections[r].scale)}),0)};var hs={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},ds={};function fs(t,e,r,i){var n=Math.pow(t-e,2);return i?t&lt;e?n/2:2*n:n+Math.abs(r)*r}function ms(t,e,r){var i=0;return 10===t&amp;&amp;(i-=1e4),r&amp;&amp;(i+=150),40!==t&amp;&amp;65288!==t||(i+=50),41!==e&amp;&amp;65289!==e||(i+=50),i}function ys(t,e,r,i,n,o){for(var a=null,s=fs(e,r,n,o),l=0,u=i;l&lt;u.length;l+=1){var c=u[l],p=fs(e-c.x,r,n,o)+c.badness;p&lt;=s&amp;&amp;(a=c,s=p)}return{index:t,x:e,priorBreak:a,badness:s}}function gs(t,e,r,i){if(!r)return[];if(!t)return[];for(var n,o=[],a=function(t,e,r,i){for(var n=0,o=0;o&lt;t.length();o++){var a=t.getSection(o),s=i[a.fontStack],l=s&amp;&amp;s[t.getCharCode(o)];l&amp;&amp;(n+=l.metrics.advance*a.scale+e)}return n/Math.max(1,Math.ceil(n/r))}(t,e,r,i),s=t.text.indexOf("​")&gt;=0,l=0,u=0;u&lt;t.length();u++){var c=t.getSection(u),p=t.getCharCode(u),h=i[c.fontStack],d=h&amp;&amp;h[p];if(d&amp;&amp;!hs[p]&amp;&amp;(l+=d.metrics.advance*c.scale+e),u&lt;t.length()-1){var f=!((n=p)&lt;11904||!(xi["Bopomofo Extended"](n)||xi.Bopomofo(n)||xi["CJK Compatibility Forms"](n)||xi["CJK Compatibility Ideographs"](n)||xi["CJK Compatibility"](n)||xi["CJK Radicals Supplement"](n)||xi["CJK Strokes"](n)||xi["CJK Symbols and Punctuation"](n)||xi["CJK Unified Ideographs Extension A"](n)||xi["CJK Unified Ideographs"](n)||xi["Enclosed CJK Letters and Months"](n)||xi["Halfwidth and Fullwidth Forms"](n)||xi.Hiragana(n)||xi["Ideographic Description Characters"](n)||xi["Kangxi Radicals"](n)||xi["Katakana Phonetic Extensions"](n)||xi.Katakana(n)||xi["Vertical Forms"](n)||xi["Yi Radicals"](n)||xi["Yi Syllables"](n)));(ds[p]||f)&amp;&amp;o.push(ys(u+1,l,a,o,ms(p,t.getCharCode(u+1),f&amp;&amp;s),!1))}}return function t(e){return e?t(e.priorBreak).concat(e.index):[]}(ys(t.length(),l,a,o,0,!0))}function vs(t){var e=.5,r=.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":r=1;break;case"top":case"top-right":case"top-left":r=0}return{horizontalAlign:e,verticalAlign:r}}function _s(t,e,r,i,n){if(n){var o=t[i],a=e[o.fontStack],s=a&amp;&amp;a[o.glyph];if(s)for(var l=s.metrics.advance*o.scale,u=(t[i].x+l)*n,c=r;c&lt;=i;c++)t[c].x-=u}}ds[10]=!0,ds[32]=!0,ds[38]=!0,ds[40]=!0,ds[41]=!0,ds[43]=!0,ds[45]=!0,ds[47]=!0,ds[173]=!0,ds[183]=!0,ds[8203]=!0,ds[8208]=!0,ds[8211]=!0,ds[8231]=!0;var xs=function(t){function e(e,r,i,n){t.call(this,e,r),this.angle=i,void 0!==n&amp;&amp;(this.segment=n)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){return new e(this.x,this.y,this.angle,this.segment)},e}(n);mi("Anchor",xs);var bs=256;function ws(t,e){var r=e.expression;if("constant"===r.kind)return{kind:"constant",layoutSize:r.evaluate(new zi(t+1))};if("source"===r.kind)return{kind:"source"};for(var i=r.zoomStops,n=r.interpolationType,o=0;o&lt;i.length&amp;&amp;i[o]&lt;=t;)o++;for(var a=o=Math.max(0,o-1);a&lt;i.length&amp;&amp;i[a]&lt;t+1;)a++;a=Math.min(i.length-1,a);var s=i[o],l=i[a];return"composite"===r.kind?{kind:"composite",minZoom:s,maxZoom:l,interpolationType:n}:{kind:"camera",minZoom:s,maxZoom:l,minSize:r.evaluate(new zi(s)),maxSize:r.evaluate(new zi(l)),interpolationType:n}}function Ss(t,e,r){var i=e.uSize,n=e.uSizeT,o=r.lowerSize,a=r.upperSize;return"source"===t.kind?o/bs:"composite"===t.kind?xe(o/bs,a/bs,n):i}function Es(t,e){var r=0,i=0;if("constant"===t.kind)i=t.layoutSize;else if("source"!==t.kind){var n=t.interpolationType,o=t.minZoom,a=t.maxZoom,s=n?u(Ne.interpolationFactor(n,e,o,a),0,1):0;"camera"===t.kind?i=xe(t.minSize,t.maxSize,s):r=s}return{uSizeT:r,uSize:i}}var ks=Object.freeze({getSizeData:ws,evaluateSizeForFeature:Ss,evaluateSizeForZoom:Es,SIZE_PACK_FACTOR:bs}),Ts=La.VectorTileFeature.types,As=[{name:"a_fade_opacity",components:1,type:"Uint8",offset:0}];function Cs(t,e,r,i,n,o,a,s){t.emplaceBack(e,r,Math.round(32*i),Math.round(32*n),o,a,s?s[0]:0,s?s[1]:0)}function Is(t,e,r){t.emplaceBack(e.x,e.y,r),t.emplaceBack(e.x,e.y,r),t.emplaceBack(e.x,e.y,r),t.emplaceBack(e.x,e.y,r)}var Ps=function(t){this.layoutVertexArray=new on,this.indexArray=new yn,this.programConfigurations=t,this.segments=new Ln,this.dynamicLayoutVertexArray=new an,this.opacityVertexArray=new sn,this.placedSymbolArray=new En};Ps.prototype.upload=function(t,e,r,i){r&amp;&amp;(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,es.members),this.indexBuffer=t.createIndexBuffer(this.indexArray,e),this.dynamicLayoutVertexBuffer=t.createVertexBuffer(this.dynamicLayoutVertexArray,rs.members,!0),this.opacityVertexBuffer=t.createVertexBuffer(this.opacityVertexArray,As,!0),this.opacityVertexBuffer.itemSize=1),(r||i)&amp;&amp;this.programConfigurations.upload(t)},Ps.prototype.destroy=function(){this.layoutVertexBuffer&amp;&amp;(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.dynamicLayoutVertexBuffer.destroy(),this.opacityVertexBuffer.destroy())},mi("SymbolBuffers",Ps);var Ms=function(t,e,r){this.layoutVertexArray=new t,this.layoutAttributes=e,this.indexArray=new r,this.segments=new Ln,this.collisionVertexArray=new cn};Ms.prototype.upload=function(t){this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,this.layoutAttributes),this.indexBuffer=t.createIndexBuffer(this.indexArray),this.collisionVertexBuffer=t.createVertexBuffer(this.collisionVertexArray,is.members,!0)},Ms.prototype.destroy=function(){this.layoutVertexBuffer&amp;&amp;(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.collisionVertexBuffer.destroy())},mi("CollisionBuffers",Ms);var zs=function(t){this.collisionBoxArray=t.collisionBoxArray,this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=t.index,this.pixelRatio=t.pixelRatio,this.sourceLayerIndex=t.sourceLayerIndex,this.hasPattern=!1,this.hasPaintOverrides=!1;var e=this.layers[0]._unevaluatedLayout._values;this.textSizeData=ws(this.zoom,e["text-size"]),this.iconSizeData=ws(this.zoom,e["icon-size"]);var r=this.layers[0].layout,i=r.get("symbol-sort-key"),n=r.get("symbol-z-order");this.sortFeaturesByKey="viewport-y"!==n&amp;&amp;void 0!==i.constantOr(1);var o="viewport-y"===n||"auto"===n&amp;&amp;!this.sortFeaturesByKey;this.sortFeaturesByY=o&amp;&amp;(r.get("text-allow-overlap")||r.get("icon-allow-overlap")||r.get("text-ignore-placement")||r.get("icon-ignore-placement")),"point"===r.get("symbol-placement")&amp;&amp;(this.writingModes=r.get("text-writing-mode").map((function(t){return us[t]}))),this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id})),this.sourceID=t.sourceID};zs.prototype.createArrays=function(){var t=this.layers[0].layout;this.hasPaintOverrides=Os.hasPaintOverrides(t),this.text=new Ps(new to(es.members,this.layers,this.zoom,(function(t){return/^text/.test(t)}))),this.icon=new Ps(new to(es.members,this.layers,this.zoom,(function(t){return/^icon/.test(t)}))),this.collisionBox=new Ms(un,ns.members,gn),this.collisionCircle=new Ms(un,os.members,yn),this.glyphOffsetArray=new Cn,this.lineVertexArray=new Pn,this.symbolInstances=new Tn},zs.prototype.calculateGlyphDependencies=function(t,e,r,i,n){for(var o=0;o&lt;t.length;o++)if(e[t.charCodeAt(o)]=!0,(r||i)&amp;&amp;n){var a=ss[t.charAt(o)];a&amp;&amp;(e[a.charCodeAt(0)]=!0)}},zs.prototype.populate=function(t,e){var r=this.layers[0],i=r.layout,n=i.get("text-font"),o=i.get("text-field"),a=i.get("icon-image"),s=("constant"!==o.value.kind||o.value.value.toString().length&gt;0)&amp;&amp;("constant"!==n.value.kind||n.value.value.length&gt;0),l="constant"!==a.value.kind||a.value.value&amp;&amp;a.value.value.length&gt;0,u=i.get("symbol-sort-key");if(this.features=[],s||l){for(var c=e.iconDependencies,p=e.glyphDependencies,h=new zi(this.zoom),d=0,f=t;d&lt;f.length;d+=1){var m=f[d],y=m.feature,g=m.index,v=m.sourceLayerIndex;if(r._featureFilter(h,y)){var _=void 0;if(s){var x=r.getValueAndResolveTokens("text-field",y);_=as(x instanceof Jt?x:Jt.fromString(x),r,y)}var b=void 0;if(l&amp;&amp;(b=r.getValueAndResolveTokens("icon-image",y)),_||b){var w=this.sortFeaturesByKey?u.evaluate(y,{}):void 0,S={text:_,icon:b,index:g,sourceLayerIndex:v,geometry:ao(y),properties:y.properties,type:Ts[y.type],sortKey:w};if(void 0!==y.id&amp;&amp;(S.id=y.id),this.features.push(S),b&amp;&amp;(c[b]=!0),_){var E=n.evaluate(y,{}).join(","),k="map"===i.get("text-rotation-alignment")&amp;&amp;"point"!==i.get("symbol-placement");this.allowVerticalPlacement=this.writingModes&amp;&amp;this.writingModes.indexOf(us.vertical)&gt;=0;for(var T=0,A=_.sections;T&lt;A.length;T+=1){var C=A[T],I=bi(_.toString()),P=C.fontStack||E,M=p[P]=p[P]||{};this.calculateGlyphDependencies(C.text,M,k,this.allowVerticalPlacement,I)}}}}}"line"===i.get("symbol-placement")&amp;&amp;(this.features=function(t){var e={},r={},i=[],n=0;function o(e){i.push(t[e]),n++}function a(t,e,n){var o=r[t];return delete r[t],r[e]=o,i[o].geometry[0].pop(),i[o].geometry[0]=i[o].geometry[0].concat(n[0]),o}function s(t,r,n){var o=e[r];return delete e[r],e[t]=o,i[o].geometry[0].shift(),i[o].geometry[0]=n[0].concat(i[o].geometry[0]),o}function l(t,e,r){var i=r?e[0][e[0].length-1]:e[0][0];return t+":"+i.x+":"+i.y}for(var u=0;u&lt;t.length;u++){var c=t[u],p=c.geometry,h=c.text?c.text.toString():null;if(h){var d=l(h,p),f=l(h,p,!0);if(d in r&amp;&amp;f in e&amp;&amp;r[d]!==e[f]){var m=s(d,f,p),y=a(d,f,i[m].geometry);delete e[d],delete r[f],r[l(h,i[y].geometry,!0)]=y,i[m].geometry=null}else d in r?a(d,f,p):f in e?s(d,f,p):(o(u),e[d]=n-1,r[f]=n-1)}else o(u)}return i.filter((function(t){return t.geometry}))}(this.features)),this.sortFeaturesByKey&amp;&amp;this.features.sort((function(t,e){return t.sortKey-e.sortKey}))}},zs.prototype.update=function(t,e,r){this.stateDependentLayers.length&amp;&amp;(this.text.programConfigurations.updatePaintArrays(t,e,this.layers,r),this.icon.programConfigurations.updatePaintArrays(t,e,this.layers,r))},zs.prototype.isEmpty=function(){return 0===this.symbolInstances.length},zs.prototype.uploadPending=function(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload},zs.prototype.upload=function(t){this.uploaded||(this.collisionBox.upload(t),this.collisionCircle.upload(t)),this.text.upload(t,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(t,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0},zs.prototype.destroy=function(){this.text.destroy(),this.icon.destroy(),this.collisionBox.destroy(),this.collisionCircle.destroy()},zs.prototype.addToLineVertexArray=function(t,e){var r=this.lineVertexArray.length;if(void 0!==t.segment){for(var i=t.dist(e[t.segment+1]),n=t.dist(e[t.segment]),o={},a=t.segment+1;a&lt;e.length;a++)o[a]={x:e[a].x,y:e[a].y,tileUnitDistanceFromAnchor:i},a&lt;e.length-1&amp;&amp;(i+=e[a+1].dist(e[a]));for(var s=t.segment||0;s&gt;=0;s--)o[s]={x:e[s].x,y:e[s].y,tileUnitDistanceFromAnchor:n},s&gt;0&amp;&amp;(n+=e[s-1].dist(e[s]));for(var l=0;l&lt;e.length;l++){var u=o[l];this.lineVertexArray.emplaceBack(u.x,u.y,u.tileUnitDistanceFromAnchor)}}return{lineStartIndex:r,lineLength:this.lineVertexArray.length-r}},zs.prototype.addSymbols=function(t,e,r,i,n,o,a,s,l,u){var c=this,p=t.indexArray,h=t.layoutVertexArray,d=t.dynamicLayoutVertexArray,f=t.segments.prepareSegment(4*e.length,t.layoutVertexArray,t.indexArray,o.sortKey),m=this.glyphOffsetArray.length,y=f.vertexLength,g=this.allowVerticalPlacement&amp;&amp;a===us.vertical?Math.PI/2:0,v=function(t){var e=t.tl,i=t.tr,n=t.bl,o=t.br,a=t.tex,l=f.vertexLength,u=t.glyphOffset[1];Cs(h,s.x,s.y,e.x,u+e.y,a.x,a.y,r),Cs(h,s.x,s.y,i.x,u+i.y,a.x+a.w,a.y,r),Cs(h,s.x,s.y,n.x,u+n.y,a.x,a.y+a.h,r),Cs(h,s.x,s.y,o.x,u+o.y,a.x+a.w,a.y+a.h,r),Is(d,s,g),p.emplaceBack(l,l+1,l+2),p.emplaceBack(l+1,l+2,l+3),f.vertexLength+=4,f.primitiveLength+=2,c.glyphOffsetArray.emplaceBack(t.glyphOffset[0])};if(o.text&amp;&amp;o.text.sections){var _=o.text.sections;if(this.hasPaintOverrides){for(var x,b=function(e,r){void 0===x||x===e&amp;&amp;!r||t.programConfigurations.populatePaintArrays(t.layoutVertexArray.length,o,o.index,{},_[x]),x=e},w=0,S=e;w&lt;S.length;w+=1){var E=S[w];b(E.sectionIndex,!1),v(E)}b(x,!0)}else{for(var k=0,T=e;k&lt;T.length;k+=1)v(T[k]);t.programConfigurations.populatePaintArrays(t.layoutVertexArray.length,o,o.index,{},_[0])}}else{for(var A=0,C=e;A&lt;C.length;A+=1)v(C[A]);t.programConfigurations.populatePaintArrays(t.layoutVertexArray.length,o,o.index,{})}t.placedSymbolArray.emplaceBack(s.x,s.y,m,this.glyphOffsetArray.length-m,y,l,u,s.segment,r?r[0]:0,r?r[1]:0,i[0],i[1],a,0,!1,0)},zs.prototype._addCollisionDebugVertex=function(t,e,r,i,n,o){return e.emplaceBack(0,0),t.emplaceBack(r.x,r.y,i,n,Math.round(o.x),Math.round(o.y))},zs.prototype.addCollisionDebugVertices=function(t,e,r,i,o,a,s,l){var u=o.segments.prepareSegment(4,o.layoutVertexArray,o.indexArray),c=u.vertexLength,p=o.layoutVertexArray,h=o.collisionVertexArray,d=s.anchorX,f=s.anchorY;if(this._addCollisionDebugVertex(p,h,a,d,f,new n(t,e)),this._addCollisionDebugVertex(p,h,a,d,f,new n(r,e)),this._addCollisionDebugVertex(p,h,a,d,f,new n(r,i)),this._addCollisionDebugVertex(p,h,a,d,f,new n(t,i)),u.vertexLength+=4,l){var m=o.indexArray;m.emplaceBack(c,c+1,c+2),m.emplaceBack(c,c+2,c+3),u.primitiveLength+=2}else{var y=o.indexArray;y.emplaceBack(c,c+1),y.emplaceBack(c+1,c+2),y.emplaceBack(c+2,c+3),y.emplaceBack(c+3,c),u.primitiveLength+=4}},zs.prototype.addDebugCollisionBoxes=function(t,e,r){for(var i=t;i&lt;e;i++){var n=this.collisionBoxArray.get(i),o=n.x1,a=n.y1,s=n.x2,l=n.y2,u=n.radius&gt;0;this.addCollisionDebugVertices(o,a,s,l,u?this.collisionCircle:this.collisionBox,n.anchorPoint,r,u)}},zs.prototype.generateCollisionDebugBuffers=function(){for(var t=0;t&lt;this.symbolInstances.length;t++){var e=this.symbolInstances.get(t);this.addDebugCollisionBoxes(e.textBoxStartIndex,e.textBoxEndIndex,e),this.addDebugCollisionBoxes(e.verticalTextBoxStartIndex,e.verticalTextBoxEndIndex,e),this.addDebugCollisionBoxes(e.iconBoxStartIndex,e.iconBoxEndIndex,e)}},zs.prototype._deserializeCollisionBoxesForSymbol=function(t,e,r,i,n,o,a){for(var s={},l=e;l&lt;r;l++){var u=t.get(l);if(0===u.radius){s.textBox={x1:u.x1,y1:u.y1,x2:u.x2,y2:u.y2,anchorPointX:u.anchorPointX,anchorPointY:u.anchorPointY},s.textFeatureIndex=u.featureIndex;break}s.textCircles||(s.textCircles=[],s.textFeatureIndex=u.featureIndex),s.textCircles.push(u.anchorPointX,u.anchorPointY,u.radius,u.signedDistanceFromAnchor,1)}for(var c=i;c&lt;n;c++){var p=t.get(c);if(0===p.radius){s.verticalTextBox={x1:p.x1,y1:p.y1,x2:p.x2,y2:p.y2,anchorPointX:p.anchorPointX,anchorPointY:p.anchorPointY},s.verticalTextFeatureIndex=p.featureIndex;break}}for(var h=o;h&lt;a;h++){var d=t.get(h);if(0===d.radius){s.iconBox={x1:d.x1,y1:d.y1,x2:d.x2,y2:d.y2,anchorPointX:d.anchorPointX,anchorPointY:d.anchorPointY},s.iconFeatureIndex=d.featureIndex;break}}return s},zs.prototype.deserializeCollisionBoxes=function(t){this.collisionArrays=[];for(var e=0;e&lt;this.symbolInstances.length;e++){var r=this.symbolInstances.get(e);this.collisionArrays.push(this._deserializeCollisionBoxesForSymbol(t,r.textBoxStartIndex,r.textBoxEndIndex,r.verticalTextBoxStartIndex,r.verticalTextBoxEndIndex,r.iconBoxStartIndex,r.iconBoxEndIndex))}},zs.prototype.hasTextData=function(){return this.text.segments.get().length&gt;0},zs.prototype.hasIconData=function(){return this.icon.segments.get().length&gt;0},zs.prototype.hasCollisionBoxData=function(){return this.collisionBox.segments.get().length&gt;0},zs.prototype.hasCollisionCircleData=function(){return this.collisionCircle.segments.get().length&gt;0},zs.prototype.addIndicesForPlacedTextSymbol=function(t){for(var e=this.text.placedSymbolArray.get(t),r=e.vertexStartIndex+4*e.numGlyphs,i=e.vertexStartIndex;i&lt;r;i+=4)this.text.indexArray.emplaceBack(i,i+1,i+2),this.text.indexArray.emplaceBack(i+1,i+2,i+3)},zs.prototype.getSortedSymbolIndexes=function(t){if(this.sortedAngle===t&amp;&amp;void 0!==this.symbolInstanceIndexes)return this.symbolInstanceIndexes;for(var e=Math.sin(t),r=Math.cos(t),i=[],n=[],o=[],a=0;a&lt;this.symbolInstances.length;++a){o.push(a);var s=this.symbolInstances.get(a);i.push(0|Math.round(e*s.anchorX+r*s.anchorY)),n.push(s.featureIndex)}return o.sort((function(t,e){return i[t]-i[e]||n[e]-n[t]})),o},zs.prototype.sortFeatures=function(t){var e=this;if(this.sortFeaturesByY&amp;&amp;this.sortedAngle!==t&amp;&amp;!(this.text.segments.get().length&gt;1||this.icon.segments.get().length&gt;1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(t),this.sortedAngle=t,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var r=0,i=this.symbolInstanceIndexes;r&lt;i.length;r+=1){var n=i[r],o=this.symbolInstances.get(n);this.featureSortOrder.push(o.featureIndex),[o.rightJustifiedTextSymbolIndex,o.centerJustifiedTextSymbolIndex,o.leftJustifiedTextSymbolIndex].forEach((function(t,r,i){t&gt;=0&amp;&amp;i.indexOf(t)===r&amp;&amp;e.addIndicesForPlacedTextSymbol(t)})),o.verticalPlacedTextSymbolIndex&gt;=0&amp;&amp;this.addIndicesForPlacedTextSymbol(o.verticalPlacedTextSymbolIndex);var a=this.icon.placedSymbolArray.get(n);if(a.numGlyphs){var s=a.vertexStartIndex;this.icon.indexArray.emplaceBack(s,s+1,s+2),this.icon.indexArray.emplaceBack(s+1,s+2,s+3)}}this.text.indexBuffer&amp;&amp;this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&amp;&amp;this.icon.indexBuffer.updateData(this.icon.indexArray)}},mi("SymbolBucket",zs,{omit:["layers","collisionBoxArray","features","compareText"]}),zs.MAX_GLYPHS=65535,zs.addDynamicAttributes=Is;var Ds=new Hi({"symbol-placement":new Ni(Tt.layout_symbol["symbol-placement"]),"symbol-spacing":new Ni(Tt.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new Ni(Tt.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new Vi(Tt.layout_symbol["symbol-sort-key"]),"symbol-z-order":new Ni(Tt.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new Ni(Tt.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new Ni(Tt.layout_symbol["icon-ignore-placement"]),"icon-optional":new Ni(Tt.layout_symbol["icon-optional"]),"icon-rotation-alignment":new Ni(Tt.layout_symbol["icon-rotation-alignment"]),"icon-size":new Vi(Tt.layout_symbol["icon-size"]),"icon-text-fit":new Ni(Tt.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new Ni(Tt.layout_symbol["icon-text-fit-padding"]),"icon-image":new Vi(Tt.layout_symbol["icon-image"]),"icon-rotate":new Vi(Tt.layout_symbol["icon-rotate"]),"icon-padding":new Ni(Tt.layout_symbol["icon-padding"]),"icon-keep-upright":new Ni(Tt.layout_symbol["icon-keep-upright"]),"icon-offset":new Vi(Tt.layout_symbol["icon-offset"]),"icon-anchor":new Vi(Tt.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new Ni(Tt.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new Ni(Tt.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new Ni(Tt.layout_symbol["text-rotation-alignment"]),"text-field":new Vi(Tt.layout_symbol["text-field"]),"text-font":new Vi(Tt.layout_symbol["text-font"]),"text-size":new Vi(Tt.layout_symbol["text-size"]),"text-max-width":new Vi(Tt.layout_symbol["text-max-width"]),"text-line-height":new Ni(Tt.layout_symbol["text-line-height"]),"text-letter-spacing":new Vi(Tt.layout_symbol["text-letter-spacing"]),"text-justify":new Vi(Tt.layout_symbol["text-justify"]),"text-radial-offset":new Vi(Tt.layout_symbol["text-radial-offset"]),"text-variable-anchor":new Ni(Tt.layout_symbol["text-variable-anchor"]),"text-anchor":new Vi(Tt.layout_symbol["text-anchor"]),"text-max-angle":new Ni(Tt.layout_symbol["text-max-angle"]),"text-writing-mode":new Ni(Tt.layout_symbol["text-writing-mode"]),"text-rotate":new Vi(Tt.layout_symbol["text-rotate"]),"text-padding":new Ni(Tt.layout_symbol["text-padding"]),"text-keep-upright":new Ni(Tt.layout_symbol["text-keep-upright"]),"text-transform":new Vi(Tt.layout_symbol["text-transform"]),"text-offset":new Vi(Tt.layout_symbol["text-offset"]),"text-allow-overlap":new Ni(Tt.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new Ni(Tt.layout_symbol["text-ignore-placement"]),"text-optional":new Ni(Tt.layout_symbol["text-optional"])}),Ls={paint:new Hi({"icon-opacity":new Vi(Tt.paint_symbol["icon-opacity"]),"icon-color":new Vi(Tt.paint_symbol["icon-color"]),"icon-halo-color":new Vi(Tt.paint_symbol["icon-halo-color"]),"icon-halo-width":new Vi(Tt.paint_symbol["icon-halo-width"]),"icon-halo-blur":new Vi(Tt.paint_symbol["icon-halo-blur"]),"icon-translate":new Ni(Tt.paint_symbol["icon-translate"]),"icon-translate-anchor":new Ni(Tt.paint_symbol["icon-translate-anchor"]),"text-opacity":new Vi(Tt.paint_symbol["text-opacity"]),"text-color":new Vi(Tt.paint_symbol["text-color"],{runtimeType:jt,getOverride:function(t){return t.textColor},hasOverride:function(t){return!!t.textColor}}),"text-halo-color":new Vi(Tt.paint_symbol["text-halo-color"]),"text-halo-width":new Vi(Tt.paint_symbol["text-halo-width"]),"text-halo-blur":new Vi(Tt.paint_symbol["text-halo-blur"]),"text-translate":new Ni(Tt.paint_symbol["text-translate"]),"text-translate-anchor":new Ni(Tt.paint_symbol["text-translate-anchor"])}),layout:Ds},Rs=function(t){this.type=t.property.overrides?t.property.overrides.runtimeType:Rt,this.defaultValue=t};Rs.prototype.evaluate=function(t){if(t.formattedSection){var e=this.defaultValue.property.overrides;if(e&amp;&amp;e.hasOverride(t.formattedSection))return e.getOverride(t.formattedSection)}return t.feature&amp;&amp;t.featureState?this.defaultValue.evaluate(t.feature,t.featureState):this.defaultValue.property.specification.default},Rs.prototype.eachChild=function(t){this.defaultValue.isConstant()||t(this.defaultValue.value._styleExpression.expression)},Rs.prototype.possibleOutputs=function(){return[void 0]},Rs.prototype.serialize=function(){return null},mi("FormatSectionOverride",Rs,{omit:["defaultValue"]});var Os=function(t){function e(e){t.call(this,e,Ls)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.recalculate=function(e){if(t.prototype.recalculate.call(this,e),"auto"===this.layout.get("icon-rotation-alignment")&amp;&amp;("point"!==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")&amp;&amp;("point"!==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")&amp;&amp;(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),"auto"===this.layout.get("icon-pitch-alignment")&amp;&amp;(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),"point"===this.layout.get("symbol-placement")){var r=this.layout.get("text-writing-mode");if(r){for(var i=[],n=0,o=r;n&lt;o.length;n+=1){var a=o[n];i.indexOf(a)&lt;0&amp;&amp;i.push(a)}this.layout._values["text-writing-mode"]=i}else this.layout._values["text-writing-mode"]=["horizontal"]}this._setPaintOverrides()},e.prototype.getValueAndResolveTokens=function(t,e){var r=this.layout.get(t).evaluate(e,{}),i=this._unevaluatedLayout._values[t];return i.isDataDriven()||Er(i.value)?r:function(t,e){return e.replace(/{([^{}]+)}/g,(function(e,r){return r in t?String(t[r]):""}))}(e.properties,r)},e.prototype.createBucket=function(t){return new zs(t)},e.prototype.queryRadius=function(){return 0},e.prototype.queryIntersectsFeature=function(){return!1},e.prototype._setPaintOverrides=function(){for(var t=0,r=Ls.paint.overridableProperties;t&lt;r.length;t+=1){var i=r[t];if(e.hasPaintOverride(this.layout,i)){var n=this.paint.get(i),o=new Rs(n),a=new Sr(o,n.property.specification),s=null;s="constant"===n.value.kind||"source"===n.value.kind?new Tr("source",a):new Ar("composite",a,n.value.zoomStops,n.value._interpolationType),this.paint._values[i]=new ji(n.property,s,n.parameters)}}},e.prototype._handleOverridablePaintPropertyUpdate=function(t,r,i){return!(!this.layout||r.isDataDriven()||i.isDataDriven())&amp;&amp;e.hasPaintOverride(this.layout,t)},e.hasPaintOverride=function(t,e){var r=t.get("text-field"),i=Ls.paint.properties[e],n=!1,o=function(t){for(var e=0,r=t;e&lt;r.length;e+=1){var o=r[e];if(i.overrides&amp;&amp;i.overrides.hasOverride(o))return void(n=!0)}};if("constant"===r.value.kind&amp;&amp;r.value.value instanceof Jt)o(r.value.value.sections);else if("source"===r.value.kind){var a=function(t){if(!n)if(t instanceof re&amp;&amp;te(t.value)===qt){var e=t.value;o(e.sections)}else t instanceof ae?o(t.sections):t.eachChild(a)},s=r.value;s._styleExpression&amp;&amp;a(s._styleExpression.expression)}return n},e.hasPaintOverrides=function(t){for(var r=0,i=Ls.paint.overridableProperties;r&lt;i.length;r+=1){var n=i[r];if(e.hasPaintOverride(t,n))return!0}return!1},e}(Zi),Bs={paint:new Hi({"background-color":new Ni(Tt.paint_background["background-color"]),"background-pattern":new Wi(Tt.paint_background["background-pattern"]),"background-opacity":new Ni(Tt.paint_background["background-opacity"])})},Fs=function(t){function e(e){t.call(this,e,Bs)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e}(Zi),js={paint:new Hi({"raster-opacity":new Ni(Tt.paint_raster["raster-opacity"]),"raster-hue-rotate":new Ni(Tt.paint_raster["raster-hue-rotate"]),"raster-brightness-min":new Ni(Tt.paint_raster["raster-brightness-min"]),"raster-brightness-max":new Ni(Tt.paint_raster["raster-brightness-max"]),"raster-saturation":new Ni(Tt.paint_raster["raster-saturation"]),"raster-contrast":new Ni(Tt.paint_raster["raster-contrast"]),"raster-resampling":new Ni(Tt.paint_raster["raster-resampling"]),"raster-fade-duration":new Ni(Tt.paint_raster["raster-fade-duration"])})},Us=function(t){function e(e){t.call(this,e,js)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e}(Zi),Ns=function(t){function e(e){t.call(this,e,{}),this.implementation=e}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.is3D=function(){return"3d"===this.implementation.renderingMode},e.prototype.hasOffscreenPass=function(){return void 0!==this.implementation.prerender},e.prototype.recalculate=function(){},e.prototype.updateTransitions=function(){},e.prototype.hasTransition=function(){},e.prototype.serialize=function(){},e.prototype.onAdd=function(t){this.implementation.onAdd&amp;&amp;this.implementation.onAdd(t,t.painter.context.gl)},e.prototype.onRemove=function(t){this.implementation.onRemove&amp;&amp;this.implementation.onRemove(t,t.painter.context.gl)},e}(Zi),Vs={circle:Io,heatmap:jo,hillshade:No,fill:Ea,"fill-extrusion":Va,line:Qa,symbol:Os,background:Fs,raster:Us};function qs(t){for(var e=0,r=0,i=0,n=t;i&lt;n.length;i+=1){var o=n[i];e+=o.w*o.h,r=Math.max(r,o.w)}t.sort((function(t,e){return e.h-t.h}));for(var a=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(e/.95)),r),h:1/0}],s=0,l=0,u=0,c=t;u&lt;c.length;u+=1)for(var p=c[u],h=a.length-1;h&gt;=0;h--){var d=a[h];if(!(p.w&gt;d.w||p.h&gt;d.h)){if(p.x=d.x,p.y=d.y,l=Math.max(l,p.y+p.h),s=Math.max(s,p.x+p.w),p.w===d.w&amp;&amp;p.h===d.h){var f=a.pop();h&lt;a.length&amp;&amp;(a[h]=f)}else p.h===d.h?(d.x+=p.w,d.w-=p.w):p.w===d.w?(d.y+=p.h,d.h-=p.h):(a.push({x:d.x+p.w,y:d.y,w:d.w-p.w,h:p.h}),d.y+=p.h,d.h-=p.h);break}}return{w:s,h:l,fill:e/(s*l)||0}}var Ws=function(t,e){var r=e.pixelRatio,i=e.version;this.paddedRect=t,this.pixelRatio=r,this.version=i},Gs={tl:{configurable:!0},br:{configurable:!0},tlbr:{configurable:!0},displaySize:{configurable:!0}};Gs.tl.get=function(){return[this.paddedRect.x+1,this.paddedRect.y+1]},Gs.br.get=function(){return[this.paddedRect.x+this.paddedRect.w-1,this.paddedRect.y+this.paddedRect.h-1]},Gs.tlbr.get=function(){return this.tl.concat(this.br)},Gs.displaySize.get=function(){return[(this.paddedRect.w-2)/this.pixelRatio,(this.paddedRect.h-2)/this.pixelRatio]},Object.defineProperties(Ws.prototype,Gs);var Hs=function(t,e){var r={},i={};this.haveRenderCallbacks=[];var n=[];this.addImages(t,r,n),this.addImages(e,i,n);var o=qs(n),a=o.w,s=o.h,l=new Oo({width:a||1,height:s||1});for(var u in t){var c=t[u],p=r[u].paddedRect;Oo.copy(c.data,l,{x:0,y:0},{x:p.x+1,y:p.y+1},c.data)}for(var h in e){var d=e[h],f=i[h].paddedRect,m=f.x+1,y=f.y+1,g=d.data.width,v=d.data.height;Oo.copy(d.data,l,{x:0,y:0},{x:m,y},d.data),Oo.copy(d.data,l,{x:0,y:v-1},{x:m,y:y-1},{width:g,height:1}),Oo.copy(d.data,l,{x:0,y:0},{x:m,y:y+v},{width:g,height:1}),Oo.copy(d.data,l,{x:g-1,y:0},{x:m-1,y},{width:1,height:v}),Oo.copy(d.data,l,{x:0,y:0},{x:m+g,y},{width:1,height:v})}this.image=l,this.iconPositions=r,this.patternPositions=i};Hs.prototype.addImages=function(t,e,r){for(var i in t){var n=t[i],o={x:0,y:0,w:n.data.width+2,h:n.data.height+2};r.push(o),e[i]=new Ws(o,n),n.hasRenderCallback&amp;&amp;this.haveRenderCallbacks.push(i)}},Hs.prototype.patchUpdatedImages=function(t,e){for(var r in t.dispatchRenderCallbacks(this.haveRenderCallbacks),t.updatedImages)this.patchUpdatedImage(this.iconPositions[r],t.getImage(r),e),this.patchUpdatedImage(this.patternPositions[r],t.getImage(r),e)},Hs.prototype.patchUpdatedImage=function(t,e,r){if(t&amp;&amp;e&amp;&amp;t.version!==e.version){t.version=e.version;var i=t.tl,n=i[0],o=i[1];r.update(e.data,void 0,{x:n,y:o})}},mi("ImagePosition",Ws),mi("ImageAtlas",Hs);var Zs=self.HTMLImageElement,Xs=self.HTMLCanvasElement,$s=self.HTMLVideoElement,Ys=self.ImageData,Ks=function(t,e,r,i){this.context=t,this.format=r,this.texture=t.gl.createTexture(),this.update(e,i)};Ks.prototype.update=function(t,e,r){var i=t.width,n=t.height,o=!(this.size&amp;&amp;this.size[0]===i&amp;&amp;this.size[1]===n||r),a=this.context,s=a.gl;if(this.useMipmap=Boolean(e&amp;&amp;e.useMipmap),s.bindTexture(s.TEXTURE_2D,this.texture),a.pixelStoreUnpackFlipY.set(!1),a.pixelStoreUnpack.set(1),a.pixelStoreUnpackPremultiplyAlpha.set(this.format===s.RGBA&amp;&amp;(!e||!1!==e.premultiply)),o)this.size=[i,n],t instanceof Zs||t instanceof Xs||t instanceof $s||t instanceof Ys?s.texImage2D(s.TEXTURE_2D,0,this.format,this.format,s.UNSIGNED_BYTE,t):s.texImage2D(s.TEXTURE_2D,0,this.format,i,n,0,this.format,s.UNSIGNED_BYTE,t.data);else{var l=r||{x:0,y:0},u=l.x,c=l.y;t instanceof Zs||t instanceof Xs||t instanceof $s||t instanceof Ys?s.texSubImage2D(s.TEXTURE_2D,0,u,c,s.RGBA,s.UNSIGNED_BYTE,t):s.texSubImage2D(s.TEXTURE_2D,0,u,c,i,n,s.RGBA,s.UNSIGNED_BYTE,t.data)}this.useMipmap&amp;&amp;this.isSizePowerOfTwo()&amp;&amp;s.generateMipmap(s.TEXTURE_2D)},Ks.prototype.bind=function(t,e,r){var i=this.context.gl;i.bindTexture(i.TEXTURE_2D,this.texture),r!==i.LINEAR_MIPMAP_NEAREST||this.isSizePowerOfTwo()||(r=i.LINEAR),t!==this.filter&amp;&amp;(i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MAG_FILTER,t),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MIN_FILTER,r||t),this.filter=t),e!==this.wrap&amp;&amp;(i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,e),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,e),this.wrap=e)},Ks.prototype.isSizePowerOfTwo=function(){return this.size[0]===this.size[1]&amp;&amp;Math.log(this.size[0])/Math.LN2%1==0},Ks.prototype.destroy=function(){this.context.gl.deleteTexture(this.texture),this.texture=null};var Js=function(t,e,r,i,n){var o,a,s=8*n-i-1,l=(1&lt;&lt;s)-1,u=l&gt;&gt;1,c=-7,p=r?n-1:0,h=r?-1:1,d=t[e+p];for(p+=h,o=d&amp;(1&lt;&lt;-c)-1,d&gt;&gt;=-c,c+=s;c&gt;0;o=256*o+t[e+p],p+=h,c-=8);for(a=o&amp;(1&lt;&lt;-c)-1,o&gt;&gt;=-c,c+=i;c&gt;0;a=256*a+t[e+p],p+=h,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,i),o-=u}return(d?-1:1)*a*Math.pow(2,o-i)},Qs=function(t,e,r,i,n,o){var a,s,l,u=8*o-n-1,c=(1&lt;&lt;u)-1,p=c&gt;&gt;1,h=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,d=i?0:o-1,f=i?1:-1,m=e&lt;0||0===e&amp;&amp;1/e&lt;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*(l=Math.pow(2,-a))&lt;1&amp;&amp;(a--,l*=2),(e+=a+p&gt;=1?h/l:h*Math.pow(2,1-p))*l&gt;=2&amp;&amp;(a++,l/=2),a+p&gt;=c?(s=0,a=c):a+p&gt;=1?(s=(e*l-1)*Math.pow(2,n),a+=p):(s=e*Math.pow(2,p-1)*Math.pow(2,n),a=0));n&gt;=8;t[r+d]=255&amp;s,d+=f,s/=256,n-=8);for(a=a&lt;&lt;n|s,u+=n;u&gt;0;t[r+d]=255&amp;a,d+=f,a/=256,u-=8);t[r+d-f]|=128*m},tl=el;function el(t){this.buf=ArrayBuffer.isView&amp;&amp;ArrayBuffer.isView(t)?t:new Uint8Array(t||0),this.pos=0,this.type=0,this.length=this.buf.length}function rl(t){return t.type===el.Bytes?t.readVarint()+t.pos:t.pos+1}function il(t,e,r){return r?4294967296*e+(t&gt;&gt;&gt;0):4294967296*(e&gt;&gt;&gt;0)+(t&gt;&gt;&gt;0)}function nl(t,e,r){var i=e&lt;=16383?1:e&lt;=2097151?2:e&lt;=268435455?3:Math.floor(Math.log(e)/(7*Math.LN2));r.realloc(i);for(var n=r.pos-1;n&gt;=t;n--)r.buf[n+i]=r.buf[n]}function ol(t,e){for(var r=0;r&lt;t.length;r++)e.writeVarint(t[r])}function al(t,e){for(var r=0;r&lt;t.length;r++)e.writeSVarint(t[r])}function sl(t,e){for(var r=0;r&lt;t.length;r++)e.writeFloat(t[r])}function ll(t,e){for(var r=0;r&lt;t.length;r++)e.writeDouble(t[r])}function ul(t,e){for(var r=0;r&lt;t.length;r++)e.writeBoolean(t[r])}function cl(t,e){for(var r=0;r&lt;t.length;r++)e.writeFixed32(t[r])}function pl(t,e){for(var r=0;r&lt;t.length;r++)e.writeSFixed32(t[r])}function hl(t,e){for(var r=0;r&lt;t.length;r++)e.writeFixed64(t[r])}function dl(t,e){for(var r=0;r&lt;t.length;r++)e.writeSFixed64(t[r])}function fl(t,e){return(t[e]|t[e+1]&lt;&lt;8|t[e+2]&lt;&lt;16)+16777216*t[e+3]}function ml(t,e,r){t[r]=e,t[r+1]=e&gt;&gt;&gt;8,t[r+2]=e&gt;&gt;&gt;16,t[r+3]=e&gt;&gt;&gt;24}function yl(t,e){return(t[e]|t[e+1]&lt;&lt;8|t[e+2]&lt;&lt;16)+(t[e+3]&lt;&lt;24)}el.Varint=0,el.Fixed64=1,el.Bytes=2,el.Fixed32=5,el.prototype={destroy:function(){this.buf=null},readFields:function(t,e,r){for(r=r||this.length;this.pos&lt;r;){var i=this.readVarint(),n=i&gt;&gt;3,o=this.pos;this.type=7&amp;i,t(n,e,this),this.pos===o&amp;&amp;this.skip(i)}return e},readMessage:function(t,e){return this.readFields(t,e,this.readVarint()+this.pos)},readFixed32:function(){var t=fl(this.buf,this.pos);return this.pos+=4,t},readSFixed32:function(){var t=yl(this.buf,this.pos);return this.pos+=4,t},readFixed64:function(){var t=fl(this.buf,this.pos)+4294967296*fl(this.buf,this.pos+4);return this.pos+=8,t},readSFixed64:function(){var t=fl(this.buf,this.pos)+4294967296*yl(this.buf,this.pos+4);return this.pos+=8,t},readFloat:function(){var t=Js(this.buf,this.pos,!0,23,4);return this.pos+=4,t},readDouble:function(){var t=Js(this.buf,this.pos,!0,52,8);return this.pos+=8,t},readVarint:function(t){var e,r,i=this.buf;return e=127&amp;(r=i[this.pos++]),r&lt;128?e:(e|=(127&amp;(r=i[this.pos++]))&lt;&lt;7,r&lt;128?e:(e|=(127&amp;(r=i[this.pos++]))&lt;&lt;14,r&lt;128?e:(e|=(127&amp;(r=i[this.pos++]))&lt;&lt;21,r&lt;128?e:function(t,e,r){var i,n,o=r.buf;if(i=(112&amp;(n=o[r.pos++]))&gt;&gt;4,n&lt;128)return il(t,i,e);if(i|=(127&amp;(n=o[r.pos++]))&lt;&lt;3,n&lt;128)return il(t,i,e);if(i|=(127&amp;(n=o[r.pos++]))&lt;&lt;10,n&lt;128)return il(t,i,e);if(i|=(127&amp;(n=o[r.pos++]))&lt;&lt;17,n&lt;128)return il(t,i,e);if(i|=(127&amp;(n=o[r.pos++]))&lt;&lt;24,n&lt;128)return il(t,i,e);if(i|=(1&amp;(n=o[r.pos++]))&lt;&lt;31,n&lt;128)return il(t,i,e);throw new Error("Expected varint not more than 10 bytes")}(e|=(15&amp;(r=i[this.pos]))&lt;&lt;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,r){for(var i="",n=e;n&lt;r;){var o,a,s,l=t[n],u=null,c=l&gt;239?4:l&gt;223?3:l&gt;191?2:1;if(n+c&gt;r)break;1===c?l&lt;128&amp;&amp;(u=l):2===c?128==(192&amp;(o=t[n+1]))&amp;&amp;(u=(31&amp;l)&lt;&lt;6|63&amp;o)&lt;=127&amp;&amp;(u=null):3===c?(o=t[n+1],a=t[n+2],128==(192&amp;o)&amp;&amp;128==(192&amp;a)&amp;&amp;((u=(15&amp;l)&lt;&lt;12|(63&amp;o)&lt;&lt;6|63&amp;a)&lt;=2047||u&gt;=55296&amp;&amp;u&lt;=57343)&amp;&amp;(u=null)):4===c&amp;&amp;(o=t[n+1],a=t[n+2],s=t[n+3],128==(192&amp;o)&amp;&amp;128==(192&amp;a)&amp;&amp;128==(192&amp;s)&amp;&amp;((u=(15&amp;l)&lt;&lt;18|(63&amp;o)&lt;&lt;12|(63&amp;a)&lt;&lt;6|63&amp;s)&lt;=65535||u&gt;=1114112)&amp;&amp;(u=null)),null===u?(u=65533,c=1):u&gt;65535&amp;&amp;(u-=65536,i+=String.fromCharCode(u&gt;&gt;&gt;10&amp;1023|55296),u=56320|1023&amp;u),i+=String.fromCharCode(u),n+=c}return i}(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!==el.Bytes)return t.push(this.readVarint(e));var r=rl(this);for(t=t||[];this.pos&lt;r;)t.push(this.readVarint(e));return t},readPackedSVarint:function(t){if(this.type!==el.Bytes)return t.push(this.readSVarint());var e=rl(this);for(t=t||[];this.pos&lt;e;)t.push(this.readSVarint());return t},readPackedBoolean:function(t){if(this.type!==el.Bytes)return t.push(this.readBoolean());var e=rl(this);for(t=t||[];this.pos&lt;e;)t.push(this.readBoolean());return t},readPackedFloat:function(t){if(this.type!==el.Bytes)return t.push(this.readFloat());var e=rl(this);for(t=t||[];this.pos&lt;e;)t.push(this.readFloat());return t},readPackedDouble:function(t){if(this.type!==el.Bytes)return t.push(this.readDouble());var e=rl(this);for(t=t||[];this.pos&lt;e;)t.push(this.readDouble());return t},readPackedFixed32:function(t){if(this.type!==el.Bytes)return t.push(this.readFixed32());var e=rl(this);for(t=t||[];this.pos&lt;e;)t.push(this.readFixed32());return t},readPackedSFixed32:function(t){if(this.type!==el.Bytes)return t.push(this.readSFixed32());var e=rl(this);for(t=t||[];this.pos&lt;e;)t.push(this.readSFixed32());return t},readPackedFixed64:function(t){if(this.type!==el.Bytes)return t.push(this.readFixed64());var e=rl(this);for(t=t||[];this.pos&lt;e;)t.push(this.readFixed64());return t},readPackedSFixed64:function(t){if(this.type!==el.Bytes)return t.push(this.readSFixed64());var e=rl(this);for(t=t||[];this.pos&lt;e;)t.push(this.readSFixed64());return t},skip:function(t){var e=7&amp;t;if(e===el.Varint)for(;this.buf[this.pos++]&gt;127;);else if(e===el.Bytes)this.pos=this.readVarint()+this.pos;else if(e===el.Fixed32)this.pos+=4;else{if(e!==el.Fixed64)throw new Error("Unimplemented type: "+e);this.pos+=8}},writeTag:function(t,e){this.writeVarint(t&lt;&lt;3|e)},realloc:function(t){for(var e=this.length||16;e&lt;this.pos+t;)e*=2;if(e!==this.length){var r=new Uint8Array(e);r.set(this.buf),this.buf=r,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),ml(this.buf,t,this.pos),this.pos+=4},writeSFixed32:function(t){this.realloc(4),ml(this.buf,t,this.pos),this.pos+=4},writeFixed64:function(t){this.realloc(8),ml(this.buf,-1&amp;t,this.pos),ml(this.buf,Math.floor(t*(1/4294967296)),this.pos+4),this.pos+=8},writeSFixed64:function(t){this.realloc(8),ml(this.buf,-1&amp;t,this.pos),ml(this.buf,Math.floor(t*(1/4294967296)),this.pos+4),this.pos+=8},writeVarint:function(t){(t=+t||0)&gt;268435455||t&lt;0?function(t,e){var r,i;if(t&gt;=0?(r=t%4294967296|0,i=t/4294967296|0):(i=~(-t/4294967296),4294967295^(r=~(-t%4294967296))?r=r+1|0:(r=0,i=i+1|0)),t&gt;=0x10000000000000000||t&lt;-0x10000000000000000)throw new Error("Given varint doesn't fit into 10 bytes");e.realloc(10),function(t,e,r){r.buf[r.pos++]=127&amp;t|128,t&gt;&gt;&gt;=7,r.buf[r.pos++]=127&amp;t|128,t&gt;&gt;&gt;=7,r.buf[r.pos++]=127&amp;t|128,t&gt;&gt;&gt;=7,r.buf[r.pos++]=127&amp;t|128,t&gt;&gt;&gt;=7,r.buf[r.pos]=127&amp;t}(r,0,e),function(t,e){var r=(7&amp;t)&lt;&lt;4;e.buf[e.pos++]|=r|((t&gt;&gt;&gt;=3)?128:0),t&amp;&amp;(e.buf[e.pos++]=127&amp;t|((t&gt;&gt;&gt;=7)?128:0),t&amp;&amp;(e.buf[e.pos++]=127&amp;t|((t&gt;&gt;&gt;=7)?128:0),t&amp;&amp;(e.buf[e.pos++]=127&amp;t|((t&gt;&gt;&gt;=7)?128:0),t&amp;&amp;(e.buf[e.pos++]=127&amp;t|((t&gt;&gt;&gt;=7)?128:0),t&amp;&amp;(e.buf[e.pos++]=127&amp;t)))))}(i,e)}(t,this):(this.realloc(4),this.buf[this.pos++]=127&amp;t|(t&gt;127?128:0),t&lt;=127||(this.buf[this.pos++]=127&amp;(t&gt;&gt;&gt;=7)|(t&gt;127?128:0),t&lt;=127||(this.buf[this.pos++]=127&amp;(t&gt;&gt;&gt;=7)|(t&gt;127?128:0),t&lt;=127||(this.buf[this.pos++]=t&gt;&gt;&gt;7&amp;127))))},writeSVarint:function(t){this.writeVarint(t&lt;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,r){for(var i,n,o=0;o&lt;e.length;o++){if((i=e.charCodeAt(o))&gt;55295&amp;&amp;i&lt;57344){if(!n){i&gt;56319||o+1===e.length?(t[r++]=239,t[r++]=191,t[r++]=189):n=i;continue}if(i&lt;56320){t[r++]=239,t[r++]=191,t[r++]=189,n=i;continue}i=n-55296&lt;&lt;10|i-56320|65536,n=null}else n&amp;&amp;(t[r++]=239,t[r++]=191,t[r++]=189,n=null);i&lt;128?t[r++]=i:(i&lt;2048?t[r++]=i&gt;&gt;6|192:(i&lt;65536?t[r++]=i&gt;&gt;12|224:(t[r++]=i&gt;&gt;18|240,t[r++]=i&gt;&gt;12&amp;63|128),t[r++]=i&gt;&gt;6&amp;63|128),t[r++]=63&amp;i|128)}return r}(this.buf,t,this.pos);var r=this.pos-e;r&gt;=128&amp;&amp;nl(e,r,this),this.pos=e-1,this.writeVarint(r),this.pos+=r},writeFloat:function(t){this.realloc(4),Qs(this.buf,t,this.pos,!0,23,4),this.pos+=4},writeDouble:function(t){this.realloc(8),Qs(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 r=0;r&lt;e;r++)this.buf[this.pos++]=t[r]},writeRawMessage:function(t,e){this.pos++;var r=this.pos;t(e,this);var i=this.pos-r;i&gt;=128&amp;&amp;nl(r,i,this),this.pos=r-1,this.writeVarint(i),this.pos+=i},writeMessage:function(t,e,r){this.writeTag(t,el.Bytes),this.writeRawMessage(e,r)},writePackedVarint:function(t,e){e.length&amp;&amp;this.writeMessage(t,ol,e)},writePackedSVarint:function(t,e){e.length&amp;&amp;this.writeMessage(t,al,e)},writePackedBoolean:function(t,e){e.length&amp;&amp;this.writeMessage(t,ul,e)},writePackedFloat:function(t,e){e.length&amp;&amp;this.writeMessage(t,sl,e)},writePackedDouble:function(t,e){e.length&amp;&amp;this.writeMessage(t,ll,e)},writePackedFixed32:function(t,e){e.length&amp;&amp;this.writeMessage(t,cl,e)},writePackedSFixed32:function(t,e){e.length&amp;&amp;this.writeMessage(t,pl,e)},writePackedFixed64:function(t,e){e.length&amp;&amp;this.writeMessage(t,hl,e)},writePackedSFixed64:function(t,e){e.length&amp;&amp;this.writeMessage(t,dl,e)},writeBytesField:function(t,e){this.writeTag(t,el.Bytes),this.writeBytes(e)},writeFixed32Field:function(t,e){this.writeTag(t,el.Fixed32),this.writeFixed32(e)},writeSFixed32Field:function(t,e){this.writeTag(t,el.Fixed32),this.writeSFixed32(e)},writeFixed64Field:function(t,e){this.writeTag(t,el.Fixed64),this.writeFixed64(e)},writeSFixed64Field:function(t,e){this.writeTag(t,el.Fixed64),this.writeSFixed64(e)},writeVarintField:function(t,e){this.writeTag(t,el.Varint),this.writeVarint(e)},writeSVarintField:function(t,e){this.writeTag(t,el.Varint),this.writeSVarint(e)},writeStringField:function(t,e){this.writeTag(t,el.Bytes),this.writeString(e)},writeFloatField:function(t,e){this.writeTag(t,el.Fixed32),this.writeFloat(e)},writeDoubleField:function(t,e){this.writeTag(t,el.Fixed64),this.writeDouble(e)},writeBooleanField:function(t,e){this.writeVarintField(t,Boolean(e))}};var gl=3;function vl(t,e,r){1===t&amp;&amp;r.readMessage(_l,e)}function _l(t,e,r){if(3===t){var i=r.readMessage(xl,{}),n=i.id,o=i.bitmap,a=i.width,s=i.height,l=i.left,u=i.top,c=i.advance;e.push({id:n,bitmap:new Ro({width:a+2*gl,height:s+2*gl},o),metrics:{width:a,height:s,left:l,top:u,advance:c}})}}function xl(t,e,r){1===t?e.id=r.readVarint():2===t?e.bitmap=r.readBytes():3===t?e.width=r.readVarint():4===t?e.height=r.readVarint():5===t?e.left=r.readSVarint():6===t?e.top=r.readSVarint():7===t&amp;&amp;(e.advance=r.readVarint())}var bl=gl,wl=function(t){var e=this;this._callback=t,this._triggered=!1,"undefined"!=typeof MessageChannel&amp;&amp;(this._channel=new MessageChannel,this._channel.port2.onmessage=function(){e._triggered=!1,e._callback()})};wl.prototype.trigger=function(){var t=this;this._triggered||(this._triggered=!0,this._channel?this._channel.port1.postMessage(!0):setTimeout((function(){t._triggered=!1,t._callback()}),0))};var Sl=function(t,e,r){this.target=t,this.parent=e,this.mapId=r,this.callbacks={},this.tasks={},this.taskQueue=[],this.cancelCallbacks={},y(["receive","process"],this),this.invoker=new wl(this.process),this.target.addEventListener("message",this.receive,!1)};function El(t,e,r){var i=2*Math.PI*6378137/256/Math.pow(2,r);return[t*i-2*Math.PI*6378137/2,e*i-2*Math.PI*6378137/2]}Sl.prototype.send=function(t,e,r,i){var n=this,o=Math.round(1e18*Math.random()).toString(36).substring(0,10);r&amp;&amp;(this.callbacks[o]=r);var a=[];return this.target.postMessage({id:o,type:t,hasCallback:!!r,targetMapId:i,sourceMapId:this.mapId,data:gi(e,a)},a),{cancel:function(){r&amp;&amp;delete n.callbacks[o],n.target.postMessage({id:o,type:"&lt;cancel&gt;",targetMapId:i,sourceMapId:n.mapId})}}},Sl.prototype.receive=function(t){var e=t.data,r=e.id;if(r&amp;&amp;(!e.targetMapId||this.mapId===e.targetMapId))if("&lt;cancel&gt;"===e.type){delete this.tasks[r];var i=this.cancelCallbacks[r];delete this.cancelCallbacks[r],i&amp;&amp;i()}else this.tasks[r]=e,this.taskQueue.push(r),this.invoker.trigger()},Sl.prototype.process=function(){var t=this;if(this.taskQueue.length){var e=this.taskQueue.shift(),r=this.tasks[e];if(delete this.tasks[e],this.taskQueue.length&amp;&amp;this.invoker.trigger(),r)if("&lt;response&gt;"===r.type){var i=this.callbacks[e];delete this.callbacks[e],i&amp;&amp;(r.error?i(vi(r.error)):i(null,vi(r.data)))}else{var n=!1,o=r.hasCallback?function(r,i){n=!0,delete t.cancelCallbacks[e];var o=[];t.target.postMessage({id:e,type:"&lt;response&gt;",sourceMapId:t.mapId,error:r?gi(r):null,data:gi(i,o)},o)}:function(t){n=!0},a=null,s=vi(r.data);if(this.parent[r.type])a=this.parent[r.type](r.sourceMapId,s,o);else if(this.parent.getWorkerSource){var l=r.type.split(".");a=this.parent.getWorkerSource(r.sourceMapId,l[0],s.source)[l[1]](s,o)}else o(new Error("Could not find function "+r.type));!n&amp;&amp;a&amp;&amp;a.cancel&amp;&amp;(this.cancelCallbacks[e]=a.cancel)}}},Sl.prototype.remove=function(){this.target.removeEventListener("message",this.receive,!1)};var kl=function(t,e){t&amp;&amp;(e?this.setSouthWest(t).setNorthEast(e):4===t.length?this.setSouthWest([t[0],t[1]]).setNorthEast([t[2],t[3]]):this.setSouthWest(t[0]).setNorthEast(t[1]))};kl.prototype.setNorthEast=function(t){return this._ne=t instanceof Tl?new Tl(t.lng,t.lat):Tl.convert(t),this},kl.prototype.setSouthWest=function(t){return this._sw=t instanceof Tl?new Tl(t.lng,t.lat):Tl.convert(t),this},kl.prototype.extend=function(t){var e,r,i=this._sw,n=this._ne;if(t instanceof Tl)e=t,r=t;else{if(!(t instanceof kl))return Array.isArray(t)?t.every(Array.isArray)?this.extend(kl.convert(t)):this.extend(Tl.convert(t)):this;if(e=t._sw,r=t._ne,!e||!r)return this}return i||n?(i.lng=Math.min(e.lng,i.lng),i.lat=Math.min(e.lat,i.lat),n.lng=Math.max(r.lng,n.lng),n.lat=Math.max(r.lat,n.lat)):(this._sw=new Tl(e.lng,e.lat),this._ne=new Tl(r.lng,r.lat)),this},kl.prototype.getCenter=function(){return new Tl((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},kl.prototype.getSouthWest=function(){return this._sw},kl.prototype.getNorthEast=function(){return this._ne},kl.prototype.getNorthWest=function(){return new Tl(this.getWest(),this.getNorth())},kl.prototype.getSouthEast=function(){return new Tl(this.getEast(),this.getSouth())},kl.prototype.getWest=function(){return this._sw.lng},kl.prototype.getSouth=function(){return this._sw.lat},kl.prototype.getEast=function(){return this._ne.lng},kl.prototype.getNorth=function(){return this._ne.lat},kl.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},kl.prototype.toString=function(){return"LngLatBounds("+this._sw.toString()+", "+this._ne.toString()+")"},kl.prototype.isEmpty=function(){return!(this._sw&amp;&amp;this._ne)},kl.convert=function(t){return!t||t instanceof kl?t:new kl(t)};var Tl=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid LngLat object: ("+t+", "+e+")");if(this.lng=+t,this.lat=+e,this.lat&gt;90||this.lat&lt;-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")};Tl.prototype.wrap=function(){return new Tl(c(this.lng,-180,180),this.lat)},Tl.prototype.toArray=function(){return[this.lng,this.lat]},Tl.prototype.toString=function(){return"LngLat("+this.lng+", "+this.lat+")"},Tl.prototype.toBounds=function(t){void 0===t&amp;&amp;(t=0);var e=360*t/40075017,r=e/Math.cos(Math.PI/180*this.lat);return new kl(new Tl(this.lng-r,this.lat-e),new Tl(this.lng+r,this.lat+e))},Tl.convert=function(t){if(t instanceof Tl)return t;if(Array.isArray(t)&amp;&amp;(2===t.length||3===t.length))return new Tl(Number(t[0]),Number(t[1]));if(!Array.isArray(t)&amp;&amp;"object"==typeof t&amp;&amp;null!==t)return new Tl(Number("lng"in t?t.lng:t.lon),Number(t.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: &lt;lng&gt;, lat: &lt;lat&gt;}, an object {lon: &lt;lng&gt;, lat: &lt;lat&gt;}, or an array of [&lt;lng&gt;, &lt;lat&gt;]")};var Al=2*Math.PI*6378137;function Cl(t){return Al*Math.cos(t*Math.PI/180)}function Il(t){return(180+t)/360}function Pl(t){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t*Math.PI/360)))/360}function Ml(t,e){return t/Cl(e)}function zl(t){var e=180-360*t;return 360/Math.PI*Math.atan(Math.exp(e*Math.PI/180))-90}var Dl=function(t,e,r){void 0===r&amp;&amp;(r=0),this.x=+t,this.y=+e,this.z=+r};Dl.fromLngLat=function(t,e){void 0===e&amp;&amp;(e=0);var r=Tl.convert(t);return new Dl(Il(r.lng),Pl(r.lat),Ml(e,r.lat))},Dl.prototype.toLngLat=function(){return new Tl(360*this.x-180,zl(this.y))},Dl.prototype.toAltitude=function(){return this.z*Cl(zl(this.y))},Dl.prototype.meterInMercatorCoordinateUnits=function(){return 1/Al*(t=zl(this.y),1/Math.cos(t*Math.PI/180));var t};var Ll=function(t,e,r){this.z=t,this.x=e,this.y=r,this.key=Bl(0,t,e,r)};Ll.prototype.equals=function(t){return this.z===t.z&amp;&amp;this.x===t.x&amp;&amp;this.y===t.y},Ll.prototype.url=function(t,e){var r,i,n,o,a,s=(r=this.x,i=this.y,n=this.z,o=El(256*r,256*(i=Math.pow(2,n)-i-1),n),a=El(256*(r+1),256*(i+1),n),o[0]+","+o[1]+","+a[0]+","+a[1]),l=function(t,e,r){for(var i,n="",o=t;o&gt;0;o--)n+=(e&amp;(i=1&lt;&lt;o-1)?1:0)+(r&amp;i?2:0);return n}(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}",l).replace("{bbox-epsg-3857}",s)},Ll.prototype.getTilePoint=function(t){var e=Math.pow(2,this.z);return new n((t.x*e-this.x)*no,(t.y*e-this.y)*no)};var Rl=function(t,e){this.wrap=t,this.canonical=e,this.key=Bl(t,e.z,e.x,e.y)},Ol=function(t,e,r,i,n){this.overscaledZ=t,this.wrap=e,this.canonical=new Ll(r,+i,+n),this.key=Bl(e,t,i,n)};function Bl(t,e,r,i){(t*=2)&lt;0&amp;&amp;(t=-1*t-1);var n=1&lt;&lt;e;return 32*(n*n*t+n*i+r)+e}Ol.prototype.equals=function(t){return this.overscaledZ===t.overscaledZ&amp;&amp;this.wrap===t.wrap&amp;&amp;this.canonical.equals(t.canonical)},Ol.prototype.scaledTo=function(t){var e=this.canonical.z-t;return t&gt;this.canonical.z?new Ol(t,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new Ol(t,this.wrap,t,this.canonical.x&gt;&gt;e,this.canonical.y&gt;&gt;e)},Ol.prototype.isChildOf=function(t){if(t.wrap!==this.wrap)return!1;var e=this.canonical.z-t.canonical.z;return 0===t.overscaledZ||t.overscaledZ&lt;this.overscaledZ&amp;&amp;t.canonical.x===this.canonical.x&gt;&gt;e&amp;&amp;t.canonical.y===this.canonical.y&gt;&gt;e},Ol.prototype.children=function(t){if(this.overscaledZ&gt;=t)return[new Ol(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var e=this.canonical.z+1,r=2*this.canonical.x,i=2*this.canonical.y;return[new Ol(e,this.wrap,e,r,i),new Ol(e,this.wrap,e,r+1,i),new Ol(e,this.wrap,e,r,i+1),new Ol(e,this.wrap,e,r+1,i+1)]},Ol.prototype.isLessThan=function(t){return this.wrap&lt;t.wrap||!(this.wrap&gt;t.wrap)&amp;&amp;(this.overscaledZ&lt;t.overscaledZ||!(this.overscaledZ&gt;t.overscaledZ)&amp;&amp;(this.canonical.x&lt;t.canonical.x||!(this.canonical.x&gt;t.canonical.x)&amp;&amp;this.canonical.y&lt;t.canonical.y))},Ol.prototype.wrapped=function(){return new Ol(this.overscaledZ,0,this.canonical.z,this.canonical.x,this.canonical.y)},Ol.prototype.unwrapTo=function(t){return new Ol(this.overscaledZ,t,this.canonical.z,this.canonical.x,this.canonical.y)},Ol.prototype.overscaleFactor=function(){return Math.pow(2,this.overscaledZ-this.canonical.z)},Ol.prototype.toUnwrapped=function(){return new Rl(this.wrap,this.canonical)},Ol.prototype.toString=function(){return this.overscaledZ+"/"+this.canonical.x+"/"+this.canonical.y},Ol.prototype.getTilePoint=function(t){return this.canonical.getTilePoint(new Dl(t.x-this.wrap,t.y))},mi("CanonicalTileID",Ll),mi("OverscaledTileID",Ol,{omit:["posMatrix"]});var Fl=function(t,e,r){if(this.uid=t,e.height!==e.width)throw new RangeError("DEM tiles must be square");if(r&amp;&amp;"mapbox"!==r&amp;&amp;"terrarium"!==r)return w('"'+r+'" is not a valid encoding type. Valid types include "mapbox" and "terrarium".');var i=this.dim=e.height;this.stride=this.dim+2,this.data=new Int32Array(this.stride*this.stride);for(var n=e.data,o="terrarium"===r?this._unpackTerrarium:this._unpackMapbox,a=0;a&lt;i;a++)for(var s=0;s&lt;i;s++){var l=4*(a*i+s);this.set(s,a,o(n[l],n[l+1],n[l+2]))}for(var u=0;u&lt;i;u++)this.set(-1,u,this.get(0,u)),this.set(i,u,this.get(i-1,u)),this.set(u,-1,this.get(u,0)),this.set(u,i,this.get(u,i-1));this.set(-1,-1,this.get(0,0)),this.set(i,-1,this.get(i-1,0)),this.set(-1,i,this.get(0,i-1)),this.set(i,i,this.get(i-1,i-1))};Fl.prototype.set=function(t,e,r){this.data[this._idx(t,e)]=r+65536},Fl.prototype.get=function(t,e){return this.data[this._idx(t,e)]-65536},Fl.prototype._idx=function(t,e){if(t&lt;-1||t&gt;=this.dim+1||e&lt;-1||e&gt;=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(e+1)*this.stride+(t+1)},Fl.prototype._unpackMapbox=function(t,e,r){return(256*t*256+256*e+r)/10-1e4},Fl.prototype._unpackTerrarium=function(t,e,r){return 256*t+e+r/256-32768},Fl.prototype.getPixels=function(){return new Oo({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},Fl.prototype.backfillBorder=function(t,e,r){if(this.dim!==t.dim)throw new Error("dem dimension mismatch");var i=e*this.dim,n=e*this.dim+this.dim,o=r*this.dim,a=r*this.dim+this.dim;switch(e){case-1:i=n-1;break;case 1:n=i+1}switch(r){case-1:o=a-1;break;case 1:a=o+1}for(var s=-e*this.dim,l=-r*this.dim,u=o;u&lt;a;u++)for(var c=i;c&lt;n;c++)this.set(c,u,t.get(c+s,u+l))},mi("DEMData",Fl);var jl=Ki([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),Ul=function(t){this._stringToNumber={},this._numberToString=[];for(var e=0;e&lt;t.length;e++){var r=t[e];this._stringToNumber[r]=e,this._numberToString[e]=r}};Ul.prototype.encode=function(t){return this._stringToNumber[t]},Ul.prototype.decode=function(t){return this._numberToString[t]};var Nl=function(t,e,r,i){this.type="Feature",this._vectorTileFeature=t,t._z=e,t._x=r,t._y=i,this.properties=t.properties,null!=t.id&amp;&amp;(this.id=t.id)},Vl={geometry:{configurable:!0}};Vl.geometry.get=function(){return void 0===this._geometry&amp;&amp;(this._geometry=this._vectorTileFeature.toGeoJSON(this._vectorTileFeature._x,this._vectorTileFeature._y,this._vectorTileFeature._z).geometry),this._geometry},Vl.geometry.set=function(t){this._geometry=t},Nl.prototype.toJSON=function(){var t={geometry:this.geometry};for(var e in this)"_geometry"!==e&amp;&amp;"_vectorTileFeature"!==e&amp;&amp;(t[e]=this[e]);return t},Object.defineProperties(Nl.prototype,Vl);var ql=function(){this.state={},this.stateChanges={},this.deletedStates={}};ql.prototype.updateState=function(t,e,r){var i=String(e);if(this.stateChanges[t]=this.stateChanges[t]||{},this.stateChanges[t][i]=this.stateChanges[t][i]||{},p(this.stateChanges[t][i],r),null===this.deletedStates[t])for(var n in this.deletedStates[t]={},this.state[t])n!==i&amp;&amp;(this.deletedStates[t][n]=null);else if(this.deletedStates[t]&amp;&amp;null===this.deletedStates[t][i])for(var o in this.deletedStates[t][i]={},this.state[t][i])r[o]||(this.deletedStates[t][i][o]=null);else for(var a in r)this.deletedStates[t]&amp;&amp;this.deletedStates[t][i]&amp;&amp;null===this.deletedStates[t][i][a]&amp;&amp;delete this.deletedStates[t][i][a]},ql.prototype.removeFeatureState=function(t,e,r){if(null!==this.deletedStates[t]){var i=String(e);if(this.deletedStates[t]=this.deletedStates[t]||{},r&amp;&amp;void 0!==e&amp;&amp;e&gt;=0)null!==this.deletedStates[t][i]&amp;&amp;(this.deletedStates[t][i]=this.deletedStates[t][i]||{},this.deletedStates[t][i][r]=null);else if(void 0!==e&amp;&amp;e&gt;=0)if(this.stateChanges[t]&amp;&amp;this.stateChanges[t][i])for(r in this.deletedStates[t][i]={},this.stateChanges[t][i])this.deletedStates[t][i][r]=null;else this.deletedStates[t][i]=null;else this.deletedStates[t]=null}},ql.prototype.getState=function(t,e){var r=String(e),i=this.state[t]||{},n=this.stateChanges[t]||{},o=p({},i[r],n[r]);if(null===this.deletedStates[t])return{};if(this.deletedStates[t]){var a=this.deletedStates[t][e];if(null===a)return{};for(var s in a)delete o[s]}return o},ql.prototype.initializeTileState=function(t,e){t.setFeatureState(this.state,e)},ql.prototype.coalesceChanges=function(t,e){var r={};for(var i in this.stateChanges){this.state[i]=this.state[i]||{};var n={};for(var o in this.stateChanges[i])this.state[i][o]||(this.state[i][o]={}),p(this.state[i][o],this.stateChanges[i][o]),n[o]=this.state[i][o];r[i]=n}for(var a in this.deletedStates){this.state[a]=this.state[a]||{};var s={};if(null===this.deletedStates[a])for(var l in this.state[a])s[l]={},this.state[a][l]={};else for(var u in this.deletedStates[a]){if(null===this.deletedStates[a][u])this.state[a][u]={};else for(var c=0,h=Object.keys(this.deletedStates[a][u]);c&lt;h.length;c+=1){var d=h[c];delete this.state[a][u][d]}s[u]=this.state[a][u]}r[a]=r[a]||{},p(r[a],s)}if(this.stateChanges={},this.deletedStates={},0!==Object.keys(r).length)for(var f in t)t[f].setFeatureState(r,e)};var Wl=function(t,e,r){this.tileID=t,this.x=t.canonical.x,this.y=t.canonical.y,this.z=t.canonical.z,this.grid=e||new ci(no,16,0),this.grid3D=new ci(no,16,0),this.featureIndexArray=r||new zn};function Gl(t){for(var e=1/0,r=1/0,i=-1/0,n=-1/0,o=0,a=t;o&lt;a.length;o+=1){var s=a[o];e=Math.min(e,s.x),r=Math.min(r,s.y),i=Math.max(i,s.x),n=Math.max(n,s.y)}return{minX:e,minY:r,maxX:i,maxY:n}}function Hl(t,e){return e-t}Wl.prototype.insert=function(t,e,r,i,n,o){var a=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(r,i,n);for(var s=o?this.grid3D:this.grid,l=0;l&lt;e.length;l++){for(var u=e[l],c=[1/0,1/0,-1/0,-1/0],p=0;p&lt;u.length;p++){var h=u[p];c[0]=Math.min(c[0],h.x),c[1]=Math.min(c[1],h.y),c[2]=Math.max(c[2],h.x),c[3]=Math.max(c[3],h.y)}c[0]&lt;no&amp;&amp;c[1]&lt;no&amp;&amp;c[2]&gt;=0&amp;&amp;c[3]&gt;=0&amp;&amp;s.insert(a,c[0],c[1],c[2],c[3])}},Wl.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new La.VectorTile(new tl(this.rawTileData)).layers,this.sourceLayerCoder=new Ul(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers},Wl.prototype.query=function(t,e,r){var i=this;this.loadVTLayers();for(var o=t.params||{},a=no/t.tileSize/t.scale,s=Fr(o.filter),l=t.queryGeometry,u=t.queryPadding*a,c=Gl(l),p=this.grid.query(c.minX-u,c.minY-u,c.maxX+u,c.maxY+u),h=Gl(t.cameraQueryGeometry),d=0,f=this.grid3D.query(h.minX-u,h.minY-u,h.maxX+u,h.maxY+u,(function(e,r,i,o){return function(t,e,r,i,o){for(var a=0,s=t;a&lt;s.length;a+=1){var l=s[a];if(e&lt;=l.x&amp;&amp;r&lt;=l.y&amp;&amp;i&gt;=l.x&amp;&amp;o&gt;=l.y)return!0}var u=[new n(e,r),new n(e,o),new n(i,o),new n(i,r)];if(t.length&gt;2)for(var c=0,p=u;c&lt;p.length;c+=1)if(_o(t,p[c]))return!0;for(var h=0;h&lt;t.length-1;h++)if(xo(t[h],t[h+1],u))return!0;return!1}(t.cameraQueryGeometry,e-u,r-u,i+u,o+u)}));d&lt;f.length;d+=1){var m=f[d];p.push(m)}p.sort(Hl);for(var y,g={},v=function(n){var u=p[n];if(u!==y){y=u;var c=i.featureIndexArray.get(u),h=null;i.loadMatchingFeature(g,c.bucketIndex,c.sourceLayerIndex,c.featureIndex,s,o.layers,e,(function(e,n){h||(h=ao(e));var o={};return e.id&amp;&amp;(o=r.getState(n.sourceLayer||"_geojsonTileLayer",e.id)),n.queryIntersectsFeature(l,e,o,h,i.z,t.transform,a,t.pixelPosMatrix)}))}},_=0;_&lt;p.length;_++)v(_);return g},Wl.prototype.loadMatchingFeature=function(t,e,r,i,n,o,a,s){var l=this.bucketLayerIDs[e];if(!o||function(t,e){for(var r=0;r&lt;t.length;r++)if(e.indexOf(t[r])&gt;=0)return!0;return!1}(o,l)){var u=this.sourceLayerCoder.decode(r),c=this.vtLayers[u].feature(i);if(n(new zi(this.tileID.overscaledZ),c))for(var p=0;p&lt;l.length;p++){var h=l[p];if(!(o&amp;&amp;o.indexOf(h)&lt;0)){var d=a[h];if(d){var f=!s||s(c,d);if(f){var m=new Nl(c,this.z,this.x,this.y);m.layer=d.serialize();var y=t[h];void 0===y&amp;&amp;(y=t[h]=[]),y.push({featureIndex:i,feature:m,intersectionZ:f})}}}}}},Wl.prototype.lookupSymbolFeatures=function(t,e,r,i,n,o){var a={};this.loadVTLayers();for(var s=Fr(i),l=0,u=t;l&lt;u.length;l+=1){var c=u[l];this.loadMatchingFeature(a,e,r,c,s,n,o)}return a},Wl.prototype.hasLayer=function(t){for(var e=0,r=this.bucketLayerIDs;e&lt;r.length;e+=1)for(var i=0,n=r[e];i&lt;n.length;i+=1)if(t===n[i])return!0;return!1},mi("FeatureIndex",Wl,{omit:["rawTileData","sourceLayerCoder"]});var Zl=function(t,e){this.tileID=t,this.uid=d(),this.uses=0,this.tileSize=e,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.hasSymbolBuckets=!1,this.expiredRequestCount=0,this.state="loading"};function Xl(t,e,r,i,n){if(void 0===e.segment)return!0;for(var o=e,a=e.segment+1,s=0;s&gt;-r/2;){if(--a&lt;0)return!1;s-=t[a].dist(o),o=t[a]}s+=t[a].dist(t[a+1]),a++;for(var l=[],u=0;s&lt;r/2;){var c=t[a-1],p=t[a],h=t[a+1];if(!h)return!1;var d=c.angleTo(p)-p.angleTo(h);for(d=Math.abs((d+3*Math.PI)%(2*Math.PI)-Math.PI),l.push({distance:s,angleDelta:d}),u+=d;s-l[0].distance&gt;i;)u-=l.shift().angleDelta;if(u&gt;n)return!1;a++,s+=p.dist(h)}return!0}function $l(t){for(var e=0,r=0;r&lt;t.length-1;r++)e+=t[r].dist(t[r+1]);return e}function Yl(t,e,r){return t?.6*e*r:0}function Kl(t,e){return Math.max(t?t.right-t.left:0,e?e.right-e.left:0)}function Jl(t,e,r,i,n,o){for(var a=Yl(r,n,o),s=Kl(r,i)*o,l=0,u=$l(t)/2,c=0;c&lt;t.length-1;c++){var p=t[c],h=t[c+1],d=p.dist(h);if(l+d&gt;u){var f=(u-l)/d,m=xe(p.x,h.x,f),y=xe(p.y,h.y,f),g=new xs(m,y,h.angleTo(p),c);return g._round(),!a||Xl(t,g,s,a,e)?g:void 0}l+=d}}function Ql(t,e,r,i,n,o,a,s,l){var u=Yl(i,o,a),c=Kl(i,n),p=c*a,h=0===t[0].x||t[0].x===l||0===t[0].y||t[0].y===l;return e-p&lt;e/4&amp;&amp;(e=p+e/4),function t(e,r,i,n,o,a,s,l,u){for(var c=a/2,p=$l(e),h=0,d=r-i,f=[],m=0;m&lt;e.length-1;m++){for(var y=e[m],g=e[m+1],v=y.dist(g),_=g.angleTo(y);d+i&lt;h+v;){var x=((d+=i)-h)/v,b=xe(y.x,g.x,x),w=xe(y.y,g.y,x);if(b&gt;=0&amp;&amp;b&lt;u&amp;&amp;w&gt;=0&amp;&amp;w&lt;u&amp;&amp;d-c&gt;=0&amp;&amp;d+c&lt;=p){var S=new xs(b,w,_,m);S._round(),n&amp;&amp;!Xl(e,S,a,n,o)||f.push(S)}}h+=v}return l||f.length||s||(f=t(e,h/2,i,n,o,a,s,!0,u)),f}(t,h?e/2*s%e:(c/2+2*o)*a*s%e,e,u,r,p,h,!1,l)}Zl.prototype.registerFadeDuration=function(t){var e=t+this.timeAdded;e&lt;L.now()||this.fadeEndTime&amp;&amp;e&lt;this.fadeEndTime||(this.fadeEndTime=e)},Zl.prototype.wasRequested=function(){return"errored"===this.state||"loaded"===this.state||"reloading"===this.state},Zl.prototype.loadVectorData=function(t,e,r){if(this.hasData()&amp;&amp;this.unloadVectorData(),this.state="loaded",t){for(var i in t.featureIndex&amp;&amp;(this.latestFeatureIndex=t.featureIndex,t.rawTileData?(this.latestRawTileData=t.rawTileData,this.latestFeatureIndex.rawTileData=t.rawTileData):this.latestRawTileData&amp;&amp;(this.latestFeatureIndex.rawTileData=this.latestRawTileData)),this.collisionBoxArray=t.collisionBoxArray,this.buckets=function(t,e){var r={};if(!e)return r;for(var i=function(){var t=o[n],i=t.layerIds.map((function(t){return e.getLayer(t)})).filter(Boolean);if(0!==i.length){t.layers=i,t.stateDependentLayerIds&amp;&amp;(t.stateDependentLayers=t.stateDependentLayerIds.map((function(t){return i.filter((function(e){return e.id===t}))[0]})));for(var a=0,s=i;a&lt;s.length;a+=1){var l=s[a];r[l.id]=t}}},n=0,o=t;n&lt;o.length;n+=1)i();return r}(t.buckets,e.style),this.hasSymbolBuckets=!1,this.buckets){var n=this.buckets[i];if(n instanceof zs){if(this.hasSymbolBuckets=!0,!r)break;n.justReloaded=!0}}for(var o in this.queryPadding=0,this.buckets){var a=this.buckets[o];this.queryPadding=Math.max(this.queryPadding,e.style.getLayer(o).queryRadius(a))}t.imageAtlas&amp;&amp;(this.imageAtlas=t.imageAtlas),t.glyphAtlasImage&amp;&amp;(this.glyphAtlasImage=t.glyphAtlasImage)}else this.collisionBoxArray=new wn},Zl.prototype.unloadVectorData=function(){for(var t in this.buckets)this.buckets[t].destroy();this.buckets={},this.imageAtlasTexture&amp;&amp;this.imageAtlasTexture.destroy(),this.imageAtlas&amp;&amp;(this.imageAtlas=null),this.glyphAtlasTexture&amp;&amp;this.glyphAtlasTexture.destroy(),this.latestFeatureIndex=null,this.state="unloaded"},Zl.prototype.unloadDEMData=function(){this.dem=null,this.neighboringTiles=null,this.state="unloaded"},Zl.prototype.getBucket=function(t){return this.buckets[t.id]},Zl.prototype.upload=function(t){for(var e in this.buckets){var r=this.buckets[e];r.uploadPending()&amp;&amp;r.upload(t)}var i=t.gl;this.imageAtlas&amp;&amp;!this.imageAtlas.uploaded&amp;&amp;(this.imageAtlasTexture=new Ks(t,this.imageAtlas.image,i.RGBA),this.imageAtlas.uploaded=!0),this.glyphAtlasImage&amp;&amp;(this.glyphAtlasTexture=new Ks(t,this.glyphAtlasImage,i.ALPHA),this.glyphAtlasImage=null)},Zl.prototype.prepare=function(t){this.imageAtlas&amp;&amp;this.imageAtlas.patchUpdatedImages(t,this.imageAtlasTexture)},Zl.prototype.queryRenderedFeatures=function(t,e,r,i,n,o,a,s,l){return this.latestFeatureIndex&amp;&amp;this.latestFeatureIndex.rawTileData?this.latestFeatureIndex.query({queryGeometry:r,cameraQueryGeometry:i,scale:n,tileSize:this.tileSize,pixelPosMatrix:l,transform:a,params:o,queryPadding:this.queryPadding*s},t,e):{}},Zl.prototype.querySourceFeatures=function(t,e){if(this.latestFeatureIndex&amp;&amp;this.latestFeatureIndex.rawTileData){var r=this.latestFeatureIndex.loadVTLayers(),i=e?e.sourceLayer:"",n=r._geojsonTileLayer||r[i];if(n)for(var o=Fr(e&amp;&amp;e.filter),a=this.tileID.canonical,s=a.z,l=a.x,u=a.y,c={z:s,x:l,y:u},p=0;p&lt;n.length;p++){var h=n.feature(p);if(o(new zi(this.tileID.overscaledZ),h)){var d=new Nl(h,s,l,u);d.tile=c,t.push(d)}}}},Zl.prototype.clearMask=function(){this.segments&amp;&amp;(this.segments.destroy(),delete this.segments),this.maskedBoundsBuffer&amp;&amp;(this.maskedBoundsBuffer.destroy(),delete this.maskedBoundsBuffer),this.maskedIndexBuffer&amp;&amp;(this.maskedIndexBuffer.destroy(),delete this.maskedIndexBuffer)},Zl.prototype.setMask=function(t,e){if(!a(this.mask,t)&amp;&amp;(this.mask=t,this.clearMask(),!a(t,{0:!0}))){var r=new tn,i=new yn;this.segments=new Ln,this.segments.prepareSegment(0,r,i);for(var o=Object.keys(t),s=0;s&lt;o.length;s++){var l=t[+o[s]],u=no&gt;&gt;l.z,c=new n(l.x*u,l.y*u),p=new n(c.x+u,c.y+u),h=this.segments.prepareSegment(4,r,i);r.emplaceBack(c.x,c.y,c.x,c.y),r.emplaceBack(p.x,c.y,p.x,c.y),r.emplaceBack(c.x,p.y,c.x,p.y),r.emplaceBack(p.x,p.y,p.x,p.y);var d=h.vertexLength;i.emplaceBack(d,d+1,d+2),i.emplaceBack(d+1,d+2,d+3),h.vertexLength+=4,h.primitiveLength+=2}this.maskedBoundsBuffer=e.createVertexBuffer(r,jl.members),this.maskedIndexBuffer=e.createIndexBuffer(i)}},Zl.prototype.hasData=function(){return"loaded"===this.state||"reloading"===this.state||"expired"===this.state},Zl.prototype.patternsLoaded=function(){return this.imageAtlas&amp;&amp;!!Object.keys(this.imageAtlas.patternPositions).length},Zl.prototype.setExpiryData=function(t){var e=this.expirationTime;if(t.cacheControl){var r=k(t.cacheControl);r["max-age"]&amp;&amp;(this.expirationTime=Date.now()+1e3*r["max-age"])}else t.expires&amp;&amp;(this.expirationTime=new Date(t.expires).getTime());if(this.expirationTime){var i=Date.now(),n=!1;if(this.expirationTime&gt;i)n=!1;else if(e)if(this.expirationTime&lt;e)n=!0;else{var o=this.expirationTime-e;o?this.expirationTime=i+Math.max(o,3e4):n=!0}else n=!0;n?(this.expiredRequestCount++,this.state="expired"):this.expiredRequestCount=0}},Zl.prototype.getExpiryTimeout=function(){if(this.expirationTime)return this.expiredRequestCount?1e3*(1&lt;&lt;Math.min(this.expiredRequestCount-1,31)):Math.min(this.expirationTime-(new Date).getTime(),Math.pow(2,31)-1)},Zl.prototype.setFeatureState=function(t,e){if(this.latestFeatureIndex&amp;&amp;this.latestFeatureIndex.rawTileData&amp;&amp;0!==Object.keys(t).length){var r=this.latestFeatureIndex.loadVTLayers();for(var i in this.buckets){var n=this.buckets[i],o=n.layers[0].sourceLayer||"_geojsonTileLayer",a=r[o],s=t[o];a&amp;&amp;s&amp;&amp;0!==Object.keys(s).length&amp;&amp;(n.update(s,a,this.imageAtlas&amp;&amp;this.imageAtlas.patternPositions||{}),e&amp;&amp;e.style&amp;&amp;(this.queryPadding=Math.max(this.queryPadding,e.style.getLayer(i).queryRadius(n))))}}},Zl.prototype.holdingForFade=function(){return void 0!==this.symbolFadeHoldUntil},Zl.prototype.symbolFadeFinished=function(){return!this.symbolFadeHoldUntil||this.symbolFadeHoldUntil&lt;L.now()},Zl.prototype.clearFadeHold=function(){this.symbolFadeHoldUntil=void 0},Zl.prototype.setHoldDuration=function(t){this.symbolFadeHoldUntil=L.now()+t};var tu=function(t,e,r,i,o,a,s,l,u,c,p,h){var d=s.top*l-u,f=s.bottom*l+u,m=s.left*l-u,y=s.right*l+u;if(this.boxStartIndex=t.length,c){var g=f-d,v=y-m;g&gt;0&amp;&amp;(g=Math.max(10*l,g),this._addLineCollisionCircles(t,e,r,r.segment,v,g,i,o,a,p))}else{if(h){var _=new n(m,d),x=new n(y,d),b=new n(m,f),w=new n(y,f),S=h*Math.PI/180;_._rotate(S),x._rotate(S),b._rotate(S),w._rotate(S),m=Math.min(_.x,x.x,b.x,w.x),y=Math.max(_.x,x.x,b.x,w.x),d=Math.min(_.y,x.y,b.y,w.y),f=Math.max(_.y,x.y,b.y,w.y)}t.emplaceBack(r.x,r.y,m,d,y,f,i,o,a,0,0)}this.boxEndIndex=t.length};tu.prototype._addLineCollisionCircles=function(t,e,r,i,n,o,a,s,l,u){var c=o/2,p=Math.floor(n/c)||1,h=1+.4*Math.log(u)/Math.LN2,d=Math.floor(p*h/2),f=-o/2,m=r,y=i+1,g=f,v=-n/2,_=v-n/4;do{if(--y&lt;0){if(g&gt;v)return;y=0;break}g-=e[y].dist(m),m=e[y]}while(g&gt;_);for(var x=e[y].dist(e[y+1]),b=-d;b&lt;p+d;b++){var w=b*c,S=v+w;if(w&lt;0&amp;&amp;(S+=w),w&gt;n&amp;&amp;(S+=w-n),!(S&lt;g)){for(;g+x&lt;S;){if(g+=x,1+ ++y&gt;=e.length)return;x=e[y].dist(e[y+1])}var E=S-g,k=e[y],T=e[y+1].sub(k)._unit()._mult(E)._add(k)._round(),A=Math.abs(S-f)&lt;c?0:.8*(S-f);t.emplaceBack(T.x,T.y,-o/2,-o/2,o/2,o/2,a,s,l,o/2,A)}}};var eu=function(t,e){if(void 0===t&amp;&amp;(t=[]),void 0===e&amp;&amp;(e=ru),this.data=t,this.length=this.data.length,this.compare=e,this.length&gt;0)for(var r=(this.length&gt;&gt;1)-1;r&gt;=0;r--)this._down(r)};function ru(t,e){return t&lt;e?-1:t&gt;e?1:0}function iu(t,e,r){void 0===e&amp;&amp;(e=1),void 0===r&amp;&amp;(r=!1);for(var i=1/0,o=1/0,a=-1/0,s=-1/0,l=t[0],u=0;u&lt;l.length;u++){var c=l[u];(!u||c.x&lt;i)&amp;&amp;(i=c.x),(!u||c.y&lt;o)&amp;&amp;(o=c.y),(!u||c.x&gt;a)&amp;&amp;(a=c.x),(!u||c.y&gt;s)&amp;&amp;(s=c.y)}var p=a-i,h=s-o,d=Math.min(p,h),f=d/2,m=new eu([],nu);if(0===d)return new n(i,o);for(var y=i;y&lt;a;y+=d)for(var g=o;g&lt;s;g+=d)m.push(new ou(y+f,g+f,f,t));for(var v=function(t){for(var e=0,r=0,i=0,n=t[0],o=0,a=n.length,s=a-1;o&lt;a;s=o++){var l=n[o],u=n[s],c=l.x*u.y-u.x*l.y;r+=(l.x+u.x)*c,i+=(l.y+u.y)*c,e+=3*c}return new ou(r/e,i/e,0,t)}(t),_=m.length;m.length;){var x=m.pop();(x.d&gt;v.d||!v.d)&amp;&amp;(v=x,r&amp;&amp;console.log("found best %d after %d probes",Math.round(1e4*x.d)/1e4,_)),x.max-v.d&lt;=e||(f=x.h/2,m.push(new ou(x.p.x-f,x.p.y-f,f,t)),m.push(new ou(x.p.x+f,x.p.y-f,f,t)),m.push(new ou(x.p.x-f,x.p.y+f,f,t)),m.push(new ou(x.p.x+f,x.p.y+f,f,t)),_+=4)}return r&amp;&amp;(console.log("num probes: "+_),console.log("best distance: "+v.d)),v.p}function nu(t,e){return e.max-t.max}function ou(t,e,r,i){this.p=new n(t,e),this.h=r,this.d=function(t,e){for(var r=!1,i=1/0,n=0;n&lt;e.length;n++)for(var o=e[n],a=0,s=o.length,l=s-1;a&lt;s;l=a++){var u=o[a],c=o[l];u.y&gt;t.y!=c.y&gt;t.y&amp;&amp;t.x&lt;(c.x-u.x)*(t.y-u.y)/(c.y-u.y)+u.x&amp;&amp;(r=!r),i=Math.min(i,go(t,u,c))}return(r?1:-1)*Math.sqrt(i)}(this.p,i),this.max=this.d+this.h*Math.SQRT2}eu.prototype.push=function(t){this.data.push(t),this.length++,this._up(this.length-1)},eu.prototype.pop=function(){if(0!==this.length){var t=this.data[0],e=this.data.pop();return this.length--,this.length&gt;0&amp;&amp;(this.data[0]=e,this._down(0)),t}},eu.prototype.peek=function(){return this.data[0]},eu.prototype._up=function(t){for(var e=this.data,r=this.compare,i=e[t];t&gt;0;){var n=t-1&gt;&gt;1,o=e[n];if(r(i,o)&gt;=0)break;e[t]=o,t=n}e[t]=i},eu.prototype._down=function(t){for(var e=this.data,r=this.compare,i=this.length&gt;&gt;1,n=e[t];t&lt;i;){var o=1+(t&lt;&lt;1),a=e[o],s=o+1;if(s&lt;this.length&amp;&amp;r(e[s],a)&lt;0&amp;&amp;(o=s,a=e[s]),r(a,n)&gt;=0)break;e[t]=a,t=o}e[t]=n};var au=e((function(t){t.exports=function(t,e){var r,i,n,o,a,s,l,u;for(r=3&amp;t.length,i=t.length-r,n=e,a=3432918353,s=461845907,u=0;u&lt;i;)l=255&amp;t.charCodeAt(u)|(255&amp;t.charCodeAt(++u))&lt;&lt;8|(255&amp;t.charCodeAt(++u))&lt;&lt;16|(255&amp;t.charCodeAt(++u))&lt;&lt;24,++u,n=27492+(65535&amp;(o=5*(65535&amp;(n=(n^=l=(65535&amp;(l=(l=(65535&amp;l)*a+(((l&gt;&gt;&gt;16)*a&amp;65535)&lt;&lt;16)&amp;4294967295)&lt;&lt;15|l&gt;&gt;&gt;17))*s+(((l&gt;&gt;&gt;16)*s&amp;65535)&lt;&lt;16)&amp;4294967295)&lt;&lt;13|n&gt;&gt;&gt;19))+((5*(n&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16)&amp;4294967295))+((58964+(o&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16);switch(l=0,r){case 3:l^=(255&amp;t.charCodeAt(u+2))&lt;&lt;16;case 2:l^=(255&amp;t.charCodeAt(u+1))&lt;&lt;8;case 1:n^=l=(65535&amp;(l=(l=(65535&amp;(l^=255&amp;t.charCodeAt(u)))*a+(((l&gt;&gt;&gt;16)*a&amp;65535)&lt;&lt;16)&amp;4294967295)&lt;&lt;15|l&gt;&gt;&gt;17))*s+(((l&gt;&gt;&gt;16)*s&amp;65535)&lt;&lt;16)&amp;4294967295}return n^=t.length,n=2246822507*(65535&amp;(n^=n&gt;&gt;&gt;16))+((2246822507*(n&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16)&amp;4294967295,n=3266489909*(65535&amp;(n^=n&gt;&gt;&gt;13))+((3266489909*(n&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16)&amp;4294967295,(n^=n&gt;&gt;&gt;16)&gt;&gt;&gt;0}})),su=e((function(t){t.exports=function(t,e){for(var r,i=t.length,n=e^i,o=0;i&gt;=4;)r=1540483477*(65535&amp;(r=255&amp;t.charCodeAt(o)|(255&amp;t.charCodeAt(++o))&lt;&lt;8|(255&amp;t.charCodeAt(++o))&lt;&lt;16|(255&amp;t.charCodeAt(++o))&lt;&lt;24))+((1540483477*(r&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16),n=1540483477*(65535&amp;n)+((1540483477*(n&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16)^(r=1540483477*(65535&amp;(r^=r&gt;&gt;&gt;24))+((1540483477*(r&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16)),i-=4,++o;switch(i){case 3:n^=(255&amp;t.charCodeAt(o+2))&lt;&lt;16;case 2:n^=(255&amp;t.charCodeAt(o+1))&lt;&lt;8;case 1:n=1540483477*(65535&amp;(n^=255&amp;t.charCodeAt(o)))+((1540483477*(n&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16)}return n=1540483477*(65535&amp;(n^=n&gt;&gt;&gt;13))+((1540483477*(n&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16),(n^=n&gt;&gt;&gt;15)&gt;&gt;&gt;0}})),lu=au,uu=au,cu=su;lu.murmur3=uu,lu.murmur2=cu;var pu=7;function hu(t,e){var r=0,i=0,n=e/Math.sqrt(2);switch(t){case"top-right":case"top-left":i=n-pu;break;case"bottom-right":case"bottom-left":i=-n+pu;break;case"bottom":i=-e+pu;break;case"top":i=e-pu}switch(t){case"top-right":case"bottom-right":r=-n;break;case"top-left":case"bottom-left":r=n;break;case"left":r=e;break;case"right":r=-e}return[r,i]}function du(t){switch(t){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}var fu=65535;function mu(t,e,r,i,o,a,s,l,u,c,p,h,d){var f=function(t,e,r,i,o,a,s,l){for(var u=i.layout.get("text-rotate").evaluate(a,{})*Math.PI/180,c=e.positionedGlyphs,p=[],h=0;h&lt;c.length;h++){var d=c[h],f=s[d.fontStack],m=f&amp;&amp;f[d.glyph];if(m){var y=m.rect;if(y){var g=bl+1,v=m.metrics.advance*d.scale/2,_=o?[d.x+v,d.y]:[0,0],x=o?[0,0]:[d.x+v+r[0],d.y+r[1]],b=(o||l)&amp;&amp;d.vertical,w=[0,0];b&amp;&amp;(w=x,x=[0,0]);var S=(m.metrics.left-g)*d.scale-v+x[0],E=(-m.metrics.top-g)*d.scale+x[1],k=S+y.w*d.scale,T=E+y.h*d.scale,A=new n(S,E),C=new n(k,E),I=new n(S,T),P=new n(k,T);if(b){var M=new n(-v,v-e.yOffset),z=-Math.PI/2,D=ls/2-v,L=new n(5-e.yOffset-D,0),R=new(Function.prototype.bind.apply(n,[null].concat(w)));A._rotateAround(z,M)._add(L)._add(R),C._rotateAround(z,M)._add(L)._add(R),I._rotateAround(z,M)._add(L)._add(R),P._rotateAround(z,M)._add(L)._add(R)}if(u){var O=Math.sin(u),B=Math.cos(u),F=[B,-O,O,B];A._matMult(F),C._matMult(F),I._matMult(F),P._matMult(F)}p.push({tl:A,tr:C,bl:I,br:P,tex:y,writingMode:e.writingMode,glyphOffset:_,sectionIndex:d.sectionIndex})}}}return p}(0,r,s,i,o,a,h,t.allowVerticalPlacement),m=t.textSizeData,y=null;"source"===m.kind?(y=[bs*i.layout.get("text-size").evaluate(a,{})])[0]&gt;fu&amp;&amp;w(t.layerIds[0]+': Value for "text-size" is &gt;= 256. Reduce your "text-size".'):"composite"===m.kind&amp;&amp;((y=[bs*d.compositeTextSizes[0].evaluate(a,{}),bs*d.compositeTextSizes[1].evaluate(a,{})])[0]&gt;fu||y[1]&gt;fu)&amp;&amp;w(t.layerIds[0]+': Value for "text-size" is &gt;= 256. Reduce your "text-size".'),t.addSymbols(t.text,f,y,s,o,a,u,e,l.lineStartIndex,l.lineLength);for(var g=0,v=c;g&lt;v.length;g+=1)p[v[g]]=t.text.placedSymbolArray.length-1;return 4*f.length}function yu(t){for(var e in t)return t[e];return null}function gu(t,e,r,i){var n=t.compareText;if(e in n){for(var o=n[e],a=o.length-1;a&gt;=0;a--)if(i.dist(o[a])&lt;r)return!0}else n[e]=[];return n[e].push(i),!1}t.Actor=Sl,t.AlphaImage=Ro,t.CanonicalTileID=Ll,t.CollisionBoxArray=wn,t.Color=$t,t.DEMData=Fl,t.DataConstantProperty=Ni,t.DictionaryCoder=Ul,t.EXTENT=no,t.ErrorEvent=Et,t.EvaluationParameters=zi,t.Event=St,t.Evented=kt,t.FeatureIndex=Wl,t.FillBucket=ba,t.FillExtrusionBucket=Fa,t.ImageAtlas=Hs,t.ImagePosition=Ws,t.LineBucket=$a,t.LngLat=Tl,t.LngLatBounds=kl,t.MercatorCoordinate=Dl,t.ONE_EM=ls,t.OverscaledTileID=Ol,t.Point=n,t.Point$1=n,t.ProgramConfiguration=Qn,t.Properties=Hi,t.Protobuf=tl,t.RGBAImage=Oo,t.RequestManager=N,t.ResourceType=ct,t.SegmentVector=Ln,t.SourceFeatureState=ql,t.StructArrayLayout1ui2=vn,t.StructArrayLayout2i4=Qi,t.StructArrayLayout2ui4=gn,t.StructArrayLayout3ui6=yn,t.StructArrayLayout4i8=tn,t.SymbolBucket=zs,t.Texture=Ks,t.Tile=Zl,t.Transitionable=Ri,t.Uniform1f=Un,t.Uniform1i=jn,t.Uniform2f=Nn,t.Uniform3f=Vn,t.Uniform4f=qn,t.UniformColor=Wn,t.UniformMatrix4f=Hn,t.UnwrappedTileID=Rl,t.ValidationError=At,t.WritingMode=us,t.ZoomHistory=_i,t.addDynamicAttributes=Is,t.asyncAll=function(t,e,r){if(!t.length)return r(null,[]);var i=t.length,n=new Array(t.length),o=null;t.forEach((function(t,a){e(t,(function(t,e){t&amp;&amp;(o=t),n[a]=e,0==--i&amp;&amp;r(o,n)}))}))},t.bezier=s,t.bindAll=y,t.browser=L,t.cacheEntryPossiblyAdded=function(t){++ut&gt;nt&amp;&amp;(t.getActor().send("enforceCacheSizeLimit",it),ut=0)},t.clamp=u,t.clearTileCache=function(t){var e=self.caches.delete(rt);t&amp;&amp;e.catch(t).then((function(){return t()}))},t.clone=function(t){var e=new Ao(16);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e},t.clone$1=x,t.config=R,t.create=function(){var t=new Ao(16);return Ao!=Float32Array&amp;&amp;(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0),t[0]=1,t[5]=1,t[10]=1,t[15]=1,t},t.create$1=function(){var t=new Ao(9);return Ao!=Float32Array&amp;&amp;(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t},t.create$2=function(){var t=new Ao(4);return Ao!=Float32Array&amp;&amp;(t[1]=0,t[2]=0),t[0]=1,t[3]=1,t},t.createCommonjsModule=e,t.createExpression=kr,t.createLayout=Ki,t.createStyleLayer=function(t){return"custom"===t.type?new Ns(t):new Vs[t.type](t)},t.deepEqual=a,t.ease=l,t.emitValidationErrors=ui,t.endsWith=g,t.enforceCacheSizeLimit=function(t){self.caches&amp;&amp;self.caches.open(rt).then((function(e){e.keys().then((function(r){for(var i=0;i&lt;r.length-t;i++)e.delete(r[i])}))}))},t.evaluateRadialOffset=hu,t.evaluateSizeForFeature=Ss,t.evaluateSizeForZoom=Es,t.evented=Pi,t.extend=p,t.featureFilter=Fr,t.filterObject=_,t.fromRotation=function(t,e){var r=Math.sin(e),i=Math.cos(e);return t[0]=i,t[1]=r,t[2]=0,t[3]=-r,t[4]=i,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},t.getAnchorAlignment=vs,t.getAnchorJustification=du,t.getArrayBuffer=vt,t.getImage=xt,t.getJSON=function(t,e){return gt(p(t,{type:"json"}),e)},t.getReferrer=dt,t.getVideo=function(t,e){var r,i,n=self.document.createElement("video");n.muted=!0,n.onloadstart=function(){e(null,n)};for(var o=0;o&lt;t.length;o++){var a=self.document.createElement("source");r=t[o],i=void 0,(i=self.document.createElement("a")).href=r,(i.protocol!==self.document.location.protocol||i.host!==self.document.location.host)&amp;&amp;(n.crossOrigin="Anonymous"),a.src=t[o],n.appendChild(a)}return{cancel:function(){}}},t.identity=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},t.invert=function(t,e){var r=e[0],i=e[1],n=e[2],o=e[3],a=e[4],s=e[5],l=e[6],u=e[7],c=e[8],p=e[9],h=e[10],d=e[11],f=e[12],m=e[13],y=e[14],g=e[15],v=r*s-i*a,_=r*l-n*a,x=r*u-o*a,b=i*l-n*s,w=i*u-o*s,S=n*u-o*l,E=c*m-p*f,k=c*y-h*f,T=c*g-d*f,A=p*y-h*m,C=p*g-d*m,I=h*g-d*y,P=v*I-_*C+x*A+b*T-w*k+S*E;return P?(P=1/P,t[0]=(s*I-l*C+u*A)*P,t[1]=(n*C-i*I-o*A)*P,t[2]=(m*S-y*w+g*b)*P,t[3]=(h*w-p*S-d*b)*P,t[4]=(l*T-a*I-u*k)*P,t[5]=(r*I-n*T+o*k)*P,t[6]=(y*x-f*S-g*_)*P,t[7]=(c*S-h*x+d*_)*P,t[8]=(a*C-s*T+u*E)*P,t[9]=(i*T-r*C-o*E)*P,t[10]=(f*w-m*x+g*v)*P,t[11]=(p*x-c*w-d*v)*P,t[12]=(s*k-a*A-l*E)*P,t[13]=(r*A-i*k+n*E)*P,t[14]=(m*_-f*b-y*v)*P,t[15]=(c*b-p*_+h*v)*P,t):null},t.isChar=xi,t.isMapboxURL=V,t.keysDifference=function(t,e){var r=[];for(var i in t)i in e||r.push(i);return r},t.makeRequest=gt,t.mapObject=v,t.mercatorXfromLng=Il,t.mercatorYfromLat=Pl,t.mercatorZfromAltitude=Ml,t.multiply=function(t,e,r){var i=e[0],n=e[1],o=e[2],a=e[3],s=e[4],l=e[5],u=e[6],c=e[7],p=e[8],h=e[9],d=e[10],f=e[11],m=e[12],y=e[13],g=e[14],v=e[15],_=r[0],x=r[1],b=r[2],w=r[3];return t[0]=_*i+x*s+b*p+w*m,t[1]=_*n+x*l+b*h+w*y,t[2]=_*o+x*u+b*d+w*g,t[3]=_*a+x*c+b*f+w*v,_=r[4],x=r[5],b=r[6],w=r[7],t[4]=_*i+x*s+b*p+w*m,t[5]=_*n+x*l+b*h+w*y,t[6]=_*o+x*u+b*d+w*g,t[7]=_*a+x*c+b*f+w*v,_=r[8],x=r[9],b=r[10],w=r[11],t[8]=_*i+x*s+b*p+w*m,t[9]=_*n+x*l+b*h+w*y,t[10]=_*o+x*u+b*d+w*g,t[11]=_*a+x*c+b*f+w*v,_=r[12],x=r[13],b=r[14],w=r[15],t[12]=_*i+x*s+b*p+w*m,t[13]=_*n+x*l+b*h+w*y,t[14]=_*o+x*u+b*d+w*g,t[15]=_*a+x*c+b*f+w*v,t},t.mvt=La,t.number=xe,t.ortho=function(t,e,r,i,n,o,a){var s=1/(e-r),l=1/(i-n),u=1/(o-a);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*u,t[11]=0,t[12]=(e+r)*s,t[13]=(n+i)*l,t[14]=(a+o)*u,t[15]=1,t},t.parseGlyphPBF=function(t){return new tl(t).readFields(vl,[])},t.pbf=tl,t.performSymbolLayout=function(t,e,r,i,o,a){t.createArrays();var s=512*t.overscaling;t.tilePixelRatio=no/s,t.compareText={},t.iconsNeedLinear=!1;var l=t.layers[0].layout,u=t.layers[0]._unevaluatedLayout._values,c={};if("composite"===t.textSizeData.kind){var p=t.textSizeData,h=p.minZoom,d=p.maxZoom;c.compositeTextSizes=[u["text-size"].possiblyEvaluate(new zi(h)),u["text-size"].possiblyEvaluate(new zi(d))]}if("composite"===t.iconSizeData.kind){var f=t.iconSizeData,m=f.minZoom,y=f.maxZoom;c.compositeIconSizes=[u["icon-size"].possiblyEvaluate(new zi(m)),u["icon-size"].possiblyEvaluate(new zi(y))]}c.layoutTextSize=u["text-size"].possiblyEvaluate(new zi(t.zoom+1)),c.layoutIconSize=u["icon-size"].possiblyEvaluate(new zi(t.zoom+1)),c.textMaxSize=u["text-size"].possiblyEvaluate(new zi(18));for(var g=l.get("text-line-height")*ls,v="map"===l.get("text-rotation-alignment")&amp;&amp;"point"!==l.get("symbol-placement"),_=l.get("text-keep-upright"),x=function(){var a=S[b],s=l.get("text-font").evaluate(a,{}).join(","),u=r,p={horizontal:{},vertical:void 0},h=a.text,d=[0,0];if(h){var f=h.toString(),m=l.get("text-letter-spacing").evaluate(a,{})*ls,y=function(t){for(var e=0,r=t;e&lt;r.length;e+=1)if(!wi(r[e].charCodeAt(0)))return!1;return!0}(f)?m:0,x=l.get("text-anchor").evaluate(a,{}),E=l.get("text-variable-anchor"),k=l.get("text-radial-offset").evaluate(a,{});E||(d=k?hu(x,k*ls):l.get("text-offset").evaluate(a,{}).map((function(t){return t*ls})));var T=v?"center":l.get("text-justify").evaluate(a,{}),A="point"===l.get("symbol-placement")?l.get("text-max-width").evaluate(a,{})*ls:0,C=function(){t.allowVerticalPlacement&amp;&amp;bi(f)&amp;&amp;(p.vertical=ps(h,e,s,A,g,x,"left",y,d,us.vertical,!0))};if(!v&amp;&amp;E){for(var I="auto"===T?E.map((function(t){return du(t)})):[T],P=!1,M=0;M&lt;I.length;M++){var z=I[M];if(!p.horizontal[z])if(P)p.horizontal[z]=p.horizontal[0];else{var D=ps(h,e,s,A,g,"center",z,y,d,us.horizontal,!1);D&amp;&amp;(p.horizontal[z]=D,P=1===D.lineCount)}}C()}else{"auto"===T&amp;&amp;(T=du(x));var L=ps(h,e,s,A,g,x,T,y,d,us.horizontal,!1);L&amp;&amp;(p.horizontal[T]=L),C(),bi(f)&amp;&amp;v&amp;&amp;_&amp;&amp;(p.vertical=ps(h,e,s,A,g,x,T,y,d,us.vertical,!1))}}var R=void 0;if(a.icon){var O=i[a.icon];O&amp;&amp;(R=function(t,e,r){var i=vs(r),n=i.horizontalAlign,o=i.verticalAlign,a=e[0],s=e[1],l=a-t.displaySize[0]*n,u=l+t.displaySize[0],c=s-t.displaySize[1]*o;return{image:t,top:c,bottom:c+t.displaySize[1],left:l,right:u}}(o[a.icon],l.get("icon-offset").evaluate(a,{}),l.get("icon-anchor").evaluate(a,{})),void 0===t.sdfIcons?t.sdfIcons=O.sdf:t.sdfIcons!==O.sdf&amp;&amp;w("Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer"),(O.pixelRatio!==t.pixelRatio||0!==l.get("icon-rotate").constantOr(1))&amp;&amp;(t.iconsNeedLinear=!0))}(Object.keys(p.horizontal).length||R)&amp;&amp;function(t,e,r,i,o,a,s){var l=a.layoutTextSize.evaluate(e,{}),u=a.layoutIconSize.evaluate(e,{}),c=a.textMaxSize.evaluate(e,{});void 0===c&amp;&amp;(c=l);var p=t.layers[0].layout,h=p.get("icon-offset").evaluate(e,{}),d=yu(r.horizontal),f=l/24,m=t.tilePixelRatio*f,y=t.tilePixelRatio*c/24,g=t.tilePixelRatio*u,v=t.tilePixelRatio*p.get("symbol-spacing"),_=p.get("text-padding")*t.tilePixelRatio,x=p.get("icon-padding")*t.tilePixelRatio,b=p.get("text-max-angle")/180*Math.PI,S="map"===p.get("text-rotation-alignment")&amp;&amp;"point"!==p.get("symbol-placement"),E="map"===p.get("icon-rotation-alignment")&amp;&amp;"point"!==p.get("symbol-placement"),k=p.get("symbol-placement"),T=v/2,A=function(l,u){u.x&lt;0||u.x&gt;=no||u.y&lt;0||u.y&gt;=no||function(t,e,r,i,o,a,s,l,u,c,p,h,d,f,m,y,g,v,_,x,b){var S,E,k,T=t.addToLineVertexArray(e,r),A=0,C=0,I=0,P={},M=lu(""),z=(a.layout.get("text-radial-offset").evaluate(_,{})||0)*ls;if(t.allowVerticalPlacement&amp;&amp;i.vertical){var D=a.layout.get("text-rotate").evaluate(_,{})+90,L=i.vertical;k=new tu(s,r,e,l,u,c,L,p,h,d,t.overscaling,D)}for(var R in i.horizontal){var O=i.horizontal[R];if(!S){M=lu(O.text);var B=a.layout.get("text-rotate").evaluate(_,{});S=new tu(s,r,e,l,u,c,O,p,h,d,t.overscaling,B)}var F=1===O.lineCount;if(C+=mu(t,e,O,a,d,_,f,T,i.vertical?us.horizontal:us.horizontalOnly,F?Object.keys(i.horizontal):[R],P,x,b),F)break}i.vertical&amp;&amp;(I+=mu(t,e,i.vertical,a,d,_,f,T,us.vertical,["vertical"],P,x,b));var j=S?S.boxStartIndex:t.collisionBoxArray.length,U=S?S.boxEndIndex:t.collisionBoxArray.length,N=k?k.boxStartIndex:t.collisionBoxArray.length,V=k?k.boxEndIndex:t.collisionBoxArray.length;if(o){var q=function(t,e,r,i,o,a){var s,l,u,c,p=e.image,h=r.layout,d=e.top-1/p.pixelRatio,f=e.left-1/p.pixelRatio,m=e.bottom+1/p.pixelRatio,y=e.right+1/p.pixelRatio;if("none"!==h.get("icon-text-fit")&amp;&amp;o){var g=y-f,v=m-d,_=h.get("text-size").evaluate(a,{})/24,x=o.left*_,b=o.right*_,w=o.top*_,S=b-x,E=o.bottom*_-w,k=h.get("icon-text-fit-padding")[0],T=h.get("icon-text-fit-padding")[1],A=h.get("icon-text-fit-padding")[2],C=h.get("icon-text-fit-padding")[3],I="width"===h.get("icon-text-fit")?.5*(E-v):0,P="height"===h.get("icon-text-fit")?.5*(S-g):0,M="width"===h.get("icon-text-fit")||"both"===h.get("icon-text-fit")?S:g,z="height"===h.get("icon-text-fit")||"both"===h.get("icon-text-fit")?E:v;s=new n(x+P-C,w+I-k),l=new n(x+P+T+M,w+I-k),u=new n(x+P+T+M,w+I+A+z),c=new n(x+P-C,w+I+A+z)}else s=new n(f,d),l=new n(y,d),u=new n(y,m),c=new n(f,m);var D=r.layout.get("icon-rotate").evaluate(a,{})*Math.PI/180;if(D){var L=Math.sin(D),R=Math.cos(D),O=[R,-L,L,R];s._matMult(O),l._matMult(O),c._matMult(O),u._matMult(O)}return[{tl:s,tr:l,bl:c,br:u,tex:p.paddedRect,writingMode:void 0,glyphOffset:[0,0],sectionIndex:0}]}(0,o,a,0,yu(i.horizontal),_),W=a.layout.get("icon-rotate").evaluate(_,{});E=new tu(s,r,e,l,u,c,o,m,y,!1,t.overscaling,W),A=4*q.length;var G=t.iconSizeData,H=null;"source"===G.kind?(H=[bs*a.layout.get("icon-size").evaluate(_,{})])[0]&gt;fu&amp;&amp;w(t.layerIds[0]+': Value for "icon-size" is &gt;= 256. Reduce your "icon-size".'):"composite"===G.kind&amp;&amp;((H=[bs*b.compositeIconSizes[0].evaluate(_,{}),bs*b.compositeIconSizes[1].evaluate(_,{})])[0]&gt;fu||H[1]&gt;fu)&amp;&amp;w(t.layerIds[0]+': Value for "icon-size" is &gt;= 256. Reduce your "icon-size".'),t.addSymbols(t.icon,q,H,v,g,_,!1,e,T.lineStartIndex,T.lineLength)}var Z=E?E.boxStartIndex:t.collisionBoxArray.length,X=E?E.boxEndIndex:t.collisionBoxArray.length;t.glyphOffsetArray.length&gt;=zs.MAX_GLYPHS&amp;&amp;w("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),t.symbolInstances.emplaceBack(e.x,e.y,P.right&gt;=0?P.right:-1,P.center&gt;=0?P.center:-1,P.left&gt;=0?P.left:-1,P.vertical||-1,M,j,U,N,V,Z,X,l,C,I,A,0,p,z)}(t,u,l,r,i,t.layers[0],t.collisionBoxArray,e.index,e.sourceLayerIndex,t.index,m,_,S,s,g,x,E,h,e,o,a)};if("line"===k)for(var C=0,I=function(t,e,r,i,o){for(var a=[],s=0;s&lt;t.length;s++)for(var l=t[s],u=void 0,c=0;c&lt;l.length-1;c++){var p=l[c],h=l[c+1];p.x&lt;e&amp;&amp;h.x&lt;e||(p.x&lt;e?p=new n(e,p.y+(h.y-p.y)*((e-p.x)/(h.x-p.x)))._round():h.x&lt;e&amp;&amp;(h=new n(e,p.y+(h.y-p.y)*((e-p.x)/(h.x-p.x)))._round()),p.y&lt;r&amp;&amp;h.y&lt;r||(p.y&lt;r?p=new n(p.x+(h.x-p.x)*((r-p.y)/(h.y-p.y)),r)._round():h.y&lt;r&amp;&amp;(h=new n(p.x+(h.x-p.x)*((r-p.y)/(h.y-p.y)),r)._round()),p.x&gt;=i&amp;&amp;h.x&gt;=i||(p.x&gt;=i?p=new n(i,p.y+(h.y-p.y)*((i-p.x)/(h.x-p.x)))._round():h.x&gt;=i&amp;&amp;(h=new n(i,p.y+(h.y-p.y)*((i-p.x)/(h.x-p.x)))._round()),p.y&gt;=o&amp;&amp;h.y&gt;=o||(p.y&gt;=o?p=new n(p.x+(h.x-p.x)*((o-p.y)/(h.y-p.y)),o)._round():h.y&gt;=o&amp;&amp;(h=new n(p.x+(h.x-p.x)*((o-p.y)/(h.y-p.y)),o)._round()),u&amp;&amp;p.equals(u[u.length-1])||(u=[p],a.push(u)),u.push(h)))))}return a}(e.geometry,0,0,no,no);C&lt;I.length;C+=1)for(var P=I[C],M=0,z=Ql(P,v,b,r.vertical||d,i,24,y,t.overscaling,no);M&lt;z.length;M+=1){var D=z[M];d&amp;&amp;gu(t,d.text,T,D)||A(P,D)}else if("line-center"===k)for(var L=0,R=e.geometry;L&lt;R.length;L+=1){var O=R[L];if(O.length&gt;1){var B=Jl(O,b,r.vertical||d,i,24,y);B&amp;&amp;A(O,B)}}else if("Polygon"===e.type)for(var F=0,j=ga(e.geometry,0);F&lt;j.length;F+=1){var U=j[F],N=iu(U,16);A(U[0],new xs(N.x,N.y,0))}else if("LineString"===e.type)for(var V=0,q=e.geometry;V&lt;q.length;V+=1){var W=q[V];A(W,new xs(W[0].x,W[0].y,0))}else if("Point"===e.type)for(var G=0,H=e.geometry;G&lt;H.length;G+=1)for(var Z=0,X=H[G];Z&lt;X.length;Z+=1){var $=X[Z];A([$],new xs($.x,$.y,0))}}(t,a,p,R,u,c,d)},b=0,S=t.features;b&lt;S.length;b+=1)x();a&amp;&amp;t.generateCollisionDebugBuffers()},t.perspective=function(t,e,r,i,n){var o,a=1/Math.tan(e/2);return t[0]=a/r,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=n&amp;&amp;n!==1/0?(o=1/(i-n),t[10]=(n+i)*o,t[14]=2*n*i*o):(t[10]=-1,t[14]=-2*i),t},t.pick=function(t,e){for(var r={},i=0;i&lt;e.length;i++){var n=e[i];n in t&amp;&amp;(r[n]=t[n])}return r},t.plugin=Mi,t.polygonIntersectsPolygon=uo,t.postMapLoadEvent=et,t.postTurnstileEvent=Q,t.potpack=qs,t.rasterBoundsAttributes=jl,t.refProperties=["type","source","source-layer","minzoom","maxzoom","filter","layout"],t.register=mi,t.registerForPluginAvailability=function(t){return Ci?t({pluginURL:Ci,completionCallback:Ti}):Pi.once("pluginAvailable",t),t},t.rotate=function(t,e,r){var i=e[0],n=e[1],o=e[2],a=e[3],s=Math.sin(r),l=Math.cos(r);return t[0]=i*l+o*s,t[1]=n*l+a*s,t[2]=i*-s+o*l,t[3]=n*-s+a*l,t},t.rotateX=function(t,e,r){var i=Math.sin(r),n=Math.cos(r),o=e[4],a=e[5],s=e[6],l=e[7],u=e[8],c=e[9],p=e[10],h=e[11];return e!==t&amp;&amp;(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=o*n+u*i,t[5]=a*n+c*i,t[6]=s*n+p*i,t[7]=l*n+h*i,t[8]=u*n-o*i,t[9]=c*n-a*i,t[10]=p*n-s*i,t[11]=h*n-l*i,t},t.rotateZ=function(t,e,r){var i=Math.sin(r),n=Math.cos(r),o=e[0],a=e[1],s=e[2],l=e[3],u=e[4],c=e[5],p=e[6],h=e[7];return e!==t&amp;&amp;(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=o*n+u*i,t[1]=a*n+c*i,t[2]=s*n+p*i,t[3]=l*n+h*i,t[4]=u*n-o*i,t[5]=c*n-a*i,t[6]=p*n-s*i,t[7]=h*n-l*i,t},t.scale=function(t,e,r){var i=r[0],n=r[1],o=r[2];return t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i,t[3]=e[3]*i,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*o,t[9]=e[9]*o,t[10]=e[10]*o,t[11]=e[11]*o,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},t.setCacheLimits=function(t,e){it=t,nt=e},t.setRTLTextPlugin=function(t,e){if(Ai)throw new Error("setRTLTextPlugin cannot be called multiple times.");Ai=!0,Ci=L.resolveURL(t),Ti=function(t){t?(Ai=!1,Ci=null,e&amp;&amp;e(t)):Ii=!0},Pi.fire(new St("pluginAvailable",{pluginURL:Ci,completionCallback:Ti}))},t.sphericalToCartesian=function(t){var e=t[0],r=t[1],i=t[2];return r+=90,r*=Math.PI/180,i*=Math.PI/180,{x:e*Math.cos(r)*Math.sin(i),y:e*Math.sin(r)*Math.sin(i),z:e*Math.cos(i)}},t.styleSpec=Tt,t.symbolSize=ks,t.transformMat3=function(t,e,r){var i=e[0],n=e[1],o=e[2];return t[0]=i*r[0]+n*r[3]+o*r[6],t[1]=i*r[1]+n*r[4]+o*r[7],t[2]=i*r[2]+n*r[5]+o*r[8],t},t.transformMat4=Co,t.translate=function(t,e,r){var i,n,o,a,s,l,u,c,p,h,d,f,m=r[0],y=r[1],g=r[2];return e===t?(t[12]=e[0]*m+e[4]*y+e[8]*g+e[12],t[13]=e[1]*m+e[5]*y+e[9]*g+e[13],t[14]=e[2]*m+e[6]*y+e[10]*g+e[14],t[15]=e[3]*m+e[7]*y+e[11]*g+e[15]):(i=e[0],n=e[1],o=e[2],a=e[3],s=e[4],l=e[5],u=e[6],c=e[7],p=e[8],h=e[9],d=e[10],f=e[11],t[0]=i,t[1]=n,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t[6]=u,t[7]=c,t[8]=p,t[9]=h,t[10]=d,t[11]=f,t[12]=i*m+s*y+p*g+e[12],t[13]=n*m+l*y+h*g+e[13],t[14]=o*m+u*y+d*g+e[14],t[15]=a*m+c*y+f*g+e[15]),t},t.uniqueId=d,t.validateCustomStyleLayer=function(t){var e=[],r=t.id;return void 0===r&amp;&amp;e.push({message:"layers."+r+': missing required property "id"'}),void 0===t.render&amp;&amp;e.push({message:"layers."+r+': missing required method "render"'}),t.renderingMode&amp;&amp;"2d"!==t.renderingMode&amp;&amp;"3d"!==t.renderingMode&amp;&amp;e.push({message:"layers."+r+': property "renderingMode" must be either "2d" or "3d"'}),e},t.validateLight=ai,t.validateStyle=oi,t.values=function(t){var e=[];for(var r in t)e.push(t[r]);return e},t.vectorTile=La,t.version="1.3.1",t.warnOnce=w,t.webpSupported=O,t.window=self,t.wrap=c})),i(["./shared"],(function(t){function e(t){var r=typeof t;if("number"===r||"boolean"===r||"string"===r||null==t)return JSON.stringify(t);if(Array.isArray(t)){for(var i="[",n=0,o=t;n&lt;o.length;n+=1)i+=e(o[n])+",";return i+"]"}for(var a=Object.keys(t).sort(),s="{",l=0;l&lt;a.length;l++)s+=JSON.stringify(a[l])+":"+e(t[a[l]])+",";return s+"}"}function r(r){for(var i="",n=0,o=t.refProperties;n&lt;o.length;n+=1)i+="/"+e(r[o[n]]);return i}var i=function(t){this.keyCache={},t&amp;&amp;this.replace(t)};i.prototype.replace=function(t){this._layerConfigs={},this._layers={},this.update(t,[])},i.prototype.update=function(e,i){for(var n=this,o=0,a=e;o&lt;a.length;o+=1){var s=a[o];this._layerConfigs[s.id]=s;var l=this._layers[s.id]=t.createStyleLayer(s);l._featureFilter=t.featureFilter(l.filter),this.keyCache[s.id]&amp;&amp;delete this.keyCache[s.id]}for(var u=0,c=i;u&lt;c.length;u+=1){var p=c[u];delete this.keyCache[p],delete this._layerConfigs[p],delete this._layers[p]}this.familiesBySource={};for(var h=0,d=function(t,e){for(var i={},n=0;n&lt;t.length;n++){var o=e&amp;&amp;e[t[n].id]||r(t[n]);e&amp;&amp;(e[t[n].id]=o);var a=i[o];a||(a=i[o]=[]),a.push(t[n])}var s=[];for(var l in i)s.push(i[l]);return s}(t.values(this._layerConfigs),this.keyCache);h&lt;d.length;h+=1){var f=d[h].map((function(t){return n._layers[t.id]})),m=f[0];if("none"!==m.visibility){var y=m.source||"",g=this.familiesBySource[y];g||(g=this.familiesBySource[y]={});var v=m.sourceLayer||"_geojsonTileLayer",_=g[v];_||(_=g[v]=[]),_.push(f)}}};var n=function(e){var r={},i=[];for(var n in e){var o=e[n],a=r[n]={};for(var s in o){var l=o[+s];if(l&amp;&amp;0!==l.bitmap.width&amp;&amp;0!==l.bitmap.height){var u={x:0,y:0,w:l.bitmap.width+2,h:l.bitmap.height+2};i.push(u),a[s]={rect:u,metrics:l.metrics}}}}var c=t.potpack(i),p=c.w,h=c.h,d=new t.AlphaImage({width:p||1,height:h||1});for(var f in e){var m=e[f];for(var y in m){var g=m[+y];if(g&amp;&amp;0!==g.bitmap.width&amp;&amp;0!==g.bitmap.height){var v=r[f][y].rect;t.AlphaImage.copy(g.bitmap,d,{x:0,y:0},{x:v.x+1,y:v.y+1},g.bitmap)}}}this.image=d,this.positions=r};t.register("GlyphAtlas",n);var o=function(e){this.tileID=new t.OverscaledTileID(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=this.tileID.overscaleFactor(),this.showCollisionBoxes=e.showCollisionBoxes,this.collectResourceTiming=!!e.collectResourceTiming,this.returnDependencies=!!e.returnDependencies};function a(e,r){for(var i=new t.EvaluationParameters(r),n=0,o=e;n&lt;o.length;n+=1)o[n].recalculate(i)}o.prototype.parse=function(e,r,i,o){var s=this;this.status="parsing",this.data=e,this.collisionBoxArray=new t.CollisionBoxArray;var l=new t.DictionaryCoder(Object.keys(e.layers).sort()),u=new t.FeatureIndex(this.tileID);u.bucketLayerIDs=[];var c,p,h,d,f={},m={featureIndex:u,iconDependencies:{},patternDependencies:{},glyphDependencies:{}},y=r.familiesBySource[this.source];for(var g in y){var v=e.layers[g];if(v){1===v.version&amp;&amp;t.warnOnce('Vector tile source "'+this.source+'" layer "'+g+'" does not use vector tile spec v2 and therefore may have some rendering errors.');for(var _=l.encode(g),x=[],b=0;b&lt;v.length;b++){var w=v.feature(b);x.push({feature:w,index:b,sourceLayerIndex:_})}for(var S=0,E=y[g];S&lt;E.length;S+=1){var k=E[S],T=k[0];T.minzoom&amp;&amp;this.zoom&lt;Math.floor(T.minzoom)||T.maxzoom&amp;&amp;this.zoom&gt;=T.maxzoom||"none"!==T.visibility&amp;&amp;(a(k,this.zoom),(f[T.id]=T.createBucket({index:u.bucketLayerIDs.length,layers:k,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:_,sourceID:this.source})).populate(x,m),u.bucketLayerIDs.push(k.map((function(t){return t.id}))))}}}var A=t.mapObject(m.glyphDependencies,(function(t){return Object.keys(t).map(Number)}));Object.keys(A).length?i.send("getGlyphs",{uid:this.uid,stacks:A},(function(t,e){c||(c=t,p=e,P.call(s))})):p={};var C=Object.keys(m.iconDependencies);C.length?i.send("getImages",{icons:C},(function(t,e){c||(c=t,h=e,P.call(s))})):h={};var I=Object.keys(m.patternDependencies);function P(){if(c)return o(c);if(p&amp;&amp;h&amp;&amp;d){var e=new n(p),r=new t.ImageAtlas(h,d);for(var i in f){var s=f[i];s instanceof t.SymbolBucket?(a(s.layers,this.zoom),t.performSymbolLayout(s,p,e.positions,h,r.iconPositions,this.showCollisionBoxes)):s.hasPattern&amp;&amp;(s instanceof t.LineBucket||s instanceof t.FillBucket||s instanceof t.FillExtrusionBucket)&amp;&amp;(a(s.layers,this.zoom),s.addFeatures(m,r.patternPositions))}this.status="done",o(null,{buckets:t.values(f).filter((function(t){return!t.isEmpty()})),featureIndex:u,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:e.image,imageAtlas:r,glyphMap:this.returnDependencies?p:null,iconMap:this.returnDependencies?h:null,glyphPositions:this.returnDependencies?e.positions:null})}}I.length?i.send("getImages",{icons:I},(function(t,e){c||(c=t,d=e,P.call(s))})):d={},P.call(this)};var s="undefined"!=typeof performance,l={getEntriesByName:function(t){return!!(s&amp;&amp;performance&amp;&amp;performance.getEntriesByName)&amp;&amp;performance.getEntriesByName(t)},mark:function(t){return!!(s&amp;&amp;performance&amp;&amp;performance.mark)&amp;&amp;performance.mark(t)},measure:function(t,e,r){return!!(s&amp;&amp;performance&amp;&amp;performance.measure)&amp;&amp;performance.measure(t,e,r)},clearMarks:function(t){return!!(s&amp;&amp;performance&amp;&amp;performance.clearMarks)&amp;&amp;performance.clearMarks(t)},clearMeasures:function(t){return!!(s&amp;&amp;performance&amp;&amp;performance.clearMeasures)&amp;&amp;performance.clearMeasures(t)}},u=function(t){this._marks={start:[t.url,"start"].join("#"),end:[t.url,"end"].join("#"),measure:t.url.toString()},l.mark(this._marks.start)};function c(e,r){var i=t.getArrayBuffer(e.request,(function(e,i,n,o){e?r(e):i&amp;&amp;r(null,{vectorTile:new t.vectorTile.VectorTile(new t.pbf(i)),rawData:i,cacheControl:n,expires:o})}));return function(){i.cancel(),r()}}u.prototype.finish=function(){l.mark(this._marks.end);var t=l.getEntriesByName(this._marks.measure);return 0===t.length&amp;&amp;(l.measure(this._marks.measure,this._marks.start,this._marks.end),t=l.getEntriesByName(this._marks.measure),l.clearMarks(this._marks.start),l.clearMarks(this._marks.end),l.clearMeasures(this._marks.measure)),t},l.Performance=u;var p=function(t,e,r){this.actor=t,this.layerIndex=e,this.loadVectorData=r||c,this.loading={},this.loaded={}};p.prototype.loadTile=function(e,r){var i=this,n=e.uid;this.loading||(this.loading={});var a=!!(e&amp;&amp;e.request&amp;&amp;e.request.collectResourceTiming)&amp;&amp;new l.Performance(e.request),s=this.loading[n]=new o(e);s.abort=this.loadVectorData(e,(function(e,o){if(delete i.loading[n],e||!o)return s.status="done",i.loaded[n]=s,r(e);var l=o.rawData,u={};o.expires&amp;&amp;(u.expires=o.expires),o.cacheControl&amp;&amp;(u.cacheControl=o.cacheControl);var c={};if(a){var p=a.finish();p&amp;&amp;(c.resourceTiming=JSON.parse(JSON.stringify(p)))}s.vectorTile=o.vectorTile,s.parse(o.vectorTile,i.layerIndex,i.actor,(function(e,i){if(e||!i)return r(e);r(null,t.extend({rawTileData:l.slice(0)},i,u,c))})),i.loaded=i.loaded||{},i.loaded[n]=s}))},p.prototype.reloadTile=function(t,e){var r=this.loaded,i=t.uid,n=this;if(r&amp;&amp;r[i]){var o=r[i];o.showCollisionBoxes=t.showCollisionBoxes;var a=function(t,r){var i=o.reloadCallback;i&amp;&amp;(delete o.reloadCallback,o.parse(o.vectorTile,n.layerIndex,n.actor,i)),e(t,r)};"parsing"===o.status?o.reloadCallback=a:"done"===o.status&amp;&amp;(o.vectorTile?o.parse(o.vectorTile,this.layerIndex,this.actor,a):a())}},p.prototype.abortTile=function(t,e){var r=this.loading,i=t.uid;r&amp;&amp;r[i]&amp;&amp;r[i].abort&amp;&amp;(r[i].abort(),delete r[i]),e()},p.prototype.removeTile=function(t,e){var r=this.loaded,i=t.uid;r&amp;&amp;r[i]&amp;&amp;delete r[i],e()};var h=function(){this.loaded={}};h.prototype.loadTile=function(e,r){var i=e.uid,n=e.encoding,o=e.rawImageData,a=new t.DEMData(i,o,n);this.loaded=this.loaded||{},this.loaded[i]=a,r(null,a)},h.prototype.removeTile=function(t){var e=this.loaded,r=t.uid;e&amp;&amp;e[r]&amp;&amp;delete e[r]};var d={RADIUS:6378137,FLATTENING:1/298.257223563,POLAR_RADIUS:6356752.3142};function f(t){var e=0;if(t&amp;&amp;t.length&gt;0){e+=Math.abs(m(t[0]));for(var r=1;r&lt;t.length;r++)e-=Math.abs(m(t[r]))}return e}function m(t){var e,r,i,n,o,a,s=0,l=t.length;if(l&gt;2){for(a=0;a&lt;l;a++)a===l-2?(i=l-2,n=l-1,o=0):a===l-1?(i=l-1,n=0,o=1):(i=a,n=a+1,o=a+2),e=t[i],r=t[n],s+=(y(t[o][0])-y(e[0]))*Math.sin(y(r[1]));s=s*d.RADIUS*d.RADIUS/2}return s}function y(t){return t*Math.PI/180}var g={geometry:function t(e){var r,i=0;switch(e.type){case"Polygon":return f(e.coordinates);case"MultiPolygon":for(r=0;r&lt;e.coordinates.length;r++)i+=f(e.coordinates[r]);return i;case"Point":case"MultiPoint":case"LineString":case"MultiLineString":return 0;case"GeometryCollection":for(r=0;r&lt;e.geometries.length;r++)i+=t(e.geometries[r]);return i}},ring:m},v=function t(e,r){switch(e&amp;&amp;e.type||null){case"FeatureCollection":return e.features=e.features.map(_(t,r)),e;case"GeometryCollection":return e.geometries=e.geometries.map(_(t,r)),e;case"Feature":return e.geometry=t(e.geometry,r),e;case"Polygon":case"MultiPolygon":return function(t,e){return"Polygon"===t.type?t.coordinates=x(t.coordinates,e):"MultiPolygon"===t.type&amp;&amp;(t.coordinates=t.coordinates.map(_(x,e))),t}(e,r);default:return e}};function _(t,e){return function(r){return t(r,e)}}function x(t,e){e=!!e,t[0]=b(t[0],e);for(var r=1;r&lt;t.length;r++)t[r]=b(t[r],!e);return t}function b(t,e){return function(t){return g.ring(t)&gt;=0}(t)===e?t:t.reverse()}var w=t.vectorTile.VectorTileFeature.prototype.toGeoJSON,S=function(e){this._feature=e,this.extent=t.EXTENT,this.type=e.type,this.properties=e.tags,"id"in e&amp;&amp;!isNaN(e.id)&amp;&amp;(this.id=parseInt(e.id,10))};S.prototype.loadGeometry=function(){if(1===this._feature.type){for(var e=[],r=0,i=this._feature.geometry;r&lt;i.length;r+=1){var n=i[r];e.push([new t.Point$1(n[0],n[1])])}return e}for(var o=[],a=0,s=this._feature.geometry;a&lt;s.length;a+=1){for(var l=[],u=0,c=s[a];u&lt;c.length;u+=1){var p=c[u];l.push(new t.Point$1(p[0],p[1]))}o.push(l)}return o},S.prototype.toGeoJSON=function(t,e,r){return w.call(this,t,e,r)};var E=function(e){this.layers={_geojsonTileLayer:this},this.name="_geojsonTileLayer",this.extent=t.EXTENT,this.length=e.length,this._features=e};E.prototype.feature=function(t){return new S(this._features[t])};var k=t.vectorTile.VectorTileFeature,T=A;function A(t,e){this.options=e||{},this.features=t,this.length=t.length}function C(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}A.prototype.feature=function(t){return new C(this.features[t],this.options.extent)},C.prototype.loadGeometry=function(){var e=this.rawGeometry;this.geometry=[];for(var r=0;r&lt;e.length;r++){for(var i=e[r],n=[],o=0;o&lt;i.length;o++)n.push(new t.Point$1(i[o][0],i[o][1]));this.geometry.push(n)}return this.geometry},C.prototype.bbox=function(){this.geometry||this.loadGeometry();for(var t=this.geometry,e=1/0,r=-1/0,i=1/0,n=-1/0,o=0;o&lt;t.length;o++)for(var a=t[o],s=0;s&lt;a.length;s++){var l=a[s];e=Math.min(e,l.x),r=Math.max(r,l.x),i=Math.min(i,l.y),n=Math.max(n,l.y)}return[e,i,r,n]},C.prototype.toGeoJSON=k.prototype.toGeoJSON;var I=D,P=D,M=function(t,e){e=e||{};var r={};for(var i in t)r[i]=new T(t[i].features,e),r[i].name=i,r[i].version=e.version,r[i].extent=e.extent;return D({layers:r})},z=T;function D(e){var r=new t.pbf;return function(t,e){for(var r in t.layers)e.writeMessage(3,L,t.layers[r])}(e,r),r.finish()}function L(t,e){var r;e.writeVarintField(15,t.version||1),e.writeStringField(1,t.name||""),e.writeVarintField(5,t.extent||4096);var i={keys:[],values:[],keycache:{},valuecache:{}};for(r=0;r&lt;t.length;r++)i.feature=t.feature(r),e.writeMessage(2,R,i);var n=i.keys;for(r=0;r&lt;n.length;r++)e.writeStringField(3,n[r]);var o=i.values;for(r=0;r&lt;o.length;r++)e.writeMessage(4,U,o[r])}function R(t,e){var r=t.feature;void 0!==r.id&amp;&amp;e.writeVarintField(1,r.id),e.writeMessage(2,O,t),e.writeVarintField(3,r.type),e.writeMessage(4,j,r)}function O(t,e){var r=t.feature,i=t.keys,n=t.values,o=t.keycache,a=t.valuecache;for(var s in r.properties){var l=o[s];void 0===l&amp;&amp;(i.push(s),l=i.length-1,o[s]=l),e.writeVarint(l);var u=r.properties[s],c=typeof u;"string"!==c&amp;&amp;"boolean"!==c&amp;&amp;"number"!==c&amp;&amp;(u=JSON.stringify(u));var p=c+":"+u,h=a[p];void 0===h&amp;&amp;(n.push(u),h=n.length-1,a[p]=h),e.writeVarint(h)}}function B(t,e){return(e&lt;&lt;3)+(7&amp;t)}function F(t){return t&lt;&lt;1^t&gt;&gt;31}function j(t,e){for(var r=t.loadGeometry(),i=t.type,n=0,o=0,a=r.length,s=0;s&lt;a;s++){var l=r[s],u=1;1===i&amp;&amp;(u=l.length),e.writeVarint(B(1,u));for(var c=3===i?l.length-1:l.length,p=0;p&lt;c;p++){1===p&amp;&amp;1!==i&amp;&amp;e.writeVarint(B(2,c-1));var h=l[p].x-n,d=l[p].y-o;e.writeVarint(F(h)),e.writeVarint(F(d)),n+=h,o+=d}3===i&amp;&amp;e.writeVarint(B(7,1))}}function U(t,e){var r=typeof t;"string"===r?e.writeStringField(1,t):"boolean"===r?e.writeBooleanField(7,t):"number"===r&amp;&amp;(t%1!=0?e.writeDoubleField(3,t):t&lt;0?e.writeSVarintField(6,t):e.writeVarintField(5,t))}function N(t,e,r,i,n,o){if(!(n-i&lt;=r)){var a=i+n&gt;&gt;1;!function t(e,r,i,n,o,a){for(;o&gt;n;){if(o-n&gt;600){var s=o-n+1,l=i-n+1,u=Math.log(s),c=.5*Math.exp(2*u/3),p=.5*Math.sqrt(u*c*(s-c)/s)*(l-s/2&lt;0?-1:1);t(e,r,i,Math.max(n,Math.floor(i-l*c/s+p)),Math.min(o,Math.floor(i+(s-l)*c/s+p)),a)}var h=r[2*i+a],d=n,f=o;for(V(e,r,n,i),r[2*o+a]&gt;h&amp;&amp;V(e,r,n,o);d&lt;f;){for(V(e,r,d,f),d++,f--;r[2*d+a]&lt;h;)d++;for(;r[2*f+a]&gt;h;)f--}r[2*n+a]===h?V(e,r,n,f):V(e,r,++f,o),f&lt;=i&amp;&amp;(n=f+1),i&lt;=f&amp;&amp;(o=f-1)}}(t,e,a,i,n,o%2),N(t,e,r,i,a-1,o+1),N(t,e,r,a+1,n,o+1)}}function V(t,e,r,i){q(t,r,i),q(e,2*r,2*i),q(e,2*r+1,2*i+1)}function q(t,e,r){var i=t[e];t[e]=t[r],t[r]=i}function W(t,e,r,i){var n=t-r,o=e-i;return n*n+o*o}I.fromVectorTileJs=P,I.fromGeojsonVt=M,I.GeoJSONWrapper=z;var G=function(t){return t[0]},H=function(t){return t[1]},Z=function(t,e,r,i,n){void 0===e&amp;&amp;(e=G),void 0===r&amp;&amp;(r=H),void 0===i&amp;&amp;(i=64),void 0===n&amp;&amp;(n=Float64Array),this.nodeSize=i,this.points=t;for(var o=t.length&lt;65536?Uint16Array:Uint32Array,a=this.ids=new o(t.length),s=this.coords=new n(2*t.length),l=0;l&lt;t.length;l++)a[l]=l,s[2*l]=e(t[l]),s[2*l+1]=r(t[l]);N(a,s,i,0,a.length-1,0)};Z.prototype.range=function(t,e,r,i){return function(t,e,r,i,n,o,a){for(var s,l,u=[0,t.length-1,0],c=[];u.length;){var p=u.pop(),h=u.pop(),d=u.pop();if(h-d&lt;=a)for(var f=d;f&lt;=h;f++)s=e[2*f],l=e[2*f+1],s&gt;=r&amp;&amp;s&lt;=n&amp;&amp;l&gt;=i&amp;&amp;l&lt;=o&amp;&amp;c.push(t[f]);else{var m=Math.floor((d+h)/2);s=e[2*m],l=e[2*m+1],s&gt;=r&amp;&amp;s&lt;=n&amp;&amp;l&gt;=i&amp;&amp;l&lt;=o&amp;&amp;c.push(t[m]);var y=(p+1)%2;(0===p?r&lt;=s:i&lt;=l)&amp;&amp;(u.push(d),u.push(m-1),u.push(y)),(0===p?n&gt;=s:o&gt;=l)&amp;&amp;(u.push(m+1),u.push(h),u.push(y))}}return c}(this.ids,this.coords,t,e,r,i,this.nodeSize)},Z.prototype.within=function(t,e,r){return function(t,e,r,i,n,o){for(var a=[0,t.length-1,0],s=[],l=n*n;a.length;){var u=a.pop(),c=a.pop(),p=a.pop();if(c-p&lt;=o)for(var h=p;h&lt;=c;h++)W(e[2*h],e[2*h+1],r,i)&lt;=l&amp;&amp;s.push(t[h]);else{var d=Math.floor((p+c)/2),f=e[2*d],m=e[2*d+1];W(f,m,r,i)&lt;=l&amp;&amp;s.push(t[d]);var y=(u+1)%2;(0===u?r-n&lt;=f:i-n&lt;=m)&amp;&amp;(a.push(p),a.push(d-1),a.push(y)),(0===u?r+n&gt;=f:i+n&gt;=m)&amp;&amp;(a.push(d+1),a.push(c),a.push(y))}}return s}(this.ids,this.coords,t,e,r,this.nodeSize)};var X={minZoom:0,maxZoom:16,radius:40,extent:512,nodeSize:64,log:!1,reduce:null,map:function(t){return t}},$=function(t){this.options=rt(Object.create(X),t),this.trees=new Array(this.options.maxZoom+1)};function Y(t,e,r,i,n){return{x:t,y:e,zoom:1/0,id:r,parentId:-1,numPoints:i,properties:n}}function K(t,e){var r=t.geometry.coordinates,i=r[0],n=r[1];return{x:tt(i),y:et(n),zoom:1/0,index:e,parentId:-1}}function J(t){return{type:"Feature",id:t.id,properties:Q(t),geometry:{type:"Point",coordinates:[(i=t.x,360*(i-.5)),(e=t.y,r=(180-360*e)*Math.PI/180,360*Math.atan(Math.exp(r))/Math.PI-90)]}};var e,r,i}function Q(t){var e=t.numPoints,r=e&gt;=1e4?Math.round(e/1e3)+"k":e&gt;=1e3?Math.round(e/100)/10+"k":e;return rt(rt({},t.properties),{cluster:!0,cluster_id:t.id,point_count:e,point_count_abbreviated:r})}function tt(t){return t/360+.5}function et(t){var e=Math.sin(t*Math.PI/180),r=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return r&lt;0?0:r&gt;1?1:r}function rt(t,e){for(var r in e)t[r]=e[r];return t}function it(t){return t.x}function nt(t){return t.y}function ot(t,e,r,i,n,o){var a=n-r,s=o-i;if(0!==a||0!==s){var l=((t-r)*a+(e-i)*s)/(a*a+s*s);l&gt;1?(r=n,i=o):l&gt;0&amp;&amp;(r+=a*l,i+=s*l)}return(a=t-r)*a+(s=e-i)*s}function at(t,e,r,i){var n={id:void 0===t?null:t,type:e,geometry:r,tags:i,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(t){var e=t.geometry,r=t.type;if("Point"===r||"MultiPoint"===r||"LineString"===r)st(t,e);else if("Polygon"===r||"MultiLineString"===r)for(var i=0;i&lt;e.length;i++)st(t,e[i]);else if("MultiPolygon"===r)for(i=0;i&lt;e.length;i++)for(var n=0;n&lt;e[i].length;n++)st(t,e[i][n])}(n),n}function st(t,e){for(var r=0;r&lt;e.length;r+=3)t.minX=Math.min(t.minX,e[r]),t.minY=Math.min(t.minY,e[r+1]),t.maxX=Math.max(t.maxX,e[r]),t.maxY=Math.max(t.maxY,e[r+1])}function lt(t,e,r,i){if(e.geometry){var n=e.geometry.coordinates,o=e.geometry.type,a=Math.pow(r.tolerance/((1&lt;&lt;r.maxZoom)*r.extent),2),s=[],l=e.id;if(r.promoteId?l=e.properties[r.promoteId]:r.generateId&amp;&amp;(l=i||0),"Point"===o)ut(n,s);else if("MultiPoint"===o)for(var u=0;u&lt;n.length;u++)ut(n[u],s);else if("LineString"===o)ct(n,s,a,!1);else if("MultiLineString"===o){if(r.lineMetrics){for(u=0;u&lt;n.length;u++)s=[],ct(n[u],s,a,!1),t.push(at(l,"LineString",s,e.properties));return}pt(n,s,a,!1)}else if("Polygon"===o)pt(n,s,a,!0);else{if("MultiPolygon"!==o){if("GeometryCollection"===o){for(u=0;u&lt;e.geometry.geometries.length;u++)lt(t,{id:l,geometry:e.geometry.geometries[u],properties:e.properties},r,i);return}throw new Error("Input data is not a valid GeoJSON object.")}for(u=0;u&lt;n.length;u++){var c=[];pt(n[u],c,a,!0),s.push(c)}}t.push(at(l,o,s,e.properties))}}function ut(t,e){e.push(ht(t[0])),e.push(dt(t[1])),e.push(0)}function ct(t,e,r,i){for(var n,o,a=0,s=0;s&lt;t.length;s++){var l=ht(t[s][0]),u=dt(t[s][1]);e.push(l),e.push(u),e.push(0),s&gt;0&amp;&amp;(a+=i?(n*u-l*o)/2:Math.sqrt(Math.pow(l-n,2)+Math.pow(u-o,2))),n=l,o=u}var c=e.length-3;e[2]=1,function t(e,r,i,n){for(var o,a=n,s=i-r&gt;&gt;1,l=i-r,u=e[r],c=e[r+1],p=e[i],h=e[i+1],d=r+3;d&lt;i;d+=3){var f=ot(e[d],e[d+1],u,c,p,h);if(f&gt;a)o=d,a=f;else if(f===a){var m=Math.abs(d-s);m&lt;l&amp;&amp;(o=d,l=m)}}a&gt;n&amp;&amp;(o-r&gt;3&amp;&amp;t(e,r,o,n),e[o+2]=a,i-o&gt;3&amp;&amp;t(e,o,i,n))}(e,0,c,r),e[c+2]=1,e.size=Math.abs(a),e.start=0,e.end=e.size}function pt(t,e,r,i){for(var n=0;n&lt;t.length;n++){var o=[];ct(t[n],o,r,i),e.push(o)}}function ht(t){return t/360+.5}function dt(t){var e=Math.sin(t*Math.PI/180),r=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return r&lt;0?0:r&gt;1?1:r}function ft(t,e,r,i,n,o,a,s){if(i/=e,o&gt;=(r/=e)&amp;&amp;a&lt;i)return t;if(a&lt;r||o&gt;=i)return null;for(var l=[],u=0;u&lt;t.length;u++){var c=t[u],p=c.geometry,h=c.type,d=0===n?c.minX:c.minY,f=0===n?c.maxX:c.maxY;if(d&gt;=r&amp;&amp;f&lt;i)l.push(c);else if(!(f&lt;r||d&gt;=i)){var m=[];if("Point"===h||"MultiPoint"===h)mt(p,m,r,i,n);else if("LineString"===h)yt(p,m,r,i,n,!1,s.lineMetrics);else if("MultiLineString"===h)vt(p,m,r,i,n,!1);else if("Polygon"===h)vt(p,m,r,i,n,!0);else if("MultiPolygon"===h)for(var y=0;y&lt;p.length;y++){var g=[];vt(p[y],g,r,i,n,!0),g.length&amp;&amp;m.push(g)}if(m.length){if(s.lineMetrics&amp;&amp;"LineString"===h){for(y=0;y&lt;m.length;y++)l.push(at(c.id,h,m[y],c.tags));continue}"LineString"!==h&amp;&amp;"MultiLineString"!==h||(1===m.length?(h="LineString",m=m[0]):h="MultiLineString"),"Point"!==h&amp;&amp;"MultiPoint"!==h||(h=3===m.length?"Point":"MultiPoint"),l.push(at(c.id,h,m,c.tags))}}}return l.length?l:null}function mt(t,e,r,i,n){for(var o=0;o&lt;t.length;o+=3){var a=t[o+n];a&gt;=r&amp;&amp;a&lt;=i&amp;&amp;(e.push(t[o]),e.push(t[o+1]),e.push(t[o+2]))}}function yt(t,e,r,i,n,o,a){for(var s,l,u=gt(t),c=0===n?xt:bt,p=t.start,h=0;h&lt;t.length-3;h+=3){var d=t[h],f=t[h+1],m=t[h+2],y=t[h+3],g=t[h+4],v=0===n?d:f,_=0===n?y:g,x=!1;a&amp;&amp;(s=Math.sqrt(Math.pow(d-y,2)+Math.pow(f-g,2))),v&lt;r?_&gt;r&amp;&amp;(l=c(u,d,f,y,g,r),a&amp;&amp;(u.start=p+s*l)):v&gt;i?_&lt;i&amp;&amp;(l=c(u,d,f,y,g,i),a&amp;&amp;(u.start=p+s*l)):_t(u,d,f,m),_&lt;r&amp;&amp;v&gt;=r&amp;&amp;(l=c(u,d,f,y,g,r),x=!0),_&gt;i&amp;&amp;v&lt;=i&amp;&amp;(l=c(u,d,f,y,g,i),x=!0),!o&amp;&amp;x&amp;&amp;(a&amp;&amp;(u.end=p+s*l),e.push(u),u=gt(t)),a&amp;&amp;(p+=s)}var b=t.length-3;d=t[b],f=t[b+1],m=t[b+2],(v=0===n?d:f)&gt;=r&amp;&amp;v&lt;=i&amp;&amp;_t(u,d,f,m),b=u.length-3,o&amp;&amp;b&gt;=3&amp;&amp;(u[b]!==u[0]||u[b+1]!==u[1])&amp;&amp;_t(u,u[0],u[1],u[2]),u.length&amp;&amp;e.push(u)}function gt(t){var e=[];return e.size=t.size,e.start=t.start,e.end=t.end,e}function vt(t,e,r,i,n,o){for(var a=0;a&lt;t.length;a++)yt(t[a],e,r,i,n,o,!1)}function _t(t,e,r,i){t.push(e),t.push(r),t.push(i)}function xt(t,e,r,i,n,o){var a=(o-e)/(i-e);return t.push(o),t.push(r+(n-r)*a),t.push(1),a}function bt(t,e,r,i,n,o){var a=(o-r)/(n-r);return t.push(e+(i-e)*a),t.push(o),t.push(1),a}function wt(t,e){for(var r=[],i=0;i&lt;t.length;i++){var n,o=t[i],a=o.type;if("Point"===a||"MultiPoint"===a||"LineString"===a)n=St(o.geometry,e);else if("MultiLineString"===a||"Polygon"===a){n=[];for(var s=0;s&lt;o.geometry.length;s++)n.push(St(o.geometry[s],e))}else if("MultiPolygon"===a)for(n=[],s=0;s&lt;o.geometry.length;s++){for(var l=[],u=0;u&lt;o.geometry[s].length;u++)l.push(St(o.geometry[s][u],e));n.push(l)}r.push(at(o.id,a,n,o.tags))}return r}function St(t,e){var r=[];r.size=t.size,void 0!==t.start&amp;&amp;(r.start=t.start,r.end=t.end);for(var i=0;i&lt;t.length;i+=3)r.push(t[i]+e,t[i+1],t[i+2]);return r}function Et(t,e){if(t.transformed)return t;var r,i,n,o=1&lt;&lt;t.z,a=t.x,s=t.y;for(r=0;r&lt;t.features.length;r++){var l=t.features[r],u=l.geometry,c=l.type;if(l.geometry=[],1===c)for(i=0;i&lt;u.length;i+=2)l.geometry.push(kt(u[i],u[i+1],e,o,a,s));else for(i=0;i&lt;u.length;i++){var p=[];for(n=0;n&lt;u[i].length;n+=2)p.push(kt(u[i][n],u[i][n+1],e,o,a,s));l.geometry.push(p)}}return t.transformed=!0,t}function kt(t,e,r,i,n,o){return[Math.round(r*(t*i-n)),Math.round(r*(e*i-o))]}function Tt(t,e,r,i,n){for(var o=e===n.maxZoom?0:n.tolerance/((1&lt;&lt;e)*n.extent),a={features:[],numPoints:0,numSimplified:0,numFeatures:0,source:null,x:r,y:i,z:e,transformed:!1,minX:2,minY:1,maxX:-1,maxY:0},s=0;s&lt;t.length;s++){a.numFeatures++,At(a,t[s],o,n);var l=t[s].minX,u=t[s].minY,c=t[s].maxX,p=t[s].maxY;l&lt;a.minX&amp;&amp;(a.minX=l),u&lt;a.minY&amp;&amp;(a.minY=u),c&gt;a.maxX&amp;&amp;(a.maxX=c),p&gt;a.maxY&amp;&amp;(a.maxY=p)}return a}function At(t,e,r,i){var n=e.geometry,o=e.type,a=[];if("Point"===o||"MultiPoint"===o)for(var s=0;s&lt;n.length;s+=3)a.push(n[s]),a.push(n[s+1]),t.numPoints++,t.numSimplified++;else if("LineString"===o)Ct(a,n,t,r,!1,!1);else if("MultiLineString"===o||"Polygon"===o)for(s=0;s&lt;n.length;s++)Ct(a,n[s],t,r,"Polygon"===o,0===s);else if("MultiPolygon"===o)for(var l=0;l&lt;n.length;l++){var u=n[l];for(s=0;s&lt;u.length;s++)Ct(a,u[s],t,r,!0,0===s)}if(a.length){var c=e.tags||null;if("LineString"===o&amp;&amp;i.lineMetrics){for(var p in c={},e.tags)c[p]=e.tags[p];c.mapbox_clip_start=n.start/n.size,c.mapbox_clip_end=n.end/n.size}var h={geometry:a,type:"Polygon"===o||"MultiPolygon"===o?3:"LineString"===o||"MultiLineString"===o?2:1,tags:c};null!==e.id&amp;&amp;(h.id=e.id),t.features.push(h)}}function Ct(t,e,r,i,n,o){var a=i*i;if(i&gt;0&amp;&amp;e.size&lt;(n?a:i))r.numPoints+=e.length/3;else{for(var s=[],l=0;l&lt;e.length;l+=3)(0===i||e[l+2]&gt;a)&amp;&amp;(r.numSimplified++,s.push(e[l]),s.push(e[l+1])),r.numPoints++;n&amp;&amp;function(t,e){for(var r=0,i=0,n=t.length,o=n-2;i&lt;n;o=i,i+=2)r+=(t[i]-t[o])*(t[i+1]+t[o+1]);if(r&gt;0===e)for(i=0,n=t.length;i&lt;n/2;i+=2){var a=t[i],s=t[i+1];t[i]=t[n-2-i],t[i+1]=t[n-1-i],t[n-2-i]=a,t[n-1-i]=s}}(s,o),t.push(s)}}function It(t,e){var r=(e=this.options=function(t,e){for(var r in e)t[r]=e[r];return t}(Object.create(this.options),e)).debug;if(r&amp;&amp;console.time("preprocess data"),e.maxZoom&lt;0||e.maxZoom&gt;24)throw new Error("maxZoom should be in the 0-24 range");if(e.promoteId&amp;&amp;e.generateId)throw new Error("promoteId and generateId cannot be used together.");var i=function(t,e){var r=[];if("FeatureCollection"===t.type)for(var i=0;i&lt;t.features.length;i++)lt(r,t.features[i],e,i);else"Feature"===t.type?lt(r,t,e):lt(r,{geometry:t},e);return r}(t,e);this.tiles={},this.tileCoords=[],r&amp;&amp;(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",e.indexMaxZoom,e.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),(i=function(t,e){var r=e.buffer/e.extent,i=t,n=ft(t,1,-1-r,r,0,-1,2,e),o=ft(t,1,1-r,2+r,0,-1,2,e);return(n||o)&amp;&amp;(i=ft(t,1,-r,1+r,0,-1,2,e)||[],n&amp;&amp;(i=wt(n,1).concat(i)),o&amp;&amp;(i=i.concat(wt(o,-1)))),i}(i,e)).length&amp;&amp;this.splitTile(i,0,0,0),r&amp;&amp;(i.length&amp;&amp;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 Pt(t,e,r){return 32*((1&lt;&lt;t)*r+e)+t}function Mt(t,e){var r=t.tileID.canonical;if(!this._geoJSONIndex)return e(null,null);var i=this._geoJSONIndex.getTile(r.z,r.x,r.y);if(!i)return e(null,null);var n=new E(i.features),o=I(n);0===o.byteOffset&amp;&amp;o.byteLength===o.buffer.byteLength||(o=new Uint8Array(o)),e(null,{vectorTile:n,rawData:o.buffer})}$.prototype.load=function(t){var e=this.options,r=e.log,i=e.minZoom,n=e.maxZoom,o=e.nodeSize;r&amp;&amp;console.time("total time");var a="prepare "+t.length+" points";r&amp;&amp;console.time(a),this.points=t;for(var s=[],l=0;l&lt;t.length;l++)t[l].geometry&amp;&amp;s.push(K(t[l],l));this.trees[n+1]=new Z(s,it,nt,o,Float32Array),r&amp;&amp;console.timeEnd(a);for(var u=n;u&gt;=i;u--){var c=+Date.now();s=this._cluster(s,u),this.trees[u]=new Z(s,it,nt,o,Float32Array),r&amp;&amp;console.log("z%d: %d clusters in %dms",u,s.length,+Date.now()-c)}return r&amp;&amp;console.timeEnd("total time"),this},$.prototype.getClusters=function(t,e){var r=((t[0]+180)%360+360)%360-180,i=Math.max(-90,Math.min(90,t[1])),n=180===t[2]?180:((t[2]+180)%360+360)%360-180,o=Math.max(-90,Math.min(90,t[3]));if(t[2]-t[0]&gt;=360)r=-180,n=180;else if(r&gt;n){var a=this.getClusters([r,i,180,o],e),s=this.getClusters([-180,i,n,o],e);return a.concat(s)}for(var l=this.trees[this._limitZoom(e)],u=[],c=0,p=l.range(tt(r),et(o),tt(n),et(i));c&lt;p.length;c+=1){var h=p[c],d=l.points[h];u.push(d.numPoints?J(d):this.points[d.index])}return u},$.prototype.getChildren=function(t){var e=t&gt;&gt;5,r=t%32,i="No cluster with the specified id.",n=this.trees[r];if(!n)throw new Error(i);var o=n.points[e];if(!o)throw new Error(i);for(var a=this.options.radius/(this.options.extent*Math.pow(2,r-1)),s=[],l=0,u=n.within(o.x,o.y,a);l&lt;u.length;l+=1){var c=u[l],p=n.points[c];p.parentId===t&amp;&amp;s.push(p.numPoints?J(p):this.points[p.index])}if(0===s.length)throw new Error(i);return s},$.prototype.getLeaves=function(t,e,r){e=e||10,r=r||0;var i=[];return this._appendLeaves(i,t,e,r,0),i},$.prototype.getTile=function(t,e,r){var i=this.trees[this._limitZoom(t)],n=Math.pow(2,t),o=this.options,a=o.extent,s=o.radius/a,l=(r-s)/n,u=(r+1+s)/n,c={features:[]};return this._addTileFeatures(i.range((e-s)/n,l,(e+1+s)/n,u),i.points,e,r,n,c),0===e&amp;&amp;this._addTileFeatures(i.range(1-s/n,l,1,u),i.points,n,r,n,c),e===n-1&amp;&amp;this._addTileFeatures(i.range(0,l,s/n,u),i.points,-1,r,n,c),c.features.length?c:null},$.prototype.getClusterExpansionZoom=function(t){for(var e=t%32-1;e&lt;=this.options.maxZoom;){var r=this.getChildren(t);if(e++,1!==r.length)break;t=r[0].properties.cluster_id}return e},$.prototype._appendLeaves=function(t,e,r,i,n){for(var o=0,a=this.getChildren(e);o&lt;a.length;o+=1){var s=a[o],l=s.properties;if(l&amp;&amp;l.cluster?n+l.point_count&lt;=i?n+=l.point_count:n=this._appendLeaves(t,l.cluster_id,r,i,n):n&lt;i?n++:t.push(s),t.length===r)break}return n},$.prototype._addTileFeatures=function(t,e,r,i,n,o){for(var a=0,s=t;a&lt;s.length;a+=1){var l=e[s[a]],u={type:1,geometry:[[Math.round(this.options.extent*(l.x*n-r)),Math.round(this.options.extent*(l.y*n-i))]],tags:l.numPoints?Q(l):this.points[l.index].properties},c=l.numPoints?l.id:this.points[l.index].id;void 0!==c&amp;&amp;(u.id=c),o.features.push(u)}},$.prototype._limitZoom=function(t){return Math.max(this.options.minZoom,Math.min(t,this.options.maxZoom+1))},$.prototype._cluster=function(t,e){for(var r=[],i=this.options,n=i.radius,o=i.extent,a=i.reduce,s=n/(o*Math.pow(2,e)),l=0;l&lt;t.length;l++){var u=t[l];if(!(u.zoom&lt;=e)){u.zoom=e;for(var c=this.trees[e+1],p=c.within(u.x,u.y,s),h=u.numPoints||1,d=u.x*h,f=u.y*h,m=a&amp;&amp;h&gt;1?this._map(u,!0):null,y=(l&lt;&lt;5)+(e+1),g=0,v=p;g&lt;v.length;g+=1){var _=v[g],x=c.points[_];if(!(x.zoom&lt;=e)){x.zoom=e;var b=x.numPoints||1;d+=x.x*b,f+=x.y*b,h+=b,x.parentId=y,a&amp;&amp;(m||(m=this._map(u,!0)),a(m,this._map(x)))}}1===h?r.push(u):(u.parentId=y,r.push(Y(d/h,f/h,y,h,m)))}}return r},$.prototype._map=function(t,e){if(t.numPoints)return e?rt({},t.properties):t.properties;var r=this.points[t.index].properties,i=this.options.map(r);return e&amp;&amp;i===r?rt({},i):i},It.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},It.prototype.splitTile=function(t,e,r,i,n,o,a){for(var s=[t,e,r,i],l=this.options,u=l.debug;s.length;){i=s.pop(),r=s.pop(),e=s.pop(),t=s.pop();var c=1&lt;&lt;e,p=Pt(e,r,i),h=this.tiles[p];if(!h&amp;&amp;(u&gt;1&amp;&amp;console.time("creation"),h=this.tiles[p]=Tt(t,e,r,i,l),this.tileCoords.push({z:e,x:r,y:i}),u)){u&gt;1&amp;&amp;(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",e,r,i,h.numFeatures,h.numPoints,h.numSimplified),console.timeEnd("creation"));var d="z"+e;this.stats[d]=(this.stats[d]||0)+1,this.total++}if(h.source=t,n){if(e===l.maxZoom||e===n)continue;var f=1&lt;&lt;n-e;if(r!==Math.floor(o/f)||i!==Math.floor(a/f))continue}else if(e===l.indexMaxZoom||h.numPoints&lt;=l.indexMaxPoints)continue;if(h.source=null,0!==t.length){u&gt;1&amp;&amp;console.time("clipping");var m,y,g,v,_,x,b=.5*l.buffer/l.extent,w=.5-b,S=.5+b,E=1+b;m=y=g=v=null,_=ft(t,c,r-b,r+S,0,h.minX,h.maxX,l),x=ft(t,c,r+w,r+E,0,h.minX,h.maxX,l),t=null,_&amp;&amp;(m=ft(_,c,i-b,i+S,1,h.minY,h.maxY,l),y=ft(_,c,i+w,i+E,1,h.minY,h.maxY,l),_=null),x&amp;&amp;(g=ft(x,c,i-b,i+S,1,h.minY,h.maxY,l),v=ft(x,c,i+w,i+E,1,h.minY,h.maxY,l),x=null),u&gt;1&amp;&amp;console.timeEnd("clipping"),s.push(m||[],e+1,2*r,2*i),s.push(y||[],e+1,2*r,2*i+1),s.push(g||[],e+1,2*r+1,2*i),s.push(v||[],e+1,2*r+1,2*i+1)}}},It.prototype.getTile=function(t,e,r){var i=this.options,n=i.extent,o=i.debug;if(t&lt;0||t&gt;24)return null;var a=1&lt;&lt;t,s=Pt(t,e=(e%a+a)%a,r);if(this.tiles[s])return Et(this.tiles[s],n);o&gt;1&amp;&amp;console.log("drilling down to z%d-%d-%d",t,e,r);for(var l,u=t,c=e,p=r;!l&amp;&amp;u&gt;0;)u--,c=Math.floor(c/2),p=Math.floor(p/2),l=this.tiles[Pt(u,c,p)];return l&amp;&amp;l.source?(o&gt;1&amp;&amp;console.log("found parent tile z%d-%d-%d",u,c,p),o&gt;1&amp;&amp;console.time("drilling down"),this.splitTile(l.source,u,c,p,t,e,r),o&gt;1&amp;&amp;console.timeEnd("drilling down"),this.tiles[s]?Et(this.tiles[s],n):null):null};var zt=function(e){function r(t,r,i){e.call(this,t,r,Mt),i&amp;&amp;(this.loadGeoJSON=i)}return e&amp;&amp;(r.__proto__=e),r.prototype=Object.create(e&amp;&amp;e.prototype),r.prototype.constructor=r,r.prototype.loadData=function(t,e){this._pendingCallback&amp;&amp;this._pendingCallback(null,{abandoned:!0}),this._pendingCallback=e,this._pendingLoadDataParams=t,this._state&amp;&amp;"Idle"!==this._state?this._state="NeedsLoadData":(this._state="Coalescing",this._loadData())},r.prototype._loadData=function(){var e=this;if(this._pendingCallback&amp;&amp;this._pendingLoadDataParams){var r=this._pendingCallback,i=this._pendingLoadDataParams;delete this._pendingCallback,delete this._pendingLoadDataParams;var n=!!(i&amp;&amp;i.request&amp;&amp;i.request.collectResourceTiming)&amp;&amp;new l.Performance(i.request);this.loadGeoJSON(i,(function(o,a){if(o||!a)return r(o);if("object"!=typeof a)return r(new Error("Input data given to '"+i.source+"' is not a valid GeoJSON object."));v(a,!0);try{e._geoJSONIndex=i.cluster?new $(function(e){var r=e.superclusterOptions,i=e.clusterProperties;if(!i||!r)return r;for(var n={},o={},a={accumulated:null,zoom:0},s={properties:null},l=Object.keys(i),u=0,c=l;u&lt;c.length;u+=1){var p=c[u],h=i[p],d=h[0],f=h[1],m=t.createExpression(f),y=t.createExpression("string"==typeof d?[d,["accumulated"],["get",p]]:d);n[p]=m.value,o[p]=y.value}return r.map=function(t){s.properties=t;for(var e={},r=0,i=l;r&lt;i.length;r+=1){var o=i[r];e[o]=n[o].evaluate(a,s)}return e},r.reduce=function(t,e){s.properties=e;for(var r=0,i=l;r&lt;i.length;r+=1){var n=i[r];a.accumulated=t[n],t[n]=o[n].evaluate(a,s)}},r}(i)).load(a.features):function(t,e){return new It(t,e)}(a,i.geojsonVtOptions)}catch(o){return r(o)}e.loaded={};var s={};if(n){var l=n.finish();l&amp;&amp;(s.resourceTiming={},s.resourceTiming[i.source]=JSON.parse(JSON.stringify(l)))}r(null,s)}))}},r.prototype.coalesce=function(){"Coalescing"===this._state?this._state="Idle":"NeedsLoadData"===this._state&amp;&amp;(this._state="Coalescing",this._loadData())},r.prototype.reloadTile=function(t,r){var i=this.loaded,n=t.uid;return i&amp;&amp;i[n]?e.prototype.reloadTile.call(this,t,r):this.loadTile(t,r)},r.prototype.loadGeoJSON=function(e,r){if(e.request)t.getJSON(e.request,r);else{if("string"!=typeof e.data)return r(new Error("Input data given to '"+e.source+"' is not a valid GeoJSON object."));try{return r(null,JSON.parse(e.data))}catch(t){return r(new Error("Input data given to '"+e.source+"' is not a valid GeoJSON object."))}}},r.prototype.removeSource=function(t,e){this._pendingCallback&amp;&amp;this._pendingCallback(null,{abandoned:!0}),e()},r.prototype.getClusterExpansionZoom=function(t,e){e(null,this._geoJSONIndex.getClusterExpansionZoom(t.clusterId))},r.prototype.getClusterChildren=function(t,e){e(null,this._geoJSONIndex.getChildren(t.clusterId))},r.prototype.getClusterLeaves=function(t,e){e(null,this._geoJSONIndex.getLeaves(t.clusterId,t.limit,t.offset))},r}(p),Dt=function(e){var r=this;this.self=e,this.actor=new t.Actor(e,this),this.layerIndexes={},this.workerSourceTypes={vector:p,geojson:zt},this.workerSources={},this.demWorkerSources={},this.self.registerWorkerSource=function(t,e){if(r.workerSourceTypes[t])throw new Error('Worker source with name "'+t+'" already registered.');r.workerSourceTypes[t]=e},this.self.registerRTLTextPlugin=function(e){if(t.plugin.isLoaded())throw new Error("RTL text plugin already registered.");t.plugin.applyArabicShaping=e.applyArabicShaping,t.plugin.processBidirectionalText=e.processBidirectionalText,t.plugin.processStyledBidirectionalText=e.processStyledBidirectionalText}};return Dt.prototype.setReferrer=function(t,e){this.referrer=e},Dt.prototype.setLayers=function(t,e,r){this.getLayerIndex(t).replace(e),r()},Dt.prototype.updateLayers=function(t,e,r){this.getLayerIndex(t).update(e.layers,e.removedIds),r()},Dt.prototype.loadTile=function(t,e,r){this.getWorkerSource(t,e.type,e.source).loadTile(e,r)},Dt.prototype.loadDEMTile=function(t,e,r){this.getDEMWorkerSource(t,e.source).loadTile(e,r)},Dt.prototype.reloadTile=function(t,e,r){this.getWorkerSource(t,e.type,e.source).reloadTile(e,r)},Dt.prototype.abortTile=function(t,e,r){this.getWorkerSource(t,e.type,e.source).abortTile(e,r)},Dt.prototype.removeTile=function(t,e,r){this.getWorkerSource(t,e.type,e.source).removeTile(e,r)},Dt.prototype.removeDEMTile=function(t,e){this.getDEMWorkerSource(t,e.source).removeTile(e)},Dt.prototype.removeSource=function(t,e,r){if(this.workerSources[t]&amp;&amp;this.workerSources[t][e.type]&amp;&amp;this.workerSources[t][e.type][e.source]){var i=this.workerSources[t][e.type][e.source];delete this.workerSources[t][e.type][e.source],void 0!==i.removeSource?i.removeSource(e,r):r()}},Dt.prototype.loadWorkerSource=function(t,e,r){try{this.self.importScripts(e.url),r()}catch(t){r(t.toString())}},Dt.prototype.loadRTLTextPlugin=function(e,r,i){try{t.plugin.isLoaded()||(this.self.importScripts(r),i(t.plugin.isLoaded()?null:new Error("RTL Text Plugin failed to import scripts from "+r)))}catch(t){i(t.toString())}},Dt.prototype.getLayerIndex=function(t){var e=this.layerIndexes[t];return e||(e=this.layerIndexes[t]=new i),e},Dt.prototype.getWorkerSource=function(t,e,r){var i=this;if(this.workerSources[t]||(this.workerSources[t]={}),this.workerSources[t][e]||(this.workerSources[t][e]={}),!this.workerSources[t][e][r]){var n={send:function(e,r,n){i.actor.send(e,r,n,t)}};this.workerSources[t][e][r]=new this.workerSourceTypes[e](n,this.getLayerIndex(t))}return this.workerSources[t][e][r]},Dt.prototype.getDEMWorkerSource=function(t,e){return this.demWorkerSources[t]||(this.demWorkerSources[t]={}),this.demWorkerSources[t][e]||(this.demWorkerSources[t][e]=new h),this.demWorkerSources[t][e]},Dt.prototype.enforceCacheSizeLimit=function(e,r){t.enforceCacheSizeLimit(r)},"undefined"!=typeof WorkerGlobalScope&amp;&amp;void 0!==t.window&amp;&amp;t.window instanceof WorkerGlobalScope&amp;&amp;(t.window.worker=new Dt(t.window)),Dt})),i(["./shared"],(function(t){var e=t.createCommonjsModule((function(t){function e(t){return!!("undefined"!=typeof window&amp;&amp;"undefined"!=typeof document&amp;&amp;Array.prototype&amp;&amp;Array.prototype.every&amp;&amp;Array.prototype.filter&amp;&amp;Array.prototype.forEach&amp;&amp;Array.prototype.indexOf&amp;&amp;Array.prototype.lastIndexOf&amp;&amp;Array.prototype.map&amp;&amp;Array.prototype.some&amp;&amp;Array.prototype.reduce&amp;&amp;Array.prototype.reduceRight&amp;&amp;Array.isArray&amp;&amp;Function.prototype&amp;&amp;Function.prototype.bind&amp;&amp;Object.keys&amp;&amp;Object.create&amp;&amp;Object.getPrototypeOf&amp;&amp;Object.getOwnPropertyNames&amp;&amp;Object.isSealed&amp;&amp;Object.isFrozen&amp;&amp;Object.isExtensible&amp;&amp;Object.getOwnPropertyDescriptor&amp;&amp;Object.defineProperty&amp;&amp;Object.defineProperties&amp;&amp;Object.seal&amp;&amp;Object.freeze&amp;&amp;Object.preventExtensions&amp;&amp;"JSON"in window&amp;&amp;"parse"in JSON&amp;&amp;"stringify"in JSON&amp;&amp;function(){if(!("Worker"in window&amp;&amp;"Blob"in window&amp;&amp;"URL"in window))return!1;var t,e,r=new Blob([""],{type:"text/javascript"}),i=URL.createObjectURL(r);try{e=new Worker(i),t=!0}catch(e){t=!1}return e&amp;&amp;e.terminate(),URL.revokeObjectURL(i),t}()&amp;&amp;"Uint8ClampedArray"in window&amp;&amp;ArrayBuffer.isView&amp;&amp;function(t){return void 0===r[t]&amp;&amp;(r[t]=function(t){var r=document.createElement("canvas"),i=Object.create(e.webGLContextAttributes);return i.failIfMajorPerformanceCaveat=t,r.probablySupportsContext?r.probablySupportsContext("webgl",i)||r.probablySupportsContext("experimental-webgl",i):r.supportsContext?r.supportsContext("webgl",i)||r.supportsContext("experimental-webgl",i):r.getContext("webgl",i)||r.getContext("experimental-webgl",i)}(t)),r[t]}(t&amp;&amp;t.failIfMajorPerformanceCaveat))}t.exports?t.exports=e:window&amp;&amp;(window.mapboxgl=window.mapboxgl||{},window.mapboxgl.supported=e);var r={};e.webGLContextAttributes={antialias:!1,alpha:!0,stencil:!0,depth:!0}})),r={create:function(e,r,i){var n=t.window.document.createElement(e);return void 0!==r&amp;&amp;(n.className=r),i&amp;&amp;i.appendChild(n),n},createNS:function(e,r){return t.window.document.createElementNS(e,r)}},i=t.window.document.documentElement.style;function n(t){if(!i)return t[0];for(var e=0;e&lt;t.length;e++)if(t[e]in i)return t[e];return t[0]}var o,a=n(["userSelect","MozUserSelect","WebkitUserSelect","msUserSelect"]);r.disableDrag=function(){i&amp;&amp;a&amp;&amp;(o=i[a],i[a]="none")},r.enableDrag=function(){i&amp;&amp;a&amp;&amp;(i[a]=o)};var s=n(["transform","WebkitTransform"]);r.setTransform=function(t,e){t.style[s]=e};var l=!1;try{var u=Object.defineProperty({},"passive",{get:function(){l=!0}});t.window.addEventListener("test",u,u),t.window.removeEventListener("test",u,u)}catch(t){l=!1}r.addEventListener=function(t,e,r,i){void 0===i&amp;&amp;(i={}),"passive"in i&amp;&amp;l?t.addEventListener(e,r,i):t.addEventListener(e,r,i.capture)},r.removeEventListener=function(t,e,r,i){void 0===i&amp;&amp;(i={}),"passive"in i&amp;&amp;l?t.removeEventListener(e,r,i):t.removeEventListener(e,r,i.capture)};var c=function(e){e.preventDefault(),e.stopPropagation(),t.window.removeEventListener("click",c,!0)};function p(t){var e=t.userImage;return!!(e&amp;&amp;e.render&amp;&amp;e.render())&amp;&amp;(t.data.replace(new Uint8Array(e.data.buffer)),!0)}r.suppressClick=function(){t.window.addEventListener("click",c,!0),t.window.setTimeout((function(){t.window.removeEventListener("click",c,!0)}),0)},r.mousePos=function(e,r){var i=e.getBoundingClientRect(),n=t.window.TouchEvent&amp;&amp;r instanceof t.window.TouchEvent?r.touches[0]:r;return new t.Point(n.clientX-i.left-e.clientLeft,n.clientY-i.top-e.clientTop)},r.touchPos=function(e,r){for(var i=e.getBoundingClientRect(),n=[],o="touchend"===r.type?r.changedTouches:r.touches,a=0;a&lt;o.length;a++)n.push(new t.Point(o[a].clientX-i.left-e.clientLeft,o[a].clientY-i.top-e.clientTop));return n},r.mouseButton=function(e){return void 0!==t.window.InstallTrigger&amp;&amp;2===e.button&amp;&amp;e.ctrlKey&amp;&amp;t.window.navigator.platform.toUpperCase().indexOf("MAC")&gt;=0?0:e.button},r.remove=function(t){t.parentNode&amp;&amp;t.parentNode.removeChild(t)};var h=function(e){function r(){e.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new t.RGBAImage({width:1,height:1}),this.dirty=!0}return e&amp;&amp;(r.__proto__=e),r.prototype=Object.create(e&amp;&amp;e.prototype),r.prototype.constructor=r,r.prototype.isLoaded=function(){return this.loaded},r.prototype.setLoaded=function(t){if(this.loaded!==t&amp;&amp;(this.loaded=t,t)){for(var e=0,r=this.requestors;e&lt;r.length;e+=1){var i=r[e],n=i.ids,o=i.callback;this._notify(n,o)}this.requestors=[]}},r.prototype.getImage=function(t){return this.images[t]},r.prototype.addImage=function(t,e){this.images[t]=e},r.prototype.updateImage=function(t,e){var r=this.images[t];e.version=r.version+1,this.images[t]=e,this.updatedImages[t]=!0},r.prototype.removeImage=function(t){var e=this.images[t];delete this.images[t],delete this.patterns[t],e.userImage&amp;&amp;e.userImage.onRemove&amp;&amp;e.userImage.onRemove()},r.prototype.listImages=function(){return Object.keys(this.images)},r.prototype.getImages=function(t,e){var r=!0;if(!this.isLoaded())for(var i=0,n=t;i&lt;n.length;i+=1){var o=n[i];this.images[o]||(r=!1)}this.isLoaded()||r?this._notify(t,e):this.requestors.push({ids:t,callback:e})},r.prototype._notify=function(e,r){for(var i={},n=0,o=e;n&lt;o.length;n+=1){var a=o[n];this.images[a]||this.fire(new t.Event("styleimagemissing",{id:a}));var s=this.images[a];s?i[a]={data:s.data.clone(),pixelRatio:s.pixelRatio,sdf:s.sdf,version:s.version,hasRenderCallback:Boolean(s.userImage&amp;&amp;s.userImage.render)}:t.warnOnce('Image "'+a+'" could not be loaded. Please make sure you have added the image with map.addImage() or a "sprite" property in your style. You can provide missing images by listening for the "styleimagemissing" map event.')}r(null,i)},r.prototype.getPixelSize=function(){var t=this.atlasImage;return{width:t.width,height:t.height}},r.prototype.getPattern=function(e){var r=this.patterns[e],i=this.getImage(e);if(!i)return null;if(r&amp;&amp;r.position.version===i.version)return r.position;if(r)r.position.version=i.version;else{var n={w:i.data.width+2,h:i.data.height+2,x:0,y:0},o=new t.ImagePosition(n,i);this.patterns[e]={bin:n,position:o}}return this._updatePatternAtlas(),this.patterns[e].position},r.prototype.bind=function(e){var r=e.gl;this.atlasTexture?this.dirty&amp;&amp;(this.atlasTexture.update(this.atlasImage),this.dirty=!1):this.atlasTexture=new t.Texture(e,this.atlasImage,r.RGBA),this.atlasTexture.bind(r.LINEAR,r.CLAMP_TO_EDGE)},r.prototype._updatePatternAtlas=function(){var e=[];for(var r in this.patterns)e.push(this.patterns[r].bin);var i=t.potpack(e),n=i.w,o=i.h,a=this.atlasImage;for(var s in a.resize({width:n||1,height:o||1}),this.patterns){var l=this.patterns[s].bin,u=l.x+1,c=l.y+1,p=this.images[s].data,h=p.width,d=p.height;t.RGBAImage.copy(p,a,{x:0,y:0},{x:u,y:c},{width:h,height:d}),t.RGBAImage.copy(p,a,{x:0,y:d-1},{x:u,y:c-1},{width:h,height:1}),t.RGBAImage.copy(p,a,{x:0,y:0},{x:u,y:c+d},{width:h,height:1}),t.RGBAImage.copy(p,a,{x:h-1,y:0},{x:u-1,y:c},{width:1,height:d}),t.RGBAImage.copy(p,a,{x:0,y:0},{x:u+h,y:c},{width:1,height:d})}this.dirty=!0},r.prototype.beginFrame=function(){this.callbackDispatchedThisFrame={}},r.prototype.dispatchRenderCallbacks=function(t){for(var e=0,r=t;e&lt;r.length;e+=1){var i=r[e];if(!this.callbackDispatchedThisFrame[i]){this.callbackDispatchedThisFrame[i]=!0;var n=this.images[i];p(n)&amp;&amp;this.updateImage(i,n)}}},r}(t.Evented),d=y,f=y,m=1e20;function y(t,e,r,i,n,o){this.fontSize=t||24,this.buffer=void 0===e?3:e,this.cutoff=i||.25,this.fontFamily=n||"sans-serif",this.fontWeight=o||"normal",this.radius=r||8;var a=this.size=this.fontSize+2*this.buffer;this.canvas=document.createElement("canvas"),this.canvas.width=this.canvas.height=a,this.ctx=this.canvas.getContext("2d"),this.ctx.font=this.fontWeight+" "+this.fontSize+"px "+this.fontFamily,this.ctx.textBaseline="middle",this.ctx.fillStyle="black",this.gridOuter=new Float64Array(a*a),this.gridInner=new Float64Array(a*a),this.f=new Float64Array(a),this.d=new Float64Array(a),this.z=new Float64Array(a+1),this.v=new Int16Array(a),this.middle=Math.round(a/2*(navigator.userAgent.indexOf("Gecko/")&gt;=0?1.2:1))}function g(t,e,r,i,n,o,a){for(var s=0;s&lt;e;s++){for(var l=0;l&lt;r;l++)i[l]=t[l*e+s];for(v(i,n,o,a,r),l=0;l&lt;r;l++)t[l*e+s]=n[l]}for(l=0;l&lt;r;l++){for(s=0;s&lt;e;s++)i[s]=t[l*e+s];for(v(i,n,o,a,e),s=0;s&lt;e;s++)t[l*e+s]=Math.sqrt(n[s])}}function v(t,e,r,i,n){r[0]=0,i[0]=-m,i[1]=+m;for(var o=1,a=0;o&lt;n;o++){for(var s=(t[o]+o*o-(t[r[a]]+r[a]*r[a]))/(2*o-2*r[a]);s&lt;=i[a];)a--,s=(t[o]+o*o-(t[r[a]]+r[a]*r[a]))/(2*o-2*r[a]);r[++a]=o,i[a]=s,i[a+1]=+m}for(o=0,a=0;o&lt;n;o++){for(;i[a+1]&lt;o;)a++;e[o]=(o-r[a])*(o-r[a])+t[r[a]]}}y.prototype.draw=function(t){this.ctx.clearRect(0,0,this.size,this.size),this.ctx.fillText(t,this.buffer,this.middle);for(var e=this.ctx.getImageData(0,0,this.size,this.size),r=new Uint8ClampedArray(this.size*this.size),i=0;i&lt;this.size*this.size;i++){var n=e.data[4*i+3]/255;this.gridOuter[i]=1===n?0:0===n?m:Math.pow(Math.max(0,.5-n),2),this.gridInner[i]=1===n?m:0===n?0:Math.pow(Math.max(0,n-.5),2)}for(g(this.gridOuter,this.size,this.size,this.f,this.d,this.v,this.z),g(this.gridInner,this.size,this.size,this.f,this.d,this.v,this.z),i=0;i&lt;this.size*this.size;i++){var o=this.gridOuter[i]-this.gridInner[i];r[i]=Math.max(0,Math.min(255,Math.round(255-255*(o/this.radius+this.cutoff))))}return r},d.default=f;var _=function(t,e){this.requestManager=t,this.localIdeographFontFamily=e,this.entries={}};_.prototype.setURL=function(t){this.url=t},_.prototype.getGlyphs=function(e,r){var i=this,n=[];for(var o in e)for(var a=0,s=e[o];a&lt;s.length;a+=1){var l=s[a];n.push({stack:o,id:l})}t.asyncAll(n,(function(t,e){var r=t.stack,n=t.id,o=i.entries[r];o||(o=i.entries[r]={glyphs:{},requests:{}});var a=o.glyphs[n];if(void 0===a){if(a=i._tinySDF(o,r,n))return o.glyphs[n]=a,void e(null,{stack:r,id:n,glyph:a});var s=Math.floor(n/256);if(256*s&gt;65535)e(new Error("glyphs &gt; 65535 not supported"));else{var l=o.requests[s];l||(l=o.requests[s]=[],_.loadGlyphRange(r,s,i.url,i.requestManager,(function(t,e){if(e)for(var r in e)i._doesCharSupportLocalGlyph(+r)||(o.glyphs[+r]=e[+r]);for(var n=0,a=l;n&lt;a.length;n+=1)(0,a[n])(t,e);delete o.requests[s]}))),l.push((function(t,i){t?e(t):i&amp;&amp;e(null,{stack:r,id:n,glyph:i[n]||null})}))}}else e(null,{stack:r,id:n,glyph:a})}),(function(t,e){if(t)r(t);else if(e){for(var i={},n=0,o=e;n&lt;o.length;n+=1){var a=o[n],s=a.stack,l=a.id,u=a.glyph;(i[s]||(i[s]={}))[l]=u&amp;&amp;{id:u.id,bitmap:u.bitmap.clone(),metrics:u.metrics}}r(null,i)}}))},_.prototype._doesCharSupportLocalGlyph=function(e){return!!this.localIdeographFontFamily&amp;&amp;(t.isChar["CJK Unified Ideographs"](e)||t.isChar["Hangul Syllables"](e)||t.isChar.Hiragana(e)||t.isChar.Katakana(e))},_.prototype._tinySDF=function(e,r,i){var n=this.localIdeographFontFamily;if(n&amp;&amp;this._doesCharSupportLocalGlyph(i)){var o=e.tinySDF;if(!o){var a="400";/bold/i.test(r)?a="900":/medium/i.test(r)?a="500":/light/i.test(r)&amp;&amp;(a="200"),o=e.tinySDF=new _.TinySDF(24,3,8,.25,n,a)}return{id:i,bitmap:new t.AlphaImage({width:30,height:30},o.draw(String.fromCharCode(i))),metrics:{width:24,height:24,left:0,top:-8,advance:24}}}},_.loadGlyphRange=function(e,r,i,n,o){var a=256*r,s=a+255,l=n.transformRequest(n.normalizeGlyphsURL(i).replace("{fontstack}",e).replace("{range}",a+"-"+s),t.ResourceType.Glyphs);t.getArrayBuffer(l,(function(e,r){if(e)o(e);else if(r){for(var i={},n=0,a=t.parseGlyphPBF(r);n&lt;a.length;n+=1){var s=a[n];i[s.id]=s}o(null,i)}}))},_.TinySDF=d;var x=function(){this.specification=t.styleSpec.light.position};x.prototype.possiblyEvaluate=function(e,r){return t.sphericalToCartesian(e.expression.evaluate(r))},x.prototype.interpolate=function(e,r,i){return{x:t.number(e.x,r.x,i),y:t.number(e.y,r.y,i),z:t.number(e.z,r.z,i)}};var b=new t.Properties({anchor:new t.DataConstantProperty(t.styleSpec.light.anchor),position:new x,color:new t.DataConstantProperty(t.styleSpec.light.color),intensity:new t.DataConstantProperty(t.styleSpec.light.intensity)}),w=function(e){function r(r){e.call(this),this._transitionable=new t.Transitionable(b),this.setLight(r),this._transitioning=this._transitionable.untransitioned()}return e&amp;&amp;(r.__proto__=e),r.prototype=Object.create(e&amp;&amp;e.prototype),r.prototype.constructor=r,r.prototype.getLight=function(){return this._transitionable.serialize()},r.prototype.setLight=function(e,r){if(void 0===r&amp;&amp;(r={}),!this._validate(t.validateLight,e,r))for(var i in e){var n=e[i];t.endsWith(i,"-transition")?this._transitionable.setTransition(i.slice(0,-"-transition".length),n):this._transitionable.setValue(i,n)}},r.prototype.updateTransitions=function(t){this._transitioning=this._transitionable.transitioned(t,this._transitioning)},r.prototype.hasTransition=function(){return this._transitioning.hasTransition()},r.prototype.recalculate=function(t){this.properties=this._transitioning.possiblyEvaluate(t)},r.prototype._validate=function(e,r,i){return(!i||!1!==i.validate)&amp;&amp;t.emitValidationErrors(this,e.call(t.validateStyle,t.extend({value:r,style:{glyphs:!0,sprite:!0},styleSpec:t.styleSpec})))},r}(t.Evented),S=function(t,e){this.width=t,this.height=e,this.nextRow=0,this.bytes=4,this.data=new Uint8Array(this.width*this.height*this.bytes),this.positions={}};S.prototype.getDash=function(t,e){var r=t.join(",")+String(e);return this.positions[r]||(this.positions[r]=this.addDash(t,e)),this.positions[r]},S.prototype.addDash=function(e,r){var i=r?7:0,n=2*i+1;if(this.nextRow+n&gt;this.height)return t.warnOnce("LineAtlas out of space"),null;for(var o=0,a=0;a&lt;e.length;a++)o+=e[a];for(var s=this.width/o,l=s/2,u=e.length%2==1,c=-i;c&lt;=i;c++)for(var p=this.nextRow+i+c,h=this.width*p,d=u?-e[e.length-1]:0,f=e[0],m=1,y=0;y&lt;this.width;y++){for(;f&lt;y/s;)d=f,f+=e[m],u&amp;&amp;m===e.length-1&amp;&amp;(f+=e[0]),m++;var g=Math.abs(y-d*s),v=Math.abs(y-f*s),_=Math.min(g,v),x=m%2==1,b=void 0;if(r){var w=i?c/i*(l+1):0;if(x){var S=l-Math.abs(w);b=Math.sqrt(_*_+S*S)}else b=l-Math.sqrt(_*_+w*w)}else b=(x?1:-1)*_;this.data[3+4*(h+y)]=Math.max(0,Math.min(255,b+128))}var E={y:(this.nextRow+i+.5)/this.height,height:2*i/this.height,width:o};return this.nextRow+=n,this.dirty=!0,E},S.prototype.bind=function(t){var e=t.gl;this.texture?(e.bindTexture(e.TEXTURE_2D,this.texture),this.dirty&amp;&amp;(this.dirty=!1,e.texSubImage2D(e.TEXTURE_2D,0,0,0,this.width,this.height,e.RGBA,e.UNSIGNED_BYTE,this.data))):(this.texture=e.createTexture(),e.bindTexture(e.TEXTURE_2D,this.texture),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.REPEAT),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.REPEAT),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,this.width,this.height,0,e.RGBA,e.UNSIGNED_BYTE,this.data))};var E=function e(r,i){this.workerPool=r,this.actors=[],this.currentActor=0,this.id=t.uniqueId();for(var n=this.workerPool.acquire(this.id),o=0;o&lt;n.length;o++){var a=n[o],s=new e.Actor(a,i,this.id);s.name="Worker "+o,this.actors.push(s)}};function k(e,r,i){var n=function(n,o){if(n)return i(n);if(o){var a=t.pick(t.extend(o,e),["tiles","minzoom","maxzoom","attribution","mapbox_logo","bounds","scheme","tileSize","encoding"]);o.vector_layers&amp;&amp;(a.vectorLayers=o.vector_layers,a.vectorLayerIds=a.vectorLayers.map((function(t){return t.id}))),e.url&amp;&amp;(a.tiles=r.canonicalizeTileset(a,e.url)),i(null,a)}};return e.url?t.getJSON(r.transformRequest(r.normalizeSourceURL(e.url),t.ResourceType.Source),n):t.browser.frame((function(){return n(null,e)}))}E.prototype.broadcast=function(e,r,i){i=i||function(){},t.asyncAll(this.actors,(function(t,i){t.send(e,r,i)}),i)},E.prototype.getActor=function(){return this.currentActor=(this.currentActor+1)%this.actors.length,this.actors[this.currentActor]},E.prototype.remove=function(){this.actors.forEach((function(t){t.remove()})),this.actors=[],this.workerPool.release(this.id)},E.Actor=t.Actor;var T=function(e,r,i){this.bounds=t.LngLatBounds.convert(this.validateBounds(e)),this.minzoom=r||0,this.maxzoom=i||24};T.prototype.validateBounds=function(t){return Array.isArray(t)&amp;&amp;4===t.length?[Math.max(-180,t[0]),Math.max(-90,t[1]),Math.min(180,t[2]),Math.min(90,t[3])]:[-180,-90,180,90]},T.prototype.contains=function(e){var r=Math.pow(2,e.z),i=Math.floor(t.mercatorXfromLng(this.bounds.getWest())*r),n=Math.floor(t.mercatorYfromLat(this.bounds.getNorth())*r),o=Math.ceil(t.mercatorXfromLng(this.bounds.getEast())*r),a=Math.ceil(t.mercatorYfromLat(this.bounds.getSouth())*r);return e.x&gt;=i&amp;&amp;e.x&lt;o&amp;&amp;e.y&gt;=n&amp;&amp;e.y&lt;a};var A=function(e){function r(r,i,n,o){if(e.call(this),this.id=r,this.dispatcher=n,this.type="vector",this.minzoom=0,this.maxzoom=22,this.scheme="xyz",this.tileSize=512,this.reparseOverscaled=!0,this.isTileClipped=!0,this._loaded=!1,t.extend(this,t.pick(i,["url","scheme","tileSize"])),this._options=t.extend({type:"vector"},i),this._collectResourceTiming=i.collectResourceTiming,512!==this.tileSize)throw new Error("vector tile sources must have a tileSize of 512");this.setEventedParent(o)}return e&amp;&amp;(r.__proto__=e),r.prototype=Object.create(e&amp;&amp;e.prototype),r.prototype.constructor=r,r.prototype.load=function(){var e=this;this._loaded=!1,this.fire(new t.Event("dataloading",{dataType:"source"})),this._tileJSONRequest=k(this._options,this.map._requestManager,(function(r,i){e._tileJSONRequest=null,e._loaded=!0,r?e.fire(new t.ErrorEvent(r)):i&amp;&amp;(t.extend(e,i),i.bounds&amp;&amp;(e.tileBounds=new T(i.bounds,e.minzoom,e.maxzoom)),t.postTurnstileEvent(i.tiles,e.map._requestManager._customAccessToken),t.postMapLoadEvent(i.tiles,e.map._getMapId(),e.map._requestManager._skuToken,e.map._requestManager._customAccessToken),e.fire(new t.Event("data",{dataType:"source",sourceDataType:"metadata"})),e.fire(new t.Event("data",{dataType:"source",sourceDataType:"content"})))}))},r.prototype.loaded=function(){return this._loaded},r.prototype.hasTile=function(t){return!this.tileBounds||this.tileBounds.contains(t.canonical)},r.prototype.onAdd=function(t){this.map=t,this.load()},r.prototype.onRemove=function(){this._tileJSONRequest&amp;&amp;(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)},r.prototype.serialize=function(){return t.extend({},this._options)},r.prototype.loadTile=function(e,r){var i=this.map._requestManager.normalizeTileURL(e.tileID.canonical.url(this.tiles,this.scheme),this.url,null),n={request:this.map._requestManager.transformRequest(i,t.ResourceType.Tile),uid:e.uid,tileID:e.tileID,zoom:e.tileID.overscaledZ,tileSize:this.tileSize*e.tileID.overscaleFactor(),type:this.type,source:this.id,pixelRatio:t.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes};function o(i,n){return delete e.request,e.aborted?r(null):i&amp;&amp;404!==i.status?r(i):(n&amp;&amp;n.resourceTiming&amp;&amp;(e.resourceTiming=n.resourceTiming),this.map._refreshExpiredTiles&amp;&amp;n&amp;&amp;e.setExpiryData(n),e.loadVectorData(n,this.map.painter),t.cacheEntryPossiblyAdded(this.dispatcher),r(null),void(e.reloadCallback&amp;&amp;(this.loadTile(e,e.reloadCallback),e.reloadCallback=null)))}n.request.collectResourceTiming=this._collectResourceTiming,e.actor&amp;&amp;"expired"!==e.state?"loading"===e.state?e.reloadCallback=r:e.request=e.actor.send("reloadTile",n,o.bind(this)):(e.actor=this.dispatcher.getActor(),e.request=e.actor.send("loadTile",n,o.bind(this)))},r.prototype.abortTile=function(t){t.request&amp;&amp;(t.request.cancel(),delete t.request),t.actor&amp;&amp;t.actor.send("abortTile",{uid:t.uid,type:this.type,source:this.id},void 0)},r.prototype.unloadTile=function(t){t.unloadVectorData(),t.actor&amp;&amp;t.actor.send("removeTile",{uid:t.uid,type:this.type,source:this.id},void 0)},r.prototype.hasTransition=function(){return!1},r}(t.Evented),C=function(e){function r(r,i,n,o){e.call(this),this.id=r,this.dispatcher=n,this.setEventedParent(o),this.type="raster",this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme="xyz",this.tileSize=512,this._loaded=!1,this._options=t.extend({type:"raster"},i),t.extend(this,t.pick(i,["url","scheme","tileSize"]))}return e&amp;&amp;(r.__proto__=e),r.prototype=Object.create(e&amp;&amp;e.prototype),r.prototype.constructor=r,r.prototype.load=function(){var e=this;this._loaded=!1,this.fire(new t.Event("dataloading",{dataType:"source"})),this._tileJSONRequest=k(this._options,this.map._requestManager,(function(r,i){e._tileJSONRequest=null,e._loaded=!0,r?e.fire(new t.ErrorEvent(r)):i&amp;&amp;(t.extend(e,i),i.bounds&amp;&amp;(e.tileBounds=new T(i.bounds,e.minzoom,e.maxzoom)),t.postTurnstileEvent(i.tiles),t.postMapLoadEvent(i.tiles,e.map._getMapId(),e.map._requestManager._skuToken),e.fire(new t.Event("data",{dataType:"source",sourceDataType:"metadata"})),e.fire(new t.Event("data",{dataType:"source",sourceDataType:"content"})))}))},r.prototype.loaded=function(){return this._loaded},r.prototype.onAdd=function(t){this.map=t,this.load()},r.prototype.onRemove=function(){this._tileJSONRequest&amp;&amp;(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)},r.prototype.serialize=function(){return t.extend({},this._options)},r.prototype.hasTile=function(t){return!this.tileBounds||this.tileBounds.contains(t.canonical)},r.prototype.loadTile=function(e,r){var i=this,n=this.map._requestManager.normalizeTileURL(e.tileID.canonical.url(this.tiles,this.scheme),this.url,this.tileSize);e.request=t.getImage(this.map._requestManager.transformRequest(n,t.ResourceType.Tile),(function(n,o){if(delete e.request,e.aborted)e.state="unloaded",r(null);else if(n)e.state="errored",r(n);else if(o){i.map._refreshExpiredTiles&amp;&amp;e.setExpiryData(o),delete o.cacheControl,delete o.expires;var a=i.map.painter.context,s=a.gl;e.texture=i.map.painter.getTileTexture(o.width),e.texture?e.texture.update(o,{useMipmap:!0}):(e.texture=new t.Texture(a,o,s.RGBA,{useMipmap:!0}),e.texture.bind(s.LINEAR,s.CLAMP_TO_EDGE,s.LINEAR_MIPMAP_NEAREST),a.extTextureFilterAnisotropic&amp;&amp;s.texParameterf(s.TEXTURE_2D,a.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,a.extTextureFilterAnisotropicMax)),e.state="loaded",t.cacheEntryPossiblyAdded(i.dispatcher),r(null)}}))},r.prototype.abortTile=function(t,e){t.request&amp;&amp;(t.request.cancel(),delete t.request),e()},r.prototype.unloadTile=function(t,e){t.texture&amp;&amp;this.map.painter.saveTileTexture(t.texture),e()},r.prototype.hasTransition=function(){return!1},r}(t.Evented),I=function(e){function r(r,i,n,o){e.call(this,r,i,n,o),this.type="raster-dem",this.maxzoom=22,this._options=t.extend({type:"raster-dem"},i),this.encoding=i.encoding||"mapbox"}return e&amp;&amp;(r.__proto__=e),r.prototype=Object.create(e&amp;&amp;e.prototype),r.prototype.constructor=r,r.prototype.serialize=function(){return{type:"raster-dem",url:this.url,tileSize:this.tileSize,tiles:this.tiles,bounds:this.bounds,encoding:this.encoding}},r.prototype.loadTile=function(e,r){var i=this.map._requestManager.normalizeTileURL(e.tileID.canonical.url(this.tiles,this.scheme),this.url,this.tileSize);e.request=t.getImage(this.map._requestManager.transformRequest(i,t.ResourceType.Tile),function(i,n){if(delete e.request,e.aborted)e.state="unloaded",r(null);else if(i)e.state="errored",r(i);else if(n){this.map._refreshExpiredTiles&amp;&amp;e.setExpiryData(n),delete n.cacheControl,delete n.expires;var o=t.browser.getImageData(n),a={uid:e.uid,coord:e.tileID,source:this.id,rawImageData:o,encoding:this.encoding};e.actor&amp;&amp;"expired"!==e.state||(e.actor=this.dispatcher.getActor(),e.actor.send("loadDEMTile",a,function(t,i){t&amp;&amp;(e.state="errored",r(t)),i&amp;&amp;(e.dem=i,e.needsHillshadePrepare=!0,e.state="loaded",r(null))}.bind(this)))}}.bind(this)),e.neighboringTiles=this._getNeighboringTiles(e.tileID)},r.prototype._getNeighboringTiles=function(e){var r=e.canonical,i=Math.pow(2,r.z),n=(r.x-1+i)%i,o=0===r.x?e.wrap-1:e.wrap,a=(r.x+1+i)%i,s=r.x+1===i?e.wrap+1:e.wrap,l={};return l[new t.OverscaledTileID(e.overscaledZ,o,r.z,n,r.y).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,s,r.z,a,r.y).key]={backfilled:!1},r.y&gt;0&amp;&amp;(l[new t.OverscaledTileID(e.overscaledZ,o,r.z,n,r.y-1).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,e.wrap,r.z,r.x,r.y-1).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,s,r.z,a,r.y-1).key]={backfilled:!1}),r.y+1&lt;i&amp;&amp;(l[new t.OverscaledTileID(e.overscaledZ,o,r.z,n,r.y+1).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,e.wrap,r.z,r.x,r.y+1).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,s,r.z,a,r.y+1).key]={backfilled:!1}),l},r.prototype.unloadTile=function(t){t.demTexture&amp;&amp;this.map.painter.saveTileTexture(t.demTexture),t.fbo&amp;&amp;(t.fbo.destroy(),delete t.fbo),t.dem&amp;&amp;delete t.dem,delete t.neighboringTiles,t.state="unloaded",t.actor&amp;&amp;t.actor.send("removeDEMTile",{uid:t.uid,source:this.id})},r}(C),P=function(e){function r(r,i,n,o){e.call(this),this.id=r,this.type="geojson",this.minzoom=0,this.maxzoom=18,this.tileSize=512,this.isTileClipped=!0,this.reparseOverscaled=!0,this._removed=!1,this._loaded=!1,this.actor=n.getActor(),this.setEventedParent(o),this._data=i.data,this._options=t.extend({},i),this._collectResourceTiming=i.collectResourceTiming,this._resourceTiming=[],void 0!==i.maxzoom&amp;&amp;(this.maxzoom=i.maxzoom),i.type&amp;&amp;(this.type=i.type),i.attribution&amp;&amp;(this.attribution=i.attribution);var a=t.EXTENT/this.tileSize;this.workerOptions=t.extend({source:this.id,cluster:i.cluster||!1,geojsonVtOptions:{buffer:(void 0!==i.buffer?i.buffer:128)*a,tolerance:(void 0!==i.tolerance?i.tolerance:.375)*a,extent:t.EXTENT,maxZoom:this.maxzoom,lineMetrics:i.lineMetrics||!1,generateId:i.generateId||!1},superclusterOptions:{maxZoom:void 0!==i.clusterMaxZoom?Math.min(i.clusterMaxZoom,this.maxzoom-1):this.maxzoom-1,extent:t.EXTENT,radius:(i.clusterRadius||50)*a,log:!1},clusterProperties:i.clusterProperties},i.workerOptions)}return e&amp;&amp;(r.__proto__=e),r.prototype=Object.create(e&amp;&amp;e.prototype),r.prototype.constructor=r,r.prototype.load=function(){var e=this;this.fire(new t.Event("dataloading",{dataType:"source"})),this._updateWorkerData((function(r){if(r)e.fire(new t.ErrorEvent(r));else{var i={dataType:"source",sourceDataType:"metadata"};e._collectResourceTiming&amp;&amp;e._resourceTiming&amp;&amp;e._resourceTiming.length&gt;0&amp;&amp;(i.resourceTiming=e._resourceTiming,e._resourceTiming=[]),e.fire(new t.Event("data",i))}}))},r.prototype.onAdd=function(t){this.map=t,this.load()},r.prototype.setData=function(e){var r=this;return this._data=e,this.fire(new t.Event("dataloading",{dataType:"source"})),this._updateWorkerData((function(e){if(e)r.fire(new t.ErrorEvent(e));else{var i={dataType:"source",sourceDataType:"content"};r._collectResourceTiming&amp;&amp;r._resourceTiming&amp;&amp;r._resourceTiming.length&gt;0&amp;&amp;(i.resourceTiming=r._resourceTiming,r._resourceTiming=[]),r.fire(new t.Event("data",i))}})),this},r.prototype.getClusterExpansionZoom=function(t,e){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:t,source:this.id},e),this},r.prototype.getClusterChildren=function(t,e){return this.actor.send("geojson.getClusterChildren",{clusterId:t,source:this.id},e),this},r.prototype.getClusterLeaves=function(t,e,r,i){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:t,limit:e,offset:r},i),this},r.prototype._updateWorkerData=function(e){var r=this;this._loaded=!1;var i=t.extend({},this.workerOptions),n=this._data;"string"==typeof n?(i.request=this.map._requestManager.transformRequest(t.browser.resolveURL(n),t.ResourceType.Source),i.request.collectResourceTiming=this._collectResourceTiming):i.data=JSON.stringify(n),this.actor.send(this.type+".loadData",i,(function(t,n){r._removed||n&amp;&amp;n.abandoned||(r._loaded=!0,n&amp;&amp;n.resourceTiming&amp;&amp;n.resourceTiming[r.id]&amp;&amp;(r._resourceTiming=n.resourceTiming[r.id].slice(0)),r.actor.send(r.type+".coalesce",{source:i.source},null),e(t))}))},r.prototype.loaded=function(){return this._loaded},r.prototype.loadTile=function(e,r){var i=this,n=e.actor?"reloadTile":"loadTile";e.actor=this.actor;var o={type:this.type,uid:e.uid,tileID:e.tileID,zoom:e.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:t.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes};e.request=this.actor.send(n,o,(function(t,o){return delete e.request,e.unloadVectorData(),e.aborted?r(null):t?r(t):(e.loadVectorData(o,i.map.painter,"reloadTile"===n),r(null))}))},r.prototype.abortTile=function(t){t.request&amp;&amp;(t.request.cancel(),delete t.request),t.aborted=!0},r.prototype.unloadTile=function(t){t.unloadVectorData(),this.actor.send("removeTile",{uid:t.uid,type:this.type,source:this.id})},r.prototype.onRemove=function(){this._removed=!0,this.actor.send("removeSource",{type:this.type,source:this.id})},r.prototype.serialize=function(){return t.extend({},this._options,{type:this.type,data:this._data})},r.prototype.hasTransition=function(){return!1},r}(t.Evented),M=function(e){function r(t,r,i,n){e.call(this),this.id=t,this.dispatcher=i,this.coordinates=r.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(n),this.options=r}return e&amp;&amp;(r.__proto__=e),r.prototype=Object.create(e&amp;&amp;e.prototype),r.prototype.constructor=r,r.prototype.load=function(e,r){var i=this;this._loaded=!1,this.fire(new t.Event("dataloading",{dataType:"source"})),this.url=this.options.url,t.getImage(this.map._requestManager.transformRequest(this.url,t.ResourceType.Image),(function(n,o){i._loaded=!0,n?i.fire(new t.ErrorEvent(n)):o&amp;&amp;(i.image=o,e&amp;&amp;(i.coordinates=e),r&amp;&amp;r(),i._finishLoading())}))},r.prototype.loaded=function(){return this._loaded},r.prototype.updateImage=function(t){var e=this;return this.image&amp;&amp;t.url?(this.options.url=t.url,this.load(t.coordinates,(function(){e.texture=null})),this):this},r.prototype._finishLoading=function(){this.map&amp;&amp;(this.setCoordinates(this.coordinates),this.fire(new t.Event("data",{dataType:"source",sourceDataType:"metadata"})))},r.prototype.onAdd=function(t){this.map=t,this.load()},r.prototype.setCoordinates=function(e){var r=this;this.coordinates=e;var i=e.map(t.MercatorCoordinate.fromLngLat);this.tileID=function(e){for(var r=1/0,i=1/0,n=-1/0,o=-1/0,a=0,s=e;a&lt;s.length;a+=1){var l=s[a];r=Math.min(r,l.x),i=Math.min(i,l.y),n=Math.max(n,l.x),o=Math.max(o,l.y)}var u=n-r,c=o-i,p=Math.max(u,c),h=Math.max(0,Math.floor(-Math.log(p)/Math.LN2)),d=Math.pow(2,h);return new t.CanonicalTileID(h,Math.floor((r+n)/2*d),Math.floor((i+o)/2*d))}(i),this.minzoom=this.maxzoom=this.tileID.z;var n=i.map((function(t){return r.tileID.getTilePoint(t)._round()}));return this._boundsArray=new t.StructArrayLayout4i8,this._boundsArray.emplaceBack(n[0].x,n[0].y,0,0),this._boundsArray.emplaceBack(n[1].x,n[1].y,t.EXTENT,0),this._boundsArray.emplaceBack(n[3].x,n[3].y,0,t.EXTENT),this._boundsArray.emplaceBack(n[2].x,n[2].y,t.EXTENT,t.EXTENT),this.boundsBuffer&amp;&amp;(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new t.Event("data",{dataType:"source",sourceDataType:"content"})),this},r.prototype.prepare=function(){if(0!==Object.keys(this.tiles).length&amp;&amp;this.image){var e=this.map.painter.context,r=e.gl;for(var i in this.boundsBuffer||(this.boundsBuffer=e.createVertexBuffer(this._boundsArray,t.rasterBoundsAttributes.members)),this.boundsSegments||(this.boundsSegments=t.SegmentVector.simpleSegment(0,0,4,2)),this.texture||(this.texture=new t.Texture(e,this.image,r.RGBA),this.texture.bind(r.LINEAR,r.CLAMP_TO_EDGE)),this.tiles){var n=this.tiles[i];"loaded"!==n.state&amp;&amp;(n.state="loaded",n.texture=this.texture)}}},r.prototype.loadTile=function(t,e){this.tileID&amp;&amp;this.tileID.equals(t.tileID.canonical)?(this.tiles[String(t.tileID.wrap)]=t,t.buckets={},e(null)):(t.state="errored",e(null))},r.prototype.serialize=function(){return{type:"image",url:this.options.url,coordinates:this.coordinates}},r.prototype.hasTransition=function(){return!1},r}(t.Evented),z=function(e){function r(t,r,i,n){e.call(this,t,r,i,n),this.roundZoom=!0,this.type="video",this.options=r}return e&amp;&amp;(r.__proto__=e),r.prototype=Object.create(e&amp;&amp;e.prototype),r.prototype.constructor=r,r.prototype.load=function(){var e=this;this._loaded=!1;var r=this.options;this.urls=[];for(var i=0,n=r.urls;i&lt;n.length;i+=1){var o=n[i];this.urls.push(this.map._requestManager.transformRequest(o,t.ResourceType.Source).url)}t.getVideo(this.urls,(function(r,i){e._loaded=!0,r?e.fire(new t.ErrorEvent(r)):i&amp;&amp;(e.video=i,e.video.loop=!0,e.video.addEventListener("playing",(function(){e.map.triggerRepaint()})),e.map&amp;&amp;e.video.play(),e._finishLoading())}))},r.prototype.pause=function(){this.video&amp;&amp;this.video.pause()},r.prototype.play=function(){this.video&amp;&amp;this.video.play()},r.prototype.seek=function(e){if(this.video){var r=this.video.seekable;e&lt;r.start(0)||e&gt;r.end(0)?this.fire(new t.ErrorEvent(new t.ValidationError("Playback for this video can be set only between the "+r.start(0)+" and "+r.end(0)+"-second mark."))):this.video.currentTime=e}},r.prototype.getVideo=function(){return this.video},r.prototype.onAdd=function(t){this.map||(this.map=t,this.load(),this.video&amp;&amp;(this.video.play(),this.setCoordinates(this.coordinates)))},r.prototype.prepare=function(){if(!(0===Object.keys(this.tiles).length||this.video.readyState&lt;2)){var e=this.map.painter.context,r=e.gl;for(var i in this.boundsBuffer||(this.boundsBuffer=e.createVertexBuffer(this._boundsArray,t.rasterBoundsAttributes.members)),this.boundsSegments||(this.boundsSegments=t.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(r.LINEAR,r.CLAMP_TO_EDGE),r.texSubImage2D(r.TEXTURE_2D,0,0,0,r.RGBA,r.UNSIGNED_BYTE,this.video)):(this.texture=new t.Texture(e,this.video,r.RGBA),this.texture.bind(r.LINEAR,r.CLAMP_TO_EDGE)),this.tiles){var n=this.tiles[i];"loaded"!==n.state&amp;&amp;(n.state="loaded",n.texture=this.texture)}}},r.prototype.serialize=function(){return{type:"video",urls:this.urls,coordinates:this.coordinates}},r.prototype.hasTransition=function(){return this.video&amp;&amp;!this.video.paused},r}(M),D=function(e){function r(r,i,n,o){e.call(this,r,i,n,o),i.coordinates?Array.isArray(i.coordinates)&amp;&amp;4===i.coordinates.length&amp;&amp;!i.coordinates.some((function(t){return!Array.isArray(t)||2!==t.length||t.some((function(t){return"number"!=typeof t}))}))||this.fire(new t.ErrorEvent(new t.ValidationError("sources."+r,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new t.ErrorEvent(new t.ValidationError("sources."+r,null,'missing required property "coordinates"'))),i.animate&amp;&amp;"boolean"!=typeof i.animate&amp;&amp;this.fire(new t.ErrorEvent(new t.ValidationError("sources."+r,null,'optional "animate" property must be a boolean value'))),i.canvas?"string"==typeof i.canvas||i.canvas instanceof t.window.HTMLCanvasElement||this.fire(new t.ErrorEvent(new t.ValidationError("sources."+r,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new t.ErrorEvent(new t.ValidationError("sources."+r,null,'missing required property "canvas"'))),this.options=i,this.animate=void 0===i.animate||i.animate}return e&amp;&amp;(r.__proto__=e),r.prototype=Object.create(e&amp;&amp;e.prototype),r.prototype.constructor=r,r.prototype.load=function(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof t.window.HTMLCanvasElement?this.options.canvas:t.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new t.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&amp;&amp;(this.prepare(),this._playing=!1)},this._finishLoading())},r.prototype.getCanvas=function(){return this.canvas},r.prototype.onAdd=function(t){this.map=t,this.load(),this.canvas&amp;&amp;this.animate&amp;&amp;this.play()},r.prototype.onRemove=function(){this.pause()},r.prototype.prepare=function(){var e=!1;if(this.canvas.width!==this.width&amp;&amp;(this.width=this.canvas.width,e=!0),this.canvas.height!==this.height&amp;&amp;(this.height=this.canvas.height,e=!0),!this._hasInvalidDimensions()&amp;&amp;0!==Object.keys(this.tiles).length){var r=this.map.painter.context,i=r.gl;for(var n in this.boundsBuffer||(this.boundsBuffer=r.createVertexBuffer(this._boundsArray,t.rasterBoundsAttributes.members)),this.boundsSegments||(this.boundsSegments=t.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(e||this._playing)&amp;&amp;this.texture.update(this.canvas,{premultiply:!0}):this.texture=new t.Texture(r,this.canvas,i.RGBA,{premultiply:!0}),this.tiles){var o=this.tiles[n];"loaded"!==o.state&amp;&amp;(o.state="loaded",o.texture=this.texture)}}},r.prototype.serialize=function(){return{type:"canvas",coordinates:this.coordinates}},r.prototype.hasTransition=function(){return this._playing},r.prototype._hasInvalidDimensions=function(){for(var t=0,e=[this.canvas.width,this.canvas.height];t&lt;e.length;t+=1){var r=e[t];if(isNaN(r)||r&lt;=0)return!0}return!1},r}(M),L={vector:A,raster:C,"raster-dem":I,geojson:P,video:z,image:M,canvas:D},R=function(e,r,i,n){var o=new L[r.type](e,r,i,n);if(o.id!==e)throw new Error("Expected Source id to be "+e+" instead of "+o.id);return t.bindAll(["load","abort","unload","serialize","prepare"],o),o};function O(e,r){var i=t.identity([]);return t.translate(i,i,[1,1,0]),t.scale(i,i,[.5*e.width,.5*e.height,1]),t.multiply(i,i,e.calculatePosMatrix(r.toUnwrapped()))}function B(t,e,r,i,n){var o=function(t,e,r){if(t)for(var i=0,n=t;i&lt;n.length;i+=1){var o=e[n[i]];if(o&amp;&amp;o.source===r&amp;&amp;"fill-extrusion"===o.type)return!0}else for(var a in e){var s=e[a];if(s.source===r&amp;&amp;"fill-extrusion"===s.type)return!0}return!1}(i&amp;&amp;i.layers,e,t.id),a=n.maxPitchScaleFactor(),s=t.tilesIn(r,a,o);s.sort(F);for(var l=[],u=0,c=s;u&lt;c.length;u+=1){var p=c[u];l.push({wrappedTileID:p.tileID.wrapped().key,queryResults:p.tile.queryRenderedFeatures(e,t._state,p.queryGeometry,p.cameraQueryGeometry,p.scale,i,n,a,O(t.transform,p.tileID))})}var h=function(t){for(var e={},r={},i=0,n=t;i&lt;n.length;i+=1){var o=n[i],a=o.queryResults,s=o.wrappedTileID,l=r[s]=r[s]||{};for(var u in a)for(var c=a[u],p=l[u]=l[u]||{},h=e[u]=e[u]||[],d=0,f=c;d&lt;f.length;d+=1){var m=f[d];p[m.featureIndex]||(p[m.featureIndex]=!0,h.push(m))}}return e}(l);for(var d in h)h[d].forEach((function(e){var r=e.feature,i=t.getFeatureState(r.layer["source-layer"],r.id);r.source=r.layer.source,r.layer["source-layer"]&amp;&amp;(r.sourceLayer=r.layer["source-layer"]),r.state=i}));return h}function F(t,e){var r=t.tileID,i=e.tileID;return r.overscaledZ-i.overscaledZ||r.canonical.y-i.canonical.y||r.wrap-i.wrap||r.canonical.x-i.canonical.x}var j=function(t,e){this.max=t,this.onRemove=e,this.reset()};j.prototype.reset=function(){for(var t in this.data)for(var e=0,r=this.data[t];e&lt;r.length;e+=1){var i=r[e];i.timeout&amp;&amp;clearTimeout(i.timeout),this.onRemove(i.value)}return this.data={},this.order=[],this},j.prototype.add=function(t,e,r){var i=this,n=t.wrapped().key;void 0===this.data[n]&amp;&amp;(this.data[n]=[]);var o={value:e,timeout:void 0};if(void 0!==r&amp;&amp;(o.timeout=setTimeout((function(){i.remove(t,o)}),r)),this.data[n].push(o),this.order.push(n),this.order.length&gt;this.max){var a=this._getAndRemoveByKey(this.order[0]);a&amp;&amp;this.onRemove(a)}return this},j.prototype.has=function(t){return t.wrapped().key in this.data},j.prototype.getAndRemove=function(t){return this.has(t)?this._getAndRemoveByKey(t.wrapped().key):null},j.prototype._getAndRemoveByKey=function(t){var e=this.data[t].shift();return e.timeout&amp;&amp;clearTimeout(e.timeout),0===this.data[t].length&amp;&amp;delete this.data[t],this.order.splice(this.order.indexOf(t),1),e.value},j.prototype.get=function(t){return this.has(t)?this.data[t.wrapped().key][0].value:null},j.prototype.remove=function(t,e){if(!this.has(t))return this;var r=t.wrapped().key,i=void 0===e?0:this.data[r].indexOf(e),n=this.data[r][i];return this.data[r].splice(i,1),n.timeout&amp;&amp;clearTimeout(n.timeout),0===this.data[r].length&amp;&amp;delete this.data[r],this.onRemove(n.value),this.order.splice(this.order.indexOf(r),1),this},j.prototype.setMaxSize=function(t){for(this.max=t;this.order.length&gt;this.max;){var e=this._getAndRemoveByKey(this.order[0]);e&amp;&amp;this.onRemove(e)}return this};var U=function(t,e,r){this.context=t;var i=t.gl;this.buffer=i.createBuffer(),this.dynamicDraw=Boolean(r),this.context.unbindVAO(),t.bindElementBuffer.set(this.buffer),i.bufferData(i.ELEMENT_ARRAY_BUFFER,e.arrayBuffer,this.dynamicDraw?i.DYNAMIC_DRAW:i.STATIC_DRAW),this.dynamicDraw||delete e.arrayBuffer};U.prototype.bind=function(){this.context.bindElementBuffer.set(this.buffer)},U.prototype.updateData=function(t){var e=this.context.gl;this.context.unbindVAO(),this.bind(),e.bufferSubData(e.ELEMENT_ARRAY_BUFFER,0,t.arrayBuffer)},U.prototype.destroy=function(){var t=this.context.gl;this.buffer&amp;&amp;(t.deleteBuffer(this.buffer),delete this.buffer)};var N={Int8:"BYTE",Uint8:"UNSIGNED_BYTE",Int16:"SHORT",Uint16:"UNSIGNED_SHORT",Int32:"INT",Uint32:"UNSIGNED_INT",Float32:"FLOAT"},V=function(t,e,r,i){this.length=e.length,this.attributes=r,this.itemSize=e.bytesPerElement,this.dynamicDraw=i,this.context=t;var n=t.gl;this.buffer=n.createBuffer(),t.bindVertexBuffer.set(this.buffer),n.bufferData(n.ARRAY_BUFFER,e.arrayBuffer,this.dynamicDraw?n.DYNAMIC_DRAW:n.STATIC_DRAW),this.dynamicDraw||delete e.arrayBuffer};V.prototype.bind=function(){this.context.bindVertexBuffer.set(this.buffer)},V.prototype.updateData=function(t){var e=this.context.gl;this.bind(),e.bufferSubData(e.ARRAY_BUFFER,0,t.arrayBuffer)},V.prototype.enableAttributes=function(t,e){for(var r=0;r&lt;this.attributes.length;r++){var i=this.attributes[r],n=e.attributes[i.name];void 0!==n&amp;&amp;t.enableVertexAttribArray(n)}},V.prototype.setVertexAttribPointers=function(t,e,r){for(var i=0;i&lt;this.attributes.length;i++){var n=this.attributes[i],o=e.attributes[n.name];void 0!==o&amp;&amp;t.vertexAttribPointer(o,n.components,t[N[n.type]],!1,this.itemSize,n.offset+this.itemSize*(r||0))}},V.prototype.destroy=function(){var t=this.context.gl;this.buffer&amp;&amp;(t.deleteBuffer(this.buffer),delete this.buffer)};var q=function(t){this.gl=t.gl,this.default=this.getDefault(),this.current=this.default,this.dirty=!1};q.prototype.get=function(){return this.current},q.prototype.set=function(t){},q.prototype.getDefault=function(){return this.default},q.prototype.setDefault=function(){this.set(this.default)};var W=function(e){function r(){e.apply(this,arguments)}return e&amp;&amp;(r.__proto__=e),r.prototype=Object.create(e&amp;&amp;e.prototype),r.prototype.constructor=r,r.prototype.getDefault=function(){return t.Color.transparent},r.prototype.set=function(t){var e=this.current;(t.r!==e.r||t.g!==e.g||t.b!==e.b||t.a!==e.a||this.dirty)&amp;&amp;(this.gl.clearColor(t.r,t.g,t.b,t.a),this.current=t,this.dirty=!1)},r}(q),G=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return 1},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.clearDepth(t),this.current=t,this.dirty=!1)},e}(q),H=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return 0},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.clearStencil(t),this.current=t,this.dirty=!1)},e}(q),Z=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return[!0,!0,!0,!0]},e.prototype.set=function(t){var e=this.current;(t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||this.dirty)&amp;&amp;(this.gl.colorMask(t[0],t[1],t[2],t[3]),this.current=t,this.dirty=!1)},e}(q),X=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return!0},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.depthMask(t),this.current=t,this.dirty=!1)},e}(q),$=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return 255},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.stencilMask(t),this.current=t,this.dirty=!1)},e}(q),Y=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return{func:this.gl.ALWAYS,ref:0,mask:255}},e.prototype.set=function(t){var e=this.current;(t.func!==e.func||t.ref!==e.ref||t.mask!==e.mask||this.dirty)&amp;&amp;(this.gl.stencilFunc(t.func,t.ref,t.mask),this.current=t,this.dirty=!1)},e}(q),K=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){var t=this.gl;return[t.KEEP,t.KEEP,t.KEEP]},e.prototype.set=function(t){var e=this.current;(t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||this.dirty)&amp;&amp;(this.gl.stencilOp(t[0],t[1],t[2]),this.current=t,this.dirty=!1)},e}(q),J=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;t?e.enable(e.STENCIL_TEST):e.disable(e.STENCIL_TEST),this.current=t,this.dirty=!1}},e}(q),Q=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return[0,1]},e.prototype.set=function(t){var e=this.current;(t[0]!==e[0]||t[1]!==e[1]||this.dirty)&amp;&amp;(this.gl.depthRange(t[0],t[1]),this.current=t,this.dirty=!1)},e}(q),tt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;t?e.enable(e.DEPTH_TEST):e.disable(e.DEPTH_TEST),this.current=t,this.dirty=!1}},e}(q),et=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return this.gl.LESS},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.depthFunc(t),this.current=t,this.dirty=!1)},e}(q),rt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;t?e.enable(e.BLEND):e.disable(e.BLEND),this.current=t,this.dirty=!1}},e}(q),it=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){var t=this.gl;return[t.ONE,t.ZERO]},e.prototype.set=function(t){var e=this.current;(t[0]!==e[0]||t[1]!==e[1]||this.dirty)&amp;&amp;(this.gl.blendFunc(t[0],t[1]),this.current=t,this.dirty=!1)},e}(q),nt=function(e){function r(){e.apply(this,arguments)}return e&amp;&amp;(r.__proto__=e),r.prototype=Object.create(e&amp;&amp;e.prototype),r.prototype.constructor=r,r.prototype.getDefault=function(){return t.Color.transparent},r.prototype.set=function(t){var e=this.current;(t.r!==e.r||t.g!==e.g||t.b!==e.b||t.a!==e.a||this.dirty)&amp;&amp;(this.gl.blendColor(t.r,t.g,t.b,t.a),this.current=t,this.dirty=!1)},r}(q),ot=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return this.gl.FUNC_ADD},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.blendEquation(t),this.current=t,this.dirty=!1)},e}(q),at=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;t?e.enable(e.CULL_FACE):e.disable(e.CULL_FACE),this.current=t,this.dirty=!1}},e}(q),st=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return this.gl.BACK},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.cullFace(t),this.current=t,this.dirty=!1)},e}(q),lt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return this.gl.CCW},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.frontFace(t),this.current=t,this.dirty=!1)},e}(q),ut=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.useProgram(t),this.current=t,this.dirty=!1)},e}(q),ct=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return this.gl.TEXTURE0},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.activeTexture(t),this.current=t,this.dirty=!1)},e}(q),pt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){var t=this.gl;return[0,0,t.drawingBufferWidth,t.drawingBufferHeight]},e.prototype.set=function(t){var e=this.current;(t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||this.dirty)&amp;&amp;(this.gl.viewport(t[0],t[1],t[2],t[3]),this.current=t,this.dirty=!1)},e}(q),ht=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.bindFramebuffer(e.FRAMEBUFFER,t),this.current=t,this.dirty=!1}},e}(q),dt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.bindRenderbuffer(e.RENDERBUFFER,t),this.current=t,this.dirty=!1}},e}(q),ft=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.bindTexture(e.TEXTURE_2D,t),this.current=t,this.dirty=!1}},e}(q),mt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.bindBuffer(e.ARRAY_BUFFER,t),this.current=t,this.dirty=!1}},e}(q),yt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){var e=this.gl;e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,t),this.current=t,this.dirty=!1},e}(q),gt=function(t){function e(e){t.call(this,e),this.vao=e.extVertexArrayObject}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){this.vao&amp;&amp;(t!==this.current||this.dirty)&amp;&amp;(this.vao.bindVertexArrayOES(t),this.current=t,this.dirty=!1)},e}(q),vt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return 4},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.pixelStorei(e.UNPACK_ALIGNMENT,t),this.current=t,this.dirty=!1}},e}(q),_t=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,t),this.current=t,this.dirty=!1}},e}(q),xt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,t),this.current=t,this.dirty=!1}},e}(q),bt=function(t){function e(e,r){t.call(this,e),this.context=e,this.parent=r}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return null},e}(q),wt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.setDirty=function(){this.dirty=!0},e.prototype.set=function(t){if(t!==this.current||this.dirty){this.context.bindFramebuffer.set(this.parent);var e=this.gl;e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,t,0),this.current=t,this.dirty=!1}},e}(bt),St=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.set=function(t){if(t!==this.current||this.dirty){this.context.bindFramebuffer.set(this.parent);var e=this.gl;e.framebufferRenderbuffer(e.FRAMEBUFFER,e.DEPTH_ATTACHMENT,e.RENDERBUFFER,t),this.current=t,this.dirty=!1}},e}(bt),Et=function(t,e,r){this.context=t,this.width=e,this.height=r;var i=t.gl,n=this.framebuffer=i.createFramebuffer();this.colorAttachment=new wt(t,n),this.depthAttachment=new St(t,n)};Et.prototype.destroy=function(){var t=this.context.gl,e=this.colorAttachment.get();e&amp;&amp;t.deleteTexture(e);var r=this.depthAttachment.get();r&amp;&amp;t.deleteRenderbuffer(r),t.deleteFramebuffer(this.framebuffer)};var kt=function(t,e,r){this.func=t,this.mask=e,this.range=r};kt.ReadOnly=!1,kt.ReadWrite=!0,kt.disabled=new kt(519,kt.ReadOnly,[0,1]);var Tt=function(t,e,r,i,n,o){this.test=t,this.ref=e,this.mask=r,this.fail=i,this.depthFail=n,this.pass=o};Tt.disabled=new Tt({func:519,mask:0},0,0,7680,7680,7680);var At=function(t,e,r){this.blendFunction=t,this.blendColor=e,this.mask=r};At.Replace=[1,0],At.disabled=new At(At.Replace,t.Color.transparent,[!1,!1,!1,!1]),At.unblended=new At(At.Replace,t.Color.transparent,[!0,!0,!0,!0]),At.alphaBlended=new At([1,771],t.Color.transparent,[!0,!0,!0,!0]);var Ct=function(t,e,r){this.enable=t,this.mode=e,this.frontFace=r};Ct.disabled=new Ct(!1,1029,2305),Ct.backCCW=new Ct(!0,1029,2305);var It=function(t){this.gl=t,this.extVertexArrayObject=this.gl.getExtension("OES_vertex_array_object"),this.clearColor=new W(this),this.clearDepth=new G(this),this.clearStencil=new H(this),this.colorMask=new Z(this),this.depthMask=new X(this),this.stencilMask=new $(this),this.stencilFunc=new Y(this),this.stencilOp=new K(this),this.stencilTest=new J(this),this.depthRange=new Q(this),this.depthTest=new tt(this),this.depthFunc=new et(this),this.blend=new rt(this),this.blendFunc=new it(this),this.blendColor=new nt(this),this.blendEquation=new ot(this),this.cullFace=new at(this),this.cullFaceSide=new st(this),this.frontFace=new lt(this),this.program=new ut(this),this.activeTexture=new ct(this),this.viewport=new pt(this),this.bindFramebuffer=new ht(this),this.bindRenderbuffer=new dt(this),this.bindTexture=new ft(this),this.bindVertexBuffer=new mt(this),this.bindElementBuffer=new yt(this),this.bindVertexArrayOES=this.extVertexArrayObject&amp;&amp;new gt(this),this.pixelStoreUnpack=new vt(this),this.pixelStoreUnpackPremultiplyAlpha=new _t(this),this.pixelStoreUnpackFlipY=new xt(this),this.extTextureFilterAnisotropic=t.getExtension("EXT_texture_filter_anisotropic")||t.getExtension("MOZ_EXT_texture_filter_anisotropic")||t.getExtension("WEBKIT_EXT_texture_filter_anisotropic"),this.extTextureFilterAnisotropic&amp;&amp;(this.extTextureFilterAnisotropicMax=t.getParameter(this.extTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT)),this.extTextureHalfFloat=t.getExtension("OES_texture_half_float"),this.extTextureHalfFloat&amp;&amp;t.getExtension("OES_texture_half_float_linear")};It.prototype.setDefault=function(){this.unbindVAO(),this.clearColor.setDefault(),this.clearDepth.setDefault(),this.clearStencil.setDefault(),this.colorMask.setDefault(),this.depthMask.setDefault(),this.stencilMask.setDefault(),this.stencilFunc.setDefault(),this.stencilOp.setDefault(),this.stencilTest.setDefault(),this.depthRange.setDefault(),this.depthTest.setDefault(),this.depthFunc.setDefault(),this.blend.setDefault(),this.blendFunc.setDefault(),this.blendColor.setDefault(),this.blendEquation.setDefault(),this.cullFace.setDefault(),this.cullFaceSide.setDefault(),this.frontFace.setDefault(),this.program.setDefault(),this.activeTexture.setDefault(),this.bindFramebuffer.setDefault(),this.pixelStoreUnpack.setDefault(),this.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.pixelStoreUnpackFlipY.setDefault()},It.prototype.setDirty=function(){this.clearColor.dirty=!0,this.clearDepth.dirty=!0,this.clearStencil.dirty=!0,this.colorMask.dirty=!0,this.depthMask.dirty=!0,this.stencilMask.dirty=!0,this.stencilFunc.dirty=!0,this.stencilOp.dirty=!0,this.stencilTest.dirty=!0,this.depthRange.dirty=!0,this.depthTest.dirty=!0,this.depthFunc.dirty=!0,this.blend.dirty=!0,this.blendFunc.dirty=!0,this.blendColor.dirty=!0,this.blendEquation.dirty=!0,this.cullFace.dirty=!0,this.cullFaceSide.dirty=!0,this.frontFace.dirty=!0,this.program.dirty=!0,this.activeTexture.dirty=!0,this.viewport.dirty=!0,this.bindFramebuffer.dirty=!0,this.bindRenderbuffer.dirty=!0,this.bindTexture.dirty=!0,this.bindVertexBuffer.dirty=!0,this.bindElementBuffer.dirty=!0,this.extVertexArrayObject&amp;&amp;(this.bindVertexArrayOES.dirty=!0),this.pixelStoreUnpack.dirty=!0,this.pixelStoreUnpackPremultiplyAlpha.dirty=!0,this.pixelStoreUnpackFlipY.dirty=!0},It.prototype.createIndexBuffer=function(t,e){return new U(this,t,e)},It.prototype.createVertexBuffer=function(t,e,r){return new V(this,t,e,r)},It.prototype.createRenderbuffer=function(t,e,r){var i=this.gl,n=i.createRenderbuffer();return this.bindRenderbuffer.set(n),i.renderbufferStorage(i.RENDERBUFFER,t,e,r),this.bindRenderbuffer.set(null),n},It.prototype.createFramebuffer=function(t,e){return new Et(this,t,e)},It.prototype.clear=function(t){var e=t.color,r=t.depth,i=this.gl,n=0;e&amp;&amp;(n|=i.COLOR_BUFFER_BIT,this.clearColor.set(e),this.colorMask.set([!0,!0,!0,!0])),void 0!==r&amp;&amp;(n|=i.DEPTH_BUFFER_BIT,this.depthRange.set([0,1]),this.clearDepth.set(r),this.depthMask.set(!0)),i.clear(n)},It.prototype.setCullFace=function(t){!1===t.enable?this.cullFace.set(!1):(this.cullFace.set(!0),this.cullFaceSide.set(t.mode),this.frontFace.set(t.frontFace))},It.prototype.setDepthMode=function(t){t.func!==this.gl.ALWAYS||t.mask?(this.depthTest.set(!0),this.depthFunc.set(t.func),this.depthMask.set(t.mask),this.depthRange.set(t.range)):this.depthTest.set(!1)},It.prototype.setStencilMode=function(t){t.test.func!==this.gl.ALWAYS||t.mask?(this.stencilTest.set(!0),this.stencilMask.set(t.mask),this.stencilOp.set([t.fail,t.depthFail,t.pass]),this.stencilFunc.set({func:t.test.func,ref:t.ref,mask:t.test.mask})):this.stencilTest.set(!1)},It.prototype.setColorMode=function(e){t.deepEqual(e.blendFunction,At.Replace)?this.blend.set(!1):(this.blend.set(!0),this.blendFunc.set(e.blendFunction),this.blendColor.set(e.blendColor)),this.colorMask.set(e.mask)},It.prototype.unbindVAO=function(){this.extVertexArrayObject&amp;&amp;this.bindVertexArrayOES.set(null)};var Pt=function(e){function r(r,i,n){var o=this;e.call(this),this.id=r,this.dispatcher=n,this.on("data",(function(t){"source"===t.dataType&amp;&amp;"metadata"===t.sourceDataType&amp;&amp;(o._sourceLoaded=!0),o._sourceLoaded&amp;&amp;!o._paused&amp;&amp;"source"===t.dataType&amp;&amp;"content"===t.sourceDataType&amp;&amp;(o.reload(),o.transform&amp;&amp;o.update(o.transform))})),this.on("error",(function(){o._sourceErrored=!0})),this._source=R(r,i,n,this),this._tiles={},this._cache=new j(0,this._unloadTile.bind(this)),this._timers={},this._cacheTimers={},this._maxTileCacheSize=null,this._coveredTiles={},this._state=new t.SourceFeatureState}return e&amp;&amp;(r.__proto__=e),r.prototype=Object.create(e&amp;&amp;e.prototype),r.prototype.constructor=r,r.prototype.onAdd=function(t){this.map=t,this._maxTileCacheSize=t?t._maxTileCacheSize:null,this._source&amp;&amp;this._source.onAdd&amp;&amp;this._source.onAdd(t)},r.prototype.onRemove=function(t){this._source&amp;&amp;this._source.onRemove&amp;&amp;this._source.onRemove(t)},r.prototype.loaded=function(){if(this._sourceErrored)return!0;if(!this._sourceLoaded)return!1;if(!this._source.loaded())return!1;for(var t in this._tiles){var e=this._tiles[t];if("loaded"!==e.state&amp;&amp;"errored"!==e.state)return!1}return!0},r.prototype.getSource=function(){return this._source},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){if(this._paused){var t=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,t&amp;&amp;this.reload(),this.transform&amp;&amp;this.update(this.transform)}},r.prototype._loadTile=function(t,e){return this._source.loadTile(t,e)},r.prototype._unloadTile=function(t){if(this._source.unloadTile)return this._source.unloadTile(t,(function(){}))},r.prototype._abortTile=function(t){if(this._source.abortTile)return this._source.abortTile(t,(function(){}))},r.prototype.serialize=function(){return this._source.serialize()},r.prototype.prepare=function(t){for(var e in this._source.prepare&amp;&amp;this._source.prepare(),this._state.coalesceChanges(this._tiles,this.map?this.map.painter:null),this._tiles){var r=this._tiles[e];r.upload(t),r.prepare(this.map.style.imageManager)}},r.prototype.getIds=function(){return Object.keys(this._tiles).map(Number).sort(Mt)},r.prototype.getRenderableIds=function(e){var r=this,i=[];for(var n in this._tiles)this._isIdRenderable(+n,e)&amp;&amp;i.push(+n);return e?i.sort((function(e,i){var n=r._tiles[e].tileID,o=r._tiles[i].tileID,a=new t.Point(n.canonical.x,n.canonical.y)._rotate(r.transform.angle),s=new t.Point(o.canonical.x,o.canonical.y)._rotate(r.transform.angle);return n.overscaledZ-o.overscaledZ||s.y-a.y||s.x-a.x})):i.sort(Mt)},r.prototype.hasRenderableParent=function(t){var e=this.findLoadedParent(t,0);return!!e&amp;&amp;this._isIdRenderable(e.tileID.key)},r.prototype._isIdRenderable=function(t,e){return this._tiles[t]&amp;&amp;this._tiles[t].hasData()&amp;&amp;!this._coveredTiles[t]&amp;&amp;(e||!this._tiles[t].holdingForFade())},r.prototype.reload=function(){if(this._paused)this._shouldReloadOnResume=!0;else for(var t in this._cache.reset(),this._tiles)"errored"!==this._tiles[t].state&amp;&amp;this._reloadTile(t,"reloading")},r.prototype._reloadTile=function(t,e){var r=this._tiles[t];r&amp;&amp;("loading"!==r.state&amp;&amp;(r.state=e),this._loadTile(r,this._tileLoaded.bind(this,r,t,e)))},r.prototype._tileLoaded=function(e,r,i,n){if(n)return e.state="errored",void(404!==n.status?this._source.fire(new t.ErrorEvent(n,{tile:e})):this.update(this.transform));e.timeAdded=t.browser.now(),"expired"===i&amp;&amp;(e.refreshedUponExpiration=!0),this._setTileReloadTimer(r,e),"raster-dem"===this.getSource().type&amp;&amp;e.dem&amp;&amp;this._backfillDEM(e),this._state.initializeTileState(e,this.map?this.map.painter:null),this._source.fire(new t.Event("data",{dataType:"source",tile:e,coord:e.tileID}))},r.prototype._backfillDEM=function(t){for(var e=this.getRenderableIds(),r=0;r&lt;e.length;r++){var i=e[r];if(t.neighboringTiles&amp;&amp;t.neighboringTiles[i]){var n=this.getTileByID(i);o(t,n),o(n,t)}}function o(t,e){t.needsHillshadePrepare=!0;var r=e.tileID.canonical.x-t.tileID.canonical.x,i=e.tileID.canonical.y-t.tileID.canonical.y,n=Math.pow(2,t.tileID.canonical.z),o=e.tileID.key;0===r&amp;&amp;0===i||Math.abs(i)&gt;1||(Math.abs(r)&gt;1&amp;&amp;(1===Math.abs(r+n)?r+=n:1===Math.abs(r-n)&amp;&amp;(r-=n)),e.dem&amp;&amp;t.dem&amp;&amp;(t.dem.backfillBorder(e.dem,r,i),t.neighboringTiles&amp;&amp;t.neighboringTiles[o]&amp;&amp;(t.neighboringTiles[o].backfilled=!0)))}},r.prototype.getTile=function(t){return this.getTileByID(t.key)},r.prototype.getTileByID=function(t){return this._tiles[t]},r.prototype.getZoom=function(t){return t.zoom+t.scaleZoom(t.tileSize/this._source.tileSize)},r.prototype._retainLoadedChildren=function(t,e,r,i){for(var n in this._tiles){var o=this._tiles[n];if(!(i[n]||!o.hasData()||o.tileID.overscaledZ&lt;=e||o.tileID.overscaledZ&gt;r)){for(var a=o.tileID;o&amp;&amp;o.tileID.overscaledZ&gt;e+1;){var s=o.tileID.scaledTo(o.tileID.overscaledZ-1);(o=this._tiles[s.key])&amp;&amp;o.hasData()&amp;&amp;(a=s)}for(var l=a;l.overscaledZ&gt;e;)if(t[(l=l.scaledTo(l.overscaledZ-1)).key]){i[a.key]=a;break}}}},r.prototype.findLoadedParent=function(t,e){for(var r=t.overscaledZ-1;r&gt;=e;r--){var i=t.scaledTo(r);if(!i)return;var n=String(i.key),o=this._tiles[n];if(o&amp;&amp;o.hasData())return o;if(this._cache.has(i))return this._cache.get(i)}},r.prototype.updateCacheSize=function(t){var e=(Math.ceil(t.width/this._source.tileSize)+1)*(Math.ceil(t.height/this._source.tileSize)+1),r=Math.floor(5*e),i="number"==typeof this._maxTileCacheSize?Math.min(this._maxTileCacheSize,r):r;this._cache.setMaxSize(i)},r.prototype.handleWrapJump=function(t){var e=(t-(void 0===this._prevLng?t:this._prevLng))/360,r=Math.round(e);if(this._prevLng=t,r){var i={};for(var n in this._tiles){var o=this._tiles[n];o.tileID=o.tileID.unwrapTo(o.tileID.wrap+r),i[o.tileID.key]=o}for(var a in this._tiles=i,this._timers)clearTimeout(this._timers[a]),delete this._timers[a];for(var s in this._tiles){var l=this._tiles[s];this._setTileReloadTimer(s,l)}}},r.prototype.update=function(e){var i=this;if(this.transform=e,this._sourceLoaded&amp;&amp;!this._paused){var n;this.updateCacheSize(e),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used?this._source.tileID?n=e.getVisibleUnwrappedCoordinates(this._source.tileID).map((function(e){return new t.OverscaledTileID(e.canonical.z,e.wrap,e.canonical.z,e.canonical.x,e.canonical.y)})):(n=e.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&amp;&amp;(n=n.filter((function(t){return i._source.hasTile(t)})))):n=[];var o=(this._source.roundZoom?Math.round:Math.floor)(this.getZoom(e)),a=Math.max(o-r.maxOverzooming,this._source.minzoom),s=Math.max(o+r.maxUnderzooming,this._source.minzoom),l=this._updateRetainedTiles(n,o);if(zt(this._source.type)){for(var u={},c={},p=0,h=Object.keys(l);p&lt;h.length;p+=1){var d=h[p],f=l[d],m=this._tiles[d];if(m&amp;&amp;!(m.fadeEndTime&amp;&amp;m.fadeEndTime&lt;=t.browser.now())){var y=this.findLoadedParent(f,a);y&amp;&amp;(this._addTile(y.tileID),u[y.tileID.key]=y.tileID),c[d]=f}}for(var g in this._retainLoadedChildren(c,o,s,l),u)l[g]||(this._coveredTiles[g]=!0,l[g]=u[g])}for(var v in l)this._tiles[v].clearFadeHold();for(var _=0,x=t.keysDifference(this._tiles,l);_&lt;x.length;_+=1){var b=x[_],w=this._tiles[b];w.hasSymbolBuckets&amp;&amp;!w.holdingForFade()?w.setHoldDuration(this.map._fadeDuration):w.hasSymbolBuckets&amp;&amp;!w.symbolFadeFinished()||this._removeTile(b)}}},r.prototype.releaseSymbolFadeTiles=function(){for(var t in this._tiles)this._tiles[t].holdingForFade()&amp;&amp;this._removeTile(t)},r.prototype._updateRetainedTiles=function(t,e){for(var i={},n={},o=Math.max(e-r.maxOverzooming,this._source.minzoom),a=Math.max(e+r.maxUnderzooming,this._source.minzoom),s={},l=0,u=t;l&lt;u.length;l+=1){var c=u[l],p=this._addTile(c);i[c.key]=c,p.hasData()||e&lt;this._source.maxzoom&amp;&amp;(s[c.key]=c)}this._retainLoadedChildren(s,e,a,i);for(var h=0,d=t;h&lt;d.length;h+=1){var f=d[h],m=this._tiles[f.key];if(!m.hasData()){if(e+1&gt;this._source.maxzoom){var y=f.children(this._source.maxzoom)[0],g=this.getTile(y);if(g&amp;&amp;g.hasData()){i[y.key]=y;continue}}else{var v=f.children(this._source.maxzoom);if(i[v[0].key]&amp;&amp;i[v[1].key]&amp;&amp;i[v[2].key]&amp;&amp;i[v[3].key])continue}for(var _=m.wasRequested(),x=f.overscaledZ-1;x&gt;=o;--x){var b=f.scaledTo(x);if(n[b.key])break;if(n[b.key]=!0,!(m=this.getTile(b))&amp;&amp;_&amp;&amp;(m=this._addTile(b)),m&amp;&amp;(i[b.key]=b,_=m.wasRequested(),m.hasData()))break}}}return i},r.prototype._addTile=function(e){var r=this._tiles[e.key];if(r)return r;(r=this._cache.getAndRemove(e))&amp;&amp;(this._setTileReloadTimer(e.key,r),r.tileID=e,this._state.initializeTileState(r,this.map?this.map.painter:null),this._cacheTimers[e.key]&amp;&amp;(clearTimeout(this._cacheTimers[e.key]),delete this._cacheTimers[e.key],this._setTileReloadTimer(e.key,r)));var i=Boolean(r);return i||(r=new t.Tile(e,this._source.tileSize*e.overscaleFactor()),this._loadTile(r,this._tileLoaded.bind(this,r,e.key,r.state))),r?(r.uses++,this._tiles[e.key]=r,i||this._source.fire(new t.Event("dataloading",{tile:r,coord:r.tileID,dataType:"source"})),r):null},r.prototype._setTileReloadTimer=function(t,e){var r=this;t in this._timers&amp;&amp;(clearTimeout(this._timers[t]),delete this._timers[t]);var i=e.getExpiryTimeout();i&amp;&amp;(this._timers[t]=setTimeout((function(){r._reloadTile(t,"expired"),delete r._timers[t]}),i))},r.prototype._removeTile=function(t){var e=this._tiles[t];e&amp;&amp;(e.uses--,delete this._tiles[t],this._timers[t]&amp;&amp;(clearTimeout(this._timers[t]),delete this._timers[t]),e.uses&gt;0||(e.hasData()&amp;&amp;"reloading"!==e.state?this._cache.add(e.tileID,e,e.getExpiryTimeout()):(e.aborted=!0,this._abortTile(e),this._unloadTile(e))))},r.prototype.clearTiles=function(){for(var t in this._shouldReloadOnResume=!1,this._paused=!1,this._tiles)this._removeTile(t);this._cache.reset()},r.prototype.tilesIn=function(e,r,i){var n=this,o=[],a=this.transform;if(!a)return o;for(var s=i?a.getCameraQueryGeometry(e):e,l=e.map((function(t){return a.pointCoordinate(t)})),u=s.map((function(t){return a.pointCoordinate(t)})),c=this.getIds(),p=1/0,h=1/0,d=-1/0,f=-1/0,m=0,y=u;m&lt;y.length;m+=1){var g=y[m];p=Math.min(p,g.x),h=Math.min(h,g.y),d=Math.max(d,g.x),f=Math.max(f,g.y)}for(var v=function(e){var i=n._tiles[c[e]];if(!i.holdingForFade()){var s=i.tileID,m=Math.pow(2,a.zoom-i.tileID.overscaledZ),y=r*i.queryPadding*t.EXTENT/i.tileSize/m,g=[s.getTilePoint(new t.MercatorCoordinate(p,h)),s.getTilePoint(new t.MercatorCoordinate(d,f))];if(g[0].x-y&lt;t.EXTENT&amp;&amp;g[0].y-y&lt;t.EXTENT&amp;&amp;g[1].x+y&gt;=0&amp;&amp;g[1].y+y&gt;=0){var v=l.map((function(t){return s.getTilePoint(t)})),_=u.map((function(t){return s.getTilePoint(t)}));o.push({tile:i,tileID:s,queryGeometry:v,cameraQueryGeometry:_,scale:m})}}},_=0;_&lt;c.length;_++)v(_);return o},r.prototype.getVisibleCoordinates=function(t){for(var e=this,r=this.getRenderableIds(t).map((function(t){return e._tiles[t].tileID})),i=0,n=r;i&lt;n.length;i+=1){var o=n[i];o.posMatrix=this.transform.calculatePosMatrix(o.toUnwrapped())}return r},r.prototype.hasTransition=function(){if(this._source.hasTransition())return!0;if(zt(this._source.type))for(var e in this._tiles){var r=this._tiles[e];if(void 0!==r.fadeEndTime&amp;&amp;r.fadeEndTime&gt;=t.browser.now())return!0}return!1},r.prototype.setFeatureState=function(t,e,r){t=t||"_geojsonTileLayer",this._state.updateState(t,e,r)},r.prototype.removeFeatureState=function(t,e,r){t=t||"_geojsonTileLayer",this._state.removeFeatureState(t,e,r)},r.prototype.getFeatureState=function(t,e){return t=t||"_geojsonTileLayer",this._state.getState(t,e)},r}(t.Evented);function Mt(t,e){return t%32-e%32||e-t}function zt(t){return"raster"===t||"image"===t||"video"===t}function Dt(){return new t.window.Worker(tn.workerUrl)}Pt.maxOverzooming=10,Pt.maxUnderzooming=3;var Lt=function(){this.active={}};Lt.prototype.acquire=function(t){if(!this.workers)for(this.workers=[];this.workers.length&lt;Lt.workerCount;)this.workers.push(new Dt);return this.active[t]=!0,this.workers.slice()},Lt.prototype.release=function(t){delete this.active[t],0===Object.keys(this.active).length&amp;&amp;(this.workers.forEach((function(t){t.terminate()})),this.workers=null)};var Rt,Ot=Math.floor(t.browser.hardwareConcurrency/2);function Bt(e,r){var i={};for(var n in e)"ref"!==n&amp;&amp;(i[n]=e[n]);return t.refProperties.forEach((function(t){t in r&amp;&amp;(i[t]=r[t])})),i}function Ft(t){t=t.slice();for(var e=Object.create(null),r=0;r&lt;t.length;r++)e[t[r].id]=t[r];for(var i=0;i&lt;t.length;i++)"ref"in t[i]&amp;&amp;(t[i]=Bt(t[i],e[t[i].ref]));return t}Lt.workerCount=Math.max(Math.min(Ot,6),1);var jt={setStyle:"setStyle",addLayer:"addLayer",removeLayer:"removeLayer",setPaintProperty:"setPaintProperty",setLayoutProperty:"setLayoutProperty",setFilter:"setFilter",addSource:"addSource",removeSource:"removeSource",setGeoJSONSourceData:"setGeoJSONSourceData",setLayerZoomRange:"setLayerZoomRange",setLayerProperty:"setLayerProperty",setCenter:"setCenter",setZoom:"setZoom",setBearing:"setBearing",setPitch:"setPitch",setSprite:"setSprite",setGlyphs:"setGlyphs",setTransition:"setTransition",setLight:"setLight"};function Ut(t,e,r){r.push({command:jt.addSource,args:[t,e[t]]})}function Nt(t,e,r){e.push({command:jt.removeSource,args:[t]}),r[t]=!0}function Vt(t,e,r,i){Nt(t,r,i),Ut(t,e,r)}function qt(e,r,i){var n;for(n in e[i])if(e[i].hasOwnProperty(n)&amp;&amp;"data"!==n&amp;&amp;!t.deepEqual(e[i][n],r[i][n]))return!1;for(n in r[i])if(r[i].hasOwnProperty(n)&amp;&amp;"data"!==n&amp;&amp;!t.deepEqual(e[i][n],r[i][n]))return!1;return!0}function Wt(e,r,i,n,o,a){var s;for(s in r=r||{},e=e||{})e.hasOwnProperty(s)&amp;&amp;(t.deepEqual(e[s],r[s])||i.push({command:a,args:[n,s,r[s],o]}));for(s in r)r.hasOwnProperty(s)&amp;&amp;!e.hasOwnProperty(s)&amp;&amp;(t.deepEqual(e[s],r[s])||i.push({command:a,args:[n,s,r[s],o]}))}function Gt(t){return t.id}function Ht(t,e){return t[e.id]=e,t}function Zt(e,r){if(!e)return[{command:jt.setStyle,args:[r]}];var i=[];try{if(!t.deepEqual(e.version,r.version))return[{command:jt.setStyle,args:[r]}];t.deepEqual(e.center,r.center)||i.push({command:jt.setCenter,args:[r.center]}),t.deepEqual(e.zoom,r.zoom)||i.push({command:jt.setZoom,args:[r.zoom]}),t.deepEqual(e.bearing,r.bearing)||i.push({command:jt.setBearing,args:[r.bearing]}),t.deepEqual(e.pitch,r.pitch)||i.push({command:jt.setPitch,args:[r.pitch]}),t.deepEqual(e.sprite,r.sprite)||i.push({command:jt.setSprite,args:[r.sprite]}),t.deepEqual(e.glyphs,r.glyphs)||i.push({command:jt.setGlyphs,args:[r.glyphs]}),t.deepEqual(e.transition,r.transition)||i.push({command:jt.setTransition,args:[r.transition]}),t.deepEqual(e.light,r.light)||i.push({command:jt.setLight,args:[r.light]});var n={},o=[];!function(e,r,i,n){var o;for(o in r=r||{},e=e||{})e.hasOwnProperty(o)&amp;&amp;(r.hasOwnProperty(o)||Nt(o,i,n));for(o in r)r.hasOwnProperty(o)&amp;&amp;(e.hasOwnProperty(o)?t.deepEqual(e[o],r[o])||("geojson"===e[o].type&amp;&amp;"geojson"===r[o].type&amp;&amp;qt(e,r,o)?i.push({command:jt.setGeoJSONSourceData,args:[o,r[o].data]}):Vt(o,r,i,n)):Ut(o,r,i))}(e.sources,r.sources,o,n);var a=[];e.layers&amp;&amp;e.layers.forEach((function(t){n[t.source]?i.push({command:jt.removeLayer,args:[t.id]}):a.push(t)})),i=i.concat(o),function(e,r,i){r=r||[];var n,o,a,s,l,u,c,p=(e=e||[]).map(Gt),h=r.map(Gt),d=e.reduce(Ht,{}),f=r.reduce(Ht,{}),m=p.slice(),y=Object.create(null);for(n=0,o=0;n&lt;p.length;n++)a=p[n],f.hasOwnProperty(a)?o++:(i.push({command:jt.removeLayer,args:[a]}),m.splice(m.indexOf(a,o),1));for(n=0,o=0;n&lt;h.length;n++)a=h[h.length-1-n],m[m.length-1-n]!==a&amp;&amp;(d.hasOwnProperty(a)?(i.push({command:jt.removeLayer,args:[a]}),m.splice(m.lastIndexOf(a,m.length-o),1)):o++,u=m[m.length-n],i.push({command:jt.addLayer,args:[f[a],u]}),m.splice(m.length-n,0,a),y[a]=!0);for(n=0;n&lt;h.length;n++)if(s=d[a=h[n]],l=f[a],!y[a]&amp;&amp;!t.deepEqual(s,l))if(t.deepEqual(s.source,l.source)&amp;&amp;t.deepEqual(s["source-layer"],l["source-layer"])&amp;&amp;t.deepEqual(s.type,l.type)){for(c in Wt(s.layout,l.layout,i,a,null,jt.setLayoutProperty),Wt(s.paint,l.paint,i,a,null,jt.setPaintProperty),t.deepEqual(s.filter,l.filter)||i.push({command:jt.setFilter,args:[a,l.filter]}),t.deepEqual(s.minzoom,l.minzoom)&amp;&amp;t.deepEqual(s.maxzoom,l.maxzoom)||i.push({command:jt.setLayerZoomRange,args:[a,l.minzoom,l.maxzoom]}),s)s.hasOwnProperty(c)&amp;&amp;"layout"!==c&amp;&amp;"paint"!==c&amp;&amp;"filter"!==c&amp;&amp;"metadata"!==c&amp;&amp;"minzoom"!==c&amp;&amp;"maxzoom"!==c&amp;&amp;(0===c.indexOf("paint.")?Wt(s[c],l[c],i,a,c.slice(6),jt.setPaintProperty):t.deepEqual(s[c],l[c])||i.push({command:jt.setLayerProperty,args:[a,c,l[c]]}));for(c in l)l.hasOwnProperty(c)&amp;&amp;!s.hasOwnProperty(c)&amp;&amp;"layout"!==c&amp;&amp;"paint"!==c&amp;&amp;"filter"!==c&amp;&amp;"metadata"!==c&amp;&amp;"minzoom"!==c&amp;&amp;"maxzoom"!==c&amp;&amp;(0===c.indexOf("paint.")?Wt(s[c],l[c],i,a,c.slice(6),jt.setPaintProperty):t.deepEqual(s[c],l[c])||i.push({command:jt.setLayerProperty,args:[a,c,l[c]]}))}else i.push({command:jt.removeLayer,args:[a]}),u=m[m.lastIndexOf(a)+1],i.push({command:jt.addLayer,args:[l,u]})}(a,r.layers,i)}catch(t){console.warn("Unable to compute style diff:",t),i=[{command:jt.setStyle,args:[r]}]}return i}var Xt=function(t,e,r){var i=this.boxCells=[],n=this.circleCells=[];this.xCellCount=Math.ceil(t/r),this.yCellCount=Math.ceil(e/r);for(var o=0;o&lt;this.xCellCount*this.yCellCount;o++)i.push([]),n.push([]);this.circleKeys=[],this.boxKeys=[],this.bboxes=[],this.circles=[],this.width=t,this.height=e,this.xScale=this.xCellCount/t,this.yScale=this.yCellCount/e,this.boxUid=0,this.circleUid=0};function $t(e,r,i,n,o){var a=t.create();return r?(t.scale(a,a,[1/o,1/o,1]),i||t.rotateZ(a,a,n.angle)):t.multiply(a,n.labelPlaneMatrix,e),a}function Yt(e,r,i,n,o){if(r){var a=t.clone(e);return t.scale(a,a,[o,o,1]),i||t.rotateZ(a,a,-n.angle),a}return n.glCoordMatrix}function Kt(e,r){var i=[e.x,e.y,0,1];se(i,i,r);var n=i[3];return{point:new t.Point(i[0]/n,i[1]/n),signedDistanceFromCamera:n}}function Jt(t,e){var r=t[0]/t[3],i=t[1]/t[3];return r&gt;=-e[0]&amp;&amp;r&lt;=e[0]&amp;&amp;i&gt;=-e[1]&amp;&amp;i&lt;=e[1]}function Qt(e,r,i,n,o,a,s,l){var u=n?e.textSizeData:e.iconSizeData,c=t.evaluateSizeForZoom(u,i.transform.zoom),p=[256/i.width*2+1,256/i.height*2+1],h=n?e.text.dynamicLayoutVertexArray:e.icon.dynamicLayoutVertexArray;h.clear();for(var d=e.lineVertexArray,f=n?e.text.placedSymbolArray:e.icon.placedSymbolArray,m=i.transform.width/i.transform.height,y=!1,g=0;g&lt;f.length;g++){var v=f.get(g);if(v.hidden||v.writingMode===t.WritingMode.vertical&amp;&amp;!y)ae(v.numGlyphs,h);else{y=!1;var _=[v.anchorX,v.anchorY,0,1];if(t.transformMat4(_,_,r),Jt(_,p)){var x=.5+_[3]/i.transform.cameraToCenterDistance*.5,b=t.evaluateSizeForFeature(u,c,v),w=s?b*x:b/x,S=new t.Point(v.anchorX,v.anchorY),E=Kt(S,o).point,k={},T=re(v,w,!1,l,r,o,a,e.glyphOffsetArray,d,h,E,S,k,m);y=T.useVertical,(T.notEnoughRoom||y||T.needsFlipping&amp;&amp;re(v,w,!0,l,r,o,a,e.glyphOffsetArray,d,h,E,S,k,m).notEnoughRoom)&amp;&amp;ae(v.numGlyphs,h)}else ae(v.numGlyphs,h)}}n?e.text.dynamicLayoutVertexBuffer.updateData(h):e.icon.dynamicLayoutVertexBuffer.updateData(h)}function te(t,e,r,i,n,o,a,s,l,u,c,p){var h=s.glyphStartIndex+s.numGlyphs,d=s.lineStartIndex,f=s.lineStartIndex+s.lineLength,m=e.getoffsetX(s.glyphStartIndex),y=e.getoffsetX(h-1),g=ne(t*m,r,i,n,o,a,s.segment,d,f,l,u,c,p);if(!g)return null;var v=ne(t*y,r,i,n,o,a,s.segment,d,f,l,u,c,p);return v?{first:g,last:v}:null}function ee(e,r,i,n){return e===t.WritingMode.horizontal&amp;&amp;Math.abs(i.y-r.y)&gt;Math.abs(i.x-r.x)*n?{useVertical:!0}:(e===t.WritingMode.vertical?r.y&lt;i.y:r.x&gt;i.x)?{needsFlipping:!0}:null}function re(e,r,i,n,o,a,s,l,u,c,p,h,d,f){var m,y=r/24,g=e.lineOffsetX*y,v=e.lineOffsetY*y;if(e.numGlyphs&gt;1){var _=e.glyphStartIndex+e.numGlyphs,x=e.lineStartIndex,b=e.lineStartIndex+e.lineLength,w=te(y,l,g,v,i,p,h,e,u,a,d,!1);if(!w)return{notEnoughRoom:!0};var S=Kt(w.first.point,s).point,E=Kt(w.last.point,s).point;if(n&amp;&amp;!i){var k=ee(e.writingMode,S,E,f);if(k)return k}m=[w.first];for(var T=e.glyphStartIndex+1;T&lt;_-1;T++)m.push(ne(y*l.getoffsetX(T),g,v,i,p,h,e.segment,x,b,u,a,d,!1));m.push(w.last)}else{if(n&amp;&amp;!i){var A=Kt(h,o).point,C=e.lineStartIndex+e.segment+1,I=new t.Point(u.getx(C),u.gety(C)),P=Kt(I,o),M=P.signedDistanceFromCamera&gt;0?P.point:ie(h,I,A,1,o),z=ee(e.writingMode,A,M,f);if(z)return z}var D=ne(y*l.getoffsetX(e.glyphStartIndex),g,v,i,p,h,e.segment,e.lineStartIndex,e.lineStartIndex+e.lineLength,u,a,d,!1);if(!D)return{notEnoughRoom:!0};m=[D]}for(var L=0,R=m;L&lt;R.length;L+=1){var O=R[L];t.addDynamicAttributes(c,O.point,O.angle)}return{}}function ie(t,e,r,i,n){var o=Kt(t.add(t.sub(e)._unit()),n).point,a=r.sub(o);return r.add(a._mult(i/a.mag()))}function ne(e,r,i,n,o,a,s,l,u,c,p,h,d){var f=n?e-r:e+r,m=f&gt;0?1:-1,y=0;n&amp;&amp;(m*=-1,y=Math.PI),m&lt;0&amp;&amp;(y+=Math.PI);for(var g=m&gt;0?l+s:l+s+1,v=g,_=o,x=o,b=0,w=0,S=Math.abs(f);b+w&lt;=S;){if((g+=m)&lt;l||g&gt;=u)return null;if(x=_,void 0===(_=h[g])){var E=new t.Point(c.getx(g),c.gety(g)),k=Kt(E,p);if(k.signedDistanceFromCamera&gt;0)_=h[g]=k.point;else{var T=g-m;_=ie(0===b?a:new t.Point(c.getx(T),c.gety(T)),E,x,S-b+1,p)}}b+=w,w=x.dist(_)}var A=(S-b)/w,C=_.sub(x),I=C.mult(A)._add(x);return I._add(C._unit()._perp()._mult(i*m)),{point:I,angle:y+Math.atan2(_.y-x.y,_.x-x.x),tileDistance:d?{prevTileDistance:g-m===v?0:c.gettileUnitDistanceFromAnchor(g-m),lastSegmentViewportDistance:S-b}:null}}Xt.prototype.keysLength=function(){return this.boxKeys.length+this.circleKeys.length},Xt.prototype.insert=function(t,e,r,i,n){this._forEachCell(e,r,i,n,this._insertBoxCell,this.boxUid++),this.boxKeys.push(t),this.bboxes.push(e),this.bboxes.push(r),this.bboxes.push(i),this.bboxes.push(n)},Xt.prototype.insertCircle=function(t,e,r,i){this._forEachCell(e-i,r-i,e+i,r+i,this._insertCircleCell,this.circleUid++),this.circleKeys.push(t),this.circles.push(e),this.circles.push(r),this.circles.push(i)},Xt.prototype._insertBoxCell=function(t,e,r,i,n,o){this.boxCells[n].push(o)},Xt.prototype._insertCircleCell=function(t,e,r,i,n,o){this.circleCells[n].push(o)},Xt.prototype._query=function(t,e,r,i,n,o){if(r&lt;0||t&gt;this.width||i&lt;0||e&gt;this.height)return!n&amp;&amp;[];var a=[];if(t&lt;=0&amp;&amp;e&lt;=0&amp;&amp;this.width&lt;=r&amp;&amp;this.height&lt;=i){if(n)return!0;for(var s=0;s&lt;this.boxKeys.length;s++)a.push({key:this.boxKeys[s],x1:this.bboxes[4*s],y1:this.bboxes[4*s+1],x2:this.bboxes[4*s+2],y2:this.bboxes[4*s+3]});for(var l=0;l&lt;this.circleKeys.length;l++){var u=this.circles[3*l],c=this.circles[3*l+1],p=this.circles[3*l+2];a.push({key:this.circleKeys[l],x1:u-p,y1:c-p,x2:u+p,y2:c+p})}return o?a.filter(o):a}var h={hitTest:n,seenUids:{box:{},circle:{}}};return this._forEachCell(t,e,r,i,this._queryCell,a,h,o),n?a.length&gt;0:a},Xt.prototype._queryCircle=function(t,e,r,i,n){var o=t-r,a=t+r,s=e-r,l=e+r;if(a&lt;0||o&gt;this.width||l&lt;0||s&gt;this.height)return!i&amp;&amp;[];var u=[],c={hitTest:i,circle:{x:t,y:e,radius:r},seenUids:{box:{},circle:{}}};return this._forEachCell(o,s,a,l,this._queryCellCircle,u,c,n),i?u.length&gt;0:u},Xt.prototype.query=function(t,e,r,i,n){return this._query(t,e,r,i,!1,n)},Xt.prototype.hitTest=function(t,e,r,i,n){return this._query(t,e,r,i,!0,n)},Xt.prototype.hitTestCircle=function(t,e,r,i){return this._queryCircle(t,e,r,!0,i)},Xt.prototype._queryCell=function(t,e,r,i,n,o,a,s){var l=a.seenUids,u=this.boxCells[n];if(null!==u)for(var c=this.bboxes,p=0,h=u;p&lt;h.length;p+=1){var d=h[p];if(!l.box[d]){l.box[d]=!0;var f=4*d;if(t&lt;=c[f+2]&amp;&amp;e&lt;=c[f+3]&amp;&amp;r&gt;=c[f+0]&amp;&amp;i&gt;=c[f+1]&amp;&amp;(!s||s(this.boxKeys[d]))){if(a.hitTest)return o.push(!0),!0;o.push({key:this.boxKeys[d],x1:c[f],y1:c[f+1],x2:c[f+2],y2:c[f+3]})}}}var m=this.circleCells[n];if(null!==m)for(var y=this.circles,g=0,v=m;g&lt;v.length;g+=1){var _=v[g];if(!l.circle[_]){l.circle[_]=!0;var x=3*_;if(this._circleAndRectCollide(y[x],y[x+1],y[x+2],t,e,r,i)&amp;&amp;(!s||s(this.circleKeys[_]))){if(a.hitTest)return o.push(!0),!0;var b=y[x],w=y[x+1],S=y[x+2];o.push({key:this.circleKeys[_],x1:b-S,y1:w-S,x2:b+S,y2:w+S})}}}},Xt.prototype._queryCellCircle=function(t,e,r,i,n,o,a,s){var l=a.circle,u=a.seenUids,c=this.boxCells[n];if(null!==c)for(var p=this.bboxes,h=0,d=c;h&lt;d.length;h+=1){var f=d[h];if(!u.box[f]){u.box[f]=!0;var m=4*f;if(this._circleAndRectCollide(l.x,l.y,l.radius,p[m+0],p[m+1],p[m+2],p[m+3])&amp;&amp;(!s||s(this.boxKeys[f])))return o.push(!0),!0}}var y=this.circleCells[n];if(null!==y)for(var g=this.circles,v=0,_=y;v&lt;_.length;v+=1){var x=_[v];if(!u.circle[x]){u.circle[x]=!0;var b=3*x;if(this._circlesCollide(g[b],g[b+1],g[b+2],l.x,l.y,l.radius)&amp;&amp;(!s||s(this.circleKeys[x])))return o.push(!0),!0}}},Xt.prototype._forEachCell=function(t,e,r,i,n,o,a,s){for(var l=this._convertToXCellCoord(t),u=this._convertToYCellCoord(e),c=this._convertToXCellCoord(r),p=this._convertToYCellCoord(i),h=l;h&lt;=c;h++)for(var d=u;d&lt;=p;d++){var f=this.xCellCount*d+h;if(n.call(this,t,e,r,i,f,o,a,s))return}},Xt.prototype._convertToXCellCoord=function(t){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(t*this.xScale)))},Xt.prototype._convertToYCellCoord=function(t){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(t*this.yScale)))},Xt.prototype._circlesCollide=function(t,e,r,i,n,o){var a=i-t,s=n-e,l=r+o;return l*l&gt;a*a+s*s},Xt.prototype._circleAndRectCollide=function(t,e,r,i,n,o,a){var s=(o-i)/2,l=Math.abs(t-(i+s));if(l&gt;s+r)return!1;var u=(a-n)/2,c=Math.abs(e-(n+u));if(c&gt;u+r)return!1;if(l&lt;=s||c&lt;=u)return!0;var p=l-s,h=c-u;return p*p+h*h&lt;=r*r};var oe=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function ae(t,e){for(var r=0;r&lt;t;r++){var i=e.length;e.resize(i+4),e.float32.set(oe,3*i)}}function se(t,e,r){var i=e[0],n=e[1];return t[0]=r[0]*i+r[4]*n+r[12],t[1]=r[1]*i+r[5]*n+r[13],t[3]=r[3]*i+r[7]*n+r[15],t}var le=function(t,e,r){void 0===e&amp;&amp;(e=new Xt(t.width+200,t.height+200,25)),void 0===r&amp;&amp;(r=new Xt(t.width+200,t.height+200,25)),this.transform=t,this.grid=e,this.ignoredGrid=r,this.pitchfactor=Math.cos(t._pitch)*t.cameraToCenterDistance,this.screenRightBoundary=t.width+100,this.screenBottomBoundary=t.height+100,this.gridRightBoundary=t.width+200,this.gridBottomBoundary=t.height+200};function ue(t,e,r){t[e+4]=r?1:0}function ce(e,r,i){return r*(t.EXTENT/(e.tileSize*Math.pow(2,i-e.tileID.overscaledZ)))}le.prototype.placeCollisionBox=function(t,e,r,i,n){var o=this.projectAndGetPerspectiveRatio(i,t.anchorPointX,t.anchorPointY),a=r*o.perspectiveRatio,s=t.x1*a+o.point.x,l=t.y1*a+o.point.y,u=t.x2*a+o.point.x,c=t.y2*a+o.point.y;return!this.isInsideGrid(s,l,u,c)||!e&amp;&amp;this.grid.hitTest(s,l,u,c,n)?{box:[],offscreen:!1}:{box:[s,l,u,c],offscreen:this.isOffscreen(s,l,u,c)}},le.prototype.approximateTileDistance=function(t,e,r,i,n){var o=n?1:i/this.pitchfactor,a=t.lastSegmentViewportDistance*r;return t.prevTileDistance+a+(o-1)*a*Math.abs(Math.sin(e))},le.prototype.placeCollisionCircles=function(e,r,i,n,o,a,s,l,u,c,p,h,d){var f=[],m=this.projectAnchor(u,o.anchorX,o.anchorY),y=l/24,g=o.lineOffsetX*l,v=o.lineOffsetY*l,_=new t.Point(o.anchorX,o.anchorY),x=te(y,s,g,v,!1,Kt(_,c).point,_,o,a,c,{},!0),b=!1,w=!1,S=!0,E=m.perspectiveRatio*n,k=1/(n*i),T=0,A=0;x&amp;&amp;(T=this.approximateTileDistance(x.first.tileDistance,x.first.angle,k,m.cameraDistance,h),A=this.approximateTileDistance(x.last.tileDistance,x.last.angle,k,m.cameraDistance,h));for(var C=0;C&lt;e.length;C+=5){var I=e[C],P=e[C+1],M=e[C+2],z=e[C+3];if(!x||z&lt;-T||z&gt;A)ue(e,C,!1);else{var D=this.projectPoint(u,I,P),L=M*E;if(f.length&gt;0){var R=D.x-f[f.length-4],O=D.y-f[f.length-3];if(L*L*2&gt;R*R+O*O&amp;&amp;C+8&lt;e.length){var B=e[C+8];if(B&gt;-T&amp;&amp;B&lt;A){ue(e,C,!1);continue}}}var F=C/5;f.push(D.x,D.y,L,F),ue(e,C,!0);var j=D.x-L,U=D.y-L,N=D.x+L,V=D.y+L;if(S=S&amp;&amp;this.isOffscreen(j,U,N,V),w=w||this.isInsideGrid(j,U,N,V),!r&amp;&amp;this.grid.hitTestCircle(D.x,D.y,L,d)){if(!p)return{circles:[],offscreen:!1};b=!0}}}return{circles:b||!w?[]:f,offscreen:S}},le.prototype.queryRenderedSymbols=function(e){if(0===e.length||0===this.grid.keysLength()&amp;&amp;0===this.ignoredGrid.keysLength())return{};for(var r=[],i=1/0,n=1/0,o=-1/0,a=-1/0,s=0,l=e;s&lt;l.length;s+=1){var u=l[s],c=new t.Point(u.x+100,u.y+100);i=Math.min(i,c.x),n=Math.min(n,c.y),o=Math.max(o,c.x),a=Math.max(a,c.y),r.push(c)}for(var p={},h={},d=0,f=this.grid.query(i,n,o,a).concat(this.ignoredGrid.query(i,n,o,a));d&lt;f.length;d+=1){var m=f[d],y=m.key;if(void 0===p[y.bucketInstanceId]&amp;&amp;(p[y.bucketInstanceId]={}),!p[y.bucketInstanceId][y.featureIndex]){var g=[new t.Point(m.x1,m.y1),new t.Point(m.x2,m.y1),new t.Point(m.x2,m.y2),new t.Point(m.x1,m.y2)];t.polygonIntersectsPolygon(r,g)&amp;&amp;(p[y.bucketInstanceId][y.featureIndex]=!0,void 0===h[y.bucketInstanceId]&amp;&amp;(h[y.bucketInstanceId]=[]),h[y.bucketInstanceId].push(y.featureIndex))}}return h},le.prototype.insertCollisionBox=function(t,e,r,i,n){var o={bucketInstanceId:r,featureIndex:i,collisionGroupID:n};(e?this.ignoredGrid:this.grid).insert(o,t[0],t[1],t[2],t[3])},le.prototype.insertCollisionCircles=function(t,e,r,i,n){for(var o=e?this.ignoredGrid:this.grid,a={bucketInstanceId:r,featureIndex:i,collisionGroupID:n},s=0;s&lt;t.length;s+=4)o.insertCircle(a,t[s],t[s+1],t[s+2])},le.prototype.projectAnchor=function(t,e,r){var i=[e,r,0,1];return se(i,i,t),{perspectiveRatio:.5+this.transform.cameraToCenterDistance/i[3]*.5,cameraDistance:i[3]}},le.prototype.projectPoint=function(e,r,i){var n=[r,i,0,1];return se(n,n,e),new t.Point((n[0]/n[3]+1)/2*this.transform.width+100,(-n[1]/n[3]+1)/2*this.transform.height+100)},le.prototype.projectAndGetPerspectiveRatio=function(e,r,i){var n=[r,i,0,1];return se(n,n,e),{point:new t.Point((n[0]/n[3]+1)/2*this.transform.width+100,(-n[1]/n[3]+1)/2*this.transform.height+100),perspectiveRatio:.5+this.transform.cameraToCenterDistance/n[3]*.5}},le.prototype.isOffscreen=function(t,e,r,i){return r&lt;100||t&gt;=this.screenRightBoundary||i&lt;100||e&gt;this.screenBottomBoundary},le.prototype.isInsideGrid=function(t,e,r,i){return r&gt;=0&amp;&amp;t&lt;this.gridRightBoundary&amp;&amp;i&gt;=0&amp;&amp;e&lt;this.gridBottomBoundary};var pe=function(t,e,r,i){this.opacity=t?Math.max(0,Math.min(1,t.opacity+(t.placed?e:-e))):i&amp;&amp;r?1:0,this.placed=r};pe.prototype.isHidden=function(){return 0===this.opacity&amp;&amp;!this.placed};var he=function(t,e,r,i,n){this.text=new pe(t?t.text:null,e,r,n),this.icon=new pe(t?t.icon:null,e,i,n)};he.prototype.isHidden=function(){return this.text.isHidden()&amp;&amp;this.icon.isHidden()};var de=function(t,e,r){this.text=t,this.icon=e,this.skipFade=r},fe=function(t,e,r,i,n){this.bucketInstanceId=t,this.featureIndex=e,this.sourceLayerIndex=r,this.bucketIndex=i,this.tileID=n},me=function(t){this.crossSourceCollisions=t,this.maxGroupID=0,this.collisionGroups={}};function ye(e,r,i,n,o){var a=t.getAnchorAlignment(e),s=-(a.horizontalAlign-.5)*r,l=-(a.verticalAlign-.5)*i,u=t.evaluateRadialOffset(e,n);return new t.Point(s+u[0]*o,l+u[1]*o)}me.prototype.get=function(t){if(this.crossSourceCollisions)return{ID:0,predicate:null};if(!this.collisionGroups[t]){var e=++this.maxGroupID;this.collisionGroups[t]={ID:e,predicate:function(t){return t.collisionGroupID===e}}}return this.collisionGroups[t]};var ge=function(t,e,r,i){this.transform=t.clone(),this.collisionIndex=new le(this.transform),this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=e,this.retainedQueryData={},this.collisionGroups=new me(r),this.prevPlacement=i,i&amp;&amp;(i.prevPlacement=void 0),this.placedOrientations={}};function ve(t,e,r,i,n){t.emplaceBack(e?1:0,r?1:0,i||0,n||0),t.emplaceBack(e?1:0,r?1:0,i||0,n||0),t.emplaceBack(e?1:0,r?1:0,i||0,n||0),t.emplaceBack(e?1:0,r?1:0,i||0,n||0)}ge.prototype.placeLayerTile=function(e,r,i,n){var o=r.getBucket(e),a=r.latestFeatureIndex;if(o&amp;&amp;a&amp;&amp;e.id===o.layerIds[0]){var s=r.collisionBoxArray,l=o.layers[0].layout,u=Math.pow(2,this.transform.zoom-r.tileID.overscaledZ),c=r.tileSize/t.EXTENT,p=this.transform.calculatePosMatrix(r.tileID.toUnwrapped()),h=$t(p,"map"===l.get("text-pitch-alignment"),"map"===l.get("text-rotation-alignment"),this.transform,ce(r,1,this.transform.zoom)),d=$t(p,"map"===l.get("icon-pitch-alignment"),"map"===l.get("icon-rotation-alignment"),this.transform,ce(r,1,this.transform.zoom));this.retainedQueryData[o.bucketInstanceId]=new fe(o.bucketInstanceId,a,o.sourceLayerIndex,o.index,r.tileID),this.placeLayerBucket(o,p,h,d,u,c,i,r.holdingForFade(),n,s)}},ge.prototype.attemptAnchorPlacement=function(e,r,i,n,o,a,s,l,u,c,p,h,d,f,m){var y,g=ye(e,i,n,o,a),v=this.collisionIndex.placeCollisionBox(function(e,r,i,n,o,a){var s=e.x1,l=e.x2,u=e.y1,c=e.y2,p=e.anchorPointX,h=e.anchorPointY,d=new t.Point(r,i);return n&amp;&amp;d._rotate(o?a:-a),{x1:s+d.x,y1:u+d.y,x2:l+d.x,y2:c+d.y,anchorPointX:p,anchorPointY:h}}(r,g.x,g.y,s,l,this.transform.angle),h,u,c,p.predicate);if(v.box.length&gt;0)return this.prevPlacement&amp;&amp;this.prevPlacement.variableOffsets[d.crossTileID]&amp;&amp;this.prevPlacement.placements[d.crossTileID]&amp;&amp;this.prevPlacement.placements[d.crossTileID].text&amp;&amp;(y=this.prevPlacement.variableOffsets[d.crossTileID].anchor),this.variableOffsets[d.crossTileID]={radialOffset:o,width:i,height:n,anchor:e,textBoxScale:a,prevAnchor:y},this.markUsedJustification(f,e,d,m),f.allowVerticalPlacement&amp;&amp;(this.markUsedOrientation(f,m,d),this.placedOrientations[d.crossTileID]=m),v},ge.prototype.placeLayerBucket=function(e,r,i,n,o,a,s,l,u,c){var p=this,h=e.layers[0].layout,d=t.evaluateSizeForZoom(e.textSizeData,this.transform.zoom),f=h.get("text-optional"),m=h.get("icon-optional"),y=h.get("text-allow-overlap"),g=h.get("icon-allow-overlap"),v=y&amp;&amp;(g||!e.hasIconData()||m),_=g&amp;&amp;(y||!e.hasTextData()||f),x=this.collisionGroups.get(e.sourceID),b="map"===h.get("text-rotation-alignment"),w="map"===h.get("text-pitch-alignment"),S="viewport-y"===h.get("symbol-z-order");!e.collisionArrays&amp;&amp;c&amp;&amp;e.deserializeCollisionBoxes(c);var E=function(n,c){if(!u[n.crossTileID])if(l)p.placements[n.crossTileID]=new de(!1,!1,!1);else{var g,S=!1,E=!1,k=!0,T={box:null,offscreen:null},A={box:null,offscreen:null},C=null,I=null,P=0,M=0,z=0;c.textFeatureIndex&amp;&amp;(P=c.textFeatureIndex),c.verticalTextFeatureIndex&amp;&amp;(M=c.verticalTextFeatureIndex);var D=c.textBox;if(D){var L=function(r){var i=t.WritingMode.horizontal;if(e.allowVerticalPlacement&amp;&amp;!r&amp;&amp;p.prevPlacement){var o=p.prevPlacement.placedOrientations[n.crossTileID];o&amp;&amp;(p.placedOrientations[n.crossTileID]=o,i=o,p.markUsedOrientation(e,i,n))}return i},R=function(r,i){if(e.allowVerticalPlacement&amp;&amp;n.numVerticalGlyphVertices&gt;0&amp;&amp;c.verticalTextBox)for(var o=0,a=e.writingModes;o&lt;a.length&amp;&amp;(a[o]===t.WritingMode.vertical?(T=i(),A=T):T=r(),!(T&amp;&amp;T.box&amp;&amp;T.box.length));o+=1);else T=r()};if(h.get("text-variable-anchor")){var O=h.get("text-variable-anchor");if(p.prevPlacement&amp;&amp;p.prevPlacement.variableOffsets[n.crossTileID]){var B=p.prevPlacement.variableOffsets[n.crossTileID];O.indexOf(B.anchor)&gt;0&amp;&amp;(O=O.filter((function(t){return t!==B.anchor}))).unshift(B.anchor)}var F=function(t,i){for(var o=t.x2-t.x1,s=t.y2-t.y1,l=n.textBoxScale,u={box:[],offscreen:!1},c=y?2*O.length:O.length,h=0;h&lt;c;++h){var d=O[h%O.length],f=h&gt;=O.length;if((u=p.attemptAnchorPlacement(d,t,o,s,n.radialTextOffset,l,b,w,a,r,x,f,n,e,i))&amp;&amp;u.box&amp;&amp;u.box.length){S=!0;break}}return u};R((function(){return F(D,t.WritingMode.horizontal)}),(function(){var r=c.verticalTextBox,i=T&amp;&amp;T.box&amp;&amp;T.box.length;return e.allowVerticalPlacement&amp;&amp;!i&amp;&amp;n.numVerticalGlyphVertices&gt;0&amp;&amp;r?F(r,t.WritingMode.vertical):{box:null,offscreen:null}})),T&amp;&amp;(S=T.box,k=T.offscreen);var j=L(T&amp;&amp;T.box);if(!S&amp;&amp;p.prevPlacement){var U=p.prevPlacement.variableOffsets[n.crossTileID];U&amp;&amp;(p.variableOffsets[n.crossTileID]=U,p.markUsedJustification(e,U.anchor,n,j))}}else{var N=function(t,i){var o=p.collisionIndex.placeCollisionBox(t,h.get("text-allow-overlap"),a,r,x.predicate);return o&amp;&amp;o.box&amp;&amp;o.box.length&amp;&amp;(p.markUsedOrientation(e,i,n),p.placedOrientations[n.crossTileID]=i),o};R((function(){return N(D,t.WritingMode.horizontal)}),(function(){var r=c.verticalTextBox;return e.allowVerticalPlacement&amp;&amp;n.numVerticalGlyphVertices&gt;0&amp;&amp;r?N(r,t.WritingMode.vertical):{box:null,offscreen:null}})),L(T&amp;&amp;T.box&amp;&amp;T.box.length)}}S=(g=T)&amp;&amp;g.box&amp;&amp;g.box.length&gt;0,k=g&amp;&amp;g.offscreen;var V=c.textCircles;if(V){var q=e.text.placedSymbolArray.get(n.centerJustifiedTextSymbolIndex),W=t.evaluateSizeForFeature(e.textSizeData,d,q);C=p.collisionIndex.placeCollisionCircles(V,h.get("text-allow-overlap"),o,a,q,e.lineVertexArray,e.glyphOffsetArray,W,r,i,s,w,x.predicate),S=h.get("text-allow-overlap")||C.circles.length&gt;0,k=k&amp;&amp;C.offscreen}c.iconFeatureIndex&amp;&amp;(z=c.iconFeatureIndex),c.iconBox&amp;&amp;(E=(I=p.collisionIndex.placeCollisionBox(c.iconBox,h.get("icon-allow-overlap"),a,r,x.predicate)).box.length&gt;0,k=k&amp;&amp;I.offscreen);var G=f||0===n.numHorizontalGlyphVertices&amp;&amp;0===n.numVerticalGlyphVertices,H=m||0===n.numIconVertices;G||H?H?G||(E=E&amp;&amp;S):S=E&amp;&amp;S:E=S=E&amp;&amp;S,S&amp;&amp;g&amp;&amp;g.box&amp;&amp;(A&amp;&amp;A.box&amp;&amp;M?p.collisionIndex.insertCollisionBox(g.box,h.get("text-ignore-placement"),e.bucketInstanceId,M,x.ID):p.collisionIndex.insertCollisionBox(g.box,h.get("text-ignore-placement"),e.bucketInstanceId,P,x.ID)),E&amp;&amp;I&amp;&amp;p.collisionIndex.insertCollisionBox(I.box,h.get("icon-ignore-placement"),e.bucketInstanceId,z,x.ID),S&amp;&amp;C&amp;&amp;p.collisionIndex.insertCollisionCircles(C.circles,h.get("text-ignore-placement"),e.bucketInstanceId,P,x.ID),p.placements[n.crossTileID]=new de(S||v,E||_,k||e.justReloaded),u[n.crossTileID]=!0}};if(S)for(var k=e.getSortedSymbolIndexes(this.transform.angle),T=k.length-1;T&gt;=0;--T){var A=k[T];E(e.symbolInstances.get(A),e.collisionArrays[A])}else for(var C=0;C&lt;e.symbolInstances.length;++C)E(e.symbolInstances.get(C),e.collisionArrays[C]);e.justReloaded=!1},ge.prototype.markUsedJustification=function(e,r,i,n){var o,a={left:i.leftJustifiedTextSymbolIndex,center:i.centerJustifiedTextSymbolIndex,right:i.rightJustifiedTextSymbolIndex};o=n===t.WritingMode.vertical?i.verticalPlacedTextSymbolIndex:a[t.getAnchorJustification(r)];for(var s=0,l=[i.leftJustifiedTextSymbolIndex,i.centerJustifiedTextSymbolIndex,i.rightJustifiedTextSymbolIndex,i.verticalPlacedTextSymbolIndex];s&lt;l.length;s+=1){var u=l[s];u&gt;=0&amp;&amp;(e.text.placedSymbolArray.get(u).crossTileID=o&gt;=0&amp;&amp;u!==o?0:i.crossTileID)}},ge.prototype.markUsedOrientation=function(e,r,i){for(var n=r===t.WritingMode.horizontal||r===t.WritingMode.horizontalOnly?r:0,o=r===t.WritingMode.vertical?r:0,a=0,s=[i.leftJustifiedTextSymbolIndex,i.centerJustifiedTextSymbolIndex,i.rightJustifiedTextSymbolIndex];a&lt;s.length;a+=1){var l=s[a];e.text.placedSymbolArray.get(l).placedOrientation=n}i.verticalPlacedTextSymbolIndex&amp;&amp;(e.text.placedSymbolArray.get(i.verticalPlacedTextSymbolIndex).placedOrientation=o)},ge.prototype.commit=function(t){this.commitTime=t;var e=this.prevPlacement,r=!1,i=e&amp;&amp;0!==this.fadeDuration?(this.commitTime-e.commitTime)/this.fadeDuration:1,n=e?e.opacities:{},o=e?e.variableOffsets:{},a=e?e.placedOrientations:{};for(var s in this.placements){var l=this.placements[s],u=n[s];u?(this.opacities[s]=new he(u,i,l.text,l.icon),r=r||l.text!==u.text.placed||l.icon!==u.icon.placed):(this.opacities[s]=new he(null,i,l.text,l.icon,l.skipFade),r=r||l.text||l.icon)}for(var c in n){var p=n[c];if(!this.opacities[c]){var h=new he(p,i,!1,!1);h.isHidden()||(this.opacities[c]=h,r=r||p.text.placed||p.icon.placed)}}for(var d in o)this.variableOffsets[d]||!this.opacities[d]||this.opacities[d].isHidden()||(this.variableOffsets[d]=o[d]);for(var f in a)this.placedOrientations[f]||!this.opacities[f]||this.opacities[f].isHidden()||(this.placedOrientations[f]=a[f]);r?this.lastPlacementChangeTime=t:"number"!=typeof this.lastPlacementChangeTime&amp;&amp;(this.lastPlacementChangeTime=e?e.lastPlacementChangeTime:t)},ge.prototype.updateLayerOpacities=function(t,e){for(var r={},i=0,n=e;i&lt;n.length;i+=1){var o=n[i],a=o.getBucket(t);a&amp;&amp;o.latestFeatureIndex&amp;&amp;t.id===a.layerIds[0]&amp;&amp;this.updateBucketOpacities(a,r,o.collisionBoxArray)}},ge.prototype.updateBucketOpacities=function(e,r,i){e.hasTextData()&amp;&amp;e.text.opacityVertexArray.clear(),e.hasIconData()&amp;&amp;e.icon.opacityVertexArray.clear(),e.hasCollisionBoxData()&amp;&amp;e.collisionBox.collisionVertexArray.clear(),e.hasCollisionCircleData()&amp;&amp;e.collisionCircle.collisionVertexArray.clear();var n=e.layers[0].layout,o=new he(null,0,!1,!1,!0),a=n.get("text-allow-overlap"),s=n.get("icon-allow-overlap"),l=n.get("text-variable-anchor"),u="map"===n.get("text-rotation-alignment"),c="map"===n.get("text-pitch-alignment"),p=new he(null,0,a&amp;&amp;(s||!e.hasIconData()||n.get("icon-optional")),s&amp;&amp;(a||!e.hasTextData()||n.get("text-optional")),!0);!e.collisionArrays&amp;&amp;i&amp;&amp;(e.hasCollisionBoxData()||e.hasCollisionCircleData())&amp;&amp;e.deserializeCollisionBoxes(i);for(var h=0;h&lt;e.symbolInstances.length;h++){var d=e.symbolInstances.get(h),f=d.numHorizontalGlyphVertices,m=d.numVerticalGlyphVertices,y=d.crossTileID,g=r[y],v=this.opacities[y];g?v=o:v||(v=p,this.opacities[y]=v),r[y]=!0;var _=f&gt;0||m&gt;0,x=d.numIconVertices&gt;0;if(_){for(var b=Te(v.text),w=(f+m)/4,S=0;S&lt;w;S++)e.text.opacityVertexArray.emplaceBack(b);var E=v.text.isHidden()?1:0,k=this.placedOrientations[d.crossTileID],T=k===t.WritingMode.horizontal||k===t.WritingMode.horizontalOnly?1:0,A=k===t.WritingMode.vertical?1:0;[d.rightJustifiedTextSymbolIndex,d.centerJustifiedTextSymbolIndex,d.leftJustifiedTextSymbolIndex].forEach((function(t){t&gt;=0&amp;&amp;(e.text.placedSymbolArray.get(t).hidden=E||A)})),d.verticalPlacedTextSymbolIndex&gt;=0&amp;&amp;(e.text.placedSymbolArray.get(d.verticalPlacedTextSymbolIndex).hidden=E||T);var C=this.variableOffsets[d.crossTileID];C&amp;&amp;this.markUsedJustification(e,C.anchor,d,k);var I=this.placedOrientations[d.crossTileID];I&amp;&amp;(this.markUsedJustification(e,"left",d,I),this.markUsedOrientation(e,I,d))}if(x){for(var P=Te(v.icon),M=0;M&lt;d.numIconVertices/4;M++)e.icon.opacityVertexArray.emplaceBack(P);e.icon.placedSymbolArray.get(h).hidden=v.icon.isHidden()}if(e.hasCollisionBoxData()||e.hasCollisionCircleData()){var z=e.collisionArrays[h];if(z){if(z.textBox){var D=new t.Point(0,0),L=!0;if(l){var R=this.variableOffsets[y];R?(D=ye(R.anchor,R.width,R.height,R.radialOffset,R.textBoxScale),u&amp;&amp;D._rotate(c?this.transform.angle:-this.transform.angle)):L=!1}ve(e.collisionBox.collisionVertexArray,v.text.placed,!L,D.x,D.y)}z.iconBox&amp;&amp;ve(e.collisionBox.collisionVertexArray,v.icon.placed,!1);var O=z.textCircles;if(O&amp;&amp;e.hasCollisionCircleData())for(var B=0;B&lt;O.length;B+=5){var F=g||0===O[B+4];ve(e.collisionCircle.collisionVertexArray,v.text.placed,F)}}}}e.sortFeatures(this.transform.angle),this.retainedQueryData[e.bucketInstanceId]&amp;&amp;(this.retainedQueryData[e.bucketInstanceId].featureSortOrder=e.featureSortOrder),e.hasTextData()&amp;&amp;e.text.opacityVertexBuffer&amp;&amp;e.text.opacityVertexBuffer.updateData(e.text.opacityVertexArray),e.hasIconData()&amp;&amp;e.icon.opacityVertexBuffer&amp;&amp;e.icon.opacityVertexBuffer.updateData(e.icon.opacityVertexArray),e.hasCollisionBoxData()&amp;&amp;e.collisionBox.collisionVertexBuffer&amp;&amp;e.collisionBox.collisionVertexBuffer.updateData(e.collisionBox.collisionVertexArray),e.hasCollisionCircleData()&amp;&amp;e.collisionCircle.collisionVertexBuffer&amp;&amp;e.collisionCircle.collisionVertexBuffer.updateData(e.collisionCircle.collisionVertexArray)},ge.prototype.symbolFadeChange=function(t){return 0===this.fadeDuration?1:(t-this.commitTime)/this.fadeDuration},ge.prototype.hasTransitions=function(t){return this.stale||t-this.lastPlacementChangeTime&lt;this.fadeDuration},ge.prototype.stillRecent=function(t){return this.commitTime+this.fadeDuration&gt;t},ge.prototype.setStale=function(){this.stale=!0};var _e=Math.pow(2,25),xe=Math.pow(2,24),be=Math.pow(2,17),we=Math.pow(2,16),Se=Math.pow(2,9),Ee=Math.pow(2,8),ke=Math.pow(2,1);function Te(t){if(0===t.opacity&amp;&amp;!t.placed)return 0;if(1===t.opacity&amp;&amp;t.placed)return 4294967295;var e=t.placed?1:0,r=Math.floor(127*t.opacity);return r*_e+e*xe+r*be+e*we+r*Se+e*Ee+r*ke+e}var Ae=function(){this._currentTileIndex=0,this._seenCrossTileIDs={}};Ae.prototype.continuePlacement=function(t,e,r,i,n){for(;this._currentTileIndex&lt;t.length;){var o=t[this._currentTileIndex];if(e.placeLayerTile(i,o,r,this._seenCrossTileIDs),this._currentTileIndex++,n())return!0}};var Ce=function(t,e,r,i,n,o,a){this.placement=new ge(t,n,o,a),this._currentPlacementIndex=e.length-1,this._forceFullPlacement=r,this._showCollisionBoxes=i,this._done=!1};Ce.prototype.isDone=function(){return this._done},Ce.prototype.continuePlacement=function(e,r,i){for(var n=this,o=t.browser.now(),a=function(){var e=t.browser.now()-o;return!n._forceFullPlacement&amp;&amp;e&gt;2};this._currentPlacementIndex&gt;=0;){var s=r[e[this._currentPlacementIndex]],l=this.placement.collisionIndex.transform.zoom;if("symbol"===s.type&amp;&amp;(!s.minzoom||s.minzoom&lt;=l)&amp;&amp;(!s.maxzoom||s.maxzoom&gt;l)){if(this._inProgressLayer||(this._inProgressLayer=new Ae),this._inProgressLayer.continuePlacement(i[s.source],this.placement,this._showCollisionBoxes,s,a))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},Ce.prototype.commit=function(t){return this.placement.commit(t),this.placement};var Ie=512/t.EXTENT/2,Pe=function(t,e,r){this.tileID=t,this.indexedSymbolInstances={},this.bucketInstanceId=r;for(var i=0;i&lt;e.length;i++){var n=e.get(i),o=n.key;this.indexedSymbolInstances[o]||(this.indexedSymbolInstances[o]=[]),this.indexedSymbolInstances[o].push({crossTileID:n.crossTileID,coord:this.getScaledCoordinates(n,t)})}};Pe.prototype.getScaledCoordinates=function(e,r){var i=r.canonical.z-this.tileID.canonical.z,n=Ie/Math.pow(2,i);return{x:Math.floor((r.canonical.x*t.EXTENT+e.anchorX)*n),y:Math.floor((r.canonical.y*t.EXTENT+e.anchorY)*n)}},Pe.prototype.findMatches=function(t,e,r){for(var i=this.tileID.canonical.z&lt;e.canonical.z?1:Math.pow(2,this.tileID.canonical.z-e.canonical.z),n=0;n&lt;t.length;n++){var o=t.get(n);if(!o.crossTileID){var a=this.indexedSymbolInstances[o.key];if(a)for(var s=this.getScaledCoordinates(o,e),l=0,u=a;l&lt;u.length;l+=1){var c=u[l];if(Math.abs(c.coord.x-s.x)&lt;=i&amp;&amp;Math.abs(c.coord.y-s.y)&lt;=i&amp;&amp;!r[c.crossTileID]){r[c.crossTileID]=!0,o.crossTileID=c.crossTileID;break}}}}};var Me=function(){this.maxCrossTileID=0};Me.prototype.generate=function(){return++this.maxCrossTileID};var ze=function(){this.indexes={},this.usedCrossTileIDs={},this.lng=0};ze.prototype.handleWrapJump=function(t){var e=Math.round((t-this.lng)/360);if(0!==e)for(var r in this.indexes){var i=this.indexes[r],n={};for(var o in i){var a=i[o];a.tileID=a.tileID.unwrapTo(a.tileID.wrap+e),n[a.tileID.key]=a}this.indexes[r]=n}this.lng=t},ze.prototype.addBucket=function(t,e,r){if(this.indexes[t.overscaledZ]&amp;&amp;this.indexes[t.overscaledZ][t.key]){if(this.indexes[t.overscaledZ][t.key].bucketInstanceId===e.bucketInstanceId)return!1;this.removeBucketCrossTileIDs(t.overscaledZ,this.indexes[t.overscaledZ][t.key])}for(var i=0;i&lt;e.symbolInstances.length;i++)e.symbolInstances.get(i).crossTileID=0;this.usedCrossTileIDs[t.overscaledZ]||(this.usedCrossTileIDs[t.overscaledZ]={});var n=this.usedCrossTileIDs[t.overscaledZ];for(var o in this.indexes){var a=this.indexes[o];if(Number(o)&gt;t.overscaledZ)for(var s in a){var l=a[s];l.tileID.isChildOf(t)&amp;&amp;l.findMatches(e.symbolInstances,t,n)}else{var u=a[t.scaledTo(Number(o)).key];u&amp;&amp;u.findMatches(e.symbolInstances,t,n)}}for(var c=0;c&lt;e.symbolInstances.length;c++){var p=e.symbolInstances.get(c);p.crossTileID||(p.crossTileID=r.generate(),n[p.crossTileID]=!0)}return void 0===this.indexes[t.overscaledZ]&amp;&amp;(this.indexes[t.overscaledZ]={}),this.indexes[t.overscaledZ][t.key]=new Pe(t,e.symbolInstances,e.bucketInstanceId),!0},ze.prototype.removeBucketCrossTileIDs=function(t,e){for(var r in e.indexedSymbolInstances)for(var i=0,n=e.indexedSymbolInstances[r];i&lt;n.length;i+=1){var o=n[i];delete this.usedCrossTileIDs[t][o.crossTileID]}},ze.prototype.removeStaleBuckets=function(t){var e=!1;for(var r in this.indexes){var i=this.indexes[r];for(var n in i)t[i[n].bucketInstanceId]||(this.removeBucketCrossTileIDs(r,i[n]),delete i[n],e=!0)}return e};var De=function(){this.layerIndexes={},this.crossTileIDs=new Me,this.maxBucketInstanceId=0,this.bucketsInCurrentPlacement={}};De.prototype.addLayer=function(t,e,r){var i=this.layerIndexes[t.id];void 0===i&amp;&amp;(i=this.layerIndexes[t.id]=new ze);var n=!1,o={};i.handleWrapJump(r);for(var a=0,s=e;a&lt;s.length;a+=1){var l=s[a],u=l.getBucket(t);u&amp;&amp;t.id===u.layerIds[0]&amp;&amp;(u.bucketInstanceId||(u.bucketInstanceId=++this.maxBucketInstanceId),i.addBucket(l.tileID,u,this.crossTileIDs)&amp;&amp;(n=!0),o[u.bucketInstanceId]=!0)}return i.removeStaleBuckets(o)&amp;&amp;(n=!0),n},De.prototype.pruneUnusedLayers=function(t){var e={};for(var r in t.forEach((function(t){e[t]=!0})),this.layerIndexes)e[r]||delete this.layerIndexes[r]};var Le=function(e,r){return t.emitValidationErrors(e,r&amp;&amp;r.filter((function(t){return"source.canvas"!==t.identifier})))},Re=t.pick(jt,["addLayer","removeLayer","setPaintProperty","setLayoutProperty","setFilter","addSource","removeSource","setLayerZoomRange","setLight","setTransition","setGeoJSONSourceData"]),Oe=t.pick(jt,["setCenter","setZoom","setBearing","setPitch"]),Be=function(e){function r(i,n){var o=this;void 0===n&amp;&amp;(n={}),e.call(this),this.map=i,this.dispatcher=new E((Rt||(Rt=new Lt),Rt),this),this.imageManager=new h,this.imageManager.setEventedParent(this),this.glyphManager=new _(i._requestManager,n.localIdeographFontFamily),this.lineAtlas=new S(256,512),this.crossTileSymbolIndex=new De,this._layers={},this._order=[],this.sourceCaches={},this.zoomHistory=new t.ZoomHistory,this._loaded=!1,this._resetUpdates(),this.dispatcher.broadcast("setReferrer",t.getReferrer());var a=this;this._rtlTextPluginCallback=r.registerForPluginAvailability((function(t){for(var e in a.dispatcher.broadcast("loadRTLTextPlugin",t.pluginURL,t.completionCallback),a.sourceCaches)a.sourceCaches[e].reload()})),this.on("data",(function(t){if("source"===t.dataType&amp;&amp;"metadata"===t.sourceDataType){var e=o.sourceCaches[t.sourceId];if(e){var r=e.getSource();if(r&amp;&amp;r.vectorLayerIds)for(var i in o._layers){var n=o._layers[i];n.source===r.id&amp;&amp;o._validateLayer(n)}}}}))}return e&amp;&amp;(r.__proto__=e),r.prototype=Object.create(e&amp;&amp;e.prototype),r.prototype.constructor=r,r.prototype.loadURL=function(e,r){var i=this;void 0===r&amp;&amp;(r={}),this.fire(new t.Event("dataloading",{dataType:"style"}));var n="boolean"==typeof r.validate?r.validate:!t.isMapboxURL(e);e=this.map._requestManager.normalizeStyleURL(e,r.accessToken);var o=this.map._requestManager.transformRequest(e,t.ResourceType.Style);this._request=t.getJSON(o,(function(e,r){i._request=null,e?i.fire(new t.ErrorEvent(e)):r&amp;&amp;i._load(r,n)}))},r.prototype.loadJSON=function(e,r){var i=this;void 0===r&amp;&amp;(r={}),this.fire(new t.Event("dataloading",{dataType:"style"})),this._request=t.browser.frame((function(){i._request=null,i._load(e,!1!==r.validate)}))},r.prototype._load=function(e,r){var i=this;if(!r||!Le(this,t.validateStyle(e))){for(var n in this._loaded=!0,this.stylesheet=e,e.sources)this.addSource(n,e.sources[n],{validate:!1});e.sprite?this._spriteRequest=function(e,r,i){var n,o,a,s=t.browser.devicePixelRatio&gt;1?"@2x":"",l=t.getJSON(r.transformRequest(r.normalizeSpriteURL(e,s,".json"),t.ResourceType.SpriteJSON),(function(t,e){l=null,a||(a=t,n=e,c())})),u=t.getImage(r.transformRequest(r.normalizeSpriteURL(e,s,".png"),t.ResourceType.SpriteImage),(function(t,e){u=null,a||(a=t,o=e,c())}));function c(){if(a)i(a);else if(n&amp;&amp;o){var e=t.browser.getImageData(o),r={};for(var s in n){var l=n[s],u=l.width,c=l.height,p=l.x,h=l.y,d=l.sdf,f=l.pixelRatio,m=new t.RGBAImage({width:u,height:c});t.RGBAImage.copy(e,m,{x:p,y:h},{x:0,y:0},{width:u,height:c}),r[s]={data:m,pixelRatio:f,sdf:d}}i(null,r)}}return{cancel:function(){l&amp;&amp;(l.cancel(),l=null),u&amp;&amp;(u.cancel(),u=null)}}}(e.sprite,this.map._requestManager,(function(e,r){if(i._spriteRequest=null,e)i.fire(new t.ErrorEvent(e));else if(r)for(var n in r)i.imageManager.addImage(n,r[n]);i.imageManager.setLoaded(!0),i.fire(new t.Event("data",{dataType:"style"}))})):this.imageManager.setLoaded(!0),this.glyphManager.setURL(e.glyphs);var o=Ft(this.stylesheet.layers);this._order=o.map((function(t){return t.id})),this._layers={};for(var a=0,s=o;a&lt;s.length;a+=1){var l=s[a];(l=t.createStyleLayer(l)).setEventedParent(this,{layer:{id:l.id}}),this._layers[l.id]=l}this.dispatcher.broadcast("setLayers",this._serializeLayers(this._order)),this.light=new w(this.stylesheet.light),this.fire(new t.Event("data",{dataType:"style"})),this.fire(new t.Event("style.load"))}},r.prototype._validateLayer=function(e){var r=this.sourceCaches[e.source];if(r){var i=e.sourceLayer;if(i){var n=r.getSource();("geojson"===n.type||n.vectorLayerIds&amp;&amp;-1===n.vectorLayerIds.indexOf(i))&amp;&amp;this.fire(new t.ErrorEvent(new Error('Source layer "'+i+'" does not exist on source "'+n.id+'" as specified by style layer "'+e.id+'"')))}}},r.prototype.loaded=function(){if(!this._loaded)return!1;if(Object.keys(this._updatedSources).length)return!1;for(var t in this.sourceCaches)if(!this.sourceCaches[t].loaded())return!1;return!!this.imageManager.isLoaded()},r.prototype._serializeLayers=function(t){for(var e=[],r=0,i=t;r&lt;i.length;r+=1){var n=i[r],o=this._layers[n];"custom"!==o.type&amp;&amp;e.push(o.serialize())}return e},r.prototype.hasTransitions=function(){if(this.light&amp;&amp;this.light.hasTransition())return!0;for(var t in this.sourceCaches)if(this.sourceCaches[t].hasTransition())return!0;for(var e in this._layers)if(this._layers[e].hasTransition())return!0;return!1},r.prototype._checkLoaded=function(){if(!this._loaded)throw new Error("Style is not done loading")},r.prototype.update=function(e){if(this._loaded){var r=this._changed;if(this._changed){var i=Object.keys(this._updatedLayers),n=Object.keys(this._removedLayers);for(var o in(i.length||n.length)&amp;&amp;this._updateWorkerLayers(i,n),this._updatedSources){var a=this._updatedSources[o];"reload"===a?this._reloadSource(o):"clear"===a&amp;&amp;this._clearSource(o)}for(var s in this._updatedPaintProps)this._layers[s].updateTransitions(e);this.light.updateTransitions(e),this._resetUpdates()}for(var l in this.sourceCaches)this.sourceCaches[l].used=!1;for(var u=0,c=this._order;u&lt;c.length;u+=1){var p=c[u],h=this._layers[p];h.recalculate(e),!h.isHidden(e.zoom)&amp;&amp;h.source&amp;&amp;(this.sourceCaches[h.source].used=!0)}this.light.recalculate(e),this.z=e.zoom,r&amp;&amp;this.fire(new t.Event("data",{dataType:"style"}))}},r.prototype._updateWorkerLayers=function(t,e){this.dispatcher.broadcast("updateLayers",{layers:this._serializeLayers(t),removedIds:e})},r.prototype._resetUpdates=function(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSources={},this._updatedPaintProps={}},r.prototype.setState=function(e){var r=this;if(this._checkLoaded(),Le(this,t.validateStyle(e)))return!1;(e=t.clone$1(e)).layers=Ft(e.layers);var i=Zt(this.serialize(),e).filter((function(t){return!(t.command in Oe)}));if(0===i.length)return!1;var n=i.filter((function(t){return!(t.command in Re)}));if(n.length&gt;0)throw new Error("Unimplemented: "+n.map((function(t){return t.command})).join(", ")+".");return i.forEach((function(t){"setTransition"!==t.command&amp;&amp;r[t.command].apply(r,t.args)})),this.stylesheet=e,!0},r.prototype.addImage=function(e,r){if(this.getImage(e))return this.fire(new t.ErrorEvent(new Error("An image with this name already exists.")));this.imageManager.addImage(e,r),this.fire(new t.Event("data",{dataType:"style"}))},r.prototype.updateImage=function(t,e){this.imageManager.updateImage(t,e)},r.prototype.getImage=function(t){return this.imageManager.getImage(t)},r.prototype.removeImage=function(e){if(!this.getImage(e))return this.fire(new t.ErrorEvent(new Error("No image with this name exists.")));this.imageManager.removeImage(e),this.fire(new t.Event("data",{dataType:"style"}))},r.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},r.prototype.addSource=function(e,r,i){var n=this;if(void 0===i&amp;&amp;(i={}),this._checkLoaded(),void 0!==this.sourceCaches[e])throw new Error("There is already a source with this ID");if(!r.type)throw new Error("The type property must be defined, but the only the following properties were given: "+Object.keys(r).join(", ")+".");if(!(["vector","raster","geojson","video","image"].indexOf(r.type)&gt;=0&amp;&amp;this._validate(t.validateStyle.source,"sources."+e,r,null,i))){this.map&amp;&amp;this.map._collectResourceTiming&amp;&amp;(r.collectResourceTiming=!0);var o=this.sourceCaches[e]=new Pt(e,r,this.dispatcher);o.style=this,o.setEventedParent(this,(function(){return{isSourceLoaded:n.loaded(),source:o.serialize(),sourceId:e}})),o.onAdd(this.map),this._changed=!0}},r.prototype.removeSource=function(e){if(this._checkLoaded(),void 0===this.sourceCaches[e])throw new Error("There is no source with this ID");for(var r in this._layers)if(this._layers[r].source===e)return this.fire(new t.ErrorEvent(new Error('Source "'+e+'" cannot be removed while layer "'+r+'" is using it.')));var i=this.sourceCaches[e];delete this.sourceCaches[e],delete this._updatedSources[e],i.fire(new t.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:e})),i.setEventedParent(null),i.clearTiles(),i.onRemove&amp;&amp;i.onRemove(this.map),this._changed=!0},r.prototype.setGeoJSONSourceData=function(t,e){this._checkLoaded(),this.sourceCaches[t].getSource().setData(e),this._changed=!0},r.prototype.getSource=function(t){return this.sourceCaches[t]&amp;&amp;this.sourceCaches[t].getSource()},r.prototype.addLayer=function(e,r,i){void 0===i&amp;&amp;(i={}),this._checkLoaded();var n=e.id;if(this.getLayer(n))this.fire(new t.ErrorEvent(new Error('Layer with id "'+n+'" already exists on this map')));else{var o;if("custom"===e.type){if(Le(this,t.validateCustomStyleLayer(e)))return;o=t.createStyleLayer(e)}else{if("object"==typeof e.source&amp;&amp;(this.addSource(n,e.source),e=t.clone$1(e),e=t.extend(e,{source:n})),this._validate(t.validateStyle.layer,"layers."+n,e,{arrayIndex:-1},i))return;o=t.createStyleLayer(e),this._validateLayer(o),o.setEventedParent(this,{layer:{id:n}})}var a=r?this._order.indexOf(r):this._order.length;if(r&amp;&amp;-1===a)this.fire(new t.ErrorEvent(new Error('Layer with id "'+r+'" does not exist on this map.')));else{if(this._order.splice(a,0,n),this._layerOrderChanged=!0,this._layers[n]=o,this._removedLayers[n]&amp;&amp;o.source&amp;&amp;"custom"!==o.type){var s=this._removedLayers[n];delete this._removedLayers[n],s.type!==o.type?this._updatedSources[o.source]="clear":(this._updatedSources[o.source]="reload",this.sourceCaches[o.source].pause())}this._updateLayer(o),o.onAdd&amp;&amp;o.onAdd(this.map)}}},r.prototype.moveLayer=function(e,r){if(this._checkLoaded(),this._changed=!0,this._layers[e]){if(e!==r){var i=this._order.indexOf(e);this._order.splice(i,1);var n=r?this._order.indexOf(r):this._order.length;r&amp;&amp;-1===n?this.fire(new t.ErrorEvent(new Error('Layer with id "'+r+'" does not exist on this map.'))):(this._order.splice(n,0,e),this._layerOrderChanged=!0)}}else this.fire(new t.ErrorEvent(new Error("The layer '"+e+"' does not exist in the map's style and cannot be moved.")))},r.prototype.removeLayer=function(e){this._checkLoaded();var r=this._layers[e];if(r){r.setEventedParent(null);var i=this._order.indexOf(e);this._order.splice(i,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[e]=r,delete this._layers[e],delete this._updatedLayers[e],delete this._updatedPaintProps[e],r.onRemove&amp;&amp;r.onRemove(this.map)}else this.fire(new t.ErrorEvent(new Error("The layer '"+e+"' does not exist in the map's style and cannot be removed.")))},r.prototype.getLayer=function(t){return this._layers[t]},r.prototype.setLayerZoomRange=function(e,r,i){this._checkLoaded();var n=this.getLayer(e);n?n.minzoom===r&amp;&amp;n.maxzoom===i||(null!=r&amp;&amp;(n.minzoom=r),null!=i&amp;&amp;(n.maxzoom=i),this._updateLayer(n)):this.fire(new t.ErrorEvent(new Error("The layer '"+e+"' does not exist in the map's style and cannot have zoom extent.")))},r.prototype.setFilter=function(e,r,i){void 0===i&amp;&amp;(i={}),this._checkLoaded();var n=this.getLayer(e);if(n){if(!t.deepEqual(n.filter,r))return null==r?(n.filter=void 0,void this._updateLayer(n)):void(this._validate(t.validateStyle.filter,"layers."+n.id+".filter",r,null,i)||(n.filter=t.clone$1(r),this._updateLayer(n)))}else this.fire(new t.ErrorEvent(new Error("The layer '"+e+"' does not exist in the map's style and cannot be filtered.")))},r.prototype.getFilter=function(e){return t.clone$1(this.getLayer(e).filter)},r.prototype.setLayoutProperty=function(e,r,i,n){void 0===n&amp;&amp;(n={}),this._checkLoaded();var o=this.getLayer(e);o?t.deepEqual(o.getLayoutProperty(r),i)||(o.setLayoutProperty(r,i,n),this._updateLayer(o)):this.fire(new t.ErrorEvent(new Error("The layer '"+e+"' does not exist in the map's style and cannot be styled.")))},r.prototype.getLayoutProperty=function(e,r){var i=this.getLayer(e);if(i)return i.getLayoutProperty(r);this.fire(new t.ErrorEvent(new Error("The layer '"+e+"' does not exist in the map's style.")))},r.prototype.setPaintProperty=function(e,r,i,n){void 0===n&amp;&amp;(n={}),this._checkLoaded();var o=this.getLayer(e);o?t.deepEqual(o.getPaintProperty(r),i)||(o.setPaintProperty(r,i,n)&amp;&amp;this._updateLayer(o),this._changed=!0,this._updatedPaintProps[e]=!0):this.fire(new t.ErrorEvent(new Error("The layer '"+e+"' does not exist in the map's style and cannot be styled.")))},r.prototype.getPaintProperty=function(t,e){return this.getLayer(t).getPaintProperty(e)},r.prototype.setFeatureState=function(e,r){this._checkLoaded();var i=e.source,n=e.sourceLayer,o=this.sourceCaches[i],a=parseInt(e.id,10);if(void 0!==o){var s=o.getSource().type;"geojson"===s&amp;&amp;n?this.fire(new t.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter."))):"vector"!==s||n?isNaN(a)||a&lt;0?this.fire(new t.ErrorEvent(new Error("The feature id parameter must be provided and non-negative."))):o.setFeatureState(n,a,r):this.fire(new t.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new t.ErrorEvent(new Error("The source '"+i+"' does not exist in the map's style.")))},r.prototype.removeFeatureState=function(e,r){this._checkLoaded();var i=e.source,n=this.sourceCaches[i];if(void 0!==n){var o=n.getSource().type,a="vector"===o?e.sourceLayer:void 0,s=parseInt(e.id,10);"vector"!==o||a?void 0!==e.id&amp;&amp;isNaN(s)||s&lt;0?this.fire(new t.ErrorEvent(new Error("The feature id parameter must be non-negative."))):r&amp;&amp;"string"!=typeof e.id&amp;&amp;"number"!=typeof e.id?this.fire(new t.ErrorEvent(new Error("A feature id is requred to remove its specific state property."))):n.removeFeatureState(a,s,r):this.fire(new t.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new t.ErrorEvent(new Error("The source '"+i+"' does not exist in the map's style.")))},r.prototype.getFeatureState=function(e){this._checkLoaded();var r=e.source,i=e.sourceLayer,n=this.sourceCaches[r],o=parseInt(e.id,10);if(void 0!==n)if("vector"!==n.getSource().type||i){if(!(isNaN(o)||o&lt;0))return n.getFeatureState(i,o);this.fire(new t.ErrorEvent(new Error("The feature id parameter must be provided and non-negative.")))}else this.fire(new t.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));else this.fire(new t.ErrorEvent(new Error("The source '"+r+"' does not exist in the map's style.")))},r.prototype.getTransition=function(){return t.extend({duration:300,delay:0},this.stylesheet&amp;&amp;this.stylesheet.transition)},r.prototype.serialize=function(){return t.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,sources:t.mapObject(this.sourceCaches,(function(t){return t.serialize()})),layers:this._serializeLayers(this._order)},(function(t){return void 0!==t}))},r.prototype._updateLayer=function(t){this._updatedLayers[t.id]=!0,t.source&amp;&amp;!this._updatedSources[t.source]&amp;&amp;(this._updatedSources[t.source]="reload",this.sourceCaches[t.source].pause()),this._changed=!0},r.prototype._flattenAndSortRenderedFeatures=function(t){for(var e=this,r=function(t){return"fill-extrusion"===e._layers[t].type},i={},n=[],o=this._order.length-1;o&gt;=0;o--){var a=this._order[o];if(r(a)){i[a]=o;for(var s=0,l=t;s&lt;l.length;s+=1){var u=l[s][a];if(u)for(var c=0,p=u;c&lt;p.length;c+=1){var h=p[c];n.push(h)}}}}n.sort((function(t,e){return e.intersectionZ-t.intersectionZ}));for(var d=[],f=this._order.length-1;f&gt;=0;f--){var m=this._order[f];if(r(m))for(var y=n.length-1;y&gt;=0;y--){var g=n[y].feature;if(i[g.layer.id]&lt;f)break;d.push(g),n.pop()}else for(var v=0,_=t;v&lt;_.length;v+=1){var x=_[v][m];if(x)for(var b=0,w=x;b&lt;w.length;b+=1){var S=w[b];d.push(S.feature)}}}return d},r.prototype.queryRenderedFeatures=function(e,r,i){r&amp;&amp;r.filter&amp;&amp;this._validate(t.validateStyle.filter,"queryRenderedFeatures.filter",r.filter,null,r);var n={};if(r&amp;&amp;r.layers){if(!Array.isArray(r.layers))return this.fire(new t.ErrorEvent(new Error("parameters.layers must be an Array."))),[];for(var o=0,a=r.layers;o&lt;a.length;o+=1){var s=a[o],l=this._layers[s];if(!l)return this.fire(new t.ErrorEvent(new Error("The layer '"+s+"' does not exist in the map's style and cannot be queried for features."))),[];n[l.source]=!0}}var u=[];for(var c in this.sourceCaches)r.layers&amp;&amp;!n[c]||u.push(B(this.sourceCaches[c],this._layers,e,r,i));return this.placement&amp;&amp;u.push(function(t,e,r,i,n,o){for(var a={},s=n.queryRenderedSymbols(r),l=[],u=0,c=Object.keys(s).map(Number);u&lt;c.length;u+=1){var p=c[u];l.push(o[p])}l.sort(F);for(var h=function(){var e=f[d],r=e.featureIndex.lookupSymbolFeatures(s[e.bucketInstanceId],e.bucketIndex,e.sourceLayerIndex,i.filter,i.layers,t);for(var n in r){var o=a[n]=a[n]||[],l=r[n];l.sort((function(t,r){var i=e.featureSortOrder;if(i){var n=i.indexOf(t.featureIndex);return i.indexOf(r.featureIndex)-n}return r.featureIndex-t.featureIndex}));for(var u=0,c=l;u&lt;c.length;u+=1){var p=c[u];o.push(p)}}},d=0,f=l;d&lt;f.length;d+=1)h();var m=function(r){a[r].forEach((function(i){var n=i.feature,o=t[r],a=e[o.source].getFeatureState(n.layer["source-layer"],n.id);n.source=n.layer.source,n.layer["source-layer"]&amp;&amp;(n.sourceLayer=n.layer["source-layer"]),n.state=a}))};for(var y in a)m(y);return a}(this._layers,this.sourceCaches,e,r,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenAndSortRenderedFeatures(u)},r.prototype.querySourceFeatures=function(e,r){r&amp;&amp;r.filter&amp;&amp;this._validate(t.validateStyle.filter,"querySourceFeatures.filter",r.filter,null,r);var i=this.sourceCaches[e];return i?function(t,e){for(var r=t.getRenderableIds().map((function(e){return t.getTileByID(e)})),i=[],n={},o=0;o&lt;r.length;o++){var a=r[o],s=a.tileID.canonical.key;n[s]||(n[s]=!0,a.querySourceFeatures(i,e))}return i}(i,r):[]},r.prototype.addSourceType=function(t,e,i){return r.getSourceType(t)?i(new Error('A source type called "'+t+'" already exists.')):(r.setSourceType(t,e),e.workerSourceURL?void this.dispatcher.broadcast("loadWorkerSource",{name:t,url:e.workerSourceURL},i):i(null,null))},r.prototype.getLight=function(){return this.light.getLight()},r.prototype.setLight=function(e,r){void 0===r&amp;&amp;(r={}),this._checkLoaded();var i=this.light.getLight(),n=!1;for(var o in e)if(!t.deepEqual(e[o],i[o])){n=!0;break}if(n){var a={now:t.browser.now(),transition:t.extend({duration:300,delay:0},this.stylesheet.transition)};this.light.setLight(e,r),this.light.updateTransitions(a)}},r.prototype._validate=function(e,r,i,n,o){return void 0===o&amp;&amp;(o={}),(!o||!1!==o.validate)&amp;&amp;Le(this,e.call(t.validateStyle,t.extend({key:r,style:this.serialize(),value:i,styleSpec:t.styleSpec},n)))},r.prototype._remove=function(){for(var e in this._request&amp;&amp;(this._request.cancel(),this._request=null),this._spriteRequest&amp;&amp;(this._spriteRequest.cancel(),this._spriteRequest=null),t.evented.off("pluginAvailable",this._rtlTextPluginCallback),this.sourceCaches)this.sourceCaches[e].clearTiles();this.dispatcher.remove()},r.prototype._clearSource=function(t){this.sourceCaches[t].clearTiles()},r.prototype._reloadSource=function(t){this.sourceCaches[t].resume(),this.sourceCaches[t].reload()},r.prototype._updateSources=function(t){for(var e in this.sourceCaches)this.sourceCaches[e].update(t)},r.prototype._generateCollisionBoxes=function(){for(var t in this.sourceCaches)this._reloadSource(t)},r.prototype._updatePlacement=function(e,r,i,n){for(var o=!1,a=!1,s={},l=0,u=this._order;l&lt;u.length;l+=1){var c=u[l],p=this._layers[c];if("symbol"===p.type){if(!s[p.source]){var h=this.sourceCaches[p.source];s[p.source]=h.getRenderableIds(!0).map((function(t){return h.getTileByID(t)})).sort((function(t,e){return e.tileID.overscaledZ-t.tileID.overscaledZ||(t.tileID.isLessThan(e.tileID)?-1:1)}))}var d=this.crossTileSymbolIndex.addLayer(p,s[p.source],e.center.lng);o=o||d}}this.crossTileSymbolIndex.pruneUnusedLayers(this._order);var f=this._layerOrderChanged||0===i;if((f||!this.pauseablePlacement||this.pauseablePlacement.isDone()&amp;&amp;!this.placement.stillRecent(t.browser.now()))&amp;&amp;(this.pauseablePlacement=new Ce(e,this._order,f,r,i,n,this.placement),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._order,this._layers,s),this.pauseablePlacement.isDone()&amp;&amp;(this.placement=this.pauseablePlacement.commit(t.browser.now()),a=!0),o&amp;&amp;this.pauseablePlacement.placement.setStale()),a||o)for(var m=0,y=this._order;m&lt;y.length;m+=1){var g=y[m],v=this._layers[g];"symbol"===v.type&amp;&amp;this.placement.updateLayerOpacities(v,s[v.source])}return!this.pauseablePlacement.isDone()||this.placement.hasTransitions(t.browser.now())},r.prototype._releaseSymbolFadeTiles=function(){for(var t in this.sourceCaches)this.sourceCaches[t].releaseSymbolFadeTiles()},r.prototype.getImages=function(t,e,r){this.imageManager.getImages(e.icons,r)},r.prototype.getGlyphs=function(t,e,r){this.glyphManager.getGlyphs(e.stacks,r)},r.prototype.getResource=function(e,r,i){return t.makeRequest(r,i)},r}(t.Evented);Be.getSourceType=function(t){return L[t]},Be.setSourceType=function(t,e){L[t]=e},Be.registerForPluginAvailability=t.registerForPluginAvailability;var Fe=t.createLayout([{name:"a_pos",type:"Int16",components:2}]),je=cr("#ifdef GL_ES\nprecision mediump float;\n#else\n#if !defined(lowp)\n#define lowp\n#endif\n#if !defined(mediump)\n#define mediump\n#endif\n#if !defined(highp)\n#define highp\n#endif\n#endif","#ifdef GL_ES\nprecision highp float;\n#else\n#if !defined(lowp)\n#define lowp\n#endif\n#if !defined(mediump)\n#define mediump\n#endif\n#if !defined(highp)\n#define highp\n#endif\n#endif\nvec2 unpack_float(const float packedValue) {int packedIntValue=int(packedValue);int v0=packedIntValue/256;return vec2(v0,packedIntValue-v0*256);}vec2 unpack_opacity(const float packedOpacity) {int intOpacity=int(packedOpacity)/2;return vec2(float(intOpacity)/127.0,mod(packedOpacity,2.0));}vec4 decode_color(const vec2 encodedColor) {return vec4(unpack_float(encodedColor[0])/255.0,unpack_float(encodedColor[1])/255.0\n);}float unpack_mix_vec2(const vec2 packedValue,const float t) {return mix(packedValue[0],packedValue[1],t);}vec4 unpack_mix_color(const vec4 packedColors,const float t) {vec4 minColor=decode_color(vec2(packedColors[0],packedColors[1]));vec4 maxColor=decode_color(vec2(packedColors[2],packedColors[3]));return mix(minColor,maxColor,t);}vec2 get_pattern_pos(const vec2 pixel_coord_upper,const vec2 pixel_coord_lower,const vec2 pattern_size,const float tile_units_to_pixels,const vec2 pos) {vec2 offset=mod(mod(mod(pixel_coord_upper,pattern_size)*256.0,pattern_size)*256.0+pixel_coord_lower,pattern_size);return (tile_units_to_pixels*pos+offset)/pattern_size;}"),Ue=cr("uniform vec4 u_color;uniform float u_opacity;void main() {gl_FragColor=u_color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"),Ne=cr("uniform vec2 u_pattern_tl_a;uniform vec2 u_pattern_br_a;uniform vec2 u_pattern_tl_b;uniform vec2 u_pattern_br_b;uniform vec2 u_texsize;uniform float u_mix;uniform float u_opacity;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(u_pattern_tl_a/u_texsize,u_pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(u_pattern_tl_b/u_texsize,u_pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_mix)*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pattern_size_a;uniform vec2 u_pattern_size_b;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_scale_a;uniform float u_scale_b;uniform float u_tile_units_to_pixels;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_a*u_pattern_size_a,u_tile_units_to_pixels,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_b*u_pattern_size_b,u_tile_units_to_pixels,a_pos);}"),Ve=cr("varying vec3 v_data;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=v_data.xy;float extrude_length=length(extrude);lowp float antialiasblur=v_data.z;float antialiased_blur=-max(blur,antialiasblur);float opacity_t=smoothstep(0.0,antialiased_blur,extrude_length-1.0);float color_t=stroke_width &lt; 0.01 ? 0.0 : smoothstep(antialiased_blur,0.0,extrude_length-radius/(radius+stroke_width));gl_FragColor=opacity_t*mix(color*opacity,stroke_color*stroke_opacity,color_t);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform bool u_scale_with_map;uniform bool u_pitch_with_map;uniform vec2 u_extrude_scale;uniform lowp float u_device_pixel_ratio;uniform highp float u_camera_to_center_distance;attribute vec2 a_pos;varying vec3 v_data;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvoid main(void) {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=vec2(mod(a_pos,2.0)*2.0-1.0);vec2 circle_center=floor(a_pos*0.5);if (u_pitch_with_map) {vec2 corner_position=circle_center;if (u_scale_with_map) {corner_position+=extrude*(radius+stroke_width)*u_extrude_scale;} else {vec4 projected_center=u_matrix*vec4(circle_center,0,1);corner_position+=extrude*(radius+stroke_width)*u_extrude_scale*(projected_center.w/u_camera_to_center_distance);}gl_Position=u_matrix*vec4(corner_position,0,1);} else {gl_Position=u_matrix*vec4(circle_center,0,1);if (u_scale_with_map) {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*u_camera_to_center_distance;} else {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*gl_Position.w;}}lowp float antialiasblur=1.0/u_device_pixel_ratio/(radius+stroke_width);v_data=vec3(extrude.x,extrude.y,antialiasblur);}"),qe=cr("void main() {gl_FragColor=vec4(1.0);}","attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"),We=cr("uniform highp float u_intensity;varying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#define GAUSS_COEF 0.3989422804014327\nvoid main() {\n#pragma mapbox: initialize highp float weight\nfloat d=-0.5*3.0*3.0*dot(v_extrude,v_extrude);float val=weight*u_intensity*GAUSS_COEF*exp(d);gl_FragColor=vec4(val,1.0,1.0,1.0);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform float u_extrude_scale;uniform float u_opacity;uniform float u_intensity;attribute vec2 a_pos;varying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#pragma mapbox: define mediump float radius\nconst highp float ZERO=1.0/255.0/16.0;\n#define GAUSS_COEF 0.3989422804014327\nvoid main(void) {\n#pragma mapbox: initialize highp float weight\n#pragma mapbox: initialize mediump float radius\nvec2 unscaled_extrude=vec2(mod(a_pos,2.0)*2.0-1.0);float S=sqrt(-2.0*log(ZERO/weight/u_intensity/GAUSS_COEF))/3.0;v_extrude=S*unscaled_extrude;vec2 extrude=v_extrude*radius*u_extrude_scale;vec4 pos=vec4(floor(a_pos*0.5)+extrude,0,1);gl_Position=u_matrix*pos;}"),Ge=cr("uniform sampler2D u_image;uniform sampler2D u_color_ramp;uniform float u_opacity;varying vec2 v_pos;void main() {float t=texture2D(u_image,v_pos).r;vec4 color=texture2D(u_color_ramp,vec2(t,0.5));gl_FragColor=color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(0.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_world;attribute vec2 a_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos*u_world,0,1);v_pos.x=a_pos.x;v_pos.y=1.0-a_pos.y;}"),He=cr("varying float v_placed;varying float v_notUsed;void main() {float alpha=0.5;gl_FragColor=vec4(1.0,0.0,0.0,1.0)*alpha;if (v_placed &gt; 0.5) {gl_FragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed &gt; 0.5) {gl_FragColor*=.1;}}","attribute vec2 a_pos;attribute vec2 a_anchor_pos;attribute vec2 a_extrude;attribute vec2 a_placed;attribute vec2 a_shift;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;varying float v_placed;varying float v_notUsed;void main() {vec4 projectedPoint=u_matrix*vec4(a_anchor_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);gl_Position=u_matrix*vec4(a_pos,0.0,1.0);gl_Position.xy+=(a_extrude+a_shift)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;}"),Ze=cr("uniform float u_overscale_factor;varying float v_placed;varying float v_notUsed;varying float v_radius;varying vec2 v_extrude;varying vec2 v_extrude_scale;void main() {float alpha=0.5;vec4 color=vec4(1.0,0.0,0.0,1.0)*alpha;if (v_placed &gt; 0.5) {color=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed &gt; 0.5) {color*=.2;}float extrude_scale_length=length(v_extrude_scale);float extrude_length=length(v_extrude)*extrude_scale_length;float stroke_width=15.0*extrude_scale_length/u_overscale_factor;float radius=v_radius*extrude_scale_length;float distance_to_edge=abs(extrude_length-radius);float opacity_t=smoothstep(-stroke_width,0.0,-distance_to_edge);gl_FragColor=opacity_t*color;}","attribute vec2 a_pos;attribute vec2 a_anchor_pos;attribute vec2 a_extrude;attribute vec2 a_placed;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;varying float v_placed;varying float v_notUsed;varying float v_radius;varying vec2 v_extrude;varying vec2 v_extrude_scale;void main() {vec4 projectedPoint=u_matrix*vec4(a_anchor_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);gl_Position=u_matrix*vec4(a_pos,0.0,1.0);highp float padding_factor=1.2;gl_Position.xy+=a_extrude*u_extrude_scale*padding_factor*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;v_radius=abs(a_extrude.y);v_extrude=a_extrude*padding_factor;v_extrude_scale=u_extrude_scale*u_camera_to_center_distance*collision_perspective_ratio;}"),Xe=cr("uniform highp vec4 u_color;void main() {gl_FragColor=u_color;}","attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"),$e=cr("#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_FragColor=color*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);}"),Ye=cr("varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=outline_color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;uniform vec2 u_world;varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}"),Ke=cr("uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=mix(color1,color2,u_fade)*alpha*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_world;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec4 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float pixelRatio=u_scale.x;float tileRatio=u_scale.y;float fromScale=u_scale.z;float toScale=u_scale.w;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size_a=vec2((pattern_br_a.x-pattern_tl_a.x)/pixelRatio,(pattern_br_a.y-pattern_tl_a.y)/pixelRatio);vec2 display_size_b=vec2((pattern_br_b.x-pattern_tl_b.x)/pixelRatio,(pattern_br_b.y-pattern_tl_b.y)/pixelRatio);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}"),Je=cr("uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_fade)*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec4 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float pixelRatio=u_scale.x;float tileZoomRatio=u_scale.y;float fromScale=u_scale.z;float toScale=u_scale.w;vec2 display_size_a=vec2((pattern_br_a.x-pattern_tl_a.x)/pixelRatio,(pattern_br_a.y-pattern_tl_a.y)/pixelRatio);vec2 display_size_b=vec2((pattern_br_b.x-pattern_tl_b.x)/pixelRatio,(pattern_br_b.y-pattern_tl_b.y)/pixelRatio);gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}"),Qe=cr("varying vec4 v_color;void main() {gl_FragColor=v_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;uniform float u_vertical_gradient;uniform lowp float u_opacity;attribute vec2 a_pos;attribute vec4 a_normal_ed;varying vec4 v_color;\n#pragma mapbox: define highp float base\n#pragma mapbox: define highp float height\n#pragma mapbox: define highp vec4 color\nvoid main() {\n#pragma mapbox: initialize highp float base\n#pragma mapbox: initialize highp float height\n#pragma mapbox: initialize highp vec4 color\nvec3 normal=a_normal_ed.xyz;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);gl_Position=u_matrix*vec4(a_pos,t &gt; 0.0 ? height : base,1);float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;float directional=clamp(dot(normal/16384.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}"),tr=cr("uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);vec4 mixedColor=mix(color1,color2,u_fade);gl_FragColor=mixedColor*v_lighting;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform vec4 u_scale;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;attribute vec2 a_pos;attribute vec4 a_normal_ed;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float pixelRatio=u_scale.x;float tileRatio=u_scale.y;float fromScale=u_scale.z;float toScale=u_scale.w;vec3 normal=a_normal_ed.xyz;float edgedistance=a_normal_ed.w;vec2 display_size_a=vec2((pattern_br_a.x-pattern_tl_a.x)/pixelRatio,(pattern_br_a.y-pattern_tl_a.y)/pixelRatio);vec2 display_size_b=vec2((pattern_br_b.x-pattern_tl_b.x)/pixelRatio,(pattern_br_b.y-pattern_tl_b.y)/pixelRatio);base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);float z=t &gt; 0.0 ? height : base;gl_Position=u_matrix*vec4(a_pos,z,1);vec2 pos=normal.x==1.0 &amp;&amp; normal.y==0.0 &amp;&amp; normal.z==16384.0\n? a_pos\n: vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}"),er=cr("#ifdef GL_ES\nprecision highp float;\n#endif\nuniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform float u_maxzoom;float getElevation(vec2 coord,float bias) {vec4 data=texture2D(u_image,coord)*255.0;return (data.r+data.g*256.0+data.b*256.0*256.0)/4.0;}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y),0.0);float b=getElevation(v_pos+vec2(0,-epsilon.y),0.0);float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y),0.0);float d=getElevation(v_pos+vec2(-epsilon.x,0),0.0);float e=getElevation(v_pos,0.0);float f=getElevation(v_pos+vec2(epsilon.x,0),0.0);float g=getElevation(v_pos+vec2(-epsilon.x,epsilon.y),0.0);float h=getElevation(v_pos+vec2(0,epsilon.y),0.0);float i=getElevation(v_pos+vec2(epsilon.x,epsilon.y),0.0);float exaggeration=u_zoom &lt; 2.0 ? 0.4 : u_zoom &lt; 4.5 ? 0.35 : 0.3;vec2 deriv=vec2((c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c))/ pow(2.0,(u_zoom-u_maxzoom)*exaggeration+19.2562-u_zoom);gl_FragColor=clamp(vec4(deriv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}"),rr=cr("uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent;\n#define PI 3.141592653589793\nvoid main() {vec4 pixel=texture2D(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y &gt; 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);gl_FragColor=accent_color*(1.0-shade_color.a)+shade_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;}"),ir=cr("uniform lowp float u_device_pixel_ratio;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp float v_linesofar;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth &gt; 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth &gt; 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}"),nr=cr("uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp float v_lineprogress;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);vec4 color=texture2D(u_image,vec2(v_lineprogress,0.5));gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define MAX_LINE_DISTANCE 32767.0\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp float v_lineprogress;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_lineprogress=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0/MAX_LINE_DISTANCE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth &gt; 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth &gt; 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}"),or=cr("uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec4 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float pixelRatio=u_scale.x;float tileZoomRatio=u_scale.y;float fromScale=u_scale.z;float toScale=u_scale.w;vec2 display_size_a=vec2((pattern_br_a.x-pattern_tl_a.x)/pixelRatio,(pattern_br_a.y-pattern_tl_a.y)/pixelRatio);vec2 display_size_b=vec2((pattern_br_b.x-pattern_tl_b.x)/pixelRatio,(pattern_br_b.y-pattern_tl_b.y)/pixelRatio);vec2 pattern_size_a=vec2(display_size_a.x*fromScale/tileZoomRatio,display_size_a.y);vec2 pattern_size_b=vec2(display_size_b.x*toScale/tileZoomRatio,display_size_b.y);float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float x_a=mod(v_linesofar/pattern_size_a.x,1.0);float x_b=mod(v_linesofar/pattern_size_b.x,1.0);float y_a=0.5+(v_normal.y*clamp(v_width2.s,0.0,(pattern_size_a.y+2.0)/2.0)/pattern_size_a.y);float y_b=0.5+(v_normal.y*clamp(v_width2.s,0.0,(pattern_size_b.y+2.0)/2.0)/pattern_size_b.y);vec2 pos_a=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,vec2(x_a,y_a));vec2 pos_b=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,vec2(x_b,y_b));vec4 color=mix(texture2D(u_image,pos_a),texture2D(u_image,pos_b),u_fade);gl_FragColor=color*alpha*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform vec2 u_units_to_pixels;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth &gt; 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth &gt; 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_linesofar=a_linesofar;v_width2=vec2(outset,inset);}"),ar=cr("uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform float u_sdfgamma;uniform float u_mix;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float sdfdist_a=texture2D(u_image,v_tex_a).a;float sdfdist_b=texture2D(u_image,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);alpha*=smoothstep(0.5-u_sdfgamma/floorwidth,0.5+u_sdfgamma/floorwidth,sdfdist);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_patternscale_a;uniform float u_tex_y_a;uniform vec2 u_patternscale_b;uniform float u_tex_y_b;uniform vec2 u_units_to_pixels;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth &gt; 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth &gt; 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_tex_a=vec2(a_linesofar*u_patternscale_a.x/floorwidth,normal.y*u_patternscale_a.y+u_tex_y_a);v_tex_b=vec2(a_linesofar*u_patternscale_b.x/floorwidth,normal.y*u_patternscale_b.y+u_tex_y_b);v_width2=vec2(outset,inset);}"),sr=cr("uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a &gt; 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a &gt; 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);gl_FragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos0=(((a_texture_pos/8192.0)-0.5)/u_buffer_scale )+0.5;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}"),lr=cr("uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nlowp float alpha=opacity*v_fade_opacity;gl_FragColor=texture2D(u_texture,v_tex)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant &amp;&amp; !u_is_size_feature_constant) {size=mix(a_size[0],a_size[1],u_size_t)/256.0;} else if (u_is_size_zoom_constant &amp;&amp; !u_is_size_feature_constant) {size=a_size[0]/256.0;} else if (!u_is_size_zoom_constant &amp;&amp; u_is_size_feature_constant) {size=u_size;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),0.0,1.0);v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] &gt; 0.5 ? u_fade_change :-u_fade_change;v_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));}"),ur=cr("#define SDF_PX 8.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;varying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scale=v_data1.x;float size=v_data1.y;float fade_opacity=v_data1[2];float fontScale=u_is_text ? size/24.0 : size;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;varying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant &amp;&amp; !u_is_size_feature_constant) {size=mix(a_size[0],a_size[1],u_size_t)/256.0;} else if (u_is_size_zoom_constant &amp;&amp; !u_is_size_feature_constant) {size=a_size[0]/256.0;} else if (!u_is_size_zoom_constant &amp;&amp; u_is_size_feature_constant) {size=u_size;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),0.0,1.0);float gamma_scale=gl_Position.w;vec2 tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] &gt; 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0=vec2(tex.x,tex.y);v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}");function cr(t,e){var r=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,i={};return{fragmentSource:t=t.replace(r,(function(t,e,r,n,o){return i[o]=!0,"define"===e?"\n#ifndef HAS_UNIFORM_u_"+o+"\nvarying "+r+" "+n+" "+o+";\n#else\nuniform "+r+" "+n+" u_"+o+";\n#endif\n":"\n#ifdef HAS_UNIFORM_u_"+o+"\n    "+r+" "+n+" "+o+" = u_"+o+";\n#endif\n"})),vertexSource:e=e.replace(r,(function(t,e,r,n,o){var a="float"===n?"vec2":"vec4",s=o.match(/color/)?"color":a;return i[o]?"define"===e?"\n#ifndef HAS_UNIFORM_u_"+o+"\nuniform lowp float u_"+o+"_t;\nattribute "+r+" "+a+" a_"+o+";\nvarying "+r+" "+n+" "+o+";\n#else\nuniform "+r+" "+n+" u_"+o+";\n#endif\n":"vec4"===s?"\n#ifndef HAS_UNIFORM_u_"+o+"\n    "+o+" = a_"+o+";\n#else\n    "+r+" "+n+" "+o+" = u_"+o+";\n#endif\n":"\n#ifndef HAS_UNIFORM_u_"+o+"\n    "+o+" = unpack_mix_"+s+"(a_"+o+", u_"+o+"_t);\n#else\n    "+r+" "+n+" "+o+" = u_"+o+";\n#endif\n":"define"===e?"\n#ifndef HAS_UNIFORM_u_"+o+"\nuniform lowp float u_"+o+"_t;\nattribute "+r+" "+a+" a_"+o+";\n#else\nuniform "+r+" "+n+" u_"+o+";\n#endif\n":"vec4"===s?"\n#ifndef HAS_UNIFORM_u_"+o+"\n    "+r+" "+n+" "+o+" = a_"+o+";\n#else\n    "+r+" "+n+" "+o+" = u_"+o+";\n#endif\n":"\n#ifndef HAS_UNIFORM_u_"+o+"\n    "+r+" "+n+" "+o+" = unpack_mix_"+s+"(a_"+o+", u_"+o+"_t);\n#else\n    "+r+" "+n+" "+o+" = u_"+o+";\n#endif\n"}))}}var pr=Object.freeze({prelude:je,background:Ue,backgroundPattern:Ne,circle:Ve,clippingMask:qe,heatmap:We,heatmapTexture:Ge,collisionBox:He,collisionCircle:Ze,debug:Xe,fill:$e,fillOutline:Ye,fillOutlinePattern:Ke,fillPattern:Je,fillExtrusion:Qe,fillExtrusionPattern:tr,hillshadePrepare:er,hillshade:rr,line:ir,lineGradient:nr,linePattern:or,lineSDF:ar,raster:sr,symbolIcon:lr,symbolSDF:ur}),hr=function(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null};hr.prototype.bind=function(t,e,r,i,n,o,a,s){this.context=t;for(var l=this.boundPaintVertexBuffers.length!==i.length,u=0;!l&amp;&amp;u&lt;i.length;u++)this.boundPaintVertexBuffers[u]!==i[u]&amp;&amp;(l=!0);var c=!this.vao||this.boundProgram!==e||this.boundLayoutVertexBuffer!==r||l||this.boundIndexBuffer!==n||this.boundVertexOffset!==o||this.boundDynamicVertexBuffer!==a||this.boundDynamicVertexBuffer2!==s;!t.extVertexArrayObject||c?this.freshBind(e,r,i,n,o,a,s):(t.bindVertexArrayOES.set(this.vao),a&amp;&amp;a.bind(),n&amp;&amp;n.dynamicDraw&amp;&amp;n.bind(),s&amp;&amp;s.bind())},hr.prototype.freshBind=function(t,e,r,i,n,o,a){var s,l=t.numAttributes,u=this.context,c=u.gl;if(u.extVertexArrayObject)this.vao&amp;&amp;this.destroy(),this.vao=u.extVertexArrayObject.createVertexArrayOES(),u.bindVertexArrayOES.set(this.vao),s=0,this.boundProgram=t,this.boundLayoutVertexBuffer=e,this.boundPaintVertexBuffers=r,this.boundIndexBuffer=i,this.boundVertexOffset=n,this.boundDynamicVertexBuffer=o,this.boundDynamicVertexBuffer2=a;else{s=u.currentNumAttributes||0;for(var p=l;p&lt;s;p++)c.disableVertexAttribArray(p)}e.enableAttributes(c,t);for(var h=0,d=r;h&lt;d.length;h+=1)d[h].enableAttributes(c,t);o&amp;&amp;o.enableAttributes(c,t),a&amp;&amp;a.enableAttributes(c,t),e.bind(),e.setVertexAttribPointers(c,t,n);for(var f=0,m=r;f&lt;m.length;f+=1){var y=m[f];y.bind(),y.setVertexAttribPointers(c,t,n)}o&amp;&amp;(o.bind(),o.setVertexAttribPointers(c,t,n)),i&amp;&amp;i.bind(),a&amp;&amp;(a.bind(),a.setVertexAttribPointers(c,t,n)),u.currentNumAttributes=l},hr.prototype.destroy=function(){this.vao&amp;&amp;(this.context.extVertexArrayObject.deleteVertexArrayOES(this.vao),this.vao=null)};var dr=function(t,e,r,i,n){var o=t.gl;this.program=o.createProgram();var a=r.defines();n&amp;&amp;a.push("#define OVERDRAW_INSPECTOR;");var s=a.concat(je.fragmentSource,e.fragmentSource).join("\n"),l=a.concat(je.vertexSource,e.vertexSource).join("\n"),u=o.createShader(o.FRAGMENT_SHADER);o.shaderSource(u,s),o.compileShader(u),o.attachShader(this.program,u);var c=o.createShader(o.VERTEX_SHADER);o.shaderSource(c,l),o.compileShader(c),o.attachShader(this.program,c);for(var p=r.layoutAttributes||[],h=0;h&lt;p.length;h++)o.bindAttribLocation(this.program,h,p[h].name);o.linkProgram(this.program),this.numAttributes=o.getProgramParameter(this.program,o.ACTIVE_ATTRIBUTES),this.attributes={};for(var d={},f=0;f&lt;this.numAttributes;f++){var m=o.getActiveAttrib(this.program,f);m&amp;&amp;(this.attributes[m.name]=o.getAttribLocation(this.program,m.name))}for(var y=o.getProgramParameter(this.program,o.ACTIVE_UNIFORMS),g=0;g&lt;y;g++){var v=o.getActiveUniform(this.program,g);v&amp;&amp;(d[v.name]=o.getUniformLocation(this.program,v.name))}this.fixedUniforms=i(t,d),this.binderUniforms=r.getUniforms(t,d)};function fr(e,r,i){var n=1/ce(i,1,r.transform.tileZoom),o=Math.pow(2,i.tileID.overscaledZ),a=i.tileSize*Math.pow(2,r.transform.tileZoom)/o,s=a*(i.tileID.canonical.x+i.tileID.wrap*o),l=a*i.tileID.canonical.y;return{u_image:0,u_texsize:i.imageAtlasTexture.size,u_scale:[t.browser.devicePixelRatio,n,e.fromScale,e.toScale],u_fade:e.t,u_pixel_coord_upper:[s&gt;&gt;16,l&gt;&gt;16],u_pixel_coord_lower:[65535&amp;s,65535&amp;l]}}dr.prototype.draw=function(t,e,r,i,n,o,a,s,l,u,c,p,h,d,f,m){var y,g=t.gl;for(var v in t.program.set(this.program),t.setDepthMode(r),t.setStencilMode(i),t.setColorMode(n),t.setCullFace(o),this.fixedUniforms)this.fixedUniforms[v].set(a[v]);d&amp;&amp;d.setUniforms(t,this.binderUniforms,p,{zoom:h});for(var _=(y={},y[g.LINES]=2,y[g.TRIANGLES]=3,y[g.LINE_STRIP]=1,y)[e],x=0,b=c.get();x&lt;b.length;x+=1){var w=b[x],S=w.vaos||(w.vaos={});(S[s]||(S[s]=new hr)).bind(t,this,l,d?d.getPaintVertexBuffers():[],u,w.vertexOffset,f,m),g.drawElements(e,w.primitiveLength*_,g.UNSIGNED_SHORT,w.primitiveOffset*_*2)}};var mr=function(e,r,i,n){var o=r.style.light,a=o.properties.get("position"),s=[a.x,a.y,a.z],l=t.create$1();"viewport"===o.properties.get("anchor")&amp;&amp;t.fromRotation(l,-r.transform.angle),t.transformMat3(s,s,l);var u=o.properties.get("color");return{u_matrix:e,u_lightpos:s,u_lightintensity:o.properties.get("intensity"),u_lightcolor:[u.r,u.g,u.b],u_vertical_gradient:+i,u_opacity:n}},yr=function(e,r,i,n,o,a,s){return t.extend(mr(e,r,i,n),fr(a,r,s),{u_height_factor:-Math.pow(2,o.overscaledZ)/s.tileSize/8})},gr=function(t){return{u_matrix:t}},vr=function(e,r,i,n){return t.extend(gr(e),fr(i,r,n))},_r=function(t,e){return{u_matrix:t,u_world:e}},xr=function(e,r,i,n,o){return t.extend(vr(e,r,i,n),{u_world:o})},br=function(e,r,i,n){var o,a,s=e.transform;if("map"===n.paint.get("circle-pitch-alignment")){var l=ce(i,1,s.zoom);o=!0,a=[l,l]}else o=!1,a=s.pixelsToGLUnits;return{u_camera_to_center_distance:s.cameraToCenterDistance,u_scale_with_map:+("map"===n.paint.get("circle-pitch-scale")),u_matrix:e.translatePosMatrix(r.posMatrix,i,n.paint.get("circle-translate"),n.paint.get("circle-translate-anchor")),u_pitch_with_map:+o,u_device_pixel_ratio:t.browser.devicePixelRatio,u_extrude_scale:a}},wr=function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_camera_to_center_distance:new t.Uniform1f(e,r.u_camera_to_center_distance),u_pixels_to_tile_units:new t.Uniform1f(e,r.u_pixels_to_tile_units),u_extrude_scale:new t.Uniform2f(e,r.u_extrude_scale),u_overscale_factor:new t.Uniform1f(e,r.u_overscale_factor)}},Sr=function(t,e,r){var i=ce(r,1,e.zoom),n=Math.pow(2,e.zoom-r.tileID.overscaledZ),o=r.tileID.overscaleFactor();return{u_matrix:t,u_camera_to_center_distance:e.cameraToCenterDistance,u_pixels_to_tile_units:i,u_extrude_scale:[e.pixelsToGLUnits[0]/(i*n),e.pixelsToGLUnits[1]/(i*n)],u_overscale_factor:o}},Er=function(t,e){return{u_matrix:t,u_color:e}},kr=function(t){return{u_matrix:t}},Tr=function(t,e,r,i){return{u_matrix:t,u_extrude_scale:ce(e,1,r),u_intensity:i}},Ar=function(e,r,i,n){var o=t.create();t.ortho(o,0,e.width,e.height,0,0,1);var a=e.context.gl;return{u_matrix:o,u_world:[a.drawingBufferWidth,a.drawingBufferHeight],u_image:i,u_color_ramp:n,u_opacity:r.paint.get("heatmap-opacity")}},Cr=function(t,e,r){var i=r.paint.get("hillshade-shadow-color"),n=r.paint.get("hillshade-highlight-color"),o=r.paint.get("hillshade-accent-color"),a=r.paint.get("hillshade-illumination-direction")*(Math.PI/180);"viewport"===r.paint.get("hillshade-illumination-anchor")&amp;&amp;(a-=t.transform.angle);var s=!t.options.moving;return{u_matrix:t.transform.calculatePosMatrix(e.tileID.toUnwrapped(),s),u_image:0,u_latrange:Pr(t,e.tileID),u_light:[r.paint.get("hillshade-exaggeration"),a],u_shadow:i,u_highlight:n,u_accent:o}},Ir=function(e,r){var i=e.dem.stride,n=t.create();return t.ortho(n,0,t.EXTENT,-t.EXTENT,0,0,1),t.translate(n,n,[0,-t.EXTENT,0]),{u_matrix:n,u_image:1,u_dimension:[i,i],u_zoom:e.tileID.overscaledZ,u_maxzoom:r}};function Pr(e,r){var i=Math.pow(2,r.canonical.z),n=r.canonical.y;return[new t.MercatorCoordinate(0,n/i).toLngLat().lat,new t.MercatorCoordinate(0,(n+1)/i).toLngLat().lat]}var Mr=function(e,r,i){var n=e.transform;return{u_matrix:Or(e,r,i),u_ratio:1/ce(r,1,n.zoom),u_device_pixel_ratio:t.browser.devicePixelRatio,u_units_to_pixels:[1/n.pixelsToGLUnits[0],1/n.pixelsToGLUnits[1]]}},zr=function(e,r,i){return t.extend(Mr(e,r,i),{u_image:0})},Dr=function(e,r,i,n){var o=e.transform,a=Rr(r,o);return{u_matrix:Or(e,r,i),u_texsize:r.imageAtlasTexture.size,u_ratio:1/ce(r,1,o.zoom),u_device_pixel_ratio:t.browser.devicePixelRatio,u_image:0,u_scale:[t.browser.devicePixelRatio,a,n.fromScale,n.toScale],u_fade:n.t,u_units_to_pixels:[1/o.pixelsToGLUnits[0],1/o.pixelsToGLUnits[1]]}},Lr=function(e,r,i,n,o){var a=e.transform,s=e.lineAtlas,l=Rr(r,a),u="round"===i.layout.get("line-cap"),c=s.getDash(n.from,u),p=s.getDash(n.to,u),h=c.width*o.fromScale,d=p.width*o.toScale;return t.extend(Mr(e,r,i),{u_patternscale_a:[l/h,-c.height/2],u_patternscale_b:[l/d,-p.height/2],u_sdfgamma:s.width/(256*Math.min(h,d)*t.browser.devicePixelRatio)/2,u_image:0,u_tex_y_a:c.y,u_tex_y_b:p.y,u_mix:o.t})};function Rr(t,e){return 1/ce(t,1,e.tileZoom)}function Or(t,e,r){return t.translatePosMatrix(e.tileID.posMatrix,e,r.paint.get("line-translate"),r.paint.get("line-translate-anchor"))}var Br=function(t,e,r,i,n){return{u_matrix:t,u_tl_parent:e,u_scale_parent:r,u_buffer_scale:1,u_fade_t:i.mix,u_opacity:i.opacity*n.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:n.paint.get("raster-brightness-min"),u_brightness_high:n.paint.get("raster-brightness-max"),u_saturation_factor:(a=n.paint.get("raster-saturation"),a&gt;0?1-1/(1.001-a):-a),u_contrast_factor:(o=n.paint.get("raster-contrast"),o&gt;0?1/(1-o):1+o),u_spin_weights:Fr(n.paint.get("raster-hue-rotate"))};var o,a};function Fr(t){t*=Math.PI/180;var e=Math.sin(t),r=Math.cos(t);return[(2*r+1)/3,(-Math.sqrt(3)*e-r+1)/3,(Math.sqrt(3)*e-r+1)/3]}var jr=function(t,e,r,i,n,o,a,s,l,u){var c=n.transform;return{u_is_size_zoom_constant:+("constant"===t||"source"===t),u_is_size_feature_constant:+("constant"===t||"camera"===t),u_size_t:e?e.uSizeT:0,u_size:e?e.uSize:0,u_camera_to_center_distance:c.cameraToCenterDistance,u_pitch:c.pitch/360*2*Math.PI,u_rotate_symbol:+r,u_aspect_ratio:c.width/c.height,u_fade_change:n.options.fadeDuration?n.symbolFadeChange:1,u_matrix:o,u_label_plane_matrix:a,u_coord_matrix:s,u_is_text:+l,u_pitch_with_map:+i,u_texsize:u,u_texture:0}},Ur=function(e,r,i,n,o,a,s,l,u,c,p){var h=o.transform;return t.extend(jr(e,r,i,n,o,a,s,l,u,c),{u_gamma_scale:n?Math.cos(h._pitch)*h.cameraToCenterDistance:1,u_device_pixel_ratio:t.browser.devicePixelRatio,u_is_halo:+p})},Nr=function(t,e,r){return{u_matrix:t,u_opacity:e,u_color:r}},Vr=function(e,r,i,n,o,a){return t.extend(function(t,e,r,i){var n=r.imageManager.getPattern(t.from),o=r.imageManager.getPattern(t.to),a=r.imageManager.getPixelSize(),s=a.width,l=a.height,u=Math.pow(2,i.tileID.overscaledZ),c=i.tileSize*Math.pow(2,r.transform.tileZoom)/u,p=c*(i.tileID.canonical.x+i.tileID.wrap*u),h=c*i.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:n.tl,u_pattern_br_a:n.br,u_pattern_tl_b:o.tl,u_pattern_br_b:o.br,u_texsize:[s,l],u_mix:e.t,u_pattern_size_a:n.displaySize,u_pattern_size_b:o.displaySize,u_scale_a:e.fromScale,u_scale_b:e.toScale,u_tile_units_to_pixels:1/ce(i,1,r.transform.tileZoom),u_pixel_coord_upper:[p&gt;&gt;16,h&gt;&gt;16],u_pixel_coord_lower:[65535&amp;p,65535&amp;h]}}(n,a,i,o),{u_matrix:e,u_opacity:r})},qr={fillExtrusion:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_lightpos:new t.Uniform3f(e,r.u_lightpos),u_lightintensity:new t.Uniform1f(e,r.u_lightintensity),u_lightcolor:new t.Uniform3f(e,r.u_lightcolor),u_vertical_gradient:new t.Uniform1f(e,r.u_vertical_gradient),u_opacity:new t.Uniform1f(e,r.u_opacity)}},fillExtrusionPattern:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_lightpos:new t.Uniform3f(e,r.u_lightpos),u_lightintensity:new t.Uniform1f(e,r.u_lightintensity),u_lightcolor:new t.Uniform3f(e,r.u_lightcolor),u_vertical_gradient:new t.Uniform1f(e,r.u_vertical_gradient),u_height_factor:new t.Uniform1f(e,r.u_height_factor),u_image:new t.Uniform1i(e,r.u_image),u_texsize:new t.Uniform2f(e,r.u_texsize),u_pixel_coord_upper:new t.Uniform2f(e,r.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,r.u_pixel_coord_lower),u_scale:new t.Uniform4f(e,r.u_scale),u_fade:new t.Uniform1f(e,r.u_fade),u_opacity:new t.Uniform1f(e,r.u_opacity)}},fill:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix)}},fillPattern:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_image:new t.Uniform1i(e,r.u_image),u_texsize:new t.Uniform2f(e,r.u_texsize),u_pixel_coord_upper:new t.Uniform2f(e,r.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,r.u_pixel_coord_lower),u_scale:new t.Uniform4f(e,r.u_scale),u_fade:new t.Uniform1f(e,r.u_fade)}},fillOutline:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_world:new t.Uniform2f(e,r.u_world)}},fillOutlinePattern:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_world:new t.Uniform2f(e,r.u_world),u_image:new t.Uniform1i(e,r.u_image),u_texsize:new t.Uniform2f(e,r.u_texsize),u_pixel_coord_upper:new t.Uniform2f(e,r.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,r.u_pixel_coord_lower),u_scale:new t.Uniform4f(e,r.u_scale),u_fade:new t.Uniform1f(e,r.u_fade)}},circle:function(e,r){return{u_camera_to_center_distance:new t.Uniform1f(e,r.u_camera_to_center_distance),u_scale_with_map:new t.Uniform1i(e,r.u_scale_with_map),u_pitch_with_map:new t.Uniform1i(e,r.u_pitch_with_map),u_extrude_scale:new t.Uniform2f(e,r.u_extrude_scale),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_matrix:new t.UniformMatrix4f(e,r.u_matrix)}},collisionBox:wr,collisionCircle:wr,debug:function(e,r){return{u_color:new t.UniformColor(e,r.u_color),u_matrix:new t.UniformMatrix4f(e,r.u_matrix)}},clippingMask:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix)}},heatmap:function(e,r){return{u_extrude_scale:new t.Uniform1f(e,r.u_extrude_scale),u_intensity:new t.Uniform1f(e,r.u_intensity),u_matrix:new t.UniformMatrix4f(e,r.u_matrix)}},heatmapTexture:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_world:new t.Uniform2f(e,r.u_world),u_image:new t.Uniform1i(e,r.u_image),u_color_ramp:new t.Uniform1i(e,r.u_color_ramp),u_opacity:new t.Uniform1f(e,r.u_opacity)}},hillshade:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_image:new t.Uniform1i(e,r.u_image),u_latrange:new t.Uniform2f(e,r.u_latrange),u_light:new t.Uniform2f(e,r.u_light),u_shadow:new t.UniformColor(e,r.u_shadow),u_highlight:new t.UniformColor(e,r.u_highlight),u_accent:new t.UniformColor(e,r.u_accent)}},hillshadePrepare:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_image:new t.Uniform1i(e,r.u_image),u_dimension:new t.Uniform2f(e,r.u_dimension),u_zoom:new t.Uniform1f(e,r.u_zoom),u_maxzoom:new t.Uniform1f(e,r.u_maxzoom)}},line:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_ratio:new t.Uniform1f(e,r.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_units_to_pixels:new t.Uniform2f(e,r.u_units_to_pixels)}},lineGradient:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_ratio:new t.Uniform1f(e,r.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_units_to_pixels:new t.Uniform2f(e,r.u_units_to_pixels),u_image:new t.Uniform1i(e,r.u_image)}},linePattern:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_texsize:new t.Uniform2f(e,r.u_texsize),u_ratio:new t.Uniform1f(e,r.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_image:new t.Uniform1i(e,r.u_image),u_units_to_pixels:new t.Uniform2f(e,r.u_units_to_pixels),u_scale:new t.Uniform4f(e,r.u_scale),u_fade:new t.Uniform1f(e,r.u_fade)}},lineSDF:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_ratio:new t.Uniform1f(e,r.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_units_to_pixels:new t.Uniform2f(e,r.u_units_to_pixels),u_patternscale_a:new t.Uniform2f(e,r.u_patternscale_a),u_patternscale_b:new t.Uniform2f(e,r.u_patternscale_b),u_sdfgamma:new t.Uniform1f(e,r.u_sdfgamma),u_image:new t.Uniform1i(e,r.u_image),u_tex_y_a:new t.Uniform1f(e,r.u_tex_y_a),u_tex_y_b:new t.Uniform1f(e,r.u_tex_y_b),u_mix:new t.Uniform1f(e,r.u_mix)}},raster:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_tl_parent:new t.Uniform2f(e,r.u_tl_parent),u_scale_parent:new t.Uniform1f(e,r.u_scale_parent),u_buffer_scale:new t.Uniform1f(e,r.u_buffer_scale),u_fade_t:new t.Uniform1f(e,r.u_fade_t),u_opacity:new t.Uniform1f(e,r.u_opacity),u_image0:new t.Uniform1i(e,r.u_image0),u_image1:new t.Uniform1i(e,r.u_image1),u_brightness_low:new t.Uniform1f(e,r.u_brightness_low),u_brightness_high:new t.Uniform1f(e,r.u_brightness_high),u_saturation_factor:new t.Uniform1f(e,r.u_saturation_factor),u_contrast_factor:new t.Uniform1f(e,r.u_contrast_factor),u_spin_weights:new t.Uniform3f(e,r.u_spin_weights)}},symbolIcon:function(e,r){return{u_is_size_zoom_constant:new t.Uniform1i(e,r.u_is_size_zoom_constant),u_is_size_feature_constant:new t.Uniform1i(e,r.u_is_size_feature_constant),u_size_t:new t.Uniform1f(e,r.u_size_t),u_size:new t.Uniform1f(e,r.u_size),u_camera_to_center_distance:new t.Uniform1f(e,r.u_camera_to_center_distance),u_pitch:new t.Uniform1f(e,r.u_pitch),u_rotate_symbol:new t.Uniform1i(e,r.u_rotate_symbol),u_aspect_ratio:new t.Uniform1f(e,r.u_aspect_ratio),u_fade_change:new t.Uniform1f(e,r.u_fade_change),u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_label_plane_matrix:new t.UniformMatrix4f(e,r.u_label_plane_matrix),u_coord_matrix:new t.UniformMatrix4f(e,r.u_coord_matrix),u_is_text:new t.Uniform1f(e,r.u_is_text),u_pitch_with_map:new t.Uniform1i(e,r.u_pitch_with_map),u_texsize:new t.Uniform2f(e,r.u_texsize),u_texture:new t.Uniform1i(e,r.u_texture)}},symbolSDF:function(e,r){return{u_is_size_zoom_constant:new t.Uniform1i(e,r.u_is_size_zoom_constant),u_is_size_feature_constant:new t.Uniform1i(e,r.u_is_size_feature_constant),u_size_t:new t.Uniform1f(e,r.u_size_t),u_size:new t.Uniform1f(e,r.u_size),u_camera_to_center_distance:new t.Uniform1f(e,r.u_camera_to_center_distance),u_pitch:new t.Uniform1f(e,r.u_pitch),u_rotate_symbol:new t.Uniform1i(e,r.u_rotate_symbol),u_aspect_ratio:new t.Uniform1f(e,r.u_aspect_ratio),u_fade_change:new t.Uniform1f(e,r.u_fade_change),u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_label_plane_matrix:new t.UniformMatrix4f(e,r.u_label_plane_matrix),u_coord_matrix:new t.UniformMatrix4f(e,r.u_coord_matrix),u_is_text:new t.Uniform1f(e,r.u_is_text),u_pitch_with_map:new t.Uniform1i(e,r.u_pitch_with_map),u_texsize:new t.Uniform2f(e,r.u_texsize),u_texture:new t.Uniform1i(e,r.u_texture),u_gamma_scale:new t.Uniform1f(e,r.u_gamma_scale),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_is_halo:new t.Uniform1f(e,r.u_is_halo)}},background:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_opacity:new t.Uniform1f(e,r.u_opacity),u_color:new t.UniformColor(e,r.u_color)}},backgroundPattern:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_opacity:new t.Uniform1f(e,r.u_opacity),u_image:new t.Uniform1i(e,r.u_image),u_pattern_tl_a:new t.Uniform2f(e,r.u_pattern_tl_a),u_pattern_br_a:new t.Uniform2f(e,r.u_pattern_br_a),u_pattern_tl_b:new t.Uniform2f(e,r.u_pattern_tl_b),u_pattern_br_b:new t.Uniform2f(e,r.u_pattern_br_b),u_texsize:new t.Uniform2f(e,r.u_texsize),u_mix:new t.Uniform1f(e,r.u_mix),u_pattern_size_a:new t.Uniform2f(e,r.u_pattern_size_a),u_pattern_size_b:new t.Uniform2f(e,r.u_pattern_size_b),u_scale_a:new t.Uniform1f(e,r.u_scale_a),u_scale_b:new t.Uniform1f(e,r.u_scale_b),u_pixel_coord_upper:new t.Uniform2f(e,r.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,r.u_pixel_coord_lower),u_tile_units_to_pixels:new t.Uniform1f(e,r.u_tile_units_to_pixels)}}};function Wr(e,r){for(var i=e.sort((function(t,e){return t.tileID.isLessThan(e.tileID)?-1:e.tileID.isLessThan(t.tileID)?1:0})),n=0;n&lt;i.length;n++){var o={},a=i[n],s=i.slice(n+1);Gr(a.tileID.wrapped(),a.tileID,s,new t.OverscaledTileID(0,a.tileID.wrap+1,0,0,0),o),a.setMask(o,r)}}function Gr(e,r,i,n,o){for(var a=0;a&lt;i.length;a++){var s=i[a];if(n.isLessThan(s.tileID))break;if(r.key===s.tileID.key)return;if(s.tileID.isChildOf(r)){for(var l=r.children(1/0),u=0;u&lt;l.length;u++)Gr(e,l[u],i.slice(a),n,o);return}}var c=r.overscaledZ-e.overscaledZ,p=new t.CanonicalTileID(c,r.canonical.x-(e.canonical.x&lt;&lt;c),r.canonical.y-(e.canonical.y&lt;&lt;c));o[p.key]=o[p.key]||p}function Hr(t,e,r,i,n){for(var o=t.context,a=o.gl,s=n?t.useProgram("collisionCircle"):t.useProgram("collisionBox"),l=0;l&lt;i.length;l++){var u=i[l],c=e.getTile(u),p=c.getBucket(r);if(p){var h=n?p.collisionCircle:p.collisionBox;h&amp;&amp;s.draw(o,n?a.TRIANGLES:a.LINES,kt.disabled,Tt.disabled,t.colorModeForRenderPass(),Ct.disabled,Sr(u.posMatrix,t.transform,c),r.id,h.layoutVertexBuffer,h.indexBuffer,h.segments,null,t.transform.zoom,null,null,h.collisionVertexBuffer)}}}var Zr=t.identity(new Float32Array(16));function Xr(e,r,i,n,o,a){var s=t.getAnchorAlignment(e),l=-(s.horizontalAlign-.5)*r,u=-(s.verticalAlign-.5)*i,c=t.evaluateRadialOffset(e,n);return new t.Point((l/o+c[0])*a,(u/o+c[1])*a)}function $r(e,r,i,n,o,a,s,l,u,c){var p=e.text.placedSymbolArray,h=e.text.dynamicLayoutVertexArray;h.clear();for(var d=0;d&lt;p.length;d++){var f=p.get(d),m=e.allowVerticalPlacement&amp;&amp;!f.placedOrientation,y=f.hidden||!f.crossTileID||m?null:n[f.crossTileID];if(y){var g=new t.Point(f.anchorX,f.anchorY),v=Kt(g,i?l:s),_=.5+a.cameraToCenterDistance/v.signedDistanceFromCamera*.5,x=o.evaluateSizeForFeature(e.textSizeData,c,f)*_/t.ONE_EM;i&amp;&amp;(x*=e.tilePixelRatio/u);for(var b=y.width,w=y.height,S=y.radialOffset,E=y.textBoxScale,k=Xr(y.anchor,b,w,S,E,x),T=i?Kt(g.add(k),s).point:v.point.add(r?k.rotate(-a.angle):k),A=e.allowVerticalPlacement&amp;&amp;f.placedOrientation===t.WritingMode.vertical?Math.PI/2:0,C=0;C&lt;f.numGlyphs;C++)t.addDynamicAttributes(h,T,A)}else ae(f.numGlyphs,h)}e.text.dynamicLayoutVertexBuffer.updateData(h)}function Yr(e){var r=e.text.placedSymbolArray,i=e.text.dynamicLayoutVertexArray;i.clear();for(var n=0;n&lt;r.length;n++){var o=r.get(n);if(o.hidden||!o.placedOrientation)ae(o.numGlyphs,i);else for(var a=new t.Point(o.anchorX,o.anchorY),s=e.allowVerticalPlacement&amp;&amp;o.placedOrientation===t.WritingMode.vertical?Math.PI/2:0,l=0;l&lt;o.numGlyphs;l++)t.addDynamicAttributes(i,a,s)}e.text.dynamicLayoutVertexBuffer.updateData(i)}function Kr(e,r,i,n,o,a,s,l,u,c,p,h,d){for(var f,m,y=e.context,g=y.gl,v=e.transform,_="map"===l,x="map"===u,b=_&amp;&amp;"point"!==i.layout.get("symbol-placement"),w=_&amp;&amp;!x&amp;&amp;!b,S=void 0!==i.layout.get("symbol-sort-key").constantOr(1),E=e.depthModeForSublayer(0,kt.ReadOnly),k=i.layout.get("text-variable-anchor"),T=[],A=0,C=n;A&lt;C.length;A+=1){var I=C[A],P=r.getTile(I),M=P.getBucket(i);if(M){var z=o?M.text:M.icon;if(z&amp;&amp;z.segments.get().length){var D=z.programConfigurations.get(i.id),L=o||M.sdfIcons,R=o?M.textSizeData:M.iconSizeData;f||(f=e.useProgram(L?"symbolSDF":"symbolIcon",D),m=t.evaluateSizeForZoom(R,v.zoom)),y.activeTexture.set(g.TEXTURE0);var O=void 0,B=void 0,F=void 0;if(o)B=P.glyphAtlasTexture,F=g.LINEAR,O=P.glyphAtlasTexture.size;else{var j=1!==i.layout.get("icon-size").constantOr(0)||M.iconsNeedLinear,U=x||0!==v.pitch;B=P.imageAtlasTexture,F=L||e.options.rotating||e.options.zooming||j||U?g.LINEAR:g.NEAREST,O=P.imageAtlasTexture.size}var N=ce(P,1,e.transform.zoom),V=$t(I.posMatrix,x,_,e.transform,N),q=Yt(I.posMatrix,x,_,e.transform,N);if(b)Qt(M,I.posMatrix,e,o,V,q,x,c);else if(o&amp;&amp;m&amp;&amp;k){var W=Math.pow(2,v.zoom-P.tileID.overscaledZ);$r(M,_,x,d,t.symbolSize,v,V,I.posMatrix,W,m)}else o&amp;&amp;m&amp;&amp;M.allowVerticalPlacement&amp;&amp;Yr(M);var G=e.translatePosMatrix(I.posMatrix,P,a,s),H=b||o&amp;&amp;k?Zr:V,Z=e.translatePosMatrix(q,P,a,s,!0),X=L&amp;&amp;0!==i.paint.get(o?"text-halo-width":"icon-halo-width").constantOr(1),$={program:f,buffers:z,uniformValues:L?Ur(R.kind,m,w,x,e,G,H,Z,o,O,!0):jr(R.kind,m,w,x,e,G,H,Z,o,O),atlasTexture:B,atlasInterpolation:F,isSDF:L,hasHalo:X};if(S)for(var Y=0,K=z.segments.get();Y&lt;K.length;Y+=1){var J=K[Y];T.push({segments:new t.SegmentVector([J]),sortKey:J.sortKey,state:$})}else T.push({segments:z.segments,sortKey:0,state:$})}}}S&amp;&amp;T.sort((function(t,e){return t.sortKey-e.sortKey}));for(var Q=0,tt=T;Q&lt;tt.length;Q+=1){var et=tt[Q],rt=et.state;if(rt.atlasTexture.bind(rt.atlasInterpolation,g.CLAMP_TO_EDGE),rt.isSDF){var it=rt.uniformValues;rt.hasHalo&amp;&amp;(it.u_is_halo=1,Jr(rt.buffers,et.segments,i,e,rt.program,E,p,h,it)),it.u_is_halo=0}Jr(rt.buffers,et.segments,i,e,rt.program,E,p,h,rt.uniformValues)}}function Jr(t,e,r,i,n,o,a,s,l){var u=i.context,c=u.gl;n.draw(u,c.TRIANGLES,o,a,s,Ct.disabled,l,r.id,t.layoutVertexBuffer,t.indexBuffer,e,r.paint,i.transform.zoom,t.programConfigurations.get(r.id),t.dynamicLayoutVertexBuffer,t.opacityVertexBuffer)}function Qr(t,e,r,i,n,o,a){var s,l,u,c,p,h=t.context.gl,d=r.paint.get("fill-pattern"),f=d&amp;&amp;d.constantOr(1),m=r.getCrossfadeParameters();a?(l=f&amp;&amp;!r.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline",s=h.LINES):(l=f?"fillPattern":"fill",s=h.TRIANGLES);for(var y=0,g=i;y&lt;g.length;y+=1){var v=g[y],_=e.getTile(v);if(!f||_.patternsLoaded()){var x=_.getBucket(r);if(x){var b=x.programConfigurations.get(r.id),w=t.useProgram(l,b);f&amp;&amp;(t.context.activeTexture.set(h.TEXTURE0),_.imageAtlasTexture.bind(h.LINEAR,h.CLAMP_TO_EDGE),b.updatePatternPaintBuffers(m));var S=d.constantOr(null);if(S&amp;&amp;_.imageAtlas){var E=_.imageAtlas.patternPositions[S.to],k=_.imageAtlas.patternPositions[S.from];E&amp;&amp;k&amp;&amp;b.setConstantPatternPositions(E,k)}var T=t.translatePosMatrix(v.posMatrix,_,r.paint.get("fill-translate"),r.paint.get("fill-translate-anchor"));if(a){c=x.indexBuffer2,p=x.segments2;var A=[h.drawingBufferWidth,h.drawingBufferHeight];u="fillOutlinePattern"===l&amp;&amp;f?xr(T,t,m,_,A):_r(T,A)}else c=x.indexBuffer,p=x.segments,u=f?vr(T,t,m,_):gr(T);w.draw(t.context,s,n,t.stencilModeForClipping(v),o,Ct.disabled,u,r.id,x.layoutVertexBuffer,c,p,r.paint,t.transform.zoom,b)}}}}function ti(t,e,r,i,n,o,a){for(var s=t.context,l=s.gl,u=r.paint.get("fill-extrusion-pattern"),c=u.constantOr(1),p=r.getCrossfadeParameters(),h=r.paint.get("fill-extrusion-opacity"),d=0,f=i;d&lt;f.length;d+=1){var m=f[d],y=e.getTile(m),g=y.getBucket(r);if(g){var v=g.programConfigurations.get(r.id),_=t.useProgram(c?"fillExtrusionPattern":"fillExtrusion",v);c&amp;&amp;(t.context.activeTexture.set(l.TEXTURE0),y.imageAtlasTexture.bind(l.LINEAR,l.CLAMP_TO_EDGE),v.updatePatternPaintBuffers(p));var x=u.constantOr(null);if(x&amp;&amp;y.imageAtlas){var b=y.imageAtlas.patternPositions[x.to],w=y.imageAtlas.patternPositions[x.from];b&amp;&amp;w&amp;&amp;v.setConstantPatternPositions(b,w)}var S=t.translatePosMatrix(m.posMatrix,y,r.paint.get("fill-extrusion-translate"),r.paint.get("fill-extrusion-translate-anchor")),E=r.paint.get("fill-extrusion-vertical-gradient"),k=c?yr(S,t,E,h,m,p,y):mr(S,t,E,h);_.draw(s,s.gl.TRIANGLES,n,o,a,Ct.backCCW,k,r.id,g.layoutVertexBuffer,g.indexBuffer,g.segments,r.paint,t.transform.zoom,v)}}}function ei(t,e,r,i,n,o){var a=t.context,s=a.gl,l=e.fbo;if(l){var u=t.useProgram("hillshade");a.activeTexture.set(s.TEXTURE0),s.bindTexture(s.TEXTURE_2D,l.colorAttachment.get());var c=Cr(t,e,r);e.maskedBoundsBuffer&amp;&amp;e.maskedIndexBuffer&amp;&amp;e.segments?u.draw(a,s.TRIANGLES,i,n,o,Ct.disabled,c,r.id,e.maskedBoundsBuffer,e.maskedIndexBuffer,e.segments):u.draw(a,s.TRIANGLES,i,n,o,Ct.disabled,c,r.id,t.rasterBoundsBuffer,t.quadTriangleIndexBuffer,t.rasterBoundsSegments)}}function ri(e,r,i,n,o,a,s){var l=e.context,u=l.gl;if(r.dem&amp;&amp;r.dem.data){var c=r.dem.dim,p=r.dem.stride,h=r.dem.getPixels();if(l.activeTexture.set(u.TEXTURE1),l.pixelStoreUnpackPremultiplyAlpha.set(!1),r.demTexture=r.demTexture||e.getTileTexture(p),r.demTexture){var d=r.demTexture;d.update(h,{premultiply:!1}),d.bind(u.NEAREST,u.CLAMP_TO_EDGE)}else r.demTexture=new t.Texture(l,h,u.RGBA,{premultiply:!1}),r.demTexture.bind(u.NEAREST,u.CLAMP_TO_EDGE);l.activeTexture.set(u.TEXTURE0);var f=r.fbo;if(!f){var m=new t.Texture(l,{width:c,height:c,data:null},u.RGBA);m.bind(u.LINEAR,u.CLAMP_TO_EDGE),(f=r.fbo=l.createFramebuffer(c,c)).colorAttachment.set(m.texture)}l.bindFramebuffer.set(f.framebuffer),l.viewport.set([0,0,c,c]),e.useProgram("hillshadePrepare").draw(l,u.TRIANGLES,o,a,s,Ct.disabled,Ir(r,n),i.id,e.rasterBoundsBuffer,e.quadTriangleIndexBuffer,e.rasterBoundsSegments),r.needsHillshadePrepare=!1}}function ii(e,r,i,n,o){var a=n.paint.get("raster-fade-duration");if(a&gt;0){var s=t.browser.now(),l=(s-e.timeAdded)/a,u=r?(s-r.timeAdded)/a:-1,c=i.getSource(),p=o.coveringZoomLevel({tileSize:c.tileSize,roundZoom:c.roundZoom}),h=!r||Math.abs(r.tileID.overscaledZ-p)&gt;Math.abs(e.tileID.overscaledZ-p),d=h&amp;&amp;e.refreshedUponExpiration?1:t.clamp(h?l:1-u,0,1);return e.refreshedUponExpiration&amp;&amp;l&gt;=1&amp;&amp;(e.refreshedUponExpiration=!1),r?{opacity:1,mix:1-d}:{opacity:d,mix:0}}return{opacity:1,mix:0}}function ni(e,r,i){var n=e.context,o=n.gl,a=i.posMatrix,s=e.useProgram("debug"),l=kt.disabled,u=Tt.disabled,c=e.colorModeForRenderPass(),p="$debug";s.draw(n,o.LINE_STRIP,l,u,c,Ct.disabled,Er(a,t.Color.red),p,e.debugBuffer,e.tileBorderIndexBuffer,e.debugSegments);for(var h=r.getTileByID(i.key).latestRawTileData,d=h&amp;&amp;h.byteLength||0,f=Math.floor(d/1024),m=r.getTile(i).tileSize,y=512/Math.min(m,512),g=function(t,e,r,i){i=i||1;var n,o,a,s,l,u,c,p,h=[];for(n=0,o=t.length;n&lt;o;n++)if(l=oi[t[n]]){for(p=null,a=0,s=l[1].length;a&lt;s;a+=2)-1===l[1][a]&amp;&amp;-1===l[1][a+1]?p=null:(u=e+l[1][a]*i,c=r-l[1][a+1]*i,p&amp;&amp;h.push(p.x,p.y,u,c),p={x:u,y:c});e+=l[0]*i}return h}(i.toString()+" "+f+"kb",50,200*y,5*y),v=new t.StructArrayLayout2i4,_=new t.StructArrayLayout2ui4,x=0;x&lt;g.length;x+=2)v.emplaceBack(g[x],g[x+1]),_.emplaceBack(x,x+1);for(var b=n.createVertexBuffer(v,Fe.members),w=n.createIndexBuffer(_),S=t.SegmentVector.simpleSegment(0,0,v.length/2,v.length/2),E=t.EXTENT/(Math.pow(2,e.transform.zoom-i.overscaledZ)*m*y),k=[],T=-1;T&lt;=1;T++)for(var A=-1;A&lt;=1&amp;&amp;(0!==T||0!==A);A++)k.push([T,A]);for(var C=0;C&lt;k.length;C++){var I=k[C];s.draw(n,o.LINES,l,u,c,Ct.disabled,Er(t.translate([],a,[E*I[0],E*I[1],0]),t.Color.white),p,b,w,S)}s.draw(n,o.LINES,l,u,c,Ct.disabled,Er(a,t.Color.black),p,b,w,S)}var oi={" ":[16,[]],"!":[10,[5,21,5,7,-1,-1,5,2,4,1,5,0,6,1,5,2]],'"':[16,[4,21,4,14,-1,-1,12,21,12,14]],"#":[21,[11,25,4,-7,-1,-1,17,25,10,-7,-1,-1,4,12,18,12,-1,-1,3,6,17,6]],$:[20,[8,25,8,-4,-1,-1,12,25,12,-4,-1,-1,17,18,15,20,12,21,8,21,5,20,3,18,3,16,4,14,5,13,7,12,13,10,15,9,16,8,17,6,17,3,15,1,12,0,8,0,5,1,3,3]],"%":[24,[21,21,3,0,-1,-1,8,21,10,19,10,17,9,15,7,14,5,14,3,16,3,18,4,20,6,21,8,21,10,20,13,19,16,19,19,20,21,21,-1,-1,17,7,15,6,14,4,14,2,16,0,18,0,20,1,21,3,21,5,19,7,17,7]],"&amp;":[26,[23,12,23,13,22,14,21,14,20,13,19,11,17,6,15,3,13,1,11,0,7,0,5,1,4,2,3,4,3,6,4,8,5,9,12,13,13,14,14,16,14,18,13,20,11,21,9,20,8,18,8,16,9,13,11,10,16,3,18,1,20,0,22,0,23,1,23,2]],"'":[10,[5,19,4,20,5,21,6,20,6,18,5,16,4,15]],"(":[14,[11,25,9,23,7,20,5,16,4,11,4,7,5,2,7,-2,9,-5,11,-7]],")":[14,[3,25,5,23,7,20,9,16,10,11,10,7,9,2,7,-2,5,-5,3,-7]],"*":[16,[8,21,8,9,-1,-1,3,18,13,12,-1,-1,13,18,3,12]],"+":[26,[13,18,13,0,-1,-1,4,9,22,9]],",":[10,[6,1,5,0,4,1,5,2,6,1,6,-1,5,-3,4,-4]],"-":[26,[4,9,22,9]],".":[10,[5,2,4,1,5,0,6,1,5,2]],"/":[22,[20,25,2,-7]],0:[20,[9,21,6,20,4,17,3,12,3,9,4,4,6,1,9,0,11,0,14,1,16,4,17,9,17,12,16,17,14,20,11,21,9,21]],1:[20,[6,17,8,18,11,21,11,0]],2:[20,[4,16,4,17,5,19,6,20,8,21,12,21,14,20,15,19,16,17,16,15,15,13,13,10,3,0,17,0]],3:[20,[5,21,16,21,10,13,13,13,15,12,16,11,17,8,17,6,16,3,14,1,11,0,8,0,5,1,4,2,3,4]],4:[20,[13,21,3,7,18,7,-1,-1,13,21,13,0]],5:[20,[15,21,5,21,4,12,5,13,8,14,11,14,14,13,16,11,17,8,17,6,16,3,14,1,11,0,8,0,5,1,4,2,3,4]],6:[20,[16,18,15,20,12,21,10,21,7,20,5,17,4,12,4,7,5,3,7,1,10,0,11,0,14,1,16,3,17,6,17,7,16,10,14,12,11,13,10,13,7,12,5,10,4,7]],7:[20,[17,21,7,0,-1,-1,3,21,17,21]],8:[20,[8,21,5,20,4,18,4,16,5,14,7,13,11,12,14,11,16,9,17,7,17,4,16,2,15,1,12,0,8,0,5,1,4,2,3,4,3,7,4,9,6,11,9,12,13,13,15,14,16,16,16,18,15,20,12,21,8,21]],9:[20,[16,14,15,11,13,9,10,8,9,8,6,9,4,11,3,14,3,15,4,18,6,20,9,21,10,21,13,20,15,18,16,14,16,9,15,4,13,1,10,0,8,0,5,1,4,3]],":":[10,[5,14,4,13,5,12,6,13,5,14,-1,-1,5,2,4,1,5,0,6,1,5,2]],";":[10,[5,14,4,13,5,12,6,13,5,14,-1,-1,6,1,5,0,4,1,5,2,6,1,6,-1,5,-3,4,-4]],"&lt;":[24,[20,18,4,9,20,0]],"=":[26,[4,12,22,12,-1,-1,4,6,22,6]],"&gt;":[24,[4,18,20,9,4,0]],"?":[18,[3,16,3,17,4,19,5,20,7,21,11,21,13,20,14,19,15,17,15,15,14,13,13,12,9,10,9,7,-1,-1,9,2,8,1,9,0,10,1,9,2]],"@":[27,[18,13,17,15,15,16,12,16,10,15,9,14,8,11,8,8,9,6,11,5,14,5,16,6,17,8,-1,-1,12,16,10,14,9,11,9,8,10,6,11,5,-1,-1,18,16,17,8,17,6,19,5,21,5,23,7,24,10,24,12,23,15,22,17,20,19,18,20,15,21,12,21,9,20,7,19,5,17,4,15,3,12,3,9,4,6,5,4,7,2,9,1,12,0,15,0,18,1,20,2,21,3,-1,-1,19,16,18,8,18,6,19,5]],A:[18,[9,21,1,0,-1,-1,9,21,17,0,-1,-1,4,7,14,7]],B:[21,[4,21,4,0,-1,-1,4,21,13,21,16,20,17,19,18,17,18,15,17,13,16,12,13,11,-1,-1,4,11,13,11,16,10,17,9,18,7,18,4,17,2,16,1,13,0,4,0]],C:[21,[18,16,17,18,15,20,13,21,9,21,7,20,5,18,4,16,3,13,3,8,4,5,5,3,7,1,9,0,13,0,15,1,17,3,18,5]],D:[21,[4,21,4,0,-1,-1,4,21,11,21,14,20,16,18,17,16,18,13,18,8,17,5,16,3,14,1,11,0,4,0]],E:[19,[4,21,4,0,-1,-1,4,21,17,21,-1,-1,4,11,12,11,-1,-1,4,0,17,0]],F:[18,[4,21,4,0,-1,-1,4,21,17,21,-1,-1,4,11,12,11]],G:[21,[18,16,17,18,15,20,13,21,9,21,7,20,5,18,4,16,3,13,3,8,4,5,5,3,7,1,9,0,13,0,15,1,17,3,18,5,18,8,-1,-1,13,8,18,8]],H:[22,[4,21,4,0,-1,-1,18,21,18,0,-1,-1,4,11,18,11]],I:[8,[4,21,4,0]],J:[16,[12,21,12,5,11,2,10,1,8,0,6,0,4,1,3,2,2,5,2,7]],K:[21,[4,21,4,0,-1,-1,18,21,4,7,-1,-1,9,12,18,0]],L:[17,[4,21,4,0,-1,-1,4,0,16,0]],M:[24,[4,21,4,0,-1,-1,4,21,12,0,-1,-1,20,21,12,0,-1,-1,20,21,20,0]],N:[22,[4,21,4,0,-1,-1,4,21,18,0,-1,-1,18,21,18,0]],O:[22,[9,21,7,20,5,18,4,16,3,13,3,8,4,5,5,3,7,1,9,0,13,0,15,1,17,3,18,5,19,8,19,13,18,16,17,18,15,20,13,21,9,21]],P:[21,[4,21,4,0,-1,-1,4,21,13,21,16,20,17,19,18,17,18,14,17,12,16,11,13,10,4,10]],Q:[22,[9,21,7,20,5,18,4,16,3,13,3,8,4,5,5,3,7,1,9,0,13,0,15,1,17,3,18,5,19,8,19,13,18,16,17,18,15,20,13,21,9,21,-1,-1,12,4,18,-2]],R:[21,[4,21,4,0,-1,-1,4,21,13,21,16,20,17,19,18,17,18,15,17,13,16,12,13,11,4,11,-1,-1,11,11,18,0]],S:[20,[17,18,15,20,12,21,8,21,5,20,3,18,3,16,4,14,5,13,7,12,13,10,15,9,16,8,17,6,17,3,15,1,12,0,8,0,5,1,3,3]],T:[16,[8,21,8,0,-1,-1,1,21,15,21]],U:[22,[4,21,4,6,5,3,7,1,10,0,12,0,15,1,17,3,18,6,18,21]],V:[18,[1,21,9,0,-1,-1,17,21,9,0]],W:[24,[2,21,7,0,-1,-1,12,21,7,0,-1,-1,12,21,17,0,-1,-1,22,21,17,0]],X:[20,[3,21,17,0,-1,-1,17,21,3,0]],Y:[18,[1,21,9,11,9,0,-1,-1,17,21,9,11]],Z:[20,[17,21,3,0,-1,-1,3,21,17,21,-1,-1,3,0,17,0]],"[":[14,[4,25,4,-7,-1,-1,5,25,5,-7,-1,-1,4,25,11,25,-1,-1,4,-7,11,-7]],"\\":[14,[0,21,14,-3]],"]":[14,[9,25,9,-7,-1,-1,10,25,10,-7,-1,-1,3,25,10,25,-1,-1,3,-7,10,-7]],"^":[16,[6,15,8,18,10,15,-1,-1,3,12,8,17,13,12,-1,-1,8,17,8,0]],_:[16,[0,-2,16,-2]],"`":[10,[6,21,5,20,4,18,4,16,5,15,6,16,5,17]],a:[19,[15,14,15,0,-1,-1,15,11,13,13,11,14,8,14,6,13,4,11,3,8,3,6,4,3,6,1,8,0,11,0,13,1,15,3]],b:[19,[4,21,4,0,-1,-1,4,11,6,13,8,14,11,14,13,13,15,11,16,8,16,6,15,3,13,1,11,0,8,0,6,1,4,3]],c:[18,[15,11,13,13,11,14,8,14,6,13,4,11,3,8,3,6,4,3,6,1,8,0,11,0,13,1,15,3]],d:[19,[15,21,15,0,-1,-1,15,11,13,13,11,14,8,14,6,13,4,11,3,8,3,6,4,3,6,1,8,0,11,0,13,1,15,3]],e:[18,[3,8,15,8,15,10,14,12,13,13,11,14,8,14,6,13,4,11,3,8,3,6,4,3,6,1,8,0,11,0,13,1,15,3]],f:[12,[10,21,8,21,6,20,5,17,5,0,-1,-1,2,14,9,14]],g:[19,[15,14,15,-2,14,-5,13,-6,11,-7,8,-7,6,-6,-1,-1,15,11,13,13,11,14,8,14,6,13,4,11,3,8,3,6,4,3,6,1,8,0,11,0,13,1,15,3]],h:[19,[4,21,4,0,-1,-1,4,10,7,13,9,14,12,14,14,13,15,10,15,0]],i:[8,[3,21,4,20,5,21,4,22,3,21,-1,-1,4,14,4,0]],j:[10,[5,21,6,20,7,21,6,22,5,21,-1,-1,6,14,6,-3,5,-6,3,-7,1,-7]],k:[17,[4,21,4,0,-1,-1,14,14,4,4,-1,-1,8,8,15,0]],l:[8,[4,21,4,0]],m:[30,[4,14,4,0,-1,-1,4,10,7,13,9,14,12,14,14,13,15,10,15,0,-1,-1,15,10,18,13,20,14,23,14,25,13,26,10,26,0]],n:[19,[4,14,4,0,-1,-1,4,10,7,13,9,14,12,14,14,13,15,10,15,0]],o:[19,[8,14,6,13,4,11,3,8,3,6,4,3,6,1,8,0,11,0,13,1,15,3,16,6,16,8,15,11,13,13,11,14,8,14]],p:[19,[4,14,4,-7,-1,-1,4,11,6,13,8,14,11,14,13,13,15,11,16,8,16,6,15,3,13,1,11,0,8,0,6,1,4,3]],q:[19,[15,14,15,-7,-1,-1,15,11,13,13,11,14,8,14,6,13,4,11,3,8,3,6,4,3,6,1,8,0,11,0,13,1,15,3]],r:[13,[4,14,4,0,-1,-1,4,8,5,11,7,13,9,14,12,14]],s:[17,[14,11,13,13,10,14,7,14,4,13,3,11,4,9,6,8,11,7,13,6,14,4,14,3,13,1,10,0,7,0,4,1,3,3]],t:[12,[5,21,5,4,6,1,8,0,10,0,-1,-1,2,14,9,14]],u:[19,[4,14,4,4,5,1,7,0,10,0,12,1,15,4,-1,-1,15,14,15,0]],v:[16,[2,14,8,0,-1,-1,14,14,8,0]],w:[22,[3,14,7,0,-1,-1,11,14,7,0,-1,-1,11,14,15,0,-1,-1,19,14,15,0]],x:[17,[3,14,14,0,-1,-1,14,14,3,0]],y:[16,[2,14,8,0,-1,-1,14,14,8,0,6,-4,4,-6,2,-7,1,-7]],z:[17,[14,14,3,0,-1,-1,3,14,14,14,-1,-1,3,0,14,0]],"{":[14,[9,25,7,24,6,23,5,21,5,19,6,17,7,16,8,14,8,12,6,10,-1,-1,7,24,6,22,6,20,7,18,8,17,9,15,9,13,8,11,4,9,8,7,9,5,9,3,8,1,7,0,6,-2,6,-4,7,-6,-1,-1,6,8,8,6,8,4,7,2,6,1,5,-1,5,-3,6,-5,7,-6,9,-7]],"|":[8,[4,25,4,-7]],"}":[14,[5,25,7,24,8,23,9,21,9,19,8,17,7,16,6,14,6,12,8,10,-1,-1,7,24,8,22,8,20,7,18,6,17,5,15,5,13,6,11,10,9,6,7,5,5,5,3,6,1,7,0,8,-2,8,-4,7,-6,-1,-1,8,8,6,6,6,4,7,2,8,1,9,-1,9,-3,8,-5,7,-6,5,-7]],"~":[24,[3,6,3,8,4,11,6,12,8,12,10,11,14,8,16,7,18,7,20,8,21,10,-1,-1,3,8,4,10,6,11,8,11,10,10,14,7,16,6,18,6,20,7,21,10,21,12]]},ai={symbol:function(t,e,r,i,n){if("translucent"===t.renderPass){var o=Tt.disabled,a=t.colorModeForRenderPass();0!==r.paint.get("icon-opacity").constantOr(1)&amp;&amp;Kr(t,e,r,i,!1,r.paint.get("icon-translate"),r.paint.get("icon-translate-anchor"),r.layout.get("icon-rotation-alignment"),r.layout.get("icon-pitch-alignment"),r.layout.get("icon-keep-upright"),o,a,n),0!==r.paint.get("text-opacity").constantOr(1)&amp;&amp;Kr(t,e,r,i,!0,r.paint.get("text-translate"),r.paint.get("text-translate-anchor"),r.layout.get("text-rotation-alignment"),r.layout.get("text-pitch-alignment"),r.layout.get("text-keep-upright"),o,a,n),e.map.showCollisionBoxes&amp;&amp;function(t,e,r,i){Hr(t,e,r,i,!1),Hr(t,e,r,i,!0)}(t,e,r,i)}},circle:function(e,r,i,n){if("translucent"===e.renderPass){var o=i.paint.get("circle-opacity"),a=i.paint.get("circle-stroke-width"),s=i.paint.get("circle-stroke-opacity"),l=void 0!==i.layout.get("circle-sort-key").constantOr(1);if(0!==o.constantOr(1)||0!==a.constantOr(1)&amp;&amp;0!==s.constantOr(1)){for(var u=e.context,c=u.gl,p=e.depthModeForSublayer(0,kt.ReadOnly),h=Tt.disabled,d=e.colorModeForRenderPass(),f=[],m=0;m&lt;n.length;m++){var y=n[m],g=r.getTile(y),v=g.getBucket(i);if(v){var _=v.programConfigurations.get(i.id),x={programConfiguration:_,program:e.useProgram("circle",_),layoutVertexBuffer:v.layoutVertexBuffer,indexBuffer:v.indexBuffer,uniformValues:br(e,y,g,i)};if(l)for(var b=0,w=v.segments.get();b&lt;w.length;b+=1){var S=w[b];f.push({segments:new t.SegmentVector([S]),sortKey:S.sortKey,state:x})}else f.push({segments:v.segments,sortKey:0,state:x})}}l&amp;&amp;f.sort((function(t,e){return t.sortKey-e.sortKey}));for(var E=0,k=f;E&lt;k.length;E+=1){var T=k[E],A=T.state,C=A.programConfiguration,I=A.program,P=A.layoutVertexBuffer,M=A.indexBuffer,z=A.uniformValues,D=T.segments;I.draw(u,c.TRIANGLES,p,h,d,Ct.disabled,z,i.id,P,M,D,i.paint,e.transform.zoom,C)}}}},heatmap:function(e,r,i,n){if(0!==i.paint.get("heatmap-opacity"))if("offscreen"===e.renderPass){var o=e.context,a=o.gl,s=e.depthModeForSublayer(0,kt.ReadOnly),l=Tt.disabled,u=new At([a.ONE,a.ONE],t.Color.transparent,[!0,!0,!0,!0]);!function(t,e,r){var i=t.gl;t.activeTexture.set(i.TEXTURE1),t.viewport.set([0,0,e.width/4,e.height/4]);var n=r.heatmapFbo;if(n)i.bindTexture(i.TEXTURE_2D,n.colorAttachment.get()),t.bindFramebuffer.set(n.framebuffer);else{var o=i.createTexture();i.bindTexture(i.TEXTURE_2D,o),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,i.CLAMP_TO_EDGE),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,i.CLAMP_TO_EDGE),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MIN_FILTER,i.LINEAR),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MAG_FILTER,i.LINEAR),n=r.heatmapFbo=t.createFramebuffer(e.width/4,e.height/4),function t(e,r,i,n){var o=e.gl;o.texImage2D(o.TEXTURE_2D,0,o.RGBA,r.width/4,r.height/4,0,o.RGBA,e.extTextureHalfFloat?e.extTextureHalfFloat.HALF_FLOAT_OES:o.UNSIGNED_BYTE,null),n.colorAttachment.set(i),e.extTextureHalfFloat&amp;&amp;o.checkFramebufferStatus(o.FRAMEBUFFER)!==o.FRAMEBUFFER_COMPLETE&amp;&amp;(e.extTextureHalfFloat=null,n.colorAttachment.setDirty(),t(e,r,i,n))}(t,e,o,n)}}(o,e,i),o.clear({color:t.Color.transparent});for(var c=0;c&lt;n.length;c++){var p=n[c];if(!r.hasRenderableParent(p)){var h=r.getTile(p),d=h.getBucket(i);if(d){var f=d.programConfigurations.get(i.id),m=e.useProgram("heatmap",f),y=e.transform.zoom;m.draw(o,a.TRIANGLES,s,l,u,Ct.disabled,Tr(p.posMatrix,h,y,i.paint.get("heatmap-intensity")),i.id,d.layoutVertexBuffer,d.indexBuffer,d.segments,i.paint,e.transform.zoom,f)}}}o.viewport.set([0,0,e.width,e.height])}else"translucent"===e.renderPass&amp;&amp;(e.context.setColorMode(e.colorModeForRenderPass()),function(e,r){var i=e.context,n=i.gl,o=r.heatmapFbo;if(o){i.activeTexture.set(n.TEXTURE0),n.bindTexture(n.TEXTURE_2D,o.colorAttachment.get()),i.activeTexture.set(n.TEXTURE1);var a=r.colorRampTexture;a||(a=r.colorRampTexture=new t.Texture(i,r.colorRamp,n.RGBA)),a.bind(n.LINEAR,n.CLAMP_TO_EDGE),e.useProgram("heatmapTexture").draw(i,n.TRIANGLES,kt.disabled,Tt.disabled,e.colorModeForRenderPass(),Ct.disabled,Ar(e,r,0,1),r.id,e.viewportBuffer,e.quadTriangleIndexBuffer,e.viewportSegments,r.paint,e.transform.zoom)}}(e,i))},line:function(e,r,i,n){if("translucent"===e.renderPass){var o=i.paint.get("line-opacity"),a=i.paint.get("line-width");if(0!==o.constantOr(1)&amp;&amp;0!==a.constantOr(1)){var s=e.depthModeForSublayer(0,kt.ReadOnly),l=e.colorModeForRenderPass(),u=i.paint.get("line-dasharray"),c=i.paint.get("line-pattern"),p=c.constantOr(1),h=i.paint.get("line-gradient"),d=i.getCrossfadeParameters(),f=u?"lineSDF":p?"linePattern":h?"lineGradient":"line",m=e.context,y=m.gl,g=!0;if(h){m.activeTexture.set(y.TEXTURE0);var v=i.gradientTexture;if(!i.gradient)return;v||(v=i.gradientTexture=new t.Texture(m,i.gradient,y.RGBA)),v.bind(y.LINEAR,y.CLAMP_TO_EDGE)}for(var _=0,x=n;_&lt;x.length;_+=1){var b=x[_],w=r.getTile(b);if(!p||w.patternsLoaded()){var S=w.getBucket(i);if(S){var E=S.programConfigurations.get(i.id),k=e.context.program.get(),T=e.useProgram(f,E),A=g||T.program!==k,C=c.constantOr(null);if(C&amp;&amp;w.imageAtlas){var I=w.imageAtlas.patternPositions[C.to],P=w.imageAtlas.patternPositions[C.from];I&amp;&amp;P&amp;&amp;E.setConstantPatternPositions(I,P)}var M=u?Lr(e,w,i,u,d):p?Dr(e,w,i,d):h?zr(e,w,i):Mr(e,w,i);u&amp;&amp;(A||e.lineAtlas.dirty)?(m.activeTexture.set(y.TEXTURE0),e.lineAtlas.bind(m)):p&amp;&amp;(m.activeTexture.set(y.TEXTURE0),w.imageAtlasTexture.bind(y.LINEAR,y.CLAMP_TO_EDGE),E.updatePatternPaintBuffers(d)),T.draw(m,y.TRIANGLES,s,e.stencilModeForClipping(b),l,Ct.disabled,M,i.id,S.layoutVertexBuffer,S.indexBuffer,S.segments,i.paint,e.transform.zoom,E),g=!1}}}}}},fill:function(e,r,i,n){var o=i.paint.get("fill-color"),a=i.paint.get("fill-opacity");if(0!==a.constantOr(1)){var s=e.colorModeForRenderPass(),l=i.paint.get("fill-pattern"),u=e.opaquePassEnabledForLayer()&amp;&amp;!l.constantOr(1)&amp;&amp;1===o.constantOr(t.Color.transparent).a&amp;&amp;1===a.constantOr(0)?"opaque":"translucent";if(e.renderPass===u){var c=e.depthModeForSublayer(1,"opaque"===e.renderPass?kt.ReadWrite:kt.ReadOnly);Qr(e,r,i,n,c,s,!1)}if("translucent"===e.renderPass&amp;&amp;i.paint.get("fill-antialias")){var p=e.depthModeForSublayer(i.getPaintProperty("fill-outline-color")?2:0,kt.ReadOnly);Qr(e,r,i,n,p,s,!0)}}},"fill-extrusion":function(t,e,r,i){var n=r.paint.get("fill-extrusion-opacity");if(0!==n&amp;&amp;"translucent"===t.renderPass){var o=new kt(t.context.gl.LEQUAL,kt.ReadWrite,t.depthRangeFor3D);if(1!==n||r.paint.get("fill-extrusion-pattern").constantOr(1))ti(t,e,r,i,o,Tt.disabled,At.disabled),ti(t,e,r,i,o,t.stencilModeFor3D(),t.colorModeForRenderPass());else{var a=t.colorModeForRenderPass();ti(t,e,r,i,o,Tt.disabled,a)}}},hillshade:function(t,e,r,i){if("offscreen"===t.renderPass||"translucent"===t.renderPass){for(var n=t.context,o=e.getSource().maxzoom,a=t.depthModeForSublayer(0,kt.ReadOnly),s=Tt.disabled,l=t.colorModeForRenderPass(),u=0,c=i;u&lt;c.length;u+=1){var p=c[u],h=e.getTile(p);h.needsHillshadePrepare&amp;&amp;"offscreen"===t.renderPass?ri(t,h,r,o,a,s,l):"translucent"===t.renderPass&amp;&amp;ei(t,h,r,a,s,l)}n.viewport.set([0,0,t.width,t.height])}},raster:function(t,e,r,i){if("translucent"===t.renderPass&amp;&amp;0!==r.paint.get("raster-opacity"))for(var n=t.context,o=n.gl,a=e.getSource(),s=t.useProgram("raster"),l=Tt.disabled,u=t.colorModeForRenderPass(),c=i.length&amp;&amp;i[0].overscaledZ,p=!t.options.moving,h=0,d=i;h&lt;d.length;h+=1){var f=d[h],m=t.depthModeForSublayer(f.overscaledZ-c,1===r.paint.get("raster-opacity")?kt.ReadWrite:kt.ReadOnly,o.LESS),y=e.getTile(f),g=t.transform.calculatePosMatrix(f.toUnwrapped(),p);y.registerFadeDuration(r.paint.get("raster-fade-duration"));var v=e.findLoadedParent(f,0),_=ii(y,v,e,r,t.transform),x=void 0,b=void 0,w="nearest"===r.paint.get("raster-resampling")?o.NEAREST:o.LINEAR;n.activeTexture.set(o.TEXTURE0),y.texture.bind(w,o.CLAMP_TO_EDGE,o.LINEAR_MIPMAP_NEAREST),n.activeTexture.set(o.TEXTURE1),v?(v.texture.bind(w,o.CLAMP_TO_EDGE,o.LINEAR_MIPMAP_NEAREST),x=Math.pow(2,v.tileID.overscaledZ-y.tileID.overscaledZ),b=[y.tileID.canonical.x*x%1,y.tileID.canonical.y*x%1]):y.texture.bind(w,o.CLAMP_TO_EDGE,o.LINEAR_MIPMAP_NEAREST);var S=Br(g,b||[0,0],x||1,_,r);a instanceof M?s.draw(n,o.TRIANGLES,m,l,u,Ct.disabled,S,r.id,a.boundsBuffer,t.quadTriangleIndexBuffer,a.boundsSegments):y.maskedBoundsBuffer&amp;&amp;y.maskedIndexBuffer&amp;&amp;y.segments?s.draw(n,o.TRIANGLES,m,l,u,Ct.disabled,S,r.id,y.maskedBoundsBuffer,y.maskedIndexBuffer,y.segments,r.paint,t.transform.zoom):s.draw(n,o.TRIANGLES,m,l,u,Ct.disabled,S,r.id,t.rasterBoundsBuffer,t.quadTriangleIndexBuffer,t.rasterBoundsSegments)}},background:function(t,e,r){var i=r.paint.get("background-color"),n=r.paint.get("background-opacity");if(0!==n){var o=t.context,a=o.gl,s=t.transform,l=s.tileSize,u=r.paint.get("background-pattern");if(!t.isPatternMissing(u)){var c=!u&amp;&amp;1===i.a&amp;&amp;1===n&amp;&amp;t.opaquePassEnabledForLayer()?"opaque":"translucent";if(t.renderPass===c){var p=Tt.disabled,h=t.depthModeForSublayer(0,"opaque"===c?kt.ReadWrite:kt.ReadOnly),d=t.colorModeForRenderPass(),f=t.useProgram(u?"backgroundPattern":"background"),m=s.coveringTiles({tileSize:l});u&amp;&amp;(o.activeTexture.set(a.TEXTURE0),t.imageManager.bind(t.context));for(var y=r.getCrossfadeParameters(),g=0,v=m;g&lt;v.length;g+=1){var _=v[g],x=t.transform.calculatePosMatrix(_.toUnwrapped()),b=u?Vr(x,n,t,u,{tileID:_,tileSize:l},y):Nr(x,n,i);f.draw(o,a.TRIANGLES,h,p,d,Ct.disabled,b,r.id,t.tileExtentBuffer,t.quadTriangleIndexBuffer,t.tileExtentSegments)}}}}},debug:function(t,e,r){for(var i=0;i&lt;r.length;i++)ni(t,e,r[i])},custom:function(t,e,r){var i=t.context,n=r.implementation;if("offscreen"===t.renderPass){var o=n.prerender;o&amp;&amp;(t.setCustomLayerDefaults(),i.setColorMode(t.colorModeForRenderPass()),o.call(n,i.gl,t.transform.customLayerMatrix()),i.setDirty(),t.setBaseState())}else if("translucent"===t.renderPass){t.setCustomLayerDefaults(),i.setColorMode(t.colorModeForRenderPass()),i.setStencilMode(Tt.disabled);var a="3d"===n.renderingMode?new kt(t.context.gl.LEQUAL,kt.ReadWrite,t.depthRangeFor3D):t.depthModeForSublayer(0,kt.ReadOnly);i.setDepthMode(a),n.render(i.gl,t.transform.customLayerMatrix()),i.setDirty(),t.setBaseState(),i.bindFramebuffer.set(null)}}},si=function(e,r){this.context=new It(e),this.transform=r,this._tileTextures={},this.setup(),this.numSublayers=Pt.maxUnderzooming+Pt.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.depthRboNeedsClear=!0,this.emptyProgramConfiguration=new t.ProgramConfiguration,this.crossTileSymbolIndex=new De};function li(t,e){if(t.y&gt;e.y){var r=t;t=e,e=r}return{x0:t.x,y0:t.y,x1:e.x,y1:e.y,dx:e.x-t.x,dy:e.y-t.y}}function ui(t,e,r,i,n){var o=Math.max(r,Math.floor(e.y0)),a=Math.min(i,Math.ceil(e.y1));if(t.x0===e.x0&amp;&amp;t.y0===e.y0?t.x0+e.dy/t.dy*t.dx&lt;e.x1:t.x1-e.dy/t.dy*t.dx&lt;e.x0){var s=t;t=e,e=s}for(var l=t.dx/t.dy,u=e.dx/e.dy,c=t.dx&gt;0,p=e.dx&lt;0,h=o;h&lt;a;h++){var d=l*Math.max(0,Math.min(t.dy,h+c-t.y0))+t.x0,f=u*Math.max(0,Math.min(e.dy,h+p-e.y0))+e.x0;n(Math.floor(f),Math.ceil(d),h)}}function ci(t,e,r,i,n,o){var a,s=li(t,e),l=li(e,r),u=li(r,t);s.dy&gt;l.dy&amp;&amp;(a=s,s=l,l=a),s.dy&gt;u.dy&amp;&amp;(a=s,s=u,u=a),l.dy&gt;u.dy&amp;&amp;(a=l,l=u,u=a),s.dy&amp;&amp;ui(u,s,i,n,o),l.dy&amp;&amp;ui(u,l,i,n,o)}si.prototype.resize=function(e,r){var i=this.context.gl;if(this.width=e*t.browser.devicePixelRatio,this.height=r*t.browser.devicePixelRatio,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(var n=0,o=this.style._order;n&lt;o.length;n+=1){var a=o[n];this.style._layers[a].resize()}this.depthRbo&amp;&amp;(i.deleteRenderbuffer(this.depthRbo),this.depthRbo=null)},si.prototype.setup=function(){var e=this.context,r=new t.StructArrayLayout2i4;r.emplaceBack(0,0),r.emplaceBack(t.EXTENT,0),r.emplaceBack(0,t.EXTENT),r.emplaceBack(t.EXTENT,t.EXTENT),this.tileExtentBuffer=e.createVertexBuffer(r,Fe.members),this.tileExtentSegments=t.SegmentVector.simpleSegment(0,0,4,2);var i=new t.StructArrayLayout2i4;i.emplaceBack(0,0),i.emplaceBack(t.EXTENT,0),i.emplaceBack(0,t.EXTENT),i.emplaceBack(t.EXTENT,t.EXTENT),this.debugBuffer=e.createVertexBuffer(i,Fe.members),this.debugSegments=t.SegmentVector.simpleSegment(0,0,4,5);var n=new t.StructArrayLayout4i8;n.emplaceBack(0,0,0,0),n.emplaceBack(t.EXTENT,0,t.EXTENT,0),n.emplaceBack(0,t.EXTENT,0,t.EXTENT),n.emplaceBack(t.EXTENT,t.EXTENT,t.EXTENT,t.EXTENT),this.rasterBoundsBuffer=e.createVertexBuffer(n,t.rasterBoundsAttributes.members),this.rasterBoundsSegments=t.SegmentVector.simpleSegment(0,0,4,2);var o=new t.StructArrayLayout2i4;o.emplaceBack(0,0),o.emplaceBack(1,0),o.emplaceBack(0,1),o.emplaceBack(1,1),this.viewportBuffer=e.createVertexBuffer(o,Fe.members),this.viewportSegments=t.SegmentVector.simpleSegment(0,0,4,2);var a=new t.StructArrayLayout1ui2;a.emplaceBack(0),a.emplaceBack(1),a.emplaceBack(3),a.emplaceBack(2),a.emplaceBack(0),this.tileBorderIndexBuffer=e.createIndexBuffer(a);var s=new t.StructArrayLayout3ui6;s.emplaceBack(0,1,2),s.emplaceBack(2,1,3),this.quadTriangleIndexBuffer=e.createIndexBuffer(s);var l=this.context.gl;this.stencilClearMode=new Tt({func:l.ALWAYS,mask:0},0,255,l.ZERO,l.ZERO,l.ZERO)},si.prototype.clearStencil=function(){var e=this.context,r=e.gl;this.nextStencilID=1,this.currentStencilSource=void 0;var i=t.create();t.ortho(i,0,this.width,this.height,0,0,1),t.scale(i,i,[r.drawingBufferWidth,r.drawingBufferHeight,0]),this.useProgram("clippingMask").draw(e,r.TRIANGLES,kt.disabled,this.stencilClearMode,At.disabled,Ct.disabled,kr(i),"$clipping",this.viewportBuffer,this.quadTriangleIndexBuffer,this.viewportSegments)},si.prototype._renderTileClippingMasks=function(t,e){if(this.currentStencilSource!==t.source&amp;&amp;t.isTileClipped()&amp;&amp;e&amp;&amp;e.length){this.currentStencilSource=t.source;var r=this.context,i=r.gl;this.nextStencilID+e.length&gt;256&amp;&amp;this.clearStencil(),r.setColorMode(At.disabled),r.setDepthMode(kt.disabled);var n=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(var o=0,a=e;o&lt;a.length;o+=1){var s=a[o],l=this._tileClippingMaskIDs[s.key]=this.nextStencilID++;n.draw(r,i.TRIANGLES,kt.disabled,new Tt({func:i.ALWAYS,mask:0},l,255,i.KEEP,i.KEEP,i.REPLACE),At.disabled,Ct.disabled,kr(s.posMatrix),"$clipping",this.tileExtentBuffer,this.quadTriangleIndexBuffer,this.tileExtentSegments)}}},si.prototype.stencilModeFor3D=function(){this.currentStencilSource=void 0,this.nextStencilID+1&gt;256&amp;&amp;this.clearStencil();var t=this.nextStencilID++,e=this.context.gl;return new Tt({func:e.NOTEQUAL,mask:255},t,255,e.KEEP,e.KEEP,e.REPLACE)},si.prototype.stencilModeForClipping=function(t){var e=this.context.gl;return new Tt({func:e.EQUAL,mask:255},this._tileClippingMaskIDs[t.key],0,e.KEEP,e.KEEP,e.REPLACE)},si.prototype.colorModeForRenderPass=function(){var e=this.context.gl;return this._showOverdrawInspector?new At([e.CONSTANT_COLOR,e.ONE],new t.Color(1/8,1/8,1/8,0),[!0,!0,!0,!0]):"opaque"===this.renderPass?At.unblended:At.alphaBlended},si.prototype.depthModeForSublayer=function(t,e,r){if(!this.opaquePassEnabledForLayer())return kt.disabled;var i=1-((1+this.currentLayer)*this.numSublayers+t)*this.depthEpsilon;return new kt(r||this.context.gl.LEQUAL,e,[i,i])},si.prototype.opaquePassEnabledForLayer=function(){return this.currentLayer&lt;this.opaquePassCutoff},si.prototype.render=function(e,r){this.style=e,this.options=r,this.lineAtlas=e.lineAtlas,this.imageManager=e.imageManager,this.glyphManager=e.glyphManager,this.symbolFadeChange=e.placement.symbolFadeChange(t.browser.now()),this.imageManager.beginFrame();var i=this.style._order,n=this.style.sourceCaches;for(var o in n){var a=n[o];a.used&amp;&amp;a.prepare(this.context)}var s={},l={},u={};for(var c in n){var p=n[c];s[c]=p.getVisibleCoordinates(),l[c]=s[c].slice().reverse(),u[c]=p.getVisibleCoordinates(!0).reverse()}for(var h in n){var d=n[h],f=d.getSource();if("raster"===f.type||"raster-dem"===f.type){for(var m=[],y=0,g=s[h];y&lt;g.length;y+=1){var v=g[y];m.push(d.getTile(v))}Wr(m,this.context)}}this.opaquePassCutoff=1/0;for(var _=0;_&lt;i.length;_++){var x=i[_];if(this.style._layers[x].is3D()){this.opaquePassCutoff=_;break}}this.renderPass="offscreen",this.depthRboNeedsClear=!0;for(var b=0,w=i;b&lt;w.length;b+=1){var S=w[b],E=this.style._layers[S];if(E.hasOffscreenPass()&amp;&amp;!E.isHidden(this.transform.zoom)){var k=l[E.source];("custom"===E.type||k.length)&amp;&amp;this.renderLayer(this,n[E.source],E,k)}}for(this.context.bindFramebuffer.set(null),this.context.clear({color:r.showOverdrawInspector?t.Color.black:t.Color.transparent,depth:1}),this.clearStencil(),this._showOverdrawInspector=r.showOverdrawInspector,this.depthRangeFor3D=[0,1-(e._order.length+2)*this.numSublayers*this.depthEpsilon],this.renderPass="opaque",this.currentLayer=i.length-1;this.currentLayer&gt;=0;this.currentLayer--){var T=this.style._layers[i[this.currentLayer]],A=n[T.source],C=s[T.source];this._renderTileClippingMasks(T,C),this.renderLayer(this,A,T,C)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer&lt;i.length;this.currentLayer++){var I=this.style._layers[i[this.currentLayer]],P=n[I.source],M=("symbol"===I.type?u:l)[I.source];this._renderTileClippingMasks(I,s[I.source]),this.renderLayer(this,P,I,M)}if(this.options.showTileBoundaries)for(var z in n){ai.debug(this,n[z],s[z]);break}this.context.setDefault()},si.prototype.setupOffscreenDepthRenderbuffer=function(){var t=this.context;this.depthRbo||(this.depthRbo=t.createRenderbuffer(t.gl.DEPTH_COMPONENT16,this.width,this.height))},si.prototype.renderLayer=function(t,e,r,i){r.isHidden(this.transform.zoom)||("background"===r.type||"custom"===r.type||i.length)&amp;&amp;(this.id=r.id,ai[r.type](t,e,r,i,this.style.placement.variableOffsets))},si.prototype.translatePosMatrix=function(e,r,i,n,o){if(!i[0]&amp;&amp;!i[1])return e;var a=o?"map"===n?this.transform.angle:0:"viewport"===n?-this.transform.angle:0;if(a){var s=Math.sin(a),l=Math.cos(a);i=[i[0]*l-i[1]*s,i[0]*s+i[1]*l]}var u=[o?i[0]:ce(r,i[0],this.transform.zoom),o?i[1]:ce(r,i[1],this.transform.zoom),0],c=new Float32Array(16);return t.translate(c,e,u),c},si.prototype.saveTileTexture=function(t){var e=this._tileTextures[t.size[0]];e?e.push(t):this._tileTextures[t.size[0]]=[t]},si.prototype.getTileTexture=function(t){var e=this._tileTextures[t];return e&amp;&amp;e.length&gt;0?e.pop():null},si.prototype.isPatternMissing=function(t){if(!t)return!1;var e=this.imageManager.getPattern(t.from),r=this.imageManager.getPattern(t.to);return!e||!r},si.prototype.useProgram=function(t,e){void 0===e&amp;&amp;(e=this.emptyProgramConfiguration),this.cache=this.cache||{};var r=""+t+(e.cacheKey||"")+(this._showOverdrawInspector?"/overdraw":"");return this.cache[r]||(this.cache[r]=new dr(this.context,pr[t],e,qr[t],this._showOverdrawInspector)),this.cache[r]},si.prototype.setCustomLayerDefaults=function(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()},si.prototype.setBaseState=function(){var t=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(t.FUNC_ADD)};var pi=function(e,r,i){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=void 0===i||i,this._minZoom=e||0,this._maxZoom=r||22,this.setMaxBounds(),this.width=0,this.height=0,this._center=new t.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._posMatrixCache={},this._alignedPosMatrixCache={}},hi={minZoom:{configurable:!0},maxZoom:{configurable:!0},renderWorldCopies:{configurable:!0},worldSize:{configurable:!0},centerPoint:{configurable:!0},size:{configurable:!0},bearing:{configurable:!0},pitch:{configurable:!0},fov:{configurable:!0},zoom:{configurable:!0},center:{configurable:!0},unmodified:{configurable:!0},point:{configurable:!0}};pi.prototype.clone=function(){var t=new pi(this._minZoom,this._maxZoom,this._renderWorldCopies);return t.tileSize=this.tileSize,t.latRange=this.latRange,t.width=this.width,t.height=this.height,t._center=this._center,t.zoom=this.zoom,t.angle=this.angle,t._fov=this._fov,t._pitch=this._pitch,t._unmodified=this._unmodified,t._calcMatrices(),t},hi.minZoom.get=function(){return this._minZoom},hi.minZoom.set=function(t){this._minZoom!==t&amp;&amp;(this._minZoom=t,this.zoom=Math.max(this.zoom,t))},hi.maxZoom.get=function(){return this._maxZoom},hi.maxZoom.set=function(t){this._maxZoom!==t&amp;&amp;(this._maxZoom=t,this.zoom=Math.min(this.zoom,t))},hi.renderWorldCopies.get=function(){return this._renderWorldCopies},hi.renderWorldCopies.set=function(t){void 0===t?t=!0:null===t&amp;&amp;(t=!1),this._renderWorldCopies=t},hi.worldSize.get=function(){return this.tileSize*this.scale},hi.centerPoint.get=function(){return this.size._div(2)},hi.size.get=function(){return new t.Point(this.width,this.height)},hi.bearing.get=function(){return-this.angle/Math.PI*180},hi.bearing.set=function(e){var r=-t.wrap(e,-180,180)*Math.PI/180;this.angle!==r&amp;&amp;(this._unmodified=!1,this.angle=r,this._calcMatrices(),this.rotationMatrix=t.create$2(),t.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},hi.pitch.get=function(){return this._pitch/Math.PI*180},hi.pitch.set=function(e){var r=t.clamp(e,0,60)/180*Math.PI;this._pitch!==r&amp;&amp;(this._unmodified=!1,this._pitch=r,this._calcMatrices())},hi.fov.get=function(){return this._fov/Math.PI*180},hi.fov.set=function(t){t=Math.max(.01,Math.min(60,t)),this._fov!==t&amp;&amp;(this._unmodified=!1,this._fov=t/180*Math.PI,this._calcMatrices())},hi.zoom.get=function(){return this._zoom},hi.zoom.set=function(t){var e=Math.min(Math.max(t,this.minZoom),this.maxZoom);this._zoom!==e&amp;&amp;(this._unmodified=!1,this._zoom=e,this.scale=this.zoomScale(e),this.tileZoom=Math.floor(e),this.zoomFraction=e-this.tileZoom,this._constrain(),this._calcMatrices())},hi.center.get=function(){return this._center},hi.center.set=function(t){t.lat===this._center.lat&amp;&amp;t.lng===this._center.lng||(this._unmodified=!1,this._center=t,this._constrain(),this._calcMatrices())},pi.prototype.coveringZoomLevel=function(t){return(t.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/t.tileSize))},pi.prototype.getVisibleUnwrappedCoordinates=function(e){var r=[new t.UnwrappedTileID(0,e)];if(this._renderWorldCopies)for(var i=this.pointCoordinate(new t.Point(0,0)),n=this.pointCoordinate(new t.Point(this.width,0)),o=this.pointCoordinate(new t.Point(this.width,this.height)),a=this.pointCoordinate(new t.Point(0,this.height)),s=Math.floor(Math.min(i.x,n.x,o.x,a.x)),l=Math.floor(Math.max(i.x,n.x,o.x,a.x)),u=s-1;u&lt;=l+1;u++)0!==u&amp;&amp;r.push(new t.UnwrappedTileID(u,e));return r},pi.prototype.coveringTiles=function(e){var r=this.coveringZoomLevel(e),i=r;if(void 0!==e.minzoom&amp;&amp;r&lt;e.minzoom)return[];void 0!==e.maxzoom&amp;&amp;r&gt;e.maxzoom&amp;&amp;(r=e.maxzoom);var n=t.MercatorCoordinate.fromLngLat(this.center),o=Math.pow(2,r),a=new t.Point(o*n.x-.5,o*n.y-.5);return function(e,r,i,n){void 0===n&amp;&amp;(n=!0);var o=1&lt;&lt;e,a={};function s(r,s,l){var u,c,p,h;if(l&gt;=0&amp;&amp;l&lt;=o)for(u=r;u&lt;s;u++)c=Math.floor(u/o),p=(u%o+o)%o,0!==c&amp;&amp;!0!==n||(h=new t.OverscaledTileID(i,c,e,p,l),a[h.key]=h)}var l=r.map((function(e){return new t.Point(e.x,e.y)._mult(o)}));return ci(l[0],l[1],l[2],0,o,s),ci(l[2],l[3],l[0],0,o,s),Object.keys(a).map((function(t){return a[t]}))}(r,[this.pointCoordinate(new t.Point(0,0)),this.pointCoordinate(new t.Point(this.width,0)),this.pointCoordinate(new t.Point(this.width,this.height)),this.pointCoordinate(new t.Point(0,this.height))],e.reparseOverscaled?i:r,this._renderWorldCopies).sort((function(t,e){return a.dist(t.canonical)-a.dist(e.canonical)}))},pi.prototype.resize=function(t,e){this.width=t,this.height=e,this.pixelsToGLUnits=[2/t,-2/e],this._constrain(),this._calcMatrices()},hi.unmodified.get=function(){return this._unmodified},pi.prototype.zoomScale=function(t){return Math.pow(2,t)},pi.prototype.scaleZoom=function(t){return Math.log(t)/Math.LN2},pi.prototype.project=function(e){var r=t.clamp(e.lat,-this.maxValidLatitude,this.maxValidLatitude);return new t.Point(t.mercatorXfromLng(e.lng)*this.worldSize,t.mercatorYfromLat(r)*this.worldSize)},pi.prototype.unproject=function(e){return new t.MercatorCoordinate(e.x/this.worldSize,e.y/this.worldSize).toLngLat()},hi.point.get=function(){return this.project(this.center)},pi.prototype.setLocationAtPoint=function(e,r){var i=this.pointCoordinate(r),n=this.pointCoordinate(this.centerPoint),o=this.locationCoordinate(e),a=new t.MercatorCoordinate(o.x-(i.x-n.x),o.y-(i.y-n.y));this.center=this.coordinateLocation(a),this._renderWorldCopies&amp;&amp;(this.center=this.center.wrap())},pi.prototype.locationPoint=function(t){return this.coordinatePoint(this.locationCoordinate(t))},pi.prototype.pointLocation=function(t){return this.coordinateLocation(this.pointCoordinate(t))},pi.prototype.locationCoordinate=function(e){return t.MercatorCoordinate.fromLngLat(e)},pi.prototype.coordinateLocation=function(t){return t.toLngLat()},pi.prototype.pointCoordinate=function(e){var r=[e.x,e.y,0,1],i=[e.x,e.y,1,1];t.transformMat4(r,r,this.pixelMatrixInverse),t.transformMat4(i,i,this.pixelMatrixInverse);var n=r[3],o=i[3],a=r[0]/n,s=i[0]/o,l=r[1]/n,u=i[1]/o,c=r[2]/n,p=i[2]/o,h=c===p?0:(0-c)/(p-c);return new t.MercatorCoordinate(t.number(a,s,h)/this.worldSize,t.number(l,u,h)/this.worldSize)},pi.prototype.coordinatePoint=function(e){var r=[e.x*this.worldSize,e.y*this.worldSize,0,1];return t.transformMat4(r,r,this.pixelMatrix),new t.Point(r[0]/r[3],r[1]/r[3])},pi.prototype.getBounds=function(){return(new t.LngLatBounds).extend(this.pointLocation(new t.Point(0,0))).extend(this.pointLocation(new t.Point(this.width,0))).extend(this.pointLocation(new t.Point(this.width,this.height))).extend(this.pointLocation(new t.Point(0,this.height)))},pi.prototype.getMaxBounds=function(){return this.latRange&amp;&amp;2===this.latRange.length&amp;&amp;this.lngRange&amp;&amp;2===this.lngRange.length?new t.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]]):null},pi.prototype.setMaxBounds=function(t){t?(this.lngRange=[t.getWest(),t.getEast()],this.latRange=[t.getSouth(),t.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])},pi.prototype.calculatePosMatrix=function(e,r){void 0===r&amp;&amp;(r=!1);var i=e.key,n=r?this._alignedPosMatrixCache:this._posMatrixCache;if(n[i])return n[i];var o=e.canonical,a=this.worldSize/this.zoomScale(o.z),s=o.x+Math.pow(2,o.z)*e.wrap,l=t.identity(new Float64Array(16));return t.translate(l,l,[s*a,o.y*a,0]),t.scale(l,l,[a/t.EXTENT,a/t.EXTENT,1]),t.multiply(l,r?this.alignedProjMatrix:this.projMatrix,l),n[i]=new Float32Array(l),n[i]},pi.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},pi.prototype._constrain=function(){if(this.center&amp;&amp;this.width&amp;&amp;this.height&amp;&amp;!this._constraining){this._constraining=!0;var e,r,i,n,o=-90,a=90,s=-180,l=180,u=this.size,c=this._unmodified;if(this.latRange){var p=this.latRange;o=t.mercatorYfromLat(p[1])*this.worldSize,e=(a=t.mercatorYfromLat(p[0])*this.worldSize)-o&lt;u.y?u.y/(a-o):0}if(this.lngRange){var h=this.lngRange;s=t.mercatorXfromLng(h[0])*this.worldSize,r=(l=t.mercatorXfromLng(h[1])*this.worldSize)-s&lt;u.x?u.x/(l-s):0}var d=this.point,f=Math.max(r||0,e||0);if(f)return this.center=this.unproject(new t.Point(r?(l+s)/2:d.x,e?(a+o)/2:d.y)),this.zoom+=this.scaleZoom(f),this._unmodified=c,void(this._constraining=!1);if(this.latRange){var m=d.y,y=u.y/2;m-y&lt;o&amp;&amp;(n=o+y),m+y&gt;a&amp;&amp;(n=a-y)}if(this.lngRange){var g=d.x,v=u.x/2;g-v&lt;s&amp;&amp;(i=s+v),g+v&gt;l&amp;&amp;(i=l-v)}void 0===i&amp;&amp;void 0===n||(this.center=this.unproject(new t.Point(void 0!==i?i:d.x,void 0!==n?n:d.y))),this._unmodified=c,this._constraining=!1}},pi.prototype._calcMatrices=function(){if(this.height){this.cameraToCenterDistance=.5/Math.tan(this._fov/2)*this.height;var e=this._fov/2,r=Math.PI/2+this._pitch,i=Math.sin(e)*this.cameraToCenterDistance/Math.sin(Math.PI-r-e),n=this.point,o=n.x,a=n.y,s=1.01*(Math.cos(Math.PI/2-this._pitch)*i+this.cameraToCenterDistance),l=this.height/50,u=new Float64Array(16);t.perspective(u,this._fov,this.width/this.height,l,s),t.scale(u,u,[1,-1,1]),t.translate(u,u,[0,0,-this.cameraToCenterDistance]),t.rotateX(u,u,this._pitch),t.rotateZ(u,u,this.angle),t.translate(u,u,[-o,-a,0]),this.mercatorMatrix=t.scale([],u,[this.worldSize,this.worldSize,this.worldSize]),t.scale(u,u,[1,1,t.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=u;var c=this.width%2/2,p=this.height%2/2,h=Math.cos(this.angle),d=Math.sin(this.angle),f=o-Math.round(o)+h*c+d*p,m=a-Math.round(a)+h*p+d*c,y=new Float64Array(u);if(t.translate(y,y,[f&gt;.5?f-1:f,m&gt;.5?m-1:m,0]),this.alignedProjMatrix=y,u=t.create(),t.scale(u,u,[this.width/2,-this.height/2,1]),t.translate(u,u,[1,-1,0]),this.labelPlaneMatrix=u,u=t.create(),t.scale(u,u,[1,-1,1]),t.translate(u,u,[-1,-1,0]),t.scale(u,u,[2/this.width,2/this.height,1]),this.glCoordMatrix=u,this.pixelMatrix=t.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),!(u=t.invert(new Float64Array(16),this.pixelMatrix)))throw new Error("failed to invert matrix");this.pixelMatrixInverse=u,this._posMatrixCache={},this._alignedPosMatrixCache={}}},pi.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var e=this.pointCoordinate(new t.Point(0,0)),r=[e.x*this.worldSize,e.y*this.worldSize,0,1];return t.transformMat4(r,r,this.pixelMatrix)[3]/this.cameraToCenterDistance},pi.prototype.getCameraPoint=function(){var e=this._pitch,r=Math.tan(e)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new t.Point(0,r))},pi.prototype.getCameraQueryGeometry=function(e){var r=this.getCameraPoint();if(1===e.length)return[e[0],r];for(var i=r.x,n=r.y,o=r.x,a=r.y,s=0,l=e;s&lt;l.length;s+=1){var u=l[s];i=Math.min(i,u.x),n=Math.min(n,u.y),o=Math.max(o,u.x),a=Math.max(a,u.y)}return[new t.Point(i,n),new t.Point(o,n),new t.Point(o,a),new t.Point(i,a),new t.Point(i,n)]},Object.defineProperties(pi.prototype,hi);var di=function(){var e,r,i,n,o;t.bindAll(["_onHashChange","_updateHash"],this),this._updateHash=(e=this._updateHashUnthrottled.bind(this),r=300,i=!1,n=null,o=function(){n=null,i&amp;&amp;(e(),n=setTimeout(o,r),i=!1)},function(){return i=!0,n||o(),n})};di.prototype.addTo=function(e){return this._map=e,t.window.addEventListener("hashchange",this._onHashChange,!1),this._map.on("moveend",this._updateHash),this},di.prototype.remove=function(){return t.window.removeEventListener("hashchange",this._onHashChange,!1),this._map.off("moveend",this._updateHash),clearTimeout(this._updateHash()),delete this._map,this},di.prototype.getHashString=function(t){var e=this._map.getCenter(),r=Math.round(100*this._map.getZoom())/100,i=Math.ceil((r*Math.LN2+Math.log(512/360/.5))/Math.LN10),n=Math.pow(10,i),o=Math.round(e.lng*n)/n,a=Math.round(e.lat*n)/n,s=this._map.getBearing(),l=this._map.getPitch(),u="";return u+=t?"#/"+o+"/"+a+"/"+r:"#"+r+"/"+a+"/"+o,(s||l)&amp;&amp;(u+="/"+Math.round(10*s)/10),l&amp;&amp;(u+="/"+Math.round(l)),u},di.prototype._onHashChange=function(){var e=t.window.location.hash.replace("#","").split("/");return e.length&gt;=3&amp;&amp;(this._map.jumpTo({center:[+e[2],+e[1]],zoom:+e[0],bearing:+(e[3]||0),pitch:+(e[4]||0)}),!0)},di.prototype._updateHashUnthrottled=function(){var e=this.getHashString();try{t.window.history.replaceState(t.window.history.state,"",e)}catch(t){}};var fi=function(e){function i(i,n,o,a){void 0===a&amp;&amp;(a={});var s=r.mousePos(n.getCanvasContainer(),o),l=n.unproject(s);e.call(this,i,t.extend({point:s,lngLat:l,originalEvent:o},a)),this._defaultPrevented=!1,this.target=n}e&amp;&amp;(i.__proto__=e),i.prototype=Object.create(e&amp;&amp;e.prototype),i.prototype.constructor=i;var n={defaultPrevented:{configurable:!0}};return i.prototype.preventDefault=function(){this._defaultPrevented=!0},n.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(i.prototype,n),i}(t.Event),mi=function(e){function i(i,n,o){var a=r.touchPos(n.getCanvasContainer(),o),s=a.map((function(t){return n.unproject(t)})),l=a.reduce((function(t,e,r,i){return t.add(e.div(i.length))}),new t.Point(0,0)),u=n.unproject(l);e.call(this,i,{points:a,point:l,lngLats:s,lngLat:u,originalEvent:o}),this._defaultPrevented=!1}e&amp;&amp;(i.__proto__=e),i.prototype=Object.create(e&amp;&amp;e.prototype),i.prototype.constructor=i;var n={defaultPrevented:{configurable:!0}};return i.prototype.preventDefault=function(){this._defaultPrevented=!0},n.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(i.prototype,n),i}(t.Event),yi=function(t){function e(e,r,i){t.call(this,e,{originalEvent:i}),this._defaultPrevented=!1}t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e;var r={defaultPrevented:{configurable:!0}};return e.prototype.preventDefault=function(){this._defaultPrevented=!0},r.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(e.prototype,r),e}(t.Event),gi=function(e){this._map=e,this._el=e.getCanvasContainer(),this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=1/450,t.bindAll(["_onWheel","_onTimeout","_onScrollFrame","_onScrollFinished"],this)};gi.prototype.setZoomRate=function(t){this._defaultZoomRate=t},gi.prototype.setWheelZoomRate=function(t){this._wheelZoomRate=t},gi.prototype.isEnabled=function(){return!!this._enabled},gi.prototype.isActive=function(){return!!this._active},gi.prototype.isZooming=function(){return!!this._zooming},gi.prototype.enable=function(t){this.isEnabled()||(this._enabled=!0,this._aroundCenter=t&amp;&amp;"center"===t.around)},gi.prototype.disable=function(){this.isEnabled()&amp;&amp;(this._enabled=!1)},gi.prototype.onWheel=function(e){if(this.isEnabled()){var r=e.deltaMode===t.window.WheelEvent.DOM_DELTA_LINE?40*e.deltaY:e.deltaY,i=t.browser.now(),n=i-(this._lastWheelEventTime||0);this._lastWheelEventTime=i,0!==r&amp;&amp;r%4.000244140625==0?this._type="wheel":0!==r&amp;&amp;Math.abs(r)&lt;4?this._type="trackpad":n&gt;400?(this._type=null,this._lastValue=r,this._timeout=setTimeout(this._onTimeout,40,e)):this._type||(this._type=Math.abs(n*r)&lt;200?"trackpad":"wheel",this._timeout&amp;&amp;(clearTimeout(this._timeout),this._timeout=null,r+=this._lastValue)),e.shiftKey&amp;&amp;r&amp;&amp;(r/=4),this._type&amp;&amp;(this._lastWheelEvent=e,this._delta-=r,this.isActive()||this._start(e)),e.preventDefault()}},gi.prototype._onTimeout=function(t){this._type="wheel",this._delta-=this._lastValue,this.isActive()||this._start(t)},gi.prototype._start=function(e){if(this._delta){this._frameId&amp;&amp;(this._map._cancelRenderFrame(this._frameId),this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0,this._map.fire(new t.Event("movestart",{originalEvent:e})),this._map.fire(new t.Event("zoomstart",{originalEvent:e}))),this._finishTimeout&amp;&amp;clearTimeout(this._finishTimeout);var i=r.mousePos(this._el,e);this._around=t.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(i)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=this._map._requestRenderFrame(this._onScrollFrame))}},gi.prototype._onScrollFrame=function(){var e=this;if(this._frameId=null,this.isActive()){var r=this._map.transform;if(0!==this._delta){var i="wheel"===this._type&amp;&amp;Math.abs(this._delta)&gt;4.000244140625?this._wheelZoomRate:this._defaultZoomRate,n=2/(1+Math.exp(-Math.abs(this._delta*i)));this._delta&lt;0&amp;&amp;0!==n&amp;&amp;(n=1/n);var o="number"==typeof this._targetZoom?r.zoomScale(this._targetZoom):r.scale;this._targetZoom=Math.min(r.maxZoom,Math.max(r.minZoom,r.scaleZoom(o*n))),"wheel"===this._type&amp;&amp;(this._startZoom=r.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var a="number"==typeof this._targetZoom?this._targetZoom:r.zoom,s=this._startZoom,l=this._easing,u=!1;if("wheel"===this._type&amp;&amp;s&amp;&amp;l){var c=Math.min((t.browser.now()-this._lastWheelEventTime)/200,1),p=l(c);r.zoom=t.number(s,a,p),c&lt;1?this._frameId||(this._frameId=this._map._requestRenderFrame(this._onScrollFrame)):u=!0}else r.zoom=a,u=!0;r.setLocationAtPoint(this._around,this._aroundPoint),this._map.fire(new t.Event("move",{originalEvent:this._lastWheelEvent})),this._map.fire(new t.Event("zoom",{originalEvent:this._lastWheelEvent})),u&amp;&amp;(this._active=!1,this._finishTimeout=setTimeout((function(){e._zooming=!1,e._map.fire(new t.Event("zoomend",{originalEvent:e._lastWheelEvent})),e._map.fire(new t.Event("moveend",{originalEvent:e._lastWheelEvent})),delete e._targetZoom}),200))}},gi.prototype._smoothOutEasing=function(e){var r=t.ease;if(this._prevEase){var i=this._prevEase,n=(t.browser.now()-i.start)/i.duration,o=i.easing(n+.01)-i.easing(n),a=.27/Math.sqrt(o*o+1e-4)*.01,s=Math.sqrt(.0729-a*a);r=t.bezier(a,s,.25,1)}return this._prevEase={start:t.browser.now(),duration:e,easing:r},r};var vi=function(e,r){this._map=e,this._el=e.getCanvasContainer(),this._container=e.getContainer(),this._clickTolerance=r.clickTolerance||1,t.bindAll(["_onMouseMove","_onMouseUp","_onKeyDown"],this)};vi.prototype.isEnabled=function(){return!!this._enabled},vi.prototype.isActive=function(){return!!this._active},vi.prototype.enable=function(){this.isEnabled()||(this._enabled=!0)},vi.prototype.disable=function(){this.isEnabled()&amp;&amp;(this._enabled=!1)},vi.prototype.onMouseDown=function(e){this.isEnabled()&amp;&amp;e.shiftKey&amp;&amp;0===e.button&amp;&amp;(t.window.document.addEventListener("mousemove",this._onMouseMove,!1),t.window.document.addEventListener("keydown",this._onKeyDown,!1),t.window.document.addEventListener("mouseup",this._onMouseUp,!1),r.disableDrag(),this._startPos=this._lastPos=r.mousePos(this._el,e),this._active=!0)},vi.prototype._onMouseMove=function(t){var e=r.mousePos(this._el,t);if(!(this._lastPos.equals(e)||!this._box&amp;&amp;e.dist(this._startPos)&lt;this._clickTolerance)){var i=this._startPos;this._lastPos=e,this._box||(this._box=r.create("div","mapboxgl-boxzoom",this._container),this._container.classList.add("mapboxgl-crosshair"),this._fireEvent("boxzoomstart",t));var n=Math.min(i.x,e.x),o=Math.max(i.x,e.x),a=Math.min(i.y,e.y),s=Math.max(i.y,e.y);r.setTransform(this._box,"translate("+n+"px,"+a+"px)"),this._box.style.width=o-n+"px",this._box.style.height=s-a+"px"}},vi.prototype._onMouseUp=function(e){if(0===e.button){var i=this._startPos,n=r.mousePos(this._el,e);this._finish(),r.suppressClick(),i.x===n.x&amp;&amp;i.y===n.y?this._fireEvent("boxzoomcancel",e):this._map.fitScreenCoordinates(i,n,this._map.getBearing(),{linear:!0}).fire(new t.Event("boxzoomend",{originalEvent:e}))}},vi.prototype._onKeyDown=function(t){27===t.keyCode&amp;&amp;(this._finish(),this._fireEvent("boxzoomcancel",t))},vi.prototype._finish=function(){this._active=!1,t.window.document.removeEventListener("mousemove",this._onMouseMove,!1),t.window.document.removeEventListener("keydown",this._onKeyDown,!1),t.window.document.removeEventListener("mouseup",this._onMouseUp,!1),this._container.classList.remove("mapboxgl-crosshair"),this._box&amp;&amp;(r.remove(this._box),this._box=null),r.enableDrag(),delete this._startPos,delete this._lastPos},vi.prototype._fireEvent=function(e,r){return this._map.fire(new t.Event(e,{originalEvent:r}))};var _i=t.bezier(0,0,.25,1),xi=function(e,r){this._map=e,this._el=r.element||e.getCanvasContainer(),this._state="disabled",this._button=r.button||"right",this._bearingSnap=r.bearingSnap||0,this._pitchWithRotate=!1!==r.pitchWithRotate,t.bindAll(["onMouseDown","_onMouseMove","_onMouseUp","_onBlur","_onDragFrame"],this)};xi.prototype.isEnabled=function(){return"disabled"!==this._state},xi.prototype.isActive=function(){return"active"===this._state},xi.prototype.enable=function(){this.isEnabled()||(this._state="enabled")},xi.prototype.disable=function(){if(this.isEnabled())switch(this._state){case"active":this._state="disabled",this._unbind(),this._deactivate(),this._fireEvent("rotateend"),this._pitchWithRotate&amp;&amp;this._fireEvent("pitchend"),this._fireEvent("moveend");break;case"pending":this._state="disabled",this._unbind();break;default:this._state="disabled"}},xi.prototype.onMouseDown=function(e){if("enabled"===this._state){var i="touchstart"===e.type;if(i)this._startTime=Date.now();else if("right"===this._button){if(this._eventButton=r.mouseButton(e),this._eventButton!==(e.ctrlKey?0:2))return}else{if(e.ctrlKey||0!==r.mouseButton(e))return;this._eventButton=0}r.disableDrag(),i?(t.window.document.addEventListener("touchmove",this._onMouseMove,{capture:!0}),t.window.document.addEventListener("touchend",this._onMouseUp)):(t.window.document.addEventListener("mousemove",this._onMouseMove,{capture:!0}),t.window.document.addEventListener("mouseup",this._onMouseUp)),t.window.addEventListener("blur",this._onBlur),this._state="pending",this._inertia=[[t.browser.now(),this._map.getBearing()]],this._startPos=this._prevPos=this._lastPos=r.mousePos(this._el,e),this._center=this._map.transform.centerPoint,e.preventDefault()}},xi.prototype._onMouseMove=function(t){var e=r.mousePos(this._el,t);this._lastPos.equals(e)||(this._lastMoveEvent=t,this._lastPos=e,"pending"===this._state&amp;&amp;(this._state="active",this._fireEvent("rotatestart",t),this._fireEvent("movestart",t),this._pitchWithRotate&amp;&amp;this._fireEvent("pitchstart",t)),this._frameId||(this._frameId=this._map._requestRenderFrame(this._onDragFrame)))},xi.prototype._onDragFrame=function(){this._frameId=null;var e=this._lastMoveEvent;if(e){var r=this._map.transform,i=this._prevPos,n=this._lastPos,o=.8*(i.x-n.x),a=-.5*(i.y-n.y),s=r.bearing-o,l=r.pitch-a,u=this._inertia,c=u[u.length-1];this._drainInertiaBuffer(),u.push([t.browser.now(),this._map._normalizeBearing(s,c[1])]),r.bearing=s,this._pitchWithRotate&amp;&amp;(this._fireEvent("pitch",e),r.pitch=l),this._fireEvent("rotate",e),this._fireEvent("move",e),delete this._lastMoveEvent,this._prevPos=this._lastPos}},xi.prototype._onMouseUp=function(t){if("touchend"===t.type&amp;&amp;this._startPos===this._lastPos&amp;&amp;Date.now()-this._startTime&lt;300&amp;&amp;this._el.click(),r.mouseButton(t)===this._eventButton)switch(this._state){case"active":this._state="enabled",r.suppressClick(),this._unbind(),this._deactivate(),this._inertialRotate(t);break;case"pending":this._state="enabled",this._unbind()}},xi.prototype._onBlur=function(t){switch(this._state){case"active":this._state="enabled",this._unbind(),this._deactivate(),this._fireEvent("rotateend",t),this._pitchWithRotate&amp;&amp;this._fireEvent("pitchend",t),this._fireEvent("moveend",t);break;case"pending":this._state="enabled",this._unbind()}},xi.prototype._unbind=function(){t.window.document.removeEventListener("mousemove",this._onMouseMove,{capture:!0}),t.window.document.removeEventListener("mouseup",this._onMouseUp),t.window.document.removeEventListener("touchmove",this._onMouseMove,{capture:!0}),t.window.document.removeEventListener("touchend",this._onMouseUp),t.window.removeEventListener("blur",this._onBlur),r.enableDrag()},xi.prototype._deactivate=function(){this._frameId&amp;&amp;(this._map._cancelRenderFrame(this._frameId),this._frameId=null),delete this._lastMoveEvent,delete this._startPos,delete this._prevPos,delete this._lastPos},xi.prototype._inertialRotate=function(t){var e=this;this._fireEvent("rotateend",t),this._drainInertiaBuffer();var r=this._map,i=r.getBearing(),n=this._inertia,o=function(){Math.abs(i)&lt;e._bearingSnap?r.resetNorth({noMoveStart:!0},{originalEvent:t}):e._fireEvent("moveend",t),e._pitchWithRotate&amp;&amp;e._fireEvent("pitchend",t)};if(n.length&lt;2)o();else{var a=n[0],s=n[n.length-1],l=n[n.length-2],u=r._normalizeBearing(i,l[1]),c=s[1]-a[1],p=c&lt;0?-1:1,h=(s[0]-a[0])/1e3;if(0!==c&amp;&amp;0!==h){var d=Math.abs(c*(.25/h));d&gt;180&amp;&amp;(d=180);var f=d/180;u+=p*d*(f/2),Math.abs(r._normalizeBearing(u,0))&lt;this._bearingSnap&amp;&amp;(u=r._normalizeBearing(0,u)),r.rotateTo(u,{duration:1e3*f,easing:_i,noMoveStart:!0},{originalEvent:t})}else o()}},xi.prototype._fireEvent=function(e,r){return this._map.fire(new t.Event(e,r?{originalEvent:r}:{}))},xi.prototype._drainInertiaBuffer=function(){for(var e=this._inertia,r=t.browser.now();e.length&gt;0&amp;&amp;r-e[0][0]&gt;160;)e.shift()};var bi=t.bezier(0,0,.3,1),wi=function(e,r){this._map=e,this._el=e.getCanvasContainer(),this._state="disabled",this._clickTolerance=r.clickTolerance||1,t.bindAll(["_onMove","_onMouseUp","_onTouchEnd","_onBlur","_onDragFrame"],this)};wi.prototype.isEnabled=function(){return"disabled"!==this._state},wi.prototype.isActive=function(){return"active"===this._state},wi.prototype.enable=function(){this.isEnabled()||(this._el.classList.add("mapboxgl-touch-drag-pan"),this._state="enabled")},wi.prototype.disable=function(){if(this.isEnabled())switch(this._el.classList.remove("mapboxgl-touch-drag-pan"),this._state){case"active":this._state="disabled",this._unbind(),this._deactivate(),this._fireEvent("dragend"),this._fireEvent("moveend");break;case"pending":this._state="disabled",this._unbind();break;default:this._state="disabled"}},wi.prototype.onMouseDown=function(e){"enabled"===this._state&amp;&amp;(e.ctrlKey||0!==r.mouseButton(e)||(r.addEventListener(t.window.document,"mousemove",this._onMove,{capture:!0}),r.addEventListener(t.window.document,"mouseup",this._onMouseUp),this._start(e)))},wi.prototype.onTouchStart=function(e){"enabled"===this._state&amp;&amp;(e.touches.length&gt;1||(r.addEventListener(t.window.document,"touchmove",this._onMove,{capture:!0,passive:!1}),r.addEventListener(t.window.document,"touchend",this._onTouchEnd),this._start(e)))},wi.prototype._start=function(e){t.window.addEventListener("blur",this._onBlur),this._state="pending",this._startPos=this._mouseDownPos=this._prevPos=this._lastPos=r.mousePos(this._el,e),this._inertia=[[t.browser.now(),this._startPos]]},wi.prototype._onMove=function(e){e.preventDefault();var i=r.mousePos(this._el,e);this._lastPos.equals(i)||"pending"===this._state&amp;&amp;i.dist(this._mouseDownPos)&lt;this._clickTolerance||(this._lastMoveEvent=e,this._lastPos=i,this._drainInertiaBuffer(),this._inertia.push([t.browser.now(),this._lastPos]),"pending"===this._state&amp;&amp;(this._state="active",this._fireEvent("dragstart",e),this._fireEvent("movestart",e)),this._frameId||(this._frameId=this._map._requestRenderFrame(this._onDragFrame)))},wi.prototype._onDragFrame=function(){this._frameId=null;var t=this._lastMoveEvent;if(t){var e=this._map.transform;e.setLocationAtPoint(e.pointLocation(this._prevPos),this._lastPos),this._fireEvent("drag",t),this._fireEvent("move",t),this._prevPos=this._lastPos,delete this._lastMoveEvent}},wi.prototype._onMouseUp=function(t){if(0===r.mouseButton(t))switch(this._state){case"active":this._state="enabled",r.suppressClick(),this._unbind(),this._deactivate(),this._inertialPan(t);break;case"pending":this._state="enabled",this._unbind()}},wi.prototype._onTouchEnd=function(t){switch(this._state){case"active":this._state="enabled",this._unbind(),this._deactivate(),this._inertialPan(t);break;case"pending":this._state="enabled",this._unbind()}},wi.prototype._onBlur=function(t){switch(this._state){case"active":this._state="enabled",this._unbind(),this._deactivate(),this._fireEvent("dragend",t),this._fireEvent("moveend",t);break;case"pending":this._state="enabled",this._unbind()}},wi.prototype._unbind=function(){r.removeEventListener(t.window.document,"touchmove",this._onMove,{capture:!0,passive:!1}),r.removeEventListener(t.window.document,"touchend",this._onTouchEnd),r.removeEventListener(t.window.document,"mousemove",this._onMove,{capture:!0}),r.removeEventListener(t.window.document,"mouseup",this._onMouseUp),r.removeEventListener(t.window,"blur",this._onBlur)},wi.prototype._deactivate=function(){this._frameId&amp;&amp;(this._map._cancelRenderFrame(this._frameId),this._frameId=null),delete this._lastMoveEvent,delete this._startPos,delete this._prevPos,delete this._mouseDownPos,delete this._lastPos},wi.prototype._inertialPan=function(t){this._fireEvent("dragend",t),this._drainInertiaBuffer();var e=this._inertia;if(e.length&lt;2)this._fireEvent("moveend",t);else{var r=e[e.length-1],i=e[0],n=r[1].sub(i[1]),o=(r[0]-i[0])/1e3;if(0===o||r[1].equals(i[1]))this._fireEvent("moveend",t);else{var a=n.mult(.3/o),s=a.mag();s&gt;1400&amp;&amp;(s=1400,a._unit()._mult(s));var l=s/750,u=a.mult(-l/2);this._map.panBy(u,{duration:1e3*l,easing:bi,noMoveStart:!0},{originalEvent:t})}}},wi.prototype._fireEvent=function(e,r){return this._map.fire(new t.Event(e,r?{originalEvent:r}:{}))},wi.prototype._drainInertiaBuffer=function(){for(var e=this._inertia,r=t.browser.now();e.length&gt;0&amp;&amp;r-e[0][0]&gt;160;)e.shift()};var Si=function(e){this._map=e,this._el=e.getCanvasContainer(),t.bindAll(["_onKeyDown"],this)};function Ei(t){return t*(2-t)}Si.prototype.isEnabled=function(){return!!this._enabled},Si.prototype.enable=function(){this.isEnabled()||(this._el.addEventListener("keydown",this._onKeyDown,!1),this._enabled=!0)},Si.prototype.disable=function(){this.isEnabled()&amp;&amp;(this._el.removeEventListener("keydown",this._onKeyDown),this._enabled=!1)},Si.prototype._onKeyDown=function(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){var e=0,r=0,i=0,n=0,o=0;switch(t.keyCode){case 61:case 107:case 171:case 187:e=1;break;case 189:case 109:case 173:e=-1;break;case 37:t.shiftKey?r=-1:(t.preventDefault(),n=-1);break;case 39:t.shiftKey?r=1:(t.preventDefault(),n=1);break;case 38:t.shiftKey?i=1:(t.preventDefault(),o=-1);break;case 40:t.shiftKey?i=-1:(o=1,t.preventDefault());break;default:return}var a=this._map,s=a.getZoom(),l={duration:300,delayEndEvents:500,easing:Ei,zoom:e?Math.round(s)+e*(t.shiftKey?2:1):s,bearing:a.getBearing()+15*r,pitch:a.getPitch()+10*i,offset:[100*-n,100*-o],center:a.getCenter()};a.easeTo(l,{originalEvent:t})}};var ki=function(e){this._map=e,t.bindAll(["_onDblClick","_onZoomEnd"],this)};ki.prototype.isEnabled=function(){return!!this._enabled},ki.prototype.isActive=function(){return!!this._active},ki.prototype.enable=function(){this.isEnabled()||(this._enabled=!0)},ki.prototype.disable=function(){this.isEnabled()&amp;&amp;(this._enabled=!1)},ki.prototype.onTouchStart=function(t){var e=this;if(this.isEnabled()&amp;&amp;!(t.points.length&gt;1))if(this._tapped){var r=t.points[0],i=this._tappedPoint;if(i&amp;&amp;i.dist(r)&lt;=30){t.originalEvent.preventDefault();var n=function(){e._tapped&amp;&amp;e._zoom(t),e._map.off("touchcancel",o),e._resetTapped()},o=function(){e._map.off("touchend",n),e._resetTapped()};this._map.once("touchend",n),this._map.once("touchcancel",o)}else this._resetTapped()}else this._tappedPoint=t.points[0],this._tapped=setTimeout((function(){e._tapped=null,e._tappedPoint=null}),300)},ki.prototype._resetTapped=function(){clearTimeout(this._tapped),this._tapped=null,this._tappedPoint=null},ki.prototype.onDblClick=function(t){this.isEnabled()&amp;&amp;(t.originalEvent.preventDefault(),this._zoom(t))},ki.prototype._zoom=function(t){this._active=!0,this._map.on("zoomend",this._onZoomEnd),this._map.zoomTo(this._map.getZoom()+(t.originalEvent.shiftKey?-1:1),{around:t.lngLat},t)},ki.prototype._onZoomEnd=function(){this._active=!1,this._map.off("zoomend",this._onZoomEnd)};var Ti=t.bezier(0,0,.15,1),Ai=function(e){this._map=e,this._el=e.getCanvasContainer(),t.bindAll(["_onMove","_onEnd","_onTouchFrame"],this)};Ai.prototype.isEnabled=function(){return!!this._enabled},Ai.prototype.enable=function(t){this.isEnabled()||(this._el.classList.add("mapboxgl-touch-zoom-rotate"),this._enabled=!0,this._aroundCenter=!!t&amp;&amp;"center"===t.around)},Ai.prototype.disable=function(){this.isEnabled()&amp;&amp;(this._el.classList.remove("mapboxgl-touch-zoom-rotate"),this._enabled=!1)},Ai.prototype.disableRotation=function(){this._rotationDisabled=!0},Ai.prototype.enableRotation=function(){this._rotationDisabled=!1},Ai.prototype.onStart=function(e){if(this.isEnabled()&amp;&amp;2===e.touches.length){var i=r.mousePos(this._el,e.touches[0]),n=r.mousePos(this._el,e.touches[1]),o=i.add(n).div(2);this._startVec=i.sub(n),this._startAround=this._map.transform.pointLocation(o),this._gestureIntent=void 0,this._inertia=[],r.addEventListener(t.window.document,"touchmove",this._onMove,{passive:!1}),r.addEventListener(t.window.document,"touchend",this._onEnd)}},Ai.prototype._getTouchEventData=function(t){var e=r.mousePos(this._el,t.touches[0]),i=r.mousePos(this._el,t.touches[1]),n=e.sub(i);return{vec:n,center:e.add(i).div(2),scale:n.mag()/this._startVec.mag(),bearing:this._rotationDisabled?0:180*n.angleWith(this._startVec)/Math.PI}},Ai.prototype._onMove=function(e){if(2===e.touches.length){var r=this._getTouchEventData(e),i=r.vec,n=r.scale,o=r.bearing;if(!this._gestureIntent){var a=this._rotationDisabled&amp;&amp;1!==n||Math.abs(1-n)&gt;.15;Math.abs(o)&gt;10?this._gestureIntent="rotate":a&amp;&amp;(this._gestureIntent="zoom"),this._gestureIntent&amp;&amp;(this._map.fire(new t.Event(this._gestureIntent+"start",{originalEvent:e})),this._map.fire(new t.Event("movestart",{originalEvent:e})),this._startVec=i)}this._lastTouchEvent=e,this._frameId||(this._frameId=this._map._requestRenderFrame(this._onTouchFrame)),e.preventDefault()}},Ai.prototype._onTouchFrame=function(){this._frameId=null;var e=this._gestureIntent;if(e){var r=this._map.transform;this._startScale||(this._startScale=r.scale,this._startBearing=r.bearing);var i=this._getTouchEventData(this._lastTouchEvent),n=i.center,o=i.bearing,a=i.scale,s=r.pointLocation(n),l=r.locationPoint(s);"rotate"===e&amp;&amp;(r.bearing=this._startBearing+o),r.zoom=r.scaleZoom(this._startScale*a),r.setLocationAtPoint(this._startAround,l),this._map.fire(new t.Event(e,{originalEvent:this._lastTouchEvent})),this._map.fire(new t.Event("move",{originalEvent:this._lastTouchEvent})),this._drainInertiaBuffer(),this._inertia.push([t.browser.now(),a,n])}},Ai.prototype._onEnd=function(e){r.removeEventListener(t.window.document,"touchmove",this._onMove,{passive:!1}),r.removeEventListener(t.window.document,"touchend",this._onEnd);var i=this._gestureIntent,n=this._startScale;if(this._frameId&amp;&amp;(this._map._cancelRenderFrame(this._frameId),this._frameId=null),delete this._gestureIntent,delete this._startScale,delete this._startBearing,delete this._lastTouchEvent,i){this._map.fire(new t.Event(i+"end",{originalEvent:e})),this._drainInertiaBuffer();var o=this._inertia,a=this._map;if(o.length&lt;2)a.snapToNorth({},{originalEvent:e});else{var s=o[o.length-1],l=o[0],u=a.transform.scaleZoom(n*s[1]),c=a.transform.scaleZoom(n*l[1]),p=u-c,h=(s[0]-l[0])/1e3,d=s[2];if(0!==h&amp;&amp;u!==c){var f=.15*p/h;Math.abs(f)&gt;2.5&amp;&amp;(f=f&gt;0?2.5:-2.5);var m=1e3*Math.abs(f/(12*.15)),y=u+f*m/2e3;y&lt;0&amp;&amp;(y=0),a.easeTo({zoom:y,duration:m,easing:Ti,around:this._aroundCenter?a.getCenter():a.unproject(d),noMoveStart:!0},{originalEvent:e})}else a.snapToNorth({},{originalEvent:e})}}},Ai.prototype._drainInertiaBuffer=function(){for(var e=this._inertia,r=t.browser.now();e.length&gt;2&amp;&amp;r-e[0][0]&gt;160;)e.shift()};var Ci={scrollZoom:gi,boxZoom:vi,dragRotate:xi,dragPan:wi,keyboard:Si,doubleClickZoom:ki,touchZoomRotate:Ai},Ii=function(e){function r(r,i){e.call(this),this._moving=!1,this._zooming=!1,this.transform=r,this._bearingSnap=i.bearingSnap,t.bindAll(["_renderFrameCallback"],this)}return e&amp;&amp;(r.__proto__=e),r.prototype=Object.create(e&amp;&amp;e.prototype),r.prototype.constructor=r,r.prototype.getCenter=function(){return new t.LngLat(this.transform.center.lng,this.transform.center.lat)},r.prototype.setCenter=function(t,e){return this.jumpTo({center:t},e)},r.prototype.panBy=function(e,r,i){return e=t.Point.convert(e).mult(-1),this.panTo(this.transform.center,t.extend({offset:e},r),i)},r.prototype.panTo=function(e,r,i){return this.easeTo(t.extend({center:e},r),i)},r.prototype.getZoom=function(){return this.transform.zoom},r.prototype.setZoom=function(t,e){return this.jumpTo({zoom:t},e),this},r.prototype.zoomTo=function(e,r,i){return this.easeTo(t.extend({zoom:e},r),i)},r.prototype.zoomIn=function(t,e){return this.zoomTo(this.getZoom()+1,t,e),this},r.prototype.zoomOut=function(t,e){return this.zoomTo(this.getZoom()-1,t,e),this},r.prototype.getBearing=function(){return this.transform.bearing},r.prototype.setBearing=function(t,e){return this.jumpTo({bearing:t},e),this},r.prototype.rotateTo=function(e,r,i){return this.easeTo(t.extend({bearing:e},r),i)},r.prototype.resetNorth=function(e,r){return this.rotateTo(0,t.extend({duration:1e3},e),r),this},r.prototype.resetNorthPitch=function(e,r){return this.easeTo(t.extend({bearing:0,pitch:0,duration:1e3},e),r),this},r.prototype.snapToNorth=function(t,e){return Math.abs(this.getBearing())&lt;this._bearingSnap?this.resetNorth(t,e):this},r.prototype.getPitch=function(){return this.transform.pitch},r.prototype.setPitch=function(t,e){return this.jumpTo({pitch:t},e),this},r.prototype.cameraForBounds=function(e,r){return e=t.LngLatBounds.convert(e),this._cameraForBoxAndBearing(e.getNorthWest(),e.getSouthEast(),0,r)},r.prototype._cameraForBoxAndBearing=function(e,r,i,n){if("number"==typeof(n=t.extend({padding:{top:0,bottom:0,right:0,left:0},offset:[0,0],maxZoom:this.transform.maxZoom},n)).padding){var o=n.padding;n.padding={top:o,bottom:o,right:o,left:o}}if(t.deepEqual(Object.keys(n.padding).sort((function(t,e){return t&lt;e?-1:t&gt;e?1:0})),["bottom","left","right","top"])){var a=this.transform,s=a.project(t.LngLat.convert(e)),l=a.project(t.LngLat.convert(r)),u=s.rotate(-i*Math.PI/180),c=l.rotate(-i*Math.PI/180),p=new t.Point(Math.max(u.x,c.x),Math.max(u.y,c.y)),h=new t.Point(Math.min(u.x,c.x),Math.min(u.y,c.y)),d=p.sub(h),f=(a.width-n.padding.left-n.padding.right)/d.x,m=(a.height-n.padding.top-n.padding.bottom)/d.y;if(!(m&lt;0||f&lt;0)){var y=Math.min(a.scaleZoom(a.scale*Math.min(f,m)),n.maxZoom),g=t.Point.convert(n.offset),v=(n.padding.left-n.padding.right)/2,_=(n.padding.top-n.padding.bottom)/2,x=new t.Point(g.x+v,g.y+_).mult(a.scale/a.zoomScale(y));return{center:a.unproject(s.add(l).div(2).sub(x)),zoom:y,bearing:i}}t.warnOnce("Map cannot fit within canvas with the given bounds, padding, and/or offset.")}else t.warnOnce("options.padding must be a positive number, or an Object with keys 'bottom', 'left', 'right', 'top'")},r.prototype.fitBounds=function(t,e,r){return this._fitInternal(this.cameraForBounds(t,e),e,r)},r.prototype.fitScreenCoordinates=function(e,r,i,n,o){return this._fitInternal(this._cameraForBoxAndBearing(this.transform.pointLocation(t.Point.convert(e)),this.transform.pointLocation(t.Point.convert(r)),i,n),n,o)},r.prototype._fitInternal=function(e,r,i){return e?(r=t.extend(e,r)).linear?this.easeTo(r,i):this.flyTo(r,i):this},r.prototype.jumpTo=function(e,r){this.stop();var i=this.transform,n=!1,o=!1,a=!1;return"zoom"in e&amp;&amp;i.zoom!==+e.zoom&amp;&amp;(n=!0,i.zoom=+e.zoom),void 0!==e.center&amp;&amp;(i.center=t.LngLat.convert(e.center)),"bearing"in e&amp;&amp;i.bearing!==+e.bearing&amp;&amp;(o=!0,i.bearing=+e.bearing),"pitch"in e&amp;&amp;i.pitch!==+e.pitch&amp;&amp;(a=!0,i.pitch=+e.pitch),this.fire(new t.Event("movestart",r)).fire(new t.Event("move",r)),n&amp;&amp;this.fire(new t.Event("zoomstart",r)).fire(new t.Event("zoom",r)).fire(new t.Event("zoomend",r)),o&amp;&amp;this.fire(new t.Event("rotatestart",r)).fire(new t.Event("rotate",r)).fire(new t.Event("rotateend",r)),a&amp;&amp;this.fire(new t.Event("pitchstart",r)).fire(new t.Event("pitch",r)).fire(new t.Event("pitchend",r)),this.fire(new t.Event("moveend",r))},r.prototype.easeTo=function(e,r){var i=this;this.stop(),(!1===(e=t.extend({offset:[0,0],duration:500,easing:t.ease},e)).animate||t.browser.prefersReducedMotion)&amp;&amp;(e.duration=0);var n=this.transform,o=this.getZoom(),a=this.getBearing(),s=this.getPitch(),l="zoom"in e?+e.zoom:o,u="bearing"in e?this._normalizeBearing(e.bearing,a):a,c="pitch"in e?+e.pitch:s,p=n.centerPoint.add(t.Point.convert(e.offset)),h=n.pointLocation(p),d=t.LngLat.convert(e.center||h);this._normalizeCenter(d);var f,m,y=n.project(h),g=n.project(d).sub(y),v=n.zoomScale(l-o);return e.around&amp;&amp;(f=t.LngLat.convert(e.around),m=n.locationPoint(f)),this._zooming=l!==o,this._rotating=a!==u,this._pitching=c!==s,this._prepareEase(r,e.noMoveStart),clearTimeout(this._easeEndTimeoutID),this._ease((function(e){if(i._zooming&amp;&amp;(n.zoom=t.number(o,l,e)),i._rotating&amp;&amp;(n.bearing=t.number(a,u,e)),i._pitching&amp;&amp;(n.pitch=t.number(s,c,e)),f)n.setLocationAtPoint(f,m);else{var h=n.zoomScale(n.zoom-o),d=l&gt;o?Math.min(2,v):Math.max(.5,v),_=Math.pow(d,1-e),x=n.unproject(y.add(g.mult(e*_)).mult(h));n.setLocationAtPoint(n.renderWorldCopies?x.wrap():x,p)}i._fireMoveEvents(r)}),(function(){e.delayEndEvents?i._easeEndTimeoutID=setTimeout((function(){return i._afterEase(r)}),e.delayEndEvents):i._afterEase(r)}),e),this},r.prototype._prepareEase=function(e,r){this._moving=!0,r||this.fire(new t.Event("movestart",e)),this._zooming&amp;&amp;this.fire(new t.Event("zoomstart",e)),this._rotating&amp;&amp;this.fire(new t.Event("rotatestart",e)),this._pitching&amp;&amp;this.fire(new t.Event("pitchstart",e))},r.prototype._fireMoveEvents=function(e){this.fire(new t.Event("move",e)),this._zooming&amp;&amp;this.fire(new t.Event("zoom",e)),this._rotating&amp;&amp;this.fire(new t.Event("rotate",e)),this._pitching&amp;&amp;this.fire(new t.Event("pitch",e))},r.prototype._afterEase=function(e){var r=this._zooming,i=this._rotating,n=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,r&amp;&amp;this.fire(new t.Event("zoomend",e)),i&amp;&amp;this.fire(new t.Event("rotateend",e)),n&amp;&amp;this.fire(new t.Event("pitchend",e)),this.fire(new t.Event("moveend",e))},r.prototype.flyTo=function(e,r){var i=this;if(t.browser.prefersReducedMotion){var n=t.pick(e,["center","zoom","bearing","pitch","around"]);return this.jumpTo(n,r)}this.stop(),e=t.extend({offset:[0,0],speed:1.2,curve:1.42,easing:t.ease},e);var o=this.transform,a=this.getZoom(),s=this.getBearing(),l=this.getPitch(),u="zoom"in e?t.clamp(+e.zoom,o.minZoom,o.maxZoom):a,c="bearing"in e?this._normalizeBearing(e.bearing,s):s,p="pitch"in e?+e.pitch:l,h=o.zoomScale(u-a),d=o.centerPoint.add(t.Point.convert(e.offset)),f=o.pointLocation(d),m=t.LngLat.convert(e.center||f);this._normalizeCenter(m);var y=o.project(f),g=o.project(m).sub(y),v=e.curve,_=Math.max(o.width,o.height),x=_/h,b=g.mag();if("minZoom"in e){var w=t.clamp(Math.min(e.minZoom,a,u),o.minZoom,o.maxZoom),S=_/o.zoomScale(w-a);v=Math.sqrt(S/b*2)}var E=v*v;function k(t){var e=(x*x-_*_+(t?-1:1)*E*E*b*b)/(2*(t?x:_)*E*b);return Math.log(Math.sqrt(e*e+1)-e)}function T(t){return(Math.exp(t)-Math.exp(-t))/2}function A(t){return(Math.exp(t)+Math.exp(-t))/2}var C=k(0),I=function(t){return A(C)/A(C+v*t)},P=function(t){return _*((A(C)*(T(e=C+v*t)/A(e))-T(C))/E)/b;var e},M=(k(1)-C)/v;if(Math.abs(b)&lt;1e-6||!isFinite(M)){if(Math.abs(_-x)&lt;1e-6)return this.easeTo(e,r);var z=x&lt;_?-1:1;M=Math.abs(Math.log(x/_))/v,P=function(){return 0},I=function(t){return Math.exp(z*v*t)}}if("duration"in e)e.duration=+e.duration;else{var D="screenSpeed"in e?+e.screenSpeed/v:+e.speed;e.duration=1e3*M/D}return e.maxDuration&amp;&amp;e.duration&gt;e.maxDuration&amp;&amp;(e.duration=0),this._zooming=!0,this._rotating=s!==c,this._pitching=p!==l,this._prepareEase(r,!1),this._ease((function(e){var n=e*M,h=1/I(n);o.zoom=1===e?u:a+o.scaleZoom(h),i._rotating&amp;&amp;(o.bearing=t.number(s,c,e)),i._pitching&amp;&amp;(o.pitch=t.number(l,p,e));var f=1===e?m:o.unproject(y.add(g.mult(P(n))).mult(h));o.setLocationAtPoint(o.renderWorldCopies?f.wrap():f,d),i._fireMoveEvents(r)}),(function(){return i._afterEase(r)}),e),this},r.prototype.isEasing=function(){return!!this._easeFrameId},r.prototype.stop=function(){if(this._easeFrameId&amp;&amp;(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var t=this._onEaseEnd;delete this._onEaseEnd,t.call(this)}return this},r.prototype._ease=function(e,r,i){!1===i.animate||0===i.duration?(e(1),r()):(this._easeStart=t.browser.now(),this._easeOptions=i,this._onEaseFrame=e,this._onEaseEnd=r,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},r.prototype._renderFrameCallback=function(){var e=Math.min((t.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(e)),e&lt;1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},r.prototype._normalizeBearing=function(e,r){e=t.wrap(e,-180,180);var i=Math.abs(e-r);return Math.abs(e-360-r)&lt;i&amp;&amp;(e-=360),Math.abs(e+360-r)&lt;i&amp;&amp;(e+=360),e},r.prototype._normalizeCenter=function(t){var e=this.transform;if(e.renderWorldCopies&amp;&amp;!e.lngRange){var r=t.lng-e.center.lng;t.lng+=r&gt;180?-360:r&lt;-180?360:0}},r}(t.Evented),Pi=function(e){void 0===e&amp;&amp;(e={}),this.options=e,t.bindAll(["_updateEditLink","_updateData","_updateCompact"],this)};Pi.prototype.getDefaultPosition=function(){return"bottom-right"},Pi.prototype.onAdd=function(t){var e=this.options&amp;&amp;this.options.compact;return this._map=t,this._container=r.create("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._innerContainer=r.create("div","mapboxgl-ctrl-attrib-inner",this._container),e&amp;&amp;this._container.classList.add("mapboxgl-compact"),this._updateAttributions(),this._updateEditLink(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("moveend",this._updateEditLink),void 0===e&amp;&amp;(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container},Pi.prototype.onRemove=function(){r.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0},Pi.prototype._updateEditLink=function(){var e=this._editLink;e||(e=this._editLink=this._container.querySelector(".mapbox-improve-map"));var r=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||t.config.ACCESS_TOKEN}];if(e){var i=r.reduce((function(t,e,i){return e.value&amp;&amp;(t+=e.key+"="+e.value+(i&lt;r.length-1?"&amp;":"")),t}),"?");e.href=t.config.FEEDBACK_URL+"/"+i+(this._map._hash?this._map._hash.getHashString(!0):""),e.rel="noopener nofollow"}},Pi.prototype._updateData=function(t){!t||"metadata"!==t.sourceDataType&amp;&amp;"style"!==t.dataType||(this._updateAttributions(),this._updateEditLink())},Pi.prototype._updateAttributions=function(){if(this._map.style){var t=[];if(this.options.customAttribution&amp;&amp;(Array.isArray(this.options.customAttribution)?t=t.concat(this.options.customAttribution.map((function(t){return"string"!=typeof t?"":t}))):"string"==typeof this.options.customAttribution&amp;&amp;t.push(this.options.customAttribution)),this._map.style.stylesheet){var e=this._map.style.stylesheet;this.styleOwner=e.owner,this.styleId=e.id}var r=this._map.style.sourceCaches;for(var i in r){var n=r[i];if(n.used){var o=n.getSource();o.attribution&amp;&amp;t.indexOf(o.attribution)&lt;0&amp;&amp;t.push(o.attribution)}}t.sort((function(t,e){return t.length-e.length}));var a=(t=t.filter((function(e,r){for(var i=r+1;i&lt;t.length;i++)if(t[i].indexOf(e)&gt;=0)return!1;return!0}))).join(" | ");a!==this._attribHTML&amp;&amp;(this._attribHTML=a,t.length?(this._innerContainer.innerHTML=a,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}},Pi.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth&lt;=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact")};var Mi=function(){t.bindAll(["_updateLogo"],this),t.bindAll(["_updateCompact"],this)};Mi.prototype.onAdd=function(t){this._map=t,this._container=r.create("div","mapboxgl-ctrl");var e=r.create("a","mapboxgl-ctrl-logo");return e.target="_blank",e.rel="noopener nofollow",e.href="https://www.mapbox.com/",e.setAttribute("aria-label","Mapbox logo"),e.setAttribute("rel","noopener nofollow"),this._container.appendChild(e),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container},Mi.prototype.onRemove=function(){r.remove(this._container),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)},Mi.prototype.getDefaultPosition=function(){return"bottom-left"},Mi.prototype._updateLogo=function(t){t&amp;&amp;"metadata"!==t.sourceDataType||(this._container.style.display=this._logoRequired()?"block":"none")},Mi.prototype._logoRequired=function(){if(this._map.style){var t=this._map.style.sourceCaches;for(var e in t)if(t[e].getSource().mapbox_logo)return!0;return!1}},Mi.prototype._updateCompact=function(){var t=this._container.children;if(t.length){var e=t[0];this._map.getCanvasContainer().offsetWidth&lt;250?e.classList.add("mapboxgl-compact"):e.classList.remove("mapboxgl-compact")}};var zi=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};zi.prototype.add=function(t){var e=++this._id;return this._queue.push({callback:t,id:e,cancelled:!1}),e},zi.prototype.remove=function(t){for(var e=this._currentlyRunning,r=0,i=e?this._queue.concat(e):this._queue;r&lt;i.length;r+=1){var n=i[r];if(n.id===t)return void(n.cancelled=!0)}},zi.prototype.run=function(){var t=this._currentlyRunning=this._queue;this._queue=[];for(var e=0,r=t;e&lt;r.length;e+=1){var i=r[e];if(!i.cancelled&amp;&amp;(i.callback(),this._cleared))break}this._cleared=!1,this._currentlyRunning=!1},zi.prototype.clear=function(){this._currentlyRunning&amp;&amp;(this._cleared=!0),this._queue=[]};var Di=t.window.HTMLImageElement,Li=t.window.HTMLElement,Ri={center:[0,0],zoom:0,bearing:0,pitch:0,minZoom:0,maxZoom:22,interactive:!0,scrollZoom:!0,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,bearingSnap:7,clickTolerance:3,hash:!1,attributionControl:!0,failIfMajorPerformanceCaveat:!1,preserveDrawingBuffer:!1,trackResize:!0,renderWorldCopies:!0,refreshExpiredTiles:!0,maxTileCacheSize:null,localIdeographFontFamily:"sans-serif",transformRequest:null,accessToken:null,fadeDuration:300,crossSourceCollisions:!0},Oi=function(i){function n(e){var n=this;if(null!=(e=t.extend({},Ri,e)).minZoom&amp;&amp;null!=e.maxZoom&amp;&amp;e.minZoom&gt;e.maxZoom)throw new Error("maxZoom must be greater than minZoom");var o=new pi(e.minZoom,e.maxZoom,e.renderWorldCopies);if(i.call(this,o,e),this._interactive=e.interactive,this._maxTileCacheSize=e.maxTileCacheSize,this._failIfMajorPerformanceCaveat=e.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=e.preserveDrawingBuffer,this._antialias=e.antialias,this._trackResize=e.trackResize,this._bearingSnap=e.bearingSnap,this._refreshExpiredTiles=e.refreshExpiredTiles,this._fadeDuration=e.fadeDuration,this._crossSourceCollisions=e.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=e.collectResourceTiming,this._renderTaskQueue=new zi,this._controls=[],this._mapId=t.uniqueId(),this._requestManager=new t.RequestManager(e.transformRequest,e.accessToken),"string"==typeof e.container){if(this._container=t.window.document.getElementById(e.container),!this._container)throw new Error("Container '"+e.container+"' not found.")}else{if(!(e.container instanceof Li))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=e.container}if(e.maxBounds&amp;&amp;this.setMaxBounds(e.maxBounds),t.bindAll(["_onWindowOnline","_onWindowResize","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),void 0===this.painter)throw new Error("Failed to initialize WebGL.");this.on("move",(function(){return n._update(!1)})),this.on("moveend",(function(){return n._update(!1)})),this.on("zoom",(function(){return n._update(!0)})),void 0!==t.window&amp;&amp;(t.window.addEventListener("online",this._onWindowOnline,!1),t.window.addEventListener("resize",this._onWindowResize,!1)),function(t,e){var i=t.getCanvasContainer(),n=null,o=!1,a=null;for(var s in Ci)t[s]=new Ci[s](t,e),e.interactive&amp;&amp;e[s]&amp;&amp;t[s].enable(e[s]);r.addEventListener(i,"mouseout",(function(e){t.fire(new fi("mouseout",t,e))})),r.addEventListener(i,"mousedown",(function(n){o=!0,a=r.mousePos(i,n);var s=new fi("mousedown",t,n);t.fire(s),s.defaultPrevented||(e.interactive&amp;&amp;!t.doubleClickZoom.isActive()&amp;&amp;t.stop(),t.boxZoom.onMouseDown(n),t.boxZoom.isActive()||t.dragPan.isActive()||t.dragRotate.onMouseDown(n),t.boxZoom.isActive()||t.dragRotate.isActive()||t.dragPan.onMouseDown(n))})),r.addEventListener(i,"mouseup",(function(e){var r=t.dragRotate.isActive();n&amp;&amp;!r&amp;&amp;t.fire(new fi("contextmenu",t,n)),n=null,o=!1,t.fire(new fi("mouseup",t,e))})),r.addEventListener(i,"mousemove",(function(e){if(!t.dragPan.isActive()&amp;&amp;!t.dragRotate.isActive()){for(var r=e.target;r&amp;&amp;r!==i;)r=r.parentNode;r===i&amp;&amp;t.fire(new fi("mousemove",t,e))}})),r.addEventListener(i,"mouseover",(function(e){for(var r=e.target;r&amp;&amp;r!==i;)r=r.parentNode;r===i&amp;&amp;t.fire(new fi("mouseover",t,e))})),r.addEventListener(i,"touchstart",(function(r){var i=new mi("touchstart",t,r);t.fire(i),i.defaultPrevented||(e.interactive&amp;&amp;t.stop(),t.boxZoom.isActive()||t.dragRotate.isActive()||t.dragPan.onTouchStart(r),t.touchZoomRotate.onStart(r),t.doubleClickZoom.onTouchStart(i))}),{passive:!1}),r.addEventListener(i,"touchmove",(function(e){t.fire(new mi("touchmove",t,e))}),{passive:!1}),r.addEventListener(i,"touchend",(function(e){t.fire(new mi("touchend",t,e))})),r.addEventListener(i,"touchcancel",(function(e){t.fire(new mi("touchcancel",t,e))})),r.addEventListener(i,"click",(function(n){var o=r.mousePos(i,n);(!a||o.equals(a)||o.dist(a)&lt;e.clickTolerance)&amp;&amp;t.fire(new fi("click",t,n))})),r.addEventListener(i,"dblclick",(function(e){var r=new fi("dblclick",t,e);t.fire(r),r.defaultPrevented||t.doubleClickZoom.onDblClick(r)})),r.addEventListener(i,"contextmenu",(function(e){var r=t.dragRotate.isActive();o||r?o&amp;&amp;(n=e):t.fire(new fi("contextmenu",t,e)),(t.dragRotate.isEnabled()||t.listens("contextmenu"))&amp;&amp;e.preventDefault()})),r.addEventListener(i,"wheel",(function(r){e.interactive&amp;&amp;t.stop();var i=new yi("wheel",t,r);t.fire(i),i.defaultPrevented||t.scrollZoom.onWheel(r)}),{passive:!1})}(this,e),this._hash=e.hash&amp;&amp;(new di).addTo(this),this._hash&amp;&amp;this._hash._onHashChange()||(this.jumpTo({center:e.center,zoom:e.zoom,bearing:e.bearing,pitch:e.pitch}),e.bounds&amp;&amp;(this.resize(),this.fitBounds(e.bounds,t.extend({},e.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=e.localIdeographFontFamily,e.style&amp;&amp;this.setStyle(e.style,{localIdeographFontFamily:e.localIdeographFontFamily}),e.attributionControl&amp;&amp;this.addControl(new Pi({customAttribution:e.customAttribution})),this.addControl(new Mi,e.logoPosition),this.on("style.load",(function(){n.transform.unmodified&amp;&amp;n.jumpTo(n.style.stylesheet)})),this.on("data",(function(e){n._update("style"===e.dataType),n.fire(new t.Event(e.dataType+"data",e))})),this.on("dataloading",(function(e){n.fire(new t.Event(e.dataType+"dataloading",e))}))}i&amp;&amp;(n.__proto__=i),n.prototype=Object.create(i&amp;&amp;i.prototype),n.prototype.constructor=n;var o={showTileBoundaries:{configurable:!0},showCollisionBoxes:{configurable:!0},showOverdrawInspector:{configurable:!0},repaint:{configurable:!0},vertices:{configurable:!0},version:{configurable:!0}};return n.prototype._getMapId=function(){return this._mapId},n.prototype.addControl=function(e,r){if(void 0===r&amp;&amp;e.getDefaultPosition&amp;&amp;(r=e.getDefaultPosition()),void 0===r&amp;&amp;(r="top-right"),!e||!e.onAdd)return this.fire(new t.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));var i=e.onAdd(this);this._controls.push(e);var n=this._controlPositions[r];return-1!==r.indexOf("bottom")?n.insertBefore(i,n.firstChild):n.appendChild(i),this},n.prototype.removeControl=function(e){if(!e||!e.onRemove)return this.fire(new t.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));var r=this._controls.indexOf(e);return r&gt;-1&amp;&amp;this._controls.splice(r,1),e.onRemove(this),this},n.prototype.resize=function(e){var r=this._containerDimensions(),i=r[0],n=r[1];return this._resizeCanvas(i,n),this.transform.resize(i,n),this.painter.resize(i,n),this.fire(new t.Event("movestart",e)).fire(new t.Event("move",e)).fire(new t.Event("resize",e)).fire(new t.Event("moveend",e)),this},n.prototype.getBounds=function(){return this.transform.getBounds()},n.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},n.prototype.setMaxBounds=function(e){return this.transform.setMaxBounds(t.LngLatBounds.convert(e)),this._update()},n.prototype.setMinZoom=function(t){if((t=null==t?0:t)&gt;=0&amp;&amp;t&lt;=this.transform.maxZoom)return this.transform.minZoom=t,this._update(),this.getZoom()&lt;t&amp;&amp;this.setZoom(t),this;throw new Error("minZoom must be between 0 and the current maxZoom, inclusive")},n.prototype.getMinZoom=function(){return this.transform.minZoom},n.prototype.setMaxZoom=function(t){if((t=null==t?22:t)&gt;=this.transform.minZoom)return this.transform.maxZoom=t,this._update(),this.getZoom()&gt;t&amp;&amp;this.setZoom(t),this;throw new Error("maxZoom must be greater than the current minZoom")},n.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},n.prototype.setRenderWorldCopies=function(t){return this.transform.renderWorldCopies=t,this._update()},n.prototype.getMaxZoom=function(){return this.transform.maxZoom},n.prototype.project=function(e){return this.transform.locationPoint(t.LngLat.convert(e))},n.prototype.unproject=function(e){return this.transform.pointLocation(t.Point.convert(e))},n.prototype.isMoving=function(){return this._moving||this.dragPan.isActive()||this.dragRotate.isActive()||this.scrollZoom.isActive()},n.prototype.isZooming=function(){return this._zooming||this.scrollZoom.isZooming()},n.prototype.isRotating=function(){return this._rotating||this.dragRotate.isActive()},n.prototype.on=function(t,e,r){var n=this;if(void 0===r)return i.prototype.on.call(this,t,e);var o=function(){var i;if("mouseenter"===t||"mouseover"===t){var o=!1;return{layer:e,listener:r,delegates:{mousemove:function(i){var a=n.getLayer(e)?n.queryRenderedFeatures(i.point,{layers:[e]}):[];a.length?o||(o=!0,r.call(n,new fi(t,n,i.originalEvent,{features:a}))):o=!1},mouseout:function(){o=!1}}}}if("mouseleave"===t||"mouseout"===t){var a=!1;return{layer:e,listener:r,delegates:{mousemove:function(i){(n.getLayer(e)?n.queryRenderedFeatures(i.point,{layers:[e]}):[]).length?a=!0:a&amp;&amp;(a=!1,r.call(n,new fi(t,n,i.originalEvent)))},mouseout:function(e){a&amp;&amp;(a=!1,r.call(n,new fi(t,n,e.originalEvent)))}}}}return{layer:e,listener:r,delegates:(i={},i[t]=function(t){var i=n.getLayer(e)?n.queryRenderedFeatures(t.point,{layers:[e]}):[];i.length&amp;&amp;(t.features=i,r.call(n,t),delete t.features)},i)}}();for(var a in this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[t]=this._delegatedListeners[t]||[],this._delegatedListeners[t].push(o),o.delegates)this.on(a,o.delegates[a]);return this},n.prototype.off=function(t,e,r){if(void 0===r)return i.prototype.off.call(this,t,e);if(this._delegatedListeners&amp;&amp;this._delegatedListeners[t])for(var n=this._delegatedListeners[t],o=0;o&lt;n.length;o++){var a=n[o];if(a.layer===e&amp;&amp;a.listener===r){for(var s in a.delegates)this.off(s,a.delegates[s]);return n.splice(o,1),this}}return this},n.prototype.queryRenderedFeatures=function(e,r){if(!this.style)return[];var i;if(void 0!==r||void 0===e||e instanceof t.Point||Array.isArray(e)||(r=e,e=void 0),r=r||{},(e=e||[[0,0],[this.transform.width,this.transform.height]])instanceof t.Point||"number"==typeof e[0])i=[t.Point.convert(e)];else{var n=t.Point.convert(e[0]),o=t.Point.convert(e[1]);i=[n,new t.Point(o.x,n.y),o,new t.Point(n.x,o.y),n]}return this.style.queryRenderedFeatures(i,r,this.transform)},n.prototype.querySourceFeatures=function(t,e){return this.style.querySourceFeatures(t,e)},n.prototype.setStyle=function(e,r){return!1!==(r=t.extend({},{localIdeographFontFamily:this._localIdeographFontFamily},r)).diff&amp;&amp;r.localIdeographFontFamily===this._localIdeographFontFamily&amp;&amp;this.style&amp;&amp;e?(this._diffStyle(e,r),this):(this._localIdeographFontFamily=r.localIdeographFontFamily,this._updateStyle(e,r))},n.prototype._updateStyle=function(t,e){return this.style&amp;&amp;(this.style.setEventedParent(null),this.style._remove()),t?(this.style=new Be(this,e||{}),this.style.setEventedParent(this,{style:this.style}),"string"==typeof t?this.style.loadURL(t):this.style.loadJSON(t),this):(delete this.style,this)},n.prototype._diffStyle=function(e,r){var i=this;if("string"==typeof e){var n=this._requestManager.normalizeStyleURL(e),o=this._requestManager.transformRequest(n,t.ResourceType.Style);t.getJSON(o,(function(e,n){e?i.fire(new t.ErrorEvent(e)):n&amp;&amp;i._updateDiff(n,r)}))}else"object"==typeof e&amp;&amp;this._updateDiff(e,r)},n.prototype._updateDiff=function(e,r){try{this.style.setState(e)&amp;&amp;this._update(!0)}catch(i){t.warnOnce("Unable to perform style diff: "+(i.message||i.error||i)+".  Rebuilding the style from scratch."),this._updateStyle(e,r)}},n.prototype.getStyle=function(){if(this.style)return this.style.serialize()},n.prototype.isStyleLoaded=function(){return this.style?this.style.loaded():t.warnOnce("There is no style added to the map.")},n.prototype.addSource=function(t,e){return this.style.addSource(t,e),this._update(!0)},n.prototype.isSourceLoaded=function(e){var r=this.style&amp;&amp;this.style.sourceCaches[e];if(void 0!==r)return r.loaded();this.fire(new t.ErrorEvent(new Error("There is no source with ID '"+e+"'")))},n.prototype.areTilesLoaded=function(){var t=this.style&amp;&amp;this.style.sourceCaches;for(var e in t){var r=t[e]._tiles;for(var i in r){var n=r[i];if("loaded"!==n.state&amp;&amp;"errored"!==n.state)return!1}}return!0},n.prototype.addSourceType=function(t,e,r){return this.style.addSourceType(t,e,r)},n.prototype.removeSource=function(t){return this.style.removeSource(t),this._update(!0)},n.prototype.getSource=function(t){return this.style.getSource(t)},n.prototype.addImage=function(e,r,i){void 0===i&amp;&amp;(i={});var n=i.pixelRatio;void 0===n&amp;&amp;(n=1);var o=i.sdf;if(void 0===o&amp;&amp;(o=!1),r instanceof Di){var a=t.browser.getImageData(r),s=a.width,l=a.height,u=a.data;this.style.addImage(e,{data:new t.RGBAImage({width:s,height:l},u),pixelRatio:n,sdf:o,version:0})}else{if(void 0===r.width||void 0===r.height)return this.fire(new t.ErrorEvent(new Error("Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));var c=r.width,p=r.height,h=r.data,d=r;this.style.addImage(e,{data:new t.RGBAImage({width:c,height:p},new Uint8Array(h)),pixelRatio:n,sdf:o,version:0,userImage:d}),d.onAdd&amp;&amp;d.onAdd(this,e)}},n.prototype.updateImage=function(e,r){var i=this.style.getImage(e);if(!i)return this.fire(new t.ErrorEvent(new Error("The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.")));var n=r instanceof Di?t.browser.getImageData(r):r,o=n.width,a=n.height,s=n.data;if(void 0===o||void 0===a)return this.fire(new t.ErrorEvent(new Error("Invalid arguments to map.updateImage(). The second argument must be an `HTMLImageElement`, `ImageData`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));if(o!==i.data.width||a!==i.data.height)return this.fire(new t.ErrorEvent(new Error("The width and height of the updated image must be that same as the previous version of the image")));var l=!(r instanceof Di);i.data.replace(s,l),this.style.updateImage(e,i)},n.prototype.hasImage=function(e){return e?!!this.style.getImage(e):(this.fire(new t.ErrorEvent(new Error("Missing required image id"))),!1)},n.prototype.removeImage=function(t){this.style.removeImage(t)},n.prototype.loadImage=function(e,r){t.getImage(this._requestManager.transformRequest(e,t.ResourceType.Image),r)},n.prototype.listImages=function(){return this.style.listImages()},n.prototype.addLayer=function(t,e){return this.style.addLayer(t,e),this._update(!0)},n.prototype.moveLayer=function(t,e){return this.style.moveLayer(t,e),this._update(!0)},n.prototype.removeLayer=function(t){return this.style.removeLayer(t),this._update(!0)},n.prototype.getLayer=function(t){return this.style.getLayer(t)},n.prototype.setFilter=function(t,e,r){return void 0===r&amp;&amp;(r={}),this.style.setFilter(t,e,r),this._update(!0)},n.prototype.setLayerZoomRange=function(t,e,r){return this.style.setLayerZoomRange(t,e,r),this._update(!0)},n.prototype.getFilter=function(t){return this.style.getFilter(t)},n.prototype.setPaintProperty=function(t,e,r,i){return void 0===i&amp;&amp;(i={}),this.style.setPaintProperty(t,e,r,i),this._update(!0)},n.prototype.getPaintProperty=function(t,e){return this.style.getPaintProperty(t,e)},n.prototype.setLayoutProperty=function(t,e,r,i){return void 0===i&amp;&amp;(i={}),this.style.setLayoutProperty(t,e,r,i),this._update(!0)},n.prototype.getLayoutProperty=function(t,e){return this.style.getLayoutProperty(t,e)},n.prototype.setLight=function(t,e){return void 0===e&amp;&amp;(e={}),this.style.setLight(t,e),this._update(!0)},n.prototype.getLight=function(){return this.style.getLight()},n.prototype.setFeatureState=function(t,e){return this.style.setFeatureState(t,e),this._update()},n.prototype.removeFeatureState=function(t,e){return this.style.removeFeatureState(t,e),this._update()},n.prototype.getFeatureState=function(t){return this.style.getFeatureState(t)},n.prototype.getContainer=function(){return this._container},n.prototype.getCanvasContainer=function(){return this._canvasContainer},n.prototype.getCanvas=function(){return this._canvas},n.prototype._containerDimensions=function(){var t=0,e=0;return this._container&amp;&amp;(t=this._container.clientWidth||400,e=this._container.clientHeight||300),[t,e]},n.prototype._detectMissingCSS=function(){"rgb(250, 128, 114)"!==t.window.getComputedStyle(this._missingCSSCanary).getPropertyValue("background-color")&amp;&amp;t.warnOnce("This page appears to be missing CSS declarations for Mapbox GL JS, which may cause the map to display incorrectly. Please ensure your page includes mapbox-gl.css, as described in https://www.mapbox.com/mapbox-gl-js/api/.")},n.prototype._setupContainer=function(){var t=this._container;t.classList.add("mapboxgl-map"),(this._missingCSSCanary=r.create("div","mapboxgl-canary",t)).style.visibility="hidden",this._detectMissingCSS();var e=this._canvasContainer=r.create("div","mapboxgl-canvas-container",t);this._interactive&amp;&amp;e.classList.add("mapboxgl-interactive"),this._canvas=r.create("canvas","mapboxgl-canvas",e),this._canvas.style.position="absolute",this._canvas.addEventListener("webglcontextlost",this._contextLost,!1),this._canvas.addEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.setAttribute("tabindex","0"),this._canvas.setAttribute("aria-label","Map");var i=this._containerDimensions();this._resizeCanvas(i[0],i[1]);var n=this._controlContainer=r.create("div","mapboxgl-control-container",t),o=this._controlPositions={};["top-left","top-right","bottom-left","bottom-right"].forEach((function(t){o[t]=r.create("div","mapboxgl-ctrl-"+t,n)}))},n.prototype._resizeCanvas=function(e,r){var i=t.window.devicePixelRatio||1;this._canvas.width=i*e,this._canvas.height=i*r,this._canvas.style.width=e+"px",this._canvas.style.height=r+"px"},n.prototype._setupPainter=function(){var r=t.extend({},e.webGLContextAttributes,{failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer,antialias:this._antialias||!1}),i=this._canvas.getContext("webgl",r)||this._canvas.getContext("experimental-webgl",r);i?(this.painter=new si(i,this.transform),t.webpSupported.testSupport(i)):this.fire(new t.ErrorEvent(new Error("Failed to initialize WebGL")))},n.prototype._contextLost=function(e){e.preventDefault(),this._frame&amp;&amp;(this._frame.cancel(),this._frame=null),this.fire(new t.Event("webglcontextlost",{originalEvent:e}))},n.prototype._contextRestored=function(e){this._setupPainter(),this.resize(),this._update(),this.fire(new t.Event("webglcontextrestored",{originalEvent:e}))},n.prototype.loaded=function(){return!this._styleDirty&amp;&amp;!this._sourcesDirty&amp;&amp;!!this.style&amp;&amp;this.style.loaded()},n.prototype._update=function(t){return this.style?(this._styleDirty=this._styleDirty||t,this._sourcesDirty=!0,this.triggerRepaint(),this):this},n.prototype._requestRenderFrame=function(t){return this._update(),this._renderTaskQueue.add(t)},n.prototype._cancelRenderFrame=function(t){this._renderTaskQueue.remove(t)},n.prototype._render=function(){this.painter.context.setDirty(),this.painter.setBaseState(),this._renderTaskQueue.run();var e=!1;if(this.style&amp;&amp;this._styleDirty){this._styleDirty=!1;var r=this.transform.zoom,i=t.browser.now();this.style.zoomHistory.update(r,i);var n=new t.EvaluationParameters(r,{now:i,fadeDuration:this._fadeDuration,zoomHistory:this.style.zoomHistory,transition:this.style.getTransition()}),o=n.crossFadingFactor();1===o&amp;&amp;o===this._crossFadingFactor||(e=!0,this._crossFadingFactor=o),this.style.update(n)}return this.style&amp;&amp;this._sourcesDirty&amp;&amp;(this._sourcesDirty=!1,this.style._updateSources(this.transform)),this._placementDirty=this.style&amp;&amp;this.style._updatePlacement(this.painter.transform,this.showCollisionBoxes,this._fadeDuration,this._crossSourceCollisions),this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showOverdrawInspector:this._showOverdrawInspector,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:this._fadeDuration}),this.fire(new t.Event("render")),this.loaded()&amp;&amp;!this._loaded&amp;&amp;(this._loaded=!0,this.fire(new t.Event("load"))),this.style&amp;&amp;(this.style.hasTransitions()||e)&amp;&amp;(this._styleDirty=!0),this.style&amp;&amp;!this._placementDirty&amp;&amp;this.style._releaseSymbolFadeTiles(),this._sourcesDirty||this._repaint||this._styleDirty||this._placementDirty?this.triggerRepaint():!this.isMoving()&amp;&amp;this.loaded()&amp;&amp;this.fire(new t.Event("idle")),this},n.prototype.remove=function(){this._hash&amp;&amp;this._hash.remove();for(var e=0,r=this._controls;e&lt;r.length;e+=1)r[e].onRemove(this);this._controls=[],this._frame&amp;&amp;(this._frame.cancel(),this._frame=null),this._renderTaskQueue.clear(),this.setStyle(null),void 0!==t.window&amp;&amp;(t.window.removeEventListener("resize",this._onWindowResize,!1),t.window.removeEventListener("online",this._onWindowOnline,!1));var i=this.painter.context.gl.getExtension("WEBGL_lose_context");i&amp;&amp;i.loseContext(),Bi(this._canvasContainer),Bi(this._controlContainer),Bi(this._missingCSSCanary),this._container.classList.remove("mapboxgl-map"),this.fire(new t.Event("remove"))},n.prototype.triggerRepaint=function(){var e=this;this.style&amp;&amp;!this._frame&amp;&amp;(this._frame=t.browser.frame((function(){e._frame=null,e._render()})))},n.prototype._onWindowOnline=function(){this._update()},n.prototype._onWindowResize=function(){this._trackResize&amp;&amp;this.resize()._update()},o.showTileBoundaries.get=function(){return!!this._showTileBoundaries},o.showTileBoundaries.set=function(t){this._showTileBoundaries!==t&amp;&amp;(this._showTileBoundaries=t,this._update())},o.showCollisionBoxes.get=function(){return!!this._showCollisionBoxes},o.showCollisionBoxes.set=function(t){this._showCollisionBoxes!==t&amp;&amp;(this._showCollisionBoxes=t,t?this.style._generateCollisionBoxes():this._update())},o.showOverdrawInspector.get=function(){return!!this._showOverdrawInspector},o.showOverdrawInspector.set=function(t){this._showOverdrawInspector!==t&amp;&amp;(this._showOverdrawInspector=t,this._update())},o.repaint.get=function(){return!!this._repaint},o.repaint.set=function(t){this._repaint!==t&amp;&amp;(this._repaint=t,this.triggerRepaint())},o.vertices.get=function(){return!!this._vertices},o.vertices.set=function(t){this._vertices=t,this._update()},n.prototype._setCacheLimits=function(e,r){t.setCacheLimits(e,r)},o.version.get=function(){return t.version},Object.defineProperties(n.prototype,o),n}(Ii);function Bi(t){t.parentNode&amp;&amp;t.parentNode.removeChild(t)}var Fi={showCompass:!0,showZoom:!0,visualizePitch:!1},ji=function(e){var i=this;this.options=t.extend({},Fi,e),this._container=r.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._container.addEventListener("contextmenu",(function(t){return t.preventDefault()})),this.options.showZoom&amp;&amp;(t.bindAll(["_updateZoomButtons"],this),this._zoomInButton=this._createButton("mapboxgl-ctrl-icon mapboxgl-ctrl-zoom-in","Zoom in",(function(){return i._map.zoomIn()})),this._zoomOutButton=this._createButton("mapboxgl-ctrl-icon mapboxgl-ctrl-zoom-out","Zoom out",(function(){return i._map.zoomOut()}))),this.options.showCompass&amp;&amp;(t.bindAll(["_rotateCompassArrow"],this),this._compass=this._createButton("mapboxgl-ctrl-icon mapboxgl-ctrl-compass","Reset bearing to north",(function(){i.options.visualizePitch?i._map.resetNorthPitch():i._map.resetNorth()})),this._compassArrow=r.create("span","mapboxgl-ctrl-compass-arrow",this._compass))};function Ui(e,r,i){if(e=new t.LngLat(e.lng,e.lat),r){var n=new t.LngLat(e.lng-360,e.lat),o=new t.LngLat(e.lng+360,e.lat),a=i.locationPoint(e).distSqr(r);i.locationPoint(n).distSqr(r)&lt;a?e=n:i.locationPoint(o).distSqr(r)&lt;a&amp;&amp;(e=o)}for(;Math.abs(e.lng-i.center.lng)&gt;180;){var s=i.locationPoint(e);if(s.x&gt;=0&amp;&amp;s.y&gt;=0&amp;&amp;s.x&lt;=i.width&amp;&amp;s.y&lt;=i.height)break;e.lng&gt;i.center.lng?e.lng-=360:e.lng+=360}return e}ji.prototype._updateZoomButtons=function(){var t=this._map.getZoom();t===this._map.getMaxZoom()?this._zoomInButton.classList.add("mapboxgl-ctrl-icon-disabled"):this._zoomInButton.classList.remove("mapboxgl-ctrl-icon-disabled"),t===this._map.getMinZoom()?this._zoomOutButton.classList.add("mapboxgl-ctrl-icon-disabled"):this._zoomOutButton.classList.remove("mapboxgl-ctrl-icon-disabled")},ji.prototype._rotateCompassArrow=function(){var t=this.options.visualizePitch?"scale("+1/Math.pow(Math.cos(this._map.transform.pitch*(Math.PI/180)),.5)+") rotateX("+this._map.transform.pitch+"deg) rotateZ("+this._map.transform.angle*(180/Math.PI)+"deg)":"rotate("+this._map.transform.angle*(180/Math.PI)+"deg)";this._compassArrow.style.transform=t},ji.prototype.onAdd=function(t){return this._map=t,this.options.showZoom&amp;&amp;(this._map.on("zoom",this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&amp;&amp;(this.options.visualizePitch&amp;&amp;this._map.on("pitch",this._rotateCompassArrow),this._map.on("rotate",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new xi(t,{button:"left",element:this._compass}),r.addEventListener(this._compass,"mousedown",this._handler.onMouseDown),r.addEventListener(this._compass,"touchstart",this._handler.onMouseDown,{passive:!1}),this._handler.enable()),this._container},ji.prototype.onRemove=function(){r.remove(this._container),this.options.showZoom&amp;&amp;this._map.off("zoom",this._updateZoomButtons),this.options.showCompass&amp;&amp;(this.options.visualizePitch&amp;&amp;this._map.off("pitch",this._rotateCompassArrow),this._map.off("rotate",this._rotateCompassArrow),r.removeEventListener(this._compass,"mousedown",this._handler.onMouseDown),r.removeEventListener(this._compass,"touchstart",this._handler.onMouseDown,{passive:!1}),this._handler.disable(),delete this._handler),delete this._map},ji.prototype._createButton=function(t,e,i){var n=r.create("button",t,this._container);return n.type="button",n.title=e,n.setAttribute("aria-label",e),n.addEventListener("click",i),n};var Ni={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};function Vi(t,e,r){var i=t.classList;for(var n in Ni)i.remove("mapboxgl-"+r+"-anchor-"+n);i.add("mapboxgl-"+r+"-anchor-"+e)}var qi,Wi=function(e){function i(i,n){if(e.call(this),(i instanceof t.window.HTMLElement||n)&amp;&amp;(i=t.extend({element:i},n)),t.bindAll(["_update","_onMove","_onUp","_addDragHandler","_onMapClick"],this),this._anchor=i&amp;&amp;i.anchor||"center",this._color=i&amp;&amp;i.color||"#3FB1CE",this._draggable=i&amp;&amp;i.draggable||!1,this._state="inactive",i&amp;&amp;i.element)this._element=i.element,this._offset=t.Point.convert(i&amp;&amp;i.offset||[0,0]);else{this._defaultMarker=!0,this._element=r.create("div");var o=r.createNS("http://www.w3.org/2000/svg","svg");o.setAttributeNS(null,"display","block"),o.setAttributeNS(null,"height","41px"),o.setAttributeNS(null,"width","27px"),o.setAttributeNS(null,"viewBox","0 0 27 41");var a=r.createNS("http://www.w3.org/2000/svg","g");a.setAttributeNS(null,"stroke","none"),a.setAttributeNS(null,"stroke-width","1"),a.setAttributeNS(null,"fill","none"),a.setAttributeNS(null,"fill-rule","evenodd");var s=r.createNS("http://www.w3.org/2000/svg","g");s.setAttributeNS(null,"fill-rule","nonzero");var l=r.createNS("http://www.w3.org/2000/svg","g");l.setAttributeNS(null,"transform","translate(3.0, 29.0)"),l.setAttributeNS(null,"fill","#000000");for(var u=0,c=[{rx:"10.5",ry:"5.25002273"},{rx:"10.5",ry:"5.25002273"},{rx:"9.5",ry:"4.77275007"},{rx:"8.5",ry:"4.29549936"},{rx:"7.5",ry:"3.81822308"},{rx:"6.5",ry:"3.34094679"},{rx:"5.5",ry:"2.86367051"},{rx:"4.5",ry:"2.38636864"}];u&lt;c.length;u+=1){var p=c[u],h=r.createNS("http://www.w3.org/2000/svg","ellipse");h.setAttributeNS(null,"opacity","0.04"),h.setAttributeNS(null,"cx","10.5"),h.setAttributeNS(null,"cy","5.80029008"),h.setAttributeNS(null,"rx",p.rx),h.setAttributeNS(null,"ry",p.ry),l.appendChild(h)}var d=r.createNS("http://www.w3.org/2000/svg","g");d.setAttributeNS(null,"fill",this._color);var f=r.createNS("http://www.w3.org/2000/svg","path");f.setAttributeNS(null,"d","M27,13.5 C27,19.074644 20.250001,27.000002 14.75,34.500002 C14.016665,35.500004 12.983335,35.500004 12.25,34.500002 C6.7499993,27.000002 0,19.222562 0,13.5 C0,6.0441559 6.0441559,0 13.5,0 C20.955844,0 27,6.0441559 27,13.5 Z"),d.appendChild(f);var m=r.createNS("http://www.w3.org/2000/svg","g");m.setAttributeNS(null,"opacity","0.25"),m.setAttributeNS(null,"fill","#000000");var y=r.createNS("http://www.w3.org/2000/svg","path");y.setAttributeNS(null,"d","M13.5,0 C6.0441559,0 0,6.0441559 0,13.5 C0,19.222562 6.7499993,27 12.25,34.5 C13,35.522727 14.016664,35.500004 14.75,34.5 C20.250001,27 27,19.074644 27,13.5 C27,6.0441559 20.955844,0 13.5,0 Z M13.5,1 C20.415404,1 26,6.584596 26,13.5 C26,15.898657 24.495584,19.181431 22.220703,22.738281 C19.945823,26.295132 16.705119,30.142167 13.943359,33.908203 C13.743445,34.180814 13.612715,34.322738 13.5,34.441406 C13.387285,34.322738 13.256555,34.180814 13.056641,33.908203 C10.284481,30.127985 7.4148684,26.314159 5.015625,22.773438 C2.6163816,19.232715 1,15.953538 1,13.5 C1,6.584596 6.584596,1 13.5,1 Z"),m.appendChild(y);var g=r.createNS("http://www.w3.org/2000/svg","g");g.setAttributeNS(null,"transform","translate(6.0, 7.0)"),g.setAttributeNS(null,"fill","#FFFFFF");var v=r.createNS("http://www.w3.org/2000/svg","g");v.setAttributeNS(null,"transform","translate(8.0, 8.0)");var _=r.createNS("http://www.w3.org/2000/svg","circle");_.setAttributeNS(null,"fill","#000000"),_.setAttributeNS(null,"opacity","0.25"),_.setAttributeNS(null,"cx","5.5"),_.setAttributeNS(null,"cy","5.5"),_.setAttributeNS(null,"r","5.4999962");var x=r.createNS("http://www.w3.org/2000/svg","circle");x.setAttributeNS(null,"fill","#FFFFFF"),x.setAttributeNS(null,"cx","5.5"),x.setAttributeNS(null,"cy","5.5"),x.setAttributeNS(null,"r","5.4999962"),v.appendChild(_),v.appendChild(x),s.appendChild(l),s.appendChild(d),s.appendChild(m),s.appendChild(g),s.appendChild(v),o.appendChild(s),this._element.appendChild(o),this._offset=t.Point.convert(i&amp;&amp;i.offset||[0,-14])}this._element.classList.add("mapboxgl-marker"),this._element.addEventListener("dragstart",(function(t){t.preventDefault()})),Vi(this._element,this._anchor,"marker"),this._popup=null}return e&amp;&amp;(i.__proto__=e),i.prototype=Object.create(e&amp;&amp;e.prototype),i.prototype.constructor=i,i.prototype.addTo=function(t){return this.remove(),this._map=t,t.getCanvasContainer().appendChild(this._element),t.on("move",this._update),t.on("moveend",this._update),this.setDraggable(this._draggable),this._update(),this._map.on("click",this._onMapClick),this},i.prototype.remove=function(){return this._map&amp;&amp;(this._map.off("click",this._onMapClick),this._map.off("move",this._update),this._map.off("moveend",this._update),this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler),this._map.off("mouseup",this._onUp),this._map.off("touchend",this._onUp),this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),delete this._map),r.remove(this._element),this._popup&amp;&amp;this._popup.remove(),this},i.prototype.getLngLat=function(){return this._lngLat},i.prototype.setLngLat=function(e){return this._lngLat=t.LngLat.convert(e),this._pos=null,this._popup&amp;&amp;this._popup.setLngLat(this._lngLat),this._update(),this},i.prototype.getElement=function(){return this._element},i.prototype.setPopup=function(t){if(this._popup&amp;&amp;(this._popup.remove(),this._popup=null),t){if(!("offset"in t.options)){var e=Math.sqrt(Math.pow(13.5,2)/2);t.options.offset=this._defaultMarker?{top:[0,0],"top-left":[0,0],"top-right":[0,0],bottom:[0,-38.1],"bottom-left":[e,-1*(24.6+e)],"bottom-right":[-e,-1*(24.6+e)],left:[13.5,-24.6],right:[-13.5,-24.6]}:this._offset}this._popup=t,this._lngLat&amp;&amp;this._popup.setLngLat(this._lngLat)}return this},i.prototype._onMapClick=function(t){var e=t.originalEvent.target,r=this._element;this._popup&amp;&amp;(e===r||r.contains(e))&amp;&amp;this.togglePopup()},i.prototype.getPopup=function(){return this._popup},i.prototype.togglePopup=function(){var t=this._popup;return t?(t.isOpen()?t.remove():t.addTo(this._map),this):this},i.prototype._update=function(t){this._map&amp;&amp;(this._map.transform.renderWorldCopies&amp;&amp;(this._lngLat=Ui(this._lngLat,this._pos,this._map.transform)),this._pos=this._map.project(this._lngLat)._add(this._offset),t&amp;&amp;"moveend"!==t.type||(this._pos=this._pos.round()),r.setTransform(this._element,Ni[this._anchor]+" translate("+this._pos.x+"px, "+this._pos.y+"px)"))},i.prototype.getOffset=function(){return this._offset},i.prototype.setOffset=function(e){return this._offset=t.Point.convert(e),this._update(),this},i.prototype._onMove=function(e){this._pos=e.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none","pending"===this._state&amp;&amp;(this._state="active",this.fire(new t.Event("dragstart"))),this.fire(new t.Event("drag"))},i.prototype._onUp=function(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),"active"===this._state&amp;&amp;this.fire(new t.Event("dragend")),this._state="inactive"},i.prototype._addDragHandler=function(t){this._element.contains(t.originalEvent.target)&amp;&amp;(t.preventDefault(),this._positionDelta=t.point.sub(this._pos).add(this._offset),this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},i.prototype.setDraggable=function(t){return this._draggable=!!t,this._map&amp;&amp;(t?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this},i.prototype.isDraggable=function(){return this._draggable},i}(t.Evented),Gi={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showUserLocation:!0},Hi=function(e){function i(r){e.call(this),this.options=t.extend({},Gi,r),t.bindAll(["_onSuccess","_onError","_finish","_setupUI","_updateCamera","_updateMarker"],this)}return e&amp;&amp;(i.__proto__=e),i.prototype=Object.create(e&amp;&amp;e.prototype),i.prototype.constructor=i,i.prototype.onAdd=function(e){var i;return this._map=e,this._container=r.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),i=this._setupUI,void 0!==qi?i(qi):void 0!==t.window.navigator.permissions?t.window.navigator.permissions.query({name:"geolocation"}).then((function(t){qi="denied"!==t.state,i(qi)})):(qi=!!t.window.navigator.geolocation,i(qi)),this._container},i.prototype.onRemove=function(){void 0!==this._geolocationWatchID&amp;&amp;(t.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&amp;&amp;this._userLocationDotMarker&amp;&amp;this._userLocationDotMarker.remove(),r.remove(this._container),this._map=void 0},i.prototype._onSuccess=function(e){if(this.options.trackUserLocation)switch(this._lastKnownPosition=e,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background")}this.options.showUserLocation&amp;&amp;"OFF"!==this._watchState&amp;&amp;this._updateMarker(e),this.options.trackUserLocation&amp;&amp;"ACTIVE_LOCK"!==this._watchState||this._updateCamera(e),this.options.showUserLocation&amp;&amp;this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new t.Event("geolocate",e)),this._finish()},i.prototype._updateCamera=function(e){var r=new t.LngLat(e.coords.longitude,e.coords.latitude),i=e.coords.accuracy,n=this._map.getBearing(),o=t.extend({bearing:n},this.options.fitBoundsOptions);this._map.fitBounds(r.toBounds(i),o,{geolocateSource:!0})},i.prototype._updateMarker=function(t){t?this._userLocationDotMarker.setLngLat([t.coords.longitude,t.coords.latitude]).addTo(this._map):this._userLocationDotMarker.remove()},i.prototype._onError=function(e){if(this.options.trackUserLocation)if(1===e.code)this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),void 0!==this._geolocationWatchID&amp;&amp;this._clearWatch();else switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting")}"OFF"!==this._watchState&amp;&amp;this.options.showUserLocation&amp;&amp;this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new t.Event("error",e)),this._finish()},i.prototype._finish=function(){this._timeoutId&amp;&amp;clearTimeout(this._timeoutId),this._timeoutId=void 0},i.prototype._setupUI=function(e){var i=this;!1!==e?(this._container.addEventListener("contextmenu",(function(t){return t.preventDefault()})),this._geolocateButton=r.create("button","mapboxgl-ctrl-icon mapboxgl-ctrl-geolocate",this._container),this._geolocateButton.type="button",this._geolocateButton.setAttribute("aria-label","Geolocate"),this.options.trackUserLocation&amp;&amp;(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&amp;&amp;(this._dotElement=r.create("div","mapboxgl-user-location-dot"),this._userLocationDotMarker=new Wi(this._dotElement),this.options.trackUserLocation&amp;&amp;(this._watchState="OFF")),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&amp;&amp;this._map.on("movestart",(function(e){e.geolocateSource||"ACTIVE_LOCK"!==i._watchState||(i._watchState="BACKGROUND",i._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),i._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),i.fire(new t.Event("trackuserlocationend")))}))):t.warnOnce("Geolocation support is not available, the GeolocateControl will not be visible.")},i.prototype.trigger=function(){if(!this._setup)return t.warnOnce("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new t.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new t.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&amp;&amp;this._updateCamera(this._lastKnownPosition),this.fire(new t.Event("trackuserlocationstart"))}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error")}"OFF"===this._watchState&amp;&amp;void 0!==this._geolocationWatchID?this._clearWatch():void 0===this._geolocationWatchID&amp;&amp;(this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),this._geolocationWatchID=t.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,this.options.positionOptions))}else t.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},i.prototype._clearWatch=function(){t.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&amp;&amp;this._updateMarker(null)},i}(t.Evented),Zi={maxWidth:100,unit:"metric"},Xi=function(e){this.options=t.extend({},Zi,e),t.bindAll(["_onMove","setUnit"],this)};function $i(t,e,r){var i,n,o,a,s,l,u=r&amp;&amp;r.maxWidth||100,c=t._container.clientHeight/2,p=(i=t.unproject([0,c]),n=t.unproject([u,c]),o=Math.PI/180,a=i.lat*o,s=n.lat*o,l=Math.sin(a)*Math.sin(s)+Math.cos(a)*Math.cos(s)*Math.cos((n.lng-i.lng)*o),6371e3*Math.acos(Math.min(l,1)));if(r&amp;&amp;"imperial"===r.unit){var h=3.2808*p;h&gt;5280?Yi(e,u,h/5280,"mi"):Yi(e,u,h,"ft")}else r&amp;&amp;"nautical"===r.unit?Yi(e,u,p/1852,"nm"):Yi(e,u,p,"m")}function Yi(t,e,r,i){var n,o,a,s=(n=r,(o=Math.pow(10,(""+Math.floor(n)).length-1))*(a=(a=n/o)&gt;=10?10:a&gt;=5?5:a&gt;=3?3:a&gt;=2?2:a&gt;=1?1:function(t){var e=Math.pow(10,Math.ceil(-Math.log(t)/Math.LN10));return Math.round(t*e)/e}(a))),l=s/r;"m"===i&amp;&amp;s&gt;=1e3&amp;&amp;(s/=1e3,i="km"),t.style.width=e*l+"px",t.innerHTML=s+i}Xi.prototype.getDefaultPosition=function(){return"bottom-left"},Xi.prototype._onMove=function(){$i(this._map,this._container,this.options)},Xi.prototype.onAdd=function(t){return this._map=t,this._container=r.create("div","mapboxgl-ctrl mapboxgl-ctrl-scale",t.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container},Xi.prototype.onRemove=function(){r.remove(this._container),this._map.off("move",this._onMove),this._map=void 0},Xi.prototype.setUnit=function(t){this.options.unit=t,$i(this._map,this._container,this.options)};var Ki=function(e){this._fullscreen=!1,e&amp;&amp;e.container&amp;&amp;(e.container instanceof t.window.HTMLElement?this._container=e.container:t.warnOnce("Full screen control 'container' must be a DOM element.")),t.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in t.window.document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in t.window.document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in t.window.document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in t.window.document&amp;&amp;(this._fullscreenchange="MSFullscreenChange"),this._className="mapboxgl-ctrl"};Ki.prototype.onAdd=function(e){return this._map=e,this._container||(this._container=this._map.getContainer()),this._controlContainer=r.create("div",this._className+" mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",t.warnOnce("This device does not support fullscreen mode.")),this._controlContainer},Ki.prototype.onRemove=function(){r.remove(this._controlContainer),this._map=null,t.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},Ki.prototype._checkFullscreenSupport=function(){return!!(t.window.document.fullscreenEnabled||t.window.document.mozFullScreenEnabled||t.window.document.msFullscreenEnabled||t.window.document.webkitFullscreenEnabled)},Ki.prototype._setupUI=function(){(this._fullscreenButton=r.create("button",this._className+"-icon "+this._className+"-fullscreen",this._controlContainer)).type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),t.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},Ki.prototype._updateTitle=function(){var t=this._isFullscreen()?"Exit fullscreen":"Enter fullscreen";this._fullscreenButton.setAttribute("aria-label",t),this._fullscreenButton.title=t},Ki.prototype._isFullscreen=function(){return this._fullscreen},Ki.prototype._changeIcon=function(){(t.window.document.fullscreenElement||t.window.document.mozFullScreenElement||t.window.document.webkitFullscreenElement||t.window.document.msFullscreenElement)===this._container!==this._fullscreen&amp;&amp;(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle(this._className+"-shrink"),this._fullscreenButton.classList.toggle(this._className+"-fullscreen"),this._updateTitle())},Ki.prototype._onClickFullscreen=function(){this._isFullscreen()?t.window.document.exitFullscreen?t.window.document.exitFullscreen():t.window.document.mozCancelFullScreen?t.window.document.mozCancelFullScreen():t.window.document.msExitFullscreen?t.window.document.msExitFullscreen():t.window.document.webkitCancelFullScreen&amp;&amp;t.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen&amp;&amp;this._container.webkitRequestFullscreen()};var Ji={closeButton:!0,closeOnClick:!0,className:"",maxWidth:"240px"},Qi=function(e){function i(r){e.call(this),this.options=t.extend(Object.create(Ji),r),t.bindAll(["_update","_onClickClose","remove"],this)}return e&amp;&amp;(i.__proto__=e),i.prototype=Object.create(e&amp;&amp;e.prototype),i.prototype.constructor=i,i.prototype.addTo=function(e){var r=this;return this._map=e,this.options.closeOnClick&amp;&amp;this._map.on("click",this._onClickClose),this._map.on("remove",this.remove),this._update(),this._trackPointer?(this._map.on("mousemove",(function(t){r._update(t.point)})),this._map.on("mouseup",(function(t){r._update(t.point)})),this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")):this._map.on("move",this._update),this.fire(new t.Event("open")),this},i.prototype.isOpen=function(){return!!this._map},i.prototype.remove=function(){return this._content&amp;&amp;r.remove(this._content),this._container&amp;&amp;(r.remove(this._container),delete this._container),this._map&amp;&amp;(this._map.off("move",this._update),this._map.off("click",this._onClickClose),this._map.off("remove",this.remove),this._map.off("mousemove"),delete this._map),this.fire(new t.Event("close")),this},i.prototype.getLngLat=function(){return this._lngLat},i.prototype.setLngLat=function(e){return this._lngLat=t.LngLat.convert(e),this._pos=null,this._trackPointer=!1,this._update(),this._map&amp;&amp;(this._map.on("move",this._update),this._map.off("mousemove"),this._container.classList.remove("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.remove("mapboxgl-track-pointer")),this},i.prototype.trackPointer=function(){var t=this;return this._trackPointer=!0,this._pos=null,this._map&amp;&amp;(this._map.off("move",this._update),this._map.on("mousemove",(function(e){t._update(e.point)})),this._map.on("drag",(function(e){t._update(e.point)})),this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")),this},i.prototype.getElement=function(){return this._container},i.prototype.setText=function(e){return this.setDOMContent(t.window.document.createTextNode(e))},i.prototype.setHTML=function(e){var r,i=t.window.document.createDocumentFragment(),n=t.window.document.createElement("body");for(n.innerHTML=e;r=n.firstChild;)i.appendChild(r);return this.setDOMContent(i)},i.prototype.getMaxWidth=function(){return this._container.style.maxWidth},i.prototype.setMaxWidth=function(t){return this.options.maxWidth=t,this._update(),this},i.prototype.setDOMContent=function(t){return this._createContent(),this._content.appendChild(t),this._update(),this},i.prototype._createContent=function(){this._content&amp;&amp;r.remove(this._content),this._content=r.create("div","mapboxgl-popup-content",this._container),this.options.closeButton&amp;&amp;(this._closeButton=r.create("button","mapboxgl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.setAttribute("aria-label","Close popup"),this._closeButton.innerHTML="&amp;#215;",this._closeButton.addEventListener("click",this._onClickClose))},i.prototype._update=function(e){var i=this,n=this._lngLat||this._trackPointer;if(this._map&amp;&amp;n&amp;&amp;this._content&amp;&amp;(this._container||(this._container=r.create("div","mapboxgl-popup",this._map.getContainer()),this._tip=r.create("div","mapboxgl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className&amp;&amp;this.options.className.split(" ").forEach((function(t){return i._container.classList.add(t)}))),this.options.maxWidth&amp;&amp;this._container.style.maxWidth!==this.options.maxWidth&amp;&amp;(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&amp;&amp;!this._trackPointer&amp;&amp;(this._lngLat=Ui(this._lngLat,this._pos,this._map.transform)),!this._trackPointer||e)){var o=this._pos=this._trackPointer&amp;&amp;e?e:this._map.project(this._lngLat),a=this.options.anchor,s=function e(r){if(r){if("number"==typeof r){var i=Math.round(Math.sqrt(.5*Math.pow(r,2)));return{center:new t.Point(0,0),top:new t.Point(0,r),"top-left":new t.Point(i,i),"top-right":new t.Point(-i,i),bottom:new t.Point(0,-r),"bottom-left":new t.Point(i,-i),"bottom-right":new t.Point(-i,-i),left:new t.Point(r,0),right:new t.Point(-r,0)}}if(r instanceof t.Point||Array.isArray(r)){var n=t.Point.convert(r);return{center:n,top:n,"top-left":n,"top-right":n,bottom:n,"bottom-left":n,"bottom-right":n,left:n,right:n}}return{center:t.Point.convert(r.center||[0,0]),top:t.Point.convert(r.top||[0,0]),"top-left":t.Point.convert(r["top-left"]||[0,0]),"top-right":t.Point.convert(r["top-right"]||[0,0]),bottom:t.Point.convert(r.bottom||[0,0]),"bottom-left":t.Point.convert(r["bottom-left"]||[0,0]),"bottom-right":t.Point.convert(r["bottom-right"]||[0,0]),left:t.Point.convert(r.left||[0,0]),right:t.Point.convert(r.right||[0,0])}}return e(new t.Point(0,0))}(this.options.offset);if(!a){var l,u=this._container.offsetWidth,c=this._container.offsetHeight;l=o.y+s.bottom.y&lt;c?["top"]:o.y&gt;this._map.transform.height-c?["bottom"]:[],o.x&lt;u/2?l.push("left"):o.x&gt;this._map.transform.width-u/2&amp;&amp;l.push("right"),a=0===l.length?"bottom":l.join("-")}var p=o.add(s[a]).round();r.setTransform(this._container,Ni[a]+" translate("+p.x+"px,"+p.y+"px)"),Vi(this._container,a,"popup")}},i.prototype._onClickClose=function(){this.remove()},i}(t.Evented),tn={version:t.version,supported:e,setRTLTextPlugin:t.setRTLTextPlugin,Map:Oi,NavigationControl:ji,GeolocateControl:Hi,AttributionControl:Pi,ScaleControl:Xi,FullscreenControl:Ki,Popup:Qi,Marker:Wi,Style:Be,LngLat:t.LngLat,LngLatBounds:t.LngLatBounds,Point:t.Point,MercatorCoordinate:t.MercatorCoordinate,Evented:t.Evented,config:t.config,get accessToken(){return t.config.ACCESS_TOKEN},set accessToken(e){t.config.ACCESS_TOKEN=e},get baseApiUrl(){return t.config.API_URL},set baseApiUrl(e){t.config.API_URL=e},get workerCount(){return Lt.workerCount},set workerCount(t){Lt.workerCount=t},get maxParallelImageRequests(){return t.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(e){t.config.MAX_PARALLEL_IMAGE_REQUESTS=e},clearStorage:function(e){t.clearTileCache(e)},workerUrl:""};return tn})),r}()},8026:(t,e,r)=&gt;{"use strict";r.r(e)},2047:(t,e,r)=&gt;{"use strict";r.r(e)},686:(t,e,r)=&gt;{var i,n,o,a=r(9755);n=[r(9755)],void 0===(o="function"==typeof(i=function(t){var e=function(){if(t&amp;&amp;t.fn&amp;&amp;t.fn.select2&amp;&amp;t.fn.select2.amd)var e=t.fn.select2.amd;var r,i,n;return e&amp;&amp;e.requirejs||(e?i=e:e={},function(t){var e,o,a,s,l={},u={},c={},p={},h=Object.prototype.hasOwnProperty,d=[].slice,f=/\.js$/;function m(t,e){return h.call(t,e)}function y(t,e){var r,i,n,o,a,s,l,u,p,h,d,m=e&amp;&amp;e.split("/"),y=c.map,g=y&amp;&amp;y["*"]||{};if(t){for(a=(t=t.split("/")).length-1,c.nodeIdCompat&amp;&amp;f.test(t[a])&amp;&amp;(t[a]=t[a].replace(f,"")),"."===t[0].charAt(0)&amp;&amp;m&amp;&amp;(t=m.slice(0,m.length-1).concat(t)),p=0;p&lt;t.length;p++)if("."===(d=t[p]))t.splice(p,1),p-=1;else if(".."===d){if(0===p||1===p&amp;&amp;".."===t[2]||".."===t[p-1])continue;p&gt;0&amp;&amp;(t.splice(p-1,2),p-=2)}t=t.join("/")}if((m||g)&amp;&amp;y){for(p=(r=t.split("/")).length;p&gt;0;p-=1){if(i=r.slice(0,p).join("/"),m)for(h=m.length;h&gt;0;h-=1)if((n=y[m.slice(0,h).join("/")])&amp;&amp;(n=n[i])){o=n,s=p;break}if(o)break;!l&amp;&amp;g&amp;&amp;g[i]&amp;&amp;(l=g[i],u=p)}!o&amp;&amp;l&amp;&amp;(o=l,s=u),o&amp;&amp;(r.splice(0,s,o),t=r.join("/"))}return t}function g(e,r){return function(){var i=d.call(arguments,0);return"string"!=typeof i[0]&amp;&amp;1===i.length&amp;&amp;i.push(null),o.apply(t,i.concat([e,r]))}}function v(t){return function(e){return y(e,t)}}function _(t){return function(e){l[t]=e}}function x(r){if(m(u,r)){var i=u[r];delete u[r],p[r]=!0,e.apply(t,i)}if(!m(l,r)&amp;&amp;!m(p,r))throw new Error("No "+r);return l[r]}function b(t){var e,r=t?t.indexOf("!"):-1;return r&gt;-1&amp;&amp;(e=t.substring(0,r),t=t.substring(r+1,t.length)),[e,t]}function w(t){return t?b(t):[]}function S(t){return function(){return c&amp;&amp;c.config&amp;&amp;c.config[t]||{}}}a=function(t,e){var r,i=b(t),n=i[0],o=e[1];return t=i[1],n&amp;&amp;(r=x(n=y(n,o))),n?t=r&amp;&amp;r.normalize?r.normalize(t,v(o)):y(t,o):(n=(i=b(t=y(t,o)))[0],t=i[1],n&amp;&amp;(r=x(n))),{f:n?n+"!"+t:t,n:t,pr:n,p:r}},s={require:function(t){return g(t)},exports:function(t){var e=l[t];return void 0!==e?e:l[t]={}},module:function(t){return{id:t,uri:"",exports:l[t],config:S(t)}}},e=function(e,r,i,n){var o,c,h,d,f,y,v,b=[],S=typeof i;if(y=w(n=n||e),"undefined"===S||"function"===S){for(r=!r.length&amp;&amp;i.length?["require","exports","module"]:r,f=0;f&lt;r.length;f+=1)if("require"===(c=(d=a(r[f],y)).f))b[f]=s.require(e);else if("exports"===c)b[f]=s.exports(e),v=!0;else if("module"===c)o=b[f]=s.module(e);else if(m(l,c)||m(u,c)||m(p,c))b[f]=x(c);else{if(!d.p)throw new Error(e+" missing "+c);d.p.load(d.n,g(n,!0),_(c),{}),b[f]=l[c]}h=i?i.apply(l[e],b):void 0,e&amp;&amp;(o&amp;&amp;o.exports!==t&amp;&amp;o.exports!==l[e]?l[e]=o.exports:h===t&amp;&amp;v||(l[e]=h))}else e&amp;&amp;(l[e]=i)},r=i=o=function(r,i,n,l,u){if("string"==typeof r)return s[r]?s[r](i):x(a(r,w(i)).f);if(!r.splice){if((c=r).deps&amp;&amp;o(c.deps,c.callback),!i)return;i.splice?(r=i,i=n,n=null):r=t}return i=i||function(){},"function"==typeof n&amp;&amp;(n=l,l=u),l?e(t,r,i,n):setTimeout((function(){e(t,r,i,n)}),4),o},o.config=function(t){return o(t)},r._defined=l,(n=function(t,e,r){if("string"!=typeof t)throw new Error("See almond README: incorrect module build, no module name");e.splice||(r=e,e=[]),m(l,t)||m(u,t)||(u[t]=[t,e,r])}).amd={jQuery:!0}}(),e.requirejs=r,e.require=i,e.define=n),e.define("almond",(function(){})),e.define("jquery",[],(function(){var e=t||a;return null==e&amp;&amp;console&amp;&amp;console.error&amp;&amp;console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),e})),e.define("select2/utils",["jquery"],(function(t){var e={};function r(t){var e=t.prototype,r=[];for(var i in e)"function"==typeof e[i]&amp;&amp;"constructor"!==i&amp;&amp;r.push(i);return r}e.Extend=function(t,e){var r={}.hasOwnProperty;function i(){this.constructor=t}for(var n in e)r.call(e,n)&amp;&amp;(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},e.Decorate=function(t,e){var i=r(e),n=r(t);function o(){var r=Array.prototype.unshift,i=e.prototype.constructor.length,n=t.prototype.constructor;i&gt;0&amp;&amp;(r.call(arguments,t.prototype.constructor),n=e.prototype.constructor),n.apply(this,arguments)}function a(){this.constructor=o}e.displayName=t.displayName,o.prototype=new a;for(var s=0;s&lt;n.length;s++){var l=n[s];o.prototype[l]=t.prototype[l]}for(var u=function(t){var r=function(){};t in o.prototype&amp;&amp;(r=o.prototype[t]);var i=e.prototype[t];return function(){return Array.prototype.unshift.call(arguments,r),i.apply(this,arguments)}},c=0;c&lt;i.length;c++){var p=i[c];o.prototype[p]=u(p)}return o};var i=function(){this.listeners={}};i.prototype.on=function(t,e){this.listeners=this.listeners||{},t in this.listeners?this.listeners[t].push(e):this.listeners[t]=[e]},i.prototype.trigger=function(t){var e=Array.prototype.slice,r=e.call(arguments,1);this.listeners=this.listeners||{},null==r&amp;&amp;(r=[]),0===r.length&amp;&amp;r.push({}),r[0]._type=t,t in this.listeners&amp;&amp;this.invoke(this.listeners[t],e.call(arguments,1)),"*"in this.listeners&amp;&amp;this.invoke(this.listeners["*"],arguments)},i.prototype.invoke=function(t,e){for(var r=0,i=t.length;r&lt;i;r++)t[r].apply(this,e)},e.Observable=i,e.generateChars=function(t){for(var e="",r=0;r&lt;t;r++)e+=Math.floor(36*Math.random()).toString(36);return e},e.bind=function(t,e){return function(){t.apply(e,arguments)}},e._convertData=function(t){for(var e in t){var r=e.split("-"),i=t;if(1!==r.length){for(var n=0;n&lt;r.length;n++){var o=r[n];(o=o.substring(0,1).toLowerCase()+o.substring(1))in i||(i[o]={}),n==r.length-1&amp;&amp;(i[o]=t[e]),i=i[o]}delete t[e]}}return t},e.hasScroll=function(e,r){var i=t(r),n=r.style.overflowX,o=r.style.overflowY;return(n!==o||"hidden"!==o&amp;&amp;"visible"!==o)&amp;&amp;("scroll"===n||"scroll"===o||i.innerHeight()&lt;r.scrollHeight||i.innerWidth()&lt;r.scrollWidth)},e.escapeMarkup=function(t){var e={"\\":"&amp;#92;","&amp;":"&amp;amp;","&lt;":"&amp;lt;","&gt;":"&amp;gt;",'"':"&amp;quot;","'":"&amp;#39;","/":"&amp;#47;"};return"string"!=typeof t?t:String(t).replace(/[&amp;&lt;&gt;"'\/\\]/g,(function(t){return e[t]}))},e.appendMany=function(e,r){if("1.7"===t.fn.jquery.substr(0,3)){var i=t();t.map(r,(function(t){i=i.add(t)})),r=i}e.append(r)},e.__cache={};var n=0;return e.GetUniqueElementId=function(t){var e=t.getAttribute("data-select2-id");return null==e&amp;&amp;(t.id?(e=t.id,t.setAttribute("data-select2-id",e)):(t.setAttribute("data-select2-id",++n),e=n.toString())),e},e.StoreData=function(t,r,i){var n=e.GetUniqueElementId(t);e.__cache[n]||(e.__cache[n]={}),e.__cache[n][r]=i},e.GetData=function(r,i){var n=e.GetUniqueElementId(r);return i?e.__cache[n]&amp;&amp;null!=e.__cache[n][i]?e.__cache[n][i]:t(r).data(i):e.__cache[n]},e.RemoveData=function(t){var r=e.GetUniqueElementId(t);null!=e.__cache[r]&amp;&amp;delete e.__cache[r],t.removeAttribute("data-select2-id")},e})),e.define("select2/results",["jquery","./utils"],(function(t,e){function r(t,e,i){this.$element=t,this.data=i,this.options=e,r.__super__.constructor.call(this)}return e.Extend(r,e.Observable),r.prototype.render=function(){var e=t('&lt;ul class="select2-results__options" role="listbox"&gt;&lt;/ul&gt;');return this.options.get("multiple")&amp;&amp;e.attr("aria-multiselectable","true"),this.$results=e,e},r.prototype.clear=function(){this.$results.empty()},r.prototype.displayMessage=function(e){var r=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var i=t('&lt;li role="alert" aria-live="assertive" class="select2-results__option"&gt;&lt;/li&gt;'),n=this.options.get("translations").get(e.message);i.append(r(n(e.args))),i[0].className+=" select2-results__message",this.$results.append(i)},r.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},r.prototype.append=function(t){this.hideLoading();var e=[];if(null!=t.results&amp;&amp;0!==t.results.length){t.results=this.sort(t.results);for(var r=0;r&lt;t.results.length;r++){var i=t.results[r],n=this.option(i);e.push(n)}this.$results.append(e)}else 0===this.$results.children().length&amp;&amp;this.trigger("results:message",{message:"noResults"})},r.prototype.position=function(t,e){e.find(".select2-results").append(t)},r.prototype.sort=function(t){return this.options.get("sorter")(t)},r.prototype.highlightFirstItem=function(){var t=this.$results.find(".select2-results__option[aria-selected]"),e=t.filter("[aria-selected=true]");e.length&gt;0?e.first().trigger("mouseenter"):t.first().trigger("mouseenter"),this.ensureHighlightVisible()},r.prototype.setClasses=function(){var r=this;this.data.current((function(i){var n=t.map(i,(function(t){return t.id.toString()}));r.$results.find(".select2-results__option[aria-selected]").each((function(){var r=t(this),i=e.GetData(this,"data"),o=""+i.id;null!=i.element&amp;&amp;i.element.selected||null==i.element&amp;&amp;t.inArray(o,n)&gt;-1?r.attr("aria-selected","true"):r.attr("aria-selected","false")}))}))},r.prototype.showLoading=function(t){this.hideLoading();var e={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(t)},r=this.option(e);r.className+=" loading-results",this.$results.prepend(r)},r.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},r.prototype.option=function(r){var i=document.createElement("li");i.className="select2-results__option";var n={role:"option","aria-selected":"false"},o=window.Element.prototype.matches||window.Element.prototype.msMatchesSelector||window.Element.prototype.webkitMatchesSelector;for(var a in(null!=r.element&amp;&amp;o.call(r.element,":disabled")||null==r.element&amp;&amp;r.disabled)&amp;&amp;(delete n["aria-selected"],n["aria-disabled"]="true"),null==r.id&amp;&amp;delete n["aria-selected"],null!=r._resultId&amp;&amp;(i.id=r._resultId),r.title&amp;&amp;(i.title=r.title),r.children&amp;&amp;(n.role="group",n["aria-label"]=r.text,delete n["aria-selected"]),n){var s=n[a];i.setAttribute(a,s)}if(r.children){var l=t(i),u=document.createElement("strong");u.className="select2-results__group",t(u),this.template(r,u);for(var c=[],p=0;p&lt;r.children.length;p++){var h=r.children[p],d=this.option(h);c.push(d)}var f=t("&lt;ul&gt;&lt;/ul&gt;",{class:"select2-results__options select2-results__options--nested"});f.append(c),l.append(u),l.append(f)}else this.template(r,i);return e.StoreData(i,"data",r),i},r.prototype.bind=function(r,i){var n=this,o=r.id+"-results";this.$results.attr("id",o),r.on("results:all",(function(t){n.clear(),n.append(t.data),r.isOpen()&amp;&amp;(n.setClasses(),n.highlightFirstItem())})),r.on("results:append",(function(t){n.append(t.data),r.isOpen()&amp;&amp;n.setClasses()})),r.on("query",(function(t){n.hideMessages(),n.showLoading(t)})),r.on("select",(function(){r.isOpen()&amp;&amp;(n.setClasses(),n.options.get("scrollAfterSelect")&amp;&amp;n.highlightFirstItem())})),r.on("unselect",(function(){r.isOpen()&amp;&amp;(n.setClasses(),n.options.get("scrollAfterSelect")&amp;&amp;n.highlightFirstItem())})),r.on("open",(function(){n.$results.attr("aria-expanded","true"),n.$results.attr("aria-hidden","false"),n.setClasses(),n.ensureHighlightVisible()})),r.on("close",(function(){n.$results.attr("aria-expanded","false"),n.$results.attr("aria-hidden","true"),n.$results.removeAttr("aria-activedescendant")})),r.on("results:toggle",(function(){var t=n.getHighlightedResults();0!==t.length&amp;&amp;t.trigger("mouseup")})),r.on("results:select",(function(){var t=n.getHighlightedResults();if(0!==t.length){var r=e.GetData(t[0],"data");"true"==t.attr("aria-selected")?n.trigger("close",{}):n.trigger("select",{data:r})}})),r.on("results:previous",(function(){var t=n.getHighlightedResults(),e=n.$results.find("[aria-selected]"),r=e.index(t);if(!(r&lt;=0)){var i=r-1;0===t.length&amp;&amp;(i=0);var o=e.eq(i);o.trigger("mouseenter");var a=n.$results.offset().top,s=o.offset().top,l=n.$results.scrollTop()+(s-a);0===i?n.$results.scrollTop(0):s-a&lt;0&amp;&amp;n.$results.scrollTop(l)}})),r.on("results:next",(function(){var t=n.getHighlightedResults(),e=n.$results.find("[aria-selected]"),r=e.index(t)+1;if(!(r&gt;=e.length)){var i=e.eq(r);i.trigger("mouseenter");var o=n.$results.offset().top+n.$results.outerHeight(!1),a=i.offset().top+i.outerHeight(!1),s=n.$results.scrollTop()+a-o;0===r?n.$results.scrollTop(0):a&gt;o&amp;&amp;n.$results.scrollTop(s)}})),r.on("results:focus",(function(t){t.element.addClass("select2-results__option--highlighted")})),r.on("results:message",(function(t){n.displayMessage(t)})),t.fn.mousewheel&amp;&amp;this.$results.on("mousewheel",(function(t){var e=n.$results.scrollTop(),r=n.$results.get(0).scrollHeight-e+t.deltaY,i=t.deltaY&gt;0&amp;&amp;e-t.deltaY&lt;=0,o=t.deltaY&lt;0&amp;&amp;r&lt;=n.$results.height();i?(n.$results.scrollTop(0),t.preventDefault(),t.stopPropagation()):o&amp;&amp;(n.$results.scrollTop(n.$results.get(0).scrollHeight-n.$results.height()),t.preventDefault(),t.stopPropagation())})),this.$results.on("mouseup",".select2-results__option[aria-selected]",(function(r){var i=t(this),o=e.GetData(this,"data");"true"!==i.attr("aria-selected")?n.trigger("select",{originalEvent:r,data:o}):n.options.get("multiple")?n.trigger("unselect",{originalEvent:r,data:o}):n.trigger("close",{})})),this.$results.on("mouseenter",".select2-results__option[aria-selected]",(function(r){var i=e.GetData(this,"data");n.getHighlightedResults().removeClass("select2-results__option--highlighted"),n.trigger("results:focus",{data:i,element:t(this)})}))},r.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},r.prototype.destroy=function(){this.$results.remove()},r.prototype.ensureHighlightVisible=function(){var t=this.getHighlightedResults();if(0!==t.length){var e=this.$results.find("[aria-selected]").index(t),r=this.$results.offset().top,i=t.offset().top,n=this.$results.scrollTop()+(i-r),o=i-r;n-=2*t.outerHeight(!1),e&lt;=2?this.$results.scrollTop(0):(o&gt;this.$results.outerHeight()||o&lt;0)&amp;&amp;this.$results.scrollTop(n)}},r.prototype.template=function(e,r){var i=this.options.get("templateResult"),n=this.options.get("escapeMarkup"),o=i(e,r);null==o?r.style.display="none":"string"==typeof o?r.innerHTML=n(o):t(r).append(o)},r})),e.define("select2/keys",[],(function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}})),e.define("select2/selection/base",["jquery","../utils","../keys"],(function(t,e,r){function i(t,e){this.$element=t,this.options=e,i.__super__.constructor.call(this)}return e.Extend(i,e.Observable),i.prototype.render=function(){var r=t('&lt;span class="select2-selection" role="combobox"  aria-haspopup="true" aria-expanded="false"&gt;&lt;/span&gt;');return this._tabindex=0,null!=e.GetData(this.$element[0],"old-tabindex")?this._tabindex=e.GetData(this.$element[0],"old-tabindex"):null!=this.$element.attr("tabindex")&amp;&amp;(this._tabindex=this.$element.attr("tabindex")),r.attr("title",this.$element.attr("title")),r.attr("tabindex",this._tabindex),r.attr("aria-disabled","false"),this.$selection=r,r},i.prototype.bind=function(t,e){var i=this,n=t.id+"-results";this.container=t,this.$selection.on("focus",(function(t){i.trigger("focus",t)})),this.$selection.on("blur",(function(t){i._handleBlur(t)})),this.$selection.on("keydown",(function(t){i.trigger("keypress",t),t.which===r.SPACE&amp;&amp;t.preventDefault()})),t.on("results:focus",(function(t){i.$selection.attr("aria-activedescendant",t.data._resultId)})),t.on("selection:update",(function(t){i.update(t.data)})),t.on("open",(function(){i.$selection.attr("aria-expanded","true"),i.$selection.attr("aria-owns",n),i._attachCloseHandler(t)})),t.on("close",(function(){i.$selection.attr("aria-expanded","false"),i.$selection.removeAttr("aria-activedescendant"),i.$selection.removeAttr("aria-owns"),i.$selection.trigger("focus"),i._detachCloseHandler(t)})),t.on("enable",(function(){i.$selection.attr("tabindex",i._tabindex),i.$selection.attr("aria-disabled","false")})),t.on("disable",(function(){i.$selection.attr("tabindex","-1"),i.$selection.attr("aria-disabled","true")}))},i.prototype._handleBlur=function(e){var r=this;window.setTimeout((function(){document.activeElement==r.$selection[0]||t.contains(r.$selection[0],document.activeElement)||r.trigger("blur",e)}),1)},i.prototype._attachCloseHandler=function(r){t(document.body).on("mousedown.select2."+r.id,(function(r){var i=t(r.target).closest(".select2");t(".select2.select2-container--open").each((function(){this!=i[0]&amp;&amp;e.GetData(this,"element").select2("close")}))}))},i.prototype._detachCloseHandler=function(e){t(document.body).off("mousedown.select2."+e.id)},i.prototype.position=function(t,e){e.find(".selection").append(t)},i.prototype.destroy=function(){this._detachCloseHandler(this.container)},i.prototype.update=function(t){throw new Error("The `update` method must be defined in child classes.")},i.prototype.isEnabled=function(){return!this.isDisabled()},i.prototype.isDisabled=function(){return this.options.get("disabled")},i})),e.define("select2/selection/single",["jquery","./base","../utils","../keys"],(function(t,e,r,i){function n(){n.__super__.constructor.apply(this,arguments)}return r.Extend(n,e),n.prototype.render=function(){var t=n.__super__.render.call(this);return t.addClass("select2-selection--single"),t.html('&lt;span class="select2-selection__rendered"&gt;&lt;/span&gt;&lt;span class="select2-selection__arrow" role="presentation"&gt;&lt;b role="presentation"&gt;&lt;/b&gt;&lt;/span&gt;'),t},n.prototype.bind=function(t,e){var r=this;n.__super__.bind.apply(this,arguments);var i=t.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",i).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",i),this.$selection.on("mousedown",(function(t){1===t.which&amp;&amp;r.trigger("toggle",{originalEvent:t})})),this.$selection.on("focus",(function(t){})),this.$selection.on("blur",(function(t){})),t.on("focus",(function(e){t.isOpen()||r.$selection.trigger("focus")}))},n.prototype.clear=function(){var t=this.$selection.find(".select2-selection__rendered");t.empty(),t.removeAttr("title")},n.prototype.display=function(t,e){var r=this.options.get("templateSelection");return this.options.get("escapeMarkup")(r(t,e))},n.prototype.selectionContainer=function(){return t("&lt;span&gt;&lt;/span&gt;")},n.prototype.update=function(t){if(0!==t.length){var e=t[0],r=this.$selection.find(".select2-selection__rendered"),i=this.display(e,r);r.empty().append(i);var n=e.title||e.text;n?r.attr("title",n):r.removeAttr("title")}else this.clear()},n})),e.define("select2/selection/multiple",["jquery","./base","../utils"],(function(t,e,r){function i(t,e){i.__super__.constructor.apply(this,arguments)}return r.Extend(i,e),i.prototype.render=function(){var t=i.__super__.render.call(this);return t.addClass("select2-selection--multiple"),t.html('&lt;ul class="select2-selection__rendered"&gt;&lt;/ul&gt;'),t},i.prototype.bind=function(e,n){var o=this;i.__super__.bind.apply(this,arguments),this.$selection.on("click",(function(t){o.trigger("toggle",{originalEvent:t})})),this.$selection.on("click",".select2-selection__choice__remove",(function(e){if(!o.isDisabled()){var i=t(this).parent(),n=r.GetData(i[0],"data");o.trigger("unselect",{originalEvent:e,data:n})}}))},i.prototype.clear=function(){var t=this.$selection.find(".select2-selection__rendered");t.empty(),t.removeAttr("title")},i.prototype.display=function(t,e){var r=this.options.get("templateSelection");return this.options.get("escapeMarkup")(r(t,e))},i.prototype.selectionContainer=function(){return t('&lt;li class="select2-selection__choice"&gt;&lt;span class="select2-selection__choice__remove" role="presentation"&gt;&amp;times;&lt;/span&gt;&lt;/li&gt;')},i.prototype.update=function(t){if(this.clear(),0!==t.length){for(var e=[],i=0;i&lt;t.length;i++){var n=t[i],o=this.selectionContainer(),a=this.display(n,o);o.append(a);var s=n.title||n.text;s&amp;&amp;o.attr("title",s),r.StoreData(o[0],"data",n),e.push(o)}var l=this.$selection.find(".select2-selection__rendered");r.appendMany(l,e)}},i})),e.define("select2/selection/placeholder",["../utils"],(function(t){function e(t,e,r){this.placeholder=this.normalizePlaceholder(r.get("placeholder")),t.call(this,e,r)}return e.prototype.normalizePlaceholder=function(t,e){return"string"==typeof e&amp;&amp;(e={id:"",text:e}),e},e.prototype.createPlaceholder=function(t,e){var r=this.selectionContainer();return r.html(this.display(e)),r.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),r},e.prototype.update=function(t,e){var r=1==e.length&amp;&amp;e[0].id!=this.placeholder.id;if(e.length&gt;1||r)return t.call(this,e);this.clear();var i=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(i)},e})),e.define("select2/selection/allowClear",["jquery","../keys","../utils"],(function(t,e,r){function i(){}return i.prototype.bind=function(t,e,r){var i=this;t.call(this,e,r),null==this.placeholder&amp;&amp;this.options.get("debug")&amp;&amp;window.console&amp;&amp;console.error&amp;&amp;console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",(function(t){i._handleClear(t)})),e.on("keypress",(function(t){i._handleKeyboardClear(t,e)}))},i.prototype._handleClear=function(t,e){if(!this.isDisabled()){var i=this.$selection.find(".select2-selection__clear");if(0!==i.length){e.stopPropagation();var n=r.GetData(i[0],"data"),o=this.$element.val();this.$element.val(this.placeholder.id);var a={data:n};if(this.trigger("clear",a),a.prevented)this.$element.val(o);else{for(var s=0;s&lt;n.length;s++)if(a={data:n[s]},this.trigger("unselect",a),a.prevented)return void this.$element.val(o);this.$element.trigger("input").trigger("change"),this.trigger("toggle",{})}}}},i.prototype._handleKeyboardClear=function(t,r,i){i.isOpen()||r.which!=e.DELETE&amp;&amp;r.which!=e.BACKSPACE||this._handleClear(r)},i.prototype.update=function(e,i){if(e.call(this,i),!(this.$selection.find(".select2-selection__placeholder").length&gt;0||0===i.length)){var n=this.options.get("translations").get("removeAllItems"),o=t('&lt;span class="select2-selection__clear" title="'+n()+'"&gt;&amp;times;&lt;/span&gt;');r.StoreData(o[0],"data",i),this.$selection.find(".select2-selection__rendered").prepend(o)}},i})),e.define("select2/selection/search",["jquery","../utils","../keys"],(function(t,e,r){function i(t,e,r){t.call(this,e,r)}return i.prototype.render=function(e){var r=t('&lt;li class="select2-search select2-search--inline"&gt;&lt;input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /&gt;&lt;/li&gt;');this.$searchContainer=r,this.$search=r.find("input");var i=e.call(this);return this._transferTabIndex(),i},i.prototype.bind=function(t,i,n){var o=this,a=i.id+"-results";t.call(this,i,n),i.on("open",(function(){o.$search.attr("aria-controls",a),o.$search.trigger("focus")})),i.on("close",(function(){o.$search.val(""),o.$search.removeAttr("aria-controls"),o.$search.removeAttr("aria-activedescendant"),o.$search.trigger("focus")})),i.on("enable",(function(){o.$search.prop("disabled",!1),o._transferTabIndex()})),i.on("disable",(function(){o.$search.prop("disabled",!0)})),i.on("focus",(function(t){o.$search.trigger("focus")})),i.on("results:focus",(function(t){t.data._resultId?o.$search.attr("aria-activedescendant",t.data._resultId):o.$search.removeAttr("aria-activedescendant")})),this.$selection.on("focusin",".select2-search--inline",(function(t){o.trigger("focus",t)})),this.$selection.on("focusout",".select2-search--inline",(function(t){o._handleBlur(t)})),this.$selection.on("keydown",".select2-search--inline",(function(t){if(t.stopPropagation(),o.trigger("keypress",t),o._keyUpPrevented=t.isDefaultPrevented(),t.which===r.BACKSPACE&amp;&amp;""===o.$search.val()){var i=o.$searchContainer.prev(".select2-selection__choice");if(i.length&gt;0){var n=e.GetData(i[0],"data");o.searchRemoveChoice(n),t.preventDefault()}}})),this.$selection.on("click",".select2-search--inline",(function(t){o.$search.val()&amp;&amp;t.stopPropagation()}));var s=document.documentMode,l=s&amp;&amp;s&lt;=11;this.$selection.on("input.searchcheck",".select2-search--inline",(function(t){l?o.$selection.off("input.search input.searchcheck"):o.$selection.off("keyup.search")})),this.$selection.on("keyup.search input.search",".select2-search--inline",(function(t){if(l&amp;&amp;"input"===t.type)o.$selection.off("input.search input.searchcheck");else{var e=t.which;e!=r.SHIFT&amp;&amp;e!=r.CTRL&amp;&amp;e!=r.ALT&amp;&amp;e!=r.TAB&amp;&amp;o.handleSearch(t)}}))},i.prototype._transferTabIndex=function(t){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},i.prototype.createPlaceholder=function(t,e){this.$search.attr("placeholder",e.text)},i.prototype.update=function(t,e){var r=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),t.call(this,e),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),r&amp;&amp;this.$search.trigger("focus")},i.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},i.prototype.searchRemoveChoice=function(t,e){this.trigger("unselect",{data:e}),this.$search.val(e.text),this.handleSearch()},i.prototype.resizeSearch=function(){this.$search.css("width","25px");var t="";t=""!==this.$search.attr("placeholder")?this.$selection.find(".select2-selection__rendered").width():.75*(this.$search.val().length+1)+"em",this.$search.css("width",t)},i})),e.define("select2/selection/eventRelay",["jquery"],(function(t){function e(){}return e.prototype.bind=function(e,r,i){var n=this,o=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"],a=["opening","closing","selecting","unselecting","clearing"];e.call(this,r,i),r.on("*",(function(e,r){if(-1!==t.inArray(e,o)){r=r||{};var i=t.Event("select2:"+e,{params:r});n.$element.trigger(i),-1!==t.inArray(e,a)&amp;&amp;(r.prevented=i.isDefaultPrevented())}}))},e})),e.define("select2/translation",["jquery","require"],(function(t,e){function r(t){this.dict=t||{}}return r.prototype.all=function(){return this.dict},r.prototype.get=function(t){return this.dict[t]},r.prototype.extend=function(e){this.dict=t.extend({},e.all(),this.dict)},r._cache={},r.loadPath=function(t){if(!(t in r._cache)){var i=e(t);r._cache[t]=i}return new r(r._cache[t])},r})),e.define("select2/diacritics",[],(function(){return{"Ⓐ":"A",Ａ:"A",À:"A",Á:"A",Â:"A",Ầ:"A",Ấ:"A",Ẫ:"A",Ẩ:"A",Ã:"A",Ā:"A",Ă:"A",Ằ:"A",Ắ:"A",Ẵ:"A",Ẳ:"A",Ȧ:"A",Ǡ:"A",Ä:"A",Ǟ:"A",Ả:"A",Å:"A",Ǻ:"A",Ǎ:"A",Ȁ:"A",Ȃ:"A",Ạ:"A",Ậ:"A",Ặ:"A",Ḁ:"A",Ą:"A",Ⱥ:"A",Ɐ:"A",Ꜳ:"AA",Æ:"AE",Ǽ:"AE",Ǣ:"AE",Ꜵ:"AO",Ꜷ:"AU",Ꜹ:"AV",Ꜻ:"AV",Ꜽ:"AY","Ⓑ":"B",Ｂ:"B",Ḃ:"B",Ḅ:"B",Ḇ:"B",Ƀ:"B",Ƃ:"B",Ɓ:"B","Ⓒ":"C",Ｃ:"C",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",Ç:"C",Ḉ:"C",Ƈ:"C",Ȼ:"C",Ꜿ:"C","Ⓓ":"D",Ｄ:"D",Ḋ:"D",Ď:"D",Ḍ:"D",Ḑ:"D",Ḓ:"D",Ḏ:"D",Đ:"D",Ƌ:"D",Ɗ:"D",Ɖ:"D",Ꝺ:"D",Ǳ:"DZ",Ǆ:"DZ",ǲ:"Dz",ǅ:"Dz","Ⓔ":"E",Ｅ:"E",È:"E",É:"E",Ê:"E",Ề:"E",Ế:"E",Ễ:"E",Ể:"E",Ẽ:"E",Ē:"E",Ḕ:"E",Ḗ:"E",Ĕ:"E",Ė:"E",Ë:"E",Ẻ:"E",Ě:"E",Ȅ:"E",Ȇ:"E",Ẹ:"E",Ệ:"E",Ȩ:"E",Ḝ:"E",Ę:"E",Ḙ:"E",Ḛ:"E",Ɛ:"E",Ǝ:"E","Ⓕ":"F",Ｆ:"F",Ḟ:"F",Ƒ:"F",Ꝼ:"F","Ⓖ":"G",Ｇ:"G",Ǵ:"G",Ĝ:"G",Ḡ:"G",Ğ:"G",Ġ:"G",Ǧ:"G",Ģ:"G",Ǥ:"G",Ɠ:"G",Ꞡ:"G",Ᵹ:"G",Ꝿ:"G","Ⓗ":"H",Ｈ:"H",Ĥ:"H",Ḣ:"H",Ḧ:"H",Ȟ:"H",Ḥ:"H",Ḩ:"H",Ḫ:"H",Ħ:"H",Ⱨ:"H",Ⱶ:"H",Ɥ:"H","Ⓘ":"I",Ｉ:"I",Ì:"I",Í:"I",Î:"I",Ĩ:"I",Ī:"I",Ĭ:"I",İ:"I",Ï:"I",Ḯ:"I",Ỉ:"I",Ǐ:"I",Ȉ:"I",Ȋ:"I",Ị:"I",Į:"I",Ḭ:"I",Ɨ:"I","Ⓙ":"J",Ｊ:"J",Ĵ:"J",Ɉ:"J","Ⓚ":"K",Ｋ:"K",Ḱ:"K",Ǩ:"K",Ḳ:"K",Ķ:"K",Ḵ:"K",Ƙ:"K",Ⱪ:"K",Ꝁ:"K",Ꝃ:"K",Ꝅ:"K",Ꞣ:"K","Ⓛ":"L",Ｌ:"L",Ŀ:"L",Ĺ:"L",Ľ:"L",Ḷ:"L",Ḹ:"L",Ļ:"L",Ḽ:"L",Ḻ:"L",Ł:"L",Ƚ:"L",Ɫ:"L",Ⱡ:"L",Ꝉ:"L",Ꝇ:"L",Ꞁ:"L",Ǉ:"LJ",ǈ:"Lj","Ⓜ":"M",Ｍ:"M",Ḿ:"M",Ṁ:"M",Ṃ:"M",Ɱ:"M",Ɯ:"M","Ⓝ":"N",Ｎ:"N",Ǹ:"N",Ń:"N",Ñ:"N",Ṅ:"N",Ň:"N",Ṇ:"N",Ņ:"N",Ṋ:"N",Ṉ:"N",Ƞ:"N",Ɲ:"N",Ꞑ:"N",Ꞥ:"N",Ǌ:"NJ",ǋ:"Nj","Ⓞ":"O",Ｏ:"O",Ò:"O",Ó:"O",Ô:"O",Ồ:"O",Ố:"O",Ỗ:"O",Ổ:"O",Õ:"O",Ṍ:"O",Ȭ:"O",Ṏ:"O",Ō:"O",Ṑ:"O",Ṓ:"O",Ŏ:"O",Ȯ:"O",Ȱ:"O",Ö:"O",Ȫ:"O",Ỏ:"O",Ő:"O",Ǒ:"O",Ȍ:"O",Ȏ:"O",Ơ:"O",Ờ:"O",Ớ:"O",Ỡ:"O",Ở:"O",Ợ:"O",Ọ:"O",Ộ:"O",Ǫ:"O",Ǭ:"O",Ø:"O",Ǿ:"O",Ɔ:"O",Ɵ:"O",Ꝋ:"O",Ꝍ:"O",Œ:"OE",Ƣ:"OI",Ꝏ:"OO",Ȣ:"OU","Ⓟ":"P",Ｐ:"P",Ṕ:"P",Ṗ:"P",Ƥ:"P",Ᵽ:"P",Ꝑ:"P",Ꝓ:"P",Ꝕ:"P","Ⓠ":"Q",Ｑ:"Q",Ꝗ:"Q",Ꝙ:"Q",Ɋ:"Q","Ⓡ":"R",Ｒ:"R",Ŕ:"R",Ṙ:"R",Ř:"R",Ȑ:"R",Ȓ:"R",Ṛ:"R",Ṝ:"R",Ŗ:"R",Ṟ:"R",Ɍ:"R",Ɽ:"R",Ꝛ:"R",Ꞧ:"R",Ꞃ:"R","Ⓢ":"S",Ｓ:"S",ẞ:"S",Ś:"S",Ṥ:"S",Ŝ:"S",Ṡ:"S",Š:"S",Ṧ:"S",Ṣ:"S",Ṩ:"S",Ș:"S",Ş:"S",Ȿ:"S",Ꞩ:"S",Ꞅ:"S","Ⓣ":"T",Ｔ:"T",Ṫ:"T",Ť:"T",Ṭ:"T",Ț:"T",Ţ:"T",Ṱ:"T",Ṯ:"T",Ŧ:"T",Ƭ:"T",Ʈ:"T",Ⱦ:"T",Ꞇ:"T",Ꜩ:"TZ","Ⓤ":"U",Ｕ:"U",Ù:"U",Ú:"U",Û:"U",Ũ:"U",Ṹ:"U",Ū:"U",Ṻ:"U",Ŭ:"U",Ü:"U",Ǜ:"U",Ǘ:"U",Ǖ:"U",Ǚ:"U",Ủ:"U",Ů:"U",Ű:"U",Ǔ:"U",Ȕ:"U",Ȗ:"U",Ư:"U",Ừ:"U",Ứ:"U",Ữ:"U",Ử:"U",Ự:"U",Ụ:"U",Ṳ:"U",Ų:"U",Ṷ:"U",Ṵ:"U",Ʉ:"U","Ⓥ":"V",Ｖ:"V",Ṽ:"V",Ṿ:"V",Ʋ:"V",Ꝟ:"V",Ʌ:"V",Ꝡ:"VY","Ⓦ":"W",Ｗ:"W",Ẁ:"W",Ẃ:"W",Ŵ:"W",Ẇ:"W",Ẅ:"W",Ẉ:"W",Ⱳ:"W","Ⓧ":"X",Ｘ:"X",Ẋ:"X",Ẍ:"X","Ⓨ":"Y",Ｙ:"Y",Ỳ:"Y",Ý:"Y",Ŷ:"Y",Ỹ:"Y",Ȳ:"Y",Ẏ:"Y",Ÿ:"Y",Ỷ:"Y",Ỵ:"Y",Ƴ:"Y",Ɏ:"Y",Ỿ:"Y","Ⓩ":"Z",Ｚ:"Z",Ź:"Z",Ẑ:"Z",Ż:"Z",Ž:"Z",Ẓ:"Z",Ẕ:"Z",Ƶ:"Z",Ȥ:"Z",Ɀ:"Z",Ⱬ:"Z",Ꝣ:"Z","ⓐ":"a",ａ:"a",ẚ:"a",à:"a",á:"a",â:"a",ầ:"a",ấ:"a",ẫ:"a",ẩ:"a",ã:"a",ā:"a",ă:"a",ằ:"a",ắ:"a",ẵ:"a",ẳ:"a",ȧ:"a",ǡ:"a",ä:"a",ǟ:"a",ả:"a",å:"a",ǻ:"a",ǎ:"a",ȁ:"a",ȃ:"a",ạ:"a",ậ:"a",ặ:"a",ḁ:"a",ą:"a",ⱥ:"a",ɐ:"a",ꜳ:"aa",æ:"ae",ǽ:"ae",ǣ:"ae",ꜵ:"ao",ꜷ:"au",ꜹ:"av",ꜻ:"av",ꜽ:"ay","ⓑ":"b",ｂ:"b",ḃ:"b",ḅ:"b",ḇ:"b",ƀ:"b",ƃ:"b",ɓ:"b","ⓒ":"c",ｃ:"c",ć:"c",ĉ:"c",ċ:"c",č:"c",ç:"c",ḉ:"c",ƈ:"c",ȼ:"c",ꜿ:"c",ↄ:"c","ⓓ":"d",ｄ:"d",ḋ:"d",ď:"d",ḍ:"d",ḑ:"d",ḓ:"d",ḏ:"d",đ:"d",ƌ:"d",ɖ:"d",ɗ:"d",ꝺ:"d",ǳ:"dz",ǆ:"dz","ⓔ":"e",ｅ:"e",è:"e",é:"e",ê:"e",ề:"e",ế:"e",ễ:"e",ể:"e",ẽ:"e",ē:"e",ḕ:"e",ḗ:"e",ĕ:"e",ė:"e",ë:"e",ẻ:"e",ě:"e",ȅ:"e",ȇ:"e",ẹ:"e",ệ:"e",ȩ:"e",ḝ:"e",ę:"e",ḙ:"e",ḛ:"e",ɇ:"e",ɛ:"e",ǝ:"e","ⓕ":"f",ｆ:"f",ḟ:"f",ƒ:"f",ꝼ:"f","ⓖ":"g",ｇ:"g",ǵ:"g",ĝ:"g",ḡ:"g",ğ:"g",ġ:"g",ǧ:"g",ģ:"g",ǥ:"g",ɠ:"g",ꞡ:"g",ᵹ:"g",ꝿ:"g","ⓗ":"h",ｈ:"h",ĥ:"h",ḣ:"h",ḧ:"h",ȟ:"h",ḥ:"h",ḩ:"h",ḫ:"h",ẖ:"h",ħ:"h",ⱨ:"h",ⱶ:"h",ɥ:"h",ƕ:"hv","ⓘ":"i",ｉ:"i",ì:"i",í:"i",î:"i",ĩ:"i",ī:"i",ĭ:"i",ï:"i",ḯ:"i",ỉ:"i",ǐ:"i",ȉ:"i",ȋ:"i",ị:"i",į:"i",ḭ:"i",ɨ:"i",ı:"i","ⓙ":"j",ｊ:"j",ĵ:"j",ǰ:"j",ɉ:"j","ⓚ":"k",ｋ:"k",ḱ:"k",ǩ:"k",ḳ:"k",ķ:"k",ḵ:"k",ƙ:"k",ⱪ:"k",ꝁ:"k",ꝃ:"k",ꝅ:"k",ꞣ:"k","ⓛ":"l",ｌ:"l",ŀ:"l",ĺ:"l",ľ:"l",ḷ:"l",ḹ:"l",ļ:"l",ḽ:"l",ḻ:"l",ſ:"l",ł:"l",ƚ:"l",ɫ:"l",ⱡ:"l",ꝉ:"l",ꞁ:"l",ꝇ:"l",ǉ:"lj","ⓜ":"m",ｍ:"m",ḿ:"m",ṁ:"m",ṃ:"m",ɱ:"m",ɯ:"m","ⓝ":"n",ｎ:"n",ǹ:"n",ń:"n",ñ:"n",ṅ:"n",ň:"n",ṇ:"n",ņ:"n",ṋ:"n",ṉ:"n",ƞ:"n",ɲ:"n",ŉ:"n",ꞑ:"n",ꞥ:"n",ǌ:"nj","ⓞ":"o",ｏ:"o",ò:"o",ó:"o",ô:"o",ồ:"o",ố:"o",ỗ:"o",ổ:"o",õ:"o",ṍ:"o",ȭ:"o",ṏ:"o",ō:"o",ṑ:"o",ṓ:"o",ŏ:"o",ȯ:"o",ȱ:"o",ö:"o",ȫ:"o",ỏ:"o",ő:"o",ǒ:"o",ȍ:"o",ȏ:"o",ơ:"o",ờ:"o",ớ:"o",ỡ:"o",ở:"o",ợ:"o",ọ:"o",ộ:"o",ǫ:"o",ǭ:"o",ø:"o",ǿ:"o",ɔ:"o",ꝋ:"o",ꝍ:"o",ɵ:"o",œ:"oe",ƣ:"oi",ȣ:"ou",ꝏ:"oo","ⓟ":"p",ｐ:"p",ṕ:"p",ṗ:"p",ƥ:"p",ᵽ:"p",ꝑ:"p",ꝓ:"p",ꝕ:"p","ⓠ":"q",ｑ:"q",ɋ:"q",ꝗ:"q",ꝙ:"q","ⓡ":"r",ｒ:"r",ŕ:"r",ṙ:"r",ř:"r",ȑ:"r",ȓ:"r",ṛ:"r",ṝ:"r",ŗ:"r",ṟ:"r",ɍ:"r",ɽ:"r",ꝛ:"r",ꞧ:"r",ꞃ:"r","ⓢ":"s",ｓ:"s",ß:"s",ś:"s",ṥ:"s",ŝ:"s",ṡ:"s",š:"s",ṧ:"s",ṣ:"s",ṩ:"s",ș:"s",ş:"s",ȿ:"s",ꞩ:"s",ꞅ:"s",ẛ:"s","ⓣ":"t",ｔ:"t",ṫ:"t",ẗ:"t",ť:"t",ṭ:"t",ț:"t",ţ:"t",ṱ:"t",ṯ:"t",ŧ:"t",ƭ:"t",ʈ:"t",ⱦ:"t",ꞇ:"t",ꜩ:"tz","ⓤ":"u",ｕ:"u",ù:"u",ú:"u",û:"u",ũ:"u",ṹ:"u",ū:"u",ṻ:"u",ŭ:"u",ü:"u",ǜ:"u",ǘ:"u",ǖ:"u",ǚ:"u",ủ:"u",ů:"u",ű:"u",ǔ:"u",ȕ:"u",ȗ:"u",ư:"u",ừ:"u",ứ:"u",ữ:"u",ử:"u",ự:"u",ụ:"u",ṳ:"u",ų:"u",ṷ:"u",ṵ:"u",ʉ:"u","ⓥ":"v",ｖ:"v",ṽ:"v",ṿ:"v",ʋ:"v",ꝟ:"v",ʌ:"v",ꝡ:"vy","ⓦ":"w",ｗ:"w",ẁ:"w",ẃ:"w",ŵ:"w",ẇ:"w",ẅ:"w",ẘ:"w",ẉ:"w",ⱳ:"w","ⓧ":"x",ｘ:"x",ẋ:"x",ẍ:"x","ⓨ":"y",ｙ:"y",ỳ:"y",ý:"y",ŷ:"y",ỹ:"y",ȳ:"y",ẏ:"y",ÿ:"y",ỷ:"y",ẙ:"y",ỵ:"y",ƴ:"y",ɏ:"y",ỿ:"y","ⓩ":"z",ｚ:"z",ź:"z",ẑ:"z",ż:"z",ž:"z",ẓ:"z",ẕ:"z",ƶ:"z",ȥ:"z",ɀ:"z",ⱬ:"z",ꝣ:"z",Ά:"Α",Έ:"Ε",Ή:"Η",Ί:"Ι",Ϊ:"Ι",Ό:"Ο",Ύ:"Υ",Ϋ:"Υ",Ώ:"Ω",ά:"α",έ:"ε",ή:"η",ί:"ι",ϊ:"ι",ΐ:"ι",ό:"ο",ύ:"υ",ϋ:"υ",ΰ:"υ",ώ:"ω",ς:"σ","’":"'"}})),e.define("select2/data/base",["../utils"],(function(t){function e(t,r){e.__super__.constructor.call(this)}return t.Extend(e,t.Observable),e.prototype.current=function(t){throw new Error("The `current` method must be defined in child classes.")},e.prototype.query=function(t,e){throw new Error("The `query` method must be defined in child classes.")},e.prototype.bind=function(t,e){},e.prototype.destroy=function(){},e.prototype.generateResultId=function(e,r){var i=e.id+"-result-";return i+=t.generateChars(4),null!=r.id?i+="-"+r.id.toString():i+="-"+t.generateChars(4),i},e})),e.define("select2/data/select",["./base","../utils","jquery"],(function(t,e,r){function i(t,e){this.$element=t,this.options=e,i.__super__.constructor.call(this)}return e.Extend(i,t),i.prototype.current=function(t){var e=[],i=this;this.$element.find(":selected").each((function(){var t=r(this),n=i.item(t);e.push(n)})),t(e)},i.prototype.select=function(t){var e=this;if(t.selected=!0,r(t.element).is("option"))return t.element.selected=!0,void this.$element.trigger("input").trigger("change");if(this.$element.prop("multiple"))this.current((function(i){var n=[];(t=[t]).push.apply(t,i);for(var o=0;o&lt;t.length;o++){var a=t[o].id;-1===r.inArray(a,n)&amp;&amp;n.push(a)}e.$element.val(n),e.$element.trigger("input").trigger("change")}));else{var i=t.id;this.$element.val(i),this.$element.trigger("input").trigger("change")}},i.prototype.unselect=function(t){var e=this;if(this.$element.prop("multiple")){if(t.selected=!1,r(t.element).is("option"))return t.element.selected=!1,void this.$element.trigger("input").trigger("change");this.current((function(i){for(var n=[],o=0;o&lt;i.length;o++){var a=i[o].id;a!==t.id&amp;&amp;-1===r.inArray(a,n)&amp;&amp;n.push(a)}e.$element.val(n),e.$element.trigger("input").trigger("change")}))}},i.prototype.bind=function(t,e){var r=this;this.container=t,t.on("select",(function(t){r.select(t.data)})),t.on("unselect",(function(t){r.unselect(t.data)}))},i.prototype.destroy=function(){this.$element.find("*").each((function(){e.RemoveData(this)}))},i.prototype.query=function(t,e){var i=[],n=this;this.$element.children().each((function(){var e=r(this);if(e.is("option")||e.is("optgroup")){var o=n.item(e),a=n.matches(t,o);null!==a&amp;&amp;i.push(a)}})),e({results:i})},i.prototype.addOptions=function(t){e.appendMany(this.$element,t)},i.prototype.option=function(t){var i;t.children?(i=document.createElement("optgroup")).label=t.text:void 0!==(i=document.createElement("option")).textContent?i.textContent=t.text:i.innerText=t.text,void 0!==t.id&amp;&amp;(i.value=t.id),t.disabled&amp;&amp;(i.disabled=!0),t.selected&amp;&amp;(i.selected=!0),t.title&amp;&amp;(i.title=t.title);var n=r(i),o=this._normalizeItem(t);return o.element=i,e.StoreData(i,"data",o),n},i.prototype.item=function(t){var i={};if(null!=(i=e.GetData(t[0],"data")))return i;if(t.is("option"))i={id:t.val(),text:t.text(),disabled:t.prop("disabled"),selected:t.prop("selected"),title:t.prop("title")};else if(t.is("optgroup")){i={text:t.prop("label"),children:[],title:t.prop("title")};for(var n=t.children("option"),o=[],a=0;a&lt;n.length;a++){var s=r(n[a]),l=this.item(s);o.push(l)}i.children=o}return(i=this._normalizeItem(i)).element=t[0],e.StoreData(t[0],"data",i),i},i.prototype._normalizeItem=function(t){t!==Object(t)&amp;&amp;(t={id:t,text:t});var e={selected:!1,disabled:!1};return null!=(t=r.extend({},{text:""},t)).id&amp;&amp;(t.id=t.id.toString()),null!=t.text&amp;&amp;(t.text=t.text.toString()),null==t._resultId&amp;&amp;t.id&amp;&amp;null!=this.container&amp;&amp;(t._resultId=this.generateResultId(this.container,t)),r.extend({},e,t)},i.prototype.matches=function(t,e){return this.options.get("matcher")(t,e)},i})),e.define("select2/data/array",["./select","../utils","jquery"],(function(t,e,r){function i(t,e){this._dataToConvert=e.get("data")||[],i.__super__.constructor.call(this,t,e)}return e.Extend(i,t),i.prototype.bind=function(t,e){i.__super__.bind.call(this,t,e),this.addOptions(this.convertToOptions(this._dataToConvert))},i.prototype.select=function(t){var e=this.$element.find("option").filter((function(e,r){return r.value==t.id.toString()}));0===e.length&amp;&amp;(e=this.option(t),this.addOptions(e)),i.__super__.select.call(this,t)},i.prototype.convertToOptions=function(t){var i=this,n=this.$element.find("option"),o=n.map((function(){return i.item(r(this)).id})).get(),a=[];function s(t){return function(){return r(this).val()==t.id}}for(var l=0;l&lt;t.length;l++){var u=this._normalizeItem(t[l]);if(r.inArray(u.id,o)&gt;=0){var c=n.filter(s(u)),p=this.item(c),h=r.extend(!0,{},u,p),d=this.option(h);c.replaceWith(d)}else{var f=this.option(u);if(u.children){var m=this.convertToOptions(u.children);e.appendMany(f,m)}a.push(f)}}return a},i})),e.define("select2/data/ajax",["./array","../utils","jquery"],(function(t,e,r){function i(t,e){this.ajaxOptions=this._applyDefaults(e.get("ajax")),null!=this.ajaxOptions.processResults&amp;&amp;(this.processResults=this.ajaxOptions.processResults),i.__super__.constructor.call(this,t,e)}return e.Extend(i,t),i.prototype._applyDefaults=function(t){var e={data:function(t){return r.extend({},t,{q:t.term})},transport:function(t,e,i){var n=r.ajax(t);return n.then(e),n.fail(i),n}};return r.extend({},e,t,!0)},i.prototype.processResults=function(t){return t},i.prototype.query=function(t,e){var i=this;null!=this._request&amp;&amp;(r.isFunction(this._request.abort)&amp;&amp;this._request.abort(),this._request=null);var n=r.extend({type:"GET"},this.ajaxOptions);function o(){var o=n.transport(n,(function(n){var o=i.processResults(n,t);i.options.get("debug")&amp;&amp;window.console&amp;&amp;console.error&amp;&amp;(o&amp;&amp;o.results&amp;&amp;r.isArray(o.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),e(o)}),(function(){(!("status"in o)||0!==o.status&amp;&amp;"0"!==o.status)&amp;&amp;i.trigger("results:message",{message:"errorLoading"})}));i._request=o}"function"==typeof n.url&amp;&amp;(n.url=n.url.call(this.$element,t)),"function"==typeof n.data&amp;&amp;(n.data=n.data.call(this.$element,t)),this.ajaxOptions.delay&amp;&amp;null!=t.term?(this._queryTimeout&amp;&amp;window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(o,this.ajaxOptions.delay)):o()},i})),e.define("select2/data/tags",["jquery"],(function(t){function e(e,r,i){var n=i.get("tags"),o=i.get("createTag");void 0!==o&amp;&amp;(this.createTag=o);var a=i.get("insertTag");if(void 0!==a&amp;&amp;(this.insertTag=a),e.call(this,r,i),t.isArray(n))for(var s=0;s&lt;n.length;s++){var l=n[s],u=this._normalizeItem(l),c=this.option(u);this.$element.append(c)}}return e.prototype.query=function(t,e,r){var i=this;function n(t,o){for(var a=t.results,s=0;s&lt;a.length;s++){var l=a[s],u=null!=l.children&amp;&amp;!n({results:l.children},!0);if((l.text||"").toUpperCase()===(e.term||"").toUpperCase()||u)return!o&amp;&amp;(t.data=a,void r(t))}if(o)return!0;var c=i.createTag(e);if(null!=c){var p=i.option(c);p.attr("data-select2-tag",!0),i.addOptions([p]),i.insertTag(a,c)}t.results=a,r(t)}this._removeOldTags(),null!=e.term&amp;&amp;null==e.page?t.call(this,e,n):t.call(this,e,r)},e.prototype.createTag=function(e,r){var i=t.trim(r.term);return""===i?null:{id:i,text:i}},e.prototype.insertTag=function(t,e,r){e.unshift(r)},e.prototype._removeOldTags=function(e){this.$element.find("option[data-select2-tag]").each((function(){this.selected||t(this).remove()}))},e})),e.define("select2/data/tokenizer",["jquery"],(function(t){function e(t,e,r){var i=r.get("tokenizer");void 0!==i&amp;&amp;(this.tokenizer=i),t.call(this,e,r)}return e.prototype.bind=function(t,e,r){t.call(this,e,r),this.$search=e.dropdown.$search||e.selection.$search||r.find(".select2-search__field")},e.prototype.query=function(e,r,i){var n=this;function o(e){var r=n._normalizeItem(e);if(!n.$element.find("option").filter((function(){return t(this).val()===r.id})).length){var i=n.option(r);i.attr("data-select2-tag",!0),n._removeOldTags(),n.addOptions([i])}a(r)}function a(t){n.trigger("select",{data:t})}r.term=r.term||"";var s=this.tokenizer(r,this.options,o);s.term!==r.term&amp;&amp;(this.$search.length&amp;&amp;(this.$search.val(s.term),this.$search.trigger("focus")),r.term=s.term),e.call(this,r,i)},e.prototype.tokenizer=function(e,r,i,n){for(var o=i.get("tokenSeparators")||[],a=r.term,s=0,l=this.createTag||function(t){return{id:t.term,text:t.term}};s&lt;a.length;){var u=a[s];if(-1!==t.inArray(u,o)){var c=a.substr(0,s),p=l(t.extend({},r,{term:c}));null!=p?(n(p),a=a.substr(s+1)||"",s=0):s++}else s++}return{term:a}},e})),e.define("select2/data/minimumInputLength",[],(function(){function t(t,e,r){this.minimumInputLength=r.get("minimumInputLength"),t.call(this,e,r)}return t.prototype.query=function(t,e,r){e.term=e.term||"",e.term.length&lt;this.minimumInputLength?this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:e.term,params:e}}):t.call(this,e,r)},t})),e.define("select2/data/maximumInputLength",[],(function(){function t(t,e,r){this.maximumInputLength=r.get("maximumInputLength"),t.call(this,e,r)}return t.prototype.query=function(t,e,r){e.term=e.term||"",this.maximumInputLength&gt;0&amp;&amp;e.term.length&gt;this.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:e.term,params:e}}):t.call(this,e,r)},t})),e.define("select2/data/maximumSelectionLength",[],(function(){function t(t,e,r){this.maximumSelectionLength=r.get("maximumSelectionLength"),t.call(this,e,r)}return t.prototype.bind=function(t,e,r){var i=this;t.call(this,e,r),e.on("select",(function(){i._checkIfMaximumSelected()}))},t.prototype.query=function(t,e,r){var i=this;this._checkIfMaximumSelected((function(){t.call(i,e,r)}))},t.prototype._checkIfMaximumSelected=function(t,e){var r=this;this.current((function(t){var i=null!=t?t.length:0;r.maximumSelectionLength&gt;0&amp;&amp;i&gt;=r.maximumSelectionLength?r.trigger("results:message",{message:"maximumSelected",args:{maximum:r.maximumSelectionLength}}):e&amp;&amp;e()}))},t})),e.define("select2/dropdown",["jquery","./utils"],(function(t,e){function r(t,e){this.$element=t,this.options=e,r.__super__.constructor.call(this)}return e.Extend(r,e.Observable),r.prototype.render=function(){var e=t('&lt;span class="select2-dropdown"&gt;&lt;span class="select2-results"&gt;&lt;/span&gt;&lt;/span&gt;');return e.attr("dir",this.options.get("dir")),this.$dropdown=e,e},r.prototype.bind=function(){},r.prototype.position=function(t,e){},r.prototype.destroy=function(){this.$dropdown.remove()},r})),e.define("select2/dropdown/search",["jquery","../utils"],(function(t,e){function r(){}return r.prototype.render=function(e){var r=e.call(this),i=t('&lt;span class="select2-search select2-search--dropdown"&gt;&lt;input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /&gt;&lt;/span&gt;');return this.$searchContainer=i,this.$search=i.find("input"),r.prepend(i),r},r.prototype.bind=function(e,r,i){var n=this,o=r.id+"-results";e.call(this,r,i),this.$search.on("keydown",(function(t){n.trigger("keypress",t),n._keyUpPrevented=t.isDefaultPrevented()})),this.$search.on("input",(function(e){t(this).off("keyup")})),this.$search.on("keyup input",(function(t){n.handleSearch(t)})),r.on("open",(function(){n.$search.attr("tabindex",0),n.$search.attr("aria-controls",o),n.$search.trigger("focus"),window.setTimeout((function(){n.$search.trigger("focus")}),0)})),r.on("close",(function(){n.$search.attr("tabindex",-1),n.$search.removeAttr("aria-controls"),n.$search.removeAttr("aria-activedescendant"),n.$search.val(""),n.$search.trigger("blur")})),r.on("focus",(function(){r.isOpen()||n.$search.trigger("focus")})),r.on("results:all",(function(t){null!=t.query.term&amp;&amp;""!==t.query.term||(n.showSearch(t)?n.$searchContainer.removeClass("select2-search--hide"):n.$searchContainer.addClass("select2-search--hide"))})),r.on("results:focus",(function(t){t.data._resultId?n.$search.attr("aria-activedescendant",t.data._resultId):n.$search.removeAttr("aria-activedescendant")}))},r.prototype.handleSearch=function(t){if(!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},r.prototype.showSearch=function(t,e){return!0},r})),e.define("select2/dropdown/hidePlaceholder",[],(function(){function t(t,e,r,i){this.placeholder=this.normalizePlaceholder(r.get("placeholder")),t.call(this,e,r,i)}return t.prototype.append=function(t,e){e.results=this.removePlaceholder(e.results),t.call(this,e)},t.prototype.normalizePlaceholder=function(t,e){return"string"==typeof e&amp;&amp;(e={id:"",text:e}),e},t.prototype.removePlaceholder=function(t,e){for(var r=e.slice(0),i=e.length-1;i&gt;=0;i--){var n=e[i];this.placeholder.id===n.id&amp;&amp;r.splice(i,1)}return r},t})),e.define("select2/dropdown/infiniteScroll",["jquery"],(function(t){function e(t,e,r,i){this.lastParams={},t.call(this,e,r,i),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return e.prototype.append=function(t,e){this.$loadingMore.remove(),this.loading=!1,t.call(this,e),this.showLoadingMore(e)&amp;&amp;(this.$results.append(this.$loadingMore),this.loadMoreIfNeeded())},e.prototype.bind=function(t,e,r){var i=this;t.call(this,e,r),e.on("query",(function(t){i.lastParams=t,i.loading=!0})),e.on("query:append",(function(t){i.lastParams=t,i.loading=!0})),this.$results.on("scroll",this.loadMoreIfNeeded.bind(this))},e.prototype.loadMoreIfNeeded=function(){var e=t.contains(document.documentElement,this.$loadingMore[0]);!this.loading&amp;&amp;e&amp;&amp;this.$results.offset().top+this.$results.outerHeight(!1)+50&gt;=this.$loadingMore.offset().top+this.$loadingMore.outerHeight(!1)&amp;&amp;this.loadMore()},e.prototype.loadMore=function(){this.loading=!0;var e=t.extend({},{page:1},this.lastParams);e.page++,this.trigger("query:append",e)},e.prototype.showLoadingMore=function(t,e){return e.pagination&amp;&amp;e.pagination.more},e.prototype.createLoadingMore=function(){var e=t('&lt;li class="select2-results__option select2-results__option--load-more"role="option" aria-disabled="true"&gt;&lt;/li&gt;'),r=this.options.get("translations").get("loadingMore");return e.html(r(this.lastParams)),e},e})),e.define("select2/dropdown/attachBody",["jquery","../utils"],(function(t,e){function r(e,r,i){this.$dropdownParent=t(i.get("dropdownParent")||document.body),e.call(this,r,i)}return r.prototype.bind=function(t,e,r){var i=this;t.call(this,e,r),e.on("open",(function(){i._showDropdown(),i._attachPositioningHandler(e),i._bindContainerResultHandlers(e)})),e.on("close",(function(){i._hideDropdown(),i._detachPositioningHandler(e)})),this.$dropdownContainer.on("mousedown",(function(t){t.stopPropagation()}))},r.prototype.destroy=function(t){t.call(this),this.$dropdownContainer.remove()},r.prototype.position=function(t,e,r){e.attr("class",r.attr("class")),e.removeClass("select2"),e.addClass("select2-container--open"),e.css({position:"absolute",top:-999999}),this.$container=r},r.prototype.render=function(e){var r=t("&lt;span&gt;&lt;/span&gt;"),i=e.call(this);return r.append(i),this.$dropdownContainer=r,r},r.prototype._hideDropdown=function(t){this.$dropdownContainer.detach()},r.prototype._bindContainerResultHandlers=function(t,e){if(!this._containerResultsHandlersBound){var r=this;e.on("results:all",(function(){r._positionDropdown(),r._resizeDropdown()})),e.on("results:append",(function(){r._positionDropdown(),r._resizeDropdown()})),e.on("results:message",(function(){r._positionDropdown(),r._resizeDropdown()})),e.on("select",(function(){r._positionDropdown(),r._resizeDropdown()})),e.on("unselect",(function(){r._positionDropdown(),r._resizeDropdown()})),this._containerResultsHandlersBound=!0}},r.prototype._attachPositioningHandler=function(r,i){var n=this,o="scroll.select2."+i.id,a="resize.select2."+i.id,s="orientationchange.select2."+i.id,l=this.$container.parents().filter(e.hasScroll);l.each((function(){e.StoreData(this,"select2-scroll-position",{x:t(this).scrollLeft(),y:t(this).scrollTop()})})),l.on(o,(function(r){var i=e.GetData(this,"select2-scroll-position");t(this).scrollTop(i.y)})),t(window).on(o+" "+a+" "+s,(function(t){n._positionDropdown(),n._resizeDropdown()}))},r.prototype._detachPositioningHandler=function(r,i){var n="scroll.select2."+i.id,o="resize.select2."+i.id,a="orientationchange.select2."+i.id;this.$container.parents().filter(e.hasScroll).off(n),t(window).off(n+" "+o+" "+a)},r.prototype._positionDropdown=function(){var e=t(window),r=this.$dropdown.hasClass("select2-dropdown--above"),i=this.$dropdown.hasClass("select2-dropdown--below"),n=null,o=this.$container.offset();o.bottom=o.top+this.$container.outerHeight(!1);var a={height:this.$container.outerHeight(!1)};a.top=o.top,a.bottom=o.top+a.height;var s={height:this.$dropdown.outerHeight(!1)},l={top:e.scrollTop(),bottom:e.scrollTop()+e.height()},u=l.top&lt;o.top-s.height,c=l.bottom&gt;o.bottom+s.height,p={left:o.left,top:a.bottom},h=this.$dropdownParent;"static"===h.css("position")&amp;&amp;(h=h.offsetParent());var d={top:0,left:0};(t.contains(document.body,h[0])||h[0].isConnected)&amp;&amp;(d=h.offset()),p.top-=d.top,p.left-=d.left,r||i||(n="below"),c||!u||r?!u&amp;&amp;c&amp;&amp;r&amp;&amp;(n="below"):n="above",("above"==n||r&amp;&amp;"below"!==n)&amp;&amp;(p.top=a.top-d.top-s.height),null!=n&amp;&amp;(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+n),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+n)),this.$dropdownContainer.css(p)},r.prototype._resizeDropdown=function(){var t={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&amp;&amp;(t.minWidth=t.width,t.position="relative",t.width="auto"),this.$dropdown.css(t)},r.prototype._showDropdown=function(t){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},r})),e.define("select2/dropdown/minimumResultsForSearch",[],(function(){function t(e){for(var r=0,i=0;i&lt;e.length;i++){var n=e[i];n.children?r+=t(n.children):r++}return r}function e(t,e,r,i){this.minimumResultsForSearch=r.get("minimumResultsForSearch"),this.minimumResultsForSearch&lt;0&amp;&amp;(this.minimumResultsForSearch=1/0),t.call(this,e,r,i)}return e.prototype.showSearch=function(e,r){return!(t(r.data.results)&lt;this.minimumResultsForSearch)&amp;&amp;e.call(this,r)},e})),e.define("select2/dropdown/selectOnClose",["../utils"],(function(t){function e(){}return e.prototype.bind=function(t,e,r){var i=this;t.call(this,e,r),e.on("close",(function(t){i._handleSelectOnClose(t)}))},e.prototype._handleSelectOnClose=function(e,r){if(r&amp;&amp;null!=r.originalSelect2Event){var i=r.originalSelect2Event;if("select"===i._type||"unselect"===i._type)return}var n=this.getHighlightedResults();if(!(n.length&lt;1)){var o=t.GetData(n[0],"data");null!=o.element&amp;&amp;o.element.selected||null==o.element&amp;&amp;o.selected||this.trigger("select",{data:o})}},e})),e.define("select2/dropdown/closeOnSelect",[],(function(){function t(){}return t.prototype.bind=function(t,e,r){var i=this;t.call(this,e,r),e.on("select",(function(t){i._selectTriggered(t)})),e.on("unselect",(function(t){i._selectTriggered(t)}))},t.prototype._selectTriggered=function(t,e){var r=e.originalEvent;r&amp;&amp;(r.ctrlKey||r.metaKey)||this.trigger("close",{originalEvent:r,originalSelect2Event:e})},t})),e.define("select2/i18n/en",[],(function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(t){var e=t.input.length-t.maximum,r="Please delete "+e+" character";return 1!=e&amp;&amp;(r+="s"),r},inputTooShort:function(t){return"Please enter "+(t.minimum-t.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(t){var e="You can only select "+t.maximum+" item";return 1!=t.maximum&amp;&amp;(e+="s"),e},noResults:function(){return"No results found"},searching:function(){return"Searching…"},removeAllItems:function(){return"Remove all items"}}})),e.define("select2/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],(function(t,e,r,i,n,o,a,s,l,u,c,p,h,d,f,m,y,g,v,_,x,b,w,S,E,k,T,A,C){function I(){this.reset()}return I.prototype.apply=function(c){if(null==(c=t.extend(!0,{},this.defaults,c)).dataAdapter){if(null!=c.ajax?c.dataAdapter=f:null!=c.data?c.dataAdapter=d:c.dataAdapter=h,c.minimumInputLength&gt;0&amp;&amp;(c.dataAdapter=u.Decorate(c.dataAdapter,g)),c.maximumInputLength&gt;0&amp;&amp;(c.dataAdapter=u.Decorate(c.dataAdapter,v)),c.maximumSelectionLength&gt;0&amp;&amp;(c.dataAdapter=u.Decorate(c.dataAdapter,_)),c.tags&amp;&amp;(c.dataAdapter=u.Decorate(c.dataAdapter,m)),null==c.tokenSeparators&amp;&amp;null==c.tokenizer||(c.dataAdapter=u.Decorate(c.dataAdapter,y)),null!=c.query){var p=e(c.amdBase+"compat/query");c.dataAdapter=u.Decorate(c.dataAdapter,p)}if(null!=c.initSelection){var C=e(c.amdBase+"compat/initSelection");c.dataAdapter=u.Decorate(c.dataAdapter,C)}}if(null==c.resultsAdapter&amp;&amp;(c.resultsAdapter=r,null!=c.ajax&amp;&amp;(c.resultsAdapter=u.Decorate(c.resultsAdapter,S)),null!=c.placeholder&amp;&amp;(c.resultsAdapter=u.Decorate(c.resultsAdapter,w)),c.selectOnClose&amp;&amp;(c.resultsAdapter=u.Decorate(c.resultsAdapter,T))),null==c.dropdownAdapter){if(c.multiple)c.dropdownAdapter=x;else{var I=u.Decorate(x,b);c.dropdownAdapter=I}if(0!==c.minimumResultsForSearch&amp;&amp;(c.dropdownAdapter=u.Decorate(c.dropdownAdapter,k)),c.closeOnSelect&amp;&amp;(c.dropdownAdapter=u.Decorate(c.dropdownAdapter,A)),null!=c.dropdownCssClass||null!=c.dropdownCss||null!=c.adaptDropdownCssClass){var P=e(c.amdBase+"compat/dropdownCss");c.dropdownAdapter=u.Decorate(c.dropdownAdapter,P)}c.dropdownAdapter=u.Decorate(c.dropdownAdapter,E)}if(null==c.selectionAdapter){if(c.multiple?c.selectionAdapter=n:c.selectionAdapter=i,null!=c.placeholder&amp;&amp;(c.selectionAdapter=u.Decorate(c.selectionAdapter,o)),c.allowClear&amp;&amp;(c.selectionAdapter=u.Decorate(c.selectionAdapter,a)),c.multiple&amp;&amp;(c.selectionAdapter=u.Decorate(c.selectionAdapter,s)),null!=c.containerCssClass||null!=c.containerCss||null!=c.adaptContainerCssClass){var M=e(c.amdBase+"compat/containerCss");c.selectionAdapter=u.Decorate(c.selectionAdapter,M)}c.selectionAdapter=u.Decorate(c.selectionAdapter,l)}c.language=this._resolveLanguage(c.language),c.language.push("en");for(var z=[],D=0;D&lt;c.language.length;D++){var L=c.language[D];-1===z.indexOf(L)&amp;&amp;z.push(L)}return c.language=z,c.translations=this._processTranslations(c.language,c.debug),c},I.prototype.reset=function(){function e(t){function e(t){return p[t]||t}return t.replace(/[^\u0000-\u007E]/g,e)}function r(i,n){if(""===t.trim(i.term))return n;if(n.children&amp;&amp;n.children.length&gt;0){for(var o=t.extend(!0,{},n),a=n.children.length-1;a&gt;=0;a--)null==r(i,n.children[a])&amp;&amp;o.children.splice(a,1);return o.children.length&gt;0?o:r(i,o)}var s=e(n.text).toUpperCase(),l=e(i.term).toUpperCase();return s.indexOf(l)&gt;-1?n:null}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:u.escapeMarkup,language:{},matcher:r,minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,scrollAfterSelect:!1,sorter:function(t){return t},templateResult:function(t){return t.text},templateSelection:function(t){return t.text},theme:"default",width:"resolve"}},I.prototype.applyFromElement=function(t,e){var r=t.language,i=this.defaults.language,n=e.prop("lang"),o=e.closest("[lang]").prop("lang"),a=Array.prototype.concat.call(this._resolveLanguage(n),this._resolveLanguage(r),this._resolveLanguage(i),this._resolveLanguage(o));return t.language=a,t},I.prototype._resolveLanguage=function(e){if(!e)return[];if(t.isEmptyObject(e))return[];if(t.isPlainObject(e))return[e];var r;r=t.isArray(e)?e:[e];for(var i=[],n=0;n&lt;r.length;n++)if(i.push(r[n]),"string"==typeof r[n]&amp;&amp;r[n].indexOf("-")&gt;0){var o=r[n].split("-")[0];i.push(o)}return i},I.prototype._processTranslations=function(e,r){for(var i=new c,n=0;n&lt;e.length;n++){var o=new c,a=e[n];if("string"==typeof a)try{o=c.loadPath(a)}catch(t){try{a=this.defaults.amdLanguageBase+a,o=c.loadPath(a)}catch(t){r&amp;&amp;window.console&amp;&amp;console.warn&amp;&amp;console.warn('Select2: The language file for "'+a+'" could not be automatically loaded. A fallback will be used instead.')}}else o=t.isPlainObject(a)?new c(a):a;i.extend(o)}return i},I.prototype.set=function(e,r){var i={};i[t.camelCase(e)]=r;var n=u._convertData(i);t.extend(!0,this.defaults,n)},new I})),e.define("select2/options",["require","jquery","./defaults","./utils"],(function(t,e,r,i){function n(e,n){if(this.options=e,null!=n&amp;&amp;this.fromElement(n),null!=n&amp;&amp;(this.options=r.applyFromElement(this.options,n)),this.options=r.apply(this.options),n&amp;&amp;n.is("input")){var o=t(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=i.Decorate(this.options.dataAdapter,o)}}return n.prototype.fromElement=function(t){var r=["select2"];null==this.options.multiple&amp;&amp;(this.options.multiple=t.prop("multiple")),null==this.options.disabled&amp;&amp;(this.options.disabled=t.prop("disabled")),null==this.options.dir&amp;&amp;(t.prop("dir")?this.options.dir=t.prop("dir"):t.closest("[dir]").prop("dir")?this.options.dir=t.closest("[dir]").prop("dir"):this.options.dir="ltr"),t.prop("disabled",this.options.disabled),t.prop("multiple",this.options.multiple),i.GetData(t[0],"select2Tags")&amp;&amp;(this.options.debug&amp;&amp;window.console&amp;&amp;console.warn&amp;&amp;console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),i.StoreData(t[0],"data",i.GetData(t[0],"select2Tags")),i.StoreData(t[0],"tags",!0)),i.GetData(t[0],"ajaxUrl")&amp;&amp;(this.options.debug&amp;&amp;window.console&amp;&amp;console.warn&amp;&amp;console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),t.attr("ajax--url",i.GetData(t[0],"ajaxUrl")),i.StoreData(t[0],"ajax-Url",i.GetData(t[0],"ajaxUrl")));var n={};function o(t,e){return e.toUpperCase()}for(var a=0;a&lt;t[0].attributes.length;a++){var s=t[0].attributes[a].name,l="data-";if(s.substr(0,l.length)==l){var u=s.substring(l.length),c=i.GetData(t[0],u);n[u.replace(/-([a-z])/g,o)]=c}}e.fn.jquery&amp;&amp;"1."==e.fn.jquery.substr(0,2)&amp;&amp;t[0].dataset&amp;&amp;(n=e.extend(!0,{},t[0].dataset,n));var p=e.extend(!0,{},i.GetData(t[0]),n);for(var h in p=i._convertData(p))e.inArray(h,r)&gt;-1||(e.isPlainObject(this.options[h])?e.extend(this.options[h],p[h]):this.options[h]=p[h]);return this},n.prototype.get=function(t){return this.options[t]},n.prototype.set=function(t,e){this.options[t]=e},n})),e.define("select2/core",["jquery","./options","./utils","./keys"],(function(t,e,r,i){var n=function(t,i){null!=r.GetData(t[0],"select2")&amp;&amp;r.GetData(t[0],"select2").destroy(),this.$element=t,this.id=this._generateId(t),i=i||{},this.options=new e(i,t),n.__super__.constructor.call(this);var o=t.attr("tabindex")||0;r.StoreData(t[0],"old-tabindex",o),t.attr("tabindex","-1");var a=this.options.get("dataAdapter");this.dataAdapter=new a(t,this.options);var s=this.render();this._placeContainer(s);var l=this.options.get("selectionAdapter");this.selection=new l(t,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,s);var u=this.options.get("dropdownAdapter");this.dropdown=new u(t,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,s);var c=this.options.get("resultsAdapter");this.results=new c(t,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var p=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current((function(t){p.trigger("selection:update",{data:t})})),t.addClass("select2-hidden-accessible"),t.attr("aria-hidden","true"),this._syncAttributes(),r.StoreData(t[0],"select2",this),t.data("select2",this)};return r.Extend(n,r.Observable),n.prototype._generateId=function(t){return"select2-"+(null!=t.attr("id")?t.attr("id"):null!=t.attr("name")?t.attr("name")+"-"+r.generateChars(2):r.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},n.prototype._placeContainer=function(t){t.insertAfter(this.$element);var e=this._resolveWidth(this.$element,this.options.get("width"));null!=e&amp;&amp;t.css("width",e)},n.prototype._resolveWidth=function(t,e){var r=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==e){var i=this._resolveWidth(t,"style");return null!=i?i:this._resolveWidth(t,"element")}if("element"==e){var n=t.outerWidth(!1);return n&lt;=0?"auto":n+"px"}if("style"==e){var o=t.attr("style");if("string"!=typeof o)return null;for(var a=o.split(";"),s=0,l=a.length;s&lt;l;s+=1){var u=a[s].replace(/\s/g,"").match(r);if(null!==u&amp;&amp;u.length&gt;=1)return u[1]}return null}return"computedstyle"==e?window.getComputedStyle(t[0]).width:e},n.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},n.prototype._registerDomEvents=function(){var t=this;this.$element.on("change.select2",(function(){t.dataAdapter.current((function(e){t.trigger("selection:update",{data:e})}))})),this.$element.on("focus.select2",(function(e){t.trigger("focus",e)})),this._syncA=r.bind(this._syncAttributes,this),this._syncS=r.bind(this._syncSubtree,this),this.$element[0].attachEvent&amp;&amp;this.$element[0].attachEvent("onpropertychange",this._syncA);var e=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=e?(this._observer=new e((function(e){t._syncA(),t._syncS(null,e)})),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&amp;&amp;(this.$element[0].addEventListener("DOMAttrModified",t._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",t._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",t._syncS,!1))},n.prototype._registerDataEvents=function(){var t=this;this.dataAdapter.on("*",(function(e,r){t.trigger(e,r)}))},n.prototype._registerSelectionEvents=function(){var e=this,r=["toggle","focus"];this.selection.on("toggle",(function(){e.toggleDropdown()})),this.selection.on("focus",(function(t){e.focus(t)})),this.selection.on("*",(function(i,n){-1===t.inArray(i,r)&amp;&amp;e.trigger(i,n)}))},n.prototype._registerDropdownEvents=function(){var t=this;this.dropdown.on("*",(function(e,r){t.trigger(e,r)}))},n.prototype._registerResultsEvents=function(){var t=this;this.results.on("*",(function(e,r){t.trigger(e,r)}))},n.prototype._registerEvents=function(){var t=this;this.on("open",(function(){t.$container.addClass("select2-container--open")})),this.on("close",(function(){t.$container.removeClass("select2-container--open")})),this.on("enable",(function(){t.$container.removeClass("select2-container--disabled")})),this.on("disable",(function(){t.$container.addClass("select2-container--disabled")})),this.on("blur",(function(){t.$container.removeClass("select2-container--focus")})),this.on("query",(function(e){t.isOpen()||t.trigger("open",{}),this.dataAdapter.query(e,(function(r){t.trigger("results:all",{data:r,query:e})}))})),this.on("query:append",(function(e){this.dataAdapter.query(e,(function(r){t.trigger("results:append",{data:r,query:e})}))})),this.on("keypress",(function(e){var r=e.which;t.isOpen()?r===i.ESC||r===i.TAB||r===i.UP&amp;&amp;e.altKey?(t.close(e),e.preventDefault()):r===i.ENTER?(t.trigger("results:select",{}),e.preventDefault()):r===i.SPACE&amp;&amp;e.ctrlKey?(t.trigger("results:toggle",{}),e.preventDefault()):r===i.UP?(t.trigger("results:previous",{}),e.preventDefault()):r===i.DOWN&amp;&amp;(t.trigger("results:next",{}),e.preventDefault()):(r===i.ENTER||r===i.SPACE||r===i.DOWN&amp;&amp;e.altKey)&amp;&amp;(t.open(),e.preventDefault())}))},n.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.isDisabled()?(this.isOpen()&amp;&amp;this.close(),this.trigger("disable",{})):this.trigger("enable",{})},n.prototype._isChangeMutation=function(e,r){var i=!1,n=this;if(!e||!e.target||"OPTION"===e.target.nodeName||"OPTGROUP"===e.target.nodeName){if(r)if(r.addedNodes&amp;&amp;r.addedNodes.length&gt;0)for(var o=0;o&lt;r.addedNodes.length;o++)r.addedNodes[o].selected&amp;&amp;(i=!0);else r.removedNodes&amp;&amp;r.removedNodes.length&gt;0?i=!0:t.isArray(r)&amp;&amp;t.each(r,(function(t,e){if(n._isChangeMutation(t,e))return i=!0,!1}));else i=!0;return i}},n.prototype._syncSubtree=function(t,e){var r=this._isChangeMutation(t,e),i=this;r&amp;&amp;this.dataAdapter.current((function(t){i.trigger("selection:update",{data:t})}))},n.prototype.trigger=function(t,e){var r=n.__super__.trigger,i={open:"opening",close:"closing",select:"selecting",unselect:"unselecting",clear:"clearing"};if(void 0===e&amp;&amp;(e={}),t in i){var o=i[t],a={prevented:!1,name:t,args:e};if(r.call(this,o,a),a.prevented)return void(e.prevented=!0)}r.call(this,t,e)},n.prototype.toggleDropdown=function(){this.isDisabled()||(this.isOpen()?this.close():this.open())},n.prototype.open=function(){this.isOpen()||this.isDisabled()||this.trigger("query",{})},n.prototype.close=function(t){this.isOpen()&amp;&amp;this.trigger("close",{originalEvent:t})},n.prototype.isEnabled=function(){return!this.isDisabled()},n.prototype.isDisabled=function(){return this.options.get("disabled")},n.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},n.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},n.prototype.focus=function(t){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},n.prototype.enable=function(t){this.options.get("debug")&amp;&amp;window.console&amp;&amp;console.warn&amp;&amp;console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),null!=t&amp;&amp;0!==t.length||(t=[!0]);var e=!t[0];this.$element.prop("disabled",e)},n.prototype.data=function(){this.options.get("debug")&amp;&amp;arguments.length&gt;0&amp;&amp;window.console&amp;&amp;console.warn&amp;&amp;console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var t=[];return this.dataAdapter.current((function(e){t=e})),t},n.prototype.val=function(e){if(this.options.get("debug")&amp;&amp;window.console&amp;&amp;console.warn&amp;&amp;console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==e||0===e.length)return this.$element.val();var r=e[0];t.isArray(r)&amp;&amp;(r=t.map(r,(function(t){return t.toString()}))),this.$element.val(r).trigger("input").trigger("change")},n.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&amp;&amp;this.$element[0].detachEvent("onpropertychange",this._syncA),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&amp;&amp;(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1)),this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",r.GetData(this.$element[0],"old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),r.RemoveData(this.$element[0]),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},n.prototype.render=function(){var e=t('&lt;span class="select2 select2-container"&gt;&lt;span class="selection"&gt;&lt;/span&gt;&lt;span class="dropdown-wrapper" aria-hidden="true"&gt;&lt;/span&gt;&lt;/span&gt;');return e.attr("dir",this.options.get("dir")),this.$container=e,this.$container.addClass("select2-container--"+this.options.get("theme")),r.StoreData(e[0],"element",this.$element),e},n})),e.define("jquery-mousewheel",["jquery"],(function(t){return t})),e.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],(function(t,e,r,i,n){if(null==t.fn.select2){var o=["open","close","destroy"];t.fn.select2=function(e){if("object"==typeof(e=e||{}))return this.each((function(){var i=t.extend(!0,{},e);new r(t(this),i)})),this;if("string"==typeof e){var i,a=Array.prototype.slice.call(arguments,1);return this.each((function(){var t=n.GetData(this,"select2");null==t&amp;&amp;window.console&amp;&amp;console.error&amp;&amp;console.error("The select2('"+e+"') method was called on an element that is not using Select2."),i=t[e].apply(t,a)})),t.inArray(e,o)&gt;-1?this:i}throw new Error("Invalid arguments for Select2: "+e)}}return null==t.fn.select2.defaults&amp;&amp;(t.fn.select2.defaults=i),r})),{define:e.define,require:e.require}}(),r=e.require("jquery.select2");return t.fn.select2.amd=e,r})?i.apply(e,n):i)||(t.exports=o)},2334:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"arrow-usage",viewBox:"0 0 8 13",url:r.p+"icons-sprite.svg#arrow-usage",toString:function(){return this.url}}},1350:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"24-hour-check-in-usage",viewBox:"0 0 34 34",url:r.p+"icons-sprite.svg#24-hour-check-in-usage",toString:function(){return this.url}}},919:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"air-conditioning-usage",viewBox:"0 0 34 34",url:r.p+"icons-sprite.svg#air-conditioning-usage",toString:function(){return this.url}}},3125:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"airports-usage",viewBox:"0 0 30 30",url:r.p+"icons-sprite.svg#airports-usage",toString:function(){return this.url}}},3177:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"amenities-1-usage",viewBox:"0 0 30 30",url:r.p+"icons-sprite.svg#amenities-1-usage",toString:function(){return this.url}}},9522:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"amenities-2-usage",viewBox:"0 0 30 30",url:r.p+"icons-sprite.svg#amenities-2-usage",toString:function(){return this.url}}},9042:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"amenities-3-usage",viewBox:"0 0 30 30",url:r.p+"icons-sprite.svg#amenities-3-usage",toString:function(){return this.url}}},4675:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"amenities-3114-usage",viewBox:"0 0 30 30",url:r.p+"icons-sprite.svg#amenities-3114-usage",toString:function(){return this.url}}},1820:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"amenities-492-usage",viewBox:"0 0 30 30",url:r.p+"icons-sprite.svg#amenities-492-usage",toString:function(){return this.url}}},3560:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"amenities-usage",viewBox:"0 0 30 30",url:r.p+"icons-sprite.svg#amenities-usage",toString:function(){return this.url}}},6859:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"apartment-mark-usage",viewBox:"0 0 30 30",url:r.p+"icons-sprite.svg#apartment-mark-usage",toString:function(){return this.url}}},4113:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"bathroom-usage",viewBox:"0 0 30 30",url:r.p+"icons-sprite.svg#bathroom-usage",toString:function(){return this.url}}},611:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"bathtub-usage",viewBox:"0 0 30 30",url:r.p+"icons-sprite.svg#bathtub-usage",toString:function(){return this.url}}},26:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"bed-3-usage",viewBox:"0 0 30 30",url:r.p+"icons-sprite.svg#bed-3-usage",toString:function(){return this.url}}},1434:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"bed-usage",viewBox:"0 0 30 30",url:r.p+"icons-sprite.svg#bed-usage",toString:function(){return this.url}}},2429:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"bedding-usage",viewBox:"0 0 30 30",url:r.p+"icons-sprite.svg#bedding-usage",toString:function(){return this.url}}},9629:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"breakfast-included-usage",viewBox:"0 0 30 30",url:r.p+"icons-sprite.svg#breakfast-included-usage",toString:function(){return this.url}}},9080:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"breakfast-not-incl-usage",viewBox:"0 0 30 30",url:r.p+"icons-sprite.svg#breakfast-not-incl-usage",toString:function(){return this.url}}},7992:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"breakfast-usage",viewBox:"0 0 34 34",url:r.p+"icons-sprite.svg#breakfast-usage",toString:function(){return this.url}}},3134:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"browser-1-usage",viewBox:"0 0 100 100",url:r.p+"icons-sprite.svg#browser-1-usage",toString:function(){return this.url}}},9753:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"business-facilities-usage",viewBox:"0 0 34 34",url:r.p+"icons-sprite.svg#business-facilities-usage",toString:function(){return this.url}}},1343:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"calendar-usage",viewBox:"0 0 30 30",url:r.p+"icons-sprite.svg#calendar-usage",toString:function(){return this.url}}},4356:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"checked-usage",viewBox:"0 0 12 9",url:r.p+"icons-sprite.svg#checked-usage",toString:function(){return this.url}}},8790:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"child-friendly-usage",viewBox:"0 0 34 34",url:r.p+"icons-sprite.svg#child-friendly-usage",toString:function(){return this.url}}},2426:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"clock-usage",viewBox:"0 0 32 26",url:r.p+"icons-sprite.svg#clock-usage",toString:function(){return this.url}}},5820:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"close-button-usage",viewBox:"0 0 30 30",url:r.p+"icons-sprite.svg#close-button-usage",toString:function(){return this.url}}},7370:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"credit-card-usage",viewBox:"0 0 30 30",url:r.p+"icons-sprite.svg#credit-card-usage",toString:function(){return this.url}}},9695:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"cutlery-usage",viewBox:"0 0 30 30",url:r.p+"icons-sprite.svg#cutlery-usage",toString:function(){return this.url}}},3001:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"dining-usage",viewBox:"0 0 30 30",url:r.p+"icons-sprite.svg#dining-usage",toString:function(){return this.url}}},2806:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"down-arrow-usage",viewBox:"0 0 30 30",url:r.p+"icons-sprite.svg#down-arrow-usage",toString:function(){return this.url}}},6104:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"dustpan-usage",viewBox:"0 0 30 30",url:r.p+"icons-sprite.svg#dustpan-usage",toString:function(){return this.url}}},7546:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"early-late-usage",viewBox:"0 0 34 34",url:r.p+"icons-sprite.svg#early-late-usage",toString:function(){return this.url}}},613:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"email-usage",viewBox:"0 0 100 100",url:r.p+"icons-sprite.svg#email-usage",toString:function(){return this.url}}},5736:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"error-usage",viewBox:"0 0 30 30",url:r.p+"icons-sprite.svg#error-usage",toString:function(){return this.url}}},6010:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"exit-popup-close-usage",viewBox:"0 0 16 16",url:r.p+"icons-sprite.svg#exit-popup-close-usage",toString:function(){return this.url}}},3367:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"eye-usage",viewBox:"0 0 30 30",url:r.p+"icons-sprite.svg#eye-usage",toString:function(){return this.url}}},6882:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"facebook-logo-usage",viewBox:"0 0 30 30",url:r.p+"icons-sprite.svg#facebook-logo-usage",toString:function(){return this.url}}},3670:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"fitness-center-gym-usage",viewBox:"0 0 34 34",url:r.p+"icons-sprite.svg#fitness-center-gym-usage",toString:function(){return this.url}}},9445:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"free-usage",viewBox:"0 0 30 30",url:r.p+"icons-sprite.svg#free-usage",toString:function(){return this.url}}},2277:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"general-usage",viewBox:"0 0 30 30",url:r.p+"icons-sprite.svg#general-usage",toString:function(){return this.url}}},5164:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"globe-phone-usage",viewBox:"0 0 30 30",url:r.p+"icons-sprite.svg#globe-phone-usage",toString:function(){return this.url}}},8396:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"google-plus-logo-usage",viewBox:"0 0 30 30",url:r.p+"icons-sprite.svg#google-plus-logo-usage",toString:function(){return this.url}}},4547:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"home-usage",viewBox:"0 0 30 30",url:r.p+"icons-sprite.svg#home-usage",toString:function(){return this.url}}},8104:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"icon-logo-usage",viewBox:"0 0 20 17",url:r.p+"icons-sprite.svg#icon-logo-usage",toString:function(){return this.url}}},5808:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"info-point-usage",viewBox:"0 0 16 16",url:r.p+"icons-sprite.svg#info-point-usage",toString:function(){return this.url}}},3644:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"info-usage",viewBox:"0 0 30 30",url:r.p+"icons-sprite.svg#info-usage",toString:function(){return this.url}}},6832:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"instagram-big-logo-usage",viewBox:"0 0 30 30",url:r.p+"icons-sprite.svg#instagram-big-logo-usage",toString:function(){return this.url}}},4246:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"internet-usage",viewBox:"0 0 34 34",url:r.p+"icons-sprite.svg#internet-usage",toString:function(){return this.url}}},1901:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"key-card-usage",viewBox:"0 0 30 30",url:r.p+"icons-sprite.svg#key-card-usage",toString:function(){return this.url}}},3460:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"like-usage",viewBox:"0 0 30 30",url:r.p+"icons-sprite.svg#like-usage",toString:function(){return this.url}}},5876:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"linkedin-letters-usage",viewBox:"0 0 30 30",url:r.p+"icons-sprite.svg#linkedin-letters-usage",toString:function(){return this.url}}},9716:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"living-room-usage",viewBox:"0 0 30 30",url:r.p+"icons-sprite.svg#living-room-usage",toString:function(){return this.url}}},1856:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"loading-usage",viewBox:"0 0 70 70",url:r.p+"icons-sprite.svg#loading-usage",toString:function(){return this.url}}},8194:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"local_attractions-usage",viewBox:"0 0 30 30",url:r.p+"icons-sprite.svg#local_attractions-usage",toString:function(){return this.url}}},1700:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"location-usage",viewBox:"0 0 30 30",url:r.p+"icons-sprite.svg#location-usage",toString:function(){return this.url}}},5917:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"mail-usage",viewBox:"0 0 30 30",url:r.p+"icons-sprite.svg#mail-usage",toString:function(){return this.url}}},8398:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"map-footer-usage",viewBox:"0 0 30 30",url:r.p+"icons-sprite.svg#map-footer-usage",toString:function(){return this.url}}},2869:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"map-usage",viewBox:"0 0 30 30",url:r.p+"icons-sprite.svg#map-usage",toString:function(){return this.url}}},8877:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"mastercard-usage",viewBox:"0 0 103 29",url:r.p+"icons-sprite.svg#mastercard-usage",toString:function(){return this.url}}},7147:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"media-usage",viewBox:"0 0 30 30",url:r.p+"icons-sprite.svg#media-usage",toString:function(){return this.url}}},7320:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"menu-usage",viewBox:"0 0 30 30",url:r.p+"icons-sprite.svg#menu-usage",toString:function(){return this.url}}},9744:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"nearby-usage",viewBox:"0 0 30 30",url:r.p+"icons-sprite.svg#nearby-usage",toString:function(){return this.url}}},1944:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"no-pets-allowed-usage",viewBox:"0 0 50 50",url:r.p+"icons-sprite.svg#no-pets-allowed-usage",toString:function(){return this.url}}},7372:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"no-smoking-usage",viewBox:"0 0 34 34",url:r.p+"icons-sprite.svg#no-smoking-usage",toString:function(){return this.url}}},4852:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"overview-usage",viewBox:"0 0 30 30",url:r.p+"icons-sprite.svg#overview-usage",toString:function(){return this.url}}},2220:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"parking-usage",viewBox:"0 0 34 34",url:r.p+"icons-sprite.svg#parking-usage",toString:function(){return this.url}}},4946:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"pay-at-hotel-usage",viewBox:"0 0 30 30",url:r.p+"icons-sprite.svg#pay-at-hotel-usage",toString:function(){return this.url}}},6898:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"pci-usage",viewBox:"0 0 92 29",url:r.p+"icons-sprite.svg#pci-usage",toString:function(){return this.url}}},3727:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"pets-allowed-usage",viewBox:"0 0 34 34",url:r.p+"icons-sprite.svg#pets-allowed-usage",toString:function(){return this.url}}},1935:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"phone-usage",viewBox:"0 0 30 30",url:r.p+"icons-sprite.svg#phone-usage",toString:function(){return this.url}}},4082:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"photo-camera-usage",viewBox:"0 0 26 20.8",url:r.p+"icons-sprite.svg#photo-camera-usage",toString:function(){return this.url}}},6002:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"placeholder-usage",viewBox:"0 0 30 30",url:r.p+"icons-sprite.svg#placeholder-usage",toString:function(){return this.url}}},239:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"private-beach-usage",viewBox:"0 0 34 34",url:r.p+"icons-sprite.svg#private-beach-usage",toString:function(){return this.url}}},7396:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"question-usage",viewBox:"0 0 30 30",url:r.p+"icons-sprite.svg#question-usage",toString:function(){return this.url}}},6983:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"rate-info-usage",viewBox:"0 0 14 15",url:r.p+"icons-sprite.svg#rate-info-usage",toString:function(){return this.url}}},7179:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"restaurant-bar-usage",viewBox:"0 0 34 34",url:r.p+"icons-sprite.svg#restaurant-bar-usage",toString:function(){return this.url}}},847:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"review-usage",viewBox:"0 0 30 30",url:r.p+"icons-sprite.svg#review-usage",toString:function(){return this.url}}},2370:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"rocking-horse-usage",viewBox:"0 0 30 30",url:r.p+"icons-sprite.svg#rocking-horse-usage",toString:function(){return this.url}}},4195:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"room-usage",viewBox:"0 0 30 30",url:r.p+"icons-sprite.svg#room-usage",toString:function(){return this.url}}},7270:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"shuttle-usage",viewBox:"0 0 34 34",url:r.p+"icons-sprite.svg#shuttle-usage",toString:function(){return this.url}}},4648:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"ski-usage",viewBox:"0 0 34 34",url:r.p+"icons-sprite.svg#ski-usage",toString:function(){return this.url}}},4902:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"skype-usage",viewBox:"0 0 30 30",url:r.p+"icons-sprite.svg#skype-usage",toString:function(){return this.url}}},7906:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"smoking-allowed-usage",viewBox:"0 0 34 34",url:r.p+"icons-sprite.svg#smoking-allowed-usage",toString:function(){return this.url}}},7563:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"sofa-2-usage",viewBox:"0 0 30 30",url:r.p+"icons-sprite.svg#sofa-2-usage",toString:function(){return this.url}}},7436:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"spa-usage",viewBox:"0 0 34 34",url:r.p+"icons-sprite.svg#spa-usage",toString:function(){return this.url}}},7904:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"square-usage",viewBox:"0 0 30 30",url:r.p+"icons-sprite.svg#square-usage",toString:function(){return this.url}}},1223:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"stairs-usage",viewBox:"0 0 30 30",url:r.p+"icons-sprite.svg#stairs-usage",toString:function(){return this.url}}},8983:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"support-usage",viewBox:"0 0 30 30",url:r.p+"icons-sprite.svg#support-usage",toString:function(){return this.url}}},313:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"swimming-pool-usage",viewBox:"0 0 34 34",url:r.p+"icons-sprite.svg#swimming-pool-usage",toString:function(){return this.url}}},1878:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"tennis-usage",viewBox:"0 0 34 34",url:r.p+"icons-sprite.svg#tennis-usage",toString:function(){return this.url}}},1578:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"train-usage",viewBox:"0 0 30 30",url:r.p+"icons-sprite.svg#train-usage",toString:function(){return this.url}}},3818:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"tripadvisor-3-1-copy-4-usage",viewBox:"0 0 100 18",url:r.p+"icons-sprite.svg#tripadvisor-3-1-copy-4-usage",toString:function(){return this.url}}},9315:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"tripadvisor-usage",viewBox:"0 0 103 32",url:r.p+"icons-sprite.svg#tripadvisor-usage",toString:function(){return this.url}}},6095:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"twitter-usage",viewBox:"0 0 30 30",url:r.p+"icons-sprite.svg#twitter-usage",toString:function(){return this.url}}},5489:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"user-2-usage",viewBox:"0 0 30 30",url:r.p+"icons-sprite.svg#user-2-usage",toString:function(){return this.url}}},2616:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"user-usage",viewBox:"0 0 30 30",url:r.p+"icons-sprite.svg#user-usage",toString:function(){return this.url}}},5357:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"visa-usage",viewBox:"0 0 53 29",url:r.p+"icons-sprite.svg#visa-usage",toString:function(){return this.url}}},5450:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"wheelchair-access-usage",viewBox:"0 0 34 34",url:r.p+"icons-sprite.svg#wheelchair-access-usage",toString:function(){return this.url}}},6984:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"wi-fi-usage",viewBox:"0 0 30 30",url:r.p+"icons-sprite.svg#wi-fi-usage",toString:function(){return this.url}}},5533:(t,e,r)=&gt;{"use strict";r.r(e),r.d(e,{default:()=&gt;i});const i={id:"youtube-play-usage",viewBox:"0 0 30 30",url:r.p+"icons-sprite.svg#youtube-play-usage",toString:function(){return this.url}}}},t=&gt;{var e=e=&gt;t(t.s=e),r=(e(6265),e(2281));lib=r}]);</pre></body></html>