PageSourceSearch

https://www.libriincantina.it/wp-content/plugins/wp-google-map-plugin/assets/js/maps.min.js?ver=5.0.1

js libriincantina.it collected 2026-10-02 07:12:30 UTC 1,625,619 bytes, 12 lines download raw bytes

1/* @preserve
2 * Leaflet 1.3.1, a JS library for interactive maps. http://leafletjs.com
3 * (c) 2010-2017 Vladimir Agafonkin, (c) 2010-2011 CloudMade
4 */
5function showWpgmpApiError(e,t){if(!wpgmp_local.is_admin)return;document.querySelectorAll(".wpgmp_map, #wpgmp_map, #wpgmp_map_preview").forEach((function(i){if(i.querySelector(".wpgmp-error-overlay"))return;i.style.position=i.style.position||"relative";const a=document.createElement("div");a.className="wpgmp-error-overlay",a.innerHTML=`\n      <div class="wpgmp-error-box">\n        <span class="wpgmp-error-icon">⚠️</span>\n        <p>${e}</p>\n        ${t?`<a href="${t}" target="_blank" rel="noopener noreferrer" class="wpgmp-error-link">Learn more</a>`:""}\n      </div>\n    `,i.appendChild(a)}))}!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(e.L={})}(this,(function(e){"use strict";function t(e){var t,i,a,n;for(i=1,a=arguments.length;i<a;i++)for(t in n=arguments[i])e[t]=n[t];return e}function i(e,t){var i=Array.prototype.slice;if(e.bind)return e.bind.apply(e,i.call(arguments,1));var a=i.call(arguments,2);return function(){return e.apply(t,a.length?a.concat(i.call(arguments)):arguments)}}function a(e){return e._leaflet_id=e._leaflet_id||++Ge,e._leaflet_id}function n(e,t,i){var a,n,o,r;return r=function(){a=!1,n&&(o.apply(i,n),n=!1)},o=function(){a?n=arguments:(e.apply(i,arguments),setTimeout(r,t),a=!0)}}function o(e,t,i){var a=t[1],n=t[0],o=a-n;return e===a&&i?e:((e-n)%o+o)%o+n}function r(){return!1}function s(e,t){var i=Math.pow(10,void 0===t?6:t);return Math.round(e*i)/i}function l(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function d(e){return l(e).split(/\s+/)}function u(e,t){for(var i in e.hasOwnProperty("options")||(e.options=e.options?qe(e.options):{}),t)e.options[i]=t[i];return e.options}function h(e,t,i){var a=[];for(var n in e)a.push(encodeURIComponent(i?n.toUpperCase():n)+"="+encodeURIComponent(e[n]));return(t&&-1!==t.indexOf("?")?"&":"?")+a.join("&")}function c(e,t){return e.replace(We,(function(e,i){var a=t[i];if(void 0===a)throw new Error("No value provided for variable "+e);return"function"==typeof a&&(a=a(t)),a}))}function m(e,t){for(var i=0;i<e.length;i++)if(e[i]===t)return i;return-1}function p(e){return window["webkit"+e]||window["moz"+e]||window["ms"+e]}function f(e){var t=+new Date,i=Math.max(0,16-(t-Xe));return Xe=t+i,window.setTimeout(e,i)}function _(e,t,a){if(!a||Je!==f)return Je.call(window,i(e,t));e.call(t)}function g(e){e&&Ye.call(window,e)}function y(){}function v(e,t,i){this.x=i?Math.round(e):e,this.y=i?Math.round(t):t}function w(e,t,i){return e instanceof v?e:He(e)?new v(e[0],e[1]):null==e?e:"object"==typeof e&&"x"in e&&"y"in e?new v(e.x,e.y):new v(e,t,i)}function x(e,t){if(e)for(var i=t?[e,t]:e,a=0,n=i.length;a<n;a++)this.extend(i[a])}function b(e,t){return!e||e instanceof x?e:new x(e,t)}function k(e,t){if(e)for(var i=t?[e,t]:e,a=0,n=i.length;a<n;a++)this.extend(i[a])}function S(e,t){return e instanceof k?e:new k(e,t)}function T(e,t,i){if(isNaN(e)||isNaN(t))throw new Error("Invalid LatLng object: ("+e+", "+t+")");this.lat=+e,this.lng=+t,void 0!==i&&(this.alt=+i)}function C(e,t,i){return e instanceof T?e:He(e)&&"object"!=typeof e[0]?3===e.length?new T(e[0],e[1],e[2]):2===e.length?new T(e[0],e[1]):null:null==e?e:"object"==typeof e&&"lat"in e?new T(e.lat,"lng"in e?e.lng:e.lon,e.alt):void 0===t?null:new T(e,t,i)}function z(e,t,i,a){if(He(e))return this._a=e[0],this._b=e[1],this._c=e[2],void(this._d=e[3]);this._a=e,this._b=t,this._c=i,this._d=a}function P(e,t,i,a){return new z(e,t,i,a)}function M(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function A(e,t){var i,a,n,o,r,s,l="";for(i=0,n=e.length;i<n;i++){for(a=0,o=(r=e[i]).length;a<o;a++)l+=(a?"L":"M")+(s=r[a]).x+" "+s.y;l+=t?Vt?"z":"x":""}return l||"M0 0"}function I(e){return navigator.userAgent.toLowerCase().indexOf(e)>=0}function E(e,t,i,a){return"touchstart"===t?D(e,i,a):"touchmove"===t?function(e,t,i){var a=function(e){(e.pointerType!==e.MSPOINTER_TYPE_MOUSE&&"mouse"!==e.pointerType||0!==e.buttons)&&B(e,t)};e["_leaflet_touchmove"+i]=a,e.addEventListener(Gt,a,!1)}(e,i,a):"touchend"===t&&function(e,t,i){var a=function(e){B(e,t)};e["_leaflet_touchend"+i]=a,e.addEventListener(Wt,a,!1),e.addEventListener(Ht,a,!1)}(e,i,a),this}function D(e,t,a){var n=i((function(e){if("mouse"!==e.pointerType&&e.MSPOINTER_TYPE_MOUSE&&e.pointerType!==e.MSPOINTER_TYPE_MOUSE){if(!(Kt.indexOf(e.target.tagName)<0))return;H(e)}B(e,t)}));e["_leaflet_touchstart"+a]=n,e.addEventListener(qt,n,!1),Jt||(document.documentElement.addEventListener(qt,j,!0),document.documentElement.addEventListener(Gt,$,!0),document.documentElement.addEventListener(Wt,R,!0),document.documentElement.addEventListener(Ht,R,!0),Jt=!0)}function j(e){Xt[e.pointerId]=e,Yt++}function $(e){Xt[e.pointerId]&&(Xt[e.pointerId]=e)}function R(e){delete Xt[e.pointerId],Yt--}function B(e,t){for(var i in e.touches=[],Xt)e.touches.push(Xt[i]);e.changedTouches=[e],t(e)}function F(e,t,i){function a(e){var t;if($t){if(!ft||"mouse"===e.pointerType)return;t=Yt}else t=e.touches.length;if(!(t>1)){var i=Date.now(),a=i-(o||i);r=e.touches?e.touches[0]:e,s=a>0&&a<=l,o=i}}function n(e){if(s&&!r.cancelBubble){if($t){if(!ft||"mouse"===e.pointerType)return;var i,a,n={};for(a in r)i=r[a],n[a]=i&&i.bind?i.bind(r):i;r=n}r.type="dblclick",t(r),o=null}}var o,r,s=!1,l=250;return e[ti+Qt+i]=a,e[ti+ei+i]=n,e[ti+"dblclick"+i]=t,e.addEventListener(Qt,a,!1),e.addEventListener(ei,n,!1),e.addEventListener("dblclick",t,!1),this}function O(e,t){var i=e[ti+Qt+t],a=e[ti+ei+t],n=e[ti+"dblclick"+t];return e.removeEventListener(Qt,i,!1),e.removeEventListener(ei,a,!1),ft||e.removeEventListener("dblclick",n,!1),this}function N(e,t,i,a){if("object"==typeof t)for(var n in t)U(e,n,t[n],i);else for(var o=0,r=(t=d(t)).length;o<r;o++)U(e,t[o],i,a);return this}function V(e,t,i,a){if("object"==typeof t)for(var n in t)Z(e,n,t[
vendor: 6,360 bytes, line 5
5n],i);else if(t)for(var o=0,r=(t=d(t)).length;o<r;o++)Z(e,t[o],i,a);else{for(var s in e[ii])Z(e,s,e[ii][s]);delete e[ii]}return this}function U(e,t,i,n){var o=t+a(i)+(n?"_"+a(n):"");if(e[ii]&&e[ii][o])return this;var r=function(t){return i.call(n||e,t||window.event)},s=r;$t&&0===t.indexOf("touch")?E(e,t,r,o):!Rt||"dblclick"!==t||!F||$t&&bt?"addEventListener"in e?"mousewheel"===t?e.addEventListener("onwheel"in e?"wheel":"mousewheel",r,!1):"mouseenter"===t||"mouseleave"===t?(r=function(t){t=t||window.event,ee(e,t)&&s(t)},e.addEventListener("mouseenter"===t?"mouseover":"mouseout",r,!1)):("click"===t&&gt&&(r=function(e){!function(e,t){var i=e.timeStamp||e.originalEvent&&e.originalEvent.timeStamp,a=rt&&i-rt;a&&a>100&&a<500||e.target._simulatedClick&&!e._simulated?K(e):(rt=i,t(e))}(e,s)}),e.addEventListener(t,r,!1)):"attachEvent"in e&&e.attachEvent("on"+t,r):F(e,r,o),e[ii]=e[ii]||{},e[ii][o]=r}function Z(e,t,i,n){var o=t+a(i)+(n?"_"+a(n):""),r=e[ii]&&e[ii][o];if(!r)return this;$t&&0===t.indexOf("touch")?function(e,t,i){var a=e["_leaflet_"+t+i];"touchstart"===t?e.removeEventListener(qt,a,!1):"touchmove"===t?e.removeEventListener(Gt,a,!1):"touchend"===t&&(e.removeEventListener(Wt,a,!1),e.removeEventListener(Ht,a,!1))}(e,t,o):!Rt||"dblclick"!==t||!O||$t&&bt?"removeEventListener"in e?"mousewheel"===t?e.removeEventListener("onwheel"in e?"wheel":"mousewheel",r,!1):e.removeEventListener("mouseenter"===t?"mouseover":"mouseleave"===t?"mouseout":t,r,!1):"detachEvent"in e&&e.detachEvent("on"+t,r):O(e,o),e[ii][o]=null}function q(e){return e.stopPropagation?e.stopPropagation():e.originalEvent?e.originalEvent._stopped=!0:e.cancelBubble=!0,Q(e),this}function G(e){return U(e,"mousewheel",q),this}function W(e){return N(e,"mousedown touchstart dblclick",q),U(e,"click",Y),this}function H(e){return e.preventDefault?e.preventDefault():e.returnValue=!1,this}function K(e){return H(e),q(e),this}function X(e,t){if(!t)return new v(e.clientX,e.clientY);var i=t.getBoundingClientRect(),a=i.width/t.offsetWidth||1,n=i.height/t.offsetHeight||1;return new v(e.clientX/a-i.left-t.clientLeft,e.clientY/n-i.top-t.clientTop)}function J(e){return ft?e.wheelDeltaY/2:e.deltaY&&0===e.deltaMode?-e.deltaY/ai:e.deltaY&&1===e.deltaMode?20*-e.deltaY:e.deltaY&&2===e.deltaMode?60*-e.deltaY:e.deltaX||e.deltaZ?0:e.wheelDelta?(e.wheelDeltaY||e.wheelDelta)/2:e.detail&&Math.abs(e.detail)<32765?20*-e.detail:e.detail?e.detail/-32765*60:0}function Y(e){ni[e.type]=!0}function Q(e){var t=ni[e.type];return ni[e.type]=!1,t}function ee(e,t){var i=t.relatedTarget;if(!i)return!0;try{for(;i&&i!==e;)i=i.parentNode}catch(e){return!1}return i!==e}function te(e){return"string"==typeof e?document.getElementById(e):e}function ie(e,t){var i=e.style[t]||e.currentStyle&&e.currentStyle[t];if((!i||"auto"===i)&&document.defaultView){var a=document.defaultView.getComputedStyle(e,null);i=a?a[t]:null}return"auto"===i?null:i}function ae(e,t,i){var a=document.createElement(e);return a.className=t||"",i&&i.appendChild(a),a}function ne(e){var t=e.parentNode;t&&t.removeChild(e)}function oe(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function re(e){var t=e.parentNode;t.lastChild!==e&&t.appendChild(e)}function se(e){var t=e.parentNode;t.firstChild!==e&&t.insertBefore(e,t.firstChild)}function le(e,t){if(void 0!==e.classList)return e.classList.contains(t);var i=ce(e);return i.length>0&&new RegExp("(^|\\s)"+t+"(\\s|$)").test(i)}function de(e,t){if(void 0!==e.classList)for(var i=d(t),a=0,n=i.length;a<n;a++)e.classList.add(i[a]);else if(!le(e,t)){var o=ce(e);he(e,(o?o+" ":"")+t)}}function ue(e,t){void 0!==e.classList?e.classList.remove(t):he(e,l((" "+ce(e)+" ").replace(" "+t+" "," ")))}function he(e,t){void 0===e.className.baseVal?e.className=t:e.className.baseVal=t}function ce(e){return void 0===e.className.baseVal?e.className:e.className.baseVal}function me(e,t){"opacity"in e.style?e.style.opacity=t:"filter"in e.style&&function(e,t){var i=!1,a="DXImageTransform.Microsoft.Alpha";try{i=e.filters.item(a)}catch(e){if(1===t)return}t=Math.round(100*t),i?(i.Enabled=100!==t,i.Opacity=t):e.style.filter+=" progid:"+a+"(opacity="+t+")"}(e,t)}function pe(e){for(var t=document.documentElement.style,i=0;i<e.length;i++)if(e[i]in t)return e[i];return!1}function fe(e,t,i){var a=t||new v(0,0);e.style[ri]=(Pt?"translate("+a.x+"px,"+a.y+"px)":"translate3d("+a.x+"px,"+a.y+"px,0)")+(i?" scale("+i+")":"")}function _e(e,t){e._leaflet_pos=t,At?fe(e,t):(e.style.left=t.x+"px",e.style.top=t.y+"px")}function ge(e){return e._leaflet_pos||new v(0,0)}function ye(){N(window,"dragstart",H)}function ve(){V(window,"dragstart",H)}function we(e){for(;-1===e.tabIndex;)e=e.parentNode;e.style&&(xe(),ui=e,hi=e.style.outline,e.style.outline="none",N(window,"keydown",xe))}function xe(){ui&&(ui.style.outline=hi,ui=void 0,hi=void 0,V(window,"keydown",xe))}function be(e,t){if(!t||!e.length)return e.slice();var i=t*t;return e=function(e,t){for(var i=[e[0]],a=1,n=0,o=e.length;a<o;a++)Pe(e[a],e[n])>t&&(i.push(e[a]),n=a);return n<o-1&&i.push(e[o-1]),i}(e,i),function(e,t){var i=e.length,a=new(typeof Uint8Array!=void 0+""?Uint8Array:Array)(i);a[0]=a[i-1]=1,Se(e,a,t,0,i-1);var n,o=[];for(n=0;n<i;n++)a[n]&&o.push(e[n]);return o}(e,i)}function ke(e,t,i){return Math.sqrt(Me(e,t,i,!0))}function Se(e,t,i,a,n){var o,r,s,l=0;for(r=a+1;r<=n-1;r++)(s=Me(e[r],e[a],e[n],!0))>l&&(o=r,l=s);l>i&&(t[o]=1,Se(e,t,i,a,o),Se(e,t,i,o,n))}function Te(e,t,i,a,n){var o,r,s,l=a?bi:ze(e,i),d=ze(t,i);for(bi=d;;){if(!(l|d))return[e,t];if(l&d)return!1;s=ze(r=Ce(e,t,o=l||d,i,n),i),o===l?(e=r,l=s):(t=r,d=s)}}function Ce(e,t,i,a,n){var o,r,s=t.x-e.x,l=t.y-e.y,d=a.min,u=a.max;return 8&i?(o=e.x+s*(u.y-e.y)/l,r=u.y):4&i?(o=e.x+s*(d.y-e.y)/l,r=d.y):2&i?(o=u.x,r=e.y+l*(u.x-e.x)/s):1&i&&(o=d.x,r=e.y+l*(d.x-e.x)/s),new v(o,r,n)}function ze(e,t){var i=0;return e.x<t.min.x?i|=1:e.x>t.max.x&&(i|=2),e.y<t.min.y?i|=4:e.y>t.max.y&&(i|=8),i}function Pe(e,t){var i=t.x-e.x,a=t.y-e.y;return i*i+a*a}function Me(e,t,i,a){var n,o=t.x,r=t.y,s=i.x-o,l=i.y-r,d=s*s+l*l;return d>0&&((n=((e.x-o)*s+(e.y-r)*l)/d)>1?(o=i.x,r=i.y):n>0&&(o+=s*n,r+=l*n)),s=e.x-o,l=e.y-r,a?s*s+l*l:new v(o,r)}function Le(e){return!He(e[0])||"object"!=typeof e[0][0]&&void 0!==e[0][0]}function Ae(e){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Le(e)}function Ie(e,t,i){var a,n,o,r,s,l,d,u,h,c=[1,4,2,8];for(n=0,d=e.length;n<d;
5n++)e[n]._code=ze(e[n],t);for(r=0;r<4;r++){for(u=c[r],a=[],n=0,o=(d=e.length)-1;n<d;o=n++)s=e[n],l=e[o],s._code&u?l._code&u||((h=Ce(l,s,u,t,i))._code=ze(h,t),a.push(h)):(l._code&u&&((h=Ce(l,s,u,t,i))._code=ze(h,t),a.push(h)),a.push(s));e=a}return e}function Ee(e,t){var i,a,n,o,r="Feature"===e.type?e.geometry:e,s=r?r.coordinates:null,l=[],d=t&&t.pointToLayer,u=t&&t.coordsToLatLng||De;if(!s&&!r)return null;switch(r.type){case"Point":return i=u(s),d?d(e,i):new Vi(i);case"MultiPoint":for(n=0,o=s.length;n<o;n++)i=u(s[n]),l.push(d?d(e,i):new Vi(i));return new Bi(l);case"LineString":case"MultiLineString":return a=je(s,"LineString"===r.type?0:1,u),new Gi(a,t);case"Polygon":case"MultiPolygon":return a=je(s,"Polygon"===r.type?1:2,u),new Wi(a,t);case"GeometryCollection":for(n=0,o=r.geometries.length;n<o;n++){var h=Ee({geometry:r.geometries[n],type:"Feature",properties:e.properties},t);h&&l.push(h)}return new Bi(l);default:throw new Error("Invalid GeoJSON object.")}}function De(e){return new T(e[1],e[0],e[2])}function je(e,t,i){for(var a,n=[],o=0,r=e.length;o<r;o++)a=t?je(e[o],t-1,i):(i||De)(e[o]),n.push(a);return n}function $e(e,t){return t="number"==typeof t?t:6,void 0!==e.alt?[s(e.lng,t),s(e.lat,t),s(e.alt,t)]:[s(e.lng,t),s(e.lat,t)]}function Re(e,t,i,a){for(var n=[],o=0,r=e.length;o<r;o++)n.push(t?Re(e[o],t-1,i,a):$e(e[o],a));return!t&&i&&n.push(n[0]),n}function Be(e,i){return e.feature?t({},e.feature,{geometry:i}):Fe(i)}function Fe(e){return"Feature"===e.type||"FeatureCollection"===e.type?e:{type:"Feature",properties:{},geometry:e}}function Oe(e,t){return new Hi(e,t)}function Ne(e,t){return new na(e,t)}function Ve(e){return Nt?new sa(e):null}function Ue(e){return Vt||Ut?new ha(e):null}var Ze=Object.freeze;Object.freeze=function(e){return e};var qe=Object.create||function(){function e(){}return function(t){return e.prototype=t,new e}}(),Ge=0,We=/\{ *([\w_-]+) *\}/g,He=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},Ke="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=",Xe=0,Je=window.requestAnimationFrame||p("RequestAnimationFrame")||f,Ye=window.cancelAnimationFrame||p("CancelAnimationFrame")||p("CancelRequestAnimationFrame")||function(e){window.clearTimeout(e)},Qe=(Object.freeze||Object)({freeze:Ze,extend:t,create:qe,bind:i,lastId:Ge,stamp:a,throttle:n,wrapNum:o,falseFn:r,formatNum:s,trim:l,splitWords:d,setOptions:u,getParamString:h,template:c,isArray:He,indexOf:m,emptyImageUrl:Ke,requestFn:Je,cancelFn:Ye,requestAnimFrame:_,cancelAnimFrame:g});y.extend=function(e){var i=function(){this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},a=i.__super__=this.prototype,n=qe(a);for(var o in n.constructor=i,i.prototype=n,this)this.hasOwnProperty(o)&&"prototype"!==o&&"__super__"!==o&&(i[o]=this[o]);return e.statics&&(t(i,e.statics),delete e.statics),e.includes&&(function(e){if("undefined"!=typeof L&&L&&L.Mixin){e=He(e)?e:[e];for(var t=0;t<e.length;
vendor: 6,634 bytes, line 5
5t++)e[t]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",(new Error).stack)}}(e.includes),t.apply(null,[n].concat(e.includes)),delete e.includes),n.options&&(e.options=t(qe(n.options),e.options)),t(n,e),n._initHooks=[],n.callInitHooks=function(){if(!this._initHooksCalled){a.callInitHooks&&a.callInitHooks.call(this),this._initHooksCalled=!0;for(var e=0,t=n._initHooks.length;e<t;e++)n._initHooks[e].call(this)}},i},y.include=function(e){return t(this.prototype,e),this},y.mergeOptions=function(e){return t(this.prototype.options,e),this},y.addInitHook=function(e){var t=Array.prototype.slice.call(arguments,1),i="function"==typeof e?e:function(){this[e].apply(this,t)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(i),this};var et={on:function(e,t,i){if("object"==typeof e)for(var a in e)this._on(a,e[a],t);else for(var n=0,o=(e=d(e)).length;n<o;n++)this._on(e[n],t,i);return this},off:function(e,t,i){if(e)if("object"==typeof e)for(var a in e)this._off(a,e[a],t);else for(var n=0,o=(e=d(e)).length;n<o;n++)this._off(e[n],t,i);else delete this._events;return this},_on:function(e,t,i){this._events=this._events||{};var a=this._events[e];a||(a=[],this._events[e]=a),i===this&&(i=void 0);for(var n={fn:t,ctx:i},o=a,r=0,s=o.length;r<s;r++)if(o[r].fn===t&&o[r].ctx===i)return;o.push(n)},_off:function(e,t,i){var a,n,o;if(this._events&&(a=this._events[e]))if(t){if(i===this&&(i=void 0),a)for(n=0,o=a.length;n<o;n++){var s=a[n];if(s.ctx===i&&s.fn===t)return s.fn=r,this._firingCount&&(this._events[e]=a=a.slice()),void a.splice(n,1)}}else{for(n=0,o=a.length;n<o;n++)a[n].fn=r;delete this._events[e]}},fire:function(e,i,a){if(!this.listens(e,a))return this;var n=t({},i,{type:e,target:this,sourceTarget:i&&i.sourceTarget||this});if(this._events){var o=this._events[e];if(o){this._firingCount=this._firingCount+1||1;for(var r=0,s=o.length;r<s;r++){var l=o[r];l.fn.call(l.ctx||this,n)}this._firingCount--}}return a&&this._propagateEvent(n),this},listens:function(e,t){var i=this._events&&this._events[e];if(i&&i.length)return!0;if(t)for(var a in this._eventParents)if(this._eventParents[a].listens(e,t))return!0;return!1},once:function(e,t,a){if("object"==typeof e){for(var n in e)this.once(n,e[n],t);return this}var o=i((function(){this.off(e,t,a).off(e,o,a)}),this);return this.on(e,t,a).on(e,o,a)},addEventParent:function(e){return this._eventParents=this._eventParents||{},this._eventParents[a(e)]=e,this},removeEventParent:function(e){return this._eventParents&&delete this._eventParents[a(e)],this},_propagateEvent:function(e){for(var i in this._eventParents)this._eventParents[i].fire(e.type,t({layer:e.target,propagatedFrom:e.target},e),!0)}};et.addEventListener=et.on,et.removeEventListener=et.clearAllEventListeners=et.off,et.addOneTimeEventListener=et.once,et.fireEvent=et.fire,et.hasEventListeners=et.listens;var tt=y.extend(et),it=Math.trunc||function(e){return e>0?Math.floor(e):Math.ceil(e)};v.prototype={clone:function(){return new v(this.x,this.y)},add:function(e){return this.clone()._add(w(e))},_add:function(e){return this.x+=e.x,this.y+=e.y,this},subtract:function(e){return this.clone()._subtract(w(e))},_subtract:function(e){return this.x-=e.x,this.y-=e.y,this},divideBy:function(e){return this.clone()._divideBy(e)},_divideBy:function(e){return this.x/=e,this.y/=e,this},multiplyBy:function(e){return this.clone()._multiplyBy(e)},_multiplyBy:function(e){return this.x*=e,this.y*=e,this},scaleBy:function(e){return new v(this.x*e.x,this.y*e.y)},unscaleBy:function(e){return new v(this.x/e.x,this.y/e.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=it(this.x),this.y=it(this.y),this},distanceTo:function(e){var t=(e=w(e)).x-this.x,i=e.y-this.y;return Math.sqrt(t*t+i*i)},equals:function(e){return(e=w(e)).x===this.x&&e.y===this.y},contains:function(e){return e=w(e),Math.abs(e.x)<=Math.abs(this.x)&&Math.abs(e.y)<=Math.abs(this.y)},toString:function(){return"Point("+s(this.x)+", "+s(this.y)+")"}},x.prototype={extend:function(e){return e=w(e),this.min||this.max?(this.min.x=Math.min(e.x,this.min.x),this.max.x=Math.max(e.x,this.max.x),this.min.y=Math.min(e.y,this.min.y),this.max.y=Math.max(e.y,this.max.y)):(this.min=e.clone(),this.max=e.clone()),this},getCenter:function(e){return new v((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,e)},getBottomLeft:function(){return new v(this.min.x,this.max.y)},getTopRight:function(){return new v(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(e){var t,i;return(e="number"==typeof e[0]||e instanceof v?w(e):b(e))instanceof x?(t=e.min,i=e.max):t=i=e,t.x>=this.min.x&&i.x<=this.max.x&&t.y>=this.min.y&&i.y<=this.max.y},intersects:function(e){e=b(e);var t=this.min,i=this.max,a=e.min,n=e.max,o=n.x>=t.x&&a.x<=i.x,r=n.y>=t.y&&a.y<=i.y;return o&&r},overlaps:function(e){e=b(e);var t=this.min,i=this.max,a=e.min,n=e.max,o=n.x>t.x&&a.x<i.x,r=n.y>t.y&&a.y<i.y;return o&&r},isValid:function(){return!(!this.min||!this.max)}},k.prototype={extend:function(e){var t,i,a=this._southWest,n=this._northEast;if(e instanceof T)t=e,i=e;else{if(!(e instanceof k))return e?this.extend(C(e)||S(e)):this;if(t=e._southWest,i=e._northEast,!t||!i)return this}return a||n?(a.lat=Math.min(t.lat,a.lat),a.lng=Math.min(t.lng,a.lng),n.lat=Math.max(i.lat,n.lat),n.lng=Math.max(i.lng,n.lng)):(this._southWest=new T(t.lat,t.lng),this._northEast=new T(i.lat,i.lng)),this},pad:function(e){var t=this._southWest,i=this._northEast,a=Math.abs(t.lat-i.lat)*e,n=Math.abs(t.lng-i.lng)*e;return new k(new T(t.lat-a,t.lng-n),new T(i.lat+a,i.lng+n))},getCenter:function(){return new T((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new T(this.getNorth(),this.getWest())},getSouthEast:function(){return new T(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat}
vendor: 2,436 bytes, line 5
5,getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(e){e="number"==typeof e[0]||e instanceof T||"lat"in e?C(e):S(e);var t,i,a=this._southWest,n=this._northEast;return e instanceof k?(t=e.getSouthWest(),i=e.getNorthEast()):t=i=e,t.lat>=a.lat&&i.lat<=n.lat&&t.lng>=a.lng&&i.lng<=n.lng},intersects:function(e){e=S(e);var t=this._southWest,i=this._northEast,a=e.getSouthWest(),n=e.getNorthEast(),o=n.lat>=t.lat&&a.lat<=i.lat,r=n.lng>=t.lng&&a.lng<=i.lng;return o&&r},overlaps:function(e){e=S(e);var t=this._southWest,i=this._northEast,a=e.getSouthWest(),n=e.getNorthEast(),o=n.lat>t.lat&&a.lat<i.lat,r=n.lng>t.lng&&a.lng<i.lng;return o&&r},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(e,t){return!!e&&(e=S(e),this._southWest.equals(e.getSouthWest(),t)&&this._northEast.equals(e.getNorthEast(),t))},isValid:function(){return!(!this._southWest||!this._northEast)}},T.prototype={equals:function(e,t){return!!e&&(e=C(e),Math.max(Math.abs(this.lat-e.lat),Math.abs(this.lng-e.lng))<=(void 0===t?1e-9:t))},toString:function(e){return"LatLng("+s(this.lat,e)+", "+s(this.lng,e)+")"},distanceTo:function(e){return nt.distance(this,C(e))},wrap:function(){return nt.wrapLatLng(this)},toBounds:function(e){var t=180*e/40075017,i=t/Math.cos(Math.PI/180*this.lat);return S([this.lat-t,this.lng-i],[this.lat+t,this.lng+i])},clone:function(){return new T(this.lat,this.lng,this.alt)}};var at={latLngToPoint:function(e,t){var i=this.projection.project(e),a=this.scale(t);return this.transformation._transform(i,a)},pointToLatLng:function(e,t){var i=this.scale(t),a=this.transformation.untransform(e,i);return this.projection.unproject(a)},project:function(e){return this.projection.project(e)},unproject:function(e){return this.projection.unproject(e)},scale:function(e){return 256*Math.pow(2,e)},zoom:function(e){return Math.log(e/256)/Math.LN2},getProjectedBounds:function(e){if(this.infinite)return null;var t=this.projection.bounds,i=this.scale(e);return new x(this.transformation.transform(t.min,i),this.transformation.transform(t.max,i))},infinite:!1,wrapLatLng:function(e){var t=this.wrapLng?o(e.lng,this.wrapLng,!0):e.lng;return new T(this.wrapLat?o(e.lat,this.wrapLat,!0):e.lat,t,e.alt)},wrapLatLngBounds:function(e){var t=e.getCenter(),i=this.wrapLatLng(t),a=t.lat-i.lat,n=t.lng-i.lng;if(0===a&&0===n)return e;
vendor: 7,526 bytes, line 5
5var o=e.getSouthWest(),r=e.getNorthEast();return new k(new T(o.lat-a,o.lng-n),new T(r.lat-a,r.lng-n))}},nt=t({},at,{wrapLng:[-180,180],R:6371e3,distance:function(e,t){var i=Math.PI/180,a=e.lat*i,n=t.lat*i,o=Math.sin((t.lat-e.lat)*i/2),r=Math.sin((t.lng-e.lng)*i/2),s=o*o+Math.cos(a)*Math.cos(n)*r*r,l=2*Math.atan2(Math.sqrt(s),Math.sqrt(1-s));return this.R*l}}),ot={R:6378137,MAX_LATITUDE:85.0511287798,project:function(e){var t=Math.PI/180,i=this.MAX_LATITUDE,a=Math.max(Math.min(i,e.lat),-i),n=Math.sin(a*t);return new v(this.R*e.lng*t,this.R*Math.log((1+n)/(1-n))/2)},unproject:function(e){var t=180/Math.PI;return new T((2*Math.atan(Math.exp(e.y/this.R))-Math.PI/2)*t,e.x*t/this.R)},bounds:function(){var e=6378137*Math.PI;return new x([-e,-e],[e,e])}()};z.prototype={transform:function(e,t){return this._transform(e.clone(),t)},_transform:function(e,t){return t=t||1,e.x=t*(this._a*e.x+this._b),e.y=t*(this._c*e.y+this._d),e},untransform:function(e,t){return t=t||1,new v((e.x/t-this._b)/this._a,(e.y/t-this._d)/this._c)}};var rt,st,lt,dt,ut=t({},nt,{code:"EPSG:3857",projection:ot,transformation:function(){var e=.5/(Math.PI*ot.R);return P(e,.5,-e,.5)}()}),ht=t({},ut,{code:"EPSG:900913"}),ct=document.documentElement.style,mt="ActiveXObject"in window,pt=mt&&!document.addEventListener,ft="msLaunchUri"in navigator&&!("documentMode"in document),_t=I("webkit"),gt=I("android"),yt=I("android 2")||I("android 3"),vt=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),wt=gt&&I("Google")&&vt<537&&!("AudioNode"in window),xt=!!window.opera,bt=I("chrome"),kt=I("gecko")&&!_t&&!xt&&!mt,St=!bt&&I("safari"),Tt=I("phantom"),Ct="OTransition"in ct,zt=0===navigator.platform.indexOf("Win"),Pt=mt&&"transition"in ct,Mt="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!yt,Lt="MozPerspective"in ct,At=!window.L_DISABLE_3D&&(Pt||Mt||Lt)&&!Ct&&!Tt,It="undefined"!=typeof orientation||I("mobile"),Et=It&&_t,Dt=It&&Mt,jt=!window.PointerEvent&&window.MSPointerEvent,$t=!(!window.PointerEvent&&!jt),Rt=!window.L_NO_TOUCH&&($t||"ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch),Bt=It&&xt,Ft=It&&kt,Ot=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,Nt=!!document.createElement("canvas").getContext,Vt=!(!document.createElementNS||!M("svg").createSVGRect),Ut=!Vt&&function(){try{var e=document.createElement("div");e.innerHTML='<v:shape adj="1"/>';var t=e.firstChild;return t.style.behavior="url(#default#VML)",t&&"object"==typeof t.adj}catch(e){return!1}}(),Zt=(Object.freeze||Object)({ie:mt,ielt9:pt,edge:ft,webkit:_t,android:gt,android23:yt,androidStock:wt,opera:xt,chrome:bt,gecko:kt,safari:St,phantom:Tt,opera12:Ct,win:zt,ie3d:Pt,webkit3d:Mt,gecko3d:Lt,any3d:At,mobile:It,mobileWebkit:Et,mobileWebkit3d:Dt,msPointer:jt,pointer:$t,touch:Rt,mobileOpera:Bt,mobileGecko:Ft,retina:Ot,canvas:Nt,svg:Vt,vml:Ut}),qt=jt?"MSPointerDown":"pointerdown",Gt=jt?"MSPointerMove":"pointermove",Wt=jt?"MSPointerUp":"pointerup",Ht=jt?"MSPointerCancel":"pointercancel",Kt=["INPUT","SELECT","OPTION"],Xt={},Jt=!1,Yt=0,Qt=jt?"MSPointerDown":$t?"pointerdown":"touchstart",ei=jt?"MSPointerUp":$t?"pointerup":"touchend",ti="_leaflet_",ii="_leaflet_events",ai=zt&&bt?2*window.devicePixelRatio:kt?window.devicePixelRatio:1,ni={},oi=(Object.freeze||Object)({on:N,off:V,stopPropagation:q,disableScrollPropagation:G,disableClickPropagation:W,preventDefault:H,stop:K,getMousePosition:X,getWheelDelta:J,fakeStop:Y,skipped:Q,isExternalTarget:ee,addListener:N,removeListener:V}),ri=pe(["transform","WebkitTransform","OTransform","MozTransform","msTransform"]),si=pe(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),li="webkitTransition"===si||"OTransition"===si?si+"End":"transitionend";if("onselectstart"in document)st=function(){N(window,"selectstart",H)},lt=function(){V(window,"selectstart",H)};else{var di=pe(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);st=function(){if(di){var e=document.documentElement.style;dt=e[di],e[di]="none"}},lt=function(){di&&(document.documentElement.style[di]=dt,dt=void 0)}}var ui,hi,ci=(Object.freeze||Object)({TRANSFORM:ri,TRANSITION:si,TRANSITION_END:li,get:te,getStyle:ie,create:ae,remove:ne,empty:oe,toFront:re,toBack:se,hasClass:le,addClass:de,removeClass:ue,setClass:he,getClass:ce,setOpacity:me,testProp:pe,setTransform:fe,setPosition:_e,getPosition:ge,disableTextSelection:st,enableTextSelection:lt,disableImageDrag:ye,enableImageDrag:ve,preventOutline:we,restoreOutline:xe}),mi=tt.extend({run:function(e,t,i,a){this.stop(),this._el=e,this._inProgress=!0,this._duration=i||.25,this._easeOutPower=1/Math.max(a||.5,.2),this._startPos=ge(e),this._offset=t.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=_(this._animate,this),this._step()},_step:function(e){var t=+new Date-this._startTime,i=1e3*this._duration;t<i?this._runFrame(this._easeOut(t/i),e):(this._runFrame(1),this._complete())},_runFrame:function(e,t){var i=this._startPos.add(this._offset.multiplyBy(e));t&&i._round(),_e(this._el,i),this.fire("step")},_complete:function(){g(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(e){return 1-Math.pow(1-e,this._easeOutPower)}}),pi=tt.extend({options:{crs:ut,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(e,t){t=u(this,t),this._initContainer(e),this._initLayout(),this._onResize=i(this._onResize,this),this._initEvents(),t.maxBounds&&this.setMaxBounds(t.maxBounds),void 0!==t.zoom&&(this._zoom=this._limitZoom(t.zoom)),t.center&&void 0!==t.zoom&&this.setView(C(t.center),t.zoom,{reset:!0}),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this.callInitHooks(),this._zoomAnimated=si&&At&&!Bt&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),N(this._proxy,li,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(e,i,a){return i=void 0===i?this._zoom:this._limitZoom(i),e=this._limitCenter(C(e),i,this.options.maxBounds),a=a||{},this._stop(),this._loaded&&!a.reset&&!0!==a&&(void 0!==a.animate&&(a.zoom=t({animate:a.animate},a.zoom),a.pan=t({animate:a.animate,duration:a.duration},a.pan)),this._zoom!==i?this._tryAnimatedZoom&&this._tryAnimatedZoom(e,i,a.zoom):this._tryAnimatedPan(e,a.pan))?(clearTimeout(this._sizeTimer),this):(this._resetView(e,i),this)},setZoom:function(e,t){return this._loaded?this.setView(this.getCenter(),e,{zoom:t}):(this._zoom=e,this)},zoomIn:function(e,t){return e=e||(At?this.options.zoomDelta:1),this.setZoom(this._zoom+e,t)},zoomOut:function(e,t){return e=e||(At?this.options.zoomDelta:1),this.setZoom(this._zoom-e,t)},setZoomAround:function(e,t,i){var a=this.getZoomScale(t),n=this.getSize().divideBy(2),o=(e instanceof v?e:this.latLngToContainerPoint(e)).subtract(n).multiplyBy(1-1/a),r=this.containerPointToLatLng(n.add(o));return this.setView(r,t,{zoom:i})},_getBoundsCenterZoom:function(e,t){t=t||{},e=e.getBounds?e.getBounds():S(e);var i=w(t.paddingTopLeft||t.padding||[0,0]),a=w(t.paddingBottomRight||t.padding||[0,0]),n=this.getBoundsZoom(e,!1,i.add(a));if((n="number"==typeof t.maxZoom?Math.min(t.maxZoom,n):n)===1/0)return{center:e.getCenter(),zoom:n};
vendor: 4,732 bytes, line 5
5var o=a.subtract(i).divideBy(2),r=this.project(e.getSouthWest(),n),s=this.project(e.getNorthEast(),n);return{center:this.unproject(r.add(s).divideBy(2).add(o),n),zoom:n}},fitBounds:function(e,t){if(!(e=S(e)).isValid())throw new Error("Bounds are not valid.");var i=this._getBoundsCenterZoom(e,t);return this.setView(i.center,i.zoom,t)},fitWorld:function(e){return this.fitBounds([[-90,-180],[90,180]],e)},panTo:function(e,t){return this.setView(e,this._zoom,{pan:t})},panBy:function(e,t){if(t=t||{},!(e=w(e).round()).x&&!e.y)return this.fire("moveend");if(!0!==t.animate&&!this.getSize().contains(e))return this._resetView(this.unproject(this.project(this.getCenter()).add(e)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new mi,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),t.noMoveStart||this.fire("movestart"),!1!==t.animate){de(this._mapPane,"leaflet-pan-anim");var i=this._getMapPanePos().subtract(e).round();this._panAnim.run(this._mapPane,i,t.duration||.25,t.easeLinearity)}else this._rawPanBy(e),this.fire("move").fire("moveend");return this},flyTo:function(e,t,i){function a(e){var t=(c*c-h*h+(e?-1:1)*f*f*m*m)/(2*(e?c:h)*f*m),i=Math.sqrt(t*t+1)-t;return i<1e-9?-18:Math.log(i)}function n(e){return(Math.exp(e)-Math.exp(-e))/2}function o(e){return(Math.exp(e)+Math.exp(-e))/2}function r(e){return h*(o(g)*function(e){return n(e)/o(e)}(g+p*e)-n(g))/f}if(!1===(i=i||{}).animate||!At)return this.setView(e,t,i);this._stop();var s=this.project(this.getCenter()),l=this.project(e),d=this.getSize(),u=this._zoom;e=C(e),t=void 0===t?u:t;var h=Math.max(d.x,d.y),c=h*this.getZoomScale(u,t),m=l.distanceTo(s)||1,p=1.42,f=p*p,g=a(0),y=Date.now(),v=(a(1)-g)/p,w=i.duration?1e3*i.duration:1e3*v*.8;return this._moveStart(!0,i.noMoveStart),function i(){var a=(Date.now()-y)/w,n=function(e){return 1-Math.pow(1-e,1.5)}(a)*v;a<=1?(this._flyToFrame=_(i,this),this._move(this.unproject(s.add(l.subtract(s).multiplyBy(r(n)/m)),u),this.getScaleZoom(h/function(e){return h*(o(g)/o(g+p*e))}(n),u),{flyTo:!0})):this._move(e,t)._moveEnd(!0)}.call(this),this},flyToBounds:function(e,t){var i=this._getBoundsCenterZoom(e,t);return this.flyTo(i.center,i.zoom,t)},setMaxBounds:function(e){return(e=S(e)).isValid()?(this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this.options.maxBounds=e,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this.off("moveend",this._panInsideMaxBounds))},setMinZoom:function(e){var t=this.options.minZoom;return this.options.minZoom=e,this._loaded&&t!==e&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(e):this},setMaxZoom:function(e){var t=this.options.maxZoom;return this.options.maxZoom=e,this._loaded&&t!==e&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(e):this},panInsideBounds:function(e,t){this._enforcingBounds=!0;var i=this.getCenter(),a=this._limitCenter(i,this._zoom,S(e));return i.equals(a)||this.panTo(a,t),this._enforcingBounds=!1,this},invalidateSize:function(e){if(!this._loaded)return this;e=t({animate:!1,pan:!0},!0===e?{animate:!0}:e);var a=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var n=this.getSize(),o=a.divideBy(2).round(),r=n.divideBy(2).round(),s=o.subtract(r);return s.x||s.y?(e.animate&&e.pan?this.panBy(s):(e.pan&&this._rawPanBy(s),this.fire("move"),e.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(i(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:a,newSize:n})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(e){if(e=this._locateOptions=t({timeout:1e4,watch:!1},e),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var a=i(this._handleGeolocationResponse,this),n=i(this._handleGeolocationError,this);return e.watch?this._locationWatchId=navigator.geolocation.watchPosition(a,n,e):navigator.geolocation.getCurrentPosition(a,n,e),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(e){var t=e.code,i=e.message||(1===t?"permission denied":2===t?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:t,message:"Geolocation error: "+i+"."})},_handleGeolocationResponse:function(e){var t=new T(e.coords.latitude,e.coords.longitude),i=t.toBounds(e.coords.accuracy),a=this._locateOptions;
vendor: 41,395 bytes, line 5
5if(a.setView){var n=this.getBoundsZoom(i);this.setView(t,a.maxZoom?Math.min(n,a.maxZoom):n)}var o={latlng:t,bounds:i,timestamp:e.timestamp};for(var r in e.coords)"number"==typeof e.coords[r]&&(o[r]=e.coords[r]);this.fire("locationfound",o)},addHandler:function(e,t){if(!t)return this;var i=this[e]=new t(this);return this._handlers.push(i),this.options[e]&&i.enable(),this},remove:function(){if(this._initEvents(!0),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(e){this._container._leaflet_id=void 0,this._containerId=void 0}var e;for(e in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),ne(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[e].remove();for(e in this._panes)ne(this._panes[e]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(e,t){var i=ae("div","leaflet-pane"+(e?" leaflet-"+e.replace("Pane","")+"-pane":""),t||this._mapPane);return e&&(this._panes[e]=i),i},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter:this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var e=this.getPixelBounds();return new k(this.unproject(e.getBottomLeft()),this.unproject(e.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(e,t,i){e=S(e),i=w(i||[0,0]);var a=this.getZoom()||0,n=this.getMinZoom(),o=this.getMaxZoom(),r=e.getNorthWest(),s=e.getSouthEast(),l=this.getSize().subtract(i),d=b(this.project(s,a),this.project(r,a)).getSize(),u=At?this.options.zoomSnap:1,h=l.x/d.x,c=l.y/d.y,m=t?Math.max(h,c):Math.min(h,c);return a=this.getScaleZoom(m,a),u&&(a=Math.round(a/(u/100))*(u/100),a=t?Math.ceil(a/u)*u:Math.floor(a/u)*u),Math.max(n,Math.min(o,a))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new v(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(e,t){var i=this._getTopLeftPoint(e,t);return new x(i,i.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(e){return this.options.crs.getProjectedBounds(void 0===e?this.getZoom():e)},getPane:function(e){return"string"==typeof e?this._panes[e]:e},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(e,t){var i=this.options.crs;return t=void 0===t?this._zoom:t,i.scale(e)/i.scale(t)},getScaleZoom:function(e,t){var i=this.options.crs;t=void 0===t?this._zoom:t;var a=i.zoom(e*i.scale(t));return isNaN(a)?1/0:a},project:function(e,t){return t=void 0===t?this._zoom:t,this.options.crs.latLngToPoint(C(e),t)},unproject:function(e,t){return t=void 0===t?this._zoom:t,this.options.crs.pointToLatLng(w(e),t)},layerPointToLatLng:function(e){var t=w(e).add(this.getPixelOrigin());return this.unproject(t)},latLngToLayerPoint:function(e){return this.project(C(e))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(e){return this.options.crs.wrapLatLng(C(e))},wrapLatLngBounds:function(e){return this.options.crs.wrapLatLngBounds(S(e))},distance:function(e,t){return this.options.crs.distance(C(e),C(t))},containerPointToLayerPoint:function(e){return w(e).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(e){return w(e).add(this._getMapPanePos())},containerPointToLatLng:function(e){var t=this.containerPointToLayerPoint(w(e));return this.layerPointToLatLng(t)},latLngToContainerPoint:function(e){return this.layerPointToContainerPoint(this.latLngToLayerPoint(C(e)))},mouseEventToContainerPoint:function(e){return X(e,this._container)},mouseEventToLayerPoint:function(e){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(e))},mouseEventToLatLng:function(e){return this.layerPointToLatLng(this.mouseEventToLayerPoint(e))},_initContainer:function(e){var t=this._container=te(e);if(!t)throw new Error("Map container not found.");if(t._leaflet_id)throw new Error("Map container is already initialized.");N(t,"scroll",this._onScroll,this),this._containerId=a(t)},_initLayout:function(){var e=this._container;this._fadeAnimated=this.options.fadeAnimation&&At,de(e,"leaflet-container"+(Rt?" leaflet-touch":"")+(Ot?" leaflet-retina":"")+(pt?" leaflet-oldie":"")+(St?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var t=ie(e,"position");"absolute"!==t&&"relative"!==t&&"fixed"!==t&&(e.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var e=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),_e(this._mapPane,new v(0,0)),this.createPane("tilePane"),this.createPane("shadowPane"),this.createPane("overlayPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(de(e.markerPane,"leaflet-zoom-hide"),de(e.shadowPane,"leaflet-zoom-hide"))},_resetView:function(e,t){_e(this._mapPane,new v(0,0));var i=!this._loaded;this._loaded=!0,t=this._limitZoom(t),this.fire("viewprereset");var a=this._zoom!==t;this._moveStart(a,!1)._move(e,t)._moveEnd(a),this.fire("viewreset"),i&&this.fire("load")},_moveStart:function(e,t){return e&&this.fire("zoomstart"),t||this.fire("movestart"),this},_move:function(e,t,i){void 0===t&&(t=this._zoom);var a=this._zoom!==t;return this._zoom=t,this._lastCenter=e,this._pixelOrigin=this._getNewPixelOrigin(e),(a||i&&i.pinch)&&this.fire("zoom",i),this.fire("move",i)},_moveEnd:function(e){return e&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return g(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(e){_e(this._mapPane,this._getMapPanePos().subtract(e))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(e){this._targets={},this._targets[a(this._container)]=this;var t=e?V:N;t(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress",this._handleDOMEvent,this),this.options.trackResize&&t(window,"resize",this._onResize,this),At&&this.options.transform3DLimit&&(e?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){g(this._resizeRequest),this._resizeRequest=_((function(){this.invalidateSize({debounceMoveend:!0})}),this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var e=this._getMapPanePos();Math.max(Math.abs(e.x),Math.abs(e.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(e,t){for(var i,n=[],o="mouseout"===t||"mouseover"===t,r=e.target||e.srcElement,s=!1;r;){if((i=this._targets[a(r)])&&("click"===t||"preclick"===t)&&!e._simulated&&this._draggableMoved(i)){s=!0;break}if(i&&i.listens(t,!0)){if(o&&!ee(r,e))break;if(n.push(i),o)break}if(r===this._container)break;r=r.parentNode}return n.length||s||o||!ee(r,e)||(n=[this]),n},_handleDOMEvent:function(e){if(this._loaded&&!Q(e)){var t=e.type;"mousedown"!==t&&"keypress"!==t||we(e.target||e.srcElement),this._fireDOMEvent(e,t)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(e,i,a){if("click"===e.type){var n=t({},e);n.type="preclick",this._fireDOMEvent(n,n.type,a)}if(!e._stopped&&(a=(a||[]).concat(this._findEventTargets(e,i))).length){var o=a[0];"contextmenu"===i&&o.listens(i,!0)&&H(e);var r={originalEvent:e};if("keypress"!==e.type){var s=o.getLatLng&&(!o._radius||o._radius<=10);r.containerPoint=s?this.latLngToContainerPoint(o.getLatLng()):this.mouseEventToContainerPoint(e),r.layerPoint=this.containerPointToLayerPoint(r.containerPoint),r.latlng=s?o.getLatLng():this.layerPointToLatLng(r.layerPoint)}for(var l=0;l<a.length;l++)if(a[l].fire(i,r,!0),r.originalEvent._stopped||!1===a[l].options.bubblingMouseEvents&&-1!==m(this._mouseEvents,i))return}},_draggableMoved:function(e){return(e=e.dragging&&e.dragging.enabled()?e:this).dragging&&e.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var e=0,t=this._handlers.length;e<t;e++)this._handlers[e].disable()},whenReady:function(e,t){return this._loaded?e.call(t||this,{target:this}):this.on("load",e,t),this},_getMapPanePos:function(){return ge(this._mapPane)||new v(0,0)},_moved:function(){var e=this._getMapPanePos();return e&&!e.equals([0,0])},_getTopLeftPoint:function(e,t){return(e&&void 0!==t?this._getNewPixelOrigin(e,t):this.getPixelOrigin()).subtract(this._getMapPanePos())},_getNewPixelOrigin:function(e,t){var i=this.getSize()._divideBy(2);return this.project(e,t)._subtract(i)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(e,t,i){var a=this._getNewPixelOrigin(i,t);return this.project(e,t)._subtract(a)},_latLngBoundsToNewLayerBounds:function(e,t,i){var a=this._getNewPixelOrigin(i,t);return b([this.project(e.getSouthWest(),t)._subtract(a),this.project(e.getNorthWest(),t)._subtract(a),this.project(e.getSouthEast(),t)._subtract(a),this.project(e.getNorthEast(),t)._subtract(a)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(e){return this.latLngToLayerPoint(e).subtract(this._getCenterLayerPoint())},_limitCenter:function(e,t,i){if(!i)return e;var a=this.project(e,t),n=this.getSize().divideBy(2),o=new x(a.subtract(n),a.add(n)),r=this._getBoundsOffset(o,i,t);return r.round().equals([0,0])?e:this.unproject(a.add(r),t)},_limitOffset:function(e,t){if(!t)return e;var i=this.getPixelBounds(),a=new x(i.min.add(e),i.max.add(e));return e.add(this._getBoundsOffset(a,t))},_getBoundsOffset:function(e,t,i){var a=b(this.project(t.getNorthEast(),i),this.project(t.getSouthWest(),i)),n=a.min.subtract(e.min),o=a.max.subtract(e.max);return new v(this._rebound(n.x,-o.x),this._rebound(n.y,-o.y))},_rebound:function(e,t){return e+t>0?Math.round(e-t)/2:Math.max(0,Math.ceil(e))-Math.max(0,Math.floor(t))},_limitZoom:function(e){var t=this.getMinZoom(),i=this.getMaxZoom(),a=At?this.options.zoomSnap:1;return a&&(e=Math.round(e/a)*a),Math.max(t,Math.min(i,e))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){ue(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(e,t){var i=this._getCenterOffset(e)._trunc();return!(!0!==(t&&t.animate)&&!this.getSize().contains(i)||(this.panBy(i,t),0))},_createAnimProxy:function(){var e=this._proxy=ae("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(e),this.on("zoomanim",(function(e){var t=ri,i=this._proxy.style[t];fe(this._proxy,this.project(e.center,e.zoom),this.getZoomScale(e.zoom,1)),i===this._proxy.style[t]&&this._animatingZoom&&this._onZoomTransitionEnd()}),this),this.on("load moveend",(function(){var e=this.getCenter(),t=this.getZoom();fe(this._proxy,this.project(e,t),this.getZoomScale(t,1))}),this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){ne(this._proxy),delete this._proxy},_catchTransitionEnd:function(e){this._animatingZoom&&e.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(e,t,i){if(this._animatingZoom)return!0;if(i=i||{},!this._zoomAnimated||!1===i.animate||this._nothingToAnimate()||Math.abs(t-this._zoom)>this.options.zoomAnimationThreshold)return!1;var a=this.getZoomScale(t),n=this._getCenterOffset(e)._divideBy(1-1/a);return!(!0!==i.animate&&!this.getSize().contains(n)||(_((function(){this._moveStart(!0,!1)._animateZoom(e,t,!0)}),this),0))},_animateZoom:function(e,t,a,n){this._mapPane&&(a&&(this._animatingZoom=!0,this._animateToCenter=e,this._animateToZoom=t,de(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:e,zoom:t,noUpdate:n}),setTimeout(i(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&ue(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom),_((function(){this._moveEnd(!0)}),this))}}),fi=y.extend({options:{position:"topright"},initialize:function(e){u(this,e)},getPosition:function(){return this.options.position},setPosition:function(e){var t=this._map;return t&&t.removeControl(this),this.options.position=e,t&&t.addControl(this),this},getContainer:function(){return this._container},addTo:function(e){this.remove(),this._map=e;var t=this._container=this.onAdd(e),i=this.getPosition(),a=e._controlCorners[i];return de(t,"leaflet-control"),-1!==i.indexOf("bottom")?a.insertBefore(t,a.firstChild):a.appendChild(t),this},remove:function(){return this._map?(ne(this._container),this.onRemove&&this.onRemove(this._map),this._map=null,this):this},_refocusOnMap:function(e){this._map&&e&&e.screenX>0&&e.screenY>0&&this._map.getContainer().focus()}}),_i=function(e){return new fi(e)};pi.include({addControl:function(e){return e.addTo(this),this},removeControl:function(e){return e.remove(),this},_initControlPos:function(){function e(e,n){var o=i+e+" "+i+n;t[e+n]=ae("div",o,a)}var t=this._controlCorners={},i="leaflet-",a=this._controlContainer=ae("div",i+"control-container",this._container);e("top","left"),e("top","right"),e("bottom","left"),e("bottom","right")},_clearControlPos:function(){for(var e in this._controlCorners)ne(this._controlCorners[e]);ne(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var gi=fi.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(e,t,i,a){return i<a?-1:a<i?1:0}},initialize:function(e,t,i){for(var a in u(this,i),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,e)this._addLayer(e[a],a);for(a in t)this._addLayer(t[a],a,!0)},onAdd:function(e){this._initLayout(),this._update(),this._map=e,e.on("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++)this._layers[t].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(e){return fi.prototype.addTo.call(this,e),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var e=0;e<this._layers.length;e++)this._layers[e].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(e,t){return this._addLayer(e,t),this._map?this._update():this},addOverlay:function(e,t){return this._addLayer(e,t,!0),this._map?this._update():this},removeLayer:function(e){e.off("add remove",this._onLayerChange,this);var t=this._getLayer(a(e));return t&&this._layers.splice(this._layers.indexOf(t),1),this._map?this._update():this},expand:function(){de(this._container,"leaflet-control-layers-expanded"),this._form.style.height=null;var e=this._map.getSize().y-(this._container.offsetTop+50);return e<this._form.clientHeight?(de(this._form,"leaflet-control-layers-scrollbar"),this._form.style.height=e+"px"):ue(this._form,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return ue(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var e="leaflet-control-layers",t=this._container=ae("div",e),i=this.options.collapsed;t.setAttribute("aria-haspopup",!0),W(t),G(t);var a=this._form=ae("form",e+"-list");i&&(this._map.on("click",this.collapse,this),gt||N(t,{mouseenter:this.expand,mouseleave:this.collapse},this));var n=this._layersLink=ae("a",e+"-toggle",t);n.href="#",n.title="Layers",Rt?(N(n,"click",K),N(n,"click",this.expand,this)):N(n,"focus",this.expand,this),i||this.expand(),this._baseLayersList=ae("div",e+"-base",a),this._separator=ae("div",e+"-separator",a),this._overlaysList=ae("div",e+"-overlays",a),t.appendChild(a)},_getLayer:function(e){for(var t=0;t<this._layers.length;t++)if(this._layers[t]&&a(this._layers[t].layer)===e)return this._layers[t]},_addLayer:function(e,t,a){this._map&&e.on("add remove",this._onLayerChange,this),this._layers.push({layer:e,name:t,overlay:a}),this.options.sortLayers&&this._layers.sort(i((function(e,t){return this.options.sortFunction(e.layer,t.layer,e.name,t.name)}),this)),this.options.autoZIndex&&e.setZIndex&&(this._lastZIndex++,e.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;oe(this._baseLayersList),oe(this._overlaysList),this._layerControlInputs=[];var e,t,i,a,n=0;for(i=0;i<this._layers.length;i++)a=this._layers[i],this._addItem(a),t=t||a.overlay,e=e||!a.overlay,n+=a.overlay?0:1;return this.options.hideSingleBase&&(e=e&&n>1,this._baseLayersList.style.display=e?"":"none"),this._separator.style.display=t&&e?"":"none",this},_onLayerChange:function(e){this._handlingClick||this._update();var t=this._getLayer(a(e.target)),i=t.overlay?"add"===e.type?"overlayadd":"overlayremove":"add"===e.type?"baselayerchange":null;i&&this._map.fire(i,t)},_createRadioElement:function(e,t){var i='<input type="radio" class="leaflet-control-layers-selector" name="'+e+'"'+(t?' checked="checked"':"")+"/>",a=document.createElement("div");return a.innerHTML=i,a.firstChild},_addItem:function(e){var t,i=document.createElement("label"),n=this._map.hasLayer(e.layer);e.overlay?((t=document.createElement("input")).type="checkbox",t.className="leaflet-control-layers-selector",t.defaultChecked=n):t=this._createRadioElement("leaflet-base-layers",n),this._layerControlInputs.push(t),t.layerId=a(e.layer),N(t,"click",this._onInputClick,this);var o=document.createElement("span");o.innerHTML=" "+e.name;var r=document.createElement("div");return i.appendChild(r),r.appendChild(t),r.appendChild(o),(e.overlay?this._overlaysList:this._baseLayersList).appendChild(i),this._checkDisabledLayers(),i},_onInputClick:function(){var e,t,i=this._layerControlInputs,a=[],n=[];this._handlingClick=!0;for(var o=i.length-1;o>=0;o--)e=i[o],t=this._getLayer(e.layerId).layer,e.checked?a.push(t):e.checked||n.push(t);for(o=0;o<n.length;o++)this._map.hasLayer(n[o])&&this._map.removeLayer(n[o]);for(o=0;o<a.length;o++)this._map.hasLayer(a[o])||this._map.addLayer(a[o]);this._handlingClick=!1,this._refocusOnMap()},_checkDisabledLayers:function(){for(var e,t,i=this._layerControlInputs,a=this._map.getZoom(),n=i.length-1;n>=0;n--)e=i[n],t=this._getLayer(e.layerId).layer,e.disabled=void 0!==t.options.minZoom&&a<t.options.minZoom||void 0!==t.options.maxZoom&&a>t.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expand:function(){return this.expand()},_collapse:function(){return this.collapse()}}),yi=fi.extend({options:{position:"topleft",zoomInText:"+",zoomInTitle:"Zoom in",zoomOutText:"&#x2212;",zoomOutTitle:"Zoom out"},onAdd:function(e){var t="leaflet-control-zoom",i=ae("div",t+" leaflet-bar"),a=this.options;return this._zoomInButton=this._createButton(a.zoomInText,a.zoomInTitle,t+"-in",i,this._zoomIn),this._zoomOutButton=this._createButton(a.zoomOutText,a.zoomOutTitle,t+"-out",i,this._zoomOut),this._updateDisabled(),e.on("zoomend zoomlevelschange",this._updateDisabled,this),i},onRemove:function(e){e.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(e){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(e.shiftKey?3:1))},_zoomOut:function(e){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(e.shiftKey?3:1))},_createButton:function(e,t,i,a,n){var o=ae("a",i,a);return o.innerHTML=e,o.href="#",o.title=t,o.setAttribute("role","button"),o.setAttribute("aria-label",t),W(o),N(o,"click",K),N(o,"click",n,this),N(o,"click",this._refocusOnMap,this),o},_updateDisabled:function(){var e=this._map,t="leaflet-disabled";ue(this._zoomInButton,t),ue(this._zoomOutButton,t),(this._disabled||e._zoom===e.getMinZoom())&&de(this._zoomOutButton,t),(this._disabled||e._zoom===e.getMaxZoom())&&de(this._zoomInButton,t)}});pi.mergeOptions({zoomControl:!0}),pi.addInitHook((function(){this.options.zoomControl&&(this.zoomControl=new yi,this.addControl(this.zoomControl))}));var vi=fi.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(e){var t=ae("div","leaflet-control-scale"),i=this.options;return this._addScales(i,"leaflet-control-scale-line",t),e.on(i.updateWhenIdle?"moveend":"move",this._update,this),e.whenReady(this._update,this),t},onRemove:function(e){e.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(e,t,i){e.metric&&(this._mScale=ae("div",t,i)),e.imperial&&(this._iScale=ae("div",t,i))},_update:function(){var e=this._map,t=e.getSize().y/2,i=e.distance(e.containerPointToLatLng([0,t]),e.containerPointToLatLng([this.options.maxWidth,t]));this._updateScales(i)},_updateScales:function(e){this.options.metric&&e&&this._updateMetric(e),this.options.imperial&&e&&this._updateImperial(e)},_updateMetric:function(e){var t=this._getRoundNum(e),i=t<1e3?t+" m":t/1e3+" km";this._updateScale(this._mScale,i,t/e)},_updateImperial:function(e){var t,i,a,n=3.2808399*e;n>5280?(t=n/5280,i=this._getRoundNum(t),this._updateScale(this._iScale,i+" mi",i/t)):(a=this._getRoundNum(n),this._updateScale(this._iScale,a+" ft",a/n))},_updateScale:function(e,t,i){e.style.width=Math.round(this.options.maxWidth*i)+"px",e.innerHTML=t},_getRoundNum:function(e){var t=Math.pow(10,(Math.floor(e)+"").length-1),i=e/t;return t*(i=i>=10?10:i>=5?5:i>=3?3:i>=2?2:1)}}),wi=fi.extend({options:{position:"bottomright",prefix:'<a href="http://leafletjs.com" title="A JS library for interactive maps">Leaflet</a>'},initialize:function(e){u(this,e),this._attributions={}},onAdd:function(e){for(var t in e.attributionControl=this,this._container=ae("div","leaflet-control-attribution"),W(this._container),e._layers)e._layers[t].getAttribution&&this.addAttribution(e._layers[t].getAttribution());return this._update(),this._container},setPrefix:function(e){return this.options.prefix=e,this._update(),this},addAttribution:function(e){return e?(this._attributions[e]||(this._attributions[e]=0),this._attributions[e]++,this._update(),this):this},removeAttribution:function(e){return e?(this._attributions[e]&&(this._attributions[e]--,this._update()),this):this},_update:function(){if(this._map){var e=[];for(var t in this._attributions)this._attributions[t]&&e.push(t);var i=[];this.options.prefix&&i.push(this.options.prefix),e.length&&i.push(e.join(", ")),this._container.innerHTML=i.join(" | ")}}});pi.mergeOptions({attributionControl:!0}),pi.addInitHook((function(){this.options.attributionControl&&(new wi).addTo(this)})),fi.Layers=gi,fi.Zoom=yi,fi.Scale=vi,fi.Attribution=wi,_i.layers=function(e,t,i){return new gi(e,t,i)},_i.zoom=function(e){return new yi(e)},_i.scale=function(e){return new vi(e)},_i.attribution=function(e){return new wi(e)};var xi=y.extend({initialize:function(e){this._map=e},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});xi.addTo=function(e,t){return e.addHandler(t,this),this};var bi,ki={Events:et},Si=Rt?"touchstart mousedown":"mousedown",Ti={mousedown:"mouseup",touchstart:"touchend",pointerdown:"touchend",MSPointerDown:"touchend"},Ci={mousedown:"mousemove",touchstart:"touchmove",pointerdown:"touchmove",MSPointerDown:"touchmove"},zi=tt.extend({options:{clickTolerance:3},initialize:function(e,t,i,a){u(this,a),this._element=e,this._dragStartTarget=t||e,this._preventOutline=i},enable:function(){this._enabled||(N(this._dragStartTarget,Si,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(zi._dragging===this&&this.finishDrag(),V(this._dragStartTarget,Si,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(e){if(!e._simulated&&this._enabled&&(this._moved=!1,!le(this._element,"leaflet-zoom-anim")&&!(zi._dragging||e.shiftKey||1!==e.which&&1!==e.button&&!e.touches||(zi._dragging=this,this._preventOutline&&we(this._element),ye(),st(),this._moving)))){this.fire("down");var t=e.touches?e.touches[0]:e;this._startPoint=new v(t.clientX,t.clientY),N(document,Ci[e.type],this._onMove,this),N(document,Ti[e.type],this._onUp,this)}},_onMove:function(e){if(!e._simulated&&this._enabled)if(e.touches&&e.touches.length>1)this._moved=!0;else{var t=e.touches&&1===e.touches.length?e.touches[0]:e,i=new v(t.clientX,t.clientY).subtract(this._startPoint);(i.x||i.y)&&(Math.abs(i.x)+Math.abs(i.y)<this.options.clickTolerance||(H(e),this._moved||(this.fire("dragstart"),this._moved=!0,this._startPos=ge(this._element).subtract(i),de(document.body,"leaflet-dragging"),this._lastTarget=e.target||e.srcElement,window.SVGElementInstance&&this._lastTarget instanceof SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),de(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(i),this._moving=!0,g(this._animRequest),this._lastEvent=e,this._animRequest=_(this._updatePosition,this,!0)))}},_updatePosition:function(){var e={originalEvent:this._lastEvent};this.fire("predrag",e),_e(this._element,this._newPos),this.fire("drag",e)},_onUp:function(e){!e._simulated&&this._enabled&&this.finishDrag()},finishDrag:function(){for(var e in ue(document.body,"leaflet-dragging"),this._lastTarget&&(ue(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),Ci)V(document,Ci[e],this._onMove,this),V(document,Ti[e],this._onUp,this);ve(),lt(),this._moved&&this._moving&&(g(this._animRequest),this.fire("dragend",{distance:this._newPos.distanceTo(this._startPos)})),this._moving=!1,zi._dragging=!1}}),Pi=(Object.freeze||Object)({simplify:be,pointToSegmentDistance:ke,closestPointOnSegment:function(e,t,i){return Me(e,t,i)},clipSegment:Te,_getEdgeIntersection:Ce,_getBitCode:ze,_sqClosestPointOnSegment:Me,isFlat:Le,_flat:Ae}),Mi=(Object.freeze||Object)({clipPolygon:Ie}),Li={project:function(e){return new v(e.lng,e.lat)},unproject:function(e){return new T(e.y,e.x)},bounds:new x([-180,-90],[180,90])},Ai={R:6378137,R_MINOR:6356752.314245179,bounds:new x([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(e){var t=Math.PI/180,i=this.R,a=e.lat*t,n=this.R_MINOR/i,o=Math.sqrt(1-n*n),r=o*Math.sin(a),s=Math.tan(Math.PI/4-a/2)/Math.pow((1-r)/(1+r),o/2);return a=-i*Math.log(Math.max(s,1e-10)),new v(e.lng*t*i,a)},unproject:function(e){for(var t,i=180/Math.PI,a=this.R,n=this.R_MINOR/a,o=Math.sqrt(1-n*n),r=Math.exp(-e.y/a),s=Math.PI/2-2*Math.atan(r),l=0,d=.1;l<15&&Math.abs(d)>1e-7;l++)t=o*Math.sin(s),t=Math.pow((1-t)/(1+t),o/2),s+=d=Math.PI/2-2*Math.atan(r*t)-s;return new T(s*i,e.x*i/a)}},Ii=(Object.freeze||Object)({LonLat:Li,Mercator:Ai,SphericalMercator:ot}),Ei=t({},nt,{code:"EPSG:3395",projection:Ai,transformation:function(){var e=.5/(Math.PI*Ai.R);return P(e,.5,-e,.5)}()}),Di=t({},nt,{code:"EPSG:4326",projection:Li,transformation:P(1/180,1,-1/180,.5)}),ji=t({},at,{projection:Li,transformation:P(1,0,-1,0),scale:function(e){return Math.pow(2,e)},zoom:function(e){return Math.log(e)/Math.LN2},distance:function(e,t){var i=t.lng-e.lng,a=t.lat-e.lat;return Math.sqrt(i*i+a*a)},infinite:!0});at.Earth=nt,at.EPSG3395=Ei,at.EPSG3857=ut,at.EPSG900913=ht,at.EPSG4326=Di,at.Simple=ji;var $i=tt.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(e){return e.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(e){return e&&e.removeLayer(this),this},getPane:function(e){return this._map.getPane(e?this.options[e]||e:this.options.pane)},addInteractiveTarget:function(e){return this._map._targets[a(e)]=this,this},removeInteractiveTarget:function(e){return delete this._map._targets[a(e)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(e){var t=e.target;if(t.hasLayer(this)){if(this._map=t,this._zoomAnimated=t._zoomAnimated,this.getEvents){var i=this.getEvents();t.on(i,this),this.once("remove",(function(){t.off(i,this)}),this)}this.onAdd(t),this.getAttribution&&t.attributionControl&&t.attributionControl.addAttribution(this.getAttribution()),this.fire("add"),t.fire("layeradd",{layer:this})}}});pi.include({addLayer:function(e){if(!e._layerAdd)throw new Error("The provided object is not a Layer.");var t=a(e);return this._layers[t]||(this._layers[t]=e,e._mapToAdd=this,e.beforeAdd&&e.beforeAdd(this),this.whenReady(e._layerAdd,e)),this},removeLayer:function(e){var t=a(e);return this._layers[t]?(this._loaded&&e.onRemove(this),e.getAttribution&&this.attributionControl&&this.attributionControl.removeAttribution(e.getAttribution()),delete this._layers[t],this._loaded&&(this.fire("layerremove",{layer:e}),e.fire("remove")),e._map=e._mapToAdd=null,this):this},hasLayer:function(e){return!!e&&a(e)in this._layers},eachLayer:function(e,t){for(var i in this._layers)e.call(t,this._layers[i]);return this},_addLayers:function(e){for(var t=0,i=(e=e?He(e)?e:[e]:[]).length;t<i;t++)this.addLayer(e[t])},_addZoomLimit:function(e){!isNaN(e.options.maxZoom)&&isNaN(e.options.minZoom)||(this._zoomBoundLayers[a(e)]=e,this._updateZoomLevels())},_removeZoomLimit:function(e){var t=a(e);this._zoomBoundLayers[t]&&(delete this._zoomBoundLayers[t],this._updateZoomLevels())},_updateZoomLevels:function(){var e=1/0,t=-1/0,i=this._getZoomSpan();for(var a in this._zoomBoundLayers){var n=this._zoomBoundLayers[a].options;e=void 0===n.minZoom?e:Math.min(e,n.minZoom),t=void 0===n.maxZoom?t:Math.max(t,n.maxZoom)}this._layersMaxZoom=t===-1/0?void 0:t,this._layersMinZoom=e===1/0?void 0:e,i!==this._getZoomSpan()&&this.fire("zoomlevelschange"),void 0===this.options.maxZoom&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var Ri=$i.extend({initialize:function(e,t){var i,a;if(u(this,t),this._layers={},e)for(i=0,a=e.length;i<a;i++)this.addLayer(e[i])},addLayer:function(e){var t=this.getLayerId(e);return this._layers[t]=e,this._map&&this._map.addLayer(e),this},removeLayer:function(e){var t=e in this._layers?e:this.getLayerId(e);return this._map&&this._layers[t]&&this._map.removeLayer(this._layers[t]),delete this._layers[t],this},hasLayer:function(e){return!!e&&(e in this._layers||this.getLayerId(e)in this._layers)},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(e){var t,i,a=Array.prototype.slice.call(arguments,1);for(t in this._layers)(i=this._layers[t])[e]&&i[e].apply(i,a);return this},onAdd:function(e){this.eachLayer(e.addLayer,e)},onRemove:function(e){this.eachLayer(e.removeLayer,e)},eachLayer:function(e,t){for(var i in this._layers)e.call(t,this._layers[i]);return this},getLayer:function(e){return this._layers[e]},getLayers:function(){var e=[];return this.eachLayer(e.push,e),e},setZIndex:function(e){return this.invoke("setZIndex",e)},getLayerId:function(e){return a(e)}}),Bi=Ri.extend({addLayer:function(e){return this.hasLayer(e)?this:(e.addEventParent(this),Ri.prototype.addLayer.call(this,e),this.fire("layeradd",{layer:e}))},removeLayer:function(e){return this.hasLayer(e)?(e in this._layers&&(e=this._layers[e]),e.removeEventParent(this),Ri.prototype.removeLayer.call(this,e),this.fire("layerremove",{layer:e})):this},setStyle:function(e){return this.invoke("setStyle",e)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var e=new k;for(var t in this._layers){var i=this._layers[t];e.extend(i.getBounds?i.getBounds():i.getLatLng())}return e}}),Fi=y.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0]},initialize:function(e){u(this,e)},createIcon:function(e){return this._createIcon("icon",e)},createShadow:function(e){return this._createIcon("shadow",e)},_createIcon:function(e,t){var i=this._getIconUrl(e);if(!i){if("icon"===e)throw new Error("iconUrl not set in Icon options (see the docs).");return null}var a=this._createImg(i,t&&"IMG"===t.tagName?t:null);return this._setIconStyles(a,e),a},_setIconStyles:function(e,t){var i=this.options,a=i[t+"Size"];"number"==typeof a&&(a=[a,a]);var n=w(a),o=w("shadow"===t&&i.shadowAnchor||i.iconAnchor||n&&n.divideBy(2,!0));e.className="leaflet-marker-"+t+" "+(i.className||""),o&&(e.style.marginLeft=-o.x+"px",e.style.marginTop=-o.y+"px"),n&&(e.style.width=n.x+"px",e.style.height=n.y+"px")},_createImg:function(e,t){return(t=t||document.createElement("img")).src=e,t},_getIconUrl:function(e){return Ot&&this.options[e+"RetinaUrl"]||this.options[e+"Url"]}}),Oi=Fi.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(e){return Oi.imagePath||(Oi.imagePath=this._detectIconPath()),(this.options.imagePath||Oi.imagePath)+Fi.prototype._getIconUrl.call(this,e)},_detectIconPath:function(){var e=ae("div","leaflet-default-icon-path",document.body),t=ie(e,"background-image")||ie(e,"backgroundImage");return document.body.removeChild(e),null===t||0!==t.indexOf("url")?"":t.replace(/^url\(["']?/,"").replace(/marker-icon\.png["']?\)$/,"")}}),Ni=xi.extend({initialize:function(e){this._marker=e},addHooks:function(){var e=this._marker._icon;this._draggable||(this._draggable=new zi(e,e,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),de(e,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&ue(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(e){var t=this._marker,i=t._map,a=this._marker.options.autoPanSpeed,n=this._marker.options.autoPanPadding,o=L.DomUtil.getPosition(t._icon),r=i.getPixelBounds(),s=i.getPixelOrigin(),l=b(r.min._subtract(s).add(n),r.max._subtract(s).subtract(n));if(!l.contains(o)){var d=w((Math.max(l.max.x,o.x)-l.max.x)/(r.max.x-l.max.x)-(Math.min(l.min.x,o.x)-l.min.x)/(r.min.x-l.min.x),(Math.max(l.max.y,o.y)-l.max.y)/(r.max.y-l.max.y)-(Math.min(l.min.y,o.y)-l.min.y)/(r.min.y-l.min.y)).multiplyBy(a);i.panBy(d,{animate:!1}),this._draggable._newPos._add(d),this._draggable._startPos._add(d),L.DomUtil.setPosition(t._icon,this._draggable._newPos),this._onDrag(e),this._panRequest=_(this._adjustPan.bind(this,e))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup().fire("movestart").fire("dragstart")},_onPreDrag:function(e){this._marker.options.autoPan&&(g(this._panRequest),this._panRequest=_(this._adjustPan.bind(this,e)))},_onDrag:function(e){var t=this._marker,i=t._shadow,a=ge(t._icon),n=t._map.layerPointToLatLng(a);i&&_e(i,a),t._latlng=n,e.latlng=n,e.oldLatLng=this._oldLatLng,t.fire("move",e).fire("drag",e)},_onDragEnd:function(e){g(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",e)}}),Vi=$i.extend({options:{icon:new Oi,interactive:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10,keyboard:!0,title:"",alt:"",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",bubblingMouseEvents:!1},initialize:function(e,t){u(this,t),this._latlng=C(e)},onAdd:function(e){this._zoomAnimated=this._zoomAnimated&&e.options.markerZoomAnimation,this._zoomAnimated&&e.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(e){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&e.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(e){var t=this._latlng;return this._latlng=C(e),this.update(),this.fire("move",{oldLatLng:t,latlng:this._latlng})},setZIndexOffset:function(e){return this.options.zIndexOffset=e,this.update()},setIcon:function(e){return this.options.icon=e,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var e=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(e)}return this},_initIcon:function(){var e=this.options,t="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),i=e.icon.createIcon(this._icon),a=!1;i!==this._icon&&(this._icon&&this._removeIcon(),a=!0,e.title&&(i.title=e.title),"IMG"===i.tagName&&(i.alt=e.alt||"")),de(i,t),e.keyboard&&(i.tabIndex="0"),this._icon=i,e.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex});var n=e.icon.createShadow(this._shadow),o=!1;n!==this._shadow&&(this._removeShadow(),o=!0),n&&(de(n,t),n.alt=""),this._shadow=n,e.opacity<1&&this._updateOpacity(),a&&this.getPane().appendChild(this._icon),this._initInteraction(),n&&o&&this.getPane("shadowPane").appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),ne(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&ne(this._shadow),this._shadow=null},_setPos:function(e){_e(this._icon,e),this._shadow&&_e(this._shadow,e),this._zIndex=e.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(e){this._icon.style.zIndex=this._zIndex+e},_animateZoom:function(e){var t=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center).round();this._setPos(t)},_initInteraction:function(){if(this.options.interactive&&(de(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),Ni)){var e=this.options.draggable;this.dragging&&(e=this.dragging.enabled(),this.dragging.disable()),this.dragging=new Ni(this),e&&this.dragging.enable()}},setOpacity:function(e){return this.options.opacity=e,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var e=this.options.opacity;me(this._icon,e),this._shadow&&me(this._shadow,e)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}}),Ui=$i.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(e){this._renderer=e.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(e){return u(this,e),this._renderer&&this._renderer._updateStyle(this),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+this._renderer.options.tolerance}}),Zi=Ui.extend({options:{fill:!0,radius:10},initialize:function(e,t){u(this,t),this._latlng=C(e),this._radius=this.options.radius},setLatLng:function(e){return this._latlng=C(e),this.redraw(),this.fire("move",{latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(e){return this.options.radius=this._radius=e,this.redraw()},getRadius:function(){return this._radius},setStyle:function(e){var t=e&&e.radius||this._radius;return Ui.prototype.setStyle.call(this,e),this.setRadius(t),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var e=this._radius,t=this._radiusY||e,i=this._clickTolerance(),a=[e+i,t+i];this._pxBounds=new x(this._point.subtract(a),this._point.add(a))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(e){return e.distanceTo(this._point)<=this._radius+this._clickTolerance()}}),qi=Zi.extend({initialize:function(e,i,a){if("number"==typeof i&&(i=t({},a,{radius:i}
vendor: 4,043 bytes, line 5
5)),u(this,i),this._latlng=C(e),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(e){return this._mRadius=e,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var e=[this._radius,this._radiusY||this._radius];return new k(this._map.layerPointToLatLng(this._point.subtract(e)),this._map.layerPointToLatLng(this._point.add(e)))},setStyle:Ui.prototype.setStyle,_project:function(){var e=this._latlng.lng,t=this._latlng.lat,i=this._map,a=i.options.crs;if(a.distance===nt.distance){var n=Math.PI/180,o=this._mRadius/nt.R/n,r=i.project([t+o,e]),s=i.project([t-o,e]),l=r.add(s).divideBy(2),d=i.unproject(l).lat,u=Math.acos((Math.cos(o*n)-Math.sin(t*n)*Math.sin(d*n))/(Math.cos(t*n)*Math.cos(d*n)))/n;(isNaN(u)||0===u)&&(u=o/Math.cos(Math.PI/180*t)),this._point=l.subtract(i.getPixelOrigin()),this._radius=isNaN(u)?0:l.x-i.project([d,e-u]).x,this._radiusY=l.y-r.y}else{var h=a.unproject(a.project(this._latlng).subtract([this._mRadius,0]));this._point=i.latLngToLayerPoint(this._latlng),this._radius=this._point.x-i.latLngToLayerPoint(h).x}this._updateBounds()}}),Gi=Ui.extend({options:{smoothFactor:1,noClip:!1},initialize:function(e,t){u(this,t),this._setLatLngs(e)},getLatLngs:function(){return this._latlngs},setLatLngs:function(e){return this._setLatLngs(e),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(e){for(var t,i,a=1/0,n=null,o=Me,r=0,s=this._parts.length;r<s;r++)for(var l=this._parts[r],d=1,u=l.length;d<u;d++){var h=o(e,t=l[d-1],i=l[d],!0);h<a&&(a=h,n=o(e,t,i))}return n&&(n.distance=Math.sqrt(a)),n},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");var e,t,i,a,n,o,r,s=this._rings[0],l=s.length;if(!l)return null;for(e=0,t=0;e<l-1;e++)t+=s[e].distanceTo(s[e+1])/2;if(0===t)return this._map.layerPointToLatLng(s[0]);for(e=0,a=0;e<l-1;e++)if(n=s[e],o=s[e+1],(a+=i=n.distanceTo(o))>t)return r=(a-t)/i,this._map.layerPointToLatLng([o.x-r*(o.x-n.x),o.y-r*(o.y-n.y)])},getBounds:function(){return this._bounds},addLatLng:function(e,t){return t=t||this._defaultShape(),e=C(e),t.push(e),this._bounds.extend(e),this.redraw()},_setLatLngs:function(e){this._bounds=new k,this._latlngs=this._convertLatLngs(e)},_defaultShape:function(){return Le(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(e){for(var t=[],i=Le(e),a=0,n=e.length;a<n;a++)i?(t[a]=C(e[a]),this._bounds.extend(t[a])):t[a]=this._convertLatLngs(e[a]);return t},_project:function(){var e=new x;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,e);var t=this._clickTolerance(),i=new v(t,t);this._bounds.isValid()&&e.isValid()&&(e.min._subtract(i),e.max._add(i),this._pxBounds=e)},_projectLatlngs:function(e,t,i){var a,n,o=e[0]instanceof T,r=e.length;if(o){for(n=[],a=0;a<r;a++)n[a]=this._map.latLngToLayerPoint(e[a]),i.extend(n[a]);t.push(n)}else for(a=0;a<r;a++)this._projectLatlngs(e[a],t,i)},_clipPoints:function(){var e=this._renderer._bounds;if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(e))if(this.options.noClip)this._parts=this._rings;else{var t,i,a,n,o,r,s,l=this._parts;for(t=0,a=0,n=this._rings.length;t<n;t++)for(i=0,o=(s=this._rings[t]).length;i<o-1;i++)(r=Te(s[i],s[i+1],e,i,!0))&&(l[a]=l[a]||[],l[a].push(r[0]),r[1]===s[i+1]&&i!==o-2||(l[a].push(r[1]),a++))}},_simplifyPoints:function(){for(var e=this._parts,t=this.options.smoothFactor,i=0,a=e.length;i<a;i++)e[i]=be(e[i],t)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(e,t){var i,a,n,o,r,s,l=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(e))return!1;for(i=0,o=this._parts.length;i<o;i++)for(a=0,n=(r=(s=this._parts[i]).length)-1;a<r;n=a++)if((t||0!==a)&&ke(e,s[n],s[a])<=l)return!0;return!1}});Gi._flat=Ae;var Wi=Gi.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length}
vendor: 58,591 bytes, line 5
5,getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");var e,t,i,a,n,o,r,s,l,d=this._rings[0],u=d.length;if(!u)return null;for(o=r=s=0,e=0,t=u-1;e<u;t=e++)i=d[e],a=d[t],n=i.y*a.x-a.y*i.x,r+=(i.x+a.x)*n,s+=(i.y+a.y)*n,o+=3*n;return l=0===o?d[0]:[r/o,s/o],this._map.layerPointToLatLng(l)},_convertLatLngs:function(e){var t=Gi.prototype._convertLatLngs.call(this,e),i=t.length;return i>=2&&t[0]instanceof T&&t[0].equals(t[i-1])&&t.pop(),t},_setLatLngs:function(e){Gi.prototype._setLatLngs.call(this,e),Le(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Le(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var e=this._renderer._bounds,t=this.options.weight,i=new v(t,t);if(e=new x(e.min.subtract(i),e.max.add(i)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(e))if(this.options.noClip)this._parts=this._rings;else for(var a,n=0,o=this._rings.length;n<o;n++)(a=Ie(this._rings[n],e,!0)).length&&this._parts.push(a)},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(e){var t,i,a,n,o,r,s,l,d=!1;if(!this._pxBounds.contains(e))return!1;for(n=0,s=this._parts.length;n<s;n++)for(o=0,r=(l=(t=this._parts[n]).length)-1;o<l;r=o++)i=t[o],a=t[r],i.y>e.y!=a.y>e.y&&e.x<(a.x-i.x)*(e.y-i.y)/(a.y-i.y)+i.x&&(d=!d);return d||Gi.prototype._containsPoint.call(this,e,!0)}}),Hi=Bi.extend({initialize:function(e,t){u(this,t),this._layers={},e&&this.addData(e)},addData:function(e){var t,i,a,n=He(e)?e:e.features;if(n){for(t=0,i=n.length;t<i;t++)((a=n[t]).geometries||a.geometry||a.features||a.coordinates)&&this.addData(a);return this}var o=this.options;if(o.filter&&!o.filter(e))return this;var r=Ee(e,o);return r?(r.feature=Fe(e),r.defaultOptions=r.options,this.resetStyle(r),o.onEachFeature&&o.onEachFeature(e,r),this.addLayer(r)):this},resetStyle:function(e){return e.options=t({},e.defaultOptions),this._setLayerStyle(e,this.options.style),this},setStyle:function(e){return this.eachLayer((function(t){this._setLayerStyle(t,e)}),this)},_setLayerStyle:function(e,t){"function"==typeof t&&(t=t(e.feature)),e.setStyle&&e.setStyle(t)}}),Ki={toGeoJSON:function(e){return Be(this,{type:"Point",coordinates:$e(this.getLatLng(),e)})}};Vi.include(Ki),qi.include(Ki),Zi.include(Ki),Gi.include({toGeoJSON:function(e){var t=!Le(this._latlngs);return Be(this,{type:(t?"Multi":"")+"LineString",coordinates:Re(this._latlngs,t?1:0,!1,e)})}}),Wi.include({toGeoJSON:function(e){var t=!Le(this._latlngs),i=t&&!Le(this._latlngs[0]),a=Re(this._latlngs,i?2:t?1:0,!0,e);return t||(a=[a]),Be(this,{type:(i?"Multi":"")+"Polygon",coordinates:a})}}),Ri.include({toMultiPoint:function(e){var t=[];return this.eachLayer((function(i){t.push(i.toGeoJSON(e).geometry.coordinates)})),Be(this,{type:"MultiPoint",coordinates:t})},toGeoJSON:function(e){var t=this.feature&&this.feature.geometry&&this.feature.geometry.type;if("MultiPoint"===t)return this.toMultiPoint(e);var i="GeometryCollection"===t,a=[];return this.eachLayer((function(t){if(t.toGeoJSON){var n=t.toGeoJSON(e);if(i)a.push(n.geometry);else{var o=Fe(n);"FeatureCollection"===o.type?a.push.apply(a,o.features):a.push(o)}}})),i?Be(this,{geometries:a,type:"GeometryCollection"}):{type:"FeatureCollection",features:a}}});var Xi=Oe,Ji=$i.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(e,t,i){this._url=e,this._bounds=S(t),u(this,i)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(de(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){ne(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(e){return this.options.opacity=e,this._image&&this._updateOpacity(),this},setStyle:function(e){return e.opacity&&this.setOpacity(e.opacity),this},bringToFront:function(){return this._map&&re(this._image),this},bringToBack:function(){return this._map&&se(this._image),this},setUrl:function(e){return this._url=e,this._image&&(this._image.src=e),this},setBounds:function(e){return this._bounds=S(e),this._map&&this._reset(),this},getEvents:function(){var e={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(e.zoomanim=this._animateZoom),e},setZIndex:function(e){return this.options.zIndex=e,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var e="IMG"===this._url.tagName,t=this._image=e?this._url:ae("img");de(t,"leaflet-image-layer"),this._zoomAnimated&&de(t,"leaflet-zoom-animated"),this.options.className&&de(t,this.options.className),t.onselectstart=r,t.onmousemove=r,t.onload=i(this.fire,this,"load"),t.onerror=i(this._overlayOnError,this,"error"),this.options.crossOrigin&&(t.crossOrigin=""),this.options.zIndex&&this._updateZIndex(),e?this._url=t.src:(t.src=this._url,t.alt=this.options.alt)},_animateZoom:function(e){var t=this._map.getZoomScale(e.zoom),i=this._map._latLngBoundsToNewLayerBounds(this._bounds,e.zoom,e.center).min;fe(this._image,i,t)},_reset:function(){var e=this._image,t=new x(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),i=t.getSize();_e(e,t.min),e.style.width=i.x+"px",e.style.height=i.y+"px"},_updateOpacity:function(){me(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var e=this.options.errorOverlayUrl;e&&this._url!==e&&(this._url=e,this._image.src=e)}}),Yi=Ji.extend({options:{autoplay:!0,loop:!0},_initImage:function(){var e="VIDEO"===this._url.tagName,t=this._image=e?this._url:ae("video");if(de(t,"leaflet-image-layer"),this._zoomAnimated&&de(t,"leaflet-zoom-animated"),t.onselectstart=r,t.onmousemove=r,t.onloadeddata=i(this.fire,this,"load"),e){for(var a=t.getElementsByTagName("source"),n=[],o=0;o<a.length;o++)n.push(a[o].src);this._url=a.length>0?n:[t.src]}else{He(this._url)||(this._url=[this._url]),t.autoplay=!!this.options.autoplay,t.loop=!!this.options.loop;for(var s=0;s<this._url.length;s++){var l=ae("source");l.src=this._url[s],t.appendChild(l)}}}}),Qi=$i.extend({options:{offset:[0,7],className:"",pane:"popupPane"},initialize:function(e,t){u(this,e),this._source=t},onAdd:function(e){this._zoomAnimated=e._zoomAnimated,this._container||this._initLayout(),e._fadeAnimated&&me(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),e._fadeAnimated&&me(this._container,1),this.bringToFront()},onRemove:function(e){e._fadeAnimated?(me(this._container,0),this._removeTimeout=setTimeout(i(ne,void 0,this._container),200)):ne(this._container)},getLatLng:function(){return this._latlng},setLatLng:function(e){return this._latlng=C(e),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(e){return this._content=e,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var e={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(e.zoomanim=this._animateZoom),e},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&re(this._container),this},bringToBack:function(){return this._map&&se(this._container),this},_updateContent:function(){if(this._content){var e=this._contentNode,t="function"==typeof this._content?this._content(this._source||this):this._content;if("string"==typeof t)e.innerHTML=t;else{for(;e.hasChildNodes();)e.removeChild(e.firstChild);e.appendChild(t)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var e=this._map.latLngToLayerPoint(this._latlng),t=w(this.options.offset),i=this._getAnchor();this._zoomAnimated?_e(this._container,e.add(i)):t=t.add(e).add(i);var a=this._containerBottom=-t.y,n=this._containerLeft=-Math.round(this._containerWidth/2)+t.x;this._container.style.bottom=a+"px",this._container.style.left=n+"px"}},_getAnchor:function(){return[0,0]}}),ea=Qi.extend({options:{maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(e){return e.openPopup(this),this},onAdd:function(e){Qi.prototype.onAdd.call(this,e),e.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof Ui||this._source.on("preclick",q))},onRemove:function(e){Qi.prototype.onRemove.call(this,e),e.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof Ui||this._source.off("preclick",q))},getEvents:function(){var e=Qi.prototype.getEvents.call(this);return(void 0!==this.options.closeOnClick?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(e.preclick=this._close),this.options.keepInView&&(e.moveend=this._adjustPan),e},_close:function(){this._map&&this._map.closePopup(this)},_initLayout:function(){var e="leaflet-popup",t=this._container=ae("div",e+" "+(this.options.className||"")+" leaflet-zoom-animated"),i=this._wrapper=ae("div",e+"-content-wrapper",t);if(this._contentNode=ae("div",e+"-content",i),W(i),G(this._contentNode),N(i,"contextmenu",q),this._tipContainer=ae("div",e+"-tip-container",t),this._tip=ae("div",e+"-tip",this._tipContainer),this.options.closeButton){var a=this._closeButton=ae("a",e+"-close-button",t);a.href="#close",a.innerHTML="&#215;",N(a,"click",this._onCloseButtonClick,this)}},_updateLayout:function(){var e=this._contentNode,t=e.style;t.width="",t.whiteSpace="nowrap";var i=e.offsetWidth;i=Math.min(i,this.options.maxWidth),i=Math.max(i,this.options.minWidth),t.width=i+1+"px",t.whiteSpace="",t.height="";var a=e.offsetHeight,n=this.options.maxHeight;n&&a>n?(t.height=n+"px",de(e,"leaflet-popup-scrolled")):ue(e,"leaflet-popup-scrolled"),this._containerWidth=this._container.offsetWidth},_animateZoom:function(e){var t=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center),i=this._getAnchor();_e(this._container,t.add(i))},_adjustPan:function(){if(!(!this.options.autoPan||this._map._panAnim&&this._map._panAnim._inProgress)){var e=this._map,t=parseInt(ie(this._container,"marginBottom"),10)||0,i=this._container.offsetHeight+t,a=this._containerWidth,n=new v(this._containerLeft,-i-this._containerBottom);n._add(ge(this._container));var o=e.layerPointToContainerPoint(n),r=w(this.options.autoPanPadding),s=w(this.options.autoPanPaddingTopLeft||r),l=w(this.options.autoPanPaddingBottomRight||r),d=e.getSize(),u=0,h=0;o.x+a+l.x>d.x&&(u=o.x+a-d.x+l.x),o.x-u-s.x<0&&(u=o.x-s.x),o.y+i+l.y>d.y&&(h=o.y+i-d.y+l.y),o.y-h-s.y<0&&(h=o.y-s.y),(u||h)&&e.fire("autopanstart").panBy([u,h])}},_onCloseButtonClick:function(e){this._close(),K(e)},_getAnchor:function(){return w(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}});pi.mergeOptions({closePopupOnClick:!0}),pi.include({openPopup:function(e,t,i){return e instanceof ea||(e=new ea(i).setContent(e)),t&&e.setLatLng(t),this.hasLayer(e)?this:(this._popup&&this._popup.options.autoClose&&this.closePopup(),this._popup=e,this.addLayer(e))},closePopup:function(e){return e&&e!==this._popup||(e=this._popup,this._popup=null),e&&this.removeLayer(e),this}}),$i.include({bindPopup:function(e,t){return e instanceof ea?(u(e,t),this._popup=e,e._source=this):(this._popup&&!t||(this._popup=new ea(t,this)),this._popup.setContent(e)),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(e,t){if(e instanceof $i||(t=e,e=this),e instanceof Bi)for(var i in this._layers){e=this._layers[i];break}return t||(t=e.getCenter?e.getCenter():e.getLatLng()),this._popup&&this._map&&(this._popup._source=e,this._popup.update(),this._map.openPopup(this._popup,t)),this},closePopup:function(){return this._popup&&this._popup._close(),this},togglePopup:function(e){return this._popup&&(this._popup._map?this.closePopup():this.openPopup(e)),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(e){return this._popup&&this._popup.setContent(e),this},getPopup:function(){return this._popup},_openPopup:function(e){var t=e.layer||e.target;this._popup&&this._map&&(K(e),t instanceof Ui?this.openPopup(e.layer||e.target,e.latlng):this._map.hasLayer(this._popup)&&this._popup._source===t?this.closePopup():this.openPopup(t,e.latlng))},_movePopup:function(e){this._popup.setLatLng(e.latlng)},_onKeyPress:function(e){13===e.originalEvent.keyCode&&this._openPopup(e)}});var ta=Qi.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,interactive:!1,opacity:.9},onAdd:function(e){Qi.prototype.onAdd.call(this,e),this.setOpacity(this.options.opacity),e.fire("tooltipopen",{tooltip:this}),this._source&&this._source.fire("tooltipopen",{tooltip:this},!0)},onRemove:function(e){Qi.prototype.onRemove.call(this,e),e.fire("tooltipclose",{tooltip:this}),this._source&&this._source.fire("tooltipclose",{tooltip:this},!0)},getEvents:function(){var e=Qi.prototype.getEvents.call(this);return Rt&&!this.options.permanent&&(e.preclick=this._close),e},_close:function(){this._map&&this._map.closeTooltip(this)},_initLayout:function(){var e="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=ae("div",e)},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(e){var t=this._map,i=this._container,a=t.latLngToContainerPoint(t.getCenter()),n=t.layerPointToContainerPoint(e),o=this.options.direction,r=i.offsetWidth,s=i.offsetHeight,l=w(this.options.offset),d=this._getAnchor();"top"===o?e=e.add(w(-r/2+l.x,-s+l.y+d.y,!0)):"bottom"===o?e=e.subtract(w(r/2-l.x,-l.y,!0)):"center"===o?e=e.subtract(w(r/2+l.x,s/2-d.y+l.y,!0)):"right"===o||"auto"===o&&n.x<a.x?(o="right",e=e.add(w(l.x+d.x,d.y-s/2+l.y,!0))):(o="left",e=e.subtract(w(r+d.x-l.x,s/2-d.y-l.y,!0))),ue(i,"leaflet-tooltip-right"),ue(i,"leaflet-tooltip-left"),ue(i,"leaflet-tooltip-top"),ue(i,"leaflet-tooltip-bottom"),de(i,"leaflet-tooltip-"+o),_e(i,e)},_updatePosition:function(){var e=this._map.latLngToLayerPoint(this._latlng);this._setPosition(e)},setOpacity:function(e){this.options.opacity=e,this._container&&me(this._container,e)},_animateZoom:function(e){var t=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center);this._setPosition(t)},_getAnchor:function(){return w(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}});pi.include({openTooltip:function(e,t,i){return e instanceof ta||(e=new ta(i).setContent(e)),t&&e.setLatLng(t),this.hasLayer(e)?this:this.addLayer(e)},closeTooltip:function(e){return e&&this.removeLayer(e),this}}),$i.include({bindTooltip:function(e,t){return e instanceof ta?(u(e,t),this._tooltip=e,e._source=this):(this._tooltip&&!t||(this._tooltip=new ta(t,this)),this._tooltip.setContent(e)),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(e){if(e||!this._tooltipHandlersAdded){var t=e?"off":"on",i={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?i.add=this._openTooltip:(i.mouseover=this._openTooltip,i.mouseout=this.closeTooltip,this._tooltip.options.sticky&&(i.mousemove=this._moveTooltip),Rt&&(i.click=this._openTooltip)),this[t](i),this._tooltipHandlersAdded=!e}},openTooltip:function(e,t){if(e instanceof $i||(t=e,e=this),e instanceof Bi)for(var i in this._layers){e=this._layers[i];break}return t||(t=e.getCenter?e.getCenter():e.getLatLng()),this._tooltip&&this._map&&(this._tooltip._source=e,this._tooltip.update(),this._map.openTooltip(this._tooltip,t),this._tooltip.options.interactive&&this._tooltip._container&&(de(this._tooltip._container,"leaflet-clickable"),this.addInteractiveTarget(this._tooltip._container))),this},closeTooltip:function(){return this._tooltip&&(this._tooltip._close(),this._tooltip.options.interactive&&this._tooltip._container&&(ue(this._tooltip._container,"leaflet-clickable"),this.removeInteractiveTarget(this._tooltip._container))),this},toggleTooltip:function(e){return this._tooltip&&(this._tooltip._map?this.closeTooltip():this.openTooltip(e)),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(e){return this._tooltip&&this._tooltip.setContent(e),this},getTooltip:function(){return this._tooltip},_openTooltip:function(e){var t=e.layer||e.target;this._tooltip&&this._map&&this.openTooltip(t,this._tooltip.options.sticky?e.latlng:void 0)},_moveTooltip:function(e){var t,i,a=e.latlng;this._tooltip.options.sticky&&e.originalEvent&&(t=this._map.mouseEventToContainerPoint(e.originalEvent),i=this._map.containerPointToLayerPoint(t),a=this._map.layerPointToLatLng(i)),this._tooltip.setLatLng(a)}});var ia=Fi.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(e){var t=e&&"DIV"===e.tagName?e:document.createElement("div"),i=this.options;if(t.innerHTML=!1!==i.html?i.html:"",i.bgPos){var a=w(i.bgPos);t.style.backgroundPosition=-a.x+"px "+-a.y+"px"}return this._setIconStyles(t,"icon"),t},createShadow:function(){return null}});Fi.Default=Oi;var aa=$i.extend({options:{tileSize:256,opacity:1,updateWhenIdle:It,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(e){u(this,e)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView(),this._update()},beforeAdd:function(e){e._addZoomLimit(this)},onRemove:function(e){this._removeAllTiles(),ne(this._container),e._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(re(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(se(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(e){return this.options.opacity=e,this._updateOpacity(),this},setZIndex:function(e){return this.options.zIndex=e,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){return this._map&&(this._removeAllTiles(),this._update()),this},getEvents:function(){var e={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=n(this._onMoveEnd,this.options.updateInterval,this)),e.move=this._onMove),this._zoomAnimated&&(e.zoomanim=this._animateZoom),e},createTile:function(){return document.createElement("div")},getTileSize:function(){var e=this.options.tileSize;return e instanceof v?e:new v(e,e)},_updateZIndex:function(){this._container&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(e){for(var t,i=this.getPane().children,a=-e(-1/0,1/0),n=0,o=i.length;n<o;n++)t=i[n].style.zIndex,i[n]!==this._container&&t&&(a=e(a,+t));isFinite(a)&&(this.options.zIndex=a+e(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!pt){me(this._container,this.options.opacity);var e=+new Date,t=!1,i=!1;for(var a in this._tiles){var n=this._tiles[a];if(n.current&&n.loaded){var o=Math.min(1,(e-n.loaded)/200);me(n.el,o),o<1?t=!0:(n.active?i=!0:this._onOpaqueTile(n),n.active=!0)}}i&&!this._noPrune&&this._pruneTiles(),t&&(g(this._fadeFrame),this._fadeFrame=_(this._updateOpacity,this))}},_onOpaqueTile:r,_initContainer:function(){this._container||(this._container=ae("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var e=this._tileZoom,t=this.options.maxZoom;if(void 0!==e){for(var i in this._levels)this._levels[i].el.children.length||i===e?(this._levels[i].el.style.zIndex=t-Math.abs(e-i),this._onUpdateLevel(i)):(ne(this._levels[i].el),this._removeTilesAtZoom(i),this._onRemoveLevel(i),delete this._levels[i]);var a=this._levels[e],n=this._map;return a||((a=this._levels[e]={}).el=ae("div","leaflet-tile-container leaflet-zoom-animated",this._container),a.el.style.zIndex=t,a.origin=n.project(n.unproject(n.getPixelOrigin()),e).round(),a.zoom=e,this._setZoomTransform(a,n.getCenter(),n.getZoom()),a.el.offsetWidth,this._onCreateLevel(a)),this._level=a,a}},_onUpdateLevel:r,_onRemoveLevel:r,_onCreateLevel:r,_pruneTiles:function(){if(this._map){var e,t,i=this._map.getZoom();if(i>this.options.maxZoom||i<this.options.minZoom)this._removeAllTiles();else{for(e in this._tiles)(t=this._tiles[e]).retain=t.current;for(e in this._tiles)if((t=this._tiles[e]).current&&!t.active){var a=t.coords;this._retainParent(a.x,a.y,a.z,a.z-5)||this._retainChildren(a.x,a.y,a.z,a.z+2)}for(e in this._tiles)this._tiles[e].retain||this._removeTile(e)}}},_removeTilesAtZoom:function(e){for(var t in this._tiles)this._tiles[t].coords.z===e&&this._removeTile(t)},_removeAllTiles:function(){for(var e in this._tiles)this._removeTile(e)},_invalidateAll:function(){for(var e in this._levels)ne(this._levels[e].el),this._onRemoveLevel(e),delete this._levels[e];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(e,t,i,a){var n=Math.floor(e/2),o=Math.floor(t/2),r=i-1,s=new v(+n,+o);s.z=+r;var l=this._tileCoordsToKey(s),d=this._tiles[l];return d&&d.active?(d.retain=!0,!0):(d&&d.loaded&&(d.retain=!0),r>a&&this._retainParent(n,o,r,a))},_retainChildren:function(e,t,i,a){for(var n=2*e;n<2*e+2;n++)for(var o=2*t;o<2*t+2;o++){var r=new v(n,o);r.z=i+1;var s=this._tileCoordsToKey(r),l=this._tiles[s];l&&l.active?l.retain=!0:(l&&l.loaded&&(l.retain=!0),i+1<a&&this._retainChildren(n,o,i+1,a))}},_resetView:function(e){var t=e&&(e.pinch||e.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),t,t)},_animateZoom:function(e){this._setView(e.center,e.zoom,!0,e.noUpdate)},_clampZoom:function(e){var t=this.options;return void 0!==t.minNativeZoom&&e<t.minNativeZoom?t.minNativeZoom:void 0!==t.maxNativeZoom&&t.maxNativeZoom<e?t.maxNativeZoom:e},_setView:function(e,t,i,a){var n=this._clampZoom(Math.round(t));(void 0!==this.options.maxZoom&&n>this.options.maxZoom||void 0!==this.options.minZoom&&n<this.options.minZoom)&&(n=void 0);var o=this.options.updateWhenZooming&&n!==this._tileZoom;a&&!o||(this._tileZoom=n,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),void 0!==n&&this._update(e),i||this._pruneTiles(),this._noPrune=!!i),this._setZoomTransforms(e,t)},_setZoomTransforms:function(e,t){for(var i in this._levels)this._setZoomTransform(this._levels[i],e,t)},_setZoomTransform:function(e,t,i){var a=this._map.getZoomScale(i,e.zoom),n=e.origin.multiplyBy(a).subtract(this._map._getNewPixelOrigin(t,i)).round();At?fe(e.el,n,a):_e(e.el,n)},_resetGrid:function(){var e=this._map,t=e.options.crs,i=this._tileSize=this.getTileSize(),a=this._tileZoom,n=this._map.getPixelWorldBounds(this._tileZoom);n&&(this._globalTileRange=this._pxBoundsToTileRange(n)),this._wrapX=t.wrapLng&&!this.options.noWrap&&[Math.floor(e.project([0,t.wrapLng[0]],a).x/i.x),Math.ceil(e.project([0,t.wrapLng[1]],a).x/i.y)],this._wrapY=t.wrapLat&&!this.options.noWrap&&[Math.floor(e.project([t.wrapLat[0],0],a).y/i.x),Math.ceil(e.project([t.wrapLat[1],0],a).y/i.y)]},_onMoveEnd:function(){this._map&&!this._map._animatingZoom&&this._update()},_getTiledPixelBounds:function(e){var t=this._map,i=t._animatingZoom?Math.max(t._animateToZoom,t.getZoom()):t.getZoom(),a=t.getZoomScale(i,this._tileZoom),n=t.project(e,this._tileZoom).floor(),o=t.getSize().divideBy(2*a);return new x(n.subtract(o),n.add(o))},_update:function(e){var t=this._map;if(t){var i=this._clampZoom(t.getZoom());if(void 0===e&&(e=t.getCenter()),void 0!==this._tileZoom){var a=this._getTiledPixelBounds(e),n=this._pxBoundsToTileRange(a),o=n.getCenter(),r=[],s=this.options.keepBuffer,l=new x(n.getBottomLeft().subtract([s,-s]),n.getTopRight().add([s,-s]));if(!(isFinite(n.min.x)&&isFinite(n.min.y)&&isFinite(n.max.x)&&isFinite(n.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var d in this._tiles){var u=this._tiles[d].coords;u.z===this._tileZoom&&l.contains(new v(u.x,u.y))||(this._tiles[d].current=!1)}if(Math.abs(i-this._tileZoom)>1)this._setView(e,i);else{for(var h=n.min.y;h<=n.max.y;h++)for(var c=n.min.x;c<=n.max.x;c++){var m=new v(c,h);if(m.z=this._tileZoom,this._isValidTile(m)){var p=this._tiles[this._tileCoordsToKey(m)];p?p.current=!0:r.push(m)}}if(r.sort((function(e,t){return e.distanceTo(o)-t.distanceTo(o)})),0!==r.length){this._loading||(this._loading=!0,this.fire("loading"));var f=document.createDocumentFragment();for(c=0;c<r.length;c++)this._addTile(r[c],f);this._level.el.appendChild(f)}}}}},_isValidTile:function(e){var t=this._map.options.crs;if(!t.infinite){var i=this._globalTileRange;if(!t.wrapLng&&(e.x<i.min.x||e.x>i.max.x)||!t.wrapLat&&(e.y<i.min.y||e.y>i.max.y))return!1}if(!this.options.bounds)return!0;var a=this._tileCoordsToBounds(e);return S(this.options.bounds).overlaps(a)},_keyToBounds:function(e){return this._tileCoordsToBounds(this._keyToTileCoords(e))},_tileCoordsToNwSe:function(e){var t=this._map,i=this.getTileSize(),a=e.scaleBy(i),n=a.add(i);return[t.unproject(a,e.z),t.unproject(n,e.z)]},_tileCoordsToBounds:function(e){var t=this._tileCoordsToNwSe(e),i=new k(t[0],t[1]);return this.options.noWrap||(i=this._map.wrapLatLngBounds(i)),i},_tileCoordsToKey:function(e){return e.x+":"+e.y+":"+e.z},_keyToTileCoords:function(e){var t=e.split(":"),i=new v(+t[0],+t[1]);return i.z=+t[2],i},_removeTile:function(e){var t=this._tiles[e];t&&(wt||t.el.setAttribute("src",Ke),ne(t.el),delete this._tiles[e],this.fire("tileunload",{tile:t.el,coords:this._keyToTileCoords(e)}))},_initTile:function(e){de(e,"leaflet-tile");var t=this.getTileSize();e.style.width=t.x+"px",e.style.height=t.y+"px",e.onselectstart=r,e.onmousemove=r,pt&&this.options.opacity<1&&me(e,this.options.opacity),gt&&!yt&&(e.style.WebkitBackfaceVisibility="hidden")},_addTile:function(e,t){var a=this._getTilePos(e),n=this._tileCoordsToKey(e),o=this.createTile(this._wrapCoords(e),i(this._tileReady,this,e));this._initTile(o),this.createTile.length<2&&_(i(this._tileReady,this,e,null,o)),_e(o,a),this._tiles[n]={el:o,coords:e,current:!0},t.appendChild(o),this.fire("tileloadstart",{tile:o,coords:e})},_tileReady:function(e,t,a){if(this._map){t&&this.fire("tileerror",{error:t,tile:a,coords:e});var n=this._tileCoordsToKey(e);(a=this._tiles[n])&&(a.loaded=+new Date,this._map._fadeAnimated?(me(a.el,0),g(this._fadeFrame),this._fadeFrame=_(this._updateOpacity,this)):(a.active=!0,this._pruneTiles()),t||(de(a.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:a.el,coords:e})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),pt||!this._map._fadeAnimated?_(this._pruneTiles,this):setTimeout(i(this._pruneTiles,this),250)))}},_getTilePos:function(e){return e.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(e){var t=new v(this._wrapX?o(e.x,this._wrapX):e.x,this._wrapY?o(e.y,this._wrapY):e.y);return t.z=e.z,t},_pxBoundsToTileRange:function(e){var t=this.getTileSize();return new x(e.min.unscaleBy(t).floor(),e.max.unscaleBy(t).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var e in this._tiles)if(!this._tiles[e].loaded)return!1;return!0}}),na=aa.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1},initialize:function(e,t){this._url=e,(t=u(this,t)).detectRetina&&Ot&&t.maxZoom>0&&(t.tileSize=Math.floor(t.tileSize/2),t.zoomReverse?(t.zoomOffset--,t.minZoom++):(t.zoomOffset++,t.maxZoom--),t.minZoom=Math.max(0,t.minZoom)),"string"==typeof t.subdomains&&(t.subdomains=t.subdomains.split("")),gt||this.on("tileunload",this._onTileRemove)},setUrl:function(e,t){return this._url=e,t||this.redraw(),this},createTile:function(e,t){var a=document.createElement("img");return N(a,"load",i(this._tileOnLoad,this,t,a)),N(a,"error",i(this._tileOnError,this,t,a)),this.options.crossOrigin&&(a.crossOrigin=""),a.alt="",a.setAttribute("role","presentation"),a.src=this.getTileUrl(e),a},getTileUrl:function(e){var i={r:Ot?"@2x":"",s:this._getSubdomain(e),x:e.x,y:e.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var a=this._globalTileRange.max.y-e.y;this.options.tms&&(i.y=a),i["-y"]=a}return c(this._url,t(i,this.options))},_tileOnLoad:function(e,t){pt?setTimeout(i(e,this,null,t),0):e(null,t)},_tileOnError:function(e,t,i){var a=this.options.errorTileUrl;a&&t.getAttribute("src")!==a&&(t.src=a),e(i,t)},_onTileRemove:function(e){e.tile.onload=null},_getZoomForUrl:function(){var e=this._tileZoom,t=this.options.maxZoom;return this.options.zoomReverse&&(e=t-e),e+this.options.zoomOffset},_getSubdomain:function(e){var t=Math.abs(e.x+e.y)%this.options.subdomains.length;return this.options.subdomains[t]},_abortLoading:function(){var e,t;for(e in this._tiles)this._tiles[e].coords.z!==this._tileZoom&&((t=this._tiles[e].el).onload=r,t.onerror=r,t.complete||(t.src=Ke,ne(t),delete this._tiles[e]))}}),oa=na.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(e,i){this._url=e;var a=t({},this.defaultWmsParams);for(var n in i)n in this.options||(a[n]=i[n]);var o=(i=u(this,i)).detectRetina&&Ot?2:1,r=this.getTileSize();a.width=r.x*o,a.height=r.y*o,this.wmsParams=a},onAdd:function(e){this._crs=this.options.crs||e.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var t=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[t]=this._crs.code,na.prototype.onAdd.call(this,e)},getTileUrl:function(e){var t=this._tileCoordsToNwSe(e),i=this._crs,a=b(i.project(t[0]),i.project(t[1])),n=a.min,o=a.max,r=(this._wmsVersion>=1.3&&this._crs===Di?[n.y,n.x,o.y,o.x]:[n.x,n.y,o.x,o.y]).join(","),s=L.TileLayer.prototype.getTileUrl.call(this,e);return s+h(this.wmsParams,s,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+r},setParams:function(e,i){return t(this.wmsParams,e),i||this.redraw(),this}});na.WMS=oa,Ne.wms=function(e,t){return new oa(e,t)};var ra=$i.extend({options:{padding:.1,tolerance:0},initialize:function(e){u(this,e),a(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),this._zoomAnimated&&de(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var e={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(e.zoomanim=this._onAnimZoom),e},_onAnimZoom:function(e){this._updateTransform(e.center,e.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(e,t){var i=this._map.getZoomScale(t,this._zoom),a=ge(this._container),n=this._map.getSize().multiplyBy(.5+this.options.padding),o=this._map.project(this._center,t),r=this._map.project(e,t).subtract(o),s=n.multiplyBy(-i).add(a).add(n).subtract(r);At?fe(this._container,s,i):_e(this._container,s)},_reset:function(){for(var e in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[e]._reset()},_onZoomEnd:function(){for(var e in this._layers)this._layers[e]._project()},_updatePaths:function(){for(var e in this._layers)this._layers[e]._update()},_update:function(){var e=this.options.padding,t=this._map.getSize(),i=this._map.containerPointToLayerPoint(t.multiplyBy(-e)).round();this._bounds=new x(i,i.add(t.multiplyBy(1+2*e)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),sa=ra.extend({getEvents:function(){var e=ra.prototype.getEvents.call(this);return e.viewprereset=this._onViewPreReset,e},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){ra.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var e=this._container=document.createElement("canvas");N(e,"mousemove",n(this._onMouseMove,32,this),this),N(e,"click dblclick mousedown mouseup contextmenu",this._onClick,this),N(e,"mouseout",this._handleMouseOut,this),this._ctx=e.getContext("2d")},_destroyContainer:function(){delete this._ctx,ne(this._container),V(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var e in this._redrawBounds=null,this._layers)this._layers[e]._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){this._drawnLayers={},ra.prototype._update.call(this);var e=this._bounds,t=this._container,i=e.getSize(),a=Ot?2:1;_e(t,e.min),t.width=a*i.x,t.height=a*i.y,t.style.width=i.x+"px",t.style.height=i.y+"px",Ot&&this._ctx.scale(2,2),this._ctx.translate(-e.min.x,-e.min.y),this.fire("update")}},_reset:function(){ra.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(e){this._updateDashArray(e),this._layers[a(e)]=e;var t=e._order={layer:e,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=t),this._drawLast=t,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(e){this._requestRedraw(e)},_removePath:function(e){var t=e._order,i=t.next,a=t.prev;i?i.prev=a:this._drawLast=a,a?a.next=i:this._drawFirst=i,delete e._order,delete this._layers[L.stamp(e)],this._requestRedraw(e)},_updatePath:function(e){this._extendRedrawBounds(e),e._project(),e._update(),this._requestRedraw(e)},_updateStyle:function(e){this._updateDashArray(e),this._requestRedraw(e)},_updateDashArray:function(e){if(e.options.dashArray){var t,i=e.options.dashArray.split(","),a=[];for(t=0;t<i.length;t++)a.push(Number(i[t]));e.options._dashArray=a}},_requestRedraw:function(e){this._map&&(this._extendRedrawBounds(e),this._redrawRequest=this._redrawRequest||_(this._redraw,this))},_extendRedrawBounds:function(e){if(e._pxBounds){var t=(e.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new x,this._redrawBounds.extend(e._pxBounds.min.subtract([t,t])),this._redrawBounds.extend(e._pxBounds.max.add([t,t]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var e=this._redrawBounds;if(e){var t=e.getSize();this._ctx.clearRect(e.min.x,e.min.y,t.x,t.y)}else this._ctx.clearRect(0,0,this._container.width,this._container.height)},_draw:function(){var e,t=this._redrawBounds;if(this._ctx.save(),t){var i=t.getSize();this._ctx.beginPath(),this._ctx.rect(t.min.x,t.min.y,i.x,i.y),this._ctx.clip()}this._drawing=!0;for(var a=this._drawFirst;a;a=a.next)e=a.layer,(!t||e._pxBounds&&e._pxBounds.intersects(t))&&e._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(e,t){if(this._drawing){var i,a,n,o,r=e._parts,s=r.length,l=this._ctx;if(s){for(this._drawnLayers[e._leaflet_id]=e,l.beginPath(),i=0;i<s;i++){for(a=0,n=r[i].length;a<n;a++)o=r[i][a],l[a?"lineTo":"moveTo"](o.x,o.y);t&&l.closePath()}this._fillStroke(l,e)}}},_updateCircle:function(e){if(this._drawing&&!e._empty()){var t=e._point,i=this._ctx,a=Math.max(Math.round(e._radius),1),n=(Math.max(Math.round(e._radiusY),1)||a)/a;this._drawnLayers[e._leaflet_id]=e,1!==n&&(i.save(),i.scale(1,n)),i.beginPath(),i.arc(t.x,t.y/n,a,0,2*Math.PI,!1),1!==n&&i.restore(),this._fillStroke(i,e)}},_fillStroke:function(e,t){var i=t.options;i.fill&&(e.globalAlpha=i.fillOpacity,e.fillStyle=i.fillColor||i.color,e.fill(i.fillRule||"evenodd")),i.stroke&&0!==i.weight&&(e.setLineDash&&e.setLineDash(t.options&&t.options._dashArray||[]),e.globalAlpha=i.opacity,e.lineWidth=i.weight,e.strokeStyle=i.color,e.lineCap=i.lineCap,e.lineJoin=i.lineJoin,e.stroke())},_onClick:function(e){for(var t,i,a=this._map.mouseEventToLayerPoint(e),n=this._drawFirst;n;n=n.next)(t=n.layer).options.interactive&&t._containsPoint(a)&&!this._map._draggableMoved(t)&&(i=t);i&&(Y(e),this._fireEvent([i],e))},_onMouseMove:function(e){if(this._map&&!this._map.dragging.moving()&&!this._map._animatingZoom){var t=this._map.mouseEventToLayerPoint(e);this._handleMouseHover(e,t)}},_handleMouseOut:function(e){var t=this._hoveredLayer;t&&(ue(this._container,"leaflet-interactive"),this._fireEvent([t],e,"mouseout"),this._hoveredLayer=null)},_handleMouseHover:function(e,t){for(var i,a,n=this._drawFirst;n;n=n.next)(i=n.layer).options.interactive&&i._containsPoint(t)&&(a=i);a!==this._hoveredLayer&&(this._handleMouseOut(e),a&&(de(this._container,"leaflet-interactive"),this._fireEvent([a],e,"mouseover"),this._hoveredLayer=a)),this._hoveredLayer&&this._fireEvent([this._hoveredLayer],e)},_fireEvent:function(e,t,i){this._map._fireDOMEvent(t,i||t.type,e)},_bringToFront:function(e){var t=e._order,i=t.next,a=t.prev;i&&(i.prev=a,a?a.next=i:i&&(this._drawFirst=i),t.prev=this._drawLast,this._drawLast.next=t,t.next=null,this._drawLast=t,this._requestRedraw(e))},_bringToBack:function(e){var t=e._order,i=t.next,a=t.prev;a&&(a.next=i,i?i.prev=a:a&&(this._drawLast=a),t.prev=null,t.next=this._drawFirst,this._drawFirst.prev=t,this._drawFirst=t,this._requestRedraw(e))}}),la=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(e){return document.createElement("<lvml:"+e+' class="lvml">')}}catch(e){return function(e){return document.createElement("<"+e+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}}(),da={_initContainer:function(){this._container=ae("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(ra.prototype._update.call(this),this.fire("update"))},_initPath:function(e){var t=e._container=la("shape");de(t,"leaflet-vml-shape "+(this.options.className||"")),t.coordsize="1 1",e._path=la("path"),t.appendChild(e._path),this._updateStyle(e),this._layers[a(e)]=e},_addPath:function(e){var t=e._container;this._container.appendChild(t),e.options.interactive&&e.addInteractiveTarget(t)},_removePath:function(e){var t=e._container;ne(t),e.removeInteractiveTarget(t),delete this._layers[a(e)]},_updateStyle:function(e){var t=e._stroke,i=e._fill,a=e.options,n=e._container;n.stroked=!!a.stroke,n.filled=!!a.fill,a.stroke?(t||(t=e._stroke=la("stroke")),n.appendChild(t),t.weight=a.weight+"px",t.color=a.color,t.opacity=a.opacity,a.dashArray?t.dashStyle=He(a.dashArray)?a.dashArray.join(" "):a.dashArray.replace(/( *, *)/g," "):t.dashStyle="",t.endcap=a.lineCap.replace("butt","flat"),t.joinstyle=a.lineJoin):t&&(n.removeChild(t),e._stroke=null),a.fill?(i||(i=e._fill=la("fill")),n.appendChild(i),i.color=a.fillColor||a.color,i.opacity=a.fillOpacity):i&&(n.removeChild(i),e._fill=null)},_updateCircle:function(e){var t=e._point.round(),i=Math.round(e._radius),a=Math.round(e._radiusY||i);this._setPath(e,e._empty()?"M0 0":"AL "+t.x+","+t.y+" "+i+","+a+" 0,23592600")},_setPath:function(e,t){e._path.v=t},_bringToFront:function(e){re(e._container)},_bringToBack:function(e){se(e._container)}},ua=Ut?la:M,ha=ra.extend({getEvents:function(){var e=ra.prototype.getEvents.call(this);return e.zoomstart=this._onZoomStart,e},_initContainer:function(){this._container=ua("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=ua("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){ne(this._container),V(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_onZoomStart:function(){this._update()},_update:function(){if(!this._map._animatingZoom||!this._bounds){ra.prototype._update.call(this);var e=this._bounds,t=e.getSize(),i=this._container;this._svgSize&&this._svgSize.equals(t)||(this._svgSize=t,i.setAttribute("width",t.x),i.setAttribute("height",t.y)),_e(i,e.min),i.setAttribute("viewBox",[e.min.x,e.min.y,t.x,t.y].join(" ")),this.fire("update")}},_initPath:function(e){var t=e._path=ua("path");e.options.className&&de(t,e.options.className),e.options.interactive&&de(t,"leaflet-interactive"),this._updateStyle(e),this._layers[a(e)]=e},_addPath:function(e){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(e._path),e.addInteractiveTarget(e._path)},_removePath:function(e){ne(e._path),e.removeInteractiveTarget(e._path),delete this._layers[a(e)]},_updatePath:function(e){e._project(),e._update()},_updateStyle:function(e){var t=e._path,i=e.options;t&&(i.stroke?(t.setAttribute("stroke",i.color),t.setAttribute("stroke-opacity",i.opacity),t.setAttribute("stroke-width",i.weight),t.setAttribute("stroke-linecap",i.lineCap),t.setAttribute("stroke-linejoin",i.lineJoin),i.dashArray?t.setAttribute("stroke-dasharray",i.dashArray):t.removeAttribute("stroke-dasharray"),i.dashOffset?t.setAttribute("stroke-dashoffset",i.dashOffset):t.removeAttribute("stroke-dashoffset")):t.setAttribute("stroke","none"),i.fill?(t.setAttribute("fill",i.fillColor||i.color),t.setAttribute("fill-opacity",i.fillOpacity),t.setAttribute("fill-rule",i.fillRule||"evenodd")):t.setAttribute("fill","none"))},_updatePoly:function(e,t){this._setPath(e,A(e._parts,t))},_updateCircle:function(e){var t=e._point,i=Math.max(Math.round(e._radius),1),a="a"+i+","+(Math.max(Math.round(e._radiusY),1)||i)+" 0 1,0 ",n=e._empty()?"M0 0":"M"+(t.x-i)+","+t.y+a+2*i+",0 "+a+2*-i+",0 ";this._setPath(e,n)},_setPath:function(e,t){e._path.setAttribute("d",t)},_bringToFront:function(e){re(e._path)},_bringToBack:function(e){se(e._path)}});Ut&&ha.include(da),pi.include({getRenderer:function(e){var t=e.options.renderer||this._getPaneRenderer(e.options.pane)||this.options.renderer||this._renderer;return t||(t=this._renderer=this.options.preferCanvas&&Ve()||Ue()),this.hasLayer(t)||this.addLayer(t),t},_getPaneRenderer:function(e){if("overlayPane"===e||void 0===e)return!1;var t=this._paneRenderers[e];return void 0===t&&(t=ha&&Ue({pane:e})||sa&&Ve({pane:e}),this._paneRenderers[e]=t),t}});var ca=Wi.extend({initialize:function(e,t){Wi.prototype.initialize.call(this,this._boundsToLatLngs(e),t)},setBounds:function(e){return this.setLatLngs(this._boundsToLatLngs(e))},_boundsToLatLngs:function(e){return[(e=S(e)).getSouthWest(),e.getNorthWest(),e.getNorthEast(),e.getSouthEast()]}});ha.create=ua,ha.pointsToPath=A,Hi.geometryToLayer=Ee,Hi.coordsToLatLng=De,Hi.coordsToLatLngs=je,Hi.latLngToCoords=$e,Hi.latLngsToCoords=Re,Hi.getFeature=Be,Hi.asFeature=Fe,pi.mergeOptions({boxZoom:!0});var ma=xi.extend({initialize:function(e){this._map=e,this._container=e._container,this._pane=e._panes.overlayPane,this._resetStateTimeout=0,e.on("unload",this._destroy,this)},addHooks:function(){N(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){V(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){ne(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(e){if(!e.shiftKey||1!==e.which&&1!==e.button)return!1;this._clearDeferredResetState(),this._resetState(),st(),ye(),this._startPoint=this._map.mouseEventToContainerPoint(e),N(document,{contextmenu:K,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(e){this._moved||(this._moved=!0,this._box=ae("div","leaflet-zoom-box",this._container),de(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(e);var t=new x(this._point,this._startPoint),i=t.getSize();_e(this._box,t.min),this._box.style.width=i.x+"px",this._box.style.height=i.y+"px"},_finish:function(){this._moved&&(ne(this._box),ue(this._container,"leaflet-crosshair")),lt(),ve(),V(document,{contextmenu:K,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(e){if((1===e.which||1===e.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(i(this._resetState,this),0);var t=new k(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(t).fire("boxzoomend",{boxZoomBounds:t})}},_onKeyDown:function(e){27===e.keyCode&&this._finish()}});pi.addInitHook("addHandler","boxZoom",ma),pi.mergeOptions({doubleClickZoom:!0});var pa=xi.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(e){var t=this._map,i=t.getZoom(),a=t.options.zoomDelta,n=e.originalEvent.shiftKey?i-a:i+a;"center"===t.options.doubleClickZoom?t.setZoom(n):t.setZoomAround(e.containerPoint,n)}});pi.addInitHook("addHandler","doubleClickZoom",pa),pi.mergeOptions({dragging:!0,inertia:!yt,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var fa=xi.extend({addHooks:function(){if(!this._draggable){var e=this._map;this._draggable=new zi(e._mapPane,e._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),e.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),e.on("zoomend",this._onZoomEnd,this),e.whenReady(this._onZoomEnd,this))}de(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){ue(this._map._container,"leaflet-grab"),ue(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var e=this._map;if(e._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var t=S(this._map.options.maxBounds);this._offsetLimit=b(this._map.latLngToContainerPoint(t.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(t.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;e.fire("movestart").fire("dragstart"),e.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(e){if(this._map.options.inertia){var t=this._lastTime=+new Date,i=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(i),this._times.push(t),this._prunePositions(t)}this._map.fire("move",e).fire("drag",e)},_prunePositions:function(e){for(;this._positions.length>1&&e-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var e=this._map.getSize().divideBy(2),t=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=t.subtract(e).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(e,t){return e-(e-t)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var e=this._draggable._newPos.subtract(this._draggable._startPos),t=this._offsetLimit;e.x<t.min.x&&(e.x=this._viscousLimit(e.x,t.min.x)),e.y<t.min.y&&(e.y=this._viscousLimit(e.y,t.min.y)),e.x>t.max.x&&(e.x=this._viscousLimit(e.x,t.max.x)),e.y>t.max.y&&(e.y=this._viscousLimit(e.y,t.max.y)),this._draggable._newPos=this._draggable._startPos.add(e)}},_onPreDragWrap:function(){var e=this._worldWidth,t=Math.round(e/2),i=this._initialWorldOffset,a=this._draggable._newPos.x,n=(a-t+i)%e+t-i,o=(a+t+i)%e-t-i,r=Math.abs(n+i)<Math.abs(o+i)?n:o;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=r},_onDragEnd:function(e){var t=this._map,i=t.options,a=!i.inertia||this._times.length<2;if(t.fire("dragend",e),a)t.fire("moveend");else{this._prunePositions(+new Date);var n=this._lastPos.subtract(this._positions[0]),o=(this._lastTime-this._times[0])/1e3,r=i.easeLinearity,s=n.multiplyBy(r/o),l=s.distanceTo([0,0]),d=Math.min(i.inertiaMaxSpeed,l),u=s.multiplyBy(d/l),h=d/(i.inertiaDeceleration*r),c=u.multiplyBy(-h/2).round();c.x||c.y?(c=t._limitOffset(c,t.options.maxBounds),_((function(){t.panBy(c,{duration:h,easeLinearity:r,noMoveStart:!0,animate:!0})}))):t.fire("moveend")}}});pi.addInitHook("addHandler","dragging",fa),pi.mergeOptions({keyboard:!0,keyboardPanDelta:80});var _a=xi.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(e){this._map=e,this._setPanDelta(e.options.keyboardPanDelta),this._setZoomDelta(e.options.zoomDelta)},addHooks:function(){var e=this._map._container;e.tabIndex<=0&&(e.tabIndex="0"),N(e,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),V(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var e=document.body,t=document.documentElement,i=e.scrollTop||t.scrollTop,a=e.scrollLeft||t.scrollLeft;this._map._container.focus(),window.scrollTo(a,i)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(e){var t,i,a=this._panKeys={},n=this.keyCodes;for(t=0,i=n.left.length;t<i;t++)a[n.left[t]]=[-1*e,0];for(t=0,i=n.right.length;t<i;t++)a[n.right[t]]=[e,0];for(t=0,i=n.down.length;t<i;t++)a[n.down[t]]=[0,e];for(t=0,i=n.up.length;t<i;t++)a[n.up[t]]=[0,-1*e]},_setZoomDelta:function(e){var t,i,a=this._zoomKeys={},n=this.keyCodes;for(t=0,i=n.zoomIn.length;t<i;t++)a[n.zoomIn[t]]=e;for(t=0,i=n.zoomOut.length;t<i;t++)a[n.zoomOut[t]]=-e},_addHooks:function(){N(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){V(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(e){if(!(e.altKey||e.ctrlKey||e.metaKey)){var t,i=e.keyCode,a=this._map;if(i in this._panKeys){if(a._panAnim&&a._panAnim._inProgress)return;t=this._panKeys[i],e.shiftKey&&(t=w(t).multiplyBy(3)),a.panBy(t),a.options.maxBounds&&a.panInsideBounds(a.options.maxBounds)}else if(i in this._zoomKeys)a.setZoom(a.getZoom()+(e.shiftKey?3:1)*this._zoomKeys[i]);else{if(27!==i||!a._popup||!a._popup.options.closeOnEscapeKey)return;a.closePopup()}K(e)}}});pi.addInitHook("addHandler","keyboard",_a),pi.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var ga=xi.extend({addHooks:function(){N(this._map._container,"mousewheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){V(this._map._container,"mousewheel",this._onWheelScroll,this)},_onWheelScroll:function(e){var t=J(e),a=this._map.options.wheelDebounceTime;this._delta+=t,this._lastMousePos=this._map.mouseEventToContainerPoint(e),this._startTime||(this._startTime=+new Date);var n=Math.max(a-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(i(this._performZoom,this),n),K(e)},_performZoom:function(){var e=this._map,t=e.getZoom(),i=this._map.options.zoomSnap||0;e._stop();var a=this._delta/(4*this._map.options.wheelPxPerZoomLevel),n=4*Math.log(2/(1+Math.exp(-Math.abs(a))))/Math.LN2,o=i?Math.ceil(n/i)*i:n,r=e._limitZoom(t+(this._delta>0?o:-o))-t;this._delta=0,this._startTime=null,r&&("center"===e.options.scrollWheelZoom?e.setZoom(t+r):e.setZoomAround(this._lastMousePos,t+r))}});pi.addInitHook("addHandler","scrollWheelZoom",ga),pi.mergeOptions({tap:!0,tapTolerance:15});var ya=xi.extend({addHooks:function(){N(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){V(this._map._container,"touchstart",this._onDown,this)},_onDown:function(e){if(e.touches){if(H(e),this._fireClick=!0,e.touches.length>1)return this._fireClick=!1,void clearTimeout(this._holdTimeout);var t=e.touches[0],a=t.target;this._startPos=this._newPos=new v(t.clientX,t.clientY),a.tagName&&"a"===a.tagName.toLowerCase()&&de(a,"leaflet-active"),this._holdTimeout=setTimeout(i((function(){this._isTapValid()&&(this._fireClick=!1,this._onUp(),this._simulateEvent("contextmenu",t))}),this),1e3),this._simulateEvent("mousedown",t),N(document,{touchmove:this._onMove,touchend:this._onUp},this)}},_onUp:function(e){if(clearTimeout(this._holdTimeout),V(document,{touchmove:this._onMove,touchend:this._onUp},this),this._fireClick&&e&&e.changedTouches){var t=e.changedTouches[0],i=t.target;i&&i.tagName&&"a"===i.tagName.toLowerCase()&&ue(i,"leaflet-active"),this._simulateEvent("mouseup",t),this._isTapValid()&&this._simulateEvent("click",t)}},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_onMove:function(e){var t=e.touches[0];this._newPos=new v(t.clientX,t.clientY),this._simulateEvent("mousemove",t)},_simulateEvent:function(e,t){var i=document.createEvent("MouseEvents");i._simulated=!0,t.target._simulatedClick=!0,i.initMouseEvent(e,!0,!0,window,1,t.screenX,t.screenY,t.clientX,t.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(i)}});Rt&&!$t&&pi.addInitHook("addHandler","tap",ya),pi.mergeOptions({touchZoom:Rt&&!yt,bounceAtZoomLimits:!0});var va=xi.extend({addHooks:function(){de(this._map._container,"leaflet-touch-zoom"),N(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){ue(this._map._container,"leaflet-touch-zoom"),V(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(e){var t=this._map;if(e.touches&&2===e.touches.length&&!t._animatingZoom&&!this._zooming){var i=t.mouseEventToContainerPoint(e.touches[0]),a=t.mouseEventToContainerPoint(e.touches[1]);this._centerPoint=t.getSize()._divideBy(2),this._startLatLng=t.containerPointToLatLng(this._centerPoint),"center"!==t.options.touchZoom&&(this._pinchStartLatLng=t.containerPointToLatLng(i.add(a)._divideBy(2))),this._startDist=i.distanceTo(a),this._startZoom=t.getZoom(),this._moved=!1,this._zooming=!0,t._stop(),N(document,"touchmove",this._onTouchMove,this),N(document,"touchend",this._onTouchEnd,this),H(e)}},_onTouchMove:function(e){if(e.touches&&2===e.touches.length&&this._zooming){var t=this._map,a=t.mouseEventToContainerPoint(e.touches[0]),n=t.mouseEventToContainerPoint(e.touches[1]),o=a.distanceTo(n)/this._startDist;if(this._zoom=t.getScaleZoom(o,this._startZoom),!t.options.bounceAtZoomLimits&&(this._zoom<t.getMinZoom()&&o<1||this._zoom>t.getMaxZoom()&&o>1)&&(this._zoom=t._limitZoom(this._zoom)),"center"===t.options.touchZoom){if(this._center=this._startLatLng,1===o)return}else{var r=a._add(n)._divideBy(2)._subtract(this._centerPoint);if(1===o&&0===r.x&&0===r.y)return;this._center=t.unproject(t.project(this._pinchStartLatLng,this._zoom).subtract(r),this._zoom)}this._moved||(t._moveStart(!0,!1),this._moved=!0),g(this._animRequest);var s=i(t._move,t,this._center,this._zoom,{pinch:!0,round:!1});this._animRequest=_(s,this,!0),H(e)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,g(this._animRequest),V(document,"touchmove",this._onTouchMove),V(document,"touchend",this._onTouchEnd),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))):this._zooming=!1}});pi.addInitHook("addHandler","touchZoom",va),pi.BoxZoom=ma,pi.DoubleClickZoom=pa,pi.Drag=fa,pi.Keyboard=_a,pi.ScrollWheelZoom=ga,pi.Tap=ya,pi.TouchZoom=va;var wa=window.L;window.L=e,Object.freeze=Ze,e.version="1.3.1",e.noConflict=function(){return window.L=wa,this},e.Control=fi,e.control=_i,e.Browser=Zt,e.Evented=tt,e.Mixin=ki,e.Util=Qe,e.Class=y,e.Handler=xi,e.extend=t,e.bind=i,e.stamp=a,e.setOptions=u,e.DomEvent=oi,e.DomUtil=ci,e.PosAnimation=mi,e.Draggable=zi,e.LineUtil=Pi,e.PolyUtil=Mi,e.Point=v,e.point=w,e.Bounds=x,e.bounds=b,e.Transformation=z,e.transformation=P,e.Projection=Ii,e.LatLng=T,e.latLng=C,e.LatLngBounds=k,e.latLngBounds=S,e.CRS=at,e.GeoJSON=Hi,e.geoJSON=Oe,e.geoJson=Xi,e.Layer=$i,e.LayerGroup=Ri,e.layerGroup=function(e,t){return new Ri(e,t)},e.FeatureGroup=Bi,e.featureGroup=function(e){return new Bi(e)},e.ImageOverlay=Ji,e.imageOverlay=function(e,t,i){return new Ji(e,t,i)},e.VideoOverlay=Yi,e.videoOverlay=function(e,t,i){return new Yi(e,t,i)},e.DivOverlay=Qi,e.Popup=ea,e.popup=function(e,t){return new ea(e,t)},e.Tooltip=ta,e.tooltip=function(e,t){return new ta(e,t)},e.Icon=Fi,e.icon=function(e){return new Fi(e)},e.DivIcon=ia,e.divIcon=function(e){return new ia(e)},e.Marker=Vi,e.marker=function(e,t){return new Vi(e,t)},e.TileLayer=na,e.tileLayer=Ne,e.GridLayer=aa,e.gridLayer=function(e){return new aa(e)},e.SVG=ha,e.svg=Ue,e.Renderer=ra,e.Canvas=sa,e.canvas=Ve,e.Path=Ui,e.CircleMarker=Zi,e.circleMarker=function(e,t){return new Zi(e,t)},e.Circle=qi,e.circle=function(e,t,i){return new qi(e,t,i)},e.Polyline=Gi,e.polyline=function(e,t){return new Gi(e,t)},e.Polygon=Wi,e.polygon=function(e,t){return new Wi(e,t)},e.Rectangle=ca,e.rectangle=function(e,t){return new ca(e,t)},e.Map=pi,e.map=function(e,t){return new pi(e,t)}})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).maplibregl=t()}(this,(function(){"use strict";var e,t,i;function a(a,n){if(e)if(t){var o="var sharedChunk = {}; ("+e+")(sharedChunk); ("+t+")(sharedChunk);",r={};e(r),i=n(r),"undefined"!=typeof window&&(i.workerUrl=window.URL.createObjectURL(new Blob([o],{type:"text/javascript"})))}else t=n;else e=n}return a(0,(function(e){function t(e,t,i,a){return new(i||(i=Prom
vendor: 4,103 bytes, line 5
5ise))((function(n,o){function r(e){try{l(a.next(e))}catch(e){o(e)}}function s(e){try{l(a.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,s)}l((a=a.apply(e,t||[])).next())}))}function i(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}"function"==typeof SuppressedError&&SuppressedError;var a=n;function n(e,t){this.x=e,this.y=t}n.prototype={clone:function(){return new n(this.x,this.y)},add:function(e){return this.clone()._add(e)},sub:function(e){return this.clone()._sub(e)},multByPoint:function(e){return this.clone()._multByPoint(e)},divByPoint:function(e){return this.clone()._divByPoint(e)},mult:function(e){return this.clone()._mult(e)},div:function(e){return this.clone()._div(e)},rotate:function(e){return this.clone()._rotate(e)},rotateAround:function(e,t){return this.clone()._rotateAround(e,t)},matMult:function(e){return this.clone()._matMult(e)},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(e){return this.x===e.x&&this.y===e.y},dist:function(e){return Math.sqrt(this.distSqr(e))},distSqr:function(e){var t=e.x-this.x,i=e.y-this.y;return t*t+i*i},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(e){return Math.atan2(this.y-e.y,this.x-e.x)},angleWith:function(e){return this.angleWithSep(e.x,e.y)},angleWithSep:function(e,t){return Math.atan2(this.x*t-this.y*e,this.x*e+this.y*t)},_matMult:function(e){var t=e[2]*this.x+e[3]*this.y;return this.x=e[0]*this.x+e[1]*this.y,this.y=t,this},_add:function(e){return this.x+=e.x,this.y+=e.y,this},_sub:function(e){return this.x-=e.x,this.y-=e.y,this},_mult:function(e){return this.x*=e,this.y*=e,this},_div:function(e){return this.x/=e,this.y/=e,this},_multByPoint:function(e){return this.x*=e.x,this.y*=e.y,this},_divByPoint:function(e){return this.x/=e.x,this.y/=e.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var e=this.y;return this.y=this.x,this.x=-e,this},_rotate:function(e){var t=Math.cos(e),i=Math.sin(e),a=i*this.x+t*this.y;return this.x=t*this.x-i*this.y,this.y=a,this},_rotateAround:function(e,t){var i=Math.cos(e),a=Math.sin(e),n=t.y+a*(this.x-t.x)+i*(this.y-t.y);return this.x=t.x+i*(this.x-t.x)-a*(this.y-t.y),this.y=n,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},n.convert=function(e){return e instanceof n?e:Array.isArray(e)?new n(e[0],e[1]):e};var o=i(a),r=s;function s(e,t,i,a){this.cx=3*e,this.bx=3*(i-e)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*t,this.by=3*(a-t)-this.cy,this.ay=1-this.cy-this.by,this.p1x=e,this.p1y=t,this.p2x=i,this.p2y=a}s.prototype={sampleCurveX:function(e){return((this.ax*e+this.bx)*e+this.cx)*e},sampleCurveY:function(e){return((this.ay*e+this.by)*e+this.cy)*e},sampleCurveDerivativeX:function(e){return(3*this.ax*e+2*this.bx)*e+this.cx},solveCurveX:function(e,t){if(void 0===t&&(t=1e-6),e<0)return 0;if(e>1)return 1;for(var i=e,a=0;a<8;a++){var n=this.sampleCurveX(i)-e;if(Math.abs(n)<t)return i;var o=this.sampleCurveDerivativeX(i);if(Math.abs(o)<1e-6)break;i-=n/o}var r=0,s=1;for(i=e,a=0;a<20&&(n=this.sampleCurveX(i),!(Math.abs(n-e)<t));a++)e>n?r=i:s=i,i=.5*(s-r)+r;return i},solve:function(e,t){return this.sampleCurveY(this.solveCurveX(e,t))}};var l=i(r);let d,u;function h(){return null==d&&(d="undefined"!=typeof OffscreenCanvas&&new OffscreenCanvas(1,1).getContext("2d")&&"function"==typeof createImageBitmap),d}function c(){if(null==u&&(u=!1,h())){const e=5,t=new OffscreenCanvas(e,e).getContext("2d",{willReadFrequently:!0});if(t){for(let i=0;i<e*e;i++){const a=4*i;t.fillStyle=`rgb(${a},${a+1},${a+2})`,t.fillRect(i%e,Math.floor(i/e),1,1)}const i=t.getImageData(0,0,e,e).data;for(let t=0;t<e*e*4;t++)if(t%4!=3&&i[t]!==t){u=!0;break}}}return u||!1}function m(e,t,i,a){const n=new l(e,t,i,a);return function(e){return n.solve(e)}}const p=m(.25,.1,.25,1);function f(e,t,i){return Math.min(i,Math.max(t,e))}
5function _(e,t,i){const a=i-t,n=((e-t)%a+a)%a+t;return n===t?i:n}function g(e,...t){for(const i of t)for(const t in i)e[t]=i[t];return e}let y=1;function v(e,t,i){const a={};for(const n in e)a[n]=t.call(i||this,e[n],n,e);return a}function w(e,t,i){const a={};for(const n in e)t.call(i||this,e[n],n,e)&&(a[n]=e[n]);return a}function x(e){return Array.isArray(e)?e.map(x):"object"==typeof e&&e?v(e,x):e}const b={};function k(e){b[e]||("undefined"!=typeof console&&console.warn(e),b[e]=!0)}function S(e,t,i){return(i.y-e.y)*(t.x-e.x)>(t.y-e.y)*(i.x-e.x)}function T(e){let t=0;for(let i,a,n=0,o=e.length,r=o-1;n<o;r=n++)i=e[n],a=e[r],t+=(a.x-i.x)*(i.y+a.y);return t}function C(){return"undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof self&&self instanceof WorkerGlobalScope}let z=null;function P(e){return"undefined"!=typeof ImageBitmap&&e instanceof ImageBitmap}const M="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";function L(e,i,a,n,o){return t(this,void 0,void 0,(function*(){if("undefined"==typeof VideoFrame)throw new Error("VideoFrame not supported");const t=new VideoFrame(e,{timestamp:0});try{const r=null==t?void 0:t.format;if(!r||!r.startsWith("BGR")&&!r.startsWith("RGB"))throw new Error(`Unrecognized format ${r}`);const s=r.startsWith("BGR"),l=new Uint8ClampedArray(n*o*4);if(yield t.copyTo(l,function(e,t,i,a,n){const o=4*Math.max(-t,0),r=(Math.max(0,i)-i)*a*4+o,s=4*a,l=Math.max(0,t),d=Math.max(0,i);return{rect:{x:l,y:d,width:Math.min(e.width,t+a)-l,height:Math.min(e.height,i+n)-d},layout:[{offset:r,stride:s}]}}(e,i,a,n,o)),s)for(let e=0;e<l.length;e+=4){const t=l[e];l[e]=l[e+2],l[e+2]=t}return l}finally{t.close()}}))}let A,I,E,D;const j={now:"undefined"!=typeof performance&&performance&&performance.now?performance.now.bind(performance):Date.now.bind(Date),frame(e){const t=requestAnimationFrame(e);return{cancel:()=>cancelAnimationFrame(t)}},getImageData(e,t=0){return this.getImageCanvasContext(e).getImageData(-t,-t,e.width+2*t,e.height+2*t)},getImageCanvasContext(e){const t=window.document.createElement("canvas"),i=t.getContext("2d",{willReadFrequently:!0});if(!i)throw new Error("failed to create canvas 2d context");return t.width=e.width,t.height=e.height,i.drawImage(e,0,0,e.width,e.height),i},resolveURL:e=>(E||(E=document.createElement("a")),E.href=e,E.href),hardwareConcurrency:"undefined"!=typeof navigator&&navigator.hardwareConcurrency||4,get prefersReducedMotion(){return!!matchMedia&&(null==D&&(D=matchMedia("(prefers-reduced-motion: reduce)")),D.matches)}},$={MAX_PARALLEL_IMAGE_REQUESTS:16,MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME:8,MAX_TILE_CACHE_ZOOM_LEVELS:5,REGISTERED_PROTOCOLS:{},WORKER_URL:""};class R extends Error{constructor(e,t,i,a){super(`AJAXError: ${t} (${e}): ${i}`),this.status=e,this.statusText=t,this.url=i,this.body=a}}const B=C()?()=>self.worker&&self.worker.referrer:()=>("blob:"===window.location.protocol?window.parent:window).location.href,F=e=>$.REGISTERED_PROTOCOLS[e.substring(0,e.indexOf("://"))];function O(e,t){const i=new AbortController,a=new Request(e.url,{method:e.method||"GET",body:e.body,credentials:e.credentials,headers:e.headers,cache:e.cache,referrer:B(),signal:i.signal});let n=!1,o=!1;return"json"===e.type&&a.headers.set("Accept","application/json"),o||fetch(a).then((i=>i.ok?(i=>{("arrayBuffer"===e.type||"image"===e.type?i.arrayBuffer():"json"===e.type?i.json():i.text()).then((e=>{o||(n=!0,t(null,e,i.headers.get("Cache-Control"),i.headers.get("Expires")))})).catch((e=>{o||t(new Error(e.message))}))})(i):i.blob().then((a=>t(new R(i.status,i.statusText,e.url,a)))))).catch((e=>{20!==e.code&&t(new Error(e.message))})),{cancel:()=>{o=!0,n||i.abort()}}}const N=function(e,t){if(/:\/\//.test(e.url)&&!/^https?:|^file:/.test(e.url)){if(C()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",e,t);if(!C())return(F(e.url)||O)(e,t)}if(!(/^file:/.test(i=e.url)||/^file:/.test(B())&&!/^\w+:/.test(i))){if(fetch&&Request&&AbortController&&Object.prototype.hasOwnProperty.call(Request.prototype,"signal"))return O(e,t);if(C()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",e,t,void 0,!0)}var i;return function(e,t){const i=new XMLHttpRequest;i.open(e.method||"GET",e.url,!0),"arrayBuffer"!==e.type&&"image"!==e.type||(i.responseType="arraybuffer");for(const t in e.headers)i.setRequestHeader(t,e.headers[t]);return"json"===e.type&&(i.responseType="text",i.setRequestHeader("Accept","application/json")),i.withCredentials="include"===e.credentials,i.onerror=()=>{t(new Error(i.statusText))},i.onload=()=>
vendor: 2,377 bytes, line 5
5{if((i.status>=200&&i.status<300||0===i.status)&&null!==i.response){let a=i.response;if("json"===e.type)try{a=JSON.parse(i.response)}catch(e){return t(e)}t(null,a,i.getResponseHeader("Cache-Control"),i.getResponseHeader("Expires"))}else{const a=new Blob([i.response],{type:i.getResponseHeader("Content-Type")});t(new R(i.status,i.statusText,e.url,a))}},i.send(e.body),{cancel:()=>i.abort()}}(e,t)},V=function(e,t){return N(g(e,{type:"arrayBuffer"}),t)};function U(e){if(!e||e.indexOf("://")<=0||0===e.indexOf("data:image/")||0===e.indexOf("blob:"))return!0;const t=new URL(e),i=window.location;return t.protocol===i.protocol&&t.host===i.host}function Z(e,t,i){i[e]&&-1!==i[e].indexOf(t)||(i[e]=i[e]||[],i[e].push(t))}function q(e,t,i){if(i&&i[e]){const a=i[e].indexOf(t);-1!==a&&i[e].splice(a,1)}}class G{constructor(e,t={}){g(this,t),this.type=e}}class W extends G{constructor(e,t={}){super("error",g({error:e},t))}}class H{on(e,t){return this._listeners=this._listeners||{},Z(e,t,this._listeners),this}off(e,t){return q(e,t,this._listeners),q(e,t,this._oneTimeListeners),this}once(e,t){return t?(this._oneTimeListeners=this._oneTimeListeners||{},Z(e,t,this._oneTimeListeners),this):new Promise((t=>this.once(e,t)))}fire(e,t){"string"==typeof e&&(e=new G(e,t||{}));const i=e.type;if(this.listens(i)){e.target=this;const t=this._listeners&&this._listeners[i]?this._listeners[i].slice():[];for(const i of t)i.call(this,e);const a=this._oneTimeListeners&&this._oneTimeListeners[i]?this._oneTimeListeners[i].slice():[];for(const t of a)q(i,t,this._oneTimeListeners),t.call(this,e);const n=this._eventedParent;n&&(g(e,"function"==typeof this._eventedParentData?this._eventedParentData():this._eventedParentData),n.fire(e))}else e instanceof W&&console.error(e.error);return this}listens(e){return this._listeners&&this._listeners[e]&&this._listeners[e].length>0||this._oneTimeListeners&&this._oneTimeListeners[e]&&this._oneTimeListeners[e].length>0||this._eventedParent&&this._eventedParent.listens(e)}setEventedParent(e,t){return this._eventedParent=e,this._eventedParentData=t,this}}var K={$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
vendor: 7,595 bytes, line 5
5"},terrain:{type:"terrain"},sources:{required:!0,type:"sources"},sprite:{type:"sprite"},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"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{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"},volatile:{type:"boolean",default:!1},"*":{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:{},custom:{}},default:"mapbox"},redFactor:{type:"number",default:1},blueFactor:{type:"number",default:1},greenFactor:{type:"number",default:1},baseShift:{type:"number",default:0},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{required:!0,type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},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",{"!":"icon-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},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:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"}
vendor: 21,868 bytes, line 5
5,"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:"padding",default:[2],units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"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:{},"viewport-glyph":{},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-variable-anchor-offset":{type:"variableAnchorOffsetCollection",requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"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"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field",{"!":"text-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},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:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},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:24,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},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}},terrain:{source:{type:"string",required:!0},exaggeration:{type:"number",minimum:0,default:1}},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:"resolvedImage",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:"resolvedImage",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:"resolvedImage",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:"resolvedImage",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"}},promoteId:{"*":{type:"string"}}};const 
vendor: 17,208 bytes, line 5
5X=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function J(e,t){const i={};for(const t in e)"ref"!==t&&(i[t]=e[t]);return X.forEach((e=>{e in t&&(i[e]=t[e])})),i}function Y(e,t){if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let i=0;i<e.length;i++)if(!Y(e[i],t[i]))return!1;return!0}if("object"==typeof e&&null!==e&&null!==t){if("object"!=typeof t)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const i in e)if(!Y(e[i],t[i]))return!1;return!0}return e===t}const Q={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 ee(e,t,i){i.push({command:Q.addSource,args:[e,t[e]]})}function te(e,t,i){t.push({command:Q.removeSource,args:[e]}),i[e]=!0}function ie(e,t,i,a){te(e,i,a),ee(e,t,i)}function ae(e,t,i){let a;for(a in e[i])if(Object.prototype.hasOwnProperty.call(e[i],a)&&"data"!==a&&!Y(e[i][a],t[i][a]))return!1;for(a in t[i])if(Object.prototype.hasOwnProperty.call(t[i],a)&&"data"!==a&&!Y(e[i][a],t[i][a]))return!1;return!0}function ne(e,t,i,a,n,o){let r;for(r in t=t||{},e=e||{})Object.prototype.hasOwnProperty.call(e,r)&&(Y(e[r],t[r])||i.push({command:o,args:[a,r,t[r],n]}));for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&!Object.prototype.hasOwnProperty.call(e,r)&&(Y(e[r],t[r])||i.push({command:o,args:[a,r,t[r],n]}))}function oe(e){return e.id}function re(e,t){return e[t.id]=t,e}class se{constructor(e,t,i,a){this.message=(e?`${e}: `:"")+i,a&&(this.identifier=a),null!=t&&t.__line__&&(this.line=t.__line__)}}function le(e,...t){for(const i of t)for(const t in i)e[t]=i[t];return e}class de extends Error{constructor(e,t){super(t),this.message=t,this.key=e}}class ue{constructor(e,t=[]){this.parent=e,this.bindings={};for(const[e,i]of t)this.bindings[e]=i}concat(e){return new ue(this,e)}get(e){if(this.bindings[e])return this.bindings[e];if(this.parent)return this.parent.get(e);throw new Error(`${e} not found in scope.`)}has(e){return!!this.bindings[e]||!!this.parent&&this.parent.has(e)}}const he={kind:"null"},ce={kind:"number"},me={kind:"string"},pe={kind:"boolean"},fe={kind:"color"},_e={kind:"object"},ge={kind:"value"},ye={kind:"collator"},ve={kind:"formatted"},we={kind:"padding"},xe={kind:"resolvedImage"},be={kind:"variableAnchorOffsetCollection"};function ke(e,t){return{kind:"array",itemType:e,N:t}}function Se(e){if("array"===e.kind){const t=Se(e.itemType);return"number"==typeof e.N?`array<${t}, ${e.N}>`:"value"===e.itemType.kind?"array":`array<${t}>`}return e.kind}const Te=[he,ce,me,pe,fe,ve,_e,ke(ge),we,xe,be];function Ce(e,t){if("error"===t.kind)return null;if("array"===e.kind){if("array"===t.kind&&(0===t.N&&"value"===t.itemType.kind||!Ce(e.itemType,t.itemType))&&("number"!=typeof e.N||e.N===t.N))return null}else{if(e.kind===t.kind)return null;if("value"===e.kind)for(const e of Te)if(!Ce(e,t))return null}return`Expected ${Se(e)} but found ${Se(t)} instead.`}function ze(e,t){return t.some((t=>t.kind===e.kind))}function Pe(e,t){return t.some((t=>"null"===t?null===e:"array"===t?Array.isArray(e):"object"===t?e&&!Array.isArray(e)&&"object"==typeof e:t===typeof e))}function Me(e,t){return"array"===e.kind&&"array"===t.kind?e.itemType.kind===t.itemType.kind&&"number"==typeof e.N:e.kind===t.kind}const Le=.96422,Ae=.82521,Ie=4/29,Ee=6/29,De=3*Ee*Ee,je=Ee*Ee*Ee,$e=Math.PI/180,Re=180/Math.PI;function Be(e){return(e%=360)<0&&(e+=360),e}function Fe([e,t,i,a]){let n,o;const r=Ne((.2225045*(e=Oe(e))+.7168786*(t=Oe(t))+.0606169*(i=Oe(i)))/1);e===t&&t===i?n=o=r:(n=Ne((.4360747*e+.3850649*t+.1430804*i)/Le),o=Ne((.0139322*e+.0971045*t+.7141733*i)/Ae));const s=116*r-16;return[s<0?0:s,500*(n-r),200*(r-o),a]}function Oe(e){return e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Ne(e){return e>je?Math.pow(e,1/3):e/De+Ie}function Ve([e,t,i,a]){let n=(e+16)/116,o=isNaN(t)?n:n+t/500,r=isNaN(i)?n:n-i/200;return n=1*Ze(n),o=Le*Ze(o),r=Ae*Ze(r),[Ue(3.1338561*o-1.6168667*n-.4906146*r),Ue(-.9787684*o+1.9161415*n+.033454*r),Ue(.0719453*o-.2289914*n+1.4052427*r),a]}function Ue(e){return(e=e<=.00304?12.92*e:1.055*Math.pow(e,1/2.4)-.055)<0?0:e>1?1:e}function Ze(e){return e>Ee?e*e*e:De*(e-Ie)}function qe(e){return parseInt(e.padEnd(2,e),16)/255}function Ge(e,t){return We(t?e/100:e,0,1)}function We(e,t,i){return Math.min(Math.max(t,e),i)}function He(e){return!e.some(Number.isNaN)}const Ke={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};class Xe{constructor(e,t,i,a=1,n=!0){this.r=e,this.g=t,this.b=i,this.a=a,n||(this.r*=a,this.g*=a,this.b*=a,a||this.overwriteGetter("rgb",[e,t,i,a]))}static parse(e){if(e instanceof Xe)return e;if("string"!=typeof e)return;const t=function(e){if("transparent"===(e=e.toLowerCase().trim()))return[0,0,0,0];const t=Ke[e];if(t){const[e,i,a]=t;return[e/255,i/255,a/255,1]}if(e.startsWith("#")&&/^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/.test(e)){const t=e.length<6?1:2;let i=1;return[qe(e.slice(i,i+=t)),qe(e.slice(i,i+=t)),qe(e.slice(i,i+=t)),qe(e.slice(i,i+t)||"ff")]}if(e.startsWith("rgb")){const t=e.match(/^rgba?\(\s*([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(t){const[e,i,a,n,o,r,s,l,d,u,h,c]=t,m=[n||" ",s||" ",u].join("");if("  "===m||"  /"===m||",,"===m||",,,"===m){const e=[a,r,d].join(""),t="%%%"===e?100:""===e?255:0;if(t){const e=[We(+i/t,0,1),We(+o/t,0,1),We(+l/t,0,1),h?Ge(+h,c):1];if(He(e))return e}}return}}const i=e.match(/^hsla?\(\s*([\de.+-]+)(?:deg)?(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(i){const[e,t,a,n,o,r,s,l,d]=i,u=[a||" ",o||" ",s].join("");if("  "===u||"  /"===u||",,"===u||",,,"===u){const e=[+t,We(+n,0,100),We(+r,0,100),l?Ge(+l,d):1];if(He(e))return function([e,t,i,a]){function n(a){const n=(a+e/30)%12,o=t*Math.min(i,1-i);return i-o*Math.max(-1,Math.min(n-3,9-n,1))}return e=Be(e),t/=100,i/=100,[n(0),n(8),n(4),a]}(e)}}}(e);return t?new Xe(...t,!1):void 0}get rgb(){const{r:e,g:t,b:i,a:a}=this,n=a||1/0;return this.overwriteGetter("rgb",[e/n,t/n,i/n,a])}get hcl(){return this.overwriteGetter("hcl",function(e){const[t,i,a,n]=Fe(e),o=Math.sqrt(i*i+a*a);return[Math.round(1e4*o)?Be(Math.atan2(a,i)*Re):NaN,o,t,n]}(this.rgb))}get lab(){return this.overwriteGetter("lab",Fe(this.rgb))}overwriteGetter(e,t){return Object.defineProperty(this,e,{value:t}),t}toString(){const[e,t,i,a]=this.rgb;return`rgba(${[e,t,i].map((e=>Math.round(255*e))).join(",")},${a})`}}Xe.black=new Xe(0,0,0,1),Xe.white=new Xe(1,1,1,1),Xe.transparent=new Xe(0,0,0,0),Xe.red=new Xe(1,0,0,1);class Je{constructor(e,t,i){this.sensitivity=e?t?"variant":"case":t?"accent":"base",this.locale=i,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(e,t){return this.collator.compare(e,t)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}class Ye{constructor(e,t,i,a,n){this.text=e,this.image=t,this.scale=i,this.fontStack=a,this.textColor=n}}class Qe{constructor(e){this.sections=e}static fromString(e){return new Qe([new Ye(e,null,null,null,null)])}isEmpty(){return 0===this.sections.length||!this.sections.some((e=>0!==e.text.length||e.image&&0!==e.image.name.length))}static factory(e){return e instanceof Qe?e:Qe.fromString(e)}toString(){return 0===this.sections.length?"":this.sections.map((e=>e.text)).join("")}}class et{constructor(e){this.values=e.slice()}static parse(e){if(e instanceof et)return e;if("number"==typeof e)return new et([e,e,e,e]);if(Array.isArray(e)&&!(e.length<1||e.length>4)){for(const t of e)if("number"!=typeof t)return;switch(e.length){case 1:e=[e[0],e[0],e[0],e[0]];break;case 2:e=[e[0],e[1],e[0],e[1]];break;case 3:e=[e[0],e[1],e[2],e[1]]}return new et(e)}}toString(){return JSON.stringify(this.values)}}const tt=new Set(["center","left","right","top","bottom","top-left","top-right","bottom-left","bottom-right"]);class it{constructor(e){this.values=e.slice()}static parse(e){if(e instanceof it)return e;if(Array.isArray(e)&&!(e.length<1)&&e.length%2==0){for(let t=0;t<e.length;t+=2){const i=e[t],a=e[t+1];if("string"!=typeof i||!tt.has(i))return;if(!Array.isArray(a)||2!==a.length||"number"!=typeof a[0]||"number"!=typeof a[1])return}return new it(e)}}toString(){return JSON.stringify(this.values)}}class at{constructor(e){this.name=e.name,this.available=e.available}toString(){return this.name}static fromString(e){return e?new at({name:e,available:!1}):null}}function nt(e,t,i,a){return"number"==typeof e&&e>=0&&e<=255&&"number"==typeof t&&t>=0&&t<=255&&"number"==typeof i&&i>=0&&i<=255?void 0===a||"number"==typeof a&&a>=0&&a<=1?null:`Invalid rgba value [${[e,t,i,a].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${("number"==typeof a?[e,t,i,a]:[e,t,i]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function ot(e){if(null===e||"string"==typeof e||"boolean"==typeof e||"number"==typeof e||e instanceof Xe||e instanceof Je||e instanceof Qe||e instanceof et||e instanceof it||e instanceof at)return!0;if(Array.isArray(e)){for(const t of e)if(!ot(t))return!1;return!0}if("object"==typeof e){for(const t in e)if(!ot(e[t]))return!1;return!0}return!1}function rt(e){if(null===e)return he;if("string"==typeof e)return me;if("boolean"==typeof e)return pe;if("number"==typeof e)return ce;if(e instanceof Xe)return fe;if(e instanceof Je)return ye;if(e instanceof Qe)return ve;if(e instanceof et)return we;if(e instanceof it)return be;if(e instanceof at)return xe;if(Array.isArray(e)){const t=e.length;let i;for(const t of e){const e=rt(t);if(i){if(i===e)continue;i=ge;break}i=e}return ke(i||ge,t)}return _e}function st(e){const t=typeof e;return null===e?"":"string"===t||"number"===t||"boolean"===t?String(e):e instanceof Xe||e instanceof Qe||e instanceof et||e instanceof it||e instanceof at?e.toString():JSON.stringify(e)}class lt{constructor(e,t){this.type=e,this.value=t}static parse(e,t){if(2!==e.length)return t.error(`'literal' expression requires exactly one argument, but found ${e.length-1} instead.`);if(!ot(e[1]))return t.error("invalid value");const i=e[1];let a=rt(i);const n=t.expectedType;return"array"!==a.kind||0!==a.N||!n||"array"!==n.kind||"number"==typeof n.N&&0!==n.N||(a=n),new lt(a,i)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}}class dt{constructor(e){this.name="ExpressionEvaluationError",this.message=e}toJSON(){return this.message}}const ut={string:me,number:ce,boolean:pe,object:_e};class ht{constructor(e,t){this.type=e,this.args=t}static parse(e,t){if(e.length<2)return t.error("Expected at least one argument.");let i,a=1;const n=e[0];if("array"===n){let n,o;if(e.length>2){const i=e[1];if("string"!=typeof i||!(i in ut)||"object"===i)return t.error('The item type argument of "array" must be one of string, number, boolean',1);n=ut[i],a++}else n=ge;if(e.length>3){if(null!==e[2]&&("number"!=typeof e[2]||e[2]<0||e[2]!==Math.floor(e[2])))return t.error('The length argument to "array" must be a positive integer literal',2);o=e[2],a++}i=ke(n,o)}else{if(!ut[n])throw new Error(`Types doesn't contain name = ${n}`);i=ut[n]}const o=[];for(;a<e.length;a++){const i=t.parse(e[a],a,ge);if(!i)return null;o.push(i)}return new ht(i,o)}evaluate(e){for(let t=0;t<this.args.length;t++){const i=this.args[t].evaluate(e);if(!Ce(this.type,rt(i)))return i;if(t===this.args.length-1)throw new dt(`Expected value to be of type ${Se(this.type)}, but found ${Se(rt(i))} instead.`)}throw new Error}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every((e=>e.outputDefined()))}}const ct={"to-boolean":pe,"to-color":fe,"to-number":ce,"to-string":me};class mt{constructor(e,t){this.type=e,this.args=t}static parse(e,t){if(e.length<2)return t.error("Expected at least one argument.");const i=e[0];if(!ct[i])throw new Error(`Can't parse ${i} as it is not part of the known types`);if(("to-boolean"===i||"to-string"===i)&&2!==e.length)return t.error("Expected one argument.");const a=ct[i],n=[];for(let i=1;i<e.length;i++){const a=t.parse(e[i],i,ge);if(!a)return null;n.push(a)}return new mt(a,n)}evaluate(e){switch(this.type.kind){case"boolean":return Boolean(this.args[0].evaluate(e));case"color":{let t,i;for(const a of this.args){if(t=a.evaluate(e),i=null,t instanceof Xe)return t;if("string"==typeof t){const i=e.parseColor(t);if(i)return i}else if(Array.isArray(t)&&(i=t.length<3||t.length>4?`Invalid rbga value ${JSON.stringify(t)}: expected an array containing either three or four numeric values.`:nt(t[0],t[1],t[2],t[3]),!i))return new Xe(t[0]/255,t[1]/255,t[2]/255,t[3])}throw new dt(i||`Could not parse color from value '${"string"==typeof t?t:JSON.stringify(t)}'`)}case"padding":{let t;for(const i of this.args){t=i.evaluate(e);const a=et.parse(t);if(a)return a}throw new dt(`Could not parse padding from value '${"string"==typeof t?t:JSON.stringify(t)}'`)}case"variableAnchorOffsetCollection":{let t;for(const i of this.args){t=i.evaluate(e);const a=it.parse(t);if(a)return a}throw new dt(`Could not parse variableAnchorOffsetCollection from value '${"string"==typeof t?t:JSON.stringify(t)}'`)}case"number":{let t=null;for(const i of this.args){if(t=i.evaluate(e),null===t)return 0;const a=Number(t);if(!isNaN(a))return a}throw new dt(`Could not convert ${JSON.stringify(t)} to number.`)}case"formatted":return Qe.fromString(st(this.args[0].evaluate(e)));case"resolvedImage":return at.fromString(st(this.args[0].evaluate(e)));default:return st(this.args[0].evaluate(e))}}
vendor: 7,047 bytes, line 5
5eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every((e=>e.outputDefined()))}}const pt=["Unknown","Point","LineString","Polygon"];class ft{constructor(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null}id(){return this.feature&&"id"in this.feature?this.feature.id:null}geometryType(){return this.feature?"number"==typeof this.feature.type?pt[this.feature.type]:this.feature.type:null}geometry(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null}canonicalID(){return this.canonical}properties(){return this.feature&&this.feature.properties||{}}parseColor(e){let t=this._parseColorCache[e];return t||(t=this._parseColorCache[e]=Xe.parse(e)),t}}class _t{constructor(e,t,i=[],a,n=new ue,o=[]){this.registry=e,this.path=i,this.key=i.map((e=>`[${e}]`)).join(""),this.scope=n,this.errors=o,this.expectedType=a,this._isConstant=t}parse(e,t,i,a,n={}){return t?this.concat(t,i,a)._parse(e,n):this._parse(e,n)}_parse(e,t){function i(e,t,i){return"assert"===i?new ht(t,[e]):"coerce"===i?new mt(t,[e]):e}if(null!==e&&"string"!=typeof e&&"boolean"!=typeof e&&"number"!=typeof e||(e=["literal",e]),Array.isArray(e)){if(0===e.length)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');const a=e[0];if("string"!=typeof a)return this.error(`Expression name must be a string, but found ${typeof a} instead. If you wanted a literal array, use ["literal", [...]].`,0),null;const n=this.registry[a];if(n){let a=n.parse(e,this);if(!a)return null;if(this.expectedType){const e=this.expectedType,n=a.type;if("string"!==e.kind&&"number"!==e.kind&&"boolean"!==e.kind&&"object"!==e.kind&&"array"!==e.kind||"value"!==n.kind)if("color"!==e.kind&&"formatted"!==e.kind&&"resolvedImage"!==e.kind||"value"!==n.kind&&"string"!==n.kind)if("padding"!==e.kind||"value"!==n.kind&&"number"!==n.kind&&"array"!==n.kind)if("variableAnchorOffsetCollection"!==e.kind||"value"!==n.kind&&"array"!==n.kind){if(this.checkSubtype(e,n))return null}else a=i(a,e,t.typeAnnotation||"coerce");else a=i(a,e,t.typeAnnotation||"coerce");else a=i(a,e,t.typeAnnotation||"coerce");else a=i(a,e,t.typeAnnotation||"assert")}if(!(a instanceof lt)&&"resolvedImage"!==a.type.kind&&this._isConstant(a)){const t=new ft;try{a=new lt(a.type,a.evaluate(t))}catch(e){return this.error(e.message),null}}return a}return this.error(`Unknown expression "${a}". If you wanted a literal array, use ["literal", [...]].`,0)}return this.error(void 0===e?"'undefined' value invalid. Use null instead.":"object"==typeof e?'Bare objects invalid. Use ["literal", {...}] instead.':`Expected an array, but found ${typeof e} instead.`)}concat(e,t,i){const a="number"==typeof e?this.path.concat(e):this.path,n=i?this.scope.concat(i):this.scope;return new _t(this.registry,this._isConstant,a,t||null,n,this.errors)}error(e,...t){const i=`${this.key}${t.map((e=>`[${e}]`)).join("")}`;this.errors.push(new de(i,e))}checkSubtype(e,t){const i=Ce(e,t);return i&&this.error(i),i}}class gt{constructor(e,t,i){this.type=ye,this.locale=i,this.caseSensitive=e,this.diacriticSensitive=t}static parse(e,t){if(2!==e.length)return t.error("Expected one argument.");const i=e[1];if("object"!=typeof i||Array.isArray(i))return t.error("Collator options argument must be an object.");const a=t.parse(void 0!==i["case-sensitive"]&&i["case-sensitive"],1,pe);if(!a)return null;const n=t.parse(void 0!==i["diacritic-sensitive"]&&i["diacritic-sensitive"],1,pe);if(!n)return null;let o=null;return i.locale&&(o=t.parse(i.locale,1,me),!o)?null:new gt(a,n,o)}evaluate(e){return new Je(this.caseSensitive.evaluate(e),this.diacriticSensitive.evaluate(e),this.locale?this.locale.evaluate(e):null)}eachChild(e){e(this.caseSensitive),e(this.diacriticSensitive),this.locale&&e(this.locale)}outputDefined(){return!1}}const yt=8192;function vt(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.max(e[2],t[0]),e[3]=Math.max(e[3],t[1])}function wt(e,t){return!(e[0]<=t[0]||e[2]>=t[2]||e[1]<=t[1]||e[3]>=t[3])}function xt(e,t){const i=(180+e[0])/360,a=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+e[1]*Math.PI/360)))/360,n=Math.pow(2,t.z);return[Math.round(i*n*yt),Math.round(a*n*yt)]}function bt(e,t,i){const a=e[0]-t[0],n=e[1]-t[1],o=e[0]-i[0],r=e[1]-i[1];return a*r-o*n==0&&a*o<=0&&n*r<=0}function kt(e,t){let i=!1;for(let r=0,s=t.length;r<s;r++){const s=t[r];for(let t=0,r=s.length;t<r-1;t++){if(bt(e,s[t],s[t+1]))return!1;(n=s[t])[1]>(a=e)[1]!=(o=s[t+1])[1]>a[1]&&a[0]<(o[0]-n[0])*(a[1]-n[1])/(o[1]-n[1])+n[0]&&(i=!i)}}var a,n,o;return i}function St(e,t){for(let i=0;i<t.length;i++)if(kt(e,t[i]))return!0;return!1}function Tt(e,t,i,a){const n=a[0]-i[0],o=a[1]-i[1],r=(e[0]-i[0])*o-n*(e[1]-i[1]),s=(t[0]-i[0])*o-n*(t[1]-i[1]);return r>0&&s<0||r<0&&s>0}function Ct(e,t,i){for(const d of i)for(let i=0;i<d.length-1;++i)if(0!=(s=[(r=d[i+1])[0]-(o=d[i])[0],r[1]-o[1]])[0]*(l=[(n=t)[0]-(a=e)[0],n[1]-a[1]])[1]-s[1]*l[0]&&Tt(a,n,o,r)&&Tt(o,r,a,n))return!0;var a,n,o,r,s,l;return!1}function zt(e,t){for(let i=0;i<e.length;++i)if(!kt(e[i],t))return!1;for(let i=0;i<e.length-1;++i)if(Ct(e[i],e[i+1],t))return!1;return!0}function Pt(e,t){for(let i=0;i<t.length;i++)if(zt(e,t[i]))return!0;return!1}function Mt(e,t,i){const a=[];for(let n=0;n<e.length;n++){const o=[];for(let a=0;a<e[n].length;a++){const r=xt(e[n][a],i);vt(t,r),o.push(r)}a.push(o)}return a}function Lt(e,t,i){const a=[];for(let n=0;n<e.length;n++){const o=Mt(e[n],t,i);a.push(o)}return a}function At(e,t,i,a){if(e[0]<i[0]||e[0]>i[2]){const t=.5*a;let n=e[0]-i[0]>t?-a:i[0]-e[0]>t?a:0;0===n&&(n=e[0]-i[2]>t?-a:i[2]-e[0]>t?a:0),e[0]+=n}vt(t,e)}function It(e,t,i,a){const n=Math.pow(2,a.z)*yt,o=[a.x*yt,a.y*yt],r=[];for(const a of e)for(const e of a){const a=[e.x+o[0],e.y+o[1]];At(a,t,i,n),r.push(a)}return r}function Et(e,t,i,a){const n=Math.pow(2,a.z)*yt,o=[a.x*yt,a.y*yt],r=[];for(const i of e){const e=[];for(const a of i){const i=[a.x+o[0],a.y+o[1]];vt(t,i),e.push(i)}r.push(e)}if(t[2]-t[0]<=n/2){(s=t)[0]=s[1]=1/0,s[2]=s[3]=-1/0;for(const e of r)for(const a of e)At(a,t,i,n)}var s;return r}class Dt{constructor(e,t){this.type=pe,this.geojson=e,this.geometries=t}static parse(e,t){if(2!==e.length)return t.error(`'within' expression requires exactly one argument, but found ${e.length-1} instead.`);if(ot(e[1])){const t=e[1];if("FeatureCollection"===t.type)for(let e=0;e<t.features.length;++e){const i=t.features[e].geometry.type;if("Polygon"===i||"MultiPolygon"===i)return new Dt(t,t.features[e].geometry)}else if("Feature"===t.type){const e=t.geometry.type;if("Polygon"===e||"MultiPolygon"===e)return new Dt(t,t.geometry)}else if("Polygon"===t.type||"MultiPolygon"===t.type)return new Dt(t,t)}return t.error("'within' expression requires valid geojson object that contains polygon geometry type.")}evaluate(e){if(null!=e.geometry()&&null!=e.canonicalID()){if("Point"===e.geometryType())return function(e,t){const i=[1/0,1/0,-1/0,-1/0],a=[1/0,1/0,-1/0,-1/0],n=e.canonicalID();
vendor: 4,576 bytes, line 5
5if("Polygon"===t.type){const o=Mt(t.coordinates,a,n),r=It(e.geometry(),i,a,n);if(!wt(i,a))return!1;for(const e of r)if(!kt(e,o))return!1}if("MultiPolygon"===t.type){const o=Lt(t.coordinates,a,n),r=It(e.geometry(),i,a,n);if(!wt(i,a))return!1;for(const e of r)if(!St(e,o))return!1}return!0}(e,this.geometries);if("LineString"===e.geometryType())return function(e,t){const i=[1/0,1/0,-1/0,-1/0],a=[1/0,1/0,-1/0,-1/0],n=e.canonicalID();if("Polygon"===t.type){const o=Mt(t.coordinates,a,n),r=Et(e.geometry(),i,a,n);if(!wt(i,a))return!1;for(const e of r)if(!zt(e,o))return!1}if("MultiPolygon"===t.type){const o=Lt(t.coordinates,a,n),r=Et(e.geometry(),i,a,n);if(!wt(i,a))return!1;for(const e of r)if(!Pt(e,o))return!1}return!0}(e,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}}class jt{constructor(e,t){this.type=t.type,this.name=e,this.boundExpression=t}static parse(e,t){if(2!==e.length||"string"!=typeof e[1])return t.error("'var' expression requires exactly one string literal argument.");const i=e[1];return t.scope.has(i)?new jt(i,t.scope.get(i)):t.error(`Unknown variable "${i}". Make sure "${i}" has been bound in an enclosing "let" expression before using it.`,1)}evaluate(e){return this.boundExpression.evaluate(e)}eachChild(){}outputDefined(){return!1}}class $t{constructor(e,t,i,a){this.name=e,this.type=t,this._evaluate=i,this.args=a}evaluate(e){return this._evaluate(e,this.args)}eachChild(e){this.args.forEach(e)}outputDefined(){return!1}static parse(e,t){const i=e[0],a=$t.definitions[i];if(!a)return t.error(`Unknown expression "${i}". If you wanted a literal array, use ["literal", [...]].`,0);const n=Array.isArray(a)?a[0]:a.type,o=Array.isArray(a)?[[a[1],a[2]]]:a.overloads,r=o.filter((([t])=>!Array.isArray(t)||t.length===e.length-1));let s=null;for(const[a,o]of r){s=new _t(t.registry,Rt,t.path,null,t.scope);const r=[];let l=!1;for(let t=1;t<e.length;t++){const i=e[t],n=Array.isArray(a)?a[t-1]:a.type,o=s.parse(i,1+r.length,n);if(!o){l=!0;break}r.push(o)}if(!l)if(Array.isArray(a)&&a.length!==r.length)s.error(`Expected ${a.length} arguments, but found ${r.length} instead.`);else{for(let e=0;e<r.length;e++){const t=Array.isArray(a)?a[e]:a.type,i=r[e];s.concat(e+1).checkSubtype(t,i.type)}if(0===s.errors.length)return new $t(i,n,o,r)}}if(1===r.length)t.errors.push(...s.errors);else{const i=(r.length?r:o).map((([e])=>{return t=e,Array.isArray(t)?`(${t.map(Se).join(", ")})`:`(${Se(t.type)}...)`;var t})).join(" | "),a=[];for(let i=1;i<e.length;i++){const n=t.parse(e[i],1+a.length);if(!n)return null;a.push(Se(n.type))}t.error(`Expected arguments of type ${i}, but found (${a.join(", ")}) instead.`)}return null}static register(e,t){$t.definitions=t;for(const i in t)e[i]=$t}}function Rt(e){if(e instanceof jt)return Rt(e.boundExpression);if(e instanceof $t&&"error"===e.name)return!1;if(e instanceof gt)return!1;if(e instanceof Dt)return!1;const t=e instanceof mt||e instanceof ht;let i=!0;return e.eachChild((e=>{i=t?i&&Rt(e):i&&e instanceof lt})),!!i&&Bt(e)&&Ot(e,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"])}function Bt(e){if(e instanceof $t){if("get"===e.name&&1===e.args.length)return!1;if("feature-state"===e.name)return!1;if("has"===e.name&&1===e.args.length)return!1;if("properties"===e.name||"geometry-type"===e.name||"id"===e.name)return!1;if(/^filter-/.test(e.name))return!1}if(e instanceof Dt)return!1;let t=!0;return e.eachChild((e=>{t&&!Bt(e)&&(t=!1)})),t}function Ft(e){if(e instanceof $t&&"feature-state"===e.name)return!1;let t=!0;return e.eachChild((e=>{t&&!Ft(e)&&(t=!1)})),t}function Ot(e,t){if(e instanceof $t&&t.indexOf(e.name)>=0)return!1;let i=!0;return e.eachChild((e=>{i&&!Ot(e,t)&&(i=!1)})),i}function Nt(e,t){const i=e.length-1;let a,n,o=0,r=i,s=0;for(;o<=r;)if(s=Math.floor((o+r)/2),a=e[s],n=e[s+1],a<=t){if(s===i||t<n)return s;o=s+1}else{if(!(a>t))throw new dt("Input is not a number.");r=s-1}return 0}class Vt{constructor(e,t,i){this.type=e,this.input=t,this.labels=[],this.outputs=[];for(const[e,t]of i)this.labels.push(e),this.outputs.push(t)}static parse(e,t){if(e.length-1<4)return t.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if((e.length-1)%2!=0)return t.error("Expected an even number of arguments.");const i=t.parse(e[1],1,ce);if(!i)return null;const a=[];let n=null;t.expectedType&&"value"!==t.expectedType.kind&&(n=t.expectedType);for(let i=1;i<e.length;i+=2){const o=1===i?-1/0:e[i],r=e[i+1],s=i,l=i+1;if("number"!=typeof o)return t.error('Input/output pairs for "step" expressions must be defined using literal numeric values (not c
5omputed expressions) for the input values.',s);if(a.length&&a[a.length-1][0]>=o)return t.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',s);const d=t.parse(r,l,n);if(!d)return null;n=n||d.type,a.push([o,d])}return new Vt(n,i,a)}evaluate(e){const t=this.labels,i=this.outputs;if(1===t.length)return i[0].evaluate(e);const a=this.input.evaluate(e);if(a<=t[0])return i[0].evaluate(e);const n=t.length;return a>=t[n-1]?i[n-1].evaluate(e):i[Nt(t,a)].evaluate(e)}eachChild(e){e(this.input);for(const t of this.outputs)e(t)}outputDefined(){return this.outputs.every((e=>e.outputDefined()))}}function Ut(e,t,i){return e+i*(t-e)}function Zt(e,t,i){return e.map(((e,a)=>Ut(e,t[a],i)))}const qt={number:Ut,color:function(e,t,i,a="rgb"){switch(a){case"rgb":{const[a,n,o,r]=Zt(e.rgb,t.rgb,i);return new Xe(a,n,o,r,!1)}case"hcl":{const[a,n,o,r]=e.hcl,[s,l,d,u]=t.hcl;let h,c;if(isNaN(a)||isNaN(s))isNaN(a)?isNaN(s)?h=NaN:(h=s,1!==o&&0!==o||(c=l)):(h=a,1!==d&&0!==d||(c=n));else{let e=s-a;s>a&&e>180?e-=360:s<a&&a-s>180&&(e+=360),h=a+i*e}const[m,p,f,_]=function([e,t,i,a]){return e=isNaN(e)?0:e*$e,Ve([i,Math.cos(e)*t,Math.sin(e)*t,a])}([h,null!=c?c:Ut(n,l,i),Ut(o,d,i),Ut(r,u,i)]);return new Xe(m,p,f,_,!1)}case"lab":{const[a,n,o,r]=Ve(Zt(e.lab,t.lab,i));return new Xe(a,n,o,r,!1)}}},array:Zt,padding:function(e,t,i){return new et(Zt(e.values,t.values,i))},variableAnchorOffsetCollection:function(e,t,i){const a=e.values,n=t.values;if(a.length!==n.length)throw new dt(`Cannot interpolate values of different length. from: ${e.toString()}, to: ${t.toString()}`);const o=[];for(let e=0;e<a.length;e+=2){if(a[e]!==n[e])throw new dt(`Cannot interpolate values containing mismatched anchors. from[${e}]: ${a[e]}, to[${e}]: ${n[e]}`);o.push(a[e]);const[t,r]=a[e+1],[s,l]=n[e+1];o.push([Ut(t,s,i),Ut(r,l,i)])}return new it(o)}};class Gt{constructor(e,t,i,a,n){this.type=e,this.operator=t,this.interpolation=i,this.input=a,this.labels=[],this.outputs=[];for(const[e,t]of n)this.labels.push(e),this.outputs.push(t)}static interpolationFactor(e,t,i,a){let n=0;if("exponential"===e.name)n=Wt(t,e.base,i,a);else if("linear"===e.name)n=Wt(t,1,i,a);else if("cubic-bezier"===e.name){const o=e.controlPoints;n=new l(o[0],o[1],o[2],o[3]).solve(Wt(t,1,i,a))}return n}static parse(e,t){let[i,a,n,...o]=e;if(!Array.isArray(a)||0===a.length)return t.error("Expected an interpolation type expression.",1);if("linear"===a[0])a={name:"linear"};else if("exponential"===a[0]){const e=a[1];if("number"!=typeof e)return t.error("Exponential interpolation requires a numeric base.",1,1);a={name:"exponential",base:e}}else{if("cubic-bezier"!==a[0])return t.error(`Unknown interpolation type ${String(a[0])}`,1,0);{const e=a.slice(1);if(4!==e.length||e.some((e=>"number"!=typeof e||e<0||e>1)))return t.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);a={name:"cubic-bezier",controlPoints:e}}}if(e.length-1<4)return t.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if((e.length-1)%2!=0)return t.error("Expected an even number of arguments.");if(n=t.parse(n,2,ce),!n)return null;const r=[];let s=null;"interpolate-hcl"===i||"interpolate-lab"===i?s=fe:t.expectedType&&"value"!==t.expectedType.kind&&(s=t.expectedType);for(let e=0;e<o.length;e+=2){const i=o[e],a=o[e+1],n=e+3,l=e+4;if("number"!=typeof i)return t.error('Input/output pairs for "interpolate" expressions must be defined using literal numeric values (not computed expressions) for the input values.',n);if(r.length&&r[r.length-1][0]>=i)return t.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',n);const d=t.parse(a,l,s);if(!d)return null;s=s||d.type,r.push([i,d])}return Me(s,ce)||Me(s,fe)||Me(s,we)||Me(s,be)||Me(s,ke(ce))?new Gt(s,i,a,n,r):t.error(`Type ${Se(s)} is not interpolatable.`)}evaluate(e){const t=this.labels,i=this.outputs;if(1===t.length)return i[0].evaluate(e);const a=this.input.evaluate(e);if(a<=t[0])return i[0].evaluate(e);const n=t.length;if(a>=t[n-1])return i[n-1].evaluate(e);const o=Nt(t,a),r=Gt.interpolationFactor(this.interpolation,a,t[o],t[o+1]),s=i[o].evaluate(e),l=i[o+1].evaluate(e);switch(this.operator){case"interpolate":return qt[this.type.kind](s,l,r);case"interpolate-hcl":return qt.color(s,l,r,"hcl");case"interpolate-lab":return qt.color(s,l,r,"lab")}}eachChild(e){e(this.input);for(const t of this.outputs)e(t)}outputDefined(){return this.outputs.every((e=>e.outputDefined()))}}function Wt(e,t,i,a){const n=a-i,o=e-i;return 0===n?0:1===t?o/n:(Math.pow(t,o)-1)/(Math.pow(t,n)-1)}class Ht{constructor(e,t){this.type=e,this.args=t}static parse(e,t){if(e.length<2)return t.error("Expectected at least one argument.");let i=null;const a=t.expectedType;a&&"value"!==a.kind&&(i=a);const n=[];for(const a of e.slice(1)){const e=t.parse(a,1+n.length,i,void 0,{typeAnnotation:"omit"});if(!e)return null;i=i||e.type,n.push(e)}if(!i)throw new Error("No output type");const o=a&&n.some((e=>Ce(a,e.type)));return new Ht(o?ge:i,n)}evaluate(e){let t,i=null,a=0;for(const n of this.args)if(a++,i=n.evaluate(e),i&&i instanceof at&&!i.available&&(t||(t=i.name),i=null,a===this.args.length&&(i=t)),null!==i)break;return i}
vendor: 4,572 bytes, line 5
5eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every((e=>e.outputDefined()))}}class Kt{constructor(e,t){this.type=t.type,this.bindings=[].concat(e),this.result=t}evaluate(e){return this.result.evaluate(e)}eachChild(e){for(const t of this.bindings)e(t[1]);e(this.result)}static parse(e,t){if(e.length<4)return t.error(`Expected at least 3 arguments, but found ${e.length-1} instead.`);const i=[];for(let a=1;a<e.length-1;a+=2){const n=e[a];if("string"!=typeof n)return t.error(`Expected string, but found ${typeof n} instead.`,a);if(/[^a-zA-Z0-9_]/.test(n))return t.error("Variable names must contain only alphanumeric characters or '_'.",a);const o=t.parse(e[a+1],a+1);if(!o)return null;i.push([n,o])}const a=t.parse(e[e.length-1],e.length-1,t.expectedType,i);return a?new Kt(i,a):null}outputDefined(){return this.result.outputDefined()}}class Xt{constructor(e,t,i){this.type=e,this.index=t,this.input=i}static parse(e,t){if(3!==e.length)return t.error(`Expected 2 arguments, but found ${e.length-1} instead.`);const i=t.parse(e[1],1,ce),a=t.parse(e[2],2,ke(t.expectedType||ge));return i&&a?new Xt(a.type.itemType,i,a):null}evaluate(e){const t=this.index.evaluate(e),i=this.input.evaluate(e);if(t<0)throw new dt(`Array index out of bounds: ${t} < 0.`);if(t>=i.length)throw new dt(`Array index out of bounds: ${t} > ${i.length-1}.`);if(t!==Math.floor(t))throw new dt(`Array index must be an integer, but found ${t} instead.`);return i[t]}eachChild(e){e(this.index),e(this.input)}outputDefined(){return!1}}class Jt{constructor(e,t){this.type=pe,this.needle=e,this.haystack=t}static parse(e,t){if(3!==e.length)return t.error(`Expected 2 arguments, but found ${e.length-1} instead.`);const i=t.parse(e[1],1,ge),a=t.parse(e[2],2,ge);return i&&a?ze(i.type,[pe,me,ce,he,ge])?new Jt(i,a):t.error(`Expected first argument to be of type boolean, string, number or null, but found ${Se(i.type)} instead`):null}evaluate(e){const t=this.needle.evaluate(e),i=this.haystack.evaluate(e);if(!i)return!1;if(!Pe(t,["boolean","string","number","null"]))throw new dt(`Expected first argument to be of type boolean, string, number or null, but found ${Se(rt(t))} instead.`);if(!Pe(i,["string","array"]))throw new dt(`Expected second argument to be of type array or string, but found ${Se(rt(i))} instead.`);return i.indexOf(t)>=0}eachChild(e){e(this.needle),e(this.haystack)}outputDefined(){return!0}}class Yt{constructor(e,t,i){this.type=ce,this.needle=e,this.haystack=t,this.fromIndex=i}static parse(e,t){if(e.length<=2||e.length>=5)return t.error(`Expected 3 or 4 arguments, but found ${e.length-1} instead.`);const i=t.parse(e[1],1,ge),a=t.parse(e[2],2,ge);if(!i||!a)return null;if(!ze(i.type,[pe,me,ce,he,ge]))return t.error(`Expected first argument to be of type boolean, string, number or null, but found ${Se(i.type)} instead`);if(4===e.length){const n=t.parse(e[3],3,ce);return n?new Yt(i,a,n):null}return new Yt(i,a)}evaluate(e){const t=this.needle.evaluate(e),i=this.haystack.evaluate(e);if(!Pe(t,["boolean","string","number","null"]))throw new dt(`Expected first argument to be of type boolean, string, number or null, but found ${Se(rt(t))} instead.`);if(!Pe(i,["string","array"]))throw new dt(`Expected second argument to be of type array or string, but found ${Se(rt(i))} instead.`);if(this.fromIndex){const a=this.fromIndex.evaluate(e);return i.indexOf(t,a)}return i.indexOf(t)}eachChild(e){e(this.needle),e(this.haystack),this.fromIndex&&e(this.fromIndex)}outputDefined(){return!1}}class Qt{constructor(e,t,i,a,n,o){this.inputType=e,this.type=t,this.input=i,this.cases=a,this.outputs=n,this.otherwise=o}static parse(e,t){if(e.length<5)return t.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if(e.length%2!=1)return t.error("Expected an even number of arguments.");let i,a;t.expectedType&&"value"!==t.expectedType.kind&&(a=t.expectedType);const n={},o=[];for(let r=2;r<e.length-1;r+=2){let s=e[r];const l=e[r+1];Array.isArray(s)||(s=[s]);const d=t.concat(r);if(0===s.length)return d.error("Expected at least one branch label.");for(const e of s){if("number"!=typeof e&&"string"!=typeof e)return d.error("Branch labels must be numbers or strings.");if("number"==typeof e&&Math.abs(e)>Number.MAX_SAFE_INTEGER)return d.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if("number"==typeof e&&Math.floor(e)!==e)return d.error("Numeric branch labels must be integer values.");if(i){if(d.checkSubtype(i,rt(e)))return null}else i=rt(e);if(void 0!==n[String(e)])return d.error("Branch labels must be unique.");
vendor: 38,536 bytes, line 5
5n[String(e)]=o.length}const u=t.parse(l,r,a);if(!u)return null;a=a||u.type,o.push(u)}const r=t.parse(e[1],1,ge);if(!r)return null;const s=t.parse(e[e.length-1],e.length-1,a);return s?"value"!==r.type.kind&&t.concat(1).checkSubtype(i,r.type)?null:new Qt(i,a,r,n,o,s):null}evaluate(e){const t=this.input.evaluate(e);return(rt(t)===this.inputType&&this.outputs[this.cases[t]]||this.otherwise).evaluate(e)}eachChild(e){e(this.input),this.outputs.forEach(e),e(this.otherwise)}outputDefined(){return this.outputs.every((e=>e.outputDefined()))&&this.otherwise.outputDefined()}}class ei{constructor(e,t,i){this.type=e,this.branches=t,this.otherwise=i}static parse(e,t){if(e.length<4)return t.error(`Expected at least 3 arguments, but found only ${e.length-1}.`);if(e.length%2!=0)return t.error("Expected an odd number of arguments.");let i;t.expectedType&&"value"!==t.expectedType.kind&&(i=t.expectedType);const a=[];for(let n=1;n<e.length-1;n+=2){const o=t.parse(e[n],n,pe);if(!o)return null;const r=t.parse(e[n+1],n+1,i);if(!r)return null;a.push([o,r]),i=i||r.type}const n=t.parse(e[e.length-1],e.length-1,i);if(!n)return null;if(!i)throw new Error("Can't infer output type");return new ei(i,a,n)}evaluate(e){for(const[t,i]of this.branches)if(t.evaluate(e))return i.evaluate(e);return this.otherwise.evaluate(e)}eachChild(e){for(const[t,i]of this.branches)e(t),e(i);e(this.otherwise)}outputDefined(){return this.branches.every((([e,t])=>t.outputDefined()))&&this.otherwise.outputDefined()}}class ti{constructor(e,t,i,a){this.type=e,this.input=t,this.beginIndex=i,this.endIndex=a}static parse(e,t){if(e.length<=2||e.length>=5)return t.error(`Expected 3 or 4 arguments, but found ${e.length-1} instead.`);const i=t.parse(e[1],1,ge),a=t.parse(e[2],2,ce);if(!i||!a)return null;if(!ze(i.type,[ke(ge),me,ge]))return t.error(`Expected first argument to be of type array or string, but found ${Se(i.type)} instead`);if(4===e.length){const n=t.parse(e[3],3,ce);return n?new ti(i.type,i,a,n):null}return new ti(i.type,i,a)}evaluate(e){const t=this.input.evaluate(e),i=this.beginIndex.evaluate(e);if(!Pe(t,["string","array"]))throw new dt(`Expected first argument to be of type array or string, but found ${Se(rt(t))} instead.`);if(this.endIndex){const a=this.endIndex.evaluate(e);return t.slice(i,a)}return t.slice(i)}eachChild(e){e(this.input),e(this.beginIndex),this.endIndex&&e(this.endIndex)}outputDefined(){return!1}}function ii(e,t){return"=="===e||"!="===e?"boolean"===t.kind||"string"===t.kind||"number"===t.kind||"null"===t.kind||"value"===t.kind:"string"===t.kind||"number"===t.kind||"value"===t.kind}function ai(e,t,i,a){return 0===a.compare(t,i)}function ni(e,t,i){const a="=="!==e&&"!="!==e;return class n{constructor(e,t,i){this.type=pe,this.lhs=e,this.rhs=t,this.collator=i,this.hasUntypedArgument="value"===e.type.kind||"value"===t.type.kind}static parse(e,t){if(3!==e.length&&4!==e.length)return t.error("Expected two or three arguments.");const i=e[0];let o=t.parse(e[1],1,ge);if(!o)return null;if(!ii(i,o.type))return t.concat(1).error(`"${i}" comparisons are not supported for type '${Se(o.type)}'.`);let r=t.parse(e[2],2,ge);if(!r)return null;if(!ii(i,r.type))return t.concat(2).error(`"${i}" comparisons are not supported for type '${Se(r.type)}'.`);if(o.type.kind!==r.type.kind&&"value"!==o.type.kind&&"value"!==r.type.kind)return t.error(`Cannot compare types '${Se(o.type)}' and '${Se(r.type)}'.`);a&&("value"===o.type.kind&&"value"!==r.type.kind?o=new ht(r.type,[o]):"value"!==o.type.kind&&"value"===r.type.kind&&(r=new ht(o.type,[r])));let s=null;if(4===e.length){if("string"!==o.type.kind&&"string"!==r.type.kind&&"value"!==o.type.kind&&"value"!==r.type.kind)return t.error("Cannot use collator to compare non-string types.");if(s=t.parse(e[3],3,ye),!s)return null}return new n(o,r,s)}evaluate(n){const o=this.lhs.evaluate(n),r=this.rhs.evaluate(n);if(a&&this.hasUntypedArgument){const t=rt(o),i=rt(r);if(t.kind!==i.kind||"string"!==t.kind&&"number"!==t.kind)throw new dt(`Expected arguments for "${e}" to be (string, string) or (number, number), but found (${t.kind}, ${i.kind}) instead.`)}if(this.collator&&!a&&this.hasUntypedArgument){const e=rt(o),i=rt(r);if("string"!==e.kind||"string"!==i.kind)return t(n,o,r)}return this.collator?i(n,o,r,this.collator.evaluate(n)):t(n,o,r)}eachChild(e){e(this.lhs),e(this.rhs),this.collator&&e(this.collator)}outputDefined(){return!0}}}const oi=ni("==",(function(e,t,i){return t===i}),ai),ri=ni("!=",(function(e,t,i){return t!==i}),(function(e,t,i,a){return!ai(0,t,i,a)})),si=ni("<",(function(e,t,i){return t<i}),(function(e,t,i,a){return a.compare(t,i)<0})),li=ni(">",(function(e,t,i){return t>i}),(function(e,t,i,a){return a.compare(t,i)>0})),di=ni("<=",(function(e,t,i){return t<=i}),(function(e,t,i,a){return a.compare(t,i)<=0})),ui=ni(">=",(function(e,t,i){return t>=i}),(function(e,t,i,a){return a.compare(t,i)>=0}));class hi{constructor(e,t,i,a,n){this.type=me,this.number=e,this.locale=t,this.currency=i,this.minFractionDigits=a,this.maxFractionDigits=n}static parse(e,t){if(3!==e.length)return t.error("Expected two arguments.");const i=t.parse(e[1],1,ce);if(!i)return null;const a=e[2];if("object"!=typeof a||Array.isArray(a))return t.error("NumberFormat options argument must be an object.");let n=null;if(a.locale&&(n=t.parse(a.locale,1,me),!n))return null;let o=null;if(a.currency&&(o=t.parse(a.currency,1,me),!o))return null;let r=null;if(a["min-fraction-digits"]&&(r=t.parse(a["min-fraction-digits"],1,ce),!r))return null;let s=null;return a["max-fraction-digits"]&&(s=t.parse(a["max-fraction-digits"],1,ce),!s)?null:new hi(i,n,o,r,s)}evaluate(e){return new Intl.NumberFormat(this.locale?this.locale.evaluate(e):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(e):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(e):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(e):void 0}).format(this.number.evaluate(e))}eachChild(e){e(this.number),this.locale&&e(this.locale),this.currency&&e(this.currency),this.minFractionDigits&&e(this.minFractionDigits),this.maxFractionDigits&&e(this.maxFractionDigits)}outputDefined(){return!1}}class ci{constructor(e){this.type=ve,this.sections=e}static parse(e,t){if(e.length<2)return t.error("Expected at least one argument.");const i=e[1];if(!Array.isArray(i)&&"object"==typeof i)return t.error("First argument must be an image or text section.");const a=[];let n=!1;for(let i=1;i<=e.length-1;++i){const o=e[i];if(n&&"object"==typeof o&&!Array.isArray(o)){n=!1;let e=null;if(o["font-scale"]&&(e=t.parse(o["font-scale"],1,ce),!e))return null;let i=null;if(o["text-font"]&&(i=t.parse(o["text-font"],1,ke(me)),!i))return null;let r=null;if(o["text-color"]&&(r=t.parse(o["text-color"],1,fe),!r))return null;const s=a[a.length-1];s.scale=e,s.font=i,s.textColor=r}else{const o=t.parse(e[i],1,ge);if(!o)return null;const r=o.type.kind;if("string"!==r&&"value"!==r&&"null"!==r&&"resolvedImage"!==r)return t.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");n=!0,a.push({content:o,scale:null,font:null,textColor:null})}}return new ci(a)}evaluate(e){return new Qe(this.sections.map((t=>{const i=t.content.evaluate(e);return rt(i)===xe?new Ye("",i,null,null,null):new Ye(st(i),null,t.scale?t.scale.evaluate(e):null,t.font?t.font.evaluate(e).join(","):null,t.textColor?t.textColor.evaluate(e):null)})))}eachChild(e){for(const t of this.sections)e(t.content),t.scale&&e(t.scale),t.font&&e(t.font),t.textColor&&e(t.textColor)}outputDefined(){return!1}}class mi{constructor(e){this.type=xe,this.input=e}static parse(e,t){if(2!==e.length)return t.error("Expected two arguments.");const i=t.parse(e[1],1,me);return i?new mi(i):t.error("No image name provided.")}evaluate(e){const t=this.input.evaluate(e),i=at.fromString(t);return i&&e.availableImages&&(i.available=e.availableImages.indexOf(t)>-1),i}eachChild(e){e(this.input)}outputDefined(){return!1}}class pi{constructor(e){this.type=ce,this.input=e}static parse(e,t){if(2!==e.length)return t.error(`Expected 1 argument, but found ${e.length-1} instead.`);const i=t.parse(e[1],1);return i?"array"!==i.type.kind&&"string"!==i.type.kind&&"value"!==i.type.kind?t.error(`Expected argument of type string or array, but found ${Se(i.type)} instead.`):new pi(i):null}evaluate(e){const t=this.input.evaluate(e);if("string"==typeof t)return t.length;if(Array.isArray(t))return t.length;throw new dt(`Expected value to be of type string or array, but found ${Se(rt(t))} instead.`)}eachChild(e){e(this.input)}outputDefined(){return!1}}const fi={"==":oi,"!=":ri,">":li,"<":si,">=":ui,"<=":di,array:ht,at:Xt,boolean:ht,case:ei,coalesce:Ht,collator:gt,format:ci,image:mi,in:Jt,"index-of":Yt,interpolate:Gt,"interpolate-hcl":Gt,"interpolate-lab":Gt,length:pi,let:Kt,literal:lt,match:Qt,number:ht,"number-format":hi,object:ht,slice:ti,step:Vt,string:ht,"to-boolean":mt,"to-color":mt,"to-number":mt,"to-string":mt,var:jt,within:Dt};function _i(e,[t,i,a,n]){t=t.evaluate(e),i=i.evaluate(e),a=a.evaluate(e);const o=n?n.evaluate(e):1,r=nt(t,i,a,o);if(r)throw new dt(r);return new Xe(t/255,i/255,a/255,o,!1)}function gi(e,t){return e in t}function yi(e,t){const i=t[e];return void 0===i?null:i}function vi(e){return{type:e}}function wi(e){return{result:"success",value:e}}function xi(e){return{result:"error",value:e}}function bi(e){return"data-driven"===e["property-type"]||"cross-faded-data-driven"===e["property-type"]}function ki(e){return!!e.expression&&e.expression.parameters.indexOf("zoom")>-1}function Si(e){return!!e.expression&&e.expression.interpolated}function Ti(e){return e instanceof Number?"number":e instanceof String?"string":e instanceof Boolean?"boolean":Array.isArray(e)?"array":null===e?"null":typeof e}function Ci(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function zi(e){return e}function Pi(e,t){const i="color"===t.type,a=e.stops&&"object"==typeof e.stops[0][0],n=a||!(a||void 0!==e.property),o=e.type||(Si(t)?"exponential":"interval");if(i||"padding"===t.type){const a=i?Xe.parse:et.parse;(e=le({},e)).stops&&(e.stops=e.stops.map((e=>[e[0],a(e[1])]))),e.default=a(e.default?e.default:t.default)}if(e.colorSpace&&"rgb"!==(r=e.colorSpace)&&"hcl"!==r&&"lab"!==r)throw new Error(`Unknown color space: "${e.colorSpace}"`);var r;let s,l,d;if("exponential"===o)s=Ii;else if("interval"===o)s=Ai;else if("categorical"===o){s=Li,l=Object.create(null);for(const t of e.stops)l[t[0]]=t[1];d=typeof e.stops[0][0]}else{if("identity"!==o)throw new Error(`Unknown function type "${o}"`);s=Ei}if(a){const i={},a=[];for(let t=0;t<e.stops.length;t++){const n=e.stops[t],o=n[0].zoom;void 0===i[o]&&(i[o]={zoom:o,type:e.type,property:e.property,default:e.default,stops:[]},a.push(o)),i[o].stops.push([n[0].value,n[1]])}const n=[];for(const e of a)n.push([i[e].zoom,Pi(i[e],t)]);const o={name:"linear"};return{kind:"composite",interpolationType:o,interpolationFactor:Gt.interpolationFactor.bind(void 0,o),zoomStops:n.map((e=>e[0])),evaluate:({zoom:i},a)=>Ii({stops:n,base:e.base},t,i).evaluate(i,a)}}if(n){const i="exponential"===o?{name:"exponential",base:void 0!==e.base?e.base:1}:null;return{kind:"camera",interpolationType:i,interpolationFactor:Gt.interpolationFactor.bind(void 0,i),zoomStops:e.stops.map((e=>e[0])),evaluate:({zoom:i})=>s(e,t,i,l,d)}}return{kind:"source",evaluate(i,a){const n=a&&a.properties?a.properties[e.property]:void 0;return void 0===n?Mi(e.default,t.default):s(e,t,n,l,d)}}}function Mi(e,t,i){return void 0!==e?e:void 0!==t?t:void 0!==i?i:void 0}function Li(e,t,i,a,n){return Mi(typeof i===n?a[i]:void 0,e.default,t.default)}function Ai(e,t,i){if("number"!==Ti(i))return Mi(e.default,t.default);const a=e.stops.length;if(1===a)return e.stops[0][1];if(i<=e.stops[0][0])return e.stops[0][1];if(i>=e.stops[a-1][0])return e.stops[a-1][1];const n=Nt(e.stops.map((e=>e[0])),i);return e.stops[n][1]}function Ii(e,t,i){const a=void 0!==e.base?e.base:1;if("number"!==Ti(i))return Mi(e.default,t.default);const n=e.stops.length;if(1===n)return e.stops[0][1];if(i<=e.stops[0][0])return e.stops[0][1];if(i>=e.stops[n-1][0])return e.stops[n-1][1];const o=Nt(e.stops.map((e=>e[0])),i),r=function(e,t,i,a){const n=a-i,o=e-i;return 0===n?0:1===t?o/n:(Math.pow(t,o)-1)/(Math.pow(t,n)-1)}(i,a,e.stops[o][0],e.stops[o+1][0]),s=e.stops[o][1],l=e.stops[o+1][1],d=qt[t.type]||zi;return"function"==typeof s.evaluate?{evaluate(...t){const i=s.evaluate.apply(void 0,t),a=l.evaluate.apply(void 0,t);if(void 0!==i&&void 0!==a)return d(i,a,r,e.colorSpace)}}:d(s,l,r,e.colorSpace)}function Ei(e,t,i){switch(t.type){case"color":i=Xe.parse(i);break;case"formatted":i=Qe.fromString(i.toString());break;case"resolvedImage":i=at.fromString(i.toString());break;case"padding":i=et.parse(i);break;default:Ti(i)===t.type||"enum"===t.type&&t.values[i]||(i=void 0)}return Mi(i,e.default,t.default)}$t.register(fi,{error:[{kind:"error"},[me],(e,[t])=>{throw new dt(t.evaluate(e))}],typeof:[me,[ge],(e,[t])=>Se(rt(t.evaluate(e)))],"to-rgba":[ke(ce,4),[fe],(e,[t])=>{const[i,a,n,o]=t.evaluate(e).rgb;return[255*i,255*a,255*n,o]}],rgb:[fe,[ce,ce,ce],_i],rgba:[fe,[ce,ce,ce,ce],_i],has:{type:pe,overloads:[[[me],(e,[t])=>gi(t.evaluate(e),e.properties())],[[me,_e],(e,[t,i])=>gi(t.evaluate(e),i.evaluate(e))]]},get:{type:ge,overloads:[[[me],(e,[t])=>yi(t.evaluate(e),e.properties())],[[me,_e],(e,[t,i])=>yi(t.evaluate(e),i.evaluate(e))]]},"feature-state":[ge,[me],(e,[t])=>yi(t.evaluate(e),e.featureState||{})],properties:[_e,[],e=>e.properties()],"geometry-type":[me,[],e=>e.geometryType()],id:[ge,[],e=>e.id()],zoom:[ce,[],e=>e.globals.zoom],"heatmap-density":[ce,[],e=>e.globals.heatmapDensity||0],"line-progress":[ce,[],e=>e.globals.lineProgress||0],accumulated:[ge,[],e=>void 0===e.globals.accumulated?null:e.globals.accumulated],"+":[ce,vi(ce),(e,t)=>{let i=0;for(const a of t)i+=a.evaluate(e);return i}],"*":[ce,vi(ce),(e,t)=>{let i=1;for(const a of t)i*=a.evaluate(e);return i}],"-":{type:ce,overloads:[[[ce,ce],(e,[t,i])=>t.evaluate(e)-i.evaluate(e)],[[ce],(e,[t])=>-t.evaluate(e)]]},"/":[ce,[ce,ce],(e,[t,i])=>t.evaluate(e)/i.evaluate(e)],"%":[ce,[ce,ce],(e,[t,i])=>t.evaluate(e)%i.evaluate(e)],ln2:[ce,[],()=>Math.LN2],pi:[ce,[],()=>Math.PI],e:[ce,[],()=>Math.E],"^":[ce,[ce,ce],(e,[t,i])=>Math.pow(t.evaluate(e),i.evaluate(e))],sqrt:[ce,[ce],(e,[t])=>Math.sqrt(t.evaluate(e))],log10:[ce,[ce],(e,[t])=>Math.log(t.evaluate(e))/Math.LN10],ln:[ce,[ce],(e,[t])=>Math.log(t.evaluate(e))],log2:[ce,[ce],(e,[t])=>Math.log(t.evaluate(e))/Math.LN2],sin:[ce,[ce],(e,[t])=>Math.sin(t.evaluate(e))],cos:[ce,[ce],(e,[t])=>Math.cos(t.evaluate(e))],tan:[ce,[ce],(e,[t])=>Math.tan(t.evaluate(e))],asin:[ce,[ce],(e,[t])=>Math.asin(t.evaluate(e))],acos:[ce,[ce],(e,[t])=>Math.acos(t.evaluate(e))],atan:[ce,[ce],(e,[t])=>Math.atan(t.evaluate(e))],min:[ce,vi(ce),(e,t)=>Math.min(...t.map((t=>t.evaluate(e))))],max:[ce,vi(ce),(e,t)=>Math.max(...t.map((t=>t.evaluate(e))))],abs:[ce,[ce],(e,[t])=>Math.abs(t.evaluate(e))],round:[ce,[ce],(e,[t])=>{const i=t.evaluate(e);return i<0?-Math.round(-i):Math.round(i)}],floor:[ce,[ce],(e,[t])=>Math.floor(t.evaluate(e))],ceil:[ce,[ce],(e,[t])=>Math.ceil(t.evaluate(e))],"filter-==":[pe,[me,ge],(e,[t,i])=>e.properties()[t.value]===i.value],"filter-id-==":[pe,[ge],(e,[t])=>e.id()===t.value],"filter-type-==":[pe,[me],(e,[t])=>e.geometryType()===t.value],"filter-<":[pe,[me,ge],(e,[t,i])=>{const a=e.properties()[t.value],n=i.value;return typeof a==typeof n&&a<n}],"filter-id-<":[pe,[ge],(e,[t])=>{const i=e.id(),a=t.value;return typeof i==typeof a&&i<a}],"filter->":[pe,[me,ge],(e,[t,i])=>{const a=e.properties()[t.value],n=i.value;return typeof a==typeof n&&a>n}],"filter-id->":[pe,[ge],(e,[t])=>{const i=e.id(),a=t.value;return typeof i==typeof a&&i>a}],"filter-<=":[pe,[me,ge],(e,[t,i])=>{const a=e.properties()[t.value],n=i.value;return typeof a==typeof n&&a<=n}],"filter-id-<=":[pe,[ge],(e,[t])=>{const i=e.id(),a=t.value;return typeof i==typeof a&&i<=a}],"filter->=":[pe,[me,ge],(e,[t,i])=>{const a=e.properties()[t.value],n=i.value;return typeof a==typeof n&&a>=n}],"filter-id->=":[pe,[ge],(e,[t])=>{const i=e.id(),a=t.value;return typeof i==typeof a&&i>=a}],"filter-has":[pe,[ge],(e,[t])=>t.value in e.properties()],"filter-has-id":[pe,[],e=>null!==e.id()&&void 0!==e.id()],"filter-type-in":[pe,[ke(me)],(e,[t])=>t.value.indexOf(e.geometryType())>=0],"filter-id-in":[pe,[ke(ge)],(e,[t])=>t.value.indexOf(e.id())>=0],"filter-in-small":[pe,[me,ke(ge)],(e,[t,i])=>i.value.indexOf(e.properties()[t.value])>=0],"filter-in-large":[pe,[me,ke(ge)],(e,[t,i])=>function(e,t,i,a){for(;i<=a;){const n=i+a>>1;if(t[n]===e)return!0;t[n]>e?a=n-1:i=n+1}return!1}(e.properties()[t.value],i.value,0,i.value.length-1)],all:{type:pe,overloads:[[[pe,pe],(e,[t,i])=>t.evaluate(e)&&i.evaluate(e)],[vi(pe),(e,t)=>{for(const i of t)if(!i.evaluate(e))return!1;return!0}]]},any:{type:pe,overloads:[[[pe,pe],(e,[t,i])=>t.evaluate(e)||i.evaluate(e)],[vi(pe),(e,t)=>{for(const i of t)if(i.evaluate(e))return!0;return!1}]]},"!":[pe,[pe],(e,[t])=>!t.evaluate(e)],"is-supported-script":[pe,[me],(e,[t])=>{const i=e.globals&&e.globals.isSupportedScript;return!i||i(t.evaluate(e))}],upcase:[me,[me],(e,[t])=>t.evaluate(e).toUpperCase()],downcase:[me,[me],(e,[t])=>t.evaluate(e).toLowerCase()],concat:[me,vi(ge),(e,t)=>t.map((t=>st(t.evaluate(e)))).join("")],"resolved-locale":[me,[ye],(e,[t])=>t.evaluate(e).resolvedLocale()]});class Di{constructor(e,t){var i;this.expression=e,this._warningHistory={},this._evaluator=new ft,this._defaultValue=t?"color"===(i=t).type&&Ci(i.default)?new Xe(0,0,0,0):"color"===i.type?Xe.parse(i.default)||null:"padding"===i.type?et.parse(i.default)||null:"variableAnchorOffsetCollection"===i.type?it.parse(i.default)||null:void 0===i.default?null:i.default:null,this._enumValues=t&&"enum"===t.type?t.values:null}evaluateWithoutErrorHandling(e,t,i,a,n,o){return this._evaluator.globals=e,this._evaluator.feature=t,this._evaluator.featureState=i,this._evaluator.canonical=a,this._evaluator.availableImages=n||null,this._evaluator.formattedSection=o,this.expression.evaluate(this._evaluator)}evaluate(e,t,i,a,n,o){this._evaluator.globals=e,this._evaluator.feature=t||null,this._evaluator.featureState=i||null,this._evaluator.canonical=a,this._evaluator.availableImages=n||null,this._evaluator.formattedSection=o||null;try{const e=this.expression.evaluate(this._evaluator);if(null==e||"number"==typeof e&&e!=e)return this._defaultValue;if(this._enumValues&&!(e in this._enumValues))throw new dt(`Expected value to be one of ${Object.keys(this._enumValues).map((e=>JSON.stringify(e))).join(", ")}, but found ${JSON.stringify(e)} instead.`);return e}catch(e){return this._warningHistory[e.message]||(this._warningHistory[e.message]=!0,"undefined"!=typeof console&&console.warn(e.message)),this._defaultValue}}}function ji(e){return Array.isArray(e)&&e.length>0&&"string"==typeof e[0]&&e[0]in fi}function $i(e,t){const i=new _t(fi,Rt,[],t?function(e){const t={color:fe,string:me,number:ce,enum:me,boolean:pe,formatted:ve,padding:we,resolvedImage:xe,variableAnchorOffsetCollection:be};return"array"===e.type?ke(t[e.value]||ge,e.length):t[e.type]}(t):void 0),a=i.parse(e,void 0,void 0,void 0,t&&"string"===t.type?{typeAnnotation:"coerce"}:void 0);return a?wi(new Di(a,t)):xi(i.errors)}class Ri{constructor(e,t){this.kind=e,this._styleExpression=t,this.isStateDependent="constant"!==e&&!Ft(t.expression)}evaluateWithoutErrorHandling(e,t,i,a,n,o){return this._styleExpression.evaluateWithoutErrorHandling(e,t,i,a,n,o)}evaluate(e,t,i,a,n,o){return this._styleExpression.evaluate(e,t,i,a,n,o)}}class Bi{constructor(e,t,i,a){this.kind=e,this.zoomStops=i,this._styleExpression=t,this.isStateDependent="camera"!==e&&!Ft(t.expression),this.interpolationType=a}evaluateWithoutErrorHandling(e,t,i,a,n,o){return this._styleExpression.evaluateWithoutErrorHandling(e,t,i,a,n,o)}evaluate(e,t,i,a,n,o){return this._styleExpression.evaluate(e,t,i,a,n,o)}interpolationFactor(e,t,i){return this.interpolationType?Gt.interpolationFactor(this.interpolationType,e,t,i):0}}function Fi(e,t){const i=$i(e,t);if("error"===i.result)return i;const a=i.value.expression,n=Bt(a);if(!n&&!bi(t))return xi([new de("","data expressions not supported")]);const o=Ot(a,["zoom"]);if(!o&&!ki(t))return xi([new de("","zoom expressions not supported")]);const r=Ni(a);return r||o?r instanceof de?xi([r]):r instanceof Gt&&!Si(t)?xi([new de("",'"interpolate" expressions cannot be used with this property')]):wi(r?new Bi(n?"camera":"composite",i.value,r.labels,r instanceof Gt?r.interpolation:void 0):new Ri(n?"constant":"source",i.value)):xi([new de("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')])}class Oi{constructor(e,t){this._parameters=e,this._specification=t,le(this,Pi(this._parameters,this._specification))}static deserialize(e){return new Oi(e._parameters,e._specification)}static serialize(e){return{_parameters:e._parameters,_specification:e._specification}}}function Ni(e){let t=null;if(e instanceof Kt)t=Ni(e.result);else if(e instanceof Ht){for(const i of e.args)if(t=Ni(i),t)break}else(e instanceof Vt||e instanceof Gt)&&e.input instanceof $t&&"zoom"===e.input.name&&(t=e);return t instanceof de||e.eachChild((e=>{const i=Ni(e);i instanceof de?t=i:!t&&i?t=new de("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):t&&i&&t!==i&&(t=new de("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))})),t}function Vi(e){if(!0===e||!1===e)return!0;if(!Array.isArray(e)||0===e.length)return!1;switch(e[0]){case"has":return e.length>=2&&"$id"!==e[1]&&"$type"!==e[1];case"in":return e.length>=3&&("string"!=typeof e[1]||Array.isArray(e[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return 3!==e.length||Array.isArray(e[1])||Array.isArray(e[2]);case"any":case"all":for(const t of e.slice(1))if(!Vi(t)&&"boolean"!=typeof t)return!1;return!0;default:return!0}}const Ui={type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}};function Zi(e){if(null==e)return{filter:()=>!0,needGeometry:!1};Vi(e)||(e=Wi(e));const t=$i(e,Ui);if("error"===t.result)throw new Error(t.value.map((e=>`${e.key}: ${e.message}`)).join(", "));return{filter:(e,i,a)=>t.value.evaluate(e,i,{},a),needGeometry:Gi(e)}}function qi(e,t){return e<t?-1:e>t?1:0}function Gi(e){if(!Array.isArray(e))return!1;if("within"===e[0])return!0;for(let t=1;t<e.length;t++)if(Gi(e[t]))return!0;return!1}function Wi(e){if(!e)return!0;const t=e[0];return e.length<=1?"any"!==t:"=="===t?Hi(e[1],e[2],"=="):"!="===t?Ji(Hi(e[1],e[2],"==")):"<"===t||">"===t||"<="===t||">="===t?Hi(e[1],e[2],t):"any"===t?(i=e.slice(1),["any"].concat(i.map(Wi))):"all"===t?["all"].concat(e.slice(1).map(Wi)):"none"===t?["all"].concat(e.slice(1).map(Wi).map(Ji)):"in"===t?Ki(e[1],e.slice(2)):"!in"===t?Ji(Ki(e[1],e.slice(2))):"has"===t?Xi(e[1]):"!has"===t?Ji(Xi(e[1])):"within"!==t||e;var i}function Hi(e,t,i){switch(e){case"$type":return[`filter-type-${i}`,t];case"$id":return[`filter-id-${i}`,t];default:return[`filter-${i}`,e,t]}}function Ki(e,t){if(0===t.length)return!1;switch(e){case"$type":return["filter-type-in",["literal",t]];case"$id":return["filter-id-in",["literal",t]];default:return t.length>200&&!t.some((e=>typeof e!=typeof t[0]))?["filter-in-large",e,["literal",t.sort(qi)]]:["filter-in-small",e,["literal",t]]}}function Xi(e){switch(e){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",e]}}function Ji(e){return["!",e]}function Yi(e){const t=typeof e;if("number"===t||"boolean"===t||"string"===t||null==e)return JSON.stringify(e);if(Array.isArray(e)){let t="[";for(const i of e)t+=`${Yi(i)},`;return`${t}]`}const i=Object.keys(e).sort();let a="{";for(let t=0;t<i.length;t++)a+=`${JSON.stringify(i[t])}:${Yi(e[i[t]])},`;return`${a}}`}function Qi(e){let t="";for(const i of X)t+=`/${Yi(e[i])}`;return t}function ea(e){const t=e.value;return t?[new se(e.key,t,"constants have been deprecated as of v8")]:[]}function ta(e){return e instanceof Number||e instanceof String||e instanceof Boolean?e.valueOf():e}function ia(e){if(Array.isArray(e))return e.map(ia);if(e instanceof Object&&!(e instanceof Number||e instanceof String||e instanceof Boolean)){const t={};for(const i in e)t[i]=ia(e[i]);return t}return ta(e)}function aa(e){const t=e.key,i=e.value,a=e.valueSpec||{},n=e.objectElementValidators||{},o=e.style,r=e.styleSpec,s=e.validateSpec;let l=[];const d=Ti(i);if("object"!==d)return[new se(t,i,`object expected, ${d} found`)];for(const e in i){const d=e.split(".")[0],u=a[d]||a["*"];let h;if(n[d])h=n[d];else if(a[d])h=s;else if(n["*"])h=n["*"];else{if(!a["*"]){l.push(new se(t,i[e],`unknown property "${e}"`));continue}h=s}l=l.concat(h({key:(t?`${t}.`:t)+e,value:i[e],valueSpec:u,style:o,styleSpec:r,object:i,objectKey:e,validateSpec:s},i))}for(const e in a)n[e]||a[e].required&&void 0===a[e].default&&void 0===i[e]&&l.push(new se(t,i,`missing required property "${e}"`));return l}function na(e){const t=e.value,i=e.valueSpec,a=e.style,n=e.styleSpec,o=e.key,r=e.arrayElementValidator||e.validateSpec;if("array"!==Ti(t))return[new se(o,t,`array expected, ${Ti(t)} found`)];if(i.length&&t.length!==i.length)return[new se(o,t,`array length ${i.length} expected, length ${t.length} found`)];if(i["min-length"]&&t.length<i["min-length"])return[new se(o,t,`array length at least ${i["min-length"]} expected, length ${t.length} found`)];let s={type:i.value,values:i.values};n.$version<7&&(s.function=i.function),"object"===Ti(i.value)&&(s=i.value);let l=[];for(let i=0;i<t.length;i++)l=l.concat(r({array:t,arrayIndex:i,value:t[i],valueSpec:s,validateSpec:e.validateSpec,style:a,styleSpec:n,key:`${o}[${i}]`}));return l}function oa(e){const t=e.key,i=e.value,a=e.valueSpec;let n=Ti(i);return"number"===n&&i!=i&&(n="NaN"),"number"!==n?[new se(t,i,`number expected, ${n} found`)]:"minimum"in a&&i<a.minimum?[new se(t,i,`${i} is less than the minimum value ${a.minimum}`)]:"maximum"in a&&i>a.maximum?[new se(t,i,`${i} is greater than the maximum value ${a.maximum}`)]:[]}function ra(e){const t=e.valueSpec,i=ta(e.value.type);let a,n,o,r={};const s="categorical"!==i&&void 0===e.value.property,l=!s,d="array"===Ti(e.value.stops)&&"array"===Ti(e.value.stops[0])&&"object"===Ti(e.value.stops[0][0]),u=aa({key:e.key,value:e.value,valueSpec:e.styleSpec.function,validateSpec:e.validateSpec,style:e.style,styleSpec:e.styleSpec,objectElementValidators:{stops:function(e){if("identity"===i)return[new se(e.key,e.value,'identity function may not have a "stops" property')];let t=[];const a=e.value;return t=t.concat(na({key:e.key,value:a,valueSpec:e.valueSpec,validateSpec:e.validateSpec,style:e.style,styleSpec:e.styleSpec,arrayElementValidator:h})),"array"===Ti(a)&&0===a.length&&t.push(new se(e.key,a,"array must have at least one stop")),t},default:function(e){return e.validateSpec({key:e.key,value:e.value,valueSpec:t,validateSpec:e.validateSpec,style:e.style,styleSpec:e.styleSpec})}}});return"identity"===i&&s&&u.push(new se(e.key,e.value,'missing required property "property"')),"identity"===i||e.value.stops||u.push(new se(e.key,e.value,'missing required property "stops"')),"exponential"===i&&e.valueSpec.expression&&!Si(e.valueSpec)&&u.push(new se(e.key,e.value,"exponential functions not supported")),e.styleSpec.$version>=8&&(l&&!bi(e.valueSpec)?u.push(new se(e.key,e.value,"property functions not supported")):s&&!ki(e.valueSpec)&&u.push(new se(e.key,e.value,"zoom functions not supported"))),"categorical"!==i&&!d||void 0!==e.value.property||u.push(new se(e.key,e.value,'"property" property is required')),u;function h(e){let i=[];const a=e.value,s=e.key;if("array"!==Ti(a))return[new se(s,a,`array expected, ${Ti(a)} found`)];if(2!==a.length)return[new se(s,a,`array length 2 expected, length ${a.length} found`)];if(d){if("object"!==Ti(a[0]))return[new se(s,a,`object expected, ${Ti(a[0])} found`)];if(void 0===a[0].zoom)return[new se(s,a,"object stop key must have zoom")];if(void 0===a[0].value)return[new se(s,a,"object stop key must have value")];if(o&&o>ta(a[0].zoom))return[new se(s,a[0].zoom,"stop zoom values must appear in ascending order")];ta(a[0].zoom)!==o&&(o=ta(a[0].zoom),n=void 0,r={}),i=i.concat(aa({key:`${s}[0]`,value:a[0],valueSpec:{zoom:{}},validateSpec:e.validateSpec,style:e.style,styleSpec:e.styleSpec,objectElementValidators:{zoom:oa,value:c}}))}else i=i.concat(c({key:`${s}[0]`,value:a[0],valueSpec:{},validateSpec:e.validateSpec,style:e.style,styleSpec:e.styleSpec},a));return ji(ia(a[1]))?i.concat([new se(`${s}[1]`,a[1],"expressions are not allowed in function stops.")]):i.concat(e.validateSpec({key:`${s}[1]`,value:a[1],valueSpec:t,validateSpec:e.validateSpec,style:e.style,styleSpec:e.styleSpec}))}function c(e,o){const s=Ti(e.value),l=ta(e.value),d=null!==e.value?e.value:o;if(a){if(s!==a)return[new se(e.key,d,`${s} stop domain type must match previous stop domain type ${a}`)]}else a=s;if("number"!==s&&"string"!==s&&"boolean"!==s)return[new se(e.key,d,"stop domain value must be a number, string, or boolean")];if("number"!==s&&"categorical"!==i){let a=`number expected, ${s} found`;return bi(t)&&void 0===i&&(a+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new se(e.key,d,a)]}return"categorical"!==i||"number"!==s||isFinite(l)&&Math.floor(l)===l?"categorical"!==i&&"number"===s&&void 0!==n&&l<n?[new se(e.key,d,"stop domain values must appear in ascending order")]:(n=l,"categorical"===i&&l in r?[new se(e.key,d,"stop domain values must be unique")]:(r[l]=!0,[])):[new se(e.key,d,`integer expected, found ${l}`)]}}function sa(e){const t=("property"===e.expressionContext?Fi:$i)(ia(e.value),e.valueSpec);if("error"===t.result)return t.value.map((t=>new se(`${e.key}${t.key}`,e.value,t.message)));const i=t.value.expression||t.value._styleExpression.expression;if("property"===e.expressionContext&&"text-font"===e.propertyKey&&!i.outputDefined())return[new se(e.key,e.value,`Invalid data expression for "${e.propertyKey}". Output values must be contained as literals within the expression.`)];if("property"===e.expressionContext&&"layout"===e.propertyType&&!Ft(i))return[new se(e.key,e.value,'"feature-state" data expressions are not supported with layout properties.')];if("filter"===e.expressionContext&&!Ft(i))return[new se(e.key,e.value,'"feature-state" data expressions are not supported with filters.')];if(e.expressionContext&&0===e.expressionContext.indexOf("cluster")){if(!Ot(i,["zoom","feature-state"]))return[new se(e.key,e.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if("cluster-initial"===e.expressionContext&&!Bt(i))return[new se(e.key,e.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function la(e){const t=e.key,i=e.value,a=e.valueSpec,n=[];return Array.isArray(a.values)?-1===a.values.indexOf(ta(i))&&n.push(new se(t,i,`expected one of [${a.values.join(", ")}], ${JSON.stringify(i)} found`)):-1===Object.keys(a.values).indexOf(ta(i))&&n.push(new se(t,i,`expected one of [${Object.keys(a.values).join(", ")}], ${JSON.stringify(i)} found`)),n}function da(e){return Vi(ia(e.value))?sa(le({},e,{expressionContext:"filter",valueSpec:{value:"boolean"}})):ua(e)}function ua(e){const t=e.value,i=e.key;if("array"!==Ti(t))return[new se(i,t,`array expected, ${Ti(t)} found`)];const a=e.styleSpec;let n,o=[];if(t.length<1)return[new se(i,t,"filter array must have at least 1 element")];switch(o=o.concat(la({key:`${i}[0]`,value:t[0],valueSpec:a.filter_operator,style:e.style,styleSpec:e.styleSpec})),ta(t[0])){case"<":case"<=":case">":case">=":t.length>=2&&"$type"===ta(t[1])&&o.push(new se(i,t,`"$type" cannot be use with operator "${t[0]}"`));case"==":case"!=":3!==t.length&&o.push(new se(i,t,`filter array for operator "${t[0]}" must have 3 elements`));case"in":case"!in":t.length>=2&&(n=Ti(t[1]),"string"!==n&&o.push(new se(`${i}[1]`,t[1],`string expected, ${n} found`)));for(let r=2;r<t.length;r++)n=Ti(t[r]),"$type"===ta(t[1])?o=o.concat(la({key:`${i}[${r}]`,value:t[r],valueSpec:a.geometry_type,style:e.style,styleSpec:e.styleSpec})):"string"!==n&&"number"!==n&&"boolean"!==n&&o.push(new se(`${i}[${r}]`,t[r],`string, number, or boolean expected, ${n} found`));break;case"any":case"all":case"none":for(let a=1;a<t.length;a++)o=o.concat(ua({key:`${i}[${a}]`,value:t[a],style:e.style,styleSpec:e.styleSpec}));break;case"has":case"!has":n=Ti(t[1]),2!==t.length?o.push(new se(i,t,`filter array for "${t[0]}" operator must have 2 elements`)):"string"!==n&&o.push(new se(`${i}[1]`,t[1],`string expected, ${n} found`));break;case"within":n=Ti(t[1]),2!==t.length?o.push(new se(i,t,`filter array for "${t[0]}" operator must have 2 elements`)):"object"!==n&&o.push(new se(`${i}[1]`,t[1],`object expected, ${n} found`))}return o}function ha(e,t){const i=e.key,a=e.validateSpec,n=e.style,o=e.styleSpec,r=e.value,s=e.objectKey,l=o[`${t}_${e.layerType}`];if(!l)return[];const d=s.match(/^(.*)-transition$/);if("paint"===t&&d&&l[d[1]]&&l[d[1]].transition)return a({key:i,value:r,valueSpec:o.transition,style:n,styleSpec:o});const u=e.valueSpec||l[s];if(!u)return[new se(i,r,`unknown property "${s}"`)];let h;if("string"===Ti(r)&&bi(u)&&!u.tokens&&(h=/^{([^}]+)}$/.exec(r)))return[new se(i,r,`"${s}" does not support interpolation syntax\nUse an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(h[1])} }\`.`)];const c=[];return"symbol"===e.layerType&&("text-field"===s&&n&&!n.glyphs&&c.push(new se(i,r,'use of "text-field" requires a style "glyphs" property')),"text-font"===s&&Ci(ia(r))&&"identity"===ta(r.type)&&c.push(new se(i,r,'"text-font" does not support identity functions'))),c.concat(a({key:e.key,value:r,valueSpec:u,style:n,styleSpec:o,expressionContext:"property",propertyType:t,propertyKey:s}))}function ca(e){return ha(e,"paint")}function ma(e){return ha(e,"layout")}function pa(e){let t=[];const i=e.value,a=e.key,n=e.style,o=e.styleSpec;i.type||i.ref||t.push(new se(a,i,'either "type" or "ref" is required'));let r=ta(i.type);const s=ta(i.ref);if(i.id){const o=ta(i.id);for(let r=0;r<e.arrayIndex;r++){const e=n.layers[r];ta(e.id)===o&&t.push(new se(a,i.id,`duplicate layer id "${i.id}", previously used at line ${e.id.__line__}`))}}if("ref"in i){let e;["type","source","source-layer","filter","layout"].forEach((e=>{e in i&&t.push(new se(a,i[e],`"${e}" is prohibited for ref layers`))})),n.layers.forEach((t=>{ta(t.id)===s&&(e=t)})),e?e.ref?t.push(new se(a,i.ref,"ref cannot reference another ref layer")):r=ta(e.type):t.push(new se(a,i.ref,`ref layer "${s}" not found`))}else if("background"!==r)if(i.source){const e=n.sources&&n.sources[i.source],o=e&&ta(e.type);e?"vector"===o&&"raster"===r?t.push(new se(a,i.source,`layer "${i.id}" requires a raster source`)):"raster-dem"!==o&&"hillshade"===r?t.push(new se(a,i.source,`layer "${i.id}" requires a raster-dem source`)):"raster"===o&&"raster"!==r?t.push(new se(a,i.source,`layer "${i.id}" requires a vector source`)):"vector"!==o||i["source-layer"]?"raster-dem"===o&&"hillshade"!==r?t.push(new se(a,i.source,"raster-dem source can only be used with layer type 'hillshade'.")):"line"!==r||!i.paint||!i.paint["line-gradient"]||"geojson"===o&&e.lineMetrics||t.push(new se(a,i,`layer "${i.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):t.push(new se(a,i,`layer "${i.id}" must specify a "source-layer"`)):t.push(new se(a,i.source,`source "${i.source}" not found`))}else t.push(new se(a,i,'missing required property "source"'));return t=t.concat(aa({key:a,value:i,valueSpec:o.layer,style:e.style,styleSpec:e.styleSpec,validateSpec:e.validateSpec,objectElementValidators:{"*":()=>[],type:()=>e.validateSpec({key:`${a}.type`,value:i.type,valueSpec:o.layer.type,style:e.style,styleSpec:e.styleSpec,validateSpec:e.validateSpec,object:i,objectKey:"type"}),filter:da,layout:e=>aa({layer:i,key:e.key,value:e.value,style:e.style,styleSpec:e.styleSpec,validateSpec:e.validateSpec,objectElementValidators:{"*":e=>ma(le({layerType:r},e))}}),paint:e=>aa({layer:i,key:e.key,value:e.value,style:e.style,styleSpec:e.styleSpec,validateSpec:e.validateSpec,objectElementValidators:{"*":e=>ca(le({layerType:r},e))}})}})),t}function fa(e){const t=e.value,i=e.key,a=Ti(t);return"string"!==a?[new se(i,t,`string expected, ${a} found`)]:[]}const _a={promoteId:function({key:e,value:t}){if("string"===Ti(t))return fa({key:e,value:t});{const i=[];for(const a in t)i.push(...fa({key:`${e}.${a}`,value:t[a]}));return i}}};function ga(e){const t=e.value,i=e.key,a=e.styleSpec,n=e.style,o=e.validateSpec;if(!t.type)return[new se(i,t,'"type" is required')];const r=ta(t.type);let s;switch(r){case"vector":case"raster":return s=aa({key:i,value:t,valueSpec:a[`source_${r.replace("-","_")}`],style:e.style,styleSpec:a,objectElementValidators:_a,validateSpec:o}),s;case"raster-dem":return s=function(e){var t;const i=null!==(t=e.sourceName)&&void 0!==t?t:"",a=e.value,n=e.styleSpec,o=n.source_raster_dem,r=e.style;let s=[];const l=Ti(a);if(void 0===a)return s;if("object"!==l)return s.push(new se("source_raster_dem",a,`object expected, ${l} found`)),s;const d="custom"===ta(a.encoding),u=["redFactor","greenFactor","blueFactor","baseShift"],h=e.value.encoding?`"${e.value.encoding}"`:"Default";for(const t in a)!d&&u.includes(t)?s.push(new se(t,a[t],`In "${i}": "${t}" is only valid when "encoding" is set to "custom". ${h} encoding found`)):o[t]?s=s.concat(e.validateSpec({key:t,value:a[t],valueSpec:o[t],validateSpec:e.validateSpec,style:r,styleSpec:n})):s.push(new se(t,a[t],`unknown property "${t}"`));return s}({sourceName:i,value:t,style:e.style,styleSpec:a,validateSpec:o}),s;case"geojson":if(s=aa({key:i,value:t,valueSpec:a.source_geojson,style:n,styleSpec:a,validateSpec:o,objectElementValidators:_a}),t.cluster)for(const e in t.clusterProperties){const[a,n]=t.clusterProperties[e],r="string"==typeof a?[a,["accumulated"],["get",e]]:a;s.push(...sa({key:`${i}.${e}.map`,value:n,validateSpec:o,expressionContext:"cluster-map"})),s.push(...sa({key:`${i}.${e}.reduce`,value:r,validateSpec:o,expressionContext:"cluster-reduce"}))}return s;case"video":return aa({key:i,value:t,valueSpec:a.source_video,style:n,validateSpec:o,styleSpec:a});case"image":return aa({key:i,value:t,valueSpec:a.source_image,style:n,validateSpec:o,styleSpec:a});case"canvas":return[new se(i,null,"Please use runtime APIs to add canvas sources, rather than 
5including them in stylesheets.","source.canvas")];default:return la({key:`${i}.type`,value:t.type,valueSpec:{values:["vector","raster","raster-dem","geojson","video","image"]},style:n,validateSpec:o,styleSpec:a})}}function ya(e){const t=e.value,i=e.styleSpec,a=i.light,n=e.style;let o=[];const r=Ti(t);if(void 0===t)return o;if("object"!==r)return o=o.concat([new se("light",t,`object expected, ${r} found`)]),o;for(const r in t){const s=r.match(/^(.*)-transition$/);o=o.concat(s&&a[s[1]]&&a[s[1]].transition?e.validateSpec({key:r,value:t[r],valueSpec:i.transition,validateSpec:e.validateSpec,style:n,styleSpec:i}):a[r]?e.validateSpec({key:r,value:t[r],valueSpec:a[r],validateSpec:e.validateSpec,style:n,styleSpec:i}):[new se(r,t[r],`unknown property "${r}"`)])}return o}function va(e){const t=e.value,i=e.styleSpec,a=i.terrain,n=e.style;let o=[];const r=Ti(t);if(void 0===t)return o;if("object"!==r)return o=o.concat([new se("terrain",t,`object expected, ${r} found`)]),o;for(const r in t)o=o.concat(a[r]?e.validateSpec({key:r,value:t[r],valueSpec:a[r],validateSpec:e.validateSpec,style:n,styleSpec:i}):[new se(r,t[r],`unknown property "${r}"`)]);return o}function wa(e){let t=[];const i=e.value,a=e.key;if(Array.isArray(i)){const n=[],o=[];for(const r in i)i[r].id&&n.includes(i[r].id)&&t.push(new se(a,i,`all the sprites' ids must be unique, but ${i[r].id} is duplicated`)),n.push(i[r].id),i[r].url&&o.includes(i[r].url)&&t.push(new se(a,i,`all the sprites' URLs must be unique, but ${i[r].url} is duplicated`)),o.push(i[r].url),t=t.concat(aa({key:`${a}[${r}]`,value:i[r],valueSpec:{id:{type:"string",required:!0},url:{type:"string",required:!0}},validateSpec:e.validateSpec}));return t}return fa({key:a,value:i})}const xa={"*":()=>[],array:na,boolean:function(e){const t=e.value,i=e.key,a=Ti(t);return"boolean"!==a?[new se(i,t,`boolean expected, ${a} found`)]:[]},number:oa,color:function(e){const t=e.key,i=e.value,a=Ti(i);return"string"!==a?[new se(t,i,`color expected, ${a} found`)]:Xe.parse(String(i))?[]:[new se(t,i,`color expected, "${i}" found`)]},constants:ea,enum:la,filter:da,function:ra,layer:pa,object:aa,source:ga,light:ya,terrain:va,string:fa,formatted:function(e){return 0===fa(e).length?[]:sa(e)},resolvedImage:function(e){return 0===fa(e).length?[]:sa(e)},padding:function(e){const t=e.key,i=e.value;if("array"===Ti(i)){if(i.length<1||i.length>4)return[new se(t,i,`padding requires 1 to 4 values; ${i.length} values found`)];const a={type:"number"};let n=[];for(let o=0;o<i.length;o++)n=n.concat(e.validateSpec({key:`${t}[${o}]`,value:i[o],validateSpec:e.validateSpec,valueSpec:a}));return n}return oa({key:t,value:i,valueSpec:{}})},variableAnchorOffsetCollection:function(e){const t=e.key,i=e.value,a=Ti(i),n=e.styleSpec;if("array"!==a||i.length<1||i.length%2!=0)return[new se(t,i,"variableAnchorOffsetCollection requires a non-empty array of even length")];let o=[];for(let a=0;a<i.length;a+=2)o=o.concat(la({key:`${t}[${a}]`,value:i[a],valueSpec:n.layout_symbol["text-anchor"]})),o=o.concat(na({key:`${t}[${a+1}]`,value:i[a+1],valueSpec:{length:2,value:"number"},validateSpec:e.validateSpec,style:e.style,styleSpec:n}));return o},sprite:wa};function ba(e){const t=e.value,i=e.valueSpec,a=e.styleSpec;return e.validateSpec=ba,i.expression&&Ci(ta(t))?ra(e):i.expression&&ji(ia(t))?sa(e):i.type&&xa[i.type]?xa[i.type](e):aa(le({},e,{valueSpec:i.type?a[i.type]:i}))}function ka(e){const t=e.value,i=e.key,a=fa(e);return a.length||(-1===t.indexOf("{fontstack}")&&a.push(new se(i,t,'"glyphs" url must include a "{fontstack}" token')),-1===t.indexOf("{range}")&&a.push(new se(i,t,'"glyphs" url must include a "{range}" token'))),a}function Sa(e,t=K){let i=[];return i=i.concat(ba({key:"",value:e,valueSpec:t.$root,styleSpec:t,style:e,validateSpec:ba,objectElementValidators:{glyphs:ka,"*":()=>[]}})),e.constants&&(i=i.concat(ea({key:"constants",value:e.constants,style:e,styleSpec:t,validateSpec:ba}))),Ca(i)}function Ta(e){return function(t){return e({...t,validateSpec:ba})}}function Ca(e){return[].concat(e).sort(((e,t)=>e.line-t.line))}function za(e){return function(...t){return Ca(e.apply(this,t))}}Sa.source=za(Ta(ga)),Sa.sprite=za(Ta(wa)),Sa.glyphs=za(Ta(ka)),Sa.light=za(Ta(ya)),Sa.terrain=za(Ta(va)),Sa.layer=za(Ta(pa)),Sa.filter=za(Ta(da)),Sa.paintProperty=za(Ta(ca)),Sa.layoutProperty=za(Ta(ma));const Pa=Sa,Ma=Pa.light,La=Pa.paintProperty,Aa=Pa.layoutProperty;function Ia(e,t){let i=!1;if(t&&t.length)for(const a of t)e.fire(new W(new Error(a.message))),i=!0;return i}class Ea{constructor(e,t,i){const a=this.cells=[];if(e instanceof ArrayBuffer){this.arrayBuffer=e;const n=new Int32Array(this.arrayBuffer);e=n[0],this.d=(t=n[1])+2*(i=n[2]);for(let e=0;e<this.d*this.d;e++){const t=n[3+e],i=n[3+e+1];a.push(t===i?null:n.subarray(t,i))}const o=n[3+a.length+1];this.keys=n.subarray(n[3+a.length],o),this.bboxes=n.subarray(o),this.insert=this._insertReadonly}else{this.d=t+2*i;for(let e=0;e<this.d*this.d;e++)a.push([]);this.keys=[],this.bboxes=[]}this.n=t,this.extent=e,this.padding=i,this.scale=t/e,this.uid=0;const n=i/t*e;this.min=-n,this.max=e+n}
vendor: 4,379 bytes, line 5
5insert(e,t,i,a,n){this._forEachCell(t,i,a,n,this._insertCell,this.uid++,void 0,void 0),this.keys.push(e),this.bboxes.push(t),this.bboxes.push(i),this.bboxes.push(a),this.bboxes.push(n)}_insertReadonly(){throw new Error("Cannot insert into a GridIndex created from an ArrayBuffer.")}_insertCell(e,t,i,a,n,o){this.cells[n].push(o)}query(e,t,i,a,n){const o=this.min,r=this.max;if(e<=o&&t<=o&&r<=i&&r<=a&&!n)return Array.prototype.slice.call(this.keys);{const o=[];return this._forEachCell(e,t,i,a,this._queryCell,o,{},n),o}}_queryCell(e,t,i,a,n,o,r,s){const l=this.cells[n];if(null!==l){const n=this.keys,d=this.bboxes;for(let u=0;u<l.length;u++){const h=l[u];if(void 0===r[h]){const l=4*h;(s?s(d[l+0],d[l+1],d[l+2],d[l+3]):e<=d[l+2]&&t<=d[l+3]&&i>=d[l+0]&&a>=d[l+1])?(r[h]=!0,o.push(n[h])):r[h]=!1}}}}_forEachCell(e,t,i,a,n,o,r,s){const l=this._convertToCellCoord(e),d=this._convertToCellCoord(t),u=this._convertToCellCoord(i),h=this._convertToCellCoord(a);for(let c=l;c<=u;c++)for(let l=d;l<=h;l++){const d=this.d*l+c;if((!s||s(this._convertFromCellCoord(c),this._convertFromCellCoord(l),this._convertFromCellCoord(c+1),this._convertFromCellCoord(l+1)))&&n.call(this,e,t,i,a,d,o,r,s))return}}_convertFromCellCoord(e){return(e-this.padding)/this.scale}_convertToCellCoord(e){return Math.max(0,Math.min(this.d-1,Math.floor(e*this.scale)+this.padding))}toArrayBuffer(){if(this.arrayBuffer)return this.arrayBuffer;const e=this.cells,t=3+this.cells.length+1+1;let i=0;for(let e=0;e<this.cells.length;e++)i+=this.cells[e].length;const a=new Int32Array(t+i+this.keys.length+this.bboxes.length);a[0]=this.extent,a[1]=this.n,a[2]=this.padding;let n=t;for(let t=0;t<e.length;t++){const i=e[t];a[3+t]=n,a.set(i,n),n+=i.length}return a[3+e.length]=n,a.set(this.keys,n),n+=this.keys.length,a[3+e.length+1]=n,a.set(this.bboxes,n),n+=this.bboxes.length,a.buffer}static serialize(e,t){const i=e.toArrayBuffer();return t&&t.push(i),{buffer:i}}static deserialize(e){return new Ea(e.buffer)}}const Da={};function ja(e,t,i={}){if(Da[e])throw new Error(`${e} is already registered.`);Object.defineProperty(t,"_classRegistryKey",{value:e,writeable:!1}),Da[e]={klass:t,omit:i.omit||[],shallow:i.shallow||[]}}ja("Object",Object),ja("TransferableGridIndex",Ea),ja("Color",Xe),ja("Error",Error),ja("AJAXError",R),ja("ResolvedImage",at),ja("StylePropertyFunction",Oi),ja("StyleExpression",Di,{omit:["_evaluator"]}),ja("ZoomDependentExpression",Bi),ja("ZoomConstantExpression",Ri),ja("CompoundExpression",$t,{omit:["_evaluate"]});for(const e in fi)fi[e]._classRegistryKey||ja(`Expression_${e}`,fi[e]);function $a(e){return e&&"undefined"!=typeof ArrayBuffer&&(e instanceof ArrayBuffer||e.constructor&&"ArrayBuffer"===e.constructor.name)}function Ra(e,t){if(null==e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||e instanceof Boolean||e instanceof Number||e instanceof String||e instanceof Date||e instanceof RegExp||e instanceof Blob)return e;if($a(e))return t&&t.push(e),e;if(P(e))return t&&t.push(e),e;if(ArrayBuffer.isView(e)){const i=e;return t&&t.push(i.buffer),i}if(e instanceof ImageData)return t&&t.push(e.data.buffer),e;if(Array.isArray(e)){const i=[];for(const a of e)i.push(Ra(a,t));return i}if("object"==typeof e){const i=e.constructor,a=i._classRegistryKey;if(!a)throw new Error("can't serialize object of unregistered class");if(!Da[a])throw new Error(`${a} is not registered.`);const n=i.serialize?i.serialize(e,t):{};if(i.serialize){if(t&&n===t[t.length-1])throw new Error("statically serialized object won't survive transfer of $name property")}else{for(const i in e){if(!e.hasOwnProperty(i))continue;if(Da[a].omit.indexOf(i)>=0)continue;const o=e[i];n[i]=Da[a].shallow.indexOf(i)>=0?o:Ra(o,t)}e instanceof Error&&(n.message=e.message)}if(n.$name)throw new Error("$name property is reserved for worker serialization logic.");return"Object"!==a&&(n.$name=a),n}throw new Error("can't serialize object of type "+typeof e)}function Ba(e){if(null==e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||e instanceof Boolean||e instanceof Number||e instanceof String||e instanceof Date||e instanceof RegExp||e instanceof Blob||$a(e)||P(e)||ArrayBuffer.isView(e)||e instanceof ImageData)return e;if(Array.isArray(e))return e.map(Ba);if("object"==typeof e){const t=e.$name||"Object";if(!Da[t])throw new Error(`can't deserialize unregistered class ${t}`);const{klass:i}=Da[t];
5if(!i)throw new Error(`can't deserialize unregistered class ${t}`);if(i.deserialize)return i.deserialize(e);const a=Object.create(i.prototype);for(const i of Object.keys(e)){if("$name"===i)continue;const n=e[i];a[i]=Da[t].shallow.indexOf(i)>=0?n:Ba(n)}return a}throw new Error("can't deserialize object of type "+typeof e)}class Fa{constructor(){this.first=!0}update(e,t){const i=Math.floor(e);return this.first?(this.first=!1,this.lastIntegerZoom=i,this.lastIntegerZoomTime=0,this.lastZoom=e,this.lastFloorZoom=i,!0):(this.lastFloorZoom>i?(this.lastIntegerZoom=i+1,this.lastIntegerZoomTime=t):this.lastFloorZoom<i&&(this.lastIntegerZoom=i,this.lastIntegerZoomTime=t),e!==this.lastZoom&&(this.lastZoom=e,this.lastFloorZoom=i,!0))}}const Oa={"Latin-1 Supplement":e=>e>=128&&e<=255,Arabic:e=>e>=1536&&e<=1791,"Arabic Supplement":e=>e>=1872&&e<=1919,"Arabic Extended-A":e=>e>=2208&&e<=2303,"Hangul Jamo":e=>e>=4352&&e<=4607,"Unified Canadian Aboriginal Syllabics":e=>e>=5120&&e<=5759,Khmer:e=>e>=6016&&e<=6143,"Unified Canadian Aboriginal Syllabics Extended":e=>e>=6320&&e<=6399,"General Punctuation":e=>e>=8192&&e<=8303,"Letterlike Symbols":e=>e>=8448&&e<=8527,"Number Forms":e=>e>=8528&&e<=8591,"Miscellaneous Technical":e=>e>=8960&&e<=9215,"Control Pictures":e=>e>=9216&&e<=9279,"Optical Character Recognition":e=>e>=9280&&e<=9311,"Enclosed Alphanumerics":e=>e>=9312&&e<=9471,"Geometric Shapes":e=>e>=9632&&e<=9727,"Miscellaneous Symbols":e=>e>=9728&&e<=9983,"Miscellaneous Symbols and Arrows":e=>e>=11008&&e<=11263,"CJK Radicals Supplement":e=>e>=11904&&e<=12031,"Kangxi Radicals":e=>e>=12032&&e<=12255,"Ideographic Description Characters":e=>e>=12272&&e<=12287,"CJK Symbols and Punctuation":e=>e>=12288&&e<=12351,Hiragana:e=>e>=12352&&e<=12447,Katakana:e=>e>=12448&&e<=12543,Bopomofo:e=>e>=12544&&e<=12591,"Hangul Compatibility Jamo":e=>e>=12592&&e<=12687,Kanbun:e=>e>=12688&&e<=12703,"Bopomofo Extended":e=>e>=12704&&e<=12735,"CJK Strokes":e=>e>=12736&&e<=12783,"Katakana Phonetic Extensions":e=>e>=12784&&e<=12799,"Enclosed CJK Letters and Months":e=>e>=12800&&e<=13055,"CJK Compatibility":e=>e>=13056&&e<=13311,"CJK Unified Ideographs Extension A":e=>e>=13312&&e<=19903,"Yijing Hexagram Symbols":e=>e>=19904&&e<=19967,"CJK Unified Ideographs":e=>e>=19968&&e<=40959,"Yi Syllables":e=>e>=40960&&e<=42127,"Yi Radicals":e=>e>=42128&&e<=42191,"Hangul Jamo Extended-A":e=>e>=43360&&e<=43391,"Hangul Syllables":e=>e>=44032&&e<=55215,"Hangul Jamo Extended-B":e=>e>=55216&&e<=55295,"Private Use Area":e=>e>=57344&&e<=63743,"CJK Compatibility Ideographs":e=>e>=63744&&e<=64255,"Arabic Presentation Forms-A":e=>e>=64336&&e<=65023,"Vertical Forms":e=>e>=65040&&e<=65055,"CJK Compatibility Forms":e=>e>=65072&&e<=65103,"Small Form Variants":e=>e>=65104&&e<=65135,"Arabic Presentation Forms-B":e=>e>=65136&&e<=65279,"Halfwidth and Fullwidth Forms":e=>e>=65280&&e<=65519};function Na(e){for(const t of e)if(Za(t.charCodeAt(0)))return!0;return!1}function Va(e){for(const t of e)if(!Ua(t.charCodeAt(0)))return!1;return!0}function Ua(e){return!(Oa.Arabic(e)||Oa["Arabic Supplement"](e)||Oa["Arabic Extended-A"](e)||Oa["Arabic Presentation Forms-A"](e)||Oa["Arabic Presentation Forms-B"](e))}function Za(e){return!(746!==e&&747!==e&&(e<4352||!(Oa["Bopomofo Extended"](e)||Oa.Bopomofo(e)||Oa["CJK Compatibility Forms"](e)&&!(e>=65097&&e<=65103)||Oa["CJK Compatibility Ideographs"](e)||Oa["CJK Compatibility"](e)||Oa["CJK Radicals Supplement"](e)||Oa["CJK Strokes"](e)||!(!Oa["CJK Symbols and Punctuation"](e)||e>=12296&&e<=12305||e>=12308&&e<=12319||12336===e)||Oa["CJK Unified Ideographs Extension A"](e)||Oa["CJK Unified Ideographs"](e)||Oa["Enclosed CJK Letters and Months"](e)||Oa["Hangul Compatibility Jamo"](e)||Oa["Hangul Jamo Extended-A"](e)||Oa["Hangul Jamo Extended-B"](e)||Oa["Hangul Jamo"](e)||Oa["Hangul Syllables"](e)||Oa.Hiragana(e)||Oa["Ideographic Description Characters"](e)||Oa.Kanbun(e)||Oa["Kangxi Radicals"](e)||Oa["Katakana Phonetic Extensions"](e)||Oa.Katakana(e)&&12540!==e||!(!Oa["Halfwidth and Fullwidth Forms"](e)||65288===e||65289===e||65293===e||e>=65306&&e<=65310||65339===e||65341===e||65343===e||e>=65371&&e<=65503||65507===e||e>=65512&&e<=65519)||!(!Oa["Small Form Variants"](e)||e>=65112&&e<=65118||e>=65123&&e<=65126)||Oa["Unified Canadian Aboriginal Syllabics"](e)||Oa["Unified Canadian Aboriginal Syllabics Extended"](e)||Oa["Vertical Forms"](e)||Oa["Yijing Hexagram Symbols"](e)||Oa["Yi Syllables"](e)||Oa["Yi Radicals"](e))))}function qa(e){return!(Za(e)||function(e){return!!(Oa["Latin-1 Supplement"](e)&&(167===e||169===e||174===e||177===e||188===e||189===e||190===e||215===e||247===e)||Oa["General Punctuation"](e)&&(8214===e||8224===e||8225===e||8240===e||8241===e||8251===e||8252===e||8258===e||8263===e||8264===e||8265===e||8273===e)||Oa["Letterlike Symbols"](e)||Oa["Number Forms"](e)||Oa["Miscellaneous Technical"](e)&&(e>=8960&&e<=8967||e>=8972&&e<=8991||e>=8996&&e<=9e3||9003===e||e>=9085&&e<=9114||e>=9150&&e<=9165||9167===e||e>=9169&&e<=9179||e>=9186&&e<=9215)||Oa["Control Pictures"](e)&&9251!==e||Oa["Optical Character Recognition"](e)||Oa["Enclosed Alphanumerics"](e)||Oa["Geometric Shapes"](e)||Oa["Miscellaneous Symbols"](e)&&!(e>=9754&&e<=9759)||Oa["Miscellaneous Symbols and Arrows"](e)&&(e>=11026&&e<=11055||e>=11088&&e<=11097||e>=11192&&e<=11243)||Oa["CJK Symbols and Punctuation"](e)||Oa.Katakana(e)||Oa["Private Use Area"](e)||Oa["CJK Compatibility Forms"](e)||Oa["Small Form Variants"](e)||Oa["Halfwidth and Fullwidth Forms"](e)||8734===e||8756===e||8757===e||e>=9984&&e<=10087||e>=10102&&e<=10131||65532===e||65533===e)}(e))}function Ga(e){return e>=1424&&e<=2303||Oa["Arabic Presentation Forms-A"](e)||Oa["Arabic Presentation Forms-B"](e)}function Wa(e,t){return!(!t&&Ga(e)||e>=2304&&e<=3583||e>=3840&&e<=4255||Oa.Khmer(e))}function Ha(e){for(const t of e)if(Ga(t.charCodeAt(0)))return!0;return!1}const Ka="deferred",Xa="loading",Ja="loaded";let Ya=null,Qa="unavailable",en=null;const tn=function(e){e&&"string"==typeof e&&e.indexOf("NetworkError")>-1&&(Qa="error"),Ya&&Ya(e)};function an(){nn.fire(new G("pluginStateChange",{pluginStatus:Qa,pluginURL:en}))}const nn=new H,on=function(){return Qa}
vendor: 43,908 bytes, line 5
5,rn=function(){if(Qa!==Ka||!en)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");Qa=Xa,an(),en&&V({url:en},(e=>{e?tn(e):(Qa=Ja,an())}))},sn={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:()=>Qa===Ja||null!=sn.applyArabicShaping,isLoading:()=>Qa===Xa,setState(e){if(!C())throw new Error("Cannot set the state of the rtl-text-plugin when not in the web-worker context");Qa=e.pluginStatus,en=e.pluginURL},isParsed(){if(!C())throw new Error("rtl-text-plugin is only parsed on the worker-threads");return null!=sn.applyArabicShaping&&null!=sn.processBidirectionalText&&null!=sn.processStyledBidirectionalText},getPluginURL(){if(!C())throw new Error("rtl-text-plugin url can only be queried from the worker threads");return en}};class ln{constructor(e,t){this.zoom=e,t?(this.now=t.now,this.fadeDuration=t.fadeDuration,this.zoomHistory=t.zoomHistory,this.transition=t.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new Fa,this.transition={})}isSupportedScript(e){return function(e,t){for(const i of e)if(!Wa(i.charCodeAt(0),t))return!1;return!0}(e,sn.isLoaded())}crossFadingFactor(){return 0===this.fadeDuration?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)}getCrossfadeParameters(){const e=this.zoom,t=e-Math.floor(e),i=this.crossFadingFactor();return e>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:t+(1-t)*i}:{fromScale:.5,toScale:1,t:1-(1-i)*t}}}class dn{constructor(e,t){this.property=e,this.value=t,this.expression=function(e,t){if(Ci(e))return new Oi(e,t);if(ji(e)){const i=Fi(e,t);if("error"===i.result)throw new Error(i.value.map((e=>`${e.key}: ${e.message}`)).join(", "));return i.value}{let i=e;return"color"===t.type&&"string"==typeof e?i=Xe.parse(e):"padding"!==t.type||"number"!=typeof e&&!Array.isArray(e)?"variableAnchorOffsetCollection"===t.type&&Array.isArray(e)&&(i=it.parse(e)):i=et.parse(e),{kind:"constant",evaluate:()=>i}}}(void 0===t?e.specification.default:t,e.specification)}isDataDriven(){return"source"===this.expression.kind||"composite"===this.expression.kind}possiblyEvaluate(e,t,i){return this.property.possiblyEvaluate(this,e,t,i)}}class un{constructor(e){this.property=e,this.value=new dn(e,void 0)}transitioned(e,t){return new cn(this.property,this.value,t,g({},e.transition,this.transition),e.now)}untransitioned(){return new cn(this.property,this.value,null,{},0)}}class hn{constructor(e){this._properties=e,this._values=Object.create(e.defaultTransitionablePropertyValues)}getValue(e){return x(this._values[e].value.value)}setValue(e,t){Object.prototype.hasOwnProperty.call(this._values,e)||(this._values[e]=new un(this._values[e].property)),this._values[e].value=new dn(this._values[e].property,null===t?void 0:x(t))}getTransition(e){return x(this._values[e].transition)}setTransition(e,t){Object.prototype.hasOwnProperty.call(this._values,e)||(this._values[e]=new un(this._values[e].property)),this._values[e].transition=x(t)||void 0}serialize(){const e={};for(const t of Object.keys(this._values)){const i=this.getValue(t);void 0!==i&&(e[t]=i);const a=this.getTransition(t);void 0!==a&&(e[`${t}-transition`]=a)}return e}transitioned(e,t){const i=new mn(this._properties);for(const a of Object.keys(this._values))i._values[a]=this._values[a].transitioned(e,t._values[a]);return i}untransitioned(){const e=new mn(this._properties);for(const t of Object.keys(this._values))e._values[t]=this._values[t].untransitioned();return e}}class cn{constructor(e,t,i,a,n){this.property=e,this.value=t,this.begin=n+a.delay||0,this.end=this.begin+a.duration||0,e.specification.transition&&(a.delay||a.duration)&&(this.prior=i)}possiblyEvaluate(e,t,i){const a=e.now||0,n=this.value.possiblyEvaluate(e,t,i),o=this.prior;if(o){if(a>this.end)return this.prior=null,n;if(this.value.isDataDriven())return this.prior=null,n;if(a<this.begin)return o.possiblyEvaluate(e,t,i);{const r=(a-this.begin)/(this.end-this.begin);return this.property.interpolate(o.possiblyEvaluate(e,t,i),n,function(e){if(e<=0)return 0;if(e>=1)return 1;const t=e*e,i=t*e;return 4*(e<.5?i:3*(e-t)+i-.75)}(r))}}return n}}class mn{constructor(e){this._properties=e,this._values=Object.create(e.defaultTransitioningPropertyValues)}possiblyEvaluate(e,t,i){const a=new _n(this._properties);for(const n of Object.keys(this._values))a._values[n]=this._values[n].possiblyEvaluate(e,t,i);return a}hasTransition(){for(const e of Object.keys(this._values))if(this._values[e].prior)return!0;return!1}}class pn{constructor(e){this._properties=e,this._values=Object.create(e.defaultPropertyValues)}hasValue(e){return void 0!==this._values[e].value}getValue(e){return x(this._values[e].value)}setValue(e,t){this._values[e]=new dn(this._values[e].property,null===t?void 0:x(t))}serialize(){const e={};for(const t of Object.keys(this._values)){const i=this.getValue(t);void 0!==i&&(e[t]=i)}return e}possiblyEvaluate(e,t,i){const a=new _n(this._properties);for(const n of Object.keys(this._values))a._values[n]=this._values[n].possiblyEvaluate(e,t,i);return a}}class fn{constructor(e,t,i){this.property=e,this.value=t,this.parameters=i}isConstant(){return"constant"===this.value.kind}constantOr(e){return"constant"===this.value.kind?this.value.value:e}evaluate(e,t,i,a){return this.property.evaluate(this.value,this.parameters,e,t,i,a)}}class _n{constructor(e){this._properties=e,this._values=Object.create(e.defaultPossiblyEvaluatedValues)}get(e){return this._values[e]}}class gn{constructor(e){this.specification=e}possiblyEvaluate(e,t){if(e.isDataDriven())throw new Error("Value should not be data driven");return e.expression.evaluate(t)}interpolate(e,t,i){const a=qt[this.specification.type];return a?a(e,t,i):e}}class yn{constructor(e,t){this.specification=e,this.overrides=t}possiblyEvaluate(e,t,i,a){return new fn(this,"constant"===e.expression.kind||"camera"===e.expression.kind?{kind:"constant",value:e.expression.evaluate(t,null,{},i,a)}:e.expression,t)}interpolate(e,t,i){if("constant"!==e.value.kind||"constant"!==t.value.kind)return e;if(void 0===e.value.value||void 0===t.value.value)return new fn(this,{kind:"constant",value:void 0},e.parameters);const a=qt[this.specification.type];if(a){const n=a(e.value.value,t.value.value,i);return new fn(this,{kind:"constant",value:n},e.parameters)}return e}evaluate(e,t,i,a,n,o){return"constant"===e.kind?e.value:e.evaluate(t,i,a,n,o)}}class vn extends yn{possiblyEvaluate(e,t,i,a){if(void 0===e.value)return new fn(this,{kind:"constant",value:void 0},t);if("constant"===e.expression.kind){const n=e.expression.evaluate(t,null,{},i,a),o="resolvedImage"===e.property.specification.type&&"string"!=typeof n?n.name:n,r=this._calculate(o,o,o,t);return new fn(this,{kind:"constant",value:r},t)}if("camera"===e.expression.kind){const i=this._calculate(e.expression.evaluate({zoom:t.zoom-1}),e.expression.evaluate({zoom:t.zoom}),e.expression.evaluate({zoom:t.zoom+1}),t);return new fn(this,{kind:"constant",value:i},t)}return new fn(this,e.expression,t)}evaluate(e,t,i,a,n,o){if("source"===e.kind){const r=e.evaluate(t,i,a,n,o);return this._calculate(r,r,r,t)}return"composite"===e.kind?this._calculate(e.evaluate({zoom:Math.floor(t.zoom)-1},i,a),e.evaluate({zoom:Math.floor(t.zoom)},i,a),e.evaluate({zoom:Math.floor(t.zoom)+1},i,a),t):e.value}_calculate(e,t,i,a){return a.zoom>a.zoomHistory.lastIntegerZoom?{from:e,to:t}:{from:i,to:t}}interpolate(e){return e}}class wn{constructor(e){this.specification=e}possiblyEvaluate(e,t,i,a){if(void 0!==e.value){if("constant"===e.expression.kind){const n=e.expression.evaluate(t,null,{},i,a);return this._calculate(n,n,n,t)}return this._calculate(e.expression.evaluate(new ln(Math.floor(t.zoom-1),t)),e.expression.evaluate(new ln(Math.floor(t.zoom),t)),e.expression.evaluate(new ln(Math.floor(t.zoom+1),t)),t)}}_calculate(e,t,i,a){return a.zoom>a.zoomHistory.lastIntegerZoom?{from:e,to:t}:{from:i,to:t}}interpolate(e){return e}}class xn{constructor(e){this.specification=e}possiblyEvaluate(e,t,i,a){return!!e.expression.evaluate(t,null,{},i,a)}interpolate(){return!1}}class bn{constructor(e){this.properties=e,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(const t in e){const i=e[t];i.specification.overridable&&this.overridableProperties.push(t);const a=this.defaultPropertyValues[t]=new dn(i,void 0),n=this.defaultTransitionablePropertyValues[t]=new un(i);this.defaultTransitioningPropertyValues[t]=n.untransitioned(),this.defaultPossiblyEvaluatedValues[t]=a.possiblyEvaluate({})}}}ja("DataDrivenProperty",yn),ja("DataConstantProperty",gn),ja("CrossFadedDataDrivenProperty",vn),ja("CrossFadedProperty",wn),ja("ColorRampProperty",xn);const kn="-transition";class Sn extends H{constructor(e,t){if(super(),this.id=e.id,this.type=e.type,this._featureFilter={filter:()=>!0,needGeometry:!1},"custom"!==e.type&&(this.metadata=e.metadata,this.minzoom=e.minzoom,this.maxzoom=e.maxzoom,"background"!==e.type&&(this.source=e.source,this.sourceLayer=e["source-layer"],this.filter=e.filter),t.layout&&(this._unevaluatedLayout=new pn(t.layout)),t.paint)){this._transitionablePaint=new hn(t.paint);for(const t in e.paint)this.setPaintProperty(t,e.paint[t],{validate:!1});for(const t in e.layout)this.setLayoutProperty(t,e.layout[t],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new _n(t.paint)}}getCrossfadeParameters(){return this._crossfadeParameters}getLayoutProperty(e){return"visibility"===e?this.visibility:this._unevaluatedLayout.getValue(e)}setLayoutProperty(e,t,i={}){null!=t&&this._validate(Aa,`layers.${this.id}.layout.${e}`,e,t,i)||("visibility"!==e?this._unevaluatedLayout.setValue(e,t):this.visibility=t)}getPaintProperty(e){return e.endsWith(kn)?this._transitionablePaint.getTransition(e.slice(0,-11)):this._transitionablePaint.getValue(e)}setPaintProperty(e,t,i={}){if(null!=t&&this._validate(La,`layers.${this.id}.paint.${e}`,e,t,i))return!1;if(e.endsWith(kn))return this._transitionablePaint.setTransition(e.slice(0,-11),t||void 0),!1;{const i=this._transitionablePaint._values[e],a="cross-faded-data-driven"===i.property.specification["property-type"],n=i.value.isDataDriven(),o=i.value;this._transitionablePaint.setValue(e,t),this._handleSpecialPaintPropertyUpdate(e);const r=this._transitionablePaint._values[e].value;return r.isDataDriven()||n||a||this._handleOverridablePaintPropertyUpdate(e,o,r)}}_handleSpecialPaintPropertyUpdate(e){}_handleOverridablePaintPropertyUpdate(e,t,i){return!1}isHidden(e){return!!(this.minzoom&&e<this.minzoom)||!!(this.maxzoom&&e>=this.maxzoom)||"none"===this.visibility}updateTransitions(e){this._transitioningPaint=this._transitionablePaint.transitioned(e,this._transitioningPaint)}hasTransition(){return this._transitioningPaint.hasTransition()}recalculate(e,t){e.getCrossfadeParameters&&(this._crossfadeParameters=e.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(e,void 0,t)),this.paint=this._transitioningPaint.possiblyEvaluate(e,void 0,t)}serialize(){const e={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(e.layout=e.layout||{},e.layout.visibility=this.visibility),w(e,((e,t)=>!(void 0===e||"layout"===t&&!Object.keys(e).length||"paint"===t&&!Object.keys(e).length)))}_validate(e,t,i,a,n={}){return(!n||!1!==n.validate)&&Ia(this,e.call(Pa,{key:t,layerType:this.type,objectKey:i,value:a,styleSpec:K,style:{glyphs:!0,sprite:!0}}))}is3D(){return!1}isTileClipped(){return!1}hasOffscreenPass(){return!1}resize(){}isStateDependent(){for(const e in this.paint._values){const t=this.paint.get(e);if(t instanceof fn&&bi(t.property.specification)&&("source"===t.value.kind||"composite"===t.value.kind)&&t.value.isStateDependent)return!0}return!1}}const Tn={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array};class Cn{constructor(e,t){this._structArray=e,this._pos1=t*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8}}class zn{constructor(){this.isTransferred=!1,this.capacity=-1,this.resize(0)}static serialize(e,t){return e._trim(),t&&(e.isTransferred=!0,t.push(e.arrayBuffer)),{length:e.length,arrayBuffer:e.arrayBuffer}}static deserialize(e){const t=Object.create(this.prototype);return t.arrayBuffer=e.arrayBuffer,t.length=e.length,t.capacity=e.arrayBuffer.byteLength/t.bytesPerElement,t._refreshViews(),t}_trim(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())}clear(){this.length=0}resize(e){this.reserve(e),this.length=e}reserve(e){if(e>this.capacity){this.capacity=Math.max(e,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);const t=this.uint8;this._refreshViews(),t&&this.uint8.set(t)}}_refreshViews(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")}}function Pn(e,t=1){let i=0,a=0;return{members:e.map((e=>{const n=Tn[e.type].BYTES_PER_ELEMENT,o=i=Mn(i,Math.max(t,n)),r=e.components||1;return a=Math.max(a,n),i+=n*r,{name:e.name,type:e.type,components:r,offset:o}})),size:Mn(i,Math.max(a,t)),alignment:t}}function Mn(e,t){return Math.ceil(e/t)*t}class Ln extends zn{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t){const i=this.length;return this.resize(i+1),this.emplace(i,e,t)}emplace(e,t,i){const a=2*e;return this.int16[a+0]=t,this.int16[a+1]=i,e}}Ln.prototype.bytesPerElement=4,ja("StructArrayLayout2i4",Ln);class An extends zn{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,i){const a=this.length;return this.resize(a+1),this.emplace(a,e,t,i)}emplace(e,t,i,a){const n=3*e;return this.int16[n+0]=t,this.int16[n+1]=i,this.int16[n+2]=a,e}}An.prototype.bytesPerElement=6,ja("StructArrayLayout3i6",An);class In extends zn{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,i,a){const n=this.length;return this.resize(n+1),this.emplace(n,e,t,i,a)}emplace(e,t,i,a,n){const o=4*e;return this.int16[o+0]=t,this.int16[o+1]=i,this.int16[o+2]=a,this.int16[o+3]=n,e}}In.prototype.bytesPerElement=8,ja("StructArrayLayout4i8",In);class En extends zn{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,i,a,n,o){const r=this.length;return this.resize(r+1),this.emplace(r,e,t,i,a,n,o)}emplace(e,t,i,a,n,o,r){const s=6*e;return this.int16[s+0]=t,this.int16[s+1]=i,this.int16[s+2]=a,this.int16[s+3]=n,this.int16[s+4]=o,this.int16[s+5]=r,e}}En.prototype.bytesPerElement=12,ja("StructArrayLayout2i4i12",En);class Dn extends zn{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,i,a,n,o){const r=this.length;return this.resize(r+1),this.emplace(r,e,t,i,a,n,o)}emplace(e,t,i,a,n,o,r){const s=4*e,l=8*e;return this.int16[s+0]=t,this.int16[s+1]=i,this.uint8[l+4]=a,this.uint8[l+5]=n,this.uint8[l+6]=o,this.uint8[l+7]=r,e}}Dn.prototype.bytesPerElement=8,ja("StructArrayLayout2i4ub8",Dn);class jn extends zn{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t){const i=this.length;return this.resize(i+1),this.emplace(i,e,t)}emplace(e,t,i){const a=2*e;return this.float32[a+0]=t,this.float32[a+1]=i,e}}jn.prototype.bytesPerElement=8,ja("StructArrayLayout2f8",jn);class $n extends zn{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,i,a,n,o,r,s,l,d){const u=this.length;return this.resize(u+1),this.emplace(u,e,t,i,a,n,o,r,s,l,d)}emplace(e,t,i,a,n,o,r,s,l,d,u){const h=10*e;return this.uint16[h+0]=t,this.uint16[h+1]=i,this.uint16[h+2]=a,this.uint16[h+3]=n,this.uint16[h+4]=o,this.uint16[h+5]=r,this.uint16[h+6]=s,this.uint16[h+7]=l,this.uint16[h+8]=d,this.uint16[h+9]=u,e}}$n.prototype.bytesPerElement=20,ja("StructArrayLayout10ui20",$n);class Rn extends zn{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,i,a,n,o,r,s,l,d,u,h){const c=this.length;return this.resize(c+1),this.emplace(c,e,t,i,a,n,o,r,s,l,d,u,h)}emplace(e,t,i,a,n,o,r,s,l,d,u,h,c){const m=12*e;return this.int16[m+0]=t,this.int16[m+1]=i,this.int16[m+2]=a,this.int16[m+3]=n,this.uint16[m+4]=o,this.uint16[m+5]=r,this.uint16[m+6]=s,this.uint16[m+7]=l,this.int16[m+8]=d,this.int16[m+9]=u,this.int16[m+10]=h,this.int16[m+11]=c,e}}Rn.prototype.bytesPerElement=24,ja("StructArrayLayout4i4ui4i24",Rn);class Bn extends zn{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,i){const a=this.length;return this.resize(a+1),this.emplace(a,e,t,i)}emplace(e,t,i,a){const n=3*e;return this.float32[n+0]=t,this.float32[n+1]=i,this.float32[n+2]=a,e}}Bn.prototype.bytesPerElement=12,ja("StructArrayLayout3f12",Bn);class Fn extends zn{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(e){const t=this.length;return this.resize(t+1),this.emplace(t,e)}emplace(e,t){return this.uint32[1*e+0]=t,e}}Fn.prototype.bytesPerElement=4,ja("StructArrayLayout1ul4",Fn);class On extends zn{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,i,a,n,o,r,s,l){const d=this.length;return this.resize(d+1),this.emplace(d,e,t,i,a,n,o,r,s,l)}emplace(e,t,i,a,n,o,r,s,l,d){const u=10*e,h=5*e;return this.int16[u+0]=t,this.int16[u+1]=i,this.int16[u+2]=a,this.int16[u+3]=n,this.int16[u+4]=o,this.int16[u+5]=r,this.uint32[h+3]=s,this.uint16[u+8]=l,this.uint16[u+9]=d,e}}On.prototype.bytesPerElement=20,ja("StructArrayLayout6i1ul2ui20",On);class Nn extends zn{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,i,a,n,o){const r=this.length;return this.resize(r+1),this.emplace(r,e,t,i,a,n,o)}emplace(e,t,i,a,n,o,r){const s=6*e;return this.int16[s+0]=t,this.int16[s+1]=i,this.int16[s+2]=a,this.int16[s+3]=n,this.int16[s+4]=o,this.int16[s+5]=r,e}}Nn.prototype.bytesPerElement=12,ja("StructArrayLayout2i2i2i12",Nn);class Vn extends zn{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,i,a,n){const o=this.length;return this.resize(o+1),this.emplace(o,e,t,i,a,n)}emplace(e,t,i,a,n,o){const r=4*e,s=8*e;return this.float32[r+0]=t,this.float32[r+1]=i,this.float32[r+2]=a,this.int16[s+6]=n,this.int16[s+7]=o,e}}Vn.prototype.bytesPerElement=16,ja("StructArrayLayout2f1f2i16",Vn);class Un extends zn{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,i,a){const n=this.length;return this.resize(n+1),this.emplace(n,e,t,i,a)}emplace(e,t,i,a,n){const o=12*e,r=3*e;return this.uint8[o+0]=t,this.uint8[o+1]=i,this.float32[r+1]=a,this.float32[r+2]=n,e}}Un.prototype.bytesPerElement=12,ja("StructArrayLayout2ub2f12",Un);class Zn extends zn{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,i){const a=this.length;return this.resize(a+1),this.emplace(a,e,t,i)}emplace(e,t,i,a){const n=3*e;return this.uint16[n+0]=t,this.uint16[n+1]=i,this.uint16[n+2]=a,e}}Zn.prototype.bytesPerElement=6,ja("StructArrayLayout3ui6",Zn);class qn extends zn{_refreshViews(){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)}emplaceBack(e,t,i,a,n,o,r,s,l,d,u,h,c,m,p,f,_){const g=this.length;return this.resize(g+1),this.emplace(g,e,t,i,a,n,o,r,s,l,d,u,h,c,m,p,f,_)}emplace(e,t,i,a,n,o,r,s,l,d,u,h,c,m,p,f,_,g){const y=24*e,v=12*e,w=48*e;return this.int16[y+0]=t,this.int16[y+1]=i,this.uint16[y+2]=a,this.uint16[y+3]=n,this.uint32[v+2]=o,this.uint32[v+3]=r,this.uint32[v+4]=s,this.uint16[y+10]=l,this.uint16[y+11]=d,this.uint16[y+12]=u,this.float32[v+7]=h,this.float32[v+8]=c,this.uint8[w+36]=m,this.uint8[w+37]=p,this.uint8[w+38]=f,this.uint32[v+10]=_,this.int16[y+22]=g,e}}qn.prototype.bytesPerElement=48,ja("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",qn);class Gn extends zn{_refreshViews(){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)}emplaceBack(e,t,i,a,n,o,r,s,l,d,u,h,c,m,p,f,_,g,y,v,w,x,b,k,S,T,C,z){const P=this.length;return this.resize(P+1),this.emplace(P,e,t,i,a,n,o,r,s,l,d,u,h,c,m,p,f,_,g,y,v,w,x,b,k,S,T,C,z)}emplace(e,t,i,a,n,o,r,s,l,d,u,h,c,m,p,f,_,g,y,v,w,x,b,k,S,T,C,z,P){const M=32*e,L=16*e;return this.int16[M+0]=t,this.int16[M+1]=i,this.int16[M+2]=a,this.int16[M+3]=n,this.int16[M+4]=o,this.int16[M+5]=r,this.int16[M+6]=s,this.int16[M+7]=l,this.uint16[M+8]=d,this.uint16[M+9]=u,this.uint16[M+10]=h,this.uint16[M+11]=c,this.uint16[M+12]=m,this.uint16[M+13]=p,this.uint16[M+14]=f,this.uint16[M+15]=_,this.uint16[M+16]=g,this.uint16[M+17]=y,this.uint16[M+18]=v,this.uint16[M+19]=w,this.uint16[M+20]=x,this.uint16[M+21]=b,this.uint16[M+22]=k,this.uint32[L+12]=S,this.float32[L+13]=T,this.float32[L+14]=C,this.uint16[M+30]=z,this.uint16[M+31]=P,e}}Gn.prototype.bytesPerElement=64,ja("StructArrayLayout8i15ui1ul2f2ui64",Gn);class Wn extends zn{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e){const t=this.length;return this.resize(t+1),this.emplace(t,e)}emplace(e,t){return this.float32[1*e+0]=t,e}}Wn.prototype.bytesPerElement=4,ja("StructArrayLayout1f4",Wn);class Hn extends zn{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,i){const a=this.length;return this.resize(a+1),this.emplace(a,e,t,i)}emplace(e,t,i,a){const n=3*e;return this.uint16[6*e+0]=t,this.float32[n+1]=i,this.float32[n+2]=a,e}}Hn.prototype.bytesPerElement=12,ja("StructArrayLayout1ui2f12",Hn);class Kn extends zn{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,i){const a=this.length;return this.resize(a+1),this.emplace(a,e,t,i)}emplace(e,t,i,a){const n=4*e;return this.uint32[2*e+0]=t,this.uint16[n+2]=i,this.uint16[n+3]=a,e}}Kn.prototype.bytesPerElement=8,ja("StructArrayLayout1ul2ui8",Kn);class Xn extends zn{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t){const i=this.length;return this.resize(i+1),this.emplace(i,e,t)}emplace(e,t,i){const a=2*e;return this.uint16[a+0]=t,this.uint16[a+1]=i,e}}Xn.prototype.bytesPerElement=4,ja("StructArrayLayout2ui4",Xn);class Jn extends zn{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e){const t=this.length;return this.resize(t+1),this.emplace(t,e)}emplace(e,t){return this.uint16[1*e+0]=t,e}}Jn.prototype.bytesPerElement=2,ja("StructArrayLayout1ui2",Jn);class Yn extends zn{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,i,a){const n=this.length;return this.resize(n+1),this.emplace(n,e,t,i,a)}emplace(e,t,i,a,n){const o=4*e;return this.float32[o+0]=t,this.float32[o+1]=i,this.float32[o+2]=a,this.float32[o+3]=n,e}}Yn.prototype.bytesPerElement=16,ja("StructArrayLayout4f16",Yn);class Qn extends Cn{get anchorPointX(){return this._structArray.int16[this._pos2+0]}get anchorPointY(){return this._structArray.int16[this._pos2+1]}get x1(){return this._structArray.int16[this._pos2+2]}get y1(){return this._structArray.int16[this._pos2+3]}get x2(){return this._structArray.int16[this._pos2+4]}get y2(){return this._structArray.int16[this._pos2+5]}get featureIndex(){return this._structArray.uint32[this._pos4+3]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+8]}get bucketIndex(){return this._structArray.uint16[this._pos2+9]}get anchorPoint(){return new o(this.anchorPointX,this.anchorPointY)}}Qn.prototype.size=20;class eo extends On{get(e){return new Qn(this,e)}}ja("CollisionBoxArray",eo);class to extends Cn{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get glyphStartIndex(){return this._structArray.uint16[this._pos2+2]}get numGlyphs(){return this._structArray.uint16[this._pos2+3]}get vertexStartIndex(){return this._structArray.uint32[this._pos4+2]}get lineStartIndex(){return this._structArray.uint32[this._pos4+3]}get lineLength(){return this._structArray.uint32[this._pos4+4]}get segment(){return this._structArray.uint16[this._pos2+10]}get lowerSize(){return this._structArray.uint16[this._pos2+11]}get upperSize(){return this._structArray.uint16[this._pos2+12]}get lineOffsetX(){return this._structArray.float32[this._pos4+7]}get lineOffsetY(){return this._structArray.float32[this._pos4+8]}get writingMode(){return this._structArray.uint8[this._pos1+36]}get placedOrientation(){return this._structArray.uint8[this._pos1+37]}set placedOrientation(e){this._structArray.uint8[this._pos1+37]=e}get hidden(){return this._structArray.uint8[this._pos1+38]}set hidden(e){this._structArray.uint8[this._pos1+38]=e}get crossTileID(){return this._structArray.uint32[this._pos4+10]}set crossTileID(e){this._structArray.uint32[this._pos4+10]=e}get associatedIconIndex(){return this._structArray.int16[this._pos2+22]}}to.prototype.size=48;class io extends qn{get(e){return new to(this,e)}}ja("PlacedSymbolArray",io);class ao extends Cn{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get rightJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+2]}get centerJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+3]}get leftJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+4]}get verticalPlacedTextSymbolIndex(){return this._structArray.int16[this._pos2+5]}get placedIconSymbolIndex(){return this._structArray.int16[this._pos2+6]}get verticalPlacedIconSymbolIndex(){return this._structArray.int16[this._pos2+7]}get key(){return this._structArray.uint16[this._pos2+8]}get textBoxStartIndex(){return this._structArray.uint16[this._pos2+9]}get textBoxEndIndex(){return this._structArray.uint16[this._pos2+10]}get verticalTextBoxStartIndex(){return this._structArray.uint16[this._pos2+11]}get verticalTextBoxEndIndex(){return this._structArray.uint16[this._pos2+12]}get iconBoxStartIndex(){return this._structArray.uint16[this._pos2+13]}get iconBoxEndIndex(){return this._structArray.uint16[this._pos2+14]}get verticalIconBoxStartIndex(){return this._structArray.uint16[this._pos2+15]}get verticalIconBoxEndIndex(){return this._structArray.uint16[this._pos2+16]}get featureIndex(){return this._structArray.uint16[this._pos2+17]}get numHorizontalGlyphVertices(){return this._structArray.uint16[this._pos2+18]}get numVerticalGlyphVertices(){return this._structArray.uint16[this._pos2+19]}get numIconVertices(){return this._structArray.uint16[this._pos2+20]}get numVerticalIconVertices(){return this._structArray.uint16[this._pos2+21]}get useRuntimeCollisionCircles(){return this._structArray.uint16[this._pos2+22]}get crossTileID(){return this._structArray.uint32[this._pos4+12]}set crossTileID(e){this._structArray.uint32[this._pos4+12]=e}get textBoxScale(){return this._structArray.float32[this._pos4+13]}get collisionCircleDiameter(){return this._structArray.float32[this._pos4+14]}get textAnchorOffsetStartIndex(){return this._structArray.uint16[this._pos2+30]}get textAnchorOffsetEndIndex(){return this._structArray.uint16[this._pos2+31]}}ao.prototype.size=64;class no extends Gn{get(e){return new ao(this,e)}}ja("SymbolInstanceArray",no);class oo extends Wn{getoffsetX(e){return this.float32[1*e+0]}}ja("GlyphOffsetArray",oo);class ro extends An{getx(e){return this.int16[3*e+0]}gety(e){return this.int16[3*e+1]}gettileUnitDistanceFromAnchor(e){return this.int16[3*e+2]}}ja("SymbolLineVertexArray",ro);class so extends Cn{get textAnchor(){return this._structArray.uint16[this._pos2+0]}get textOffset0(){return this._structArray.float32[this._pos4+1]}get textOffset1(){return this._structArray.float32[this._pos4+2]}}so.prototype.size=12;class lo extends Hn{get(e){return new so(this,e)}}ja("TextAnchorOffsetArray",lo);class uo extends Cn{get featureIndex(){return this._structArray.uint32[this._pos4+0]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+2]}get bucketIndex(){return this._structArray.uint16[this._pos2+3]}}uo.prototype.size=8;class ho extends Kn{get(e){return new uo(this,e)}}ja("FeatureIndexArray",ho);class co extends Ln{}class mo extends Ln{}class po extends Ln{}class fo extends En{}class _o extends Dn{}class go extends jn{}class yo extends $n{}class vo extends Rn{}class wo extends Bn{}class xo extends Fn{}class bo extends Nn{}class ko extends Un{}class So extends Zn{}class To extends Xn{}const Co=Pn([{name:"a_pos",components:2,type:"Int16"}],4),{members:zo}=Co;class Po{constructor(e=[]){this.segments=e}prepareSegment(e,t,i,a){let n=this.segments[this.segments.length-1];return e>Po.MAX_VERTEX_ARRAY_LENGTH&&k(`Max vertices per segment is ${Po.MAX_VERTEX_ARRAY_LENGTH}: bucket requested ${e}`),(!n||n.vertexLength+e>Po.MAX_VERTEX_ARRAY_LENGTH||n.sortKey!==a)&&(n={vertexOffset:t.length,primitiveOffset:i.length,vertexLength:0,primitiveLength:0},void 0!==a&&(n.sortKey=a),this.segments.push(n)),n}get(){return this.segments}destroy(){for(const e of this.segments)for(const t in e.vaos)e.vaos[t].destroy()}static simpleSegment(e,t,i,a){return new Po([{vertexOffset:e,primitiveOffset:t,vertexLength:i,primitiveLength:a,vaos:{},sortKey:0}])}}function Mo(e,t){return 256*(e=f(Math.floor(e),0,255))+f(Math.floor(t),0,255)}Po.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,ja("SegmentVector",Po);const Lo=Pn([{name:"a_pattern_from",components:4,type:"Uint16"},{name:"a_pattern_to",components:4,type:"Uint16"},{name:"a_pixel_ratio_from",components:1,type:"Uint16"},{name:"a_pixel_ratio_to",components:1,type:"Uint16"}]);var Ao={exports:{}},Io={exports:{}};Io.exports=function(e,t){var i,a,n,o,r,s,l,d;for(a=e.length-(i=3&e.length),n=t,r=3432918353,s=461845907,d=0;d<a;)l=255&e.charCodeAt(d)|(255&e.charCodeAt(++d))<<8|(255&e.charCodeAt(++d))<<16|(255&e.charCodeAt(++d))<<24,++d,n=27492+(65535&(o=5*(65535&(n=(n^=l=(65535&(l=(l=(65535&l)*r+(((l>>>16)*r&65535)<<16)&4294967295)<<15|l>>>17))*s+(((l>>>16)*s&65535)<<16)&4294967295)<<13|n>>>19))+((5*(n>>>16)&65535)<<16)&4294967295))+((58964+(o>>>16)&65535)<<16);switch(l=0,i){case 3:l^=(255&e.charCodeAt(d+2))<<16;case 2:l^=(255&e.charCodeAt(d+1))<<8;case 1:n^=l=(65535&(l=(l=(65535&(l^=255&e.charCodeAt(d)))*r+(((l>>>16)*r&65535)<<16)&4294967295)<<15|l>>>17))*s+(((l>>>16)*s&65535)<<16)&4294967295}return n^=e.length,n=2246822507*(65535&(n^=n>>>16))+((2246822507*(n>>>16)&65535)<<16)&4294967295,n=3266489909*(65535&(n^=n>>>13))+((3266489909*(n>>>16)&65535)<<16)&4294967295,(n^=n>>>16)>>>0};var Eo=Io.exports,Do={exports:{}};Do.exports=function(e,t){for(var i,a=e.length,n=t^a,o=0;a>=4;)i=1540483477*(65535&(i=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+((1540483477*(i>>>16)&65535)<<16),n=1540483477*(65535&n)+((1540483477*(n>>>16)&65535)<<16)^(i=1540483477*(65535&(i^=i>>>24))+((1540483477*(i>>>16)&65535)<<16)),a-=4,++o;switch(a){case 3:n^=(255&e.charCodeAt(o+2))<<16;case 2:n^=(255&e.charCodeAt(o+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(o)))+((1540483477*(n>>>16)&65535)<<16)}return n=1540483477*(65535&(n^=n>>>13))+((1540483477*(n>>>16)&65535)<<16),(n^=n>>>15)>>>0};var jo=Eo,$o=Do.exports;Ao.exports=jo,Ao.exports.murmur3=jo,Ao.exports.murmur2=$o;var Ro=i(Ao.exports);class Bo{constructor(){this.ids=[],this.positions=[],this.indexed=!1}add(e,t,i,a){this.ids.push(Fo(e)),this.positions.push(t,i,a)}getPositions(e){if(!this.indexed)throw new Error("Trying to get index, but feature positions are not indexed");const t=Fo(e);let i=0,a=this.ids.length-1;for(;i<a;){const e=i+a>>1;this.ids[e]>=t?a=e:i=e+1}const n=[];for(;this.ids[i]===t;)n.push({index:this.positions[3*i],start:this.positions[3*i+1],end:this.positions[3*i+2]}),i++;return n}static serialize(e,t){const i=new Float64Array(e.ids),a=new Uint32Array(e.positions);return Oo(i,a,0,i.length-1),t&&t.push(i.buffer,a.buffer),{ids:i,positions:a}}static deserialize(e){const t=new Bo;return t.ids=e.ids,t.positions=e.positions,t.indexed=!0,t}}function Fo(e){const t=+e;return!isNaN(t)&&t<=Number.MAX_SAFE_INTEGER?t:Ro(String(e))}function Oo(e,t,i,a){for(;i<a;){const n=e[i+a>>1];let o=i-1,r=a+1;for(;;){do{o++}while(e[o]<n);do{r--}while(e[r]>n);if(o>=r)break;No(e,o,r),No(t,3*o,3*r),No(t,3*o+1,3*r+1),No(t,3*o+2,3*r+2)}r-i<a-r?(Oo(e,t,i,r),i=r+1):(Oo(e,t,r+1,a),a=r)}}function No(e,t,i){const a=e[t];e[t]=e[i],e[i]=a}ja("FeaturePositionMap",Bo);class Vo{constructor(e,t){this.gl=e.gl,this.location=t}}class Uo extends Vo{constructor(e,t){super(e,t),this.current=0}set(e){this.current!==e&&(this.current=e,this.gl.uniform1f(this.location,e))}}class Zo extends Vo{constructor(e,t){super(e,t),this.current=[0,0,0,0]}set(e){e[0]===this.current[0]&&e[1]===this.current[1]&&e[2]===this.current[2]&&e[3]===this.current[3]||(this.current=e,this.gl.uniform4f(this.location,e[0],e[1],e[2],e[3]))}}class qo extends Vo{constructor(e,t){super(e,t),this.current=Xe.transparent}set(e){e.r===this.current.r&&e.g===this.current.g&&e.b===this.current.b&&e.a===this.current.a||(this.current=e,this.gl.uniform4f(this.location,e.r,e.g,e.b,e.a))}}const Go=new Float32Array(16);function Wo(e){return[Mo(255*e.r,255*e.g),Mo(255*e.b,255*e.a)]}class Ho{constructor(e,t,i){this.value=e,this.uniformNames=t.map((e=>`u_${e}`)),this.type=i}setUniform(e,t,i){e.set(i.constantOr(this.value))}getBinding(e,t,i){return"color"===this.type?new qo(e,t):new Uo(e,t)}}class Ko{constructor(e,t){this.uniformNames=t.map((e=>`u_${e}`)),this.patternFrom=null,this.patternTo=null,this.pixelRatioFrom=1,this.pixelRatioTo=1}setConstantPatternPositions(e,t){this.pixelRatioFrom=t.pixelRatio,this.pixelRatioTo=e.pixelRatio,this.patternFrom=t.tlbr,this.patternTo=e.tlbr}setUniform(e,t,i,a){const n="u_pattern_to"===a?this.patternTo:"u_pattern_from"===a?this.patternFrom:"u_pixel_ratio_to"===a?this.pixelRatioTo:"u_pixel_ratio_from"===a?this.pixelRatioFrom:null;n&&e.set(n)}getBinding(e,t,i){return"u_pattern"===i.substr(0,9)?new Zo(e,t):new Uo(e,t)}}class Xo{constructor(e,t,i,a){this.expression=e,this.type=i,this.maxValue=0,this.paintVertexAttributes=t.map((e=>({name:`a_${e}`,type:"Float32",components:"color"===i?2:1,offset:0}))),this.paintVertexArray=new a}populatePaintArray(e,t,i,a,n){const o=this.paintVertexArray.length,r=this.expression.evaluate(new ln(0),t,{},a,[],n);this.paintVertexArray.resize(e),this._setPaintValue(o,e,r)}updatePaintArray(e,t,i,a){const n=this.expression.evaluate({zoom:0},i,a);this._setPaintValue(e,t,n)}_setPaintValue(e,t,i){if("color"===this.type){const a=Wo(i);for(let i=e;i<t;i++)this.paintVertexArray.emplace(i,a[0],a[1])}else{for(let a=e;a<t;a++)this.paintVertexArray.emplace(a,i);this.maxValue=Math.max(this.maxValue,Math.abs(i))}}upload(e){this.paintVertexArray&&this.paintVertexArray.arrayBuffer&&(this.paintVertexBuffer&&this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=e.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))}destroy(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()}}class Jo{constructor(e,t,i,a,n,o){this.expression=e,this.uniformNames=t.map((e=>`u_${e}_t`)),this.type=i,this.useIntegerZoom=a,this.zoom=n,this.maxValue=0,this.paintVertexAttributes=t.map((e=>({name:`a_${e}`,type:"Float32",components:"color"===i?4:2,offset:0}))),this.paintVertexArray=new o}populatePaintArray(e,t,i,a,n){const o=this.expression.evaluate(new ln(this.zoom),t,{},a,[],n),r=this.expression.evaluate(new ln(this.zoom+1),t,{},a,[],n),s=this.paintVertexArray.length;this.paintVertexArray.resize(e),this._setPaintValue(s,e,o,r)}updatePaintArray(e,t,i,a){const n=this.expression.evaluate({zoom:this.zoom},i,a),o=this.expression.evaluate({zoom:this.zoom+1},i,a);this._setPaintValue(e,t,n,o)}_setPaintValue(e,t,i,a){if("color"===this.type){const n=Wo(i),o=Wo(a);for(let i=e;i<t;i++)this.paintVertexArray.emplace(i,n[0],n[1],o[0],o[1])}else{for(let n=e;n<t;n++)this.paintVertexArray.emplace(n,i,a);this.maxValue=Math.max(this.maxValue,Math.abs(i),Math.abs(a))}}upload(e){this.paintVertexArray&&this.paintVertexArray.arrayBuffer&&(this.paintVertexBuffer&&this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=e.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))}destroy(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()}setUniform(e,t){const i=this.useIntegerZoom?Math.floor(t.zoom):t.zoom,a=f(this.expression.interpolationFactor(i,this.zoom,this.zoom+1),0,1);e.set(a)}getBinding(e,t,i){return new Uo(e,t)}}class Yo{constructor(e,t,i,a,n,o){this.expression=e,this.type=t,this.useIntegerZoom=i,this.zoom=a,this.layerId=o,this.zoomInPaintVertexArray=new n,this.zoomOutPaintVertexArray=new n}populatePaintArray(e,t,i){const a=this.zoomInPaintVertexArray.length;this.zoomInPaintVertexArray.resize(e),this.zoomOutPaintVertexArray.resize(e),this._setPaintValues(a,e,t.patterns&&t.patterns[this.layerId],i)}updatePaintArray(e,t,i,a,n){this._setPaintValues(e,t,i.patterns&&i.patterns[this.layerId],n)}_setPaintValues(e,t,i,a){if(!a||!i)return;const{min:n,mid:o,max:r}=i,s=a[n],l=a[o],d=a[r];if(s&&l&&d)for(let i=e;i<t;i++)this.zoomInPaintVertexArray.emplace(i,l.tl[0],l.tl[1],l.br[0],l.br[1],s.tl[0],s.tl[1],s.br[0],s.br[1],l.pixelRatio,s.pixelRatio),this.zoomOutPaintVertexArray.emplace(i,l.tl[0],l.tl[1],l.br[0],l.br[1],d.tl[0],d.tl[1],d.br[0],d.br[1],l.pixelRatio,d.pixelRatio)}upload(e){this.zoomInPaintVertexArray&&this.zoomInPaintVertexArray.arrayBuffer&&this.zoomOutPaintVertexArray&&this.zoomOutPaintVertexArray.arrayBuffer&&(this.zoomInPaintVertexBuffer=e.createVertexBuffer(this.zoomInPaintVertexArray,Lo.members,this.expression.isStateDependent),this.zoomOutPaintVertexBuffer=e.createVertexBuffer(this.zoomOutPaintVertexArray,Lo.members,this.expression.isStateDependent))}destroy(){this.zoomOutPaintVertexBuffer&&this.zoomOutPaintVertexBuffer.destroy(),this.zoomInPaintVertexBuffer&&this.zoomInPaintVertexBuffer.destroy()}}class Qo{constructor(e,t,i){this.binders={},this._buffers=[];const a=[];for(const n in e.paint._values){if(!i(n))continue;const o=e.paint.get(n);if(!(o instanceof fn&&bi(o.property.specification)))continue;const r=tr(n,e.type),s=o.value,l=o.property.specification.type,d=o.property.useIntegerZoom,u=o.property.specification["property-type"],h="cross-faded"===u||"cross-faded-data-driven"===u;if("constant"===s.kind)this.binders[n]=h?new Ko(s.value,r):new Ho(s.value,r,l),a.push(`/u_${n}`);else if("source"===s.kind||h){const i=ir(n,l,"source");this.binders[n]=h?new Yo(s,l,d,t,i,e.id):new Xo(s,r,l,i),a.push(`/a_${n}`)}else{const e=ir(n,l,"composite");this.binders[n]=new Jo(s,r,l,d,t,e),a.push(`/z_${n}`)}}this.cacheKey=a.sort().join("")}getMaxValue(e){const t=this.binders[e];return t instanceof Xo||t instanceof Jo?t.maxValue:0}populatePaintArrays(e,t,i,a,n){for(const o in this.binders){const r=this.binders[o];(r instanceof Xo||r instanceof Jo||r instanceof Yo)&&r.populatePaintArray(e,t,i,a,n)}}setConstantPatternPositions(e,t){for(const i in this.binders){const a=this.binders[i];a instanceof Ko&&a.setConstantPatternPositions(e,t)}}updatePaintArrays(e,t,i,a,n){let o=!1;for(const r in e){const s=t.getPositions(r);for(const t of s){const s=i.feature(t.index);for(const i in this.binders){const l=this.binders[i];if((l instanceof Xo||l instanceof Jo||l instanceof Yo)&&!0===l.expression.isStateDependent){const d=a.paint.get(i);l.expression=d.value,l.updatePaintArray(t.start,t.end,s,e[r],n),o=!0}}}}return o}defines(){const e=[];for(const t in this.binders){const i=this.binders[t];(i instanceof Ho||i instanceof Ko)&&e.push(...i.uniformNames.map((e=>`#define HAS_UNIFORM_${e}`)))}return e}getBinderAttributes(){const e=[];for(const t in this.binders){const i=this.binders[t];if(i instanceof Xo||i instanceof Jo)for(let t=0;t<i.paintVertexAttributes.length;t++)e.push(i.paintVertexAttributes[t].name);else if(i instanceof Yo)for(let t=0;t<Lo.members.length;t++)e.push(Lo.members[t].name)}return e}getBinderUniforms(){const e=[];for(const t in this.binders){const i=this.binders[t];if(i instanceof Ho||i instanceof Ko||i instanceof Jo)for(const t of i.uniformNames)e.push(t)}return e}getPaintVertexBuffers(){return this._buffers}getUniforms(e,t){const i=[];for(const a in this.binders){const n=this.binders[a];if(n instanceof Ho||n instanceof Ko||n instanceof Jo)for(const o of n.uniformNames)if(t[o]){const r=n.getBinding(e,t[o],o);i.push({name:o,property:a,binding:r})}}return i}setUniforms(e,t,i,a){for(const{name:e,property:n,binding:o}of t)this.binders[n].setUniform(o,a,i.get(n),e)}updatePaintBuffers(e){this._buffers=[];for(const t in this.binders){const i=this.binders[t];if(e&&i instanceof Yo){const t=2===e.fromScale?i.zoomInPaintVertexBuffer:i.zoomOutPaintVertexBuffer;t&&this._buffers.push(t)}else(i instanceof Xo||i instanceof Jo)&&i.paintVertexBuffer&&this._buffers.push(i.paintVertexBuffer)}}upload(e){for(const t in this.binders){const i=this.binders[t];(i instanceof Xo||i instanceof Jo||i instanceof Yo)&&i.upload(e)}this.updatePaintBuffers()}destroy(){for(const e in this.binders){const t=this.binders[e];(t instanceof Xo||t instanceof Jo||t instanceof Yo)&&t.destroy()}}}class er{constructor(e,t,i=(()=>!0)){this.programConfigurations={};for(const a of e)this.programConfigurations[a.id]=new Qo(a,t,i);this.needsUpload=!1,this._featureMap=new Bo,this._bufferOffset=0}populatePaintArrays(e,t,i,a,n,o){for(const i in this.programConfigurations)this.programConfigurations[i].populatePaintArrays(e,t,a,n,o);void 0!==t.id&&this._featureMap.add(t.id,i,this._bufferOffset,e),this._bufferOffset=e,this.needsUpload=!0}updatePaintArrays(e,t,i,a){for(const n of i)this.needsUpload=this.programConfigurations[n.id].updatePaintArrays(e,this._featureMap,t,n,a)||this.needsUpload}get(e){return this.programConfigurations[e]}upload(e){if(this.needsUpload){for(const t in this.programConfigurations)this.programConfigurations[t].upload(e);this.needsUpload=!1}}destroy(){for(const e in this.programConfigurations)this.programConfigurations[e].destroy()}}function tr(e,t){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":["ga
5pwidth"],"line-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-extrusion-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"]}[e]||[e.replace(`${t}-`,"").replace(/-/g,"_")]}function ir(e,t,i){const a={color:{source:jn,composite:Yn},number:{source:Wn,composite:jn}},n=function(e){return{"line-pattern":{source:yo,composite:yo},"fill-pattern":{source:yo,composite:yo},"fill-extrusion-pattern":{source:yo,composite:yo}}[e]}(e);return n&&n[i]||a[t][i]}ja("ConstantBinder",Ho),ja("CrossFadedConstantBinder",Ko),ja("SourceExpressionBinder",Xo),ja("CrossFadedCompositeBinder",Yo),ja("CompositeExpressionBinder",Jo),ja("ProgramConfiguration",Qo,{omit:["_buffers"]}),ja("ProgramConfigurationSet",er);const ar=8192,nr=Math.pow(2,14)-1,or=-nr-1;function rr(e){const t=ar/e.extent,i=e.loadGeometry();for(let e=0;e<i.length;e++){const a=i[e];for(let e=0;e<a.length;e++){const i=a[e],n=Math.round(i.x*t),o=Math.round(i.y*t);i.x=f(n,or,nr),i.y=f(o,or,nr),(n<i.x||n>i.x+1||o<i.y||o>i.y+1)&&k("Geometry exceeds allowed extent, reduce your vector tile buffer size")}}return i}function sr(e,t){return{type:e.type,id:e.id,properties:e.properties,geometry:t?rr(e):[]}}function lr(e,t,i,a,n){e.emplaceBack(2*t+(a+1)/2,2*i+(n+1)/2)}class dr{constructor(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map((e=>e.id)),this.index=e.index,this.hasPattern=!1,this.layoutVertexArray=new mo,this.indexArray=new So,this.segments=new Po,this.programConfigurations=new er(e.layers,e.zoom),this.stateDependentLayerIds=this.layers.filter((e=>e.isStateDependent())).map((e=>e.id))}populate(e,t,i){const a=this.layers[0],n=[];let o=null,r=!1;"circle"===a.type&&(o=a.layout.get("circle-sort-key"),r=!o.isConstant());for(const{feature:t,id:a,index:s,sourceLayerIndex:l}of e){const e=this.layers[0]._featureFilter.needGeometry,d=sr(t,e);if(!this.layers[0]._featureFilter.filter(new ln(this.zoom),d,i))continue;const u=r?o.evaluate(d,{},i):void 0,h={id:a,properties:t.properties,type:t.type,sourceLayerIndex:l,index:s,geometry:e?d.geometry:rr(t),patterns:{},sortKey:u};n.push(h)}r&&n.sort(((e,t)=>
vendor: 9,220 bytes, line 5
5e.sortKey-t.sortKey));for(const a of n){const{geometry:n,index:o,sourceLayerIndex:r}=a,s=e[o].feature;this.addFeature(a,n,o,i),t.featureIndex.insert(s,n,o,r,this.index)}}update(e,t,i){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,i)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,zo),this.indexBuffer=e.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}addFeature(e,t,i,a){for(const i of t)for(const t of i){const i=t.x,a=t.y;if(i<0||i>=ar||a<0||a>=ar)continue;const n=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,e.sortKey),o=n.vertexLength;lr(this.layoutVertexArray,i,a,-1,-1),lr(this.layoutVertexArray,i,a,1,-1),lr(this.layoutVertexArray,i,a,1,1),lr(this.layoutVertexArray,i,a,-1,1),this.indexArray.emplaceBack(o,o+1,o+2),this.indexArray.emplaceBack(o,o+3,o+2),n.vertexLength+=4,n.primitiveLength+=2}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,i,{},a)}}function ur(e,t){for(let i=0;i<e.length;i++)if(vr(t,e[i]))return!0;for(let i=0;i<t.length;i++)if(vr(e,t[i]))return!0;return!!pr(e,t)}function hr(e,t,i){return!!vr(e,t)||!!_r(t,e,i)}function cr(e,t){if(1===e.length)return yr(t,e[0]);for(let i=0;i<t.length;i++){const a=t[i];for(let t=0;t<a.length;t++)if(vr(e,a[t]))return!0}for(let i=0;i<e.length;i++)if(yr(t,e[i]))return!0;for(let i=0;i<t.length;i++)if(pr(e,t[i]))return!0;return!1}function mr(e,t,i){if(e.length>1){if(pr(e,t))return!0;for(let a=0;a<t.length;a++)if(_r(t[a],e,i))return!0}for(let a=0;a<e.length;a++)if(_r(e[a],t,i))return!0;return!1}function pr(e,t){if(0===e.length||0===t.length)return!1;for(let i=0;i<e.length-1;i++){const a=e[i],n=e[i+1];for(let e=0;e<t.length-1;e++)if(fr(a,n,t[e],t[e+1]))return!0}return!1}function fr(e,t,i,a){return S(e,i,a)!==S(t,i,a)&&S(e,t,i)!==S(e,t,a)}function _r(e,t,i){const a=i*i;if(1===t.length)return e.distSqr(t[0])<a;for(let i=1;i<t.length;i++)if(gr(e,t[i-1],t[i])<a)return!0;return!1}function gr(e,t,i){const a=t.distSqr(i);if(0===a)return e.distSqr(t);const n=((e.x-t.x)*(i.x-t.x)+(e.y-t.y)*(i.y-t.y))/a;return e.distSqr(n<0?t:n>1?i:i.sub(t)._mult(n)._add(t))}function yr(e,t){let i,a,n,o=!1;for(let r=0;r<e.length;r++){i=e[r];for(let e=0,r=i.length-1;e<i.length;r=e++)a=i[e],n=i[r],a.y>t.y!=n.y>t.y&&t.x<(n.x-a.x)*(t.y-a.y)/(n.y-a.y)+a.x&&(o=!o)}return o}function vr(e,t){let i=!1;for(let a=0,n=e.length-1;a<e.length;n=a++){const o=e[a],r=e[n];o.y>t.y!=r.y>t.y&&t.x<(r.x-o.x)*(t.y-o.y)/(r.y-o.y)+o.x&&(i=!i)}return i}function wr(e,t,i){const a=i[0],n=i[2];if(e.x<a.x&&t.x<a.x||e.x>n.x&&t.x>n.x||e.y<a.y&&t.y<a.y||e.y>n.y&&t.y>n.y)return!1;const o=S(e,t,i[0]);return o!==S(e,t,i[1])||o!==S(e,t,i[2])||o!==S(e,t,i[3])}function xr(e,t,i){const a=t.paint.get(e).value;return"constant"===a.kind?a.value:i.programConfigurations.get(t.id).getMaxValue(e)}function br(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function kr(e,t,i,a,n){if(!t[0]&&!t[1])return e;const r=o.convert(t)._mult(n);"viewport"===i&&r._rotate(-a);const s=[];for(let t=0;t<e.length;t++)s.push(e[t].sub(r));return s}let Sr,Tr;ja("CircleBucket",dr,{omit:["layers"]});var Cr={get paint(){return Tr=Tr||new bn({"circle-radius":new yn(K.paint_circle["circle-radius"]),"circle-color":new yn(K.paint_circle["circle-color"]),"circle-blur":new yn(K.paint_circle["circle-blur"]),"circle-opacity":new yn(K.paint_circle["circle-opacity"]),"circle-translate":new gn(K.paint_circle["circle-translate"]),"circle-translate-anchor":new gn(K.paint_circle["circle-translate-anchor"]),"circle-pitch-scale":new gn(K.paint_circle["circle-pitch-scale"]),"circle-pitch-alignment":new gn(K.paint_circle["circle-pitch-alignment"]),"circle-stroke-width":new yn(K.paint_circle["circle-stroke-width"]),"circle-stroke-color":new yn(K.paint_circle["circle-stroke-color"]),"circle-stroke-opacity":new yn(K.paint_circle["circle-stroke-opacity"])})},get layout(){return Sr=Sr||new bn({"circle-sort-key":new yn(K.layout_circle["circle-sort-key"])})}},zr=1e-6,Pr="undefined"!=typeof Float32Array?Float32Array:Array;function Mr(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function Lr(e,t,i){var a=t[0],n=t[1],o=t[2],r=t[3],s=t[4],l=t[5],d=t[6],u=t[7],h=t[8],c=t[9],m=t[10],p=t[11],f=t[12],_=t[13],g=t[14],y=t[15],v=i[0],w=i[1],x=i[2],b=i[3];return e[0]=v*a+w*s+x*h+b*f,e[1]=v*n+w*l+x*c+b*_,e[2]=v*o+w*d+x*m+b*g,e[3]=v*r+w*u+x*p+b*y,e[4]=(v=i[4])*a+(w=i[5])*s+(x=i[6])*h+(b=i[7])*f,e[5]=v*n+w*l+x*c+b*_,e[6]=v*o+w*d+x*m+b*g,e[7]=v*r+w*u+x*p+b*y,e[8]=(v=i[8])*a+(w=i[9])*s+(x=i[10])*h+(b=i[11])*f,e[9]=v*n+w*l+x*c+b*_,e[10]=v*o+w*d+x*m+b*g,e[11]=v*r+w*u+x*p+b*y,e[12]=(v=i[12])*a+(w=i[13])*s+(x=i[14])*h+(b=i[15])*f,e[13]=v*n+w*l+x*c+b*_,e[14]=v*o+w*d+x*m+b*g,e[15]=v*r+w*u+x*p+b*y,e}Math.hypot||(Math.hypot=function(){for(var e=0,t=arguments.length;t--;)e+=arguments[t]*arguments[t];return Math.sqrt(e)});var Ar,Ir=Lr;function Er(e,t,i){var a=t[0],n=t[1],o=t[2],r=t[3];return e[0]=i[0]*a+i[4]*n+i[8]*o+i[12]*r,e[1]=i[1]*a+i[5]*n+i[9]*o+i[13]*r,e[2]=i[2]*a+i[6]*n+i[10]*o+i[14]*r,e[3]=i[3]*a+i[7]*n+i[11]*o+i[15]*r,e}Ar=new Pr(4),Pr!=Float32Array&&(Ar[0]=0,Ar[1]=0,Ar[2]=0,Ar[3]=0);class Dr extends Sn{constructor(e){super(e,Cr)}createBucket(e){return new dr(e)}queryRadius(e){const t=e;return xr("circle-radius",this,t)+xr("circle-stroke-width",this,t)+br(this.paint.get("circle-translate"))}queryIntersectsFeature(e,t,i,a,n,o,r,s){const l=kr(e,this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),o.angle,r),d=this.paint.get("circle-radius").evaluate(t,i)+this.paint.get("circle-stroke-width").evaluate(t,i),u="map"===this.paint.get("circle-pitch-alignment"),h=u?l:function(e,t){return e.map((e=>jr(e,t)))}(l,s),c=u?d*r:d;for(const e of a)for(const t of e){const e=u?t:jr(t,s);let i=c;const a=Er([],[t.x,t.y,0,1],s);if("viewport"===this.paint.get("circle-pitch-scale")&&"map"===this.paint.get("circle-pitch-alignment")?i*=a[3]/o.cameraToCenterDistance:"map"===this.paint.get("circle-pitch-scale")&&"viewport"===this.paint.get("circle-pitch-alignment")&&(i*=o.cameraToCenterDistance/a[3]),hr(h,e,i))return!0}return!1}}function jr(e,t){const i=Er([],[e.x,e.y,0,1],t);return new o(i[0]/i[3],i[1]/i[3])}class $r extends dr{}let Rr;ja("HeatmapBucket",$r,{omit:["layers"]});var Br={get paint(){return Rr=Rr||new bn({"heatmap-radius":new yn(K.paint_heatmap["heatmap-radius"]),"heatmap-weight":new yn(K.paint_heatmap["heatmap-weight"]),"heatmap-intensity":new gn(K.paint_heatmap["heatmap-intensity"]),"heatmap-color":new xn(K.paint_heatmap["heatmap-color"]),"heatmap-opacity":new gn(K.paint_heatmap["heatmap-opacity"])})}};function Fr(e,{width:t,height:i},a,n){if(n){if(n instanceof Uint8ClampedArray)n=new Uint8Array(n.buffer);else if(n.length!==t*i*a)throw new RangeError(`mismatched image size. expected: ${n.length} but got: ${t*i*a}`)}else n=new Uint8Array(t*i*a);return e.width=t,e.height=i,e.data=n,e}function Or(e,{width:t,height:i},a){if(t===e.width&&i===e.height)return;const n=Fr({},{width:t,height:i},a);Nr(e,n,{x:0,y:0},{x:0,y:0},{width:Math.min(e.width,t),height:Math.min(e.height,i)},a),e.width=t,e.height=i,e.data=n.data}function Nr(e,t,i,a,n,o){if(0===n.width||0===n.height)return t;if(n.width>e.width||n.height>e.height||i.x>e.width-n.width||i.y>e.height-n.height)throw new RangeError("out of range source coordinates for image copy");if(n.width>t.width||n.height>t.height||a.x>t.width-n.width||a.y>t.height-n.height)throw new RangeError("out of range destination coordinates for image copy");const r=e.data,s=t.data;if(r===s)throw new Error("srcData equals dstData, so image is already copied");for(let l=0;l<n.height;l++){const d=((i.y+l)*e.width+i.x)*o,u=((a.y+l)*t.width+a.x)*o;for(let e=0;e<n.width*o;e++)s[u+e]=r[d+e]}return t}class Vr{constructor(e,t){Fr(this,e,1,t)}resize(e){Or(this,e,1)}clone(){return new Vr({width:this.width,height:this.height},new Uint8Array(this.data))}static copy(e,t,i,a,n){Nr(e,t,i,a,n,1)}}class Ur{constructor(e,t){Fr(this,e,4,t)}resize(e){Or(this,e,4)}replace(e,t){t?this.data.set(e):this.data=e instanceof Uint8ClampedArray?new Uint8Array(e.buffer):e}clone(){return new Ur({width:this.width,height:this.height},new Uint8Array(this.data))}static copy(e,t,i,a,n){Nr(e,t,i,a,n,4)}}function Zr(e){const t={},i=e.resolution||256,a=e.clips?e.clips.length:1,n=e.image||new Ur({width:i,height:a});if(Math.log(i)/Math.LN2%1!=0)throw new Error(`width is not a power of 2 - ${i}`);const o=(i,a,o)=>{t[e.evaluationKey]=o;const r=e.expression.evaluate(t);n.data[i+a+0]=Math.floor(255*r.r/r.a),n.data[i+a+1]=Math.floor(255*r.g/r.a),n.data[i+a+2]=Math.floor(255*r.b/r.a),n.data[i+a+3]=Math.floor(255*r.a)};if(e.clips)for(let t=0,n=0;t<a;++t,n+=4*i)for(let a=0,r=0;a<i;a++,r+=4){const s=a/(i-1),{start:l,end:d}=e.clips[t];o(n,r,l*(1-s)+d*s)}else for(let e=0,t=0;e<i;e++,t+=4)o(0,t,e/(i-1));return n}
vendor: 9,347 bytes, line 5
5ja("AlphaImage",Vr),ja("RGBAImage",Ur);class qr extends Sn{createBucket(e){return new $r(e)}constructor(e){super(e,Br),this._updateColorRamp()}_handleSpecialPaintPropertyUpdate(e){"heatmap-color"===e&&this._updateColorRamp()}_updateColorRamp(){this.colorRamp=Zr({expression:this._transitionablePaint._values["heatmap-color"].value.expression,evaluationKey:"heatmapDensity",image:this.colorRamp}),this.colorRampTexture=null}resize(){this.heatmapFbo&&(this.heatmapFbo.destroy(),this.heatmapFbo=null)}queryRadius(){return 0}queryIntersectsFeature(){return!1}hasOffscreenPass(){return 0!==this.paint.get("heatmap-opacity")&&"none"!==this.visibility}}let Gr;var Wr={get paint(){return Gr=Gr||new bn({"hillshade-illumination-direction":new gn(K.paint_hillshade["hillshade-illumination-direction"]),"hillshade-illumination-anchor":new gn(K.paint_hillshade["hillshade-illumination-anchor"]),"hillshade-exaggeration":new gn(K.paint_hillshade["hillshade-exaggeration"]),"hillshade-shadow-color":new gn(K.paint_hillshade["hillshade-shadow-color"]),"hillshade-highlight-color":new gn(K.paint_hillshade["hillshade-highlight-color"]),"hillshade-accent-color":new gn(K.paint_hillshade["hillshade-accent-color"])})}};class Hr extends Sn{constructor(e){super(e,Wr)}hasOffscreenPass(){return 0!==this.paint.get("hillshade-exaggeration")&&"none"!==this.visibility}}const Kr=Pn([{name:"a_pos",components:2,type:"Int16"}],4),{members:Xr}=Kr;var Jr={exports:{}};function Yr(e,t,i){i=i||2;var a,n,o,r,s,l,d,u=t&&t.length,h=u?t[0]*i:e.length,c=Qr(e,0,h,i,!0),m=[];if(!c||c.next===c.prev)return m;if(u&&(c=function(e,t,i,a){var n,o,r,s=[];for(n=0,o=t.length;n<o;n++)(r=Qr(e,t[n]*a,n<o-1?t[n+1]*a:e.length,a,!1))===r.next&&(r.steiner=!0),s.push(us(r));for(s.sort(rs),n=0;n<s.length;n++)i=ss(s[n],i);return i}(e,t,c,i)),e.length>80*i){a=o=e[0],n=r=e[1];for(var p=i;p<h;p+=i)(s=e[p])<a&&(a=s),(l=e[p+1])<n&&(n=l),s>o&&(o=s),l>r&&(r=l);d=0!==(d=Math.max(o-a,r-n))?32767/d:0}return ts(c,m,i,a,n,d,0),m}function Qr(e,t,i,a,n){var o,r;if(n===ks(e,t,i,a)>0)for(o=t;o<i;o+=a)r=ws(o,e[o],e[o+1],r);else for(o=i-a;o>=t;o-=a)r=ws(o,e[o],e[o+1],r);return r&&ps(r,r.next)&&(xs(r),r=r.next),r}function es(e,t){if(!e)return e;t||(t=e);var i,a=e;do{if(i=!1,a.steiner||!ps(a,a.next)&&0!==ms(a.prev,a,a.next))a=a.next;else{if(xs(a),(a=t=a.prev)===a.next)break;i=!0}}while(i||a!==t);return t}function ts(e,t,i,a,n,o,r){if(e){!r&&o&&function(e,t,i,a){var n=e;do{0===n.z&&(n.z=ds(n.x,n.y,t,i,a)),n.prevZ=n.prev,n.nextZ=n.next,n=n.next}while(n!==e);n.prevZ.nextZ=null,n.prevZ=null,function(e){var t,i,a,n,o,r,s,l,d=1;do{for(i=e,e=null,o=null,r=0;i;){for(r++,a=i,s=0,t=0;t<d&&(s++,a=a.nextZ);t++);for(l=d;s>0||l>0&&a;)0!==s&&(0===l||!a||i.z<=a.z)?(n=i,i=i.nextZ,s--):(n=a,a=a.nextZ,l--),o?o.nextZ=n:e=n,n.prevZ=o,o=n;i=a}o.nextZ=null,d*=2}while(r>1)}(n)}(e,a,n,o);for(var s,l,d=e;e.prev!==e.next;)if(s=e.prev,l=e.next,o?as(e,a,n,o):is(e))t.push(s.i/i|0),t.push(e.i/i|0),t.push(l.i/i|0),xs(e),e=l.next,d=l.next;else if((e=l)===d){r?1===r?ts(e=ns(es(e),t,i),t,i,a,n,o,2):2===r&&os(e,t,i,a,n,o):ts(es(e),t,i,a,n,o,1);break}}}function is(e){var t=e.prev,i=e,a=e.next;if(ms(t,i,a)>=0)return!1;for(var n=t.x,o=i.x,r=a.x,s=t.y,l=i.y,d=a.y,u=n<o?n<r?n:r:o<r?o:r,h=s<l?s<d?s:d:l<d?l:d,c=n>o?n>r?n:r:o>r?o:r,m=s>l?s>d?s:d:l>d?l:d,p=a.next;p!==t;){if(p.x>=u&&p.x<=c&&p.y>=h&&p.y<=m&&hs(n,s,o,l,r,d,p.x,p.y)&&ms(p.prev,p,p.next)>=0)return!1;p=p.next}return!0}function as(e,t,i,a){var n=e.prev,o=e,r=e.next;if(ms(n,o,r)>=0)return!1;for(var s=n.x,l=o.x,d=r.x,u=n.y,h=o.y,c=r.y,m=s<l?s<d?s:d:l<d?l:d,p=u<h?u<c?u:c:h<c?h:c,f=s>l?s>d?s:d:l>d?l:d,_=u>h?u>c?u:c:h>c?h:c,g=ds(m,p,t,i,a),y=ds(f,_,t,i,a),v=e.prevZ,w=e.nextZ;v&&v.z>=g&&w&&w.z<=y;){if(v.x>=m&&v.x<=f&&v.y>=p&&v.y<=_&&v!==n&&v!==r&&hs(s,u,l,h,d,c,v.x,v.y)&&ms(v.prev,v,v.next)>=0)return!1;if(v=v.prevZ,w.x>=m&&w.x<=f&&w.y>=p&&w.y<=_&&w!==n&&w!==r&&hs(s,u,l,h,d,c,w.x,w.y)&&ms(w.prev,w,w.next)>=0)return!1;w=w.nextZ}for(;v&&v.z>=g;){if(v.x>=m&&v.x<=f&&v.y>=p&&v.y<=_&&v!==n&&v!==r&&hs(s,u,l,h,d,c,v.x,v.y)&&ms(v.prev,v,v.next)>=0)return!1;v=v.prevZ}for(;w&&w.z<=y;){if(w.x>=m&&w.x<=f&&w.y>=p&&w.y<=_&&w!==n&&w!==r&&hs(s,u,l,h,d,c,w.x,w.y)&&ms(w.prev,w,w.next)>=0)return!1;w=w.nextZ}return!0}function ns(e,t,i){var a=e;do{var n=a.prev,o=a.next.next;!ps(n,o)&&fs(n,a,a.next,o)&&ys(n,o)&&ys(o,n)&&(t.push(n.i/i|0),t.push(a.i/i|0),t.push(o.i/i|0),xs(a),xs(a.next),a=e=o),a=a.next}while(a!==e);return es(a)}function os(e,t,i,a,n,o){var r=e;do{for(var s=r.next.next;s!==r.prev;){if(r.i!==s.i&&cs(r,s)){var l=vs(r,s);return r=es(r,r.next),l=es(l,l.next),ts(r,t,i,a,n,o,0),void ts(l,t,i,a,n,o,0)}s=s.next}r=r.next}while(r!==e)}function rs(e,t){return e.x-t.x}function ss(e,t){var i=function(e,t){var i,a=t,n=e.x,o=e.y,r=-1/0;do{if(o<=a.y&&o>=a.next.y&&a.next.y!==a.y){var s=a.x+(o-a.y)*(a.next.x-a.x)/(a.next.y-a.y);if(s<=n&&s>r&&(r=s,i=a.x<a.next.x?a:a.next,s===n))return i}a=a.next}while(a!==t);if(!i)return null;var l,d=i,u=i.x,h=i.y,c=1/0;a=i;do{n>=a.x&&a.x>=u&&n!==a.x&&hs(o<h?n:r,o,u,h,o<h?r:n,o,a.x,a.y)&&(l=Math.abs(o-a.y)/(n-a.x),ys(a,e)&&(l<c||l===c&&(a.x>i.x||a.x===i.x&&ls(i,a)))&&(i=a,c=l)),a=a.next}while(a!==d);return i}(e,t);if(!i)return t;var a=vs(i,e);return es(a,a.next),es(i,i.next)}function ls(e,t){return ms(e.prev,e,t.prev)<0&&ms(t.next,e,e.next)<0}function ds(e,t,i,a,n){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-i)*n|0)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=(t-a)*n|0)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function us(e){var t=e,i=e;do{(t.x<i.x||t.x===i.x&&t.y<i.y)&&(i=t),t=t.next}while(t!==e);return i}function hs(e,t,i,a,n,o,r,s){return(n-r)*(t-s)>=(e-r)*(o-s)&&(e-r)*(a-s)>=(i-r)*(t-s)&&(i-r)*(o-s)>=(n-r)*(a-s)}function cs(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!function(e,t){var i=e;do{if(i.i!==e.i&&i.next.i!==e.i&&i.i!==t.i&&i.next.i!==t.i&&fs(i,i.next,e,t))return!0;i=i.next}while(i!==e);return!1}(e,t)&&(ys(e,t)&&ys(t,e)&&function(e,t){var i=e,a=!1,n=(e.x+t.x)/2,o=(e.y+t.y)/2;do{i.y>o!=i.next.y>o&&i.next.y!==i.y&&n<(i.next.x-i.x)*(o-i.y)/(i.next.y-i.y)+i.x&&(a=!a),i=i.next}while(i!==e);return a}(e,t)&&(ms(e.prev,e,t.prev)||ms(e,t.prev,t))||ps(e,t)&&ms(e.prev,e,e.next)>0&&ms(t.prev,t,t.next)>0)}function ms(e,t,i){return(t.y-e.y)*(i.x-t.x)-(t.x-e.x)*(i.y-t.y)}function ps(e,t){return e.x===t.x&&e.y===t.y}function fs(e,t,i,a){var n=gs(ms(e,t,i)),o=gs(ms(e,t,a)),r=gs(ms(i,a,e)),s=gs(ms(i,a,t));return n!==o&&r!==s||!(0!==n||!_s(e,i,t))||!(0!==o||!_s(e,a,t))||!(0!==r||!_s(i,e,a))||!(0!==s||!_s(i,t,a))}function _s(e,t,i){return t.x<=Math.max(e.x,i.x)&&t.x>=Math.min(e.x,i.x)&&t.y<=Math.max(e.y,i.y)&&t.y>=Math.min(e.y,i.y)}function gs(e){return e>0?1:e<0?-1:0}function ys(e,t){return ms(e.prev,e,e.next)<0?ms(e,t,e.next)>=0&&ms(e,e.prev,t)>=0:ms(e,t,e.prev)<0||ms(e,e.next,t)<0}function vs(e,t){var i=new bs(e.i,e.x,e.y),a=new bs(t.i,t.x,t.y),n=e.next,o=t.prev;return e.next=t,t.prev=e,i.next=n,n.prev=i,a.next=i,i.prev=a,o.next=a,a.prev=o,a}function ws(e,t,i,a){var n=new bs(e,t,i);return a?(n.next=a.next,n.prev=a,a.next.prev=n,a.next=n):(n.prev=n,n.next=n),n}function xs(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function bs(e,t,i){this.i=e,this.x=t,this.y=i,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}function ks(e,t,i,a){for(var n=0,o=t,r=i-a;o<i;o+=a)n+=(e[r]-e[o])*(e[o+1]+e[r+1]),r=o;return n}Jr.exports=Yr,Jr.exports.default=Yr,Yr.deviation=function(e,t,i,a){var n=t&&t.length,o=Math.abs(ks(e,0,n?t[0]*i:e.length,i));if(n)for(var r=0,s=t.length;r<s;r++)o-=Math.abs(ks(e,t[r]*i,r<s-1?t[r+1]*i:e.length,i));var l=0;for(r=0;r<a.length;r+=3){var d=a[r]*i,u=a[r+1]*i,h=a[r+2]*i;l+=Math.abs((e[d]-e[h])*(e[u+1]-e[d+1])-(e[d]-e[u])*(e[h+1]-e[d+1]))}return 0===o&&0===l?0:Math.abs((l-o)/o)},Yr.flatten=function(e){for(var t=e[0][0].length,i={vertices:[],holes:[],dimensions:t},a=0,n=0;n<e.length;n++){for(var o=0;o<e[n].length;o++)for(var r=0;r<t;r++)i.vertices.push(e[n][o][r]);n>0&&i.holes.push(a+=e[n-1].length)}return i};var Ss=i(Jr.exports);function Ts(e,t,i,a,n){Cs(e,t,i||0,a||e.length-1,n||Ps)}function Cs(e,t,i,a,n){for(;a>i;){if(a-i>600){var o=a-i+1,r=t-i+1,s=Math.log(o),l=.5*Math.exp(2*s/3),d=.5*Math.sqrt(s*l*(o-l)/o)*(r-o/2<0?-1:1);Cs(e,t,Math.max(i,Math.floor(t-r*l/o+d)),Math.min(a,Math.floor(t+(o-r)*l/o+d)),n)}var u=e[t],h=i,c=a;for(zs(e,i,t),n(e[a],u)>0&&zs(e,i,a);h<c;){for(zs(e,h,c),h++,c--;n(e[h],u)<0;)h++;for(;n(e[c],u)>0;)c--}0===n(e[i],u)?zs(e,i,c):zs(e,++c,a),c<=t&&(i=c+1),t<=c&&(a=c-1)}}function zs(e,t,i){var a=e[t];e[t]=e[i],e[i]=a}function Ps(e,t){return e<t?-1:e>t?1:0}function Ms(e,t){const i=e.length;if(i<=1)return[e];const a=[];let n,o;for(let t=0;t<i;t++){const i=T(e[t]);0!==i&&(e[t].area=Math.abs(i),void 0===o&&(o=i<0),o===i<0?(n&&a.push(n),n=[e[t]]):n.push(e[t]))}if(n&&a.push(n),t>1)for(let e=0;e<a.length;e++)a[e].length<=t||(Ts(a[e],t,1,a[e].length-1,Ls),a[e]=a[e].slice(0,t));return a}function Ls(e,t){return t.area-e.area}function As(e,t,i){const a=i.patternDependencies;let n=!1;for(const i of t){const t=i.paint.get(`${e}-pattern`);t.isConstant()||(n=!0);const o=t.constantOr(null);o&&(n=!0,a[o.to]=!0,a[o.from]=!0)}return n}function Is(e,t,i,a,n){const o=n.patternDependencies;for(const r of t){const t=r.paint.get(`${e}-pattern`).value;if("constant"!==t.kind){let e=t.evaluate({zoom:a-1}
vendor: 30,181 bytes, line 5
5,i,{},n.availableImages),s=t.evaluate({zoom:a},i,{},n.availableImages),l=t.evaluate({zoom:a+1},i,{},n.availableImages);e=e&&e.name?e.name:e,s=s&&s.name?s.name:s,l=l&&l.name?l.name:l,o[e]=!0,o[s]=!0,o[l]=!0,i.patterns[r.id]={min:e,mid:s,max:l}}}return i}class Es{constructor(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map((e=>e.id)),this.index=e.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new po,this.indexArray=new So,this.indexArray2=new To,this.programConfigurations=new er(e.layers,e.zoom),this.segments=new Po,this.segments2=new Po,this.stateDependentLayerIds=this.layers.filter((e=>e.isStateDependent())).map((e=>e.id))}populate(e,t,i){this.hasPattern=As("fill",this.layers,t);const a=this.layers[0].layout.get("fill-sort-key"),n=!a.isConstant(),o=[];for(const{feature:r,id:s,index:l,sourceLayerIndex:d}of e){const e=this.layers[0]._featureFilter.needGeometry,u=sr(r,e);if(!this.layers[0]._featureFilter.filter(new ln(this.zoom),u,i))continue;const h=n?a.evaluate(u,{},i,t.availableImages):void 0,c={id:s,properties:r.properties,type:r.type,sourceLayerIndex:d,index:l,geometry:e?u.geometry:rr(r),patterns:{},sortKey:h};o.push(c)}n&&o.sort(((e,t)=>e.sortKey-t.sortKey));for(const a of o){const{geometry:n,index:o,sourceLayerIndex:r}=a;if(this.hasPattern){const e=Is("fill",this.layers,a,this.zoom,t);this.patternFeatures.push(e)}else this.addFeature(a,n,o,i,{});t.featureIndex.insert(e[o].feature,n,o,r,this.index)}}update(e,t,i){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,i)}addFeatures(e,t,i){for(const e of this.patternFeatures)this.addFeature(e,e.geometry,e.index,t,i)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,Xr),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.indexBuffer2=e.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())}addFeature(e,t,i,a,n){for(const e of Ms(t,500)){let t=0;for(const i of e)t+=i.length;const i=this.segments.prepareSegment(t,this.layoutVertexArray,this.indexArray),a=i.vertexLength,n=[],o=[];for(const t of e){if(0===t.length)continue;t!==e[0]&&o.push(n.length/2);const i=this.segments2.prepareSegment(t.length,this.layoutVertexArray,this.indexArray2),a=i.vertexLength;this.layoutVertexArray.emplaceBack(t[0].x,t[0].y),this.indexArray2.emplaceBack(a+t.length-1,a),n.push(t[0].x),n.push(t[0].y);for(let e=1;e<t.length;e++)this.layoutVertexArray.emplaceBack(t[e].x,t[e].y),this.indexArray2.emplaceBack(a+e-1,a+e),n.push(t[e].x),n.push(t[e].y);i.vertexLength+=t.length,i.primitiveLength+=t.length}const r=Ss(n,o);for(let e=0;e<r.length;e+=3)this.indexArray.emplaceBack(a+r[e],a+r[e+1],a+r[e+2]);i.vertexLength+=t,i.primitiveLength+=r.length/3}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,i,n,a)}}let Ds,js;ja("FillBucket",Es,{omit:["layers","patternFeatures"]});var $s={get paint(){return js=js||new bn({"fill-antialias":new gn(K.paint_fill["fill-antialias"]),"fill-opacity":new yn(K.paint_fill["fill-opacity"]),"fill-color":new yn(K.paint_fill["fill-color"]),"fill-outline-color":new yn(K.paint_fill["fill-outline-color"]),"fill-translate":new gn(K.paint_fill["fill-translate"]),"fill-translate-anchor":new gn(K.paint_fill["fill-translate-anchor"]),"fill-pattern":new vn(K.paint_fill["fill-pattern"])})},get layout(){return Ds=Ds||new bn({"fill-sort-key":new yn(K.layout_fill["fill-sort-key"])})}};class Rs extends Sn{constructor(e){super(e,$s)}recalculate(e,t){super.recalculate(e,t);const i=this.paint._values["fill-outline-color"];"constant"===i.value.kind&&void 0===i.value.value&&(this.paint._values["fill-outline-color"]=this.paint._values["fill-color"])}createBucket(e){return new Es(e)}queryRadius(){return br(this.paint.get("fill-translate"))}queryIntersectsFeature(e,t,i,a,n,o,r){return cr(kr(e,this.paint.get("fill-translate"),this.paint.get("fill-translate-anchor"),o.angle,r),a)}isTileClipped(){return!0}}const Bs=Pn([{name:"a_pos",components:2,type:"Int16"},{name:"a_normal_ed",components:4,type:"Int16"}],4),Fs=Pn([{name:"a_centroid",components:2,type:"Int16"}],4),{members:Os}=Bs;var Ns={},Vs=a,Us=Zs;function Zs(e,t,i,a,n){this.properties={},this.extent=i,this.type=0,this._pbf=e,this._geometry=-1,this._keys=a,this._values=n,e.readFields(qs,this,t)}function qs(e,t,i){1==e?t.id=i.readVarint():2==e?function(e,t){for(var i=e.readVarint()+e.pos;e.pos<i;){var a=t._keys[e.readVarint()],n=t._values[e.readVarint()];t.properties[a]=n}}(i,t):3==e?t.type=i.readVarint():4==e&&(t._geometry=i.pos)}function Gs(e){for(var t,i,a=0,n=0,o=e.length,r=o-1;n<o;r=n++)a+=((i=e[r]).x-(t=e[n]).x)*(t.y+i.y);return a}Zs.types=["Unknown","Point","LineString","Polygon"],Zs.prototype.loadGeometry=function(){var e=this._pbf;e.pos=this._geometry;for(var t,i=e.readVarint()+e.pos,a=1,n=0,o=0,r=0,s=[];e.pos<i;){if(n<=0){var l=e.readVarint();a=7&l,n=l>>3}if(n--,1===a||2===a)o+=e.readSVarint(),r+=e.readSVarint(),1===a&&(t&&s.push(t),t=[]),t.push(new Vs(o,r));else{if(7!==a)throw new Error("unknown command "+a);t&&t.push(t[0].clone())}}return t&&s.push(t),s},Zs.prototype.bbox=function(){var e=this._pbf;e.pos=this._geometry;for(var t=e.readVarint()+e.pos,i=1,a=0,n=0,o=0,r=1/0,s=-1/0,l=1/0,d=-1/0;e.pos<t;){if(a<=0){var u=e.readVarint();i=7&u,a=u>>3}if(a--,1===i||2===i)(n+=e.readSVarint())<r&&(r=n),n>s&&(s=n),(o+=e.readSVarint())<l&&(l=o),o>d&&(d=o);else if(7!==i)throw new Error("unknown command "+i)}return[r,l,s,d]},Zs.prototype.toGeoJSON=function(e,t,i){var a,n,o=this.extent*Math.pow(2,i),r=this.extent*e,s=this.extent*t,l=this.loadGeometry(),d=Zs.types[this.type];function u(e){for(var t=0;t<e.length;t++){var i=e[t];e[t]=[360*(i.x+r)/o-180,360/Math.PI*Math.atan(Math.exp((180-360*(i.y+s)/o)*Math.PI/180))-90]}}switch(this.type){case 1:var h=[];for(a=0;a<l.length;a++)h[a]=l[a][0];u(l=h);break;case 2:for(a=0;a<l.length;a++)u(l[a]);break;case 3:for(l=function(e){var t=e.length;if(t<=1)return[e];for(var i,a,n=[],o=0;o<t;o++){var r=Gs(e[o]);0!==r&&(void 0===a&&(a=r<0),a===r<0?(i&&n.push(i),i=[e[o]]):i.push(e[o]))}return i&&n.push(i),n}(l),a=0;a<l.length;a++)for(n=0;n<l[a].length;n++)u(l[a][n])}1===l.length?l=l[0]:d="Multi"+d;var c={type:"Feature",geometry:{type:d,coordinates:l},properties:this.properties};return"id"in this&&(c.id=this.id),c};var Ws=Us,Hs=Ks;function Ks(e,t){this.version=1,this.name=null,this.extent=4096,this.length=0,this._pbf=e,this._keys=[],this._values=[],this._features=[],e.readFields(Xs,this,t),this.length=this._features.length}function Xs(e,t,i){15===e?t.version=i.readVarint():1===e?t.name=i.readString():5===e?t.extent=i.readVarint():2===e?t._features.push(i.pos):3===e?t._keys.push(i.readString()):4===e&&t._values.push(function(e){for(var t=null,i=e.readVarint()+e.pos;e.pos<i;){var a=e.readVarint()>>3;t=1===a?e.readString():2===a?e.readFloat():3===a?e.readDouble():4===a?e.readVarint64():5===a?e.readVarint():6===a?e.readSVarint():7===a?e.readBoolean():null}return t}(i))}Ks.prototype.feature=function(e){if(e<0||e>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[e];var t=this._pbf.readVarint()+this._pbf.pos;return new Ws(this._pbf,t,this.extent,this._keys,this._values)};var Js=Hs;function Ys(e,t,i){if(3===e){var a=new Js(i,i.readVarint()+i.pos);a.length&&(t[a.name]=a)}}Ns.VectorTile=function(e,t){this.layers=e.readFields(Ys,{},t)},Ns.VectorTileFeature=Us,Ns.VectorTileLayer=Hs;const Qs=Ns.VectorTileFeature.types,el=Math.pow(2,13);function tl(e,t,i,a,n,o,r,s){e.emplaceBack(t,i,2*Math.floor(a*el)+r,n*el*2,o*el*2,Math.round(s))}class il{constructor(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map((e=>e.id)),this.index=e.index,this.hasPattern=!1,this.layoutVertexArray=new fo,this.centroidVertexArray=new co,this.indexArray=new So,this.programConfigurations=new er(e.layers,e.zoom),this.segments=new Po,this.stateDependentLayerIds=this.layers.filter((e=>e.isStateDependent())).map((e=>e.id))}populate(e,t,i){this.features=[],this.hasPattern=As("fill-extrusion",this.layers,t);for(const{feature:a,id:n,index:o,sourceLayerIndex:r}of e){const e=this.layers[0]._featureFilter.needGeometry,s=sr(a,e);if(!this.layers[0]._featureFilter.filter(new ln(this.zoom),s,i))continue;const l={id:n,sourceLayerIndex:r,index:o,geometry:e?s.geometry:rr(a),properties:a.properties,type:a.type,patterns:{}};this.hasPattern?this.features.push(Is("fill-extrusion",this.layers,l,this.zoom,t)):this.addFeature(l,l.geometry,o,i,{}),t.featureIndex.insert(a,l.geometry,o,r,this.index,!0)}}addFeatures(e,t,i){for(const e of this.features){const{geometry:a}=e;this.addFeature(e,a,e.index,t,i)}}update(e,t,i){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,i)}isEmpty(){return 0===this.layoutVertexArray.length&&0===this.centroidVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,Os),this.centroidVertexBuffer=e.createVertexBuffer(this.centroidVertexArray,Fs.members,!0),this.indexBuffer=e.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.centroidVertexBuffer.destroy())}addFeature(e,t,i,a,n){const o={x:0,y:0,vertexCount:0};for(const i of Ms(t,500)){let t=0;for(const e of i)t+=e.length;let a=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray);for(const e of i){if(0===e.length)continue;if(nl(e))continue;let t=0;for(let i=0;i<e.length;i++){const n=e[i];if(i>=1){const r=e[i-1];if(!al(n,r)){a.vertexLength+4>Po.MAX_VERTEX_ARRAY_LENGTH&&(a=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));const e=n.sub(r)._perp()._unit(),i=r.dist(n);t+i>32768&&(t=0),tl(this.layoutVertexArray,n.x,n.y,e.x,e.y,0,0,t),tl(this.layoutVertexArray,n.x,n.y,e.x,e.y,0,1,t),o.x+=2*n.x,o.y+=2*n.y,o.vertexCount+=2,t+=i,tl(this.layoutVertexArray,r.x,r.y,e.x,e.y,0,0,t),tl(this.layoutVertexArray,r.x,r.y,e.x,e.y,0,1,t),o.x+=2*r.x,o.y+=2*r.y,o.vertexCount+=2;const s=a.vertexLength;this.indexArray.emplaceBack(s,s+2,s+1),this.indexArray.emplaceBack(s+1,s+2,s+3),a.vertexLength+=4,a.primitiveLength+=2}}}}if(a.vertexLength+t>Po.MAX_VERTEX_ARRAY_LENGTH&&(a=this.segments.prepareSegment(t,this.layoutVertexArray,this.indexArray)),"Polygon"!==Qs[e.type])continue;const n=[],r=[],s=a.vertexLength;for(const e of i)if(0!==e.length){e!==i[0]&&r.push(n.length/2);for(let t=0;t<e.length;t++){const i=e[t];tl(this.layoutVertexArray,i.x,i.y,0,0,1,1,0),o.x+=i.x,o.y+=i.y,o.vertexCount+=1,n.push(i.x),n.push(i.y)}}const l=Ss(n,r);for(let e=0;e<l.length;e+=3)this.indexArray.emplaceBack(s+l[e],s+l[e+2],s+l[e+1]);a.primitiveLength+=l.length/3,a.vertexLength+=t}for(let e=0;e<o.vertexCount;e++)this.centroidVertexArray.emplaceBack(Math.floor(o.x/o.vertexCount),Math.floor(o.y/o.vertexCount));this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,i,n,a)}}function al(e,t){return e.x===t.x&&(e.x<0||e.x>ar)||e.y===t.y&&(e.y<0||e.y>ar)}function nl(e){return e.every((e=>e.x<0))||e.every((e=>e.x>ar))||e.every((e=>e.y<0))||e.every((e=>e.y>ar))}let ol;ja("FillExtrusionBucket",il,{omit:["layers","features"]});var rl={get paint(){return ol=ol||new bn({"fill-extrusion-opacity":new gn(K["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new yn(K["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new gn(K["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new gn(K["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new vn(K["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new yn(K["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new yn(K["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new gn(K["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])})}};class sl extends Sn{constructor(e){super(e,rl)}createBucket(e){return new il(e)}queryRadius(){return br(this.paint.get("fill-extrusion-translate"))}is3D(){return!0}queryIntersectsFeature(e,t,i,a,n,r,s,l){const d=kr(e,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),r.angle,s),u=this.paint.get("fill-extrusion-height").evaluate(t,i),h=this.paint.get("fill-extrusion-base").evaluate(t,i),c=function(e,t,i,a){const n=[];for(const i of e){const e=[i.x,i.y,0,1];Er(e,e,t),n.push(new o(e[0]/e[3],e[1]/e[3]))}return n}(d,l),m=function(e,t,i,a){const n=[],r=[],s=a[8]*t,l=a[9]*t,d=a[10]*t,u=a[11]*t,h=a[8]*i,c=a[9]*i,m=a[10]*i,p=a[11]*i;for(const t of e){const e=[],i=[];for(const n of t){const t=n.x,r=n.y,f=a[0]*t+a[4]*r+a[12],_=a[1]*t+a[5]*r+a[13],g=a[2]*t+a[6]*r+a[14],y=a[3]*t+a[7]*r+a[15],v=g+d,w=y+u,x=f+h,b=_+c,k=g+m,S=y+p,T=new o((f+s)/w,(_+l)/w);T.z=v/w,e.push(T);const C=new o(x/S,b/S);C.z=k/S,i.push(C)}n.push(e),r.push(i)}return[n,r]}(a,h,u,l);return function(e,t,i){let a=1/0;cr(i,t)&&(a=dl(i,t[0]));for(let n=0;n<t.length;n++){const o=t[n],r=e[n];for(let e=0;e<o.length-1;e++){const t=o[e],n=[t,o[e+1],r[e+1],r[e],t];ur(i,n)&&(a=Math.min(a,dl(i,n)))}}return a!==1/0&&a}(m[0],m[1],c)}}function ll(e,t){return e.x*t.x+e.y*t.y}function dl(e,t){if(1===e.length){let i=0;const a=t[i++];let n;for(;!n||a.equals(n);)if(n=t[i++],!n)return 1/0;for(;i<t.length;i++){const o=t[i],r=e[0],s=n.sub(a),l=o.sub(a),d=r.sub(a),u=ll(s,s),h=ll(s,l),c=ll(l,l),m=ll(d,s),p=ll(d,l),f=u*c-h*h,_=(c*m-h*p)/f,g=(u*p-h*m)/f,y=a.z*(1-_-g)+n.z*_+o.z*g;if(isFinite(y))return y}return 1/0}{let e=1/0;for(const i of t)e=Math.min(e,i.z);return e}}const ul=Pn([{name:"a_pos_normal",components:2,type:"Int16"},{name:"a_data",components:4,type:"Uint8"}],4),{members:hl}=ul,cl=Pn([{name:"a_uv_x",components:1,type:"Float32"},{name:"a_split_index",components:1,type:"Float32"}]),{members:ml}=cl,pl=Ns.VectorTileFeature.types,fl=Math.cos(Math.PI/180*37.5),_l=Math.pow(2,14)/.5;class gl{constructor(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map((e=>e.id)),this.index=e.index,this.hasPattern=!1,this.patternFeatures=[],this.lineClipsArray=[],this.gradients={},this.layers.forEach((e=>{this.gradients[e.id]={}})),this.layoutVertexArray=new _o,this.layoutVertexArray2=new go,this.indexArray=new So,this.programConfigurations=new er(e.layers,e.zoom),this.segments=new Po,this.maxLineLength=0,this.stateDependentLayerIds=this.layers.filter((e=>e.isStateDependent())).map((e=>e.id))}populate(e,t,i){this.hasPattern=As("line",this.layers,t);const a=this.layers[0].layout.get("line-sort-key"),n=!a.isConstant(),o=[];for(const{feature:t,id:r,index:s,sourceLayerIndex:l}of e){const e=this.layers[0]._featureFilter.needGeometry,d=sr(t,e);if(!this.layers[0]._featureFilter.filter(new ln(this.zoom),d,i))continue;const u=n?a.evaluate(d,{},i):void 0,h={id:r,properties:t.properties,type:t.type,sourceLayerIndex:l,index:s,geometry:e?d.geometry:rr(t),patterns:{},sortKey:u};o.push(h)}n&&o.sort(((e,t)=>e.sortKey-t.sortKey));for(const a of o){const{geometry:n,index:o,sourceLayerIndex:r}=a;if(this.hasPattern){const e=Is("line",this.layers,a,this.zoom,t);this.patternFeatures.push(e)}else this.addFeature(a,n,o,i,{});t.featureIndex.insert(e[o].feature,n,o,r,this.index)}}update(e,t,i){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,i)}addFeatures(e,t,i){for(const e of this.patternFeatures)this.addFeature(e,e.geometry,e.index,t,i)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(0!==this.layoutVertexArray2.length&&(this.layoutVertexBuffer2=e.createVertexBuffer(this.layoutVertexArray2,ml)),this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,hl),this.indexBuffer=e.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}lineFeatureClips(e){if(e.properties&&Object.prototype.hasOwnProperty.call(e.properties,"mapbox_clip_start")&&Object.prototype.hasOwnProperty.call(e.properties,"mapbox_clip_end"))return{start:+e.properties.mapbox_clip_start,end:+e.properties.mapbox_clip_end}}addFeature(e,t,i,a,n){const o=this.layers[0].layout,r=o.get("line-join").evaluate(e,{}),s=o.get("line-cap"),l=o.get("line-miter-limit"),d=o.get("line-round-limit");this.lineClips=this.lineFeatureClips(e);for(const i of t)this.addLine(i,e,r,s,l,d);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,i,n,a)}addLine(e,t,i,a,n,o){if(this.distance=0,this.scaledDistance=0,this.totalDistance=0,this.lineClips){this.lineClipsArray.push(this.lineClips);for(let t=0;t<e.length-1;t++)this.totalDistance+=e[t].dist(e[t+1]);this.updateScaledDistance(),this.maxLineLength=Math.max(this.maxLineLength,this.totalDistance)}const r="Polygon"===pl[t.type];let s=e.length;for(;s>=2&&e[s-1].equals(e[s-2]);)s--;let l=0;for(;l<s-1&&e[l].equals(e[l+1]);)l++;if(s<(r?3:2))return;"bevel"===i&&(n=1.05);const d=this.overscaling<=16?15*ar/(512*this.overscaling):0,u=this.segments.prepareSegment(10*s,this.layoutVertexArray,this.indexArray);let h,c,m,p,f;this.e1=this.e2=-1,r&&(h=e[s-2],f=e[l].sub(h)._unit()._perp());for(let t=l;t<s;t++){if(m=t===s-1?r?e[l+1]:void 0:e[t+1],m&&e[t].equals(m))continue;f&&(p=f),h&&(c=h),h=e[t],f=m?m.sub(h)._unit()._perp():p,p=p||f;let _=p.add(f);0===_.x&&0===_.y||_._unit();const g=p.x*f.x+p.y*f.y,y=_.x*f.x+_.y*f.y,v=0!==y?1/y:1/0,w=2*Math.sqrt(2-2*y),x=y<fl&&c&&m,b=p.x*f.y-p.y*f.x>0;if(x&&t>l){const e=h.dist(c);if(e>2*d){const t=h.sub(h.sub(c)._mult(d/e)._round());this.updateDistance(c,t),this.addCurrentVertex(t,p,0,0,u),c=t}}const k=c&&m;let S=k?i:r?"butt":a;if(k&&"round"===S&&(v<o?S="miter":v<=2&&(S="fakeround")),"miter"===S&&v>n&&(S="bevel"),"bevel"===S&&(v>2&&(S="flipbevel"),v<n&&(S="miter")),c&&this.updateDistance(c,h),"miter"===S)_._mult(v),this.addCurrentVertex(h,_,0,0,u);else if("flipbevel"===S){if(v>100)_=f.mult(-1);else{const e=v*p.add(f).mag()/p.sub(f).mag();_._perp()._mult(e*(b?-1:1))}this.addCurrentVertex(h,_,0,0,u),this.addCurrentVertex(h,_.mult(-1),0,0,u)}else if("bevel"===S||"fakeround"===S){const e=-Math.sqrt(v*v-1),t=b?e:0,i=b?0:e;if(c&&this.addCurrentVertex(h,p,t,i,u),"fakeround"===S){const e=Math.round(180*w/Math.PI/20);for(let t=1;t<e;t++){let i=t/e;if(.5!==i){const e=i-.5;i+=i*e*(i-1)*((1.0904+g*(g*(3.55645-1.43519*g)-3.2452))*e*e+(.848013+g*(.215638*g-1.06021)))}const a=f.sub(p)._mult(i)._add(p)._unit()._mult(b?-1:1);this.addHalfVertex(h,a.x,a.y,!1,b,0,u)}}m&&this.addCurrentVertex(h,f,-t,-i,u)}else if("butt"===S)this.addCurrentVertex(h,_,0,0,u);else if("square"===S){const e=c?1:-1;this.addCurrentVertex(h,_,e,e,u)}else"round"===S&&(c&&(this.addCurrentVertex(h,p,0,0,u),this.addCurrentVertex(h,p,1,1,u,!0)),m&&(this.addCurrentVertex(h,f,-1,-1,u,!0),this.addCurrentVertex(h,f,0,0,u)));if(x&&t<s-1){const e=h.dist(m);if(e>2*d){const t=h.add(m.sub(h)._mult(d/e)._round());this.updateDistance(h,t),this.addCurrentVertex(t,f,0,0,u),h=t}}}}addCurrentVertex(e,t,i,a,n,o=!1){const r=t.y*a-t.x,s=-t.y-t.x*a;this.addHalfVertex(e,t.x+t.y*i,t.y-t.x*i,o,!1,i,n),this.addHalfVertex(e,r,s,o,!0,-a,n),this.distance>_l/2&&0===this.totalDistance&&(this.distance=0,this.updateScaledDistance(),this.addCurrentVertex(e,t,i,a,n,o))}addHalfVertex({x:e,y:t},i,a,n,o,r,s){const l=.5*(this.lineClips?this.scaledDistance*(_l-1):this.scaledDistance);this.layoutVertexArray.emplaceBack((e<<1)+(n?1:0),(t<<1)+(o?1:0),Math.round(63*i)+128,Math.round(63*a)+128,1+(0===r?0:r<0?-1:1)|(63&l)<<2,l>>6),this.lineClips&&this.layoutVertexArray2.emplaceBack((this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start),this.lineClipsArray.length);const d=s.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,d),s.primitiveLength++),o?this.e2=d:this.e1=d}updateScaledDistance(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance}updateDistance(e,t){this.distance+=e.dist(t),this.updateScaledDistance()}}let yl,vl;ja("LineBucket",gl,{omit:["layers","patternFeatures"]});var wl={get paint(){return vl=vl||new bn({"line-opacity":new yn(K.paint_line["line-opacity"]),"line-color":new yn(K.paint_line["line-color"]),"line-translate":new gn(K.paint_line["line-translate"]),"line-translate-anchor":new gn(K.paint_line["line-translate-anchor"]),"line-width":new yn(K.paint_line["line-width"]),"line-gap-width":new yn(K.paint_line["line-gap-width"]),"line-offset":new yn(K.paint_line["line-offset"]),"line-blur":new yn(K.paint_line["line-blur"]),"line-dasharray":new wn(K.paint_line["line-dasharray"]),"line-pattern":new vn(K.paint_line["line-pattern"]),"line-gradient":new xn(K.paint_line["line-gradient"])})},get layout(){return yl=yl||new bn({"line-cap":new gn(K.layout_line["line-cap"]),"line-join":new yn(K.layout_line["line-join"]),"line-miter-limit":new gn(K.layout_line["line-miter-limit"]),"line-round-limit":new gn(K.layout_line["line-round-limit"]),"line-sort-key":new yn(K.layout_line["line-sort-key"])})}};class xl extends yn{possiblyEvaluate(e,t){return t=new ln(Math.floor(t.zoom),{now:t.now,fadeDuration:t.fadeDuration,zoomHistory:t.zoomHistory,transition:t.transition}),super.possiblyEvaluate(e,t)}evaluate(e,t,i,a){return t=g({},t,{zoom:Math.floor(t.zoom)}),super.evaluate(e,t,i,a)}}let bl;class kl extends Sn{constructor(e){super(e,wl),this.gradientVersion=0,bl||(bl=new xl(wl.paint.properties["line-width"].specification),bl.useIntegerZoom=!0)}_handleSpecialPaintPropertyUpdate(e){if("line-gradient"===e){const e=this.gradientExpression();this.stepInterpolant=!!function(e){return void 0!==e._styleExpression}(e)&&e._styleExpression.expression instanceof Vt,this.gradientVersion=(this.gradientVersion+1)%Number.MAX_SAFE_INTEGER}}gradientExpression(){return this._transitionablePaint._values["line-gradient"].value.expression}recalculate(e,t){super.recalculate(e,t),this.paint._values["line-floorwidth"]=bl.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,e)}createBucket(e){return new gl(e)}queryRadius(e){const t=e,i=Sl(xr("line-width",this,t),xr("line-gap-width",this,t)),a=xr("line-offset",this,t);return i/2+Math.abs(a)+br(this.paint.get("line-translate"))}queryIntersectsFeature(e,t,i,a,n,r,s){const l=kr(e,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),r.angle,s),d=s/2*Sl(this.paint.get("line-width").evaluate(t,i),this.paint.get("line-gap-width").evaluate(t,i)),u=this.paint.get("line-offset").evaluate(t,i);return u&&(a=function(e,t){const i=[];for(let a=0;a<e.length;a++){const n=e[a],r=[];for(let e=0;e<n.length;e++){const i=n[e-1],a=n[e],s=n[e+1],l=0===e?new o(0,0):a.sub(i)._unit()._perp(),d=e===n.length-1?new o(0,0):s.sub(a)._unit()._perp(),u=l._add(d)._unit(),h=u.x*d.x+u.y*d.y;0!==h&&u._mult(1/h),r.push(u._mult(t)._add(a))}i.push(r)}return i}(a,u*s)),function(e,t,i){for(let a=0;a<t.length;a++){const n=t[a];if(e.length>=3)for(let t=0;t<n.length;t++)if(vr(e,n[t]))return!0;if(mr(e,n,i))return!0}return!1}(l,a,d)}isTileClipped(){return!0}}function Sl(e,t){return t>0?t+2*e:e}const Tl=Pn([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),Cl=Pn([{name:"a_projected_pos",components:3,type:"Float32"}],4);Pn([{name:"a_fade_opacity",components:1,type:"Uint32"}],4);const zl=Pn([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"}]);Pn([{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"}]);const Pl=Pn([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4),Ml=Pn([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);function Ll(e,t,i){return e.sections.forEach((e=>{e.text=function(e,t,i){const a=t.layout.get("text-transform").evaluate(i,{});return"uppercase"===a?e=e.toLocaleUpperCase():"lowercase"===a&&(e=e.toLocaleLowerCase()),sn.applyArabicShaping&&(e=sn.applyArabicShaping(e)),e}(e.text,t,i)})),e}Pn([{name:"triangle",components:3,type:"Uint16"}]),Pn([{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"},{type:"Int16",name:"associatedIconIndex"}]),Pn([{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:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{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:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",name:"textBoxScale"},{type:"Float32",name:"collisionCircleDiameter"},{type:"Uint16",name:"textAnchorOffsetStartIndex"},{type:"Uint16",name:"textAnchorOffsetEndIndex"}]),Pn([{type:"Float32",name:"offsetX"}]),Pn([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]),Pn([{type:"Uint16",name:"textAnchor"},{type:"Float32",components:2,name:"textOffset"}]);const Al={"!":"︕","#":"#",$:"$","%":"%","&":"&","(":"︵",")":"︶","*":"*","+":"+",",":"︐","-":"︲",".":"・","/":"/",":":"︓",";":"︔","<":"︿","=":"=",">":"﹀","?":"︖","@":"@","[":"﹇","\\":"\","]":"﹈","^":"^",_:"︳","`":"`","{":"︷","|":"―","}":"︸","~":"~","¢":"¢","£":"£","¥":"¥","¦":"¦","¬":"¬","¯":" ̄","–":"︲","—":"︱","‘":"﹃","’":"﹄","“":"﹁","”":"﹂","…":"︙","‧":"・","₩":"₩","、":"︑","。":"︒","〈":"︿","〉":"﹀","《":"︽","》":"︾","「":"﹁","」":"﹂","『":"﹃","』":"﹄","【":"︻","】":"︼","〔":"︹","〕":"︺","〖":"︗","〗":"︘","!":"︕","(":"︵",")":"︶",",":"︐","-":"︲",".":"・",":":"︓",";":"︔","<":"︿",">":"﹀","?":"︖","[":"﹇","]":"﹈","_":"︳","{":"︷","|":"―","}":"︸","⦅":"︵","⦆":"︶","。":"︒","「":"﹁","」":"﹂"};var Il=24,El=$l,Dl=function(e,t,i,a,n){var o,r,s=8*n-a-1,l=(1<<s)-1,d=l>>1,u=-7,h=i?n-1:0,c=i?-1:1,m=e[t+h];for(h+=c,o=m&(1<<-u)-1,m>>=-u,u+=s;u>0;o=256*o+e[t+h],h+=c,u-=8);for(r=o&(1<<-u)-1,o>>=-u,u+=a;u>0;r=256*r+e[t+h],h+=c,u-=8);if(0===o)o=1-d;else{if(o===l)return r?NaN:1/0*(m?-1:1);r+=Math.pow(2,a),o-=d}return(m?-1:1)*r*Math.pow(2,o-a)},jl=function(e,t,i,a,n,o){var r,s,l,d=8*o-n-1,u=(1<<d)-1,h=u>>1,c=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,m=a?0:o-1,p=a?1:-1,f=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,r=u):(r=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-r))<1&&(r--,l*=2),(t+=r+h>=1?c/l:c*Math.pow(2,1-h))*l>=2&&(r++,l/=2),r+h>=u?(s=0,r=u):r+h>=1?(s=(t*l-1)*Math.pow(2,n),r+=h):(s=t*Math.pow(2,h-1)*Math.pow(2,n),r=0));n>=8;e[i+m]=255&s,m+=p,s/=256,n-=8);for(r=r<<n|s,d+=n;d>0;e[i+m]=255&r,m+=p,r/=256,d-=8);e[i+m-p]|=128*f};function $l(e){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(e)?e:new Uint8Array(e||0),this.pos=0,this.type=0,this.length=this.buf.length}$l.Varint=0,$l.Fixed64=1,$l.Bytes=2,$l.Fixed32=5;var Rl=4294967296,Bl=1/Rl,Fl="undefined"==typeof TextDecoder?null:new TextDecoder("utf8");function Ol(e){return e.type===$l.Bytes?e.readVarint()+e.pos:e.pos+1}function Nl(e,t,i){return i?4294967296*t+(e>>>0):4294967296*(t>>>0)+(e>>>0)}function Vl(e,t,i){var a=t<=16383?1:t<=2097151?2:t<=268435455?3:Math.floor(Math.log(t)/(7*Math.LN2));i.realloc(a);for(var n=i.pos-1;n>=e;n--)i.buf[n+a]=i.buf[n]}function Ul(e,t){for(var i=0;i<e.length;i++)t.writeVarint(e[i])}function Zl(e,t){for(var i=0;i<e.length;i++)t.writeSVarint(e[i])}function ql(e,t){for(var i=0;i<e.length;i++)t.writeFloat(e[i])}function Gl(e,t){for(var i=0;i<e.length;i++)t.writeDouble(e[i])}function Wl(e,t){for(var i=0;i<e.length;i++)t.writeBoolean(e[i])}function Hl(e,t){for(var i=0;i<e.length;i++)t.writeFixed32(e[i])}function Kl(e,t){for(var i=0;i<e.length;i++)t.writeSFixed32(e[i])}function Xl(e,t){for(var i=0;i<e.length;
vendor: 2,194 bytes, line 5
5i++)t.writeFixed64(e[i])}function Jl(e,t){for(var i=0;i<e.length;i++)t.writeSFixed64(e[i])}function Yl(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16)+16777216*e[t+3]}function Ql(e,t,i){e[i]=t,e[i+1]=t>>>8,e[i+2]=t>>>16,e[i+3]=t>>>24}function ed(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16)+(e[t+3]<<24)}$l.prototype={destroy:function(){this.buf=null},readFields:function(e,t,i){for(i=i||this.length;this.pos<i;){var a=this.readVarint(),n=a>>3,o=this.pos;this.type=7&a,e(n,t,this),this.pos===o&&this.skip(a)}return t},readMessage:function(e,t){return this.readFields(e,t,this.readVarint()+this.pos)},readFixed32:function(){var e=Yl(this.buf,this.pos);return this.pos+=4,e},readSFixed32:function(){var e=ed(this.buf,this.pos);return this.pos+=4,e},readFixed64:function(){var e=Yl(this.buf,this.pos)+Yl(this.buf,this.pos+4)*Rl;return this.pos+=8,e},readSFixed64:function(){var e=Yl(this.buf,this.pos)+ed(this.buf,this.pos+4)*Rl;return this.pos+=8,e},readFloat:function(){var e=Dl(this.buf,this.pos,!0,23,4);return this.pos+=4,e},readDouble:function(){var e=Dl(this.buf,this.pos,!0,52,8);return this.pos+=8,e},readVarint:function(e){var t,i,a=this.buf;return t=127&(i=a[this.pos++]),i<128?t:(t|=(127&(i=a[this.pos++]))<<7,i<128?t:(t|=(127&(i=a[this.pos++]))<<14,i<128?t:(t|=(127&(i=a[this.pos++]))<<21,i<128?t:function(e,t,i){var a,n,o=i.buf;if(a=(112&(n=o[i.pos++]))>>4,n<128)return Nl(e,a,t);if(a|=(127&(n=o[i.pos++]))<<3,n<128)return Nl(e,a,t);if(a|=(127&(n=o[i.pos++]))<<10,n<128)return Nl(e,a,t);if(a|=(127&(n=o[i.pos++]))<<17,n<128)return Nl(e,a,t);if(a|=(127&(n=o[i.pos++]))<<24,n<128)return Nl(e,a,t);if(a|=(1&(n=o[i.pos++]))<<31,n<128)return Nl(e,a,t);throw new Error("Expected varint not more than 10 bytes")}(t|=(15&(i=a[this.pos]))<<28,e,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var e=this.readVarint();return e%2==1?(e+1)/-2:e/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var e=this.readVarint()+this.pos,t=this.pos;return this.pos=e,e-t>=12&&Fl?function(e,t,i){return Fl.decode(e.subarray(t,i))}(this.buf,t,e):function(e,t,i){for(var a="",n=t;n<i;){var o,r,s,l=e[n],d=null,u=l>239?4:l>223?3:l>191?2:1;if(n+u>i)break;
vendor: 4,312 bytes, line 5
51===u?l<128&&(d=l):2===u?128==(192&(o=e[n+1]))&&(d=(31&l)<<6|63&o)<=127&&(d=null):3===u?(r=e[n+2],128==(192&(o=e[n+1]))&&128==(192&r)&&((d=(15&l)<<12|(63&o)<<6|63&r)<=2047||d>=55296&&d<=57343)&&(d=null)):4===u&&(r=e[n+2],s=e[n+3],128==(192&(o=e[n+1]))&&128==(192&r)&&128==(192&s)&&((d=(15&l)<<18|(63&o)<<12|(63&r)<<6|63&s)<=65535||d>=1114112)&&(d=null)),null===d?(d=65533,u=1):d>65535&&(d-=65536,a+=String.fromCharCode(d>>>10&1023|55296),d=56320|1023&d),a+=String.fromCharCode(d),n+=u}return a}(this.buf,t,e)},readBytes:function(){var e=this.readVarint()+this.pos,t=this.buf.subarray(this.pos,e);return this.pos=e,t},readPackedVarint:function(e,t){if(this.type!==$l.Bytes)return e.push(this.readVarint(t));var i=Ol(this);for(e=e||[];this.pos<i;)e.push(this.readVarint(t));return e},readPackedSVarint:function(e){if(this.type!==$l.Bytes)return e.push(this.readSVarint());var t=Ol(this);for(e=e||[];this.pos<t;)e.push(this.readSVarint());return e},readPackedBoolean:function(e){if(this.type!==$l.Bytes)return e.push(this.readBoolean());var t=Ol(this);for(e=e||[];this.pos<t;)e.push(this.readBoolean());return e},readPackedFloat:function(e){if(this.type!==$l.Bytes)return e.push(this.readFloat());var t=Ol(this);for(e=e||[];this.pos<t;)e.push(this.readFloat());return e},readPackedDouble:function(e){if(this.type!==$l.Bytes)return e.push(this.readDouble());var t=Ol(this);for(e=e||[];this.pos<t;)e.push(this.readDouble());return e},readPackedFixed32:function(e){if(this.type!==$l.Bytes)return e.push(this.readFixed32());var t=Ol(this);for(e=e||[];this.pos<t;)e.push(this.readFixed32());return e},readPackedSFixed32:function(e){if(this.type!==$l.Bytes)return e.push(this.readSFixed32());var t=Ol(this);for(e=e||[];this.pos<t;)e.push(this.readSFixed32());return e},readPackedFixed64:function(e){if(this.type!==$l.Bytes)return e.push(this.readFixed64());var t=Ol(this);for(e=e||[];this.pos<t;)e.push(this.readFixed64());return e},readPackedSFixed64:function(e){if(this.type!==$l.Bytes)return e.push(this.readSFixed64());var t=Ol(this);for(e=e||[];this.pos<t;)e.push(this.readSFixed64());return e},skip:function(e){var t=7&e;if(t===$l.Varint)for(;this.buf[this.pos++]>127;);else if(t===$l.Bytes)this.pos=this.readVarint()+this.pos;else if(t===$l.Fixed32)this.pos+=4;else{if(t!==$l.Fixed64)throw new Error("Unimplemented type: "+t);this.pos+=8}},writeTag:function(e,t){this.writeVarint(e<<3|t)},realloc:function(e){for(var t=this.length||16;t<this.pos+e;)t*=2;if(t!==this.length){var i=new Uint8Array(t);i.set(this.buf),this.buf=i,this.length=t}},finish:function(){return this.length=this.pos,this.pos=0,this.buf.subarray(0,this.length)},writeFixed32:function(e){this.realloc(4),Ql(this.buf,e,this.pos),this.pos+=4},writeSFixed32:function(e){this.realloc(4),Ql(this.buf,e,this.pos),this.pos+=4},writeFixed64:function(e){this.realloc(8),Ql(this.buf,-1&e,this.pos),Ql(this.buf,Math.floor(e*Bl),this.pos+4),this.pos+=8},writeSFixed64:function(e){this.realloc(8),Ql(this.buf,-1&e,this.pos),Ql(this.buf,Math.floor(e*Bl),this.pos+4),this.pos+=8},writeVarint:function(e){(e=+e||0)>268435455||e<0?function(e,t){var i,a;if(e>=0?(i=e%4294967296|0,a=e/4294967296|0):(a=~(-e/4294967296),4294967295^(i=~(-e%4294967296))?i=i+1|0:(i=0,a=a+1|0)),e>=0x10000000000000000||e<-0x10000000000000000)throw new Error("Given varint doesn't fit into 10 bytes");t.realloc(10),function(e,t,i){i.buf[i.pos++]=127&e|128,e>>>=7,i.buf[i.pos++]=127&e|128,e>>>=7,i.buf[i.pos++]=127&e|128,e>>>=7,i.buf[i.pos++]=127&e|128,i.buf[i.pos]=127&(e>>>=7)}(i,0,t),function(e,t){var i=(7&e)<<4;t.buf[t.pos++]|=i|((e>>>=3)?128:0),e&&(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),e&&(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),e&&(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),e&&(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),e&&(t.buf[t.pos++]=127&e)))))}(a,t)}(e,this):(this.realloc(4),this.buf[this.pos++]=127&e|(e>127?128:0),e<=127||(this.buf[this.pos++]=127&(e>>>=7)|(e>127?128:0),e<=127||(this.buf[this.pos++]=127&(e>>>=7)|(e>127?128:0),e<=127||(this.buf[this.pos++]=e>>>7&127))))},writeSVarint:function(e){this.writeVarint(e<0?2*-e-1:2*e)},writeBoolean:function(e){this.writeVarint(Boolean(e))},writeString:function(e){e=String(e),this.realloc(4*e.length),this.pos++;var t=this.pos;this.pos=function(e,t,i){for(var a,n,o=0;o<t.length;o++){if((a=t.charCodeAt(o))>55295&&a<57344){if(!n){a>
vendor: 24,995 bytes, line 5
556319||o+1===t.length?(e[i++]=239,e[i++]=191,e[i++]=189):n=a;continue}if(a<56320){e[i++]=239,e[i++]=191,e[i++]=189,n=a;continue}a=n-55296<<10|a-56320|65536,n=null}else n&&(e[i++]=239,e[i++]=191,e[i++]=189,n=null);a<128?e[i++]=a:(a<2048?e[i++]=a>>6|192:(a<65536?e[i++]=a>>12|224:(e[i++]=a>>18|240,e[i++]=a>>12&63|128),e[i++]=a>>6&63|128),e[i++]=63&a|128)}return i}(this.buf,e,this.pos);var i=this.pos-t;i>=128&&Vl(t,i,this),this.pos=t-1,this.writeVarint(i),this.pos+=i},writeFloat:function(e){this.realloc(4),jl(this.buf,e,this.pos,!0,23,4),this.pos+=4},writeDouble:function(e){this.realloc(8),jl(this.buf,e,this.pos,!0,52,8),this.pos+=8},writeBytes:function(e){var t=e.length;this.writeVarint(t),this.realloc(t);for(var i=0;i<t;i++)this.buf[this.pos++]=e[i]},writeRawMessage:function(e,t){this.pos++;var i=this.pos;e(t,this);var a=this.pos-i;a>=128&&Vl(i,a,this),this.pos=i-1,this.writeVarint(a),this.pos+=a},writeMessage:function(e,t,i){this.writeTag(e,$l.Bytes),this.writeRawMessage(t,i)},writePackedVarint:function(e,t){t.length&&this.writeMessage(e,Ul,t)},writePackedSVarint:function(e,t){t.length&&this.writeMessage(e,Zl,t)},writePackedBoolean:function(e,t){t.length&&this.writeMessage(e,Wl,t)},writePackedFloat:function(e,t){t.length&&this.writeMessage(e,ql,t)},writePackedDouble:function(e,t){t.length&&this.writeMessage(e,Gl,t)},writePackedFixed32:function(e,t){t.length&&this.writeMessage(e,Hl,t)},writePackedSFixed32:function(e,t){t.length&&this.writeMessage(e,Kl,t)},writePackedFixed64:function(e,t){t.length&&this.writeMessage(e,Xl,t)},writePackedSFixed64:function(e,t){t.length&&this.writeMessage(e,Jl,t)},writeBytesField:function(e,t){this.writeTag(e,$l.Bytes),this.writeBytes(t)},writeFixed32Field:function(e,t){this.writeTag(e,$l.Fixed32),this.writeFixed32(t)},writeSFixed32Field:function(e,t){this.writeTag(e,$l.Fixed32),this.writeSFixed32(t)},writeFixed64Field:function(e,t){this.writeTag(e,$l.Fixed64),this.writeFixed64(t)},writeSFixed64Field:function(e,t){this.writeTag(e,$l.Fixed64),this.writeSFixed64(t)},writeVarintField:function(e,t){this.writeTag(e,$l.Varint),this.writeVarint(t)},writeSVarintField:function(e,t){this.writeTag(e,$l.Varint),this.writeSVarint(t)},writeStringField:function(e,t){this.writeTag(e,$l.Bytes),this.writeString(t)},writeFloatField:function(e,t){this.writeTag(e,$l.Fixed32),this.writeFloat(t)},writeDoubleField:function(e,t){this.writeTag(e,$l.Fixed64),this.writeDouble(t)},writeBooleanField:function(e,t){this.writeVarintField(e,Boolean(t))}};var td=i(El);const id=3;function ad(e,t,i){1===e&&i.readMessage(nd,t)}function nd(e,t,i){if(3===e){const{id:e,bitmap:a,width:n,height:o,left:r,top:s,advance:l}=i.readMessage(od,{});t.push({id:e,bitmap:new Vr({width:n+2*id,height:o+2*id},a),metrics:{width:n,height:o,left:r,top:s,advance:l}})}}function od(e,t,i){1===e?t.id=i.readVarint():2===e?t.bitmap=i.readBytes():3===e?t.width=i.readVarint():4===e?t.height=i.readVarint():5===e?t.left=i.readSVarint():6===e?t.top=i.readSVarint():7===e&&(t.advance=i.readVarint())}const rd=id;function sd(e){let t=0,i=0;for(const a of e)t+=a.w*a.h,i=Math.max(i,a.w);e.sort(((e,t)=>t.h-e.h));const a=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(t/.95)),i),h:1/0}];let n=0,o=0;for(const t of e)for(let e=a.length-1;e>=0;e--){const i=a[e];if(!(t.w>i.w||t.h>i.h)){if(t.x=i.x,t.y=i.y,o=Math.max(o,t.y+t.h),n=Math.max(n,t.x+t.w),t.w===i.w&&t.h===i.h){const t=a.pop();e<a.length&&(a[e]=t)}else t.h===i.h?(i.x+=t.w,i.w-=t.w):t.w===i.w?(i.y+=t.h,i.h-=t.h):(a.push({x:i.x+t.w,y:i.y,w:i.w-t.w,h:t.h}),i.y+=t.h,i.h-=t.h);break}}return{w:n,h:o,fill:t/(n*o)||0}}const ld=1;class dd{constructor(e,{pixelRatio:t,version:i,stretchX:a,stretchY:n,content:o}){this.paddedRect=e,this.pixelRatio=t,this.stretchX=a,this.stretchY=n,this.content=o,this.version=i}get tl(){return[this.paddedRect.x+ld,this.paddedRect.y+ld]}get br(){return[this.paddedRect.x+this.paddedRect.w-ld,this.paddedRect.y+this.paddedRect.h-ld]}get tlbr(){return this.tl.concat(this.br)}get displaySize(){return[(this.paddedRect.w-2*ld)/this.pixelRatio,(this.paddedRect.h-2*ld)/this.pixelRatio]}}class ud{constructor(e,t){const i={},a={};this.haveRenderCallbacks=[];const n=[];this.addImages(e,i,n),this.addImages(t,a,n);const{w:o,h:r}=sd(n),s=new Ur({width:o||1,height:r||1});for(const t in e){const a=e[t],n=i[t].paddedRect;Ur.copy(a.data,s,{x:0,y:0},{x:n.x+ld,y:n.y+ld},a.data)}for(const e in t){const i=t[e],n=a[e].paddedRect,o=n.x+ld,r=n.y+ld,l=i.data.width,d=i.data.height;Ur.copy(i.data,s,{x:0,y:0},{x:o,y:r},i.data),Ur.copy(i.data,s,{x:0,y:d-1},{x:o,y:r-1},{width:l,height:1}),Ur.copy(i.data,s,{x:0,y:0},{x:o,y:r+d},{width:l,height:1}),Ur.copy(i.data,s,{x:l-1,y:0},{x:o-1,y:r},{width:1,height:d}),Ur.copy(i.data,s,{x:0,y:0},{x:o+l,y:r},{width:1,height:d})}this.image=s,this.iconPositions=i,this.patternPositions=a}addImages(e,t,i){for(const a in e){const n=e[a],o={x:0,y:0,w:n.data.width+2*ld,h:n.data.height+2*ld};i.push(o),t[a]=new dd(o,n),n.hasRenderCallback&&this.haveRenderCallbacks.push(a)}}patchUpdatedImages(e,t){e.dispatchRenderCallbacks(this.haveRenderCallbacks);for(const i in e.updatedImages)this.patchUpdatedImage(this.iconPositions[i],e.getImage(i),t),this.patchUpdatedImage(this.patternPositions[i],e.getImage(i),t)}patchUpdatedImage(e,t,i){if(!e||!t)return;if(e.version===t.version)return;e.version=t.version;const[a,n]=e.tl;i.update(t.data,void 0,{x:a,y:n})}}var hd;ja("ImagePosition",dd),ja("ImageAtlas",ud),e.ai=void 0,(hd=e.ai||(e.ai={}))[hd.none=0]="none",hd[hd.horizontal=1]="horizontal",hd[hd.vertical=2]="vertical",hd[hd.horizontalOnly=3]="horizontalOnly";const cd=-17;class md{constructor(){this.scale=1,this.fontStack="",this.imageName=null}static forText(e,t){const i=new md;return i.scale=e||1,i.fontStack=t,i}static forImage(e){const t=new md;return t.imageName=e,t}}class pd{constructor(){this.text="",this.sectionIndex=[],this.sections=[],this.imageSectionID=null}static fromFeature(e,t){const i=new pd;for(let a=0;a<e.sections.length;a++){const n=e.sections[a];n.image?i.addImageSection(n):i.addTextSection(n,t)}return i}length(){return this.text.length}getSection(e){return this.sections[this.sectionIndex[e]]}getSectionIndex(e){return this.sectionIndex[e]}getCharCode(e){return this.text.charCodeAt(e)}verticalizePunctuation(){this.text=function(e){let t="";for(let i=0;i<e.length;i++){const a=e.charCodeAt(i+1)||null,n=e.charCodeAt(i-1)||null;t+=a&&qa(a)&&!Al[e[i+1]]||n&&qa(n)&&!Al[e[i-1]]||!Al[e[i]]?e[i]:Al[e[i]]}return t}(this.text)}trim(){let e=0;for(let t=0;t<this.text.length&&_d[this.text.charCodeAt(t)];t++)e++;let t=this.text.length;for(let i=this.text.length-1;i>=0&&i>=e&&_d[this.text.charCodeAt(i)];i--)t--;this.text=this.text.substring(e,t),this.sectionIndex=this.sectionIndex.slice(e,t)}substring(e,t){const i=new pd;return i.text=this.text.substring(e,t),i.sectionIndex=this.sectionIndex.slice(e,t),i.sections=this.sections,i}toString(){return this.text}getMaxScale(){return this.sectionIndex.reduce(((e,t)=>Math.max(e,this.sections[t].scale)),0)}addTextSection(e,t){this.text+=e.text,this.sections.push(md.forText(e.scale,e.fontStack||t));const i=this.sections.length-1;for(let t=0;t<e.text.length;++t)this.sectionIndex.push(i)}addImageSection(e){const t=e.image?e.image.name:"";if(0===t.length)return void k("Can't add FormattedSection with an empty image.");const i=this.getNextImageSectionCharCode();i?(this.text+=String.fromCharCode(i),this.sections.push(md.forImage(t)),this.sectionIndex.push(this.sections.length-1)):k("Reached maximum number of images 6401")}getNextImageSectionCharCode(){return this.imageSectionID?this.imageSectionID>=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)}}function fd(t,i,a,n,o,r,s,l,d,u,h,c,m,p,f,_){const g=pd.fromFeature(t,o);let y;c===e.ai.vertical&&g.verticalizePunctuation();const{processBidirectionalText:v,processStyledBidirectionalText:w}=sn;if(v&&1===g.sections.length){y=[];const e=v(g.toString(),kd(g,u,r,i,n,p,f));for(const t of e){const e=new pd;e.text=t,e.sections=g.sections;for(let i=0;i<t.length;i++)e.sectionIndex.push(0);y.push(e)}}else if(w){y=[];const e=w(g.text,g.sectionIndex,kd(g,u,r,i,n,p,f));for(const t of e){const e=new pd;e.text=t[0],e.sectionIndex=t[1],e.sections=g.sections,y.push(e)}}else y=function(e,t){const i=[],a=e.text;let n=0;for(const a of t)i.push(e.substring(n,a)),n=a;return n<a.length&&i.push(e.substring(n,a.length)),i}(g,kd(g,u,r,i,n,p,f));const x=[],b={positionedLines:x,text:g.toString(),top:h[1],bottom:h[1],left:h[0],right:h[0],writingMode:c,iconsInText:!1,verticalizable:!1};return function(t,i,a,n,o,r,s,l,d,u,h,c){let m=0,p=cd,f=0,_=0;const g="right"===l?1:"left"===l?0:.5;let y=0;for(const s of o){s.trim();const o=s.getMaxScale(),l=(o-1)*Il,w={positionedGlyphs:[],lineOffset:0};t.positionedLines[y]=w;const x=w.positionedGlyphs;let b=0;if(!s.length()){p+=r,++y;continue}for(let r=0;r<s.length();r++){const f=s.getSection(r),_=s.getSectionIndex(r),g=s.getCharCode(r);let y=0,w=null,k=null,S=null,T=Il;const C=!(d===e.ai.horizontal||!h&&!Za(g)||h&&(_d[g]||(v=g,Oa.Arabic(v)||Oa["Arabic Supplement"](v)||Oa["Arabic Extended-A"](v)||Oa["Arabic Presentation Forms-A"](v)||Oa["Arabic Presentation Forms-B"](v))));if(f.imageName){const e=n[f.imageName];if(!e)continue;S=f.imageName,t.iconsInText=t.iconsInText||!0,k=e.paddedRect;const i=e.displaySize;f.scale=f.scale*Il/c,w={width:i[0],height:i[1],left:ld,top:-rd,advance:C?i[1]:i[0]},y=l+(Il-i[1]*f.scale),T=w.advance;const a=C?i[0]*f.scale-Il*o:i[1]*f.scale-Il*o;a>0&&a>b&&(b=a)}else{const e=a[f.fontStack],t=e&&e[g];if(t&&t.rect)k=t.rect,w=t.metrics;else{const e=i[f.fontStack],t=e&&e[g];if(!t)continue;w=t.metrics}y=(o-f.scale)*Il}C?(t.verticalizable=!0,x.push({glyph:g,imageName:S,x:m,y:p+y,vertical:C,scale:f.scale,fontStack:f.fontStack,sectionIndex:_,metrics:w,rect:k}),m+=T*f.scale+u):(x.push({glyph:g,imageName:S,x:m,y:p+y,vertical:C,scale:f.scale,fontStack:f.fontStack,sectionIndex:_,metrics:w,rect:k}),m+=w.advance*f.scale+u)}0!==x.length&&(f=Math.max(m-u,f),Td(x,0,x.length-1,g,b)),m=0;const k=r*o+b;w.lineOffset=Math.max(b,l),p+=k,_=Math.max(k,_),++y}var v;const w=p-cd,{horizontalAlign:x,verticalAlign:b}=Sd(s);(function(e,t,i,a,n,o,r,s,l){const d=(t-i)*n;let u=0;u=o!==r?-s*a-cd:(-a*l+.5)*r;for(const t of e)for(const e of t.positionedGlyphs)e.x+=d,e.y+=u})(t.positionedLines,g,x,b,f,_,r,w,o.length),t.top+=-b*w,t.bottom=t.top+w,t.left+=-x*f,t.right=t.left+f}(b,i,a,n,y,s,l,d,c,u,m,_),!function(e){for(const t of e)if(0!==t.positionedGlyphs.length)return!1;return!0}(x)&&b}const _d={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},gd={10:!0,32:!0,38:!0,40:!0,41:!0,43:!0,45:!0,47:!0,173:!0,183:!0,8203:!0,8208:!0,8211:!0,8231:!0};function yd(e,t,i,a,n,o){if(t.imageName){const e=a[t.imageName];return e?e.displaySize[0]*t.scale*Il/o+n:0}{const a=i[t.fontStack],o=a&&a[e];return o?o.metrics.advance*t.scale+n:0}}function vd(e,t,i,a){const n=Math.pow(e-t,2);return a?e<t?n/2:2*n:n+Math.abs(i)*i}function wd(e,t,i){let a=0;return 10===e&&(a-=1e4),i&&(a+=150),40!==e&&65288!==e||(a+=50),41!==t&&65289!==t||(a+=50),a}function xd(e,t,i,a,n,o){let r=null,s=vd(t,i,n,o);for(const e of a){const a=vd(t-e.x,i,n,o)+e.badness;a<=s&&(r=e,s=a)}return{index:e,x:t,priorBreak:r,badness:s}}function bd(e){return e?bd(e.priorBreak).concat(e.index):[]}function kd(e,t,i,a,n,o,r){if("point"!==o)return[];if(!e)return[];const s=[],l=function(e,t,i,a,n,o){let r=0;for(let i=0;i<e.length();i++){const s=e.getSection(i);r+=yd(e.getCharCode(i),s,a,n,t,o)}return r/Math.max(1,Math.ceil(r/i))}(e,t,i,a,n,r),d=e.text.indexOf("​")>=0;let u=0;for(let i=0;i<e.length();i++){const o=e.getSection(i),c=e.getCharCode(i);if(_d[c]||(u+=yd(c,o,a,n,t,r)),i<e.length()-1){const t=!((h=c)<11904||!(Oa["Bopomofo Extended"](h)||Oa.Bopomofo(h)||Oa["CJK Compatibility Forms"](h)||Oa["CJK Compatibility Ideographs"](h)||Oa["CJK Compatibility"](h)||Oa["CJK Radicals Supplement"](h)||Oa["CJK Strokes"](h)||Oa["CJK Symbols and Punctuation"](h)||Oa["CJK Unified Ideographs Extension A"](h)||Oa["CJK Unified Ideographs"](h)||Oa["Enclosed CJK Letters and Months"](h)||Oa["Halfwidth and Fullwidth Forms"](h)||Oa.Hiragana(h)||Oa["Ideographic Description Characters"](h)||Oa["Kangxi Radicals"](h)||Oa["Katakana Phonetic Extensions"](h)||Oa.Katakana(h)||Oa["Vertical Forms"](h)||Oa["Yi Radicals"](h)||Oa["Yi Syllables"](h)));(gd[c]||t||o.imageName)&&s.push(xd(i+1,u,l,s,wd(c,e.getCharCode(i+1),t&&d),!1))}}var h;return bd(xd(e.length(),u,l,s,0,!0))}function Sd(e){let t=.5,i=.5;switch(e){case"right":case"top-right":case"bottom-right":t=1;break;case"left":case"top-left":case"bottom-left":t=0}switch(e){case"bottom":case"bottom-right":case"bottom-left":i=1;break;case"top":case"top-right":case"top-left":i=0}return{horizontalAlign:t,verticalAlign:i}}function Td(e,t,i,a,n){if(!a&&!n)return;const o=e[i],r=(e[i].x+o.metrics.advance*o.scale)*a;for(let a=t;a<=i;a++)e[a].x-=r,e[a].y+=n}function Cd(e,t,i){const{horizontalAlign:a,verticalAlign:n}=Sd(i),o=t[0]-e.displaySize[0]*a,r=t[1]-e.displaySize[1]*n;return{image:e,top:r,bottom:r+e.displaySize[1],left:o,right:o+e.displaySize[0]}}function zd(e,t,i,a,n,o){const r=e.image;let s;if(r.content){const e=r.content,t=r.pixelRatio||1;s=[e[0]/t,e[1]/t,r.displaySize[0]-e[2]/t,r.displaySize[1]-e[3]/t]}const l=t.left*o,d=t.right*o;let u,h,c,m;"width"===i||"both"===i?(m=n[0]+l-a[3],h=n[0]+d+a[1]):(m=n[0]+(l+d-r.displaySize[0])/2,h=m+r.displaySize[0]);const p=t.top*o,f=t.bottom*o;return"height"===i||"both"===i?(u=n[1]+p-a[0],c=n[1]+f+a[2]):(u=n[1]+(p+f-r.displaySize[1])/2,c=u+r.displaySize[1]),{image:r,top:u,right:h,bottom:c,left:m,collisionPadding:s}}const Pd=255,Md=128,Ld=Pd*Md;function Ad(e,t){const{expression:i}=t;if("constant"===i.kind)return{kind:"constant",layoutSize:i.evaluate(new ln(e+1))};if("source"===i.kind)return{kind:"source"};{const{zoomStops:t,interpolationType:a}=i;let n=0;for(;n<t.length&&t[n]<=e;)n++;n=Math.max(0,n-1);let o=n;for(;o<t.length&&t[o]<e+1;)o++;o=Math.min(t.length-1,o);const r=t[n],s=t[o];return"composite"===i.kind?{kind:"composite",minZoom:r,maxZoom:s,interpolationType:a}:{kind:"camera",minZoom:r,maxZoom:s,minSize:i.evaluate(new ln(r)),maxSize:i.evaluate(new ln(s)),interpolationType:a}}}function Id(e,t,i){let a="never";const n=e.get(t);return n?a=n:e.get(i)&&(a="always"),a}const Ed=Ns.VectorTileFeature.types,Dd=[{name:"a_fade_opacity",components:1,type:"Uint8",offset:0}];function jd(e,t,i,a,n,o,r,s,l,d,u,h,c){const m=s?Math.min(Ld,Math.round(s[0])):0,p=s?Math.min(Ld,Math.round(s[1])):0;e.emplaceBack(t,i,Math.round(32*a),Math.round(32*n),o,r,(m<<1)+(l?1:0),p,16*d,16*u,256*h,256*c)}function $d(e,t,i){e.emplaceBack(t.x,t.y,i),e.emplaceBack(t.x,t.y,i),e.emplaceBack(t.x,t.y,i),e.emplaceBack(t.x,t.y,i)}function Rd(e){for(const t of e.sections)if(Ha(t.text))return!0;return!1}class Bd{constructor(e){this.layoutVertexArray=new vo,this.indexArray=new So,this.programConfigurations=e,this.segments=new Po,this.dynamicLayoutVertexArray=new wo,this.opacityVertexArray=new xo,this.hasVisibleVertices=!1,this.placedSymbolArray=new io}isEmpty(){return 0===this.layoutVertexArray.length&&0===this.indexArray.length&&0===this.dynamicLayoutVertexArray.length&&0===this.opacityVertexArray.length}upload(e,t,i,a){this.isEmpty()||(i&&(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,Tl.members),this.indexBuffer=e.createIndexBuffer(this.indexArray,t),this.dynamicLayoutVertexBuffer=e.createVertexBuffer(this.dynamicLayoutVertexArray,Cl.members,!0),this.opacityVertexBuffer=e.createVertexBuffer(this.opacityVertexArray,Dd,!0),this.opacityVertexBuffer.itemSize=1),(i||a)&&this.programConfigurations.upload(e))}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.dynamicLayoutVertexBuffer.destroy(),this.opacityVertexBuffer.destroy())}}ja("SymbolBuffers",Bd);class Fd{constructor(e,t,i){this.layoutVertexArray=new e,this.layoutAttributes=t,this.indexArray=new i,this.segments=new Po,this.collisionVertexArray=new ko}upload(e){this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,this.layoutAttributes),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.collisionVertexBuffer=e.createVertexBuffer(this.collisionVertexArray,zl.members,!0)}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.collisionVertexBuffer.destroy())}}ja("CollisionBuffers",Fd);class Od{constructor(t){this.collisionBoxArray=t.collisionBoxArray,this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((e=>e.id)),this.index=t.index,this.pixelRatio=t.pixelRatio,this.sourceLayerIndex=t.sourceLayerIndex,this.hasPattern=!1,this.hasRTLText=!1,this.sortKeyRanges=[],this.collisionCircleArray=[],this.placementInvProjMatrix=Mr([]),this.placementViewportMatrix=Mr([]);const i=this.layers[0]._unevaluatedLayout._values;this.textSizeData=Ad(this.zoom,i["text-size"]),this.iconSizeData=Ad(this.zoom,i["icon-size"]);const a=this.layers[0].layout,n=a.get("symbol-sort-key"),o=a.get("symbol-z-order");this.canOverlap="never"!==Id(a,"text-overlap","text-allow-overlap")||"never"!==Id(a,"icon-overlap","icon-allow-overlap")||a.get("text-ignore-placement")||a.get("icon-ignore-placement"),this.sortFeaturesByKey="viewport-y"!==o&&!n.isConstant(),this.sortFeaturesByY=("viewport-y"===o||"auto"===o&&!this.sortFeaturesByKey)&&this.canOverlap,"point"===a.get("symbol-placement")&&(this.writingModes=a.get("text-writing-mode").map((t=>e.ai[t]))),this.stateDependentLayerIds=this.layers.filter((e=>e.isStateDependent())).map((e=>e.id)),this.sourceID=t.sourceID}createArrays(){this.text=new Bd(new er(this.layers,this.zoom,(e=>/^text/.test(e)))),this.icon=new Bd(new er(this.layers,this.zoom,(e=>/^icon/.test(e)))),this.glyphOffsetArray=new oo,this.lineVertexArray=new ro,this.symbolInstances=new no,this.textAnchorOffsets=new lo}calculateGlyphDependencies(e,t,i,a,n){for(let o=0;o<e.length;o++)if(t[e.charCodeAt(o)]=!0,(i||a)&&n){const i=Al[e.charAt(o)];i&&(t[i.charCodeAt(0)]=!0)}}populate(t,i,a){const n=this.layers[0],o=n.layout,r=o.get("text-font"),s=o.get("text-field"),l=o.get("icon-image"),d=("constant"!==s.value.kind||s.value.value instanceof Qe&&!s.value.value.isEmpty()||s.value.value.toString().length>0)&&("constant"!==r.value.kind||r.value.value.length>0),u="constant"!==l.value.kind||!!l.value.value||Object.keys(l.parameters).length>0,h=o.get("symbol-sort-key");if(this.features=[],!d&&!u)return;const c=i.iconDependencies,m=i.glyphDependencies,p=i.availableImages,f=new ln(this.zoom);for(const{feature:i,id:s,index:l,sourceLayerIndex:_}of t){const t=n._featureFilter.needGeometry,g=sr(i,t);if(!n._featureFilter.filter(f,g,a))continue;let y,v;if(t||(g.geometry=rr(i)),d){const e=n.getValueAndResolveTokens("text-field",g,a,p),t=Qe.factory(e);Rd(t)&&(this.hasRTLText=!0),(!this.hasRTLText||"unavailable"===on()||this.hasRTLText&&sn.isParsed())&&(y=Ll(t,n,g))}if(u){const e=n.getValueAndResolveTokens("icon-image",g,a,p);v=e instanceof at?e:at.fromString(e)}if(!y&&!v)continue;const w=this.sortFeaturesByKey?h.evaluate(g,{},a):void 0;if(this.features.push({id:s,text:y,icon:v,index:l,sourceLayerIndex:_,geometry:g.geometry,properties:i.properties,type:Ed[i.type],sortKey:w}),v&&(c[v.name]=!0),y){const t=r.evaluate(g,{},a).join(","),i="viewport"!==o.get("text-rotation-alignment")&&"point"!==o.get("symbol-placement");this.allowVerticalPlacement=this.writingModes&&this.writingModes.indexOf(e.ai.vertical)>=0;for(const e of y.sections)if(e.image)c[e.image.name]=!0;else{const a=Na(y.toString()),n=e.fontStack||t,o=m[n]=m[n]||{};this.calculateGlyphDependencies(e.text,o,i,this.allowVerticalPlacement,a)}}}"line"===o.get("symbol-placement")&&(this.features=function(e){const t={},i={},a=[];let n=0;function o(t){a.push(e[t]),n++}function r(e,t,n){const o=i[e];return delete i[e],i[t]=o,a[o].geometry[0].pop(),a[o].geometry[0]=a[o].geometry[0].concat(n[0]),o}function s(e,i,n){const o=t[i];return delete t[i],t[e]=o,a[o].geometry[0].shift(),a[o].geometry[0]=n[0].concat(a[o].geometry[0]),o}function l(e,t,i){const a=i?t[0][t[0].length-1]:t[0][0];return`${e}:${a.x}:${a.y}`}for(let d=0;d<e.length;d++){const u=e[d],h=u.geometry,c=u.text?u.text.toString():null;if(!c){o(d);continue}const m=l(c,h),p=l(c,h,!0);if(m in i&&p in t&&i[m]!==t[p]){const e=s(m,p,h),n=r(m,p,a[e].geometry);delete t[m],delete i[p],i[l(c,a[n].geometry,!0)]=n,a[e].geometry=null}else m in i?r(m,p,h):p in t?s(m,p,h):(o(d),t[m]=n-1,i[p]=n-1)}return a.filter((e=>e.geometry))}(this.features)),this.sortFeaturesByKey&&this.features.sort(((e,t)=>e.sortKey-t.sortKey))}update(e,t,i){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(e,t,this.layers,i),this.icon.programConfigurations.updatePaintArrays(e,t,this.layers,i))}isEmpty(){return 0===this.symbolInstances.length&&!this.hasRTLText}uploadPending(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload}upload(e){!this.uploaded&&this.hasDebugData()&&(this.textCollisionBox.upload(e),this.iconCollisionBox.upload(e)),this.text.upload(e,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(e,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0}destroyDebugData(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()}destroy(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&&this.destroyDebugData()}addToLineVertexArray(e,t){const i=this.lineVertexArray.length;if(void 0!==e.segment){let i=e.dist(t[e.segment+1]),a=e.dist(t[e.segment]);const n={};for(let a=e.segment+1;a<t.length;a++)n[a]={x:t[a].x,y:t[a].y,tileUnitDistanceFromAnchor:i},a<t.length-1&&(i+=t[a+1].dist(t[a]));for(let i=e.segment||0;i>=0;i--)n[i]={x:t[i].x,y:t[i].y,tileUnitDistanceFromAnchor:a},i>0&&(a+=t[i-1].dist(t[i]));for(let e=0;e<t.length;e++){const t=n[e];this.lineVertexArray.emplaceBack(t.x,t.y,t.tileUnitDistanceFromAnchor)}}return{lineStartIndex:i,lineLength:this.lineVertexArray.length-i}}addSymbols(t,i,a,n,o,r,s,l,d,u,h,c){const m=t.indexArray,p=t.layoutVertexArray,f=t.segments.prepareSegment(4*i.length,p,m,this.canOverlap?r.sortKey:void 0),_=this.glyphOffsetArray.length,g=f.vertexLength,y=this.allowVerticalPlacement&&s===e.ai.vertical?Math.PI/2:0,v=r.text&&r.text.sections;for(let e=0;e<i.length;e++){const{tl:n,tr:o,bl:s,br:d,tex:u,pixelOffsetTL:h,pixelOffsetBR:_,minFontScaleX:g,minFontScaleY:w,glyphOffset:x,isSDF:b,sectionIndex:k}=i[e],S=f.vertexLength,T=x[1];jd(p,l.x,l.y,n.x,T+n.y,u.x,u.y,a,b,h.x,h.y,g,w),jd(p,l.x,l.y,o.x,T+o.y,u.x+u.w,u.y,a,b,_.x,h.y,g,w),jd(p,l.x,l.y,s.x,T+s.y,u.x,u.y+u.h,a,b,h.x,_.y,g,w),jd(p,l.x,l.y,d.x,T+d.y,u.x+u.w,u.y+u.h,a,b,_.x,_.y,g,w),$d(t.dynamicLayoutVertexArray,l,y),m.emplaceBack(S,S+1,S+2),m.emplaceBack(S+1,S+2,S+3),f.vertexLength+=4,f.primitiveLength+=2,this.glyphOffsetArray.emplaceBack(x[0]),e!==i.length-1&&k===i[e+1].sectionIndex||t.programConfigurations.populatePaintArrays(p.length,r,r.index,{},c,v&&v[k])}t.placedSymbolArray.emplaceBack(l.x,l.y,_,this.glyphOffsetArray.length-_,g,d,u,l.segment,a?a[0]:0,a?a[1]:0,n[0],n[1],s,0,!1,0,h)}_addCollisionDebugVertex(e,t,i,a,n,o){return t.emplaceBack(0,0),e.emplaceBack(i.x,i.y,a,n,Math.round(o.x),Math.round(o.y))}addCollisionDebugVertices(e,t,i,a,n,r,s){const l=n.segments.prepareSegment(4,n.layoutVertexArray,n.indexArray),d=l.vertexLength,u=n.layoutVertexArray,h=n.collisionVertexArray,c=s.anchorX,m=s.anchorY;this._addCollisionDebugVertex(u,h,r,c,m,new o(e,t)),this._addCollisionDebugVertex(u,h,r,c,m,new o(i,t)),this._addCollisionDebugVertex(u,h,r,c,m,new o(i,a)),this._addCollisionDebugVertex(u,h,r,c,m,new o(e,a)),l.vertexLength+=4;const p=n.indexArray;p.emplaceBack(d,d+1),p.emplaceBack(d+1,d+2),p.emplaceBack(d+2,d+3),p.emplaceBack(d+3,d),l.primitiveLength+=4}addDebugCollisionBoxes(e,t,i,a){for(let n=e;n<t;n++){const e=this.collisionBoxArray.get(n);this.addCollisionDebugVertices(e.x1,e.y1,e.x2,e.y2,a?this.textCollisionBox:this.iconCollisionBox,e.anchorPoint,i)}}generateCollisionDebugBuffers(){this.hasDebugData()&&this.destroyDebugData(),this.textCollisionBox=new Fd(bo,Pl.members,To),this.iconCollisionBox=new Fd(bo,Pl.members,To);for(let e=0;e<this.symbolInstances.length;e++){const t=this.symbolInstances.get(e);this.addDebugCollisionBoxes(t.textBoxStartIndex,t.textBoxEndIndex,t,!0),this.addDebugCollisionBoxes(t.verticalTextBoxStartIndex,t.verticalTextBoxEndIndex,t,!0),this.addDebugCollisionBoxes(t.iconBoxStartIndex,t.iconBoxEndIndex,t,!1),this.addDebugCollisionBoxes(t.verticalIconBoxStartIndex,t.verticalIconBoxEndIndex,t,!1)}}_deserializeCollisionBoxesForSymbol(e,t,i,a,n,o,r,s,l){const d={};for(let a=t;a<i;a++){const t=e.get(a);d.textBox={x1:t.x1,y1:t.y1,x2:t.x2,y2:t.y2,anchorPointX:t.anchorPointX,anchorPointY:t.anchorPointY},d.textFeatureIndex=t.featureIndex;break}for(let t=a;t<n;t++){const i=e.get(t);d.verticalTextBox={x1:i.x1,y1:i.y1,x2:i.x2,y2:i.y2,anchorPointX:i.anchorPointX,anchorPointY:i.anch
vendor: 13,223 bytes, line 5
5orPointY},d.verticalTextFeatureIndex=i.featureIndex;break}for(let t=o;t<r;t++){const i=e.get(t);d.iconBox={x1:i.x1,y1:i.y1,x2:i.x2,y2:i.y2,anchorPointX:i.anchorPointX,anchorPointY:i.anchorPointY},d.iconFeatureIndex=i.featureIndex;break}for(let t=s;t<l;t++){const i=e.get(t);d.verticalIconBox={x1:i.x1,y1:i.y1,x2:i.x2,y2:i.y2,anchorPointX:i.anchorPointX,anchorPointY:i.anchorPointY},d.verticalIconFeatureIndex=i.featureIndex;break}return d}deserializeCollisionBoxes(e){this.collisionArrays=[];for(let t=0;t<this.symbolInstances.length;t++){const i=this.symbolInstances.get(t);this.collisionArrays.push(this._deserializeCollisionBoxesForSymbol(e,i.textBoxStartIndex,i.textBoxEndIndex,i.verticalTextBoxStartIndex,i.verticalTextBoxEndIndex,i.iconBoxStartIndex,i.iconBoxEndIndex,i.verticalIconBoxStartIndex,i.verticalIconBoxEndIndex))}}hasTextData(){return this.text.segments.get().length>0}hasIconData(){return this.icon.segments.get().length>0}hasDebugData(){return this.textCollisionBox&&this.iconCollisionBox}hasTextCollisionBoxData(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0}hasIconCollisionBoxData(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0}addIndicesForPlacedSymbol(e,t){const i=e.placedSymbolArray.get(t),a=i.vertexStartIndex+4*i.numGlyphs;for(let t=i.vertexStartIndex;t<a;t+=4)e.indexArray.emplaceBack(t,t+1,t+2),e.indexArray.emplaceBack(t+1,t+2,t+3)}getSortedSymbolIndexes(e){if(this.sortedAngle===e&&void 0!==this.symbolInstanceIndexes)return this.symbolInstanceIndexes;const t=Math.sin(e),i=Math.cos(e),a=[],n=[],o=[];for(let e=0;e<this.symbolInstances.length;++e){o.push(e);const r=this.symbolInstances.get(e);a.push(0|Math.round(t*r.anchorX+i*r.anchorY)),n.push(r.featureIndex)}return o.sort(((e,t)=>a[e]-a[t]||n[t]-n[e])),o}addToSortKeyRanges(e,t){const i=this.sortKeyRanges[this.sortKeyRanges.length-1];i&&i.sortKey===t?i.symbolInstanceEnd=e+1:this.sortKeyRanges.push({sortKey:t,symbolInstanceStart:e,symbolInstanceEnd:e+1})}sortFeatures(e){if(this.sortFeaturesByY&&this.sortedAngle!==e&&!(this.text.segments.get().length>1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(e),this.sortedAngle=e,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(const e of this.symbolInstanceIndexes){const t=this.symbolInstances.get(e);this.featureSortOrder.push(t.featureIndex),[t.rightJustifiedTextSymbolIndex,t.centerJustifiedTextSymbolIndex,t.leftJustifiedTextSymbolIndex].forEach(((e,t,i)=>{e>=0&&i.indexOf(e)===t&&this.addIndicesForPlacedSymbol(this.text,e)})),t.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,t.verticalPlacedTextSymbolIndex),t.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,t.placedIconSymbolIndex),t.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,t.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}}}let Nd,Vd;ja("SymbolBucket",Od,{omit:["layers","collisionBoxArray","features","compareText"]}),Od.MAX_GLYPHS=65535,Od.addDynamicAttributes=$d;var Ud={get paint(){return Vd=Vd||new bn({"icon-opacity":new yn(K.paint_symbol["icon-opacity"]),"icon-color":new yn(K.paint_symbol["icon-color"]),"icon-halo-color":new yn(K.paint_symbol["icon-halo-color"]),"icon-halo-width":new yn(K.paint_symbol["icon-halo-width"]),"icon-halo-blur":new yn(K.paint_symbol["icon-halo-blur"]),"icon-translate":new gn(K.paint_symbol["icon-translate"]),"icon-translate-anchor":new gn(K.paint_symbol["icon-translate-anchor"]),"text-opacity":new yn(K.paint_symbol["text-opacity"]),"text-color":new yn(K.paint_symbol["text-color"],{runtimeType:fe,getOverride:e=>e.textColor,hasOverride:e=>!!e.textColor}),"text-halo-color":new yn(K.paint_symbol["text-halo-color"]),"text-halo-width":new yn(K.paint_symbol["text-halo-width"]),"text-halo-blur":new yn(K.paint_symbol["text-halo-blur"]),"text-translate":new gn(K.paint_symbol["text-translate"]),"text-translate-anchor":new gn(K.paint_symbol["text-translate-anchor"])})},get layout(){return Nd=Nd||new bn({"symbol-placement":new gn(K.layout_symbol["symbol-placement"]),"symbol-spacing":new gn(K.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new gn(K.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new yn(K.layout_symbol["symbol-sort-key"]),"symbol-z-order":new gn(K.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new gn(K.layout_symbol["icon-allow-overlap"]),"icon-overlap":new gn(K.layout_symbol["icon-overlap"]),"icon-ignore-placement":new gn(K.layout_symbol["icon-ignore-placement"]),"icon-optional":new gn(K.layout_symbol["icon-optional"]),"icon-rotation-alignment":new gn(K.layout_symbol["icon-rotation-alignment"]),"icon-size":new yn(K.layout_symbol["icon-size"]),"icon-text-fit":new gn(K.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new gn(K.layout_symbol["icon-text-fit-padding"]),"icon-image":new yn(K.layout_symbol["icon-image"]),"icon-rotate":new yn(K.layout_symbol["icon-rotate"]),"icon-padding":new yn(K.layout_symbol["icon-padding"]),"icon-keep-upright":new gn(K.layout_symbol["icon-keep-upright"]),"icon-offset":new yn(K.layout_symbol["icon-offset"]),"icon-anchor":new yn(K.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new gn(K.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new gn(K.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new gn(K.layout_symbol["text-rotation-alignment"]),"text-field":new yn(K.layout_symbol["text-field"]),"text-font":new yn(K.layout_symbol["text-font"]),"text-size":new yn(K.layout_symbol["text-size"]),"text-max-width":new yn(K.layout_symbol["text-max-width"]),"text-line-height":new gn(K.layout_symbol["text-line-height"]),"text-letter-spacing":new yn(K.layout_symbol["text-letter-spacing"]),"text-justify":new yn(K.layout_symbol["text-justify"]),"text-radial-offset":new yn(K.layout_symbol["text-radial-offset"]),"text-variable-anchor":new gn(K.layout_symbol["text-variable-anchor"]),"text-variable-anchor-offset":new yn(K.layout_symbol["text-variable-anchor-offset"]),"text-anchor":new yn(K.layout_symbol["text-anchor"]),"text-max-angle":new gn(K.layout_symbol["text-max-angle"]),"text-writing-mode":new gn(K.layout_symbol["text-writing-mode"]),"text-rotate":new yn(K.layout_symbol["text-rotate"]),"text-padding":new gn(K.layout_symbol["text-padding"]),"text-keep-upright":new gn(K.layout_symbol["text-keep-upright"]),"text-transform":new yn(K.layout_symbol["text-transform"]),"text-offset":new yn(K.layout_symbol["text-offset"]),"text-allow-overlap":new gn(K.layout_symbol["text-allow-overlap"]),"text-overlap":new gn(K.layout_symbol["text-overlap"]),"text-ignore-placement":new gn(K.layout_symbol["text-ignore-placement"]),"text-optional":new gn(K.layout_symbol["text-optional"])})}};class Zd{constructor(e){if(void 0===e.property.overrides)throw new Error("overrides must be provided to instantiate FormatSectionOverride class");this.type=e.property.overrides?e.property.overrides.runtimeType:he,this.defaultValue=e}evaluate(e){if(e.formattedSection){const t=this.defaultValue.property.overrides;if(t&&t.hasOverride(e.formattedSection))return t.getOverride(e.formattedSection)}return e.feature&&e.featureState?this.defaultValue.evaluate(e.feature,e.featureState):this.defaultValue.property.specification.default}eachChild(e){this.defaultValue.isConstant()||e(this.defaultValue.value._styleExpression.expression)}outputDefined(){return!1}serialize(){return null}}ja("FormatSectionOverride",Zd,{omit:["defaultValue"]});class qd extends Sn{constructor(e){super(e,Ud)}recalculate(e,t){if(super.recalculate(e,t),"auto"===this.layout.get("icon-rotation-alignment")&&(this.layout._values["icon-rotation-alignment"]="point"!==this.layout.get("symbol-placement")?"map":"viewport"),"auto"===this.layout.get("text-rotation-alignment")&&(this.layout._values["text-rotation-alignment"]="point"!==this.layout.get("symbol-placement")?"map":"viewport"),"auto"===this.layout.get("text-pitch-alignment")&&(this.layout._values["text-pitch-alignment"]="map"===this.layout.get("text-rotation-alignment")?"map":"viewport"),"auto"===this.layout.get("icon-pitch-alignment")&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),"point"===this.layout.get("symbol-placement")){const e=this.layout.get("text-writing-mode");if(e){const t=[];for(const i of e)t.indexOf(i)<0&&t.push(i);this.layout._values["text-writing-mode"]=t}else this.layout._values["text-writing-mode"]=["horizontal"]}this._setPaintOverrides()}getValueAndResolveTokens(e,t,i,a){const n=this.layout.get(e).evaluate(t,{},i,a),o=this._unevaluatedLayout._values[e];return o.isDataDriven()||ji(o.value)||!n?n:function(e,t){return t.replace(/{([^{}]+)}/g,((t,i)=>e&&i in e?String(e[i]):""))}(t.properties,n)}createBucket(e){return new Od(e)}queryRadius(){return 0}queryIntersectsFeature(){throw new Error("Should take a different path in FeatureIndex")}_setPaintOverrides(){for(const e of Ud.paint.overridableProperties){if(!qd.hasPaintOverride(this.layout,e))continue;const t=this.paint.get(e),i=new Zd(t),a=new Di(i,t.property.specification);let n=null;n="constant"===t.value.kind||"source"===t.value.kind?new Ri("source",a):new Bi("composite",a,t.value.zoomStops),this.paint._values[e]=new fn(t.property,n,t.parameters)}}_handleOverridablePaintPropertyUpdate(e,t,i){return!(!this.layout||t.isDataDriven()||i.isDataDriven())&&qd.hasPaintOverride(this.layout,e)}static hasPaintOverride(e,t){const i=e.get("text-field"),a=Ud.paint.properties[t];let n=!1;const o=e=>{for(const t of e)if(a.overrides&&a.overrides.hasOverride(t))return void(n=!0)};if("constant"===i.value.kind&&i.value.value instanceof Qe)o(i.value.value.sections);else if("source"===i.value.kind){const e=t=>{n||(t instanceof lt&&rt(t.value)===ve?o(t.value.sections):t instanceof ci?o(t.sections):t.eachChild(e))},t=i.value;t._styleExpression&&e(t._styleExpression.expression)}return n}}let Gd;var Wd={get paint(){return Gd=Gd||new bn({"background-color":new gn(K.paint_background["background-color"]),"background-pattern":new wn(K.paint_background["background-pattern"]),"background-opacity":new gn(K.paint_background["background-opacity"])})}};class Hd extends Sn{constructor(e){super(e,Wd)}}let Kd;var Xd={get paint(){return Kd=Kd||new bn({"raster-opacity":new gn(K.paint_raster["raster-opacity"]),"raster-hue-rotate":new gn(K.paint_raster["raster-hue-rotate"]),"raster-brightness-min":new gn(K.paint_raster["raster-brightness-min"]),"raster-brightness-max":new gn(K.paint_raster["raster-brightness-max"]),"raster-saturation":new gn(K.paint_raster["raster-saturation"]),"raster-contrast":new gn(K.paint_raster["raster-contrast"]),"raster-resampling":new gn(K.paint_raster["raster-resampling"]),"raster-fade-duration":new gn(K.paint_raster["raster-fade-duration"])})}};class Jd extends Sn{constructor(e){super(e,Xd)}}class Yd extends Sn{constructor(e){super(e,{}),this.onAdd=e=>{this.implementation.onAdd&&this.implementation.onAdd(e,e.painter.context.gl)},this.onRemove=e=>{this.implementation.onRemove&&this.implementation.onRemove(e,e.painter.context.gl)},this.implementation=e}is3D(){return"3d"===this.implementation.renderingMode}hasOffscreenPass(){return void 0!==this.implementation.prerender}recalculate(){}updateTransitions(){}hasTransition(){return!1}serialize(){throw new Error("Custom layers cannot be serialized")}}class Qd{constructor(e){this._callback=e,this._triggered=!1,"undefined"!=typeof MessageChannel&&(this._channel=new MessageChannel,this._channel.port2.onmessage=()=>{this._triggered=!1,this._callback()})}trigger(){this._triggered||(this._triggered=!0,this._channel?this._channel.port1.postMessage(!0):setTimeout((()=>{this._triggered=!1,this._callback()}),0))}remove(){delete this._channel,this._callback=()=>{}}}const eu=6371008.8;class tu{constructor(e,t){if(isNaN(e)||isNaN(t))throw new Error(`Invalid LngLat object: (${e}, ${t})`);if(this.lng=+e,this.lat=+t,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")}wrap(){return new tu(_(this.lng,-180,180),this.lat)}toArray(){return[this.lng,this.lat]}toString(){return`LngLat(${this.lng}, ${this.lat})`}distanceTo(e){const t=Math.PI/180,i=this.lat*t,a=e.lat*t,n=Math.sin(i)*Math.sin(a)+Math.cos(i)*Math.cos(a)*Math.cos((e.lng-this.lng)*t);return eu*Math.acos(Math.min(n,1))}static convert(e){if(e instanceof tu)return e;if(Array.isArray(e)&&(2===e.length||3===e.length))return new tu(Number(e[0]),Number(e[1]));if(!Array.isArray(e)&&"object"==typeof e&&null!==e)return new tu(Number("lng"in e?e.lng:e.lon),Number(e.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: <lng>, lat: <lat>}, an object {lon: <lng>, lat: <lat>}, or an array of [<lng>, <lat>]")}}const iu=2*Math.PI*eu;function au(e){return iu*Math.cos(e*Math.PI/180)}function nu(e){return(180+e)/360}function ou(e){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+e*Math.PI/360)))/360}function ru(e,t){return e/au(t)}function su(e){return 360*e-180}function lu(e){return 360/Math.PI*Math.atan(Math.exp((180-360*e)*Math.PI/180)
vendor: 24,876 bytes, line 5
5)-90}class du{constructor(e,t,i=0){this.x=+e,this.y=+t,this.z=+i}static fromLngLat(e,t=0){const i=tu.convert(e);return new du(nu(i.lng),ou(i.lat),ru(t,i.lat))}toLngLat(){return new tu(su(this.x),lu(this.y))}toAltitude(){return this.z*au(lu(this.y))}meterInMercatorCoordinateUnits(){return 1/iu*(e=lu(this.y),1/Math.cos(e*Math.PI/180));var e}}function uu(e,t,i){var a=2*Math.PI*6378137/256/Math.pow(2,i);return[e*a-2*Math.PI*6378137/2,t*a-2*Math.PI*6378137/2]}class hu{constructor(e,t,i){if(e<0||e>25||i<0||i>=Math.pow(2,e)||t<0||t>=Math.pow(2,e))throw new Error(`x=${t}, y=${i}, z=${e} outside of bounds. 0<=x<${Math.pow(2,e)}, 0<=y<${Math.pow(2,e)} 0<=z<=25 `);this.z=e,this.x=t,this.y=i,this.key=pu(0,e,e,t,i)}equals(e){return this.z===e.z&&this.x===e.x&&this.y===e.y}url(e,t,i){const a=(o=this.y,r=this.z,s=uu(256*(n=this.x),256*(o=Math.pow(2,r)-o-1),r),l=uu(256*(n+1),256*(o+1),r),s[0]+","+s[1]+","+l[0]+","+l[1]);var n,o,r,s,l;const d=function(e,t,i){let a,n="";for(let o=e;o>0;o--)a=1<<o-1,n+=(t&a?1:0)+(i&a?2:0);return n}(this.z,this.x,this.y);return e[(this.x+this.y)%e.length].replace(/{prefix}/g,(this.x%16).toString(16)+(this.y%16).toString(16)).replace(/{z}/g,String(this.z)).replace(/{x}/g,String(this.x)).replace(/{y}/g,String("tms"===i?Math.pow(2,this.z)-this.y-1:this.y)).replace(/{ratio}/g,t>1?"@2x":"").replace(/{quadkey}/g,d).replace(/{bbox-epsg-3857}/g,a)}isChildOf(e){const t=this.z-e.z;return t>0&&e.x===this.x>>t&&e.y===this.y>>t}getTilePoint(e){const t=Math.pow(2,this.z);return new o((e.x*t-this.x)*ar,(e.y*t-this.y)*ar)}toString(){return`${this.z}/${this.x}/${this.y}`}}class cu{constructor(e,t){this.wrap=e,this.canonical=t,this.key=pu(e,t.z,t.z,t.x,t.y)}}class mu{constructor(e,t,i,a,n){if(e<i)throw new Error(`overscaledZ should be >= z; overscaledZ = ${e}; z = ${i}`);this.overscaledZ=e,this.wrap=t,this.canonical=new hu(i,+a,+n),this.key=pu(t,e,i,a,n)}clone(){return new mu(this.overscaledZ,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)}equals(e){return this.overscaledZ===e.overscaledZ&&this.wrap===e.wrap&&this.canonical.equals(e.canonical)}scaledTo(e){if(e>this.overscaledZ)throw new Error(`targetZ > this.overscaledZ; targetZ = ${e}; overscaledZ = ${this.overscaledZ}`);const t=this.canonical.z-e;return e>this.canonical.z?new mu(e,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new mu(e,this.wrap,e,this.canonical.x>>t,this.canonical.y>>t)}calculateScaledKey(e,t){if(e>this.overscaledZ)throw new Error(`targetZ > this.overscaledZ; targetZ = ${e}; overscaledZ = ${this.overscaledZ}`);const i=this.canonical.z-e;return e>this.canonical.z?pu(this.wrap*+t,e,this.canonical.z,this.canonical.x,this.canonical.y):pu(this.wrap*+t,e,e,this.canonical.x>>i,this.canonical.y>>i)}isChildOf(e){if(e.wrap!==this.wrap)return!1;const t=this.canonical.z-e.canonical.z;return 0===e.overscaledZ||e.overscaledZ<this.overscaledZ&&e.canonical.x===this.canonical.x>>t&&e.canonical.y===this.canonical.y>>t}children(e){if(this.overscaledZ>=e)return[new mu(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];const t=this.canonical.z+1,i=2*this.canonical.x,a=2*this.canonical.y;return[new mu(t,this.wrap,t,i,a),new mu(t,this.wrap,t,i+1,a),new mu(t,this.wrap,t,i,a+1),new mu(t,this.wrap,t,i+1,a+1)]}isLessThan(e){return this.wrap<e.wrap||!(this.wrap>e.wrap)&&(this.overscaledZ<e.overscaledZ||!(this.overscaledZ>e.overscaledZ)&&(this.canonical.x<e.canonical.x||!(this.canonical.x>e.canonical.x)&&this.canonical.y<e.canonical.y))}wrapped(){return new mu(this.overscaledZ,0,this.canonical.z,this.canonical.x,this.canonical.y)}unwrapTo(e){return new mu(this.overscaledZ,e,this.canonical.z,this.canonical.x,this.canonical.y)}overscaleFactor(){return Math.pow(2,this.overscaledZ-this.canonical.z)}toUnwrapped(){return new cu(this.wrap,this.canonical)}toString(){return`${this.overscaledZ}/${this.canonical.x}/${this.canonical.y}`}getTilePoint(e){return this.canonical.getTilePoint(new du(e.x-this.wrap,e.y))}}function pu(e,t,i,a,n){(e*=2)<0&&(e=-1*e-1);const o=1<<i;return(o*o*e+o*n+a).toString(36)+i.toString(36)+t.toString(36)}ja("CanonicalTileID",hu),ja("OverscaledTileID",mu,{omit:["posMatrix"]});class fu{constructor(e,t,i,a=1,n=1,o=1,r=0){if(this.uid=e,t.height!==t.width)throw new RangeError("DEM tiles must be square");if(i&&!["mapbox","terrarium","custom"].includes(i))return void k(`"${i}" is not a valid encoding type. Valid types include "mapbox", "terrarium" and "custom".`);this.stride=t.height;const s=this.dim=t.height-2;switch(this.data=new Uint32Array(t.data.buffer),i){case"terrarium":this.redFactor=256,this.greenFactor=1,this.blueFactor=1/256,this.baseShift=32768;break;case"custom":this.redFactor=a,this.greenFactor=n,this.blueFactor=o,this.baseShift=r;break;default:this.redFactor=6553.6,this.greenFactor=25.6,this.blueFactor=.1,this.baseShift=1e4}for(let e=0;e<s;e++)this.data[this._idx(-1,e)]=this.data[this._idx(0,e)],this.data[this._idx(s,e)]=this.data[this._idx(s-1,e)],this.data[this._idx(e,-1)]=this.data[this._idx(e,0)],this.data[this._idx(e,s)]=this.data[this._idx(e,s-1)];this.data[this._idx(-1,-1)]=this.data[this._idx(0,0)],this.data[this._idx(s,-1)]=this.data[this._idx(s-1,0)],this.data[this._idx(-1,s)]=this.data[this._idx(0,s-1)],this.data[this._idx(s,s)]=this.data[this._idx(s-1,s-1)],this.min=Number.MAX_SAFE_INTEGER,this.max=Number.MIN_SAFE_INTEGER;for(let e=0;e<s;e++)for(let t=0;t<s;t++){const i=this.get(e,t);i>this.max&&(this.max=i),i<this.min&&(this.min=i)}}get(e,t){const i=new Uint8Array(this.data.buffer),a=4*this._idx(e,t);return this.unpack(i[a],i[a+1],i[a+2])}getUnpackVector(){return[this.redFactor,this.greenFactor,this.blueFactor,this.baseShift]}_idx(e,t){if(e<-1||e>=this.dim+1||t<-1||t>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(t+1)*this.stride+(e+1)}unpack(e,t,i){return e*this.redFactor+t*this.greenFactor+i*this.blueFactor-this.baseShift}getPixels(){return new Ur({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))}backfillBorder(e,t,i){if(this.dim!==e.dim)throw new Error("dem dimension mismatch");let a=t*this.dim,n=t*this.dim+this.dim,o=i*this.dim,r=i*this.dim+this.dim;switch(t){case-1:a=n-1;break;case 1:n=a+1}switch(i){case-1:o=r-1;break;case 1:r=o+1}const s=-t*this.dim,l=-i*this.dim;for(let t=o;t<r;t++)for(let i=a;i<n;i++)this.data[this._idx(i,t)]=e.data[this._idx(i+s,t+l)]}}ja("DEMData",fu);class _u{constructor(e){this._stringToNumber={},this._numberToString=[];for(let t=0;t<e.length;t++){const i=e[t];this._stringToNumber[i]=t,this._numberToString[t]=i}}encode(e){return this._stringToNumber[e]}decode(e){if(e>=this._numberToString.length)throw new Error(`Out of bounds. Index requested n=${e} can't be >= this._numberToString.length ${this._numberToString.length}`);return this._numberToString[e]}}class gu{constructor(e,t,i,a,n){this.type="Feature",this._vectorTileFeature=e,e._z=t,e._x=i,e._y=a,this.properties=e.properties,this.id=n}get geometry(){return void 0===this._geometry&&(this._geometry=this._vectorTileFeature.toGeoJSON(this._vectorTileFeature._x,this._vectorTileFeature._y,this._vectorTileFeature._z).geometry),this._geometry}set geometry(e){this._geometry=e}toJSON(){const e={geometry:this.geometry};for(const t in this)"_geometry"!==t&&"_vectorTileFeature"!==t&&(e[t]=this[t]);return e}}class yu{constructor(e,t){this.tileID=e,this.x=e.canonical.x,this.y=e.canonical.y,this.z=e.canonical.z,this.grid=new Ea(ar,16,0),this.grid3D=new Ea(ar,16,0),this.featureIndexArray=new ho,this.promoteId=t}insert(e,t,i,a,n,o){const r=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(i,a,n);const s=o?this.grid3D:this.grid;for(let e=0;e<t.length;e++){const i=t[e],a=[1/0,1/0,-1/0,-1/0];for(let e=0;e<i.length;e++){const t=i[e];a[0]=Math.min(a[0],t.x),a[1]=Math.min(a[1],t.y),a[2]=Math.max(a[2],t.x),a[3]=Math.max(a[3],t.y)}a[0]<ar&&a[1]<ar&&a[2]>=0&&a[3]>=0&&s.insert(r,a[0],a[1],a[2],a[3])}}loadVTLayers(){return this.vtLayers||(this.vtLayers=new Ns.VectorTile(new td(this.rawTileData)).layers,this.sourceLayerCoder=new _u(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers}query(e,t,i,a){this.loadVTLayers();const n=e.params||{},r=ar/e.tileSize/e.scale,s=Zi(n.filter),l=e.queryGeometry,d=e.queryPadding*r,u=wu(l),h=this.grid.query(u.minX-d,u.minY-d,u.maxX+d,u.maxY+d),c=wu(e.cameraQueryGeometry),m=this.grid3D.query(c.minX-d,c.minY-d,c.maxX+d,c.maxY+d,((t,i,a,n)=>function(e,t,i,a,n){for(const o of e)if(t<=o.x&&i<=o.y&&a>=o.x&&n>=o.y)return!0;const r=[new o(t,i),new o(t,n),new o(a,n),new o(a,i)];if(e.length>2)for(const t of r)if(vr(e,t))return!0;for(let t=0;t<e.length-1;t++)if(wr(e[t],e[t+1],r))return!0;return!1}(e.cameraQueryGeometry,t-d,i-d,a+d,n+d)));for(const e of m)h.push(e);h.sort(xu);const p={};let f;for(let o=0;o<h.length;o++){const d=h[o];if(d===f)continue;f=d;const u=this.featureIndexArray.get(d);let c=null;this.loadMatchingFeature(p,u.bucketIndex,u.sourceLayerIndex,u.featureIndex,s,n.layers,n.availableImages,t,i,a,((t,i,a)=>(c||(c=rr(t)),i.queryIntersectsFeature(l,t,a,c,this.z,e.transform,r,e.pixelPosMatrix))))}return p}loadMatchingFeature(e,t,i,a,n,o,r,s,l,d,u){const h=this.bucketLayerIDs[t];if(o&&!function(e,t){for(let i=0;i<e.length;i++)if(t.indexOf(e[i])>=0)return!0;return!1}(o,h))return;const c=this.sourceLayerCoder.decode(i),m=this.vtLayers[c].feature(a);if(n.needGeometry){const e=sr(m,!0);if(!n.filter(new ln(this.tileID.overscaledZ),e,this.tileID.canonical))return}else if(!n.filter(new ln(this.tileID.overscaledZ),m))return;const p=this.getId(m,c);for(let t=0;t<h.length;t++){const i=h[t];if(o&&o.indexOf(i)<0)continue;const n=s[i];if(!n)continue;let c={};p&&d&&(c=d.getState(n.sourceLayer||"_geojsonTileLayer",p));const f=g({},l[i]);f.paint=vu(f.paint,n.paint,m,c,r),f.layout=vu(f.layout,n.layout,m,c,r);const _=!u||u(m,n,c);if(!_)continue;const y=new gu(m,this.z,this.x,this.y,p);y.layer=f;let v=e[i];void 0===v&&(v=e[i]=[]),v.push({featureIndex:a,feature:y,intersectionZ:_})}}lookupSymbolFeatures(e,t,i,a,n,o,r,s){const l={};this.loadVTLayers();const d=Zi(n);for(const n of e)this.loadMatchingFeature(l,i,a,n,d,o,r,s,t);return l}hasLayer(e){for(const t of this.bucketLayerIDs)for(const i of t)if(e===i)return!0;return!1}getId(e,t){let i=e.id;return this.promoteId&&(i=e.properties["string"==typeof this.promoteId?this.promoteId:this.promoteId[t]],"boolean"==typeof i&&(i=Number(i))),i}}function vu(e,t,i,a,n){return v(e,((e,o)=>{const r=t instanceof _n?t.get(o):null;return r&&r.evaluate?r.evaluate(i,a,n):r}))}function wu(e){let t=1/0,i=1/0,a=-1/0,n=-1/0;for(const o of e)t=Math.min(t,o.x),i=Math.min(i,o.y),a=Math.max(a,o.x),n=Math.max(n,o.y);return{minX:t,minY:i,maxX:a,maxY:n}}function xu(e,t){return t-e}function bu(e,t,i,a,n){const r=[];for(let s=0;s<e.length;s++){const l=e[s];let d;for(let e=0;e<l.length-1;e++){let s=l[e],u=l[e+1];s.x<t&&u.x<t||(s.x<t?s=new o(t,s.y+(t-s.x)/(u.x-s.x)*(u.y-s.y))._round():u.x<t&&(u=new o(t,s.y+(t-s.x)/(u.x-s.x)*(u.y-s.y))._round()),s.y<i&&u.y<i||(s.y<i?s=new o(s.x+(i-s.y)/(u.y-s.y)*(u.x-s.x),i)._round():u.y<i&&(u=new o(s.x+(i-s.y)/(u.y-s.y)*(u.x-s.x),i)._round()),s.x>=a&&u.x>=a||(s.x>=a?s=new o(a,s.y+(a-s.x)/(u.x-s.x)*(u.y-s.y))._round():u.x>=a&&(u=new o(a,s.y+(a-s.x)/(u.x-s.x)*(u.y-s.y))._round()),s.y>=n&&u.y>=n||(s.y>=n?s=new o(s.x+(n-s.y)/(u.y-s.y)*(u.x-s.x),n)._round():u.y>=n&&(u=new o(s.x+(n-s.y)/(u.y-s.y)*(u.x-s.x),n)._round()),d&&s.equals(d[d.length-1])||(d=[s],r.push(d)),d.push(u)))))}}return r}ja("FeatureIndex",yu,{omit:["rawTileData","sourceLayerCoder"]});class ku extends o{constructor(e,t,i,a){super(e,t),this.angle=i,void 0!==a&&(this.segment=a)}clone(){return new ku(this.x,this.y,this.angle,this.segment)}}function Su(e,t,i,a,n){if(void 0===t.segment||0===i)return!0;let o=t,r=t.segment+1,s=0;for(;s>-i/2;){if(r--,r<0)return!1;s-=e[r].dist(o),o=e[r]}s+=e[r].dist(e[r+1]),r++;const l=[];let d=0;for(;s<i/2;){const t=e[r],i=e[r+1];if(!i)return!1;let o=e[r-1].angleTo(t)-t.angleTo(i);for(o=Math.abs((o+3*Math.PI)%(2*Math.PI)-Math.PI),l.push({distance:s,angleDelta:o}),d+=o;s-l[0].distance>a;)d-=l.shift().angleDelta;if(d>n)return!1;r++,s+=t.dist(i)}return!0}function Tu(e){let t=0;for(let i=0;i<e.length-1;i++)t+=e[i].dist(e[i+1]);return t}function Cu(e,t,i){return e?.6*t*i:0}function zu(e,t){return Math.max(e?e.right-e.left:0,t?t.right-t.left:0)}function Pu(e,t,i,a,n,o){const r=Cu(i,n,o),s=zu(i,a)*o;let l=0;const d=Tu(e)/2;for(let i=0;i<e.length-1;i++){const a=e[i],n=e[i+1],o=a.dist(n);if(l+o>d){const u=(d-l)/o,h=qt.number(a.x,n.x,u),c=qt.number(a.y,n.y,u),m=new ku(h,c,n.angleTo(a),i);return m._round(),!r||Su(e,m,s,r,t)?m:void 0}l+=o}}function Mu(e,t,i,a,n,o,r,s,l){const d=Cu(a,o,r),u=zu(a,n),h=u*r,c=0===e[0].x||e[0].x===l||0===e[0].y||e[0].y===l;return t-h<t/4&&(t=h+t/4),Lu(e,c?t/2*s%t:(u/2+2*o)*r*s%t,t,d,i,h,c,!1,l)}function Lu(e,t,i,a,n,o,r,s,l){const d=o/2,u=Tu(e);let h=0,c=t-i,m=[];for(let t=0;t<e.length-1;t++){const r=e[t],s=e[t+1],p=r.dist(s),f=s.angleTo(r);for(;c+i<h+p;){c+=i;const _=(c-h)/p,g=qt.number(r.x,s.x,_),y=qt.number(r.y,s.y,_);if(g>=0&&g<l&&y>=0&&y<l&&c-d>=0&&c+d<=u){const i=new ku(g,y,f,t);i._round(),a&&!Su(e,i,o,a,n)||m.push(i)}}h+=p}return s||m.length||r||(m=Lu(e,h/2,i,a,n,o,r,!0,l)),m}ja("Anchor",ku);const Au=ld;function Iu(e,t,i,a){const n=[],r=e.image,s=r.pixelRatio,l=r.paddedRect.w-2*Au,d=r.paddedRect.h-2*Au,u=e.right-e.left,h=e.bottom-e.top,c=r.stretchX||[[0,l]],m=r.stretchY||[[0,d]],p=(e,t)=>e+t[1]-t[0],f=c.reduce(p,0),_=m.reduce(p,0),g=l-f,y=d-_;let v=0,w=f,x=0,b=_,k=0,S=g,T=0,C=y;if(r.content&&a){const e=r.content;v=Eu(c,0,e[0]),x=Eu(m,0,e[1]),w=Eu(c,e[0],e[2]),b=Eu(m,e[1],e[3]),k=e[0]-v,T=e[1]-x,S=e[2]-e[0]-w,C=e[3]-e[1]-b}const z=(a,n,l,d)=>{const c=ju(a.stretch-v,w,u,e.left),m=$u(a.fixed-k,S,a.stretch,f),p=ju(n.stretch-x,b,h,e.top),g=$u(n.fixed-T,C,n.stretch,_),y=ju(l.stretch-v,w,u,e.left),z=$u(l.fixed-k,S,l.stretch,f),P=ju(d.stretch-x,b,h,e.top),M=$u(d.fixed-T,C,d.stretch,_),L=new o(c,p),A=new o(y,p),I=new o(y,P),E=new o(c,P),D=new o(m/s,g/s),j=new o(z/s,M/s),$=t*Math.PI/180;if($){const e=Math.sin($),t=Math.cos($),i=[t,-e,e,t];L._matMult(i),A._matMult(i),E._matMult(i),I._matMult(i)}const R=a.stretch+a.fixed,B=n.stretch+n.fixed;return{tl:L,tr:A,bl:E,br:I,tex:{x:r.paddedRect.x+Au+R,y:r.paddedRect.y+Au+B,w:l.stretch+l.fixed-R,h:d.stretch+d.fixed-B},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:D,pixelOffsetBR:j,minFontScaleX:S/s/u,minFontScaleY:C/s/h,isSDF:i}};if(a&&(r.stretchX||r.stretchY)){const e=Du(c,g,f),t=Du(m,y,_);for(let i=0;i<e.length-1;i++){const a=e[i],o=e[i+1];for(let e=0;e<t.length-1;e++)n.push(z(a,t[e],o,t[e+1]))}}else n.push(z({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:l+1},{fixed:0,stretch:d+1}));return n}function Eu(e,t,i){let a=0;for(const n of e)a+=Math.max(t,Math.min(i,n[1]))-Math.max(t,Math.min(i,n[0]));return a}function Du(e,t,i){const a=[{fixed:-Au,stretch:0}];for(const[t,i]of e){const e=a[a.length-1];a.push({fixed:t-e.stretch,stretch:e.stretch}),a.push({fixed:t-e.stretch,stretch:e.stretch+(i-t)})}return a.push({fixed:t+Au,stretch:i}),a}function ju(e,t,i,a){return e/t*i+a}function $u(e,t,i,a){return e-t*i/a}class Ru{constructor(e,t,i,a,n,r,s,l,d,u){if(this.boxStartIndex=e.length,d){let e=r.top,t=r.bottom;const i=r.collisionPadding;i&&(e-=i[1],t+=i[3]);let a=t-e;a>0&&(a=Math.max(10,a),this.circleDiameter=a)}else{let d=r.top*s-l[0],h=r.bottom*s+l[2],c=r.left*s-l[3],m=r.right*s+l[1];const p=r.collisionPadding;if(p&&(c-=p[0]*s,d-=p[1]*s,m+=p[2]*s,h+=p[3]*s),u){const e=new o(c,d),t=new o(m,d),i=new o(c,h),a=new o(m,h),n=u*Math.PI/180;e._rotate(n),t._rotate(n),i._rotate(n),a._rotate(n),c=Math.min(e.x,t.x,i.x,a.x),m=Math.max(e.x,t.x,i.x,a.x),d=Math.min(e.y,t.y,i.y,a.y),h=Math.max(e.y,t.y,i.y,a.y)}e.emplaceBack(t.x,t.y,c,d,m,h,i,a,n)}this.boxEndIndex=e.length}}class Bu{constructor(e=[],t=Fu){if(this.data=e,this.length=this.data.length,this.compare=t,this.length>0)for(let e=(this.length>>1)-1;e>=0;e--)this._down(e)}push(e){this.data.push(e),this.length++,this._up(this.length-1)}pop(){if(0===this.length)return;const e=this.data[0],t=this.data.pop();return this.length--,this.length>0&&(this.data[0]=t,this._down(0)),e}peek(){return this.data[0]}_up(e){const{data:t,compare:i}=this,a=t[e];for(;e>0;){const n=e-1>>1,o=t[n];if(i(a,o)>=0)break;t[e]=o,e=n}t[e]=a}_down(e){const{data:t,compare:i}=this,a=this.length>>1,n=t[e];for(;e<a;){let a=1+(e<<1),o=t[a];const r=a+1;if(r<this.length&&i(t[r],o)<0&&(a=r,o=t[r]),i(o,n)>=0)break;t[e]=o,e=a}t[e]=n}}function Fu(e,t){return e<t?-1:e>t?1:0}function Ou(e,t=1,i=!1){let a=1/0,n=1/0,r=-1/0,s=-1/0;const l=e[0];for(let e=0;e<l.length;e++){const t=l[e];(!e||t.x<a)&&(a=t.x),(!e||t.y<n)&&(n=t.y),(!e||t.x>r)&&(r=t.x),(!e||t.y>s)&&(s=t.y)}const d=Math.min(r-a,s-n);let u=d/2;const h=new Bu([],Nu);if(0===d)return new o(a,n);for(let t=a;t<r;t+=d)for(let i=n;i<s;i+=d)h.push(new Vu(t+u,i+u,u,e));let c=function(e){let t=0,i=0,a=0;const n=e[0];for(let e=0,o=n.length,r=o-1;e<o;r=e++){const o=n[e],s=n[r],l=o.x*s.y-s.x*o.y;i+=(o.x+s.x)*l,a+=(o.y+s.y)*l,t+=3*l}return new Vu(i/t,a/t,0,e)}(e),m=h.length;for(;h.length;){const a=h.pop();(a.d>c.d||!c.d)&&(c=a,i&&console.log("found best %d after %d probes",Math.round(1e4*a.d)/1e4,m)),a.max-c.d<=t||(u=a.h/2,h.push(new Vu(a.p.x-u,a.p.y-u,u,e)),h.push(new Vu(a.p.x+u,a.p.y-u,u,e)),h.push(new Vu(a.p.x-u,a.p.y+u,u,e)),h.push(new Vu(a.p.x+u,a.p.y+u,u,e)),m+=4)}return i&&(console.log(`num probes: ${m}`),console.log(`best distance: ${c.d}`)),c.p}function Nu(e,t){return t.max-e.max}function Vu(e,t,i,a){this.p=new o(e,t),this.h=i,this.d=function(e,t){let i=!1,a=1/0;for(let n=0;n<t.length;n++){const o=t[n];for(let t=0,n=o.length,r=n-1;t<n;r=t++){const n=o[t],s=o[r];n.y>e.y!=s.y>e.y&&e.x<(s.x-n.x)*(e.y-n.y)/(s.y-n.y)+n.x&&(i=!i),a=Math.min(a,gr(e,n,s))}}return(i?1:-1)*Math.sqrt(a)}(this.p,a),this.max=this.d+this.h*Math.SQRT2}var Uu;e.aq=void 0,(Uu=e.aq||(e.aq={}))[Uu.center=1]="center",Uu[Uu.left=2]="left",Uu[Uu.right=3]="right",Uu[Uu.top=4]="top",Uu[Uu.bottom=5]="bottom",Uu[Uu["top-left"]=6]="top-left",Uu[Uu["top-right"]=7]="top-right",Uu[Uu["bottom-left"]=8]="bottom-left",Uu[Uu["bottom-right"]=9]="bottom-right";const Zu=7,qu=Number.POSITIVE_INFINITY;function Gu(e,t){return t[1]!==qu?function(e,t,i){let a=0,n=0;switch(t=Math.abs(t),i=Math.abs(i),e){case"top-right":case"top-left":case"top":n=i-Zu;break;case"bottom-right":case"bottom-left":case"bottom":n=-i+Zu}switch(e){case"top-right":case"bottom-right":case"right":a=-t;break;case"top-left":case"bottom-left":case"left":a=t}return[a,n]}(e,t[0],t[1]):function(e,t){let i=0,a=0;t<0&&(t=0);const n=t/Math.SQRT2;switch(e){case"top-right":case"top-left":a=n-Zu;break;case"bottom-right":case"bottom-left":a=-n+Zu;break;case"bottom":a=-t+Zu;break;case"top":a=t-Zu}switch(e){case"top-right":case"bottom-right":i=-n;break;case"top-left":case"bottom-left":i=n;break;case"left":i=t;break;case"right":i=-t}return[i,a]}(e,t[0])}function Wu(e,t,i){var a;const n=e.layout,o=null===(a=n.get("text-variable-anchor-offset"))||void 0===a?void 0:a.evaluate(t,{},i);if(o){const e=o.values,t=[];for(let i=0;i<e.length;i+=2){const a=t[i]=e[i],n=e[i+1].map((e=>e*Il));a.startsWith("top")?n[1]-=Zu:a.startsWith("bottom")&&(n[1]+=Zu),t[i+1]=n}return new it(t)}const r=n.get("text-variable-anchor");if(r){let a;a=void 0!==e._unevaluatedLayout.getValue("text-radial-offset")?[n.get("text-radial-offset").evaluate(t,{},i)*Il,qu]:n.get("text-offset").evaluate(t,{},i).map((e=>e*Il));const o=[];for(const e of r)o.push(e,Gu(e,a));return new it(o)}return null}function Hu(e){switch(e){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}function Ku(t,i,a,n,o,r,s,l,d,u,h){let c=r.textMaxSize.evaluate(i,{});void 0===c&&(c=s);const m=t.layers[0].layout,p=m.get("icon-offset").evaluate(i,{},h),f=Ju(a.horizontal),_=s/24,g=t.tilePixelRatio*_,y=t.tilePixelRatio*c/24,v=t.tilePixelRatio*l,w=t.tilePixelRatio*m.get("symbol-spacing"),x=m.get("text-padding")*t.tilePixelRatio,b=function(e,t,i,a=1){const n=e.get("icon-padding").evaluate(t,{},i),o=n&&n.values;return[o[0]*a,o[1]*a,o[2]*a,o[3]*a]}(m,i,h,t.tilePixelRatio),S=m.get("text-max-angle")/180*Math.PI,T="viewport"!==m.get("text-rotation-alignment")&&"point"!==m.get("symbol-placement"),C="map"===m.get("icon-rotation-alignment")&&"point"!==m.get("symbol-placement"),z=m.get("symbol-placement"),P=w/2,M=m.get("icon-text-fit");let L;n&&"none"!==M&&(t.allowVerticalPlacement&&a.vertical&&(L=zd(n,a.vertical,M,m.get("icon-text-fit-padding"),p,_)),f&&(n=zd(n,f,M,m.get("icon-text-fit-padding"),p,_)));const A=(l,c)=>{c.x<0||c.x>=ar||c.y<0||c.y>=ar||function(t,i,a,n,o,r,s,l,d,u,h,c,m,p,f,_,g,y,v,w,x,b,S,T,C){const z=t.addToLineVertexArray(i,a);let P,M,L,A,I=0,E=0,D=0,j=0,$=-1,R=-1;const B={};let F=Ro("");if(t.allowVerticalPlacement&&n.vertical){const e=l.layout.get("text-rotate").evaluate(x,{},T)+90;L=new Ru(d,i,u,h,c,n.vertical,m,p,f,e),s&&(A=new Ru(d,i,u,h,c,s,g,y,f,e))}if(o){const a=l.layout.get("icon-rotate").evaluate(x,{}),n="none"!==l.layout.get("icon-text-fit"),r=Iu(o,a,S,n),m=s?Iu(s,a,S,n):void 0;M=new Ru(d,i,u,h,c,o,g,y,!1,a),I=4*r.length;const p=t.iconSizeData;let f=null;"source"===p.kind?(f=[Md*l.layout.get("icon-size").evaluate(x,{})],f[0]>Ld&&k(`${t.layerIds[0]}: Value for "icon-size" is >= ${Pd}. Reduce your "icon-size".`)):"composite"===p.kind&&(f=[Md*b.compositeIconSizes[0].evaluate(x,{},T),Md*b.compositeIconSizes[1].evaluate(x,{},T)],(f[0]>Ld||f[1]>Ld)&&k(`${t.layerIds[0]}: Value for "icon-size" is >= ${Pd}. Reduce your "icon-size".`)),t.addSymbols(t.icon,r,f,w,v,x,e.ai.none,i,z.lineStartIndex,z.lineLength,-1,T),$=t.icon.placedSymbolArray.length-1,m&&(E=4*m.length,t.addSymbols(t.icon,m,f,w,v,x,e.ai.vertical,i,z.lineStartIndex,z.lineLength,-1,T),R=t.icon.placedSymbolArray.length-1)}const O=Object.keys(n.horizontal);for(const a of O){const o=n.horizontal[a];if(!P){F=Ro(o.text);const e=l.layout.get("text-rotate").evaluate(x,{},T);P=new Ru(d,i,u,h,c,o,m,p,f,e)}const s=1===o.positionedLines.length;if(D+=Xu(t,i,o,r,l,f,x,_,z,n.vertical?e.ai.horizontal:e.ai.horizontalOnly,s?O:[a],B,$,b,T),s)break}n.vertical&&(j+=Xu(t,i,n.vertical,r,l,f,x,_,z,e.ai.vertical,["vertical"],B,R,b,T));const N=P?P.boxStartIndex:t.collisionBoxArray.length,V=P?P.boxEndIndex:t.collisionBoxArray.length,U=L?L.boxStartIndex:t.collisionBoxArray.length,Z=L?L.boxEndIndex:t.collisionBoxArray.length,q=M?M.boxStartIndex:t.collisionBoxArray.length,G=M?M.boxEndIndex:t.collisionBoxArray.length,W=A?A.boxStartIndex:t.collisionBoxArray.length,H=A?A.boxEndIndex:t.collisionBoxArray.length;let K=-1;const X=(e,t)=>e&&e.circleDiameter?Math.max(e.circleDiameter,t):t;K=X(P,K),K=X(L,K),K=X(M,K),K=X(A,K);const J=K>-1?1:0;J&&(K*=C/Il),t.glyphOffsetArray.length>=Od.MAX_GLYPHS&&k("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),void 0!==x.sortKey&&t.addToSortKeyRanges(t.symbolInstances.length,x.sortKey);const Y=Wu(l,x,T),[Q,ee]=function(t,i){const a=t.length,n=null==i?void 0:i.values;if((null==n?void 0:n.length)>0)for(let i=0;i<n.length;i+=2){const a=n[i+1];t.emplaceBack(e.aq[n[i]],a[0],a[1])}return[a,t.length]}(t.textAnchorOffsets,Y);t.symbolInstances.emplaceBack(i.x,i.y,B.right>=0?B.right:-1,B.center>=0?B.center:-1,B.left>=0?B.left:-1,B.vertical||-1,$,R,F,N,V,U,Z,q,G,W,H,u,D,j,I,E,J,0,m,K,Q,ee)}(t,c,l,a,n,o,L,t.layers[0],t.collisionBoxArray,i.index,i.sourceLayerIndex,t.index,g,[x,x,x,x],T,d,v,b,C,p,i,r,u,h,s)};if("line"===z)for(const e of bu(i.geometry,0,0,ar,ar)){const i=Mu(e,w,S,a.vertical||f,n,24,y,t.overscaling,ar);for(const a of i)f&&Yu(t,f.text,P,a)||A(e,a)}else if("line-center"===z){for(const e of i.geometry)if(e.length>1){const t=Pu(e,S,a.vertical||f,n,24,y);t&&A(e,t)}}else if("Polygon"===i.type)for(const e of Ms(i.geometry,0)){const t=Ou(e,16);A(e[0],new ku(t.x,t.y,0))}else if("LineString"===i.type)for(const e of i.geometry)A(e,new ku(e[0].x,e[0].y,0));else if("Point"===i.type)for(const e of i.geometry)for(const t of e)A([t],new ku(t.x,t.y,0))}function Xu(e,t,i,a,n,r,s,l,d,u,h,c,m,p,f){const _=function(e,t,i,a,n,r,s,l){const d=a.layout.get("text-rotate").evaluate(r,{})*Math.PI/180,u=[];for(const e of t.positionedLines)for(const a of e.positionedGlyphs){if(!a.rect)continue;const r=a.rect||{};let h=rd+1,c=!0,m=1,p=0;const f=(n||l)&&a.vertical,_=a.metrics.advance*a.scale/2;if(l&&t.verticalizable&&(p=e.lineOffset/2-(a.imageName?-(Il-a.metrics.width*a.scale)/2:(a.scale-1)*Il)),a.imageName){const e=s[a.imageName];c=e.sdf,m=e.pixelRatio,h=ld/m}const g=n?[a.x+_,a.y]:[0,0];let y=n?[0,0]:[a.x+_+i[0],a.y+i[1]-p],v=[0,0];f&&(v=y,y=[0,0]);const w=a.metrics.isDoubleResolution?2:1,x=(a.metrics.left-h)*a.scale-_+y[0],b=(-a.metrics.top-h)*a.scale+y[1],k=x+r.w/w*a.scale/m,S=b+r.h/w*a.scale/m,T=new o(x,b),C=new o(k,b),z=new o(x,S),P=new o(k,S);if(f){const e=new o(-_,_-cd),t=-Math.PI/2,i=Il/2-_,n=new o(5-cd-i,-(a.imageName?i:0)),r=new o(...v);
vendor: 5,961 bytes, line 5
5T._rotateAround(t,e)._add(n)._add(r),C._rotateAround(t,e)._add(n)._add(r),z._rotateAround(t,e)._add(n)._add(r),P._rotateAround(t,e)._add(n)._add(r)}if(d){const e=Math.sin(d),t=Math.cos(d),i=[t,-e,e,t];T._matMult(i),C._matMult(i),z._matMult(i),P._matMult(i)}const M=new o(0,0),L=new o(0,0);u.push({tl:T,tr:C,bl:z,br:P,tex:r,writingMode:t.writingMode,glyphOffset:g,sectionIndex:a.sectionIndex,isSDF:c,pixelOffsetTL:M,pixelOffsetBR:L,minFontScaleX:0,minFontScaleY:0})}return u}(0,i,l,n,r,s,a,e.allowVerticalPlacement),g=e.textSizeData;let y=null;"source"===g.kind?(y=[Md*n.layout.get("text-size").evaluate(s,{})],y[0]>Ld&&k(`${e.layerIds[0]}: Value for "text-size" is >= ${Pd}. Reduce your "text-size".`)):"composite"===g.kind&&(y=[Md*p.compositeTextSizes[0].evaluate(s,{},f),Md*p.compositeTextSizes[1].evaluate(s,{},f)],(y[0]>Ld||y[1]>Ld)&&k(`${e.layerIds[0]}: Value for "text-size" is >= ${Pd}. Reduce your "text-size".`)),e.addSymbols(e.text,_,y,l,r,s,u,t,d.lineStartIndex,d.lineLength,m,f);for(const t of h)c[t]=e.text.placedSymbolArray.length-1;return 4*_.length}function Ju(e){for(const t in e)return e[t];return null}function Yu(e,t,i,a){const n=e.compareText;if(t in n){const e=n[t];for(let t=e.length-1;t>=0;t--)if(a.dist(e[t])<i)return!0}else n[t]=[];return n[t].push(a),!1}const Qu=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array];class eh{static from(e){if(!(e instanceof ArrayBuffer))throw new Error("Data must be an instance of ArrayBuffer.");const[t,i]=new Uint8Array(e,0,2);if(219!==t)throw new Error("Data does not appear to be in a KDBush format.");const a=i>>4;if(1!==a)throw new Error(`Got v${a} data when expected v1.`);const n=Qu[15&i];if(!n)throw new Error("Unrecognized array type.");const[o]=new Uint16Array(e,2,1),[r]=new Uint32Array(e,4,1);return new eh(r,o,n,e)}constructor(e,t=64,i=Float64Array,a){if(isNaN(e)||e<0)throw new Error(`Unpexpected numItems value: ${e}.`);this.numItems=+e,this.nodeSize=Math.min(Math.max(+t,2),65535),this.ArrayType=i,this.IndexArrayType=e<65536?Uint16Array:Uint32Array;const n=Qu.indexOf(this.ArrayType),o=2*e*this.ArrayType.BYTES_PER_ELEMENT,r=e*this.IndexArrayType.BYTES_PER_ELEMENT,s=(8-r%8)%8;if(n<0)throw new Error(`Unexpected typed array class: ${i}.`);a&&a instanceof ArrayBuffer?(this.data=a,this.ids=new this.IndexArrayType(this.data,8,e),this.coords=new this.ArrayType(this.data,8+r+s,2*e),this._pos=2*e,this._finished=!0):(this.data=new ArrayBuffer(8+o+r+s),this.ids=new this.IndexArrayType(this.data,8,e),this.coords=new this.ArrayType(this.data,8+r+s,2*e),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,16+n]),new Uint16Array(this.data,2,1)[0]=t,new Uint32Array(this.data,4,1)[0]=e)}add(e,t){const i=this._pos>>1;return this.ids[i]=i,this.coords[this._pos++]=e,this.coords[this._pos++]=t,i}finish(){const e=this._pos>>1;if(e!==this.numItems)throw new Error(`Added ${e} items when expected ${this.numItems}.`);return th(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(e,t,i,a){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:n,coords:o,nodeSize:r}=this,s=[0,n.length-1,0],l=[];for(;s.length;){const d=s.pop()||0,u=s.pop()||0,h=s.pop()||0;if(u-h<=r){for(let r=h;r<=u;r++){const s=o[2*r],d=o[2*r+1];s>=e&&s<=i&&d>=t&&d<=a&&l.push(n[r])}continue}const c=h+u>>1,m=o[2*c],p=o[2*c+1];m>=e&&m<=i&&p>=t&&p<=a&&l.push(n[c]),(0===d?e<=m:t<=p)&&(s.push(h),s.push(c-1),s.push(1-d)),(0===d?i>=m:a>=p)&&(s.push(c+1),s.push(u),s.push(1-d))}return l}within(e,t,i){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:a,coords:n,nodeSize:o}=this,r=[0,a.length-1,0],s=[],l=i*i;for(;r.length;){const d=r.pop()||0,u=r.pop()||0,h=r.pop()||0;if(u-h<=o){for(let i=h;i<=u;i++)oh(n[2*i],n[2*i+1],e,t)<=l&&s.push(a[i]);continue}const c=h+u>>1,m=n[2*c],p=n[2*c+1];oh(m,p,e,t)<=l&&s.push(a[c]),(0===d?e-i<=m:t-i<=p)&&(r.push(h),r.push(c-1),r.push(1-d)),(0===d?e+i>=m:t+i>=p)&&(r.push(c+1),r.push(u),r.push(1-d))}return s}}function th(e,t,i,a,n,o){if(n-a<=i)return;const r=a+n>>1;ih(e,t,r,a,n,o),th(e,t,i,a,r-1,1-o),th(e,t,i,r+1,n,1-o)}function ih(e,t,i,a,n,o){for(;n>a;){if(n-a>600){const r=n-a+1,s=i-a+1,l=Math.log(r),d=.5*Math.exp(2*l/3),u=.5*Math.sqrt(l*d*(r-d)/r)*(s-r/2<0?-1:1);ih(e,t,i,Math.max(a,Math.floor(i-s*d/r+u)),Math.min(n,Math.floor(i+(r-s)*d/r+u)),o)}const r=t[2*i+o];let s=a,l=n;for(ah(e,t,a,i),t[2*n+o]>r&&ah(e,t,a,n);s<l;){for(ah(e,t,s,l),s++,l--;t[2*s+o]<r;)s++;for(;t[2*l+o]>r;)l--}t[2*a+o]===r?ah(e,t,a,l):(l++,ah(e,t,l,n)),l<=i&&(a=l+1),i<=l&&(n=l-1)}}function ah(e,t,i,a){nh(e,i,a),nh(t,2*i,2*a),nh(t,2*i+1,2*a+1)}function nh(e,t,i){const a=e[t];e[t]=e[i],e[i]=a}function oh(e,t,i,a){const n=e-i,o=t-a;return n*n+o*o}var rh;e.bh=void 0,(rh=e.bh||(e.bh={})).create="create",rh.load="load",rh.fullLoad="fullLoad";let sh=null,lh=[];const dh=1e3/60,uh="loadTime",hh="fullLoadTime",ch={mark(e){performance.mark(e)},frame(e){const t=e;null!=sh&&lh.push(t-sh),sh=t},clearMetrics(){sh=null,lh=[],performance.clearMeasures(uh),performance.clearMeasures(hh);for(const t in e.bh)performance.clearMarks(e.bh[t])},getPerformanceMetrics(){performance.measure(uh,e.bh.create,e.bh.load),performance.measure(hh,e.bh.create,e.bh.fullLoad);const t=performance.getEntriesByName(uh)[0].duration,i=performance.getEntriesByName(hh)[0].duration,a=lh.length,n=1/(lh.reduce(((e,t)=>e+t),0)/a/1e3),o=lh.filter((e=>e>dh)).reduce(((e,t)=>e+(t-dh)/dh),0);return{loadTime:t,fullLoadTime:i,fps:n,percentDroppedFrames:o/(a+o)*100,totalFrames:a}}};e.$=function(e,t,i){var a,n,o,r,s,l,d,u,h,c,m,p,f=i[0],_=i[1],g=i[2];return t===e?(e[12]=t[0]*f+t[4]*_+t[8]*g+t[12],e[13]=t[1]*f+t[5]*_+t[9]*g+t[13],e[14]=t[2]*f+t[6]*_+t[10]*g+t[14],e[15]=t[3]*f+t[7]*_+t[11]*g+t[15]):(n=t[1],o=t[2],r=t[3],s=t[4],l=t[5],d=t[6],u=t[7],h=t[8],c=t[9],m=t[10],p=t[11],e[0]=a=t[0],e[1]=n,e[2]=o,e[3]=r,e[4]=s,e[5]=l,e[6]=d,e[7]=u,e[8]=h,e[9]=c,e[10
5]=m,e[11]=p,e[12]=a*f+s*_+h*g+t[12],e[13]=n*f+l*_+c*g+t[13],e[14]=o*f+d*_+m*g+t[14],e[15]=r*f+u*_+p*g+t[15]),e},e.A=Pr,e.B=qt,e.C=class{constructor(e,t,i){this.receive=e=>{const t=e.data,i=t.id;if(i&&(!t.targetMapId||this.mapId===t.targetMapId))if("<cancel>"===t.type){delete this.tasks[i];const e=this.cancelCallbacks[i];delete this.cancelCallbacks[i],e&&e()}else C()||t.mustQueue?(this.tasks[i]=t,this.taskQueue.push(i),this.invoker.trigger()):this.processTask(i,t)},this.process=()=>{if(!this.taskQueue.length)return;const e=this.taskQueue.shift(),t=this.tasks[e];delete this.tasks[e],this.taskQueue.length&&this.invoker.trigger(),t&&this.processTask(e,t)},this.target=e,this.parent=t,this.mapId=i,this.callbacks={},this.tasks={},this.taskQueue=[],this.cancelCallbacks={},this.invoker=new Qd(this.process),this.target.addEventListener("message",this.receive,!1),this.globalScope=C()?e:window}send(e,t,i,a,n=!1){const o=Math.round(1e18*Math.random()).toString(36).substring(0,10);i&&(this.callbacks[o]=i);const r=[],s={id:o,type:e,hasCallback:!!i,targetMapId:a,mustQueue:n,sourceMapId:this.mapId,data:Ra(t,r)};return this.target.postMessage(s,{transfer:r}),{cancel:()=>{i&&delete this.callbacks[o],this.target.postMessage({id:o,type:"<cancel>",targetMapId:a,sourceMapId:this.mapId})}}}processTask(e,t){if("<response>"===t.type){const i=this.callbacks[e];delete this.callbacks[e],i&&(t.error?i(Ba(t.error)):i(null,Ba(t.data)))}else{let i=!1;const a=[],n=t.hasCallback?(t,n)=>{i=!0,delete this.cancelCallbacks[e];const o={id:e,type:"<response>",sourceMapId:this.mapId,error:t?Ra(t):null,data:Ra(n,a)};this.target.postMessage(o,{transfer:a})}:e=>{i=!0};let o=null;const r=Ba(t.data);if(this.parent[t.type])o=this.parent[t.type](t.sourceMapId,r,n);else if("getWorkerSource"in this.parent){const e=t.type.split(".");o=this.parent.getWorkerSource(t.sourceMapId,e[0],r.source)[e[1]](r,n)}else n(new Error(`Could not find function ${t.type}`));!i&&o&&o.cancel&&(this.cancelCallbacks[e]=o.cancel)}}remove(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)}},e.D=gn,e.E=H,e.F=function(e,t){const i={};for(let a=0;a<t.length;a++){const n=t[a];n in e&&(i[n]=e[n])}return i},e.G=nu,e.H=ou,e.I=dd,e.J=h,e.K=c,e.L=tu,e.M=L,e.N=ar,e.O=mu,e.P=o,e.Q=Pn,e.R=Ur,e.S=Po,e.T=hn,e.U=du,e.V=class extends In{},e.W=hu,e.X=function(e,t){const i=window.document.createElement("video");i.muted=!0,i.onloadstart=function(){t(null,i)};for(let t=0;t<e.length;t++){const a=window.document.createElement("source");U(e[t])||(i.crossOrigin="Anonymous"),a.src=e[t],i.appendChild(a)}return{cancel:()=>{}}},e.Y=se,e.Z=function(){var e=new Pr(16);return Pr!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0),e[0]=1,e[5]=1,e[10]=1,e[15]=1,e},e._=t,e.a=P,e.a$=class extends Jn{},e.a0=function(e,t,i){var a=i[0],n=i[1],o=i[2];return e[0]=t[0]*a,e[1]=t[1]*a,e[2]=t[2]*a,e[3]=t[3]*a,e[4]=t[4]*n,e[5]=t[5]*n,e[6]=t[6]*n,e[7]=t[7]*n,e[8]=t[8]*o,e[9]=t[9]*o,e[10]=t[10]*o,e[11]=t[11]*o,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e},e.a1=Lr,e.a2=function(){return y++},e.a3=eo,e.a4=Od,e.a5=function(){sn.isLoading()||sn.isLoaded()||"deferred"!==on()||rn()},e.a6=Zi,e.a7=sr,e.a8=ln,e.a9=gu,e.aA=tn,e.aB=function(e){e=e.slice();const t=Object.create(null);for(let i=0;i<e.length;i++)t[e[i].id]=e[i];for(let i=0;i<e.length;i++)"ref"in e[i]&&(e[i]=J(e[i],t[e[i].ref]));return e},e.aC=function(e){if("custom"===e.type)return new Yd(e);switch(e.type){case"background":return new Hd(e);case"circle":return new Dr(e);case"fill":return new Rs(e);case"fill-extrusion":return new sl(e);case"heatmap":return new qr(e);case"hillshade":return new Hr(e);case"line":return new kl(e);case"raster":return new Jd(e);case"symbol":return new qd(e)}},e.aD=x,e.aE=function(e,t){if(!e)return[{command:Q.setStyle,args:[t]}];let i=[];try{if(!Y(e.version,t.version))return[{command:Q.setStyle,args:[t]}];Y(e.center,t.center)||i.push({command:Q.setCenter,args:[t.center]}),Y(e.zoom,t.zoom)||i.push({command:Q.setZoom,args:[t.zoom]}),Y(e.bearing,t.bearing)||i.push({command:Q.setBearing,args:[t.bearing]}),Y(e.pitch,t.pitch)||i.push({command:Q.setPitch,args:[t.pitch]}),Y(e.sprite,t.sprite)||i.push({command:Q.setSprite,args:[t.sprite]}),Y(e.glyphs,t.glyphs)||i.push({command:Q.setGlyphs,args:[t.glyphs]}),Y(e.transition,t.transition)||i.push({command:Q.setTransition,args:[t.transition]}),Y(e.light,t.light)||i.push({command:Q.setLight,args:[t.light]});const a={},n=[];!function(e,t,i,a){let n;for(n in t=t||{},e=e||{})Object.prototype.hasOwnProperty.call(e,n)&&(Object.prototype.hasOwnProperty.call(t,n)||te(n,i,a));for(n in t)Object.prototype.hasOwnProperty.call(t,n)&&(Object.prototype.hasOwnProperty.call(e,n)?Y(e[n],t[n])||("geojson"===e[n].type&&"geojson"===t[n].type&&ae(e,t,n)?i.push({command:Q.setGeoJSONSourceData,args:[n,t[n].data]}):ie(n,t,i,a)):ee(n,t,i))}(e.sources,t.sources,n,a);const o=[];
vendor: 5,562 bytes, line 5
5e.layers&&e.layers.forEach((e=>{a[e.source]?i.push({command:Q.removeLayer,args:[e.id]}):o.push(e)})),i=i.concat(n),function(e,t,i){t=t||[];const a=(e=e||[]).map(oe),n=t.map(oe),o=e.reduce(re,{}),r=t.reduce(re,{}),s=a.slice(),l=Object.create(null);let d,u,h,c,m,p,f;for(d=0,u=0;d<a.length;d++)h=a[d],Object.prototype.hasOwnProperty.call(r,h)?u++:(i.push({command:Q.removeLayer,args:[h]}),s.splice(s.indexOf(h,u),1));for(d=0,u=0;d<n.length;d++)h=n[n.length-1-d],s[s.length-1-d]!==h&&(Object.prototype.hasOwnProperty.call(o,h)?(i.push({command:Q.removeLayer,args:[h]}),s.splice(s.lastIndexOf(h,s.length-u),1)):u++,p=s[s.length-d],i.push({command:Q.addLayer,args:[r[h],p]}),s.splice(s.length-d,0,h),l[h]=!0);for(d=0;d<n.length;d++)if(h=n[d],c=o[h],m=r[h],!l[h]&&!Y(c,m))if(Y(c.source,m.source)&&Y(c["source-layer"],m["source-layer"])&&Y(c.type,m.type)){for(f in ne(c.layout,m.layout,i,h,null,Q.setLayoutProperty),ne(c.paint,m.paint,i,h,null,Q.setPaintProperty),Y(c.filter,m.filter)||i.push({command:Q.setFilter,args:[h,m.filter]}),Y(c.minzoom,m.minzoom)&&Y(c.maxzoom,m.maxzoom)||i.push({command:Q.setLayerZoomRange,args:[h,m.minzoom,m.maxzoom]}),c)Object.prototype.hasOwnProperty.call(c,f)&&"layout"!==f&&"paint"!==f&&"filter"!==f&&"metadata"!==f&&"minzoom"!==f&&"maxzoom"!==f&&(0===f.indexOf("paint.")?ne(c[f],m[f],i,h,f.slice(6),Q.setPaintProperty):Y(c[f],m[f])||i.push({command:Q.setLayerProperty,args:[h,f,m[f]]}));for(f in m)Object.prototype.hasOwnProperty.call(m,f)&&!Object.prototype.hasOwnProperty.call(c,f)&&"layout"!==f&&"paint"!==f&&"filter"!==f&&"metadata"!==f&&"minzoom"!==f&&"maxzoom"!==f&&(0===f.indexOf("paint.")?ne(c[f],m[f],i,h,f.slice(6),Q.setPaintProperty):Y(c[f],m[f])||i.push({command:Q.setLayerProperty,args:[h,f,m[f]]}))}else i.push({command:Q.removeLayer,args:[h]}),p=s[s.lastIndexOf(h)+1],i.push({command:Q.addLayer,args:[m,p]})}(o,t.layers,i)}catch(e){console.warn("Unable to compute style diff:",e),i=[{command:Q.setStyle,args:[t]}]}return i},e.aF=function(e){const t=[],i=e.id;return void 0===i&&t.push({message:`layers.${i}: missing required property "id"`}),void 0===e.render&&t.push({message:`layers.${i}: missing required method "render"`}),e.renderingMode&&"2d"!==e.renderingMode&&"3d"!==e.renderingMode&&t.push({message:`layers.${i}: property "renderingMode" must be either "2d" or "3d"`}),t},e.aG=function e(t,i){if(Array.isArray(t)){if(!Array.isArray(i)||t.length!==i.length)return!1;for(let a=0;a<t.length;a++)if(!e(t[a],i[a]))return!1;return!0}if("object"==typeof t&&null!==t&&null!==i){if("object"!=typeof i)return!1;if(Object.keys(t).length!==Object.keys(i).length)return!1;for(const a in t)if(!e(t[a],i[a]))return!1;return!0}return t===i},e.aH=v,e.aI=w,e.aJ=nn,e.aK=function(e){return e({pluginStatus:Qa,pluginURL:en}),nn.on("pluginStateChange",e),e},e.aL=class extends Vo{constructor(e,t){super(e,t),this.current=0}set(e){this.current!==e&&(this.current=e,this.gl.uniform1i(this.location,e))}},e.aM=Uo,e.aN=class extends Vo{constructor(e,t){super(e,t),this.current=Go}set(e){if(e[12]!==this.current[12]||e[0]!==this.current[0])return this.current=e,void this.gl.uniformMatrix4fv(this.location,!1,e);for(let t=1;t<16;t++)if(e[t]!==this.current[t]){this.current=e,this.gl.uniformMatrix4fv(this.location,!1,e);break}}},e.aO=Zo,e.aP=class extends Vo{constructor(e,t){super(e,t),this.current=[0,0,0]}set(e){e[0]===this.current[0]&&e[1]===this.current[1]&&e[2]===this.current[2]||(this.current=e,this.gl.uniform3f(this.location,e[0],e[1],e[2]))}},e.aQ=class extends Vo{constructor(e,t){super(e,t),this.current=[0,0]}set(e){e[0]===this.current[0]&&e[1]===this.current[1]||(this.current=e,this.gl.uniform2f(this.location,e[0],e[1]))}},e.aR=qo,e.aS=function(e,t,i,a,n,o,r){var s=1/(t-i),l=1/(a-n),d=1/(o-r);return e[0]=-2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*l,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*d,e[11]=0,e[12]=(t+i)*s,e[13]=(n+a)*l,e[14]=(r+o)*d,e[15]=1,e},e.aT=Xe,e.aU=Ir,e.aV=class extends Vn{},e.aW=Ml,e.aX=class extends Zn{},e.aY=function(e){return e<=1?1:Math.pow(2,Math.ceil(Math.log(e)/Math.LN2))},e.aZ=Zr,e.a_=co,e.aa=function(e){const t={};if(e.replace(/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,((e,i,a,n)=>{const o=a||n;return t[i]=!o||o.toLowerCase(),""})),t["max-age"]){const e=parseInt(t["max-age"],10);isNaN(e)?delete t["max-age"]:t["max-age"]=e}return t},e.ab=function(e,t){const i=[];for(const a in e)a in t||i.push(a);return i},e.ac=function(e){if(null==z){const t=e.navigator?e.navigator.userAgent:null;z=!!e.safari||!(!t||!(/\b(iPad|iPhone|iPod)\b/.test(t)||t.match("Safari")&&!t.match("Chrome")))}return z},e.ad=f,e.ae=function(e,t,i){var a=Math.sin(i),n=Math.cos(i),o=t[0],r=t[1],s=t[2],l=t[3],d=t[4],u=t[5],h=t[6],c=t[7];return t!==e&&(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[0]=o*n+d*a,e[1]=r*n+u*a,e[2]=s*n+h*a,e[3]=l*n+c*a,e[4]=d*n-o*a,e[5]=u*n-r*a,e[6]=h*n-s*a,e[7]=c*n-l*a,e},e.af=function(e){var t=new Pr(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],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},e.ag=Er,e.ah=function(e,t){let i=0,a=0;if("constant"===e.kind)a=e.layoutSize;else if("source"!==e.kind){const{interpolationType:n,minZoom:o,maxZoom:r}=e,s=n?f(Gt.interpolationFactor(n,t,o,r),0,1):0;"camera"===e.kind?a=qt.number(e.minSize,e.maxSize,s):i=s}return{uSizeT:i,uSize:a}},e.aj=function(e,{uSize:t,uSizeT:i},{lowerSize:a,upperSize:n}
vendor: 10,484 bytes, line 5
5){return"source"===e.kind?a/Md:"composite"===e.kind?qt.number(a/Md,n/Md,i):t},e.ak=$d,e.al=function(e,t,i,a){const n=t.y-e.y,r=t.x-e.x,s=a.y-i.y,l=a.x-i.x,d=s*r-l*n;if(0===d)return null;const u=(l*(e.y-i.y)-s*(e.x-i.x))/d;return new o(e.x+u*r,e.y+u*n)},e.am=bu,e.an=ur,e.ao=Mr,e.ap=Il,e.ar=Id,e.as=function(e,t){var i=t[0],a=t[1],n=t[2],o=t[3],r=t[4],s=t[5],l=t[6],d=t[7],u=t[8],h=t[9],c=t[10],m=t[11],p=t[12],f=t[13],_=t[14],g=t[15],y=i*s-a*r,v=i*l-n*r,w=i*d-o*r,x=a*l-n*s,b=a*d-o*s,k=n*d-o*l,S=u*f-h*p,T=u*_-c*p,C=u*g-m*p,z=h*_-c*f,P=h*g-m*f,M=c*g-m*_,L=y*M-v*P+w*z+x*C-b*T+k*S;return L?(e[0]=(s*M-l*P+d*z)*(L=1/L),e[1]=(n*P-a*M-o*z)*L,e[2]=(f*k-_*b+g*x)*L,e[3]=(c*b-h*k-m*x)*L,e[4]=(l*C-r*M-d*T)*L,e[5]=(i*M-n*C+o*T)*L,e[6]=(_*w-p*k-g*v)*L,e[7]=(u*k-c*w+m*v)*L,e[8]=(r*P-s*C+d*S)*L,e[9]=(a*C-i*P-o*S)*L,e[10]=(p*b-f*w+g*y)*L,e[11]=(h*w-u*b-m*y)*L,e[12]=(s*T-r*z-l*S)*L,e[13]=(i*z-a*T+n*S)*L,e[14]=(f*v-p*x-_*y)*L,e[15]=(u*x-h*v+c*y)*L,e):null},e.at=Hu,e.au=Sd,e.av=eh,e.aw=function(){const e={},t=K.$version;for(const i in K.$root){const a=K.$root[i];if(a.required){let n=null;n="version"===i?t:"array"===a.type?[]:{},null!=n&&(e[i]=n)}}return e},e.ax=Q,e.ay=Fa,e.az=B,e.b=function(e,t){const i=new Blob([new Uint8Array(e)],{type:"image/png"});createImageBitmap(i).then((e=>{t(null,e)})).catch((e=>{t(new Error(`Could not load image because of ${e.message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`))}))},e.b0=So,e.b1=function(e,t){var i=e[0],a=e[1],n=e[2],o=e[3],r=e[4],s=e[5],l=e[6],d=e[7],u=e[8],h=e[9],c=e[10],m=e[11],p=e[12],f=e[13],_=e[14],g=e[15],y=t[0],v=t[1],w=t[2],x=t[3],b=t[4],k=t[5],S=t[6],T=t[7],C=t[8],z=t[9],P=t[10],M=t[11],L=t[12],A=t[13],I=t[14],E=t[15];return Math.abs(i-y)<=zr*Math.max(1,Math.abs(i),Math.abs(y))&&Math.abs(a-v)<=zr*Math.max(1,Math.abs(a),Math.abs(v))&&Math.abs(n-w)<=zr*Math.max(1,Math.abs(n),Math.abs(w))&&Math.abs(o-x)<=zr*Math.max(1,Math.abs(o),Math.abs(x))&&Math.abs(r-b)<=zr*Math.max(1,Math.abs(r),Math.abs(b))&&Math.abs(s-k)<=zr*Math.max(1,Math.abs(s),Math.abs(k))&&Math.abs(l-S)<=zr*Math.max(1,Math.abs(l),Math.abs(S))&&Math.abs(d-T)<=zr*Math.max(1,Math.abs(d),Math.abs(T))&&Math.abs(u-C)<=zr*Math.max(1,Math.abs(u),Math.abs(C))&&Math.abs(h-z)<=zr*Math.max(1,Math.abs(h),Math.abs(z))&&Math.abs(c-P)<=zr*Math.max(1,Math.abs(c),Math.abs(P))&&Math.abs(m-M)<=zr*Math.max(1,Math.abs(m),Math.abs(M))&&Math.abs(p-L)<=zr*Math.max(1,Math.abs(p),Math.abs(L))&&Math.abs(f-A)<=zr*Math.max(1,Math.abs(f),Math.abs(A))&&Math.abs(_-I)<=zr*Math.max(1,Math.abs(_),Math.abs(I))&&Math.abs(g-E)<=zr*Math.max(1,Math.abs(g),Math.abs(E))},e.b2=function(e,t){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},e.b3=function(e,t,i){return e[0]=t[0]*i[0],e[1]=t[1]*i[1],e[2]=t[2]*i[2],e[3]=t[3]*i[3],e},e.b4=function(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]},e.b5=_,e.b6=cu,e.b7=ru,e.b8=function(e,t,i,a,n){var o,r=1/Math.tan(t/2);return e[0]=r/i,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=r,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=-1,e[12]=0,e[13]=0,e[15]=0,null!=n&&n!==1/0?(e[10]=(n+a)*(o=1/(a-n)),e[14]=2*n*a*o):(e[10]=-1,e[14]=-2*a),e},e.b9=function(e,t,i){var a=Math.sin(i),n=Math.cos(i),o=t[4],r=t[5],s=t[6],l=t[7],d=t[8],u=t[9],h=t[10],c=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=o*n+d*a,e[5]=r*n+u*a,e[6]=s*n+h*a,e[7]=l*n+c*a,e[8]=d*n-o*a,e[9]=u*n-r*a,e[10]=h*n-s*a,e[11]=c*n-l*a,e},e.bA=a,e.bB=El,e.bC=$i,e.bD=sn,e.ba=m,e.bb=p,e.bc=function(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},e.bd=class extends An{},e.be=eu,e.bf=su,e.bg=ch,e.bi=R,e.bj=function(e,t,i=!1){if(Qa===Ka||Qa===Xa||Qa===Ja)throw new Error("setRTLTextPlugin cannot be called multiple times.");en=j.resolveURL(e),Qa=Ka,Ya=t,an(),i||rn()},e.bk=on,e.bl=function(e,t){const i={};for(let a=0;a<e.length;a++){const n=t&&t[e[a].id]||Qi(e[a]);t&&(t[e[a].id]=n);let o=i[n];o||(o=i[n]=[]),o.push(e[a])}const a=[];for(const e in i)a.push(i[e]);return a},e.bm=ja,e.bn=_u,e.bo=yu,e.bp=ud,e.bq=function(t){t.bucket.createArrays(),t.bucket.tilePixelRatio=ar/(512*t.bucket.overscaling),t.bucket.compareText={},t.bucket.iconsNeedLinear=!1;const i=t.bucket.layers[0],a=i.layout,n=i._unevaluatedLayout._values,o={layoutIconSize:n["icon-size"].possiblyEvaluate(new ln(t.bucket.zoom+1),t.canonical),layoutTextSize:n["text-size"].possiblyEvaluate(new ln(t.bucket.zoom+1),t.canonical),textMaxSize:n["text-size"].possiblyEvaluate(new ln(18))};if("composite"===t.bucket.textSizeData.kind){const{minZoom:e,maxZoom:i}=t.bucket.textSizeData;o.compositeTextSizes=[n["text-size"].possiblyEvaluate(new ln(e),t.canonical),n["text-size"].possiblyEvaluate(new ln(i),t.canonical)]}if("composite"===t.bucket.iconSizeData.kind){const{minZoom:e,maxZoom:i}=t.bucket.iconSizeData;o.compositeIconSizes=[n["icon-size"].possiblyEvaluate(new ln(e),t.canonical),n["icon-size"].possiblyEvaluate(new ln(i),t.canonical)]}const r=a.get("text-line-height")*Il,s="viewport"!==a.get("text-rotation-alignment")&&"point"!==a.get("symbol-placement"),l=a.get("text-keep-upright"),d=a.get("text-size");for(const n of t.bucket.features){const u=a.get("text-font").evaluate(n,{},t.canonical).join(","),h=d.evaluate(n,{},t.canonical),c=o.layoutTextSize.evaluate(n,{},t.canonical),m=o.layoutIconSize.evaluate(n,{},t.canonical),p={horizontal:{},vertical:void 0},f=n.text;let _,g=[0,0];if(f){const o=f.toString(),d=a.get("text-letter-spacing").evaluate(n,{},t.canonical)*Il,m=Va(o)?d:0,_=a.get("text-anchor").evaluate(n,{},t.canonical),y=Wu(i,n,t.canonical);if(!y){const e=a.get("text-radial-offset").evaluate(n,{},t.canonical);g=e?Gu(_,[e*Il,qu]):a.get("text-offset").evaluate(n,{},t.canonical).map((e=>e*Il))}let v=s?"center":a.get("text-justify").evaluate(n,{},t.canonical);const w=a.get("symbol-placement"),x="point"===w?a.get("text-max-width").evaluate(n,{},t.canonical)*Il:0,b=()=>{t.bucket.allowVerticalPlacement&&Na(o)&&(p.vertical=fd(f,t.glyphMap,t.glyphPositions,t.imagePositions,u,x,r,_,"left",m,g,e.ai.vertical,!0,w,c,h))};if(!s&&y){const i=new Set;if("auto"===v)for(let e=0;e<y.values.length;e+=2)i.add(Hu(y.values[e]));else i.add(v);let a=!1;for(const n of i)if(!p.horizontal[n])if(a)p.horizontal[n]=p.horizontal[0];else{const i=fd(f,t.glyphMap,t.glyphPositions,t.imagePositions,u,x,r,"center",n,m,g,e.ai.horizontal,!1,w,c,h);i&&(p.horizontal[n]=i,a=1===i.positionedLines.length)}b()}else{"auto"===v&&(v=Hu(_));const i=fd(f,t.glyphMap,t.glyphPositions,t.imagePositions,u,x,r,_,v,m,g,e.ai.horizontal,!1,w,c,h);i&&(p.horizontal[v]=i),b(),Na(o)&&s&&l&&(p.vertical=fd(f,t.glyphMap,t.glyphPositions,t.imagePositions,u,x,r,_,v,m,g,e.ai.vertical,!1,w,c,h))}}let y=!1;if(n.icon&&n.icon.name){const e=t.imageMap[n.icon.name];e&&(_=Cd(t.imagePositions[n.icon.name],a.get("icon-offset").evaluate(n,{},t.canonical),a.get("icon-anchor").evaluate(n,{},t.canonical)),y=!!e.sdf,void 0===t.bucket.sdfIcons?t.bucket.sdfIcons=y:t.bucket.sdfIcons!==y&&k("Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer"),(e.pixelRatio!==t.bucket.pixelRatio||0!==a.get("icon-rotate").constantOr(1))&&(t.bucket.iconsNeedLinear=!0))}const v=Ju(p.horizontal)||p.vertical;t.bucket.iconsInText=!!v&&v.iconsInText,(v||_)&&Ku(t.bucket,n,p,_,t.imageMap,o,c,m,g,y,t.canonical)}t.showCollisionBoxes&&t.bucket.generateCollisionDebugBuffers()},e.br=gl,e.bs=Es,e.bt=il,e.bu=class{constructor(e){this._marks={start:[e.url,"start"].join("#"),end:[e.url,"end"].join("#"),measure:e.url.toString()},performance.mark(this._marks.start)}finish(){performance.mark(this._marks.end);let e=performance.getEntriesByName(this._marks.measure);return 0===e.length&&(performance.measure(this._marks.measure,this._marks.start,this._marks.end),e=performance.getEntriesByName(this._marks.measure),performance.clearMarks(this._marks.start),performance.clearMarks(this._marks.end),performance.clearMeasures(this._marks.measure)),e}},e.bv=td,e.bw=Ns,e.bx=function(e,i,a,n,o){return t(this,void 0,void 0,(function*(){if(c())try{return yield L(e,i,a,n,o)}catch(e){}return function(e,t,i,a,n){const o=e.width,r=e.height;A&&I||(A=new OffscreenCanvas(o,r),I=A.getContext("2d",{willReadFrequently:!0})),A.width=o,A.height=r,I.drawImage(e,0,0,o,r);const s=I.getImageData(t,i,a,n);return I.clearRect(0,0,o,r),s.data}(e,i,a,n,o)}))},e.by=fu,e.bz=i,e.c=$,e.d=function(e,t){const i=new Image;i.onload=()=>{t(null,i),URL.revokeObjectURL(i.src),i.onload=null,window.requestAnimationFrame((()=>{i.src=M}))},i.onerror=()=>t(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."));const a=new Blob([new Uint8Array(e)],{type:"image/png"});i.src=e.byteLength?URL.createObjectURL(a):M},e.e=g,e.f=function(e,t){return N(g(e,{type:"json"}),t)},e.g=F,e.h=j,e.i=C,e.j=W,e.k=G,e.l=V,e.m=N,e.n=function(e){return new td(e).readFields(ad,[])},e.o=function(e,t,i){if(!e.length)return i(null,[]);let a=e.length;const n=new Array(e.length);let o=null;e.forEach(((e,r)=>{t(e,((e,t)=>{e&&(o=e),n[r]=t,0==--a&&i(o,n)}))}))},e.p=sd,e.q=Vr,e.r=bn,e.s=U,e.t=Ma,e.u=Oa,e.v=K,e.w=k,e.x=Ia,e.y=Pa,e.z=function([e,t,i]){return t+=90,t*=Math.PI/180,i*=Math.PI/180,{x:e*Math.cos(t)*Math.sin(i),y:e*Math.sin(t)*Math.sin(i),z:e*Math.cos(i)}}})),a(0,(function(e){class t{constructor(e){this.keyCache={},e&&this.replace(e)}replace(e){this._layerConfigs={},this._layers={},this.update(e,[])}update(t,i){for(const i of t){this._layerConfigs[i.id]=i;const t=this._layers[i.id]=e.aC(i);t._featureFilter=e.a6(t.filter),this.keyCache[i.id]&&delete this.keyCache[i.id]}for(const e of i)delete this.keyCache[e],delete this._layerConfigs[e],delete this._layers[e];this.familiesBySource={};const a=e.bl(Object.values(this._layerConfigs),this.keyCache);for(const e of a){const t=e.map((e=>this._layers[e.id])),i=t[0];if("none"===i.visibility)continue;const a=i.source||"";let n=this.familiesBySource[a];n||(n=this.familiesBySource[a]={});const o=i.sourceLayer||"_geojsonTileLayer";let r=n[o];r||(r=n[o]=[]),r.push(t)}}}class i{constructor(t){const i={},a=[];for(const e in t){const n=t[e],o=i[e]={};for(const e in n){const t=n[+e];if(!t||0===t.bitmap.width||0===t.bitmap.height)continue;const i={x:0,y:0,w:t.bitmap.width+2,h:t.bitmap.height+2};a.push(i),o[e]={rect:i,metrics:t.metrics}}}const{w:n,h:o}
5=e.p(a),r=new e.q({width:n||1,height:o||1});for(const a in t){const n=t[a];for(const t in n){const o=n[+t];if(!o||0===o.bitmap.width||0===o.bitmap.height)continue;const s=i[a][t].rect;e.q.copy(o.bitmap,r,{x:0,y:0},{x:s.x+1,y:s.y+1},o.bitmap)}}this.image=r,this.positions=i}}e.bm("GlyphAtlas",i);class a{constructor(t){this.tileID=new e.O(t.tileID.overscaledZ,t.tileID.wrap,t.tileID.canonical.z,t.tileID.canonical.x,t.tileID.canonical.y),this.uid=t.uid,this.zoom=t.zoom,this.pixelRatio=t.pixelRatio,this.tileSize=t.tileSize,this.source=t.source,this.overscaling=this.tileID.overscaleFactor(),this.showCollisionBoxes=t.showCollisionBoxes,this.collectResourceTiming=!!t.collectResourceTiming,this.returnDependencies=!!t.returnDependencies,this.promoteId=t.promoteId,this.inFlightDependencies=[],this.dependencySentinel=-1}parse(t,a,o,r,s){this.status="parsing",this.data=t,this.collisionBoxArray=new e.a3;const l=new e.bn(Object.keys(t.layers).sort()),d=new e.bo(this.tileID,this.promoteId);d.bucketLayerIDs=[];const u={},h={featureIndex:d,iconDependencies:{},patternDependencies:{},glyphDependencies:{},availableImages:o},c=a.familiesBySource[this.source];for(const i in c){const a=t.layers[i];if(!a)continue;1===a.version&&e.w(`Vector tile source "${this.source}" layer "${i}" does not use vector tile spec v2 and therefore may have some rendering errors.`);const r=l.encode(i),s=[];for(let e=0;e<a.length;e++){const t=a.feature(e),n=d.getId(t,i);s.push({feature:t,id:n,index:e,sourceLayerIndex:r})}for(const t of c[i]){const i=t[0];i.source!==this.source&&e.w(`layer.source = ${i.source} does not equal this.source = ${this.source}`),i.minzoom&&this.zoom<Math.floor(i.minzoom)||i.maxzoom&&this.zoom>=i.maxzoom||"none"!==i.visibility&&(n(t,this.zoom,o),(u[i.id]=i.createBucket({index:d.bucketLayerIDs.length,layers:t,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:r,sourceID:this.source})).populate(s,h,this.tileID.canonical),d.bucketLayerIDs.push(t.map((e=>e.id))))}}let m,p,f,_;const g=e.aH(h.glyphDependencies,(e=>Object.keys(e).map(Number)));this.inFlightDependencies.forEach((e=>null==e?void 0:e.cancel())),this.inFlightDependencies=[];const y=++this.dependencySentinel;Object.keys(g).length?this.inFlightDependencies.push(r.send("getGlyphs",{uid:this.uid,stacks:g,source:this.source,tileID:this.tileID,type:"glyphs"},((e,t)=>{y===this.dependencySentinel&&(m||(m=e,p=t,x.call(this)))}))):p={};const v=Object.keys(h.iconDependencies);v.length?this.inFlightDependencies.push(r.send("getImages",{icons:v,source:this.source,tileID:this.tileID,type:"icons"},((e,t)=>{y===this.dependencySentinel&&(m||(m=e,f=t,x.call(this)))}))):f={};const w=Object.keys(h.patternDependencies);function x(){if(m)return s(m);if(p&&f&&_){const t=new i(p),a=new e.bp(f,_);for(const i in u){const r=u[i];r instanceof e.a4?(n(r.layers,this.zoom,o),e.bq({bucket:r,glyphMap:p,glyphPositions:t.positions,imageMap:f,imagePositions:a.iconPositions,showCollisionBoxes:this.showCollisionBoxes,canonical:this.tileID.canonical})):r.hasPattern&&(r instanceof e.br||r instanceof e.bs||r instanceof e.bt)&&(n(r.layers,this.zoom,o),r.addFeatures(h,this.tileID.canonical,a.patternPositions))}this.status="done",s(null,{buckets:Object.values(u).filter((e=>!e.isEmpty())),featureIndex:d,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:t.image,imageAtlas:a,glyphMap:this.returnDependencies?p:null,iconMap:this.returnDependencies?f:null,glyphPositions:this.returnDependencies?t.positions:null})}}w.length?this.inFlightDependencies.push(r.send("getImages",{icons:w,source:this.source,tileID:this.tileID,type:"patterns"},((e,t)=>{y===this.dependencySentinel&&(m||(m=e,_=t,x.call(this)))}))):_={},x.call(this)}}function n(t,i,a){const n=new e.a8(i);for(const e of t)e.recalculate(n,a)}function o(t,i){const a=e.l(t.request,((a,n,o,r)=>{if(a)i(a);else if(n)try{const t=new e.bw.VectorTile(new e.bv(n));i(null,{vectorTile:t,rawData:n,cacheControl:o,expires:r})}catch(e){const a=new Uint8Array(n);let o=`Unable to parse the tile at ${t.request.url}, `;o+=31===a[0]&&139===a[1]?"please make sure the data is not gzipped and that you have configured the relevant header in the server":`got error: ${e.messge}`,i(new Error(o))}}));return()=>{a.cancel(),i()}}
5class r{constructor(e,t,i,a){this.actor=e,this.layerIndex=t,this.availableImages=i,this.loadVectorData=a||o,this.fetching={},this.loading={},this.loaded={}}loadTile(t,i){const n=t.uid;this.loading||(this.loading={});const o=!!(t&&t.request&&t.request.collectResourceTiming)&&new e.bu(t.request),r=this.loading[n]=new a(t);r.abort=this.loadVectorData(t,((t,a)=>{if(delete this.loading[n],t||!a)return r.status="done",this.loaded[n]=r,i(t);const s=a.rawData,l={};a.expires&&(l.expires=a.expires),a.cacheControl&&(l.cacheControl=a.cacheControl);const d={};if(o){const e=o.finish();e&&(d.resourceTiming=JSON.parse(JSON.stringify(e)))}r.vectorTile=a.vectorTile,r.parse(a.vectorTile,this.layerIndex,this.availableImages,this.actor,((t,a)=>{if(delete this.fetching[n],t||!a)return i(t);i(null,e.e({rawTileData:s.slice(0)},a,l,d))})),this.loaded=this.loaded||{},this.loaded[n]=r,this.fetching[n]={rawTileData:s,cacheControl:l,resourceTiming:d}}))}reloadTile(t,i){const a=this.loaded,n=t.uid;if(a&&a[n]){const o=a[n];o.showCollisionBoxes=t.showCollisionBoxes,"parsing"===o.status?o.parse(o.vectorTile,this.layerIndex,this.availableImages,this.actor,((t,a)=>{if(t||!a)return i(t,a);let o;if(this.fetching[n]){const{rawTileData:t,cacheControl:i,resourceTiming:r}=this.fetching[n];delete this.fetching[n],o=e.e({rawTileData:t.slice(0)},a,i,r)}else o=a;i(null,o)})):"done"===o.status&&(o.vectorTile?o.parse(o.vectorTile,this.layerIndex,this.availableImages,this.actor,i):i())}}abortTile(e,t){const i=this.loading,a=e.uid;i&&i[a]&&i[a].abort&&(i[a].abort(),delete i[a]),t()}removeTile(e,t){const i=this.loaded,a=e.uid;i&&i[a]&&delete i[a],t()}}class s{constructor(){this.loaded={}}loadTile(t,i){return e._(this,void 0,void 0,(function*(){const{uid:a,encoding:n,rawImageData:o,redFactor:r,greenFactor:s,blueFactor:l,baseShift:d}=t,u=o.width+2,h=o.height+2,c=e.a(o)?new e.R({width:u,height:h},yield e.bx(o,-1,-1,u,h)):o,m=new e.by(a,c,n,r,s,l,d);this.loaded=this.loaded||{},this.loaded[a]=m,i(null,m)}))}removeTile(e){const t=this.loaded,i=e.uid;t&&t[i]&&delete t[i]}}function l(e,t){if(0!==e.length){d(e[0],t);for(var i=1;i<e.length;i++)d(e[i],!t)}}function d(e,t){for(var i=0,a=0,n=0,o=e.length,r=o-1;n<o;r=n++){var s=(e[n][0]-e[r][0])*(e[r][1]+e[n][1]),l=i+s;a+=Math.abs(i)>=Math.abs(s)?i-l+s:s-l+i,i=l}i+a>=0!=!!t&&e.reverse()}var u=e.bz((function e(t,i){var a,n=t&&t.type;if("FeatureCollection"===n)for(a=0;a<t.features.length;a++)e(t.features[a],i);else if("GeometryCollection"===n)for(a=0;a<t.geometries.length;a++)e(t.geometries[a],i);else if("Feature"===n)e(t.geometry,i);else if("Polygon"===n)l(t.coordinates,i);else if("MultiPolygon"===n)for(a=0;a<t.coordinates.length;a++)l(t.coordinates[a],i);return t}));const h=e.bw.VectorTileFeature.prototype.toGeoJSON;var c={exports:{}},m=e.bA,p=e.bw.VectorTileFeature,f=_;function _(e,t){this.options=t||{},this.features=e,this.length=e.length}function g(e,t){this.id="number"==typeof e.id?e.id:void 0,this.type=e.type,this.rawGeometry=1===e.type?[e.geometry]:e.geometry,this.properties=e.tags,this.extent=t||4096}_.prototype.feature=function(e){return new g(this.features[e],this.options.extent)},g.prototype.loadGeometry=function(){var e=this.rawGeometry;this.geometry=[];for(var t=0;t<e.length;t++){for(var i=e[t],a=[],n=0;n<i.length;n++)a.push(new m(i[n][0],i[n][1]));this.geometry.push(a)}return this.geometry},g.prototype.bbox=function(){this.geometry||this.loadGeometry();for(var e=this.geometry,t=1/0,i=-1/0,a=1/0,n=-1/0,o=0;o<e.length;o++)for(var r=e[o],s=0;s<r.length;s++){var l=r[s];t=Math.min(t,l.x),i=Math.max(i,l.x),a=Math.min(a,l.y),n=Math.max(n,l.y)}return[t,a,i,n]},g.prototype.toGeoJSON=p.prototype.toGeoJSON;var y=e.bB,v=f;function w(e){var t=new y;return function(e,t){for(var i in e.layers)t.writeMessage(3,x,e.layers[i])}(e,t),t.finish()}function x(e,t){var i;t.writeVarintField(15,e.version||1),t.writeStringField(1,e.name||""),t.writeVarintField(5,e.extent||4096);var a={keys:[],values:[],keycache:{},valuecache:{}};for(i=0;i<e.length;i++)a.feature=e.feature(i),t.writeMessage(2,b,a);var n=a.keys;for(i=0;i<n.length;i++)t.writeStringField(3,n[i]);var o=a.values;for(i=0;i<o.length;i++)t.writeMessage(4,z,o[i])}function b(e,t){var i=e.feature;void 0!==i.id&&t.writeVarintField(1,i.id),t.writeMessage(2,k,e),t.writeVarintField(3,i.type),t.writeMessage(4,C,i)}
vendor: 6,121 bytes, line 5
5function k(e,t){var i=e.feature,a=e.keys,n=e.values,o=e.keycache,r=e.valuecache;for(var s in i.properties){var l=i.properties[s],d=o[s];if(null!==l){void 0===d&&(a.push(s),o[s]=d=a.length-1),t.writeVarint(d);var u=typeof l;"string"!==u&&"boolean"!==u&&"number"!==u&&(l=JSON.stringify(l));var h=u+":"+l,c=r[h];void 0===c&&(n.push(l),r[h]=c=n.length-1),t.writeVarint(c)}}}function S(e,t){return(t<<3)+(7&e)}function T(e){return e<<1^e>>31}function C(e,t){for(var i=e.loadGeometry(),a=e.type,n=0,o=0,r=i.length,s=0;s<r;s++){var l=i[s],d=1;1===a&&(d=l.length),t.writeVarint(S(1,d));for(var u=3===a?l.length-1:l.length,h=0;h<u;h++){1===h&&1!==a&&t.writeVarint(S(2,u-1));var c=l[h].x-n,m=l[h].y-o;t.writeVarint(T(c)),t.writeVarint(T(m)),n+=c,o+=m}3===a&&t.writeVarint(S(7,1))}}function z(e,t){var i=typeof e;"string"===i?t.writeStringField(1,e):"boolean"===i?t.writeBooleanField(7,e):"number"===i&&(e%1!=0?t.writeDoubleField(3,e):e<0?t.writeSVarintField(6,e):t.writeVarintField(5,e))}c.exports=w,c.exports.fromVectorTileJs=w,c.exports.fromGeojsonVt=function(e,t){t=t||{};var i={};for(var a in e)i[a]=new v(e[a].features,t),i[a].name=a,i[a].version=t.version,i[a].extent=t.extent;return w({layers:i})},c.exports.GeoJSONWrapper=v;var P=e.bz(c.exports);const M={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:e=>e},L=Math.fround||(A=new Float32Array(1),e=>(A[0]=+e,A[0]));var A;const I=3,E=5,D=6;class j{constructor(e){this.options=Object.assign(Object.create(M),e),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(e){const{log:t,minZoom:i,maxZoom:a}=this.options;t&&console.time("total time");const n=`prepare ${e.length} points`;t&&console.time(n),this.points=e;const o=[];for(let t=0;t<e.length;t++){const i=e[t];if(!i.geometry)continue;const[a,n]=i.geometry.coordinates,r=L(B(a)),s=L(F(n));o.push(r,s,1/0,t,-1,1),this.options.reduce&&o.push(0)}let r=this.trees[a+1]=this._createTree(o);t&&console.timeEnd(n);for(let e=a;e>=i;e--){const i=+Date.now();r=this.trees[e]=this._createTree(this._cluster(r,e)),t&&console.log("z%d: %d clusters in %dms",e,r.numItems,+Date.now()-i)}return t&&console.timeEnd("total time"),this}getClusters(e,t){let i=((e[0]+180)%360+360)%360-180;const a=Math.max(-90,Math.min(90,e[1]));let n=180===e[2]?180:((e[2]+180)%360+360)%360-180;const o=Math.max(-90,Math.min(90,e[3]));if(e[2]-e[0]>=360)i=-180,n=180;else if(i>n){const e=this.getClusters([i,a,180,o],t),r=this.getClusters([-180,a,n,o],t);return e.concat(r)}const r=this.trees[this._limitZoom(t)],s=r.range(B(i),F(o),B(n),F(a)),l=r.data,d=[];for(const e of s){const t=this.stride*e;d.push(l[t+E]>1?$(l,t,this.clusterProps):this.points[l[t+I]])}return d}getChildren(e){const t=this._getOriginId(e),i=this._getOriginZoom(e),a="No cluster with the specified id.",n=this.trees[i];if(!n)throw new Error(a);const o=n.data;if(t*this.stride>=o.length)throw new Error(a);const r=this.options.radius/(this.options.extent*Math.pow(2,i-1)),s=n.within(o[t*this.stride],o[t*this.stride+1],r),l=[];for(const t of s){const i=t*this.stride;o[i+4]===e&&l.push(o[i+E]>1?$(o,i,this.clusterProps):this.points[o[i+I]])}if(0===l.length)throw new Error(a);return l}getLeaves(e,t,i){const a=[];return this._appendLeaves(a,e,t=t||10,i=i||0,0),a}getTile(e,t,i){const a=this.trees[this._limitZoom(e)],n=Math.pow(2,e),{extent:o,radius:r}=this.options,s=r/o,l=(i-s)/n,d=(i+1+s)/n,u={features:[]};return this._addTileFeatures(a.range((t-s)/n,l,(t+1+s)/n,d),a.data,t,i,n,u),0===t&&this._addTileFeatures(a.range(1-s/n,l,1,d),a.data,n,i,n,u),t===n-1&&this._addTileFeatures(a.range(0,l,s/n,d),a.data,-1,i,n,u),u.features.length?u:null}getClusterExpansionZoom(e){let t=this._getOriginZoom(e)-1;for(;t<=this.options.maxZoom;){const i=this.getChildren(e);if(t++,1!==i.length)break;e=i[0].properties.cluster_id}return t}_appendLeaves(e,t,i,a,n){const o=this.getChildren(t);for(const t of o){const o=t.properties;if(o&&o.cluster?n+o.point_count<=a?n+=o.point_count:n=this._appendLeaves(e,o.cluster_id,i,a,n):n<a?n++:e.push(t),e.length===i)break}return n}_createTree(t){const i=new e.av(t.length/this.stride|0,this.options.nodeSize,Float32Array);for(let e=0;e<t.length;e+=this.stride)i.add(t[e],t[e+1]);return i.finish(),i.data=t,i}_addTileFeatures(e,t,i,a,n,o){for(const r of e){const e=r*this.stride,s=t[e+E]>1;let l,d,u;if(s)l=R(t,e,this.clusterProps),d=t[e],u=t[e+1];else{const i=this.points[t[e+I]];l=i.properties;const[a,n]=i.geometry.coordinates;d=B(a),u=F(n)}const h={type:1,geometry:[[Math.round(this.options.extent*(d*n-i)),Math.round(this.options.extent*(u*n-a))]],tags:l};let c;c=s||this.options.generateId?t[e+I]:this.points[t[e+I]].id,void 0!==c&&(h.id=c),o.features.push(h)}}_limitZoom(e){return Math.max(this.options.minZoom,Math.min(Math.floor(+e),this.options.maxZoom+1))}_cluster(e,t){const{radius:i,extent:a,reduce:n,minPoints:o}=this.options,r=i/(a*Math.pow(2,t)),s=e.data,l=[],d=this.stride;for(let i=0;i<s.length;i+=d){if(s[i+2]<=t)continue;s[i+2]=t;const a=s[i],u=s[i+1],h=e.within(s[i],s[i+1],r),c=s[i+E];let m=c;for(const e of h){const i=e*d;s[i+2]>t&&(m+=s[i+E])}if(m>c&&m>=o){let e,o=a*c,r=u*c,p=-1;const f=(i/d<<5)+(t+1)+this.points.length;for(const a of h){const l=a*d;if(s[l+2]<=t)continue;s[l+2]=t;const u=s[l+E];o+=s[l]*u,r+=s[l+1]*u,s[l+4]=f,n&&(e||(e=this._map(s,i,!0),p=this.clusterProps.length,this.clusterProps.push(e)),n(e,this._map(s,l)))}s[i+4]=f,l.push(o/m,r/m,1/0,f,-1,m),n&&l.push(p)}else{for(let e=0;e<d;e++)l.push(s[i+e]);if(m>1)for(const e of h){const i=e*d;if(!(s[i+2]<=t)){s[i+2]=t;for(let e=0;e<d;e++)l.push(s[i+e])}}}}return l}_getOriginId(e){return e-this.points.length>>5}_getOriginZoom(e){return(e-this.points.length)%32}_map(e,t,i){if(e[t+E]>1){const a=this.clusterProps[e[t+D]];return i?Object.assign({},a):a}const a=this.points[e[t+I]].properties,n=this.options.map(a);return i&&n===a?Object.assign({},n):n}}function $(e,t,i){return{type:"Feature",id:e[t+I],properties:R(e,t,i),geometry:{type:"Point",coordinates:[(a=e[t],360*(a-.5)),O(e[t+1])]}};var a}function R(e,t,i){const a=e[t+E],n=a>=1e4?`${Math.round(a/1e3)}
5k`:a>=1e3?Math.round(a/100)/10+"k":a,o=e[t+D],r=-1===o?{}:Object.assign({},i[o]);return Object.assign(r,{cluster:!0,cluster_id:e[t+I],point_count:a,point_count_abbreviated:n})}function B(e){return e/360+.5}function F(e){const t=Math.sin(e*Math.PI/180),i=.5-.25*Math.log((1+t)/(1-t))/Math.PI;return i<0?0:i>1?1:i}function O(e){const t=(180-360*e)*Math.PI/180;return 360*Math.atan(Math.exp(t))/Math.PI-90}function N(e,t,i,a){for(var n,o=a,r=i-t>>1,s=i-t,l=e[t],d=e[t+1],u=e[i],h=e[i+1],c=t+3;c<i;c+=3){var m=V(e[c],e[c+1],l,d,u,h);if(m>o)n=c,o=m;else if(m===o){var p=Math.abs(c-r);p<s&&(n=c,s=p)}}o>a&&(n-t>3&&N(e,t,n,a),e[n+2]=o,i-n>3&&N(e,n,i,a))}function V(e,t,i,a,n,o){var r=n-i,s=o-a;if(0!==r||0!==s){var l=((e-i)*r+(t-a)*s)/(r*r+s*s);l>1?(i=n,a=o):l>0&&(i+=r*l,a+=s*l)}return(r=e-i)*r+(s=t-a)*s}function U(e,t,i,a){var n={id:void 0===e?null:e,type:t,geometry:i,tags:a,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(e){var t=e.geometry,i=e.type;if("Point"===i||"MultiPoint"===i||"LineString"===i)Z(e,t);else if("Polygon"===i||"MultiLineString"===i)for(var a=0;a<t.length;a++)Z(e,t[a]);else if("MultiPolygon"===i)for(a=0;a<t.length;a++)for(var n=0;n<t[a].length;n++)Z(e,t[a][n])}(n),n}function Z(e,t){for(var i=0;i<t.length;i+=3)e.minX=Math.min(e.minX,t[i]),e.minY=Math.min(e.minY,t[i+1]),e.maxX=Math.max(e.maxX,t[i]),e.maxY=Math.max(e.maxY,t[i+1])}function q(e,t,i,a){if(t.geometry){var n=t.geometry.coordinates,o=t.geometry.type,r=Math.pow(i.tolerance/((1<<i.maxZoom)*i.extent),2),s=[],l=t.id;if(i.promoteId?l=t.properties[i.promoteId]:i.generateId&&(l=a||0),"Point"===o)G(n,s);else if("MultiPoint"===o)for(var d=0;d<n.length;d++)G(n[d],s);else if("LineString"===o)W(n,s,r,!1);else if("MultiLineString"===o){if(i.lineMetrics){for(d=0;d<n.length;d++)W(n[d],s=[],r,!1),e.push(U(l,"LineString",s,t.properties));return}H(n,s,r,!1)}else if("Polygon"===o)H(n,s,r,!0);else{if("MultiPolygon"!==o){if("GeometryCollection"===o){for(d=0;d<t.geometry.geometries.length;d++)q(e,{id:l,geometry:t.geometry.geometries[d],properties:t.properties},i,a);return}throw new Error("Input data is not a valid GeoJSON object.")}for(d=0;d<n.length;d++){var u=[];H(n[d],u,r,!0),s.push(u)}}e.push(U(l,o,s,t.properties))}}function G(e,t){t.push(K(e[0])),t.push(X(e[1])),t.push(0)}function W(e,t,i,a){for(var n,o,r=0,s=0;s<e.length;s++){var l=K(e[s][0]),d=X(e[s][1]);t.push(l),t.push(d),t.push(0),s>0&&(r+=a?(n*d-l*o)/2:Math.sqrt(Math.pow(l-n,2)+Math.pow(d-o,2))),n=l,o=d}var u=t.length-3;t[2]=1,N(t,0,u,i),t[u+2]=1,t.size=Math.abs(r),t.start=0,t.end=t.size}function H(e,t,i,a){for(var n=0;n<e.length;n++){var o=[];W(e[n],o,i,a),t.push(o)}}function K(e){return e/360+.5}function X(e){var t=Math.sin(e*Math.PI/180),i=.5-.25*Math.log((1+t)/(1-t))/Math.PI;return i<0?0:i>1?1:i}function J(e,t,i,a,n,o,r,s){if(a/=t,o>=(i/=t)&&r<a)return e;if(r<i||o>=a)return null;for(var l=[],d=0;d<e.length;d++){var u=e[d],h=u.geometry,c=u.type,m=0===n?u.minX:u.minY,p=0===n?u.maxX:u.maxY;if(m>=i&&p<a)l.push(u);else if(!(p<i||m>=a)){var f=[];if("Point"===c||"MultiPoint"===c)Y(h,f,i,a,n);else if("LineString"===c)Q(h,f,i,a,n,!1,s.lineMetrics);else if("MultiLineString"===c)te(h,f,i,a,n,!1);else if("Polygon"===c)te(h,f,i,a,n,!0);else if("MultiPolygon"===c)for(var _=0;_<h.length;_++){var g=[];te(h[_],g,i,a,n,!0),g.length&&f.push(g)}if(f.length){if(s.lineMetrics&&"LineString"===c){for(_=0;_<f.length;_++)l.push(U(u.id,c,f[_],u.tags));continue}"LineString"!==c&&"MultiLineString"!==c||(1===f.length?(c="LineString",f=f[0]):c="MultiLineString"),"Point"!==c&&"MultiPoint"!==c||(c=3===f.length?"Point":"MultiPoint"),l.push(U(u.id,c,f,u.tags))}}}return l.length?l:null}function Y(e,t,i,a,n){for(var o=0;o<e.length;o+=3){var r=e[o+n];r>=i&&r<=a&&(t.push(e[o]),t.push(e[o+1]),t.push(e[o+2]))}}function Q(e,t,i,a,n,o,r){for(var s,l,d=ee(e),u=0===n?ae:ne,h=e.start,c=0;c<e.length-3;c+=3){var m=e[c],p=e[c+1],f=e[c+2],_=e[c+3],g=e[c+4],y=0===n?m:p,v=0===n?_:g,w=!1;r&&(s=Math.sqrt(Math.pow(m-_,2)+Math.pow(p-g,2))),y<i?v>i&&(l=u(d,m,p,_,g,i),r&&(d.start=h+s*l)):y>a?v<a&&(l=u(d,m,p,_,g,a),r&&(d.start=h+s*l)):ie(d,m,p,f),v<i&&y>=i&&(l=u(d,m,p,_,g,i),w=!0),v>
vendor: 4,593 bytes, line 5
5a&&y<=a&&(l=u(d,m,p,_,g,a),w=!0),!o&&w&&(r&&(d.end=h+s*l),t.push(d),d=ee(e)),r&&(h+=s)}var x=e.length-3;m=e[x],p=e[x+1],f=e[x+2],(y=0===n?m:p)>=i&&y<=a&&ie(d,m,p,f),x=d.length-3,o&&x>=3&&(d[x]!==d[0]||d[x+1]!==d[1])&&ie(d,d[0],d[1],d[2]),d.length&&t.push(d)}function ee(e){var t=[];return t.size=e.size,t.start=e.start,t.end=e.end,t}function te(e,t,i,a,n,o){for(var r=0;r<e.length;r++)Q(e[r],t,i,a,n,o,!1)}function ie(e,t,i,a){e.push(t),e.push(i),e.push(a)}function ae(e,t,i,a,n,o){var r=(o-t)/(a-t);return e.push(o),e.push(i+(n-i)*r),e.push(1),r}function ne(e,t,i,a,n,o){var r=(o-i)/(n-i);return e.push(t+(a-t)*r),e.push(o),e.push(1),r}function oe(e,t){for(var i=[],a=0;a<e.length;a++){var n,o=e[a],r=o.type;if("Point"===r||"MultiPoint"===r||"LineString"===r)n=re(o.geometry,t);else if("MultiLineString"===r||"Polygon"===r){n=[];for(var s=0;s<o.geometry.length;s++)n.push(re(o.geometry[s],t))}else if("MultiPolygon"===r)for(n=[],s=0;s<o.geometry.length;s++){for(var l=[],d=0;d<o.geometry[s].length;d++)l.push(re(o.geometry[s][d],t));n.push(l)}i.push(U(o.id,r,n,o.tags))}return i}function re(e,t){var i=[];i.size=e.size,void 0!==e.start&&(i.start=e.start,i.end=e.end);for(var a=0;a<e.length;a+=3)i.push(e[a]+t,e[a+1],e[a+2]);return i}function se(e,t){if(e.transformed)return e;var i,a,n,o=1<<e.z,r=e.x,s=e.y;for(i=0;i<e.features.length;i++){var l=e.features[i],d=l.geometry,u=l.type;if(l.geometry=[],1===u)for(a=0;a<d.length;a+=2)l.geometry.push(le(d[a],d[a+1],t,o,r,s));else for(a=0;a<d.length;a++){var h=[];for(n=0;n<d[a].length;n+=2)h.push(le(d[a][n],d[a][n+1],t,o,r,s));l.geometry.push(h)}}return e.transformed=!0,e}function le(e,t,i,a,n,o){return[Math.round(i*(e*a-n)),Math.round(i*(t*a-o))]}function de(e,t,i,a,n){for(var o=t===n.maxZoom?0:n.tolerance/((1<<t)*n.extent),r={features:[],numPoints:0,numSimplified:0,numFeatures:0,source:null,x:i,y:a,z:t,transformed:!1,minX:2,minY:1,maxX:-1,maxY:0},s=0;s<e.length;s++){r.numFeatures++,ue(r,e[s],o,n);var l=e[s].minX,d=e[s].minY,u=e[s].maxX,h=e[s].maxY;l<r.minX&&(r.minX=l),d<r.minY&&(r.minY=d),u>r.maxX&&(r.maxX=u),h>r.maxY&&(r.maxY=h)}return r}function ue(e,t,i,a){var n=t.geometry,o=t.type,r=[];if("Point"===o||"MultiPoint"===o)for(var s=0;s<n.length;s+=3)r.push(n[s]),r.push(n[s+1]),e.numPoints++,e.numSimplified++;else if("LineString"===o)he(r,n,e,i,!1,!1);else if("MultiLineString"===o||"Polygon"===o)for(s=0;s<n.length;s++)he(r,n[s],e,i,"Polygon"===o,0===s);else if("MultiPolygon"===o)for(var l=0;l<n.length;l++){var d=n[l];for(s=0;s<d.length;s++)he(r,d[s],e,i,!0,0===s)}if(r.length){var u=t.tags||null;if("LineString"===o&&a.lineMetrics){for(var h in u={},t.tags)u[h]=t.tags[h];u.mapbox_clip_start=n.start/n.size,u.mapbox_clip_end=n.end/n.size}var c={geometry:r,type:"Polygon"===o||"MultiPolygon"===o?3:"LineString"===o||"MultiLineString"===o?2:1,tags:u};null!==t.id&&(c.id=t.id),e.features.push(c)}}function he(e,t,i,a,n,o){var r=a*a;if(a>0&&t.size<(n?r:a))i.numPoints+=t.length/3;else{for(var s=[],l=0;l<t.length;l+=3)(0===a||t[l+2]>r)&&(i.numSimplified++,s.push(t[l]),s.push(t[l+1])),i.numPoints++;n&&function(e,t){for(var i=0,a=0,n=e.length,o=n-2;a<n;o=a,a+=2)i+=(e[a]-e[o])*(e[a+1]+e[o+1]);if(i>0===t)for(a=0,n=e.length;a<n/2;a+=2){var r=e[a],s=e[a+1];e[a]=e[n-2-a],e[a+1]=e[n-1-a],e[n-2-a]=r,e[n-1-a]=s}}(s,o),e.push(s)}}function ce(e,t){var i=(t=this.options=function(e,t){for(var i in t)e[i]=t[i];return e}(Object.create(this.options),t)).debug;if(i&&console.time("preprocess data"),t.maxZoom<0||t.maxZoom>24)throw new Error("maxZoom should be in the 0-24 range");if(t.promoteId&&t.generateId)throw new Error("promoteId and generateId cannot be used together.");var a=function(e,t){var i=[];if("FeatureCollection"===e.type)for(var a=0;a<e.features.length;a++)q(i,e.features[a],t,a);else q(i,"Feature"===e.type?e:{geometry:e},t);return i}(e,t);this.tiles={},this.tileCoords=[],i&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",t.indexMaxZoom,t.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),a=function(e,t){var i=t.buffer/t.extent,a=e,n=J(e,1,-1-i,i,0,-1,2,t),o=J(e,1,1-i,2+i,0,-1,2,t);return(n||o)&&(a=J(e,1,-i,1+i,0,-1,2,t)||[],n&&(a=oe(n,1).concat(a)),o&&(a=a.concat(oe(o,-1)))),a}(a,t),a.length&&this.splitTile(a,0,0,0),i&&(a.length&&console.log("features: %d, points: %d",this.tiles[0].numFeatures,this.tiles[0].numPoints),console.timeEnd("generate tiles"),console.log("tiles generated:",this.total,JSON.stringify(this.stats)))}function me(e,t,i){return 32*((1<<e)*i+t)+e}function pe(e,t){return t?e.properties[t]:e.id}function fe(e,t){if(null==e)return!0;
5if("Feature"===e.type)return null!=pe(e,t);if("FeatureCollection"===e.type){const i=new Set;for(const a of e.features){const e=pe(a,t);if(null==e)return!1;if(i.has(e))return!1;i.add(e)}return!0}return!1}function _e(e,t){const i=new Map;if(null==e);else if("Feature"===e.type)i.set(pe(e,t),e);else for(const a of e.features)i.set(pe(a,t),a);return i}ce.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},ce.prototype.splitTile=function(e,t,i,a,n,o,r){for(var s=[e,t,i,a],l=this.options,d=l.debug;s.length;){a=s.pop(),i=s.pop(),t=s.pop(),e=s.pop();var u=1<<t,h=me(t,i,a),c=this.tiles[h];if(!c&&(d>1&&console.time("creation"),c=this.tiles[h]=de(e,t,i,a,l),this.tileCoords.push({z:t,x:i,y:a}),d)){d>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",t,i,a,c.numFeatures,c.numPoints,c.numSimplified),console.timeEnd("creation"));var m="z"+t;this.stats[m]=(this.stats[m]||0)+1,this.total++}if(c.source=e,n){if(t===l.maxZoom||t===n)continue;var p=1<<n-t;if(i!==Math.floor(o/p)||a!==Math.floor(r/p))continue}else if(t===l.indexMaxZoom||c.numPoints<=l.indexMaxPoints)continue;if(c.source=null,0!==e.length){d>1&&console.time("clipping");var f,_,g,y,v,w,x=.5*l.buffer/l.extent,b=.5-x,k=.5+x,S=1+x;f=_=g=y=null,v=J(e,u,i-x,i+k,0,c.minX,c.maxX,l),w=J(e,u,i+b,i+S,0,c.minX,c.maxX,l),e=null,v&&(f=J(v,u,a-x,a+k,1,c.minY,c.maxY,l),_=J(v,u,a+b,a+S,1,c.minY,c.maxY,l),v=null),w&&(g=J(w,u,a-x,a+k,1,c.minY,c.maxY,l),y=J(w,u,a+b,a+S,1,c.minY,c.maxY,l),w=null),d>1&&console.timeEnd("clipping"),s.push(f||[],t+1,2*i,2*a),s.push(_||[],t+1,2*i,2*a+1),s.push(g||[],t+1,2*i+1,2*a),s.push(y||[],t+1,2*i+1,2*a+1)}}},ce.prototype.getTile=function(e,t,i){var a=this.options,n=a.extent,o=a.debug;if(e<0||e>24)return null;var r=1<<e,s=me(e,t=(t%r+r)%r,i);if(this.tiles[s])return se(this.tiles[s],n);o>1&&console.log("drilling down to z%d-%d-%d",e,t,i);for(var l,d=e,u=t,h=i;!l&&d>0;)d--,u=Math.floor(u/2),h=Math.floor(h/2),l=this.tiles[me(d,u,h)];return l&&l.source?(o>1&&console.log("found parent tile z%d-%d-%d",d,u,h),o>1&&console.time("drilling down"),this.splitTile(l.source,d,u,h,e,t,i),o>1&&console.timeEnd("drilling down"),this.tiles[s]?se(this.tiles[s],n):null):null};class ge extends r{constructor(t,i,a,n){super(t,i,a),this._dataUpdateable=new Map,this.loadGeoJSON=(t,i)=>{const{promoteId:a}=t;if(t.request)return e.f(t.request,((e,t,n,o)=>{this._dataUpdateable=fe(t,a)?_e(t,a):void 0,i(e,t,n,o)}));if("string"==typeof t.data)try{const e=JSON.parse(t.data);this._dataUpdateable=fe(e,a)?_e(e,a):void 0,i(null,e)}catch(e){i(new Error(`Input data given to '${t.source}' is not a valid GeoJSON object.`))}else t.dataDiff?this._dataUpdateable?(function(e,t,i){var a,n,o,r;if(t.removeAll&&e.clear(),t.remove)for(const i of t.remove)e.delete(i);if(t.add)for(const a of t.add){const t=pe(a,i);null!=t&&e.set(t,a)}if(t.update)for(const i of t.update){let t=e.get(i.id);if(null==t)continue;const s=!i.removeAllProperties&&((null===(a=i.removeProperties)||void 0===a?void 0:a.length)>0||(null===(n=i.addOrUpdateProperties)||void 0===n?void 0:n.length)>0);if((i.newGeometry||i.removeAllProperties||s)&&(t=Object.assign({},t),e.set(i.id,t),s&&(t.properties=Object.assign({},t.properties))),i.newGeometry&&(t.geometry=i.newGeometry),i.removeAllProperties)t.properties={};else if((null===(o=i.removeProperties)||void 0===o?void 0:o.length)>0)for(const e of i.removeProperties)Object.prototype.hasOwnProperty.call(t.properties,e)&&delete t.properties[e];if((null===(r=i.addOrUpdateProperties)||void 0===r?void 0:r.length)>0)for(const{key:e,value:a}of i.addOrUpdateProperties)t.properties[e]=a}}(this._dataUpdateable,t.dataDiff,a),i(null,{type:"FeatureCollection",features:Array.from(this._dataUpdateable.values())})):i(new Error(`Cannot update existing geojson data in ${t.source}`)):i(new Error(`Input data given to '${t.source}' is not a valid GeoJSON object.`));return{cancel:()=>{}}},this.loadVectorData=this.loadGeoJSONTile,n&&(this.loadGeoJSON=n)}loadGeoJSONTile(t,i){const a=t.tileID.canonical;if(!this._geoJSONIndex)return i(null,null);const n=this._geoJSONIndex.getTile(a.z,a.x,a.y);if(!n)return i(null,null);const o=new class{constructor(t){this.layers={_geojsonTileLayer:this},this.name="_geojsonTileLayer",this.extent=e.N,this.length=t.length,this._features=t}feature(t){return new class{constructor(t){this._feature=t,this.extent=e.N,this.type=t.type,this.properties=t.tags,"id"in t&&!isNaN(t.id)&&(this.id=p
vendor: 4,682 bytes, line 5
5arseInt(t.id,10))}loadGeometry(){if(1===this._feature.type){const t=[];for(const i of this._feature.geometry)t.push([new e.P(i[0],i[1])]);return t}{const t=[];for(const i of this._feature.geometry){const a=[];for(const t of i)a.push(new e.P(t[0],t[1]));t.push(a)}return t}}toGeoJSON(e,t,i){return h.call(this,e,t,i)}}(this._features[t])}}(n.features);let r=P(o);0===r.byteOffset&&r.byteLength===r.buffer.byteLength||(r=new Uint8Array(r)),i(null,{vectorTile:o,rawData:r.buffer})}loadData(t,i){var a;null===(a=this._pendingRequest)||void 0===a||a.cancel(),this._pendingCallback&&this._pendingCallback(null,{abandoned:!0});const n=!!(t&&t.request&&t.request.collectResourceTiming)&&new e.bu(t.request);this._pendingCallback=i,this._pendingRequest=this.loadGeoJSON(t,((a,o)=>{if(delete this._pendingCallback,delete this._pendingRequest,a||!o)return i(a);if("object"!=typeof o)return i(new Error(`Input data given to '${t.source}' is not a valid GeoJSON object.`));{u(o,!0);try{if(t.filter){const i=e.bC(t.filter,{type:"boolean","property-type":"data-driven",overridable:!1,transition:!1});if("error"===i.result)throw new Error(i.value.map((e=>`${e.key}: ${e.message}`)).join(", "));const a=o.features.filter((e=>i.value.evaluate({zoom:0},e)));o={type:"FeatureCollection",features:a}}this._geoJSONIndex=t.cluster?new j(function({superclusterOptions:t,clusterProperties:i}){if(!i||!t)return t;const a={},n={},o={accumulated:null,zoom:0},r={properties:null},s=Object.keys(i);for(const t of s){const[o,r]=i[t],s=e.bC(r),l=e.bC("string"==typeof o?[o,["accumulated"],["get",t]]:o);a[t]=s.value,n[t]=l.value}return t.map=e=>{r.properties=e;const t={};for(const e of s)t[e]=a[e].evaluate(o,r);return t},t.reduce=(e,t)=>{r.properties=t;for(const t of s)o.accumulated=e[t],e[t]=n[t].evaluate(o,r)},t}(t)).load(o.features):function(e,t){return new ce(e,t)}(o,t.geojsonVtOptions)}catch(a){return i(a)}this.loaded={};const r={};if(n){const e=n.finish();e&&(r.resourceTiming={},r.resourceTiming[t.source]=JSON.parse(JSON.stringify(e)))}i(null,r)}}))}reloadTile(e,t){const i=this.loaded;return i&&i[e.uid]?super.reloadTile(e,t):this.loadTile(e,t)}removeSource(e,t){this._pendingCallback&&this._pendingCallback(null,{abandoned:!0}),t()}getClusterExpansionZoom(e,t){try{t(null,this._geoJSONIndex.getClusterExpansionZoom(e.clusterId))}catch(e){t(e)}}getClusterChildren(e,t){try{t(null,this._geoJSONIndex.getChildren(e.clusterId))}catch(e){t(e)}}getClusterLeaves(e,t){try{t(null,this._geoJSONIndex.getLeaves(e.clusterId,e.limit,e.offset))}catch(e){t(e)}}}class ye{constructor(t){this.self=t,this.actor=new e.C(t,this),this.layerIndexes={},this.availableImages={},this.workerSourceTypes={vector:r,geojson:ge},this.workerSources={},this.demWorkerSources={},this.self.registerWorkerSource=(e,t)=>{if(this.workerSourceTypes[e])throw new Error(`Worker source with name "${e}" already registered.`);this.workerSourceTypes[e]=t},this.self.registerRTLTextPlugin=t=>{if(e.bD.isParsed())throw new Error("RTL text plugin already registered.");e.bD.applyArabicShaping=t.applyArabicShaping,e.bD.processBidirectionalText=t.processBidirectionalText,e.bD.processStyledBidirectionalText=t.processStyledBidirectionalText}}setReferrer(e,t){this.referrer=t}setImages(e,t,i){this.availableImages[e]=t;for(const i in this.workerSources[e]){const a=this.workerSources[e][i];for(const e in a)a[e].availableImages=t}i()}setLayers(e,t,i){this.getLayerIndex(e).replace(t),i()}updateLayers(e,t,i){this.getLayerIndex(e).update(t.layers,t.removedIds),i()}loadTile(e,t,i){this.getWorkerSource(e,t.type,t.source).loadTile(t,i)}loadDEMTile(e,t,i){this.getDEMWorkerSource(e,t.source).loadTile(t,i)}reloadTile(e,t,i){this.getWorkerSource(e,t.type,t.source).reloadTile(t,i)}abortTile(e,t,i){this.getWorkerSource(e,t.type,t.source).abortTile(t,i)}removeTile(e,t,i){this.getWorkerSource(e,t.type,t.source).removeTile(t,i)}removeDEMTile(e,t){this.getDEMWorkerSource(e,t.source).removeTile(t)}removeSource(e,t,i){if(!this.workerSources[e]||!this.workerSources[e][t.type]||!this.workerSources[e][t.type][t.source])return;const a=this.workerSources[e][t.type][t.source];delete this.workerSources[e][t.type][t.source],void 0!==a.removeSource?a.removeSource(t,i):i()}loadWorkerSource(e,t,i){try{this.self.importScripts(t.url),i()}catch(e){i(e.toString())}}syncRTLPluginState(t,i,a){try{e.bD.setState(i);const t=e.bD.getPluginURL();if(e.bD.isLoaded()&&!e.bD.isParsed()&&null!=t){this.self.importScripts(t);const i=e.bD.isParsed();a(i?void 0:new Error(`RTL Text Plugin failed to import scripts from ${t}`),i)}}catch(e){a(e.toString())}}getAvailableImages(e){let t=this.availableImages[e];return t||(t=[]),t}getLayerIndex(e){let i=this.layerIndexes[e];
5return i||(i=this.layerIndexes[e]=new t),i}getWorkerSource(e,t,i){return this.workerSources[e]||(this.workerSources[e]={}),this.workerSources[e][t]||(this.workerSources[e][t]={}),this.workerSources[e][t][i]||(this.workerSources[e][t][i]=new this.workerSourceTypes[t]({send:(t,i,a)=>{this.actor.send(t,i,a,e)}},this.getLayerIndex(e),this.getAvailableImages(e))),this.workerSources[e][t][i]}getDEMWorkerSource(e,t){return this.demWorkerSources[e]||(this.demWorkerSources[e]={}),this.demWorkerSources[e][t]||(this.demWorkerSources[e][t]=new s),this.demWorkerSources[e][t]}}return e.i()&&(self.worker=new ye(self)),ye})),a(0,(function(e){var t="3.6.2";class i{static testProp(e){if(!i.docStyle)return e[0];for(let t=0;t<e.length;t++)if(e[t]in i.docStyle)return e[t];return e[0]}static create(e,t,i){const a=window.document.createElement(e);return void 0!==t&&(a.className=t),i&&i.appendChild(a),a}static createNS(e,t){return window.document.createElementNS(e,t)}static disableDrag(){i.docStyle&&i.selectProp&&(i.userSelect=i.docStyle[i.selectProp],i.docStyle[i.selectProp]="none")}static enableDrag(){i.docStyle&&i.selectProp&&(i.docStyle[i.selectProp]=i.userSelect)}static setTransform(e,t){e.style[i.transformProp]=t}static addEventListener(e,t,i,a={}){e.addEventListener(t,i,"passive"in a?a:a.capture)}static removeEventListener(e,t,i,a={}){e.removeEventListener(t,i,"passive"in a?a:a.capture)}static suppressClickInternal(e){e.preventDefault(),e.stopPropagation(),window.removeEventListener("click",i.suppressClickInternal,!0)}static suppressClick(){window.addEventListener("click",i.suppressClickInternal,!0),window.setTimeout((()=>{window.removeEventListener("click",i.suppressClickInternal,!0)}),0)}static mousePos(t,i){const a=t.getBoundingClientRect();return new e.P(i.clientX-a.left-t.clientLeft,i.clientY-a.top-t.clientTop)}static touchPos(t,i){const a=t.getBoundingClientRect(),n=[];for(let o=0;o<i.length;o++)n.push(new e.P(i[o].clientX-a.left-t.clientLeft,i[o].clientY-a.top-t.clientTop));return n}static mouseButton(e){return e.button}static remove(e){e.parentNode&&e.parentNode.removeChild(e)}}i.docStyle="undefined"!=typeof window&&window.document&&window.document.documentElement.style,i.selectProp=i.testProp(["userSelect","MozUserSelect","WebkitUserSelect","msUserSelect"]),i.transformProp=i.testProp(["transform","WebkitTransform"]);const a={supported:!1,testSupport:function(e){!r&&o&&(s?l(e):n=e)}};let n,o,r=!1,s=!1;function l(e){const t=e.createTexture();e.bindTexture(e.TEXTURE_2D,t);try{if(e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,o),e.isContextLost())return;a.supported=!0}
5catch(e){}e.deleteTexture(t),r=!0}var d,u;"undefined"!=typeof document&&(o=document.createElement("img"),o.onload=function(){n&&l(n),n=null,s=!0},o.onerror=function(){r=!0,n=null},o.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA="),function(t){let i,n,o,r;t.resetRequestQueue=()=>{i=[],n=0,o=0,r={}},t.addThrottleControl=e=>{const t=o++;return r[t]=e,t},t.removeThrottleControl=e=>{delete r[e],d()},t.getImage=(e,t,o=!0)=>{a.supported&&(e.headers||(e.headers={}),e.headers.accept="image/webp,*/*");const r={requestParameters:e,supportImageRefresh:o,callback:t,cancelled:!1,completed:!1,cancel:()=>{r.completed||r.cancelled||(r.cancelled=!0,r.innerRequest&&(r.innerRequest.cancel(),n--),d())}};return i.push(r),d(),r};const s=t=>{const{requestParameters:i,supportImageRefresh:a,callback:n}=t;return e.e(i,{type:"image"}),(!1!==a||e.i()||e.g(i.url)||i.headers&&!Object.keys(i.headers).reduce(((e,t)=>e&&"accept"===t),!0)?e.m:u)(i,((e,i,a,o)=>{l(t,n,e,i,a,o)}))},l=(t,i,a,o,r,s)=>{a?i(a):o instanceof HTMLImageElement||e.a(o)?i(null,o):o&&((t,i)=>{"function"==typeof createImageBitmap?e.b(t,i):e.d(t,i)})(o,((e,t)=>{null!=e?i(e):null!=t&&i(null,t,{cacheControl:r,expires:s})})),t.cancelled||(t.completed=!0,n--,d())},d=()=>{const t=(()=>{const e=Object.keys(r);let t=!1;if(e.length>0)for(const i of e)if(t=r[i](),t)break;return t})()?e.c.MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME:e.c.MAX_PARALLEL_IMAGE_REQUESTS;for(let e=n;e<t&&i.length>0;e++){const t=i.shift();if(t.cancelled){e--;continue}const a=s(t);n++,t.innerRequest=a}},u=(t,i)=>{const a=new Image,n=t.url;let o=!1;const r=t.credentials;return r&&"include"===r?a.crossOrigin="use-credentials":(r&&"same-origin"===r||!e.s(n))&&(a.crossOrigin="anonymous"),a.fetchPriority="high",a.onload=()=>{i(null,a),a.onerror=a.onload=null},a.onerror=()=>{o||i(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.")),a.onerror=a.onload=null},a.src=n,{cancel:()=>{o=!0,a.src=""}}}}(d||(d={})),d.resetRequestQueue(),function(e){e.Glyphs="Glyphs",e.Image="Image",e.Source="Source",e.SpriteImage="SpriteImage",e.SpriteJSON="SpriteJSON",e.Style="Style",e.Tile="Tile",e.Unknown="Unknown"}(u||(u={}));class h{constructor(e){this._transformRequestFn=e}transformRequest(e,t){return this._transformRequestFn&&this._transformRequestFn(e,t)||{url:e}}normalizeSpriteURL(e,t,i){const a=function(e){const t=e.match(c);if(!t)throw new Error(`Unable to parse URL "${e}"`);return{protocol:t[1],authority:t[2],path:t[3]||"/",params:t[4]?t[4].split("&"):[]}}(e);return a.path+=`${t}${i}`,function(e){const t=e.params.length?`?${e.params.join("&")}`:"";return`${e.protocol}://${e.authority}${e.path}${t}`}(a)}setTransformRequest(e){this._transformRequestFn=e}}const c=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function m(t){var i=new e.A(3);return i[0]=t[0],i[1]=t[1],i[2]=t[2],i}var p,f=function(e,t,i){return e[0]=t[0]-i[0],e[1]=t[1]-i[1],e[2]=t[2]-i[2],e};p=new e.A(3),e.A!=Float32Array&&(p[0]=0,p[1]=0,p[2]=0);var _=function(e){var t=e[0],i=e[1];return t*t+i*i};function g(e){const t=[];if("string"==typeof e)t.push({id:"default",url:e});else if(e&&e.length>0){const i=[];for(const{id:a,url:n}of e){const e=`${a}${n}`;-1===i.indexOf(e)&&(i.push(e),t.push({id:a,url:n}))}}return t}function y(t,i,a,n,o){if(n)return void t(n);if(o!==Object.values(i).length||o!==Object.values(a).length)return;const r={};for(const t in i){r[t]={};const n=e.h.getImageCanvasContext(a[t]),o=i[t];for(const e in o){const{width:i,height:a,x:s,y:l,sdf:d,pixelRatio:u,stretchX:h,stretchY:c,content:m}=o[e];r[t][e]={data:null,pixelRatio:u,sdf:d,stretchX:h,stretchY:c,content:m,spriteData:{width:i,height:a,x:s,y:l,context:n}}}}t(null,r)}!function(){var t=new e.A(2);e.A!=Float32Array&&(t[0]=0,t[1]=0)}();class v{constructor(e,t,i,a){this.context=e,this.format=i,this.texture=e.gl.createTexture(),this.update(t,a)}update(t,i,a){const{width:n,height:o}=t,r=!(this.size&&this.size[0]===n&&this.size[1]===o||a),{context:s}=this,{gl:l}=s;if(this.useMipmap=Boolean(i&&i.useMipmap),l.bindTexture(l.TEXTURE_2D,this.texture),s.pixelStoreUnpackFlipY.set(!1),s.pixelStoreUnpack.set(1),s.pixelStoreUnpackPremultiplyAlpha.set(this.format===l.RGBA&&(!i||!1!==i.premultiply)),r)this.size=[n,o],t instanceof HTMLImageElement||t instanceof HTMLCanvasElement||t instanceof HTMLVideoElement||t instanceof ImageData||e.a(t)?l.texImage2D(l.TEXTURE_2D,0,this.format,this.format,l.UNSIGNED_BYTE,t):l.texImage2D(l.TEXTURE_2D,0,this.format,n,o,0,this.format,l.UNSIGNED_BYTE,t.data);else{const{x:i,y:r}=a||{x:0,y:0};t instanceof HTMLImageElement||t instanceof HTMLCanvasElement||t instanceof HTMLVideoElement||t instanceof ImageData||e.a(t)?l.texSubImage2D(l.TEXTURE_2D,0,i,r,l.RGBA,l.UNSIGNED_BYTE,t):l.texSubImage2D(l.TEXTURE_2D,0,i,r,n,o,l.RGBA,l.UNSIGNED_BYTE,t.data)}this.useMipmap&&this.isSizePowerOfTwo()&&l.generateMipmap(l.TEXTURE_2D)}bind(e,t,i){const{context:a}=this,{gl:n}=a;n.bindTexture(n.TEXTURE_2D,this.texture),i!==n.LINEAR_MIPMAP_NEAREST||this.isSizePowerOfTwo()||(i=n.LINEAR),e!==this.filter&&(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,e),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,i||e),this.filter=e),t!==this.wrap&&(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,t),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,t),this.wrap=t)}isSizePowerOfTwo(){return this.size[0]===this.size[1]&&Math.log(this.size[0])/Math.LN2%1==0}destroy(){const{gl:e}=this.context;e.deleteTexture(this.texture),this.texture=null}}function w(e){const{userImage:t}=e;return!!(t&&t.render&&t.render())&&(e.data.replace(new Uint8Array(t.data.buffer)),!0)}class x extends e.E{constructor(){super(),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new e.R({width:1,height:1}),this.dirty=!0}isLoaded(){return this.loaded}setLoaded(e){if(this.loaded!==e&&(this.loaded=e,e)){for(const{ids:e,callback:t}of this.requestors)this._notify(e,t);this.requestors=[]}}getImage(t){const i=this.images[t];if(i&&!i.data&&i.spriteData){const t=i.spriteData;i.data=new e.R({width:t.width,height:t.height},t.context.getImageData(t.x,t.y,t.width,t.height).data),i.spriteData=null}return i}addImage(e,t){if(this.images[e])throw new Error(`Image id ${e} already exist, use updateImage instead`);
vendor: 14,166 bytes, line 5
5this._validate(e,t)&&(this.images[e]=t)}_validate(t,i){let a=!0;const n=i.data||i.spriteData;return this._validateStretch(i.stretchX,n&&n.width)||(this.fire(new e.j(new Error(`Image "${t}" has invalid "stretchX" value`))),a=!1),this._validateStretch(i.stretchY,n&&n.height)||(this.fire(new e.j(new Error(`Image "${t}" has invalid "stretchY" value`))),a=!1),this._validateContent(i.content,i)||(this.fire(new e.j(new Error(`Image "${t}" has invalid "content" value`))),a=!1),a}_validateStretch(e,t){if(!e)return!0;let i=0;for(const a of e){if(a[0]<i||a[1]<a[0]||t<a[1])return!1;i=a[1]}return!0}_validateContent(e,t){if(!e)return!0;if(4!==e.length)return!1;const i=t.spriteData,a=i&&i.width||t.data.width,n=i&&i.height||t.data.height;return!(e[0]<0||a<e[0]||e[1]<0||n<e[1]||e[2]<0||a<e[2]||e[3]<0||n<e[3]||e[2]<e[0]||e[3]<e[1])}updateImage(e,t,i=!0){const a=this.getImage(e);if(i&&(a.data.width!==t.data.width||a.data.height!==t.data.height))throw new Error(`size mismatch between old image (${a.data.width}x${a.data.height}) and new image (${t.data.width}x${t.data.height}).`);t.version=a.version+1,this.images[e]=t,this.updatedImages[e]=!0}removeImage(e){const t=this.images[e];delete this.images[e],delete this.patterns[e],t.userImage&&t.userImage.onRemove&&t.userImage.onRemove()}listImages(){return Object.keys(this.images)}getImages(e,t){let i=!0;if(!this.isLoaded())for(const t of e)this.images[t]||(i=!1);this.isLoaded()||i?this._notify(e,t):this.requestors.push({ids:e,callback:t})}_notify(t,i){const a={};for(const i of t){let t=this.getImage(i);t||(this.fire(new e.k("styleimagemissing",{id:i})),t=this.getImage(i)),t?a[i]={data:t.data.clone(),pixelRatio:t.pixelRatio,sdf:t.sdf,version:t.version,stretchX:t.stretchX,stretchY:t.stretchY,content:t.content,hasRenderCallback:Boolean(t.userImage&&t.userImage.render)}:e.w(`Image "${i}" 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.`)}i(null,a)}getPixelSize(){const{width:e,height:t}=this.atlasImage;return{width:e,height:t}}getPattern(t){const i=this.patterns[t],a=this.getImage(t);if(!a)return null;if(i&&i.position.version===a.version)return i.position;if(i)i.position.version=a.version;else{const i={w:a.data.width+2,h:a.data.height+2,x:0,y:0},n=new e.I(i,a);this.patterns[t]={bin:i,position:n}}return this._updatePatternAtlas(),this.patterns[t].position}bind(e){const t=e.gl;this.atlasTexture?this.dirty&&(this.atlasTexture.update(this.atlasImage),this.dirty=!1):this.atlasTexture=new v(e,this.atlasImage,t.RGBA),this.atlasTexture.bind(t.LINEAR,t.CLAMP_TO_EDGE)}_updatePatternAtlas(){const t=[];for(const e in this.patterns)t.push(this.patterns[e].bin);const{w:i,h:a}=e.p(t),n=this.atlasImage;n.resize({width:i||1,height:a||1});for(const t in this.patterns){const{bin:i}=this.patterns[t],a=i.x+1,o=i.y+1,r=this.getImage(t).data,s=r.width,l=r.height;e.R.copy(r,n,{x:0,y:0},{x:a,y:o},{width:s,height:l}),e.R.copy(r,n,{x:0,y:l-1},{x:a,y:o-1},{width:s,height:1}),e.R.copy(r,n,{x:0,y:0},{x:a,y:o+l},{width:s,height:1}),e.R.copy(r,n,{x:s-1,y:0},{x:a-1,y:o},{width:1,height:l}),e.R.copy(r,n,{x:0,y:0},{x:a+s,y:o},{width:1,height:l})}this.dirty=!0}beginFrame(){this.callbackDispatchedThisFrame={}}dispatchRenderCallbacks(t){for(const i of t){if(this.callbackDispatchedThisFrame[i])continue;this.callbackDispatchedThisFrame[i]=!0;const t=this.getImage(i);t||e.w(`Image with ID: "${i}" was not found`),w(t)&&this.updateImage(i,t)}}}const b=1e20;function k(e,t,i,a,n,o,r,s,l){for(let d=t;d<t+a;d++)S(e,i*o+d,o,n,r,s,l);for(let d=i;d<i+n;d++)S(e,d*o+t,1,a,r,s,l)}function S(e,t,i,a,n,o,r){o[0]=0,r[0]=-b,r[1]=b,n[0]=e[t];for(let s=1,l=0,d=0;s<a;s++){n[s]=e[t+s*i];const a=s*s;do{const e=o[l];d=(n[s]-n[e]+a-e*e)/(s-e)/2}while(d<=r[l]&&--l>-1);l++,o[l]=s,r[l]=d,r[l+1]=b}for(let s=0,l=0;s<a;s++){for(;r[l+1]<s;)l++;const a=o[l],d=s-a;e[t+s*i]=n[a]+d*d}}class T{constructor(e,t){this.requestManager=e,this.localIdeographFontFamily=t,this.entries={}}setURL(e){this.url=e}getGlyphs(t,i){const a=[];for(const e in t)for(const i of t[e])a.push({stack:e,id:i});e.o(a,(({stack:e,id:t},i)=>{let a=this.entries[e];a||(a=this.entries[e]={glyphs:{},requests:{},ranges:{}});let n=a.glyphs[t];if(void 0!==n)return void i(null,{stack:e,id:t,glyph:n});if(n=this._tinySDF(a,e,t),n)return a.glyphs[t]=n,void i(null,{stack:e,id:t,glyph:n});const o=Math.floor(t/256);if(256*o>65535)return void i(new Error("glyphs > 65535 not supported"));if(a.ranges[o])return void i(null,{stack:e,id:t,glyph:n});if(!this.url)return void i(new Error("glyphsUrl is not set"));let r=a.requests[o];r||(r=a.requests[o]=[],T.loadGlyphRange(e,o,this.url,this.requestManager,((e,t)=>{if(t){for(const e in t)this._doesCharSupportLocalGlyph(+e)||(a.glyphs[+e]=t[+e]);a.ranges[o]=!0}for(const i of r)i(e,t);delete a.requests[o]}))),r.push(((a,n)=>{a?i(a):n&&i(null,{stack:e,id:t,glyph:n[t]||null})}))}),((e,t)=>{if(e)i(e);else if(t){const e={};for(const{stack:i,id:a,glyph:n}of t)(e[i]||(e[i]={}))[a]=n&&{id:n.id,bitmap:n.bitmap.clone(),metrics:n.metrics};i(null,e)}}))}_doesCharSupportLocalGlyph(t){return!!this.localIdeographFontFamily&&(e.u["CJK Unified Ideographs"](t)||e.u["Hangul Syllables"](t)||e.u.Hiragana(t)||e.u.Katakana(t))}_tinySDF(t,i,a){const n=this.localIdeographFontFamily;if(!n)return;if(!this._doesCharSupportLocalGlyph(a))return;let o=t.tinySDF;if(!o){let e="400";/bold/i.test(i)?e="900":/medium/i.test(i)?e="500":/light/i.test(i)&&(e="200"),o=t.tinySDF=new T.TinySDF({fontSize:48,buffer:6,radius:16,cutoff:.25,fontFamily:n,fontWeight:e})}const r=o.draw(String.fromCharCode(a));return{id:a,bitmap:new e.q({width:r.width||60,height:r.height||60},r.data),metrics:{width:r.glyphWidth/2||24,height:r.glyphHeight/2||24,left:r.glyphLeft/2+.5||0,top:r.glyphTop/2-27.5||-8,advance:r.glyphAdvance/2||24,isDoubleResolution:!0}}}}T.loadGlyphRange=function(t,i,a,n,o){const r=256*i,s=r+255,l=n.transformRequest(a.replace("{fontstack}",t).replace("{range}",`${r}-${s}`),u.Glyphs);e.l(l,((t,i)=>{if(t)o(t);else if(i){const t={};for(const a of e.n(i))t[a.id]=a;o(null,t)}}))},T.TinySDF=class{constructor({fontSize:e=24,buffer:t=3,radius:i=8,cutoff:a=.25,fontFamily:n="sans-serif",fontWeight:o="normal",fontStyle:r="normal"}={}){this.buffer=t,this.cutoff=a,this.radius=i;const s=this.size=e+4*t,l=this._createCanvas(s),d=this.ctx=l.getContext("2d",{willReadFrequently:!0});d.font=`${r} ${o} ${e}px ${n}`,d.textBaseline="alphabetic",d.textAlign="left",d.fillStyle="black",this.gridOuter=new Float64Array(s*s),this.gridInner=new Float64Array(s*s),this.f=new Float64Array(s),this.z=new Float64Array(s+1),this.v=new Uint16Array(s)}_createCanvas(e){const t=document.createElement("canvas");return t.width=t.height=e,t}draw(e){const{width:t,actualBoundingBoxAscent:i,actualBoundingBoxDescent:a,actualBoundingBoxLeft:n,actualBoundingBoxRight:o}=this.ctx.measureText(e),r=Math.ceil(i),s=Math.max(0,Math.min(this.size-this.buffer,Math.ceil(o-n))),l=Math.min(this.size-this.buffer,r+Math.ceil(a)),d=s+2*this.buffer,u=l+2*this.buffer,h=Math.max(d*u,0),c=new Uint8ClampedArray(h),m={data:c,width:d,height:u,glyphWidth:s,glyphHeight:l,glyphTop:r,glyphLeft:0,glyphAdvance:t};if(0===s||0===l)return m;const{ctx:p,buffer:f,gridInner:_,gridOuter:g}=this;p.clearRect(f,f,s,l),p.fillText(e,f,f+r);const y=p.getImageData(f,f,s,l);g.fill(b,0,h),_.fill(0,0,h);for(let e=0;e<l;e++)for(let t=0;t<s;t++){const i=y.data[4*(e*s+t)+3]/255;if(0===i)continue;const a=(e+f)*d+t+f;if(1===i)g[a]=0,_[a]=b;else{const e=.5-i;g[a]=e>0?e*e:0,_[a]=e<0?e*e:0}}k(g,0,0,d,u,d,this.f,this.v,this.z),k(_,f,f,s,l,d,this.f,this.v,this.z);for(let e=0;e<h;e++){const t=Math.sqrt(g[e])-Math.sqrt(_[e]);c[e]=Math.round(255-255*(t/this.radius+this.cutoff))}return m}};class C{constructor(){this.specification=e.v.light.position}possiblyEvaluate(t,i){return e.z(t.expression.evaluate(i))}interpolate(t,i,a){return{x:e.B.number(t.x,i.x,a),y:e.B.number(t.y,i.y,a),z:e.B.number(t.z,i.z,a)}}}let z;class P extends e.E{constructor(t){super(),z=z||new e.r({anchor:new e.D(e.v.light.anchor),position:new C,color:new e.D(e.v.light.color),intensity:new e.D(e.v.light.intensity)}),this._transitionable=new e.T(z),this.setLight(t),this._transitioning=this._transitionable.untransitioned()}getLight(){return this._transitionable.serialize()}setLight(t,i={}){if(!this._validate(e.t,t,i))for(const e in t){const i=t[e];e.endsWith("-transition")?this._transitionable.setTransition(e.slice(0,-11),i):this._transitionable.setValue(e,i)}}updateTransitions(e){this._transitioning=this._transitionable.transitioned(e,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}recalculate(e){this.properties=this._transitioning.possiblyEvaluate(e)}_validate(t,i,a){return(!a||!1!==a.validate)&&e.x(this,t.call(e.y,e.e({value:i,style:{glyphs:!0,sprite:!0},styleSpec:e.v})))}}class M{constructor(e,t){this.width=e,this.height=t,this.nextRow=0,this.data=new Uint8Array(this.width*this.height),this.dashEntry={}}getDash(e,t){const i=e.join(",")+String(t);return this.dashEntry[i]||(this.dashEntry[i]=this.addDash(e,t)),this.dashEntry[i]}getDashRanges(e,t,i){const a=[];let n=e.length%2==1?-e[e.length-1]*i:0,o=e[0]*i,r=!0;a.push({left:n,right:o,isDash:r,zeroLength:0===e[0]});let s=e[0];for(let t=1;t<e.length;t++){r=!r;const l=e[t];n=s*i,s+=l,o=s*i,a.push({left:n,right:o,isDash:r,zeroLength:0===l})}return a}addRoundDash(e,t,i){const a=t/2;for(let t=-i;t<=i;t++){const n=this.width*(this.nextRow+i+t);let o=0,r=e[o];for(let s=0;s<this.width;s++){s/r.right>1&&(r=e[++o]);const l=Math.abs(s-r.left),d=Math.abs(s-r.right),u=Math.min(l,d);let h;const c=t/i*(a+1);if(r.isDash){const e=a-Math.abs(c);h=Math.sqrt(u*u+e*e)}else h=a-Math.sqrt(u*u+c*c);this.data[n+s]=Math.max(0,Math.min(255,h+128))}}}addRegularDash(e){for(let t=e.length-1;t>=0;--t){const i=e[t],a=e[t+1];i.zeroLength?e.splice(t,1):a&&a.isDash===i.isDash&&(a.left=i.left,e.splice(t,1))}const t=e[0],i=e[e.length-1];t.isDash===i.isDash&&(t.left=i.left-this.width,i.right=t.right+this.width);const a=this.width*this.nextRow;let n=0,o=e[n];for(let t=0;t<this.width;t++){t/o.right>1&&(o=e[++n]);const i=Math.abs(t-o.left),r=Math.abs(t-o.right),s=Math.min(i,r);this.data[a+t]=Math.max(0,Math.min(255,(o.isDash?s:-s)+128))}}addDash(t,i){const a=i?7:0,n=2*a+1;if(this.nextRow+n>this.height)return e.w("LineAtlas out of space"),null;let o=0;for(let e=0;e<t.length;e++)o+=t[e];if(0!==o){const e=this.width/o,n=this.getDashRanges(t,this.width,e);i?this.addRoundDash(n,e,a):this.addRegularDash(n)}const r={y:(this.nextRow+a+.5)/this.height,height:2*a/this.height,width:o};return this.nextRow+=n,this.dirty=!0,r}bind(e){const t=e.gl;this.texture?(t.bindTexture(t.TEXTURE_2D,this.texture),this.dirty&&(this.dirty=!1,t.texSubImage2D(t.TEXTURE_2D,0,0,0,this.width,this.height,t.ALPHA,t.UNSIGNED_BYTE,this.data))):(this.texture=t.createTexture(),t.bindTexture(t.TEXTURE_2D,this.texture),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.REPEAT),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.REPEAT),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.LINEAR),t.texImage2D(t.TEXTURE_2D,0,t.ALPHA,this.width,this.height,0,t.ALPHA,t.UNSIGNED_BYTE,this.data))}}class L{constructor(t,i,a){this.workerPool=t,this.actors=[],this.currentActor=0,this.id=a;const n=this.workerPool.acquire(a);for(let t=0;t<n.length;t++){const o=new e.C(n[t],i,a);o.name=`Worker ${t}`,this.actors.push(o)}if(!this.actors.length)throw new Error("No actors found")}broadcast(t,i,a){e.o(this.actors,((e,a)=>{e.send(t,i,a)}),a=a||function(){})}getActor(){return this.currentActor=(this.currentActor+1)%this.actors.length,this.actors[this.currentActor]}remove(e=!0){this.actors.forEach((e=>{e.remove()})),this.actors=[],e&&this.workerPool.release(this.id)}}function A(t,i,a){const n=function(i,n){if(i)return a(i);if(n){const i=e.F(e.e(n,t),["tiles","minzoom","maxzoom","attribution","bounds","scheme","tileSize","encoding"]);n.vector_layers&&(i.vectorLayers=n.vector_layers,i.vectorLayerIds=i.vectorLayers.map((e=>e.id))),a(null,i)}};return t.url?e.f(i.transformRequest(t.url,u.Source),n):e.h.frame((()=>n(null,t)))}class I{constructor(e,t){e&&(t?this.setSouthWest(e).setNorthEast(t):Array.isArray(e)&&(4===e.length?this.setSouthWest([e[0],e[1]]).setNorthEast([e[2],e[3]]):this.setSouthWest(e[0]).setNorthEast(e[1])))}setNorthEast(t){return this._ne=t instanceof e.L?new e.L(t.lng,t.lat):e.L.convert(t),this}setSouthWest(t){return this._sw=t instanceof e.L?new e.L(t.lng,t.lat):e.L.convert(t),this}extend(t){const i=this._sw,a=this._ne;let n,o;if(t instanceof e.L)n=t,o=t;else{if(!(t instanceof I))return Array.isArray(t)?4===t.length||t.every(Array.isArray)?this.extend(I.convert(t)):this.extend(e.L.convert(t)):t&&("lng"in t||"lon"in t)&&"lat"in t?this.extend(e.L.convert(t)):this;if(n=t._sw,o=t._ne,!n||!o)return this}return i||a?(i.lng=Math.min(n.lng,i.lng),i.lat=Math.min(n.lat,i.lat),a.lng=Math.max(o.lng,a.lng),a.lat=Math.max(o.lat,a.lat)):(this._sw=new e.L(n.lng,n.lat),this._ne=new e.L(o.lng,o.lat)),this}getCenter(){return new e.L((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)}getSouthWest(){return this._sw}getNorthEast(){return this._ne}getNorthWest(){return new e.L(this.getWest(),this.getNorth())}getSouthEast(){return new e.L(this.getEast(),this.getSouth())}getWest(){return this._sw.lng}getSouth(){return this._sw.lat}getEast(){return this._ne.lng}getNorth(){return this._ne.lat}toArray(){return[this._sw.toArray(),this._ne.toArray()]}toString(){return`LngLatBounds(${this._sw.toString()}, ${this._ne.toString()})`}isEmpty(){return!(this._sw&&this._ne)}contains(t){const{lng:i,lat:a}=e.L.convert(t);let n=this._sw.lng<=i&&i<=this._ne.lng;return this._sw.lng>this._ne.lng&&(n=this._sw.lng>=i&&i>=this._ne.lng),this._sw.lat<=a&&a<=this._ne.lat&&n}static convert(e){return e instanceof I?e:e?new I(e):e}static fromLngLat(t,i=0){const a=360*i/40075017,n=a/Math.cos(Math.PI/180*t.lat);return new I(new e.L(t.lng-n,t.lat-a),new e.L(t.lng+n,t.lat+a))}}class E{constructor(e,t,i){this.bounds=I.convert(this.validateBounds(e)),this.minzoom=t||0,this.maxzoom=i||24}
5validateBounds(e){return Array.isArray(e)&&4===e.length?[Math.max(-180,e[0]),Math.max(-90,e[1]),Math.min(180,e[2]),Math.min(90,e[3])]:[-180,-90,180,90]}contains(t){const i=Math.pow(2,t.z),a=Math.floor(e.G(this.bounds.getWest())*i),n=Math.floor(e.H(this.bounds.getNorth())*i),o=Math.ceil(e.G(this.bounds.getEast())*i),r=Math.ceil(e.H(this.bounds.getSouth())*i);return t.x>=a&&t.x<o&&t.y>=n&&t.y<r}}class D extends e.E{constructor(t,i,a,n){if(super(),this.load=()=>{this._loaded=!1,this.fire(new e.k("dataloading",{dataType:"source"})),this._tileJSONRequest=A(this._options,this.map._requestManager,((t,i)=>{this._tileJSONRequest=null,this._loaded=!0,this.map.style.sourceCaches[this.id].clearTiles(),t?this.fire(new e.j(t)):i&&(e.e(this,i),i.bounds&&(this.tileBounds=new E(i.bounds,this.minzoom,this.maxzoom)),this.fire(new e.k("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new e.k("data",{dataType:"source",sourceDataType:"content"})))}))},this.serialize=()=>e.e({},this._options),this.id=t,this.dispatcher=a,this.type="vector",this.minzoom=0,this.maxzoom=22,this.scheme="xyz",this.tileSize=512,this.reparseOverscaled=!0,this.isTileClipped=!0,this._loaded=!1,e.e(this,e.F(i,["url","scheme","tileSize","promoteId"])),this._options=e.e({type:"vector"},i),this._collectResourceTiming=i.collectResourceTiming,512!==this.tileSize)throw new Error("vector tile sources must have a tileSize of 512");this.setEventedParent(n)}loaded(){return this._loaded}hasTile(e){return!this.tileBounds||this.tileBounds.contains(e.canonical)}onAdd(e){this.map=e,this.load()}setSourceProperty(e){this._tileJSONRequest&&this._tileJSONRequest.cancel(),e(),this.load()}setTiles(e){return this.setSourceProperty((()=>{this._options.tiles=e})),this}setUrl(e){return this.setSourceProperty((()=>{this.url=e,this._options.url=e})),this}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)}loadTile(e,t){const i=e.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme),a={request:this.map._requestManager.transformRequest(i,u.Tile),uid:e.uid,tileID:e.tileID,zoom:e.tileID.overscaledZ,tileSize:this.tileSize*e.tileID.overscaleFactor(),type:this.t
5ype,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};function n(i,a){return delete e.request,e.aborted?t(null):i&&404!==i.status?t(i):(a&&a.resourceTiming&&(e.resourceTiming=a.resourceTiming),this.map._refreshExpiredTiles&&a&&e.setExpiryData(a),e.loadVectorData(a,this.map.painter),t(null),void(e.reloadCallback&&(this.loadTile(e,e.reloadCallback),e.reloadCallback=null)))}a.request.collectResourceTiming=this._collectResourceTiming,e.actor&&"expired"!==e.state?"loading"===e.state?e.reloadCallback=t:e.request=e.actor.send("reloadTile",a,n.bind(this)):(e.actor=this.dispatcher.getActor(),e.request=e.actor.send("loadTile",a,n.bind(this)))}abortTile(e){e.request&&(e.request.cancel(),delete e.request),e.actor&&e.actor.send("abortTile",{uid:e.uid,type:this.type,source:this.id},void 0)}unloadTile(e){e.unloadVectorData(),e.actor&&e.actor.send("removeTile",{uid:e.uid,type:this.type,source:this.id},void 0)}hasTransition(){return!1}}class j extends e.E{constructor(t,i,a,n){super(),this.id=t,this.dispatcher=a,this.setEventedParent(n),this.type="raster",this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme="xyz",this.tileSize=512,this._loaded=!1,this._options=e.e({type:"raster"},i),e.e(this,e.F(i,["url","scheme","tileSize"]))}load(){this._loaded=!1,this.fire(new e.k("dataloading",{dataType:"source"})),this._tileJSONRequest=A(this._options,this.map._requestManager,((t,i)=>{this._tileJSONRequest=null,this._loaded=!0,t?this.fire(new e.j(t)):i&&(e.e(this,i),i.bounds&&(this.tileBounds=new E(i.bounds,this.minzoom,this.maxzoom)),this.fire(new e.k("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new e.k("data",{dataType:"source",sourceDataType:"content"})))}))}loaded(){return this._loaded}onAdd(e){this.map=e,this.load()}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)}setSourceProperty(e){this._tileJSONRequest&&this._tileJSONRequest.cancel(),e(),this.load()}setTiles(e){return this.setSourceProperty((()=>{this._options.tiles=e})),this}serialize(){return e.e({},this._options)}hasTile(e){return!this.tileBounds||this.tileBounds.contains(e.canonical)}loadTile(e,t){const i=e.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme);e.request=d.getImage(this.map._requestManager.transformRequest(i,u.Tile),((i,a,n)=>{if(delete e.request,e.aborted)e.state="unloaded",t(null);else if(i)e.state="errored",t(i);else if(a){this.map._refreshExpiredTiles&&n&&e.setExpiryData(n);const i=this.map.painter.context,o=i.gl;e.texture=this.map.painter.getTileTexture(a.width),e.texture?e.texture.update(a,{useMipmap:!0}):(e.texture=new v(i,a,o.RGBA,{useMipmap:!0}),e.texture.bind(o.LINEAR,o.CLAMP_TO_EDGE,o.LINEAR_MIPMAP_NEAREST),i.extTextureFilterAnisotropic&&o.texParameterf(o.TEXTURE_2D,i.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,i.extTextureFilterAnisotropicMax)),e.state="loaded",t(null)}}),this.map._refreshExpiredTiles)}abortTile(e,t){e.request&&(e.request.cancel(),delete e.request),t()}unloadTile(e,t){e.texture&&this.map.painter.saveTileTexture(e.texture),t()}hasTransition(){return!1}}class $ extends j{constructor(t,i,a,n){super(t,i,a,n),this.type="raster-dem",this.maxzoom=22,this._options=e.e({type:"raster-dem"},i),this.encoding=i.encoding||"mapbox",this.redFactor=i.redFactor,this.greenFactor=i.greenFactor,this.blueFactor=i.blueFactor,this.baseShift=i.baseShift}loadTile(t,i){const a=t.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme),n=this.map._requestManager.transformRequest(a,u.Tile);function o(e,a){e&&(t.state="errored",i(e)),a&&(t.dem=a,t.needsHillshadePrepare=!0,t.needsTerrainPrepare=!0,t.state="loaded",i(null))}t.neighboringTiles=this._getNeighboringTiles(t.tileID),t.request=d.getImage(n,((a,n,r)=>e._(this,void 0,void 0,(function*(){if(delete t.request,t.aborted)t.state="unloaded",i(null);else if(a)t.state="errored",i(a);else if(n){this.map._refreshExpiredTiles&&t.setExpiryData(r);const i=e.a(n)&&e.J()?n:yield function(t){return e._(this,void 0,void 0,(function*(){if("undefined"!=typeof VideoFrame&&e.K()){const i=t.
5width+2,a=t.height+2;try{return new e.R({width:i,height:a},yield e.M(t,-1,-1,i,a))}catch(e){}}return e.h.getImageData(t,1)}))}(n),a={uid:t.uid,coord:t.tileID,source:this.id,rawImageData:i,encoding:this.encoding,redFactor:this.redFactor,greenFactor:this.greenFactor,blueFactor:this.blueFactor,baseShift:this.baseShift};t.actor&&"expired"!==t.state||(t.actor=this.dispatcher.getActor(),t.actor.send("loadDEMTile",a,o))}}))),this.map._refreshExpiredTiles)}_getNeighboringTiles(t){const i=t.canonical,a=Math.pow(2,i.z),n=(i.x-1+a)%a,o=0===i.x?t.wrap-1:t.wrap,r=(i.x+1+a)%a,s=i.x+1===a?t.wrap+1:t.wrap,l={};return l[new e.O(t.overscaledZ,o,i.z,n,i.y).key]={backfilled:!1},l[new e.O(t.overscaledZ,s,i.z,r,i.y).key]={backfilled:!1},i.y>0&&(l[new e.O(t.overscaledZ,o,i.z,n,i.y-1).key]={backfilled:!1},l[new e.O(t.overscaledZ,t.wrap,i.z,i.x,i.y-1).key]={backfilled:!1},l[new e.O(t.overscaledZ,s,i.z,r,i.y-1).key]={backfilled:!1}),i.y+1<a&&(l[new e.O(t.overscaledZ,o,i.z,n,i.y+1).key]={backfilled:!1},l[new e.O(t.overscaledZ,t.wrap,i.z,i.x,i.y+1).key]={backfilled:!1},l[new e.O(t.overscaledZ,s,i.z,r,i.y+1).key]={backfilled:!1}),l}unloadTile(e){e.demTexture&&this.map.painter.saveTileTexture(e.demTexture),e.fbo&&(e.fbo.destroy(),delete e.fbo),e.dem&&delete e.dem,delete e.neighboringTiles,e.state="unloaded",e.actor&&e.actor.send("removeDEMTile",{uid:e.uid,source:this.id})}}class R extends e.E{constructor(t,i,a,n){super(),this.load=()=>{this._updateWorkerData()},this.serialize=()=>e.e({}
vendor: 1,544 bytes, line 5
5,this._options,{type:this.type,data:this._data}),this.id=t,this.type="geojson",this.minzoom=0,this.maxzoom=18,this.tileSize=512,this.isTileClipped=!0,this.reparseOverscaled=!0,this._removed=!1,this._pendingLoads=0,this.actor=a.getActor(),this.setEventedParent(n),this._data=i.data,this._options=e.e({},i),this._collectResourceTiming=i.collectResourceTiming,void 0!==i.maxzoom&&(this.maxzoom=i.maxzoom),i.type&&(this.type=i.type),i.attribution&&(this.attribution=i.attribution),this.promoteId=i.promoteId;const o=e.N/this.tileSize;this.workerOptions=e.e({source:this.id,cluster:i.cluster||!1,geojsonVtOptions:{buffer:(void 0!==i.buffer?i.buffer:128)*o,tolerance:(void 0!==i.tolerance?i.tolerance:.375)*o,extent:e.N,maxZoom:this.maxzoom,lineMetrics:i.lineMetrics||!1,generateId:i.generateId||!1},superclusterOptions:{maxZoom:void 0!==i.clusterMaxZoom?i.clusterMaxZoom:this.maxzoom-1,minPoints:Math.max(2,i.clusterMinPoints||2),extent:e.N,radius:(i.clusterRadius||50)*o,log:!1,generateId:i.generateId||!1},clusterProperties:i.clusterProperties,filter:i.filter},i.workerOptions),"string"==typeof this.promoteId&&(this.workerOptions.promoteId=this.promoteId)}onAdd(e){this.map=e,this.load()}setData(e){return this._data=e,this._updateWorkerData(),this}updateData(e){return this._updateWorkerData(e),this}setClusterOptions(e){return this.workerOptions.cluster=e.cluster,e&&(void 0!==e.clusterRadius&&(this.workerOptions.superclusterOptions.radius=e.clusterRadius),void 0!==e.clusterMaxZoom&&(this.workerOptions.superclusterOptions.maxZoom=e.clusterMa
5xZoom)),this._updateWorkerData(),this}getClusterExpansionZoom(e,t){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:e,source:this.id},t),this}getClusterChildren(e,t){return this.actor.send("geojson.getClusterChildren",{clusterId:e,source:this.id},t),this}getClusterLeaves(e,t,i,a){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:e,limit:t,offset:i},a),this}_updateWorkerData(t){const i=e.e({},this.workerOptions);t?i.dataDiff=t:"string"==typeof this._data?(i.request=this.map._requestManager.transformRequest(e.h.resolveURL(this._data),u.Source),i.request.collectResourceTiming=this._collectResourceTiming):i.data=JSON.stringify(this._data),this._pendingLoads++,this.fire(new e.k("dataloading",{dataType:"source"})),this.actor.send(`${this.type}.loadData`,i,((t,i)=>{if(this._pendingLoads--,this._removed||i&&i.abandoned)return void this.fire(new e.k("dataabort",{dataType:"source"}));let a=null;if(i&&i.resourceTiming&&i.resourceTiming[this.id]&&(a=i.resourceTiming[this.id].slice(0)),t)return void this.fire(new e.j(t));const n={dataType:"source"};this._collectResourceTiming&&a&&a.length>0&&e.e(n,{resourceTiming:a}),this.fire(new e.k("data",Object.assign(Object.assign({},n),{sourceDataType:"metadata"}))),this.fire(new e.k("data",Object.assign(Object.assign({},n),{sourceDataType:"content"})))}))}loaded(){return 0===this._pendingLoads}loadTile(e,t){const i=e.actor?"reloadTile":"loadTile";e.actor=this.actor;const a={type:this.type,uid:e.uid,tileID:e.tileID,zoom:e.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};e.request=this.actor.send(i,a,((a,n)=>(delete e.request,e.unloadVectorData(),e.aborted?t(null):a?t(a):(e.loadVectorData(n,this.map.painter,"reloadTile"===i),t(null)))))}abortTile(e){e.request&&(e.request.cancel(),delete e.request),e.aborted=!0}unloadTile(e){e.unloadVectorData(),this.actor.send("removeTile",{uid:e.uid,type:this.t
5ype,source:this.id})}onRemove(){this._removed=!0,this.actor.send("removeSource",{type:this.type,source:this.id})}hasTransition(){return!1}}var B=e.Q([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]);class F extends e.E{constructor(t,i,a,n){super(),this.load=(t,i)=>{this._loaded=!1,this.fire(new e.k("dataloading",{dataType:"source"})),this.url=this.options.url,this._request=d.getImage(this.map._requestManager.transformRequest(this.url,u.Image),((a,n)=>{this._request=null,this._loaded=!0,a?this.fire(new e.j(a)):n&&(this.image=n,t&&(this.coordinates=t),i&&i(),this._finishLoading())}))},this.prepare=()=>{if(0===Object.keys(this.tiles).length||!this.image)return;const t=this.map.painter.context,i=t.gl;this.boundsBuffer||(this.boundsBuffer=t.createVertexBuffer(this._boundsArray,B.members)),this.boundsSegments||(this.boundsSegments=e.S.simpleSegment(0,0,4,2)),this.texture||(this.texture=new v(t,this.image,i.RGBA),this.texture.bind(i.LINEAR,i.CLAMP_TO_EDGE));let a=!1;for(const e in this.tiles){const t=this.tiles[e];"loaded"!==t.state&&(t.state="loaded",t.texture=this.texture,a=!0)}a&&this.fire(new e.k("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))},this.serialize=()=>({type:"image",url:this.options.url,coordinates:this.coordinates}),this.id=t,this.dispatcher=a,this.coordinates=i.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(n),this.options=i}loaded(){return this._loaded}updateImage(e){return e.url?(this._request&&(this._request.cancel(),this._request=null),this.options.url=e.url,this.load(e.coordinates,(()=>{this.texture=null})),this):this}_finishLoading(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new e.k("data",{dataType:"source",sourceDataType:"metadata"})))}onAdd(e){this.map=e,this.load()}onRemove(){this._request&&(this._request.cancel(),this._request=null)}setCoordinates(t){this.coordinates=t;const i=t.map(e.U.fromLngLat);this.tileID=function(t){let i=1/0,a=1/0,n=-1/0,o=-1/0;for(const e of t)i=Math.min(i,e.x),a=Math.min(a,e.y),n=Math.max(n,e.x),o=Math.max(o,e.y);const r=Math.max(n-i,o-a),s=Math.max(0,Math.floor(-Math.log(r)/Math.LN2)),l=Math.pow(2,s);return new e.W(s,Math.floor((i+n)/2*l),Math.floor((a+o)/2*l))}(i),this.minzoom=this.maxzoom=this.tileID.z;const a=i.map((e=>this.tileID.getTilePoint(e)._round()));return this._boundsArray=new e.V,this._boundsArray.emplaceBack(a[0].x,a[0].y,0,0),this._boundsArray.emplaceBack(a[1].x,a[1].y,e.N,0),this._boundsArray.emplaceBack(a[3].x,a[3].y,0,e.N),this._boundsArray.emplaceBack(a[2].x,a[2].y,e.N,e.N),this.boundsBuffer&&(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new e.k("data",{dataType:"source",sourceDataType:"content"})),this}loadTile(e,t){this.tileID&&this.tileID.equals(e.tileID.canonical)?(this.tiles[String(e.tileID.wrap)]=e,e.buckets={},t(null)):(e.state="errored",t(null))}hasTransition(){return!1}}class O extends F{constructor(t,i,a,n){super(t,i,a,n),this.load=()=>{this._loaded=!1;const t=this.options;this.urls=[];for(const e of t.urls)this.urls.push(this.map._requestManager.transformRequest(e,u.Source).url);e.X(this.urls,((t,i)=>{this._loaded=!0,t?this.fire(new e.j(t)):i&&(this.video=i,this.video.loop=!0,this.video.addEventListener("playing",(()=>{this.map.triggerRepaint()})),this.map&&this.video.play(),this._finishLoading())}))},this.prepare=()=>{if(0===Object.keys(this.tiles).length||this.video.readyState<2)return;const t=this.map.painter.context,i=t.gl;this.boundsBuffer||(this.boundsBuffer=t.createVertexBuffer(this._boundsArray,B.members)),this.boundsSegments||(this.boundsSegments=e.S.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(i.LINEAR,i.CLAMP_TO_EDGE),i.texSubImage2D(i.TEXTURE_2D,0,0,0,i.RGBA,i.UNSIGNED_BYTE,this.video)):(this.texture=new v(t,this.video,i.RGBA),this.texture.bind(i.LINEAR,i.CLAMP_TO_EDGE));let a=!1;for(const e in this.tiles){const t=this.tiles[e];"loaded"!==t.state&&(t.state="loaded",t.texture=this.texture,a=!0)}a&&this.fire(new e.k("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))},this.serialize=()=>({type:"video",urls:this.urls,coordinates:this.coordinates}),this.roundZoom=!0,this.type="video",this.options=i}pause(){this.video&&this.video.pause()}play(){this.video&&this.video.play()}seek(t){if(this.video){const i=this.video.seekable;t<i.start(0)||t>i.end(0)?this.fire(new e.j(new e.Y(`sources.${this.id}`,null,`Playback for this video can be set only between the ${i.start(0)} and ${i.end(0)}-second mark.`))):this.video.currentTime=t}}getVideo(){return this.video}
vendor: 31,081 bytes, line 5
5onAdd(e){this.map||(this.map=e,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))}hasTransition(){return this.video&&!this.video.paused}}class N extends F{constructor(t,i,a,n){super(t,i,a,n),this.load=()=>{this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof HTMLCanvasElement?this.options.canvas:document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new e.j(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&&(this.prepare(),this._playing=!1)},this._finishLoading())},this.prepare=()=>{let t=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,t=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,t=!0),this._hasInvalidDimensions())return;if(0===Object.keys(this.tiles).length)return;const i=this.map.painter.context,a=i.gl;this.boundsBuffer||(this.boundsBuffer=i.createVertexBuffer(this._boundsArray,B.members)),this.boundsSegments||(this.boundsSegments=e.S.simpleSegment(0,0,4,2)),this.texture?(t||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new v(i,this.canvas,a.RGBA,{premultiply:!0});let n=!1;for(const e in this.tiles){const t=this.tiles[e];"loaded"!==t.state&&(t.state="loaded",t.texture=this.texture,n=!0)}n&&this.fire(new e.k("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))},this.serialize=()=>({type:"canvas",coordinates:this.coordinates}),i.coordinates?Array.isArray(i.coordinates)&&4===i.coordinates.length&&!i.coordinates.some((e=>!Array.isArray(e)||2!==e.length||e.some((e=>"number"!=typeof e))))||this.fire(new e.j(new e.Y(`sources.${t}`,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new e.j(new e.Y(`sources.${t}`,null,'missing required property "coordinates"'))),i.animate&&"boolean"!=typeof i.animate&&this.fire(new e.j(new e.Y(`sources.${t}`,null,'optional "animate" property must be a boolean value'))),i.canvas?"string"==typeof i.canvas||i.canvas instanceof HTMLCanvasElement||this.fire(new e.j(new e.Y(`sources.${t}`,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 e.j(new e.Y(`sources.${t}`,null,'missing required property "canvas"'))),this.options=i,this.animate=void 0===i.animate||i.animate}getCanvas(){return this.canvas}onAdd(e){this.map=e,this.load(),this.canvas&&this.animate&&this.play()}onRemove(){this.pause()}hasTransition(){return this._playing}_hasInvalidDimensions(){for(const e of[this.canvas.width,this.canvas.height])if(isNaN(e)||e<=0)return!0;return!1}}const V={},U=e=>{switch(e){case"geojson":return R;case"image":return F;case"raster":return j;case"raster-dem":return $;case"vector":return D;case"video":return O;case"canvas":return N}return V[e]};function Z(t,i){const a=e.Z();return e.$(a,a,[1,1,0]),e.a0(a,a,[.5*t.width,.5*t.height,1]),e.a1(a,a,t.calculatePosMatrix(i.toUnwrapped()))}function q(e,t,i,a,n,o){const r=function(e,t,i){if(e)for(const a of e){const e=t[a];if(e&&e.source===i&&"fill-extrusion"===e.type)return!0}else for(const e in t){const a=t[e];if(a.source===i&&"fill-extrusion"===a.type)return!0}return!1}(n&&n.layers,t,e.id),s=o.maxPitchScaleFactor(),l=e.tilesIn(a,s,r);l.sort(G);const d=[];for(const a of l)d.push({wrappedTileID:a.tileID.wrapped().key,queryResults:a.tile.queryRenderedFeatures(t,i,e._state,a.queryGeometry,a.cameraQueryGeometry,a.scale,n,o,s,Z(e.transform,a.tileID))});const u=function(e){const t={},i={};for(const a of e){const e=a.queryResults,n=a.wrappedTileID,o=i[n]=i[n]||{};for(const i in e){const a=e[i],n=o[i]=o[i]||{},r=t[i]=t[i]||[];for(const e of a)n[e.featureIndex]||(n[e.featureIndex]=!0,r.push(e))}}return t}(d);for(const t in u)u[t].forEach((t=>{const i=t.feature,a=e.getFeatureState(i.layer["source-layer"],i.id);i.source=i.layer.source,i.layer["source-layer"]&&(i.sourceLayer=i.layer["source-layer"]),i.state=a}));return u}function G(e,t){const i=e.tileID,a=t.tileID;return i.overscaledZ-a.overscaledZ||i.canonical.y-a.canonical.y||i.wrap-a.wrap||i.canonical.x-a.canonical.x}class W{constructor(t,i){this.timeAdded=0,this.fadeEndTime=0,this.tileID=t,this.uid=e.a2(),this.uses=0,this.tileSize=i,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.hasSymbolBuckets=!1,this.hasRTLText=!1,this.dependencies={},this.rtt=[],this.rttCoords={},this.expiredRequestCount=0,this.state="loading"}registerFadeDuration(e){const t=e+this.timeAdded;t<this.fadeEndTime||(this.fadeEndTime=t)}wasRequested(){return"errored"===this.state||"loaded"===this.state||"reloading"===this.state}clearTextures(e){this.demTexture&&e.saveTileTexture(this.demTexture),this.demTexture=null}loadVectorData(t,i,a){if(this.hasData()&&this.unloadVectorData(),this.state="loaded",t){t.featureIndex&&(this.latestFeatureIndex=t.featureIndex,t.rawTileData?(this.latestRawTileData=t.rawTileData,this.latestFeatureIndex.rawTileData=t.rawTileData):this.latestRawTileData&&(this.latestFeatureIndex.rawTileData=this.latestRawTileData)),this.collisionBoxArray=t.collisionBoxArray,this.buckets=function(e,t){const i={};if(!t)return i;for(const a of e){const e=a.layerIds.map((e=>t.getLayer(e))).filter(Boolean);if(0!==e.length){a.layers=e,a.stateDependentLayerIds&&(a.stateDependentLayers=a.stateDependentLayerIds.map((t=>e.filter((e=>e.id===t))[0])));for(const t of e)i[t.id]=a}}return i}(t.buckets,i.style),this.hasSymbolBuckets=!1;for(const t in this.buckets){const i=this.buckets[t];if(i instanceof e.a4){if(this.hasSymbolBuckets=!0,!a)break;i.justReloaded=!0}}if(this.hasRTLText=!1,this.hasSymbolBuckets)for(const t in this.buckets){const i=this.buckets[t];if(i instanceof e.a4&&i.hasRTLText){this.hasRTLText=!0,e.a5();break}}this.queryPadding=0;for(const e in this.buckets){const t=this.buckets[e];this.queryPadding=Math.max(this.queryPadding,i.style.getLayer(e).queryRadius(t))}t.imageAtlas&&(this.imageAtlas=t.imageAtlas),t.glyphAtlasImage&&(this.glyphAtlasImage=t.glyphAtlasImage)}else this.collisionBoxArray=new e.a3}unloadVectorData(){for(const e in this.buckets)this.buckets[e].destroy();this.buckets={},this.imageAtlasTexture&&this.imageAtlasTexture.destroy(),this.imageAtlas&&(this.imageAtlas=null),this.glyphAtlasTexture&&this.glyphAtlasTexture.destroy(),this.latestFeatureIndex=null,this.state="unloaded"}getBucket(e){return this.buckets[e.id]}upload(e){for(const t in this.buckets){const i=this.buckets[t];i.uploadPending()&&i.upload(e)}const t=e.gl;this.imageAtlas&&!this.imageAtlas.uploaded&&(this.imageAtlasTexture=new v(e,this.imageAtlas.image,t.RGBA),this.imageAtlas.uploaded=!0),this.glyphAtlasImage&&(this.glyphAtlasTexture=new v(e,this.glyphAtlasImage,t.ALPHA),this.glyphAtlasImage=null)}prepare(e){this.imageAtlas&&this.imageAtlas.patchUpdatedImages(e,this.imageAtlasTexture)}queryRenderedFeatures(e,t,i,a,n,o,r,s,l,d){return this.latestFeatureIndex&&this.latestFeatureIndex.rawTileData?this.latestFeatureIndex.query({queryGeometry:a,cameraQueryGeometry:n,scale:o,tileSize:this.tileSize,pixelPosMatrix:d,transform:s,params:r,queryPadding:this.queryPadding*l},e,t,i):{}}querySourceFeatures(t,i){const a=this.latestFeatureIndex;if(!a||!a.rawTileData)return;const n=a.loadVTLayers(),o=i&&i.sourceLayer?i.sourceLayer:"",r=n._geojsonTileLayer||n[o];if(!r)return;const s=e.a6(i&&i.filter),{z:l,x:d,y:u}=this.tileID.canonical,h={z:l,x:d,y:u};for(let i=0;i<r.length;i++){const n=r.feature(i);if(s.needGeometry){const t=e.a7(n,!0);if(!s.filter(new e.a8(this.tileID.overscaledZ),t,this.tileID.canonical))continue}else if(!s.filter(new e.a8(this.tileID.overscaledZ),n))continue;const c=a.getId(n,o),m=new e.a9(n,l,d,u,c);m.tile=h,t.push(m)}}hasData(){return"loaded"===this.state||"reloading"===this.state||"expired"===this.state}patternsLoaded(){return this.imageAtlas&&!!Object.keys(this.imageAtlas.patternPositions).length}setExpiryData(t){const i=this.expirationTime;if(t.cacheControl){const i=e.aa(t.cacheControl);i["max-age"]&&(this.expirationTime=Date.now()+1e3*i["max-age"])}else t.expires&&(this.expirationTime=new Date(t.expires).getTime());if(this.expirationTime){const e=Date.now();let t=!1;if(this.expirationTime>e)t=!1;else if(i)if(this.expirationTime<i)t=!0;else{const a=this.expirationTime-i;a?this.expirationTime=e+Math.max(a,3e4):t=!0}else t=!0;t?(this.expiredRequestCount++,this.state="expired"):this.expiredRequestCount=0}}getExpiryTimeout(){if(this.expirationTime)return this.expiredRequestCount?1e3*(1<<Math.min(this.expiredRequestCount-1,31)):Math.min(this.expirationTime-(new Date).getTime(),Math.pow(2,31)-1)}setFeatureState(e,t){if(!this.latestFeatureIndex||!this.latestFeatureIndex.rawTileData||0===Object.keys(e).length)return;const i=this.latestFeatureIndex.loadVTLayers();for(const a in this.buckets){if(!t.style.hasLayer(a))continue;const n=this.buckets[a],o=n.layers[0].sourceLayer||"_geojsonTileLayer",r=i[o],s=e[o];if(!r||!s||0===Object.keys(s).length)continue;n.update(s,r,this.imageAtlas&&this.imageAtlas.patternPositions||{});const l=t&&t.style&&t.style.getLayer(a);l&&(this.queryPadding=Math.max(this.queryPadding,l.queryRadius(n)))}}holdingForFade(){return void 0!==this.symbolFadeHoldUntil}symbolFadeFinished(){return!this.symbolFadeHoldUntil||this.symbolFadeHoldUntil<e.h.now()}clearFadeHold(){this.symbolFadeHoldUntil=void 0}setHoldDuration(t){this.symbolFadeHoldUntil=e.h.now()+t}setDependencies(e,t){const i={};for(const e of t)i[e]=!0;this.dependencies[e]=i}hasDependency(e,t){for(const i of e){const e=this.dependencies[i];if(e)for(const i of t)if(e[i])return!0}return!1}}class H{constructor(e,t){this.max=e,this.onRemove=t,this.reset()}reset(){for(const e in this.data)for(const t of this.data[e])t.timeout&&clearTimeout(t.timeout),this.onRemove(t.value);return this.data={},this.order=[],this}add(e,t,i){const a=e.wrapped().key;void 0===this.data[a]&&(this.data[a]=[]);const n={value:t,timeout:void 0};if(void 0!==i&&(n.timeout=setTimeout((()=>{this.remove(e,n)}),i)),this.data[a].push(n),this.order.push(a),this.order.length>this.max){const e=this._getAndRemoveByKey(this.order[0]);e&&this.onRemove(e)}return this}has(e){return e.wrapped().key in this.data}getAndRemove(e){return this.has(e)?this._getAndRemoveByKey(e.wrapped().key):null}_getAndRemoveByKey(e){const t=this.data[e].shift();return t.timeout&&clearTimeout(t.timeout),0===this.data[e].length&&delete this.data[e],this.order.splice(this.order.indexOf(e),1),t.value}getByKey(e){const t=this.data[e];return t?t[0].value:null}get(e){return this.has(e)?this.data[e.wrapped().key][0].value:null}remove(e,t){if(!this.has(e))return this;const i=e.wrapped().key,a=void 0===t?0:this.data[i].indexOf(t),n=this.data[i][a];return this.data[i].splice(a,1),n.timeout&&clearTimeout(n.timeout),0===this.data[i].length&&delete this.data[i],this.onRemove(n.value),this.order.splice(this.order.indexOf(i),1),this}setMaxSize(e){for(this.max=e;this.order.length>this.max;){const e=this._getAndRemoveByKey(this.order[0]);e&&this.onRemove(e)}return this}filter(e){const t=[];for(const i in this.data)for(const a of this.data[i])e(a.value)||t.push(a);for(const e of t)this.remove(e.value.tileID,e)}}class K{constructor(){this.state={},this.stateChanges={},this.deletedStates={}}updateState(t,i,a){const n=String(i);if(this.stateChanges[t]=this.stateChanges[t]||{},this.stateChanges[t][n]=this.stateChanges[t][n]||{},e.e(this.stateChanges[t][n],a),null===this.deletedStates[t]){this.deletedStates[t]={};for(const e in this.state[t])e!==n&&(this.deletedStates[t][e]=null)}else if(this.deletedStates[t]&&null===this.deletedStates[t][n]){this.deletedStates[t][n]={};for(const e in this.state[t][n])a[e]||(this.deletedStates[t][n][e]=null)}else for(const e in a)this.deletedStates[t]&&this.deletedStates[t][n]&&null===this.deletedStates[t][n][e]&&delete this.deletedStates[t][n][e]}removeFeatureState(e,t,i){if(null===this.deletedStates[e])return;const a=String(t);if(this.deletedStates[e]=this.deletedStates[e]||{},i&&void 0!==t)null!==this.deletedStates[e][a]&&(this.deletedStates[e][a]=this.deletedStates[e][a]||{},this.deletedStates[e][a][i]=null);else if(void 0!==t)if(this.stateChanges[e]&&this.stateChanges[e][a])for(i in this.deletedStates[e][a]={},this.stateChanges[e][a])this.deletedStates[e][a][i]=null;else this.deletedStates[e][a]=null;else this.deletedStates[e]=null}getState(t,i){const a=String(i),n=e.e({},(this.state[t]||{})[a],(this.stateChanges[t]||{})[a]);if(null===this.deletedStates[t])return{};if(this.deletedStates[t]){const e=this.deletedStates[t][i];if(null===e)return{};for(const t in e)delete n[t]}return n}initializeTileState(e,t){e.setFeatureState(this.state,t)}coalesceChanges(t,i){const a={};for(const t in this.stateChanges){this.state[t]=this.state[t]||{};const i={};for(const a in this.stateChanges[t])this.state[t][a]||(this.state[t][a]={}),e.e(this.state[t][a],this.stateChanges[t][a]),i[a]=this.state[t][a];a[t]=i}for(const t in this.deletedStates){this.state[t]=this.state[t]||{};const i={};if(null===this.deletedStates[t])for(const e in this.state[t])i[e]={},this.state[t][e]={};else for(const e in this.deletedStates[t]){if(null===this.deletedStates[t][e])this.state[t][e]={};else for(const i of Object.keys(this.deletedStates[t][e]))delete this.state[t][e][i];i[e]=this.state[t][e]}a[t]=a[t]||{},e.e(a[t],i)}if(this.stateChanges={},this.deletedStates={},0!==Object.keys(a).length)for(const e in t)t[e].setFeatureState(a,i)}}class X extends e.E{constructor(e,t,i){super(),this.id=e,this.dispatcher=i,this.on("data",(e=>{"source"===e.dataType&&"metadata"===e.sourceDataType&&(this._sourceLoaded=!0),this._sourceLoaded&&!this._paused&&"source"===e.dataType&&"content"===e.sourceDataType&&(this.reload(),this.transform&&this.update(this.transform,this.terrain),this._didEmitContent=!0)})),this.on("dataloading",(()=>{this._sourceErrored=!1})),this.on("error",(()=>{this._sourceErrored=this._source.loaded()})),this._source=((e,t,i,a)=>{const n=new(U(t.type))(e,t,i,a);if(n.id!==e)throw new Error(`Expected Source id to be ${e} instead of ${n.id}`);return n})(e,t,i,this),this._tiles={},this._cache=new H(0,this._unloadTile.bind(this)),this._timers={},this._cacheTimers={},this._maxTileCacheSize=null,this._maxTileCacheZoomLevels=null,this._loadedParentTiles={},this._coveredTiles={},this._state=new K,this._didEmitContent=!1,this._updated=!1}onAdd(e){this.map=e,this._maxTileCacheSize=e?e._maxTileCacheSize:null,this._maxTileCacheZoomLevels=e?e._maxTileCacheZoomLevels:null,this._source&&this._source.onAdd&&this._source.onAdd(e)}onRemove(e){this.clearTiles(),this._source&&this._source.onRemove&&this._source.onRemove(e)}loaded(){if(this._sourceErrored)return!0;if(!this._sourceLoaded)return!1;if(!this._source.loaded())return!1;if(!(void 0===this.used&&void 0===this.usedForTerrain||this.used||this.usedForTerrain))return!0;if(!this._updated)return!1;for(const e in this._tiles){const t=this._tiles[e];if("loaded"!==t.state&&"errored"!==t.state)return!1}return!0}getSource(){return this._source}pause(){this._paused=!0}resume(){if(!this._paused)return;const e=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,e&&this.reload(),this.transform&&this.update(this.transform,this.terrain)}_loadTile(e,t){return this._source.loadTile(e,t)}_unloadTile(e){if(this._source.unloadTile)return this._source.unloadTile(e,(()=>{}))}_abortTile(t){this._source.abortTile&&this._source.abortTile(t,(()=>{})),this._source.fire(new e.k("dataabort",{tile:t,coord:t.tileID,dataType:"source"}))}serialize(){return this._source.serialize()}prepare(e){this._source.prepare&&this._source.prepare(),this._state.coalesceChanges(this._tiles,this.map?this.map.painter:null);for(const t in this._tiles){const i=this._tiles[t];i.upload(e),i.prepare(this.map.style.imageManager)}}getIds(){return Object.values(this._tiles).map((e=>e.tileID)).sort(J).map((e=>e.key))}getRenderableIds(t){const i=[];for(const e in this._tiles)this._isIdRenderable(e,t)&&i.push(this._tiles[e]);return t?i.sort(((t,i)=>{const a=t.tileID,n=i.tileID,o=new e.P(a.canonical.x,a.canonical.y)._rotate(this.transform.angle),r=new e.P(n.canonical.x,n.canonical.y)._rotate(this.transform.angle);return a.overscaledZ-n.overscaledZ||r.y-o.y||r.x-o.x})).map((e=>e.tileID.key)):i.map((e=>e.tileID)).sort(J).map((e=>e.key))}hasRenderableParent(e){const t=this.findLoadedParent(e,0);return!!t&&this._isIdRenderable(t.tileID.key)}_isIdRenderable(e,t){return this._tiles[e]&&this._tiles[e].hasData()&&!this._coveredTiles[e]&&(t||!this._tiles[e].holdingForFade())}reload(){if(this._paused)this._shouldReloadOnResume=!0;else{this._cache.reset();for(const e in this._tiles)"errored"!==this._tiles[e].state&&this._reloadTile(e,"reloading")}}_reloadTile(e,t){const i=this._tiles[e];i&&("loading"!==i.state&&(i.state=t),this._loadTile(i,this._tileLoaded.bind(this,i,e,t)))}_tileLoaded(t,i,a,n){if(n)return t.state="errored",void(404!==n.status?this._source.fire(new e.j(n,{tile:t})):this.update(this.transform,this.terrain));t.timeAdded=e.h.now(),"expired"===a&&(t.refreshedUponExpiration=!0),this._setTileReloadTimer(i,t),"raster-dem"===this.getSource().type&&t.dem&&this._backfillDEM(t),this._state.initializeTileState(t,this.map?this.map.painter:null),t.aborted||this._source.fire(new e.k("data",{dataType:"source",tile:t,coord:t.tileID}))}_backfillDEM(e){const t=this.getRenderableIds();for(let a=0;a<t.length;a++){const n=t[a];if(e.neighboringTiles&&e.neighboringTiles[n]){const t=this.getTileByID(n);i(e,t),i(t,e)}}function i(e,t){e.needsHillshadePrepare=!0,e.needsTerrainPrepare=!0;let i=t.tileID.canonical.x-e.tileID.canonical.x;const a=t.tileID.canonical.y-e.tileID.canonical.y,n=Math.pow(2,e.tileID.canonical.z),o=t.tileID.key;0===i&&0===a||Math.abs(a)>1||(Math.abs(i)>1&&(1===Math.abs(i+n)?i+=n:1===Math.abs(i-n)&&(i-=n)),t.dem&&e.dem&&(e.dem.backfillBorder(t.dem,i,a),e.neighboringTiles&&e.neighboringTiles[o]&&(e.neighboringTiles[o].backfilled=!0)))}}getTile(e){return this.getTileByID(e.key)}getTileByID(e){return this._tiles[e]}_retainLoadedChildren(e,t,i,a){for(const n in this._tiles){let o=this._tiles[n];if(a[n]||!o.hasData()||o.tileID.overscaledZ<=t||o.tileID.overscaledZ>i)continue;let r=o.tileID;for(;o&&o.tileID.overscaledZ>t+1;){const e=o.tileID.scaledTo(o.tileID.overscaledZ-1);o=this._tiles[e.key],o&&o.hasData()&&(r=e)}let s=r;for(;s.overscaledZ>t;)if(s=s.scaledTo(s.overscaledZ-1),e[s.key]){a[r.key]=r;break}}}findLoadedParent(e,t){if(e.key in this._loadedParentTiles){const i=this._loadedParentTiles[e.key];return i&&i.tileID.overscaledZ>=t?i:null}for(let i=e.overscaledZ-1;i>=t;i--){const t=e.scaledTo(i),a=this._getLoadedTile(t);if(a)return a}}_getLoadedTile(e){const t=this._tiles[e.key];return t&&t.hasData()?t:this._cache.getByKey(e.wrapped().key)}updateCacheSize(t){const i=Math.ceil(t.width/this._source.tileSize)+1,a=Math.ceil(t.height/this._source.tileSize)+1,n=Math.floor(i*a*(null===this._maxTileCacheZoomLevels?e.c.MAX_TILE_CACHE_ZOOM_LEVELS:this._maxTileCacheZoomLevels)),o="number"==typeof this._maxTileCacheSize?Math.min(this._maxTileCacheSize,n):n;this._cache.setMaxSize(o)}handleWrapJump(e){const t=Math.round((e-(void 0===this._prevLng?e:this._prevLng))/360);if(this._prevLng=e,t){const e={};for(const i in this._tiles){const a=this._tiles[i];a.tileID=a.tileID.unwrapTo(a.tileID.wrap+t),e[a.tileID.key]=a}this._tiles=e;for(const e in this._timers)clearTimeout(this._timers[e]),delete this._timers[e];for(const e in this._tiles)this._setTileReloadTimer(e,this._tiles[e])}}update(t,i){if(this.transform=t,this.terrain=i,!this._sourceLoaded||this._paused)return;let a;this.updateCacheSize(t),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used||this.usedForTerrain?this._source.tileID?a=t.getVisibleUnwrappedCoordinates(this._source.tileID).map((t=>new e.O(t.canonical.z,t.wrap,t.canonical.z,t.canonical.x,t.canonical.y))):(a=t.coveringTiles({tileSize:this.usedForTerrain?this.tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:!this.usedForTerrain&&this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled,terrain:i}),this._source.hasTile&&(a=a.filter((e=>this._source.hasTile(e))))):a=[];const n=t.coveringZoomLevel(this._source),o=Math.max(n-X.maxOverzooming,this._source.minzoom),r=Math.max(n+X.maxUnderzooming,this._source.minzoom);if(this.usedForTerrain){const e={};for(const t of a)if(t.canonical.z>this._source.minzoom){const i=t.scaledTo(t.canonical.z-1);e[i.key]=i;const a=t.scaledTo(Math.max(this._source.minzoom,Math.min(t.canonical.z,5)));e[a.key]=a}a=a.concat(Object.values(e))}const s=0===a.length&&!this._updated&&this._didEmitContent;this._updated=!0,s&&this.fire(new e.k("data",{sourceDataType:"idle",dataType:"source",sourceId:this.id}));const l=this._updateRetainedTiles(a,n);if(Y(this._source.type)){const t={},s={},d=Object.keys(l),u=e.h.now();for(const e of d){const i=l[e],a=this._tiles[e];if(!a||0!==a.fadeEndTime&&a.fadeEndTime<=u)continue;const n=this.findLoadedParent(i,o);n&&(this._addTile(n.tileID),t[n.tileID.key]=n.tileID),s[e]=i}this._retainLoadedChildren(s,n,r,l);for(const e in t)l[e]||(this._coveredTiles[e]=!0,l[e]=t[e]);if(i){const e={},t={};for(const i of a)this._tiles[i.key].hasData()?e[i.key]=i:t[i.key]=i;for(const i in t){const a=t[i].children(this._source.maxzoom);this._tiles[a[0].key]&&this._tiles[a[1].key]&&this._tiles[a[2].key]&&this._tiles[a[3].key]&&(e[a[0].key]=l[a[0].key]=a[0],e[a[1].key]=l[a[1].key]=a[1],e[a[2].key]=l[a[2].key]=a[2],e[a[3].key]=l[a[3].key]=a[3],delete t[i])}for(const i in t){const a=this.findLoadedParent(t[i],this._source.minzoom);if(a){e[a.tileID.key]=l[a.tileID.key]=a.tileID;for(const t in e)e[t].isChildOf(a.tileID)&&delete e[t]}}for(const t in this._tiles)e[t]||(this._coveredTiles[t]=!0)}}for(const e in l)this._tiles[e].clearFadeHold();const d=e.ab(this._tiles,l);for(const e of d){const t=this._tiles[e];t.hasSymbolBuckets&&!t.holdingForFade()?t.setHoldDuration(this.map._fadeDuration):t.hasSymbolBuckets&&!t.symbolFadeFinished()||this._removeTile(e)}this._updateLoadedParentTileCache()}releaseSymbolFadeTiles(){for(const e in this._tiles)this._tiles[e].holdingForFade()&&this._removeTile(e)}_updateRetainedTiles(e,t){const i={},a={},n=Math.max(t-X.maxOverzooming,this._source.minzoom),o=Math.max(t+X.maxUnderzooming,this._source.minzoom),r={};for(const a of e){const e=this._addTile(a);i[a.key]=a,e.hasData()||t<this._source.maxzoom&&(r[a.key]=a)}this._retainLoadedChildren(r,t,o,i);for(const o of e){let e=this._tiles[o.key];if(e.hasData())continue;if(t+1>this._source.maxzoom){const e=o.children(this._source.maxzoom)[0],t=this.getTile(e);if(t&&t.hasData()){i[e.key]=e;continue}}else{const e=o.children(this._source.maxzoom);if(i[e[0].key]&&i[e[1].key]&&i[e[2].key]&&i[e[3].key])continue}let r=e.wasRequested();for(let t=o.overscaledZ-1;t>=n;--t){const n=o.scaledTo(t);if(a[n.key])break;if(a[n.key]=!0,e=this.getTile(n),!e&&r&&(e=this._addTile(n)),e){const t=e.hasData();if((r||t)&&(i[n.key]=n),r=e.wasRequested(),t)break}}}return i}_updateLoadedParentTileCache(){this._loadedParentTiles={};for(const e in this._tiles){const t=[];let i,a=this._tiles[e].tileID;for(;a.overscaledZ>0;){if(a.key in this._loadedParentTiles){i=this._loadedParentTiles[a.key];break}t.push(a.key);const e=a.scaledTo(a.overscaledZ-1);if(i=this._getLoadedTile(e),i)break;a=e}for(const e of t)this._loadedParentTiles[e]=i}}_addTile(t){let i=this._tiles[t.key];if(i)return i;i=this._cache.getAndRemove(t),i&&(this._setTileReloadTimer(t.key,i),i.tileID=t,this._state.initializeTileState(i,this.map?this.map.painter:null),this._cacheTimers[t.key]&&(clearTimeout(this._cacheTimers[t.key]),delete this._cacheTimers[t.key],this._setTileReloadTimer(t.key,i)));const a=i;return i||(i=new W(t,this._source.tileSize*t.overscaleFactor()),this._loadTile(i,this._tileLoaded.bind(this,i,t.key,i.state))),i.uses++,this._tiles[t.key]=i,a||this._source.fire(new e.k("dataloading",{tile:i,coord:i.tileID,dataType:"source"})),i}_setTileReloadTimer(e,t){e in this._timers&&(clearTimeout(this._timers[e]),delete this._timers[e]);const i=t.getExpiryTimeout();i&&(this._timers[e]=setTimeout((()=>{this._reloadTile(e,"expired"),delete this._timers[e]}),i))}_removeTile(e){const t=this._tiles[e];t&&(t.uses--,delete this._tiles[e],this._timers[e]&&(clearTimeout(this._timers[e]),delete this._timers[e]),t.uses>0||(t.hasData()&&"reloading"!==t.state?this._cache.add(t.tileID,t,t.getExpiryTimeout()):(t.aborted=!0,this._abortTile(t),this._unloadTile(t))))}clearTiles(){this._shouldReloadOnResume=!1,this._paused=!1;for(const e in this._tiles)this._removeTile(e);this._cache.reset()}tilesIn(t,i,a){const n=[],o=this.transform;if(!o)return n;const r=a?o.getCameraQueryGeometry(t):t,s=t.map((e=>o.pointCoordinate(e,this.terrain))),l=r.map((e=>o.pointCoordinate(e,this.terrain))),d=this.getIds();let u=1/0,h=1/0,c=-1/0,m=-1/0;for(const e of l)u=Math.min(u,e.x),h=Math.min(h,e.y),c=Math.max(c,e.x),m=Math.max(m,e.y);for(let t=0;t<d.length;t++){const a=this._tiles[d[t]];if(a.holdingForFade())continue;const r=a.tileID,p=Math.pow(2,o.zoom-a.tileID.overscaledZ),f=i*a.queryPadding*e.N/a.tileSize/p,_=[r.getTilePoint(new e.U(u,h)),r.getTilePoint(new e.U(c,m))];if(_[0].x-f<e.N&&_[0].y-f<e.N&&_[1].x+f>=0&&_[1].y+f>=0){const e=s.map((e=>r.getTilePoint(e))),t=l.map((e=>r.getTilePoint(e)));n.push({tile:a,tileID:r,queryGeometry:e,cameraQueryGeometry:t,scale:p})}}return n}getVisibleCoordinates(e){const t=this.getRenderableIds(e).map((e=>this._tiles[e].tileID));for(const e of t)e.posMatrix=this.transform.calculatePosMatrix(e.toUnwrapped());return t}hasTransition(){if(this._source.hasTransition())return!0;if(Y(this._source.type)){const t=e.h.now();for(const e in this._tiles)if(this._tiles[e].fadeEndTime>=t)return!0}return!1}setFeatureState(e,t,i){this._state.updateState(e=e||"_geojsonTileLayer",t,i)}removeFeatureState(e,t,i){this._state.removeFeatureState(e=e||"_geojsonTileLayer",t,i)}getFeatureState(e,t){return this._state.getState(e=e||"_geojsonTileLayer",t)}setDependencies(e,t,i){const a=this._tiles[e];a&&a.setDependencies(t,i)}reloadTilesForDependencies(e,t){for(const i in this._tiles)this._tiles[i].hasDependency(e,t)&&this._reloadTile(i,"reloading");this._cache.filter((i=>!i.hasDependency(e,t)))}}function J(e,t){const i=Math.abs(2*e.wrap)-+(e.wrap<0),a=Math.abs(2*t.wrap)-+(t.wrap<0);return e.overscaledZ-t.overscaledZ||a-i||t.canonical.y-e.canonical.y||t.canonical.x-e.canonical.x}function Y(e){return"raster"===e||"image"===e||"video"===e}X.maxOverzooming=10,X.maxUnderzooming=3;const Q="mapboxgl_preloaded_worker_pool";class ee{constructor(){this.active={}}acquire(t){if(!this.workers)for(this.workers=[];this.workers.length<ee.workerCount;)this.workers.push(new Worker(e.c.WORKER_URL));return this.active[t]=!0,this.workers.slice()}release(e){delete this.active[e],0===this.numActive()&&(this.workers.forEach((e=>{e.terminate()})),this.workers=null)}isPreloaded(){return!!this.active[Q]}numActive(){return Object.keys(this.active).length}}const te=Math.floor(e.h.hardwareConcurrency/2);let ie;function ae(){return ie||(ie=new ee),ie}ee.workerCount=e.ac(globalThis)?Math.max(Math.min(te,3),1):1;class ne{constructor(e,t){this.reset(e,t)}reset(e,t){this.points=e||[],this._distances=[0];for(let e=1;e<this.points.length;e++)this._distances[e]=this._distances[e-1]+this.points[e].dist(this.points[e-1]);this.length=this._distances[this._distances.length-1],this.padding=Math.min(t||0,.5*this.length),this.paddedLength=this.length-2*this.padding}lerp(t){if(1===this.points.length)return this.points[0];t=e.ad(t,0,1);let i=1,a=this._distances[i];const n=t*this.paddedLength+this.padding;for(;a<n&&i<this._distances.length;)a=this._distances[++i];const o=i-1,r=this._distances[o],s=a-r,l=s>0?(n-r)/s:0;return this.points[o].mult(1-l).add(this.points[i].mult(l))}}function oe(e,t){let i=!0;return"always"===e||"never"!==e&&"never"!==t||(i=!1),i}class re{constructor(e,t,i){const a=this.boxCells=[],n=this.circleCells=[];this.xCellCount=Math.ceil(e/i),this.yCellCount=Math.ceil(t/i);for(let e=0;e<this.xCellCount*this.yCellCount;e++)a.push([]),n.push([]);this.circleKeys=[],this.boxKeys=[],this.bboxes=[],this.circles=[],this.width=e,this.height=t,this.xScale=this.xCellCount/e,this.yScale=this.yCellCount/t,this.boxUid=0,this.circleUid=0}keysLength(){return this.boxKeys.length+this.circleKeys.length}insert(e,t,i,a,n){this._forEachCell(t,i,a,n,this._insertBoxCell,this.boxUid++),this.boxKeys.push(e),this.bboxes.push(t),this.bboxes.push(i),this.bboxes.push(a),this.bboxes.push(n)}insertCircle(e,t,i,a){this._forEachCell(t-a,i-a,t+a,i+a,this._insertCircleCell,this.circleUid++),this.circleKeys.push(e),this.circles.push(t),this.circles.push(i),this.circles.push(a)}_insertBoxCell(e,t,i,a,n,o){this.boxCells[n].push(o)}_insertCircleCell(e,t,i,a,n,o){this.circleCells[n].push(o)}_query(e,t,i,a,n,o,r){if(i<0||e>this.width||a<0||t>this.height)return[];const s=[];if(e<=0&&t<=0&&this.width<=i&&this.height<=a){if(n)return[{key:null,x1:e,y1:t,x2:i,y2:a}];for(let e=0;e<this.boxKeys.length;e++)s.push({key:this.boxKeys[e],x1:this.bboxes[4*e],y1:this.bboxes[4*e+1],x2:this.bboxes[4*e+2],y2:this.bboxes[4*e+3]});for(let e=0;e<this.circleKeys.length;e++){const t=this.circles[3*e],i=this.circles[3*e+1],a=this.circles[3*e+2];s.push({key:this.circleKeys[e],x1:t-a,y1:i-a,x2:t+a,y2:i+a})}}else this._forEachCell(e,t,i,a,this._queryCell,s,{hitTest:n,overlapMode:o,seenUids:{box:{},circle:{}}},r);return s}query(e,t,i,a){return this._query(e,t,i,a,!1,null)}hitTest(e,t,i,a,n,o){return this._query(e,t,i,a,!0,n,o).length>0}hitTestCircle(e,t,i,a,n){const o=e-i,r=e+i,s=t-i,l=t+i;if(r<0||o>this.width||l<0||s>this.height)return!1;const d=[];return this._forEachCell(o,s,r,l,this._queryCellCircle,d,{hitTest:!0,overlapMode:a,circle:{x:e,y:t,radius:i},seenUids:{box:{},circle:{}}},n),d.length>0}_queryCell(e,t,i,a,n,o,r,s){const{seenUids:l,hitTest:d,overlapMode:u}=r,h=this.boxCells[n];if(null!==h){const n=this.bboxes;for(const r of h)if(!l.box[r]){l.box[r]=!0;const h=4*r,c=this.boxKeys[r];if(e<=n[h+2]&&t<=n[h+3]&&i>=n[h+0]&&a>=n[h+1]&&(!s||s(c))&&(!d||!oe(u,c.overlapMode))&&(o.push({key:c,x1:n[h],y1:n[h+1],x2:n[h+2],y2:n[h+3]}),d))return!0}}const c=this.circleCells[n];if(null!==c){const n=this.circles;for(const r of c)if(!l.circle[r]){l.circle[r]=!0;const h=3*r,c=this.circleKeys[r];if(this._circleAndRectCollide(n[h],n[h+1],n[h+2],e,t,i,a)&&(!s||s(c))&&(!d||!oe(u,c.overlapMode))){const e=n[h],t=n[h+1],i=n[h+2];if(o.push({key:c,x1:e-i,y1:t-i,x2:e+i,y2:t+i}),d)return!0}}}return!1}_queryCellCircle(e,t,i,a,n,o,r,s){const{circle:l,seenUids:d,overlapMode:u}=r,h=this.boxCells[n];if(null!==h){const e=this.bboxes;for(const t of h)if(!d.box[t]){d.box[t]=!0;const i=4*t,a=this.boxKeys[t];if(this._circleAndRectCollide(l.x,l.y,l.radius,e[i+0],e[i+1],e[i+2],e[i+3])&&(!s||s(a))&&!oe(u,a.overlapMode))return o.push(!0),!0}}const c=this.circleCells[n];if(null!==c){const e=this.circles;for(const t of c)if(!d.circle[t]){d.circle[t]=!0;const i=3*t,a=this.circleKeys[t];
5if(this._circlesCollide(e[i],e[i+1],e[i+2],l.x,l.y,l.radius)&&(!s||s(a))&&!oe(u,a.overlapMode))return o.push(!0),!0}}}_forEachCell(e,t,i,a,n,o,r,s){const l=this._convertToXCellCoord(e),d=this._convertToYCellCoord(t),u=this._convertToXCellCoord(i),h=this._convertToYCellCoord(a);for(let c=l;c<=u;c++)for(let l=d;l<=h;l++)if(n.call(this,e,t,i,a,this.xCellCount*l+c,o,r,s))return}_convertToXCellCoord(e){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(e*this.xScale)))}_convertToYCellCoord(e){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(e*this.yScale)))}_circlesCollide(e,t,i,a,n,o){const r=a-e,s=n-t,l=i+o;return l*l>r*r+s*s}_circleAndRectCollide(e,t,i,a,n,o,r){const s=(o-a)/2,l=Math.abs(e-(a+s));if(l>s+i)return!1;const d=(r-n)/2,u=Math.abs(t-(n+d));if(u>d+i)return!1;if(l<=s||u<=d)return!0;const h=l-s,c=u-d;return h*h+c*c<=i*i}}function se(t,i,a,n,o){const r=e.Z();return i?(e.a0(r,r,[1/o,1/o,1]),a||e.ae(r,r,n.angle)):e.a1(r,n.labelPlaneMatrix,t),r}function le(t,i,a,n,o){if(i){const i=e.af(t);return e.a0(i,i,[o,o,1]),a||e.ae(i,i,-n.angle),i}return n.glCoordMatrix}function de(t,i,a){let n;a?(n=[t.x,t.y,a(t.x,t.y),1],e.ag(n,n,i)):(n=[t.x,t.y,0,1],ke(n,n,i));const o=n[3];return{point:new e.P(n[0]/o,n[1]/o),signedDistanceFromCamera:o}}function ue(e,t){return.5+e/t*.5}function he(e,t){const i=e[0]/e[3],a=e[1]/e[3];return i>=-t[0]&&i<=t[0]&&a>=-t[1]&&a<=t[1]}function ce(t,i,a,n,o,r,s,l,d,u){const h=n?t.textSizeData:t.iconSizeData,c=e.ah(h,a.transform.zoom),m=[256/a.width*2+1,256/a.height*2+1],p=n?t.text.dynamicLayoutVertexArray:t.icon.dynamicLayoutVertexArray;p.clear();const f=t.lineVertexArray,_=n?t.text.placedSymbolArray:t.icon.placedSymbolArray,g=a.transform.width/a.transform.height;let y=!1;for(let n=0;n<_.length;n++){const v=_.get(n);if(v.hidden||v.writingMode===e.ai.vertical&&!y){be(v.numGlyphs,p);continue}let w;if(y=!1,u?(w=[v.anchorX,v.anchorY,u(v.anchorX,v.anchorY),1],e.ag(w,w,i)):(w=[v.anchorX,v.anchorY,0,1],ke(w,w,i)),!he(w,m)){be(v.numGlyphs,p);continue}const x=ue(a.transform.cameraToCenterDistance,w[3]),b=e.aj(h,c,v),k=s?b/x:b*x,S=new e.P(v.anchorX,v.anchorY),T=de(S,o,u).point,C={projections:{},offsets:{}},z=fe(v,k,!1,l,i,o,r,t.glyphOffsetArray,f,p,T,S,C,g,d,u);y=z.useVertical,(z.notEnoughRoom||y||z.needsFlipping&&fe(v,k,!0,l,i,o,r,t.glyphOffsetArray,f,p,T,S,C,g,d,u).notEnoughRoom)&&be(v.numGlyphs,p)}n?t.text.dynamicLayoutVertexBuffer.updateData(p):t.icon.dynamicLayoutVertexBuffer.updateData(p)}function me(e,t,i,a,n,o,r,s,l,d,u,h,c){const m=s.glyphStartIndex+s.numGlyphs,p=s.lineStartIndex,f=s.lineStartIndex+s.lineLength,_=t.getoffsetX(s.glyphStartIndex),g=t.getoffsetX(m-1),y=we(e*_,i,a,n,o,r,s.segment,p,f,l,d,u,h,c);if(!y)return null;const v=we(e*g,i,a,n,o,r,s.segment,p,f,l,d,u,h,c);return v?{first:y,last:v}:null}function pe(t,i,a,n){return t===e.ai.horizontal&&Math.abs(a.y-i.y)>Math.abs(a.x-i.x)*n?{useVertical:!0}:(t===e.ai.vertical?i.y<a.y:i.x>a.x)?{needsFlipping:!0}:null}function fe(t,i,a,n,o,r,s,l,d,u,h,c,m,p,f,_){const g=i/24,y=t.lineOffsetX*g,v=t.lineOffsetY*g;let w;if(t.numGlyphs>1){const e=t.glyphStartIndex+t.numGlyphs,i=t.lineStartIndex,o=t.lineStartIndex+t.lineLength,u=me(g,l,y,v,a,h,c,t,d,r,m,f,_);if(!u)return{notEnoughRoom:!0};const x=de(u.first.point,s,_).point,b=de(u.last.point,s,_).point;if(n&&!a){const e=pe(t.writingMode,x,b,p);if(e)return e}w=[u.first];for(let n=t.glyphStartIndex+1;n<e-1;n++)w.push(we(g*l.getoffsetX(n),y,v,a,h,c,t.segment,i,o,d,r,m,f,_));w.push(u.last)}else{if(n&&!a){const i=de(c,o,_).point,a=t.lineStartIndex+t.segment+1,n=new e.P(d.getx(a),d.gety(a)),r=de(n,o,_),s=r.signedDistanceFromCamera>0?r.point:_e(c,n,i,1,o,_),l=pe(t.writingMode,i,s,p);if(l)return l}const i=we(g*l.getoffsetX(t.glyphStartIndex),y,v,a,h,c,t.segment,t.lineStartIndex,t.lineStartIndex+t.lineLength,d,r,m,f,_);if(!i)return{notEnoughRoom:!0};w=[i]}for(const t of w)e.ak(u,t.point,t.angle);return{}}function _e(e,t,i,a,n,o){const r=de(e.add(e.sub(t)._unit()),n,o).point,s=i.sub(r);return i.add(s._mult(a/s.mag()))}function ge(t,i){const{projectionCache:a,lineVertexArray:n,labelPlaneMatrix:o,tileAnchorPoint:r,distanceFromAnchor:s,getElevation:l,previousVertex:d,direction:u,absOffsetX:h}=i;if(a.projections[t])return a.projections[t];
5const c=new e.P(n.getx(t),n.gety(t)),m=de(c,o,l);if(m.signedDistanceFromCamera>0)return a.projections[t]=m.point,m.point;const p=t-u;return _e(0===s?r:new e.P(n.getx(p),n.gety(p)),c,d,h-s+1,o,l)}function ye(e,t,i){return e._unit()._perp()._mult(t*i)}function ve(t,i,a,n,o,r,s,l){const{projectionCache:d,direction:u}=l;if(d.offsets[t])return d.offsets[t];const h=a.add(i);if(t+u<n||t+u>=o)return d.offsets[t]=h,h;const c=ge(t+u,l),m=ye(c.sub(a),s,u),p=a.add(m),f=c.add(m);return d.offsets[t]=e.al(r,h,p,f)||h,d.offsets[t]}function we(e,t,i,a,n,o,r,s,l,d,u,h,c,m){const p=a?e-t:e+t;let f=p>0?1:-1,_=0;a&&(f*=-1,_=Math.PI),f<0&&(_+=Math.PI);let g,y,v=f>0?s+r:s+r+1,w=n,x=n,b=0,k=0;const S=Math.abs(p),T=[];let C;for(;b+k<=S;){if(v+=f,v<s||v>=l)return null;b+=k,x=w,y=g;const e={projectionCache:h,lineVertexArray:d,labelPlaneMatrix:u,tileAnchorPoint:o,distanceFromAnchor:b,getElevation:m,previousVertex:x,direction:f,absOffsetX:S};if(w=ge(v,e),0===i)T.push(x),C=w.sub(x);else{let t;const a=w.sub(x);t=0===a.mag()?ye(ge(v+f,e).sub(w),i,f):ye(a,i,f),y||(y=x.add(t)),g=ve(v,t,w,s,l,y,i,e),T.push(y),C=g.sub(y)}k=C.mag()}const z=C._mult((S-b)/k)._add(y||x),P=_+Math.atan2(w.y-x.y,w.x-x.x);return T.push(z),{point:z,angle:c?P:0,path:T}}const xe=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function be(e,t){for(let i=0;i<e;i++){const e=t.length;t.resize(e+4),t.float32.set(xe,3*e)}}function ke(e,t,i){const a=t[0],n=t[1];return e[0]=i[0]*a+i[4]*n+i[12],e[1]=i[1]*a+i[5]*n+i[13],e[3]=i[3]*a+i[7]*n+i[15],e}const Se=100;class Te{constructor(e,t=new re(e.width+200,e.height+200,25),i=new re(e.width+200,e.height+200,25)){this.transform=e,this.grid=t,this.ignoredGrid=i,this.pitchfactor=Math.cos(e._pitch)*e.cameraToCenterDistance,this.screenRightBoundary=e.width+Se,this.screenBottomBoundary=e.height+Se,this.gridRightBoundary=e.width+200,this.gridBottomBoundary=e.height+200,this.perspectiveRatioCutoff=.6}placeCollisionBox(e,t,i,a,n,o){const r=this.projectAndGetPerspectiveRatio(a,e.anchorPointX,e.anchorPointY,o),s=i*r.perspectiveRatio,l=e.x1*s+r.point.x,d=e.y1*s+r.point.y,u=e.x2*s+r.point.x,h=e.y2*s+r.point.y;return!this.isInsideGrid(l,d,u,h)||"always"!==t&&this.grid.hitTest(l,d,u,h,t,n)||r.perspectiveRatio<this.perspectiveRatioCutoff?{box:[],offscreen:!1}:{box:[l,d,u,h],offscreen:this.isOffscreen(l,d,u,h)}}placeCollisionCircles(t,i,a,n,o,r,s,l,d,u,h,c,m,p){const f=[],_=new e.P(i.anchorX,i.anchorY),g=de(_,r,p),y=ue(this.transform.cameraToCenterDistance,g.signedDistanceFromCamera),v=(u?o/y:o*y)/e.ap,w=de(_,s,p).point,x=me(v,n,i.lineOffsetX*v,i.lineOffsetY*v,!1,w,_,i,a,s,{projections:{},offsets:{}},!1,p);let b=!1,k=!1,S=!0;if(x){const i=.5*c*y+m,a=new e.P(-100,-100),n=new e.P(this.screenRightBoundary,this.screenBottomBoundary),o=new ne,r=x.first,s=x.last;let u=[];for(let e=r.path.length-1;e>=1;e--)u.push(r.path[e]);for(let e=1;e<s.path.length;e++)u.push(s.path[e]);const _=2.5*i;if(l){const e=u.map((e=>de(e,l,p)));u=e.some((e=>e.signedDistanceFromCamera<=0))?[]:e.map((e=>e.point))}let g=[];if(u.length>0){const t=u[0].clone(),i=u[0].clone();for(let e=1;e<u.length;e++)t.x=Math.min(t.x,u[e].x),t.y=Math.min(t.y,u[e].y),i.x=Math.max(i.x,u[e].x),i.y=Math.max(i.y,u[e].y);g=t.x>=a.x&&i.x<=n.x&&t.y>=a.y&&i.y<=n.y?[u]:i.x<a.x||t.x>n.x||i.y<a.y||t.y>n.y?[]:e.am([u],a.x,a.y,n.x,n.y)}for(const e of g){o.reset(e,.25*i);let a=0;a=o.length<=.5*i?1:Math.ceil(o.paddedLength/_)+1;for(let e=0;e<a;e++){const n=e/Math.max(a-1,1),r=o.lerp(n),s=r.x+Se,l=r.y+Se;f.push(s,l,i,0);const u=s-i,c=l-i,m=s+i,p=l+i;if(S=S&&this.isOffscreen(u,c,m,p),k=k||this.isInsideGrid(u,c,m,p),"always"!==t&&this.grid.hitTestCircle(s,l,i,t,h)&&(b=!0,!d))return{circles:[],offscreen:!1,collisionDetected:b}}}}return{circles:!d&&b||!k||y<this.perspectiveRatioCutoff?[]:f,offscreen:S,collisionDetected:b}}queryRenderedSymbols(t){if(0===t.length||0===this.grid.keysLength()&&0===this.ignoredGrid.keysLength())return{};const i=[];let a=1/0,n=1/0,o=-1/0,r=-1/0;for(const s of t){const t=new e.P(s.x+Se,s.y+Se);a=Math.min(a,t.x),n=Math.min(n,t.y),o=Math.max(o,t.x),r=Math.max(r,t.y),i.push(t)}const s=this.grid.query(a,n,o,r).concat(this.ignoredGrid.query(a,n,o,r)),l={},d={};for(const t of s){const a=t.key;if(void 0===l[a.bucketInstanceId]&&(l[a.bucketInstanceId]={}),l[a.bucketInstanceId][a.featureIndex])continue;const n=[new e.P(t.x1,t.y1),new e.P(t.x2,t.y1),new e.P(t.x2,t.y2),new e.P(t.x1,t.y2)];e.an(i,n)&&(l[a.bucketInstanceId][a.featureIndex]=!0,void 0===d[a.bucketInstanceId]&&(d[a.bucketInstanceId]=[]),d[a.bucketInstanceId].push(a.featureIndex))}return d}insertCollisionBox(e,t,i,a,n,o){(i?this.ignoredGrid:this.grid).insert({bucketInstanceId:a,featureIndex:n,collisionGroupID:o,overlapMode:t},e[0],e[1],e[2],e[3])}insertCollisionCircles(e,t,i,a,n,o){const r=i?this.ignoredGrid:this.grid,s={bucketInstanceId:a,featureIndex:n,collisionGroupID:o,overlapMode:t};for(let t=0;t<e.length;
5t+=4)r.insertCircle(s,e[t],e[t+1],e[t+2])}projectAndGetPerspectiveRatio(t,i,a,n){let o;return n?(o=[i,a,n(i,a),1],e.ag(o,o,t)):(o=[i,a,0,1],ke(o,o,t)),{point:new e.P((o[0]/o[3]+1)/2*this.transform.width+Se,(-o[1]/o[3]+1)/2*this.transform.height+Se),perspectiveRatio:.5+this.transform.cameraToCenterDistance/o[3]*.5}}isOffscreen(e,t,i,a){return i<Se||e>=this.screenRightBoundary||a<Se||t>this.screenBottomBoundary}isInsideGrid(e,t,i,a){return i>=0&&e<this.gridRightBoundary&&a>=0&&t<this.gridBottomBoundary}getViewportMatrix(){const t=e.ao([]);return e.$(t,t,[-100,-100,0]),t}}function Ce(t,i,a){return i*(e.N/(t.tileSize*Math.pow(2,a-t.tileID.overscaledZ)))}class ze{constructor(e,t,i,a){this.opacity=e?Math.max(0,Math.min(1,e.opacity+(e.placed?t:-t))):a&&i?1:0,this.placed=i}isHidden(){return 0===this.opacity&&!this.placed}}class Pe{constructor(e,t,i,a,n){this.text=new ze(e?e.text:null,t,i,n),this.icon=new ze(e?e.icon:null,t,a,n)}isHidden(){return this.text.isHidden()&&this.icon.isHidden()}}class Me{constructor(e,t,i){this.text=e,this.icon=t,this.skipFade=i}}class Le{constructor(){this.invProjMatrix=e.Z(),this.viewportMatrix=e.Z(),this.circles=[]}}class Ae{constructor(e,t,i,a,n){this.bucketInstanceId=e,this.featureIndex=t,this.sourceLayerIndex=i,this.bucketIndex=a,this.tileID=n}}class Ie{constructor(e){this.crossSourceCollisions=e,this.maxGroupID=0,this.collisionGroups={}}get(e){if(this.crossSourceCollisions)return{ID:0,predicate:null};if(!this.collisionGroups[e]){const t=++this.maxGroupID;this.collisionGroups[e]={ID:t,predicate:e=>e.collisionGroupID===t}}return this.collisionGroups[e]}}function Ee(t,i,a,n,o){const{horizontalAlign:r,verticalAlign:s}=e.au(t);return new e.P(-(r-.5)*i+n[0]*o,-(s-.5)*a+n[1]*o)}function De(t,i,a,n,o,r){const{x1:s,x2:l,y1:d,y2:u,anchorPointX:h,anchorPointY:c}=t,m=new e.P(i,a);return n&&m._rotate(o?r:-r),{x1:s+m.x,y1:d+m.y,x2:l+m.x,y2:u+m.y,anchorPointX:h,anchorPointY:c}}class je{constructor(e,t,i,a,n){this.transform=e.clone(),this.terrain=t,this.collisionIndex=new Te(this.transform),this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=i,this.retainedQueryData={},this.collisionGroups=new Ie(a),this.collisionCircleArrays={},this.prevPlacement=n,n&&(n.prevPlacement=void 0),this.placedOrientations={}}getBucketParts(t,i,a,n){const o=a.getBucket(i),r=a.latestFeatureIndex;if(!o||!r||i.id!==o.layerIds[0])return;const s=a.collisionBoxArray,l=o.layers[0].layout,d=Math.pow(2,this.transform.zoom-a.tileID.overscaledZ),u=a.tileSize/e.N,h=this.transform.calculatePosMatrix(a.tileID.toUnwrapped()),c="map"===l.get("text-pitch-alignment"),m="map"===l.get("text-rotation-alignment"),p=Ce(a,1,this.transform.zoom),f=se(h,c,m,this.transform,p);let _=null;if(c){const t=le(h,c,m,this.transform,p);_=e.a1([],this.transform.labelPlaneMatrix,t)}this.retainedQueryData[o.bucketInstanceId]=new Ae(o.bucketInstanceId,r,o.sourceLayerIndex,o.index,a.tileID);const g={bucket:o,layout:l,posMatrix:h,textLabelPlaneMatrix:f,labelToScreenMatrix:_,scale:d,textPixelRatio:u,holdingForFade:a.holdingForFade(),collisionBoxArray:s,partiallyEvaluatedTextSize:e.ah(o.textSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(o.sourceID)};if(n)for(const e of o.sortKeyRanges){const{sortKey:i,symbolInstanceStart:a,symbolInstanceEnd:n}=e;t.push({sortKey:i,symbolInstanceStart:a,symbolInstanceEnd:n,parameters:g})}else t.push({symbolInstanceStart:0,symbolInstanceEnd:o.symbolInstances.length,parameters:g})}attemptAnchorPlacement(t,i,a,n,o,r,s,l,d,u,h,c,m,p,f,_){const g=e.aq[t.textAnchor],y=[t.textOffset0,t.textOffset1],v=Ee(g,a,n,y,o),w=this.collisionIndex.placeCollisionBox(De(i,v.x,v.y,r,s,this.transform.angle),h,l,d,u.predicate,_);if((!f||0!==this.collisionIndex.placeCollisionBox(De(f,v.x,v.y,r,s,this.transform.angle),h,l,d,u.predicate,_).box.length)&&w.box.length>0){let e;if(this.prevPlacement&&this.prevPlacement.variableOffsets[c.crossTileID]&&this.prevPlacement.placements[c.crossTileID]&&this.prevPlacement.placements[c.crossTileID].text&&(e=this.prevPlacement.variableOffsets[c.crossTileID].anchor),0===c.crossTileID)throw new Error("symbolInstance.crossTileID can't be 0");return this.variableOffsets[c.crossTileID]={textOffset:y,width:a,height:n,anchor:g,textBoxScale:o,prevAnchor:e},this.markUsedJustification(m,g,c,p),m.allowVerticalPlacement&&(this.markUsedOrientation(m,p,c),this.placedOrientations[c.crossTileID]=p),{shift:v,placedGlyphBoxes:w}}}placeLayerBucketPart(t,i,a){const{bucket:n,layout:o,posMatrix:r,textLabelPlaneMatr
5ix:s,labelToScreenMatrix:l,textPixelRatio:d,holdingForFade:u,collisionBoxArray:h,partiallyEvaluatedTextSize:c,collisionGroup:m}=t.parameters,p=o.get("text-optional"),f=o.get("icon-optional"),_=e.ar(o,"text-overlap","text-allow-overlap"),g="always"===_,y=e.ar(o,"icon-overlap","icon-allow-overlap"),v="always"===y,w="map"===o.get("text-rotation-alignment"),x="map"===o.get("text-pitch-alignment"),b="none"!==o.get("icon-text-fit"),k="viewport-y"===o.get("symbol-z-order"),S=g&&(v||!n.hasIconData()||f),T=v&&(g||!n.hasTextData()||p);!n.collisionArrays&&h&&n.deserializeCollisionBoxes(h);const C=this.retainedQueryData[n.bucketInstanceId].tileID,z=this.terrain?(e,t)=>this.terrain.getElevation(C,e,t):null,P=(t,h)=>{var v,k;if(i[t.crossTileID])return;if(u)return void(this.placements[t.crossTileID]=new Me(!1,!1,!1));let C=!1,P=!1,M=!0,L=null,A={box:null,offscreen:null},I={box:null,offscreen:null},E=null,D=null,j=null,$=0,R=0,B=0;h.textFeatureIndex?$=h.textFeatureIndex:t.useRuntimeCollisionCircles&&($=t.featureIndex),h.verticalTextFeatureIndex&&(R=h.verticalTextFeatureIndex);const F=h.textBox;if(F){const i=i=>{let a=e.ai.horizontal;if(n.allowVerticalPlacement&&!i&&this.prevPlacement){const e=this.prevPlacement.placedOrientations[t.crossTileID];e&&(this.placedOrientations[t.crossTileID]=e,a=e,this.markUsedOrientation(n,a,t))}return a},a=(i,a)=>{if(n.allowVerticalPlacement&&t.numVerticalGlyphVertices>0&&h.verticalTextBox){for(const t of n.writingModes)if(t===e.ai.vertical?(A=a(),I=A):A=i(),A&&A.box&&A.box.length)break}else A=i()},o=t.textAnchorOffsetStartIndex,s=t.textAnchorOffsetEndIndex;if(s===o){const o=(e,i)=>{const a=this.collisionIndex.placeCollisionBox(e,_,d,r,m.predicate,z);return a&&a.box&&a.box.length&&(this.markUsedOrientation(n,i,t),this.placedOrientations[t.crossTileID]=i),a};a((()=>o(F,e.ai.horizontal)),(()=>{const i=h.verticalTextBox;return n.allowVerticalPlacement&&t.numVerticalGlyphVertices>0&&i?o(i,e.ai.vertical):{box:null,offscreen:null}})),i(A&&A.box&&A.box.length)}else{let l=e.aq[null===(k=null===(v=this.prevPlacement)||void 0===v?void 0:v.variableOffsets[t.crossTileID])||void 0===k?void 0:k.anchor];const u=(e,i,a)=>{const u=e.x2-e.x1,h=e.y2-e.y1,c=t.textBoxScale,p=b&&"never"===y?i:null;let f={box:[],offscreen:!1},g="never"===_?1:2,v="never";l&&g++;for(let i=0;i<g;i++){for(let i=o;i<s;i++){const o=n.textAnchorOffsets.get(i);if(l&&o.textAnchor!==l)continue;const s=this.attemptAnchorPlacement(o,e,u,h,c,w,x,d,r,m,v,t,n,a,p,z);if(s&&(f=s.placedGlyphBoxes,f&&f.box&&f.box.length))return C=!0,L=s.shift,f}l?l=null:v=_}return f};a((()=>u(F,h.iconBox,e.ai.horizontal)),(()=>{const i=h.verticalTextBox;return n.allowVerticalPlacement&&!(A&&A.box&&A.box.length)&&t.numVerticalGlyphVertices>0&&i?u(i,h.verticalIconBox,e.ai.vertical):{box:null,offscreen:null}})),A&&(C=A.box,M=A.offscreen);const c=i(A&&A.box);if(!C&&this.prevPlacement){const e=this.prevPlacement.variableOffsets[t.crossTileID];e&&(this.variableOffsets[t.crossTileID]=e,this.markUsedJustification(n,e.anchor,t,c))}}}if(E=A,C=E&&E.box&&E.box.length>0,M=E&&E.offscreen,t.useRuntimeCollisionCircles){const i=n.text.placedSymbolArray.get(t.centerJustifiedTextSymbolIndex),d=e.aj(n.textSizeData,c,i),u=o.get("text-padding");D=this.collisionIndex.placeCollisionCircles(_,i,n.lineVertexArray,n.glyphOffsetArray,d,r,s,l,a,x,m.predicate,t.collisionCircleDiameter,u,z),D.circles.length&&D.collisionDetected&&!a&&e.w("Collisions detected, but collision boxes are not shown"),C=g||D.circles.length>0&&!D.collisionDetected,M=M&&D.offscreen}if(h.iconFeatureIndex&&(B=h.iconFeatureIndex),h.iconBox){const e=e=>{const t=b&&L?De(e,L.x,L.y,w,x,this.transform.angle):e;return this.collisionIndex.placeCollisionBox(t,y,d,r,m.predicate,z)};I&&I.box&&I.box.length&&h.verticalIconBox?(j=e(h.verticalIconBox),P=j.box.length>0):(j=e(h.iconBox),P=j.box.length>0),M=M&&j.offscreen}const O=p||0===t.numHorizontalGlyphVertices&&0===t.numVerticalGlyphVertices,N=f||0===t.numIconVertices;if(O||N?N?O||(P=P&&C):C=P&&C:P=C=P&&C,C&&E&&E.box&&this.collisionIndex.insertCollisionBox(E.box,_,o.get("text-ignore-placement"),n.bucketInstanceId,I&&I.box&&R?R:$,m.ID),P&&j&&this.collisionIndex.insertCollisionBox(j.box,y,o.get("icon-ignore-placement"),n.bucketInstanceId,B,m.ID),D&&(C&&this.collisionIndex.insertCollisionCircles(D.circles,_,o.get("text-ignore-placement"),n.bucketInstanceId,$,m.ID),a)){const e=n.bucketInstanceId;let t=this.collisionCircleArrays[e];void 0===t&&(t=this.collisionCircleArrays[e]=new Le);for(let e=0;e<D.circles.length;
vendor: 4,773 bytes, line 5
5e+=4)t.circles.push(D.circles[e+0]),t.circles.push(D.circles[e+1]),t.circles.push(D.circles[e+2]),t.circles.push(D.collisionDetected?1:0)}if(0===t.crossTileID)throw new Error("symbolInstance.crossTileID can't be 0");if(0===n.bucketInstanceId)throw new Error("bucket.bucketInstanceId can't be 0");this.placements[t.crossTileID]=new Me(C||S,P||T,M||n.justReloaded),i[t.crossTileID]=!0};if(k){if(0!==t.symbolInstanceStart)throw new Error("bucket.bucketInstanceId should be 0");const e=n.getSortedSymbolIndexes(this.transform.angle);for(let t=e.length-1;t>=0;--t){const i=e[t];P(n.symbolInstances.get(i),n.collisionArrays[i])}}else for(let e=t.symbolInstanceStart;e<t.symbolInstanceEnd;e++)P(n.symbolInstances.get(e),n.collisionArrays[e]);if(a&&n.bucketInstanceId in this.collisionCircleArrays){const t=this.collisionCircleArrays[n.bucketInstanceId];e.as(t.invProjMatrix,r),t.viewportMatrix=this.collisionIndex.getViewportMatrix()}n.justReloaded=!1}markUsedJustification(t,i,a,n){let o;o=n===e.ai.vertical?a.verticalPlacedTextSymbolIndex:{left:a.leftJustifiedTextSymbolIndex,center:a.centerJustifiedTextSymbolIndex,right:a.rightJustifiedTextSymbolIndex}[e.at(i)];const r=[a.leftJustifiedTextSymbolIndex,a.centerJustifiedTextSymbolIndex,a.rightJustifiedTextSymbolIndex,a.verticalPlacedTextSymbolIndex];for(const e of r)e>=0&&(t.text.placedSymbolArray.get(e).crossTileID=o>=0&&e!==o?0:a.crossTileID)}markUsedOrientation(t,i,a){const n=i===e.ai.horizontal||i===e.ai.horizontalOnly?i:0,o=i===e.ai.vertical?i:0,r=[a.leftJustifiedTextSymbolIndex,a.centerJustifiedTextSymbolIndex,a.rightJustifiedTextSymbolIndex];for(const e of r)t.text.placedSymbolArray.get(e).placedOrientation=n;a.verticalPlacedTextSymbolIndex&&(t.text.placedSymbolArray.get(a.verticalPlacedTextSymbolIndex).placedOrientation=o)}commit(e){this.commitTime=e,this.zoomAtLastRecencyCheck=this.transform.zoom;const t=this.prevPlacement;let i=!1;this.prevZoomAdjustment=t?t.zoomAdjustment(this.transform.zoom):0;const a=t?t.symbolFadeChange(e):1,n=t?t.opacities:{},o=t?t.variableOffsets:{},r=t?t.placedOrientations:{};for(const e in this.placements){const t=this.placements[e],o=n[e];o?(this.opacities[e]=new Pe(o,a,t.text,t.icon),i=i||t.text!==o.text.placed||t.icon!==o.icon.placed):(this.opacities[e]=new Pe(null,a,t.text,t.icon,t.skipFade),i=i||t.text||t.icon)}for(const e in n){const t=n[e];if(!this.opacities[e]){const n=new Pe(t,a,!1,!1);n.isHidden()||(this.opacities[e]=n,i=i||t.text.placed||t.icon.placed)}}for(const e in o)this.variableOffsets[e]||!this.opacities[e]||this.opacities[e].isHidden()||(this.variableOffsets[e]=o[e]);for(const e in r)this.placedOrientations[e]||!this.opacities[e]||this.opacities[e].isHidden()||(this.placedOrientations[e]=r[e]);if(t&&void 0===t.lastPlacementChangeTime)throw new Error("Last placement time for previous placement is not defined");i?this.lastPlacementChangeTime=e:"number"!=typeof this.lastPlacementChangeTime&&(this.lastPlacementChangeTime=t?t.lastPlacementChangeTime:e)}updateLayerOpacities(e,t){const i={};for(const a of t){const t=a.getBucket(e);t&&a.latestFeatureIndex&&e.id===t.layerIds[0]&&this.updateBucketOpacities(t,i,a.collisionBoxArray)}}updateBucketOpacities(t,i,a){t.hasTextData()&&(t.text.opacityVertexArray.clear(),t.text.hasVisibleVertices=!1),t.hasIconData()&&(t.icon.opacityVertexArray.clear(),t.icon.hasVisibleVertices=!1),t.hasIconCollisionBoxData()&&t.iconCollisionBox.collisionVertexArray.clear(),t.hasTextCollisionBoxData()&&t.textCollisionBox.collisionVertexArray.clear();const n=t.layers[0],o=n.layout,r=new Pe(null,0,!1,!1,!0),s=o.get("text-allow-overlap"),l=o.get("icon-allow-overlap"),d=n._unevaluatedLayout.hasValue("text-variable-anchor")||n._unevaluatedLayout.hasValue("text-variable-anchor-offset"),u="map"===o.get("text-rotation-alignment"),h="map"===o.get("text-pitch-alignment"),c="none"!==o.get("icon-text-fit"),m=new Pe(null,0,s&&(l||!t.hasIconData()||o.get("icon-optional")),l&&(s||!t.hasTextData()||o.get("text-optional")),!0);!t.collisionArrays&&a&&(t.hasIconCollisionBoxData()||t.hasTextCollisionBoxData())&&t.deserializeCollisionBoxes(a);const p=(e,t,i)=>{for(let a=0;a<t/4;a++)e.opacityVertexArray.emplaceBack(i);e.hasVisibleVertices=e.hasVisibleVertices||i!==qe};for(let a=0;a<t.symbolInstances.length;a++){const n=t.symbolInstances.get(a),{numHorizontalGlyphVertices:o,numVerticalGlyphVertices:s,crossTileID:l}=n;let f=this.opacities[l];i[l]?f=r:f||(f=m,this.opacities[l]=f),i[l]=!0;const _=n.numIconVertices>0,g=this.placedOrientations[n.crossTileID],y=g===e.ai.vertical,v=g===e.ai.horizontal||g===e.ai.horizontalOnly;if(o>0||s>0){const e=Ze(f.text);p(t.text,o,y?qe:e),p(t.text,s,v?qe:e);const i=f.text.isHidden();[n.rightJustifiedTextSymbolIndex,n.centerJustifiedTextSymbolIndex,n.leftJustifiedTextSymbolIndex].forEac
vendor: 4,452 bytes, line 5
5h((e=>{e>=0&&(t.text.placedSymbolArray.get(e).hidden=i||y?1:0)})),n.verticalPlacedTextSymbolIndex>=0&&(t.text.placedSymbolArray.get(n.verticalPlacedTextSymbolIndex).hidden=i||v?1:0);const a=this.variableOffsets[n.crossTileID];a&&this.markUsedJustification(t,a.anchor,n,g);const r=this.placedOrientations[n.crossTileID];r&&(this.markUsedJustification(t,"left",n,r),this.markUsedOrientation(t,r,n))}if(_){const e=Ze(f.icon),i=!(c&&n.verticalPlacedIconSymbolIndex&&y);n.placedIconSymbolIndex>=0&&(p(t.icon,n.numIconVertices,i?e:qe),t.icon.placedSymbolArray.get(n.placedIconSymbolIndex).hidden=f.icon.isHidden()),n.verticalPlacedIconSymbolIndex>=0&&(p(t.icon,n.numVerticalIconVertices,i?qe:e),t.icon.placedSymbolArray.get(n.verticalPlacedIconSymbolIndex).hidden=f.icon.isHidden())}if(t.hasIconCollisionBoxData()||t.hasTextCollisionBoxData()){const i=t.collisionArrays[a];if(i){let a=new e.P(0,0);if(i.textBox||i.verticalTextBox){let e=!0;if(d){const t=this.variableOffsets[l];t?(a=Ee(t.anchor,t.width,t.height,t.textOffset,t.textBoxScale),u&&a._rotate(h?this.transform.angle:-this.transform.angle)):e=!1}i.textBox&&$e(t.textCollisionBox.collisionVertexArray,f.text.placed,!e||y,a.x,a.y),i.verticalTextBox&&$e(t.textCollisionBox.collisionVertexArray,f.text.placed,!e||v,a.x,a.y)}const n=Boolean(!v&&i.verticalIconBox);i.iconBox&&$e(t.iconCollisionBox.collisionVertexArray,f.icon.placed,n,c?a.x:0,c?a.y:0),i.verticalIconBox&&$e(t.iconCollisionBox.collisionVertexArray,f.icon.placed,!n,c?a.x:0,c?a.y:0)}}}if(t.sortFeatures(this.transform.angle),this.retainedQueryData[t.bucketInstanceId]&&(this.retainedQueryData[t.bucketInstanceId].featureSortOrder=t.featureSortOrder),t.hasTextData()&&t.text.opacityVertexBuffer&&t.text.opacityVertexBuffer.updateData(t.text.opacityVertexArray),t.hasIconData()&&t.icon.opacityVertexBuffer&&t.icon.opacityVertexBuffer.updateData(t.icon.opacityVertexArray),t.hasIconCollisionBoxData()&&t.iconCollisionBox.collisionVertexBuffer&&t.iconCollisionBox.collisionVertexBuffer.updateData(t.iconCollisionBox.collisionVertexArray),t.hasTextCollisionBoxData()&&t.textCollisionBox.collisionVertexBuffer&&t.textCollisionBox.collisionVertexBuffer.updateData(t.textCollisionBox.collisionVertexArray),t.text.opacityVertexArray.length!==t.text.layoutVertexArray.length/4)throw new Error(`bucket.text.opacityVertexArray.length (= ${t.text.opacityVertexArray.length}) !== bucket.text.layoutVertexArray.length (= ${t.text.layoutVertexArray.length}) / 4`);if(t.icon.opacityVertexArray.length!==t.icon.layoutVertexArray.length/4)throw new Error(`bucket.icon.opacityVertexArray.length (= ${t.icon.opacityVertexArray.length}) !== bucket.icon.layoutVertexArray.length (= ${t.icon.layoutVertexArray.length}) / 4`);if(t.bucketInstanceId in this.collisionCircleArrays){const e=this.collisionCircleArrays[t.bucketInstanceId];t.placementInvProjMatrix=e.invProjMatrix,t.placementViewportMatrix=e.viewportMatrix,t.collisionCircleArray=e.circles,delete this.collisionCircleArrays[t.bucketInstanceId]}}symbolFadeChange(e){return 0===this.fadeDuration?1:(e-this.commitTime)/this.fadeDuration+this.prevZoomAdjustment}zoomAdjustment(e){return Math.max(0,(this.transform.zoom-e)/1.5)}hasTransitions(e){return this.stale||e-this.lastPlacementChangeTime<this.fadeDuration}stillRecent(e,t){const i=this.zoomAtLastRecencyCheck===t?1-this.zoomAdjustment(t):1;return this.zoomAtLastRecencyCheck=t,this.commitTime+this.fadeDuration*i>e}setStale(){this.stale=!0}}function $e(e,t,i,a,n){e.emplaceBack(t?1:0,i?1:0,a||0,n||0),e.emplaceBack(t?1:0,i?1:0,a||0,n||0),e.emplaceBack(t?1:0,i?1:0,a||0,n||0),e.emplaceBack(t?1:0,i?1:0,a||0,n||0)}const Re=Math.pow(2,25),Be=Math.pow(2,24),Fe=Math.pow(2,17),Oe=Math.pow(2,16),Ne=Math.pow(2,9),Ve=Math.pow(2,8),Ue=Math.pow(2,1);function Ze(e){if(0===e.opacity&&!e.placed)return 0;if(1===e.opacity&&e.placed)return 4294967295;const t=e.placed?1:0,i=Math.floor(127*e.opacity);return i*Re+t*Be+i*Fe+t*Oe+i*Ne+t*Ve+i*Ue+t}const qe=0;class Ge{constructor(e){this._sortAcrossTiles="viewport-y"!==e.layout.get("symbol-z-order")&&!e.layout.get("symbol-sort-key").isConstant(),this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]}continuePlacement(e,t,i,a,n){const o=this._bucketParts;for(;this._currentTileIndex<e.length;)if(t.getBucketParts(o,a,e[this._currentTileIndex],this._sortAcrossTiles),this._currentTileIndex++,n())return!0;for(this._sortAcrossTiles&&(this._sortAcrossTiles=!1,o.sort(((e,t)=>
vendor: 5,164 bytes, line 5
5e.sortKey-t.sortKey)));this._currentPartIndex<o.length;)if(t.placeLayerBucketPart(o[this._currentPartIndex],this._seenCrossTileIDs,i),this._currentPartIndex++,n())return!0;return!1}}class We{constructor(e,t,i,a,n,o,r,s){this.placement=new je(e,t,o,r,s),this._currentPlacementIndex=i.length-1,this._forceFullPlacement=a,this._showCollisionBoxes=n,this._done=!1}isDone(){return this._done}continuePlacement(t,i,a){const n=e.h.now(),o=()=>!this._forceFullPlacement&&e.h.now()-n>2;for(;this._currentPlacementIndex>=0;){const e=i[t[this._currentPlacementIndex]],n=this.placement.collisionIndex.transform.zoom;if("symbol"===e.type&&(!e.minzoom||e.minzoom<=n)&&(!e.maxzoom||e.maxzoom>n)){if(this._inProgressLayer||(this._inProgressLayer=new Ge(e)),this._inProgressLayer.continuePlacement(a[e.source],this.placement,this._showCollisionBoxes,e,o))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0}commit(e){return this.placement.commit(e),this.placement}}const He=512/e.N/2;class Ke{constructor(t,i,a){this.tileID=t,this.bucketInstanceId=a,this._symbolsByKey={};const n=new Map;for(let e=0;e<i.length;e++){const t=i.get(e),a=t.key,o=n.get(a);o?o.push(t):n.set(a,[t])}for(const[t,i]of n){const a={positions:i.map((e=>({x:Math.floor(e.anchorX*He),y:Math.floor(e.anchorY*He)}))),crossTileIDs:i.map((e=>e.crossTileID))};if(a.positions.length>128){const t=new e.av(a.positions.length,16,Uint16Array);for(const{x:e,y:i}of a.positions)t.add(e,i);t.finish(),delete a.positions,a.index=t}this._symbolsByKey[t]=a}}getScaledCoordinates(t,i){const{x:a,y:n,z:o}=this.tileID.canonical,{x:r,y:s,z:l}=i.canonical,d=He/Math.pow(2,l-o),u=(s*e.N+t.anchorY)*d,h=n*e.N*He;return{x:Math.floor((r*e.N+t.anchorX)*d-a*e.N*He),y:Math.floor(u-h)}}findMatches(e,t,i){const a=this.tileID.canonical.z<t.canonical.z?1:Math.pow(2,this.tileID.canonical.z-t.canonical.z);for(let n=0;n<e.length;n++){const o=e.get(n);if(o.crossTileID)continue;const r=this._symbolsByKey[o.key];if(!r)continue;const s=this.getScaledCoordinates(o,t);if(r.index){const e=r.index.range(s.x-a,s.y-a,s.x+a,s.y+a).sort();for(const t of e){const e=r.crossTileIDs[t];if(!i[e]){i[e]=!0,o.crossTileID=e;break}}}else if(r.positions)for(let e=0;e<r.positions.length;e++){const t=r.positions[e],n=r.crossTileIDs[e];if(Math.abs(t.x-s.x)<=a&&Math.abs(t.y-s.y)<=a&&!i[n]){i[n]=!0,o.crossTileID=n;break}}}}getCrossTileIDsLists(){return Object.values(this._symbolsByKey).map((({crossTileIDs:e})=>e))}}class Xe{constructor(){this.maxCrossTileID=0}generate(){return++this.maxCrossTileID}}class Je{constructor(){this.indexes={},this.usedCrossTileIDs={},this.lng=0}handleWrapJump(e){const t=Math.round((e-this.lng)/360);if(0!==t)for(const e in this.indexes){const i=this.indexes[e],a={};for(const e in i){const n=i[e];n.tileID=n.tileID.unwrapTo(n.tileID.wrap+t),a[n.tileID.key]=n}this.indexes[e]=a}this.lng=e}addBucket(e,t,i){if(this.indexes[e.overscaledZ]&&this.indexes[e.overscaledZ][e.key]){if(this.indexes[e.overscaledZ][e.key].bucketInstanceId===t.bucketInstanceId)return!1;this.removeBucketCrossTileIDs(e.overscaledZ,this.indexes[e.overscaledZ][e.key])}for(let e=0;e<t.symbolInstances.length;e++)t.symbolInstances.get(e).crossTileID=0;this.usedCrossTileIDs[e.overscaledZ]||(this.usedCrossTileIDs[e.overscaledZ]={});const a=this.usedCrossTileIDs[e.overscaledZ];for(const i in this.indexes){const n=this.indexes[i];if(Number(i)>e.overscaledZ)for(const i in n){const o=n[i];o.tileID.isChildOf(e)&&o.findMatches(t.symbolInstances,e,a)}else{const o=n[e.scaledTo(Number(i)).key];o&&o.findMatches(t.symbolInstances,e,a)}}for(let e=0;e<t.symbolInstances.length;e++){const n=t.symbolInstances.get(e);n.crossTileID||(n.crossTileID=i.generate(),a[n.crossTileID]=!0)}return void 0===this.indexes[e.overscaledZ]&&(this.indexes[e.overscaledZ]={}),this.indexes[e.overscaledZ][e.key]=new Ke(e,t.symbolInstances,t.bucketInstanceId),!0}removeBucketCrossTileIDs(e,t){for(const i of t.getCrossTileIDsLists())for(const t of i)delete this.usedCrossTileIDs[e][t]}removeStaleBuckets(e){let t=!1;for(const i in this.indexes){const a=this.indexes[i];for(const n in a)e[a[n].bucketInstanceId]||(this.removeBucketCrossTileIDs(i,a[n]),delete a[n],t=!0)}return t}}class Ye{constructor(){this.layerIndexes={},this.crossTileIDs=new Xe,this.maxBucketInstanceId=0,this.bucketsInCurrentPlacement={}}addLayer(e,t,i){let a=this.layerIndexes[e.id];void 0===a&&(a=this.layerIndexes[e.id]=new Je);let n=!1;const o={};a.handleWrapJump(i);for(const i of t){const t=i.getBucket(e);t&&e.id===t.layerIds[0]&&(t.bucketInstanceId||(t.bucketInstanceId=++this.maxBucketInstanceId),a.addBucket(i.tileID,t,this.crossTileIDs)&&(n=!0),o[t.bucketInstanceId]=!0)}return a.removeStaleBuckets(o)&&(n=!0),n}pruneUnusedLayers(e){const t={};e.forEach((e=>{t[e]=!0}));for(const e in this.layerIndexes)t[e]||delete this.layerIndexes[e]}}const Qe=(t,i)=>e.x(t,i&&i.filter((e=>"source.canvas"!==e.identifier))),et=e.F(e.ax,["addLayer","removeLayer","setPaintProperty","setLayoutProperty","setFilter","addSource","removeSource","setLayerZoomRange","setLight","setTransition","setGeoJSONSourceData","setGlyphs","setSprite"]),tt=e.F(e.ax,["setCenter","setZoom","setBearing","setP
5itch"]),it=e.aw();class at extends e.E{constructor(t,i={}){super(),this.map=t,this.dispatcher=new L(ae(),this,t._getMapId()),this.imageManager=new x,this.imageManager.setEventedParent(this),this.glyphManager=new T(t._requestManager,i.localIdeographFontFamily),this.lineAtlas=new M(256,512),this.crossTileSymbolIndex=new Ye,this._spritesImagesIds={},this._layers={},this._order=[],this.sourceCaches={},this.zoomHistory=new e.ay,this._loaded=!1,this._availableImages=[],this._resetUpdates(),this.dispatcher.broadcast("setReferrer",e.az());const a=this;this._rtlTextPluginCallback=at.registerForPluginStateChange((t=>{a.dispatcher.broadcast("syncRTLPluginState",{pluginStatus:t.pluginStatus,pluginURL:t.pluginURL},((t,i)=>{if(e.aA(t),i&&i.every((e=>e)))for(const e in a.sourceCaches){const t=a.sourceCaches[e].getSource().type;"vector"!==t&&"geojson"!==t||a.sourceCaches[e].reload()}}))})),this.on("data",(e=>{if("source"!==e.dataType||"metadata"!==e.sourceDataType)return;const t=this.sourceCaches[e.sourceId];if(!t)return;const i=t.getSource();if(i&&i.vectorLayerIds)for(const e in this._layers){const t=this._layers[e];t.source===i.id&&this._validateLayer(t)}}))}loadURL(t,i={},a){this.fire(new e.k("dataloading",{dataType:"style"})),i.validate="boolean"!=typeof i.validate||i.validate;const n=this.map._requestManager.transformRequest(t,u.Style);this._request=e.f(n,((t,n)=>{this._request=null,t?this.fire(new e.j(t)):n&&this._load(n,i,a)}))}loadJSON(t,i={},a){this.fire(new e.k("dataloading",{dataType:"style"})),this._request=e.h.frame((()=>{this._request=null,i.validate=!1!==i.validate,this._load(t,i,a)}))}loadEmpty(){this.fire(new e.k("dataloading",{dataType:"style"})),this._load(it,{validate:!1})}_load(t,i,a){var n;const o=i.transformStyle?i.transformStyle(a,t):t;if(!i.validate||!Qe(this,e.y(o))){this._loaded=!0,this.stylesheet=o;for(const e in o.sources)this.addSource(e,o.sources[e],{validate:!1});o.sprite?this._loadSprite(o.sprite):this.imageManager.setLoaded(!0),this.glyphManager.setURL(o.glyphs),this._createLayers(),this.light=new P(this.stylesheet.light),this.map.setTerrain(null!==(n=this.stylesheet.terrain)&&void 0!==n?n:null),this.fire(new e.k("data",{dataType:"style"})),this.fire(new e.k("style.load"))}}_createLayers(){const t=e.aB(this.stylesheet.layers);this.dispatcher.broadcast("setLayers",t),this._order=t.map((e=>e.id)),this._layers={},this._serializedLayers=null;for(const i of t){const t=e.aC(i);t.setEventedParent(this,{layer:{id:i.id}}),this._layers[i.id]=t}}_loadSprite(t,i=!1,a=void 0){this.imageManager.setLoaded(!1),this._spriteRequest=function(t,i,a,n){const o=g(t),r=o.length,s=a>1?"@2x":"",l={},h={},c={};for(const{id:t,url:a}of o){const o=i.transformRequest(i.normalizeSpriteURL(a,s,".json"),u.SpriteJSON),m=`${t}_${o.url}`;l[m]=e.f(o,((e,i)=>{delete l[m],h[t]=i,y(n,h,c,e,r)}));const p=i.transformRequest(i.normalizeSpriteURL(a,s,".png"),u.SpriteImage),f=`${t}_${p.url}`;l[f]=d.getImage(p,((e,i)=>{delete l[f],c[t]=i,y(n,h,c,e,r)}))}return{cancel(){for(const e of Object.values(l))e.cancel()}}}(t,this.map._requestManager,this.map.getPixelRatio(),((t,n)=>{if(this._spriteRequest=null,t)this.fire(new e.j(t));else if(n)for(const e in n){this._spritesImagesIds[e]=[];const t=this._spritesImagesIds[e]?this._spritesImagesIds[e].filter((e=>!(e in n))):[];for(const e of t)this.imageManager.removeImage(e),this._changedImages[e]=!0;for(const t in n[e]){const a="default"===e?t:`${e}:${t}`;this._spritesImagesIds[e].push(a),a in this.imageManager.images?this.imageManager.updateImage(a,n[e][t],!1):this.imageManager.addImage(a,n[e][t]),i&&(this._changedImages[a]=!0)}}this.imageManager.setLoaded(!0),this._availableImages=this.imageManager.listImages(),i&&(this._changed=!0),this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new e.k("data",{dataType:"style"})),a&&a(t)}))}_unloadSprite(){for(const e of Object.values(this._spritesImagesIds).flat())this.imageManager.removeImage(e),this._changedImages[e]=!0;this._spritesImagesIds={},this._availableImages=this.imageManager.listImages(),this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new e.k("data",{dataType:"style"}))}_validateLayer(t){const i=this.sourceCaches[t.source];if(!i)return;const a=t.sourceLayer;if(!a)return;const n=i.getSource();("geojson"===n.type||n.vectorLayerIds&&-1===n.vectorLayerIds.indexOf(a))&&this.fire(new e.j(new Error(`Source layer "${a}" does not exist on source "${n.id}" as specified by style layer "${t.id}".`)))}loaded(){if(!this._loaded)return!1;if(Object.keys(this._updatedSources).length)return!1;for(const e in this.sourceCaches)if(!this.sourceCaches[e].loaded())return!1;return!!this.imageManager.isLoaded()}_serializeByIds(e){const t=this._serializedAllLayers();if(!e||0===e.length)return Object.values(t);const i=[];for(const a of e)t[a]&&i.push(t[a]);return i}_serializedAllLayers(){let e=this._serializedLayers;if(e)return e;e=this._serializedLayers={};const t=Object.keys(this._layers);for(const i of t){const t=this._layers[i];"custom"!==t.type&&(e[i]=t.serialize())}return e}hasTransitions(){if(this.light&&this.light.hasTransition())return!0;for(const e in this.sourceCaches)if(this.sourceCaches[e].hasTransition())return!0;for(const e in this._layers)if(this._layers[e].hasTransition())return!0;return!1}_checkLoaded(){if(!this._loaded)throw new Error("Style is not done loading.")}update(t){if(!this._loaded)return;const i=this._changed;if(this._changed){const e=Object.keys(this._updatedLayers),i=Object.keys(this._removedLayers);(e.length||i.length)&&this._updateWorkerLayers(e,i);for(const e in this._updatedSources){const t=this._updatedSources[e];if("reload"===t)this._reloadSource(e);else{if("clear"!==t)throw new Error(`Invalid action ${t}`);this._clearSource(e)}}this._updateTilesForChangedImages(),this._updateTilesForChangedGlyphs();for(const e in this._updatedPaintProps)this._layers[e].updateTransitions(t);this.light.updateTransitions(t),this._resetUpdates()}const a={};for(const e in this.sourceCaches){const t=this.sourceCaches[e];a[e]=t.used,t.used=!1}for(const e of this._order){const i=this._layers[e];i.recalculate(t,this._availableImages),!i.isHidden(t.zoom)&&i.source&&(this.sourceCaches[i.source].used=!0)}for(const t in a){const i=this.sourceCaches[t];a[t]!==i.used&&i.fire(new e.k("data",{sourceDataType:"visibility",dataType:"source",sourceId:t}))}this.light.recalculate(t),this.z=t.zoom,i&&this.fire(new e.k("data",{dataType:"style"}))}_updateTilesForChangedImages(){const e=Object.keys(this._changedImages);if(e.length){for(const t in this.sourceCaches)this.sourceCaches[t].reloadTilesForDependencies(["icons","patterns"],e);this._changedImages={}}}_updateTilesForChangedGlyphs(){if(this._glyphsDidChange){for(const e in this.sourceCaches)this.sourceCaches[e].reloadTilesForDependencies(["glyphs"],[""]);this._glyphsDidChange=!1}}_updateWorkerLayers(e,t){this.dispatcher.broadcast("updateLayers",{layers:this._serializeByIds(e),removedIds:t})}_resetUpdates(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSources={},this._updatedPaintProps={},this._changedImages={},this._glyphsDidChange=!1}setState(t,i={}){this._checkLoaded();const a=this.serialize();if(t=i.transformStyle?i.transformStyle(a,t):t,Qe(this,e.y(t)))return!1;(t=e.aD(t)).layers=e.aB(t.layers);const n=e.aE(a,t).filter((e=>!(e.command in tt)));if(0===n.length)return!1;const o=n.filter((e=>!(e.command in et)));if(o.length>0)throw new Error(`Unimplemented: ${o.map((e=>e.command)).join(", ")}.`);for(const e of n)"setTransition"!==e.command&&this[e.command].apply(this,e.args);return this.stylesheet=t,this._serializedLayers=null,!0}addImage(t,i){if(this.getImage(t))return this.fire(new e.j(new Error(`An image named "${t}" already exists.`)));this.imageManager.addImage(t,i),this._afterImageUpdated(t)}updateImage(e,t){this.imageManager.updateImage(e,t)}getImage(e){return this.imageManager.getImage(e)}removeImage(t){if(!this.getImage(t))return this.fire(new e.j(new Error(`An image named "${t}" does not exist.`)));this.imageManager.removeImage(t),this._afterImageUpdated(t)}_afterImageUpdated(t){this._availableImages=this.imageManager.listImages(),this._changedImages[t]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new e.k("data",{dataType:"style"}))}listImages(){return this._checkLoaded(),this.imageManager.listImages()}addSource(t,i,a={}){if(this._checkLoaded(),void 0!==this.sourceCaches[t])throw new Error(`Source "${t}" already exists.`);if(!i.type)throw new Error(`The type property must be defined, but only the following properties were given: ${Ob
5ject.keys(i).join(", ")}.`);if(["vector","raster","geojson","video","image"].indexOf(i.type)>=0&&this._validate(e.y.source,`sources.${t}`,i,null,a))return;this.map&&this.map._collectResourceTiming&&(i.collectResourceTiming=!0);const n=this.sourceCaches[t]=new X(t,i,this.dispatcher);n.style=this,n.setEventedParent(this,(()=>({isSourceLoaded:n.loaded(),source:n.serialize(),sourceId:t}))),n.onAdd(this.map),this._changed=!0}removeSource(t){if(this._checkLoaded(),void 0===this.sourceCaches[t])throw new Error("There is no source with this ID");for(const i in this._layers)if(this._layers[i].source===t)return this.fire(new e.j(new Error(`Source "${t}" cannot be removed while layer "${i}" is using it.`)));const i=this.sourceCaches[t];delete this.sourceCaches[t],delete this._updatedSources[t],i.fire(new e.k("data",{sourceDataType:"metadata",dataType:"source",sourceId:t})),i.setEventedParent(null),i.onRemove(this.map),this._changed=!0}setGeoJSONSourceData(e,t){if(this._checkLoaded(),void 0===this.sourceCaches[e])throw new Error(`There is no source with this ID=${e}`);const i=this.sourceCaches[e].getSource();if("geojson"!==i.type)throw new Error(`geojsonSource.type is ${i.type}, which is !== 'geojson`);i.setData(t),this._changed=!0}getSource(e){return this.sourceCaches[e]&&this.sourceCaches[e].getSource()}addLayer(t,i,a={}){this._checkLoaded();const n=t.id;if(this.getLayer(n))return void this.fire(new e.j(new Error(`Layer "${n}" already exists on this map.`)));let o;if("custom"===t.type){if(Qe(this,e.aF(t)))return;o=e.aC(t)}else{if("source"in t&&"object"==typeof t.source&&(this.addSource(n,t.source),t=e.aD(t),t=e.e(t,{source:n})),this._validate(e.y.layer,`layers.${n}`,t,{arrayIndex:-1},a))return;o=e.aC(t),this._validateLayer(o),o.setEventedParent(this,{layer:{id:n}})}const r=i?this._order.indexOf(i):this._order.length;if(i&&-1===r)this.fire(new e.j(new Error(`Cannot add layer "${n}" before non-existing layer "${i}".`)));else{if(this._order.splice(r,0,n),this._layerOrderChanged=!0,this._layers[n]=o,this._removedLayers[n]&&o.source&&"custom"!==o.type){const e=this._removedLayers[n];delete this._removedLayers[n],e.type!==o.type?this._updatedSources[o.source]="clear":(this._updatedSources[o.source]="reload",this.sourceCaches[o.source].pause())}this._updateLayer(o),o.onAdd&&o.onAdd(this.map)}}moveLayer(t,i){if(this._checkLoaded(),this._changed=!0,!this._layers[t])return void this.fire(new e.j(new Error(`The layer '${t}' does not exist in the map's style and cannot be moved.`)));if(t===i)return;const a=this._order.indexOf(t);this._order.splice(a,1);const n=i?this._order.indexOf(i):this._order.length;i&&-1===n?this.fire(new e.j(new Error(`Cannot move layer "${t}" before non-existing layer "${i}".`))):(this._order.splice(n,0,t),this._layerOrderChanged=!0)}removeLayer(t){this._checkLoaded();const i=this._layers[t];if(!i)return void this.fire(new e.j(new Error(`Cannot remove non-existing layer "${t}".`)));i.setEventedParent(null);const a=this._order.indexOf(t);this._order.splice(a,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[t]=i,delete this._layers[t],this._serializedLayers&&delete this._serializedLayers[t],delete this._updatedLayers[t],delete this._updatedPaintProps[t],i.onRemove&&i.onRemove(this.map)}getLayer(e){return this._layers[e]}getLayersOrder(){return[...this._order]}hasLayer(e){return e in this._layers}setLayerZoomRange(t,i,a){this._checkLoaded();const n=this.getLayer(t);n?n.minzoom===i&&n.maxzoom===a||(null!=i&&(n.minzoom=i),null!=a&&(n.maxzoom=a),this._updateLayer(n)):this.fire(new e.j(new Error(`Cannot set the zoom range of non-existing layer "${t}".`)))}setFilter(t,i,a={}){this._checkLoaded();const n=this.getLayer(t);if(n){if(!e.aG(n.filter,i))return null==i?(n.filter=void 0,void this._updateLayer(n)):void(this._validate(e.y.filter,`layers.${n.id}.filter`,i,null,a)||(n.filter=e.aD(i),this._updateLayer(n)))}else this.fire(new e.j(new Error(`Cannot filter non-existing layer "${t}".`)))}getFilter(t){return e.aD(this.getLayer(t).filter)}setLayoutProperty(t,i,a,n={}){this._checkLoaded();const o=this.getLayer(t);o?e.aG(o.getLayoutProperty(i),a)||(o.setLayoutProperty(i,a,n),this._updateLayer(o)):this.fire(new e.j(new Error(`Cannot style non-existing layer "${t}".`)))}getLayoutProperty(t,i){const a=this.getLayer(t);if(a)return a.getLayoutProperty(i);this.fire(new e.j(new Error(`Cannot get style of non-existing layer "${t}".`)))}setPaintProperty(t,i,a,n={}){this._checkLoaded();const o=this.getLayer(t);o?e.aG(o.getPaintProperty(i),a)||(o.setPaintProperty(i,a,n)&&this._updateLayer(o),this._changed=!0,this._updatedPaintProps[t]=!0):this.fire(new e.j(new Error(`Cannot style non-existing layer "${t}".`)))}getPaintProperty(e,t){return this.getLayer(e).getPaintProperty(t)}setFeatureState(t,i){this._checkLoaded();const a=t.source,n=t.sourceLayer,o=this.sourceCaches[a];if(void 0===o)return void this.fire(new e.j(new Error(`The source '${a}' does not exist in the map's style.`)));const r=o.getSource().type;"geojson"===r&&n?this.fire(new e.j(new Error("GeoJSON sources cannot have a sourceLayer parameter."))):"vector"!==r||n?(void 0===t.id&&this.fire(new e.j(new Error("The feature id parameter must be provided."))),o.setFeatureState(n,t.id,i)):this.fire(new e.j(new Error("The sourceLayer parameter must be provided for vector source types.")))}removeFeatureState(t,i){this._checkLoaded();const a=t.source,n=this.sourceCaches[a];if(void 0===n)return void this.fire(new e.j(new Error(`The source '${a}' does not exist in the map's style.`)));
vendor: 4,645 bytes, line 5
5const o=n.getSource().type,r="vector"===o?t.sourceLayer:void 0;"vector"!==o||r?i&&"string"!=typeof t.id&&"number"!=typeof t.id?this.fire(new e.j(new Error("A feature id is required to remove its specific state property."))):n.removeFeatureState(r,t.id,i):this.fire(new e.j(new Error("The sourceLayer parameter must be provided for vector source types.")))}getFeatureState(t){this._checkLoaded();const i=t.source,a=t.sourceLayer,n=this.sourceCaches[i];if(void 0!==n)return"vector"!==n.getSource().type||a?(void 0===t.id&&this.fire(new e.j(new Error("The feature id parameter must be provided."))),n.getFeatureState(a,t.id)):void this.fire(new e.j(new Error("The sourceLayer parameter must be provided for vector source types.")));this.fire(new e.j(new Error(`The source '${i}' does not exist in the map's style.`)))}getTransition(){return e.e({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)}serialize(){if(!this._loaded)return;const t=e.aH(this.sourceCaches,(e=>e.serialize())),i=this._serializeByIds(this._order),a=this.map.getTerrain()||void 0,n=this.stylesheet;return e.aI({version:n.version,name:n.name,metadata:n.metadata,light:n.light,center:n.center,zoom:n.zoom,bearing:n.bearing,pitch:n.pitch,sprite:n.sprite,glyphs:n.glyphs,transition:n.transition,sources:t,layers:i,terrain:a},(e=>void 0!==e))}_updateLayer(e){this._updatedLayers[e.id]=!0,e.source&&!this._updatedSources[e.source]&&"raster"!==this.sourceCaches[e.source].getSource().type&&(this._updatedSources[e.source]="reload",this.sourceCaches[e.source].pause()),this._serializedLayers=null,this._changed=!0}_flattenAndSortRenderedFeatures(e){const t=e=>"fill-extrusion"===this._layers[e].type,i={},a=[];for(let n=this._order.length-1;n>=0;n--){const o=this._order[n];if(t(o)){i[o]=n;for(const t of e){const e=t[o];if(e)for(const t of e)a.push(t)}}}a.sort(((e,t)=>t.intersectionZ-e.intersectionZ));const n=[];for(let o=this._order.length-1;o>=0;o--){const r=this._order[o];if(t(r))for(let e=a.length-1;e>=0;e--){const t=a[e].feature;if(i[t.layer.id]<o)break;n.push(t),a.pop()}else for(const t of e){const e=t[r];if(e)for(const t of e)n.push(t.feature)}}return n}queryRenderedFeatures(t,i,a){i&&i.filter&&this._validate(e.y.filter,"queryRenderedFeatures.filter",i.filter,null,i);const n={};if(i&&i.layers){if(!Array.isArray(i.layers))return this.fire(new e.j(new Error("parameters.layers must be an Array."))),[];for(const t of i.layers){const i=this._layers[t];if(!i)return this.fire(new e.j(new Error(`The layer '${t}' does not exist in the map's style and cannot be queried for features.`))),[];n[i.source]=!0}}const o=[];i.availableImages=this._availableImages;const r=this._serializedAllLayers();for(const e in this.sourceCaches)i.layers&&!n[e]||o.push(q(this.sourceCaches[e],this._layers,r,t,i,a));return this.placement&&o.push(function(e,t,i,a,n,o,r){const s={},l=o.queryRenderedSymbols(a),d=[];for(const e of Object.keys(l).map(Number))d.push(r[e]);d.sort(G);for(const i of d){const a=i.featureIndex.lookupSymbolFeatures(l[i.bucketInstanceId],t,i.bucketIndex,i.sourceLayerIndex,n.filter,n.layers,n.availableImages,e);for(const e in a){const t=s[e]=s[e]||[],n=a[e];n.sort(((e,t)=>{const a=i.featureSortOrder;if(a){const i=a.indexOf(e.featureIndex);return a.indexOf(t.featureIndex)-i}return t.featureIndex-e.featureIndex}));for(const e of n)t.push(e)}}for(const t in s)s[t].forEach((a=>{const n=a.feature,o=i[e[t].source].getFeatureState(n.layer["source-layer"],n.id);n.source=n.layer.source,n.layer["source-layer"]&&(n.sourceLayer=n.layer["source-layer"]),n.state=o}));return s}(this._layers,r,this.sourceCaches,t,i,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenAndSortRenderedFeatures(o)}querySourceFeatures(t,i){i&&i.filter&&this._validate(e.y.filter,"querySourceFeatures.filter",i.filter,null,i);const a=this.sourceCaches[t];return a?function(e,t){const i=e.getRenderableIds().map((t=>e.getTileByID(t))),a=[],n={};for(let e=0;e<i.length;e++){const o=i[e],r=o.tileID.canonical.key;n[r]||(n[r]=!0,o.querySourceFeatures(a,t))}return a}(a,i):[]}addSourceType(e,t,i){return U(e)?i(new Error(`A source type called "${e}" already exists.`)):(((e,t)=>{V[e]=t})(e,t),t.workerSourceURL?void this.dispatcher.broadcast("loadWorkerSource",{name:e,url:t.workerSourceURL},i):i(null,null))}getLight(){return this.light.getLight()}setLight(t,i={}){this._checkLoaded();const a=this.light.getLight();let n=!1;for(const i in t)if(!e.aG(t[i],a[i])){n=!0;break}if(!n)return;const o={now:e.h.now(),transition:e.e({duration:300,delay:0},this.stylesheet.transition)};this.light.setLight(t,i),this.light.updateTransitions(o)}_validate(t,i,a,n,o={}
vendor: 5,731 bytes, line 5
5){return(!o||!1!==o.validate)&&Qe(this,t.call(e.y,e.e({key:i,style:this.serialize(),value:a,styleSpec:e.v},n)))}_remove(t=!0){this._request&&(this._request.cancel(),this._request=null),this._spriteRequest&&(this._spriteRequest.cancel(),this._spriteRequest=null),e.aJ.off("pluginStateChange",this._rtlTextPluginCallback);for(const e in this._layers)this._layers[e].setEventedParent(null);for(const e in this.sourceCaches){const t=this.sourceCaches[e];t.setEventedParent(null),t.onRemove(this.map)}this.imageManager.setEventedParent(null),this.setEventedParent(null),this.dispatcher.remove(t)}_clearSource(e){this.sourceCaches[e].clearTiles()}_reloadSource(e){this.sourceCaches[e].resume(),this.sourceCaches[e].reload()}_updateSources(e){for(const t in this.sourceCaches)this.sourceCaches[t].update(e,this.map.terrain)}_generateCollisionBoxes(){for(const e in this.sourceCaches)this._reloadSource(e)}_updatePlacement(t,i,a,n,o=!1){let r=!1,s=!1;const l={};for(const e of this._order){const i=this._layers[e];if("symbol"!==i.type)continue;if(!l[i.source]){const e=this.sourceCaches[i.source];l[i.source]=e.getRenderableIds(!0).map((t=>e.getTileByID(t))).sort(((e,t)=>t.tileID.overscaledZ-e.tileID.overscaledZ||(e.tileID.isLessThan(t.tileID)?-1:1)))}const a=this.crossTileSymbolIndex.addLayer(i,l[i.source],t.center.lng);r=r||a}if(this.crossTileSymbolIndex.pruneUnusedLayers(this._order),((o=o||this._layerOrderChanged||0===a)||!this.pauseablePlacement||this.pauseablePlacement.isDone()&&!this.placement.stillRecent(e.h.now(),t.zoom))&&(this.pauseablePlacement=new We(t,this.map.terrain,this._order,o,i,a,n,this.placement),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._order,this._layers,l),this.pauseablePlacement.isDone()&&(this.placement=this.pauseablePlacement.commit(e.h.now()),s=!0),r&&this.pauseablePlacement.placement.setStale()),s||r)for(const e of this._order){const t=this._layers[e];"symbol"===t.type&&this.placement.updateLayerOpacities(t,l[t.source])}return!this.pauseablePlacement.isDone()||this.placement.hasTransitions(e.h.now())}_releaseSymbolFadeTiles(){for(const e in this.sourceCaches)this.sourceCaches[e].releaseSymbolFadeTiles()}getImages(e,t,i){this.imageManager.getImages(t.icons,i),this._updateTilesForChangedImages();const a=this.sourceCaches[t.source];a&&a.setDependencies(t.tileID.key,t.type,t.icons)}getGlyphs(e,t,i){this.glyphManager.getGlyphs(t.stacks,i);const a=this.sourceCaches[t.source];a&&a.setDependencies(t.tileID.key,t.type,[""])}getResource(t,i,a){return e.m(i,a)}getGlyphsUrl(){return this.stylesheet.glyphs||null}setGlyphs(t,i={}){this._checkLoaded(),t&&this._validate(e.y.glyphs,"glyphs",t,null,i)||(this._glyphsDidChange=!0,this.stylesheet.glyphs=t,this.glyphManager.entries={},this.glyphManager.setURL(t))}addSprite(t,i,a={},n){this._checkLoaded();const o=[{id:t,url:i}],r=[...g(this.stylesheet.sprite),...o];this._validate(e.y.sprite,"sprite",r,null,a)||(this.stylesheet.sprite=r,this._loadSprite(o,!0,n))}removeSprite(t){this._checkLoaded();const i=g(this.stylesheet.sprite);if(i.find((e=>e.id===t))){if(this._spritesImagesIds[t])for(const e of this._spritesImagesIds[t])this.imageManager.removeImage(e),this._changedImages[e]=!0;i.splice(i.findIndex((e=>e.id===t)),1),this.stylesheet.sprite=i.length>0?i:void 0,delete this._spritesImagesIds[t],this._availableImages=this.imageManager.listImages(),this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new e.k("data",{dataType:"style"}))}else this.fire(new e.j(new Error(`Sprite "${t}" doesn't exists on this map.`)))}getSprite(){return g(this.stylesheet.sprite)}setSprite(t,i={},a){this._checkLoaded(),t&&this._validate(e.y.sprite,"sprite",t,null,i)||(this.stylesheet.sprite=t,t?this._loadSprite(t,!0,a):(this._unloadSprite(),a&&a(null)))}}at.registerForPluginStateChange=e.aK;var nt=e.Q([{name:"a_pos",type:"Int16",components:2}]),ot="attribute vec3 a_pos3d;uniform mat4 u_matrix;uniform float u_ele_delta;varying vec2 v_texture_pos;varying float v_depth;void main() {float extent=8192.0;float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/extent;gl_Position=u_matrix*vec4(a_pos3d.xy,get_elevation(a_pos3d.xy)-ele_delta,1.0);v_depth=gl_Position.z/gl_Position.w;}";const rt={prelude:st("#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\n","#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);
5return (tile_units_to_pixels*pos+offset)/pattern_size;}\n#ifdef TERRAIN3D\nuniform sampler2D u_terrain;uniform float u_terrain_dim;uniform mat4 u_terrain_matrix;uniform vec4 u_terrain_unpack;uniform float u_terrain_exaggeration;uniform highp sampler2D u_depth;\n#endif\nconst highp vec4 bitSh=vec4(256.*256.*256.,256.*256.,256.,1.);const highp vec4 bitShifts=vec4(1.)/bitSh;highp float unpack(highp vec4 color) {return dot(color,bitShifts);}highp float depthOpacity(vec3 frag) {\n#ifdef TERRAIN3D\nhighp float d=unpack(texture2D(u_depth,frag.xy*0.5+0.5))+0.0001-frag.z;return 1.0-max(0.0,min(1.0,-d*500.0));\n#else\nreturn 1.0;\n#endif\n}float calculate_visibility(vec4 pos) {\n#ifdef TERRAIN3D\nvec3 frag=pos.xyz/pos.w;highp float d=depthOpacity(frag);if (d > 0.95) return 1.0;return (d+depthOpacity(frag+vec3(0.0,0.01,0.0)))/2.0;\n#else\nreturn 1.0;\n#endif\n}float ele(vec2 pos) {\n#ifdef TERRAIN3D\nvec4 rgb=(texture2D(u_terrain,pos)*255.0)*u_terrain_unpack;return rgb.r+rgb.g+rgb.b-u_terrain_unpack.a;\n#else\nreturn 0.0;\n#endif\n}float get_elevation(vec2 pos) {\n#ifdef TERRAIN3D\nvec2 coord=(u_terrain_matrix*vec4(pos,0.0,1.0)).xy*u_terrain_dim+1.0;vec2 f=fract(coord);vec2 c=(floor(coord)+0.5)/(u_terrain_dim+2.0);float d=1.0/(u_terrain_dim+2.0);float tl=ele(c);float tr=ele(c+vec2(d,0.0));float bl=ele(c+vec2(0.0,d));float br=ele(c+vec2(d,d));float elevation=mix(mix(tl,tr,f.x),mix(bl,br,f.x),f.y);return elevation*u_terrain_exaggeration;\n#else\nreturn 0.0;\n#endif\n}"),background:st("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);}"),backgroundPattern:st("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);}"),circle:st("varying vec3 v_data;varying float v_visibility;\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 < 0.01 ? 0.0 : smoothstep(antialiased_blur,0.0,extrude_length-radius/(radius+stroke_width));gl_FragColor=v_visibility*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;varying float v_visibility;\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);float ele=get_elevation(circle_center);v_visibility=calculate_visibility(u_matrix*vec4(circle_center,ele,1.0));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,ele,1);} else {gl_Position=u_matrix*vec4(circle_center,ele,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);}"),clippingMask:st("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);}"),heatmap:st("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;}"),heatmapTexture:st("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;}"),collisionBox:st("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 > 0.5) {gl_FragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 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,get_elevation(a_pos),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;}"),collisionCircle:st("varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);gl_FragColor=color*alpha*opacity_t;}","attribute vec2 a_pos;attribute float a_radius;attribute vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd  =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz  /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(mix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}"),debug:st("uniform highp vec4 u_color;uniform sampler2D u_overlay;varying vec2 v_uv;void main() {vec4 overlay_color=texture2D(u_overlay,v_uv);gl_FragColor=mix(u_color,overlay_color,overlay_color.a);}","attribute vec2 a_pos;varying vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=u_matrix*vec4(a_pos*u_overlay_scale,get_elevation(a_pos),1);}"),fill:st("#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);}"),fillOutline:st("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;}"),fillOutlinePattern:st("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 vec3 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\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_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\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_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 tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;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;}
5"),fillPattern:st("#ifdef GL_ES\nprecision highp float;\n#endif\nuniform 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 vec3 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\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_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\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_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 tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;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);}"),fillExtrusion:st("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;\n#ifdef TERRAIN3D\nattribute vec2 a_centroid;\n#endif\nvarying 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;\n#ifdef TERRAIN3D\nfloat height_terrain3d_offset=get_elevation(a_centroid);float base_terrain3d_offset=height_terrain3d_offset-(base > 0.0 ? 0.0 : 10.0);\n#else\nfloat height_terrain3d_offset=0.0;float base_terrain3d_offset=0.0;\n#endif\nbase=max(0.0,base)+base_terrain3d_offset;height=max(0.0,height)+height_terrain3d_offset;float t=mod(normal.x,2.0);gl_Position=u_matrix*vec4(a_pos,t > 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;}"),fillExtrusionPattern:st("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\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_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\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_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 vec3 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;\n#ifdef TERRAIN3D\nattribute vec2 a_centroid;\n#endif\nvarying 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\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_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\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_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 tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec3 normal=a_normal_ed.xyz;float edgedistance=a_normal_ed.w;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;\n#ifdef TERRAIN3D\nfloat height_terrain3d_offset=get_elevation(a_centroid);float base_terrain3d_offset=height_terrain3d_offset-(base > 0.0 ? 0.0 : 10.0);\n#else\nfloat height_terrain3d_offset=0.0;float base_terrain3d_offset=0.0;\n#endif\nbase=max(0.0,base)+base_terrain3d_offset;height=max(0.0,height)+height_terrain3d_offset;float t=mod(normal.x,2.0);float z=t > 0.0 ? height : base;gl_Position=u_matrix*vec4(a_pos,z,1);vec2 pos=normal.x==1.0 && normal.y==0.0 && 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;}"),hillshadePrepare:st("#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 vec4 u_unpack;float getElevation(vec2 coord,float bias) {vec4 data=texture2D(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack)/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 exaggerationFactor=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;float exaggeration=u_zoom < 15.0 ? (u_zoom-15.0)*exaggerationFactor : 0.0;vec2 deriv=vec2((c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c))/pow(2.0,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;}"),hillshade:st("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;
5\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 > 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;}"),line:st("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 > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 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;\n#ifdef TERRAIN3D\nv_gamma_scale=1.0;\n#else\nfloat 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;\n#endif\nv_width2=vec2(outset,inset);}"),lineGradient:st("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 vec2 v_uv;\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,v_uv);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;attribute float a_uv_x;attribute float a_split_index;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;uniform float u_image_height;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp vec2 v_uv;\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;highp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec2(a_uv_x,a_split_index*texel_height-half_texel_height);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 > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 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;\n#ifdef TERRAIN3D\nv_gamma_scale=1.0;\n#else\nfloat 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;\n#endif\nv_width2=vec2(outset,inset);}
5"),linePattern:st("#ifdef GL_ES\nprecision highp float;\n#endif\nuniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_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 pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_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 tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;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 aspect_a=display_size_a.y/v_width;float aspect_b=display_size_b.y/v_width;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*aspect_a,1.0);float x_b=mod(v_linesofar/pattern_size_b.x*aspect_b,1.0);float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;vec2 pos_a=mix(pattern_tl_a*texel_size-texel_size,pattern_br_a*texel_size+texel_size,vec2(x_a,y));vec2 pos_b=mix(pattern_tl_b*texel_size-texel_size,pattern_br_b*texel_size+texel_size,vec2(x_b,y));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;varying float v_width;\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 float floorwidth\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_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 lowp float floorwidth\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_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 > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 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;\n#ifdef TERRAIN3D\nv_gamma_scale=1.0;\n#else\nfloat 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;\n#endif\nv_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}"),lineSDF:st("uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform float u_sdfgamma;
5uniform 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 > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 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;\n#ifdef TERRAIN3D\nv_gamma_scale=1.0;\n#else\nfloat 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;\n#endif\nv_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);}"),raster:st("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 > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 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;}"),symbolIcon:st("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 vec4 a_pixeloffset;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;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_minFontScale=a_pixeloffset.zw/256.0;float ele=get_elevation(a_pos);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,ele,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),ele,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,ele,1.0);float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0),z,1.0);v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float visibility=calculate_visibility(projectedPoint);v_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));}"),symbolSDF:st("#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 inner_edge=(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);inner_edge=inner_edge+gamma*gamma_scale;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(inner_edge-gamma_scaled,inner_edge+gamma_scaled,dist);if (u_is_halo) {lowp float halo_edge=(6.0-halo_width/fontScale)/SDF_PX;alpha=min(smoothstep(halo_edge-gamma_scaled,halo_edge+gamma_scaled,dist),1.0-alpha);}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 vec4 a_pixeloffset;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;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;float ele=get_elevation(a_pos);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,ele,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),ele,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,ele,1.0);float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset),z,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float visibility=calculate_visibility(projectedPoint);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}"),symbolTextAndIcon:st("#define SDF_PX 8.0\n#define SDF 1.0\n#define ICON 0.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;varying vec4 v_data0;varying vec4 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 fade_opacity=v_data1[2];if (v_data1.w==ICON) {vec2 tex_icon=v_data0.zw;lowp float alpha=opacity*fade_opacity;
5gl_FragColor=texture2D(u_texture_icon,tex_icon)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\nreturn;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_data1.x;float size=v_data1.y;float fontScale=size/24.0;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;uniform vec2 u_texsize_icon;varying vec4 v_data0;varying vec4 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;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;float ele=get_elevation(a_pos);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,ele,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=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),ele,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,ele,1.0);float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),z,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float visibility=calculate_visibility(projectedPoint);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}"),terrain:st("uniform sampler2D u_texture;varying vec2 v_texture_pos;void main() {gl_FragColor=texture2D(u_texture,v_texture_pos);}",ot),terrainDepth:st("varying float v_depth;const highp vec4 bitSh=vec4(256.*256.*256.,256.*256.,256.,1.);const highp vec4 bitMsk=vec4(0.,vec3(1./256.0));highp vec4 pack(highp float value) {highp vec4 comp=fract(value*bitSh);comp-=comp.xxyz*bitMsk;return comp;}void main() {gl_FragColor=pack(v_depth);}",ot),terrainCoords:st("precision mediump float;uniform sampler2D u_texture;uniform float u_terrain_coords_id;varying vec2 v_texture_pos;void main() {vec4 rgba=texture2D(u_texture,v_texture_pos);gl_FragColor=vec4(rgba.r,rgba.g,rgba.b,u_terrain_coords_id);}",ot)};
vendor: 11,280 bytes, line 5
5function st(e,t){const i=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,a=t.match(/attribute ([\w]+) ([\w]+)/g),n=e.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),o=t.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),r=o?o.concat(n):n,s={};return{fragmentSource:e=e.replace(i,((e,t,i,a,n)=>(s[n]=!0,"define"===t?`\n#ifndef HAS_UNIFORM_u_${n}\nvarying ${i} ${a} ${n};\n#else\nuniform ${i} ${a} u_${n};\n#endif\n`:`\n#ifdef HAS_UNIFORM_u_${n}\n    ${i} ${a} ${n} = u_${n};\n#endif\n`))),vertexSource:t=t.replace(i,((e,t,i,a,n)=>{const o="float"===a?"vec2":"vec4",r=n.match(/color/)?"color":o;return s[n]?"define"===t?`\n#ifndef HAS_UNIFORM_u_${n}\nuniform lowp float u_${n}_t;\nattribute ${i} ${o} a_${n};\nvarying ${i} ${a} ${n};\n#else\nuniform ${i} ${a} u_${n};\n#endif\n`:"vec4"===r?`\n#ifndef HAS_UNIFORM_u_${n}\n    ${n} = a_${n};\n#else\n    ${i} ${a} ${n} = u_${n};\n#endif\n`:`\n#ifndef HAS_UNIFORM_u_${n}\n    ${n} = unpack_mix_${r}(a_${n}, u_${n}_t);\n#else\n    ${i} ${a} ${n} = u_${n};\n#endif\n`:"define"===t?`\n#ifndef HAS_UNIFORM_u_${n}\nuniform lowp float u_${n}_t;\nattribute ${i} ${o} a_${n};\n#else\nuniform ${i} ${a} u_${n};\n#endif\n`:"vec4"===r?`\n#ifndef HAS_UNIFORM_u_${n}\n    ${i} ${a} ${n} = a_${n};\n#else\n    ${i} ${a} ${n} = u_${n};\n#endif\n`:`\n#ifndef HAS_UNIFORM_u_${n}\n    ${i} ${a} ${n} = unpack_mix_${r}(a_${n}, u_${n}_t);\n#else\n    ${i} ${a} ${n} = u_${n};\n#endif\n`})),staticAttributes:a,staticUniforms:r}}class lt{constructor(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null}bind(e,t,i,a,n,o,r,s,l){this.context=e;let d=this.boundPaintVertexBuffers.length!==a.length;for(let e=0;!d&&e<a.length;e++)this.boundPaintVertexBuffers[e]!==a[e]&&(d=!0);!this.vao||this.boundProgram!==t||this.boundLayoutVertexBuffer!==i||d||this.boundIndexBuffer!==n||this.boundVertexOffset!==o||this.boundDynamicVertexBuffer!==r||this.boundDynamicVertexBuffer2!==s||this.boundDynamicVertexBuffer3!==l?this.freshBind(t,i,a,n,o,r,s,l):(e.bindVertexArray.set(this.vao),r&&r.bind(),n&&n.dynamicDraw&&n.bind(),s&&s.bind(),l&&l.bind())}freshBind(e,t,i,a,n,o,r,s){const l=e.numAttributes,d=this.context,u=d.gl;this.vao&&this.destroy(),this.vao=d.createVertexArray(),d.bindVertexArray.set(this.vao),this.boundProgram=e,this.boundLayoutVertexBuffer=t,this.boundPaintVertexBuffers=i,this.boundIndexBuffer=a,this.boundVertexOffset=n,this.boundDynamicVertexBuffer=o,this.boundDynamicVertexBuffer2=r,this.boundDynamicVertexBuffer3=s,t.enableAttributes(u,e);for(const t of i)t.enableAttributes(u,e);o&&o.enableAttributes(u,e),r&&r.enableAttributes(u,e),s&&s.enableAttributes(u,e),t.bind(),t.setVertexAttribPointers(u,e,n);for(const t of i)t.bind(),t.setVertexAttribPointers(u,e,n);o&&(o.bind(),o.setVertexAttribPointers(u,e,n)),a&&a.bind(),r&&(r.bind(),r.setVertexAttribPointers(u,e,n)),s&&(s.bind(),s.setVertexAttribPointers(u,e,n)),d.currentNumAttributes=l}destroy(){this.vao&&(this.context.deleteVertexArray(this.vao),this.vao=null)}}function dt(e){const t=[];for(let i=0;i<e.length;i++){if(null===e[i])continue;const a=e[i].split(" ");t.push(a.pop())}return t}class ut{constructor(t,i,a,n,o,r){const s=t.gl;this.program=s.createProgram();const l=dt(i.staticAttributes),d=a?a.getBinderAttributes():[],u=l.concat(d),h=rt.prelude.staticUniforms?dt(rt.prelude.staticUniforms):[],c=i.staticUniforms?dt(i.staticUniforms):[],m=a?a.getBinderUniforms():[],p=h.concat(c).concat(m),f=[];for(const e of p)f.indexOf(e)<0&&f.push(e);const _=a?a.defines():[];o&&_.push("#define OVERDRAW_INSPECTOR;"),r&&_.push("#define TERRAIN3D;");const g=_.concat(rt.prelude.fragmentSource,i.fragmentSource).join("\n"),y=_.concat(rt.prelude.vertexSource,i.vertexSource).join("\n"),v=s.createShader(s.FRAGMENT_SHADER);if(s.isContextLost())return void(this.failedToCreate=!0);if(s.shaderSource(v,g),s.compileShader(v),!s.getShaderParameter(v,s.COMPILE_STATUS))throw new Error(`Could not compile fragment shader: ${s.getShaderInfoLog(v)}`);s.attachShader(this.program,v);const w=s.createShader(s.VERTEX_SHADER);if(s.isContextLost())return void(this.failedToCreate=!0);if(s.shaderSource(w,y),s.compileShader(w),!s.getShaderParameter(w,s.COMPILE_STATUS))throw new Error(`Could not compile vertex shader: ${s.getShaderInfoLog(w)}`);s.attachShader(this.program,w),this.attributes={};const x={};this.numAttributes=u.length;for(let e=0;e<this.numAttributes;e++)u[e]&&(s.bindAttribLocation(this.program,e,u[e]),this.attributes[u[e]]=e);if(s.linkProgram(this.program),!s.getProgramParameter(this.program,s.LINK_STATUS))throw new Error(`Program failed to link: ${s.getProgramInfoLog(this.program)}`);s.deleteShader(w),s.deleteShader(v);for(let e=0;e<f.length;e++){const t=f[e];if(t&&!x[t]){const e=s.getUniformLocation(this.program,t);e&&(x[t]=e)}}this.fixedUniforms=n(t,x),this.terrainUniforms=((t,i)=>({u_depth:new e.aL(t,i.u_depth),u_terrain:new e.aL(t,i.u_terrain),u_terrain_dim:new e.aM(t,i.u_terrain_dim),u_terrain_matrix:new e.aN(t,i.u_terrain_matrix),u_terrain_unpack:new e.aO(t,i.u_terrain_unpack),u_terrain_exaggeration:new e.aM(t,i.u_terrain_exaggeration)}))(t,x),this.binderUniforms=a?a.getUniforms(t,x):[]}draw(e,t,i,a,n,o,r,s,l,d,u,h,c,m,p,f,_,g){const y=e.gl;if(this.failedToCreate)return;if(e.program.set(this.program),e.setDepthMode(i),e.setStencilMode(a),e.setColorMode(n),e.setCullFace(o),s){e.activeTexture.set(y.TEXTURE2),y.bindTexture(y.TEXTURE_2D,s.depthTexture),e.activeTexture.set(y.TEXTURE3),y.bindTexture(y.TEXTURE_2D,s.texture);for(const e in this.terrainUniforms)this.terrainUniforms[e].set(s[e])}for(const e in this.fixedUniforms)this.fixedUniforms[e].set(r[e]);p&&p.setUniforms(e,this.binderUniforms,c,{zoom:m});let v=0;switch(t){case y.LINES:v=2;break;case y.TRIANGLES:v=3;break;case y.LINE_STRIP:v=1}for(const i of h.get()){const a=i.vaos||(i.vaos={});(a[l]||(a[l]=new lt)).bind(e,this,d,p?p.getPaintVertexBuffers():[],u,i.vertexOffset,f,_,g),y.drawElements(t,i.primitiveLength*v,y.UNSIGNED_SHORT,i.primitiveOffset*v*2)}}}function ht(e,t,i){const a=1/Ce(i,1,t.transform.tileZoom),n=Math.pow(2,i.tileID.overscaledZ),o=i.tileSize*Math.pow(2,t.transform.tileZoom)/n,r=o*(i.tileID.canonical.x+i.tileID.wrap*n),s=o*i.tileID.canonical.y;return{u_image:0,u_texsize:i.imageAtlasTexture.size,u_scale:[a,e.fromScale,e.toScale],u_fade:e.t,u_pixel_coord_upper:[r>>16,s>>16],u_pixel_coord_lower:[65535&r,65535&s]}}const ct=(t,i,a,n)=>{const o=i.style.light,r=o.properties.get("position"),s=[r.x,r.y,r.z],l=function(){var t=new e.A(9);return e.A!=Float32Array&&(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}();"viewport"===o.properties.get("anchor")&&function(e,t){var i=Math.sin(t),a=Math.cos(t);e[0]=a,e[1]=i,e[2]=0,e[3]=-i,e[4]=a,e[5]=0,e[6]=0,e[7]=0,e[8]=1}(l,-i.transform.angle),function(e,t,i){var a=t[0],n=t[1],o=t[2];e[0]=a*i[0]+n*i[3]+o*i[6],e[1]=a*i[1]+n*i[4]+o*i[7],e[2]=a*i[2]+n*i[5]+o*i[8]}(s,s,l);const d=o.properties.get("color");return{u_matrix:t,u_lightpos:s,u_lightintensity:o.properties.get("intensity"),u_lightcolor:[d.r,d.g,d.b],u_vertical_gradient:+a,u_opacity:n}},mt=(t,i,a,n,o,r,s)=>e.e(ct(t,i,a,n),ht(r,i,s),{u_height_factor:-Math.pow(2,o.overscaledZ)/s.tileSize/8}),pt=e=>({u_matrix:e}),ft=(t,i,a,n)=>e.e(pt(t),ht(a,i,n)),_t=(e,t)=>({u_matrix:e,u_world:t}),gt=(t,i,a,n,o)=>e.e(ft(t,i,a,n),{u_world:o}),yt=(e,t,i,a)=>{const n=e.transform;let o,r;if("map"===a.paint.get("circle-pitch-alignment")){const e=Ce(i,1,n.zoom);o=!0,r=[e,e]}else o=!1,r=n.pixelsToGLUnits;return{u_camera_to_center_distance:n.cameraToCenterDistance,u_scale_with_map:+("map"===a.paint.get("circle-pitch-scale")),u_matrix:e.translatePosMatrix(t.posMatrix,i,a.paint.get("circle-translate"),a.paint.get("circle-translate-anchor")),u_pitch_with_map:+o,u_device_pixel_ratio:e.pixelRatio,u_extrude_scale:r}},vt=(e,t,i)=>{const a=Ce(i,1,t.zoom),n=Math.pow(2,t.zoom-i.tileID.overscaledZ),o=i.tileID.overscaleFactor();return{u_matrix:e,u_camera_to_center_distance:t.cameraToCenterDistance,u_pixels_to_tile_units:a,u_extrude_scale:[t.pixelsToGLUnits[0]/(a*n),t.pixelsToGLUnits[1]/(a*n)],u_overscale_factor:o}},wt=(e,t,i=1)=>({u_matrix:e,u_color:t,u_overlay:0,u_overlay_scale:i}),xt=e=>({u_matrix:e}),bt=(e,t,i,a)=>({u_matrix:e,u_extrude_scale:Ce(t,1,i),u_intensity:a});function kt(t,i){const a=Math.pow(2,i.canonical.z),n=i.canonical.y;return[new e.U(0,n/a).toLngLat().lat,new e.U(0,(n+1)/a).toLngLat().lat]}const St=(e,t,i,a)=>{const n=e.transform;return{u_matrix:Mt(e,t,i,a),u_ratio:1/Ce(t,1,n.zoom),u_device_pixel_ratio:e.pixelRatio,u_units_to_pixels:[1/n.pixelsToGLUnits[0],1/n.pixelsToGLUnits[1]]}},Tt=(t,i,a,n,o)=>e.e(St(t,i,a,o),{u_image:0,u_image_height:n}),Ct=(e,t,i,a,n)=>{const o=e.transform,r=Pt(t,o);return{u_matrix:Mt(e,t,i,n),u_texsize:t.imageAtlasTexture.size,u_ratio:1/Ce(t,1,o.zoom),u_device_pixel_ratio:e.pixelRatio,u_image:0,u_scale:[r,a.fromScale,a.toScale],u_fade:a.t,u_units_to_pixels:[1/o.pixelsToGLUnits[0],1/o.pixelsToGLUnits[1]]}},zt=(t,i,a,n,o,r)=>{const s=t.lineAtlas,l=Pt(i,t.transform),d="round"===a.layout.get("line-cap"),u=s.getDash(n.from,d),h=s.getDash(n.to,d),c=u.width*o.fromScale,m=h.width*o.toScale;return e.e(St(t,i,a,r),{u_patternscale_a:[l/c,-u.height/2],u_patternscale_b:[l/m,-h.height/2],u_sdfgamma:s.width/(256*Math.min(c,m)*t.pixelRatio)/2,u_image:0,u_tex_y_a:u.y,u_tex_y_b:h.y,u_mix:o.t})};function Pt(e,t){return 1/Ce(e,1,t.tileZoom)}function Mt(e,t,i,a){return e.translatePosMatrix(a?a.posMatrix:t.tileID.posMatrix,t,i.paint.get("line-translate"),i.paint.get("line-translate-anchor"))}const Lt=(e,t,i,a,n)=>{return{u_matrix:e,u_tl_parent:t,u_scale_parent:i,u_buffer_scale:1,u_fade_t:a.mix,u_opacity:a.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:(r=n.paint.get("raster-saturation"),r>0?1-1/(1.001-r):-r),u_contrast_factor:(o=n.paint.get("raster-contrast"),o>0?1/(1-o):1+o),u_spin_weights:At(n.paint.get("raster-hue-rotate"))};var o,r};function At(e){e*=Math.PI/180;const t=Math.sin(e),i=Math.cos(e);return[(2*i+1)/3,(-Math.sqrt(3)*t-i+1)/3,(Math.sqrt(3)*t-i+1)/3]}const It=(e,t,i,a,n,o,r,s,l,d)=>{const u=n.transform;return{u_is_size_zoom_constant:+("constant"===e||"source"===e),u_is_size_feature_constant:+("constant"===e||"camera"===e),u_size_t:t?t.uSizeT:0,u_size:t?t.uSize:0,u_camera_to_center_distance:u.cameraToCenterDistance,u_pitch:u.pitch/360*2*Math.PI,u_rotate_symbol:+i,u_aspect_ratio:u.width/u.height,u_fade_change:n.options.fadeDuration?n.symbolFadeChange:1,u_matrix:o,u_label_plane_matrix:r,u_coord_matrix:s,u_is_text:+l,u_pitch_with_map:+a,u_texsize:d,u_texture:0}},Et=(t,i,a,n,o,r,s,l,d,u,h)=>{const c=o.transform;return e.e(It(t,i,a,n,o,r,s,l,d,u),{u_gamma_scale:n?Math.cos(c._pitch)*c.cameraToCenterDistance:1,u_device_pixel_ratio:o.pixelRatio,u_is_halo:+h})},Dt=(t,i,a,n,o,r,s,l,d,u)=>e.e(Et(t,i,a,n,o,r,s,l,!0,d,!0),{u_texsize_icon:u,u_texture_icon:1}),jt=(e,t,i)=>({u_matrix:e,u_opacity:t,u_color:i}),$t=(t,i,a,n,o,r)=>e.e(function(e,t,i,a){const n=i.imageManager.getPattern(e.from.toString()),o=i.imageManager.getPattern(e.to.toString()),{width:r,height:s}=i.imageManager.getPixelSize(),l=Math.pow(2,a.tileID.overscaledZ
vendor: 6,157 bytes, line 5
5),d=a.tileSize*Math.pow(2,i.transform.tileZoom)/l,u=d*(a.tileID.canonical.x+a.tileID.wrap*l),h=d*a.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:[r,s],u_mix:t.t,u_pattern_size_a:n.displaySize,u_pattern_size_b:o.displaySize,u_scale_a:t.fromScale,u_scale_b:t.toScale,u_tile_units_to_pixels:1/Ce(a,1,i.transform.tileZoom),u_pixel_coord_upper:[u>>16,h>>16],u_pixel_coord_lower:[65535&u,65535&h]}}(n,r,a,o),{u_matrix:t,u_opacity:i}),Rt={fillExtrusion:(t,i)=>({u_matrix:new e.aN(t,i.u_matrix),u_lightpos:new e.aP(t,i.u_lightpos),u_lightintensity:new e.aM(t,i.u_lightintensity),u_lightcolor:new e.aP(t,i.u_lightcolor),u_vertical_gradient:new e.aM(t,i.u_vertical_gradient),u_opacity:new e.aM(t,i.u_opacity)}),fillExtrusionPattern:(t,i)=>({u_matrix:new e.aN(t,i.u_matrix),u_lightpos:new e.aP(t,i.u_lightpos),u_lightintensity:new e.aM(t,i.u_lightintensity),u_lightcolor:new e.aP(t,i.u_lightcolor),u_vertical_gradient:new e.aM(t,i.u_vertical_gradient),u_height_factor:new e.aM(t,i.u_height_factor),u_image:new e.aL(t,i.u_image),u_texsize:new e.aQ(t,i.u_texsize),u_pixel_coord_upper:new e.aQ(t,i.u_pixel_coord_upper),u_pixel_coord_lower:new e.aQ(t,i.u_pixel_coord_lower),u_scale:new e.aP(t,i.u_scale),u_fade:new e.aM(t,i.u_fade),u_opacity:new e.aM(t,i.u_opacity)}),fill:(t,i)=>({u_matrix:new e.aN(t,i.u_matrix)}),fillPattern:(t,i)=>({u_matrix:new e.aN(t,i.u_matrix),u_image:new e.aL(t,i.u_image),u_texsize:new e.aQ(t,i.u_texsize),u_pixel_coord_upper:new e.aQ(t,i.u_pixel_coord_upper),u_pixel_coord_lower:new e.aQ(t,i.u_pixel_coord_lower),u_scale:new e.aP(t,i.u_scale),u_fade:new e.aM(t,i.u_fade)}),fillOutline:(t,i)=>({u_matrix:new e.aN(t,i.u_matrix),u_world:new e.aQ(t,i.u_world)}),fillOutlinePattern:(t,i)=>({u_matrix:new e.aN(t,i.u_matrix),u_world:new e.aQ(t,i.u_world),u_image:new e.aL(t,i.u_image),u_texsize:new e.aQ(t,i.u_texsize),u_pixel_coord_upper:new e.aQ(t,i.u_pixel_coord_upper),u_pixel_coord_lower:new e.aQ(t,i.u_pixel_coord_lower),u_scale:new e.aP(t,i.u_scale),u_fade:new e.aM(t,i.u_fade)}),circle:(t,i)=>({u_camera_to_center_distance:new e.aM(t,i.u_camera_to_center_distance),u_scale_with_map:new e.aL(t,i.u_scale_with_map),u_pitch_with_map:new e.aL(t,i.u_pitch_with_map),u_extrude_scale:new e.aQ(t,i.u_extrude_scale),u_device_pixel_ratio:new e.aM(t,i.u_device_pixel_ratio),u_matrix:new e.aN(t,i.u_matrix)}),collisionBox:(t,i)=>({u_matrix:new e.aN(t,i.u_matrix),u_camera_to_center_distance:new e.aM(t,i.u_camera_to_center_distance),u_pixels_to_tile_units:new e.aM(t,i.u_pixels_to_tile_units),u_extrude_scale:new e.aQ(t,i.u_extrude_scale),u_overscale_factor:new e.aM(t,i.u_overscale_factor)}),collisionCircle:(t,i)=>({u_matrix:new e.aN(t,i.u_matrix),u_inv_matrix:new e.aN(t,i.u_inv_matrix),u_camera_to_center_distance:new e.aM(t,i.u_camera_to_center_distance),u_viewport_size:new e.aQ(t,i.u_viewport_size)}),debug:(t,i)=>({u_color:new e.aR(t,i.u_color),u_matrix:new e.aN(t,i.u_matrix),u_overlay:new e.aL(t,i.u_overlay),u_overlay_scale:new e.aM(t,i.u_overlay_scale)}),clippingMask:(t,i)=>({u_matrix:new e.aN(t,i.u_matrix)}),heatmap:(t,i)=>({u_extrude_scale:new e.aM(t,i.u_extrude_scale),u_intensity:new e.aM(t,i.u_intensity),u_matrix:new e.aN(t,i.u_matrix)}),heatmapTexture:(t,i)=>({u_matrix:new e.aN(t,i.u_matrix),u_world:new e.aQ(t,i.u_world),u_image:new e.aL(t,i.u_image),u_color_ramp:new e.aL(t,i.u_color_ramp),u_opacity:new e.aM(t,i.u_opacity)}),hillshade:(t,i)=>({u_matrix:new e.aN(t,i.u_matrix),u_image:new e.aL(t,i.u_image),u_latrange:new e.aQ(t,i.u_latrange),u_light:new e.aQ(t,i.u_light),u_shadow:new e.aR(t,i.u_shadow),u_highlight:new e.aR(t,i.u_highlight),u_accent:new e.aR(t,i.u_accent)}),hillshadePrepare:(t,i)=>({u_matrix:new e.aN(t,i.u_matrix),u_image:new e.aL(t,i.u_image),u_dimension:new e.aQ(t,i.u_dimension),u_zoom:new e.aM(t,i.u_zoom),u_unpack:new e.aO(t,i.u_unpack)}),line:(t,i)=>({u_matrix:new e.aN(t,i.u_matrix),u_ratio:new e.aM(t,i.u_ratio),u_device_pixel_ratio:new e.aM(t,i.u_device_pixel_ratio),u_units_to_pixels:new e.aQ(t,i.u_units_to_pixels)}),lineGradient:(t,i)=>({u_matrix:new e.aN(t,i.u_matrix),u_ratio:new e.aM(t,i.u_ratio),u_device_pixel_ratio:new e.aM(t,i.u_device_pixel_ratio),u_units_to_pixels:new e.aQ(t,i.u_units_to_pixels),u_image:new e.aL(t,i.u_image),u_image_height:new e.aM(t,i.u_image_height)}),linePattern:(t,i)=>({u_matrix:new e.aN(t,i.u_matrix),u_texsize:new e.aQ(t,i.u_texsize),u_ratio:new e.aM(t,i.u_ratio),u_device_pixel_ratio:new e.aM(t,i.u_device_pixel_ratio),u_image:new e.aL(t,i.u_image),u_units_to_pixels:new e.aQ(t,i.u_units_to_pixels),u_scale:new e.aP(t,i.u_scale),u_fade:new e.aM(t,i.u_fade)}),lineSDF:(t,i)=>({u_matrix:new e.aN(t,i.u_matrix),u_ratio:new e.aM(t,i.u_ratio),u_device_pixel_ratio:new e.aM(t,i.u_device_pixel_ratio),u_units_to_pixels:new e.aQ(t,i.u_units_to_pixels),u_patternscale_a:new e.aQ(t,i.u_patternscale_a),u_patternscale_b:new e.aQ(t,i.u_patternscale_b),u_sdfgamma:new e.aM(t,i.u_sdfgamma),u_image:new e.aL(t,i.u_image),u_tex_y_a:new e.aM(t,i.u_tex_y_a),u_tex_y_b:new e.aM(t,i.u_tex_y_b),u_mix:new e.aM(t,i.u_mix)}),raster:(t,i)=>({u_matrix:new e.aN(t,i.u_matrix),u_tl_parent:new e.aQ(t,i.u_tl_parent),u_scale_parent:new e.aM(t,i.u_scale_parent),u_buffer_scale:new e.aM(t,i.u_buffer_scale),u_fade_t:new e.aM(t,i.u_fade_t),u_opacity:new e.aM(t,i.u_opacity),u_image0:new e.aL(t,i.u_image0),u_image1:new e.aL(t,i.u_image1),u_brightness_low:new e.aM(t,i.u_brightness_low),u_brightness_high:new e.aM(t,i.u_brightness_high),u_saturation_factor:new e.aM(t,i.u_saturation_factor),u_contrast_factor:new e.aM(t,i.u_contrast_factor),u_spin_weights:new e.aP(t,i.u_spin_weights)}),symbolIcon:(t,i)=>({u_is_size_zoom_constant:new e.aL(t,i.u_is_size_zoom_constant),u_is_size_feature_constant:new e.aL(t,i.u_is_size_feature_constant),u_size_t:new e.aM(t,i.u_size_t),u_size:new e.aM(t,i.u_size),u_camera_to_center_distance:new e.aM(t,i.u_camera_to_center_distance),u_pitch:new e.aM(t,i.u_pitch),u_rotate_symbol:new e.aL(t,i.u_rotate_symbol),u_aspect_ratio:new e.aM(t,i.u_aspect_ratio),u_fade_change:new e.aM(t,i.u_fade_change),u_matrix:new e.aN(t,i.u_matrix),u_label_plane_matrix:new e.aN(t,i.u_label_plane_matrix
vendor: 66,868 bytes, line 5
5),u_coord_matrix:new e.aN(t,i.u_coord_matrix),u_is_text:new e.aL(t,i.u_is_text),u_pitch_with_map:new e.aL(t,i.u_pitch_with_map),u_texsize:new e.aQ(t,i.u_texsize),u_texture:new e.aL(t,i.u_texture)}),symbolSDF:(t,i)=>({u_is_size_zoom_constant:new e.aL(t,i.u_is_size_zoom_constant),u_is_size_feature_constant:new e.aL(t,i.u_is_size_feature_constant),u_size_t:new e.aM(t,i.u_size_t),u_size:new e.aM(t,i.u_size),u_camera_to_center_distance:new e.aM(t,i.u_camera_to_center_distance),u_pitch:new e.aM(t,i.u_pitch),u_rotate_symbol:new e.aL(t,i.u_rotate_symbol),u_aspect_ratio:new e.aM(t,i.u_aspect_ratio),u_fade_change:new e.aM(t,i.u_fade_change),u_matrix:new e.aN(t,i.u_matrix),u_label_plane_matrix:new e.aN(t,i.u_label_plane_matrix),u_coord_matrix:new e.aN(t,i.u_coord_matrix),u_is_text:new e.aL(t,i.u_is_text),u_pitch_with_map:new e.aL(t,i.u_pitch_with_map),u_texsize:new e.aQ(t,i.u_texsize),u_texture:new e.aL(t,i.u_texture),u_gamma_scale:new e.aM(t,i.u_gamma_scale),u_device_pixel_ratio:new e.aM(t,i.u_device_pixel_ratio),u_is_halo:new e.aL(t,i.u_is_halo)}),symbolTextAndIcon:(t,i)=>({u_is_size_zoom_constant:new e.aL(t,i.u_is_size_zoom_constant),u_is_size_feature_constant:new e.aL(t,i.u_is_size_feature_constant),u_size_t:new e.aM(t,i.u_size_t),u_size:new e.aM(t,i.u_size),u_camera_to_center_distance:new e.aM(t,i.u_camera_to_center_distance),u_pitch:new e.aM(t,i.u_pitch),u_rotate_symbol:new e.aL(t,i.u_rotate_symbol),u_aspect_ratio:new e.aM(t,i.u_aspect_ratio),u_fade_change:new e.aM(t,i.u_fade_change),u_matrix:new e.aN(t,i.u_matrix),u_label_plane_matrix:new e.aN(t,i.u_label_plane_matrix),u_coord_matrix:new e.aN(t,i.u_coord_matrix),u_is_text:new e.aL(t,i.u_is_text),u_pitch_with_map:new e.aL(t,i.u_pitch_with_map),u_texsize:new e.aQ(t,i.u_texsize),u_texsize_icon:new e.aQ(t,i.u_texsize_icon),u_texture:new e.aL(t,i.u_texture),u_texture_icon:new e.aL(t,i.u_texture_icon),u_gamma_scale:new e.aM(t,i.u_gamma_scale),u_device_pixel_ratio:new e.aM(t,i.u_device_pixel_ratio),u_is_halo:new e.aL(t,i.u_is_halo)}),background:(t,i)=>({u_matrix:new e.aN(t,i.u_matrix),u_opacity:new e.aM(t,i.u_opacity),u_color:new e.aR(t,i.u_color)}),backgroundPattern:(t,i)=>({u_matrix:new e.aN(t,i.u_matrix),u_opacity:new e.aM(t,i.u_opacity),u_image:new e.aL(t,i.u_image),u_pattern_tl_a:new e.aQ(t,i.u_pattern_tl_a),u_pattern_br_a:new e.aQ(t,i.u_pattern_br_a),u_pattern_tl_b:new e.aQ(t,i.u_pattern_tl_b),u_pattern_br_b:new e.aQ(t,i.u_pattern_br_b),u_texsize:new e.aQ(t,i.u_texsize),u_mix:new e.aM(t,i.u_mix),u_pattern_size_a:new e.aQ(t,i.u_pattern_size_a),u_pattern_size_b:new e.aQ(t,i.u_pattern_size_b),u_scale_a:new e.aM(t,i.u_scale_a),u_scale_b:new e.aM(t,i.u_scale_b),u_pixel_coord_upper:new e.aQ(t,i.u_pixel_coord_upper),u_pixel_coord_lower:new e.aQ(t,i.u_pixel_coord_lower),u_tile_units_to_pixels:new e.aM(t,i.u_tile_units_to_pixels)}),terrain:(t,i)=>({u_matrix:new e.aN(t,i.u_matrix),u_texture:new e.aL(t,i.u_texture),u_ele_delta:new e.aM(t,i.u_ele_delta)}),terrainDepth:(t,i)=>({u_matrix:new e.aN(t,i.u_matrix),u_ele_delta:new e.aM(t,i.u_ele_delta)}),terrainCoords:(t,i)=>({u_matrix:new e.aN(t,i.u_matrix),u_texture:new e.aL(t,i.u_texture),u_terrain_coords_id:new e.aM(t,i.u_terrain_coords_id),u_ele_delta:new e.aM(t,i.u_ele_delta)})};class Bt{constructor(e,t,i){this.context=e;const a=e.gl;this.buffer=a.createBuffer(),this.dynamicDraw=Boolean(i),this.context.unbindVAO(),e.bindElementBuffer.set(this.buffer),a.bufferData(a.ELEMENT_ARRAY_BUFFER,t.arrayBuffer,this.dynamicDraw?a.DYNAMIC_DRAW:a.STATIC_DRAW),this.dynamicDraw||delete t.arrayBuffer}bind(){this.context.bindElementBuffer.set(this.buffer)}updateData(e){const t=this.context.gl;if(!this.dynamicDraw)throw new Error("Attempted to update data while not in dynamic mode.");this.context.unbindVAO(),this.bind(),t.bufferSubData(t.ELEMENT_ARRAY_BUFFER,0,e.arrayBuffer)}destroy(){this.buffer&&(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)}}const Ft={Int8:"BYTE",Uint8:"UNSIGNED_BYTE",Int16:"SHORT",Uint16:"UNSIGNED_SHORT",Int32:"INT",Uint32:"UNSIGNED_INT",Float32:"FLOAT"};class Ot{constructor(e,t,i,a){this.length=t.length,this.attributes=i,this.itemSize=t.bytesPerElement,this.dynamicDraw=a,this.context=e;const n=e.gl;this.buffer=n.createBuffer(),e.bindVertexBuffer.set(this.buffer),n.bufferData(n.ARRAY_BUFFER,t.arrayBuffer,this.dynamicDraw?n.DYNAMIC_DRAW:n.STATIC_DRAW),this.dynamicDraw||delete t.arrayBuffer}bind(){this.context.bindVertexBuffer.set(this.buffer)}updateData(e){if(e.length!==this.length)throw new Error(`Length of new data is ${e.length}, which doesn't match current length of ${this.length}`);const t=this.context.gl;this.bind(),t.bufferSubData(t.ARRAY_BUFFER,0,e.arrayBuffer)}enableAttributes(e,t){for(let i=0;i<this.attributes.length;i++){const a=t.attributes[this.attributes[i].name];void 0!==a&&e.enableVertexAttribArray(a)}}setVertexAttribPointers(e,t,i){for(let a=0;a<this.attributes.length;a++){const n=this.attributes[a],o=t.attributes[n.name];void 0!==o&&e.vertexAttribPointer(o,n.components,e[Ft[n.type]],!1,this.itemSize,n.offset+this.itemSize*(i||0))}}destroy(){this.buffer&&(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)}}const Nt=new WeakMap;function Vt(e){var t;if(Nt.has(e))return Nt.get(e);{const i=null===(t=e.getParameter(e.VERSION))||void 0===t?void 0:t.startsWith("WebGL 2.0");return Nt.set(e,i),i}}class Ut{constructor(e){this.gl=e.gl,this.default=this.getDefault(),this.current=this.default,this.dirty=!1}get(){return this.current}set(e){}getDefault(){return this.default}setDefault(){this.set(this.default)}}class Zt extends Ut{getDefault(){return e.aT.transparent}set(e){const t=this.current;(e.r!==t.r||e.g!==t.g||e.b!==t.b||e.a!==t.a||this.dirty)&&(this.gl.clearColor(e.r,e.g,e.b,e.a),this.current=e,this.dirty=!1)}}class qt extends Ut{getDefault(){return 1}set(e){(e!==this.current||this.dirty)&&(this.gl.clearDepth(e),this.current=e,this.dirty=!1)}}class Gt extends Ut{getDefault(){return 0}set(e){(e!==this.current||this.dirty)&&(this.gl.clearStencil(e),this.current=e,this.dirty=!1)}}class Wt extends Ut{getDefault(){return[!0,!0,!0,!0]}set(e){const t=this.current;(e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||this.dirty)&&(this.gl.colorMask(e[0],e[1],e[2],e[3]),this.current=e,this.dirty=!1)}}class Ht extends Ut{getDefault(){return!0}set(e){(e!==this.current||this.dirty)&&(this.gl.depthMask(e),this.current=e,this.dirty=!1)}}class Kt extends Ut{getDefault(){return 255}set(e){(e!==this.current||this.dirty)&&(this.gl.stencilMask(e),this.current=e,this.dirty=!1)}}class Xt extends Ut{getDefault(){return{func:this.gl.ALWAYS,ref:0,mask:255}}set(e){const t=this.current;(e.func!==t.func||e.ref!==t.ref||e.mask!==t.mask||this.dirty)&&(this.gl.stencilFunc(e.func,e.ref,e.mask),this.current=e,this.dirty=!1)}}class Jt extends Ut{getDefault(){const e=this.gl;return[e.KEEP,e.KEEP,e.KEEP]}set(e){const t=this.current;(e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||this.dirty)&&(this.gl.stencilOp(e[0],e[1],e[2]),this.current=e,this.dirty=!1)}}class Yt extends Ut{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;e?t.enable(t.STENCIL_TEST):t.disable(t.STENCIL_TEST),this.current=e,this.dirty=!1}}class Qt extends Ut{getDefault(){return[0,1]}set(e){const t=this.current;(e[0]!==t[0]||e[1]!==t[1]||this.dirty)&&(this.gl.depthRange(e[0],e[1]),this.current=e,this.dirty=!1)}}class ei extends Ut{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;e?t.enable(t.DEPTH_TEST):t.disable(t.DEPTH_TEST),this.current=e,this.dirty=!1}}class ti extends Ut{getDefault(){return this.gl.LESS}set(e){(e!==this.current||this.dirty)&&(this.gl.depthFunc(e),this.current=e,this.dirty=!1)}}class ii extends Ut{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;e?t.enable(t.BLEND):t.disable(t.BLEND),this.current=e,this.dirty=!1}}class ai extends Ut{getDefault(){const e=this.gl;return[e.ONE,e.ZERO]}set(e){const t=this.current;(e[0]!==t[0]||e[1]!==t[1]||this.dirty)&&(this.gl.blendFunc(e[0],e[1]),this.current=e,this.dirty=!1)}}class ni extends Ut{getDefault(){return e.aT.transparent}set(e){const t=this.current;(e.r!==t.r||e.g!==t.g||e.b!==t.b||e.a!==t.a||this.dirty)&&(this.gl.blendColor(e.r,e.g,e.b,e.a),this.current=e,this.dirty=!1)}}class oi extends Ut{getDefault(){return this.gl.FUNC_ADD}set(e){(e!==this.current||this.dirty)&&(this.gl.blendEquation(e),this.current=e,this.dirty=!1)}}class ri extends Ut{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;e?t.enable(t.CULL_FACE):t.disable(t.CULL_FACE),this.current=e,this.dirty=!1}}class si extends Ut{getDefault(){return this.gl.BACK}set(e){(e!==this.current||this.dirty)&&(this.gl.cullFace(e),this.current=e,this.dirty=!1)}}class li extends Ut{getDefault(){return this.gl.CCW}set(e){(e!==this.current||this.dirty)&&(this.gl.frontFace(e),this.current=e,this.dirty=!1)}}class di extends Ut{getDefault(){return null}set(e){(e!==this.current||this.dirty)&&(this.gl.useProgram(e),this.current=e,this.dirty=!1)}}class ui extends Ut{getDefault(){return this.gl.TEXTURE0}set(e){(e!==this.current||this.dirty)&&(this.gl.activeTexture(e),this.current=e,this.dirty=!1)}}class hi extends Ut{getDefault(){const e=this.gl;return[0,0,e.drawingBufferWidth,e.drawingBufferHeight]}set(e){const t=this.current;(e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||this.dirty)&&(this.gl.viewport(e[0],e[1],e[2],e[3]),this.current=e,this.dirty=!1)}}class ci extends Ut{getDefault(){return null}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;t.bindFramebuffer(t.FRAMEBUFFER,e),this.current=e,this.dirty=!1}}class mi extends Ut{getDefault(){return null}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;t.bindRenderbuffer(t.RENDERBUFFER,e),this.current=e,this.dirty=!1}}class pi extends Ut{getDefault(){return null}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;t.bindTexture(t.TEXTURE_2D,e),this.current=e,this.dirty=!1}}class fi extends Ut{getDefault(){return null}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;t.bindBuffer(t.ARRAY_BUFFER,e),this.current=e,this.dirty=!1}}class _i extends Ut{getDefault(){return null}set(e){const t=this.gl;t.bindBuffer(t.ELEMENT_ARRAY_BUFFER,e),this.current=e,this.dirty=!1}}class gi extends Ut{getDefault(){return null}set(e){var t;if(e===this.current&&!this.dirty)return;const i=this.gl;Vt(i)?i.bindVertexArray(e):null===(t=i.getExtension("OES_vertex_array_object"))||void 0===t||t.bindVertexArrayOES(e),this.current=e,this.dirty=!1}}class yi extends Ut{getDefault(){return 4}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;t.pixelStorei(t.UNPACK_ALIGNMENT,e),this.current=e,this.dirty=!1}}class vi extends Ut{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,e),this.current=e,this.dirty=!1}}class wi extends Ut{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;t.pixelStorei(t.UNPACK_FLIP_Y_WEBGL,e),this.current=e,this.dirty=!1}}class xi extends Ut{constructor(e,t){super(e),this.context=e,this.parent=t}getDefault(){return null}}class bi extends xi{setDirty(){this.dirty=!0}set(e){if(e===this.current&&!this.dirty)return;this.context.bindFramebuffer.set(this.parent);const t=this.gl;t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,e,0),this.current=e,this.dirty=!1}}class ki extends xi{set(e){if(e===this.current&&!this.dirty)return;this.context.bindFramebuffer.set(this.parent);const t=this.gl;t.framebufferRenderbuffer(t.FRAMEBUFFER,t.DEPTH_ATTACHMENT,t.RENDERBUFFER,e),this.current=e,this.dirty=!1}}class Si extends xi{set(e){if(e===this.current&&!this.dirty)return;this.context.bindFramebuffer.set(this.parent);const t=this.gl;t.framebufferRenderbuffer(t.FRAMEBUFFER,t.DEPTH_STENCIL_ATTACHMENT,t.RENDERBUFFER,e),this.current=e,this.dirty=!1}}class Ti{constructor(e,t,i,a,n){this.context=e,this.width=t,this.height=i;const o=e.gl,r=this.framebuffer=o.createFramebuffer();if(this.colorAttachment=new bi(e,r),a)this.depthAttachment=n?new Si(e,r):new ki(e,r);else if(n)throw new Error("Stencil cannot be setted without depth");if(o.checkFramebufferStatus(o.FRAMEBUFFER)!==o.FRAMEBUFFER_COMPLETE)throw new Error("Framebuffer is not complete")}destroy(){const e=this.context.gl,t=this.colorAttachment.get();if(t&&e.deleteTexture(t),this.depthAttachment){const t=this.depthAttachment.get();t&&e.deleteRenderbuffer(t)}e.deleteFramebuffer(this.framebuffer)}}class Ci{constructor(e,t,i){this.blendFunction=e,this.blendColor=t,this.mask=i}}Ci.Replace=[1,0],Ci.disabled=new Ci(Ci.Replace,e.aT.transparent,[!1,!1,!1,!1]),Ci.unblended=new Ci(Ci.Replace,e.aT.transparent,[!0,!0,!0,!0]),Ci.alphaBlended=new Ci([1,771],e.aT.transparent,[!0,!0,!0,!0]);class zi{constructor(e){var t,i;if(this.gl=e,this.clearColor=new Zt(this),this.clearDepth=new qt(this),this.clearStencil=new Gt(this),this.colorMask=new Wt(this),this.depthMask=new Ht(this),this.stencilMask=new Kt(this),this.stencilFunc=new Xt(this),this.stencilOp=new Jt(this),this.stencilTest=new Yt(this),this.depthRange=new Qt(this),this.depthTest=new ei(this),this.depthFunc=new ti(this),this.blend=new ii(this),this.blendFunc=new ai(this),this.blendColor=new ni(this),this.blendEquation=new oi(this),this.cullFace=new ri(this),this.cullFaceSide=new si(this),this.frontFace=new li(this),this.program=new di(this),this.activeTexture=new ui(this),this.viewport=new hi(this),this.bindFramebuffer=new ci(this),this.bindRenderbuffer=new mi(this),this.bindTexture=new pi(this),this.bindVertexBuffer=new fi(this),this.bindElementBuffer=new _i(this),this.bindVertexArray=new gi(this),this.pixelStoreUnpack=new yi(this),this.pixelStoreUnpackPremultiplyAlpha=new vi(this),this.pixelStoreUnpackFlipY=new wi(this),this.extTextureFilterAnisotropic=e.getExtension("EXT_texture_filter_anisotropic")||e.getExtension("MOZ_EXT_texture_filter_anisotropic")||e.getExtension("WEBKIT_EXT_texture_filter_anisotropic"),this.extTextureFilterAnisotropic&&(this.extTextureFilterAnisotropicMax=e.getParameter(this.extTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT)),this.maxTextureSize=e.getParameter(e.MAX_TEXTURE_SIZE),Vt(e)){this.HALF_FLOAT=e.HALF_FLOAT;const a=e.getExtension("EXT_color_buffer_half_float");this.RGBA16F=null!==(t=e.RGBA16F)&&void 0!==t?t:null==a?void 0:a.RGBA16F_EXT,this.RGB16F=null!==(i=e.RGB16F)&&void 0!==i?i:null==a?void 0:a.RGB16F_EXT,e.getExtension("EXT_color_buffer_float")}else{e.getExtension("EXT_color_buffer_half_float"),e.getExtension("OES_texture_half_float_linear");const t=e.getExtension("OES_texture_half_float");this.HALF_FLOAT=null==t?void 0:t.HALF_FLOAT_OES}}setDefault(){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()}setDirty(){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.bindVertexArray.dirty=!0,this.pixelStoreUnpack.dirty=!0,this.pixelStoreUnpackPremultiplyAlpha.dirty=!0,this.pixelStoreUnpackFlipY.dirty=!0}createIndexBuffer(e,t){return new Bt(this,e,t)}createVertexBuffer(e,t,i){return new Ot(this,e,t,i)}createRenderbuffer(e,t,i){const a=this.gl,n=a.createRenderbuffer();return this.bindRenderbuffer.set(n),a.renderbufferStorage(a.RENDERBUFFER,e,t,i),this.bindRenderbuffer.set(null),n}createFramebuffer(e,t,i,a){return new Ti(this,e,t,i,a)}clear({color:e,depth:t,stencil:i}){const a=this.gl;let n=0;e&&(n|=a.COLOR_BUFFER_BIT,this.clearColor.set(e),this.colorMask.set([!0,!0,!0,!0])),void 0!==t&&(n|=a.DEPTH_BUFFER_BIT,this.depthRange.set([0,1]),this.clearDepth.set(t),this.depthMask.set(!0)),void 0!==i&&(n|=a.STENCIL_BUFFER_BIT,this.clearStencil.set(i),this.stencilMask.set(255)),a.clear(n)}setCullFace(e){!1===e.enable?this.cullFace.set(!1):(this.cullFace.set(!0),this.cullFaceSide.set(e.mode),this.frontFace.set(e.frontFace))}setDepthMode(e){e.func!==this.gl.ALWAYS||e.mask?(this.depthTest.set(!0),this.depthFunc.set(e.func),this.depthMask.set(e.mask),this.depthRange.set(e.range)):this.depthTest.set(!1)}setStencilMode(e){e.test.func!==this.gl.ALWAYS||e.mask?(this.stencilTest.set(!0),this.stencilMask.set(e.mask),this.stencilOp.set([e.fail,e.depthFail,e.pass]),this.stencilFunc.set({func:e.test.func,ref:e.ref,mask:e.test.mask})):this.stencilTest.set(!1)}setColorMode(t){e.aG(t.blendFunction,Ci.Replace)?this.blend.set(!1):(this.blend.set(!0),this.blendFunc.set(t.blendFunction),this.blendColor.set(t.blendColor)),this.colorMask.set(t.mask)}createVertexArray(){var e;return Vt(this.gl)?this.gl.createVertexArray():null===(e=this.gl.getExtension("OES_vertex_array_object"))||void 0===e?void 0:e.createVertexArrayOES()}deleteVertexArray(e){var t;return Vt(this.gl)?this.gl.deleteVertexArray(e):null===(t=this.gl.getExtension("OES_vertex_array_object"))||void 0===t?void 0:t.deleteVertexArrayOES(e)}unbindVAO(){this.bindVertexArray.set(null)}}class Pi{constructor(e,t,i){this.func=e,this.mask=t,this.range=i}}Pi.ReadOnly=!1,Pi.ReadWrite=!0,Pi.disabled=new Pi(519,Pi.ReadOnly,[0,1]);const Mi=7680;class Li{constructor(e,t,i,a,n,o){this.test=e,this.ref=t,this.mask=i,this.fail=a,this.depthFail=n,this.pass=o}}Li.disabled=new Li({func:519,mask:0},0,0,Mi,Mi,Mi);class Ai{constructor(e,t,i){this.enable=e,this.mode=t,this.frontFace=i}}let Ii;function Ei(t,i,a,n,o,r,s){const l=t.context,d=l.gl,u=t.useProgram("collisionBox"),h=[];let c=0,m=0;for(let p=0;p<n.length;p++){const f=n[p],_=i.getTile(f),g=_.getBucket(a);if(!g)continue;let y=f.posMatrix;0===o[0]&&0===o[1]||(y=t.translatePosMatrix(f.posMatrix,_,o,r));const v=s?g.textCollisionBox:g.iconCollisionBox,w=g.collisionCircleArray;if(w.length>0){const i=e.Z(),a=y;e.aU(i,g.placementInvProjMatrix,t.transform.glCoordMatrix),e.aU(i,i,g.placementViewportMatrix),h.push({circleArray:w,circleOffset:m,transform:a,invTransform:i,coord:f}),c+=w.length/4,m=c}v&&u.draw(l,d.LINES,Pi.disabled,Li.disabled,t.colorModeForRenderPass(),Ai.disabled,vt(y,t.transform,_),t.style.map.terrain&&t.style.map.terrain.getTerrainData(f),a.id,v.layoutVertexBuffer,v.indexBuffer,v.segments,null,t.transform.zoom,null,null,v.collisionVertexBuffer)}if(!s||!h.length)return;const p=t.useProgram("collisionCircle"),f=new e.aV;f.resize(4*c),f._trim();let _=0;for(const e of h)for(let t=0;t<e.circleArray.length/4;t++){const i=4*t,a=e.circleArray[i+0],n=e.circleArray[i+1],o=e.circleArray[i+2],r=e.circleArray[i+3];f.emplace(_++,a,n,o,r,0),f.emplace(_++,a,n,o,r,1),f.emplace(_++,a,n,o,r,2),f.emplace(_++,a,n,o,r,3)}(!Ii||Ii.length<2*c)&&(Ii=function(t){const i=2*t,a=new e.aX;a.resize(i),a._trim();for(let e=0;e<i;e++){const t=6*e;a.uint16[t+0]=4*e+0,a.uint16[t+1]=4*e+1,a.uint16[t+2]=4*e+2,a.uint16[t+3]=4*e+2,a.uint16[t+4]=4*e+3,a.uint16[t+5]=4*e+0}return a}(c));const g=l.createIndexBuffer(Ii,!0),y=l.createVertexBuffer(f,e.aW.members,!0);for(const i of h){const n={u_matrix:i.transform,u_inv_matrix:i.invTransform,u_camera_to_center_distance:(v=t.transform).cameraToCenterDistance,u_viewport_size:[v.width,v.height]};p.draw(l,d.TRIANGLES,Pi.disabled,Li.disabled,t.colorModeForRenderPass(),Ai.disabled,n,t.style.map.terrain&&t.style.map.terrain.getTerrainData(i.coord),a.id,y,g,e.S.simpleSegment(0,2*i.circleOffset,i.circleArray.length,i.circleArray.length/2),null,t.transform.zoom,null,null,null)}var v;y.destroy(),g.destroy()}Ai.disabled=new Ai(!1,1029,2305),Ai.backCCW=new Ai(!0,1029,2305);const Di=e.ao(new Float32Array(16));function ji(t,i,a,n,o,r){const{horizontalAlign:s,verticalAlign:l}=e.au(t);return new e.P((-(s-.5)*i/o+n[0])*r,(-(l-.5)*a/o+n[1])*r)}function $i(t,i,a,n,o,r,s,l,d,u,h){const c=t.text.placedSymbolArray,m=t.text.dynamicLayoutVertexArray,p=t.icon.dynamicLayoutVertexArray,f={};m.clear();for(let p=0;p<c.length;p++){const _=c.get(p),g=_.hidden||!_.crossTileID||t.allowVerticalPlacement&&!_.placedOrientation?null:n[_.crossTileID];if(g){const n=new e.P(_.anchorX,_.anchorY),c=de(n,a?s:r,h),p=ue(o.cameraToCenterDistance,c.signedDistanceFromCamera);let y=e.aj(t.textSizeData,d,_)*p/e.ap;a&&(y*=t.tilePixelRatio/l);const{width:v,height:w,anchor:x,textOffset:b,textBoxScale:k}=g,S=ji(x,v,w,b,k,y),T=a?de(n.add(S),r,h).point:c.point.add(i?S.rotate(-o.angle):S),C=t.allowVerticalPlacement&&_.placedOrientation===e.ai.vertical?Math.PI/2:0;for(let t=0;t<_.numGlyphs;t++)e.ak(m,T,C);u&&_.associatedIconIndex>=0&&(f[_.associatedIconIndex]={shiftedAnchor:T,angle:C})}else be(_.numGlyphs,m)}if(u){p.clear();const i=t.icon.placedSymbolArray;for(let t=0;t<i.length;t++){const a=i.get(t);if(a.hidden)be(a.numGlyphs,p);else{const i=f[t];if(i)for(let t=0;t<a.numGlyphs;t++)e.ak(p,i.shiftedAnchor,i.angle);else be(a.numGlyphs,p)}}t.icon.dynamicLayoutVertexBuffer.updateData(p)}t.text.dynamicLayoutVertexBuffer.updateData(m)}function Ri(e,t,i){return i.iconsInText&&t?"symbolTextAndIcon":e?"symbolSDF":"symbolIcon"}function Bi(t,i,a,n,o,r,s,l,d,u,h,c){const m=t.context,p=m.gl,f=t.transform,_="map"===l,g="map"===d,y="viewport"!==l&&"point"!==a.layout.get("symbol-placement"),v=_&&!g&&!y,w=!a.layout.get("symbol-sort-key").isConstant();let x=!1;const b=t.depthModeForSublayer(0,Pi.ReadOnly),k=a._unevaluatedLayout.hasValue("text-variable-anchor")||a._unevaluatedLayout.hasValue("text-variable-anchor-offset"),S=[];for(const l of n){const n=i.getTile(l),d=n.getBucket(a);if(!d)continue;const h=o?d.text:d.icon;if(!h||!h.segments.get().length||!h.hasVisibleVertices)continue;const c=h.programConfigurations.get(a.id),m=o||d.sdfIcons,b=o?d.textSizeData:d.iconSizeData,T=g||0!==f.pitch,C=t.useProgram(Ri(m,o,d),c),z=e.ah(b,f.zoom),P=t.style.map.terrain&&t.style.map.terrain.getTerrainData(l);let M,L,A,I,E=[0,0],D=null;if(o)L=n.glyphAtlasTexture,A=p.LINEAR,M=n.glyphAtlasTexture.size,d.iconsInText&&(E=n.imageAtlasTexture.size,D=n.imageAtlasTexture,I=T||t.options.rotating||t.options.zooming||"composite"===b.kind||"camera"===b.kind?p.LINEAR:p.NEAREST);else{const e=1!==a.layout.get("icon-size").constantOr(0)||d.iconsNeedLinear;L=n.imageAtlasTexture,A=m||t.options.rotating||t.options.zooming||e||T?p.LINEAR:p.NEAREST,M=n.imageAtlasTexture.size}const j=Ce(n,1,t.transform.zoom),$=se(l.posMatrix,g,_,t.transform,j),R=le(l.posMatrix,g,_,t.transform,j),B=k&&d.hasTextData(),F="none"!==a.layout.get("icon-text-fit")&&B&&d.hasIconData();if(y){const e=t.style.map.terrain?(e,i)=>t.style.map.terrain.getElevation(l,e,i):null,i="map"===a.layout.get("text-rotation-alignment");ce(d,l.posMatrix,t,o,$,R,g,u,i,e)}const O=t.translatePosMatrix(l.posMatrix,n,r,s),N=y||o&&k||F?Di:$,V=t.translatePosMatrix(R,n,r,s,!0),U=m&&0!==a.paint.get(o?"text-halo-width":"icon-halo-width").constantOr(1);let Z;Z=m?d.iconsInText?Dt(b.kind,z,v,g,t,O,N,V,M,E):Et(b.kind,z,v,g,t,O,N,V,o,M,!0):It(b.kind,z,v,g,t,O,N,V,o,M);const q={program:C,buffers:h,uniformValues:Z,atlasTexture:L,atlasTextureIcon:D,atlasInterpolation:A,atlasInterpolationIcon:I,isSDF:m,hasHalo:U};if(w&&d.canOverlap){x=!0;const t=h.segments.get();for(const i of t)S.push({segments:new e.S([i]),sortKey:i.sortKey,state:q,terrainData:P})}else S.push({segments:h.segments,sortKey:0,state:q,terrainData:P})}x&&S.sort(((e,t)=>e.sortKey-t.sortKey));for(const e of S){const i=e.state;if(m.activeTexture.set(p.TEXTURE0),i.atlasTexture.bind(i.atlasInterpolation,p.CLAMP_TO_EDGE),i.atlasTextureIcon&&(m.activeTexture.set(p.TEXTURE1),i.atlasTextureIcon&&i.atlasTextureIcon.bind(i.atlasInterpolationIcon,p.CLAMP_TO_EDGE)),i.isSDF){const n=i.uniformValues;i.hasHalo&&(n.u_is_halo=1,Fi(i.buffers,e.segments,a,t,i.program,b,h,c,n,e.terrainData)),n.u_is_halo=0}Fi(i.buffers,e.segments,a,t,i.program,b,h,c,i.uniformValues,e.terrainData)}}function Fi(e,t,i,a,n,o,r,s,l,d){const u=a.context;n.draw(u,u.gl.TRIANGLES,o,r,s,Ai.disabled,l,d,i.id,e.layoutVertexBuffer,e.indexBuffer,t,i.paint,a.transform.zoom,e.programConfigurations.get(i.id),e.dynamicLayoutVertexBuffer,e.opacityVertexBuffer)}function Oi(e,t,i,a,n){if(!i||!a||!a.imageAtlas)return;const o=a.imageAtlas.patternPositions;let r=o[i.to.toString()],s=o[i.from.toString()];if(!r&&s&&(r=s),!s&&r&&(s=r),!r||!s){const e=n.getPaintProperty(t);r=o[e],s=o[e]}r&&s&&e.setConstantPatternPositions(r,s)}function Ni(e,t,i,a,n,o,r){const s=e.context.gl,l="fill-pattern",d=i.paint.get(l),u=d&&d.constantOr(1),h=i.getCrossfadeParameters();let c,m,p,f,_;r?(m=u&&!i.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline",c=s.LINES):(m=u?"fillPattern":"fill",c=s.TRIANGLES);const g=d.constantOr(null);for(const d of a){const a=t.getTile(d);if(u&&!a.patternsLoaded())continue;const y=a.getBucket(i);if(!y)continue;const v=y.programConfigurations.get(i.id),w=e.useProgram(m,v),x=e.style.map.terrain&&e.style.map.terrain.getTerrainData(d);u&&(e.context.activeTexture.set(s.TEXTURE0),a.imageAtlasTexture.bind(s.LINEAR,s.CLAMP_TO_EDGE),v.updatePaintBuffers(h)),Oi(v,l,g,a,i);const b=x?d:null,k=e.translatePosMatrix(b?b.posMatrix:d.posMatrix,a,i.paint.get("fill-translate"),i.paint.get("fill-translate-anchor"));if(r){f=y.indexBuffer2,_=y.segments2;const t=[s.drawingBufferWidth,s.drawingBufferHeight];p="fillOutlinePattern"===m&&u?gt(k,e,h,a,t):_t(k,t)}else f=y.indexBuffer,_=y.segments,p=u?ft(k,e,h,a):pt(k);w.draw(e.context,c,n,e.stencilModeForClipping(d),o,Ai.disabled,p,x,i.id,y.layoutVertexBuffer,f,_,i.paint,e.transform.zoom,v)}}function Vi(e,t,i,a,n,o,r){const s=e.context,l=s.gl,d="fill-extrusion-pattern",u=i.paint.get(d),h=u.constantOr(1),c=i.getCrossfadeParameters(),m=i.paint.get("fill-extrusion-opacity"),p=u.constantOr(null);for(const u of a){const a=t.getTile(u),f=a.getBucket(i);if(!f)continue;const _=e.style.map.terrain&&e.style.map.terrain.getTerrainData(u),g=f.programConfigurations.get(i.id),y=e.useProgram(h?"fillExtrusionPattern":"fillExtrusion",g);h&&(e.context.activeTexture.set(l.TEXTURE0),a.imageAtlasTexture.bind(l.LINEAR,l.CLAMP_TO_EDGE),g.updatePaintBuffers(c)),Oi(g,d,p,a,i);const v=e.translatePosMatrix(u.posMatrix,a,i.paint.get("fill-extrusion-translate"),i.paint.get("fill-extrusion-translate-anchor")),w=i.paint.get("fill-extrusion-vertical-gradient"),x=h?mt(v,e,w,m,u,c,a):ct(v,e,w,m);y.draw(s,s.gl.TRIANGLES,n,o,r,Ai.backCCW,x,_,i.id,f.layoutVertexBuffer,f.indexBuffer,f.segments,i.paint,e.transform.zoom,g,e.style.map.terrain&&f.centroidVertexBuffer)}}function Ui(e,t,i,a,n,o,r){const s=e.context,l=s.gl,d=i.fbo;if(!d)return;const u=e.useProgram("hillshade"),h=e.style.map.terrain&&e.style.map.terrain.getTerrainData(t);s.activeTexture.set(l.TEXTURE0),l.bindTexture(l.TEXTURE_2D,d.colorAttachment.get()),u.draw(s,l.TRIANGLES,n,o,r,Ai.disabled,((e,t,i,a)=>{const n=i.paint.get("hillshade-shadow-color"),o=i.paint.get("hillshade-highlight-color"),r=i.paint.get("hillshade-accent-color");let s=i.paint.get("hillshade-illumination-direction")*(Math.PI/180);"viewport"===i.paint.get("hillshade-illumination-anchor")&&(s-=e.transform.angle);const l=!e.options.moving;return{u_matrix:a?a.posMatrix:e.transform.calculatePosMatrix(t.tileID.toUnwrapped(),l),u_image:0,u_latrange:kt(0,t.tileID),u_light:[i.paint.get("hillshade-exaggeration"),s],u_shadow:n,u_highlight:o,u_accent:r}})(e,i,a,h?t:null),h,a.id,e.rasterBoundsBuffer,e.quadTriangleIndexBuffer,e.rasterBoundsSegments)}function Zi(t,i,a,n,o,r){const s=t.context,l=s.gl,d=i.dem;if(d&&d.data){const u=d.dim,h=d.stride,c=d.getPixels();if(s.activeTexture.set(l.TEXTURE1),s.pixelStoreUnpackPremultiplyAlpha.set(!1),i.demTexture=i.demTexture||t.getTileTexture(h),i.demTexture){const e=i.demTexture;e.update(c,{premultiply:!1}),e.bind(l.NEAREST,l.CLAMP_TO_EDGE)}else i.demTexture=new v(s,c,l.RGBA,{premultiply:!1}),i.demTexture.bind(l.NEAREST,l.CLAMP_TO_EDGE);s.activeTexture.set(l.TEXTURE0);let m=i.fbo;if(!m){const e=new v(s,{width:u,height:u,data:null},l.RGBA);e.bind(l.LINEAR,l.CLAMP_TO_EDGE),m=i.fbo=s.createFramebuffer(u,u,!0,!1),m.colorAttachment.set(e.texture)}s.bindFramebuffer.set(m.framebuffer),s.viewport.set([0,0,u,u]),t.useProgram("hillshadePrepare").draw(s,l.TRIANGLES,n,o,r,Ai.disabled,((t,i)=>{const a=i.stride,n=e.Z();return e.aS(n,0,e.N,-e.N,0,0,1),e.$(n,n,[0,-e.N,0]),{u_matrix:n,u_image:1,u_dimension:[a,a],u_zoom:t.overscaledZ,u_unpack:i.getUnpackVector()}})(i.tileID,d),null,a.id,t.rasterBoundsBuffer,t.quadTriangleIndexBuffer,t.rasterBoundsSegments),i.needsHillshadePrepare=!1}}function qi(t,i,a,n,o,r){const s=n.paint.get("raster-fade-duration");if(!r&&s>0){const n=e.h.now(),r=(n-t.timeAdded)/s,l=i?(n-i.timeAdded)/s:-1,d=a.getSource(),u=o.coveringZoomLevel({tileSize:d.tileSize,roundZoom:d.roundZoom}),h=!i||Math.abs(i.tileID.overscaledZ-u)>Math.abs(t.tileID.overscaledZ-u),c=h&&t.refreshedUponExpiration?1:e.ad(h?r:1-l,0,1);return t.refreshedUponExpiration&&r>=1&&(t.refreshedUponExpiration=!1),i?{opacity:1,mix:1-c}:{opacity:c,mix:0}}return{opacity:1,mix:0}}const Gi=new e.aT(1,0,0,1),Wi=new e.aT(0,1,0,1),Hi=new e.aT(0,0,1,1),Ki=new e.aT(1,0,1,1),Xi=new e.aT(0,1,1,1);function Ji(e,t,i,a){Qi(e,0,t+i/2,e.transform.width,i,a)}function Yi(e,t,i,a){Qi(e,t-i/2,0,i,e.transform.height,a)}function Qi(e,t,i,a,n,o){const r=e.context,s=r.gl;s.enable(s.SCISSOR_TEST),s.scissor(t*e.pixelRatio,i*e.pixelRatio,a*e.pixelRatio,n*e.pixelRatio),r.clear({color:o}),s.disable(s.SCISSOR_TEST)}function ea(t,i,a){const n=t.context,o=n.gl,r=a.posMatrix,s=t.useProgram("debug"),l=Pi.disabled,d=Li.disabled,u=t.colorModeForRenderPass(),h="$debug",c=t.style.map.terrain&&t.style.map.terrain.getTerrainData(a);n.activeTexture.set(o.TEXTURE0);const m=i.getTileByID(a.key).latestRawTileData,p=Math.floor((m&&m.byteLength||0)/1024),f=i.getTile(a).tileSize,_=512/Math.min(f,512)*(a.overscaledZ/t.transform.zoom)*.5;let g=a.canonical.toString();a.overscaledZ!==a.canonical.z&&(g+=` => ${a.overscaledZ}`),function(e,t){e.initDebugOverlayCanvas();const i=e.debugOverlayCanvas,a=e.context.gl,n=e.debugOverlayCanvas.getContext("2d");n.clearRect(0,0,i.width,i.height),n.shadowColor="white",n.shadowBlur=2,n.lineWidth=1.5,n.strokeStyle="white",n.textBaseline="top",n.font="bold 36px Open Sans, sans-serif",n.fillText(t,5,5),n.strokeText(t,5,5),e.debugOverlayTexture.update(i),e.debugOverlayTexture.bind(a.LINEAR,a.CLAMP_TO_EDGE)}(t,`${g} ${p}kB`),s.draw(n,o.TRIANGLES,l,d,Ci.alphaBlended,Ai.disabled,wt(r,e.aT.transparent,_),null,h,t.debugBuffer,t.quadTriangleIndexBuffer,t.debugSegments),s.draw(n,o.LINE_STRIP,l,d,u,Ai.disabled,wt(r,e.aT.red),c,h,t.debugBuffer,t.tileBorderIndexBuffer,t.debugSegments)}function ta(e,t,i){const a=e.context,n=a.gl,o=e.colorModeForRenderPass(),r=new Pi(n.LEQUAL,Pi.ReadWrite,e.depthRangeFor3D),s=e.useProgram("terrain"),l=t.getTerrainMesh();a.bindFramebuffer.set(null),a.viewport.set([0,0,e.width,e.height]);for(const d of i){const i=e.renderToTexture.getTexture(d),u=t.getTerrainData(d.tileID);a.activeTexture.set(n.TEXTURE0),n.bindTexture(n.TEXTURE_2D,i.texture);const h={u_matrix:e.transform.calculatePosMatrix(d.tileID.toUnwrapped()),u_texture:0,u_ele_delta:t.getMeshFrameDelta(e.transform.zoom)};s.draw(a,n.TRIANGLES,r,Li.disabled,o,Ai.backCCW,h,u,"terrain",l.vertexBuffer,l.indexBuffer,l.segments)}}class ia{constructor(t,i){this.context=new zi(t),this.transform=i,this._tileTextures={},this.terrainFacilitator={dirty:!0,matrix:e.Z(),renderTime:0},this.setup(),this.numSublayers=X.maxUnderzooming+X.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new Ye}resize(e,t,i){if(this.width=Math.floor(e*i),this.height=Math.floor(t*i),this.pixelRatio=i,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(const e of this.style._order)this.style._layers[e].resize()}setup(){const t=this.context,i=new e.a_;i.emplaceBack(0,0),i.emplaceBack(e.N,0),i.emplaceBack(0,e.N),i.emplaceBack(e.N,e.N),this.tileExtentBuffer=t.createVertexBuffer(i,nt.members),this.tileExtentSegments=e.S.simpleSegment(0,0,4,2);const a=new e.a_;a.emplaceBack(0,0),a.emplaceBack(e.N,0),a.emplaceBack(0,e.N),a.emplaceBack(e.N,e.N),this.debugBuffer=t.createVertexBuffer(a,nt.members),this.debugSegments=e.S.simpleSegment(0,0,4,5);const n=new e.V;n.emplaceBack(0,0,0,0),n.emplaceBack(e.N,0,e.N,0),n.emplaceBack(0,e.N,0,e.N),n.emplaceBack(e.N,e.N,e.N,e.N),this.rasterBoundsBuffer=t.createVertexBuffer(n,B.members),this.rasterBoundsSegments=e.S.simpleSegment(0,0,4,2);const o=new e.a_;o.emplaceBack(0,0),o.emplaceBack(1,0),o.emplaceBack(0,1),o.emplaceBack(1,1),this.viewportBuffer=t.createVertexBuffer(o,nt.members),this.viewportSegments=e.S.simpleSegment(0,0,4,2);const r=new e.a$;r.emplaceBack(0),r.emplaceBack(1),r.emplaceBack(3),r.emplaceBack(2),r.emplaceBack(0),this.tileBorderIndexBuffer=t.createIndexBuffer(r);const s=new e.b0;s.emplaceBack(0,1,2),s.emplaceBack(2,1,3),this.quadTriangleIndexBuffer=t.createIndexBuffer(s);const l=this.context.gl;this.stencilClearMode=new Li({func:l.ALWAYS,mask:0},0,255,l.ZERO,l.ZERO,l.ZERO)}clearStencil(){const t=this.context,i=t.gl;this.nextStencilID=1,this.currentStencilSource=void 0;const a=e.Z();e.aS(a,0,this.width,this.height,0,0,1),e.a0(a,a,[i.drawingBufferWidth,i.drawingBufferHeight,0]),this.useProgram("clippingMask").draw(t,i.TRIANGLES,Pi.disabled,this.stencilClearMode,Ci.disabled,Ai.disabled,xt(a),null,"$clipping",this.viewportBuffer,this.quadTriangleIndexBuffer,this.viewportSegments)}_renderTileClippingMasks(e,t){if(this.currentStencilSource===e.source||!e.isTileClipped()||!t||!t.length)return;this.currentStencilSource=e.source;const i=this.context,a=i.gl;this.nextStencilID+t.length>256&&this.clearStencil(),i.setColorMode(Ci.disabled),i.setDepthMode(Pi.disabled);const n=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(const e of t){const t=this._tileClippingMaskIDs[e.key]=this.nextStencilID++,o=this.style.map.terrain&&this.style.map.terrain.getTerrainData(e);n.draw(i,a.TRIANGLES,Pi.disabled,new Li({func:a.ALWAYS,mask:0},t,255,a.KEEP,a.KEEP,a.REPLACE),Ci.disabled,Ai.disabled,xt(e.posMatrix),o,"$clipping",this.tileExtentBuffer,this.quadTriangleIndexBuffer,this.tileExtentSegments)}}stencilModeFor3D(){this.currentStencilSource=void 0,this.nextStencilID+1>256&&this.clearStencil();const e=this.nextStencilID++,t=this.context.gl;return new Li({func:t.NOTEQUAL,mask:255},e,255,t.KEEP,t.KEEP,t.REPLACE)}stencilModeForClipping(e){const t=this.context.gl;return new Li({func:t.EQUAL,mask:255},this._tileClippingMaskIDs[e.key],0,t.KEEP,t.KEEP,t.REPLACE)}stencilConfigForOverlap(e){const t=this.context.gl,i=e.sort(((e,t)=>t.overscaledZ-e.overscaledZ)),a=i[i.length-1].overscaledZ,n=i[0].overscaledZ-a+1;if(n>1){this.currentStencilSource=void 0,this.nextStencilID+n>256&&this.clearStencil();const e={};for(let i=0;i<n;i++)e[i+a]=new Li({func:t.GEQUAL,mask:255},i+this.nextStencilID,255,t.KEEP,t.KEEP,t.REPLACE);return this.nextStencilID+=n,[e,i]}return[{[a]:Li.disabled},i]}colorModeForRenderPass(){const t=this.context.gl;if(this._showOverdrawInspector){const i=1/8;return new Ci([t.CONSTANT_COLOR,t.ONE],new e.aT(i,i,i,0),[!0,!0,!0,!0])}return"opaque"===this.renderPass?Ci.unblended:Ci.alphaBlended}depthModeForSublayer(e,t,i){if(!this.opaquePassEnabledForLayer())return Pi.disabled;const a=1-((1+this.currentLayer)*this.numSublayers+e)*this.depthEpsilon;return new Pi(i||this.context.gl.LEQUAL,t,[a,a])}opaquePassEnabledForLayer(){return this.currentLayer<this.opaquePassCutoff}render(t,i){this.style=t,this.options=i,this.lineAtlas=t.lineAtlas,this.imageManager=t.imageManager,this.glyphManager=t.glyphManager,this.symbolFadeChange=t.placement.symbolFadeChange(e.h.now()),this.imageManager.beginFrame();const a=this.style._order,n=this.style.sourceCaches,o={},r={},s={};for(const e in n){const t=n[e];t.used&&t.prepare(this.context),o[e]=t.getVisibleCoordinates(),r[e]=o[e].slice().reverse(),s[e]=t.getVisibleCoordinates(!0).reverse()}this.opaquePassCutoff=1/0;for(let e=0;e<a.length;e++)if(this.style._layers[a[e]].is3D()){this.opaquePassCutoff=e;break}if(this.renderToTexture){this.renderToTexture.prepareForRender(this.style,this.transform.zoom),this.opaquePassCutoff=0;const t=this.style.map.terrain.sourceCache.tilesAfterTime(this.terrainFacilitator.renderTime);(this.terrainFacilitator.dirty||!e.b1(this.terrainFacilitator.matrix,this.transform.projMatrix)||t.length)&&(e.b2(this.terrainFacilitator.matrix,this.transform.projMatrix),this.terrainFacilitator.renderTime=Date.now(),this.terrainFacilitator.dirty=!1,function(t,i){const a=t.context,n=a.gl,o=Ci.unblended,r=new Pi(n.LEQUAL,Pi.ReadWrite,[0,1]),s=i.getTerrainMesh(),l=i.sourceCache.getRenderableTiles(),d=t.useProgram("terrainDepth");a.bindFramebuffer.set(i.getFramebuffer("depth").framebuffer),a.viewport.set([0,0,t.width/devicePixelRatio,t.height/devicePixelRatio]),a.clear({color:e.aT.transparent,depth:1});for(const e of l){const l=i.getTerrainData(e.tileID),u={u_matrix:t.transform.calculatePosMatrix(e.tileID.toUnwrapped()),u_ele_delta:i.getMeshFrameDelta(t.transform.zoom)};d.draw(a,n.TRIANGLES,r,Li.disabled,o,Ai.backCCW,u,l,"terrain",s.vertexBuffer,s.indexBuffer,s.segments)}a.bindFramebuffer.set(null),a.viewport.set([0,0,t.width,t.height])}(this,this.style.map.terrain),function(t,i){const a=t.context,n=a.gl,o=Ci.unblended,r=new Pi(n.LEQUAL,Pi.ReadWrite,[0,1]),s=i.getTerrainMesh(),l=i.getCoordsTexture(),d=i.sourceCache.getRenderableTiles(),u=t.useProgram("terrainCoords");a.bindFramebuffer.set(i.getFramebuffer("coords").framebuffer),a.viewport.set([0,0,t.width/devicePixelRatio,t.height/devicePixelRatio]),a.clear({color:e.aT.transparent,depth:1}),i.coordsIndex=[];for(const e of d){const d=i.getTerrainData(e.tileID);a.activeTexture.set(n.TEXTURE0),n.bindTexture(n.TEXTURE_2D,l.texture);const h={u_matrix:t.transform.calculatePosMatrix(e.tileID.toUnwrapped()),u_terrain_coords_id:(255-i.coordsIndex.length)/255,u_texture:0,u_ele_delta:i.getMeshFrameDelta(t.transform.zoom)};u.draw(a,n.TRIANGLES,r,Li.disabled,o,Ai.backCCW,h,d,"terrain",s.vertexBuffer,s.indexBuffer,s.segments),i.coordsIndex.push(e.tileID.key)}a.bindFramebuffer.set(null),a.viewport.set([0,0,t.width,t.height])}(this,this.style.map.terrain))}this.renderPass="offscreen";for(const e of a){const t=this.style._layers[e];if(!t.hasOffscreenPass()||t.isHidden(this.transform.zoom))continue;const i=r[t.source];("custom"===t.type||i.length)&&this.renderLayer(this,n[t.source],t,i)}if(this.context.bindFramebuffer.set(null),this.context.clear({color:i.showOverdrawInspector?e.aT.black:e.aT.transparent,depth:1}),this.clearStencil(),this._showOverdrawInspector=i.showOverdrawInspector,this.depthRangeFor3D=[0,1-(t._order.length+2)*this.numSublayers*this.depthEpsilon],!this.renderToTexture)for(this.renderPass="opaque",this.currentLayer=a.length-1;this.currentLayer>=0;this.currentLayer--){const e=this.style._layers[a[this.currentLayer]],t=n[e.source],i=o[e.source];this._renderTileClippingMasks(e,i),this.renderLayer(this,t,e,i)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer<a.length;this.currentLayer++){const e=this.style._layers[a[this.currentLayer]],t=n[e.source];if(this.renderToTexture&&this.renderToTexture.renderLayer(e))continue;const i=("symbol"===e.type?s:r)[e.source];this._renderTileClippingMasks(e,o[e.source]),this.renderLayer(this,t,e,i)}if(this.options.showTileBoundaries){const e=function(e,t){let i=null;const a=Object.values(e._layers).flatMap((i=>i.source&&!i.isHidden(t)?[e.sourceCaches[i.source]]:[])),n=a.filter((e=>"vector"===e.getSource().type)),o=a.filter((e=>"vector"!==e.getSource().type)),r=e=>{(!i||i.getSource().maxzoom<e.getSource().maxzoom)&&(i=e)};return n.forEach((e=>r(e))),i||o.forEach((e=>r(e))),i}(this.style,this.transform.zoom);e&&function(e,t,i){for(let a=0;a<i.length;a++)ea(e,t,i[a])}(this,e,e.getVisibleCoordinates())}this.options.showPadding&&function(e){const t=e.transform.padding;Ji(e,e.transform.height-(t.top||0),3,Gi),Ji(e,t.bottom||0,3,Wi),Yi(e,t.left||0,3,Hi),Yi(e,e.transform.width-(t.right||0),3,Ki);const i=e.transform.centerPoint;!function(e,t,i,a){Qi(e,t-1,i-10,2,20,a),Qi(e,t-10,i-1,20,2,a)}(e,i.x,e.transform.height-i.y,Xi)}(this),this.context.setDefault()}renderLayer(t,i,a,n){if(!a.isHidden(this.transform.zoom)&&("background"===a.type||"custom"===a.type||(n||[]).length))switch(this.id=a.id,a.type){case"symbol":!function(t,i,a,n,o){if("translucent"!==t.renderPass)return;const r=Li.disabled,s=t.colorModeForRenderPass();(a._unevaluatedLayout.hasValue("text-variable-anchor")||a._unevaluatedLayout.hasValue("text-variable-anchor-offset"))&&function(t,i,a,n,o,r,s){const l=i.transform,d="map"===o,u="map"===r;for(const o of t){const t=n.getTile(o),r=t.getBucket(a);if(!r||!r.text||!r.text.segments.get().length)continue;const h=e.ah(r.textSizeData,l.zoom),c=Ce(t,1,i.transform.zoom),m=se(o.posMatrix,u,d,i.transform,c),p="none"!==a.layout.get("icon-text-fit")&&r.hasIconData();if(h){const e=Math.pow(2,l.zoom-t.tileID.overscaledZ);$i(r,d,u,s,l,m,o.posMatrix,e,h,p,i.style.map.terrain?(e,t)=>i.style.map.terrain.getElevation(o,e,t):null)}}}(n,t,a,i,a.layout.get("text-rotation-alignment"),a.layout.get("text-pitch-alignment"),o),0!==a.paint.get("icon-opacity").constantOr(1)&&Bi(t,i,a,n,!1,a.paint.get("icon-translate"),a.paint.get("icon-translate-anchor"),a.layout.get("icon-rotation-alignment"),a.layout.get("icon-pitch-alignment"),a.layout.get("icon-keep-upright"),r,s),0!==a.paint.get("text-opacity").constantOr(1)&&Bi(t,i,a,n,!0,a.paint.get("text-translate"),a.paint.get("text-translate-anchor"),a.layout.get("text-rotation-alignment"),a.layout.get("text-pitch-alignment"),a.layout.get("text-keep-upright"),r,s),i.map.showCollisionBoxes&&(Ei(t,i,a,n,a.paint.get("text-translate"),a.paint.get("text-translate-anchor"),!0),Ei(t,i,a,n,a.paint.get("icon-translate"),a.paint.get("icon-translate-anchor"),!1))}(t,i,a,n,this.style.placement.variableOffsets);break;case"circle":!function(t,i,a,n){if("translucent"!==t.renderPass)return;const o=a.paint.get("circle-opacity"),r=a.paint.get("circle-stroke-width"),s=a.paint.get("circle-stroke-opacity"),l=!a.layout.get("circle-sort-key").isConstant();if(0===o.constantOr(1)&&(0===r.constantOr(1)||0===s.constantOr(1)))return;const d=t.context,u=d.gl,h=t.depthModeForSublayer(0,Pi.ReadOnly),c=Li.disabled,m=t.colorModeForRenderPass(),p=[];for(let o=0;o<n.length;o++){const r=n[o],s=i.getTile(r),d=s.getBucket(a);if(!d)continue;const u=d.programConfigurations.get(a.id),h=t.useProgram("circle",u),c=d.layoutVertexBuffer,m=d.indexBuffer,f=t.style.map.terrain&&t.style.map.terrain.getTerrainData(r),_={programConfiguration:u,program:h,layoutVertexBuffer:c,indexBuffer:m,uniformValues:yt(t,r,s,a),terrainData:f};if(l){const t=d.segments.get();for(const i of t)p.push({segments:new e.S([i]),sortKey:i.sortKey,state:_})}else p.push({segments:d.segments,sortKey:0,state:_})}l&&p.sort(((e,t)=>e.sortKey-t.sortKey));for(const e of p){const{programConfiguration:i,program:n,layoutVertexBuffer:o,indexBuffer:r,uniformValues:s,terrainData:l}=e.state;n.draw(d,u.TRIANGLES,h,c,m,Ai.disabled,s,l,a.id,o,r,e.segments,a.paint,t.transform.zoom,i)}}(t,i,a,n);break;case"heatmap":!function(t,i,a,n){if(0!==a.paint.get("heatmap-opacity"))if("offscreen"===t.renderPass){const o=t.context,r=o.gl,s=Li.disabled,l=new Ci([r.ONE,r.ONE],e.aT.transparent,[!0,!0,!0,!0]);!function(e,t,i){const a=e.gl;e.activeTexture.set(a.TEXTURE1),e.viewport.set([0,0,t.width/4,t.height/4]);let n=i.heatmapFbo;if(n)a.bindTexture(a.TEXTURE_2D,n.colorAttachment.get()),e.bindFramebuffer.set(n.framebuffer);else{const o=a.createTexture();a.bindTexture(a.TEXTURE_2D,o),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_S,a.CLAMP_TO_EDGE),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_T,a.CLAMP_TO_EDGE),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MIN_FILTER,a.LINEAR),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MAG_FILTER,a.LINEAR),n=i.heatmapFbo=e.createFramebuffer(t.width/4,t.height/4,!1,!1),function(e,t,i,a){var n,o;const r=e.gl,s=null!==(n=e.HALF_FLOAT)&&void 0!==n?n:r.UNSIGNED_BYTE,l=null!==(o=e.RGBA16F)&&void 0!==o?o:r.RGBA;r.texImage2D(r.TEXTURE_2D,0,l,t.width/4,t.height/4,0,r.RGBA,s,null),a.colorAttachment.set(i)}(e,t,o,n)}}(o,t,a),o.clear({color:e.aT.transparent});for(let e=0;e<n.length;e++){const d=n[e];if(i.hasRenderableParent(d))continue;const u=i.getTile(d),h=u.getBucket(a);if(!h)continue;const c=h.programConfigurations.get(a.id),m=t.useProgram("heatmap",c),{zoom:p}=t.transform;m.draw(o,r.TRIANGLES,Pi.disabled,s,l,Ai.disabled,bt(d.posMatrix,u,p,a.paint.get("heatmap-intensity")),null,a.id,h.layoutVertexBuffer,h.indexBuffer,h.segments,a.paint,t.transform.zoom,c)}o.viewport.set([0,0,t.width,t.height])}else"translucent"===t.renderPass&&(t.context.setColorMode(t.colorModeForRenderPass()),function(t,i){const a=t.context,n=a.gl,o=i.heatmapFbo;if(!o)return;a.activeTexture.set(n.TEXTURE0),n.bindTexture(n.TEXTURE_2D,o.colorAttachment.get()),a.activeTexture.set(n.TEXTURE1);let r=i.colorRampTexture;r||(r=i.colorRampTexture=new v(a,i.colorRamp,n.RGBA)),r.bind(n.LINEAR,n.CLAMP_TO_EDGE),t.useProgram("heatmapTexture").draw(a,n.TRIANGLES,Pi.disabled,Li.disabled,t.colorModeForRenderPass(),Ai.disabled,((t,i,a,n)=>{const o=e.Z();e.aS(o,0,t.width,t.height,0,0,1);const r=t.context.gl;return{u_matrix:o,u_world:[r.drawingBufferWidth,r.drawingBufferHeight],u_image:0,u_color_ramp:1,u_opacity:i.paint.get("heatmap-opacity")}})(t,i),null,i.id,t.viewportBuffer,t.quadTriangleIndexBuffer,t.viewportSegments,i.paint,t.transform.zoom)}(t,a))}(t,i,a,n);break;case"line":!function(t,i,a,n){if("translucent"!==t.renderPass)return;const o=a.paint.get("line-opacity"),r=a.paint.get("line-width");if(0===o.constantOr(1)||0===r.constantOr(1))return;const s=t.depthModeForSublayer(0,Pi.ReadOnly),l=t.colorModeForRenderPass(),d=a.paint.get("line-dasharray"),u=a.paint.get("line-pattern"),h=u.constantOr(1),c=a.paint.get("line-gradient"),m=a.getCrossfadeParameters(),p=h?"linePattern":d?"lineSDF":c?"lineGradient":"line",f=t.context,_=f.gl;let g=!0;for(const o of n){const n=i.getTile(o);if(h&&!n.patternsLoaded())continue;const r=n.getBucket(a);if(!r)continue;const y=r.programConfigurations.get(a.id),w=t.context.program.get(),x=t.useProgram(p,y),b=g||x.program!==w,k=t.style.map.terrain&&t.style.map.terrain.getTerrainData(o),S=u.constantOr(null);if(S&&n.imageAtlas){const e=n.imageAtlas,t=e.patternPositions[S.to.toString()],i=e.patternPositions[S.from.toString()];t&&i&&y.setConstantPatternPositions(t,i)}const T=k?o:null,C=h?Ct(t,n,a,m,T):d?zt(t,n,a,d,m,T):c?Tt(t,n,a,r.lineClipsArray.length,T):St(t,n,a,T);if(h)f.activeTexture.set(_.TEXTURE0),n.imageAtlasTexture.bind(_.LINEAR,_.CLAMP_TO_EDGE),y.updatePaintBuffers(m);else if(d&&(b||t.lineAtlas.dirty))f.activeTexture.set(_.TEXTURE0),t.lineAtlas.bind(f);else if(c){const n=r.gradients[a.id];let s=n.texture;if(a.gradientVersion!==n.version){let l=256;if(a.stepInterpolant){const a=i.getSource().maxzoom,n=o.canonical.z===a?Math.ceil(1<<t.transform.maxZoom-o.canonical.z):1;l=e.ad(e.aY(r.maxLineLength/e.N*1024*n),256,f.maxTextureSize)}n.gradient=e.aZ({expression:a.gradientExpression(),evaluationKey:"lineProgress",resolution:l,image:n.gradient||void 0,clips:r.lineClipsArray}),n.texture?n.texture.update(n.gradient):n.texture=new v(f,n.gradient,_.RGBA),n.version=a.gradientVersion,s=n.texture}f.activeTexture.set(_.TEXTURE0),s.bind(a.stepInterpolant?_.NEAREST:_.LINEAR,_.CLAMP_TO_EDGE)}x.draw(f,_.TRIANGLES,s,t.stencilModeForClipping(o),l,Ai.disabled,C,k,a.id,r.layoutVertexBuffer,r.indexBuffer,r.segments,a.paint,t.transform.zoom,y,r.layoutVertexBuffer2),g=!1}}(t,i,a,n);break;case"fill":!function(t,i,a,n){const o=a.paint.get("fill-color"),r=a.paint.get("fill-opacity");if(0===r.constantOr(1))return;const s=t.colorModeForRenderPass(),l=a.paint.get("fill-pattern"),d=t.opaquePassEnabledForLayer()&&!l.constantOr(1)&&1===o.constantOr(e.aT.transparent).a&&1===r.constantOr(0)?"opaque":"translucent";if(t.renderPass===d){const e=t.depthModeForSublayer(1,"opaque"===t.renderPass?Pi.ReadWrite:Pi.ReadOnly);Ni(t,i,a,n,e,s,!1)}if("translucent"===t.renderPass&&a.paint.get("fill-antialias")){const e=t.depthModeForSublayer(a.getPaintProperty("fill-outline-color")?2:0,Pi.ReadOnly);Ni(t,i,a,n,e,s,!0)}}(t,i,a,n);break;case"fill-extrusion":!function(e,t,i,a){const n=i.paint.get("fill-extrusion-opacity");if(0!==n&&"translucent"===e.renderPass){const o=new Pi(e.context.gl.LEQUAL,Pi.ReadWrite,e.depthRangeFor3D);if(1!==n||i.paint.get("fill-extrusion-pattern").constantOr(1))Vi(e,t,i,a,o,Li.disabled,Ci.disabled),Vi(e,t,i,a,o,e.stencilModeFor3D(),e.colorModeForRenderPass());else{const n=e.colorModeForRenderPass();Vi(e,t,i,a,o,Li.disabled,n)}}}(t,i,a,n);break;case"hillshade":!function(e,t,i,a){if("offscreen"!==e.renderPass&&"translucent"!==e.renderPass)return;const n=e.context,o=e.depthModeForSublayer(0,Pi.ReadOnly),r=e.colorModeForRenderPass(),[s,l]="translucent"===e.renderPass?e.stencilConfigForOverlap(a):[{},a];for(const a of l){const n=t.getTile(a);void 0!==n.needsHillshadePrepare&&n.needsHillshadePrepare&&"offscreen"===e.renderPass?Zi(e,n,i,o,Li.disabled,r):"translucent"===e.renderPass&&Ui(e,a,n,i,o,s[a.overscaledZ],r)}n.viewport.set([0,0,e.width,e.height])}(t,i,a,n);break;case"raster":!function(e,t,i,a){if("translucent"!==e.renderPass)return;if(0===i.paint.get("raster-opacity"))return;if(!a.length)return;const n=e.context,o=n.gl,r=t.getSource(),s=e.useProgram("raster"),l=e.colorModeForRenderPass(),[d,u]=r instanceof F?[{},a]:e.stencilConfigForOverlap(a),h=u[u.length-1].overscaledZ,c=!e.options.moving;for(const a of u){const u=e.depthModeForSublayer(a.overscaledZ-h,1===i.paint.get("raster-opacity")?Pi.ReadWrite:Pi.ReadOnly,o.LESS),m=t.getTile(a);m.registerFadeDuration(i.paint.get("raster-fade-duration"));const p=t.findLoadedParent(a,0),f=qi(m,p,t,i,e.transform,e.style.map.terrain);let _,g;const y="nearest"===i.paint.get("raster-resampling")?o.NEAREST:o.LINEAR;n.activeTexture.set(o.TEXTURE0),m.texture.bind(y,o.CLAMP_TO_EDGE,o.LINEAR_MIPMAP_NEAREST),n.activeTexture.set(o.TEXTURE1),p?(p.texture.bind(y,o.CLAMP_TO_EDGE,o.LINEAR_MIPMAP_NEAREST),_=Math.pow(2,p.tileID.overscaledZ-m.tileID.overscaledZ),g=[m.tileID.canonical.x*_%1,m.tileID.canonical.y*_%1]):m.texture.bind(y,o.CLAMP_TO_EDGE,o.LINEAR_MIPMAP_NEAREST);const v=e.style.map.terrain&&e.style.map.terrain.getTerrainData(a),w=v?a:null,x=w?w.posMatrix:e.transform.calculatePosMatrix(a.toUnwrapped(),c),b=Lt(x,g||[0,0],_||1,f,i);r instanceof F?s.draw(n,o.TRIANGLES,u,Li.disabled,l,Ai.disabled,b,v,i.id,r.boundsBuffer,e.quadTriangleIndexBuffer,r.boundsSegments):s.draw(n,o.TRIANGLES,u,d[a.overscaledZ],l,Ai.disabled,b,v,i.id,e.rasterBoundsBuffer,e.quadTriangleIndexBuffer,e.rasterBoundsSegments)}}(t,i,a,n);break;case"background":!function(e,t,i,a){const n=i.paint.get("background-color"),o=i.paint.get("background-opacity");if(0===o)return;const r=e.context,s=r.gl,l=e.transform,d=l.tileSize,u=i.paint.get("background-pattern");if(e.isPatternMissing(u))return;const h=!u&&1===n.a&&1===o&&e.opaquePassEnabledForLayer()?"opaque":"translucent";if(e.renderPass!==h)return;const c=Li.disabled,m=e.depthModeForSublayer(0,"opaque"===h?Pi.ReadWrite:Pi.ReadOnly),p=e.colorModeForRenderPass(),f=e.useProgram(u?"backgroundPattern":"background"),_=a||l.coveringTiles({tileSize:d,terrain:e.style.map.terrain});u&&(r.activeTexture.set(s.TEXTURE0),e.imageManager.bind(e.context));const g=i.getCrossfadeParameters();for(const t of _){const l=a?t.posMatrix:e.transform.calculatePosMatrix(t.toUnwrapped()),h=u?$t(l,o,e,u,{tileID:t,tileSize:d},g):jt(l,o,n),_=e.style.map.terrain&&e.style.map.terrain.getTerrainData(t);f.draw(r,s.TRIANGLES,m,c,p,Ai.disabled,h,_,i.id,e.tileExtentBuffer,e.quadTriangleIndexBuffer,e.tileExtentSegments)}}(t,0,a,n);break;case"custom":!function(e,t,i){const a=e.context,n=i.implementation;if("offscreen"===e.renderPass){const t=n.prerender;t&&(e.setCustomLayerDefaults(),a.setColorMode(e.colorModeForRenderPass()),t.call(n,a.gl,e.transform.customLayerMatrix()),a.setDirty(),e.setBaseState())}else if("translucent"===e.renderPass){e.setCustomLayerDefaults(),a.setColorMode(e.colorModeForRenderPass()),a.setStencilMode(Li.disabled);const t="3d"===n.renderingMode?new Pi(e.context.gl.LEQUAL,Pi.ReadWrite,e.depthRangeFor3D):e.depthModeForSublayer(0,Pi.ReadOnly);a.setDepthMode(t),n.render(a.gl,e.transform.customLayerMatrix()),a.setDirty(),e.setBaseState(),a.bindFramebuffer.set(null)}}(t,0,a)}}translatePosMatrix(t,i,a,n,o){if(!a[0]&&!a[1])return t;const r=o?"map"===n?this.transform.angle:0:"viewport"===n?-this.transform.angle:0;if(r){const e=Math.sin(r),t=Math.cos(r);a=[a[0]*t-a[1]*e,a[0]*e+a[1]*t]}const s=[o?a[0]:Ce(i,a[0],this.transform.zoom),o?a[1]:Ce(i,a[1],this.transform.zoom),0],l=new Float32Array(16);return e.$(l,t,s),l}saveTileTexture(e){const t=this._tileTextures[e.size[0]];t?t.push(e):this._tileTextures[e.size[0]]=[e]}getTileTexture(e){const t=this._tileTextures[e];return t&&t.length>0?t.pop():null}isPatternMissing(e){if(!e)return!1;if(!e.from||!e.to)return!0;const t=this.imageManager.getPattern(e.from.toString()),i=this.imageManager.getPattern(e.to.toString());return!t||!i}useProgram(e,t){this.cache=this.cache||{};const i=e+(t?t.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"")+(this.style.map.terrain?"/terrain":"");return this.cache[i]||(this.cache[i]=new ut(this.context,rt[e],t,Rt[e],this._showOverdrawInspector,this.style.map.terrain)),this.cache[i]}setCustomLayerDefaults(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()}setBaseState(){const e=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(e.FUNC_ADD)}initDebugOverlayCanvas(){null==this.debugOverlayCanvas&&(this.debugOverlayCanvas=document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new v(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))}destroy(){this.debugOverlayTexture&&this.debugOverlayTexture.destroy()}overLimit(){const{drawingBufferWidth:e,drawingBufferHeight:t}=this.context.gl;return this.width!==e||this.height!==t}}class aa{constructor(e,t){this.points=e,this.planes=t}static fromInvProjectionMatrix(t,i,a){const n=Math.pow(2,a),o=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map((a=>{const o=1/(a=e.ag([],a,t))[3]/i*n;return e.b3(a,a,[o,o,1/a[3],o])})),r=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map((e=>{const t=function(e,t){var i=t[0],a=t[1],n=t[2],o=i*i+a*a+n*n;return o>0&&(o=1/Math.sqrt(o)),e[0]=t[0]*o,e[1]=t[1]*o,e[2]=t[2]*o,e}([],function(e,t,i){var a=t[0],n=t[1],o=t[2],r=i[0],s=i[1],l=i[2];return e[0]=n*l-o*s,e[1]=o*r-a*l,e[2]=a*s-n*r,e}([],f([],o[e[0]],o[e[1]]),f([],o[e[2]],o[e[1]]))),i=-((a=t)[0]*(n=o[e[1]])[0]+a[1]*n[1]+a[2]*n[2]);var a,n;return t.concat(i)}));return new aa(o,r)}}class na{constructor(e,t){this.min=e,this.max=t,this.center=function(e,t,i){return e[0]=.5*t[0],e[1]=.5*t[1],e[2]=.5*t[2],e}([],function(e,t,i){return e[0]=t[0]+i[0],e[1]=t[1]+i[1],e[2]=t[2]+i[2],e}([],this.min,this.max))}quadrant(e){const t=[e%2==0,e<2],i=m(this.min),a=m(this.max);for(let e=0;e<t.length;e++)i[e]=t[e]?this.min[e]:this.center[e],a[e]=t[e]?this.center[e]:this.max[e];return a[2]=this.max[2],new na(i,a)}distanceX(e){return Math.max(Math.min(this.max[0],e[0]),this.min[0])-e[0]}distanceY(e){return Math.max(Math.min(this.max[1],e[1]),this.min[1])-e[1]}intersects(t){const i=[[this.min[0],this.min[1],this.min[2],1],[this.max[0],this.min[1],this.min[2],1],[this.max[0],this.max[1],this.min[2],1],[this.min[0],this.max[1],this.min[2],1],[this.min[0],this.min[1],this.max[2],1],[this.max[0],this.min[1],this.max[2],1],[this.max[0],this.max[1],this.max[2],1],[this.min[0],this.max[1],this.max[2],1]];let a=!0;for(let n=0;n<t.planes.length;n++){const o=t.planes[n];let r=0;for(let t=0;t<i.length;t++)e.b4(o,i[t])>=0&&r++;if(0===r)return 0;r!==i.length&&(a=!1)}if(a)return 2;for(let e=0;e<3;e++){let i=Number.MAX_VALUE,a=-Number.MAX_VALUE;for(let n=0;n<t.points.length;n++){const o=t.points[n][e]-this.min[e];i=Math.min(i,o),a=Math.max(a,o)}if(a<0||i>this.max[e]-this.min[e])return 0}return 1}}class oa{constructor(e=0,t=0,i=0,a=0){if(isNaN(e)||e<0||isNaN(t)||t<0||isNaN(i)||i<0||isNaN(a)||a<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=e,this.bottom=t,this.left=i,this.right=a}interpolate(t,i,a){return null!=i.top&&null!=t.top&&(this.top=e.B.number(t.top,i.top,a)),null!=i.bottom&&null!=t.bottom&&(this.bottom=e.B.number(t.bottom,i.bottom,a)),null!=i.left&&null!=t.left&&(this.left=e.B.number(t.left,i.left,a)),null!=i.right&&null!=t.right&&(this.right=e.B.number(t.right,i.right,a)),this}getCenter(t,i){const a=e.ad((this.left+t-this.right)/2,0,t),n=e.ad((this.top+i-this.bottom)/2,0,i);return new e.P(a,n)}equals(e){return this.top===e.top&&this.bottom===e.bottom&&this.left===e.left&&this.right===e.right}clone(){return new oa(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}class ra{constructor(t,i,a,n,o){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=void 0===o||!!o,this._minZoom=t||0,this._maxZoom=i||22,this._minPitch=null==a?0:a,this._maxPitch=null==n?60:n,this.setMaxBounds(),this.width=0,this.height=0,this._center=new e.L(0,0),this._elevation=0,this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new oa,this._posMatrixCache={},this._alignedPosMatrixCache={},this._minEleveationForCurrentTile=0}clone(){const e=new ra(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return e.apply(this),e}apply(e){this.tileSize=e.tileSize,this.latRange=e.latRange,this.width=e.width,this.height=e.height,this._center=e._center,this._elevation=e._elevation,this._minEleveationForCurrentTile=e._minEleveationForCurrentTile,this.zoom=e.zoom,this.angle=e.angle,this._fov=e._fov,this._pitch=e._pitch,this._unmodified=e._unmodified,this._edgeInsets=e._edgeInsets.clone(),this._calcMatrices()}get minZoom(){return this._minZoom}set minZoom(e){this._minZoom!==e&&(this._minZoom=e,this.zoom=Math.max(this.zoom,e))}get maxZoom(){return this._maxZoom}set maxZoom(e){this._maxZoom!==e&&(this._maxZoom=e,this.zoom=Math.min(this.zoom,e))}get minPitch(){return this._minPitch}set minPitch(e){this._minPitch!==e&&(this._minPitch=e,this.pitch=Math.max(this.pitch,e))}get maxPitch(){return this._maxPitch}set maxPitch(e){this._maxPitch!==e&&(this._maxPitch=e,this.pitch=Math.min(this.pitch,e))}get renderWorldCopies(){return this._renderWorldCopies}set renderWorldCopies(e){void 0===e?e=!0:null===e&&(e=!1),this._renderWorldCopies=e}get worldSize(){return this.tileSize*this.scale}get centerOffset(){return this.centerPoint._sub(this.size._div(2))}get size(){return new e.P(this.width,this.height)}get bearing(){return-this.angle/Math.PI*180}set bearing(t){const i=-e.b5(t,-180,180)*Math.PI/180;this.angle!==i&&(this._unmodified=!1,this.angle=i,this._calcMatrices(),this.rotationMatrix=function(){var t=new e.A(4);return e.A!=Float32Array&&(t[1]=0,t[2]=0),t[0]=1,t[3]=1,t}(),function(e,t,i){var a=t[0],n=t[1],o=t[2],r=t[3],s=Math.sin(i),l=Math.cos(i);e[0]=a*l+o*s,e[1]=n*l+r*s,e[2]=a*-s+o*l,e[3]=n*-s+r*l}(this.rotationMatrix,this.rotationMatrix,this.angle))}get pitch(){return this._pitch/Math.PI*180}set pitch(t){const i=e.ad(t,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==i&&(this._unmodified=!1,this._pitch=i,this._calcMatrices())}get fov(){return this._fov/Math.PI*180}set fov(e){e=Math.max(.01,Math.min(60,e)),this._fov!==e&&(this._unmodified=!1,this._fov=e/180*Math.PI,this._calcMatrices())}get zoom(){return this._zoom}set zoom(e){const t=Math.min(Math.max(e,this.minZoom),this.maxZoom);this._zoom!==t&&(this._unmodified=!1,this._zoom=t,this.tileZoom=Math.max(0,Math.floor(t)),this.scale=this.zoomScale(t),this._constrain(),this._calcMatrices())}get center(){return this._center}set center(e){e.lat===this._center.lat&&e.lng===this._center.lng||(this._unmodified=!1,this._center=e,this._constrain(),this._calcMatrices())}get elevation(){return this._elevation}set elevation(e){e!==this._elevation&&(this._elevation=e,this._constrain(),this._calcMatrices())}get padding(){return this._edgeInsets.toJSON()}set padding(e){this._edgeInsets.equals(e)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,e,1),this._calcMatrices())}get centerPoint(){return this._edgeInsets.getCenter(this.width,this.height)}isPaddingEqual(e){return this._edgeInsets.equals(e)}interpolatePadding(e,t,i){this._unmodified=!1,this._edgeInsets.interpolate(e,t,i),this._constrain(),this._calcMatrices()}coveringZoomLevel(e){const t=(e.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/e.tileSize));return Math.max(0,t)}getVisibleUnwrappedCoordinates(t){const i=[new e.b6(0,t)];if(this._renderWorldCopies){const a=this.pointCoordinate(new e.P(0,0)),n=this.pointCoordinate(new e.P(this.width,0)),o=this.pointCoordinate(new e.P(this.width,this.height)),r=this.pointCoordinate(new e.P(0,this.height)),s=Math.floor(Math.min(a.x,n.x,o.x,r.x)),l=Math.floor(Math.max(a.x,n.x,o.x,r.x)),d=1;for(let a=s-d;a<=l+d;a++)0!==a&&i.push(new e.b6(a,t))}return i}coveringTiles(t){var i,a;let n=this.coveringZoomLevel(t);const o=n;if(void 0!==t.minzoom&&n<t.minzoom)return[];void 0!==t.maxzoom&&n>t.maxzoom&&(n=t.maxzoom);const r=this.pointCoordinate(this.getCameraPoint()),s=e.U.fromLngLat(this.center),l=Math.pow(2,n),d=[l*r.x,l*r.y,0],u=[l*s.x,l*s.y,0],h=aa.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,n);let c=t.minzoom||0;!t.terrain&&this.pitch<=60&&this._edgeInsets.top<.1&&(c=n);const m=t.terrain?2/Math.min(this.tileSize,t.tileSize)*this.tileSize:3,p=e=>({aabb:new na([e*l,0,0],[(e+1)*l,l,0]),zoom:0,x:0,y:0,wrap:e,fullyVisible:!1}),f=[],g=[],y=n,v=t.reparseOverscaled?o:n;if(this._renderWorldCopies)for(let e=1;e<=3;e++)f.push(p(-e)),f.push(p(e));for(f.push(p(0));f.length>0;){const n=f.pop(),o=n.x,r=n.y;let s=n.fullyVisible;if(!s){const e=n.aabb.intersects(h);if(0===e)continue;s=2===e}const l=t.terrain?d:u,p=n.aabb.distanceX(l),w=n.aabb.distanceY(l),x=Math.max(Math.abs(p),Math.abs(w));if(n.zoom===y||x>m+(1<<y-n.zoom)-2&&n.zoom>=c){const t=y-n.zoom,i=d[0]-.5-(o<<t),a=d[1]-.5-(r<<t);g.push({tileID:new e.O(n.zoom===y?v:n.zoom,n.wrap,n.zoom,o,r),distanceSq:_([u[0]-.5-o,u[1]-.5-r]),tileDistanceToCamera:Math.sqrt(i*i+a*a)})}else for(let l=0;l<4;l++){const d=(o<<1)+l%2,u=(r<<1)+(l>>1),h=n.zoom+1;let c=n.aabb.quadrant(l);if(t.terrain){const o=new e.O(h,n.wrap,h,d,u),r=t.terrain.getMinMaxElevation(o),s=null!==(i=r.minElevation)&&void 0!==i?i:this.elevation,l=null!==(a=r.maxElevation)&&void 0!==a?a:this.elevation;c=new na([c.min[0],c.min[1],s],[c.max[0],c.max[1],l])}f.push({aabb:c,zoom:h,x:d,y:u,wrap:n.wrap,fullyVisible:s})}}return g.sort(((e,t)=>e.distanceSq-t.distanceSq)).map((e=>e.tileID))}resize(e,t){this.width=e,this.height=t,this.pixelsToGLUnits=[2/e,-2/t],this._constrain(),this._calcMatrices()}get unmodified(){return this._unmodified}zoomScale(e){return Math.pow(2,e)}scaleZoom(e){return Math.log(e)/Math.LN2}project(t){const i=e.ad(t.lat,-this.maxValidLatitude,this.maxValidLatitude);return new e.P(e.G(t.lng)*this.worldSize,e.H(i)*this.worldSize)}unproject(t){return new e.U(t.x/this.worldSize,t.y/this.worldSize).toLngLat()}get point(){return this.project(this.center)}getCameraPosition(){return{lngLat:this.pointLocation(this.getCameraPoint()),altitude:Math.cos(this._pitch)*this.cameraToCenterDistance/this._pixelPerMeter+this.elevation}}recalculateZoom(t){const i=this.pointLocation(this.centerPoint,t),a=t.getElevationForLngLatZoom(i,this.tileZoom);if(!(this.elevation-a))return;const n=this.getCameraPosition(),o=e.U.fromLngLat(n.lngLat,n.altitude),r=e.U.fromLngLat(i,a),s=o.x-r.x,l=o.y-r.y,d=o.z-r.z,u=Math.sqrt(s*s+l*l+d*d),h=this.scaleZoom(this.cameraToCenterDistance/u/this.tileSize);this._elevation=a,this._center=i,this.zoom=h}setLocationAtPoint(t,i){const a=this.pointCoordinate(i),n=this.pointCoordinate(this.centerPoint),o=this.locationCoordinate(t),r=new e.U(o.x-(a.x-n.x),o.y-(a.y-n.y));this.center=this.coordinateLocation(r),this._renderWorldCopies&&(this.center=this.center.wrap())}locationPoint(e,t){return t?this.coordinatePoint(this.locationCoordinate(e),t.getElevationForLngLatZoom(e,this.tileZoom),this.pixelMatrix3D):this.coordinatePoint(this.locationCoordinate(e))}pointLocation(e,t){return this.coordinateLocation(this.pointCoordinate(e,t))}locationCoordinate(t){return e.U.fromLngLat(t)}coordinateLocation(e){return e&&e.toLngLat()}pointCoordinate(t,i){if(i){const e=i.pointCoordinate(t);if(null!=e)return e}const a=[t.x,t.y,0,1],n=[t.x,t.y,1,1];e.ag(a,a,this.pixelMatrixInverse),e.ag(n,n,this.pixelMatrixInverse);const o=a[3],r=n[3],s=a[1]/o,l=n[1]/r,d=a[2]/o,u=n[2]/r,h=d===u?0:(0-d)/(u-d);return new e.U(e.B.number(a[0]/o,n[0]/r,h)/this.worldSize,e.B.number(s,l,h)/this.worldSize)}coordinatePoint(t,i=0,a=this.pixelMatrix){const n=[t.x*this.worldSize,t.y*this.worldSize,i,1];return e.ag(n,n,a),new e.P(n[0]/n[3],n[1]/n[3])}getBounds(){const t=Math.max(0,this.height/2-this.getHorizon());return(new I).extend(this.pointLocation(new e.P(0,t))).extend(this.pointLocation(new e.P(this.width,t))).extend(this.pointLocation(new e.P(this.width,this.height))).extend(this.pointLocation(new e.P(0,this.height)))}getMaxBounds(){return this.latRange&&2===this.latRange.length&&this.lngRange&&2===this.lngRange.length?new I([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]]):null}getHorizon(){return Math.tan(Math.PI/2-this._pitch)*this.cameraToCenterDistance*.85}setMaxBounds(e){e?(this.lngRange=[e.getWest(),e.getEast()],this.latRange=[e.getSouth(),e.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])}calculatePosMatrix(t,i=!1){const a=t.key,n=i?this._alignedPosMatrixCache:this._posMatrixCache;
5if(n[a])return n[a];const o=t.canonical,r=this.worldSize/this.zoomScale(o.z),s=o.x+Math.pow(2,o.z)*t.wrap,l=e.ao(new Float64Array(16));return e.$(l,l,[s*r,o.y*r,0]),e.a0(l,l,[r/e.N,r/e.N,1]),e.a1(l,i?this.alignedProjMatrix:this.projMatrix,l),n[a]=new Float32Array(l),n[a]}customLayerMatrix(){return this.mercatorMatrix.slice()}_constrain(){if(!this.center||!this.width||!this.height||this._constraining)return;this._constraining=!0;let t,i,a,n,o=-90,r=90,s=-180,l=180;const d=this.size,u=this._unmodified;if(this.latRange){const i=this.latRange;o=e.H(i[1])*this.worldSize,r=e.H(i[0])*this.worldSize,t=r-o<d.y?d.y/(r-o):0}if(this.lngRange){const t=this.lngRange;s=e.b5(e.G(t[0])*this.worldSize,0,this.worldSize),l=e.b5(e.G(t[1])*this.worldSize,0,this.worldSize),l<s&&(l+=this.worldSize),i=l-s<d.x?d.x/(l-s):0}const h=this.point,c=Math.max(i||0,t||0);if(c)return this.center=this.unproject(new e.P(i?(l+s)/2:h.x,t?(r+o)/2:h.y)),this.zoom+=this.scaleZoom(c),this._unmodified=u,void(this._constraining=!1);if(this.latRange){const e=h.y,t=d.y/2;e-t<o&&(n=o+t),e+t>r&&(n=r-t)}if(this.lngRange){const t=(s+l)/2,i=e.b5(h.x,t-this.worldSize/2,t+this.worldSize/2),n=d.x/2;i-n<s&&(a=s+n),i+n>l&&(a=l-n)}void 0===a&&void 0===n||(this.center=this.unproject(new e.P(void 0!==a?a:h.x,void 0!==n?n:h.y)).wrap()),this._unmodified=u,this._constraining=!1}_calcMatrices(){if(!this.height)return;const t=this.centerOffset,i=this.point.x,a=this.point.y;this.cameraToCenterDistance=.5/Math.tan(this._fov/2)*this.height,this._pixelPerMeter=e.b7(1,this.center.lat)*this.worldSize;let n=e.ao(new Float64Array(16));e.a0(n,n,[this.width/2,-this.height/2,1]),e.$(n,n,[1,-1,0]),this.labelPlaneMatrix=n,n=e.ao(new Float64Array(16)),e.a0(n,n,[1,-1,1]),e.$(n,n,[-1,-1,0]),e.a0(n,n,[2/this.width,2/this.height,1]),this.glCoordMatrix=n;const o=this.cameraToCenterDistance+this._elevation*this._pixelPerMeter/Math.cos(this._pitch),r=Math.min(this.elevation,this._minEleveationForCurrentTile),s=o-r*this._pixelPerMeter/Math.cos(this._pitch),l=r<0?s:o,d=Math.PI/2+this._pitch,u=this._fov*(.5+t.y/this.height),h=Math.sin(u)*l/Math.sin(e.ad(Math.PI-d-u,.01,Math.PI-.01)),c=this.getHorizon(),m=2*Math.atan(c/this.cameraToCenterDistance)*(.5+t.y/(2*c)),p=Math.sin(m)*l/Math.sin(e.ad(Math.PI-d-m,.01,Math.PI-.01)),f=Math.min(h,p),_=1.01*(Math.cos(Math.PI/2-this._pitch)*f+l),g=this.height/50;n=new Float64Array(16),e.b8(n,this._fov,this.width/this.height,g,_),n[8]=2*-t.x/this.width,n[9]=2*t.y/this.height,e.a0(n,n,[1,-1,1]),e.$(n,n,[0,0,-this.cameraToCenterDistance]),e.b9(n,n,this._pitch),e.ae(n,n,this.angle),e.$(n,n,[-i,-a,0]),this.mercatorMatrix=e.a0([],n,[this.worldSize,this.worldSize,this.worldSize]),e.a0(n,n,[1,1,this._pixelPerMeter]),this.pixelMatrix=e.a1(new Float64Array(16),this.labelPlaneMatrix,n),e.$(n,n,[0,0,-this.elevation]),this.projMatrix=n,this.invProjMatrix=e.as([],n),this.pixelMatrix3D=e.a1(new Float64Array(16),this.labelPlaneMatrix,n);const y=this.width%2/2,v=this.height%2/2,w=Math.cos(this.angle),x=Math.sin(this.angle),b=i-Math.round(i)+w*y+x*v,k=a-Math.round(a)+w*v+x*y,S=new Float64Array(n);if(e.$(S,S,[b>.5?b-1:b,k>.5?k-1:k,0]),this.alignedProjMatrix=S,n=e.as(new Float64Array(16),this.pixelMatrix),!n)throw new Error("failed to invert matrix");this.pixelMatrixInverse=n,this._posMatrixCache={},this._alignedPosMatrixCache={}}maxPitchScaleFactor(){if(!this.pixelMatrixInverse)return 1;const t=this.pointCoordinate(new e.P(0,0)),i=[t.x*this.worldSize,t.y*this.worldSize,0,1];return e.ag(i,i,this.pixelMatrix)[3]/this.cameraToCenterDistance}getCameraPoint(){const t=Math.tan(this._pitch)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new e.P(0,t))}getCameraQueryGeometry(t){const i=this.getCameraPoint();if(1===t.length)return[t[0],i];{let a=i.x,n=i.y,o=i.x,r=i.y;for(const e of t)a=Math.min(a,e.x),n=Math.min(n,e.y),o=Math.max(o,e.x),r=Math.max(r,e.y);return[new e.P(a,n),new e.P(o,n),new e.P(o,r),new e.P(a,r),new e.P(a,n)]}}}function sa(e,t){let i,a=!1,n=null,o=null;const r=()=>{n=null,a&&(e.apply(o,i),n=setTimeout(r,t),a=!1)};return(...e)=>(a=!0,o=this,i=e,n||r(),n)}class la{constructor(e){this._getCurrentHash=()=>{const e=window.location.hash.replace("#","");if(this._hashName){let t;return e.split("&").map((e=>
vendor: 69,548 bytes, line 5
5e.split("="))).forEach((e=>{e[0]===this._hashName&&(t=e)})),(t&&t[1]||"").split("/")}return e.split("/")},this._onHashChange=()=>{const e=this._getCurrentHash();if(e.length>=3&&!e.some((e=>isNaN(e)))){const t=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(e[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+e[2],+e[1]],zoom:+e[0],bearing:t,pitch:+(e[4]||0)}),!0}return!1},this._updateHashUnthrottled=()=>{const e=window.location.href.replace(/(#.+)?$/,this.getHashString());try{window.history.replaceState(window.history.state,null,e)}catch(e){}},this._updateHash=sa(this._updateHashUnthrottled,300),this._hashName=e&&encodeURIComponent(e)}addTo(e){return this._map=e,addEventListener("hashchange",this._onHashChange,!1),this._map.on("moveend",this._updateHash),this}remove(){return removeEventListener("hashchange",this._onHashChange,!1),this._map.off("moveend",this._updateHash),clearTimeout(this._updateHash()),delete this._map,this}getHashString(e){const t=this._map.getCenter(),i=Math.round(100*this._map.getZoom())/100,a=Math.ceil((i*Math.LN2+Math.log(512/360/.5))/Math.LN10),n=Math.pow(10,a),o=Math.round(t.lng*n)/n,r=Math.round(t.lat*n)/n,s=this._map.getBearing(),l=this._map.getPitch();let d="";if(d+=e?`/${o}/${r}/${i}`:`${i}/${r}/${o}`,(s||l)&&(d+="/"+Math.round(10*s)/10),l&&(d+=`/${Math.round(l)}`),this._hashName){const e=this._hashName;let t=!1;const i=window.location.hash.slice(1).split("&").map((i=>{const a=i.split("=")[0];return a===e?(t=!0,`${a}=${d}`):i})).filter((e=>e));return t||i.push(`${e}=${d}`),`#${i.join("&")}`}return`#${d}`}}const da={linearity:.3,easing:e.ba(0,0,.3,1)},ua=e.e({deceleration:2500,maxSpeed:1400},da),ha=e.e({deceleration:20,maxSpeed:1400},da),ca=e.e({deceleration:1e3,maxSpeed:360},da),ma=e.e({deceleration:1e3,maxSpeed:90},da);class pa{constructor(e){this._map=e,this.clear()}clear(){this._inertiaBuffer=[]}record(t){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:e.h.now(),settings:t})}_drainInertiaBuffer(){const t=this._inertiaBuffer,i=e.h.now();for(;t.length>0&&i-t[0].time>160;)t.shift()}_onMoveEnd(t){if(this._drainInertiaBuffer(),this._inertiaBuffer.length<2)return;const i={zoom:0,bearing:0,pitch:0,pan:new e.P(0,0),pinchAround:void 0,around:void 0};for(const{settings:e}of this._inertiaBuffer)i.zoom+=e.zoomDelta||0,i.bearing+=e.bearingDelta||0,i.pitch+=e.pitchDelta||0,e.panDelta&&i.pan._add(e.panDelta),e.around&&(i.around=e.around),e.pinchAround&&(i.pinchAround=e.pinchAround);const a=this._inertiaBuffer[this._inertiaBuffer.length-1].time-this._inertiaBuffer[0].time,n={};if(i.pan.mag()){const o=_a(i.pan.mag(),a,e.e({},ua,t||{}));n.offset=i.pan.mult(o.amount/i.pan.mag()),n.center=this._map.transform.center,fa(n,o)}if(i.zoom){const e=_a(i.zoom,a,ha);n.zoom=this._map.transform.zoom+e.amount,fa(n,e)}if(i.bearing){const t=_a(i.bearing,a,ca);n.bearing=this._map.transform.bearing+e.ad(t.amount,-179,179),fa(n,t)}if(i.pitch){const e=_a(i.pitch,a,ma);n.pitch=this._map.transform.pitch+e.amount,fa(n,e)}if(n.zoom||n.bearing){const e=void 0===i.pinchAround?i.around:i.pinchAround;n.around=e?this._map.unproject(e):this._map.getCenter()}return this.clear(),e.e(n,{noMoveStart:!0})}}function fa(e,t){(!e.duration||e.duration<t.duration)&&(e.duration=t.duration,e.easing=t.easing)}function _a(t,i,a){const{maxSpeed:n,linearity:o,deceleration:r}=a,s=e.ad(t*o/(i/1e3),-n,n),l=Math.abs(s)/(r*o);return{easing:a.easing,duration:1e3*l,amount:s*(l/2)}}class ga extends e.k{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(t,a,n,o={}){const r=i.mousePos(a.getCanvasContainer(),n),s=a.unproject(r);super(t,e.e({point:r,lngLat:s,originalEvent:n},o)),this._defaultPrevented=!1,this.target=a}}class ya extends e.k{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(t,a,n){const o="touchend"===t?n.changedTouches:n.touches,r=i.touchPos(a.getCanvasContainer(),o),s=r.map((e=>a.unproject(e))),l=r.reduce(((e,t,i,a)=>e.add(t.div(a.length))),new e.P(0,0));super(t,{points:r,point:l,lngLats:s,lngLat:a.unproject(l),originalEvent:n}),this._defaultPrevented=!1}}class va extends e.k{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(e,t,i){super(e,{originalEvent:i}),this._defaultPrevented=!1}}class wa{constructor(e,t){this._map=e,this._clickTolerance=t.clickTolerance}reset(){delete this._mousedownPos}wheel(e){return this._firePreventable(new va(e.type,this._map,e))}mousedown(e,t){return this._mousedownPos=t,this._firePreventable(new ga(e.type,this._map,e))}mouseup(e){this._map.fire(new ga(e.type,this._map,e))}click(e,t){this._mousedownPos&&this._mousedownPos.dist(t)>=this._clickTolerance||this._map.fire(new ga(e.type,this._map,e))}dblclick(e){return this._firePreventable(new ga(e.type,this._map,e))}mouseover(e){this._map.fire(new ga(e.type,this._map,e))}mouseout(e){this._map.fire(new ga(e.type,this._map,e))}touchstart(e){return this._firePreventable(new ya(e.type,this._map,e))}touchmove(e){this._map.fire(new ya(e.type,this._map,e))}touchend(e){this._map.fire(new ya(e.type,this._map,e))}touchcancel(e){this._map.fire(new ya(e.type,this._map,e))}_firePreventable(e){if(this._map.fire(e),e.defaultPrevented)return{}}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class xa{constructor(e){this._map=e}reset(){this._delayContextMenu=!1,this._ignoreContextMenu=!0,delete this._contextMenuEvent}mousemove(e){this._map.fire(new ga(e.type,this._map,e))}mousedown(){this._delayContextMenu=!0,this._ignoreContextMenu=!1}mouseup(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new ga("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)}contextmenu(e){this._delayContextMenu?this._contextMenuEvent=e:this._ignoreContextMenu||this._map.fire(new ga(e.type,this._map,e)),this._map.listens("contextmenu")&&e.preventDefault()}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class ba{constructor(e){this._map=e}get transform(){return this._map._requestedCameraState||this._map.transform}get center(){return{lng:this.transform.center.lng,lat:this.transform.center.lat}}get zoom(){return this.transform.zoom}get pitch(){return this.transform.pitch}get bearing(){return this.transform.bearing}unproject(t){return this.transform.pointLocation(e.P.convert(t),this._map.terrain)}}class ka{constructor(e,t){this._map=e,this._tr=new ba(e),this._el=e.getCanvasContainer(),this._container=e.getContainer(),this._clickTolerance=t.clickTolerance||1}isEnabled(){return!!this._enabled}isActive(){return!!this._active}enable(){this.isEnabled()||(this._enabled=!0)}disable(){this.isEnabled()&&(this._enabled=!1)}mousedown(e,t){this.isEnabled()&&e.shiftKey&&0===e.button&&(i.disableDrag(),this._startPos=this._lastPos=t,this._active=!0)}mousemoveWindow(e,t){if(!this._active)return;const a=t;if(this._lastPos.equals(a)||!this._box&&a.dist(this._startPos)<this._clickTolerance)return;const n=this._startPos;this._lastPos=a,this._box||(this._box=i.create("div","maplibregl-boxzoom",this._container),this._container.classList.add("maplibregl-crosshair"),this._fireEvent("boxzoomstart",e));const o=Math.min(n.x,a.x),r=Math.max(n.x,a.x),s=Math.min(n.y,a.y),l=Math.max(n.y,a.y);i.setTransform(this._box,`translate(${o}px,${s}px)`),this._box.style.width=r-o+"px",this._box.style.height=l-s+"px"}mouseupWindow(t,a){if(!this._active)return;if(0!==t.button)return;const n=this._startPos,o=a;if(this.reset(),i.suppressClick(),n.x!==o.x||n.y!==o.y)return this._map.fire(new e.k("boxzoomend",{originalEvent:t})),{cameraAnimation:e=>e.fitScreenCoordinates(n,o,this._tr.bearing,{linear:!0})};this._fireEvent("boxzoomcancel",t)}keydown(e){this._active&&27===e.keyCode&&(this.reset(),this._fireEvent("boxzoomcancel",e))}reset(){this._active=!1,this._container.classList.remove("maplibregl-crosshair"),this._box&&(i.remove(this._box),this._box=null),i.enableDrag(),delete this._startPos,delete this._lastPos}_fireEvent(t,i){return this._map.fire(new e.k(t,{originalEvent:i}))}}function Sa(e,t){if(e.length!==t.length)throw new Error(`The number of touches and points are not equal - touches ${e.length}, points ${t.length}`);const i={};for(let a=0;a<e.length;a++)i[e[a].identifier]=t[a];return i}class Ta{constructor(e){this.reset(),this.numTouches=e.numTouches}reset(){delete this.centroid,delete this.startTime,delete this.touches,this.aborted=!1}touchstart(t,i,a){(this.centroid||a.length>this.numTouches)&&(this.aborted=!0),this.aborted||(void 0===this.startTime&&(this.startTime=t.timeStamp),a.length===this.numTouches&&(this.centroid=function(t){const i=new e.P(0,0);for(const e of t)i._add(e);return i.div(t.length)}(i),this.touches=Sa(a,i)))}touchmove(e,t,i){if(this.aborted||!this.centroid)return;const a=Sa(i,t);for(const e in this.touches){const t=a[e];(!t||t.dist(this.touches[e])>30)&&(this.aborted=!0)}}touchend(e,t,i){if((!this.centroid||e.timeStamp-this.startTime>500)&&(this.aborted=!0),0===i.length){const e=!this.aborted&&this.centroid;if(this.reset(),e)return e}}}class Ca{constructor(e){this.singleTap=new Ta(e),this.numTaps=e.numTaps,this.reset()}reset(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()}touchstart(e,t,i){this.singleTap.touchstart(e,t,i)}touchmove(e,t,i){this.singleTap.touchmove(e,t,i)}touchend(e,t,i){const a=this.singleTap.touchend(e,t,i);if(a){const t=e.timeStamp-this.lastTime<500,i=!this.lastTap||this.lastTap.dist(a)<30;if(t&&i||this.reset(),this.count++,this.lastTime=e.timeStamp,this.lastTap=a,this.count===this.numTaps)return this.reset(),a}}}class za{constructor(e){this._tr=new ba(e),this._zoomIn=new Ca({numTouches:1,numTaps:2}),this._zoomOut=new Ca({numTouches:2,numTaps:1}),this.reset()}reset(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()}touchstart(e,t,i){this._zoomIn.touchstart(e,t,i),this._zoomOut.touchstart(e,t,i)}touchmove(e,t,i){this._zoomIn.touchmove(e,t,i),this._zoomOut.touchmove(e,t,i)}touchend(e,t,i){const a=this._zoomIn.touchend(e,t,i),n=this._zoomOut.touchend(e,t,i),o=this._tr;return a?(this._active=!0,e.preventDefault(),setTimeout((()=>this.reset()),0),{cameraAnimation:t=>t.easeTo({duration:300,zoom:o.zoom+1,around:o.unproject(a)},{originalEvent:e})}):n?(this._active=!0,e.preventDefault(),setTimeout((()=>this.reset()),0),{cameraAnimation:t=>t.easeTo({duration:300,zoom:o.zoom-1,around:o.unproject(n)},{originalEvent:e})}):void 0}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class Pa{constructor(e){this._enabled=!!e.enable,this._moveStateManager=e.moveStateManager,this._clickTolerance=e.clickTolerance||1,this._moveFunction=e.move,this._activateOnStart=!!e.activateOnStart,e.assignEvents(this),this.reset()}reset(e){this._active=!1,this._moved=!1,delete this._lastPoint,this._moveStateManager.endMove(e)}_move(...e){const t=this._moveFunction(...e);if(t.bearingDelta||t.pitchDelta||t.around||t.panDelta)return this._active=!0,t}dragStart(e,t){this.isEnabled()&&!this._lastPoint&&this._moveStateManager.isValidStartEvent(e)&&(this._moveStateManager.startMove(e),this._lastPoint=t.length?t[0]:t,this._activateOnStart&&this._lastPoint&&(this._active=!0))}dragMove(e,t){if(!this.isEnabled())return;const i=this._lastPoint;if(!i)return;if(e.preventDefault(),!this._moveStateManager.isValidMoveEvent(e))return void this.reset(e);const a=t.length?t[0]:t;return!this._moved&&a.dist(i)<this._clickTolerance?void 0:(this._moved=!0,this._lastPoint=a,this._move(i,a))}dragEnd(e){this.isEnabled()&&this._lastPoint&&this._moveStateManager.isValidEndEvent(e)&&(this._moved&&i.suppressClick(),this.reset(e))}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}getClickTolerance(){return this._clickTolerance}}const Ma={0:1,2:2};class La{constructor(e){this._correctEvent=e.checkCorrectEvent}startMove(e){const t=i.mouseButton(e);this._eventButton=t}endMove(e){delete this._eventButton}isValidStartEvent(e){return this._correctEvent(e)}isValidMoveEvent(e){return!function(e,t){const i=Ma[t];return void 0===e.buttons||(e.buttons&i)!==i}(e,this._eventButton)}isValidEndEvent(e){return i.mouseButton(e)===this._eventButton}}class Aa{constructor(){this._firstTouch=void 0}_isOneFingerTouch(e){return 1===e.targetTouches.length}_isSameTouchEvent(e){return e.targetTouches[0].identifier===this._firstTouch}startMove(e){this._firstTouch=e.targetTouches[0].identifier}endMove(e){delete this._firstTouch}isValidStartEvent(e){return this._isOneFingerTouch(e)}isValidMoveEvent(e){return this._isOneFingerTouch(e)&&this._isSameTouchEvent(e)}isValidEndEvent(e){return this._isOneFingerTouch(e)&&this._isSameTouchEvent(e)}}const Ia=e=>{e.mousedown=e.dragStart,e.mousemoveWindow=e.dragMove,e.mouseup=e.dragEnd,e.contextmenu=function(e){e.preventDefault()}},Ea=({enable:e,clickTolerance:t,bearingDegreesPerPixelMoved:a=.8})=>{const n=new La({checkCorrectEvent:e=>0===i.mouseButton(e)&&e.ctrlKey||2===i.mouseButton(e)});return new Pa({clickTolerance:t,move:(e,t)=>({bearingDelta:(t.x-e.x)*a}),moveStateManager:n,enable:e,assignEvents:Ia})},Da=({enable:e,clickTolerance:t,pitchDegreesPerPixelMoved:a=-.5})=>{const n=new La({checkCorrectEvent:e=>0===i.mouseButton(e)&&e.ctrlKey||2===i.mouseButton(e)});return new Pa({clickTolerance:t,move:(e,t)=>({pitchDelta:(t.y-e.y)*a}),moveStateManager:n,enable:e,assignEvents:Ia})};class ja{constructor(e,t){this._minTouches=e.cooperativeGestures?2:1,this._clickTolerance=e.clickTolerance||1,this._map=t,this.reset()}reset(){this._active=!1,this._touches={},this._sum=new e.P(0,0),setTimeout((()=>{this._cancelCooperativeMessage=!1}),200)}touchstart(e,t,i){return this._calculateTransform(e,t,i)}touchmove(e,t,i){if(this._map._cooperativeGestures&&(2===this._minTouches&&i.length<2&&!this._cancelCooperativeMessage?this._map._onCooperativeGesture(e,!1,i.length):this._cancelCooperativeMessage||(this._cancelCooperativeMessage=!0)),this._active&&!(i.length<this._minTouches))return e.preventDefault(),this._calculateTransform(e,t,i)}touchend(e,t,i){this._calculateTransform(e,t,i),this._active&&i.length<this._minTouches&&this.reset()}touchcancel(){this.reset()}_calculateTransform(t,i,a){a.length>0&&(this._active=!0);const n=Sa(a,i),o=new e.P(0,0),r=new e.P(0,0);let s=0;for(const e in n){const t=n[e],i=this._touches[e];i&&(o._add(t),r._add(t.sub(i)),s++,n[e]=t)}if(this._touches=n,s<this._minTouches||!r.mag())return;const l=r.div(s);return this._sum._add(l),this._sum.mag()<this._clickTolerance?void 0:{around:o.div(s),panDelta:l}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class $a{constructor(){this.reset()}reset(){this._active=!1,delete this._firstTwoTouches}touchstart(e,t,i){this._firstTwoTouches||i.length<2||(this._firstTwoTouches=[i[0].identifier,i[1].identifier],this._start([t[0],t[1]]))}touchmove(e,t,i){if(!this._firstTwoTouches)return;e.preventDefault();const[a,n]=this._firstTwoTouches,o=Ra(i,t,a),r=Ra(i,t,n);if(!o||!r)return;const s=this._aroundCenter?null:o.add(r).div(2);return this._move([o,r],s,e)}touchend(e,t,a){if(!this._firstTwoTouches)return;const[n,o]=this._firstTwoTouches,r=Ra(a,t,n),s=Ra(a,t,o);r&&s||(this._active&&i.suppressClick(),this.reset())}touchcancel(){this.reset()}enable(e){this._enabled=!0,this._aroundCenter=!!e&&"center"===e.around}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}function Ra(e,t,i){for(let a=0;a<e.length;a++)if(e[a].identifier===i)return t[a]}function Ba(e,t){return Math.log(e/t)/Math.LN2}class Fa extends $a{reset(){super.reset(),delete this._distance,delete this._startDistance}_start(e){this._startDistance=this._distance=e[0].dist(e[1])}_move(e,t){const i=this._distance;if(this._distance=e[0].dist(e[1]),this._active||!(Math.abs(Ba(this._distance,this._startDistance))<.1))return this._active=!0,{zoomDelta:Ba(this._distance,i),pinchAround:t}}}function Oa(e,t){return 180*e.angleWith(t)/Math.PI}class Na extends $a{reset(){super.reset(),delete this._minDiameter,delete this._startVector,delete this._vector}_start(e){this._startVector=this._vector=e[0].sub(e[1]),this._minDiameter=e[0].dist(e[1])}_move(e,t){const i=this._vector;if(this._vector=e[0].sub(e[1]),this._active||!this._isBelowThreshold(this._vector))return this._active=!0,{bearingDelta:Oa(this._vector,i),pinchAround:t}}_isBelowThreshold(e){this._minDiameter=Math.min(this._minDiameter,e.mag());const t=25/(Math.PI*this._minDiameter)*360,i=Oa(e,this._startVector);return Math.abs(i)<t}}function Va(e){return Math.abs(e.y)>Math.abs(e.x)}class Ua extends $a{constructor(e){super(),this._map=e}reset(){super.reset(),this._valid=void 0,delete this._firstMove,delete this._lastPoints}touchstart(e,t,i){super.touchstart(e,t,i),this._currentTouchCount=i.length}_start(e){this._lastPoints=e,Va(e[0].sub(e[1]))&&(this._valid=!1)}_move(e,t,i){if(this._map._cooperativeGestures&&this._currentTouchCount<3)return;const a=e[0].sub(this._lastPoints[0]),n=e[1].sub(this._lastPoints[1]);return this._valid=this.gestureBeginsVertically(a,n,i.timeStamp),this._valid?(this._lastPoints=e,this._active=!0,{pitchDelta:(a.y+n.y)/2*-.5}):void 0}gestureBeginsVertically(e,t,i){if(void 0!==this._valid)return this._valid;const a=e.mag()>=2,n=t.mag()>=2;if(!a&&!n)return;if(!a||!n)return void 0===this._firstMove&&(this._firstMove=i),i-this._firstMove<100&&void 0;const o=e.y>0==t.y>0;return Va(e)&&Va(t)&&o}}const Za={panStep:100,bearingStep:15,pitchStep:10};class qa{constructor(e){this._tr=new ba(e);const t=Za;this._panStep=t.panStep,this._bearingStep=t.bearingStep,this._pitchStep=t.pitchStep,this._rotationDisabled=!1}reset(){this._active=!1}keydown(e){if(e.altKey||e.ctrlKey||e.metaKey)return;let t=0,i=0,a=0,n=0,o=0;switch(e.keyCode){case 61:case 107:case 171:case 187:t=1;break;case 189:case 109:case 173:t=-1;break;case 37:e.shiftKey?i=-1:(e.preventDefault(),n=-1);break;case 39:e.shiftKey?i=1:(e.preventDefault(),n=1);break;case 38:e.shiftKey?a=1:(e.preventDefault(),o=-1);break;case 40:e.shiftKey?a=-1:(e.preventDefault(),o=1);break;default:return}return this._rotationDisabled&&(i=0,a=0),{cameraAnimation:r=>{const s=this._tr;r.easeTo({duration:300,easeId:"keyboardHandler",easing:Ga,zoom:t?Math.round(s.zoom)+t*(e.shiftKey?2:1):s.zoom,bearing:s.bearing+i*this._bearingStep,pitch:s.pitch+a*this._pitchStep,offset:[-n*this._panStep,-o*this._panStep],center:s.center},{originalEvent:e})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}disableRotation(){this._rotationDisabled=!0}enableRotation(){this._rotationDisabled=!1}}function Ga(e){return e*(2-e)}const Wa=4.000244140625;class Ha{constructor(e,t){this._onTimeout=e=>{this._type="wheel",this._delta-=this._lastValue,this._active||this._start(e)},this._map=e,this._tr=new ba(e),this._el=e.getCanvasContainer(),this._triggerRenderFrame=t,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=.0022222222222222222}setZoomRate(e){this._defaultZoomRate=e}setWheelZoomRate(e){this._wheelZoomRate=e}isEnabled(){return!!this._enabled}isActive(){return!!this._active||void 0!==this._finishTimeout}isZooming(){return!!this._zooming}enable(e){this.isEnabled()||(this._enabled=!0,this._aroundCenter=!!e&&"center"===e.around)}disable(){this.isEnabled()&&(this._enabled=!1)}wheel(t){if(!this.isEnabled())return;if(this._map._cooperativeGestures){if(!t[this._map._metaKey])return;t.preventDefault()}let i=t.deltaMode===WheelEvent.DOM_DELTA_LINE?40*t.deltaY:t.deltaY;const a=e.h.now(),n=a-(this._lastWheelEventTime||0);this._lastWheelEventTime=a,0!==i&&i%Wa==0?this._type="wheel":0!==i&&Math.abs(i)<4?this._type="trackpad":n>400?(this._type=null,this._lastValue=i,this._timeout=setTimeout(this._onTimeout,40,t)):this._type||(this._type=Math.abs(n*i)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,i+=this._lastValue)),t.shiftKey&&i&&(i/=4),this._type&&(this._lastWheelEvent=t,this._delta-=i,this._active||this._start(t)),t.preventDefault()}_start(t){if(!this._delta)return;this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);const a=i.mousePos(this._el,t),n=this._tr;this._around=e.L.convert(this._aroundCenter?n.center:n.unproject(a)),this._aroundPoint=n.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._triggerRenderFrame())}renderFrame(){if(!this._frameId)return;if(this._frameId=null,!this.isActive())return;const t=this._tr.transform;if(0!==this._delta){const e="wheel"===this._type&&Math.abs(this._delta)>Wa?this._wheelZoomRate:this._defaultZoomRate;let i=2/(1+Math.exp(-Math.abs(this._delta*e)));this._delta<0&&0!==i&&(i=1/i);const a="number"==typeof this._targetZoom?t.zoomScale(this._targetZoom):t.scale;this._targetZoom=Math.min(t.maxZoom,Math.max(t.minZoom,t.scaleZoom(a*i))),"wheel"===this._type&&(this._startZoom=t.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}const i="number"==typeof this._targetZoom?this._targetZoom:t.zoom,a=this._startZoom,n=this._easing;let o,r=!1;if("wheel"===this._type&&a&&n){const t=Math.min((e.h.now()-this._lastWheelEventTime)/200,1),s=n(t);o=e.B.number(a,i,s),t<1?this._frameId||(this._frameId=!0):r=!0}else o=i,r=!0;return this._active=!0,r&&(this._active=!1,this._finishTimeout=setTimeout((()=>{this._zooming=!1,this._triggerRenderFrame(),delete this._targetZoom,delete this._finishTimeout}),200)),{noInertia:!0,needsRenderFrame:!r,zoomDelta:o-t.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}_smoothOutEasing(t){let i=e.bb;if(this._prevEase){const t=this._prevEase,a=(e.h.now()-t.start)/t.duration,n=t.easing(a+.01)-t.easing(a),o=.27/Math.sqrt(n*n+1e-4)*.01,r=Math.sqrt(.0729-o*o);i=e.ba(o,r,.25,1)}return this._prevEase={start:e.h.now(),duration:t,easing:i},i}reset(){this._active=!1,this._zooming=!1,delete this._targetZoom,this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout)}}class Ka{constructor(e,t){this._clickZoom=e,this._tapZoom=t}enable(){this._clickZoom.enable(),this._tapZoom.enable()}disable(){this._clickZoom.disable(),this._tapZoom.disable()}isEnabled(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()}isActive(){return this._clickZoom.isActive()||this._tapZoom.isActive()}}class Xa{constructor(e){this._tr=new ba(e),this.reset()}reset(){this._active=!1}dblclick(e,t){return e.preventDefault(),{cameraAnimation:i=>{i.easeTo({duration:300,zoom:this._tr.zoom+(e.shiftKey?-1:1),around:this._tr.unproject(t)},{originalEvent:e})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class Ja{constructor(){this._tap=new Ca({numTouches:1,numTaps:1}),this.reset()}reset(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,delete this._tapPoint,this._tap.reset()}touchstart(e,t,i){if(!this._swipePoint)if(this._tapTime){const a=t[0],n=e.timeStamp-this._tapTime<500,o=this._tapPoint.dist(a)<30;n&&o?i.length>0&&(this._swipePoint=a,this._swipeTouch=i[0].identifier):this.reset()}else this._tap.touchstart(e,t,i)}touchmove(e,t,i){if(this._tapTime){if(this._swipePoint){if(i[0].identifier!==this._swipeTouch)return;const a=t[0],n=a.y-this._swipePoint.y;return this._swipePoint=a,e.preventDefault(),this._active=!0,{zoomDelta:n/128}}}else this._tap.touchmove(e,t,i)}touchend(e,t,i){if(this._tapTime)this._swipePoint&&0===i.length&&this.reset();else{const a=this._tap.touchend(e,t,i);a&&(this._tapTime=e.timeStamp,this._tapPoint=a)}}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class Ya{constructor(e,t,i){this._el=e,this._mousePan=t,this._touchPan=i}enable(e){this._inertiaOptions=e||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("maplibregl-touch-drag-pan")}disable(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("maplibregl-touch-drag-pan")}isEnabled(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()}isActive(){return this._mousePan.isActive()||this._touchPan.isActive()}}class Qa{constructor(e,t,i){this._pitchWithRotate=e.pitchWithRotate,this._mouseRotate=t,this._mousePitch=i}enable(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()}disable(){this._mouseRotate.disable(),this._mousePitch.disable()}isEnabled(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())}isActive(){return this._mouseRotate.isActive()||this._mousePitch.isActive()}}class en{constructor(e,t,i,a){this._el=e,this._touchZoom=t,this._touchRotate=i,this._tapDragZoom=a,this._rotationDisabled=!1,this._enabled=!0}enable(e){this._touchZoom.enable(e),this._rotationDisabled||this._touchRotate.enable(e),this._tapDragZoom.enable(),this._el.classList.add("maplibregl-touch-zoom-rotate")}disable(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("maplibregl-touch-zoom-rotate")}isEnabled(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()}isActive(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()}disableRotation(){this._rotationDisabled=!0,this._touchRotate.disable()}enableRotation(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()}}const tn=e=>e.zoom||e.drag||e.pitch||e.rotate;class an extends e.k{}function nn(e){return e.panDelta&&e.panDelta.mag()||e.zoomDelta||e.bearingDelta||e.pitchDelta}class on{constructor(e,t){this.handleWindowEvent=e=>{this.handleEvent(e,`${e.type}Window`)},this.handleEvent=(e,t)=>{if("blur"===e.type)return void this.stop(!0);this._updatingCamera=!0;const a="renderFrame"===e.type?void 0:e,n={needsRenderFrame:!1},o={},r={},s=e.touches,l=s?this._getMapTouches(s):void 0,d=l?i.touchPos(this._el,l):i.mousePos(this._el,e);for(const{handlerName:i,handler:s,allowed:u}of this._handlers){if(!s.isEnabled())continue;let h;this._blockedByActive(r,u,i)?s.reset():s[t||e.type]&&(h=s[t||e.type](e,d,l),this.mergeHandlerResult(n,o,h,i,a),h&&h.needsRenderFrame&&this._triggerRenderFrame()),(h||s.isActive())&&(r[i]=s)}const u={};for(const e in this._previousActiveHandlers)r[e]||(u[e]=a);this._previousActiveHandlers=r,(Object.keys(u).length||nn(n))&&(this._changes.push([n,o,u]),this._triggerRenderFrame()),(Object.keys(r).length||nn(n))&&this._map._stop(!0),this._updatingCamera=!1;const{cameraAnimation:h}=n;h&&(this._inertia.clear(),this._fireEvents({},{},!0),this._changes=[],h(this._map))},this._map=e,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new pa(e),this._bearingSnap=t.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(t);const a=this._el;this._listeners=[[a,"touchstart",{passive:!0}],[a,"touchmove",{passive:!1}],[a,"touchend",void 0],[a,"touchcancel",void 0],[a,"mousedown",void 0],[a,"mousemove",void 0],[a,"mouseup",void 0],[document,"mousemove",{capture:!0}],[document,"mouseup",void 0],[a,"mouseover",void 0],[a,"mouseout",void 0],[a,"dblclick",void 0],[a,"click",void 0],[a,"keydown",{capture:!1}],[a,"keyup",void 0],[a,"wheel",{passive:!1}],[a,"contextmenu",void 0],[window,"blur",void 0]];for(const[e,t,a]of this._listeners)i.addEventListener(e,t,e===document?this.handleWindowEvent:this.handleEvent,a)}destroy(){for(const[e,t,a]of this._listeners)i.removeEventListener(e,t,e===document?this.handleWindowEvent:this.handleEvent,a)}_addDefaultHandlers(e){const t=this._map,a=t.getCanvasContainer();this._add("mapEvent",new wa(t,e));const n=t.boxZoom=new ka(t,e);this._add("boxZoom",n),e.interactive&&e.boxZoom&&n.enable();const o=new za(t),r=new Xa(t);t.doubleClickZoom=new Ka(r,o),this._add("tapZoom",o),this._add("clickZoom",r),e.interactive&&e.doubleClickZoom&&t.doubleClickZoom.enable();const s=new Ja;this._add("tapDragZoom",s);const l=t.touchPitch=new Ua(t);this._add("touchPitch",l),e.interactive&&e.touchPitch&&t.touchPitch.enable(e.touchPitch);const d=Ea(e),u=Da(e);t.dragRotate=new Qa(e,d,u),this._add("mouseRotate",d,["mousePitch"]),this._add("mousePitch",u,["mouseRotate"]),e.interactive&&e.dragRotate&&t.dragRotate.enable();const h=(({enable:e,clickTolerance:t})=>{const a=new La({checkCorrectEvent:e=>0===i.mouseButton(e)&&!e.ctrlKey});return new Pa({clickTolerance:t,move:(e,t)=>({around:t,panDelta:t.sub(e)}),activateOnStart:!0,moveStateManager:a,enable:e,assignEvents:Ia})})(e),c=new ja(e,t);t.dragPan=new Ya(a,h,c),this._add("mousePan",h),this._add("touchPan",c,["touchZoom","touchRotate"]),e.interactive&&e.dragPan&&t.dragPan.enable(e.dragPan);const m=new Na,p=new Fa;t.touchZoomRotate=new en(a,p,m,s),this._add("touchRotate",m,["touchPan","touchZoom"]),this._add("touchZoom",p,["touchPan","touchRotate"]),e.interactive&&e.touchZoomRotate&&t.touchZoomRotate.enable(e.touchZoomRotate);const f=t.scrollZoom=new Ha(t,(()=>this._triggerRenderFrame()));this._add("scrollZoom",f,["mousePan"]),e.interactive&&e.scrollZoom&&t.scrollZoom.enable(e.scrollZoom);const _=t.keyboard=new qa(t);this._add("keyboard",_),e.interactive&&e.keyboard&&t.keyboard.enable(),this._add("blockableMapEvent",new xa(t))}_add(e,t,i){this._handlers.push({handlerName:e,handler:t,allowed:i}),this._handlersById[e]=t}stop(e){if(!this._updatingCamera){for(const{handler:e}of this._handlers)e.reset();this._inertia.clear(),this._fireEvents({},{},e),this._changes=[]}}isActive(){for(const{handler:e}of this._handlers)if(e.isActive())return!0;return!1}isZooming(){return!!this._eventsInProgress.zoom||this._map.scrollZoom.isZooming()}isRotating(){return!!this._eventsInProgress.rotate}isMoving(){return Boolean(tn(this._eventsInProgress))||this.isZooming()}_blockedByActive(e,t,i){for(const a in e)if(a!==i&&(!t||t.indexOf(a)<0))return!0;return!1}_getMapTouches(e){const t=[];for(const i of e)this._el.contains(i.target)&&t.push(i);return t}mergeHandlerResult(t,i,a,n,o){if(!a)return;e.e(t,a);const r={handlerName:n,originalEvent:a.originalEvent||o};void 0!==a.zoomDelta&&(i.zoom=r),void 0!==a.panDelta&&(i.drag=r),void 0!==a.pitchDelta&&(i.pitch=r),void 0!==a.bearingDelta&&(i.rotate=r)}_applyChanges(){const t={},i={},a={};for(const[n,o,r]of this._changes)n.panDelta&&(t.panDelta=(t.panDelta||new e.P(0,0))._add(n.panDelta)),n.zoomDelta&&(t.zoomDelta=(t.zoomDelta||0)+n.zoomDelta),n.bearingDelta&&(t.bearingDelta=(t.bearingDelta||0)+n.bearingDelta),n.pitchDelta&&(t.pitchDelta=(t.pitchDelta||0)+n.pitchDelta),void 0!==n.around&&(t.around=n.around),void 0!==n.pinchAround&&(t.pinchAround=n.pinchAround),n.noInertia&&(t.noInertia=n.noInertia),e.e(i,o),e.e(a,r);this._updateMapTransform(t,i,a),this._changes=[]}_updateMapTransform(e,t,i){const a=this._map,n=a._getTransformForUpdate(),o=a.terrain;if(!(nn(e)||o&&this._terrainMovement))return this._fireEvents(t,i,!0);let{panDelta:r,zoomDelta:s,bearingDelta:l,pitchDelta:d,around:u,pinchAround:h}=e;void 0!==h&&(u=h),a._stop(!0),u=u||a.transform.centerPoint;const c=n.pointLocation(r?u.sub(r):u);l&&(n.bearing+=l),d&&(n.pitch+=d),s&&(n.zoom+=s),o?this._terrainMovement||!t.drag&&!t.zoom?t.drag&&this._terrainMovement?n.center=n.pointLocation(n.centerPoint.sub(r)):n.setLocationAtPoint(c,u):(this._terrainMovement=!0,this._map._elevationFreeze=!0,n.setLocationAtPoint(c,u),this._map.once("moveend",(()=>{this._map._elevationFreeze=!1,this._terrainMovement=!1,n.recalculateZoom(a.terrain)}))):n.setLocationAtPoint(c,u),a._applyUpdatedTransform(n),this._map._update(),e.noInertia||this._inertia.record(e),this._fireEvents(t,i,!0)}_fireEvents(t,i,a){const n=tn(this._eventsInProgress),o=tn(t),r={};for(const e in t){const{originalEvent:i}=t[e];this._eventsInProgress[e]||(r[`${e}start`]=i),this._eventsInProgress[e]=t[e]}!n&&o&&this._fireEvent("movestart",o.originalEvent);for(const e in r)this._fireEvent(e,r[e]);o&&this._fireEvent("move",o.originalEvent);for(const e in t){const{originalEvent:i}=t[e];this._fireEvent(e,i)}const s={};let l;for(const e in this._eventsInProgress){const{handlerName:t,originalEvent:a}=this._eventsInProgress[e];this._handlersById[t].isActive()||(delete this._eventsInProgress[e],l=i[t]||a,s[`${e}end`]=l)}for(const e in s)this._fireEvent(e,s[e]);const d=tn(this._eventsInProgress);if(a&&(n||o)&&!d){this._updatingCamera=!0;const t=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions),i=e=>0!==e&&-this._bearingSnap<e&&e<this._bearingSnap;!t||!t.essential&&e.h.prefersReducedMotion?(this._map.fire(new e.k("moveend",{originalEvent:l})),i(this._map.getBearing())&&this._map.resetNorth()):(i(t.bearing||this._map.getBearing())&&(t.bearing=0),t.freezeElevation=!0,this._map.easeTo(t,{originalEvent:l})),this._updatingCamera=!1}}_fireEvent(t,i){this._map.fire(new e.k(t,i?{originalEvent:i}:{}))}_requestFrame(){return this._map.triggerRepaint(),this._map._renderTaskQueue.add((e=>{delete this._frameId,this.handleEvent(new an("renderFrame",{timeStamp:e})),this._applyChanges()}))}_triggerRenderFrame(){void 0===this._frameId&&(this._frameId=this._requestFrame())}}class rn extends e.E{constructor(t,i){super(),this._renderFrameCallback=()=>{const t=Math.min((e.h.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(t)),t<1&&this._easeFrameId?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},this._moving=!1,this._zooming=!1,this.transform=t,this._bearingSnap=i.bearingSnap,this.on("moveend",(()=>{delete this._requestedCameraState}))}getCenter(){return new e.L(this.transform.center.lng,this.transform.center.lat)}setCenter(e,t){return this.jumpTo({center:e},t)}panBy(t,i,a){return t=e.P.convert(t).mult(-1),this.panTo(this.transform.center,e.e({offset:t},i),a)}panTo(t,i,a){return this.easeTo(e.e({center:t},i),a)}getZoom(){return this.transform.zoom}setZoom(e,t){return this.jumpTo({zoom:e},t),this}zoomTo(t,i,a){return this.easeTo(e.e({zoom:t},i),a)}zoomIn(e,t){return this.zoomTo(this.getZoom()+1,e,t),this}zoomOut(e,t){return this.zoomTo(this.getZoom()-1,e,t),this}getBearing(){return this.transform.bearing}setBearing(e,t){return this.jumpTo({bearing:e},t),this}getPadding(){return this.transform.padding}setPadding(e,t){return this.jumpTo({padding:e},t),this}rotateTo(t,i,a){return this.easeTo(e.e({bearing:t},i),a)}resetNorth(t,i){return this.rotateTo(0,e.e({duration:1e3},t),i),this}resetNorthPitch(t,i){return this.easeTo(e.e({bearing:0,pitch:0,duration:1e3},t),i),this}snapToNorth(e,t){return Math.abs(this.getBearing())<this._bearingSnap?this.resetNorth(e,t):this}getPitch(){return this.transform.pitch}setPitch(e,t){return this.jumpTo({pitch:e},t),this}cameraForBounds(e,t){e=I.convert(e);const i=t&&t.bearing||0;return this._cameraForBoxAndBearing(e.getNorthWest(),e.getSouthEast(),i,t)}_cameraForBoxAndBearing(t,i,a,n){const o={top:0,bottom:0,right:0,left:0};if("number"==typeof(n=e.e({padding:o,offset:[0,0],maxZoom:this.transform.maxZoom},n)).padding){const e=n.padding;n.padding={top:e,bottom:e,right:e,left:e}}n.padding=e.e(o,n.padding);const r=this.transform,s=r.padding,l=r.project(e.L.convert(t)),d=r.project(e.L.convert(i)),u=l.rotate(-a*Math.PI/180),h=d.rotate(-a*Math.PI/180),c=new e.P(Math.max(u.x,h.x),Math.max(u.y,h.y)),m=new e.P(Math.min(u.x,h.x),Math.min(u.y,h.y)),p=c.sub(m),f=(r.width-(s.left+s.right+n.padding.left+n.padding.right))/p.x,_=(r.height-(s.top+s.bottom+n.padding.top+n.padding.bottom))/p.y;if(_<0||f<0)return void e.w("Map cannot fit within canvas with the given bounds, padding, and/or offset.");const g=Math.min(r.scaleZoom(r.scale*Math.min(f,_)),n.maxZoom),y=e.P.convert(n.offset),v=new e.P((n.padding.left-n.padding.right)/2,(n.padding.top-n.padding.bottom)/2).rotate(a*Math.PI/180),w=y.add(v).mult(r.scale/r.zoomScale(g));return{center:r.unproject(l.add(d).div(2).sub(w)),zoom:g,bearing:a}}fitBounds(e,t,i){return this._fitInternal(this.cameraForBounds(e,t),t,i)}fitScreenCoordinates(t,i,a,n,o){return this._fitInternal(this._cameraForBoxAndBearing(this.transform.pointLocation(e.P.convert(t)),this.transform.pointLocation(e.P.convert(i)),a,n),n,o)}_fitInternal(t,i,a){return t?(delete(i=e.e(t,i)).padding,i.linear?this.easeTo(i,a):this.flyTo(i,a)):this}jumpTo(t,i){this.stop();const a=this._getTransformForUpdate();let n=!1,o=!1,r=!1;return"zoom"in t&&a.zoom!==+t.zoom&&(n=!0,a.zoom=+t.zoom),void 0!==t.center&&(a.center=e.L.convert(t.center)),"bearing"in t&&a.bearing!==+t.bearing&&(o=!0,a.bearing=+t.bearing),"pitch"in t&&a.pitch!==+t.pitch&&(r=!0,a.pitch=+t.pitch),null==t.padding||a.isPaddingEqual(t.padding)||(a.padding=t.padding),this._applyUpdatedTransform(a),this.fire(new e.k("movestart",i)).fire(new e.k("move",i)),n&&this.fire(new e.k("zoomstart",i)).fire(new e.k("zoom",i)).fire(new e.k("zoomend",i)),o&&this.fire(new e.k("rotatestart",i)).fire(new e.k("rotate",i)).fire(new e.k("rotateend",i)),r&&this.fire(new e.k("pitchstart",i)).fire(new e.k("pitch",i)).fire(new e.k("pitchend",i)),this.fire(new e.k("moveend",i))}calculateCameraOptionsFromTo(t,i,a,n=0){const o=e.U.fromLngLat(t,i),r=e.U.fromLngLat(a,n),s=r.x-o.x,l=r.y-o.y,d=r.z-o.z,u=Math.hypot(s,l,d);if(0===u)throw new Error("Can't calculate camera options with same From and To");const h=Math.hypot(s,l),c=this.transform.scaleZoom(this.transform.cameraToCenterDistance/u/this.transform.tileSize),m=180*Math.atan2(s,-l)/Math.PI;let p=180*Math.acos(h/u)/Math.PI;return p=d<0?90-p:90+p,{center:r.toLngLat(),zoom:c,pitch:p,bearing:m}}easeTo(t,i){this._stop(!1,t.easeId),(!1===(t=e.e({offset:[0,0],duration:500,easing:e.bb},t)).animate||!t.essential&&e.h.prefersReducedMotion)&&(t.duration=0);const a=this._getTransformForUpdate(),n=this.getZoom(),o=this.getBearing(),r=this.getPitch(),s=this.getPadding(),l="zoom"in t?+t.zoom:n,d="bearing"in t?this._normalizeBearing(t.bearing,o):o,u="pitch"in t?+t.pitch:r,h="padding"in t?t.padding:a.padding,c=e.P.convert(t.offset);let m=a.centerPoint.add(c);const p=a.pointLocation(m),f=e.L.convert(t.center||p);this._normalizeCenter(f);const _=a.project(p),g=a.project(f).sub(_),y=a.zoomScale(l-n);let v,w;t.around&&(v=e.L.convert(t.around),w=a.locationPoint(v));const x={moving:this._moving,zooming:this._zooming,rotating:this._rotating,pitching:this._pitching};return this._zooming=this._zooming||l!==n,this._rotating=this._rotating||o!==d,this._pitching=this._pitching||u!==r,this._padding=!a.isPaddingEqual(h),this._easeId=t.easeId,this._prepareEase(i,t.noMoveStart,x),this.terrain&&this._prepareElevation(f),this._ease((p=>{if(this._zooming&&(a.zoom=e.B.number(n,l,p)),this._rotating&&(a.bearing=e.B.number(o,d,p)),this._pitching&&(a.pitch=e.B.number(r,u,p)),this._padding&&(a.interpolatePadding(s,h,p),m=a.centerPoint.add(c)),this.terrain&&!t.freezeElevation&&this._updateElevation(p),v)a.setLocationAtPoint(v,w);else{const e=a.zoomScale(a.zoom-n),t=l>n?Math.min(2,y):Math.max(.5,y),i=Math.pow(t,1-p),o=a.unproject(_.add(g.mult(p*i)).mult(e));a.setLocationAtPoint(a.renderWorldCopies?o.wrap():o,m)}this._applyUpdatedTransform(a),this._fireMoveEvents(i)}),(e=>{this.terrain&&this._finalizeElevation(),this._afterEase(i,e)}),t),this}_prepareEase(t,i,a={}){this._moving=!0,i||a.moving||this.fire(new e.k("movestart",t)),this._zooming&&!a.zooming&&this.fire(new e.k("zoomstart",t)),this._rotating&&!a.rotating&&this.fire(new e.k("rotatestart",t)),this._pitching&&!a.pitching&&this.fire(new e.k("pitchstart",t))}_prepareElevation(e){this._elevationCenter=e,this._elevationStart=this.transform.elevation,this._elevationTarget=this.terrain.getElevationForLngLatZoom(e,this.transform.tileZoom),this._elevationFreeze=!0}_updateElevation(t){this.transform._minEleveationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this._elevationCenter,this.transform.tileZoom);const i=this.terrain.getElevationForLngLatZoom(this._elevationCenter,this.transform.tileZoom);if(t<1&&i!==this._elevationTarget){const e=this._elevationTarget-this._elevationStart;this._elevationStart+=t*(e-(i-(e*t+this._elevationStart))/(1-t)),this._elevationTarget=i}this.transform.elevation=e.B.number(this._elevationStart,this._elevationTarget,t)}_finalizeElevation(){this._elevationFreeze=!1,this.transform.recalculateZoom(this.terrain)}_getTransformForUpdate(){return this.transformCameraUpdate?(this._requestedCameraState||(this._requestedCameraState=this.transform.clone()),this._requestedCameraState):this.transform}_applyUpdatedTransform(e){if(!this.transformCameraUpdate)return;const t=e.clone(),{center:i,zoom:a,pitch:n,bearing:o,elevation:r}=this.transformCameraUpdate(t);i&&(t.center=i),void 0!==a&&(t.zoom=a),void 0!==n&&(t.pitch=n),void 0!==o&&(t.bearing=o),void 0!==r&&(t.elevation=r),this.transform.apply(t)}_fireMoveEvents(t){this.fire(new e.k("move",t)),this._zooming&&this.fire(new e.k("zoom",t)),this._rotating&&this.fire(new e.k("rotate",t)),this._pitching&&this.fire(new e.k("pitch",t))}_afterEase(t,i){if(this._easeId&&i&&this._easeId===i)return;delete this._easeId;const a=this._zooming,n=this._rotating,o=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,a&&this.fire(new e.k("zoomend",t)),n&&this.fire(new e.k("rotateend",t)),o&&this.fire(new e.k("pitchend",t)),this.fire(new e.k("moveend",t))}flyTo(t,i){if(!t.essential&&e.h.prefersReducedMotion){const a=e.F(t,["center","zoom","bearing","pitch","around"]);return this.jumpTo(a,i)}this.stop(),t=e.e({offset:[0,0],speed:1.2,curve:1.42,easing:e.bb},t);const a=this._getTransformForUpdate(),n=this.getZoom(),o=this.getBearing(),r=this.getPitch(),s=this.getPadding(),l="zoom"in t?e.ad(+t.zoom,a.minZoom,a.maxZoom):n,d="bearing"in t?this._normalizeBearing(t.bearing,o):o,u="pitch"in t?+t.pitch:r,h="padding"in t?t.padding:a.padding,c=a.zoomScale(l-n),m=e.P.convert(t.offset);let p=a.centerPoint.add(m);const f=a.pointLocation(p),_=e.L.convert(t.center||f);this._normalizeCenter(_);const g=a.project(f),y=a.project(_).sub(g);let v=t.curve;const w=Math.max(a.width,a.height),x=w/c,b=y.mag();if("minZoom"in t){const i=e.ad(Math.min(t.minZoom,n,l),a.minZoom,a.maxZoom),o=w/a.zoomScale(i-n);v=Math.sqrt(o/b*2)}const k=v*v;function S(e){const t=(x*x-w*w+(e?-1:1)*k*k*b*b)/(2*(e?x:w)*k*b);return Math.log(Math.sqrt(t*t+1)-t)}function T(e){return(Math.exp(e)-Math.exp(-e))/2}function C(e){return(Math.exp(e)+Math.exp(-e))/2}const z=S(!1);let P=function(e){return C(z)/C(z+v*e)},M=function(e){return w*((C(z)*(T(t=z+v*e)/C(t))-T(z))/k)/b;var t},L=(S(!0)-z)/v;if(Math.abs(b)<1e-6||!isFinite(L)){if(Math.abs(w-x)<1e-6)return this.easeTo(t,i);const e=x<w?-1:1;L=Math.abs(Math.log(x/w))/v,M=function(){return 0},P=function(t){return Math.exp(e*v*t)}}return t.duration="duration"in t?+t.duration:1e3*L/("screenSpeed"in t?+t.screenSpeed/v:+t.speed),t.maxDuration&&t.duration>t.maxDuration&&(t.duration=0),this._zooming=!0,this._rotating=o!==d,this._pitching=u!==r,this._padding=!a.isPaddingEqual(h),this._prepareEase(i,!1),this.terrain&&this._prepareElevation(_),this._ease((c=>{const f=c*L,v=1/P(f);a.zoom=1===c?l:n+a.scaleZoom(v),this._rotating&&(a.bearing=e.B.number(o,d,c)),this._pitching&&(a.pitch=e.B.number(r,u,c)),this._padding&&(a.interpolatePadding(s,h,c),p=a.centerPoint.add(m)),this.terrain&&!t.freezeElevation&&this._updateElevation(c);const w=1===c?_:a.unproject(g.add(y.mult(M(f))).mult(v));a.setLocationAtPoint(a.renderWorldCopies?w.wrap():w,p),this._applyUpdatedTransform(a),this._fireMoveEvents(i)}),(()=>{this.terrain&&this._finalizeElevation(),this._afterEase(i)}),t),this}isEasing(){return!!this._easeFrameId}stop(){return this._stop()}_stop(e,t){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){const e=this._onEaseEnd;delete this._onEaseEnd,e.call(this,t)}if(!e){const e=this.handlers;e&&e.stop(!1)}return this}_ease(t,i,a){!1===a.animate||0===a.duration?(t(1),i()):(this._easeStart=e.h.now(),this._easeOptions=a,this._onEaseFrame=t,this._onEaseEnd=i,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))}_normalizeBearing(t,i){t=e.b5(t,-180,180);const a=Math.abs(t-i);return Math.abs(t-360-i)<a&&(t-=360),Math.abs(t+360-i)<a&&(t+=360),t}_normalizeCenter(e){const t=this.transform;if(!t.renderWorldCopies||t.lngRange)return;const i=e.lng-t.center.lng;e.lng+=i>180?-360:i<-180?360:0}queryTerrainElevation(t){return this.terrain?this.terrain.getElevationForLngLatZoom(e.L.convert(t),this.transform.tileZoom)-this.transform.elevation:null}}class sn{constructor(e={}){this._toggleAttribution=()=>{this._container.classList.contains("maplibregl-compact")&&(this._container.classList.contains("maplibregl-compact-show")?(this._container.setAttribute("open",""),this._container.classList.remove("maplibregl-compact-show")):(this._container.classList.add("maplibregl-compact-show"),this._container.removeAttribute("open")))},this._updateData=e=>{!e||"metadata"!==e.sourceDataType&&"visibility"!==e.sourceDataType&&"style"!==e.dataType&&"terrain"!==e.type||this._updateAttributions()},this._updateCompact=()=>{this._map.getCanvasContainer().offsetWidth<=640||this._compact?!1===this._compact?this._container.setAttribute("open",""):this._container.classList.contains("maplibregl-compact")||this._container.classList.contains("maplibregl-attrib-empty")||(this._container.setAttribute("open",""),this._container.classList.add("maplibregl-compact","maplibregl-compact-show")):(this._container.setAttribute("open",""),this._container.classList.contains("maplibregl-compact")&&this._container.classList.remove("maplibregl-compact","maplibregl-compact-show"))},this._updateCompactMinimize=()=>{this._container.classList.contains("maplibregl-compact")&&this._container.classList.contains("maplibregl-compact-show")&&this._container.classList.remove("maplibregl-compact-show")},this.options=e}getDefaultPosition(){return"bottom-right"}onAdd(e){return this._map=e,this._compact=this.options&&this.options.compact,this._container=i.create("details","maplibregl-ctrl maplibregl-ctrl-attrib"),this._compactButton=i.create("summary","maplibregl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=i.create("div","maplibregl-ctrl-attrib-inner",this._container),this._updateAttributions(),this._updateCompact(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("terrain",this._updateData),this._map.on("resize",this._updateCompact),this._map.on("drag",this._updateCompactMinimize),this._container}onRemove(){i.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("terrain",this._updateData),this._map.off("resize",this._updateCompact),this._map.off("drag",this._updateCompactMinimize),this._map=void 0,this._compact=void 0,this._attribHTML=void 0}_setElementTitle(e,t){const i=this._map._getUIString(`AttributionControl.${t}`);e.title=i,e.setAttribute("aria-label",i)}_updateAttributions(){if(!this._map.style)return;let e=[];if(this.options.customAttribution&&(Array.isArray(this.options.customAttribution)?e=e.concat(this.options.customAttribution.map((e=>"string"!=typeof e?"":e))):"string"==typeof this.options.customAttribution&&e.push(this.options.customAttribution)),this._map.style.stylesheet){const e=this._map.style.stylesheet;this.styleOwner=e.owner,this.styleId=e.id}const t=this._map.style.sourceCaches;for(const i in t){const a=t[i];if(a.used||a.usedForTerrain){const t=a.getSource();t.attribution&&e.indexOf(t.attribution)<0&&e.push(t.attribution)}}e=e.filter((e=>String(e).trim())),e.sort(((e,t)=>e.length-t.length)),e=e.filter(((t,i)=>{for(let a=i+1;a<e.length;a++)if(e[a].indexOf(t)>=0)return!1;return!0}));const i=e.join(" | ");i!==this._attribHTML&&(this._attribHTML=i,e.length?(this._innerContainer.innerHTML=i,this._container.classList.remove("maplibregl-attrib-empty")):this._container.classList.add("maplibregl-attrib-empty"),this._updateCompact(),this._editLink=null)}}class ln{constructor(e={}){this._updateCompact=()=>{const e=this._container.children;if(e.length){const t=e[0];this._map.getCanvasContainer().offsetWidth<=640||this._compact?!1!==this._compact&&t.classList.add("maplibregl-compact"):t.classList.remove("maplibregl-compact")}},this.options=e}getDefaultPosition(){return"bottom-left"}onAdd(e){this._map=e,this._compact=this.options&&this.options.compact,this._container=i.create("div","maplibregl-ctrl");const t=i.create("a","maplibregl-ctrl-logo");return t.target="_blank",t.rel="noopener nofollow",t.href="https://maplibre.org/",t.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),t.setAttribute("rel","noopener nofollow"),this._container.appendChild(t),this._container.style.display="block",this._map.on("resize",this._updateCompact),this._updateCompact(),this._container}onRemove(){i.remove(this._container),this._map.off("resize",this._updateCompact),this._map=void 0,this._compact=void 0}}class dn{constructor(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1}add(e){const t=++this._id;return this._queue.push({callback:e,id:t,cancelled:!1}),t}remove(e){const t=this._currentlyRunning,i=t?this._queue.concat(t):this._queue;for(const t of i)if(t.id===e)return void(t.cancelled=!0)}run(e=0){if(this._currentlyRunning)throw new Error("Attempting to run(), but is already running.");const t=this._currentlyRunning=this._queue;this._queue=[];for(const i of t)if(!i.cancelled&&(i.callback(e),this._cleared))break;this._cleared=!1,this._currentlyRunning=!1}clear(){this._currentlyRunning&&(this._cleared=!0),this._queue=[]}}const un={"AttributionControl.ToggleAttribution":"Toggle attribution","AttributionControl.MapFeedback":"Map feedback","FullscreenControl.Enter":"Enter fullscreen","FullscreenControl.Exit":"Exit fullscreen","GeolocateControl.FindMyLocation":"Find my location","GeolocateControl.LocationNotAvailable":"Location not available","LogoControl.Title":"Mapbox logo","NavigationControl.ResetBearing":"Reset bearing to north","NavigationControl.ZoomIn":"Zoom in","NavigationControl.ZoomOut":"Zoom out","ScaleControl.Feet":"ft","ScaleControl.Meters":"m","ScaleControl.Kilometers":"km","ScaleControl.Miles":"mi","ScaleControl.NauticalMiles":"nm","TerrainControl.enableTerrain":"Enable terrain","TerrainControl.disableTerrain":"Disable terrain"};var hn=e.Q([{name:"a_pos3d",type:"Int16",components:3}]);class cn extends e.E{constructor(e){super(),this.sourceCache=e,this._tiles={},this._renderableTilesKeys=[],this._sourceTileCache={},this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.deltaZoom=1,e.usedForTerrain=!0,e.tileSize=this.tileSize*2**this.deltaZoom}destruct(){this.sourceCache.usedForTerrain=!1,this.sourceCache.tileSize=null}update(t,i){this.sourceCache.update(t,i),this._renderableTilesKeys=[];const a={};for(const n of t.coveringTiles({tileSize:this.tileSize,minzoom:this.minzoom,maxzoom:this.maxzoom,reparseOverscaled:!1,terrain:i}))a[n.key]=!0,this._renderableTilesKeys.push(n.key),this._tiles[n.key]||(n.posMatrix=new Float64Array(16),e.aS(n.posMatrix,0,e.N,0,e.N,0,1),this._tiles[n.key]=new W(n,this.tileSize));for(const e in this._tiles)a[e]||delete this._tiles[e]}freeRtt(e){for(const t in this._tiles){const i=this._tiles[t];(!e||i.tileID.equals(e)||i.tileID.isChildOf(e)||e.isChildOf(i.tileID))&&(i.rtt=[])}}getRenderableTiles(){return this._renderableTilesKeys.map((e=>this.getTileByID(e)))}getTileByID(e){return this._tiles[e]}getTerrainCoords(t){const i={};for(const a of this._renderableTilesKeys){const n=this._tiles[a].tileID;if(n.canonical.equals(t.canonical)){const n=t.clone();n.posMatrix=new Float64Array(16),e.aS(n.posMatrix,0,e.N,0,e.N,0,1),i[a]=n}else if(n.canonical.isChildOf(t.canonical)){const o=t.clone();o.posMatrix=new Float64Array(16);const r=n.canonical.z-t.canonical.z,s=n.canonical.x-(n.canonical.x>>r<<r),l=n.canonical.y-(n.canonical.y>>r<<r),d=e.N>>r;e.aS(o.posMatrix,0,d,0,d,0,1),e.$(o.posMatrix,o.posMatrix,[-s*d,-l*d,0]),i[a]=o}else if(t.canonical.isChildOf(n.canonical)){const o=t.clone();o.posMatrix=new Float64Array(16);const r=t.canonical.z-n.canonical.z,s=t.canonical.x-(t.canonical.x>>r<<r),l=t.canonical.y-(t.canonical.y>>r<<r),d=e.N>>r;e.aS(o.posMatrix,0,e.N,0,e.N,0,1),e.$(o.posMatrix,o.posMatrix,[s*d,l*d,0]),e.a0(o.posMatrix,o.posMatrix,[1/2**r,1/2**r,0]),i[a]=o}}return i}getSourceTile(e,t){const i=this.sourceCache._source;let a=e.overscaledZ-this.deltaZoom;if(a>i.maxzoom&&(a=i.maxzoom),a<i.minzoom)return null;this._sourceTileCache[e.key]||(this._sourceTileCache[e.key]=e.scaledTo(a).key);let n=this.sourceCache.getTileByID(this._sourceTileCache[e.key]);if((!n||!n.dem)&&t)for(;a>=i.minzoom&&(!n||!n.dem);)n=this.sourceCache.getTileByID(e.scaledTo(a--).key);return n}tilesAfterTime(e=Date.now()){return Object.values(this._tiles).filter((t=>t.timeAdded>=e))}}class mn{constructor(e,t,i){this.painter=e,this.sourceCache=new cn(t),this.options=i,this.exaggeration="number"==typeof i.exaggeration?i.exaggeration:1,this.qualityFactor=2,this.meshSize=128,this._demMatrixCache={},this.coordsIndex=[],this._coordsTextureSize=1024}getDEMElevation(t,i,a,n=e.N){var o;if(!(i>=0&&i<n&&a>=0&&a<n))return 0;const r=this.getTerrainData(t),s=null===(o=r.tile)||void 0===o?void 0:o.dem;if(!s)return 0;const l=function(e,t,i){var a=t[0],n=t[1];return e[0]=i[0]*a+i[4]*n+i[12],e[1]=i[1]*a+i[5]*n+i[13],e}([],[i/n*e.N,a/n*e.N],r.u_terrain_matrix),d=[l[0]*s.dim,l[1]*s.dim],u=Math.floor(d[0]),h=Math.floor(d[1]),c=d[0]-u,m=d[1]-h;return s.get(u,h)*(1-c)*(1-m)+s.get(u+1,h)*c*(1-m)+s.get(u,h+1)*(1-c)*m+s.get(u+1,h+1)*c*m}getElevationForLngLatZoom(t,i){const{tileID:a,mercatorX:n,mercatorY:o}=this._getOverscaledTileIDFromLngLatZoom(t,i);return this.getElevation(a,n%e.N,o%e.N,e.N)}getElevation(t,i,a,n=e.N){return this.getDEMElevation(t,i,a,n)*this.exaggeration}getTerrainData(t){if(!this._emptyDemTexture){const t=this.painter.context,i=new e.R({width:1,height:1},new Uint8Array(4));this._emptyDepthTexture=new v(t,i,t.gl.RGBA,{premultiply:!1}),this._emptyDemUnpack=[0,0,0,0],this._emptyDemTexture=new v(t,new e.R({width:1,height:1}),t.gl.RGBA,{premultiply:!1}),this._emptyDemTexture.bind(t.gl.NEAREST,t.gl.CLAMP_TO_EDGE),this._emptyDemMatrix=e.ao([])}const i=this.sourceCache.getSourceTile(t,!0);if(i&&i.dem&&(!i.demTexture||i.needsTerrainPrepare)){const e=this.painter.context;i.demTexture=this.painter.getTileTexture(i.dem.stride),i.demTexture?i.demTexture.update(i.dem.getPixels(),{premultiply:!1}):i.demTexture=new v(e,i.dem.getPixels(),e.gl.RGBA,{premultiply:!1}),i.demTexture.bind(e.gl.NEAREST,e.gl.CLAMP_TO_EDGE),i.needsTerrainPrepare=!1}const a=i&&i+i.tileID.key+t.key;if(a&&!this._demMatrixCache[a]){const a=this.sourceCache.sourceCache._source.maxzoom;let n=t.canonical.z-i.tileID.canonical.z;t.overscaledZ>t.canonical.z&&(t.canonical.z>=a?n=t.canonical.z-a:e.w("cannot calculate elevation if elevation maxzoom > source.maxzoom"));const o=t.canonical.x-(t.canonical.x>>n<<n),r=t.canonical.y-(t.canonical.y>>n<<n),s=e.bc(new Float64Array(16),[1/(e.N<<n),1/(e.N<<n),0]);e.$(s,s,[o*e.N,r*e.N,0]),this._demMatrixCache[t.key]={matrix:s,coord:t}}return{u_depth:2,u_terrain:3,u_terrain_dim:i&&i.dem&&i.dem.dim||1,u_terrain_matrix:a?this._demMatrixCache[t.key].matrix:this._emptyDemMatrix,u_terrain_unpack:i&&i.dem&&i.dem.getUnpackVector()||this._emptyDemUnpack,u_terrain_exaggeration:this.exaggeration,texture:(i&&i.demTexture||this._emptyDemTexture).texture,depthTexture:(this._fboDepthTexture||this._emptyDepthTexture).texture,tile:i}}getFramebuffer(e){const t=this.painter,i=t.width/devicePixelRatio,a=t.height/devicePixelRatio;return!this._fbo||this._fbo.width===i&&this._fbo.height===a||(this._fbo.destroy(),this._fboCoordsTexture.destroy(),this._fboDepthTexture.destroy(),delete this._fbo,delete this._fboDepthTexture,delete this._fboCoordsTexture),this._fboCoordsTexture||(this._fboCoordsTexture=new v(t.context,{width:i,height:a,data:null},t.context.gl.RGBA,{premultiply:!1}),this._fboCoordsTexture.bind(t.context.gl.NEAREST,t.context.gl.CLAMP_TO_EDGE)),this._fboDepthTexture||(this._fboDepthTexture=new v(t.context,{width:i,height:a,data:null},t.context.gl.RGBA,{premultiply:!1}),this._fboDepthTexture.bind(t.context.gl.NEAREST,t.context.gl.CLAMP_TO_EDGE)),this._fbo||(this._fbo=t.context.createFramebuffer(i,a,!0,!1),this._fbo.depthAttachment.set(t.context.createRenderbuffer(t.context.gl.DEPTH_COMPONENT16,i,a))),this._fbo.colorAttachment.set("coords"===e?this._fboCoordsTexture.texture:this._fboDepthTexture.texture),this._fbo}getCoordsTexture(){const t=this.painter.context;if(this._coordsTexture)return this._coordsTexture;const i=new Uint8Array(this._coordsTextureSize*this._coordsTextureSize*4);for(let e=0,t=0;e<this._coordsTextureSize;e++)for(let a=0;a<this._coordsTextureSize;a++,t+=4)i[t+0]=255&a,i[t+1]=255&e,i[t+2]=a>>8<<4|e>>8,i[t+3]=0;const a=new e.R({width:this._coordsTextureSize,height:this._coordsTextureSize},new Uint8Array(i.buffer)),n=new v(t,a,t.gl.RGBA,{premultiply:!1});return n.bind(t.gl.NEAREST,t.gl.CLAMP_TO_EDGE),this._coordsTexture=n,n}pointCoordinate(t){const i=new Uint8Array(4),a=this.painter.context,n=a.gl;a.bindFramebuffer.set(this.getFramebuffer("coords").framebuffer),n.readPixels(t.x,this.painter.height/devicePixelRatio-t.y-1,1,1,n.RGBA,n.UNSIGNED_BYTE,i),a.bindFramebuffer.set(null);const o=i[0]+(i[2]>>4<<8),r=i[1]+((15&i[2])<<8),s=this.coordsIndex[255-i[3]],l=s&&this.sourceCache.getTileByID(s);if(!l)return null;const d=this._coordsTextureSize,u=(1<<l.tileID.canonical.z)*d;return new e.U(this._allowMercatorOverflow(t,(l.tileID.canonical.x*d+o)/u),(l.tileID.canonical.y*d+r)/u,this.getElevation(l.tileID,o,r,d))}getTerrainMesh(){if(this._mesh)return this._mesh;const t=this.painter.context,i=new e.bd,a=new e.b0,n=this.meshSize,o=e.N/n,r=n*n;for(let e=0;e<=n;e++)for(let t=0;t<=n;t++)i.emplaceBack(t*o,e*o,0);for(let e=0;e<r;e+=n+1)for(let t=0;t<n;t++)a.emplaceBack(t+e,n+t+e+1,n+t+e+2),a.emplaceBack(t+e,n+t+e+2,t+e+1);const s=i.length,l=s+2*(n+1);for(const t of[0,1])for(let a=0;a<=n;a++)for(const n of[0,1])i.emplaceBack(a*o,t*e.N,n);for(let e=0;e<2*n;e+=2)a.emplaceBack(l+e,l+e+1,l+e+3),a.emplaceBack(l+e,l+e+3,l+e+2),a.emplaceBack(s+e,s+e+3,s+e+1),a.emplaceBack(s+e,s+e+2,s+e+3);const d=i.length,u=d+2*(n+1);for(const t of[0,1])for(let a=0;a<=n;a++)for(const n of[0,1])i.emplaceBack(t*e.N,a*o,n);for(let e=0;e<2*n;e+=2)a.emplaceBack(d+e,d+e+1,d+e+3),a.emplaceBack(d+e,d+e+3,d+e+2),a.emplaceBack(u+e,u+e+3,u+e+1),a.emplaceBack(u+e,u+e+2,u+e+3);return this._mesh={indexBuffer:t.createIndexBuffer(a),vertexBuffer:t.createVertexBuffer(i,hn.members),segments:e.S.simpleSegment(0,0,i.length,a.length)},this._mesh}getMeshFrameDelta(t){return 2*Math.PI*e.be/Math.pow(2,t)/5}getMinTileElevationForLngLatZoom(e,t){var i;const{tileID:a}=this._getOverscaledTileIDFromLngLatZoom(e,t);return null!==(i=this.getMinMaxElevation(a).minElevation)&&void 0!==i?i:0}getMinMaxElevation(e){const t=this.getTerrainData(e).tile,i={minElevation:null,maxElevation:null};return t&&t.dem&&(i.minElevation=t.dem.min*this.exaggeration,i.maxElevation=t.dem.max*this.exaggeration),i}_getOverscaledTileIDFromLngLatZoom(t,i){const a=e.U.fromLngLat(t.wrap()),n=(1<<i)*e.N,o=a.x*n,r=a.y*n,s=Math.floor(o/e.N),l=Math.floor(r/e.N);return{tileID:new e.O(i,0,i,s,l),mercatorX:o,mercatorY:r}}_allowMercatorOverflow(t,i){const a=t.x<this.painter.width/2;let n=e.bf(i);const o=this.painter.transform.center.lng;return a&&Math.sign(n)>0&&Math.sign(o)<0||!a&&Math.sign(n)<0&&Math.sign(o)>0?(n=360*Math.sign(o)+n,e.G(n)):i}}class pn{constructor(e,t,i){this._context=e,this._size=t,this._tileSize=i,this._objects=[],this._recentlyUsed=[],this._stamp=0}destruct(){for(const e of this._objects)e.texture.destroy(),e.fbo.destroy()}_createObject(e){const t=this._context.createFramebuffer(this._tileSize,this._tileSize,!0,!0),i=new v(this._context,{width:this._tileSize,height:this._tileSize,data:null},this._context.gl.RGBA);return i.bind(this._context.gl.LINEAR,this._context.gl.CLAMP_TO_EDGE),t.depthAttachment.set(this._context.createRenderbuffer(this._context.gl.DEPTH_STENCIL,this._tileSize,this._tileSize)),t.colorAttachment.set(i.texture),{id:e,fbo:t,texture:i,stamp:-1,inUse:!1}}getObjectForId(e){return this._objects[e]}useObject(e){e.inUse=!0,this._recentlyUsed=this._recentlyUsed.filter((t=>e.id!==t)),this._recentlyUsed.push(e.id)}stampObject(e){e.stamp=++this._stamp}getOrCreateFreeObject(){for(const e of this._recentlyUsed)if(!this._objects[e].inUse)return this._objects[e];if(this._objects.length>=this._size)throw new Error("No free RenderPool available, call freeAllObjects() required!");const e=this._createObject(this._objects.length);return this._objects.push(e),e}freeObject(e){e.inUse=!1}freeAllObjects(){for(const e of this._objects)this.freeObject(e)}isFull(){return!(this._objects.length<this._size)&&!1===this._objects.some((e=>!e.inUse))}}const fn={background:!0,fill:!0,line:!0,raster:!0,hillshade:!0};class _n{constructor(e,t){this.painter=e,this.terrain=t,this.pool=new pn(e.context,30,t.sourceCache.tileSize*t.qualityFactor)}destruct(){this.pool.destruct()}getTexture(e){return this.pool.getObjectForId(e.rtt[this._stacks.length-1].id).texture}prepareForRender(e,t){this._stacks=[],this._prevType=null,this._rttTiles=[],this._renderableTiles=this.terrain.sourceCache.getRenderableTiles(),this._renderableLayerIds=e._order.filter((i=>!e._layers[i].isHidden(t))),this._coordsDescendingInv={};for(const t in e.sourceCaches){this._coordsDescendingInv[t]={};const i=e.sourceCaches[t].getVisibleCoordinates();for(const e of i){const i=this.terrain.sourceCache.getTerrainCoords(e);for(const e in i)this._coordsDescendingInv[t][e]||(this._coordsDescendingInv[t][e]=[]),this._coordsDescendingInv[t][e].push(i[e])}}this._coordsDescendingInvStr={};for(const t of e._order){const i=e._layers[t],a=i.source;if(fn[i.type]&&!this._coordsDescendingInvStr[a]){this._coordsDescendingInvStr[a]={};for(const e in this._coordsDescendingInv[a])this._coordsDescendingInvStr[a][e]=this._coordsDescendingInv[a][e].map((e=>e.key)).sort().join()}}for(const e of this._renderableTiles)for(const t in this._coordsDescendingInvStr){const i=this._coordsDescendingInvStr[t][e.tileID.key];i&&i!==e.rttCoords[t]&&(e.rtt=[])}}renderLayer(t){if(t.isHidden(this.painter.transform.zoom))return!1;const i=t.type,a=this.painter,n=this._renderableLayerIds[this._renderableLayerIds.length-1]===t.id;if(fn[i]&&(this._prevType&&fn[this._prevType]||this._stacks.push([]),this._prevType=i,this._stacks[this._stacks.length-1].push(t.id),!n))return!0;if(fn[this._prevType]||fn[i]&&n){this._prevType=i;const t=this._stacks.length-1,n=this._stacks[t]||[];for(const i of this._renderableTiles){if(this.pool.isFull()&&(ta(this.painter,this.terrain,this._rttTiles),this._rttTiles=[],this.pool.freeAllObjects()),this._rttTiles.push(i),i.rtt[t]){const e=this.pool.getObjectForId(i.rtt[t].id);if(e.stamp===i.rtt[t].stamp){this.pool.useObject(e);continue}}const o=this.pool.getOrCreateFreeObject();this.pool.useObject(o),this.pool.stampObject(o),i.rtt[t]={id:o.id,stamp:o.stamp},a.context.bindFramebuffer.set(o.fbo.framebuffer),a.context.clear({color:e.aT.transparent,stencil:0}),a.currentStencilSource=void 0;for(let e=0;e<n.length;e++){const t=a.style._layers[n[e]],r=t.source?this._coordsDescendingInv[t.source][i.tileID.key]:[i.tileID];a.context.viewport.set([0,0,o.fbo.width,o.fbo.height]),a._renderTileClippingMasks(t,r),a.renderLayer(a,a.style.sourceCaches[t.source],t,r),t.source&&(i.rttCoords[t.source]=this._coordsDescendingInvStr[t.source][i.tileID.key])}}return ta(this.painter,this.terrain,this._rttTiles),this._rttTiles=[],this.pool.freeAllObjects(),fn[i]}return!1}}const gn=t,yn={center:[0,0],zoom:0,bearing:0,pitch:0,minZoom:-2,maxZoom:22,minPitch:0,maxPitch:60,interactive:!0,scrollZoom:!0,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,touchPitch:!0,cooperativeGestures:void 0,bearingSnap:7,clickTolerance:3,pitchWithRotate:!0,hash:!1,attributionControl:!0,maplibreLogo:!1,failIfMajorPerformanceCaveat:!1,preserveDrawingBuffer:!1,trackResize:!0,renderWorldCopies:!0,refreshExpiredTiles:!0,maxTileCacheSize:null,maxTileCacheZoomLevels:e.c.MAX_TILE_CACHE_ZOOM_LEVELS,localIdeographFontFamily:"sans-serif",transformRequest:null,transformCameraUpdate:null,fadeDuration:300,crossSourceCollisions:!0,validateStyle:!0,maxCanvasSize:[4096,4096]},vn=e=>{e.touchstart=e.dragStart,e.touchmoveWindow=e.dragMove,e.touchend=e.dragEnd},wn={showCompass:!0,showZoom:!0,visualizePitch:!1};class xn{constructor(t,a,n=!1){this.mousedown=t=>{this.startMouse(e.e({},t,{ctrlKey:!0,preventDefault:()=>t.preventDefault()}),i.mousePos(this.element,t)),i.addEventListener(window,"mousemove",this.mousemove),i.addEventListener(window,"mouseup",this.mouseup)},this.mousemove=e=>{this.moveMouse(e,i.mousePos(this.element,e))},this.mouseup=e=>{this.mouseRotate.dragEnd(e),this.mousePitch&&this.mousePitch.dragEnd(e),this.offTemp()},this.touchstart=e=>{1!==e.targetTouches.length?this.reset():(this._startPos=this._lastPos=i.touchPos(this.element,e.targetTouches)[0],this.startTouch(e,this._startPos),i.addEventListener(window,"touchmove",this.touchmove,{passive:!1}),i.addEventListener(window,"touchend",this.touchend))},this.touchmove=e=>{1!==e.targetTouches.length?this.reset():(this._lastPos=i.touchPos(this.element,e.targetTouches)[0],this.moveTouch(e,this._lastPos))},this.touchend=e=>{0===e.targetTouches.length&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos)<this._clickTolerance&&this.element.click(),delete this._startPos,delete this._lastPos,this.offTemp()},this.reset=()=>{this.mouseRotate.reset(),this.mousePitch&&this.mousePitch.reset(),this.touchRotate.reset(),this.touchPitch&&this.touchPitch.reset(),delete this._startPos,delete this._lastPos,this.offTemp()},this._clickTolerance=10;const o=t.dragRotate._mouseRotate.getClickTolerance(),r=t.dragRotate._mousePitch.getClickTolerance();this.element=a,this.mouseRotate=Ea({clickTolerance:o,enable:!0}),this.touchRotate=(({enable:e,clickTolerance:t,bearingDegreesPerPixelMoved:i=.8})=>{const a=new Aa;return new Pa({clickTolerance:t,move:(e,t)=>({bearingDelta:(t.x-e.x)*i}),moveStateManager:a,enable:e,assignEvents:vn})})({clickTolerance:o,enable:!0}),this.map=t,n&&(this.mousePitch=Da({clickTolerance:r,enable:!0}),this.touchPitch=(({enable:e,clickTolerance:t,pitchDegreesPerPixelMoved:i=-.5})=>{const a=new Aa;return new Pa({clickTolerance:t,move:(e,t)=>({pitchDelta:(t.y-e.y)*i}),moveStateManager:a,enable:e,assignEvents:vn})})({clickTolerance:r,enable:!0})),i.addEventListener(a,"mousedown",this.mousedown),i.addEventListener(a,"touchstart",this.touchstart,{passive:!1}),i.addEventListener(a,"touchcancel",this.reset)}startMouse(e,t){this.mouseRotate.dragStart(e,t),this.mousePitch&&this.mousePitch.dragStart(e,t),i.disableDrag()}startTouch(e,t){this.touchRotate.dragStart(e,t),this.touchPitch&&this.touchPitch.dragStart(e,t),i.disableDrag()}moveMouse(e,t){const i=this.map,{bearingDelta:a}=this.mouseRotate.dragMove(e,t)||{};if(a&&i.setBearing(i.getBearing()+a),this.mousePitch){const{pitchDelta:a}=this.mousePitch.dragMove(e,t)||{};a&&i.setPitch(i.getPitch()+a)}}moveTouch(e,t){const i=this.map,{bearingDelta:a}=this.touchRotate.dragMove(e,t)||{};if(a&&i.setBearing(i.getBearing()+a),this.touchPitch){const{pitchDelta:a}=this.touchPitch.dragMove(e,t)||{};a&&i.setPitch(i.getPitch()+a)}}off(){const e=this.element;i.removeEventListener(e,"mousedown",this.mousedown),i.removeEventListener(e,"touchstart",this.touchstart,{passive:!1}),i.removeEventListener(window,"touchmove",this.touchmove,{passive:!1}),i.removeEventListener(window,"touchend",this.touchend),i.removeEventListener(e,"touchcancel",this.reset),this.offTemp()}offTemp(){i.enableDrag(),i.removeEventListener(window,"mousemove",this.mousemove),i.removeEventListener(window,"mouseup",this.mouseup),i.removeEventListener(window,"touchmove",this.touchmove,{passive:!1}),i.removeEventListener(window,"touchend",this.touchend)}}let bn;function kn(t,i,a){if(t=new e.L(t.lng,t.lat),i){const n=new e.L(t.lng-360,t.lat),o=new e.L(t.lng+360,t.lat),r=a.locationPoint(t).distSqr(i);a.locationPoint(n).distSqr(i)<r?t=n:a.locationPoint(o).distSqr(i)<r&&(t=o)}for(;Math.abs(t.lng-a.center.lng)>180;){const e=a.locationPoint(t);if(e.x>=0&&e.y>=0&&e.x<=a.width&&e.y<=a.height)break;t.lng>a.center.lng?t.lng-=360:t.lng+=360}return t}const Sn={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 Tn(e,t,i){const a=e.classList;for(const e in Sn)a.remove(`maplibregl-${i}-anchor-${e}`);a.add(`maplibregl-${i}-anchor-${t}`)}class Cn extends e.E{constructor(t){if(super(),this._onKeyPress=e=>{const t=e.code,i=e.charCode||e.keyCode;"Space"!==t&&"Enter"!==t&&32!==i&&13!==i||this.togglePopup()},this._onMapClick=e=>{const t=e.originalEvent.target,i=this._element;this._popup&&(t===i||i.contains(t))&&this.togglePopup()},this._update=e=>{if(!this._map)return;const t=this._map.loaded()&&!this._map.isMoving();("terrain"===(null==e?void 0:e.type)||"render"===(null==e?void 0:e.type)&&!t)&&this._map.once("render",this._update),this._map.transform.renderWorldCopies&&
vendor: 7,881 bytes, line 5
5(this._lngLat=kn(this._lngLat,this._pos,this._map.transform)),this._pos=this._map.project(this._lngLat)._add(this._offset);let a="";"viewport"===this._rotationAlignment||"auto"===this._rotationAlignment?a=`rotateZ(${this._rotation}deg)`:"map"===this._rotationAlignment&&(a=`rotateZ(${this._rotation-this._map.getBearing()}deg)`);let n="";"viewport"===this._pitchAlignment||"auto"===this._pitchAlignment?n="rotateX(0deg)":"map"===this._pitchAlignment&&(n=`rotateX(${this._map.getPitch()}deg)`),e&&"moveend"!==e.type||(this._pos=this._pos.round()),i.setTransform(this._element,`${Sn[this._anchor]} translate(${this._pos.x}px, ${this._pos.y}px) ${n} ${a}`),this._map.terrain&&!this._opacityTimeout&&(this._opacityTimeout=setTimeout((()=>{const e=this._map.unproject(this._pos),t=40075016.686*Math.abs(Math.cos(this._lngLat.lat*Math.PI/180))/Math.pow(2,this._map.transform.tileZoom+8);this._element.style.opacity=e.distanceTo(this._lngLat)>20*t?"0.2":"1.0",this._opacityTimeout=null}),100))},this._onMove=t=>{if(!this._isDragging){const e=this._clickTolerance||this._map._clickTolerance;this._isDragging=t.point.dist(this._pointerdownPos)>=e}this._isDragging&&(this._pos=t.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none","pending"===this._state&&(this._state="active",this.fire(new e.k("dragstart"))),this.fire(new e.k("drag")))},this._onUp=()=>{this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),"active"===this._state&&this.fire(new e.k("dragend")),this._state="inactive"},this._addDragHandler=e=>{this._element.contains(e.originalEvent.target)&&(e.preventDefault(),this._positionDelta=e.point.sub(this._pos).add(this._offset),this._pointerdownPos=e.point,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))},this._anchor=t&&t.anchor||"center",this._color=t&&t.color||"#3FB1CE",this._scale=t&&t.scale||1,this._draggable=t&&t.draggable||!1,this._clickTolerance=t&&t.clickTolerance||0,this._isDragging=!1,this._state="inactive",this._rotation=t&&t.rotation||0,this._rotationAlignment=t&&t.rotationAlignment||"auto",this._pitchAlignment=t&&t.pitchAlignment&&"auto"!==t.pitchAlignment?t.pitchAlignment:this._rotationAlignment,t&&t.element)this._element=t.element,this._offset=e.P.convert(t&&t.offset||[0,0]);else{this._defaultMarker=!0,this._element=i.create("div"),this._element.setAttribute("aria-label","Map marker");const a=i.createNS("http://www.w3.org/2000/svg","svg"),n=41,o=27;a.setAttributeNS(null,"display","block"),a.setAttributeNS(null,"height",`${n}px`),a.setAttributeNS(null,"width",`${o}px`),a.setAttributeNS(null,"viewBox",`0 0 ${o} ${n}`);const r=i.createNS("http://www.w3.org/2000/svg","g");r.setAttributeNS(null,"stroke","none"),r.setAttributeNS(null,"stroke-width","1"),r.setAttributeNS(null,"fill","none"),r.setAttributeNS(null,"fill-rule","evenodd");const s=i.createNS("http://www.w3.org/2000/svg","g");s.setAttributeNS(null,"fill-rule","nonzero");const l=i.createNS("http://www.w3.org/2000/svg","g");l.setAttributeNS(null,"transform","translate(3.0, 29.0)"),l.setAttributeNS(null,"fill","#000000");const d=[{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"}];for(const e of d){const t=i.createNS("http://www.w3.org/2000/svg","ellipse");t.setAttributeNS(null,"opacity","0.04"),t.setAttributeNS(null,"cx","10.5"),t.setAttributeNS(null,"cy","5.80029008"),t.setAttributeNS(null,"rx",e.rx),t.setAttributeNS(null,"ry",e.ry),l.appendChild(t)}const u=i.createNS("http://www.w3.org/2000/svg","g");u.setAttributeNS(null,"fill",this._color);const h=i.createNS("http://www.w3.org/2000/svg","path");h.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"),u.appendChild(h);const c=i.createNS("http://www.w3.org/2000/svg","g");c.setAttributeNS(null,"opacity","0.25"),c.setAttributeNS(null,"fill","#000000");const m=i.createNS("http://www.w3.org/2000/svg","path");m.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"),c.appendChild(m);const p=i.createNS("http://www.w3.org/2000/svg","g");p.setAttributeNS(null,"transform","translate(6.0, 7.0)"),p.setAttributeNS(null,"fill","#FFFFFF");const f=i.createNS("http://www.w3.org/2000/svg","g");f.setAttributeNS(null,"transform","translate(8.0, 8.0)");const _=i.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");const g=i.createNS("http://www.w3.org/2000/svg","circle");g.setAttributeNS(null,"fill","#FFFFFF"),g.setAttributeNS(null,"cx","5.5"),g.setAttributeNS(null,"cy","5.5"),g.setAttributeNS(null,"r","5.4999962"),f.appendChild(_),f.appendChild(g),s.appendChild(l),s.appendChild(u),s.appendChild(c),s.appendChild(p),s.appendChild(f),a.appendChild(s),a.setAttributeNS(null,"height",n*this._scale+"px"),a.setAttributeNS(null,"width",o*this._scale+"px"),this._element.appendChild(a),this._offset=e.P.convert(t&&t.offset||[0,-14])}if(this._element.classList.add("maplibregl-marker"),this._element.addEventListener("dragstart",(e=>{e.preventDefault()})),this._element.addEventListener("mousedown",(e=>{e.preventDefault()})),Tn(this._element,this._anchor,"marker"),t&&t.className)for(const e of t.className.split(" "))this._element.classList.add(e);this._popup=null}addTo(e){return this.remove(),this._map=e,e.getCanvasContainer().appendChild(this._element),e.on("move",this._update),e.on("moveend",this._update),e.on("terrain",this._update),this.setDraggable(this._draggable),this._update(),this._map.on("click",this._onMapClick),this}remove(){return this._opacityTimeout&&(clearTimeout(this._opacityTimeout),delete this._opacityTimeout),this._map&&(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),i.remove(this._element),this._popup&&this._popup.remove(),this}getLngLat(){return this._lngLat}setLngLat(t){return this._lngLat=e.L.convert(t),this._pos=null,this._popup&&this._popup.setLngLat(this._lngLat),this._update(),this}getElement(){return this._element}setPopup(e){if(this._popup&&(this._popup.remove(),this._popup=null,this._element.removeEventListener("keypress",this._onKeyPress),this._originalTabIndex||this._element.removeAttribute("tabindex")),e){if(!("offset"in e.options)){const t=38.1,i=13.5,a=Math.abs(i)/Math.SQRT2;e.options.offset=this._defaultMarker?{top:[0,0],"top-left":[0,0],"top-right":[0,0],bottom:[
50,-t],"bottom-left":[a,-1*(t-i+a)],"bottom-right":[-a,-1*(t-i+a)],left:[i,-1*(t-i)],right:[-i,-1*(t-i)]}:this._offset}this._popup=e,this._lngLat&&this._popup.setLngLat(this._lngLat),this._originalTabIndex=this._element.getAttribute("tabindex"),this._originalTabIndex||this._element.setAttribute("tabindex","0"),this._element.addEventListener("keypress",this._onKeyPress)}return this}getPopup(){return this._popup}togglePopup(){const e=this._popup;return e?(e.isOpen()?e.remove():e.addTo(this._map),this):this}getOffset(){return this._offset}setOffset(t){return this._offset=e.P.convert(t),this._update(),this}addClassName(e){this._element.classList.add(e)}removeClassName(e){this._element.classList.remove(e)}toggleClassName(e){return this._element.classList.toggle(e)}setDraggable(e){return this._draggable=!!e,this._map&&(e?(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}isDraggable(){return this._draggable}setRotation(e){return this._rotation=e||0,this._update(),this}getRotation(){return this._rotation}setRotationAlignment(e){return this._rotationAlignment=e||"auto",this._update(),this}getRotationAlignment(){return this._rotationAlignment}setPitchAlignment(e){return this._pitchAlignment=e&&"auto"!==e?e:this._rotationAlignment,this._update(),this}getPitchAlignment(){return this._pitchAlignment}}const zn={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0};let Pn=0,Mn=!1;const Ln={maxWidth:100,unit:"metric"};function An(e,t,i){const a=i&&i.maxWidth||100,n=e._container.clientHeight/2,o=e.unproject([0,n]),r=e.unproject([a,n]),s=o.distanceTo(r);if(i&&"imperial"===i.unit){const i=3.2808*s;i>5280?In(t,a,i/5280,e._getUIString("ScaleControl.Miles")):In(t,a,i,e._getUIString("ScaleControl.Feet"))}else i&&"nautical"===i.unit?In(t,a,s/1852,e._getUIString("ScaleControl.NauticalMiles")):s>=1e3?In(t,a,s/1e3,e._getUIString("ScaleControl.Kilometers")):In(t,a,s,e._getUIString("ScaleControl.Meters"))}function In(e,t,i,a){const n=function(e){const t=Math.pow(10,`${Math.floor(e)}`.length-1);let i=e/t;return i=i>=10?10:i>=5?5:i>=3?3:i>=2?2:i>=1?1:function(e){const t=Math.pow(10,Math.ceil(-Math.log(e)/Math.LN10));return Math.round(e*t)/t}(i),t*i}(i);e.style.width=t*(n/i)+"px",e.innerHTML=`${n}&nbsp;${a}`}const En={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},Dn=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", ");function jn(t){if(t){if("number"==typeof t){const i=Math.round(Math.abs(t)/Math.SQRT2);return{center:new e.P(0,0),top:new e.P(0,t),"top-left":new e.P(i,i),"top-right":new e.P(-i,i),bottom:new e.P(0,-t),"bottom-left":new e.P(i,-i),"bottom-right":new e.P(-i,-i),left:new e.P(t,0),right:new e.P(-t,0)}}if(t instanceof e.P||Array.isArray(t)){const i=e.P.convert(t);return{center:i,top:i,"top-left":i,"top-right":i,bottom:i,"bottom-left":i,"bottom-right":i,left:i,right:i}}return{center:e.P.convert(t.center||[0,0]),top:e.P.convert(t.top||[0,0]),"top-left":e.P.convert(t["top-left"]||[0,0]),"top-right":e.P.convert(t["top-right"]||[0,0]),bottom:e.P.convert(t.bottom||[0,0]),"bottom-left":e.P.convert(t["bottom-left"]||[0,0]),"bottom-right":e.P.convert(t["bottom-right"]||[0,0]),left:e.P.convert(t.left||[0,0]),right:e.P.convert(t.right||[0,0])}}return jn(new e.P(0,0))}const $n={extend:(t,...i)=>e.e(t,...i),run(e){e()},logToElement(e,t=!1,i="log"){const a=window.document.getElementById(i);a&&(t&&(a.innerHTML=""),a.innerHTML+=`<br>${e}`)}},Rn=t;class Bn{static get version(){return Rn}static get workerCount(){return ee.workerCount}static set workerCount(e){ee.workerCount=e}static get maxParallelImageRequests(){return e.c.MAX_PARALLEL_IMAGE_REQUESTS}static set maxParallelImageRequests(t){e.c.MAX_PARALLEL_IMAGE_REQUESTS=t}static get workerUrl(){return e.c.WORKER_URL}static set workerUrl(t){e.c.WORKER_URL=t}static addProtocol(t,i){e.c.REGISTERED_PROTOCOLS[t]=i}static removeProtocol(t){delete e.c.REGISTERED_PROTOCOLS[t]}}return Bn.Map=class extends rn{constructor(t){if(e.bg.mark(e.bh.create),null!=(t=e.e({},yn,t)).minZoom&&null!=t.maxZoom&&t.minZoom>t.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(null!=t.minPitch&&null!=t.maxPitch&&t.minPitch>t.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(null!=t.minPitch&&t.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(null!=t.maxPitch&&t.maxPitch>85)throw new Error("maxPitch must be less than or equal to 85");if(super(new ra(t.minZoom,t.maxZoom,t.minPitch,t.maxPitch,t.renderWorldCopies),{bearingSnap:t.bearingSnap}),this._cooperativeGesturesOnWheel=e=>{this._onCooperativeGesture(e,e[this._metaKey],1)},this._contextLost=t=>{t.preventDefault(),this._frame&&(this._frame.cancel(),this._frame=null),this.fire(new e.k("webglcontextlost",{originalEvent:t}))},this._contextRestored=t=>{this._setupPainter(),this.resize(),this._update(),this.fire(new e.k("webglcontextrestored",{originalEvent:t}))},this._onMapScroll=e=>{if(e.target===this._container)return this._container.scrollTop=0,this._container.scrollLeft=0,!1},this._onWindowOnline=()=>{this._update()},this._interactive=t.interactive,this._cooperativeGestures=t.cooperativeGestures,this._metaKey=0===navigator.platform.indexOf("Mac")?"metaKey":"ctrlKey",this._maxTileC
vendor: 17,618 bytes, line 5
5acheSize=t.maxTileCacheSize,this._maxTileCacheZoomLevels=t.maxTileCacheZoomLevels,this._failIfMajorPerformanceCaveat=t.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=t.preserveDrawingBuffer,this._antialias=t.antialias,this._trackResize=t.trackResize,this._bearingSnap=t.bearingSnap,this._refreshExpiredTiles=t.refreshExpiredTiles,this._fadeDuration=t.fadeDuration,this._crossSourceCollisions=t.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=t.collectResourceTiming,this._renderTaskQueue=new dn,this._controls=[],this._mapId=e.a2(),this._locale=e.e({},un,t.locale),this._clickTolerance=t.clickTolerance,this._overridePixelRatio=t.pixelRatio,this._maxCanvasSize=t.maxCanvasSize,this.transformCameraUpdate=t.transformCameraUpdate,this._imageQueueHandle=d.addThrottleControl((()=>this.isMoving())),this._requestManager=new h(t.transformRequest),"string"==typeof t.container){if(this._container=document.getElementById(t.container),!this._container)throw new Error(`Container '${t.container}' not found.`)}else{if(!(t.container instanceof HTMLElement))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=t.container}if(t.maxBounds&&this.setMaxBounds(t.maxBounds),this._setupContainer(),this._setupPainter(),this.on("move",(()=>this._update(!1))),this.on("moveend",(()=>this._update(!1))),this.on("zoom",(()=>this._update(!0))),this.on("terrain",(()=>{this.painter.terrainFacilitator.dirty=!0,this._update(!0)})),this.once("idle",(()=>{this._idleTriggered=!0})),"undefined"!=typeof window){addEventListener("online",this._onWindowOnline,!1);let e=!1;const t=sa((e=>{this._trackResize&&!this._removed&&this.resize(e)._update()}),50);this._resizeObserver=new ResizeObserver((i=>{e?t(i):e=!0})),this._resizeObserver.observe(this._container)}this.handlers=new on(this,t),this._cooperativeGestures&&this._setupCooperativeGestures(),this._hash=t.hash&&new la("string"==typeof t.hash&&t.hash||void 0).addTo(this),this._hash&&this._hash._onHashChange()||(this.jumpTo({center:t.center,zoom:t.zoom,bearing:t.bearing,pitch:t.pitch}),t.bounds&&(this.resize(),this.fitBounds(t.bounds,e.e({},t.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=t.localIdeographFontFamily,this._validateStyle=t.validateStyle,t.style&&this.setStyle(t.style,{localIdeographFontFamily:t.localIdeographFontFamily}),t.attributionControl&&this.addControl(new sn({customAttribution:t.customAttribution})),t.maplibreLogo&&this.addControl(new ln,t.logoPosition),this.on("style.load",(()=>{this.transform.unmodified&&this.jumpTo(this.style.stylesheet)})),this.on("data",(t=>{this._update("style"===t.dataType),this.fire(new e.k(`${t.dataType}data`,t))})),this.on("dataloading",(t=>{this.fire(new e.k(`${t.dataType}dataloading`,t))})),this.on("dataabort",(t=>{this.fire(new e.k("sourcedataabort",t))}))}_getMapId(){return this._mapId}addControl(t,i){if(void 0===i&&(i=t.getDefaultPosition?t.getDefaultPosition():"top-right"),!t||!t.onAdd)return this.fire(new e.j(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));const a=t.onAdd(this);this._controls.push(t);const n=this._controlPositions[i];return-1!==i.indexOf("bottom")?n.insertBefore(a,n.firstChild):n.appendChild(a),this}removeControl(t){if(!t||!t.onRemove)return this.fire(new e.j(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));const i=this._controls.indexOf(t);return i>-1&&this._controls.splice(i,1),t.onRemove(this),this}hasControl(e){return this._controls.indexOf(e)>-1}calculateCameraOptionsFromTo(e,t,i,a){return null==a&&this.terrain&&(a=this.terrain.getElevationForLngLatZoom(i,this.transform.tileZoom)),super.calculateCameraOptionsFromTo(e,t,i,a)}resize(t){var i;const a=this._containerDimensions(),n=a[0],o=a[1],r=this._getClampedPixelRatio(n,o);if(this._resizeCanvas(n,o,r),this.painter.resize(n,o,r),this.painter.overLimit()){const e=this.painter.context.gl;this._maxCanvasSize=[e.drawingBufferWidth,e.drawingBufferHeight];const t=this._getClampedPixelRatio(n,o);this._resizeCanvas(n,o,t),this.painter.resize(n,o,t)}this.transform.resize(n,o),null===(i=this._requestedCameraState)||void 0===i||i.resize(n,o);const s=!this._moving;return s&&(this.stop(),this.fire(new e.k("movestart",t)).fire(new e.k("move",t))),this.fire(new e.k("resize",t)),s&&this.fire(new e.k("moveend",t)),this}_getClampedPixelRatio(e,t){const{0:i,1:a}=this._maxCanvasSize,n=this.getPixelRatio(),o=e*n,r=t*n;return Math.min(o>i?i/o:1,r>a?a/r:1)*n}getPixelRatio(){var e;return null!==(e=this._overridePixelRatio)&&void 0!==e?e:devicePixelRatio}setPixelRatio(e){this._overridePixelRatio=e,this.resize()}getBounds(){return this.transform.getBounds()}getMaxBounds(){return this.transform.getMaxBounds()}setMaxBounds(e){return this.transform.setMaxBounds(I.convert(e)),this._update()}setMinZoom(e){if((e=null==e?-2:e)>=-2&&e<=this.transform.maxZoom)return this.transform.minZoom=e,this._update(),this.getZoom()<e&&this.setZoom(e),this;throw new Error("minZoom must be between -2 and the current maxZoom, inclusive")}getMinZoom(){return this.transform.minZoom}setMaxZoom(e){if((e=null==e?22:e)>=this.transform.minZoom)return this.transform.maxZoom=e,this._update(),this.getZoom()>e&&this.setZoom(e),this;throw new Error("maxZoom must be greater than the current minZoom")}getMaxZoom(){return this.transform.maxZoom}setMinPitch(e){if((e=null==e?0:e)<0)throw new Error("minPitch must be greater than or equal to 0");if(e>=0&&e<=this.transform.maxPitch)return this.transform.minPitch=e,this._update(),this.getPitch()<e&&this.setPitch(e),this;throw new Error("minPitch must be between 0 and the current maxPitch, inclusive")}getMinPitch(){return this.transform.minPitch}setMaxPitch(e){if((e=null==e?60:e)>85)throw new Error("maxPitch must be less than or equal to 85");if(e>=this.transform.minPitch)return this.transform.maxPitch=e,this._update(),this.getPitch()>e&&this.setPitch(e),this;throw new Error("maxPitch must be greater than the current minPitch")}getMaxPitch(){return this.transform.maxPitch}getRenderWorldCopies(){return this.transform.renderWorldCopies}setRenderWorldCopies(e){return this.transform.renderWorldCopies=e,this._update()}getCooperativeGestures(){return this._cooperativeGestures}setCooperativeGestures(e){return this._cooperativeGestures=e,this._cooperativeGestures?this._setupCooperativeGestures():this._destroyCooperativeGestures(),this}project(t){return this.transform.locationPoint(e.L.convert(t),this.style&&this.terrain)}unproject(t){return this.transform.pointLocation(e.P.convert(t),this.terrain)}isMoving(){var e;return this._moving||(null===(e=this.handlers)||void 0===e?void 0:e.isMoving())}isZooming(){var e;return this._zooming||(null===(e=this.handlers)||void 0===e?void 0:e.isZooming())}isRotating(){var e;return this._rotating||(null===(e=this.handlers)||void 0===e?void 0:e.isRotating())}_createDelegatedListener(e,t,i){if("mouseenter"===e||"mouseover"===e){let a=!1;const n=n=>{const o=this.getLayer(t)?this.queryRenderedFeatures(n.point,{layers:[t]}):[];o.length?a||(a=!0,i.call(this,new ga(e,this,n.originalEvent,{features:o}))):a=!1};return{layer:t,listener:i,delegates:{mousemove:n,mouseout:()=>{a=!1}}}}if("mouseleave"===e||"mouseout"===e){let a=!1;const n=n=>{(this.getLayer(t)?this.queryRenderedFeatures(n.point,{layers:[t]}):[]).length?a=!0:a&&(a=!1,i.call(this,new ga(e,this,n.originalEvent)))},o=t=>{a&&(a=!1,i.call(this,new ga(e,this,t.originalEvent)))};return{layer:t,listener:i,delegates:{mousemove:n,mouseout:o}}}{const a=e=>{const a=this.getLayer(t)?this.queryRenderedFeatures(e.point,{layers:[t]}):[];a.length&&(e.features=a,i.call(this,e),delete e.features)};return{layer:t,listener:i,delegates:{[e]:a}}}}on(e,t,i){if(void 0===i)return super.on(e,t);const a=this._createDelegatedListener(e,t,i);this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[e]=this._delegatedListeners[e]||[],this._delegatedListeners[e].push(a);for(const e in a.delegates)this.on(e,a.delegates[e]);return this}once(e,t,i){if(void 0===i)return super.once(e,t);const a=this._createDelegatedListener(e,t,i);for(const e in a.delegates)this.once(e,a.delegates[e]);return this}off(e,t,i){return void 0===i?super.off(e,t):(this._delegatedListeners&&this._delegatedListeners[e]&&(a=>{const n=this._delegatedListeners[e];for(let e=0;e<n.length;e++){const a=n[e];if(a.layer===t&&a.listener===i){for(const e in a.delegates)this.off(e,a.delegates[e]);return n.splice(e,1),this}}})(),this)}queryRenderedFeatures(t,i){if(!this.style)return[];let a;const n=t instanceof e.P||Array.isArray(t),o=n?t:[[0,0],[this.transform.width,this.transform.height]];if(i=i||(n?{}:t)||{},o instanceof e.P||"number"==typeof o[0])a=[e.P.convert(o)];else{const t=e.P.convert(o[0]),i=e.P.convert(o[1]);a=[t,new e.P(i.x,t.y),i,new e.P(t.x,i.y),t]}return this.style.queryRenderedFeatures(a,i,this.transform)}querySourceFeatures(e,t){return this.style.querySourceFeatures(e,t)}setStyle(t,i){return!1!==(i=e.e({},{localIdeographFontFamily:this._localIdeographFontFamily,validate:this._validateStyle},i)).diff&&i.localIdeographFontFamily===this._localIdeographFontFamily&&this.style&&t?(this._diffStyle(t,i),this):(this._localIdeographFontFamily=i.localIdeographFontFamily,this._updateStyle(t,i))}setTransformRequest(e){return this._requestManager.setTransformRequest(e),this}_getUIString(e){const t=this._locale[e];if(null==t)throw new Error(`Missing UI string '${e}'`);return t}_updateStyle(e,t){if(t.transformStyle&&this.style&&!this.style._loaded)return void this.style.once("style.load",(()=>this._updateStyle(e,t)));const i=this.style&&t.transformStyle?this.style.serialize():void 0;return this.style&&(this.style.setEventedParent(null),this.style._remove(!e)),e?(this.style=new at(this,t||{}),this.style.setEventedParent(this,{style:this.style}),"string"==typeof e?this.style.loadURL(e,t,i):this.style.loadJSON(e,t,i),this):(delete this.style,this)}_lazyInitEmptyStyle(){this.style||(this.style=new at(this,{}),this.style.setEventedParent(this,{style:this.style}),this.style.loadEmpty())}_diffStyle(t,i){if("string"==typeof t){const a=this._requestManager.transformRequest(t,u.Style);e.f(a,((t,a)=>{t?this.fire(new e.j(t)):a&&this._updateDiff(a,i)}))}else"object"==typeof t&&this._updateDiff(t,i)}_updateDiff(t,i){try{this.style.setState(t,i)&&this._update(!0)}catch(a){e.w(`Unable to perform style diff: ${a.message||a.error||a}.  Rebuilding the style from scratch.`),this._updateStyle(t,i)}}getStyle(){if(this.style)return this.style.serialize()}isStyleLoaded(){return this.style?this.style.loaded():e.w("There is no style added to the map.")}addSource(e,t){return this._lazyInitEmptyStyle(),this.style.addSource(e,t),this._update(!0)}isSourceLoaded(t){const i=this.style&&this.style.sourceCaches[t];if(void 0!==i)return i.loaded();this.fire(new e.j(new Error(`There is no source with ID '${t}'`)))}setTerrain(t){if(this.style._checkLoaded(),this._terrainDataCallback&&this.style.off("data",this._terrainDataCallback),t){const i=this.style.sourceCaches[t.source];if(!i)throw new Error(`cannot load terrain, because there exists no source with ID: ${t.source}`);for(const i in this.style._layers){const a=this.style._layers[i];"hillshade"===a.type&&a.source===t.source&&e.w("You are using the same source for a hillshade layer and for 3D terrain. Please consider using two separate sources to improve rendering quality.")}this.terrain=new mn(this.painter,i,t),this.painter.renderToTexture=new _n(this.painter,this.terrain),this.transform._minEleveationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this.transform.elevation=this.terrain.getElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this._terrainDataCallback=e=>{"style"===e.dataType?this.terrain.sourceCache.freeRtt():"source"===e.dataType&&e.tile&&(e.sourceId!==t.source||this._elevationFreeze||(this.transform._minEleveationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this.transform.elevation=this.terrain.getElevationForLngLatZoom(this.transform.center,this.transform.tileZoom)),this.terrain.sourceCache.freeRtt(e.tile.tileID))},this.style.on("data",this._terrainDataCallback)}else this.terrain&&this.terrain.sourceCache.destruct(),this.terrain=null,this.painter.renderToTexture&&this.painter.renderToTexture.destruct(),this.painter.renderToTexture=null,this.transform._minEleveationForCurrentTile=0,this.transform.elevation=0;return this.fire(new e.k("terrain",{terrain:t})),this}getTerrain(){var e,t;return null!==(t=null===(e=this.terrain)||void 0===e?void 0:e.options)&&void 0!==t?t:null}areTilesLoaded(){const e=this.style&&this.style.sourceCaches;for(const t in e){const i=e[t]._tiles;for(const e in i){const t=i[e];if("loaded"!==t.state&&"errored"!==t.state)return!1}}return!0}addSourceType(e,t,i){return this._lazyInitEmptyStyle(),this.style.addSourceType(e,t,i)}removeSource(e){return this.style.removeSource(e),this._update(!0)}getSource(e){return this.style.getSource(e)}addImage(t,i,a={}){const{pixelRatio:n=1,sdf:o=!1,stretchX:r,stretchY:s,content:l}=a;if(this._lazyInitEmptyStyle(),!(i instanceof HTMLImageElement||e.a(i))){if(void 0===i.width||void 0===i.height)return this.fire(new e.j(new Error("Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));{const{width:a,height:d,data:u}=i,h=i;return this.style.addImage(t,{data:new e.R({width:a,height:d},new Uint8Array(u)),pixelRatio:n,stretchX:r,stretchY:s,content:l,sdf:o,version:0,userImage:h}),h.onAdd&&h.onAdd(this,t),this}}{const{width:a,height:d,data:u}=e.h.getImageData(i);this.style.addImage(t,{data:new e.R({width:a,height:d},u),pixelRatio:n,stretchX:r,stretchY:s,content:l,sdf:o,version:0})}}updateImage(t,i){const a=this.style.getImage(t);if(!a)return this.fire(new e.j(new Error("The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.")));const n=i instanceof HTMLImageElement||e.a(i)?e.h.getImageData(i):i,{width:o,height:r,data:s}=n;if(void 0===o||void 0===r)return this.fire(new e.j(new Error("Invalid arguments to map.updateImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));if(o!==a.data.width||r!==a.data.height)return this.fire(new e.j(new Error("The width and height of the updated image must be that same as the previous version of the image")));const l=!(i instanceof HTMLImageElement||e.a(i));return a.data.replace(s,l),this.style.updateImage(t,a),this}getImage(e){return this.style.getImage(e)}hasImage(t){return t?!!this.style.getImage(t):(this.fire(new e.j(new Error("Missing required image id"))),!1)}removeImage(e){this.style.removeImage(e)}loadImage(e,t){d.getImage(this._requestManager.transformRequest(e,u.Image),t)}listImages(){return this.style.listImages()}addLayer(e,t){return this._lazyInitEmptyStyle(),this.style.addLayer(e,t),this._update(!0)}moveLayer(e,t){return this.style.moveLayer(e,t),this._update(!0)}removeLayer(e){return this.style.removeLayer(e),this._update(!0)}getLayer(e){return this.style.getLayer(e)}getLayersOrder(){return this.style.getLayersOrder()}setLayerZoomRange(e,t,i){return this.style.setLayerZoomRange(e,t,i),this._update(!0)}setFilter(e,t,i={}){return this.style.setFilter(e,t,i),this._update(!0)}getFilter(e){return this.style.getFilter(e)}setPaintProperty(e,t,i,a={}){return this.style.setPaintProperty(e,t,i,a),this._update(!0)}getPaintProperty(e,t){return this.style.getPaintProperty(e,t)}setLayoutProperty(e,t,i,a={}){return this.style.setLayoutProperty(e,t,i,a),this._update(!0)}getLayoutProperty(e,t){return this.style.getLayoutProperty(e,t)}setGlyphs(e,t={}){return this._lazyInitEmptyStyle(),this.style.setGlyphs(e,t),this._update(!0)}getGlyphs(){return this.style.getGlyphsUrl()}addSprite(e,t,i={}){return this._lazyInitEmptyStyle(),this.style.addSprite(e,t,i,(e=>{e||this._update(!0)})),this}removeSprite(e){return this._lazyInitEmptyStyle(),this.style.removeSprite(e),this._update(!0)}getSprite(){return this.style.getSprite()}setSprite(e,t={}){return this._lazyInitEmptyStyle(),this.style.setSprite(e,t,(e=>{e||this._update(!0)})),this}setLight(e,t={}){return this._lazyInitEmptyStyle(),this.style.setLight(e,t),this._update(!0)}getLight(){return this.style.getLight()}setFeatureState(e,t){return this.style.setFeatureState(e,t),this._update()}removeFeatureState(e,t){return this.style.removeFeatureState(e,t),this._update()}getFeatureState(e){return this.style.getFeatureState(e)}getContainer(){return this._container}getCanvasContainer(){return this._canvasContainer}getCanvas(){return this._canvas}_containerDimensions(){let e=0,t=0;return this._container&&(e=this._container.clientWidth||400,t=this._container.clientHeight||300),[e,t]}_setupContainer(){const e=this._container;e.classList.add("maplibregl-map");const t=this._canvasContainer=i.create("div","maplibregl-canvas-container",e);this._interactive&&t.classList.add("maplibregl-interactive"),this._canvas=i.create("canvas","maplibregl-canvas",t),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"),this._canvas.setAttribute("role","regi
5on");const a=this._containerDimensions(),n=this._getClampedPixelRatio(a[0],a[1]);this._resizeCanvas(a[0],a[1],n);const o=this._controlContainer=i.create("div","maplibregl-control-container",e),r=this._controlPositions={};["top-left","top-right","bottom-left","bottom-right"].forEach((e=>{r[e]=i.create("div",`maplibregl-ctrl-${e} `,o)})),this._container.addEventListener("scroll",this._onMapScroll,!1)}_setupCooperativeGestures(){this._cooperativeGesturesScreen=i.create("div","maplibregl-cooperative-gesture-screen",this._container);let e="boolean"!=typeof this._cooperativeGestures&&this._cooperativeGestures.windowsHelpText?this._cooperativeGestures.windowsHelpText:"Use Ctrl + scroll to zoom the map";0===navigator.platform.indexOf("Mac")&&(e="boolean"!=typeof this._cooperativeGestures&&this._cooperativeGestures.macHelpText?this._cooperativeGestures.macHelpText:"Use ⌘ + scroll to zoom the map"),this._cooperativeGesturesScreen.innerHTML=`\n            <div class="maplibregl-desktop-message">${e}</div>\n            <div class="maplibregl-mobile-message">${"boolean"!=typeof this._cooperativeGestures&&this._cooperativeGestures.mobileHelpText?this._cooperativeGestures.mobileHelpText:"Use two fingers to move the map"}</div>\n        `,this._cooperativeGesturesScreen.setAttribute("aria-hidden","true"),this._canvasContainer.addEventListener("wheel",this._cooperativeGesturesOnWheel,!1),this._canvasContainer.classList.add("maplibregl-cooperative-gestures")}_destroyCooperativeGestures(){i.remove(this._cooperativeGesturesScreen),this._canvasContainer.removeEventListener("wheel",this._cooperativeGesturesOnWheel,!1),this._canvasContainer.classList.remove("maplibregl-cooperative-gestures")}_resizeCanvas(e,t,i){this._canvas.width=Math.floor(i*e),this._canvas.height=Math.floor(i*t),this._canvas.style.width=`${e}px`,this._canvas.style.height=`${t}px`}_setupPainter(){const e={alpha:!0,stencil:!0,depth:!0,failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer,antialias:this._antialias||!1};let t=null;this._canvas.addEventListener("webglcontextcreationerror",(i=>{t={requestedAttributes:e},i&&(t.statusMessage=i.statusMessage,t.type=i.type)}),{once:!0});const i=this._canvas.getContext("webgl2",e)||this._canvas.getContext("webgl",e);if(!i){const e="Failed to initialize WebGL";throw t?(t.message=e,new Error(JSON.stringify(t))):new Error(e)}this.painter=new ia(i,this.transform),a.testSupport(i)}_onCooperativeGesture(e,t,i){return!t&&i<2&&(this._cooperativeGesturesScreen.classList.add("maplibregl-show"),setTimeout((()=>{this._cooperativeGesturesScreen.classList.remove("maplibregl-show")}),100)),!1}loaded(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()}_update(e){return this.style&&this.style._loaded?(this._styleDirty=this._styleDirty||e,this._sourcesDirty=!0,this.triggerRepaint(),this):this}_requestRenderFrame(e){return this._update(),this._renderTaskQueue.add(e)}_cancelRenderFrame(e){this._renderTaskQueue.remove(e)}_render(t){const i=this._idleTriggered?this._fadeDuration:0;if(this.painter.context.setDirty(),this.painter.setBaseState(),this._renderTaskQueue.run(t),this._removed)return;let a=!1;if(this.style&&this._styleDirty){this._styleDirty=!1;const t=this.transform.zoom,n=e.h.now();this.style.zoomHistory.update(t,n);const o=new e.a8(t,{now:n,fadeDuration:i,zoomHistory:this.style.zoomHistory,transition:this.style.getTransition()}),r=o.crossFadingFactor();1===r&&r===this._crossFadingFactor||(a=!0,this._crossFadingFactor=r),this.style.update(o)}this.style&&this._sourcesDirty&&(this._sourcesDirty=!1,this.style._updateSources(this.transform)),this.terrain?(this.terrain.sourceCache.update(this.transform,this.terrain),this.transform._minEleveationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this._elevationFreeze||(this.transform.elevation=this.terrain.getElevationForLngLatZoom(this.transform.center,this.transform.tileZoom))):(this.transform._minEleveationForCurrentTile=0,this.transform.elevation=0),this._placementDirty=this.style&&this.style._updatePlacement(this.painter.transform,this.showCollisionBoxes,i,this._crossSourceCollisions),this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showOverdrawInspector:this._showOverdrawInspector,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:i,showPadding:this.showPadding}),this.fire(new e.k("render")),this.loaded()&&!this._loaded&&(this._loaded=!0,e.bg.mark(e.bh.load),this.fire(new e.k("load"))),this.style&&(this.style.hasTransitions()||a)&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles();const n=this._sourcesDirty||this._styleDirty||this._placementDirty;return n||this._repaint?this.triggerRepaint():!this.isMoving()&&this.loaded()&&this.fire(new e.k("idle")),!this._loaded||this._fullyLoaded||n||(this._fullyLoaded=!0,e.bg.mark(e.bh.fullLoad)),this}redraw(){return this.style&&(this._frame&&(this._frame.cancel(),this._frame=null),this._render(0)),this}remove(){var t;this._hash&&this._hash.remove();for(const e of this._controls)e.onRemove(this);this._controls=[],this._frame&&(this._frame.cancel(),this._frame=null),this._renderTaskQueue.clear(),this.painter.destroy(),this.handlers.destroy(),delete this.handlers,this.setStyle(null),"undefined"!=typeof window&&removeEventListener("online",this._onWindowOnline,!1),d.removeThrottleControl(this._imageQueueHandle),null===(t=this._resizeObserver)||void 0===t||t.disconnect();const a=this.painter.context.gl.getExtension("WEBGL_lose_context");a&&a.loseContext(),this._canvas.removeEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.removeEventListener("webglcontextlost",this._contextLost,!1),i.remove(this._canvasContainer),i.remove(this._controlContainer),this._cooperativeGestures&&this._destroyCooperativeGestures(),this._container.classList.remove("maplibregl-map"),e.bg.clearMetrics(),this._removed=!0,this.fire(new e.k("remove"))}triggerRepaint(){this.style&&!this._frame&&(this._frame=e.h.frame((t=>{e.bg.frame(t),this._frame=null,this._render(t)})))}get showTileBoundaries(){return!!this._showTileBoundaries}set showTileBoundaries(e){this._showTileBoundaries!==e&&(this._showTileBoundaries=e,this._update())}get showPadding(){return!!this._showPadding}set showPadding(e){this._showPadding!==e&&(this._showPadding=e,this._update())}get showCollisionBoxes(){return!!this._showCollisionBoxes}set showCollisionBoxes(e){this._showCollisionBoxes!==e&&(this._showCollisionBoxes=e,e?this.style._generateCollisionBoxes():this._update())}get showOverdrawInspector(){return!!this._showOverdrawInspector}set showOverdrawInspector(e){this._showOverdrawInspector!==e&&(this._showOverdrawInspector=e,this._update())}get repaint(){return!!this._repaint}set repaint(e){this._repaint!==e&&(this._repaint=e,this.triggerRepaint())}get vertices(){return!!this._vertices}set vertices(e){this._vertices=e,this._update()}get version(){return gn}getCameraTargetElevation(){return this.transform.elevation}}
vendor: 6,731 bytes, line 5
5,Bn.NavigationControl=class{constructor(t){this._updateZoomButtons=()=>{const e=this._map.getZoom(),t=e===this._map.getMaxZoom(),i=e===this._map.getMinZoom();this._zoomInButton.disabled=t,this._zoomOutButton.disabled=i,this._zoomInButton.setAttribute("aria-disabled",t.toString()),this._zoomOutButton.setAttribute("aria-disabled",i.toString())},this._rotateCompassArrow=()=>{const e=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._compassIcon.style.transform=e},this._setButtonTitle=(e,t)=>{const i=this._map._getUIString(`NavigationControl.${t}`);e.title=i,e.setAttribute("aria-label",i)},this.options=e.e({},wn,t),this._container=i.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._container.addEventListener("contextmenu",(e=>e.preventDefault())),this.options.showZoom&&(this._zoomInButton=this._createButton("maplibregl-ctrl-zoom-in",(e=>this._map.zoomIn({},{originalEvent:e}))),i.create("span","maplibregl-ctrl-icon",this._zoomInButton).setAttribute("aria-hidden","true"),this._zoomOutButton=this._createButton("maplibregl-ctrl-zoom-out",(e=>this._map.zoomOut({},{originalEvent:e}))),i.create("span","maplibregl-ctrl-icon",this._zoomOutButton).setAttribute("aria-hidden","true")),this.options.showCompass&&(this._compass=this._createButton("maplibregl-ctrl-compass",(e=>{this.options.visualizePitch?this._map.resetNorthPitch({},{originalEvent:e}):this._map.resetNorth({},{originalEvent:e})})),this._compassIcon=i.create("span","maplibregl-ctrl-icon",this._compass),this._compassIcon.setAttribute("aria-hidden","true"))}onAdd(e){return this._map=e,this.options.showZoom&&(this._setButtonTitle(this._zoomInButton,"ZoomIn"),this._setButtonTitle(this._zoomOutButton,"ZoomOut"),this._map.on("zoom",this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&&(this._setButtonTitle(this._compass,"ResetBearing"),this.options.visualizePitch&&this._map.on("pitch",this._rotateCompassArrow),this._map.on("rotate",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new xn(this._map,this._compass,this.options.visualizePitch)),this._container}onRemove(){i.remove(this._container),this.options.showZoom&&this._map.off("zoom",this._updateZoomButtons),this.options.showCompass&&(this.options.visualizePitch&&this._map.off("pitch",this._rotateCompassArrow),this._map.off("rotate",this._rotateCompassArrow),this._handler.off(),delete this._handler),delete this._map}_createButton(e,t){const a=i.create("button",e,this._container);return a.type="button",a.addEventListener("click",t),a}},Bn.GeolocateControl=class extends e.E{constructor(t){super(),this._onSuccess=t=>{if(this._map){if(this._isOutOfMapMaxBounds(t))return this._setErrorState(),this.fire(new e.k("outofmaxbounds",t)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=t,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background");break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}this.options.showUserLocation&&"OFF"!==this._watchState&&this._updateMarker(t),this.options.trackUserLocation&&"ACTIVE_LOCK"!==this._watchState||this._updateCamera(t),this.options.showUserLocation&&this._dotElement.classList.remove("maplibregl-user-location-dot-stale"),this.fire(new e.k("geolocate",t)),this._finish()}},this._updateCamera=t=>{const i=new e.L(t.coords.longitude,t.coords.latitude),a=t.coords.accuracy,n=this._map.getBearing(),o=e.e({bearing:n},this.options.fitBoundsOptions),r=I.fromLngLat(i,a);this._map.fitBounds(r,o,{geolocateSource:!0})},this._updateMarker=t=>{if(t){const i=new e.L(t.coords.longitude,t.coords.latitude);this._accuracyCircleMarker.setLngLat(i).addTo(this._map),this._userLocationDotMarker.setLngLat(i).addTo(this._map),this._accuracy=t.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},this._onZoom=()=>{this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},this._onError=t=>{if(this._map){if(this.options.trackUserLocation)if(1===t.code){this._watchState="OFF",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;const e=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=e,this._geolocateButton.setAttribute("aria-label",e),void 0!==this._geolocationWatchID&&this._clearWatch()}else{if(3===t.code&&Mn)return;this._setErrorState()}"OFF"!==this._watchState&&this.options.showUserLocation&&this._dotElement.classList.add("maplibregl-user-location-dot-stale"),this.fire(new e.k("error",t)),this._finish()}},this._finish=()=>{this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},this._setupUI=t=>{if(this._map){if(this._container.addEventListener("contextmenu",(e=>e.preventDefault())),this._geolocateButton=i.create("button","maplibregl-ctrl-geolocate",this._container),i.create("span","maplibregl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden","true"),this._geolocateButton.type="button",!1===t){e.w("Geolocation support is not available so the GeolocateControl will be disabled.");const t=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=t,this._geolocateButton.setAttribute("aria-label",t)}else{const e=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.title=e,this._geolocateButton.setAttribute("aria-label",e)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","fal
5se"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=i.create("div","maplibregl-user-location-dot"),this._userLocationDotMarker=new Cn({element:this._dotElement}),this._circleElement=i.create("div","maplibregl-user-location-accuracy-circle"),this._accuracyCircleMarker=new Cn({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",(t=>{t.geolocateSource||"ACTIVE_LOCK"!==this._watchState||t.originalEvent&&"resize"===t.originalEvent.type||(this._watchState="BACKGROUND",this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this.fire(new e.k("trackuserlocationend")))}))}},this.options=e.e({},zn,t)}onAdd(e){return this._map=e,this._container=i.create("div","maplibregl-ctrl maplibregl-ctrl-group"),function(e,t=!1){void 0===bn||t?void 0!==window.navigator.permissions?window.navigator.permissions.query({name:"geolocation"}).then((t=>{bn="denied"!==t.state,e(bn)})).catch((()=>{bn=!!window.navigator.geolocation,e(bn)})):(bn=!!window.navigator.geolocation,e(bn)):e(bn)}(this._setupUI),this._container}onRemove(){void 0!==this._geolocationWatchID&&(window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),i.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,Pn=0,Mn=!1}_isOutOfMapMaxBounds(e){const t=this._map.getMaxBounds(),i=e.coords;return t&&(i.longitude<t.getWest()||i.longitude>t.getEast()||i.latitude<t.getSouth()||i.latitude>t.getNorth())}_setErrorState(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting");break;case"ACTIVE_ERROR":break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}}_updateCircleRadius(){const e=this._map.getBounds(),t=e.getSouthEast(),i=e.getNorthEast(),a=t.distanceTo(i),n=Math.ceil(this._accuracy/(a/this._map._container.clientHeight)*2);this._circleElement.style.width=`${n}px`,this._circleElement.style.height=`${n}px`}trigger(){if(!this._setup)return e.w("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 e.k("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":Pn--,Mn=!1,this._watchState="OFF",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this.fire(new e.k("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new e.k("trackuserlocationstart"));break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"OFF":break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}if("OFF"===this._watchState&&void 0!==this._geolocationWatchID)this._clearWatch();else if(void 0===this._geolocationWatchID){let e;this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),Pn++,Pn>1?(e={maximumAge:6e5,timeout:0},Mn=!0):(e=this.options.positionOptions,Mn=!1),this._geolocationWatchID=window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,e)}}else window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0}_clearWatch(){window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","fal
5se"),this.options.showUserLocation&&this._updateMarker(null)}},Bn.AttributionControl=sn,Bn.LogoControl=ln,Bn.ScaleControl=class{constructor(t){this._onMove=()=>{An(this._map,this._container,this.options)},this.setUnit=e=>{this.options.unit=e,An(this._map,this._container,this.options)},this.options=e.e({},Ln,t)}getDefaultPosition(){return"bottom-left"}onAdd(e){return this._map=e,this._container=i.create("div","maplibregl-ctrl maplibregl-ctrl-scale",e.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container}onRemove(){i.remove(this._container),this._map.off("move",this._onMove),this._map=void 0}},Bn.FullscreenControl=class extends e.E{constructor(t={}){super(),this._onFullscreenChange=()=>{(window.document.fullscreenElement||window.document.mozFullScreenElement||window.document.webkitFullscreenElement||window.document.msFullscreenElement)===this._container!==this._fullscreen&&this._handleFullscreenChange()},this._onClickFullscreen=()=>{this._isFullscreen()?this._exitFullscreen():this._requestFullscreen()},this._fullscreen=!1,t&&t.container&&(t.container instanceof HTMLElement?this._container=t.container:e.w("Full screen control 'container' must be a DOM element.")),"onfullscreenchange"in document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in document&&(this._fullscreenchange="MSFullscreenChange")}onAdd(e){return this._map=e,this._container||(this._container=this._map.getContainer()),this._controlContainer=i.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._setupUI(),this._controlContainer}onRemove(){i.remove(this._controlContainer),this._map=null,window.document.removeEventListener(this._fullscreenchange,this._onFullscreenChange)}_setupUI(){const e=this._fullscreenButton=i.create("button","maplibregl-ctrl-fullscreen",this._controlContainer);i.create("span","maplibregl-ctrl-icon",e).setAttribute("aria-hidden","true"),e.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),window.document.addEventListener(this._fullscreenchange,this._onFullscreenChange)}_updateTitle(){const e=this._getTitle();this._fullscreenButton.setAttribute("aria-label",e),this._fullscreenButton.title=e}_getTitle(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")}_isFullscreen(){return this._fullscreen}_handleFullscreenChange(){this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("maplibregl-ctrl-shrink"),this._fullscreenButton.classList.toggle("maplibregl-ctrl-fullscreen"),this._updateTitle(),this._fullscreen?(this.fire(new e.k("fullscreenstart")),this._map._cooperativeGestures&&(this._prevCooperativeGestures=this._map._cooperativeGestures,this._map.setCooperativeGestures())):(this.fire(new e.k("fullscreenend")),this._prevCooperativeGestures&&(this._map.setCooperativeGestures(this._prevCooperativeGestures),delete this._prevCooperativeGestures))}_exitFullscreen(){window.document.exitFullscreen?window.document.exitFullscreen():window.document.mozCancelFullScreen?window.document.mozCancelFullScreen():window.document.msExitFullscreen?window.document.msExitFullscreen():window.document.webkitCancelFullScreen?window.document.webkitCancelFullScreen():this._togglePseudoFullScreen()}_requestFullscreen(){this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen?this._container.webkitRequestFullscreen():this._togglePseudoFullScreen()}_togglePseudoFullScreen(){this._container.classList.toggle("maplibregl-pseudo-fullscreen"),this._handleFullscreenChange(),this._map.resize()}},Bn.TerrainControl=class{constructor(e){this._toggleTerrain=()=>{this._map.getTerrain()?this._map.setTerrain(null):this._map.setTerrain(this.options),this._updateTerrainIcon()},this._updateTerrainIcon=()=>{this._terrainButton.classList.remove("maplibregl-ctrl-terrain"),this._terrainButton.classList.remove("maplibregl-ctrl-terrain-enabled"),this._map.terrain?(this._terrainButton.classList.add("maplibregl-ctrl-terrain-enabled"),this._terrainButton.title=this._map._getUIString("TerrainControl.disableTerrain")):(this._terrainButton.classList.add("maplibregl-ctrl-terrain"),this._terrainButton.title=this._map._getUIString("TerrainControl.enableTerrain"))},this.options=e}onAdd(e){return this._map=e,this._container=i.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._terrainButton=i.create("button","maplibregl-ctrl-terrain",this._container),i.create("span","maplibregl-ctrl-icon",this._terrainButton).setAttribute("aria-hidden","true"),this._terrainButton.t
vendor: 5,267 bytes, line 5
5ype="button",this._terrainButton.addEventListener("click",this._toggleTerrain),this._updateTerrainIcon(),this._map.on("terrain",this._updateTerrainIcon),this._container}onRemove(){i.remove(this._container),this._map.off("terrain",this._updateTerrainIcon),this._map=void 0}},Bn.Popup=class extends e.E{constructor(t){super(),this.remove=()=>(this._content&&i.remove(this._content),this._container&&(i.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),delete this._map),this.fire(new e.k("close")),this),this._onMouseUp=e=>{this._update(e.point)},this._onMouseMove=e=>{this._update(e.point)},this._onDrag=e=>{this._update(e.point)},this._update=e=>{if(!this._map||!this._lngLat&&!this._trackPointer||!this._content)return;if(!this._container){if(this._container=i.create("div","maplibregl-popup",this._map.getContainer()),this._tip=i.create("div","maplibregl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className)for(const e of this.options.className.split(" "))this._container.classList.add(e);this._trackPointer&&this._container.classList.add("maplibregl-popup-track-pointer")}if(this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=kn(this._lngLat,this._pos,this._map.transform)),this._trackPointer&&!e)return;const t=this._pos=this._trackPointer&&e?e:this._map.project(this._lngLat);let a=this.options.anchor;const n=jn(this.options.offset);if(!a){const e=this._container.offsetWidth,i=this._container.offsetHeight;let o;o=t.y+n.bottom.y<i?["top"]:t.y>this._map.transform.height-i?["bottom"]:[],t.x<e/2?o.push("left"):t.x>this._map.transform.width-e/2&&o.push("right"),a=0===o.length?"bottom":o.join("-")}const o=t.add(n[a]).round();i.setTransform(this._container,`${Sn[a]} translate(${o.x}px,${o.y}px)`),Tn(this._container,a,"popup")},this._onClose=()=>{this.remove()},this.options=e.e(Object.create(En),t)}addTo(t){return this._map&&this.remove(),this._map=t,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.add("maplibregl-track-pointer")):this._map.on("move",this._update),this.fire(new e.k("open")),this}isOpen(){return!!this._map}getLngLat(){return this._lngLat}setLngLat(t){return this._lngLat=e.L.convert(t),this._pos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.remove("maplibregl-track-pointer")),this}trackPointer(){return this._trackPointer=!0,this._pos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.add("maplibregl-track-pointer")),this}getElement(){return this._container}setText(e){return this.setDOMContent(document.createTextNode(e))}setHTML(e){const t=document.createDocumentFragment(),i=document.createElement("body");let a;for(i.innerHTML=e;a=i.firstChild,a;)t.appendChild(a);return this.setDOMContent(t)}getMaxWidth(){var e;return null===(e=this._container)||void 0===e?void 0:e.style.maxWidth}setMaxWidth(e){return this.options.maxWidth=e,this._update(),this}setDOMContent(e){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=i.create("div","maplibregl-popup-content",this._container);return this._content.appendChild(e),this._createCloseButton(),this._update(),this._focusFirstElement(),this}addClassName(e){this._container&&this._container.classList.add(e)}removeClassName(e){this._container&&this._container.classList.remove(e)}setOffset(e){return this.options.offset=e,this._update(),this}toggleClassName(e){if(this._container)return this._container.classList.toggle(e)}_createCloseButton(){this.options.closeButton&&(this._closeButton=i.create("button","maplibregl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.setAttribute("aria-label","Close popup"),this._closeButton.innerHTML="&#215;",this._closeButton.addEventListener("click",this._onClose))}_focusFirstElement(){if(!this.options.focusAfterOpen||!this._container)return;const e=this._container.querySelector(Dn);e&&e.focus()}},Bn.Marker=Cn,Bn.Style=at,Bn.LngLat=e.L,Bn.LngLatBounds=I,Bn.Point=e.P,Bn.MercatorCoordinate=e.U,Bn.Evented=e.E,Bn.AJAXError=e.bi,Bn.config=e.c,Bn.C
5anvasSource=N,Bn.GeoJSONSource=R,Bn.ImageSource=F,Bn.RasterDEMTileSource=$,Bn.RasterTileSource=j,Bn.VectorTileSource=D,Bn.VideoSource=O,Bn.setRTLTextPlugin=e.bj,Bn.getRTLTextPluginStatus=e.bk,Bn.prewarm=function(){ae().acquire(Q)},Bn.clearPrewarmedResources=function(){const e=ie;e&&(e.isPreloaded()&&1===e.numActive()?(e.release(Q),ie=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"))},$n.extend(Bn,{isSafari:e.ac,getPerformanceMetrics:e.bg.getPerformanceMetrics}),Bn})),i})),function(e,t){"function"==typeof define&&define.amd?define(["leaflet","maplibre-gl"],t):"object"==typeof exports?module.exports=t(require("leaflet"),require("maplibre-gl")):e.returnExports=t(e.L,e.maplibregl)}("undefined"!=typeof globalThis?globalThis:this||self,(function(e,t){e.MaplibreGL=e.Layer.extend({options:{updateInterval:32,padding:.1,interactive:!1,pane:"tilePane"},initialize:function(t){e.setOptions(this,t),this._throttledUpdate=e.Util.throttle(this._update,this.options.updateInterval,this)},onAdd:function(t){this._container||this._initContainer();var i=this.getPaneName();t.getPane(i).appendChild(this._container),this._initGL(),this._offset=this._map.containerPointToLayerPoint([0,0]),t.options.zoomAnimation&&e.DomEvent.on(t._proxy,e.DomUtil.TRANSITION_END,this._transitionEnd,this)},onRemove:function(t){this._map._proxy&&this._map.options.zoomAnimation&&e.DomEvent.off(this._map._proxy,e.DomUtil.TRANSITION_END,this._transitionEnd,this);var i=this.getPaneName();t.getPane(i).removeChild(this._container),this._glMap.remove(),this._glMap=null},getEvents:function(){return{move:this._throttledUpdate,zoomanim:this._animateZoom,zoom:this._pinchZoom,zoomstart:this._zoomStart,zoomend:this._zoomEnd,resize:this._resize}},getMaplibreMap:function(){return this._glMap},getCanvas:function(){return this._glMap.getCanvas()},getSize:function(){return this._map.getSize().multiplyBy(1+2*this.options.padding)},getBounds:function(){var t=this.getSize().multiplyBy(.5),i=this._map.latLngToContainerPoint(this._map.getCenter());return e.latLngBounds(this._map.containerPointToLatLng(i.subtract(t)),this._map.containerPointToLatLng(i.add(t)))},getContainer:function(){return this._container},getPaneName:function(){return this._map.getPane(this.options.pane)?this.options.pane:"tilePane"},_roundPoint:function(e){return{x:Math.round(e.x),y:Math.round(e.y)}},_initContainer:function(){var t=this._container=e.DomUtil.create("div","leaflet-gl-layer"),i=this.getSize(),a=this._map.getSize().multiplyBy(this.options.padding);t.style.width=i.x+"px",t.style.height=i.y+"px";var n=this._map.containerPointToLayerPoint([0,0]).subtract(a);e.DomUtil.setPosition(t,this._roundPoint(n))},_initGL:function(){var i=this._map.getCenter(),a=e.extend({},this.options,{container:this._container,center:[i.lng,i.lat],zoom:this._map.getZoom()-1,attributionControl:!1});this._glMap=new t.Map(a),this._glMap.transform.latRange=null,this._glMap.transform.maxValidLatitude=1/0,this._transformGL(this._glMap),this._glMap._canvas.canvas?this._glMap._actualCanvas=this._glMap._canvas.canvas:this._glMap._actualCanvas=this._glMap._canvas;var n=this._glMap._actualCanvas;e.DomUtil.addClass(n,"leaflet-image-layer"),e.DomUtil.addClass(n,"leaflet-zoom-animated"),this.options.interactive&&e.DomUtil.addClass(n,"leaflet-interactive"),this.options.className&&e.DomUtil.addClass(n,this.options.className)},_update:function(t){if(this._offset=this._map.containerPointToLayerPoint([0,0]),!this._zooming){var i=this.getSize(),a=this._container,n=this._glMap,o=this._map.getSize().multiplyBy(this.options.padding),r=this._map.containerPointToLayerPoint([0,0]).subtract(o);e.DomUtil.setPosition(a,this._roundPoint(r)),this._transformGL(n),n.transform.width!==i.x||n.transform.height!==i.y?(a.style.width=i.x+"px",a.style.height=i.y+"px",null!==n._resize&&void 0!==n._resize?n._resize():n.resize()):null!==n._update&&void 0!==n._update?n._update():n.update()}},_transformGL:function(e){var i=this._map.getCenter(),a=e.transform;a.center=t.LngLat.convert([i.lng,i.lat]),a.zoom=this._map.getZoom()-1},_pinchZoom:function(e){this._glMap.jumpTo({zoom:this._map.getZoom()-1,center:this._map.getCenter()})},_animateZoom:function(t){var i=this._map.getZoomScale(t.zoom),a=this._map.getSize().multiplyBy(this.options.padding*i),n=this.getSize()._divideBy(2),o=this._map.project(t.center,t.zoom)._subtract(n)._add(this._map._getMapPanePos().add(a))._round(),r=this._map.project(this._map.getBounds().getNorthWest(),t.zoom)._subtract(o);e.DomUtil.setTransform(this._glMap._actualCanvas,r.subtract(this._offset),i)},_zoomStart:function(e){this._zooming=!0},_zoomEnd:function(){var t=this._map.getZoomScale(this._map.getZoom());e.DomUtil.setTransform(this._glMap._actualCanvas,null,t),this._zooming=!1,this._update()}
5,_transitionEnd:function(t){e.Util.requestAnimFrame((function(){var t=this._map.getZoom(),i=this._map.getCenter(),a=this._map.latLngToContainerPoint(this._map.getBounds().getNorthWest());e.DomUtil.setTransform(this._glMap._actualCanvas,a,1),this._glMap.once("moveend",e.Util.bind((function(){this._zoomEnd()}),this)),this._glMap.jumpTo({center:i,zoom:t-1})}),this)},_resize:function(e){this._transitionEnd(e)}}),e.maplibreGL=function(t){return new e.MaplibreGL(t)}})),function(e,t){"function"==typeof define&&define.amd?define(["leaflet"],t):"object"==typeof modules&&module.exports?module.exports=t(require("leaflet")):t(L)}(0,(function(e){"use strict";return e.TileLayer.Provider=e.TileLayer.extend({initialize:function(t,i){var a=e.TileLayer.Provider.providers,n=t.split("."),o=n[0],r=n[1];if(!a[o])throw"No such provider ("+o+")";var s={url:a[o].url,options:a[o].options};if(r&&"variants"in a[o]){if(!(r in a[o].variants))throw"No such variant of "+o+" ("+r+")";var l,d=a[o].variants[r];l="string"==typeof d?{variant:d}:d.options,s={url:d.url||s.url,options:e.Util.extend({},s.options,l)}}var u=function(e){return-1===e.indexOf("{attribution.")?e:e.replace(/\{attribution.(\w*)\}/g,(function(e,t){return u(a[t].options.attribution)}))};s.options.attribution=u(s.options.attribution);var h=e.Util.extend({},s.options,i);e.TileLayer.prototype.initialize.call(this,s.url,h)}}),e.TileLayer.Provider.providers={OpenStreetMap:{url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",options:{maxZoom:19,attribution:'&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'},variants:{Mapnik:{},DE:{url:"https://{s}.tile.openstreetmap.de/tiles/osmde/{z}/{x}/{y}.png",options:{maxZoom:18}},CH:{url:"https://tile.osm.ch/switzerland/{z}/{x}/{y}.png",options:{maxZoom:18,bounds:[[45,5],[48,11]]}},France:{url:"https://{s}.tile.openstreetmap.fr/osmfr/{z}/{x}/{y}.png",options:{maxZoom:20,attribution:"&copy; Openstreetmap France | {attribution.OpenStreetMap}"}},HOT:{url:"https://{s}.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png",options:{attribution:'{attribution.OpenStreetMap}, Tiles style by <a href="https://www.hotosm.org/" target="_blank">Humanitarian OpenStreetMap Team</a> hosted by <a href="https://openstreetmap.fr/" target="_blank">OpenStreetMap France</a>'}},BZH:{url:"https://tile.openstreetmap.bzh/br/{z}/{x}/{y}.png",options:{attribution:'{attribution.OpenStreetMap}, Tiles courtesy of <a href="http://www.openstreetmap.bzh/" target="_blank">Breton OpenStreetMap Team</a>',bounds:[[46.2,-5.5],[50,.7]]}}}},OpenSeaMap:{url:"https://tiles.openseamap.org/seamark/{z}/{x}/{y}.png",options:{attribution:'Map data: &copy; <a href="http://www.openseamap.org">OpenSeaMap</a> contributors'}},OpenPtMap:{url:"http://openptmap.org/tiles/{z}/{x}/{y}.png",options:{maxZoom:17,attribution:'Map data: &copy; <a href="http://www.openptmap.org">OpenPtMap</a> contributors'}},OpenTopoMap:{url:"https://{s}.tile.opentopomap.org/{z}/{x}/{y}.png",options:{maxZoom:17,attribution:'Map data: {attribution.OpenStreetMap}, <a href="http://viewfinderpanoramas.org">SRTM</a> | Map style: &copy; <a href="https://opentopomap.org">OpenTopoMap</a> (<a href="https://creativecommons.org/licenses/by-sa/3.0/">CC-BY-SA</a>)'}},OpenRailwayMap:{url:"https://{s}.tiles.openrailwaymap.org/standard/{z}/{x}/{y}.png",options:{maxZoom:19,attribution:'Map data: {attribution.OpenStreetMap} | Map style: &copy; <a href="https://www.OpenRailwayMap.org">OpenRailwayMap</a> (<a href="https://creativecommons.org/licenses/by-sa/3.0/">CC-BY-SA</a>)'}},OpenFireMap:{url:"http://openfiremap.org/hytiles/{z}/{x}/{y}.png",options:{maxZoom:19,attribution:'Map data: {attribution.OpenStreetMap} | Map style: &copy; <a href="http://www.openfiremap.org">OpenFireMap</a> (<a href="https://creativecommons.org/licenses/by-sa/3.0/">CC-BY-SA</a>)'}},SafeCast:{url:"https://s3.amazonaws.com/te512.safecast.org/{z}/{x}/{y}.png",options:{maxZoom:16,attribution:'Map data: {attribution.OpenStreetMap} | Map style: &copy; <a href="https://blog.safecast.org/about/">SafeCast</a> (<a href="https://creativecommons.org/licenses/by-sa/3.0/">CC-BY-SA</a>)'}},Thunderforest:{url:"https://{s}.tile.thunderforest.com/{variant}/{z}/{x}/{y}.png?apikey={apikey}",options:{attribution:'&copy; <a href="http://www.thunderforest.com/">Thunderforest</a>, {attribution.OpenStreetMap}',variant:"cycle",apikey:"<insert your api key here>",maxZoom:22},variants:{OpenCycleMap:"cycle",Transport:{options:{variant:"transport"}},TransportDark:{options:{variant:"transport-dark"}},SpinalMap:{options:{variant:"spinal-map"}},Landscape:"landscape",Outdoors:"outdoors",Pioneer:"pioneer",MobileAtlas:"mobile-atlas",Neighbourhood:"neighbourhood"}},CyclOSM:{url:"https://dev.{s}.tile.openstreetmap.fr/cyclosm/{z}/{x}/{y}.png",options:{maxZoom:20,attribution:'<a href="https://github.com/cyclosm/cyclosm-cartocss-style/releases" title="CyclOSM - Open Bicycle render">CyclOSM</a> | Map data: {attribution.OpenStreetMap}'}},OpenMapSurfer:{url:"https://maps.heigit.org/openmapsurfer/tiles/{variant}/webmercator/{z}/{x}/{y}.png",options:{maxZoom:19,variant:"roads",attribution:'Imagery from <a href="http://giscience.uni-hd.de/">GIScience Research Group @ University of Heidelberg</a> | Map data '},variants:{Roads:{options:{variant:"roads",attribution:"{attribution.OpenMapSurfer}{attribution.OpenStreetMap}"}},Hybrid:{options:{variant:"hybrid",attribution:"{attribution.OpenMapSurfer}{attribution.OpenStreetMap}"}},AdminBounds:{options:{variant:"adminb",maxZoom:18,attribution:"{attribution.OpenMapSurfer}{attribution.OpenStreetMap}"}},ContourLines:{options:{variant:"asterc",maxZoom:18,minZoom:13,attribution:'{attribution.OpenMapSurfer} <a href="https://lpdaac.usgs.gov/products/aster_policies">ASTER GDEM</a>'}},Hillshade:{options:{variant:"asterh",maxZoom:18,attribution:'{attribution.OpenMapSurfer} <a href="https://lpdaac.usgs.gov/products/aster_policies">ASTER GDEM</a>, <a href="http://srtm.csi.cgiar.org/">SRTM</a>'}},ElementsAtRisk:{options:{variant:"elements_at_risk",attribution:"{attribution.OpenMapSurfer}{attribution.OpenStreetMap}"}}}},Hydda:{url:"https://{s}.tile.openstreetmap.se/hydda/{variant}/{z}/{x}/{y}.png",options:{maxZoom:18,variant:"full",attribution:'Tiles courtesy of <a href="http://openstreetmap.se/" target="_blank">
5OpenStreetMap Sweden</a> &mdash; Map data {attribution.OpenStreetMap}'},variants:{Full:"full",Base:"base",RoadsAndLabels:"roads_and_labels"}},MapBox:{url:"https://api.mapbox.com/styles/v1/mapbox/streets-v11/tiles/{z}/{x}/{y}?access_token={accessToken}",options:{attribution:'<a href="https://www.mapbox.com/about/maps/" target="_blank">&copy; Mapbox</a> {attribution.OpenStreetMap} <a href="https://www.mapbox.com/map-feedback/" target="_blank">Improve this map</a>',subdomains:"abcd",id:"mapbox.streets",accessToken:"<insert your access token here>",maxZoom:25,tileSize:512,zoomOffset:-1}},Stamen:{url:"https://tiles.stadiamaps.com/tiles/stamen_toner/{z}/{x}/{y}{r}.{ext}",options:{attribution:'Map tiles by <a href="http://stamen.com">Stamen Design</a>, <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a> &mdash; Map data {attribution.OpenStreetMap}',subdomains:"abcd",minZoom:0,maxZoom:20,variant:"toner",ext:"png"},variants:{Toner:"toner",TonerBackground:"toner-background",TonerHybrid:"toner-hybrid",TonerLines:"toner-lines",TonerLabels:"toner-labels",TonerLite:"toner-lite",Watercolor:{url:"https://stamen-tiles-{s}.a.ssl.fastly.net/{variant}/{z}/{x}/{y}.{ext}",options:{variant:"watercolor",ext:"jpg",minZoom:1,maxZoom:16}},Terrain:{options:{variant:"terrain",minZoom:0,maxZoom:18}},TerrainBackground:{options:{variant:"terrain-background",minZoom:0,maxZoom:18}},TerrainLabels:{options:{variant:"terrain-labels",minZoom:0,maxZoom:18}},TopOSMRelief:{url:"https://stamen-tiles-{s}.a.ssl.fastly.net/{variant}/{z}/{x}/{y}.{ext}",options:{variant:"toposm-color-relief",ext:"jpg",bounds:[[22,-132],[51,-56]]}},TopOSMFeatures:{options:{variant:"toposm-features",bounds:[[22,-132],[51,-56]],opacity:.9}}}},TomTom:{url:"https://{s}.api.tomtom.com/map/1/tile/{variant}/{style}/{z}/{x}/{y}.{ext}?key={apikey}",options:{variant:"basic",maxZoom:22,attribution:'<a href="https://tomtom.com" target="_blank">&copy;  1992 - '+(new Date).getFullYear()+" TomTom.</a> ",subdomains:"abcd",style:"main",ext:"png",apikey:"<insert your API key here>"},variants:{Basic:"basic",Hybrid:"hybrid",Labels:"labels"}},Esri:{url:"https://server.arcgisonline.com/ArcGIS/rest/services/{variant}/MapServer/tile/{z}/{y}/{x}",options:{variant:"World_Street_Map",attribution:"Tiles &copy; Esri"},variants:{WorldStreetMap:{options:{attribution:"{attribution.Esri} &mdash; Source: Esri, DeLorme, NAVTEQ, USGS, Intermap, iPC, NRCAN, Esri Japan, METI, Esri China (Hong Kong), Esri (Thailand), TomTom, 2012"}},DeLorme:{options:{variant:"Specialty/DeLorme_World_Base_Map",minZoom:1,maxZoom:11,attribution:"{attribution.Esri} &mdash; Copyright: &copy;2012 DeLorme"}},WorldTopoMap:{options:{variant:"World_Topo_Map",attribution:"{attribution.Esri} &mdash; Esri, DeLorme, NAVTEQ, TomTom, Intermap, iPC, USGS, FAO, NPS, NRCAN, GeoBase, Kadaster NL, Ordnance Survey, Esri Japan, METI, Esri China (Hong Kong), and the GIS User Community"}},WorldImagery:{options:{variant:"World_Imagery",attribution:"{attribution.Esri} &mdash; Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community"}},WorldTerrain:{options:{variant:"World_Terrain_Base",maxZoom:13,attribution:"{attribution.Esri} &mdash; Source: USGS, Esri, TANA, DeLorme, and NPS"}},WorldShadedRelief:{options:{variant:"World_Shaded_Relief",maxZoom:13,attribution:"{attribution.Esri} &mdash; Source: Esri"}},WorldPhysical:{options:{variant:"World_Physical_Map",maxZoom:8,attribution:"{attribution.Esri} &mdash; Source: US National Park Service"}},OceanBasemap:{options:{variant:"Ocean_Basemap",maxZoom:13,attribution:"{attribution.Esri} &mdash; Sources: GEBCO, NOAA, CHS, OSU, UNH, CSUMB, National Geographic, DeLorme, NAVTEQ, and Esri"}},NatGeoWorldMap:{options:{variant:"NatGeo_World_Map",maxZoom:16,attribution:"{attribution.Esri} &mdash; National Geographic, Esri, DeLorme, NAVTEQ, UNEP-WCMC, USGS, NASA, ESA, METI, NRCAN, GEBCO, NOAA, iPC"}},WorldGrayCanvas:{options:{variant:"Canvas/World_Light_Gray_Base",maxZoom:16,attribution:"{attribution.Esri} &mdash; Esri, DeLorme, NAVTEQ"}}}},OpenWeatherMap:{url:"http://{s}.tile.openweathermap.org/map/{variant}/{z}/{x}/{y}.png?appid={apiKey}",options:{maxZoom:19,attribution:'Map data &copy; <a href="http://openweathermap.org">OpenWeatherMap</a>',apiKey:"<insert your api key here>",opacity:.5},variants:{Clouds:"clouds",CloudsClassic:"clouds_cls",Precipitation:"precipitation",PrecipitationClassic:"precipitation_cls",Rain:"rain",RainClassic:"rain_cls",Pressure:"pressure",PressureContour:"pressure_cntr",Wind:"wind",Temperature:"temp",Snow:"snow"}},HERE:{url:"https://{s}.{base}.maps.api.here.com/maptile/2.1/{type}/{mapID}/{variant}/{z}/{x}/{y}/{size}/{format}?app_id={app_id}&app_code={app_code}&lg={language}",options:{attribution:"Map &copy; 1987-"+(new Date).getFullYear()+' <a href="http://developer.here.com">HERE</a>',subdomains:"1234",mapID:"newest",app_id:"<insert your app_id here>",app_code:"<insert your app_code here>",base:"base",variant:"normal.day",maxZoom:20,type:"maptile",language:"eng",format:"png8",size:"256"},variants:{normalDay:"normal.day",normalDayCustom:"normal.day.custom",normalDayGrey:"normal.day.grey",normalDayMobile:"normal.day.mobile",normalDayGreyMobile:"normal.day.grey.mobile",normalDayTransit:"normal.day.transit",normalDayTransitMobile:"normal.day.transit.mobile",normalDayTraffic:{options:{variant:"normal.traffic.day",base:"traffic",type:"traffictile"}},normalNight:"normal.night",normalNightMobile:"normal.night.mobile",normalNightGrey:"normal.night.grey",normalNightGreyMobile:"normal.night.grey.mobile",normalNightTransit:"normal.night.transit",normalNightTransitMobile:"normal.night.transit.mobile",reducedDay:"reduced.day",reducedNight:"reduced.night",basicMap:{options:{type:"basetile"}},mapLabels:{options:{type:"labeltile",format:"png"}},trafficFlow:{options:{base:"traffic",type:"flowtile"}},carnavDayGrey:"carnav.day.grey",hybridDay:{options:{base:"aerial",variant:"hybrid.day"}},hybridDayMobile:{options:{base:"aerial",variant:"hybrid.day.mobile"}},hybridDayTransit:{options:{base:"aerial",variant:"hybrid.day.transit"}},hybridDayGrey:{options:{base:"aerial",variant:"hybrid.grey.day"}},hybridDayTraffic:{options:{variant:"hybrid.traffic.day",base:"traffic",type:"traffictile"}},pedestrianDay:"pedestrian.day",pedestrianNight:"pedestrian.night",satelliteDay:{options:{base:"aerial",variant:"satellite.day"}},terrainDay:{options:{base:"aerial",variant:"terrain.day"}},terrainDayMobile:{options:{base:"aerial",variant:"terrain.day.mobile"}}}},FreeMapSK:{url:"http://t{s}.freemap.sk/T/{z}/{x}/{y}.jpeg",options:{minZoom:8,maxZoom:16,subdomains:"1234",bounds:[[47.204642,15.996093],[49.830896,22.576904]],attribution:'{attribution.OpenStreetMap}, vizualization CC-By-SA 2.0 <a href="http://freemap.sk">Freemap.sk</a>'}},MtbMap:{url:"http://tile.mtbmap.cz/mtbmap_tiles/{z}/{x}/{y}.png",options:{attribution:"{attribution.OpenStreetMap} &amp; USGS"}},CartoDB:{url:"https://{s}.basemaps.cartocdn.com/{variant}/{z}/{x}/{y}{r}.png?key={apiKey}",options:{attribution:'{attribution.OpenStreetMap} &copy; <a href="https://carto.com/attributions">CARTO</a>',subdomains:"abcd",maxZoom:19,variant:"light_all"},variants:{Positron:"light_all",PositronNoLabels:"light_nolabels",PositronOnlyLabels:"light_only_labels",DarkMatter:"dark_all",DarkMatterNoLabels:"dark_nolabels",DarkMatterOnlyLabels:"dark_only_labels",Voyager:"rastertiles/voyager",VoyagerNoLabels:"rastertiles/voyager_nolabels",VoyagerOnlyLabels:"rastertiles/voyager_only_labels",VoyagerLabelsUnder:"rastertiles/voyager_labels_under"}},HikeBike:{url:"https://tiles.wmflabs.org/{variant}/{z}/{x}/{y}.png",options:{maxZoom:19,attribution:"{attribution.OpenStreetMap}",variant:"hikebike"},variants:{HikeBike:{}
vendor: 3,114 bytes, line 5
5,HillShading:{options:{maxZoom:15,variant:"hillshading"}}}},BasemapAT:{url:"https://maps{s}.wien.gv.at/basemap/{variant}/normal/google3857/{z}/{y}/{x}.{format}",options:{maxZoom:19,attribution:'Datenquelle: <a href="https://www.basemap.at">basemap.at</a>',subdomains:["","1","2","3","4"],format:"png",bounds:[[46.35877,8.782379],[49.037872,17.189532]],variant:"geolandbasemap"},variants:{basemap:{options:{maxZoom:20,variant:"geolandbasemap"}},grau:"bmapgrau",overlay:"bmapoverlay",highdpi:{options:{variant:"bmaphidpi",format:"jpeg"}},orthofoto:{options:{maxZoom:20,variant:"bmaporthofoto30cm",format:"jpeg"}}}},nlmaps:{url:"https://geodata.nationaalgeoregister.nl/tiles/service/wmts/{variant}/EPSG:3857/{z}/{x}/{y}.png",options:{minZoom:6,maxZoom:19,bounds:[[50.5,3.25],[54,7.6]],attribution:'Kaartgegevens &copy; <a href="kadaster.nl">Kadaster</a>'},variants:{standaard:"brtachtergrondkaart",pastel:"brtachtergrondkaartpastel",grijs:"brtachtergrondkaartgrijs",luchtfoto:{url:"https://geodata.nationaalgeoregister.nl/luchtfoto/rgb/wmts/1.0.0/2016_ortho25/EPSG:3857/{z}/{x}/{y}.png"}}},NASAGIBS:{url:"https://map1.vis.earthdata.nasa.gov/wmts-webmerc/{variant}/default/{time}/{tilematrixset}{maxZoom}/{z}/{y}/{x}.{format}",options:{attribution:'Imagery provided by services from the Global Imagery Browse Services (GIBS), operated by the NASA/GSFC/Earth Science Data and Information System (<a href="https://earthdata.nasa.gov">ESDIS</a>) with funding provided by NASA/HQ.',bounds:[[-85.0511287776,-179.999999975],[85.0511287776,179.999999975]],minZoom:1,maxZoom:9,format:"jpg",time:"",tilematrixset:"GoogleMapsCompatible_Level"},variants:{ModisTerraTrueColorCR:"MODIS_Terra_CorrectedReflectance_TrueColor",ModisTerraBands367CR:"MODIS_Terra_CorrectedReflectance_Bands367",ViirsEarthAtNight2012:{options:{variant:"VIIRS_CityLights_2012",maxZoom:8}},ModisTerraLSTDay:{options:{variant:"MODIS_Terra_Land_Surface_Temp_Day",format:"png",maxZoom:7,opacity:.75}},ModisTerraSnowCover:{options:{variant:"MODIS_Terra_Snow_Cover",format:"png",maxZoom:8,opacity:.75}},ModisTerraAOD:{options:{variant:"MODIS_Terra_Aerosol",format:"png",maxZoom:6,opacity:.75}},ModisTerraChlorophyll:{options:{variant:"MODIS_Terra_Chlorophyll_A",format:"png",maxZoom:7,opacity:.75}}}},NLS:{url:"https://nls-{s}.tileserver.com/nls/{z}/{x}/{y}.jpg",options:{attribution:'<a href="http://geo.nls.uk/maps/">National Library of Scotland Historic Maps</a>',bounds:[[49.6,-12],[61.7,3]],minZoom:1,maxZoom:18,subdomains:"0123"}},JusticeMap:{url:"http://www.justicemap.org/tile/{size}/{variant}/{z}/{x}/{y}.png",options:{attribution:'<a href="http://www.justicemap.org/terms.php">Justice Map</a>',size:"county",bounds:[[14,-180],[72,-56]]},variants:{income:"income",americanIndian:"indian",asian:"asian",black:"black",hispanic:"hispanic",multi:"multi",nonWhite:"nonwhite",white:"white",plurality:"plural"}},Wikimedia:{url:"https://maps.wikimedia.org/osm-intl/{z}/{x}/{y}{r}.png",options:{attribution:'<a href="https://wikimediafoundation.org/wiki/Maps_Terms_of_Use">Wikimedia</a>',minZoom:1,maxZoom:19}},GeoportailFrance:{url:"https://wxs.ign.fr/{apikey}
5/geoportail/wmts?REQUEST=GetTile&SERVICE=WMTS&VERSION=1.0.0&STYLE={style}&TILEMATRIXSET=PM&FORMAT={format}&LAYER={variant}&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}",options:{attribution:'<a target="_blank" href="https://www.geoportail.gouv.fr/">Geoportail France</a>',bounds:[[-75,-180],[81,180]],minZoom:2,maxZoom:18,apikey:"choisirgeoportail",format:"image/jpeg",style:"normal",variant:"GEOGRAPHICALGRIDSYSTEMS.MAPS.SCAN-EXPRESS.STANDARD"},variants:{parcels:{options:{variant:"CADASTRALPARCELS.PARCELS",maxZoom:20,style:"bdparcellaire",format:"image/png"}},ignMaps:"GEOGRAPHICALGRIDSYSTEMS.MAPS",maps:"GEOGRAPHICALGRIDSYSTEMS.MAPS.SCAN-EXPRESS.STANDARD",orthos:{options:{maxZoom:19,variant:"ORTHOIMAGERY.ORTHOPHOTOS"}}}},OneMapSG:{url:"https://maps-{s}.onemap.sg/v3/{variant}/{z}/{x}/{y}.png",options:{variant:"Default",minZoom:11,maxZoom:18,bounds:[[1.56073,104.11475],[1.16,103.502]],attribution:'<img src="https://docs.onemap.sg/maps/images/oneMap64-01.png" style="height:20px;width:20px;"/> New OneMap | Map data &copy; contributors, <a href="http://SLA.gov.sg">Singapore Land Authority</a>'},variants:{Default:"Default",Night:"Night",Original:"Original",Grey:"Grey",LandLot:"LandLot"}}},e.tileLayer.provider=function(t,i){return new e.TileLayer.Provider(t,i)},e})),function(e){class t{constructor(e,t={}){this.inputElement=e,this.settings=Object.assign({geojsonServiceAddress:"https://nominatim.openstreetmap.org/search",placeholderMessage:"Search...",foundRecordsMessage:"showing results.",limit:10,notFoundMessage:"not found.",notFoundHint:"Make sure your search criteria is correct and try again.",drawColor:"blue",pointGeometryZoomLevel:-1,pagingActive:!0,map_obj:null,onSelect:null},t),this.activeResult=-1,this.resultCount=0,this.lastSearch="",this.searchLayer=null,this.focusLayer=null,this.searchLayerType=0,this.features=[],this.featureCollection=[],this.offset=0,this.collapseOnBlur=!0,this._init()}_init(){const t=e(this.inputElement);t.parent().addClass("searchContainer wpgmp-autocomplete-wrapper"),t.val(""),t.on("keyup",this._debounce((e=>this._handleKeyUp(e)),300)),t.on("focus",(()=>this._showResults())),t.on("blur",(e=>this._handleBlur(e)))}_handleKeyUp(t){const i=e(t.target);switch(t.keyCode){case 13:this._search(i);break;case 38:this._prevResult(i);break;case 40:this._nextResult(i);break;case 37:case 39:break;default:i.val().length>0?(this.offset=0,this._fetchResults(!1,i)):this._clearResults(i)}}_fetchResults(t,i){this.activeResult=-1,this.features=[],this.featureCollection=[],this.lastSearch=i.val();const a={q:this.lastSearch,limit:this.settings.limit+(t?1:0),format:"json",addressdetails:1};this.settings.pagingActive&&(a.offset=this.offset),e.getJSON(this.settings.geojsonServiceAddress,a).done((e=>{this.resultCount=e.length,this.features=e,this.featureCollection=t?e.slice(0,e.length-1):e,this._renderDropdown(t,i)})).fail((()=>this._handleNoResults(i)))}_renderDropdown(t,i){const a=e(i).parent();a.find(".resultsDiv").remove();const n=e("\n            <div class='result resultsDiv'>\n              <ul class='list resultList wpgmp-autosuggest-results'></ul>\n            </div>\n          ");a.append(n);const o=n.find("ul"),r=this.features.length-(t?1:0);for(let t=0;t<r;t++){const a=this.features[t],n=e(`\n              <li class='listResult listElement${t}' data-index='${t}'>\n                <span class='content listElementContent${t}'>\n                  <strong>${a.display_name}</strong><br/>\n                  <small>${a.lat}, ${a.lon}</small>\n                </span>\n              </li>\n            `);o.append(n),n.on("mouseenter",(()=>this._highlightItem(t,i))),n.on("mouseleave",(()=>this._unhighlightItem(t,i))),n.on("mousedown",(()=>this._selectItem(t,i)))}}_highlightItem(t,i){e(i).parent().find(`.listElement${t}`).addClass("mouseover")}_unhighlightItem(t,i){e(i).parent().find(`.listElement${t}`).removeClass("mouseover")}_selectItem(e,t){this.activeResult=e,this._fillSearchBox(t)}_showResults(){e(this.inputElement).parent().find(".wpgmp-autosuggest-results").show()}_handleBlur(t){const i=t.target,a=e(i).closest(".searchContainer").find(".resultsDiv");setTimeout((()=>{this.collapseOnBlur&&!a.is(":hover")?a.find(".wpgmp-autosuggest-results").hide():(this.collapseOnBlur=!0,e(i).focus())}),150)}_clearResults(t){this.activeResult=-1,this.features=[],this.lastSearch="",e(t).parent().find(".resultsDiv").remove()}_handleNoResults(t){this._clearResults(t),e(t).parent().append(`<div class='resultsDiv'><i>${this.lastSearch} ${this.settings.notFoundMessage}</i><p><small>${this.settings.notFoundHint}</small></p></div>`)}_search(e){this._fetchResults(this.settings.pagingActive,e)}_prevResult(e){this.resultCount<=0||(this.activeResult>0&&this.activeResult--,this._fillSearchBox(e))}_nextResult(e){this.resultCount<=0||(this.activeResult<this.resultCount-1&&this.activeResult++,this._fillSearchBox(e))}_fillSearchBox(e){const t=this.features[this.activeResult];t&&this.settings&&"function"==typeof this.settings.onSelect&&this.settings.onSelect({target:e,feature:t})}_debounce(e,t){let i=null;return function(...a){clearTimeout(i),i=setTimeout((()=>e.apply(this,a)),t)}}}e.fn.GeoJsonAutocomplete=function(e){return this.each((function(){this._geoJsonAutocompleteInstance||(this._geoJsonAutocompleteInstance=new t(this,e))}))}}(jQuery),function(e){if("function"==typeof define&&define.amd)define(["leaflet"],e);else if("undefined"!=typeof module)module.exports=e(require("leaflet"));else{if(void 0===window.L)throw new Error("Leaflet must be loaded first");e(window.L)}}((function(e){e.Control.Fullscreen=e.Control.extend({options:{position:"topleft",title:{false:"View Fullscreen",true:"Exit Fullscreen"}},onAdd:function(t){var i=e.DomUtil.create("div","leaflet-control-fullscreen leaflet-bar leaflet-control");return this.link=e.DomUtil.create("a","leaflet-control-fullscreen-button leaflet-bar-part",i),this.link.href="#",this._map=t,this._map.on("fullscreenchange",this._toggleTitle,this),this._toggleTitle(),e.DomEvent.on(this.link,"click",this._click,this),i},_click:function(t){e.DomEvent.stopPropagation(t),e.DomEvent.preventDefault(t),this._map.toggleFullscreen(this.options)},_toggleTitle:function(){this.link.title=this.options.title[this._map.isFullscreen()]}}),e.Map.include({isFullscreen:function(){return this._isFullscreen||
5!1},toggleFullscreen:function(e){var t=this.getContainer();this.isFullscreen()?e&&e.pseudoFullscreen?this._disablePseudoFullscreen(t):document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.msExitFullscreen?document.msExitFullscreen():this._disablePseudoFullscreen(t):e&&e.pseudoFullscreen?this._enablePseudoFullscreen(t):t.requestFullscreen?t.requestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.webkitRequestFullscreen?t.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):t.msRequestFullscreen?t.msRequestFullscreen():this._enablePseudoFullscreen(t)},_enablePseudoFullscreen:function(t){e.DomUtil.addClass(t,"leaflet-pseudo-fullscreen"),this._setFullscreen(!0),this.fire("fullscreenchange")},_disablePseudoFullscreen:function(t){e.DomUtil.removeClass(t,"leaflet-pseudo-fullscreen"),this._setFullscreen(!1),this.fire("fullscreenchange")},_setFullscreen:function(t){this._isFullscreen=t;var i=this.getContainer();t?e.DomUtil.addClass(i,"leaflet-fullscreen-on"):e.DomUtil.removeClass(i,"leaflet-fullscreen-on"),this.invalidateSize()},_onFullscreenChange:function(e){var t=document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement;t!==this.getContainer()||this._isFullscreen?t!==this.getContainer()&&this._isFullscreen&&(this._setFullscreen(!1),this.fire("fullscreenchange")):(this._setFullscreen(!0),this.fire("fullscreenchange"))}}),e.Map.mergeOptions({fullscreenControl:!1}),e.Map.addInitHook((function(){var t;if(this.options.fullscreenControl&&(this.fullscreenControl=new e.Control.Fullscreen(this.options.fullscreenControl),this.addControl(this.fullscreenControl)),"onfullscreenchange"in document?t="fullscreenchange":"onmozfullscreenchange"in document?t="mozfullscreenchange":"onwebkitfullscreenchange"in document?t="webkitfullscreenchange":"onmsfullscreenchange"in document&&(t="MSFullscreenChange"),t){var i=e.bind(this._onFullscreenChange,this);this.whenReady((function(){e.DomEvent.on(document,t,i)})),this.on("unload",(function(){e.DomEvent.off(document,t,i)}))}})),e.control.fullscreen=function(t){return new e.Control.Fullscreen(t)}})),
6/*!
7Copyright (c) 2016 Dominik Moritz
8
9This file is part of the leaflet locate control. It is licensed under the MIT license.
10You can find the project at: https://github.com/domoritz/leaflet-locatecontrol
11*/
12function(e,t){"function"==typeof define&&define.amd?define(["leaflet"],e):"object"==typeof exports&&(void 0!==t&&t.L?module.exports=e(L):module.exports=e(require("leaflet"))),void 0!==t&&t.L&&(t.L.Control.Locate=e(L))}((function(e){var t=function(t,i,a){(a=a.split(" ")).forEach((function(a){e.DomUtil[t].call(this,i,a)}))},i=function(e,i){t("addClass",e,i)},a=function(e,i){t("removeClass",e,i)},n=e.Marker.extend({initialize:function(t,i){e.Util.setOptions(this,i),this._latlng=t,this.createIcon()},createIcon:function(){var t=this.options,i="";void 0!==t.color&&(i+="stroke:"+t.color+";"),void 0!==t.weight&&(i+="stroke-width:"+t.weight+";"),void 0!==t.fillColor&&(i+="fill:"+t.fillColor+";"),void 0!==t.fillOpacity&&(i+="fill-opacity:"+t.fillOpacity+";"),void 0!==t.opacity&&(i+="opacity:"+t.opacity+";");var a=this._getIconSVG(t,i);this._locationIcon=e.divIcon({className:a.className,html:a.svg,iconSize:[a.w,a.h]}),this.setIcon(this._locationIcon)},_getIconSVG:function(e,t){var i=e.radius,a=i+e.weight,n=2*a;return{className:"leaflet-control-locate-location",svg:'<svg xmlns="http://www.w3.org/2000/svg" width="'+n+'" height="'+n+'" version="1.1" viewBox="-'+a+" -"+a+" "+n+" "+n+'"><circle r="'+i+'" style="'+t+'" /></svg>',w:n,h:n}},setStyle:function(t){e.Util.setOptions(this,t),this.createIcon()}}),o=n.extend({initialize:function(t,i,a){e.Util.setOptions(this,a),this._latlng=t,this._heading=i,this.createIcon()},setHeading:function(e){this._heading=e},_getIconSVG:function(e,t){var i=e.radius,a=e.width+e.weight,n=2*(i+e.depth+e.weight),o="M0,0 l"+e.width/2+","+e.depth+" l-"+a+",0 z";return{className:"leaflet-control-locate-heading",svg:'<svg xmlns="http://www.w3.org/2000/svg" width="'+a+'" height="'+n+'" version="1.1" viewBox="-'+a
12/2+" 0 "+a+" "+n+'" style="'+("transform: rotate("+this._heading+"deg)")+'"><path d="'+o+'" style="'+t+'" /></svg>',w:a,h:n}}}),r=e.Control.extend({options:{position:"topleft",layer:void 0,setView:"untilPanOrZoom",keepCurrentZoomLevel:!1,getLocationBounds:function(e){return e.bounds},flyTo:!1,clickBehavior:{inView:"stop",outOfView:"setView",inViewNotFollowing:"inView"},returnToPrevBounds:!1,cacheLocation:!0,drawCircle:!0,drawMarker:!0,showCompass:!0,markerClass:n,compassClass:o,circleStyle:{className:"leaflet-control-locate-circle",color:"#136AEC",fillColor:"#136AEC",fillOpacity:.15,weight:0},markerStyle:{className:"leaflet-control-locate-marker",color:"#fff",fillColor:"#2A93EE",fillOpacity:1,weight:3,opacity:1,radius:9},compassStyle:{fillColor:"#2A93EE",fillOpacity:1,weight:0,color:"#fff",opacity:1,radius:9,width:9,depth:6},followCircleStyle:{},followMarkerStyle:{},followCompassStyle:{},icon:"fa fa-map-marker",iconLoading:"fa fa-spinner fa-spin",iconElementTag:"span",circlePadding:[0,0],metric:!0,createButtonCallback:function(t,i){var a=e.DomUtil.create("a","leaflet-bar-part leaflet-bar-part-single",t);return a.title=i.strings.title,{link:a,icon:e.DomUtil.create(i.iconElementTag,i.icon,a)}},onLocationError:function(e,t){alert(e.message)},onLocationOutsideMapBounds:function(e){e.stop(),alert(e.options.strings.outsideMapBoundsMsg)},showPopup:!0,strings:{title:"Show me where I am",metersUnit:"meters",feetUnit:"feet",popup:"You are within {distance} {unit} from this point",outsideMapBoundsMsg:"You seem located outside the boundaries of the map"},locateOptions:{maxZoom:1/0,watch:!0,setView:!1}},initialize:function(t){for(var i in t)"object"==typeof this.options[i]?e.extend(this.options[i],t[i]):this.options[i]=t[i];this.options.followMarkerStyle=e.extend({},this.options.markerStyle,this.options.followMarkerStyle),this.options.followCircleStyle=e.extend({},this.options.circleStyle,this.options.followCircleStyle),this.options.followCompassStyle=e.extend({},this.options.compassStyle,this.options.followCompassStyle)},onAdd:function(t){var i=e.DomUtil.create("div","leaflet-control-locate leaflet-bar leaflet-control");this._layer=this.options.layer||new e.LayerGroup,this._layer.addTo(t),this._event=void 0,this._compassHeading=null,this._prevBounds=null;var a=this.options.createButtonCallback(i,this.options);return this._link=a.link,this._icon=a.icon,e.DomEvent.on(this._link,"click",e.DomEvent.stopPropagation).on(this._link,"click",e.DomEvent.preventDefault).on(this._link,"click",this._onClick,this).on(this._link,"dblclick",e.DomEvent.stopPropagation),this._resetVariables(),this._map.on("unload",this._unload,this),i},_onClick:function(){this._justClicked=!0;var e=this._isFollowing();if(this._userPanned=!1,this._userZoomed=!1,this._active&&!this._event)this.stop();else if(this._active&&void 0!==this._event){var t=this.options.clickBehavior,i=t.outOfView;switch(this._map.getBounds().contains(this._event.latlng)&&(i=e?t.inView:t.inViewNotFollowing),t[i]&&(i=t[i]),i){case"setView":this.setView();break;case"stop":if(this.stop(),this.options.returnToPrevBounds)(this.options.flyTo?this._map.flyToBounds:this._map.fitBounds).bind(this._map)(this._prevBounds)}}else this.options.returnToPrevBounds&&(this._prevBounds=this._map.getBounds()),this.start();this._updateContainerStyle()},start:function(){this._activate(),this._event&&(this._drawMarker(this._map),this.options.setView&&this.setView()),this._updateContainerStyle()},stop:function(){this._deactivate(),this._cleanClasses(),this._resetVariables(),this._removeMarker()},stopFollowing:function(){this._userPanned=!0,this._updateContainerStyle(),this._drawMarker()},_activate:function(){this._active||(this._map.locate(this.options.locateOptions),this._active=!0,this._map.on("locationfound",this._onLocationFound,this),this._map.on("locationerror",this._onLocationError,this),this._map.on("dragstart",this._onDrag,this),this._map.on("zoomstart",this._onZoom,this),this._map.on("zoomend",this._onZoomEnd,this),this.options.showCompass&&("ondeviceorientationabsolute"in window?e.DomEvent.on(window,"deviceorientationabsolute",this._onDeviceOrientation,this):"ondeviceorientation"in window&&e.DomEvent.on(window,"deviceorientation",this._onDeviceOrientation,this)))},_deactivate:function(){this._map.stopLocate(),this._active=!1,this.options.cacheLocation||(this._event=void 0),this._map.off("locationfound",this._onLocationFound,this),this._map.off("locationerror",this._onLocationError,this),this._map.off("dragstart",this._onDrag,this),this._map.off("zoomstart",this._onZoom,this),this._map.off("zoomend",this._onZoomEnd,this),this.options.showCompass&&(this._compassHeading=null,"ondeviceorientationabsolute"in window?e.DomEvent.off(window,"deviceorientationabsolute",this._onDeviceOrientation,this):"ondeviceorientation"in window&&e.DomEvent.off(window,"deviceorientation",this._onDeviceOrientation,this))}
12,setView:function(){if(this._drawMarker(),this._isOutsideMapBounds())this._event=void 0,this.options.onLocationOutsideMapBounds(this);else if(this.options.keepCurrentZoomLevel){(t=this.options.flyTo?this._map.flyTo:this._map.panTo).bind(this._map)([this._event.latitude,this._event.longitude])}else{var t=this.options.flyTo?this._map.flyToBounds:this._map.fitBounds;this._ignoreEvent=!0,t.bind(this._map)(this.options.getLocationBounds(this._event),{padding:this.options.circlePadding,maxZoom:this.options.locateOptions.maxZoom}),e.Util.requestAnimFrame((function(){this._ignoreEvent=!1}),this)}},_drawCompass:function(){if(this._event){var e=this._event.latlng;if(this.options.showCompass&&e&&null!==this._compassHeading){var t=this._isFollowing()?this.options.followCompassStyle:this.options.compassStyle;this._compass?(this._compass.setLatLng(e),this._compass.setHeading(this._compassHeading),this._compass.setStyle&&this._compass.setStyle(t)):this._compass=new this.options.compassClass(e,this._compassHeading,t).addTo(this._layer)}!this._compass||this.options.showCompass&&null!==this._compassHeading||(this._compass.removeFrom(this._layer),this._compass=null)}},_drawMarker:function(){void 0===this._event.accuracy&&(this._event.accuracy=0);var t,i,a=this._event.accuracy,n=this._event.latlng;if(this.options.drawCircle){var o=this._isFollowing()?this.options.followCircleStyle:this.options.circleStyle;this._circle?this._circle.setLatLng(n).setRadius(a).setStyle(o):this._circle=e.circle(n,a,o).addTo(this._layer)}if(this.options.metric?(t=a.toFixed(0),i=this.options.strings.metersUnit):(t=(3.2808399*a).toFixed(0),i=this.options.strings.feetUnit),this.options.drawMarker){var r=this._isFollowing()?this.options.followMarkerStyle:this.options.markerStyle;this._marker?(this._marker.setLatLng(n),this._marker.setStyle&&this._marker.setStyle(r)):this._marker=new this.options.markerClass(n,r).addTo(this._layer)}this._drawCompass();var s=this.options.strings.popup;this.options.showPopup&&s&&this._marker&&this._marker.bindPopup(e.Util.template(s,{distance:t,unit:i}))._popup.setLatLng(n),this.options.showPopup&&s&&this._compass&&this._compass.bindPopup(e.Util.template(s,{distance:t,unit:i}))._popup.setLatLng(n)},_removeMarker:function(){this._layer.clearLayers(),this._marker=void 0,this._circle=void 0},_unload:function(){this.stop(),this._map.off("unload",this._unload,this)},_setCompassHeading:function(t){!isNaN(parseFloat(t))&&isFinite(t)?(t=Math.round(t),this._compassHeading=t,e.Util.requestAnimFrame(this._drawCompass,this)):this._compassHeading=null},_onCompassNeedsCalibration:function(){this._setCompassHeading()},_onDeviceOrientation:function(e){this._active&&(e.webkitCompassHeading?this._setCompassHeading(e.webkitCompassHeading):e.absolute&&e.alpha&&this._setCompassHeading(360-e.alpha))},_onLocationError:function(e){3==e.code&&this.options.locateOptions.watch||(this.stop(),this.options.onLocationError(e,this))},_onLocationFound:function(e){if((!this._event||this._event.latlng.lat!==e.latlng.lat||this._event.latlng.lng!==e.latlng.lng||this._event.accuracy!==e.accuracy)&&this._active){switch(this._event=e,this._drawMarker(),this._updateContainerStyle(),this.options.setView){case"once":this._justClicked&&this.setView();break;case"untilPan":this._userPanned||this.setView();break;case"untilPanOrZoom":this._userPanned||this._userZoomed||this.setView();break;case"always":this.setView()}this._justClicked=!1}},_onDrag:function(){this._event&&!this._ignoreEvent&&(this._userPanned=!0,this._updateContainerStyle(),this._drawMarker())},_onZoom:function(){this._event&&!this._ignoreEvent&&(this._userZoomed=!0,this._updateContainerStyle(),this._drawMarker())},_onZoomEnd:function(){this._event&&this._drawCompass(),this._event&&!this._ignoreEvent&&this._marker&&!this._map.getBounds().pad(-.3).contains(this._marker.getLatLng())&&(this._userPanned=!0,this._updateContainerStyle(),this._drawMarker())},_isFollowing:function(){return!!this._active&&("always"===this.options.setView||("untilPan"===this.options.setView?!this._userPanned:"untilPanOrZoom"===this.options.setView?!this._userPanned&&!this._userZoomed:void 0))},_isOutsideMapBounds:function(){return void 0!==this._event&&(this._map.options.maxBounds&&!this._map.options.maxBounds.contains(this._event.latlng))},_updateContainerStyle:function(){this._container&&(this._active&&!this._event?this._setClasses("requesting"):this._isFollowing()?this._setClasses("following"):this._active?this._setClasses("active"):this._cleanClasse
12s())},_setClasses:function(e){"requesting"==e?(a(this._container,"active following"),i(this._container,"requesting"),a(this._icon,this.options.icon),i(this._icon,this.options.iconLoading)):"active"==e?(a(this._container,"requesting following"),i(this._container,"active"),a(this._icon,this.options.iconLoading),i(this._icon,this.options.icon)):"following"==e&&(a(this._container,"requesting"),i(this._container,"active following"),a(this._icon,this.options.iconLoading),i(this._icon,this.options.icon))},_cleanClasses:function(){e.DomUtil.removeClass(this._container,"requesting"),e.DomUtil.removeClass(this._container,"active"),e.DomUtil.removeClass(this._container,"following"),a(this._icon,this.options.iconLoading),i(this._icon,this.options.icon)},_resetVariables:function(){this._active=!1,this._justClicked=!1,this._userPanned=!1,this._userZoomed=!1}});return e.control.locate=function(t){return new e.Control.Locate(t)},r}),window),function e(t,i,a){function n(r,s){if(!i[r]){if(!t[r]){var l="function"==typeof require&&require;if(!s&&l)return l(r,!0);if(o)return o(r,!0);var d=new Error("Cannot find module '"+r+"'");throw d.code="MODULE_NOT_FOUND",d}var u=i[r]={exports:{}};t[r][0].call(u.exports,(function(e){return n(t[r][1][e]||e)}),u,u.exports,e,t,i,a)}return i[r].exports}for(var o="function"==typeof require&&require,r=0;r<a.length;r++)n(a[r]);return n}({1:[function(e,t,i){void 0!==t&&(t.exports=function(e,t,i){var a=!1;if(void 0===window.XMLHttpRequest)return t(Error("Browser not supported"));if(void 0===i){var n=e.match(/^\s*https?:\/\/[^\/]*/);i=n&&n[0]!==location.protocol+"//"+location.hostname+(location.port?":"+location.port:"")}var o=new window.XMLHttpRequest;if(i&&!("withCredentials"in o)){o=new window.XDomainRequest;var r=t;t=function(){if(a)r.apply(this,arguments);else{var e=this,t=arguments;setTimeout((function(){r.apply(e,t)}),0)}}}function s(){var e;void 0===o.status||((e=o.status)>=200&&e<300||304===e)?t.call(o,null,o):t.call(o,o,null)}return"onload"in o?o.onload=s:o.onreadystatechange=function(){4===o.readyState&&s()},o.onerror=function(e){t.call(this,e||!0,null),t=function(){}},o.onprogress=function(){},o.ontimeout=function(e){t.call(this,e,null),t=function(){}},o.onabort=function(e){t.call(this,e,null),t=function(){}},o.open("GET",e,!0),o.send(null),a=!0,o})},{}],2:[function(e,t,i){"use strict";var a={};function n(e){return Math.floor(Math.abs(e)+.5)*Math.sign(e)}function o(e,t,i){var a=(e=n(e*i))-(t=n(t*i));a<<=1,e-t<0&&(a=~a);for(var o="";a>=32;)o+=String.fromCharCode(63+(32|31&a)),a>>=5;return o+=String.fromCharCode(a+63)}function r(e){for(var t=[],i=0;i<e.length;i++)t.push(e[i].slice().reverse());return t}a.decode=function(e,t){for(var i,a=0,n=0,o=0,r=[],s=0,l=0,d=null,u=Math.pow(10,t||5);a<e.length;){d=null,s=0,l=0;do{l|=(31&(d=e.charCodeAt(a++)-63))<<s,s+=5}while(d>=32);i=1&l?~(l>>1):l>>1,s=l=0;do{l|=(31&(d=e.charCodeAt(a++)-63))<<s,s+=5}while(d>=32);n+=i,o+=1&l?~(l>>1):l>>1,r.push([n/u,o/u])}return r},a.encode=function(e,t){if(!e.length)return"";for(var i=Math.pow(10,t||5),a=o(e[0][0],0,i)+o(e[0][1],0,i),n=1;n<e.length;n++){var r=e[n],s=e[n-1];a+=o(r[0],s[0],i),a+=o(r[1],s[1],i)}return a},a.fromGeoJSON=function(e,t){if(e&&"Feature"===e.type&&(e=e.geometry),!e||"LineString"!==e.type)throw new Error("Input must be a GeoJSON LineString");return a.encode(r(e.coordinates),t)},a.toGeoJSON=function(e,t){return{type:"LineString",coordinates:r(a.decode(e,t))}},"object"==typeof t&&t.exports&&(t.exports=a)},{}],3:[function(e,t,i){var a=e("./languages"),n=a.instructions,o=a.grammars,r=a.abbreviations;t.exports=function(e){return Object.keys(n).forEach((function(t){if(!n[t][e])throw"invalid version "+e+": "+t+" not supported"})),{capitalizeFirstLetter:function(e,t){return t.charAt(0).toLocaleUpperCase(e)+t.slice(1)},ordinalize:function(t,i){if(!t)throw new Error("No language code provided");return n[t][e].constants.ordinalize[i.toString()]||""},directionFromDegree:function(t,i){if(!t)throw new Error("No language code provided");if(i||0===i){if(i>=0&&i<=20)return n[t][e].constants.direction.north;if(i>20&&i<70)return n[t][e].constants.direction.northeast;if(i>=70&&i<=110)return n[t][e].constants.direction.east;if(i>110&&i<160)return n[t][e].constants.direction.southeast;if(i>=160&&i<=200)return n[t][e].constants.direction.south;if(i>200&&i<250)return n[t][e].constants.direction.southwest;if(i>=250&&i<=290)return n[t][e].constants.direction.west;if(i>290&&i<340)return n[t][e].constants.direction.northwest;if(i>=340&&i<=360)return n[t][e].constants.direction.north;throw new Error("Degree "+i+" invalid")}return""},laneConfig:function(e){if(!e.intersections||!e.intersections[0].lanes)throw new Error("No lanes object");var t=[],i=null;
12return e.intersections[0].lanes.forEach((function(e){null!==i&&i===e.valid||(e.valid?t.push("o"):t.push("x"),i=e.valid)})),t.join("")},getWayName:function(t,i,a){var o,r=a&&a.classes||[];if("object"!=typeof i)throw new Error("step must be an Object");if(!t)throw new Error("No language code provided");if(!Array.isArray(r))throw new Error("classes must be an Array or undefined");var s=i.name||"",l=(i.ref||"").split(";")[0];s===i.ref&&(s=""),s=s.replace(" ("+i.ref+")","");var d=-1!==r.indexOf("motorway");if(s&&l&&s!==l&&!d){var u=n[t][e].phrase["name and ref"]||n.en[e].phrase["name and ref"];o=this.tokenize(t,u,{name:s,ref:l},a)}else o=s&&l&&d&&/\d/.test(l)||!s&&l?a&&a.formatToken?a.formatToken("ref",l):l:a&&a.formatToken?a.formatToken("name",s):s;return o},compile:function(t,i,o){if(!t)throw new Error("No language code provided");if(-1===a.supportedCodes.indexOf(t))throw new Error("language code "+t+" not loaded");if(!i.maneuver)throw new Error("No step maneuver provided");var r,s,l=o||{},d=i.maneuver.type,u=i.maneuver.modifier,h=i.mode,c=i.driving_side;if(!d)throw new Error("Missing step maneuver type");if("depart"!==d&&"arrive"!==d&&!u)throw new Error("Missing step maneuver modifier");if(n[t][e][d]||(console.log("Encountered unknown instruction type: "+d),d="turn"),n[t][e].modes[h])r=n[t][e].modes[h];else{var m="off ramp"===d&&u.indexOf(c)>=0;r=n[t][e][d][u]&&!m?n[t][e][d][u]:n[t][e][d].default}switch(d){case"use lane":(s=n[t][e].constants.lanes[this.laneConfig(i)])||(r=n[t][e]["use lane"].no_lanes);break;case"rotary":case"roundabout":r=i.rotary_name&&i.maneuver.exit&&r.name_exit?r.name_exit:i.rotary_name&&r.name?r.name:i.maneuver.exit&&r.exit?r.exit:r.default}var p,f=this.getWayName(t,i,l);p=i.destinations&&i.exits&&r.exit_destination?r.exit_destination:i.destinations&&r.destination?r.destination:i.exits&&r.exit?r.exit:f&&r.name?r.name:l.waypointName&&r.named?r.named:r.default;var _,g=i.destinations&&i.destinations.split(": "),y=g&&g[0].split(",")[0],v=g&&g[1]&&g[1].split(",")[0];_=v&&y?y+": "+v:y||v||"";var w=l.legIndex>=0&&l.legIndex!==l.legCount-1?this.ordinalize(t,l.legIndex+1):"",x={way_name:f,destination:_,exit:(i.exits||"").split(";")[0],exit_number:this.ordinalize(t,i.maneuver.exit||1),rotary_name:i.rotary_name,lane_instruction:s,modifier:n[t][e].constants.modifier[u],direction:this.directionFromDegree(t,i.maneuver.bearing_after),nth:w,waypoint_name:l.waypointName};return this.tokenize(t,p,x,l)},grammarize:function(t,i,a){if(!t)throw new Error("No language code provided");if(i&&a&&o&&o[t]&&o[t][e]){var n=o[t][e][a];if(n){var r=" "+i+" ",s=o[t].meta.regExpFlags||"";return n.forEach((function(e){var t=new RegExp(e[0],s);r=r.replace(t,e[1])})),r.trim()}}return i},abbreviations:r,tokenize:function(e,t,i,a){if(!e)throw new Error("No language code provided");var o=this,r=!1,s=t.replace(/\{(\w+)(?::(\w+))?\}/g,(function(t,s,l,d){var u=i[s];return void 0===u?t:(u=o.grammarize(e,u,l),0===d&&n[e].meta.capitalizeFirstLetter&&(r=!0,u=o.capitalizeFirstLetter(e,u)),a&&a.formatToken&&(u=a.formatToken(s,u)),u)})).replace(/ {2}/g," ");return!r&&n[e].meta.capitalizeFirstLetter?this.capitalizeFirstLetter(e,s):s}}}},{"./languages":4}],4:[function(e,t,i){var a={da:e("./languages/translations/da.json"),de:e("./languages/translations/de.json"),en:e("./languages/translations/en.json"),eo:e("./languages/translations/eo.json"),es:e("./languages/translations/es.json"),"es-ES":e("./languages/translations/es-ES.json"),fi:e("./languages/translations/fi.json"),fr:e("./languages/translations/fr.json"),he:e("./languages/translations/he.json"),id:e("./languages/translations/id.json"),it:e("./languages/translations/it.json"),ko:e("./languages/translations/ko.json"),my:e("./languages/translations/my.json"),nl:e("./languages/translations/nl.json"),no:e("./languages/translations/no.json"),pl:e("./languages/translations/pl.json"),"pt-BR":e("./languages/translations/pt-BR.json"),"pt-PT":e("./languages/translations/pt-PT.json"),ro:e("./languages/translations/ro.json"),ru:e("./languages/translations/ru.json"),sv:e("./languages/translations/sv.json"),tr:e("./languages/translations/tr.json"),uk:e("./languages/translations/uk.json"),vi:e("./languages/translations/vi.json"),"zh-Hans":e("./languages/translations/zh-Hans.json")},n={fr:e("./languages/grammar/fr.json"),ru:e("./languages/grammar/ru.json")},o={bg:e("./languages/abbreviations/bg.json"),ca:e("./languages/abbreviations/ca.json"),da:e("./languages/abbreviations/da.json"),de:e("./languages/abbreviations/de.json"),en:e("./languages/abbreviations/en.json"),es:e("./languages/abbreviations/es.json"),fr:e("./languages/abbreviations/fr.json"),he:e("./languages/abbreviations/he.json"),hu:e("./languages/abbreviations/hu.json"),lt:e("./languages/abbreviations/lt.json"),nl:e("./languages/abbreviations/nl.json"),ru:e("./languages/abbreviations/ru.json"),sl:e("./languages/abbreviations/sl.json"),sv:e("./languages/abbreviations/sv.json"),uk:e("./languages/abbreviations/uk.json"),vi:e("./languages/abbreviations/vi.json")};t.exports={supportedCodes:Object.keys(a),instructions:a,grammars:n,abbreviations:o}},{"./languages/abbreviations/bg.json":5,"./languages/abbreviations/ca.json":6,"./languages/abbreviations/da.json":7,"./languages/abbreviations/de.json":8,"./languages/abbreviations/en.json":9,"./languages/abbreviations/es.json":10,"./languages/abbreviations/fr.json":11,"./languages/abbreviations/he.json":12,"./languages/abbreviations/hu.json":13,"./languages/abbreviations/lt.json":14,"./languages/abbreviations/nl.json":15,"./languages/abbreviations/ru.json":16,"./languages/abbreviations/sl.json":17,"./languages/abbreviations/sv.json":18,"./languages/abbreviations/uk.json":19,"./languages/abbreviations/vi.json":20,"./languages/grammar/fr.json":21,"./languages/grammar/ru.json":22,"./languages/translations/da.json":23,"./languages/translations/de.json":24,"./languages/translations/en.json":25,"./languages/translations/eo.json":26,"./languages/translations/es-ES.json":27,"./languages/translations/es.json":28,"./languages/translations/fi.json":29,"./languages/translations/fr.json":30,"./languages/translations/he.json":31,"./languages/translations/id.json":32,"./languages/translations/it.json":33,"./languages/translations/ko.json":34,"./languages/translations/my.json":35,"./languages/translations/nl.json":36,"./languages/translations/no.json":37,"./languages/translations/pl.json":38,"./languages/translations/pt-BR.json":39,"./languages/translations/pt-PT.json":40,"./languages/translations/ro.json":41,"./languages/translations/ru.json":42,"./languages/translations/sv.json":43,"./languages/translations/tr.json":44,"./languages/translations/uk.json":45,"./languages/translations/vi.json":46,"./languages/translations/zh-Hans.json":47}],5:[function(e,t,i){t.exports={abbreviations:{"международен":"Межд","старши":"Стрш","възел":"Въз","пазар":"Mkt","светисвети":"СвСв","сестра":"сес","уилям":"Ум","апартаменти":"ап","езеро":"Ез","свети":"Св","център":"Ц-р","парк":"Пк","маршрут":"М-т","площад":"Пл","национален":"Нац","училище":"Уч","река":"Рек","поток":"П-к","район":"Р-н","крепост":"К-т","паметник":"Пам","университет":"Уни","Връх":"Вр","точка":"Точ","планина":"Пл","село":"с.","височини":"вис","младши":"Мл","станция":"С-я","проход":"Прох","баща":"Бщ"},classifications:{"шофиране":"Шоф","плавен":"Пл","място":"Мя","тераса":"Тер","магистрала":"М-ла","площад":"Пл","пеш":"Пеш","залив":"З-в","пътека":"П-ка","платно":"Пл","улица":"Ул","алея":"Ал","пешеходна":"Пеш","точка":"Тч","задминаване":"Задм","кръгово":"Кр","връх":"Вр","съд":"Сд","булевард":"Бул","път":"Път","скоростна":"Скор","мост":"Мо"},directions:{"северозапад":"СЗ","североизток":"СИ","югозапад":"ЮЗ","югоизток":"ЮИ","север":"С","изток":"И","юг":"Ю"}}},{}],6:[function(e,t,i){t.exports={abbreviations:{comunicacions:"Com.","entitat de població":"Nucli",disseminat:"Diss.","cap de municipi":"Cap",indret:"Indr.",comarca:"Cca.","relleu del litoral":"Lit.",municipi:"Mun.","xarxa hidrogràfica":"Curs Fluv.",equipament:"Equip.",orografia:"Orogr.",barri:"Barri","edificació":"Edif.","edificació històrica":"Edif. Hist.","entitat descentralitzada":"E.M.D.","element hidrogràfic":"Hidr."}
12,classifications:{rotonda:"Rot.",carrerada:"Ca.","jardí":"J.",paratge:"Pge.",pont:"Pont",lloc:"Lloc",rambla:"Rbla.",cases:"Cses.",barranc:"Bnc.",plana:"Plana","polígon":"Pol.",muralla:"Mur.","enllaç":"Ellaç","antiga carretera":"Actra",glorieta:"Glor.",autovia:"Autv.","prolongació":"Prol.","calçada":"Cda.",carretera:"Ctra.",pujada:"Pda.",torrent:"T.",disseminat:"Disse",barri:"B.","cinturó":"Cinto",passera:"Psera",sender:"Send.",carrer:"C.","sèquia":"Sèq.",blocs:"Bloc",rambleta:"Rblt.",partida:"Par.",costa:"Cos.",sector:"Sec.","corraló":"Crral","urbanització":"Urb.",autopista:"Autp.",grup:"Gr.",platja:"Pja.",jardins:"J.",complex:"Comp.",portals:"Ptals",finca:"Fin.",travessera:"Trav.","plaça":"Pl.",travessia:"Trv.","polígon industrial":"PI.",passatge:"Ptge.",apartaments:"Apmt.",mirador:"Mira.",antic:"Antic","accés":"Acc.","colònia":"Col.",corriol:"Crol.",portal:"Ptal.",porta:"Pta.",port:"Port","carreró":"Cró.",riera:"Ra.","circumval·lació":"Cval.",baixada:"Bda.",placeta:"Plta.",escala:"Esc.","gran via":"GV",rial:"Rial",conjunt:"Conj.",avinguda:"Av.",esplanada:"Esp.",cantonada:"Cant.",ronda:"Rda.",corredor:"Cdor.",drecera:"Drec.","passadís":"Pdís.",viaducte:"Vdct.",passeig:"Pg.","veïnat":"Veï."},directions:{sudest:"SE",sudoest:"SO",nordest:"NE",nordoest:"NO",est:"E",nord:"N",oest:"O",sud:"S"}}},{}],7:[function(e,t,i){t.exports={abbreviations:{skole:"Sk.",ved:"v.",centrum:"C.",sankt:"Skt.",vestre:"v.",hospital:"Hosp.","stræde":"Str.",nordre:"Nr.",plads:"Pl.",universitet:"Uni.","vænge":"vg.",station:"St."},classifications:{avenue:"Ave",gammel:"Gl.",dronning:"Dronn.","sønder":"Sdr.","nørre":"Nr.",vester:"V.",vestre:"V.","øster":"Ø.","østre":"Ø.",boulevard:"Boul."},directions:{"sydøst":"SØ",nordvest:"NV",syd:"S","nordøst":"NØ",sydvest:"SV",vest:"V",nord:"N","øst":"Ø"}}},{}],8:[function(e,t,i){t.exports={abbreviations:{},classifications:{},directions:{osten:"O",nordosten:"NO","süden":"S",nordwest:"NW",norden:"N","südost":"SO","südwest":"SW",westen:"W"}}},{}],9:[function(e,t,i){t.exports={abbreviations:{square:"Sq",centre:"Ctr",sister:"Sr",lake:"Lk",fort:"Ft",route:"Rte",william:"Wm",national:"Nat’l",junction:"Jct",center:"Ctr",saint:"St",saints:"SS",station:"Sta",mount:"Mt",junior:"Jr",mountain:"Mtn",heights:"Hts",university:"Univ",school:"Sch",international:"Int’l",apartments:"Apts",crossing:"Xing",creek:"Crk",township:"Twp",downtown:"Dtwn",father:"Fr",senior:"Sr",point:"Pt",river:"Riv",market:"Mkt",village:"Vil",park:"Pk",memorial:"Mem"},classifications:{place:"Pl",circle:"Cir",bypass:"Byp",motorway:"Mwy",crescent:"Cres",road:"Rd",cove:"Cv",lane:"Ln",square:"Sq",street:"St",freeway:"Fwy",walk:"Wk",plaza:"Plz",parkway:"Pky",avenue:"Ave",pike:"Pk",drive:"Dr",highway:"Hwy",footway:"Ftwy",point:"Pt",court:"Ct",terrace:"Ter",walkway:"Wky",alley:"Aly",expressway:"Expy",bridge:"Br",boulevard:"Blvd",turnpike:"Tpk"},directions:{southeast:"SE",northwest:"NW",south:"S",west:"W",southwest:"SW",north:"N",east:"E",northeast:"NE"}}},{}],10:[function(e,t,i){t.exports={abbreviations:{segunda:"2ª",octubre:"8bre",doctores:"Drs",doctora:"Dra",internacional:"Intl",doctor:"Dr",segundo:"2º","señorita":"Srta",doctoras:"Drs",primera:"1ª",primero:"1º",san:"S",colonia:"Col","doña":"Dña",septiembre:"7bre",diciembre:"10bre","señor":"Sr",ayuntamiento:"Ayto","señora":"Sra",tercera:"3ª",tercero:"3º",don:"D",santa:"Sta",ciudad:"Cdad",noviembre:"9bre",departamento:"Dep"},classifications:{camino:"Cmno",avenida:"Av",paseo:"Pº",autopista:"Auto",calle:"C",plaza:"Pza",carretera:"Crta"},directions:{este:"E",noreste:"NE",sur:"S",suroeste:"SO",noroeste:"NO",oeste:"O",sureste:"SE",norte:"N"}}},{}],11:[function(e,t,i){t
vendor: 10,245 bytes, line 12
12.exports={abbreviations:{"allée":"All","aérodrome":"Aérod","aéroport":"Aérop"},classifications:{centrale:"Ctrale",campings:"Camp.",urbains:"Urb.",mineure:"Min.",publique:"Publ.","supérieur":"Sup.","fédération":"Féd.","notre-dame":"ND",saint:"St","centre hospitalier régional":"CHR",exploitation:"Exploit.","général":"Gal",civiles:"Civ.",maritimes:"Marit.",aviation:"Aviat.",iii:"3","archéologique":"Archéo.",musical:"Music.",musicale:"Music.",immeuble:"Imm.",xv:"15","hôtel":"Hôt.",alpine:"Alp.",communale:"Commun.",v:"5",global:"Glob.","université":"Univ.","confédéral":"Conféd.",xx:"20",x:"10",piscine:"Pisc.",dimanche:"di.",fleuve:"Flv",postaux:"Post.",musicienne:"Music.","département":"Dépt","février":"Févr.",municipales:"Munic.",province:"Prov.","communautés":"Commtés",barrage:"Barr.",mercredi:"me.","présidentes":"Pdtes","cafétérias":"Cafét.","théâtral":"Thé.",viticulteur:"Vitic.",poste:"Post.","spécialisée":"Spéc.",agriculture:"Agric.",infirmier:"Infirm.",animation:"Anim.",mondiale:"Mond.","arrêt":"Arr.",zone:"zon.",municipaux:"Munic.",grand:"Gd",janvier:"Janv.",fondateur:"Fond.","première":"1re",municipale:"Munic.",direction:"Dir.",anonyme:"Anon.","départementale":"Dépt",moyens:"Moy.",novembre:"Nov.",jardin:"Jard.",petites:"Pet.","privé":"Priv.",centres:"Ctres",forestier:"Forest.",xiv:"14",africaines:"Afric.",sergent:"Sgt","européenne":"Eur.","privée":"Priv.","café":"Cfé",xix:"19",hautes:"Htes",major:"Mjr",vendredi:"ve.","municipalité":"Munic.","sous-préfecture":"Ss-préf.","spéciales":"Spéc.",secondaires:"Second.",viie:"7e",moyenne:"Moy.",commerciale:"Commerc.","région":"Rég.","américaines":"Amér.","américains":"Amér.",service:"Sce",professeur:"Prof.","départemental":"Dépt","hôtels":"Hôt.",mondiales:"Mond.",ire:"1re",caporal:"Capo.",militaire:"Milit.","lycée d'enseignement professionnel":"LEP",adjudant:"Adj.","médicale":"Méd.","conférences":"Confér.",universelle:"Univ.",xiie:"12e","supérieures":"Sup.",naturel:"Natur.","société nationale":"SN",hospitalier:"Hosp.",culturelle:"Cult.","américain":"Amér.","son altesse royale":"S.A.R.","infirmière":"Infirm.",viii:"8",fondatrice:"Fond.",madame:"Mme","métropolitain":"Métrop.",ophtalmologues:"Ophtalmos",xviie:"18e",viiie:"8e","commerçante":"Commerç.","centre d'enseignement du second degré":"CES",septembre:"Sept.",agriculteur:"Agric.",xiii:"13",pontifical:"Pontif.","cafétéria":"Cafét.",prince:"Pce",vie:"6e",archiduchesse:"Archid.",occidental:"Occ.",spectacles:"Spect.",camping:"Camp.","métro":"Mº",arrondissement:"Arrond.",viticole:"Vitic.",ii:"2","siècle":"Si.",chapelles:"Chap.",centre:"Ctre","sapeur-pompiers":"Sap.-pomp.","établissements":"Étabts","société anonyme":"SA",directeurs:"Dir.",vii:"7",culturel:"Cult.",central:"Ctral","métropolitaine":"Métrop.",administrations:"Admin.",amiraux:"Amir.",sur:"s/",premiers:"1ers","provence-alpes-côte d'azur":"PACA","cathédrale":"Cathéd.",iv:"4",postale:"Post.",social:"Soc.","spécialisé":"Spéc.",district:"Distr.",technologique:"Techno.",viticoles:"Vitic.",ix:"9","protégés":"Prot.",historiques:"Hist.",sous:"s/s",national:"Nal",ambassade:"Amb.","cafés":"Cfés",agronomie:"Agro.",sapeurs:"Sap.",petits:"Pet.",monsieur:"M.",boucher:"Bouch.",restaurant:"Restau.","lycée":"Lyc.",urbaine:"Urb.","préfecture":"Préf.",districts:"Distr.",civil:"Civ.","protégées":"Prot.",sapeur:"Sap.","théâtre":"Thé.","collège":"Coll.",mardi:"ma.","mémorial":"Mémor.",africain:"Afric.","républicaine":"Républ.",sociale:"Soc.","spécial":"Spéc.",technologie:"Techno.",charcuterie:"Charc.",commerces:"Commerc.",fluviale:"Flv",parachutistes:"Para.",primaires:"Prim.",directions:"Dir.","présidentiel":"Pdtl",nationales:"Nales","après":"apr.",samedi:"sa.","unité":"U.",xxiii:"23","associé":"Assoc.","électrique":"Électr.",populaire:"Pop.",asiatique:"Asiat.",navigable:"Navig.","présidente":"Pdte",xive:"14e","associés":"Assoc.",pompiers:"Pomp.",agricoles:"Agric.","élém":"Élém.","décembre":"Déc.","son altesse":"S.Alt.","après-midi":"a.-m.",mineures:"Min.",juillet:"Juil.",aviatrices:"Aviat.",fondation:"Fond.",pontificaux:"Pontif.",temple:"Tple","européennes":"Eur.","régionale":"Rég.",informations:"Infos",mondiaux:"Mond.",infanterie:"Infant.","archéologie":"Archéo.",dans:"d/",hospice:"Hosp.",spectacle:"Spect.","hôtels-restaurants":"Hôt.-Rest.","hôtel-restaurant":"Hôt.-Rest.","hélicoptère":"hélico",xixe:"19e",cliniques:"Clin.",docteur:"Dr",secondaire:"Second.",municipal:"Munic.","générale":"Gale","château":"Chât.","commerçant":"Commerç.",avril:"Avr.",clinique:"Clin.",urbaines:"Urb.",navale:"Nav.",navigation:"Navig.",asiatiques:"Asiat.",pontificales:"Pontif.",administrative:"Admin.",syndicat:"Synd.",lundi:"lu.",petite:"Pet.",maritime:"Marit.","métros":"Mº",enseignement:"Enseign.",fluviales:"Flv",historique:"Hist.","comtés":"Ctés","résidentiel":"Résid.",international:"Int.","supérieure":"Sup.","centre hospitalier universitaire":"CHU","confédération":"Conféd.",boucherie:"Bouch.",fondatrices:"Fond.","médicaux":"Méd.","européens":"Eur.",orientaux:"Ori.",naval:"Nav.","étang":"Étg",provincial:"Prov.",junior:"Jr","départementales":"Dépt",musique:"Musiq.",directrices:"Dir.","maréchal":"Mal",civils:"Civ.","protégé":"Prot.","établissement":"Étabt",trafic:"Traf.",aviateur:"Aviat.",archives:"Arch.",africains:"Afric.",maternelle:"Matern.",industrielle:"Ind.",administratif:"Admin.",oriental:"Ori.",universitaire:"Univ.",majeur:"Maj.",haute:"Hte",communal:"Commun.",petit:"Pet.",commune:"Commun.",exploitant:"Exploit.","conférence":"Confér.",monseigneur:"Mgr",pharmacien:"Pharm.",jeudi:"je.",primaire:"Prim.","hélicoptères":"hélicos",agronomique:"Agro.","médecin":"Méd.",ve:"5e",pontificale:"Pontif.",ier:"1er","cinéma":"Ciné",fluvial:"Flv",occidentaux:"Occ.","commerçants":"Commerç.",banque:"Bq",moyennes:"Moy.",pharmacienne:"Pharm.","démocratique":"Dém.","cinémas":"Cinés","spéciale":"Spéc.","présidents":"Pdts",directrice:"Dir.",vi:"6",basse:"Bas.",xve:"15e","état":"É.",aviateurs:"Aviat.",majeurs:"Maj.",infirmiers:"Infirm.","église":"Égl.","confédérale":"Conféd.",xxie:"21e",comte:"Cte","européen":"Eur.",union:"U.",pharmacie:"Pharm.","infirmières":"Infirm.","comté":"Cté",sportive:"Sport.","deuxième":"2e",xvi:"17",haut:"Ht","médicales":"Méd.","développé":"Dévelop.","bâtiment":"Bât.",commerce:"Commerc.",ive:"4e",associatif:"Assoc.",rural:"Rur.","cimetière":"Cim.","régional":"Rég.",ferroviaire:"Ferr.",vers:"v/","mosquée":"Mosq.",mineurs:"Min.",nautique:"Naut.","châteaux":"Chât.",sportif:"Sport.",mademoiselle:"Mle","école":"Éc.",doyen:"Doy.",industriel:"Ind.",chapelle:"Chap.","sociétés":"Stés",internationale:"Int.","coopératif":"Coop.",hospices:"Hosp.",xxii:"22",parachutiste:"Para.",alpines:"Alp.",civile:"Civ.",xvie:"17e","états":"É.","musée":"Msée",centrales:"Ctrales",globaux:"Glob.","supérieurs":"Sup.",syndicats:"Synd.","archevêque":"Archev.",docteurs:"Drs","bibliothèque":"Biblio.",lieutenant:"Lieut.","république":"Rép.","vétérinaire":"Vét.","départementaux":"Dépt",premier:"1er",fluviaux:"Flv","animé":"Anim.",orientales:"Ori.",technologiques:"Techno.",princesse:"Pse","routière":"Rout.","coopérative":"Coop.",scolaire:"Scol.","écoles":"Éc.",football:"Foot",territoriale:"Territ.",commercial:"Commerc.",mineur:"Min.","millénaires":"Mill.",association:"Assoc.",catholique:"Cathol.",administration:"Admin.",mairie:"Mair.",portuaire:"Port.",tertiaires:"Terti.","théâtrale":"Thé.",palais:"Pal.","troisième":"3e",directeur:"Dir.","vétérinaires":"Vét.","faculté":"Fac.",occidentales:"Occ.",viticulteurs:"Vitic.",xvii:"18",occidentale:"Occ.",amiral:"Amir.",professionnel:"Profess.",administratives:"Admin.",commerciales:"Commerc.",saints:"Sts",agronomes:"Agro.",stade:"Std","sous-préfet":"Ss-préf.",senior:"Sr",agronome:"Agro.",terrain:"Terr.",catholiques:"Cathol.","résidentielle":"Résid.",grands:"Gds",exploitants:"Exploit.",xiiie:"13e",croix:"Cx","généraux":"Gaux","crédit":"Créd.","cimetières":"Cim.",antenne:"Ant.","médical":"Méd.","collèges":"Coll.",musicien:"Music.",apostolique:"Apost.",postal:"Post.",territorial:"Territ.",urbanisme:"Urb.","préfectorale":"Préf.",fondateurs:"Fond.",information:"Info.","églises":"Égl.",ophtalmologue:"Ophtalmo","congrégation":"Congrég.",charcutier:"Charc.","étage":"ét.",consulat:"Consul.",public:"Publ.","ferrée":"Ferr.",matin:"mat.","société anonyme à responsabilité limitée":"SARL",monuments:"Mmts",protection:"Prot.",universel:"Univ.",nationale:"Nale","président":"Pdt",provinciale:"Prov.",agriculteurs:"Agric.","préfectoral":"Préf.",xxe:"20e",alpins:"Alp.",avant:"av.",infirmerie:"Infirm.","deux mil":"2000",rurale:"Rur.",administratifs:"Admin.",octobre:"Oct.",archipel:"Archip.","communauté":"Commté",globales:"Glob.",alpin:"Alp.","numéros":"Nºˢ","lieutenant-colonel":"Lieut.-Col.","jésus-christ":"J.-C.",agricole:"Agric.","sa majesté":"S.Maj.",associative:"Assoc.",xxi:"21","présidentielle":"Pdtle",moyen:"Moy.","fédéral":"Féd.",professionnelle:"Profess.",tertiaire:"Terti.",ixe:"9e","hôpital":"Hôp.",technologies:"Techno.",iiie:"3e","développement":"Dévelop.",monument:"Mmt","forestière":"Forest.","numéro":"Nº",viticulture:"Vitic.","traversière":"Traver.",technique:"Tech.","électriques":"Électr.",militaires:"Milit.",pompier:"Pomp.","américaine":"Amér.","préfet":"Préf.","congrégations":"Congrég.","pâtissier":"Pâtiss.",mondial:"Mond.",ophtalmologie:"Ophtalm.",sainte:"Ste",africaine:"Afric.",aviatrice:"Aviat.",doyens:"Doy.","société":"Sté",majeures:"Maj.",orientale:"Ori.","ministère":"Min.",archiduc:"Archid.",territoire:"Territ.",techniques:"Tech.","île-de-france":"IDF",globale:"Glob.",xe:"10e",xie:"11e",majeure:"Maj.",commerciaux:"Commerc.",maire:"Mair.","spéciaux":"Spéc.",grande:"Gde",messieurs:"MM",colonel:"Col.","millénaire":"Mill.",xi:"11",urbain:"Urb.","fédérale":"Féd.","ferré":"Ferr.","rivière":"Riv.","républicain":"Républ.",grandes:"Gdes","régiment":"Régim.",hauts:"Hts","catégorie":"Catég.",basses:"Bas.",xii:"12",agronomiques:"Agro.",iie:"2e","protégée":"Prot.","sapeur-pompier":"Sap.-pomp."},directions:{"est-nord-est":"ENE",
vendor: 4,679 bytes, line 12
12"nord-est":"NE",ouest:"O","sud-est":"SE","est-sud-est":"ESE","nord-nord-est":"NNE",sud:"S","nord-nord-ouest":"NNO","nord-ouest":"NO",nord:"N","ouest-sud-ouest":"OSO","ouest-nord-ouest":"ONO","sud-ouest":"SO","sud-sud-est":"SSE","sud-sud-ouest":"SSO",est:"E"}}},{}],12:[function(e,t,i){t.exports={abbreviations:{"שדרות":"שד'"},classifications:{},directions:{}}},{}],13:[function(e,t,i){t.exports={abbreviations:{},classifications:{},directions:{kelet:"K","északkelet":"ÉK","dél":"D","északnyugat":"ÉNY","észak":"É","délkelet":"DK","délnyugat":"DNY",nyugat:"NY"}}},{}],14:[function(e,t,i){t.exports={abbreviations:{apartamentai:"Apt","aukÅ¡tumos":"AukÅ¡",centras:"Ctr","ežeras":"Ež",fortas:"Ft",greitkelis:"Grtkl",juosta:"Jst",kaimas:"Km",kalnas:"Kln",kelias:"Kl",kiemelis:"Kml",miestelis:"Mstl","miesto centras":"M.Ctr",mokykla:"Mok",nacionalinis:"Nac",paminklas:"Pmkl",parkas:"Pk",pusratis:"Psrt","sankryža":"Skrž","sesė":"Sesė",skveras:"Skv",stotis:"St","Å¡v":"Å v",tarptautinis:"Trptaut","taÅ¡kas":"TÅ¡k","tėvas":"Tėv",turgus:"Tgs",universitetas:"Univ","upė":"Up",upelis:"Up",vieta:"Vt"},classifications:{"aikÅ¡tė":"a.","alėja":"al.",aplinkkelis:"aplinkl.",autostrada:"auto.",bulvaras:"b.","gatvė":"g.",kelias:"kel.","krantinė":"krant.",prospektas:"pr.",plentas:"pl.",skersgatvis:"skg.",takas:"tak.",tiltas:"tlt."},directions:{"pietÅ«s":"P",vakarai:"V","Å¡iaurė":"Å ","Å¡iaurės vakarai":"Å V","pietryčiai":"PR","Å¡iaurės rytai":"Å R",rytai:"R",pietvakariai:"PV"}}},{}],15:[function(e,t,i){t.exports={abbreviations:{centrum:"Cntrm",nationaal:"Nat’l",berg:"Brg",meer:"Mr",kruising:"Krsng",toetreden:"Ttrdn"},classifications:{bypass:"Pass",brug:"Br",straat:"Str",rechtbank:"Rbank",snoek:"Snk",autobaan:"Baan",terras:"Trrs",punt:"Pt",plaza:"Plz",rijden:"Rijd",parkway:"Pky",inham:"Nham",snelweg:"Weg","halve maan":"Maan",cirkel:"Crkl",laan:"Ln",rijbaan:"Strook",weg:"Weg",lopen:"Lpn",autoweg:"Weg",boulevard:"Blvd",plaats:"Plts",steeg:"Stg",voetpad:"Stoep"},directions:{noordoost:"NO",westen:"W",zuiden:"Z",zuidwest:"ZW",oost:"O",zuidoost:"ZO",noordwest:"NW",noorden:"N"}}},{}],16:[function(e,t,i){t.exports={abbreviations:{"апостола":"ап.","апостолов":"апп.","великомученика":"вмч","великомученицы":"вмц.","владение":"вл.","город":"г.","деревня":"д.","имени":"им.","мученика":"мч.","мучеников":"мчч.","мучениц":"мцц.","мученицы":"мц.","озеро":"о.","посёлок":"п.","преподобного":"прп.","преподобных":"прпп.","река":"р.","святителей":"свтт.","святителя":"свт.","священномученика":"сщмч.","священномучеников":"сщмчч.","станция":"ст.","участок":"уч."},classifications:{"проезд":"пр-д","проспект":"пр.","переулок":"пер.","набережная":"наб.","площадь":"пл.","шоссе":"ш.","бульвар":"б.","тупик":"туп.","улица":"ул."},directions:{"восток":"В","северо-восток":"СВ","юго-восток":"ЮВ","юго-запад":"ЮЗ","северо-запад":"СЗ","север":"С","запад":"З","юг":"Ю"}}},{}],17:[function(e,t,i){t.exports={abbreviations:{},classifications:{},directions:{vzhod:"V",severovzhod:"SV",jug:"J",severozahod:"SZ",sever:"S",jugovzhod:"JV",jugozahod:"JZ",zahod:"Z"}}},{}],18:[function(e,t,i){t.exports={abbreviations:{sankta:"s:ta",gamla:"G:la",sankt:"s:t"},classifications:{Bro:"Br"},directions:{norr:"N","sydöst":"SO","väster":"V","öster":"O","nordväst":"NV","sydväst":"SV","söder":"S","nordöst":"NO"}}},{}],19:[function(e,t,i){t.exports={abbreviations:{},classifications:{},directions:{"схід":"Сх","північний схід":"ПнСх","південь":"Пд","північний захід":"ПнЗд","північ":"Пн","південний схід":"ПдСх","південний захід":"ПдЗх","захід":"Зх"}}},{}],20:[function(e,t,i){t.exports={abbreviations:{"viện bảo tàng":"VBT","thị trấn":"Tt","đại học":"ĐH","căn cứ không quan":"CCKQ","câu lạc bộ":"CLB","bưu điện":"BĐ","khách sạn":"KS","khu du lịch":"KDL","khu công nghiệp":"KCN","khu nghỉ mát":"KNM","thị xã":"Tx","khu chung cư":"KCC","phi trường":"PT","trung tâm":"TT","tổng công ty":"TCty","trung học cÆ¡ sở":"THCS","sân bay quốc tế":"SBQT","trung học phổ thông":"THPT","cao đẳng":"CĐ","công ty":"Cty","sân bay":"SB","thành phố":"Tp","công viên":"CV","sân vận động":"SVĐ","linh má
12»¥c":"LM","vườn quốc gia":"VQG"},classifications:{"huyện lộ":"HL","đường tỉnh":"ĐT","quốc lộ":"QL","xa lộ":"XL","hương lộ":"HL","tỉnh lộ":"TL","đường huyện":"ĐH","đường cao tốc":"ĐCT","đại lộ":"ĐL","việt nam":"VN","quảng trường":"QT","đường bộ":"ĐB"},directions:{"tây":"T",nam:"N","đông nam":"ĐN","đông bắc":"ĐB","tây nam":"TN","đông":"Đ","bắc":"B"}}},{}],21:[function(e,t,i){t.exports={meta:{regExpFlags:"gi"},v5:{article:[["^ Acc[èe]s "," l’accès "],["^ Aire "," l’aire "],["^ All[ée]e "," l’allée "],["^ Anse "," l’anse "],["^ (L['’])?Autoroute "," l’autoroute "],["^ Avenue "," l’avenue "],["^ Barreau "," le barreau "],["^ Boulevard "," le boulevard "],["^ Chemin "," le chemin "],["^ Petit[\\- ]Chemin "," le petit chemin "],["^ Cit[ée] "," la cité "],["^ Clos "," le clos "],["^ Corniche "," la corniche "],["^ Cour "," la cour "],["^ Cours "," le cours "],["^ D[ée]viation "," la déviation "],["^ Entr[ée]e "," l’entrée "],["^ Esplanade "," l’esplanade "],["^ Galerie "," la galerie "],["^ Impasse "," l’impasse "],["^ Lotissement "," le lotissement "],["^ Mont[ée]e "," la montée "],["^ Parc "," le parc "],["^ Parvis "," le parvis "],["^ Passage "," le passage "],["^ Place "," la place "],["^ Petit[\\- ]Pont "," le petit-pont "],["^ Pont "," le pont "],["^ Promenade "," la promenade "],["^ Quai "," le quai "],["^ Rocade "," la rocade "],["^ Rond[\\- ]?Point "," le rond-point "],["^ Route "," la route "],["^ Rue "," la rue "],["^ Grande Rue "," la grande rue "],["^ Sente "," la sente "],["^ Sentier "," le sentier "],["^ Sortie "," la sortie "],["^ Souterrain "," le souterrain "],["^ Square "," le square "],["^ Terrasse "," la terrasse "],["^ Traverse "," la traverse "],["^ Tunnel "," le tunnel "],["^ Viaduc "," le viaduc "],["^ Villa "," la villa "],["^ Village "," le village "],["^ Voie "," la voie "],[" ([dl])'"," $1’"]],preposition:[["^ Le ","  du "],["^ Les ","  des "],["^ La ","  de La "],["^ Acc[èe]s ","  de l’accès "],["^ Aire ","  de l’aire "],["^ All[ée]e ","  de l’allée "],["^ Anse ","  de l’anse "],["^ (L['’])?Autoroute ","  de l’autoroute "],["^ Avenue ","  de l’avenue "],["^ Barreau ","  du barreau "],["^ Boulevard ","  du boulevard "],["^ Chemin ","  du chemin "],["^ Petit[\\- ]Chemin ","  du petit chemin "],["^ Cit[ée] ","  de la cité "],["^ Clos ","  du clos "],["^ Corniche ","  de la corniche "],["^ Cour ","  de la cour "],["^ Cours ","  du cours "],["^ D[ée]viation ","  de la déviation "],["^ Entr[ée]e ","  de l’entrée "],["^ Esplanade ","  de l’esplanade "],["^ Galerie ","  de la galerie "],["^ Impasse ","  de l’impasse "],["^ Lotissement ","  du lotissement "],["^ Mont[ée]e ","  de la montée "],["^ Parc ","  du parc "],["^ Parvis ","  du parvis "],["^ Passage ","  du passage "],["^ Place ","  de la place "],["^ Petit[\\- ]Pont ","  du petit-pont "],["^ Pont ","  du pont "],["^ Promenade ","  de la promenade "],["^ Quai ","  du quai "],["^ Rocade ","  de la rocade "],["^ Rond[\\- ]?Point ","  du rond-point "],["^ Route ","  de la route "],["^ Rue ","  de la rue "],["^ Grande Rue ","  de la grande rue "],["^ Sente ","  de la sente "],["^ Sentier ","  du sentier "],["^ Sortie ","  de la sortie "],["^ Souterrain ","  du souterrain "],["^ Square ","  du square "],["^ Terrasse ","  de la terrasse "],["^ Traverse ","  de la traverse "],["^ Tunnel ","  du tunnel "],["^ Viaduc ","  du viaduc "],["^ Villa ","  de la villa "],["^ Village ","  du village "],["^ Voie ","  de la voie "],["^ ([AÂÀEÈÉÊËIÎÏOÔUÙÛÜYŸÆŒ])","  d’$1"],["^ (\\S)","  de $1"],[" ([dl])'"," $1’"]],rotary:[["^ Le ","  le rond-point du "],["^ Les ","  le rond-point des "],["^ La ","  le rond-point de La "],["^ Acc[èe]s "," le rond-point de l’accès "],["^ Aire ","  le rond-point de l’aire "],["^ All[ée]e ","  le rond-point de l’allée "],["^ Anse ","  le rond-point de l’anse "],["^ (L['’])?Autoroute ","  le rond-point de l’autoroute "],["^ Avenue ","  le rond-point de l’avenue "],["^ Barreau ","  le rond-point du barreau "],["^ Boulevard ","  le rond-point du boulevard "],["^ Chemin ","  le rond-point du chemin "],["^ Petit[\\- ]Chemin ","  le rond-point du petit chemin "],["^ Cit[ée] ","  le rond-point de la cité "],["^ Clos ","  le rond-point du clos "],["^ Corniche ","  le rond-point de la corniche "],["^ Cour ","  le rond-point de la cour "],["^ Cours ","  le rond-point du cours "],["^ D[ée]viation ","  le rond-point de la déviation "],["^ Entr[ée]e ","  le rond-point de l’entrée "],["^ Esplanade ","  le rond-point de l’esplanade "],["^ Galerie ","  le rond-point de la galer
12ie "],["^ Impasse ","  le rond-point de l’impasse "],["^ Lotissement ","  le rond-point du lotissement "],["^ Mont[ée]e ","  le rond-point de la montée "],["^ Parc ","  le rond-point du parc "],["^ Parvis ","  le rond-point du parvis "],["^ Passage ","  le rond-point du passage "],["^ Place ","  le rond-point de la place "],["^ Petit[\\- ]Pont ","  le rond-point du petit-pont "],["^ Pont ","  le rond-point du pont "],["^ Promenade ","  le rond-point de la promenade "],["^ Quai ","  le rond-point du quai "],["^ Rocade ","  le rond-point de la rocade "],["^ Rond[\\- ]?Point ","  le rond-point "],["^ Route ","  le rond-point de la route "],["^ Rue ","  le rond-point de la rue "],["^ Grande Rue ","  le rond-point de la grande rue "],["^ Sente ","  le rond-point de la sente "],["^ Sentier ","  le rond-point du sentier "],["^ Sortie ","  le rond-point de la sortie "],["^ Souterrain ","  le rond-point du souterrain "],["^ Square ","  le rond-point du square "],["^ Terrasse ","  le rond-point de la terrasse "],["^ Traverse ","  le rond-point de la traverse "],["^ Tunnel ","  le rond-point du tunnel "],["^ Viaduc ","  le rond-point du viaduc "],["^ Villa ","  le rond-point de la villa "],["^ Village ","  le rond-point du village "],["^ Voie ","  le rond-point de la voie "],["^ ([AÂÀEÈÉÊËIÎÏOÔUÙÛÜYŸÆŒ])","  le rond-point d’$1"],["^ (\\S)","  le rond-point de $1"],[" ([dl])'"," $1’"]],arrival:[["^ Le ","  au "],["^ Les ","  aux "],["^ La ","  à La "],["^ (\\S)","  à $1"],[" ([dl])'"," $1’"]]}}},{}],22:[function(e,t,i){t.exports={meta:{regExpFlags:""},v5:{accusative:[['^ ([«"])'," трасса $1"],["^ (\\S+)ая [Аа]ллея "," $1ую аллею "],["^ (\\S+)ья [Аа]ллея "," $1ью аллею "],["^ (\\S+)яя [Аа]ллея "," $1юю аллею "],["^ (\\d+)-я (\\S+)ая [Аа]ллея "," $1-ю $2ую аллею "],["^ [Аа]ллея "," аллею "],["^ (\\S+)ая-(\\S+)ая [Уу]лица "," $1ую-$2ую улицу "],["^ (\\S+)ая [Уу]лица "," $1ую улицу "],["^ (\\S+)ья [Уу]лица "," $1ью улицу "],["^ (\\S+)яя [Уу]лица "," $1юю улицу "],["^ (\\d+)-я [Уу]лица "," $1-ю улицу "],["^ (\\d+)-я (\\S+)ая [Уу]лица "," $1-ю $2ую улицу "],["^ (\\S+)ая (\\S+)ая [Уу]лица "," $1ую $2ую улицу "],["^ (\\S+[вн])а [Уу]лица "," $1у улицу "],["^ (\\S+)ая (\\S+[вн])а [Уу]лица "," $1ую $2у улицу "],["^ Даньславля [Уу]лица "," Даньславлю улицу "],["^ Добрыня [Уу]лица "," Добрыню улицу "],["^ Людогоща [Уу]лица "," Людогощу улицу "],["^ [Уу]лица "," улицу "],["^ (\\d+)-я [Лл]иния "," $1-ю линию "],["^ (\\d+)-(\\d+)-я [Лл]иния "," $1-$2-ю линию "],["^ (\\S+)ая [Лл]иния "," $1ую линию "],["^ (\\S+)ья [Лл]иния "," $1ью линию "],["^ (\\S+)яя [Лл]иния "," $1юю линию "],["^ (\\d+)-я (\\S+)ая [Лл]иния "," $1-ю $2ую линию "],["^ [Лл]иния "," линию "],["^ (\\d+)-(\\d+)-я [Лл]инии "," $1-$2-ю линии "],["^ (\\S+)ая [Нн]абережная "," $1ую набережную "],["^ (\\S+)ья [Нн]абережная "," $1ью набережную "],["^ (\\S+)яя [Нн]абережная "," $1юю набережную "],["^ (\\d+)-я (\\S+)ая [Нн]абережная "," $1-ю $2ую набережную "],["^ [Нн]абережная "," набережную "],["^ (\\S+)ая [Пп]лощадь "," $1ую площадь "],["^ (\\S+)ья [Пп]лощадь "," $1ью площадь "],["^ (\\S+)яя [Пп]лощадь "," $1юю площадь "],["^ (\\S+[вн])а [Пп]лощадь "," $1у площадь "],["^ (\\d+)-я (\\S+)ая [Пп]лощадь "," $1-ю $2ую площадь "],["^ [Пп]лощадь "," площадь "],["^ (\\S+)ая [Пп]росека "," $1ую просеку "],["^ (\\S+)ья [Пп]росека "," $1ью просеку "],["^ (\\S+)яя [Пп]росека "," $1юю просеку "],["^ (\\d+)-я [Пп]росека "," $1-ю просеку "],["^ [Пп]росека "," просеку "],["^ (\\S+)ая [Ээ]стакада "," $1ую эстакаду "],["^ (\\S+)ья [Ээ]стакада "," $1ью эстакаду "],["^ (\\S+)яя [Ээ]стакада "," $1юю эстакаду "],["^ (\\d+)-я (\\S+)ая [Ээ]стакада "," $1-ю $2ую эстакаду "],["^ [Ээ]стакада "," эстакаду "],["^ (\\S+)ая [Мм]агистраль "," $1ую магистраль "],["^ (\\S+)ья [Мм]агистраль "," $1ью магистраль "],["^ (\\S+)яя [Мм]агистраль "," $1юю магистраль "],["^ (\\S+)ая (\\S+)ая [Мм]агистраль "," $1ую $2ую магистраль "],["^ (\\d+)-я (\\S+)ая [Мм]агистраль "," $1-ю $2ую магистраль "],["^ [Мм]агистраль "," магистраль "],["^ (\\S+)ая [Рр]азвязка "," $1ую развязку "],["^ (\\S+)ья [Рр]азвязка "," $1ью развязку "],["^ (\\S+)яя [Рр]азвязка "," $1юю развязку "],["^ (\\d+)-я (\\S+)ая [Рр]азвязка "," $1-ю $2ую развязку "],["^ [Рр]азвязка "," развязку "],["^ (\\S+)ая [Тт]расса "," $1ую трассу "],["^ (\\S+)ья [Тт]расса "," $1ью трассу "],["^ (\\S+)яя [Тт]расса "," $1юю трассу "],["^ (\\d+)-я (\\S+)ая [Тт]расса "," $1-ю $2ую трассу "],["^ [Тт]расса "," трассу "],["^ (\\S+)ая ([Аа]вто)?[Дд]орога "," $1ую $2дорогу "],["^ (\\S+)ья ([Аа]вто)?[Дд]орога "," $1ью $2дорогу "],["^ (\\S+)яя ([Аа]вто)?[Дд]орога "," $1юю $2дорогу "],["^ (\\S+)ая (\\S+)ая ([Аа]вто)?[Дд]орога "," $1ую $2ую $3дорогу "],["^ (\\d+)-я (\\S+)ая ([Аа]вто)?[Дд]орога "," $1-ю $2ую $3дорогу "],["^ ([Аа]вто)?[Дд]орога "," $1дорогу "],["^ (\\S+)ая [Дд]орожка "," $1ую дорожку "],["^ (\\S+)ья [Дд]орожка "," $1ью дорожку "],["^ (\\S+)яя [Дд]орожка "," $1юю дорожку "],["^ (\\d+)-я (\\S+)ая [Дд]орожка "," $1-ю $2ую дорожку "],["^ [Дд]орожка "," дорожку "],["^ (\\S+)ая [Кк]оса "," $1ую косу "],["^ (\\S+)ая [Хх]орда "," $1ую хорду "],["^ [Дд]убл[её]р "," дублёр "]],dative:[['^ ([«"])'," трасса $1"],["^ (\\S+)ая [Аа]ллея "," $1ой аллее "],["^ (\\S+)ья [Аа]ллея "," $1ьей аллее "],["^ (\\S+)яя [Аа]ллея "," $1ей аллее "],["^ (\\d+)-я (\\S+)ая [Аа]ллея "," $1-й $2ой аллее "],["^ [Аа]ллея "," аллее "],["^ (\\S+)ая-(\\S+)ая [Уу]лица "," $1ой-$2ой улице "],["^ (\\S+)ая [Уу]лица "," $1ой улице "],["^ (\\S+)ья [Уу]лица "," $1ьей улице "],["^ (\\S+)яя [Уу]лица "," $1ей улице "],["^ (\\d+)-я [Уу]лица "," $1-й улице "],["^ (\\d+)-я (\\S+)ая [Уу]лица "," $1-й $2ой улице "],["^ (\\S+)ая (\\S+)ая [Уу]лица "," $1ой $2ой улице "],["^ (\\S+[вн])а [Уу]лица "," $1ой улице "],["^ (\\S+)ая (\\S+[вн])а [Уу]лица "," $1ой $2ой улице "],["^ Даньславля [Уу]лица "," Даньславлей улице "],["^ Добрыня [Уу]лица "," Добрыней улице "],["^ Людогоща [Уу]лица "," Людогощей улице "],["^ [Уу]лица "," улице "],["^ (\\d+)-я [Лл]иния "," $1-й линии "],["^ (\\d+)-(\\d+)-я [Лл]иния "," $1-$2-й линии "],["^ (\\S+)ая [Лл]иния "," $1ой линии "],["^ (\\S+)ья [Лл]иния "," $1ьей линии "],["^ (\\S+)яя [Лл]иния "," $1ей линии "],["^ (\\d+)-я (\\S+)ая [Лл]иния "," $1-й $2ой линии "],["^ [Лл]иния "," линии "],["^ (\\d+)-(\\d+)-я [Лл]инии "," $1-$2-й линиям "],["^ (\\S+)ая [Нн]абережная "," $1ой набережной "],["^ (\\S+)ья [Нн]абережная "," $1ьей набережной "],["^ (\\S+)яя [Нн]абережная "," $1ей набережной "],["^ (\\d+)-я (\\S+)ая [Нн]абережная "," $1-й $2ой набережной "],["^ [Нн]абережная "," набережной "],["^ (\\S+)ая [Пп]лощадь "," $1ой площади "],["^ (\\S+)ья [Пп]лощадь "," $1ьей площади "],["^ (\\S+)яя [Пп]лощадь "," $1ей площади "],["^ (\\S+[вн])а [Пп]лощадь "," $1ой площади "],["^ (\\d+)-я (\\S+)ая [Пп]лощадь "," $1-й $2ой площади "],["^ [Пп]лощадь "," площади "],["^ (\\S+)ая [Пп]росека "," $1ой просеке "],["^ (\\S+)ья [Пп]росека "," $1ьей просеке "],["^ (\\S+)яя [Пп]росека "," $1ей просеке "],["^ (\\d+)-я [Пп]росека "," $1-й просеке "],["^ [Пп]росека "," просеке "],["^ (\\S+)ая [Ээ]стакада "," $1ой эстакаде "],["^ (\\S+)ья [Ээ]стакада "," $1ьей эстакаде "],["^ (\\S+)яя [Ээ]стакада "," $1ей эстакаде "],["^ (\\d+)-я (\\S+)ая [Ээ]стакада "," $1-й $2ой эстакаде "],["^ [Ээ]стакада "," эстакаде "],["^ (\\S+)ая [Мм]агистраль "," $1ой магистрали "],["^ (\\S+)ья [Мм]агистраль "," $1ьей магистрали "],["^ (\\S+)яя [Мм]агистраль "," $1ей магистрали "],["^ (\\S+)ая (\\S+)ая [Мм]агистраль "," $1ой $2ой магистрали "],["^ (\\d+)-я (\\S+)ая [Мм]агистраль "," $1-й $2ой магистрали "],["^ [Мм]агистраль "," магистрали "],["^ (\\S+)ая [Рр]азвязка "," $1ой развязке "],["^ (\\S+)ья [Рр]азвязка "," $1ьей развязке "],["^ (\\S+)яя [Рр]азвязка "," $1ей развязке "],["^ (\\d+)-я (\\S+)ая [Рр]азвязка "," $1-й $2ой развязке "],["^ [Рр]азвязка "," развязке "],["^ (\\S+)ая [Тт]расса "," $1ой трассе "],["^ (\\S+)ья [Тт]расса "," $1ьей трассе "],["^ (\\S+)яя [Тт]расса "," $1ей трассе "],["^ (\\d+)-я (\\S+)ая [Тт]расса "," $1-й $2ой трассе "],["^ [Тт]расса "," трассе "],["^ (\\S+)ая ([Аа]вто)?[Дд]орога "," $1ой $2дороге "],["^ (\\S+)ья ([Аа]вто)?[Дд]орога "," $1ьей $2дороге "],["^ (\\S+)яя ([Аа]вто)?[Дд]орога "," $1ей $2дороге "],["^ (\\S+)ая (\\S+)ая ([Аа]вто)?[Дд]орога "," $1ой $2ой $3дороге "],["^ (\\d+)-я (\\S+)ая ([Аа]вто)?[Дд]орога "," $1-й $2ой $3дороге "],["^ ([Аа]вто)?[Дд]орога "," $1дороге "],["^ (\\S+)ая [Дд]орожка "," $1ой дорожке "],["^ (\\S+)ья [Дд]орожка "," $1ьей дорожке "],["^ (\\S+)яя [Дд]орожка "," $1ей дорожке "],["^ (\\d+)-я (\\S+)ая [Дд]орожка "," $1-й $2ой дорожке "],["^ [Дд]орожка "," дорожке "],["^ (\\S+)во [Пп]оле "," $1ву полю "],["^ (\\S+)ая [Кк]оса "," $1ой косе "],["^ (\\S+)ая [Хх]орда "," $1ой хорде "],["^ (\\S+)[иоы]й [Пп]роток "," $1ому протоку "],["^ (\\S+н)ий [Бб]ульвар "," $1ему буÐ
12»ÑŒÐ²Ð°Ñ€Ñƒ "],["^ (\\S+)[иоы]й [Бб]ульвар "," $1ому бульвару "],["^ (\\S+[иы]н) [Бб]ульвар "," $1у бульвару "],["^ (\\S+)[иоы]й (\\S+н)ий [Бб]ульвар "," $1ому $2ему бульвару "],["^ (\\S+н)ий (\\S+)[иоы]й [Бб]ульвар "," $1ему $2ому бульвару "],["^ (\\S+)[иоы]й (\\S+)[иоы]й [Бб]ульвар "," $1ому $2ому бульвару "],["^ (\\S+)[иоы]й (\\S+[иы]н) [Бб]ульвар "," $1ому $2у бульвару "],["^ (\\d+)-й (\\S+н)ий [Бб]ульвар "," $1-му $2ему бульвару "],["^ (\\d+)-й (\\S+)[иоы]й [Бб]ульвар "," $1-му $2ому бульвару "],["^ (\\d+)-й (\\S+[иы]н) [Бб]ульвар "," $1-му $2у бульвару "],["^ [Бб]ульвар "," бульвару "],["^ [Дд]убл[её]р "," дублёру "],["^ (\\S+н)ий [Зз]аезд "," $1ему заезду "],["^ (\\S+)[иоы]й [Зз]аезд "," $1ому заезду "],["^ (\\S+[еёо]в) [Зз]аезд "," $1у заезду "],["^ (\\S+[иы]н) [Зз]аезд "," $1у заезду "],["^ (\\S+)[иоы]й (\\S+н)ий [Зз]аезд "," $1ому $2ему заезду "],["^ (\\S+н)ий (\\S+)[иоы]й [Зз]аезд "," $1ему $2ому заезду "],["^ (\\S+)[иоы]й (\\S+)[иоы]й [Зз]аезд "," $1ому $2ому заезду "],["^ (\\S+)[иоы]й (\\S+[еёо]в) [Зз]аезд "," $1ому $2у заезду "],["^ (\\S+)[иоы]й (\\S+[иы]н) [Зз]аезд "," $1ому $2у заезду "],["^ (\\d+)-й (\\S+н)ий [Зз]аезд "," $1-му $2ему заезду "],["^ (\\d+)-й (\\S+)[иоы]й [Зз]аезд "," $1-му $2ому заезду "],["^ (\\d+)-й (\\S+[еёо]в) [Зз]аезд "," $1-му $2у заезду "],["^ (\\d+)-й (\\S+[иы]н) [Зз]аезд "," $1-му $2у заезду "],["^ [Зз]аезд "," заезду "],["^ (\\S+н)ий [Мм]ост "," $1ему мосту "],["^ (\\S+)[иоы]й [Мм]ост "," $1ому мосту "],["^ (\\S+[еёо]в) [Мм]ост "," $1у мосту "],["^ (\\S+[иы]н) [Мм]ост "," $1у мосту "],["^ (\\S+)[иоы]й (\\S+н)ий [Мм]ост "," $1ому $2ему мосту "],["^ (\\S+н)ий (\\S+)[иоы]й [Мм]ост "," $1ему $2ому мосту "],["^ (\\S+)[иоы]й (\\S+)[иоы]й [Мм]ост "," $1ому $2ому мосту "],["^ (\\S+)[иоы]й (\\S+[еёо]в) [Мм]ост "," $1ому $2у мосту "],["^ (\\S+)[иоы]й (\\S+[иы]н) [Мм]ост "," $1ому $2у мосту "],["^ (\\d+)-й [Мм]ост "," $1-му мосту "],["^ (\\d+)-й (\\S+н)ий [Мм]ост "," $1-му $2ему мосту "],["^ (\\d+)-й (\\S+)[иоы]й [Мм]ост "," $1-му $2ому мосту "],["^ (\\d+)-й (\\S+[еёо]в) [Мм]ост "," $1-му $2у мосту "],["^ (\\d+)-й (\\S+[иы]н) [Мм]ост "," $1-му $2у мосту "],["^ [Мм]ост "," мосту "],["^ (\\S+н)ий [Оо]бход "," $1ему обходу "],["^ (\\S+)[иоы]й [Оо]бход "," $1ому обходу "],["^ [Оо]бход "," обходу "],["^ (\\S+н)ий [Пп]арк "," $1ему парку "],["^ (\\S+)[иоы]й [Пп]арк "," $1ому парку "],["^ (\\S+[иы]н) [Пп]арк "," $1у парку "],["^ (\\S+)[иоы]й (\\S+н)ий [Пп]арк "," $1ому $2ему парку "],["^ (\\S+н)ий (\\S+)[иоы]й [Пп]арк "," $1ему $2ому парку "],["^ (\\S+)[иоы]й (\\S+)[иоы]й [Пп]арк "," $1ому $2ому парку "],["^ (\\S+)[иоы]й (\\S+[иы]н) [Пп]арк "," $1ому $2у парку "],["^ (\\d+)-й (\\S+н)ий [Пп]арк "," $1-му $2ему парку "],["^ (\\d+)-й (\\S+)[иоы]й [Пп]арк "," $1-му $2ому парку "],["^ (\\d+)-й (\\S+[иы]н) [Пп]арк "," $1-му $2у парку "],["^ [Пп]арк "," парку "],["^ (\\S+)[иоы]й-(\\S+)[иоы]й [Пп]ереулок "," $1ому-$2ому переулку "],["^ (\\d+)-й (\\S+)[иоы]й-(\\S+)[иоы]й [Пп]ереулок "," $1-му $2ому-$3ому переулку "],["^ (\\S+н)ий [Пп]ереулок "," $1ему переулку "],["^ (\\S+)[иоы]й [Пп]ереулок "," $1ому переулку "],["^ (\\S+[еёо]в) [Пп]ереулок "," $1у переулку "],["^ (\\S+[иы]н) [Пп]ереулок "," $1у переулку "],["^ (\\S+)[иоы]й (\\S+н)ий [Пп]ереулок "," $1ому $2ему переулку "],["^ (\\S+н)ий (\\S+)[иоы]й [Пп]ереулок "," $1ему $2ому переулку "],["^ (\\S+)[иоы]й (\\S+)[иоы]й [Пп]ереулок "," $1ому $2ому переулку "],["^ (\\S+)[иоы]й (\\S+[еёо]в) [Пп]ереулок "," $1ому $2у переулку "],["^ (\\S+)[иоы]й (\\S+[иы]н) [Пп]ереулок "," $1ому $2у переулку "],["^ (\\d+)-й [Пп]ереулок "," $1-му переулку "],["^ (\\d+)-й (\\S+н)ий [Пп]ереулок "," $1-му $2ему переулку "],["^ (\\d+)-й (\\S+)[иоы]й [Пп]ереулок "," $1-му $2ому переулку "],["^ (\\d+)-й (\\S+[еёо]в) [Пп]ереулок "," $1-му $2у переулку "],["^ (\\d+)-й (\\S+[иы]н) [Пп]ереулок "," $1-му $2у переулку "],["^ [Пп]ереулок "," переулку "],["^ [Пп]одъезд "," подъезду "],["^ (\\S+[еёо]в)-(\\S+)[иоы]й [Пп]роезд "," $1у-$2ому проезду "],["^ (\\S+н)ий [Пп]роезд "," $1ему проезду "],["^ (\\S+)[иоы]й [Пп]роезд "," $1ому проезду "],["^ (\\S+[еёо]в) [Пп]роезд "," $1у проезду "],["^ (\\S+[иы]н) [Пп]роезд "," $1у проезду "],["^ (\\S+)[иоы]й (\\S+н)ий [Пп]роезд "," $1ому $2ему проезду "],["^ (\\S+н)ий (\\S+)[иоы]й [Пп]роезд "," $1ему $2ому проезду "],["^ (\\S+)[иоы]й (\\S+)[иоы]й [Пп]роезд "," $1ому $2ому проезду "],["^ (\\S+)[иоы]й (\\S+[еёо]в) [Пп]роезд "," $1ому $2у проезду "],["^ (\\S+)[иоы]й (\\S+[иы]н) [Пп]роезд "," $1ому $2у проезду "],["^ (\\d+)-й [Пп]роезд "," $1-му проезду "],["^ (\\d+)-й (\\S+н)ий [Пп]роезд "," $1-му $2ему проезду "],["^ (\\d+)-й (\\S+)[иоы]й [Пп]роезд "," $1-му $2ому проезду "],["^ (\\d+)-й (\\S+[еёо]в) [Пп]роезд "," $1-му $2у проезду "],["^ (\\d+)-й (\\S+[иы]н) [Пп]роезд "," $1-му $2у проезду "],["^ (\\d+)-й (\\S+н)ий (\\S+)[иоы]й [Пп]роезд "," $1-му $2ему $3ому проезду "],["^ (\\d+)-й (\\S+)[иоы]й (\\S+)[иоы]й [Пп]роезд "," $1-му $2ому $3ому проезду "],["^ [Пп]роезд "," проезду "],["^ (\\S+н)ий [Пп]роспект "," $1ему проспекту "],["^ (\\S+)[иоы]й [Пп]роспект "," $1ому проспекту "],["^ (\\S+[иы]н) [Пп]роспект "," $1у проспекту "],["^ (\\S+)[иоы]й (\\S+н)ий [Пп]роспект "," $1ому $2ему проспекту "],["^ (\\S+н)ий (\\S+)[иоы]й [Пп]роспект "," $1ему $2ому проспекту "],["^ (\\S+)[иоы]й (\\S+)[иоы]й [Пп]роспект "," $1ому $2ому проспекту "],["^ (\\S+)[иоы]й (\\S+[иы]н) [Пп]роспект "," $1ому $2у проспекту "],["^ (\\d+)-й (\\S+н)ий [Пп]роспект "," $1-му $2ему проспекту "],["^ (\\d+)-й (\\S+)[иоы]й [Пп]роспект "," $1-му $2ому проспекту "],["^ (\\d+)-й (\\S+[иы]н) [Пп]роспект "," $1-му $2у проспекту "],["^ [Пп]роспект "," проспекту "],["^ (\\S+н)ий [Пп]утепровод "," $1ему путепроводу "],["^ (\\S+)[иоы]й [Пп]утепровод "," $1ому путепроводу "],["^ (\\S+[иы]н) [Пп]утепровод "," $1у путепроводу "],["^ (\\S+)[иоы]й (\\S+н)ий [Пп]утепровод "," $1ому $2ему путепроводу "],["^ (\\S+н)ий (\\S+)[иоы]й [Пп]утепровод "," $1ему $2ому путепроводу "],["^ (\\S+)[иоы]й (\\S+)[иоы]й [Пп]утепровод "," $1ому $2ому путепроводу "],["^ (\\S+)[иоы]й (\\S+[иы]н) [Пп]утепровод "," $1ому $2у путепроводу "],["^ (\\d+)-й (\\S+н)ий [Пп]утепровод "," $1-му $2ему путепроводу "],["^ (\\d+)-й (\\S+)[иоы]й [Пп]утепровод "," $1-му $2ому путепроводу "],["^ (\\d+)-й (\\S+[иы]н) [Пп]утепровод "," $1-му $2у путепроводу "],["^ [Пп]утепровод "," путепроводу "],["^ (\\S+н)ий [Сс]пуск "," $1ему спуску "],["^ (\\S+)[иоы]й [Сс]пуск "," $1ому спуску "],["^ (\\S+[еёо]в) [Сс]пуск "," $1у спуску "],["^ (\\S+[иы]н) [Сс]пуск "," $1у спуску "],["^ (\\S+)[иоы]й (\\S+н)ий [Сс]пуск "," $1ому $2ему спуску "],["^ (\\S+н)ий (\\S+)[иоы]й [Сс]пуск "," $1ему $2ому спуску "],["^ (\\S+)[иоы]й (\\S+)[иоы]й [Сс]пуск "," $1ому $2ому спуску "],["^ (\\S+)[иоы]й (\\S+[еёо]в) [Сс]пуск "," $1ому $2у спуску "],["^ (\\S+)[иоы]й (\\S+[иы]н) [Сс]пуск "," $1ому $2у спуску "],["^ (\\d+)-й (\\S+н)ий [Сс]пуск "," $1-му $2ему спуску "],["^ (\\d+)-й (\\S+)[иоы]й [Сс]пуск "," $1-му $2ому спуску "],["^ (\\d+)-й (\\S+[еёо]в) [Сс]пуск "," $1-му $2у спуску "],["^ (\\d+)-й (\\S+[иы]н) [Сс]пуск "," $1-му $2у спуску "],["^ [Сс]пуск "," спуску "],["^ (\\S+н)ий [Сс]ъезд "," $1ему съезду "],["^ (\\S+)[иоы]й [Сс]ъезд "," $1ому съезду "],["^ (\\S+[иы]н) [Сс]ъезд "," $1у съезду "],["^ (\\S+)[иоы]й (\\S+н)ий [Сс]ъезд "," $1ому $2ему съезду "],["^ (\\S+н)ий (\\S+)[иоы]й [Сс]ъезд "," $1ему $2ому съезду "],["^ (\\S+)[иоы]й (\\S+)[иоы]й [Сс]ъезд "," $1ому $2ому съезду "],["^ (\\S+)[иоы]й (\\S+[иы]н) [Сс]ъезд "," $1ому $2у съезду "],["^ (\\d+)-й (\\S+н)ий [Сс]ъезд "," $1-му $2ему съезду "],["^ (\\d+)-й (\\S+)[иоы]й [Сс]ъезд "," $1-му $2ому съезду "],["^ (\\d+)-й (\\S+[иы]н) [Сс]ъезд "," $1-му $2у съезду "],["^ [Сс]ъезд "," съезду "],["^ (\\S+н)ий [Тт][уо]ннель "," $1ему тоннелю "],["^ (\\S+)[иоы]й [Тт][уо]ннель "," $1ому тоннелю "],["^ (\\S+[иы]н) [Тт][уо]ннель "," $1у тоннелю "],["^ (\\S+)[иоы]й (\\S+н)ий [Тт][уо]ннель "," $1ому $2ему тоннелю "],["^ (\\S+н)ий (\\S+)[иоы]й [Тт][уо]ннель "," $1ему $2ому тоннелю "],["^ (\\S+)[иоы]й (\\S+)[иоы]й [Тт][уо]ннель "," $1ому $2ому тоннелю "],["^ (\\S+)[иоы]й (\\S+[иы]н) [Тт][уо]ннель "," $1ому $2у тоннелю "],["^ (\\d+)-й (\\S+н)ий [Тт][уо]ннель "," $1-му $2ему тоннелю "],["^ (\\d+)-й (\\S+)[иоы]й [Тт][уо]ннель "," $1-му $2ому тоннелю "],["^ (\\d+)-й (\\S+[иы]н) [Тт][уо]ннель "," $1-му $2у тоннелю "],["^ [Тт][уо]ннель "," тоннелю "],["^ (\\S+н)ий [Тт]ракт "," $1ему тракту "],["^ (\\S+)[иоы]й [Тт]ракт "," $1ому тракту "],["^ (\\S+[еёо]в) [Тт]ракт "," $1у тракту "],["^ (\\S+[иы]н) [Тт]ракт "," $1у тракту "],["^ (\\S+)[иоы]й (\\S+н)ий [Тт]ракт "," $1ому $2ему тракту "],["^ (\\S+н)ий (\\S+)[иоы]й [Тт]ракт "," $1ему $2ому тракту "],["^ (\\S+)[иоы]й (\\S+)[иоы]й [Тт]ракт "," $1ому $2ому тракту "],["^ (\\S+)[иоы]й (\\S+[еёо]в) [Тт]ракт "," $1ому $2у тракту "],["^ (\\S+)[иоы]й (\\S+[иы]н) [Тт]ракт "," $1ому $2у тракту "],["^ (\\d+)-й (\\S+н)ий [Тт]ракт "," $1-му $2ему тракту "],["^ (\\d+)-й (\\S+)[иоы]й [Тт]ракт "," $1-му $2ому тракту "],["^ (\\d+)-й (\\S+[еёо]в) [Тт]ракт "," $1-му $2у тракту "],["^ (\\d+)-й (\\S+[иы]н) [Тт]ракт "," $1-му $2у тракту "],["^ [Тт]ракт "," тракту "],["^ (\\S+н)ий [Тт]упик "," $1ему тупику "],["^ (\\S+)[иоы]й [Тт]упик "," $1ому тупику "],["^ (\\S+[еёо]в) [Тт]упик "," $1у тупику "],["^ (\\S+[иы]н) [Тт]упик "," $1у тупику "],["^ (\\S+)[иоы]й (\\S+н)ий [Тт]упик "," $1ому $2ему тупику "],["^ (\\S+н)ий (\\S+)[иоы]й [Тт]упик "," $1ему $2ому тупику "],["^ (\\S+)[иоы]й (\\S+)[иоы]й [Тт]упик "," $1ому $2ому тупику "],["^ (\\S+)[иоы]й (\\S+[еёо]в) [Тт]упик "," $1ому $2у тупику "],["^ (\\S+)[иоы]й (\\S+[иы]н) [Тт]упик "," $1ому $2у тупику "],["^ (\\d+)-й [Тт]упик "," $1-му тупику "],["^ (\\d+)-й (\\S+н)ий [Тт]упик "," $1-му $2ему тупику "],["^ (\\d+)-й (\\S+)[иоы]й [Тт]упик "," $1-му $2ому тупику "],["^ (\\d+)-й (\\S+[еёо]в) [Тт]упик "," $1-му $2у тупику "],["^ (\\d+)-й (\\S+[иы]н) [Тт]упик "," $1-му $2у тупику "],["^ [Тт]упик "," тупику "],["^ (\\S+[ео])е ([Пп]олу)?[Кк]ольцо "," $1му $2кольцу "],["^ (\\S+ье) ([Пп]олу)?[Кк]ольцо "," $1му $2кольцу "],["^ (\\S+[ео])е (\\S+[ео])е ([Пп]олу)?[Кк]ольцо "," $1му $2му $3кольцу "],["^ (\\S+ье) (\\S+[ео])е ([Пп]олу)?[Кк]ольцо "," $1му $2му $3кольцу "],["^ (\\d+)-е (\\S+[ео])е ([Пп]олу)?[Кк]ольцо "," $1-му $2му $3кольцу "],["^ (\\d+)-е (\\S+ье) ([Пп]олу)?[Кк]ольцо "," $1-му $2му $3кольцу "],["^ ([Пп]олу)?[Кк]ольцо "," $1кольцу "],["^ (\\S+[ео])е [Шш]оссе "," $1му шоссе "],["^ (\\S+ье) [Шш]оссе "," $1му шоссе "],["^ (\\S+[ео])е (\\S+[ео])е [Шш]оссе "," $1му $2му шоссе "],["^ (\\S+ье) (\\S+[ео])е [Шш]оссе "," $1му $2му шоссе "],["^ (\\d+)-е (\\S+[ео])е [Шш]оссе "," $1-му $2му шоссе "],["^ (\\d+)-е (\\S+ье) [Шш]оссе "," $1-му $2му шоссе "],[" ([Тт])ретому "," $1ретьему "],["([жч])ому ","$1ьему "],["([жч])ой ","$1ей "]],
vendor: 39,847 bytes, line 12
12genitive:[['^ ([«"])'," трасса $1"],["^ (\\S+)ая [Аа]ллея "," $1ой аллеи "],["^ (\\S+)ья [Аа]ллея "," $1ьей аллеи "],["^ (\\S+)яя [Аа]ллея "," $1ей аллеи "],["^ (\\d+)-я (\\S+)ая [Аа]ллея "," $1-й $2ой аллеи "],["^ [Аа]ллея "," аллеи "],["^ (\\S+)ая-(\\S+)ая [Уу]лица "," $1ой-$2ой улицы "],["^ (\\S+)ая [Уу]лица "," $1ой улицы "],["^ (\\S+)ья [Уу]лица "," $1ьей улицы "],["^ (\\S+)яя [Уу]лица "," $1ей улицы "],["^ (\\d+)-я [Уу]лица "," $1-й улицы "],["^ (\\d+)-я (\\S+)ая [Уу]лица "," $1-й $2ой улицы "],["^ (\\S+)ая (\\S+)ая [Уу]лица "," $1ой $2ой улицы "],["^ (\\S+[вн])а [Уу]лица "," $1ой улицы "],["^ (\\S+)ая (\\S+[вн])а [Уу]лица "," $1ой $2ой улицы "],["^ Даньславля [Уу]лица "," Даньславлей улицы "],["^ Добрыня [Уу]лица "," Добрыней улицы "],["^ Людогоща [Уу]лица "," Людогощей улицы "],["^ [Уу]лица "," улицы "],["^ (\\d+)-я [Лл]иния "," $1-й линии "],["^ (\\d+)-(\\d+)-я [Лл]иния "," $1-$2-й линии "],["^ (\\S+)ая [Лл]иния "," $1ой линии "],["^ (\\S+)ья [Лл]иния "," $1ьей линии "],["^ (\\S+)яя [Лл]иния "," $1ей линии "],["^ (\\d+)-я (\\S+)ая [Лл]иния "," $1-й $2ой линии "],["^ [Лл]иния "," линии "],["^ (\\d+)-(\\d+)-я [Лл]инии "," $1-$2-й линий "],["^ (\\S+)ая [Нн]абережная "," $1ой набережной "],["^ (\\S+)ья [Нн]абережная "," $1ьей набережной "],["^ (\\S+)яя [Нн]абережная "," $1ей набережной "],["^ (\\d+)-я (\\S+)ая [Нн]абережная "," $1-й $2ой набережной "],["^ [Нн]абережная "," набережной "],["^ (\\S+)ая [Пп]лощадь "," $1ой площади "],["^ (\\S+)ья [Пп]лощадь "," $1ьей площади "],["^ (\\S+)яя [Пп]лощадь "," $1ей площади "],["^ (\\S+[вн])а [Пп]лощадь "," $1ой площади "],["^ (\\d+)-я (\\S+)ая [Пп]лощадь "," $1-й $2ой площади "],["^ [Пп]лощадь "," площади "],["^ (\\S+)ая [Пп]росека "," $1ой просеки "],["^ (\\S+)ья [Пп]росека "," $1ьей просеки "],["^ (\\S+)яя [Пп]росека "," $1ей просеки "],["^ (\\d+)-я [Пп]росека "," $1-й просеки "],["^ [Пп]росека "," просеки "],["^ (\\S+)ая [Ээ]стакада "," $1ой эстакады "],["^ (\\S+)ья [Ээ]стакада "," $1ьей эстакады "],["^ (\\S+)яя [Ээ]стакада "," $1ей эстакады "],["^ (\\d+)-я (\\S+)ая [Ээ]стакада "," $1-й $2ой эстакады "],["^ [Ээ]стакада "," эстакады "],["^ (\\S+)ая [Мм]агистраль "," $1ой магистрали "],["^ (\\S+)ья [Мм]агистраль "," $1ьей магистрали "],["^ (\\S+)яя [Мм]агистраль "," $1ей магистрали "],["^ (\\S+)ая (\\S+)ая [Мм]агистраль "," $1ой $2ой магистрали "],["^ (\\d+)-я (\\S+)ая [Мм]агистраль "," $1-й $2ой магистрали "],["^ [Мм]агистраль "," магистрали "],["^ (\\S+)ая [Рр]азвязка "," $1ой развязки "],["^ (\\S+)ья [Рр]азвязка "," $1ьей развязки "],["^ (\\S+)яя [Рр]азвязка "," $1ей развязки "],["^ (\\d+)-я (\\S+)ая [Рр]азвязка "," $1-й $2ой развязки "],["^ [Рр]азвязка "," развязки "],["^ (\\S+)ая [Тт]расса "," $1ой трассы "],["^ (\\S+)ья [Тт]расса "," $1ьей трассы "],["^ (\\S+)яя [Тт]расса "," $1ей трассы "],["^ (\\d+)-я (\\S+)ая [Тт]расса "," $1-й $2ой трассы "],["^ [Тт]расса "," трассы "],["^ (\\S+)ая ([Аа]вто)?[Дд]орога "," $1ой $2дороги "],["^ (\\S+)ья ([Аа]вто)?[Дд]орога "," $1ьей $2дороги "],["^ (\\S+)яя ([Аа]вто)?[Дд]орога "," $1ей $2дороги "],["^ (\\S+)ая (\\S+)ая ([Аа]вто)?[Дд]орога "," $1ой $2ой $3дороги "],["^ (\\d+)-я (\\S+)ая ([Аа]вто)?[Дд]орога "," $1-й $2ой $3дороги "],["^ ([Аа]вто)?[Дд]орога "," $1дороги "],["^ (\\S+)ая [Дд]орожка "," $1ой дорожки "],["^ (\\S+)ья [Дд]орожка "," $1ьей дорожки "],["^ (\\S+)яя [Дд]орожка "," $1ей дорожки "],["^ (\\d+)-я (\\S+)ая [Дд]орожка "," $1-й $2ой дорожки "],["^ [Дд]орожка "," дорожки "],["^ (\\S+)во [Пп]оле "," $1ва поля "],["^ (\\S+)ая [Кк]оса "," $1ой косы "],["^ (\\S+)ая [Хх]орда "," $1ой хорды "],["^ (\\S+)[иоы]й [Пп]роток "," $1ого протока "],["^ (\\S+н)ий [Бб]ульвар "," $1его бульвара "],["^ (\\S+)[иоы]й [Бб]ульвар "," $1ого бульвара "],["^ (\\S+[иы]н) [Бб]ульвар "," $1ого бульвара "],["^ (\\S+)[иоы]й (\\S+н)ий [Бб]ульвар "," $1ого $2его бульвара "],["^ (\\S+н)ий (\\S+)[иоы]й [Бб]ульвар "," $1его $2ого бульвара "],["^ (\\S+)[иоы]й (\\S+)[иоы]й [Бб]ульвар "," $1ого $2ого бульвара "],["^ (\\S+)[иоы]й (\\S+[иы]н) [Бб]ульвар "," $1ого $2ого бульвара "],["^ (\\d+)-й (\\S+н)ий [Бб]ульвар "," $1-го $2его бульвара "],["^ (\\d+)-й (\\S+)[иоы]й [Бб]ульвар "," $1-го $2ого бульвара "],["^ (\\d+)-й (\\S+[иы]н) [Бб]ульвар "," $1-го $2ого бульвара "],["^ [Бб]ульвар "," бульвара "],["^ [Дд]убл[её]р "," дублёра "],["^ (\\S+н)ий [Зз]аезд "," $1его заезда "],["^ (\\S+)[иоы]й [Зз]аезд "," $1ого заезда "],["^ (\\S+[еёо]в) [Зз]аезд "," $1а заезда "],["^ (\\S+[иы]н) [Зз]аезд "," $1а заезда "],["^ (\\S+)[иоы]й (\\S+н)ий [Зз]аезд "," $1ого $2его заезда "],["^ (\\S+н)ий (\\S+)[иоы]й [Зз]аезд "," $1его $2ого заезда "],["^ (\\S+)[иоы]й (\\S+)[иоы]й [Зз]аезд "," $1ого $2ого заезда "],["^ (\\S+)[иоы]й (\\S+[еёо]в) [Зз]аезд "," $1ого $2а заезда "],["^ (\\S+)[иоы]й (\\S+[иы]н) [Зз]аезд "," $1ого $2а заезда "],["^ (\\d+)-й (\\S+н)ий [Зз]аезд "," $1-го $2его заезда "],["^ (\\d+)-й (\\S+)[иоы]й [Зз]аезд "," $1-го $2ого заезда "],["^ (\\d+)-й (\\S+[еёо]в) [Зз]аезд "," $1-го $2а заезда "],["^ (\\d+)-й (\\S+[иы]н) [Зз]аезд "," $1-го $2а заезда "],["^ [Зз]аезд "," заезда "],["^ (\\S+н)ий [Мм]ост "," $1его моста "],["^ (\\S+)[иоы]й [Мм]ост "," $1ого моста "],["^ (\\S+[еёо]в) [Мм]ост "," $1а моста "],["^ (\\S+[иы]н) [Мм]ост "," $1а моста "],["^ (\\S+)[иоы]й (\\S+н)ий [Мм]ост "," $1ого $2его моста "],["^ (\\S+н)ий (\\S+)[иоы]й [Мм]ост "," $1его $2ого моста "],["^ (\\S+)[иоы]й (\\S+)[иоы]й [Мм]ост "," $1ого $2ого моста "],["^ (\\S+)[иоы]й (\\S+[еёо]в) [Мм]ост "," $1ого $2а моста "],["^ (\\S+)[иоы]й (\\S+[иы]н) [Мм]ост "," $1ого $2а моста "],["^ (\\d+)-й [Мм]ост "," $1-го моста "],["^ (\\d+)-й (\\S+н)ий [Мм]ост "," $1-го $2его моста "],["^ (\\d+)-й (\\S+)[иоы]й [Мм]ост "," $1-го $2ого моста "],["^ (\\d+)-й (\\S+[еёо]в) [Мм]ост "," $1-го $2а моста "],["^ (\\d+)-й (\\S+[иы]н) [Мм]ост "," $1-го $2а моста "],["^ [Мм]ост "," моста "],["^ (\\S+н)ий [Оо]бход "," $1его обхода "],["^ (\\S+)[иоы]й [Оо]бход "," $1ого обхода "],["^ [Оо]бход "," обхода "],["^ (\\S+н)ий [Пп]арк "," $1его парка "],["^ (\\S+)[иоы]й [Пп]арк "," $1ого парка "],["^ (\\S+[иы]н) [Пп]арк "," $1ого парка "],["^ (\\S+)[иоы]й (\\S+н)ий [Пп]арк "," $1ого $2его парка "],["^ (\\S+н)ий (\\S+)[иоы]й [Пп]арк "," $1его $2ого парка "],["^ (\\S+)[иоы]й (\\S+)[иоы]й [Пп]арк "," $1ого $2ого парка "],["^ (\\S+)[иоы]й (\\S+[иы]н) [Пп]арк "," $1ого $2ого парка "],["^ (\\d+)-й (\\S+н)ий [Пп]арк "," $1-го $2его парка "],["^ (\\d+)-й (\\S+)[иоы]й [Пп]арк "," $1-го $2ого парка "],["^ (\\d+)-й (\\S+[иы]н) [Пп]арк "," $1-го $2ого парка "],["^ [Пп]арк "," парка "],["^ (\\S+)[иоы]й-(\\S+)[иоы]й [Пп]ереулок "," $1ого-$2ого переулка "],["^ (\\d+)-й (\\S+)[иоы]й-(\\S+)[иоы]й [Пп]ереулок "," $1-го $2ого-$3ого переулка "],["^ (\\S+н)ий [Пп]ереулок "," $1его переулка "],["^ (\\S+)[иоы]й [Пп]ереулок "," $1ого переулка "],["^ (\\S+[еёо]в) [Пп]ереулок "," $1а переулка "],["^ (\\S+[иы]н) [Пп]ереулок "," $1а переулка "],["^ (\\S+)[иоы]й (\\S+н)ий [Пп]ереулок "," $1ого $2его переулка "],["^ (\\S+н)ий (\\S+)[иоы]й [Пп]ереулок "," $1его $2ого переулка "],["^ (\\S+)[иоы]й (\\S+)[иоы]й [Пп]ереулок "," $1ого $2ого переулка "],["^ (\\S+)[иоы]й (\\S+[еёо]в) [Пп]ереулок "," $1ого $2а переулка "],["^ (\\S+)[иоы]й (\\S+[иы]н) [Пп]ереулок "," $1ого $2а переулка "],["^ (\\d+)-й [Пп]ереулок "," $1-го переулка "],["^ (\\d+)-й (\\S+н)ий [Пп]ереулок "," $1-го $2его переулка "],["^ (\\d+)-й (\\S+)[иоы]й [Пп]ереулок "," $1-го $2ого переулка "],["^ (\\d+)-й (\\S+[еёо]в) [Пп]ереулок "," $1-го $2а переулка "],["^ (\\d+)-й (\\S+[иы]н) [Пп]ереулок "," $1-го $2а переулка "],["^ [Пп]ереулок "," переулка "],["^ [Пп]одъезд "," подъезда "],["^ (\\S+[еёо]в)-(\\S+)[иоы]й [Пп]роезд "," $1а-$2ого проезда "],["^ (\\S+н)ий [Пп]роезд "," $1его проезда "],["^ (\\S+)[иоы]й [Пп]роезд "," $1ого проезда "],["^ (\\S+[еёо]в) [Пп]роезд "," $1а проезда "],["^ (\\S+[иы]н) [Пп]роезд "," $1а проезда "],["^ (\\S+)[иоы]й (\\S+н)ий [Пп]роезд "," $1ого $2его проезда "],["^ (\\S+н)ий (\\S+)[иоы]й [Пп]роезд "," $1его $2ого проезда "],["^ (\\S+)[иоы]й (\\S+)[иоы]й [Пп]роезд "," $1ого $2ого проезда "],["^ (\\S+)[иоы]й (\\S+[еёо]в) [Пп]роезд "," $1ого $2а проезда "],["^ (\\S+)[иоы]й (\\S+[иы]н) [Пп]роезд "," $1ого $2а проезда "],["^ (\\d+)-й [Пп]роезд "," $1-го проезда "],["^ (\\d+)-й (\\S+н)ий [Пп]роезд "," $1-го $2его проезда "],["^ (\\d+)-й (\\S+)[иоы]й [Пп]роезд "," $1-го $2ого проезда "],["^ (\\d+)-й (\\S+[еёо]в) [Пп]роезд "," $1-го $2а проезда "],["^ (\\d+)-й (\\S+[иы]н) [Пп]роезд "," $1-го $2а проезда "],["^ (\\d+)-й (\\S+н)ий (\\S+)[иоы]й [Пп]роезд "," $1-го $2его $3ого проезда "],["^ (\\d+)-й (\\S+)[иоы]й (\\S+)[иоы]й [Пп]роезд "," $1-го $2ого $3ого проезда "],["^ [Пп]роезд "," проезда "],["^ (\\S+н)ий [Пп]роспект "," $1его проспекта "],["^ (\\S+)[иоы]й [Пп]роспект "," $1ого проспекта "],["^ (\\S+[иы]н) [Пп]роспект "," $1ого проспекта "],["^ (\\S+)[иоы]й (\\S+н)ий [Пп]роспект "," $1ого $2его проспекта "],["^ (\\S+н)ий (\\S+)[иоы]й [Пп]роспект "," $1его $2ого проспекта "],["^ (\\S+)[иоы]й (\\S+)[иоы]й [Пп]роспект "," $1ого $2ого проспекта "],["^ (\\S+)[иоы]й (\\S+[иы]н) [Пп]роспект "," $1ого $2ого проспекта "],["^ (\\d+)-й (\\S+н)ий [Пп]роспект "," $1-го $2его проспекта "],["^ (\\d+)-й (\\S+)[иоы]й [Пп]роспект "," $1-го $2ого проспекта "],["^ (\\d+)-й (\\S+[иы]н) [Пп]роспект "," $1-го $2ого проспекта "],["^ [Пп]роспект "," проспекта "],["^ (\\S+н)ий [Пп]утепровод "," $1его путепровода "],["^ (\\S+)[иоы]й [Пп]утепровод "," $1ого путепровода "],["^ (\\S+[иы]н) [Пп]утепровод "," $1ого путепровода "],["^ (\\S+)[иоы]й (\\S+н)ий [Пп]утепровод "," $1ого $2его путепровода "],["^ (\\S+н)ий (\\S+)[иоы]й [Пп]утепровод "," $1его $2ого путепровода "],["^ (\\S+)[иоы]й (\\S+)[иоы]й [Пп]утепровод "," $1ого $2ого путепровода "],["^ (\\S+)[иоы]й (\\S+[иы]н) [Пп]утепровод "," $1ого $2ого путепровода "],["^ (\\d+)-й (\\S+н)ий [Пп]утепровод "," $1-го $2его путепровода "],["^ (\\d+)-й (\\S+)[иоы]й [Пп]утепровод "," $1-го $2ого путепровода "],["^ (\\d+)-й (\\S+[иы]н) [Пп]утепровод "," $1-го $2ого путепровода "],["^ [Пп]утепровод "," путепровода "],["^ (\\S+н)ий [Сс]пуск "," $1его спуска "],["^ (\\S+)[иоы]й [Сс]пуск "," $1ого спуска "],["^ (\\S+[еёо]в) [Сс]пуск "," $1а спуска "],["^ (\\S+[иы]н) [Сс]пуск "," $1а спуска "],["^ (\\S+)[иоы]й (\\S+н)ий [Сс]пуск "," $1ого $2его спуска "],["^ (\\S+н)ий (\\S+)[иоы]й [Сс]пуск "," $1его $2ого спуска "],["^ (\\S+)[иоы]й (\\S+)[иоы]й [Сс]пуск "," $1ого $2ого спуска "],["^ (\\S+)[иоы]й (\\S+[еёо]в) [Сс]пуск "," $1ого $2а спуска "],["^ (\\S+)[иоы]й (\\S+[иы]н) [Сс]пуск "," $1ого $2а спуска "],["^ (\\d+)-й (\\S+н)ий [Сс]пуск "," $1-го $2его спуска "],["^ (\\d+)-й (\\S+)[иоы]й [Сс]пуск "," $1-го $2ого спуска "],["^ (\\d+)-й (\\S+[еёо]в) [Сс]пуск "," $1-го $2а спуска "],["^ (\\d+)-й (\\S+[иы]н) [Сс]пуск "," $1-го $2а спуска "],["^ [Сс]пуск "," спуска "],["^ (\\S+н)ий [Сс]ъезд "," $1его съезда "],["^ (\\S+)[иоы]й [Сс]ъезд "," $1ого съезда "],["^ (\\S+[иы]н) [Сс]ъезд "," $1ого съезда "],["^ (\\S+)[иоы]й (\\S+н)ий [Сс]ъезд "," $1ого $2его съезда "],["^ (\\S+н)ий (\\S+)[иоы]й [Сс]ъезд "," $1его $2ого съезда "],["^ (\\S+)[иоы]й (\\S+)[иоы]й [Сс]ъезд "," $1ого $2ого съезда "],["^ (\\S+)[иоы]й (\\S+[иы]н) [Сс]ъезд "," $1ого $2ого съезда "],["^ (\\d+)-й (\\S+н)ий [Сс]ъезд "," $1-го $2его съезда "],["^ (\\d+)-й (\\S+)[иоы]й [Сс]ъезд "," $1-го $2ого съезда "],["^ (\\d+)-й (\\S+[иы]н) [Сс]ъезд "," $1-го $2ого съезда "],["^ [Сс]ъезд "," съезда "],["^ (\\S+н)ий [Тт][уо]ннель "," $1его тоннеля "],["^ (\\S+)[иоы]й [Тт][уо]ннель "," $1ого тоннеля "],["^ (\\S+[иы]н) [Тт][уо]ннель "," $1ого тоннеля "],["^ (\\S+)[иоы]й (\\S+н)ий [Тт][уо]ннель "," $1ого $2его тоннеля "],["^ (\\S+н)ий (\\S+)[иоы]й [Тт][уо]ннель "," $1его $2ого тоннеля "],["^ (\\S+)[иоы]й (\\S+)[иоы]й [Тт][уо]ннель "," $1ого $2ого тоннеля "],["^ (\\S+)[иоы]й (\\S+[иы]н) [Тт][уо]ннель "," $1ого $2ого тоннеля "],["^ (\\d+)-й (\\S+н)ий [Тт][уо]ннель "," $1-го $2его тоннеля "],["^ (\\d+)-й (\\S+)[иоы]й [Тт][уо]ннель "," $1-го $2ого тоннеля "],["^ (\\d+)-й (\\S+[иы]н) [Тт][уо]ннель "," $1-го $2ого тоннеля "],["^ [Тт][уо]ннель "," тоннеля "],["^ (\\S+н)ий [Тт]ракт "," $1ем тракта "],["^ (\\S+)[иоы]й [Тт]ракт "," $1ого тракта "],["^ (\\S+[еёо]в) [Тт]ракт "," $1а тракта "],["^ (\\S+[иы]н) [Тт]ракт "," $1а тракта "],["^ (\\S+)[иоы]й (\\S+н)ий [Тт]ракт "," $1ого $2его тракта "],["^ (\\S+н)ий (\\S+)[иоы]й [Тт]ракт "," $1его $2ого тракта "],["^ (\\S+)[иоы]й (\\S+)[иоы]й [Тт]ракт "," $1ого $2ого тракта "],["^ (\\S+)[иоы]й (\\S+[еёо]в) [Тт]ракт "," $1ого $2а тракта "],["^ (\\S+)[иоы]й (\\S+[иы]н) [Тт]ракт "," $1ого $2а тракта "],["^ (\\d+)-й (\\S+н)ий [Тт]ракт "," $1-го $2его тракта "],["^ (\\d+)-й (\\S+)[иоы]й [Тт]ракт "," $1-го $2ого тракта "],["^ (\\d+)-й (\\S+[еёо]в) [Тт]ракт "," $1-го $2а тракта "],["^ (\\d+)-й (\\S+[иы]н) [Тт]ракт "," $1-го $2а тракта "],["^ [Тт]ракт "," тракта "],["^ (\\S+н)ий [Тт]упик "," $1его тупика "],["^ (\\S+)[иоы]й [Тт]упик "," $1ого тупика "],["^ (\\S+[еёо]в) [Тт]упик "," $1а тупика "],["^ (\\S+[иы]н) [Тт]упик "," $1а тупика "],["^ (\\S+)[иоы]й (\\S+н)ий [Тт]упик "," $1ого $2его тупика "],["^ (\\S+н)ий (\\S+)[иоы]й [Тт]упик "," $1его $2ого тупика "],["^ (\\S+)[иоы]й (\\S+)[иоы]й [Тт]упик "," $1ого $2ого тупика "],["^ (\\S+)[иоы]й (\\S+[еёо]в) [Тт]упик "," $1ого $2а тупика "],["^ (\\S+)[иоы]й (\\S+[иы]н) [Тт]упик "," $1ого $2а тупика "],["^ (\\d+)-й [Тт]упик "," $1-го тупика "],["^ (\\d+)-й (\\S+н)ий [Тт]упик "," $1-го $2его тупика "],["^ (\\d+)-й (\\S+)[иоы]й [Тт]упик "," $1-го $2ого тупика "],["^ (\\d+)-й (\\S+[еёо]в) [Тт]упик "," $1-го $2а тупика "],["^ (\\d+)-й (\\S+[иы]н) [Тт]упик "," $1-го $2а тупика "],["^ [Тт]упик "," тупика "],["^ (\\S+[ео])е ([Пп]олу)?[Кк]ольцо "," $1го $2кольца "],["^ (\\S+ье) ([Пп]олу)?[Кк]ольцо "," $1го $2кольца "],["^ (\\S+[ео])е (\\S+[ео])е ([Пп]олу)?[Кк]ольцо "," $1го $2го $3кольца "],["^ (\\S+ье) (\\S+[ео])е ([Пп]олу)?[Кк]ольцо "," $1го $2го $3кольца "],["^ (\\d+)-е (\\S+[ео])е ([Пп]олу)?[Кк]ольцо "," $1-го $2го $3кольца "],["^ (\\d+)-е (\\S+ье) ([Пп]олу)?[Кк]ольцо "," $1-го $2го $3кольца "],["^ ([Пп]олу)?[Кк]ольцо "," $1кольца "],["^ (\\S+[ео])е [Шш]оссе "," $1го шоссе "],["^ (\\S+ье) [Шш]оссе "," $1го шоссе "],["^ (\\S+[ео])е (\\S+[ео])е [Шш]оссе "," $1го $2го шоссе "],["^ (\\S+ье) (\\S+[ео])е [Шш]оссе "," $1го $2го шоссе "],["^ (\\d+)-е (\\S+[ео])е [Шш]оссе "," $1-го $2го шоссе "],["^ (\\d+)-е (\\S+ье) [Шш]оссе "," $1-го $2го шоссе "],[" ([Тт])ретого "," $1ретьего "],["([жч])ого ","$1ьего "]],prepositional:[['^ ([«"])'," трасса $1"],["^ (\\S+)ая [Аа]ллея "," $1ой аллее "],["^ (\\S+)ья [Аа]ллея "," $1ьей аллее "],["^ (\\S+)яя [Аа]ллея "," $1ей аллее "],["^ (\\d+)-я (\\S+)ая [Аа]ллея "," $1-й $2ой аллее "],["^ [Аа]ллея "," аллее "],["^ (\\S+)ая-(\\S+)ая [Уу]лица "," $1ой-$2ой улице "],["^ (\\S+)ая [Уу]лица "," $1ой улице "],["^ (\\S+)ья [Уу]лица "," $1ьей улице "],["^ (\\S+)яя [Уу]лица "," $1ей улице "],["^ (\\d+)-я [Уу]лица "," $1-й улице "],["^ (\\d+)-я (\\S+)ая [Уу]лица "," $1-й $2ой улице "],["^ (\\S+)ая (\\S+)ая [Уу]лица "," $1ой $2ой улице "],["^ (\\S+[вн])а [Уу]лица "," $1ой улице "],["^ (\\S+)ая (\\S+[вн])а [Уу]лица "," $1ой $2ой улице "],["^ Даньславля [Уу]лица "," Даньславлей улице "],["^ Добрыня [Уу]лица "," Добрыней улице "],["^ Людогоща [Уу]лица "," Людогощей улице "],["^ [Уу]лица "," улице "],["^ (\\d+)-я [Лл]иния "," $1-й линии "],["^ (\\d+)-(\\d+)-я [Лл]иния "," $1-$2-й линии "],["^ (\\S+)ая [Лл]иния "," $1ой линии "],["^ (\\S+)ья [Лл]иния "," $1ьей линии "],["^ (\\S+)яя [Лл]иния "," $1ей линии "],["^ (\\d+)-я (\\S+)ая [Лл]иния "," $1-й $2ой линии "],["^ [Лл]иния "," линии "],["^ (\\d+)-(\\d+)-я [Лл]инии "," $1-$2-й линиях "],["^ (\\S+)ая [Нн]абережная "," $1ой набережной "],["^ (\\S+)ья [Нн]абережная "," $1ьей набережной "],["^ (\\S+)яя [Нн]абережная "," $1ей набережной "],["^ (\\d+)-я (\\S+)ая [Нн]абережная "," $1-й $2ой набережной "],["^ [Нн]абережная "," набережной "],["^ (\\S+)ая [Пп]лощадь "," $1ой площади "],["^ (\\S+)ья [Пп]лощадь "," $1ьей площади "],["^ (\\S+)яя [Пп]лощадь "," $1ей площади "],["^ (\\S+[вн])а [Пп]лощадь "," $1ой площади "],["^ (\\d+)-я (\\S+)ая [Пп]лощадь "," $1-й $2ой площади "],["^ [Пп]лощадь "," площади "],["^ (\\S+)ая [Пп]росека "," $1ой просеке "],["^ (\\S+)ья [Пп]росека "," $1ьей просеке "],["^ (\\S+)яя [Пп]росека "," $1ей просеке "],["^ (\\d+)-я [Пп]росека "," $1-й просеке "],["^ [Пп]росека "," просеке "],["^ (\\S+)ая [Ээ]стакада "," $1ой эстакаде "],["^ (\\S+)ья [Ээ]стакада "," $1ьей эстакаде "],["^ (\\S+)яя [Ээ]стакада "," $1ей эстакаде "],["^ (\\d+)-я (\\S+)ая [Ээ]стакада "," $1-й $2ой эстакаде "],["^ [Ээ]стакада "," эстакаде "],["^ (\\S+)ая [Мм]агистраль "," $1ой магистрали "],["^ (\\S+)ья [Мм]агистраль "," $1ьей магистрали "],["^ (\\S+)яя [Мм]агистраль "," $1ей магистрали "],["^ (\\S+)ая (\\S+)ая [Мм]агистраль "," $1ой $2ой магистрали "],["^ (\\d+)-я (\\S+)ая [Мм]агистраль "," $1-й $2ой магистрали "],["^ [Мм]агистраль "," магистрали "],["^ (\\S+)ая [Рр]азвязка "," $1ой развязке "],["^ (\\S+)ья [Рр]азвязка "," $1ьей развязке "],["^ (\\S+)яя [Рр]азвязка "," $1ей развязке "],["^ (\\d+)-я (\\S+)ая [Рр]азвязка "," $1-й $2ой развязке "],["^ [Рр]азвязка "," развязке "],["^ (\\S+)ая [Тт]расса "," $1ой трассе "],["^ (\\S+)ья [Тт]расса "," $1ьей трассе "],["^ (\\S+)яя [Тт]расса "," $1ей трассе "],["^ (\\d+)-я (\\S+)ая [Тт]расса "," $1-й $2ой трассе "],["^ [Тт]расса "," трассе "],["^ (\\S+)ая ([Аа]вто)?[Дд]орога "," $1ой $2дороге "],["^ (\\S+)ья ([Аа]вто)?[Дд]орога "," $1ьей $2дороге "],["^ (\\S+)яя ([Аа]вто)?[Дд]орога "," $1ей $2дороге "],["^ (\\S+)ая (\\S+)ая ([Аа]вто)?[Дд]орога "," $1ой $2ой $3дороге "],["^ (\\d+)-я (\\S+)ая ([Аа]вто)?[Дд]орога "," $1-й $2ой $3дороге "],["^ ([Аа]вто)?[Дд]орога "," $1дороге "],["^ (\\S+)ая [Дд]орожка "," $1ой дорожке "],["^ (\\S+)ья [Дд]орожка "," $1ьей дорожке "],["^ (\\S+)яя [Дд]орожка "," $1ей дорожке "],["^ (\\d+)-я (\\S+)ая [Дд]орожка "," $1-й $2ой дорожке "],["^ [Дд]орожка "," дорожке "],["^ (\\S+)во [Пп]оле "," $1вом поле "],["^ (\\S+)ая [Кк]оса "," $1ой косе "],["^ (\\S+)ая [Хх]орда "," $1ой хорде "],["^ (\\S+)[иоы]й [Пп]роток "," $1ом протоке "],["^ (\\S+н)ий [Бб]ульвар "," $1ем бульваре "],["^ (\\S+)[иоы]й [Бб]ульвар "," $1ом бульваре "],["^ (\\S+[иы]н) [Бб]ульвар "," $1ом бульваре "],["^ (\\S+)[иоы]й (\\S+н)ий [Бб]ульвар "," $1ом $2ем бульваре "],["^ (\\S+н)ий (\\S+)[иоы]й [Бб]ульвар "," $1ем $2ом бульваре "],["^ (\\S+)[иоы]й (\\S+)[иоы]й [Бб]ульвар "," $1ом $2ом бульваре "],["^ (\\S+)[иоы]й (\\S+[иы]н) [Бб]ульвар "," $1ом $2ом бульваре "],["^ (\\d+)-й (\\S+н)ий [Бб]ульвар "," $1-м $2ем бульваре "],["^ (\\d+)-й (\\S+)[иоы]й [Бб]ульвар "," $1-м $2ом бульваре "],["^ (\\d+)-й (\\S+[иы]н) [Бб]ульвар "," $1-м $2ом бульваре "],["^ [Бб]ульвар "," бульваре "],["^ [Дд]убл[её]р "," дублёре "],["^ (\\S+н)ий [Зз]аезд "," $1ем заезде "],["^ (\\S+)[иоы]й [Зз]аезд "," $1ом заезде "],["^ (\\S+[еёо]в) [Зз]аезд "," $1ом заезде "],["^ (\\S+[иы]н) [Зз]аезд "," $1ом заезде "],["^ (\\S+)[иоы]й (\\S+н)ий [Зз]аезд "," $1ом $2ем заезде "],["^ (\\S+н)ий (\\S+)[иоы]й [Зз]аезд "," $1ем $2ом заезде "],["^ (\\S+)[иоы]й (\\S+)[иоы]й [Зз]аезд "," $1ом $2ом заезде "],["^ (\\S+)[иоы]й (\\S+[еёо]в) [Зз]аезд "," $1ом $2ом заезде "],["^ (\\S+)[иоы]й (\\S+[иы]н) [Зз]аезд "," $1ом $2ом заезде "],["^ (\\d+)-й (\\S+н)ий [Зз]аезд "," $1-м $2ем заезде "],["^ (\\d+)-й (\\S+)[иоы]й [Зз]аезд "," $1-м $2ом заезде "],["^ (\\d+)-й (\\S+[еёо]в) [Зз]аезд "," $1-м $2ом заезде "],["^ (\\d+)-й (\\S+[иы]н) [Зз]аезд "," $1-м $2ом заезде "],["^ [Зз]аезд "," заезде "],["^ (\\S+н)ий [Мм]ост "," $1ем мосту "],["^ (\\S+)[иоы]й [Мм]ост "," $1ом мосту "],["^ (\\S+[еёо]в) [Мм]ост "," $1ом мосту "],["^ (\\S+[иы]н) [Мм]ост "," $1ом мосту "],["^ (\\S+)[иоы]й (\\S+н)ий [Мм]ост "," $1ом $2ем мосту "],["^ (\\S+н)ий (\\S+)[иоы]й [Мм]ост "," $1ем $2ом мосту "],["^ (\\S+)[иоы]й (\\S+)[иоы]й [Мм]ост "," $1ом $2ом мосту "],["^ (\\S+)[иоы]й (\\S+[еёо]в) [Мм]ост "," $1ом $2ом мосту "],["^ (\\S+)[иоы]й (\\S+[иы]н) [Мм]ост "," $1ом $2ом мосту "],["^ (\\d+)-й [Мм]ост "," $1-м мосту "],["^ (\\d+)-й (\\S+н)ий [Мм]ост "," $1-м $2ем мосту "],["^ (\\d+)-й (\\S+)[иоы]й [Мм]ост "," $1-м $2ом мосту "],["^ (\\d+)-й (\\S+[еёо]в) [Мм]ост "," $1-м $2ом мосту "],["^ (\\d+)-й (\\S+[иы]н) [Мм]ост "," $1-м $2ом мосту "],["^ [Мм]ост "," мосту "],["^ (\\S+н)ий [Оо]бход "," $1ем обходе "],["^ (\\S+)[иоы]й [Оо]бход "," $1ом обходе "],["^ [Оо]бход "," обходе "],["^ (\\S+н)ий [Пп]арк "," $1ем парке "],["^ (\\S+)[иоы]й [Пп]арк "," $1ом парке "],["^ (\\S+[иы]н) [Пп]арк "," $1ом парке "],["^ (\\S+)[иоы]й (\\S+н)ий [Пп]арк "," $1ом $2ем парке "],["^ (\\S+н)ий (\\S+)[иоы]й [Пп]арк "," $1ем $2ом парке "],["^ (\\S+)[иоы]й (\\S+)[иоы]й [Пп]арк "," $1ом $2ом парке "],["^ (\\S+)[иоы]й (\\S+[иы]н) [Пп]арк "," $1ом $2ом парке "],["^ (\\d+)-й (\\S+н)ий [Пп]арк "," $1-м $2ем парке "],["^ (\\d+)-й (\\S+)[иоы]й [Пп]арк "," $1-м $2ом парке "],["^ (\\d+)-й (\\S+[иы]н) [Пп]арк "," $1-м $2ом парке "],["^ [Пп]арк "," парке "],["^ (\\S+)[иоы]й-(\\S+)[иоы]й [Пп]ереулок "," $1ом-$2ом переулке "],["^ (\\d+)-й (\\S+)[иоы]й-(\\S+)[иоы]й [Пп]ереулок "," $1-м $2ом-$3ом переулке "],["^ (\\S+н)ий [Пп]ереулок "," $1ем переулке "],["^ (\\S+)[иоы]й [Пп]ереулок "," $1ом переулке "],["^ (\\S+[еёо]в) [Пп]ереулок "," $1ом переулке "],["^ (\\S+[иы]н) [Пп]ереулок "," $1ом переулке "],["^ (\\S+)[иоы]й (\\S+н)ий [Пп]ереулок "," $1ом $2ем переулке "],["^ (\\S+н)ий (\\S+)[иоы]й [Пп]ереулок "," $1ем $2ом переулке "],["^ (\\S+)[иоы]й (\\S+)[иоы]й [Пп]ереулок "," $1ом $2ом переулке "],["^ (\\S+)[иоы]й (\\S+[еёо]в) [Пп]ереулок "," $1ом $2ом переулке "],["^ (\\S+)[иоы]й (\\S+[иы]н) [Пп]ереулок "," $1ом $2ом переулке "],["^ (\\d+)-й [Пп]ереулок "," $1-м переулке "],["^ (\\d+)-й (\\S+н)ий [Пп]ереулок "," $1-м $2ем переулке "],["^ (\\d+)-й (\\S+)[иоы]й [Пп]ереулок "," $1-м $2ом переулке "],["^ (\\d+)-й (\\S+[еёо]в) [Пп]ереулок "," $1-м $2ом переулке "],["^ (\\d+)-й (\\S+[иы]н) [Пп]ереулок "," $1-м $2ом переулке "],["^ [Пп]ереулок "," переулке "],["^ [Пп]одъезд "," подъезде "],["^ (\\S+[еёо]в)-(\\S+)[иоы]й [Пп]роезд "," $1ом-$2ом проезде "],["^ (\\S+н)ий [Пп]роезд "," $1ем проезде "],["^ (\\S+)[иоы]й [Пп]роезд "," $1ом проезде "],["^ (\\S+[еёо]в) [Пп]роезд "," $1ом проезде "],["^ (\\S+[иы]н) [Пп]роезд "," $1ом проезде "],["^ (\\S+)[иоы]й (\\S+н)ий [Пп]роезд "," $1ом $2ем проезде "],["^ (\\S+н)ий (\\S+)[иоы]й [Пп]роезд "," $1ем $2ом проезде "],["^ (\\S+)[иоы]й (\\S+)[иоы]й [Пп]роезд "," $1ом $2ом проезде "],["^ (\\S+)[иоы]й (\\S+[еёо]в) [Пп]роезд "," $1ом $2ом проезде "],["^ (\\S+)[иоы]й (\\S+[иы]н) [Пп]роезд "," $1ом $2ом проезде "],["^ (\\d+)-й [Пп]роезд "," $1-м проезде "],["^ (\\d+)-й (\\S+н)ий [Пп]роезд "," $1-м $2ем проезде "],["^ (\\d+)-й (\\S+)[иоы]й [Пп]роезд "," $1-м $2ом проезде "],["^ (\\d+)-й (\\S+[еёо]в) [Пп]роезд "," $1-м $2ом проезде "],["^ (\\d+)-й (\\S+[иы]н) [Пп]роезд "," $1-м $2ом проезде "],["^ (\\d+)-й (\\S+н)ий (\\S+)[иоы]й [Пп]роезд "," $1-м $2ем $3ом проезде "],["^ (\\d+)-й (\\S+)[иоы]й (\\S+)[иоы]й [Пп]роезд "," $1-м $2ом $3ом проезде "],["^ [Пп]роезд "," проезде "],["^ (\\S+н)ий [Пп]роспект "," $1ем проспекте "],["^ (\\S+)[иоы]й [Пп]роспект "," $1ом проспекте "],["^ (\\S+[иы]н) [Пп]роспект "," $1ом проспекте "],["^ (\\S+)[иоы]й (\\S+н)ий [Пп]роспект "," $1ом $2ем проспекте "],["^ (\\S+н)ий (\\S+)[иоы]й [Пп]роспект "," $1ем $2ом проспекте "],["^ (\\S+)[иоы]й (\\S+)[иоы]й [Пп]роспект "," $1ом $2ом проспекте "],["^ (\\S+)[иоы]й (\\S+[иы]н) [Пп]роспект "," $1ом $2ом проспекте "],["^ (\\d+)-й (\\S+н)ий [Пп]роспект "," $1-м $2ем проспекте "],["^ (\\d+)-й (\\S+)[иоы]й [Пп]роспект "," $1-м $2ом проспекте "],["^ (\\d+)-й (\\S+[иы]н) [Пп]роспект "," $1-м $2ом проспекте "],["^ [Пп]роспект "," проспекте "],["^ (\\S+н)ий [Пп]утепровод "," $1ем путепроводе "],["^ (\\S+)[иоы]й [Пп]утепровод "," $1ом путепроводе "],["^ (\\S+[иы]н) [Пп]утепровод "," $1ом путепроводе "],["^ (\\S+)[иоы]й (\\S+н)ий [Пп]утепровод "," $1ом $2ем путепроводе "],["^ (\\S+н)ий (\\S+)[иоы]й [Пп]утепровод "," $1ем $2ом путепроводе "],["^ (\\S+)[иоы]й (\\S+)[иоы]й [Пп]утепровод "," $1ом $2ом путепроводе "],["^ (\\S+)[иоы]й (\\S+[иы]н) [Пп]утепровод "," $1ом $2ом путепроводе "],["^ (\\d+)-й (\\S+н)ий [Пп]утепровод "," $1-м $2ем путепроводе "],["^ (\\d+)-й (\\S+)[иоы]й [Пп]утепровод "," $1-м $2ом путепроводе "],["^ (\\d+)-й (\\S+[иы]н) [Пп]утепровод "," $1-м $2ом путепроводе "],["^ [Пп]утепровод "," путепроводе "],["^ (\\S+н)ий [Сс]пуск "," $1ем спуске "],["^ (\\S+)[иоы]й [Сс]пуск "," $1ом спуске "],["^ (\\S+[еёо]в) [Сс]пуск "," $1ом спуске "],["^ (\\S+[иы]н) [Сс]пуск "," $1ом спуске "],["^ (\\S+)[иоы]й (\\S+н)ий [Сс]пуск "," $1ом $2ем спуске "],["^ (\\S+н)ий (\\S+)[иоы]й [Сс]пуск "," $1ем $2ом спуске "],["^ (\\S+)[иоы]й (\\S+)[иоы]й [Сс]пуск "," $1ом $2ом спуске "],["^ (\\S+)[иоы]й (\\S+[еёо]в) [Сс]пуск "," $1ом $2ом спуске "],["^ (\\S+)[иоы]й (\\S+[иы]н) [Сс]пуск "," $1ом $2ом спуске "],["^ (\\d+)-й (\\S+н)ий [Сс]пуск "," $1-м $2ем спуске "],["^ (\\d+)-й (\\S+)[иоы]й [Сс]пуск "," $1-м $2ом спуске "],["^ (\\d+)-й (\\S+[еёо]в) [Сс]пуск "," $1-м $2ом спуске "],["^ (\\d+)-й (\\S+[иы]н) [Сс]пуск "," $1-м $2ом спуске "],["^ [Сс]пуск "," спуске "],["^ (\\S+н)ий [Сс]ъезд "," $1ем съезде "],["^ (\\S+)[иоы]й [Сс]ъезд "," $1ом съезде "],["^ (\\S+[иы]н) [Сс]ъезд "," $1ом съезде "],["^ (\\S+)[иоы]й (\\S+н)ий [Сс]ъезд "," $1ом $2ем съезде "],["^ (\\S+н)ий (\\S+)[иоы]й [Сс]ъезд "," $1ем $2ом съезде "],["^ (\\S+)[иоы]й (\\S+)[иоы]й [Сс]ъезд "," $1ом $2ом съезде "],["^ (\\S+)[иоы]й (\\S+[иы]н) [Сс]ъезд "," $1ом $2ом съезде "],["^ (\\d+)-й (\\S+н)ий [Сс]ъезд "," $1-м $2ем съезде "],["^ (\\d+)-й (\\S+)[иоы]й [Сс]ъезд "," $1-м $2ом съезде "],["^ (\\d+)-й (\\S+[иы]н) [Сс]ъезд "," $1-м $2ом съезде "],["^ [Сс]ъезд "," съезде "],["^ (\\S+н)ий [Тт][уо]ннель "," $1ем тоннеле "],["^ (\\S+)[иоы]й [Тт][уо]ннель "," $1ом тоннеле "],["^ (\\S+[иы]н) [Тт][уо]ннель "," $1ом тоннеле "],["^ (\\S+)[иоы]й (\\S+н)ий [Тт][уо]ннель "," $1ом $2ем тоннеле "],["^ (\\S+н)ий (\\S+)[иоы]й [Тт][уо]ннель "," $1ем $2ом тоннеле "],["^ (\\S+)[иоы]й (\\S+)[иоы]й [Тт][уо]ннель "," $1ом $2ом тоннеле "],["^ (\\S+)[иоы]й (\\S+[иы]н) [Тт][уо]ннель "," $1ом $2ом тоннеле "],["^ (\\d+)-й (\\S+н)ий [Тт][уо]ннель "," $1-м $2ем тоннеле "],["^ (\\d+)-й (\\S+)[иоы]й [Тт][уо]ннель "," $1-м $2ом тоннеле "],["^ (\\d+)-й (\\S+[иы]н) [Тт][уо]ннель "," $1-м $2ом тоннеле "],["^ [Тт][уо]ннель "," тоннеле "],["^ (\\S+н)ий [Тт]ракт "," $1ем тракте "],["^ (\\S+)[иоы]й [Тт]ракт "," $1ом тракте "],["^ (\\S+[еёо]в) [Тт]ракт "," $1ом тракте "],["^ (\\S+[иы]н) [Тт]ракт "," $1ом тракте "],["^ (\\S+)[иоы]й (\\S+н)ий [Тт]ракт "," $1ом $2ем тракте "],["^ (\\S+н)ий (\\S+)[иоы]й [Тт]ракт "," $1ем $2ом тракте "],["^ (\\S+)[иоы]й (\\S+)[иоы]й [Тт]ракт "," $1ом $2ом тракте "],["^ (\\S+)[иоы]й (\\S+[еёо]в) [Тт]ракт "," $1ом $2ом тракте "],["^ (\\S+)[иоы]й (\\S+[иы]н) [Тт]ракт "," $1ом $2ом тракте "],["^ (\\d+)-й (\\S+н)ий [Тт]ракт "," $1-м $2ем тракте "],["^ (\\d+)-й (\\S+)[иоы]й [Тт]ракт "," $1-м $2ом тракте "],["^ (\\d+)-й (\\S+[еёо]в) [Тт]ракт "," $1-м $2ом тракте "],["^ (\\d+)-й (\\S+[иы]н) [Тт]ракт "," $1-м $2ом тракте "],["^ [Тт]ракт "," тракте "],["^ (\\S+н)ий [Тт]упик "," $1ем тупике "],["^ (\\S+)[иоы]й [Тт]упик "," $1ом тупике "],["^ (\\S+[еёо]в) [Тт]упик "," $1ом тупике "],["^ (\\S+[иы]н) [Тт]упик "," $1ом тупике "],["^ (\\S+)[иоы]й (\\S+н)ий [Тт]упик "," $1ом $2ем тупике "],["^ (\\S+н)ий (\\S+)[иоы]й [Тт]упик "," $1ем $2ом тупике "],["^ (\\S+)[иоы]й (\\S+)[иоы]й [Тт]упик "," $1ом $2ом тупике "],["^ (\\S+)[иоы]й (\\S+[еёо]в) [Тт]упик "," $1ом $2ом тупике "],["^ (\\S+)[иоы]й (\\S+[иы]н) [Тт]упик "," $1ом $2ом тупике "],["^ (\\d+)-й [Тт]упик "," $1-м тупике "],["^ (\\d+)-й (\\S+н)ий [Тт]упик "," $1-м $2ем тупике "],["^ (\\d+)-й (\\S+)[иоы]й [Тт]упик "," $1-м $2ом тупике "],["^ (\\d+)-й (\\S+[еёо]в) [Тт]упик "," $1-м $2ом тупике "],["^ (\\d+)-й (\\S+[иы]н) [Тт]упик "," $1-м $2ом тупике "],["^ [Тт]упик "," тупике "],["^ (\\S+[ео])е ([Пп]олу)?[Кк]ольцо "," $1м $2кольце "],["^ (\\S+ье) ([Пп]олу)?[Кк]ольцо "," $1м $2кольце "],["^ (\\S+[ео])е (\\S+[ео])е ([Пп]олу)?[Кк]ольцо "," $1м $2м $3кольце "],["^ (\\S+ье) (\\S+[ео])е ([Пп]олу)?[Кк]ольцо "," $1м $2м $3кольце "],["^ (\\d+)-е (\\S+[ео])е ([Пп]олу)?[Кк]ольцо "," $1-м $2м $3кольце "],["^ (\\d+)-е (\\S+ье) ([Пп]олу)?[Кк]ольцо "," $1-м $2м $3кольце "],["^ ([Пп]олу)?[Кк]ольцо "," $1кольце "],["^ (\\S+[ео])е [Шш]оссе "," $1м шоссе "],["^ (\\S+ье) [Шш]оссе "," $1м шоссе "],["^ (\\S+[ео])е (\\S+[ео])е [Шш]оссе "," $1м $2м шоссе "],["^ (\\S+ье) (\\S+[ео])е [Шш]оссе "," $1м $2м шоссе "],["^ (\\d+)-е (\\S+[ео])е [Шш]оссе "," $1-м $2м шоссе "],["^ (\\d+)-е (\\S+ье) [Шш]оссе "," $1-м $2м шоссе "],[" ([Тт])ретом "," $1ретьем "],["([жч])ом ","$1ьем "]]}}},{}],23:[function(
vendor: 57,095 bytes, line 12
12e,t,i){t.exports={meta:{capitalizeFirstLetter:!0},v5:{constants:{ordinalize:{1:"første",2:"anden",3:"tredje",4:"fjerde",5:"femte",6:"sjette",7:"syvende",8:"ottende",9:"niende",10:"tiende"},direction:{north:"Nord",northeast:"Nordøst",east:"Øst",southeast:"Sydøst",south:"Syd",southwest:"Sydvest",west:"Vest",northwest:"Nordvest"},modifier:{left:"venstresving",right:"højresving","sharp left":"skarpt venstresving","sharp right":"skarpt højresving","slight left":"svagt venstresving","slight right":"svagt højresving",straight:"ligeud",uturn:"U-vending"},lanes:{xo:"Hold til højre",ox:"Hold til venstre",xox:"Benyt midterste spor",oxo:"Hold til højre eller venstre"}},modes:{ferry:{default:"Tag færgen",name:"Tag færgen {way_name}",destination:"Tag færgen i retning {destination}"}},phrase:{"two linked by distance":"{instruction_one} derefter, efter {distance}, {instruction_two}","two linked":"{instruction_one}, derefter {instruction_two}","one in distance":"Efter {distance} {instruction_one}","name and ref":"{name} ({ref})","exit with number":"afkørsel {exit}"},arrive:{default:{default:"Du er ankommet til din {nth} destination",upcoming:"Du vil ankomme til din {nth} destination",short:"Du er ankommet","short-upcoming":"Du vil ankomme",named:"Du er ankommet til {waypoint_name}"},left:{default:"Du er ankommet til din {nth} destination, som befinder sig til venstre",upcoming:"Du vil ankomme til din {nth} destination på venstre hånd",short:"Du er ankommet","short-upcoming":"Du vil ankomme",named:"Du er ankommet til {waypoint_name}, som befinder sig til venstre"},right:{default:"Du er ankommet til din {nth} destination, som befinder sig til højre",upcoming:"Du vil ankomme til din {nth} destination på højre hånd",short:"Du er ankommet","short-upcoming":"Du vil ankomme",named:"Du er ankommet til {waypoint_name}, som befinder sig til højre"},"sharp left":{default:"Du er ankommet til din {nth} destination, som befinder sig til venstre",upcoming:"Du vil ankomme til din {nth} destination på venstre hånd",short:"Du er ankommet","short-upcoming":"Du vil ankomme",named:"Du er ankommet til {waypoint_name}, som befinder sig til venstre"},"sharp right":{default:"Du er ankommet til din {nth} destination, som befinder sig til højre",upcoming:"Du vil ankomme til din {nth} destination på højre hånd",short:"Du er ankommet","short-upcoming":"Du vil ankomme",named:"Du er ankommet til {waypoint_name}, som befinder sig til højre"},"slight right":{default:"Du er ankommet til din {nth} destination, som befinder sig til højre",upcoming:"Du vil ankomme til din {nth} destination på højre hånd",short:"Du er ankommet","short-upcoming":"Du vil ankomme",named:"Du er ankommet til {waypoint_name}, som befinder sig til højre"},"slight left":{default:"Du er ankommet til din {nth} destination, som befinder sig til venstre",upcoming:"Du vil ankomme til din {nth} destination på venstre hånd",short:"Du er ankommet","short-upcoming":"Du vil ankomme",named:"Du er ankommet til {waypoint_name}, som befinder sig til venstre"},straight:{default:"Du er ankommet til din {nth} destination, der befinder sig lige frem",upcoming:"Du vil ankomme til din {nth} destination foran dig",short:"Du er ankommet","short-upcoming":"Du vil ankomme",named:"Du er ankommet til {waypoint_name}, der befinder sig lige frem"}},continue:{default:{default:"Drej til {modifier}",name:"Drej til {modifier} videre ad {way_name}",destination:"Drej til {modifier} mod {destination}",exit:"Drej til {modifier} ad {way_name}"},straight:{default:"Fortsæt ligeud",name:"Fortsæt ligeud ad {way_name}",destination:"Fortsæt mod {destination}",distance:"Fortsæt {distance} ligeud",namedistance:"Fortsæt {distance} ad {way_name}"},"sharp left":{default:"Drej skarpt til venstre",name:"Drej skarpt til venstre videre ad {way_name}",destination:"Drej skarpt til venstre mod {destination}"},"sharp right":{default:"Drej skarpt til højre",name:"Drej skarpt til højre videre ad {way_name}",destination:"Drej skarpt til højre mod {destination}"},"slight left":{default:"Drej left til venstre",name:"Drej let til venstre videre ad {way_name}",destination:"Drej let til venstre mod {destination}"},"slight right":{default:"Drej let til højre",name:"Drej let til højre videre ad {way_name}",destination:"Drej let til højre mod {destination}"},uturn:{default:"Foretag en U-vending",name:"Foretag en U-vending tilbage ad {way_name}",destination:"Foretag en U-vending mod {destination}"}},depart:{default:{default:"Kør mod {direction}",name:"Kør mod {direction} ad {way_name}",namedistance:"Fortsæt {distance} ad {way_name}mod {direction}"}},"end of road":{default:{default:"Drej til {modifier}",name:"Drej til {modifier} ad {way_name}",destination:"Drej til {modifier} mof {destination}"},straight:{default:"Fortsæt ligeud",name:"Fortsæt ligeud ad {way_name}",destination:"Fortsæt ligeud mod {destination}"},uturn:{default:"Foretag en U-vending for enden af vejen",name:"Foretag en U-vending ad {way_name} for enden af vejen",destination:"Foretag en U-vending mod {destination} for enden af vejen"}},fork:{default:{default:"Hold til {modifier} ved udfletningen",name:"Hold mod {modifier} på {way_name}",destination:"Hold mod {modifier} mod {destination}"},"slight left":{default:"Hold til venstre ved udfletningen",name:"Hold til venstre på {way_name}",destination:"Hold til venstre mod {destination}"},"slight right":{default:"Hold til højre ved udfletningen",name:"Hold til højre på {way_name}",destination:"Hold til højre mod {destination}"},"sharp left":{default:"Drej skarpt til venstre ved udfletningen",name:"Drej skarpt til venstre ad {way_name}",destination:"Drej skarpt til venstre mod {destination}"},"sharp right":{default:"Drej skarpt til højre ved udfletningen",name:"Drej skarpt til højre ad {way_name}",destination:"Drej skarpt til højre mod {destination}"},uturn:{default:"Foretag en U-vending",name:"Foretag en U-vending ad {way_name}",destination:"Foretag en U-vending mod {destination}"}},merge:{default:{default:"Flet til {modifier}",name:"Flet til {modifier} ad {way_name}",destination:"Flet til {modifier} mod {destination}"},straight:{default:"Flet",name:"Flet ind på {way_name}",destination:"Flet ind mod {destination}"},"slight left":{default:"Flet til venstre",name:"Flet til venstre ad {way_name}",destination:"Flet til venstre mod {destination}"},"slight right":{default:"Flet til højre",name:"Flet til højre ad {way_name}",destination:"Flet til højre mod {destination}"},"sharp left":{default:"Flet til venstre",name:"Flet til venstre ad {way_name}",destination:"Flet til venstre mod {destination}"},"sharp right":{default:"Flet til højre",name:"Flet til højre ad {way_name}",destination:"Flet til højre mod {destination}"},uturn:{default:"Foretag en U-vending",name:"Foretag en U-vending ad {way_name}",destination:"Foretag en U-vending mod {destination}"}},"new name":{default:{default:"Fortsæt {modifier}",name:"Fortsæt {modifier} ad {way_name}",destination:"Fortsæt {modifier} mod {destination}"},straight:{default:"Fortsæt ligeud",name:"Fortsæt ad {way_name}",destination:"Fortsæt mod {destination}"},"sharp left":{default:"Drej skarpt til venstre",name:"Drej skarpt til venstre ad {way_name}",destination:"Drej skarpt til venstre mod {destination}"},"sharp right":{default:"Drej skarpt til højre",name:"Drej skarpt til højre ad {way_name}",destination:"Drej skarpt til højre mod {destination}"},"slight left":{default:"Fortsæt til venstre",name:"Fortsæt til venstre ad {way_name}",destination:"Fortsæt til venstre mod {destination}"},"slight right":{default:"Fortsæt til højre",name:"Fortsæt til højre ad {way_name}",destination:"Fortsæt til højre mod {destination}"},uturn:{default:"Foretag en U-vending",name:"Foretag en U-vending ad {way_name}",destination:"Foretag en U-vending mod {destination}"}},notification:{default:{default:"Fortsæt {modifier}",name:"Fortsæt {modifier} ad {way_name}",destination:"Fortsæt {modifier} mod {destination}"},uturn:{default:"Foretag en U-vending",name:"Foretag en U-vending ad {way_name}",destination:"Foretag en U-vending mod {destination}"}},"off ramp":{default:{default:"Tag afkørslen",name:"Tag afkørslen ad {way_name}",destination:"Tag afkørslen mod {destination}",exit:"Vælg afkørsel {exit}",exit_destination:"Vælg afkørsel {exit} mod {destination}"},left:{default:"Tag afkørslen til venstre",name:"Tag afkørslen til venstre ad {way_name}",destination:"Tag afkørslen til venstre mod {destination}",exit:"Vælg afkørsel {exit} til venstre",exit_destination:"Vælg afkørsel {exit} til venstre mod {destination}\n"},right:{default:"Tag afkørslen til højre",name:"Tag afkørslen til højre ad {way_name}",destination:"Tag afkørslen til højre mod {destination}",exit:"Vælg afkørsel {exit} til højre",exit_destination:"Vælg afkørsel {exit} til højre mod {destination}"},"sharp left":{default:"Tag afkørslen til venstre",name:"Tag afkørslen til venstre ad {way_name}",destination:"Tag afkørslen til venstre mod {destination}",exit:"Vælg afkørsel {exit} til venstre",exit_destination:"Vælg afkørsel {exit} til venstre mod {destination}\n"},"sharp right":{default:"Tag afkørslen til højre",name:"Tag afkørslen til højre ad {way_name}",destination:"Tag afkørslen til højre mod {destination}",exit:"Vælg afkørsel {exit} til højre",exit_destination:"Vælg afkørsel {exit} til højre mod {destination}"},"slight left":{default:"Tag afkørslen til venstre",name:"Tag afkørslen til venstre ad {way_name}",destination:"Tag afkørslen til venstre mod {destination}",exit:"Vælg afkørsel {exit} til venstre",exit_destination:"Vælg afkørsel {exit} til venstre mod {destination}\n"},"slight right":{default:"Tag afkørslen til højre",name:"Tag afkørslen til højre ad {way_name}",destination:"Tag afkørslen til højre mod {destination}",exit:"Vælg afkørsel {exit} til højre",exit_destination:"Vælg afkørsel {exit} til højre mod {destination}"}},"on ramp":{default:{default:"Tag afkørslen",name:"Tag afkørslen ad {way_name}",destination:"Tag afkørslen mod {destination}"},left:{default:"Tag afkørslen til venstre",name:"Tag afkørslen til venstre ad {way_name}",destination:"Tag afkørslen til venstre mod {destination}"},right:{default:"Tag afkørslen til højre",name:"Tag afkørslen til højre ad {way_name}",destination:"Tag afkørslen til højre mod {destination}"},"sharp left":{default:"Tag afkørslen til venstre",name:"Tag afkørslen til venstre ad {way_name}",destination:"Tag afkørslen til venstre mod {destination}"},"sharp right":{default:"Tag afkørslen til højre",name:"Tag afkørslen til højre ad {way_name}",destination:"Tag afkørslen til højre mod {destination}"},"slight left":{default:"Tag afkørslen til venstre",name:"Tag afkørslen til venstre ad {way_name}",destination:"Tag afkørslen til venstre mod {destination}"},"slight right":{default:"Tag afkørslen til højre",name:"Tag afkørslen til højre ad {way_name}",destination:"Tag afkørslen til højre mod {destination}"}},rotary:{default:{default:{default:"Kør ind i rundkørslen",name:"Tag rundkørslen og kør fra ad {way_name}",destination:"Tag rundkørslen og kør mod {destination}"},name:{default:"Kør ind i {rotary_name}",name:"Kør ind i {rotary_name} og kør ad {way_name} ",destination:"Kør ind i {rotary_name} og kør mod {destination}"},exit:{default:"Tag rundkørslen og forlad ved {exit_number} afkørsel",name:"Tag rundkørslen og forlad ved {exit_number} afkørsel ad {way_name}",destination:"Tag rundkørslen og forlad ved {exit_number} afkørsel mod {destination}"},name_exit:{default:"Kør ind i {rotary_name} og forlad ved {exit_number} afkørsel",name:"Kør ind i {rotary_name} og forlad ved {exit_number} afkørsel ad {way_name}",destination:"Kør ind i {rotary_name} og forlad ved {exit_number} afkørsel mod {destination}"}}},roundabout:{default:{exit:{default:"Tag rundkørslen og forlad ved {exit_number} afkørsel",name:"Tag rundkørslen og forlad ved {exit_number} afkørsel ad {way_name}",destination:"Tag rundkørslen og forlad ved {exit_number} afkørsel mod {destination}"},default:{default:"Kør ind i rundkørslen",name:"Tag rundkørslen og kør fra ad {way_name}",destination:"Tag rundkørslen og kør mod {destination}"}}},"roundabout turn":{default:{default:"Foretag et {modifier}",name:"Foretag et {modifier} ad {way_name}",destination:"Foretag et {modifier} mod {destination}"},left:{default:"Drej til venstre",name:"Drej til venstre ad {way_name}",destination:"Drej til venstre mod {destination}"},right:{default:"Drej til højre",name:"Drej til højre ad {way_name}",destination:"Drej til højre mod {destination}"},straight:{default:"Fortsæt ligeud",name:"Fortsæt ligeud ad {way_name}",destination:"Fortsæt ligeud mod {destination}"}},"exit roundabout":{default:{default:"Forlad rundkørslen",name:"Forlad rundkørslen ad {way_name}",destination:"Forlad rundkørslen mod  {destination}"}},"exit rotary":{default:{default:"Forlad rundkørslen",name:"Forlad rundkørslen ad {way_name}",destination:"Forlad rundkørslen mod {destination}"}},turn:{default:{default:"Foretag et {modifier}",name:"Foretag et {modifier} ad {way_name}",destination:"Foretag et {modifier} mod {destination}"},left:{default:"Drej til venstre",name:"Drej til venstre ad {way_name}",destination:"Drej til venstre mod {destination}"},right:{default:"Drej til højre",name:"Drej til højre ad {way_name}",destination:"Drej til højre mod {destination}"},straight:{default:"Fortsæt ligeud",name:"Kør ligeud ad {way_name}",destination:"Kør ligeud mod {destination}"}},"use lane":{no_lanes:{default:"Fortsæt ligeud"},default:{default:"{lane_instruction}"}}}}},{}],24:[function(e,t,i){t.exports={meta:{capitalizeFirstLetter:!0},v5:{constants:{ordinalize:{1:"erste",2:"zweite",3:"dritte",4:"vierte",5:"fünfte",6:"sechste",7:"siebente",8:"achte",9:"neunte",10:"zehnte"},direction:{north:"Norden",northeast:"Nordosten",east:"Osten",southeast:"Südosten",south:"Süden",southwest:"Südwesten",west:"Westen",northwest:"Nordwesten"},modifier:{left:"links",right:"rechts","sharp left":"scharf links","sharp right":"scharf rechts","slight left":"leicht links","slight right":"leicht rechts",straight:"geradeaus",uturn:"180°-Wendung"},lanes:{xo:"Rechts halten",ox:"Links halten",xox:"Mittlere Spur nutzen",oxo:"Rechts oder links halten"}},modes:{ferry:{default:"Fähre nehmen",name:"Fähre nehmen {way_name}",destination:"Fähre nehmen Richtung {destination}"}},phrase:{"two linked by distance":"{instruction_one} danach in {distance} {instruction_two}","two linked":"{instruction_one} danach {instruction_two}","one in distance":"In {distance}, {instruction_one}","name and ref":"{name} ({ref})","exit with number":"exit {exit}"},arrive:{default:{default:"Sie haben Ihr {nth} Ziel erreicht",upcoming:"Sie haben Ihr {nth} Ziel erreicht",short:"Sie haben Ihr {nth} Ziel erreicht","short-upcoming":"Sie haben Ihr {nth} Ziel erreicht",named:"Sie haben Ihr {waypoint_name}"},left:{default:"Sie haben Ihr {nth} Ziel erreicht, es befindet sich links",upcoming:"Sie haben Ihr {nth} Ziel erreicht, es befindet sich links",short:"Sie haben Ihr {nth} Ziel erreicht","short-upcoming":"Sie haben Ihr {nth} Ziel erreicht",named:"Sie haben Ihr {waypoint_name}, es befindet sich links"},right:{default:"Sie haben Ihr {nth} Ziel erreicht, es befindet sich rechts",upcoming:"Sie haben Ihr {nth} Ziel erreicht, es befindet sich rechts",short:"Sie haben Ihr {nth} Ziel erreicht","short-upcoming":"Sie haben Ihr {nth} Ziel erreicht",named:"Sie haben Ihr {waypoint_name}, es befindet sich rechts"},"sharp left":{default:"Sie haben Ihr {nth} Ziel erreicht, es befindet sich links",upcoming:"Sie haben Ihr {nth} Ziel erreicht, es befindet sich links",short:"Sie haben Ihr {nth} Ziel erreicht","short-upcoming":"Sie haben Ihr {nth} Ziel erreicht",named:"Sie haben Ihr {waypoint_name}, es befindet sich links"},"sharp right":{default:"Sie haben Ihr {nth} Ziel erreicht, es befindet sich rechts",upcoming:"Sie haben Ihr {nth} Ziel erreicht, es befindet sich rechts",short:"Sie haben Ihr {nth} Ziel erreicht","short-upcoming":"Sie haben Ihr {nth} Ziel erreicht",named:"Sie haben Ihr {waypoint_name}, es befindet sich rechts"},"slight right":{default:"Sie haben Ihr {nth} Ziel erreicht, es befindet sich rechts",upcoming:"Sie haben Ihr {nth} Ziel erreicht, es befindet sich rechts",short:"Sie haben Ihr {nth} Ziel erreicht","short-upcoming":"Sie haben Ihr {nth} Ziel erreicht",named:"Sie haben Ihr {waypoint_name}, es befindet sich rechts"},"slight left":{default:"Sie haben Ihr {nth} Ziel erreicht, es befindet sich links",upcoming:"Sie haben Ihr {nth} Ziel erreicht, es befindet sich links",short:"Sie haben Ihr {nth} Ziel erreicht","short-upcoming":"Sie haben Ihr {nth} Ziel erreicht",named:"Sie haben Ihr {waypoint_name}, es befindet sich links"},straight:{default:"Sie haben Ihr {nth} Ziel erreicht, es befindet sich geradeaus",upcoming:"Sie haben Ihr {nth} Ziel erreicht, es befindet sich geradeaus",short:"Sie haben Ihr {nth} Ziel erreicht","short-upcoming":"Sie haben Ihr {nth} Ziel erreicht",named:"Sie haben Ihr {waypoint_name}, es befindet sich geradeaus"}},continue:{default:{default:"{modifier} abbiegen",name:"{modifier} weiterfahren auf {way_name}",destination:"{modifier} abbiegen Richtung {destination}",exit:"{modifier} abbiegen auf {way_name}"},straight:{default:"Geradeaus weiterfahren",name:"Geradeaus weiterfahren auf {way_name}",destination:"Weiterfahren in Richtung {destination}",distance:"Geradeaus weiterfahren für {distance}",namedistance:"Geradeaus weiterfahren auf {way_name} für {distance}"},"sharp left":{default:"Scharf links",name:"Scharf links weiterfahren auf {way_name}",destination:"Scharf links Richtung {destination}"},"sharp right":{default:"Scharf rechts",name:"Scharf rechts weiterfahren auf {way_name}",destination:"Scharf rechts Richtung {destination}"},"slight left":{default:"Leicht links",name:"Leicht links weiter auf {way_name}",destination:"Leicht links weiter Richtung {destination}"},"slight right":{default:"Leicht rechts weiter",name:"Leicht rechts weiter auf {way_name}",destination:"Leicht rechts weiter Richtung {destination}"},uturn:{default:"180°-Wendung",name:"180°-Wendung auf {way_name}",destination:"180°-Wendung Richtung {destination}"}},depart:{default:{default:"Fahren Sie Richtung {direction}",name:"Fahren Sie Richtung {direction} auf {way_name}",namedistance:"Fahren Sie Richtung {direction} auf {way_name} für {distance}"}},"end of road":{default:{default:"{modifier} abbiegen",name:"{modifier} abbiegen auf {way_name}",destination:"{modifier} abbiegen Richtung {destination}"},straight:{default:"Geradeaus weiterfahren",name:"Geradeaus weiterfahren auf {way_name}",destination:"Geradeaus weiterfahren Richtung {destination}"},uturn:{default:"180°-Wendung am Ende der Straße",name:"180°-Wendung auf {way_name} am Ende der Straße",destination:"180°-Wendung Richtung {destination} am Ende der Straße"}},fork:{default:{default:"{modifier} halten an der Gabelung",name:"{modifier} halten an der Gabelung auf {way_name}",destination:"{modifier}  halten an der Gabelung Richtung {destination}"},"slight left":{default:"Links halten an der Gabelung",name:"Links halten an der Gabelung auf {way_name}",destination:"Links halten an der Gabelung Richtung {destination}"},"slight right":{default:"Rechts halten an der Gabelung",name:"Rechts halten an der Gabelung auf {way_name}",destination:"Rechts halten an der Gabelung Richtung {destination}"},"sharp left":{default:"Scharf links abbiegen an der Gabelung",name:"Scharf links auf {way_name}",destination:"Scharf links Richtung {destination}"},"sharp right":{default:"Scharf rechts abbiegen an der Gabelung",name:"Scharf rechts auf {way_name}",destination:"Scharf rechts Richtung {destination}"},uturn:{default:"180°-Wendung",name:"180°-Wendung auf {way_name}",destination:"180°-Wendung Richtung {destination}"}},merge:{default:{default:"{modifier} auffahren",name:"{modifier} auffahren auf {way_name}",destination:"{modifier} auffahren Richtung {destination}"},straight:{default:"geradeaus auffahren",name:"geradeaus auffahren auf {way_name}",destination:"geradeaus auffahren Richtung {destination}"},"slight left":{default:"Leicht links auffahren",name:"Leicht links auffahren auf {way_name}",destination:"Leicht links auffahren Richtung {destination}"},"slight right":{default:"Leicht rechts auffahren",name:"Leicht rechts auffahren auf {way_name}",destination:"Leicht rechts auffahren Richtung {destination}"},"sharp left":{default:"Scharf links auffahren",name:"Scharf links auffahren auf {way_name}",destination:"Scharf links auffahren Richtung {destination}"},"sharp right":{default:"Scharf rechts auffahren",name:"Scharf rechts auffahren auf {way_name}",destination:"Scharf rechts auffahren Richtung {destination}"},uturn:{default:"180°-Wendung",name:"180°-Wendung auf {way_name}",destination:"180°-Wendung Richtung {destination}"}},"new name":{default:{default:"{modifier} weiterfahren",name:"{modifier} weiterfahren auf {way_name}",destination:"{modifier} weiterfahren Richtung {destination}"},straight:{default:"Geradeaus weiterfahren",name:"Weiterfahren auf {way_name}",destination:"Weiterfahren in Richtung {destination}"},"sharp left":{default:"Scharf links",name:"Scharf links auf {way_name}",destination:"Scharf links Richtung {destination}"},"sharp right":{default:"Scharf rechts",name:"Scharf rechts auf {way_name}",destination:"Scharf rechts Richtung {destination}"},"slight left":{default:"Leicht links weiter",name:"Leicht links weiter auf {way_name}",destination:"Leicht links weiter Richtung {destination}"},"slight right":{default:"Leicht rechts weiter",name:"Leicht rechts weiter auf {way_name}",destination:"Leicht rechts weiter Richtung {destination}"},uturn:{default:"180°-Wendung",name:"180°-Wendung auf {way_name}",destination:"180°-Wendung Richtung {destination}"}},notification:{default:{default:"{modifier} weiterfahren",name:"{modifier} weiterfahren auf {way_name}",destination:"{modifier} weiterfahren Richtung {destination}"},uturn:{default:"180°-Wendung",name:"180°-Wendung auf {way_name}",destination:"180°-Wendung Richtung {destination}"}},"off ramp":{default:{default:"Ausfahrt nehmen",name:"Ausfahrt nehmen auf {way_name}",destination:"Ausfahrt nehmen Richtung {destination}",exit:"Ausfahrt {exit} nehmen",exit_destination:"Ausfahrt {exit} nehmen Richtung {destination}"},left:{default:"Ausfahrt links nehmen",name:"Ausfahrt links nehmen auf {way_name}",destination:"Ausfahrt links nehmen Richtung {destination}",exit:"Ausfahrt {exit} links nehmen",exit_destination:"Ausfahrt {exit} links nehmen Richtung {destination}"},right:{default:"Ausfahrt rechts nehmen",name:"Ausfahrt rechts nehmen Richtung {way_name}",destination:"Ausfahrt rechts nehmen Richtung {destination}",exit:"Ausfahrt {exit} rechts nehmen",exit_destination:"Ausfahrt {exit} nehmen Richtung {destination}"},"sharp left":{default:"Ausfahrt links nehmen",name:"Ausfahrt links Seite nehmen auf {way_name}",destination:"Ausfahrt links nehmen Richtung {destination}",exit:"Ausfahrt {exit} links nehmen",exit_destination:"Ausfahrt{exit} links nehmen Richtung {destination}"},"sharp right":{default:"Ausfahrt rechts nehmen",name:"Ausfahrt rechts nehmen auf {way_name}",destination:"Ausfahrt rechts nehmen Richtung {destination}",exit:"Ausfahrt {exit} rechts nehmen",exit_destination:"Ausfahrt {exit} nehmen Richtung {destination}"},"slight left":{default:"Ausfahrt links nehmen",name:"Ausfahrt links nehmen auf {way_name}",destination:"Ausfahrt links nehmen Richtung {destination}",exit:"Ausfahrt {exit} nehmen",exit_destination:"Ausfahrt {exit} links nehmen Richtung {destination}"},"slight right":{default:"Ausfahrt rechts nehmen",name:"Ausfahrt rechts nehmen auf {way_name}",destination:"Ausfahrt rechts nehmen Richtung {destination}",exit:"Ausfahrt {exit} rechts nehmen",exit_destination:"Ausfahrt {exit} nehmen Richtung {destination}"}},"on ramp":{default:{default:"Auffahrt nehmen",name:"Auffahrt nehmen auf {way_name}",destination:"Auffahrt nehmen Richtung {destination}"},left:{default:"Auffahrt links nehmen",name:"Auffahrt links nehmen auf {way_name}",destination:"Auffahrt links nehmen Richtung {destination}"},right:{default:"Auffahrt rechts nehmen",name:"Auffahrt rechts nehmen auf {way_name}",destination:"Auffahrt rechts nehmen Richtung {destination}"},"sharp left":{default:"Auffahrt links nehmen",name:"Auffahrt links nehmen auf {way_name}",destination:"Auffahrt links nehmen Richtung {destination}"},"sharp right":{default:"Auffahrt rechts nehmen",name:"Auffahrt rechts nehmen auf {way_name}",destination:"Auffahrt rechts nehmen Richtung {destination}"},"slight left":{default:"Auffahrt links Seite nehmen",name:"Auffahrt links nehmen auf {way_name}",destination:"Auffahrt links nehmen Richtung {destination}"},"slight right":{default:"Auffahrt rechts nehmen",name:"Auffahrt rechts nehmen auf {way_name}",destination:"Auffahrt rechts nehmen Richtung {destination}"}},rotary:{default:{default:{default:"In den Kreisverkehr fahren",name:"Im Kreisverkehr die Ausfahrt auf {way_name} nehmen",destination:"Im Kreisverkehr die Ausfahrt Richtung {destination} nehmen"},name:{default:"In {rotary_name} fahren",name:"In {rotary_name} die Ausfahrt auf {way_name} nehmen",destination:"In {rotary_name} die Ausfahrt Richtung {destination} nehmen"},exit:{default:"Im Kreisverkehr die {exit_number} Ausfahrt nehmen",name:"Im Kreisverkehr die {exit_number} Ausfahrt nehmen auf {way_name}",destination:"Im Kreisverkehr die {exit_number} Ausfahrt nehmen Richtung {destination}"},name_exit:{default:"In den Kreisverkehr fahren und {exit_number} Ausfahrt nehmen",name:"In den Kreisverkehr fahren und {exit_number} Ausfahrt nehmen auf {way_name}",destination:"In den Kreisverkehr fahren und {exit_number} Ausfahrt nehmen Richtung {destination}"}}},roundabout:{default:{exit:{default:"Im Kreisverkehr die {exit_number} Ausfahrt nehmen",name:"Im Kreisverkehr die {exit_number} Ausfahrt nehmen auf {way_name}",destination:"Im Kreisverkehr die {exit_number} Ausfahrt nehmen Richtung {destination}"},default:{default:"In den Kreisverkehr fahren",name:"Im Kreisverkehr die Ausfahrt auf {way_name} nehmen",destination:"Im Kreisverkehr die Ausfahrt Richtung {destination} nehmen"}}},"roundabout turn":{default:{default:"{modifier} abbiegen",name:"{modifier} abbiegen auf {way_name}",destination:"{modifier} abbiegen Richtung {destination}"},left:{default:"Links abbiegen",name:"Links abbiegen auf {way_name}",destination:"Links abbiegen Richtung {destination}"},right:{default:"Rechts abbiegen",name:"Rechts abbiegen auf {way_name}",destination:"Rechts abbiegen Richtung {destination}"},straight:{default:"Geradeaus weiterfahren",name:"Geradeaus weiterfahren auf {way_name}",destination:"Geradeaus weiterfahren Richtung {destination}"}},"exit roundabout":{default:{default:"{modifier} abbiegen",name:"{modifier} abbiegen auf {way_name}",destination:"{modifier} abbiegen Richtung {destination}"},left:{default:"Links abbiegen",name:"Links abbiegen auf {way_name}",destination:"Links abbiegen Richtung {destination}"},right:{default:"Rechts abbiegen",name:"Rechts abbiegen auf {way_name}",destination:"Rechts abbiegen Richtung {destination}"},straight:{default:"Geradeaus weiterfahren",name:"Geradeaus weiterfahren auf {way_name}",destination:"Geradeaus weiterfahren Richtung {destination}"}},"exit rotary":{default:{default:"{modifier} abbiegen",name:"{modifier} abbiegen auf {way_name}",destination:"{modifier} abbiegen Richtung {destination}"},left:{default:"Links abbiegen",name:"Links abbiegen auf {way_name}",destination:"Links abbiegen Richtung {destination}"},right:{default:"Rechts abbiegen",name:"Rechts abbiegen auf {way_name}",destination:"Rechts abbiegen Richtung {destination}"},straight:{default:"Geradeaus weiterfahren",name:"Geradeaus weiterfahren auf {way_name}",destination:"Geradeaus weiterfahren Richtung {destination}"}},turn:{default:{default:"{modifier} abbiegen",name:"{modifier} abbiegen auf {way_name}",destination:"{modifier} abbiegen Richtung {destination}"},left:{default:"Links abbiegen",name:"Links abbiegen auf {way_name}",destination:"Links abbiegen Richtung {destination}"},right:{default:"Rechts abbiegen",name:"Rechts abbiegen auf {way_name}",destination:"Rechts abbiegen Richtung {destination}"},straight:{default:"Geradeaus weiterfahren",name:"Geradeaus weiterfahren auf {way_name}",destination:"Geradeaus weiterfahren Richtung {destination}"}},"use lane":{no_lanes:{default:"Geradeaus weiterfahren"},default:{default:"{lane_instruction}"}}}}},{}],25:[function(e,t,i){t.exports={meta:{capitalizeFirstLetter:!0},v5:{constants:{ordinalize:{1:"1st",2:"2nd",3:"3rd",4:"4th",5:"5th",6:"6th",7:"7th",8:"8th",9:"9th",10:"10th"},direction:{north:"north",northeast:"northeast",east:"east",southeast:"southeast",south:"south",southwest:"southwest",west:"west",northwest:"northwest"},modifier:{left:"left",right:"right","sharp left":"sharp left","sharp right":"sharp right","slight left":"slight left","slight right":"slight right",straight:"straight",uturn:"U-turn"},lanes:{xo:"Keep right",ox:"Keep left",xox:"Keep in the middle",oxo:"Keep left or right"}},modes:{ferry:{default:"Take the ferry",name:"Take the ferry {way_name}",destination:"Take the ferry towards {destination}"}},phrase:{"two linked by distance":"{instruction_one}, then, in {distance}, {instruction_two}","two linked":"{instruction_one}, then {instruction_two}","one in distance":"In {distance}, {instruction_one}","name and ref":"{name} ({ref})","exit with number":"exit {exit}"},arrive:{default:{default:"You have arrived at your {nth} destination",upcoming:"You will arrive at your {nth} destination",short:"You have arrived","short-upcoming":"You will arrive",named:"You have arrived at {waypoint_name}"},left:{default:"You have arrived at your {nth} destination, on the left",upcoming:"You will arrive at your {nth} destination, on the left",short:"You have arrived","short-upcoming":"You will arrive",named:"You have arrived at {waypoint_name}, on the left"},right:{default:"You have arrived at your {nth} destination, on the right",upcoming:"You will arrive at your {nth} destination, on the right",short:"You have arrived","short-upcoming":"You will arrive",named:"You have arrived at {waypoint_name}, on the right"},"sharp left":{default:"You have arrived at your {nth} destination, on the left",upcoming:"You will arrive at your {nth} destination, on the left",short:"You have arrived","short-upcoming":"You will arrive",named:"You have arrived at {waypoint_name}, on the left"},"sharp right":{default:"You have arrived at your {nth} destination, on the right",upcoming:"You will arrive at your {nth} destination, on the right",short:"You have arrived","short-upcoming":"You will arrive",named:"You have arrived at {waypoint_name}, on the right"},"slight right":{default:"You have arrived at your {nth} destination, on the right",upcoming:"You will arrive at your {nth} destination, on the right",short:"You have arrived","short-upcoming":"You will arrive",named:"You have arrived at {waypoint_name}, on the right"},"slight left":{default:"You have arrived at your {nth} destination, on the left",upcoming:"You will arrive at your {nth} destination, on the left",short:"You have arrived","short-upcoming":"You will arrive",named:"You have arrived at {waypoint_name}, on the left"},straight:{default:"You have arrived at your {nth} destination, straight ahead",upcoming:"You will arrive at your {nth} destination, straight ahead",short:"You have arrived","short-upcoming":"You will arrive",named:"You have arrived at {waypoint_name}, straight ahead"}},continue:{default:{default:"Turn {modifier}",name:"Turn {modifier} to stay on {way_name}",destination:"Turn {modifier} towards {destination}",exit:"Turn {modifier} onto {way_name}"},straight:{default:"Continue straight",name:"Continue straight to stay on {way_name}",destination:"Continue towards {destination}",distance:"Continue straight for {distance}",namedistance:"Continue on {way_name} for {distance}"},"sharp left":{default:"Make a sharp left",name:"Make a sharp left to stay on {way_name}",destination:"Make a sharp left towards {destination}"},"sharp right":{default:"Make a sharp right",name:"Make a sharp right to stay on {way_name}",destination:"Make a sharp right towards {destination}"},"slight left":{default:"Make a slight left",name:"Make a slight left to stay on {way_name}",destination:"Make a slight left towards {destination}"},"slight right":{default:"Make a slight right",name:"Make a slight right to stay on {way_name}",destination:"Make a slight right towards {destination}"},uturn:{default:"Make a U-turn",name:"Make a U-turn and continue on {way_name}",destination:"Make a U-turn towards {destination}"}},depart:{default:{default:"Head {direction}",name:"Head {direction} on {way_name}",namedistance:"Head {direction} on {way_name} for {distance}"}},"end of road":{default:{default:"Turn {modifier}",name:"Turn {modifier} onto {way_name}",destination:"Turn {modifier} towards {destination}"},straight:{default:"Continue straight",name:"Continue straight onto {way_name}",destination:"Continue straight towards {destination}"},uturn:{default:"Make a U-turn at the end of the road",name:"Make a U-turn onto {way_name} at the end of the road",destination:"Make a U-turn towards {destination} at the end of the road"}},fork:{default:{default:"Keep {modifier} at the fork",name:"Keep {modifier} onto {way_name}",destination:"Keep {modifier} towards {destination}"},"slight left":{default:"Keep left at the fork",name:"Keep left onto {way_name}",destination:"Keep left towards {destination}"},"slight right":{default:"Keep right at the fork",name:"Keep right onto {way_name}",destination:"Keep right towards {destination}"},"sharp left":{default:"Take a sharp left at the fork",name:"Take a sharp left onto {way_name}",destination:"Take a sharp left towards {destination}"},"sharp right":{default:"Take a sharp right at the fork",name:"Take a sharp right onto {way_name}",destination:"Take a sharp right towards {destination}"},uturn:{default:"Make a U-turn",name:"Make a U-turn onto {way_name}",destination:"Make a U-turn towards {destination}"}},merge:{default:{default:"Merge {modifier}",name:"Merge {modifier} onto {way_name}",destination:"Merge {modifier} towards {destination}"},straight:{default:"Merge",name:"Merge onto {way_name}",destination:"Merge towards {destination}"},"slight left":{default:"Merge left",name:"Merge left onto {way_name}",destination:"Merge left towards {destination}"},"slight right":{default:"Merge right",name:"Merge right onto {way_name}",destination:"Merge right towards {destination}"},"sharp left":{default:"Merge left",name:"Merge left onto {way_name}",destination:"Merge left towards {destination}"},"sharp right":{default:"Merge right",name:"Merge right onto {way_name}",destination:"Merge right towards {destination}"},uturn:{default:"Make a U-turn",name:"Make a U-turn onto {way_name}",destination:"Make a U-turn towards {destination}"}},"new name":{default:{default:"Continue {modifier}",name:"Continue {modifier} onto {way_name}",destination:"Continue {modifier} towards {destination}"},straight:{default:"Continue straight",name:"Continue onto {way_name}",destination:"Continue towards {destination}"},"sharp left":{default:"Take a sharp left",name:"Take a sharp left onto {way_name}",destination:"Take a sharp left towards {destination}"},"sharp right":{default:"Take a sharp right",name:"Take a sharp right onto {way_name}",destination:"Take a sharp right towards {destination}"},"slight left":{default:"Continue slightly left",name:"Continue slightly left onto {way_name}",destination:"Continue slightly left towards {destination}"},"slight right":{default:"Continue slightly right",name:"Continue slightly right onto {way_name}",destination:"Continue slightly right towards {destination}"},uturn:{default:"Make a U-turn",name:"Make a U-turn onto {way_name}",destination:"Make a U-turn towards {destination}"}},notification:{default:{default:"Continue {modifier}",name:"Continue {modifier} onto {way_name}",destination:"Continue {modifier} towards {destination}"},uturn:{default:"Make a U-turn",name:"Make a U-turn onto {way_name}",destination:"Make a U-turn towards {destination}"}},"off ramp":{default:{default:"Take the ramp",name:"Take the ramp onto {way_name}",destination:"Take the ramp towards {destination}",exit:"Take exit {exit}",exit_destination:"Take exit {exit} towards {destination}"},left:{default:"Take the ramp on the left",name:"Take the ramp on the left onto {way_name}",destination:"Take the ramp on the left towards {destination}",exit:"Take exit {exit} on the left",exit_destination:"Take exit {exit} on the left towards {destination}"},right:{default:"Take the ramp on the right",name:"Take the ramp on the right onto {way_name}",destination:"Take the ramp on the right towards {destination}",exit:"Take exit {exit} on the right",exit_destination:"Take exit {exit} on the right towards {destination}"},"sharp left":{default:"Take the ramp on the left",name:"Take the ramp on the left onto {way_name}",destination:"Take the ramp on the left towards {destination}",exit:"Take exit {exit} on the left",exit_destination:"Take exit {exit} on the left towards {destination}"},"sharp right":{default:"Take the ramp on the right",name:"Take the ramp on the right onto {way_name}",destination:"Take the ramp on the right towards {destination}",exit:"Take exit {exit} on the right",exit_destination:"Take exit {exit} on the right towards {destination}"},"slight left":{default:"Take the ramp on the left",name:"Take the ramp on the left onto {way_name}",destination:"Take the ramp on the left towards {destination}",exit:"Take exit {exit} on the left",exit_destination:"Take exit {exit} on the left towards {destination}"},"slight right":{default:"Take the ramp on the right",name:"Take the ramp on the right onto {way_name}",destination:"Take the ramp on the right towards {destination}",exit:"Take exit {exit} on the right",exit_destination:"Take exit {exit} on the right towards {destination}"}},"on ramp":{default:{default:"Take the ramp",name:"Take the ramp onto {way_name}",destination:"Take the ramp towards {destination}"},left:{default:"Take the ramp on the left",name:"Take the ramp on the left onto {way_name}",destination:"Take the ramp on the left towards {destination}"},right:{default:"Take the ramp on the right",name:"Take the ramp on the right onto {way_name}",destination:"Take the ramp on the right towards {destination}"},"sharp left":{default:"Take the ramp on the left",name:"Take the ramp on the left onto {way_name}",destination:"Take the ramp on the left towards {destination}"},"sharp right":{default:"Take the ramp on the right",name:"Take the ramp on the right onto {way_name}",destination:"Take the ramp on the right towards {destination}"},"slight left":{default:"Take the ramp on the left",name:"Take the ramp on the left onto {way_name}",destination:"Take the ramp on the left towards {destination}"},"slight right":{default:"Take the ramp on the right",name:"Take the ramp on the right onto {way_name}",destination:"Take the ramp on the right towards {destination}"}},rotary:{default:{default:{default:"Enter the traffic circle",name:"Enter the traffic circle and exit onto {way_name}",destination:"Enter the traffic circle and exit towards {destination}"},name:{default:"Enter {rotary_name}",name:"Enter {rotary_name} and exit onto {way_name}",destination:"Enter {rotary_name} and exit towards {destination}"},exit:{default:"Enter the traffic circle and take the {exit_number} exit",name:"Enter the traffic circle and take the {exit_number} exit onto {way_name}",destination:"Enter the traffic circle and take the {exit_number} exit towards {destination}"},name_exit:{default:"Enter {rotary_name} and take the {exit_number} exit",name:"Enter {rotary_name} and take the {exit_number} exit onto {way_name}",destination:"Enter {rotary_name} and take the {exit_number} exit towards {destination}"}}},roundabout:{default:{exit:{default:"Enter the traffic circle and take the {exit_number} exit",name:"Enter the traffic circle and take the {exit_number} exit onto {way_name}",destination:"Enter the traffic circle and take the {exit_number} exit towards {destination}"},default:{default:"Enter the traffic circle",name:"Enter the traffic circle and exit onto {way_name}",destination:"Enter the traffic circle and exit towards {destination}"}}},"roundabout turn":{default:{default:"Make a {modifier}",name:"Make a {modifier} onto {way_name}",destination:"Make a {modifier} towards {destination}"},left:{default:"Turn left",name:"Turn left onto {way_name}",destination:"Turn left towards {destination}"},right:{default:"Turn right",name:"Turn right onto {way_name}",destination:"Turn right towards {destination}"},straight:{default:"Continue straight",name:"Continue straight onto {way_name}",destination:"Continue straight towards {destination}"}},"exit roundabout":{default:{default:"Exit the traffic circle",name:"Exit the traffic circle onto {way_name}",destination:"Exit the traffic circle towards {destination}"}},"exit rotary":{default:{default:"Exit the traffic circle",name:"Exit the traffic circle onto {way_name}",destination:"Exit the traffic circle towards {destination}"}},turn:{default:{default:"Make a {modifier}",name:"Make a {modifier} onto {way_name}",destination:"Make a {modifier} towards {destination}"},left:{default:"Turn left",name:"Turn left onto {way_name}",destination:"Turn left towards {destination}"},right:{default:"Turn right",name:"Turn right onto {way_name}",destination:"Turn right towards {destination}"},straight:{default:"Go straight",name:"Go straight onto {way_name}",destination:"Go straight towards {destination}"}},"use lane":{no_lanes:{default:"Continue straight"},default:{default:"{lane_instruction}"}}}}},{}],26:[function(e,t,i){t.exports={meta:{capitalizeFirstLetter:!0},v5:{constants:{ordinalize:{1:"1.",2:"2.",3:"3.",4:"4.",5:"5.",6:"6.",7:"7.",8:"8.",9:"9.",10:"10."},direction:{north:"norden",northeast:"nord-orienten",east:"orienten",southeast:"sud-orienten",south:"suden",southwest:"sud-okcidenten",west:"okcidenten",northwest:"nord-okcidenten"},modifier:{left:"maldekstren",right:"dekstren","sharp left":"maldekstregen","sharp right":"dekstregen","slight left":"maldekstreten","slight right":"dekstreten",straight:"rekten",uturn:"turniĝu malantaŭen"},lanes:{xo:"Veturu dekstre",ox:"Veturu maldekstre",xox:"Veturu meze",oxo:"Veturu dekstre aŭ maldekstre"}},modes:{ferry:{default:"Enpramiĝu",name:"Enpramiĝu {way_name}",destination:"Enpramiĝu direkte al {destination}"}},phrase:{"two linked by distance":"{instruction_one} kaj post {distance} {instruction_two}","two linked":"{instruction_one} kaj sekve {instruction_two}","one in distance":"Post {distance}, {instruction_one}","name and ref":"{name} ({ref})","exit with number":"elveturejo {exit}"},arrive:{default:{default:"Vi atingis vian {nth} celon",upcoming:"Vi atingos vian {nth} celon",short:"Vi atingis","short-upcoming":"Vi atingos",named:"Vi atingis {waypoint_name}"},left:{default:"Vi atingis vian {nth} celon ĉe maldekstre",upcoming:"Vi atingos vian {nth} celon ĉe maldekstre",short:"Vi atingis","short-upcoming":"Vi atingos",named:"Vi atingis {waypoint_name}, ĉe maldekstre"},right:{default:"Vi atingis vian {nth} celon ĉe dekstre",upcoming:"Vi atingos vian {nth} celon ĉe dekstre",short:"Vi atingis","short-upcoming":"Vi atingos",named:"Vi atingis {waypoint_name}, ĉe dekstre"},"sharp left":{default:"Vi atingis vian {nth} celon ĉe maldekstre",upcoming:"Vi atingos vian {nth} celon ĉe maldekstre",short:"Vi atingis","short-upcoming":"Vi atingos",named:"Vi atingis {waypoint_name}, ĉe maldekstre"},"sharp right":{default:"Vi atingis vian {nth} celon ĉe dekstre",upcoming:"Vi atingos vian {nth} celon ĉe dekstre",short:"Vi atingis","short-upcoming":"Vi atingos",named:"Vi atingis {waypoint_name}, ĉe dekstre"},"slight right":{default:"Vi atingis vian {nth} celon ĉe dekstre",upcoming:"Vi atingos vian {nth} celon ĉe dekstre",short:"Vi atingis","short-upcoming":"Vi atingos",named:"Vi atingis {waypoint_name}, ĉe dekstre"},"slight left":{default:"Vi atingis vian {nth} celon ĉe maldekstre",upcoming:"Vi atingos vian {nth} celon ĉe maldekstre",short:"Vi atingis","short-upcoming":"Vi atingos",named:"Vi atingis {waypoint_name}, ĉe maldekstre"},straight:{default:"Vi atingis vian {nth} celon",upcoming:"Vi atingos vian {nth} celon rekte",short:"Vi atingis","short-upcoming":"Vi atingos",named:"Vi atingis {waypoint_name} antaŭe"}},continue:{default:{default:"Veturu {modifier}",name:"Veturu {modifier} al {way_name}",destination:"Veturu {modifier} direkte al {destination}",exit:"Veturu {modifier} direkte al {way_name}"},straight:{default:"Veturu rekten",name:"Veturu rekten al {way_name}",destination:"Veturu rekten direkte al {destination}",distance:"Veturu rekten dum {distance}",namedistance:"Veturu rekten al {way_name} dum {distance}"},"sharp left":{default:"Turniĝu ege maldekstren",name:"Turniĝu ege maldekstren al {way_name}",destination:"Turniĝu ege maldekstren direkte al {destination}"},"sharp right":{default:"Turniĝu ege dekstren",name:"Turniĝu ege dekstren al {way_name}",destination:"Turniĝu ege dekstren direkte al {destination}"},"slight left":{default:"Turniĝu ete maldekstren",name:"Turniĝu ete maldekstren al {way_name}",destination:"Turniĝu ete maldekstren direkte al {destination}"},"slight right":{default:"Turniĝu ete dekstren",name:"Turniĝu ete dekstren al {way_name}",destination:"Turniĝu ete dekstren direkte al {destination}"},uturn:{default:"Turniĝu malantaŭen",name:"Turniĝu malantaŭen al {way_name}",destination:"Turniĝu malantaŭen direkte al {destination}"}},depart:{default:{default:"Direktiĝu {direction}",name:"Direktiĝu {direction} al {way_name}",namedistance:"Direktiĝu {direction} al {way_name} tra {distance}"}},"end of road":{default:{default:"Veturu {modifier}",name:"Veturu {modifier} direkte al {way_name}",destination:"Veturu {modifier} direkte al {destination}"},straight:{default:"Veturu rekten",name:"Veturu rekten al {way_name}",destination:"Veturu rekten direkte al {destination}"},uturn:{default:"Turniĝu malantaŭen ĉe fino de la vojo",name:"Turniĝu malantaŭen al {way_name} ĉe fino de la vojo",destination:"Turniĝu malantaŭen direkte al {destination} ĉe fino de la vojo"}},fork:{default:{default:"Daŭru {modifier} ĉe la vojforko",name:"Pluu {modifier} al {way_name}",destination:"Pluu {modifier} direkte al {destination}"},"slight left":{default:"Maldekstren ĉe la vojforko",name:"Pluu maldekstren al {way_name}",destination:"Pluu maldekstren direkte al {destination}"},"slight right":{default:"Dekstren ĉe la vojforko",name:"Pluu dekstren al {way_name}",destination:"Pluu dekstren direkte al {destination}"},"sharp left":{default:"Ege maldekstren ĉe la vojforko",name:"Turniĝu ege maldekstren al {way_name}",destination:"Turniĝu ege maldekstren direkte al {destination}"},"sharp right":{default:"Ege dekstren ĉe la vojforko",name:"Turniĝu ege dekstren al {way_name}",destination:"Turniĝu ege dekstren direkte al {destination}"},uturn:{default:"Turniĝu malantaŭen",name:"Turniĝu malantaŭen al {way_name}",destination:"Turniĝu malantaŭen direkte al {destination}"}},merge:{default:{default:"Enveturu {modifier}",name:"Enveturu {modifier} al {way_name}",destination:"Enveturu {modifier} direkte al {destination}"},straight:{default:"Enveturu",name:"Enveturu al {way_name}",destination:"Enveturu direkte al {destination}"},"slight left":{default:"Enveturu de maldekstre",name:"Enveturu de maldekstre al {way_name}",destination:"Enveturu de maldekstre direkte al {destination}"},"slight right":{default:"Enveturu de dekstre",name:"Enveturu de dekstre al {way_name}",destination:"Enveturu de dekstre direkte al {destination}"},"sharp left":{default:"Enveturu de maldekstre",name:"Enveture de maldekstre al {way_name}",destination:"Enveturu de maldekstre direkte al {destination}"},"sharp right":{default:"Enveturu de dekstre",name:"Enveturu de dekstre al {way_name}",destination:"Enveturu de dekstre direkte al {destination}"},uturn:{default:"Turniĝu malantaŭen",name:"Turniĝu malantaŭen al {way_name}",destination:"Turniĝu malantaŭen direkte al {destination}"}},"new name":{default:{default:"Pluu {modifier}",name:"Pluu {modifier} al {way_name}",destination:"Pluu {modifier} direkte al {destination}"},straight:{default:"Veturu rekten",name:"Veturu rekten al {way_name}",destination:"Veturu rekten direkte al {destination}"},"sharp left":{default:"Turniĝu ege maldekstren",name:"Turniĝu ege maldekstren al {way_name}",destination:"Turniĝu ege maldekstren direkte al {destination}"},"sharp right":{default:"Turniĝu ege dekstren",name:"Turniĝu ege dekstren al {way_name}",destination:"Turniĝu ege dekstren direkte al {destination}"},"slight left":{default:"Pluu ete maldekstren",name:"Pluu ete maldekstren al {way_name}",destination:"Pluu ete maldekstren direkte al {destination}"},"slight right":{default:"Pluu ete dekstren",name:"Pluu ete dekstren al {way_name}",destination:"Pluu ete dekstren direkte al {destination}"},uturn:{default:"Turniĝu malantaŭen",name:"Turniĝu malantaŭen al {way_name}",destination:"Turniĝu malantaŭen direkte al {destination}"}},notification:{default:{default:"Pluu {modifier}",name:"Pluu {modifier} al {way_name}",destination:"Pluu {modifier} direkte al {destination}"},uturn:{default:"Turniĝu malantaŭen",name:"Turniĝu malantaŭen al {way_name}",destination:"Turniĝu malantaŭen direkte al {destination}"}},"off ramp":{default:{default:"Direktiĝu al enveturejo",name:"Direktiĝu al enveturejo al {way_name}",destination:"Direktiĝu al enveturejo direkte al {destination}",exit:"Direktiĝu al elveturejo {exit}",exit_destination:"Direktiĝu al elveturejo {exit} direkte al {destination}"},left:{default:"Direktiĝu al enveturejo ĉe maldekstre",name:"Direktiĝu al enveturejo ĉe maldekstre al {way_name}",destination:"Direktiĝu al enveturejo ĉe maldekstre al {destination}",exit:"Direktiĝu al elveturejo {exit} ĉe maldekstre",exit_destination:"Direktiĝu al elveturejo {exit} ĉe maldekstre direkte al {destination}"},right:{default:"Direktiĝu al enveturejo ĉe dekstre",name:"Direktiĝu al enveturejo ĉe dekstre al {way_name}",destination:"Direktiĝu al enveturejo ĉe dekstre al {destination}",exit:"Direktiĝu al {exit} elveturejo ĉe ldekstre",exit_destination:"Direktiĝu al elveturejo {exit} ĉe dekstre direkte al {destination}"},"sharp left":{default:"Direktiĝu al enveturejo ĉe maldekstre",name:"Direktiĝu al enveturejo ĉe maldekstre al {way_name}",destination:"Direktiĝu al enveturejo ĉe maldekstre al {destination}",exit:"Direktiĝu al {exit} elveturejo ĉe maldekstre",exit_destination:"Direktiĝu al elveturejo {exit} ĉe maldekstre direkte al {destination}"},"sharp right":{default:"Direktiĝu al enveturejo ĉe dekstre",name:"Direktiĝu al enveturejo ĉe dekstre al {way_name}",destination:"Direktiĝu al enveturejo ĉe dekstre al {destination}",exit:"Direktiĝu al elveturejo {exit} ĉe dekstre",exit_destination:"Direktiĝu al elveturejo {exit} ĉe dekstre direkte al {destination}"},"slight left":{default:"Direktiĝu al enveturejo ĉe maldekstre",name:"Direktiĝu al enveturejo ĉe maldekstre al {way_name}",destination:"Direktiĝu al enveturejo ĉe maldekstre al {destination}",exit:"Direktiĝu al {exit} elveturejo ĉe maldekstre",exit_destination:"Direktiĝu al elveturejo {exit} ĉe maldekstre direkte al {destination}"},"slight right":{default:"Direktiĝu al enveturejo ĉe dekstre",name:"Direktiĝu al enveturejo ĉe dekstre al {way_name}",destination:"Direktiĝu al enveturejo ĉe dekstre al {destination}",exit:"Direktiĝu al {exit} elveturejo ĉe ldekstre",exit_destination:"Direktiĝu al elveturejo {exit} ĉe dekstre direkte al {destination}"}},"on ramp":{default:{default:"Direktiĝu al enveturejo",name:"Direktiĝu al enveturejo al {way_name}",destination:"Direktiĝu al enveturejo direkte al {destination}"},left:{default:"Direktiĝu al enveturejo ĉe maldekstre",name:"Direktiĝu al enveturejo ĉe maldekstre al {way_name}",destination:"Direktiĝu al enveturejo ĉe maldekstre al {destination}"},right:{default:"Direktiĝu al enveturejo ĉe dekstre",name:"Direktiĝu al enveturejo ĉe dekstre al {way_name}",destination:"Direktiĝu al enveturejo ĉe dekstre al {destination}"},"sharp left":{default:"Direktiĝu al enveturejo ĉe maldekstre",name:"Direktiĝu al enveturejo ĉe maldekstre al {way_name}",destination:"Direktiĝu al enveturejo ĉe maldekstre al {destination}"},"sharp right":{default:"Direktiĝu al enveturejo ĉe dekstre",name:"Direktiĝu al enveturejo ĉe dekstre al {way_name}",destination:"Direktiĝu al enveturejo ĉe dekstre al {destination}"},"slight left":{default:"Direktiĝu al enveturejo ĉe maldekstre",name:"Direktiĝu al enveturejo ĉe maldekstre al {way_name}",destination:"Direktiĝu al enveturejo ĉe maldekstre al {destination}"},"slight right":{default:"Direktiĝu al enveturejo ĉe dekstre",name:"Direktiĝu al enveturejo ĉe dekstre al {way_name}",destination:"Direktiĝu al enveturejo ĉe dekstre al {destination}"}},rotary:{default:{default:{default:"Enveturu trafikcirklegon",name:"Enveturu trafikcirklegon kaj elveturu al {way_name}",destination:"Enveturu trafikcirklegon kaj elveturu direkte al {destination}"},name:{default:"Enveturu {rotary_name}",name:"Enveturu {rotary_name} kaj elveturu al {way_name}",destination:"Enveturu {rotary_name} kaj elveturu direkte al {destination}"},exit:{default:"Enveturu trafikcirklegon kaj sekve al {exit_number} elveturejo",name:"Enveturu trafikcirklegon kaj sekve al {exit_number} elveturejo al {way_name}",destination:"Enveturu trafikcirklegon kaj sekve al {exit_number} elveturejo direkte al {destination}"},name_exit:{default:"Enveturu {rotary_name} kaj sekve al {exit_number} elveturejo",name:"Enveturu {rotary_name} kaj sekve al {exit_number} elveturejo al {way_name}",destination:"Enveturu {rotary_name} kaj sekve al {exit_number} elveturejo direkte al {destination}"}}},roundabout:{default:{exit:{default:"Enveturu trafikcirklegon kaj sekve al {exit_number} elveturejo",name:"Enveturu trafikcirklegon kaj sekve al {exit_number} elveturejo al {way_name}",destination:"Enveturu trafikcirklegon kaj sekve al {exit_number} elveturejo direkte al {destination}"},default:{default:"Enveturu trafikcirklegon",name:"Enveturu trafikcirklegon kaj elveturu al {way_name}",destination:"Enveturu trafikcirklegon kaj elveturu direkte al {destination}"}}},"roundabout turn":{default:{default:"Veturu {modifier}",name:"Veturu {modifier} al {way_name}",destination:"Veturu {modifier} direkte al {destination}"},left:{default:"Turniĝu maldekstren",name:"Turniĝu maldekstren al {way_name}",destination:"Turniĝu maldekstren direkte al {destination}"},right:{default:"Turniĝu dekstren",name:"Turniĝu dekstren al {way_name}",destination:"Turniĝu dekstren direkte al {destination}"},straight:{default:"Pluu rekten",name:"Veturu rekten al {way_name}",destination:"Veturu rekten direkte al {destination}"}},"exit roundabout":{default:{default:"Elveturu trafikcirklegon",name:"Elveturu trafikcirklegon al {way_name}",destination:"Elveturu trafikcirklegon direkte al {destination}"}},"exit rotary":{default:{default:"Eliru trafikcirklegon",name:"Elveturu trafikcirklegon al {way_name}",destination:"Elveturu trafikcirklegon direkte al {destination}"}},turn:{default:{default:"Veturu {modifier}",name:"Veturu {modifier} al {way_name}",destination:"Veturu {modifier} direkte al {destination}"},left:{default:"Turniĝu maldekstren",name:"Turniĝu maldekstren al {way_name}",destination:"Turniĝu maldekstren direkte al {destination}"},right:{default:"Turniĝu dekstren",name:"Turniĝu dekstren al {way_name}",destination:"Turniĝu dekstren direkte al {destination}"},straight:{default:"Veturu rekten",name:"Veturu rekten al {way_name}",destination:"Veturu rekten direkte al {destination}"}},"use lane":{no_lanes:{default:"Pluu rekten"},default:{default:"{lane_instruction}"}}}}},{}],27:[function(e,t,i){t.exports={meta:{capitalizeFirstLetter:!0},v5:{constants:{ordinalize:{1:"1ª",2:"2ª",3:"3ª",4:"4ª",5:"5ª",6:"6ª",7:"7ª",8:"8ª",9:"9ª",10:"10ª"},direction:{north:"norte",northeast:"noreste",east:"este",southeast:"sureste",south:"sur",southwest:"suroeste",west:"oeste",northwest:"noroeste"},modifier:{left:"a la izquierda",right:"a la derecha","sharp left":"cerrada a la izquierda","sharp right":"cerrada a la derecha","slight left":"ligeramente a la izquierda","slight right":"ligeramente a la derecha",straight:"recto",uturn:"cambio de sentido"},lanes:{xo:"Mantente a la derecha",ox:"Mantente a la izquierda",xox:"Mantente en el medio",oxo:"Mantente a la izquierda o a la derecha"}},modes:{ferry:{default:"Coge el ferry",name:"Coge el ferry {way_name}",destination:"Coge el ferry hacia {destination}"}},phrase:{"two linked by distance":"{instruction_one} y luego en {distance}
12, {instruction_two}","two linked":"{instruction_one} y luego {instruction_two}","one in distance":"A {distance}, {instruction_one}","name and ref":"{name} ({ref})","exit with number":"salida {exit}"},arrive:{default:{default:"Has llegado a tu {nth} destino",upcoming:"Vas a llegar a tu {nth} destino",short:"Has llegado","short-upcoming":"Vas a llegar",named:"Has llegado a {waypoint_name}"},left:{default:"Has llegado a tu {nth} destino, a la izquierda",upcoming:"Vas a llegar a tu {nth} destino, a la izquierda",short:"Has llegado","short-upcoming":"Vas a llegar",named:"Has llegado a {waypoint_name}, a la izquierda"},right:{default:"Has llegado a tu {nth} destino, a la derecha",upcoming:"Vas a llegar a tu {nth} destino, a la derecha",short:"Has llegado","short-upcoming":"Vas a llegar",named:"Has llegado a {waypoint_name}, a la derecha"},"sharp left":{default:"Has llegado a tu {nth} destino, a la izquierda",upcoming:"Vas a llegar a tu {nth} destino, a la izquierda",short:"Has llegado","short-upcoming":"Vas a llegar",named:"Has llegado a {waypoint_name}, a la izquierda"},"sharp right":{default:"Has llegado a tu {nth} destino, a la derecha",upcoming:"Vas a llegar a tu {nth} destino, a la derecha",short:"Has llegado","short-upcoming":"Vas a llegar",named:"Has llegado a {waypoint_name}, a la derecha"},"slight right":{default:"Has llegado a tu {nth} destino, a la derecha",upcoming:"Vas a llegar a tu {nth} destino, a la derecha",short:"Has llegado","short-upcoming":"Vas a llegar",named:"Has llegado a {waypoint_name}, a la derecha"},"slight left":{default:"Has llegado a tu {nth} destino, a la izquierda",upcoming:"Vas a llegar a tu {nth} destino, a la izquierda",short:"Has llegado","short-upcoming":"Vas a llegar",named:"Has llegado a {waypoint_name}, a la izquierda"},straight:{default:"Has llegado a tu {nth} destino, en frente",upcoming:"Vas a llegar a tu {nth} destino, en frente",short:"Has llegado","short-upcoming":"Vas a llegar",named:"Has llegado a {waypoint_name}, en frente"}},continue:{default:{default:"Gire {modifier}",name:"Cruce {modifier} en {way_name}",destination:"Gire {modifier} hacia {destination}",exit:"Gire {modifier} en {way_name}"},straight:{default:"Continúa recto",name:"Continúa en {way_name}",destination:"Continúa hacia {destination}",distance:"Continúa recto por {distance}",namedistance:"Continúa recto en {way_name} por {distance}"},"sharp left":{default:"Gire a la izquierda",name:"Gire a la izquierda en {way_name}",destination:"Gire a la izquierda hacia {destination}"},"sharp right":{default:"Gire a la derecha",name:"Gire a la derecha en {way_name}",destination:"Gire a la derecha hacia {destination}"},"slight left":{default:"Gire a la izquierda",name:"Doble levemente a la izquierda en {way_name}",destination:"Gire a la izquierda hacia {destination}"},"slight right":{default:"Gire a la izquierda",name:"Doble levemente a la derecha en {way_name}",destination:"Gire a la izquierda hacia {destination}"},uturn:{default:"Haz un cambio de sentido",name:"Haz un cambio de sentido y continúa en {way_name}",destination:"Haz un cambio de sentido hacia {destination}"}},depart:{default:{default:"Dirígete al {direction}",name:"Dirígete al {direction} por {way_name}",namedistance:"Dirígete al {direction} en {way_name} por {distance}"}},"end of road":{default:{default:"Al final de la calle gira {modifier}",name:"Al final de la calle gira {modifier} por {way_name}",destination:"Al final de la calle gira {modifier} hacia {destination}"},straight:{default:"Al final de la calle continúa recto",name:"Al final de la calle continúa recto por {way_name}",destination:"Al final de la calle continúa recto hacia {destination}"},uturn:{default:"Al final de la calle haz un cambio de sentido",name:"Al final de la calle haz un cambio de sentido en {way_name}",destination:"Al final de la calle haz un cambio de sentido hacia {destination}"}},fork:{default:{default:"Mantente {modifier} en el cruce",name:"Mantente {modifier} por {way_name}",destination:"Mantente {modifier} hacia {destination}"},"slight left":{default:"Mantente a la izquierda en el cruce",name:"Mantente a la izquierda por {way_name}",destination:"Mantente a la izquierda hacia {destination}"},"slight right":{default:"Mantente a la derecha en el cruce",name:"Mantente a la derecha por {way_name}",destination:"Mantente a la derecha hacia {destination}"},"sharp left":{default:"Gira la izquierda en el cruce",name:"Gira a la izquierda por {way_name}",destination:"Gira a la izquierda hacia {destination}"},"sharp right":{default:"Gira a la derecha en el cruce",name:"Gira a la derecha por {way_name}",destination:"Gira a la derecha hacia {destination}"},uturn:{default:"Haz un cambio de sentido",name:"Haz un cambio de sentido en {way_name}",destination:"Haz un cambio de sentido hacia {destination}"}},merge:{default:{default:"Incorpórate {modifier}",name:"Incorpórate {modifier} por {way_name}",destination:"Incorpórate {modifier} hacia {destination}"},straight:{default:"Incorpórate",name:"Incorpórate por {way_name}",destination:"Incorpórate hacia {destination}"},"slight left":{default:"Incorpórate a la izquierda",name:"Incorpórate a la izquierda por {way_name}",destination:"Incorpórate a la izquierda hacia {destination}"},"slight right":{default:"Incorpórate a la derecha",name:"Incorpórate a la derecha por {way_name}",destination:"Incorpórate a la derecha hacia {destination}"},"sharp left":{default:"Incorpórate a la izquierda",name:"Incorpórate a la izquierda por {way_name}",destination:"Incorpórate a la izquierda hacia {destination}"},"sharp right":{default:"Incorpórate a la derecha",name:"Incorpórate a la derecha por {way_name}",destination:"Incorpórate a la derecha hacia {destination}"},uturn:{default:"Haz un cambio de sentido",name:"Haz un cambio de sentido en {way_name}",destination:"Haz un cambio de sentido hacia {destination}"}},"new name":{default:{default:"Continúa {modifier}",name:"Continúa {modifier} por {way_name}",destination:"Continúa {modifier} hacia {destination}"},straight:{default:"Continúa recto",name:"Continúa por {way_name}",destination:"Continúa hacia {destination}"},"sharp left":{default:"Gira a la izquierda",name:"Gira a la izquierda por {way_name}",destination:"Gira a la izquierda hacia {destination}"},"sharp right":{default:"Gira a la derecha",name:"Gira a la derecha por {way_name}",destination:"Gira a la derecha hacia {destination}"},"slight left":{default:"Continúa ligeramente por la izquierda",name:"Continúa ligeramente por la izquierda por {way_name}",destination:"Continúa ligeramente por la izquierda hacia {destination}"},"slight right":{default:"Continúa ligeramente por la derecha",name:"Continúa ligeramente por la derecha por {way_name}",destination:"Continúa ligeramente por la derecha hacia {destination}"},uturn:{default:"Haz un cambio de sentido",name:"Haz un cambio de sentido en {way_name}",destination:"Haz un cambio de sentido hacia {destination}"}},notification:{default:{default:"Continúa {modifier}",name:"Continúa {modifier} por {way_name}",destination:"Continúa {modifier} hacia {destination}"},uturn:{default:"Haz un cambio de sentido",name:"Haz un cambio de sentido en {way_name}",destination:"Haz un cambio de sentido hacia {destination}"}},"off ramp":{default:{default:"Coge la cuesta abajo",name:"Coge la cuesta abajo por {way_name}",destination:"Coge la cuesta abajo hacia {destination}",exit:"Coge la cuesta abajo {exit}",exit_destination:"Coge la cuesta abajo {exit} hacia {destination}"},left:{default:"Coge la cuesta abajo de la izquierda",name:"Coge la cuesta abajo de la izquierda por {way_name}",destination:"Coge la cuesta abajo de la izquierda hacia {destination}",exit:"Coge la cuesta abajo {exit} a tu izquierda",exit_destination:"Coge la cuesta abajo {exit} a tu izquierda hacia {destination}"},right:{default:"Coge la cuesta abajo de la derecha",name:"Coge la cuesta abajo de la derecha por {way_name}",destination:"Coge la cuesta abajo de la derecha hacia {destination}",exit:"Coge la cuesta abajo {exit}",exit_destination:"Coge la cuesta abajo {exit} hacia {destination}"},"sharp left":{default:"Coge la cuesta abajo de la izquierda",name:"Coge la cuesta abajo de la izquierda por {way_name}",destination:"Coge la cuesta abajo de la izquierda hacia {destination}",exit:"Coge la cuesta abajo {exit} a tu izquierda",exit_destination:"Coge la cuesta abajo {exit} a tu izquierda hacia {destination}"},"sharp right":{default:"Coge la cuesta abajo de la derecha",name:"Coge la cuesta abajo de la derecha por {way_name}",destination:"Coge la cuesta abajo de la derecha hacia {destination}",exit:"Coge la cuesta abajo {exit}",exit_destination:"Coge la cuesta abajo {exit} hacia {destination}"},"slight left":{default:"Coge la cuesta abajo de la izquierda",name:"Coge la cuesta abajo de la izquierda por {way_name}",destination:"Coge la cuesta abajo de la izquierda hacia {destination}",exit:"Coge la cuesta abajo {exit} a tu izquierda",exit_destination:"Coge la cuesta abajo {exit} a tu izquierda hacia {destination}"},"slight right":{default:"Coge la cuesta abajo de la derecha",name:"Coge la cuesta abajo de la derecha por {way_name}",destination:"Coge la cuesta abajo de la derecha hacia {destination}",exit:"Coge la cuesta abajo {exit}",exit_destination:"Coge la cuesta abajo {exit} hacia {destination}"}},"on ramp":{default:{default:"Coge la cuesta",name:"Coge la cuesta por {way_name}",destination:"Coge la cuesta hacia {destination}"},left:{default:"Coge la cuesta de la izquierda",name:"Coge la cuesta de la izquierda por {way_name}",destination:"Coge la cuesta de la izquierda hacia {destination}"},right:{default:"Coge la cuesta de la derecha",name:"Coge la cuesta de la derecha por {way_name}",destination:"Coge la cuesta de la derecha hacia {destination}"},"sharp left":{default:"Coge la cuesta de la izquierda",name:"Coge la cuesta de la izquierda por {way_name}",destination:"Coge la cuesta de la izquierda hacia {destination}"},"sharp right":{default:"Coge la cuesta de la derecha",name:"Coge la cuesta de la derecha por {way_name}",destination:"Coge la cuesta de la derecha hacia {destination}"},"slight left":{default:"Coge la cuesta de la izquierda",name:"Coge la cuesta de la izquierda por {way_name}",destination:"Coge la cuesta de la izquierda hacia {destination}"},"slight right":{default:"Coge la cuesta de la derecha",name:"Coge la cuesta de la derecha por {way_name}",destination:"Coge la cuesta de la derecha hacia {destination}"}},rotary:{default:{default:{default:"Incorpórate en la rotonda",name:"En la rotonda sal por {way_name}",destination:"En la rotonda sal hacia {destination}"},name:{default:"En {rotary_name}",name:"En {rotary_name} sal por {way_name}",destination:"En {rotary_name} sal hacia {destination}"},exit:{default:"En la rotonda toma la {exit_number} salida",name:"En la rotonda toma la {exit_number} salida por {way_name}",destination:"En la rotonda toma la {exit_number} salida hacia {destination}"},name_exit:{default:"En {rotary_name} toma la {exit_number} salida",name:"En {rotary_name} toma la {exit_number} salida por {way_name}",destination:"En {rotary_name} toma la {exit_number} salida hacia {destination}"}}},roundabout:{default:{exit:{default:"En la rotonda toma la {exit_number} salida",name:"En la rotonda toma la {exit_number} salida por {way_name}",destination:"En la rotonda toma la {exit_number} salida hacia {destination}"},default:{default:"Incorpórate en la rotonda",name:"Incorpórate en la rotonda y sal en {way_name}",destination:"Incorpórate en la rotonda y sal hacia {destination}"}}},"roundabout turn":{default:{default:"Siga {modifier}",name:"Siga {modifier} en {way_name}",destination:"Siga {modifier} hacia {destination}"},left:{default:"Gire a la izquierda",name:"Gire a la izquierda en {way_name}",destination:"Gire a la izquierda hacia {destination}"},right:{default:"Gire a la derecha",name:"Gire a la derecha en {way_name}",destination:"Gire a la derecha hacia {destination}"},straight:{default:"Continúa recto",name:"Continúa recto por {way_name}",destination:"Continúa recto hacia {destination}"}},"exit roundabout":{default:{default:"Sal la rotonda",name:"Toma la salida por {way_name}",destination:"Toma la salida hacia {destination}"}},"exit rotary":{default:{default:"Sal la rotonda",name:"Toma la salida por {way_name}",destination:"Toma la salida hacia {destination}"}},turn:{default:{default:"Gira {modifier}",name:"Gira {modifier} por {way_name}",destination:"Gira {modifier} hacia {destination}"},left:{default:"Gira a la izquierda",name:"Gira a la izquierda por {way_name}",destination:"Gira a la izquierda hacia {destination}"},right:{default:"Gira a la derecha",name:"Gira a la derecha por {way_name}",destination:"Gira a la derecha hacia {destination}"},straight:{default:"Continúa recto",name:"Continúa recto por {way_name}",destination:"Continúa recto hacia {destination}"}},"use lane":{no_lanes:{default:"Continúa recto"},default:{default:"{lane_instruction}"}}}}},{}],28:[function(e,t,i){t.exports={meta:{capitalizeFirstLetter:!0},v5:{constants:{ordinalize:{1:"1ª",2:"2ª",3:"3ª",4:"4ª",5:"5ª",6:"6ª",7:"7ª",8:"8ª",9:"9ª",10:"10ª"},direction:{north:"norte",northeast:"noreste",east:"este",southeast:"sureste",south:"sur",southwest:"suroeste",west:"oeste",northwest:"noroeste"},modifier:{left:"izquierda",right:"derecha","sharp left":"cerrada a la izquierda","sharp right":"cerrada a la derecha","slight left":"levemente a la izquierda","slight right":"levemente a la derecha",straight:"recto",uturn:"cambio de sentido"},lanes:{xo:"Mantente a la derecha",ox:"Mantente a la izquierda",xox:"Mantente en el medio",oxo:"Mantente a la izquierda o derecha"}},modes:{ferry:{default:"Coge el ferry",name:"Coge el ferry {way_name}",destination:"Coge el ferry a {destination}"}},phrase:{"two linked by distance":"{instruction_one} y luego a {distance}, {instruction_two}","two linked":"{instruction_one} y luego {instruction_two}","one in distance":"A {distance}, {instruction_one}","name and ref":"{name} ({ref})","exit with number":"salida {exit}"},arrive:{default:{default:"Has llegado a tu {nth} destino",upcoming:"Vas a llegar a tu {nth} destino",short:"Has llegado","short-upcoming":"Vas a llegar",named:"Has llegado a {waypoint_name}"},left:{default:"Has llegado a tu {nth} destino, a la izquierda",upcoming:"Vas a llegar a tu {nth} destino, a la izquierda",short:"Has llegado","short-upcoming":"Vas a llegar",named:"Has llegado a {waypoint_name}, a la izquierda"},right:{default:"Has llegado a tu {nth} destino, a la derecha",upcoming:"Vas a llegar a tu {nth} destino, a la derecha",short:"Has llegado","short-upcoming":"Vas a llegar",named:"Has llegado a {waypoint_name}, a la derecha"},"sharp left":{default:"Has llegado a tu {nth} destino, a la izquierda",upcoming:"Vas a llegar a tu {nth} destino, a la izquierda",short:"Has llegado","short-upcoming":"Vas a llegar",named:"Has llegado a {waypoint_name}, a la izquierda"},"sharp right":{default:"Has llegado a tu {nth} destino, a la derecha",upcoming:"Vas a llegar a tu {nth} destino, a la derecha",short:"Has llegado","short-upcoming":"Vas a llegar",named:"Has llegado a {waypoint_name}, a la derecha"},"slight right":{default:"Has llegado a tu {nth} destino, a la derecha",upcoming:"Vas a llegar a tu {nth} destino, a la derecha",short:"Has llegado","short-upcoming":"Vas a llegar",named:"Has llegado a {waypoint_name}, a la derecha"},"slight left":{default:"Has llegado a tu {nth} destino, a la izquierda",upcoming:"Vas a llegar a tu {nth} destino, a la izquierda",short:"Has llegado","short-upcoming":"Vas a llegar",named:"Has llegado a {waypoint_name}, a la izquierda"},straight:{default:"Has llegado a tu {nth} destino, en frente",upcoming:"Vas a llegar a tu {nth} destino, en frente",short:"Has llegado","short-upcoming":"Vas a llegar",named:"Has llegado a {waypoint_name}, en frente"}},continue:{default:{default:"Gira a {modifier}",name:"Cruza a la{modifier}  en {way_name}",destination:"Gira a {modifier} hacia {destination}",exit:"Gira a {modifier} en {way_name}"},straight:{default:"Continúa recto",name:"Continúa en {way_name}",destination:"Continúa hacia {destination}",distance:"Continúa recto por {distance}",namedistance:"Continúa recto en {way_name} por {distance}"},"sharp left":{default:"Gira a la izquierda",name:"Gira a la izquierda
12 en {way_name}",destination:"Gira a la izquierda hacia {destination}"},"sharp right":{default:"Gira a la derecha",name:"Gira a la derecha en {way_name}",destination:"Gira a la derecha hacia {destination}"},"slight left":{default:"Gira a la izquierda",name:"Dobla levemente a la izquierda en {way_name}",destination:"Gira a la izquierda hacia {destination}"},"slight right":{default:"Gira a la izquierda",name:"Dobla levemente a la derecha en {way_name}",destination:"Gira a la izquierda hacia {destination}"},uturn:{default:"Haz un cambio de sentido",name:"Haz un cambio de sentido y continúa en {way_name}",destination:"Haz un cambio de sentido hacia {destination}"}},depart:{default:{default:"Ve a {direction}",name:"Ve a {direction} en {way_name}",namedistance:"Ve a {direction} en {way_name} por {distance}"}},"end of road":{default:{default:"Gira  a {modifier}",name:"Gira a {modifier} en {way_name}",destination:"Gira a {modifier} hacia {destination}"},straight:{default:"Continúa recto",name:"Continúa recto en {way_name}",destination:"Continúa recto hacia {destination}"},uturn:{default:"Haz un cambio de sentido al final de la via",name:"Haz un cambio de sentido en {way_name} al final de la via",destination:"Haz un cambio de sentido hacia {destination} al final de la via"}},fork:{default:{default:"Mantente  {modifier} en el cruza",name:"Mantente {modifier} en {way_name}",destination:"Mantente {modifier} hacia {destination}"},"slight left":{default:"Mantente a la izquierda en el cruza",name:"Mantente a la izquierda en {way_name}",destination:"Mantente a la izquierda hacia {destination}"},"slight right":{default:"Mantente a la derecha en el cruza",name:"Mantente a la derecha en {way_name}",destination:"Mantente a la derecha hacia {destination}"},"sharp left":{default:"Gira a la izquierda en el cruza",name:"Gira a la izquierda en {way_name}",destination:"Gira a la izquierda hacia {destination}"},"sharp right":{default:"Gira a la derecha en el cruza",name:"Gira a la derecha en {way_name}",destination:"Gira a la derecha hacia {destination}"},uturn:{default:"Haz un cambio de sentido",name:"Haz un cambio de sentido en {way_name}",destination:"Haz un cambio de sentido hacia {destination}"}},merge:{default:{default:"Incorpórate a {modifier}",name:"Incorpórate a {modifier} en {way_name}",destination:"Incorpórate a {modifier} hacia {destination}"},straight:{default:"Incorpórate",name:"Incorpórate a {way_name}",destination:"Incorpórate hacia {destination}"},"slight left":{default:"Incorpórate a la izquierda",name:"Incorpórate a la izquierda en {way_name}",destination:"Incorpórate a la izquierda hacia {destination}"},"slight right":{default:"Incorpórate a la derecha",name:"Incorpórate a la derecha en {way_name}",destination:"Incorpórate a la derecha hacia {destination}"},"sharp left":{default:"Incorpórate a la izquierda",name:"Incorpórate a la izquierda en {way_name}",destination:"Incorpórate a la izquierda hacia {destination}"},"sharp right":{default:"Incorpórate a la derecha",name:"Incorpórate a la derecha en {way_name}",destination:"Incorpórate a la derecha hacia {destination}"},uturn:{default:"Haz un cambio de sentido",name:"Haz un cambio de sentido en {way_name}",destination:"Haz un cambio de sentido hacia {destination}"}},"new name":{default:{default:"Continúa {modifier}",name:"Continúa {modifier} en {way_name}",destination:"Continúa {modifier} hacia {destination}"},straight:{default:"Continúa recto",name:"Continúa en {way_name}",destination:"Continúa hacia {destination}"},"sharp left":{default:"Gira a la izquierda",name:"Gira a la izquierda en {way_name}",destination:"Gira a la izquierda hacia {destination}"},"sharp right":{default:"Gira a la derecha",name:"Gira a la derecha en {way_name}",destination:"Gira a la derecha hacia {destination}"},"slight left":{default:"Continúa levemente a la izquierda",name:"Continúa levemente a la izquierda en {way_name}",destination:"Continúa levemente a la izquierda hacia {destination}"},"slight right":{default:"Continúa levemente a la derecha",name:"Continúa levemente a la derecha en {way_name}",destination:"Continúa levemente a la derecha hacia {destination}"},uturn:{default:"Haz un cambio de sentido",name:"Haz un cambio de sentido en {way_name}",destination:"Haz un cambio de sentido hacia {destination}"}},notification:{default:{default:"Continúa {modifier}",name:"Continúa {modifier} en {way_name}",destination:"Continúa {modifier} hacia {destination}"},uturn:{default:"Haz un cambio de sentido",name:"Haz un cambio de sentido en {way_name}",destination:"Haz un cambio de sentido hacia {destination}"}},"off ramp":{default:{default:"Toma la salida",name:"Toma la salida en {way_name}",destination:"Toma la salida hacia {destination}",exit:"Toma la salida {exit}",exit_destination:"Toma la salida {exit} hacia {destination}"},left:{default:"Toma la salida en la izquierda",name:"Toma la salida en la izquierda en {way_name}",destination:"Toma la salida en la izquierda en {destination}",exit:"Toma la salida {exit} en la izquierda",exit_destination:"Toma la salida {exit} en la izquierda hacia {destination}"},right:{default:"Toma la salida en la derecha",name:"Toma la salida en la derecha en {way_name}",destination:"Toma la salida en la derecha hacia {destination}",exit:"Toma la salida {exit} en la derecha",exit_destination:"Toma la salida {exit} en la derecha hacia {destination}"},"sharp left":{default:"Ve cuesta abajo en la izquierda",name:"Ve cuesta abajo en la izquierda en {way_name}",destination:"Ve cuesta abajo en la izquierda hacia {destination}",exit:"Toma la salida {exit} en la izquierda",exit_destination:"Toma la salida {exit} en la izquierda hacia {destination}"},"sharp right":{default:"Ve cuesta abajo en la derecha",name:"Ve cuesta abajo en la derecha en {way_name}",destination:"Ve cuesta abajo en la derecha hacia {destination}",exit:"Toma la salida {exit} en la derecha",exit_destination:"Toma la salida {exit} en la derecha hacia {destination}"},"slight left":{default:"Ve cuesta abajo en la izquierda",name:"Ve cuesta abajo en la izquierda en {way_name}",destination:"Ve cuesta abajo en la izquierda hacia {destination}",exit:"Toma la salida {exit} en la izquierda",exit_destination:"Toma la salida {exit} en la izquierda hacia {destination}"},"slight right":{default:"Toma la salida en la derecha",name:"Toma la salida en la derecha en {way_name}",destination:"Toma la salida en la derecha hacia {destination}",exit:"Toma la salida {exit} en la derecha",exit_destination:"Toma la salida {exit} en la derecha hacia {destination}"}},"on ramp":{default:{default:"Toma la rampa",name:"Toma la rampa en {way_name}",destination:"Toma la rampa hacia {destination}"},left:{default:"Toma la rampa en la izquierda",name:"Toma la rampa en la izquierda en {way_name}",destination:"Toma la rampa en la izquierda hacia {destination}"},right:{default:"Toma la rampa en la derecha",name:"Toma la rampa en la derecha en {way_name}",destination:"Toma la rampa en la derecha hacia {destination}"},"sharp left":{default:"Toma la rampa en la izquierda",name:"Toma la rampa en la izquierda en {way_name}",destination:"Toma la rampa en la izquierda hacia {destination}"},"sharp right":{default:"Toma la rampa en la derecha",name:"Toma la rampa en la derecha en {way_name}",destination:"Toma la rampa en la derecha hacia {destination}"},"slight left":{default:"Toma la rampa en la izquierda",name:"Toma la rampa en la izquierda en {way_name}",destination:"Toma la rampa en la izquierda hacia {destination}"},"slight right":{default:"Toma la rampa en la derecha",name:"Toma la rampa en la derecha en {way_name}",destination:"Toma la rampa en la derecha hacia {destination}"}},rotary:{default:{default:{default:"Entra en la rotonda",name:"Entra en la rotonda y sal en {way_name}",destination:"Entra en la rotonda y sal hacia {destination}"},name:{default:"Entra en {rotary_name}",name:"Entra en {rotary_name} y sal en {way_name}",destination:"Entra en {rotary_name} y sal hacia {destination}"},exit:{default:"Entra en la rotonda y toma la {exit_number} salida",name:"Entra en la rotonda y toma la {exit_number} salida a {way_name}",destination:"Entra en la rotonda y toma la {exit_number} salida hacia {destination}"},name_exit:{default:"Entra en {rotary_name} y coge la {exit_number} salida",name:"Entra en {rotary_name} y coge la {exit_number} salida en {way_name}",destination:"Entra en {rotary_name} y coge la {exit_number} salida hacia {destination}"}}},roundabout:{default:{exit:{default:"Entra en la rotonda y toma la {exit_number} salida",name:"Entra en la rotonda y toma la {exit_number} salida a {way_name}",destination:"Entra en la rotonda y toma la {exit_number} salida hacia {destination}"},default:{default:"Entra en la rotonda",name:"Entra en la rotonda y sal en {way_name}",destination:"Entra en la rotonda y sal hacia {destination}"}}},"roundabout turn":{default:{default:"Sigue {modifier}",name:"Sigue {modifier} en {way_name}",destination:"Sigue {modifier} hacia {destination}"},left:{default:"Gira a la izquierda",name:"Gira a la izquierda en {way_name}",destination:"Gira a la izquierda hacia {destination}"},right:{default:"Gira a la derecha",name:"Gira a la derecha en {way_name}",destination:"Gira a la derecha hacia {destination}"},straight:{default:"Continúa recto",name:"Continúa recto en {way_name}",destination:"Continúa recto hacia {destination}"}},"exit roundabout":{default:{default:"Sal la rotonda",name:"Sal la rotonda en {way_name}",destination:"Sal la rotonda hacia {destination}"}},"exit rotary":{default:{default:"Sal la rotonda",name:"Sal la rotonda en {way_name}",destination:"Sal la rotonda hacia {destination}"}},turn:{default:{default:"Sigue {modifier}",name:"Sigue {modifier} en {way_name}",destination:"Sigue {modifier} hacia {destination}"},left:{default:"Gira a la izquierda",name:"Gira a la izquierda en {way_name}",destination:"Gira a la izquierda hacia {destination}"},right:{default:"Gira a la derecha",name:"Gira a la derecha en {way_name}",destination:"Gira a la derecha hacia {destination}"},straight:{default:"Ve recto",name:"Ve recto en {way_name}",destination:"Ve recto hacia {destination}"}},"use lane":{no_lanes:{default:"Continúa recto"},default:{default:"{lane_instruction}"}}}}},{}],29:[function(e,t,i){t.exports={meta:{capitalizeFirstLetter:!0
vendor: 15,322 bytes, line 12
12},v5:{constants:{ordinalize:{1:"1.",2:"2.",3:"3.",4:"4.",5:"5.",6:"6.",7:"7.",8:"8.",9:"9.",10:"10."},direction:{north:"pohjoiseen",northeast:"koilliseen",east:"itään",southeast:"kaakkoon",south:"etelään",southwest:"lounaaseen",west:"länteen",northwest:"luoteeseen"},modifier:{left:"vasemmall(e/a)",right:"oikeall(e/a)","sharp left":"jyrkästi vasempaan","sharp right":"jyrkästi oikeaan","slight left":"loivasti vasempaan","slight right":"loivasti oikeaan",straight:"suoraan eteenpäin",uturn:"U-käännös"},lanes:{xo:"Pysy oikealla",ox:"Pysy vasemmalla",xox:"Pysy keskellä",oxo:"Pysy vasemmalla tai oikealla"}},modes:{ferry:{default:"Aja lautalle",name:"Aja lautalle {way_name}",destination:"Aja lautalle, jonka määränpää on {destination}"}},phrase:{"two linked by distance":"{instruction_one}, sitten {distance} päästä, {instruction_two}","two linked":"{instruction_one}, sitten {instruction_two}","one in distance":"{distance} päästä, {instruction_one}","name and ref":"{name} ({ref})","exit with number":"{exit}"},arrive:{default:{default:"Olet saapunut {nth} määränpäähäsi",upcoming:"Saavut {nth} määränpäähäsi",short:"Olet saapunut","short-upcoming":"Saavut",named:"Olet saapunut määränpäähän {waypoint_name}"},left:{default:"Olet saapunut {nth} määränpäähäsi, joka on vasemmalla puolellasi",upcoming:"Saavut {nth} määränpäähäsi, joka on vasemmalla puolellasi",short:"Olet saapunut","short-upcoming":"Saavut",named:"Olet saapunut määränpäähän {waypoint_name}, joka on vasemmalla puolellasi"},right:{default:"Olet saapunut {nth} määränpäähäsi, joka on oikealla puolellasi",upcoming:"Saavut {nth} määränpäähäsi, joka on oikealla puolellasi",short:"Olet saapunut","short-upcoming":"Saavut",named:"Olet saapunut määränpäähän {waypoint_name}, joka on oikealla puolellasi"},"sharp left":{default:"Olet saapunut {nth} määränpäähäsi, joka on vasemmalla puolellasi",upcoming:"Saavut {nth} määränpäähäsi, joka on vasemmalla puolellasi",short:"Olet saapunut","short-upcoming":"Saavut",named:"Olet saapunut määränpäähän {waypoint_name}, joka on vasemmalla puolellasi"},"sharp right":{default:"Olet saapunut {nth} määränpäähäsi, joka on oikealla puolellasi",upcoming:"Saavut {nth} määränpäähäsi, joka on oikealla puolellasi",short:"Olet saapunut","short-upcoming":"Saavut",named:"Olet saapunut määränpäähän {waypoint_name}, joka on oikealla puolellasi"},"slight right":{default:"Olet saapunut {nth} määränpäähäsi, joka on oikealla puolellasi",upcoming:"Saavut {nth} määränpäähäsi, joka on oikealla puolellasi",short:"Olet saapunut","short-upcoming":"Saavut",named:"Olet saapunut määränpäähän {waypoint_name}, joka on oikealla puolellasi"},"slight left":{default:"Olet saapunut {nth} määränpäähäsi, joka on vasemmalla puolellasi",upcoming:"Saavut {nth} määränpäähäsi, joka on vasemmalla puolellasi",short:"Olet saapunut","short-upcoming":"Saavut",named:"Olet saapunut määränpäähän {waypoint_name}, joka on vasemmalla puolellasi"},straight:{default:"Olet saapunut {nth} määränpäähäsi, joka on suoraan edessäsi",upcoming:"Saavut {nth} määränpäähäsi, suoraan edessä",short:"Olet saapunut","short-upcoming":"Saavut",named:"Olet saapunut määränpäähän {waypoint_name}, joka on suoraan edessäsi"}},continue:{default:{default:"Käänny {modifier}",name:"Käänny {modifier} pysyäksesi tiellä {way_name}",destination:"Käänny {modifier} suuntana {destination}",exit:"Käänny {modifier} tielle {way_name}"},straight:{default:"Jatka suoraan eteenpäin",name:"Jatka suoraan pysyäksesi tiellä {way_name}",destination:"Jatka suuntana {destination}",distance:"Jatka suoraan {distance}",namedistance:"Jatka tiellä {way_name} {distance}"},"sharp left":{default:"Jatka jyrkästi vasempaan",name:"Jatka jyrkästi vasempaan pysyäksesi tiellä {way_name}",destination:"Jatka jyrkästi vasempaan suuntana {destination}"},"sharp right":{default:"Jatka jyrkästi oikeaan",name:"Jatka jyrkästi oikeaan pysyäksesi tiellä {way_name}",destination:"Jatka jyrkästi oikeaan suuntana {destination}"},"slight left":{default:"Jatka loivasti vasempaan",name:"Jatka loivasti vasempaan pysyäksesi tiellä {way_name}",destination:"Jatka loivasti vasempaan suuntana {destination}"},"slight right":{default:"Jatka loivasti oikeaan",name:"Jatka loivasti oikeaan pysyäksesi tiellä {way_name}",destination:"Jatka loivasti oikeaan suuntana {destination}"},uturn:{default:"Tee U-käännös",name:"Tee U-käännös ja jatka tietä {way_name}",destination:"Tee U-käännös suuntana {destination}"}},depart:{default:{default:"Aja {direction}",name:"Aja tietä {way_name} {direction}",namedistance:"Aja {distance} {direction} tietä {way_name} "}},"end of road":{default:{default:"Käänny {modifier}",name:"Käänny {modifier} tielle {way_name}",destination:"Käänny {modifier} suuntana {destination}"},straight:{default:"Jatka suoraan eteenpäin",name:"Jatka suoraan eteenpäin tielle {way_name}",destination:"Jatka suoraan eteenpäin suuntana {destination}"},uturn:{default:"Tien päässä tee U-käännös",name:"Tien päässä tee U-käännös tielle {way_name}",destination:"Tien päässä tee U-käännös suuntana {destination}"}},fork:{default:{default:"Jatka tienhaarassa {modifier}",name:"Jatka {modifier} tielle {way_name}",destination:"Jatka {modifier} suuntana {destination}"},"slight left":{default:"Pysy vasemmalla tienhaarassa",name:"Pysy vasemmalla tielle {way_name}",destination:"Pysy vasemmalla suuntana {destination}"},"slight right":{default:"Pysy oikealla tienhaarassa",name:"Pysy oikealla tielle {way_name}",destination:"Pysy oikealla suuntana {destination}"},"sharp left":{default:"Käänny tienhaarassa jyrkästi vasempaan",name:"Käänny tienhaarassa jyrkästi vasempaan tielle {way_name}",destination:"Käänny tienhaarassa jyrkästi vasempaan suuntana {destination}"},"sharp right":{default:"Käänny tienhaarassa jyrkästi oikeaan",name:"Käänny tienhaarassa jyrkästi oikeaan tielle {way_name}",destination:"Käänny tienhaarassa jyrkästi oikeaan suuntana {destination}"},uturn:{default:"Tee U-käännös",name:"Tee U-käännös tielle {way_name}",destination:"Tee U-käännös suuntana {destination}"}},merge:{default:{default:"Liity {modifier}",name:"Liity {modifier}, tielle {way_name}",destination:"Liity {modifier}, suuntana {destination}"},straight:{default:"Liity",name:"Liity tielle {way_name}",destination:"Liity suuntana {destination}"},"slight left":{default:"Liity vasemmalle",name:"Liity vasemmalle, tielle {way_name}",destination:"Liity vasemmalle, suuntana {destination}"},"slight right":{default:"Liity oikealle",name:"Liity oikealle, tielle {way_name}",destination:"Liity oikealle, suuntana {destination}"},"sharp left":{default:"Liity vasemmalle",name:"Liity vasemmalle, tielle {way_name}",destination:"Liity vasemmalle, suuntana {destination}"},"sharp right":{default:"Liity oikealle",name:"Liity oikealle, tielle {way_name}",destination:"Liity oikealle, suuntana {destination}"},uturn:{default:"Tee U-käännös",name:"Tee U-käännös tielle {way_name}",destination:"Tee U-käännös suuntana {destination}"}},"new name":{default:{default:"Jatka {modifier}",name:"Jatka {modifier} tielle {way_name}",destination:"Jatka {modifier} suuntana {destination}"},straight:{default:"Jatka suoraan eteenpäin",name:"Jatka tielle {way_name}",destination:"Jatka suuntana {destination}"},"sharp left":{default:"Käänny jyrkästi vasempaan",name:"Käänny jyrkästi vasempaan tielle {way_name}",destination:"Käänny jyrkästi vasempaan suuntana {destination}"},"sharp right":{default:"Käänny jyrkästi oikeaan",name:"Käänny jyrkästi oikeaan tielle {way_name}",destination:"Käänny jyrkästi oikeaan suuntana {destination}"},"slight left":{default:"Jatka loivasti vasempaan",name:"Jatka loivasti vasempaan tielle {way_name}",destination:"Jatka loivasti vasempaan suuntana {destination}"},"slight right":{default:"Jatka loivasti oikeaan",name:"Jatka loivasti oikeaan tielle {way_name}",destination:"Jatka loivasti oikeaan suuntana {destination}"},uturn:{default:"Tee U-käännös",name:"Tee U-käännös tielle {way_name}",destination:"Tee U-käännös suuntana {destination}"}},notification:{default:{default:"Jatka {modifier}",name:"Jatka {modifier} tielle {way_name}",destination:"Jatka {modifier} suuntana {destination}"},uturn:{default:"Tee U-käännös",name:"Tee U-käännös tielle {way_name}",destination:"Tee U-käännös suuntana {destination}"}},"off ramp":{default:{default:"Aja erkanemiskaistalle",name:"Aja erkanemiskaistaa tielle {way_name}",destination:"Aja erkanemiskaistalle suuntana {destination}",exit:"Ota poistuminen {exit}",exit_destination:"Ota poistuminen {exit}, suuntana {destination}"},left:{default:"Aja vasemmalla olevalle erkanemiskaistalle",name:"Aja vasemmalla olevaa erkanemiskaistaa tielle {way_name}",destination:"Aja vasemmalla olevalle erkanemiskaistalle suuntana {destination}",exit:"Ota poistuminen {exit} vasemmalla",exit_destination:"Ota poistuminen {exit} vasemmalla, suuntana {destination}"},right:{default:"Aja oikealla olevalle erkanemiskaistalle",name:"Aja oikealla olevaa erkanemiskaistaa tielle {way_name}",destination:"Aja oikealla olevalle erkanemiskaistalle suuntana {destination}",exit:"Ota poistuminen {exit} oikealla",exit_destination:"Ota poistuminen {exit} oikealla, suuntana {destination}"},"sharp left":{default:"Aja vasemmalla olevalle erkanemiskaistalle",name:"Aja vasemmalla olevaa erkanemiskaistaa tielle {way_name}",destination:"Aja vasemmalla olevalle erkanemiskaistalle suuntana {destination}",exit:"Ota poistuminen {exit} vasemmalla",exit_destination:"Ota poistuminen {exit} vasemmalla, suuntana {destination}"},"sharp right":{default:"Aja oikealla olevalle erkanemiskaistalle",name:"Aja oikealla olevaa erkanemiskaistaa tielle {way_name}",destination:"Aja oikealla olevalle erkanemiskaistalle suuntana {destination}",exit:"Ota poistuminen {exit} oikealla",exit_destination:"Ota poistuminen {exit} oikealla, suuntana {destination}"},"slight left":{default:"Aja vasemmalla olevalle erkanemiskaistalle",name:"Aja vasemmalla olevaa erkanemiskaistaa tielle {way_name}",destination:"Aja vasemmalla olevalle erkanemiskaistalle suuntana {destination}",exit:"Ota poistuminen {exit} vasemmalla",exit_destination:"Ota poistuminen {exit} vasemmalla, suuntana {destination}"},"slight right":{default:"Aja oikealla olevalle erkanemiskaistalle",name:"Aja oikealla olevaa erkanemiskaistaa tielle {way_name}",destination:"Aja oikealla olevalle erkanemiskaistalle suuntana {destination}",exit:"Ota poistuminen {exit} oikealla",exit_destination:"Ota poistuminen {exit} oikealla, suuntana {destination}"}},"on ramp":{default:{default:"Aja erkanemiskaistalle",name:"Aja erkanemiskaistaa tielle {way_name}",destination:"Aja erkanemiskaistalle suuntana {destination}"},left:{default:"Aja vasemmalla olevalle erkanemiskaistalle",name:"Aja vasemmalla olevaa erkanemiskaistaa tielle {way_name}",destination:"Aja vasemmalla olevalle erkanemiskaistalle suuntana {destination}"},right:{default:"Aja oikealla olevalle erkanemiskaistalle",name:"Aja oikealla olevaa erkanemiskaistaa tielle {way_name}",destination:"Aja oikealla olevalle erkanemiskaistalle suuntana {destination}"},"sharp left":{default:"Aja vasemmalla olevalle erkanemiskaistalle",name:"Aja vasemmalla olevaa erkanemiskaistaa tielle {way_name}",destination:"Aja vasemmalla olevalle erkanemiskaistalle suuntana {destination}"},"sharp right":{default:"Aja oikealla olevalle erkanemiskaistalle",name:"Aja oikealla olevaa erkanemiskaistaa tielle {way_name}",destination:"Aja oikealla olevalle erkanemiskaistalle suuntana {destination}"},"slight left":{default:"Aja vasemmalla olevalle erkanemiskaistalle",name:"Aja vasemmalla olevaa erkanemiskaistaa tielle {way_name}",destination:"Aja vasemmalla olevalle erkanemiskaistalle suuntana {destination}"},"slight right":{default:"Aja oikealla olevalle erkanemiskaistalle",name:"Aja oikealla olevaa erkanemiskaistaa tielle {way_name}",destination:"Aja oikealla olevalle erkanemiskaistalle suuntana {destination}"}},rotary:{default:{default:{default:"Aja liikenneympyrään",name:"Aja liikenneympyrään ja valitse erkanemiskaista tielle {way_name}",destination:"Aja liikenneympyrään ja valitse erkanemiskaista suuntana {destination}"},name:{default:"Aja liikenneympyrään {rotary_name}",name:"Aja liikenneympyrään {rotary_name} ja valitse erkanemiskaista tielle {way_name}",destination:"Aja liikenneympyrään {rotary_name} ja valitse erkanemiskaista suuntana {destination}"},exit:{default:"Aja liikenneympyrään ja valitse {exit_number} erkanemiskaista",name:"Aja liikenneympyrään ja valitse {exit_number} erkanemiskaista tielle {way_name}",destination:"Aja liikenneympyrään ja valitse {exit_number} erkanemiskaista suuntana {destination}"},name_exit:{default:"Aja liikenneympyrään {rotary_name} ja valitse {exit_number} erkanemiskaista",name:"Aja liikenneympyrään {rotary_name} ja valitse {exit_number} erkanemiskaista tielle {way_name}",destination:"Aja liikenneympyrään {rotary_name} ja valitse {exit_number} erkanemiskaista suuntana {destination}"}}},roundabout:{default:{exit:{default:"Aja liikenneympyrään ja valitse {exit_number} erkanemiskaista",name:"Aja liikenneympyrään ja valitse {exit_number} erkanemiskaista tielle {way_name}",destination:"Aja liikenneympyrään ja valitse {exit_number} erkanemiskaista suuntana {destination}"},default:{default:"Aja liikenneympyrään",name:"Aja liikenneympyrään ja valitse erkanemiskaista tielle {way_name}",destination:"Aja liikenneympyrään ja valitse erkanemiskaista suuntana {destination}"}}},"roundabout turn":{default:{default:"Käänny {modifier}",name:"Käänny {modifier} tielle {way_name}",destination:"Käänny {modifier} suuntana {destination}"},left:{default:"Käänny vasempaan",name:"Käänny vasempaan tielle {way_name}",destination:"Käänny vasempaan suuntana {destination}"},right:{default:"Käänny oikeaan",name:"Käänny oikeaan tielle {way_name}",destination:"Käänny oikeaan suuntana {destination}"},straight:{default:"Jatka suoraan eteenpäin",name:"Jatka suoraan eteenpäin tielle {way_name}",destination:"Jatka suoraan eteenpäin suuntana {destination}"}},"exit roundabout":{default:{default:"Poistu liikenneympyrästä",name:"Poistu liikenneympyrästä tielle {way_name}",destination:"Poistu liikenneympyrästä suuntana {destination}"}},"exit rotary":{default:{default:"Poistu liikenneympyrästä",name:"Poistu liikenneympyrästä tielle {way_name}",destination:"Poistu liikenneympyrästä suuntana {destination}"}},turn:{default:{default:"Käänny {modifier}",name:"Käänny {modifier} tielle {way_name}",destination:"Käänny {modifier} suuntana {destination}"},left:{default:"Käänny vasempaan",name:"Käänny vasempaan tielle {way_name}",destination:"Käänny vasempaan suuntana {destination}"},right:{default:"Käänny oikeaan",name:"Käänny oikeaan tielle {way_name}",destination:"Käänny oikeaan suuntana {destination}"},straight:{default:"Aja suoraan eteenpäin",name:"Aja suoraan eteenpäin tielle {way_name}",destination:"Aja suoraan eteenpäin suuntana {destination}"}},"use lane":{no_lanes:{default:"Jatka suoraan eteenpäin"},default:{default:"{lane_instruction}"}}}}},{}],30:[function(
vendor: 13,309 bytes, line 12
12e,t,i){t.exports={meta:{capitalizeFirstLetter:!0},v5:{constants:{ordinalize:{1:"première",2:"seconde",3:"troisième",4:"quatrième",5:"cinquième",6:"sixième",7:"septième",8:"huitième",9:"neuvième",10:"dixième"},direction:{north:"le nord",northeast:"le nord-est",east:"l’est",southeast:"le sud-est",south:"le sud",southwest:"le sud-ouest",west:"l’ouest",northwest:"le nord-ouest"},modifier:{left:"à gauche",right:"à droite","sharp left":"franchement à gauche","sharp right":"franchement à droite","slight left":"légèrement à gauche","slight right":"légèrement à droite",straight:"tout droit",uturn:"demi-tour"},lanes:{xo:"Tenir la droite",ox:"Tenir la gauche",xox:"Rester au milieu",oxo:"Tenir la gauche ou la droite"}},modes:{ferry:{default:"Prendre le ferry",name:"Prendre le ferry {way_name:article}",destination:"Prendre le ferry en direction {destination:preposition}"}},phrase:{"two linked by distance":"{instruction_one}, puis, dans {distance}, {instruction_two}","two linked":"{instruction_one}, puis {instruction_two}","one in distance":"Dans {distance}, {instruction_one}","name and ref":"{name} ({ref})","exit with number":"sortie n°{exit}"},arrive:{default:{default:"Vous êtes arrivé à votre {nth} destination",upcoming:"Vous arriverez à votre {nth} destination",short:"Vous êtes arrivé","short-upcoming":"Vous arriverez",named:"Vous êtes arrivé {waypoint_name:arrival}"},left:{default:"Vous êtes arrivé à votre {nth} destination, sur la gauche",upcoming:"Vous arriverez à votre {nth} destination, sur la gauche",short:"Vous êtes arrivé","short-upcoming":"Vous arriverez",named:"Vous êtes arrivé {waypoint_name:arrival}, sur la gauche"},right:{default:"Vous êtes arrivé à votre {nth} destination, sur la droite",upcoming:"Vous arriverez à votre {nth} destination, sur la droite",short:"Vous êtes arrivé","short-upcoming":"Vous arriverez",named:"Vous êtes arrivé à  {waypoint_name:arrival}, sur la droite"},"sharp left":{default:"Vous êtes arrivé à votre {nth} destination, sur la gauche",upcoming:"Vous arriverez à votre {nth} destination, sur la gauche",short:"Vous êtes arrivé","short-upcoming":"Vous arriverez",named:"Vous êtes arrivé {waypoint_name:arrival}, sur la gauche"},"sharp right":{default:"Vous êtes arrivé à votre {nth} destination, sur la droite",upcoming:"Vous arriverez à votre {nth} destination, sur la droite",short:"Vous êtes arrivé","short-upcoming":"Vous arriverez",named:"Vous êtes arrivé {waypoint_name:arrival}, sur la droite"},"slight right":{default:"Vous êtes arrivé à votre {nth} destination, sur la droite",upcoming:"Vous arriverez à votre {nth} destination, sur la droite",short:"Vous êtes arrivé","short-upcoming":"Vous arriverez",named:"Vous êtes arrivé {waypoint_name:arrival}, sur la droite"},"slight left":{default:"Vous êtes arrivé à votre {nth} destination, sur la gauche",upcoming:"Vous arriverez à votre {nth} destination, sur la gauche",short:"Vous êtes arrivé","short-upcoming":"Vous êtes arrivé",named:"Vous êtes arrivé {waypoint_name:arrival}, sur la gauche"},straight:{default:"Vous êtes arrivé à votre {nth} destination, droit devant",upcoming:"Vous arriverez à votre {nth} destination, droit devant",short:"Vous êtes arrivé","short-upcoming":"Vous êtes arrivé",named:"Vous êtes arrivé {waypoint_name:arrival}, droit devant"}},continue:{default:{default:"Tourner {modifier}",name:"Tourner {modifier} pour rester sur {way_name:article}",destination:"Tourner {modifier} en direction {destination:preposition}",exit:"Tourner {modifier} sur {way_name:article}"},straight:{default:"Continuer tout droit",name:"Continuer tout droit pour rester sur {way_name:article}",destination:"Continuer tout droit en direction {destination:preposition}",distance:"Continuer tout droit sur {distance}",namedistance:"Continuer sur {way_name:article} sur {distance}"},"sharp left":{default:"Tourner franchement à gauche",name:"Tourner franchement à gauche pour rester sur {way_name:article}",destination:"Tourner franchement à gauche en direction {destination:preposition}"},"sharp right":{default:"Tourner franchement à droite",name:"Tourner franchement à droite pour rester sur {way_name:article}",destination:"Tourner franchement à droite en direction {destination:preposition}"},"slight left":{default:"Tourner légèrement à gauche",name:"Tourner légèrement à gauche pour rester sur {way_name:article}",destination:"Tourner légèrement à gauche en direction {destination:preposition}"},"slight right":{default:"Tourner légèrement à droite",name:"Tourner légèrement à droite pour rester sur {way_name:article}",destination:"Tourner légèrement à droite en direction {destination:preposition}"},uturn:{default:"Faire demi-tour",name:"Faire demi-tour et continuer sur {way_name:article}",destination:"Faire demi-tour en direction {destination:preposition}"}},depart:{default:{default:"Se diriger vers {direction}",name:"Se diriger vers {direction} sur {way_name:article}",namedistance:"Se diriger vers {direction} sur {way_name:article} sur {distance}"}},"end of road":{default:{default:"Tourner {modifier}",name:"Tourner {modifier} sur {way_name:article}",destination:"Tourner {modifier} en direction {destination:preposition}"},straight:{default:"Continuer tout droit",name:"Continuer tout droit sur {way_name:article}",destination:"Continuer tout droit en direction {destination:preposition}"},uturn:{default:"Faire demi-tour à la fin de la route",name:"Faire demi-tour à la fin {way_name:preposition}",destination:"Faire demi-tour à la fin de la route en direction {destination:preposition}"}},fork:{default:{default:"Tenir {modifier} à l’embranchement",name:"Tenir {modifier} sur {way_name:article}",destination:"Tenir {modifier} en direction {destination:preposition}"},"slight left":{default:"Tenir la gauche à l’embranchement",name:"Tenir la gauche sur {way_name:article}",destination:"Tenir la gauche en direction {destination:preposition}"},"slight right":{default:"Tenir la droite à l’embranchement",name:"Tenir la droite sur {way_name:article}",destination:"Tenir la droite en direction {destination:preposition}"},"sharp left":{default:"Tourner franchement à gauche à l’embranchement",name:"Tourner franchement à gauche sur {way_name:article}",destination:"Tourner franchement à gauche en direction {destination:preposition}"},"sharp right":{default:"Tourner franchement à droite à l’embranchement",name:"Tourner franchement à droite sur {way_name:article}",destination:"Tourner franchement à droite en direction {destination:preposition}"},uturn:{default:"Faire demi-tour",name:"Faire demi-tour sur {way_name:article}",destination:"Faire demi-tour en direction {destination:preposition}"}},merge:{default:{default:"S’insérer {modifier}",name:"S’insérer {modifier} sur {way_name:article}",destination:"S’insérer {modifier} en direction {destination:preposition}"},straight:{default:"S’insérer",name:"S’insérer sur {way_name:article}",destination:"S’insérer en direction {destination:preposition}"},"slight left":{default:"S’insérer légèrement à gauche",name:"S’insérer légèrement à gauche sur {way_name:article}",destination:"S’insérer légèrement à gauche en direction {destination:preposition}"},"slight right":{default:"S’insérer légèrement à droite",name:"S’insérer légèrement à droite sur {way_name:article}",destination:"S’insérer à droite en direction {destination:preposition}"},"sharp left":{default:"S’insérer à gauche",name:"S’insérer à gauche sur {way_name:article}",destination:"S’insérer à gauche en direction {destination:preposition}"},"sharp right":{default:"S’insérer à droite",name:"S’insérer à droite sur {way_name:article}",destination:"S’insérer à droite en direction {destination:preposition}"},uturn:{default:"Faire demi-tour",name:"Faire demi-tour sur {way_name:article}",destination:"Faire demi-tour en direction {destination:preposition}"}},"new name":{default:{default:"Continuer {modifier}",name:"Continuer {modifier} sur {way_name:article}",destination:"Continuer {modifier} en direction {destination:preposition}"},straight:{default:"Continuer tout droit",name:"Continuer tout droit sur {way_name:article}",destination:"Continuer tout droit en direction {destination:preposition}"},"sharp left":{default:"Tourner franchement à gauche",name:"Tourner franchement à gauche sur {way_name:article}",destination:"Tourner franchement à gauche en direction {destination:preposition}"},"sharp right":{default:"Tourner franchement à droite",name:"Tourner franchement à droite sur {way_name:article}",destination:"Tourner franchement à droite en direction {destination:preposition}"},"slight left":{default:"Continuer légèrement à gauche",name:"Continuer légèrement à gauche sur {way_name:article}",destination:"Continuer légèrement à gauche en direction {destination:preposition}"},"slight right":{default:"Continuer légèrement à droite",name:"Continuer légèrement à droite sur {way_name:article}",destination:"Continuer légèrement à droite en direction {destination:preposition}"},uturn:{default:"Faire demi-tour",name:"Faire demi-tour sur {way_name:article}",destination:"Faire demi-tour en direction {destination:preposition}"}},notification:{default:{default:"Continuer {modifier}",name:"Continuer {modifier} sur {way_name:article}",destination:"Continuer {modifier} en direction {destination:preposition}"},uturn:{default:"Faire demi-tour",name:"Faire demi-tour sur {way_name:article}",destination:"Faire demi-tour en direction {destination:preposition}"}},"off ramp":{default:{default:"Prendre la sortie",name:"Prendre la sortie sur {way_name:article}",destination:"Prendre la sortie en direction {destination:preposition}",exit:"Prendre la sortie {exit}",exit_destination:"Prendre la sortie {exit} en direction {destination:preposition}"},left:{default:"Prendre la sortie à gauche",name:"Prendre la sortie à gauche sur {way_name:article}",destination:"Prendre la sortie à gauche en direction {destination:preposition}",exit:"Prendre la sortie {exit} sur la gauche",exit_destination:"Prendre la sortie {exit} sur la gauche en direction {destination:preposition}"},right:{default:"Prendre la sortie à droite",name:"Prendre la sortie à droite sur {way_name:article}",destination:"Prendre la sortie à droite en direction {destination:preposition}",exit:"Prendre la sortie {exit} sur la droite",exit_destination:"Prendre la sortie {exit} sur la droite en direction {destination:preposition}"},"sharp left":{default:"Prendre la sortie à gauche",name:"Prendre la sortie à gauche sur {way_name:article}",destination:"Prendre la sortie à gauche en direction {destination:preposition}",exit:"Prendre la sortie {exit} sur la gauche",exit_destination:"Prendre la sortie {exit} sur la gauche en direction {destination:preposition}"},"sharp right":{default:"Prendre la sortie à droite",name:"Prendre la sortie à droite sur {way_name:article}",destination:"Prendre la sortie à droite en direction {destination:preposition}",exit:"Prendre la sortie {exit} sur la droite",exit_destination:"Prendre la sortie {exit} sur la droite en direction {destination:preposition}"},"slight left":{default:"Prendre la sortie à gauche",name:"Prendre la sortie à gauche sur {way_name:article}",destination:"Prendre la sortie à gauche en direction {destination:preposition}",exit:"Prendre la sortie {exit} sur la gauche",exit_destination:"Prendre la sortie {exit} sur la gauche en direction {destination:preposition}"},"slight right":{default:"Prendre la sortie à droite",name:"Prendre la sortie à droite sur {way_name:article}",destination:"Prendre la sortie à droite en direction {destination:preposition}",exit:"Prendre la sortie {exit} sur la droite",exit_destination:"Prendre la sortie {exit} sur la droite en direction {destination:preposition}"}},"on ramp":{default:{default:"Prendre la sortie",name:"Prendre la sortie sur {way_name:article}",destination:"Prendre la sortie en direction {destination:preposition}"},left:{default:"Prendre la sortie à gauche",name:"Prendre la sortie à gauche sur {way_name:article}",destination:"Prendre la sortie à gauche en direction {destination:preposition}"},right:{default:"Prendre la sortie à droite",name:"Prendre la sortie à droite sur {way_name:article}",destination:"Prendre la sortie à droite en direction {destination:preposition}"},"sharp left":{default:"Prendre la sortie à gauche",name:"Prendre la sortie à gauche sur {way_name:article}",destination:"Prendre la sortie à gauche en direction {destination:preposition}"},"sharp right":{default:"Prendre la sortie à droite",name:"Prendre la sortie à droite sur {way_name:article}",destination:"Prendre la sortie à droite en direction {destination:preposition}"},"slight left":{default:"Prendre la sortie à gauche",name:"Prendre la sortie à gauche sur {way_name:article}",destination:"Prendre la sortie à gauche en direction {destination:preposition}"},"slight right":{default:"Prendre la sortie à droite",name:"Prendre la sortie à droite sur {way_name:article}",destination:"Prendre la sortie à droite en direction {destination:preposition}"}},rotary:{default:{default:{default:"Prendre le r
12ond-point",name:"Prendre le rond-point, puis sortir sur {way_name:article}",destination:"Prendre le rond-point, puis sortir en direction {destination:preposition}"},name:{default:"Prendre {rotary_name:rotary}",name:"Prendre {rotary_name:rotary}, puis sortir par {way_name:article}",destination:"Prendre {rotary_name:rotary}, puis sortir en direction {destination:preposition}"},exit:{default:"Prendre le rond-point, puis la {exit_number} sortie",name:"Prendre le rond-point, puis la {exit_number} sortie sur {way_name:article}",destination:"Prendre le rond-point, puis la {exit_number} sortie en direction {destination:preposition}"},name_exit:{default:"Prendre {rotary_name:rotary}, puis la {exit_number} sortie",name:"Prendre {rotary_name:rotary}, puis la {exit_number} sortie sur {way_name:article}",destination:"Prendre {rotary_name:rotary}, puis la {exit_number} sortie en direction {destination:preposition}"}}},roundabout:{default:{exit:{default:"Prendre le rond-point, puis la {exit_number} sortie",name:"Prendre le rond-point, puis la {exit_number} sortie sur {way_name:article}",destination:"Prendre le rond-point, puis la {exit_number} sortie en direction {destination:preposition}"},default:{default:"Prendre le rond-point",name:"Prendre le rond-point, puis sortir sur {way_name:article}",destination:"Prendre le rond-point, puis sortir en direction {destination:preposition}"}}},"roundabout turn":{default:{default:"Tourner {modifier}",name:"Tourner {modifier} sur {way_name:article}",destination:"Tourner {modifier} en direction {destination:preposition}"},left:{default:"Tourner à gauche",name:"Tourner à gauche sur {way_name:article}",destination:"Tourner à gauche en direction {destination:preposition}"},right:{default:"Tourner à droite",name:"Tourner à droite sur {way_name:article}",destination:"Tourner à droite en direction {destination:preposition}"},straight:{default:"Continuer tout droit",name:"Continuer tout droit sur {way_name:article}",destination:"Continuer tout droit en direction {destination:preposition}"}},"exit roundabout":{default:{default:"Sortir du rond-point",name:"Sortir du rond-point sur {way_name:article}",destination:"Sortir du rond-point en direction {destination:preposition}"}},"exit rotary":{default:{default:"Sortir du rond-point",name:"Sortir du rond-point sur {way_name:article}",destination:"Sortir du rond-point en direction {destination:preposition}"}},turn:{default:{default:"Tourner {modifier}",name:"Tourner {modifier} sur {way_name:article}",destination:"Tourner {modifier} en direction {destination:preposition}"},left:{default:"Tourner à gauche",name:"Tourner à gauche sur {way_name:article}",destination:"Tourner à gauche en direction {destination:preposition}"},right:{default:"Tourner à droite",name:"Tourner à droite sur {way_name:article}",destination:"Tourner à droite en direction {destination:preposition}"},straight:{default:"Aller tout droit",name:"Aller tout droit sur {way_name:article}",destination:"Aller tout droit en direction {destination:preposition}"}},"use lane":{no_lanes:{default:"Continuer tout droit"},default:{default:"{lane_instruction}"}}}}},{}],31:[function(e,t,i){t.exports={meta:{capitalizeFirstLetter:!0
vendor: 15,370 bytes, line 12
12},v5:{constants:{ordinalize:{1:"ראשונה",2:"שניה",3:"שלישית",4:"רביעית",5:"חמישית",6:"שישית",7:"שביעית",8:"שמינית",9:"תשיעית",10:"עשירית"},direction:{north:"צפון",northeast:"צפון מזרח",east:"מזרח",southeast:"דרום מזרח",south:"דרום",southwest:"דרום מערב",west:"מערב",northwest:"צפון מערב"},modifier:{left:"שמאלה",right:"ימינה","sharp left":"חדה שמאלה","sharp right":"חדה ימינה","slight left":"קלה שמאלה","slight right":"קלה ימינה",straight:"ישר",uturn:"פניית פרסה"},lanes:{xo:"היצמד לימין",ox:"היצמד לשמאל",xox:"המשך בנתיב האמצעי",oxo:"היצמד לימין או לשמאל"}},modes:{ferry:{default:"עלה על המעבורת",name:"עלה על המעבורת {way_name}",destination:"עלה על המעבורת לכיוון {destination}"}},phrase:{"two linked by distance":"{instruction_one}, ואז, בעוד{distance}, {instruction_two}","two linked":"{instruction_one}, ואז {instruction_two}","one in distance":"בעוד {distance}, {instruction_one}","name and ref":"{name} ({ref})","exit with number":"יציאה {exit}"},arrive:{default:{default:"הגעת אל היעד ה{nth} שלך",upcoming:"אתה תגיע אל היעד ה{nth} שלך",short:"הגעת","short-upcoming":"תגיע",named:"הגעת אל {waypoint_name}"},left:{default:"הגעת אל היעד ה{nth} שלך משמאלך",upcoming:"אתה תגיע אל היעד ה{nth} שלך משמאלך",short:"הגעת","short-upcoming":"תגיע",named:"הגעת אל {waypoint_name} שלך משמאלך"},right:{default:"הגעת אל היעד ה{nth} שלך מימינך",upcoming:"אתה תגיע אל היעד ה{nth} שלך מימינך",short:"הגעת","short-upcoming":"תגיע",named:"הגעת אל {waypoint_name} שלך מימינך"},"sharp left":{default:"הגעת אל היעד ה{nth} שלך משמאלך",upcoming:"אתה תגיע אל היעד ה{nth} שלך משמאלך",short:"הגעת","short-upcoming":"תגיע",named:"הגעת אל {waypoint_name} שלך משמאלך"},"sharp right":{default:"הגעת אל היעד ה{nth} שלך מימינך",upcoming:"אתה תגיע אל היעד ה{nth} שלך מימינך",short:"הגעת","short-upcoming":"תגיע",named:"הגעת אל {waypoint_name} שלך מימינך"},"slight right":{default:"הגעת אל היעד ה{nth} שלך מימינך",upcoming:"אתה תגיע אל היעד ה{nth} שלך מימינך",short:"הגעת","short-upcoming":"תגיע",named:"הגעת אל {waypoint_name} שלך מימינך"},"slight left":{default:"הגעת אל היעד ה{nth} שלך משמאלך",upcoming:"אתה תגיע אל היעד ה{nth} שלך משמאלך",short:"הגעת","short-upcoming":"תגיע",named:"הגעת אל {waypoint_name} שלך משמאלך"},straight:{default:"הגעת אל היעד ה{nth} שלך, בהמשך",upcoming:"אתה תגיע אל היעד ה{nth} שלך, בהמשך",short:"הגעת","short-upcoming":"תגיע",named:"הגעת אל {waypoint_name}, בהמשך"}},continue:{default:{default:"פנה {modifier}",name:"פנה {modifier} כדי להישאר ב{way_name}",destination:"פנה {modifier} לכיוון {destination}",exit:"פנה {modifier} על {way_name}"},straight:{default:"המשך ישר",name:"המשך ישר כדי להישאר על {way_name}",destination:"המשך לכיוון {destination}",distance:"המשך ישר לאורך {distance}",namedistance:"המשך על {way_name} לאורך {distance}"},"sharp left":{default:"פנה בחדות שמאלה",name:"פנה בחדות שמאלה כדי להישאר על {way_name}",destination:"פנה בחדות שמאלה לכיוון {destination}"},"sharp right":{default:"פנה בחדות ימינה",name:"פנה בחדות ימינה כדי להישאר על {way_name}",destination:"פנה בחדות ימינה לכיוון {destination}"},"slight left":{default:"פנה קלות שמאלה",name:"פנה קלות שמאלה כדי להישאר על {way_name}",destination:"פנה קלות שמאלה לכיוון {destination}"},"slight right":{default:"פנה קלות ימינה",name:"פנה קלות ימינה כדי להישאר על {way_name}",destination:"פנה קלות ימינה לכיוון {destination}"},uturn:{default:"פנה פניית פרסה",name:"פנה פניית פרסה והמשך על {way_name}",destination:"פנה פניית פרסה לכיוון {destination}"}},depart:{default:{default:"התכוונן {direction}",name:"התכוונן {direction} על {way_name}",namedistance:"התכוונן {direction} על {way_name} לאורך {distance}"}},"end of road":{default:{default:"פנה {modifier}",name:"פנה {modifier} על {way_name}",destination:"פנה {modifier} לכיוון {destination}"},straight:{default:"המשך ישר",name:"המשך ישר על {way_name}",destination:"המשך ישר לכיוון {destination}"},uturn:{default:"פנה פניית פרסה בסוף הדרך",name:"פנה פניית פרסה על {way_name} בסוף הדרך",destination:"פנה פניית פרסה לכיוון {destination} בסוף הדרך"}},fork:{default:{default:"היצמד {modifier} בהתפצלות",name:"היצמד {modifier} על {way_name}",destination:"היצמד {modifier} לכיוון {destination}"},"slight left":{default:"היצמד לשמאל בהתפצלות",name:"היצמד לשמאל על {way_name}",destination:"היצמד לשמאל לכיוון {destination}"},"slight right":{default:"היצמד ימינה בהתפצלות",name:"היצמד לימין על {way_name}",destination:"היצמד לימין לכיוון {destination}"},"sharp left":{default:"פנה בחדות שמאלה בהתפצלות",name:"פנה בחדות שמאלה על {way_name}",destination:"פנה בחדות שמאלה לכיוון {destination}"},"sharp right":{default:"פנה בחדות ימינה בהתפצלות",name:"פנה בחדות ימינה על {way_name}",destination:"פנה בחדות ימינה לכיוון {destination}"},uturn:{default:"פנה פניית פרסה",name:"פנה פניית פרסה על {way_name}",destination:"פנה פניית פרסה לכיוון {destination}"}},merge:{default:{default:"השתלב {modifier}",name:"השתלב {modifier} על {way_name}",destination:"השתלב {modifier} לכיוון {destination}"},straight:{default:"השתלב",name:"השתלב על {way_name}",destination:"השתלב לכיוון {destination}"},"slight left":{default:"השתלב שמאלה",name:"השתלב שמאלה על {way_name}",destination:"השתלב שמאלה לכיוון {destination}"},"slight right":{default:"השתלב ימינה",name:"השתלב ימינה על {way_name}",destination:"השתלב ימינה לכיוון {destination}"},"sharp left":{default:"השתלב שמאלה",name:"השתלב שמאלה על {way_name}",destination:"השתלב שמאלה לכיוון {destination}"},"sharp right":{default:"השתלב ימינה",name:"השתלב ימינה על {way_name}",destination:"השתלב ימינה לכיוון {destination}"},uturn:{default:"פנה פניית פרסה",name:"פנה פניית פרסה על {way_name}",destination:"פנה פניית פרסה לכיוון {destination}"}},"new name":{default:{default:"המשך {modifier}",name:"המשך {modifier} על {way_name}",destination:"המשך {modifier} לכיוון {destination}"},straight:{default:"המשך ישר",name:"המשך על {way_name}",destination:"המשך לכיוון {destination}"},"sharp left":{default:"פנה בחדות שמאלה",name:"פנה בחדות שמאלה על {way_name}",destination:"פנה בחדות שמאלה לכיוון {destination}"},"sharp right":{default:"פנה בחדות ימינה",name:"פנה בחדות ימינה על {way_name}",destination:"פנה בחדות ימינה לכיוון {destination}"},"slight left":{default:"המשך בנטייה קלה שמאלה",name:"המשך בנטייה קלה שמאלה על {way_name}",destination:"המשך בנטייה קלה שמאלה לכיוון {destination}"},"slight right":{default:"המשך בנטייה קלה ימינה",name:"המשך בנטייה קלה ימינה על {way_name}",destination:"המשך בנטייה קלה ימינה לכיוון {destination}"},uturn:{default:"פנה פניית פרסה",name:"פנה פניית פרסה על {way_name}",destination:"פנה פניית פרסה לכיוון {destination}"}},notification:{default:{default:"המשך {modifier}",name:"המשך {modifier} על {way_name}",destination:"המשך {modifier} לכיוון {destination}"},uturn:{default:"פנה פניית פרסה",name:"פנה פניית פרסה על {way_name}",destination:"פנה פניית פרסה לכיוון {destination}"}},"off ramp":{default:{default:"צא ביציאה",name:"צא ביציאה על {way_name}",destination:"צא ביציאה לכיוון {destination}",exit:"צא ביציאה {exit}",exit_destination:"צא ביציאה {exit} לכיוון {destination}"},left:{default:"צא ביציאה שמשמאלך",name:"צא ביציאה שמשמאלך על {way_name}",destination:"צא ביציאה שמשמאלך לכיוון {destination}",exit:"צא ביציאה {exit} משמאלך",exit_destination:"צא ביציאה {exit} משמאלך לכיוון {destination}"},right:{default:"צא ביציאה שמימינך",name:"צא ביציאה שמימינך על {way_name}",destination:"צא ביציאה שמימינך לכיוון {destination}",exit:"צא ביציאה {exit} מימינך",exit_destination:"צא ביציאה {exit} מימינך לכיוון {destination}"},"sharp left":{default:"צא ביציאה שבשמאלך",name:"צא ביציאה שמשמאלך על {way_name}",destination:"צא ביציאה שמשמאלך לכיוון {destination}",exit:"צא ביציאה {exit} משמאלך",exit_destination:"צא ביציאה {exit} משמאלך לכיוון {destination}"},"sharp right":{default:"צא ביציאה שמימינך",name:"צא ביציאה שמימינך על {way_name}",destination:"צא ביציאה שמימינך לכיוון {destination}",exit:"צא ביציאה {exit} מימינך",exit_destination:"צא ביציאה {exit} מימינך לכיוון {destination}"},"slight left":{default:"צא ביציאה שבשמאלך",name:"צא ביציאה שמשמאלך על {way_name}",destination:"צא ביציאה שמשמאלך לכיוון {destination}",exit:"צא ביציאה {exit} משמאלך",exit_destination:"צא ביציאה {exit} משמאלך לכיוון {destination}"},"slight right":{default:"צא ביציאה שמימינך",name:"צא ביציאה שמימינך על {way_name}",destination:"צא ביציאה שמימינך לכיוון {destination}",exit:"צא ביציאה {exit} מימינך",exit_destination:"צא ביציאה {exit} מימינך לכיוון {destination}"}},"on ramp":{default:{default:"צא ביציאה",name:"צא ביציאה על {way_name}",destination:"צא ביציאה לכיוון {destination}"},left:{default:"צא ביציאה שבשמאלך",name:"צא ביציאה שמשמאלך על {way_name}",destination:"צא ביציאה שמשמאלך לכיוון {destination}"},right:{default:"צא ביציאה שמימינך",name:"צא ביציאה שמימינך על {way_name}",destination:"צא ביציאה שמימינך לכיוון {destination}"},"sharp left":{default:"צא ביציאה שבשמאלך",name:"צא ביציאה שמשמאלך על {way_name}",destination:"צא ביציאה שמשמאלך לכיוון {destination}"},"sharp right":{default:"צא ביציאה שמימינך",name:"צא ביציאה שמימינך על {way_name}",destination:"צא ביציאה שמימינך לכיוון {destination}"},"slight left":{default:"צא ביציאה שבשמאלך",name:"צא ביציאה שמשמאלך על {way_name}",destination:"צא ביציאה שמשמאלך לכיוון {destination}"},"slight right":{default:"צא ביציאה שמימינך",name:"צא ביציאה שמימינך על {way_name}",destination:"צא ביציאה שמימינך לכיוון {destination}"}},rotary:{default:{default:{default:"השתלב במעגל התנועה",name:"השתלב במעגל התנועה וצא על {way_name}",destination:"השתלב במעגל התנועה וצא לכיוון {destination}"},name:{default:"היכנס ל{rotary_name}",name:"היכנס ל{rotary_name} וצא על {way_name}",destination:"היכנס ל{rotary_name} וצא לכיוון {destination}"},exit:{default:"השתלב במעגל התנועה וצא ביציאה {exit_number}",name:"השתלב במעגל התנועה וצא ביציאה {exit_number} ל{way_name}",destination:"השתלב במעגל התנועה וצא ביציאה {exit_number} לכיוון {destination}"},name_exit:{default:"היכנס ל{rotary_name} וצא ביציאה ה{exit_number}",name:"היכנס ל{rotary_name} וצא ביציאה ה{exit_number} ל{way_name}",destination:"היכנס ל{rotary_name} וצא ביציאה ה{exit_number} לכיוון {destination}"}}},roundabout:{default:{exit:{default:"השתלב במעגל התנועה וצא ביציאה {exit_number}",name:"השתלב במעגל התנועה וצא ביציאה {exit_number} ל{way_name}",destination:"השתלב במעגל התנועה וצא ביציאה {exit_number} לכיוון {destination}"},default:{default:"השתלב במעגל התנועה",name:"השתלב במעגל התנועה וצא על {way_name}",destination:"השתלב במעגל התנועה וצא לכיוון {destination}"}}},"roundabout turn":{default:{default:"פנה {modifier}",name:"פנה {modifier} על {way_name}",destination:"פנה {modifier} לכיוון {destination}"},left:{default:"פנה שמאלה",name:"פנה שמאלה ל{way_name}",destination:"פנה שמאלה לכיוון {destination}"},right:{default:"פנה ימינה",name:"פנה ימינה ל{way_name}",destination:"פנה ימינה לכיוון {destination}"},straight:{default:"המשך ישר",name:"המשך ישר על {way_name}",destination:"המשך ישר לכיוון {destination}"}},"exit roundabout":{default:{default:"צא ממעגל התנועה",name:"צא ממעגל התנועה ל{way_name}",destination:"צא ממעגל התנועה לכיוון {destination}"}},"exit rotary":{default:{default:"צא ממעגל התנועה",name:"צא ממעגל התנועה ל{way_name}",destination:"צא ממעגל התנועה לכיוון {destination}"}},turn:{default:{default:"פנה {modifier}",name:"פנה {modifier} על {way_name}",destination:"פנה {modifier} לכיוון {destination}"},left:{default:"פנה שמאלה",name:"פנה שמאלה ל{way_name}",destination:"פנה שמאלה לכיוון {destination}"},right:{default:"פנה ימינה",name:"פנה ימינה ל{way_name}",destination:"פנה ימינה לכיוון {destination}"},straight:{default:"המשך ישר",name:"המשך ישר ל{way_name}",destination:"המשך ישר לכיוון {destination}"}},"use lane":{no_lanes:{default:"המשך ישר"},default:{default:"{lane_instruction}"}}}}},{}],32:[function(
vendor: 14,664 bytes, line 12
12e,t,i){t.exports={meta:{capitalizeFirstLetter:!0},v5:{constants:{ordinalize:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10"},direction:{north:"utara",northeast:"timur laut",east:"timur",southeast:"tenggara",south:"selatan",southwest:"barat daya",west:"barat",northwest:"barat laut"},modifier:{left:"kiri",right:"kanan","sharp left":"tajam kiri","sharp right":"tajam kanan","slight left":"agak ke kiri","slight right":"agak ke kanan",straight:"lurus",uturn:"putar balik"},lanes:{xo:"Tetap di kanan",ox:"Tetap di kiri",xox:"Tetap di tengah",oxo:"Tetap di kiri atau kanan"}},modes:{ferry:{default:"Naik ferry",name:"Naik ferry di {way_name}",destination:"Naik ferry menuju {destination}"}},phrase:{"two linked by distance":"{instruction_one}, then, in {distance}, {instruction_two}","two linked":"{instruction_one}, then {instruction_two}","one in distance":"In {distance}, {instruction_one}","name and ref":"{name} ({ref})","exit with number":"exit {exit}"},arrive:{default:{default:"Anda telah tiba di tujuan ke-{nth}",upcoming:"Anda telah tiba di tujuan ke-{nth}",short:"Anda telah tiba di tujuan ke-{nth}","short-upcoming":"Anda telah tiba di tujuan ke-{nth}",named:"Anda telah tiba di {waypoint_name}"},left:{default:"Anda telah tiba di tujuan ke-{nth}, di sebelah kiri",upcoming:"Anda telah tiba di tujuan ke-{nth}, di sebelah kiri",short:"Anda telah tiba di tujuan ke-{nth}","short-upcoming":"Anda telah tiba di tujuan ke-{nth}",named:"Anda telah tiba di {waypoint_name}, di sebelah kiri"},right:{default:"Anda telah tiba di tujuan ke-{nth}, di sebelah kanan",upcoming:"Anda telah tiba di tujuan ke-{nth}, di sebelah kanan",short:"Anda telah tiba di tujuan ke-{nth}","short-upcoming":"Anda telah tiba di tujuan ke-{nth}",named:"Anda telah tiba di {waypoint_name}, di sebelah kanan"},"sharp left":{default:"Anda telah tiba di tujuan ke-{nth}, di sebelah kiri",upcoming:"Anda telah tiba di tujuan ke-{nth}, di sebelah kiri",short:"Anda telah tiba di tujuan ke-{nth}","short-upcoming":"Anda telah tiba di tujuan ke-{nth}",named:"Anda telah tiba di {waypoint_name}, di sebelah kiri"},"sharp right":{default:"Anda telah tiba di tujuan ke-{nth}, di sebelah kanan",upcoming:"Anda telah tiba di tujuan ke-{nth}, di sebelah kanan",short:"Anda telah tiba di tujuan ke-{nth}","short-upcoming":"Anda telah tiba di tujuan ke-{nth}",named:"Anda telah tiba di {waypoint_name}, di sebelah kanan"},"slight right":{default:"Anda telah tiba di tujuan ke-{nth}, di sebelah kanan",upcoming:"Anda telah tiba di tujuan ke-{nth}, di sebelah kanan",short:"Anda telah tiba di tujuan ke-{nth}","short-upcoming":"Anda telah tiba di tujuan ke-{nth}",named:"Anda telah tiba di {waypoint_name}, di sebelah kanan"},"slight left":{default:"Anda telah tiba di tujuan ke-{nth}, di sebelah kiri",upcoming:"Anda telah tiba di tujuan ke-{nth}, di sebelah kiri",short:"Anda telah tiba di tujuan ke-{nth}","short-upcoming":"Anda telah tiba di tujuan ke-{nth}",named:"Anda telah tiba di {waypoint_name}, di sebelah kiri"},straight:{default:"Anda telah tiba di tujuan ke-{nth}, lurus saja",upcoming:"Anda telah tiba di tujuan ke-{nth}, lurus saja",short:"Anda telah tiba di tujuan ke-{nth}","short-upcoming":"Anda telah tiba di tujuan ke-{nth}",named:"Anda telah tiba di {waypoint_name}, lurus saja"}},continue:{default:{default:"Belok {modifier}",name:"Terus {modifier} ke {way_name}",destination:"Belok {modifier} menuju {destination}",exit:"Belok {modifier} ke {way_name}"},straight:{default:"Lurus terus",name:"Terus ke {way_name}",destination:"Terus menuju {destination}",distance:"Continue straight for {distance}",namedistance:"Continue on {way_name} for {distance}"},"sharp left":{default:"Belok kiri tajam",name:"Make a sharp left to stay on {way_name}",destination:"Belok kiri tajam menuju {destination}"},"sharp right":{default:"Belok kanan tajam",name:"Make a sharp right to stay on {way_name}",destination:"Belok kanan tajam menuju {destination}"},"slight left":{default:"Tetap agak di kiri",name:"Tetap agak di kiri ke {way_name}",destination:"Tetap agak di kiri menuju {destination}"},"slight right":{default:"Tetap agak di kanan",name:"Tetap agak di kanan ke {way_name}",destination:"Tetap agak di kanan menuju {destination}"},uturn:{default:"Putar balik",name:"Putar balik ke arah {way_name}",destination:"Putar balik menuju {destination}"}},depart:{default:{default:"Arah {direction}",name:"Arah {direction} di {way_name}",namedistance:"Head {direction} on {way_name} for {distance}"}},"end of road":{default:{default:"Belok {modifier}",name:"Belok {modifier} ke {way_name}",destination:"Belok {modifier} menuju {destination}"},straight:{default:"Lurus terus",name:"Tetap lurus ke {way_name} ",destination:"Tetap lurus menuju {destination}"},uturn:{default:"Putar balik di akhir jalan",name:"Putar balik di {way_name} di akhir jalan",destination:"Putar balik menuju {destination} di akhir jalan"}},fork:{default:{default:"Tetap {modifier} di pertigaan",name:"Tetap {modifier} di pertigaan ke {way_name}",destination:"Tetap {modifier} di pertigaan menuju {destination}"},"slight left":{default:"Tetap di kiri pada pertigaan",name:"Tetap di kiri pada pertigaan ke arah {way_name}",destination:"Tetap di kiri pada pertigaan menuju {destination}"},"slight right":{default:"Tetap di kanan pada pertigaan",name:"Tetap di kanan pada pertigaan ke arah {way_name}",destination:"Tetap di kanan pada pertigaan menuju {destination}"},"sharp left":{default:"Belok kiri pada pertigaan",name:"Belok kiri tajam ke arah {way_name}",destination:"Belok kiri tajam menuju {destination}"},"sharp right":{default:"Belok kanan pada pertigaan",name:"Belok kanan tajam ke arah {way_name}",destination:"Belok kanan tajam menuju {destination}"},uturn:{default:"Putar balik",name:"Putar balik ke arah {way_name}",destination:"Putar balik menuju {destination}"}},merge:{default:{default:"Bergabung {modifier}",name:"Bergabung {modifier} ke arah {way_name}",destination:"Bergabung {modifier} menuju {destination}"},straight:{default:"Bergabung lurus",name:"Bergabung lurus ke arah {way_name}",destination:"Bergabung lurus menuju {destination}"},"slight left":{default:"Bergabung di kiri",name:"Bergabung di kiri ke arah {way_name}",destination:"Bergabung di kiri menuju {destination}"},"slight right":{default:"Bergabung di kanan",name:"Bergabung di kanan ke arah {way_name}",destination:"Bergabung di kanan menuju {destination}"},"sharp left":{default:"Bergabung di kiri",name:"Bergabung di kiri ke arah {way_name}",destination:"Bergabung di kiri menuju {destination}"},"sharp right":{default:"Bergabung di kanan",name:"Bergabung di kanan ke arah {way_name}",destination:"Bergabung di kanan menuju {destination}"},uturn:{default:"Putar balik",name:"Putar balik ke arah {way_name}",destination:"Putar balik menuju {destination}"}},"new name":{default:{default:"Lanjutkan {modifier}",name:"Lanjutkan {modifier} menuju {way_name}",destination:"Lanjutkan {modifier} menuju {destination}"},straight:{default:"Lurus terus",name:"Terus ke {way_name}",destination:"Terus menuju {destination}"},"sharp left":{default:"Belok kiri tajam",name:"Belok kiri tajam ke arah {way_name}",destination:"Belok kiri tajam menuju {destination}"},"sharp right":{default:"Belok kanan tajam",name:"Belok kanan tajam ke arah {way_name}",destination:"Belok kanan tajam menuju {destination}"},"slight left":{default:"Lanjut dengan agak ke kiri",name:"Lanjut dengan agak di kiri ke {way_name}",destination:"Tetap agak di kiri menuju {destination}"},"slight right":{default:"Tetap agak di kanan",name:"Tetap agak di kanan ke {way_name}",destination:"Tetap agak di kanan menuju {destination}"},uturn:{default:"Putar balik",name:"Putar balik ke arah {way_name}",destination:"Putar balik menuju {destination}"}},notification:{default:{default:"Lanjutkan {modifier}",name:"Lanjutkan {modifier} menuju {way_name}",destination:"Lanjutkan {modifier} menuju {destination}"},uturn:{default:"Putar balik",name:"Putar balik ke arah {way_name}",destination:"Putar balik menuju {destination}"}},"off ramp":{default:{default:"Ambil jalan melandai",name:"Ambil jalan melandai ke {way_name}",destination:"Ambil jalan melandai menuju {destination}",exit:"Take exit {exit}",exit_destination:"Take exit {exit} towards {destination}"},left:{default:"Ambil jalan yang melandai di sebelah kiri",name:"Ambil jalan melandai di sebelah kiri ke arah {way_name}",destination:"Ambil jalan melandai di sebelah kiri menuju {destination}",exit:"Take exit {exit} on the left",exit_destination:"Take exit {exit} on the left towards {destination}"},right:{default:"Ambil jalan melandai di sebelah kanan",name:"Ambil jalan melandai di sebelah kanan ke {way_name}",destination:"Ambil jalan melandai di sebelah kanan menuju {destination}",exit:"Take exit {exit} on the right",exit_destination:"Take exit {exit} on the right towards {destination}"},"sharp left":{default:"Ambil jalan yang melandai di sebelah kiri",name:"Ambil jalan melandai di sebelah kiri ke arah {way_name}",destination:"Ambil jalan melandai di sebelah kiri menuju {destination}",exit:"Take exit {exit} on the left",exit_destination:"Take exit {exit} on the left towards {destination}"},"sharp right":{default:"Ambil jalan melandai di sebelah kanan",name:"Ambil jalan melandai di sebelah kanan ke {way_name}",destination:"Ambil jalan melandai di sebelah kanan menuju {destination}",exit:"Take exit {exit} on the right",exit_destination:"Take exit {exit} on the right towards {destination}"},"slight left":{default:"Ambil jalan yang melandai di sebelah kiri",name:"Ambil jalan melandai di sebelah kiri ke arah {way_name}",destination:"Ambil jalan melandai di sebelah kiri menuju {destination}",exit:"Take exit {exit} on the left",exit_destination:"Take exit {exit} on the left towards {destination}"},"slight right":{default:"Ambil jalan melandai di sebelah kanan",name:"Ambil jalan melandai di sebelah kanan ke {way_name}",destination:"Ambil jalan melandai di sebelah kanan  menuju {destination}",exit:"Take exit {exit} on the right",exit_destination:"Take exit {exit} on the right towards {destination}"}},"on ramp":{default:{default:"Ambil jalan melandai",name:"Ambil jalan melandai ke {way_name}",destination:"Ambil jalan melandai menuju {destination}"},left:{default:"Ambil jalan yang melandai di sebelah kiri",name:"Ambil jalan melandai di sebelah kiri ke arah {way_name}",destination:"Ambil jalan melandai di sebelah kiri menuju {destination}"},right:{default:"Ambil jalan melandai di sebelah kanan",name:"Ambil jalan melandai di sebelah kanan ke {way_name}",destination:"Ambil jalan melandai di sebelah kanan  menuju {destination}"},"sharp left":{default:"Ambil jalan yang melandai di sebelah kiri",name:"Ambil jalan melandai di sebelah kiri ke arah {way_name}",destination:"Ambil jalan melandai di sebelah kiri menuju {destination}"},"sharp right":{default:"Ambil jalan melandai di sebelah kanan",name:"Ambil jalan melandai di sebelah kanan ke {way_name}",destination:"Ambil jalan melandai di sebelah kanan  menuju {destination}"},"slight left":{default:"Ambil jalan yang melandai di sebelah kiri",name:"Ambil jalan melandai di sebelah kiri ke arah {way_name}",destination:"Ambil jalan melandai di sebelah kiri menuju {destination}"},"slight right":{default:"Ambil jalan melandai di sebelah kanan",name:"Ambil jalan melandai di sebelah kanan ke {way_name}",destination:"Ambil jalan melandai di sebelah kanan  menuju {destination}"}},rotary:{default:{default:{default:"Masuk bundaran",name:"Masuk bundaran dan keluar arah {way_name}",destination:"Masuk bundaran dan keluar menuju {destination}"},name:{default:"Masuk {rotary_name}",name:"Masuk {rotary_name} dan keluar arah {way_name}",destination:"Masuk {rotary_name} dan keluar menuju {destination}"},exit:{default:"Masuk bundaran dan ambil jalan keluar {exit_number}",name:"Masuk bundaran dan ambil jalan keluar {exit_number} arah {way_name}",destination:"Masuk bundaran dan ambil jalan keluar {exit_number} menuju {destination}"},name_exit:{default:"Masuk {rotary_name} dan ambil jalan keluar {exit_number}",name:"Masuk {rotary_name} dan ambil jalan keluar {exit_number} arah {way_name}",destination:"Masuk {rotary_name} dan ambil jalan keluar {exit_number} menuju {destination}"}}},roundabout:{default:{exit:{default:"Masuk bundaran dan ambil jalan keluar {exit_number}",name:"Masuk bundaran dan ambil jalan keluar {exit_number} arah {way_name}",destination:"Masuk bundaran dan ambil jalan keluar {exit_number} menuju {destination}"},default:{default:"Masuk bundaran",name:"Masuk bundaran dan keluar arah {way_name}",destination:"Masuk bundaran dan keluar menuju {destination}"}}},"roundabout turn":{default:{default:"Lakukan {modifier}",name:"Lakukan {modifier} ke arah {way_name}",destination:"Lakukan {modifier} menuju {destination}"},left:{default:"Belok kiri",name:"Belok kiri ke {way_name}",destination:"Belok kiri menuju {destination}"},right:{default:"Belok kanan",name:"Belok kanan ke {way_name}",destination:"Belok kanan menuju {destination}"},straight:{default:"Lurus terus",name:"Tetap lurus ke {way_name} ",destination:"Tetap lurus menuju {destination}"}},"exit roundabout":{default:{default:"Lakukan {modifier}",name:"Lakukan {modifier} ke arah {way_name}",destination:"Lakukan {modifier} menuju {destination}"},left:{default:"Belok kiri",name:"Belok kiri ke {way_name}",destination:"Belok kiri menuju {destination}"},right:{default:"Belok kanan",name:"Belok kanan ke {way_name}",destination:"Belok kanan menuju {destination}"},straight:{default:"Lurus terus",name:"Tetap lurus ke {way_name} ",destination:"Tetap lurus menuju {destination}"}},"exit rotary":{default:{default:"Lakukan {modifier}",name:"Lakukan {modifier} ke arah {way_name}",destination:"Lakukan {modifier} menuju {destination}"},left:{default:"Belok kiri",name:"Belok kiri ke {way_name}",destination:"Belok kiri menuju {destination}"},right:{default:"Belok kanan",name:"Belok kanan ke {way_name}",destination:"Belok kanan menuju {destination}"},straight:{default:"Lurus",name:"Lurus arah {way_name}",destination:"Lurus menuju {destination}"}},turn:{default:{default:"Lakukan {modifier}",name:"Lakukan {modifier} ke arah {way_name}",destination:"Lakukan {modifier} menuju {destination}"},left:{default:"Belok kiri",name:"Belok kiri ke {way_name}",destination:"Belok kiri menuju {destination}"},right:{default:"Belok kanan",name:"Belok kanan ke {way_name}",destination:"Belok kanan menuju {destination}"},straight:{default:"Lurus",name:"Lurus arah {way_name}",destination:"Lurus menuju {destination}"}},"use lane":{no_lanes:{default:"Lurus terus"},default:{default:"{lane_instruction}"}}}}},{}],33:[function(e,t,i){t.exports={meta:{capitalizeFirstLetter:!0
vendor: 14,923 bytes, line 12
12},v5:{constants:{ordinalize:{1:"1ª",2:"2ª",3:"3ª",4:"4ª",5:"5ª",6:"6ª",7:"7ª",8:"8ª",9:"9ª",10:"10ª"},direction:{north:"nord",northeast:"nord-est",east:"est",southeast:"sud-est",south:"sud",southwest:"sud-ovest",west:"ovest",northwest:"nord-ovest"},modifier:{left:"sinistra",right:"destra","sharp left":"sinistra","sharp right":"destra","slight left":"sinistra leggermente","slight right":"destra leggermente",straight:"dritto",uturn:"inversione a U"},lanes:{xo:"Mantieni la destra",ox:"Mantieni la sinistra",xox:"Rimani in mezzo",oxo:"Mantieni la destra o la sinistra"}},modes:{ferry:{default:"Prendi il traghetto",name:"Prendi il traghetto {way_name}",destination:"Prendi il traghetto verso {destination}"}},phrase:{"two linked by distance":"{instruction_one}, poi tra {distance},{instruction_two}","two linked":"{instruction_one}, poi {instruction_two}","one in distance":"tra {distance} {instruction_one}","name and ref":"{name} ({ref})","exit with number":"exit {exit}"},arrive:{default:{default:"Sei arrivato alla tua {nth} destinazione",upcoming:"Sei arrivato alla tua {nth} destinazione",short:"Sei arrivato alla tua {nth} destinazione","short-upcoming":"Sei arrivato alla tua {nth} destinazione",named:"Sei arrivato a {waypoint_name}"},left:{default:"sei arrivato alla tua {nth} destinazione, sulla sinistra",upcoming:"sei arrivato alla tua {nth} destinazione, sulla sinistra",short:"Sei arrivato alla tua {nth} destinazione","short-upcoming":"Sei arrivato alla tua {nth} destinazione",named:"sei arrivato a {waypoint_name}, sulla sinistra"},right:{default:"sei arrivato alla tua {nth} destinazione, sulla destra",upcoming:"sei arrivato alla tua {nth} destinazione, sulla destra",short:"Sei arrivato alla tua {nth} destinazione","short-upcoming":"Sei arrivato alla tua {nth} destinazione",named:"sei arrivato a {waypoint_name}, sulla destra"},"sharp left":{default:"sei arrivato alla tua {nth} destinazione, sulla sinistra",upcoming:"sei arrivato alla tua {nth} destinazione, sulla sinistra",short:"Sei arrivato alla tua {nth} destinazione","short-upcoming":"Sei arrivato alla tua {nth} destinazione",named:"sei arrivato a {waypoint_name}, sulla sinistra"},"sharp right":{default:"sei arrivato alla tua {nth} destinazione, sulla destra",upcoming:"sei arrivato alla tua {nth} destinazione, sulla destra",short:"Sei arrivato alla tua {nth} destinazione","short-upcoming":"Sei arrivato alla tua {nth} destinazione",named:"sei arrivato a {waypoint_name}, sulla destra"},"slight right":{default:"sei arrivato alla tua {nth} destinazione, sulla destra",upcoming:"sei arrivato alla tua {nth} destinazione, sulla destra",short:"Sei arrivato alla tua {nth} destinazione","short-upcoming":"Sei arrivato alla tua {nth} destinazione",named:"sei arrivato a {waypoint_name}, sulla destra"},"slight left":{default:"sei arrivato alla tua {nth} destinazione, sulla sinistra",upcoming:"sei arrivato alla tua {nth} destinazione, sulla sinistra",short:"Sei arrivato alla tua {nth} destinazione","short-upcoming":"Sei arrivato alla tua {nth} destinazione",named:"sei arrivato a {waypoint_name}, sulla sinistra"},straight:{default:"sei arrivato alla tua {nth} destinazione, si trova davanti a te",upcoming:"sei arrivato alla tua {nth} destinazione, si trova davanti a te",short:"Sei arrivato alla tua {nth} destinazione","short-upcoming":"Sei arrivato alla tua {nth} destinazione",named:"sei arrivato a {waypoint_name}, si trova davanti a te"}},continue:{default:{default:"Gira a {modifier}",name:"Gira a {modifier} per stare su {way_name}",destination:"Gira a {modifier} verso {destination}",exit:"Gira a {modifier} in {way_name}"},straight:{default:"Continua dritto",name:"Continua dritto per stare su {way_name}",destination:"Continua verso {destination}",distance:"Continua dritto per {distance}",namedistance:"Continua su {way_name} per {distance}"},"sharp left":{default:"Svolta a sinistra",name:"Fai una stretta curva a sinistra per stare su {way_name}",destination:"Svolta a sinistra verso {destination}"},"sharp right":{default:"Svolta a destra",name:"Fau una stretta curva a destra per stare su {way_name}",destination:"Svolta a destra verso {destination}"},"slight left":{default:"Fai una leggera curva a sinistra",name:"Fai una leggera curva a sinistra per stare su {way_name}",destination:"Fai una leggera curva a sinistra verso {destination}"},"slight right":{default:"Fai una leggera curva a destra",name:"Fai una leggera curva a destra per stare su {way_name}",destination:"Fai una leggera curva a destra verso {destination}"},uturn:{default:"Fai un'inversione a U",name:"Fai un'inversione ad U poi continua su {way_name}",destination:"Fai un'inversione a U verso {destination}"}},depart:{default:{default:"Continua verso {direction}",name:"Continua verso {direction} in {way_name}",namedistance:"Head {direction} on {way_name} for {distance}"}},"end of road":{default:{default:"Gira a {modifier}",name:"Gira a {modifier} in {way_name}",destination:"Gira a {modifier} verso {destination}"},straight:{default:"Continua dritto",name:"Continua dritto in {way_name}",destination:"Continua dritto verso {destination}"},uturn:{default:"Fai un'inversione a U alla fine della strada",name:"Fai un'inversione a U in {way_name} alla fine della strada",destination:"Fai un'inversione a U verso {destination} alla fine della strada"}},fork:{default:{default:"Mantieni la {modifier} al bivio",name:"Mantieni la {modifier} al bivio in {way_name}",destination:"Mantieni la {modifier} al bivio verso {destination}"},"slight left":{default:"Mantieni la sinistra al bivio",name:"Mantieni la sinistra al bivio in {way_name}",destination:"Mantieni la sinistra al bivio verso {destination}"},"slight right":{default:"Mantieni la destra al bivio",name:"Mantieni la destra al bivio in {way_name}",destination:"Mantieni la destra al bivio verso {destination}"},"sharp left":{default:"Svolta a sinistra al bivio",name:"Svolta a sinistra in {way_name}",destination:"Svolta a sinistra verso {destination}"},"sharp right":{default:"Svolta a destra al bivio",name:"Svolta a destra in {way_name}",destination:"Svolta a destra verso {destination}"},uturn:{default:"Fai un'inversione a U",name:"Fai un'inversione a U in {way_name}",destination:"Fai un'inversione a U verso {destination}"}},merge:{default:{default:"Immettiti a {modifier}",name:"Immettiti {modifier} in {way_name}",destination:"Immettiti {modifier} verso {destination}"},straight:{default:"Immettiti a dritto",name:"Immettiti dritto in {way_name}",destination:"Immettiti dritto verso {destination}"},"slight left":{default:"Immettiti a sinistra",name:"Immettiti a sinistra in {way_name}",destination:"Immettiti a sinistra verso {destination}"},"slight right":{default:"Immettiti a destra",name:"Immettiti a destra in {way_name}",destination:"Immettiti a destra verso {destination}"},"sharp left":{default:"Immettiti a sinistra",name:"Immettiti a sinistra in {way_name}",destination:"Immettiti a sinistra verso {destination}"},"sharp right":{default:"Immettiti a destra",name:"Immettiti a destra in {way_name}",destination:"Immettiti a destra verso {destination}"},uturn:{default:"Fai un'inversione a U",name:"Fai un'inversione a U in {way_name}",destination:"Fai un'inversione a U verso {destination}"}},"new name":{default:{default:"Continua a {modifier}",name:"Continua a {modifier} in {way_name}",destination:"Continua a {modifier} verso {destination}"},straight:{default:"Continua dritto",name:"Continua in {way_name}",destination:"Continua verso {destination}"},"sharp left":{default:"Svolta a sinistra",name:"Svolta a sinistra in {way_name}",destination:"Svolta a sinistra verso {destination}"},"sharp right":{default:"Svolta a destra",name:"Svolta a destra in {way_name}",destination:"Svolta a destra verso {destination}"},"slight left":{default:"Continua leggermente a sinistra",name:"Continua leggermente a sinistra in {way_name}",destination:"Continua leggermente a sinistra verso {destination}"},"slight right":{default:"Continua leggermente a destra",name:"Continua leggermente a destra in {way_name} ",destination:"Continua leggermente a destra verso {destination}"},uturn:{default:"Fai un'inversione a U",name:"Fai un'inversione a U in {way_name}",destination:"Fai un'inversione a U verso {destination}"}},notification:{default:{default:"Continua a {modifier}",name:"Continua a {modifier} in {way_name}",destination:"Continua a {modifier} verso {destination}"},uturn:{default:"Fai un'inversione a U",name:"Fai un'inversione a U in {way_name}",destination:"Fai un'inversione a U verso {destination}"}},"off ramp":{default:{default:"Prendi la rampa",name:"Prendi la rampa in {way_name}",destination:"Prendi la rampa verso {destination}",exit:"Prendi l'uscita {exit}",exit_destination:"Prendi l'uscita  {exit} verso {destination}"},left:{default:"Prendi la rampa a sinistra",name:"Prendi la rampa a sinistra in {way_name}",destination:"Prendi la rampa a sinistra verso {destination}",exit:"Prendi l'uscita {exit} a sinistra",exit_destination:"Prendi la {exit}  uscita a sinistra verso {destination}"},right:{default:"Prendi la rampa a destra",name:"Prendi la rampa a destra in {way_name}",destination:"Prendi la rampa a destra verso {destination}",exit:"Prendi la {exit} uscita a destra",exit_destination:"Prendi la {exit} uscita a destra verso {destination}"},"sharp left":{default:"Prendi la rampa a sinistra",name:"Prendi la rampa a sinistra in {way_name}",destination:"Prendi la rampa a sinistra verso {destination}",exit:"Prendi l'uscita {exit} a sinistra",exit_destination:"Prendi la {exit}  uscita a sinistra verso {destination}"},"sharp right":{default:"Prendi la rampa a destra",name:"Prendi la rampa a destra in {way_name}",destination:"Prendi la rampa a destra verso {destination}",exit:"Prendi la {exit} uscita a destra",exit_destination:"Prendi la {exit} uscita a destra verso {destination}"},"slight left":{default:"Prendi la rampa a sinistra",name:"Prendi la rampa a sinistra in {way_name}",destination:"Prendi la rampa a sinistra verso {destination}",exit:"Prendi l'uscita {exit} a sinistra",exit_destination:"Prendi la {exit}  uscita a sinistra verso {destination}"},"slight right":{default:"Prendi la rampa a destra",name:"Prendi la rampa a destra in {way_name}",destination:"Prendi la rampa a destra verso {destination}",exit:"Prendi la {exit} uscita a destra",exit_destination:"Prendi la {exit} uscita a destra verso {destination}"}},"on ramp":{default:{default:"Prendi la rampa",name:"Prendi la rampa in {way_name}",destination:"Prendi la rampa verso {destination}"},left:{default:"Prendi la rampa a sinistra",name:"Prendi la rampa a sinistra in {way_name}",destination:"Prendi la rampa a sinistra verso {destination}"},right:{default:"Prendi la rampa a destra",name:"Prendi la rampa a destra in {way_name}",destination:"Prendi la rampa a destra verso {destination}"},"sharp left":{default:"Prendi la rampa a sinistra",name:"Prendi la rampa a sinistra in {way_name}",destination:"Prendi la rampa a sinistra verso {destination}"},"sharp right":{default:"Prendi la rampa a destra",name:"Prendi la rampa a destra in {way_name}",destination:"Prendi la rampa a destra verso {destination}"},"slight left":{default:"Prendi la rampa a sinistra",name:"Prendi la rampa a sinistra in {way_name}",destination:"Prendi la rampa a sinistra verso {destination}"},"slight right":{default:"Prendi la rampa a destra",name:"Prendi la rampa a destra in {way_name}",destination:"Prendi la rampa a destra verso {destination}"}},rotary:{default:{default:{default:"Immettiti nella rotonda",name:"Immettiti nella ritonda ed esci in {way_name}",destination:"Immettiti nella ritonda ed esci verso {destination}"},name:{default:"Immettiti in {rotary_name}",name:"Immettiti in {rotary_name} ed esci su {way_name}",destination:"Immettiti in {rotary_name} ed esci verso {destination}"},exit:{default:"Immettiti nella rotonda e prendi la {exit_number} uscita",name:"Immettiti nella rotonda e prendi la {exit_number} uscita in {way_name}",destination:"Immettiti nella rotonda e prendi la {exit_number} uscita verso   {destination}"},name_exit:{default:"Immettiti in {rotary_name} e prendi la {exit_number} uscita",name:"Immettiti in {rotary_name} e prendi la {exit_number} uscita in {way_name}",destination:"Immettiti in {rotary_name} e prendi la {exit_number}  uscita verso {destination}"}}},roundabout:{default:{exit:{default:"Immettiti nella rotonda e prendi la {exit_number} uscita",name:"Immettiti nella rotonda e prendi la {exit_number} uscita in {way_name}",destination:"Immettiti nella rotonda e prendi la {exit_number} uscita verso {destination}"},default:{default:"Entra nella rotonda",name:"Entra nella rotonda e prendi l'uscita in {way_name}",destination:"Entra nella rotonda e prendi l'uscita verso {destination}"}}},"roundabout turn":{default:{default:"Fai una {modifier}",name:"Fai una {modifier} in {way_name}",destination:"Fai una {modifier} verso {destination}"},left:{default:"Svolta a sinistra",name:"Svolta a sinistra in {way_name}",destination:"Svolta a sinistra verso {destination}"},right:{default:"Gira a destra",name:"Svolta a destra in {way_name}",destination:"Svolta a destra verso {destination}"},straight:{default:"Continua dritto",name:"Continua dritto in {way_name}",destination:"Continua dritto verso {destination}"}},"exit roundabout":{default:{default:"Fai una {modifier}",name:"Fai una {modifier} in {way_name}",destination:"Fai una {modifier} verso {destination}"},left:{default:"Svolta a sinistra",name:"Svolta a sinistra in {way_name}",destination:"Svolta a sinistra verso {destination}"},right:{default:"Gira a destra",name:"Svolta a destra in {way_name}",destination:"Svolta a destra verso {destination}"},straight:{default:"Continua dritto",name:"Continua dritto in {way_name}",destination:"Continua dritto verso {destination}"}},"exit rotary":{default:{default:"Fai una {modifier}",name:"Fai una {modifier} in {way_name}",destination:"Fai una {modifier} verso {destination}"},left:{default:"Svolta a sinistra",name:"Svolta a sinistra in {way_name}",destination:"Svolta a sinistra verso {destination}"},right:{default:"Gira a destra",name:"Svolta a destra in {way_name}",destination:"Svolta a destra verso {destination}"},straight:{default:"Prosegui dritto",name:"Continua su {way_name}",destination:"Continua verso {destination}"}},turn:{default:{default:"Fai una {modifier}",name:"Fai una {modifier} in {way_name}",destination:"Fai una {modifier} verso {destination}"},left:{default:"Svolta a sinistra",name:"Svolta a sinistra in {way_name}",destination:"Svolta a sinistra verso {destination}"},right:{default:"Gira a destra",name:"Svolta a destra in {way_name}",destination:"Svolta a destra verso {destination}"},straight:{default:"Prosegui dritto",name:"Continua su {way_name}",destination:"Continua verso {destination}"}},"use lane":{no_lanes:{default:"Continua dritto"},default:{default:"{lane_instruction}"}}}}},{}],34:[function(
vendor: 13,507 bytes, line 12
12e,t,i){t.exports={meta:{capitalizeFirstLetter:!1},v5:{constants:{ordinalize:{1:"첫번쩨",2:"두번째",3:"세번째",4:"네번쩨",5:"다섯번째",6:"여섯번째",7:"일곱번째",8:"여덟번째",9:"아홉번째",10:"열번째"},direction:{north:"북쪽",northeast:"북동쪽",east:"동쪽",southeast:"남동쪽",south:"남쪽",southwest:"남서쪽",west:"서쪽",northwest:"북서쪽"},modifier:{left:"좌회전",right:"우회전","sharp left":"바로좌회전","sharp right":"바로우회전","slight left":"조금왼쪽","slight right":"조금오른쪽",straight:"직진",uturn:"유턴"},lanes:{xo:"우측차선 유지",ox:"좌측차선 유지",xox:"중앙유지",oxo:"계속 좌측 또는 우측 차선"}},modes:{ferry:{default:"페리를 타시오",name:"페리를 타시오 {way_name}",destination:"페리를 타고 {destination}까지 가세요."}},phrase:{"two linked by distance":"{instruction_one}, 그리고, {distance} 안에, {instruction_two}","two linked":"{instruction_one}, 그리고 {instruction_two}","one in distance":"{distance} 내에, {instruction_one}","name and ref":"{name} ({ref})","exit with number":"{exit}번으로 나가세요."},arrive:{default:{default:" {nth}목적지에 도착하였습니다.",upcoming:"{nth}목적지에 ê³§ 도착할 예정입니다.",short:"도착하였습니다","short-upcoming":"도착할 예정입니다.",named:"경유지 {waypoint_name}에 도착하였습니다."},left:{default:"좌측에 {nth} 목적지가 있습니다.",upcoming:"좌측에 {nth} 목적지에 도착할 예정입니다.",short:"도착하였습니다","short-upcoming":"목적지에 ê³§ 도착할 예정입니다.",named:"좌측에 경유지 {waypoint_name}에 도착하였습니다."},right:{default:"우측에 {nth} 목적지가 있습니다.",upcoming:"우측에 {nth} 목적지에 도착할 예정입니다.",short:"도착하였습니다","short-upcoming":"목적지에 ê³§ 도착할 예정입니다.",named:"우측에 경유지 {waypoint_name}에 도착하였습니다."},"sharp left":{default:"좌측에 {nth} 목적지가 있습니다.",upcoming:"좌측에 {nth} 목적지에 도착할 예정입니다.",short:"도착하였습니다","short-upcoming":"목적지에 ê³§ 도착할 예정입니다.",named:"좌측에 경유지 {waypoint_name}에 도착하였습니다."},"sharp right":{default:"우측에 {nth} 목적지가 있습니다.",upcoming:"우측에 {nth} 목적지에 도착할 예정입니다.",short:"도착하였습니다","short-upcoming":"목적지에 ê³§ 도착할 예정입니다.",named:"우측에 경유지 {waypoint_name}에 도착하였습니다."},"slight right":{default:"우측에 {nth} 목적지가 있습니다.",upcoming:"우측에 {nth} 목적지에 도착할 예정입니다.",short:"도착하였습니다","short-upcoming":"목적지에 ê³§ 도착할 예정입니다.",named:"우측에 경유지 {waypoint_name}에 도착하였습니다."},"slight left":{default:"좌측에 {nth} 목적지가 있습니다.",upcoming:"좌측에 {nth} 목적지에 도착할 예정입니다.",short:"도착하였습니다","short-upcoming":"목적지에 ê³§ 도착할 예정입니다.",named:"좌측에 경유지 {waypoint_name}에 도착하였습니다."},straight:{default:"바로 앞에 {nth} 목적지가 있습니다.",upcoming:"직진하시면 {nth} 목적지에 도착할 예정입니다.",short:"도착하였습니다","short-upcoming":"목적지에 ê³§ 도착할 예정입니다.",named:"정면에 경유지 {waypoint_name}에 도착하였습니다."}},continue:{default:{default:"{modifier} 회전",name:"{modifier} 회전하고 {way_name}로 직진해 주세요.",destination:"{modifier} 회전하고 {destination}까지 가세요.",exit:"{way_name} 쪽으로 {modifier} 회전 하세요."},straight:{default:"계속 직진해 주세요.",name:"{way_name} 로 계속 직진해 주세요.",destination:"{destination}까지 직진해 주세요.",distance:"{distance}까지 직진해 주세요.",namedistance:"{distance}까지 {way_name}로 가주세요."},"sharp left":{default:"급좌회전 하세요.",name:"급좌회전 하신 후 {way_name}로 가세요.",destination:"급좌회전 하신 후 {destination}로 가세요."},"sharp right":{default:"급우회전 하세요.",name:"급우회전 하고 {way_name}로 가세요.",destination:"급우회전 하신 후 {destination}로 가세요."},"slight left":{default:"약간 좌회전하세요.",name:"약간 좌회전 하고 {way_name}로 가세요.",destination:"약간 좌회전 하신 후 {destination}로 가세요."},"slight right":{default:"약간 우회전하세요.",name:"약간 우회전 하고 {way_name}로 가세요.",destination:"약간 우회전 하신 후 {destination}로 가세요."},uturn:{default:"유턴 하세요",name:"유턴해서 {way_name}로 가세요.",destination:"유턴하신 후 {destination}로 가세요."}},depart:{default:{default:"{direction}로 가세요",name:"{direction} 로 가서 {way_name} 를 이용하세요. ",namedistance:"{direction}로 가서{way_name} 를 {distance}까지 가세요."}},"end of road":{default:{default:"{modifier} 회전하세요.",name:"{modifier}회전하고 {way_name}로 가세요.",destination:"{modifier}회전 하신 후 {destination}로 가세요."},straight:{default:"계속 직진해 주세요.",name:"{way_name}로 계속 직진해 주세요.",destination:"{destination}까지 직진해 주세요."},uturn:{default:"도로 끝까지 가서 유턴해 주세요.",name:"도로 끝까지 가서 유턴해서 {way_name}로 가세요.",destination:"도로 끝까지 가서 유턴해서 {destination} 까지 가세요."}},fork:{default:{default:"갈림길에서 {modifier} 으로 가세요.",name:"{modifier}하고 {way_name}로 가세요.",destination:"{modifier}하고 {destination}까지 가세요."},"slight left":{default:"갈림길에서 좌회전 하세요.",name:"좌회전 해서 {way_name}로 가세요.",destination:"좌회전 해서 {destination}까지 가세요."},"slight right":{default:"갈림길에서 우회전 하세요.",name:"우회전 해서 {way_name}로 가세요.",destination:"우회전 해서 {destination}까지 가세요."},"sharp left":{default:"갈림길에서 급좌회전 하세요.",name:"급좌회전 해서 {way_name}로 가세요.",destination:"급좌회전 해서 {destination}까지 가세요."},"sharp right":{default:"갈림길에서 급우회전 하세요.",name:"급우회전 해서 {way_name}로 가세요.",destination:"급우회전 해서 {destination}까지 가세요."},uturn:{default:"유턴하세요.",name:"유턴해서 {way_name}로 가세요.",destination:"유턴해서 {destination}까지 가세요."}},merge:{default:{default:"{modifier} 합류",name:"{modifier} 합류하여 {way_name}로 가세요.",destination:"{modifier} 합류하여 {destination}로 가세요."},straight:{default:"합류",name:"{way_name}로 합류하세요.",destination:"{destination}로 합류하세요."},"slight left":{default:"좌측으로 합류하세요.",name:"좌측{way_name}로 합류하세요.",destination:"좌측으로 합류하여 {destination}까지 가세요."},"slight right":{default:"우측으로 합류하세요.",name:"우측{way_name}로 합류하세요.",destination:"우측으로 합류하여 {destination}까지 가세요."},"sharp left":{default:"좌측으로 합류하세요.",name:"좌측{way_name}로 합류하세요.",destination:"좌측으로 합류하여 {destination}까지 가세요."},"sharp right":{default:"우측으로 합류하세요.",name:"우측{way_name}로 합류하세요.",destination:"우측으로 합류하여 {destination}까지 가세요."},uturn:{default:"유턴하세요.",name:"유턴해서 {way_name}로 가세요.",destination:"유턴해서 {destination}까지 가세요."}},"new name":{default:{default:"{modifier} 유지하세요.",name:"{modifier} 유지해서 {way_name}로 가세요.",destination:"{modifier} 유지해서 {destination}까지 가세요."},straight:{default:"직진해주세요.",name:"{way_name}로 계속 가세요.",destination:"{destination}까지 계속 가세요."},"sharp left":{default:"급좌회전 하세요.",name:"급좌회전 해서 {way_name}로 가세요.",destination:"급좌회전 해서 {destination}까지 가세요."},"sharp right":{default:"급우회전 하세요.",name:"급우회전 해서 {way_name}로 가세요.",destination:"급우회전 해서 {destination}까지 가세요."},"slight left":{default:"약간 좌회전 해세요.",name:"약간 좌회전해서 {way_name}로 가세요.",destination:"약간 좌회전 해서 {destination}까지 가세요."},"slight right":{default:"약간 우회전 해세요.",name:"약간 우회전해서 {way_name}로 가세요.",destination:"약간 우회전 해서 {destination}까지 가세요."},uturn:{default:"유턴해주세요.",name:"유턴해서 {way_name}로 가세요.",destination:"유턴해서 {destination}까지 가세요."}},notification:{default:{default:"{modifier} 하세요.",name:"{modifier}해서 {way_name}로 가세요.",destination:"{modifier}해서 {destination}까지 가세요."},uturn:{default:"유턴하세요.",name:"유턴해서 {way_name}로 가세요.",destination:"유턴해서 {destination}까지 가세요."}},"off ramp":{default:{default:"램프로 진출해 주세요..",name:"램프로 진출해서 {way_name}로 가세요.",destination:"램프로 진출해서 {destination}까지 가세요.",exit:"{exit} 출구로 나가세요.",exit_destination:"{exit} 출구로 나가서 {destination}까지 가세요."},left:{default:"왼쪽의 램프로 진출해 주세요.",name:"왼쪽의 램프로 진출해서 {way_name}로 가세요.",destination:"왼쪽의 램프로 진출해서 {destination}까지 가세요.",exit:"{exit} 왼쪽의 출구로 나가세요.",exit_destination:"{exit} 왼쪽의 출구로 가나서 {destination}까지 가세요."},right:{default:"오른쪽의 램프로 진출해 주세요.",name:"오른쪽의 램프로 진출해서 {way_name}로 가세요.",destination:"오른쪽의 램프로 진출해서 {destination}까지 가세요.",exit:"{exit} 오른쪽의 출구로 나가세요.",exit_destination:"{exit} 오른쪽의 출구로 가나서 {destination}까지 가세요."},"sharp left":{default:"왼쪽의 램프로 진출해 주세요.",name:"왼쪽의 램프로 진출해서 {way_name}로 가세요.",destination:"왼쪽의 램프로 진출해서 {destination}까지 가세요.",exit:"{exit} 왼쪽의 출구로 나가세요.",exit_destination:"{exit} 왼쪽의 출구로 가나서 {destination}까지 가세요."},"sharp right":{default:"오른쪽의 램프로 진출해 주세요.",name:"오른쪽의 램프로 진출해서 {way_name}로 가세요.",destination:"오른쪽의 램프로 진출해서 {destination}까지 가세요.",exit:"{exit} 오른쪽의 출구로 나가세요.",exit_destination:"{exit} 오른쪽의 출구로 가나서 {destination}까지 가세요."},"slight left":{default:"왼쪽의 램프로 진출해 주세요.",name:"왼쪽의 램프로 진출해서 {way_name}로 가세요.",destination:"왼쪽의 램프로 진출해서 {destination}까지 가세요.",exit:"{exit} 왼쪽의 출구로 나가세요.",exit_destination:"{exit} 왼쪽의 출구로 가나서 {destination}까지 가세요."},"slight right":{default:"오른쪽의 램프로 진출해 주세요.",name:"오른쪽의 램프로 진출해서 {way_name}로 가세요.",destination:"오른쪽의 램프로 진출해서 {destination}까지 가세요.",exit:"{exit} 오른쪽의 출구로 나가세요.",exit_destination:"{exit} 오른쪽의 출구로 가나서 {destination}까지 가세요."}},"on ramp":{default:{default:"램프로 진입해 주세요..",name:"램프로 진입해서 {way_name}로 가세요.",destination:"램프로 진입해서 {destination}까지 가세요."},left:{default:"왼쪽의 램프로 진입해 주세요.",name:"왼쪽의 램프로 진입해서 {way_name}로 가세요.",destination:"왼쪽의 램프로 진입해서 {destination}까지 가세요."},right:{default:"오른쪽의 램프로 진입해 주세요.",name:"오른쪽의 램프로 진입해서 {way_name}로 가세요.",destination:"오른쪽의 램프로 진입해서 {destination}까지 가세요."},"sharp left":{default:"왼쪽의 램프로 진입해 주세요.",name:"왼쪽의 램프로 진입해서 {way_name}로 가세요.",destination:"왼쪽의 램프로 진입해서 {destination}까지 가세요."},"sharp right":{default:"오른쪽의 램프로 진입해 주세요.",name:"오른쪽의 램프로 진입해서 {way_name}로 가세요.",destination:"오른쪽의 램프로 진입해서 {destination}까지 가세요."},"slight left":{default:"왼쪽의 램프로 진입해 주세요.",name:"왼쪽의 램프로 진입해서 {way_name}로 가세요.",destination:"왼쪽의 램프로 진입해서 {destination}까지 가세요."},"slight right":{default:"오른쪽의 램프로 진입해 주세요.",name:"오른쪽의 램프로 진입해서 {way_name}로 가세요.",destination:"오른쪽의 램프로 진입해서 {destination}까지 가세요."}},rotary:{default:{default:{default:"로터리로 진입하세요.",name:"로터리로 진입해서 {way_name} 나가세요.",destination:"로터리로 진입해서 {destination}로 나가세요."},name:{default:"{rotary_name}로 진입하세요.",name:"{rotary_name}로 진입해서 {way_name}로 나가세요.",destination:"{rotary_name}로 진입해서 {destination}로 나가세요."},exit:{default:"로터리로 진입해서 {exit_number} 출êµ
12¬ë¡œ 나가세요.",name:"로터리로 진입해서 {exit_number} 출구로 나가 {way_name}로 가세요.",destination:"로터리로 진입해서 {exit_number} 출구로 나가 {destination}로 가세요."},name_exit:{default:"{rotary_name}로 진입해서 {exit_number}번 출구로 나가세요.",name:"{rotary_name}로 진입해서 {exit_number}번 출구로 나가 {way_name}로 가세요.",destination:"{rotary_name}로 진입해서 {exit_number}번 출구로 나가 {destination}로 가세요."}}},roundabout:{default:{exit:{default:"로터리로 진입해서 {exit_number}로 나가세요.",name:"로터리로 진입해서 {exit_number}로 나가서 {way_name}로 가세요.",destination:"로터리로 진입해서 {exit_number}로 나가서 {destination}로 가세요."},default:{default:"로터리로 진입하세요.",name:"로터리로 진입해서 {way_name} 나가세요.",destination:"로터리로 진입해서 {destination}로 나가세요."}}},"roundabout turn":{default:{default:"{modifier} 하세요.",name:"{modifier} 하시고 {way_name}로 가세요.",destination:"{modifier} 하시고 {destination}까지 가세요."},left:{default:"좌회전 하세요.",name:"좌회전 하시고 {way_name}로 가세요.",destination:"좌회전 하시고 {destination}까지 가세요."},right:{default:"우회전 하세요.",name:"우회전 하시고 {way_name}로 가세요.",destination:"우회전 하시고 {destination}까지 가세요."},straight:{default:"직진 하세요.",name:"직진하시고 {way_name}로 가세요.",destination:"직진하시고 {destination}까지 가세요."}},"exit roundabout":{default:{default:"로타리에서 진출하세요.",name:"로타리에서 진출해서 {way_name}로 가세요.",destination:"로타리에서 진출해서 {destination}까지 가세요."}},"exit rotary":{default:{default:"로타리에서 진출하세요.",name:"로타리에서 진출해서 {way_name}로 가세요.",destination:"로타리에서 진출해서 {destination}까지 가세요."}},turn:{default:{default:"{modifier} 하세요.",name:"{modifier} 하시고 {way_name}로 가세요.",destination:"{modifier} 하시고 {destination}까지 가세요."},left:{default:"좌회전 하세요.",name:"좌회전 하시고 {way_name}로 가세요.",destination:"좌회전 하시고 {destination}까지 가세요."},right:{default:"우회전 하세요.",name:"우회전 하시고 {way_name}로 가세요.",destination:"우회전 하시고 {destination}까지 가세요."},straight:{default:"직진 하세요.",name:"직진하시고 {way_name}로 가세요.",destination:"직진하시고 {destination}까지 가세요."}},"use lane":{no_lanes:{default:"직진하세요."},default:{default:"{lane_instruction}"}}}}},{}],35:[function(e,t,i){t.exports={meta:{capitalizeFirstLetter:!1},v5:{constants:{ordinalize:{1:"ပထမ",2:"ဒုတိယ",3:"တတိယ",4:"စတုတၳ",5:"ပဥၥမ",6:"ဆဌမ",7:"သတၱမ",8:"အဌမ",9:"နဝမ",10:"ဒသမ"},direction:{north:"ေျမာက္အရပ္",northeast:"အေရွ႕ေျမာက္အရပ္",east:"အေရွ႕အရပ္",southeast:"အေရွ႕ေတာင္အရပ္",south:"ေတာင္အရပ္",southwest:"အေနာက္ေတာင္အရပ္",west:"အေနာက္အရပ္",northwest:"အေနာက္ေျမာက္အရပ္"},modifier:{left:"ဘယ္ဘက္",right:"ညာဘက္","sharp left":"ဘယ္ဘက္ ေထာင့္ခ်ိဳး","sharp right":"ညာဘက္ ေထာင္႔ခ်ိဳး","slight left":"ဘယ္ဘက္ အနည္းငယ္","slight right":"ညာဘက္ အနည္းငယ္",straight:"ေျဖာင္႔ေျဖာင္႔တန္းတန္း",uturn:"ဂ-ေကြ႔"},lanes:{xo:"ညာဘက္သို႕ဆက္သြားပါ",ox:"ဘယ္ဘက္သို႕ဆက္သြားပါ",xox:"အလယ္တြင္ဆက္ေနပါ",oxo:"ဘယ္ သို႕မဟုတ္ ညာဘက္သို႕ ဆက္သြားပါ"}},modes:{ferry:{default:"ဖယ္ရီ စီးသြားပါ",name:"{way_name}ကို ဖယ္ရီစီးသြားပါ",destination:"{destination}ဆီသို႕ ဖယ္ရီစီးသြားပါ"}},phrase:{"two linked by distance":"{instruction_one}ျပီးေနာက္ {distance}အတြင္း {instruction_two}","two linked":"{instruction_one}ျပီးေနာက္ {instruction_two}","one in distance":"{distance}အတြင္း {instruction_one}","name and ref":"{name}( {ref})","exit with number":"{exit}မွထြက္ပါ"},arrive:{default:{default:"{nth}သင္ သြားလိုေသာ ခရီးပန္းတိုင္သို႕ေရာက္ရွိျပီ",upcoming:"သင္ သြားလိုေသာ {nth}ခရီးပန္းတိုင္သို႕ေရာက္လိမ့္မည္",short:"သင္သြားလိုေသာ ေနရာသို႔ ေရာက္ရိွၿပီ","short-upcoming":"သင္သြားလိုေသာ ေနရာသို႔ ေရာက္လိမ့္မည္",named:"သင္ သည္ {waypoint_name} မွာ ေရာက္ရွိျပီ"},left:{default:"သင္ သြားလိုေသာ {nth}ခရီးပန္းတိုင္သို႕ဘယ္ဘက္တြင္ေရာက္ရွိျပီ",upcoming:"သင္ သြားလိုေသာ {nth}ခရီးပန္းတိုင္သို႕ဘယ္ဘက္တြင္ေရာက္လိမ့္မည္",short:"သင္သြားလိုေသာ ေနရာသို႔ ေရာက္ရိွၿပီ","short-upcoming":"သင္သြားလိုေသာ ေနရာသို႔ ေရာက္လိမ့္မည္",named:"သင္ သည္ {waypoint_name}မွာဘယ္ဘက္ေကြ႕ကာ ေရာက္ရွိျပီ"},right:{default:"သင္ သြားလိုေသာ {nth}ခရီးပန္းတိုင္သို႕ ညာဘက္ေကြ႕ကာ ေရာက္ရွိျပီ",upcoming:"သင္ သြားလိုေသာ{nth} ခရီးပန္းတိုင္သို႕ ညာဘက္ေကြ႕ကာ ေရာက္လိမ့္မည္",short:"သင္သြားလိုေသာ ေနရာသို႔ ေရာက္ရိွၿပီ","short-upcoming":"သင္သြားလိုေသာ ေနရာသို႔ ေရာက္လိမ့္မည္",named:"သင္ သည္ {waypoint_name} မွာညာဘက္ေကြ႕ကာ ေရာက္ရွိျပီ"},"sharp left":{default:"သင္ သြားလိုေသာ {nth}ခရီးပန္းတိုင္သို႕ဘယ္ဘက္တြင္ေရာက္ရွိျပီ",upcoming:"သင္ သြားလိုေသာ {nth}ခရီးပန္းတိုင္သို႕ဘယ္ဘက္တြင္ေရာက္ရွိျပီ",short:"သင္သြားလိုေသာ ေနရာသို႔ ေရာက္ရိွၿပီ","short-upcoming":"သင္သြားလိုေသာ ေနရာသို႔ ေရာက္လိမ့္မည္",named:"သင္ သည္ {waypoint_name}မွာဘယ္ဘက္ေကြ႕ကာ ေရာက္ရွိျပီ"},"sharp right":{default:"သင္ သြားလိုေသာ {nth}ခရီးပန္းတိုင္သို႕ ညာဘက္ေကြ႕ကာ ေရာက္ရွိျပီ",upcoming:"သင္ သြားလိုေသာ{nth} ခရီးပန္းတိုင္သို႕ ညာဘက္ေကြ႕ကာ ေရာက္လိမ့္မည္",short:"သင္သြားလိုေသာ ေနရာသို႔ ေရာက္ရိွၿပီ","short-upcoming":"သင္သြားလိုေသာ ေနရာသို႔ ေရာက္လိမ့္မည္",named:"သင္ သည္ {waypoint_name} မွာညာဘက္ေကြ႕ကာ ေရာက္ရွိျပီ"},"slight right":{default:"သင္ သြားလိုေသာ {nth}ခရီးပန္းတိုင္သို႕ ညာဘက္ေကြ႕ကာ ေရာက္ရွိျပီ",upcoming:"သင္ သြားလိုေသာ{nth} ခရီးပန္းတိုင္သို႕ ညာဘက္ေကြ႕ကာ ေရာက္လိမ့္မည္",short:"သင္သြားလိုေသာ ေနရာသို႔ ေရာက္ရိွၿပီ","short-upcoming":"သင္သြားလိုေသာ ေနရာသို႔ ေရာက္လိမ့္မည္",named:"သင္ သည္ {waypoint_name} မွာညာဘက္ေကြ႕ကာ ေရာက္ရွိျပီ"},"slight left":{default:"သင္ သြားလိုေသာ {nth}ခရီးပန္းတိုင္သို႕ဘယ္ဘက္တြင္ေရာက္ရွိျပီ",upcoming:"သင္ သြားလိုေသာ {nth}ခရီးပန္းတိုင္သို႕ဘယ္ဘက္တြင္ေရာက္ရွိျပီ",short:"သင္သြားလိုေသာ ေနရာသို႔ ေရာက္ရွိျပီ","short-upcoming":"သင္သြားလိုေသာ ေနရာသို႔ ေရာက္လိမ့္မည္",named:"သင္ သည္ {waypoint_name}မွာဘယ္ဘက္ေကြ႕ကာ ေရာက္ရွိျပီ"},straight:{default:"သင္ သြားလိုေသာ {nth}ခရီးပန္းတိုင္သို႕တည့္တည့္သြားကာရာက္ရွိျပီ",upcoming:"သင္ သြားလိုေသာ {nth}ခရီးပန္းတိုင္သို႕တည့္တည့္သြားကာရာက္ရွိမည္",short:"သင္သြားလိုေသာ ေနရာသို႔ ေရာက္ရွိျပီ","short-upcoming":"သင္သြားလိုေသာ ေနရာသို႔ ေရာက္လိမ့္မည္",named:"သင္ သည္ {waypoint_name}မွာတည့္တည့္သြားကာ ေရာက္ရွိျပီ"}},continue:{default:{default:"{modifier}ကိုလွည့္ပါ",name:"{way_name}​​ေပၚတြင္ေနရန္ {modifier}ကိုလွည့္ပါ",destination:"{destination}ဆီသို႕ {modifier}ကို လွည္႕ပါ",exit:"{way_name}​​ေပၚသို႕ {modifier}ကိုလွည့္ပါ"},straight:{default:"ေျဖာင္႔ေျဖာင္႔တန္းတန္း ဆက္သြားပါ",name:"{way_name}​​ေပၚတြင္ေနရန္တည္တည့္ဆက္သြာပါ",destination:"{destination}ဆီသို႕ဆက္သြားပါ",distance:"{distance}ေလာက္ တည့္တည့္ ဆက္သြားပါ",namedistance:"{way_name}​​ေပၚတြင္{distance}ေလာက္ဆက္သြားပါ"},"sharp left":{default:"ဘယ္ဘက္ေထာင့္ခ်ိဳးေကြ႕ပါ",name:"{way_name}​ေပၚတြင္ေနရန္ ဘယ္ဘက္ေထာင့္ခ်ိဳးေကြ႕ပါ",destination:"{destination}ဆီသို႕ ဘယ္ဘက္ေထာင့္ခ်ိဳးေကြ႕ပါ"},"sharp right":{default:"ညာဘက္ ေထာင္႔ခ်ိဳးေကြ႕ပါ",name:"{way_name}​ေပၚတြင္ေနရန္ ညာဘက္ေထာင့္ခ်ိဳးေကြ႕ပါ",destination:"{destination}ဆီသို႕ ညာဘက္ေထာင့္ခ်ိဳးေကြ႕ပါ"},"slight left":{default:"ဘယ္ဘက္ အနည္းငယ္ေကြ႕ပါ",name:"{way_name}​ေပၚတြင္ေနရန္ ဘယ္ဘက္အနည္းငယ္ေကြ႕ပါ",destination:"{destination}ဆီသို႕ ဘယ္ဘက္အနည္းငယ္ခ်ိဳးေကြ႕ပါ"},"slight right":{default:"ညာဘက္ အနည္းငယ္ခ်ိဳးေကြ႕ပါ",name:"{way_name}​ေပၚတြင္ေနရန္ ညာဘက္အနည္းငယ္ေကြ႕ပါ",destination:"{destination}ဆီသို႕ ညာဘက္အနည္းငယ္ခ်ိဳးေကြ႕ပါ"},uturn:{default:"ဂ-ေကြ႔ ေကြ႔ပါ",name:"{way_name}လမ္းဘက္သို႕ ဂ-ေကြ႕ေကြ႕ျပီးဆက္သြားပါ",destination:"{destination}ဆီသို႕ ဂေကြ႕ခ်ိဳးေကြ႕ပါ"}},depart:{default:{default:"{direction}သို႕ ဦးတည္ပါ",name:"{direction}ကို {way_name}အေပၚတြင္ ဦးတည္ပါ",namedistance:"{direction}ကို {way_name}အေပၚတြင္{distance}ေလာက္ ဦးတည္ဆက္သြားပါ"}},"end of road":{default:{default:"{modifier}သို႕လွည့္ပါ",name:"{way_name}​​ေပၚသို႕ {modifier}ကိုလွည့္ပါ",destination:"{destination}ဆီသို႕ {modifier}ကို လွည္႕ပါ"},straight:{default:"ေျဖာင္႔ေျဖာင္႔တန္းတန္း ဆက္သြားပါ",name:"{way_name}​​ေပၚသို႕တည့္တည့္ဆက္သြားပါ",destination:"{destination}ဆီသို႕တည့္တည့္ဆက္သြားပါ"},uturn:{default:"လမ္းအဆံုးတြင္ ဂ-ေကြ႕ေကြ႕ပါ",name:"လမ္းအဆံုးတြင္ {way_name}​​ေပၚသို႕ဂ-ေကြ႕ေကြ႕ပါ",destination:"လမ္းအဆံုးတြင္{destination}ဆီသို႕ ဂေကြ႕ခ်ိဳးေကြ႕ပါ"}},fork:{default:{default:"လမ္းဆံုလမ္းခြတြင္ {modifier}ကိုဆက္သြားပါ",name:"{way_name}​​ေပၚသို႕ {modifier}ကိုဆက္သြားပါ",destination:"{destination}ဆီသို႕ {modifier}ကို ဆက္သြားပါ"},"slight left":{default:"လမ္းဆံုလမ္းခြတြင္ဘယ္ဘက္ကိုဆက္သြားပါ",name:"{way_name}​​ေပၚသို႕ဘယ္ဘက္ကိုဆက္သြားပါ",destination:"{destination}ဆီသို႕ဘယ္ဘက္ကို ဆက္သြားပါ"},"slight right":{default:"လမ္းဆံုလမ္းခြတြင္ညာဘက္ကိုဆက္သြားပါ",name:"{way_name}​​ေပၚသို႕ညာဘက္ကိုဆက္သြားပါ",destination:"{destination}ဆီသို႕ညာဘက္ကို ဆက္သြားပါ"},"sharp left":{default:"လမ္းဆံုလမ္းခြတြင္ဘယ္ဘက္ေထာင့္ခ်ိဳးကိုသြားပါ",name:"{way_name}​ေပၚတြင္ေနရန္ ဘယ္ဘက္ေထာင့္ခ်ိဳးယူပါ",destination:"{destination}ဆီသို႕ဘယ္ဘက္ေထာင့္ခ်ိဳး သြားပါ"},"sharp right":{default:"လမ္းဆံုလမ္းခြတြင္ညာဘက္ေထာင့္ခ်ိဳးကိုသြားပါ",name:"{way_name}​ေပၚသို႕ ညာဘက္ေထာင့္ခ်ိဳးယူပါ",destination:"{destination}ဆီသို႕ညာဘက္ေထာင့္ခ်ိဳး သြားပါ"},uturn:{default:"ဂ-ေကြ႔ ေကြ႔ပါ",name:"{way_name}သို႕ဂ-ေကြ႕ေကြ႕ပါ",destination:"{destination}ဆီသို႕ ဂေကြ႕ခ်ိဳးေကြ႕ပါ"}},merge:{default:{default:"{modifier}ကိုလာေရာက္ေပါင္းဆံုပါ",name:"{way_name}​​ေပၚသို႕ {modifier}ကိုလာေရာက္ေပါင္းဆံုပါ",destination:"{destination}ဆီသို႕ {modifier}ကို လာေရာက္ေပါင္းဆံုပါ"},straight:{default:"လာေရာက္ေပါင္းဆံုပါ",name:"{way_name}​​ေပၚသá€
12­á€¯á‚•လာေရာက္ေပါင္းဆံုပါ",destination:"{destination}ဆီသို႕ လာေရာက္ေပါင္းဆံုပါ"},"slight left":{default:"ဘယ္ဘက္သို႕လာေရာက္ေပါင္းဆံုပါ",name:"{way_name}​​ေပၚသို႕ဘယ္ဘက္ကိုလာေရာက္ေပါင္းဆံုပါ",destination:"{destination}ဆီသို႕ဘယ္ဘက္ကို လာေရာက္ေပါင္းဆံုပါ"},"slight right":{default:"ညာဘက္သို႕လာေရာက္ေပါင္းဆံုပါ",name:"{way_name}​​ေပၚသို႕ညာဘက္ကိုလာေရာက္ေပါင္းဆံုပါ",destination:"{destination}ဆီသို႕ညာဘက္ကို လာေရာက္ေပါင္းဆံုပါ"},"sharp left":{default:"ဘယ္ဘက္သို႕လာေရာက္ေပါင္းဆံုပါ",name:"{way_name}​​ေပၚသို႕ဘယ္ဘက္ကိုလာေရာက္ေပါင္းဆံုပါ",destination:"{destination}ဆီသို႕ဘယ္ဘက္ကို လာေရာက္ေပါင္းဆံုပါ"},"sharp right":{default:"ညာဘက္သို႕လာေရာက္ေပါင္းဆံုပါ",name:"{way_name}​​ေပၚသို႕ညာဘက္ကိုလာေရာက္ေပါင္းဆံုပါ",destination:"{destination}ဆီသို႕ညာဘက္ကို လာေရာက္ေပါင္းဆံုပါ"},uturn:{default:"ဂ-ေကြ႔ ေကြ႕ပါ",name:"{way_name}လမ္းဘက္သို႔ ဂ-ေကြ႔ ေကြ႔ပါ ",destination:"{destination}ဆီသို႕ ဂေကြ႕ခ်ိဳးေကြ႕ပါ"}},"new name":{default:{default:"{modifier}ကိုဆက္သြားပါ",name:"{way_name}​​ေပၚသို႕ {modifier}ကိုဆက္သြားပါ",destination:"{destination}ဆီသို႕ {modifier}ကို ဆက္သြားပါ"},straight:{default:"ေျဖာင္႔ေျဖာင္႔တန္းတန္း ဆက္သြားပါ",name:"{way_name}​​ေပၚသို႕ဆက္သြားပါ",destination:"{destination}ဆီသို႕ဆက္သြားပါ"},"sharp left":{default:"ဘယ္ဘက္ေထာင့္ခ်ိဳးယူပါ",name:"{way_name}​ေပၚတြင္ေနရန္ ဘယ္ဘက္ေထာင့္ခ်ိဳးယူပါ",destination:"{destination}ဆီသို႕ဘယ္ဘက္ေထာင့္ခ်ိဳး သြားပါ"},"sharp right":{default:"ညာဘက္ ေထာင္႔ခ်ိဳးယူပါ",name:"{way_name}​ေပၚသို႕ ညာဘက္ေထာင့္ခ်ိဳးယူပါ",destination:"{destination}ဆီသို႕ညာဘက္ေထာင့္ခ်ိဳး သြားပါ"},"slight left":{default:"ဘယ္ဘက္ အနည္းငယ္ဆက္သြားပါ",name:"{way_name}​​ေပၚသို႕ဘယ္ဘက္ အနည္းငယ္ဆက္သြားပါ",destination:"{destination}ဆီသို႕ဘယ္ဘက္အနည္းငယ္ဆက္သြားပါ"},"slight right":{default:"ညာဘက္ အနည္းငယ္ဆက္သြားပါ",name:"{way_name}​​ေပၚသို႕ညာဘက္ အနည္းငယ္ဆက္သြားပါ",destination:"{destination}ဆီသို႕ညာဘက္အနည္းငယ္ဆက္သြားပါ"},uturn:{default:"ဂ-ေကြ႔ ေကြ႔ပါ",name:"{way_name}လမ္းဘက္သို႔ ဂ-ေကြ႔ ေကြ႔ပါ",destination:"{destination}ဆီသို႕ ဂေကြ႕ခ်ိဳးေကြ႕ပါ"}},notification:{default:{default:"{modifier}ကိုဆက္သြားပါ",name:"{way_name}​​ေပၚသို႕ {modifier}ကိုဆက္သြားပါ",destination:"{destination}ဆီသို႕ {modifier}ကို ဆက္သြားပါ"},uturn:{default:"ဂ-ေကြ႔ ေကြ႔ပါ",name:"{way_name}လမ္းဘက္သို႔ ဂ-ေကြ႔ ေကြ႔ပါ",destination:"{destination}ဆီသို႕ ဂေကြ႕ခ်ိဳးေကြ႕ပါ"}},"off ramp":{default:{default:"ခ်ဥ္းကပ္လမ္းကိုယူပါ",name:"{way_name}​ေပၚသို႕ခ်ဥ္းကပ္လမ္းကိုယူပါ",destination:"{destination}ဆီသို႕ ခ်ဥ္းကပ္လမ္းကိုယူပါ",exit:"{exit}ကို ယူပါ",exit_destination:"{destination}ဆီသို႕ {exit} ကိုယူပါ"},left:{default:"ဘယ္ဘက္သို႕ခ်ဥ္းကပ္လမ္းကိုယူပါ",name:"{way_name}​ေပၚသို႕ဘယ္ဘက္ ​ေပၚတြင္ခ်ဥ္းကပ္လမ္းကိုယူပါ",destination:"{destination}ဆီသို႕ ဘယ္ဘက္​ေပၚတြင္ခ်ဥ္းကပ္လမ္းကိုယူပါ",exit:"ဘယ္ဘက္တြင္{exit}ကို ယူပါ",exit_destination:"{destination}ဆီသို႕ဘယ္ဘက္မွ {exit} ကိုယူပါ"},right:{default:"ညာဘက္သို႕ခ်ဥ္းကပ္လမ္းကိုယူပါ",name:"{way_name}​ေပၚသို႕ညာဘက္ ​ေပၚတြင္ခ်ဥ္းကပ္လမ္းကိုယူပါ",destination:"{destination}ဆီသို႕ ညာဘက္​ေပၚတြင္ခ်ဥ္းကပ္လမ္းကိုယူပါ",exit:"ညာဘက္တြင္{exit}ကို ယူပါ",exit_destination:"{destination}ဆီသို႕ညာဘက္မွ {exit} ကိုယူပါ"},"sharp left":{default:"ဘယ္ဘက္သို႕ခ်ဥ္းကပ္လမ္းကိုယူပါ",name:"{way_name}​ေပၚသို႕ဘယ္ဘက္ ​ေပၚတြင္ခ်ဥ္းကပ္လမ္းကိုယူပါ",destination:"{destination}ဆီသို႕ ဘယ္ဘက္​ေပၚတြင္ခ်ဥ္းကပ္လမ္းကိုယူပါ",exit:"ဘယ္ဘက္တြင္{exit}ကို ယူပါ",exit_destination:"{destination}ဆီသို႕ဘယ္ဘက္မွ {exit} ကိုယူပါ"},"sharp right":{default:"ညာဘက္သို႕ခ်ဥ္းကပ္လမ္းကိုယူပါ",name:"{way_name}​ေပၚသို႕ညာဘက္ ​ေပၚတြင္ခ်ဥ္းကပ္လမ္းကိုယူပါ",destination:"{destination}ဆီသို႕ ညာဘက္​ေပၚတြင္ခ်ဥ္းကပ္လမ္းကိုယူပါ",exit:"ညာဘက္တြင္{exit}ကို ယူပါ",exit_destination:"{destination}ဆီသို႕ညာဘက္မွ {exit} ကိုယူပါ"},"slight left":{default:"ဘယ္ဘက္သို႕ခ်ဥ္းကပ္လမ္းကိုယူပါ",name:"{way_name}​ေပၚသို႕ဘယ္ဘက္ ​ေပၚတြင္ခ်ဥ္းကပ္လမ္းကိုယူပါ",destination:"{destination}ဆီသို႕ ဘယ္ဘက္​ေပၚတြင္ခ်ဥ္းကပ္လမ္းကိုယူပါ",exit:"ဘယ္ဘက္တြင္{exit}ကို ယူပါ",exit_destination:"{destination}ဆီသို႕ဘယ္ဘက္မွ {exit} ကိုယူပါ"},"slight right":{default:"ညာဘက္သို႕ခ်ဥ္းကပ္လမ္းကိုယူပါ",name:"{way_name}​ေပၚသို႕ညာဘက္ ​ေပၚတြင္ခ်ဥ္းကပ္လမ္းကိုယူပါ",destination:"{destination}ဆီသို႕ ညာဘက္​ေပၚတြင္ခ်ဥ္းကပ္လမ္းကိုယူပါ",exit:"ညာဘက္တြင္{exit}ကို ယူပါ",exit_destination:"{destination}ဆီသို႕ညာဘက္မွ {exit} ကိုယူပါ"}},"on ramp":{default:{default:"ခ်ဥ္းကပ္လမ္းကိုယူပါ",name:"{way_name}​ေပၚသို႕ခ်ဥ္းကပ္လမ္းကိုယူပါ",destination:"{destination}ဆီသို႕ ခ်ဥ္းကပ္လမ္းကိုယူပါ"},left:{default:"ဘယ္ဘက္သို႕ခ်ဥ္းကပ္လမ္းကိုယူပါ",name:"{way_name}​ေပၚသို႕ဘယ္ဘက္ ​ေပၚတြင္ခ်ဥ္းကပ္လမ္းကိုယူပါ",destination:"{destination}ဆီသို႕ ဘယ္ဘက္​ေပၚတြင္ခ်ဥ္းကပ္လမ္းကိုယူပါ"},right:{default:"ညာဘက္သို႕ခ်ဥ္းကပ္လမ္းကိုယူပါ",name:"{way_name}​ေပၚသို႕ညာဘက္ ​ေပၚတြင္ခ်ဥ္းကပ္လမ္းကိုယူပါ",destination:"{destination}ဆီသို႕ ညာဘက္​ေပၚတြင္ခ်ဥ္းကပ္လမ္းကိုယူပါ"},"sharp left":{default:"ဘယ္ဘက္သို႕ခ်ဥ္းကပ္လမ္းကိုယူပါ",name:"{way_name}​ေပၚသို႕ဘယ္ဘက္ ​ေပၚတြင္ခ်ဥ္းကပ္လမ္းကိုယူပါ",destination:"{destination}ဆီသို႕ ဘယ္ဘက္​ေပၚတြင္ခ်ဥ္းကပ္လမ္းကိုယူပါ"},"sharp right":{default:"ညာဘက္သို႕ခ်ဥ္းကပ္လမ္းကိုယူပါ",name:"{way_name}​ေပၚသို႕ညာဘက္ ​ေပၚတြင္ခ်ဥ္းကပ္လမ္းကိုယူပါ",destination:"{destination}ဆီသို႕ ညာဘက္​ေပၚတြင္ခ်ဥ္းကပ္လမ္းကိုယူပါ"},"slight left":{default:"ဘယ္ဘက္သို႕ခ်ဥ္းကပ္လမ္းကိုယူပါ",name:"{way_name}​ေပၚသို႕ဘယ္ဘက္ ​ေပၚတြင္ခ်ဥ္းကပ္လမ္းကိုယူပါ",destination:"{destination}ဆီသို႕ ဘယ္ဘက္​ေပၚတြင္ခ်ဥ္းကပ္လမ္းကိုယူပါ"},"slight right":{default:"ညာဘက္သို႕ခ်ဥ္းကပ္လမ္းကိုယူပါ",name:"{way_name}​ေပၚသို႕ညာဘက္ ​ေပၚတြင္ခ်ဥ္းကပ္လမ္းကိုယူပါ",destination:"{destination}ဆီသို႕ ညာဘက္​ေပၚတြင္ခ်ဥ္းကပ္လမ္းကိုယူပါ"}},rotary:{default:{default:{default:"အဝိုင္းပတ္သို႕ဝင္ပါ",name:"{way_name}ေပၚသို႔အဝိုင္းပတ္လမ္းမွထြက္ပါ ",destination:"{destination}ေပၚသို႔အဝိုင္းပတ္လမ္းမွထြက္ပါ"},name:{default:"{rotary_name}သို႕ဝင္ပါ",name:"{rotary_name}အဝိုင္းပတ္ဝင္ျပီး{way_name}ေပၚသို႕ထြက္ပါ",destination:"{rotary_name}အဝိုင္းပတ္ဝင္ျပီး{destination}ဆီသို႕ထြက္ပါ"},exit:{default:"အဝိုင္းပတ္ဝင္ျပီး{exit_number}ကိုယူကာျပန္ထြက္ပါ",name:"အဝိုင္းပတ္သို႕ဝင္ျပီး{exit_number}ကိုယူကာ{way_name}ေပၚသို႕ထြက္ပါ",destination:"အဝိုင္းပတ္ဝင္ျပီး{exit_number}ကိုယူကာ{destination}ဆီသို႕ထြက္ပါ"},name_exit:{default:"{rotary_name}ကိုဝင္ျပီး {exit_number}ကိုယူကာထြက္ပါ",name:"{rotary_name}ကိုဝင္ျပီး{exit_number}ကိုယူကာ{way_name}ေပၚသို႕ထြက္ပါ",destination:"{rotary_name}ဝင္ျပီး{exit_number}ကိုယူကာ{destination}ဆီသို႕ထြက္ပါ"}}},roundabout:{default:{exit:{default:"{exit_number}ေပၚသို႔အဝိုင္းပတ္လမ္းမွထြက္ပါ",name:"အဝိုင္းပတ္ဝင္ျပီး{exit_number}ကိုယူကာ{way_name}ေပၚသို႕ထြက္ပါ",destination:"အဝိုင္းပတ္ဝင္ျပီး{exit_number}ကိုယူကာ{destination}ဆီသို႕ထြက္ပါ"},default:{default:"အဝိုင္းပတ္ဝင္ပါ",name:"{way_name}ေပၚသို႔အဝိုင္းပတ္လမ္းမွထြက္ပါ",destination:"{destination}ေပၚသို႔အဝိုင္းပတ္လမ္းမွထြက္ပါ"}}},"roundabout turn":{default:{default:"{modifier}ကိုလွည့္ပါ ",name:"{modifier}​ေပၚသို{way_name}ကိုဆက္သြားပါ ",destination:"{modifier}
12ဆီသို႕{destination}ကို ဆက္သြားပါ "},left:{default:"ဘယ္ဘက္သို႕ျပန္လွည္႔ပါ",name:"{way_name}​ေပၚသို႕ဘယ္ဘက္ကိုဆက္သြားပါ ",destination:"{destination}ဆီသို႕ဘယ္ဘက္မွ ေကြ႔ပါ"},right:{default:"ညာဘက္သို႔ျပန္လွည္႔ပါ",name:"{way_name}​ေပၚသို႕ညာဘက္ကိုလာေရာက္ေပါင္းဆံုပါ ",destination:"{destination}ညာဘက္သို႔ ေကြ႔ပါ"},straight:{default:"ေျဖာင္႔ေျဖာင္႔တန္းတန္း ဆက္သြားပါ",name:"{way_name}​​ေပၚသို႕တည့္တည့္ဆက္သြားပါ",destination:"{destination}ဆီသို႕တည့္တည့္ဆက္သြားပါ"}},"exit roundabout":{default:{default:"အဝိုင္းပတ္လမ္းမွထြက္ပါ",name:"{way_name}ေပၚသို႔အဝိုင္းပတ္လမ္းမွထြက္ပါ",destination:"ဦးတည္အဝိုင္းပတ္လမ္းမွထြက္ပါ{destination}"}},"exit rotary":{default:{default:"အဝိုင္းပတ္လမ္းမွထြက္ပါဦးတည္အဝိုင္းပတ္လမ္းမွထြက္ပါ",name:"{way_name}ေပၚသို႔အဝိုင္းပတ္လမ္းမွထြက္ပါ",destination:"ဦးတည္အဝိုင္းပတ္လမ္းမွထြက္ပါ{destination}"}},turn:{default:{default:"{modifier}ကိုလွည့္ပါ ",name:"{modifier}​ေပၚသို{way_name}ကိုဆက္သြားပါ ",destination:"{modifier}ဆီသို႕{destination}ကို ဆက္သြားပါ "},left:{default:"ဘယ္ဘက္သို႕ျပန္လွည္႔ပါ",name:"{way_name}​ေပၚသို႕ဘယ္ဘက္ကိုဆက္သြားပါ ",destination:"{destination}ဘယ္ဘက္သို႔ ေကြ႔ပါ"},right:{default:"ညာဘက္သို႔ျပန္လွည္႔ပါ",name:"{way_name}​ေပၚသို႕ညာဘက္ကိုလာေရာက္ေပါင္းဆံုပါ ",destination:"{destination}ညာဘက္သို႔ ေကြ႔ပါ"},straight:{default:"တည္႔တည္႔သြားပါ",name:"{way_name}",destination:"{destination}ဆီသို႕တည့္တည့္သြားပါ"}},"use lane":{no_lanes:{default:"ေျဖာင္႔ေျဖာင္႔တန္းတန္း ဆက္သြားပါ"},default:{default:"{lane_instruction}"}}}}},{}],36:[function(e,t,i){t.exports={meta:{capitalizeFirstLetter:!0},v5:{constants:{ordinalize:{1:"1e",2:"2e",3:"3e",4:"4e",5:"5e",6:"6e",7:"7e",8:"8e",9:"9e",10:"10e"},direction:{north:"noord",northeast:"noordoost",east:"oost",southeast:"zuidoost",south:"zuid",southwest:"zuidwest",west:"west",northwest:"noordwest"},modifier:{left:"links",right:"rechts","sharp left":"scherpe bocht naar links","sharp right":"scherpe bocht naar rechts","slight left":"iets naar links","slight right":"iets naar rechts",straight:"rechtdoor",uturn:"omkeren"},lanes:{xo:"Rechts aanhouden",ox:"Links aanhouden",xox:"In het midden blijven",oxo:"Links of rechts blijven"}},modes:{ferry:{default:"Neem de veerpont",name:"Neem de veerpont {way_name}",destination:"Neem de veerpont richting {destination}"}},phrase:{"two linked by distance":"{instruction_one}, dan na {distance}, {instruction_two}","two linked":"{instruction_one}, daarna {instruction_two}","one in distance":"Over {distance}, {instruction_one}","name and ref":"{name} ({ref})","exit with number":"afslag {exit}"},arrive:{default:{default:"Je bent gearriveerd op de {nth} bestemming.",upcoming:"U arriveert op de {nth} bestemming",short:"U bent gearriveerd","short-upcoming":"U zult aankomen",named:"U bent gearriveerd bij {waypoint_name}"},left:{default:"Je bent gearriveerd. De {nth} bestemming bevindt zich links.",upcoming:"Uw {nth} bestemming bevindt zich aan de linkerkant",short:"U bent gearriveerd","short-upcoming":"U zult aankomen",named:"U bent gearriveerd bij {waypoint_name}, de bestemming is aan de linkerkant"},right:{default:"Je bent gearriveerd. De {nth} bestemming bevindt zich rechts.",upcoming:"Uw {nth} bestemming bevindt zich aan de rechterkant",short:"U bent gearriveerd","short-upcoming":"U zult aankomen",named:"U bent gearriveerd bij {waypoint_name}, de bestemming is aan de  rechterkant"},"sharp left":{default:"Je bent gearriveerd. De {nth} bestemming bevindt zich links.",upcoming:"Uw {nth} bestemming bevindt zich aan de linkerkant",short:"U bent gearriveerd","short-upcoming":"U zult aankomen",named:"U bent gearriveerd bij {waypoint_name}, de bestemming is aan de linkerkant"},"sharp right":{default:"Je bent gearriveerd. De {nth} bestemming bevindt zich rechts.",upcoming:"Uw {nth} bestemming bevindt zich aan de rechterkant",short:"U bent gearriveerd","short-upcoming":"U zult aankomen",named:"U bent gearriveerd bij {waypoint_name},  de bestemming is aan de rechterkant"},"slight right":{default:"Je bent gearriveerd. De {nth} bestemming bevindt zich rechts.",upcoming:"Uw {nth} bestemming bevindt zich aan de rechterkant",short:"U bent gearriveerd","short-upcoming":"U zult aankomen",named:"U bent gearriveerd bij {waypoint_name},  de bestemming is aan de rechterkant"},"slight left":{default:"Je bent gearriveerd. De {nth} bestemming bevindt zich links.",upcoming:"Uw {nth} bestemming bevindt zich aan de linkerkant",short:"U bent gearriveerd","short-upcoming":"U zult aankomen",named:"U bent gearriveerd bij {waypoint_name},  de bestemming is aan de linkerkant"},straight:{default:"Je bent gearriveerd. De {nth} bestemming bevindt zich voor je.",upcoming:"Uw {nth} bestemming is recht voor u",short:"U bent gearriveerd","short-upcoming":"U zult aankomen",named:"U bent gearriveerd bij {waypoint_name}, de bestemming is recht voor u"}},continue:{default:{default:"Ga {modifier}",name:"Sla {modifier} om op {way_name} te blijven",destination:"Ga {modifier} richting {destination}",exit:"Ga {modifier} naar {way_name}"},straight:{default:"Ga rechtdoor",name:"Blijf rechtdoor gaan op {way_name}",destination:"Ga rechtdoor richting {destination}",distance:"Ga rechtdoor voor {distance}",namedistance:"Ga verder op {way_name} voor {distance}"},"sharp left":{default:"Linksaf",name:"Sla scherp links af om op {way_name} te blijven",destination:"Linksaf richting {destination}"},"sharp right":{default:"Rechtsaf",name:"Sla scherp rechts af om op {way_name} te blijven",destination:"Rechtsaf richting {destination}"},"slight left":{default:"Ga links",name:"Links afbuigen om op {way_name} te blijven",destination:"Rechts afbuigen om op {destination} te blijven"},"slight right":{default:"Rechts afbuigen",name:"Rechts afbuigen om op {way_name} te blijven",destination:"Rechts afbuigen richting {destination}"},uturn:{default:"Keer om",name:"Draai om en ga verder op {way_name}",destination:"Keer om richting {destination}"}},depart:{default:{default:"Vertrek in {direction}elijke richting",name:"Neem {way_name} in {direction}elijke richting",namedistance:"Ga richting {direction} op {way_name} voor {distance}"}},"end of road":{default:{default:"Ga {modifier}",name:"Ga {modifier} naar {way_name}",destination:"Ga {modifier} richting {destination}"},straight:{default:"Ga in de aangegeven richting",name:"Ga naar {way_name}",destination:"Ga richting {destination}"},uturn:{default:"Keer om",name:"Keer om naar {way_name}",destination:"Keer om richting {destination}"}},fork:{default:{default:"Ga {modifier} op de splitsing",name:"Houd {modifier} aan, tot {way_name}",destination:"Houd {modifier}, in de richting van {destination}"},"slight left":{default:"Links aanhouden op de splitsing",name:"Houd links aan, tot {way_name}",destination:"Houd links aan, richting {destination}"},"slight right":{default:"Rechts aanhouden op de splitsing",name:"Houd rechts aan, tot {way_name}",destination:"Houd rechts aan, richting {destination}"},"sharp left":{default:"Neem bij de splitsing, een scherpe bocht, naar links ",name:"Neem een scherpe bocht naar links, tot aan {way_name}",destination:"Neem een scherpe bocht naar links, richting {destination}"},"sharp right":{default:"Neem  op de splitsing, een scherpe bocht, naar rechts",name:"Neem een scherpe bocht naar rechts, tot aan {way_name}",destination:"Neem een scherpe bocht naar rechts, richting {destination}"},uturn:{default:"Keer om",name:"Keer om naar {way_name}",destination:"Keer om richting {destination}"}},merge:{default:{default:"Bij de splitsing {modifier}",name:"Bij de splitsing {modifier} naar {way_name}",destination:"Bij de splitsing {modifier} richting {destination}"},straight:{default:"Samenvoegen",name:"Ga verder op {way_name}",destination:"Ga verder richting {destination}"},"slight left":{default:"Bij de splitsing links aanhouden",name:"Bij de splitsing links aanhouden naar {way_name}",destination:"Bij de splitsing links aanhouden richting {destination}"},"slight right":{default:"Bij de splitsing rechts aanhouden",name:"Bij de splitsing rechts aanhouden naar {way_name}",destination:"Bij de splitsing rechts aanhouden richting {destination}"},"sharp left":{default:"Bij de splitsing linksaf",name:"Bij de splitsing linksaf naar {way_name}",destination:"Bij de splitsing linksaf richting {destination}"},"sharp right":{default:"Bij de splitsing rechtsaf",name:"Bij de splitsing rechtsaf naar {way_name}",destination:"Bij de splitsing rechtsaf richting {destination}"},uturn:{default:"Keer om",name:"Keer om naar {way_name}",destination:"Keer om richting {destination}"}},"new name":{default:{default:"Ga {modifier}",name:"Ga {modifier} naar {way_name}",destination:"Ga {modifier} richting {destination}"},straight:{default:"Ga in de aangegeven richting",name:"Ga rechtdoor naar {way_name}",destination:"Ga rechtdoor richting {destination}"},"sharp left":{default:"Neem een scherpe bocht, naar links",name:"Linksaf naar {way_name}",destination:"Linksaf richting {destination}"},"sharp right":{default:"Neem een scherpe bocht, naar rechts",name:"Rechtsaf naar {way_name}",destination:"Rechtsaf richting {destination}"},"slight left":{default:"Links aanhouden",name:"Links aanhouden naar {way_name}",destination:"Links aanhouden richting {destination}"},"slight right":{default:"Rechts aanhouden",name:"Rechts aanhouden naar {way_name}",destination:"Rechts aanhouden richting {destination}"},uturn:{default:"Keer om",name:"Keer om naar {way_name}",destination:"Keer om richting {destination}"}},notification:{default:{default:"Ga {modifier}",name:"Ga {modifier} naar {way_name}",destination:"Ga {modifier} richting {destination}"},uturn:{default:"Keer om",name:"Keer om naar {way_name}",destination:"Keer om richting {destination}"}},"off ramp":{default:{default:"Neem de afrit",name:"Neem de afrit naar {way_name}",destination:"Neem de afrit richting {destination}",exit:"Neem afslag {exit}",exit_destination:"Neem afslag {exit} richting {destination}"},left:{default:"Neem de afrit links",name:"Neem de afrit links naar {way_name}",destination:"Neem de afrit links richting {destination}",exit:"Neem afslag {exit} aan de linkerkant",exit_destination:"Neem afslag {exit} aan de linkerkant richting {destination}"},right:{default:"Neem de afrit rechts",name:"Neem de afrit rechts naar {way_name}",destination:"Neem de afrit rechts richting {destination}",exit:"Neem afslag {exit} aan de rechterkant",exit_destination:"Neem afslag {exit} aan de rechterkant richting {destination}"},"sharp left":{default:"Neem de afrit links",name:"Neem de afrit links naar {way_name}",destination:"Neem de afrit links richting {destination}",exit:"Neem afslag {exit} aan de linkerkant",exit_destination:"Neem afslag {exit} aan de linkerkant richting {destination}"},"sharp right":{default:"Neem de afrit rechts",name:"Neem de afrit rechts naar {way_name}",destination:"Neem de afrit rechts richting {destination}",exit:"Neem afslag {exit} aan de rechterkant",exit_destination:"Neem afslag {exit} aan de rechterkant richting {destination}"},"slight left":{default:"Neem de afrit links",name:"Neem de afrit links naar {way_name}",destination:"Neem de afrit links richting {destination}",exit:"Neem afslag {exit} aan de linkerkant",exit_destination:"Neem afslag {exit} aan de linkerkant richting {destination}"},"slight right":{default:"Neem de afrit rechts",name:"Neem de afrit rechts naar {way_name}",destination:"Neem de afrit rechts richting {destination}",exit:"Neem afslag {exit} aan de rechterkant",exit_destination:"Neem afslag {exit} aan de rechterkant richting {destination}"}},"on ramp":{default:{default:"Neem de oprit",name:"Neem de oprit naar {way_name}",destination:"Neem de oprit richting {destination}"},left:{default:"Neem de oprit links",name:"Neem de oprit links naar {way_name}",destination:"Neem de oprit links richting {destination}"},right:{default:"Neem de oprit rechts",name:"Neem de oprit rechts naar {way_name}",destination:"Neem de oprit rechts richting {destination}"},"sharp left":{default:"Neem de oprit links",name:"Neem de oprit links naar {way_name}",destination:"Neem de oprit links richting {destination}"},"sharp right":{default:"Neem de oprit rechts",name:"Neem de oprit rechts naar {way_name}",destination:"Neem de oprit rechts richting {destination}"},"slight left":{default:"Neem de oprit links",name:"Neem de oprit links naar {way_name}",destination:"Neem de oprit links richting {destination}"},"slight right":{default:"Neem de oprit rechts",name:"Neem de oprit rechts naar {way_name}",destination:"Neem de oprit rechts richting {destination}"}},rotary:{default:{default:{default:"Betreedt de rotonde",name:"Betreedt rotonde en sla af op {way_name}",destination:"Betreedt rotonde en sla af richting {destination}"},name:{default:"Ga het knooppunt {rotary_name} op",name:"Verlaat het knooppunt {rotary_name} naar {way_name}",destination:"Verlaat het knooppunt {rotary_name} richting {destination}"},exit:{default:"Betreedt rotonde en neem afslag {exit_number}",name:"Betreedt rotonde en neem afslag {exit_number} naar {way_name}",destination:"Betreedt rotonde en neem afslag {exit_number} richting {destination}"},name_exit:{default:"Ga het knooppunt {rotary_name} op en neem afslag {exit_number}",name:"Ga het knooppunt {rotary_name} op en neem afslag {exit_number} naar {way_name}",destination:"Ga het knooppunt {rotary_name} op en neem afslag {exit_number} richting {destination}"}}},roundabout:{default:{exit:{default:"Betreedt rotonde en neem afslag {exit_number}",name:"Betreedt rotonde en neem afslag {exit_number} naar {way_name}",destination:"Betreedt rotonde en neem afslag {exit_number} richting {destination}"},default:{default:"Betreedt de rotonde",name:"Betreedt rotonde en sla af op {way_name}",destination:"Betreedt rotonde en sla af richting {destination}"}}},"roundabout turn":{default:{default:"Ga {modifier}",name:"Ga {modifier} naar {way_name}",destination:"Ga {modifier} richting {destination}"},left:{default:"Ga linksaf",name:"Ga linksaf naar {way_name}",destination:"Ga linksaf richting {destination}"},right:{default:"Ga rechtsaf",name:"Ga rechtsaf naar {way_name}",destination:"Ga rechtsaf richting {destination}"},straight:{default:"Ga in de aangegeven richting",name:"Ga naar {way_name}",destination:"Ga richting {destination}"}},"exit roundabout":{default:{default:"Verlaat de rotonde",name:"Verlaat de rotonde en ga verder op {way_name}",destination:"Verlaat de rotonde richting {destination}"}},"exit rotary":{default:{default:"Verlaat de rotonde",name:"Verlaat de rotonde en ga verder op {way_name}",destination:"Verlaat de rotonde richting {destination}"}},turn:{default:{default:"Ga {modifier}",name:"Ga {modifier} naar {way_name}",destination:"Ga {modifier} richting {destination}"},left:{default:"Ga linksaf",name:"Ga linksaf naar {way_name}",destination:"Ga linksaf richting {destination}"},right:{default:"Ga rechtsaf",name:"Ga rechtsaf naar {way_name}",destination:"Ga rechtsaf richting {destination}"},straight:{default:"Ga rechtdoor",name:"Ga rechtdoor naar {way_name}",destination:"Ga rechtdoor richting {destination}"}},"use lane":{no_lanes:{default:"Rechtdoor"},default:{default:"{lane_instruct
12ion}"}}}}},{}],37:[function(e,t,i){t.exports={meta:{capitalizeFirstLetter:!0},v5:{constants:{ordinalize:{1:"1.",2:"2.",3:"3.",4:"4.",5:"5.",6:"6.",7:"7.",8:"8.",9:"9.",10:"10."},direction:{north:"nord",northeast:"nordøst",east:"øst",southeast:"sørøst",south:"sør",southwest:"sørvest",west:"vest",northwest:"nordvest"},modifier:{left:"venstre",right:"høyre","sharp left":"skarp venstre","sharp right":"skarp høyre","slight left":"litt til venstre","slight right":"litt til høyre",straight:"rett frem",uturn:"U-sving"},lanes:{xo:"Hold til høyre",ox:"Hold til venstre",xox:"Hold deg i midten",oxo:"Hold til venstre eller høyre"}},modes:{ferry:{default:"Ta ferja",name:"Ta ferja {way_name}",destination:"Ta ferja til {destination}"}},phrase:{"two linked by distance":"{instruction_one}, deretter {instruction_two} om {distance}","two linked":"{instruction_one}, deretter {instruction_two}","one in distance":"Om {distance}, {instruction_one}","name and ref":"{name} ({ref})","exit with number":"avkjørsel {exit}"},arrive:{default:{default:"Du har ankommet din {nth} destinasjon",upcoming:"Du vil ankomme din {nth} destinasjon",short:"Du har ankommet","short-upcoming":"Du vil ankomme",named:"Du har ankommet {waypoint_name}"},left:{default:"Du har ankommet din {nth} destinasjon, på din venstre side",upcoming:"Du vil ankomme din {nth} destinasjon, på din venstre side",short:"Du har ankommet","short-upcoming":"Du vil ankomme",named:"Du har ankommet {waypoint_name}, på din venstre side"},right:{default:"Du har ankommet din {nth} destinasjon, på din høyre side",upcoming:"Du vil ankomme din {nth} destinasjon, på din høyre side",short:"Du har ankommet","short-upcoming":"Du vil ankomme",named:"Du har ankommet {waypoint_name}, på din høyre side"},"sharp left":{default:"Du har ankommet din {nth} destinasjon, på din venstre side",upcoming:"Du vil ankomme din {nth} destinasjon, på din venstre side",short:"Du har ankommet","short-upcoming":"Du vil ankomme",named:"Du har ankommet {waypoint_name}, på din venstre side"},"sharp right":{default:"Du har ankommet din {nth} destinasjon, på din høyre side",upcoming:"Du vil ankomme din {nth} destinasjon, på din høyre side",short:"Du har ankommet","short-upcoming":"Du vil ankomme",named:"Du har ankommet {waypoint_name}, på din høyre side"},"slight right":{default:"Du har ankommet din {nth} destinasjon, på din høyre side",upcoming:"Du vil ankomme din {nth} destinasjon, på din høyre side",short:"Du har ankommet","short-upcoming":"Du vil ankomme",named:"Du har ankommet {waypoint_name}, på din høyre side"},"slight left":{default:"Du har ankommet din {nth} destinasjon, på din venstre side",upcoming:"Du vil ankomme din {nth} destinasjon, på din venstre side",short:"Du har ankommet","short-upcoming":"Du vil ankomme",named:"Du har ankommet {waypoint_name}, på din venstre side"},straight:{default:"Du har ankommet din {nth} destinasjon, rett forut",upcoming:"Du vil ankomme din {nth} destinasjon, rett forut",short:"Du har ankommet","short-upcoming":"Du vil ankomme",named:"Du har ankommet {waypoint_name}, rett forut"}},continue:{default:{default:"Ta til {modifier}",name:"Ta til {modifier} for å bli værende på {way_name}",destination:"Ta til {modifier} mot {destination}",exit:"Ta til {modifier} inn på {way_name}"},straight:{default:"Fortsett rett frem",name:"Fortsett rett frem for å bli værende på {way_name}",destination:"Fortsett mot {destination}",distance:"Fortsett rett frem, {distance} ",namedistance:"Fortsett på {way_name}, {distance}"},"sharp left":{default:"Sving skarpt til venstre",name:"Sving skarpt til venstre for å bli værende på {way_name}",destination:"Sving skarpt til venstre mot {destination}"},"sharp right":{default:"Sving skarpt til høyre",name:"Sving skarpt til høyre for å bli værende på {way_name}",destination:"Sving skarpt mot {destination}"},"slight left":{default:"Sving svakt til venstre",name:"Sving svakt til venstre for å bli værende på {way_name}",destination:"Sving svakt til venstre mot {destination}"},"slight right":{default:"Sving svakt til høyre",name:"Sving svakt til høyre for å bli værende på {way_name}",destination:"Sving svakt til høyre mot {destination}"},uturn:{default:"Ta en U-sving",name:"Ta en U-sving og fortsett på {way_name}",destination:"Ta en U-sving mot {destination}"}},depart:{default:{default:"Kjør i retning {direction}",name:"Kjør i retning {direction} på {way_name}",namedistance:"Kjør i retning {direction} på {way_name}, {distance}"}},"end of road":{default:{default:"Sving {modifier}",name:"Ta til {modifier} inn på {way_name}",destination:"Sving {modifier} mot {destination}"},straight:{default:"Fortsett rett frem",name:"Fortsett rett frem til  {way_name}",destination:"Fortsett rett frem mot {destination}"},uturn:{default:"Ta en U-sving i enden av veien",name:"Ta en U-sving til {way_name} i enden av veien",destination:"Ta en U-sving mot {destination} i enden av veien"}},fork:{default:{default:"Hold til {modifier} i veikrysset",name:"Hold til {modifier} inn på {way_name}",destination:"Hold til {modifier} mot {destination}"},"slight left":{default:"Hold til venstre i veikrysset",name:"Hold til venstre inn på {way_name}",destination:"Hold til venstre mot {destination}"},"slight right":{default:"Hold til høyre i veikrysset",name:"Hold til høyre inn på {way_name}",destination:"Hold til høyre mot {destination}"},"sharp left":{default:"Sving skarpt til venstre i veikrysset",name:"Sving skarpt til venstre inn på {way_name}",destination:"Sving skarpt til venstre mot {destination}"},"sharp right":{default:"Sving skarpt til høyre i veikrysset",name:"Sving skarpt til høyre inn på {way_name}",destination:"Svings skarpt til høyre mot {destination}"},uturn:{default:"Ta en U-sving",name:"Ta en U-sving til {way_name}",destination:"Ta en U-sving mot {destination}"}},merge:{default:{default:"Hold {modifier} kjørefelt",name:"Hold {modifier} kjørefelt inn på {way_name}",destination:"Hold {modifier} kjørefelt mot {destination}"},straight:{default:"Hold kjørefelt",name:"Hold kjørefelt inn på {way_name}",destination:"Hold kjørefelt mot {destination}"},"slight left":{default:"Hold venstre kjørefelt",name:"Hold venstre kjørefelt inn på {way_name}",destination:"Hold venstre kjørefelt mot {destination}"},"slight right":{default:"Hold høyre kjørefelt",name:"Hold høyre kjørefelt inn på {way_name}",destination:"Hold høyre kjørefelt mot {destination}"},"sharp left":{default:"Hold venstre kjørefelt",name:"Hold venstre kjørefelt inn på {way_name}",destination:"Hold venstre kjørefelt mot {destination}"},"sharp right":{default:"Hold høyre kjørefelt",name:"Hold høyre kjørefelt inn på {way_name}",destination:"Hold høyre kjørefelt mot {destination}"},uturn:{default:"Ta en U-sving",name:"Ta en U-sving til {way_name}",destination:"Ta en U-sving mot {destination}"}},"new name":{default:{default:"Fortsett {modifier}",name:"Fortsett {modifier} til {way_name}",destination:"Fortsett {modifier} mot  {destination}"},straight:{default:"Fortsett rett frem",name:"Fortsett inn på {way_name}",destination:"Fortsett mot {destination}"},"sharp left":{default:"Sving skarpt til venstre",name:"Sving skarpt til venstre inn på {way_name}",destination:"Sving skarpt til venstre mot {destination}"},"sharp right":{default:"Sving skarpt til høyre",name:"Sving skarpt til høyre inn på {way_name}",destination:"Svings skarpt til høyre mot {destination}"},"slight left":{default:"Fortsett litt mot venstre",name:"Fortsett litt mot venstre til {way_name}",destination:"Fortsett litt mot venstre mot {destination}"},"slight right":{default:"Fortsett litt mot høyre",name:"Fortsett litt mot høyre til {way_name}",destination:"Fortsett litt mot høyre mot {destination}"},uturn:{default:"Ta en U-sving",name:"Ta en U-sving til {way_name}",destination:"Ta en U-sving mot {destination}"}},notification:{default:{default:"Fortsett {modifier}",name:"Fortsett {modifier} til {way_name}",destination:"Fortsett {modifier} mot  {destination}"},uturn:{default:"Ta en U-sving",name:"Ta en U-sving til {way_name}",destination:"Ta en U-sving mot {destination}"}},"off ramp":{default:{default:"Ta avkjørselen",name:"Ta avkjørselen inn på {way_name}",destination:"Ta avkjørselen mot {destination}",exit:"Ta avkjørsel {exit}",exit_destination:"Ta avkjørsel {exit} mot {destination}"},left:{default:"Ta avkjørselen på venstre side",name:"Ta avkjørselen på venstre side inn på {way_name}",destination:"Ta avkjørselen på venstre side mot {destination}",exit:"Ta avkjørsel {exit} på venstre side",exit_destination:"Ta avkjørsel {exit} på venstre side mot {destination}"},right:{default:"Ta avkjørselen på høyre side",name:"Ta avkjørselen på høyre side inn på {way_name}",destination:"Ta avkjørselen på høyre side mot {destination}",exit:"Ta avkjørsel {exit} på høyre side",exit_destination:"Ta avkjørsel {exit} på høyre side mot {destination}"},"sharp left":{default:"Ta avkjørselen på venstre side",name:"Ta avkjørselen på venstre side inn på {way_name}",destination:"Ta avkjørselen på venstre side mot {destination}",exit:"Ta avkjørsel {exit} på venstre side",exit_destination:"Ta avkjørsel {exit} på venstre side mot {destination}"},"sharp right":{default:"Ta avkjørselen på høyre side",name:"Ta avkjørselen på høyre side inn på {way_name}",destination:"Ta avkjørselen på høyre side mot {destination}",exit:"Ta avkjørsel {exit} på høyre side",exit_destination:"Ta avkjørsel {exit} på høyre side mot {destination}"},"slight left":{default:"Ta avkjørselen på venstre side",name:"Ta avkjørselen på venstre side inn på {way_name}",destination:"Ta avkjørselen på venstre side mot {destination}",exit:"Ta avkjørsel {exit} på venstre side",exit_destination:"Ta avkjørsel {exit} på venstre side mot {destination}"},"slight right":{default:"Ta avkjørselen på høyre side",name:"Ta avkjørselen på høyre side inn på {way_name}",destination:"Ta avkjørselen på høyre side mot {destination}",exit:"Ta avkjørsel {exit} på høyre side",exit_destination:"Ta avkjørsel {exit} på høyre side mot {destination}"}},"on ramp":{default:{default:"Ta avkjørselen",name:"Ta avkjørselen inn på {way_name}",destination:"Ta avkjørselen mot {destination}"},left:{default:"Ta avkjørselen på venstre side",name:"Ta avkjørselen på venstre side inn på {way_name}",destination:"Ta avkjørselen på venstre side mot {destination}"},right:{default:"Ta avkjørselen på høyre side",name:"Ta avkjørselen på høyre side inn på {way_name}",destination:"Ta avkjørselen på høyre side mot {destination}"},"sharp left":{default:"Ta avkjørselen på venstre side",name:"Ta avkjørselen på venstre side inn på {way_name}",destination:"Ta avkjørselen på venstre side mot {destination}"},"sharp right":{default:"Ta avkjørselen på høyre side",name:"Ta avkjørselen på høyre side inn på {way_name}",destination:"Ta avkjørselen på høyre side mot {destination}"},"slight left":{default:"Ta avkjørselen på venstre side",name:"Ta avkjørselen på venstre side inn på {way_name}",destination:"Ta avkjørselen på venstre side mot {destination}"},"slight right":{default:"Ta avkjørselen på høyre side",name:"Ta avkjørselen på høyre side inn på {way_name}",destination:"Ta avkjørselen på høyre side mot {destination}"}},rotary:{default:{default:{default:"Kjør inn i rundkjøringen",name:"Kjør inn i rundkjøringen og deretter ut på {way_name}",destination:"Kjør inn i rundkjøringen og deretter ut mot {destination}"},name:{default:"Kjør inn i {rotary_name}",name:"Kjør inn i {rotary_name} og deretter ut på {way_name}",destination:"Kjør inn i {rotary_name} og deretter ut mot {destination}"},exit:{default:"Kjør inn i rundkjøringen og ta {exit_number} avkjørsel",name:"Kjør inn i rundkjøringen og ta {exit_number} avkjørsel ut på {way_name}",destination:"Kjør inn i rundkjøringen og ta {exit_number} avkjørsel ut mot {destination} "},name_exit:{default:"Kjør inn i {rotary_name} og ta {exit_number} avkjørsel",name:"Kjør inn i {rotary_name} og ta {exit_number} avkjørsel inn på {way_name}",destination:"Kjør inn i {rotary_name} og ta {exit_number} avkjørsel mot {destination}"}}},roundabout:{default:{exit:{default:"Kjør inn i rundkjøringen og ta {exit_number} avkjørsel",name:"Kjør inn i rundkjøringen og ta {exit_number} avkjørsel inn på {way_name}",destination:"Kjør inn i rundkjøringen og ta {exit_number} avkjørsel ut mot {destination} "},default:{default:"Kjør inn i rundkjøringen",name:"Kjør inn i rundkjøringen og deretter ut på {way_name}",destination:"Kjør inn i rundkjøringen og deretter ut mot {destination}"}}},"roundabout turn":{default:{default:"Ta en {modifier}",name:"Ta en {modifier} inn på {way_name}",destination:"Ta en {modifier} mot {destination}"},left:{default:"Sving til venstre",name:"Sving til venstre inn på {way_name}",destination:"Sving til venstre mot {destination}"},right:{default:"Sving til høyre",name:"Sving til høyre inn på {way_name}",destination:"Sving til høyre mot {destination}"},straight:{default:"Fortsett rett frem",name:"Fortsett rett frem til  {way_name}",destination:"Fortsett rett frem mot {destination}"}},"exit roundabout":{default:{default:"Kjør ut av rundkjøringen",name:"Kjør ut av rundkjøringen og inn på {way_name}",destination:"Kjør ut av rundkjøringen mot {destination}"}},"exit rotary":{default:{default:"Kjør ut av rundkjøringen",name:"Kjør ut av rundkjøringen og inn på {way_name}",destination:"Kjør ut av rundkjøringen mot {destination}"}},turn:{default:{default:"Ta en {modifier}",name:"Ta en {modifier} inn på {way_name}",destination:"Ta en {modifier} mot {destination}"},left:{default:"Sving til venstre",name:"Sving til venstre inn på {way_name}",destination:"Sving til venstre mot {destination}"},right:{default:"Sving til høyre",name:"Sving til høyre inn på {way_name}",destination:"Sving til høyre mot {destination}"},straight:{default:"Kjør rett frem",name:"Kjør rett frem og inn på {way_name}",destination:"Kjør rett frem mot {destination}"}},"use lane":{no_lanes:{default:"Fortsett rett frem"},default:{default:"{lane_instruction}"}}}}},{}],38:[function(e,t,i){t.exports={meta:{capitalizeFirstLetter:!0
vendor: 14,859 bytes, line 12
12},v5:{constants:{ordinalize:{1:"1.",2:"2.",3:"3.",4:"4.",5:"5.",6:"6.",7:"7.",8:"8.",9:"9.",10:"10."},direction:{north:"północ",northeast:"północny wschód",east:"wschód",southeast:"południowy wschód",south:"południe",southwest:"południowy zachód",west:"zachód",northwest:"północny zachód"},modifier:{left:"lewo",right:"prawo","sharp left":"ostro w lewo","sharp right":"ostro w prawo","slight left":"łagodnie w lewo","slight right":"łagodnie w prawo",straight:"prosto",uturn:"zawróć"},lanes:{xo:"Trzymaj się prawej strony",ox:"Trzymaj się lewej strony",xox:"Trzymaj się środka",oxo:"Trzymaj się lewej lub prawej strony"}},modes:{ferry:{default:"Weź prom",name:"Weź prom {way_name}",destination:"Weź prom w kierunku {destination}"}},phrase:{"two linked by distance":"{instruction_one}, następnie za {distance} {instruction_two}","two linked":"{instruction_one}, następnie {instruction_two}","one in distance":"Za {distance}, {instruction_one}","name and ref":"{name} ({ref})","exit with number":"exit {exit}"},arrive:{default:{default:"Dojechano do miejsca docelowego {nth}",upcoming:"Dojechano do miejsca docelowego {nth}",short:"Dojechano do miejsca docelowego {nth}","short-upcoming":"Dojechano do miejsca docelowego {nth}",named:"Dojechano do {waypoint_name}"},left:{default:"Dojechano do miejsca docelowego {nth}, po lewej stronie",upcoming:"Dojechano do miejsca docelowego {nth}, po lewej stronie",short:"Dojechano do miejsca docelowego {nth}","short-upcoming":"Dojechano do miejsca docelowego {nth}",named:"Dojechano do {waypoint_name}, po lewej stronie"},right:{default:"Dojechano do miejsca docelowego {nth}, po prawej stronie",upcoming:"Dojechano do miejsca docelowego {nth}, po prawej stronie",short:"Dojechano do miejsca docelowego {nth}","short-upcoming":"Dojechano do miejsca docelowego {nth}",named:"Dojechano do {waypoint_name}, po prawej stronie"},"sharp left":{default:"Dojechano do miejsca docelowego {nth}, po lewej stronie",upcoming:"Dojechano do miejsca docelowego {nth}, po lewej stronie",short:"Dojechano do miejsca docelowego {nth}","short-upcoming":"Dojechano do miejsca docelowego {nth}",named:"Dojechano do {waypoint_name}, po lewej stronie"},"sharp right":{default:"Dojechano do miejsca docelowego {nth}, po prawej stronie",upcoming:"Dojechano do miejsca docelowego {nth}, po prawej stronie",short:"Dojechano do miejsca docelowego {nth}","short-upcoming":"Dojechano do miejsca docelowego {nth}",named:"Dojechano do {waypoint_name}, po prawej stronie"},"slight right":{default:"Dojechano do miejsca docelowego {nth}, po prawej stronie",upcoming:"Dojechano do miejsca docelowego {nth}, po prawej stronie",short:"Dojechano do miejsca docelowego {nth}","short-upcoming":"Dojechano do miejsca docelowego {nth}",named:"Dojechano do {waypoint_name}, po prawej stronie"},"slight left":{default:"Dojechano do miejsca docelowego {nth}, po lewej stronie",upcoming:"Dojechano do miejsca docelowego {nth}, po lewej stronie",short:"Dojechano do miejsca docelowego {nth}","short-upcoming":"Dojechano do miejsca docelowego {nth}",named:"Dojechano do {waypoint_name}, po lewej stronie"},straight:{default:"Dojechano do miejsca docelowego {nth} , prosto",upcoming:"Dojechano do miejsca docelowego {nth} , prosto",short:"Dojechano do miejsca docelowego {nth}","short-upcoming":"Dojechano do miejsca docelowego {nth}",named:"Dojechano do {waypoint_name}, prosto"}},continue:{default:{default:"Skręć {modifier}",name:"Skręć w {modifier}, aby pozostać na {way_name}",destination:"Skręć {modifier} w kierunku {destination}",exit:"Skręć {modifier} na {way_name}"},straight:{default:"Kontynuuj prosto",name:"Jedź dalej prosto, aby pozostać na {way_name}",destination:"Kontynuuj w kierunku {destination}",distance:"Jedź dalej prosto przez {distance}",namedistance:"Jedź dalej {way_name} przez {distance}"},"sharp left":{default:"Skręć ostro w lewo",name:"Skręć w lewo w ostry zakręt, aby pozostać na {way_name}",destination:"Skręć ostro w lewo w kierunku {destination}"},"sharp right":{default:"Skręć ostro w prawo",name:"Skręć w prawo w ostry zakręt, aby pozostać na {way_name}",destination:"Skręć ostro w prawo w kierunku {destination}"},"slight left":{default:"Skręć w lewo w łagodny zakręt",name:"Skręć w lewo w łagodny zakręt, aby pozostać na {way_name}",destination:"Skręć w lewo w łagodny zakręt na {destination}"},"slight right":{default:"Skręć w prawo w łagodny zakręt",name:"Skręć w prawo w łagodny zakręt, aby pozostać na {way_name}",destination:"Skręć w prawo w łagodny zakręt na {destination}"},uturn:{default:"Zawróć",name:"Zawróć i jedź dalej {way_name}",destination:"Zawróć w kierunku {destination}"}},depart:{default:{default:"Kieruj się {direction}",name:"Kieruj się {direction} na {way_name}",namedistance:"Head {direction} on {way_name} for {distance}"}},"end of road":{default:{default:"Skręć {modifier}",name:"Skręć {modifier} na {way_name}",destination:"Skręć {modifier} w kierunku {destination}"},straight:{default:"Kontynuuj prosto",name:"Kontynuuj prosto na {way_name}",destination:"Kontynuuj prosto w kierunku {destination}"},uturn:{default:"Zawróć na końcu ulicy",name:"Zawróć na końcu ulicy na {way_name}",destination:"Zawróć na końcu ulicy w kierunku {destination}"}},fork:{default:{default:"Na rozwidleniu trzymaj się {modifier}",name:"Na rozwidleniu trzymaj się {modifier} na {way_name}",destination:"Na rozwidleniu trzymaj się {modifier} w kierunku {destination}"},"slight left":{default:"Na rozwidleniu trzymaj się lewej strony",name:"Na rozwidleniu trzymaj się lewej strony w {way_name}",destination:"Na rozwidleniu trzymaj się lewej strony w kierunku {destination}"},"slight right":{default:"Na rozwidleniu trzymaj się prawej strony",name:"Na rozwidleniu trzymaj się prawej strony na {way_name}",destination:"Na rozwidleniu trzymaj się prawej strony w kierunku {destination}"},"sharp left":{default:"Na rozwidleniu skręć ostro w lewo",name:"Skręć ostro w lewo w {way_name}",destination:"Skręć ostro w lewo w kierunku {destination}"},"sharp right":{default:"Na rozwidleniu skręć ostro w prawo",name:"Skręć ostro w prawo na {way_name}",destination:"Skręć ostro w prawo w kierunku {destination}"},uturn:{default:"Zawróć",name:"Zawróć na {way_name}",destination:"Zawróć w kierunku {destination}"}},merge:{default:{default:"Włącz się {modifier}",name:"Włącz się {modifier} na {way_name}",destination:"Włącz się {modifier} w kierunku {destination}"},straight:{default:"Włącz się prosto",name:"Włącz się prosto na {way_name}",destination:"Włącz się prosto w kierunku {destination}"},"slight left":{default:"Włącz się z lewej strony",name:"Włącz się z lewej strony na {way_name}",destination:"Włącz się z lewej strony w kierunku {destination}"},"slight right":{default:"Włącz się z prawej strony",name:"Włącz się z prawej strony na {way_name}",destination:"Włącz się z prawej strony w kierunku {destination}"},"sharp left":{default:"Włącz się z lewej strony",name:"Włącz się z lewej strony na {way_name}",destination:"Włącz się z lewej strony w kierunku {destination}"},"sharp right":{default:"Włącz się z prawej strony",name:"Włącz się z prawej strony na {way_name}",destination:"Włącz się z prawej strony w kierunku {destination}"},uturn:{default:"Zawróć",name:"Zawróć na {way_name}",destination:"Zawróć w kierunku {destination}"}},"new name":{default:{default:"Kontynuuj {modifier}",name:"Kontynuuj {modifier} na {way_name}",destination:"Kontynuuj {modifier} w kierunku {destination}"},straight:{default:"Kontynuuj prosto",name:"Kontynuuj na {way_name}",destination:"Kontynuuj w kierunku {destination}"},"sharp left":{default:"Skręć ostro w lewo",name:"Skręć ostro w lewo w {way_name}",destination:"Skręć ostro w lewo w kierunku {destination}"},"sharp right":{default:"Skręć ostro w prawo",name:"Skręć ostro w prawo na {way_name}",destination:"Skręć ostro w prawo w kierunku {destination}"},"slight left":{default:"Kontynuuj łagodnie w lewo",name:"Kontynuuj łagodnie w lewo na {way_name}",destination:"Kontynuuj łagodnie w lewo w kierunku {destination}"},"slight right":{default:"Kontynuuj łagodnie w prawo",name:"Kontynuuj łagodnie w prawo na {way_name}",destination:"Kontynuuj łagodnie w prawo w kierunku {destination}"},uturn:{default:"Zawróć",name:"Zawróć na {way_name}",destination:"Zawróć w kierunku {destination}"}},notification:{default:{default:"Kontynuuj {modifier}",name:"Kontynuuj {modifier} na {way_name}",destination:"Kontynuuj {modifier} w kierunku {destination}"},uturn:{default:"Zawróć",name:"Zawróć na {way_name}",destination:"Zawróć w kierunku {destination}"}},"off ramp":{default:{default:"Zjedź",name:"Weź zjazd na {way_name}",destination:"Weź zjazd w kierunku {destination}",exit:"Zjedź zjazdem {exit}",exit_destination:"Zjedź zjazdem {exit} na {destination}"},left:{default:"Weź zjazd po lewej",name:"Weź zjazd po lewej na {way_name}",destination:"Weź zjazd po lewej w kierunku {destination}",exit:"Zjedź zjazdem {exit} po lewej stronie",exit_destination:"Zjedź zjazdem {exit} po lewej stronie na {destination}"},right:{default:"Weź zjazd po prawej",name:"Weź zjazd po prawej na {way_name}",destination:"Weź zjazd po prawej w kierunku {destination}",exit:"Zjedź zjazdem {exit} po prawej stronie",exit_destination:"Zjedź zjazdem {exit} po prawej stronie na {destination}"},"sharp left":{default:"Weź zjazd po lewej",name:"Weź zjazd po lewej na {way_name}",destination:"Weź zjazd po lewej w kierunku {destination}",exit:"Zjedź zjazdem {exit} po lewej stronie",exit_destination:"Zjedź zjazdem {exit} po lewej stronie na {destination}"},"sharp right":{default:"Weź zjazd po prawej",name:"Weź zjazd po prawej na {way_name}",destination:"Weź zjazd po prawej w kierunku {destination}",exit:"Zjedź zjazdem {exit} po prawej stronie",exit_destination:"Zjedź zjazdem {exit} po prawej stronie na {destination}"},"slight left":{default:"Weź zjazd po lewej",name:"Weź zjazd po lewej na {way_name}",destination:"Weź zjazd po lewej w kierunku {destination}",exit:"Zjedź zjazdem {exit} po lewej stronie",exit_destination:"Zjedź zjazdem {exit} po lewej stronie na {destination}"},"slight right":{default:"Weź zjazd po prawej",name:"Weź zjazd po prawej na {way_name}",destination:"Weź zjazd po prawej w kierunku {destination}",exit:"Zjedź zjazdem {exit} po prawej stronie",exit_destination:"Zjedź zjazdem {exit} po prawej stronie na {destination}"}},"on ramp":{default:{default:"Weź zjazd",name:"Weź zjazd na {way_name}",destination:"Weź zjazd w kierunku {destination}"},left:{default:"Weź zjazd po lewej",name:"Weź zjazd po lewej na {way_name}",destination:"Weź zjazd po lewej w kierunku {destination}"},right:{default:"Weź zjazd po prawej",name:"Weź zjazd po prawej na {way_name}",destination:"Weź zjazd po prawej w kierunku {destination}"},"sharp left":{default:"Weź zjazd po lewej",name:"Weź zjazd po lewej na {way_name}",destination:"Weź zjazd po lewej w kierunku {destination}"},"sharp right":{default:"Weź zjazd po prawej",name:"Weź zjazd po prawej na {way_name}",destination:"Weź zjazd po prawej w kierunku {destination}"},"slight left":{default:"Weź zjazd po lewej",name:"Weź zjazd po lewej na {way_name}",destination:"Weź zjazd po lewej w kierunku {destination}"},"slight right":{default:"Weź zjazd po prawej",name:"Weź zjazd po prawej na {way_name}",destination:"Weź zjazd po prawej w kierunku {destination}"}},rotary:{default:{default:{default:"Wjedź na rondo",name:"Wjedź na rondo i skręć na {way_name}",destination:"Wjedź na rondo i skręć w kierunku {destination}"},name:{default:"Wjedź na {rotary_name}",name:"Wjedź na {rotary_name} i skręć na {way_name}",destination:"Wjedź na {rotary_name} i skręć w kierunku {destination}"},exit:{default:"Wjedź na rondo i wyjedź {exit_number} zjazdem",name:"Wjedź na rondo i wyjedź {exit_number} zjazdem na {way_name}",destination:"Wjedź na rondo i wyjedź {exit_number} zjazdem w kierunku {destination}"},name_exit:{default:"Wjedź na {rotary_name} i wyjedź {exit_number} zjazdem",name:"Wjedź na {rotary_name} i wyjedź {exit_number} zjazdem na {way_name}",destination:"Wjedź na {rotary_name} i wyjedź {exit_number} zjazdem w kierunku {destination}"}}},roundabout:{default:{exit:{default:"Wjedź na rondo i wyjedź {exit_number} zjazdem",name:"Wjedź na rondo i wyjedź {exit_number} zjazdem na {way_name}",destination:"Wjedź na rondo i wyjedź {exit_number} zjazdem w kierunku {destination}"},default:{default:"Wjedź na rondo",name:"Wjedź na rondo i wyjedź na {way_name}",destination:"Wjedź na rondo i wyjedź w kierunku {destination}"}}},"roundabout turn":{default:{default:"{modifier}",name:"{modifier} na {way_name}",destination:"{modifier} w kierunku {destination}"},left:{default:"Skręć w lewo",name:"Skręć w lewo na {way_name}",destination:"Skręć w lewo w kierunku {destination}"},right:{default:"Skręć w prawo",name:"Skręć w prawo na {way_name}",destination:"Skręć w prawo w kierunku {destination}"},straight:{default:"Kontynuuj prosto",name:"Kontynuuj prosto na {way_name}",destination:"Kontynuuj prosto w kierunku {destination}"}},"exit roundabout":{default:{default:"{modifier}",name:"{modifier} na {way_name}",destination:"{modifier} w kierunku {destination}"},left:{default:"Skręć w lewo",name:"Skręć w lewo na {way_name}",destination:"Skręć w lewo w kierunku {destination}"},right:{default:"Skręć w prawo",name:"Skręć w prawo na {way_name}",destination:"Skręć w prawo w kierunku {destination}"},straight:{default:"Kontynuuj prosto",name:"Kontynuuj prosto na {way_name}",destination:"Kontynuuj prosto w kierunku {destination}"}},"exit rotary":{default:{default:"{modifier}",name:"{modifier} na {way_name}",destination:"{modifier} w kierunku {destination}"},left:{default:"Skręć w lewo",name:"Skręć w lewo na {way_name}",destination:"Skręć w lewo w kierunku {destination}"},right:{default:"Skręć w prawo",name:"Skręć w prawo na {way_name}",destination:"Skręć w prawo w kierunku {destination}"},straight:{default:"Jedź prosto",name:"Jedź prosto na {way_name}",destination:"Jedź prosto w kierunku {destination}"}},turn:{default:{default:"{modifier}",name:"{modifier} na {way_name}",destination:"{modifier} w kierunku {destination}"},left:{default:"Skręć w lewo",name:"Skręć w lewo na {way_name}",destination:"Skręć w lewo w kierunku {destination}"},right:{default:"Skręć w prawo",name:"Skręć w prawo na {way_name}",destination:"Skręć w prawo w kierunku {destination}"},straight:{default:"Jedź prosto",name:"Jedź prosto na {way_name}",destination:"Jedź prosto w kierunku {destination}"}},"use lane":{no_lanes:{default:"Kontynuuj prosto"},default:{default:"{lane_instruction}"}}}}},{}],39:[function(
vendor: 14,716 bytes, line 12
12e,t,i){t.exports={meta:{capitalizeFirstLetter:!0},v5:{constants:{ordinalize:{1:"1º",2:"2º",3:"3º",4:"4º",5:"5º",6:"6º",7:"7º",8:"8º",9:"9º",10:"10º"},direction:{north:"norte",northeast:"nordeste",east:"leste",southeast:"sudeste",south:"sul",southwest:"sudoeste",west:"oeste",northwest:"noroeste"},modifier:{left:"à esquerda",right:"à direita","sharp left":"fechada à esquerda","sharp right":"fechada à direita","slight left":"suave à esquerda","slight right":"suave à direita",straight:"em frente",uturn:"retorno"},lanes:{xo:"Mantenha-se à direita",ox:"Mantenha-se à esquerda",xox:"Mantenha-se ao centro",oxo:"Mantenha-se à esquerda ou direita"}},modes:{ferry:{default:"Pegue a balsa",name:"Pegue a balsa {way_name}",destination:"Pegue a balsa sentido {destination}"}},phrase:{"two linked by distance":"{instruction_one}, então, em {distance}, {instruction_two}","two linked":"{instruction_one}, então {instruction_two}","one in distance":"Em {distance}, {instruction_one}","name and ref":"{name} ({ref})","exit with number":"saída {exit}"},arrive:{default:{default:"Você chegou ao seu {nth} destino",upcoming:"Você chegará ao seu {nth} destino",short:"Você chegou","short-upcoming":"Você vai chegar",named:"Você chegou a {waypoint_name}"},left:{default:"Você chegou ao seu {nth} destino, à esquerda",upcoming:"Você chegará ao seu {nth} destino, à esquerda",short:"Você chegou","short-upcoming":"Você vai chegar",named:"Você chegou {waypoint_name}, à esquerda"},right:{default:"Você chegou ao seu {nth} destino, à direita",upcoming:"Você chegará ao seu {nth} destino, à direita",short:"Você chegou","short-upcoming":"Você vai chegar",named:"Você chegou {waypoint_name}, à direita"},"sharp left":{default:"Você chegou ao seu {nth} destino, à esquerda",upcoming:"Você chegará ao seu {nth} destino, à esquerda",short:"Você chegou","short-upcoming":"Você vai chegar",named:"Você chegou {waypoint_name}, à esquerda"},"sharp right":{default:"Você chegou ao seu {nth} destino, à direita",upcoming:"Você chegará ao seu {nth} destino, à direita",short:"Você chegou","short-upcoming":"Você vai chegar",named:"Você chegou {waypoint_name}, à direita"},"slight right":{default:"Você chegou ao seu {nth} destino, à direita",upcoming:"Você chegará ao seu {nth} destino, à direita",short:"Você chegou","short-upcoming":"Você vai chegar",named:"Você chegou {waypoint_name}, à direita"},"slight left":{default:"Você chegou ao seu {nth} destino, à esquerda",upcoming:"Você chegará ao seu {nth} destino, à esquerda",short:"Você chegou","short-upcoming":"Você vai chegar",named:"Você chegou {waypoint_name}, à esquerda"},straight:{default:"Você chegou ao seu {nth} destino, em frente",upcoming:"Você vai chegar ao seu {nth} destino, em frente",short:"Você chegou","short-upcoming":"Você vai chegar",named:"You have arrived at {waypoint_name}, straight ahead"}},continue:{default:{default:"Vire {modifier}",name:"Vire {modifier} para manter-se na {way_name}",destination:"Vire {modifier} sentido {destination}",exit:"Vire {modifier} em {way_name}"},straight:{default:"Continue em frente",name:"Continue em frente para manter-se na {way_name}",destination:"Continue em direção à {destination}",distance:"Continue em frente por {distance}",namedistance:"Continue na {way_name} por {distance}"},"sharp left":{default:"Faça uma curva fechada a esquerda",name:"Faça uma curva fechada a esquerda para manter-se na {way_name}",destination:"Faça uma curva fechada a esquerda sentido {destination}"},"sharp right":{default:"Faça uma curva fechada a direita",name:"Faça uma curva fechada a direita para manter-se na {way_name}",destination:"Faça uma curva fechada a direita sentido {destination}"},"slight left":{default:"Faça uma curva suave a esquerda",name:"Faça uma curva suave a esquerda para manter-se na {way_name}",destination:"Faça uma curva suave a esquerda em direção a {destination}"},"slight right":{default:"Faça uma curva suave a direita",name:"Faça uma curva suave a direita para manter-se na {way_name}",destination:"Faça uma curva suave a direita em direção a {destination}"},uturn:{default:"Faça o retorno",name:"Faça o retorno e continue em {way_name}",destination:"Faça o retorno sentido {destination}"}},depart:{default:{default:"Siga {direction}",name:"Siga {direction} em {way_name}",namedistance:"Siga {direction} na {way_name} por {distance}"}},"end of road":{default:{default:"Vire {modifier}",name:"Vire {modifier} em {way_name}",destination:"Vire {modifier} sentido {destination}"},straight:{default:"Continue em frente",name:"Continue em frente em {way_name}",destination:"Continue em frente sentido {destination}"},uturn:{default:"Faça o retorno no fim da rua",name:"Faça o retorno em {way_name} no fim da rua",destination:"Faça o retorno sentido {destination} no fim da rua"}},fork:{default:{default:"Mantenha-se {modifier} na bifurcação",name:"Mantenha-se {modifier} na bifurcação em {way_name}",destination:"Mantenha-se {modifier} na bifurcação sentido {destination}"},"slight left":{default:"Mantenha-se à esquerda na bifurcação",name:"Mantenha-se à esquerda na bifurcação em {way_name}",destination:"Mantenha-se à esquerda na bifurcação sentido {destination}"},"slight right":{default:"Mantenha-se à direita na bifurcação",name:"Mantenha-se à direita na bifurcação em {way_name}",destination:"Mantenha-se à direita na bifurcação sentido {destination}"},"sharp left":{default:"Faça uma curva fechada à esquerda na bifurcação",name:"Faça uma curva fechada à esquerda em {way_name}",destination:"Faça uma curva fechada à esquerda sentido {destination}"},"sharp right":{default:"Faça uma curva fechada à direita na bifurcação",name:"Faça uma curva fechada à direita em {way_name}",destination:"Faça uma curva fechada à direita sentido {destination}"},uturn:{default:"Faça o retorno",name:"Faça o retorno em {way_name}",destination:"Faça o retorno sentido {destination}"}},merge:{default:{default:"Entre {modifier}",name:"Entre {modifier} na {way_name}",destination:"Entre {modifier} em direção à {destination}"},straight:{default:"Mesclar",name:"Entre reto na {way_name}",destination:"Entre reto em direção à {destination}"},"slight left":{default:"Entre à esquerda",name:"Entre à esquerda na {way_name}",destination:"Entre à esquerda em direção à {destination}"},"slight right":{default:"Entre à direita",name:"Entre à direita na {way_name}",destination:"Entre à direita em direção à {destination}"},"sharp left":{default:"Entre à esquerda",name:"Entre à esquerda na {way_name}",destination:"Entre à esquerda em direção à {destination}"},"sharp right":{default:"Entre à direita",name:"Entre à direita na {way_name}",destination:"Entre à direita em direção à {destination}"},uturn:{default:"Faça o retorno",name:"Faça o retorno em {way_name}",destination:"Faça o retorno sentido {destination}"}},"new name":{default:{default:"Continue {modifier}",name:"Continue {modifier} em {way_name}",destination:"Continue {modifier} sentido {destination}"},straight:{default:"Continue em frente",name:"Continue em {way_name}",destination:"Continue em direção à {destination}"},"sharp left":{default:"Faça uma curva fechada à esquerda",name:"Faça uma curva fechada à esquerda em {way_name}",destination:"Faça uma curva fechada à esquerda sentido {destination}"},"sharp right":{default:"Faça uma curva fechada à direita",name:"Faça uma curva fechada à direita em {way_name}",destination:"Faça uma curva fechada à direita sentido {destination}"},"slight left":{default:"Continue ligeiramente à esquerda",name:"Continue ligeiramente à esquerda em {way_name}",destination:"Continue ligeiramente à esquerda sentido {destination}"},"slight right":{default:"Continue ligeiramente à direita",name:"Continue ligeiramente à direita em {way_name}",destination:"Continue ligeiramente à direita sentido {destination}"},uturn:{default:"Faça o retorno",name:"Faça o retorno em {way_name}",destination:"Faça o retorno sentido {destination}"}},notification:{default:{default:"Continue {modifier}",name:"Continue {modifier} em {way_name}",destination:"Continue {modifier} sentido {destination}"},uturn:{default:"Faça o retorno",name:"Faça o retorno em {way_name}",destination:"Faça o retorno sentido {destination}"}},"off ramp":{default:{default:"Pegue a rampa",name:"Pegue a rampa em {way_name}",destination:"Pegue a rampa sentido {destination}",exit:"Pegue a saída {exit}",exit_destination:"Pegue a saída {exit} em direção à {destination}"},left:{default:"Pegue a rampa à esquerda",name:"Pegue a rampa à esquerda em {way_name}",destination:"Pegue a rampa à esquerda sentido {destination}",exit:"Pegue a saída {exit} à esquerda",exit_destination:"Pegue a saída {exit}  à esquerda em direção à {destination}"},right:{default:"Pegue a rampa à direita",name:"Pegue a rampa à direita em {way_name}",destination:"Pegue a rampa à direita sentido {destination}",exit:"Pegue a saída {exit} à direita",exit_destination:"Pegue a saída {exit} à direita em direção à {destination}"},"sharp left":{default:"Pegue a rampa à esquerda",name:"Pegue a rampa à esquerda em {way_name}",destination:"Pegue a rampa à esquerda sentido {destination}",exit:"Pegue a saída {exit} à esquerda",exit_destination:"Pegue a saída {exit}  à esquerda em direção à {destination}"},"sharp right":{default:"Pegue a rampa à direita",name:"Pegue a rampa à direita em {way_name}",destination:"Pegue a rampa à direita sentido {destination}",exit:"Pegue a saída {exit} à direita",exit_destination:"Pegue a saída {exit} à direita em direção à {destination}"},"slight left":{default:"Pegue a rampa à esquerda",name:"Pegue a rampa à esquerda em {way_name}",destination:"Pegue a rampa à esquerda sentido {destination}",exit:"Pegue a saída {exit} à esquerda",exit_destination:"Pegue a saída {exit}  à esquerda em direção à {destination}"},"slight right":{default:"Pegue a rampa à direita",name:"Pegue a rampa à direita em {way_name}",destination:"Pegue a rampa à direita sentido {destination}",exit:"Pegue a saída {exit} à direita",exit_destination:"Pegue a saída {exit} à direita em direção à {destination}"}},"on ramp":{default:{default:"Pegue a rampa",name:"Pegue a rampa em {way_name}",destination:"Pegue a rampa sentido {destination}"},left:{default:"Pegue a rampa à esquerda",name:"Pegue a rampa à esquerda em {way_name}",destination:"Pegue a rampa à esquerda sentido {destination}"},right:{default:"Pegue a rampa à direita",name:"Pegue a rampa à direita em {way_name}",destination:"Pegue a rampa à direita sentid {destination}"},"sharp left":{default:"Pegue a rampa à esquerda",name:"Pegue a rampa à esquerda em {way_name}",destination:"Pegue a rampa à esquerda sentido {destination}"},"sharp right":{default:"Pegue a rampa à direita",name:"Pegue a rampa à direita em {way_name}",destination:"Pegue a rampa à direita sentido {destination}"},"slight left":{default:"Pegue a rampa à esquerda",name:"Pegue a rampa à esquerda em {way_name}",destination:"Pegue a rampa à esquerda sentido {destination}"},"slight right":{default:"Pegue a rampa à direita",name:"Pegue a rampa à direita em {way_name}",destination:"Pegue a rampa à direita sentido {destination}"}},rotary:{default:{default:{default:"Entre na rotatória",name:"Entre na rotatória e saia na {way_name}",destination:"Entre na rotatória e saia sentido {destination}"},name:{default:"Entre em {rotary_name}",name:"Entre em {rotary_name} e saia em {way_name}",destination:"Entre em {rotary_name} e saia sentido {destination}"},exit:{default:"Entre na rotatória e pegue a {exit_number} saída",name:"Entre na rotatória e pegue a {exit_number} saída na {way_name}",destination:"Entre na rotatória e pegue a {exit_number} saída sentido {destination}"},name_exit:{default:"Entre em {rotary_name} e saia na {exit_number} saída",name:"Entre em {rotary_name} e saia na {exit_number} saída em {way_name}",destination:"Entre em {rotary_name} e saia na {exit_number} saída sentido {destination}"}}},roundabout:{default:{exit:{default:"Entre na rotatória e pegue a {exit_number} saída",name:"Entre na rotatória e pegue a {exit_number} saída na {way_name}",destination:"Entre na rotatória e pegue a {exit_number} saída sentido {destination}"},default:{default:"Entre na rotatória",name:"Entre na rotatória e saia na {way_name}",destination:"Entre na rotatória e saia sentido {destination}"}}},"roundabout turn":{default:{default:"Siga {modifier}",name:"Siga {modifier} em {way_name}",destination:"Siga {modifier} sentido {destination}"},left:{default:"Vire à esquerda",name:"Vire à esquerda em {way_name}",destination:"Vire à esquerda sentido {destination}"},right:{default:"Vire à direita",name:"Vire à direita em {way_name}",destination:"Vire à direita sentido {destination}"},straight:{default:"Continue em frente",name:"Continue em frente em {way_name}",destination:"Continue em frente sentido {destination}"}},"exit roundabout":{default:{default:"Saia da rotatória",name:"Exit the traffic circle onto {way_name}",destination:"Exit the traffic circle towards {destination}"}},"exit rotary":{default:{default:"Saia da rotatória",name:"Exit the traffic circle onto {way_name}",destination:"Exit the traffic circle towards {destination}"}},turn:{default:{default:"Siga {modifier}",name:"Siga {modifier} em {way_name}",destination:"Siga {modifier} sentido {destination}"},left:{default:"Vire à esquerda",name:"Vire à esquerda em {way_name}",destination:"Vire à esquerda sentido {destination}"},right:{default:"Vire à direita",name:"Vire à direita em {way_name}",destination:"Vire à direita sentido {destination}"},straight:{default:"Siga em frente",name:"Siga em frente em {way_name}",destination:"Siga em frente sentido {destination}"}},"use lane":{no_lanes:{default:"Continue em frente"},default:{default:"{lane_instruction}"}}}}},{}],40:[function(e,t,i){t.exports={meta:{capitalizeFirstLetter:!0},v5:{constants:{ordinalize:{1:"1º",2:"2º",3:"3º",4:"4º",5:"5º",6:"6º",7:"7º",8:"8º",9:"9º",10:"10º"},direction:{north:"norte",northeast:"nordeste",east:"este",southeast:"sudeste",south:"sul",southwest:"sudoeste",west:"oeste",northwest:"noroeste"},modifier:{left:"à esquerda",right:"à direita","sharp left":"acentuadamente à esquerda","sharp right":"acentuadamente à direita","slight left":"ligeiramente à esquerda","slight right":"ligeiramente à direita",straight:"em frente",uturn:"inversão de marcha"},lanes:{xo:"Mantenha-se à direita",ox:"Mantenha-se à esquerda",xox:"Mantenha-se ao meio",oxo:"M
12antenha-se à esquerda ou à direita"}},modes:{ferry:{default:"Apanhe o ferry",name:"Apanhe o ferry {way_name}",destination:"Apanhe o ferry para {destination}"}},phrase:{"two linked by distance":"{instruction_one}, depois, a {distance}, {instruction_two}","two linked":"{instruction_one}, depois {instruction_two}","one in distance":"A {distance}, {instruction_one}","name and ref":"{name} ({ref})","exit with number":"saída {exit}"},arrive:{default:{default:"Chegou ao seu {nth} destino",upcoming:"Está a chegar ao seu {nth} destino",short:"Chegou","short-upcoming":"Está a chegar",named:"Chegou a {waypoint_name}"},left:{default:"Chegou ao seu {nth} destino, à esquerda",upcoming:"Está a chegar ao seu {nth} destino, à esquerda",short:"Chegou","short-upcoming":"Está a chegar",named:"Chegou a {waypoint_name}, à esquerda"},right:{default:"Chegou ao seu {nth} destino, à direita",upcoming:"Está a chegar ao seu {nth} destino, à direita",short:"Chegou","short-upcoming":"Está a chegar",named:"Chegou a {waypoint_name}, à direita"},"sharp left":{default:"Chegou ao seu {nth} destino, à esquerda",upcoming:"Está a chegar ao seu {nth} destino, à esquerda",short:"Chegou","short-upcoming":"Está a chegar",named:"Chegou a {waypoint_name}, à esquerda"},"sharp right":{default:"Chegou ao seu {nth} destino, à direita",upcoming:"Está a chegar ao seu {nth} destino, à direita",short:"Chegou","short-upcoming":"Está a chegar",named:"Chegou a {waypoint_name}, à direita"},"slight right":{default:"Chegou ao seu {nth} destino, à direita",upcoming:"Está a chegar ao seu {nth} destino, à direita",short:"Chegou","short-upcoming":"Está a chegar",named:"Chegou a {waypoint_name}, à direita"},"slight left":{default:"Chegou ao seu {nth} destino, à esquerda",upcoming:"Está a chegar ao seu {nth} destino, à esquerda",short:"Chegou","short-upcoming":"Está a chegar",named:"Chegou a {waypoint_name}, à esquerda"},straight:{default:"Chegou ao seu {nth} destino, em frente",upcoming:"Está a chegar ao seu {nth} destino, em frente",short:"Chegou","short-upcoming":"Está a chegar",named:"Chegou a {waypoint_name}, em frente"}},continue:{default:{default:"Vire {modifier}",name:"Vire {modifier} para se manter em {way_name}",destination:"Vire {modifier} em direção a {destination}",exit:"Vire {modifier} para {way_name}"},straight:{default:"Continue em frente",name:"Continue em frente para se manter em {way_name}",destination:"Continue em direção a {destination}",distance:"Continue em frente por {distance}",namedistance:"Continue em {way_name} por {distance}"},"sharp left":{default:"Vire acentuadamente à esquerda",name:"Vire acentuadamente à esquerda para se manter em {way_name}",destination:"Vire acentuadamente à esquerda em direção a {destination}"},"sharp right":{default:"Vire acentuadamente à direita",name:"Vire acentuadamente à direita para se manter em {way_name}",destination:"Vire acentuadamente à direita em direção a {destination}"},"slight left":{default:"Vire ligeiramente à esquerda",name:"Vire ligeiramente à esquerda para se manter em {way_name}",destination:"Vire ligeiramente à esquerda em direção a {destination}"},"slight right":{default:"Vire ligeiramente à direita",name:"Vire ligeiramente à direita para se manter em {way_name}",destination:"Vire ligeiramente à direita em direção a {destination}"},uturn:{default:"Faça inversão de marcha",name:"Faça inversão de marcha e continue em {way_name}",destination:"Faça inversão de marcha em direção a {destination}"}},depart:{default:{default:"Dirija-se para {direction}",name:"Dirija-se para {direction} em {way_name}",namedistance:"Dirija-se para {direction} em {way_name} por {distance}"}},"end of road":{default:{default:"Vire {modifier}",name:"Vire {modifier} para {way_name}",destination:"Vire {modifier} em direção a {destination}"},straight:{default:"Continue em frente",name:"Continue em frente para {way_name}",destination:"Continue em frente em direção a {destination}"},uturn:{default:"No final da estrada faça uma inversão de marcha",name:"No final da estrada faça uma inversão de marcha para {way_name} ",destination:"No final da estrada faça uma inversão de marcha em direção a {destination}"}},fork:{default:{default:"Na bifurcação mantenha-se {modifier}",name:"Mantenha-se {modifier} para {way_name}",destination:"Mantenha-se {modifier} em direção a {destination}"},"slight left":{default:"Na bifurcação mantenha-se à esquerda",name:"Mantenha-se à esquerda para {way_name}",destination:"Mantenha-se à esquerda em direção a {destination}"},"slight right":{default:"Na bifurcação mantenha-se à direita",name:"Mantenha-se à direita para {way_name}",destination:"Mantenha-se à direita em direção a {destination}"},"sharp left":{default:"Na bifurcação vire acentuadamente à esquerda",name:"Vire acentuadamente à esquerda para {way_name}",destination:"Vire acentuadamente à esquerda em direção a {destination}"},"sharp right":{default:"Na bifurcação vire acentuadamente à direita",name:"Vire acentuadamente à direita para {way_name}",destination:"Vire acentuadamente à direita em direção a {destination}"},uturn:{default:"Faça inversão de marcha",name:"Faça inversão de marcha para {way_name}",destination:"Faça inversão de marcha em direção a {destination}"}},merge:{default:{default:"Una-se ao tráfego {modifier}",name:"Una-se ao tráfego {modifier} para {way_name}",destination:"Una-se ao tráfego {modifier} em direção a {destination}"},straight:{default:"Una-se ao tráfego",name:" Una-se ao tráfego para {way_name}",destination:"Una-se ao tráfego em direção a {destination}"},"slight left":{default:"Una-se ao tráfego à esquerda",name:"Una-se ao tráfego à esquerda para {way_name}",destination:"Una-se ao tráfego à esquerda em direção a {destination}"},"slight right":{default:"Una-se ao tráfego à direita",name:"Una-se ao tráfego à direita para {way_name}",destination:"Una-se ao tráfego à direita em direção a {destination}"},"sharp left":{default:"Una-se ao tráfego à esquerda",name:"Una-se ao tráfego à esquerda para {way_name}",destination:"Una-se ao tráfego à esquerda em direção a {destination}"},"sharp right":{default:"Una-se ao tráfego à direita",name:"Una-se ao tráfego à direita para {way_name}",destination:"Una-se ao tráfego à direita em direção a {destination}"},uturn:{default:"Faça inversão de marcha",name:"Faça inversão de marcha para {way_name}",destination:"Faça inversão de marcha em direção a {destination}"}},"new name":{default:{default:"Continue {modifier}",name:"Continue {modifier} para {way_name}",destination:"Continue {modifier} em direção a {destination}"},straight:{default:"Continue em frente",name:"Continue para {way_name}",destination:"Continue em direção a {destination}"},"sharp left":{default:"Vire acentuadamente à esquerda",name:"Vire acentuadamente à esquerda para {way_name}",destination:"Vire acentuadamente à esquerda em direção a{destination}"},"sharp right":{default:"Vire acentuadamente à direita",name:"Vire acentuadamente à direita para {way_name}",destination:"Vire acentuadamente à direita em direção a {destination}"},"slight left":{default:"Continue ligeiramente à esquerda",name:"Continue ligeiramente à esquerda para {way_name}",destination:"Continue ligeiramente à esquerda em direção a {destination}"},"slight right":{default:"Continue ligeiramente à direita",name:"Continue ligeiramente à direita para {way_name}",destination:"Continue ligeiramente à direita em direção a {destination}"},uturn:{default:"Faça inversão de marcha",name:"Faça inversão de marcha para {way_name}",destination:"Faça inversão de marcha em direção a {destination}"}},notification:{default:{default:"Continue {modifier}",name:"Continue {modifier} para {way_name}",destination:"Continue {modifier} em direção a {destination}"},uturn:{default:"Faça inversão de marcha",name:"Faça inversão de marcha para {way_name}",destination:"Faça inversão de marcha em direção a {destination}"}},"off ramp":{default:{default:"Saia na saída",name:"Saia na saída para {way_name}",destination:"Saia na saída em direção a {destination}",exit:"Saia na saída {exit}",exit_destination:"Saia na saída {exit} em direção a {destination}"},left:{default:"Saia na saída à esquerda",name:"Saia na saída à esquerda para {way_name}",destination:"Saia na saída à esquerda em direção a {destination}",exit:"Saia na saída {exit} à esquerda",exit_destination:"Saia na saída {exit} à esquerda em direção a {destination}"},right:{default:"Saia na saída à direita",name:"Saia na saída à direita para {way_name}",destination:"Saia na saída à direita em direção a {destination}",exit:"Saia na saída {exit} à direita",exit_destination:"Saia na saída {exit} à direita em direção a {destination}"},"sharp left":{default:"Saia na saída à esquerda",name:"Saia na saída à esquerda para {way_name}",destination:"Saia na saída à esquerda em direção a {destination}",exit:"Saia na saída {exit} à esquerda",exit_destination:"Saia na saída {exit} à esquerda em direção a {destination}"},"sharp right":{default:"Saia na saída à direita",name:"Saia na saída à direita para {way_name}",destination:"Saia na saída à direita em direção a {destination}",exit:"Saia na saída {exit} à direita",exit_destination:"Saia na saída {exit} à direita em direção a {destination}"},"slight left":{default:"Saia na saída à esquerda",name:"Saia na saída à esquerda para {way_name}",destination:"Saia na saída à esquerda em direção a {destination}",exit:"Saia na saída {exit} à esquerda",exit_destination:"Saia na saída {exit} à esquerda em direção a {destination}"},"slight right":{default:"Saia na saída à direita",name:"Saia na saída à direita para {way_name}",destination:"Saia na saída à direita em direção a {destination}",exit:"Saia na saída {exit} à direita",exit_destination:"Saia na saída {exit} à direita em direção a {destination}"}},"on ramp":{default:{default:"Saia na saída",name:"Saia na saída para {way_name}",destination:"Saia na saída em direção a {destination}"},left:{default:"Saia na saída à esquerda",name:"Saia na saída à esquerda para {way_name}",destination:"Saia na saída à esquerda em direção a {destination}"},right:{default:"Saia na saída à direita",name:"Saia na saída à direita para {way_name}",destination:"Saia na saída à direita em direção a {destination}"},"sharp left":{default:"Saia na saída à esquerda",name:"Saia na saída à esquerda para {way_name}",destination:"Saia na saída à esquerda em direção a {destination}"},"sharp right":{default:"Saia na saída à direita",name:"Saia na saída à direita para {way_name}",destination:"Saia na saída à direita em direção a {destination}"},"slight left":{default:"Saia na saída à esquerda",name:"Saia na saída à esquerda para {way_name}",destination:"Saia na saída à esquerda em direção a {destination}"},"slight right":{default:"Saia na saída à direita",name:"Saia na saída à direita para {way_name}",destination:"Saia na saída à direita em direção a {destination}"}},rotary:{default:{default:{default:"Entre na rotunda",name:"Entre na rotunda e saia para {way_name}",destination:"Entre na rotunda e saia em direção a {destination}"},name:{default:"Entre em {rotary_name}",name:"Entre em {rotary_name} e saia para {way_name}",destination:"Entre em {rotary_name} e saia em direção a {destination}"},exit:{default:"Entre na rotunda e saia na saída {exit_number}",name:"Entre na rotunda e saia na saída {exit_number} para {way_name}",destination:"Entre na rotunda e saia na saída {exit_number} em direção a {destination}"},name_exit:{default:"Entre em {rotary_name} e saia na saída {exit_number}",name:"Entre em {rotary_name} e saia na saída {exit_number} para {way_name}",destination:"Entre em{rotary_name} e saia na saída {exit_number} em direção a {destination}"}}},roundabout:{default:{exit:{default:"Entre na rotunda e saia na saída {exit_number}",name:"Entre na rotunda e saia na saída {exit_number} para {way_name}",destination:"Entre na rotunda e saia na saída {exit_number} em direção a {destination}"},default:{default:"Entre na rotunda",name:"Entre na rotunda e saia para {way_name}",destination:"Entre na rotunda e saia em direção a {destination}"}}},"roundabout turn":{default:{default:"Siga {modifier}",name:"Siga {modifier} para {way_name}",destination:"Siga {modifier} em direção a {destination}"},left:{default:"Vire à esquerda",name:"Vire à esquerda para {way_name}",destination:"Vire à esquerda em direção a {destination}"},right:{default:"Vire à direita",name:"Vire à direita para {way_name}",destination:"Vire à direita em direção a {destination}"},straight:{default:"Continue em frente",name:"Continue em frente para {way_name}",destination:"Continue em frente em direção a {destination}"}},"exit roundabout":{default:{default:"Saia da rotunda",name:"Saia da rotunda para {way_name}",destination:"Saia da rotunda em direção a {destination}"}},"exit rotary":{default:{default:"Saia da rotunda",name:"Saia da rotunda para {way_name}",destination:"Saia da rotunda em direção a {destination}"}},turn:{default:{default:"Siga {modifier}",name:"Siga {modifier} para{way_name}",destination:"Siga {modifier} em direção a {destination}"},left:{default:"Vire à esquerda",name:"Vire à esquerda para {way_name}",destination:"Vire à esquerda em direção a {destination}"},right:{default:"Vire à direita",name:"Vire à direita para {way_name}",destination:"Vire à direita em direção a {destination}"},straight:{default:"Vá em frente",name:"Vá em frente para {way_name}",destination:"Vá em frente em direção a {destination}"}},"use lane":{no_lanes:{default:"Continue em frente"},default:{default:"{lane_instruction}"}}}}},{}],41:[function(e,t,i){t.exports={meta:{capitalizeFirstLetter:!0
vendor: 8,227 bytes, line 12
12},v5:{constants:{ordinalize:{1:"prima",2:"a doua",3:"a treia",4:"a patra",5:"a cincea",6:"a șasea",7:"a șaptea",8:"a opta",9:"a noua",10:"a zecea"},direction:{north:"nord",northeast:"nord-est",east:"est",southeast:"sud-est",south:"sud",southwest:"sud-vest",west:"vest",northwest:"nord-vest"},modifier:{left:"stânga",right:"dreapta","sharp left":"puternic stânga","sharp right":"puternic dreapta","slight left":"ușor stânga","slight right":"ușor dreapta",straight:"înainte",uturn:"întoarcere"},lanes:{xo:"Țineți stânga",ox:"Țineți dreapta",xox:"Țineți pe mijloc",oxo:"Țineți pe laterale"}},modes:{ferry:{default:"Luați feribotul",name:"Luați feribotul {way_name}",destination:"Luați feribotul spre {destination}"}},phrase:{"two linked by distance":"{instruction_one}, apoi în {distance}, {instruction_two}","two linked":"{instruction_one} apoi {instruction_two}","one in distance":"În {distance}, {instruction_one}","name and ref":"{name} ({ref})","exit with number":"ieșirea {exit}"},arrive:{default:{default:"Ați ajuns la {nth} destinație",upcoming:"Ați ajuns la {nth} destinație",short:"Ați ajuns","short-upcoming":"Veți ajunge",named:"Ați ajuns {waypoint_name}"},left:{default:"Ați ajuns la {nth} destinație, pe stânga",upcoming:"Ați ajuns la {nth} destinație, pe stânga",short:"Ați ajuns","short-upcoming":"Veți ajunge",named:"Ați ajuns {waypoint_name}, pe stânga"},right:{default:"Ați ajuns la {nth} destinație, pe dreapta",upcoming:"Ați ajuns la {nth} destinație, pe dreapta",short:"Ați ajuns","short-upcoming":"Veți ajunge",named:"Ați ajuns {waypoint_name}, pe dreapta"},"sharp left":{default:"Ați ajuns la {nth} destinație, pe stânga",upcoming:"Ați ajuns la {nth} destinație, pe stânga",short:"Ați ajuns","short-upcoming":"Veți ajunge",named:"Ați ajuns {waypoint_name}, pe stânga"},"sharp right":{default:"Ați ajuns la {nth} destinație, pe dreapta",upcoming:"Ați ajuns la {nth} destinație, pe dreapta",short:"Ați ajuns","short-upcoming":"Veți ajunge",named:"Ați ajuns {waypoint_name}, pe dreapta"},"slight right":{default:"Ați ajuns la {nth} destinație, pe dreapta",upcoming:"Ați ajuns la {nth} destinație, pe dreapta",short:"Ați ajuns","short-upcoming":"Veți ajunge",named:"Ați ajuns {waypoint_name}, pe dreapta"},"slight left":{default:"Ați ajuns la {nth} destinație, pe stânga",upcoming:"Ați ajuns la {nth} destinație, pe stânga",short:"Ați ajuns","short-upcoming":"Veți ajunge",named:"Ați ajuns {waypoint_name}, pe stânga"},straight:{default:"Ați ajuns la {nth} destinație, în față",upcoming:"Ați ajuns la {nth} destinație, în față",short:"Ați ajuns","short-upcoming":"Veți ajunge",named:"Ați ajuns {waypoint_name}, în față"}},continue:{default:{default:"Virați {modifier}",name:"Virați {modifier} pe {way_name}",destination:"Virați {modifier} spre {destination}",exit:"Virați {modifier} pe {way_name}"},straight:{default:"Mergeți înainte",name:"Mergeți înainte pe {way_name}",destination:"Continuați spre {destination}",distance:"Mergeți înainte pentru {distance}",namedistance:"Continuați pe {way_name} pentru {distance}"},"sharp left":{default:"Virați puternic la stânga",name:"Virați puternic la stânga pe {way_name}",destination:"Virați puternic la stânga spre {destination}"},"sharp right":{default:"Virați puternic la dreapta",name:"Virați puternic la dreapta pe {way_name}",destination:"Virați puternic la dreapta spre {destination}"},"slight left":{default:"Virați ușor la stânga",name:"Virați ușor la stânga pe {way_name}",destination:"Virați ușor la stânga spre {destination}"},"slight right":{default:"Virați ușor la dreapta",name:"Virați ușor la dreapta pe {way_name}",destination:"Virați ușor la dreapta spre {destination}"},uturn:{default:"Întoarceți-vă",name:"Întoarceți-vă și continuați pe {way_name}",destination:"Întoarceți-vă spre {destination}"}},depart:{default:{default:"Mergeți spre {direction}",name:"Mergeți spre {direction} pe {way_name}",namedistance:"Mergeți spre {direction} pe {way_name} pentru {distance}"}},"end of road":{default:{default:"Virați {modifier}",name:"Virați {modifier} pe {way_name}",destination:"Virați {modifier} spre {destination}"},straight:{default:"Continuați înainte",name:"Continuați înainte pe {way_name}",destination:"Continuați înainte spre {destination}"},uturn:{default:"Întoarceți-vă la sfârșitul drumului",name:"Întoarceți-vă pe {way_name} la sfârșitul drumului",destination:"Întoarceți-vă spre {destination} la sfârșitul drumului"}},fork:{default:{default:"Țineți {modifier} la bifurcație",name:"Țineți {modifier} la bifurcație pe {way_name}",destination:"Țineți {modifier} la bifurcație spre {destination}"},"slight left":{default:"Țineți pe stânga la bifurcație",name:"Țineți pe stânga la bifurcație pe {way_name}",destination:"Țineți pe stânga la bifurcație spre {destination}"},"slight right":{default:"Țineți pe dreapta la bifurcație",name:"Țineți pe dreapta la bifurcație pe {way_name}",destination:"Țineți pe dreapta la bifurcație spre {destination}"},"sharp left":{default:"Virați puternic stânga la bifurcație",name:"Virați puternic stânga la bifurcație pe {way_name}",destination:"Virați puternic stânga la bifurcație spre {destination}"},"sharp right":{default:"Virați puternic dreapta la bifurcație",name:"Virați puternic dreapta la bifurcație pe {way_name}",destination:"Virați puternic dreapta la bifurcație spre {destination}"},uturn:{default:"Întoarceți-vă",name:"Întoarceți-vă pe {way_name}",destination:"Întoarceți-vă spre {destination}"}},merge:{default:{default:"Intrați în {modifier}",name:"Intrați în {modifier} pe {way_name}",destination:"Intrați în {modifier} spre {destination}"},straight:{default:"Intrați",name:"Intrați pe {way_name}",destination:"Intrați spre {destination}"},"slight left":{default:"Intrați în stânga",name:"Intrați în stânga pe {way_name}",destination:"Intrați în stânga spre {destination}"},"slight right":{default:"Intrați în dreapta",name:"Intrați în dreapta pe {way_name}",destination:"Intrați în dreapta spre {destination}"},"sharp left":{default:"Intrați în stânga",name:"Intrați în stânga pe {way_name}",destination:"Intrați în stânga spre {destination}"},"sharp right":{default:"Intrați în dreapta",name:"Intrați în dreapta pe {way_name}",destination:"Intrați în dreapta spre {destination}"},uturn:{default:"Întoarceți-vă",name:"Întoarceți-vă pe {way_name}",destination:"Întoarceți-vă spre {destination}"}},"new name":{default:{default:"Continuați {modifier}",name:"Continuați {modifier} pe {way_name}",destination:"Continuați {modifier} spre {destination}"},straight:{default:"Continuați înainte",name:"Continuați pe {way_name}",destination:"Continuați spre {destination}"},"sharp left":{default:"Virați puternic la stânga",name:"Virați puternic la stânga pe {way_name}",destination:"Virați puternic la stânga spre {destination}"},"sharp right":{default:"Virați puternic la dreapta",name:"Virați puternic la dreapta pe {way_name}",destination:"Virați puternic la dreapta spre {destination}"},"slight left":{default:"Continuați ușor la stânga",name:"Continuați ușor la stânga pe {way_name}",destination:"Continuați ușor la stânga spre {destination}"},"slight right":{default:"Continuați ușor la dreapta",name:"Continuați ușor la dreapta pe {way_name}",destination:"Continuați ușor la dreapta spre {destination}"},uturn:{default:"Întoarceți-vă",name:"Întoarceți-vă pe {way_name}",destination:"Întoarceți-vă spre {destination}"}},notification:{default:{default:"Continuați {modifier}",name:"Continuați {modifier} pe {way_name}",destination:"Continuați {modifier} spre {destination}"},uturn:{default:"Întoarceți-vă",name:"Întoarceți-vă pe {way_name}",destination:"Întoarceți-vă spre {destination}"}},"off ramp":{default:{default:"Urmați breteaua",name:"Urmați breteaua pe {way_name}",destination:"Urmați breteaua spre {destination}",exit:"Urmați ieșirea {exit}",exit_destination:"Urmați ieșirea {exit} spre {destination}"},left:{default:"Urmați breteaua din stânga",
vendor: 10,550 bytes, line 12
12name:"Urmați breteaua din stânga pe {way_name}",destination:"Urmați breteaua din stânga spre {destination}",exit:"Urmați ieșirea {exit} pe stânga",exit_destination:"Urmați ieșirea {exit} pe stânga spre {destination}"},right:{default:"Urmați breteaua din dreapta",name:"Urmați breteaua din dreapta pe {way_name}",destination:"Urmați breteaua din dreapta spre {destination}",exit:"Urmați ieșirea {exit} pe dreapta",exit_destination:"Urmați ieșirea {exit} pe dreapta spre {destination}"},"sharp left":{default:"Urmați breteaua din stânga",name:"Urmați breteaua din stânga pe {way_name}",destination:"Urmați breteaua din stânga spre {destination}",exit:"Urmați ieșirea {exit} pe stânga",exit_destination:"Urmați ieșirea {exit} pe stânga spre {destination}"},"sharp right":{default:"Urmați breteaua din dreapta",name:"Urmați breteaua din dreapta pe {way_name}",destination:"Urmați breteaua din dreapta spre {destination}",exit:"Urmați ieșirea {exit} pe dreapta",exit_destination:"Urmați ieșirea {exit} pe dreapta spre {destination}"},"slight left":{default:"Urmați breteaua din stânga",name:"Urmați breteaua din stânga pe {way_name}",destination:"Urmați breteaua din stânga spre {destination}",exit:"Urmați ieșirea {exit} pe stânga",exit_destination:"Urmați ieșirea {exit} pe stânga spre {destination}"},"slight right":{default:"Urmați breteaua din dreapta",name:"Urmați breteaua din dreapta pe {way_name}",destination:"Urmați breteaua din dreapta spre {destination}",exit:"Urmați ieșirea {exit} pe dreapta",exit_destination:"Urmați ieșirea {exit} pe dreapta spre {destination}"}},"on ramp":{default:{default:"Urmați breteaua de intrare",name:"Urmați breteaua pe {way_name}",destination:"Urmați breteaua spre {destination}"},left:{default:"Urmați breteaua din stânga",name:"Urmați breteaua din stânga pe {way_name}",destination:"Urmați breteaua din stânga spre {destination}"},right:{default:"Urmați breteaua din dreapta",name:"Urmați breteaua din dreapta pe {way_name}",destination:"Urmați breteaua din dreapta spre {destination}"},"sharp left":{default:"Urmați breteaua din stânga",name:"Urmați breteaua din stânga pe {way_name}",destination:"Urmați breteaua din stânga spre {destination}"},"sharp right":{default:"Urmați breteaua din dreapta",name:"Urmați breteaua din dreapta pe {way_name}",destination:"Urmați breteaua din dreapta spre {destination}"},"slight left":{default:"Urmați breteaua din stânga",name:"Urmați breteaua din stânga pe {way_name}",destination:"Urmați breteaua din stânga spre {destination}"},"slight right":{default:"Urmați breteaua din dreapta",name:"Urmați breteaua din dreapta pe {way_name}",destination:"Urmați breteaua din dreapta spre {destination}"}},rotary:{default:{default:{default:"Intrați în sensul giratoriu",name:"Intrați în sensul giratoriu și ieșiți pe {way_name}",destination:"Intrați în sensul giratoriu și ieșiți spre {destination}"},name:{default:"Intrați în {rotary_name}",name:"Intrați în {rotary_name} și ieșiți pe {way_name}",destination:"Intrați în {rotary_name} și ieșiți spre {destination}"},exit:{default:"Intrați în sensul giratoriu și urmați {exit_number} ieșire",name:"Intrați în sensul giratoriu și urmați {exit_number} ieșire pe {way_name}",destination:"Intrați în sensul giratoriu și urmați {exit_number} ieșire spre {destination}"},name_exit:{default:"Intrați în {rotary_name} și urmați {exit_number} ieșire",name:"Intrați în {rotary_name} și urmați {exit_number} ieșire pe {way_name}",destination:"Intrați în  {rotary_name} și urmați {exit_number} ieșire spre {destination}"}}},roundabout:{default:{exit:{default:"Intrați în sensul giratoriu și urmați {exit_number} ieșire",name:"Intrați în sensul giratoriu și urmați {exit_number} ieșire pe {way_name}",destination:"Intrați în sensul giratoriu și urmați {exit_number} ieșire spre {destination}"},default:{default:"Intrați în sensul giratoriu",name:"Intrați în sensul giratoriu și ieșiți pe {way_name}",destination:"Intrați în sensul giratoriu și ieșiți spre {destination}"}}},"roundabout turn":{default:{default:"La sensul giratoriu virați {modifier}",name:"La sensul giratoriu virați {modifier} pe {way_name}",destination:"La sensul giratoriu virați {modifier} spre {destination}"},left:{default:"La sensul giratoriu virați la stânga",name:"La sensul giratoriu virați la stânga pe {way_name}",destination:"La sensul giratoriu virați la stânga spre {destination}"},right:{default:"La sensul giratoriu virați la dreapta",name:"La sensul giratoriu virați la dreapta pe {way_name}",destination:"La sensul giratoriu virați la dreapta spre {destination}"},straight:{default:"La sensul giratoriu continuați înainte",name:"La sensul giratoriu continuați înainte pe {way_name}",destination:"La sensul giratoriu continuați înainte spre {destination}"}},"exit roundabout":{default:{default:"Ieșiți din sensul giratoriu",name:"Ieșiți din sensul giratoriu pe {way_name}",destination:"Ieșiți din sensul giratoriu spre {destination}"}},"exit rotary":{default:{default:"Ieșiți din sensul giratoriu",name:"Ieșiți din sensul giratoriu pe {way_name}",destination:"Ieșiți din sensul giratoriu spre {destination}"}},turn:{default:{default:"Virați {modifier}",name:"Virați {modifier} pe {way_name}",destination:"Virați {modifier} spre {destination}"},left:{default:"Virați la stânga",name:"Virați la stânga pe {way_name}",destination:"Virați la stânga spre {destination}"},right:{default:"Virați la dreapta",name:"Virați la dreapta pe {way_name}",destination:"Virați la dreapta spre {destination}"},straight:{default:"Mergeți înainte",name:"Mergeți înainte pe {way_name}",destination:"Mergeți înainte spre {destination}"}},"use lane":{no_lanes:{default:"Mergeți înainte"},default:{default:"{lane_instruction}"}}}}},{}],42:[function(e,t,i){t.exports={meta:{capitalizeFirstLetter:!0},v5:{constants:{ordinalize:{1:"первый",2:"второй",3:"третий",4:"четвёртый",5:"пятый",6:"шестой",7:"седьмой",8:"восьмой",9:"девятый",10:"десятый"},direction:{north:"северном",northeast:"северо-восточном",east:"восточном",southeast:"юго-восточном",south:"южном",southwest:"юго-западном",west:"западном",northwest:"северо-западном"},modifier:{left:"налево",right:"направо","sharp left":"налево","sharp right":"направо","slight left":"левее","slight right":"правее",straight:"прямо",uturn:"на разворот"},lanes:{xo:"Держитесь правее",ox:"Держитесь левее",xox:"Держитесь посередине",oxo:"Держитесь слева или справа"}},modes:{ferry:{default:"Погрузитесь на паром",name:"Погрузитесь на паром {way_name}",destination:"Погрузитесь на паром в направлении {destination}"}},phrase:{"two linked by distance":"{instruction_one}, затем через {distance} {instruction_two}","two linked":"{instruction_one}, затем {instruction_two}","one in distance":"Через {distance} {instruction_one}","name and ref":"{name} ({ref})","exit with number":"съезд {exit}"},arrive:{default:{default:"Вы прибыли в {nth} пункт назначения",upcoming:"Вы прибудете в {nth} пункт назначения",short:"Вы прибыли","short-upcoming":"Вы скоро прибудете",named:"Вы прибыли в пункт назначения, {waypoint_name}"},left:{default:"Вы прибыли в {nth} пункт назначения, он находится слева",upcoming:"Вы прибудете в {nth} пункт назначения, он будет слева",short:"Вы прибыли","short-upcoming":"Вы скоро прибудете",named:"Вы прибыли в пункт назначения, {waypoint_name}, он находится слева"},right:{default:"Вы прибыли в {nth} пункт назначения, он находится справа",upcoming:"Вы прибудете в {nth} пункт назначения, он будет справа",short:"Вы прибыли","short-upcoming":"Вы скоро прибудете",named:"Вы прибыли в пункт назначения, {waypoint_name}, он находится справа"},"sharp left":{default:"Вы прибыли в {nth} пункт назначения, он находится слева сзади",upcoming:"Вы прибудете в {nth} пункт назначения, он будет слева сзади",short:"Вы прибыли","short-upcoming":"Вы скоро прибудете",named:"Вы прибыли в пункт назначения, {waypoint_name}, он находится слева сзади"},"sharp right":{default:"Вы прибыли в {nth} пункт назначения, он находится справа сзади",upcoming:"Вы прибудете в {nth} пункт назначения, он будет справа сзади",short:"Вы прибыли","short-upcoming":"Вы скоро прибудете",named:"Вы прибыли в пункт назначения, {waypoint_name}, он находится справа сзади"},"slight right":{default:"Вы прибыли в {nth} пункт назначения, он находится справа впереди",upcoming:"Вы прибудете в {nth} пункт назначения, он будет справа впереди",short:"Вы прибыли","short-upcoming":"Вы скоро прибудете",named:"Вы прибыли в пункт назначения, {waypoint_name}, он находится справа впереди"},"slight left":{default:"Вы прибыли в {nth} пункт назначения, он находится слева впереди",upcoming:"Вы прибудете в {nth} пункт назначения, он будет слева впереди",short:"Вы прибыли","short-upcoming":"Вы скоро прибудете",named:"Вы прибыли в пункт назначения, {waypoint_name}, он находится слева впереди"},straight:{default:"Вы прибыли в {nth} пункт назначения, он находится перед Вами",upcoming
12:"Вы прибудете в {nth} пункт назначения, он будет перед Вами",short:"Вы прибыли","short-upcoming":"Вы скоро прибудете",named:"Вы прибыли в пункт назначения, {waypoint_name}, он находится перед Вами"}},continue:{default:{default:"Двигайтесь {modifier}",name:"Двигайтесь {modifier} по {way_name:dative}",destination:"Двигайтесь {modifier} в направлении {destination}",exit:"Двигайтесь {modifier} на {way_name:accusative}"},straight:{default:"Двигайтесь прямо",name:"Продолжите движение по {way_name:dative}",destination:"Продолжите движение в направлении {destination}",distance:"Двигайтесь прямо {distance}",namedistance:"Двигайтесь прямо {distance} по {way_name:dative}"},"sharp left":{default:"Резко поверните налево",name:"Резко поверните налево на {way_name:accusative}",destination:"Резко поверните налево в направлении {destination}"},"sharp right":{default:"Резко поверните направо",name:"Резко поверните направо на {way_name:accusative}",destination:"Резко поверните направо в направлении {destination}"},"slight left":{default:"Плавно поверните налево",name:"Плавно поверните налево на {way_name:accusative}",destination:"Плавно поверните налево в направлении {destination}"},"slight right":{default:"Плавно поверните направо",name:"Плавно поверните направо на {way_name:accusative}",destination:"Плавно поверните направо в направлении {destination}"},uturn:{default:"Развернитесь",name:"Развернитесь и продолжите движение по {way_name:dative}",destination:"Развернитесь в направлении {destination}"}},depart:{default:{default:"Двигайтесь в {direction} направлении",name:"Двигайтесь в {direction} направлении по {way_name:dative}",namedistance:"Двигайтесь {distance} в {direction} направлении по {way_name:dative}"}},"end of road":{default:{default:"Поверните {modifier}",name:"Поверните {modifier} на {way_name:accusative}",destination:"Поверните {modifier} в направлении {destination}"},straight:{default:"Двигайтесь прямо",name:"Двигайтесь прямо по {way_name:dative}",destination:"Двигайтесь прямо в направлении {destination}"},uturn:{default:"В конце дороги развернитесь",name:"Развернитесь в конце {way_name:genitive}",destination:"В конце дороги развернитесь в направлении {destination}"}},fork:{default:{default:"На развилке двигайтесь {modifier}",name:"На развилке двигайтесь {modifier} на {way_name:accusative}",destination:"На развилке двигайтесь {modifier} в направлении {destination}"},"slight left":{default:"На развилке держитесь левее",name:"На развилке держитесь левее на {way_name:accusative}",destination:"На развилке держитесь левее и продолжите движение в направлении {destination}"},"slight right":{default:"На развилке держитесь правее",name:"На развилке держитесь правее на {way_name:accusative}",destination:"На развилке держитесь правее и продолжите движение в направлении {destination}"},"sharp left":{default:"На развилке резко поверните налево",name:"Резко поверните налево на {way_name:accusative}",destination:"Резко поверните налево и продолжите движение в направлении {destination}"},"sharp right":{default:"На развилке резко поверните направо",name:"Резко поверните направо на {way_name:accusative}",destination:"Резко поверните направо и продолжите движение в направлении {destination}"},uturn:{default:"На развилке развернитесь",name:"На развилке развернитесь на {way_name:prepositional}",destination:"На развилке развернитесь и продолжите движение в направлении {destination}"}},merge:{default:{default:"Перестройтесь {modifier}",name:"Перестройтесь {modifier} на {way_name:accusative}",destination:"Перестройтесь {modifier} в направлении {destination}"},straight:{default:"Двигайтесь прямо",name:"Продолжите движение по {way_name:dative}",destination:"Продолжите движение в направлении {destination}"},"slight left":{default:"Перестройтесь левее",name:"Перестройтесь левее на {way_name:accusative}",destination:"Перестройтесь левее в направлении {destination}"},"slight right":{default:"Перестройтесь правее",
vendor: 13,712 bytes, line 12
12name:"Перестройтесь правее на {way_name:accusative}",destination:"Перестройтесь правее в направлении {destination}"},"sharp left":{default:"Перестраивайтесь левее",name:"Перестраивайтесь левее на {way_name:accusative}",destination:"Перестраивайтесь левее в направлении {destination}"},"sharp right":{default:"Перестраивайтесь правее",name:"Перестраивайтесь правее на {way_name:accusative}",destination:"Перестраивайтесь правее в направлении {destination}"},uturn:{default:"Развернитесь",name:"Развернитесь на {way_name:prepositional}",destination:"Развернитесь в направлении {destination}"}},"new name":{default:{default:"Двигайтесь {modifier}",name:"Двигайтесь {modifier} на {way_name:accusative}",destination:"Двигайтесь {modifier} в направлении {destination}"},straight:{default:"Двигайтесь прямо",name:"Продолжите движение по {way_name:dative}",destination:"Продолжите движение в направлении {destination}"},"sharp left":{default:"Резко поверните налево",name:"Резко поверните налево на {way_name:accusative}",destination:"Резко поверните налево и продолжите движение в направлении {destination}"},"sharp right":{default:"Резко поверните направо",name:"Резко поверните направо на {way_name:accusative}",destination:"Резко поверните направо и продолжите движение в направлении {destination}"},"slight left":{default:"Плавно поверните налево",name:"Плавно поверните налево на {way_name:accusative}",destination:"Плавно поверните налево в направлении {destination}"},"slight right":{default:"Плавно поверните направо",name:"Плавно поверните направо на {way_name:accusative}",destination:"Плавно поверните направо в направлении {destination}"},uturn:{default:"Развернитесь",name:"Развернитесь на {way_name:prepositional}",destination:"Развернитесь и продолжите движение в направлении {destination}"}},notification:{default:{default:"Двигайтесь {modifier}",name:"Двигайтесь {modifier} по {way_name:dative}",destination:"Двигайтесь {modifier} в направлении {destination}"},uturn:{default:"Развернитесь",name:"Развернитесь на {way_name:prepositional}",destination:"Развернитесь и продолжите движение в направлении {destination}"}},"off ramp":{default:{default:"Сверните на съезд",name:"Сверните на съезд на {way_name:accusative}",destination:"Сверните на съезд в направлении {destination}",exit:"Сверните на съезд {exit}",exit_destination:"Сверните на съезд {exit} в направлении {destination}"},left:{default:"Сверните на левый съезд",name:"Сверните на левый съезд на {way_name:accusative}",destination:"Сверните на левый съезд в направлении {destination}",exit:"Сверните на съезд {exit} слева",exit_destination:"Сверните на съезд {exit} слева в направлении {destination}"},right:{default:"Сверните на правый съезд",name:"Сверните на правый съезд на {way_name:accusative}",destination:"Сверните на правый съезд в направлении {destination}",exit:"Сверните на съезд {exit} справа",exit_destination:"Сверните на съезд {exit} справа в направлении {destination}"},"sharp left":{default:"Поверните налево на съезд",name:"Поверните налево на съезд на {way_name:accusative}",destination:"Поверните налево на съезд в направлении {destination}",exit:"Поверните налево на съезд {exit}",exit_destination:"Поверните налево на съезд {exit} в направлении {destination}"},"sharp right":{default:"Поверните направо на съезд",name:"Поверните направо на съезд на {way_name:accusative}",destination:"Поверните направо на съезд в направлении {destination}",exit:"Поверните направо на съезд {exit}",exit_destination:"Поверните направо на съезд {exit} в направлении {destination}"},"slight left":{default:"Перестройтесь левее на съезд",name:"Перестройтесь левее на съезд на {way_name:accusative}",destination:"Перестройтесь левее на съезд в направлении {destination}",exit:"Перестройтесь левее на {exit}",exit_destination:"Перестройтесь левее на съезд {exit} в направлении {destination}"},"slight right":{default:"Перестройтесь правее на съезд",name:"Перестройтесь правее на съезд на {way_name:accusative}",destination:"Перестройтесь правее на съезд в направлении {destination}",exit:"Перестройтесь правее на съезд {exit}",exit_destination:"Перестройтесь правее на съезд {exit} в направлении {destination}"}},"on ramp":{default:{default:"Сверните на автомагистраль",name:"Сверните на въезд на {way_name:accusative}",destination:"Сверните на въезд на автомагистраль в направлении {destination}"},left:{default:"Сверните на левый въезд на автомагистраль",name:"Сверните на левый въезд на {way_name:accusative}",destination:"Сверните на левый въезд на автомагистраль в направлении {destination}"},right:{default:"Сверните на правый въезд на автомагистраль",name:"Сверните на правый въезд на {way_name:accusative}",destination:"Сверните на правый въезд на автомагистраль в направлении {destination}"},"sharp left":{default:"Поверните на левый въезд на автомагистраль",name:"Поверните на левый въезд на {way_name:accusative}",destination:"Поверните на левый въезд на автомагистраль в направлении {destination}"},"sharp right":{default:"Поверните на правый въезд на автомагистраль",name:"Поверните на правый въезд на {way_name:accusative}",destination:"Поверните на правый въезд на автомагистраль в направлении {destination}"},"slight left":{default:"Перестройтесь левее на въезд на автомагистраль",name:"Перестройтесь левее на {way_name:accusative}",destination:"Перестройтесь левее на автомагистраль в направлении {destination}"},"slight right":{default:"Перестройтесь правее на въезд на автомагистраль",name:"Перестройтесь правее на {way_name:accusative}",destination:"Перестройтесь правее на автомагистраль в направлении {destination}"}},rotary:{default:{default:{default:"Продолжите движение по круговой развязке",name:"На круговой развязке сверните на {way_name:accusative}",destination:"На круговой развязке сверните в направлении {destination}"},name:{default:"Продолжите движение по {rotary_name:dative}",name:"На {rotary_name:prepositional} сверните на {way_name:accusative}",destination:"На {rotary_name:prepositional} сверните в направлении {destination}"},exit:{default:"На круговой развязке сверните на {exit_number} съезд",name:"На круговой развязке сверните на {exit_number} съезд на {way_name:accusative}",destination:"На круговой развязке сверните на {exit_number} съезд в направлении {destination}"},name_exit:{default:"На {rotary_name:prepositional} сверните на {exit_number} съезд",name:"На {rotary_name:prepositional} сверните на {exit_number} съезд на {way_name:accusative}",destination:"На {rotary_name:prepositional} сверните на {exit_number} съезд в направлении {destination}"}}},roundabout:{default:{exit:{default:"На круговой развязке сверните на {exit_number} съезд",name:"На круговой развязке сверните на {exit_number} съезд на {way_name:accusative}",destination:"На круговой развязке сверните на {exit_number} съезд в направлении {destination}"},default:{default:"Продолжите движение по круговой развязке",name:"На круговой развязке сверните на {way_name:accusative}",destination:"На круговой развязке сверните в направлении {destination}"}}},"roundabout turn":{default:{default:"Двигайтесь {modifier}",name:"Двигайтесь {modifier} на {way_name:accusative}",destination:"Двигайтесь {modifier} в направлении {destination}"},left:{default:"Сверните налево",name:"Сверните налево на {way_name:accusative}",destination:"Сверните налево в направлении {destination}"},right:{default:"Сверните направо",name:"Сверните направо на {way_name:accusative}",destination:"Сверните направо в направлении {destination}"},straight:{default:"Двигайтесь прямо",name:"Двигайтесь прямо по {way_name:dative}",destination:"Двигайтесь прямо в направлении {destination}"}},"exit roundabout":{default:{default:"Сверните с круговой развязки",name:"Сверните с круговой развязки на {way_name:accusative}",destination:"Сверните с круговой развязки в направлении {destination}"}},"exit rotary":{default:{default:"Сверните с круговой развязки",name:"Сверните с круговой развязки на {way_name:accusative}",destination:"Сверните с круговой развязки в направлении {destination}"}},turn:{default:{default:"Двигайтесь {modifier}",name:"Двигайтесь {modifier} на {way_name:accusative}",destination:"Двигайтесь {modifier}  в направлении {destination}"},left:{default:"Поверните налево",name:"Поверните налево на {way_name:accusative}",destination:"Поверните налево в направлении {destination}"},right:{default:"Поверните направо",name:"Поверните направо на {way_name:accusative}",destination:"Поверните направо  в направлении {destination}"},straight:{default:"Двигайтесь прямо",name:"Двигайтесь по {way_name:dative}",destination:"Двигайтесь в направлении {destination}"}},"use lane":{no_lanes:{default:"Продолжайте движение прямо"},default:{default:"{lane_instruction}"}}}}},{}],43:[function(e,t,i){t.exports={meta:{capitalizeFirstLetter:!0},v5:{constants:{ordinalize:{1:"1:a",2:"2:a",3:"3:e",4:"4:e",5:"5:e",6:"6:e",7:"7:e",8:"8:e",9:"9:e",10:"10:e"},direction:{north:"norr",northeast:"nordost",east:"öster",southeast:"sydost",south:"söder",southwest:"sydväst",west:"väster",northwest:"nordväst"},modifier:{left:"vänster",right:"höger","sharp left":"vänster","sharp right":"höger","slight left":"vänster","slight right":"höger",straight:"rakt fram",uturn:"U-sväng"},lanes:{xo:"Håll till höger",ox:"Håll till vänster",xox:"Håll till mitten",oxo:"Håll till vänster eller höger"}},modes:{ferry:{default:"Ta färjan",name:"Ta färjan på {way_name}",destination:"Ta färjan mot {destination}"}},phrase:{"two linked by distance":"{instruction_one}, sedan efter {distance}, {instruction_two}","two linked":"{instruction_one}, sedan {instruction_two}","one in distance":"Om {distance}, {instruction_one}","name and ref":"{name} ({ref})","exit with number":"exit {exit}"},arrive:{default:{default:"Du är framme vid din {nth} destination",upcoming:"Du är snart framme vid din {nth} destination",short:"Du är framme","short-upcoming":"Du är snart framme",named:"Du är framme vid {wayp
12oint_name}"},left:{default:"Du är framme vid din {nth} destination, till vänster",upcoming:"Du är snart framme vid din {nth} destination, till vänster",short:"Du är framme","short-upcoming":"Du är snart framme",named:"Du är framme vid {waypoint_name}, till vänster"},right:{default:"Du är framme vid din {nth} destination, till höger",upcoming:"Du är snart framme vid din {nth} destination, till höger",short:"Du är framme","short-upcoming":"Du är snart framme",named:"Du är framme vid {waypoint_name}, till höger"},"sharp left":{default:"Du är framme vid din {nth} destination, till vänster",upcoming:"Du är snart framme vid din {nth} destination, till vänster",short:"Du är framme","short-upcoming":"Du är snart framme",named:"Du är framme vid {waypoint_name}, till vänster"},"sharp right":{default:"Du är framme vid din {nth} destination, till höger",upcoming:"Du är snart framme vid din {nth} destination, till höger",short:"Du är framme","short-upcoming":"Du är snart framme",named:"Du är framme vid {waypoint_name}, till höger"},"slight right":{default:"Du är framme vid din {nth} destination, till höger",upcoming:"Du är snart framme vid din {nth} destination, till höger",short:"Du är framme","short-upcoming":"Du är snart framme",named:"Du är framme vid {waypoint_name}, till höger"},"slight left":{default:"Du är framme vid din {nth} destination, till vänster",upcoming:"Du är snart framme vid din {nth} destination, till vänster",short:"Du är framme","short-upcoming":"Du är snart framme",named:"Du är framme vid {waypoint_name}, till vänster"},straight:{default:"Du är framme vid din {nth} destination, rakt fram",upcoming:"Du är snart framme vid din {nth} destination, rakt fram",short:"Du är framme","short-upcoming":"Du är snart framme",named:"Du är framme vid {waypoint_name}, rakt fram"}},continue:{default:{default:"Sväng {modifier}",name:"Sväng {modifier} och fortsätt på {way_name}",destination:"Sväng {modifier} mot {destination}",exit:"Sväng {modifier} in på {way_name}"},straight:{default:"Fortsätt rakt fram",name:"Kör rakt fram och fortsätt på {way_name}",destination:"Fortsätt mot {destination}",distance:"Fortsätt rakt fram i {distance}",namedistance:"Fortsätt på {way_name} i {distance}"},"sharp left":{default:"Sväng vänster",name:"Sväng vänster och fortsätt på {way_name}",destination:"Sväng vänster mot {destination}"},"sharp right":{default:"Sväng höger",name:"Sväng höger och fortsätt på {way_name}",destination:"Sväng höger mot {destination}"},"slight left":{default:"Sväng vänster",name:"Sväng vänster och fortsätt på {way_name}",destination:"Sväng vänster mot {destination}"},"slight right":{default:"Sväng höger",name:"Sväng höger och fortsätt på {way_name}",destination:"Sväng höger mot {destination}"},uturn:{default:"Gör en U-sväng",name:"Gör en U-sväng och fortsätt på {way_name}",destination:"Gör en U-sväng mot {destination}"}},depart:{default:{default:"Kör åt {direction}",name:"Kör åt {direction} på {way_name}",namedistance:"Kör {distance} åt {direction} på {way_name}"}},"end of road":{default:{default:"Sväng {modifier}",name:"Sväng {modifier} in på {way_name}",destination:"Sväng {modifier} mot {destination}"},straight:{default:"Fortsätt rakt fram",name:"Fortsätt rakt fram in på {way_name}",destination:"Fortsätt rakt fram mot {destination}"},uturn:{default:"Gör en U-sväng i slutet av vägen",name:"Gör en U-sväng in på {way_name} i slutet av vägen",destination:"Gör en U-sväng mot {destination} i slutet av vägen"}},fork:{default:{default:"Håll till {modifier} där vägen delar sig",name:"Håll till {modifier} in på {way_name}",destination:"Håll till {modifier} mot {destination}"},"slight left":{default:"Håll till vänster där vägen delar sig",name:"Håll till vänster in på {way_name}",destination:"Håll till vänster mot {destination}"},"slight right":{default:"Håll till höger där vägen delar sig",name:"Håll till höger in på {way_name}",destination:"Håll till höger mot {destination}"},"sharp left":{default:"Sväng vänster där vägen delar sig",name:"Sväng vänster in på {way_name}",destination:"Sväng vänster mot {destination}"},"sharp right":{default:"Sväng höger där vägen delar sig",name:"Sväng höger in på {way_name}",destination:"Sväng höger mot {destination}"},uturn:{default:"Gör en U-sväng",name:"Gör en U-sväng in på {way_name}",destination:"Gör en U-sväng mot {destination}"}},merge:{default:{default:"Byt till {modifier} körfält",name:"Byt till {modifier} körfält, in på {way_name}",destination:"Byt till {modifier} körfält, mot {destination}"},straight:{default:"Fortsätt",name:"Kör in på {way_name}",destination:"Kör mot {destination}"},"slight left":{default:"Byt till vänstra körfältet",name:"Byt till vänstra körfältet, in på {way_name}",destination:"Byt till vänstra körfältet, mot {destination}"},"slight right":{default:"Byt till högra körfältet",name:"Byt till högra körfältet, in på {way_name}",destination:"Byt till högra körfältet, mot {destination}"},"sharp left":{default:"Byt till vänstra körfältet",name:"Byt till vänstra körfältet, in på {way_name}",destination:"Byt till vänstra körfältet, mot {destination}"},"sharp right":{default:"Byt till högra körfältet",name:"Byt till högra körfältet, in på {way_name}",destination:"Byt till högra körfältet, mot {destination}"},uturn:{default:"Gör en U-sväng",name:"Gör en U-sväng in på {way_name}",destination:"Gör en U-sväng mot {destination}"}},"new name":{default:{default:"Fortsätt {modifier}",name:"Fortsätt {modifier} på {way_name}",destination:"Fortsätt {modifier} mot {destination}"},straight:{default:"Fortsätt rakt fram",name:"Fortsätt in på {way_name}",destination:"Fortsätt mot {destination}"},"sharp left":{default:"Gör en skarp vänstersväng",name:"Gör en skarp vänstersväng in på {way_name}",destination:"Gör en skarp vänstersväng mot {destination}"},"sharp right":{default:"Gör en skarp högersväng",name:"Gör en skarp högersväng in på {way_name}",destination:"Gör en skarp högersväng mot {destination}"},"slight left":{default:"Fortsätt med lätt vänstersväng",name:"Fortsätt med lätt vänstersväng in på {way_name}",destination:"Fortsätt med lätt vänstersväng mot {destination}"},"slight right":{default:"Fortsätt med lätt högersväng",name:"Fortsätt med lätt högersväng in på {way_name}",destination:"Fortsätt med lätt högersväng mot {destination}"},uturn:{default:"Gör en U-sväng",name:"Gör en U-sväng in på {way_name}",destination:"Gör en U-sväng mot {destination}"}},notification:{default:{default:"Fortsätt {modifier}",name:"Fortsätt {modifier} på {way_name}",destination:"Fortsätt {modifier} mot {destination}"},uturn:{default:"Gör en U-sväng",name:"Gör en U-sväng in på {way_name}",destination:"Gör en U-sväng mot {destination}"}},"off ramp":{default:{default:"Ta avfarten",name:"Ta avfarten in på {way_name}",destination:"Ta avfarten mot {destination}",exit:"Ta avfart {exit} ",exit_destination:"Ta avfart {exit} mot {destination}"},left:{default:"Ta avfarten till vänster",name:"Ta avfarten till vänster in på {way_name}",destination:"Ta avfarten till vänster mot {destination}",exit:"Ta avfart {exit} till vänster",exit_destination:"Ta avfart {exit} till vänster mot {destination}"},right:{default:"Ta avfarten till höger",name:"Ta avfarten till höger in på {way_name}",destination:"Ta avfarten till höger mot {destination}",exit:"Ta avfart {exit} till höger",exit_destination:"Ta avfart {exit} till höger mot {destination}"},"sharp left":{default:"Ta avfarten till vänster",name:"Ta avfarten till vänster in på {way_name}",destination:"Ta avfarten till vänster mot {destination}",exit:"Ta avfart {exit} till vänster",exit_destination:"Ta avfart {exit} till vänster mot {destination}"},"sharp right":{default:"Ta avfarten till höger",name:"Ta avfarten till höger in på {way_name}",destination:"Ta avfarten till höger mot {destination}",exit:"Ta avfart {exit} till höger",exit_destination:"Ta avfart {exit} till höger mot {destination}"},"slight left":{default:"Ta avfarten till vänster",name:"Ta avfarten till vänster in på {way_name}",destination:"Ta avfarten till vänster mot {destination}",exit:"Ta avfart {exit} till vänster",exit_destination:"Ta avfart{exit} till vänster mot {destination}"},"slight right":{default:"Ta avfarten till höger",name:"Ta avfarten till höger in på {way_name}",destination:"Ta avfarten till höger mot {destination}",exit:"Ta avfart {exit} till höger",exit_destination:"Ta avfart {exit} till höger mot {destination}"}},"on ramp":{default:{default:"Ta påfarten",name:"Ta påfarten in på {way_name}",destination:"Ta påfarten mot {destination}"},left:{default:"Ta påfarten till vänster",name:"Ta påfarten till vänster in på {way_name}",destination:"Ta påfarten till vänster mot {destination}"},right:{default:"Ta påfarten till höger",name:"Ta påfarten till höger in på {way_name}",destination:"Ta påfarten till höger mot {destination}"},"sharp left":{default:"Ta påfarten till vänster",name:"Ta påfarten till vänster in på {way_name}",destination:"Ta påfarten till vänster mot {destination}"},"sharp right":{default:"Ta påfarten till höger",name:"Ta påfarten till höger in på {way_name}",destination:"Ta påfarten till höger mot {destination}"},"slight left":{default:"Ta påfarten till vänster",name:"Ta påfarten till vänster in på {way_name}",destination:"Ta påfarten till vänster mot {destination}"},"slight right":{default:"Ta påfarten till höger",name:"Ta påfarten till höger in på {way_name}",destination:"Ta påfarten till höger mot {destination}"}},rotary:{default:{default:{default:"Kör in i rondellen",name:"I rondellen, ta avfarten in på {way_name}",destination:"I rondellen, ta av mot {destination}"},name:{default:"Kör in i {rotary_name}",name:"I {rotary_name}, ta av in på {way_name}",destination:"I {rotary_name}, ta av mot {destination}"},exit:{default:"I rondellen, ta {exit_number} avfarten",name:"I rondellen, ta {exit_number} avfarten in på {way_name}",destination:"I rondellen, ta {exit_number} avfarten mot {destination}"},name_exit:{default:"I {rotary_name}, ta {exit_number} avfarten",name:"I {rotary_name}, ta {exit_number}  avfarten in på {way_name}",destination:"I {rotary_name}, ta {exit_number} avfarten mot {destination}"}}},roundabout:{default:{exit:{default:"I rondellen, ta {exit_number} avfarten",name:"I rondellen, ta {exit_number} avfarten in på {way_name}",destination:"I rondellen, ta {exit_number} avfarten mot {destination}"},default:{default:"Kör in i rondellen",name:"I rondellen, ta avfarten in på {way_name}",destination:"I rondellen, ta av mot {destination}"}}},"roundabout turn":{default:{default:"Sväng {modifier}",name:"Sväng {modifier} in på {way_name}",destination:"Sväng {modifier} mot {destination}"},left:{default:"Sväng vänster",name:"Sväng vänster in på {way_name}",destination:"Sväng vänster mot {destination}"},right:{default:"Sväng höger",name:"Sväng höger in på {way_name}",destination:"Sväng höger mot {destination}"},straight:{default:"Fortsätt rakt fram",name:"Fortsätt rakt fram in på {way_name}",destination:"Fortsätt rakt fram mot {destination}"}},"exit roundabout":{default:{default:"Kör ut ur rondellen",name:"Kör ut ur rondellen in på {way_name}",destination:"Kör ut ur rondellen mot {destination}"}},"exit rotary":{default:{default:"Kör ut ur rondellen",name:"Kör ut ur rondellen in på {way_name}",destination:"Kör ut ur rondellen mot {destination}"}},turn:{default:{default:"Sväng {modifier}",name:"Sväng {modifier} in på {way_name}",destination:"Sväng {modifier} mot {destination}"},left:{default:"Sväng vänster",name:"Sväng vänster in på {way_name}",destination:"Sväng vänster mot {destination}"},right:{default:"Sväng höger",name:"Sväng höger in på {way_name}",destination:"Sväng höger mot {destination}"},straight:{default:"Kör rakt fram",name:"Kör rakt fram in på {way_name}",destination:"Kör rakt fram mot {destination}"}},"use lane":{no_lanes:{default:"Fortsätt rakt fram"},default:{default:"{lane_instruction}"}}}}},{}],44:[function(e,t,i){t.exports={meta:{capitalizeFirstLetter:!0
vendor: 16,111 bytes, line 12
12},v5:{constants:{ordinalize:{1:"birinci",2:"ikinci",3:"üçüncü",4:"dördüncü",5:"beşinci",6:"altıncı",7:"yedinci",8:"sekizinci",9:"dokuzuncu",10:"onuncu"},direction:{north:"kuzey",northeast:"kuzeydoğu",east:"doğu",southeast:"güneydoğu",south:"güney",southwest:"güneybatı",west:"batı",northwest:"kuzeybatı"},modifier:{left:"sol",right:"sağ","sharp left":"keskin sol","sharp right":"keskin sağ","slight left":"hafif sol","slight right":"hafif sağ",straight:"düz",uturn:"U dönüşü"},lanes:{xo:"Sağda kalın",ox:"Solda kalın",xox:"Ortada kalın",oxo:"Solda veya sağda kalın"}},modes:{ferry:{default:"Vapur kullan",name:"{way_name} vapurunu kullan",destination:"{destination} istikametine giden vapuru kullan"}},phrase:{"two linked by distance":"{instruction_one} ve {distance} sonra {instruction_two}","two linked":"{instruction_one} ve sonra {instruction_two}","one in distance":"{distance} sonra, {instruction_one}","name and ref":"{name} ({ref})","exit with number":"exit {exit}"},arrive:{default:{default:"{nth} hedefinize ulaştınız",upcoming:"{nth} hedefinize ulaştınız",short:"{nth} hedefinize ulaştınız","short-upcoming":"{nth} hedefinize ulaştınız",named:"{waypoint_name} ulaştınız"},left:{default:"{nth} hedefinize ulaştınız, hedefiniz solunuzdadır",upcoming:"{nth} hedefinize ulaştınız, hedefiniz solunuzdadır",short:"{nth} hedefinize ulaştınız","short-upcoming":"{nth} hedefinize ulaştınız",named:"{waypoint_name} ulaştınız, hedefiniz solunuzdadır"},right:{default:"{nth} hedefinize ulaştınız, hedefiniz sağınızdadır",upcoming:"{nth} hedefinize ulaştınız, hedefiniz sağınızdadır",short:"{nth} hedefinize ulaştınız","short-upcoming":"{nth} hedefinize ulaştınız",named:"{waypoint_name} ulaştınız, hedefiniz sağınızdadır"},"sharp left":{default:"{nth} hedefinize ulaştınız, hedefiniz solunuzdadır",upcoming:"{nth} hedefinize ulaştınız, hedefiniz solunuzdadır",short:"{nth} hedefinize ulaştınız","short-upcoming":"{nth} hedefinize ulaştınız",named:"{waypoint_name} ulaştınız, hedefiniz solunuzdadır"},"sharp right":{default:"{nth} hedefinize ulaştınız, hedefiniz sağınızdadır",upcoming:"{nth} hedefinize ulaştınız, hedefiniz sağınızdadır",short:"{nth} hedefinize ulaştınız","short-upcoming":"{nth} hedefinize ulaştınız",named:"{waypoint_name} ulaştınız, hedefiniz sağınızdadır"},"slight right":{default:"{nth} hedefinize ulaştınız, hedefiniz sağınızdadır",upcoming:"{nth} hedefinize ulaştınız, hedefiniz sağınızdadır",short:"{nth} hedefinize ulaştınız","short-upcoming":"{nth} hedefinize ulaştınız",named:"{waypoint_name} ulaştınız, hedefiniz sağınızdadır"},"slight left":{default:"{nth} hedefinize ulaştınız, hedefiniz solunuzdadır",upcoming:"{nth} hedefinize ulaştınız, hedefiniz solunuzdadır",short:"{nth} hedefinize ulaştınız","short-upcoming":"{nth} hedefinize ulaştınız",named:"{waypoint_name} ulaştınız, hedefiniz solunuzdadır"},straight:{default:"{nth} hedefinize ulaştınız, hedefiniz karşınızdadır",upcoming:"{nth} hedefinize ulaştınız, hedefiniz karşınızdadır",short:"{nth} hedefinize ulaştınız","short-upcoming":"{nth} hedefinize ulaştınız",named:"{waypoint_name} ulaştınız, hedefiniz karşınızdadır"}},continue:{default:{default:"{modifier} yöne dön",name:"{way_name} üzerinde kalmak için {modifier} yöne dön",destination:"{destination} istikametinde {modifier} yöne dön",exit:"{way_name} üzerinde {modifier} yöne dön"},straight:{default:"Düz devam edin",name:"{way_name} üzerinde kalmak için düz devam et",destination:"{destination} istikametinde devam et",distance:"{distance} boyunca düz devam et",namedistance:"{distance} boyunca {way_name} üzerinde devam et"},"sharp left":{default:"Sola keskin dönüş yap",name:"{way_name} üzerinde kalmak için sola keskin dönüş yap",destination:"{destination} istikametinde sola keskin dönüş yap"},"sharp right":{default:"Sağa keskin dönüş yap",name:"{way_name} üzerinde kalmak için sağa keskin dönüş yap",destination:"{destination} istikametinde sağa keskin dönüş yap"},"slight left":{default:"Sola hafif dönüş yap",name:"{way_name} üzerinde kalmak için sola hafif dönüş yap",destination:"{destination} istikametinde sola hafif dönüş yap"},"slight right":{default:"Sağa hafif dönüş yap",name:"{way_name} üzerinde kalmak için sağa hafif dönüş yap",destination:"{destination} istikametinde sağa hafif dönüş yap"},uturn:{default:"U dönüşü yapın",name:"Bir U-dönüşü yap ve {way_name} devam et",destination:"{destination} istikametinde bir U-dönüşü yap"}},depart:{default:{default:"{direction} tarafına yönelin",name:"{way_name} üzerinde {direction} yöne git",namedistance:"Head {direction} on {way_name} for {distance}"}},"end of road":{default:{default:"{modifier} tarafa dönün",name:"{way_name} üzerinde {modifier} yöne dön",destination:"{destination} istikametinde {modifier} yöne dön"},straight:{default:"Düz devam edin",name:"{way_name} üzerinde düz devam et",destination:"{destination} istikametinde düz devam et"},uturn:{default:"Yolun sonunda U dönüşü yapın",name:"Yolun sonunda {way_name} üzerinde bir U-dönüşü yap",destination:"Yolun sonunda {destination} istikametinde bir U-dönüşü yap"}},fork:{default:{default:"Yol ayrımında {modifier} yönde kal",name:"{way_name} üzerindeki yol ayrımında {modifier} yönde kal",destination:"{destination} istikametindeki yol ayrımında {modifier} yönde kal"},"slight left":{default:"Çatalın solundan devam edin",name:"Çatalın solundan {way_name} yoluna doğru ",destination:"{destination} istikametindeki yol ayrımında solda kal"},"slight right":{default:"Çatalın sağından devam edin",name:"{way_name} üzerindeki yol ayrımında sağda kal",destination:"{destination} istikametindeki yol ayrımında sağda kal"},"sharp left":{default:"Çatalda keskin sola dönün",name:"{way_name} yoluna doğru sola keskin dönüş yapın",destination:"{destination} istikametinde sola keskin dönüş yap"},"sharp right":{default:"Çatalda keskin sağa dönün",name:"{way_name} yoluna doğru sağa keskin dönüş yapın",destination:"{destination} istikametinde sağa keskin dönüş yap"},uturn:{default:"U dönüşü yapın",name:"{way_name} yoluna U dönüşü yapın",destination:"{destination} istikametinde bir U-dönüşü yap"}},merge:{default:{default:"{modifier} yöne gir",name:"{way_name} üzerinde {modifier} yöne gir",destination:"{destination} istikametinde {modifier} yöne gir"},straight:{default:"düz yöne gir",name:"{way_name} üzerinde düz yöne gir",destination:"{destination} istikametinde düz yöne gir"},"slight left":{default:"Sola gir",name:"{way_name} üzerinde sola gir",destination:"{destination} istikametinde sola gir"},"slight right":{default:"Sağa gir",name:"{way_name} üzerinde sağa gir",destination:"{destination} istikametinde sağa gir"},"sharp left":{default:"Sola gir",name:"{way_name} üzerinde sola gir",destination:"{destination} istikametinde sola gir"},"sharp right":{default:"Sağa gir",name:"{way_name} üzerinde sağa gir",destination:"{destination} istikametinde sağa gir"},uturn:{default:"U dönüşü yapın",name:"{way_name} yoluna U dönüşü yapın",destination:"{destination} istikametinde bir U-dönüşü yap"}},"new name":{default:{default:"{modifier} yönde devam et",name:"{way_name} üzerinde {modifier} yönde devam et",destination:"{destination} istikametinde {modifier} yönde devam et"},straight:{default:"Düz devam et",name:"{way_name} üzerinde devam et",destination:"{destination} istikametinde devam et"},"sharp left":{default:"Sola keskin dönüş yapın",name:"{way_name} yoluna doğru sola keskin dönüş yapın",destination:"{destination} istikametinde sola keskin dönüş yap"},"sharp right":{default:"Sağa keskin dönüş yapın",name:"{way_name} yoluna doğru sağa keskin dönüş yapın",destination:"{destination} istikametinde sağa keskin dönüş yap"},"slight left":{default:"Hafif soldan devam edin",name:"{way_name} üzerinde hafif solda devam et",destination:"{destination} istikametinde hafif solda devam et"},"slight right":{default:"Hafif sağdan devam edin",name:"{way_name} üzerinde hafif sağda devam et",destination:"{destination} istikametinde hafif sağda devam et"},uturn:{default:"U dönüşü yapın",name:"{way_name} yoluna U dönüşü yapın",destination:"{destination} istikametinde bir U-dönüşü yap"}},notification:{default:{default:"{modifier} yönde devam et",name:"{way_name} üzerinde {modifier} yönde devam et",destination:"{destination} istikametinde {modifier} yönde devam et"},uturn:{default:"U dönüşü yapın",name:"{way_name} yoluna U dönüşü yapın",destination:"{destination} istikametinde bir U-dönüşü yap"}},"off ramp":{default:{default:"Bağlantı yoluna geç",name:"{way_name} üzerindeki bağlantı yoluna geç",destination:"{destination} istikametine giden bağlantı yoluna geç",exit:"{exit} çıkış yoluna geç",exit_destination:"{destination} istikametindeki {exit} çıkış yoluna geç"},left:{default:"Soldaki bağlantı yoluna geç",name:"{way_name} üzerindeki sol bağlantı yoluna geç",destination:"{destination} istikametine giden sol bağlantı yoluna geç",exit:"Soldaki {exit} çıkış yoluna geç",exit_destination:"{destination} istikametindeki {exit} sol çıkış yoluna geç"},right:{default:"Sağdaki bağlantı yoluna geç",name:"{way_name} üzerindeki sağ bağlantı yoluna geç",destination:"{destination} istikametine giden sağ bağlantı yoluna geç",exit:"Sağdaki {exit} çıkış yoluna geç",exit_destination:"{destination} istikametindeki {exit} sağ çıkış yoluna geç"},"sharp left":{default:"Soldaki bağlantı yoluna geç",name:"{way_name} üzerindeki sol bağlantı yoluna geç",destination:"{destination} istikametine giden sol bağlantı yoluna geç",exit:"Soldaki {exit} çıkış yoluna geç",exit_destination:"{destination} istikametindeki {exit} sol çıkış yoluna geç"},"sharp right":{default:"Sağdaki bağlantı yoluna geç",name:"{way_name} üzerindeki sağ bağlantı yoluna geç",destination:"{destination} istikametine giden sağ bağlantı yoluna geç",exit:"Sağdaki {exit} çıkış yoluna geç",exit_destination:"{destination} istikametindeki {exit} sağ çıkış yoluna geç"},"slight left":{default:"Soldaki bağlantı yoluna geç",name:"{way_name} üzerindeki sol bağlantı yoluna geç",destination:"{destination} istikametine giden sol bağlantı yoluna geç",exit:"Soldaki {exit} çıkış yoluna geç",exit_destination:"{destination} istikametindeki {exit} sol çıkış yoluna geç"},"slight right":{default:"Sağdaki bağlantı yoluna geç",name:"{way_name} üzerindeki sağ bağlantı yoluna geç",destination:"{destination} istikametine giden sağ bağlantı yoluna geç",exit:"Sağdaki {exit} çıkış yoluna geç",exit_destination:"{destination} istikametindeki {exit} sağ çıkış yoluna geç"}},"on ramp":{default:{default:"Bağlantı yoluna geç",name:"{way_name} üzerindeki bağlantı yoluna geç",destination:"{destination} istikametine giden bağlantı yoluna geç"},left:{default:"Soldaki bağlantı yoluna geç",name:"{way_name} üzerindeki sol bağlantı yoluna geç",destination:"{destination} istikametine giden sol bağlantı yoluna geç"},right:{default:"Sağdaki bağlantı yoluna geç",name:"{way_name} üzerindeki sağ bağlantı yoluna geç",destination:"{destination} istikametine giden sağ bağlantı yoluna geç"},"sharp left":{default:"Soldaki bağlantı yoluna geç",name:"{way_name} üzerindeki sol bağlantı yoluna geç",destination:"{destination} istikametine giden sol bağlantı yoluna geç"},"sharp right":{default:"Sağdaki bağlantı yoluna geç",name:"{way_name} üzerindeki sağ bağlantı yoluna geç",destination:"{destination} istikametine giden sağ bağlantı yoluna geç"},"slight left":{default:"Soldaki bağlantı yoluna geç",name:"{way_name} üzerindeki sol bağlantı yoluna geç",destination:"{destination} istikametine giden sol bağlantı yoluna geç"},"slight right":{default:"Sağdaki bağlantı yoluna geç",name:"{way_name} üzerindeki sağ bağlantı yoluna geç",destination:"{destination} istikametine giden sağ bağlantı yoluna geç"}},rotary:{default:{default:{default:"Dönel kavşağa gir",name:"Dönel kavşağa gir ve {way_name} üzerinde çık",destination:"Dönel kavşağa gir ve {destination} istikametinde çık"},name:{default:"{rotary_name} dönel kavşağa gir",name:"{rotary_name} dönel kavşağa gir ve {way_name} üzerinde çık",destination:"{rotary_name} dönel kavşağa gir ve {destination} istikametinde çık"},exit:{default:"Dönel kavşağa gir ve {exit_number} numaralı çıkışa gir",name:"Dönel kavşağa gir ve {way_name} üzerindeki {exit_number} numaralı çıkışa gir",destination:"Dönel kavşağa gir ve {destination} istikametindeki {exit_number} numaralı çıkışa gir"},name_exit:{default:"{rotary_name} dönel kavşağa gir ve {exit_number} numaralı çıkışa gir",name:"{rotary_name} dönel kavşağa gir ve {way_name} üzerindeki {exit_number} numaralı çıkışa gir",destination:"{rotary_name} dönel kavşağa gir ve {destination} istikametindeki {exit_number} numaralı çıkışa gir"}}},roundabout:{default:{exit:{default:"Göbekli kavşağa gir ve {exit_number} numaralı çıkışa gir",name:"Göbekli kavşağa gir ve {way_name} üzerindeki {exit_number} numaralı çıkışa gir",destination:"Göbekli kavşağa gir ve {destination} istikametindeki {exit_number} numaralı çıkışa gir"},default:{default:"Göbekli kavşağa gir",name:"Göbekli kavşağa gir ve {way_name} üzerinde çık",destination:"Göbekli kavşağa gir ve {destination} istikametinde çık"}}},"roundabout turn":{default:{default:"{modifier} yöne dön",name:"{way_name} üzerinde {modifier} yöne dön",destination:"{destination} istikametinde {modifier} yöne dön"},left:{default:"Sola dön",name:"{way_name} üzerinde sola dön",destination:"{destination} istikametinde sola dön"},right:{default:"Sağa dön",name:"{way_name} üzerinde sağa dön",destination:"{destination} istikametinde sağa dön"},straight:{default:"Düz devam et",name:"{way_name} üzerinde düz devam et",destination:"{destination} istikametinde düz devam et"}},"exit roundabout":{default:{default:"{modifier} yöne dön",name:"{way_name} üzerinde {modifier} yöne dön",destination:"{destination} istikametinde {modifier} yöne dön"},left:{default:"Sola dön",name:"{way_name} üzerinde sola dön",destination:"{destination} istikametinde sola dön"},right:{default:"Sağa dön",name:"{way_name} üzerinde sağa dön",destination:"{destination} istikametinde sağa dön"},straight:{default:"Düz devam et",name:"{way_name} üzerinde düz devam et",destination:"{destination} istikametinde düz devam et"}},"exit rotary":{default:{default:"{modifier} yöne dön",name:"{way_name} üzerinde {modifier} yöne dön",destination:"{destination} istikametinde {modifier} yöne dön"},left:{default:"Sola dön",name:"{way_name} üzerinde sola dön",destination:"{destination} istikametinde sola dön"},right:{default:"Sağa dön",name:"{way_name} üzerinde sağa dön",destination:"{destination} istikametinde sağa dön"},straight:{default:"Düz devam et",name:"{way_name} üzerinde düz devam et",destination:"{destination} istikametinde düz devam et"}},turn:{default:{default:"{modifier} yöne dön",name:"{way_name} üzerinde {modifier} yöne dön",destination:"{destination} istikametinde {modifier} yöne dön"},left:{default:"Sola dönün",name:"{way_name} üzerinde sola dön",destination:"{destination} istikametinde sola dön"},right:{default:"Sağa dönün",name:"{way_name} üzerinde sağa dön",destination:"{destination} istikametinde sağa dön"},straight:{default:"Düz git",name:"{way_name} üzerinde düz git",destination:"{destination} istikametinde düz git"}},"use lane":{no_lanes:{default:"Düz devam edin"},default:{default:"{lane_instruction}"}}}}},{}],45:[function(
12e,t,i){t.exports={meta:{capitalizeFirstLetter:!0
vendor: 20,023 bytes, line 12
12},v5:{constants:{ordinalize:{1:"1й",2:"2й",3:"3й",4:"4й",5:"5й",6:"6й",7:"7й",8:"8й",9:"9й",10:"10й"},direction:{north:"північ",northeast:"північний схід",east:"схід",southeast:"південний схід",south:"південь",southwest:"південний захід",west:"захід",northwest:"північний захід"},modifier:{left:"ліворуч",right:"праворуч","sharp left":"різко ліворуч","sharp right":"різко праворуч","slight left":"плавно ліворуч","slight right":"плавно праворуч",straight:"прямо",uturn:"розворот"},lanes:{xo:"Тримайтесь праворуч",ox:"Тримайтесь ліворуч",xox:"Тримайтесь в середині",oxo:"Тримайтесь праворуч або ліворуч"}},modes:{ferry:{default:"Скористайтесь поромом",name:"Скористайтесь поромом {way_name}",destination:"Скористайтесь поромом у напрямку {destination}"}},phrase:{"two linked by distance":"{instruction_one}, потім, через {distance}, {instruction_two}","two linked":"{instruction_one}, потім {instruction_two}","one in distance":"Через {distance}, {instruction_one}","name and ref":"{name} ({ref})","exit with number":"з'їзд {exit}"},arrive:{default:{default:"Ви прибули у ваш {nth} пункт призначення",upcoming:"Ви наближаєтесь до вашого {nth} місця призначення",short:"Ви прибули","short-upcoming":"Ви прибудете",named:"Ви прибули у {waypoint_name}"},left:{default:"Ви прибули у ваш {nth} пункт призначення, він – ліворуч",upcoming:"Ви наближаєтесь до вашого {nth} місця призначення, ліворуч",short:"Ви прибули","short-upcoming":"Ви прибудете",named:"Ви прибули у {waypoint_name} ліворуч"},right:{default:"Ви прибули у ваш {nth} пункт призначення, він – праворуч",upcoming:"Ви наближаєтесь до вашого {nth} місця призначення, праворуч",short:"Ви прибули","short-upcoming":"Ви прибудете",named:"Ви прибули у {waypoint_name} праворуч"},"sharp left":{default:"Ви прибули у ваш {nth} пункт призначення, він – ліворуч",upcoming:"Ви наближаєтесь до вашого {nth} місця призначення, ліворуч",short:"Ви прибули","short-upcoming":"Ви прибудете",named:"Ви прибули у {waypoint_name} ліворуч"},"sharp right":{default:"Ви прибули у ваш {nth} пункт призначення, він – праворуч",upcoming:"Ви наближаєтесь до вашого {nth} місця призначення, праворуч",short:"Ви прибули","short-upcoming":"Ви прибудете",named:"Ви прибули у {waypoint_name} праворуч"},"slight right":{default:"Ви прибули у ваш {nth} пункт призначення, він – праворуч",upcoming:"Ви наближаєтесь до вашого {nth} місця призначення, праворуч",short:"Ви прибули","short-upcoming":"Ви прибудете",named:"Ви прибули у {waypoint_name} праворуч"},"slight left":{default:"Ви прибули у ваш {nth} пункт призначення, він – ліворуч",upcoming:"Ви наближаєтесь до вашого {nth} місця призначення, ліворуч",short:"Ви прибули","short-upcoming":"Ви прибудете",named:"Ви прибули у {waypoint_name} ліворуч"},straight:{default:"Ви прибули у ваш {nth} пункт призначення, він – прямо перед вами",upcoming:"Ви наближаєтесь до вашого {nth} місця призначення, прямо перед вами",short:"Ви прибули","short-upcoming":"Ви прибудете",named:"Ви прибули у {waypoint_name} прямо перед вами"}},continue:{default:{default:"Поверніть {modifier}",name:"Поверніть{modifier} залишаючись на {way_name}",destination:"Поверніть {modifier} у напрямку {destination}",exit:"Поверніть {modifier} на {way_name}"},straight:{default:"Продовжуйте рух прямо",name:"Продовжуйте рух прямо залишаючись на {way_name}",destination:"Рухайтесь у напрямку {destination}",distance:"Продовжуйте рух прямо {distance}",namedistance:"Продовжуйте рух по {way_name} {distance}"},"sharp left":{default:"Поверніть різко ліворуч",name:"Поверніть різко ліворуч щоб залишитись на {way_name}",destination:"Поверніть різко ліворуч у напрямку {destination}"},"sharp right":{default:"Поверніть різко праворуч",name:"Поверніть різко праворуч щоб залишитись на {way_name}",destination:"Поверніть різко праворуч у напрямку {destination}"},"slight left":{default:"Поверніть різко ліворуч",name:"Поверніть плавно ліворуч щоб залишитись на {way_name}",destination:"Поверніть плавно ліворуч у напрямку {destination}"},"slight right":{default:"Поверніть плавно праворуч",name:"Поверніть плавно праворуч щоб залишитись на {way_name}",destination:"Поверніть плавно праворуч у напрямку {destination}"},uturn:{default:"Здійсніть розворот",name:"Здійсніть розворот та рухайтесь по {way_name}",destination:"Здійсніть розворот у напрямку {destination}"}},depart:{default:{default:"Прямуйте на {direction}",name:"Прямуйте на {direction} по {way_name}",namedistance:"Прямуйте на {direction} по {way_name} {distance}"}},"end of road":{default:{default:"Поверніть {modifier}",name:"Поверніть {modifier} на {way_name}",destination:"Поверніть {modifier} у напрямку {destination}"},straight:{default:"Продовжуйте рух прямо",name:"Продовжуйте рух прямо до {way_name}",destination:"Продовжуйте рух прямо у напрямку {destination}"},uturn:{default:"Здійсніть розворот в кінці дороги",name:"Здійсніть розворот на {way_name} в кінці дороги",destination:"Здійсніть розворот у напрямку {destination} в кінці дороги"}},fork:{default:{default:"На роздоріжжі тримайтеся {modifier}",name:"Тримайтеся {modifier} і рухайтесь на {way_name}",destination:"Тримайтеся {modifier} в напрямку {destination}"},"slight left":{default:"На роздоріжжі тримайтеся ліворуч",name:"Тримайтеся ліворуч і рухайтесь на {way_name}",destination:"Тримайтеся ліворуч в напрямку {destination}"},"slight right":{default:"На роздоріжжі тримайтеся праворуч",name:"Тримайтеся праворуч і рухайтесь на {way_name}",destination:"Тримайтеся праворуч в напрямку {destination}"},"sharp left":{default:"На роздоріжжі різко поверніть ліворуч",name:"Прийміть різко ліворуч на {way_name}",destination:"Прийміть різко ліворуч у напрямку {destination}"},"sharp right":{default:"На роздоріжжі різко поверніть праворуч",name:"Прийміть різко праворуч на {way_name}",destination:"Прийміть різко праворуч у напрямку {destination}"},uturn:{default:"Здійсніть розворот",name:"Здійсніть розворот на {way_name}",destination:"Здійсніть розворот у напрямку {destination}"}},merge:{default:{default:"Приєднайтеся до потоку {modifier}",name:"Приєднайтеся до потоку {modifier} на {way_name}",destination:"Приєднайтеся до потоку {modifier} у напрямку {destination}"},straight:{default:"Приєднайтеся до потоку",name:"Приєднайтеся до потоку на {way_name}",destination:"Приєднайтеся до потоку у напрямку {destination}"},"slight left":{default:"Приєднайтеся до потоку ліворуч",name:"Приєднайтеся до потоку ліворуч на {way_name}",destination:"Приєднайтеся до потоку ліворуч у напрямку {destination}"},"slight right":{default:"Приєднайтеся до потоку праворуч",name:"Приєднайтеся до потоку праворуч на {way_name}",destination:"Приєднайтеся до потоку праворуч у напрямку {destination}"},"sharp left":{default:"Приєднайтеся до потоку ліворуч",name:"Приєднайтеся до потоку ліворуч на {way_name}",destination:"Приєднайтеся до потоку ліворуч у напрямку {destination}"},"sharp right":{default:"Приєднайтеся до потоку праворуч",name:"Приєднайтеся до потоку праворуч на {way_name}",destination:"Приєднайтеся до потоку праворуч у напрямку {destination}"},uturn:{default:"Здійсніть розворот",name:"Здійсніть розворот на {way_name}",destination:"Здійсніть розворот у напрямку {destination}"}},"new name":{default:{default:"Рухайтесь {modifier}",name:"Рухайтесь {modifier} на {way_name}",destination:"Рухайтесь {modifier} у напрямку {destination}"},straight:{default:"Рухайтесь прямо",name:"Рухайтесь по {way_name}",destination:"Рухайтесь у напрямку {destination}"},"sharp left":{default:"Прийміть різко ліворуч",name:"Прийміть різко ліворуч на {way_name}",destination:"Прийміть різко ліворуч у напрямку {destination}"},"sharp right":{default:"Прийміть різко праворуч",name:"Прийміть різко праворуч на {way_name}",destination:"Прийміть різко праворуч у напрямку {destination}"},"slight left":{default:"Рухайтесь плавно ліворуч",name:"Рухайтесь плавно ліворуч на {way_name}",destination:"Рухайтесь плавно ліворуч у напрямку {destination}"},"slight right":{default:"Рухайтесь плавно праворуч",name:"Рухайтесь плавно праворуч на {way_name}",destination:"Рухайтесь плавно праворуч у напрямку {destination}"},uturn:{default:"Здійсніть розворот",name:"Здійсніть розворот на {way_name}",destination:"Здійсніть розворот у напрямку {destination}"}},notification:{default:{default:"Рухайтесь {modifier}",name:"Рухайтесь {modifier} на {way_name}",destination:"Рухайтесь {modifier} у напрямку {destination}"},uturn:{default:"Здійсніть розворот",name:"Здійсніть розворот на {way_name}",destination:"Здійсніть розворот у напрямку {destination}"}},"off ramp":{default:{default:"Рухайтесь на зʼїзд",name:"Рухайтесь на зʼїзд на {way_name}",destination:"Рухайтесь на зʼїзд у напрямку {destination}",exit:"Оберіть з'їзд {exit}",exit_destination:"Оберіть з'їзд {exit} у напрямку {destination}"},left:{default:"Рухайтесь на зʼїзд ліворуч",name:"Рухайтесь на зʼїзд ліворуч на {way_name}",destination:"Рухайтесь на зʼїзд ліворуч у напрямку {destination}",exit:"Оберіть з'їзд {exit} ліворуч",exit_destination:"Оберіть з'їзд {exit} ліворуч у напрямку {destination}"},right:{default:"Рухайтесь на зʼїзд праворуч",name:"Рухайтесь на зʼїзд праворуч на {way_name}",destination:"Рухайтесь на зʼїзд праворуч у напрямку {destination}",exit:"Оберіть з'їзд {exit} праворуч",exit_destination:"Оберіть з'їзд {exit} праворуч у напрямку {destination}"},"sharp left":{default:"Рухайтесь на зʼїзд ліворуч",name:"Рухайтесь на зʼїзд ліворуч на {way_name}",destination:"Рухайтесь на зʼїзд ліворуч у напрямку {destination}",exit:"Оберіть з'їзд {exit} ліворуч",exit_destination:"Оберіть з'їзд {exit} ліворуч у напрямку {destination}"},"sharp right":{default:"Рухайтесь на зʼїзд праворуч",name:"Рухайтесь на зʼїзд праворуч на {way_name}",destination:"Рухайтесь на зʼїзд праворуч у напрямку {destination}",exit:"Оберіть з'їзд {exit} праворуч",exit_destination:"Оберіть з'їзд {exit} праворуч у напрямку {destination}"},"slight left":{default:"Рухайтесь на зʼїзд ліворуч",name:"Рухайтесь на зʼїзд ліворуч на {way_name}",destination:"Рухайтесь на зʼїзд ліворуч у напрямку {destination}",exit:"Оберіть з'їзд {exit} ліворуч",exit_destination:"Оберіть з'їзд {exit} ліворуч у напрямку {destination}"},"slight right":{default:"Рухайтесь на зʼїзд праворуч",name:"Рухайтесь на зʼїзд праворуч на {way_name}",destination:"Рухайтесь на зʼїзд праворуч у напрямку {destination}",exit:"Оберіть з'їзд {exit} праворуч",exit_destination:"Оберіть з'їзд {exit} праворуч у напрямку {destination}"}},"on ramp":{default:{default:"Рухайтесь на вʼїзд",name:"Рухайтесь на вʼїзд на {way_name}",destination:"Рухайтесь на вʼїзд у напрямку {destination}"},left:{default:"Рухайтесь на вʼїзд ліворуч",name:"Рухайтесь на вʼїзд ліворуч на {way_name}",destination:"Рухайтесь на вʼїзд ліворуч у напрямку {destination}"},right:{default:"Рухайтесь на вʼїзд праворуч",name:"Рухайтесь на вʼїзд праворуч на {way_name}",destination:"Рухайтесь на вʼїзд праворуч у напрямку {destination}"},"sharp left":{default:"Рухайтесь на вʼїзд ліворуч",name:"Рухайтесь на вʼїзд ліворуч на {way_name}",destination:"Рухайтесь на вʼїзд ліворуч у напрямку {destination}"},"sharp right":{default:"Рухайтесь на вʼїзд праворуч",name:"Рухайтесь на вʼїзд праворуч на {way_name}",destination:"Рухайтесь на вʼїзд праворуч у напрямку {destination}"},"slight left":{default:"Рухайтесь на вʼїзд ліворуч",name:"Рухайтесь на вʼїзд ліворуч на {way_name}",destination:"Рухайтесь на вʼїзд ліворуч у напрямку {destination}"},"slight right":{default:"Рухайтесь на вʼїзд праворуч",name:"Рухайтесь на вʼїзд праворуч на {way_name}",destination:"Рухайтесь на вʼїзд праворуч у напрямку {destination}"}},rotary:{default:{default:{default:"Рухайтесь по колу",name:"Рухайтесь по колу до {way_name}",destination:"Рухайтесь по колу в напрямку {destination}"},name:{default:"Рухайтесь по {rotary_name}",name:"Рухайтесь по {rotary_name} та поверніть на {way_name}",destination:"Рухайтесь по {rotary_name} та поверніть в напрямку {destination}"},exit:{default:"Рухайтесь по колу та повереніть у {exit_number} з'їзд",name:"Рухайтесь по колу та поверніть у {exit_number} з'їзд на {way_name}",destination:"Рухайтесь по колу та поверніть у {exit_number} з'їзд у напрямку {destination}"},name_exit:{default:"Рухайтесь по {rotary_name} та поверніть у {exit_number} з'їзд",name:"Рухайтесь по {rotary_name} та поверніть у {exit_number} з'їзд на {way_name}",destination:"Рухайтесь по {rotary_name} та поверніть у {exit_number} з'їзд в напрямку {destination}"}}},roundabout:{default:{exit:{default:"Рухайтесь по колу та повереніть у {exit_number} з'їзд",name:"Рухайтесь по колу та поверніть у {exit_number} з'їзд на {way_name}",destination:"Рухайтесь по колу та поверніть у {exit_number} з'їзд у напрямку {destination}"},default:{default:"Рухайтесь по колу",name:"Рухайтесь по колу до {way_name}",destination:"Рухайтесь по колу в напрямку {destination}"}}},"roundabout turn":{default:{default:"Рухайтесь {modifier}",name:"Рухайтесь {modifier} на {way_name}",destination:"Рухайтесь {modifier} в напрямку {destination}"},left:{default:"Поверніть ліворуч",name:"Поверніть ліворуч на {way_name}",destination:"Поверніть ліворуч у напрямку {destination}"},right:{default:"Поверніть праворуч",name:"Поверніть праворуч на {way_name}",destination:"Поверніть праворуч у напрямку {destination}"},straight:{default:"Рухайтесь прямо",name:"Продовжуйте рух прямо до {way_name}",destination:"Продовжуйте рух прямо у напрямку {destination}"}},"exit roundabout":{default:{default:"Залишить коло",name:"Залишить коло на {way_name} зʼїзді",destination:"Залишить коло в напрямку {destination}"}},"exit rotary":{default:{default:"Залишить коло",name:"Залишить коло на {way_name} зʼїзді",destination:"Залишить коло в напрямку {destination}"}},turn:{default:{default:"Рухайтесь {modifier}",name:"Рухайтесь {modifier} на {way_name}",destination:"Рухайтесь {modifier} в напрямку {destination}"},left:{default:"Поверніть ліворуч",name:"Поверніть ліворуч на {way_name}",destination:"Поверніть ліворуч у напрямку {destination}"},right:{default:"Поверніть праворуч",
vendor: 14,097 bytes, line 12
12name:"Поверніть праворуч на {way_name}",destination:"Поверніть праворуч у напрямку {destination}"},straight:{default:"Рухайтесь прямо",name:"Рухайтесь прямо по {way_name}",destination:"Рухайтесь прямо у напрямку {destination}"}},"use lane":{no_lanes:{default:"Продовжуйте рух прямо"},default:{default:"{lane_instruction}"}}}}},{}],46:[function(e,t,i){t.exports={meta:{capitalizeFirstLetter:!0},v5:{constants:{ordinalize:{1:"đầu tiên",2:"thứ 2",3:"thứ 3",4:"thứ 4",5:"thứ 5",6:"thú 6",7:"thứ 7",8:"thứ 8",9:"thứ 9",10:"thứ 10"},direction:{north:"bắc",northeast:"đông bắc",east:"đông",southeast:"đông nam",south:"nam",southwest:"tây nam",west:"tây",northwest:"tây bắc"},modifier:{left:"trái",right:"phải","sharp left":"trái gắt","sharp right":"phải gắt","slight left":"trái nghiêng","slight right":"phải nghiêng",straight:"thẳng",uturn:"ngược"},lanes:{xo:"Đi bên phải",ox:"Đi bên trái",xox:"Đi vào giữa",oxo:"Đi bên trái hay bên phải"}},modes:{ferry:{default:"Lên phà",name:"Lên phà {way_name}",destination:"Lên phà đi {destination}"}},phrase:{"two linked by distance":"{instruction_one}, rồi {distance} nữa thì {instruction_two}","two linked":"{instruction_one}, rồi {instruction_two}","one in distance":"{distance} nữa thì {instruction_one}","name and ref":"{name} ({ref})","exit with number":"lối ra {exit}"},arrive:{default:{default:"Đến nơi {nth}",upcoming:"Đến nơi {nth}",short:"Đến nơi","short-upcoming":"Đến nơi",named:"Đến {waypoint_name}"},left:{default:"Đến nơi {nth} ở bên trái",upcoming:"Đến nơi {nth} ở bên trái",short:"Đến nơi","short-upcoming":"Đến nơi",named:"Đến {waypoint_name} ở bên trái"},right:{default:"Đến nơi {nth} ở bên phải",upcoming:"Đến nơi {nth} ở bên phải",short:"Đến nơi","short-upcoming":"Đến nơi",named:"Đến {waypoint_name} ở bên phải"},"sharp left":{default:"Đến nơi {nth} ở bên trái",upcoming:"Đến nơi {nth} ở bên trái",short:"Đến nơi","short-upcoming":"Đến nơi",named:"Đến {waypoint_name} ở bên trái"},"sharp right":{default:"Đến nơi {nth} ở bên phải",upcoming:"Đến nơi {nth} ở bên phải",short:"Đến nơi","short-upcoming":"Đến nơi",named:"Đến {waypoint_name} ở bên phải"},"slight right":{default:"Đến nơi {nth} ở bên phải",upcoming:"Đến nơi {nth} ở bên phải",short:"Đến nơi","short-upcoming":"Đến nơi",named:"Đến {waypoint_name} ở bên phải"},"slight left":{default:"Đến nơi {nth} ở bên trái",upcoming:"Đến nơi {nth} ở bên trái",short:"Đến nơi","short-upcoming":"Đến nơi",named:"Đến {waypoint_name} ở bên trái"},straight:{default:"Đến nơi {nth} ở trước mặt",upcoming:"Đến nơi {nth} ở trước mặt",short:"Đến nơi","short-upcoming":"Đến nơi",named:"Đến {waypoint_name} ở trước mặt"}},continue:{default:{default:"Quẹo {modifier}",name:"Quẹo {modifier} để chạy tiếp trên {way_name}",destination:"Quẹo {modifier} về {destination}",exit:"Quẹo {modifier} vào {way_name}"},straight:{default:"Chạy thẳng",name:"Chạy tiếp trên {way_name}",destination:"Chạy tiếp về {destination}",distance:"Chạy thẳng cho {distance}",namedistance:"Chạy tiếp trên {way_name} cho {distance}"},"sharp left":{default:"Quẹo gắt bên trái",name:"Quẹo gắt bên trái để chạy tiếp trên {way_name}",destination:"Quẹo gắt bên trái về {destination}"},"sharp right":{default:"Quẹo gắt bên phải",name:"Quẹo gắt bên phải để chạy tiếp trên {way_name}",destination:"Quẹo gắt bên phải về {destination}"},"slight left":{default:"Nghiêng về bên trái",name:"Nghiêng về bên trái để chạy tiếp trên {way_name}",destination:"Nghiêng về bên trái về {destination}"},"slight right":{default:"Nghiêng về bên phải",name:"Nghiêng về bên phải để chạy tiếp trên {way_name}",destination:"Nghiêng về bên phải về {destination}"},uturn:{default:"Quẹo ngược lại",name:"Quẹo ngược lại trên {way_name}",destination:"Quẹo ngược về {destination}"}},depart:{default:{default:"Đi về hướng {direction}",name:"Đi về hướng {direction} trên {way_name}",namedistance:"Đi về hướng {direction} trên {way_name} cho {distance}"}},"end of road":{default:{default:"Quẹo {modifier}",name:"Quẹo {modifier} vào {way_name}",destination:"Quẹo {modifier} về {destination}"},straight:{default:"Chạy thẳng",name:"Chạy tiếp trên {way_name}",destination:"Chạy tiếp về {destination}"},uturn:{default:"Quẹo ngược lại tại cuối đường",name:"Quẹo ngược vào {way_name} tại cuối đường",destination:"Quẹo ngược về {destination} tại cuối đường"}},fork:{default:{default:"Đi bên {modifier} ở ngã ba",name:"Giữ bên {modifier} vào {way_name}",destination:"Giữ bên {modifier} về {destination}"},"slight left":{default:"Nghiêng về bên trái ở ngã ba",name:"Giữ bên trái vào {way_name}",destination:"Giữ bên trái về {destination}"},"slight right":{default:"Nghiêng về bên phải ở ngã ba",name:"Giữ bên phải vào {way_name}",destination:"Giữ bên phải về {destination}"},"sharp left":{default:"Quẹo gắt bên trái ở ngã ba",name:"Quẹo gắt bên trái vào {way_name}",destination:"Quẹo gắt bên trái về {destination}"},"sharp right":{default:"Quẹo gắt bên phải ở ngã ba",name:"Quẹo gắt bên phải vào {way_name}",destination:"Quẹo gắt bên phải về {destination}"},uturn:{default:"Quẹo ngược lại",name:"Quẹo ngược lại {way_name}",destination:"Quẹo ngược lại về {destination}"}},merge:{default:{default:"Nhập sang {modifier}",name:"Nhập sang {modifier} vào {way_name}",destination:"Nhập sang {modifier} về {destination}"},straight:{default:"Nhập đường",name:"Nhập vào {way_name}",destination:"Nhập đường về {destination}"},"slight left":{default:"Nhập sang trái",name:"Nhập sang trái vào {way_name}",destination:"Nhập sang trái về {destination}"},"slight right":{default:"Nhập sang phải",name:"Nhập sang phải vào {way_name}",destination:"Nhập sang phải về {destination}"},"sharp left":{default:"Nhập sang trái",name:"Nhập sang trái vào {way_name}",destination:"Nhập sang trái về {destination}"},"sharp right":{default:"Nhập sang phải",name:"Nhập sang phải vào {way_name}",destination:"Nhập sang phải về {destination}"},uturn:{default:"Quẹo ngược lại",name:"Quẹo ngược lại {way_name}",destination:"Quẹo ngược lại về {destination}"}},"new name":{default:{default:"Chạy tiếp bên {modifier}",name:"Chạy tiếp bên {modifier} trên {way_name}",destination:"Chạy tiếp bên {modifier} về {destination}"},straight:{default:"Chạy thẳng",name:"Chạy tiếp trên {way_name}",destination:"Chạy tiếp về {destination}"},"sharp left":{default:"Quẹo gắt bên trái",name:"Quẹo gắt bên trái vào {way_name}",destination:"Quẹo gắt bên trái về {destination}"},"sharp right":{default:"Quẹo gắt bên phải",name:"Quẹo gắt bên phải vào {way_name}",destination:"Quẹo gắt bên phải về {destination}"},"slight left":{default:"Nghiêng về bên trái",name:"Nghiêng về bên trái vào {way_name}",destination:"Nghiêng về bên trái về {destination}"},"slight right":{default:"Nghiêng về bên phải",name:"Nghiêng về bên phải vào {way_name}",destination:"Nghiêng về bên phải về {destination}"},uturn:{default:"Quẹo ngược lại",name:"Quẹo ngược lại {way_name}",destination:"Quẹo ngược lại về {destination}"}},notification:{default:{default:"Chạy tiếp bên {modifier}",name:"Chạy tiếp bên {modifier} trên {way_name}",destination:"Chạy tiếp bên {modifier} về {destination}"},uturn:{default:"Quẹo ngược lại",name:"Quẹo ngược lại {way_name}",destination:"Quẹo ngược lại về {destination}"}},"off ramp":{default:{default:"Đi đường nhánh",name:"Đi đường nhánh {way_name}",destination:"Đi đường nhánh về {destination}",exit:"Đi theo lối ra {exit}",exit_destination:"Đi theo lối ra {exit} về {destination}"},left:{default:"Đi đường nhánh bên trái",name:"Đi đường nhánh {way_name} bên trái",destination:"Đi đường nhánh bên trái về {destination}",exit:"Đi theo lối ra {exit} bên trái",exit_destination:"Đi theo lối ra {exit} bên trái về {destination}"},right:{default:"Đi đường nhánh bên phải",name:"Đi đường nhánh {way_name} bên phải",destination:"Đi đường nhánh bên phải về {destination}",exit:"Đi theo lối ra {exit} bên phải",exit_destination:"Đi theo lối ra {exit} bên phải về {destination}"},"sharp left":{default:"Đi đường nhánh bên trái",name:"Đi đường nhánh {way_name} bên trái",destination:"Đi đường nhánh bên trái về {destination}",exit:"Đi theo lối ra {exit} bên trái",exit_destination:"Đi theo lối ra {exit} bên trái về {destination}"},"sharp right":{default:"Đi đường nhánh bên phải",name:"Đi đường nhánh {way_name} bên phải",destination:"Đi đường nhánh bên phải về {destination}",exit:"Đi theo lối ra {exit} bên phải",exit_destination:"Đi theo lối ra {exit} bên phải về {destination}"},"slight left":{default:"Đi đường nhánh bên trái",name:"Đi đường nhánh {way_name} bên trái",destination:"Đi đường nhánh bên trái về {destination}",exit:"Đi theo lối ra {exit} bên trái",exit_destination:"Đi theo lối ra {exit} bên trái về {destination}"},"slight right":{default:"Đi đường nhánh bên phải",name:"Đi đường nhánh {way_name} bên phải",destination:"Đi đường nhánh bên phải về {destination}",exit:"Đi theo lối ra {exit} bên phải",exit_destination:"Đi theo lối ra {exit} bên phải về {destination}"}},"on ramp":{default:{default:"Đi đường nhánh",name:"Đi đường nhánh {way_name}",destination:"Đi đường nhánh về {destination}"},left:{default:"Đi đường nhánh bên trái",name:"Đi đường nhánh {way_name} bên trái",destination:"Đi đường nhánh bên trái về {destination}"},right:{default:"Đi đường nhánh bên phải",name:"Đi đường nhánh {way_name} bên phải",destination:"Đi đường nhánh bên phải về {destination}"},"sharp left":{default:"Đi đường nhánh bên trái",name:"Đi đường nhánh {way_name} bên trái",destination:"Đi đường nhánh bên trái về {destination}"},"sharp right":{default:"Đi đường nhánh bên phải",name:"Đi đường nhánh {way_name} bên phải",destination:"Đi đường nhánh bên phải về {destination}"},"slight left":{default:"Đi đường nhánh bên trái",name:"Đi đường nhánh {way_name} bên trái",destination:"Đi đường nhánh bên trái về {destination}"},"slight right":{default:"Đi đường nhánh bên phải",name:"Đi đường nhánh {way_name} bên phải",destination:"Đi đường nhánh bên phải về {destination}"}},rotary:{default:{default:{default:"Đi vào bùng binh",name:"Đi vào bùng binh và ra tại {way_name}",destination:"Đi vào bùng binh và ra về {destination}"},name:{default:"Đi vào {rotary_name}",name:"Đi vào {rotary_name} và ra tại {way_name}",destination:"Đi và {rotary_name} và ra về {destination}"},exit:{default:"Đi vào bùng binh và ra tại đường {exit_number}",name:"Đi vào bùng binh và ra tại đường {exit_number} tức {way_name}",destination:"Đi vào bùng binh và ra tại đường {exit_number} về {destination}"},name_exit:{default:"Đi vào {rotary_name} và ra tại đường {exit_number}",name:"Đi vào {rotary_name} và ra tại đường {exit_number} tức {way_name}",destination:"Đi vào {rotary_name} và ra tại đường {exit_number} về {destination}"}}},roundabout:{default:{exit:{default:"Đi vào bùng binh và ra tại đường {exit_number}",name:"Đi vào bùng binh và ra tại đường {exit_number} tức {way_name}",destination:"Đi vào bùng binh và ra tại đường {exit_number} về {destination}"},default:{default:"Đi vào bùng binh",name:"Đi vào bùng binh và ra tại {way_name}",destination:"Đi vào bùng binh và ra về {destination}"}}},"roundabout turn":{default:{default:"Quẹo {modifier}",name:"Quẹo {modifier} vào {way_name}",destination:"Quẹo {modifier} về {destination}"},left:{default:"Quẹo trái",name:"Quẹo trái vào {way_name}",destination:"Quẹo trái về {destination}"},right:{default:"Quẹo phải",name:"Quẹo phải vào {way_name}",destination:"Quẹo phải về {destination}"},straight:{default:"Chạy thẳng",name:"Chạy tiếp trên {way_name}",destination:"Chạy tiếp về {destination}"}},"exit roundabout":{default:{default:"Ra bùng binh",name:"Ra bùng binh vào {way_name}",destination:"Ra bùng binh về {destination}"}},"exit rotary":{default:{default:"Ra bùng binh",name:"Ra bùng binh vào {way_name}",destination:"Ra bùng binh về {destination}"}},turn:{default:{default:"Quẹo {modifier}",name:"Quẹo {modifier} vào {way_name}",destination:"Quẹo {modifier} về {destination}"},left:{default:"Quẹo trái",name:"Quẹo trái vào {way_name}",destination:"Quẹo trái về {destination}"},right:{default:"Quẹo phải",name:"Quẹo phải vào {way_name}",destination:"Quẹo phải về {destination}"},straight:{default:"Chạy thẳng",name:"Chạy thẳng vào {way_name}",destination:"Chạy thẳng về {destination}"}},"use lane":{no_lanes:{default:"Chạy thẳng"},default:{default:"{lane_instruction}"}}}}},{}],47:[function(e,t,i){t.exports={meta:{capitalizeFirstLetter:!1
vendor: 13,134 bytes, line 12
12},v5:{constants:{ordinalize:{1:"第一",2:"第二",3:"第三",4:"第四",5:"第五",6:"第六",7:"第七",8:"第八",9:"第九",10:"第十"},direction:{north:"北",northeast:"东北",east:"东",southeast:"东南",south:"南",southwest:"西南",west:"西",northwest:"西北"},modifier:{left:"向左",right:"向右","sharp left":"急向左","sharp right":"急向右","slight left":"稍向左","slight right":"稍向右",straight:"直行",uturn:"调头"},lanes:{xo:"靠右行驶",ox:"靠左行驶",xox:"保持在道路中间行驶",oxo:"保持在道路左侧或右侧行驶"}},modes:{ferry:{default:"乘坐轮渡",name:"乘坐{way_name}轮渡",destination:"乘坐开往{destination}的轮渡"}},phrase:{"two linked by distance":"{instruction_one},{distance}后{instruction_two}","two linked":"{instruction_one},随后{instruction_two}","one in distance":"{distance}后{instruction_one}","name and ref":"{name}({ref})","exit with number":"出口{exit}"},arrive:{default:{default:"您已经到达您的{nth}个目的地",upcoming:"您即将到达您的{nth}个目的地",short:"已到达目的地","short-upcoming":"即将到达目的地",named:"您已到达{waypoint_name}"},left:{default:"您已经到达您的{nth}个目的地,目的地在道路左侧",upcoming:"您即将到达您的{nth}个目的地,目的地在道路左侧",short:"已到达目的地","short-upcoming":"即将到达目的地",named:"您已到达{waypoint_name},目的地在您左边。"},right:{default:"您已经到达您的{nth}个目的地,目的地在道路右侧",upcoming:"您即将到达您的{nth}个目的地,目的地在道路右侧",short:"已到达目的地","short-upcoming":"即将到达目的地",named:"您已到达{waypoint_name},目的地在您右边。"},"sharp left":{default:"您已经到达您的{nth}个目的地,目的地在道路左侧",upcoming:"您即将到达您的{nth}个目的地,目的地在道路左侧",short:"已到达目的地","short-upcoming":"即将到达目的地",named:"您已到达{waypoint_name},目的地在您左边。"},"sharp right":{default:"您已经到达您的{nth}个目的地,目的地在道路右侧",upcoming:"您即将到达您的{nth}个目的地,目的地在道路右侧",short:"已到达目的地","short-upcoming":"即将到达目的地",named:"您已到达{waypoint_name},目的地在您右边。"},"slight right":{default:"您已经到达您的{nth}个目的地,目的地在道路左侧",upcoming:"您即将到达您的{nth}个目的地,目的地在道路左侧",short:"已到达目的地","short-upcoming":"即将到达目的地",named:"您已到达{waypoint_name},目的地在您右边。"},"slight left":{default:"您已经到达您的{nth}个目的地,目的地在道路右侧",upcoming:"您即将到达您的{nth}个目的地,目的地在道路右侧",short:"已到达目的地","short-upcoming":"即将到达目的地",named:"您已到达{waypoint_name},目的地在您左边。"},straight:{default:"您已经到达您的{nth}个目的地,目的地在您正前方",upcoming:"您即将到达您的{nth}个目的地,目的地在您正前方",short:"已到达目的地","short-upcoming":"即将到达目的地",named:"您已到达{waypoint_name},目的地在您前方。"}},continue:{default:{default:"{modifier}行驶",name:"在{way_name}上继续{modifier}行驶",destination:"{modifier}行驶,{destination}方向",exit:"{modifier}行驶,驶入{way_name}"},straight:{default:"继续直行",name:"在{way_name}上继续直行",destination:"继续直行,前往{destination}",distance:"继续直行{distance}",namedistance:"继续在{way_name}上直行{distance}"},"sharp left":{default:"前方左急转弯",name:"前方左急转弯,继续在{way_name}上行驶",destination:"左急转弯,前往{destination}"},"sharp right":{default:"前方右急转弯",name:"前方右急转弯,继续在{way_name}上行驶",destination:"右急转弯,前往{destination}"},"slight left":{default:"前方稍向左转",name:"前方稍向左转,继续在{way_name}上行驶",destination:"稍向左转,前往{destination}"},"slight right":{default:"前方稍向右转",name:"前方稍向右转,继续在{way_name}上行驶",destination:"前方稍向右转,前往{destination}"},uturn:{default:"前方调头",name:"前方调头,继续在{way_name}上行驶",destination:"前方调头,前往{destination}"}},depart:{default:{default:"出发向{direction}",name:"出发向{direction},驶入{way_name}",namedistance:"出发向{direction},在{way_name}上继续行驶{distance}"}},"end of road":{default:{default:"{modifier}行驶",name:"{modifier}行驶,驶入{way_name}",destination:"{modifier}行驶,前往{destination}"},straight:{default:"继续直行",name:"继续直行,驶入{way_name}",destination:"继续直行,前往{destination}"},uturn:{default:"在道路尽头调头",name:"在道路尽头调头驶入{way_name}",destination:"在道路尽头调头,前往{destination}"}},fork:{default:{default:"在岔道保持{modifier}",name:"在岔道口保持{modifier},驶入{way_name}",destination:"在岔道口保持{modifier},前往{destination}"},"slight left":{default:"在岔道口保持左侧行驶",name:"在岔道口保持左侧行驶,驶入{way_name}",destination:"在岔道口保持左侧行驶,前往{destination}"},"slight right":{default:"在岔道口保持右侧行驶",name:"在岔道口保持右侧行驶,驶入{way_name}",destination:"在岔道口保持右侧行驶,前往{destination}"},"sharp left":{default:"在岔道口左急转弯",name:"在岔道口左急转弯,驶入{way_name}",destination:"在岔道口左急转弯,前往{destination}"},"sharp right":{default:"在岔道口右急转弯",name:"在岔道口右急转弯,驶入{way_name}",destination:"在岔道口右急转弯,前往{destination}"},uturn:{default:"前方调头",name:"前方调头,驶入{way_name}",destination:"前方调头,前往{destination}"}},merge:{default:{default:"{modifier}并道",name:"{modifier}并道,驶入{way_name}",destination:"{modifier}并道,前往{destination}"},straight:{default:"直行并道",name:"直行并道,驶入{way_name}",destination:"直行并道,前往{destination}"},"slight left":{default:"稍向左并道",name:"稍向左并道,驶入{way_name}",destination:"稍向左并道,前往{destination}"},"slight right":{default:"稍向右并道",name:"稍向右并道,驶入{way_name}",destination:"稍向右并道,前往{destination}"},"sharp left":{default:"急向左并道",name:"急向左并道,驶入{way_name}",destination:"急向左并道,前往{destination}"},"sharp right":{default:"急向右并道",name:"急向右并道,驶入{way_name}",destination:"急向右并道,前往{destination}"},uturn:{default:"前方调头",name:"前方调头,驶入{way_name}",destination:"前方调头,前往{destination}"}},"new name":{default:{default:"继续{modifier}",name:"继续{modifier},驶入{way_name}",destination:"继续{modifier},前往{destination}"},straight:{default:"继续直行",name:"继续在{way_name}上直行",destination:"继续直行,前往{destination}"},"sharp left":{default:"前方左急转弯",name:"前方左急转弯,驶入{way_name}",destination:"左急转弯,前往{destination}"},"sharp right":{default:"前方右急转弯",name:"前方右急转弯,驶入{way_name}",destination:"右急转弯,前往{destination}"},"slight left":{default:"继续稍向左",name:"继续稍向左,驶入{way_name}",destination:"继续稍向左,前往{destination}"},"slight right":{default:"继续稍向右",name:"继续稍向右,驶入{way_name}",destination:"继续稍向右,前往{destination}"},uturn:{default:"前方调头",name:"前方调头,上{way_name}",destination:"前方调头,前往{destination}"}},notification:{default:{default:"继续{modifier}",name:"继续{modifier},驶入{way_name}",destination:"继续{modifier},前往{destination}"},uturn:{default:"前方调头",name:"前方调头,驶入{way_name}",destination:"前方调头,前往{destination}"}},"off ramp":{default:{default:"下匝道",name:"下匝道,驶入{way_name}",destination:"下匝道,前往{destination}",exit:"从{exit}出口驶出",exit_destination:"从{exit}出口驶出,前往{destination}"},left:{default:"下左侧匝道",name:"下左侧匝道,上{way_name}",destination:"下左侧匝道,前往{destination}",exit:"从左侧{exit}出口驶出",exit_destination:"从左侧{exit}出口驶出,前往{destination}"},right:{default:"下右侧匝道",name:"下右侧匝道,驶入{way_name}",destination:"下右侧匝道,前往{destination}",exit:"从右侧{exit}出口驶出",exit_destination:"从右侧{exit}出口驶出,前往{destination}"},"sharp left":{default:"急向左下匝道",name:"急向左下匝道,驶入{way_name}",destination:"急向左下匝道,前往{destination}",exit:"从左侧{exit}出口驶出",exit_destination:"从左侧{exit}出口驶出,前往{destination}"},"sharp right":{default:"急向右下匝道",name:"急向右下匝道,驶入{way_name}",destination:"急向右下匝道,前往{destination}",exit:"从右侧{exit}出口驶出",exit_destination:"从右侧{exit}出口驶出,前往{destination}"},"slight left":{default:"稍向左下匝道",name:"稍向左下匝道,驶入{way_name}",destination:"稍向左下匝道,前往{destination}",exit:"从左侧{exit}出口驶出",exit_destination:"从左侧{exit}出口驶出,前往{destination}"},"slight right":{default:"稍向右下匝道",name:"稍向右下匝道,驶入{way_name}",destination:"稍向右下匝道,前往{destination}",exit:"从右侧{exit}出口驶出",exit_destination:"从右侧{exit}出口驶出,前往{destination}"}},"on ramp":{default:{default:"上匝道",name:"上匝道,驶入{way_name}",destination:"上匝道,前往{destination}"},left:{default:"上左侧匝道",name:"上左侧匝道,驶入{way_name}",destination:"上左侧匝道,前往{destination}"},right:{default:"上右侧匝道",name:"上右侧匝道,驶入{way_name}",destination:"上右侧匝道,前往{destination}"},"sharp left":{default:"急向左上匝道",name:"急向左上匝道,驶入{way_name}",destination:"急向左上匝道,前往{destination}"},"sharp right":{default:"急向右上匝道",name:"急向右上匝道,驶入{way_name}",destination:"急向右上匝道,前往{destination}"},"slight left":{default:"稍向左上匝道",name:"稍向左上匝道,驶入{way_name}",destination:"稍向左上匝道,前往{destination}"},"slight right":{default:"稍向右上匝道",name:"稍向右上匝道,驶入{way_name}",destination:"稍向右上匝道,前往{destination}"}},rotary:{default:{default:{default:"进入环岛",name:"通过环岛后驶入{way_name}",destination:"通过环岛后前往{destination}"},name:{default:"进入{rotary_name}环岛",name:"通过{rotary_name}环岛后驶入{way_name}",destination:"通过{rotary_name}环岛后前往{destination}"},exit:{default:"进入环岛后从{exit_number}出口驶出",name:"进入环岛后从{exit_number}出口驶出,上{way_name}",destination:"进入环岛后从{exit_number}出口驶出,前往{destination}"},name_exit:{default:"进入{rotary_name}环岛后从{exit_number}出口驶出",name:"进入{rotary_name}环岛后从{exit_number}出口驶出,上{way_name}",destination:"进入{rotary_name}环岛后从{exit_number}出口驶出,前往{destination}"}}},roundabout:{default:{exit:{default:"进入环岛后从{exit_number}出口驶出",name:"进入环岛后从{exit_number}出口驶出,上{way_name}",destination:"进入环岛后从{exit_number}出口驶出,前往{destination}"},default:{default:"进入环岛",name:"通过环岛后驶入{way_name}",destination:"通过环岛后前往{destination}"}}},"roundabout turn":{default:{default:"{modifier}转弯",name:"{modifier}转弯,驶入{way_name}",destination:"{modifier}转弯,前往{destination}"},left:{default:"左转",name:"左转,驶入{way_name}",destination:"左转,前往{destination}"},right:{default:"右转",name:"右转,驶入{way_name}",destination:"右转,前往{destination}"},straight:{default:"继续直行",name:"继续直行,驶入{way_name}",destination:"继续直行,前往{destination}"}},"exit roundabout":{default:{default:"驶离环岛",name:"驶离环岛,驶入{way_name}",destination:"驶离环岛,前往{destination}"}},"exit rotary":{default:{default:"驶离环岛",name:"驶离环岛,驶入{way_name}",destination:"驶离环岛,前往{destination}"}},turn:{default:{default:"{modifier}转弯",name:"{modifier}转弯,驶入{way_name}",destination:"{modifier}转弯,前往{destination}"},left:{default:"左转",name:"左转,驶入{way_name}",destination:"左转,前往{destination}"},right:{default:"右转",name:"右转,驶入{way_name}",destination:"右转,前往{destination}"},straight:{default:"直行",name:"直行,驶入{way_name}",destination:"直行,前往{destination}"}},"use lane":{no_lanes:{default:"继续直行"},default:{default:"{lane_instruction}"}}}}},{}],48:[function(
12e,t,i){(function(e){!function(){"use strict";var i="undefined"!=typeof window?window.L:void 0!==e?e.L:null;t.exports=i.Class.extend({options:{timeout:500,blurTimeout:100,noResultsMessage:"No results found."},initialize:function(e,t,a,n){i.setOptions(this,n),this._elem=e,this._resultFn=n.resultFn?i.Util.bind(n.resultFn,n.resultContext):null,this._autocomplete=n.autocompleteFn?i.Util.bind(n.autocompleteFn,n.autocompleteContext):null,this._selectFn=i.Util.bind(t,a),this._container=i.DomUtil.create("div","leaflet-routing-geocoder-result"),this._resultTable=i.DomUtil.create("table","",this._container),i.DomEvent.addListener(this._elem,"input",this._keyPressed,this),i.DomEvent.addListener(this._elem,"keypress",this._keyPressed,this),i.DomEvent.addListener(this._elem,"keydown",this._keyDown,this),i.DomEvent.addListener(this._elem,"blur",(function(){this._isOpen&&this.close()}),this)},close:function(){i.DomUtil.removeClass(this._container,"leaflet-routing-geocoder-result-open"),this._isOpen=!1},_open:function(){var e=this._elem.getBoundingClientRect();if(!this._container.parentElement){var t=void 0!==window.pageXOffset?window.pageXOffset:(document.documentElement||document.body.parentNode||document.body).scrollLeft,a=void 0!==window.pageYOffset?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop;this._container.style.left=e.left+t+"px",this._container.style.top=e.bottom+a+"px",this._container.style.width=e.right-e.left+"px",document.body.appendChild(this._container)}i.DomUtil.addClass(this._container,"leaflet-routing-geocoder-result-open"),this._isOpen=!0},_setResults:function(e){var t,a,n,o;for(delete this._selection,this._results=e;this._resultTable.firstChild;)this._resultTable.removeChild(this._resultTable.firstChild);for(t=0;t<e.length;t++)(a=i.DomUtil.create("tr","",this._resultTable)).setAttribute("data-result-index",t),n=i.DomUtil.create("td","",a),o=document.createTextNode(e[t].name),n.appendChild(o),i.DomEvent.addListener(n,"mousedown",i.DomEvent.preventDefault),i.DomEvent.addListener(n,"click",this._createClickListener(e[t]));t||(a=i.DomUtil.create("tr","",this._resultTable),(n=i.DomUtil.create("td","leaflet-routing-geocoder-no-results",a)).innerHTML=this.options.noResultsMessage),this._open(),e.length>0&&this._select(1)},_createClickListener:function(e){var t=this._resultSelected(e);return i.bind((function(){this._elem.blur(),t()}),this)},_resultSelected:function(e){return i.bind((function(){this.close(),this._elem.value=e.name,this._lastCompletedText=e.name,this._selectFn(e)}),this)},_keyPressed:function(e){var t;return this._isOpen&&13===e.keyCode&&this._selection?(t=parseInt(this._selection.getAttribute("data-result-index"),10),this._resultSelected(this._results[t])(),void i.DomEvent.preventDefault(e)):13===e.keyCode?(i.DomEvent.preventDefault(e),void this._complete(this._resultFn,!0)):this._autocomplete&&document.activeElement===this._elem?(this._timer&&clearTimeout(this._timer),void(this._timer=setTimeout(i.Util.bind((function(){this._complete(this._autocomplete)}),this),this.options.timeout))):void this._unselect()},_select:function(e){var t=this._selection;t&&(i.DomUtil.removeClass(t.firstChild,"leaflet-routing-geocoder-selected"),t=t[e>0?"nextSibling":"previousSibling"]),t||(t=this._resultTable[e>0?"firstChild":"lastChild"]),t&&(i.DomUtil.addClass(t.firstChild,"leaflet-routing-geocoder-selected"),this._selection=t)},_unselect:function(){this._selection&&i.DomUtil.removeClass(this._selection.firstChild,"leaflet-routing-geocoder-selected"),delete this._selection},_keyDown:function(e){if(this._isOpen)switch(e.keyCode){case 27:return this.close(),void i.DomEvent.preventDefault(e);case 38:return this._select(-1),void i.DomEvent.preventDefault(e);case 40:return this._select(1),void i.DomEvent.preventDefault(e)}},_complete:function(e,t){var i=this._elem.value;function a(e){this._lastCompletedText=i,t&&1===e.length?this._resultSelected(e[0])():this._setResults(e)}i&&(i!==this._lastCompletedText?e(i,a,this):t&&a.call(this,this._results))}})}()}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],49:[function(e,t,i){(function(i){!function(){"use strict";var a="undefined"!=typeof window?window.L:void 0!==i?i.L:null,n=e("./itinerary"),o=e("./line"),r=e("./plan"),s=e("./osrm-v1");t.exports=n.extend({options:{fitSelectedRoutes:"smart",routeLine:function(e,t){return new o(e,t)},autoRoute:!0,routeWhileDragging:!1,routeDragInterval:500,waypointMode:"connect",showAlternatives:!1,defaultErrorHandler:function(e){console.error("Routing error:",e.error)}},initialize:function(e){a.Util.setOptions(this,e),this._router=this.options.router||new s(e),this._plan=this.options.plan||new r(this.options.waypoints,e),this._requestCount=0,n.prototype.initialize.call(this,e),this.on("routeselected",this._routeSelected,this),this.options.defaultErrorHandler&&this.on("routingerror",this.options.defaultErrorHandler),this._plan.on("waypointschanged",this._onWaypointsChanged,this),e.routeWhileDragging&&this._setupRouteDragging()},_onZoomEnd:function(){if(this._selectedRoute&&this._router.requiresMoreDetail){var e=this._map;this._router.requiresMoreDetail(this._selectedRoute,e.getZoom(),e.getBounds())&&this.route({callback:a.bind((function(e,t){var i;if(!e){for(i=0;i<t.length;i++)this._routes[i].properties=t[i].properties;this._updateLineCallback(e,t)}}),this),simplifyGeometry:!1,geometryOnly:!0})}},onAdd:function(e){this.options.autoRoute&&this.route();var t=n.prototype.onAdd.call(this,e);return this._map=e,this._map.addLayer(this._plan),this._map.on("zoomend",this._onZoomEnd,this),this._plan.options.geocoder&&t.insertBefore(this._plan.createGeocoders(),t.firstChild),t},onRemove:function(e){if(e.off("zoomend",this._onZoomEnd,this),this._line&&e.removeLayer(this._line),e.removeLayer(this._plan),this._alternatives&&this._alternatives.length>0)for(var t=0,i=this._alternatives.length;t<i;t++)e.removeLayer(this._alternatives[t]);return n.prototype.onRemove.call(this,e)},getWaypoints:function(){return this._plan.getWaypoints()},setWaypoints:function(e){return this._plan.setWaypoints(e),this},spliceWaypoints:function(){return this._plan.spliceWaypoints.apply(this._plan,arguments)},getPlan:function(){return this._plan},getRouter:function(){return this._router},_routeSelected:function(e){var t=this._selectedRoute=e.route,i=this.options.showAlternatives&&e.alternatives,a=this.options.fitSelectedRoutes,n="smart"===a&&!this._waypointsVisible()||"smart"!==a&&a;this._updateLines({route:t,alternatives:i}),n&&this._map.fitBounds(this._line.getBounds()),"snap"===this.options.waypointMode&&(this._plan.off("waypointschanged",this._onWaypointsChanged,this),this.setWaypoints(t.waypoints),this._plan.on("waypointschanged",this._onWaypointsChanged,this))},_waypointsVisible:function(){var e,t,i,n,o,r=this.getWaypoints();try{for(e=this._map.getSize(),n=0;n<r.length;n++)o=this._map.latLngToLayerPoint(r[n].latLng),t?t.extend(o):t=a.bounds([o]);return((i=t.getSize()).x>e.x/5||i.y>e.y/5)&&this._waypointsInViewport()}catch(e){return!1}},_waypointsInViewport:function(){var e,t,i=this.getWaypoints();try{e=this._map.getBounds()}catch(e){return!1}for(t=0;t<i.length;t++)if(e.contains(i[t].latLng))return!0;return!1},_updateLines:function(e){var t=void 0===this.options.addWaypoints||this.options.addWaypoints;this._clearLines(),this._alternatives=[],e.alternatives&&e.alternatives.forEac
12h((function(e,t){this._alternatives[t]=this.options.routeLine(e,a.extend({isAlternative:!0},this.options.altLineOptions||this.options.lineOptions)),this._alternatives[t].addTo(this._map),this._hookAltEvents(this._alternatives[t])}),this),this._line=this.options.routeLine(e.route,a.extend({addWaypoints:t,extendToWaypoints:"connect"===this.options.waypointMode},this.options.lineOptions)),this._line.addTo(this._map),this._hookEvents(this._line)},_hookEvents:function(e){e.on("linetouched",(function(e){this._plan.dragNewWaypoint(e)}),this)},_hookAltEvents:function(e){e.on("linetouched",(function(e){var t=this._routes.slice(),i=t.splice(e.target._route.routesIndex,1)[0];this.fire("routeselected",{route:i,alternatives:t})}),this)},_onWaypointsChanged:function(e){this.options.autoRoute&&this.route({}),this._plan.isReady()||(this._clearLines(),this._clearAlts()),this.fire("waypointschanged",{waypoints:e.waypoints})},_setupRouteDragging:function(){var e,t=0;this._plan.on("waypointdrag",a.bind((function(i){e=i.waypoints,t||(t=setTimeout(a.bind((function(){this.route({waypoints:e,geometryOnly:!0,callback:a.bind(this._updateLineCallback,this)}),t=void 0}),this),this.options.routeDragInterval))}),this)),this._plan.on("waypointdragend",(function(){t&&(clearTimeout(t),t=void 0),this.route()}),this)},_updateLineCallback:function(e,t){if(e)"abort"!==e.type&&this._clearLines();else{var i=(t=t.slice()).splice(this._selectedRoute.routesIndex,1)[0];this._updateLines({route:i,alternatives:this.options.showAlternatives?t:[]})}},route:function(e){var t,i=++this._requestCount;this._pendingRequest&&this._pendingRequest.abort&&(this._pendingRequest.abort(),this._pendingRequest=null),e=e||{},this._plan.isReady()&&(this.options.useZoomParameter&&(e.z=this._map&&this._map.getZoom()),t=e&&e.waypoints||this._plan.getWaypoints(),this.fire("routingstart",{waypoints:t}),this._pendingRequest=this._router.route(t,(function(a,n){if(this._pendingRequest=null,e.callback)return e.callback.call(this,a,n);if(i===this._requestCount){if(this._clearLines(),this._clearAlts(),a&&"abort"!==a.type)return void this.fire("routingerror",{error:a});if(n.forEach((function(e,t){e.routesIndex=t})),e.geometryOnly){var o=n.splice(0,1)[0];this._routeSelected({route:o,alternatives:n})}else this.fire("routesfound",{waypoints:t,routes:n}),this.setAlternatives(n)}}),this,e))},_clearLines:function(){if(this._line&&(this._map.removeLayer(this._line),delete this._line),this._alternatives&&this._alternatives.length){for(var e in this._alternatives)this._map.removeLayer(this._alternatives[e]);this._alternatives=[]}}})}()}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./itinerary":55,"./line":56,"./osrm-v1":59,"./plan":60}],50:[function(e,t,i){(function(e){!function(){"use strict";var i="undefined"!=typeof window?window.L:void 0!==e?e.L:null;t.exports=i.Control.extend({options:{header:"Routing error",formatMessage:function(e){return e.status<0?"Calculating the route caused an error. Technical description follows: <code><pre>"+e.message+"</pre></code":"The route could not be calculated. "+e.message}},initialize:function(e,t){i.Control.prototype.initialize.call(this,t),e.on("routingerror",i.bind((function(e){this._element&&(this._element.children[1].innerHTML=this.options.formatMessage(e.error),this._element.style.visibility="visible")}),this)).on("routingstart",i.bind((function(){this._element&&(this._element.style.visibility="hidden")}),this))},onAdd:function(){var e;return this._element=i.DomUtil.create("div","leaflet-bar leaflet-routing-error"),this._element.style.visibility="hidden",e=i.DomUtil.create("h3",null,this._element),i.DomUtil.create("span",null,this._element),e.innerHTML=this.options.header,this._element},onRemove:function(){delete this._element}})}()}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],51:[function(e,t,i){(function(i){!function(){"use strict";var a="undefined"!=typeof window?window.L:void 0!==i?i.L:null,n=e("./localization");t.exports=a.Class.extend({options:{units:"metric",unitNames:null,language:"en",roundingSensitivity:1,distanceTemplate:"{value} {unit}"},initialize:function(e){a.setOptions(this,e);var t=a.Util.isArray(this.options.language)?this.options.language:[this.options.language,"en"];this._localization=new n(t)},formatDistance:function(e,t){var i,n,o,r=this.options.unitNames||this._localization.localize("units"),s=t<=0,l=s?function(e){return e}:a.bind(this._round,this);return o="imperial"===this.options.units?(n=e/.9144)>=1e3?{value:l(e/1609.344,t),unit:r.miles}:{value:l(n,t),unit:r.yards}:{value:(i=l(e,t))>=1e3?i/1e3:i,unit:i>=1e3?r.kilometers:r.meters},s&&(o.value=o.value.toFixed(-t)),a.Util.template(this.options.distanceTemplate,o)},_round:function(e,t){var i=t||this.options.roundingSensitivity,a=Math.pow(10,(Math.floor(e/i)+"").length-1),n=Math.floor(e/a)>5?a:a/2;return Math.round(e/n)*n},formatTime:function(e){var t=this.options.unitNames||this._localization.localize("units");return(e=30*Math.round(e/30))>86400?Math.round(e/3600)+" "+t.hours:e>3600?Math.floor(e/3600)+" "+t.hours+" "+Math.round(e%3600/60)+" "+t.minutes:e>300?Math.round(e/60)+" "+t.minutes:e>60?Math.floor(e/60)+" "+t.minutes+(e%60!=0?" "+e%60+" "+t.seconds:""):e+" "+t.seconds},formatInstruction:function(e,t){return void 0===e.text?this.capitalize(a.Util.template(this._getInstructionTemplate(e,t),a.extend({},e,{exitStr:e.exit?this._localization.localize("formatOrder")(e.exit):"",dir:this._localization.localize(["directions",e.direction]),modifier:this._localization.localize(["directions",e.modifier])}))):e.text},getIconName:function(e,t){switch(e.type){case"Head":if(0===t)return"depart";break;case"WaypointReached":return"via";
12case"Roundabout":return"enter-roundabout";case"DestinationReached":return"arrive"}switch(e.modifier){case"Straight":return"continue";case"SlightRight":return"bear-right";case"Right":return"turn-right";case"SharpRight":return"sharp-right";case"TurnAround":case"Uturn":return"u-turn";case"SharpLeft":return"sharp-left";case"Left":return"turn-left";case"SlightLeft":return"bear-left"}},capitalize:function(e){return e.charAt(0).toUpperCase()+e.substring(1)},_getInstructionTemplate:function(e,t){var i="Straight"===e.type?0===t?"Head":"Continue":e.type,a=this._localization.localize(["instructions",i]);return a||(a=[this._localization.localize(["directions",i])," "+this._localization.localize(["instructions","Onto"])]),a[0]+(a.length>1&&e.road?a[1]:"")}})}()}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./localization":57}],52:[function(e,t,i){(function(i){!function(){"use strict";var a="undefined"!=typeof window?window.L:void 0!==i?i.L:null,n=e("./autocomplete"),o=e("./localization");function r(e){e.setSelectionRange?e.setSelectionRange(0,9999):e.select()}t.exports=a.Class.extend({includes:void 0!==a.Evented&&a.Evented.prototype||a.Mixin.Events,options:{createGeocoder:function(e,t,i){var n=a.DomUtil.create("div","leaflet-routing-geocoder"),o=a.DomUtil.create("input","",n),r=i.addWaypoints?a.DomUtil.create("span","leaflet-routing-remove-waypoint",n):void 0;return o.disabled=!i.addWaypoints,{container:n,input:o,closeButton:r}},geocoderPlaceholder:function(e,t,i){var n=new o(i.options.language).localize("ui");return 0===e?n.startPlaceholder:e<t-1?a.Util.template(n.viaPlaceholder,{viaNumber:e}):n.endPlaceholder},geocoderClass:function(){return""},waypointNameFallback:function(e){var t=e.lat<0?"S":"N",i=e.lng<0?"W":"E";return t+(Math.round(1e4*Math.abs(e.lat))/1e4).toString()+", "+i+(Math.round(1e4*Math.abs(e.lng))/1e4).toString()},maxGeocoderTolerance:200,autocompleteOptions:{},language:"en"},initialize:function(e,t,i,o){a.setOptions(this,o);var s=this.options.createGeocoder(t,i,this.options),l=s.closeButton,d=s.input;d.setAttribute("placeholder",this.options.geocoderPlaceholder(t,i,this)),d.className=this.options.geocoderClass(t,i),this._element=s,this._waypoint=e,this.update(),d.value=e.name,a.DomEvent.addListener(d,"click",(function(){r(this)}),d),l&&a.DomEvent.addListener(l,"click",(function(){this.fire("delete",{waypoint:this._waypoint})}),this),new n(d,(function(t){d.value=t.name,e.name=t.name,e.latLng=t.center,this.fire("geocoded",{waypoint:e,value:t})}),this,a.extend({resultFn:this.options.geocoder.geocode,resultContext:this.options.geocoder,autocompleteFn:this.options.geocoder.suggest,autocompleteContext:this.options.geocoder},this.options.autocompleteOptions))},getContainer:function(){return this._element.container},setValue:function(e){this._element.input.value=e},update:function(e){var t,i=this._waypoint;i.name=i.name||"",!i.latLng||!e&&i.name||(t=this.options.waypointNameFallback(i.latLng),this.options.geocoder&&this.options.geocoder.reverse?this.options.geocoder.reverse(i.latLng,67108864,(function(e){e.length>0&&e[0].center.distanceTo(i.latLng)<this.options.maxGeocoderTolerance?i.name=e[0].name:i.name=t,this._update()}),this):(i.name=t,this._update()))},focus:function(){var e=this._element.input;e.focus(),r(e)},_update:function(){var e=this._waypoint,t=e&&e.name?e.name:"";this.setValue(t),this.fire("reversegeocoded",{waypoint:e,value:t})}})}()}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./autocomplete":48,"./localization":57}],53:[function(e,t,i){(function(i){var a="undefined"!=typeof window?window.L:void 0!==i?i.L:null,n=e("./control"),o=e("./itinerary"),r=e("./line"),s=e("./osrm-v1"),l=e("./plan"),d=e("./waypoint"),u=e("./autocomplete"),h=e("./formatter"),c=e("./geocoder-element"),m=e("./localization"),p=e("./itinerary-builder"),f=e("./mapbox"),_=e("./error-control");a.routing={control:function(e){return new n(e)},itinerary:function(e){return o(e)},line:function(e,t){return new r(e,t)},plan:function(e,t){return new l(e,t)}
12,waypoint:function(e,t,i){return new d(e,t,i)},osrmv1:function(e){return new s(e)},localization:function(e){return new m(e)},formatter:function(e){return new h(e)},geocoderElement:function(e,t,i,n){return new a.Routing.GeocoderElement(e,t,i,n)},itineraryBuilder:function(e){return new p(e)},mapbox:function(e,t){return new f(e,t)},errorControl:function(e,t){return new _(e,t)},autocomplete:function(e,t,i,a){return new u(e,t,i,a)}},t.exports=a.Routing={Control:n,Itinerary:o,Line:r,OSRMv1:s,Plan:l,Waypoint:d,Autocomplete:u,Formatter:h,GeocoderElement:c,Localization:m,Formatter:h,ItineraryBuilder:p,control:a.routing.control,itinerary:a.routing.itinerary,line:a.routing.line,plan:a.routing.plan,waypoint:a.routing.waypoint,osrmv1:a.routing.osrmv1,geocoderElement:a.routing.geocoderElement,mapbox:a.routing.mapbox,errorControl:a.routing.errorControl}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./autocomplete":48,"./control":49,"./error-control":50,"./formatter":51,"./geocoder-element":52,"./itinerary":55,"./itinerary-builder":54,"./line":56,"./localization":57,"./mapbox":58,"./osrm-v1":59,"./plan":60,"./waypoint":61}],54:[function(e,t,i){(function(e){!function(){"use strict";var i="undefined"!=typeof window?window.L:void 0!==e?e.L:null;t.exports=i.Class.extend({options:{containerClassName:""},initialize:function(e){i.setOptions(this,e)},createContainer:function(e){var t=i.DomUtil.create("table",(e||"")+" "+this.options.containerClassName),a=i.DomUtil.create("colgroup","",t);return i.DomUtil.create("col","leaflet-routing-instruction-icon",a),i.DomUtil.create("col","leaflet-routing-instruction-text",a),i.DomUtil.create("col","leaflet-routing-instruction-distance",a),t},createStepsContainer:function(){return i.DomUtil.create("tbody","")},createStep:function(e,t,a,n){var o,r,s=i.DomUtil.create("tr","",n);return r=i.DomUtil.create("td","",s),o=i.DomUtil.create("span","leaflet-routing-icon leaflet-routing-icon-"+a,r),r.appendChild(o),(r=i.DomUtil.create("td","",s)).appendChild(document.createTextNode(e)),(r=i.DomUtil.create("td","",s)).appendChild(document.createTextNode(t)),s}})}()}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],55:[function(e,t,i){(function(i){!function(){"use strict";var a="undefined"!=typeof window?window.L:void 0!==i?i.L:null,n=e("./formatter"),o=e("./itinerary-builder");t.exports=a.Control.extend({includes:void 0!==a.Evented&&a.Evented.prototype||a.Mixin.Events,options:{pointMarkerStyle:{radius:5,color:"#03f",fillColor:"white",opacity:1,fillOpacity:.7},summaryTemplate:"<h2>{name}</h2><h3>{distance}, {time}</h3>",timeTemplate:"{time}",containerClassName:"",alternativeClassName:"",minimizedClassName:"",itineraryClassName:"",totalDistanceRoundingSensitivity:-1,show:!0,collapsible:void 0,collapseBtn:function(e){var t=a.DomUtil.create("span",e.options.collapseBtnClass);a.DomEvent.on(t,"click",e._toggle,e),e._container.insertBefore(t,e._container.firstChild)},collapseBtnClass:"leaflet-routing-collapse-btn"},initialize:function(e){a.setOptions(this,e),this._formatter=this.options.formatter||new n(this.options),this._itineraryBuilder=this.options.itineraryBuilder||new o({containerClassName:this.options.itineraryClassName})},onAdd:function(e){var t=this.options.collapsible;return t=t||void 0===t&&e.getSize().x<=640,this._container=a.DomUtil.create("div","leaflet-routing-container leaflet-bar "+(this.options.show?"":"leaflet-routing-container-hide ")+(t?"leaflet-routing-collapsible ":"")+this.options.containerClassName),this._altContainer=this.createAlternativesContainer(),this._container.appendChild(this._altContainer),a.DomEvent.disableClickPropagation(this._container),a.DomEvent.addListener(this._container,"mousewheel",(function(e){a.DomEvent.stopPropagation(e)})),t&&this.options.collapseBtn(this),this._container},onRemove:function(){},createAlternativesContainer:function(){return a.DomUtil.create("div","leaflet-routing-alternatives-container")},setAlternatives:function(e){var t,i,a;for(this._clearAlts(),this._routes=e,t=0;t<this._routes.length;t++)i=this._routes[t],a=this._createAlternative(i,t),this._altContainer.appendChild(a),this._altElements.push(a);return this._selectRoute({route:this._routes[0],alternatives:this._routes.slice(1)}),this},show:function(){a.DomUtil.removeClass(this._container,"leaflet-routing-container-hide")},hide:function(){a.DomUtil.addClass(this._container,"leaflet-routing-container-hide")},_toggle:function(){this[a.DomUtil.hasClass(this._container,"leaflet-routing-container-hide")?"
12show":"hide"]()},_createAlternative:function(e,t){var i=a.DomUtil.create("div","leaflet-routing-alt "+this.options.alternativeClassName+(t>0?" leaflet-routing-alt-minimized "+this.options.minimizedClassName:"")),n=this.options.summaryTemplate,o=a.extend({name:e.name,distance:this._formatter.formatDistance(e.summary.totalDistance,this.options.totalDistanceRoundingSensitivity),time:this._formatter.formatTime(e.summary.totalTime)},e);return i.innerHTML="function"==typeof n?n(o):a.Util.template(n,o),a.DomEvent.addListener(i,"click",this._onAltClicked,this),this.on("routeselected",this._selectAlt,this),i.appendChild(this._createItineraryContainer(e)),i},_clearAlts:function(){for(var e=this._altContainer;e&&e.firstChild;)e.removeChild(e.firstChild);this._altElements=[]},_createItineraryContainer:function(e){var t,i,a,n,o,r,s=this._itineraryBuilder.createContainer(),l=this._itineraryBuilder.createStepsContainer();for(s.appendChild(l),t=0;t<e.instructions.length;t++)i=e.instructions[t],o=this._formatter.formatInstruction(i,t),n=this._formatter.formatDistance(i.distance),r=this._formatter.getIconName(i,t),a=this._itineraryBuilder.createStep(o,n,r,l),i.index&&this._addRowListeners(a,e.coordinates[i.index]);return s},_addRowListeners:function(e,t){a.DomEvent.addListener(e,"mouseover",(function(){this._marker=a.circleMarker(t,this.options.pointMarkerStyle).addTo(this._map)}),this),a.DomEvent.addListener(e,"mouseout",(function(){this._marker&&(this._map.removeLayer(this._marker),delete this._marker)}),this),a.DomEvent.addListener(e,"click",(function(e){this._map.panTo(t),a.DomEvent.stopPropagation(e)}),this)},_onAltClicked:function(e){for(var t=e.target||window.event.srcElement;!a.DomUtil.hasClass(t,"leaflet-routing-alt");)t=t.parentElement;var i=this._altElements.indexOf(t),n=this._routes.slice(),o=n.splice(i,1)[0];this.fire("routeselected",{route:o,alternatives:n})},_selectAlt:function(e){var t,i,n,o;if(t=this._altElements[e.route.routesIndex],a.DomUtil.hasClass(t,"leaflet-routing-alt-minimized"))for(i=0;i<this._altElements.length;i++)n=this._altElements[i],o=i===e.route.routesIndex?"removeClass":"addClass",a.DomUtil[o](n,"leaflet-routing-alt-minimized"),this.options.minimizedClassName&&a.DomUtil[o](n,this.options.minimizedClassName),i!==e.route.routesIndex&&(n.scrollTop=0);a.DomEvent.stop(e)},_selectRoute:function(e){this._marker&&(this._map.removeLayer(this._marker),delete this._marker),this.fire("routeselected",e)}})}()}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./formatter":51,"./itinerary-builder":54}],56:[function(e,t,i){(function(e){!function(){"use strict";var i="undefined"!=typeof window?window.L:void 0!==e?e.L:null;t.exports=i.LayerGroup.extend({includes:void 0!==i.Evented&&i.Evented.prototype||i.Mixin.Events,options:{styles:[{color:"black",opacity:.15,weight:9},{color:"white",opacity:.8,weight:6},{color:"red",opacity:1,weight:2}],missingRouteStyles:[{color:"black",opacity:.15,weight:7},{color:"white",opacity:.6,weight:4},{color:"gray",opacity:.8,weight:2,dashArray:"7,12"}],addWaypoints:!0,extendToWaypoints:!0,missingRouteTolerance:10},initialize:function(e,t){i.setOptions(this,t),i.LayerGroup.prototype.initialize.call(this,t),this._route=e,this.options.extendToWaypoints&&this._extendToWaypoints(),this._addSegment(e.coordinates,this.options.styles,this.options.addWaypoints)},getBounds:function(){return i.latLngBounds(this._route.coordinates)},_findWaypointIndices:function(){var e,t=this._route.inputWaypoints,i=[];for(e=0;e<t.length;e++)i.push(this._findClosestRoutePoint(t[e].latLng));return i},_findClosestRoutePoint:function(e){var t,i,a,n=Number.MAX_VALUE;for(i=this._route.coordinates.length-1;i>=0;i--)(a=e.distanceTo(this._route.coordinates[i]))<n&&(t=i,n=a);return t},_extendToWaypoints:function(){var e,t,a,n=this._route.inputWaypoints,o=this._getWaypointIndices();for(e=0;e<n.length;e++)t=n[e].latLng,a=i.latLng(this._route.coordinates[o[e]]),t.distanceTo(a)>this.options.missingRouteTolerance&&this._addSegment([t,a],this.options.missingRouteStyles)},_addSegment:function(e,t,a){var n,o;for(n=0;n<t.length;n++)o=i.polyline(e,t[n]),this.addLayer(o),a&&o.on("mousedown",this._onLineTouched,this)},_findNearestWpBefore:function(e){for(var t=this._getWaypointIndices(),i=t.length-1;i>=0&&t[i]>e;)i--;return i},_onLineTouched:function(e){var t=this._findNearestWpBefore(this._findClosestRoutePoint(e.latlng));this.fire("linetouched",{afterIndex:t,latlng:e.latlng}),i.DomEvent.stop(e)},_getWaypointIndices:function(){return this._wpIndices||(this._wpIndices=this._route.waypointIndices||this._findWaypointIndices()),this._wpIndices}})}()}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],57:[function(e,t,i){!function(){"use strict";var e={directions:{N:"norte",NE:"noreste",E:"este",SE:"sureste",S:"sur",SW:"suroeste",W:"oeste",NW:"noroeste",SlightRight:"leve giro a la derecha",Right:"derecha",SharpRight:"giro pronunciado a la derecha",SlightLeft:"leve giro a la izquierda",Left:"izquierda",SharpLeft:"giro pronunciado a la izquierda",Uturn:"media vuelta"},instructions:{Head:["Derecho {dir}"," sobre {road}"],Continue:["Continuar {dir}"," en {road}"],TurnAround:["Dar vuelta"],WaypointReached:["Llegó a un punto del camino"],Roundabout:["Tomar {exitStr} salida en la rotonda"," en {road}
12"],DestinationReached:["Llegada a destino"],Fork:["En el cruce gira a {modifier}"," hacia {road}"],Merge:["Incorpórate {modifier}"," hacia {road}"],OnRamp:["Gira {modifier} en la salida"," hacia {road}"],OffRamp:["Toma la salida {modifier}"," hacia {road}"],EndOfRoad:["Gira {modifier} al final de la carretera"," hacia {road}"],Onto:"hacia {road}"},formatOrder:function(e){return e+"º"},ui:{startPlaceholder:"Inicio",viaPlaceholder:"Via {viaNumber}",endPlaceholder:"Destino"},units:{meters:"m",kilometers:"km",yards:"yd",miles:"mi",hours:"h",minutes:"min",seconds:"s"}};L.Routing=L.Routing||{};var i=L.Class.extend({initialize:function(e){this._langs=L.Util.isArray(e)?e.slice():[e,"en"];for(var t=0,a=this._langs.length;t<a;t++){var n=/([A-Za-z]+)/.exec(this._langs[t])[1];if(!i[this._langs[t]]){if(!i[n])throw new Error('No localization for language "'+this._langs[t]+'".');this._langs[t]=n}}},localize:function(e){var t,a;e=L.Util.isArray(e)?e:[e];for(var n=0,o=this._langs.length;n<o;n++){t=i[this._langs[n]];for(var r=0,s=e.length;t&&r<s;r++)t=a=t[e[r]];if(a)return a}}});t.exports=L.extend(i,{en:{directions:{N:"north",NE:"northeast",E:"east",SE:"southeast",S:"south",SW:"southwest",W:"west",NW:"northwest",SlightRight:"slight right",Right:"right",SharpRight:"sharp right",SlightLeft:"slight left",Left:"left",SharpLeft:"sharp left",Uturn:"Turn around"},instructions:{Head:["Head {dir}"," on {road}"],Continue:["Continue {dir}"],TurnAround:["Turn around"],WaypointReached:["Waypoint reached"],Roundabout:["Take the {exitStr} exit in the roundabout"," onto {road}"],DestinationReached:["Destination reached"],Fork:["At the fork, turn {modifier}"," onto {road}"],Merge:["Merge {modifier}"," onto {road}"],OnRamp:["Turn {modifier} on the ramp"," onto {road}"],OffRamp:["Take the ramp on the {modifier}"," onto {road}"],EndOfRoad:["Turn {modifier} at the end of the road"," onto {road}"],Onto:"onto {road}"},formatOrder:function(e){var t=e%10-1,i=["st","nd","rd"];return i[t]?e+i[t]:e+"th"},ui:{startPlaceholder:"Start",viaPlaceholder:"Via {viaNumber}",endPlaceholder:"End"},units:{meters:"m",kilometers:"km",yards:"yd",miles:"mi",hours:"h",minutes:"min",seconds:"s"}},de:{directions:{N:"Norden",NE:"Nordosten",E:"Osten",SE:"Südosten",S:"Süden",SW:"Südwesten",W:"Westen",NW:"Nordwesten",SlightRight:"leicht rechts",Right:"rechts",SharpRight:"scharf rechts",SlightLeft:"leicht links",Left:"links",SharpLeft:"scharf links",Uturn:"Wenden"},instructions:{Head:["Richtung {dir}"," auf {road}"],Continue:["Geradeaus Richtung {dir}"," auf {road}"],SlightRight:["Leicht rechts abbiegen"," auf {road}"],Right:["Rechts abbiegen"," auf {road}"],SharpRight:["Scharf rechts abbiegen"," auf {road}"],TurnAround:["Wenden"],SharpLeft:["Scharf links abbiegen"," auf {road}"],Left:["Links abbiegen"," auf {road}"],SlightLeft:["Leicht links abbiegen"," auf {road}"],WaypointReached:["Zwischenhalt erreicht"],Roundabout:["Nehmen Sie die {exitStr} Ausfahrt im Kreisverkehr"," auf {road}"],DestinationReached:["Sie haben ihr Ziel erreicht"],Fork:["An der Kreuzung {modifier}"," auf {road}"],Merge:["Fahren Sie {modifier} weiter"," auf {road}"],OnRamp:["Fahren Sie {modifier} auf die Auffahrt"," auf {road}"],OffRamp:["Nehmen Sie die Ausfahrt {modifier}"," auf {road}"],EndOfRoad:["Fahren Sie {modifier} am Ende der Straße"," auf {road}"],Onto:"auf {road}"},formatOrder:function(e){return e+"."},ui:{startPlaceholder:"Start",viaPlaceholder:"Via {viaNumber}",endPlaceholder:"Ziel"}},sv:{directions:{N:"norr",NE:"nordost",E:"öst",SE:"sydost",S:"syd",SW:"sydväst",W:"väst",NW:"nordväst",SlightRight:"svagt höger",Right:"höger",SharpRight:"skarpt höger",SlightLeft:"svagt vänster",Left:"vänster",SharpLeft:"skarpt vänster",Uturn:"Vänd"},instructions:{Head:["Åk åt {dir}"," till {road}"],Continue:["Fortsätt {dir}"],SlightRight:["Svagt höger"," till {road}"],Right:["Sväng höger"," till {road}"],SharpRight:["Skarpt höger"," till {road}"],TurnAround:["Vänd"],SharpLeft:["Skarpt vänster"," till {road}"],Left:["Sväng vänster"," till {road}"],SlightLeft:["Svagt vänster"," till {road}"],WaypointReached:["Viapunkt nådd"],Roundabout:["Tag {exitStr} avfarten i rondellen"," till {road}"],DestinationReached:["Framme vid resans mål"],Fork:["Tag av {modifier}"," till {road}"],Merge:["Anslut {modifier} "," till {road}"],OnRamp:["Tag påfarten {modifier}"," till {road}"],OffRamp:["Tag avfarten {modifier}"," till {road}"],EndOfRoad:["Sväng {modifier} vid vägens slut"," till {road}"],Onto:"till {road}"}
vendor: 5,816 bytes, line 12
12,formatOrder:function(e){return["första","andra","tredje","fjärde","femte","sjätte","sjunde","åttonde","nionde","tionde"][e-1]},ui:{startPlaceholder:"Från",viaPlaceholder:"Via {viaNumber}",endPlaceholder:"Till"}},es:e,sp:e,nl:{directions:{N:"noordelijke",NE:"noordoostelijke",E:"oostelijke",SE:"zuidoostelijke",S:"zuidelijke",SW:"zuidewestelijke",W:"westelijke",NW:"noordwestelijke"},instructions:{Head:["Vertrek in {dir} richting"," de {road} op"],Continue:["Ga in {dir} richting"," de {road} op"],SlightRight:["Volg de weg naar rechts"," de {road} op"],Right:["Ga rechtsaf"," de {road} op"],SharpRight:["Ga scherpe bocht naar rechts"," de {road} op"],TurnAround:["Keer om"],SharpLeft:["Ga scherpe bocht naar links"," de {road} op"],Left:["Ga linksaf"," de {road} op"],SlightLeft:["Volg de weg naar links"," de {road} op"],WaypointReached:["Aangekomen bij tussenpunt"],Roundabout:["Neem de {exitStr} afslag op de rotonde"," de {road} op"],DestinationReached:["Aangekomen op eindpunt"]},formatOrder:function(e){return 1===e||e>=20?e+"ste":e+"de"},ui:{startPlaceholder:"Vertrekpunt",viaPlaceholder:"Via {viaNumber}",endPlaceholder:"Bestemming"}},fr:{directions:{N:"nord",NE:"nord-est",E:"est",SE:"sud-est",S:"sud",SW:"sud-ouest",W:"ouest",NW:"nord-ouest"},instructions:{Head:["Tout droit au {dir}"," sur {road}"],Continue:["Continuer au {dir}"," sur {road}"],SlightRight:["Légèrement à droite"," sur {road}"],Right:["A droite"," sur {road}"],SharpRight:["Complètement à droite"," sur {road}"],TurnAround:["Faire demi-tour"],SharpLeft:["Complètement à gauche"," sur {road}"],Left:["A gauche"," sur {road}"],SlightLeft:["Légèrement à gauche"," sur {road}"],WaypointReached:["Point d'étape atteint"],Roundabout:["Au rond-point, prenez la {exitStr} sortie"," sur {road}"],DestinationReached:["Destination atteinte"]},formatOrder:function(e){return e+"º"},ui:{startPlaceholder:"Départ",viaPlaceholder:"Intermédiaire {viaNumber}",endPlaceholder:"Arrivée"}},it:{directions:{N:"nord",NE:"nord-est",E:"est",SE:"sud-est",S:"sud",SW:"sud-ovest",W:"ovest",NW:"nord-ovest"},instructions:{Head:["Dritto verso {dir}"," su {road}"],Continue:["Continuare verso {dir}"," su {road}"],SlightRight:["Mantenere la destra"," su {road}"],Right:["A destra"," su {road}"],SharpRight:["Strettamente a destra"," su {road}"],TurnAround:["Fare inversione di marcia"],SharpLeft:["Strettamente a sinistra"," su {road}"],Left:["A sinistra"," sur {road}"],SlightLeft:["Mantenere la sinistra"," su {road}"],WaypointReached:["Punto di passaggio raggiunto"],Roundabout:["Alla rotonda, prendere la {exitStr} uscita"],DestinationReached:["Destinazione raggiunta"]},formatOrder:function(e){return e+"º"},ui:{startPlaceholder:"Partenza",viaPlaceholder:"Intermedia {viaNumber}",endPlaceholder:"Destinazione"}},pt:{directions:{N:"norte",NE:"nordeste",E:"leste",SE:"sudeste",S:"sul",SW:"sudoeste",W:"oeste",NW:"noroeste",SlightRight:"curva ligeira a direita",Right:"direita",SharpRight:"curva fechada a direita",SlightLeft:"ligeira a esquerda",Left:"esquerda",SharpLeft:"curva fechada a esquerda",Uturn:"Meia volta"},instructions:{Head:["Siga {dir}"," na {road}"],Continue:["Continue {dir}"," na {road}"],SlightRight:["Curva ligeira a direita"," na {road}"],Right:["Curva a direita"," na {road}"],SharpRight:["Curva fechada a direita"," na {road}"],TurnAround:["Retorne"],SharpLeft:["Curva fechada a esquerda"," na {road}"],Left:["Curva a esquerda"," na {road}"],SlightLeft:["Curva ligueira a esquerda"," na {road}"],WaypointReached:["Ponto de interesse atingido"],Roundabout:["Pegue a {exitStr} saída na rotatória"," na {road}"],DestinationReached:["Destino atingido"],Fork:["Na encruzilhada, vire a {modifier}"," na {road}"],Merge:["Entre à {modifier}"," na {road}"],OnRamp:["Vire {modifier} na rampa"," na {road}"],OffRamp:["Entre na rampa na {modifier}"," na {road}"],EndOfRoad:["Vire {modifier} no fim da rua"," na {road}"],Onto:"na {road}"},formatOrder:function(e){return e+"º"},ui:{startPlaceholder:"Origem",viaPlaceholder:"Intermédio {viaNumber}",endPlaceholder:"Destino"}},sk:{directions:{N:"sever",NE:"serverovýchod",E:"východ",SE:"juhovýchod",S:"juh",SW:"juhozápad",W:"západ",NW:"serverozápad"},instructions:{Head:["Mierte na {dir}"," na {road}"],Continue:["Pokračujte na {dir}"," na {road}"],SlightRight:["Mierne doprava"," na {road}"],Right:["Doprava"," na {road}"],SharpRight:["Prudko doprava"," na {road}"],TurnAround:["Otočte sa"],SharpLeft:["Prudko doľava"," na {road}"],Left:["Doľava"," na {road}"],SlightLeft:["Mierne doľava"," na {road}"],WaypointReached:["Ste v prejazdovom bode."],Roundabout:["Odbočte na {exitStr} výjazde"," na {road}"],DestinationReached:["Prišli ste do cieľa."]},formatOrder:function(e){var t=e%10-1,i=[".",".","."];return i[t]?e+i[t]:e+"."},ui:{startPlaceholder:"Začiatok",viaPlaceholder:"Cez {viaNumber}",endPlaceholder:"Koniec"}},el:{directions:{N:"βόρεια",NE:"βορειοανατολικά",E:"ανατολικά",SE:"νοτιοανατολικά",S:"νότια",SW:"νοτιοδυτικά",W:"δυτικά",NW:"βορειοδυτικά"},instructions:{Head:["Κατευθυνθείτε {dir}"," στην {road}"],Continue:["Συνεχίστε {dir}"," στην {road}"],SlightRight:["Ελαφρώς δεξιά"," στην {road}"],Right:["Δεξιά"," στην {road}"],SharpRight:["Απότομη δεξιά στροφή"," στην {road}"],TurnAround:["Κάντε αναστροφή"],SharpLeft:["Απότομη αριστερή στροφή"," στην {road}"],Left:["Αριστερά"," στην {road}"],SlightLeft:["Ελαφρώς αριστερά"," στην {road}"],WaypointReached:["Φτάσατε στο σημείο αναφοράς"],Roundabout:["Ακολουθήστε την {exitStr} έξοδο στο κυκλικό κόμβο"," στην {road}
12"],DestinationReached:["Φτάσατε στον προορισμό σας"]},formatOrder:function(e){return e+"º"},ui:{startPlaceholder:"Αφετηρία",viaPlaceholder:"μέσω {viaNumber}",endPlaceholder:"Προορισμός"}},ca:{directions:{N:"nord",NE:"nord-est",E:"est",SE:"sud-est",S:"sud",SW:"sud-oest",W:"oest",NW:"nord-oest",SlightRight:"lleu gir a la dreta",Right:"dreta",SharpRight:"gir pronunciat a la dreta",SlightLeft:"gir pronunciat a l'esquerra",Left:"esquerra",SharpLeft:"lleu gir a l'esquerra",Uturn:"mitja volta"},instructions:{Head:["Recte {dir}"," sobre {road}"],Continue:["Continuar {dir}"],TurnAround:["Donar la volta"],WaypointReached:["Ha arribat a un punt del camí"],Roundabout:["Agafar {exitStr} sortida a la rotonda"," a {road}"],DestinationReached:["Arribada al destí"],Fork:["A la cruïlla gira a la {modifier}"," cap a {road}"],Merge:["Incorpora't {modifier}"," a {road}"],OnRamp:["Gira {modifier} a la sortida"," cap a {road}"],OffRamp:["Pren la sortida {modifier}"," cap a {road}"],EndOfRoad:["Gira {modifier} al final de la carretera"," cap a {road}"],Onto:"cap a {road}"},formatOrder:function(e){return e+"º"},ui:{startPlaceholder:"Origen",viaPlaceholder:"Via {viaNumber}",endPlaceholder:"Destí"},units:{meters:"m",kilometers:"km",yards:"yd",miles:"mi",hours:"h",minutes:"min",seconds:"s"}},ru:{directions:{N:"север",NE:"северовосток",E:"восток",SE:"юговосток",S:"юг",SW:"югозапад",W:"запад",NW:"северозапад",SlightRight:"плавно направо",Right:"направо",SharpRight:"резко направо",SlightLeft:"плавно налево",Left:"налево",SharpLeft:"резко налево",Uturn:"развернуться"},instructions:{Head:["Начать движение на {dir}"," по {road}"],Continue:["Продолжать движение на {dir}"," по {road}"],SlightRight:["Плавный поворот направо"," на {road}"],Right:["Направо"," на {road}"],SharpRight:["Резкий поворот направо"," на {road}"],TurnAround:["Развернуться"],SharpLeft:["Резкий поворот налево"," на {road}"],Left:["Поворот налево"," на {road}"],SlightLeft:["Плавный поворот налево"," на {road}"],WaypointReached:["Точка достигнута"],Roundabout:["{exitStr} съезд с кольца"," на {road}"],DestinationReached:["Окончание маршрута"],Fork:["На развилке поверните {modifier}"," на {road}"],Merge:["Перестройтесь {modifier}"," на {road}"],OnRamp:["Поверните {modifier} на съезд"," на {road}"],OffRamp:["Съезжайте на {modifier}"," на {road}"],EndOfRoad:["Поверните {modifier} в конце дороги"," на {road}"],Onto:"на {road}"},formatOrder:function(e){return e+"-й"},ui:{startPlaceholder:"Начало",viaPlaceholder:"Через {viaNumber}",endPlaceholder:"Конец"},units:{meters:"м",kilometers:"км",yards:"ярд",miles:"ми",hours:"ч",minutes:"м",seconds:"с"}},pl:{directions:{N:"północ",NE:"północny wschód",E:"wschód",SE:"południowy wschód",S:"południe",SW:"południowy zachód",W:"zachód",NW:"północny zachód",SlightRight:"lekko w prawo",Right:"w prawo",SharpRight:"ostro w prawo",SlightLeft:"lekko w lewo",Left:"w lewo",SharpLeft:"ostro w lewo",Uturn:"zawróć"},instructions:{Head:["Kieruj się na {dir}"," na {road}"],Continue:["Jedź dalej przez {dir}"],TurnAround:["Zawróć"],WaypointReached:["Punkt pośredni"],Roundabout:["Wyjedź {exitStr} zjazdem na rondzie"," na {road}"],DestinationReached:["Dojechano do miejsca docelowego"],Fork:["Na rozwidleniu {modifier}"," na {road}"],Merge:["Zjedź {modifier}"," na {road}"],OnRamp:["Wjazd {modifier}"," na {road}"],OffRamp:["Zjazd {modifier}"," na {road}"],EndOfRoad:["Skręć {modifier} na końcu drogi"," na {road}"],Onto:"na {road}"},formatOrder:function(e){return e+"."},ui:{startPlaceholder:"Początek",viaPlaceholder:"Przez {viaNumber}",endPlaceholder:"Koniec"},units:{meters:"m",kilometers:"km",yards:"yd",miles:"mi",hours:"godz",minutes:"min",seconds:"s"}}})}()},{}],58:[function(e,t,i){(function(i){!function(){"use strict";var a="undefined"!=typeof window?window.L:void 0!==i?i.L:null,n=e("./osrm-v1");t.exports=n.extend({options:{serviceUrl:"https://api.mapbox.com/directions/v5",profile:"mapbox/driving",useHints:!1},initialize:function(e,t){a.Routing.OSRMv1.prototype.initialize.call(this,t),this.options.requestParameters=this.options.requestParameters||{},this.options.requestParameters.access_token=e}})}()}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./osrm-v1":59}],59:[function(e,t,i){(function(i){!function(){"use strict";var a="undefined"!=typeof window?window.L:void 0!==i?i.L:null,n=e("@mapbox/corslite"),o=e("@mapbox/polyline"),r=e("osrm-text-instructions")("v5"),s=e("./waypoint");t.exports=a.Class.extend({options:{serviceUrl:"https://router.project-osrm.org/route/v1",profile:"driving",timeout:3e4,routingOptions:{alternatives:!0,steps:!0},polylinePrecision:5,useHints:!0,suppressDemoServerWarning:!1,language:"en"},initialize:function(e){a.Util.setOptions(this,e),this._hints={locations:{}},!this.options.suppressDemoServerWarning&&this.options.serviceUrl.indexOf("//router.project-osrm.org")>=0&&console.warn("You are using OSRM's demo server. Please note that it is **NOT SUITABLE FOR PRODUCTION USE**.\nRefer to the demo server's usage policy: https://github.com/Project-OSRM/osrm-backend/wiki/Api-usage-policy\n\nTo change, set the serviceUrl option.\n\nPlease do not report issues with this server to neither Leaflet Routing Machine or OSRM - it's for\ndemo only, and will sometimes not be available, or work in unexpected ways.\n\nPlease set up your own OSRM server, or use a paid service provider for production.")},route:function(e,t,i,o){var r,l,d,u,h,c=!1,m=[];for(o=a.extend({},this.options.routingOptions,o),r=this.buildRouteUrl(e,o),this.options.requestParameters&&(r+=a.Util.getParamString(this.options.requestParameters,r)),l=setTimeout((function(){c=!0,t.call(i||t,{status:-1,message:"OSRM request timed out."})}),this.options.timeout),u=0;u<e.length;u++)d=e[u],m.push(new s(d.latLng,d.name,d.options));return h=n(r,a.bind((function(e,a){var n,s={};if(clearTimeout(l),c)h.abort();else{if(e)s.message="HTTP request failed: "+e.type+(e.target&&e.target.status?" HTTP "+e.target.status+": "+e.target.statusText:""),s.url=r,s.status=-1,s.target=e;else try{n=JSON.parse(a.responseText);try{return this._routeDone(n,m,o,t,i)}catch(e){s.status=-3,s.message=e.toString()}}catch(e){s.status=-2,s.message="Error parsing OSRM response: "+e.toString()}t.call(i||t,s)}}),this))},requiresMoreDetail:function(e,t,i){if(!e.properties.isSimplified)return!1;var a,n=e.inputWaypoints;for(a=0;a<n.length;++a)if(!i.contains(n[a].latLng))return!0;return!1},_routeDone:function(e,t,i,a,n){var o,r,s,l=[];
12if(n=n||a,"Ok"===e.code){for(o=this._toWaypoints(t,e.waypoints),r=0;r<e.routes.length;r++)(s=this._convertRoute(e.routes[r])).inputWaypoints=t,s.waypoints=o,s.properties={isSimplified:!i||!i.geometryOnly||i.simplifyGeometry},l.push(s);this._saveHintData(e.waypoints,t),a.call(n,null,l)}else a.call(n,{status:e.code})},_convertRoute:function(e){var t,i,n,o,s,l,d,u,h,c={name:"",coordinates:[],instructions:[],summary:{totalDistance:e.distance,totalTime:e.duration}},m=[],p=[],f=0,_=e.legs.length,g=e.legs[0].steps.length>0;for(h=this.options.stepToText?this.options.stepToText:a.bind(r.compile,r,this.options.language),t=0;t<_;t++)for(n=e.legs[t],m.push(n.summary&&n.summary.charAt(0).toUpperCase()+n.summary.substring(1)),i=0;i<n.steps.length;i++)o=n.steps[i],s=this._decodePolyline(o.geometry),c.coordinates.push.apply(c.coordinates,s),l=this._maneuverToInstructionType(o.maneuver,t===_-1),d=this._maneuverToModifier(o.maneuver),u=h(o,{legCount:_,legIndex:t}),l&&((0==t&&"depart"==o.maneuver.type||"arrive"==o.maneuver.type)&&p.push(f),c.instructions.push({type:l,distance:o.distance,time:o.duration,road:o.name,direction:this._bearingToDirection(o.maneuver.bearing_after),exit:o.maneuver.exit,index:f,mode:o.mode,modifier:d,text:u})),f+=s.length;return c.name=m.join(", "),g?c.waypointIndices=p:c.coordinates=this._decodePolyline(e.geometry),c},_bearingToDirection:function(e){return["N","NE","E","SE","S","SW","W","NW"][Math.round(e/45)%8]},_maneuverToInstructionType:function(e,t){switch(e.type){case"new name":return"Continue";case"depart":return"Head";case"arrive":return t?"DestinationReached":"WaypointReached";case"roundabout":case"rotary":return"Roundabout";case"merge":case"fork":case"on ramp":case"off ramp":case"end of road":return this._camelCase(e.type);default:return this._camelCase(e.modifier)}},_maneuverToModifier:function(e){var t=e.modifier;switch(e.type){case"merge":case"fork":case"on ramp":case"off ramp":case"end of road":t=this._leftOrRight(t)}return t&&this._camelCase(t)},_camelCase:function(e){for(var t=e.split(" "),i="",a=0,n=t.length;a<n;a++)i+=t[a].charAt(0).toUpperCase()+t[a].substring(1);return i},_leftOrRight:function(e){return e.indexOf("left")>=0?"Left":"Right"},_decodePolyline:function(e){var t,i=o.decode(e,this.options.polylinePrecision),n=new Array(i.length);for(t=i.length-1;t>=0;t--)n[t]=a.latLng(i[t]);return n},_toWaypoints:function(e,t){var i,n,o=[];for(i=0;i<t.length;i++)n=t[i].location,o.push(new s(a.latLng(n[1],n[0]),e[i].name,e[i].options));return o},buildRouteUrl:function(e,t){for(var i,a=[],n=[],o=0;o<e.length;o++)i=e[o].latLng,a.push(i.lng+","+i.lat),n.push(this._hints.locations[this._locationKey(i)]||"");return this.options.serviceUrl+"/"+this.options.profile+"/"+a.join(";")+"?"+(t.geometryOnly?t.simplifyGeometry?"":"overview=full":"overview=false")+"&alternatives="+(!0).toString()+"&steps="+true.toString()+(this.options.useHints?"&hints="+n.join(";"):"")+(t.allowUTurns?"&continue_straight="+!t.allowUTurns:"")},_locationKey:function(e){return e.lat+","+e.lng},_saveHintData:function(e,t){var i;this._hints={locations:{}};for(var a=e.length-1;a>=0;a--)i=t[a].latLng,this._hints.locations[this._locationKey(i)]=e[a].hint}})}()}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./waypoint":61,"@mapbox/corslite":1,"@mapbox/polyline":2,"osrm-text-instructions":3}],60:[function(e,t,i){(function(i){!function(){"use strict";var a="undefined"!=typeof window?window.L:void 0!==i?i.L:null,n=e("./geocoder-element"),o=e("./waypoint");t.exports=(a.Layer||a.Class).extend({includes:void 0!==a.Evented&&a.Evented.prototype||a.Mixin.Events,options:{dragStyles:[{color:"black",opacity:.15,weight:9},{color:"white",opacity:.8,weight:6},{color:"red",opacity:1,weight:2,dashArray:"7,12"}],draggableWaypoints:!0,routeWhileDragging:!1,addWaypoints:!0,reverseWaypoints:!1,addButtonClassName:"",language:"en",createGeocoderElement:function(e,t,i,a){return new n(e,t,i,a)},createMarker:function(e,t){var i={draggable:this.draggableWaypoints};return a.marker(t.latLng,i)},geocodersClassName:""},initialize:function(e,t){a.Util.setOptions(this,t),this._waypoints=[],this.setWaypoints(e)},isReady:function(){var e;
12for(e=0;e<this._waypoints.length;e++)if(!this._waypoints[e].latLng)return!1;return!0},getWaypoints:function(){var e,t=[];for(e=0;e<this._waypoints.length;e++)t.push(this._waypoints[e]);return t},setWaypoints:function(e){var t=[0,this._waypoints.length].concat(e);return this.spliceWaypoints.apply(this,t),this},spliceWaypoints:function(){var e,t=[arguments[0],arguments[1]];for(e=2;e<arguments.length;e++)t.push(arguments[e]&&arguments[e].hasOwnProperty("latLng")?arguments[e]:new o(arguments[e]));for([].splice.apply(this._waypoints,t);this._waypoints.length<2;)this.spliceWaypoints(this._waypoints.length,0,null);this._updateMarkers(),this._fireChanged.apply(this,t)},onAdd:function(e){this._map=e,this._updateMarkers()},onRemove:function(){var e;if(this._removeMarkers(),this._newWp)for(e=0;e<this._newWp.lines.length;e++)this._map.removeLayer(this._newWp.lines[e]);delete this._map},createGeocoders:function(){var e,t,i=a.DomUtil.create("div","leaflet-routing-geocoders "+this.options.geocodersClassName),n=this._waypoints;return this._geocoderContainer=i,this._geocoderElems=[],this.options.addWaypoints&&((e=a.DomUtil.create("button","leaflet-routing-add-waypoint "+this.options.addButtonClassName,i)).setAttribute("type","button"),a.DomEvent.addListener(e,"click",(function(){this.spliceWaypoints(n.length,0,null)}),this)),this.options.reverseWaypoints&&((t=a.DomUtil.create("button","leaflet-routing-reverse-waypoints",i)).setAttribute("type","button"),a.DomEvent.addListener(t,"click",(function(){this._waypoints.reverse(),this.setWaypoints(this._waypoints)}),this)),this._updateGeocoders(),this.on("waypointsspliced",this._updateGeocoders),i},_createGeocoder:function(e){var t=this.options.createGeocoderElement(this._waypoints[e],e,this._waypoints.length,this.options);return t.on("delete",(function(){e>0||this._waypoints.length>2?this.spliceWaypoints(e,1):this.spliceWaypoints(e,1,new o)}),this).on("geocoded",(function(t){this._updateMarkers(),this._fireChanged(),this._focusGeocoder(e+1),this.fire("waypointgeocoded",{waypointIndex:e,waypoint:t.waypoint})}),this).on("reversegeocoded",(function(t){this.fire("waypointgeocoded",{waypointIndex:e,waypoint:t.waypoint})}),this),t},_updateGeocoders:function(){var e,t,i=[];for(e=0;e<this._geocoderElems.length;e++)this._geocoderContainer.removeChild(this._geocoderElems[e].getContainer());for(e=this._waypoints.length-1;e>=0;e--)t=this._createGeocoder(e),this._geocoderContainer.insertBefore(t.getContainer(),this._geocoderContainer.firstChild),i.push(t);this._geocoderElems=i.reverse()},_removeMarkers:function(){var e;if(this._markers)for(e=0;e<this._markers.length;e++)this._markers[e]&&this._map.removeLayer(this._markers[e]);this._markers=[]},_updateMarkers:function(){var e,t;if(this._map)for(this._removeMarkers(),e=0;e<this._waypoints.length;e++)this._waypoints[e].latLng?(t=this.options.createMarker(e,this._waypoints[e],this._waypoints.length))&&(t.addTo(this._map),this.options.draggableWaypoints&&this._hookWaypointEvents(t,e)):t=null,this._markers.push(t)},_fireChanged:function(){this.fire("waypointschanged",{waypoints:this.getWaypoints()}),arguments.length>=2&&this.fire("waypointsspliced",{index:Array.prototype.shift.call(arguments),nRemoved:Array.prototype.shift.call(arguments),added:arguments})},_hookWaypointEvents:function(e,t,i){var n,o,r=function(e){return i?e.latlng:e.target.getLatLng()},s=a.bind((function(e){this.fire("waypointdragstart",{index:t,latlng:r(e)})}),this),l=a.bind((function(e){this._waypoints[t].latLng=r(e),this.fire("waypointdrag",{index:t,latlng:r(e)})}),this),d=a.bind((function(e){this._waypoints[t].latLng=r(e),this._waypoints[t].name="",this._geocoderElems&&this._geocoderElems[t].update(!0),this.fire("waypointdragend",{index:t,latlng:r(e)}),this._fireChanged()}),this);i?(n=a.bind((function(e){this._markers[t].setLatLng(e.latlng),l(e)}),this),o=a.bind((function(e){this._map.dragging.enable(),this._map.off("mouseup",o),this._map.off("mousemove",n),d(e)}),this),this._map.dragging.disable(),this._map.on("mousemove",n),this._map.on("mouseup",o),s({latlng:this._waypoints[t].latLng})):(e.on("dragstart",s),e.on("drag",l),e.on("dragend",d))},dragNewWaypoint:function(e){var t=e.afterIndex+1;this.options.routeWhileDragging?(this.spliceWaypoints(t,0,e.latlng),this._hookWaypointEvents(this._markers[t],t,!0)):this._dragNewWaypoint(t,e.latlng)}
12,_dragNewWaypoint:function(e,t){var i,n=new o(t),r=this._waypoints[e-1],s=this._waypoints[e],l=this.options.createMarker(e,n,this._waypoints.length+1),d=[],u=this._map.dragging.enabled(),h=a.bind((function(e){var t,i;for(l&&l.setLatLng(e.latlng),t=0;t<d.length;t++)(i=d[t].getLatLngs()).splice(1,1,e.latlng),d[t].setLatLngs(i);a.DomEvent.stop(e)}),this),c=a.bind((function(t){var i;for(l&&this._map.removeLayer(l),i=0;i<d.length;i++)this._map.removeLayer(d[i]);this._map.off("mousemove",h),this._map.off("mouseup",c),this.spliceWaypoints(e,0,t.latlng),u&&this._map.dragging.enable(),a.DomEvent.stop(t)}),this);for(l&&l.addTo(this._map),i=0;i<this.options.dragStyles.length;i++)d.push(a.polyline([r.latLng,t,s.latLng],this.options.dragStyles[i]).addTo(this._map));u&&this._map.dragging.disable(),this._map.on("mousemove",h),this._map.on("mouseup",c)},_focusGeocoder:function(e){this._geocoderElems[e]?this._geocoderElems[e].focus():document.activeElement.blur()}})}()}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./geocoder-element":52,"./waypoint":61}],61:[function(e,t,i){(function(e){!function(){"use strict";var i="undefined"!=typeof window?window.L:void 0!==e?e.L:null;t.exports=i.Class.extend({options:{allowUTurn:!1},initialize:function(e,t,a){i.Util.setOptions(this,a),this.latLng=i.latLng(e),this.name=t}})}()}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[53]),function(e){e&&(e.Marker.prototype._setIconOriginal||(e.Marker.prototype._setIconOriginal=e.Marker.prototype.setIcon),e.Marker.include({setMap:function(e){e?(this._mapRef=e,this.addTo(e),this._visible=!0):this._mapRef&&(this._mapRef.removeLayer(this),this._visible=!1)},setVisible:function(e){!this._mapRef&&this._map&&(this._mapRef=this._map),e?(this._mapRef&&this.addTo(this._mapRef),this._visible=!0):this._mapRef&&(this._mapRef.removeLayer(this),this._visible=!1)},getVisible:function(){return!!this._visible},getPosition:function(){return this.getLatLng()},setPosition:function(e){return this.setLatLng(e)},bindMap:function(e){this._mapRef=e,this._visible=!0},setAnimation:function(e){const t=this._icon;t&&(t.classList.remove("leaflet-bounce-animation"),"bounce"===e&&t.classList.add("leaflet-bounce-animation"))},setIcon:function(t){if("string"==typeof t&&(t=e.icon({iconUrl:t,iconSize:[32,32],iconAnchor:[16,32],popupAnchor:[0,-55]})),t&&t.url){const i=t.scaledSize||[32,32];t=e.icon({iconUrl:t.url,iconSize:i,iconAnchor:[i[0]/2,i[1]],popupAnchor:[0,-Math.max(40,i[1])]})}return this._setIconOriginal(t)}}),e.Popup.include({open:function(e,t){if(!e||!t)return this;const i=t.getLatLng();return this.setLatLng(i),this._map||e.openPopup(this),this},close:function(){this._map&&this._map.closePopup(this)}}),e.Polyline&&e.Polyline.include({setMap:function(e){e?e.hasLayer(this)||this.addTo(e):this._map&&this._map.removeLayer(this)}}),e.Map.include({setOptions:function(e){return console.warn("setOptions() called in Leaflet. This method does nothing."),this},setCenter:function(t){if(!t)return;const i=Array.isArray(t)?e.latLng(t[0],t[1]):t;this.panTo(i)}}))}(window.L),function(e,t,i){t.WpgmpBaseMaps=class{constructor(t,a={},n=[]){var o;this.element=t,this.map_data=e.extend({},{},a),o=this.map_data.map_options,this.settings=e.extend({min_zoom:"0",max_zoom:"19",zoom:"5",map_type_id:"ROADMAP",scroll_wheel:!0,map_visual_refresh:!1,full_screen_control:!1,full_screen_control_position:"BOTTOM_RIGHT",zoom_control:!0,zoom_control_style:"SMALL",zoom_
12control_position:"TOP_LEFT",camera_control_position:"BOTTOM_RIGHT",map_type_control:!0,map_type_control_style:"HORIZONTAL_BAR",map_type_control_position:"RIGHT_TOP",scale_control:!0,street_view_control:!0,street_view_control_position:"TOP_LEFT",overview_map_control:!0,camera_control:!0,center_lat:"40.6153983",center_lng:"-74.2535216",draggable:!0,gesture:"auto"},{},o),this.container=e("div[rel='"+e(this.element).attr("id")+"']"),e(i).find(".wpgmp_map_container_placeholder").remove(),e(i).find(".wpgmp_hide_map_container").removeClass("wpgmp_hide_map_container"),this.drawingmanager={},this.places=[],this.show_places=[],this.places_for_category_tabs=[],this.categories={},this.tabs=[],this.all_shapes=[],this.wpgmp_polylines=[],this.wpgmp_polygons=[],this.wpgmp_circles=[],this.wpgmp_shape_events=[],this.wpgmp_rectangles=[],this.per_page_value=0,this.last_remove_cat_id="",this.last_selected_cat_id="",this.last_category_chkbox_action="",this.current_amenities=[],this.route_directions=[],this.search_area="",this.filter_position="",this.filter_content="",this.markerClusterer=null,this.url_filters=[],this.wpgmp_search_form="",this.enable_search_term=!1,this.search_term="",this.filters={},this.addonInfo=[]}init(){}map_loaded(){}resize_map(){const e=this.isMapProvider("google"),t=this.map;if(!t)return;const i=t.getCenter(),a=t.getZoom();e?(google.maps.event.trigger(t,"resize"),t.setCenter(i),t.setZoom(a)):setTimeout((()=>{t.invalidateSize(!0),t.setView(i,a)}),200)}responsive_map(){const e=this,i=e.isMapProvider("google"),a=e.map;t.addEventListener("resize",(function(){const t=a.getZoom(),n=a.getCenter();i?(google.maps.event.trigger(a,"resize"),a.setZoom(t),a.setCenter(n),a.getBounds(),e.map_data.marker_cluster&&e.set_marker_cluster()):setTimeout((()=>{a.invalidateSize(!0),a.setView(n,t)}),200)}))}createMarker(){}marker_bind(t,i){const a=this,n=i||function(){const i=a.isMapProvider("google")?t.getPosition():t.getLatLng(),n=a.isMapProvider("google")?i.lat():i.lat,o=a.isMapProvider("google")?i.lng():i.lng;a.wpgmp_geocode(n,o).then((t=>{e("#googlemap_address").val(t.address),e(".google_latitude").val(t.latitude),e(".google_longitude").val(t.longitude),e(".google_city").val(t.city),e(".google_state").val(t.state),e(".google_country").val(t.country),e(".google_postal_code").val(t.postal_code)})).catch((e=>{console.error(e)}))};a.isMapProvider("google")?google.maps.event.addListener(t,"dragend",n):t.on("dragend",n)}create_markers(){const t=this,i=t.isMapProvider("google"),a=t.map_data.places,n=[],o="true"===t.map_data.map_marker_spiderfier_setting?.marker_spiderfy;let r;if(i&&o){let e={markersWontMove:!0,markersWontHide:!0,basicFormatEvents:!0,keepSpiderfied:!0};"true"===t.map_data.map_marker_spiderfier_setting.marker_enable_spiral&&(e.circleSpiralSwitchover=t.map_data.map_marker_spiderfier_setting.minimum_markers),r=new OverlappingMarkerSpiderfier(t.map,e)}e.each(a,(function(a,o){if(!o.location.lat||!o.location.lng)return void n.push(a);o.categories??={},o.location.icon??=t.settings.marker_default_icon,i?(o.marker=t.create_google_marker({map:t.map,position:o.location,iconUrl:o.location.icon,draggable:o.location.draggable,clickable:o.location.infowindow_disable}),o.marker.bindMap(t.map),o.marker.setVisible(!0),(t.settings.infowindow_drop_animation||"DROP"===o.location.animation)&&o.marker.setAnimation(google.maps.Animation.DROP),"BOUNCE1"===o.location.animation&&o.marker.setAnimation(google.maps.Animation.BOUNCE),t.settings.infowindow_filter_only&&o.marker.setVisible(!1)):(o.marker=t.create_leaflet_marker({map:t.map,position:[parseFloat(o.location.lat),parseFloat(o.location.lng)],iconUrl:o.location.icon,draggable:o.location.draggable}),o.marker.addTo(t.map),o.marker.setVisible(!0),t.settings.infowindow_filter_only&&o.marker.setVisible(!1),(o.location.infowindow_disable||"manual"!==o.source)&&o.marker.bindPopup(o.content)),"edit_location"===t.map_data.page&&t.marker_bind(o.marker);const s=Object.values(o.categories).map((e=>"<div class='fc-badge'>"+e.name+"</div>")),l="post"===o.source?o.location.extra_fields.post_featured_image:o.location.marker_image;let d="post"===o.source?t.settings.infowindow_geotags_setting:t.settings.infowindow_setting;const u="post"===o.source?`wpgmp_infowindow_post fc-infobox-${t.settings.infowindow_post_skin.name} fc-item-${t.settings.infowindow_post_skin.name}`:`fc-infobox-${t.settings.infowindow_skin?.name} fc-infowindow-${t.settings.infowindow_skin?.name||"default"}`;d??=o.content;const h={"{marker_id}":o.id,"{marker_title}":o.title,"{marker_address}":o.address,"{marker_latitude}":o.location.lat,"{marker_longitude}":o.location.lng,"{marker_city}":o.location.city,"{marker_state}":o.location.state,"{marker_country}":o.location.country,"{marker_postal_code}":o.location.postal_code,"{marker_zoom}":o.location.zoom,"{marker_icon}":o.location.icon,"{marker_category}":s.join(""),"{marker_message}":o.content,"{marker_image}":l,"{get_directions_link}":`https://www.google.com/maps/place/${parseFloat(o.location.lat)},${parseFloat(o.location.lng)}`};if(o.location.extra_fields)for(const[e,t]of Object.entries(o.location.extra_fields))h[`{${e}}`]=t||"<div class='wpgmp_empty'>wpgmp_empty</div>";if(d=d.replace(/{#if (.*?)}([\s\S]*?){\/if}/g,((e,t,i)=>{const a=h[`{${t}}`];return a&&"<div class='wpgmp_empty'>wpgmp_empty</div>"!==a?i:""})),t.map_data.map_options.link_extra_field){const e=t.map_data.map_options.link_extra_field;for(const t in e)h[t]&&"<div class='wpgmp_empty'>wpgmp_empty</div>
12"!==h[t]&&(d=d.replace(t,e[t]))}for(const e in h)d=d.replaceAll(e,h[e]??"");const c=e("<div/>").html(d);c.find(".wpgmp_extra_field:contains('wpgmp_empty')").remove(),c.find(".wpgmp_empty").prev().remove(),c.find(".wpgmp_empty").remove();let m=c.prop("outerHTML")||"";m=t.settings.map_infowindow_customisations&&t.settings.show_infowindow_header?`<div class="wpgmp_infowindow ${u}"><div class="wpgmp_iw_head"><div class="wpgmp_iw_head_content">${o.title}</div></div><div class="wpgmp_iw_content">${m}</div></div>`:`<div class="wpgmp_infowindow ${u}"><div class="wpgmp_iw_content">${m}</div></div>`,o.infowindow_data=m,o.infowindow=t.infowindow_marker;let p=t.settings.infowindow_open_event;if(t.isMobile&&(p="click"),r&&"click"===p&&(p="spider_click"),t.useAdvancedMarker&&o.marker?.content&&"mouseover"==p){o.marker.content.addEventListener(p,(function(){t.places.forEach((e=>{e.infowindow?.close?.(),e.marker?.setAnimation?.(null)})),t.openInfoWindow(o),t.settings.infowindow_bounce_animation===p&&t.toggle_bounce(o.marker)}))}else t.event_listener(o.marker,p,(function(){t.places.forEach((e=>{e.infowindow?.close?.(),e.marker?.setAnimation?.(null)})),t.openInfoWindow(o),t.settings.infowindow_bounce_animation===p&&t.toggle_bounce(o.marker)}));r&&r.addMarker(o.marker),"mouseover"===p&&t.event_listener(o.marker,"click",(function(){t.settings.infowindow_click_change_zoom>0&&t.map.setZoom(t.settings.infowindow_click_change_zoom),t.settings.infowindow_click_change_center&&t.map.setCenter(o.marker.getPosition())})),"mouseover"===t.settings.infowindow_bounce_animation&&"mouseover"!==p&&(t.event_listener(o.marker,"mouseover",(function(){o.marker.setAnimation("bounce")})),t.event_listener(o.marker,"mouseout",(function(){o.marker.setAnimation(null)}))),t.settings.infowindow_bounce_animation&&i&&google.maps.event.addListener(o.infowindow,"closeclick",(function(){o.marker.setAnimation(null)})),(o.location.infowindow_default_open||t.settings.default_infowindow_open)&&setTimeout((function(){t.openInfoWindow(o)}),500),t.places.push(o)})),n.forEach((e=>delete a[e]))}display_markers(){const t=this;t.show_places=[];const i={};for(const a of t.places)!0===t.settings.infowindow_filter_only?a.marker.setVisible(!1):(a.marker.setVisible(!0),t.show_places.push(a)),a.categories&&e.each(a.categories,((e,t)=>{i[t.name]||(i[t.name]=t)}));t.categories=i}placeMarker(e,t){const i=this,a=i.isMapProvider("google"),n=a?{lat:e,lng:t}:L.latLng(e,t);i.searchMarker&&i.searchMarker.setMap(null),i.searchMarker=a?i.create_google_marker({map:i.map,position:n,iconUrl:i.settings.marker_default_icon||"",draggable:!0,anchorPoint:{x:0,y:-29}}):i.create_leaflet_marker({map:i.map,position:n,iconUrl:i.settings.marker_default_icon||"",draggable:!0}),i.searchMarker.setMap(i.map),"function"==typeof i.marker_bind&&i.marker_bind(i.searchMarker),i.map.setCenter(n),i.map.setZoom(17)}toggle_bounce(e){if(this.isMapProvider("google"))null!==e.getAnimation()?e.setAnimation(null):e.setAnimation(google.maps.Animation.BOUNCE);else{const t=e._icon;if(!t)return;const i="leaflet-bounce-animation";t.classList.contains(i)?t.classList.remove(i):t.classList.add(i)}}show_center_circle(){const e=this,t=e.isMapProvider("google");e.settings.center_circle_radius||(e.settings.center_circle_radius=5);const i=1e3*parseInt(e.settings.center_circle_radius),a=e.map.getCenter();e.set_center_circle=t?new google.maps.Circle({map:e.map,center:a,fillColor:e.settings.center_circle_fillcolor,fillOpacity:e.settings.center_circle_fillopacity,strokeColor:e.settings.center_circle_strokecolor,strokeOpacity:e.settings.center_circle_strokeopacity,strokeWeight:e.settings.center_circle_strokeweight,radius:i}):L.circle(a,{fillColor:e.settings.center_circle_fillcolor,fillOpacity:e.settings.center_circle_fillopacity,color:e.settings.center_circle_strokecolor,opacity:e.settings.center_circle_strokeopacity,weight:e.settings.center_circle_strokeweight,radius:i}).addTo(e.map)}show_center_marker(){const e=this,t=e.isMapProvider("google"),i=e.map.getCenter(),a=""!==e.settings.center_marker_infowindow;t?(e.map_center_marker=e.create_google_marker({map:e.map,position:{lat:i.lat(),lng:i.lng()},title:e.settings.center_marker_infowindow,iconUrl:e.settings.center_marker_icon,clickable:a}),e.map_center_info||(e.map_center_info=e.infowindow_marker),a&&google.maps.event.addListener(e.map_center_marker,"click",(function(){e.map_center_info.setPosition(i);const t=!0===e.settings.map_infowindow_customisations?`<div class='fc-infobox-root'><div class='fc-infobox'><div class='fc-infobox-body'>${e.settings.center_marker_infowindow}</div></div></div>`:e.settings.center_marker_infowindow;e.map_center_info.setContent(t),e.map_center_info.open(e.map,this)}))):(e.map_center_marker=e.create_leaflet_marker({map:e.map,position:i,iconUrl:e.settings.center_marker_icon,draggable:!0}),e.map_center_info||(e.map_center_info=e.infowindow_marker),a&&e.event_listener(e.map_center_marker,"click",(function(){const t=`<div class='fc-infobox-root'><div class='fc-infobox'><div class='fc-infobox-body'>${e.settings.center_marker_infowindow}</div></div></div>`,i=e.map.getCenter();e.map_center_info.setContent(t).setLatLng(i).openOn(e.map)})))}center_by_nearest(){const e=this,t=e.isMapProvider("google");this.get_current_location((function(i){if(e.user_location_marker||(e.user_location_marker=t?e.create_google_marker({map:e.map,position:{lat:i.lat(),lng:i.lng()},title:wpgmp_local.center_location_message,iconUrl:e.map_data.map_options.center_marker_icon}):e.create_leaflet_marker({map:e.map,position:i,iconUrl:e.settings.center_marker_icon,title:wpgmp_local.center_location_message})),e.map_center_info||(e.map_center_info=e.infowindow_marker),""!==e.settings.center_marker_infowindow){const a=function(){const a=e.settings.map_infowindow_customisations?`<div class='wpgmp_infowindow'><div class='wpgmp_iw_content'>${e.settings.center_marker_infowindow}</div></div>`:e.settings.center_marker_infowindow;t?(e.map_center_info.setPosition(i),e.map_center_info.setContent(a),e.map_center_info.open(e.map,e.user_location_marker)):(e.map_center_info.setContent(a),e.map_center_info.setLatLng(i).openOn(e.map))};t?google.maps.event.addListener(e.user_location_marker,"click",a):e.event_listener(e.user_location_marker,"click",a)}
12t?e.map.setCenter(i):e.map.setView(i,e.settings.zoom),!0===e.settings.show_center_circle&&e.show_center_circle(),e.map_data.listing&&!0===e.map_data.listing.apply_default_radius&&(e.search_area=i)}),(function(t){e.user_location_marker||(e.user_location_marker=L.marker(t,{icon:L.icon({iconUrl:e.settings.center_marker_icon,iconAnchor:[16,32],popupAnchor:[0,-30]}),title:wpgmp_local.center_location_message}).addTo(e.map)),e.map_center_info||(e.map_center_info=e.infowindow_marker),""!==e.settings.center_marker_infowindow&&e.event_listener(e.user_location_marker,"click",(function(){const i=`<div class='wpgmp_infowindow'><div class='wpgmp_iw_content'>${e.settings.center_marker_infowindow}</div></div>`;e.map_center_info.setContent(i),e.map_center_info.setLatLng(t).openOn(e.map)})),e.map.panTo(t),!0===e.settings.show_center_circle&&e.show_center_circle(),e.map_data.listing&&!0===e.map_data.listing.apply_default_radius&&(e.search_area=t)}))}fit_bounds(){const e=this,t=e.isMapProvider("google"),i=e.map_data.places||[];let a;if(0===i.length)return;t?(a=new google.maps.LatLngBounds,i.forEach((e=>{e.location.lat&&e.location.lng&&a.extend(new google.maps.LatLng(parseFloat(e.location.lat),parseFloat(e.location.lng)))})),e.map.fitBounds(a)):(a=new L.LatLngBounds,i.forEach((e=>{e.location.lat&&e.location.lng&&a.extend(L.latLng(parseFloat(e.location.lat),parseFloat(e.location.lng)))})),e.map.fitBounds(a));const n=a.getCenter();e.map_center_marker&&e.map_center_marker.setPosition(n),e.set_center_circle&&(t?e.set_center_circle.setCenter(n):e.set_center_circle.setLatLng(n))}open_infowindow(e){const t=this,i=t.isMapProvider("google"),a=t.settings.infowindow_open_event||"click",n=parseInt(t.settings.infowindow_click_change_zoom),o=!isNaN(n)&&n>0,r=!0===t.settings.infowindow_click_change_center,s=t.map_data.places||[];for(const l of s){const s=l.marker;s&&!1!==s.getVisible?.()&&(parseInt(l.id)===parseInt(e)&&(o&&t.map.setZoom(n),r&&t.map.setCenter(s.getPosition()),i?google.maps.event.trigger(s,a):s.fire(a)))}}openInfoWindow(a){const n=this,o=n.isMapProvider("google");let r="default";"post"===a.source?r=n.settings.infowindow_post_skin?.name||"default":"edit_location"!==n.map_data.page&&n.settings.infowindow_skin&&(r=n.settings.infowindow_skin.name);const s=a.location.onclick_action,l="yes"===a.location.open_new_tab;if("post"!==s)if("custom_link"!==s){if(o&&"default"!==r){const e=i.createElement("div");e.className="wpgmp_infobox wpgmp-infowindow-addon",e.innerHTML=a.infowindow_data,a.infowindow=n.infobox,a.infowindow.setOptions({content:e,disableAutoPan:!1,alignBottom:!0,maxWidth:0,zIndex:null,closeBoxMargin:"0",closeBoxURL:"",infoBoxClearance:new google.maps.Size(25,25),isHidden:!1,pane:"floatPane",enableEventPropagation:!1});const t=n?.map_data?.map_options||{};let o="100%";n.settings.map_infowindow_customisations&&(o=t.infowindow_width||"100%");const r=n.getMarkerSize?.()||[32,32];let s=-175;if("100%"!==o){const e=parseInt(o);isNaN(e)||(s=-e/2)}const l=-(parseInt(r[1])||32)-15;a.infowindow.setOptions({pixelOffset:new google.maps.Size(s,l)})}else{let e=0;const t=n.getMarkerSize?.()||[32,32],i=-(parseInt(t[1])||32)/2;a.infowindow=o?n.infowindow_marker:L.popup({offset:[e,i]}),a.infowindow.setContent(a.infowindow_data)}a.infowindow.open(n.map,a.marker),n.settings.infowindow_click_change_center&&n.map.setCenter(a.marker.getPosition()),n.settings.infowindow_click_change_zoom&&n.settings.infowindow_click_change_zoom>0&&(n.map.setZoom(n.settings.infowindow_click_change_zoom),n.map.setCenter(a.marker.getPosition())),!0===n.map_data.map_tabs?.direction_tab?.dir_tab&&(e(n.container).find(".start_point").val(a.address),e(n.container).find(".start_point").data("longitude",a.location.lng),e(n.container).find(".start_point").data("latitude",a.location.lat)),e(n.container).find(".wpgmp_extra_field:contains('wpgmp_empty')").remove(),e(n.container).find(".wpgmp_empty").prev().remove(),e(n.container).find(".wpgmp_empty").remove(),e(i).trigger("wpgmp_marker_clicked",[this,a])}else t.open(a.location.redirect_custom_link,l?"_blank":"_self");else t.open(a.location.redirect_permalink,l?"_blank":"_self")}
12create_element(e,t,a){e.className="wpgmp-control-outer";var n=i.createElement("div");n.className="wpgmp-control-inner",e.appendChild(n);var o=i.createElement("div");o.className="wpgmp-control-content",o.innerHTML=a,n.appendChild(o)}renderCategories(e,t){let i=e;if(!t||0===t.length)return i=i.replace(/\{#each parent_categories\}[\s\S]+?\{\/parent_categories\}/g,"No categories available."),i;return i=i.replace(/\{#each parent_categories\}([\s\S]+?)\{\/parent_categories\}/g,(function(e,i){let a="";return t.forEach((e=>{let t=i;t=t.replace(/\{parent_id\}/g,e.parent_id||""),t=t.replace(/\{child_list\}/g,e.child_list||""),t=t.replace(/\{parent_category\}/g,e.parent_category||"Unknown Category");let n=/\{#each child_categories\}([\s\S]+?)\{\/child_categories\}/g;t=e.child_categories&&e.child_categories.length>0?t.replace(n,(function(t,i){let a="";return e.child_categories.forEach((e=>{let t=i;t=t.replace(/\{child_id\}/g,e.child_id||""),t=t.replace(/\{child_category\}/g,e.child_category||"Unknown Child Category"),a+=t})),a})):t.replace(n,""),a+=t})),a})),i}renderTemplate(e,t){var i=e,a=/\{#if (\w+)\}([\s\S]+?)\{else\}([\s\S]+?)\{\/if\}/g;i=i.replace(a,(function(e,i,a,n){return t[i]?a:n}));var n=/\{#if (\w+)\}([\s\S]+?)\{\/if\}/g,o=/\{#each all_filters\}([\s\S]+?)\{\/all_filters\}/g;i=(i=i.replace(n,(function(e,i,a){return t[i]?a:""}))).replace(o,(function(e,i){var a="",n=t.all_filters;for(var o in n){var r=n[o],s=Object.keys(r)[0],l=r[s].label,d=i;d=(d=(d=d.replace(/\{filter_name\}/g,o)).replace(/\{filter_label\}/g,l)).replace(/\{#each filter\}([\s\S]+?)\{\/filter\}/g,(function(e,t){var i="";for(var a in r){var n={id:a.toLowerCase(),name:r[a].name,label:r[a].label};"category"!=o&&(n.id=r[a].id);var s=t;i+=s=(s=s.replace(/\{id\}/g,n.id)).replace(/\{name\}/g,n.name)}return i})),a+=d}return a}));o=/\{#each ([\w%_-]+)\}([\s\S]+?)\{\/\1\}/g;for(var r in i=i.replace(o,(function(e,i,o){var r=t[i],s="";if("object"==typeof r&&null!==r&&!Array.isArray(r))for(var l in r){var d;d="routes"==i?{id:l.toLowerCase(),name:r[l][0],color:r[l][1]}:{id:l.toLowerCase(),name:r[l]};var u=o;for(var h in u=(u=u.replace(a,(function(e,t,i,a){return d[t]?i:a}))).replace(n,(function(e,t,i){return d[t]?i:""})),d)u=u.replace(new RegExp("\\{"+h+"\\}","g"),d[h]);s+=u}return s})),t)(Array.isArray(t[r])||"object"!=typeof t[r])&&(i=i.replace(new RegExp("\\{"+r+"\\}","g"),t[r]));return i}create_filters(){var t=this,i={},a=this.map_data.places,n=this.map_data.listing,o=n.display_taxonomies_all_filter;e.each(a,(function(t,a){void 0===a.categories&&(a.categories={}),e.each(a.categories,(function(e,t){void 0===i[t.type]&&(i[t.type]={}),t.name&&(t.extension_fields&&t.extension_fields.cat_order?i[t.type][t.name]={id:t.id,order:t.extension_fields.cat_order,name:t.name}:i[t.type][t.name]={id:t.id,order:0,name:t.name})}))}));var r="",s="name",l="",d="asc";return t.map_data.listing&&t.map_data.listing.default_sorting&&("listorder"==t.map_data.listing.default_sorting.orderby&&(s="order",l="num",d=t.map_data.listing.default_sorting.inorder),d=t.map_data.listing.default_sorting.inorder),null!=t.map_data.checkbox_filter_addon_enable&&1==t.map_data.checkbox_filter_addon_enable?e.each(i,(function(i,a){if(!0===n.display_category_filter&&"category"==i)r+='<div class="wpgmp_filters_checklist">',r+='<label  data-filter = "place_'+i+'" >Select '+i+"</label>",a=t.sort_object_by_keyvalue(a,s,l,d),e.each(a,(function(e,t){""!=t&&null!=t&&(r+="<input data-filter='checklist' type='checkbox' data-name = 'category' value='"+t.id+"'><span class='wpgmp_checklist_title'>"+t.name+"</span>")})),r+="</div>";else if(!0===n.display_taxonomies_filter){if(null===o)return!1;o.indexOf(i)>-1&&(r+='<div class="wpgmp_filters_checklist">',r+='<label  data-filter = "place_'+i+'" >Select '+i+"</label>",e.each(a,(function(e,t){""!=t&&null!=t&&(r+="<input data-filter='checklist' type='checkbox' data-name = 'category' value='"+t.id+"'><span class='wpgmp_checklist_title'>"+t.name+"</span>")})),r+="</div>")}})):e.each(i,(function(i,a){if(!0===n.display_category_filter&&"category"==i)t.map_data.map_options.select_category&&(wpgmp_local.select_category=t.map_data.map_options.select_category),r+='<select data-wpgmp-filter="true" data-wpgmp-map-id="'+t.map_data.map_property.map_id+'" data-wpgmp-filter-by="category" data-filter="dropdown" data-name="category" name="place_'+i+'">',r+='<option value="">'+wpgmp_local.select_category+"</option>",a=t.sort_object_by_keyvalue(a,s,l,d),e.each(a,(function(e,t){r+="<option value='"+t.id+"'>"+t.name+"</option>"})),r+="</select>";else if(!0===n.display_taxonomies_filter){if(null===o)return!1;o.indexOf(i)>-1&&(r+='<select data-filter="dropdown" data-name="category" name="place_'+i+'">',r+='<option value="">Select '+i+"</option>",e.each(a,(function(e,t){r+="<option value='"+t+"'>"+e+"</option>"})),r+="</select>")}})),t.map_data.map_options.advance_template&&(t.template_data||(t.template_data={}),Array.isArray(t.template_data.filter)||(t.template_data.filter=[]),t.template_data.filter.push(i)),r}update_places_listing(){var t=this;t.per_page_value>0?t.per_page_value=t.per_page_value:t.per_page_value=t.map_data.listing.pagination.listing_per_page,e(t.container).find(".location_pagination"+t.map_data.map_property.map_id).pagination(t.show_places.length,{callback:t.display_places_listing,map_data:t,items_per_page:t.per_page_value,prev_text:wpgmp_local.prev,next_text:wpgmp_local.next})}display_filters_listing(){if(this.map_data.listing){var t=this.map_data.listing.hide_locations,i=this.map_data.listing.list_grid;if(1!=t){var a='<div class="wpgmp_listing_container">';a+="<div class='wpgmp_categories wpgmp_print_listing "+i+"' data-container='wpgmp-listing-"+e(this.element).attr("id")+"'></div>",a+="</div>",e(this.map_data.listing.listing_container).html(a)}}}display_filters(){var e=this.map_data.listing.hide_locations,t="";if(null!=this.map_data.listing.listing_header&&(t+='<div class="wpgmp_before_listing">'+this.map_data.listing.listing_header+"</div>"),!0===this.map_data.listing.display_search_form){var i="";!0===this.map_data.listing.search_field_autosuggest&&(i="wpgmp_auto_suggest"),this.map_data.map_options.search_placeholder&&(wpgmp_local.search_placeholder=this.map_data.map_options.search_placeholder),t+='<div class="wpgmp_listing_header">
12<div class="wpgmp_search_form"><input type="text" rel="24" data-input="wpgmp-search-text" name="wpgmp_search_input" class="wpgmp_search_input '+i+'" placeholder="'+wpgmp_local.search_placeholder+'"></div></div>'}return t+='<div class="categories_filter">'+this.create_filters()+'<div data-container="wpgmp-filters-container"></div>',1!=e&&(t+=this.create_sorting()+""),1!=e&&!0===this.map_data.listing.display_location_per_page_filter&&(t+=" "+this.create_perpage_option()+" "),t+=" "+this.create_radius()+" ",1!=e&&!0===this.map_data.listing.display_print_option&&(t+=" "+wpgmp_local.img_print),1!=e&&!0===this.map_data.listing.display_grid_option&&(t+=" "+wpgmp_local.img_grid+wpgmp_local.img_list),void 0!==this.map_data.map_options.display_reset_button&&!0===this.map_data.map_options.display_reset_button&&(t+='<div class="categories_filter_reset"><input type="button" class="categories_filter_reset_btn" name="categories_filter_reset_btn" value="'+this.map_data.map_options.map_reset_button_text+'"></div>'),t+="</div>"}set_icon_marker(e,t,i=[32,32]){if(!e||!e.marker||!t)return;const a=this.isMapProvider("google"),n=t.toLowerCase().includes("image/svg")||t.toLowerCase().endsWith(".svg");if(a){const a={url:t};n&&(a.scaledSize=new google.maps.Size(i[0],i[1])),e.marker.setIcon(a)}else{const a={url:t};n&&(a.scaledSize=[i[0],i[1]]),e.marker.setIcon(a)}}display_places_listing(a,n){var o="",r=this,s=e('select[name = "place_category"]'),l=10;if(l=r.items_per_page?r.items_per_page:r.map_data.map_data.listing.pagination.listing_per_page,e.isFunction(e.fn.locationSortByDistance)){var d=r.map_data.map_data.plugin_url+"assets/images/location-icon.png";(""!=e("#search_location_autocomplete").val()&&r.map_data.is_place_changed||r.map_data.is_location_allowed)&&(r.map_data.show_places=r.map_data.sorted_locations_by_search)}var u=r.map_data.show_places,h=r.map_data.map_data.listing.listing_container,c=r.map_data.map_data.listing.listing_placeholder,m=Math.min((a+1)*l,u.length),p="",f="";if(m>0)for(var _=a*l;_<m;_++){var g=u[_],y=c;if(!0===g.marker.getVisible()){g.id&&("marker"==g.location.onclick_action?(p='<a href="javascript:void(0);" class="place_title" data-zoom="'+g.location.zoom+'"  data-marker="'+g.id+'" >'+g.title+"</a>",f='href="javascript:void(0);" data-zoom="'+g.location.zoom+'"  data-marker="'+g.id+'"'):"post"==g.location.onclick_action?(p='<a href="'+g.location.redirect_permalink+'" target="_blank">'+g.title+"</a>",f='href="'+g.location.redirect_permalink+'" target="_blank"'):"custom_link"==g.location.onclick_action?(p='<a href="'+g.location.redirect_custom_link+'" target="_blank">'+g.title+"</a>",f='href="'+g.location.redirect_custom_link+'" target="_blank"'):(p='<a href="javascript:void(0);" class="place_title" data-zoom="'+g.location.zoom+'"  data-marker="'+g.id+'" >'+g.title+"</a>",f='href="javascript:void(0);" data-zoom="'+g.location.zoom+'"  data-marker="'+g.id+'"'));var v=[],w=[],x={};if(g.categories)for(var b=0;b<g.categories.length;b++)if(""!==g.categories[b].icon&&v.push("<img title='"+g.categories[b].name+"' alt='"+g.categories[b].name+"' src='"+g.categories[b].icon+"' />"),"category"==g.categories[b].type&&""!=g.categories[b].name&&(1==r.map_data.map_data.map_options.advance_template?w.push('<span class="wep-chip">'+g.categories[b].name+"</span>"):w.push('<div class="fc-badge">'+g.categories[b].name+"</div>")),"category"!=g.categories[b].type){if(void 0===g.categories[b].name)continue;if(g.categories[b].name)var k=",";void 0===x[g.categories[b].type]&&(x[g.categories[b].type]=""),x[g.categories[b].type]+=g.categories[b].name+k}var S="";S="post"==g.source?g.location.extra_fields.post_featured_image:g.location.marker_image,w=w.join("");var T={"{marker_id}":g.id,"{marker_title}":p,"{marker_address}":g.address,"{marker_latitude}":g.location.lat,"{marker_longitude}":g.location.lng,"{marker_city}":g.location.city,"{marker_state}":g.location.state,"{marker_country}":g.location.country,"{marker_postal_code}":g.location.postal_code,"{marker_zoom}":g.location.zoom,"{marker_icon}":v,"{marker_category}":w,"{marker_message}":g.content,"{marker_image}":S,"{marker_featured_image}":S,"{wpgmp_listing_html}":g.listing_hook,"{onclick_action}":f,"{distance}":"","{get_directions_link}":"http://www.google.com/maps/place/"+parseFloat(g.location.lat)+","+parseFloat(g.location.lng)};if(e.isFunction(e.fn.locationSortByDistance))if(void 0!==g.distance&&null!==g.distance&&"NaN"!==g.distance)"km"==r.map_data.map_data.listing.radius_dimension?"NaN"!=(g.distance/1e3).toFixed(2)&&(g.distance=(g.distance/1e3).toFixed(2)+" Km",g.location.extra_fields.distance='<img width="21px" height="26px" src="'+d+'" style="width: 21px!important;
12height: 26px!important;margin-right: 3px!important;margin-top: 0px!important;"><span class="distance_calculate">'+g.distance+"</span>"):"NaN"!=(g.distance/1e3).toFixed(2)&&(g.distance=(g.distance/1e3).toFixed(2),g.distance=(g.distance/1.6).toFixed(2)+" Miles",g.location.extra_fields.distance='<img width="21px" height="26px" src="'+d+'" style="width: 21px!important;height: 26px!important;margin-right: 3px!important;margin-top: 0px!important;"><span class="distance_calculate">'+g.distance+"</span>");if(void 0!==g.location.extra_fields)for(var C in g.location.extra_fields)g.location.extra_fields[C]?T["{"+C+"}"]=g.location.extra_fields[C]:T["{"+C+"}"]="<div class='wpgmp_empty'>wpgmp_empty</div>";if(y=y.replace(/{#if (.*?)}([\s\S]*?){\/if}/g,(function(e,t,i){const a=T["{"+t+"}"];return a&&"<div class='wpgmp_empty'>wpgmp_empty</div>"!==a?i:""})),null!=r.map_data.map_data.map_options.link_extra_field&&""!=r.map_data.map_data.map_options.link_extra_field){var z=r.map_data.map_data.map_options.link_extra_field;for(var P in z)"<div class='wpgmp_empty'>wpgmp_empty</div>"!=T[P]&&""!=P&&(y=y.replace(P,z[P]))}for(var M in T)null!=T[M]&&"undefined"!=T[M]||(T[M]="");if(x)for(var L in x)T["{"+L+"}"]=A(x[L]);var A=function(e){var t=e.lastIndexOf(",");return e.substring(0,t)};o+=y=y.replace(/{[^{}]+}/g,(function(e){return e in T?T[e]:""}))}}else o="<div class='wpgmp_no_locations'>"+wpgmp_local.wpgmp_location_no_results+"</div>";for(var I=0;I<u.length;I++)if(void 0!==typeof(g=u[I]).categories.length&&g.categories.length>1){var E=r.map_data.getMarkerSize();if(""!==s.val()){if(g.categories)for(b=0;b<g.categories.length;b++)if(s.val()==g.categories[b].id){r.map_data.set_icon_marker(g,g.categories[b].icon,E);break}}else r.map_data.set_icon_marker(g,g.location.icon,E)}if(!0===r.map_data.map_data.map_options.advance_template){var D=e(i).find('[data-listing-content="true"][data-wpgmp-map-id]').attr("class").split(" ");h="."+D[0],e(h).html(o)}else o='<div class="fc-'+r.map_data.map_data.listing.list_item_skin.type+"-"+r.map_data.map_data.listing.list_item_skin.name+' fc-wait"><div data-page="2" class="fc-component-6" data-layout="'+r.map_data.map_data.listing.list_item_skin.name+'" >'+o+"</div></div>",e(h).find(".wpgmp_categories").html(o);return e(h).find(".wpgmp_extra_field:contains('wpgmp_empty')").remove(),e(h).find(".wpgmp_empty").prev().remove(),e(h).find(".wpgmp_empty").remove(),"wpgmp_listing_grid"==r.map_data.map_data.listing.list_grid&&e(t).on("load",(function(){try{var t=e(h).find(".wpgmp_listing_grid");if(t.length){var i=t.data("masonry");i&&i.destroy(),t.imagesLoaded((function(){t.masonry({itemSelector:".wpgmp_locations",columnWidth:".wpgmp_locations",percentPosition:!0}),t.masonry("layout")}))}}catch(e){console.log(e)}})),!1}apply_filters(){var t=this,a=t.filters,n=!0;if(t.show_places=[],e.isFunction(e.fn.locationSortByDistance)?t.sorted_locations_by_search=[]:e(t.container).find('[data-input="wpgmp-search-text"]').length>0&&(t.search_term=e(t.container).find('[data-input="wpgmp-search-text"]').val().trim(),t.search_term.length>0&&(t.search_term=t.search_term.toLowerCase(),t.enable_search_term=!0)),t.map_data.map_tabs&&t.map_data.map_tabs.category_tab&&!0===t.map_data.map_tabs.category_tab.cat_tab||e(t.container).find("input[data-marker-category]").length>0){var o=e(t.container).find("input[data-marker-category]:checked"),r=[],s=[];o.length>0&&e.each(o,(function(t,i){r.push(e(i).data("marker-category"));var a=e(i).closest('[data-container="wpgmp-category-tab-item"]').find("input[data-marker-location]:not(:checked)");a.length>0&&e.each(a,(function(t,i){s.push(e(i).data("marker-location"))}))}));var l=e(t.container).find('[data-container="wpgmp-category-tab-item"]').find("input[data-marker-location]:checked"),d=[];l.length>0&&e.each(l,(function(t,i){d.push(e(i).data("marker-location"))}))}if(void 0!==t.map_data.places&&(e.each(t.map_data.places,(function(i,o){n=!0,void 0!==a&&e.each(a,(function(i,a){var r=!1;if(e.isArray(a)){if(void 0!==o.categories&&"category"==i&&e.each(o.categories,(function(t,i){e.inArray(i.id,a)>-1&&(r=!0)})),void 0!==o.custom_filters&&e.each(o.custom_filters,(function(t,n){i==t&&(r=!1,e.isArray(n)?e.each(n,(function(t,i){e.inArray(i,a)>-1&&(r=!0)})):n==a.val&&(r=!0))})),void 0!==o[i])e.inArray(o[i].toLowerCase(),a)>-1&&(r=!0);else if(void 0!==o.location[i])e.inArray(o.location[i].toLowerCase(),a)>-1&&(r=!0);else if(o.location.extra_fields&&void 0!==o.location.extra_fields[i]){var s=a[0];if(""!=o.location.extra_fields[i])var l=o.location.extra_fields[i].split(","),d=e.map(l,(function(t){return e.trim(t).toLowerCase()}));if(o.location.extra_fields[i]){var u=o.location.extra_fields[i].toLowerCase(),h=e("<div>").html(u).text();(u&&(u.indexOf(s)>-1||h.indexOf(s)>-1)||e.inArray(u,a)>-1||null!=d&&e.inArray(s,d)>-1||Array.isArray(s)&&void 0!==d&&s.some((e=>d.includes(e))))&&(r=!0)}}""!==t.addonInfo&&e.each(t.addonInfo,(function(n,s){var l=s.filtration_logic;void 0!==t[l]&&e.isFunction(t[l])&&(r=t[l](r,o,a,i))})),0==r&&(n=!1)}else a.val=""}));var l=t.map_data.map_options.search_fields,u=t.map_data.map_options.exclude_fields;Array.isArray(u)&&u.length>0&&(u.includes("{post_title}")&&(u.includes("{post_link}")||u.push("{post_link}"),u.includes("{marker_title}")||u.push("{marker_title}")),u.includes("{post_content}")&&(u.includes("{post_excerpt}")||u.push("{post_excerpt}"),u.includes("{marker_message}")||u.push("{marker_message}")),u.includes("{post_excerpt}")&&!u.includes("{post_content}")&&u.push("{post_content}"),u.includes("{marker_address}")&&!u.includes("{%_wpgmp_location_address%}")&&u.push("{%_wpgmp_location_address%}"),u.includes("{marker_city}")&&!u.includes("{%_wpgmp_location_city%}")&&u.push("{%_wpgmp_location_city%}"),u.includes("{marker_country}")&&!u.includes("{%_wpgmp_location_country%}")&&u.push("{%_wpgmp_location_country%}"),u.includes("{marker_state}")&&!u.includes("{%_wpgmp_location_state%}")&&u.push("{%_wpgmp_location_state%}"),u.includes("{marker_longitude}")&&!u.includes("{%_wpgmp_metabox_longitude%}")&&u.push("{%_wpgmp_metabox_longitude%}"),u.includes("{marker_latitude}")&&!u.includes("{%_wpgmp_metabox_latitude%}")&&u.push("{%_wpgmp_metabox_latitude%}"));var h=o.location.extra_fields,c=!1,m=!1,p={};void 0!==u&&u.length>0&&(m=!0,p=Object.keys(h).filter((e=>!u.includes(`{${e}}`))).reduce(((e,t)=>(e[t]=h[t],e)),{}));var f=[];if(void 0!==l&&l.length>0){c=!0;for(var _=0;_<l.length;_++)h.hasOwnProperty(l[_].slice(1,-1))&&f.push(l[_])}var g=t.search_term;if(g&&g.length>
120&&!0===t.enable_search_term&&!0===n)if(1==c||1==m){if(n=!!(null!=o.title&&o.title.toLowerCase().indexOf(g)>=0&&(c&&l.includes("{marker_title}")||m&&!u.includes("{marker_title}")))||(!!(null!=o.content&&o.content.toLowerCase().indexOf(g)>=0&&(1==c&&l.includes("{marker_message}")||1==m&&!u.includes("{marker_message}")))||(!!(String(o.location.lat).toLowerCase().indexOf(g)>=0&&(1==c&&l.includes("{marker_latitude}")||1==m&&!u.includes("{marker_latitude}")))||(!!(String(o.location.lng).toLowerCase().indexOf(g)>=0&&(1==c&&l.includes("{marker_longitude}")||1==m&&!u.includes("{marker_longitude}")))||(!!(o.address&&o.address.toString().toLowerCase().indexOf(g)>=0&&(1==c&&l.includes("{marker_address}")||1==m&&!u.includes("{marker_address}")))||(!!(o.location.state&&o.location.state.toLowerCase().indexOf(g)>=0&&(1==c&&l.includes("{marker_state}")||1==m&&!u.includes("{marker_state}")))||(!!(o.location.country&&o.location.country.toLowerCase().indexOf(g)>=0&&(1==c&&l.includes("{marker_country}")||1==m&&!u.includes("{marker_country}")))||(!!(o.location.postal_code&&String(o.location.postal_code).toLowerCase().indexOf(g)>=0&&(1==c&&l.includes("{marker_postal_code}")||1==m&&!u.includes("{marker_postal_code}")))||!!(o.location.city&&o.location.city.toLowerCase().indexOf(g)>=0&&(1==c&&l.includes("{marker_city}")||1==m&&!u.includes("{marker_city}")))))))))),1==c){if(f.length>0)for(const t of f)void 0!==o.location.extra_fields&&e.each(o.location.extra_fields,(function(t,i){i&&-1!==e.inArray("{"+t+"}",f)&&(i=i.toString())&&i.toLowerCase().indexOf(g)>=0&&(n=!0)}))}else if(1==m)for(var y in p){var v=p[y];v&&(v=v.toString())&&v.toLowerCase().indexOf(g)>=0&&(n=!0)}}else n=null!=o.title&&o.title.toLowerCase().indexOf(g)>=0||(null!=o.content&&o.content.toLowerCase().indexOf(g)>=0||(String(o.location.lat).toLowerCase().indexOf(g)>=0||(String(o.location.lng).toLowerCase().indexOf(g)>=0||(!!(o.address&&o.address.toString().toLowerCase().indexOf(g)>=0)||(!!(o.location.state&&o.location.state.toLowerCase().indexOf(g)>=0)||(!!(o.location.country&&o.location.country.toLowerCase().indexOf(g)>=0)||(!!(o.location.postal_code&&String(o.location.postal_code).toLowerCase().indexOf(g)>=0)||!!(o.location.city&&o.location.city.toLowerCase().indexOf(g)>=0)))))))),void 0!==o.location.extra_fields&&e.each(o.location.extra_fields,(function(e,t){t&&(t=t.toString())&&t.toLowerCase().indexOf(g)>=0&&(n=!0)}));if((null==o.categories.length||"undefined"==o.categories.length)&&r&&r.length>0&&0==e(t.container).find('input[name="wpgmp_select_all"]').is(":checked")&&n&&(n=!1),r&&0!=n&&null!=o.categories.length){var w=!1;0===r.length?void 0!==o.categories&&e.each(o.categories,(function(e,t){""===t.id&&(w=!0)})):void 0!==o.categories&&e.each(o.categories,(function(i,a){if(""===a.id)w=!0;else if(e.inArray(parseInt(a.id),r)>-1){w=!0;var n=t.getMarkerSize();t.set_icon_marker(o,a.icon,n)}})),0!==s.length&&e.inArray(parseInt(o.id),s)>-1&&(w=!1),n=!1!==w,0!==d.length&&e.inArray(parseInt(o.id),d)>-1&&(n=!0)}1==n&&o.marker.bindMap(t.map),o.marker.setVisible(n),0==n&&o.infowindow.close(),o.marker.setAnimation(null),e.isFunction(e.fn.locationSortByDistance)?!0===n&&(t.show_places.push(o),t.sorted_locations_by_search.push(o)):!0===n&&t.show_places.push(o)})),e.isFunction(e.fn.locationSortByDistance)&&null!=t.search_place)){t.is_place_changed=!0;var u=t.shuffle_by_distance(t.sorted_locations_by_search,t.search_place);t.places=u}if(void 0!==t.map_data.map_options.bound_map_after_filter&&!0===t.map_data.map_options.bound_map_after_filter){const e=t.isMapProvider("google"),i=e?new google.maps.LatLngBounds:new L.LatLngBounds;Array.isArray(t.show_places)&&t.show_places.length>0&&(t.show_places.forEach((t=>{const a=parseFloat(t.location.lat),n=parseFloat(t.location.lng);if(!isNaN(a)&&!isNaN(n)){const t=e?new google.maps.LatLng(a,n):L.latLng(a,n);i.extend(t)}})),e?t.map.fitBounds(i):t.map.fitBounds(i,{padding:[20,20]}))}if(t.map_data.listing){if(e(t.container).find('[data-filter="map-sorting"]').val()){var h=e(t.container).find('[data-filter="map-sorting"]').val().split("__"),c="";""!==h[0]&&""!==h[1]&&(void 0!==h[2]&&(c=h[2]),t.sorting(h[0],h[1],c))}else if(t.map_data.listing.default_sorting&&t.map_data.autosort){c="";"listorder"==t.map_data.listing.default_sorting.orderby&&(c="num"),t.sorting(t.map_data.listing.default_sorting.orderby,t.map_data.listing.default_sorting.inorder,c)}t.update_places_listing()}t.map_data.marker_cluster&&setTimeout((function(){t.set_marker_cluster()}),2e3);const m=new CustomEvent("wpgmpApplyFilters",{detail:{map_obj:t}});i.dispatchEvent(m)}update_filters(){var t=this;t.filters={};var i=e(t.container).find('[data-filter="dropdown"]'),a=e(t.container).find('[data-filter="checklist"]:checked'),n=e(t.container).find('[data-filter="list"].fc_selected');const o=t.map_data.map_property.map_id;e.each(i,(function(i,a){""!=e(this).val()&&(void 0===t.filters[e(this).data("name")]&&(t.filters[e(this).data("name")]=[]),t.filters[e(this).data("name")].push(e(this).val()))})),e.each(a,(function(i,a){void 0===t.filters[e(this).data("name")]&&(t.filters[e(this).data("name")]=[]),t.filters[e(this).data("name")].push(e(this).val())})),e.each(n,(function(i,a){void 0===t.filters[e(this).data("name")]&&(t.filters[e(this).data("name")]=[]),t.filters[e(this).data("name")].push(e(this).data("value").toString())})),e('[data-wpgmp-filter="true"][data-wpgmp-map-id="'+o+'"]').each((function(){const i=e(this).data("wpgmp-filter-by"),a=e(this).prop("type").toLowerCase();let n;"checkbox"===a&&e(this).is(":checked")?n=e(this).val():"select-one"===a||"select"===a?n=e(this).find("option:selected").val():"radio"===a&&e(this).is(":checked")&&(n=e(this).val()),"search"==i&&e(this).val().length>2?(t.search_term=e(this).val().toLowerCase(),t.enable_search_term=!0):"search"==i&&e(this).val().length<2&&(t.search_term="",t.enable_search_term=!0),void 0!==n&&""!==n&&(t.filters[i]=t.filters[i]||[],t.filters[i].push(n))})),""!==t.addonInfo&&e.each(t.addonInfo,(function(i,a){var n=a.filter_register_mthod;void 0!==t[n]&&e.isFunction(t[n])&&t[n]()})),this.apply_filters()}register_events(){const i=this,a=i.map_data.map_property.map_id,n=e(i.container),o=i.map_data.map_options.template_name,r=!!e('[data-wpgmp-filter="true"][data-wpgmp-search-button="true"]').length;n.on("input change",".wpgmp_error",(function(){e(this).removeClass("wpgmp_error")})),e("body").on("click",".fc-accordion-tab",(function(){if(e(this).hasClass("active")){e(this).removeClass("active");e(this).next().removeClass("active")}else{e(".fc-accordion-tab").removeClass("active"),e(".fc-accordion dd").removeClass("active"),e(this).addClass("active");e(this).next().addClass("active")}})),i.map_data.listing&&e.each(i.map_data.listing.filters,(function(t,a){e(i.container).find('select[name="'+a+'"]').on("change",(function(){i.update_filters()}))})),n.on("change",`select[data-wpgmp-filter="true"][data-wpgmp-map-id="${a}"]`,(()=>{i.update_filters()})),n.on("click",".categories_filter_reset_btn",(function(){e(i.container).find(".wpgmp_filter_wrappers select").each((function(){e(this).find("option:first").attr("selected","selected"),e(this).find("option:first").prop("selected","selected")})),e(".wpgmp_search_input").val(""),""!==i.addonInfo&&e.each(i.addonInfo,(function(t,a){var n=a.filter_reset_method;void 0!==i[n]&&e.isFunction(i[n])&&i[n]()})),i.update_filters()})),e(i.container).on("click",'[data-filter="dropdown"]',(()=>i.update_filters())),n.on("click",'[data-filter="checklist"]',(()=>i.update_filters())),n.on("click",'[data-filter="list"]',(function(){e(this).toggleClass("fc_selected"),i.update_filters()})),n.on("click",".wpgmp_marker_link",(function(){const t=e(this).data("marker"),a=e(this).data("source");e("html, body").animate({scrollTop:e(i.container).offset().top-150},500),i.open_infowindow(t,a)})),r||"layout_6"===o||"layout_7"===o||n.on("keyup",`input[data-wpgmp-filter="true"][data-wpgmp-map-id="${a}"]`,(()=>{i.update_filters()})),n.on("click",'[data-filter-reset="true"]',(()=>{e('input[type="text"][data-wpgmp-filter="true"]').val(""),e('select[data-wpgmp-filter="true"]').prop("selectedIndex",0),e('input[type="checkbox"][data-filter="checklist"], input[type="checkbox"][data-wpgmp-filter="true"]').prop("checked",!1),e('[data-filter="list"].fc_selected').removeClass("fc_selected"),e('input[type="radio"][data-wpgmp-filter="true"]').prop("checked",!1),i.update_filters()})),n.on("click",'[data-wpgmp-filter="true"][data-wpgmp-search-button="true"]',(()=>{i.update_filters()})),n.on("keyup",'[data-input="wpgmp-search-text"]',(function(){const t=e(this).val().trim();n.find('[data-filter="map-radius"]').val(""),i.search_area="",t.length>
12=2&&!0===i.map_data.listing.apply_default_radius?i.wpgmp_set_search_area(t):i.update_filters()})),n.on("change",`select[data-wpgmp-map-id="${a}"][data-filter="map-sorting"]`,(function(){const[t,a,n=""]=e(this).val().split("__");t&&a&&(i.sorting(t,a,n),i.update_places_listing())})),n.on("change",`select[data-wpgmp-map-id="${a}"][data-filter="map-perpage-location-sorting"]`,(function(){i.per_page_value=e(this).val(),i.update_filters()})),n.on("click",".wpgmp_location_container a[data-marker]",(function(t){t.preventDefault();const a=e(this).data("marker");a&&"function"==typeof i.open_infowindow&&i.open_infowindow(a)})),n.on(i.settings.listing_infowindow_open_event,".wpgmp_locations a[data-marker]",(function(){const t=e(this);e("html, body").animate({scrollTop:n.offset().top-150},500),setTimeout((()=>i.open_infowindow(t.data("marker"))),300)})),n.on(i.settings.listing_infowindow_open_event,".wep-card__title a[data-marker]",(function(){const t=e(this);e("html, body").animate({scrollTop:n.offset().top-150},500),setTimeout((()=>i.open_infowindow(t.data("marker"))),300)})),n.on("click",".wpgmp_toggle_container",(function(){n.find(".wpgmp_toggle_main_container").slideToggle("slow");const t=e(this).text();e(this).text(t===wpgmp_local.hide?wpgmp_local.show:wpgmp_local.hide)})),n.on("click","li[class^='wpgmp-tab-'] a",(function(){const t=e(this).parent().attr("rel");n.find("li[class^='wpgmp-tab-'] a").removeClass("active"),e(this).addClass("active"),n.find(".wpgmp_toggle_main_container div[id^='wpgmp_tab_']").hide(),n.find(`#wpgmp_tab_${t}`).show()})),n.find(".wpgmp_find_nearby_button").click((function(){const t=e(this).closest(".wpgmp_nearby_container"),a=e(t).find(".wpgmp_auto_suggest"),n=a.data("latitude"),o=a.data("longitude"),r=e(i.container).find("input[name='wpgmp_radius']"),s=r.val();let l=!1;if(a.removeClass("wpgmp_error"),r.removeClass("wpgmp_error"),n&&o||(a.addClass("wpgmp_error").focus(),l=!0),(!s||isNaN(s)||parseInt(s)<=0)&&(r.addClass("wpgmp_error"),l=!0),l)return;const d=e(i.container).find("select[name='wpgmp_route_dimension']").val(),u=e(i.container).find('input[name^="wpgmp_place_types"]:checked'),h="miles"===d?1.60934:1,c=parseInt(s)*h*1e3;i.current_amenities?.length>0&&i.current_amenities.forEach((e=>{e.marker?.setMap&&e.marker.setMap(null)})),i.current_amenities=[],i.amenity_infowindow=i.infowindow_marker;u.map((function(){return e(this).val()})).get().forEach((function(e){const t={location:new google.maps.LatLng(n,o),radius:c,types:[e],rankBy:"DISTANCE"};i.fetchNearbyAmenities(t,(function(e){e.forEach((function(e){const t=i.createMarker(e);i.current_amenities.push({marker:t,place:e})}))}))}));const m=new google.maps.LatLng(n,o);i.map.setCenter(m),i.map_data.map_tabs.nearby_tab?.show_nearby_circle&&(i.set_nearbycenter_circle&&i.set_nearbycenter_circle.setMap(null),i.set_nearbycenter_circle=new google.maps.Circle({map:i.map,fillColor:i.map_data.map_tabs.nearby_tab.nearby_circle_fillcolor,fillOpacity:i.map_data.map_tabs.nearby_tab.nearby_circle_fillopacity,strokeColor:i.map_data.map_tabs.nearby_tab.nearby_circle_strokecolor,strokeOpacity:i.map_data.map_tabs.nearby_tab.nearby_circle_strokeopacity,strokeWeight:i.map_data.map_tabs.nearby_tab.nearby_circle_strokeweight,center:m,radius:c}),i.map.setZoom(parseInt(i.map_data.map_tabs.nearby_tab.nearby_circle_zoom)))})),n.on("change","input[data-marker-category]",(function(){const t=e(this),a=t.is(":checked"),n=t.data("marker-category"),o=t.closest('[data-container="wpgmp-category-tab-item"]');i.last_category_chkbox_action=a?"checked":"unchecked",a?(i.last_selected_cat_id=n,o.find("input[data-marker-location]").prop("checked",!0)):(i.last_remove_cat_id=n,o.find("input[data-marker-location]").prop("checked",!1));const r=t.data("child-cats");r&&r.toString().split(",").forEach((e=>{const i=t.closest(".wpgmp_tab_item").find(`[data-marker-category="${e}"]`);i.prop("checked",a),i.closest(".wpgmp_tab_item").find("input[data-marker-location]").prop("checked",a)})),i.update_filters()})),n.on("change","input[data-marker-location]",(()=>i.update_filters())),n.on("click",'[data-action="wpgmp-print"]',(function(){const t=e(i.element).attr("id"),a=e(`[data-container="wpgmp-listing-${t}"]`),n=e(`[data-container="wpgmp-custom-listing-${t}"]`);a.length&&a.print(),n.length&&n.print()})),!0===i.map_data.map_tabs?.category_tab?.select_all&&n.on("click",'input[name="wpgmp_select_all"]',(function(){const t=e(this).is(":checked");n.find("input[data-marker-category], input[data-marker-location]").prop("checked",t),i.update_filters()})),n.on("click","[data-view-details]",(function(a){a.preventDefault();const o=e(this).data("view-details"),r=e(this).attr("target");
12i.places.forEach((a=>{if(a.id==o)if("post"===a.source){const e=a.location.extra_fields.post_link;"_blank"===r?t.open(e,"_blank"):location.href=e}else e("html, body").animate({scrollTop:n.offset().top-150},500),i.open_infowindow(a.id)}))})),n.on("click",`[data-wpgmp='mcurrent_location'][data-wpgmp-map-id="${a}"]`,(function(){const t=e(this).parent().find(".wpgmp_auto_suggest");i.get_current_location((function(e){const a=i.isMapProvider("google")?e.lat():e.lat,n=i.isMapProvider("google")?e.lng():e.lng;t.data("latitude",a),t.data("longitude",n),i.wpgmp_geocode(a,n).then((e=>{t.val(e.address)})).catch(console.error)}),(function(){}))})),n.find(".wpgmp_specific_route_item").prop("checked",!0),n.on("change",`[data-wpgmp='route_toggle'][data-wpgmp-map-id="${a}"]`,(function(){const t=i.route_directions[e(this).val()];t&&t.setMap(e(this).is(":checked")?i.map:null)})),e(".wpgmp-shape-delete").click((function(t){t.preventDefault(),i.deleteSelectedShape(),e(".temp_row").addClass("hiderow")})),e('select[name="shape_stroke_opacity"]').change((function(){i.set_shapes_options(i.selectedShape)})),e('select[name="shape_stroke_weight"]').change((function(){i.set_shapes_options(i.selectedShape)})),e('select[name="shape_fill_opacity"]').change((function(){i.set_shapes_options(i.selectedShape)})),void 0!==i.map_data.shapes&&!0===i.map_data.shapes.drawing_editable&&(e(".shape_fill_color").wpColorPicker({change:function(t,a){var n={fillColor:e(this).val()};i.selectedShape.setOptions(n)}}),e(".shape_stroke_color").wpColorPicker({change:function(t,a){var n={strokeColor:e(this).val()};i.selectedShape.setOptions(n)}})),e('input[name="shape_click_url"]').change((function(){i.set_shapes_options(i.selectedShape)})),e('textarea[name="shape_click_message"]').blur((function(){i.set_shapes_options(i.selectedShape)})),e("textarea[name='shape_path']").blur((function(){var t=e(this).val().split(" ");1==t.length&&(t=e(this).val().split("\n"));var a=[];e.each(t,(function(e,t){var i=t.split(",");a.push(new google.maps.LatLng(i[0],i[1]))})),i.selectedShape.setPath(a)})),e("input[name='shape_radius']").blur((function(){var t=parseFloat(e(this).val());i.selectedShape.setRadius(t)})),e("input[name='shape_center']").blur((function(){var t=e(this).val().split(",");i.selectedShape.setCenter(new google.maps.LatLng(parseFloat(t[0]),parseFloat(t[1])))})),e("input[name='shape_northeast']").blur((function(){var t=e(this).val().split(","),a=e("input[name='shape_southwest']").val().split(",");i.selectedShape.setBounds(new google.maps.LatLngBounds(new google.maps.LatLng(parseFloat(a[0]),parseFloat(a[1])),new google.maps.LatLng(parseFloat(t[0]),parseFloat(t[1]))))})),e("input[name='shape_southwest']").blur((function(){var t=e(this).val().split(","),a=e("input[name='shape_northeast']").val().split(",");i.selectedShape.setBounds(new google.maps.LatLngBounds(new google.maps.LatLng(parseFloat(t[0]),parseFloat(t[1])),new google.maps.LatLng(parseFloat(a[0]),parseFloat(a[1]))))}
12)),e("input[name='shape_center']").blur((function(){var t=e(this).val().split(",");i.selectedShape.setCenter(new google.maps.LatLng(parseFloat(t[0]),parseFloat(t[1])))})),e('button[name="wpgmp_save_drawing"]').click((function(e){var t=[];t.push("polylines="+i.wpgmp_save_polylines().join("::")),t.push("polygons="+i.wpgmp_save_polygons().join("::")),t.push("circles="+i.wpgmp_save_circles().join("::")),t.push("rectangles="+i.wpgmp_save_rectangles().join("::")),i.wpgmp_save_shapes(t)}))}create_perpage_option(){var e="";return e+='<select name="map_perpage_location_sorting" data-wpgmp-map-id="'+this.map_data.map_property.map_id+'" data-filter="map-perpage-location-sorting" class="choose_salutation">',e+='<option value="'+this.map_data.listing.pagination.listing_per_page+'">'+wpgmp_local.show_locations+"</option>",e+='<option value="25">25</option>',e+='<option value="50">50</option>',e+='<option value="100">100</option>',e+='<option value="200">200</option>',e+='<option value="500">500</option>',e+='<option value="'+this.show_places.length+'">'+wpgmp_local.all_location+"</option>",e+="</select>"}create_sorting(){var t="";return!0===this.map_data.listing.display_sorting_filter&&(t+='<select name="map_sorting" data-wpgmp-map-id="'+this.map_data.map_property.map_id+'" data-filter="map-sorting"><option value="">'+wpgmp_local.sort_by+"</option>",e.each(this.map_data.listing.sorting_options,(function(e,i){t+="<option value='"+e+"'>"+i+"</option>"})),t+="</select>"),t}create_radius(){var t="";if(!0===this.map_data.listing.display_radius_filter){var i=this.map_data.listing.radius_options;if(null!=i){t+='<select data-name="radius"  data-wpgmp-map-id="'+this.map_data.map_property.map_id+'" name="map_radius"><option value="">'+wpgmp_local.select_radius+"</option>";var a=this.map_data.listing.radius_dimension;e.each(i.split(","),(function(e,i){t+="miles"==a?"<option value='"+i+"'>"+i+" "+wpgmp_local.miles+"</option>":"<option value='"+i+"'>"+i+" "+wpgmp_local.km+"</option>"})),t+="</select>"}}return t}custom_filters(){var t=this,i=this.map_data.places,a=this.map_data.filters;t.template_data=[],this.filter_content=this.display_filters(),this.filter_position=this.map_data.listing.filters_position,e(this.container).find(".wpgmp_filter_wrappers").length>0&&0==t.map_data.map_options.advance_template&&e(this.container).find(".wpgmp_filter_wrappers").html(this.filter_content),void 0!==a&&void 0!==a.custom_filters&&0!=a.custom_filters.length&&e.each(a.custom_filters,(function(n,o){var r="",s={};e.each(o,(function(n,o){e.each(o,(function(t,n){e.each(i,(function(i,n){if("category"==t)void 0===n.categories&&(n.categories={}),e.each(n.categories,(function(e,t){void 0===s[t.type]&&(s[t.type]={}),t.name&&(s[t.type][t.name]=t.id)}));else{if(void 0!==n[t]&&(void 0===s[t]&&(s[t]={}),n[t]&&(s[t][n[t]]=n[t])),void 0!==n.location.extra_fields[t]&&(void 0===s[t]&&(s[t]={}),n.location.extra_fields[t]&&(s[t][n.location.extra_fields[t]]=n.location.extra_fields[t])),void 0!==n.location[t]&&(void 0===s[t]&&(s[t]={}),n.location[t]&&(s[t][n.location[t]]=n.location[t])),void 0!==n.custom_filters&&void 0!==n.custom_filters[t]&&(void 0===s[t]&&(s[t]={}),n.custom_filters[t])){var o=n.custom_filters[t];e.isArray(o)?e.each(o,(function(e,i){s[t][i]=i})):s[t][o]=o}if("radius"==t){void 0===s[t]&&(s[t]={});var r=a.radius_options,l=a.radius_dimension;e.each(r.split(","),(function(e,i){"miles"==l?s[t][i+" "+wpgmp_local.miles]=i:s[t][i+" "+wpgmp_local.km]=i}))}}}))})),"dropdown"==n&&void 0!==s&&e.each(s,(function(i,a){if(Object.keys(a).length<1)return!0;a=t.sort_object_by_value(a),a=t.sort_object_by_unique_values(a),a=t.sort_numeric_value_filters(a),r+='<select data-filter="dropdown"  name="place_'+i+'" data-name = "'+i+'">',r+='<option value="">'+(o[i]?o[i]:"Select "+i)+"</option>",e.each(a,(function(e,t){var i=t;""!=(t=(t=t.replace("'","&#39;")).replace('"',"&#34;"))&&null!=t&&(r+="<option value='"+t.toLowerCase()+"'>"+i+"</option>")})),r+="</select>"})),"checklist"==n&&void 0!==s&&e.each(s,(function(i,a){a=t.sort_object_by_value(a),a=t.sort_object_by_unique_values(a),a=t.sort_numeric_value_filters(a),r+='<div class="wpgmp_filters_checklist">',r+='<label  data-filter = "place_'+i+'" >'+(o[i]?o[i]:"Select "+i)+"</label>",r+='<div class="wpgmp_checklist_wrap">',e.each(a,(function(e,t){""!=t&&null!=t&&(r+="<div class='wpgmp_checkbox_input'><input data-filter='checklist' type='checkbox' data-name = '"+i+"' value='"+t.toLowerCase()+"'><span class='wpgmp_checklist_title'>"+t+"</span></div>")})),r+="</div></div>"})),"list"==n&&void 0!==s&&e.each(s,(function(t,i){r+='<div class="wpgmp_filters_list">',r+='<label  data-filter = "place_'+t+'" >'+(a.custom_filters[t]?a.custom_filters[t]:"Select "+t)+"</label><ul>",e.each(i,(function(e,i){""!=i&&null!=i&&(r+="<li data-filter='list' data-name = '"+t+"' data-value='"+i+"'>"+e+"</li>")})),r+="</ul></div>"})),t.map_data.map_options.advance_template&&(t.template_data||(t.template_data={}),Array.isArray(t.template_data.filter)||(t.template_data.filter=[]),t.template_data.filter.push(s))})),0==t.map_data.map_options.advance_template&&e(t.container).find(a.filters_container).append(r)}))}sort_numeric_value_filters(e){return e.some(isNaN)||e.sort((function(e,t){return e-t})),e}sorting(e,t,i){switch(e){case"category":void 0!==this.places&&this.places.sort(this.sortByCategory),void 0!==this.show_places&&this.show_places.sort(this.sortByCategory),"desc"==t&&(this.places.reverse(),this.show_places.reverse());break;case"title":void 0!==this.map_data.places&&this.map_data.places.sort(this.sortByTitle),void 0!==this.show_places&&this.show_places.sort(this.sortByTitle),"desc"==t&&(this.map_data.places.reverse(),this.places.reverse(),this.show_places.reverse());break;case"address":void 0!==this.map_data.places&&this.map_data.places.sort(this.sortByAddress),void 0!==this.show_places&&this.show_places.sort(this.sortByAddress),"desc"==t&&(this.places.reverse(),this.show_places.reverse());break;default:var a=this.map_data.places[0];
12void 0!==a[e]?(this.map_data.places.sort(this.sortByPlace(e,i)),this.show_places.sort(this.sortByPlace(e,i))):void 0!==a.location[e]?(this.map_data.places.sort(this.sortByLocation(e,i)),this.show_places.sort(this.sortByLocation(e,i))):void 0!==a.location.extra_fields[e]&&(this.map_data.places.sort(this.sortByExtraFields(e,i)),this.show_places.sort(this.sortByExtraFields(e,i))),"desc"==t&&(this.places.reverse(),this.show_places.reverse())}}sorting_inside_tabs(e,t){return"asc"==t&&e.sort(),"desc"==t&&(e.sort(),e.reverse()),e}sortByTitle(e,t){var i=e.title.toLowerCase(),a=t.title.toLowerCase();return i<a?-1:i>a?1:0}sortByValue(e,t){var i=e.toLowerCase(),a=t.toLowerCase();return i<a?-1:i>a?1:0}sortByCategory(e,t){if(t.categories[0]&&e.categories[0]&&e.categories[0].name&&t.categories[0].name){var i=e.categories[0].name.toLowerCase(),a=t.categories[0].name.toLowerCase();return i<a?-1:i>a?1:0}}sortByAddress(e,t){var i=e.address.toLowerCase(),a=t.address.toLowerCase();return i<a?-1:i>a?1:0}sortByPlace(e,t){return function(i,a){if(a[e]&&i[e]&&i[e]&&a[e]){var n=i[e].toLowerCase(),o=a[e].toLowerCase();return"num"==t&&(n=parseInt(n),o=parseInt(o)),n<o?-1:n>o?1:0}}}sortByExtraFields(e,t){return function(i,a){if(void 0!==a.location.extra_fields[e]&&void 0!==i.location.extra_fields[e]){if(null==a.location.extra_fields[e]&&(a.location.extra_fields[e]=""),null==i.location.extra_fields[e]&&(i.location.extra_fields[e]=""),"num"==t)var n=parseInt(i.location.extra_fields[e]),o=parseInt(a.location.extra_fields[e]);else n=i.location.extra_fields[e].toLowerCase(),o=a.location.extra_fields[e].toLowerCase();return n<o?-1:n>o?1:0}}}sortByLocation(e,t){return function(i,a){if(a.location[e]&&i.location[e]&&i.location[e]&&a.location[e]){var n=i.location[e].toLowerCase(),o=a.location[e].toLowerCase();return"num"==t&&(n=parseInt(n),o=parseInt(o)),n<o?-1:n>o?1:0}}}sort_object_by_keyvalue(e,t,i,a){var n=[];for(var o in e)n.push(e[o]);
12return n.sort(this.sortByPlace(t,i)),"desc"==a&&n.reverse(),n}sort_object_by_unique_values(e){var t=[];for(var i in e)e[i].indexOf(",")>-1?e[i].split(/\s*,\s*/).forEach((function(e){t.push(e.trim())})):t.push(e[i].trim());return t.filter((function(e,i){return t.indexOf(e)==i})).sort()}sort_object_by_value(e){var t=[];for(var i in e)t.push(i);t.sort(this.sortByValue);for(var a={},n=0;n<t.length;n++)a[t[n]]=e[t[n]];return a}get_user_position(){}wpgmp_get_nearby_locations(){}wpgmp_within_radius(){}wpgmp_set_search_area(){}map_widgets(){}widget_route_tab(){}widget_nearby(){}widget_directions(){}widget_category(){}add_tab(){}show_tabs(){}create_routes(){}wpgmp_draw_route(){}wpgmp_find_direction(){}wpgmp_direction_steps(){}register_direction_tab(){}wpgmp_sort_distance(e){var t=[];for(var i in e)e.hasOwnProperty(i)&&t.push({key:i,value:e[i]});return t.sort((function(e,t){return e.value-t.value})),t}async _handleKeyUp(t,a,n){const o=this,r=o.isMapProvider("google"),s=a.value.trim(),l=e(a).closest(".wpgmp-autocomplete-wrapper").find(".wpgmp-autosuggest-loader");l.show();let d=-1;if(!s)return n.innerHTML="",n.style.display="none",e(".wpgmp-autosuggest-results").hide(),void l.hide();const u=(t,o,r)=>{n.innerHTML="",n.style.display="block",e(".wpgmp-autosuggest-results").show(),l.hide(),t.forEach(((t,a)=>{const s=i.createElement("li");s.textContent=o(t),s.tabIndex=0,s.dataset.index=a;const l=()=>{r(t),n.innerHTML="",n.style.display="none",e(".wpgmp-autosuggest-results").hide(),d=-1};s.addEventListener("click",l),s.addEventListener("keypress",(e=>{"Enter"===e.key&&l()})),n.appendChild(s)})),a.addEventListener("keydown",(t=>{const i=n.querySelectorAll("li");if(i.length){if("ArrowDown"===t.key)t.preventDefault(),d=(d+1)%i.length;else if("ArrowUp"===t.key)t.preventDefault(),d=(d-1+i.length)%i.length;else{if("Enter"===t.key&&d>=0){t.preventDefault();return void i[d].dispatchEvent(new Event("click"))}if("Escape"===t.key)return n.innerHTML="",n.style.display="none",void e(".wpgmp-autosuggest-results").hide()}i.forEach(((e,t)=>{const i=t===d;e.classList.toggle("active",i),i&&(a.value=e.textContent)}))}}));const s=t=>{n.contains(t.target)||t.target===a||(n.innerHTML="",n.style.display="none",e(".wpgmp-autosuggest-results").hide(),i.removeEventListener("click",s))};setTimeout((()=>{i.addEventListener("click",s)}),0)};if(r)try{const{Place:e,AutocompleteSessionToken:t,AutocompleteSuggestion:i}=await google.maps.importLibrary("places"),n={input:s,sessionToken:new t};wpgmp_local.wpgmp_country_specific&&1==wpgmp_local.wpgmp_country_specific&&wpgmp_local.wpgmp_countries&&wpgmp_local.wpgmp_countries.length>0&&(n.includedRegionCodes=wpgmp_local.wpgmp_countries);const{suggestions:r}=await i.fetchAutocompleteSuggestions(n);u(r,(e=>e.placePrediction.text.toString()),(async e=>{const t=e.placePrediction.toPlace();await t.fetchFields({fields:["displayName","formattedAddress","location","viewport","addressComponents"]}),o.wpgmp_handle_place_selection(t,a),a.value=e.placePrediction.text.toString()}))}catch(e){console.error("Google Places autocomplete failed:",e)}else{let t="https://nominatim.openstreetmap.org/search";const i={q:s,limit:10,format:"json",addressdetails:1};if(wpgmp_local.wpgmp_country_specific&&1==wpgmp_local.wpgmp_country_specific&&wpgmp_local.wpgmp_countries&&wpgmp_local.wpgmp_countries.length>0){t+=`?countrycodes=${wpgmp_local.wpgmp_countries.join(",")}`}try{u(await e.getJSON(t,i),(e=>e.display_name),(e=>{o.wpgmp_handle_place_selection(e,a),a.value=e.display_name}))}catch(e){console.error("Nominatim autocomplete failed:",e)}}}google_auto_suggest(t){var i=this;t.each((function(){var t=this;e(t).parent().hasClass("wpgmp-autocomplete-wrapper")||e(t).wrap('<div class="wpgmp-autocomplete-wrapper"></div>').after(' <div class="wpgmp-autosuggest-loader" style="display:none;"></div><ul class="wpgmp-autosuggest-results"></ul>');const a=e(t).siblings(".wpgmp-autosuggest-results")[0];i.wpgmp_initialise_autosuggest(t,a)}))}wpgmp_initialise_autosuggest(t,i){e(t).on("input",this._debounce((e=>this._handleKeyUp(e,t,i)),500))}wpgmp_extract_place_data(e){const t={address:"",lat:"",lng:"",city:"",state:"",country:"",postal:""};if(this.isMapProvider("leaflet")){t.address=e.display_name||"",t.lat=parseFloat(e.lat),t.lng=parseFloat(e.lon);const i=e.address||{};t.city=i.city||i.county||"",t.state=i.state||"",t.country=i.country||"",t.postal=i.postcode||""}else{t.address=e.formattedAddress||"",e.location&&(t.lat=e.location.lat(),t.lng=e.location.lng());const i=this.wpgmp_finddata||instance?.wpgmp_finddata;"function"==typeof i&&(t.country=i.call(this,e,"country")||"",t.state=i.call(this,e,"administrative_area_level_1")||"",t.city=i.call(this,e,"locality")||i.call(this,e,"administrative_area_level_2")||i.call(this,e,"administrative_area_level_3")||"",t.postal=i.call(this,e,"postal_code")||"")}return t}wpgmp_handle_place_selection(t,i){const a=this,n=a.isMapProvider("google"),o=e(i).attr("name"),r=e(i).data("wpgmp-autosuggest-callback");if("function"==typeof r)return void r(t);let s,l,d,u,h,c,m;if(n)s=t.location.lat(),l=t.location.lng(),d=a.wpgmp_finddata(t,"administrative_area_level_3")||a.wpgmp_finddata(t,"locality"),u=a.wpgmp_finddata(t,"administrative_area_level_1"),h=a.wpgmp_finddata(t,"country"),c=a.wpgmp_finddata(t,"postal_code"),m=t.formattedAddress||e(i).val();else{s=parseFloat(t.lat),l=parseFloat(t.lon);const a=t.address||{};d=a.city||a.county||"",u=a.state||"",h=a.country||"",c=a.postcode||"",m=t.display_name||e(i).val()}if(a.placeMarker(s,l),"location_address"===o)e(".google_latitude").val(s),e(".google_longitude").val(l),e(".google_city").val(d),e(".google_state").val(u),e(".google_country").val(h),e(".google_postal_code").val(c),n&&t.viewport&&a.map.fitBounds(t.viewport);else if("wpgmp_metabox_location"===o)e("input[name='wpgmp_metabox_latitude']").val(s),e("input[name='wpgmp_metabox_longitude']").val(l),e("input[name='wpgmp_metabox_location_city']").val(d),e("input[name='wpgmp_metabox_location_state']").val(u),e("input[name='wpgmp_metabox_location_country']").val(h),e("input[name='wpgmp_metabox_location_hidden']").val(m),n&&t.viewport&&a.map.fitBounds(t.viewport);else if("map-search-control"===o){const e=parseInt(a.settings.zoom_level_after_search||10);a.map.setZoom(e),a.map.setCenter(n?t.location:[s,l])}else a.map.setCenter(n?t.location:[s,l]),e(i).data("longitude",l),e(i).data("latitude",s),"wpgmp_search_input"!==o&&"search"!==e(i).data("wpgmp-filter-by")||(a.map_data.listing&&(
12a.search_area=n?t.location:[s,l]),a.update_filters()),"function"==typeof a.display_circle_when_searched&&a.display_circle_when_searched(t,i)}get_current_location(e,t){const i=this;void 0===i.user_location?navigator.geolocation.getCurrentPosition((t=>{const a=t.coords.latitude,n=t.coords.longitude;i.user_location=i.isMapProvider("google")?new google.maps.LatLng(a,n):L.latLng(a,n),e&&e(i.user_location)}),(e=>{console.warn("Geolocation error:",e),i.user_location=(i.isMapProvider("google"),i.map.getCenter()),t&&t(i.user_location)}),{enableHighAccuracy:!0,timeout:5e4,maximumAge:0}):e&&e(i.user_location)}wpgmp_geocode_address(t){const i=this,a=i.isMapProvider("google");return new Promise((n=>{if(!t||t.trim().length<2)return void n(null);const o=i.settings.country_codes||[],r=!0===i.settings.country_specific;if(a){const e={address:t};r&&o.length>0&&(e.componentRestrictions={country:o.join(",")});(new google.maps.Geocoder).geocode(e,((e,t)=>{if(t===google.maps.GeocoderStatus.OK&&e[0]){const t=e[0],i=t.geometry.location,a=t.address_components,o=e=>a.find((t=>t.types.includes(e)))?.long_name||"";n({address:t.formatted_address,city:o("locality")||o("administrative_area_level_3"),state:o("administrative_area_level_1"),country:o("country"),postal:o("postal_code"),lat:i.lat(),lng:i.lng()})}else n(null)}))}else{const i="https://nominatim.openstreetmap.org/search",a={q:t,format:"json",limit:1,addressdetails:1};r&&o.length>0&&(a.countrycodes=o.join(",")),e.getJSON(i,a).done((e=>{if(e&&e.length>0){const t=e[0],i=t.address||{};n({address:t.display_name,city:i.city||i.county||i.town||i.village||"",state:i.state||"",country:i.country||"",postal:i.postcode||"",lat:parseFloat(t.lat),lng:parseFloat(t.lon)})}else n(null)})).fail((()=>n(null)))}}))}wpgmp_geocode(e,t){var i=this;return new Promise(((a,n)=>{if(i.isMapProvider("google")&&"undefined"!=typeof google){const i=new google.maps.Geocoder,o=new google.maps.LatLng(e,t);i.geocode({location:o},((i,o)=>{if(o===google.maps.GeocoderStatus.OK&&i[0]){const n=i[0].address_components,o=e=>{const t=n.find((t=>t.types.includes(e)));return t?t.long_name:""};a({address:i[0].formatted_address,latitude:e,longitude:t,city:o("locality")||o("administrative_area_level_2")||o("administrative_area_level_3"),state:o("administrative_area_level_1"),country:o("country"),postal_code:o("postal_code")})}else n("Google Geocoding failed: "+o)}))}else if(i.isMapProvider("leaflet")){fetch(`https://nominatim.openstreetmap.org/reverse?format=jsonv2&lat=${e}&lon=${t}`).then((e=>e.json())).then((i=>{const n=i.address||{};a({address:i.display_name||"",latitude:e,longitude:t,city:n.city||n.town||n.village||n.county||"",state:n.state||"",country:n.country||"",postal_code:n.postcode||""})})).catch((e=>n("Leaflet/OSM reverse geocoding failed: "+e)))}else n("Unknown map provider: "+provider)}))}show_search_control(){const t=this,a=t.isMapProvider("google"),n=e(t.container).find('[data-input="map-search-control"]');if(!n)return;const o=i.createElement("div");if(o.className="wpgmp-search-control-wrapper",n[0]&&o.appendChild(n[0]),a){const e=t.settings.search_control_position?.toUpperCase(),i=google.maps.ControlPosition?.[e];void 0!==i&&t.map.controls?t.map.controls[i].push(o):console.warn("Invalid Google search control position:",e),"function"==typeof t.google_auto_suggest?t.google_auto_suggest(n):console.warn("google_auto_suggest() is not defined or not a function.")}else{const e=L.Control.extend({options:{position:(t.settings.search_control_position||"topright").toLowerCase()},onAdd:function(){return o}});t.map.addControl(new e)}}search_category(t,i,a,n,o){var r=this,s=!0;return e.each(t,(function(t,l){t==i&&(a=l,s=!1,void 0===o[i]&&(o[i]={},o[i].data=[],o[i].parent_cat=l,o[i].cat_id=i,e.each(r.categories,(function(e,t){t.group_map_id==i&&(o[i].cat_title=t.group_map_title,o[i].cat_marker_icon=t.group_marker)}))),a=r.search_category(r.map_data.map_tabs.category_tab.child_cats,l,a,n,o))})),1==s&&void 0===n[i]&&(n[i]={},n[i].data=[],n[i].cat_id=i,e.each(r.categories,(function(e,t){t.group_map_id==i&&(n[i].cat_title=t.group_map_title,n[i].cat_marker_icon=t.group_marker)}))),a}display_sub_categories(t,i,a,n){var o=this,r=[];void 0!==t&&e.each(t,(function(i,a){var n=a.data.length;void 0!==t&&e.each(t,(function(i,o){o.parent_cat==a.cat_id&&(n+=o.data.length,e.each(t,(function(e,t){t.parent_cat==o.cat_id&&(n+=t.data.length)})))})),a.loc_count=n,"count"==o.map_data.map_tabs.category_tab.cat_order_by?r.push(a.loc_count):"category"==o.map_data.map_tabs.category_tab.cat_order_by?a.cat_order?r.push(a.cat_order):!a.cat_order&&o.map_data.map_tabs.category_tab.all_cats[a.cat_id]&&(a.cat_order=o.map_data.map_tabs.category_tab.all_cats[a.cat_id].extensions_fields.cat_order,r.push(a.cat_order)):a.cat_title?r.push(a.cat_title):!a.cat_title&&o.map_data.map_tabs.category_tab.all_cats[a.cat_id]&&(a.cat_title=o.map_data.map_tabs.category_tab.all_cats[a.cat_id].group_map_title,r.push(a.cat_title))})),"category"==o.map_data.map_tabs.category_tab.cat_order_by?r.sort((function(e,t){return e-t})):"count"==o.map_data.map_tabs.category_tab.cat_order_by?r.sort((function(e,t){return t-e})):r.sort();var s=[],l=[];return e.each(r,(function(i,a){e.each(t,(function(t,i){var n;n="count"==o.map_data.map_tabs.category_tab.cat_order_by?i.loc_count:"category"==o.map_data.map_tabs.category_tab.cat_order_by?i.cat_order:i.cat_title,a==n&&-1==e.inArray(i.cat_id,l)&&(s.push(i),l.push(i.cat_id))}))})),e.each(s,(function(r,s){if(s.parent_cat==i){var l="";if(!s.cat_title&&o.map_data.map_tabs.category_tab.all_cats[s.cat_id]&&(s.cat_title=o.map_data.map_tabs.category_tab.all_cats[s.cat_id].group_map_title),!s.cat_marker_icon&&o.map_data.map_tabs.category_tab.all_cats[s.cat_id]&&(s.cat_marker_icon=o.map_data.map_tabs.category_tab.all_cats[s.cat_id].group_marker),void 0!==s.cat_marker_icon&&(l='
12<span class="arrow"><img src="'+s.cat_marker_icon+'"></span>'),a+='<div class="wpgmp_tab_item" data-container="wpgmp-category-tab-item" style="padding-left:'+n+'px;">',void 0!==o.map_data.map_tabs.category_tab.parent_cats&&o.map_data.map_tabs.category_tab.parent_cats[s.cat_id])var d=' data-child-cats="'+o.map_data.map_tabs.category_tab.parent_cats[s.cat_id].join(",")+'"';else d="";a+='<input type="checkbox"'+d+' data-parent-cat="'+i+'" data-marker-category="'+s.cat_id+'" value="'+s.cat_id+'">';var u=s.loc_count;e.each(o.map_data.map_tabs.category_tab.child_cats,(function(e,t){t==s.cat_id&&0==u&&(u="")}));var h="";h=!0===o.map_data.map_tabs.category_tab.show_count&&""!=u?" ("+u+")":"",a+='<a href="javascript:void(0);" class="wpgmp_cat_title wpgmp-accordion accordion-close">'+s.cat_title+h+l+"</a>",!0!==o.map_data.map_tabs.category_tab.hide_location&&(a+='<div class="scroll-pane" style="height: 97px; width:100%;">',a+='<ul class="wpgmp_location_container">',e.each(s.data,(function(e,t){"marker"==t.onclick_action?a+='<li><input type="checkbox" data-marker-location="'+t.cat_location_id+'"  value="'+t.cat_location_id+'" /><a data-marker="'+t.cat_location_id+'" data-zoom="'+t.cat_location_zoom+'" href="javascript:void(0);">'+t.cat_location_title+"</a></li>":"post"==t.onclick_action?a+='<li><input type="checkbox" data-marker-location="'+t.cat_location_id+'"  value="'+t.cat_location_id+'" /><a href="'+t.redirect_permalink+'" target="_blank">'+t.cat_location_title+"</a></li>":"custom_link"==t.onclick_action&&(a+='<li><input type="checkbox" data-marker-location="'+t.cat_location_id+'"  value="'+t.cat_location_id+'" /><a href="'+t.redirect_custom_link+'" target="_blank">'+t.cat_location_title+"</a></li>")})),a+="</ul>",a+="</div>"),a+="</div>",a+=o.display_sub_categories(t,s.cat_id,"",n+20)}else if(r+1==t.length)return})),a}enable_drawing(){}create_polygon(){}create_polyline(){}create_circle(){}create_rectangle(){}deleteSelectedShape(){}clearSelection(){}setSelection(){}event_listener(){}get_shapes_options(){}set_shapes_options(){}wpgmp_save_shapes(){}wpgmp_shape_complete(){}wpgmp_save_polylines(){}wpgmp_save_polygons(){}wpgmp_save_circles(){}wpgmp_save_rectangles(){}wpgmp_image_type_overlays(){}set_kml_layer(){}set_marker_cluster(){}set_panning_control(){}set_visual_refresh(){}set_45_imagery(){}set_overlay(){}set_bicyle_layer(){}set_traffic_layer(){}set_panoramic_layer(){}set_transit_layer(){}set_weather_layer(){}set_streetview(){}create_labeled_marker(e,t,i){const a=this;var n;if(a.isMapProvider("google"))return i={lat:i.lat(),lng:i.lng()},"a"==e.toLowerCase()&&(n=wpgmp_local.place_icon_url+"marker-alpha-1.svg"),"b"==e.toLowerCase()&&(n=wpgmp_local.place_icon_url+"marker-alpha-2.svg"),a.create_google_marker({map:a.map,position:i,iconUrl:n,label:e,title:t});return a.create_leaflet_marker({map:a.map,position:i,label:e,isDivIcon:!0})}create_amenities_markers(){}load_google_fonts(t){t&&t.length>0&&e.each(t,(function(e,t){t.indexOf(",")>=0&&(t=(t=t.split(","))[0]),t.indexOf('"')>=0&&(t=(t=t.replace('"',"")).replace('"',"")),WebFont.load({google:{families:[t]}})}))}load_json(e){this.map.data.loadGeoJson(e)}wpgmp_finddata(){}place_info(t){var i;return e.each(this.places,(function(e,a){parseInt(a.id)==parseInt(t)&&(i=a)})),i}_debounce(e,t){let i=null;return function(...a){clearTimeout(i),i=setTimeout((()=>e.apply(this,a)),t)}}_encodePolyline(e){let t="",i=0,a=0;for(const[o,r]of e){const e=Math.round(1e5*o),s=Math.round(1e5*r),l=s-a;t+=n(e-i)+n(l),i=e,a=s}return t;function n(e){let t=e<<1;return e<0&&(t=~t),function(e){let t="";for(;e>=32;)t+=String.fromCharCode(63+(32|31&e)),e>>=5;return t+=String.fromCharCode(e+63),t}(t)}}_decodePolyline(e){let t=0,i=0,a=0,n=[];for(;t<e.length;){let o,r=1,s=0;do{o=e.charCodeAt(t++)-63-1,r+=o<<s,s+=5}while(o>=31);i+=1&r?~(r>>1):r>>1,r=1,s=0;do{o=e.charCodeAt(t++)-63-1,r+=o<<s,s+=5}while(o>=31);a+=1&r?~(r>>1):r>>1,n.push([i/1e5,a/1e5])}return n}formatRouteDuration(e){const t=parseInt(e,10),i=Math.floor(t/3600),a=Math.floor(t%3600/60);let n="";return i>0&&(n+=i+(1===i?" hr ":" hrs ")),(a>0||0===i)&&(n+=a+" mins"),n.trim()}isMapProvider(e){return(this?.map_data?.provider||wpgmp_local?.map_provider||"google").toLowerCase()===e.toLowerCase()}isRouteProvider(e){return(this?.map_data?.route_provider||wpgmp_local?.route_provider||"leaflet").toLowerCase()===e.toLowerCase()}register_locate_me_control(){const t=this;if(!0!==t.settings.locateme_control)return;const a="wpgmp_locateme_control "+(t.settings.locateme_control_position||"topright").toLowerCase(),n=`<span title='${wpgmp_local.locate_me}'></span>`;if(t.isMapProvider("google")){const e=i.createElement("div");e.className=a,e.innerHTML=n,t.map.controls[google.maps.ControlPosition[t.settings.locateme_control_position||"TOP_RIGHT"]].push(e)}else{const e=L.Control.extend({options:{position:t.settings.locateme_control_position?.toLowerCase()||"topright"},onAdd(){const e=L.DomUtil.create("div",a);return e.innerHTML=n,e.title=wpgmp_local.locate_me,L.DomEvent.disableClickPropagation(e),e}});t.map.addControl(new e)}e(t.container).on("click",".wpgmp_locateme_control",(function(){t.get_current_location((e=>{const a=t.isMapProvider("google"),n="function"==typeof e.lat?e.lat():e.lat,o="function"==typeof e.lng?e.lng():e.lng,r=a?new google.maps.LatLng(n,o):L.latLng(n,o);if(a)t.map.panTo(r),t.map.setZoom(15);else{const e=r.toBounds(100);t.map.flyToBounds(e,{padding:[50,50],maxZoom:15,animate:!0,duration:1.5})}if(!a&&t.pulse_circle&&t.map.hasLayer(t.pulse_circle)&&t.map.removeLayer(t.pulse_circle),a){t.pulse_circle&&t.pulse_circle.setMap(null);const e=i.createElement("div");e.className="pulse-marker";const a=new google.maps.OverlayView;a.onAdd=function(){this.getPanes().overlayMouseTarget.appendChild(e),e.style.position="absolute"},a.draw=function(){const t=this.getProjection().fromLatLngToDivPixel(r);t&&(e.style.left=t.x-15+"px",e.style.top=t.y-15+"px")},a.onRemove=function(){e.parentNode&&e.parentNode.removeChild(e)},a.setMap(t.map),t.pulse_circle=a}else t.pulse_circle=t.create_leaflet_marker({map:t.map,position:r,isDivIcon:!0,html:'<div class="pulse-marker"></div>',customClass:""});t.map_center_marker&&t.map_center_marker.setPosition(r),t.set_center_circle&&(t.isMapProvider("google")?t.set_center_circle.setCenter(r):"function"==typeof t.set_center_circle.setLatLng&&t.set_center_circle.setLatLng(r))}))}))}getMarkerSize(){const e=t.innerWidth<=767,i=t.devicePixelRatio>1.5;let a;return a=e?wpgmp_local.mobile_marker_size||[24,24]:i?wpgmp_local.retina_marker_size||[64,64]:wpgmp_local.desktop_marker_size||[32,32],a}compute_distance(e,t,i,a){const n=this.isMapProvider("google");if(e=parseFloat(e),t=parseFloat(t),i=parseFloat(i),a=parseFloat(a),n&&"undefined"!=typeof google&&google.maps?.geometry?.spherical){const n=new google.maps.LatLng(e,t),o=new google.maps.LatLng(i,a);return google.maps.geometry.spherical.computeDistanceBetween(n,o)}if("undefined"!=typeof L){const n=L.latLng(e,t),o=L.latLng(i,a);return n.distanceTo(o)}return console.warn("No supported map provider available to compute distance."),null}}}(jQuery,window,document),function($,window,document){class WpgmpGoogleMaps extends WpgmpBaseMaps{constructor(e,t={},i=[]){super(e,t,i);this.map_data.map_tabs&&this.map_data.map_tabs.direction_tab&&this.map_data.map_tabs.direction_tab.suppress_markers,this.infowindow_marker=new google.maps.InfoWindow,this.infobox=this.wpgmpInitializeInfoBox(),this.newRoutesApiURL="https://routes.googleapis.com/directions/v2:computeRoutes",this.searchNearbyApiURL="https://places.googleapis.com/v1/places:searchNearby"}init(){const map_obj=this;let isMobile=!1,screen_type="desktop";const screen_size=$(window).width();if(screen_size<=480?screen_type="smartphones":screen_size>480&&screen_size<=768?screen_type="ipads":screen_size>=1824&&(screen_type="large-screens"),"desktop"!==screen_type&&!0===map_obj.settings.mobile_specific){isMobile=!0;const e=map_obj.settings.screens?.[screen_type];e&&(map_obj.settings.width_mobile=e.map_width_mobile,map_obj.settings.height_mobile=e.map_height_mobile,map_obj.settings.zoom=parseInt(e.map_zoom_level_mobile),map_obj.settings.draggable="false"!==e.map_draggable_mobile,map_obj.settings.scroll_wheel="false"!==e.map_scrolling_wheel_mobile),""!==map_obj.settings.width_mobile&&$(map_obj.element).css("width",map_obj.settings.width_mobile),""!==map_obj.settings.height_mobile&&$(map_obj.element).css("height",map_obj.settings.height_mobile)}
12const center=new google.maps.LatLng(map_obj.settings.center_lat,map_obj.settings.center_lng),mapOptions={zoom:parseInt(map_obj.settings.zoom),center:center,scrollwheel:"true"!==map_obj.settings.scroll_wheel,disableDoubleClickZoom:!1===map_obj.settings.doubleclickzoom,zoomControl:!0===map_obj.settings.zoom_control,fullscreenControl:!0===map_obj.settings.full_screen_control,fullscreenControlOptions:{position:google.maps.ControlPosition[map_obj.settings.full_screen_control_position]},zoomControlOptions:{style:google.maps.ZoomControlStyle[map_obj.settings.zoom_control_style],position:google.maps.ControlPosition[map_obj.settings.zoom_control_position]},mapTypeControl:!0===map_obj.settings.map_type_control,mapTypeControlOptions:{style:google.maps.MapTypeControlStyle[map_obj.settings.map_type_control_style],position:google.maps.ControlPosition[map_obj.settings.map_type_control_position]},cameraControlOptions:{position:google.maps.ControlPosition[map_obj.settings.camera_control_position]},scaleControl:!0===map_obj.settings.scale_control,streetViewControl:!0===map_obj.settings.street_view_control,streetViewControlOptions:{position:google.maps.ControlPosition[map_obj.settings.street_view_control_position]},overviewMapControl:!0===map_obj.settings.overview_map_control,overviewMapControlOptions:{opened:map_obj.settings.overview_map_control},draggable:map_obj.settings.draggable,mapTypeId:google.maps.MapTypeId[map_obj.settings.map_type_id],styles:eval(map_obj.map_data.styles),minZoom:parseInt(map_obj.settings.min_zoom),maxZoom:parseInt(map_obj.settings.max_zoom),gestureHandling:map_obj.settings.gesture,cameraControl:!0===map_obj.settings.camera_control};let useAdvancedMarker="true"==wpgmp_local.use_advanced_marker;const isApplyStyles=!(!map_obj.map_data.styles||""==map_obj.map_data.styles),spiderfier_enabled="true"===map_obj.map_data.map_marker_spiderfier_setting?.marker_spiderfy;if((map_obj.map_data.marker_cluster||isApplyStyles||spiderfier_enabled)&&(useAdvancedMarker=!1),map_obj.useAdvancedMarker=useAdvancedMarker,!0===map_obj.useAdvancedMarker&&0==isApplyStyles&&(mapOptions.mapId="mapID"+map_obj.map_data.map_property.map_id),map_obj.map=new google.maps.Map(map_obj.element,mapOptions),void 0!==google?.maps?.marker?.AdvancedMarkerElement){void 0===google.maps.Animation&&(google.maps.Animation={BOUNCE:"BOUNCE",DROP:"DROP"});const e=google.maps.marker.AdvancedMarkerElement.prototype;"function"!=typeof e.getPosition&&(e.getPosition=function(){return this.position}),"function"!=typeof e.setPosition&&(e.setPosition=function(e){this.position=e}),"function"!=typeof e.setAnimation&&(e.setAnimation=function(e){this._animation=e;const t=this.content;t&&t instanceof HTMLElement&&(t.classList.remove("gmp-marker-bounce","gmp-marker-drop"),e===google.maps.Animation.BOUNCE?t.classList.add("gmp-marker-bounce"):e===google.maps.Animation.DROP&&t.classList.add("gmp-marker-drop"))}),"function"!=typeof e.getAnimation&&(e.getAnimation=function(){return this._animation||null}),"function"!=typeof e.setVisible&&(e.setVisible=function(e){e?!this.map&&this._boundMap&&(this.map=this._boundMap):(this._boundMap=this.map,this.map=null),this._visible=e}),"function"!=typeof e.getVisible&&(e.getVisible=function(){return this._visible||!!this.map}),"function"!=typeof e.bindMap&&(e.bindMap=function(e){this._boundMap=e,this.map=e,this._visible=!0}),"function"!=typeof google.maps.Marker.prototype.bindMap&&(google.maps.Marker.prototype.bindMap=function(e){this._boundMap=e,this.setMap(e)}),"function"!=typeof e.setIcon&&(e.setIcon=function(e){if("object"!=typeof e||!e.url)return void console.warn("Invalid icon object passed to setIcon");const t=e.url,i=e.scaledSize?[e.scaledSize.width,e.scaledSize.height]:[32,32];this._iconSize=i;const a=map_obj.createIconElement(t,this.title,i);this.content=a}),"function"!=typeof e.setIconSize&&(e.setIconSize=function(e){Array.isArray(e)&&2===e.length&&(this._iconSize=e)})}if(map_obj.search_button=!1,!0===map_obj.map_data.map_options.advance_template){const e=$(document).find('[data-listing-content="true"][data-wpgmp-map-id]'),t=e.prop("innerHTML");t&&(map_obj.map_data.listing.listing_placeholder=t)}if(map_obj.map_loaded(),map_obj.responsive_map(),map_obj.create_markers(),map_obj.display_markers(),void 0!==map_obj.settings.google_fonts&&map_obj.load_google_fonts(map_obj.settings.google_fonts),!0===map_obj.settings.search_control&&map_obj.show_search_control(),!0===map_obj.settings.map_control&&void 0!==map_obj.settings.map_control_settings&&$.each(map_obj.settings.map_control_settings,(function(e,t){const i=document.createElement("div");
12map_obj.create_element(i,map_obj.map,t.html),i.index=1,map_obj.map.controls[google.maps.ControlPosition[t.position]].push(i)})),!0===map_obj.settings.locateme_control&&map_obj.settings.locateme_control_position&&map_obj.register_locate_me_control(),map_obj.map_data.street_view&&map_obj.set_streetview(center),map_obj.map_data.weather_layer&&map_obj.set_weather_layer(),map_obj.map_data.bicyle_layer&&map_obj.set_bicyle_layer(),map_obj.map_data.traffic_layer&&map_obj.set_traffic_layer(),map_obj.map_data.transit_layer&&map_obj.set_transit_layer(),map_obj.map_data.panoramio_layer&&map_obj.set_panoramic_layer(),map_obj.map_data.overlay_setting&&map_obj.set_overlay(),"45"===map_obj.settings.display_45_imagery&&map_obj.set_45_imagery(),!0===map_obj.map_data.map_visual_refresh&&map_obj.set_visual_refresh(),map_obj.map_data.marker_cluster&&map_obj.set_marker_cluster(),map_obj.map_data.panning_control&&map_obj.set_panning_control(),map_obj.map_data.kml_layer&&map_obj.set_kml_layer(),map_obj.map_data.shapes?.shape&&(map_obj.opened_info=map_obj.infowindow_marker,map_obj.map_data.shapes.shape.polygons&&map_obj.create_polygon(),map_obj.map_data.shapes.shape.polylines&&map_obj.create_polyline(),map_obj.map_data.shapes.shape.circles&&map_obj.create_circle(),map_obj.map_data.shapes.shape.rectangles&&map_obj.create_rectangle()),map_obj.map_data.listing){if(map_obj.map_data.listing.default_sorting&&map_obj.map_data.autosort){let e="";"listorder"===map_obj.map_data.listing.default_sorting.orderby&&(e="num"),map_obj.sorting(map_obj.map_data.listing.default_sorting.orderby,map_obj.map_data.listing.default_sorting.inorder,e)}}else map_obj.map_data.map_tabs?.category_tab?.cat_tab&&(map_obj.map_data.map_tabs.category_tab.cat_post_order||(map_obj.map_data.map_tabs.category_tab.cat_post_order="asc"),map_obj.map_data.autosort&&(map_obj.sorting("title",map_obj.map_data.map_tabs.category_tab.cat_post_order),map_obj.map_data.places_for_category_tabs=map_obj.map_data.places,map_obj.map_data.places_for_category_tabs=map_obj.sorting_inside_tabs(map_obj.map_data.places_for_category_tabs,map_obj.map_data.map_tabs.category_tab.cat_post_order)));map_obj.map_data.listing&&(map_obj.display_filters_listing(),map_obj.custom_filters(),"undefined"!==map_obj&&null!=map_obj.map_data.default_amenities&&null!=map_obj.map_data.enableAmenitiesListing&&map_obj.map_data.enableAmenitiesListing||$(map_obj.container).find(".location_pagination"+map_obj.map_data.map_property.map_id).pagination(map_obj.show_places.length,{callback:map_obj.display_places_listing,map_data:map_obj,items_per_page:map_obj.map_data.listing.pagination.listing_per_page,prev_text:wpgmp_local.prev,next_text:wpgmp_local.next})),void 0!==map_obj.map_data.geojson&&map_obj.load_json(map_obj.map_data.geojson),map_obj.google_auto_suggest($(".wpgmp_auto_suggest")),!0===map_obj.settings.show_center_circle&&map_obj.show_center_circle(),!0===map_obj.settings.show_center_marker&&map_obj.show_center_marker(),!0===map_obj.map_data.shapes?.drawing_editable&&map_obj.enable_drawing(),!0===map_obj.settings.fit_bounds&&map_obj.fit_bounds(),map_obj.register_events(),$(map_obj.container).find(".wpgmp-accordion").accordion({speed:"slow"}),map_obj.map_data.map_options.heat_map&&map_obj.display_heat_map()}createIconElement(e,t="",i=[32,32]){const a=document.createElement("img");return a.src=e,a.alt=t,(e.toLowerCase().includes("image/svg")||e.toLowerCase().endsWith(".svg"))&&(a.style.width=`${i[0]}px`,a.style.height=`${i[1]}px`),a.title=t,a.style.objectFit="contain",a}createMarker(e){var t=this,i=t.map,a=t.getMarkerSize();e.icon,new google.maps.Size(a[0],a[1]);e.marker=t.create_google_marker({map:i,position:{lat:e.geometry.location.lat(),lng:e.geometry.location.lng()},iconUrl:e.icon});var n="fc-infowindow-";e.marker=e.marker,e.address=e.vicinity,e.title=e.name,e.location={},e.location.onclick_action="marker";var o="",r="";n="fc-infowindow-";"post"==e.source?(r=t.settings.infowindow_geotags_setting,n="wpgmp_infowindow_post fc-item-"+t.settings.infowindow_post_skin.name):(r=t.settings.infowindow_setting,"edit_location"!=t.map_data.page&&t.settings.infowindow_skin&&(n="fc-infowindow-"+t.settings.infowindow_skin.name)),void 0===r&&(r=e.content);var s,l=void 0!==e.photos?e.photos[0].getUrl({maxWidth:400,maxHeight:400}):e.icon;s="<div class='fc-feature-img amenities_image'><img alt='"+e.vicinity+"' src='"+l+"' class='wpgmp_marker_image wpgmp_amenities_image' /></div>";var d={"{marker_id}":e.id,"{marker_title}":e.name,"{marker_address}":e.vicinity,"{marker_latitude}":e.geometry.location.lat(),"{marker_longitude}":e.geometry.location.lng(),"{marker_city}":"","{marker_state}":"","{marker_country}":"","{marker_postal_code}":"","{marker_zoom}":"","{marker_icon}":e.icon,"{marker_category}":e.types[0],"{marker_message}":e.content,"{marker_image}":s};for(var u in d)null!=d[u]&&"undefined"!=d[u]||(d[u]="");if(r){var h=r=(r=r.replace(/{#if (.*?)}([\s\S]*?){\/if}/g,(function(e,t,i){return d["{"+t+"}"]?i:""}))).replace(/{[^{}]+}/g,(function(e){return e in d?d[e]:""})),c=$("<div/>").html(h);$(c).find(".wpgmp_extra_field:contains('wpgmp_empty')").remove(),$(c).find(".wpgmp_empty").prev().remove(),$(c).find(".wpgmp_empty").remove(),o=$(c).prop("outerHTML").toString()}o=""===o?!0===t.settings.map_infowindow_customisations&&!0===t.settings.show_infowindow_header?'<div class="wpgmp_infowindow '+n+'"><div class="wpgmp_iw_head"><div class="wpgmp_iw_head_content">
12'+e.name+'</div></div><div class="wpgmp_iw_content">'+e.vicinity+"</div></div>":'<div class="wpgmp_infowindow '+n+'"><div class="wpgmp_iw_content">'+e.content+"</div></div>":!0===t.settings.map_infowindow_customisations&&!0===t.settings.show_infowindow_header?'<div class="wpgmp_infowindow '+n+'"><div class="wpgmp_iw_head"><div class="wpgmp_iw_head_content">'+e.name+'</div></div><div class="wpgmp_iw_content">'+o+"</div></div>":'<div class="wpgmp_infowindow '+n+'"><div class="wpgmp_iw_content">'+o+"</div></div>",e.infowindow_data=o,e.infowindow=t.infowindow_marker;var m=t.settings.infowindow_open_event;t.event_listener(e.marker,m,(function(){$.each(t.places,(function(e,t){t.infowindow.close(),t.marker.setAnimation(null)})),t.openInfoWindow(e)})),t.places.push(e)}wpgmp_image_type_overlays(){var e=new google.maps.ImageMapType({getTileUrl:(e,t)=>["http://www.gstatic.com/io2010maps/tiles/5/L2_",t,"_",e.x,"_",e.y,".png"].join(""),tileSize:new google.maps.Size(256,256)});this.map.overlayMapTypes.push(e)}get_user_position(){var e=this;navigator.geolocation.getCurrentPosition((function(t){e.user_lat_lng=new google.maps.LatLng(t.coords.latitude,t.coords.longitude)}),(function(e){}),{enableHighAccuracy:!0,timeout:5e3,maximumAge:0})}wpgmp_finddata(e,t){for(var i="",a=0;a<e.addressComponents.length;++a){var n=e.addressComponents[a];$.each(n.types,(function(e,a){a==t&&(i=n.longText)}))}return i}clearSelection(){var e=this;e.selectedShape&&(e.selectedShape.setEditable(!1),e.selectedShape=null)}setSelection(e){var t=this;t.clearSelection(),t.selectedShape=e,t.selectedShape.setEditable(!0)}deleteSelectedShape(){var e,t=this;if(t.selectedShape){for(e in t.wpgmp_circles)t.wpgmp_circles[e]==t.selectedShape&&t.wpgmp_circles.splice(e,1);for(e in t.wpgmp_rectangles)t.wpgmp_rectangles[e]==t.selectedShape&&t.wpgmp_rectangles.splice(e,1);for(e in t.wpgmp_polygons)t.wpgmp_polygons[e]==t.selectedShape&&t.wpgmp_polygons.splice(e,1);for(e in t.wpgmp_polylines)t.wpgmp_polylines[e]==t.selectedShape&&t.wpgmp_polylines.splice(e,1);t.selectedShape.setMap(null)}}create_google_marker({map:e,position:t,iconUrl:i=null,title:a="",label:n="",draggable:o=!1,clickable:r=!0,anchorPoint:s=null}){const l=this,d=parseFloat(t.lat||t.lat()),u=parseFloat(t.lng||t.lng()),h=new google.maps.LatLng(d,u),c=l.getMarkerSize?.()||[32,32];i&&""!==i.trim()||(i=l.settings.marker_default_icon||wpgmp_local.default_marker_icon);const m=i.toLowerCase().includes("image/svg")||i.toLowerCase().endsWith(".svg");if(l.useAdvancedMarker&&google.maps.marker?.AdvancedMarkerElement){const t=m?l.createIconElement(i,a,c):l.createIconElement(i,a);return new google.maps.marker.AdvancedMarkerElement({map:e,position:h,title:a,content:t})}{const t={position:h,map:e,title:a,label:n,draggable:o,clickable:r};return i&&(t.icon={url:i},m&&(t.icon.scaledSize=new google.maps.Size(parseInt(c[0]),parseInt(c[1])))),s&&(t.anchorPoint=new google.maps.Point(s.x,s.y)),new google.maps.Marker(t)}}display_heat_map(){var e=this;if(e&&e.places){e.heatmapData=[],e.places.forEach((function(t){t.location&&t.location.lat&&t.location.lng&&e.heatmapData.push(new google.maps.LatLng(parseFloat(t.location.lat),parseFloat(t.location.lng)))}));var t=parseInt(e.map_data.map_options.heat_map_radius,10)||20,i=parseFloat(e.map_data.map_options.heat_map_opacity);i=isNaN(i)?.6:i,e.heatmap=new google.maps.visualization.HeatmapLayer({data:e.heatmapData,map:e.map,radius:t,opacity:i})}}enable_drawing(){var e=this;e.drawingmanager=new google.maps.drawing.DrawingManager({drawingMode:null,drawingControl:!0,drawingControlOptions:{position:google.maps.ControlPosition.TOP_CENTER,drawingModes:[google.maps.drawing.OverlayType.CIRCLE,google.maps.drawing.OverlayType.POLYGON,google.maps.drawing.OverlayType.POLYLINE,google.maps.drawing.OverlayType.RECTANGLE]},circleOptions:{fillColor:"#003dce",strokeColor:"#003dce",strokeWeight:"1",strokeOpacity:"0.5",zindex:1,fillOpacity:"0.5",editable:!1,draggable:!1},polygonOptions:{fillColor:"#003dce",strokeColor:"#003dce",strokeWeight:"1",strokeOpacity:"0.5",zindex:1,fillOpacity:"0.5",editable:!1,draggable:!1},polylineOptions:{fillColor:"#003dce",strokeColor:"#003dce",strokeWeight:"1",strokeOpacity:"0.5",zindex:1,fillOpacity:"0.5",editable:!1,draggable:!1},rectangleOptions:{fillColor:"#003dce",strokeColor:"#003dce",strokeWeight:"1",strokeOpacity:"0.5",zindex:1,fillOpacity:"0.5",editable:!1,draggable:!1}}),e.drawingmanager.setMap(e.map),e.event_listener(e.drawingmanager,"circlecomplete",(function(t){e.wpgmp_circles.push(t),e.wpgmp_shape_complete(t,"circle")})),e.event_listener(e.drawingmanager,"polygoncomplete",(function(t){e.wpgmp_polygons.push(t),e.wpgmp_shape_complete(t,"polygon")})),e.event_listener(e.drawingmanager,"polylinecomplete",(function(t){e.wpgmp_polylines.push(t),e.wpgmp_shape_complete(t,"polyline")})),e.event_listener(e.drawingmanager,"rectanglecomplete",(function(t){e.wpgmp_rectangles.push(t),e.wpgmp_shape_complete(t,"rectangle")}))}
12create_polygon(){var e=this;$.each(this.map_data.shapes.shape.polygons,(function(t,i){var a=[];$.each(i.cordinates,(function(e,t){var i=t.split(",");a.push(new google.maps.LatLng(i[0],i[1]))})),i.reference=new google.maps.Polygon({paths:a,strokeColor:i.settings.stroke_color,strokeOpacity:i.settings.stroke_opacity,strokeWeight:i.settings.stroke_weight,fillColor:i.settings.fill_color,fillOpacity:i.settings.fill_opacity}),void 0!==e.map_data.shapes&&(!0===e.map_data.shapes.drawing_editable?e.event_listener(i.reference,"click",(function(){e.setSelection(i.reference),e.get_shapes_options(i.reference,"polygon")})):void 0===i.events||""===i.events.url&&""===i.events.message||e.event_listener(i.reference,"click",(function(){if(""!==i.events.url&&void 0!==i.events.url||""===i.events.message)"undefined"!==i.events.url&&void 0!==i.events.url&&(window.location=i.events.url);else{var t=new google.maps.LatLngBounds;i.reference.getPath().forEach((function(e,i){t.extend(e)})),$.each(e.places,(function(e,t){t.infowindow.close()})),e.opened_info.setPosition(t.getCenter()),!0===e.settings.map_infowindow_customisations?e.opened_info.setContent('<div class="wpgmp_infowindow"><div class="wpgmp_iw_content">'+i.events.message+"</div></div>"):e.opened_info.setContent(i.events.message),e.opened_info.open(e.map,this)}}))),i.reference.setMap(e.map),e.wpgmp_polygons.push(i.reference),null==i.events&&(i.events={},i.events.url="",i.events.message=""),e.wpgmp_shape_events.push({shape:i.reference,url:i.events.url,message:i.events.message})}))}create_polyline(){var e=this;$.each(this.map_data.shapes.shape.polylines,(function(t,i){var a=[];void 0!==i.cordinates&&($.each(i.cordinates,(function(e,t){var i=t.split(",");a.push(new google.maps.LatLng(i[0],i[1]))})),i.reference=new google.maps.Polyline({path:a,strokeColor:i.settings.stroke_color,strokeOpacity:i.settings.stroke_opacity,strokeWeight:i.settings.stroke_weight}),void 0!==e.map_data.shapes&&(!0===e.map_data.shapes.drawing_editable?e.event_listener(i.reference,"click",(function(){e.setSelection(i.reference),e.get_shapes_options(i.reference,"polyline")})):void 0===i.events||""===i.events.url&&""===i.events.message||e.event_listener(i.reference,"click",(function(){if(""!==i.events.url&&void 0!==i.events.url||""===i.events.message)""!==i.events.url&&"undefined"!==i.events.url&&void 0!==i.events.url&&(window.location=i.events.url);else{var t=new google.maps.LatLngBounds;i.reference.getPath().forEach((function(e,i){t.extend(e)})),$.each(e.places,(function(e,t){t.infowindow.close()})),e.opened_info.setPosition(t.getCenter()),!0===e.settings.map_infowindow_customisations?e.opened_info.setContent('<div class="wpgmp_infowindow"><div class="wpgmp_iw_content">'+i.events.message+"</div></div>"):e.opened_info.setContent(i.events.message),e.opened_info.open(e.map,this)}})))),void 0!==i.reference&&(i.reference.setMap(e.map),e.wpgmp_polylines.push(i.reference),null==i.events&&(i.events={},i.events.url="",i.events.message=""),e.wpgmp_shape_events.push({shape:i.reference,url:i.events.url,message:i.events.message}))}))}event_listener(e,t,i){google.maps.event.addListener(e,t,i)}create_circle(){var e=this;$.each(this.map_data.shapes.shape.circles,(function(t,i){var a;$.each(i.cordinates,(function(e,t){var i=t.split(",");a=new google.maps.LatLng(i[0],i[1])})),i.reference=new google.maps.Circle({fillColor:i.settings.fill_color,fillOpacity:i.settings.fill_opacity,strokeColor:i.settings.stroke_color,strokeOpacity:i.settings.stroke_opacity,strokeWeight:i.settings.stroke_weight,center:a,radius:parseInt(i.settings.radius)}),void 0!==e.map_data.shapes&&(!0===e.map_data.shapes.drawing_editable?e.event_listener(i.reference,"click",(function(){e.setSelection(i.reference),e.get_shapes_options(i.reference,"circle")})):void 0===i.events||""===i.events.url&&""===i.events.message||e.event_listener(i.reference,"click",(function(){""!==i.events.url&&void 0!==i.events.url||""===i.events.message?""!==i.events.url&&"undefined"!==i.events.url&&void 0!==i.events.url&&(window.location=i.events.url):($.each(e.places,(function(e,t){t.infowindow.close()})),e.opened_info.setPosition(i.reference.getCenter()),!0===e.settings.map_infowindow_customisations?e.opened_info.setContent('<div class="wpgmp_infowindow"><div class="wpgmp_iw_content">'+i.events.message+"</div></div>"):e.opened_info.setContent(i.events.message),e.opened_info.open(e.map,this))}))),i.reference.setMap(e.map),e.wpgmp_circles.push(i.reference),null==i.events&&(i.events={},i.events.url="",i.events.message=""),e.wpgmp_shape_events.push({shape:i.reference,url:i.events.url,message:i.events.message})}))}create_rectangle(){var e=this;$.each(this.map_data.shapes.shape.rectangles,(function(t,i){var a=i.cordinates[0].split(","),n=i.cordinates[1].split(","),o=new google.maps.LatLngBounds(new google.maps.LatLng(a[0],a[1]),new google.maps.LatLng(n[0],n[1]));
12i.reference=new google.maps.Rectangle({bounds:o,fillColor:i.settings.fill_color,fillOpacity:i.settings.fill_opacity,strokeColor:i.settings.stroke_color,strokeOpacity:i.settings.stroke_opacity,strokeWeight:i.settings.stroke_weight}),void 0!==e.map_data.shapes&&(!0===e.map_data.shapes.drawing_editable?e.event_listener(i.reference,"click",(function(){e.setSelection(i.reference),e.get_shapes_options(i.reference,"rectangle")})):void 0===i.events||""===i.events.url&&""===i.events.message||e.event_listener(i.reference,"click",(function(){""!==i.events.url&&void 0!==i.events.url||""===i.events.message?""!==i.events.url&&"undefined"!==i.events.url&&void 0!==i.events.url&&(window.location=i.events.url):($.each(e.places,(function(e,t){t.infowindow.close()})),e.opened_info.setPosition(i.reference.getBounds().getCenter()),!0===e.settings.map_infowindow_customisations?e.opened_info.setContent('<div class="wpgmp_infowindow"><div class="wpgmp_iw_content">'+i.events.message+"</div></div>"):e.opened_info.setContent(i.events.message),e.opened_info.open(e.map,this))}))),i.reference.setMap(e.map),e.wpgmp_rectangles.push(i.reference),null==i.events&&(i.events={},i.events.url="",i.events.message=""),e.wpgmp_shape_events.push({shape:i.reference,url:i.events.url,message:i.events.message})}))}get_shapes_options(e,t){$(".hiderow").addClass("temp_row").removeClass("hiderow"),$("input[name='shape_fill_color']").val(e.fillColor),$("input[name='shape_fill_color']").closest(".wp-picker-container").find(".wp-color-result").css("background-color",e.fillColor),$("input[name='shape_stroke_color']").val(e.strokeColor),$("input[name='shape_stroke_color']").closest(".wp-picker-container").find(".wp-color-result").css("background-color",e.strokeColor),$("select[name='shape_fill_opacity']").val(e.fillOpacity),$("select[name='shape_stroke_opacity']").val(e.strokeOpacity),$("select[name='shape_stroke_weight']").val(e.strokeWeight),$("textarea[name='shape_path']").parent().hide(),$("input[name='shape_radius']").parent().hide(),$("input[name='shape_center']").parent().hide(),$("input[name='shape_northeast']").parent().hide(),$("input[name='shape_southwest']").parent().hide();var i=this.wpgmp_shape_events;if($.each(i,(function(t,i){i.shape==e&&($("input[name='shape_click_url']").val(i.url),$("textarea[name='shape_click_message']").val(i.message))})),"circle"==t)$("input[name='shape_radius']").parent().show(),$("input[name='shape_radius']").val(e.getRadius()),$("input[name='shape_center']").parent().show(),$("input[name='shape_center']").val(e.getCenter().lat()+","+e.getCenter().lng());else if("rectangle"==t)$("input[name='shape_northeast']").parent().show(),$("input[name='shape_northeast']").val(e.getBounds().getNorthEast().lat()+","+e.getBounds().getNorthEast().lng()),$("input[name='shape_southwest']").parent().show(),$("input[name='shape_southwest']").val(e.getBounds().getSouthWest
12().lat()+","+e.getBounds().getSouthWest().lng());else{var a=[];e.getPath().forEach((function(e,t){var i=[e.lat(),e.lng()];""!==e.lat()&&""!==e.lng()&&a.push(i)})),$("textarea[name='shape_path']").parent().show(),$("textarea[name='shape_path']").val(a.join(" "))}}set_shapes_options(e){var t={fillColor:$("input[name='shape_fill_color']").val(),fillOpacity:$("select[name='shape_fill_opacity']").val(),strokeColor:$("input[name='shape_stroke_color']").val(),strokeOpacity:$("select[name='shape_stroke_opacity']").val(),strokeWeight:$("select[name='shape_stroke_weight']").val()};e.setOptions(t);var i=this.wpgmp_shape_events;$.each(i,(function(t,i){i.shape==e&&(i.url=$("input[name='shape_click_url']").val(),i.message=$("textarea[name='shape_click_message']").val())}))}wpgmp_save_shapes(e){$("input[name='shapes_values']").val(e.join("|"))}wpgmp_shape_complete(e,t){var i=this;i.setSelection(e),i.drawingmanager.setDrawingMode(null),void 0!==i.map_data.shapes&&!0===i.map_data.shapes.drawing_editable&&(i.event_listener(e,"click",(function(){i.setSelection(e),i.get_shapes_options(e,t)})),i.wpgmp_shape_events.push({shape:e,url:"",message:""}))}wpgmp_save_polylines(){for(var e=[],t=this.wpgmp_polylines,i=this.wpgmp_shape_events,a=0;a<t.length;a++){var n=[],o=t[a].getPath(),r=t[a].strokeWeight+","+t[a].strokeOpacity+","+t[a].strokeColor,s="";$.each(i,(function(e,i){i.shape==t[a]&&(s=i.url+"***"+i.message)})),o.forEach((function(e,t){var i=[e.lat(),e.lng()];n.push(i)})),e.push(n.join("----")+"..."+r+"..."+s)}return e}wpgmp_save_polygons(){for(var e=[],t=this.wpgmp_polygons,i=this.wpgmp_shape_events,a=0;a<t.length;a++){var n=[],o=t[a].getPath(),r=t[a].strokeWeight+","+t[a].strokeOpacity+","+t[a].strokeColor+","+t[a].fillColor+","+t[a].fillOpacity,s="";$.each(i,(function(e,i){i.shape==t[a]&&(s=i.url+"***"+i.message)})),o.forEach((function(e,t){var i=[e.lat(),e.lng()];""!==e.lat()&&""!==e.lng()&&n.push(i)})),e.push(n.join("----")+"..."+r+"..."+s)}return e}wpgmp_save_circles(){for(var e=[],t=this.wpgmp_circles,i=this.wpgmp_shape_events,a=0;a<t.length;a++){var n=[],o=t[a].getCenter(),r=t[a].strokeWeight+","+t[a].strokeOpacity+","+t[a].strokeColor+","+t[a].fillColor+","+t[a].fillOpacity+","+t[a].getRadius(),s="";$.each(i,(function(e,i){i.shape==t[a]&&(s=i.url+"***"+i.message)}));var l=[o.lat(),o.lng()];""!==o.lat()&&""!==o.lng()&&n.push(l),e.push(n.join("----")+"..."+r+"..."+s)}return e}wpgmp_save_rectangles(){for(var e=[],t=this.wpgmp_rectangles,i=this.wpgmp_shape_events,a=0;a<t.length;a++){var n=[],o=t[a].strokeWeight+","+t[a].strokeOpacity+","+t[a].strokeColor+","+t[a].fillColor+","+t[a].fillOpacity,r="";$.each(i,(function(e,i){i.shape==t[a]&&(r=i.url+"***"+i.message)}));
12var s=t[a].getBounds().getSouthWest(),l=[s.lat(),s.lng()];""!==s.lat()&&""!==s.lng()&&n.push(l);l=[(s=t[a].getBounds().getNorthEast()).lat(),s.lng()];""!==s.lat()&&""!==s.lng()&&n.push(l),e.push(n.join("----")+"..."+o+"..."+r)}return e}set_kml_layer(){var e=this.map;$.each(this.map_data.kml_layer.kml_layers_links,(function(t,i){var a={url:i,map:e,preserveViewport:!0};new google.maps.KmlLayer(a)}))}set_marker_cluster(){var e=this,t=[],i=[{textColor:"black",url:e.map_data.marker_cluster.icon,height:32,width:33}];$.each(this.places,(function(e,i){1==i.marker.getVisible()&&t.push(i.marker)})),!0===e.map_data.marker_cluster.apply_style?(e.markerClusterer||(e.markerClusterer=new MarkerClusterer(e.map,{},{gridSize:parseInt(e.map_data.marker_cluster.grid),maxZoom:parseInt(e.map_data.marker_cluster.max_zoom),styles:i})),e.markerClusterer.clearMarkers(),e.markerClusterer.addMarkers(t),google.maps.event.addListener(e.markerClusterer,"mouseover",(function(t){t.clusterIcon_.div_.firstChild.src=e.map_data.marker_cluster.hover_icon})),google.maps.event.addListener(e.markerClusterer,"mouseout",(function(t){t.clusterIcon_.div_.firstChild.src=e.map_data.marker_cluster.icon}
12))):(e.markerClusterer||(e.markerClusterer=new MarkerClusterer(e.map,{},{gridSize:parseInt(e.map_data.marker_cluster.grid),maxZoom:parseInt(e.map_data.marker_cluster.max_zoom),imagePath:e.map_data.marker_cluster.image_path})),e.markerClusterer.clearMarkers(),e.markerClusterer.addMarkers(t))}set_panning_control(){var e=this.map_data.panning_control,t=this.map,i=this,a=new google.maps.LatLngBounds(new google.maps.LatLng(e.from_latitude,e.from_longitude),new google.maps.LatLng(e.to_latitude,e.to_longitude));google.maps.event.addListener(t,"dragend",(function(){if(!a.contains(t.getCenter())){var e=t.getCenter(),i=e.lng(),n=e.lat(),o=a.getNorthEast().lng(),r=a.getNorthEast().lat(),s=a.getSouthWest().lng(),l=a.getSouthWest().lat();i<s&&(i=s),i>o&&(i=o),n<l&&(n=l),n>r&&(n=r),t.setCenter(new google.maps.LatLng(n,i))}})),google.maps.event.addListener(t,"zoom_changed",(function(){t.getZoom()<e.zoom_level&&t.setZoom(parseInt(i.settings.zoom))}))}set_visual_refresh(){google.maps.visualRefresh=!0}set_45_imagery(){}set_overlay_generator(e,t){var i=function(e,t){this.tileSize=e,this.overlay_options=t,null!=this.overlay_options.font_size?this.overlay_options.font_size=this.overlay_options.font_size.replace("px",""):this.overlay_options.font_size="16",null!=this.overlay_options.border_width?this.overlay_options.border_width=this.overlay_options.border_width.replace("px",""):this.overlay_options.border_width="2"};return i.prototype.getTile=function(e,t,i){var a=i.createElement("div");return a.innerHTML=e,a.style.width=this.tileSize.width,a.style.height=this.tileSize.height,a.style.fontSize=this.overlay_options.font_size+"px",a.style.borderStyle=this.overlay_options.border_style,a.style.borderWidth=this.overlay_options.border_width+"px",a.style.borderColor=this.overlay_options.border_color,a},new i(e,t)}set_overlay(){null!=this.map_data.overlay_setting.width?this.map_data.overlay_setting.width=this.map_data.overlay_setting.width.replace("px",""):this.map_data.overlay_setting.width="200",null!=this.map_data.overlay_setting.height?this.map_data.overlay_setting.height=this.map_data.overlay_setting.height.replace("px",""):this.map_data.overlay_setting.height="200",this.map.overlayMapTypes.insertAt(0,this.set_overlay_generator(new google.maps.Size(this.map_data.overlay_setting.width,this.map_data.overlay_setting.height),this.map_data.overlay_setting))}set_bicyle_layer(){(new google.maps.BicyclingLayer).setMap(this.map)}set_traffic_layer(){(new google.maps.TrafficLayer).setMap(this.map)}set_panoramic_layer(){(new google.maps.panoramio.PanoramioLayer).setMap(this.map)}set_transit_layer(){(new google.maps.TransitLayer).setMap(this.map)}set_weather_layer(){var weatherLayer=new google.maps.weather.WeatherLayer({windSpeedUnit:eval("google.maps.weather.WindSpeedUnit."+this.map_data.weather_layer.wind_unit),temperatureUnits:eval("google.maps.weather.TemperatureUnit."+this.map_data.weather_layer.temperature_unit)});weatherLayer.setMap(this.map);var cloudLayer=new google.maps.weather.CloudLayer;cloudLayer.setMap(this.map)}set_streetview(e){var t={position:e,addressControlOptions:{position:google.maps.ControlPosition.BOTTOM_CENTER},linksControl:this.map_data.street_view.links_control,panControl:this.map_data.street_view.street_view_pan_control,zoomControlOptions:{style:google.maps.ZoomControlStyle.SMALL},enableCloseButton:this.map_data.street_view.street_view_close_button};this.map_data.street_view.pov_heading&&this.map_data.street_view.pov_pitch&&(t.pov={heading:parseInt(this.map_data.street_view.pov_heading),pitch:parseInt(this.map_data.street_view.pov_pitch)});new google.maps.StreetViewPanorama(this.element,t)}map_loaded(){const e=this,t=e.map;google.maps.event.addListenerOnce(t,"idle",(function(){const e=t.getCenter();google.maps.event.trigger(t,"resize"),t.setCenter(e)})),!0===e.settings.center_by_nearest&&e.center_by_nearest(),!0===e.settings.close_infowindow_on_map_click&&google.maps.event.addListener(t,"click",(function(){e.places?.forEach((e=>{e.infowindow?.close(),e.marker?.setAnimation(null)}))})),google.maps.event.addListener(e.infobox,"domready",(function(){const t=$(e.container).find(".infoBox"),i=0===t.find(".fc-infowindow-default").length&&0===t.find(".fc-item-default").length&&t.find(".wpgmp_infowindow").length>0;t.on("click",".fc-accordion-tab",(function(){if($(this).hasClass("active")){$(this).removeClass("active");$(this).next().removeClass("active")}else{$(".fc-accordion-tab").removeClass("active"),$(".fc-accordion dd").removeClass("active"),$(this).addClass("active");$(this).next().addClass("active")}})),i&&(t.find(".wpgmp_infowindow").prepend('<div class="infowindow-close"></div>'),$(".infowindow-close").click((()=>{e.places?.forEach((e=>{e.infowindow?.close(),e.marker?.setAnimation(null)}))})),0===t.find(".fc-infowindow-fano").length&&0===t.find(".fc-item-fano").length?t.addClass("infoBoxTail"):t.removeClass("infoBoxTail"))}))}wpgmpInitializeInfoBox(){var e=function(e){e=e||{},google.maps.OverlayView.apply(this,arguments),this.content_=e.content||"",this.disableAutoPan_=e.disableAutoPan||!1,this.maxWidth_=e.maxWidth||0,this.pixelOffset_=e.pixelOffset||new google.maps.Size(0,0),this.position_=e.position||new google.maps.LatLng(0,0),this.zIndex_=e.zIndex||null,this.boxClass_=e.boxClass||"infoBox",this.boxStyle_=e.boxStyle||{},this.closeBoxMargin_=e.closeBoxMargin||"2px",this.closeBoxURL_=e.closeBoxURL||"//www.google.com/intl/en_us/mapfiles/close.gif",""===e.closeBoxURL&&(this.closeBoxURL_=""),this.closeBoxTitle_=e.closeBoxTitle||" Close ",this.infoBoxClearance_=e.infoBoxClearance||new google.maps.Size(1,1),void 0===e.visible&&(void 0===e.isHidden?e.visible=!0:e.visible=!e.isHidden),this.isHidden_=!e.visible,this.alignBottom_=e.alignBottom||!1,this.pane_=e.pane||"floatPane",this.enableEventPropagation_=e.enableEventPropagation||!1,this.div_=null,this.closeListener_=null,this.moveListener_=null,this.contextListener_=null,this.eventListeners_=null,this.fixedWidthSet_=null};return(e.prototype=new google.maps.OverlayView).createInfoBoxDiv_=function(){var e,t,i,a=this,n=function(e){e.cancelBubble=!0,e.stopPropagation&&e.stopPropagation()};if(!this.div_){if(this.div_=document.createElement("div"),this.setBoxStyle_(),void 0===this.content_.nodeType?this.div_.innerHTML=this.getCloseBoxImg_()+this.content_:(this.div_.innerHTML=this.getCloseBoxImg_(),this.div_.appendChild(this.content_)),this.getPanes()[this.pane_].appendChild(this.div_),this.addClickHandler_(),this.div_.style.width?this.fixedWidthSet_=!0:0!==this.maxWidth_&&this.div_.offsetWidth>this.maxWidth_?(this.div_.style.width=this.maxWidth_,this.div_.style.overflow="auto",this.fixedWidthSet_=!0):(i=this.getBoxWidths_(),this.div_.style.width=this.div_.offsetWidth-i.left-i.right+"px",this.fixedWidthSet_=!1),this.panBox_(this.disableAutoPan_),!this.enableEventPropagation_){for(this.eventListeners_=[],t=["mousedown","mouseover","mouseout","mouseup","click","dblclick","touchstart","touchend","touchmove"],e=0;e<t.length;e++)this.eventListeners_.push(this.div_.addEventListener(t[e],n));this.eventListeners_.push(this.div_.addEventListener("mouseover",(function(e){this.style.cursor="default"})))}this.contextListener_=this.div_.addEventListener("contextmenu",(function(e){e.returnValue=!1,e.preventDefault&&e.preventDefault(),a.enableEventPropagation_||n(e)})),google.maps.event.trigger(this,"domready")}},e.prototype.getCloseBoxImg_=function(){var e="";return""!==this.closeBoxURL_&&(e="<img",e+=" src='"+this.closeBoxURL_+"'",e+=" align=right",e+=" title='"+this.closeBoxTitle_+"'",e+=" style='",e+=" position: relative;",e+=" cursor: pointer;",e+=" margin: "+this.closeBoxMargin_+";",e+="'>"),e},e.prototype.addClickHandler_=function(){var e;""!==this.closeBoxURL_?(e=this.div_.firstChild,this.closeListener_=e.addEventListener("click",this.getCloseClickHandler_())):this.closeListener_=null},e.prototype.getCloseClickHandler_=function(){var e=this;return function(t){t.cancelBubble=!0,t.stopPropagation&&t.stopPropagation(),google.maps.event.trigger(e,"closeclick"),e.close()}},e.prototype.panBox_=function(e){var t,i=0,a=0;if(!e&&(t=this.getMap())instanceof google.maps.Map){t.getBounds().contains(this.position_)||t.setCenter(this.position_);var n=this.pixelOffset_.width,o=this.pixelOffset_.height,r=this.div_.offsetWidth,s=this.div_.offsetHeight,l=this.infoBoxClearance_.width,d=this.infoBoxClearance_.height;if(2==t.panToBounds.length){var u={left:0,right:0,top:0,bottom:0};u.left=-n+l,u.right=n+r+l,this.alignBottom_?(u.top=-o+d+s,u.bottom=o+d):(u.top=-o+d,u.bottom=o+s+d),t.panToBounds(new google.maps.LatLngBounds(this.position_),u)}else{var h=t.getDiv(),c=h.offsetWidth,m=h.offsetHeight,p=this.getProjection().fromLatLngToContainerPixel(this.position_);if(p.x<-n+l?i=p.x+n-l:p.x+r+n+l>c&&(i=p.x+r+n+l-c),this.alignBottom_?p.y<-o+d+s?a=p.y+o-d-s:p.y+o+d>m&&(a=p.y+o+d-m):p.y<-o+d?a=p.y+o-d:p.y+s+o+d>m&&(a=p.y+s+o+d-m),0!==i||0!==a){t.getCenter();t.panBy(i,a)}}}},e.prototype.setBoxStyle_=function(){var e,t;if(this.div_){for(e in this.div_.className=this.boxClass_,this.div_.style.cssText="",t=this.boxStyle_)t.hasOwnProperty(e)&&(this.div_.style[e]=t[e]);(void 0===this.div_.style.WebkitTransform||-1===this.div_.style.WebkitTransform.indexOf("translateZ")&&-1===this.div_.style.WebkitTransform.indexOf("matrix"))&&(this.div_.style.WebkitTransform="translateZ(0)"),void 0!==this.div_.style.opacity&&""!==this.div_.style.opacity&&(this.div_.style.MsFilter='"progid:DXImageTransform.Microsoft.Alpha(Opacity='+100*this.div_.style.opacity+')"',this.div_.style.filter="alpha(opacity="+100*this.div_.style.opacity+")"),this.div_.style.position="absolute",this.div_.style.visibility="hidden",null!==this.zIndex_&&(this.div_.style.zIndex=this.zIndex_)}},e.prototype.getBoxWidths_=function(){var e,t={top:0,bottom:0,left:0,right:0},i=this.div_;return document.defaultView&&document.defaultView.getComputedStyle?(e=i.ownerDocument.defaultView.getComputedStyle(i,""))&&(t.top=parseInt(e.borderTopWidth,10)||0,t.bottom=parseInt(e.borderBottomWidth,10)||0,t.left=parseInt(e.borderLeftWidth,10)||0,t.right=parseInt(e.borderRightWidth,10)||0):document.documentElement.currentStyle&&i.currentStyle&&(t.top=parseInt(i.currentStyle.borderTopWidth,10)||0,t.bottom=parseInt(i.currentStyle.borderBottomWidth,10)||0,t.left=parseInt(i.currentStyle.borderLeftWidth,10)||0,t.right=parseInt(i.currentStyle.borderRightWidth,10)||0),t},e.prototype.onRemove=function(){this.div_&&(this.div_.parentNode.removeChild(this.div_),this.div_=null)},e.prototype.draw=function(){this.createInfoBoxDiv_();var e=this.getProjection().fromLatLngToDivPixel(this.position_);this.div_.style.left=e.x+this.pixelOffset_.width+"px",this.alignBottom_?this.div_.style.bottom=-(e.y+this.pixelOffset_.height)+"px":this.div_.style.top=e.y+this.pixelOffset_.height+"px",this.isHidden_?this.div_.style.visibility="hidden":this.div_.style.visibility="visible"},e.prototype.setOptions=function(e){void 0!==e.boxClass&&(this.boxClass_=e.boxClass,this.setBoxStyle_()),void 0!==e.boxStyle&&(this.boxStyle_=e.boxStyle,this.setBoxStyle_()),void 0!==e.content&&this.setContent(e.content),void 0!==e.disableAutoPan&&(this.disableAutoPan_=e.disableAutoPan),void 0!==e.maxWidth&&(this.maxWidth_=e.maxWidth),void 0!==e.pixelOffset&&(this.pixelOffset_=e.pixelOffset),void 0!==e.alignBottom&&(this.alignBottom_=e.alignBottom),void 0!==e.position&&this.setPosition(e.position),void 0!==e.zIndex&&this.setZIndex(e.zIndex),void 0!==e.closeBoxMargin&&(this.closeBoxMargin_=e.closeBoxMargin),void 0!==e.closeBoxURL&&(this.closeBoxURL_=e.closeBoxURL),void 0!==e.closeBoxTitle&&(this.closeBoxTitle_=e.closeBoxTitle),void 0!==e.infoBoxClearance&&(this.infoBoxClearance_=e.infoBoxClearance),void 0!==e.isHidden&&(this.isHidden_=e.isHidden),void 0!==e.visible&&(this.isHidden_=!e.visible),void 0!==e.enableEventPropagation&&(this.enableEventPropagation_=e.enableEventPropagation),this.div_&&this.draw()},e.prototype.setContent=function(e){this.content_=e,this.div_&&(this.closeListener_&&(google.maps.event.removeListener(this.closeListener_),this.closeListener_=null),this.fixedWidthSet_||(this.div_.style.width=""),void 0===e.nodeType?this.div_.innerHTML=this.getCloseBoxImg_()+e:(this.div_.innerHTML=this.getCloseBoxImg_(),this.div_.appendChild(e)),this.fixedWidthSet_||(this.div_.style.width=this.div_.offsetWidth+"px",void 0===e.nodeType?this.div_.innerHTML=this.getCloseBoxImg_()+e:(this.div_.innerHTML=this.getCloseBoxImg_(),this.div_.appendChild(e))),this.addClickHandler_()),google.maps.event.trigger(this,"content_changed")},e.prototype.setPosition=function(e){this.position_=e,this.div_&&this.draw(),google.maps.event.trigger(this,"position_changed")},e.prototype.setZIndex=function(e){this.zIndex_=e,this.div_&&(this.div_.style.zIndex=e),google.maps.event.trigger(this,"zindex_changed")},e.prototype.setVisible=function(e){this.isHidden_=!e,this.div_&&(this.div_.style.visibility=this.isHidden_?"hidden":"visible")},e.prototype.getContent=function(){return this.content_},e.prototype.getPosition=function(){return this.position_},e.prototype.getZIndex=function(){return this.zIndex_},e.prototype.getVisible=function(){return void 0!==this.getMap()&&null!==this.getMap()&&!this.isHidden_},e.prototype.getWidth=function(){var e=null;return this.div_&&(e=this.div_.offsetWidth),e},e.prototype.getHeight=function(){var e=null;return this.div_&&(e=this.div_.offsetHeight),e},e.prototype.show=function(){this.isHidden_=!1,this.div_&&(this.div_.style.visibility="visible")},e.prototype.hide=function(){this.isHidden_=!0,this.div_&&(this.div_.style.visibility="hidden")},e.prototype.open=function(e,t){var i=this;t&&(this.setPosition(t.getPosition()),this.moveListener_=google.maps.event.addListener(t,"position_changed",(function(){i.setPosition(this.getPosition())}))),this.setMap(e),this.div_&&this.panBox_(this.disableAutoPan_)},e.prototype.close=function(){var e;if(this.closeListener_&&(google.maps.event.removeListener(this.closeListener_),this.closeListener_=null),this.eventListeners_){for(e=0;e<this.eventListeners_.length;e++)google.maps.event.removeListener(this.eventListeners_[e]);this.eventListeners_=null}this.moveListener_&&(google.maps.event.removeListener(this.moveListener_),this.moveListener_=null),this.contextListener_&&(google.maps.event.removeListener(this.contextListener_),this.contextListener_=null),this.setMap(null)},new e}}window.WpgmpGoogleMaps=WpgmpGoogleMaps}(jQuery,window,document),function(e,t,i){class a extends WpgmpBaseMaps{constructor(t,i={},a=[]){super(t,i,a);const n=this.map_data.map_options;this.settings=e.extend({min_zoom:"0",max_zoom:"19",zoom:"5",map_type_id:"mapbox.streets",scroll_wheel:!0,map_visual_refresh:!1,full_screen_control:!1,full_screen_control_position:"bottomright",zoom_control:!0,zoom_control_style:"SMALL",zoom_
12control_position:"topleft",map_type_control:!0,map_type_control_style:"HORIZONTAL_BAR",map_type_control_position:"topright",scale_control:!0,overview_map_control:!0,center_lat:"40.6153983",center_lng:"-74.2535216",draggable:!0,gesture:"auto",infowindow_open_event:"click",map_tile_url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",search_control:!1,locateme_control:!1,map_type_control:!1},{},n),this.container=e("div[rel='"+e(this.element).attr("id")+"']"),this.places=[],this.show_places=[],this.categories={},this.tabs=[],this.per_page_value=0,this.last_remove_cat_id="",this.last_selected_cat_id="",this.last_category_chkbox_action="",this.search_area="",this.url_filters=[],this.mbAttr='Map data &copy; <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, Imagery © <a href="http://mapbox.com">Mapbox</a>',this.mbURL="",this.isMobile=!1,this.bingmaplayers={},this.infowindow_marker=L.popup({closeOnClick:!0===this.settings.close_infowindow_on_map_click})}init(){const a=this;delete L.Icon.Default.prototype._getIconUrl,L.Icon.Default.mergeOptions({iconRetinaUrl:wpgmp_local.default_marker_icon,iconUrl:wpgmp_local.default_marker_icon,shadowUrl:wpgmp_local.default_marker_icon});const n=e(t).width(),o=n<=480?"smartphones":n<=768?"ipads":n>=1824?"large-screens":"desktop";if(a.isMobile="desktop"!==o&&!0===a.settings.mobile_specific,a.isMobile){const t=a.settings.screens?.[o];t?Object.assign(a.settings,{width_mobile:t.map_width_mobile,height_mobile:t.map_height_mobile,zoom:parseInt(t.map_zoom_level_mobile),draggable:"false"!==t.map_draggable_mobile,scroll_wheel:"false"!==t.map_scrolling_wheel_mobile}):(a.settings.width_mobile="",a.settings.height_mobile=""),a.settings.width_mobile&&e(a.element).css("width",a.settings.width_mobile),a.settings.height_mobile&&e(a.element).css("height",a.settings.height_mobile)}const r={center:L.latLng(a.settings.center_lat,a.settings.center_lng),zoom:parseInt(a.settings.zoom),minZoom:parseInt(a.settings.min_zoom),maxZoom:parseInt(a.settings.max_zoom),scrollWheelZoom:"true"!==a.settings.scroll_wheel,doubleClickZoom:!0===a.settings.doubleclickzoom,dragging:a.settings.draggable,zoomControl:!1,attributionControl:a.settings.attribution_screen_control,closePopupOnClick:!0===a.settings.close_infowindow_on_map_click},s=a.settings.tiles_provider||wpgmp_local.tiles_provider||"OpenStreetMap.Mapnik",l=a.element;try{try{if("bingmap"===s&&wpgmp_local.wpomp_bingmap_key){const e={key:wpgmp_local.wpomp_bingmap_key,detectRetina:!0};a.bingmaplayers={},["Aerial","AerialWithLabelsOnDemand","RoadOnDemand","CanvasDark","CanvasLight","CanvasGray"].forEach((t=>{a.bingmaplayers[t]=L.bingLayer({...e,imagerySet:t})})),a.bingmaplayers.CanvasGray.addTo(a.map)}else if(-1!==s.indexOf("CartoDB")){a.map=L.map(l,r);var d=wpgmp_local.wpgmp_cartodb_key||"";L.tileLayer.provider(s,{apiKey:d}).addTo(a.map)}else"Leaflet.OpenFreeMap"==s?(a.map=L.map(l,r),a.maplibreLayer=L.maplibreGL({style:"https://tiles.openfreemap.org/styles/liberty",attribution:"Leaflet | OpenFreeMap &copy; OpenMapTiles Data from OpenStreetMap"}).addTo(a.map)):(a.map=L.map(l,r),L.tileLayer.provider(s,{accessToken:wpgmp_local.wpgmp_mapbox_key}).addTo(a.map))}catch(e){console.error("Error loading map tiles from provider:",s,e)}}catch(e){console.error("Error initializing tile layer:",e)}if(a.settings.scale_control&&L.control.scale({position:"bottomleft"}).addTo(a.map),!0===a.settings.zoom_control&&L.control.zoom({position:a.settings.zoom_control_position}).addTo(a.map),!0===a.settings.full_screen_control&&a.map.addControl(new L.Control.Fullscreen({position:a.settings.full_screen_control_position})),"edit_location"===a.map_data.page&&setTimeout((()=>a.map.invalidateSize(!0)),300),a.settings.map_type_control){let t=a.settings.openstreet_styles_markup;"mapbox"===s&&(t=a.settings.map_box_styles_markup);const n=L.Control.extend({options:{position:a.settings.map_type_control_position},onAdd(){const e=L.DomUtil.create("div","info legend");return e.innerHTML=t,e.firstChild.onmousedown=e.firstChild.ondblclick=L.DomEvent.stopPropagation,e}});a.map.addControl(new n),e(i).on("change","select.wpomp_map_type",(function(){const t=e(this).val();if(a.maplibreLayer&&(a.map.removeLayer(a.maplibreLayer),a.maplibreLayer=null),a.mapTypeLayer&&(a.map.removeLayer(a.mapTypeLayer),a.mapTypeLayer=null),"Leaflet.OpenFreeMap"===t)return void(a.maplibreLayer=L.maplibreGL({style:"https://tiles.openfreemap.org/styles/liberty",attribution:"Leaflet | OpenFreeMap &copy; OpenMapTiles Data from OpenStreetMap"}).addTo(a.map));const i=a.settings.openstreet_styles[t];i&&(a.mapTypeLayer=L.tileLayer(i,{maxZoom:parseInt(a.settings.max_zoom)}
12).addTo(a.map))})),e(i).on("change","select.wpomp_mapbox_type",(function(){const t=`https://api.mapbox.com/styles/v1/mapbox/${e(this).val()}/tiles/{z}/{x}/{y}?access_token=${wpgmp_local.wpgmp_mapbox_key}`;L.tileLayer(t,{maxZoom:parseInt(a.settings.max_zoom)}).addTo(a.map)}))}if(a.create_markers(),a.display_markers(),void 0!==a.settings.google_fonts&&a.load_google_fonts(a.settings.google_fonts),!0===a.map_data.map_options?.advance_template){const e=i.querySelector('[data-listing-content="true"][data-wpgmp-map-id]');e?.innerHTML&&(a.map_data.listing.listing_placeholder=e.innerHTML)}a.map_loaded(),a.responsive_map(),!0===a.settings.search_control&&a.show_search_control(),!0===a.settings.locateme_control&&a.register_locate_me_control();const u=a.map_data.listing;if(u?.default_sorting){const e=u.default_sorting,t="listorder"===e.orderby?"num":"";a.sorting(e.orderby,e.inorder,t)}const h=a.map_data.map_tabs;if(!u&&h?.category_tab?.cat_tab){const e=h.category_tab.cat_post_order??"asc";a.sorting("title",e)}u&&(e(a.container).on("click",".categories_filter_reset_btn",(()=>{e(a.container).find(".wpgmp_filter_wrappers select").each((function(){e(this).val(e(this).find("option:first").val())})),e(".wpgmp_search_input").val(""),a.update_filters()})),a.display_filters_listing(),a.custom_filters(),e(a.container).find(`.location_pagination${a.map_data.map_property.map_id}`).pagination(a.show_places.length,{callback:a.display_places_listing,map_data:a,items_per_page:u.pagination.listing_per_page,prev_text:wpgmp_local.prev,next_text:wpgmp_local.next})),e(a.container).find(".wpgmp-accordion").accordion({speed:"slow"}),a.google_auto_suggest(e(".wpgmp_auto_suggest")),a.register_events()}event_listener(e,t,i){e&&"function"==typeof e.on?e.on(t,i):console.warn("event_listener: .on() is not a function for",e)}create_leaflet_marker({map:e,position:t,iconUrl:i="",popupAnchor:a=[0,-30],draggable:n=!1,title:o="",isDivIcon:r=!1,label:s="",customClass:l="wpgmp-custom-label-icon",addToMap:d=!0}){let u;var h=this.getMarkerSize();i&&""!==i.trim()||(i=this.settings.marker_default_icon||wpgmp_local.default_marker_icon);const c=i.toLowerCase().includes("image/svg")||i.toLowerCase().endsWith(".svg");if(r){const e={className:l,html:`<div class="wpgmp-marker-label">${s}</div>`};c&&(e.iconSize=h,e.iconAnchor=[h[0]/2,h[1]/2]),u=L.divIcon(e)}else{const e={iconUrl:i,iconAnchor:[h[0]/2,h[1]],popupAnchor:a};c&&(e.iconSize=h),u=L.icon(e)}const m=L.marker(t,{icon:u,draggable:n,title:o});return d&&e&&m.addTo(e),m}map_loaded(){const e=this,t=e.map;function i(t){const i=t.getElement();if(!i)return;const a=i.querySelector(".leaflet-popup-content-wrapper"),n=i.querySelector(".leaflet-popup-content"),o=e.getMarkerSize?.()||[32,32];a&&(a.classList.add("wpgmp-infowindow-addon"),a.removeAttribute("style")),n&&n.removeAttribute("style");const r=i.getBoundingClientRect().width||200;i.style.left=`-${r/2}px`,i.style.bottom=o[1]/2+"px"}!0===e.settings.center_by_nearest?e.center_by_nearest():!0===e.settings.show_center_marker&&e.show_center_marker(),!1===e.settings.center_by_nearest&&!0===e.settings.show_center_circle&&e.show_center_circle(),!0===e.settings.fit_bounds&&e.fit_bounds(),t.on("popupopen",(function(e){i(e.popup)})),t.on("zoomend",(function(){const e=t._popup;e&&i(e)}))}}t.WpgmpLeafletMaps=a}(jQuery,window,document),window.gm_authFailure=function(){showWpgmpApiError("Google Maps authentication failed. Check your API key, billing status, and domain restrictions.","https://developers.google.com/maps/documentation/javascript/error-messages")},function(){const e=[{match:"NoApiKeys",msg:"No Google Maps API key has been set. Please add a valid API key in the plugin settings.",link:"https://developers.google.com/maps/documentation/javascript/error-messages#no-api-keys"},{match:"InvalidKeyMapError",msg:"The Google Maps API key is invalid.",link:"https://developers.google.com/maps/documentation/javascript/error-messages#invalid-key-map-error"},{match:"ApiProjectMapError",msg:"There is a problem with the Google Maps API configuration. The API key may not have been added, may be invalid, or the Google Cloud project linked to the API key may be deleted, disabled, or misconfigured.",link:"https://developers.google.com/maps/documentation/javascript/error-messages#api-project-map-error"},{match:"BillingNotEnabledMapError",msg:"Billing is not enabled for this Google Maps API project.",link:"https://developers.google.com/maps/documentation/javascript/error-messages#billing-not-enabled-map-error"},{match:"ApiNotActivatedMapError",msg:"The Maps JavaScript API is not activated for this project.",link:"https://developers.google.com/maps/documentation/javascript/error-messages#api-not-activated-map-error"},{match:"RefererNotAllowedMapError",msg:"This domain is not authorized to use this API key.",link:"https://developers.google.com/maps/documentation/javascript/error-messages#referer-not-allowed-map-error"},{match:"OverQuotaMapError",msg:"The Google Maps API quota has been exceeded for this key.",link:"https://developers.google.com/maps/documentation/javascript/error-messages#over-quota-map-error"}];function t(t){const i=console[t];console[t]=function(...t){const a=t.join(" "),n=e.find((e=>a.includes(e.match)));n?showWpgmpApiError(n.msg,n.link):a.includes("Google Maps")||a.includes("MapError")||a.includes("ApiKeys"),i.apply(console,t)}}t("error"),t("warn")}();class WpgmpMapFactory{create(e,t,i,a){switch(e=e||i?.provider||"google",i.provider=e,e.toLowerCase()){case"leaflet":return new WpgmpLeafletMaps(t,i,a);case"google":return new WpgmpGoogleMaps(t,i,a);default:return console.warn(`Unknown provider "${e}". Falling back to Google Maps.`),new WpgmpGoogleMaps(t,i,a)}}}function wpgmpInitMap(){jQuery(document).ready((function(e){var t="[wpgmpInitMap]";e.fn.maps?(e(".wpgmp_map").each((function(){t="[wpgmpShowMap]";const i=e(this).data("map-id"),a="mapdata"+i,n=window.wpgmp?.[a];n?(wpgmp_local.debug_mode&&console.log(`${t} [Step 1] Map data found for ID: ${i}`),e("#map"+i).maps(n)):(wpgmp_local.debug_mode&&console.warn(`${t} [Step 1] Map data missing for ID: ${i}, retrying in ${wpgmp_local.set_timeout}ms...`),setTimeout((()=>{const n=window.wpgmp?.[a];n?(wpgmp_local.debug_mode&&console.log(`${t} [Step 1] Retry succeeded for ID: ${i}`),e("#map"+i).maps(n)):console.error(`${t} [Step 1] Retry failed: Map data still missing for ID: ${i}`)}),wpgmp_local.set_timeout))})),document.addEventListener("wpgmpInstanceReady",(function(i){const{element:a,instance:n,provider:o}=i.detail,r=e(a).data("map-id");wpgmp_local.debug_mode&&(console.log(`${t} [Step 2] Map fully initialized.`),console.log(`${t} Map ID: ${r}`),console.log(`${t} Provider: ${o}`),console.log(`${t} Instance:`,n))})),window.wpgmpInitialized=!0,t="[wpgmpInitMap]",setTimeout((()=>{wpgmp_local.debug_mode&&console.log(`${t} [Step 1] Global event dispatched: wpgmpReady`),document.dispatchEvent(new Event("wpgmpReady"))}),wpgmp_local.set_timeout)):wpgmp_local.debug_mode&&console.warn(`${t} [Abort] $.fn.maps not defined`)}))}!function(e,t,i){"use strict";e.fn.maps=function(t={},a=[]){return this.each((function(){const n="[wpgmp/maps]";if("string"==typeof t)try{t=JSON.parse(atob(t)),wpgmp_local.debug_mode&&console.log(`${n} [Step 1] Options decoded from base64`,t)}catch(e){console.error(`${n} [Step 1] Failed to decode options:`,e),t={}}if(e.data(this,"wpgmp_maps"))wpgmp_local.debug_mode&&console.log(`${n} [Skipped] Map already initialized on element:`,this);else{let o=wpgmp_local.map_provider||"google";"google"!==o&&(o="leaflet"),wpgmp_local.debug_mode&&(console.log(`${n} [Step 2] Preparing to initialize map...`),console.log(`${n} Provider: ${o}`),console.log(`${n} Target Element:`,this),console.log(`${n} Options:`,t)),setTimeout((()=>{const r=(new WpgmpMapFactory).create(o,this,t,a);r.init(),e.data(this,"wpgmp_maps",r),wpgmp_local.debug_mode&&console.log(`${n} [Step 3] Map instance created and initialized.`),wpgmp_local.debug_mode&&console.log(`${n} [Step 4] Events dispatched: wpgmpInstanceReady, wpgmpLoaded`);const s=new CustomEvent("wpgmpInstanceReady",{detail:{element:this,instance:r,provider:o}});i.dispatchEvent(s);const l=new CustomEvent("wpgmpLoaded",{detail:{element:this,instance:r,provider:o}});i.dispatchEvent(l)}),wpgmp_local.set_timeout)}}))}}(jQuery,window,document);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.